@epam/uui 5.11.0-rc.0 → 5.12.0-rc.1
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/components/overlays/Modals.d.ts.map +1 -1
- package/components/tables/DataTable.d.ts +3 -1
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableHeaderGroupCell.d.ts +16 -0
- package/components/tables/DataTableHeaderGroupCell.d.ts.map +1 -0
- package/components/tables/DataTableHeaderRow.d.ts.map +1 -1
- package/index.esm.js +388 -314
- package/index.esm.js.map +1 -1
- package/index.js +387 -313
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/settings.d.ts.map +1 -1
- package/settings.types.d.ts +12 -0
- package/settings.types.d.ts.map +1 -1
- package/stats.html +19 -1
- package/styles.css +2820 -2564
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -547,6 +547,25 @@ const settings = {
|
|
|
547
547
|
},
|
|
548
548
|
truncate: ['48'],
|
|
549
549
|
},
|
|
550
|
+
groupCell: {
|
|
551
|
+
defaults: {
|
|
552
|
+
size: '36',
|
|
553
|
+
padding: '12',
|
|
554
|
+
paddingEdge: '24',
|
|
555
|
+
},
|
|
556
|
+
columnCaption: {
|
|
557
|
+
fontSize: '14',
|
|
558
|
+
fontWeight: '400',
|
|
559
|
+
size: '18',
|
|
560
|
+
uppercase: '12',
|
|
561
|
+
},
|
|
562
|
+
iconSize: {
|
|
563
|
+
36: '18',
|
|
564
|
+
48: '18',
|
|
565
|
+
60: '18',
|
|
566
|
+
},
|
|
567
|
+
truncate: ['48'],
|
|
568
|
+
},
|
|
550
569
|
},
|
|
551
570
|
},
|
|
552
571
|
body: {
|
|
@@ -595,11 +614,11 @@ const settings = {
|
|
|
595
614
|
},
|
|
596
615
|
};
|
|
597
616
|
|
|
598
|
-
var css$
|
|
617
|
+
var css$1x = {"uui-typography":"VTq0Ic","hero-header":"Nxbcoj","promo-header":"SJKmBu","uui-critical":"Tdy-mY","uui-info":"Ym5eMq","uui-success":"zhX-G5","uui-warning":"nX6ZRk","uui-highlight":"a-VPKw","uui-typography-size-12":"oZLZFJ","uui-typography-size-14":"o6cx54","uui-typography-size-16":"Ab0GF4","root":"_9-V7rx","uuiTypography":"VTq0Ic","heroHeader":"Nxbcoj","promoHeader":"SJKmBu","uuiCritical":"Tdy-mY","uuiInfo":"Ym5eMq","uuiSuccess":"zhX-G5","uuiWarning":"nX6ZRk","uuiHighlight":"a-VPKw","uuiTypographySize12":"oZLZFJ","uuiTypographySize14":"o6cx54","uuiTypographySize16":"Ab0GF4"};
|
|
599
618
|
|
|
600
619
|
function applyButtonMods(mods) {
|
|
601
620
|
return [
|
|
602
|
-
css$
|
|
621
|
+
css$1x.root,
|
|
603
622
|
'uui-button',
|
|
604
623
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
605
624
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -613,10 +632,10 @@ const Button = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Button,
|
|
|
613
632
|
};
|
|
614
633
|
});
|
|
615
634
|
|
|
616
|
-
var css$
|
|
635
|
+
var css$1w = {"root":"iAU5II"};
|
|
617
636
|
|
|
618
637
|
function applyIconButtonMods(props) {
|
|
619
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
638
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1w.root];
|
|
620
639
|
}
|
|
621
640
|
const IconButton = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.IconButton, applyIconButtonMods, (props) => {
|
|
622
641
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -650,7 +669,7 @@ function getIconClass(props) {
|
|
|
650
669
|
return [classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon', classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon'];
|
|
651
670
|
}
|
|
652
671
|
|
|
653
|
-
var css$
|
|
672
|
+
var css$1v = {"uui-typography":"HdoZU2","hero-header":"iw3Ytl","promo-header":"IVtiGU","uui-critical":"UOBnPG","uui-info":"KB9XWu","uui-success":"lWOJFo","uui-warning":"ZLYsmi","uui-highlight":"evCNt1","uui-typography-size-12":"iBOnnp","uui-typography-size-14":"cITbMI","uui-typography-size-16":"_7FZN5J","root":"H-Uotw","uuiTypography":"HdoZU2","heroHeader":"iw3Ytl","promoHeader":"IVtiGU","uuiCritical":"UOBnPG","uuiInfo":"KB9XWu","uuiSuccess":"lWOJFo","uuiWarning":"ZLYsmi","uuiHighlight":"evCNt1","uuiTypographySize12":"iBOnnp","uuiTypographySize14":"cITbMI","uuiTypographySize16":"_7FZN5J"};
|
|
654
673
|
|
|
655
674
|
const DEFAULT_COLOR = 'primary';
|
|
656
675
|
const DEFAULT_WEIGHT = 'semibold';
|
|
@@ -666,7 +685,7 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
666
685
|
}
|
|
667
686
|
const rootStyles = [
|
|
668
687
|
'uui-link_button',
|
|
669
|
-
css$
|
|
688
|
+
css$1v.root,
|
|
670
689
|
`uui-size-${props.size || settings.sizes.defaults.linkButton}`,
|
|
671
690
|
...getIconClass(props),
|
|
672
691
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -681,11 +700,11 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
681
700
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
682
701
|
});
|
|
683
702
|
|
|
684
|
-
var css$
|
|
703
|
+
var css$1u = {"root":"Btmc5F"};
|
|
685
704
|
|
|
686
705
|
const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
687
706
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
688
|
-
css$
|
|
707
|
+
css$1u.root,
|
|
689
708
|
'uui-count_indicator',
|
|
690
709
|
`uui-size-${props.size || settings.sizes.defaults.countIndicator}`,
|
|
691
710
|
props.color && `uui-color-${props.color}`,
|
|
@@ -693,11 +712,11 @@ const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
693
712
|
]) }, props.caption));
|
|
694
713
|
});
|
|
695
714
|
|
|
696
|
-
var css$
|
|
715
|
+
var css$1t = {"uui-typography":"ElXdsV","hero-header":"_03LxzM","promo-header":"jGCACH","uui-critical":"Chf4B7","uui-info":"iwi8gk","uui-success":"-e0R4D","uui-warning":"_0vWptV","uui-highlight":"MoZFxH","uui-typography-size-12":"iAsJhn","uui-typography-size-14":"obiGDh","uui-typography-size-16":"_62A8xH","root":"mMFMcN","withNotify":"_4yl6W8","uuiTypography":"ElXdsV","heroHeader":"_03LxzM","promoHeader":"jGCACH","uuiCritical":"Chf4B7","uuiInfo":"iwi8gk","uuiSuccess":"-e0R4D","uuiWarning":"_0vWptV","uuiHighlight":"MoZFxH","uuiTypographySize12":"iAsJhn","uuiTypographySize14":"obiGDh","uuiTypographySize16":"_62A8xH"};
|
|
697
716
|
|
|
698
717
|
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
699
718
|
const styles = [
|
|
700
|
-
css$
|
|
719
|
+
css$1t.root,
|
|
701
720
|
'uui-tab-button',
|
|
702
721
|
`uui-size-${props.size || settings.sizes.defaults.tabButton}`,
|
|
703
722
|
...getIconClass(props),
|
|
@@ -709,17 +728,17 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
709
728
|
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
710
729
|
(props.caption || props.withNotify) && (React__namespace.default.createElement("div", { className: uuiCore.cx(uuiCore.uuiElement.caption) },
|
|
711
730
|
props.caption,
|
|
712
|
-
props.withNotify && React__namespace.default.createElement("div", { className: css$
|
|
731
|
+
props.withNotify && React__namespace.default.createElement("div", { className: css$1t.withNotify }))),
|
|
713
732
|
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
714
733
|
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { color: "neutral", size: settings.sizes.tabButton.countIndicator[props.size || settings.sizes.defaults.tabButton], caption: props.count })),
|
|
715
734
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
716
735
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
717
736
|
});
|
|
718
737
|
|
|
719
|
-
var css$
|
|
738
|
+
var css$1s = {"uui-typography":"wyPbpt","hero-header":"Ob-xAw","promo-header":"SM3uAn","uui-critical":"VFtg-1","uui-info":"tjAs6Q","uui-success":"epBLkb","uui-warning":"YHo1JL","uui-highlight":"_53gqtJ","uui-typography-size-12":"Azo84s","uui-typography-size-14":"-UTUCD","uui-typography-size-16":"S5fDIn","root":"OPlf-Z","uuiTypography":"wyPbpt","heroHeader":"Ob-xAw","promoHeader":"SM3uAn","uuiCritical":"VFtg-1","uuiInfo":"tjAs6Q","uuiSuccess":"epBLkb","uuiWarning":"YHo1JL","uuiHighlight":"_53gqtJ","uuiTypographySize12":"Azo84s","uuiTypographySize14":"-UTUCD","uuiTypographySize16":"S5fDIn"};
|
|
720
739
|
|
|
721
740
|
function applyVerticalTabButtonMods() {
|
|
722
|
-
return [css$
|
|
741
|
+
return [css$1s.root, 'uui-vertical-tab-button'];
|
|
723
742
|
}
|
|
724
743
|
const VerticalTabButton = /* @__PURE__ */uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
725
744
|
|
|
@@ -738,13 +757,13 @@ var SvgContentMinusOutline = function SvgContentMinusOutline(props, ref) {
|
|
|
738
757
|
};
|
|
739
758
|
var ForwardRef$B = /*#__PURE__*/React.forwardRef(SvgContentMinusOutline);
|
|
740
759
|
|
|
741
|
-
var css$
|
|
760
|
+
var css$1r = {"uui-typography":"wdyU9Y","hero-header":"Ip5SMX","promo-header":"l7bvCV","uui-critical":"fo36VJ","uui-info":"I8tPbd","uui-success":"Or-umZ","uui-warning":"ptuFOD","uui-highlight":"c-gDMR","uui-typography-size-12":"_0bShpJ","uui-typography-size-14":"CK1sbN","uui-typography-size-16":"zkMvw-","root":"_6KdgHC","mode-cell":"WlxFa4","uuiTypography":"wdyU9Y","heroHeader":"Ip5SMX","promoHeader":"l7bvCV","uuiCritical":"fo36VJ","uuiInfo":"I8tPbd","uuiSuccess":"Or-umZ","uuiWarning":"ptuFOD","uuiHighlight":"c-gDMR","uuiTypographySize12":"_0bShpJ","uuiTypographySize14":"CK1sbN","uuiTypographySize16":"zkMvw-","modeCell":"WlxFa4"};
|
|
742
761
|
|
|
743
762
|
function applyCheckboxMods(mods) {
|
|
744
763
|
return [
|
|
745
|
-
css$
|
|
764
|
+
css$1r.root,
|
|
746
765
|
`uui-size-${mods.size || settings.sizes.defaults.checkbox}`,
|
|
747
|
-
css$
|
|
766
|
+
css$1r['mode-' + (mods.mode || 'form')],
|
|
748
767
|
'uui-color-primary',
|
|
749
768
|
];
|
|
750
769
|
}
|
|
@@ -773,11 +792,11 @@ var SvgRadioDotFill = function SvgRadioDotFill(props, ref) {
|
|
|
773
792
|
};
|
|
774
793
|
var ForwardRef$A = /*#__PURE__*/React.forwardRef(SvgRadioDotFill);
|
|
775
794
|
|
|
776
|
-
var css$
|
|
795
|
+
var css$1q = {"uui-typography":"_0vDAlp","hero-header":"_7WTe5H","promo-header":"_5F36--","uui-critical":"wYx1ll","uui-info":"dBBA8e","uui-success":"yi4aOJ","uui-warning":"VJnXTb","uui-highlight":"B2YSHT","uui-typography-size-12":"k1RgZY","uui-typography-size-14":"lCHtdJ","uui-typography-size-16":"_4802YF","root":"i4iXF8","uuiTypography":"_0vDAlp","heroHeader":"_7WTe5H","promoHeader":"_5F36--","uuiCritical":"wYx1ll","uuiInfo":"dBBA8e","uuiSuccess":"yi4aOJ","uuiWarning":"VJnXTb","uuiHighlight":"B2YSHT","uuiTypographySize12":"k1RgZY","uuiTypographySize14":"lCHtdJ","uuiTypographySize16":"_4802YF"};
|
|
777
796
|
|
|
778
797
|
function applyRadioInputMods(mods) {
|
|
779
798
|
return [
|
|
780
|
-
css$
|
|
799
|
+
css$1q.root,
|
|
781
800
|
`uui-size-${mods.size || settings.sizes.defaults.radioInput}`,
|
|
782
801
|
'uui-radio-input-container',
|
|
783
802
|
'uui-color-primary',
|
|
@@ -785,11 +804,11 @@ function applyRadioInputMods(mods) {
|
|
|
785
804
|
}
|
|
786
805
|
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$A }));
|
|
787
806
|
|
|
788
|
-
var css$
|
|
807
|
+
var css$1p = {"root":"Z5aMA3"};
|
|
789
808
|
|
|
790
809
|
function applySwitchMods(mods) {
|
|
791
810
|
return [
|
|
792
|
-
css$
|
|
811
|
+
css$1p.root,
|
|
793
812
|
`uui-size-${mods.size || settings.sizes.defaults.switch}`,
|
|
794
813
|
'uui-color-primary',
|
|
795
814
|
];
|
|
@@ -853,7 +872,7 @@ var EditMode;
|
|
|
853
872
|
EditMode["INLINE"] = "inline";
|
|
854
873
|
})(EditMode || (EditMode = {}));
|
|
855
874
|
|
|
856
|
-
var textInputCss = {"uui-typography":"
|
|
875
|
+
var textInputCss = {"uui-typography":"IE-QG9","hero-header":"wRORJK","promo-header":"f7613Z","uui-critical":"_--iWEU","uui-info":"_-9rOHX","uui-success":"NDRIlb","uui-warning":"CQKvbC","uui-highlight":"kb8qex","uui-typography-size-12":"_8B1x1-","uui-typography-size-14":"TgkbnG","uui-typography-size-16":"XLo5Uo","root":"Sm9ixM","mode-form":"_0w4n8u","mode-inline":"rIYg4B","mode-cell":"eFfG9Z","uuiTypography":"IE-QG9","heroHeader":"wRORJK","promoHeader":"f7613Z","uuiCritical":"_--iWEU","uuiInfo":"_-9rOHX","uuiSuccess":"NDRIlb","uuiWarning":"CQKvbC","uuiHighlight":"kb8qex","uuiTypographySize12":"_8B1x1-","uuiTypographySize14":"TgkbnG","uuiTypographySize16":"XLo5Uo","modeForm":"_0w4n8u","modeInline":"rIYg4B","modeCell":"eFfG9Z"};
|
|
857
876
|
|
|
858
877
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
859
878
|
function applyTextInputMods(mods) {
|
|
@@ -879,22 +898,22 @@ const SearchInput = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
879
898
|
} })));
|
|
880
899
|
});
|
|
881
900
|
|
|
882
|
-
var css$
|
|
901
|
+
var css$1o = {"root":"JhWWcr"};
|
|
883
902
|
|
|
884
|
-
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
903
|
+
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1o.root, 'uui-control-group']);
|
|
885
904
|
|
|
886
905
|
function MultiSwitchComponent(props, ref) {
|
|
887
906
|
return (React__namespace.createElement(ControlGroup, { ref: ref, rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'tablist', 'aria-invalid': props.isInvalid, 'aria-required': props.isRequired, 'aria-disabled': props.isDisabled, 'aria-readonly': props.isReadonly }) }, props.items.map((item, index) => (React__namespace.createElement(Button, Object.assign({}, props, item, { isDisabled: props.isDisabled, key: index + '-' + item.id, onClick: () => props.onValueChange(item.id), fill: props.value === item.id ? 'solid' : 'outline', color: props.color, size: props.size, rawProps: { 'aria-current': props.value === item.id, role: 'tab' } }))))));
|
|
888
907
|
}
|
|
889
908
|
const MultiSwitch = /* @__PURE__ */React__namespace.forwardRef(MultiSwitchComponent);
|
|
890
909
|
|
|
891
|
-
var css$
|
|
910
|
+
var css$1n = {"uui-typography":"Q-gJON","hero-header":"EYwVQO","promo-header":"yUVuP4","uui-critical":"lTRg7J","uui-info":"WgfL7u","uui-success":"IhAgO7","uui-warning":"_0c3SBb","uui-highlight":"_0i12iV","uui-typography-size-12":"QRfKIz","uui-typography-size-14":"wF1WqS","uui-typography-size-16":"hw6VZ1","root":"Foc7wz","mode-form":"hHXIff","mode-cell":"ZpL1jl","uuiTypography":"Q-gJON","heroHeader":"EYwVQO","promoHeader":"yUVuP4","uuiCritical":"lTRg7J","uuiInfo":"WgfL7u","uuiSuccess":"IhAgO7","uuiWarning":"_0c3SBb","uuiHighlight":"_0i12iV","uuiTypographySize12":"QRfKIz","uuiTypographySize14":"wF1WqS","uuiTypographySize16":"hw6VZ1","modeForm":"hHXIff","modeCell":"ZpL1jl"};
|
|
892
911
|
|
|
893
912
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
894
913
|
function applyNumericInputMods(mods) {
|
|
895
914
|
return [
|
|
896
915
|
textInputCss.root,
|
|
897
|
-
css$
|
|
916
|
+
css$1n.root,
|
|
898
917
|
`uui-size-${mods.size || settings.sizes.defaults.numericInput}`,
|
|
899
918
|
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$2)],
|
|
900
919
|
];
|
|
@@ -909,15 +928,15 @@ const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput,
|
|
|
909
928
|
};
|
|
910
929
|
});
|
|
911
930
|
|
|
912
|
-
var css$
|
|
931
|
+
var css$1m = {"uui-typography":"kraxks","hero-header":"jYhR5O","promo-header":"H-HnUN","uui-critical":"vRG3Yg","uui-info":"C4k6Mo","uui-success":"HZ5x63","uui-warning":"_6iwVuo","uui-highlight":"LsKZKH","uui-typography-size-12":"wfw2v7","uui-typography-size-14":"wVvaAq","uui-typography-size-16":"SQTiCz","root":"_9dV220","mode-form":"Sg9dai","mode-cell":"_3Jm9CD","mode-inline":"iZF6qU","uuiTypography":"kraxks","heroHeader":"jYhR5O","promoHeader":"H-HnUN","uuiCritical":"vRG3Yg","uuiInfo":"C4k6Mo","uuiSuccess":"HZ5x63","uuiWarning":"_6iwVuo","uuiHighlight":"LsKZKH","uuiTypographySize12":"wfw2v7","uuiTypographySize14":"wVvaAq","uuiTypographySize16":"SQTiCz","modeForm":"Sg9dai","modeCell":"_3Jm9CD","modeInline":"iZF6qU"};
|
|
913
932
|
|
|
914
933
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
915
934
|
function applyTextAreaMods(mods) {
|
|
916
935
|
return [
|
|
917
|
-
css$
|
|
936
|
+
css$1m.root,
|
|
918
937
|
'uui-textarea',
|
|
919
938
|
'uui-size-' + (mods.size || settings.sizes.defaults.textArea),
|
|
920
|
-
css$
|
|
939
|
+
css$1m['mode-' + (mods.mode || DEFAULT_MODE$1)],
|
|
921
940
|
];
|
|
922
941
|
}
|
|
923
942
|
const TextArea = /* @__PURE__ */uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (props) => {
|
|
@@ -1010,16 +1029,16 @@ var SvgNotificationInfoFill = function SvgNotificationInfoFill(props, ref) {
|
|
|
1010
1029
|
};
|
|
1011
1030
|
var ForwardRef$w = /*#__PURE__*/React.forwardRef(SvgNotificationInfoFill);
|
|
1012
1031
|
|
|
1013
|
-
var css$
|
|
1032
|
+
var css$1l = {"uui-typography":"yCzEpI","hero-header":"AXZWdA","promo-header":"Yn3zur","uui-critical":"O0iIk4","uui-info":"L-HGfe","uui-success":"ZTGTrk","uui-warning":"tuPZnj","uui-highlight":"koe-x3","uui-typography-size-12":"v5VI5W","uui-typography-size-14":"bgRmfd","uui-typography-size-16":"_2xkfK5","root":"_3dpb4i","icon-wrapper":"AwiflA","alert-wrapper":"SHAyAv","size-48":"VHC3p-","size-36":"Vf7ybq","action-wrapper":"LnTSgV","action-icon":"quTgZ0","action-link":"_0X4aph","close-icon":"WDxzri","main-path":"bcNYOs","content":"_2OqUR9","uuiTypography":"yCzEpI","heroHeader":"AXZWdA","promoHeader":"Yn3zur","uuiCritical":"O0iIk4","uuiInfo":"L-HGfe","uuiSuccess":"ZTGTrk","uuiWarning":"tuPZnj","uuiHighlight":"koe-x3","uuiTypographySize12":"v5VI5W","uuiTypographySize14":"bgRmfd","uuiTypographySize16":"_2xkfK5","iconWrapper":"AwiflA","alertWrapper":"SHAyAv","size48":"VHC3p-","size36":"Vf7ybq","actionWrapper":"LnTSgV","actionIcon":"quTgZ0","actionLink":"_0X4aph","closeIcon":"WDxzri","mainPath":"bcNYOs"};
|
|
1014
1033
|
|
|
1015
|
-
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default('uui-alert', css$
|
|
1016
|
-
React__namespace.createElement("div", { className: css$
|
|
1017
|
-
props.icon && (React__namespace.createElement("div", { className: css$
|
|
1018
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
1019
|
-
React__namespace.createElement("div", { className: css$
|
|
1034
|
+
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default('uui-alert', css$1l.root, css$1l.alertWrapper, props.color && `uui-color-${props.color}`, props.cx, (props.size === '36' ? css$1l.size36 : css$1l.size48)) }, props.rawProps),
|
|
1035
|
+
React__namespace.createElement("div", { className: css$1l.mainPath },
|
|
1036
|
+
props.icon && (React__namespace.createElement("div", { className: css$1l.iconWrapper },
|
|
1037
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$1l.actionIcon }))),
|
|
1038
|
+
React__namespace.createElement("div", { className: css$1l.content },
|
|
1020
1039
|
props.children,
|
|
1021
|
-
props.actions && (React__namespace.createElement("div", { className: css$
|
|
1022
|
-
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$Q, color: "neutral", onClick: props.onClose, cx: css$
|
|
1040
|
+
props.actions && (React__namespace.createElement("div", { className: css$1l.actionWrapper }, props.actions.map((action) => (React__namespace.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$1l.actionLink, size: (props === null || props === void 0 ? void 0 : props.size) === '36' ? '24' : '30' })))))),
|
|
1041
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$Q, color: "neutral", onClick: props.onClose, cx: css$1l.closeIcon })))));
|
|
1023
1042
|
const WarningAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$y, color: "warning", ref: ref }, props)));
|
|
1024
1043
|
const SuccessAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$z, color: "success", ref: ref }, props)));
|
|
1025
1044
|
const HintAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$w, color: "info", ref: ref }, props)));
|
|
@@ -1027,18 +1046,18 @@ const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => Re
|
|
|
1027
1046
|
|
|
1028
1047
|
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
1029
1048
|
|
|
1030
|
-
var css$
|
|
1049
|
+
var css$1k = {"root":"JoY2h3"};
|
|
1031
1050
|
|
|
1032
1051
|
function applyDropdownContainerMods(mods) {
|
|
1033
1052
|
return [
|
|
1034
|
-
css$
|
|
1053
|
+
css$1k.root,
|
|
1035
1054
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1036
1055
|
mods.padding && `padding-${mods.padding}`,
|
|
1037
1056
|
];
|
|
1038
1057
|
}
|
|
1039
1058
|
const DropdownContainer = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1040
1059
|
|
|
1041
|
-
var css$
|
|
1060
|
+
var css$1j = {"uui-typography":"LhAmaS","hero-header":"_84moZs","promo-header":"P4zPIl","uui-critical":"GcrlTP","uui-info":"_7Inb16","uui-success":"HqVhC2","uui-warning":"_8HuU7P","uui-highlight":"mkQUAO","uui-typography-size-12":"uwkPWn","uui-typography-size-14":"_1y8jH7","uui-typography-size-16":"JFG2-i","submenu-root-item-rtl":"fkhB5s","icon-after":"ogoL8r","submenu-root-item":"Fhwaey","icon-check":"e90WQL","splitter-root":"zlMLVx","splitter":"Bql76-","header-root":"cgxatS","item-root":"SQXlQl","icon":"Fm3QwK","link":"OiDmeF","indent":"XfgEgN","selected-mark":"_2AsqQ3","uuiTypography":"LhAmaS","heroHeader":"_84moZs","promoHeader":"P4zPIl","uuiCritical":"GcrlTP","uuiInfo":"_7Inb16","uuiSuccess":"HqVhC2","uuiWarning":"_8HuU7P","uuiHighlight":"mkQUAO","uuiTypographySize12":"uwkPWn","uuiTypographySize14":"_1y8jH7","uuiTypographySize16":"JFG2-i","submenuRootItemRtl":"fkhB5s","iconAfter":"ogoL8r","submenuRootItem":"Fhwaey","iconCheck":"e90WQL","splitterRoot":"zlMLVx","headerRoot":"cgxatS","itemRoot":"SQXlQl","selectedMark":"_2AsqQ3"};
|
|
1042
1061
|
|
|
1043
1062
|
exports.IDropdownControlKeys = void 0;
|
|
1044
1063
|
(function (IDropdownControlKeys) {
|
|
@@ -1099,17 +1118,17 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
1099
1118
|
const getMenuButtonContent = () => {
|
|
1100
1119
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1101
1120
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1102
|
-
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$
|
|
1121
|
+
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$1j.icon, iconPosition === 'right' ? css$1j.iconAfter : css$1j.iconBefore) }));
|
|
1103
1122
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1104
1123
|
isIconBefore && iconElement,
|
|
1105
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$
|
|
1124
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$1j.indent }, caption),
|
|
1106
1125
|
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1107
1126
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1108
1127
|
iconElement))));
|
|
1109
1128
|
};
|
|
1110
1129
|
const isAnchor = Boolean(link || href);
|
|
1111
|
-
const itemClassNames = uuiCore.cx(props.cx, css$
|
|
1112
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$
|
|
1130
|
+
const itemClassNames = uuiCore.cx(props.cx, css$1j.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened);
|
|
1131
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$1j.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isLinkActive: isActive, isDisabled: isDisabled, target: target }, getMenuButtonContent())) : (React__namespace.default.createElement(uuiComponents.FlexRow, { rawProps: {
|
|
1113
1132
|
tabIndex: isDisabled ? -1 : 0,
|
|
1114
1133
|
role: 'menuitem',
|
|
1115
1134
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
@@ -1117,15 +1136,15 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
1117
1136
|
getMenuButtonContent(),
|
|
1118
1137
|
isSelected && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1119
1138
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1120
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: systemIcons.accept, cx: css$
|
|
1139
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: systemIcons.accept, cx: css$1j.selectedMark })))));
|
|
1121
1140
|
});
|
|
1122
1141
|
function DropdownMenuSplitter(props) {
|
|
1123
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
1124
|
-
React__namespace.default.createElement("hr", { className: css$
|
|
1142
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$1j.splitterRoot) },
|
|
1143
|
+
React__namespace.default.createElement("hr", { className: css$1j.splitter })));
|
|
1125
1144
|
}
|
|
1126
1145
|
function DropdownMenuHeader(props) {
|
|
1127
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$
|
|
1128
|
-
React__namespace.default.createElement("span", { className: css$
|
|
1146
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$1j.headerRoot) },
|
|
1147
|
+
React__namespace.default.createElement("span", { className: css$1j.header }, props.caption)));
|
|
1129
1148
|
}
|
|
1130
1149
|
function DropdownSubMenu(props) {
|
|
1131
1150
|
const subMenuModifiers = [
|
|
@@ -1147,7 +1166,7 @@ function DropdownSubMenu(props) {
|
|
|
1147
1166
|
const isRtl = (window === null || window === void 0 ? void 0 : window.document.dir) === 'rtl';
|
|
1148
1167
|
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__namespace.default.createElement(DropdownMenuBody, Object.assign({ closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW }, props, dropdownProps))), renderTarget: (_a) => {
|
|
1149
1168
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
1150
|
-
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(isRtl ? css$
|
|
1169
|
+
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(isRtl ? css$1j.submenuRootItemRtl : css$1j.submenuRootItem), icon: systemIcons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
1151
1170
|
} }));
|
|
1152
1171
|
}
|
|
1153
1172
|
function DropdownMenuSwitchButton(props) {
|
|
@@ -1164,29 +1183,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1164
1183
|
onHandleValueChange(!isSelected);
|
|
1165
1184
|
}
|
|
1166
1185
|
};
|
|
1167
|
-
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$
|
|
1168
|
-
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$
|
|
1186
|
+
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$1j.itemRoot, isDisabled && uuiCore.uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
1187
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$1j.iconBefore }),
|
|
1169
1188
|
React__namespace.default.createElement(uuiComponents.Text, null, caption),
|
|
1170
1189
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1171
1190
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1172
1191
|
}
|
|
1173
1192
|
|
|
1174
|
-
var css$
|
|
1193
|
+
var css$1i = {"uui-typography":"S2o-o-","hero-header":"CfSPLb","promo-header":"AgFHcd","uui-critical":"cn9KwR","uui-info":"DS-VE-","uui-success":"_0ozi0L","uui-warning":"yYeEl0","uui-highlight":"_0Y-XuT","uui-typography-size-12":"SLFQ-G","uui-typography-size-14":"JDc0rp","uui-typography-size-16":"d8zICA","root":"_8uGCVC","mode-block":"r6K-uo","mode-inline":"DxTnGC","padding-0":"dutFLq","padding-6":"_-0UzpJ","padding-12":"_4q2P4-","padding-18":"vIJAGC","uuiTypography":"S2o-o-","heroHeader":"CfSPLb","promoHeader":"AgFHcd","uuiCritical":"cn9KwR","uuiInfo":"DS-VE-","uuiSuccess":"_0ozi0L","uuiWarning":"yYeEl0","uuiHighlight":"_0Y-XuT","uuiTypographySize12":"SLFQ-G","uuiTypographySize14":"JDc0rp","uuiTypographySize16":"d8zICA","modeBlock":"r6K-uo","modeInline":"DxTnGC","padding0":"dutFLq","padding6":"_-0UzpJ","padding12":"_4q2P4-","padding18":"vIJAGC"};
|
|
1175
1194
|
|
|
1176
1195
|
function applyAccordionMods(mods) {
|
|
1177
1196
|
return [
|
|
1178
|
-
css$
|
|
1179
|
-
css$
|
|
1180
|
-
mods.padding && css$
|
|
1197
|
+
css$1i.root,
|
|
1198
|
+
css$1i[`mode-${mods.mode || 'block'}`],
|
|
1199
|
+
mods.padding && css$1i['padding-' + mods.padding],
|
|
1181
1200
|
];
|
|
1182
1201
|
}
|
|
1183
1202
|
const Accordion = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Accordion, applyAccordionMods, (mods) => ({
|
|
1184
1203
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons.foldingArrow,
|
|
1185
1204
|
}));
|
|
1186
1205
|
|
|
1187
|
-
var css$
|
|
1206
|
+
var css$1h = {"uui-typography":"bt8Nlk","hero-header":"A0mw2Y","promo-header":"zIYpcz","uui-critical":"mKDHUh","uui-info":"HGoYZe","uui-success":"XDC4MR","uui-warning":"Q-PVwX","uui-highlight":"fHwqVX","uui-typography-size-12":"o8lM0o","uui-typography-size-14":"PUucJL","uui-typography-size-16":"_0t42ef","root":"_7C5cuN","border-top":"mAT5PQ","border-bottom":"kkeeyZ","top-shadow":"Qbuex6","padding-6":"PsLHke","padding-12":"HlNNVh","padding-18":"aPH6CM","padding-24":"k6Idm4","margin-24":"rDNt95","margin-12":"mpdrPO","vPadding-12":"yy6-Or","vPadding-18":"vCGjJe","vPadding-24":"YRtBDK","vPadding-36":"-qW6BO","vPadding-48":"_-19xeS","spacing-6":"n7hwlq","spacing-12":"wBfPvg","spacing-18":"kzcnpP","uui-surface-main":"kcN-Fg","uuiTypography":"bt8Nlk","heroHeader":"A0mw2Y","promoHeader":"zIYpcz","uuiCritical":"mKDHUh","uuiInfo":"HGoYZe","uuiSuccess":"XDC4MR","uuiWarning":"Q-PVwX","uuiHighlight":"fHwqVX","uuiTypographySize12":"o8lM0o","uuiTypographySize14":"PUucJL","uuiTypographySize16":"_0t42ef","borderTop":"mAT5PQ","borderBottom":"kkeeyZ","topShadow":"Qbuex6","padding6":"PsLHke","padding12":"HlNNVh","padding18":"aPH6CM","padding24":"k6Idm4","margin24":"rDNt95","margin12":"mpdrPO","vPadding12":"yy6-Or","vPadding18":"vCGjJe","vPadding24":"YRtBDK","vPadding36":"-qW6BO","vPadding48":"_-19xeS","spacing6":"n7hwlq","spacing12":"wBfPvg","spacing18":"kzcnpP","uuiSurfaceMain":"kcN-Fg"};
|
|
1188
1207
|
|
|
1189
|
-
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$
|
|
1208
|
+
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$1h.flexCell]);
|
|
1190
1209
|
|
|
1191
1210
|
const FlexRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexRow, (props) => {
|
|
1192
1211
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1195,45 +1214,45 @@ const FlexRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexRow, (props) =
|
|
|
1195
1214
|
}
|
|
1196
1215
|
}
|
|
1197
1216
|
return [
|
|
1198
|
-
css$
|
|
1217
|
+
css$1h.root,
|
|
1199
1218
|
props.size !== null && 'uui-size-' + (props.size || '36'),
|
|
1200
|
-
props.padding && css$
|
|
1201
|
-
props.vPadding && css$
|
|
1202
|
-
props.margin && css$
|
|
1203
|
-
props.topShadow && css$
|
|
1204
|
-
props.borderBottom && css$
|
|
1205
|
-
props.borderTop && css$
|
|
1206
|
-
props.spacing && css$
|
|
1207
|
-
props.background && css$
|
|
1219
|
+
props.padding && css$1h['padding-' + props.padding],
|
|
1220
|
+
props.vPadding && css$1h['vPadding-' + props.vPadding],
|
|
1221
|
+
props.margin && css$1h['margin-' + props.margin],
|
|
1222
|
+
props.topShadow && css$1h.topShadow,
|
|
1223
|
+
props.borderBottom && css$1h.borderBottom,
|
|
1224
|
+
props.borderTop && css$1h.borderTop,
|
|
1225
|
+
props.spacing && css$1h['spacing-' + props.spacing],
|
|
1226
|
+
props.background && css$1h[`uui-${props.background}`],
|
|
1208
1227
|
];
|
|
1209
1228
|
});
|
|
1210
1229
|
|
|
1211
|
-
var css$
|
|
1230
|
+
var css$1g = {"root":"_9FGXCT","margin-24":"EjpmEL","padding-12":"z6-qpT","padding-24":"NyPunt","shadow":"_6pYslq","uui-surface-main":"RI6ckR","margin24":"EjpmEL","padding12":"z6-qpT","padding24":"NyPunt","uuiSurfaceMain":"RI6ckR"};
|
|
1212
1231
|
|
|
1213
1232
|
const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
1214
1233
|
'uui-panel',
|
|
1215
|
-
css$
|
|
1216
|
-
props.shadow && css$
|
|
1217
|
-
props.margin && css$
|
|
1218
|
-
props.background && css$
|
|
1234
|
+
css$1g.root,
|
|
1235
|
+
props.shadow && css$1g.shadow,
|
|
1236
|
+
props.margin && css$1g['margin-' + props.margin],
|
|
1237
|
+
props.background && css$1g[`uui-${props.background}`],
|
|
1219
1238
|
]);
|
|
1220
1239
|
|
|
1221
|
-
var css$
|
|
1240
|
+
var css$1f = {"root":"rt8ePW"};
|
|
1222
1241
|
|
|
1223
1242
|
function applyTooltipMods(mods) {
|
|
1224
1243
|
return [
|
|
1225
|
-
css$
|
|
1244
|
+
css$1f.root,
|
|
1226
1245
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1227
1246
|
];
|
|
1228
1247
|
}
|
|
1229
1248
|
const Tooltip = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
1230
1249
|
|
|
1231
|
-
var css$
|
|
1250
|
+
var css$1e = {"uui-typography":"YGuA08","hero-header":"_44jcM9","promo-header":"_3xEhQL","uui-critical":"FQIW-E","uui-info":"_3qRErq","uui-success":"_3X2wgD","uui-warning":"b6Orn6","uui-highlight":"_5KwTJm","uui-typography-size-12":"_1IFkG4","uui-typography-size-14":"PLDNDb","uui-typography-size-16":"XeAw-n","root":"_0iJhfE","uuiTypography":"YGuA08","heroHeader":"_44jcM9","promoHeader":"_3xEhQL","uuiCritical":"FQIW-E","uuiInfo":"_3qRErq","uuiSuccess":"_3X2wgD","uuiWarning":"b6Orn6","uuiHighlight":"_5KwTJm","uuiTypographySize12":"_1IFkG4","uuiTypographySize14":"PLDNDb","uuiTypographySize16":"XeAw-n"};
|
|
1232
1251
|
|
|
1233
1252
|
function applyLabeledInputMods(mods) {
|
|
1234
1253
|
return [
|
|
1235
1254
|
'uui-labeled-input',
|
|
1236
|
-
css$
|
|
1255
|
+
css$1e.root,
|
|
1237
1256
|
'uui-size-' + (mods.size || settings.sizes.defaults.labeledInput),
|
|
1238
1257
|
];
|
|
1239
1258
|
}
|
|
@@ -1242,7 +1261,7 @@ const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.La
|
|
|
1242
1261
|
infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$w : ForwardRef$L),
|
|
1243
1262
|
}));
|
|
1244
1263
|
|
|
1245
|
-
var css$
|
|
1264
|
+
var css$1d = {"root":"lwqFqf"};
|
|
1246
1265
|
|
|
1247
1266
|
function RadioGroup(props) {
|
|
1248
1267
|
const direction = props.direction || 'vertical';
|
|
@@ -1251,34 +1270,34 @@ function RadioGroup(props) {
|
|
|
1251
1270
|
props.onValueChange(newVal);
|
|
1252
1271
|
}
|
|
1253
1272
|
};
|
|
1254
|
-
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
1273
|
+
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$1d.root, uuiCore.directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur }, props.rawProps), props.items.map((i) => {
|
|
1255
1274
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1256
1275
|
return (React__namespace.createElement(RadioInput, Object.assign({ name: props.name, renderLabel: i.renderName ? i.renderName : () => i.name, value: props.value === i.id, onValueChange: () => handleChange(i.id), isDisabled: props.isDisabled || i.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size }, restItemProps)));
|
|
1257
1276
|
})));
|
|
1258
1277
|
}
|
|
1259
1278
|
|
|
1260
|
-
var css$
|
|
1279
|
+
var css$1c = {"root":"-OvgME"};
|
|
1261
1280
|
|
|
1262
1281
|
function applyScrollBarsMods() {
|
|
1263
1282
|
return [
|
|
1264
|
-
css$
|
|
1283
|
+
css$1c.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1265
1284
|
];
|
|
1266
1285
|
}
|
|
1267
1286
|
const ScrollBars = /* @__PURE__ */uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
1268
1287
|
|
|
1269
|
-
var css$
|
|
1288
|
+
var css$1b = {"scroll-container":"ThzBJH","list-container":"GKfTqq","scrollContainer":"ThzBJH","listContainer":"GKfTqq"};
|
|
1270
1289
|
|
|
1271
|
-
var css$
|
|
1290
|
+
var css$1a = {"root":"yCMyMw"};
|
|
1272
1291
|
|
|
1273
|
-
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$
|
|
1292
|
+
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$1a.root]);
|
|
1274
1293
|
|
|
1275
|
-
var css$
|
|
1294
|
+
var css$19 = {"uui-typography":"Sl9yAC","hero-header":"Hr9yYh","promo-header":"BjcPIP","uui-critical":"reqMb7","uui-info":"XvSMxw","uui-success":"XG6WYV","uui-warning":"IB2xUP","uui-highlight":"Op8Ljy","uui-typography-size-12":"_6z-9Gs","uui-typography-size-14":"GtaTfQ","uui-typography-size-16":"_109Tag","root":"-Cpklp","uuiTypography":"Sl9yAC","heroHeader":"Hr9yYh","promoHeader":"BjcPIP","uuiCritical":"reqMb7","uuiInfo":"XvSMxw","uuiSuccess":"XG6WYV","uuiWarning":"IB2xUP","uuiHighlight":"Op8Ljy","uuiTypographySize12":"_6z-9Gs","uuiTypographySize14":"GtaTfQ","uuiTypographySize16":"_109Tag"};
|
|
1276
1295
|
|
|
1277
1296
|
const DEFAULT_FILL = 'solid';
|
|
1278
1297
|
function applyBadgeMods(mods) {
|
|
1279
1298
|
return [
|
|
1280
1299
|
'uui-badge',
|
|
1281
|
-
css$
|
|
1300
|
+
css$19.root,
|
|
1282
1301
|
`uui-size-${mods.size || settings.sizes.defaults.badge}`,
|
|
1283
1302
|
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1284
1303
|
`uui-color-${mods.color || 'info'}`,
|
|
@@ -1296,11 +1315,11 @@ const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) =>
|
|
|
1296
1315
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1297
1316
|
});
|
|
1298
1317
|
|
|
1299
|
-
var css$
|
|
1318
|
+
var css$18 = {"uui-typography":"MGBCpM","hero-header":"oIR8Ny","promo-header":"IZB4YF","uui-critical":"_108vYF","uui-info":"_-0zJha","uui-success":"-FG197","uui-warning":"p-6mVt","uui-highlight":"XmbNT4","uui-typography-size-12":"eQK8oB","uui-typography-size-14":"DiNG8z","uui-typography-size-16":"X6Q6oy","root":"v4IMwf","uuiTypography":"MGBCpM","heroHeader":"oIR8Ny","promoHeader":"IZB4YF","uuiCritical":"_108vYF","uuiInfo":"_-0zJha","uuiSuccess":"-FG197","uuiWarning":"p-6mVt","uuiHighlight":"XmbNT4","uuiTypographySize12":"eQK8oB","uuiTypographySize14":"DiNG8z","uuiTypographySize16":"X6Q6oy"};
|
|
1300
1319
|
|
|
1301
1320
|
function applyTagMods(props) {
|
|
1302
1321
|
return [
|
|
1303
|
-
css$
|
|
1322
|
+
css$18.root,
|
|
1304
1323
|
`uui-size-${props.size || settings.sizes.defaults.tag}`,
|
|
1305
1324
|
`uui-color-${props.color || 'neutral'}`,
|
|
1306
1325
|
`uui-fill-${props.fill || 'solid'}`,
|
|
@@ -1320,10 +1339,10 @@ const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
|
1320
1339
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1321
1340
|
});
|
|
1322
1341
|
|
|
1323
|
-
var css$
|
|
1342
|
+
var css$17 = {"root":"NEG8Ze","uui-spinner":"-zU5-v","uuiSpinner":"-zU5-v"};
|
|
1324
1343
|
|
|
1325
1344
|
function applySpinnerMods() {
|
|
1326
|
-
return [css$
|
|
1345
|
+
return [css$17.root, 'uui-spinner'];
|
|
1327
1346
|
}
|
|
1328
1347
|
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
1329
1348
|
|
|
@@ -1357,57 +1376,57 @@ var SvgNavigationChevronRightOutline = function SvgNavigationChevronRightOutline
|
|
|
1357
1376
|
};
|
|
1358
1377
|
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRightOutline);
|
|
1359
1378
|
|
|
1360
|
-
var css$
|
|
1379
|
+
var css$16 = {"root":"mwSneS","page":"HS38SJ","spacer":"CKAqZ6","mode-ghost":"uVz0jF","modeGhost":"uVz0jF"};
|
|
1361
1380
|
|
|
1362
1381
|
function Paginator(props) {
|
|
1363
|
-
const renderPaginator = (params) => (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: cx__default.default(css$
|
|
1382
|
+
const renderPaginator = (params) => (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: cx__default.default(css$16.root, 'uui-paginator', `uui-size-${props.size || settings.sizes.defaults.paginator}`) }, params.rawProps),
|
|
1364
1383
|
React__namespace.default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$v, onClick: params.goToPrev, isDisabled: params.isFirst || props.isDisabled, fill: "outline", color: "secondary" }),
|
|
1365
1384
|
params.pages.map((page, index) => {
|
|
1366
1385
|
if (page.type === 'spacer') {
|
|
1367
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
1386
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$16.spacer, css$16.page), size: props.size || settings.sizes.defaults.paginator, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
|
|
1368
1387
|
}
|
|
1369
1388
|
else {
|
|
1370
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
1389
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$16[`mode-${!page.isActive && 'ghost'}`], css$16.page), size: props.size || settings.sizes.defaults.paginator, key: page.pageNumber, caption: page.pageNumber, onClick: () => { var _a; return (_a = page.onClick) === null || _a === void 0 ? void 0 : _a.call(page); }, rawProps: { 'aria-current': page.isActive }, fill: (page.isActive && 'outline') || 'ghost', color: "primary", isDisabled: props.isDisabled }));
|
|
1371
1390
|
}
|
|
1372
1391
|
}),
|
|
1373
1392
|
React__namespace.default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$u, onClick: params.goToNext, isDisabled: params.isLast || props.isDisabled, fill: "outline", color: "secondary" })));
|
|
1374
1393
|
return React__namespace.default.createElement(uuiComponents.Paginator, Object.assign({}, props, { render: renderPaginator }));
|
|
1375
1394
|
}
|
|
1376
1395
|
|
|
1377
|
-
var css$
|
|
1396
|
+
var css$15 = {"root":"po8Ftz","progress-bar":"mv-1OL","progressBar-indeterminate":"kJFdmf","size-12":"-OSOBd","size-18":"w36qt4","size-24":"_48ee3A","progressBar":"mv-1OL","progressBarIndeterminate":"kJFdmf","size12":"-OSOBd","size18":"w36qt4","size24":"_48ee3A"};
|
|
1378
1397
|
|
|
1379
1398
|
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1380
|
-
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$
|
|
1381
|
-
React__namespace.createElement("div", { className: cx__default.default(css$
|
|
1399
|
+
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$15.root, css$15[`size-${props.size || 12}`]) },
|
|
1400
|
+
React__namespace.createElement("div", { className: cx__default.default(css$15.progressBar) })));
|
|
1382
1401
|
});
|
|
1383
1402
|
|
|
1384
|
-
var css$
|
|
1403
|
+
var css$14 = {"root":"xjyqu8","striped":"-ILHsI","animate-stripes":"vqvW4R","size-12":"Yn4aH4","size-18":"fTDK5f","size-24":"SQUctP","animateStripes":"vqvW4R","size12":"Yn4aH4","size18":"fTDK5f","size24":"SQUctP"};
|
|
1385
1404
|
|
|
1386
1405
|
const DEFAULT_SIZE = '12';
|
|
1387
1406
|
function applyProgressBarMods(mods) {
|
|
1388
1407
|
const size = mods.size || DEFAULT_SIZE;
|
|
1389
1408
|
return [
|
|
1390
|
-
css$
|
|
1391
|
-
css$
|
|
1392
|
-
mods.striped && css$
|
|
1409
|
+
css$14.root,
|
|
1410
|
+
css$14[`size-${size}`],
|
|
1411
|
+
mods.striped && css$14.striped,
|
|
1393
1412
|
];
|
|
1394
1413
|
}
|
|
1395
1414
|
const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1396
1415
|
hideLabel: props.hideLabel || props.striped,
|
|
1397
1416
|
}));
|
|
1398
1417
|
|
|
1399
|
-
var css$
|
|
1418
|
+
var css$13 = {"root":"_5viqWZ"};
|
|
1400
1419
|
|
|
1401
1420
|
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1402
1421
|
const { progress } = props;
|
|
1403
|
-
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$
|
|
1422
|
+
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$13.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$13.root, props.cx) }));
|
|
1404
1423
|
});
|
|
1405
1424
|
|
|
1406
|
-
var css$
|
|
1425
|
+
var css$12 = {"root":"XRGt84"};
|
|
1407
1426
|
|
|
1408
1427
|
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1409
1428
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
1410
|
-
css$
|
|
1429
|
+
css$12.root,
|
|
1411
1430
|
`uui-size-${props.size || settings.sizes.defaults.statusIndicator}`,
|
|
1412
1431
|
'uui-status_indicator',
|
|
1413
1432
|
`uui-color-${props.color || 'neutral'}`,
|
|
@@ -1418,7 +1437,7 @@ const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1418
1437
|
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1419
1438
|
});
|
|
1420
1439
|
|
|
1421
|
-
var css$
|
|
1440
|
+
var css$11 = {"drag-handle":"PyLQZZ","icon-container":"GkzJqu","dragHandle":"PyLQZZ","iconContainer":"GkzJqu"};
|
|
1422
1441
|
|
|
1423
1442
|
function DataRowAddons(props) {
|
|
1424
1443
|
var _a, _b;
|
|
@@ -1430,19 +1449,19 @@ function DataRowAddons(props) {
|
|
|
1430
1449
|
return settings.sizes.rowAddons.indentWidth[props.size] || settings.sizes.rowAddons.defaults.indentWidth;
|
|
1431
1450
|
};
|
|
1432
1451
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1433
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$
|
|
1452
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$11.dragHandle, rawProps: Object.assign({}, props.eventHandlers) }),
|
|
1434
1453
|
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__namespace.default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: settings.sizes.rowAddons.checkbox[props.size], value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => { var _a; return (_a = row.onCheck) === null || _a === void 0 ? void 0 : _a.call(row, row); }, isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
|
|
1435
1454
|
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: cx__default.default('uui-dr_addons-indent', `uui-size-${props.size}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
1436
1455
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1437
1456
|
role: 'button',
|
|
1438
1457
|
}, key: "icon", icon: ForwardRef$P, cx: [
|
|
1439
|
-
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$
|
|
1458
|
+
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$11.iconContainer,
|
|
1440
1459
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.sizes.rowAddons.icon[props.size] || settings.sizes.rowAddons.defaults.icon }))))));
|
|
1441
1460
|
}
|
|
1442
1461
|
|
|
1443
|
-
var css
|
|
1462
|
+
var css$10 = {"root":"b0sOL3"};
|
|
1444
1463
|
|
|
1445
|
-
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css
|
|
1464
|
+
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$10.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__namespace.default.createElement(Spinner, null)) }));
|
|
1446
1465
|
|
|
1447
1466
|
const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1448
1467
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
@@ -1458,7 +1477,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1458
1477
|
var _a;
|
|
1459
1478
|
return ((_a = props.renderRows) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
1460
1479
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1461
|
-
})) || (React__namespace.createElement("div", { className: css$
|
|
1480
|
+
})) || (React__namespace.createElement("div", { className: css$1b.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1462
1481
|
React__namespace.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1463
1482
|
};
|
|
1464
1483
|
const renderView = ({ style }) => (React__namespace.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
@@ -1468,7 +1487,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1468
1487
|
return;
|
|
1469
1488
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1470
1489
|
}, []);
|
|
1471
|
-
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$
|
|
1490
|
+
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$1b.scrollContainer, props.cx, {
|
|
1472
1491
|
[uuiCore.uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1473
1492
|
[uuiCore.uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1474
1493
|
[uuiCore.uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -1481,7 +1500,7 @@ const VirtualListView = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
1481
1500
|
React__namespace.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
1482
1501
|
});
|
|
1483
1502
|
|
|
1484
|
-
var css
|
|
1503
|
+
var css$$ = {"root":"mvOULs"};
|
|
1485
1504
|
|
|
1486
1505
|
function CheckboxGroup(props) {
|
|
1487
1506
|
const currentValue = props.value || [];
|
|
@@ -1497,60 +1516,16 @@ function CheckboxGroup(props) {
|
|
|
1497
1516
|
}
|
|
1498
1517
|
props.onValueChange(newSelection);
|
|
1499
1518
|
};
|
|
1500
|
-
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css
|
|
1519
|
+
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$$.root, uuiCore.directionMode[direction], props.cx) }, props.rawProps), props.items.map((i) => {
|
|
1501
1520
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1502
1521
|
return (React__namespace.createElement(Checkbox, Object.assign({ renderLabel: i.renderName ? i.renderName : () => i.name, value: currentValue.indexOf(i.id) !== -1, onValueChange: (selected) => handleChange(selected, i.id), isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size }, restItemProps)));
|
|
1503
1522
|
})));
|
|
1504
1523
|
}
|
|
1505
1524
|
|
|
1506
|
-
var css$
|
|
1507
|
-
|
|
1508
|
-
function applyTextMods(mods) {
|
|
1509
|
-
return [
|
|
1510
|
-
css$Z.root,
|
|
1511
|
-
'uui-text',
|
|
1512
|
-
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
1513
|
-
(mods.size !== 'none' || mods.lineHeight) && css$Z.lineHeight,
|
|
1514
|
-
(mods.size !== 'none' || mods.fontSize) && css$Z.fontSize,
|
|
1515
|
-
`uui-color-${mods.color || 'primary'}`,
|
|
1516
|
-
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
1517
|
-
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
1518
|
-
'uui-typography',
|
|
1519
|
-
];
|
|
1520
|
-
}
|
|
1521
|
-
const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, applyTextMods, (props) => {
|
|
1522
|
-
var _a;
|
|
1523
|
-
const style = ((_a = props === null || props === void 0 ? void 0 : props.rawProps) === null || _a === void 0 ? void 0 : _a.style) || {};
|
|
1524
|
-
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
1525
|
-
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
1526
|
-
return {
|
|
1527
|
-
rawProps: Object.assign(Object.assign({}, props === null || props === void 0 ? void 0 : props.rawProps), { style: style }),
|
|
1528
|
-
};
|
|
1529
|
-
});
|
|
1530
|
-
|
|
1531
|
-
var css$Y = {"root":"St4c-s","loading-word":"-DYCSx","animated-loading":"d0oAb0","skeleton_loading":"_2oky-D","loadingWord":"-DYCSx","animatedLoading":"d0oAb0","skeletonLoading":"_2oky-D"};
|
|
1532
|
-
|
|
1533
|
-
const TextPlaceholder = (props) => {
|
|
1534
|
-
const pattern = ' ';
|
|
1535
|
-
const text = React__namespace.useMemo(() => {
|
|
1536
|
-
const words = [];
|
|
1537
|
-
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
1538
|
-
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
1539
|
-
words.push(pattern.repeat(lengthWord));
|
|
1540
|
-
}
|
|
1541
|
-
return words;
|
|
1542
|
-
}, [props.wordsCount]);
|
|
1543
|
-
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: cx__default.default(css$Y.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
1544
|
-
props.cx, css$Y.loadingWord, !props.isNotAnimated && css$Y.animatedLoading,
|
|
1545
|
-
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
1546
|
-
};
|
|
1547
|
-
|
|
1548
|
-
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
1549
|
-
|
|
1550
|
-
var css$X = {"uui-typography":"_0ccqKC","hero-header":"KckQiI","promo-header":"KxKPiL","uui-critical":"k1dXpL","uui-info":"zMB1fH","uui-success":"SUU4Hp","uui-warning":"pNaUE-","uui-highlight":"UfmBTR","uui-typography-size-12":"ywb3fi","uui-typography-size-14":"_4FQGnt","uui-typography-size-16":"_7NAAYY","root":"ckpq2c","modal-blocker":"axZzJa","animateModalBlocker":"X6GbLJ","modal":"ICz2Zj","modal-footer":"y8VUNA","modal-header":"r-aW-Z","uuiTypography":"_0ccqKC","heroHeader":"KckQiI","promoHeader":"KxKPiL","uuiCritical":"k1dXpL","uuiInfo":"zMB1fH","uuiSuccess":"SUU4Hp","uuiWarning":"pNaUE-","uuiHighlight":"UfmBTR","uuiTypographySize12":"ywb3fi","uuiTypographySize14":"_4FQGnt","uuiTypographySize16":"_7NAAYY","modalBlocker":"axZzJa","modalFooter":"y8VUNA","modalHeader":"r-aW-Z"};
|
|
1525
|
+
var css$_ = {"uui-typography":"EoP-5H","hero-header":"lI6OcR","promo-header":"_6L-NEk","uui-critical":"PjaSLu","uui-info":"hpV1o0","uui-success":"_3YQk-3","uui-warning":"_7t0K8R","uui-highlight":"-RZ3wY","uui-typography-size-12":"wjXOS7","uui-typography-size-14":"DIgqi-","uui-typography-size-16":"_11iGBk","root":"j8-8sT","modal-blocker":"owolSM","animateModalBlocker":"UC5AxM","modal":"A3-FNC","modal-footer":"uCfryF","modal-header":"WXxZvy","uuiTypography":"EoP-5H","heroHeader":"lI6OcR","promoHeader":"_6L-NEk","uuiCritical":"PjaSLu","uuiInfo":"hpV1o0","uuiSuccess":"_3YQk-3","uuiWarning":"_7t0K8R","uuiHighlight":"-RZ3wY","uuiTypographySize12":"wjXOS7","uuiTypographySize14":"DIgqi-","uuiTypographySize16":"_11iGBk","modalBlocker":"owolSM","modalFooter":"uCfryF","modalHeader":"WXxZvy"};
|
|
1551
1526
|
|
|
1552
|
-
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$
|
|
1553
|
-
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$
|
|
1527
|
+
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$_.modalBlocker]);
|
|
1528
|
+
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$_.root, css$_.modal], (props) => {
|
|
1554
1529
|
const width = props.width || settings.sizes.modal.window.defaults.width;
|
|
1555
1530
|
const height = props.height || 'auto';
|
|
1556
1531
|
const maxHeight = uuiCore.isMobile() ? '100dvh' : (props.maxHeight || '80dvh');
|
|
@@ -1562,8 +1537,8 @@ const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, (
|
|
|
1562
1537
|
});
|
|
1563
1538
|
class ModalHeader extends React__namespace.default.Component {
|
|
1564
1539
|
render() {
|
|
1565
|
-
return (React__namespace.default.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "
|
|
1566
|
-
this.props.title && (React__namespace.default.createElement(
|
|
1540
|
+
return (React__namespace.default.createElement(FlexRow, { padding: this.props.padding || '24', size: null, vPadding: "36", borderBottom: this.props.borderBottom, cx: [css$_.root, css$_.modalHeader, this.props.cx], columnGap: "12", rawProps: this.props.rawProps },
|
|
1541
|
+
this.props.title && (React__namespace.default.createElement("div", { className: cx__default.default('uui-modal-title', 'uui-typography') }, this.props.title)),
|
|
1567
1542
|
this.props.children,
|
|
1568
1543
|
this.props.onClose && React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1569
1544
|
this.props.onClose && (React__namespace.default.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
@@ -1573,8 +1548,8 @@ class ModalHeader extends React__namespace.default.Component {
|
|
|
1573
1548
|
class ModalFooter extends React__namespace.default.Component {
|
|
1574
1549
|
render() {
|
|
1575
1550
|
return (React__namespace.default.createElement(FlexRow, { columnGap: this.props.columnGap || '12', cx: [
|
|
1576
|
-
css$
|
|
1577
|
-
css$
|
|
1551
|
+
css$_.root,
|
|
1552
|
+
css$_.modalFooter,
|
|
1578
1553
|
this.props.cx,
|
|
1579
1554
|
], borderTop: this.props.borderTop, padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
1580
1555
|
}
|
|
@@ -1736,7 +1711,7 @@ var SvgNotificationHelpFill = function SvgNotificationHelpFill(props, ref) {
|
|
|
1736
1711
|
};
|
|
1737
1712
|
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgNotificationHelpFill);
|
|
1738
1713
|
|
|
1739
|
-
var css$
|
|
1714
|
+
var css$Z = {"uui-typography":"_4VEn8l","hero-header":"S64d-d","promo-header":"BPBpjk","uui-critical":"_7WocIG","uui-info":"rS6y3p","uui-success":"m5u3cZ","uui-warning":"QL3EHe","uui-highlight":"gfT3iH","uui-typography-size-12":"_4-B3aZ","uui-typography-size-14":"_7zHH46","uui-typography-size-16":"D1TJLt","root":"_4MxZ9X","icon-wrapper":"I02jhC","action-wrapper":"PJFLl2","action-link":"UjQ39V","close-icon":"NKXrLW","main-path":"VdPz6D","content":"TJEphp","close-wrapper":"jcRVZ9","notification-wrapper":"frgK2o","clear-button":"_4-dz5s","uuiTypography":"_4VEn8l","heroHeader":"S64d-d","promoHeader":"BPBpjk","uuiCritical":"_7WocIG","uuiInfo":"rS6y3p","uuiSuccess":"m5u3cZ","uuiWarning":"QL3EHe","uuiHighlight":"gfT3iH","uuiTypographySize12":"_4-B3aZ","uuiTypographySize14":"_7zHH46","uuiTypographySize16":"D1TJLt","iconWrapper":"I02jhC","actionWrapper":"PJFLl2","actionLink":"UjQ39V","closeIcon":"NKXrLW","mainPath":"VdPz6D","closeWrapper":"jcRVZ9","notificationWrapper":"frgK2o","clearButton":"_4-dz5s"};
|
|
1740
1715
|
|
|
1741
1716
|
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1742
1717
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -1751,15 +1726,15 @@ const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
1751
1726
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
1752
1727
|
};
|
|
1753
1728
|
}, []);
|
|
1754
|
-
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
1755
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1756
|
-
props.icon && (React__namespace.default.createElement("div", { className: css$
|
|
1729
|
+
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$Z.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
1730
|
+
React__namespace.default.createElement("div", { className: css$Z.mainPath },
|
|
1731
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$Z.iconWrapper },
|
|
1757
1732
|
React__namespace.default.createElement(uuiComponents.IconContainer, { size: 24, icon: props.icon }))),
|
|
1758
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1733
|
+
React__namespace.default.createElement("div", { className: css$Z.content },
|
|
1759
1734
|
props.children,
|
|
1760
|
-
props.actions && (React__namespace.default.createElement("div", { className: css$
|
|
1761
|
-
props.onClose && (React__namespace.default.createElement("div", { className: css$
|
|
1762
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$Q, color: "neutral", onClick: props.onClose, cx: css$
|
|
1735
|
+
props.actions && (React__namespace.default.createElement("div", { className: css$Z.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$Z.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
1736
|
+
props.onClose && (React__namespace.default.createElement("div", { className: css$Z.closeWrapper },
|
|
1737
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$Q, color: "neutral", onClick: props.onClose, cx: css$Z.closeIcon }))))));
|
|
1763
1738
|
});
|
|
1764
1739
|
const WarningNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$y, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
1765
1740
|
const SuccessNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$z, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
@@ -1767,11 +1742,11 @@ const HintNotification = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
1767
1742
|
const ErrorNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$x, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
1768
1743
|
function ClearNotification() {
|
|
1769
1744
|
const uuiCtx = uuiCore.useUuiContext();
|
|
1770
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
1745
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$Z.notificationWrapper, css$Z.clearButton) },
|
|
1771
1746
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
1772
1747
|
}
|
|
1773
1748
|
|
|
1774
|
-
var css$
|
|
1749
|
+
var css$Y = {"footer":"_468l7i"};
|
|
1775
1750
|
|
|
1776
1751
|
class ConfirmationModal extends React__namespace.Component {
|
|
1777
1752
|
render() {
|
|
@@ -1783,7 +1758,7 @@ class ConfirmationModal extends React__namespace.Component {
|
|
|
1783
1758
|
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
1784
1759
|
React__namespace.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
1785
1760
|
React__namespace.createElement(ScrollBars, null, bodyContent),
|
|
1786
|
-
React__namespace.createElement(ModalFooter, { cx: css$
|
|
1761
|
+
React__namespace.createElement(ModalFooter, { cx: css$Y.footer },
|
|
1787
1762
|
this.props.hideCancelButton || (React__namespace.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
1788
1763
|
React__namespace.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
1789
1764
|
}
|
|
@@ -1813,7 +1788,7 @@ function useReliableForceUpdate() {
|
|
|
1813
1788
|
return red[1];
|
|
1814
1789
|
}
|
|
1815
1790
|
|
|
1816
|
-
var css$
|
|
1791
|
+
var css$X = {"root":"xYt-1M","timepicker-input":"A2c6kw","ltr-always":"_5MytcW","timepickerInput":"A2c6kw","ltrAlways":"_5MytcW"};
|
|
1817
1792
|
|
|
1818
1793
|
const uuiTimePicker = {
|
|
1819
1794
|
container: 'uui-timepicker-container',
|
|
@@ -1852,8 +1827,8 @@ function TimePickerBody(props) {
|
|
|
1852
1827
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
1853
1828
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
1854
1829
|
};
|
|
1855
|
-
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$
|
|
1856
|
-
React__namespace.createElement("div", { className: css$
|
|
1830
|
+
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$X.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef }, props.rawProps),
|
|
1831
|
+
React__namespace.createElement("div", { className: css$X.ltrAlways },
|
|
1857
1832
|
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1858
1833
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
1859
1834
|
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -1995,7 +1970,7 @@ function TimePicker(props) {
|
|
|
1995
1970
|
};
|
|
1996
1971
|
const renderInput = (inputProps) => {
|
|
1997
1972
|
var _a;
|
|
1998
|
-
return (React__namespace.default.createElement(TextInput, Object.assign({}, inputProps, { onClick: null, size: props.size || '36', isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$
|
|
1973
|
+
return (React__namespace.default.createElement(TextInput, Object.assign({}, inputProps, { onClick: null, size: props.size || '36', isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$X.root, css$X.timepickerInput, props.inputCx], value: state.inputValue, onValueChange: handleInputChange, onCancel: !props.disableClear && onClear, onFocus: handleFocus, onBlur: handleBlur, isDropdown: false, placeholder: props.placeholder ? props.placeholder : getFormat(), mode: props.mode || DEFAULT_MODE, rawProps: (_a = props.rawProps) === null || _a === void 0 ? void 0 : _a.input })));
|
|
1999
1974
|
};
|
|
2000
1975
|
const renderBody = (bodyProps) => {
|
|
2001
1976
|
var _a;
|
|
@@ -2006,19 +1981,19 @@ function TimePicker(props) {
|
|
|
2006
1981
|
return (React__namespace.default.createElement(Dropdown, { renderTarget: (targetProps) => (props.renderTarget ? props.renderTarget(targetProps) : renderInput(targetProps)), renderBody: (bodyProps) => !props.isDisabled && !props.isReadonly && renderBody(bodyProps), onValueChange: !props.isDisabled && !props.isReadonly ? onToggle : null, value: state.isOpen, modifiers: [{ name: 'offset', options: { offset: [0, 6] } }], forwardedRef: props.forwardedRef }));
|
|
2007
1982
|
}
|
|
2008
1983
|
|
|
2009
|
-
var css$
|
|
1984
|
+
var css$W = {"root":"IK0QEr"};
|
|
2010
1985
|
|
|
2011
1986
|
function applyInputAddonMods() {
|
|
2012
1987
|
return [
|
|
2013
|
-
css$
|
|
1988
|
+
css$W.root,
|
|
2014
1989
|
];
|
|
2015
1990
|
}
|
|
2016
1991
|
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
2017
1992
|
|
|
2018
|
-
var css$
|
|
1993
|
+
var css$V = {"root":"_1NTnl9"};
|
|
2019
1994
|
|
|
2020
1995
|
function applySliderMods() {
|
|
2021
|
-
return [css$
|
|
1996
|
+
return [css$V.root, 'uui-color-neutral'];
|
|
2022
1997
|
}
|
|
2023
1998
|
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
2024
1999
|
|
|
@@ -2150,7 +2125,7 @@ const getNextYearsList = (currentDate) => {
|
|
|
2150
2125
|
return currentDate.add(16, 'year');
|
|
2151
2126
|
};
|
|
2152
2127
|
|
|
2153
|
-
var css$
|
|
2128
|
+
var css$U = {"root":"NVRhAm","container":"YWkF3-"};
|
|
2154
2129
|
|
|
2155
2130
|
const uuiHeader = {
|
|
2156
2131
|
container: 'uui-datepicker-header-container',
|
|
@@ -2227,21 +2202,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2227
2202
|
}, [view, month]);
|
|
2228
2203
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2229
2204
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2230
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
2205
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$U.root, uuiHeader.container, cx__default.default) },
|
|
2231
2206
|
React__namespace.createElement("header", { className: uuiHeader.headerNav },
|
|
2232
2207
|
React__namespace.createElement(Button, { icon: navIconLeft || ForwardRef$v, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2233
2208
|
React__namespace.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2234
2209
|
React__namespace.createElement(Button, { icon: navIconRight || ForwardRef$u, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2235
2210
|
}
|
|
2236
2211
|
|
|
2237
|
-
var css$
|
|
2212
|
+
var css$T = {"uui-typography":"_17YkNZ","hero-header":"RrvQi8","promo-header":"fXtYbp","uui-critical":"_-9K8dR","uui-info":"mktvjR","uui-success":"uURM5u","uui-warning":"YWe1TX","uui-highlight":"yH-OXj","uui-typography-size-12":"o8HU0p","uui-typography-size-14":"cBMSJR","uui-typography-size-16":"_7DVLPK","root":"_8Olg76","uuiTypography":"_17YkNZ","heroHeader":"RrvQi8","promoHeader":"fXtYbp","uuiCritical":"_-9K8dR","uuiInfo":"mktvjR","uuiSuccess":"uURM5u","uuiWarning":"YWe1TX","uuiHighlight":"yH-OXj","uuiTypographySize12":"o8HU0p","uuiTypographySize14":"cBMSJR","uuiTypographySize16":"_7DVLPK"};
|
|
2238
2213
|
|
|
2239
2214
|
function applyDateSelectionMods() {
|
|
2240
|
-
return [css$
|
|
2215
|
+
return [css$T.root, `uui-size-${settings.sizes.defaults.datePicker}`];
|
|
2241
2216
|
}
|
|
2242
2217
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
2243
2218
|
|
|
2244
|
-
var css$
|
|
2219
|
+
var css$S = {"uui-typography":"VJYK3S","hero-header":"zNZnuz","promo-header":"V4XuTH","uui-critical":"V-QZ-g","uui-info":"x9dFux","uui-success":"GTDVTW","uui-warning":"QaH3xe","uui-highlight":"-UVZJ0","uui-typography-size-12":"NHZKlX","uui-typography-size-14":"fLyMVh","uui-typography-size-16":"Zqgwsn","root":"_3-smSV","uuiTypography":"VJYK3S","heroHeader":"zNZnuz","promoHeader":"V4XuTH","uuiCritical":"V-QZ-g","uuiInfo":"x9dFux","uuiSuccess":"GTDVTW","uuiWarning":"QaH3xe","uuiHighlight":"-UVZJ0","uuiTypographySize12":"NHZKlX","uuiTypographySize14":"fLyMVh","uuiTypographySize16":"Zqgwsn"};
|
|
2245
2220
|
|
|
2246
2221
|
const uuiDatePickerBody = {
|
|
2247
2222
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2285,7 +2260,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2285
2260
|
}
|
|
2286
2261
|
};
|
|
2287
2262
|
return (React__namespace.default.createElement("div", Object.assign({ ref: ref, className: uuiCore.cx(uuiDatePickerBodyBase.container, `uui-size-${settings.sizes.defaults.datePicker}`, classes) }, rawProps),
|
|
2288
|
-
React__namespace.default.createElement("div", { className: uuiCore.cx(css$
|
|
2263
|
+
React__namespace.default.createElement("div", { className: uuiCore.cx(css$S.root, uuiDatePickerBody.wrapper) },
|
|
2289
2264
|
React__namespace.default.createElement(DatePickerHeader, { value: {
|
|
2290
2265
|
view,
|
|
2291
2266
|
month,
|
|
@@ -2372,7 +2347,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2372
2347
|
}
|
|
2373
2348
|
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
2374
2349
|
|
|
2375
|
-
var css$
|
|
2350
|
+
var css$R = {"uui-typography":"_73fg3W","hero-header":"E7PtUI","promo-header":"L50s-4","uui-critical":"rqc3xV","uui-info":"iRkhi3","uui-success":"q6BNHM","uui-warning":"mapJb8","uui-highlight":"_8i73ni","uui-typography-size-12":"C1Z7z4","uui-typography-size-14":"dvbvfo","uui-typography-size-16":"kzL-Lz","date-input":"ye7gXX","root":"wMaT1A","separator":"BEqGu2","mode-form":"EBRSDj","mode-cell":"gZLOUA","uuiTypography":"_73fg3W","heroHeader":"E7PtUI","promoHeader":"L50s-4","uuiCritical":"rqc3xV","uuiInfo":"iRkhi3","uuiSuccess":"q6BNHM","uuiWarning":"mapJb8","uuiHighlight":"_8i73ni","uuiTypographySize12":"C1Z7z4","uuiTypographySize14":"dvbvfo","uuiTypographySize16":"kzL-Lz","dateInput":"ye7gXX","modeForm":"EBRSDj","modeCell":"gZLOUA"};
|
|
2376
2351
|
|
|
2377
2352
|
const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, id, cx: classes, }, ref) => {
|
|
2378
2353
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2406,15 +2381,15 @@ const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isIn
|
|
|
2406
2381
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2407
2382
|
return (
|
|
2408
2383
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
2409
|
-
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.sizes.defaults.rangeDatePicker}`, 'uui-range-date-picker', classes, css$
|
|
2410
|
-
React__namespace.default.createElement(TextInput, { icon: systemIcons.calendar, cx: uuiCore.cx(css$
|
|
2411
|
-
React__namespace.default.createElement("div", { className: css$
|
|
2412
|
-
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$
|
|
2384
|
+
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.sizes.defaults.rangeDatePicker}`, 'uui-range-date-picker', classes, css$R.root, isDisabled && uuiCore.uuiMod.disabled, isReadonly && uuiCore.uuiMod.readonly, isInvalid && uuiCore.uuiMod.invalid, inFocus && uuiCore.uuiMod.focus), onKeyDown: onKeyDown },
|
|
2385
|
+
React__namespace.default.createElement(TextInput, { icon: systemIcons.calendar, cx: uuiCore.cx(css$R.dateInput, inFocus === 'from' && uuiCore.uuiMod.focus), size: size || settings.sizes.defaults.rangeDatePicker, placeholder: getPlaceholder ? getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: inputValue.from || undefined, onValueChange: (v) => onInputChange(v || '', 'from'), onFocus: (event) => handleFocus(event, 'from'), onBlur: (event) => handleBlur(event, 'from'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps === null || rawProps === void 0 ? void 0 : rawProps.from, onClick: onClick, onKeyDown: onInputKeyDown, id: id }),
|
|
2386
|
+
React__namespace.default.createElement("div", { className: css$R.separator }),
|
|
2387
|
+
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$R.dateInput, inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.sizes.defaults.rangeDatePicker, value: inputValue.to || undefined, onCancel: clearAllowed ? () => {
|
|
2413
2388
|
onValueChange(defaultRangeValue);
|
|
2414
2389
|
} : undefined, onValueChange: (v) => onInputChange(v || '', 'to'), onFocus: (e) => handleFocus(e, 'to'), onBlur: (e) => handleBlur(e, 'to'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps === null || rawProps === void 0 ? void 0 : rawProps.to, onClick: onClick, onKeyDown: onInputKeyDown })));
|
|
2415
2390
|
});
|
|
2416
2391
|
|
|
2417
|
-
var css$
|
|
2392
|
+
var css$Q = {"uui-typography":"EE6aDq","hero-header":"Usmm36","promo-header":"uH7JTh","uui-critical":"qcDSxU","uui-info":"_5fwk4J","uui-success":"lHEmPD","uui-warning":"YEjJkt","uui-highlight":"AWPnoE","uui-typography-size-12":"QsLHTY","uui-typography-size-14":"ohC2Yd","uui-typography-size-16":"_1QiDrv","root":"wMrRC-","uuiTypography":"EE6aDq","heroHeader":"Usmm36","promoHeader":"uH7JTh","uuiCritical":"qcDSxU","uuiInfo":"_5fwk4J","uuiSuccess":"lHEmPD","uuiWarning":"YEjJkt","uuiHighlight":"AWPnoE","uuiTypographySize12":"QsLHTY","uuiTypographySize14":"ohC2Yd","uuiTypographySize16":"_1QiDrv"};
|
|
2418
2393
|
|
|
2419
2394
|
const uuiPresets = {
|
|
2420
2395
|
container: 'uui-presets-container',
|
|
@@ -2425,12 +2400,12 @@ const getPresets = (presets) => {
|
|
|
2425
2400
|
return Object.keys(presets).map((key) => (Object.assign(Object.assign({}, presets[key].getRange()), { name: presets[key].name, key }))).sort((a, b) => a.order - b.order);
|
|
2426
2401
|
};
|
|
2427
2402
|
function CalendarPresets(props) {
|
|
2428
|
-
return (React__namespace.createElement("div", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$
|
|
2403
|
+
return (React__namespace.createElement("div", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$Q.root, props.cx) }, props.rawProps),
|
|
2429
2404
|
React__namespace.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2430
2405
|
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: "24" })))));
|
|
2431
2406
|
}
|
|
2432
2407
|
|
|
2433
|
-
var css$
|
|
2408
|
+
var css$P = {"uui-typography":"Vt-28n","hero-header":"hhS1ev","promo-header":"dZpqSU","uui-critical":"_38mE3G","uui-info":"tSq4BL","uui-success":"UifY4-","uui-warning":"_6FMlrj","uui-highlight":"gvJ31B","uui-typography-size-12":"BlLZBx","uui-typography-size-14":"-MQXXC","uui-typography-size-16":"rYtjMq","root":"QYuQLt","container":"wL0QAe","day-selection":"eSXbvK","from-picker":"_9nQkFP","to-picker":"QyC1vS","bodes-wrapper":"_9ArxdU","blocker":"bq1BpG","uuiTypography":"Vt-28n","heroHeader":"hhS1ev","promoHeader":"dZpqSU","uuiCritical":"_38mE3G","uuiInfo":"tSq4BL","uuiSuccess":"UifY4-","uuiWarning":"_6FMlrj","uuiHighlight":"gvJ31B","uuiTypographySize12":"BlLZBx","uuiTypographySize14":"-MQXXC","uuiTypographySize16":"rYtjMq","daySelection":"eSXbvK","fromPicker":"_9nQkFP","toPicker":"QyC1vS","bodesWrapper":"_9ArxdU"};
|
|
2434
2409
|
|
|
2435
2410
|
const uuiRangeDatePickerBody = {
|
|
2436
2411
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -2571,21 +2546,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
2571
2546
|
});
|
|
2572
2547
|
}, presets: presets })));
|
|
2573
2548
|
};
|
|
2574
|
-
return (React__namespace.default.createElement("div", Object.assign({ ref: ref, className: uuiCore.cx(css$
|
|
2575
|
-
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
2549
|
+
return (React__namespace.default.createElement("div", Object.assign({ ref: ref, className: uuiCore.cx(css$P.root, uuiDatePickerBodyBase.container, props.cx) }, props.rawProps),
|
|
2550
|
+
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$P.daySelection, css$P.container], alignItems: "top" },
|
|
2576
2551
|
React__namespace.default.createElement(FlexCell, { width: "auto" },
|
|
2577
2552
|
React__namespace.default.createElement(FlexRow, null,
|
|
2578
|
-
React__namespace.default.createElement(FlexRow, { cx: css$
|
|
2579
|
-
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: uuiCore.cx(css$
|
|
2553
|
+
React__namespace.default.createElement(FlexRow, { cx: css$P.bodesWrapper, alignItems: "top" },
|
|
2554
|
+
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: uuiCore.cx(css$P.fromPicker) }, from, { onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
|
|
2580
2555
|
setMonth(m);
|
|
2581
2556
|
}, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' })),
|
|
2582
|
-
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: uuiCore.cx(css$
|
|
2557
|
+
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: uuiCore.cx(css$P.toPicker) }, to, { onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
|
|
2583
2558
|
setMonth(m.subtract(1, 'month'));
|
|
2584
2559
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' })),
|
|
2585
2560
|
view !== 'DAY_SELECTION' && (React__namespace.default.createElement("div", { style: {
|
|
2586
2561
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
2587
2562
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
2588
|
-
}, className: css$
|
|
2563
|
+
}, className: css$P.blocker }))),
|
|
2589
2564
|
props.presets && renderPresets(props.presets)),
|
|
2590
2565
|
props.renderFooter && props.renderFooter()))));
|
|
2591
2566
|
}
|
|
@@ -2605,7 +2580,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
2605
2580
|
return [uuiCore.cx(inRange && uuiRangeDatePickerBody.inRange, isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper, !inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper, isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper, !inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper, (dayValue === fromValue || dayValue === toValue) && uuiComponents.uuiDaySelection.selectedDay)];
|
|
2606
2581
|
};
|
|
2607
2582
|
|
|
2608
|
-
var css$
|
|
2583
|
+
var css$O = {"dropdown-container":"_4jsRhC","dropdownContainer":"_4jsRhC"};
|
|
2609
2584
|
|
|
2610
2585
|
const modifiers = [{
|
|
2611
2586
|
name: 'offset',
|
|
@@ -2652,7 +2627,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2652
2627
|
};
|
|
2653
2628
|
const renderBody = (renderProps) => {
|
|
2654
2629
|
var _a;
|
|
2655
|
-
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx__default.default(css$
|
|
2630
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx__default.default(css$O.dropdownContainer), shards: [targetRef], returnFocus: (node) => {
|
|
2656
2631
|
console.log('lock', node);
|
|
2657
2632
|
return true;
|
|
2658
2633
|
} }),
|
|
@@ -2682,22 +2657,66 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2682
2657
|
}
|
|
2683
2658
|
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
2684
2659
|
|
|
2685
|
-
var css$
|
|
2660
|
+
var css$N = {"root":"bTqEXA","blocker":"HxKkE2","marker":"XWOlrj","top":"GGD-6Q","bottom":"-h4L5w","left":"KaNK5M","right":"_2omn2b","inside":"-HykNi"};
|
|
2686
2661
|
|
|
2687
2662
|
function DropMarker(props) {
|
|
2688
2663
|
return props.isDndInProgress
|
|
2689
2664
|
? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2690
|
-
props.enableBlocker && React__namespace.createElement("div", { className: css$
|
|
2665
|
+
props.enableBlocker && React__namespace.createElement("div", { className: css$N.blocker }),
|
|
2691
2666
|
React__namespace.createElement("div", { className: cx__default.default([
|
|
2692
|
-
css$
|
|
2693
|
-
css$
|
|
2694
|
-
css$
|
|
2667
|
+
css$N.root,
|
|
2668
|
+
css$N.marker,
|
|
2669
|
+
css$N[props.position],
|
|
2695
2670
|
props === null || props === void 0 ? void 0 : props.cx,
|
|
2696
2671
|
]) })))
|
|
2697
2672
|
: null;
|
|
2698
2673
|
}
|
|
2699
2674
|
|
|
2700
|
-
var css$
|
|
2675
|
+
var css$M = {"root":"GytkVA","line-height":"pabEvp","font-size":"XEnKBI","lineHeight":"pabEvp","fontSize":"XEnKBI"};
|
|
2676
|
+
|
|
2677
|
+
function applyTextMods(mods) {
|
|
2678
|
+
return [
|
|
2679
|
+
css$M.root,
|
|
2680
|
+
'uui-text',
|
|
2681
|
+
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
2682
|
+
(mods.size !== 'none' || mods.lineHeight) && css$M.lineHeight,
|
|
2683
|
+
(mods.size !== 'none' || mods.fontSize) && css$M.fontSize,
|
|
2684
|
+
`uui-color-${mods.color || 'primary'}`,
|
|
2685
|
+
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
2686
|
+
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
2687
|
+
'uui-typography',
|
|
2688
|
+
];
|
|
2689
|
+
}
|
|
2690
|
+
const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, applyTextMods, (props) => {
|
|
2691
|
+
var _a;
|
|
2692
|
+
const style = ((_a = props === null || props === void 0 ? void 0 : props.rawProps) === null || _a === void 0 ? void 0 : _a.style) || {};
|
|
2693
|
+
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
2694
|
+
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
2695
|
+
return {
|
|
2696
|
+
rawProps: Object.assign(Object.assign({}, props === null || props === void 0 ? void 0 : props.rawProps), { style: style }),
|
|
2697
|
+
};
|
|
2698
|
+
});
|
|
2699
|
+
|
|
2700
|
+
var css$L = {"root":"Fsv-3l","loading-word":"uPatnh","animated-loading":"kVbEiu","skeleton_loading":"xAFSrB","loadingWord":"uPatnh","animatedLoading":"kVbEiu","skeletonLoading":"xAFSrB"};
|
|
2701
|
+
|
|
2702
|
+
const TextPlaceholder = (props) => {
|
|
2703
|
+
const pattern = ' ';
|
|
2704
|
+
const text = React__namespace.useMemo(() => {
|
|
2705
|
+
const words = [];
|
|
2706
|
+
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
2707
|
+
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
2708
|
+
words.push(pattern.repeat(lengthWord));
|
|
2709
|
+
}
|
|
2710
|
+
return words;
|
|
2711
|
+
}, [props.wordsCount]);
|
|
2712
|
+
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: cx__default.default(css$L.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
2713
|
+
props.cx, css$L.loadingWord, !props.isNotAnimated && css$L.animatedLoading,
|
|
2714
|
+
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
2715
|
+
};
|
|
2716
|
+
|
|
2717
|
+
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
2718
|
+
|
|
2719
|
+
var css$K = {"uui-typography":"_5Y8B8j","hero-header":"mv9MFw","promo-header":"lPHOEN","uui-critical":"_5OxurB","uui-info":"_3BzVl5","uui-success":"qkPVpl","uui-warning":"HkPrpX","uui-highlight":"GbmkJX","uui-typography-size-12":"cz6Il9","uui-typography-size-14":"qMC3yr","uui-typography-size-16":"SVyb7P","modal":"-AO8-v","search-wrapper":"VqAfuD","no-data":"_6LRZKr","type-search-to-load-size-24":"d4FDr4","uuiTypography":"_5Y8B8j","heroHeader":"mv9MFw","promoHeader":"lPHOEN","uuiCritical":"_5OxurB","uuiInfo":"_3BzVl5","uuiSuccess":"qkPVpl","uuiWarning":"HkPrpX","uuiHighlight":"GbmkJX","uuiTypographySize12":"cz6Il9","uuiTypographySize14":"qMC3yr","uuiTypographySize16":"SVyb7P","searchWrapper":"VqAfuD","noData":"_6LRZKr","typeSearchToLoadSize24":"d4FDr4"};
|
|
2701
2720
|
|
|
2702
2721
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
2703
2722
|
constructor() {
|
|
@@ -2716,7 +2735,7 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
2716
2735
|
});
|
|
2717
2736
|
}
|
|
2718
2737
|
if (this.props.minCharsToSearch && search.length < this.props.minCharsToSearch) {
|
|
2719
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
2738
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$K.noData, grow: 1, textAlign: "center" },
|
|
2720
2739
|
React__namespace.default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
2721
2740
|
}
|
|
2722
2741
|
if (this.props.rows.length === 0) {
|
|
@@ -2731,21 +2750,21 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
2731
2750
|
}
|
|
2732
2751
|
// Default no record found message for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
2733
2752
|
// TODO: make separate messages for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
2734
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
2753
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$K.noData, grow: 1, textAlign: "center" },
|
|
2735
2754
|
React__namespace.default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
2736
2755
|
}
|
|
2737
2756
|
}
|
|
2738
2757
|
render() {
|
|
2739
2758
|
const searchSize = this.getSearchSize();
|
|
2740
2759
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2741
|
-
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$
|
|
2760
|
+
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$K.searchWrapper },
|
|
2742
2761
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
2743
2762
|
React__namespace.default.createElement(SearchInput, Object.assign({ ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize, debounceDelay: this.props.searchDebounceDelay, rawProps: { dir: 'auto' } }))))),
|
|
2744
|
-
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('uui-picker_input-body', css$
|
|
2763
|
+
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('uui-picker_input-body', css$K[this.props.editMode], css$K[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight, maxWidth: this.props.maxWidth } } }, this.props.rows.length > 0 ? (React__namespace.default.createElement(VirtualList, Object.assign({}, this.lens.toProps(), { rows: this.props.rows, rawProps: this.props.rawProps, rowsCount: this.props.rowsCount, isLoading: this.props.isReloading }))) : this.renderEmpty())));
|
|
2745
2764
|
}
|
|
2746
2765
|
}
|
|
2747
2766
|
|
|
2748
|
-
var css$
|
|
2767
|
+
var css$J = {"footer":"jsQqzN"};
|
|
2749
2768
|
|
|
2750
2769
|
function DataPickerFooterImpl(props) {
|
|
2751
2770
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
@@ -2759,7 +2778,7 @@ function DataPickerFooterImpl(props) {
|
|
|
2759
2778
|
const isSearching = search === null || search === void 0 ? void 0 : search.length;
|
|
2760
2779
|
const hideFooter = isSearchTooShort || rowsCount === 0 || isSearching || (isSinglePicker && props.disableClear);
|
|
2761
2780
|
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
2762
|
-
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx: css$
|
|
2781
|
+
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx: css$J.footer },
|
|
2763
2782
|
!isSinglePicker && (React__namespace.default.createElement(Switch, { size: settings.sizes.pickerInput.body.dropdown.footer.switch[props.size], value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
2764
2783
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2765
2784
|
React__namespace.default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
@@ -2770,13 +2789,13 @@ function DataPickerFooterImpl(props) {
|
|
|
2770
2789
|
}
|
|
2771
2790
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
2772
2791
|
|
|
2773
|
-
var css$
|
|
2792
|
+
var css$I = {"header":"nYao4y","title":"MeKxDC","close":"_4WikpY"};
|
|
2774
2793
|
|
|
2775
2794
|
const DataPickerHeaderImpl = (props) => {
|
|
2776
2795
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
2777
|
-
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$
|
|
2778
|
-
React__namespace.default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$
|
|
2779
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$Q, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$
|
|
2796
|
+
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$I.header },
|
|
2797
|
+
React__namespace.default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$I.title }, title),
|
|
2798
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$Q, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$I.close })));
|
|
2780
2799
|
};
|
|
2781
2800
|
const DataPickerHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerHeaderImpl);
|
|
2782
2801
|
|
|
@@ -2795,7 +2814,7 @@ var SvgNotificationDoneFill = function SvgNotificationDoneFill(props, ref) {
|
|
|
2795
2814
|
};
|
|
2796
2815
|
var ForwardRef$s = /*#__PURE__*/React.forwardRef(SvgNotificationDoneFill);
|
|
2797
2816
|
|
|
2798
|
-
var css$
|
|
2817
|
+
var css$H = {"uui-typography":"xx-jlV","hero-header":"BTlxVG","promo-header":"cXQwpu","uui-critical":"_8DZOmq","uui-info":"zDuHeh","uui-success":"rvevAN","uui-warning":"X1b-zS","uui-highlight":"_37-wQ-","uui-typography-size-12":"-QYWUy","uui-typography-size-14":"i2z3PN","uui-typography-size-16":"OZdb9O","root":"TbRP12","align-widgets-top":"rL-sLY","align-widgets-center":"p68bL4","icon-container":"OZ2MDh","loading-cell":"nQN0r2","content-wrapper":"_9IbziX","render-item":"cCIbRN","icon-wrapper":"RvKVdQ","icon-default":"_8NxYVg","selected-mark":"fZxhOL","uuiTypography":"xx-jlV","heroHeader":"BTlxVG","promoHeader":"cXQwpu","uuiCritical":"_8DZOmq","uuiInfo":"zDuHeh","uuiSuccess":"rvevAN","uuiWarning":"X1b-zS","uuiHighlight":"_37-wQ-","uuiTypographySize12":"-QYWUy","uuiTypographySize14":"i2z3PN","uuiTypographySize16":"OZdb9O","alignWidgetsTop":"rL-sLY","alignWidgetsCenter":"p68bL4","iconContainer":"OZ2MDh","loadingCell":"nQN0r2","contentWrapper":"_9IbziX","renderItem":"cCIbRN","iconWrapper":"RvKVdQ","iconDefault":"_8NxYVg","selectedMark":"fZxhOL"};
|
|
2799
2818
|
|
|
2800
2819
|
function DataPickerCell(props) {
|
|
2801
2820
|
const ref = React__namespace.useRef();
|
|
@@ -2803,28 +2822,28 @@ function DataPickerCell(props) {
|
|
|
2803
2822
|
if (props.rowProps.isLoading) {
|
|
2804
2823
|
content = (
|
|
2805
2824
|
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
2806
|
-
React__namespace.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size], cx: css$
|
|
2825
|
+
React__namespace.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size], cx: css$H.loadingCell },
|
|
2807
2826
|
React__namespace.createElement(TextPlaceholder, null)));
|
|
2808
2827
|
}
|
|
2809
2828
|
else if (props.rowProps.isUnknown) {
|
|
2810
2829
|
content = (React__namespace.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size] }, "Unknown"));
|
|
2811
2830
|
}
|
|
2812
2831
|
else {
|
|
2813
|
-
content = (React__namespace.createElement("div", { key: `${props.rowProps.id}`, className: css$
|
|
2832
|
+
content = (React__namespace.createElement("div", { key: `${props.rowProps.id}`, className: css$H.renderItem },
|
|
2814
2833
|
props.renderItem(props.rowProps.value, props.rowProps),
|
|
2815
2834
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2816
|
-
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
2817
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: settings.sizes.pickerInput.body.dropdown.row.cell.icon[props.size], icon: settings.sizes.pickerInput.body.dropdown.row.cell.isBoldSelectionIcon[props.size] ? ForwardRef$s : ForwardRef$O, cx: props.rowProps.isChildrenSelected ? css$
|
|
2835
|
+
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React__namespace.createElement("div", { className: uuiCore.cx(css$H.iconWrapper, uuiCore.uuiMod.selected) },
|
|
2836
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: settings.sizes.pickerInput.body.dropdown.row.cell.icon[props.size], icon: settings.sizes.pickerInput.body.dropdown.row.cell.isBoldSelectionIcon[props.size] ? ForwardRef$s : ForwardRef$O, cx: props.rowProps.isChildrenSelected ? css$H.iconDefault : css$H.selectedMark, rawProps: { 'aria-label': props.rowProps.isChildrenSelected
|
|
2818
2837
|
? 'Child is selected'
|
|
2819
2838
|
: 'Selected' } })))));
|
|
2820
2839
|
}
|
|
2821
|
-
const getWrappedContent = () => (React__namespace.createElement("div", { className: css$
|
|
2840
|
+
const getWrappedContent = () => (React__namespace.createElement("div", { className: css$H.contentWrapper }, content));
|
|
2822
2841
|
return (React__namespace.createElement(FlexCell, { ref: ref, grow: 1, width: 0, minWidth: 0, rawProps: { role: 'cell' }, cx: [
|
|
2823
|
-
css$
|
|
2842
|
+
css$H.root,
|
|
2824
2843
|
props.cx,
|
|
2825
2844
|
'data-picker-cell',
|
|
2826
2845
|
props.size && `uui-size-${props.size}`,
|
|
2827
|
-
css$
|
|
2846
|
+
css$H[`align-widgets-${props.alignActions || 'top'}`],
|
|
2828
2847
|
], style: props.padding && {
|
|
2829
2848
|
'--uui-data_picker_cell-horizontal-padding': `${props.padding}px`,
|
|
2830
2849
|
} },
|
|
@@ -2832,7 +2851,7 @@ function DataPickerCell(props) {
|
|
|
2832
2851
|
getWrappedContent()));
|
|
2833
2852
|
}
|
|
2834
2853
|
|
|
2835
|
-
var css$
|
|
2854
|
+
var css$G = {"uui-typography":"U0xo3k","hero-header":"_6TrVg4","promo-header":"_0Gnest","uui-critical":"-NoykT","uui-info":"_7mSuGK","uui-success":"Z-XVFV","uui-warning":"xJOJKI","uui-highlight":"dsCE4s","uui-typography-size-12":"t6SwUc","uui-typography-size-14":"jhv03Y","uui-typography-size-16":"BLyzuL","picker-row":"_15lY0e","uuiTypography":"U0xo3k","heroHeader":"_6TrVg4","promoHeader":"_0Gnest","uuiCritical":"-NoykT","uuiInfo":"_7mSuGK","uuiSuccess":"Z-XVFV","uuiWarning":"xJOJKI","uuiHighlight":"dsCE4s","uuiTypographySize12":"t6SwUc","uuiTypographySize14":"jhv03Y","uuiTypographySize16":"BLyzuL","pickerRow":"_15lY0e"};
|
|
2836
2855
|
|
|
2837
2856
|
class DataPickerRow extends React__namespace.Component {
|
|
2838
2857
|
constructor() {
|
|
@@ -2842,20 +2861,20 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
2842
2861
|
};
|
|
2843
2862
|
}
|
|
2844
2863
|
render() {
|
|
2845
|
-
return (React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$
|
|
2864
|
+
return (React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$G.pickerRow, this.props.cx], renderContent: this.renderContent })));
|
|
2846
2865
|
}
|
|
2847
2866
|
}
|
|
2848
2867
|
|
|
2849
|
-
var css$
|
|
2868
|
+
var css$F = {"uui-typography":"JC7WWC","hero-header":"zXUX4Y","promo-header":"fAMyO-","uui-critical":"BkmRfp","uui-info":"r5jh-c","uui-success":"_9bHdsz","uui-warning":"_3iwCEJ","uui-highlight":"RnsW-b","uui-typography-size-12":"XVp1E3","uui-typography-size-14":"Zvhemp","uui-typography-size-16":"_0k3weW","done":"qinpJE","container":"EaVHU1","uuiTypography":"JC7WWC","heroHeader":"zXUX4Y","promoHeader":"fAMyO-","uuiCritical":"BkmRfp","uuiInfo":"r5jh-c","uuiSuccess":"_9bHdsz","uuiWarning":"_3iwCEJ","uuiHighlight":"RnsW-b","uuiTypographySize12":"XVp1E3","uuiTypographySize14":"Zvhemp","uuiTypographySize16":"_0k3weW"};
|
|
2850
2869
|
|
|
2851
2870
|
const PickerBodyMobileView = (props) => {
|
|
2852
2871
|
const isMobileView = uuiCore.isMobile();
|
|
2853
2872
|
const maxWidth = isMobileView ? 'auto' : props.maxWidth;
|
|
2854
2873
|
const maxHeight = isMobileView ? 'auto' : props.maxHeight;
|
|
2855
|
-
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$
|
|
2874
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$F.container, props.cx], autoFocus: true }),
|
|
2856
2875
|
isMobileView && React__namespace.default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
|
|
2857
2876
|
props.children,
|
|
2858
|
-
isMobileView && React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => { var _a; return (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$
|
|
2877
|
+
isMobileView && React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => { var _a; return (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$F.done, size: settings.sizes.pickerInput.body.mobile.footer.linkButton })));
|
|
2859
2878
|
};
|
|
2860
2879
|
|
|
2861
2880
|
var _path$r, _path2$4;
|
|
@@ -2880,7 +2899,7 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2880
2899
|
};
|
|
2881
2900
|
var ForwardRef$r = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
2882
2901
|
|
|
2883
|
-
var css$
|
|
2902
|
+
var css$E = {"uui-typography":"X-MBFW","hero-header":"PbPiOW","promo-header":"OwYPzy","uui-critical":"XPr6my","uui-info":"Si2SzE","uui-success":"ZvTh1y","uui-warning":"SVbJmQ","uui-highlight":"_2c0-aR","uui-typography-size-12":"l-LgY1","uui-typography-size-14":"_7s9j6o","uui-typography-size-16":"BXBabF","sub-header-wrapper":"_5QpI-i","switch":"oA1NHX","no-found-modal-container":"_6xslOE","no-found-modal-container-icon":"umg2iz","no-found-modal-container-text":"NxhMwx","uuiTypography":"X-MBFW","heroHeader":"PbPiOW","promoHeader":"OwYPzy","uuiCritical":"XPr6my","uuiInfo":"Si2SzE","uuiSuccess":"ZvTh1y","uuiWarning":"SVbJmQ","uuiHighlight":"_2c0-aR","uuiTypographySize12":"l-LgY1","uuiTypographySize14":"_7s9j6o","uuiTypographySize16":"BXBabF","subHeaderWrapper":"_5QpI-i","$switch$":"oA1NHX","noFoundModalContainer":"_6xslOE","noFoundModalContainerIcon":"umg2iz","noFoundModalContainerText":"NxhMwx"};
|
|
2884
2903
|
|
|
2885
2904
|
const mergeHighlightRanges = (ranges) => {
|
|
2886
2905
|
const mergedRanges = [];
|
|
@@ -2947,7 +2966,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
2947
2966
|
return getDecoratedText(str, ranges);
|
|
2948
2967
|
};
|
|
2949
2968
|
|
|
2950
|
-
var css$
|
|
2969
|
+
var css$D = {"root":"z9mQmV","column-gap":"TiGVOU","multiline":"_3YQOw3","text":"cRYKBZ","columnGap":"TiGVOU"};
|
|
2951
2970
|
|
|
2952
2971
|
function PickerItem(props) {
|
|
2953
2972
|
var _a;
|
|
@@ -2957,13 +2976,13 @@ function PickerItem(props) {
|
|
|
2957
2976
|
const { search } = (_a = props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2958
2977
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(props.title, search) : props.title;
|
|
2959
2978
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(props.subtitle, search) : props.subtitle;
|
|
2960
|
-
return (React__namespace.createElement(FlexCell, { width: "auto", cx: [css$
|
|
2961
|
-
React__namespace.createElement(FlexRow, { size: itemSize, cx: [isMultiline && css$
|
|
2979
|
+
return (React__namespace.createElement(FlexCell, { width: "auto", cx: [css$D.root, 'uui-typography', cx] },
|
|
2980
|
+
React__namespace.createElement(FlexRow, { size: itemSize, cx: [isMultiline && css$D.multiline, css$D.columnGap], rawProps: { style: { '--uui-picker_item-vertical-padding': `${settings.sizes.pickerInput.body.dropdown.row.cell.item.verticalPadding[itemSize]}px` } } },
|
|
2962
2981
|
avatarUrl && (React__namespace.createElement(uuiComponents.Avatar, { isLoading: isLoading, img: avatarUrl, size: getAvatarSize(itemSize, isMultiline).toString() })),
|
|
2963
2982
|
icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: icon }),
|
|
2964
2983
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
2965
|
-
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$
|
|
2966
|
-
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$
|
|
2984
|
+
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$D.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : title)),
|
|
2985
|
+
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$D.text }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
2967
2986
|
}
|
|
2968
2987
|
function getAvatarSize(size, isMultiline) {
|
|
2969
2988
|
return settings.sizes.pickerInput.body.dropdown.row.cell.item.avatar[isMultiline ? 'multiline' : 'rest'][size];
|
|
@@ -2997,17 +3016,17 @@ function PickerModal(props) {
|
|
|
2997
3016
|
React__namespace.default.createElement(Button, { color: "primary", caption: i18n.pickerModal.selectButton, onClick: () => props.success(selection) })));
|
|
2998
3017
|
};
|
|
2999
3018
|
const renderNotFound = () => {
|
|
3000
|
-
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__namespace.default.createElement("div", { className: css$
|
|
3001
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { cx: css$
|
|
3002
|
-
React__namespace.default.createElement(Text, { cx: css$
|
|
3003
|
-
React__namespace.default.createElement(Text, { cx: css$
|
|
3019
|
+
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__namespace.default.createElement("div", { className: css$E.noFoundModalContainer },
|
|
3020
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { cx: css$E.noFoundModalContainerIcon, icon: ForwardRef$r }),
|
|
3021
|
+
React__namespace.default.createElement(Text, { cx: css$E.noFoundModalContainerText, fontWeight: "600", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
3022
|
+
React__namespace.default.createElement(Text, { cx: css$E.noFoundModalContainerText, fontSize: "12", lineHeight: "18", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
3004
3023
|
};
|
|
3005
3024
|
const dataRows = getRows();
|
|
3006
3025
|
const rows = dataRows.map((row) => renderRow(row));
|
|
3007
3026
|
return (React__namespace.default.createElement(ModalBlocker, Object.assign({}, props),
|
|
3008
3027
|
React__namespace.default.createElement(ModalWindow, { width: 600, height: 700 },
|
|
3009
3028
|
React__namespace.default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
3010
|
-
React__namespace.default.createElement(FlexCell, { cx: css$
|
|
3029
|
+
React__namespace.default.createElement(FlexCell, { cx: css$E.subHeaderWrapper },
|
|
3011
3030
|
React__namespace.default.createElement(FlexRow, { vPadding: "24" },
|
|
3012
3031
|
React__namespace.default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => uuiComponents.handleDataSourceKeyboard({
|
|
3013
3032
|
value: getDataSourceState(),
|
|
@@ -3016,20 +3035,20 @@ function PickerModal(props) {
|
|
|
3016
3035
|
rows: dataRows,
|
|
3017
3036
|
searchPosition: 'body',
|
|
3018
3037
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: { dir: 'auto' } }))),
|
|
3019
|
-
!isSingleSelect() && (React__namespace.default.createElement(Switch, Object.assign({ cx: css$
|
|
3038
|
+
!isSingleSelect() && (React__namespace.default.createElement(Switch, Object.assign({ cx: css$E.switch, size: "18" }, getFooterProps().showSelected, { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
3020
3039
|
props.renderFilter && React__namespace.default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
3021
3040
|
React__namespace.default.createElement(DataPickerBody, Object.assign({}, getListProps(), { value: getDataSourceState(), onValueChange: handleDataSourceValueChange, search: dataSourceStateLens.prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: renderNotFound, editMode: "modal" })),
|
|
3022
3041
|
React__namespace.default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3023
3042
|
}
|
|
3024
3043
|
|
|
3025
|
-
var css$
|
|
3044
|
+
var css$C = {"tooltip":"kBSUAB"};
|
|
3026
3045
|
|
|
3027
3046
|
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3028
3047
|
var _a;
|
|
3029
3048
|
const tagProps = Object.assign(Object.assign({}, props), { tabIndex: -1, size: settings.sizes.pickerInput.toggler.tag[props.size], caption: ((_a = props.rowProps) === null || _a === void 0 ? void 0 : _a.isLoading) ? React__namespace.createElement(TextPlaceholder, null) : props.caption });
|
|
3030
3049
|
if (props.isCollapsed) {
|
|
3031
3050
|
const collapsedRows = props.collapsedRows.map((row) => props.getName(row.value)).join(', ');
|
|
3032
|
-
return (React__namespace.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$
|
|
3051
|
+
return (React__namespace.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$C.tooltip },
|
|
3033
3052
|
React__namespace.createElement(Tag, Object.assign({ ref: ref, rawProps: { role: 'option' } }, tagProps))));
|
|
3034
3053
|
}
|
|
3035
3054
|
else {
|
|
@@ -3037,15 +3056,15 @@ const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
3037
3056
|
}
|
|
3038
3057
|
});
|
|
3039
3058
|
|
|
3040
|
-
var css$
|
|
3059
|
+
var css$B = {"uui-typography":"WK8i0T","hero-header":"omic5y","promo-header":"_1wcSn9","uui-critical":"_8PcCSr","uui-info":"tNucC8","uui-success":"IInjej","uui-warning":"T4YgUY","uui-highlight":"wfEXR6","uui-typography-size-12":"l8bEAk","uui-typography-size-14":"RM8cqL","uui-typography-size-16":"ok-9qo","root":"jKV1Om","mode-form":"MqIasa","mode-cell":"HXvnnD","mode-inline":"INW-64","uuiTypography":"WK8i0T","heroHeader":"omic5y","promoHeader":"_1wcSn9","uuiCritical":"_8PcCSr","uuiInfo":"tNucC8","uuiSuccess":"IInjej","uuiWarning":"T4YgUY","uuiHighlight":"wfEXR6","uuiTypographySize12":"l8bEAk","uuiTypographySize14":"RM8cqL","uuiTypographySize16":"ok-9qo","modeForm":"MqIasa","modeCell":"HXvnnD","modeInline":"INW-64"};
|
|
3041
3060
|
|
|
3042
3061
|
const defaultMode = EditMode.FORM;
|
|
3043
3062
|
function applyPickerTogglerMods(mods) {
|
|
3044
3063
|
return [
|
|
3045
|
-
css$
|
|
3064
|
+
css$B.root,
|
|
3046
3065
|
'uui-picker_toggler',
|
|
3047
3066
|
`uui-size-${mods.size || settings.sizes.pickerInput.toggler.defaults.size}`,
|
|
3048
|
-
css$
|
|
3067
|
+
css$B['mode-' + (mods.mode || defaultMode)],
|
|
3049
3068
|
];
|
|
3050
3069
|
}
|
|
3051
3070
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -3134,7 +3153,7 @@ function PickerInputComponent(_a, ref) {
|
|
|
3134
3153
|
}
|
|
3135
3154
|
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
3136
3155
|
|
|
3137
|
-
var css$
|
|
3156
|
+
var css$A = {"row":"Ms7Lvl"};
|
|
3138
3157
|
|
|
3139
3158
|
function PickerListItem(props) {
|
|
3140
3159
|
var _a;
|
|
@@ -3152,10 +3171,10 @@ function PickerListItem(props) {
|
|
|
3152
3171
|
else {
|
|
3153
3172
|
component = (React__namespace.default.createElement(RadioInput, { label: label, value: props.isSelected, isDisabled: props.isLoading || !props.isSelectable || props.isDisabled, onValueChange: () => props.onSelect(props) }));
|
|
3154
3173
|
}
|
|
3155
|
-
return (React__namespace.default.createElement("div", Object.assign({ role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1 }, (((_a = props.checkbox) === null || _a === void 0 ? void 0 : _a.isVisible) && { 'aria-checked': props.isChecked }), { className: css$
|
|
3174
|
+
return (React__namespace.default.createElement("div", Object.assign({ role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1 }, (((_a = props.checkbox) === null || _a === void 0 ? void 0 : _a.isVisible) && { 'aria-checked': props.isChecked }), { className: css$A.row }), component));
|
|
3156
3175
|
}
|
|
3157
3176
|
|
|
3158
|
-
var css$
|
|
3177
|
+
var css$z = {"root":"TtBZVO"};
|
|
3159
3178
|
|
|
3160
3179
|
function PickerList(props) {
|
|
3161
3180
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -3178,7 +3197,7 @@ function PickerList(props) {
|
|
|
3178
3197
|
const showPicker = viewProps.totalCount == null || viewProps.totalCount > getMaxDefaultItems();
|
|
3179
3198
|
const renderToggler = props.renderModalToggler || defaultRenderToggler;
|
|
3180
3199
|
const renderRow = props.renderRow || defaultRenderRow;
|
|
3181
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default('uui-picker-list', css$
|
|
3200
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default('uui-picker-list', css$z.root) },
|
|
3182
3201
|
!rows.length
|
|
3183
3202
|
&& (props.noOptionsMessage || (React__namespace.default.createElement(Text, { color: "secondary", size: props.size }, "No options available"))),
|
|
3184
3203
|
rows.map((row) => renderRow(Object.assign(Object.assign({}, row), { isDisabled: props.isDisabled }), dataSourceState)),
|
|
@@ -3190,7 +3209,7 @@ function PickerList(props) {
|
|
|
3190
3209
|
}, selectedRows)));
|
|
3191
3210
|
}
|
|
3192
3211
|
|
|
3193
|
-
var css$
|
|
3212
|
+
var css$y = {"uui-typography":"_42I8Co","hero-header":"WjVtj6","promo-header":"Y4t7OA","uui-critical":"-qj1N4","uui-info":"Lu418q","uui-success":"Lto7V2","uui-warning":"TXumKx","uui-highlight":"lRo7n8","uui-typography-size-12":"xbSLRP","uui-typography-size-14":"gc5mmP","uui-typography-size-16":"CT-EDp","root":"yYxYWr","wrapper":"CJH3mK","align-widgets-top":"I8RDVK","align-widgets-center":"LWJLlQ","uuiTypography":"_42I8Co","heroHeader":"WjVtj6","promoHeader":"Y4t7OA","uuiCritical":"-qj1N4","uuiInfo":"Lu418q","uuiSuccess":"Lto7V2","uuiWarning":"TXumKx","uuiHighlight":"lRo7n8","uuiTypographySize12":"xbSLRP","uuiTypographySize14":"gc5mmP","uuiTypographySize16":"CT-EDp","alignWidgetsTop":"I8RDVK","alignWidgetsCenter":"LWJLlQ"};
|
|
3194
3213
|
|
|
3195
3214
|
function DataTableCell(initialProps) {
|
|
3196
3215
|
const props = Object.assign({}, initialProps);
|
|
@@ -3224,12 +3243,12 @@ function DataTableCell(initialProps) {
|
|
|
3224
3243
|
};
|
|
3225
3244
|
props.cx = [
|
|
3226
3245
|
'data-table-cell',
|
|
3227
|
-
css$
|
|
3246
|
+
css$y.root,
|
|
3228
3247
|
props.cx,
|
|
3229
3248
|
'uui-size-' + (props.size || settings.sizes.dataTable.body.row.cell.defaults.size),
|
|
3230
3249
|
props.isFirstColumn && 'uui-dt-first-column',
|
|
3231
3250
|
props.isLastColumn && 'uui-dt-last-column',
|
|
3232
|
-
css$
|
|
3251
|
+
css$y[`align-widgets-${props.alignActions || 'top'}`],
|
|
3233
3252
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
3234
3253
|
];
|
|
3235
3254
|
props.style = {
|
|
@@ -3239,7 +3258,7 @@ function DataTableCell(initialProps) {
|
|
|
3239
3258
|
return React__namespace.createElement(uuiComponents.DataTableCell, Object.assign({}, props));
|
|
3240
3259
|
}
|
|
3241
3260
|
|
|
3242
|
-
var css$
|
|
3261
|
+
var css$x = {"uui-typography":"KEIehc","hero-header":"PvFLEW","promo-header":"KZyqA8","uui-critical":"Fx-duq","uui-info":"_7sk9qA","uui-success":"hgXyeE","uui-warning":"pebTuX","uui-highlight":"CX76nq","uui-typography-size-12":"DGLaVK","uui-typography-size-14":"L-EP3-","uui-typography-size-16":"yXp-Tm","root":"SA10Mh","uuiTypography":"KEIehc","heroHeader":"PvFLEW","promoHeader":"KZyqA8","uuiCritical":"Fx-duq","uuiInfo":"_7sk9qA","uuiSuccess":"hgXyeE","uuiWarning":"pebTuX","uuiHighlight":"CX76nq","uuiTypographySize12":"DGLaVK","uuiTypographySize14":"L-EP3-","uuiTypographySize16":"yXp-Tm"};
|
|
3243
3262
|
|
|
3244
3263
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3245
3264
|
// As we need our mods to style the cell properly, we extract them from DataTableCellProps.rowProps, which is a hack, but it's reliable enough.
|
|
@@ -3251,11 +3270,11 @@ const renderDropMarkers = (props) => React__namespace.createElement(DropMarker,
|
|
|
3251
3270
|
const propsMods = { renderCell, renderDropMarkers };
|
|
3252
3271
|
const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow, ({ borderBottom = true, size }) => {
|
|
3253
3272
|
return [
|
|
3254
|
-
css$
|
|
3273
|
+
css$x.root, 'uui-dt-vars', borderBottom && 'uui-dt-row-border', `uui-size-${size || settings.sizes.dataTable.body.row.default}`,
|
|
3255
3274
|
];
|
|
3256
3275
|
}, () => propsMods);
|
|
3257
3276
|
|
|
3258
|
-
var css$
|
|
3277
|
+
var css$w = {"uui-typography":"_0jYUWq","hero-header":"J-gqR4","promo-header":"_4tPgOR","uui-critical":"_2EDc3C","uui-info":"T7OkrV","uui-success":"_4nIRdp","uui-warning":"-DE4LI","uui-highlight":"M3V1X2","uui-typography-size-12":"Sb4I7E","uui-typography-size-14":"vh78ip","uui-typography-size-16":"h-Js-y","sorting-panel-container":"wBxc2j","uuiTypography":"_0jYUWq","heroHeader":"J-gqR4","promoHeader":"_4tPgOR","uuiCritical":"_2EDc3C","uuiInfo":"T7OkrV","uuiSuccess":"_4nIRdp","uuiWarning":"-DE4LI","uuiHighlight":"M3V1X2","uuiTypographySize12":"Sb4I7E","uuiTypographySize14":"vh78ip","uuiTypographySize16":"h-Js-y","sortingPanelContainer":"wBxc2j"};
|
|
3259
3278
|
|
|
3260
3279
|
var _path$q;
|
|
3261
3280
|
function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
|
|
@@ -3290,7 +3309,7 @@ var ForwardRef$p = /*#__PURE__*/React.forwardRef(SvgTableSortDescOutline);
|
|
|
3290
3309
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3291
3310
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
3292
3311
|
const sortDesc = React.useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
3293
|
-
return (React__namespace.default.createElement(FlexCell, { cx: uuiCore.cx(css$
|
|
3312
|
+
return (React__namespace.default.createElement(FlexCell, { cx: uuiCore.cx(css$w.sortingPanelContainer, 'uui-dropdownMenu-body') },
|
|
3294
3313
|
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$q, onClick: sortAsc }),
|
|
3295
3314
|
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$p, onClick: sortDesc })));
|
|
3296
3315
|
};
|
|
@@ -3385,7 +3404,7 @@ var SvgNavigationExpandAllOutline = function SvgNavigationExpandAllOutline(props
|
|
|
3385
3404
|
};
|
|
3386
3405
|
var ForwardRef$k = /*#__PURE__*/React.forwardRef(SvgNavigationExpandAllOutline);
|
|
3387
3406
|
|
|
3388
|
-
var css$
|
|
3407
|
+
var css$v = {"uui-typography":"AauVwd","hero-header":"ateK4B","promo-header":"xqCDbe","uui-critical":"nXNPZM","uui-info":"ZKQVEo","uui-success":"oFBYzW","uui-warning":"vxc7o4","uui-highlight":"-tZ1AB","uui-typography-size-12":"-KshVb","uui-typography-size-14":"m-KS09","uui-typography-size-16":"_8tb1Nx","root":"DN8zY8","caption-wrapper":"WKJ4-r","sort-icon":"mPG5Tk","dropdown-icon":"_8QVQgn","infoIcon":"ib9kqN","resizable":"_0a9-aw","align-right":"fa3L4Y","align-center":"xyEdNu","caption":"V9mqid","truncate":"c-a65-","checkbox":"_1bDh3n","icon":"oWhGBK","fold-all-icon":"_5R7gLs","cell-tooltip":"_2KXhhC","upper-case":"C7VJG7","resizing-marker":"_0amGVS","pinned-right":"JH62Hd","draggable":"VbTzLm","ghost":"doetzG","is-dragged-out":"-hX98i","dnd-marker-left":"Dj1AfS","dnd-marker-right":"mANLSt","cell-tooltip-wrapper":"nYumwR","cell-tooltip-text":"JOztg0","tooltip-caption":"zocSlT","tooltip-info":"_90SIo8","uuiTypography":"AauVwd","heroHeader":"ateK4B","promoHeader":"xqCDbe","uuiCritical":"nXNPZM","uuiInfo":"ZKQVEo","uuiSuccess":"oFBYzW","uuiWarning":"vxc7o4","uuiHighlight":"-tZ1AB","uuiTypographySize12":"-KshVb","uuiTypographySize14":"m-KS09","uuiTypographySize16":"_8tb1Nx","captionWrapper":"WKJ4-r","sortIcon":"mPG5Tk","dropdownIcon":"_8QVQgn","alignRight":"fa3L4Y","alignCenter":"xyEdNu","foldAllIcon":"_5R7gLs","cellTooltip":"_2KXhhC","upperCase":"C7VJG7","resizingMarker":"_0amGVS","pinnedRight":"JH62Hd","isDraggedOut":"-hX98i","dndMarkerLeft":"Dj1AfS","dndMarkerRight":"mANLSt","cellTooltipWrapper":"nYumwR","cellTooltipText":"JOztg0","tooltipCaption":"zocSlT","tooltipInfo":"_90SIo8"};
|
|
3389
3408
|
|
|
3390
3409
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
3391
3410
|
constructor() {
|
|
@@ -3393,27 +3412,27 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3393
3412
|
this.state = {
|
|
3394
3413
|
isDropdownOpen: null,
|
|
3395
3414
|
};
|
|
3396
|
-
this.getTooltipContent = (column) => (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
3397
|
-
React__namespace.createElement(Text, { cx: [css$
|
|
3398
|
-
column.info && (React__namespace.createElement(Text, { cx: [css$
|
|
3415
|
+
this.getTooltipContent = (column) => (React__namespace.createElement("div", { className: uuiCore.cx(css$v.cellTooltipWrapper, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionTooltip) },
|
|
3416
|
+
React__namespace.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipCaption] }, column.caption),
|
|
3417
|
+
column.info && (React__namespace.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipInfo] }, column.info))));
|
|
3399
3418
|
this.getColumnCaption = () => {
|
|
3400
3419
|
const renderTooltip = this.props.column.renderTooltip || this.getTooltipContent;
|
|
3401
3420
|
const captionCx = [
|
|
3402
|
-
css$
|
|
3403
|
-
this.props.textCase === 'upper' && css$
|
|
3421
|
+
css$v.caption,
|
|
3422
|
+
this.props.textCase === 'upper' && css$v.upperCase,
|
|
3404
3423
|
uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaption,
|
|
3405
|
-
settings.sizes.dataTable.header.row.cell.truncate.includes(this.props.size) && css$
|
|
3424
|
+
settings.sizes.dataTable.header.row.cell.truncate.includes(this.props.size) && css$v.truncate,
|
|
3406
3425
|
];
|
|
3407
|
-
return (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
3408
|
-
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: css$
|
|
3426
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$v.captionWrapper, css$v['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
3427
|
+
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: css$v.cellTooltip, openDelay: 600 },
|
|
3409
3428
|
React__namespace.createElement(Text, { key: "text", fontSize: settings.sizes.dataTable.header.row.cell.columnCaption[this.props.textCase === 'upper' ? 'uppercase' : 'fontSize'], size: settings.sizes.dataTable.header.row.cell.columnCaption.size, cx: captionCx }, this.props.column.caption)),
|
|
3410
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$
|
|
3411
|
-
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$
|
|
3412
|
-
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$
|
|
3429
|
+
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$v.icon, css$v.sortIcon, this.props.sortDirection && css$v.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'neutral' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$p : this.props.sortDirection === 'asc' ? ForwardRef$q : ForwardRef$o })),
|
|
3430
|
+
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$v.icon, !this.props.sortDirection && css$v.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "neutral", icon: ForwardRef$n })),
|
|
3431
|
+
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$v.icon, css$v.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$m : ForwardRef$P }))));
|
|
3413
3432
|
};
|
|
3414
3433
|
this.renderHeaderCheckbox = () => {
|
|
3415
3434
|
if (this.props.selectAll && this.props.isFirstColumn) {
|
|
3416
|
-
return (React__namespace.createElement(Checkbox, Object.assign({ size: settings.sizes.dataTable.header.row.cell.checkbox[this.props.size] }, this.props.selectAll, { cx: uuiCore.cx(css$
|
|
3435
|
+
return (React__namespace.createElement(Checkbox, Object.assign({ size: settings.sizes.dataTable.header.row.cell.checkbox[this.props.size] }, this.props.selectAll, { cx: uuiCore.cx(css$v.checkbox, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCheckbox) })));
|
|
3417
3436
|
}
|
|
3418
3437
|
};
|
|
3419
3438
|
this.renderFoldAllIcon = () => {
|
|
@@ -3421,14 +3440,14 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3421
3440
|
return (React__namespace.createElement(Tooltip, { content: this.props.areAllFolded
|
|
3422
3441
|
? i18n.tables.columnHeader.expandAllTooltip
|
|
3423
3442
|
: i18n.tables.columnHeader.collapseAllTooltip },
|
|
3424
|
-
React__namespace.createElement(IconButton, { color: "secondary", cx: uuiCore.cx(css$
|
|
3443
|
+
React__namespace.createElement(IconButton, { color: "secondary", cx: uuiCore.cx(css$v.icon, css$v.foldAllIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFoldAllIcon), icon: this.props.areAllFolded ? ForwardRef$k : ForwardRef$l, onClick: this.props.onFoldAll, rawProps: {
|
|
3425
3444
|
'aria-label': this.props.areAllFolded ? 'Expand All' : 'Collapse All',
|
|
3426
3445
|
'aria-expanded': !!this.props.areAllFolded,
|
|
3427
3446
|
} })));
|
|
3428
3447
|
}
|
|
3429
3448
|
};
|
|
3430
3449
|
this.renderResizingMarker = (props) => {
|
|
3431
|
-
return (React__namespace.createElement("div", { role: "separator", onMouseDown: props.onResizeStart, className: uuiCore.cx(css$
|
|
3450
|
+
return (React__namespace.createElement("div", { role: "separator", onMouseDown: props.onResizeStart, className: uuiCore.cx(css$v.resizingMarker, uuiCore.uuiMarkers.draggable, uuiCore.uuiMarkers.clickable) }));
|
|
3432
3451
|
};
|
|
3433
3452
|
this.getLeftPadding = () => {
|
|
3434
3453
|
const { columnsGap, isFirstColumn } = this.props;
|
|
@@ -3460,7 +3479,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3460
3479
|
var _a;
|
|
3461
3480
|
props.ref(ref);
|
|
3462
3481
|
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
3463
|
-
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$
|
|
3482
|
+
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$v.root, `uui-size-${this.props.size || settings.sizes.dataTable.header.row.cell.defaults.size}`, this.props.isFirstColumn && 'uui-dt-header-first-column', this.props.isLastColumn && 'uui-dt-header-last-column', this.props.column.fix && css$v['pinned-' + this.props.column.fix], isResizable && css$v.resizable, props.isDraggable && css$v.draggable, props.isDragGhost && css$v.ghost, props.isDraggedOut && css$v.isDraggedOut, props.isDndInProgress && css$v['dnd-marker-' + props.position]), onClick: onClickEvent, rawProps: Object.assign({ role: 'columnheader', 'aria-sort': this.props.sortDirection === 'asc' ? 'ascending' : this.props.sortDirection ? 'descending' : 'none' }, props.eventHandlers), style: computeStyles },
|
|
3464
3483
|
this.renderHeaderCheckbox(),
|
|
3465
3484
|
this.renderFoldAllIcon(),
|
|
3466
3485
|
this.getColumnCaption(),
|
|
@@ -3491,10 +3510,65 @@ var SvgActionSettingsFill = function SvgActionSettingsFill(props, ref) {
|
|
|
3491
3510
|
};
|
|
3492
3511
|
var ForwardRef$j = /*#__PURE__*/React.forwardRef(SvgActionSettingsFill);
|
|
3493
3512
|
|
|
3494
|
-
var css$
|
|
3513
|
+
var css$u = {"uui-typography":"kNJ6JN","hero-header":"_7OcCDh","promo-header":"_8COKvt","uui-critical":"HnENCS","uui-info":"hrMvPg","uui-success":"_0xTGVQ","uui-warning":"GX2Xhh","uui-highlight":"j-shXA","uui-typography-size-12":"_1eFDXv","uui-typography-size-14":"vaHhy9","uui-typography-size-16":"zko-hd","root":"mZKLiG","uuiTypography":"kNJ6JN","heroHeader":"_7OcCDh","promoHeader":"_8COKvt","uuiCritical":"HnENCS","uuiInfo":"hrMvPg","uuiSuccess":"_0xTGVQ","uuiWarning":"GX2Xhh","uuiHighlight":"j-shXA","uuiTypographySize12":"_1eFDXv","uuiTypographySize14":"vaHhy9","uuiTypographySize16":"zko-hd"};
|
|
3514
|
+
|
|
3515
|
+
var css$t = {"uui-typography":"jorqk0","hero-header":"PKw8EQ","promo-header":"_9w2Z6H","uui-critical":"l8GYxb","uui-info":"yMeCrm","uui-success":"NXTO-d","uui-warning":"W1JPQ0","uui-highlight":"CNMVco","uui-typography-size-12":"oC1oY4","uui-typography-size-14":"o1xzM7","uui-typography-size-16":"_958OA-","root":"fmzLSI","caption-wrapper":"HL2pbQ","align-center":"DvxjN2","caption":"K2OYNC","truncate":"_0fo-LV","group-cell-tooltip":"ICEJVE","upper-case":"Qf9ebw","group-cell-tooltip-wrapper":"E-o5LF","group-cell-tooltip-text":"_8JpTvg","tooltip-caption":"_1k3gd-","tooltip-info":"_2wgxpR","uuiTypography":"jorqk0","heroHeader":"PKw8EQ","promoHeader":"_9w2Z6H","uuiCritical":"l8GYxb","uuiInfo":"yMeCrm","uuiSuccess":"NXTO-d","uuiWarning":"W1JPQ0","uuiHighlight":"CNMVco","uuiTypographySize12":"oC1oY4","uuiTypographySize14":"o1xzM7","uuiTypographySize16":"_958OA-","captionWrapper":"HL2pbQ","alignCenter":"DvxjN2","groupCellTooltip":"ICEJVE","upperCase":"Qf9ebw","groupCellTooltipWrapper":"E-o5LF","groupCellTooltipText":"_8JpTvg","tooltipCaption":"_1k3gd-","tooltipInfo":"_2wgxpR"};
|
|
3516
|
+
|
|
3517
|
+
class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
3518
|
+
constructor() {
|
|
3519
|
+
super(...arguments);
|
|
3520
|
+
this.getTooltipContent = (column) => (React__namespace.createElement("div", { className: uuiCore.cx(css$t.groupCellTooltipWrapper, uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaptionTooltip) },
|
|
3521
|
+
React__namespace.createElement(Text, { cx: [css$t.groupCellTooltipText, css$t.tooltipCaption] }, column.caption),
|
|
3522
|
+
column.info && (React__namespace.createElement(Text, { cx: [css$t.groupCellTooltipText, css$t.tooltipInfo] }, column.info))));
|
|
3523
|
+
this.getColumnCaption = () => {
|
|
3524
|
+
const renderTooltip = this.props.group.renderTooltip || this.getTooltipContent;
|
|
3525
|
+
const captionCx = [
|
|
3526
|
+
css$t.caption,
|
|
3527
|
+
this.props.textCase === 'upper' && css$t.upperCase,
|
|
3528
|
+
uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaption,
|
|
3529
|
+
settings.sizes.dataTable.header.row.groupCell.truncate.includes(this.props.size) && css$t.truncate,
|
|
3530
|
+
];
|
|
3531
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$t.captionWrapper, css$t['align-' + this.props.group.textAlign], uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaptionWrapper) },
|
|
3532
|
+
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.group), cx: css$t.groupCellTooltip, openDelay: 600 },
|
|
3533
|
+
React__namespace.createElement(Text, { key: "text", fontSize: settings.sizes.dataTable.header.row.groupCell.columnCaption[this.props.textCase === 'upper' ? 'uppercase' : 'fontSize'], size: settings.sizes.dataTable.header.row.groupCell.columnCaption.size, cx: captionCx }, this.props.group.caption))));
|
|
3534
|
+
};
|
|
3535
|
+
this.getLeftPadding = () => {
|
|
3536
|
+
const { columnsGap, isFirstCell } = this.props;
|
|
3537
|
+
if (columnsGap)
|
|
3538
|
+
return isFirstCell ? columnsGap : +columnsGap / 2;
|
|
3539
|
+
return isFirstCell ? settings.sizes.dataTable.header.row.groupCell.defaults.paddingEdge : settings.sizes.dataTable.header.row.groupCell.defaults.padding;
|
|
3540
|
+
};
|
|
3541
|
+
this.getRightPadding = () => {
|
|
3542
|
+
const { columnsGap, isLastCell } = this.props;
|
|
3543
|
+
if (columnsGap)
|
|
3544
|
+
return isLastCell ? columnsGap : +columnsGap / 2;
|
|
3545
|
+
return isLastCell ? settings.sizes.dataTable.header.row.groupCell.defaults.paddingEdge : settings.sizes.dataTable.header.row.groupCell.defaults.padding;
|
|
3546
|
+
};
|
|
3547
|
+
this.renderCellContent = (props) => {
|
|
3548
|
+
const computeStyles = {
|
|
3549
|
+
'--uui-dt-header-group-cell-padding-start': `${this.getLeftPadding()}px`,
|
|
3550
|
+
'--uui-dt-header-group-cell-padding-end': `${this.getRightPadding()}px`,
|
|
3551
|
+
};
|
|
3552
|
+
return (React__namespace.createElement(uuiComponents.DataTableCellContainer, { column: this.props.group, ref: (ref) => {
|
|
3553
|
+
props.ref(ref);
|
|
3554
|
+
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCell, css$t.root, `uui-size-${this.props.size || settings.sizes.dataTable.header.row.groupCell.defaults.size}`, this.props.isFirstCell && 'uui-dt-header-first-column', this.props.isLastCell && 'uui-dt-header-last-column'), rawProps: Object.assign({ role: 'columnheader' }, props.eventHandlers), style: computeStyles }, this.getColumnCaption()));
|
|
3555
|
+
};
|
|
3556
|
+
}
|
|
3557
|
+
render() {
|
|
3558
|
+
if (this.props.group.renderHeaderCell) {
|
|
3559
|
+
return this.props.group.renderHeaderCell(this.props);
|
|
3560
|
+
}
|
|
3561
|
+
const computeStyles = {
|
|
3562
|
+
'--uui-dt-header-group-cell-padding-start': `${this.getLeftPadding()}px`,
|
|
3563
|
+
'--uui-dt-header-group-cell-padding-end': `${this.getRightPadding()}px`,
|
|
3564
|
+
};
|
|
3565
|
+
return (React__namespace.createElement(uuiComponents.DataTableCellContainer, { column: this.props.group, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCell, css$t.root, `uui-size-${this.props.size || settings.sizes.dataTable.header.row.groupCell.defaults.size}`, this.props.isFirstCell && 'uui-dt-header-first-column', this.props.isLastCell && 'uui-dt-header-last-column'), rawProps: { role: 'columnheader' }, style: computeStyles }, this.getColumnCaption()));
|
|
3566
|
+
}
|
|
3567
|
+
}
|
|
3495
3568
|
|
|
3496
|
-
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$
|
|
3569
|
+
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$u.root, 'uui-dt-vars'], (mods) => ({
|
|
3497
3570
|
renderCell: (props) => (React__namespace.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap }))),
|
|
3571
|
+
renderGroupCell: (props) => (React__namespace.createElement(DataTableHeaderGroupCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.key, columnsGap: mods.columnsGap }))),
|
|
3498
3572
|
renderConfigButton: () => (React__namespace.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: ['config-icon', `uui-size-${settings.sizes.dataTable.header.row.cell.iconSize[mods.size || settings.sizes.dataTable.header.row.default]}`], color: "neutral", icon: ForwardRef$j })),
|
|
3499
3573
|
}));
|
|
3500
3574
|
|
|
@@ -3503,7 +3577,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
3503
3577
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
3504
3578
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
3505
3579
|
|
|
3506
|
-
var css$s = {"uui-typography":"
|
|
3580
|
+
var css$s = {"uui-typography":"fyyVGp","hero-header":"iIVVo9","promo-header":"YDVbK2","uui-critical":"_7E6gaM","uui-info":"HaWTjX","uui-success":"tqGDve","uui-warning":"zg1yEW","uui-highlight":"HJsJFL","uui-typography-size-12":"_0J-ktV","uui-typography-size-14":"_0VycFS","uui-typography-size-16":"BkrhS7","root":"jIp5XA","title-wrapper":"_6Xgr-C","title":"LHngg5","text-wrapper":"w6a-DZ","selection":"Oat-ZR","postfix":"R5gdHc","selected":"EOPnHo","uuiTypography":"fyyVGp","heroHeader":"iIVVo9","promoHeader":"YDVbK2","uuiCritical":"_7E6gaM","uuiInfo":"HaWTjX","uuiSuccess":"tqGDve","uuiWarning":"zg1yEW","uuiHighlight":"HJsJFL","uuiTypographySize12":"_0J-ktV","uuiTypographySize14":"_0VycFS","uuiTypographySize16":"BkrhS7","titleWrapper":"_6Xgr-C","textWrapper":"w6a-DZ"};
|
|
3507
3581
|
|
|
3508
3582
|
const defaultSize = '36';
|
|
3509
3583
|
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
@@ -3681,7 +3755,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
3681
3755
|
React__namespace.default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
3682
3756
|
}
|
|
3683
3757
|
|
|
3684
|
-
var css$r = {"container":"
|
|
3758
|
+
var css$r = {"container":"BHFT1D"};
|
|
3685
3759
|
|
|
3686
3760
|
function FilterNumericBody(props) {
|
|
3687
3761
|
var _a, _b;
|
|
@@ -3779,7 +3853,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
3779
3853
|
};
|
|
3780
3854
|
var ForwardRef$i = /*#__PURE__*/React.forwardRef(SvgActionDeleteOutline);
|
|
3781
3855
|
|
|
3782
|
-
var css$q = {"uui-typography":"
|
|
3856
|
+
var css$q = {"uui-typography":"FJOnFy","hero-header":"kHrD0G","promo-header":"vK-Lxa","uui-critical":"ZdYoyP","uui-info":"_59nr8C","uui-success":"Hxqp6i","uui-warning":"_3ZtO-C","uui-highlight":"owFeBB","uui-typography-size-12":"ztTtYr","uui-typography-size-14":"Nd0Bua","uui-typography-size-16":"eR8M8e","header":"MWsqsV","removeButton":"PJG6m8","with-search":"WYx1GB","uuiTypography":"FJOnFy","heroHeader":"kHrD0G","promoHeader":"vK-Lxa","uuiCritical":"ZdYoyP","uuiInfo":"_59nr8C","uuiSuccess":"Hxqp6i","uuiWarning":"_3ZtO-C","uuiHighlight":"owFeBB","uuiTypographySize12":"ztTtYr","uuiTypographySize14":"Nd0Bua","uuiTypographySize16":"eR8M8e","withSearch":"WYx1GB"};
|
|
3783
3857
|
|
|
3784
3858
|
function useView(props, value) {
|
|
3785
3859
|
const forceUpdate = uuiCore.useForceUpdate();
|
|
@@ -4100,7 +4174,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4100
4174
|
}
|
|
4101
4175
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
4102
4176
|
|
|
4103
|
-
var css$p = {"divider":"
|
|
4177
|
+
var css$p = {"divider":"QMCgsM","dropdownDeleteIcon":"C74B7X","presetsWrapper":"y6T2kv","addPresetContainer":"vUnVUc","dropContainer":"Vknu1-"};
|
|
4104
4178
|
|
|
4105
4179
|
var _path$g;
|
|
4106
4180
|
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
@@ -4213,7 +4287,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4213
4287
|
};
|
|
4214
4288
|
var ForwardRef$a = /*#__PURE__*/React.forwardRef(SvgContentLinkOutline);
|
|
4215
4289
|
|
|
4216
|
-
var css$o = {"delete-button":"
|
|
4290
|
+
var css$o = {"delete-button":"iMAFWi","tab-button":"_3fgcCY","targetOpen":"DpC4Q7","deleteButton":"iMAFWi","tabButton":"_3fgcCY"};
|
|
4217
4291
|
|
|
4218
4292
|
function PresetActionsDropdown(props) {
|
|
4219
4293
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -4271,7 +4345,7 @@ function PresetActionsDropdown(props) {
|
|
|
4271
4345
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4272
4346
|
}
|
|
4273
4347
|
|
|
4274
|
-
var css$n = {"preset-input-cell":"
|
|
4348
|
+
var css$n = {"preset-input-cell":"r8hMzX","preset-input":"IiF8eW","presetInputCell":"r8hMzX","presetInput":"IiF8eW"};
|
|
4275
4349
|
|
|
4276
4350
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4277
4351
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4304,7 +4378,7 @@ function PresetInput(props) {
|
|
|
4304
4378
|
React__namespace.default.createElement(TextInput, { cx: css$n.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
4305
4379
|
}
|
|
4306
4380
|
|
|
4307
|
-
var css$m = {"preset":"
|
|
4381
|
+
var css$m = {"preset":"_22Qxuh","activePreset":"Fq7oQK"};
|
|
4308
4382
|
|
|
4309
4383
|
function Preset(props) {
|
|
4310
4384
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -4478,7 +4552,7 @@ var SvgTableGroupColumnRightFill = function SvgTableGroupColumnRightFill(props,
|
|
|
4478
4552
|
};
|
|
4479
4553
|
var ForwardRef$6 = /*#__PURE__*/React.forwardRef(SvgTableGroupColumnRightFill);
|
|
4480
4554
|
|
|
4481
|
-
var css$l = {"unpin-icon":"
|
|
4555
|
+
var css$l = {"unpin-icon":"_9uKgSI","pin-toggler-icon":"ZbmZCh","unpinIcon":"_9uKgSI","pinTogglerIcon":"ZbmZCh"};
|
|
4482
4556
|
|
|
4483
4557
|
function PinIconButton(props) {
|
|
4484
4558
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4537,7 +4611,7 @@ var SvgActionDragIndicator18 = function SvgActionDragIndicator18(props, ref) {
|
|
|
4537
4611
|
};
|
|
4538
4612
|
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgActionDragIndicator18);
|
|
4539
4613
|
|
|
4540
|
-
var css$k = {"uui-typography":"
|
|
4614
|
+
var css$k = {"uui-typography":"KR5Itu","hero-header":"UvCQNH","promo-header":"-RIopO","uui-critical":"HKNGQa","uui-info":"iGiINY","uui-success":"BmLKQA","uui-warning":"mtJbpS","uui-highlight":"rlmOfO","uui-typography-size-12":"LzoZW1","uui-typography-size-14":"_4Dh3tV","uui-typography-size-16":"NxNxLF","row-wrapper":"HQwuYe","pin-icon-button":"RQJOas","not-pinned":"FC-gp6","checkbox":"rNkxZ2","drag-handle":"IQwTkR","dnd-disabled":"wAnAdR","uuiTypography":"KR5Itu","heroHeader":"UvCQNH","promoHeader":"-RIopO","uuiCritical":"HKNGQa","uuiInfo":"iGiINY","uuiSuccess":"BmLKQA","uuiWarning":"mtJbpS","uuiHighlight":"rlmOfO","uuiTypographySize12":"LzoZW1","uuiTypographySize14":"_4Dh3tV","uuiTypographySize16":"NxNxLF","rowWrapper":"HQwuYe","pinIconButton":"RQJOas","notPinned":"FC-gp6","dragHandle":"IQwTkR","dndDisabled":"wAnAdR"};
|
|
4541
4615
|
|
|
4542
4616
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
4543
4617
|
const { column } = props;
|
|
@@ -4560,7 +4634,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4560
4634
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4561
4635
|
});
|
|
4562
4636
|
|
|
4563
|
-
var css$j = {"uui-typography":"
|
|
4637
|
+
var css$j = {"uui-typography":"Lx3j57","hero-header":"gI3EsI","promo-header":"B2Dq1c","uui-critical":"EXmV1s","uui-info":"QsdIuW","uui-success":"fk-x1X","uui-warning":"hc3lZ-","uui-highlight":"Wx-HT6","uui-typography-size-12":"x7YXkv","uui-typography-size-14":"_5hsJDH","uui-typography-size-16":"_4v-F36","root":"zKz-fl","main-panel":"KYdSMO","group":"LrEpZz","group-title":"t3WimS","group-items":"F54Gng","no-data":"G1g73g","no-data-title":"c6TZ1b","no-data-sub-title":"P4fGFB","h-divider":"oDLt9q","search-area":"pQoCCq","subgroup-accordion":"VfnzDa","subgroup":"_6eoefP","subgroup-title":"R8ffn4","uuiTypography":"Lx3j57","heroHeader":"gI3EsI","promoHeader":"B2Dq1c","uuiCritical":"EXmV1s","uuiInfo":"QsdIuW","uuiSuccess":"fk-x1X","uuiWarning":"hc3lZ-","uuiHighlight":"Wx-HT6","uuiTypographySize12":"x7YXkv","uuiTypographySize14":"_5hsJDH","uuiTypographySize16":"_4v-F36","mainPanel":"KYdSMO","groupTitle":"t3WimS","groupItems":"F54Gng","noData":"G1g73g","noDataTitle":"c6TZ1b","noDataSubTitle":"P4fGFB","hDivider":"oDLt9q","searchArea":"pQoCCq","subgroupAccordion":"VfnzDa","subgroupTitle":"R8ffn4"};
|
|
4564
4638
|
|
|
4565
4639
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$j.group },
|
|
4566
4640
|
React__namespace.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -4649,7 +4723,7 @@ function SubGroup(props) {
|
|
|
4649
4723
|
return null;
|
|
4650
4724
|
}
|
|
4651
4725
|
|
|
4652
|
-
var css$i = {"listContainer":"
|
|
4726
|
+
var css$i = {"listContainer":"PXwq7M","header":"eHgw2W","group":"ooXlcc","stickyHeader":"j6njK9"};
|
|
4653
4727
|
|
|
4654
4728
|
const getChildrenAndRest = (row, rows) => {
|
|
4655
4729
|
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
@@ -4715,7 +4789,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4715
4789
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4716
4790
|
ref: ref
|
|
4717
4791
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
4718
|
-
clipPath: "url(#
|
|
4792
|
+
clipPath: "url(#74xl1w63ep50an8na_a)"
|
|
4719
4793
|
}, _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4720
4794
|
d: "M150.585 1.535C49.483-11.495 27.481 61.805 45.725 97.481c10.581 20.69-39.64 70.792 17.744 81.468 27.538 5.123 36-13.341 62.433-10.655 35.4 3.6 148.167-4.73 88.349-78.915-31.713-39.335 1.026-79.506-63.666-87.844Z",
|
|
4721
4795
|
fill: "#F5F6FA"
|
|
@@ -4736,7 +4810,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4736
4810
|
d: "M86.786 22.982c-2.55 0-4.965 2.07-4.965 4.552V120.6c0 2.484 2.4 4.572 4.965 4.572h88.101c2.582 0 4.986-2.089 4.986-4.572V27.534c0-2.464-2.418-4.552-4.986-4.552h-88.1Zm-5.793 4.552c0-3.022 2.874-5.38 5.793-5.38h88.101c2.935 0 5.814 2.374 5.814 5.38V120.6c0 3.021-2.86 5.4-5.814 5.4h-88.1c-2.94 0-5.794-2.381-5.794-5.4V27.534Z",
|
|
4737
4811
|
fill: "#1D1E26"
|
|
4738
4812
|
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
4739
|
-
id: "
|
|
4813
|
+
id: "74xl1w6kl6ubu6cvd_b",
|
|
4740
4814
|
style: {
|
|
4741
4815
|
maskType: "alpha"
|
|
4742
4816
|
},
|
|
@@ -4749,7 +4823,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4749
4823
|
d: "M174.887 125.586h-88.1c-2.752 0-5.38-2.234-5.38-4.986V27.534c0-2.752 2.644-4.966 5.38-4.966h88.1c2.752 0 5.4 2.23 5.4 4.966V120.6c0 2.752-2.632 4.986-5.4 4.986Z",
|
|
4750
4824
|
fill: "#9BDEFF"
|
|
4751
4825
|
}))), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
4752
|
-
mask: "url(#
|
|
4826
|
+
mask: "url(#74xl1w6kl6ubu6cvd_b)",
|
|
4753
4827
|
fillRule: "evenodd",
|
|
4754
4828
|
clipRule: "evenodd"
|
|
4755
4829
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -4835,7 +4909,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4835
4909
|
d: "M24.73 96.184a.414.414 0 0 1 .581.06l48.646 59.751a.413.413 0 1 1-.642.523L24.67 96.766a.414.414 0 0 1 .06-.582Z",
|
|
4836
4910
|
fill: "#fff"
|
|
4837
4911
|
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
4838
|
-
id: "
|
|
4912
|
+
id: "74xl1w63ep50an8na_a"
|
|
4839
4913
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
4840
4914
|
fill: "#fff",
|
|
4841
4915
|
transform: "translate(.552)",
|
|
@@ -4844,7 +4918,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4844
4918
|
};
|
|
4845
4919
|
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgEmptyTable);
|
|
4846
4920
|
|
|
4847
|
-
var css$h = {"root":"
|
|
4921
|
+
var css$h = {"root":"jkxA30","sticky-header":"TTskZN","no-results":"ClfC4x","icon":"z-FpB8","title":"KH-keX","stickyHeader":"TTskZN","noResults":"ClfC4x"};
|
|
4848
4922
|
|
|
4849
4923
|
function DataTable(props) {
|
|
4850
4924
|
var _a, _b, _c, _d;
|
|
@@ -4879,7 +4953,7 @@ function DataTable(props) {
|
|
|
4879
4953
|
]);
|
|
4880
4954
|
const renderRowsContainer = React__namespace.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4881
4955
|
React__namespace.createElement("div", { className: css$h.stickyHeader, ref: headerRef },
|
|
4882
|
-
React__namespace.createElement(DataTableHeaderRow, { columns: columns, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.headerSize || settings.sizes.dataTable.header.row.default, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, showFoldAll: props.showFoldAll, value: Object.assign(Object.assign({}, props.value), { columnsConfig: config }), onValueChange: props.onValueChange, columnsGap: props.columnsGap }),
|
|
4956
|
+
React__namespace.createElement(DataTableHeaderRow, { columns: columns, columnGroups: props.columnGroups, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.headerSize || settings.sizes.dataTable.header.row.default, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, showFoldAll: props.showFoldAll, value: Object.assign(Object.assign({}, props.value), { columnsConfig: config }), onValueChange: props.onValueChange, columnsGap: props.columnsGap }),
|
|
4883
4957
|
React__namespace.createElement("div", { className: uuiCore.cx(uuiCore.uuiScrollShadows.top, {
|
|
4884
4958
|
[uuiCore.uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
4885
4959
|
}) })),
|
|
@@ -4895,9 +4969,9 @@ function DataTable(props) {
|
|
|
4895
4969
|
} }))));
|
|
4896
4970
|
}
|
|
4897
4971
|
|
|
4898
|
-
var css$g = {"root":"
|
|
4972
|
+
var css$g = {"root":"-yVabF"};
|
|
4899
4973
|
|
|
4900
|
-
var css$f = {"root":"
|
|
4974
|
+
var css$f = {"root":"A5YcYe","burger-content":"_5ho-c7","burgerContent":"_5ho-c7"};
|
|
4901
4975
|
|
|
4902
4976
|
var _path$3;
|
|
4903
4977
|
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
@@ -4940,7 +5014,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
4940
5014
|
};
|
|
4941
5015
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
4942
5016
|
|
|
4943
|
-
var css$e = {"uui-typography":"
|
|
5017
|
+
var css$e = {"uui-typography":"weHg3C","hero-header":"i-f137","promo-header":"Xby0r5","uui-critical":"i4jjSY","uui-info":"Enfyep","uui-success":"AzakXL","uui-warning":"vumnCF","uui-highlight":"DSdVOg","uui-typography-size-12":"RgisgQ","uui-typography-size-14":"N0T08W","uui-typography-size-16":"rXcBgb","root":"TFUDoA","button-primary":"Lah5Bf","button-secondary":"-WQruB","hasIcon":"z0nPRm","dropdown":"sEH3ct","uuiTypography":"weHg3C","heroHeader":"i-f137","promoHeader":"Xby0r5","uuiCritical":"i4jjSY","uuiInfo":"Enfyep","uuiSuccess":"AzakXL","uuiWarning":"vumnCF","uuiHighlight":"DSdVOg","uuiTypographySize12":"RgisgQ","uuiTypographySize14":"N0T08W","uuiTypographySize16":"rXcBgb","buttonPrimary":"Lah5Bf","buttonSecondary":"-WQruB"};
|
|
4944
5018
|
|
|
4945
5019
|
const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
4946
5020
|
css$e.root,
|
|
@@ -4951,13 +5025,13 @@ const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (prop
|
|
|
4951
5025
|
props.icon && css$e.hasIcon,
|
|
4952
5026
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
4953
5027
|
|
|
4954
|
-
var css$d = {"search-input":"
|
|
5028
|
+
var css$d = {"search-input":"OcUydZ","searchInput":"OcUydZ"};
|
|
4955
5029
|
|
|
4956
5030
|
function BurgerSearch(props) {
|
|
4957
5031
|
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$N, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$Q }));
|
|
4958
5032
|
}
|
|
4959
5033
|
|
|
4960
|
-
var css$c = {"root":"
|
|
5034
|
+
var css$c = {"root":"jhfUQd","group-header":"f-jBA1","group-name":"q82old","line":"hcCow4","groupHeader":"f-jBA1","groupName":"q82old"};
|
|
4961
5035
|
|
|
4962
5036
|
function BurgerGroupHeader(props) {
|
|
4963
5037
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4965,7 +5039,7 @@ function BurgerGroupHeader(props) {
|
|
|
4965
5039
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
4966
5040
|
}
|
|
4967
5041
|
|
|
4968
|
-
var css$b = {"uui-typography":"
|
|
5042
|
+
var css$b = {"uui-typography":"GS1nie","hero-header":"_1ppN05","promo-header":"a64WYR","uui-critical":"xavknH","uui-info":"UrRvK5","uui-success":"XLv-Nv","uui-warning":"z1-QNg","uui-highlight":"lYxyWh","uui-typography-size-12":"_5V8d5k","uui-typography-size-14":"uJx1zK","uui-typography-size-16":"accowK","root":"oqC-s6","type-primary":"nDOW6V","type-secondary":"_44H-Ei","uuiTypography":"GS1nie","heroHeader":"_1ppN05","promoHeader":"a64WYR","uuiCritical":"xavknH","uuiInfo":"UrRvK5","uuiSuccess":"XLv-Nv","uuiWarning":"z1-QNg","uuiHighlight":"lYxyWh","uuiTypographySize12":"_5V8d5k","uuiTypographySize14":"uJx1zK","uuiTypographySize16":"accowK","typePrimary":"nDOW6V","typeSecondary":"_44H-Ei"};
|
|
4969
5043
|
|
|
4970
5044
|
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4971
5045
|
const { type } = props, clickableProps = __rest(props, ["type"]);
|
|
@@ -4981,7 +5055,7 @@ const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
4981
5055
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$P, flipY: props.isOpen }))));
|
|
4982
5056
|
});
|
|
4983
5057
|
|
|
4984
|
-
var css$a = {"dropdown-body":"
|
|
5058
|
+
var css$a = {"dropdown-body":"bQplF6","dropdownBody":"bQplF6"};
|
|
4985
5059
|
|
|
4986
5060
|
class MainMenuDropdown extends React__namespace.Component {
|
|
4987
5061
|
render() {
|
|
@@ -5036,12 +5110,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5036
5110
|
};
|
|
5037
5111
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5038
5112
|
|
|
5039
|
-
var css$9 = {"global-menu-btn":"
|
|
5113
|
+
var css$9 = {"global-menu-btn":"NlWS4j","global-menu-icon":"cR7q6v","globalMenuBtn":"NlWS4j","globalMenuIcon":"cR7q6v"};
|
|
5040
5114
|
|
|
5041
5115
|
const GlobalMenu = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx__default.default(css$9.globalMenuBtn, props.cx) }, props.rawProps),
|
|
5042
5116
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5043
5117
|
|
|
5044
|
-
var css$8 = {"container":"
|
|
5118
|
+
var css$8 = {"container":"hqxcfy","open":"_3mwTN9","folding-arrow":"_2192N2","foldingArrow":"_2192N2"};
|
|
5045
5119
|
|
|
5046
5120
|
const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiCore.uuiMarkers.clickable, props.cx), onClick: props.onClick },
|
|
5047
5121
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5049,18 +5123,18 @@ const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5049
5123
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5050
5124
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$P, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5051
5125
|
|
|
5052
|
-
var css$7 = {"search-input":"
|
|
5126
|
+
var css$7 = {"search-input":"p4pgC8","searchInput":"p4pgC8"};
|
|
5053
5127
|
|
|
5054
5128
|
const MainMenuSearch = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
5055
5129
|
var _a;
|
|
5056
5130
|
return (React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition: "left", icon: ForwardRef$N, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$Q }, props, iEditable, { ref: ref, cx: uuiCore.cx(css$7.searchInput, props.cx) }, props.rawProps)));
|
|
5057
5131
|
} }))));
|
|
5058
5132
|
|
|
5059
|
-
var css$6 = {"container":"
|
|
5133
|
+
var css$6 = {"container":"RKCRU-"};
|
|
5060
5134
|
|
|
5061
5135
|
const MainMenuIcon = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css$6.container) }, props))));
|
|
5062
5136
|
|
|
5063
|
-
var css$5 = {"root":"
|
|
5137
|
+
var css$5 = {"root":"_6b3J5q"};
|
|
5064
5138
|
|
|
5065
5139
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5066
5140
|
|
|
@@ -5118,7 +5192,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5118
5192
|
};
|
|
5119
5193
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
5120
5194
|
|
|
5121
|
-
var css$4 = {"root":"
|
|
5195
|
+
var css$4 = {"root":"_0M7hun","drop-start":"bz-yqj","drop-over":"F9ioTg","link":"DnaK9u","drop-area":"NWLoob","drop-caption":"nzB7-Z","icon-blue":"_81dloF","dropStart":"bz-yqj","dropOver":"F9ioTg","dropArea":"NWLoob","dropCaption":"nzB7-Z","iconBlue":"_81dloF"};
|
|
5122
5196
|
|
|
5123
5197
|
function DropSpot(props) {
|
|
5124
5198
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5136,9 +5210,9 @@ function DropSpot(props) {
|
|
|
5136
5210
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5137
5211
|
}
|
|
5138
5212
|
|
|
5139
|
-
var css$3 = {"uui-typography":"
|
|
5213
|
+
var css$3 = {"uui-typography":"BzU6uy","hero-header":"nQaVC-","promo-header":"TkS71b","uui-critical":"_7t2A-U","uui-info":"_0ZLbwm","uui-success":"vpakde","uui-warning":"VjIZD2","uui-highlight":"CzwNhi","uui-typography-size-12":"CSAR-I","uui-typography-size-14":"NRvbyJ","uui-typography-size-16":"xGo3Mu","root":"Z0Ro9a","file-name":"xkLxhq","default-color":"-XW5tw","doc-color":"vzJA5w","xls-color":"n6HCSq","pdf-color":"LDA4L-","movie-color":"TuLmoI","img-color":"G9li69","mov-color":"Ugno1r","error-block":"FnlYck","icons-block":"WkIRZv","uuiTypography":"BzU6uy","heroHeader":"nQaVC-","promoHeader":"TkS71b","uuiCritical":"_7t2A-U","uuiInfo":"_0ZLbwm","uuiSuccess":"vpakde","uuiWarning":"VjIZD2","uuiHighlight":"CzwNhi","uuiTypographySize12":"CSAR-I","uuiTypographySize14":"NRvbyJ","uuiTypographySize16":"xGo3Mu","fileName":"xkLxhq","defaultColor":"-XW5tw","docColor":"vzJA5w","xlsColor":"n6HCSq","pdfColor":"LDA4L-","movieColor":"TuLmoI","imgColor":"G9li69","movColor":"Ugno1r","errorBlock":"FnlYck","iconsBlock":"WkIRZv"};
|
|
5140
5214
|
|
|
5141
|
-
var css$2 = {"root":"
|
|
5215
|
+
var css$2 = {"root":"cr6-0L"};
|
|
5142
5216
|
|
|
5143
5217
|
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5144
5218
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5263,7 +5337,7 @@ const getErrorPageConfig = () => ({
|
|
|
5263
5337
|
},
|
|
5264
5338
|
});
|
|
5265
5339
|
|
|
5266
|
-
var css$1 = {"container":"
|
|
5340
|
+
var css$1 = {"container":"X8Rj26"};
|
|
5267
5341
|
|
|
5268
5342
|
const ErrorPage = (props) => {
|
|
5269
5343
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -5274,7 +5348,7 @@ const ErrorPage = (props) => {
|
|
|
5274
5348
|
React__namespace.default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle))));
|
|
5275
5349
|
};
|
|
5276
5350
|
|
|
5277
|
-
var css = {"recovery-spinner":"
|
|
5351
|
+
var css = {"recovery-spinner":"_4atYri","recovery-message":"_8K3zyv","modal-blocker":"Gj0ZXg","modalFadeIn":"_3cgNMv","recoverySpinner":"_4atYri","recoveryMessage":"_8K3zyv","modalBlocker":"Gj0ZXg"};
|
|
5278
5352
|
|
|
5279
5353
|
function ErrorHandler(props) {
|
|
5280
5354
|
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|