@epam/uui 5.11.0-alpha.0 → 5.12.0-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/buttons/Button.d.ts +1 -1
- package/components/buttons/Button.d.ts.map +1 -1
- package/components/datePickers/RangeDatePicker.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerInput.d.ts +4 -0
- package/components/datePickers/RangeDatePickerInput.d.ts.map +1 -1
- package/components/inputs/MultiSwitch.d.ts +11 -3
- package/components/inputs/MultiSwitch.d.ts.map +1 -1
- package/components/layout/Accordion.d.ts.map +1 -1
- package/components/layout/ControlGroup.d.ts.map +1 -1
- package/components/overlays/Modals.d.ts.map +1 -1
- package/components/pickers/DataPickerFooter.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/components/tables/columnsConfigurationModal/ColumnRow.d.ts.map +1 -1
- package/components/typography/Text.d.ts.map +1 -1
- package/index.esm.js +418 -335
- package/index.esm.js.map +1 -1
- package/index.js +417 -334
- package/index.js.map +1 -1
- package/package.json +6 -6
- package/settings.d.ts.map +1 -1
- package/settings.types.d.ts +13 -1
- package/settings.types.d.ts.map +1 -1
- package/stats.html +1 -19
- package/styles.css +2843 -2593
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -547,6 +547,25 @@ const settings = {
|
|
|
547
547
|
},
|
|
548
548
|
truncate: ['48'],
|
|
549
549
|
},
|
|
550
|
+
groupCell: {
|
|
551
|
+
defaults: {
|
|
552
|
+
size: '36',
|
|
553
|
+
padding: '12',
|
|
554
|
+
paddingEdge: '24',
|
|
555
|
+
},
|
|
556
|
+
columnCaption: {
|
|
557
|
+
fontSize: '14',
|
|
558
|
+
fontWeight: '400',
|
|
559
|
+
size: '18',
|
|
560
|
+
uppercase: '12',
|
|
561
|
+
},
|
|
562
|
+
iconSize: {
|
|
563
|
+
36: '18',
|
|
564
|
+
48: '18',
|
|
565
|
+
60: '18',
|
|
566
|
+
},
|
|
567
|
+
truncate: ['48'],
|
|
568
|
+
},
|
|
550
569
|
},
|
|
551
570
|
},
|
|
552
571
|
body: {
|
|
@@ -581,7 +600,7 @@ const settings = {
|
|
|
581
600
|
modal: {
|
|
582
601
|
window: {
|
|
583
602
|
defaults: {
|
|
584
|
-
width:
|
|
603
|
+
width: 420,
|
|
585
604
|
},
|
|
586
605
|
},
|
|
587
606
|
},
|
|
@@ -595,11 +614,11 @@ const settings = {
|
|
|
595
614
|
},
|
|
596
615
|
};
|
|
597
616
|
|
|
598
|
-
var css$
|
|
617
|
+
var css$1x = {"uui-typography":"oPhd0A","hero-header":"CVggzf","promo-header":"-NftxO","uui-critical":"BjTM8o","uui-info":"UbWgsY","uui-success":"_4y88m-","uui-warning":"kzBfRe","uui-highlight":"PP1oA8","uui-typography-size-12":"BKSrF2","uui-typography-size-14":"Z2pfLR","uui-typography-size-16":"kogV7Z","root":"qynglP","uuiTypography":"oPhd0A","heroHeader":"CVggzf","promoHeader":"-NftxO","uuiCritical":"BjTM8o","uuiInfo":"UbWgsY","uuiSuccess":"_4y88m-","uuiWarning":"kzBfRe","uuiHighlight":"PP1oA8","uuiTypographySize12":"BKSrF2","uuiTypographySize14":"Z2pfLR","uuiTypographySize16":"kogV7Z"};
|
|
599
618
|
|
|
600
619
|
function applyButtonMods(mods) {
|
|
601
620
|
return [
|
|
602
|
-
css$
|
|
621
|
+
css$1x.root,
|
|
603
622
|
'uui-button',
|
|
604
623
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
605
624
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -613,10 +632,10 @@ const Button = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Button,
|
|
|
613
632
|
};
|
|
614
633
|
});
|
|
615
634
|
|
|
616
|
-
var css$
|
|
635
|
+
var css$1w = {"root":"yu82wx"};
|
|
617
636
|
|
|
618
637
|
function applyIconButtonMods(props) {
|
|
619
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
638
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1w.root];
|
|
620
639
|
}
|
|
621
640
|
const IconButton = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.IconButton, applyIconButtonMods, (props) => {
|
|
622
641
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -650,7 +669,7 @@ function getIconClass(props) {
|
|
|
650
669
|
return [classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon', classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon'];
|
|
651
670
|
}
|
|
652
671
|
|
|
653
|
-
var css$
|
|
672
|
+
var css$1v = {"uui-typography":"zdx-JE","hero-header":"_0-kBf4","promo-header":"R-rHPK","uui-critical":"S2NOCn","uui-info":"_4tHaa4","uui-success":"zUgmsy","uui-warning":"UMDHBQ","uui-highlight":"QaI3-r","uui-typography-size-12":"-M93cb","uui-typography-size-14":"JeIj6-","uui-typography-size-16":"nn31sc","root":"XWXkk0","uuiTypography":"zdx-JE","heroHeader":"_0-kBf4","promoHeader":"R-rHPK","uuiCritical":"S2NOCn","uuiInfo":"_4tHaa4","uuiSuccess":"zUgmsy","uuiWarning":"UMDHBQ","uuiHighlight":"QaI3-r","uuiTypographySize12":"-M93cb","uuiTypographySize14":"JeIj6-","uuiTypographySize16":"nn31sc"};
|
|
654
673
|
|
|
655
674
|
const DEFAULT_COLOR = 'primary';
|
|
656
675
|
const DEFAULT_WEIGHT = 'semibold';
|
|
@@ -666,7 +685,7 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
666
685
|
}
|
|
667
686
|
const rootStyles = [
|
|
668
687
|
'uui-link_button',
|
|
669
|
-
css$
|
|
688
|
+
css$1v.root,
|
|
670
689
|
`uui-size-${props.size || settings.sizes.defaults.linkButton}`,
|
|
671
690
|
...getIconClass(props),
|
|
672
691
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -681,11 +700,11 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
681
700
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
682
701
|
});
|
|
683
702
|
|
|
684
|
-
var css$
|
|
703
|
+
var css$1u = {"root":"_1NYrxj"};
|
|
685
704
|
|
|
686
705
|
const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
687
706
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
688
|
-
css$
|
|
707
|
+
css$1u.root,
|
|
689
708
|
'uui-count_indicator',
|
|
690
709
|
`uui-size-${props.size || settings.sizes.defaults.countIndicator}`,
|
|
691
710
|
props.color && `uui-color-${props.color}`,
|
|
@@ -693,11 +712,11 @@ const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
693
712
|
]) }, props.caption));
|
|
694
713
|
});
|
|
695
714
|
|
|
696
|
-
var css$
|
|
715
|
+
var css$1t = {"uui-typography":"dLx-4U","hero-header":"FhHpzj","promo-header":"_2DFdxd","uui-critical":"tKRuYD","uui-info":"Fz-bK2","uui-success":"H0wz--","uui-warning":"XlwlkV","uui-highlight":"HL-Yb6","uui-typography-size-12":"YTJm-J","uui-typography-size-14":"nn7pw9","uui-typography-size-16":"upAMrm","root":"lRoUG2","withNotify":"iErYq4","uuiTypography":"dLx-4U","heroHeader":"FhHpzj","promoHeader":"_2DFdxd","uuiCritical":"tKRuYD","uuiInfo":"Fz-bK2","uuiSuccess":"H0wz--","uuiWarning":"XlwlkV","uuiHighlight":"HL-Yb6","uuiTypographySize12":"YTJm-J","uuiTypographySize14":"nn7pw9","uuiTypographySize16":"upAMrm"};
|
|
697
716
|
|
|
698
717
|
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
699
718
|
const styles = [
|
|
700
|
-
css$
|
|
719
|
+
css$1t.root,
|
|
701
720
|
'uui-tab-button',
|
|
702
721
|
`uui-size-${props.size || settings.sizes.defaults.tabButton}`,
|
|
703
722
|
...getIconClass(props),
|
|
@@ -709,17 +728,17 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
709
728
|
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
710
729
|
(props.caption || props.withNotify) && (React__namespace.default.createElement("div", { className: uuiCore.cx(uuiCore.uuiElement.caption) },
|
|
711
730
|
props.caption,
|
|
712
|
-
props.withNotify && React__namespace.default.createElement("div", { className: css$
|
|
731
|
+
props.withNotify && React__namespace.default.createElement("div", { className: css$1t.withNotify }))),
|
|
713
732
|
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
714
733
|
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { color: "neutral", size: settings.sizes.tabButton.countIndicator[props.size || settings.sizes.defaults.tabButton], caption: props.count })),
|
|
715
734
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
716
735
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
717
736
|
});
|
|
718
737
|
|
|
719
|
-
var css$
|
|
738
|
+
var css$1s = {"uui-typography":"dN-7su","hero-header":"Ak0Pf0","promo-header":"S7wuRt","uui-critical":"Q6BLlK","uui-info":"l3tkPb","uui-success":"D1QyYi","uui-warning":"QF-Gdz","uui-highlight":"INl9bc","uui-typography-size-12":"PtxwTU","uui-typography-size-14":"_1VKeOH","uui-typography-size-16":"GNbNo-","root":"C7t3p1","uuiTypography":"dN-7su","heroHeader":"Ak0Pf0","promoHeader":"S7wuRt","uuiCritical":"Q6BLlK","uuiInfo":"l3tkPb","uuiSuccess":"D1QyYi","uuiWarning":"QF-Gdz","uuiHighlight":"INl9bc","uuiTypographySize12":"PtxwTU","uuiTypographySize14":"_1VKeOH","uuiTypographySize16":"GNbNo-"};
|
|
720
739
|
|
|
721
740
|
function applyVerticalTabButtonMods() {
|
|
722
|
-
return [css$
|
|
741
|
+
return [css$1s.root, 'uui-vertical-tab-button'];
|
|
723
742
|
}
|
|
724
743
|
const VerticalTabButton = /* @__PURE__ */uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
725
744
|
|
|
@@ -738,13 +757,13 @@ var SvgContentMinusOutline = function SvgContentMinusOutline(props, ref) {
|
|
|
738
757
|
};
|
|
739
758
|
var ForwardRef$B = /*#__PURE__*/React.forwardRef(SvgContentMinusOutline);
|
|
740
759
|
|
|
741
|
-
var css$
|
|
760
|
+
var css$1r = {"uui-typography":"Xum7fa","hero-header":"KAMHwn","promo-header":"cQVXec","uui-critical":"KYss4W","uui-info":"GEuQ86","uui-success":"zkwvSN","uui-warning":"tAiNa7","uui-highlight":"pB65h7","uui-typography-size-12":"iJAK5C","uui-typography-size-14":"xb-8ur","uui-typography-size-16":"_9K8M3Y","root":"Q9H8K9","mode-cell":"GAuoD7","uuiTypography":"Xum7fa","heroHeader":"KAMHwn","promoHeader":"cQVXec","uuiCritical":"KYss4W","uuiInfo":"GEuQ86","uuiSuccess":"zkwvSN","uuiWarning":"tAiNa7","uuiHighlight":"pB65h7","uuiTypographySize12":"iJAK5C","uuiTypographySize14":"xb-8ur","uuiTypographySize16":"_9K8M3Y","modeCell":"GAuoD7"};
|
|
742
761
|
|
|
743
762
|
function applyCheckboxMods(mods) {
|
|
744
763
|
return [
|
|
745
|
-
css$
|
|
764
|
+
css$1r.root,
|
|
746
765
|
`uui-size-${mods.size || settings.sizes.defaults.checkbox}`,
|
|
747
|
-
css$
|
|
766
|
+
css$1r['mode-' + (mods.mode || 'form')],
|
|
748
767
|
'uui-color-primary',
|
|
749
768
|
];
|
|
750
769
|
}
|
|
@@ -773,11 +792,11 @@ var SvgRadioDotFill = function SvgRadioDotFill(props, ref) {
|
|
|
773
792
|
};
|
|
774
793
|
var ForwardRef$A = /*#__PURE__*/React.forwardRef(SvgRadioDotFill);
|
|
775
794
|
|
|
776
|
-
var css$
|
|
795
|
+
var css$1q = {"uui-typography":"uJbYnl","hero-header":"iJTujC","promo-header":"vuDC5h","uui-critical":"_4s4haN","uui-info":"InZWIw","uui-success":"CTtlBO","uui-warning":"Q-WJa7","uui-highlight":"SbFe61","uui-typography-size-12":"PBaSw3","uui-typography-size-14":"kOjG1t","uui-typography-size-16":"jbNH0d","root":"pbQKvc","uuiTypography":"uJbYnl","heroHeader":"iJTujC","promoHeader":"vuDC5h","uuiCritical":"_4s4haN","uuiInfo":"InZWIw","uuiSuccess":"CTtlBO","uuiWarning":"Q-WJa7","uuiHighlight":"SbFe61","uuiTypographySize12":"PBaSw3","uuiTypographySize14":"kOjG1t","uuiTypographySize16":"jbNH0d"};
|
|
777
796
|
|
|
778
797
|
function applyRadioInputMods(mods) {
|
|
779
798
|
return [
|
|
780
|
-
css$
|
|
799
|
+
css$1q.root,
|
|
781
800
|
`uui-size-${mods.size || settings.sizes.defaults.radioInput}`,
|
|
782
801
|
'uui-radio-input-container',
|
|
783
802
|
'uui-color-primary',
|
|
@@ -785,11 +804,11 @@ function applyRadioInputMods(mods) {
|
|
|
785
804
|
}
|
|
786
805
|
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$A }));
|
|
787
806
|
|
|
788
|
-
var css$
|
|
807
|
+
var css$1p = {"root":"ZRH9cY"};
|
|
789
808
|
|
|
790
809
|
function applySwitchMods(mods) {
|
|
791
810
|
return [
|
|
792
|
-
css$
|
|
811
|
+
css$1p.root,
|
|
793
812
|
`uui-size-${mods.size || settings.sizes.defaults.switch}`,
|
|
794
813
|
'uui-color-primary',
|
|
795
814
|
];
|
|
@@ -853,7 +872,7 @@ var EditMode;
|
|
|
853
872
|
EditMode["INLINE"] = "inline";
|
|
854
873
|
})(EditMode || (EditMode = {}));
|
|
855
874
|
|
|
856
|
-
var textInputCss = {"uui-typography":"
|
|
875
|
+
var textInputCss = {"uui-typography":"pVS-sF","hero-header":"mCEgin","promo-header":"_2OTLgm","uui-critical":"FlrKsi","uui-info":"_--OeNo","uui-success":"cHlf0E","uui-warning":"g45Sjk","uui-highlight":"KkdBYT","uui-typography-size-12":"qKjMFO","uui-typography-size-14":"ryMt5D","uui-typography-size-16":"_-8c8gS","root":"tpd9k0","mode-form":"je1CdM","mode-inline":"doSyGv","mode-cell":"zx-kpK","uuiTypography":"pVS-sF","heroHeader":"mCEgin","promoHeader":"_2OTLgm","uuiCritical":"FlrKsi","uuiInfo":"_--OeNo","uuiSuccess":"cHlf0E","uuiWarning":"g45Sjk","uuiHighlight":"KkdBYT","uuiTypographySize12":"qKjMFO","uuiTypographySize14":"ryMt5D","uuiTypographySize16":"_-8c8gS","modeForm":"je1CdM","modeInline":"doSyGv","modeCell":"zx-kpK"};
|
|
857
876
|
|
|
858
877
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
859
878
|
function applyTextInputMods(mods) {
|
|
@@ -879,22 +898,22 @@ const SearchInput = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
879
898
|
} })));
|
|
880
899
|
});
|
|
881
900
|
|
|
882
|
-
var css$
|
|
901
|
+
var css$1o = {"root":"_0LKW--"};
|
|
883
902
|
|
|
884
|
-
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
903
|
+
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1o.root, 'uui-control-group']);
|
|
885
904
|
|
|
886
905
|
function MultiSwitchComponent(props, ref) {
|
|
887
906
|
return (React__namespace.createElement(ControlGroup, { ref: ref, rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'tablist', 'aria-invalid': props.isInvalid, 'aria-required': props.isRequired, 'aria-disabled': props.isDisabled, 'aria-readonly': props.isReadonly }) }, props.items.map((item, index) => (React__namespace.createElement(Button, Object.assign({}, props, item, { isDisabled: props.isDisabled, key: index + '-' + item.id, onClick: () => props.onValueChange(item.id), fill: props.value === item.id ? 'solid' : 'outline', color: props.color, size: props.size, rawProps: { 'aria-current': props.value === item.id, role: 'tab' } }))))));
|
|
888
907
|
}
|
|
889
908
|
const MultiSwitch = /* @__PURE__ */React__namespace.forwardRef(MultiSwitchComponent);
|
|
890
909
|
|
|
891
|
-
var css$
|
|
910
|
+
var css$1n = {"uui-typography":"ciPUQF","hero-header":"nhRrkT","promo-header":"WLhj8e","uui-critical":"q150ZZ","uui-info":"iSqHZR","uui-success":"RE-u8S","uui-warning":"j47Bgy","uui-highlight":"qJmBUJ","uui-typography-size-12":"vZa2DQ","uui-typography-size-14":"_6AKohz","uui-typography-size-16":"EkSKCw","root":"Gm24wJ","mode-form":"I9-Tit","mode-cell":"z088yj","uuiTypography":"ciPUQF","heroHeader":"nhRrkT","promoHeader":"WLhj8e","uuiCritical":"q150ZZ","uuiInfo":"iSqHZR","uuiSuccess":"RE-u8S","uuiWarning":"j47Bgy","uuiHighlight":"qJmBUJ","uuiTypographySize12":"vZa2DQ","uuiTypographySize14":"_6AKohz","uuiTypographySize16":"EkSKCw","modeForm":"I9-Tit","modeCell":"z088yj"};
|
|
892
911
|
|
|
893
912
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
894
913
|
function applyNumericInputMods(mods) {
|
|
895
914
|
return [
|
|
896
915
|
textInputCss.root,
|
|
897
|
-
css$
|
|
916
|
+
css$1n.root,
|
|
898
917
|
`uui-size-${mods.size || settings.sizes.defaults.numericInput}`,
|
|
899
918
|
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$2)],
|
|
900
919
|
];
|
|
@@ -909,15 +928,15 @@ const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput,
|
|
|
909
928
|
};
|
|
910
929
|
});
|
|
911
930
|
|
|
912
|
-
var css$
|
|
931
|
+
var css$1m = {"uui-typography":"l6ZqIK","hero-header":"TPwPit","promo-header":"MLmpQy","uui-critical":"BogZTk","uui-info":"x0-wAD","uui-success":"cw17RX","uui-warning":"xrfO9g","uui-highlight":"ySwAAH","uui-typography-size-12":"InfUKw","uui-typography-size-14":"xXFVJe","uui-typography-size-16":"NPQLGP","root":"-gEmdq","mode-form":"-YQGA2","mode-cell":"b1Ff1I","mode-inline":"fjd2sh","uuiTypography":"l6ZqIK","heroHeader":"TPwPit","promoHeader":"MLmpQy","uuiCritical":"BogZTk","uuiInfo":"x0-wAD","uuiSuccess":"cw17RX","uuiWarning":"xrfO9g","uuiHighlight":"ySwAAH","uuiTypographySize12":"InfUKw","uuiTypographySize14":"xXFVJe","uuiTypographySize16":"NPQLGP","modeForm":"-YQGA2","modeCell":"b1Ff1I","modeInline":"fjd2sh"};
|
|
913
932
|
|
|
914
933
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
915
934
|
function applyTextAreaMods(mods) {
|
|
916
935
|
return [
|
|
917
|
-
css$
|
|
936
|
+
css$1m.root,
|
|
918
937
|
'uui-textarea',
|
|
919
938
|
'uui-size-' + (mods.size || settings.sizes.defaults.textArea),
|
|
920
|
-
css$
|
|
939
|
+
css$1m['mode-' + (mods.mode || DEFAULT_MODE$1)],
|
|
921
940
|
];
|
|
922
941
|
}
|
|
923
942
|
const TextArea = /* @__PURE__ */uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (props) => {
|
|
@@ -1010,16 +1029,16 @@ var SvgNotificationInfoFill = function SvgNotificationInfoFill(props, ref) {
|
|
|
1010
1029
|
};
|
|
1011
1030
|
var ForwardRef$w = /*#__PURE__*/React.forwardRef(SvgNotificationInfoFill);
|
|
1012
1031
|
|
|
1013
|
-
var css$
|
|
1032
|
+
var css$1l = {"uui-typography":"PMJG-b","hero-header":"O-SC5Z","promo-header":"gsbmdn","uui-critical":"VKPTEA","uui-info":"eCXqCl","uui-success":"_9zjZG-","uui-warning":"jCBUMD","uui-highlight":"JLJ65V","uui-typography-size-12":"_50xFx3","uui-typography-size-14":"aTWZYi","uui-typography-size-16":"U4Od2w","root":"y3WfNT","icon-wrapper":"_3-4P0p","alert-wrapper":"_5fhSly","size-48":"a2K7ZG","size-36":"ouOP9C","action-wrapper":"JdZtRw","action-icon":"siFkBM","action-link":"zJ43Fs","close-icon":"Fu4aiV","main-path":"wClHGr","content":"pRlo3t","uuiTypography":"PMJG-b","heroHeader":"O-SC5Z","promoHeader":"gsbmdn","uuiCritical":"VKPTEA","uuiInfo":"eCXqCl","uuiSuccess":"_9zjZG-","uuiWarning":"jCBUMD","uuiHighlight":"JLJ65V","uuiTypographySize12":"_50xFx3","uuiTypographySize14":"aTWZYi","uuiTypographySize16":"U4Od2w","iconWrapper":"_3-4P0p","alertWrapper":"_5fhSly","size48":"a2K7ZG","size36":"ouOP9C","actionWrapper":"JdZtRw","actionIcon":"siFkBM","actionLink":"zJ43Fs","closeIcon":"Fu4aiV","mainPath":"wClHGr"};
|
|
1014
1033
|
|
|
1015
|
-
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default('uui-alert', css$
|
|
1016
|
-
React__namespace.createElement("div", { className: css$
|
|
1017
|
-
props.icon && (React__namespace.createElement("div", { className: css$
|
|
1018
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
1019
|
-
React__namespace.createElement("div", { className: css$
|
|
1034
|
+
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default('uui-alert', css$1l.root, css$1l.alertWrapper, props.color && `uui-color-${props.color}`, props.cx, (props.size === '36' ? css$1l.size36 : css$1l.size48)) }, props.rawProps),
|
|
1035
|
+
React__namespace.createElement("div", { className: css$1l.mainPath },
|
|
1036
|
+
props.icon && (React__namespace.createElement("div", { className: css$1l.iconWrapper },
|
|
1037
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$1l.actionIcon }))),
|
|
1038
|
+
React__namespace.createElement("div", { className: css$1l.content },
|
|
1020
1039
|
props.children,
|
|
1021
|
-
props.actions && (React__namespace.createElement("div", { className: css$
|
|
1022
|
-
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$Q, color: "neutral", onClick: props.onClose, cx: css$
|
|
1040
|
+
props.actions && (React__namespace.createElement("div", { className: css$1l.actionWrapper }, props.actions.map((action) => (React__namespace.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$1l.actionLink, size: (props === null || props === void 0 ? void 0 : props.size) === '36' ? '24' : '30' })))))),
|
|
1041
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$Q, color: "neutral", onClick: props.onClose, cx: css$1l.closeIcon })))));
|
|
1023
1042
|
const WarningAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$y, color: "warning", ref: ref }, props)));
|
|
1024
1043
|
const SuccessAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$z, color: "success", ref: ref }, props)));
|
|
1025
1044
|
const HintAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$w, color: "info", ref: ref }, props)));
|
|
@@ -1027,18 +1046,18 @@ const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => Re
|
|
|
1027
1046
|
|
|
1028
1047
|
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
1029
1048
|
|
|
1030
|
-
var css$
|
|
1049
|
+
var css$1k = {"root":"XFl9F-"};
|
|
1031
1050
|
|
|
1032
1051
|
function applyDropdownContainerMods(mods) {
|
|
1033
1052
|
return [
|
|
1034
|
-
css$
|
|
1053
|
+
css$1k.root,
|
|
1035
1054
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1036
1055
|
mods.padding && `padding-${mods.padding}`,
|
|
1037
1056
|
];
|
|
1038
1057
|
}
|
|
1039
1058
|
const DropdownContainer = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1040
1059
|
|
|
1041
|
-
var css$
|
|
1060
|
+
var css$1j = {"uui-typography":"tHnCx1","hero-header":"FCXIwa","promo-header":"OBTgKD","uui-critical":"CyBap-","uui-info":"aRcBOY","uui-success":"Q-Rjd0","uui-warning":"Bq3WFX","uui-highlight":"-cX8U7","uui-typography-size-12":"HDH3fz","uui-typography-size-14":"pJoBlV","uui-typography-size-16":"uu6jAZ","submenu-root-item-rtl":"zuuDqN","icon-after":"_1JPZz3","submenu-root-item":"gSVcWt","icon-check":"b72yW6","splitter-root":"qy9-We","splitter":"ByAt6-","header-root":"Df-Rn0","item-root":"_2keaAd","icon":"Gu06Zv","link":"QQsoh4","indent":"Rminog","selected-mark":"YW-Elt","uuiTypography":"tHnCx1","heroHeader":"FCXIwa","promoHeader":"OBTgKD","uuiCritical":"CyBap-","uuiInfo":"aRcBOY","uuiSuccess":"Q-Rjd0","uuiWarning":"Bq3WFX","uuiHighlight":"-cX8U7","uuiTypographySize12":"HDH3fz","uuiTypographySize14":"pJoBlV","uuiTypographySize16":"uu6jAZ","submenuRootItemRtl":"zuuDqN","iconAfter":"_1JPZz3","submenuRootItem":"gSVcWt","iconCheck":"b72yW6","splitterRoot":"qy9-We","headerRoot":"Df-Rn0","itemRoot":"_2keaAd","selectedMark":"YW-Elt"};
|
|
1042
1061
|
|
|
1043
1062
|
exports.IDropdownControlKeys = void 0;
|
|
1044
1063
|
(function (IDropdownControlKeys) {
|
|
@@ -1099,17 +1118,17 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
1099
1118
|
const getMenuButtonContent = () => {
|
|
1100
1119
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1101
1120
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1102
|
-
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$
|
|
1121
|
+
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$1j.icon, iconPosition === 'right' ? css$1j.iconAfter : css$1j.iconBefore) }));
|
|
1103
1122
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1104
1123
|
isIconBefore && iconElement,
|
|
1105
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$
|
|
1124
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$1j.indent }, caption),
|
|
1106
1125
|
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1107
1126
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1108
1127
|
iconElement))));
|
|
1109
1128
|
};
|
|
1110
1129
|
const isAnchor = Boolean(link || href);
|
|
1111
|
-
const itemClassNames = uuiCore.cx(props.cx, css$
|
|
1112
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$
|
|
1130
|
+
const itemClassNames = uuiCore.cx(props.cx, css$1j.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened);
|
|
1131
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$1j.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isLinkActive: isActive, isDisabled: isDisabled, target: target }, getMenuButtonContent())) : (React__namespace.default.createElement(uuiComponents.FlexRow, { rawProps: {
|
|
1113
1132
|
tabIndex: isDisabled ? -1 : 0,
|
|
1114
1133
|
role: 'menuitem',
|
|
1115
1134
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
@@ -1117,15 +1136,15 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
1117
1136
|
getMenuButtonContent(),
|
|
1118
1137
|
isSelected && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1119
1138
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1120
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: systemIcons.accept, cx: css$
|
|
1139
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: systemIcons.accept, cx: css$1j.selectedMark })))));
|
|
1121
1140
|
});
|
|
1122
1141
|
function DropdownMenuSplitter(props) {
|
|
1123
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
1124
|
-
React__namespace.default.createElement("hr", { className: css$
|
|
1142
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$1j.splitterRoot) },
|
|
1143
|
+
React__namespace.default.createElement("hr", { className: css$1j.splitter })));
|
|
1125
1144
|
}
|
|
1126
1145
|
function DropdownMenuHeader(props) {
|
|
1127
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$
|
|
1128
|
-
React__namespace.default.createElement("span", { className: css$
|
|
1146
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$1j.headerRoot) },
|
|
1147
|
+
React__namespace.default.createElement("span", { className: css$1j.header }, props.caption)));
|
|
1129
1148
|
}
|
|
1130
1149
|
function DropdownSubMenu(props) {
|
|
1131
1150
|
const subMenuModifiers = [
|
|
@@ -1147,7 +1166,7 @@ function DropdownSubMenu(props) {
|
|
|
1147
1166
|
const isRtl = (window === null || window === void 0 ? void 0 : window.document.dir) === 'rtl';
|
|
1148
1167
|
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__namespace.default.createElement(DropdownMenuBody, Object.assign({ closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW }, props, dropdownProps))), renderTarget: (_a) => {
|
|
1149
1168
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
1150
|
-
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(isRtl ? css$
|
|
1169
|
+
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(isRtl ? css$1j.submenuRootItemRtl : css$1j.submenuRootItem), icon: systemIcons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
1151
1170
|
} }));
|
|
1152
1171
|
}
|
|
1153
1172
|
function DropdownMenuSwitchButton(props) {
|
|
@@ -1164,32 +1183,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1164
1183
|
onHandleValueChange(!isSelected);
|
|
1165
1184
|
}
|
|
1166
1185
|
};
|
|
1167
|
-
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$
|
|
1168
|
-
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$
|
|
1186
|
+
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$1j.itemRoot, isDisabled && uuiCore.uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
1187
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$1j.iconBefore }),
|
|
1169
1188
|
React__namespace.default.createElement(uuiComponents.Text, null, caption),
|
|
1170
1189
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1171
1190
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1172
1191
|
}
|
|
1173
1192
|
|
|
1174
|
-
var css$
|
|
1193
|
+
var css$1i = {"uui-typography":"DyjuLb","hero-header":"EWSlpK","promo-header":"OF1tzH","uui-critical":"_4Z7zvA","uui-info":"eIN72N","uui-success":"wqyN0p","uui-warning":"kABoy-","uui-highlight":"ivsJ18","uui-typography-size-12":"E7YHDb","uui-typography-size-14":"Z5wU-M","uui-typography-size-16":"u0sEjd","root":"B3wNKp","mode-block":"khw55M","mode-inline":"_2Tu88U","padding-0":"PkWsB-","padding-6":"BSJ-82","padding-12":"sC2Gx4","padding-18":"BaYnDn","uuiTypography":"DyjuLb","heroHeader":"EWSlpK","promoHeader":"OF1tzH","uuiCritical":"_4Z7zvA","uuiInfo":"eIN72N","uuiSuccess":"wqyN0p","uuiWarning":"kABoy-","uuiHighlight":"ivsJ18","uuiTypographySize12":"E7YHDb","uuiTypographySize14":"Z5wU-M","uuiTypographySize16":"u0sEjd","modeBlock":"khw55M","modeInline":"_2Tu88U","padding0":"PkWsB-","padding6":"BSJ-82","padding12":"sC2Gx4","padding18":"BaYnDn"};
|
|
1175
1194
|
|
|
1176
|
-
const getMode = (mode) => {
|
|
1177
|
-
return mode || 'block';
|
|
1178
|
-
};
|
|
1179
1195
|
function applyAccordionMods(mods) {
|
|
1180
1196
|
return [
|
|
1181
|
-
css$
|
|
1182
|
-
css$
|
|
1183
|
-
mods.padding && css$
|
|
1197
|
+
css$1i.root,
|
|
1198
|
+
css$1i[`mode-${mods.mode || 'block'}`],
|
|
1199
|
+
mods.padding && css$1i['padding-' + mods.padding],
|
|
1184
1200
|
];
|
|
1185
1201
|
}
|
|
1186
1202
|
const Accordion = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Accordion, applyAccordionMods, (mods) => ({
|
|
1187
1203
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons.foldingArrow,
|
|
1188
1204
|
}));
|
|
1189
1205
|
|
|
1190
|
-
var css$
|
|
1206
|
+
var css$1h = {"uui-typography":"_0jAbuc","hero-header":"iozeTp","promo-header":"ZcvPs0","uui-critical":"_45qA6c","uui-info":"-FTf7X","uui-success":"IyLK7Y","uui-warning":"bBe8Y9","uui-highlight":"dtMFxJ","uui-typography-size-12":"bq7bbQ","uui-typography-size-14":"eFexoQ","uui-typography-size-16":"EeNwE-","root":"V07F8U","border-top":"_4nzZq1","border-bottom":"HP0Fcb","top-shadow":"_-0hCEK","padding-6":"_2aYHWt","padding-12":"U2c7U-","padding-18":"yK06l4","padding-24":"_7DwiSL","margin-24":"-P-E-A","margin-12":"_34iKbG","vPadding-12":"_82BmZc","vPadding-18":"T0C8jO","vPadding-24":"uK8wUN","vPadding-36":"Zz8rJB","vPadding-48":"Ms9IKw","spacing-6":"_7Fh8Qs","spacing-12":"ozNo8h","spacing-18":"S9bOmm","uui-surface-main":"eL7dye","uuiTypography":"_0jAbuc","heroHeader":"iozeTp","promoHeader":"ZcvPs0","uuiCritical":"_45qA6c","uuiInfo":"-FTf7X","uuiSuccess":"IyLK7Y","uuiWarning":"bBe8Y9","uuiHighlight":"dtMFxJ","uuiTypographySize12":"bq7bbQ","uuiTypographySize14":"eFexoQ","uuiTypographySize16":"EeNwE-","borderTop":"_4nzZq1","borderBottom":"HP0Fcb","topShadow":"_-0hCEK","padding6":"_2aYHWt","padding12":"U2c7U-","padding18":"yK06l4","padding24":"_7DwiSL","margin24":"-P-E-A","margin12":"_34iKbG","vPadding12":"_82BmZc","vPadding18":"T0C8jO","vPadding24":"uK8wUN","vPadding36":"Zz8rJB","vPadding48":"Ms9IKw","spacing6":"_7Fh8Qs","spacing12":"ozNo8h","spacing18":"S9bOmm","uuiSurfaceMain":"eL7dye"};
|
|
1191
1207
|
|
|
1192
|
-
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$
|
|
1208
|
+
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$1h.flexCell]);
|
|
1193
1209
|
|
|
1194
1210
|
const FlexRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexRow, (props) => {
|
|
1195
1211
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1198,45 +1214,45 @@ const FlexRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexRow, (props) =
|
|
|
1198
1214
|
}
|
|
1199
1215
|
}
|
|
1200
1216
|
return [
|
|
1201
|
-
css$
|
|
1217
|
+
css$1h.root,
|
|
1202
1218
|
props.size !== null && 'uui-size-' + (props.size || '36'),
|
|
1203
|
-
props.padding && css$
|
|
1204
|
-
props.vPadding && css$
|
|
1205
|
-
props.margin && css$
|
|
1206
|
-
props.topShadow && css$
|
|
1207
|
-
props.borderBottom && css$
|
|
1208
|
-
props.borderTop && css$
|
|
1209
|
-
props.spacing && css$
|
|
1210
|
-
props.background && css$
|
|
1219
|
+
props.padding && css$1h['padding-' + props.padding],
|
|
1220
|
+
props.vPadding && css$1h['vPadding-' + props.vPadding],
|
|
1221
|
+
props.margin && css$1h['margin-' + props.margin],
|
|
1222
|
+
props.topShadow && css$1h.topShadow,
|
|
1223
|
+
props.borderBottom && css$1h.borderBottom,
|
|
1224
|
+
props.borderTop && css$1h.borderTop,
|
|
1225
|
+
props.spacing && css$1h['spacing-' + props.spacing],
|
|
1226
|
+
props.background && css$1h[`uui-${props.background}`],
|
|
1211
1227
|
];
|
|
1212
1228
|
});
|
|
1213
1229
|
|
|
1214
|
-
var css$
|
|
1230
|
+
var css$1g = {"root":"_-0E942","margin-24":"zZT5i7","padding-12":"Q0VJx1","padding-24":"QkdTxg","shadow":"Di5Xld","uui-surface-main":"_--AiN4","margin24":"zZT5i7","padding12":"Q0VJx1","padding24":"QkdTxg","uuiSurfaceMain":"_--AiN4"};
|
|
1215
1231
|
|
|
1216
1232
|
const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
1217
1233
|
'uui-panel',
|
|
1218
|
-
css$
|
|
1219
|
-
props.shadow && css$
|
|
1220
|
-
props.margin && css$
|
|
1221
|
-
props.background && css$
|
|
1234
|
+
css$1g.root,
|
|
1235
|
+
props.shadow && css$1g.shadow,
|
|
1236
|
+
props.margin && css$1g['margin-' + props.margin],
|
|
1237
|
+
props.background && css$1g[`uui-${props.background}`],
|
|
1222
1238
|
]);
|
|
1223
1239
|
|
|
1224
|
-
var css$
|
|
1240
|
+
var css$1f = {"root":"g0hTH8"};
|
|
1225
1241
|
|
|
1226
1242
|
function applyTooltipMods(mods) {
|
|
1227
1243
|
return [
|
|
1228
|
-
css$
|
|
1244
|
+
css$1f.root,
|
|
1229
1245
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1230
1246
|
];
|
|
1231
1247
|
}
|
|
1232
1248
|
const Tooltip = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
1233
1249
|
|
|
1234
|
-
var css$
|
|
1250
|
+
var css$1e = {"uui-typography":"MX-y98","hero-header":"OMzxmd","promo-header":"zEsayJ","uui-critical":"uDz9Uv","uui-info":"u6Q-WS","uui-success":"CqLDe7","uui-warning":"Ry5Eqf","uui-highlight":"cCEdN5","uui-typography-size-12":"zk-bpK","uui-typography-size-14":"cKTaa8","uui-typography-size-16":"_5ijBba","root":"UF341m","uuiTypography":"MX-y98","heroHeader":"OMzxmd","promoHeader":"zEsayJ","uuiCritical":"uDz9Uv","uuiInfo":"u6Q-WS","uuiSuccess":"CqLDe7","uuiWarning":"Ry5Eqf","uuiHighlight":"cCEdN5","uuiTypographySize12":"zk-bpK","uuiTypographySize14":"cKTaa8","uuiTypographySize16":"_5ijBba"};
|
|
1235
1251
|
|
|
1236
1252
|
function applyLabeledInputMods(mods) {
|
|
1237
1253
|
return [
|
|
1238
1254
|
'uui-labeled-input',
|
|
1239
|
-
css$
|
|
1255
|
+
css$1e.root,
|
|
1240
1256
|
'uui-size-' + (mods.size || settings.sizes.defaults.labeledInput),
|
|
1241
1257
|
];
|
|
1242
1258
|
}
|
|
@@ -1245,7 +1261,7 @@ const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.La
|
|
|
1245
1261
|
infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$w : ForwardRef$L),
|
|
1246
1262
|
}));
|
|
1247
1263
|
|
|
1248
|
-
var css$
|
|
1264
|
+
var css$1d = {"root":"tlUb9Z"};
|
|
1249
1265
|
|
|
1250
1266
|
function RadioGroup(props) {
|
|
1251
1267
|
const direction = props.direction || 'vertical';
|
|
@@ -1254,34 +1270,34 @@ function RadioGroup(props) {
|
|
|
1254
1270
|
props.onValueChange(newVal);
|
|
1255
1271
|
}
|
|
1256
1272
|
};
|
|
1257
|
-
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
1273
|
+
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$1d.root, uuiCore.directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur }, props.rawProps), props.items.map((i) => {
|
|
1258
1274
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1259
1275
|
return (React__namespace.createElement(RadioInput, Object.assign({ name: props.name, renderLabel: i.renderName ? i.renderName : () => i.name, value: props.value === i.id, onValueChange: () => handleChange(i.id), isDisabled: props.isDisabled || i.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size }, restItemProps)));
|
|
1260
1276
|
})));
|
|
1261
1277
|
}
|
|
1262
1278
|
|
|
1263
|
-
var css$
|
|
1279
|
+
var css$1c = {"root":"tyh2l2"};
|
|
1264
1280
|
|
|
1265
1281
|
function applyScrollBarsMods() {
|
|
1266
1282
|
return [
|
|
1267
|
-
css$
|
|
1283
|
+
css$1c.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1268
1284
|
];
|
|
1269
1285
|
}
|
|
1270
1286
|
const ScrollBars = /* @__PURE__ */uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
1271
1287
|
|
|
1272
|
-
var css$
|
|
1288
|
+
var css$1b = {"scroll-container":"_0Y2R4G","list-container":"skRcYH","scrollContainer":"_0Y2R4G","listContainer":"skRcYH"};
|
|
1273
1289
|
|
|
1274
|
-
var css$
|
|
1290
|
+
var css$1a = {"root":"zKxj1u"};
|
|
1275
1291
|
|
|
1276
|
-
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$
|
|
1292
|
+
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$1a.root]);
|
|
1277
1293
|
|
|
1278
|
-
var css$
|
|
1294
|
+
var css$19 = {"uui-typography":"QQT02F","hero-header":"_7xL5v0","promo-header":"TUK0Yv","uui-critical":"Isx5vX","uui-info":"NApKTL","uui-success":"_7EuJxt","uui-warning":"WF1XeS","uui-highlight":"NokLLe","uui-typography-size-12":"tAFKJ8","uui-typography-size-14":"SOXVPP","uui-typography-size-16":"pFNMB8","root":"VH1wMu","uuiTypography":"QQT02F","heroHeader":"_7xL5v0","promoHeader":"TUK0Yv","uuiCritical":"Isx5vX","uuiInfo":"NApKTL","uuiSuccess":"_7EuJxt","uuiWarning":"WF1XeS","uuiHighlight":"NokLLe","uuiTypographySize12":"tAFKJ8","uuiTypographySize14":"SOXVPP","uuiTypographySize16":"pFNMB8"};
|
|
1279
1295
|
|
|
1280
1296
|
const DEFAULT_FILL = 'solid';
|
|
1281
1297
|
function applyBadgeMods(mods) {
|
|
1282
1298
|
return [
|
|
1283
1299
|
'uui-badge',
|
|
1284
|
-
css$
|
|
1300
|
+
css$19.root,
|
|
1285
1301
|
`uui-size-${mods.size || settings.sizes.defaults.badge}`,
|
|
1286
1302
|
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1287
1303
|
`uui-color-${mods.color || 'info'}`,
|
|
@@ -1299,11 +1315,11 @@ const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) =>
|
|
|
1299
1315
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1300
1316
|
});
|
|
1301
1317
|
|
|
1302
|
-
var css$
|
|
1318
|
+
var css$18 = {"uui-typography":"_9DfYYD","hero-header":"_8lChTV","promo-header":"Ub7TX3","uui-critical":"Z2ayWT","uui-info":"mPZILn","uui-success":"pZheNZ","uui-warning":"c-1M5C","uui-highlight":"Ma181W","uui-typography-size-12":"M-WiIU","uui-typography-size-14":"_-8iLxb","uui-typography-size-16":"qeYpiG","root":"CMJd6y","uuiTypography":"_9DfYYD","heroHeader":"_8lChTV","promoHeader":"Ub7TX3","uuiCritical":"Z2ayWT","uuiInfo":"mPZILn","uuiSuccess":"pZheNZ","uuiWarning":"c-1M5C","uuiHighlight":"Ma181W","uuiTypographySize12":"M-WiIU","uuiTypographySize14":"_-8iLxb","uuiTypographySize16":"qeYpiG"};
|
|
1303
1319
|
|
|
1304
1320
|
function applyTagMods(props) {
|
|
1305
1321
|
return [
|
|
1306
|
-
css$
|
|
1322
|
+
css$18.root,
|
|
1307
1323
|
`uui-size-${props.size || settings.sizes.defaults.tag}`,
|
|
1308
1324
|
`uui-color-${props.color || 'neutral'}`,
|
|
1309
1325
|
`uui-fill-${props.fill || 'solid'}`,
|
|
@@ -1323,10 +1339,10 @@ const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
|
1323
1339
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1324
1340
|
});
|
|
1325
1341
|
|
|
1326
|
-
var css$
|
|
1342
|
+
var css$17 = {"root":"wpX2u6","uui-spinner":"AeYkFy","uuiSpinner":"AeYkFy"};
|
|
1327
1343
|
|
|
1328
1344
|
function applySpinnerMods() {
|
|
1329
|
-
return [css$
|
|
1345
|
+
return [css$17.root, 'uui-spinner'];
|
|
1330
1346
|
}
|
|
1331
1347
|
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
1332
1348
|
|
|
@@ -1360,57 +1376,57 @@ var SvgNavigationChevronRightOutline = function SvgNavigationChevronRightOutline
|
|
|
1360
1376
|
};
|
|
1361
1377
|
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRightOutline);
|
|
1362
1378
|
|
|
1363
|
-
var css$
|
|
1379
|
+
var css$16 = {"root":"LgQr41","page":"h-ue9o","spacer":"_6lTnzR","mode-ghost":"rMWHAS","modeGhost":"rMWHAS"};
|
|
1364
1380
|
|
|
1365
1381
|
function Paginator(props) {
|
|
1366
|
-
const renderPaginator = (params) => (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: cx__default.default(css$
|
|
1382
|
+
const renderPaginator = (params) => (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: cx__default.default(css$16.root, 'uui-paginator', `uui-size-${props.size || settings.sizes.defaults.paginator}`) }, params.rawProps),
|
|
1367
1383
|
React__namespace.default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$v, onClick: params.goToPrev, isDisabled: params.isFirst || props.isDisabled, fill: "outline", color: "secondary" }),
|
|
1368
1384
|
params.pages.map((page, index) => {
|
|
1369
1385
|
if (page.type === 'spacer') {
|
|
1370
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
1386
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$16.spacer, css$16.page), size: props.size || settings.sizes.defaults.paginator, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
|
|
1371
1387
|
}
|
|
1372
1388
|
else {
|
|
1373
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
1389
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$16[`mode-${!page.isActive && 'ghost'}`], css$16.page), size: props.size || settings.sizes.defaults.paginator, key: page.pageNumber, caption: page.pageNumber, onClick: () => { var _a; return (_a = page.onClick) === null || _a === void 0 ? void 0 : _a.call(page); }, rawProps: { 'aria-current': page.isActive }, fill: (page.isActive && 'outline') || 'ghost', color: "primary", isDisabled: props.isDisabled }));
|
|
1374
1390
|
}
|
|
1375
1391
|
}),
|
|
1376
1392
|
React__namespace.default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$u, onClick: params.goToNext, isDisabled: params.isLast || props.isDisabled, fill: "outline", color: "secondary" })));
|
|
1377
1393
|
return React__namespace.default.createElement(uuiComponents.Paginator, Object.assign({}, props, { render: renderPaginator }));
|
|
1378
1394
|
}
|
|
1379
1395
|
|
|
1380
|
-
var css$
|
|
1396
|
+
var css$15 = {"root":"Weqwl7","progress-bar":"XGajMm","progressBar-indeterminate":"FsuhtI","size-12":"ko4vwv","size-18":"UTWsI7","size-24":"_9LEPq7","progressBar":"XGajMm","progressBarIndeterminate":"FsuhtI","size12":"ko4vwv","size18":"UTWsI7","size24":"_9LEPq7"};
|
|
1381
1397
|
|
|
1382
1398
|
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1383
|
-
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$
|
|
1384
|
-
React__namespace.createElement("div", { className: cx__default.default(css$
|
|
1399
|
+
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$15.root, css$15[`size-${props.size || 12}`]) },
|
|
1400
|
+
React__namespace.createElement("div", { className: cx__default.default(css$15.progressBar) })));
|
|
1385
1401
|
});
|
|
1386
1402
|
|
|
1387
|
-
var css$
|
|
1403
|
+
var css$14 = {"root":"ZDxVEa","striped":"Vo5Ms-","animate-stripes":"uh2CtQ","size-12":"Ayaedz","size-18":"P1f-vL","size-24":"ptTFaV","animateStripes":"uh2CtQ","size12":"Ayaedz","size18":"P1f-vL","size24":"ptTFaV"};
|
|
1388
1404
|
|
|
1389
1405
|
const DEFAULT_SIZE = '12';
|
|
1390
1406
|
function applyProgressBarMods(mods) {
|
|
1391
1407
|
const size = mods.size || DEFAULT_SIZE;
|
|
1392
1408
|
return [
|
|
1393
|
-
css$
|
|
1394
|
-
css$
|
|
1395
|
-
mods.striped && css$
|
|
1409
|
+
css$14.root,
|
|
1410
|
+
css$14[`size-${size}`],
|
|
1411
|
+
mods.striped && css$14.striped,
|
|
1396
1412
|
];
|
|
1397
1413
|
}
|
|
1398
1414
|
const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1399
1415
|
hideLabel: props.hideLabel || props.striped,
|
|
1400
1416
|
}));
|
|
1401
1417
|
|
|
1402
|
-
var css$
|
|
1418
|
+
var css$13 = {"root":"UD-QPC"};
|
|
1403
1419
|
|
|
1404
1420
|
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1405
1421
|
const { progress } = props;
|
|
1406
|
-
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$
|
|
1422
|
+
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$13.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$13.root, props.cx) }));
|
|
1407
1423
|
});
|
|
1408
1424
|
|
|
1409
|
-
var css$
|
|
1425
|
+
var css$12 = {"root":"ztzoSG"};
|
|
1410
1426
|
|
|
1411
1427
|
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1412
1428
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
1413
|
-
css$
|
|
1429
|
+
css$12.root,
|
|
1414
1430
|
`uui-size-${props.size || settings.sizes.defaults.statusIndicator}`,
|
|
1415
1431
|
'uui-status_indicator',
|
|
1416
1432
|
`uui-color-${props.color || 'neutral'}`,
|
|
@@ -1421,7 +1437,7 @@ const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1421
1437
|
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1422
1438
|
});
|
|
1423
1439
|
|
|
1424
|
-
var css$
|
|
1440
|
+
var css$11 = {"drag-handle":"zCNLEd","icon-container":"HB-b1h","dragHandle":"zCNLEd","iconContainer":"HB-b1h"};
|
|
1425
1441
|
|
|
1426
1442
|
function DataRowAddons(props) {
|
|
1427
1443
|
var _a, _b;
|
|
@@ -1433,19 +1449,19 @@ function DataRowAddons(props) {
|
|
|
1433
1449
|
return settings.sizes.rowAddons.indentWidth[props.size] || settings.sizes.rowAddons.defaults.indentWidth;
|
|
1434
1450
|
};
|
|
1435
1451
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1436
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$
|
|
1452
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$11.dragHandle, rawProps: Object.assign({}, props.eventHandlers) }),
|
|
1437
1453
|
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__namespace.default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: settings.sizes.rowAddons.checkbox[props.size], value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => { var _a; return (_a = row.onCheck) === null || _a === void 0 ? void 0 : _a.call(row, row); }, isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
|
|
1438
1454
|
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: cx__default.default('uui-dr_addons-indent', `uui-size-${props.size}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
1439
1455
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1440
1456
|
role: 'button',
|
|
1441
1457
|
}, key: "icon", icon: ForwardRef$P, cx: [
|
|
1442
|
-
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$
|
|
1458
|
+
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$11.iconContainer,
|
|
1443
1459
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.sizes.rowAddons.icon[props.size] || settings.sizes.rowAddons.defaults.icon }))))));
|
|
1444
1460
|
}
|
|
1445
1461
|
|
|
1446
|
-
var css
|
|
1462
|
+
var css$10 = {"root":"oNClxd"};
|
|
1447
1463
|
|
|
1448
|
-
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css
|
|
1464
|
+
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$10.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__namespace.default.createElement(Spinner, null)) }));
|
|
1449
1465
|
|
|
1450
1466
|
const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1451
1467
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
@@ -1461,7 +1477,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1461
1477
|
var _a;
|
|
1462
1478
|
return ((_a = props.renderRows) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
1463
1479
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1464
|
-
})) || (React__namespace.createElement("div", { className: css$
|
|
1480
|
+
})) || (React__namespace.createElement("div", { className: css$1b.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1465
1481
|
React__namespace.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1466
1482
|
};
|
|
1467
1483
|
const renderView = ({ style }) => (React__namespace.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
@@ -1471,7 +1487,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1471
1487
|
return;
|
|
1472
1488
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1473
1489
|
}, []);
|
|
1474
|
-
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$
|
|
1490
|
+
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$1b.scrollContainer, props.cx, {
|
|
1475
1491
|
[uuiCore.uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1476
1492
|
[uuiCore.uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1477
1493
|
[uuiCore.uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -1484,7 +1500,7 @@ const VirtualListView = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
1484
1500
|
React__namespace.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
1485
1501
|
});
|
|
1486
1502
|
|
|
1487
|
-
var css
|
|
1503
|
+
var css$$ = {"root":"-FfvPK"};
|
|
1488
1504
|
|
|
1489
1505
|
function CheckboxGroup(props) {
|
|
1490
1506
|
const currentValue = props.value || [];
|
|
@@ -1500,62 +1516,16 @@ function CheckboxGroup(props) {
|
|
|
1500
1516
|
}
|
|
1501
1517
|
props.onValueChange(newSelection);
|
|
1502
1518
|
};
|
|
1503
|
-
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css
|
|
1519
|
+
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$$.root, uuiCore.directionMode[direction], props.cx) }, props.rawProps), props.items.map((i) => {
|
|
1504
1520
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1505
1521
|
return (React__namespace.createElement(Checkbox, Object.assign({ renderLabel: i.renderName ? i.renderName : () => i.name, value: currentValue.indexOf(i.id) !== -1, onValueChange: (selected) => handleChange(selected, i.id), isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size }, restItemProps)));
|
|
1506
1522
|
})));
|
|
1507
1523
|
}
|
|
1508
1524
|
|
|
1509
|
-
var css$
|
|
1510
|
-
|
|
1511
|
-
function applyTextMods(mods) {
|
|
1512
|
-
return [
|
|
1513
|
-
css$Z.root,
|
|
1514
|
-
'uui-text',
|
|
1515
|
-
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
1516
|
-
(mods.size !== 'none' || mods.lineHeight) && css$Z.lineHeight,
|
|
1517
|
-
(mods.size !== 'none' || mods.fontSize) && css$Z.fontSize,
|
|
1518
|
-
`uui-color-${mods.color || 'primary'}`,
|
|
1519
|
-
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
1520
|
-
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
1521
|
-
'uui-typography',
|
|
1522
|
-
];
|
|
1523
|
-
}
|
|
1524
|
-
const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, applyTextMods, (props) => {
|
|
1525
|
-
var _a;
|
|
1526
|
-
if (props.fontSize || props.lineHeight) {
|
|
1527
|
-
const style = {};
|
|
1528
|
-
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
1529
|
-
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
1530
|
-
return {
|
|
1531
|
-
rawProps: Object.assign({ style: Object.assign(Object.assign({}, style), (_a = props === null || props === void 0 ? void 0 : props.rawProps) === null || _a === void 0 ? void 0 : _a.style) }, props === null || props === void 0 ? void 0 : props.rawProps),
|
|
1532
|
-
};
|
|
1533
|
-
}
|
|
1534
|
-
});
|
|
1535
|
-
|
|
1536
|
-
var css$Y = {"root":"p4WTiN","loading-word":"_0ibkqa","animated-loading":"svNd9S","skeleton_loading":"WPSnJo","loadingWord":"_0ibkqa","animatedLoading":"svNd9S","skeletonLoading":"WPSnJo"};
|
|
1537
|
-
|
|
1538
|
-
const TextPlaceholder = (props) => {
|
|
1539
|
-
const pattern = ' ';
|
|
1540
|
-
const text = React__namespace.useMemo(() => {
|
|
1541
|
-
const words = [];
|
|
1542
|
-
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
1543
|
-
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
1544
|
-
words.push(pattern.repeat(lengthWord));
|
|
1545
|
-
}
|
|
1546
|
-
return words;
|
|
1547
|
-
}, [props.wordsCount]);
|
|
1548
|
-
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: cx__default.default(css$Y.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
1549
|
-
props.cx, css$Y.loadingWord, !props.isNotAnimated && css$Y.animatedLoading,
|
|
1550
|
-
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
1551
|
-
};
|
|
1552
|
-
|
|
1553
|
-
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
1525
|
+
var css$_ = {"uui-typography":"FUCXyg","hero-header":"Ga-xKu","promo-header":"_9-pY4n","uui-critical":"WvUfMM","uui-info":"ACzlJD","uui-success":"-HTwUf","uui-warning":"gxdOZq","uui-highlight":"DAldhQ","uui-typography-size-12":"_72J-3g","uui-typography-size-14":"eKNsN9","uui-typography-size-16":"_16-Hos","root":"P4aRqW","modal-blocker":"YEU1ei","animateModalBlocker":"vb0B43","modal":"TDvoRu","modal-footer":"czUmdM","modal-header":"C-bf7F","uuiTypography":"FUCXyg","heroHeader":"Ga-xKu","promoHeader":"_9-pY4n","uuiCritical":"WvUfMM","uuiInfo":"ACzlJD","uuiSuccess":"-HTwUf","uuiWarning":"gxdOZq","uuiHighlight":"DAldhQ","uuiTypographySize12":"_72J-3g","uuiTypographySize14":"eKNsN9","uuiTypographySize16":"_16-Hos","modalBlocker":"YEU1ei","modalFooter":"czUmdM","modalHeader":"C-bf7F"};
|
|
1554
1526
|
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$X.modalBlocker]);
|
|
1558
|
-
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$X.root, css$X.modal], (props) => {
|
|
1527
|
+
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$_.modalBlocker]);
|
|
1528
|
+
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$_.root, css$_.modal], (props) => {
|
|
1559
1529
|
const width = props.width || settings.sizes.modal.window.defaults.width;
|
|
1560
1530
|
const height = props.height || 'auto';
|
|
1561
1531
|
const maxHeight = uuiCore.isMobile() ? '100dvh' : (props.maxHeight || '80dvh');
|
|
@@ -1567,8 +1537,8 @@ const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, (
|
|
|
1567
1537
|
});
|
|
1568
1538
|
class ModalHeader extends React__namespace.default.Component {
|
|
1569
1539
|
render() {
|
|
1570
|
-
return (React__namespace.default.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "
|
|
1571
|
-
this.props.title && (React__namespace.default.createElement(
|
|
1540
|
+
return (React__namespace.default.createElement(FlexRow, { padding: this.props.padding || '24', size: null, vPadding: "36", borderBottom: this.props.borderBottom, cx: [css$_.root, css$_.modalHeader, this.props.cx], columnGap: "12", rawProps: this.props.rawProps },
|
|
1541
|
+
this.props.title && (React__namespace.default.createElement("div", { className: cx__default.default('uui-modal-title', 'uui-typography') }, this.props.title)),
|
|
1572
1542
|
this.props.children,
|
|
1573
1543
|
this.props.onClose && React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1574
1544
|
this.props.onClose && (React__namespace.default.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
@@ -1578,8 +1548,8 @@ class ModalHeader extends React__namespace.default.Component {
|
|
|
1578
1548
|
class ModalFooter extends React__namespace.default.Component {
|
|
1579
1549
|
render() {
|
|
1580
1550
|
return (React__namespace.default.createElement(FlexRow, { columnGap: this.props.columnGap || '12', cx: [
|
|
1581
|
-
css$
|
|
1582
|
-
css$
|
|
1551
|
+
css$_.root,
|
|
1552
|
+
css$_.modalFooter,
|
|
1583
1553
|
this.props.cx,
|
|
1584
1554
|
], borderTop: this.props.borderTop, padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
1585
1555
|
}
|
|
@@ -1741,7 +1711,7 @@ var SvgNotificationHelpFill = function SvgNotificationHelpFill(props, ref) {
|
|
|
1741
1711
|
};
|
|
1742
1712
|
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgNotificationHelpFill);
|
|
1743
1713
|
|
|
1744
|
-
var css$
|
|
1714
|
+
var css$Z = {"uui-typography":"V8MVTR","hero-header":"M8uwTY","promo-header":"QkwCNq","uui-critical":"-nIb6-","uui-info":"qUCUyn","uui-success":"_3tQq-1","uui-warning":"KFA-g1","uui-highlight":"_9JFSVi","uui-typography-size-12":"Z6byay","uui-typography-size-14":"oQnMqV","uui-typography-size-16":"RG11Vi","root":"AsWGeG","icon-wrapper":"iP3HPx","action-wrapper":"hypx8W","action-link":"o2nY2A","close-icon":"-P4kyO","main-path":"hHPGyn","content":"f3la9Q","close-wrapper":"bHPo1T","notification-wrapper":"wvB4J-","clear-button":"Y6F8av","uuiTypography":"V8MVTR","heroHeader":"M8uwTY","promoHeader":"QkwCNq","uuiCritical":"-nIb6-","uuiInfo":"qUCUyn","uuiSuccess":"_3tQq-1","uuiWarning":"KFA-g1","uuiHighlight":"_9JFSVi","uuiTypographySize12":"Z6byay","uuiTypographySize14":"oQnMqV","uuiTypographySize16":"RG11Vi","iconWrapper":"iP3HPx","actionWrapper":"hypx8W","actionLink":"o2nY2A","closeIcon":"-P4kyO","mainPath":"hHPGyn","closeWrapper":"bHPo1T","notificationWrapper":"wvB4J-","clearButton":"Y6F8av"};
|
|
1745
1715
|
|
|
1746
1716
|
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1747
1717
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -1756,15 +1726,15 @@ const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
1756
1726
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
1757
1727
|
};
|
|
1758
1728
|
}, []);
|
|
1759
|
-
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
1760
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1761
|
-
props.icon && (React__namespace.default.createElement("div", { className: css$
|
|
1729
|
+
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$Z.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
1730
|
+
React__namespace.default.createElement("div", { className: css$Z.mainPath },
|
|
1731
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$Z.iconWrapper },
|
|
1762
1732
|
React__namespace.default.createElement(uuiComponents.IconContainer, { size: 24, icon: props.icon }))),
|
|
1763
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1733
|
+
React__namespace.default.createElement("div", { className: css$Z.content },
|
|
1764
1734
|
props.children,
|
|
1765
|
-
props.actions && (React__namespace.default.createElement("div", { className: css$
|
|
1766
|
-
props.onClose && (React__namespace.default.createElement("div", { className: css$
|
|
1767
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$Q, color: "neutral", onClick: props.onClose, cx: css$
|
|
1735
|
+
props.actions && (React__namespace.default.createElement("div", { className: css$Z.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$Z.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
1736
|
+
props.onClose && (React__namespace.default.createElement("div", { className: css$Z.closeWrapper },
|
|
1737
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$Q, color: "neutral", onClick: props.onClose, cx: css$Z.closeIcon }))))));
|
|
1768
1738
|
});
|
|
1769
1739
|
const WarningNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$y, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
1770
1740
|
const SuccessNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$z, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
@@ -1772,11 +1742,11 @@ const HintNotification = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
1772
1742
|
const ErrorNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$x, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
1773
1743
|
function ClearNotification() {
|
|
1774
1744
|
const uuiCtx = uuiCore.useUuiContext();
|
|
1775
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
1745
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$Z.notificationWrapper, css$Z.clearButton) },
|
|
1776
1746
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
1777
1747
|
}
|
|
1778
1748
|
|
|
1779
|
-
var css$
|
|
1749
|
+
var css$Y = {"footer":"nMveUl"};
|
|
1780
1750
|
|
|
1781
1751
|
class ConfirmationModal extends React__namespace.Component {
|
|
1782
1752
|
render() {
|
|
@@ -1788,7 +1758,7 @@ class ConfirmationModal extends React__namespace.Component {
|
|
|
1788
1758
|
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
1789
1759
|
React__namespace.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
1790
1760
|
React__namespace.createElement(ScrollBars, null, bodyContent),
|
|
1791
|
-
React__namespace.createElement(ModalFooter, { cx: css$
|
|
1761
|
+
React__namespace.createElement(ModalFooter, { cx: css$Y.footer },
|
|
1792
1762
|
this.props.hideCancelButton || (React__namespace.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
1793
1763
|
React__namespace.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
1794
1764
|
}
|
|
@@ -1818,7 +1788,7 @@ function useReliableForceUpdate() {
|
|
|
1818
1788
|
return red[1];
|
|
1819
1789
|
}
|
|
1820
1790
|
|
|
1821
|
-
var css$
|
|
1791
|
+
var css$X = {"root":"aPLQMU","timepicker-input":"oBjTPN","ltr-always":"bOQMVG","timepickerInput":"oBjTPN","ltrAlways":"bOQMVG"};
|
|
1822
1792
|
|
|
1823
1793
|
const uuiTimePicker = {
|
|
1824
1794
|
container: 'uui-timepicker-container',
|
|
@@ -1857,8 +1827,8 @@ function TimePickerBody(props) {
|
|
|
1857
1827
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
1858
1828
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
1859
1829
|
};
|
|
1860
|
-
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$
|
|
1861
|
-
React__namespace.createElement("div", { className: css$
|
|
1830
|
+
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$X.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef }, props.rawProps),
|
|
1831
|
+
React__namespace.createElement("div", { className: css$X.ltrAlways },
|
|
1862
1832
|
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1863
1833
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
1864
1834
|
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -2000,7 +1970,7 @@ function TimePicker(props) {
|
|
|
2000
1970
|
};
|
|
2001
1971
|
const renderInput = (inputProps) => {
|
|
2002
1972
|
var _a;
|
|
2003
|
-
return (React__namespace.default.createElement(TextInput, Object.assign({}, inputProps, { onClick: null, size: props.size || '36', isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$
|
|
1973
|
+
return (React__namespace.default.createElement(TextInput, Object.assign({}, inputProps, { onClick: null, size: props.size || '36', isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$X.root, css$X.timepickerInput, props.inputCx], value: state.inputValue, onValueChange: handleInputChange, onCancel: !props.disableClear && onClear, onFocus: handleFocus, onBlur: handleBlur, isDropdown: false, placeholder: props.placeholder ? props.placeholder : getFormat(), mode: props.mode || DEFAULT_MODE, rawProps: (_a = props.rawProps) === null || _a === void 0 ? void 0 : _a.input })));
|
|
2004
1974
|
};
|
|
2005
1975
|
const renderBody = (bodyProps) => {
|
|
2006
1976
|
var _a;
|
|
@@ -2011,19 +1981,19 @@ function TimePicker(props) {
|
|
|
2011
1981
|
return (React__namespace.default.createElement(Dropdown, { renderTarget: (targetProps) => (props.renderTarget ? props.renderTarget(targetProps) : renderInput(targetProps)), renderBody: (bodyProps) => !props.isDisabled && !props.isReadonly && renderBody(bodyProps), onValueChange: !props.isDisabled && !props.isReadonly ? onToggle : null, value: state.isOpen, modifiers: [{ name: 'offset', options: { offset: [0, 6] } }], forwardedRef: props.forwardedRef }));
|
|
2012
1982
|
}
|
|
2013
1983
|
|
|
2014
|
-
var css$
|
|
1984
|
+
var css$W = {"root":"_8ZS4aJ"};
|
|
2015
1985
|
|
|
2016
1986
|
function applyInputAddonMods() {
|
|
2017
1987
|
return [
|
|
2018
|
-
css$
|
|
1988
|
+
css$W.root,
|
|
2019
1989
|
];
|
|
2020
1990
|
}
|
|
2021
1991
|
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
2022
1992
|
|
|
2023
|
-
var css$
|
|
1993
|
+
var css$V = {"root":"KWdxCh"};
|
|
2024
1994
|
|
|
2025
1995
|
function applySliderMods() {
|
|
2026
|
-
return [css$
|
|
1996
|
+
return [css$V.root, 'uui-color-neutral'];
|
|
2027
1997
|
}
|
|
2028
1998
|
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
2029
1999
|
|
|
@@ -2155,7 +2125,7 @@ const getNextYearsList = (currentDate) => {
|
|
|
2155
2125
|
return currentDate.add(16, 'year');
|
|
2156
2126
|
};
|
|
2157
2127
|
|
|
2158
|
-
var css$
|
|
2128
|
+
var css$U = {"root":"vmfB3-","container":"YV7DSC"};
|
|
2159
2129
|
|
|
2160
2130
|
const uuiHeader = {
|
|
2161
2131
|
container: 'uui-datepicker-header-container',
|
|
@@ -2232,21 +2202,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2232
2202
|
}, [view, month]);
|
|
2233
2203
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2234
2204
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2235
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
2205
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$U.root, uuiHeader.container, cx__default.default) },
|
|
2236
2206
|
React__namespace.createElement("header", { className: uuiHeader.headerNav },
|
|
2237
2207
|
React__namespace.createElement(Button, { icon: navIconLeft || ForwardRef$v, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2238
2208
|
React__namespace.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2239
2209
|
React__namespace.createElement(Button, { icon: navIconRight || ForwardRef$u, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2240
2210
|
}
|
|
2241
2211
|
|
|
2242
|
-
var css$
|
|
2212
|
+
var css$T = {"uui-typography":"WeDXbN","hero-header":"D9Wjng","promo-header":"xb6Ef3","uui-critical":"z4M5cZ","uui-info":"jew4Xo","uui-success":"Jvj5S4","uui-warning":"ERzwrA","uui-highlight":"estoUb","uui-typography-size-12":"b0Dd-o","uui-typography-size-14":"Hx-fi-","uui-typography-size-16":"ERZnk7","root":"_5fc7tl","uuiTypography":"WeDXbN","heroHeader":"D9Wjng","promoHeader":"xb6Ef3","uuiCritical":"z4M5cZ","uuiInfo":"jew4Xo","uuiSuccess":"Jvj5S4","uuiWarning":"ERzwrA","uuiHighlight":"estoUb","uuiTypographySize12":"b0Dd-o","uuiTypographySize14":"Hx-fi-","uuiTypographySize16":"ERZnk7"};
|
|
2243
2213
|
|
|
2244
2214
|
function applyDateSelectionMods() {
|
|
2245
|
-
return [css$
|
|
2215
|
+
return [css$T.root, `uui-size-${settings.sizes.defaults.datePicker}`];
|
|
2246
2216
|
}
|
|
2247
2217
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
2248
2218
|
|
|
2249
|
-
var css$
|
|
2219
|
+
var css$S = {"uui-typography":"_9upb8N","hero-header":"_0AxSGd","promo-header":"bTMJ3d","uui-critical":"Me3Ezc","uui-info":"lJQneT","uui-success":"UVaVgN","uui-warning":"f88Dvd","uui-highlight":"GV3ixr","uui-typography-size-12":"lcIg3e","uui-typography-size-14":"GZPWo3","uui-typography-size-16":"AHJ03R","root":"VVjEjz","uuiTypography":"_9upb8N","heroHeader":"_0AxSGd","promoHeader":"bTMJ3d","uuiCritical":"Me3Ezc","uuiInfo":"lJQneT","uuiSuccess":"UVaVgN","uuiWarning":"f88Dvd","uuiHighlight":"GV3ixr","uuiTypographySize12":"lcIg3e","uuiTypographySize14":"GZPWo3","uuiTypographySize16":"AHJ03R"};
|
|
2250
2220
|
|
|
2251
2221
|
const uuiDatePickerBody = {
|
|
2252
2222
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2290,7 +2260,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2290
2260
|
}
|
|
2291
2261
|
};
|
|
2292
2262
|
return (React__namespace.default.createElement("div", Object.assign({ ref: ref, className: uuiCore.cx(uuiDatePickerBodyBase.container, `uui-size-${settings.sizes.defaults.datePicker}`, classes) }, rawProps),
|
|
2293
|
-
React__namespace.default.createElement("div", { className: uuiCore.cx(css$
|
|
2263
|
+
React__namespace.default.createElement("div", { className: uuiCore.cx(css$S.root, uuiDatePickerBody.wrapper) },
|
|
2294
2264
|
React__namespace.default.createElement(DatePickerHeader, { value: {
|
|
2295
2265
|
view,
|
|
2296
2266
|
month,
|
|
@@ -2377,9 +2347,9 @@ function DatePickerComponent(props, ref) {
|
|
|
2377
2347
|
}
|
|
2378
2348
|
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
2379
2349
|
|
|
2380
|
-
var css$
|
|
2350
|
+
var css$R = {"uui-typography":"BXNTni","hero-header":"V-Y1BU","promo-header":"_105k3N","uui-critical":"zafOJp","uui-info":"_7N3OMV","uui-success":"DMH0Pd","uui-warning":"ahJVaX","uui-highlight":"R4U-Nr","uui-typography-size-12":"Dxlstm","uui-typography-size-14":"CtHg1L","uui-typography-size-16":"_0-zknv","date-input":"A37kTt","root":"oR1q0Q","separator":"sBKGfF","mode-form":"jXvOcK","mode-cell":"uGWWRa","uuiTypography":"BXNTni","heroHeader":"V-Y1BU","promoHeader":"_105k3N","uuiCritical":"zafOJp","uuiInfo":"_7N3OMV","uuiSuccess":"DMH0Pd","uuiWarning":"ahJVaX","uuiHighlight":"R4U-Nr","uuiTypographySize12":"Dxlstm","uuiTypographySize14":"CtHg1L","uuiTypographySize16":"_0-zknv","dateInput":"A37kTt","modeForm":"jXvOcK","modeCell":"uGWWRa"};
|
|
2381
2351
|
|
|
2382
|
-
const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, id, cx: classes, }, ref) => {
|
|
2352
|
+
const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, id, cx: classes, }, ref) => {
|
|
2383
2353
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
2384
2354
|
React.useEffect(() => {
|
|
2385
2355
|
setInputValue(toCustomDateRangeFormat(value, format));
|
|
@@ -2409,15 +2379,17 @@ const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isIn
|
|
|
2409
2379
|
}
|
|
2410
2380
|
};
|
|
2411
2381
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2412
|
-
return (
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$
|
|
2382
|
+
return (
|
|
2383
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
2384
|
+
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.sizes.defaults.rangeDatePicker}`, 'uui-range-date-picker', classes, css$R.root, isDisabled && uuiCore.uuiMod.disabled, isReadonly && uuiCore.uuiMod.readonly, isInvalid && uuiCore.uuiMod.invalid, inFocus && uuiCore.uuiMod.focus), onKeyDown: onKeyDown },
|
|
2385
|
+
React__namespace.default.createElement(TextInput, { icon: systemIcons.calendar, cx: uuiCore.cx(css$R.dateInput, inFocus === 'from' && uuiCore.uuiMod.focus), size: size || settings.sizes.defaults.rangeDatePicker, placeholder: getPlaceholder ? getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: inputValue.from || undefined, onValueChange: (v) => onInputChange(v || '', 'from'), onFocus: (event) => handleFocus(event, 'from'), onBlur: (event) => handleBlur(event, 'from'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps === null || rawProps === void 0 ? void 0 : rawProps.from, onClick: onClick, onKeyDown: onInputKeyDown, id: id }),
|
|
2386
|
+
React__namespace.default.createElement("div", { className: css$R.separator }),
|
|
2387
|
+
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$R.dateInput, inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.sizes.defaults.rangeDatePicker, value: inputValue.to || undefined, onCancel: clearAllowed ? () => {
|
|
2416
2388
|
onValueChange(defaultRangeValue);
|
|
2417
2389
|
} : undefined, onValueChange: (v) => onInputChange(v || '', 'to'), onFocus: (e) => handleFocus(e, 'to'), onBlur: (e) => handleBlur(e, 'to'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps === null || rawProps === void 0 ? void 0 : rawProps.to, onClick: onClick, onKeyDown: onInputKeyDown })));
|
|
2418
2390
|
});
|
|
2419
2391
|
|
|
2420
|
-
var css$
|
|
2392
|
+
var css$Q = {"uui-typography":"Rbfk9R","hero-header":"ynkLM4","promo-header":"ESKhqH","uui-critical":"_2zAv8g","uui-info":"kdiI6c","uui-success":"_6Qg8bO","uui-warning":"Wi2jSC","uui-highlight":"hyafyO","uui-typography-size-12":"-R9w-p","uui-typography-size-14":"AL1cYJ","uui-typography-size-16":"g4P1pm","root":"_1yrQYv","uuiTypography":"Rbfk9R","heroHeader":"ynkLM4","promoHeader":"ESKhqH","uuiCritical":"_2zAv8g","uuiInfo":"kdiI6c","uuiSuccess":"_6Qg8bO","uuiWarning":"Wi2jSC","uuiHighlight":"hyafyO","uuiTypographySize12":"-R9w-p","uuiTypographySize14":"AL1cYJ","uuiTypographySize16":"g4P1pm"};
|
|
2421
2393
|
|
|
2422
2394
|
const uuiPresets = {
|
|
2423
2395
|
container: 'uui-presets-container',
|
|
@@ -2428,12 +2400,12 @@ const getPresets = (presets) => {
|
|
|
2428
2400
|
return Object.keys(presets).map((key) => (Object.assign(Object.assign({}, presets[key].getRange()), { name: presets[key].name, key }))).sort((a, b) => a.order - b.order);
|
|
2429
2401
|
};
|
|
2430
2402
|
function CalendarPresets(props) {
|
|
2431
|
-
return (React__namespace.createElement("div", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$
|
|
2403
|
+
return (React__namespace.createElement("div", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$Q.root, props.cx) }, props.rawProps),
|
|
2432
2404
|
React__namespace.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2433
2405
|
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: "24" })))));
|
|
2434
2406
|
}
|
|
2435
2407
|
|
|
2436
|
-
var css$
|
|
2408
|
+
var css$P = {"uui-typography":"r3BCFH","hero-header":"MEPBCT","promo-header":"Waxl6E","uui-critical":"-fUyoR","uui-info":"aSpFzQ","uui-success":"yPVHRn","uui-warning":"hg3CkZ","uui-highlight":"F25MUS","uui-typography-size-12":"hlDJX1","uui-typography-size-14":"tXRgjf","uui-typography-size-16":"KVZJkS","root":"CCEjWU","container":"_2N5JfV","day-selection":"wCubE-","from-picker":"ZuDMrw","to-picker":"MHq9Ro","bodes-wrapper":"xwY0ae","blocker":"tMIryj","uuiTypography":"r3BCFH","heroHeader":"MEPBCT","promoHeader":"Waxl6E","uuiCritical":"-fUyoR","uuiInfo":"aSpFzQ","uuiSuccess":"yPVHRn","uuiWarning":"hg3CkZ","uuiHighlight":"F25MUS","uuiTypographySize12":"hlDJX1","uuiTypographySize14":"tXRgjf","uuiTypographySize16":"KVZJkS","daySelection":"wCubE-","fromPicker":"ZuDMrw","toPicker":"MHq9Ro","bodesWrapper":"xwY0ae"};
|
|
2437
2409
|
|
|
2438
2410
|
const uuiRangeDatePickerBody = {
|
|
2439
2411
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -2574,21 +2546,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
2574
2546
|
});
|
|
2575
2547
|
}, presets: presets })));
|
|
2576
2548
|
};
|
|
2577
|
-
return (React__namespace.default.createElement("div", Object.assign({ ref: ref, className: uuiCore.cx(css$
|
|
2578
|
-
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
2549
|
+
return (React__namespace.default.createElement("div", Object.assign({ ref: ref, className: uuiCore.cx(css$P.root, uuiDatePickerBodyBase.container, props.cx) }, props.rawProps),
|
|
2550
|
+
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$P.daySelection, css$P.container], alignItems: "top" },
|
|
2579
2551
|
React__namespace.default.createElement(FlexCell, { width: "auto" },
|
|
2580
2552
|
React__namespace.default.createElement(FlexRow, null,
|
|
2581
|
-
React__namespace.default.createElement(FlexRow, { cx: css$
|
|
2582
|
-
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: uuiCore.cx(css$
|
|
2553
|
+
React__namespace.default.createElement(FlexRow, { cx: css$P.bodesWrapper, alignItems: "top" },
|
|
2554
|
+
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: uuiCore.cx(css$P.fromPicker) }, from, { onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
|
|
2583
2555
|
setMonth(m);
|
|
2584
2556
|
}, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' })),
|
|
2585
|
-
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: uuiCore.cx(css$
|
|
2557
|
+
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: uuiCore.cx(css$P.toPicker) }, to, { onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
|
|
2586
2558
|
setMonth(m.subtract(1, 'month'));
|
|
2587
2559
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' })),
|
|
2588
2560
|
view !== 'DAY_SELECTION' && (React__namespace.default.createElement("div", { style: {
|
|
2589
2561
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
2590
2562
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
2591
|
-
}, className: css$
|
|
2563
|
+
}, className: css$P.blocker }))),
|
|
2592
2564
|
props.presets && renderPresets(props.presets)),
|
|
2593
2565
|
props.renderFooter && props.renderFooter()))));
|
|
2594
2566
|
}
|
|
@@ -2608,7 +2580,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
2608
2580
|
return [uuiCore.cx(inRange && uuiRangeDatePickerBody.inRange, isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper, !inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper, isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper, !inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper, (dayValue === fromValue || dayValue === toValue) && uuiComponents.uuiDaySelection.selectedDay)];
|
|
2609
2581
|
};
|
|
2610
2582
|
|
|
2611
|
-
var css$
|
|
2583
|
+
var css$O = {"dropdown-container":"MtKUM1","dropdownContainer":"MtKUM1"};
|
|
2612
2584
|
|
|
2613
2585
|
const modifiers = [{
|
|
2614
2586
|
name: 'offset',
|
|
@@ -2620,6 +2592,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2620
2592
|
const context = uuiCore.useUuiContext();
|
|
2621
2593
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
2622
2594
|
const [inFocus, setInFocus] = React.useState(null);
|
|
2595
|
+
const targetRef = React__namespace.default.useRef(null);
|
|
2623
2596
|
const onValueChange = (newValue) => {
|
|
2624
2597
|
const fromChanged = (value === null || value === void 0 ? void 0 : value.from) !== (newValue === null || newValue === void 0 ? void 0 : newValue.from);
|
|
2625
2598
|
const toChanged = (value === null || value === void 0 ? void 0 : value.to) !== (newValue === null || newValue === void 0 ? void 0 : newValue.to);
|
|
@@ -2635,6 +2608,10 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2635
2608
|
var _a;
|
|
2636
2609
|
setIsOpen(newIsOpen);
|
|
2637
2610
|
(_a = props.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(props, newIsOpen);
|
|
2611
|
+
if (!inFocus && newIsOpen) {
|
|
2612
|
+
setInFocus('from');
|
|
2613
|
+
targetRef.current.querySelector('.uui-input').focus();
|
|
2614
|
+
}
|
|
2638
2615
|
};
|
|
2639
2616
|
const onBodyValueChange = (newValue) => {
|
|
2640
2617
|
var _a;
|
|
@@ -2650,7 +2627,10 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2650
2627
|
};
|
|
2651
2628
|
const renderBody = (renderProps) => {
|
|
2652
2629
|
var _a;
|
|
2653
|
-
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx__default.default(css$
|
|
2630
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx__default.default(css$O.dropdownContainer), shards: [targetRef], returnFocus: (node) => {
|
|
2631
|
+
console.log('lock', node);
|
|
2632
|
+
return true;
|
|
2633
|
+
} }),
|
|
2654
2634
|
React__namespace.default.createElement(FlexRow, null,
|
|
2655
2635
|
React__namespace.default.createElement(RangeDatePickerBody, { cx: cx__default.default(props.bodyCx), value: {
|
|
2656
2636
|
selectedDate: _value,
|
|
@@ -2660,33 +2640,83 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2660
2640
|
return (_a = props.renderFooter) === null || _a === void 0 ? void 0 : _a.call(props, value);
|
|
2661
2641
|
}, isHoliday: props.isHoliday, rawProps: (_a = props.rawProps) === null || _a === void 0 ? void 0 : _a.body }))));
|
|
2662
2642
|
};
|
|
2643
|
+
const handleEscape = (e) => {
|
|
2644
|
+
if (e.key === 'Escape' && isOpen) {
|
|
2645
|
+
e.preventDefault();
|
|
2646
|
+
onOpenChange(false);
|
|
2647
|
+
}
|
|
2648
|
+
};
|
|
2663
2649
|
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: (renderProps) => {
|
|
2664
2650
|
var _a;
|
|
2665
|
-
return ((_a = props.renderTarget) === null || _a === void 0 ? void 0 : _a.call(props, renderProps)) || (React__namespace.default.createElement(RangeDatePickerInput, { id: props.id, ref: renderProps.ref, cx: props.inputCx, onClick: renderProps.
|
|
2651
|
+
return ((_a = props.renderTarget) === null || _a === void 0 ? void 0 : _a.call(props, renderProps)) || (React__namespace.default.createElement(RangeDatePickerInput, { id: props.id, ref: (node) => { renderProps.ref(node); targetRef.current = node; }, cx: props.inputCx, onClick: () => renderProps.toggleDropdownOpening(true), isDisabled: props.isDisabled, isInvalid: props.isInvalid, isReadonly: props.isReadonly, size: props.size, getPlaceholder: props.getPlaceholder, disableClear: props.disableClear, rawProps: props.rawProps, inFocus: inFocus, value: value, format: format, onValueChange: onValueChange, onFocusInput: (e, type) => {
|
|
2666
2652
|
var _a;
|
|
2667
2653
|
(_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e, type);
|
|
2668
2654
|
setInFocus(type);
|
|
2669
|
-
}, onBlurInput: (e, type) => { var _a; (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e, type); !isOpen && setInFocus(null); } }));
|
|
2655
|
+
}, onBlurInput: (e, type) => { var _a; (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e, type); !isOpen && setInFocus(null); }, onKeyDown: handleEscape }));
|
|
2670
2656
|
}, renderBody: (renderProps) => renderBody(renderProps), onValueChange: (v) => onOpenChange(v), value: isOpen, modifiers: modifiers, placement: props.placement, forwardedRef: ref }));
|
|
2671
2657
|
}
|
|
2672
2658
|
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
2673
2659
|
|
|
2674
|
-
var css$
|
|
2660
|
+
var css$N = {"root":"_5M2TJ2","blocker":"rx5kjB","marker":"w0-6QR","top":"PfqFJD","bottom":"sjp65Q","left":"TF30bU","right":"onyygz","inside":"m0Loz2"};
|
|
2675
2661
|
|
|
2676
2662
|
function DropMarker(props) {
|
|
2677
2663
|
return props.isDndInProgress
|
|
2678
2664
|
? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2679
|
-
props.enableBlocker && React__namespace.createElement("div", { className: css$
|
|
2665
|
+
props.enableBlocker && React__namespace.createElement("div", { className: css$N.blocker }),
|
|
2680
2666
|
React__namespace.createElement("div", { className: cx__default.default([
|
|
2681
|
-
css$
|
|
2682
|
-
css$
|
|
2683
|
-
css$
|
|
2667
|
+
css$N.root,
|
|
2668
|
+
css$N.marker,
|
|
2669
|
+
css$N[props.position],
|
|
2684
2670
|
props === null || props === void 0 ? void 0 : props.cx,
|
|
2685
2671
|
]) })))
|
|
2686
2672
|
: null;
|
|
2687
2673
|
}
|
|
2688
2674
|
|
|
2689
|
-
var css$
|
|
2675
|
+
var css$M = {"root":"Mjo7Bi","line-height":"_8GxBdr","font-size":"incD7r","lineHeight":"_8GxBdr","fontSize":"incD7r"};
|
|
2676
|
+
|
|
2677
|
+
function applyTextMods(mods) {
|
|
2678
|
+
return [
|
|
2679
|
+
css$M.root,
|
|
2680
|
+
'uui-text',
|
|
2681
|
+
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
2682
|
+
(mods.size !== 'none' || mods.lineHeight) && css$M.lineHeight,
|
|
2683
|
+
(mods.size !== 'none' || mods.fontSize) && css$M.fontSize,
|
|
2684
|
+
`uui-color-${mods.color || 'primary'}`,
|
|
2685
|
+
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
2686
|
+
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
2687
|
+
'uui-typography',
|
|
2688
|
+
];
|
|
2689
|
+
}
|
|
2690
|
+
const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, applyTextMods, (props) => {
|
|
2691
|
+
var _a;
|
|
2692
|
+
const style = ((_a = props === null || props === void 0 ? void 0 : props.rawProps) === null || _a === void 0 ? void 0 : _a.style) || {};
|
|
2693
|
+
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
2694
|
+
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
2695
|
+
return {
|
|
2696
|
+
rawProps: Object.assign(Object.assign({}, props === null || props === void 0 ? void 0 : props.rawProps), { style: style }),
|
|
2697
|
+
};
|
|
2698
|
+
});
|
|
2699
|
+
|
|
2700
|
+
var css$L = {"root":"_3biGS-","loading-word":"uXaVMN","animated-loading":"pkYE96","skeleton_loading":"iNlDsj","loadingWord":"uXaVMN","animatedLoading":"pkYE96","skeletonLoading":"iNlDsj"};
|
|
2701
|
+
|
|
2702
|
+
const TextPlaceholder = (props) => {
|
|
2703
|
+
const pattern = ' ';
|
|
2704
|
+
const text = React__namespace.useMemo(() => {
|
|
2705
|
+
const words = [];
|
|
2706
|
+
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
2707
|
+
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
2708
|
+
words.push(pattern.repeat(lengthWord));
|
|
2709
|
+
}
|
|
2710
|
+
return words;
|
|
2711
|
+
}, [props.wordsCount]);
|
|
2712
|
+
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: cx__default.default(css$L.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
2713
|
+
props.cx, css$L.loadingWord, !props.isNotAnimated && css$L.animatedLoading,
|
|
2714
|
+
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
2715
|
+
};
|
|
2716
|
+
|
|
2717
|
+
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
2718
|
+
|
|
2719
|
+
var css$K = {"uui-typography":"_7ZtltK","hero-header":"_7oUwdM","promo-header":"_2aycM9","uui-critical":"Qy5aUl","uui-info":"xygInV","uui-success":"_92uwUp","uui-warning":"qoKH-r","uui-highlight":"HCJsyM","uui-typography-size-12":"PyLdZK","uui-typography-size-14":"oWk9vM","uui-typography-size-16":"zhwt7t","modal":"wM1jdO","search-wrapper":"N3YZZJ","no-data":"nfTkW0","type-search-to-load-size-24":"v0W0V5","uuiTypography":"_7ZtltK","heroHeader":"_7oUwdM","promoHeader":"_2aycM9","uuiCritical":"Qy5aUl","uuiInfo":"xygInV","uuiSuccess":"_92uwUp","uuiWarning":"qoKH-r","uuiHighlight":"HCJsyM","uuiTypographySize12":"PyLdZK","uuiTypographySize14":"oWk9vM","uuiTypographySize16":"zhwt7t","searchWrapper":"N3YZZJ","noData":"nfTkW0","typeSearchToLoadSize24":"v0W0V5"};
|
|
2690
2720
|
|
|
2691
2721
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
2692
2722
|
constructor() {
|
|
@@ -2705,7 +2735,7 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
2705
2735
|
});
|
|
2706
2736
|
}
|
|
2707
2737
|
if (this.props.minCharsToSearch && search.length < this.props.minCharsToSearch) {
|
|
2708
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
2738
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$K.noData, grow: 1, textAlign: "center" },
|
|
2709
2739
|
React__namespace.default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
2710
2740
|
}
|
|
2711
2741
|
if (this.props.rows.length === 0) {
|
|
@@ -2720,55 +2750,52 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
2720
2750
|
}
|
|
2721
2751
|
// Default no record found message for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
2722
2752
|
// TODO: make separate messages for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
2723
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
2753
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$K.noData, grow: 1, textAlign: "center" },
|
|
2724
2754
|
React__namespace.default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
2725
2755
|
}
|
|
2726
2756
|
}
|
|
2727
2757
|
render() {
|
|
2728
2758
|
const searchSize = this.getSearchSize();
|
|
2729
2759
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2730
|
-
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$
|
|
2760
|
+
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$K.searchWrapper },
|
|
2731
2761
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
2732
2762
|
React__namespace.default.createElement(SearchInput, Object.assign({ ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize, debounceDelay: this.props.searchDebounceDelay, rawProps: { dir: 'auto' } }))))),
|
|
2733
|
-
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('uui-picker_input-body', css$
|
|
2763
|
+
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('uui-picker_input-body', css$K[this.props.editMode], css$K[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight, maxWidth: this.props.maxWidth } } }, this.props.rows.length > 0 ? (React__namespace.default.createElement(VirtualList, Object.assign({}, this.lens.toProps(), { rows: this.props.rows, rawProps: this.props.rawProps, rowsCount: this.props.rowsCount, isLoading: this.props.isReloading }))) : this.renderEmpty())));
|
|
2734
2764
|
}
|
|
2735
2765
|
}
|
|
2736
2766
|
|
|
2737
|
-
var css$
|
|
2767
|
+
var css$J = {"footer":"_3cDF0d"};
|
|
2738
2768
|
|
|
2739
2769
|
function DataPickerFooterImpl(props) {
|
|
2740
2770
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
2741
2771
|
const size = uuiCore.isMobile() ? settings.sizes.pickerInput.body.mobile.footer.linkButton : props.size;
|
|
2742
2772
|
const hasSelection = view.getSelectedRowsCount() > 0;
|
|
2743
2773
|
const rowsCount = view.getListProps().rowsCount;
|
|
2744
|
-
const isEmptyRowsAndHasNoSelection = (rowsCount === 0 && !hasSelection);
|
|
2745
2774
|
const isSinglePicker = selectionMode === 'single';
|
|
2746
2775
|
const clearAllText = i18n.pickerInput.clearSelectionButton;
|
|
2747
2776
|
const clearSingleText = i18n.pickerInput.clearSelectionButtonSingle;
|
|
2748
2777
|
const selectAllText = i18n.pickerInput.selectAllButton;
|
|
2749
|
-
|
|
2750
|
-
const
|
|
2751
|
-
const
|
|
2752
|
-
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx: css$
|
|
2778
|
+
const isSearching = search === null || search === void 0 ? void 0 : search.length;
|
|
2779
|
+
const hideFooter = isSearchTooShort || rowsCount === 0 || isSearching || (isSinglePicker && props.disableClear);
|
|
2780
|
+
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
2781
|
+
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx: css$J.footer },
|
|
2753
2782
|
!isSinglePicker && (React__namespace.default.createElement(Switch, { size: settings.sizes.pickerInput.body.dropdown.footer.switch[props.size], value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
2754
2783
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2755
2784
|
React__namespace.default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
2756
|
-
view.selectAll && (React__namespace.default.createElement(LinkButton, {
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
'aria-label': isSinglePicker ? clearSingleText : clearAllText,
|
|
2761
|
-
} })))));
|
|
2785
|
+
view.selectAll && !hasSelection && (React__namespace.default.createElement(LinkButton, { key: "SelectAll/ClearAll" // We use the same key for these buttons, because we need to leave focus on it after click, so we need to react doesn't remount it.
|
|
2786
|
+
, size: size, caption: selectAllText, onClick: () => view.selectAll.onValueChange(true) })),
|
|
2787
|
+
showClear && (React__namespace.default.createElement(LinkButton, { key: "SelectAll/ClearAll" // We use the same key for these buttons, because we need to leave focus on it after click, so we need to react doesn't remount it. Basically it's the same button, but with different caption.
|
|
2788
|
+
, size: size, caption: isSinglePicker ? clearSingleText : clearAllText, onClick: clearSelection, isDisabled: !hasSelection })))));
|
|
2762
2789
|
}
|
|
2763
2790
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
2764
2791
|
|
|
2765
|
-
var css$
|
|
2792
|
+
var css$I = {"header":"WzgQhD","title":"fh1W76","close":"_486zLe"};
|
|
2766
2793
|
|
|
2767
2794
|
const DataPickerHeaderImpl = (props) => {
|
|
2768
2795
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
2769
|
-
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$
|
|
2770
|
-
React__namespace.default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$
|
|
2771
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$Q, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$
|
|
2796
|
+
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$I.header },
|
|
2797
|
+
React__namespace.default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$I.title }, title),
|
|
2798
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$Q, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$I.close })));
|
|
2772
2799
|
};
|
|
2773
2800
|
const DataPickerHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerHeaderImpl);
|
|
2774
2801
|
|
|
@@ -2787,7 +2814,7 @@ var SvgNotificationDoneFill = function SvgNotificationDoneFill(props, ref) {
|
|
|
2787
2814
|
};
|
|
2788
2815
|
var ForwardRef$s = /*#__PURE__*/React.forwardRef(SvgNotificationDoneFill);
|
|
2789
2816
|
|
|
2790
|
-
var css$
|
|
2817
|
+
var css$H = {"uui-typography":"L3NIYP","hero-header":"-sP389","promo-header":"uTOwKP","uui-critical":"_5T6Gdp","uui-info":"WfDI2J","uui-success":"_---oBV","uui-warning":"MfCl5E","uui-highlight":"Uvidl7","uui-typography-size-12":"jLWdTk","uui-typography-size-14":"pyCjtg","uui-typography-size-16":"eholnY","root":"UECaWi","align-widgets-top":"AVEAk7","align-widgets-center":"_5C4zLQ","icon-container":"StDR2P","loading-cell":"_2v0exp","content-wrapper":"_5K0uOT","render-item":"nxmy10","icon-wrapper":"GlUtUA","icon-default":"qG26OL","selected-mark":"BqhGno","uuiTypography":"L3NIYP","heroHeader":"-sP389","promoHeader":"uTOwKP","uuiCritical":"_5T6Gdp","uuiInfo":"WfDI2J","uuiSuccess":"_---oBV","uuiWarning":"MfCl5E","uuiHighlight":"Uvidl7","uuiTypographySize12":"jLWdTk","uuiTypographySize14":"pyCjtg","uuiTypographySize16":"eholnY","alignWidgetsTop":"AVEAk7","alignWidgetsCenter":"_5C4zLQ","iconContainer":"StDR2P","loadingCell":"_2v0exp","contentWrapper":"_5K0uOT","renderItem":"nxmy10","iconWrapper":"GlUtUA","iconDefault":"qG26OL","selectedMark":"BqhGno"};
|
|
2791
2818
|
|
|
2792
2819
|
function DataPickerCell(props) {
|
|
2793
2820
|
const ref = React__namespace.useRef();
|
|
@@ -2795,28 +2822,28 @@ function DataPickerCell(props) {
|
|
|
2795
2822
|
if (props.rowProps.isLoading) {
|
|
2796
2823
|
content = (
|
|
2797
2824
|
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
2798
|
-
React__namespace.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size], cx: css$
|
|
2825
|
+
React__namespace.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size], cx: css$H.loadingCell },
|
|
2799
2826
|
React__namespace.createElement(TextPlaceholder, null)));
|
|
2800
2827
|
}
|
|
2801
2828
|
else if (props.rowProps.isUnknown) {
|
|
2802
2829
|
content = (React__namespace.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size] }, "Unknown"));
|
|
2803
2830
|
}
|
|
2804
2831
|
else {
|
|
2805
|
-
content = (React__namespace.createElement("div", { key: `${props.rowProps.id}`, className: css$
|
|
2832
|
+
content = (React__namespace.createElement("div", { key: `${props.rowProps.id}`, className: css$H.renderItem },
|
|
2806
2833
|
props.renderItem(props.rowProps.value, props.rowProps),
|
|
2807
2834
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2808
|
-
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
2809
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: settings.sizes.pickerInput.body.dropdown.row.cell.icon[props.size], icon: settings.sizes.pickerInput.body.dropdown.row.cell.isBoldSelectionIcon[props.size] ? ForwardRef$s : ForwardRef$O, cx: props.rowProps.isChildrenSelected ? css$
|
|
2835
|
+
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React__namespace.createElement("div", { className: uuiCore.cx(css$H.iconWrapper, uuiCore.uuiMod.selected) },
|
|
2836
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: settings.sizes.pickerInput.body.dropdown.row.cell.icon[props.size], icon: settings.sizes.pickerInput.body.dropdown.row.cell.isBoldSelectionIcon[props.size] ? ForwardRef$s : ForwardRef$O, cx: props.rowProps.isChildrenSelected ? css$H.iconDefault : css$H.selectedMark, rawProps: { 'aria-label': props.rowProps.isChildrenSelected
|
|
2810
2837
|
? 'Child is selected'
|
|
2811
2838
|
: 'Selected' } })))));
|
|
2812
2839
|
}
|
|
2813
|
-
const getWrappedContent = () => (React__namespace.createElement("div", { className: css$
|
|
2840
|
+
const getWrappedContent = () => (React__namespace.createElement("div", { className: css$H.contentWrapper }, content));
|
|
2814
2841
|
return (React__namespace.createElement(FlexCell, { ref: ref, grow: 1, width: 0, minWidth: 0, rawProps: { role: 'cell' }, cx: [
|
|
2815
|
-
css$
|
|
2842
|
+
css$H.root,
|
|
2816
2843
|
props.cx,
|
|
2817
2844
|
'data-picker-cell',
|
|
2818
2845
|
props.size && `uui-size-${props.size}`,
|
|
2819
|
-
css$
|
|
2846
|
+
css$H[`align-widgets-${props.alignActions || 'top'}`],
|
|
2820
2847
|
], style: props.padding && {
|
|
2821
2848
|
'--uui-data_picker_cell-horizontal-padding': `${props.padding}px`,
|
|
2822
2849
|
} },
|
|
@@ -2824,7 +2851,7 @@ function DataPickerCell(props) {
|
|
|
2824
2851
|
getWrappedContent()));
|
|
2825
2852
|
}
|
|
2826
2853
|
|
|
2827
|
-
var css$
|
|
2854
|
+
var css$G = {"uui-typography":"KmVaRo","hero-header":"QWFgjX","promo-header":"ju02bk","uui-critical":"gsqesR","uui-info":"XPJP3J","uui-success":"_4bn4vC","uui-warning":"yO0RBs","uui-highlight":"Sfvad5","uui-typography-size-12":"dQu-dv","uui-typography-size-14":"nbU-hc","uui-typography-size-16":"_3ky1k6","picker-row":"Mm40S8","uuiTypography":"KmVaRo","heroHeader":"QWFgjX","promoHeader":"ju02bk","uuiCritical":"gsqesR","uuiInfo":"XPJP3J","uuiSuccess":"_4bn4vC","uuiWarning":"yO0RBs","uuiHighlight":"Sfvad5","uuiTypographySize12":"dQu-dv","uuiTypographySize14":"nbU-hc","uuiTypographySize16":"_3ky1k6","pickerRow":"Mm40S8"};
|
|
2828
2855
|
|
|
2829
2856
|
class DataPickerRow extends React__namespace.Component {
|
|
2830
2857
|
constructor() {
|
|
@@ -2834,20 +2861,20 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
2834
2861
|
};
|
|
2835
2862
|
}
|
|
2836
2863
|
render() {
|
|
2837
|
-
return (React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$
|
|
2864
|
+
return (React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$G.pickerRow, this.props.cx], renderContent: this.renderContent })));
|
|
2838
2865
|
}
|
|
2839
2866
|
}
|
|
2840
2867
|
|
|
2841
|
-
var css$
|
|
2868
|
+
var css$F = {"uui-typography":"_3vPdOB","hero-header":"rMjOH9","promo-header":"j7PqCT","uui-critical":"CV9YxQ","uui-info":"aJFzyJ","uui-success":"nzDhCh","uui-warning":"D302FC","uui-highlight":"agNeVj","uui-typography-size-12":"KWEEbZ","uui-typography-size-14":"XnapgA","uui-typography-size-16":"r46pxT","done":"FIddZU","container":"s8YsgN","uuiTypography":"_3vPdOB","heroHeader":"rMjOH9","promoHeader":"j7PqCT","uuiCritical":"CV9YxQ","uuiInfo":"aJFzyJ","uuiSuccess":"nzDhCh","uuiWarning":"D302FC","uuiHighlight":"agNeVj","uuiTypographySize12":"KWEEbZ","uuiTypographySize14":"XnapgA","uuiTypographySize16":"r46pxT"};
|
|
2842
2869
|
|
|
2843
2870
|
const PickerBodyMobileView = (props) => {
|
|
2844
2871
|
const isMobileView = uuiCore.isMobile();
|
|
2845
2872
|
const maxWidth = isMobileView ? 'auto' : props.maxWidth;
|
|
2846
2873
|
const maxHeight = isMobileView ? 'auto' : props.maxHeight;
|
|
2847
|
-
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$
|
|
2874
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$F.container, props.cx], autoFocus: true }),
|
|
2848
2875
|
isMobileView && React__namespace.default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
|
|
2849
2876
|
props.children,
|
|
2850
|
-
isMobileView && React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => { var _a; return (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$
|
|
2877
|
+
isMobileView && React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => { var _a; return (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$F.done, size: settings.sizes.pickerInput.body.mobile.footer.linkButton })));
|
|
2851
2878
|
};
|
|
2852
2879
|
|
|
2853
2880
|
var _path$r, _path2$4;
|
|
@@ -2872,7 +2899,7 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2872
2899
|
};
|
|
2873
2900
|
var ForwardRef$r = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
2874
2901
|
|
|
2875
|
-
var css$
|
|
2902
|
+
var css$E = {"uui-typography":"K7QXPd","hero-header":"YnTL8D","promo-header":"Fejt08","uui-critical":"qwQYDX","uui-info":"DkTwuU","uui-success":"-JgR3p","uui-warning":"iQ2HlF","uui-highlight":"skJunE","uui-typography-size-12":"AmVNf9","uui-typography-size-14":"Q5OJ1g","uui-typography-size-16":"wFbWJY","sub-header-wrapper":"dS880n","switch":"_6dZOdi","no-found-modal-container":"V4ibbJ","no-found-modal-container-icon":"OAQ6UN","no-found-modal-container-text":"_7RUOhC","uuiTypography":"K7QXPd","heroHeader":"YnTL8D","promoHeader":"Fejt08","uuiCritical":"qwQYDX","uuiInfo":"DkTwuU","uuiSuccess":"-JgR3p","uuiWarning":"iQ2HlF","uuiHighlight":"skJunE","uuiTypographySize12":"AmVNf9","uuiTypographySize14":"Q5OJ1g","uuiTypographySize16":"wFbWJY","subHeaderWrapper":"dS880n","$switch$":"_6dZOdi","noFoundModalContainer":"V4ibbJ","noFoundModalContainerIcon":"OAQ6UN","noFoundModalContainerText":"_7RUOhC"};
|
|
2876
2903
|
|
|
2877
2904
|
const mergeHighlightRanges = (ranges) => {
|
|
2878
2905
|
const mergedRanges = [];
|
|
@@ -2939,7 +2966,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
2939
2966
|
return getDecoratedText(str, ranges);
|
|
2940
2967
|
};
|
|
2941
2968
|
|
|
2942
|
-
var css$
|
|
2969
|
+
var css$D = {"root":"nmx00p","column-gap":"NcWFQ8","multiline":"-aoT4J","text":"uvN1vd","columnGap":"NcWFQ8"};
|
|
2943
2970
|
|
|
2944
2971
|
function PickerItem(props) {
|
|
2945
2972
|
var _a;
|
|
@@ -2949,13 +2976,13 @@ function PickerItem(props) {
|
|
|
2949
2976
|
const { search } = (_a = props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2950
2977
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(props.title, search) : props.title;
|
|
2951
2978
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(props.subtitle, search) : props.subtitle;
|
|
2952
|
-
return (React__namespace.createElement(FlexCell, { width: "auto", cx: [css$
|
|
2953
|
-
React__namespace.createElement(FlexRow, { size: itemSize, cx: [isMultiline && css$
|
|
2979
|
+
return (React__namespace.createElement(FlexCell, { width: "auto", cx: [css$D.root, 'uui-typography', cx] },
|
|
2980
|
+
React__namespace.createElement(FlexRow, { size: itemSize, cx: [isMultiline && css$D.multiline, css$D.columnGap], rawProps: { style: { '--uui-picker_item-vertical-padding': `${settings.sizes.pickerInput.body.dropdown.row.cell.item.verticalPadding[itemSize]}px` } } },
|
|
2954
2981
|
avatarUrl && (React__namespace.createElement(uuiComponents.Avatar, { isLoading: isLoading, img: avatarUrl, size: getAvatarSize(itemSize, isMultiline).toString() })),
|
|
2955
2982
|
icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: icon }),
|
|
2956
2983
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
2957
|
-
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$
|
|
2958
|
-
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$
|
|
2984
|
+
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$D.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : title)),
|
|
2985
|
+
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$D.text }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
2959
2986
|
}
|
|
2960
2987
|
function getAvatarSize(size, isMultiline) {
|
|
2961
2988
|
return settings.sizes.pickerInput.body.dropdown.row.cell.item.avatar[isMultiline ? 'multiline' : 'rest'][size];
|
|
@@ -2989,17 +3016,17 @@ function PickerModal(props) {
|
|
|
2989
3016
|
React__namespace.default.createElement(Button, { color: "primary", caption: i18n.pickerModal.selectButton, onClick: () => props.success(selection) })));
|
|
2990
3017
|
};
|
|
2991
3018
|
const renderNotFound = () => {
|
|
2992
|
-
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__namespace.default.createElement("div", { className: css$
|
|
2993
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { cx: css$
|
|
2994
|
-
React__namespace.default.createElement(Text, { cx: css$
|
|
2995
|
-
React__namespace.default.createElement(Text, { cx: css$
|
|
3019
|
+
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__namespace.default.createElement("div", { className: css$E.noFoundModalContainer },
|
|
3020
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { cx: css$E.noFoundModalContainerIcon, icon: ForwardRef$r }),
|
|
3021
|
+
React__namespace.default.createElement(Text, { cx: css$E.noFoundModalContainerText, fontWeight: "600", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
3022
|
+
React__namespace.default.createElement(Text, { cx: css$E.noFoundModalContainerText, fontSize: "12", lineHeight: "18", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
2996
3023
|
};
|
|
2997
3024
|
const dataRows = getRows();
|
|
2998
3025
|
const rows = dataRows.map((row) => renderRow(row));
|
|
2999
3026
|
return (React__namespace.default.createElement(ModalBlocker, Object.assign({}, props),
|
|
3000
3027
|
React__namespace.default.createElement(ModalWindow, { width: 600, height: 700 },
|
|
3001
3028
|
React__namespace.default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
3002
|
-
React__namespace.default.createElement(FlexCell, { cx: css$
|
|
3029
|
+
React__namespace.default.createElement(FlexCell, { cx: css$E.subHeaderWrapper },
|
|
3003
3030
|
React__namespace.default.createElement(FlexRow, { vPadding: "24" },
|
|
3004
3031
|
React__namespace.default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => uuiComponents.handleDataSourceKeyboard({
|
|
3005
3032
|
value: getDataSourceState(),
|
|
@@ -3008,20 +3035,20 @@ function PickerModal(props) {
|
|
|
3008
3035
|
rows: dataRows,
|
|
3009
3036
|
searchPosition: 'body',
|
|
3010
3037
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: { dir: 'auto' } }))),
|
|
3011
|
-
!isSingleSelect() && (React__namespace.default.createElement(Switch, Object.assign({ cx: css$
|
|
3038
|
+
!isSingleSelect() && (React__namespace.default.createElement(Switch, Object.assign({ cx: css$E.switch, size: "18" }, getFooterProps().showSelected, { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
3012
3039
|
props.renderFilter && React__namespace.default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
3013
3040
|
React__namespace.default.createElement(DataPickerBody, Object.assign({}, getListProps(), { value: getDataSourceState(), onValueChange: handleDataSourceValueChange, search: dataSourceStateLens.prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: renderNotFound, editMode: "modal" })),
|
|
3014
3041
|
React__namespace.default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3015
3042
|
}
|
|
3016
3043
|
|
|
3017
|
-
var css$
|
|
3044
|
+
var css$C = {"tooltip":"CQsB6W"};
|
|
3018
3045
|
|
|
3019
3046
|
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3020
3047
|
var _a;
|
|
3021
3048
|
const tagProps = Object.assign(Object.assign({}, props), { tabIndex: -1, size: settings.sizes.pickerInput.toggler.tag[props.size], caption: ((_a = props.rowProps) === null || _a === void 0 ? void 0 : _a.isLoading) ? React__namespace.createElement(TextPlaceholder, null) : props.caption });
|
|
3022
3049
|
if (props.isCollapsed) {
|
|
3023
3050
|
const collapsedRows = props.collapsedRows.map((row) => props.getName(row.value)).join(', ');
|
|
3024
|
-
return (React__namespace.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$
|
|
3051
|
+
return (React__namespace.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$C.tooltip },
|
|
3025
3052
|
React__namespace.createElement(Tag, Object.assign({ ref: ref, rawProps: { role: 'option' } }, tagProps))));
|
|
3026
3053
|
}
|
|
3027
3054
|
else {
|
|
@@ -3029,15 +3056,15 @@ const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
3029
3056
|
}
|
|
3030
3057
|
});
|
|
3031
3058
|
|
|
3032
|
-
var css$
|
|
3059
|
+
var css$B = {"uui-typography":"NvmU2F","hero-header":"gGvAZe","promo-header":"izRVKG","uui-critical":"xmU5kH","uui-info":"YBtyuQ","uui-success":"bFEyyO","uui-warning":"ZmgQYS","uui-highlight":"Lv0dG2","uui-typography-size-12":"bmUFtQ","uui-typography-size-14":"CKL5Y7","uui-typography-size-16":"zsUhPG","root":"JiAJ8K","mode-form":"Mk8NjG","mode-cell":"YDKiup","mode-inline":"tSu6mo","uuiTypography":"NvmU2F","heroHeader":"gGvAZe","promoHeader":"izRVKG","uuiCritical":"xmU5kH","uuiInfo":"YBtyuQ","uuiSuccess":"bFEyyO","uuiWarning":"ZmgQYS","uuiHighlight":"Lv0dG2","uuiTypographySize12":"bmUFtQ","uuiTypographySize14":"CKL5Y7","uuiTypographySize16":"zsUhPG","modeForm":"Mk8NjG","modeCell":"YDKiup","modeInline":"tSu6mo"};
|
|
3033
3060
|
|
|
3034
3061
|
const defaultMode = EditMode.FORM;
|
|
3035
3062
|
function applyPickerTogglerMods(mods) {
|
|
3036
3063
|
return [
|
|
3037
|
-
css$
|
|
3064
|
+
css$B.root,
|
|
3038
3065
|
'uui-picker_toggler',
|
|
3039
3066
|
`uui-size-${mods.size || settings.sizes.pickerInput.toggler.defaults.size}`,
|
|
3040
|
-
css$
|
|
3067
|
+
css$B['mode-' + (mods.mode || defaultMode)],
|
|
3041
3068
|
];
|
|
3042
3069
|
}
|
|
3043
3070
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -3126,7 +3153,7 @@ function PickerInputComponent(_a, ref) {
|
|
|
3126
3153
|
}
|
|
3127
3154
|
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
3128
3155
|
|
|
3129
|
-
var css$
|
|
3156
|
+
var css$A = {"row":"xwLjqb"};
|
|
3130
3157
|
|
|
3131
3158
|
function PickerListItem(props) {
|
|
3132
3159
|
var _a;
|
|
@@ -3144,10 +3171,10 @@ function PickerListItem(props) {
|
|
|
3144
3171
|
else {
|
|
3145
3172
|
component = (React__namespace.default.createElement(RadioInput, { label: label, value: props.isSelected, isDisabled: props.isLoading || !props.isSelectable || props.isDisabled, onValueChange: () => props.onSelect(props) }));
|
|
3146
3173
|
}
|
|
3147
|
-
return (React__namespace.default.createElement("div", Object.assign({ role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1 }, (((_a = props.checkbox) === null || _a === void 0 ? void 0 : _a.isVisible) && { 'aria-checked': props.isChecked }), { className: css$
|
|
3174
|
+
return (React__namespace.default.createElement("div", Object.assign({ role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1 }, (((_a = props.checkbox) === null || _a === void 0 ? void 0 : _a.isVisible) && { 'aria-checked': props.isChecked }), { className: css$A.row }), component));
|
|
3148
3175
|
}
|
|
3149
3176
|
|
|
3150
|
-
var css$
|
|
3177
|
+
var css$z = {"root":"_8dlJaz"};
|
|
3151
3178
|
|
|
3152
3179
|
function PickerList(props) {
|
|
3153
3180
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -3170,7 +3197,7 @@ function PickerList(props) {
|
|
|
3170
3197
|
const showPicker = viewProps.totalCount == null || viewProps.totalCount > getMaxDefaultItems();
|
|
3171
3198
|
const renderToggler = props.renderModalToggler || defaultRenderToggler;
|
|
3172
3199
|
const renderRow = props.renderRow || defaultRenderRow;
|
|
3173
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default('uui-picker-list', css$
|
|
3200
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default('uui-picker-list', css$z.root) },
|
|
3174
3201
|
!rows.length
|
|
3175
3202
|
&& (props.noOptionsMessage || (React__namespace.default.createElement(Text, { color: "secondary", size: props.size }, "No options available"))),
|
|
3176
3203
|
rows.map((row) => renderRow(Object.assign(Object.assign({}, row), { isDisabled: props.isDisabled }), dataSourceState)),
|
|
@@ -3182,7 +3209,7 @@ function PickerList(props) {
|
|
|
3182
3209
|
}, selectedRows)));
|
|
3183
3210
|
}
|
|
3184
3211
|
|
|
3185
|
-
var css$
|
|
3212
|
+
var css$y = {"uui-typography":"IXIwtn","hero-header":"gcdzix","promo-header":"Zk-yDs","uui-critical":"JuSJiv","uui-info":"yNSKnR","uui-success":"iu2Oku","uui-warning":"enRwuW","uui-highlight":"F3ywWg","uui-typography-size-12":"kxwOA0","uui-typography-size-14":"yTEqEY","uui-typography-size-16":"w-kkFK","root":"wc2P--","wrapper":"aMnK-J","align-widgets-top":"P7DVaa","align-widgets-center":"_7xlRjH","uuiTypography":"IXIwtn","heroHeader":"gcdzix","promoHeader":"Zk-yDs","uuiCritical":"JuSJiv","uuiInfo":"yNSKnR","uuiSuccess":"iu2Oku","uuiWarning":"enRwuW","uuiHighlight":"F3ywWg","uuiTypographySize12":"kxwOA0","uuiTypographySize14":"yTEqEY","uuiTypographySize16":"w-kkFK","alignWidgetsTop":"P7DVaa","alignWidgetsCenter":"_7xlRjH"};
|
|
3186
3213
|
|
|
3187
3214
|
function DataTableCell(initialProps) {
|
|
3188
3215
|
const props = Object.assign({}, initialProps);
|
|
@@ -3216,12 +3243,12 @@ function DataTableCell(initialProps) {
|
|
|
3216
3243
|
};
|
|
3217
3244
|
props.cx = [
|
|
3218
3245
|
'data-table-cell',
|
|
3219
|
-
css$
|
|
3246
|
+
css$y.root,
|
|
3220
3247
|
props.cx,
|
|
3221
3248
|
'uui-size-' + (props.size || settings.sizes.dataTable.body.row.cell.defaults.size),
|
|
3222
3249
|
props.isFirstColumn && 'uui-dt-first-column',
|
|
3223
3250
|
props.isLastColumn && 'uui-dt-last-column',
|
|
3224
|
-
css$
|
|
3251
|
+
css$y[`align-widgets-${props.alignActions || 'top'}`],
|
|
3225
3252
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
3226
3253
|
];
|
|
3227
3254
|
props.style = {
|
|
@@ -3231,7 +3258,7 @@ function DataTableCell(initialProps) {
|
|
|
3231
3258
|
return React__namespace.createElement(uuiComponents.DataTableCell, Object.assign({}, props));
|
|
3232
3259
|
}
|
|
3233
3260
|
|
|
3234
|
-
var css$
|
|
3261
|
+
var css$x = {"uui-typography":"RINLW9","hero-header":"_2PKZfb","promo-header":"R-3HsK","uui-critical":"WU4J3e","uui-info":"-sjX4R","uui-success":"yNA-68","uui-warning":"PNNyZ6","uui-highlight":"sLidlb","uui-typography-size-12":"f71kgK","uui-typography-size-14":"_9KcAvl","uui-typography-size-16":"LnifN9","root":"_2p9z-U","uuiTypography":"RINLW9","heroHeader":"_2PKZfb","promoHeader":"R-3HsK","uuiCritical":"WU4J3e","uuiInfo":"-sjX4R","uuiSuccess":"yNA-68","uuiWarning":"PNNyZ6","uuiHighlight":"sLidlb","uuiTypographySize12":"f71kgK","uuiTypographySize14":"_9KcAvl","uuiTypographySize16":"LnifN9"};
|
|
3235
3262
|
|
|
3236
3263
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3237
3264
|
// As we need our mods to style the cell properly, we extract them from DataTableCellProps.rowProps, which is a hack, but it's reliable enough.
|
|
@@ -3243,11 +3270,11 @@ const renderDropMarkers = (props) => React__namespace.createElement(DropMarker,
|
|
|
3243
3270
|
const propsMods = { renderCell, renderDropMarkers };
|
|
3244
3271
|
const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow, ({ borderBottom = true, size }) => {
|
|
3245
3272
|
return [
|
|
3246
|
-
css$
|
|
3273
|
+
css$x.root, 'uui-dt-vars', borderBottom && 'uui-dt-row-border', `uui-size-${size || settings.sizes.dataTable.body.row.default}`,
|
|
3247
3274
|
];
|
|
3248
3275
|
}, () => propsMods);
|
|
3249
3276
|
|
|
3250
|
-
var css$
|
|
3277
|
+
var css$w = {"uui-typography":"UF-XUO","hero-header":"aE2Ipa","promo-header":"f-laxh","uui-critical":"ODLMd3","uui-info":"_9r-HYP","uui-success":"NzVRhT","uui-warning":"WxLK5f","uui-highlight":"_4C-fbr","uui-typography-size-12":"FxCW9s","uui-typography-size-14":"so2sHN","uui-typography-size-16":"SkgO6s","sorting-panel-container":"KahKEx","uuiTypography":"UF-XUO","heroHeader":"aE2Ipa","promoHeader":"f-laxh","uuiCritical":"ODLMd3","uuiInfo":"_9r-HYP","uuiSuccess":"NzVRhT","uuiWarning":"WxLK5f","uuiHighlight":"_4C-fbr","uuiTypographySize12":"FxCW9s","uuiTypographySize14":"so2sHN","uuiTypographySize16":"SkgO6s","sortingPanelContainer":"KahKEx"};
|
|
3251
3278
|
|
|
3252
3279
|
var _path$q;
|
|
3253
3280
|
function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
|
|
@@ -3282,7 +3309,7 @@ var ForwardRef$p = /*#__PURE__*/React.forwardRef(SvgTableSortDescOutline);
|
|
|
3282
3309
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3283
3310
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
3284
3311
|
const sortDesc = React.useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
3285
|
-
return (React__namespace.default.createElement(FlexCell, { cx: uuiCore.cx(css$
|
|
3312
|
+
return (React__namespace.default.createElement(FlexCell, { cx: uuiCore.cx(css$w.sortingPanelContainer, 'uui-dropdownMenu-body') },
|
|
3286
3313
|
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$q, onClick: sortAsc }),
|
|
3287
3314
|
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$p, onClick: sortDesc })));
|
|
3288
3315
|
};
|
|
@@ -3377,7 +3404,7 @@ var SvgNavigationExpandAllOutline = function SvgNavigationExpandAllOutline(props
|
|
|
3377
3404
|
};
|
|
3378
3405
|
var ForwardRef$k = /*#__PURE__*/React.forwardRef(SvgNavigationExpandAllOutline);
|
|
3379
3406
|
|
|
3380
|
-
var css$
|
|
3407
|
+
var css$v = {"uui-typography":"_5eFXni","hero-header":"O-5vZZ","promo-header":"u7u76x","uui-critical":"E3FjtM","uui-info":"_5qPrsM","uui-success":"ECoi0B","uui-warning":"Frznwg","uui-highlight":"UR5xbZ","uui-typography-size-12":"S4X4qj","uui-typography-size-14":"IPLd7s","uui-typography-size-16":"_-2gjCG","root":"RgckTZ","caption-wrapper":"Fu2yD-","sort-icon":"nPEMC3","dropdown-icon":"olxWkw","infoIcon":"_-6R-vp","resizable":"_2DeeQU","align-right":"O3TpFO","align-center":"BJ-hlC","caption":"UNduWY","truncate":"bXHn3i","checkbox":"_3-UDCj","icon":"zciOoW","fold-all-icon":"OIDjqB","cell-tooltip":"RSMIJo","upper-case":"bIos-q","resizing-marker":"IAoSZC","pinned-right":"oF9eOi","draggable":"vGz1NM","ghost":"FWMIAO","is-dragged-out":"geXWh5","dnd-marker-left":"LoTxGv","dnd-marker-right":"_28ovYp","cell-tooltip-wrapper":"gCyjhX","cell-tooltip-text":"ldzxFC","tooltip-caption":"EKkzXR","tooltip-info":"-X1CBi","uuiTypography":"_5eFXni","heroHeader":"O-5vZZ","promoHeader":"u7u76x","uuiCritical":"E3FjtM","uuiInfo":"_5qPrsM","uuiSuccess":"ECoi0B","uuiWarning":"Frznwg","uuiHighlight":"UR5xbZ","uuiTypographySize12":"S4X4qj","uuiTypographySize14":"IPLd7s","uuiTypographySize16":"_-2gjCG","captionWrapper":"Fu2yD-","sortIcon":"nPEMC3","dropdownIcon":"olxWkw","alignRight":"O3TpFO","alignCenter":"BJ-hlC","foldAllIcon":"OIDjqB","cellTooltip":"RSMIJo","upperCase":"bIos-q","resizingMarker":"IAoSZC","pinnedRight":"oF9eOi","isDraggedOut":"geXWh5","dndMarkerLeft":"LoTxGv","dndMarkerRight":"_28ovYp","cellTooltipWrapper":"gCyjhX","cellTooltipText":"ldzxFC","tooltipCaption":"EKkzXR","tooltipInfo":"-X1CBi"};
|
|
3381
3408
|
|
|
3382
3409
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
3383
3410
|
constructor() {
|
|
@@ -3385,27 +3412,27 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3385
3412
|
this.state = {
|
|
3386
3413
|
isDropdownOpen: null,
|
|
3387
3414
|
};
|
|
3388
|
-
this.getTooltipContent = (column) => (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
3389
|
-
React__namespace.createElement(Text, { cx: [css$
|
|
3390
|
-
column.info && (React__namespace.createElement(Text, { cx: [css$
|
|
3415
|
+
this.getTooltipContent = (column) => (React__namespace.createElement("div", { className: uuiCore.cx(css$v.cellTooltipWrapper, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionTooltip) },
|
|
3416
|
+
React__namespace.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipCaption] }, column.caption),
|
|
3417
|
+
column.info && (React__namespace.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipInfo] }, column.info))));
|
|
3391
3418
|
this.getColumnCaption = () => {
|
|
3392
3419
|
const renderTooltip = this.props.column.renderTooltip || this.getTooltipContent;
|
|
3393
3420
|
const captionCx = [
|
|
3394
|
-
css$
|
|
3395
|
-
this.props.textCase === 'upper' && css$
|
|
3421
|
+
css$v.caption,
|
|
3422
|
+
this.props.textCase === 'upper' && css$v.upperCase,
|
|
3396
3423
|
uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaption,
|
|
3397
|
-
settings.sizes.dataTable.header.row.cell.truncate.includes(this.props.size) && css$
|
|
3424
|
+
settings.sizes.dataTable.header.row.cell.truncate.includes(this.props.size) && css$v.truncate,
|
|
3398
3425
|
];
|
|
3399
|
-
return (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
3400
|
-
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: css$
|
|
3426
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$v.captionWrapper, css$v['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
3427
|
+
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: css$v.cellTooltip, openDelay: 600 },
|
|
3401
3428
|
React__namespace.createElement(Text, { key: "text", fontSize: settings.sizes.dataTable.header.row.cell.columnCaption[this.props.textCase === 'upper' ? 'uppercase' : 'fontSize'], size: settings.sizes.dataTable.header.row.cell.columnCaption.size, cx: captionCx }, this.props.column.caption)),
|
|
3402
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$
|
|
3403
|
-
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$
|
|
3404
|
-
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$
|
|
3429
|
+
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$v.icon, css$v.sortIcon, this.props.sortDirection && css$v.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'neutral' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$p : this.props.sortDirection === 'asc' ? ForwardRef$q : ForwardRef$o })),
|
|
3430
|
+
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$v.icon, !this.props.sortDirection && css$v.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "neutral", icon: ForwardRef$n })),
|
|
3431
|
+
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$v.icon, css$v.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$m : ForwardRef$P }))));
|
|
3405
3432
|
};
|
|
3406
3433
|
this.renderHeaderCheckbox = () => {
|
|
3407
3434
|
if (this.props.selectAll && this.props.isFirstColumn) {
|
|
3408
|
-
return (React__namespace.createElement(Checkbox, Object.assign({ size: settings.sizes.dataTable.header.row.cell.checkbox[this.props.size] }, this.props.selectAll, { cx: uuiCore.cx(css$
|
|
3435
|
+
return (React__namespace.createElement(Checkbox, Object.assign({ size: settings.sizes.dataTable.header.row.cell.checkbox[this.props.size] }, this.props.selectAll, { cx: uuiCore.cx(css$v.checkbox, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCheckbox) })));
|
|
3409
3436
|
}
|
|
3410
3437
|
};
|
|
3411
3438
|
this.renderFoldAllIcon = () => {
|
|
@@ -3413,14 +3440,14 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3413
3440
|
return (React__namespace.createElement(Tooltip, { content: this.props.areAllFolded
|
|
3414
3441
|
? i18n.tables.columnHeader.expandAllTooltip
|
|
3415
3442
|
: i18n.tables.columnHeader.collapseAllTooltip },
|
|
3416
|
-
React__namespace.createElement(IconButton, { color: "secondary", cx: uuiCore.cx(css$
|
|
3443
|
+
React__namespace.createElement(IconButton, { color: "secondary", cx: uuiCore.cx(css$v.icon, css$v.foldAllIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFoldAllIcon), icon: this.props.areAllFolded ? ForwardRef$k : ForwardRef$l, onClick: this.props.onFoldAll, rawProps: {
|
|
3417
3444
|
'aria-label': this.props.areAllFolded ? 'Expand All' : 'Collapse All',
|
|
3418
3445
|
'aria-expanded': !!this.props.areAllFolded,
|
|
3419
3446
|
} })));
|
|
3420
3447
|
}
|
|
3421
3448
|
};
|
|
3422
3449
|
this.renderResizingMarker = (props) => {
|
|
3423
|
-
return (React__namespace.createElement("div", { role: "separator", onMouseDown: props.onResizeStart, className: uuiCore.cx(css$
|
|
3450
|
+
return (React__namespace.createElement("div", { role: "separator", onMouseDown: props.onResizeStart, className: uuiCore.cx(css$v.resizingMarker, uuiCore.uuiMarkers.draggable, uuiCore.uuiMarkers.clickable) }));
|
|
3424
3451
|
};
|
|
3425
3452
|
this.getLeftPadding = () => {
|
|
3426
3453
|
const { columnsGap, isFirstColumn } = this.props;
|
|
@@ -3452,7 +3479,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3452
3479
|
var _a;
|
|
3453
3480
|
props.ref(ref);
|
|
3454
3481
|
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
3455
|
-
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$
|
|
3482
|
+
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$v.root, `uui-size-${this.props.size || settings.sizes.dataTable.header.row.cell.defaults.size}`, this.props.isFirstColumn && 'uui-dt-header-first-column', this.props.isLastColumn && 'uui-dt-header-last-column', this.props.column.fix && css$v['pinned-' + this.props.column.fix], isResizable && css$v.resizable, props.isDraggable && css$v.draggable, props.isDragGhost && css$v.ghost, props.isDraggedOut && css$v.isDraggedOut, props.isDndInProgress && css$v['dnd-marker-' + props.position]), onClick: onClickEvent, rawProps: Object.assign({ role: 'columnheader', 'aria-sort': this.props.sortDirection === 'asc' ? 'ascending' : this.props.sortDirection ? 'descending' : 'none' }, props.eventHandlers), style: computeStyles },
|
|
3456
3483
|
this.renderHeaderCheckbox(),
|
|
3457
3484
|
this.renderFoldAllIcon(),
|
|
3458
3485
|
this.getColumnCaption(),
|
|
@@ -3483,10 +3510,66 @@ var SvgActionSettingsFill = function SvgActionSettingsFill(props, ref) {
|
|
|
3483
3510
|
};
|
|
3484
3511
|
var ForwardRef$j = /*#__PURE__*/React.forwardRef(SvgActionSettingsFill);
|
|
3485
3512
|
|
|
3486
|
-
var css$
|
|
3513
|
+
var css$u = {"uui-typography":"Quv3q7","hero-header":"cd416h","promo-header":"fRlxtA","uui-critical":"wBWqZY","uui-info":"sliYzq","uui-success":"xNaS3m","uui-warning":"Vt7KjL","uui-highlight":"Or40sM","uui-typography-size-12":"GHrkqQ","uui-typography-size-14":"VNg2pI","uui-typography-size-16":"oHe-rC","root":"_-7GAkE","uuiTypography":"Quv3q7","heroHeader":"cd416h","promoHeader":"fRlxtA","uuiCritical":"wBWqZY","uuiInfo":"sliYzq","uuiSuccess":"xNaS3m","uuiWarning":"Vt7KjL","uuiHighlight":"Or40sM","uuiTypographySize12":"GHrkqQ","uuiTypographySize14":"VNg2pI","uuiTypographySize16":"oHe-rC"};
|
|
3514
|
+
|
|
3515
|
+
var css$t = {"uui-typography":"D5x7Va","hero-header":"Kc-ium","promo-header":"DAd6L1","uui-critical":"x9VQCS","uui-info":"h0CW9X","uui-success":"_9V0vNz","uui-warning":"waEQkw","uui-highlight":"ZCTPin","uui-typography-size-12":"nLmHuR","uui-typography-size-14":"UrM7NM","uui-typography-size-16":"rMzoRx","root":"tjuGb1","caption-wrapper":"JPo2-7","align-center":"aZg84y","caption":"qnrN4G","truncate":"tK1X94","group-cell-tooltip":"m1qe-o","upper-case":"RURfyH","group-cell-tooltip-wrapper":"_9VA284","group-cell-tooltip-text":"ZETqRo","tooltip-caption":"s6LX6H","tooltip-info":"KQBVWp","uuiTypography":"D5x7Va","heroHeader":"Kc-ium","promoHeader":"DAd6L1","uuiCritical":"x9VQCS","uuiInfo":"h0CW9X","uuiSuccess":"_9V0vNz","uuiWarning":"waEQkw","uuiHighlight":"ZCTPin","uuiTypographySize12":"nLmHuR","uuiTypographySize14":"UrM7NM","uuiTypographySize16":"rMzoRx","captionWrapper":"JPo2-7","alignCenter":"aZg84y","groupCellTooltip":"m1qe-o","upperCase":"RURfyH","groupCellTooltipWrapper":"_9VA284","groupCellTooltipText":"ZETqRo","tooltipCaption":"s6LX6H","tooltipInfo":"KQBVWp"};
|
|
3516
|
+
|
|
3517
|
+
class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
3518
|
+
constructor() {
|
|
3519
|
+
super(...arguments);
|
|
3520
|
+
this.getTooltipContent = (column) => (React__namespace.createElement("div", { className: uuiCore.cx(css$t.groupCellTooltipWrapper, uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaptionTooltip) },
|
|
3521
|
+
React__namespace.createElement(Text, { cx: [css$t.groupCellTooltipText, css$t.tooltipCaption] }, column.caption),
|
|
3522
|
+
column.info && (React__namespace.createElement(Text, { cx: [css$t.groupCellTooltipText, css$t.tooltipInfo] }, column.info))));
|
|
3523
|
+
this.getColumnCaption = () => {
|
|
3524
|
+
const renderTooltip = this.props.group.renderTooltip || this.getTooltipContent;
|
|
3525
|
+
const captionCx = [
|
|
3526
|
+
css$t.caption,
|
|
3527
|
+
this.props.textCase === 'upper' && css$t.upperCase,
|
|
3528
|
+
uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaption,
|
|
3529
|
+
settings.sizes.dataTable.header.row.groupCell.truncate.includes(this.props.size) && css$t.truncate,
|
|
3530
|
+
];
|
|
3531
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$t.captionWrapper, css$t['align-' + this.props.group.textAlign], uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaptionWrapper) },
|
|
3532
|
+
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.group), cx: css$t.groupCellTooltip, openDelay: 600 },
|
|
3533
|
+
React__namespace.createElement(Text, { key: "text", fontSize: settings.sizes.dataTable.header.row.groupCell.columnCaption[this.props.textCase === 'upper' ? 'uppercase' : 'fontSize'], size: settings.sizes.dataTable.header.row.groupCell.columnCaption.size, cx: captionCx }, this.props.group.caption))));
|
|
3534
|
+
};
|
|
3535
|
+
this.getLeftPadding = () => {
|
|
3536
|
+
const { columnsGap, isFirstCell } = this.props;
|
|
3537
|
+
if (columnsGap)
|
|
3538
|
+
return isFirstCell ? columnsGap : +columnsGap / 2;
|
|
3539
|
+
return isFirstCell ? settings.sizes.dataTable.header.row.groupCell.defaults.paddingEdge : settings.sizes.dataTable.header.row.groupCell.defaults.padding;
|
|
3540
|
+
};
|
|
3541
|
+
this.getRightPadding = () => {
|
|
3542
|
+
const { columnsGap, isLastCell } = this.props;
|
|
3543
|
+
if (columnsGap)
|
|
3544
|
+
return isLastCell ? columnsGap : +columnsGap / 2;
|
|
3545
|
+
return isLastCell ? settings.sizes.dataTable.header.row.groupCell.defaults.paddingEdge : settings.sizes.dataTable.header.row.groupCell.defaults.padding;
|
|
3546
|
+
};
|
|
3547
|
+
this.renderCellContent = (props) => {
|
|
3548
|
+
const computeStyles = {
|
|
3549
|
+
'--uui-dt-header-group-cell-padding-start': `${this.getLeftPadding()}px`,
|
|
3550
|
+
'--uui-dt-header-group-cell-padding-end': `${this.getRightPadding()}px`,
|
|
3551
|
+
};
|
|
3552
|
+
return (React__namespace.createElement(uuiComponents.DataTableCellContainer, { column: this.props.group, ref: (ref) => {
|
|
3553
|
+
props.ref(ref);
|
|
3554
|
+
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCell, css$t.root, `uui-size-${this.props.size || settings.sizes.dataTable.header.row.groupCell.defaults.size}`, this.props.isFirstCell && 'uui-dt-header-first-column', this.props.isLastCell && 'uui-dt-header-last-column'), rawProps: Object.assign({ role: 'columnheader' }, props.eventHandlers), style: computeStyles }, this.getColumnCaption()));
|
|
3555
|
+
};
|
|
3556
|
+
}
|
|
3557
|
+
render() {
|
|
3558
|
+
if (this.props.group.renderHeaderCell) {
|
|
3559
|
+
return this.props.group.renderHeaderCell(this.props);
|
|
3560
|
+
}
|
|
3561
|
+
const computeStyles = {
|
|
3562
|
+
'--uui-dt-header-group-cell-padding-start': `${this.getLeftPadding()}px`,
|
|
3563
|
+
'--uui-dt-header-group-cell-padding-end': `${this.getRightPadding()}px`,
|
|
3564
|
+
width: '100%',
|
|
3565
|
+
};
|
|
3566
|
+
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()));
|
|
3567
|
+
}
|
|
3568
|
+
}
|
|
3487
3569
|
|
|
3488
|
-
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$
|
|
3570
|
+
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$u.root, 'uui-dt-vars'], (mods) => ({
|
|
3489
3571
|
renderCell: (props) => (React__namespace.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap }))),
|
|
3572
|
+
renderGroupCell: (props) => (React__namespace.createElement(DataTableHeaderGroupCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.key, columnsGap: mods.columnsGap }))),
|
|
3490
3573
|
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 })),
|
|
3491
3574
|
}));
|
|
3492
3575
|
|
|
@@ -3495,7 +3578,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
3495
3578
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
3496
3579
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
3497
3580
|
|
|
3498
|
-
var css$s = {"uui-typography":"
|
|
3581
|
+
var css$s = {"uui-typography":"fo2CwB","hero-header":"JLHxdD","promo-header":"x47PAy","uui-critical":"VIE7nL","uui-info":"_0mdSGs","uui-success":"L9MjGW","uui-warning":"_4hav8N","uui-highlight":"pbtCxN","uui-typography-size-12":"VsSIeB","uui-typography-size-14":"Eh4pwj","uui-typography-size-16":"BwE4sY","root":"gLieAI","title-wrapper":"_8Ju-ZW","title":"_86rgMl","text-wrapper":"_9pG4Ze","selection":"_7DQ8UA","postfix":"UBiHLa","selected":"JvgXzX","uuiTypography":"fo2CwB","heroHeader":"JLHxdD","promoHeader":"x47PAy","uuiCritical":"VIE7nL","uuiInfo":"_0mdSGs","uuiSuccess":"L9MjGW","uuiWarning":"_4hav8N","uuiHighlight":"pbtCxN","uuiTypographySize12":"VsSIeB","uuiTypographySize14":"Eh4pwj","uuiTypographySize16":"BwE4sY","titleWrapper":"_8Ju-ZW","textWrapper":"_9pG4Ze"};
|
|
3499
3582
|
|
|
3500
3583
|
const defaultSize = '36';
|
|
3501
3584
|
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
@@ -3673,7 +3756,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
3673
3756
|
React__namespace.default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
3674
3757
|
}
|
|
3675
3758
|
|
|
3676
|
-
var css$r = {"container":"
|
|
3759
|
+
var css$r = {"container":"_6ZBiWx"};
|
|
3677
3760
|
|
|
3678
3761
|
function FilterNumericBody(props) {
|
|
3679
3762
|
var _a, _b;
|
|
@@ -3771,7 +3854,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
3771
3854
|
};
|
|
3772
3855
|
var ForwardRef$i = /*#__PURE__*/React.forwardRef(SvgActionDeleteOutline);
|
|
3773
3856
|
|
|
3774
|
-
var css$q = {"uui-typography":"
|
|
3857
|
+
var css$q = {"uui-typography":"m9TdZM","hero-header":"hM-ss5","promo-header":"FxaAIM","uui-critical":"oyeFBi","uui-info":"ht90RN","uui-success":"DRuxST","uui-warning":"nE-E8J","uui-highlight":"sXrtwp","uui-typography-size-12":"XCcnwj","uui-typography-size-14":"mttp0I","uui-typography-size-16":"v-QoP9","header":"_3ELQSr","removeButton":"ZuyU3S","with-search":"_8HtXfd","uuiTypography":"m9TdZM","heroHeader":"hM-ss5","promoHeader":"FxaAIM","uuiCritical":"oyeFBi","uuiInfo":"ht90RN","uuiSuccess":"DRuxST","uuiWarning":"nE-E8J","uuiHighlight":"sXrtwp","uuiTypographySize12":"XCcnwj","uuiTypographySize14":"mttp0I","uuiTypographySize16":"v-QoP9","withSearch":"_8HtXfd"};
|
|
3775
3858
|
|
|
3776
3859
|
function useView(props, value) {
|
|
3777
3860
|
const forceUpdate = uuiCore.useForceUpdate();
|
|
@@ -4092,7 +4175,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4092
4175
|
}
|
|
4093
4176
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
4094
4177
|
|
|
4095
|
-
var css$p = {"divider":"
|
|
4178
|
+
var css$p = {"divider":"_4wr1zo","dropdownDeleteIcon":"A0ppIK","presetsWrapper":"zsSH7j","addPresetContainer":"WXKR8O","dropContainer":"RWWHlr"};
|
|
4096
4179
|
|
|
4097
4180
|
var _path$g;
|
|
4098
4181
|
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); }
|
|
@@ -4205,7 +4288,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4205
4288
|
};
|
|
4206
4289
|
var ForwardRef$a = /*#__PURE__*/React.forwardRef(SvgContentLinkOutline);
|
|
4207
4290
|
|
|
4208
|
-
var css$o = {"delete-button":"
|
|
4291
|
+
var css$o = {"delete-button":"_0NxjSE","tab-button":"RFzq0v","targetOpen":"ogYZs5","deleteButton":"_0NxjSE","tabButton":"RFzq0v"};
|
|
4209
4292
|
|
|
4210
4293
|
function PresetActionsDropdown(props) {
|
|
4211
4294
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -4263,7 +4346,7 @@ function PresetActionsDropdown(props) {
|
|
|
4263
4346
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4264
4347
|
}
|
|
4265
4348
|
|
|
4266
|
-
var css$n = {"preset-input-cell":"
|
|
4349
|
+
var css$n = {"preset-input-cell":"KFihLD","preset-input":"Pkz6yn","presetInputCell":"KFihLD","presetInput":"Pkz6yn"};
|
|
4267
4350
|
|
|
4268
4351
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4269
4352
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4296,7 +4379,7 @@ function PresetInput(props) {
|
|
|
4296
4379
|
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 })));
|
|
4297
4380
|
}
|
|
4298
4381
|
|
|
4299
|
-
var css$m = {"preset":"
|
|
4382
|
+
var css$m = {"preset":"_3vILba","activePreset":"BjloKB"};
|
|
4300
4383
|
|
|
4301
4384
|
function Preset(props) {
|
|
4302
4385
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -4470,7 +4553,7 @@ var SvgTableGroupColumnRightFill = function SvgTableGroupColumnRightFill(props,
|
|
|
4470
4553
|
};
|
|
4471
4554
|
var ForwardRef$6 = /*#__PURE__*/React.forwardRef(SvgTableGroupColumnRightFill);
|
|
4472
4555
|
|
|
4473
|
-
var css$l = {"unpin-icon":"
|
|
4556
|
+
var css$l = {"unpin-icon":"XaICNP","pin-toggler-icon":"C4564U","unpinIcon":"XaICNP","pinTogglerIcon":"C4564U"};
|
|
4474
4557
|
|
|
4475
4558
|
function PinIconButton(props) {
|
|
4476
4559
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4529,7 +4612,7 @@ var SvgActionDragIndicator18 = function SvgActionDragIndicator18(props, ref) {
|
|
|
4529
4612
|
};
|
|
4530
4613
|
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgActionDragIndicator18);
|
|
4531
4614
|
|
|
4532
|
-
var css$k = {"uui-typography":"
|
|
4615
|
+
var css$k = {"uui-typography":"zx8y6o","hero-header":"l19r9H","promo-header":"Rmw90J","uui-critical":"cLe9O5","uui-info":"FxoVZc","uui-success":"hhjF7y","uui-warning":"ZFJyTI","uui-highlight":"TjqTD3","uui-typography-size-12":"_8I-etm","uui-typography-size-14":"oSvede","uui-typography-size-16":"FeIXi9","row-wrapper":"yXSQ49","pin-icon-button":"mUe4I1","not-pinned":"dTvNi8","checkbox":"FikcF7","drag-handle":"RXAPI1","dnd-disabled":"spCa20","uuiTypography":"zx8y6o","heroHeader":"l19r9H","promoHeader":"Rmw90J","uuiCritical":"cLe9O5","uuiInfo":"FxoVZc","uuiSuccess":"hhjF7y","uuiWarning":"ZFJyTI","uuiHighlight":"TjqTD3","uuiTypographySize12":"_8I-etm","uuiTypographySize14":"oSvede","uuiTypographySize16":"FeIXi9","rowWrapper":"yXSQ49","pinIconButton":"mUe4I1","notPinned":"dTvNi8","dragHandle":"RXAPI1","dndDisabled":"spCa20"};
|
|
4533
4616
|
|
|
4534
4617
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
4535
4618
|
const { column } = props;
|
|
@@ -4539,10 +4622,10 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4539
4622
|
const isPinned = !!pinPosition;
|
|
4540
4623
|
const data = { column, columnConfig };
|
|
4541
4624
|
const renderContent = (dndActorParams) => {
|
|
4542
|
-
const wrapperClasses = uuiCore.cx(css$k.rowWrapper, !isPinned && css$k.notPinned, dndActorParams.isDragGhost && uuiCore.uuiDndState.dragGhost);
|
|
4625
|
+
const wrapperClasses = uuiCore.cx(css$k.rowWrapper, !isPinned && css$k.notPinned, dndActorParams.isDragGhost && uuiCore.uuiDndState.dragGhost, 'uui-dt-columns-config-row');
|
|
4543
4626
|
const _a = dndActorParams.eventHandlers, { onTouchStart, onPointerDown } = _a, restEventHandlers = __rest(_a, ["onTouchStart", "onPointerDown"]);
|
|
4544
4627
|
const dndActorPropsWithoutRef = __rest(dndActorParams, ["ref"]);
|
|
4545
|
-
return (React__namespace.createElement(FlexRow, { size:
|
|
4628
|
+
return (React__namespace.createElement(FlexRow, { size: settings.sizes.dataTable.columnsConfigurationModal.columnRow, cx: wrapperClasses, ref: dndActorParams.ref, rawProps: Object.assign({}, restEventHandlers), alignItems: "top" },
|
|
4546
4629
|
React__namespace.createElement(uuiComponents.DragHandle, { dragHandleIcon: ForwardRef$5, rawProps: { onTouchStart, onPointerDown }, isDisabled: !isDndAllowed, cx: uuiCore.cx(css$k.dragHandle, !isDndAllowed && css$k.dndDisabled) }),
|
|
4547
4630
|
React__namespace.createElement(Checkbox, { key: column.key, label: props.renderItem ? props.renderItem(props.column) : column.caption, value: isVisible, onValueChange: toggleVisibility, isReadonly: column.isAlwaysVisible || column.isLocked, cx: css$k.checkbox }),
|
|
4548
4631
|
React__namespace.createElement(FlexRow, { size: null, cx: css$k.pinIconButton },
|
|
@@ -4552,7 +4635,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4552
4635
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4553
4636
|
});
|
|
4554
4637
|
|
|
4555
|
-
var css$j = {"uui-typography":"
|
|
4638
|
+
var css$j = {"uui-typography":"BPGGBr","hero-header":"H-xLAU","promo-header":"jljpRr","uui-critical":"-W8-99","uui-info":"ycnIVU","uui-success":"R85t4t","uui-warning":"_26Dbaj","uui-highlight":"KThh3M","uui-typography-size-12":"uSQYqS","uui-typography-size-14":"_76hbIb","uui-typography-size-16":"-H--aJ","root":"R-Fd1v","main-panel":"_9-4YfA","group":"hKbCr-","group-title":"tR65jM","group-items":"RpwYxv","no-data":"_3osPKz","no-data-title":"XNORCB","no-data-sub-title":"KhrIYn","h-divider":"_8GOIaz","search-area":"_9uZZP-","subgroup-accordion":"B6L7vQ","subgroup":"Jcgttd","subgroup-title":"yZg5D5","uuiTypography":"BPGGBr","heroHeader":"H-xLAU","promoHeader":"jljpRr","uuiCritical":"-W8-99","uuiInfo":"ycnIVU","uuiSuccess":"R85t4t","uuiWarning":"_26Dbaj","uuiHighlight":"KThh3M","uuiTypographySize12":"uSQYqS","uuiTypographySize14":"_76hbIb","uuiTypographySize16":"-H--aJ","mainPanel":"_9-4YfA","groupTitle":"tR65jM","groupItems":"RpwYxv","noData":"_3osPKz","noDataTitle":"XNORCB","noDataSubTitle":"KhrIYn","hDivider":"_8GOIaz","searchArea":"_9uZZP-","subgroupAccordion":"B6L7vQ","subgroupTitle":"yZg5D5"};
|
|
4556
4639
|
|
|
4557
4640
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$j.group },
|
|
4558
4641
|
React__namespace.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -4641,7 +4724,7 @@ function SubGroup(props) {
|
|
|
4641
4724
|
return null;
|
|
4642
4725
|
}
|
|
4643
4726
|
|
|
4644
|
-
var css$i = {"listContainer":"
|
|
4727
|
+
var css$i = {"listContainer":"EwMhkg","header":"cr6GoK","group":"_-6XHBk","stickyHeader":"L1Od2j"};
|
|
4645
4728
|
|
|
4646
4729
|
const getChildrenAndRest = (row, rows) => {
|
|
4647
4730
|
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
@@ -4707,7 +4790,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4707
4790
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4708
4791
|
ref: ref
|
|
4709
4792
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
4710
|
-
clipPath: "url(#
|
|
4793
|
+
clipPath: "url(#4i4gxfxqciyncjhri_a)"
|
|
4711
4794
|
}, _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4712
4795
|
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",
|
|
4713
4796
|
fill: "#F5F6FA"
|
|
@@ -4728,7 +4811,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4728
4811
|
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",
|
|
4729
4812
|
fill: "#1D1E26"
|
|
4730
4813
|
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
4731
|
-
id: "
|
|
4814
|
+
id: "4i4gxfr65igsuth3_b",
|
|
4732
4815
|
style: {
|
|
4733
4816
|
maskType: "alpha"
|
|
4734
4817
|
},
|
|
@@ -4741,7 +4824,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4741
4824
|
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",
|
|
4742
4825
|
fill: "#9BDEFF"
|
|
4743
4826
|
}))), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
4744
|
-
mask: "url(#
|
|
4827
|
+
mask: "url(#4i4gxfr65igsuth3_b)",
|
|
4745
4828
|
fillRule: "evenodd",
|
|
4746
4829
|
clipRule: "evenodd"
|
|
4747
4830
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -4827,7 +4910,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4827
4910
|
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",
|
|
4828
4911
|
fill: "#fff"
|
|
4829
4912
|
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
4830
|
-
id: "
|
|
4913
|
+
id: "4i4gxfxqciyncjhri_a"
|
|
4831
4914
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
4832
4915
|
fill: "#fff",
|
|
4833
4916
|
transform: "translate(.552)",
|
|
@@ -4836,7 +4919,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4836
4919
|
};
|
|
4837
4920
|
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgEmptyTable);
|
|
4838
4921
|
|
|
4839
|
-
var css$h = {"root":"
|
|
4922
|
+
var css$h = {"root":"tHLkeF","sticky-header":"jONeJZ","no-results":"f4h-Yw","icon":"m-WhKy","title":"WoLDA6","stickyHeader":"jONeJZ","noResults":"f4h-Yw"};
|
|
4840
4923
|
|
|
4841
4924
|
function DataTable(props) {
|
|
4842
4925
|
var _a, _b, _c, _d;
|
|
@@ -4871,7 +4954,7 @@ function DataTable(props) {
|
|
|
4871
4954
|
]);
|
|
4872
4955
|
const renderRowsContainer = React__namespace.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4873
4956
|
React__namespace.createElement("div", { className: css$h.stickyHeader, ref: headerRef },
|
|
4874
|
-
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 }),
|
|
4957
|
+
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 }),
|
|
4875
4958
|
React__namespace.createElement("div", { className: uuiCore.cx(uuiCore.uuiScrollShadows.top, {
|
|
4876
4959
|
[uuiCore.uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
4877
4960
|
}) })),
|
|
@@ -4887,9 +4970,9 @@ function DataTable(props) {
|
|
|
4887
4970
|
} }))));
|
|
4888
4971
|
}
|
|
4889
4972
|
|
|
4890
|
-
var css$g = {"root":"
|
|
4973
|
+
var css$g = {"root":"VrUG5D"};
|
|
4891
4974
|
|
|
4892
|
-
var css$f = {"root":"
|
|
4975
|
+
var css$f = {"root":"YZM2yD","burger-content":"cRAMXc","burgerContent":"cRAMXc"};
|
|
4893
4976
|
|
|
4894
4977
|
var _path$3;
|
|
4895
4978
|
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); }
|
|
@@ -4932,7 +5015,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
4932
5015
|
};
|
|
4933
5016
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
4934
5017
|
|
|
4935
|
-
var css$e = {"uui-typography":"
|
|
5018
|
+
var css$e = {"uui-typography":"_3y3-ZC","hero-header":"h7dpUY","promo-header":"XC8y8G","uui-critical":"DaH6nu","uui-info":"DT1J6a","uui-success":"IdiXpP","uui-warning":"t-N4p4","uui-highlight":"GrWv8V","uui-typography-size-12":"sNv569","uui-typography-size-14":"_7dDtxS","uui-typography-size-16":"UB0Md-","root":"amQpg4","button-primary":"_97PcEw","button-secondary":"oIu-It","hasIcon":"UIPiJ0","dropdown":"kJLI3T","uuiTypography":"_3y3-ZC","heroHeader":"h7dpUY","promoHeader":"XC8y8G","uuiCritical":"DaH6nu","uuiInfo":"DT1J6a","uuiSuccess":"IdiXpP","uuiWarning":"t-N4p4","uuiHighlight":"GrWv8V","uuiTypographySize12":"sNv569","uuiTypographySize14":"_7dDtxS","uuiTypographySize16":"UB0Md-","buttonPrimary":"_97PcEw","buttonSecondary":"oIu-It"};
|
|
4936
5019
|
|
|
4937
5020
|
const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
4938
5021
|
css$e.root,
|
|
@@ -4943,13 +5026,13 @@ const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (prop
|
|
|
4943
5026
|
props.icon && css$e.hasIcon,
|
|
4944
5027
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
4945
5028
|
|
|
4946
|
-
var css$d = {"search-input":"
|
|
5029
|
+
var css$d = {"search-input":"U8g5Uw","searchInput":"U8g5Uw"};
|
|
4947
5030
|
|
|
4948
5031
|
function BurgerSearch(props) {
|
|
4949
5032
|
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$N, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$Q }));
|
|
4950
5033
|
}
|
|
4951
5034
|
|
|
4952
|
-
var css$c = {"root":"
|
|
5035
|
+
var css$c = {"root":"nqDq9z","group-header":"btNwk0","group-name":"OJlsOO","line":"fI22Sj","groupHeader":"btNwk0","groupName":"OJlsOO"};
|
|
4953
5036
|
|
|
4954
5037
|
function BurgerGroupHeader(props) {
|
|
4955
5038
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4957,7 +5040,7 @@ function BurgerGroupHeader(props) {
|
|
|
4957
5040
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
4958
5041
|
}
|
|
4959
5042
|
|
|
4960
|
-
var css$b = {"uui-typography":"
|
|
5043
|
+
var css$b = {"uui-typography":"_7WcSZ4","hero-header":"Cd0qAL","promo-header":"-dSVKH","uui-critical":"S4tItA","uui-info":"RzkpKA","uui-success":"_6Cg4Zf","uui-warning":"SXNR0h","uui-highlight":"jGm9be","uui-typography-size-12":"Gix2K4","uui-typography-size-14":"ftkulG","uui-typography-size-16":"xqFxtm","root":"sLljD5","type-primary":"_31yC8T","type-secondary":"bP5Fms","uuiTypography":"_7WcSZ4","heroHeader":"Cd0qAL","promoHeader":"-dSVKH","uuiCritical":"S4tItA","uuiInfo":"RzkpKA","uuiSuccess":"_6Cg4Zf","uuiWarning":"SXNR0h","uuiHighlight":"jGm9be","uuiTypographySize12":"Gix2K4","uuiTypographySize14":"ftkulG","uuiTypographySize16":"xqFxtm","typePrimary":"_31yC8T","typeSecondary":"bP5Fms"};
|
|
4961
5044
|
|
|
4962
5045
|
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4963
5046
|
const { type } = props, clickableProps = __rest(props, ["type"]);
|
|
@@ -4973,7 +5056,7 @@ const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
4973
5056
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$P, flipY: props.isOpen }))));
|
|
4974
5057
|
});
|
|
4975
5058
|
|
|
4976
|
-
var css$a = {"dropdown-body":"
|
|
5059
|
+
var css$a = {"dropdown-body":"_4AK4XV","dropdownBody":"_4AK4XV"};
|
|
4977
5060
|
|
|
4978
5061
|
class MainMenuDropdown extends React__namespace.Component {
|
|
4979
5062
|
render() {
|
|
@@ -5028,12 +5111,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5028
5111
|
};
|
|
5029
5112
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5030
5113
|
|
|
5031
|
-
var css$9 = {"global-menu-btn":"
|
|
5114
|
+
var css$9 = {"global-menu-btn":"bChZQi","global-menu-icon":"RGtXj1","globalMenuBtn":"bChZQi","globalMenuIcon":"RGtXj1"};
|
|
5032
5115
|
|
|
5033
5116
|
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),
|
|
5034
5117
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5035
5118
|
|
|
5036
|
-
var css$8 = {"container":"
|
|
5119
|
+
var css$8 = {"container":"n3hyXQ","open":"EbBSmf","folding-arrow":"m8PIG9","foldingArrow":"m8PIG9"};
|
|
5037
5120
|
|
|
5038
5121
|
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 },
|
|
5039
5122
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5041,18 +5124,18 @@ const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5041
5124
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5042
5125
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$P, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5043
5126
|
|
|
5044
|
-
var css$7 = {"search-input":"
|
|
5127
|
+
var css$7 = {"search-input":"hjTARJ","searchInput":"hjTARJ"};
|
|
5045
5128
|
|
|
5046
5129
|
const MainMenuSearch = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
5047
5130
|
var _a;
|
|
5048
5131
|
return (React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition: "left", icon: ForwardRef$N, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$Q }, props, iEditable, { ref: ref, cx: uuiCore.cx(css$7.searchInput, props.cx) }, props.rawProps)));
|
|
5049
5132
|
} }))));
|
|
5050
5133
|
|
|
5051
|
-
var css$6 = {"container":"
|
|
5134
|
+
var css$6 = {"container":"F9R3-N"};
|
|
5052
5135
|
|
|
5053
5136
|
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))));
|
|
5054
5137
|
|
|
5055
|
-
var css$5 = {"root":"
|
|
5138
|
+
var css$5 = {"root":"PYOBf5"};
|
|
5056
5139
|
|
|
5057
5140
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5058
5141
|
|
|
@@ -5110,7 +5193,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5110
5193
|
};
|
|
5111
5194
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
5112
5195
|
|
|
5113
|
-
var css$4 = {"root":"
|
|
5196
|
+
var css$4 = {"root":"P6EKub","drop-start":"kE84I2","drop-over":"Ft3Uej","link":"D31y-c","drop-area":"RgCV-i","drop-caption":"AFIjyA","icon-blue":"IaLOcU","dropStart":"kE84I2","dropOver":"Ft3Uej","dropArea":"RgCV-i","dropCaption":"AFIjyA","iconBlue":"IaLOcU"};
|
|
5114
5197
|
|
|
5115
5198
|
function DropSpot(props) {
|
|
5116
5199
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5128,9 +5211,9 @@ function DropSpot(props) {
|
|
|
5128
5211
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5129
5212
|
}
|
|
5130
5213
|
|
|
5131
|
-
var css$3 = {"uui-typography":"
|
|
5214
|
+
var css$3 = {"uui-typography":"_3xAshD","hero-header":"Omt8rO","promo-header":"PiAdgp","uui-critical":"lWPNa2","uui-info":"S0vyWP","uui-success":"DTReHq","uui-warning":"P647AL","uui-highlight":"sSvzSv","uui-typography-size-12":"E1MJ56","uui-typography-size-14":"IEfu0E","uui-typography-size-16":"_1K2uA-","root":"YQNwD6","file-name":"-yYOzJ","default-color":"jHC0Rs","doc-color":"n-5d-G","xls-color":"bOzUTp","pdf-color":"LNlZpp","movie-color":"ZsJeDN","img-color":"_31P70J","mov-color":"lnvT5F","error-block":"SlvlhR","icons-block":"VDiSmQ","uuiTypography":"_3xAshD","heroHeader":"Omt8rO","promoHeader":"PiAdgp","uuiCritical":"lWPNa2","uuiInfo":"S0vyWP","uuiSuccess":"DTReHq","uuiWarning":"P647AL","uuiHighlight":"sSvzSv","uuiTypographySize12":"E1MJ56","uuiTypographySize14":"IEfu0E","uuiTypographySize16":"_1K2uA-","fileName":"-yYOzJ","defaultColor":"jHC0Rs","docColor":"n-5d-G","xlsColor":"bOzUTp","pdfColor":"LNlZpp","movieColor":"ZsJeDN","imgColor":"_31P70J","movColor":"lnvT5F","errorBlock":"SlvlhR","iconsBlock":"VDiSmQ"};
|
|
5132
5215
|
|
|
5133
|
-
var css$2 = {"root":"
|
|
5216
|
+
var css$2 = {"root":"xRHHnc"};
|
|
5134
5217
|
|
|
5135
5218
|
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5136
5219
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5255,7 +5338,7 @@ const getErrorPageConfig = () => ({
|
|
|
5255
5338
|
},
|
|
5256
5339
|
});
|
|
5257
5340
|
|
|
5258
|
-
var css$1 = {"container":"
|
|
5341
|
+
var css$1 = {"container":"MIS038"};
|
|
5259
5342
|
|
|
5260
5343
|
const ErrorPage = (props) => {
|
|
5261
5344
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -5266,7 +5349,7 @@ const ErrorPage = (props) => {
|
|
|
5266
5349
|
React__namespace.default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle))));
|
|
5267
5350
|
};
|
|
5268
5351
|
|
|
5269
|
-
var css = {"recovery-spinner":"
|
|
5352
|
+
var css = {"recovery-spinner":"ghTwsA","recovery-message":"Y9mSeI","modal-blocker":"lUmm5Y","modalFadeIn":"-smeL9","recoverySpinner":"ghTwsA","recoveryMessage":"Y9mSeI","modalBlocker":"lUmm5Y"};
|
|
5270
5353
|
|
|
5271
5354
|
function ErrorHandler(props) {
|
|
5272
5355
|
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|