@epam/uui 5.11.0 → 5.11.1-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/errors/ErrorPage.d.ts.map +1 -1
- package/components/errors/config.d.ts +4 -0
- package/components/errors/config.d.ts.map +1 -1
- package/components/overlays/Alert.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/i18n.d.ts +2 -0
- package/i18n.d.ts.map +1 -1
- package/index.esm.js +368 -281
- package/index.esm.js.map +1 -1
- package/index.js +367 -280
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/settings.d.ts.map +1 -1
- package/settings.types.d.ts +17 -0
- package/settings.types.d.ts.map +1 -1
- package/stats.html +1 -19
- package/styles.css +2771 -2538
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -317,6 +317,7 @@ const systemIcons = {
|
|
|
317
317
|
const settings = {
|
|
318
318
|
sizes: {
|
|
319
319
|
defaults: {
|
|
320
|
+
alert: '48',
|
|
320
321
|
badge: '36',
|
|
321
322
|
button: '36',
|
|
322
323
|
checkbox: '18',
|
|
@@ -337,6 +338,12 @@ const settings = {
|
|
|
337
338
|
paginator: '30',
|
|
338
339
|
rating: '18',
|
|
339
340
|
},
|
|
341
|
+
alert: {
|
|
342
|
+
action: {
|
|
343
|
+
36: '24',
|
|
344
|
+
48: '30',
|
|
345
|
+
},
|
|
346
|
+
},
|
|
340
347
|
tag: {
|
|
341
348
|
countIndicator: {
|
|
342
349
|
18: '12',
|
|
@@ -548,6 +555,25 @@ const settings = {
|
|
|
548
555
|
},
|
|
549
556
|
truncate: ['48'],
|
|
550
557
|
},
|
|
558
|
+
groupCell: {
|
|
559
|
+
defaults: {
|
|
560
|
+
size: '36',
|
|
561
|
+
padding: '12',
|
|
562
|
+
paddingEdge: '24',
|
|
563
|
+
},
|
|
564
|
+
columnCaption: {
|
|
565
|
+
fontSize: '14',
|
|
566
|
+
fontWeight: '400',
|
|
567
|
+
size: '18',
|
|
568
|
+
uppercase: '12',
|
|
569
|
+
},
|
|
570
|
+
iconSize: {
|
|
571
|
+
36: '18',
|
|
572
|
+
48: '18',
|
|
573
|
+
60: '18',
|
|
574
|
+
},
|
|
575
|
+
truncate: ['48'],
|
|
576
|
+
},
|
|
551
577
|
},
|
|
552
578
|
},
|
|
553
579
|
body: {
|
|
@@ -596,11 +622,11 @@ const settings = {
|
|
|
596
622
|
},
|
|
597
623
|
};
|
|
598
624
|
|
|
599
|
-
var css$
|
|
625
|
+
var css$1y = {"uui-typography":"J9F0Yv","uuiTypography":"J9F0Yv","hero-header":"VReReM","heroHeader":"VReReM","promo-header":"tHLGjF","promoHeader":"tHLGjF","uui-critical":"DLZwkn","uuiCritical":"DLZwkn","uui-info":"sBgxUY","uuiInfo":"sBgxUY","uui-success":"QQMd27","uuiSuccess":"QQMd27","uui-warning":"FVc1Te","uuiWarning":"FVc1Te","uui-highlight":"ppU43y","uuiHighlight":"ppU43y","uui-typography-size-12":"hB1xK-","uuiTypographySize12":"hB1xK-","uui-typography-size-14":"_5rAoDW","uuiTypographySize14":"_5rAoDW","uui-typography-size-16":"r-z-NQ","uuiTypographySize16":"r-z-NQ","root":"hoCSdn"};
|
|
600
626
|
|
|
601
627
|
function applyButtonMods(mods) {
|
|
602
628
|
return [
|
|
603
|
-
css$
|
|
629
|
+
css$1y.root,
|
|
604
630
|
'uui-button',
|
|
605
631
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
606
632
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -614,10 +640,10 @@ const Button = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Button,
|
|
|
614
640
|
};
|
|
615
641
|
});
|
|
616
642
|
|
|
617
|
-
var css$
|
|
643
|
+
var css$1x = {"root":"l38xLY"};
|
|
618
644
|
|
|
619
645
|
function applyIconButtonMods(props) {
|
|
620
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
646
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1x.root];
|
|
621
647
|
}
|
|
622
648
|
const IconButton = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.IconButton, applyIconButtonMods, (props) => {
|
|
623
649
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -651,7 +677,7 @@ function getIconClass(props) {
|
|
|
651
677
|
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'];
|
|
652
678
|
}
|
|
653
679
|
|
|
654
|
-
var css$
|
|
680
|
+
var css$1w = {"uui-typography":"qdQNt6","uuiTypography":"qdQNt6","hero-header":"Q61TeP","heroHeader":"Q61TeP","promo-header":"Y3-k15","promoHeader":"Y3-k15","uui-critical":"_5FM1RG","uuiCritical":"_5FM1RG","uui-info":"_15mtnP","uuiInfo":"_15mtnP","uui-success":"TchaMK","uuiSuccess":"TchaMK","uui-warning":"D0f800","uuiWarning":"D0f800","uui-highlight":"v7Kx-y","uuiHighlight":"v7Kx-y","uui-typography-size-12":"g9LFq2","uuiTypographySize12":"g9LFq2","uui-typography-size-14":"UJbvxz","uuiTypographySize14":"UJbvxz","uui-typography-size-16":"ViRFb2","uuiTypographySize16":"ViRFb2","root":"sfTGVG"};
|
|
655
681
|
|
|
656
682
|
const DEFAULT_COLOR = 'primary';
|
|
657
683
|
const DEFAULT_WEIGHT = 'semibold';
|
|
@@ -667,7 +693,7 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
667
693
|
}
|
|
668
694
|
const rootStyles = [
|
|
669
695
|
'uui-link_button',
|
|
670
|
-
css$
|
|
696
|
+
css$1w.root,
|
|
671
697
|
`uui-size-${props.size || settings.sizes.defaults.linkButton}`,
|
|
672
698
|
...getIconClass(props),
|
|
673
699
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -682,11 +708,11 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
682
708
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
683
709
|
});
|
|
684
710
|
|
|
685
|
-
var css$
|
|
711
|
+
var css$1v = {"root":"AK7DaS"};
|
|
686
712
|
|
|
687
713
|
const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
688
714
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
689
|
-
css$
|
|
715
|
+
css$1v.root,
|
|
690
716
|
'uui-count_indicator',
|
|
691
717
|
`uui-size-${props.size || settings.sizes.defaults.countIndicator}`,
|
|
692
718
|
props.color && `uui-color-${props.color}`,
|
|
@@ -694,11 +720,11 @@ const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
694
720
|
]) }, props.caption));
|
|
695
721
|
});
|
|
696
722
|
|
|
697
|
-
var css$
|
|
723
|
+
var css$1u = {"uui-typography":"cbl9MC","uuiTypography":"cbl9MC","hero-header":"kkoAHA","heroHeader":"kkoAHA","promo-header":"hWcSse","promoHeader":"hWcSse","uui-critical":"t4oxm0","uuiCritical":"t4oxm0","uui-info":"MkvWES","uuiInfo":"MkvWES","uui-success":"JgAzVp","uuiSuccess":"JgAzVp","uui-warning":"Mxztkz","uuiWarning":"Mxztkz","uui-highlight":"_8-ZVT8","uuiHighlight":"_8-ZVT8","uui-typography-size-12":"eJwhfH","uuiTypographySize12":"eJwhfH","uui-typography-size-14":"rHTgfV","uuiTypographySize14":"rHTgfV","uui-typography-size-16":"Ijf-jk","uuiTypographySize16":"Ijf-jk","root":"kNnKB8","withNotify":"cjUkE4"};
|
|
698
724
|
|
|
699
725
|
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
700
726
|
const styles = [
|
|
701
|
-
css$
|
|
727
|
+
css$1u.root,
|
|
702
728
|
'uui-tab-button',
|
|
703
729
|
`uui-size-${props.size || settings.sizes.defaults.tabButton}`,
|
|
704
730
|
...getIconClass(props),
|
|
@@ -710,17 +736,17 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
710
736
|
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
711
737
|
(props.caption || props.withNotify) && (React__namespace.default.createElement("div", { className: uuiCore.cx(uuiCore.uuiElement.caption) },
|
|
712
738
|
props.caption,
|
|
713
|
-
props.withNotify && React__namespace.default.createElement("div", { className: css$
|
|
739
|
+
props.withNotify && React__namespace.default.createElement("div", { className: css$1u.withNotify }))),
|
|
714
740
|
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
715
741
|
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 })),
|
|
716
742
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
717
743
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
718
744
|
});
|
|
719
745
|
|
|
720
|
-
var css$
|
|
746
|
+
var css$1t = {"uui-typography":"vW0uwe","uuiTypography":"vW0uwe","hero-header":"rsU-3q","heroHeader":"rsU-3q","promo-header":"FXqUtR","promoHeader":"FXqUtR","uui-critical":"_12AtpJ","uuiCritical":"_12AtpJ","uui-info":"LAeKTz","uuiInfo":"LAeKTz","uui-success":"XMon2-","uuiSuccess":"XMon2-","uui-warning":"f7x8A5","uuiWarning":"f7x8A5","uui-highlight":"xNQVBO","uuiHighlight":"xNQVBO","uui-typography-size-12":"ylf7HJ","uuiTypographySize12":"ylf7HJ","uui-typography-size-14":"_8Ww-bC","uuiTypographySize14":"_8Ww-bC","uui-typography-size-16":"P-wQdX","uuiTypographySize16":"P-wQdX","root":"ALXCN6"};
|
|
721
747
|
|
|
722
748
|
function applyVerticalTabButtonMods() {
|
|
723
|
-
return [css$
|
|
749
|
+
return [css$1t.root, 'uui-vertical-tab-button'];
|
|
724
750
|
}
|
|
725
751
|
const VerticalTabButton = /* @__PURE__ */uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
726
752
|
|
|
@@ -739,13 +765,13 @@ var SvgContentMinusOutline = function SvgContentMinusOutline(props, ref) {
|
|
|
739
765
|
};
|
|
740
766
|
var ForwardRef$C = /*#__PURE__*/React.forwardRef(SvgContentMinusOutline);
|
|
741
767
|
|
|
742
|
-
var css$
|
|
768
|
+
var css$1s = {"uui-typography":"DQccUr","uuiTypography":"DQccUr","hero-header":"RaijP6","heroHeader":"RaijP6","promo-header":"k5HNPf","promoHeader":"k5HNPf","uui-critical":"aPpsYc","uuiCritical":"aPpsYc","uui-info":"o4QdoJ","uuiInfo":"o4QdoJ","uui-success":"W1PW0O","uuiSuccess":"W1PW0O","uui-warning":"D28vgU","uuiWarning":"D28vgU","uui-highlight":"_0rN1KB","uuiHighlight":"_0rN1KB","uui-typography-size-12":"MZhFDG","uuiTypographySize12":"MZhFDG","uui-typography-size-14":"rqpsQD","uuiTypographySize14":"rqpsQD","uui-typography-size-16":"bamILv","uuiTypographySize16":"bamILv","root":"TCKCkl","mode-cell":"At8Put","modeCell":"At8Put"};
|
|
743
769
|
|
|
744
770
|
function applyCheckboxMods(mods) {
|
|
745
771
|
return [
|
|
746
|
-
css$
|
|
772
|
+
css$1s.root,
|
|
747
773
|
`uui-size-${mods.size || settings.sizes.defaults.checkbox}`,
|
|
748
|
-
css$
|
|
774
|
+
css$1s['mode-' + (mods.mode || 'form')],
|
|
749
775
|
'uui-color-primary',
|
|
750
776
|
];
|
|
751
777
|
}
|
|
@@ -774,11 +800,11 @@ var SvgRadioDotFill = function SvgRadioDotFill(props, ref) {
|
|
|
774
800
|
};
|
|
775
801
|
var ForwardRef$B = /*#__PURE__*/React.forwardRef(SvgRadioDotFill);
|
|
776
802
|
|
|
777
|
-
var css$
|
|
803
|
+
var css$1r = {"uui-typography":"jaY3XZ","uuiTypography":"jaY3XZ","hero-header":"_9Kwgun","heroHeader":"_9Kwgun","promo-header":"rvZs5u","promoHeader":"rvZs5u","uui-critical":"bltBkV","uuiCritical":"bltBkV","uui-info":"OwELnv","uuiInfo":"OwELnv","uui-success":"O9FV6K","uuiSuccess":"O9FV6K","uui-warning":"b2oBd2","uuiWarning":"b2oBd2","uui-highlight":"Vax1-G","uuiHighlight":"Vax1-G","uui-typography-size-12":"Tek2ef","uuiTypographySize12":"Tek2ef","uui-typography-size-14":"diyJoi","uuiTypographySize14":"diyJoi","uui-typography-size-16":"OyMRoH","uuiTypographySize16":"OyMRoH","root":"HJAVSZ"};
|
|
778
804
|
|
|
779
805
|
function applyRadioInputMods(mods) {
|
|
780
806
|
return [
|
|
781
|
-
css$
|
|
807
|
+
css$1r.root,
|
|
782
808
|
`uui-size-${mods.size || settings.sizes.defaults.radioInput}`,
|
|
783
809
|
'uui-radio-input-container',
|
|
784
810
|
'uui-color-primary',
|
|
@@ -786,11 +812,11 @@ function applyRadioInputMods(mods) {
|
|
|
786
812
|
}
|
|
787
813
|
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$B }));
|
|
788
814
|
|
|
789
|
-
var css$
|
|
815
|
+
var css$1q = {"root":"u4SGkZ"};
|
|
790
816
|
|
|
791
817
|
function applySwitchMods(mods) {
|
|
792
818
|
return [
|
|
793
|
-
css$
|
|
819
|
+
css$1q.root,
|
|
794
820
|
`uui-size-${mods.size || settings.sizes.defaults.switch}`,
|
|
795
821
|
'uui-color-primary',
|
|
796
822
|
];
|
|
@@ -854,7 +880,7 @@ var EditMode;
|
|
|
854
880
|
EditMode["INLINE"] = "inline";
|
|
855
881
|
})(EditMode || (EditMode = {}));
|
|
856
882
|
|
|
857
|
-
var textInputCss = {"uui-typography":"
|
|
883
|
+
var textInputCss = {"uui-typography":"c1E6zM","uuiTypography":"c1E6zM","hero-header":"hryxst","heroHeader":"hryxst","promo-header":"IC8KRR","promoHeader":"IC8KRR","uui-critical":"UDb7rn","uuiCritical":"UDb7rn","uui-info":"rq22sm","uuiInfo":"rq22sm","uui-success":"ao5xXI","uuiSuccess":"ao5xXI","uui-warning":"_3iKnTZ","uuiWarning":"_3iKnTZ","uui-highlight":"Fn1QyD","uuiHighlight":"Fn1QyD","uui-typography-size-12":"yzFKxg","uuiTypographySize12":"yzFKxg","uui-typography-size-14":"pd45en","uuiTypographySize14":"pd45en","uui-typography-size-16":"pNnxNO","uuiTypographySize16":"pNnxNO","root":"FKapts","mode-form":"_9Y6NIQ","modeForm":"_9Y6NIQ","mode-inline":"GdnWiN","modeInline":"GdnWiN","mode-cell":"t-x6Yj","modeCell":"t-x6Yj"};
|
|
858
884
|
|
|
859
885
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
860
886
|
function applyTextInputMods(mods) {
|
|
@@ -880,22 +906,22 @@ const SearchInput = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
880
906
|
} })));
|
|
881
907
|
});
|
|
882
908
|
|
|
883
|
-
var css$
|
|
909
|
+
var css$1p = {"root":"-UksMn"};
|
|
884
910
|
|
|
885
|
-
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
911
|
+
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1p.root, 'uui-control-group']);
|
|
886
912
|
|
|
887
913
|
function MultiSwitchComponent(props, ref) {
|
|
888
914
|
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' } }))))));
|
|
889
915
|
}
|
|
890
916
|
const MultiSwitch = /* @__PURE__ */React__namespace.forwardRef(MultiSwitchComponent);
|
|
891
917
|
|
|
892
|
-
var css$
|
|
918
|
+
var css$1o = {"uui-typography":"cvC9E5","uuiTypography":"cvC9E5","hero-header":"k3ZLbr","heroHeader":"k3ZLbr","promo-header":"ycXdbc","promoHeader":"ycXdbc","uui-critical":"YqdIaI","uuiCritical":"YqdIaI","uui-info":"PcBxz9","uuiInfo":"PcBxz9","uui-success":"_5NmxaM","uuiSuccess":"_5NmxaM","uui-warning":"oYGjH4","uuiWarning":"oYGjH4","uui-highlight":"uh8a19","uuiHighlight":"uh8a19","uui-typography-size-12":"ZYqiJQ","uuiTypographySize12":"ZYqiJQ","uui-typography-size-14":"aKxUwy","uuiTypographySize14":"aKxUwy","uui-typography-size-16":"_6nhtKA","uuiTypographySize16":"_6nhtKA","root":"E-N6Jj","mode-form":"G-9ONx","modeForm":"G-9ONx","mode-cell":"dQ0Oar","modeCell":"dQ0Oar"};
|
|
893
919
|
|
|
894
920
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
895
921
|
function applyNumericInputMods(mods) {
|
|
896
922
|
return [
|
|
897
923
|
textInputCss.root,
|
|
898
|
-
css$
|
|
924
|
+
css$1o.root,
|
|
899
925
|
`uui-size-${mods.size || settings.sizes.defaults.numericInput}`,
|
|
900
926
|
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$2)],
|
|
901
927
|
];
|
|
@@ -910,15 +936,15 @@ const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput,
|
|
|
910
936
|
};
|
|
911
937
|
});
|
|
912
938
|
|
|
913
|
-
var css$
|
|
939
|
+
var css$1n = {"uui-typography":"_3bZDf8","uuiTypography":"_3bZDf8","hero-header":"toYAZI","heroHeader":"toYAZI","promo-header":"_0QVlvP","promoHeader":"_0QVlvP","uui-critical":"P5Z9dZ","uuiCritical":"P5Z9dZ","uui-info":"Ynfqq5","uuiInfo":"Ynfqq5","uui-success":"xJVEc6","uuiSuccess":"xJVEc6","uui-warning":"_5Ueeqf","uuiWarning":"_5Ueeqf","uui-highlight":"_9SzP3h","uuiHighlight":"_9SzP3h","uui-typography-size-12":"_1M8yZT","uuiTypographySize12":"_1M8yZT","uui-typography-size-14":"Jqt1bT","uuiTypographySize14":"Jqt1bT","uui-typography-size-16":"_7nrAMW","uuiTypographySize16":"_7nrAMW","root":"pIstVs","mode-form":"VfOL2n","modeForm":"VfOL2n","mode-cell":"zOlTEy","modeCell":"zOlTEy","mode-inline":"eGqF8M","modeInline":"eGqF8M"};
|
|
914
940
|
|
|
915
941
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
916
942
|
function applyTextAreaMods(mods) {
|
|
917
943
|
return [
|
|
918
|
-
css$
|
|
944
|
+
css$1n.root,
|
|
919
945
|
'uui-textarea',
|
|
920
946
|
'uui-size-' + (mods.size || settings.sizes.defaults.textArea),
|
|
921
|
-
css$
|
|
947
|
+
css$1n['mode-' + (mods.mode || DEFAULT_MODE$1)],
|
|
922
948
|
];
|
|
923
949
|
}
|
|
924
950
|
const TextArea = /* @__PURE__ */uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (props) => {
|
|
@@ -1011,16 +1037,17 @@ var SvgNotificationInfoFill = function SvgNotificationInfoFill(props, ref) {
|
|
|
1011
1037
|
};
|
|
1012
1038
|
var ForwardRef$x = /*#__PURE__*/React.forwardRef(SvgNotificationInfoFill);
|
|
1013
1039
|
|
|
1014
|
-
var css$
|
|
1040
|
+
var css$1m = {"uui-typography":"HWTwsP","uuiTypography":"HWTwsP","hero-header":"S87K1Y","heroHeader":"S87K1Y","promo-header":"ErTD0d","promoHeader":"ErTD0d","uui-critical":"eBB-E-","uuiCritical":"eBB-E-","uui-info":"g39ReE","uuiInfo":"g39ReE","uui-success":"AWAkqJ","uuiSuccess":"AWAkqJ","uui-warning":"_8U9E0Q","uuiWarning":"_8U9E0Q","uui-highlight":"TT9fWI","uuiHighlight":"TT9fWI","uui-typography-size-12":"e-RLsF","uuiTypographySize12":"e-RLsF","uui-typography-size-14":"podbdR","uuiTypographySize14":"podbdR","uui-typography-size-16":"SJ1LYW","uuiTypographySize16":"SJ1LYW","root":"Y3EN-t","main-path":"KrkNm3","mainPath":"KrkNm3","content-wrapper":"VzQa9h","contentWrapper":"VzQa9h","content":"_8IwZ1i","action-wrapper":"G9TGRp","actionWrapper":"G9TGRp","icon-wrapper":"_0-Yx1E","iconWrapper":"_0-Yx1E","icon":"MSH2tZ","close-icon":"OZB7T4","closeIcon":"OZB7T4"};
|
|
1015
1041
|
|
|
1016
|
-
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$
|
|
1017
|
-
React__namespace.createElement("div", { className: css$
|
|
1018
|
-
|
|
1019
|
-
React__namespace.createElement(
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1042
|
+
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$1m.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.sizes.defaults.alert}`) }, props.rawProps),
|
|
1043
|
+
React__namespace.createElement("div", { className: css$1m.mainPath },
|
|
1044
|
+
React__namespace.createElement("div", { className: css$1m.contentWrapper },
|
|
1045
|
+
props.icon && (React__namespace.createElement("div", { className: css$1m.iconWrapper },
|
|
1046
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$1m.icon }))),
|
|
1047
|
+
React__namespace.createElement("div", { className: css$1m.content },
|
|
1048
|
+
props.children,
|
|
1049
|
+
props.actions && (React__namespace.createElement("div", { className: css$1m.actionWrapper }, props.actions.map((action) => (React__namespace.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$1m.actionLink, size: settings.sizes.alert.action[props.size || settings.sizes.defaults.alert] }))))))),
|
|
1050
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$1m.closeIcon })))));
|
|
1024
1051
|
const WarningAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$z, color: "warning", ref: ref }, props)));
|
|
1025
1052
|
const SuccessAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$A, color: "success", ref: ref }, props)));
|
|
1026
1053
|
const HintAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$x, color: "info", ref: ref }, props)));
|
|
@@ -1028,18 +1055,18 @@ const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => Re
|
|
|
1028
1055
|
|
|
1029
1056
|
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
1030
1057
|
|
|
1031
|
-
var css$
|
|
1058
|
+
var css$1l = {"root":"yr1ZfS"};
|
|
1032
1059
|
|
|
1033
1060
|
function applyDropdownContainerMods(mods) {
|
|
1034
1061
|
return [
|
|
1035
|
-
css$
|
|
1062
|
+
css$1l.root,
|
|
1036
1063
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1037
1064
|
mods.padding && `padding-${mods.padding}`,
|
|
1038
1065
|
];
|
|
1039
1066
|
}
|
|
1040
1067
|
const DropdownContainer = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1041
1068
|
|
|
1042
|
-
var css$
|
|
1069
|
+
var css$1k = {"uui-typography":"yL2G1R","uuiTypography":"yL2G1R","hero-header":"u6E83x","heroHeader":"u6E83x","promo-header":"HfIb3N","promoHeader":"HfIb3N","uui-critical":"vjBgWl","uuiCritical":"vjBgWl","uui-info":"TS1FcQ","uuiInfo":"TS1FcQ","uui-success":"_0uQ673","uuiSuccess":"_0uQ673","uui-warning":"NwXTV7","uuiWarning":"NwXTV7","uui-highlight":"vruTWu","uuiHighlight":"vruTWu","uui-typography-size-12":"_4WLGbC","uuiTypographySize12":"_4WLGbC","uui-typography-size-14":"JthH6C","uuiTypographySize14":"JthH6C","uui-typography-size-16":"f9fRfa","uuiTypographySize16":"f9fRfa","submenu-root-item-rtl":"InbstL","submenuRootItemRtl":"InbstL","icon-after":"zpJd6q","iconAfter":"zpJd6q","submenu-root-item":"PPjiSU","submenuRootItem":"PPjiSU","icon-check":"D-Fz29","iconCheck":"D-Fz29","splitter-root":"nhVyFF","splitterRoot":"nhVyFF","splitter":"SP9TgY","header-root":"zC68mG","headerRoot":"zC68mG","item-root":"NgaKno","itemRoot":"NgaKno","icon":"LQbwtZ","link":"INu1xn","indent":"NHB9YG","selected-mark":"VnBFIM","selectedMark":"VnBFIM"};
|
|
1043
1070
|
|
|
1044
1071
|
exports.IDropdownControlKeys = void 0;
|
|
1045
1072
|
(function (IDropdownControlKeys) {
|
|
@@ -1100,17 +1127,17 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
1100
1127
|
const getMenuButtonContent = () => {
|
|
1101
1128
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1102
1129
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1103
|
-
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$
|
|
1130
|
+
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$1k.icon, iconPosition === 'right' ? css$1k.iconAfter : css$1k.iconBefore) }));
|
|
1104
1131
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1105
1132
|
isIconBefore && iconElement,
|
|
1106
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$
|
|
1133
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$1k.indent }, caption),
|
|
1107
1134
|
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1108
1135
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1109
1136
|
iconElement))));
|
|
1110
1137
|
};
|
|
1111
1138
|
const isAnchor = Boolean(link || href);
|
|
1112
|
-
const itemClassNames = uuiCore.cx(props.cx, css$
|
|
1113
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$
|
|
1139
|
+
const itemClassNames = uuiCore.cx(props.cx, css$1k.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened);
|
|
1140
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$1k.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: {
|
|
1114
1141
|
tabIndex: isDisabled ? -1 : 0,
|
|
1115
1142
|
role: 'menuitem',
|
|
1116
1143
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
@@ -1118,15 +1145,15 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
1118
1145
|
getMenuButtonContent(),
|
|
1119
1146
|
isSelected && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1120
1147
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1121
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: systemIcons.accept, cx: css$
|
|
1148
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: systemIcons.accept, cx: css$1k.selectedMark })))));
|
|
1122
1149
|
});
|
|
1123
1150
|
function DropdownMenuSplitter(props) {
|
|
1124
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
1125
|
-
React__namespace.default.createElement("hr", { className: css$
|
|
1151
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$1k.splitterRoot) },
|
|
1152
|
+
React__namespace.default.createElement("hr", { className: css$1k.splitter })));
|
|
1126
1153
|
}
|
|
1127
1154
|
function DropdownMenuHeader(props) {
|
|
1128
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$
|
|
1129
|
-
React__namespace.default.createElement("span", { className: css$
|
|
1155
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$1k.headerRoot) },
|
|
1156
|
+
React__namespace.default.createElement("span", { className: css$1k.header }, props.caption)));
|
|
1130
1157
|
}
|
|
1131
1158
|
function DropdownSubMenu(props) {
|
|
1132
1159
|
const subMenuModifiers = [
|
|
@@ -1148,7 +1175,7 @@ function DropdownSubMenu(props) {
|
|
|
1148
1175
|
const isRtl = (window === null || window === void 0 ? void 0 : window.document.dir) === 'rtl';
|
|
1149
1176
|
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) => {
|
|
1150
1177
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
1151
|
-
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(isRtl ? css$
|
|
1178
|
+
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(isRtl ? css$1k.submenuRootItemRtl : css$1k.submenuRootItem), icon: systemIcons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
1152
1179
|
} }));
|
|
1153
1180
|
}
|
|
1154
1181
|
function DropdownMenuSwitchButton(props) {
|
|
@@ -1165,29 +1192,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1165
1192
|
onHandleValueChange(!isSelected);
|
|
1166
1193
|
}
|
|
1167
1194
|
};
|
|
1168
|
-
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$
|
|
1169
|
-
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$
|
|
1195
|
+
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$1k.itemRoot, isDisabled && uuiCore.uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
1196
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$1k.iconBefore }),
|
|
1170
1197
|
React__namespace.default.createElement(uuiComponents.Text, null, caption),
|
|
1171
1198
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1172
1199
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1173
1200
|
}
|
|
1174
1201
|
|
|
1175
|
-
var css$
|
|
1202
|
+
var css$1j = {"uui-typography":"tJ5ReB","uuiTypography":"tJ5ReB","hero-header":"Bz6h48","heroHeader":"Bz6h48","promo-header":"ev6NBH","promoHeader":"ev6NBH","uui-critical":"ElhTl-","uuiCritical":"ElhTl-","uui-info":"MoLvxB","uuiInfo":"MoLvxB","uui-success":"hE4Pv6","uuiSuccess":"hE4Pv6","uui-warning":"_4Z9UK7","uuiWarning":"_4Z9UK7","uui-highlight":"aO1euL","uuiHighlight":"aO1euL","uui-typography-size-12":"MI4bZN","uuiTypographySize12":"MI4bZN","uui-typography-size-14":"_5ivDdV","uuiTypographySize14":"_5ivDdV","uui-typography-size-16":"xoPY6N","uuiTypographySize16":"xoPY6N","root":"_1s9MKj","mode-block":"xgwaE6","modeBlock":"xgwaE6","mode-inline":"va2-Vj","modeInline":"va2-Vj","padding-0":"L-lKt-","padding0":"L-lKt-","padding-6":"gfTITF","padding6":"gfTITF","padding-12":"MIJ0Lq","padding12":"MIJ0Lq","padding-18":"veSZWb","padding18":"veSZWb"};
|
|
1176
1203
|
|
|
1177
1204
|
function applyAccordionMods(mods) {
|
|
1178
1205
|
return [
|
|
1179
|
-
css$
|
|
1180
|
-
css$
|
|
1181
|
-
mods.padding && css$
|
|
1206
|
+
css$1j.root,
|
|
1207
|
+
css$1j[`mode-${mods.mode || 'block'}`],
|
|
1208
|
+
mods.padding && css$1j['padding-' + mods.padding],
|
|
1182
1209
|
];
|
|
1183
1210
|
}
|
|
1184
1211
|
const Accordion = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Accordion, applyAccordionMods, (mods) => ({
|
|
1185
1212
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons.foldingArrow,
|
|
1186
1213
|
}));
|
|
1187
1214
|
|
|
1188
|
-
var css$
|
|
1215
|
+
var css$1i = {"uui-typography":"_3w-ph0","uuiTypography":"_3w-ph0","hero-header":"lmiIWE","heroHeader":"lmiIWE","promo-header":"wQ59M5","promoHeader":"wQ59M5","uui-critical":"_3VClnA","uuiCritical":"_3VClnA","uui-info":"tIeb4B","uuiInfo":"tIeb4B","uui-success":"z4K-ul","uuiSuccess":"z4K-ul","uui-warning":"rNHjIp","uuiWarning":"rNHjIp","uui-highlight":"rhrDM-","uuiHighlight":"rhrDM-","uui-typography-size-12":"ACYjEC","uuiTypographySize12":"ACYjEC","uui-typography-size-14":"tGgHwK","uuiTypographySize14":"tGgHwK","uui-typography-size-16":"PiT3pq","uuiTypographySize16":"PiT3pq","root":"FJHiiy","border-top":"_5N6Pf-","borderTop":"_5N6Pf-","border-bottom":"_---kjD","borderBottom":"_---kjD","top-shadow":"Mf2Olm","topShadow":"Mf2Olm","padding-6":"_8ridhK","padding6":"_8ridhK","padding-12":"OMVlcX","padding12":"OMVlcX","padding-18":"dREilp","padding18":"dREilp","padding-24":"xRRPmF","padding24":"xRRPmF","margin-24":"J-sIuf","margin24":"J-sIuf","margin-12":"JkVzSh","margin12":"JkVzSh","vPadding-12":"_7d9NIq","vPadding12":"_7d9NIq","vPadding-18":"XCjJtb","vPadding18":"XCjJtb","vPadding-24":"_5Oop5C","vPadding24":"_5Oop5C","vPadding-36":"QoUP1d","vPadding36":"QoUP1d","vPadding-48":"wmZ-62","vPadding48":"wmZ-62","spacing-6":"VxKML8","spacing6":"VxKML8","spacing-12":"LTB9xp","spacing12":"LTB9xp","spacing-18":"elVpOT","spacing18":"elVpOT","uui-surface-main":"KY-d-j","uuiSurfaceMain":"KY-d-j"};
|
|
1189
1216
|
|
|
1190
|
-
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$
|
|
1217
|
+
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$1i.flexCell]);
|
|
1191
1218
|
|
|
1192
1219
|
const FlexRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexRow, (props) => {
|
|
1193
1220
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1196,45 +1223,45 @@ const FlexRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexRow, (props) =
|
|
|
1196
1223
|
}
|
|
1197
1224
|
}
|
|
1198
1225
|
return [
|
|
1199
|
-
css$
|
|
1226
|
+
css$1i.root,
|
|
1200
1227
|
props.size !== null && 'uui-size-' + (props.size || '36'),
|
|
1201
|
-
props.padding && css$
|
|
1202
|
-
props.vPadding && css$
|
|
1203
|
-
props.margin && css$
|
|
1204
|
-
props.topShadow && css$
|
|
1205
|
-
props.borderBottom && css$
|
|
1206
|
-
props.borderTop && css$
|
|
1207
|
-
props.spacing && css$
|
|
1208
|
-
props.background && css$
|
|
1228
|
+
props.padding && css$1i['padding-' + props.padding],
|
|
1229
|
+
props.vPadding && css$1i['vPadding-' + props.vPadding],
|
|
1230
|
+
props.margin && css$1i['margin-' + props.margin],
|
|
1231
|
+
props.topShadow && css$1i.topShadow,
|
|
1232
|
+
props.borderBottom && css$1i.borderBottom,
|
|
1233
|
+
props.borderTop && css$1i.borderTop,
|
|
1234
|
+
props.spacing && css$1i['spacing-' + props.spacing],
|
|
1235
|
+
props.background && css$1i[`uui-${props.background}`],
|
|
1209
1236
|
];
|
|
1210
1237
|
});
|
|
1211
1238
|
|
|
1212
|
-
var css$
|
|
1239
|
+
var css$1h = {"root":"KO863m","margin-24":"wrJRGk","margin24":"wrJRGk","padding-12":"opOilq","padding12":"opOilq","padding-24":"_5hukYs","padding24":"_5hukYs","shadow":"IQlNLa","uui-surface-main":"OIgcvF","uuiSurfaceMain":"OIgcvF"};
|
|
1213
1240
|
|
|
1214
1241
|
const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
1215
1242
|
'uui-panel',
|
|
1216
|
-
css$
|
|
1217
|
-
props.shadow && css$
|
|
1218
|
-
props.margin && css$
|
|
1219
|
-
props.background && css$
|
|
1243
|
+
css$1h.root,
|
|
1244
|
+
props.shadow && css$1h.shadow,
|
|
1245
|
+
props.margin && css$1h['margin-' + props.margin],
|
|
1246
|
+
props.background && css$1h[`uui-${props.background}`],
|
|
1220
1247
|
]);
|
|
1221
1248
|
|
|
1222
|
-
var css$
|
|
1249
|
+
var css$1g = {"root":"LZGau1"};
|
|
1223
1250
|
|
|
1224
1251
|
function applyTooltipMods(mods) {
|
|
1225
1252
|
return [
|
|
1226
|
-
css$
|
|
1253
|
+
css$1g.root,
|
|
1227
1254
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1228
1255
|
];
|
|
1229
1256
|
}
|
|
1230
1257
|
const Tooltip = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
1231
1258
|
|
|
1232
|
-
var css$
|
|
1259
|
+
var css$1f = {"uui-typography":"XQVPio","uuiTypography":"XQVPio","hero-header":"oDtmmx","heroHeader":"oDtmmx","promo-header":"syi7we","promoHeader":"syi7we","uui-critical":"kbbmCy","uuiCritical":"kbbmCy","uui-info":"_0jX8L0","uuiInfo":"_0jX8L0","uui-success":"Uu1l7r","uuiSuccess":"Uu1l7r","uui-warning":"-chxlD","uuiWarning":"-chxlD","uui-highlight":"AcNzql","uuiHighlight":"AcNzql","uui-typography-size-12":"mz5zlm","uuiTypographySize12":"mz5zlm","uui-typography-size-14":"cM3Fck","uuiTypographySize14":"cM3Fck","uui-typography-size-16":"JskUye","uuiTypographySize16":"JskUye","root":"uVFE2q"};
|
|
1233
1260
|
|
|
1234
1261
|
function applyLabeledInputMods(mods) {
|
|
1235
1262
|
return [
|
|
1236
1263
|
'uui-labeled-input',
|
|
1237
|
-
css$
|
|
1264
|
+
css$1f.root,
|
|
1238
1265
|
'uui-size-' + (mods.size || settings.sizes.defaults.labeledInput),
|
|
1239
1266
|
];
|
|
1240
1267
|
}
|
|
@@ -1243,7 +1270,7 @@ const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.La
|
|
|
1243
1270
|
infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$x : ForwardRef$M),
|
|
1244
1271
|
}));
|
|
1245
1272
|
|
|
1246
|
-
var css$
|
|
1273
|
+
var css$1e = {"root":"lVVYkK"};
|
|
1247
1274
|
|
|
1248
1275
|
function RadioGroup(props) {
|
|
1249
1276
|
const direction = props.direction || 'vertical';
|
|
@@ -1252,34 +1279,34 @@ function RadioGroup(props) {
|
|
|
1252
1279
|
props.onValueChange(newVal);
|
|
1253
1280
|
}
|
|
1254
1281
|
};
|
|
1255
|
-
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
1282
|
+
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$1e.root, uuiCore.directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur }, props.rawProps), props.items.map((i) => {
|
|
1256
1283
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1257
1284
|
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)));
|
|
1258
1285
|
})));
|
|
1259
1286
|
}
|
|
1260
1287
|
|
|
1261
|
-
var css$
|
|
1288
|
+
var css$1d = {"root":"BFVP-q"};
|
|
1262
1289
|
|
|
1263
1290
|
function applyScrollBarsMods() {
|
|
1264
1291
|
return [
|
|
1265
|
-
css$
|
|
1292
|
+
css$1d.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1266
1293
|
];
|
|
1267
1294
|
}
|
|
1268
1295
|
const ScrollBars = /* @__PURE__ */uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
1269
1296
|
|
|
1270
|
-
var css$
|
|
1297
|
+
var css$1c = {"scroll-container":"wm3FFF","scrollContainer":"wm3FFF","list-container":"FjyvHJ","listContainer":"FjyvHJ"};
|
|
1271
1298
|
|
|
1272
|
-
var css$
|
|
1299
|
+
var css$1b = {"root":"xTx-HH"};
|
|
1273
1300
|
|
|
1274
|
-
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$
|
|
1301
|
+
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$1b.root]);
|
|
1275
1302
|
|
|
1276
|
-
var css$
|
|
1303
|
+
var css$1a = {"uui-typography":"omeBJf","uuiTypography":"omeBJf","hero-header":"KrcSIz","heroHeader":"KrcSIz","promo-header":"PbtcFt","promoHeader":"PbtcFt","uui-critical":"-LTK8w","uuiCritical":"-LTK8w","uui-info":"IIqZ4d","uuiInfo":"IIqZ4d","uui-success":"yoUmrQ","uuiSuccess":"yoUmrQ","uui-warning":"bM8IZ6","uuiWarning":"bM8IZ6","uui-highlight":"g-kHDU","uuiHighlight":"g-kHDU","uui-typography-size-12":"XmceiP","uuiTypographySize12":"XmceiP","uui-typography-size-14":"L69Jqz","uuiTypographySize14":"L69Jqz","uui-typography-size-16":"SHIyC3","uuiTypographySize16":"SHIyC3","root":"_8GuXQY"};
|
|
1277
1304
|
|
|
1278
1305
|
const DEFAULT_FILL = 'solid';
|
|
1279
1306
|
function applyBadgeMods(mods) {
|
|
1280
1307
|
return [
|
|
1281
1308
|
'uui-badge',
|
|
1282
|
-
css$
|
|
1309
|
+
css$1a.root,
|
|
1283
1310
|
`uui-size-${mods.size || settings.sizes.defaults.badge}`,
|
|
1284
1311
|
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1285
1312
|
`uui-color-${mods.color || 'info'}`,
|
|
@@ -1297,11 +1324,11 @@ const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) =>
|
|
|
1297
1324
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1298
1325
|
});
|
|
1299
1326
|
|
|
1300
|
-
var css$
|
|
1327
|
+
var css$19 = {"uui-typography":"AQhy4v","uuiTypography":"AQhy4v","hero-header":"rTAA2t","heroHeader":"rTAA2t","promo-header":"MtVS6T","promoHeader":"MtVS6T","uui-critical":"lYfaM5","uuiCritical":"lYfaM5","uui-info":"jijbkU","uuiInfo":"jijbkU","uui-success":"yufIQ9","uuiSuccess":"yufIQ9","uui-warning":"nVvh4o","uuiWarning":"nVvh4o","uui-highlight":"soQhfQ","uuiHighlight":"soQhfQ","uui-typography-size-12":"f9JIO0","uuiTypographySize12":"f9JIO0","uui-typography-size-14":"_57lFU5","uuiTypographySize14":"_57lFU5","uui-typography-size-16":"_8UeN-o","uuiTypographySize16":"_8UeN-o","root":"pQTLk-"};
|
|
1301
1328
|
|
|
1302
1329
|
function applyTagMods(props) {
|
|
1303
1330
|
return [
|
|
1304
|
-
css$
|
|
1331
|
+
css$19.root,
|
|
1305
1332
|
`uui-size-${props.size || settings.sizes.defaults.tag}`,
|
|
1306
1333
|
`uui-color-${props.color || 'neutral'}`,
|
|
1307
1334
|
`uui-fill-${props.fill || 'solid'}`,
|
|
@@ -1321,10 +1348,10 @@ const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
|
1321
1348
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1322
1349
|
});
|
|
1323
1350
|
|
|
1324
|
-
var css$
|
|
1351
|
+
var css$18 = {"root":"_4VTEQq","uui-spinner":"TAaiFU","uuiSpinner":"TAaiFU"};
|
|
1325
1352
|
|
|
1326
1353
|
function applySpinnerMods() {
|
|
1327
|
-
return [css$
|
|
1354
|
+
return [css$18.root, 'uui-spinner'];
|
|
1328
1355
|
}
|
|
1329
1356
|
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
1330
1357
|
|
|
@@ -1358,57 +1385,57 @@ var SvgNavigationChevronRightOutline = function SvgNavigationChevronRightOutline
|
|
|
1358
1385
|
};
|
|
1359
1386
|
var ForwardRef$v = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRightOutline);
|
|
1360
1387
|
|
|
1361
|
-
var css$
|
|
1388
|
+
var css$17 = {"root":"taIwL-","page":"a0c9EI","spacer":"gYwB6k","mode-ghost":"_6gm-xU","modeGhost":"_6gm-xU"};
|
|
1362
1389
|
|
|
1363
1390
|
function Paginator(props) {
|
|
1364
|
-
const renderPaginator = (params) => (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: cx__default.default(css$
|
|
1391
|
+
const renderPaginator = (params) => (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: cx__default.default(css$17.root, 'uui-paginator', `uui-size-${props.size || settings.sizes.defaults.paginator}`) }, params.rawProps),
|
|
1365
1392
|
React__namespace.default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$w, onClick: params.goToPrev, isDisabled: params.isFirst || props.isDisabled, fill: "outline", color: "secondary" }),
|
|
1366
1393
|
params.pages.map((page, index) => {
|
|
1367
1394
|
if (page.type === 'spacer') {
|
|
1368
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
1395
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$17.spacer, css$17.page), size: props.size || settings.sizes.defaults.paginator, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
|
|
1369
1396
|
}
|
|
1370
1397
|
else {
|
|
1371
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
1398
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$17[`mode-${!page.isActive && 'ghost'}`], css$17.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 }));
|
|
1372
1399
|
}
|
|
1373
1400
|
}),
|
|
1374
1401
|
React__namespace.default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$v, onClick: params.goToNext, isDisabled: params.isLast || props.isDisabled, fill: "outline", color: "secondary" })));
|
|
1375
1402
|
return React__namespace.default.createElement(uuiComponents.Paginator, Object.assign({}, props, { render: renderPaginator }));
|
|
1376
1403
|
}
|
|
1377
1404
|
|
|
1378
|
-
var css$
|
|
1405
|
+
var css$16 = {"root":"Wq4Cfl","progress-bar":"udXVIQ","progressBar":"udXVIQ","progressBar-indeterminate":"e544hG","progressBarIndeterminate":"e544hG","size-12":"m3Kkps","size12":"m3Kkps","size-18":"x-k7IY","size18":"x-k7IY","size-24":"w-svs1","size24":"w-svs1"};
|
|
1379
1406
|
|
|
1380
1407
|
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1381
|
-
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$
|
|
1382
|
-
React__namespace.createElement("div", { className: cx__default.default(css$
|
|
1408
|
+
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$16.root, css$16[`size-${props.size || 12}`]) },
|
|
1409
|
+
React__namespace.createElement("div", { className: cx__default.default(css$16.progressBar) })));
|
|
1383
1410
|
});
|
|
1384
1411
|
|
|
1385
|
-
var css$
|
|
1412
|
+
var css$15 = {"root":"Y9OC-K","striped":"-qGV2t","animate-stripes":"vaRVOG","animateStripes":"vaRVOG","size-12":"Rz5XjK","size12":"Rz5XjK","size-18":"avR49C","size18":"avR49C","size-24":"m9L6f5","size24":"m9L6f5"};
|
|
1386
1413
|
|
|
1387
1414
|
const DEFAULT_SIZE = '12';
|
|
1388
1415
|
function applyProgressBarMods(mods) {
|
|
1389
1416
|
const size = mods.size || DEFAULT_SIZE;
|
|
1390
1417
|
return [
|
|
1391
|
-
css$
|
|
1392
|
-
css$
|
|
1393
|
-
mods.striped && css$
|
|
1418
|
+
css$15.root,
|
|
1419
|
+
css$15[`size-${size}`],
|
|
1420
|
+
mods.striped && css$15.striped,
|
|
1394
1421
|
];
|
|
1395
1422
|
}
|
|
1396
1423
|
const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1397
1424
|
hideLabel: props.hideLabel || props.striped,
|
|
1398
1425
|
}));
|
|
1399
1426
|
|
|
1400
|
-
var css$
|
|
1427
|
+
var css$14 = {"root":"TKJniY"};
|
|
1401
1428
|
|
|
1402
1429
|
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1403
1430
|
const { progress } = props;
|
|
1404
|
-
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$
|
|
1431
|
+
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$14.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$14.root, props.cx) }));
|
|
1405
1432
|
});
|
|
1406
1433
|
|
|
1407
|
-
var css$
|
|
1434
|
+
var css$13 = {"root":"QkSwyC"};
|
|
1408
1435
|
|
|
1409
1436
|
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1410
1437
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
1411
|
-
css$
|
|
1438
|
+
css$13.root,
|
|
1412
1439
|
`uui-size-${props.size || settings.sizes.defaults.statusIndicator}`,
|
|
1413
1440
|
'uui-status_indicator',
|
|
1414
1441
|
`uui-color-${props.color || 'neutral'}`,
|
|
@@ -1419,7 +1446,7 @@ const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1419
1446
|
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1420
1447
|
});
|
|
1421
1448
|
|
|
1422
|
-
var css$
|
|
1449
|
+
var css$12 = {"drag-handle":"DtPwOU","dragHandle":"DtPwOU","icon-container":"johVCs","iconContainer":"johVCs"};
|
|
1423
1450
|
|
|
1424
1451
|
function DataRowAddons(props) {
|
|
1425
1452
|
var _a, _b;
|
|
@@ -1431,19 +1458,19 @@ function DataRowAddons(props) {
|
|
|
1431
1458
|
return settings.sizes.rowAddons.indentWidth[props.size] || settings.sizes.rowAddons.defaults.indentWidth;
|
|
1432
1459
|
};
|
|
1433
1460
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1434
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$
|
|
1461
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$12.dragHandle, rawProps: Object.assign({}, props.eventHandlers) }),
|
|
1435
1462
|
((_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 })),
|
|
1436
1463
|
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: {
|
|
1437
1464
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1438
1465
|
role: 'button',
|
|
1439
1466
|
}, key: "icon", icon: ForwardRef$Q, cx: [
|
|
1440
|
-
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$
|
|
1467
|
+
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$12.iconContainer,
|
|
1441
1468
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.sizes.rowAddons.icon[props.size] || settings.sizes.rowAddons.defaults.icon }))))));
|
|
1442
1469
|
}
|
|
1443
1470
|
|
|
1444
|
-
var css$
|
|
1471
|
+
var css$11 = {"root":"KcDEuI"};
|
|
1445
1472
|
|
|
1446
|
-
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$
|
|
1473
|
+
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$11.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__namespace.default.createElement(Spinner, null)) }));
|
|
1447
1474
|
|
|
1448
1475
|
const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1449
1476
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
@@ -1459,7 +1486,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1459
1486
|
var _a;
|
|
1460
1487
|
return ((_a = props.renderRows) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
1461
1488
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1462
|
-
})) || (React__namespace.createElement("div", { className: css$
|
|
1489
|
+
})) || (React__namespace.createElement("div", { className: css$1c.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1463
1490
|
React__namespace.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1464
1491
|
};
|
|
1465
1492
|
const renderView = ({ style }) => (React__namespace.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
@@ -1469,7 +1496,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1469
1496
|
return;
|
|
1470
1497
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1471
1498
|
}, []);
|
|
1472
|
-
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$
|
|
1499
|
+
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$1c.scrollContainer, props.cx, {
|
|
1473
1500
|
[uuiCore.uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1474
1501
|
[uuiCore.uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1475
1502
|
[uuiCore.uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -1482,7 +1509,7 @@ const VirtualListView = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
1482
1509
|
React__namespace.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
1483
1510
|
});
|
|
1484
1511
|
|
|
1485
|
-
var css
|
|
1512
|
+
var css$10 = {"root":"x9tPpn"};
|
|
1486
1513
|
|
|
1487
1514
|
function CheckboxGroup(props) {
|
|
1488
1515
|
const currentValue = props.value || [];
|
|
@@ -1498,16 +1525,16 @@ function CheckboxGroup(props) {
|
|
|
1498
1525
|
}
|
|
1499
1526
|
props.onValueChange(newSelection);
|
|
1500
1527
|
};
|
|
1501
|
-
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css
|
|
1528
|
+
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$10.root, uuiCore.directionMode[direction], props.cx) }, props.rawProps), props.items.map((i) => {
|
|
1502
1529
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1503
1530
|
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)));
|
|
1504
1531
|
})));
|
|
1505
1532
|
}
|
|
1506
1533
|
|
|
1507
|
-
var css
|
|
1534
|
+
var css$$ = {"uui-typography":"UaIBUQ","uuiTypography":"UaIBUQ","hero-header":"sRZEB-","heroHeader":"sRZEB-","promo-header":"_1qaTh4","promoHeader":"_1qaTh4","uui-critical":"ritavP","uuiCritical":"ritavP","uui-info":"l4a7h7","uuiInfo":"l4a7h7","uui-success":"visifc","uuiSuccess":"visifc","uui-warning":"z-p6-W","uuiWarning":"z-p6-W","uui-highlight":"BHcj6q","uuiHighlight":"BHcj6q","uui-typography-size-12":"_-72Rmn","uuiTypographySize12":"_-72Rmn","uui-typography-size-14":"_5O-JG6","uuiTypographySize14":"_5O-JG6","uui-typography-size-16":"bro--i","uuiTypographySize16":"bro--i","root":"-kSY4W","modal-blocker":"_99CSq4","modalBlocker":"_99CSq4","animateModalBlocker":"kOiL-t","modal":"LrQl-R","modal-footer":"qOnsCD","modalFooter":"qOnsCD","modal-header":"uGoT73","modalHeader":"uGoT73"};
|
|
1508
1535
|
|
|
1509
|
-
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css
|
|
1510
|
-
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css
|
|
1536
|
+
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$$.modalBlocker]);
|
|
1537
|
+
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$$.root, css$$.modal], (props) => {
|
|
1511
1538
|
const width = props.width || settings.sizes.modal.window.defaults.width;
|
|
1512
1539
|
const height = props.height || 'auto';
|
|
1513
1540
|
const maxHeight = uuiCore.isMobile() ? '100dvh' : (props.maxHeight || '80dvh');
|
|
@@ -1519,7 +1546,7 @@ const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, (
|
|
|
1519
1546
|
});
|
|
1520
1547
|
class ModalHeader extends React__namespace.default.Component {
|
|
1521
1548
|
render() {
|
|
1522
|
-
return (React__namespace.default.createElement(FlexRow, { padding: this.props.padding || '24', size: null, vPadding: "36", borderBottom: this.props.borderBottom, cx: [css
|
|
1549
|
+
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 },
|
|
1523
1550
|
this.props.title && (React__namespace.default.createElement("div", { className: cx__default.default('uui-modal-title', 'uui-typography') }, this.props.title)),
|
|
1524
1551
|
this.props.children,
|
|
1525
1552
|
this.props.onClose && React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
@@ -1530,8 +1557,8 @@ class ModalHeader extends React__namespace.default.Component {
|
|
|
1530
1557
|
class ModalFooter extends React__namespace.default.Component {
|
|
1531
1558
|
render() {
|
|
1532
1559
|
return (React__namespace.default.createElement(FlexRow, { columnGap: this.props.columnGap || '12', cx: [
|
|
1533
|
-
css
|
|
1534
|
-
css
|
|
1560
|
+
css$$.root,
|
|
1561
|
+
css$$.modalFooter,
|
|
1535
1562
|
this.props.cx,
|
|
1536
1563
|
], borderTop: this.props.borderTop, padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
1537
1564
|
}
|
|
@@ -1675,6 +1702,7 @@ const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, uuiCore.i18n)
|
|
|
1675
1702
|
subtitle: 'We are trying to recover. Please wait.',
|
|
1676
1703
|
},
|
|
1677
1704
|
},
|
|
1705
|
+
supportLink: undefined,
|
|
1678
1706
|
} }));
|
|
1679
1707
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
1680
1708
|
|
|
@@ -1693,7 +1721,7 @@ var SvgNotificationHelpFill = function SvgNotificationHelpFill(props, ref) {
|
|
|
1693
1721
|
};
|
|
1694
1722
|
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgNotificationHelpFill);
|
|
1695
1723
|
|
|
1696
|
-
var css$
|
|
1724
|
+
var css$_ = {"uui-typography":"A5tu7D","uuiTypography":"A5tu7D","hero-header":"L81i-W","heroHeader":"L81i-W","promo-header":"-lcIHf","promoHeader":"-lcIHf","uui-critical":"xDPYKS","uuiCritical":"xDPYKS","uui-info":"u0qM5m","uuiInfo":"u0qM5m","uui-success":"_9Wrvtc","uuiSuccess":"_9Wrvtc","uui-warning":"OJqCa5","uuiWarning":"OJqCa5","uui-highlight":"QnwZPs","uuiHighlight":"QnwZPs","uui-typography-size-12":"JOesrW","uuiTypographySize12":"JOesrW","uui-typography-size-14":"k-c5Tm","uuiTypographySize14":"k-c5Tm","uui-typography-size-16":"jPYlP-","uuiTypographySize16":"jPYlP-","root":"D7WfYa","icon-wrapper":"ZZuDTA","iconWrapper":"ZZuDTA","action-wrapper":"_2d1DXy","actionWrapper":"_2d1DXy","action-link":"YUzqpB","actionLink":"YUzqpB","close-icon":"qPgvcV","closeIcon":"qPgvcV","main-path":"DuLD-F","mainPath":"DuLD-F","content":"_7jLtE6","close-wrapper":"J6L7LQ","closeWrapper":"J6L7LQ","notification-wrapper":"aMcumV","notificationWrapper":"aMcumV","clear-button":"ghlGxR","clearButton":"ghlGxR"};
|
|
1697
1725
|
|
|
1698
1726
|
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1699
1727
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -1708,15 +1736,15 @@ const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
1708
1736
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
1709
1737
|
};
|
|
1710
1738
|
}, []);
|
|
1711
|
-
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
1712
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1713
|
-
props.icon && (React__namespace.default.createElement("div", { className: css$
|
|
1739
|
+
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$_.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
1740
|
+
React__namespace.default.createElement("div", { className: css$_.mainPath },
|
|
1741
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$_.iconWrapper },
|
|
1714
1742
|
React__namespace.default.createElement(uuiComponents.IconContainer, { size: 24, icon: props.icon }))),
|
|
1715
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1743
|
+
React__namespace.default.createElement("div", { className: css$_.content },
|
|
1716
1744
|
props.children,
|
|
1717
|
-
props.actions && (React__namespace.default.createElement("div", { className: css$
|
|
1718
|
-
props.onClose && (React__namespace.default.createElement("div", { className: css$
|
|
1719
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$
|
|
1745
|
+
props.actions && (React__namespace.default.createElement("div", { className: css$_.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$_.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
1746
|
+
props.onClose && (React__namespace.default.createElement("div", { className: css$_.closeWrapper },
|
|
1747
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$_.closeIcon }))))));
|
|
1720
1748
|
});
|
|
1721
1749
|
const WarningNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$z, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
1722
1750
|
const SuccessNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$A, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
@@ -1724,11 +1752,11 @@ const HintNotification = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
1724
1752
|
const ErrorNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$y, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
1725
1753
|
function ClearNotification() {
|
|
1726
1754
|
const uuiCtx = uuiCore.useUuiContext();
|
|
1727
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
1755
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$_.notificationWrapper, css$_.clearButton) },
|
|
1728
1756
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
1729
1757
|
}
|
|
1730
1758
|
|
|
1731
|
-
var css$
|
|
1759
|
+
var css$Z = {"footer":"v5gs-u"};
|
|
1732
1760
|
|
|
1733
1761
|
class ConfirmationModal extends React__namespace.Component {
|
|
1734
1762
|
render() {
|
|
@@ -1740,7 +1768,7 @@ class ConfirmationModal extends React__namespace.Component {
|
|
|
1740
1768
|
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
1741
1769
|
React__namespace.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
1742
1770
|
React__namespace.createElement(ScrollBars, null, bodyContent),
|
|
1743
|
-
React__namespace.createElement(ModalFooter, { cx: css$
|
|
1771
|
+
React__namespace.createElement(ModalFooter, { cx: css$Z.footer },
|
|
1744
1772
|
this.props.hideCancelButton || (React__namespace.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
1745
1773
|
React__namespace.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
1746
1774
|
}
|
|
@@ -1770,7 +1798,7 @@ function useReliableForceUpdate() {
|
|
|
1770
1798
|
return red[1];
|
|
1771
1799
|
}
|
|
1772
1800
|
|
|
1773
|
-
var css$
|
|
1801
|
+
var css$Y = {"root":"MZSjfy","timepicker-input":"Ywx66E","timepickerInput":"Ywx66E","ltr-always":"C697kO","ltrAlways":"C697kO"};
|
|
1774
1802
|
|
|
1775
1803
|
const uuiTimePicker = {
|
|
1776
1804
|
container: 'uui-timepicker-container',
|
|
@@ -1809,8 +1837,8 @@ function TimePickerBody(props) {
|
|
|
1809
1837
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
1810
1838
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
1811
1839
|
};
|
|
1812
|
-
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$
|
|
1813
|
-
React__namespace.createElement("div", { className: css$
|
|
1840
|
+
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$Y.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef }, props.rawProps),
|
|
1841
|
+
React__namespace.createElement("div", { className: css$Y.ltrAlways },
|
|
1814
1842
|
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1815
1843
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
1816
1844
|
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -1952,7 +1980,7 @@ function TimePicker(props) {
|
|
|
1952
1980
|
};
|
|
1953
1981
|
const renderInput = (inputProps) => {
|
|
1954
1982
|
var _a;
|
|
1955
|
-
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$
|
|
1983
|
+
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$Y.root, css$Y.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 })));
|
|
1956
1984
|
};
|
|
1957
1985
|
const renderBody = (bodyProps) => {
|
|
1958
1986
|
var _a;
|
|
@@ -1963,19 +1991,19 @@ function TimePicker(props) {
|
|
|
1963
1991
|
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 }));
|
|
1964
1992
|
}
|
|
1965
1993
|
|
|
1966
|
-
var css$
|
|
1994
|
+
var css$X = {"root":"g0x9XC"};
|
|
1967
1995
|
|
|
1968
1996
|
function applyInputAddonMods() {
|
|
1969
1997
|
return [
|
|
1970
|
-
css$
|
|
1998
|
+
css$X.root,
|
|
1971
1999
|
];
|
|
1972
2000
|
}
|
|
1973
2001
|
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
1974
2002
|
|
|
1975
|
-
var css$
|
|
2003
|
+
var css$W = {"root":"_5ewzvx"};
|
|
1976
2004
|
|
|
1977
2005
|
function applySliderMods() {
|
|
1978
|
-
return [css$
|
|
2006
|
+
return [css$W.root, 'uui-color-neutral'];
|
|
1979
2007
|
}
|
|
1980
2008
|
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
1981
2009
|
|
|
@@ -1995,11 +2023,11 @@ var SvgStarFilled = function SvgStarFilled(props, ref) {
|
|
|
1995
2023
|
};
|
|
1996
2024
|
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgStarFilled);
|
|
1997
2025
|
|
|
1998
|
-
var css$
|
|
2026
|
+
var css$V = {"root":"_5hi37a","tooltip":"GUohZm"};
|
|
1999
2027
|
|
|
2000
2028
|
function applyRatingMods(mods) {
|
|
2001
2029
|
return [
|
|
2002
|
-
css$
|
|
2030
|
+
css$V.root,
|
|
2003
2031
|
`uui-size-${mods.size || settings.sizes.defaults.rating}`,
|
|
2004
2032
|
];
|
|
2005
2033
|
}
|
|
@@ -2137,7 +2165,7 @@ const getNextYearsList = (currentDate) => {
|
|
|
2137
2165
|
return currentDate.add(16, 'year');
|
|
2138
2166
|
};
|
|
2139
2167
|
|
|
2140
|
-
var css$
|
|
2168
|
+
var css$U = {"root":"IKlpq1","container":"_4OuiG1"};
|
|
2141
2169
|
|
|
2142
2170
|
const uuiHeader = {
|
|
2143
2171
|
container: 'uui-datepicker-header-container',
|
|
@@ -2214,21 +2242,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2214
2242
|
}, [view, month]);
|
|
2215
2243
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2216
2244
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2217
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
2245
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$U.root, uuiHeader.container, cx__default.default) },
|
|
2218
2246
|
React__namespace.createElement("header", { className: uuiHeader.headerNav },
|
|
2219
2247
|
React__namespace.createElement(Button, { icon: navIconLeft || ForwardRef$w, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2220
2248
|
React__namespace.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2221
2249
|
React__namespace.createElement(Button, { icon: navIconRight || ForwardRef$v, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2222
2250
|
}
|
|
2223
2251
|
|
|
2224
|
-
var css$
|
|
2252
|
+
var css$T = {"uui-typography":"ukdbDq","uuiTypography":"ukdbDq","hero-header":"fofNhS","heroHeader":"fofNhS","promo-header":"_0TJIS4","promoHeader":"_0TJIS4","uui-critical":"vF2pMi","uuiCritical":"vF2pMi","uui-info":"QPuwnb","uuiInfo":"QPuwnb","uui-success":"OEMrlw","uuiSuccess":"OEMrlw","uui-warning":"HhTDIE","uuiWarning":"HhTDIE","uui-highlight":"n-GkuB","uuiHighlight":"n-GkuB","uui-typography-size-12":"L-L-OZ","uuiTypographySize12":"L-L-OZ","uui-typography-size-14":"_1Kl-D3","uuiTypographySize14":"_1Kl-D3","uui-typography-size-16":"IhyvaD","uuiTypographySize16":"IhyvaD","root":"hrQw-Q"};
|
|
2225
2253
|
|
|
2226
2254
|
function applyDateSelectionMods() {
|
|
2227
|
-
return [css$
|
|
2255
|
+
return [css$T.root, `uui-size-${settings.sizes.defaults.datePicker}`];
|
|
2228
2256
|
}
|
|
2229
2257
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
2230
2258
|
|
|
2231
|
-
var css$
|
|
2259
|
+
var css$S = {"uui-typography":"_0BWOnO","uuiTypography":"_0BWOnO","hero-header":"raqG7r","heroHeader":"raqG7r","promo-header":"tjN37K","promoHeader":"tjN37K","uui-critical":"D86bJe","uuiCritical":"D86bJe","uui-info":"_16yHJT","uuiInfo":"_16yHJT","uui-success":"_6aR253","uuiSuccess":"_6aR253","uui-warning":"_6PGLwV","uuiWarning":"_6PGLwV","uui-highlight":"uPDouR","uuiHighlight":"uPDouR","uui-typography-size-12":"CSZUAM","uuiTypographySize12":"CSZUAM","uui-typography-size-14":"_8EiyRK","uuiTypographySize14":"_8EiyRK","uui-typography-size-16":"H71U2a","uuiTypographySize16":"H71U2a","root":"_69hvHb"};
|
|
2232
2260
|
|
|
2233
2261
|
const uuiDatePickerBody = {
|
|
2234
2262
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2272,7 +2300,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2272
2300
|
}
|
|
2273
2301
|
};
|
|
2274
2302
|
return (React__namespace.default.createElement("div", Object.assign({ ref: ref, className: uuiCore.cx(uuiDatePickerBodyBase.container, `uui-size-${settings.sizes.defaults.datePicker}`, classes) }, rawProps),
|
|
2275
|
-
React__namespace.default.createElement("div", { className: uuiCore.cx(css$
|
|
2303
|
+
React__namespace.default.createElement("div", { className: uuiCore.cx(css$S.root, uuiDatePickerBody.wrapper) },
|
|
2276
2304
|
React__namespace.default.createElement(DatePickerHeader, { value: {
|
|
2277
2305
|
view,
|
|
2278
2306
|
month,
|
|
@@ -2359,7 +2387,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2359
2387
|
}
|
|
2360
2388
|
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
2361
2389
|
|
|
2362
|
-
var css$
|
|
2390
|
+
var css$R = {"uui-typography":"MEYtbQ","uuiTypography":"MEYtbQ","hero-header":"p8HJo6","heroHeader":"p8HJo6","promo-header":"FPA5EF","promoHeader":"FPA5EF","uui-critical":"yHSQYb","uuiCritical":"yHSQYb","uui-info":"rBUs7Q","uuiInfo":"rBUs7Q","uui-success":"TFP57v","uuiSuccess":"TFP57v","uui-warning":"FR19rr","uuiWarning":"FR19rr","uui-highlight":"_8XmFSS","uuiHighlight":"_8XmFSS","uui-typography-size-12":"wIXixZ","uuiTypographySize12":"wIXixZ","uui-typography-size-14":"jQzdBc","uuiTypographySize14":"jQzdBc","uui-typography-size-16":"p8Gijh","uuiTypographySize16":"p8Gijh","date-input":"_1UznQZ","dateInput":"_1UznQZ","root":"_1W8igF","separator":"F3aMlS","mode-form":"qclRuX","modeForm":"qclRuX","mode-cell":"TfkzQo","modeCell":"TfkzQo"};
|
|
2363
2391
|
|
|
2364
2392
|
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) => {
|
|
2365
2393
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2393,15 +2421,15 @@ const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isIn
|
|
|
2393
2421
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2394
2422
|
return (
|
|
2395
2423
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
2396
|
-
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.sizes.defaults.rangeDatePicker}`, 'uui-range-date-picker', classes, css$
|
|
2397
|
-
React__namespace.default.createElement(TextInput, { icon: systemIcons.calendar, cx: uuiCore.cx(css$
|
|
2398
|
-
React__namespace.default.createElement("div", { className: css$
|
|
2399
|
-
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$
|
|
2424
|
+
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 },
|
|
2425
|
+
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 }),
|
|
2426
|
+
React__namespace.default.createElement("div", { className: css$R.separator }),
|
|
2427
|
+
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 ? () => {
|
|
2400
2428
|
onValueChange(defaultRangeValue);
|
|
2401
2429
|
} : 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 })));
|
|
2402
2430
|
});
|
|
2403
2431
|
|
|
2404
|
-
var css$
|
|
2432
|
+
var css$Q = {"uui-typography":"UfqYIe","uuiTypography":"UfqYIe","hero-header":"srO50g","heroHeader":"srO50g","promo-header":"NO-IpH","promoHeader":"NO-IpH","uui-critical":"_8LISMi","uuiCritical":"_8LISMi","uui-info":"dBWGtp","uuiInfo":"dBWGtp","uui-success":"vJGk3F","uuiSuccess":"vJGk3F","uui-warning":"w2vLvZ","uuiWarning":"w2vLvZ","uui-highlight":"iRR9yk","uuiHighlight":"iRR9yk","uui-typography-size-12":"-cBCkf","uuiTypographySize12":"-cBCkf","uui-typography-size-14":"_6461Rg","uuiTypographySize14":"_6461Rg","uui-typography-size-16":"fZvbX7","uuiTypographySize16":"fZvbX7","root":"_7-3BPP"};
|
|
2405
2433
|
|
|
2406
2434
|
const uuiPresets = {
|
|
2407
2435
|
container: 'uui-presets-container',
|
|
@@ -2412,12 +2440,12 @@ const getPresets = (presets) => {
|
|
|
2412
2440
|
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);
|
|
2413
2441
|
};
|
|
2414
2442
|
function CalendarPresets(props) {
|
|
2415
|
-
return (React__namespace.createElement("div", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$
|
|
2443
|
+
return (React__namespace.createElement("div", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$Q.root, props.cx) }, props.rawProps),
|
|
2416
2444
|
React__namespace.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2417
2445
|
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: "24" })))));
|
|
2418
2446
|
}
|
|
2419
2447
|
|
|
2420
|
-
var css$
|
|
2448
|
+
var css$P = {"uui-typography":"yZH0GN","uuiTypography":"yZH0GN","hero-header":"FHA4XR","heroHeader":"FHA4XR","promo-header":"_8-1z-r","promoHeader":"_8-1z-r","uui-critical":"cZBZ4M","uuiCritical":"cZBZ4M","uui-info":"DW75Wy","uuiInfo":"DW75Wy","uui-success":"rX9YL7","uuiSuccess":"rX9YL7","uui-warning":"ji3xE7","uuiWarning":"ji3xE7","uui-highlight":"pSo0ry","uuiHighlight":"pSo0ry","uui-typography-size-12":"EGOpXU","uuiTypographySize12":"EGOpXU","uui-typography-size-14":"Hct3C-","uuiTypographySize14":"Hct3C-","uui-typography-size-16":"GF9YN4","uuiTypographySize16":"GF9YN4","root":"-ILCul","container":"USeFWr","day-selection":"kd1-IV","daySelection":"kd1-IV","from-picker":"IK7Hp6","fromPicker":"IK7Hp6","to-picker":"ftcAfy","toPicker":"ftcAfy","bodes-wrapper":"UlgAo-","bodesWrapper":"UlgAo-","blocker":"xWRQgu"};
|
|
2421
2449
|
|
|
2422
2450
|
const uuiRangeDatePickerBody = {
|
|
2423
2451
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -2558,21 +2586,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
2558
2586
|
});
|
|
2559
2587
|
}, presets: presets })));
|
|
2560
2588
|
};
|
|
2561
|
-
return (React__namespace.default.createElement("div", Object.assign({ ref: ref, className: uuiCore.cx(css$
|
|
2562
|
-
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
2589
|
+
return (React__namespace.default.createElement("div", Object.assign({ ref: ref, className: uuiCore.cx(css$P.root, uuiDatePickerBodyBase.container, props.cx) }, props.rawProps),
|
|
2590
|
+
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$P.daySelection, css$P.container], alignItems: "top" },
|
|
2563
2591
|
React__namespace.default.createElement(FlexCell, { width: "auto" },
|
|
2564
2592
|
React__namespace.default.createElement(FlexRow, null,
|
|
2565
|
-
React__namespace.default.createElement(FlexRow, { cx: css$
|
|
2566
|
-
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: uuiCore.cx(css$
|
|
2593
|
+
React__namespace.default.createElement(FlexRow, { cx: css$P.bodesWrapper, alignItems: "top" },
|
|
2594
|
+
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) => {
|
|
2567
2595
|
setMonth(m);
|
|
2568
2596
|
}, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' })),
|
|
2569
|
-
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: uuiCore.cx(css$
|
|
2597
|
+
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) => {
|
|
2570
2598
|
setMonth(m.subtract(1, 'month'));
|
|
2571
2599
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' })),
|
|
2572
2600
|
view !== 'DAY_SELECTION' && (React__namespace.default.createElement("div", { style: {
|
|
2573
2601
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
2574
2602
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
2575
|
-
}, className: css$
|
|
2603
|
+
}, className: css$P.blocker }))),
|
|
2576
2604
|
props.presets && renderPresets(props.presets)),
|
|
2577
2605
|
props.renderFooter && props.renderFooter()))));
|
|
2578
2606
|
}
|
|
@@ -2592,7 +2620,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
2592
2620
|
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)];
|
|
2593
2621
|
};
|
|
2594
2622
|
|
|
2595
|
-
var css$
|
|
2623
|
+
var css$O = {"dropdown-container":"A1mRtn","dropdownContainer":"A1mRtn"};
|
|
2596
2624
|
|
|
2597
2625
|
const modifiers = [{
|
|
2598
2626
|
name: 'offset',
|
|
@@ -2639,7 +2667,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2639
2667
|
};
|
|
2640
2668
|
const renderBody = (renderProps) => {
|
|
2641
2669
|
var _a;
|
|
2642
|
-
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx__default.default(css$
|
|
2670
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx__default.default(css$O.dropdownContainer), shards: [targetRef], returnFocus: (node) => {
|
|
2643
2671
|
console.log('lock', node);
|
|
2644
2672
|
return true;
|
|
2645
2673
|
} }),
|
|
@@ -2669,30 +2697,30 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2669
2697
|
}
|
|
2670
2698
|
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
2671
2699
|
|
|
2672
|
-
var css$
|
|
2700
|
+
var css$N = {"root":"pJK5Jq","blocker":"zVrjNh","marker":"hwXqJt","top":"BLseOz","bottom":"PBzzta","left":"r7cKgi","right":"mzfXf4","inside":"aVNP1X"};
|
|
2673
2701
|
|
|
2674
2702
|
function DropMarker(props) {
|
|
2675
2703
|
return props.isDndInProgress
|
|
2676
2704
|
? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2677
|
-
props.enableBlocker && React__namespace.createElement("div", { className: css$
|
|
2705
|
+
props.enableBlocker && React__namespace.createElement("div", { className: css$N.blocker }),
|
|
2678
2706
|
React__namespace.createElement("div", { className: cx__default.default([
|
|
2679
|
-
css$
|
|
2680
|
-
css$
|
|
2681
|
-
css$
|
|
2707
|
+
css$N.root,
|
|
2708
|
+
css$N.marker,
|
|
2709
|
+
css$N[props.position],
|
|
2682
2710
|
props === null || props === void 0 ? void 0 : props.cx,
|
|
2683
2711
|
]) })))
|
|
2684
2712
|
: null;
|
|
2685
2713
|
}
|
|
2686
2714
|
|
|
2687
|
-
var css$
|
|
2715
|
+
var css$M = {"root":"evhtvL","line-height":"_184w2a","lineHeight":"_184w2a","font-size":"WlU92J","fontSize":"WlU92J"};
|
|
2688
2716
|
|
|
2689
2717
|
function applyTextMods(mods) {
|
|
2690
2718
|
return [
|
|
2691
|
-
css$
|
|
2719
|
+
css$M.root,
|
|
2692
2720
|
'uui-text',
|
|
2693
2721
|
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
2694
|
-
(mods.size !== 'none' || mods.lineHeight) && css$
|
|
2695
|
-
(mods.size !== 'none' || mods.fontSize) && css$
|
|
2722
|
+
(mods.size !== 'none' || mods.lineHeight) && css$M.lineHeight,
|
|
2723
|
+
(mods.size !== 'none' || mods.fontSize) && css$M.fontSize,
|
|
2696
2724
|
`uui-color-${mods.color || 'primary'}`,
|
|
2697
2725
|
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
2698
2726
|
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
@@ -2709,7 +2737,7 @@ const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, appl
|
|
|
2709
2737
|
};
|
|
2710
2738
|
});
|
|
2711
2739
|
|
|
2712
|
-
var css$
|
|
2740
|
+
var css$L = {"root":"NH88VS","loading-word":"I9KNWr","loadingWord":"I9KNWr","animated-loading":"CBCaFX","animatedLoading":"CBCaFX","skeleton_loading":"Eu3w87","skeletonLoading":"Eu3w87"};
|
|
2713
2741
|
|
|
2714
2742
|
const TextPlaceholder = (props) => {
|
|
2715
2743
|
const pattern = ' ';
|
|
@@ -2721,14 +2749,14 @@ const TextPlaceholder = (props) => {
|
|
|
2721
2749
|
}
|
|
2722
2750
|
return words;
|
|
2723
2751
|
}, [props.wordsCount]);
|
|
2724
|
-
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: cx__default.default(css$
|
|
2725
|
-
props.cx, css$
|
|
2752
|
+
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([
|
|
2753
|
+
props.cx, css$L.loadingWord, !props.isNotAnimated && css$L.animatedLoading,
|
|
2726
2754
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
2727
2755
|
};
|
|
2728
2756
|
|
|
2729
2757
|
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
2730
2758
|
|
|
2731
|
-
var css$
|
|
2759
|
+
var css$K = {"uui-typography":"y-rFup","uuiTypography":"y-rFup","hero-header":"ZPE5wM","heroHeader":"ZPE5wM","promo-header":"YnoVWn","promoHeader":"YnoVWn","uui-critical":"N8yexm","uuiCritical":"N8yexm","uui-info":"W-HTf-","uuiInfo":"W-HTf-","uui-success":"DIIv1k","uuiSuccess":"DIIv1k","uui-warning":"F2Iqk4","uuiWarning":"F2Iqk4","uui-highlight":"KMB0Zf","uuiHighlight":"KMB0Zf","uui-typography-size-12":"_6SbfKb","uuiTypographySize12":"_6SbfKb","uui-typography-size-14":"Ad9b2k","uuiTypographySize14":"Ad9b2k","uui-typography-size-16":"UxTVQ2","uuiTypographySize16":"UxTVQ2","modal":"-Zk1C1","search-wrapper":"bylDi3","searchWrapper":"bylDi3","no-data":"-Kwjt-","noData":"-Kwjt-","type-search-to-load-size-24":"mYSL16","typeSearchToLoadSize24":"mYSL16"};
|
|
2732
2760
|
|
|
2733
2761
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
2734
2762
|
constructor() {
|
|
@@ -2747,7 +2775,7 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
2747
2775
|
});
|
|
2748
2776
|
}
|
|
2749
2777
|
if (this.props.minCharsToSearch && search.length < this.props.minCharsToSearch) {
|
|
2750
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
2778
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$K.noData, grow: 1, textAlign: "center" },
|
|
2751
2779
|
React__namespace.default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
2752
2780
|
}
|
|
2753
2781
|
if (this.props.rows.length === 0) {
|
|
@@ -2762,21 +2790,21 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
2762
2790
|
}
|
|
2763
2791
|
// Default no record found message for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
2764
2792
|
// TODO: make separate messages for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
2765
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
2793
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$K.noData, grow: 1, textAlign: "center" },
|
|
2766
2794
|
React__namespace.default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
2767
2795
|
}
|
|
2768
2796
|
}
|
|
2769
2797
|
render() {
|
|
2770
2798
|
const searchSize = this.getSearchSize();
|
|
2771
2799
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2772
|
-
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$
|
|
2800
|
+
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$K.searchWrapper },
|
|
2773
2801
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
2774
2802
|
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' } }))))),
|
|
2775
|
-
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('uui-picker_input-body', css$
|
|
2803
|
+
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())));
|
|
2776
2804
|
}
|
|
2777
2805
|
}
|
|
2778
2806
|
|
|
2779
|
-
var css$
|
|
2807
|
+
var css$J = {"footer":"TgJGGD"};
|
|
2780
2808
|
|
|
2781
2809
|
function DataPickerFooterImpl(props) {
|
|
2782
2810
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
@@ -2790,7 +2818,7 @@ function DataPickerFooterImpl(props) {
|
|
|
2790
2818
|
const isSearching = search === null || search === void 0 ? void 0 : search.length;
|
|
2791
2819
|
const hideFooter = isSearchTooShort || rowsCount === 0 || isSearching || (isSinglePicker && props.disableClear);
|
|
2792
2820
|
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
2793
|
-
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx: css$
|
|
2821
|
+
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx: css$J.footer },
|
|
2794
2822
|
!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 })),
|
|
2795
2823
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2796
2824
|
React__namespace.default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
@@ -2801,13 +2829,13 @@ function DataPickerFooterImpl(props) {
|
|
|
2801
2829
|
}
|
|
2802
2830
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
2803
2831
|
|
|
2804
|
-
var css$
|
|
2832
|
+
var css$I = {"header":"WYWC9u","title":"IqVcjn","close":"BcGvT1"};
|
|
2805
2833
|
|
|
2806
2834
|
const DataPickerHeaderImpl = (props) => {
|
|
2807
2835
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
2808
|
-
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$
|
|
2809
|
-
React__namespace.default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$
|
|
2810
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$R, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$
|
|
2836
|
+
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$I.header },
|
|
2837
|
+
React__namespace.default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$I.title }, title),
|
|
2838
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$R, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$I.close })));
|
|
2811
2839
|
};
|
|
2812
2840
|
const DataPickerHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerHeaderImpl);
|
|
2813
2841
|
|
|
@@ -2826,7 +2854,7 @@ var SvgNotificationDoneFill = function SvgNotificationDoneFill(props, ref) {
|
|
|
2826
2854
|
};
|
|
2827
2855
|
var ForwardRef$s = /*#__PURE__*/React.forwardRef(SvgNotificationDoneFill);
|
|
2828
2856
|
|
|
2829
|
-
var css$
|
|
2857
|
+
var css$H = {"uui-typography":"K00gTh","uuiTypography":"K00gTh","hero-header":"CWgu3z","heroHeader":"CWgu3z","promo-header":"CLSAcN","promoHeader":"CLSAcN","uui-critical":"MVa9oJ","uuiCritical":"MVa9oJ","uui-info":"EzEBcf","uuiInfo":"EzEBcf","uui-success":"og104M","uuiSuccess":"og104M","uui-warning":"eaVsoi","uuiWarning":"eaVsoi","uui-highlight":"uh7nS0","uuiHighlight":"uh7nS0","uui-typography-size-12":"sqpz-f","uuiTypographySize12":"sqpz-f","uui-typography-size-14":"b72WqI","uuiTypographySize14":"b72WqI","uui-typography-size-16":"_2-uNs0","uuiTypographySize16":"_2-uNs0","root":"u0MDJ4","align-widgets-top":"_2kfsaO","alignWidgetsTop":"_2kfsaO","align-widgets-center":"S0bFue","alignWidgetsCenter":"S0bFue","icon-container":"lUSKP5","iconContainer":"lUSKP5","loading-cell":"Ghljvg","loadingCell":"Ghljvg","content-wrapper":"ikmInM","contentWrapper":"ikmInM","render-item":"CvnlzK","renderItem":"CvnlzK","icon-wrapper":"HOg4tb","iconWrapper":"HOg4tb","icon-default":"VZc2aD","iconDefault":"VZc2aD","selected-mark":"mlj-I8","selectedMark":"mlj-I8"};
|
|
2830
2858
|
|
|
2831
2859
|
function DataPickerCell(props) {
|
|
2832
2860
|
const ref = React__namespace.useRef();
|
|
@@ -2834,28 +2862,28 @@ function DataPickerCell(props) {
|
|
|
2834
2862
|
if (props.rowProps.isLoading) {
|
|
2835
2863
|
content = (
|
|
2836
2864
|
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
2837
|
-
React__namespace.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size], cx: css$
|
|
2865
|
+
React__namespace.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size], cx: css$H.loadingCell },
|
|
2838
2866
|
React__namespace.createElement(TextPlaceholder, null)));
|
|
2839
2867
|
}
|
|
2840
2868
|
else if (props.rowProps.isUnknown) {
|
|
2841
2869
|
content = (React__namespace.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size] }, "Unknown"));
|
|
2842
2870
|
}
|
|
2843
2871
|
else {
|
|
2844
|
-
content = (React__namespace.createElement("div", { key: `${props.rowProps.id}`, className: css$
|
|
2872
|
+
content = (React__namespace.createElement("div", { key: `${props.rowProps.id}`, className: css$H.renderItem },
|
|
2845
2873
|
props.renderItem(props.rowProps.value, props.rowProps),
|
|
2846
2874
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2847
|
-
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
2848
|
-
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$P, cx: props.rowProps.isChildrenSelected ? css$
|
|
2875
|
+
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React__namespace.createElement("div", { className: uuiCore.cx(css$H.iconWrapper, uuiCore.uuiMod.selected) },
|
|
2876
|
+
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$P, cx: props.rowProps.isChildrenSelected ? css$H.iconDefault : css$H.selectedMark, rawProps: { 'aria-label': props.rowProps.isChildrenSelected
|
|
2849
2877
|
? 'Child is selected'
|
|
2850
2878
|
: 'Selected' } })))));
|
|
2851
2879
|
}
|
|
2852
|
-
const getWrappedContent = () => (React__namespace.createElement("div", { className: css$
|
|
2880
|
+
const getWrappedContent = () => (React__namespace.createElement("div", { className: css$H.contentWrapper }, content));
|
|
2853
2881
|
return (React__namespace.createElement(FlexCell, { ref: ref, grow: 1, width: 0, minWidth: 0, rawProps: { role: 'cell' }, cx: [
|
|
2854
|
-
css$
|
|
2882
|
+
css$H.root,
|
|
2855
2883
|
props.cx,
|
|
2856
2884
|
'data-picker-cell',
|
|
2857
2885
|
props.size && `uui-size-${props.size}`,
|
|
2858
|
-
css$
|
|
2886
|
+
css$H[`align-widgets-${props.alignActions || 'top'}`],
|
|
2859
2887
|
], style: props.padding && {
|
|
2860
2888
|
'--uui-data_picker_cell-horizontal-padding': `${props.padding}px`,
|
|
2861
2889
|
} },
|
|
@@ -2863,7 +2891,7 @@ function DataPickerCell(props) {
|
|
|
2863
2891
|
getWrappedContent()));
|
|
2864
2892
|
}
|
|
2865
2893
|
|
|
2866
|
-
var css$
|
|
2894
|
+
var css$G = {"uui-typography":"-EwErA","uuiTypography":"-EwErA","hero-header":"w33u-G","heroHeader":"w33u-G","promo-header":"u4T-39","promoHeader":"u4T-39","uui-critical":"BbYYm6","uuiCritical":"BbYYm6","uui-info":"hBPUIo","uuiInfo":"hBPUIo","uui-success":"G67--9","uuiSuccess":"G67--9","uui-warning":"PA5wmv","uuiWarning":"PA5wmv","uui-highlight":"p-HEC4","uuiHighlight":"p-HEC4","uui-typography-size-12":"_0HLnjQ","uuiTypographySize12":"_0HLnjQ","uui-typography-size-14":"eMH33m","uuiTypographySize14":"eMH33m","uui-typography-size-16":"ubYvBY","uuiTypographySize16":"ubYvBY","picker-row":"qAxx-u","pickerRow":"qAxx-u"};
|
|
2867
2895
|
|
|
2868
2896
|
class DataPickerRow extends React__namespace.Component {
|
|
2869
2897
|
constructor() {
|
|
@@ -2873,20 +2901,20 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
2873
2901
|
};
|
|
2874
2902
|
}
|
|
2875
2903
|
render() {
|
|
2876
|
-
return (React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$
|
|
2904
|
+
return (React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$G.pickerRow, this.props.cx], renderContent: this.renderContent })));
|
|
2877
2905
|
}
|
|
2878
2906
|
}
|
|
2879
2907
|
|
|
2880
|
-
var css$
|
|
2908
|
+
var css$F = {"uui-typography":"aS7FW6","uuiTypography":"aS7FW6","hero-header":"_7GquDI","heroHeader":"_7GquDI","promo-header":"HwYvvy","promoHeader":"HwYvvy","uui-critical":"URvWOo","uuiCritical":"URvWOo","uui-info":"DTHFNn","uuiInfo":"DTHFNn","uui-success":"ObiCMg","uuiSuccess":"ObiCMg","uui-warning":"gq31NT","uuiWarning":"gq31NT","uui-highlight":"pcw7MA","uuiHighlight":"pcw7MA","uui-typography-size-12":"m5Y0i0","uuiTypographySize12":"m5Y0i0","uui-typography-size-14":"j1neW9","uuiTypographySize14":"j1neW9","uui-typography-size-16":"Br4rYQ","uuiTypographySize16":"Br4rYQ","done":"-kYvHL","container":"nIStzk"};
|
|
2881
2909
|
|
|
2882
2910
|
const PickerBodyMobileView = (props) => {
|
|
2883
2911
|
const isMobileView = uuiCore.isMobile();
|
|
2884
2912
|
const maxWidth = isMobileView ? 'auto' : props.maxWidth;
|
|
2885
2913
|
const maxHeight = isMobileView ? 'auto' : props.maxHeight;
|
|
2886
|
-
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$
|
|
2914
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$F.container, props.cx], autoFocus: true }),
|
|
2887
2915
|
isMobileView && React__namespace.default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
|
|
2888
2916
|
props.children,
|
|
2889
|
-
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$
|
|
2917
|
+
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 })));
|
|
2890
2918
|
};
|
|
2891
2919
|
|
|
2892
2920
|
var _path$r, _path2$4;
|
|
@@ -2911,7 +2939,7 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2911
2939
|
};
|
|
2912
2940
|
var ForwardRef$r = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
2913
2941
|
|
|
2914
|
-
var css$
|
|
2942
|
+
var css$E = {"uui-typography":"vqv4WY","uuiTypography":"vqv4WY","hero-header":"N0UiFq","heroHeader":"N0UiFq","promo-header":"zWFjLe","promoHeader":"zWFjLe","uui-critical":"kB-H6r","uuiCritical":"kB-H6r","uui-info":"o4gmd1","uuiInfo":"o4gmd1","uui-success":"rjSAYb","uuiSuccess":"rjSAYb","uui-warning":"b5t-5g","uuiWarning":"b5t-5g","uui-highlight":"xEc9YH","uuiHighlight":"xEc9YH","uui-typography-size-12":"OacvH5","uuiTypographySize12":"OacvH5","uui-typography-size-14":"V2SBvN","uuiTypographySize14":"V2SBvN","uui-typography-size-16":"Zdm-BC","uuiTypographySize16":"Zdm-BC","sub-header-wrapper":"_9l1Eyu","subHeaderWrapper":"_9l1Eyu","switch":"w-ken5","no-found-modal-container":"XNM9Om","noFoundModalContainer":"XNM9Om","no-found-modal-container-icon":"gwD15N","noFoundModalContainerIcon":"gwD15N","no-found-modal-container-text":"zf3eye","noFoundModalContainerText":"zf3eye"};
|
|
2915
2943
|
|
|
2916
2944
|
const mergeHighlightRanges = (ranges) => {
|
|
2917
2945
|
const mergedRanges = [];
|
|
@@ -2978,7 +3006,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
2978
3006
|
return getDecoratedText(str, ranges);
|
|
2979
3007
|
};
|
|
2980
3008
|
|
|
2981
|
-
var css$
|
|
3009
|
+
var css$D = {"root":"tEDNpE","column-gap":"ewMnYD","columnGap":"ewMnYD","multiline":"pY-mW8","text":"WyX3dn"};
|
|
2982
3010
|
|
|
2983
3011
|
function PickerItem(props) {
|
|
2984
3012
|
var _a;
|
|
@@ -2988,13 +3016,13 @@ function PickerItem(props) {
|
|
|
2988
3016
|
const { search } = (_a = props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2989
3017
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(props.title, search) : props.title;
|
|
2990
3018
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(props.subtitle, search) : props.subtitle;
|
|
2991
|
-
return (React__namespace.createElement(FlexCell, { width: "auto", cx: [css$
|
|
2992
|
-
React__namespace.createElement(FlexRow, { size: itemSize, cx: [isMultiline && css$
|
|
3019
|
+
return (React__namespace.createElement(FlexCell, { width: "auto", cx: [css$D.root, 'uui-typography', cx] },
|
|
3020
|
+
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` } } },
|
|
2993
3021
|
avatarUrl && (React__namespace.createElement(uuiComponents.Avatar, { isLoading: isLoading, img: avatarUrl, size: getAvatarSize(itemSize, isMultiline).toString() })),
|
|
2994
3022
|
icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: icon }),
|
|
2995
3023
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
2996
|
-
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$
|
|
2997
|
-
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$
|
|
3024
|
+
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$D.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : title)),
|
|
3025
|
+
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$D.text }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
2998
3026
|
}
|
|
2999
3027
|
function getAvatarSize(size, isMultiline) {
|
|
3000
3028
|
return settings.sizes.pickerInput.body.dropdown.row.cell.item.avatar[isMultiline ? 'multiline' : 'rest'][size];
|
|
@@ -3028,17 +3056,17 @@ function PickerModal(props) {
|
|
|
3028
3056
|
React__namespace.default.createElement(Button, { color: "primary", caption: i18n.pickerModal.selectButton, onClick: () => props.success(selection) })));
|
|
3029
3057
|
};
|
|
3030
3058
|
const renderNotFound = () => {
|
|
3031
|
-
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__namespace.default.createElement("div", { className: css$
|
|
3032
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { cx: css$
|
|
3033
|
-
React__namespace.default.createElement(Text, { cx: css$
|
|
3034
|
-
React__namespace.default.createElement(Text, { cx: css$
|
|
3059
|
+
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__namespace.default.createElement("div", { className: css$E.noFoundModalContainer },
|
|
3060
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { cx: css$E.noFoundModalContainerIcon, icon: ForwardRef$r }),
|
|
3061
|
+
React__namespace.default.createElement(Text, { cx: css$E.noFoundModalContainerText, fontWeight: "600", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
3062
|
+
React__namespace.default.createElement(Text, { cx: css$E.noFoundModalContainerText, fontSize: "12", lineHeight: "18", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
3035
3063
|
};
|
|
3036
3064
|
const dataRows = getRows();
|
|
3037
3065
|
const rows = dataRows.map((row) => renderRow(row));
|
|
3038
3066
|
return (React__namespace.default.createElement(ModalBlocker, Object.assign({}, props),
|
|
3039
3067
|
React__namespace.default.createElement(ModalWindow, { width: 600, height: 700 },
|
|
3040
3068
|
React__namespace.default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
3041
|
-
React__namespace.default.createElement(FlexCell, { cx: css$
|
|
3069
|
+
React__namespace.default.createElement(FlexCell, { cx: css$E.subHeaderWrapper },
|
|
3042
3070
|
React__namespace.default.createElement(FlexRow, { vPadding: "24" },
|
|
3043
3071
|
React__namespace.default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => uuiComponents.handleDataSourceKeyboard({
|
|
3044
3072
|
value: getDataSourceState(),
|
|
@@ -3047,20 +3075,20 @@ function PickerModal(props) {
|
|
|
3047
3075
|
rows: dataRows,
|
|
3048
3076
|
searchPosition: 'body',
|
|
3049
3077
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: { dir: 'auto' } }))),
|
|
3050
|
-
!isSingleSelect() && (React__namespace.default.createElement(Switch, Object.assign({ cx: css$
|
|
3078
|
+
!isSingleSelect() && (React__namespace.default.createElement(Switch, Object.assign({ cx: css$E.switch, size: "18" }, getFooterProps().showSelected, { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
3051
3079
|
props.renderFilter && React__namespace.default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
3052
3080
|
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" })),
|
|
3053
3081
|
React__namespace.default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3054
3082
|
}
|
|
3055
3083
|
|
|
3056
|
-
var css$
|
|
3084
|
+
var css$C = {"tooltip":"iPNJyX"};
|
|
3057
3085
|
|
|
3058
3086
|
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3059
3087
|
var _a;
|
|
3060
3088
|
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 });
|
|
3061
3089
|
if (props.isCollapsed) {
|
|
3062
3090
|
const collapsedRows = props.collapsedRows.map((row) => props.getName(row.value)).join(', ');
|
|
3063
|
-
return (React__namespace.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$
|
|
3091
|
+
return (React__namespace.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$C.tooltip },
|
|
3064
3092
|
React__namespace.createElement(Tag, Object.assign({ ref: ref, rawProps: { role: 'option' } }, tagProps))));
|
|
3065
3093
|
}
|
|
3066
3094
|
else {
|
|
@@ -3068,15 +3096,15 @@ const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
3068
3096
|
}
|
|
3069
3097
|
});
|
|
3070
3098
|
|
|
3071
|
-
var css$
|
|
3099
|
+
var css$B = {"uui-typography":"elgNOM","uuiTypography":"elgNOM","hero-header":"PLDfw0","heroHeader":"PLDfw0","promo-header":"_71BxwL","promoHeader":"_71BxwL","uui-critical":"Iw4mxU","uuiCritical":"Iw4mxU","uui-info":"KNy6ZS","uuiInfo":"KNy6ZS","uui-success":"kgzf1p","uuiSuccess":"kgzf1p","uui-warning":"pqMd2x","uuiWarning":"pqMd2x","uui-highlight":"Ia04tO","uuiHighlight":"Ia04tO","uui-typography-size-12":"_2kPl7M","uuiTypographySize12":"_2kPl7M","uui-typography-size-14":"Ns9pH5","uuiTypographySize14":"Ns9pH5","uui-typography-size-16":"G2p6GC","uuiTypographySize16":"G2p6GC","root":"MAgHLa","mode-form":"KYaJW4","modeForm":"KYaJW4","mode-cell":"wAhF0l","modeCell":"wAhF0l","mode-inline":"LEr3uB","modeInline":"LEr3uB"};
|
|
3072
3100
|
|
|
3073
3101
|
const defaultMode = EditMode.FORM;
|
|
3074
3102
|
function applyPickerTogglerMods(mods) {
|
|
3075
3103
|
return [
|
|
3076
|
-
css$
|
|
3104
|
+
css$B.root,
|
|
3077
3105
|
'uui-picker_toggler',
|
|
3078
3106
|
`uui-size-${mods.size || settings.sizes.pickerInput.toggler.defaults.size}`,
|
|
3079
|
-
css$
|
|
3107
|
+
css$B['mode-' + (mods.mode || defaultMode)],
|
|
3080
3108
|
];
|
|
3081
3109
|
}
|
|
3082
3110
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -3165,7 +3193,7 @@ function PickerInputComponent(_a, ref) {
|
|
|
3165
3193
|
}
|
|
3166
3194
|
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
3167
3195
|
|
|
3168
|
-
var css$
|
|
3196
|
+
var css$A = {"row":"SGlRzY"};
|
|
3169
3197
|
|
|
3170
3198
|
function PickerListItem(props) {
|
|
3171
3199
|
var _a;
|
|
@@ -3183,10 +3211,10 @@ function PickerListItem(props) {
|
|
|
3183
3211
|
else {
|
|
3184
3212
|
component = (React__namespace.default.createElement(RadioInput, { label: label, value: props.isSelected, isDisabled: props.isLoading || !props.isSelectable || props.isDisabled, onValueChange: () => props.onSelect(props) }));
|
|
3185
3213
|
}
|
|
3186
|
-
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$
|
|
3214
|
+
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));
|
|
3187
3215
|
}
|
|
3188
3216
|
|
|
3189
|
-
var css$
|
|
3217
|
+
var css$z = {"root":"sXTYin"};
|
|
3190
3218
|
|
|
3191
3219
|
function PickerList(props) {
|
|
3192
3220
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -3209,7 +3237,7 @@ function PickerList(props) {
|
|
|
3209
3237
|
const showPicker = viewProps.totalCount == null || viewProps.totalCount > getMaxDefaultItems();
|
|
3210
3238
|
const renderToggler = props.renderModalToggler || defaultRenderToggler;
|
|
3211
3239
|
const renderRow = props.renderRow || defaultRenderRow;
|
|
3212
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default('uui-picker-list', css$
|
|
3240
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default('uui-picker-list', css$z.root) },
|
|
3213
3241
|
!rows.length
|
|
3214
3242
|
&& (props.noOptionsMessage || (React__namespace.default.createElement(Text, { color: "secondary", size: props.size }, "No options available"))),
|
|
3215
3243
|
rows.map((row) => renderRow(Object.assign(Object.assign({}, row), { isDisabled: props.isDisabled }), dataSourceState)),
|
|
@@ -3221,7 +3249,7 @@ function PickerList(props) {
|
|
|
3221
3249
|
}, selectedRows)));
|
|
3222
3250
|
}
|
|
3223
3251
|
|
|
3224
|
-
var css$
|
|
3252
|
+
var css$y = {"uui-typography":"_9sR1YC","uuiTypography":"_9sR1YC","hero-header":"GjX40w","heroHeader":"GjX40w","promo-header":"zwisP1","promoHeader":"zwisP1","uui-critical":"_6Cl4nw","uuiCritical":"_6Cl4nw","uui-info":"M7Q6vY","uuiInfo":"M7Q6vY","uui-success":"aUXtuM","uuiSuccess":"aUXtuM","uui-warning":"WaIyor","uuiWarning":"WaIyor","uui-highlight":"zOTUtB","uuiHighlight":"zOTUtB","uui-typography-size-12":"whtkaK","uuiTypographySize12":"whtkaK","uui-typography-size-14":"ydc-jZ","uuiTypographySize14":"ydc-jZ","uui-typography-size-16":"iXELgt","uuiTypographySize16":"iXELgt","root":"y5BZ-G","wrapper":"-v6rLZ","align-widgets-top":"KEeg69","alignWidgetsTop":"KEeg69","align-widgets-center":"m2H05a","alignWidgetsCenter":"m2H05a"};
|
|
3225
3253
|
|
|
3226
3254
|
function DataTableCell(initialProps) {
|
|
3227
3255
|
const props = Object.assign({}, initialProps);
|
|
@@ -3255,12 +3283,12 @@ function DataTableCell(initialProps) {
|
|
|
3255
3283
|
};
|
|
3256
3284
|
props.cx = [
|
|
3257
3285
|
'data-table-cell',
|
|
3258
|
-
css$
|
|
3286
|
+
css$y.root,
|
|
3259
3287
|
props.cx,
|
|
3260
3288
|
'uui-size-' + (props.size || settings.sizes.dataTable.body.row.cell.defaults.size),
|
|
3261
3289
|
props.isFirstColumn && 'uui-dt-first-column',
|
|
3262
3290
|
props.isLastColumn && 'uui-dt-last-column',
|
|
3263
|
-
css$
|
|
3291
|
+
css$y[`align-widgets-${props.alignActions || 'top'}`],
|
|
3264
3292
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
3265
3293
|
];
|
|
3266
3294
|
props.style = {
|
|
@@ -3270,7 +3298,7 @@ function DataTableCell(initialProps) {
|
|
|
3270
3298
|
return React__namespace.createElement(uuiComponents.DataTableCell, Object.assign({}, props));
|
|
3271
3299
|
}
|
|
3272
3300
|
|
|
3273
|
-
var css$
|
|
3301
|
+
var css$x = {"uui-typography":"MgFZrF","uuiTypography":"MgFZrF","hero-header":"NWRdaL","heroHeader":"NWRdaL","promo-header":"aeaIqj","promoHeader":"aeaIqj","uui-critical":"TMUwRn","uuiCritical":"TMUwRn","uui-info":"N-HygM","uuiInfo":"N-HygM","uui-success":"n-LaAS","uuiSuccess":"n-LaAS","uui-warning":"_2S3n1u","uuiWarning":"_2S3n1u","uui-highlight":"O4sIrc","uuiHighlight":"O4sIrc","uui-typography-size-12":"_5MV71e","uuiTypographySize12":"_5MV71e","uui-typography-size-14":"HxQB29","uuiTypographySize14":"HxQB29","uui-typography-size-16":"-gbefa","uuiTypographySize16":"-gbefa","root":"RKtP5y"};
|
|
3274
3302
|
|
|
3275
3303
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3276
3304
|
// 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.
|
|
@@ -3282,11 +3310,11 @@ const renderDropMarkers = (props) => React__namespace.createElement(DropMarker,
|
|
|
3282
3310
|
const propsMods = { renderCell, renderDropMarkers };
|
|
3283
3311
|
const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow, ({ borderBottom = true, size }) => {
|
|
3284
3312
|
return [
|
|
3285
|
-
css$
|
|
3313
|
+
css$x.root, 'uui-dt-vars', borderBottom && 'uui-dt-row-border', `uui-size-${size || settings.sizes.dataTable.body.row.default}`,
|
|
3286
3314
|
];
|
|
3287
3315
|
}, () => propsMods);
|
|
3288
3316
|
|
|
3289
|
-
var css$
|
|
3317
|
+
var css$w = {"uui-typography":"_8aXuDP","uuiTypography":"_8aXuDP","hero-header":"SYUMQ9","heroHeader":"SYUMQ9","promo-header":"_5hHNL4","promoHeader":"_5hHNL4","uui-critical":"H9BuUo","uuiCritical":"H9BuUo","uui-info":"-QLZPV","uuiInfo":"-QLZPV","uui-success":"JPywlv","uuiSuccess":"JPywlv","uui-warning":"LH62sY","uuiWarning":"LH62sY","uui-highlight":"NJimv2","uuiHighlight":"NJimv2","uui-typography-size-12":"j3lzY6","uuiTypographySize12":"j3lzY6","uui-typography-size-14":"_61X9N9","uuiTypographySize14":"_61X9N9","uui-typography-size-16":"IQCWgu","uuiTypographySize16":"IQCWgu","sorting-panel-container":"b8m05I","sortingPanelContainer":"b8m05I"};
|
|
3290
3318
|
|
|
3291
3319
|
var _path$q;
|
|
3292
3320
|
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); }
|
|
@@ -3321,7 +3349,7 @@ var ForwardRef$p = /*#__PURE__*/React.forwardRef(SvgTableSortDescOutline);
|
|
|
3321
3349
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3322
3350
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
3323
3351
|
const sortDesc = React.useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
3324
|
-
return (React__namespace.default.createElement(FlexCell, { cx: uuiCore.cx(css$
|
|
3352
|
+
return (React__namespace.default.createElement(FlexCell, { cx: uuiCore.cx(css$w.sortingPanelContainer, 'uui-dropdownMenu-body') },
|
|
3325
3353
|
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$q, onClick: sortAsc }),
|
|
3326
3354
|
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$p, onClick: sortDesc })));
|
|
3327
3355
|
};
|
|
@@ -3416,7 +3444,7 @@ var SvgNavigationExpandAllOutline = function SvgNavigationExpandAllOutline(props
|
|
|
3416
3444
|
};
|
|
3417
3445
|
var ForwardRef$k = /*#__PURE__*/React.forwardRef(SvgNavigationExpandAllOutline);
|
|
3418
3446
|
|
|
3419
|
-
var css$
|
|
3447
|
+
var css$v = {"uui-typography":"WxUB7G","uuiTypography":"WxUB7G","hero-header":"_3HKlPv","heroHeader":"_3HKlPv","promo-header":"_5FBhqQ","promoHeader":"_5FBhqQ","uui-critical":"G7RzbV","uuiCritical":"G7RzbV","uui-info":"NqvTsS","uuiInfo":"NqvTsS","uui-success":"_9N5QDV","uuiSuccess":"_9N5QDV","uui-warning":"qU4y8g","uuiWarning":"qU4y8g","uui-highlight":"CsPUvI","uuiHighlight":"CsPUvI","uui-typography-size-12":"VGBf5T","uuiTypographySize12":"VGBf5T","uui-typography-size-14":"CI--ik","uuiTypographySize14":"CI--ik","uui-typography-size-16":"GC6n55","uuiTypographySize16":"GC6n55","root":"Xbxpq-","caption-wrapper":"_5iMiMM","captionWrapper":"_5iMiMM","sort-icon":"nnW--a","sortIcon":"nnW--a","dropdown-icon":"_8hZbbZ","dropdownIcon":"_8hZbbZ","infoIcon":"_7OlxEh","resizable":"DFDh7w","align-right":"KcBgcC","alignRight":"KcBgcC","align-center":"wUCUbt","alignCenter":"wUCUbt","caption":"G8wvGd","truncate":"FG8soj","checkbox":"vTv8l4","icon":"GczrGo","fold-all-icon":"EINOJZ","foldAllIcon":"EINOJZ","cell-tooltip":"Q6PaHL","cellTooltip":"Q6PaHL","upper-case":"V2z2rm","upperCase":"V2z2rm","resizing-marker":"_6SMMRj","resizingMarker":"_6SMMRj","pinned-right":"TzND2G","pinnedRight":"TzND2G","draggable":"_0vF0lf","ghost":"_0f1eQx","is-dragged-out":"_9Fg680","isDraggedOut":"_9Fg680","dnd-marker-left":"hMke-8","dndMarkerLeft":"hMke-8","dnd-marker-right":"pXBgpc","dndMarkerRight":"pXBgpc","cell-tooltip-wrapper":"AJEVXx","cellTooltipWrapper":"AJEVXx","cell-tooltip-text":"_0H4T9O","cellTooltipText":"_0H4T9O","tooltip-caption":"Aft4Rx","tooltipCaption":"Aft4Rx","tooltip-info":"aMTlKp","tooltipInfo":"aMTlKp"};
|
|
3420
3448
|
|
|
3421
3449
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
3422
3450
|
constructor() {
|
|
@@ -3424,27 +3452,27 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3424
3452
|
this.state = {
|
|
3425
3453
|
isDropdownOpen: null,
|
|
3426
3454
|
};
|
|
3427
|
-
this.getTooltipContent = (column) => (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
3428
|
-
React__namespace.createElement(Text, { cx: [css$
|
|
3429
|
-
column.info && (React__namespace.createElement(Text, { cx: [css$
|
|
3455
|
+
this.getTooltipContent = (column) => (React__namespace.createElement("div", { className: uuiCore.cx(css$v.cellTooltipWrapper, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionTooltip) },
|
|
3456
|
+
React__namespace.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipCaption] }, column.caption),
|
|
3457
|
+
column.info && (React__namespace.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipInfo] }, column.info))));
|
|
3430
3458
|
this.getColumnCaption = () => {
|
|
3431
3459
|
const renderTooltip = this.props.column.renderTooltip || this.getTooltipContent;
|
|
3432
3460
|
const captionCx = [
|
|
3433
|
-
css$
|
|
3434
|
-
this.props.textCase === 'upper' && css$
|
|
3461
|
+
css$v.caption,
|
|
3462
|
+
this.props.textCase === 'upper' && css$v.upperCase,
|
|
3435
3463
|
uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaption,
|
|
3436
|
-
settings.sizes.dataTable.header.row.cell.truncate.includes(this.props.size) && css$
|
|
3464
|
+
settings.sizes.dataTable.header.row.cell.truncate.includes(this.props.size) && css$v.truncate,
|
|
3437
3465
|
];
|
|
3438
|
-
return (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
3439
|
-
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: css$
|
|
3466
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$v.captionWrapper, css$v['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
3467
|
+
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: css$v.cellTooltip, openDelay: 600 },
|
|
3440
3468
|
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)),
|
|
3441
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$
|
|
3442
|
-
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$
|
|
3443
|
-
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$
|
|
3469
|
+
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 })),
|
|
3470
|
+
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 })),
|
|
3471
|
+
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$Q }))));
|
|
3444
3472
|
};
|
|
3445
3473
|
this.renderHeaderCheckbox = () => {
|
|
3446
3474
|
if (this.props.selectAll && this.props.isFirstColumn) {
|
|
3447
|
-
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$
|
|
3475
|
+
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) })));
|
|
3448
3476
|
}
|
|
3449
3477
|
};
|
|
3450
3478
|
this.renderFoldAllIcon = () => {
|
|
@@ -3452,14 +3480,14 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3452
3480
|
return (React__namespace.createElement(Tooltip, { content: this.props.areAllFolded
|
|
3453
3481
|
? i18n.tables.columnHeader.expandAllTooltip
|
|
3454
3482
|
: i18n.tables.columnHeader.collapseAllTooltip },
|
|
3455
|
-
React__namespace.createElement(IconButton, { color: "secondary", cx: uuiCore.cx(css$
|
|
3483
|
+
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: {
|
|
3456
3484
|
'aria-label': this.props.areAllFolded ? 'Expand All' : 'Collapse All',
|
|
3457
3485
|
'aria-expanded': !!this.props.areAllFolded,
|
|
3458
3486
|
} })));
|
|
3459
3487
|
}
|
|
3460
3488
|
};
|
|
3461
3489
|
this.renderResizingMarker = (props) => {
|
|
3462
|
-
return (React__namespace.createElement("div", { role: "separator", onMouseDown: props.onResizeStart, className: uuiCore.cx(css$
|
|
3490
|
+
return (React__namespace.createElement("div", { role: "separator", onMouseDown: props.onResizeStart, className: uuiCore.cx(css$v.resizingMarker, uuiCore.uuiMarkers.draggable, uuiCore.uuiMarkers.clickable) }));
|
|
3463
3491
|
};
|
|
3464
3492
|
this.getLeftPadding = () => {
|
|
3465
3493
|
const { columnsGap, isFirstColumn } = this.props;
|
|
@@ -3491,7 +3519,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3491
3519
|
var _a;
|
|
3492
3520
|
props.ref(ref);
|
|
3493
3521
|
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
3494
|
-
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$
|
|
3522
|
+
}, 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 },
|
|
3495
3523
|
this.renderHeaderCheckbox(),
|
|
3496
3524
|
this.renderFoldAllIcon(),
|
|
3497
3525
|
this.getColumnCaption(),
|
|
@@ -3522,10 +3550,65 @@ var SvgActionSettingsFill = function SvgActionSettingsFill(props, ref) {
|
|
|
3522
3550
|
};
|
|
3523
3551
|
var ForwardRef$j = /*#__PURE__*/React.forwardRef(SvgActionSettingsFill);
|
|
3524
3552
|
|
|
3525
|
-
var css$
|
|
3553
|
+
var css$u = {"uui-typography":"V1C42Q","uuiTypography":"V1C42Q","hero-header":"_3jY06p","heroHeader":"_3jY06p","promo-header":"C3ZNOA","promoHeader":"C3ZNOA","uui-critical":"Q2dq4Z","uuiCritical":"Q2dq4Z","uui-info":"inoPp3","uuiInfo":"inoPp3","uui-success":"LGa6B4","uuiSuccess":"LGa6B4","uui-warning":"S4jIdc","uuiWarning":"S4jIdc","uui-highlight":"vsDULv","uuiHighlight":"vsDULv","uui-typography-size-12":"w1d3-N","uuiTypographySize12":"w1d3-N","uui-typography-size-14":"BLqt5-","uuiTypographySize14":"BLqt5-","uui-typography-size-16":"pD3qU3","uuiTypographySize16":"pD3qU3","root":"bdxZo7"};
|
|
3526
3554
|
|
|
3527
|
-
|
|
3555
|
+
var css$t = {"uui-typography":"-vbA9o","uuiTypography":"-vbA9o","hero-header":"_6MtY9q","heroHeader":"_6MtY9q","promo-header":"HqIiPL","promoHeader":"HqIiPL","uui-critical":"Ksr2Gx","uuiCritical":"Ksr2Gx","uui-info":"iff1of","uuiInfo":"iff1of","uui-success":"_58Cc9s","uuiSuccess":"_58Cc9s","uui-warning":"WFq1EB","uuiWarning":"WFq1EB","uui-highlight":"dBxxyg","uuiHighlight":"dBxxyg","uui-typography-size-12":"_7tyVur","uuiTypographySize12":"_7tyVur","uui-typography-size-14":"_5JHLFM","uuiTypographySize14":"_5JHLFM","uui-typography-size-16":"XFdhdn","uuiTypographySize16":"XFdhdn","root":"oVfl3E","caption-wrapper":"X0fN9Y","captionWrapper":"X0fN9Y","align-center":"VhAsj9","alignCenter":"VhAsj9","caption":"QG4m-U","truncate":"L-AaWJ","group-cell-tooltip":"SPrAH6","groupCellTooltip":"SPrAH6","upper-case":"DoYTHI","upperCase":"DoYTHI","group-cell-tooltip-wrapper":"bf9f5l","groupCellTooltipWrapper":"bf9f5l","group-cell-tooltip-text":"JnQTfQ","groupCellTooltipText":"JnQTfQ","tooltip-caption":"ASciOP","tooltipCaption":"ASciOP","tooltip-info":"aEGGTJ","tooltipInfo":"aEGGTJ"};
|
|
3556
|
+
|
|
3557
|
+
class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
3558
|
+
constructor() {
|
|
3559
|
+
super(...arguments);
|
|
3560
|
+
this.getTooltipContent = (column) => (React__namespace.createElement("div", { className: uuiCore.cx(css$t.groupCellTooltipWrapper, uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaptionTooltip) },
|
|
3561
|
+
React__namespace.createElement(Text, { cx: [css$t.groupCellTooltipText, css$t.tooltipCaption] }, column.caption),
|
|
3562
|
+
column.info && (React__namespace.createElement(Text, { cx: [css$t.groupCellTooltipText, css$t.tooltipInfo] }, column.info))));
|
|
3563
|
+
this.getColumnCaption = () => {
|
|
3564
|
+
const renderTooltip = this.props.group.renderTooltip || this.getTooltipContent;
|
|
3565
|
+
const captionCx = [
|
|
3566
|
+
css$t.caption,
|
|
3567
|
+
this.props.textCase === 'upper' && css$t.upperCase,
|
|
3568
|
+
uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaption,
|
|
3569
|
+
settings.sizes.dataTable.header.row.groupCell.truncate.includes(this.props.size) && css$t.truncate,
|
|
3570
|
+
];
|
|
3571
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$t.captionWrapper, css$t['align-' + this.props.group.textAlign], uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaptionWrapper) },
|
|
3572
|
+
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.group), cx: css$t.groupCellTooltip, openDelay: 600 },
|
|
3573
|
+
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))));
|
|
3574
|
+
};
|
|
3575
|
+
this.getLeftPadding = () => {
|
|
3576
|
+
const { columnsGap, isFirstCell } = this.props;
|
|
3577
|
+
if (columnsGap)
|
|
3578
|
+
return isFirstCell ? columnsGap : +columnsGap / 2;
|
|
3579
|
+
return isFirstCell ? settings.sizes.dataTable.header.row.groupCell.defaults.paddingEdge : settings.sizes.dataTable.header.row.groupCell.defaults.padding;
|
|
3580
|
+
};
|
|
3581
|
+
this.getRightPadding = () => {
|
|
3582
|
+
const { columnsGap, isLastCell } = this.props;
|
|
3583
|
+
if (columnsGap)
|
|
3584
|
+
return isLastCell ? columnsGap : +columnsGap / 2;
|
|
3585
|
+
return isLastCell ? settings.sizes.dataTable.header.row.groupCell.defaults.paddingEdge : settings.sizes.dataTable.header.row.groupCell.defaults.padding;
|
|
3586
|
+
};
|
|
3587
|
+
this.renderCellContent = (props) => {
|
|
3588
|
+
const computeStyles = {
|
|
3589
|
+
'--uui-dt-header-group-cell-padding-start': `${this.getLeftPadding()}px`,
|
|
3590
|
+
'--uui-dt-header-group-cell-padding-end': `${this.getRightPadding()}px`,
|
|
3591
|
+
};
|
|
3592
|
+
return (React__namespace.createElement(uuiComponents.DataTableCellContainer, { column: this.props.group, ref: (ref) => {
|
|
3593
|
+
props.ref(ref);
|
|
3594
|
+
}, 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()));
|
|
3595
|
+
};
|
|
3596
|
+
}
|
|
3597
|
+
render() {
|
|
3598
|
+
if (this.props.group.renderHeaderCell) {
|
|
3599
|
+
return this.props.group.renderHeaderCell(this.props);
|
|
3600
|
+
}
|
|
3601
|
+
const computeStyles = {
|
|
3602
|
+
'--uui-dt-header-group-cell-padding-start': `${this.getLeftPadding()}px`,
|
|
3603
|
+
'--uui-dt-header-group-cell-padding-end': `${this.getRightPadding()}px`,
|
|
3604
|
+
};
|
|
3605
|
+
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()));
|
|
3606
|
+
}
|
|
3607
|
+
}
|
|
3608
|
+
|
|
3609
|
+
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$u.root, 'uui-dt-vars'], (mods) => ({
|
|
3528
3610
|
renderCell: (props) => (React__namespace.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap }))),
|
|
3611
|
+
renderGroupCell: (props) => (React__namespace.createElement(DataTableHeaderGroupCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.key, columnsGap: mods.columnsGap }))),
|
|
3529
3612
|
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 })),
|
|
3530
3613
|
}));
|
|
3531
3614
|
|
|
@@ -3534,7 +3617,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
3534
3617
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
3535
3618
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
3536
3619
|
|
|
3537
|
-
var css$s = {"uui-typography":"
|
|
3620
|
+
var css$s = {"uui-typography":"LsX-QX","uuiTypography":"LsX-QX","hero-header":"_0Ou81v","heroHeader":"_0Ou81v","promo-header":"_2mp821","promoHeader":"_2mp821","uui-critical":"LTMLK-","uuiCritical":"LTMLK-","uui-info":"BkwyBD","uuiInfo":"BkwyBD","uui-success":"v2Vh3u","uuiSuccess":"v2Vh3u","uui-warning":"OCtJGi","uuiWarning":"OCtJGi","uui-highlight":"_3Fs6TM","uuiHighlight":"_3Fs6TM","uui-typography-size-12":"jlBrkN","uuiTypographySize12":"jlBrkN","uui-typography-size-14":"tRtxxV","uuiTypographySize14":"tRtxxV","uui-typography-size-16":"EcgKB0","uuiTypographySize16":"EcgKB0","root":"J-bngz","title-wrapper":"rpUs0E","titleWrapper":"rpUs0E","title":"_4ugTMf","text-wrapper":"qXV68s","textWrapper":"qXV68s","selection":"yFGU9J","postfix":"_2Im7GA","selected":"K1QKbk"};
|
|
3538
3621
|
|
|
3539
3622
|
const defaultSize = '36';
|
|
3540
3623
|
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
@@ -3665,7 +3748,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
3665
3748
|
const context = uuiCore.useUuiContext();
|
|
3666
3749
|
const onOpenChange = (newIsOpen) => {
|
|
3667
3750
|
var _a, _b;
|
|
3668
|
-
|
|
3751
|
+
{
|
|
3669
3752
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
3670
3753
|
}
|
|
3671
3754
|
(_b = props.onOpenChange) === null || _b === void 0 ? void 0 : _b.call(props, newIsOpen);
|
|
@@ -3712,7 +3795,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
3712
3795
|
React__namespace.default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
3713
3796
|
}
|
|
3714
3797
|
|
|
3715
|
-
var css$r = {"container":"
|
|
3798
|
+
var css$r = {"container":"_14kw-Q"};
|
|
3716
3799
|
|
|
3717
3800
|
function FilterNumericBody(props) {
|
|
3718
3801
|
var _a, _b;
|
|
@@ -3810,7 +3893,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
3810
3893
|
};
|
|
3811
3894
|
var ForwardRef$i = /*#__PURE__*/React.forwardRef(SvgActionDeleteOutline);
|
|
3812
3895
|
|
|
3813
|
-
var css$q = {"uui-typography":"
|
|
3896
|
+
var css$q = {"uui-typography":"D8RB3e","uuiTypography":"D8RB3e","hero-header":"f3nas0","heroHeader":"f3nas0","promo-header":"ZgPBn7","promoHeader":"ZgPBn7","uui-critical":"zY6daX","uuiCritical":"zY6daX","uui-info":"oeTWy1","uuiInfo":"oeTWy1","uui-success":"yIySO-","uuiSuccess":"yIySO-","uui-warning":"j4adTr","uuiWarning":"j4adTr","uui-highlight":"rzO12l","uuiHighlight":"rzO12l","uui-typography-size-12":"Xmt5jB","uuiTypographySize12":"Xmt5jB","uui-typography-size-14":"DGk--L","uuiTypographySize14":"DGk--L","uui-typography-size-16":"shMth9","uuiTypographySize16":"shMth9","header":"GRWR3U","removeButton":"_9ukNQJ","with-search":"pXO0-F","withSearch":"pXO0-F"};
|
|
3814
3897
|
|
|
3815
3898
|
function useView(props, value) {
|
|
3816
3899
|
const forceUpdate = uuiCore.useForceUpdate();
|
|
@@ -4131,7 +4214,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4131
4214
|
}
|
|
4132
4215
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
4133
4216
|
|
|
4134
|
-
var css$p = {"divider":"
|
|
4217
|
+
var css$p = {"divider":"WUoHol","dropdownDeleteIcon":"EURDQT","presetsWrapper":"ue2wPg","addPresetContainer":"bSJiS6","dropContainer":"caIP9m"};
|
|
4135
4218
|
|
|
4136
4219
|
var _path$g;
|
|
4137
4220
|
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); }
|
|
@@ -4244,7 +4327,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4244
4327
|
};
|
|
4245
4328
|
var ForwardRef$a = /*#__PURE__*/React.forwardRef(SvgContentLinkOutline);
|
|
4246
4329
|
|
|
4247
|
-
var css$o = {"delete-button":"
|
|
4330
|
+
var css$o = {"delete-button":"nofb7J","deleteButton":"nofb7J","tab-button":"N-tFt6","tabButton":"N-tFt6","targetOpen":"qXwPW-"};
|
|
4248
4331
|
|
|
4249
4332
|
function PresetActionsDropdown(props) {
|
|
4250
4333
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -4304,7 +4387,7 @@ function PresetActionsDropdown(props) {
|
|
|
4304
4387
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4305
4388
|
}
|
|
4306
4389
|
|
|
4307
|
-
var css$n = {"preset-input-cell":"
|
|
4390
|
+
var css$n = {"preset-input-cell":"Dn-BMn","presetInputCell":"Dn-BMn","preset-input":"SsrZgS","presetInput":"SsrZgS"};
|
|
4308
4391
|
|
|
4309
4392
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4310
4393
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4337,7 +4420,7 @@ function PresetInput(props) {
|
|
|
4337
4420
|
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 })));
|
|
4338
4421
|
}
|
|
4339
4422
|
|
|
4340
|
-
var css$m = {"preset":"
|
|
4423
|
+
var css$m = {"preset":"NClphZ","activePreset":"ypn8yA"};
|
|
4341
4424
|
|
|
4342
4425
|
function Preset(props) {
|
|
4343
4426
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -4512,7 +4595,7 @@ var SvgTableGroupColumnRightFill = function SvgTableGroupColumnRightFill(props,
|
|
|
4512
4595
|
};
|
|
4513
4596
|
var ForwardRef$6 = /*#__PURE__*/React.forwardRef(SvgTableGroupColumnRightFill);
|
|
4514
4597
|
|
|
4515
|
-
var css$l = {"unpin-icon":"
|
|
4598
|
+
var css$l = {"unpin-icon":"Nicm0o","unpinIcon":"Nicm0o","pin-toggler-icon":"Ar8l5q","pinTogglerIcon":"Ar8l5q"};
|
|
4516
4599
|
|
|
4517
4600
|
function PinIconButton(props) {
|
|
4518
4601
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4571,7 +4654,7 @@ var SvgActionDragIndicator18 = function SvgActionDragIndicator18(props, ref) {
|
|
|
4571
4654
|
};
|
|
4572
4655
|
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgActionDragIndicator18);
|
|
4573
4656
|
|
|
4574
|
-
var css$k = {"uui-typography":"
|
|
4657
|
+
var css$k = {"uui-typography":"hfRTVq","uuiTypography":"hfRTVq","hero-header":"OU0AUx","heroHeader":"OU0AUx","promo-header":"r-9kU-","promoHeader":"r-9kU-","uui-critical":"Cwo-6p","uuiCritical":"Cwo-6p","uui-info":"Vze-Gg","uuiInfo":"Vze-Gg","uui-success":"L0hb6K","uuiSuccess":"L0hb6K","uui-warning":"n7qYbc","uuiWarning":"n7qYbc","uui-highlight":"_8HRIpN","uuiHighlight":"_8HRIpN","uui-typography-size-12":"_3z3LR-","uuiTypographySize12":"_3z3LR-","uui-typography-size-14":"IaCmch","uuiTypographySize14":"IaCmch","uui-typography-size-16":"yElhd5","uuiTypographySize16":"yElhd5","row-wrapper":"_8veK-v","rowWrapper":"_8veK-v","pin-icon-button":"H-iSoW","pinIconButton":"H-iSoW","not-pinned":"Kd6ZZu","notPinned":"Kd6ZZu","checkbox":"Y7mSyX","drag-handle":"Z33b4E","dragHandle":"Z33b4E","dnd-disabled":"MDQR6W","dndDisabled":"MDQR6W"};
|
|
4575
4658
|
|
|
4576
4659
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
4577
4660
|
const { column } = props;
|
|
@@ -4594,7 +4677,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4594
4677
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4595
4678
|
});
|
|
4596
4679
|
|
|
4597
|
-
var css$j = {"uui-typography":"
|
|
4680
|
+
var css$j = {"uui-typography":"hdjLyK","uuiTypography":"hdjLyK","hero-header":"SR-VsF","heroHeader":"SR-VsF","promo-header":"_1UlWSL","promoHeader":"_1UlWSL","uui-critical":"uiSXNK","uuiCritical":"uiSXNK","uui-info":"_2Kl32S","uuiInfo":"_2Kl32S","uui-success":"SjlGZN","uuiSuccess":"SjlGZN","uui-warning":"LdfJsS","uuiWarning":"LdfJsS","uui-highlight":"gTYVph","uuiHighlight":"gTYVph","uui-typography-size-12":"qvCcuR","uuiTypographySize12":"qvCcuR","uui-typography-size-14":"gJjxI-","uuiTypographySize14":"gJjxI-","uui-typography-size-16":"L4Q7oG","uuiTypographySize16":"L4Q7oG","root":"dK3DyX","main-panel":"kH6-jn","mainPanel":"kH6-jn","group":"OP5eLZ","group-title":"fSeTHO","groupTitle":"fSeTHO","group-items":"LnouUb","groupItems":"LnouUb","no-data":"LE-nho","noData":"LE-nho","no-data-title":"wtdbnk","noDataTitle":"wtdbnk","no-data-sub-title":"w-VtxK","noDataSubTitle":"w-VtxK","h-divider":"g62fQY","hDivider":"g62fQY","search-area":"Sflq0g","searchArea":"Sflq0g","subgroup-accordion":"isAVrA","subgroupAccordion":"isAVrA","subgroup":"GX6552","subgroup-title":"Whgn5e","subgroupTitle":"Whgn5e"};
|
|
4598
4681
|
|
|
4599
4682
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$j.group },
|
|
4600
4683
|
React__namespace.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -4683,7 +4766,7 @@ function SubGroup(props) {
|
|
|
4683
4766
|
return null;
|
|
4684
4767
|
}
|
|
4685
4768
|
|
|
4686
|
-
var css$i = {"listContainer":"
|
|
4769
|
+
var css$i = {"listContainer":"K-ETk4","header":"_9iM73l","group":"G-EGKa","stickyHeader":"t76FIc"};
|
|
4687
4770
|
|
|
4688
4771
|
const getChildrenAndRest = (row, rows) => {
|
|
4689
4772
|
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
@@ -4749,7 +4832,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4749
4832
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4750
4833
|
ref: ref
|
|
4751
4834
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
4752
|
-
clipPath: "url(#
|
|
4835
|
+
clipPath: "url(#zslffuwbe3x0hyms_a)"
|
|
4753
4836
|
}, _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4754
4837
|
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",
|
|
4755
4838
|
fill: "#F5F6FA"
|
|
@@ -4770,7 +4853,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4770
4853
|
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",
|
|
4771
4854
|
fill: "#1D1E26"
|
|
4772
4855
|
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
4773
|
-
id: "
|
|
4856
|
+
id: "zslffuefrkrogn54_b",
|
|
4774
4857
|
style: {
|
|
4775
4858
|
maskType: "alpha"
|
|
4776
4859
|
},
|
|
@@ -4783,7 +4866,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4783
4866
|
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",
|
|
4784
4867
|
fill: "#9BDEFF"
|
|
4785
4868
|
}))), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
4786
|
-
mask: "url(#
|
|
4869
|
+
mask: "url(#zslffuefrkrogn54_b)",
|
|
4787
4870
|
fillRule: "evenodd",
|
|
4788
4871
|
clipRule: "evenodd"
|
|
4789
4872
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -4869,7 +4952,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4869
4952
|
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",
|
|
4870
4953
|
fill: "#fff"
|
|
4871
4954
|
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
4872
|
-
id: "
|
|
4955
|
+
id: "zslffuwbe3x0hyms_a"
|
|
4873
4956
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
4874
4957
|
fill: "#fff",
|
|
4875
4958
|
transform: "translate(.552)",
|
|
@@ -4878,7 +4961,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4878
4961
|
};
|
|
4879
4962
|
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgEmptyTable);
|
|
4880
4963
|
|
|
4881
|
-
var css$h = {"root":"
|
|
4964
|
+
var css$h = {"root":"NooTnf","sticky-header":"IXbZMo","stickyHeader":"IXbZMo","no-results":"_90wEUV","noResults":"_90wEUV","icon":"_91Kmhl","title":"wjVG8n"};
|
|
4882
4965
|
|
|
4883
4966
|
function DataTable(props) {
|
|
4884
4967
|
var _a, _b, _c, _d;
|
|
@@ -4913,7 +4996,7 @@ function DataTable(props) {
|
|
|
4913
4996
|
]);
|
|
4914
4997
|
const renderRowsContainer = React__namespace.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4915
4998
|
React__namespace.createElement("div", { className: css$h.stickyHeader, ref: headerRef },
|
|
4916
|
-
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 }),
|
|
4999
|
+
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 }),
|
|
4917
5000
|
React__namespace.createElement("div", { className: uuiCore.cx(uuiCore.uuiScrollShadows.top, {
|
|
4918
5001
|
[uuiCore.uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
4919
5002
|
}) })),
|
|
@@ -4929,9 +5012,9 @@ function DataTable(props) {
|
|
|
4929
5012
|
} }))));
|
|
4930
5013
|
}
|
|
4931
5014
|
|
|
4932
|
-
var css$g = {"root":"
|
|
5015
|
+
var css$g = {"root":"ysccK0"};
|
|
4933
5016
|
|
|
4934
|
-
var css$f = {"root":"
|
|
5017
|
+
var css$f = {"root":"NV1wxU","burger-content":"LnKa9I","burgerContent":"LnKa9I"};
|
|
4935
5018
|
|
|
4936
5019
|
var _path$3;
|
|
4937
5020
|
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); }
|
|
@@ -4974,7 +5057,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
4974
5057
|
};
|
|
4975
5058
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
4976
5059
|
|
|
4977
|
-
var css$e = {"uui-typography":"
|
|
5060
|
+
var css$e = {"uui-typography":"ge6lrr","uuiTypography":"ge6lrr","hero-header":"R6ootK","heroHeader":"R6ootK","promo-header":"n-WTz1","promoHeader":"n-WTz1","uui-critical":"_8x2eyy","uuiCritical":"_8x2eyy","uui-info":"DB5Jh6","uuiInfo":"DB5Jh6","uui-success":"D3-5xg","uuiSuccess":"D3-5xg","uui-warning":"P5eAAr","uuiWarning":"P5eAAr","uui-highlight":"v5c-y3","uuiHighlight":"v5c-y3","uui-typography-size-12":"fYedE4","uuiTypographySize12":"fYedE4","uui-typography-size-14":"mrk0gV","uuiTypographySize14":"mrk0gV","uui-typography-size-16":"Nv5eod","uuiTypographySize16":"Nv5eod","root":"TGdMwl","button-primary":"bSgADo","buttonPrimary":"bSgADo","button-secondary":"fztJU-","buttonSecondary":"fztJU-","hasIcon":"_1ycqPX","dropdown":"JHDUEZ"};
|
|
4978
5061
|
|
|
4979
5062
|
const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
4980
5063
|
css$e.root,
|
|
@@ -4985,13 +5068,13 @@ const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (prop
|
|
|
4985
5068
|
props.icon && css$e.hasIcon,
|
|
4986
5069
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
4987
5070
|
|
|
4988
|
-
var css$d = {"search-input":"
|
|
5071
|
+
var css$d = {"search-input":"i1iw2c","searchInput":"i1iw2c"};
|
|
4989
5072
|
|
|
4990
5073
|
function BurgerSearch(props) {
|
|
4991
5074
|
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$O, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$R }));
|
|
4992
5075
|
}
|
|
4993
5076
|
|
|
4994
|
-
var css$c = {"root":"
|
|
5077
|
+
var css$c = {"root":"tEiErd","group-header":"jBZk12","groupHeader":"jBZk12","group-name":"WuI71n","groupName":"WuI71n","line":"UxGgi8"};
|
|
4995
5078
|
|
|
4996
5079
|
function BurgerGroupHeader(props) {
|
|
4997
5080
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4999,7 +5082,7 @@ function BurgerGroupHeader(props) {
|
|
|
4999
5082
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5000
5083
|
}
|
|
5001
5084
|
|
|
5002
|
-
var css$b = {"uui-typography":"
|
|
5085
|
+
var css$b = {"uui-typography":"S7G9sC","uuiTypography":"S7G9sC","hero-header":"Gjasnq","heroHeader":"Gjasnq","promo-header":"Tk67qC","promoHeader":"Tk67qC","uui-critical":"PTp1Un","uuiCritical":"PTp1Un","uui-info":"WZRCAb","uuiInfo":"WZRCAb","uui-success":"VtHsU0","uuiSuccess":"VtHsU0","uui-warning":"lzORec","uuiWarning":"lzORec","uui-highlight":"-uUWad","uuiHighlight":"-uUWad","uui-typography-size-12":"_9jZlIJ","uuiTypographySize12":"_9jZlIJ","uui-typography-size-14":"STZlQ8","uuiTypographySize14":"STZlQ8","uui-typography-size-16":"a5Wg0C","uuiTypographySize16":"a5Wg0C","root":"d8L9XE","type-primary":"WL9hwD","typePrimary":"WL9hwD","type-secondary":"TDnu0n","typeSecondary":"TDnu0n"};
|
|
5003
5086
|
|
|
5004
5087
|
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5005
5088
|
const { type } = props, clickableProps = __rest(props, ["type"]);
|
|
@@ -5015,7 +5098,7 @@ const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5015
5098
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
|
|
5016
5099
|
});
|
|
5017
5100
|
|
|
5018
|
-
var css$a = {"dropdown-body":"
|
|
5101
|
+
var css$a = {"dropdown-body":"_-3Qts7","dropdownBody":"_-3Qts7"};
|
|
5019
5102
|
|
|
5020
5103
|
class MainMenuDropdown extends React__namespace.Component {
|
|
5021
5104
|
render() {
|
|
@@ -5070,12 +5153,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5070
5153
|
};
|
|
5071
5154
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5072
5155
|
|
|
5073
|
-
var css$9 = {"global-menu-btn":"
|
|
5156
|
+
var css$9 = {"global-menu-btn":"EvIOVk","globalMenuBtn":"EvIOVk","global-menu-icon":"IV2Nbc","globalMenuIcon":"IV2Nbc"};
|
|
5074
5157
|
|
|
5075
5158
|
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),
|
|
5076
5159
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5077
5160
|
|
|
5078
|
-
var css$8 = {"container":"
|
|
5161
|
+
var css$8 = {"container":"_6otY3S","open":"_0jh-Rd","folding-arrow":"cg4DT5","foldingArrow":"cg4DT5"};
|
|
5079
5162
|
|
|
5080
5163
|
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 },
|
|
5081
5164
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5083,18 +5166,18 @@ const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5083
5166
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5084
5167
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5085
5168
|
|
|
5086
|
-
var css$7 = {"search-input":"
|
|
5169
|
+
var css$7 = {"search-input":"vLCki4","searchInput":"vLCki4"};
|
|
5087
5170
|
|
|
5088
5171
|
const MainMenuSearch = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
5089
5172
|
var _a;
|
|
5090
5173
|
return (React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition: "left", icon: ForwardRef$O, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$R }, props, iEditable, { ref: ref, cx: uuiCore.cx(css$7.searchInput, props.cx) }, props.rawProps)));
|
|
5091
5174
|
} }))));
|
|
5092
5175
|
|
|
5093
|
-
var css$6 = {"container":"
|
|
5176
|
+
var css$6 = {"container":"_03hE-9"};
|
|
5094
5177
|
|
|
5095
5178
|
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))));
|
|
5096
5179
|
|
|
5097
|
-
var css$5 = {"root":"
|
|
5180
|
+
var css$5 = {"root":"uRVbSA"};
|
|
5098
5181
|
|
|
5099
5182
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5100
5183
|
|
|
@@ -5152,7 +5235,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5152
5235
|
};
|
|
5153
5236
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
5154
5237
|
|
|
5155
|
-
var css$4 = {"root":"
|
|
5238
|
+
var css$4 = {"root":"S1bF7m","drop-start":"Gel8mZ","dropStart":"Gel8mZ","drop-over":"SN4q4H","dropOver":"SN4q4H","link":"Ur1m7i","drop-area":"vDdcWQ","dropArea":"vDdcWQ","drop-caption":"KyKK48","dropCaption":"KyKK48","icon-blue":"z099Tq","iconBlue":"z099Tq"};
|
|
5156
5239
|
|
|
5157
5240
|
function DropSpot(props) {
|
|
5158
5241
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5170,9 +5253,9 @@ function DropSpot(props) {
|
|
|
5170
5253
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5171
5254
|
}
|
|
5172
5255
|
|
|
5173
|
-
var css$3 = {"uui-typography":"
|
|
5256
|
+
var css$3 = {"uui-typography":"BTHLK7","uuiTypography":"BTHLK7","hero-header":"K-KlRs","heroHeader":"K-KlRs","promo-header":"ADlt4r","promoHeader":"ADlt4r","uui-critical":"Qp164z","uuiCritical":"Qp164z","uui-info":"PKAC-w","uuiInfo":"PKAC-w","uui-success":"NY25bG","uuiSuccess":"NY25bG","uui-warning":"GL-9e-","uuiWarning":"GL-9e-","uui-highlight":"_51dkE9","uuiHighlight":"_51dkE9","uui-typography-size-12":"VJFKvf","uuiTypographySize12":"VJFKvf","uui-typography-size-14":"iUp3iS","uuiTypographySize14":"iUp3iS","uui-typography-size-16":"_3nuaRf","uuiTypographySize16":"_3nuaRf","root":"b92utw","file-name":"_3iBS25","fileName":"_3iBS25","default-color":"ytSSnl","defaultColor":"ytSSnl","doc-color":"XdPvL4","docColor":"XdPvL4","xls-color":"AxoQBu","xlsColor":"AxoQBu","pdf-color":"WyTchL","pdfColor":"WyTchL","movie-color":"_9owr3w","movieColor":"_9owr3w","img-color":"S1ISHc","imgColor":"S1ISHc","mov-color":"IjjZdf","movColor":"IjjZdf","error-block":"xwE-ta","errorBlock":"xwE-ta","icons-block":"_5mXXPJ","iconsBlock":"_5mXXPJ"};
|
|
5174
5257
|
|
|
5175
|
-
var css$2 = {"root":"
|
|
5258
|
+
var css$2 = {"root":"ciOnoq"};
|
|
5176
5259
|
|
|
5177
5260
|
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5178
5261
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5282,22 +5365,25 @@ const getErrorPageConfig = () => ({
|
|
|
5282
5365
|
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Error_500_Monochrome.svg',
|
|
5283
5366
|
title: i18n.errorHandler.errorPageConfig.serverError.title,
|
|
5284
5367
|
subtitle: i18n.errorHandler.errorPageConfig.serverError.subtitle,
|
|
5368
|
+
supportLink: i18n.errorHandler.supportLink,
|
|
5285
5369
|
},
|
|
5286
5370
|
serviceUnavailable: {
|
|
5287
5371
|
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Error_503_Monochrome.svg',
|
|
5288
5372
|
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Error_503_Monochrome.svg',
|
|
5289
5373
|
title: i18n.errorHandler.errorPageConfig.serviceUnavailable.title,
|
|
5290
5374
|
subtitle: i18n.errorHandler.errorPageConfig.serviceUnavailable.subtitle,
|
|
5375
|
+
supportLink: i18n.errorHandler.supportLink,
|
|
5291
5376
|
},
|
|
5292
5377
|
default: {
|
|
5293
5378
|
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Empty_Monochrome.svg',
|
|
5294
5379
|
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Empty_Monochrome.svg',
|
|
5295
5380
|
title: i18n.errorHandler.errorPageConfig.default.title,
|
|
5296
5381
|
subtitle: i18n.errorHandler.errorPageConfig.default.subtitle,
|
|
5382
|
+
supportLink: i18n.errorHandler.supportLink,
|
|
5297
5383
|
},
|
|
5298
5384
|
});
|
|
5299
5385
|
|
|
5300
|
-
var css$1 = {"container":"
|
|
5386
|
+
var css$1 = {"container":"_5gu0D9"};
|
|
5301
5387
|
|
|
5302
5388
|
const ErrorPage = (props) => {
|
|
5303
5389
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -5305,10 +5391,11 @@ const ErrorPage = (props) => {
|
|
|
5305
5391
|
React__namespace.default.createElement("div", { className: "uui-error-content" },
|
|
5306
5392
|
React__namespace.default.createElement("img", { className: "uui-error-image", src: isMobileScreen && props.mobileImageUrl ? props.mobileImageUrl : props.imageUrl, alt: "ERROR OCCURRED!" }),
|
|
5307
5393
|
React__namespace.default.createElement("div", { className: "uui-error-title" }, props.title),
|
|
5308
|
-
React__namespace.default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle)
|
|
5394
|
+
React__namespace.default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle),
|
|
5395
|
+
React__namespace.default.createElement("div", { className: "uui-error-support-link" }, props === null || props === void 0 ? void 0 : props.supportLink))));
|
|
5309
5396
|
};
|
|
5310
5397
|
|
|
5311
|
-
var css = {"recovery-spinner":"
|
|
5398
|
+
var css = {"recovery-spinner":"MDkORu","recoverySpinner":"MDkORu","recovery-message":"p8UsBu","recoveryMessage":"p8UsBu","modal-blocker":"XZznBv","modalBlocker":"XZznBv","modalFadeIn":"Aj4asz"};
|
|
5312
5399
|
|
|
5313
5400
|
function ErrorHandler(props) {
|
|
5314
5401
|
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|