@4399ywkf/editor 0.15.0 → 0.16.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/{DocView-4MOGGX4Z.js → DocView-7QBKHBU4.js} +4 -4
- package/dist/{DocView-4MOGGX4Z.js.map → DocView-7QBKHBU4.js.map} +1 -1
- package/dist/base-model.d.ts +28 -396
- package/dist/base-model.js +1 -1
- package/dist/base.d.ts +70 -2
- package/dist/base.js +11443 -10234
- package/dist/base.js.map +1 -1
- package/dist/{chunk-3KW24N3T.js → chunk-F4LWFKIA.js} +678 -3
- package/dist/chunk-F4LWFKIA.js.map +1 -0
- package/dist/{chunk-3BRBH7MU.js → chunk-S57WFYWY.js} +417 -236
- package/dist/chunk-S57WFYWY.js.map +1 -0
- package/dist/{chunk-KZEURCGO.js → chunk-X2JCKZP2.js} +5 -4
- package/dist/chunk-X2JCKZP2.js.map +1 -0
- package/dist/doc-standalone.js +677 -1
- package/dist/doc-standalone.js.map +1 -1
- package/dist/doc.js +3 -3
- package/dist/form-DqUOPVKI.d.ts +475 -0
- package/dist/index.js +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/chunk-3BRBH7MU.js.map +0 -1
- package/dist/chunk-3KW24N3T.js.map +0 -1
- package/dist/chunk-KZEURCGO.js.map +0 -1
|
@@ -583,6 +583,681 @@ ${declarations(editorThemeVars(token, resolved))}
|
|
|
583
583
|
`;
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
+
// src/components/base/base-board.style.ts
|
|
587
|
+
var baseBoardStyles = ({ token, isDark }) => {
|
|
588
|
+
const c = isDark ? {
|
|
589
|
+
text: token.colorText,
|
|
590
|
+
caption: token.colorTextSecondary,
|
|
591
|
+
placeholder: token.colorTextQuaternary,
|
|
592
|
+
border: token.colorBorderSecondary,
|
|
593
|
+
hover: token.colorFillSecondary,
|
|
594
|
+
bg: token.colorBgContainer,
|
|
595
|
+
base: token.colorBgLayout,
|
|
596
|
+
column: token.colorFillQuaternary,
|
|
597
|
+
danger: token.colorError
|
|
598
|
+
} : {
|
|
599
|
+
text: "#1f2329",
|
|
600
|
+
caption: "#646a73",
|
|
601
|
+
placeholder: "#8f959e",
|
|
602
|
+
border: "#dee0e3",
|
|
603
|
+
hover: "rgba(31, 35, 41, 0.08)",
|
|
604
|
+
bg: "#ffffff",
|
|
605
|
+
base: "#f5f6f7",
|
|
606
|
+
column: "#f2f3f5",
|
|
607
|
+
danger: "#f54a45"
|
|
608
|
+
};
|
|
609
|
+
const primary = token.colorPrimary;
|
|
610
|
+
const shadow = isDark ? "0 6px 24px rgba(0, 0, 0, 0.45)" : "0 4px 16px 0 rgba(31, 35, 41, 0.12), 0 0 1px 0 rgba(31, 35, 41, 0.18)";
|
|
611
|
+
return `
|
|
612
|
+
.tt-base-kanban-wrap {
|
|
613
|
+
position: relative;
|
|
614
|
+
flex: 1;
|
|
615
|
+
min-width: 0;
|
|
616
|
+
min-height: 0;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.tt-base-kanban {
|
|
620
|
+
display: flex;
|
|
621
|
+
align-items: flex-start;
|
|
622
|
+
gap: 12px;
|
|
623
|
+
height: 100%;
|
|
624
|
+
padding: 12px 16px;
|
|
625
|
+
overflow: auto hidden;
|
|
626
|
+
box-sizing: border-box;
|
|
627
|
+
user-select: none;
|
|
628
|
+
|
|
629
|
+
&.is-dragging {
|
|
630
|
+
cursor: grabbing;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.tt-base-kanban__column {
|
|
635
|
+
display: flex;
|
|
636
|
+
flex: none;
|
|
637
|
+
flex-direction: column;
|
|
638
|
+
width: 256px;
|
|
639
|
+
max-height: 100%;
|
|
640
|
+
border-radius: 8px;
|
|
641
|
+
background: ${c.column};
|
|
642
|
+
box-sizing: border-box;
|
|
643
|
+
|
|
644
|
+
&.is-over {
|
|
645
|
+
box-shadow: inset 0 0 0 1px ${primary};
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.tt-base-kanban__head {
|
|
650
|
+
display: flex;
|
|
651
|
+
flex: none;
|
|
652
|
+
align-items: center;
|
|
653
|
+
gap: 8px;
|
|
654
|
+
height: 40px;
|
|
655
|
+
padding: 0 8px 0 12px;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.tt-base-kanban__title {
|
|
659
|
+
font-size: 14px;
|
|
660
|
+
line-height: 22px;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.tt-base-kanban__users {
|
|
664
|
+
display: inline-flex;
|
|
665
|
+
min-width: 0;
|
|
666
|
+
gap: 4px;
|
|
667
|
+
overflow: hidden;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.tt-base-kanban__count {
|
|
671
|
+
color: ${c.caption};
|
|
672
|
+
font-size: 14px;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.tt-base-kanban__spacer {
|
|
676
|
+
flex: 1;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.tt-base-kanban__list {
|
|
680
|
+
display: flex;
|
|
681
|
+
flex: 0 1 auto;
|
|
682
|
+
flex-direction: column;
|
|
683
|
+
gap: 8px;
|
|
684
|
+
min-height: 8px;
|
|
685
|
+
padding: 0 8px 4px;
|
|
686
|
+
overflow: hidden auto;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
.tt-base-kanban__card {
|
|
690
|
+
flex: none;
|
|
691
|
+
border-radius: 6px;
|
|
692
|
+
outline: none;
|
|
693
|
+
cursor: pointer;
|
|
694
|
+
|
|
695
|
+
&:focus-visible .tt-base-card {
|
|
696
|
+
box-shadow: 0 0 0 2px ${primary};
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
&.is-dragging {
|
|
700
|
+
opacity: 0.4;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.tt-base-kanban__drop {
|
|
705
|
+
flex: none;
|
|
706
|
+
height: 3px;
|
|
707
|
+
margin: -2px 0;
|
|
708
|
+
border-radius: 2px;
|
|
709
|
+
background: ${primary};
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.tt-base-kanban__add {
|
|
713
|
+
display: flex;
|
|
714
|
+
flex: none;
|
|
715
|
+
align-items: center;
|
|
716
|
+
gap: 4px;
|
|
717
|
+
height: 36px;
|
|
718
|
+
margin: 0 8px 8px;
|
|
719
|
+
padding: 0 8px;
|
|
720
|
+
border: none;
|
|
721
|
+
border-radius: 6px;
|
|
722
|
+
background: transparent;
|
|
723
|
+
color: ${c.caption};
|
|
724
|
+
font-size: 14px;
|
|
725
|
+
cursor: pointer;
|
|
726
|
+
|
|
727
|
+
&:hover {
|
|
728
|
+
background: ${c.hover};
|
|
729
|
+
color: ${c.text};
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.tt-base-kanban__new {
|
|
734
|
+
display: flex;
|
|
735
|
+
flex: none;
|
|
736
|
+
align-items: center;
|
|
737
|
+
gap: 4px;
|
|
738
|
+
width: 256px;
|
|
739
|
+
height: 40px;
|
|
740
|
+
padding: 0 12px;
|
|
741
|
+
border: none;
|
|
742
|
+
border-radius: 8px;
|
|
743
|
+
background: ${c.column};
|
|
744
|
+
color: ${c.caption};
|
|
745
|
+
font-size: 14px;
|
|
746
|
+
cursor: pointer;
|
|
747
|
+
box-sizing: border-box;
|
|
748
|
+
|
|
749
|
+
&:hover {
|
|
750
|
+
color: ${c.text};
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
&.is-editing {
|
|
754
|
+
cursor: default;
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
.tt-base-kanban__ghost {
|
|
759
|
+
position: fixed;
|
|
760
|
+
left: 0;
|
|
761
|
+
top: 0;
|
|
762
|
+
z-index: 1200;
|
|
763
|
+
pointer-events: none;
|
|
764
|
+
|
|
765
|
+
.tt-base-card {
|
|
766
|
+
height: 100%;
|
|
767
|
+
box-shadow: ${shadow};
|
|
768
|
+
box-sizing: border-box;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
.tt-base-kanban-empty {
|
|
773
|
+
display: flex;
|
|
774
|
+
flex-direction: column;
|
|
775
|
+
align-items: center;
|
|
776
|
+
justify-content: center;
|
|
777
|
+
gap: 12px;
|
|
778
|
+
height: 100%;
|
|
779
|
+
color: ${c.caption};
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.tt-base-kanban-empty__button {
|
|
783
|
+
height: 32px;
|
|
784
|
+
padding: 0 16px;
|
|
785
|
+
border: 1px solid ${c.border};
|
|
786
|
+
border-radius: 6px;
|
|
787
|
+
background: ${c.bg};
|
|
788
|
+
color: ${c.text};
|
|
789
|
+
cursor: pointer;
|
|
790
|
+
|
|
791
|
+
&:hover {
|
|
792
|
+
border-color: ${primary};
|
|
793
|
+
color: ${primary};
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.tt-base-card {
|
|
798
|
+
display: flex;
|
|
799
|
+
flex-direction: column;
|
|
800
|
+
gap: 8px;
|
|
801
|
+
padding: 12px;
|
|
802
|
+
border: 1px solid ${c.border};
|
|
803
|
+
border-radius: 6px;
|
|
804
|
+
background: ${c.bg};
|
|
805
|
+
color: ${c.text};
|
|
806
|
+
font-size: 14px;
|
|
807
|
+
line-height: 22px;
|
|
808
|
+
overflow: hidden;
|
|
809
|
+
|
|
810
|
+
&.is-highlighted {
|
|
811
|
+
border-color: ${primary};
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.tt-base-card__cover {
|
|
816
|
+
height: 120px;
|
|
817
|
+
margin: -12px -12px 0;
|
|
818
|
+
background: ${c.base};
|
|
819
|
+
|
|
820
|
+
img {
|
|
821
|
+
display: block;
|
|
822
|
+
width: 100%;
|
|
823
|
+
height: 100%;
|
|
824
|
+
object-fit: cover;
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
.tt-base-card__title {
|
|
829
|
+
overflow: hidden;
|
|
830
|
+
font-weight: 600;
|
|
831
|
+
text-overflow: ellipsis;
|
|
832
|
+
white-space: nowrap;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
.tt-base-card__field {
|
|
836
|
+
display: flex;
|
|
837
|
+
flex-direction: column;
|
|
838
|
+
gap: 2px;
|
|
839
|
+
min-width: 0;
|
|
840
|
+
font-size: 13px;
|
|
841
|
+
line-height: 20px;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
.tt-base-card__label {
|
|
845
|
+
display: inline-flex;
|
|
846
|
+
align-items: center;
|
|
847
|
+
gap: 4px;
|
|
848
|
+
color: ${c.caption};
|
|
849
|
+
font-size: 12px;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.tt-base-card__text {
|
|
853
|
+
overflow: hidden;
|
|
854
|
+
color: ${c.text};
|
|
855
|
+
text-overflow: ellipsis;
|
|
856
|
+
white-space: nowrap;
|
|
857
|
+
|
|
858
|
+
&.is-multiline {
|
|
859
|
+
display: -webkit-box;
|
|
860
|
+
white-space: normal;
|
|
861
|
+
-webkit-box-orient: vertical;
|
|
862
|
+
-webkit-line-clamp: 2;
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
a.tt-base-card__text {
|
|
867
|
+
color: ${primary};
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
.tt-base-card__tags,
|
|
871
|
+
.tt-base-card__users,
|
|
872
|
+
.tt-base-card__files {
|
|
873
|
+
display: flex;
|
|
874
|
+
flex-wrap: wrap;
|
|
875
|
+
gap: 4px;
|
|
876
|
+
min-width: 0;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
.tt-base-card__files img {
|
|
880
|
+
width: 32px;
|
|
881
|
+
height: 32px;
|
|
882
|
+
border-radius: 4px;
|
|
883
|
+
object-fit: cover;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.tt-base-card__check {
|
|
887
|
+
display: inline-flex;
|
|
888
|
+
align-items: center;
|
|
889
|
+
justify-content: center;
|
|
890
|
+
width: 16px;
|
|
891
|
+
height: 16px;
|
|
892
|
+
border: 1px solid ${c.border};
|
|
893
|
+
border-radius: 4px;
|
|
894
|
+
color: #fff;
|
|
895
|
+
font-size: 12px;
|
|
896
|
+
|
|
897
|
+
&.is-checked {
|
|
898
|
+
border-color: ${primary};
|
|
899
|
+
background: ${primary};
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
.tt-base-card__progress {
|
|
904
|
+
display: inline-flex;
|
|
905
|
+
align-items: center;
|
|
906
|
+
gap: 6px;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
.tt-base-card__bar {
|
|
910
|
+
width: 96px;
|
|
911
|
+
height: 6px;
|
|
912
|
+
border-radius: 3px;
|
|
913
|
+
background: ${c.hover};
|
|
914
|
+
overflow: hidden;
|
|
915
|
+
|
|
916
|
+
span {
|
|
917
|
+
display: block;
|
|
918
|
+
height: 100%;
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
.tt-base-card-options {
|
|
923
|
+
display: flex;
|
|
924
|
+
flex-direction: column;
|
|
925
|
+
gap: 8px;
|
|
926
|
+
margin-bottom: 12px;
|
|
927
|
+
padding-bottom: 12px;
|
|
928
|
+
border-bottom: 1px solid ${c.border};
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.tt-base-card-options__row {
|
|
932
|
+
display: flex;
|
|
933
|
+
align-items: center;
|
|
934
|
+
justify-content: space-between;
|
|
935
|
+
gap: 12px;
|
|
936
|
+
min-height: 28px;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
.tt-base-card-options__select {
|
|
940
|
+
width: 160px;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
.tt-base-form {
|
|
944
|
+
display: flex;
|
|
945
|
+
flex: 1;
|
|
946
|
+
flex-direction: column;
|
|
947
|
+
min-width: 0;
|
|
948
|
+
min-height: 0;
|
|
949
|
+
background: ${c.base};
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
.tt-base-form__bar {
|
|
953
|
+
display: flex;
|
|
954
|
+
flex: none;
|
|
955
|
+
align-items: center;
|
|
956
|
+
gap: 8px;
|
|
957
|
+
height: 44px;
|
|
958
|
+
padding: 0 16px;
|
|
959
|
+
border-bottom: 1px solid ${c.border};
|
|
960
|
+
background: ${c.bg};
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
.tt-base-form__modes {
|
|
964
|
+
display: inline-flex;
|
|
965
|
+
gap: 2px;
|
|
966
|
+
padding: 2px;
|
|
967
|
+
border-radius: 6px;
|
|
968
|
+
background: ${c.hover};
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
.tt-base-form__mode {
|
|
972
|
+
height: 26px;
|
|
973
|
+
padding: 0 12px;
|
|
974
|
+
border: none;
|
|
975
|
+
border-radius: 4px;
|
|
976
|
+
background: transparent;
|
|
977
|
+
color: ${c.caption};
|
|
978
|
+
font-size: 13px;
|
|
979
|
+
cursor: pointer;
|
|
980
|
+
|
|
981
|
+
&.is-active {
|
|
982
|
+
background: ${c.bg};
|
|
983
|
+
color: ${c.text};
|
|
984
|
+
font-weight: 500;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
.tt-base-form__body {
|
|
989
|
+
display: flex;
|
|
990
|
+
flex: 1;
|
|
991
|
+
min-height: 0;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
.tt-base-form__canvas {
|
|
995
|
+
flex: 1;
|
|
996
|
+
min-width: 0;
|
|
997
|
+
padding: 24px 16px 48px;
|
|
998
|
+
overflow: auto;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
.tt-base-form__sheet {
|
|
1002
|
+
display: flex;
|
|
1003
|
+
flex-direction: column;
|
|
1004
|
+
gap: 8px;
|
|
1005
|
+
max-width: 720px;
|
|
1006
|
+
margin: 0 auto;
|
|
1007
|
+
padding: 32px 40px;
|
|
1008
|
+
border-radius: 8px;
|
|
1009
|
+
background: ${c.bg};
|
|
1010
|
+
box-sizing: border-box;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
.tt-base-form__title.ant-input {
|
|
1014
|
+
padding: 0;
|
|
1015
|
+
font-size: 24px;
|
|
1016
|
+
font-weight: 600;
|
|
1017
|
+
line-height: 36px;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
.tt-base-form__desc.ant-input {
|
|
1021
|
+
padding: 0;
|
|
1022
|
+
color: ${c.caption};
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.tt-base-form__question {
|
|
1026
|
+
display: flex;
|
|
1027
|
+
flex-direction: column;
|
|
1028
|
+
gap: 4px;
|
|
1029
|
+
margin-top: 8px;
|
|
1030
|
+
padding: 16px;
|
|
1031
|
+
border: 1px solid transparent;
|
|
1032
|
+
border-radius: 8px;
|
|
1033
|
+
|
|
1034
|
+
&:hover,
|
|
1035
|
+
&:focus-within {
|
|
1036
|
+
border-color: ${c.border};
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
&.is-dragging {
|
|
1040
|
+
opacity: 0.5;
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
.tt-base-form__q-head {
|
|
1045
|
+
display: flex;
|
|
1046
|
+
align-items: center;
|
|
1047
|
+
gap: 6px;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
.tt-base-form__drag {
|
|
1051
|
+
display: inline-flex;
|
|
1052
|
+
margin-left: -20px;
|
|
1053
|
+
padding: 0;
|
|
1054
|
+
border: none;
|
|
1055
|
+
background: transparent;
|
|
1056
|
+
color: ${c.placeholder};
|
|
1057
|
+
cursor: grab;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
.tt-base-form__index {
|
|
1061
|
+
color: ${c.caption};
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
.tt-base-form__q-title.ant-input {
|
|
1065
|
+
flex: 1;
|
|
1066
|
+
padding: 0;
|
|
1067
|
+
font-weight: 500;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
.tt-base-form__q-desc.ant-input {
|
|
1071
|
+
padding: 0;
|
|
1072
|
+
color: ${c.caption};
|
|
1073
|
+
font-size: 13px;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
.tt-base-form__star {
|
|
1077
|
+
color: ${c.danger};
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
.tt-base-form__preview {
|
|
1081
|
+
min-height: 32px;
|
|
1082
|
+
padding: 4px 11px;
|
|
1083
|
+
border: 1px solid ${c.border};
|
|
1084
|
+
border-radius: 6px;
|
|
1085
|
+
pointer-events: none;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
.tt-base-form__q-actions {
|
|
1089
|
+
display: flex;
|
|
1090
|
+
align-items: center;
|
|
1091
|
+
justify-content: flex-end;
|
|
1092
|
+
gap: 12px;
|
|
1093
|
+
color: ${c.caption};
|
|
1094
|
+
font-size: 13px;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
.tt-base-form__required {
|
|
1098
|
+
display: inline-flex;
|
|
1099
|
+
align-items: center;
|
|
1100
|
+
gap: 6px;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
.tt-base-form__side {
|
|
1104
|
+
display: flex;
|
|
1105
|
+
flex: none;
|
|
1106
|
+
flex-direction: column;
|
|
1107
|
+
width: 240px;
|
|
1108
|
+
border-left: 1px solid ${c.border};
|
|
1109
|
+
background: ${c.bg};
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
.tt-base-form__side-head,
|
|
1113
|
+
.tt-base-form__side-foot {
|
|
1114
|
+
display: flex;
|
|
1115
|
+
flex: none;
|
|
1116
|
+
align-items: center;
|
|
1117
|
+
justify-content: space-between;
|
|
1118
|
+
height: 44px;
|
|
1119
|
+
padding: 0 12px 0 16px;
|
|
1120
|
+
font-weight: 500;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
.tt-base-form__side-foot {
|
|
1124
|
+
border-top: 1px solid ${c.border};
|
|
1125
|
+
font-weight: 400;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
.tt-base-form__side-list {
|
|
1129
|
+
flex: 1;
|
|
1130
|
+
padding: 0 8px;
|
|
1131
|
+
overflow: auto;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
.tt-base-form__side-empty {
|
|
1135
|
+
padding: 24px 8px;
|
|
1136
|
+
color: ${c.placeholder};
|
|
1137
|
+
text-align: center;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
.tt-base-form__field {
|
|
1141
|
+
display: flex;
|
|
1142
|
+
align-items: center;
|
|
1143
|
+
gap: 6px;
|
|
1144
|
+
width: 100%;
|
|
1145
|
+
height: 32px;
|
|
1146
|
+
padding: 0 8px;
|
|
1147
|
+
border: none;
|
|
1148
|
+
border-radius: 6px;
|
|
1149
|
+
background: transparent;
|
|
1150
|
+
color: ${c.text};
|
|
1151
|
+
font-size: 14px;
|
|
1152
|
+
text-align: left;
|
|
1153
|
+
cursor: pointer;
|
|
1154
|
+
|
|
1155
|
+
&:hover:not(:disabled) {
|
|
1156
|
+
background: ${c.hover};
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
&:disabled {
|
|
1160
|
+
color: ${c.placeholder};
|
|
1161
|
+
cursor: not-allowed;
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
.tt-base-form__field-name {
|
|
1166
|
+
flex: 1;
|
|
1167
|
+
min-width: 0;
|
|
1168
|
+
overflow: hidden;
|
|
1169
|
+
text-overflow: ellipsis;
|
|
1170
|
+
white-space: nowrap;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
.tt-base-form__heading {
|
|
1174
|
+
margin: 0 0 4px;
|
|
1175
|
+
font-size: 24px;
|
|
1176
|
+
font-weight: 600;
|
|
1177
|
+
line-height: 36px;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
.tt-base-form__intro {
|
|
1181
|
+
margin: 0 0 8px;
|
|
1182
|
+
color: ${c.caption};
|
|
1183
|
+
white-space: pre-wrap;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
.tt-base-form__notice {
|
|
1187
|
+
padding: 8px 12px;
|
|
1188
|
+
border-radius: 6px;
|
|
1189
|
+
background: ${c.base};
|
|
1190
|
+
color: ${c.caption};
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
.tt-base-form__answer {
|
|
1194
|
+
display: flex;
|
|
1195
|
+
flex-direction: column;
|
|
1196
|
+
gap: 6px;
|
|
1197
|
+
padding: 16px 0;
|
|
1198
|
+
border-bottom: 1px solid ${c.border};
|
|
1199
|
+
|
|
1200
|
+
&.is-error .tt-base-form__input {
|
|
1201
|
+
border-color: ${c.danger};
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.tt-base-form__label {
|
|
1206
|
+
display: flex;
|
|
1207
|
+
gap: 4px;
|
|
1208
|
+
font-weight: 500;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
.tt-base-form__hint {
|
|
1212
|
+
color: ${c.caption};
|
|
1213
|
+
font-size: 13px;
|
|
1214
|
+
white-space: pre-wrap;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
.tt-base-form__input {
|
|
1218
|
+
min-height: 32px;
|
|
1219
|
+
padding: 0 4px;
|
|
1220
|
+
border: 1px solid ${c.border};
|
|
1221
|
+
border-radius: 6px;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
.tt-base-form__error {
|
|
1225
|
+
color: ${c.danger};
|
|
1226
|
+
font-size: 12px;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
.tt-base-form__submit {
|
|
1230
|
+
align-self: flex-start;
|
|
1231
|
+
margin-top: 16px;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
.tt-base-form__done {
|
|
1235
|
+
display: flex;
|
|
1236
|
+
flex-direction: column;
|
|
1237
|
+
align-items: center;
|
|
1238
|
+
gap: 12px;
|
|
1239
|
+
padding: 48px 0;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
.tt-base-form__done-icon {
|
|
1243
|
+
display: flex;
|
|
1244
|
+
align-items: center;
|
|
1245
|
+
justify-content: center;
|
|
1246
|
+
width: 48px;
|
|
1247
|
+
height: 48px;
|
|
1248
|
+
border-radius: 50%;
|
|
1249
|
+
background: ${primary};
|
|
1250
|
+
color: #fff;
|
|
1251
|
+
font-size: 24px;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
.tt-base-form__done-text {
|
|
1255
|
+
font-size: 18px;
|
|
1256
|
+
font-weight: 600;
|
|
1257
|
+
}
|
|
1258
|
+
`;
|
|
1259
|
+
};
|
|
1260
|
+
|
|
586
1261
|
// src/components/base/base-grid.style.ts
|
|
587
1262
|
var baseGridStyles = ({ token, isDark }) => {
|
|
588
1263
|
const thumb = isDark ? "rgba(255, 255, 255, 0.35)" : "rgba(31, 35, 41, 0.35)";
|
|
@@ -2251,6 +2926,6 @@ function createStyleContext(token, resolved) {
|
|
|
2251
2926
|
};
|
|
2252
2927
|
}
|
|
2253
2928
|
|
|
2254
|
-
export { DEFAULT_MAX_FILE_SIZES, EditorConfigProvider, baseGridStyles, baseViewStyles, createStyleContext, detectMediaKind, editorThemeCss, isDarkAntdToken, prepareForEmotion, resolveEditorTheme, resolveMaxSize, useEditorConfig };
|
|
2255
|
-
//# sourceMappingURL=chunk-
|
|
2256
|
-
//# sourceMappingURL=chunk-
|
|
2929
|
+
export { DEFAULT_MAX_FILE_SIZES, EditorConfigProvider, baseBoardStyles, baseGridStyles, baseViewStyles, createStyleContext, detectMediaKind, editorThemeCss, isDarkAntdToken, prepareForEmotion, resolveEditorTheme, resolveMaxSize, useEditorConfig };
|
|
2930
|
+
//# sourceMappingURL=chunk-F4LWFKIA.js.map
|
|
2931
|
+
//# sourceMappingURL=chunk-F4LWFKIA.js.map
|