| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.TimelineStyle = void 0;
- const lit_element_1 = require("lit-element");
- exports.TimelineStyle = lit_element_1.css `
- * {
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
- "Open Sans", "Helvetica Neue", sans-serif;
- font-size: 16px;
- font-weight: 400;
- }
- div {
- box-sizing: border-box;
- }
- .jc-timeline-content,
- .jc-timeline-header {
- width: 100%;
- position: relative;
- display: flex;
- flex-direction: row;
- height: max-content;
- align-items: stretch;
- }
- .jc-timeline-content {
- height: auto;
- overflow-y: auto;
- }
- .jc-timeline-rows-title,
- .jc-timeline-rows > tr > td {
- padding: 8px;
- box-sizing: border-box;
- }
- .jc-timeline-rows > tr > td {
- width: var(--width, 200px);
- padding: 0px;
- vertical-align: top;
- }
- .jc-timeline-rows > tr.empty > td {
- padding: 6px 0px 4px 8px;
- }
- i.jc-spacer {
- display: inline-block;
- width: 1rem;
- height: 1rem;
- position: relative;
- box-sizing: border-box;
- }
- i.jc-spacer:after {
- content: " ";
- position: absolute;
- background-repeat: no-repeat;
- background-size: 1.05rem;
- width: 1.05rem;
- height: 1.05rem;
- }
- .jc-spacer.extend,
- .jc-spacer.collapse {
- cursor: pointer;
- }
- i.jc-spacer.extend:after {
- background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHdpZHRoPSIxOHB4IiBoZWlnaHQ9IjE4cHgiPjxwYXRoIGQ9Ik0wIDBoMjR2MjRIMFYweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik0xOSAzSDVjLTEuMTEgMC0yIC45LTIgMnYxNGMwIDEuMS44OSAyIDIgMmgxNGMxLjEgMCAyLS45IDItMlY1YzAtMS4xLS45LTItMi0yem0wIDE2SDVWNWgxNHYxNHptLTgtMmgydi00aDR2LTJoLTRWN2gtMnY0SDd2Mmg0eiIvPjwvc3ZnPg==");
- }
- i.jc-spacer.collapse:after {
- background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0Ij48cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTE5IDNINWMtMS4xIDAtMiAuOS0yIDJ2MTRjMCAxLjEuOSAyIDIgMmgxNGMxLjEgMCAyLS45IDItMlY1YzAtMS4xLS45LTItMi0yem0wIDE2SDVWNWgxNHYxNHpNNyAxMWgxMHYySDd6Ii8+PC9zdmc+");
- }
- .jc-timeline-rows > tr {
- box-sizing: border-box;
- white-space: nowrap;
- border: 1px solid grey;
- border-style: solid none;
- width: 100%;
- }
- .jc-timeline-rows,
- .jc-timeline-rows-title {
- height: inherit;
- width: var(--width, 200px);
- min-width: 40px;
- overflow-x: hidden;
- border-collapse: collapse;
- display: block;
- }
- .jc-timeline-grid-title-container,
- .jc-timeline-grid-container {
- position: relative;
- width: calc(100% - var(--width, 200px));
- display: block;
- overflow: hidden;
- }
- .jc-timeline-grid-container {
- overflow: auto;
- display: flex;
- }
- .jc-timeline-grid-title-container table,
- .jc-timeline-grid-container table {
- width: 100%;
- table-layout: fixed;
- border-collapse: collapse;
- box-sizing: border-box;
- }
- .jc-timeline-grid-title-container {
- white-space: nowrap;
- cursor: grab;
- user-select: none; /* supported by Chrome and Opera */
- -webkit-user-select: none; /* Safari */
- -khtml-user-select: none; /* Konqueror HTML */
- -moz-user-select: none; /* Firefox */
- -ms-user-select: none; /* Internet Explorer/Edge */
- }
- .jc-timeline-grid-title:first-child > th {
- border-top: 0;
- border-left-color: #ffff;
- border-right-color: #ffff;
- }
- .jc-timeline-grid-title:not(:last-child) > th > div {
- position: sticky;
- width: min-content;
- padding: 0 4px;
- position: -webkit-sticky;
- left: 0;
- }
- .jc-timeline-grid-title:first-child > th:before,
- .jc-timeline-grid-title:first-child > th:last-child:after {
- content: " ";
- display: block;
- position: absolute;
- left: -1px;
- bottom: 0px;
- height: 8px;
- border-left: 1px solid lightgrey;
- z-index: 2;
- }
- .jc-timeline-grid-title:first-child > th:last-child:after {
- left: auto;
- right: -1px;
- }
- .jc-timeline-grid-title:first-child:last-child > th {
- padding: 8px 0;
- }
- .jc-timeline-grid-title:last-child > th {
- border-bottom: none;
- }
- .jc-timeline-grid-title > th,
- .jc-slot {
- height: 100%;
- border: solid 1px lightgrey;
- border-left-style: dotted;
- border-right: 0;
- text-align: center;
- position: relative;
- box-sizing: border-box;
- }
- .jc-timeline-grid-title > th:last-child,
- .jc-slot:last-child {
- border-right: solid 1px lightgray;
- }
- .jc-timeline-grid-title > th,
- .jc-major-slot {
- border-left-style: solid;
- }
- .jc-timeslots {
- position: absolute;
- top: 0px;
- left: 0px;
- bottom: 0px;
- }
- .jc-timeslot {
- position: absolute;
- background-color: var(--default-background);
- color: #fff;
- border-radius: 3px;
- margin: 2px 0px;
- z-index: auto;
- cursor: grab;
- }
- .jc-timeslot-title {
- font-size: 14px;
- font-weight: 600;
- padding: 4px;
- white-space: nowrap;
- overflow-x: hidden;
- }
- .jc-timeslot.empty {
- height: 5px;
- padding: 2px 2px;
- margin: 0px;
- cursor: pointer;
- }
- .jc-timeslot.moving {
- opacity: 0.7;
- cursor: grabbing;
- }
- .jc-timeslot.selected:before {
- border: solid 2px black;
- border-radius: 3px;
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- content: " ";
- }
- .jc-timeslot-resizer-start,
- .jc-timeslot-resizer-end {
- position: absolute;
- top: 0;
- bottom: 0;
- width: 4px;
- min-width: 4px;
- display: block;
- cursor: ew-resize;
- }
- .jc-timeslot-resizer-start,
- .jc-timeslot-resizer-end {
- display: block;
- }
- .jc-timeslot-resizer-start {
- left: 0px;
- }
- .jc-timeslot-resizer-end {
- right: 0px;
- }
- .jc-timeline-rows > tr > td {
- height: 100%;
- }
- .jc-ressource {
- padding-top: 2px;
- height: calc(100% - 8px);
- }
- .jc-ressource > span {
- pointer-events: none;
- }
- .jc-ressource.target {
- background-color: lightgrey;
- }
- .jc-ressource-selected {
- border: 1px solid var(--default-background, SteelBlue);
- border-right: 0;
- border-left: 0;
- background-color: #4682b46b;
- }
- .jc-ressource-above {
- height: 4px;
- }
- .jc-ressource-above.target {
- margin-left: calc(var(--depth) * 16px);
- background-color: var(--default-background, SteelBlue);
- border-radius: 0 0 0 4px;
- }
- .jc-ressource-below {
- height: 4px;
- }
- .jc-ressource-below.target {
- margin-left: calc(var(--depth) * 16px);
- background-color: var(--default-background, SteelBlue);
- border-radius: 4px 0 0 0;
- }
- `;
- //# sourceMappingURL=Timeline.style.js.map
|