cx 26.1.4 → 26.1.5
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/build/ui/Widget.d.ts +1 -1
- package/build/ui/exprHelpers.d.ts +6 -2
- package/build/ui/exprHelpers.js +9 -3
- package/build/ui/tpl.d.ts +5 -3
- package/build/ui/tpl.js +11 -4
- package/build/widgets/overlay/Overlay.d.ts +3 -3
- package/dist/manifest.js +827 -824
- package/dist/ui.js +30 -22
- package/dist/util.js +4 -0
- package/dist/widgets.js +395 -320
- package/package.json +1 -1
- package/src/ui/exprHelpers.ts +96 -95
- package/src/ui/tpl.spec.ts +69 -0
- package/src/ui/tpl.ts +17 -4
package/dist/widgets.js
CHANGED
|
@@ -542,171 +542,203 @@ function restoreDefaultIcons() {
|
|
|
542
542
|
|
|
543
543
|
registerIcon(
|
|
544
544
|
"calendar",
|
|
545
|
-
(props) => {
|
|
546
|
-
return jsxs(
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
545
|
+
({ key, ...props }) => {
|
|
546
|
+
return jsxs(
|
|
547
|
+
"svg",
|
|
548
|
+
{
|
|
549
|
+
...props,
|
|
550
|
+
viewBox: "0 0 32 32",
|
|
551
|
+
children: [
|
|
552
|
+
jsx("path", {
|
|
553
|
+
d: "M4 3h6m10 0h6",
|
|
554
|
+
fill: "none",
|
|
555
|
+
stroke: "currentColor",
|
|
556
|
+
strokeWidth: "2",
|
|
557
|
+
}),
|
|
558
|
+
jsx("path", {
|
|
559
|
+
d: "M19 21h4v4h-4z",
|
|
560
|
+
fill: "currentColor",
|
|
561
|
+
}),
|
|
562
|
+
jsx("path", {
|
|
563
|
+
d: "M3 25h24M3 21h24M3 17h24M7 28V13m-4 0h24M11 28V13.2M15 28V13.27M19 28V13.03M23 28V13.5",
|
|
564
|
+
fill: "none",
|
|
565
|
+
stroke: "currentColor",
|
|
566
|
+
}),
|
|
567
|
+
jsx("path", {
|
|
568
|
+
fill: "currentColor",
|
|
569
|
+
d: "M10 8h10v2H10z",
|
|
570
|
+
}),
|
|
571
|
+
jsx("path", {
|
|
572
|
+
fill: "none",
|
|
573
|
+
stroke: "currentColor",
|
|
574
|
+
strokeWidth: "2",
|
|
575
|
+
d: "M3 5h24v24H3z",
|
|
576
|
+
}),
|
|
577
|
+
],
|
|
578
|
+
},
|
|
579
|
+
key,
|
|
580
|
+
);
|
|
577
581
|
},
|
|
578
582
|
true,
|
|
579
583
|
);
|
|
580
584
|
|
|
581
585
|
var CheckIcon = registerIcon(
|
|
582
586
|
"check",
|
|
583
|
-
(props) => {
|
|
584
|
-
return jsx(
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
587
|
+
({ key, ...props }) => {
|
|
588
|
+
return jsx(
|
|
589
|
+
"svg",
|
|
590
|
+
{
|
|
591
|
+
...props,
|
|
592
|
+
viewBox: "0 0 64 64",
|
|
593
|
+
children: jsx("path", {
|
|
594
|
+
d: "M7.136 42.94l20.16 14.784 29.568-40.32-9.72-7.128-22.598 30.816-10.44-7.656z",
|
|
595
|
+
fill: "currentColor",
|
|
596
|
+
}),
|
|
597
|
+
},
|
|
598
|
+
key,
|
|
599
|
+
);
|
|
592
600
|
},
|
|
593
601
|
true,
|
|
594
602
|
);
|
|
595
603
|
|
|
596
604
|
var ClearIcon = registerIcon(
|
|
597
605
|
"clear",
|
|
598
|
-
(props) => {
|
|
599
|
-
return jsx(
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
606
|
+
({ key, ...props }) => {
|
|
607
|
+
return jsx(
|
|
608
|
+
"svg",
|
|
609
|
+
{
|
|
610
|
+
...props,
|
|
611
|
+
viewBox: "0 0 32 32",
|
|
612
|
+
children: jsx("path", {
|
|
613
|
+
fill: "currentColor",
|
|
614
|
+
strokeWidth: "1",
|
|
615
|
+
stroke: "currentColor",
|
|
616
|
+
d: "M16.9 16l4.92-4.92c.24-.24.24-.6 0-.84s-.6-.24-.84 0l-4.92 4.92-5.04-4.98c-.24-.24-.6-.24-.84 0s-.24.6 0 .84L15.16 16l-4.98 4.98c-.24.24-.24.6 0 .84s.6.24.84 0L16 16.84l4.98 4.98c.24.24.6.24.84 0s.24-.6 0-.84L16.9 16z",
|
|
617
|
+
}),
|
|
618
|
+
},
|
|
619
|
+
key,
|
|
620
|
+
);
|
|
609
621
|
},
|
|
610
622
|
true,
|
|
611
623
|
);
|
|
612
624
|
|
|
613
625
|
registerIcon(
|
|
614
626
|
"close",
|
|
615
|
-
(props) => {
|
|
616
|
-
return jsx(
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
627
|
+
({ key, ...props }) => {
|
|
628
|
+
return jsx(
|
|
629
|
+
"svg",
|
|
630
|
+
{
|
|
631
|
+
...props,
|
|
632
|
+
viewBox: "0 0 32 32",
|
|
633
|
+
children: jsx("path", {
|
|
634
|
+
fill: "currentColor",
|
|
635
|
+
strokeWidth: "1",
|
|
636
|
+
stroke: "currentColor",
|
|
637
|
+
d: "M17.8 16l9.84-9.84c.48-.48.48-1.2 0-1.68s-1.2-.48-1.68 0l-9.84 9.84L6.04 4.36c-.48-.48-1.2-.48-1.68 0s-.48 1.2 0 1.68L14.32 16l-9.96 9.96c-.48.48-.48 1.2 0 1.68s1.2.48 1.68 0L16 17.68l9.96 9.96c.48.48 1.2.48 1.68 0s.48-1.2 0-1.68L17.8 16z",
|
|
638
|
+
}),
|
|
639
|
+
},
|
|
640
|
+
key,
|
|
641
|
+
);
|
|
626
642
|
},
|
|
627
643
|
true,
|
|
628
644
|
);
|
|
629
645
|
|
|
630
646
|
var DropdownIcon = registerIcon(
|
|
631
647
|
"drop-down",
|
|
632
|
-
(props) => {
|
|
633
|
-
return jsx(
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
648
|
+
({ key, ...props }) => {
|
|
649
|
+
return jsx(
|
|
650
|
+
"svg",
|
|
651
|
+
{
|
|
652
|
+
...props,
|
|
653
|
+
viewBox: "0 0 20 20",
|
|
654
|
+
children: jsx("path", {
|
|
655
|
+
fill: "currentColor",
|
|
656
|
+
strokeWidth: "0",
|
|
657
|
+
stroke: "currentColor",
|
|
658
|
+
d: "M4.516 8.147L10.01 12.5l5.474-4.33-.473-.65-5 3.98-5-4z",
|
|
659
|
+
}),
|
|
660
|
+
},
|
|
661
|
+
key,
|
|
662
|
+
);
|
|
643
663
|
},
|
|
644
664
|
true,
|
|
645
665
|
);
|
|
646
666
|
|
|
647
667
|
registerIcon(
|
|
648
668
|
"folder",
|
|
649
|
-
(props) => {
|
|
650
|
-
return jsx(
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
669
|
+
({ key, ...props }) => {
|
|
670
|
+
return jsx(
|
|
671
|
+
"svg",
|
|
672
|
+
{
|
|
673
|
+
...props,
|
|
674
|
+
viewBox: "0 0 16 16",
|
|
675
|
+
children: jsx("path", {
|
|
676
|
+
d: "M1 5h13v9H1zm1 0h6L7 3H3z",
|
|
677
|
+
fill: "currentColor",
|
|
678
|
+
stroke: "none",
|
|
679
|
+
}),
|
|
680
|
+
},
|
|
681
|
+
key,
|
|
682
|
+
);
|
|
659
683
|
},
|
|
660
684
|
true,
|
|
661
685
|
);
|
|
662
686
|
|
|
663
687
|
registerIcon(
|
|
664
688
|
"folder-open",
|
|
665
|
-
(props) => {
|
|
666
|
-
return jsxs(
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
689
|
+
({ key, ...props }) => {
|
|
690
|
+
return jsxs(
|
|
691
|
+
"svg",
|
|
692
|
+
{
|
|
693
|
+
...props,
|
|
694
|
+
viewBox: "0 0 16 16",
|
|
695
|
+
children: [
|
|
696
|
+
jsx("path", {
|
|
697
|
+
d: "M0 5v7l2.5-6H13V5zm1 0h6L6 3H2z",
|
|
698
|
+
fill: "currentColor",
|
|
699
|
+
stroke: "none",
|
|
700
|
+
}),
|
|
701
|
+
jsx("path", {
|
|
702
|
+
d: "M3 7h13l-3 7H0z",
|
|
703
|
+
fill: "currentColor",
|
|
704
|
+
stroke: "none",
|
|
705
|
+
}),
|
|
706
|
+
],
|
|
707
|
+
},
|
|
708
|
+
key,
|
|
709
|
+
);
|
|
682
710
|
},
|
|
683
711
|
true,
|
|
684
712
|
);
|
|
685
713
|
|
|
686
714
|
registerIcon(
|
|
687
715
|
"menu",
|
|
688
|
-
(props) => {
|
|
689
|
-
return jsxs(
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
716
|
+
({ key, ...props }) => {
|
|
717
|
+
return jsxs(
|
|
718
|
+
"svg",
|
|
719
|
+
{
|
|
720
|
+
...props,
|
|
721
|
+
viewBox: "0 0 24 24",
|
|
722
|
+
children: [
|
|
723
|
+
jsx("path", {
|
|
724
|
+
d: "M0 0h24v24H0z",
|
|
725
|
+
fill: "none",
|
|
726
|
+
}),
|
|
727
|
+
jsx("path", {
|
|
728
|
+
d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",
|
|
729
|
+
fill: "currentColor",
|
|
730
|
+
}),
|
|
731
|
+
],
|
|
732
|
+
},
|
|
733
|
+
key,
|
|
734
|
+
);
|
|
703
735
|
},
|
|
704
736
|
true,
|
|
705
737
|
);
|
|
706
738
|
|
|
707
739
|
registerIcon(
|
|
708
740
|
"loading",
|
|
709
|
-
(props) => {
|
|
741
|
+
({ key, ...props }) => {
|
|
710
742
|
let style = {
|
|
711
743
|
animation: "linear infinite 0.5s cx-rotate",
|
|
712
744
|
};
|
|
@@ -715,173 +747,189 @@ registerIcon(
|
|
|
715
747
|
...props,
|
|
716
748
|
style,
|
|
717
749
|
};
|
|
718
|
-
return jsx(
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
750
|
+
return jsx(
|
|
751
|
+
"svg",
|
|
752
|
+
{
|
|
753
|
+
...props,
|
|
754
|
+
viewBox: "0 0 50 50",
|
|
755
|
+
children: jsx("path", {
|
|
756
|
+
fill: "currentColor",
|
|
757
|
+
d: "M43.94 25.14c0-10.3-8.37-18.68-18.7-18.68-10.3 0-18.67 8.37-18.67 18.68h4.07c0-8.07 6.54-14.6 14.6-14.6 8.08 0 14.63 6.53 14.63 14.6h4.07z",
|
|
758
|
+
}),
|
|
759
|
+
},
|
|
760
|
+
key,
|
|
761
|
+
);
|
|
726
762
|
},
|
|
727
763
|
true,
|
|
728
764
|
);
|
|
729
765
|
|
|
730
766
|
registerIcon(
|
|
731
767
|
"search",
|
|
732
|
-
(props) => {
|
|
733
|
-
return jsx(
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
768
|
+
({ key, ...props }) => {
|
|
769
|
+
return jsx(
|
|
770
|
+
"svg",
|
|
771
|
+
{
|
|
772
|
+
...props,
|
|
773
|
+
viewBox: "0 0 32 32",
|
|
774
|
+
children: jsx("path", {
|
|
775
|
+
fill: "currentColor",
|
|
776
|
+
d: "M25.595 22.036l-5.26-5.075c.75-1.18 1.206-2.56 1.206-4.05 0-4.32-3.63-7.82-8.103-7.82-4.477 0-8.107 3.503-8.107 7.82 0 4.32 3.63 7.825 8.106 7.825 1.544 0 2.972-.44 4.198-1.162l5.26 5.074c.37.356.98.354 1.35 0l1.352-1.304c.37-.357.37-.947 0-1.304zm-12.16-3.91c-2.985 0-5.405-2.336-5.405-5.216 0-2.88 2.42-5.214 5.405-5.214 2.984 0 5.404 2.335 5.404 5.214 0 2.88-2.42 5.215-5.407 5.215z",
|
|
777
|
+
}),
|
|
778
|
+
},
|
|
779
|
+
key,
|
|
780
|
+
);
|
|
741
781
|
},
|
|
742
782
|
true,
|
|
743
783
|
);
|
|
744
784
|
|
|
745
785
|
registerIcon(
|
|
746
786
|
"cx",
|
|
747
|
-
(props) => {
|
|
748
|
-
return jsx(
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
787
|
+
({ key, ...props }) => {
|
|
788
|
+
return jsx(
|
|
789
|
+
"svg",
|
|
790
|
+
{
|
|
791
|
+
...props,
|
|
792
|
+
viewBox: "-347 249.7 48 48",
|
|
793
|
+
children: jsxs("g", {
|
|
794
|
+
children: [
|
|
795
|
+
jsx("path", {
|
|
796
|
+
fill: "currentColor",
|
|
797
|
+
opacity: "0.7",
|
|
798
|
+
d: "M-337.1 273.16l-4.23-7.33h8.46z",
|
|
799
|
+
}),
|
|
800
|
+
jsx("path", {
|
|
801
|
+
fill: "currentColor",
|
|
802
|
+
d: "M-318.32 273.16l-4.23-7.33h8.46z",
|
|
803
|
+
}),
|
|
804
|
+
jsx("path", {
|
|
805
|
+
fill: "currentColor",
|
|
806
|
+
opacity: "0.7",
|
|
807
|
+
d: "M-337.53 273.43h-8.45l4.22-7.33z",
|
|
808
|
+
}),
|
|
809
|
+
jsx("path", {
|
|
810
|
+
fill: "currentColor",
|
|
811
|
+
d: "M-309.38 273.43h-8.46l4.23-7.33z",
|
|
812
|
+
}),
|
|
813
|
+
jsx("path", {
|
|
814
|
+
fill: "currentColor",
|
|
815
|
+
opacity: "0.7",
|
|
816
|
+
d: "M-332.4 265.03l-4.22-7.33h8.46z",
|
|
817
|
+
}),
|
|
818
|
+
jsx("path", {
|
|
819
|
+
fill: "currentColor",
|
|
820
|
+
d: "M-304.24 265.03l-4.23-7.33h8.45z",
|
|
821
|
+
}),
|
|
822
|
+
jsx("path", {
|
|
823
|
+
fill: "currentColor",
|
|
824
|
+
d: "M-322.97 265.03l-4.28-7.33h8.5z",
|
|
825
|
+
}),
|
|
826
|
+
jsx("path", {
|
|
827
|
+
fill: "currentColor",
|
|
828
|
+
opacity: "0.7",
|
|
829
|
+
d: "M-332.87 265.3h-8.46l4.23-7.33z",
|
|
830
|
+
}),
|
|
831
|
+
jsx("path", {
|
|
832
|
+
fill: "currentColor",
|
|
833
|
+
opacity: "0.7",
|
|
834
|
+
d: "M-323.45 265.3h-8.46l4.2-7.33z",
|
|
835
|
+
}),
|
|
836
|
+
jsx("path", {
|
|
837
|
+
fill: "currentColor",
|
|
838
|
+
d: "M-314.1 265.3h-8.45l4.23-7.33z",
|
|
839
|
+
}),
|
|
840
|
+
jsx("path", {
|
|
841
|
+
fill: "currentColor",
|
|
842
|
+
d: "M-308.9 273.16l-4.23-7.33h8.46z",
|
|
843
|
+
}),
|
|
844
|
+
jsx("path", {
|
|
845
|
+
fill: "currentColor",
|
|
846
|
+
d: "M-304.67 265.3h-8.46l4.23-7.33z",
|
|
847
|
+
}),
|
|
848
|
+
jsx("path", {
|
|
849
|
+
fill: "currentColor",
|
|
850
|
+
d: "M-314.1 281.57h-8.45l4.23-7.33z",
|
|
851
|
+
}),
|
|
852
|
+
jsx("path", {
|
|
853
|
+
fill: "currentColor",
|
|
854
|
+
d: "M-313.6 281.3l-4.24-7.33h8.46z",
|
|
855
|
+
}),
|
|
856
|
+
jsx("path", {
|
|
857
|
+
fill: "currentColor",
|
|
858
|
+
d: "M-318.32 289.43l-4.23-7.33h8.46z",
|
|
859
|
+
}),
|
|
860
|
+
jsx("path", {
|
|
861
|
+
fill: "currentColor",
|
|
862
|
+
d: "M-304.67 281.57h-8.46l4.23-7.33z",
|
|
863
|
+
}),
|
|
864
|
+
jsx("path", {
|
|
865
|
+
fill: "currentColor",
|
|
866
|
+
d: "M-308.9 289.43l-4.23-7.33h8.46z",
|
|
867
|
+
}),
|
|
868
|
+
jsx("path", {
|
|
869
|
+
fill: "currentColor",
|
|
870
|
+
opacity: "0.7",
|
|
871
|
+
d: "M-341.76 281.3l-4.22-7.33h8.45z",
|
|
872
|
+
}),
|
|
873
|
+
jsx("path", {
|
|
874
|
+
fill: "currentColor",
|
|
875
|
+
opacity: "0.7",
|
|
876
|
+
d: "M-332.87 281.57h-8.46l4.23-7.33z",
|
|
877
|
+
}),
|
|
878
|
+
jsx("path", {
|
|
879
|
+
fill: "currentColor",
|
|
880
|
+
opacity: "0.7",
|
|
881
|
+
d: "M-337.1 289.43l-4.23-7.33h8.46z",
|
|
882
|
+
}),
|
|
883
|
+
jsx("path", {
|
|
884
|
+
fill: "currentColor",
|
|
885
|
+
opacity: "0.7",
|
|
886
|
+
d: "M-327.68 289.43l-4.23-7.33h8.43z",
|
|
887
|
+
}),
|
|
888
|
+
jsx("path", {
|
|
889
|
+
fill: "currentColor",
|
|
890
|
+
opacity: "0.7",
|
|
891
|
+
d: "M-328.16 289.7h-8.46l4.23-7.33z",
|
|
892
|
+
}),
|
|
893
|
+
jsx("path", {
|
|
894
|
+
fill: "currentColor",
|
|
895
|
+
d: "M-318.75 289.7h-8.5l4.28-7.33z",
|
|
896
|
+
}),
|
|
897
|
+
jsx("path", {
|
|
898
|
+
fill: "currentColor",
|
|
899
|
+
d: "M-300.02 289.7h-8.45l4.23-7.33z",
|
|
900
|
+
}),
|
|
901
|
+
],
|
|
902
|
+
}),
|
|
903
|
+
},
|
|
904
|
+
key,
|
|
905
|
+
);
|
|
906
|
+
},
|
|
907
|
+
true,
|
|
908
|
+
);
|
|
909
|
+
|
|
910
|
+
registerIcon(
|
|
911
|
+
"file",
|
|
912
|
+
({ key, ...props }) => {
|
|
913
|
+
return jsxs(
|
|
914
|
+
"svg",
|
|
915
|
+
{
|
|
916
|
+
...props,
|
|
917
|
+
viewBox: "0 0 16 16",
|
|
752
918
|
children: [
|
|
753
919
|
jsx("path", {
|
|
920
|
+
d: "M2 2h5v5h5v7H2z",
|
|
754
921
|
fill: "currentColor",
|
|
755
|
-
|
|
756
|
-
d: "M-337.1 273.16l-4.23-7.33h8.46z",
|
|
757
|
-
}),
|
|
758
|
-
jsx("path", {
|
|
759
|
-
fill: "currentColor",
|
|
760
|
-
d: "M-318.32 273.16l-4.23-7.33h8.46z",
|
|
761
|
-
}),
|
|
762
|
-
jsx("path", {
|
|
763
|
-
fill: "currentColor",
|
|
764
|
-
opacity: "0.7",
|
|
765
|
-
d: "M-337.53 273.43h-8.45l4.22-7.33z",
|
|
766
|
-
}),
|
|
767
|
-
jsx("path", {
|
|
768
|
-
fill: "currentColor",
|
|
769
|
-
d: "M-309.38 273.43h-8.46l4.23-7.33z",
|
|
770
|
-
}),
|
|
771
|
-
jsx("path", {
|
|
772
|
-
fill: "currentColor",
|
|
773
|
-
opacity: "0.7",
|
|
774
|
-
d: "M-332.4 265.03l-4.22-7.33h8.46z",
|
|
775
|
-
}),
|
|
776
|
-
jsx("path", {
|
|
777
|
-
fill: "currentColor",
|
|
778
|
-
d: "M-304.24 265.03l-4.23-7.33h8.45z",
|
|
779
|
-
}),
|
|
780
|
-
jsx("path", {
|
|
781
|
-
fill: "currentColor",
|
|
782
|
-
d: "M-322.97 265.03l-4.28-7.33h8.5z",
|
|
783
|
-
}),
|
|
784
|
-
jsx("path", {
|
|
785
|
-
fill: "currentColor",
|
|
786
|
-
opacity: "0.7",
|
|
787
|
-
d: "M-332.87 265.3h-8.46l4.23-7.33z",
|
|
788
|
-
}),
|
|
789
|
-
jsx("path", {
|
|
790
|
-
fill: "currentColor",
|
|
791
|
-
opacity: "0.7",
|
|
792
|
-
d: "M-323.45 265.3h-8.46l4.2-7.33z",
|
|
793
|
-
}),
|
|
794
|
-
jsx("path", {
|
|
795
|
-
fill: "currentColor",
|
|
796
|
-
d: "M-314.1 265.3h-8.45l4.23-7.33z",
|
|
797
|
-
}),
|
|
798
|
-
jsx("path", {
|
|
799
|
-
fill: "currentColor",
|
|
800
|
-
d: "M-308.9 273.16l-4.23-7.33h8.46z",
|
|
801
|
-
}),
|
|
802
|
-
jsx("path", {
|
|
803
|
-
fill: "currentColor",
|
|
804
|
-
d: "M-304.67 265.3h-8.46l4.23-7.33z",
|
|
805
|
-
}),
|
|
806
|
-
jsx("path", {
|
|
807
|
-
fill: "currentColor",
|
|
808
|
-
d: "M-314.1 281.57h-8.45l4.23-7.33z",
|
|
809
|
-
}),
|
|
810
|
-
jsx("path", {
|
|
811
|
-
fill: "currentColor",
|
|
812
|
-
d: "M-313.6 281.3l-4.24-7.33h8.46z",
|
|
813
|
-
}),
|
|
814
|
-
jsx("path", {
|
|
815
|
-
fill: "currentColor",
|
|
816
|
-
d: "M-318.32 289.43l-4.23-7.33h8.46z",
|
|
817
|
-
}),
|
|
818
|
-
jsx("path", {
|
|
819
|
-
fill: "currentColor",
|
|
820
|
-
d: "M-304.67 281.57h-8.46l4.23-7.33z",
|
|
821
|
-
}),
|
|
822
|
-
jsx("path", {
|
|
823
|
-
fill: "currentColor",
|
|
824
|
-
d: "M-308.9 289.43l-4.23-7.33h8.46z",
|
|
825
|
-
}),
|
|
826
|
-
jsx("path", {
|
|
827
|
-
fill: "currentColor",
|
|
828
|
-
opacity: "0.7",
|
|
829
|
-
d: "M-341.76 281.3l-4.22-7.33h8.45z",
|
|
830
|
-
}),
|
|
831
|
-
jsx("path", {
|
|
832
|
-
fill: "currentColor",
|
|
833
|
-
opacity: "0.7",
|
|
834
|
-
d: "M-332.87 281.57h-8.46l4.23-7.33z",
|
|
835
|
-
}),
|
|
836
|
-
jsx("path", {
|
|
837
|
-
fill: "currentColor",
|
|
838
|
-
opacity: "0.7",
|
|
839
|
-
d: "M-337.1 289.43l-4.23-7.33h8.46z",
|
|
840
|
-
}),
|
|
841
|
-
jsx("path", {
|
|
842
|
-
fill: "currentColor",
|
|
843
|
-
opacity: "0.7",
|
|
844
|
-
d: "M-327.68 289.43l-4.23-7.33h8.43z",
|
|
845
|
-
}),
|
|
846
|
-
jsx("path", {
|
|
847
|
-
fill: "currentColor",
|
|
848
|
-
opacity: "0.7",
|
|
849
|
-
d: "M-328.16 289.7h-8.46l4.23-7.33z",
|
|
850
|
-
}),
|
|
851
|
-
jsx("path", {
|
|
852
|
-
fill: "currentColor",
|
|
853
|
-
d: "M-318.75 289.7h-8.5l4.28-7.33z",
|
|
922
|
+
stroke: "none",
|
|
854
923
|
}),
|
|
855
924
|
jsx("path", {
|
|
925
|
+
d: "M8 2v4h4z",
|
|
856
926
|
fill: "currentColor",
|
|
857
|
-
|
|
927
|
+
stroke: "none",
|
|
858
928
|
}),
|
|
859
929
|
],
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
true,
|
|
864
|
-
);
|
|
865
|
-
|
|
866
|
-
registerIcon(
|
|
867
|
-
"file",
|
|
868
|
-
(props) => {
|
|
869
|
-
return jsxs("svg", {
|
|
870
|
-
...props,
|
|
871
|
-
viewBox: "0 0 16 16",
|
|
872
|
-
children: [
|
|
873
|
-
jsx("path", {
|
|
874
|
-
d: "M2 2h5v5h5v7H2z",
|
|
875
|
-
fill: "currentColor",
|
|
876
|
-
stroke: "none",
|
|
877
|
-
}),
|
|
878
|
-
jsx("path", {
|
|
879
|
-
d: "M8 2v4h4z",
|
|
880
|
-
fill: "currentColor",
|
|
881
|
-
stroke: "none",
|
|
882
|
-
}),
|
|
883
|
-
],
|
|
884
|
-
});
|
|
930
|
+
},
|
|
931
|
+
key,
|
|
932
|
+
);
|
|
885
933
|
},
|
|
886
934
|
true,
|
|
887
935
|
);
|
|
@@ -3180,6 +3228,7 @@ class OverlayComponent extends VDOM.Component {
|
|
|
3180
3228
|
widget.overlayWillUnmount(this.props.instance, this);
|
|
3181
3229
|
if (this.ownedEl) {
|
|
3182
3230
|
setTimeout(() => {
|
|
3231
|
+
this.root?.unmount();
|
|
3183
3232
|
if (this.ownedEl?.parentNode) this.ownedEl.parentNode.removeChild(this.ownedEl);
|
|
3184
3233
|
this.ownedEl = null;
|
|
3185
3234
|
}, widget.destroyDelay);
|
|
@@ -3243,7 +3292,8 @@ class OverlayComponent extends VDOM.Component {
|
|
|
3243
3292
|
}
|
|
3244
3293
|
componentDidUpdate() {
|
|
3245
3294
|
if (this.containerEl && !VDOM.DOM.createPortal) {
|
|
3246
|
-
VDOM.DOM.
|
|
3295
|
+
this.root = VDOM.DOM.createRoot(this.containerEl);
|
|
3296
|
+
this.root.render(this.renderOverlay());
|
|
3247
3297
|
}
|
|
3248
3298
|
this.overlayDidUpdate();
|
|
3249
3299
|
}
|
|
@@ -4542,7 +4592,6 @@ function createHotPromiseWindowFactoryWithProps(module, factory) {
|
|
|
4542
4592
|
let window = Window.create(factory(props)(resolve, reject));
|
|
4543
4593
|
window.overlayWillDismiss = () => {
|
|
4544
4594
|
if (!reloading && unsubscribe) unsubscribe();
|
|
4545
|
-
return false;
|
|
4546
4595
|
};
|
|
4547
4596
|
dismiss = window.open(store);
|
|
4548
4597
|
}
|
|
@@ -6602,18 +6651,22 @@ Widget.alias("textfield", TextField);
|
|
|
6602
6651
|
|
|
6603
6652
|
var SquareIcon = registerIcon(
|
|
6604
6653
|
"square",
|
|
6605
|
-
(props) => {
|
|
6606
|
-
return jsx(
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6654
|
+
({ key, ...props }) => {
|
|
6655
|
+
return jsx(
|
|
6656
|
+
"svg",
|
|
6657
|
+
{
|
|
6658
|
+
...props,
|
|
6659
|
+
viewBox: "0 0 64 64",
|
|
6660
|
+
children: jsx("rect", {
|
|
6661
|
+
x: "12",
|
|
6662
|
+
y: "12",
|
|
6663
|
+
width: "40",
|
|
6664
|
+
height: "40",
|
|
6665
|
+
fill: "currentColor",
|
|
6666
|
+
}),
|
|
6667
|
+
},
|
|
6668
|
+
key,
|
|
6669
|
+
);
|
|
6617
6670
|
},
|
|
6618
6671
|
true,
|
|
6619
6672
|
);
|
|
@@ -7265,25 +7318,29 @@ Widget.alias("option", Option);
|
|
|
7265
7318
|
|
|
7266
7319
|
var ForwardIcon = registerIcon(
|
|
7267
7320
|
"forward",
|
|
7268
|
-
(props) => {
|
|
7269
|
-
return jsxs(
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7321
|
+
({ key, ...props }) => {
|
|
7322
|
+
return jsxs(
|
|
7323
|
+
"svg",
|
|
7324
|
+
{
|
|
7325
|
+
...props,
|
|
7326
|
+
viewBox: "0 0 20 20",
|
|
7327
|
+
children: [
|
|
7328
|
+
jsx("path", {
|
|
7329
|
+
fill: "currentColor",
|
|
7330
|
+
strokeWidth: "0",
|
|
7331
|
+
stroke: "currentColor",
|
|
7332
|
+
d: "M10.15 15.5L14.5 10l-4.33-5.47-.65.47 3.98 5-4 5z",
|
|
7333
|
+
}),
|
|
7334
|
+
jsx("path", {
|
|
7335
|
+
fill: "currentColor",
|
|
7336
|
+
strokeWidth: "0",
|
|
7337
|
+
stroke: "currentColor",
|
|
7338
|
+
d: "M6.15 15.5L10.5 10 6.17 4.53 5.52 5l3.98 5-4 5z",
|
|
7339
|
+
}),
|
|
7340
|
+
],
|
|
7341
|
+
},
|
|
7342
|
+
key,
|
|
7343
|
+
);
|
|
7287
7344
|
},
|
|
7288
7345
|
true,
|
|
7289
7346
|
);
|
|
@@ -10320,15 +10377,19 @@ function floor5(x) {
|
|
|
10320
10377
|
|
|
10321
10378
|
var PixelPickerIcon = registerIcon(
|
|
10322
10379
|
"pixel-picker",
|
|
10323
|
-
(props) => {
|
|
10324
|
-
return jsx(
|
|
10325
|
-
|
|
10326
|
-
|
|
10327
|
-
|
|
10328
|
-
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10380
|
+
({ key, ...props }) => {
|
|
10381
|
+
return jsx(
|
|
10382
|
+
"svg",
|
|
10383
|
+
{
|
|
10384
|
+
...props,
|
|
10385
|
+
viewBox: "0 0 30 30",
|
|
10386
|
+
children: jsx("path", {
|
|
10387
|
+
d: "M27.7,3.3c-1.5-1.5-3.9-1.5-5.4,0L17,8.6l-1.3-1.3c-0.4-0.4-1-0.4-1.4,0s-0.4,1,0,1.4l1.3,1.3L5,20.6 c-0.6,0.6-1,1.4-1.1,2.3C3.3,23.4,3,24.2,3,25c0,1.7,1.3,3,3,3c0.8,0,1.6-0.3,2.2-0.9C9,27,9.8,26.6,10.4,26L21,15.4l1.3,1.3 c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3c0.4-0.4,0.4-1,0-1.4L22.4,14l5.3-5.3C29.2,7.2,29.2,4.8,27.7,3.3z M9,24.6 c-0.4,0.4-0.8,0.6-1.3,0.5c-0.4,0-0.7,0.2-0.9,0.5C6.7,25.8,6.3,26,6,26c-0.6,0-1-0.4-1-1c0-0.3,0.2-0.7,0.5-0.8 c0.3-0.2,0.5-0.5,0.5-0.9c0-0.5,0.2-1,0.5-1.3L17,11.4l2.6,2.6L9,24.6z",
|
|
10388
|
+
fill: "currentColor",
|
|
10389
|
+
}),
|
|
10390
|
+
},
|
|
10391
|
+
key,
|
|
10392
|
+
);
|
|
10332
10393
|
},
|
|
10333
10394
|
true,
|
|
10334
10395
|
);
|
|
@@ -11948,7 +12009,9 @@ class SliderComponent extends VDOM.Component {
|
|
|
11948
12009
|
style: data.style,
|
|
11949
12010
|
id: data.id,
|
|
11950
12011
|
onClick: (e) => this.onClick(e),
|
|
11951
|
-
ref: (el) =>
|
|
12012
|
+
ref: (el) => {
|
|
12013
|
+
this.dom.el = el || undefined;
|
|
12014
|
+
},
|
|
11952
12015
|
onMouseMove: (e) => tooltipMouseMove$1(e, ...getFieldTooltip(instance)),
|
|
11953
12016
|
onMouseLeave: (e) => tooltipMouseLeave$1(e, ...getFieldTooltip(instance)),
|
|
11954
12017
|
children: [
|
|
@@ -11970,7 +12033,9 @@ class SliderComponent extends VDOM.Component {
|
|
|
11970
12033
|
"div",
|
|
11971
12034
|
{
|
|
11972
12035
|
className: CSS.element(baseClass, "space"),
|
|
11973
|
-
ref: (c) =>
|
|
12036
|
+
ref: (c) => {
|
|
12037
|
+
this.dom.range = c || undefined;
|
|
12038
|
+
},
|
|
11974
12039
|
children: [
|
|
11975
12040
|
widget.showFrom &&
|
|
11976
12041
|
jsx(
|
|
@@ -11986,7 +12051,9 @@ class SliderComponent extends VDOM.Component {
|
|
|
11986
12051
|
}),
|
|
11987
12052
|
onMouseLeave: (e) => this.onHandleMouseLeave(e, "from"),
|
|
11988
12053
|
onTouchStart: (e) => this.onHandleMouseDown(e, "from"),
|
|
11989
|
-
ref: (c) =>
|
|
12054
|
+
ref: (c) => {
|
|
12055
|
+
this.dom.from = c || undefined;
|
|
12056
|
+
},
|
|
11990
12057
|
},
|
|
11991
12058
|
"from",
|
|
11992
12059
|
),
|
|
@@ -12004,7 +12071,9 @@ class SliderComponent extends VDOM.Component {
|
|
|
12004
12071
|
}),
|
|
12005
12072
|
onMouseLeave: (e) => this.onHandleMouseLeave(e, "to"),
|
|
12006
12073
|
onTouchStart: (e) => this.onHandleMouseDown(e, "to"),
|
|
12007
|
-
ref: (c) =>
|
|
12074
|
+
ref: (c) => {
|
|
12075
|
+
this.dom.to = c || undefined;
|
|
12076
|
+
},
|
|
12008
12077
|
},
|
|
12009
12078
|
"to",
|
|
12010
12079
|
),
|
|
@@ -13643,15 +13712,19 @@ class Validator extends Field {
|
|
|
13643
13712
|
|
|
13644
13713
|
var DropDownIcon = registerIcon(
|
|
13645
13714
|
"sort-asc",
|
|
13646
|
-
(props) => {
|
|
13647
|
-
return jsx(
|
|
13648
|
-
|
|
13649
|
-
|
|
13650
|
-
|
|
13651
|
-
|
|
13652
|
-
|
|
13653
|
-
|
|
13654
|
-
|
|
13715
|
+
({ key, ...props }) => {
|
|
13716
|
+
return jsx(
|
|
13717
|
+
"svg",
|
|
13718
|
+
{
|
|
13719
|
+
...props,
|
|
13720
|
+
viewBox: "0 0 16 16",
|
|
13721
|
+
children: jsx("path", {
|
|
13722
|
+
fill: "currentColor",
|
|
13723
|
+
d: "M10.5 5.8l-3-3-3 3 .707.708L7 4.688v8.312h1V4.69l1.793 1.817z",
|
|
13724
|
+
}),
|
|
13725
|
+
},
|
|
13726
|
+
key,
|
|
13727
|
+
);
|
|
13655
13728
|
},
|
|
13656
13729
|
true,
|
|
13657
13730
|
);
|
|
@@ -13679,7 +13752,9 @@ class GridCellEditorCmp extends VDOM.Component {
|
|
|
13679
13752
|
render() {
|
|
13680
13753
|
let { className, style, children } = this.props;
|
|
13681
13754
|
return jsx("div", {
|
|
13682
|
-
ref: (el) =>
|
|
13755
|
+
ref: (el) => {
|
|
13756
|
+
this.el = el;
|
|
13757
|
+
},
|
|
13683
13758
|
className: className,
|
|
13684
13759
|
style: style,
|
|
13685
13760
|
children: children,
|