@vmscloud/moz-ui-gantt-core 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/Interactions.d.ts +60 -0
- package/dist/MozGantt.d.ts +24 -4
- package/dist/SearchController.d.ts +2 -0
- package/dist/gantt/GanttCanvasRenderer.d.ts +27 -1
- package/dist/gantt/GanttEditor.d.ts +4 -4
- package/dist/gantt/features.d.ts +34 -0
- package/dist/index.cjs +1642 -214
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1644 -216
- package/dist/locale.d.ts +30 -0
- package/dist/pivotor/HeaderRenderer.d.ts +8 -0
- package/dist/pivotor/TimeAxisBuilder.d.ts +7 -0
- package/dist/pivotor/internal/timeUnit.d.ts +10 -8
- package/dist/pivotor/internal/timeZone.d.ts +15 -0
- package/dist/pivotor/internal/workingCalendar.d.ts +6 -0
- package/dist/pivotor/types.d.ts +44 -1
- package/dist/style.css +397 -8
- package/dist/theme.d.ts +17 -0
- package/dist/time.d.ts +17 -0
- package/dist/types.d.ts +85 -1
- package/dist/validate.d.ts +5 -3
- package/package.json +1 -1
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/dist/theme.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GanttTheme } from './gantt/features';
|
|
2
|
+
export declare const themeDefaults: GanttTheme;
|
|
3
|
+
/** Canvas는 CSS를 상속하지 않으므로 테마 변경 때만 계산된 토큰을 읽는다. */
|
|
4
|
+
export declare class GanttThemeObserver {
|
|
5
|
+
private element;
|
|
6
|
+
private onChange;
|
|
7
|
+
private observer;
|
|
8
|
+
private media;
|
|
9
|
+
private frame;
|
|
10
|
+
private last;
|
|
11
|
+
private overrides;
|
|
12
|
+
constructor(element: HTMLElement, onChange: (theme: GanttTheme) => void);
|
|
13
|
+
update(overrides?: Partial<GanttTheme>): GanttTheme;
|
|
14
|
+
private read;
|
|
15
|
+
private schedule;
|
|
16
|
+
destroy(): void;
|
|
17
|
+
}
|
package/dist/time.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TimeCalendar, TimeUnit } from './pivotor/types';
|
|
2
|
+
export interface GanttLocalDateTime {
|
|
3
|
+
year: number;
|
|
4
|
+
month: number;
|
|
5
|
+
day: number;
|
|
6
|
+
hour?: number;
|
|
7
|
+
minute?: number;
|
|
8
|
+
second?: number;
|
|
9
|
+
millisecond?: number;
|
|
10
|
+
}
|
|
11
|
+
export type GanttTimeDisambiguation = 'reject' | 'earlier' | 'later' | 'compatible';
|
|
12
|
+
/** 공장 날짜+시각을 절대 epoch ms로 변환한다. 모호하거나 존재하지 않는 DST 시각은 기본 거부한다. */
|
|
13
|
+
export declare function ganttDateTimeToEpoch(value: GanttLocalDateTime, timeZone?: string, disambiguation?: GanttTimeDisambiguation): number;
|
|
14
|
+
/** 표시 범위를 공장 시간대의 눈금 시작에 맞춘다. 입력·반환 모두 절대 ms다. */
|
|
15
|
+
export declare function floorGanttTime(ms: number, unit: TimeUnit, timeZone?: string, calendar?: Readonly<TimeCalendar>): number;
|
|
16
|
+
/** 현지 눈금을 전진/후진한다. DST가 있는 하루는 23/25시간일 수 있다. */
|
|
17
|
+
export declare function advanceGanttTime(ms: number, unit: TimeUnit, step: number, timeZone?: string, calendar?: Readonly<TimeCalendar>): number;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
import { Row, RowId, PivotRowField, TimeAxisSpec } from './pivotor/types';
|
|
2
2
|
import { BarColorFn, BarLabelFn, PaintBarFn } from './gantt/GanttCanvasRenderer';
|
|
3
|
-
import { SearchState } from './SearchController';
|
|
3
|
+
import { SearchState, SearchOptions } from './SearchController';
|
|
4
|
+
import { GanttDependency, GanttTheme } from './gantt/features';
|
|
5
|
+
import { GanttMessages } from './locale';
|
|
4
6
|
export type GanttRow = Row;
|
|
5
7
|
export type GanttRowId = RowId;
|
|
6
8
|
export type GanttTimeAxis = TimeAxisSpec;
|
|
7
9
|
export type GanttRowField = PivotRowField;
|
|
8
10
|
export type { SearchState, SearchMatch } from './SearchController';
|
|
9
11
|
export type { PaintBarFn, BarLabelFn, BarColorFn, BarPaintContext, BarColors, BarPattern } from './gantt/GanttCanvasRenderer';
|
|
12
|
+
export type { GanttDependency, GanttTheme } from './gantt/features';
|
|
13
|
+
export type { GanttMessages } from './locale';
|
|
14
|
+
export type { SearchOptions } from './SearchController';
|
|
15
|
+
export interface GanttMenuItem {
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface GanttTooltip {
|
|
21
|
+
fields?: readonly string[];
|
|
22
|
+
format?: (row: GanttRow) => string;
|
|
23
|
+
}
|
|
24
|
+
/** 외부 편집기/조회 저장소를 구독하는 읽기 전용 연결. write나 프레임워크 의존성이 없다. */
|
|
25
|
+
export interface GanttDataSource {
|
|
26
|
+
getSnapshot(): readonly GanttRow[];
|
|
27
|
+
subscribe(listener: () => void): () => void;
|
|
28
|
+
}
|
|
10
29
|
export interface GanttOptions {
|
|
11
30
|
data?: readonly GanttRow[];
|
|
12
31
|
/** A unique string or finite number per task. Defaults to id. */
|
|
@@ -21,6 +40,21 @@ export interface GanttOptions {
|
|
|
21
40
|
rowLayout?: 'separate' | 'overlay';
|
|
22
41
|
searchFields?: readonly string[];
|
|
23
42
|
searchText?: (row: GanttRow) => string;
|
|
43
|
+
searchOptions?: SearchOptions;
|
|
44
|
+
locale?: string;
|
|
45
|
+
messages?: Partial<GanttMessages>;
|
|
46
|
+
theme?: Partial<GanttTheme>;
|
|
47
|
+
milestoneField?: string;
|
|
48
|
+
levelField?: string;
|
|
49
|
+
lockedField?: string;
|
|
50
|
+
dirtyField?: string;
|
|
51
|
+
removedField?: string;
|
|
52
|
+
hideRemovedBars?: boolean;
|
|
53
|
+
dependencies?: readonly GanttDependency[];
|
|
54
|
+
tooltip?: boolean | GanttTooltip;
|
|
55
|
+
contextMenu?: boolean | readonly GanttMenuItem[];
|
|
56
|
+
/** 행 머리글 경계의 포인터·키보드 너비 조절. */
|
|
57
|
+
splitter?: boolean;
|
|
24
58
|
toolbar?: boolean;
|
|
25
59
|
disabled?: boolean;
|
|
26
60
|
loading?: boolean;
|
|
@@ -32,6 +66,7 @@ export interface GanttOptions {
|
|
|
32
66
|
barLabel?: BarLabelFn;
|
|
33
67
|
barColor?: BarColorFn;
|
|
34
68
|
paintBar?: PaintBarFn;
|
|
69
|
+
barShape?: 'rectangle' | 'rounded' | 'diamond';
|
|
35
70
|
textCacheCapacity?: number;
|
|
36
71
|
}
|
|
37
72
|
export interface GanttEvents {
|
|
@@ -44,5 +79,54 @@ export interface GanttEvents {
|
|
|
44
79
|
row: GanttRow;
|
|
45
80
|
event: MouseEvent;
|
|
46
81
|
};
|
|
82
|
+
taskActivate: {
|
|
83
|
+
id: GanttRowId;
|
|
84
|
+
row: GanttRow;
|
|
85
|
+
source: 'pointer' | 'keyboard';
|
|
86
|
+
event: MouseEvent | KeyboardEvent;
|
|
87
|
+
};
|
|
88
|
+
taskDoubleClick: {
|
|
89
|
+
id: GanttRowId;
|
|
90
|
+
row: GanttRow;
|
|
91
|
+
event: MouseEvent;
|
|
92
|
+
};
|
|
93
|
+
milestoneClick: {
|
|
94
|
+
id: GanttRowId;
|
|
95
|
+
row: GanttRow;
|
|
96
|
+
event: MouseEvent | KeyboardEvent;
|
|
97
|
+
};
|
|
98
|
+
milestoneDoubleClick: {
|
|
99
|
+
id: GanttRowId;
|
|
100
|
+
row: GanttRow;
|
|
101
|
+
event: MouseEvent;
|
|
102
|
+
};
|
|
103
|
+
rowClick: {
|
|
104
|
+
field: string;
|
|
105
|
+
rowPath: readonly unknown[];
|
|
106
|
+
ids: readonly GanttRowId[];
|
|
107
|
+
event: MouseEvent | KeyboardEvent;
|
|
108
|
+
};
|
|
109
|
+
rowDoubleClick: GanttEvents['rowClick'];
|
|
110
|
+
taskContextMenu: GanttEvents['contextMenu'];
|
|
111
|
+
milestoneContextMenu: GanttEvents['contextMenu'];
|
|
112
|
+
rowContextMenu: GanttEvents['rowClick'];
|
|
113
|
+
contextMenu: {
|
|
114
|
+
id: GanttRowId;
|
|
115
|
+
row: GanttRow;
|
|
116
|
+
event: MouseEvent | KeyboardEvent;
|
|
117
|
+
};
|
|
118
|
+
menuAction: {
|
|
119
|
+
id: GanttRowId;
|
|
120
|
+
row: GanttRow;
|
|
121
|
+
action: string;
|
|
122
|
+
event: MouseEvent | KeyboardEvent;
|
|
123
|
+
};
|
|
124
|
+
selectionChange: {
|
|
125
|
+
id: GanttRowId | null;
|
|
126
|
+
row: GanttRow | null;
|
|
127
|
+
};
|
|
128
|
+
dataError: {
|
|
129
|
+
error: unknown;
|
|
130
|
+
};
|
|
47
131
|
}
|
|
48
132
|
export type { GanttTaskPatch as GanttDataPatch } from './data/GanttTaskStore';
|
package/dist/validate.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { GanttOptions, GanttRow } from './types';
|
|
1
|
+
import { GanttOptions, GanttRow, GanttRowId } from './types';
|
|
2
2
|
export declare function toTime(value: unknown): number;
|
|
3
3
|
export declare function validateSettings(options: GanttOptions, timeAxisChanged?: boolean): void;
|
|
4
|
-
|
|
5
|
-
export declare function
|
|
4
|
+
export declare function validateRowSortFields(row: GanttRow, options: Pick<GanttOptions, 'rowFields'>): void;
|
|
5
|
+
export declare function validateDependencies(options: GanttOptions, hasRow: (id: GanttRowId) => boolean): void;
|
|
6
|
+
/** 입력 행만 정규화한다. patch 검증도 원본 row를 변경하지 않는다. */
|
|
7
|
+
export declare function normalizeRow(row: GanttRow, options: Pick<GanttOptions, 'idField' | 'startField' | 'endField' | 'milestoneField' | 'levelField' | 'dirtyField' | 'removedField' | 'lockedField'>): GanttRow;
|
|
6
8
|
export declare function validateOptions(options: GanttOptions): GanttRow[];
|