@amateescu/portal-ui-components 0.0.24 → 0.0.25-react19
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/Box-DQNjUj2G.js +102 -0
- package/dist/Button-D2XVkO19.js +676 -0
- package/dist/ButtonBase-D-XlpvIZ.js +954 -0
- package/dist/CircularProgress-BOkP0juA.js +247 -0
- package/dist/{EllipsisOutlined-CtmB5yDB.js → EllipsisOutlined-DfTPoz8U.js} +667 -672
- package/dist/PurePanel-ByiFMw5U.js +2213 -0
- package/dist/{Skeleton-XFbjx7LJ.js → Skeleton-Imy-56Lv.js} +161 -158
- package/dist/{UserInfoDropdown-DGaplQo6.js → UserInfoDropdown-6aB5cQyF.js} +1540 -1505
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
- package/dist/components/CustomButton/CustomButton.js +1 -1
- package/dist/components/CustomPagination/CustomPagination.js +455 -344
- package/dist/components/ErrorModal/ErrorModal.js +5 -6
- package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
- package/dist/components/InfoModal/InfoModal.js +1 -1
- package/dist/components/InfoModal/InfoModal.stories.js +1 -1
- package/dist/components/KpiCard/KpiCard.js +1003 -892
- package/dist/components/LoadingAnimation/LoadingAnimation.js +6 -215
- package/dist/components/Login/Login.js +4485 -3820
- package/dist/components/Login/Login.stories.js +1586 -1546
- package/dist/components/SideMenu/SideMenu.js +1 -1
- package/dist/components/SideMenu/SideMenu.types.d.ts +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.js +6 -6
- package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/context-D_FWkiDE.js +7383 -0
- package/dist/createSimplePaletteValueFilter-CshNo3IR.js +3439 -0
- package/dist/index-CR8gh-dS.js +1689 -0
- package/dist/index-CyFfYou3.js +411 -0
- package/dist/main.js +1 -1
- package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +33 -0
- package/dist/portal-utils/formatters.js +68 -0
- package/dist/useSlot-kDVPuVrn.js +431 -0
- package/package.json +38 -38
- package/dist/Box-CmKt1PwF.js +0 -68
- package/dist/Button-BT8r3F_d.js +0 -355
- package/dist/ButtonBase-By486Sca.js +0 -966
- package/dist/PurePanel-CfZ1n-M8.js +0 -4782
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/createSvgIcon-B8ya7kb4.js +0 -250
- package/dist/generateUtilityClasses-Bhjgm_6-.js +0 -3270
- package/dist/index-1vDmwq0E.js +0 -19089
- package/dist/index-DsP9yT3s.js +0 -1551
- package/dist/objectWithoutPropertiesLoose-CIT-1_kH.js +0 -227
- package/dist/useId-DbfH3PlN.js +0 -5397
|
@@ -599,12 +599,15 @@ const w = {
|
|
|
599
599
|
G: function(t, e, n) {
|
|
600
600
|
const r = t.getFullYear() > 0 ? 1 : 0;
|
|
601
601
|
switch (e) {
|
|
602
|
+
// AD, BC
|
|
602
603
|
case "G":
|
|
603
604
|
case "GG":
|
|
604
605
|
case "GGG":
|
|
605
606
|
return n.era(r, { width: "abbreviated" });
|
|
607
|
+
// A, B
|
|
606
608
|
case "GGGGG":
|
|
607
609
|
return n.era(r, { width: "narrow" });
|
|
610
|
+
// Anno Domini, Before Christ
|
|
608
611
|
case "GGGG":
|
|
609
612
|
default:
|
|
610
613
|
return n.era(r, { width: "wide" });
|
|
@@ -649,22 +652,28 @@ const w = {
|
|
|
649
652
|
Q: function(t, e, n) {
|
|
650
653
|
const r = Math.ceil((t.getMonth() + 1) / 3);
|
|
651
654
|
switch (e) {
|
|
655
|
+
// 1, 2, 3, 4
|
|
652
656
|
case "Q":
|
|
653
657
|
return String(r);
|
|
658
|
+
// 01, 02, 03, 04
|
|
654
659
|
case "QQ":
|
|
655
660
|
return o(r, 2);
|
|
661
|
+
// 1st, 2nd, 3rd, 4th
|
|
656
662
|
case "Qo":
|
|
657
663
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
664
|
+
// Q1, Q2, Q3, Q4
|
|
658
665
|
case "QQQ":
|
|
659
666
|
return n.quarter(r, {
|
|
660
667
|
width: "abbreviated",
|
|
661
668
|
context: "formatting"
|
|
662
669
|
});
|
|
670
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
663
671
|
case "QQQQQ":
|
|
664
672
|
return n.quarter(r, {
|
|
665
673
|
width: "narrow",
|
|
666
674
|
context: "formatting"
|
|
667
675
|
});
|
|
676
|
+
// 1st quarter, 2nd quarter, ...
|
|
668
677
|
case "QQQQ":
|
|
669
678
|
default:
|
|
670
679
|
return n.quarter(r, {
|
|
@@ -677,22 +686,28 @@ const w = {
|
|
|
677
686
|
q: function(t, e, n) {
|
|
678
687
|
const r = Math.ceil((t.getMonth() + 1) / 3);
|
|
679
688
|
switch (e) {
|
|
689
|
+
// 1, 2, 3, 4
|
|
680
690
|
case "q":
|
|
681
691
|
return String(r);
|
|
692
|
+
// 01, 02, 03, 04
|
|
682
693
|
case "qq":
|
|
683
694
|
return o(r, 2);
|
|
695
|
+
// 1st, 2nd, 3rd, 4th
|
|
684
696
|
case "qo":
|
|
685
697
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
698
|
+
// Q1, Q2, Q3, Q4
|
|
686
699
|
case "qqq":
|
|
687
700
|
return n.quarter(r, {
|
|
688
701
|
width: "abbreviated",
|
|
689
702
|
context: "standalone"
|
|
690
703
|
});
|
|
704
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
691
705
|
case "qqqqq":
|
|
692
706
|
return n.quarter(r, {
|
|
693
707
|
width: "narrow",
|
|
694
708
|
context: "standalone"
|
|
695
709
|
});
|
|
710
|
+
// 1st quarter, 2nd quarter, ...
|
|
696
711
|
case "qqqq":
|
|
697
712
|
default:
|
|
698
713
|
return n.quarter(r, {
|
|
@@ -708,18 +723,22 @@ const w = {
|
|
|
708
723
|
case "M":
|
|
709
724
|
case "MM":
|
|
710
725
|
return w.M(t, e);
|
|
726
|
+
// 1st, 2nd, ..., 12th
|
|
711
727
|
case "Mo":
|
|
712
728
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
729
|
+
// Jan, Feb, ..., Dec
|
|
713
730
|
case "MMM":
|
|
714
731
|
return n.month(r, {
|
|
715
732
|
width: "abbreviated",
|
|
716
733
|
context: "formatting"
|
|
717
734
|
});
|
|
735
|
+
// J, F, ..., D
|
|
718
736
|
case "MMMMM":
|
|
719
737
|
return n.month(r, {
|
|
720
738
|
width: "narrow",
|
|
721
739
|
context: "formatting"
|
|
722
740
|
});
|
|
741
|
+
// January, February, ..., December
|
|
723
742
|
case "MMMM":
|
|
724
743
|
default:
|
|
725
744
|
return n.month(r, { width: "wide", context: "formatting" });
|
|
@@ -729,22 +748,28 @@ const w = {
|
|
|
729
748
|
L: function(t, e, n) {
|
|
730
749
|
const r = t.getMonth();
|
|
731
750
|
switch (e) {
|
|
751
|
+
// 1, 2, ..., 12
|
|
732
752
|
case "L":
|
|
733
753
|
return String(r + 1);
|
|
754
|
+
// 01, 02, ..., 12
|
|
734
755
|
case "LL":
|
|
735
756
|
return o(r + 1, 2);
|
|
757
|
+
// 1st, 2nd, ..., 12th
|
|
736
758
|
case "Lo":
|
|
737
759
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
760
|
+
// Jan, Feb, ..., Dec
|
|
738
761
|
case "LLL":
|
|
739
762
|
return n.month(r, {
|
|
740
763
|
width: "abbreviated",
|
|
741
764
|
context: "standalone"
|
|
742
765
|
});
|
|
766
|
+
// J, F, ..., D
|
|
743
767
|
case "LLLLL":
|
|
744
768
|
return n.month(r, {
|
|
745
769
|
width: "narrow",
|
|
746
770
|
context: "standalone"
|
|
747
771
|
});
|
|
772
|
+
// January, February, ..., December
|
|
748
773
|
case "LLLL":
|
|
749
774
|
default:
|
|
750
775
|
return n.month(r, { width: "wide", context: "standalone" });
|
|
@@ -773,6 +798,7 @@ const w = {
|
|
|
773
798
|
E: function(t, e, n) {
|
|
774
799
|
const r = t.getDay();
|
|
775
800
|
switch (e) {
|
|
801
|
+
// Tue
|
|
776
802
|
case "E":
|
|
777
803
|
case "EE":
|
|
778
804
|
case "EEE":
|
|
@@ -780,16 +806,19 @@ const w = {
|
|
|
780
806
|
width: "abbreviated",
|
|
781
807
|
context: "formatting"
|
|
782
808
|
});
|
|
809
|
+
// T
|
|
783
810
|
case "EEEEE":
|
|
784
811
|
return n.day(r, {
|
|
785
812
|
width: "narrow",
|
|
786
813
|
context: "formatting"
|
|
787
814
|
});
|
|
815
|
+
// Tu
|
|
788
816
|
case "EEEEEE":
|
|
789
817
|
return n.day(r, {
|
|
790
818
|
width: "short",
|
|
791
819
|
context: "formatting"
|
|
792
820
|
});
|
|
821
|
+
// Tuesday
|
|
793
822
|
case "EEEE":
|
|
794
823
|
default:
|
|
795
824
|
return n.day(r, {
|
|
@@ -802,10 +831,13 @@ const w = {
|
|
|
802
831
|
e: function(t, e, n, r) {
|
|
803
832
|
const a = t.getDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
|
|
804
833
|
switch (e) {
|
|
834
|
+
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
805
835
|
case "e":
|
|
806
836
|
return String(i);
|
|
837
|
+
// Padded numerical value
|
|
807
838
|
case "ee":
|
|
808
839
|
return o(i, 2);
|
|
840
|
+
// 1st, 2nd, ..., 7th
|
|
809
841
|
case "eo":
|
|
810
842
|
return n.ordinalNumber(i, { unit: "day" });
|
|
811
843
|
case "eee":
|
|
@@ -813,16 +845,19 @@ const w = {
|
|
|
813
845
|
width: "abbreviated",
|
|
814
846
|
context: "formatting"
|
|
815
847
|
});
|
|
848
|
+
// T
|
|
816
849
|
case "eeeee":
|
|
817
850
|
return n.day(a, {
|
|
818
851
|
width: "narrow",
|
|
819
852
|
context: "formatting"
|
|
820
853
|
});
|
|
854
|
+
// Tu
|
|
821
855
|
case "eeeeee":
|
|
822
856
|
return n.day(a, {
|
|
823
857
|
width: "short",
|
|
824
858
|
context: "formatting"
|
|
825
859
|
});
|
|
860
|
+
// Tuesday
|
|
826
861
|
case "eeee":
|
|
827
862
|
default:
|
|
828
863
|
return n.day(a, {
|
|
@@ -835,10 +870,13 @@ const w = {
|
|
|
835
870
|
c: function(t, e, n, r) {
|
|
836
871
|
const a = t.getDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
|
|
837
872
|
switch (e) {
|
|
873
|
+
// Numerical value (same as in `e`)
|
|
838
874
|
case "c":
|
|
839
875
|
return String(i);
|
|
876
|
+
// Padded numerical value
|
|
840
877
|
case "cc":
|
|
841
878
|
return o(i, e.length);
|
|
879
|
+
// 1st, 2nd, ..., 7th
|
|
842
880
|
case "co":
|
|
843
881
|
return n.ordinalNumber(i, { unit: "day" });
|
|
844
882
|
case "ccc":
|
|
@@ -846,16 +884,19 @@ const w = {
|
|
|
846
884
|
width: "abbreviated",
|
|
847
885
|
context: "standalone"
|
|
848
886
|
});
|
|
887
|
+
// T
|
|
849
888
|
case "ccccc":
|
|
850
889
|
return n.day(a, {
|
|
851
890
|
width: "narrow",
|
|
852
891
|
context: "standalone"
|
|
853
892
|
});
|
|
893
|
+
// Tu
|
|
854
894
|
case "cccccc":
|
|
855
895
|
return n.day(a, {
|
|
856
896
|
width: "short",
|
|
857
897
|
context: "standalone"
|
|
858
898
|
});
|
|
899
|
+
// Tuesday
|
|
859
900
|
case "cccc":
|
|
860
901
|
default:
|
|
861
902
|
return n.day(a, {
|
|
@@ -868,27 +909,34 @@ const w = {
|
|
|
868
909
|
i: function(t, e, n) {
|
|
869
910
|
const r = t.getDay(), a = r === 0 ? 7 : r;
|
|
870
911
|
switch (e) {
|
|
912
|
+
// 2
|
|
871
913
|
case "i":
|
|
872
914
|
return String(a);
|
|
915
|
+
// 02
|
|
873
916
|
case "ii":
|
|
874
917
|
return o(a, e.length);
|
|
918
|
+
// 2nd
|
|
875
919
|
case "io":
|
|
876
920
|
return n.ordinalNumber(a, { unit: "day" });
|
|
921
|
+
// Tue
|
|
877
922
|
case "iii":
|
|
878
923
|
return n.day(r, {
|
|
879
924
|
width: "abbreviated",
|
|
880
925
|
context: "formatting"
|
|
881
926
|
});
|
|
927
|
+
// T
|
|
882
928
|
case "iiiii":
|
|
883
929
|
return n.day(r, {
|
|
884
930
|
width: "narrow",
|
|
885
931
|
context: "formatting"
|
|
886
932
|
});
|
|
933
|
+
// Tu
|
|
887
934
|
case "iiiiii":
|
|
888
935
|
return n.day(r, {
|
|
889
936
|
width: "short",
|
|
890
937
|
context: "formatting"
|
|
891
938
|
});
|
|
939
|
+
// Tuesday
|
|
892
940
|
case "iiii":
|
|
893
941
|
default:
|
|
894
942
|
return n.day(r, {
|
|
@@ -1019,13 +1067,21 @@ const w = {
|
|
|
1019
1067
|
if (r === 0)
|
|
1020
1068
|
return "Z";
|
|
1021
1069
|
switch (e) {
|
|
1070
|
+
// Hours and optional minutes
|
|
1022
1071
|
case "X":
|
|
1023
1072
|
return H(r);
|
|
1073
|
+
// Hours, minutes and optional seconds without `:` delimiter
|
|
1074
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1075
|
+
// so this token always has the same output as `XX`
|
|
1024
1076
|
case "XXXX":
|
|
1025
1077
|
case "XX":
|
|
1026
1078
|
return b(r);
|
|
1079
|
+
// Hours, minutes and optional seconds with `:` delimiter
|
|
1080
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1081
|
+
// so this token always has the same output as `XXX`
|
|
1027
1082
|
case "XXXXX":
|
|
1028
1083
|
case "XXX":
|
|
1084
|
+
// Hours and minutes with `:` delimiter
|
|
1029
1085
|
default:
|
|
1030
1086
|
return b(r, ":");
|
|
1031
1087
|
}
|
|
@@ -1034,13 +1090,21 @@ const w = {
|
|
|
1034
1090
|
x: function(t, e, n) {
|
|
1035
1091
|
const r = t.getTimezoneOffset();
|
|
1036
1092
|
switch (e) {
|
|
1093
|
+
// Hours and optional minutes
|
|
1037
1094
|
case "x":
|
|
1038
1095
|
return H(r);
|
|
1096
|
+
// Hours, minutes and optional seconds without `:` delimiter
|
|
1097
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1098
|
+
// so this token always has the same output as `xx`
|
|
1039
1099
|
case "xxxx":
|
|
1040
1100
|
case "xx":
|
|
1041
1101
|
return b(r);
|
|
1102
|
+
// Hours, minutes and optional seconds with `:` delimiter
|
|
1103
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1104
|
+
// so this token always has the same output as `xxx`
|
|
1042
1105
|
case "xxxxx":
|
|
1043
1106
|
case "xxx":
|
|
1107
|
+
// Hours and minutes with `:` delimiter
|
|
1044
1108
|
default:
|
|
1045
1109
|
return b(r, ":");
|
|
1046
1110
|
}
|
|
@@ -1049,10 +1113,12 @@ const w = {
|
|
|
1049
1113
|
O: function(t, e, n) {
|
|
1050
1114
|
const r = t.getTimezoneOffset();
|
|
1051
1115
|
switch (e) {
|
|
1116
|
+
// Short
|
|
1052
1117
|
case "O":
|
|
1053
1118
|
case "OO":
|
|
1054
1119
|
case "OOO":
|
|
1055
1120
|
return "GMT" + p(r, ":");
|
|
1121
|
+
// Long
|
|
1056
1122
|
case "OOOO":
|
|
1057
1123
|
default:
|
|
1058
1124
|
return "GMT" + b(r, ":");
|
|
@@ -1062,10 +1128,12 @@ const w = {
|
|
|
1062
1128
|
z: function(t, e, n) {
|
|
1063
1129
|
const r = t.getTimezoneOffset();
|
|
1064
1130
|
switch (e) {
|
|
1131
|
+
// Short
|
|
1065
1132
|
case "z":
|
|
1066
1133
|
case "zz":
|
|
1067
1134
|
case "zzz":
|
|
1068
1135
|
return "GMT" + p(r, ":");
|
|
1136
|
+
// Long
|
|
1069
1137
|
case "zzzz":
|
|
1070
1138
|
default:
|
|
1071
1139
|
return "GMT" + b(r, ":");
|