@vmscloud/moz-ui-gantt-vue 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +27 -1
- package/dist/index.d.ts +80 -0
- package/dist/index.js +27 -1
- package/dist/style.css +397 -8
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -9,7 +9,20 @@ const MozGantt = vue.defineComponent({
|
|
|
9
9
|
initialized: (_value) => true,
|
|
10
10
|
search: (_value) => true,
|
|
11
11
|
zoom: (_value) => true,
|
|
12
|
-
taskClick: (_value) => true
|
|
12
|
+
taskClick: (_value) => true,
|
|
13
|
+
taskActivate: (_value) => true,
|
|
14
|
+
taskDoubleClick: (_value) => true,
|
|
15
|
+
milestoneClick: (_value) => true,
|
|
16
|
+
milestoneDoubleClick: (_value) => true,
|
|
17
|
+
rowClick: (_value) => true,
|
|
18
|
+
rowDoubleClick: (_value) => true,
|
|
19
|
+
contextMenu: (_value) => true,
|
|
20
|
+
taskContextMenu: (_value) => true,
|
|
21
|
+
milestoneContextMenu: (_value) => true,
|
|
22
|
+
rowContextMenu: (_value) => true,
|
|
23
|
+
menuAction: (_value) => true,
|
|
24
|
+
selectionChange: (_value) => true,
|
|
25
|
+
dataError: (_value) => true
|
|
13
26
|
},
|
|
14
27
|
setup(props, { emit, expose }) {
|
|
15
28
|
const host = vue.shallowRef();
|
|
@@ -20,6 +33,19 @@ const MozGantt = vue.defineComponent({
|
|
|
20
33
|
core.on("search", (state) => emit("search", state));
|
|
21
34
|
core.on("zoom", (state) => emit("zoom", state));
|
|
22
35
|
core.on("taskClick", (state) => emit("taskClick", state));
|
|
36
|
+
core.on("taskActivate", (state) => emit("taskActivate", state));
|
|
37
|
+
core.on("taskDoubleClick", (state) => emit("taskDoubleClick", state));
|
|
38
|
+
core.on("milestoneClick", (state) => emit("milestoneClick", state));
|
|
39
|
+
core.on("milestoneDoubleClick", (state) => emit("milestoneDoubleClick", state));
|
|
40
|
+
core.on("rowClick", (state) => emit("rowClick", state));
|
|
41
|
+
core.on("rowDoubleClick", (state) => emit("rowDoubleClick", state));
|
|
42
|
+
core.on("contextMenu", (state) => emit("contextMenu", state));
|
|
43
|
+
core.on("taskContextMenu", (state) => emit("taskContextMenu", state));
|
|
44
|
+
core.on("milestoneContextMenu", (state) => emit("milestoneContextMenu", state));
|
|
45
|
+
core.on("rowContextMenu", (state) => emit("rowContextMenu", state));
|
|
46
|
+
core.on("menuAction", (state) => emit("menuAction", state));
|
|
47
|
+
core.on("selectionChange", (state) => emit("selectionChange", state));
|
|
48
|
+
core.on("dataError", (state) => emit("dataError", state));
|
|
23
49
|
emit("initialized", core);
|
|
24
50
|
});
|
|
25
51
|
vue.watch(() => props.options, (options) => core == null ? void 0 : core.update(options));
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,19 @@ export declare const MozGantt: import('vue').DefineComponent<import('vue').Extra
|
|
|
16
16
|
search: (_value: GanttEvents["search"]) => true;
|
|
17
17
|
zoom: (_value: GanttEvents["zoom"]) => true;
|
|
18
18
|
taskClick: (_value: GanttEvents["taskClick"]) => true;
|
|
19
|
+
taskActivate: (_value: GanttEvents["taskActivate"]) => true;
|
|
20
|
+
taskDoubleClick: (_value: GanttEvents["taskDoubleClick"]) => true;
|
|
21
|
+
milestoneClick: (_value: GanttEvents["milestoneClick"]) => true;
|
|
22
|
+
milestoneDoubleClick: (_value: GanttEvents["milestoneDoubleClick"]) => true;
|
|
23
|
+
rowClick: (_value: GanttEvents["rowClick"]) => true;
|
|
24
|
+
rowDoubleClick: (_value: GanttEvents["rowDoubleClick"]) => true;
|
|
25
|
+
contextMenu: (_value: GanttEvents["contextMenu"]) => true;
|
|
26
|
+
taskContextMenu: (_value: GanttEvents["taskContextMenu"]) => true;
|
|
27
|
+
milestoneContextMenu: (_value: GanttEvents["milestoneContextMenu"]) => true;
|
|
28
|
+
rowContextMenu: (_value: GanttEvents["rowContextMenu"]) => true;
|
|
29
|
+
menuAction: (_value: GanttEvents["menuAction"]) => true;
|
|
30
|
+
selectionChange: (_value: GanttEvents["selectionChange"]) => true;
|
|
31
|
+
dataError: (_value: GanttEvents["dataError"]) => true;
|
|
19
32
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
33
|
options: {
|
|
21
34
|
type: PropType<GanttOptions>;
|
|
@@ -31,5 +44,72 @@ export declare const MozGantt: import('vue').DefineComponent<import('vue').Extra
|
|
|
31
44
|
row: import('@vmscloud/moz-ui-gantt-core').GanttRow;
|
|
32
45
|
event: MouseEvent;
|
|
33
46
|
}) => any) | undefined;
|
|
47
|
+
onTaskActivate?: ((_value: {
|
|
48
|
+
id: import('@vmscloud/moz-ui-gantt-core').GanttRowId;
|
|
49
|
+
row: import('@vmscloud/moz-ui-gantt-core').GanttRow;
|
|
50
|
+
source: "pointer" | "keyboard";
|
|
51
|
+
event: MouseEvent | KeyboardEvent;
|
|
52
|
+
}) => any) | undefined;
|
|
53
|
+
onTaskDoubleClick?: ((_value: {
|
|
54
|
+
id: import('@vmscloud/moz-ui-gantt-core').GanttRowId;
|
|
55
|
+
row: import('@vmscloud/moz-ui-gantt-core').GanttRow;
|
|
56
|
+
event: MouseEvent;
|
|
57
|
+
}) => any) | undefined;
|
|
58
|
+
onMilestoneClick?: ((_value: {
|
|
59
|
+
id: import('@vmscloud/moz-ui-gantt-core').GanttRowId;
|
|
60
|
+
row: import('@vmscloud/moz-ui-gantt-core').GanttRow;
|
|
61
|
+
event: MouseEvent | KeyboardEvent;
|
|
62
|
+
}) => any) | undefined;
|
|
63
|
+
onMilestoneDoubleClick?: ((_value: {
|
|
64
|
+
id: import('@vmscloud/moz-ui-gantt-core').GanttRowId;
|
|
65
|
+
row: import('@vmscloud/moz-ui-gantt-core').GanttRow;
|
|
66
|
+
event: MouseEvent;
|
|
67
|
+
}) => any) | undefined;
|
|
68
|
+
onRowClick?: ((_value: {
|
|
69
|
+
field: string;
|
|
70
|
+
rowPath: readonly unknown[];
|
|
71
|
+
ids: readonly import('@vmscloud/moz-ui-gantt-core').GanttRowId[];
|
|
72
|
+
event: MouseEvent | KeyboardEvent;
|
|
73
|
+
}) => any) | undefined;
|
|
74
|
+
onRowDoubleClick?: ((_value: {
|
|
75
|
+
field: string;
|
|
76
|
+
rowPath: readonly unknown[];
|
|
77
|
+
ids: readonly import('@vmscloud/moz-ui-gantt-core').GanttRowId[];
|
|
78
|
+
event: MouseEvent | KeyboardEvent;
|
|
79
|
+
}) => any) | undefined;
|
|
80
|
+
onContextMenu?: ((_value: {
|
|
81
|
+
id: import('@vmscloud/moz-ui-gantt-core').GanttRowId;
|
|
82
|
+
row: import('@vmscloud/moz-ui-gantt-core').GanttRow;
|
|
83
|
+
event: MouseEvent | KeyboardEvent;
|
|
84
|
+
}) => any) | undefined;
|
|
85
|
+
onTaskContextMenu?: ((_value: {
|
|
86
|
+
id: import('@vmscloud/moz-ui-gantt-core').GanttRowId;
|
|
87
|
+
row: import('@vmscloud/moz-ui-gantt-core').GanttRow;
|
|
88
|
+
event: MouseEvent | KeyboardEvent;
|
|
89
|
+
}) => any) | undefined;
|
|
90
|
+
onMilestoneContextMenu?: ((_value: {
|
|
91
|
+
id: import('@vmscloud/moz-ui-gantt-core').GanttRowId;
|
|
92
|
+
row: import('@vmscloud/moz-ui-gantt-core').GanttRow;
|
|
93
|
+
event: MouseEvent | KeyboardEvent;
|
|
94
|
+
}) => any) | undefined;
|
|
95
|
+
onRowContextMenu?: ((_value: {
|
|
96
|
+
field: string;
|
|
97
|
+
rowPath: readonly unknown[];
|
|
98
|
+
ids: readonly import('@vmscloud/moz-ui-gantt-core').GanttRowId[];
|
|
99
|
+
event: MouseEvent | KeyboardEvent;
|
|
100
|
+
}) => any) | undefined;
|
|
101
|
+
onMenuAction?: ((_value: {
|
|
102
|
+
id: import('@vmscloud/moz-ui-gantt-core').GanttRowId;
|
|
103
|
+
row: import('@vmscloud/moz-ui-gantt-core').GanttRow;
|
|
104
|
+
action: string;
|
|
105
|
+
event: MouseEvent | KeyboardEvent;
|
|
106
|
+
}) => any) | undefined;
|
|
107
|
+
onSelectionChange?: ((_value: {
|
|
108
|
+
id: import('@vmscloud/moz-ui-gantt-core').GanttRowId | null;
|
|
109
|
+
row: import('@vmscloud/moz-ui-gantt-core').GanttRow | null;
|
|
110
|
+
}) => any) | undefined;
|
|
111
|
+
onDataError?: ((_value: {
|
|
112
|
+
error: unknown;
|
|
113
|
+
}) => any) | undefined;
|
|
34
114
|
onInitialized?: ((_value: GanttCore) => any) | undefined;
|
|
35
115
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,20 @@ const MozGantt = defineComponent({
|
|
|
7
7
|
initialized: (_value) => true,
|
|
8
8
|
search: (_value) => true,
|
|
9
9
|
zoom: (_value) => true,
|
|
10
|
-
taskClick: (_value) => true
|
|
10
|
+
taskClick: (_value) => true,
|
|
11
|
+
taskActivate: (_value) => true,
|
|
12
|
+
taskDoubleClick: (_value) => true,
|
|
13
|
+
milestoneClick: (_value) => true,
|
|
14
|
+
milestoneDoubleClick: (_value) => true,
|
|
15
|
+
rowClick: (_value) => true,
|
|
16
|
+
rowDoubleClick: (_value) => true,
|
|
17
|
+
contextMenu: (_value) => true,
|
|
18
|
+
taskContextMenu: (_value) => true,
|
|
19
|
+
milestoneContextMenu: (_value) => true,
|
|
20
|
+
rowContextMenu: (_value) => true,
|
|
21
|
+
menuAction: (_value) => true,
|
|
22
|
+
selectionChange: (_value) => true,
|
|
23
|
+
dataError: (_value) => true
|
|
11
24
|
},
|
|
12
25
|
setup(props, { emit, expose }) {
|
|
13
26
|
const host = shallowRef();
|
|
@@ -18,6 +31,19 @@ const MozGantt = defineComponent({
|
|
|
18
31
|
core.on("search", (state) => emit("search", state));
|
|
19
32
|
core.on("zoom", (state) => emit("zoom", state));
|
|
20
33
|
core.on("taskClick", (state) => emit("taskClick", state));
|
|
34
|
+
core.on("taskActivate", (state) => emit("taskActivate", state));
|
|
35
|
+
core.on("taskDoubleClick", (state) => emit("taskDoubleClick", state));
|
|
36
|
+
core.on("milestoneClick", (state) => emit("milestoneClick", state));
|
|
37
|
+
core.on("milestoneDoubleClick", (state) => emit("milestoneDoubleClick", state));
|
|
38
|
+
core.on("rowClick", (state) => emit("rowClick", state));
|
|
39
|
+
core.on("rowDoubleClick", (state) => emit("rowDoubleClick", state));
|
|
40
|
+
core.on("contextMenu", (state) => emit("contextMenu", state));
|
|
41
|
+
core.on("taskContextMenu", (state) => emit("taskContextMenu", state));
|
|
42
|
+
core.on("milestoneContextMenu", (state) => emit("milestoneContextMenu", state));
|
|
43
|
+
core.on("rowContextMenu", (state) => emit("rowContextMenu", state));
|
|
44
|
+
core.on("menuAction", (state) => emit("menuAction", state));
|
|
45
|
+
core.on("selectionChange", (state) => emit("selectionChange", state));
|
|
46
|
+
core.on("dataError", (state) => emit("dataError", state));
|
|
21
47
|
emit("initialized", core);
|
|
22
48
|
});
|
|
23
49
|
watch(() => props.options, (options) => core == null ? void 0 : core.update(options));
|
package/dist/style.css
CHANGED
|
@@ -635,18 +635,298 @@
|
|
|
635
635
|
right: 2.25rem;
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
|
+
/* moz tooltip — 앵커에 붙는 설명 버블 (버블만 body 포털에 렌더, 트리거는 소비처 소유) */
|
|
639
|
+
@layer moz {
|
|
640
|
+
:root {
|
|
641
|
+
/* 화살표 한 변의 절반. tooltip.core.ts 의 ARROW_SIZE 와 같은 값을 유지한다 */
|
|
642
|
+
--moz-tooltip-arrow: 5px;
|
|
643
|
+
}
|
|
644
|
+
.moz-tooltip {
|
|
645
|
+
/* 팝업(1000) 위. 좌표는 코어가 인라인 style 로 준다 */
|
|
646
|
+
z-index: 1100;
|
|
647
|
+
max-width: 20rem;
|
|
648
|
+
padding: 0.5rem 0.75rem;
|
|
649
|
+
border-radius: var(--moz-radius-control);
|
|
650
|
+
background-color: var(--moz-color-tooltip-surface);
|
|
651
|
+
color: var(--moz-color-inverse-text);
|
|
652
|
+
font-size: 0.875rem;
|
|
653
|
+
font-weight: 400;
|
|
654
|
+
line-height: 1.25rem;
|
|
655
|
+
word-break: break-word;
|
|
656
|
+
box-shadow: var(--moz-shadow-small);
|
|
657
|
+
/* 기본은 포인터를 통과시킨다 — 트리거를 벗어나면 닫히는 툴팁이 클릭을 가로채지 않도록.
|
|
658
|
+
콘텐츠 위 hover 를 유지하는 소비처는 래퍼가 data-hoverable 을 붙인다 */
|
|
659
|
+
pointer-events: none;
|
|
660
|
+
animation: moz-tooltip-in 120ms ease-out;
|
|
661
|
+
}
|
|
662
|
+
.moz-tooltip[data-hoverable=true] {
|
|
663
|
+
pointer-events: auto;
|
|
664
|
+
}
|
|
665
|
+
.moz-tooltip-content {
|
|
666
|
+
position: relative;
|
|
667
|
+
}
|
|
668
|
+
/* 회전한 정사각형 — 테두리 삼각형과 달리 버블 배경색을 그대로 물려받는다 */
|
|
669
|
+
.moz-tooltip-arrow {
|
|
670
|
+
position: absolute;
|
|
671
|
+
width: calc(var(--moz-tooltip-arrow) * 2);
|
|
672
|
+
height: calc(var(--moz-tooltip-arrow) * 2);
|
|
673
|
+
background-color: inherit;
|
|
674
|
+
transform: rotate(45deg);
|
|
675
|
+
}
|
|
676
|
+
/* 인라인 style 로 오는 left/top 은 앵커 중심 오프셋이므로 절반만큼 당겨 중심을 맞춘다 */
|
|
677
|
+
.moz-tooltip-arrow[data-side=top] {
|
|
678
|
+
bottom: calc(var(--moz-tooltip-arrow) * -1);
|
|
679
|
+
margin-left: calc(var(--moz-tooltip-arrow) * -1);
|
|
680
|
+
}
|
|
681
|
+
.moz-tooltip-arrow[data-side=bottom] {
|
|
682
|
+
top: calc(var(--moz-tooltip-arrow) * -1);
|
|
683
|
+
margin-left: calc(var(--moz-tooltip-arrow) * -1);
|
|
684
|
+
}
|
|
685
|
+
.moz-tooltip-arrow[data-side=left] {
|
|
686
|
+
right: calc(var(--moz-tooltip-arrow) * -1);
|
|
687
|
+
margin-top: calc(var(--moz-tooltip-arrow) * -1);
|
|
688
|
+
}
|
|
689
|
+
.moz-tooltip-arrow[data-side=right] {
|
|
690
|
+
left: calc(var(--moz-tooltip-arrow) * -1);
|
|
691
|
+
margin-top: calc(var(--moz-tooltip-arrow) * -1);
|
|
692
|
+
}
|
|
693
|
+
@keyframes moz-tooltip-in {
|
|
694
|
+
from {
|
|
695
|
+
opacity: 0;
|
|
696
|
+
transform: scale(0.96);
|
|
697
|
+
}
|
|
698
|
+
to {
|
|
699
|
+
opacity: 1;
|
|
700
|
+
transform: none;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
@media (prefers-reduced-motion: reduce) {
|
|
704
|
+
.moz-tooltip {
|
|
705
|
+
animation: none;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
/**
|
|
710
|
+
* ContextMenu plain parent/submenu states: Figma State 1723:63.
|
|
711
|
+
* Consumer templates retain their existing presentation; arrows use the saved SVG geometry.
|
|
712
|
+
*/
|
|
713
|
+
@layer moz {
|
|
714
|
+
.context-menu-wrapper {
|
|
715
|
+
position: fixed;
|
|
716
|
+
width: 100%;
|
|
717
|
+
height: 100%;
|
|
718
|
+
left: 0;
|
|
719
|
+
top: 0;
|
|
720
|
+
z-index: 1502;
|
|
721
|
+
}
|
|
722
|
+
.context-menu-wrapper > * {
|
|
723
|
+
pointer-events: auto;
|
|
724
|
+
}
|
|
725
|
+
.context-menu-content-hide {
|
|
726
|
+
pointer-events: none;
|
|
727
|
+
}
|
|
728
|
+
.context-menu-content-init {
|
|
729
|
+
position: absolute;
|
|
730
|
+
transition-timing-function: cubic-bezier(0.5, 0.25, 0, 1);
|
|
731
|
+
transition-property: opacity;
|
|
732
|
+
z-index: 1501;
|
|
733
|
+
}
|
|
734
|
+
.context-menu-content-init-right {
|
|
735
|
+
position: absolute;
|
|
736
|
+
transform: translateX(-100%);
|
|
737
|
+
}
|
|
738
|
+
.context-menu-content-init-bottom {
|
|
739
|
+
position: absolute;
|
|
740
|
+
transform: translateY(-100%);
|
|
741
|
+
}
|
|
742
|
+
.context-menu-content-init-bottom-right {
|
|
743
|
+
position: absolute;
|
|
744
|
+
transform: translate(-100%, -100%);
|
|
745
|
+
}
|
|
746
|
+
.context-menu-content-wrapper {
|
|
747
|
+
background-color: var(--moz-color-surface);
|
|
748
|
+
border: 1px solid var(--moz-color-border);
|
|
749
|
+
margin-top: 0.25rem;
|
|
750
|
+
border-radius: var(--moz-radius-control);
|
|
751
|
+
box-shadow: 0 3px 4px 0 var(--moz-color-shadow);
|
|
752
|
+
min-width: 140px;
|
|
753
|
+
}
|
|
754
|
+
.context-menu-content-wrapper[data-noPadding=false] {
|
|
755
|
+
padding: 6px;
|
|
756
|
+
}
|
|
757
|
+
.context-menu-item-enable-hover:not(:has(> .context-menu-item)):hover {
|
|
758
|
+
background: var(--moz-color-accent-ghost);
|
|
759
|
+
}
|
|
760
|
+
.context-menu-item-enable-hover {
|
|
761
|
+
cursor: pointer;
|
|
762
|
+
}
|
|
763
|
+
.context-menu-item-enable-hover:not(.context-menu-item-wrapper-disabled) > .context-menu-item:hover {
|
|
764
|
+
background: var(--moz-color-context-menu-item-hover);
|
|
765
|
+
}
|
|
766
|
+
.context-menu-item-wrapper:not(.context-menu-item-wrapper-disabled) > .context-menu-item:focus {
|
|
767
|
+
background: var(--moz-color-surface);
|
|
768
|
+
outline: none;
|
|
769
|
+
box-shadow: 0 0 0 4px var(--moz-color-accent-ring);
|
|
770
|
+
}
|
|
771
|
+
.context-menu-item-wrapper {
|
|
772
|
+
position: relative;
|
|
773
|
+
}
|
|
774
|
+
.context-menu-item-wrapper:has(> .context-menu-item) {
|
|
775
|
+
border-radius: var(--moz-radius-control);
|
|
776
|
+
}
|
|
777
|
+
.context-menu-item-wrapper-selected:not(:has(> .context-menu-item)) {
|
|
778
|
+
background: var(--moz-color-accent-ghost);
|
|
779
|
+
}
|
|
780
|
+
.context-menu-item-wrapper-disabled {
|
|
781
|
+
cursor: not-allowed !important;
|
|
782
|
+
}
|
|
783
|
+
.context-menu-item-wrapper-disabled:not(:has(> .context-menu-item)) {
|
|
784
|
+
opacity: 0.6;
|
|
785
|
+
color: var(--moz-color-text-muted);
|
|
786
|
+
}
|
|
787
|
+
.context-menu-item-wrapper-disabled > .context-menu-item {
|
|
788
|
+
color: var(--moz-color-text-muted);
|
|
789
|
+
}
|
|
790
|
+
.context-menu-item-wrapper-disabled * {
|
|
791
|
+
pointer-events: none;
|
|
792
|
+
}
|
|
793
|
+
.context-menu-item {
|
|
794
|
+
background: var(--moz-color-surface);
|
|
795
|
+
border-radius: var(--moz-radius-control);
|
|
796
|
+
color: var(--moz-color-text);
|
|
797
|
+
padding: 0 8px;
|
|
798
|
+
height: 30px;
|
|
799
|
+
font-size: 0.8125rem;
|
|
800
|
+
line-height: 1.125rem;
|
|
801
|
+
display: flex;
|
|
802
|
+
align-items: center;
|
|
803
|
+
justify-content: space-between;
|
|
804
|
+
gap: 10px;
|
|
805
|
+
user-select: none;
|
|
806
|
+
cursor: pointer;
|
|
807
|
+
white-space: nowrap;
|
|
808
|
+
}
|
|
809
|
+
.context-menu-item-template {
|
|
810
|
+
color: var(--moz-color-text);
|
|
811
|
+
font-size: 0.8125rem;
|
|
812
|
+
line-height: 100%;
|
|
813
|
+
white-space: nowrap;
|
|
814
|
+
}
|
|
815
|
+
.context-menu-item-template[data-layout=col-padding] {
|
|
816
|
+
padding: 0.5rem 0.875rem;
|
|
817
|
+
}
|
|
818
|
+
.context-menu-item-template[data-layout=row-padding] {
|
|
819
|
+
padding: 0.5rem 0;
|
|
820
|
+
}
|
|
821
|
+
.context-menu-item-template[data-layout=padding] {
|
|
822
|
+
padding: 0.5rem 0.875rem;
|
|
823
|
+
}
|
|
824
|
+
.context-menu-sub-items-wrapper-hide {
|
|
825
|
+
visibility: hidden;
|
|
826
|
+
pointer-events: none;
|
|
827
|
+
}
|
|
828
|
+
.context-menu-sub-items-wrapper {
|
|
829
|
+
position: absolute;
|
|
830
|
+
top: -8px;
|
|
831
|
+
right: 0;
|
|
832
|
+
transform: translateX(100%);
|
|
833
|
+
}
|
|
834
|
+
.context-menu-sub-items-wrapper-right {
|
|
835
|
+
position: absolute;
|
|
836
|
+
transform: translateX(calc(-100% - 2px));
|
|
837
|
+
}
|
|
838
|
+
.context-menu-sub-items-wrapper-bottom {
|
|
839
|
+
position: absolute;
|
|
840
|
+
transform: translate(100%, calc(-100% + 26px));
|
|
841
|
+
}
|
|
842
|
+
.context-menu-sub-items-wrapper-bottom-right {
|
|
843
|
+
position: absolute;
|
|
844
|
+
transform: translate(calc(-100% - 2px), calc(-100% + 26px));
|
|
845
|
+
}
|
|
846
|
+
.context-menu-item-left {
|
|
847
|
+
display: flex;
|
|
848
|
+
align-items: center;
|
|
849
|
+
}
|
|
850
|
+
.context-menu-item-right {
|
|
851
|
+
width: 6px;
|
|
852
|
+
height: 10px;
|
|
853
|
+
background-position: center center;
|
|
854
|
+
background-repeat: no-repeat;
|
|
855
|
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAYAAAAx8TU7AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACLSURBVHgBbU07DoJQEJxdSGg9Akfw3cDehncEago7EzsrSWgsUS9BojHaeQWPgDewI5CwC48EQsEUu5P5ZJBd3rvT9R5hBhZI5KlXpPljM4lBVdv+l8RcZLfn2onkTpq/Qib5OF4FjWEswB9TpFi1aMwxtn+fSc+9GUJgDokthyFF+xNFvE+237HeAebpK4t5Dh02AAAAAElFTkSuQmCC);
|
|
856
|
+
}
|
|
857
|
+
.context-menu-item-wrapper > .context-menu-item > .context-menu-item-right {
|
|
858
|
+
width: 14px;
|
|
859
|
+
height: 14px;
|
|
860
|
+
flex: 0 0 14px;
|
|
861
|
+
background-image: none;
|
|
862
|
+
background-color: var(--moz-color-context-menu-arrow);
|
|
863
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.5L7.05021 9.5L11 5.5' stroke='currentColor' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
864
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.5L7.05021 9.5L11 5.5' stroke='currentColor' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
865
|
+
-webkit-mask-size: 14px 14px;
|
|
866
|
+
mask-size: 14px 14px;
|
|
867
|
+
-webkit-mask-repeat: no-repeat;
|
|
868
|
+
mask-repeat: no-repeat;
|
|
869
|
+
-webkit-mask-position: center;
|
|
870
|
+
mask-position: center;
|
|
871
|
+
transform: rotate(-90deg);
|
|
872
|
+
}
|
|
873
|
+
.context-menu-item-wrapper-disabled > .context-menu-item > .context-menu-item-right {
|
|
874
|
+
background-color: var(--moz-color-context-menu-arrow-disabled);
|
|
875
|
+
}
|
|
876
|
+
.context-menu-separator {
|
|
877
|
+
height: 1px;
|
|
878
|
+
width: 100%;
|
|
879
|
+
background-color: var(--moz-color-border);
|
|
880
|
+
margin-top: 0.375rem;
|
|
881
|
+
margin-bottom: 0.375rem;
|
|
882
|
+
}
|
|
883
|
+
.context-menu-active {
|
|
884
|
+
opacity: 100%;
|
|
885
|
+
}
|
|
886
|
+
.before-fade {
|
|
887
|
+
opacity: 0;
|
|
888
|
+
}
|
|
889
|
+
.after-fade {
|
|
890
|
+
opacity: 100%;
|
|
891
|
+
}
|
|
892
|
+
.context-menu-fixed-position-space {
|
|
893
|
+
visibility: hidden;
|
|
894
|
+
pointer-events: none;
|
|
895
|
+
position: absolute;
|
|
896
|
+
}
|
|
897
|
+
}
|
|
638
898
|
.moz-gantt {
|
|
639
|
-
--gantt-border: var(--color-border-300, #d5dce7);
|
|
640
|
-
--gantt-surface: var(--color-background, #fff);
|
|
641
|
-
--gantt-header: var(--color-background-secondary, #f1f4f9);
|
|
899
|
+
--moz-gantt-border: var(--color-border-300, #d5dce7);
|
|
900
|
+
--moz-gantt-surface: var(--color-background, var(--color-bg-0, #fff));
|
|
901
|
+
--moz-gantt-header: var(--color-background-secondary, var(--color-bg-100, #f1f4f9));
|
|
902
|
+
--moz-gantt-text: var(--color-text, var(--color-text-700, #263248));
|
|
903
|
+
--moz-gantt-accent: var(--color-accent, var(--color-accent-400, #2563eb));
|
|
904
|
+
--moz-gantt-grid: var(--color-border-200, var(--moz-gantt-border));
|
|
905
|
+
--moz-gantt-bar: var(--color-accent-400, #1976d2);
|
|
906
|
+
--moz-gantt-bar-text: var(--color-text-on-accent, #fff);
|
|
907
|
+
--moz-gantt-bar-border: transparent;
|
|
908
|
+
--moz-gantt-locked-bar: var(--color-text-400, #737d8b);
|
|
909
|
+
--moz-gantt-added-bar: var(--color-success-500, #23834b);
|
|
910
|
+
--moz-gantt-modified-bar: var(--color-warning-500, #b65e00);
|
|
911
|
+
--moz-gantt-removed-bar: var(--color-error-500, #c33737);
|
|
912
|
+
--moz-gantt-search-match: var(--color-warning-400, #b96a00);
|
|
913
|
+
--moz-gantt-search-current: var(--color-warning-600, #c2410c);
|
|
914
|
+
--moz-gantt-selection: var(--moz-gantt-accent);
|
|
915
|
+
--moz-gantt-milestone: var(--color-accent-500, #7555b5);
|
|
916
|
+
--moz-gantt-dependency: var(--color-text-500, #627086);
|
|
917
|
+
--moz-gantt-font: 12px var(--moz-font-family, sans-serif);
|
|
918
|
+
--gantt-border: var(--moz-gantt-border);
|
|
919
|
+
--gantt-surface: var(--moz-gantt-surface);
|
|
920
|
+
--gantt-header: var(--moz-gantt-header);
|
|
642
921
|
display: flex;
|
|
643
922
|
flex-direction: column;
|
|
644
923
|
height: 100%;
|
|
645
924
|
min-height: 180px;
|
|
646
|
-
overflow:
|
|
925
|
+
overflow: auto;
|
|
647
926
|
position: relative;
|
|
927
|
+
min-width: 0;
|
|
648
928
|
font: 13px var(--moz-font-family, sans-serif);
|
|
649
|
-
color: var(--
|
|
929
|
+
color: var(--moz-gantt-text);
|
|
650
930
|
background: var(--gantt-surface);
|
|
651
931
|
border: 1px solid var(--gantt-border);
|
|
652
932
|
border-radius: var(--moz-radius-control, 8px);
|
|
@@ -654,6 +934,7 @@
|
|
|
654
934
|
|
|
655
935
|
.moz-gantt-toolbar {
|
|
656
936
|
display: flex;
|
|
937
|
+
flex-shrink: 0;
|
|
657
938
|
align-items: center;
|
|
658
939
|
gap: 8px;
|
|
659
940
|
padding: 8px;
|
|
@@ -661,21 +942,90 @@
|
|
|
661
942
|
border-bottom: 1px solid var(--gantt-border);
|
|
662
943
|
}
|
|
663
944
|
|
|
945
|
+
.moz-gantt-search {
|
|
946
|
+
--moz-color-surface: var(--moz-gantt-surface);
|
|
947
|
+
--moz-color-text: var(--moz-gantt-text);
|
|
948
|
+
--moz-color-text-subtle: var(--moz-gantt-text);
|
|
949
|
+
--moz-color-border: var(--moz-gantt-border);
|
|
950
|
+
--moz-color-disabled: var(--moz-gantt-header);
|
|
951
|
+
position: relative;
|
|
952
|
+
flex: 1 1 180px;
|
|
953
|
+
min-width: 140px;
|
|
954
|
+
max-width: 320px;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.moz-gantt-search input {
|
|
958
|
+
padding-inline-end: 60px;
|
|
959
|
+
box-sizing: border-box;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
.moz-gantt-search input::placeholder {
|
|
963
|
+
opacity: 0.65;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.moz-gantt-search-navigation {
|
|
967
|
+
position: absolute;
|
|
968
|
+
inset-inline-end: 3px;
|
|
969
|
+
top: 50%;
|
|
970
|
+
transform: translateY(-50%);
|
|
971
|
+
display: flex;
|
|
972
|
+
gap: 2px;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
.moz-gantt-zoom-controls {
|
|
976
|
+
display: flex;
|
|
977
|
+
flex-shrink: 0;
|
|
978
|
+
gap: 4px;
|
|
979
|
+
margin-inline-start: auto;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
.moz-gantt-search-count {
|
|
983
|
+
white-space: nowrap;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
.moz-gantt-toolbar .moz-gantt-toolbar-icon {
|
|
987
|
+
--moz-color-icon-button-focus: var(--moz-gantt-header);
|
|
988
|
+
--moz-color-icon-button-hover: var(--moz-gantt-header);
|
|
989
|
+
--moz-color-icon-button-pressed: var(--moz-gantt-border);
|
|
990
|
+
color: var(--moz-gantt-text);
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
.moz-gantt-toolbar .moz-gantt-toolbar-icon:focus-visible {
|
|
994
|
+
outline: 2px solid var(--moz-gantt-accent);
|
|
995
|
+
outline-offset: -2px;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
.moz-gantt-toolbar .moz-gantt-toolbar-icon:disabled {
|
|
999
|
+
opacity: 0.45;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
.moz-gantt-toolbar-icon svg {
|
|
1003
|
+
display: block;
|
|
1004
|
+
width: 18px;
|
|
1005
|
+
height: 18px;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.moz-gantt-toolbar .moz-input-wrapper {
|
|
1009
|
+
max-width: 100%;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
664
1012
|
.moz-gantt-toolbar[hidden] {
|
|
665
1013
|
display: none;
|
|
666
1014
|
}
|
|
667
1015
|
|
|
668
1016
|
.moz-gantt-viewport {
|
|
669
1017
|
flex: 1;
|
|
670
|
-
min-height:
|
|
1018
|
+
min-height: 180px;
|
|
1019
|
+
min-width: 320px;
|
|
671
1020
|
}
|
|
672
1021
|
|
|
673
|
-
.moz-gantt-viewport:focus-visible {
|
|
674
|
-
outline: 2px solid var(--
|
|
1022
|
+
.moz-gantt-viewport:focus-visible, .moz-gantt .pv-rh:focus-visible, .moz-gantt .pv-row-header-resize-handle:focus-visible {
|
|
1023
|
+
outline: 2px solid var(--moz-gantt-accent);
|
|
675
1024
|
outline-offset: -2px;
|
|
676
1025
|
}
|
|
677
1026
|
|
|
678
1027
|
.moz-gantt-status {
|
|
1028
|
+
flex-shrink: 0;
|
|
679
1029
|
padding: 6px 10px;
|
|
680
1030
|
border-top: 1px solid var(--gantt-border);
|
|
681
1031
|
font-size: 12px;
|
|
@@ -684,6 +1034,45 @@
|
|
|
684
1034
|
white-space: nowrap;
|
|
685
1035
|
}
|
|
686
1036
|
|
|
1037
|
+
.moz-gantt-keyboard-help {
|
|
1038
|
+
position: absolute;
|
|
1039
|
+
width: 1px;
|
|
1040
|
+
height: 1px;
|
|
1041
|
+
overflow: hidden;
|
|
1042
|
+
clip-path: inset(50%);
|
|
1043
|
+
white-space: nowrap;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
.moz-gantt-tooltip {
|
|
1047
|
+
max-width: min(360px, 100vw - 16px);
|
|
1048
|
+
white-space: normal;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
.moz-gantt-context-menu [role=menuitem]:focus-visible {
|
|
1052
|
+
outline: 2px solid currentColor;
|
|
1053
|
+
outline-offset: -2px;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
.moz-gantt .moz-gantt-cell-muted {
|
|
1057
|
+
opacity: 0.7;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
.moz-gantt .moz-gantt-cell-emphasis {
|
|
1061
|
+
font-weight: 700;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
.moz-gantt .moz-gantt-cell-accent {
|
|
1065
|
+
color: var(--moz-gantt-accent);
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
.moz-gantt .moz-gantt-cell-warning {
|
|
1069
|
+
color: var(--moz-gantt-modified-bar);
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
.moz-gantt .moz-gantt-cell-success {
|
|
1073
|
+
color: var(--moz-gantt-added-bar);
|
|
1074
|
+
}
|
|
1075
|
+
|
|
687
1076
|
.moz-gantt .pv-pane {
|
|
688
1077
|
position: absolute;
|
|
689
1078
|
contain: strict;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vmscloud/moz-ui-gantt-vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Planner-based Canvas Gantt vue: viewing, search and zoom",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dev": "vite --config vite.config.demo.ts"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@vmscloud/moz-ui-gantt-core": "^0.
|
|
37
|
+
"@vmscloud/moz-ui-gantt-core": "^0.2.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"typescript": "^5.3.3",
|