@epam/uui 5.4.3 → 5.5.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/assets/styles/text-size.scss +5 -0
- package/components/buttons/Button.d.ts +22 -11
- package/components/buttons/Button.d.ts.map +1 -1
- package/components/buttons/IconButton.d.ts +9 -7
- package/components/buttons/IconButton.d.ts.map +1 -1
- package/components/buttons/LinkButton.d.ts +7 -4
- package/components/buttons/LinkButton.d.ts.map +1 -1
- package/components/buttons/TabButton.d.ts +10 -4
- package/components/buttons/TabButton.d.ts.map +1 -1
- package/components/buttons/VerticalTabButton.d.ts +4 -4
- package/components/buttons/VerticalTabButton.d.ts.map +1 -1
- package/components/datePickers/DatePicker.d.ts +5 -0
- package/components/datePickers/DatePicker.d.ts.map +1 -1
- package/components/datePickers/DatePickerBody.d.ts +3 -0
- package/components/datePickers/DatePickerBody.d.ts.map +1 -1
- package/components/datePickers/DatePickerHeader.d.ts.map +1 -1
- package/components/datePickers/RangeDatePicker.d.ts +7 -0
- package/components/datePickers/RangeDatePicker.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerBody.d.ts +4 -4
- package/components/datePickers/RangeDatePickerBody.d.ts.map +1 -1
- package/components/dnd/DropMarker.d.ts +5 -1
- package/components/dnd/DropMarker.d.ts.map +1 -1
- package/components/fileUpload/DropSpot.d.ts +2 -3
- package/components/fileUpload/DropSpot.d.ts.map +1 -1
- package/components/fileUpload/FileCard.d.ts.map +1 -1
- package/components/fileUpload/SvgCircleProgress.d.ts.map +1 -1
- package/components/filters/FilterDatePickerBody.d.ts +2 -2
- package/components/filters/FilterDatePickerBody.d.ts.map +1 -1
- package/components/filters/FilterNumericBody.d.ts +15 -0
- package/components/filters/FilterNumericBody.d.ts.map +1 -1
- package/components/filters/FilterPickerBody.d.ts +2 -2
- package/components/filters/FilterPickerBody.d.ts.map +1 -1
- package/components/filters/FiltersPanelItem.d.ts.map +1 -1
- package/components/filters/PresetPanel/PresetInput.d.ts.map +1 -1
- package/components/index.d.ts +0 -1
- package/components/index.d.ts.map +1 -1
- package/components/inputs/Checkbox.d.ts +11 -2
- package/components/inputs/Checkbox.d.ts.map +1 -1
- package/components/inputs/InputAddon.d.ts +2 -3
- package/components/inputs/InputAddon.d.ts.map +1 -1
- package/components/inputs/MultiSwitch.d.ts +24 -8
- package/components/inputs/MultiSwitch.d.ts.map +1 -1
- package/components/inputs/NumericInput.d.ts +19 -6
- package/components/inputs/NumericInput.d.ts.map +1 -1
- package/components/inputs/RadioInput.d.ts +12 -5
- package/components/inputs/RadioInput.d.ts.map +1 -1
- package/components/inputs/Slider.d.ts +3 -6
- package/components/inputs/Slider.d.ts.map +1 -1
- package/components/inputs/Switch.d.ts +4 -2
- package/components/inputs/Switch.d.ts.map +1 -1
- package/components/inputs/TextArea.d.ts +19 -7
- package/components/inputs/TextArea.d.ts.map +1 -1
- package/components/inputs/TextInput.d.ts +15 -6
- package/components/inputs/TextInput.d.ts.map +1 -1
- package/components/inputs/TimePicker.d.ts.map +1 -1
- package/components/layout/Accordion.d.ts +7 -2
- package/components/layout/Accordion.d.ts.map +1 -1
- package/components/layout/CheckboxGroup.d.ts +21 -2
- package/components/layout/CheckboxGroup.d.ts.map +1 -1
- package/components/layout/FlexItems/FlexCell.d.ts +3 -1
- package/components/layout/FlexItems/FlexCell.d.ts.map +1 -1
- package/components/layout/FlexItems/FlexRow.d.ts +3 -2
- package/components/layout/FlexItems/FlexRow.d.ts.map +1 -1
- package/components/layout/FlexItems/Panel.d.ts +3 -1
- package/components/layout/FlexItems/Panel.d.ts.map +1 -1
- package/components/layout/LabeledInput.d.ts +3 -1
- package/components/layout/LabeledInput.d.ts.map +1 -1
- package/components/layout/RadioGroup.d.ts +20 -2
- package/components/layout/RadioGroup.d.ts.map +1 -1
- package/components/layout/VirtualList.d.ts +5 -6
- package/components/layout/VirtualList.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/Burger.d.ts +2 -1
- package/components/navigation/MainMenu/Burger/Burger.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/BurgerButton.d.ts +2 -1
- package/components/navigation/MainMenu/Burger/BurgerButton.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/BurgerGroupHeader.d.ts +2 -1
- package/components/navigation/MainMenu/Burger/BurgerGroupHeader.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/BurgerSearch.d.ts +2 -1
- package/components/navigation/MainMenu/Burger/BurgerSearch.d.ts.map +1 -1
- package/components/navigation/MainMenu/GlobalMenu.d.ts +1 -0
- package/components/navigation/MainMenu/GlobalMenu.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenu.d.ts +3 -1
- package/components/navigation/MainMenu/MainMenu.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuAvatar.d.ts +1 -0
- package/components/navigation/MainMenu/MainMenuAvatar.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuButton.d.ts +2 -1
- package/components/navigation/MainMenu/MainMenuButton.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuIcon.d.ts +1 -0
- package/components/navigation/MainMenu/MainMenuIcon.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuSearch.d.ts +1 -0
- package/components/navigation/MainMenu/MainMenuSearch.d.ts.map +1 -1
- package/components/overlays/Alert.d.ts +10 -5
- package/components/overlays/Alert.d.ts.map +1 -1
- package/components/overlays/ConfirmationModal.d.ts +3 -0
- package/components/overlays/ConfirmationModal.d.ts.map +1 -1
- package/components/overlays/DropdownContainer.d.ts +9 -1
- package/components/overlays/DropdownContainer.d.ts.map +1 -1
- package/components/overlays/Modals.d.ts +16 -4
- package/components/overlays/Modals.d.ts.map +1 -1
- package/components/overlays/NotificationCard.d.ts +14 -7
- package/components/overlays/NotificationCard.d.ts.map +1 -1
- package/components/overlays/Tooltip.d.ts +8 -4
- package/components/overlays/Tooltip.d.ts.map +1 -1
- package/components/pickers/DataPickerCell.d.ts +5 -0
- package/components/pickers/DataPickerCell.d.ts.map +1 -0
- package/components/pickers/DataPickerRow.d.ts +2 -5
- package/components/pickers/DataPickerRow.d.ts.map +1 -1
- package/components/pickers/MobileDropdownWrapper.d.ts +1 -0
- package/components/pickers/MobileDropdownWrapper.d.ts.map +1 -1
- package/components/pickers/PickerInput.d.ts +2 -3
- package/components/pickers/PickerInput.d.ts.map +1 -1
- package/components/pickers/PickerModal.d.ts.map +1 -1
- package/components/pickers/PickerToggler.d.ts +4 -0
- package/components/pickers/PickerToggler.d.ts.map +1 -1
- package/components/pickers/types.d.ts +7 -0
- package/components/pickers/types.d.ts.map +1 -0
- package/components/tables/DataTable.d.ts +25 -3
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableCell.d.ts.map +1 -1
- package/components/tables/DataTableHeaderCell.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/ColumnRow.d.ts.map +1 -1
- package/components/types.d.ts +13 -1
- package/components/types.d.ts.map +1 -1
- package/components/typography/RichTextView.d.ts +3 -1
- package/components/typography/RichTextView.d.ts.map +1 -1
- package/components/typography/Text.d.ts +28 -8
- package/components/typography/Text.d.ts.map +1 -1
- package/components/widgets/Badge.d.ts +33 -16
- package/components/widgets/Badge.d.ts.map +1 -1
- package/components/widgets/CountIndicator.d.ts +8 -3
- package/components/widgets/CountIndicator.d.ts.map +1 -1
- package/components/widgets/DataRowAddons.d.ts +16 -0
- package/components/widgets/DataRowAddons.d.ts.map +1 -0
- package/components/widgets/Paginator.d.ts.map +1 -1
- package/components/widgets/ProgressBar.d.ts +10 -2
- package/components/widgets/ProgressBar.d.ts.map +1 -1
- package/components/widgets/Spinner.d.ts +3 -4
- package/components/widgets/Spinner.d.ts.map +1 -1
- package/components/widgets/StatusIndicator.d.ts +4 -3
- package/components/widgets/StatusIndicator.d.ts.map +1 -1
- package/components/widgets/Tag.d.ts +20 -12
- package/components/widgets/Tag.d.ts.map +1 -1
- package/components/widgets/index.d.ts +1 -0
- package/components/widgets/index.d.ts.map +1 -1
- package/helpers/textLayout.d.ts +1 -1
- package/helpers/textLayout.d.ts.map +1 -1
- package/index.esm.js +935 -812
- package/index.esm.js.map +1 -1
- package/index.js +939 -831
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/stats.html +1 -1
- package/styles.css +4878 -4808
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -600,274 +600,44 @@ const systemIcons = {
|
|
|
600
600
|
},
|
|
601
601
|
};
|
|
602
602
|
|
|
603
|
-
var css$
|
|
604
|
-
|
|
605
|
-
const AvatarStack = uuiCore.withMods(uuiComponents.AvatarStack, () => [css$1m.root]);
|
|
606
|
-
|
|
607
|
-
var css$1l = {"root":"tgDuFG","size-24":"_6AG2w-","size-18":"AFmt8Q","size-12":"XDRpIZ","size24":"_6AG2w-","size18":"AFmt8Q","size12":"XDRpIZ"};
|
|
603
|
+
var css$1o = {"root":"g9tgpe","size-24":"_6-zHVP","size-18":"Tn39rO","size-12":"RcGZ35","size24":"_6-zHVP","size18":"Tn39rO","size12":"RcGZ35"};
|
|
608
604
|
|
|
609
605
|
const CountIndicator = React.forwardRef((props, ref) => {
|
|
610
606
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
611
|
-
css$
|
|
607
|
+
css$1o.root,
|
|
612
608
|
'uui-count_indicator',
|
|
613
|
-
css$
|
|
609
|
+
css$1o[`size-${props.size || 24}`],
|
|
614
610
|
props.color && `uui-color-${props.color}`,
|
|
615
611
|
props.cx,
|
|
616
612
|
]) }, props.caption));
|
|
617
613
|
});
|
|
618
614
|
|
|
619
|
-
var css$
|
|
620
|
-
|
|
621
|
-
const mapSize$1 = {
|
|
622
|
-
48: '48',
|
|
623
|
-
42: '48',
|
|
624
|
-
36: '36',
|
|
625
|
-
30: '30',
|
|
626
|
-
24: '30',
|
|
627
|
-
18: '18',
|
|
628
|
-
};
|
|
629
|
-
const defaultBadgeSize = '36';
|
|
630
|
-
const defaultBadgeFill = 'solid';
|
|
631
|
-
function applyBadgeMods(mods) {
|
|
632
|
-
return [
|
|
633
|
-
'uui-badge',
|
|
634
|
-
css$1k.root,
|
|
635
|
-
css$1k['size-' + (mods.size || defaultBadgeSize)],
|
|
636
|
-
`uui-fill-${mods.fill || defaultBadgeFill}`,
|
|
637
|
-
mods.color && `uui-color-${mods.color}`,
|
|
638
|
-
mods.indicator && 'uui-indicator',
|
|
639
|
-
];
|
|
640
|
-
}
|
|
641
|
-
const mapCountIndicatorSizes$1 = {
|
|
642
|
-
18: '12',
|
|
643
|
-
24: '18',
|
|
644
|
-
30: '18',
|
|
645
|
-
36: '18',
|
|
646
|
-
42: '24',
|
|
647
|
-
48: '24',
|
|
648
|
-
};
|
|
649
|
-
const Badge = uuiCore.withMods(uuiComponents.Button, applyBadgeMods, (props) => {
|
|
650
|
-
if (process.env.NODE_ENV !== "production") {
|
|
651
|
-
uuiCore.devLogger.warnAboutDeprecatedPropValue({
|
|
652
|
-
component: 'Badge',
|
|
653
|
-
propName: 'size',
|
|
654
|
-
propValue: props.size,
|
|
655
|
-
propValueUseInstead: '42',
|
|
656
|
-
condition: () => ['48'].indexOf(props.size) !== -1,
|
|
657
|
-
});
|
|
658
|
-
}
|
|
659
|
-
return {
|
|
660
|
-
dropdownIcon: systemIcons[(props.size && mapSize$1[props.size]) || defaultBadgeSize].foldingArrow,
|
|
661
|
-
clearIcon: systemIcons[(props.size && mapSize$1[props.size]) || defaultBadgeSize].clear,
|
|
662
|
-
countPosition: 'left',
|
|
663
|
-
countIndicator: (countIndicatorProps) => (React__namespace.default.createElement(CountIndicator, Object.assign({}, countIndicatorProps, { color: null, size: mapCountIndicatorSizes$1[props.size || defaultBadgeSize] }))),
|
|
664
|
-
indicator: props.indicator || false,
|
|
665
|
-
};
|
|
666
|
-
});
|
|
667
|
-
|
|
668
|
-
var css$1j = {"uui-typography":"kR-zdy","hero-header":"pXvl66","promo-header":"kLu1mC","uui-critical":"bJ3yk-","uui-info":"gGtKUi","uui-success":"FnuyWD","uui-warning":"qCvd-a","uui-highlight":"clxp3g","uui-typography-size-12":"guyLnM","uui-typography-size-14":"iM8b5d","uui-typography-size-16":"kVb8vI","root":"yXCfh8","size-18":"p-brSA","size-24":"YR3c20","size-30":"_41EJdZ","size-36":"_1WAYSe","size-42":"Rv7drN","size-48":"-bhT6C","uuiTypography":"kR-zdy","heroHeader":"pXvl66","promoHeader":"kLu1mC","uuiCritical":"bJ3yk-","uuiInfo":"gGtKUi","uuiSuccess":"FnuyWD","uuiWarning":"qCvd-a","uuiHighlight":"clxp3g","uuiTypographySize12":"guyLnM","uuiTypographySize14":"iM8b5d","uuiTypographySize16":"kVb8vI","size18":"p-brSA","size24":"YR3c20","size30":"_41EJdZ","size36":"_1WAYSe","size42":"Rv7drN","size48":"-bhT6C"};
|
|
669
|
-
|
|
670
|
-
const defaultSize$a = '36';
|
|
671
|
-
const mapSize = {
|
|
672
|
-
48: '48',
|
|
673
|
-
42: '48',
|
|
674
|
-
36: '36',
|
|
675
|
-
30: '30',
|
|
676
|
-
24: '30',
|
|
677
|
-
18: '18',
|
|
678
|
-
};
|
|
679
|
-
const mapCountIndicatorSizes = {
|
|
680
|
-
18: '12',
|
|
681
|
-
24: '18',
|
|
682
|
-
30: '18',
|
|
683
|
-
36: '18',
|
|
684
|
-
42: '24',
|
|
685
|
-
48: '24',
|
|
686
|
-
};
|
|
687
|
-
function applyTagMods(props) {
|
|
688
|
-
return [
|
|
689
|
-
css$1j['size-' + (props.size || defaultSize$a)],
|
|
690
|
-
css$1j.root,
|
|
691
|
-
`uui-color-${props.color || 'neutral'}`,
|
|
692
|
-
`uui-fill-${props.fill || 'solid'}`,
|
|
693
|
-
'uui-tag',
|
|
694
|
-
];
|
|
695
|
-
}
|
|
696
|
-
const Tag = uuiCore.withMods(uuiComponents.Button, applyTagMods, (props) => ({
|
|
697
|
-
dropdownIcon: systemIcons[mapSize[props.size] || defaultSize$a].foldingArrow,
|
|
698
|
-
clearIcon: systemIcons[mapSize[props.size] || defaultSize$a].clear,
|
|
699
|
-
countIndicator: (countIndicatorProps) => (React__namespace.default.createElement(CountIndicator, Object.assign({}, countIndicatorProps, { color: (!props.color || props.color === 'neutral') ? 'white' : props.color, size: mapCountIndicatorSizes[props.size || defaultSize$a] }))),
|
|
700
|
-
}));
|
|
701
|
-
|
|
702
|
-
var css$1i = {"root":"GnKCde","uui-spinner":"fGZaIO","uuiSpinner":"fGZaIO"};
|
|
703
|
-
|
|
704
|
-
function applySpinnerMods() {
|
|
705
|
-
return [css$1i.root, 'uui-spinner'];
|
|
706
|
-
}
|
|
707
|
-
const Spinner = uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
708
|
-
|
|
709
|
-
var css$1h = {"root":"rGX-Wj","spacer":"hwwINc","mode-ghost":"zDhYg5","size-24":"OsKYGq","size-30":"RoJAMc","navigation-size-24":"rL6scB","navigation-size-30":"zUBzYZ","modeGhost":"zDhYg5","size24":"OsKYGq","size30":"RoJAMc","navigationSize24":"rL6scB","navigationSize30":"zUBzYZ"};
|
|
710
|
-
|
|
711
|
-
var _path$L;
|
|
712
|
-
function _extends$N() { _extends$N = 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$N.apply(this, arguments); }
|
|
713
|
-
var SvgNavigationChevronLeft12 = function SvgNavigationChevronLeft12(props, ref) {
|
|
714
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
|
|
715
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
716
|
-
width: 13,
|
|
717
|
-
height: 12,
|
|
718
|
-
viewBox: "0 0 13 12",
|
|
719
|
-
ref: ref
|
|
720
|
-
}, props), _path$L || (_path$L = /*#__PURE__*/React__namespace.createElement("path", {
|
|
721
|
-
fillRule: "evenodd",
|
|
722
|
-
d: "M8.205 3.705 7.5 3l-3 3 3 3 .705-.705L5.915 6l2.29-2.295z",
|
|
723
|
-
clipRule: "evenodd"
|
|
724
|
-
})));
|
|
725
|
-
};
|
|
726
|
-
var ForwardRef$N = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft12);
|
|
727
|
-
|
|
728
|
-
var _path$K;
|
|
729
|
-
function _extends$M() { _extends$M = 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$M.apply(this, arguments); }
|
|
730
|
-
var SvgNavigationChevronRight12 = function SvgNavigationChevronRight12(props, ref) {
|
|
731
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
732
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
733
|
-
width: 13,
|
|
734
|
-
height: 12,
|
|
735
|
-
viewBox: "0 0 13 12",
|
|
736
|
-
ref: ref
|
|
737
|
-
}, props), _path$K || (_path$K = /*#__PURE__*/React__namespace.createElement("path", {
|
|
738
|
-
fillRule: "evenodd",
|
|
739
|
-
d: "m5.5 3-.705.705L7.085 6l-2.29 2.295L5.5 9l3-3-3-3z",
|
|
740
|
-
clipRule: "evenodd"
|
|
741
|
-
})));
|
|
742
|
-
};
|
|
743
|
-
var ForwardRef$M = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight12);
|
|
744
|
-
|
|
745
|
-
var _path$J;
|
|
746
|
-
function _extends$L() { _extends$L = 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$L.apply(this, arguments); }
|
|
747
|
-
var SvgNavigationChevronLeft18 = function SvgNavigationChevronLeft18(props, ref) {
|
|
748
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
749
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
750
|
-
width: 18,
|
|
751
|
-
height: 18,
|
|
752
|
-
viewBox: "0 0 18 18",
|
|
753
|
-
ref: ref
|
|
754
|
-
}, props), _path$J || (_path$J = /*#__PURE__*/React__namespace.createElement("path", {
|
|
755
|
-
fillRule: "evenodd",
|
|
756
|
-
d: "M11.557 5.558 10.5 4.5 6 9l4.5 4.5 1.057-1.057L8.123 9l3.434-3.442z",
|
|
757
|
-
clipRule: "evenodd"
|
|
758
|
-
})));
|
|
759
|
-
};
|
|
760
|
-
var ForwardRef$L = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft18);
|
|
761
|
-
|
|
762
|
-
var _path$I;
|
|
763
|
-
function _extends$K() { _extends$K = 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$K.apply(this, arguments); }
|
|
764
|
-
var SvgNavigationChevronRight18 = function SvgNavigationChevronRight18(props, ref) {
|
|
765
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
766
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
767
|
-
width: 18,
|
|
768
|
-
height: 18,
|
|
769
|
-
viewBox: "0 0 18 18",
|
|
770
|
-
ref: ref
|
|
771
|
-
}, props), _path$I || (_path$I = /*#__PURE__*/React__namespace.createElement("path", {
|
|
772
|
-
fillRule: "evenodd",
|
|
773
|
-
d: "M7.5 4.5 6.442 5.558 9.877 9l-3.435 3.443L7.5 13.5 12 9 7.5 4.5z",
|
|
774
|
-
clipRule: "evenodd"
|
|
775
|
-
})));
|
|
776
|
-
};
|
|
777
|
-
var ForwardRef$K = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight18);
|
|
778
|
-
|
|
779
|
-
function Paginator(props) {
|
|
780
|
-
const renderPaginator = (params) => {
|
|
781
|
-
var _a, _b;
|
|
782
|
-
return (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: cx__default.default(css$1h.root, 'uui-paginator') }, params.rawProps),
|
|
783
|
-
React__namespace.default.createElement(Button, { cx: css$1h[`navigation-size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$L : ForwardRef$N, onClick: params.goToPrev, isDisabled: params.isFirst, fill: "outline", color: "secondary" }),
|
|
784
|
-
params.pages.map((page, index) => {
|
|
785
|
-
var _a, _b;
|
|
786
|
-
if (page.type === 'spacer') {
|
|
787
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$1h[`size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], css$1h.spacer), size: params.size, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1 }));
|
|
788
|
-
}
|
|
789
|
-
else {
|
|
790
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$1h[`size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], css$1h[`mode-${!page.isActive && 'ghost'}`]), size: params.size, 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" }));
|
|
791
|
-
}
|
|
792
|
-
}),
|
|
793
|
-
React__namespace.default.createElement(Button, { cx: css$1h[`navigation-size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$K : ForwardRef$M, onClick: params.goToNext, isDisabled: params.isLast, fill: "outline", color: "secondary" })));
|
|
794
|
-
};
|
|
795
|
-
return React__namespace.default.createElement(uuiComponents.Paginator, Object.assign({}, props, { render: renderPaginator }));
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
var css$1g = {"root":"DlfU8Y","progress-bar":"_0Sp4BA","progressBar-indeterminate":"uz7iBb","size-12":"I2vkxB","size-18":"Kwnij4","size-24":"_5yRVa6","progressBar":"_0Sp4BA","progressBarIndeterminate":"uz7iBb","size12":"I2vkxB","size18":"Kwnij4","size24":"_5yRVa6"};
|
|
799
|
-
|
|
800
|
-
const IndeterminateBar = React__namespace.forwardRef((props, ref) => {
|
|
801
|
-
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$1g.root, css$1g[`size-${props.size || 12}`]) },
|
|
802
|
-
React__namespace.createElement("div", { className: cx__default.default(css$1g.progressBar) })));
|
|
803
|
-
});
|
|
804
|
-
|
|
805
|
-
var css$1f = {"root":"LoCAMF","striped":"O3leER","animate-stripes":"AJqUfb","size-12":"nk-vZG","size-18":"_9Bhp0E","size-24":"xtNS9D","animateStripes":"AJqUfb","size12":"nk-vZG","size18":"_9Bhp0E","size24":"xtNS9D"};
|
|
806
|
-
|
|
807
|
-
const defaultSize$9 = '12';
|
|
808
|
-
function applyProgressBarMods(mods) {
|
|
809
|
-
const size = mods.size || defaultSize$9;
|
|
810
|
-
return [
|
|
811
|
-
css$1f.root,
|
|
812
|
-
css$1f[`size-${size}`],
|
|
813
|
-
mods.striped && css$1f.striped,
|
|
814
|
-
];
|
|
815
|
-
}
|
|
816
|
-
const ProgressBar = uuiCore.withMods(uuiComponents.ProgressBar, applyProgressBarMods, (props) => ({
|
|
817
|
-
hideLabel: props.hideLabel || props.striped,
|
|
818
|
-
}));
|
|
819
|
-
|
|
820
|
-
var css$1e = {"root":"_4Bdufz"};
|
|
821
|
-
|
|
822
|
-
const IndicatorBar = React__namespace.forwardRef((props, ref) => {
|
|
823
|
-
const { progress } = props;
|
|
824
|
-
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$1e.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$1e.root, props.cx) }));
|
|
825
|
-
});
|
|
826
|
-
|
|
827
|
-
var css$1d = {"root":"GPy3p5","size-12":"gK0qes","size-18":"_7H-YeF","size-24":"ypMWVG","size12":"gK0qes","size18":"_7H-YeF","size24":"ypMWVG"};
|
|
615
|
+
var css$1n = {"uui-typography":"wlHZsN","hero-header":"_0i4pMv","promo-header":"vqQd0m","uui-critical":"_81-rPl","uui-info":"_0daN0o","uui-success":"_0fTQh-","uui-warning":"_1Tviem","uui-highlight":"iI8hkF","uui-typography-size-12":"qdEfwG","uui-typography-size-14":"z5HWt-","uui-typography-size-16":"_0DVMpj","root":"qBwJ-6","uuiTypography":"wlHZsN","heroHeader":"_0i4pMv","promoHeader":"vqQd0m","uuiCritical":"_81-rPl","uuiInfo":"_0daN0o","uuiSuccess":"_0fTQh-","uuiWarning":"_1Tviem","uuiHighlight":"iI8hkF","uuiTypographySize12":"qdEfwG","uuiTypographySize14":"z5HWt-","uuiTypographySize16":"_0DVMpj"};
|
|
828
616
|
|
|
829
|
-
const
|
|
830
|
-
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
831
|
-
css$1d.root,
|
|
832
|
-
css$1d[`size-${props.size || 24}`],
|
|
833
|
-
'uui-status_indicator',
|
|
834
|
-
`uui-color-${props.color || 'neutral'}`,
|
|
835
|
-
`uui-fill-${props.fill || 'solid'}`,
|
|
836
|
-
props.cx,
|
|
837
|
-
]) },
|
|
838
|
-
React__namespace.default.createElement("div", { className: "uui-status_indicator_dot" }),
|
|
839
|
-
React__namespace.default.createElement("p", { className: "uui-status_indicator_caption" }, props.caption)));
|
|
840
|
-
});
|
|
841
|
-
|
|
842
|
-
var css$1c = {"uui-typography":"bq-glA","hero-header":"lfIJZP","promo-header":"H4YRgL","uui-critical":"MGylyY","uui-info":"RZi5Yr","uui-success":"lKlFmZ","uui-warning":"dGvj31","uui-highlight":"wp-VpT","uui-typography-size-12":"arWNHO","uui-typography-size-14":"ijFoJK","uui-typography-size-16":"Q9Ru4G","root":"dHTqKf","uuiTypography":"bq-glA","heroHeader":"lfIJZP","promoHeader":"H4YRgL","uuiCritical":"MGylyY","uuiInfo":"RZi5Yr","uuiSuccess":"lKlFmZ","uuiWarning":"dGvj31","uuiHighlight":"wp-VpT","uuiTypographySize12":"arWNHO","uuiTypographySize14":"ijFoJK","uuiTypographySize16":"Q9Ru4G"};
|
|
843
|
-
|
|
844
|
-
const defaultSize$8 = '36';
|
|
617
|
+
const DEFAULT_SIZE$8 = '36';
|
|
845
618
|
function applyButtonMods(mods) {
|
|
846
619
|
return [
|
|
847
|
-
css$
|
|
620
|
+
css$1n.root,
|
|
848
621
|
'uui-button',
|
|
849
622
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
850
623
|
`uui-color-${mods.color || 'primary'}`,
|
|
851
|
-
`uui-size-${mods.size ||
|
|
624
|
+
`uui-size-${mods.size || DEFAULT_SIZE$8}`,
|
|
852
625
|
];
|
|
853
626
|
}
|
|
854
627
|
const Button = uuiCore.withMods(uuiComponents.Button, applyButtonMods, (props) => ({
|
|
855
|
-
dropdownIcon: systemIcons[props.size ||
|
|
856
|
-
clearIcon: systemIcons[props.size ||
|
|
628
|
+
dropdownIcon: systemIcons[props.size || DEFAULT_SIZE$8].foldingArrow,
|
|
629
|
+
clearIcon: systemIcons[props.size || DEFAULT_SIZE$8].clear,
|
|
857
630
|
countIndicator: (countIndicatorProps) => React__namespace.default.createElement(CountIndicator, Object.assign({}, countIndicatorProps, { color: "white" })),
|
|
858
631
|
}));
|
|
859
632
|
|
|
860
|
-
var css$
|
|
633
|
+
var css$1m = {"root":"DBt6Pb"};
|
|
861
634
|
|
|
862
|
-
const allIconColors = [
|
|
863
|
-
'info', 'success', 'warning', 'error', 'secondary', 'neutral',
|
|
864
|
-
];
|
|
865
635
|
function applyIconButtonMods(mods) {
|
|
866
|
-
return ['uui-icon_button', `uui-color-${mods.color || 'neutral'}`, css$
|
|
636
|
+
return ['uui-icon_button', `uui-color-${mods.color || 'neutral'}`, css$1m.root];
|
|
867
637
|
}
|
|
868
638
|
const IconButton = uuiCore.withMods(uuiComponents.IconButton, applyIconButtonMods);
|
|
869
639
|
|
|
870
|
-
var css$
|
|
640
|
+
var css$1l = {"root":"tZra-e"};
|
|
871
641
|
|
|
872
642
|
function getIconClass(props) {
|
|
873
643
|
const classList = {
|
|
@@ -886,135 +656,144 @@ function getIconClass(props) {
|
|
|
886
656
|
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'];
|
|
887
657
|
}
|
|
888
658
|
|
|
889
|
-
const
|
|
890
|
-
const allLinkButtonColors = ['primary', 'secondary', 'contrast'];
|
|
659
|
+
const DEFAULT_SIZE$7 = '36';
|
|
891
660
|
function applyLinkButtonMods(mods) {
|
|
892
661
|
return [
|
|
893
662
|
'uui-link_button',
|
|
894
|
-
css$
|
|
895
|
-
`uui-size-${mods.size ||
|
|
663
|
+
css$1l.root,
|
|
664
|
+
`uui-size-${mods.size || DEFAULT_SIZE$7}`,
|
|
896
665
|
...getIconClass(mods),
|
|
897
666
|
`uui-color-${mods.color || 'primary'}`,
|
|
898
667
|
];
|
|
899
668
|
}
|
|
900
669
|
const LinkButton = uuiCore.withMods(uuiComponents.Button, applyLinkButtonMods, (props) => ({
|
|
901
|
-
dropdownIcon: systemIcons[props.size ||
|
|
902
|
-
clearIcon: systemIcons[props.size ||
|
|
670
|
+
dropdownIcon: systemIcons[props.size || DEFAULT_SIZE$7].foldingArrow,
|
|
671
|
+
clearIcon: systemIcons[props.size || DEFAULT_SIZE$7].clear,
|
|
903
672
|
}));
|
|
904
673
|
|
|
905
|
-
var css$
|
|
674
|
+
var css$1k = {"uui-typography":"ZLN5w9","hero-header":"Wqv32u","promo-header":"huf-Hl","uui-critical":"_8LTqQL","uui-info":"BhrC9H","uui-success":"c5rbnJ","uui-warning":"AUxOoI","uui-highlight":"RhKFxa","uui-typography-size-12":"gYP93f","uui-typography-size-14":"dma8hi","uui-typography-size-16":"a4u4IL","root":"nd1aAL","withNotify":"_90LS-v","size-36":"N-HjGE","size-48":"JJhRIX","size-60":"_3k75W8","uuiTypography":"ZLN5w9","heroHeader":"Wqv32u","promoHeader":"huf-Hl","uuiCritical":"_8LTqQL","uuiInfo":"BhrC9H","uuiSuccess":"c5rbnJ","uuiWarning":"AUxOoI","uuiHighlight":"RhKFxa","uuiTypographySize12":"gYP93f","uuiTypographySize14":"dma8hi","uuiTypographySize16":"a4u4IL","size36":"N-HjGE","size48":"JJhRIX","size60":"_3k75W8"};
|
|
906
675
|
|
|
907
676
|
function applyTabButtonMods(mods) {
|
|
908
677
|
return [
|
|
909
|
-
css$
|
|
678
|
+
css$1k.root,
|
|
910
679
|
'uui-tab-button',
|
|
911
|
-
css$
|
|
912
|
-
mods.withNotify && css$
|
|
680
|
+
css$1k['size-' + (mods.size || '48')],
|
|
681
|
+
mods.withNotify && css$1k.withNotify,
|
|
913
682
|
...getIconClass(mods),
|
|
914
683
|
];
|
|
915
684
|
}
|
|
916
|
-
const TabButton = uuiCore.withMods(
|
|
685
|
+
const TabButton = uuiCore.withMods(uuiComponents__namespace.Button, applyTabButtonMods, (props) => (Object.assign(Object.assign({ dropdownIcon: systemIcons['36'].foldingArrow, clearIcon: systemIcons['36'].clear }, props), { rawProps: Object.assign({ role: 'tab' }, props.rawProps), countIndicator: (countIndicatorProps) => (React__namespace.default.createElement(CountIndicator, Object.assign({}, countIndicatorProps, { color: props.isLinkActive ? 'info' : 'neutral', size: "18" }))) })));
|
|
917
686
|
|
|
918
|
-
var css$
|
|
687
|
+
var css$1j = {"uui-typography":"S8UFcE","hero-header":"OHeBzt","promo-header":"I7ssz7","uui-critical":"VYdXnv","uui-info":"D7v8r-","uui-success":"RcPeqf","uui-warning":"irCx6c","uui-highlight":"bjiqJE","uui-typography-size-12":"EDJPDM","uui-typography-size-14":"IUgCpo","uui-typography-size-16":"yIWdpP","root":"e8Uvl6","uuiTypography":"S8UFcE","heroHeader":"OHeBzt","promoHeader":"I7ssz7","uuiCritical":"VYdXnv","uuiInfo":"D7v8r-","uuiSuccess":"RcPeqf","uuiWarning":"irCx6c","uuiHighlight":"bjiqJE","uuiTypographySize12":"EDJPDM","uuiTypographySize14":"IUgCpo","uuiTypographySize16":"yIWdpP"};
|
|
919
688
|
|
|
920
689
|
function applyVerticalTabButtonMods() {
|
|
921
|
-
return [css$
|
|
690
|
+
return [css$1j.root];
|
|
922
691
|
}
|
|
923
692
|
const VerticalTabButton = uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
924
693
|
|
|
925
|
-
|
|
694
|
+
/**
|
|
695
|
+
* Defines the different edit modes.
|
|
696
|
+
*/
|
|
697
|
+
var EditMode;
|
|
926
698
|
(function (EditMode) {
|
|
699
|
+
/** Defines edit mode for form */
|
|
927
700
|
EditMode["FORM"] = "form";
|
|
701
|
+
/** Defines edit mode for cell in tables */
|
|
928
702
|
EditMode["CELL"] = "cell";
|
|
703
|
+
/** Defines edit mode for inline elements */
|
|
929
704
|
EditMode["INLINE"] = "inline";
|
|
930
|
-
})(
|
|
705
|
+
})(EditMode || (EditMode = {}));
|
|
931
706
|
|
|
932
|
-
var _path$
|
|
933
|
-
function _extends$
|
|
707
|
+
var _path$L;
|
|
708
|
+
function _extends$N() { _extends$N = 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$N.apply(this, arguments); }
|
|
934
709
|
var SvgCheck12 = function SvgCheck12(props, ref) {
|
|
935
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
710
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
|
|
936
711
|
width: 12,
|
|
937
712
|
height: 12,
|
|
938
713
|
viewBox: "0 0 12 12",
|
|
939
714
|
xmlns: "http://www.w3.org/2000/svg",
|
|
940
715
|
ref: ref
|
|
941
|
-
}, props), _path$
|
|
716
|
+
}, props), _path$L || (_path$L = /*#__PURE__*/React__namespace.createElement("path", {
|
|
942
717
|
fillRule: "evenodd",
|
|
943
718
|
d: "M9.491 3.449 10.51 4.55 5.663 9.024 2.487 6.047l1.026-1.094L5.67 6.975z"
|
|
944
719
|
})));
|
|
945
720
|
};
|
|
946
|
-
var ForwardRef$
|
|
721
|
+
var ForwardRef$N = /*#__PURE__*/React.forwardRef(SvgCheck12);
|
|
947
722
|
|
|
948
|
-
var _path$
|
|
949
|
-
function _extends$
|
|
723
|
+
var _path$K;
|
|
724
|
+
function _extends$M() { _extends$M = 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$M.apply(this, arguments); }
|
|
950
725
|
var SvgCheck18 = function SvgCheck18(props, ref) {
|
|
951
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
726
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
952
727
|
width: 18,
|
|
953
728
|
height: 18,
|
|
954
729
|
viewBox: "0 0 18 18",
|
|
955
730
|
xmlns: "http://www.w3.org/2000/svg",
|
|
956
731
|
ref: ref
|
|
957
|
-
}, props), _path$
|
|
732
|
+
}, props), _path$K || (_path$K = /*#__PURE__*/React__namespace.createElement("path", {
|
|
958
733
|
fillRule: "evenodd",
|
|
959
734
|
d: "m14.247 4.341 1.506 1.318-7.704 8.804-4.756-4.756 1.414-1.414 3.244 3.243z"
|
|
960
735
|
})));
|
|
961
736
|
};
|
|
962
|
-
var ForwardRef$
|
|
737
|
+
var ForwardRef$M = /*#__PURE__*/React.forwardRef(SvgCheck18);
|
|
963
738
|
|
|
964
|
-
var _path$
|
|
965
|
-
function _extends$
|
|
739
|
+
var _path$J;
|
|
740
|
+
function _extends$L() { _extends$L = 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$L.apply(this, arguments); }
|
|
966
741
|
var SvgPartlySelect12 = function SvgPartlySelect12(props, ref) {
|
|
967
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
742
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
968
743
|
width: 12,
|
|
969
744
|
height: 12,
|
|
970
745
|
viewBox: "0 0 12 12",
|
|
971
746
|
xmlns: "http://www.w3.org/2000/svg",
|
|
972
747
|
ref: ref
|
|
973
|
-
}, props), _path$
|
|
748
|
+
}, props), _path$J || (_path$J = /*#__PURE__*/React__namespace.createElement("path", {
|
|
974
749
|
fillRule: "evenodd",
|
|
975
750
|
d: "M9 5v2H3V5z"
|
|
976
751
|
})));
|
|
977
752
|
};
|
|
978
|
-
var ForwardRef$
|
|
753
|
+
var ForwardRef$L = /*#__PURE__*/React.forwardRef(SvgPartlySelect12);
|
|
979
754
|
|
|
980
|
-
var _path$
|
|
981
|
-
function _extends$
|
|
755
|
+
var _path$I;
|
|
756
|
+
function _extends$K() { _extends$K = 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$K.apply(this, arguments); }
|
|
982
757
|
var SvgPartlySelect18 = function SvgPartlySelect18(props, ref) {
|
|
983
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
758
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
984
759
|
width: 18,
|
|
985
760
|
height: 18,
|
|
986
761
|
viewBox: "0 0 18 18",
|
|
987
762
|
xmlns: "http://www.w3.org/2000/svg",
|
|
988
763
|
ref: ref
|
|
989
|
-
}, props), _path$
|
|
764
|
+
}, props), _path$I || (_path$I = /*#__PURE__*/React__namespace.createElement("path", {
|
|
990
765
|
fillRule: "evenodd",
|
|
991
766
|
d: "M14 8v2H4V8z"
|
|
992
767
|
})));
|
|
993
768
|
};
|
|
994
|
-
var ForwardRef$
|
|
769
|
+
var ForwardRef$K = /*#__PURE__*/React.forwardRef(SvgPartlySelect18);
|
|
995
770
|
|
|
996
|
-
var css$
|
|
771
|
+
var css$1i = {"uui-typography":"_9Kl6Gw","hero-header":"Ivyo6J","promo-header":"Jr1I2-","uui-critical":"udlZ3e","uui-info":"-xM3TZ","uui-success":"wCNO3O","uui-warning":"UzL6yg","uui-highlight":"Jmt7fj","uui-typography-size-12":"_4IaqYZ","uui-typography-size-14":"feuq-x","uui-typography-size-16":"_5VTci4","root":"zj644Z","size-18":"DW7-Tw","size-12":"B-mPUV","mode-cell":"EUCzBT","uuiTypography":"_9Kl6Gw","heroHeader":"Ivyo6J","promoHeader":"Jr1I2-","uuiCritical":"udlZ3e","uuiInfo":"-xM3TZ","uuiSuccess":"wCNO3O","uuiWarning":"UzL6yg","uuiHighlight":"Jmt7fj","uuiTypographySize12":"_4IaqYZ","uuiTypographySize14":"feuq-x","uuiTypographySize16":"_5VTci4","size18":"DW7-Tw","size12":"B-mPUV","modeCell":"EUCzBT"};
|
|
997
772
|
|
|
998
773
|
function applyCheckboxMods(mods) {
|
|
999
774
|
return [
|
|
1000
|
-
css$
|
|
1001
|
-
css$
|
|
1002
|
-
css$
|
|
775
|
+
css$1i.root,
|
|
776
|
+
css$1i['size-' + (mods.size || '18')],
|
|
777
|
+
css$1i['mode-' + (mods.mode || 'form')],
|
|
1003
778
|
'uui-color-primary',
|
|
1004
779
|
];
|
|
1005
780
|
}
|
|
1006
|
-
const applyUUICheckboxProps = (props) =>
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
781
|
+
const applyUUICheckboxProps = (props) => {
|
|
782
|
+
const defaultIcon = props.size === '12' ? ForwardRef$N : ForwardRef$M;
|
|
783
|
+
const defaultIndeterminateIcon = props.size === '12' ? ForwardRef$L : ForwardRef$K;
|
|
784
|
+
return {
|
|
785
|
+
icon: props.icon ? props.icon : defaultIcon,
|
|
786
|
+
indeterminateIcon: props.indeterminateIcon ? props.indeterminateIcon : defaultIndeterminateIcon,
|
|
787
|
+
};
|
|
788
|
+
};
|
|
1010
789
|
const Checkbox = uuiCore.withMods(uuiComponents__namespace.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1011
790
|
|
|
1012
|
-
var css$
|
|
791
|
+
var css$1h = {"uui-typography":"b7r2CC","hero-header":"gdUjCL","promo-header":"OEIbof","uui-critical":"I4EqJw","uui-info":"ssQiTL","uui-success":"eAZMJC","uui-warning":"TTItB5","uui-highlight":"iaVnYA","uui-typography-size-12":"_31JuQ8","uui-typography-size-14":"mG0UN7","uui-typography-size-16":"_7etnjp","root":"rLWndQ","size-18":"r3YyDb","size-12":"JDmzFK","uuiTypography":"b7r2CC","heroHeader":"gdUjCL","promoHeader":"OEIbof","uuiCritical":"I4EqJw","uuiInfo":"ssQiTL","uuiSuccess":"eAZMJC","uuiWarning":"TTItB5","uuiHighlight":"iaVnYA","uuiTypographySize12":"_31JuQ8","uuiTypographySize14":"mG0UN7","uuiTypographySize16":"_7etnjp","size18":"r3YyDb","size12":"JDmzFK"};
|
|
1013
792
|
|
|
1014
793
|
var _circle;
|
|
1015
|
-
function _extends$
|
|
794
|
+
function _extends$J() { _extends$J = 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$J.apply(this, arguments); }
|
|
1016
795
|
var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
1017
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
796
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
1018
797
|
width: 18,
|
|
1019
798
|
height: 18,
|
|
1020
799
|
viewBox: "0 0 18 18",
|
|
@@ -1026,18 +805,23 @@ var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
|
1026
805
|
r: 6
|
|
1027
806
|
})));
|
|
1028
807
|
};
|
|
1029
|
-
var ForwardRef$
|
|
808
|
+
var ForwardRef$J = /*#__PURE__*/React.forwardRef(SvgRadioPoint);
|
|
1030
809
|
|
|
1031
810
|
function applyRadioInputMods(mods) {
|
|
1032
|
-
return [
|
|
811
|
+
return [
|
|
812
|
+
css$1h.root,
|
|
813
|
+
css$1h['size-' + (mods.size || '18')],
|
|
814
|
+
'uui-radio-input-container',
|
|
815
|
+
'uui-color-primary',
|
|
816
|
+
];
|
|
1033
817
|
}
|
|
1034
|
-
const RadioInput = uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, () => ({ icon: ForwardRef$
|
|
818
|
+
const RadioInput = uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$J }));
|
|
1035
819
|
|
|
1036
|
-
var css$
|
|
820
|
+
var css$1g = {"root":"Kz-GS0","size-12":"_0W2X0C","size-18":"_8jRpYn","size-24":"Eye9uS","size12":"_0W2X0C","size18":"_8jRpYn","size24":"Eye9uS"};
|
|
1037
821
|
|
|
1038
822
|
function applySwitchMods(mods) {
|
|
1039
823
|
return [
|
|
1040
|
-
css$
|
|
824
|
+
css$1g.root, css$1g['size-' + (mods.size || '18')], 'uui-color-primary',
|
|
1041
825
|
];
|
|
1042
826
|
}
|
|
1043
827
|
const Switch = uuiCore.withMods(uuiComponents__namespace.Switch, applySwitchMods);
|
|
@@ -1086,94 +870,114 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
1086
870
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1087
871
|
};
|
|
1088
872
|
|
|
1089
|
-
var textInputCss = {"uui-typography":"
|
|
873
|
+
var textInputCss = {"uui-typography":"aC13vK","hero-header":"xbqpuN","promo-header":"j7uWPD","uui-critical":"c-i2ST","uui-info":"k1Ippk","uui-success":"scEZqK","uui-warning":"d9Iy3c","uui-highlight":"a6zDMZ","uui-typography-size-12":"MNvt5j","uui-typography-size-14":"GDVMrp","uui-typography-size-16":"U5mb2N","root":"cpSJGA","mode-form":"g4YsZk","mode-inline":"_4v5oNP","mode-cell":"nh6u5I","size-24":"Kg-rRj","size-30":"znLhbb","size-36":"pPX4wT","size-42":"_1rQEUl","size-48":"tVKGNb","size-60":"Zukytv","uuiTypography":"aC13vK","heroHeader":"xbqpuN","promoHeader":"j7uWPD","uuiCritical":"c-i2ST","uuiInfo":"k1Ippk","uuiSuccess":"scEZqK","uuiWarning":"d9Iy3c","uuiHighlight":"a6zDMZ","uuiTypographySize12":"MNvt5j","uuiTypographySize14":"GDVMrp","uuiTypographySize16":"U5mb2N","modeForm":"g4YsZk","modeInline":"_4v5oNP","modeCell":"nh6u5I","size24":"Kg-rRj","size30":"znLhbb","size36":"pPX4wT","size42":"_1rQEUl","size48":"tVKGNb","size60":"Zukytv"};
|
|
1090
874
|
|
|
1091
|
-
const
|
|
1092
|
-
const
|
|
875
|
+
const DEFAULT_SIZE$6 = '36';
|
|
876
|
+
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1093
877
|
function applyTextInputMods(mods) {
|
|
1094
878
|
return [
|
|
1095
879
|
textInputCss.root,
|
|
1096
|
-
textInputCss['size-' + (mods.size ||
|
|
1097
|
-
textInputCss['mode-' + (mods.mode ||
|
|
880
|
+
textInputCss['size-' + (mods.size || DEFAULT_SIZE$6)],
|
|
881
|
+
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$3)],
|
|
1098
882
|
];
|
|
1099
883
|
}
|
|
1100
884
|
const TextInput = uuiCore.withMods(uuiComponents.TextInput, applyTextInputMods, (props) => ({
|
|
1101
|
-
acceptIcon: systemIcons[props.size ||
|
|
1102
|
-
cancelIcon: systemIcons[props.size ||
|
|
1103
|
-
dropdownIcon: systemIcons[props.size ||
|
|
885
|
+
acceptIcon: systemIcons[props.size || DEFAULT_SIZE$6].accept,
|
|
886
|
+
cancelIcon: systemIcons[props.size || DEFAULT_SIZE$6].clear,
|
|
887
|
+
dropdownIcon: systemIcons[props.size || DEFAULT_SIZE$6].foldingArrow,
|
|
1104
888
|
}));
|
|
1105
889
|
const SearchInput = React__namespace.default.forwardRef((props, ref) => {
|
|
1106
890
|
// analytics events are sending in IEditableDebouncer, so we need to avoid sending events in TextInput
|
|
1107
891
|
const textInputProps = __rest(props, []);
|
|
1108
892
|
delete textInputProps.getValueChangeAnalyticsEvent;
|
|
1109
|
-
return (React__namespace.default.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => (React__namespace.default.createElement(TextInput, Object.assign({ icon: systemIcons[props.size ||
|
|
1110
|
-
// In a lot of places, it is required to check if a clicked element is a part of some other element.
|
|
1111
|
-
// Usually, those are global click event handlers. To allow that logic to work correctly, it is necessary
|
|
1112
|
-
// to execute the `disappearing` of the cross (setState execution) after the event will pass through all the handlers.
|
|
1113
|
-
// Related issue: https://github.com/epam/UUI/issues/1045.
|
|
1114
|
-
? (() => setTimeout(() => iEditable.onValueChange(''), 0))
|
|
1115
|
-
: undefined, type: "search", inputMode: "search", ref: ref }, textInputProps, iEditable))) })));
|
|
893
|
+
return (React__namespace.default.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => (React__namespace.default.createElement(TextInput, Object.assign({ icon: systemIcons[props.size || DEFAULT_SIZE$6].search, onCancel: !!props.value && (() => iEditable.onValueChange('')), type: "search", inputMode: "search", ref: ref }, textInputProps, iEditable))) })));
|
|
1116
894
|
});
|
|
1117
895
|
|
|
1118
|
-
var css$
|
|
896
|
+
var css$1f = {"root":"KYFtmg"};
|
|
1119
897
|
|
|
1120
|
-
const ControlGroup = uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
898
|
+
const ControlGroup = uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1f.root]);
|
|
1121
899
|
|
|
1122
900
|
function MultiSwitchComponent(props, ref) {
|
|
1123
901
|
return (React__namespace.createElement(ControlGroup, { ref: ref, rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'tablist' }) }, 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' } }))))));
|
|
1124
902
|
}
|
|
1125
903
|
const MultiSwitch = React__namespace.forwardRef(MultiSwitchComponent);
|
|
1126
904
|
|
|
1127
|
-
var css$
|
|
905
|
+
var css$1e = {"uui-typography":"EcxqoU","hero-header":"PL7YXa","promo-header":"Y60ul3","uui-critical":"-qiEjy","uui-info":"F00x1F","uui-success":"Nzoc84","uui-warning":"omLl0N","uui-highlight":"KybmFb","uui-typography-size-12":"UTAuRG","uui-typography-size-14":"ysPEIt","uui-typography-size-16":"SeZXYT","root":"A0PEAI","size-24":"cJzZ-j","size-30":"dKK00M","size-36":"OIrkCZ","size-42":"_22O1Rw","size-48":"nJvdf-","mode-form":"UfY86g","mode-cell":"Q8Hibx","uuiTypography":"EcxqoU","heroHeader":"PL7YXa","promoHeader":"Y60ul3","uuiCritical":"-qiEjy","uuiInfo":"F00x1F","uuiSuccess":"Nzoc84","uuiWarning":"omLl0N","uuiHighlight":"KybmFb","uuiTypographySize12":"UTAuRG","uuiTypographySize14":"ysPEIt","uuiTypographySize16":"SeZXYT","size24":"cJzZ-j","size30":"dKK00M","size36":"OIrkCZ","size42":"_22O1Rw","size48":"nJvdf-","modeForm":"UfY86g","modeCell":"Q8Hibx"};
|
|
1128
906
|
|
|
1129
|
-
const
|
|
1130
|
-
const
|
|
907
|
+
const DEFAULT_SIZE$5 = '36';
|
|
908
|
+
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1131
909
|
function applyNumericInputMods(mods) {
|
|
1132
910
|
return [
|
|
1133
|
-
textInputCss.root,
|
|
911
|
+
textInputCss.root,
|
|
912
|
+
css$1e.root,
|
|
913
|
+
css$1e['size-' + (mods.size || DEFAULT_SIZE$5)],
|
|
914
|
+
textInputCss['size-' + (mods.size || DEFAULT_SIZE$5)],
|
|
915
|
+
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$2)],
|
|
1134
916
|
];
|
|
1135
917
|
}
|
|
1136
918
|
const NumericInput = uuiCore.withMods(uuiComponents.NumericInput, applyNumericInputMods, (props) => {
|
|
1137
919
|
var _a, _b;
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
920
|
+
if (process.env.NODE_ENV !== "production") {
|
|
921
|
+
uuiCore.devLogger.warnAboutDeprecatedPropValue({
|
|
922
|
+
component: 'NumericInput',
|
|
923
|
+
propName: 'size',
|
|
924
|
+
propValue: '48',
|
|
925
|
+
propValueUseInstead: '42',
|
|
926
|
+
condition: () => props.size === '48',
|
|
927
|
+
});
|
|
928
|
+
}
|
|
929
|
+
return {
|
|
930
|
+
upIcon: systemIcons[props.size || DEFAULT_SIZE$5].foldingArrow,
|
|
931
|
+
downIcon: systemIcons[props.size || DEFAULT_SIZE$5].foldingArrow,
|
|
1141
932
|
align: (_a = props.align) !== null && _a !== void 0 ? _a : (props.mode === 'cell' ? 'right' : 'left'),
|
|
1142
933
|
disableArrows: (_b = props.disableArrows) !== null && _b !== void 0 ? _b : props.mode === 'cell',
|
|
1143
|
-
}
|
|
934
|
+
};
|
|
1144
935
|
});
|
|
1145
936
|
|
|
1146
|
-
var css$
|
|
937
|
+
var css$1d = {"uui-typography":"dQ6e3V","hero-header":"tC6x9u","promo-header":"FS-HaA","uui-critical":"zHS2-H","uui-info":"aeOFJo","uui-success":"AYCCpU","uui-warning":"TaSO9u","uui-highlight":"WveS4o","uui-typography-size-12":"RAczXp","uui-typography-size-14":"FHIBhd","uui-typography-size-16":"RvwyNp","root":"cWIBXx","mode-form":"Q6ssTp","mode-cell":"_3EfgRF","mode-inline":"zOQk1p","size-24":"_--L5RO","size-30":"qG0TzC","size-36":"_5-MwcX","size-42":"l-FuMK","size-48":"CX0dBe","uuiTypography":"dQ6e3V","heroHeader":"tC6x9u","promoHeader":"FS-HaA","uuiCritical":"zHS2-H","uuiInfo":"aeOFJo","uuiSuccess":"AYCCpU","uuiWarning":"TaSO9u","uuiHighlight":"WveS4o","uuiTypographySize12":"RAczXp","uuiTypographySize14":"FHIBhd","uuiTypographySize16":"RvwyNp","modeForm":"Q6ssTp","modeCell":"_3EfgRF","modeInline":"zOQk1p","size24":"_--L5RO","size30":"qG0TzC","size36":"_5-MwcX","size42":"l-FuMK","size48":"CX0dBe"};
|
|
1147
938
|
|
|
1148
|
-
const
|
|
1149
|
-
const
|
|
939
|
+
const DEFAULT_SIZE$4 = '36';
|
|
940
|
+
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1150
941
|
function applyTextAreaMods(mods) {
|
|
1151
942
|
return [
|
|
1152
|
-
css$
|
|
943
|
+
css$1d.root,
|
|
944
|
+
css$1d['size-' + (mods.size || DEFAULT_SIZE$4)],
|
|
945
|
+
css$1d['mode-' + (mods.mode || DEFAULT_MODE$1)],
|
|
1153
946
|
];
|
|
1154
947
|
}
|
|
1155
|
-
const TextArea = uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (props) =>
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
948
|
+
const TextArea = uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (props) => {
|
|
949
|
+
if (process.env.NODE_ENV !== "production") {
|
|
950
|
+
uuiCore.devLogger.warnAboutDeprecatedPropValue({
|
|
951
|
+
component: 'TextArea',
|
|
952
|
+
propName: 'size',
|
|
953
|
+
propValue: '48',
|
|
954
|
+
propValueUseInstead: '42',
|
|
955
|
+
condition: () => props.size === '48',
|
|
956
|
+
});
|
|
957
|
+
}
|
|
958
|
+
return {
|
|
959
|
+
autoSize: props.mode === EditMode.CELL ? true : props.autoSize,
|
|
960
|
+
maxLength: props.mode === EditMode.CELL ? undefined : props.maxLength,
|
|
961
|
+
};
|
|
962
|
+
});
|
|
1159
963
|
|
|
1160
|
-
var css$
|
|
964
|
+
var css$1c = {"root":"O9-0Ok"};
|
|
1161
965
|
|
|
1162
966
|
function applyDropdownContainerMods(mods) {
|
|
1163
967
|
return [
|
|
1164
|
-
css$
|
|
968
|
+
css$1c.root,
|
|
1165
969
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1166
970
|
mods.padding && `padding-${mods.padding}`,
|
|
1167
971
|
];
|
|
1168
972
|
}
|
|
1169
973
|
const DropdownContainer = uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1170
974
|
|
|
1171
|
-
var css$
|
|
975
|
+
var css$1b = {"root":"MBeWTF","timepicker-input":"xjFAs0","timepickerInput":"xjFAs0"};
|
|
1172
976
|
|
|
1173
|
-
const TimePickerBody = uuiCore.withMods(uuiComponents.TimePickerBody, () => [css$
|
|
977
|
+
const TimePickerBody = uuiCore.withMods(uuiComponents.TimePickerBody, () => [css$1b.root], () => ({ addIcon: ForwardRef$1a, subtractIcon: ForwardRef$1a }));
|
|
1174
978
|
|
|
1175
979
|
dayjs__default.default.extend(customParseFormat__default.default);
|
|
1176
|
-
const
|
|
980
|
+
const DEFAULT_MODE = EditMode.FORM;
|
|
1177
981
|
class TimePickerComponent extends uuiComponents.BaseTimePicker {
|
|
1178
982
|
constructor() {
|
|
1179
983
|
super(...arguments);
|
|
@@ -1190,7 +994,7 @@ class TimePickerComponent extends uuiComponents.BaseTimePicker {
|
|
|
1190
994
|
});
|
|
1191
995
|
}
|
|
1192
996
|
}
|
|
1193
|
-
return (React__namespace.default.createElement(TextInput, Object.assign({}, props, { onClick: null, size: this.props.size || '36', isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, isInvalid: this.props.isInvalid, cx: [css$
|
|
997
|
+
return (React__namespace.default.createElement(TextInput, Object.assign({}, props, { onClick: null, size: this.props.size || '36', isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, isInvalid: this.props.isInvalid, cx: [css$1b.root, css$1b.timepickerInput, this.props.inputCx], value: this.state.value, onValueChange: this.handleInputChange, onCancel: this.onClear, onFocus: this.handleFocus, onBlur: this.handleBlur, isDropdown: false, placeholder: this.props.placeholder ? this.props.placeholder : this.getFormat(), mode: this.props.mode || DEFAULT_MODE, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.input })));
|
|
1194
998
|
};
|
|
1195
999
|
this.renderBody = (props) => {
|
|
1196
1000
|
var _a;
|
|
@@ -1202,23 +1006,57 @@ class TimePickerComponent extends uuiComponents.BaseTimePicker {
|
|
|
1202
1006
|
}
|
|
1203
1007
|
const TimePicker = uuiCore.withMods(TimePickerComponent);
|
|
1204
1008
|
|
|
1205
|
-
var css
|
|
1009
|
+
var css$1a = {"root":"Tfvpxh"};
|
|
1206
1010
|
|
|
1207
1011
|
function applyInputAddonMods() {
|
|
1208
1012
|
return [
|
|
1209
|
-
css
|
|
1013
|
+
css$1a.root,
|
|
1210
1014
|
];
|
|
1211
1015
|
}
|
|
1212
1016
|
const InputAddon = uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
1213
1017
|
|
|
1214
|
-
var css$
|
|
1018
|
+
var css$19 = {"root":"nnS5Ny"};
|
|
1215
1019
|
|
|
1216
1020
|
function applySliderMods() {
|
|
1217
|
-
return [css$
|
|
1021
|
+
return [css$19.root, 'uui-color-neutral'];
|
|
1218
1022
|
}
|
|
1219
1023
|
const Slider = uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
1220
1024
|
|
|
1221
|
-
var css$
|
|
1025
|
+
var css$18 = {"container":"_6zEJTQ"};
|
|
1026
|
+
|
|
1027
|
+
var _path$H;
|
|
1028
|
+
function _extends$I() { _extends$I = 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$I.apply(this, arguments); }
|
|
1029
|
+
var SvgNavigationChevronLeft18 = function SvgNavigationChevronLeft18(props, ref) {
|
|
1030
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
1031
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1032
|
+
width: 18,
|
|
1033
|
+
height: 18,
|
|
1034
|
+
viewBox: "0 0 18 18",
|
|
1035
|
+
ref: ref
|
|
1036
|
+
}, props), _path$H || (_path$H = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1037
|
+
fillRule: "evenodd",
|
|
1038
|
+
d: "M11.557 5.558 10.5 4.5 6 9l4.5 4.5 1.057-1.057L8.123 9l3.434-3.442z",
|
|
1039
|
+
clipRule: "evenodd"
|
|
1040
|
+
})));
|
|
1041
|
+
};
|
|
1042
|
+
var ForwardRef$I = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft18);
|
|
1043
|
+
|
|
1044
|
+
var _path$G;
|
|
1045
|
+
function _extends$H() { _extends$H = 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$H.apply(this, arguments); }
|
|
1046
|
+
var SvgNavigationChevronRight18 = function SvgNavigationChevronRight18(props, ref) {
|
|
1047
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
1048
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1049
|
+
width: 18,
|
|
1050
|
+
height: 18,
|
|
1051
|
+
viewBox: "0 0 18 18",
|
|
1052
|
+
ref: ref
|
|
1053
|
+
}, props), _path$G || (_path$G = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1054
|
+
fillRule: "evenodd",
|
|
1055
|
+
d: "M7.5 4.5 6.442 5.558 9.877 9l-3.435 3.443L7.5 13.5 12 9 7.5 4.5z",
|
|
1056
|
+
clipRule: "evenodd"
|
|
1057
|
+
})));
|
|
1058
|
+
};
|
|
1059
|
+
var ForwardRef$H = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight18);
|
|
1222
1060
|
|
|
1223
1061
|
dayjs__default.default.extend(localeData__default.default);
|
|
1224
1062
|
const uuiHeader = {
|
|
@@ -1291,23 +1129,25 @@ function DatePickerHeader(props) {
|
|
|
1291
1129
|
};
|
|
1292
1130
|
const title = React__namespace.useMemo(() => {
|
|
1293
1131
|
var _a, _b, _c;
|
|
1294
|
-
return `${((_a = props.value) === null || _a === void 0 ? void 0 : _a.view) !== 'MONTH_SELECTION'
|
|
1132
|
+
return `${((_a = props.value) === null || _a === void 0 ? void 0 : _a.view) !== 'MONTH_SELECTION'
|
|
1133
|
+
? dayjs__default.default.months()[(_b = props.value) === null || _b === void 0 ? void 0 : _b.displayedDate.month()]
|
|
1134
|
+
: ''} ${(_c = props.value) === null || _c === void 0 ? void 0 : _c.displayedDate.year()}`;
|
|
1295
1135
|
}, [(_a = props.value) === null || _a === void 0 ? void 0 : _a.view, (_b = props.value) === null || _b === void 0 ? void 0 : _b.displayedDate]);
|
|
1296
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
1136
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$18.container, uuiHeader.container, props.cx) },
|
|
1297
1137
|
React__namespace.createElement("header", { className: uuiHeader.header },
|
|
1298
|
-
React__namespace.createElement(Button, { icon: props.navIconLeft || ForwardRef$
|
|
1138
|
+
React__namespace.createElement(Button, { icon: props.navIconLeft || ForwardRef$I, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: () => onLeftNavigationArrow() }),
|
|
1299
1139
|
React__namespace.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: () => onCaptionClick(props.value.view) }),
|
|
1300
|
-
React__namespace.createElement(Button, { icon: props.navIconRight || ForwardRef$
|
|
1140
|
+
React__namespace.createElement(Button, { icon: props.navIconRight || ForwardRef$H, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: () => onRightNavigationArrow() }))));
|
|
1301
1141
|
}
|
|
1302
1142
|
|
|
1303
|
-
var css$
|
|
1143
|
+
var css$17 = {"uui-typography":"_9-dDfv","hero-header":"S4rOus","promo-header":"kI8x9T","uui-critical":"uJK3xA","uui-info":"aGweJr","uui-success":"TY394N","uui-warning":"pjeI1G","uui-highlight":"Lx3qe7","uui-typography-size-12":"l7fMyB","uui-typography-size-14":"s3OCAA","uui-typography-size-16":"Hu8o1m","root":"ErDDW1","uuiTypography":"_9-dDfv","heroHeader":"S4rOus","promoHeader":"kI8x9T","uuiCritical":"uJK3xA","uuiInfo":"aGweJr","uuiSuccess":"TY394N","uuiWarning":"pjeI1G","uuiHighlight":"Lx3qe7","uuiTypographySize12":"l7fMyB","uuiTypographySize14":"s3OCAA","uuiTypographySize16":"Hu8o1m"};
|
|
1304
1144
|
|
|
1305
1145
|
function applyDateSelectionMods() {
|
|
1306
|
-
return [css$
|
|
1146
|
+
return [css$17.root];
|
|
1307
1147
|
}
|
|
1308
1148
|
const Calendar = uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
1309
1149
|
|
|
1310
|
-
var css$
|
|
1150
|
+
var css$16 = {"uui-typography":"zCIyEp","hero-header":"z-bv1e","promo-header":"_6g7lza","uui-critical":"VmWgWk","uui-info":"_0zaZFU","uui-success":"KEfUXm","uui-warning":"W-E19Z","uui-highlight":"ktUA64","uui-typography-size-12":"GNrZS1","uui-typography-size-14":"WJWYjf","uui-typography-size-16":"hWvWzl","root":"_6rmck6","uuiTypography":"zCIyEp","heroHeader":"z-bv1e","promoHeader":"_6g7lza","uuiCritical":"VmWgWk","uuiInfo":"_0zaZFU","uuiSuccess":"KEfUXm","uuiWarning":"W-E19Z","uuiHighlight":"ktUA64","uuiTypographySize12":"GNrZS1","uuiTypographySize14":"WJWYjf","uuiTypographySize16":"hWvWzl"};
|
|
1311
1151
|
|
|
1312
1152
|
dayjs__default.default.extend(updateLocale__default.default);
|
|
1313
1153
|
const uuiDatePickerBody = {
|
|
@@ -1335,7 +1175,7 @@ class DatePickerBody extends uuiComponents.DatePickerBodyBase {
|
|
|
1335
1175
|
}
|
|
1336
1176
|
};
|
|
1337
1177
|
this.renderBody = () => {
|
|
1338
|
-
return (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
1178
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$16.root, uuiDatePickerBody.wrapper, this.props.cx) },
|
|
1339
1179
|
React__namespace.createElement(DatePickerHeader, { value: this.props.value, onValueChange: (newValue) => this.props.setDisplayedDateAndView(newValue.displayedDate, newValue.view) }),
|
|
1340
1180
|
this.getView()));
|
|
1341
1181
|
};
|
|
@@ -1344,104 +1184,104 @@ class DatePickerBody extends uuiComponents.DatePickerBodyBase {
|
|
|
1344
1184
|
}
|
|
1345
1185
|
}
|
|
1346
1186
|
|
|
1347
|
-
var _path$
|
|
1348
|
-
function _extends$
|
|
1187
|
+
var _path$F;
|
|
1188
|
+
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); }
|
|
1349
1189
|
var SvgNotificationCheckCircleFill24 = function SvgNotificationCheckCircleFill24(props, ref) {
|
|
1350
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1190
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
1351
1191
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1352
1192
|
width: 24,
|
|
1353
1193
|
height: 24,
|
|
1354
1194
|
viewBox: "0 0 24 24",
|
|
1355
1195
|
ref: ref
|
|
1356
|
-
}, props), _path$
|
|
1196
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1357
1197
|
fillRule: "evenodd",
|
|
1358
1198
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
1359
1199
|
})));
|
|
1360
1200
|
};
|
|
1361
|
-
var ForwardRef$
|
|
1201
|
+
var ForwardRef$G = /*#__PURE__*/React.forwardRef(SvgNotificationCheckCircleFill24);
|
|
1362
1202
|
|
|
1363
|
-
var _path$
|
|
1364
|
-
function _extends$
|
|
1203
|
+
var _path$E;
|
|
1204
|
+
function _extends$F() { _extends$F = 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$F.apply(this, arguments); }
|
|
1365
1205
|
var SvgNotificationWarningFill24 = function SvgNotificationWarningFill24(props, ref) {
|
|
1366
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1206
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
1367
1207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1368
1208
|
width: 24,
|
|
1369
1209
|
height: 24,
|
|
1370
1210
|
viewBox: "0 0 24 24",
|
|
1371
1211
|
ref: ref
|
|
1372
|
-
}, props), _path$
|
|
1212
|
+
}, props), _path$E || (_path$E = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1373
1213
|
fillRule: "evenodd",
|
|
1374
1214
|
d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
1375
1215
|
})));
|
|
1376
1216
|
};
|
|
1377
|
-
var ForwardRef$
|
|
1217
|
+
var ForwardRef$F = /*#__PURE__*/React.forwardRef(SvgNotificationWarningFill24);
|
|
1378
1218
|
|
|
1379
|
-
var _path$
|
|
1380
|
-
function _extends$
|
|
1219
|
+
var _path$D;
|
|
1220
|
+
function _extends$E() { _extends$E = 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$E.apply(this, arguments); }
|
|
1381
1221
|
var SvgNotificationErrorFill24 = function SvgNotificationErrorFill24(props, ref) {
|
|
1382
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1222
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
1383
1223
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1384
1224
|
width: 24,
|
|
1385
1225
|
height: 24,
|
|
1386
1226
|
viewBox: "0 0 24 24",
|
|
1387
1227
|
ref: ref
|
|
1388
|
-
}, props), _path$
|
|
1228
|
+
}, props), _path$D || (_path$D = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1389
1229
|
fillRule: "evenodd",
|
|
1390
1230
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"
|
|
1391
1231
|
})));
|
|
1392
1232
|
};
|
|
1393
|
-
var ForwardRef$
|
|
1233
|
+
var ForwardRef$E = /*#__PURE__*/React.forwardRef(SvgNotificationErrorFill24);
|
|
1394
1234
|
|
|
1395
|
-
var _path$
|
|
1396
|
-
function _extends$
|
|
1235
|
+
var _path$C;
|
|
1236
|
+
function _extends$D() { _extends$D = 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$D.apply(this, arguments); }
|
|
1397
1237
|
var SvgNotificationHelpFill24 = function SvgNotificationHelpFill24(props, ref) {
|
|
1398
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1238
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
1399
1239
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1400
1240
|
width: 24,
|
|
1401
1241
|
height: 24,
|
|
1402
1242
|
viewBox: "0 0 24 24",
|
|
1403
1243
|
ref: ref
|
|
1404
|
-
}, props), _path$
|
|
1244
|
+
}, props), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1405
1245
|
fillRule: "evenodd",
|
|
1406
1246
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"
|
|
1407
1247
|
})));
|
|
1408
1248
|
};
|
|
1409
|
-
var ForwardRef$
|
|
1249
|
+
var ForwardRef$D = /*#__PURE__*/React.forwardRef(SvgNotificationHelpFill24);
|
|
1410
1250
|
|
|
1411
|
-
var _path$
|
|
1412
|
-
function _extends$
|
|
1251
|
+
var _path$B;
|
|
1252
|
+
function _extends$C() { _extends$C = 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$C.apply(this, arguments); }
|
|
1413
1253
|
var SvgNavigationClose24$1 = function SvgNavigationClose24(props, ref) {
|
|
1414
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1254
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
1415
1255
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1416
1256
|
width: 24,
|
|
1417
1257
|
height: 24,
|
|
1418
1258
|
viewBox: "0 0 24 24",
|
|
1419
1259
|
ref: ref
|
|
1420
|
-
}, props), _path$
|
|
1260
|
+
}, props), _path$B || (_path$B = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1421
1261
|
fillRule: "evenodd",
|
|
1422
1262
|
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
1423
1263
|
})));
|
|
1424
1264
|
};
|
|
1425
|
-
var ForwardRef$
|
|
1265
|
+
var ForwardRef$C = /*#__PURE__*/React.forwardRef(SvgNavigationClose24$1);
|
|
1426
1266
|
|
|
1427
|
-
var css$
|
|
1267
|
+
var css$15 = {"root":"W1nNZ2","icon-wrapper":"rbYZg7","alert-wrapper":"FKRaHG","size-48":"PVHQcw","size-36":"vJJGJE","action-wrapper":"Rw-Hfs","action-icon":"YHgk9T","action-link":"uTP-0I","close-icon":"_3--vy0","main-path":"sTl-Hn","content":"_1p4XTX","iconWrapper":"rbYZg7","alertWrapper":"FKRaHG","size48":"PVHQcw","size36":"vJJGJE","actionWrapper":"Rw-Hfs","actionIcon":"YHgk9T","actionLink":"uTP-0I","closeIcon":"_3--vy0","mainPath":"sTl-Hn"};
|
|
1428
1268
|
|
|
1429
|
-
const Alert = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default('uui-alert', css$
|
|
1430
|
-
React__namespace.createElement("div", { className: css$
|
|
1431
|
-
props.icon && (React__namespace.createElement("div", { className: css$
|
|
1432
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
1433
|
-
React__namespace.createElement("div", { className: css$
|
|
1269
|
+
const Alert = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default('uui-alert', css$15.root, css$15.alertWrapper, props.color && `uui-color-${props.color}`, props.cx, (props.size === '36' ? css$15.size36 : css$15.size48)) }, props.rawProps),
|
|
1270
|
+
React__namespace.createElement("div", { className: css$15.mainPath },
|
|
1271
|
+
props.icon && (React__namespace.createElement("div", { className: css$15.iconWrapper },
|
|
1272
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$15.actionIcon }))),
|
|
1273
|
+
React__namespace.createElement("div", { className: css$15.content },
|
|
1434
1274
|
props.children,
|
|
1435
|
-
props.actions && (React__namespace.createElement("div", { className: css$
|
|
1436
|
-
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$
|
|
1437
|
-
const WarningAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1438
|
-
const SuccessAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1439
|
-
const HintAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1440
|
-
const ErrorAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1275
|
+
props.actions && (React__namespace.createElement("div", { className: css$15.actionWrapper }, props.actions.map((action) => (React__namespace.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$15.actionLink, size: (props === null || props === void 0 ? void 0 : props.size) === '36' ? '24' : '30' })))))),
|
|
1276
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$C, color: "neutral", onClick: props.onClose, cx: css$15.closeIcon })))));
|
|
1277
|
+
const WarningAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$F, color: "warning", ref: ref }, props)));
|
|
1278
|
+
const SuccessAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$G, color: "success", ref: ref }, props)));
|
|
1279
|
+
const HintAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$D, color: "info", ref: ref }, props)));
|
|
1280
|
+
const ErrorAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$E, color: "error", ref: ref }, props)));
|
|
1441
1281
|
|
|
1442
1282
|
const Dropdown = uuiCore.withMods(uuiComponents.Dropdown);
|
|
1443
1283
|
|
|
1444
|
-
var css$
|
|
1284
|
+
var css$14 = {"uui-typography":"LQdLQQ","hero-header":"_3TyRW8","promo-header":"Eq7UTP","uui-critical":"SqYuLp","uui-info":"_0J4h34","uui-success":"UpBWM3","uui-warning":"zksmg6","uui-highlight":"tmXgF0","uui-typography-size-12":"GbysMP","uui-typography-size-14":"dV4lFy","uui-typography-size-16":"JpJeDI","root":"iuYgcF","body-root":"dlGUt-","submenu-root-item":"kG0fft","icon-after":"wWdg3A","icon-check":"_4NOswt","splitter-root":"-UeUhJ","splitter":"kHw7Br","header-root":"iqeJKl","item-root":"fczaeI","icon":"_3srg8P","link":"VwkLXq","indent":"vTBFJo","uuiTypography":"LQdLQQ","heroHeader":"_3TyRW8","promoHeader":"Eq7UTP","uuiCritical":"SqYuLp","uuiInfo":"_0J4h34","uuiSuccess":"UpBWM3","uuiWarning":"zksmg6","uuiHighlight":"tmXgF0","uuiTypographySize12":"GbysMP","uuiTypographySize14":"dV4lFy","uuiTypographySize16":"JpJeDI","bodyRoot":"dlGUt-","submenuRootItem":"kG0fft","iconAfter":"wWdg3A","iconCheck":"_4NOswt","splitterRoot":"-UeUhJ","headerRoot":"iqeJKl","itemRoot":"fczaeI"};
|
|
1445
1285
|
|
|
1446
1286
|
const icons = systemIcons['36'];
|
|
1447
1287
|
exports.IDropdownControlKeys = void 0;
|
|
@@ -1476,9 +1316,9 @@ function DropdownMenuContainer(props) {
|
|
|
1476
1316
|
props.onClose();
|
|
1477
1317
|
}
|
|
1478
1318
|
};
|
|
1479
|
-
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props, { rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'menu' }), ref: menuRef, width: props.minWidth, lockProps: { onKeyDown: handleArrowKeys }, cx: [props.cx, css$
|
|
1319
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props, { rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'menu' }), ref: menuRef, width: props.minWidth, lockProps: { onKeyDown: handleArrowKeys }, cx: [props.cx, css$14.root] })));
|
|
1480
1320
|
}
|
|
1481
|
-
const DropdownMenuBody = uuiCore.withMods(DropdownMenuContainer, () => [css$
|
|
1321
|
+
const DropdownMenuBody = uuiCore.withMods(DropdownMenuContainer, () => [css$14.bodyRoot], (props) => {
|
|
1482
1322
|
return (Object.assign({ closeOnKey: exports.IDropdownControlKeys.ESCAPE }, props));
|
|
1483
1323
|
});
|
|
1484
1324
|
const DropdownMenuButton = React__namespace.default.forwardRef((props, ref) => {
|
|
@@ -1501,32 +1341,32 @@ const DropdownMenuButton = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1501
1341
|
const getMenuButtonContent = () => {
|
|
1502
1342
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1503
1343
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1504
|
-
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'info' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$
|
|
1344
|
+
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'info' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$14.root, css$14.icon, iconPosition === 'right' ? css$14.iconAfter : css$14.iconBefore) }));
|
|
1505
1345
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1506
1346
|
isIconBefore && iconElement,
|
|
1507
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$
|
|
1347
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$14.indent }, caption),
|
|
1508
1348
|
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1509
1349
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1510
1350
|
iconElement))));
|
|
1511
1351
|
};
|
|
1512
1352
|
const isAnchor = Boolean(link || href);
|
|
1513
|
-
const itemClassNames = uuiCore.cx(css$
|
|
1514
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$
|
|
1353
|
+
const itemClassNames = uuiCore.cx(css$14.root, props.cx, css$14.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened);
|
|
1354
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$14.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isLinkActive: isActive, isDisabled: isDisabled, forwardedRef: ref, target: target }, getMenuButtonContent())) : (React__namespace.default.createElement(uuiComponents.FlexRow, { rawProps: {
|
|
1515
1355
|
tabIndex: isDisabled ? -1 : 0,
|
|
1516
1356
|
role: 'menuitem',
|
|
1517
1357
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
1518
1358
|
}, cx: itemClassNames, onClick: handleClick, ref: ref },
|
|
1519
1359
|
getMenuButtonContent(),
|
|
1520
|
-
isSelected && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icons.accept, cx: uuiCore.cx(css$
|
|
1360
|
+
isSelected && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icons.accept, cx: uuiCore.cx(css$14.root, css$14.selectedCheckmark) })));
|
|
1521
1361
|
});
|
|
1522
1362
|
DropdownMenuButton.displayName = 'DropdownMenuButton';
|
|
1523
1363
|
function DropdownMenuSplitter(props) {
|
|
1524
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(css$
|
|
1525
|
-
React__namespace.default.createElement("hr", { className: css$
|
|
1364
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(css$14.root, props.cx, css$14.splitterRoot) },
|
|
1365
|
+
React__namespace.default.createElement("hr", { className: css$14.splitter })));
|
|
1526
1366
|
}
|
|
1527
1367
|
function DropdownMenuHeader(props) {
|
|
1528
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', css$
|
|
1529
|
-
React__namespace.default.createElement("span", { className: css$
|
|
1368
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', css$14.root, props.cx, css$14.headerRoot) },
|
|
1369
|
+
React__namespace.default.createElement("span", { className: css$14.header }, props.caption)));
|
|
1530
1370
|
}
|
|
1531
1371
|
function DropdownSubMenu(props) {
|
|
1532
1372
|
const subMenuModifiers = [
|
|
@@ -1546,7 +1386,7 @@ function DropdownSubMenu(props) {
|
|
|
1546
1386
|
];
|
|
1547
1387
|
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: "right-start", modifiers: subMenuModifiers, renderBody: (dropdownProps) => React__namespace.default.createElement(DropdownMenuBody, Object.assign({ closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW }, props, dropdownProps)), renderTarget: (_a) => {
|
|
1548
1388
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
1549
|
-
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(css$
|
|
1389
|
+
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(css$14.root, css$14.submenuRootItem), icon: icons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
1550
1390
|
} }));
|
|
1551
1391
|
}
|
|
1552
1392
|
function DropdownMenuSwitchButton(props) {
|
|
@@ -1563,39 +1403,39 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1563
1403
|
onHandleValueChange(!isSelected);
|
|
1564
1404
|
}
|
|
1565
1405
|
};
|
|
1566
|
-
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$
|
|
1567
|
-
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$
|
|
1406
|
+
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$14.itemRoot, isDisabled && uuiCore.uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
1407
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$14.iconBefore }),
|
|
1568
1408
|
React__namespace.default.createElement(uuiComponents.Text, null, caption),
|
|
1569
1409
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1570
1410
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1571
1411
|
}
|
|
1572
1412
|
|
|
1573
|
-
var css$
|
|
1413
|
+
var css$13 = {"uui-typography":"j5tYuI","hero-header":"IEpBdJ","promo-header":"sdO7uW","uui-critical":"_5aZ1-D","uui-info":"jxOgt5","uui-success":"xBupx7","uui-warning":"UOfYCs","uui-highlight":"i3Ijp-","uui-typography-size-12":"_8aBOgv","uui-typography-size-14":"E9I1f6","uui-typography-size-16":"a15Q5f","root":"z4sbms","border-bottom":"abuI0x","top-shadow":"zCp9F4","size-24":"j1idmI","size-30":"mrdSWJ","size-36":"_1HO2Le","size-42":"IKu2Y3","size-48":"CaPqT0","padding-6":"EJ46iX","padding-12":"nXHdHI","padding-18":"NJasKl","padding-24":"_8mnZ--","margin-24":"fRJ1Gu","margin-12":"Q0Jukn","vPadding-12":"WcNP1L","vPadding-18":"C52NH3","vPadding-24":"nnNqSc","vPadding-36":"VoS14d","vPadding-48":"rjLwpo","spacing-6":"uRUlem","spacing-12":"qIWqPR","spacing-18":"_4DwNYb","uui-surface-main":"ek9-UP","uuiTypography":"j5tYuI","heroHeader":"IEpBdJ","promoHeader":"sdO7uW","uuiCritical":"_5aZ1-D","uuiInfo":"jxOgt5","uuiSuccess":"xBupx7","uuiWarning":"UOfYCs","uuiHighlight":"i3Ijp-","uuiTypographySize12":"_8aBOgv","uuiTypographySize14":"E9I1f6","uuiTypographySize16":"a15Q5f","borderBottom":"abuI0x","topShadow":"zCp9F4","size24":"j1idmI","size30":"mrdSWJ","size36":"_1HO2Le","size42":"IKu2Y3","size48":"CaPqT0","padding6":"EJ46iX","padding12":"nXHdHI","padding18":"NJasKl","padding24":"_8mnZ--","margin24":"fRJ1Gu","margin12":"Q0Jukn","vPadding12":"WcNP1L","vPadding18":"C52NH3","vPadding24":"nnNqSc","vPadding36":"VoS14d","vPadding48":"rjLwpo","spacing6":"uRUlem","spacing12":"qIWqPR","spacing18":"_4DwNYb","uuiSurfaceMain":"ek9-UP"};
|
|
1574
1414
|
|
|
1575
|
-
const FlexCell = uuiCore.withMods(uuiComponents.FlexCell, () => [css$
|
|
1415
|
+
const FlexCell = uuiCore.withMods(uuiComponents.FlexCell, () => [css$13.flexCell]);
|
|
1576
1416
|
|
|
1577
1417
|
const FlexRow = uuiCore.withMods(uuiComponents.FlexRow, (props) => {
|
|
1578
1418
|
return [
|
|
1579
|
-
css$
|
|
1580
|
-
props.size !== null && css$
|
|
1581
|
-
props.padding && css$
|
|
1582
|
-
props.vPadding && css$
|
|
1583
|
-
props.margin && css$
|
|
1584
|
-
props.topShadow && css$
|
|
1585
|
-
props.borderBottom && css$
|
|
1586
|
-
props.spacing && css$
|
|
1587
|
-
props.background && css$
|
|
1419
|
+
css$13.root,
|
|
1420
|
+
props.size !== null && css$13['size-' + (props.size || '36')],
|
|
1421
|
+
props.padding && css$13['padding-' + props.padding],
|
|
1422
|
+
props.vPadding && css$13['vPadding-' + props.vPadding],
|
|
1423
|
+
props.margin && css$13['margin-' + props.margin],
|
|
1424
|
+
props.topShadow && css$13.topShadow,
|
|
1425
|
+
props.borderBottom && css$13.borderBottom,
|
|
1426
|
+
props.spacing && css$13['spacing-' + props.spacing],
|
|
1427
|
+
props.background && css$13[`uui-${props.background}`],
|
|
1588
1428
|
];
|
|
1589
1429
|
});
|
|
1590
1430
|
|
|
1591
|
-
var css$
|
|
1431
|
+
var css$12 = {"root":"lNErC1","margin-24":"dwlliI","padding-12":"htwotk","padding-24":"yPzJkk","shadow":"CYljHV","uui-surface-main":"WKu4zM","margin24":"dwlliI","padding12":"htwotk","padding24":"yPzJkk","uuiSurfaceMain":"WKu4zM"};
|
|
1592
1432
|
|
|
1593
1433
|
const Panel = uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
1594
1434
|
'uui-panel',
|
|
1595
|
-
css$
|
|
1596
|
-
props.shadow && css$
|
|
1597
|
-
props.margin && css$
|
|
1598
|
-
props.background && css$
|
|
1435
|
+
css$12.root,
|
|
1436
|
+
props.shadow && css$12.shadow,
|
|
1437
|
+
props.margin && css$12['margin-' + props.margin],
|
|
1438
|
+
props.background && css$12[`uui-${props.background}`],
|
|
1599
1439
|
]);
|
|
1600
1440
|
|
|
1601
1441
|
const i18n = Object.assign(Object.assign({}, uuiCore.i18n), { dataPickerBody: {
|
|
@@ -1687,61 +1527,301 @@ const i18n = Object.assign(Object.assign({}, uuiCore.i18n), { dataPickerBody: {
|
|
|
1687
1527
|
fileSizeProgress: ' of ',
|
|
1688
1528
|
} });
|
|
1689
1529
|
|
|
1690
|
-
var css$
|
|
1530
|
+
var css$11 = {"root":"_-5RRek","mode-block":"z5PnEk","mode-inline":"_81RMu5","padding-0":"bZIogc","padding-6":"qYyFVI","padding-12":"SOwmAy","padding-18":"NDBjMe","modeBlock":"z5PnEk","modeInline":"_81RMu5","padding0":"bZIogc","padding6":"qYyFVI","padding12":"SOwmAy","padding18":"NDBjMe"};
|
|
1691
1531
|
|
|
1692
1532
|
const getMode = (mode) => {
|
|
1693
1533
|
return mode || 'block';
|
|
1694
1534
|
};
|
|
1695
1535
|
function applyAccordionMods(mods) {
|
|
1696
1536
|
return [
|
|
1697
|
-
css$
|
|
1698
|
-
css$
|
|
1699
|
-
mods.padding && css$
|
|
1537
|
+
css$11.root,
|
|
1538
|
+
css$11['mode-' + getMode(mods.mode)],
|
|
1539
|
+
mods.padding && css$11['padding-' + mods.padding],
|
|
1700
1540
|
];
|
|
1701
1541
|
}
|
|
1702
1542
|
const Accordion = uuiCore.withMods(uuiComponents__namespace.Accordion, applyAccordionMods, (mods) => ({
|
|
1703
1543
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons[getMode(mods.mode) === 'block' ? '60' : '30'].foldingArrow,
|
|
1704
1544
|
}));
|
|
1705
1545
|
|
|
1706
|
-
var css$
|
|
1546
|
+
var css$10 = {"root":"mbiA7Q"};
|
|
1707
1547
|
|
|
1708
1548
|
function applyTooltipMods(mods) {
|
|
1709
1549
|
return [
|
|
1710
|
-
css$
|
|
1550
|
+
css$10.root,
|
|
1711
1551
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1712
1552
|
];
|
|
1713
1553
|
}
|
|
1714
|
-
const Tooltip = uuiCore.withMods(
|
|
1554
|
+
const Tooltip = uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
1715
1555
|
|
|
1716
|
-
var css
|
|
1556
|
+
var css$$ = {"uui-typography":"XJHUsI","hero-header":"kAVLHn","promo-header":"qDxKsT","uui-critical":"wrhYEq","uui-info":"lZaO6T","uui-success":"kouN3c","uui-warning":"Q2Vvxz","uui-highlight":"yo2VkC","uui-typography-size-12":"MYM34R","uui-typography-size-14":"iBKzWm","uui-typography-size-16":"BM7wF7","root":"b-oV8u","size-24":"jXUjSH","size-30":"XiH5l6","size-36":"_0NNieu","size-42":"RFo9ME","size-48":"Li-PLe","uuiTypography":"XJHUsI","heroHeader":"kAVLHn","promoHeader":"qDxKsT","uuiCritical":"wrhYEq","uuiInfo":"lZaO6T","uuiSuccess":"kouN3c","uuiWarning":"Q2Vvxz","uuiHighlight":"yo2VkC","uuiTypographySize12":"MYM34R","uuiTypographySize14":"iBKzWm","uuiTypographySize16":"BM7wF7","size24":"jXUjSH","size30":"XiH5l6","size36":"_0NNieu","size42":"RFo9ME","size48":"Li-PLe"};
|
|
1717
1557
|
|
|
1718
|
-
const
|
|
1558
|
+
const DEFAULT_SIZE$3 = '36';
|
|
1719
1559
|
function applyLabeledInputMods(mods) {
|
|
1720
|
-
return [css
|
|
1560
|
+
return [css$$.root, css$$['size-' + (mods.size || DEFAULT_SIZE$3)]];
|
|
1721
1561
|
}
|
|
1722
1562
|
const LabeledInput = uuiCore.withMods(uuiComponents__namespace.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1723
1563
|
Tooltip,
|
|
1724
|
-
infoIcon: systemIcons[props.size ||
|
|
1564
|
+
infoIcon: systemIcons[props.size || DEFAULT_SIZE$3].help,
|
|
1725
1565
|
}));
|
|
1726
1566
|
|
|
1727
|
-
var css$
|
|
1567
|
+
var css$_ = {"root":"OCsStR"};
|
|
1728
1568
|
|
|
1729
|
-
|
|
1569
|
+
function RadioGroup(props) {
|
|
1570
|
+
const direction = props.direction || 'vertical';
|
|
1571
|
+
const handleChange = (newVal) => {
|
|
1572
|
+
if (newVal !== props.value) {
|
|
1573
|
+
props.onValueChange(newVal);
|
|
1574
|
+
}
|
|
1575
|
+
};
|
|
1576
|
+
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$_.root, uuiCore.directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur }, props.rawProps), props.items.map((i) => {
|
|
1577
|
+
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1578
|
+
return (React__namespace.createElement(RadioInput, Object.assign({ 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)));
|
|
1579
|
+
})));
|
|
1580
|
+
}
|
|
1730
1581
|
|
|
1731
|
-
var css$
|
|
1582
|
+
var css$Z = {"root":"YIeH-Z"};
|
|
1732
1583
|
|
|
1733
1584
|
function applyScrollBarsMods() {
|
|
1734
1585
|
return [
|
|
1735
|
-
css$
|
|
1586
|
+
css$Z.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1736
1587
|
];
|
|
1737
1588
|
}
|
|
1738
1589
|
const ScrollBars = uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
1739
1590
|
|
|
1740
|
-
var css$
|
|
1591
|
+
var css$Y = {"scroll-container":"_5VNazm","list-container":"N8Z5dG","scrollContainer":"_5VNazm","listContainer":"N8Z5dG"};
|
|
1592
|
+
|
|
1593
|
+
var css$X = {"root":"eqx5Be"};
|
|
1594
|
+
|
|
1595
|
+
const AvatarStack = uuiCore.withMods(uuiComponents.AvatarStack, () => [css$X.root]);
|
|
1596
|
+
|
|
1597
|
+
var css$W = {"uui-typography":"sC932f","hero-header":"Z6f1-i","promo-header":"QwOjl4","uui-critical":"PbxWhu","uui-info":"fNOAjg","uui-success":"_2Ot7ou","uui-warning":"YZsA-O","uui-highlight":"xUldt1","uui-typography-size-12":"qtma1n","uui-typography-size-14":"c2Mt3L","uui-typography-size-16":"V9Z6fT","root":"CNEWiQ","size-18":"la1Nz-","size-24":"BtcF7K","size-30":"Biogbr","size-36":"IkK7DW","size-42":"hN62fw","size-48":"CBJ6yW","uuiTypography":"sC932f","heroHeader":"Z6f1-i","promoHeader":"QwOjl4","uuiCritical":"PbxWhu","uuiInfo":"fNOAjg","uuiSuccess":"_2Ot7ou","uuiWarning":"YZsA-O","uuiHighlight":"xUldt1","uuiTypographySize12":"qtma1n","uuiTypographySize14":"c2Mt3L","uuiTypographySize16":"V9Z6fT","size18":"la1Nz-","size24":"BtcF7K","size30":"Biogbr","size36":"IkK7DW","size42":"hN62fw","size48":"CBJ6yW"};
|
|
1598
|
+
|
|
1599
|
+
const mapSize$1 = {
|
|
1600
|
+
48: '48',
|
|
1601
|
+
42: '48',
|
|
1602
|
+
36: '36',
|
|
1603
|
+
30: '30',
|
|
1604
|
+
24: '30',
|
|
1605
|
+
18: '18',
|
|
1606
|
+
};
|
|
1607
|
+
const DEFAULT_SIZE$2 = '36';
|
|
1608
|
+
const DEFAULT_FILL = 'solid';
|
|
1609
|
+
function applyBadgeMods(mods) {
|
|
1610
|
+
return [
|
|
1611
|
+
'uui-badge',
|
|
1612
|
+
css$W.root,
|
|
1613
|
+
css$W['size-' + (mods.size || DEFAULT_SIZE$2)],
|
|
1614
|
+
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1615
|
+
`uui-color-${mods.color || 'info'}`,
|
|
1616
|
+
mods.indicator && mods.fill === 'outline' && 'uui-indicator',
|
|
1617
|
+
];
|
|
1618
|
+
}
|
|
1619
|
+
const mapCountIndicatorSizes$1 = {
|
|
1620
|
+
12: '12',
|
|
1621
|
+
18: '12',
|
|
1622
|
+
24: '18',
|
|
1623
|
+
30: '18',
|
|
1624
|
+
36: '18',
|
|
1625
|
+
42: '24',
|
|
1626
|
+
48: '24',
|
|
1627
|
+
};
|
|
1628
|
+
const Badge = uuiCore.withMods(uuiComponents__namespace.Button, applyBadgeMods, (props) => {
|
|
1629
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1630
|
+
uuiCore.devLogger.warnAboutDeprecatedPropValue({
|
|
1631
|
+
component: 'Badge',
|
|
1632
|
+
propName: 'size',
|
|
1633
|
+
propValue: props.size,
|
|
1634
|
+
propValueUseInstead: '42',
|
|
1635
|
+
condition: () => ['48'].indexOf(props.size) !== -1,
|
|
1636
|
+
});
|
|
1637
|
+
}
|
|
1638
|
+
return {
|
|
1639
|
+
dropdownIcon: systemIcons[(props.size && mapSize$1[props.size]) || DEFAULT_SIZE$2].foldingArrow,
|
|
1640
|
+
clearIcon: systemIcons[(props.size && mapSize$1[props.size]) || DEFAULT_SIZE$2].clear,
|
|
1641
|
+
countPosition: 'left',
|
|
1642
|
+
countIndicator: (countIndicatorProps) => (React__namespace.default.createElement(CountIndicator, Object.assign({}, countIndicatorProps, { color: null, size: mapCountIndicatorSizes$1[props.size || DEFAULT_SIZE$2] }))),
|
|
1643
|
+
indicator: props.indicator || false,
|
|
1644
|
+
iconPosition: props.iconPosition || 'left',
|
|
1645
|
+
};
|
|
1646
|
+
});
|
|
1647
|
+
|
|
1648
|
+
var css$V = {"uui-typography":"_88kp4h","hero-header":"LxnzN-","promo-header":"_12io1C","uui-critical":"fXVd1Q","uui-info":"NkxcUY","uui-success":"_7W9RQf","uui-warning":"sPTppR","uui-highlight":"ScxHHL","uui-typography-size-12":"W3MwM0","uui-typography-size-14":"_1eAUkf","uui-typography-size-16":"CN16SL","root":"_8Kz8g-","size-18":"tZkT7S","size-24":"gDJ5Gq","size-30":"M6Q7Eq","size-36":"PD0-xT","size-42":"zBCjJu","size-48":"qNwt-O","uuiTypography":"_88kp4h","heroHeader":"LxnzN-","promoHeader":"_12io1C","uuiCritical":"fXVd1Q","uuiInfo":"NkxcUY","uuiSuccess":"_7W9RQf","uuiWarning":"sPTppR","uuiHighlight":"ScxHHL","uuiTypographySize12":"W3MwM0","uuiTypographySize14":"_1eAUkf","uuiTypographySize16":"CN16SL","size18":"tZkT7S","size24":"gDJ5Gq","size30":"M6Q7Eq","size36":"PD0-xT","size42":"zBCjJu","size48":"qNwt-O"};
|
|
1649
|
+
|
|
1650
|
+
const DEFAULT_SIZE$1 = '36';
|
|
1651
|
+
const mapSize = {
|
|
1652
|
+
48: '48',
|
|
1653
|
+
42: '48',
|
|
1654
|
+
36: '36',
|
|
1655
|
+
30: '30',
|
|
1656
|
+
24: '30',
|
|
1657
|
+
18: '18',
|
|
1658
|
+
};
|
|
1659
|
+
const mapCountIndicatorSizes = {
|
|
1660
|
+
18: '12',
|
|
1661
|
+
24: '18',
|
|
1662
|
+
30: '18',
|
|
1663
|
+
36: '18',
|
|
1664
|
+
42: '24',
|
|
1665
|
+
48: '24',
|
|
1666
|
+
};
|
|
1667
|
+
function applyTagMods(props) {
|
|
1668
|
+
return [
|
|
1669
|
+
css$V['size-' + (props.size || DEFAULT_SIZE$1)],
|
|
1670
|
+
css$V.root,
|
|
1671
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
1672
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
1673
|
+
'uui-tag',
|
|
1674
|
+
];
|
|
1675
|
+
}
|
|
1676
|
+
const Tag = uuiCore.withMods(uuiComponents.Button, applyTagMods, (props) => ({
|
|
1677
|
+
dropdownIcon: systemIcons[mapSize[props.size] || DEFAULT_SIZE$1].foldingArrow,
|
|
1678
|
+
clearIcon: systemIcons[mapSize[props.size] || DEFAULT_SIZE$1].clear,
|
|
1679
|
+
countIndicator: (countIndicatorProps) => (React__namespace.default.createElement(CountIndicator, Object.assign({}, countIndicatorProps, { color: (!props.color || props.color === 'neutral') ? 'white' : props.color, size: mapCountIndicatorSizes[props.size || DEFAULT_SIZE$1] }))),
|
|
1680
|
+
}));
|
|
1681
|
+
|
|
1682
|
+
var css$U = {"root":"JtxFks","uui-spinner":"SI80KO","uuiSpinner":"SI80KO"};
|
|
1683
|
+
|
|
1684
|
+
function applySpinnerMods() {
|
|
1685
|
+
return [css$U.root, 'uui-spinner'];
|
|
1686
|
+
}
|
|
1687
|
+
const Spinner = uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
1688
|
+
|
|
1689
|
+
var css$T = {"root":"Yd6asj","spacer":"-C8p6F","mode-ghost":"Lmg3Cy","size-24":"_6WOpso","size-30":"Wj4rci","navigation-size-24":"_1AdJTK","navigation-size-30":"ZG8Zet","modeGhost":"Lmg3Cy","size24":"_6WOpso","size30":"Wj4rci","navigationSize24":"_1AdJTK","navigationSize30":"ZG8Zet"};
|
|
1690
|
+
|
|
1691
|
+
var _path$A;
|
|
1692
|
+
function _extends$B() { _extends$B = 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$B.apply(this, arguments); }
|
|
1693
|
+
var SvgNavigationChevronLeft12 = function SvgNavigationChevronLeft12(props, ref) {
|
|
1694
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
1695
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1696
|
+
width: 13,
|
|
1697
|
+
height: 12,
|
|
1698
|
+
viewBox: "0 0 13 12",
|
|
1699
|
+
ref: ref
|
|
1700
|
+
}, props), _path$A || (_path$A = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1701
|
+
fillRule: "evenodd",
|
|
1702
|
+
d: "M8.205 3.705 7.5 3l-3 3 3 3 .705-.705L5.915 6l2.29-2.295z",
|
|
1703
|
+
clipRule: "evenodd"
|
|
1704
|
+
})));
|
|
1705
|
+
};
|
|
1706
|
+
var ForwardRef$B = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft12);
|
|
1707
|
+
|
|
1708
|
+
var _path$z;
|
|
1709
|
+
function _extends$A() { _extends$A = 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$A.apply(this, arguments); }
|
|
1710
|
+
var SvgNavigationChevronRight12 = function SvgNavigationChevronRight12(props, ref) {
|
|
1711
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
1712
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1713
|
+
width: 13,
|
|
1714
|
+
height: 12,
|
|
1715
|
+
viewBox: "0 0 13 12",
|
|
1716
|
+
ref: ref
|
|
1717
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1718
|
+
fillRule: "evenodd",
|
|
1719
|
+
d: "m5.5 3-.705.705L7.085 6l-2.29 2.295L5.5 9l3-3-3-3z",
|
|
1720
|
+
clipRule: "evenodd"
|
|
1721
|
+
})));
|
|
1722
|
+
};
|
|
1723
|
+
var ForwardRef$A = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight12);
|
|
1724
|
+
|
|
1725
|
+
function Paginator(props) {
|
|
1726
|
+
const renderPaginator = (params) => {
|
|
1727
|
+
var _a, _b;
|
|
1728
|
+
return (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: cx__default.default(css$T.root, 'uui-paginator') }, params.rawProps),
|
|
1729
|
+
React__namespace.default.createElement(Button, { cx: css$T[`navigation-size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$I : ForwardRef$B, onClick: params.goToPrev, isDisabled: params.isFirst, fill: "outline", color: "secondary" }),
|
|
1730
|
+
params.pages.map((page, index) => {
|
|
1731
|
+
var _a, _b;
|
|
1732
|
+
if (page.type === 'spacer') {
|
|
1733
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$T[`size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], css$T.spacer), size: params.size, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1 }));
|
|
1734
|
+
}
|
|
1735
|
+
else {
|
|
1736
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$T[`size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], css$T[`mode-${!page.isActive && 'ghost'}`]), size: params.size, 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" }));
|
|
1737
|
+
}
|
|
1738
|
+
}),
|
|
1739
|
+
React__namespace.default.createElement(Button, { cx: css$T[`navigation-size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$H : ForwardRef$A, onClick: params.goToNext, isDisabled: params.isLast, fill: "outline", color: "secondary" })));
|
|
1740
|
+
};
|
|
1741
|
+
return React__namespace.default.createElement(uuiComponents.Paginator, Object.assign({}, props, { render: renderPaginator }));
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
var css$S = {"root":"KQyEVC","progress-bar":"_0Ly7pU","progressBar-indeterminate":"QxKjeS","size-12":"QWJJKD","size-18":"-DPYxB","size-24":"e2nUT4","progressBar":"_0Ly7pU","progressBarIndeterminate":"QxKjeS","size12":"QWJJKD","size18":"-DPYxB","size24":"e2nUT4"};
|
|
1745
|
+
|
|
1746
|
+
const IndeterminateBar = React__namespace.forwardRef((props, ref) => {
|
|
1747
|
+
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$S.root, css$S[`size-${props.size || 12}`]) },
|
|
1748
|
+
React__namespace.createElement("div", { className: cx__default.default(css$S.progressBar) })));
|
|
1749
|
+
});
|
|
1750
|
+
|
|
1751
|
+
var css$R = {"root":"_3-j2fh","striped":"fgUkbp","animate-stripes":"oomKxP","size-12":"_8luzwc","size-18":"u6yNgC","size-24":"rWTlbC","animateStripes":"oomKxP","size12":"_8luzwc","size18":"u6yNgC","size24":"rWTlbC"};
|
|
1752
|
+
|
|
1753
|
+
const DEFAULT_SIZE = '12';
|
|
1754
|
+
function applyProgressBarMods(mods) {
|
|
1755
|
+
const size = mods.size || DEFAULT_SIZE;
|
|
1756
|
+
return [
|
|
1757
|
+
css$R.root,
|
|
1758
|
+
css$R[`size-${size}`],
|
|
1759
|
+
mods.striped && css$R.striped,
|
|
1760
|
+
];
|
|
1761
|
+
}
|
|
1762
|
+
const ProgressBar = uuiCore.withMods(uuiComponents.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1763
|
+
hideLabel: props.hideLabel || props.striped,
|
|
1764
|
+
}));
|
|
1765
|
+
|
|
1766
|
+
var css$Q = {"root":"EnZ2we"};
|
|
1767
|
+
|
|
1768
|
+
const IndicatorBar = React__namespace.forwardRef((props, ref) => {
|
|
1769
|
+
const { progress } = props;
|
|
1770
|
+
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$Q.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$Q.root, props.cx) }));
|
|
1771
|
+
});
|
|
1772
|
+
|
|
1773
|
+
var css$P = {"root":"NwxnLv","size-12":"_42pJE9","size-18":"a1hXOL","size-24":"ZMk2fC","size12":"_42pJE9","size18":"a1hXOL","size24":"ZMk2fC"};
|
|
1774
|
+
|
|
1775
|
+
const StatusIndicator = React.forwardRef((props, ref) => {
|
|
1776
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
1777
|
+
css$P.root,
|
|
1778
|
+
css$P[`size-${props.size || 24}`],
|
|
1779
|
+
'uui-status_indicator',
|
|
1780
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
1781
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
1782
|
+
props.cx,
|
|
1783
|
+
]) },
|
|
1784
|
+
React__namespace.default.createElement("div", { className: "uui-status_indicator_dot" }),
|
|
1785
|
+
React__namespace.default.createElement("p", { className: "uui-status_indicator_caption" }, props.caption)));
|
|
1786
|
+
});
|
|
1787
|
+
|
|
1788
|
+
var _path$y;
|
|
1789
|
+
function _extends$z() { _extends$z = 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$z.apply(this, arguments); }
|
|
1790
|
+
var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref) {
|
|
1791
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
1792
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1793
|
+
width: 18,
|
|
1794
|
+
height: 18,
|
|
1795
|
+
viewBox: "0 0 18 18",
|
|
1796
|
+
ref: ref
|
|
1797
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1798
|
+
fillRule: "evenodd",
|
|
1799
|
+
d: "M12.443 6.442 9 9.877 5.558 6.442 4.5 7.5 9 12l4.5-4.5-1.057-1.058z",
|
|
1800
|
+
clipRule: "evenodd"
|
|
1801
|
+
})));
|
|
1802
|
+
};
|
|
1803
|
+
var ForwardRef$z = /*#__PURE__*/React.forwardRef(SvgNavigationChevronDown18);
|
|
1804
|
+
|
|
1805
|
+
var css$O = {"checkbox":"wtJxyM","drag-handle":"e71wIl","indent":"_5-Pqoe","folding-arrow-12":"PAPeDK","folding-arrow-18":"E6s3U3","icon-container":"mw4MCA","dragHandle":"e71wIl","foldingArrow12":"PAPeDK","foldingArrow18":"E6s3U3","iconContainer":"mw4MCA"};
|
|
1806
|
+
|
|
1807
|
+
function DataRowAddons(props) {
|
|
1808
|
+
var _a, _b;
|
|
1809
|
+
const row = props.rowProps;
|
|
1810
|
+
const additionalItemSize = +props.size < 30 ? '12' : '18';
|
|
1811
|
+
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1812
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$O.dragHandle }),
|
|
1813
|
+
((_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: css$O.checkbox, tabIndex: props.tabIndex, size: additionalItemSize, 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 })),
|
|
1814
|
+
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: css$O.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
1815
|
+
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1816
|
+
role: 'button',
|
|
1817
|
+
}, key: "icon", icon: ForwardRef$z, cx: [
|
|
1818
|
+
uuiCore.uuiElement.foldingArrow, css$O[`folding-arrow-${additionalItemSize}`], uuiCore.uuiMarkers.clickable, css$O.iconContainer,
|
|
1819
|
+
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))))));
|
|
1820
|
+
}
|
|
1741
1821
|
|
|
1742
|
-
var css$
|
|
1822
|
+
var css$N = {"root":"h2KPev"};
|
|
1743
1823
|
|
|
1744
|
-
const Blocker = uuiCore.withMods(uuiComponents.Blocker, () => [css$
|
|
1824
|
+
const Blocker = uuiCore.withMods(uuiComponents.Blocker, () => [css$N.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__namespace.default.createElement(Spinner, null)) }));
|
|
1745
1825
|
|
|
1746
1826
|
const VirtualList = React__namespace.forwardRef((props, ref) => {
|
|
1747
1827
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
@@ -1757,7 +1837,7 @@ const VirtualList = React__namespace.forwardRef((props, ref) => {
|
|
|
1757
1837
|
var _a;
|
|
1758
1838
|
return ((_a = props.renderRows) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
1759
1839
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1760
|
-
})) || (React__namespace.createElement("div", { className: css$
|
|
1840
|
+
})) || (React__namespace.createElement("div", { className: css$Y.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1761
1841
|
React__namespace.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1762
1842
|
};
|
|
1763
1843
|
const renderView = ({ style }) => (React__namespace.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
@@ -1767,7 +1847,7 @@ const VirtualList = React__namespace.forwardRef((props, ref) => {
|
|
|
1767
1847
|
return;
|
|
1768
1848
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1769
1849
|
}, []);
|
|
1770
|
-
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$
|
|
1850
|
+
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$Y.scrollContainer, props.cx, {
|
|
1771
1851
|
[uuiCore.uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1772
1852
|
[uuiCore.uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1773
1853
|
[uuiCore.uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -1781,11 +1861,29 @@ const VirtualListView = React__namespace.forwardRef((props, ref) => {
|
|
|
1781
1861
|
});
|
|
1782
1862
|
VirtualList.displayName = 'VirtualList';
|
|
1783
1863
|
|
|
1784
|
-
var css$
|
|
1864
|
+
var css$M = {"root":"acZmCZ"};
|
|
1785
1865
|
|
|
1786
|
-
|
|
1866
|
+
function CheckboxGroup(props) {
|
|
1867
|
+
const currentValue = props.value || [];
|
|
1868
|
+
const direction = props.direction || 'vertical';
|
|
1869
|
+
const handleChange = (selected, newVal) => {
|
|
1870
|
+
let newSelection;
|
|
1871
|
+
const actualValue = props.value || [];
|
|
1872
|
+
if (selected) {
|
|
1873
|
+
newSelection = actualValue.concat([newVal]);
|
|
1874
|
+
}
|
|
1875
|
+
else {
|
|
1876
|
+
newSelection = actualValue.filter((i) => i !== newVal);
|
|
1877
|
+
}
|
|
1878
|
+
props.onValueChange(newSelection);
|
|
1879
|
+
};
|
|
1880
|
+
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$M.root, uuiCore.directionMode[direction], props.cx) }, props.rawProps), props.items.map((i) => {
|
|
1881
|
+
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1882
|
+
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)));
|
|
1883
|
+
})));
|
|
1884
|
+
}
|
|
1787
1885
|
|
|
1788
|
-
var css$
|
|
1886
|
+
var css$L = {"uui-typography":"_7lvT7A","hero-header":"NIqi25","promo-header":"ClUOnH","uui-critical":"APUTz3","uui-info":"HErAje","uui-success":"ene-CJ","uui-warning":"JVQzly","uui-highlight":"zTcKML","uui-typography-size-12":"UvhsTx","uui-typography-size-14":"vZYhJR","uui-typography-size-16":"DoTVFp","body":"_5aCqCy","modal":"tu-CzG","search-wrapper":"wyig7G","checkbox":"t9ahlq","no-found-size-24":"_9rovga","no-found-size-30":"u7l5xk","no-found-size-36":"RixJYT","no-found-size-42":"D60xhg","uuiTypography":"_7lvT7A","heroHeader":"NIqi25","promoHeader":"ClUOnH","uuiCritical":"APUTz3","uuiInfo":"HErAje","uuiSuccess":"ene-CJ","uuiWarning":"JVQzly","uuiHighlight":"zTcKML","uuiTypographySize12":"UvhsTx","uuiTypographySize14":"vZYhJR","uuiTypographySize16":"DoTVFp","searchWrapper":"wyig7G","noFoundSize24":"_9rovga","noFoundSize30":"u7l5xk","noFoundSize36":"RixJYT","noFoundSize42":"D60xhg"};
|
|
1789
1887
|
|
|
1790
1888
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
1791
1889
|
constructor() {
|
|
@@ -1797,16 +1895,16 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
1797
1895
|
if (this.props.renderNotFound) {
|
|
1798
1896
|
return this.props.renderNotFound();
|
|
1799
1897
|
}
|
|
1800
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
1898
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$L[`no-found-size-${this.props.searchSize || 36}`], grow: 1, textAlign: "center" },
|
|
1801
1899
|
React__namespace.default.createElement(Text, { size: this.props.searchSize || '36' }, i18n.dataPickerBody.noRecordsMessage)));
|
|
1802
1900
|
}
|
|
1803
1901
|
render() {
|
|
1804
1902
|
const searchSize = uuiCore.isMobile() ? '48' : this.props.searchSize || '36';
|
|
1805
1903
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1806
|
-
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$
|
|
1904
|
+
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$L.searchWrapper },
|
|
1807
1905
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
1808
1906
|
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 }))))),
|
|
1809
|
-
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx(css$
|
|
1907
|
+
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx(css$L.body, css$L[this.props.editMode], css$L[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight, maxWidth: this.props.maxWidth } } }, this.props.rowsCount > 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.renderNotFound()))));
|
|
1810
1908
|
}
|
|
1811
1909
|
}
|
|
1812
1910
|
|
|
@@ -1842,92 +1940,30 @@ function DataPickerFooterImpl(props) {
|
|
|
1842
1940
|
}
|
|
1843
1941
|
const DataPickerFooter = React__namespace.default.memo(DataPickerFooterImpl);
|
|
1844
1942
|
|
|
1845
|
-
var css$
|
|
1943
|
+
var css$K = {"header":"E9L6WK","close":"VGQcJT"};
|
|
1846
1944
|
|
|
1847
|
-
var _path$
|
|
1848
|
-
function _extends$
|
|
1945
|
+
var _path$x;
|
|
1946
|
+
function _extends$y() { _extends$y = 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$y.apply(this, arguments); }
|
|
1849
1947
|
var SvgNavigationClose24 = function SvgNavigationClose24(props, ref) {
|
|
1850
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1948
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
1851
1949
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1852
1950
|
width: 25,
|
|
1853
1951
|
height: 24,
|
|
1854
1952
|
viewBox: "0 0 25 24",
|
|
1855
|
-
ref: ref
|
|
1856
|
-
}, props), _path$
|
|
1857
|
-
d: "m6.9 19-1.4-1.4 5.6-5.6-5.6-5.6L6.9 5l5.6 5.6L18.1 5l1.4 1.4-5.6 5.6 5.6 5.6-1.4 1.4-5.6-5.6L6.9 19z"
|
|
1858
|
-
})));
|
|
1859
|
-
};
|
|
1860
|
-
var ForwardRef$z = /*#__PURE__*/React.forwardRef(SvgNavigationClose24);
|
|
1861
|
-
|
|
1862
|
-
const DataPickerHeaderImpl = (props) => {
|
|
1863
|
-
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
1864
|
-
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$J.header },
|
|
1865
|
-
React__namespace.default.createElement(Text, { size: "48", fontWeight: "600" }, title),
|
|
1866
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$z, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$J.close })));
|
|
1867
|
-
};
|
|
1868
|
-
const DataPickerHeader = React__namespace.default.memo(DataPickerHeaderImpl);
|
|
1869
|
-
|
|
1870
|
-
var _path$x;
|
|
1871
|
-
function _extends$y() { _extends$y = 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$y.apply(this, arguments); }
|
|
1872
|
-
var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref) {
|
|
1873
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
1874
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1875
|
-
width: 18,
|
|
1876
|
-
height: 18,
|
|
1877
|
-
viewBox: "0 0 18 18",
|
|
1878
|
-
ref: ref
|
|
1879
|
-
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1880
|
-
fillRule: "evenodd",
|
|
1881
|
-
d: "M12.443 6.442 9 9.877 5.558 6.442 4.5 7.5 9 12l4.5-4.5-1.057-1.058z",
|
|
1882
|
-
clipRule: "evenodd"
|
|
1953
|
+
ref: ref
|
|
1954
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1955
|
+
d: "m6.9 19-1.4-1.4 5.6-5.6-5.6-5.6L6.9 5l5.6 5.6L18.1 5l1.4 1.4-5.6 5.6 5.6 5.6-1.4 1.4-5.6-5.6L6.9 19z"
|
|
1883
1956
|
})));
|
|
1884
1957
|
};
|
|
1885
|
-
var ForwardRef$y = /*#__PURE__*/React.forwardRef(
|
|
1886
|
-
|
|
1887
|
-
var css$I = {"cell":"_9XaMDo","wrapper":"_0Bi0AE","align-widgets-top":"_25j4RB","size-24":"vwSpKm","folding-arrow":"NG5lmu","size-30":"vDRj65","size-36":"F55CtJ","size-42":"_3kBOQ5","size-48":"ez0lFv","size-60":"yx1mWX","align-widgets-center":"xNFVAl","padding-12":"_450jT0","padding-24":"xNENQw","padding-left-12":"k3JyB4","padding-left-24":"_0jnslm","padding-right-24":"bOl2Wb","drag-handle":"H5A3b6","checkbox":"_00ipIE","indent":"_7Au90W","folding-arrow-12":"_3riDIR","folding-arrow-18":"_5PmcPi","icon-container":"-BdtRU","loading-cell":"_6gJ8ph","alignWidgetsTop":"_25j4RB","size24":"vwSpKm","foldingArrow":"NG5lmu","size30":"vDRj65","size36":"F55CtJ","size42":"_3kBOQ5","size48":"ez0lFv","size60":"yx1mWX","alignWidgetsCenter":"xNFVAl","padding12":"_450jT0","padding24":"xNENQw","paddingLeft12":"k3JyB4","paddingLeft24":"_0jnslm","paddingRight24":"bOl2Wb","dragHandle":"H5A3b6","foldingArrow12":"_3riDIR","foldingArrow18":"_5PmcPi","iconContainer":"-BdtRU","loadingCell":"_6gJ8ph"};
|
|
1958
|
+
var ForwardRef$y = /*#__PURE__*/React.forwardRef(SvgNavigationClose24);
|
|
1888
1959
|
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
row.indent > 0 && (React__namespace.createElement("div", { key: "fold", className: css$I.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable && (React__namespace.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
1897
|
-
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1898
|
-
role: 'button',
|
|
1899
|
-
}, key: "icon", icon: ForwardRef$y, cx: [
|
|
1900
|
-
css$I.foldingArrow, css$I[`folding-arrow-${additionalItemSize}`], uuiCore.uuiMarkers.clickable, css$I.iconContainer,
|
|
1901
|
-
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))))));
|
|
1902
|
-
}
|
|
1903
|
-
function DataTableCell(props) {
|
|
1904
|
-
props = Object.assign({}, props);
|
|
1905
|
-
if (props.isFirstColumn) {
|
|
1906
|
-
props.addons = React__namespace.createElement(DataTableRowAddons, Object.assign({}, props));
|
|
1907
|
-
}
|
|
1908
|
-
props.renderPlaceholder = props.renderPlaceholder
|
|
1909
|
-
|| (() => (
|
|
1910
|
-
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
1911
|
-
React__namespace.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48', cx: css$I.loadingCell },
|
|
1912
|
-
React__namespace.createElement(TextPlaceholder, null))));
|
|
1913
|
-
props.renderUnknown = props.renderUnknown
|
|
1914
|
-
|| (() => (React__namespace.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48' }, "Unknown")));
|
|
1915
|
-
props.renderTooltip = (tooltipProps) => React__namespace.createElement(Tooltip, Object.assign({ color: "critical" }, tooltipProps));
|
|
1916
|
-
const isEditable = !!props.onValueChange;
|
|
1917
|
-
props.cx = [
|
|
1918
|
-
'uui-dt-vars',
|
|
1919
|
-
'data-table-cell',
|
|
1920
|
-
props.cx,
|
|
1921
|
-
css$I.cell,
|
|
1922
|
-
css$I['size-' + (props.size || '36')],
|
|
1923
|
-
css$I[`padding-${props.padding || (isEditable && !props.rowProps.isLoading && '0') || '12'}`],
|
|
1924
|
-
props.isFirstColumn && css$I[`padding-left-${props.padding || (isEditable && !props.rowProps.isLoading && '12') || '24'}`],
|
|
1925
|
-
props.isLastColumn && css$I['padding-right-24'],
|
|
1926
|
-
css$I[`align-widgets-${props.alignActions || 'top'}`],
|
|
1927
|
-
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
1928
|
-
];
|
|
1929
|
-
return React__namespace.createElement(uuiComponents.DataTableCell, Object.assign({}, props));
|
|
1930
|
-
}
|
|
1960
|
+
const DataPickerHeaderImpl = (props) => {
|
|
1961
|
+
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
1962
|
+
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$K.header },
|
|
1963
|
+
React__namespace.default.createElement(Text, { size: "48", fontWeight: "600" }, title),
|
|
1964
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$y, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$K.close })));
|
|
1965
|
+
};
|
|
1966
|
+
const DataPickerHeader = React__namespace.default.memo(DataPickerHeaderImpl);
|
|
1931
1967
|
|
|
1932
1968
|
var _path$w;
|
|
1933
1969
|
function _extends$x() { _extends$x = 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$x.apply(this, arguments); }
|
|
@@ -1974,55 +2010,81 @@ var SvgNotificationDone12 = function SvgNotificationDone12(props, ref) {
|
|
|
1974
2010
|
};
|
|
1975
2011
|
var ForwardRef$v = /*#__PURE__*/React.forwardRef(SvgNotificationDone12);
|
|
1976
2012
|
|
|
1977
|
-
var css$
|
|
2013
|
+
var css$J = {"cell":"Vfzz6W","align-widgets-top":"mwPv-Z","size-24":"_83d4iw","size-30":"_4SRdpz","size-36":"vXqi76","size-42":"glpLdq","size-48":"DQov11","size-60":"JByWdj","align-widgets-center":"h3KjWz","padding-12":"MzQusK","padding-24":"TyUxSC","padding-left-12":"lTi2xH","padding-left-24":"nienEg","icon-container":"tWp-Dj","loading-cell":"_8LsVle","content-wrapper":"OisgQG","render-item":"_5lWMRi","icon-wrapper":"_14lB9n","icon-default":"dMp5ed","icon-primary":"NVJ8ry","alignWidgetsTop":"mwPv-Z","size24":"_83d4iw","size30":"_4SRdpz","size36":"vXqi76","size42":"glpLdq","size48":"DQov11","size60":"JByWdj","alignWidgetsCenter":"h3KjWz","padding12":"MzQusK","padding24":"TyUxSC","paddingLeft12":"lTi2xH","paddingLeft24":"nienEg","iconContainer":"tWp-Dj","loadingCell":"_8LsVle","contentWrapper":"OisgQG","renderItem":"_5lWMRi","iconWrapper":"_14lB9n","iconDefault":"dMp5ed","iconPrimary":"NVJ8ry"};
|
|
2014
|
+
|
|
2015
|
+
const getIcon = (size) => {
|
|
2016
|
+
switch (size) {
|
|
2017
|
+
case '24':
|
|
2018
|
+
return ForwardRef$v;
|
|
2019
|
+
case '30':
|
|
2020
|
+
return ForwardRef$w;
|
|
2021
|
+
case '36':
|
|
2022
|
+
return ForwardRef$w;
|
|
2023
|
+
case '42':
|
|
2024
|
+
return ForwardRef$x;
|
|
2025
|
+
default:
|
|
2026
|
+
return ForwardRef$w;
|
|
2027
|
+
}
|
|
2028
|
+
};
|
|
2029
|
+
function DataPickerCell(props) {
|
|
2030
|
+
const ref = React__namespace.useRef();
|
|
2031
|
+
let content;
|
|
2032
|
+
if (props.rowProps.isLoading) {
|
|
2033
|
+
content = (
|
|
2034
|
+
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
2035
|
+
React__namespace.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48', cx: css$J.loadingCell },
|
|
2036
|
+
React__namespace.createElement(TextPlaceholder, null)));
|
|
2037
|
+
}
|
|
2038
|
+
else if (props.rowProps.isUnknown) {
|
|
2039
|
+
content = (React__namespace.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48' }, "Unknown"));
|
|
2040
|
+
}
|
|
2041
|
+
else {
|
|
2042
|
+
content = (React__namespace.createElement("div", { key: `${props.rowProps.id}`, className: css$J.renderItem },
|
|
2043
|
+
props.renderItem(props.rowProps.value, props.rowProps),
|
|
2044
|
+
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2045
|
+
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React__namespace.createElement("div", { className: css$J.iconWrapper },
|
|
2046
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: getIcon(props.size), cx: props.rowProps.isChildrenSelected ? css$J.iconDefault : css$J.iconPrimary, rawProps: { 'aria-label': props.rowProps.isChildrenSelected
|
|
2047
|
+
? 'Child is selected'
|
|
2048
|
+
: 'Selected' } })))));
|
|
2049
|
+
}
|
|
2050
|
+
const getWrappedContent = () => (React__namespace.createElement("div", { className: css$J.contentWrapper }, content));
|
|
2051
|
+
return (React__namespace.createElement(FlexCell, { ref: ref, grow: 1, width: 0, minWidth: 0, rawProps: { role: 'cell' }, cx: [
|
|
2052
|
+
css$J.cell,
|
|
2053
|
+
props.cx,
|
|
2054
|
+
'data-picker-cell',
|
|
2055
|
+
css$J['size-' + (props.size || '36')],
|
|
2056
|
+
css$J[`padding-${props.padding || '12'}`],
|
|
2057
|
+
css$J[`padding-left-${props.padding || '24'}`],
|
|
2058
|
+
css$J[`align-widgets-${props.alignActions || 'top'}`],
|
|
2059
|
+
] },
|
|
2060
|
+
React__namespace.createElement(DataRowAddons, Object.assign({}, props)),
|
|
2061
|
+
getWrappedContent()));
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
var css$I = {"uui-typography":"YOQgNO","hero-header":"Hs9Zpn","promo-header":"AsK2Ou","uui-critical":"X5IOi0","uui-info":"gwzNPx","uui-success":"WIava2","uui-warning":"dpfJ6x","uui-highlight":"lWQHWt","uui-typography-size-12":"iAVQq9","uui-typography-size-14":"SOVpnw","uui-typography-size-16":"b-iwzF","picker-row":"TXoZxy","uuiTypography":"YOQgNO","heroHeader":"Hs9Zpn","promoHeader":"AsK2Ou","uuiCritical":"X5IOi0","uuiInfo":"gwzNPx","uuiSuccess":"WIava2","uuiWarning":"dpfJ6x","uuiHighlight":"lWQHWt","uuiTypographySize12":"iAVQq9","uuiTypographySize14":"SOVpnw","uuiTypographySize16":"b-iwzF","pickerRow":"TXoZxy"};
|
|
1978
2065
|
|
|
1979
2066
|
class DataPickerRow extends React__namespace.Component {
|
|
1980
2067
|
constructor() {
|
|
1981
2068
|
super(...arguments);
|
|
1982
|
-
this.getIcon = (size) => {
|
|
1983
|
-
switch (size) {
|
|
1984
|
-
case '24':
|
|
1985
|
-
return ForwardRef$v;
|
|
1986
|
-
case '30':
|
|
1987
|
-
return ForwardRef$w;
|
|
1988
|
-
case '36':
|
|
1989
|
-
return ForwardRef$w;
|
|
1990
|
-
case '42':
|
|
1991
|
-
return ForwardRef$x;
|
|
1992
|
-
default:
|
|
1993
|
-
return ForwardRef$w;
|
|
1994
|
-
}
|
|
1995
|
-
};
|
|
1996
|
-
this.column = {
|
|
1997
|
-
key: 'name',
|
|
1998
|
-
grow: 1,
|
|
1999
|
-
width: 0,
|
|
2000
|
-
render: (item, rowProps) => (React__namespace.createElement("div", { key: rowProps.id, className: css$H.renderItem },
|
|
2001
|
-
this.props.renderItem(item, rowProps),
|
|
2002
|
-
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2003
|
-
(rowProps.isChildrenSelected || rowProps.isSelected) && (React__namespace.createElement("div", { className: css$H.iconWrapper },
|
|
2004
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: this.getIcon(this.props.size), cx: rowProps.isChildrenSelected ? css$H.iconDefault : css$H.iconPrimary, rawProps: { 'aria-label': rowProps.isChildrenSelected
|
|
2005
|
-
? 'Child is selected'
|
|
2006
|
-
: 'Selected' } }))))),
|
|
2007
|
-
};
|
|
2008
2069
|
this.renderContent = () => {
|
|
2009
|
-
return (React__namespace.createElement(
|
|
2070
|
+
return (React__namespace.createElement(DataPickerCell, { key: "name", size: this.props.size || '36', padding: this.props.padding || '24', rowProps: this.props, alignActions: this.props.alignActions || 'top', renderItem: this.props.renderItem }));
|
|
2010
2071
|
};
|
|
2011
2072
|
}
|
|
2012
2073
|
render() {
|
|
2013
|
-
return React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$
|
|
2074
|
+
return (React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$I.pickerRow, this.props.cx], renderContent: this.renderContent })));
|
|
2014
2075
|
}
|
|
2015
2076
|
}
|
|
2016
2077
|
|
|
2017
|
-
var css$
|
|
2078
|
+
var css$H = {"uui-typography":"g-MuZa","hero-header":"IkhnnL","promo-header":"RE7fTr","uui-critical":"lTfvmv","uui-info":"u2corP","uui-success":"_1LVIx4","uui-warning":"l9LlGd","uui-highlight":"ZR03gu","uui-typography-size-12":"UAnEuL","uui-typography-size-14":"X1sL9z","uui-typography-size-16":"Yxi8tP","done":"JwuPkK","container":"_0SARad","uuiTypography":"g-MuZa","heroHeader":"IkhnnL","promoHeader":"RE7fTr","uuiCritical":"lTfvmv","uuiInfo":"u2corP","uuiSuccess":"_1LVIx4","uuiWarning":"l9LlGd","uuiHighlight":"ZR03gu","uuiTypographySize12":"UAnEuL","uuiTypographySize14":"X1sL9z","uuiTypographySize16":"Yxi8tP"};
|
|
2018
2079
|
|
|
2019
2080
|
const MobileDropdownWrapper = (props) => {
|
|
2020
2081
|
const isMobileView = uuiCore.isMobile();
|
|
2021
2082
|
const maxWidth = isMobileView ? 'auto' : props.maxWidth;
|
|
2022
|
-
|
|
2083
|
+
const maxHeight = isMobileView ? 'auto' : props.maxHeight;
|
|
2084
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$H.container, props.cx] }),
|
|
2023
2085
|
isMobileView && React__namespace.default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
|
|
2024
2086
|
props.children,
|
|
2025
|
-
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$
|
|
2087
|
+
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$H.done, size: "48" })));
|
|
2026
2088
|
};
|
|
2027
2089
|
|
|
2028
2090
|
var _path$t, _path2$2;
|
|
@@ -2047,103 +2109,9 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2047
2109
|
};
|
|
2048
2110
|
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
2049
2111
|
|
|
2050
|
-
var css$
|
|
2051
|
-
|
|
2052
|
-
function PickerModal(props) {
|
|
2053
|
-
const { view, selection, dataSourceStateLens, showSelectedLens, dataSourceState, getDataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = uuiComponents.usePickerModal(props);
|
|
2054
|
-
const renderRow = (rowProps) => {
|
|
2055
|
-
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React__namespace.default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: "none", padding: "24", size: "36", renderItem: (i) => React__namespace.default.createElement(Text, { size: "36" }, rowProps.isLoading ? React__namespace.default.createElement(TextPlaceholder, { wordsCount: 2 }) : getName(i)) })));
|
|
2056
|
-
};
|
|
2057
|
-
const renderFooter = () => {
|
|
2058
|
-
const hasSelection = view.getSelectedRowsCount() > 0;
|
|
2059
|
-
const rowsCount = view.getListProps().rowsCount;
|
|
2060
|
-
const isEmptyRowsAndHasNoSelection = (rowsCount === 0 && !hasSelection);
|
|
2061
|
-
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2062
|
-
view.selectAll && (React__namespace.default.createElement(LinkButton, { caption: hasSelection ? i18n.pickerModal.clearAllButton : i18n.pickerModal.selectAllButton, onClick: hasSelection ? () => clearSelection() : () => view.selectAll.onValueChange(true), isDisabled: isEmptyRowsAndHasNoSelection })),
|
|
2063
|
-
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2064
|
-
React__namespace.default.createElement(Button, { fill: "outline", color: "secondary", caption: i18n.pickerModal.cancelButton, onClick: () => props.abort() }),
|
|
2065
|
-
React__namespace.default.createElement(Button, { color: "accent", caption: i18n.pickerModal.selectButton, onClick: () => props.success(selection) })));
|
|
2066
|
-
};
|
|
2067
|
-
const renderNotFound = () => {
|
|
2068
|
-
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__namespace.default.createElement("div", { className: css$F.noFoundModalContainer },
|
|
2069
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { cx: css$F.noFoundModalContainerIcon, icon: ForwardRef$u }),
|
|
2070
|
-
React__namespace.default.createElement(Text, { cx: css$F.noFoundModalContainerText, fontWeight: "600", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
2071
|
-
React__namespace.default.createElement(Text, { cx: css$F.noFoundModalContainerText, fontSize: "12", lineHeight: "18", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
2072
|
-
};
|
|
2073
|
-
const dataRows = getRows();
|
|
2074
|
-
const rows = dataRows.map((row) => renderRow(row));
|
|
2075
|
-
return (React__namespace.default.createElement(ModalBlocker, Object.assign({}, props),
|
|
2076
|
-
React__namespace.default.createElement(ModalWindow, { width: 600, height: 700 },
|
|
2077
|
-
React__namespace.default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
2078
|
-
React__namespace.default.createElement(FlexCell, { cx: css$F.subHeaderWrapper },
|
|
2079
|
-
React__namespace.default.createElement(FlexRow, { vPadding: "24" },
|
|
2080
|
-
React__namespace.default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => uuiComponents.handleDataSourceKeyboard({
|
|
2081
|
-
value: getDataSourceState(),
|
|
2082
|
-
onValueChange: handleDataSourceValueChange,
|
|
2083
|
-
listView: view,
|
|
2084
|
-
rows: dataRows,
|
|
2085
|
-
searchPosition: 'body',
|
|
2086
|
-
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder }))),
|
|
2087
|
-
!isSingleSelect() && (React__namespace.default.createElement(Switch, Object.assign({ cx: css$F.switch, size: "18" }, showSelectedLens.toProps(), { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
2088
|
-
props.renderFilter && React__namespace.default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
2089
|
-
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" })),
|
|
2090
|
-
React__namespace.default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
2091
|
-
}
|
|
2092
|
-
|
|
2093
|
-
const MAX_ITEMS = 100;
|
|
2094
|
-
const getMaxItems = (maxItems) => maxItems || maxItems === 0 ? maxItems : MAX_ITEMS;
|
|
2095
|
-
|
|
2096
|
-
var css$E = {"uui-typography":"f5TS7b","hero-header":"eV0Dv9","promo-header":"rryMzv","uui-critical":"iz4YDE","uui-info":"_0Rkccx","uui-success":"mbjPp7","uui-warning":"IAGrmV","uui-highlight":"HstNhX","uui-typography-size-12":"rerjq4","uui-typography-size-14":"mI-YTc","uui-typography-size-16":"Oc8yqj","root":"_0E7gs3","mode-form":"D7gulF","mode-cell":"gFsSih","mode-inline":"idAbwJ","size-24":"gpQPW2","size-30":"md41Y1","size-36":"QWspEW","size-42":"_-7t3Jr","size-48":"MuXcCw","uuiTypography":"f5TS7b","heroHeader":"eV0Dv9","promoHeader":"rryMzv","uuiCritical":"iz4YDE","uuiInfo":"_0Rkccx","uuiSuccess":"mbjPp7","uuiWarning":"IAGrmV","uuiHighlight":"HstNhX","uuiTypographySize12":"rerjq4","uuiTypographySize14":"mI-YTc","uuiTypographySize16":"Oc8yqj","modeForm":"D7gulF","modeCell":"gFsSih","modeInline":"idAbwJ","size24":"gpQPW2","size30":"md41Y1","size36":"QWspEW","size42":"_-7t3Jr","size48":"MuXcCw"};
|
|
2097
|
-
|
|
2098
|
-
const defaultSize$2 = '36';
|
|
2099
|
-
const defaultMode$1 = exports.EditMode.FORM;
|
|
2100
|
-
function applyPickerTogglerMods(mods) {
|
|
2101
|
-
return [
|
|
2102
|
-
css$E.root,
|
|
2103
|
-
css$E['size-' + (mods.size || defaultSize$2)],
|
|
2104
|
-
css$E['mode-' + (mods.mode || defaultMode$1)],
|
|
2105
|
-
];
|
|
2106
|
-
}
|
|
2107
|
-
function PickerTogglerComponent(props, ref) {
|
|
2108
|
-
const getPickerTogglerButtonSize = (propSize) => {
|
|
2109
|
-
switch (propSize) {
|
|
2110
|
-
case '48':
|
|
2111
|
-
return '42';
|
|
2112
|
-
case '42':
|
|
2113
|
-
return '36';
|
|
2114
|
-
case '36':
|
|
2115
|
-
return '30';
|
|
2116
|
-
case '30':
|
|
2117
|
-
return '24';
|
|
2118
|
-
case '24':
|
|
2119
|
-
return '18';
|
|
2120
|
-
}
|
|
2121
|
-
};
|
|
2122
|
-
const getCaption = (row) => {
|
|
2123
|
-
const maxItems = getMaxItems(props.maxItems);
|
|
2124
|
-
if (row.isLoading) {
|
|
2125
|
-
return React__namespace.createElement(TextPlaceholder, null);
|
|
2126
|
-
}
|
|
2127
|
-
else if (!props.getName || props.selectedRowsCount > maxItems) {
|
|
2128
|
-
return row.value;
|
|
2129
|
-
}
|
|
2130
|
-
else {
|
|
2131
|
-
return props.getName(row.value);
|
|
2132
|
-
}
|
|
2133
|
-
};
|
|
2134
|
-
const renderItem = (row) => {
|
|
2135
|
-
var _a;
|
|
2136
|
-
return (React__namespace.createElement(Tag, { key: row.rowKey, caption: getCaption(row), tabIndex: -1, size: props.size ? getPickerTogglerButtonSize(props.size) : '30', onClear: (e) => {
|
|
2137
|
-
var _a;
|
|
2138
|
-
(_a = row.onCheck) === null || _a === void 0 ? void 0 : _a.call(row, row);
|
|
2139
|
-
e.stopPropagation();
|
|
2140
|
-
}, isDisabled: props.isDisabled || props.isReadonly || ((_a = row === null || row === void 0 ? void 0 : row.checkbox) === null || _a === void 0 ? void 0 : _a.isDisabled) }));
|
|
2141
|
-
};
|
|
2142
|
-
return (React__namespace.createElement(uuiComponents.PickerToggler, Object.assign({}, props, { ref: ref, cx: [applyPickerTogglerMods(props), props.cx], renderItem: !!props.renderItem ? props.renderItem : renderItem, getName: (item) => (props.getName ? props.getName(item) : item), cancelIcon: systemIcons[props.size || defaultSize$2].clear, dropdownIcon: systemIcons[props.size || defaultSize$2].foldingArrow })));
|
|
2143
|
-
}
|
|
2144
|
-
const PickerToggler = React__namespace.forwardRef(PickerTogglerComponent);
|
|
2112
|
+
var css$G = {"uui-typography":"bVvQtf","hero-header":"_68UDXg","promo-header":"W5kmrw","uui-critical":"HzXdGX","uui-info":"DdtIjT","uui-success":"SnFxhE","uui-warning":"_7F3pHh","uui-highlight":"_9PvOeY","uui-typography-size-12":"MocZrh","uui-typography-size-14":"mjhkLm","uui-typography-size-16":"SHUh7R","sub-header-wrapper":"TZNbzK","switch":"_5SdIIE","no-found-modal-container":"clyLUl","no-found-modal-container-icon":"X0-P2O","no-found-modal-container-text":"x-GvUV","uuiTypography":"bVvQtf","heroHeader":"_68UDXg","promoHeader":"W5kmrw","uuiCritical":"HzXdGX","uuiInfo":"DdtIjT","uuiSuccess":"SnFxhE","uuiWarning":"_7F3pHh","uuiHighlight":"_9PvOeY","uuiTypographySize12":"MocZrh","uuiTypographySize14":"mjhkLm","uuiTypographySize16":"SHUh7R","subHeaderWrapper":"TZNbzK","$switch$":"_5SdIIE","noFoundModalContainer":"clyLUl","noFoundModalContainerIcon":"X0-P2O","noFoundModalContainerText":"x-GvUV"};
|
|
2145
2113
|
|
|
2146
|
-
var css$
|
|
2114
|
+
var css$F = {"root":"LsffkB","multiline":"_9WZW0N","vertical-padding-24":"WAgBT-","vertical-padding-30":"oV6d-0","vertical-padding-36":"J-0NBH","vertical-padding-42":"htzWHL","vertical-padding-48":"_3tKjB1","text":"_7fNt-8","verticalPadding24":"WAgBT-","verticalPadding30":"oV6d-0","verticalPadding36":"J-0NBH","verticalPadding42":"htzWHL","verticalPadding48":"_3tKjB1"};
|
|
2147
2115
|
|
|
2148
2116
|
const mergeHighlightRanges = (ranges) => {
|
|
2149
2117
|
const mergedRanges = [];
|
|
@@ -2210,7 +2178,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
2210
2178
|
return getDecoratedText(str, ranges);
|
|
2211
2179
|
};
|
|
2212
2180
|
|
|
2213
|
-
const defaultSize$
|
|
2181
|
+
const defaultSize$2 = '36';
|
|
2214
2182
|
class PickerItem extends React__namespace.Component {
|
|
2215
2183
|
constructor() {
|
|
2216
2184
|
super(...arguments);
|
|
@@ -2221,24 +2189,130 @@ class PickerItem extends React__namespace.Component {
|
|
|
2221
2189
|
render() {
|
|
2222
2190
|
var _a;
|
|
2223
2191
|
const { size, avatarUrl, isLoading, isDisabled, icon, highlightSearchMatches, cx, } = this.props;
|
|
2224
|
-
const itemSize = size
|
|
2192
|
+
const itemSize = size || defaultSize$2;
|
|
2225
2193
|
const isMultiline = !!(this.props.title && this.props.subtitle);
|
|
2226
2194
|
const { search } = (_a = this.props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2227
2195
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(this.props.title, search) : this.props.title;
|
|
2228
2196
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(this.props.subtitle, search) : this.props.subtitle;
|
|
2229
|
-
return (React__namespace.createElement(FlexCell, { width: "auto", cx: [css$
|
|
2230
|
-
React__namespace.createElement(FlexRow, { size: itemSize, cx: isMultiline && [css$
|
|
2197
|
+
return (React__namespace.createElement(FlexCell, { width: "auto", cx: [css$F.root, 'uui-typography', cx] },
|
|
2198
|
+
React__namespace.createElement(FlexRow, { size: itemSize, cx: isMultiline && [css$F.multiline, css$F[`vertical-padding-${itemSize}`]], spacing: "12" },
|
|
2231
2199
|
avatarUrl && React__namespace.createElement(uuiComponents.Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2232
2200
|
icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: icon }),
|
|
2233
2201
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
2234
|
-
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$
|
|
2235
|
-
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$
|
|
2202
|
+
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$F.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : title)),
|
|
2203
|
+
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$F.text }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
2236
2204
|
}
|
|
2237
2205
|
}
|
|
2238
2206
|
PickerItem.defaultProps = {
|
|
2239
2207
|
highlightSearchMatches: true,
|
|
2240
2208
|
};
|
|
2241
2209
|
|
|
2210
|
+
function PickerModal(props) {
|
|
2211
|
+
const { view, selection, dataSourceStateLens, showSelectedLens, dataSourceState, getDataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = uuiComponents.usePickerModal(props);
|
|
2212
|
+
const getSubtitle = ({ path }, { search }) => {
|
|
2213
|
+
if (!search)
|
|
2214
|
+
return;
|
|
2215
|
+
return path
|
|
2216
|
+
.map(({ value }) => getName(value))
|
|
2217
|
+
.filter(Boolean)
|
|
2218
|
+
.join(' / ');
|
|
2219
|
+
};
|
|
2220
|
+
const renderItem = (item, rowProps, dsState) => {
|
|
2221
|
+
const { flattenSearchResults } = view.getConfig();
|
|
2222
|
+
return (React__namespace.default.createElement(PickerItem, Object.assign({ title: getName(item), size: "36", dataSourceState: dsState }, (flattenSearchResults ? { subtitle: getSubtitle(rowProps, dataSourceState) } : {}), rowProps)));
|
|
2223
|
+
};
|
|
2224
|
+
const renderRow = (rowProps) => {
|
|
2225
|
+
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React__namespace.default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, padding: "24", size: "36", renderItem: (item, itemProps) => renderItem(item, itemProps, dataSourceState) })));
|
|
2226
|
+
};
|
|
2227
|
+
const renderFooter = () => {
|
|
2228
|
+
const hasSelection = view.getSelectedRowsCount() > 0;
|
|
2229
|
+
const rowsCount = view.getListProps().rowsCount;
|
|
2230
|
+
const isEmptyRowsAndHasNoSelection = (rowsCount === 0 && !hasSelection);
|
|
2231
|
+
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2232
|
+
view.selectAll && (React__namespace.default.createElement(LinkButton, { caption: hasSelection ? i18n.pickerModal.clearAllButton : i18n.pickerModal.selectAllButton, onClick: hasSelection ? () => clearSelection() : () => view.selectAll.onValueChange(true), isDisabled: isEmptyRowsAndHasNoSelection })),
|
|
2233
|
+
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2234
|
+
React__namespace.default.createElement(Button, { fill: "outline", color: "secondary", caption: i18n.pickerModal.cancelButton, onClick: () => props.abort() }),
|
|
2235
|
+
React__namespace.default.createElement(Button, { color: "accent", caption: i18n.pickerModal.selectButton, onClick: () => props.success(selection) })));
|
|
2236
|
+
};
|
|
2237
|
+
const renderNotFound = () => {
|
|
2238
|
+
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__namespace.default.createElement("div", { className: css$G.noFoundModalContainer },
|
|
2239
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { cx: css$G.noFoundModalContainerIcon, icon: ForwardRef$u }),
|
|
2240
|
+
React__namespace.default.createElement(Text, { cx: css$G.noFoundModalContainerText, fontWeight: "600", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
2241
|
+
React__namespace.default.createElement(Text, { cx: css$G.noFoundModalContainerText, fontSize: "12", lineHeight: "18", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
2242
|
+
};
|
|
2243
|
+
const dataRows = getRows();
|
|
2244
|
+
const rows = dataRows.map((row) => renderRow(row));
|
|
2245
|
+
return (React__namespace.default.createElement(ModalBlocker, Object.assign({}, props),
|
|
2246
|
+
React__namespace.default.createElement(ModalWindow, { width: 600, height: 700 },
|
|
2247
|
+
React__namespace.default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
2248
|
+
React__namespace.default.createElement(FlexCell, { cx: css$G.subHeaderWrapper },
|
|
2249
|
+
React__namespace.default.createElement(FlexRow, { vPadding: "24" },
|
|
2250
|
+
React__namespace.default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => uuiComponents.handleDataSourceKeyboard({
|
|
2251
|
+
value: getDataSourceState(),
|
|
2252
|
+
onValueChange: handleDataSourceValueChange,
|
|
2253
|
+
listView: view,
|
|
2254
|
+
rows: dataRows,
|
|
2255
|
+
searchPosition: 'body',
|
|
2256
|
+
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder }))),
|
|
2257
|
+
!isSingleSelect() && (React__namespace.default.createElement(Switch, Object.assign({ cx: css$G.switch, size: "18" }, showSelectedLens.toProps(), { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
2258
|
+
props.renderFilter && React__namespace.default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
2259
|
+
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" })),
|
|
2260
|
+
React__namespace.default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
const MAX_ITEMS = 100;
|
|
2264
|
+
const getMaxItems = (maxItems) => maxItems || maxItems === 0 ? maxItems : MAX_ITEMS;
|
|
2265
|
+
|
|
2266
|
+
var css$E = {"uui-typography":"rnyfMq","hero-header":"Y7q9WB","promo-header":"OWyHdX","uui-critical":"u571OY","uui-info":"cDjRw-","uui-success":"qZ8Nyd","uui-warning":"OO9mb7","uui-highlight":"EKnIWq","uui-typography-size-12":"CTuLeT","uui-typography-size-14":"_6D-9dq","uui-typography-size-16":"WSIScG","root":"KCoBpS","mode-form":"zTtF8z","mode-cell":"egxNS9","mode-inline":"Kp8R36","size-24":"JyTGw6","size-30":"_1CaXm0","size-36":"UPirSQ","size-42":"ksodYN","size-48":"dMhsfc","uuiTypography":"rnyfMq","heroHeader":"Y7q9WB","promoHeader":"OWyHdX","uuiCritical":"u571OY","uuiInfo":"cDjRw-","uuiSuccess":"qZ8Nyd","uuiWarning":"OO9mb7","uuiHighlight":"EKnIWq","uuiTypographySize12":"CTuLeT","uuiTypographySize14":"_6D-9dq","uuiTypographySize16":"WSIScG","modeForm":"zTtF8z","modeCell":"egxNS9","modeInline":"Kp8R36","size24":"JyTGw6","size30":"_1CaXm0","size36":"UPirSQ","size42":"ksodYN","size48":"dMhsfc"};
|
|
2267
|
+
|
|
2268
|
+
const defaultSize$1 = '36';
|
|
2269
|
+
const defaultMode$1 = EditMode.FORM;
|
|
2270
|
+
function applyPickerTogglerMods(mods) {
|
|
2271
|
+
return [
|
|
2272
|
+
css$E.root,
|
|
2273
|
+
css$E['size-' + (mods.size || defaultSize$1)],
|
|
2274
|
+
css$E['mode-' + (mods.mode || defaultMode$1)],
|
|
2275
|
+
];
|
|
2276
|
+
}
|
|
2277
|
+
function PickerTogglerComponent(props, ref) {
|
|
2278
|
+
const getPickerTogglerButtonSize = (propSize) => {
|
|
2279
|
+
switch (propSize) {
|
|
2280
|
+
case '48':
|
|
2281
|
+
return '42';
|
|
2282
|
+
case '42':
|
|
2283
|
+
return '36';
|
|
2284
|
+
case '36':
|
|
2285
|
+
return '30';
|
|
2286
|
+
case '30':
|
|
2287
|
+
return '24';
|
|
2288
|
+
case '24':
|
|
2289
|
+
return '18';
|
|
2290
|
+
}
|
|
2291
|
+
};
|
|
2292
|
+
const getCaption = (row) => {
|
|
2293
|
+
const maxItems = getMaxItems(props.maxItems);
|
|
2294
|
+
if (row.isLoading) {
|
|
2295
|
+
return React__namespace.createElement(TextPlaceholder, null);
|
|
2296
|
+
}
|
|
2297
|
+
else if (!props.getName || props.selectedRowsCount > maxItems) {
|
|
2298
|
+
return row.value;
|
|
2299
|
+
}
|
|
2300
|
+
else {
|
|
2301
|
+
return props.getName(row.value);
|
|
2302
|
+
}
|
|
2303
|
+
};
|
|
2304
|
+
const renderItem = (row) => {
|
|
2305
|
+
var _a;
|
|
2306
|
+
return (React__namespace.createElement(Tag, { key: row.rowKey, caption: getCaption(row), tabIndex: -1, size: props.size ? getPickerTogglerButtonSize(props.size) : '30', onClear: (e) => {
|
|
2307
|
+
var _a;
|
|
2308
|
+
(_a = row.onCheck) === null || _a === void 0 ? void 0 : _a.call(row, row);
|
|
2309
|
+
e.stopPropagation();
|
|
2310
|
+
}, isDisabled: props.isDisabled || props.isReadonly || ((_a = row === null || row === void 0 ? void 0 : row.checkbox) === null || _a === void 0 ? void 0 : _a.isDisabled) }));
|
|
2311
|
+
};
|
|
2312
|
+
return (React__namespace.createElement(uuiComponents.PickerToggler, Object.assign({}, props, { ref: ref, cx: [applyPickerTogglerMods(props), props.cx], renderItem: !!props.renderItem ? props.renderItem : renderItem, getName: (item) => (props.getName ? props.getName(item) : item), cancelIcon: systemIcons[props.size || defaultSize$1].clear, dropdownIcon: systemIcons[props.size || defaultSize$1].foldingArrow })));
|
|
2313
|
+
}
|
|
2314
|
+
const PickerToggler = React__namespace.forwardRef(PickerTogglerComponent);
|
|
2315
|
+
|
|
2242
2316
|
const pickerHeight$1 = 300;
|
|
2243
2317
|
const pickerWidth = 360;
|
|
2244
2318
|
function PickerInputComponent(_a, ref) {
|
|
@@ -2252,11 +2326,11 @@ function PickerInputComponent(_a, ref) {
|
|
|
2252
2326
|
})
|
|
2253
2327
|
.catch(() => { });
|
|
2254
2328
|
};
|
|
2255
|
-
const { context, popperModifiers, getName, getPlaceholder, handleSelectionValueChange, getTogglerProps, getRows, handleTogglerSearchChange, toggleBodyOpening, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, shouldShowBody, getSearchPosition, handlePickerInputKeyboard, } = uuiComponents.usePickerInput(Object.assign(Object.assign({}, props), { toggleModalOpening }));
|
|
2329
|
+
const { view, context, popperModifiers, getName, getPlaceholder, handleSelectionValueChange, getTogglerProps, getRows, handleTogglerSearchChange, toggleBodyOpening, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, shouldShowBody, getSearchPosition, handlePickerInputKeyboard, } = uuiComponents.usePickerInput(Object.assign(Object.assign({}, props), { toggleModalOpening }));
|
|
2256
2330
|
const getTogglerMods = () => {
|
|
2257
2331
|
return {
|
|
2258
2332
|
size: props.size,
|
|
2259
|
-
mode: props.mode ? props.mode :
|
|
2333
|
+
mode: props.mode ? props.mode : EditMode.FORM,
|
|
2260
2334
|
};
|
|
2261
2335
|
};
|
|
2262
2336
|
const renderTarget = (targetProps) => {
|
|
@@ -2273,11 +2347,20 @@ function PickerInputComponent(_a, ref) {
|
|
|
2273
2347
|
}
|
|
2274
2348
|
return props.editMode === 'modal' ? '36' : props.size;
|
|
2275
2349
|
};
|
|
2350
|
+
const getSubtitle = ({ path }, { search }) => {
|
|
2351
|
+
if (!search)
|
|
2352
|
+
return;
|
|
2353
|
+
return path
|
|
2354
|
+
.map(({ value }) => getName(value))
|
|
2355
|
+
.filter(Boolean)
|
|
2356
|
+
.join(' / ');
|
|
2357
|
+
};
|
|
2276
2358
|
const renderItem = (item, rowProps, dsState) => {
|
|
2277
|
-
|
|
2359
|
+
const { flattenSearchResults } = view.getConfig();
|
|
2360
|
+
return (React__namespace.default.createElement(PickerItem, Object.assign({ title: getName(item), size: getRowSize(), dataSourceState: dsState, highlightSearchMatches: highlightSearchMatches }, (flattenSearchResults ? { subtitle: getSubtitle(rowProps, dataSourceState) } : {}), rowProps)));
|
|
2278
2361
|
};
|
|
2279
2362
|
const renderRow = (rowProps, dsState) => {
|
|
2280
|
-
return props.renderRow ? (props.renderRow(rowProps, dsState)) : (React__namespace.default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey,
|
|
2363
|
+
return props.renderRow ? (props.renderRow(rowProps, dsState)) : (React__namespace.default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, size: getRowSize(), padding: props.editMode === 'modal' ? '24' : '12', renderItem: (item, itemProps) => renderItem(item, itemProps, dsState) })));
|
|
2281
2364
|
};
|
|
2282
2365
|
const renderBody = (bodyProps, rows) => {
|
|
2283
2366
|
const renderedDataRows = rows.map((row) => renderRow(row, dataSourceState));
|
|
@@ -2300,7 +2383,7 @@ function PickerInputComponent(_a, ref) {
|
|
|
2300
2383
|
}
|
|
2301
2384
|
const PickerInput = React__namespace.default.forwardRef(PickerInputComponent);
|
|
2302
2385
|
|
|
2303
|
-
var css$
|
|
2386
|
+
var css$D = {"row":"igcBWl"};
|
|
2304
2387
|
|
|
2305
2388
|
function PickerListItem(props) {
|
|
2306
2389
|
var _a;
|
|
@@ -2318,7 +2401,7 @@ function PickerListItem(props) {
|
|
|
2318
2401
|
else {
|
|
2319
2402
|
component = (React__namespace.default.createElement(RadioInput, { label: label, value: props.isSelected, isDisabled: props.isLoading || !props.isSelectable || props.isDisabled, onValueChange: () => props.onSelect(props) }));
|
|
2320
2403
|
}
|
|
2321
|
-
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$
|
|
2404
|
+
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$D.row }), component));
|
|
2322
2405
|
}
|
|
2323
2406
|
|
|
2324
2407
|
function PickerList(props) {
|
|
@@ -2359,7 +2442,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
2359
2442
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
2360
2443
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
2361
2444
|
|
|
2362
|
-
var css$
|
|
2445
|
+
var css$C = {"uui-typography":"M8mVEi","hero-header":"xeNbYZ","promo-header":"uaphsN","uui-critical":"bs7i0K","uui-info":"sYaSdF","uui-success":"VBEFvu","uui-warning":"LUuhxT","uui-highlight":"utwV1n","uui-typography-size-12":"bows1-","uui-typography-size-14":"ubBwuU","uui-typography-size-16":"bJCZJ7","root":"p0Kjta","title-wrapper":"iPyOyL","title":"lO0bb8","text-wrapper":"HEjNdv","selection":"Jopo7a","postfix":"Qjcbyq","selected":"LqZUIC","uuiTypography":"M8mVEi","heroHeader":"xeNbYZ","promoHeader":"uaphsN","uuiCritical":"bs7i0K","uuiInfo":"sYaSdF","uuiSuccess":"VBEFvu","uuiWarning":"LUuhxT","uuiHighlight":"utwV1n","uuiTypographySize12":"bows1-","uuiTypographySize14":"ubBwuU","uuiTypographySize16":"bJCZJ7","titleWrapper":"iPyOyL","textWrapper":"HEjNdv"};
|
|
2363
2446
|
|
|
2364
2447
|
const defaultSize = '36';
|
|
2365
2448
|
const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
@@ -2384,19 +2467,19 @@ const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
|
2384
2467
|
};
|
|
2385
2468
|
const getTitle = props.predicateName ? `${props.title} ${props.predicateName}` : `${props.title}${props.selection ? ':' : ''}`;
|
|
2386
2469
|
const getSelectionText = () => props.selection.map((i, index) => (React__namespace.createElement(React__namespace.Fragment, { key: `${i}${index}` },
|
|
2387
|
-
React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$
|
|
2470
|
+
React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$C.selection }, i),
|
|
2388
2471
|
(props.postfix || index !== props.selection.length - 1) && React__namespace.createElement("span", null, ",\u00A0"))));
|
|
2389
2472
|
return (React__namespace.createElement(uuiComponents.FlexRow, Object.assign({}, props, { rawProps: {
|
|
2390
2473
|
style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` },
|
|
2391
2474
|
role: 'button',
|
|
2392
2475
|
tabIndex: props.isDisabled ? -1 : 0,
|
|
2393
2476
|
onKeyDown: onKeyDownHandler,
|
|
2394
|
-
}, cx: cx__default.default(UUI_FILTERS_PANEL_ITEM_TOGGLER, css$
|
|
2395
|
-
React__namespace.createElement(uuiComponents.FlexRow, { cx: css$
|
|
2396
|
-
React__namespace.createElement(Text, { size: props.size, cx: css$
|
|
2397
|
-
props.selection && (React__namespace.createElement("div", { className: css$
|
|
2477
|
+
}, cx: cx__default.default(UUI_FILTERS_PANEL_ITEM_TOGGLER, css$C.root, uuiCore.uuiElement.inputBox, uuiCore.uuiMarkers.clickable, props.isOpen && uuiCore.uuiMod.opened, `size-${props.size || defaultSize}`, props.cx), onClick: togglerPickerOpened, ref: ref }),
|
|
2478
|
+
React__namespace.createElement(uuiComponents.FlexRow, { cx: css$C.titleWrapper },
|
|
2479
|
+
React__namespace.createElement(Text, { size: props.size, cx: css$C.title }, getTitle),
|
|
2480
|
+
props.selection && (React__namespace.createElement("div", { className: css$C.textWrapper },
|
|
2398
2481
|
getSelectionText(),
|
|
2399
|
-
props.postfix && (React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$
|
|
2482
|
+
props.postfix && (React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$C.postfix }, props.postfix))))),
|
|
2400
2483
|
!props.isDisabled && React__namespace.createElement(uuiComponents.IconContainer, { icon: systemIcons[props.size || defaultSize].foldingArrow, flipY: props.isOpen, cx: "uui-icon-dropdown" })));
|
|
2401
2484
|
});
|
|
2402
2485
|
|
|
@@ -2416,14 +2499,14 @@ function FilterPickerBody(props) {
|
|
|
2416
2499
|
if (rowProps.isSelectable && isSingleSelect() && props.editMode !== 'modal') {
|
|
2417
2500
|
rowProps.onSelect = onSelect;
|
|
2418
2501
|
}
|
|
2419
|
-
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React__namespace.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey,
|
|
2502
|
+
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React__namespace.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, size: "36", padding: "12", renderItem: renderItem })));
|
|
2420
2503
|
};
|
|
2421
2504
|
const renderFooter = () => {
|
|
2422
2505
|
return React__namespace.createElement(DataPickerFooter, Object.assign({}, getFooterProps(), { size: "36" }));
|
|
2423
2506
|
};
|
|
2424
2507
|
const renderBody = (bodyProps, rows) => {
|
|
2425
2508
|
const renderedDataRows = rows.map((props) => renderRow(props));
|
|
2426
|
-
const maxHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : props.
|
|
2509
|
+
const maxHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : props.maxBodyHeight || pickerHeight;
|
|
2427
2510
|
const maxWidth = uuiCore.isMobile() ? undefined : 360;
|
|
2428
2511
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2429
2512
|
React__namespace.createElement(DataPickerBody, Object.assign({}, bodyProps, { selectionMode: props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, maxWidth: maxWidth, searchSize: "36", editMode: "dropdown" })),
|
|
@@ -2436,7 +2519,6 @@ function FilterPickerBody(props) {
|
|
|
2436
2519
|
class FilterDatePickerBody extends uuiComponents.BaseDatePicker {
|
|
2437
2520
|
constructor() {
|
|
2438
2521
|
super(...arguments);
|
|
2439
|
-
this.state = Object.assign(Object.assign({}, super.getValue()), { isOpen: false, inputValue: null });
|
|
2440
2522
|
this.renderInput = () => {
|
|
2441
2523
|
return null;
|
|
2442
2524
|
};
|
|
@@ -2465,7 +2547,7 @@ class FilterDatePickerBody extends uuiComponents.BaseDatePicker {
|
|
|
2465
2547
|
}
|
|
2466
2548
|
}
|
|
2467
2549
|
|
|
2468
|
-
var css$
|
|
2550
|
+
var css$B = {"uui-typography":"_2lwDgc","hero-header":"_8BVo-C","promo-header":"_6wNPYK","uui-critical":"xjNSVL","uui-info":"mKh1Kg","uui-success":"_60B2v-","uui-warning":"NMVKil","uui-highlight":"z4pLMb","uui-typography-size-12":"PuerFT","uui-typography-size-14":"N3HORL","uui-typography-size-16":"u6qg78","date-input":"r7imjF","size-24":"NAFOFJ","size-30":"G-iozs","size-36":"_9muMIh","size-42":"V5z-7S","size-48":"Rh2YlB","date-input-group":"oEFGny","separator":"SnYWdz","mode-form":"L-SoDe","mode-cell":"CD-brp","uuiTypography":"_2lwDgc","heroHeader":"_8BVo-C","promoHeader":"_6wNPYK","uuiCritical":"xjNSVL","uuiInfo":"mKh1Kg","uuiSuccess":"_60B2v-","uuiWarning":"NMVKil","uuiHighlight":"z4pLMb","uuiTypographySize12":"PuerFT","uuiTypographySize14":"N3HORL","uuiTypographySize16":"u6qg78","dateInput":"r7imjF","size24":"NAFOFJ","size30":"G-iozs","size36":"_9muMIh","size42":"V5z-7S","size48":"Rh2YlB","dateInputGroup":"oEFGny","modeForm":"L-SoDe","modeCell":"CD-brp"};
|
|
2469
2551
|
|
|
2470
2552
|
class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
2471
2553
|
constructor() {
|
|
@@ -2485,10 +2567,10 @@ class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
|
2485
2567
|
React__namespace.createElement(RangeDatePickerBody, { value: this.getValue(), onValueChange: this.onRangeChange, filter: this.props.filter, focusPart: this.state.inFocus, changeIsOpen: this.changeIsOpen, presets: this.props.presets })),
|
|
2486
2568
|
React__namespace.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2487
2569
|
React__namespace.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2488
|
-
React__namespace.createElement("div", { className: cx__default.default(css$
|
|
2489
|
-
React__namespace.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx__default.default(css$
|
|
2490
|
-
React__namespace.createElement("div", { className: css$
|
|
2491
|
-
React__namespace.createElement(TextInput, { cx: cx__default.default(css$
|
|
2570
|
+
React__namespace.createElement("div", { className: cx__default.default(css$B.dateInputGroup, this.state.inFocus && uuiCore.uuiMod.focus) },
|
|
2571
|
+
React__namespace.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx__default.default(css$B.dateInput, css$B['size-30'], this.state.inFocus === 'from' && uuiCore.uuiMod.focus), size: "30", placeholder: i18n.rangeDatePicker.pickerPlaceholderFrom, value: this.state.inputValue.from, onValueChange: this.getChangeHandler('from'), onFocus: (event) => this.handleFocus(event, 'from'), onBlur: (event) => this.handleBlur(event, 'from') }),
|
|
2572
|
+
React__namespace.createElement("div", { className: css$B.separator }),
|
|
2573
|
+
React__namespace.createElement(TextInput, { cx: cx__default.default(css$B.dateInput, css$B['size-30'], this.state.inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: i18n.rangeDatePicker.pickerPlaceholderTo, size: "30", value: this.state.inputValue.to, onCancel: this.state.inputValue.from && this.state.inputValue.to && this.handleCancel, onValueChange: this.getChangeHandler('to'), onFocus: (event) => this.handleFocus(event, 'to'), onBlur: (event) => this.handleBlur(event, 'to') })),
|
|
2492
2574
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2493
2575
|
React__namespace.createElement(LinkButton, { isDisabled: !this.state.inputValue.from && !this.state.inputValue.to, caption: i18n.pickerModal.clearAllButton, onClick: this.handleCancel })))));
|
|
2494
2576
|
}
|
|
@@ -2497,11 +2579,16 @@ class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
|
2497
2579
|
}
|
|
2498
2580
|
}
|
|
2499
2581
|
|
|
2500
|
-
var css$
|
|
2582
|
+
var css$A = {"container":"T9DU35"};
|
|
2501
2583
|
|
|
2502
2584
|
function FilterNumericBody(props) {
|
|
2503
2585
|
var _a, _b;
|
|
2504
2586
|
const isInRangePredicate = (props === null || props === void 0 ? void 0 : props.selectedPredicate) === 'inRange' || (props === null || props === void 0 ? void 0 : props.selectedPredicate) === 'notInRange';
|
|
2587
|
+
const isWrongRange = (from, to) => {
|
|
2588
|
+
if (!to && to !== 0)
|
|
2589
|
+
return false;
|
|
2590
|
+
return from > to;
|
|
2591
|
+
};
|
|
2505
2592
|
const rangeValueHandler = (type) => (val) => {
|
|
2506
2593
|
var _a, _b;
|
|
2507
2594
|
const value = props.value;
|
|
@@ -2541,15 +2628,15 @@ function FilterNumericBody(props) {
|
|
|
2541
2628
|
if (isInRangePredicate) {
|
|
2542
2629
|
const value = props.value;
|
|
2543
2630
|
return (React__namespace.default.createElement("div", null,
|
|
2544
|
-
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", spacing: "12", borderBottom: true, cx: css$
|
|
2631
|
+
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", spacing: "12", borderBottom: true, cx: css$A.container },
|
|
2545
2632
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
2546
2633
|
React__namespace.default.createElement(NumericInput, { value: (_a = value === null || value === void 0 ? void 0 : value.from) !== null && _a !== void 0 ? _a : null, onValueChange: rangeValueHandler('from'), size: "36", placeholder: "Min", formatOptions: { maximumFractionDigits: 2 } })),
|
|
2547
2634
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
2548
|
-
React__namespace.default.createElement(NumericInput, { value: (_b = value === null || value === void 0 ? void 0 : value.to) !== null && _b !== void 0 ? _b : null, onValueChange: rangeValueHandler('to'), size: "36", placeholder: "Max", formatOptions: { maximumFractionDigits: 2 } }))),
|
|
2635
|
+
React__namespace.default.createElement(NumericInput, { value: (_b = value === null || value === void 0 ? void 0 : value.to) !== null && _b !== void 0 ? _b : null, onValueChange: rangeValueHandler('to'), size: "36", placeholder: "Max", formatOptions: { maximumFractionDigits: 2 }, isInvalid: isWrongRange(value === null || value === void 0 ? void 0 : value.from, value === null || value === void 0 ? void 0 : value.to) }))),
|
|
2549
2636
|
renderFooter()));
|
|
2550
2637
|
}
|
|
2551
2638
|
return (React__namespace.default.createElement("div", null,
|
|
2552
|
-
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", borderBottom: true, cx: css$
|
|
2639
|
+
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", borderBottom: true, cx: css$A.container },
|
|
2553
2640
|
React__namespace.default.createElement(FlexCell, { width: 130 },
|
|
2554
2641
|
React__namespace.default.createElement(NumericInput, { value: typeof props.value === 'number' ? props.value : null, onValueChange: props.onValueChange, size: "36", placeholder: "Enter a number", formatOptions: { maximumFractionDigits: 2 } }))),
|
|
2555
2642
|
renderFooter()));
|
|
@@ -2589,7 +2676,7 @@ var SvgActionDeleteforever12 = function SvgActionDeleteforever12(props, ref) {
|
|
|
2589
2676
|
};
|
|
2590
2677
|
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgActionDeleteforever12);
|
|
2591
2678
|
|
|
2592
|
-
var css$
|
|
2679
|
+
var css$z = {"uui-typography":"UEQBuU","hero-header":"_1j5wHt","promo-header":"yNUbr2","uui-critical":"pagUtC","uui-info":"KzL6Ip","uui-success":"pBa-ua","uui-warning":"_8rrQRb","uui-highlight":"B1pemW","uui-typography-size-12":"AghrTi","uui-typography-size-14":"mjM4rh","uui-typography-size-16":"ydvrpY","header":"JKJr-4","removeButton":"c04OPd","with-search":"LyubSz","uuiTypography":"UEQBuU","heroHeader":"_1j5wHt","promoHeader":"yNUbr2","uuiCritical":"pagUtC","uuiInfo":"KzL6Ip","uuiSuccess":"pBa-ua","uuiWarning":"_8rrQRb","uuiHighlight":"B1pemW","uuiTypographySize12":"AghrTi","uuiTypographySize14":"mjM4rh","uuiTypographySize16":"ydvrpY","withSearch":"LyubSz"};
|
|
2593
2680
|
|
|
2594
2681
|
function FiltersToolbarItemImpl(props) {
|
|
2595
2682
|
const { maxCount = 2 } = props;
|
|
@@ -2665,9 +2752,9 @@ function FiltersToolbarItemImpl(props) {
|
|
|
2665
2752
|
};
|
|
2666
2753
|
const renderHeader = (hideTitle) => {
|
|
2667
2754
|
var _a;
|
|
2668
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
2755
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$z.header, isPickersType && ((_a = props.showSearch) !== null && _a !== void 0 ? _a : css$z.withSearch)) },
|
|
2669
2756
|
props.predicates ? (React__namespace.default.createElement(MultiSwitch, { items: props.predicates.map((i) => ({ id: i.predicate, caption: i.name })), value: predicate, onValueChange: changePredicate, size: "24" })) : (!hideTitle && (React__namespace.default.createElement(Text, { color: "secondary", size: "24", fontSize: "14" }, props.title))),
|
|
2670
|
-
!(props === null || props === void 0 ? void 0 : props.isAlwaysVisible) && (React__namespace.default.createElement(LinkButton, { cx: css$
|
|
2757
|
+
!(props === null || props === void 0 ? void 0 : props.isAlwaysVisible) && (React__namespace.default.createElement(LinkButton, { cx: css$z.removeButton, caption: i18n.filterToolbar.datePicker.removeCaption, onClick: removeOnclickHandler, size: "24", icon: ForwardRef$t }))));
|
|
2671
2758
|
};
|
|
2672
2759
|
const renderBody = (dropdownProps) => {
|
|
2673
2760
|
const hideHeaderTitle = isPickersType && isMobileScreen;
|
|
@@ -2890,9 +2977,9 @@ function FiltersToolbarImpl(props) {
|
|
|
2890
2977
|
}
|
|
2891
2978
|
const FiltersPanel = React__namespace.default.memo(FiltersToolbarImpl);
|
|
2892
2979
|
|
|
2893
|
-
var css$
|
|
2980
|
+
var css$y = {"divider":"Z1EP4U","dropdownDeleteIcon":"M47n0M","presetsWrapper":"NMQBav","addPresetContainer":"_3lJYYr","dropContainer":"qBKiM8"};
|
|
2894
2981
|
|
|
2895
|
-
var css$
|
|
2982
|
+
var css$x = {"preset-dropdown-panel":"_6G8WBh","delete-row":"_45Cg-t","delete-button":"Z3dZnN","targetOpen":"mW5tkT","presetDropdownPanel":"_6G8WBh","deleteRow":"_45Cg-t","deleteButton":"Z3dZnN"};
|
|
2896
2983
|
|
|
2897
2984
|
var _path$q;
|
|
2898
2985
|
function _extends$r() { _extends$r = 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$r.apply(this, arguments); }
|
|
@@ -3057,7 +3144,7 @@ function PresetActionsDropdown(props) {
|
|
|
3057
3144
|
]);
|
|
3058
3145
|
const renderBody = () => {
|
|
3059
3146
|
const isReadonlyPreset = props.preset.isReadonly;
|
|
3060
|
-
return (React__namespace.default.createElement(Panel, { background: "surface-main", shadow: true, cx: css$
|
|
3147
|
+
return (React__namespace.default.createElement(Panel, { background: "surface-main", shadow: true, cx: css$x.presetDropdownPanel },
|
|
3061
3148
|
props.activePresetId === props.preset.id && props.hasPresetChanged(props.preset) && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3062
3149
|
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-in-current` },
|
|
3063
3150
|
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$q, caption: "Save in current", onClick: saveInCurrentHandler }))),
|
|
@@ -3071,16 +3158,16 @@ function PresetActionsDropdown(props) {
|
|
|
3071
3158
|
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$n, caption: "Duplicate", onClick: duplicateHandler })),
|
|
3072
3159
|
React__namespace.default.createElement(FlexRow, { borderBottom: true, key: `${props.preset.id}-copyLink` },
|
|
3073
3160
|
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$l, caption: "Copy Link", onClick: copyUrlToClipboard })),
|
|
3074
|
-
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-delete`, cx: css$
|
|
3075
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$k, caption: "Delete", cx: css$
|
|
3161
|
+
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-delete`, cx: css$x.deleteRow },
|
|
3162
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$k, caption: "Delete", cx: css$x.deleteButton, onClick: deleteHandler })))));
|
|
3076
3163
|
};
|
|
3077
3164
|
const renderTarget = React.useCallback((dropdownProps) => {
|
|
3078
|
-
return (React__namespace.default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$
|
|
3165
|
+
return (React__namespace.default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$x.targetOpen, color: props.preset.id === props.activePresetId ? 'info' : 'neutral' }, dropdownProps, { icon: ForwardRef$r })));
|
|
3079
3166
|
}, []);
|
|
3080
3167
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
3081
3168
|
}
|
|
3082
3169
|
|
|
3083
|
-
var css$
|
|
3170
|
+
var css$w = {"preset-input-cell":"btqiSH","preset-input":"eDBfhW","presetInputCell":"btqiSH","presetInput":"eDBfhW"};
|
|
3084
3171
|
|
|
3085
3172
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
3086
3173
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -3090,15 +3177,18 @@ const UUI_PRESETS_PANEL_PRESET = 'uui-presets-panel-preset';
|
|
|
3090
3177
|
function PresetInput(props) {
|
|
3091
3178
|
var _a;
|
|
3092
3179
|
const [presetCaption, setPresetCaption] = React.useState(((_a = props.preset) === null || _a === void 0 ? void 0 : _a.name) || '');
|
|
3180
|
+
const [readonly, setReadonly] = React.useState(false);
|
|
3093
3181
|
const cancelActionHandler = React.useCallback(() => {
|
|
3094
3182
|
setPresetCaption('');
|
|
3095
3183
|
props.onCancel();
|
|
3096
3184
|
}, [props.onCancel]);
|
|
3097
3185
|
const acceptActionHandler = React.useCallback(() => __awaiter(this, void 0, void 0, function* () {
|
|
3186
|
+
setReadonly(() => true);
|
|
3098
3187
|
if (presetCaption) {
|
|
3099
3188
|
yield props.onSuccess(presetCaption);
|
|
3100
3189
|
}
|
|
3101
3190
|
props.onCancel();
|
|
3191
|
+
setReadonly(() => false);
|
|
3102
3192
|
}), [presetCaption]);
|
|
3103
3193
|
const newPresetOnBlurHandler = React.useCallback(() => {
|
|
3104
3194
|
if (presetCaption.length) {
|
|
@@ -3106,11 +3196,11 @@ function PresetInput(props) {
|
|
|
3106
3196
|
}
|
|
3107
3197
|
props.onCancel();
|
|
3108
3198
|
}, [presetCaption.length, props.onCancel]);
|
|
3109
|
-
return (React__namespace.default.createElement(FlexCell, { cx: [css$
|
|
3110
|
-
React__namespace.default.createElement(TextInput, { cx: css$
|
|
3199
|
+
return (React__namespace.default.createElement(FlexCell, { cx: [css$w.presetInputCell, UUI_PRESETS_PANEL_INPUT], minWidth: 180 },
|
|
3200
|
+
React__namespace.default.createElement(TextInput, { cx: css$w.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
3111
3201
|
}
|
|
3112
3202
|
|
|
3113
|
-
var css$
|
|
3203
|
+
var css$v = {"preset":"vjDQ-S","activePreset":"pIaB6m"};
|
|
3114
3204
|
|
|
3115
3205
|
function Preset(props) {
|
|
3116
3206
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -3128,7 +3218,7 @@ function Preset(props) {
|
|
|
3128
3218
|
return props.updatePreset(newPreset);
|
|
3129
3219
|
}, [props.preset]);
|
|
3130
3220
|
const isPresetActive = props.activePresetId === props.preset.id;
|
|
3131
|
-
return (React__namespace.default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__namespace.default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__namespace.default.createElement(TabButton, { caption: props.preset.name, onClick: !isPresetActive && choosePresetHandler, cx: [css$
|
|
3221
|
+
return (React__namespace.default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__namespace.default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__namespace.default.createElement(TabButton, { caption: props.preset.name, onClick: !isPresetActive && choosePresetHandler, cx: [css$v.preset, isPresetActive && css$v.activePreset, UUI_PRESETS_PANEL_PRESET], size: "60", withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: () => React__namespace.default.createElement(PresetActionsDropdown, Object.assign({ renamePreset: setPresetForRename }, props)), iconPosition: "right", isLinkActive: isPresetActive }))));
|
|
3132
3222
|
}
|
|
3133
3223
|
|
|
3134
3224
|
function PresetsPanel(props) {
|
|
@@ -3144,16 +3234,16 @@ function PresetsPanel(props) {
|
|
|
3144
3234
|
return React__namespace.default.createElement(Preset, Object.assign({ key: preset.id, preset: preset, addPreset: setAddingPreset }, presetApi));
|
|
3145
3235
|
};
|
|
3146
3236
|
const renderAddPresetButton = React.useCallback(() => {
|
|
3147
|
-
return (React__namespace.default.createElement("div", { key: "addingPresetBlock", className: css$
|
|
3237
|
+
return (React__namespace.default.createElement("div", { key: "addingPresetBlock", className: css$y.addPresetContainer }, !isAddingPreset ? (React__namespace.default.createElement(Button, { cx: UUI_PRESETS_PANEL_ADD_BUTTON, size: "36", onClick: setAddingPreset, caption: i18n.presetPanel.addCaption, icon: ForwardRef$s, iconPosition: "left", fill: "ghost", color: "primary" })) : (React__namespace.default.createElement(PresetInput, { onCancel: cancelAddingPreset, onSuccess: props.createNewPreset }))));
|
|
3148
3238
|
}, [isAddingPreset]);
|
|
3149
3239
|
const onPresetDropdownSelect = (preset) => {
|
|
3150
3240
|
props.choosePreset(preset.preset);
|
|
3151
3241
|
};
|
|
3152
3242
|
const renderMoreButtonDropdown = (item, hiddenItems) => {
|
|
3153
3243
|
return (React__namespace.default.createElement(Dropdown, { key: "more", renderTarget: (props) => (React__namespace.default.createElement(FlexRow, null,
|
|
3154
|
-
React__namespace.default.createElement("div", { className: css$
|
|
3155
|
-
React__namespace.default.createElement(Button, Object.assign({ cx: UUI_PRESETS_PANEL_MORE_BUTTON, fill: "ghost", color: "secondary", caption: `${(hiddenItems === null || hiddenItems === void 0 ? void 0 : hiddenItems.length) || ''} more` }, props)))), renderBody: (propsBody) => (React__namespace.default.createElement(DropdownContainer, Object.assign({ cx: uuiCore.cx(css$
|
|
3156
|
-
React__namespace.default.createElement(uuiComponents.ScrollBars, null, hiddenItems.map((hiddenItem) => (React__namespace.default.createElement(DropdownMenuButton, { key: hiddenItem.preset.id, onClick: () => onPresetDropdownSelect(hiddenItem), caption: hiddenItem.preset.name, icon: !hiddenItem.preset.isReadonly && ForwardRef$k, iconPosition: "right", cx: css$
|
|
3244
|
+
React__namespace.default.createElement("div", { className: css$y.divider }),
|
|
3245
|
+
React__namespace.default.createElement(Button, Object.assign({ cx: UUI_PRESETS_PANEL_MORE_BUTTON, fill: "ghost", color: "secondary", caption: `${(hiddenItems === null || hiddenItems === void 0 ? void 0 : hiddenItems.length) || ''} more` }, props)))), renderBody: (propsBody) => (React__namespace.default.createElement(DropdownContainer, Object.assign({ cx: uuiCore.cx(css$y.dropContainer), width: 230 }, propsBody),
|
|
3246
|
+
React__namespace.default.createElement(uuiComponents.ScrollBars, null, hiddenItems.map((hiddenItem) => (React__namespace.default.createElement(DropdownMenuButton, { key: hiddenItem.preset.id, onClick: () => onPresetDropdownSelect(hiddenItem), caption: hiddenItem.preset.name, icon: !hiddenItem.preset.isReadonly && ForwardRef$k, iconPosition: "right", cx: css$y.dropdownDeleteIcon, onIconClick: !hiddenItem.preset.isReadonly && (() => props.deletePreset(hiddenItem.preset)) })))))) }));
|
|
3157
3247
|
};
|
|
3158
3248
|
const getPresetPriority = (preset, index) => {
|
|
3159
3249
|
return preset.id === props.activePresetId ? 100499 : 1000 - index;
|
|
@@ -3171,7 +3261,7 @@ function PresetsPanel(props) {
|
|
|
3171
3261
|
];
|
|
3172
3262
|
};
|
|
3173
3263
|
return (React__namespace.default.createElement(FlexCell, { grow: 1, minWidth: 310, rawProps: props.rawProps },
|
|
3174
|
-
React__namespace.default.createElement(FlexRow, { size: null, spacing: "12", cx: css$
|
|
3264
|
+
React__namespace.default.createElement(FlexRow, { size: null, spacing: "12", cx: css$y.presetsWrapper },
|
|
3175
3265
|
React__namespace.default.createElement(uuiComponents.AdaptivePanel, { items: getPanelItems() }))));
|
|
3176
3266
|
}
|
|
3177
3267
|
|
|
@@ -3209,7 +3299,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
3209
3299
|
return columns;
|
|
3210
3300
|
};
|
|
3211
3301
|
|
|
3212
|
-
var css$
|
|
3302
|
+
var css$u = {"line-height-12":"Q3Qv20","line-height-18":"b2hPSQ","line-height-24":"-Y5Dym","line-height-30":"_5IVeZI","font-size-10":"X2628I","font-size-12":"foSWQO","font-size-14":"-KuFcE","font-size-16":"_6GiZro","font-size-18":"_3-cMrq","font-size-24":"BgjE93","v-padding-2":"GU0pk-","v-padding-3":"wwmr9r","v-padding-5":"_8LoTzH","v-padding-6":"ceppc7","v-padding-8":"dIEGa8","v-padding-9":"ACLoGo","v-padding-11":"LasNdx","v-padding-12":"_6Zp8gd","v-padding-14":"D6QLyh","v-padding-15":"v8P1uJ","v-padding-17":"NZIe-B","v-padding-18":"oTUz6B","v-padding-23":"_8CrI9s","v-padding-24":"Cw8ljy","lineHeight12":"Q3Qv20","lineHeight18":"b2hPSQ","lineHeight24":"-Y5Dym","lineHeight30":"_5IVeZI","fontSize10":"X2628I","fontSize12":"foSWQO","fontSize14":"-KuFcE","fontSize16":"_6GiZro","fontSize18":"_3-cMrq","fontSize24":"BgjE93","vPadding2":"GU0pk-","vPadding3":"wwmr9r","vPadding5":"_8LoTzH","vPadding6":"ceppc7","vPadding8":"dIEGa8","vPadding9":"ACLoGo","vPadding11":"LasNdx","vPadding12":"_6Zp8gd","vPadding14":"D6QLyh","vPadding15":"v8P1uJ","vPadding17":"NZIe-B","vPadding18":"oTUz6B","vPadding23":"_8CrI9s","vPadding24":"Cw8ljy"};
|
|
3213
3303
|
|
|
3214
3304
|
const defaultTextSettings = {
|
|
3215
3305
|
18: { lineHeight: 12, fontSize: 10 },
|
|
@@ -3222,7 +3312,7 @@ const defaultTextSettings = {
|
|
|
3222
3312
|
};
|
|
3223
3313
|
function getTextClasses(props, border) {
|
|
3224
3314
|
if (props.size === 'none') {
|
|
3225
|
-
return [css$
|
|
3315
|
+
return [css$u['line-height-' + props.lineHeight], css$u['font-size-' + props.fontSize]];
|
|
3226
3316
|
}
|
|
3227
3317
|
const setting = {
|
|
3228
3318
|
size: props.size,
|
|
@@ -3231,11 +3321,11 @@ function getTextClasses(props, border) {
|
|
|
3231
3321
|
};
|
|
3232
3322
|
const vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
3233
3323
|
return [
|
|
3234
|
-
css$
|
|
3324
|
+
css$u['line-height-' + setting.lineHeight], css$u['font-size-' + setting.fontSize], css$u['v-padding-' + vPadding],
|
|
3235
3325
|
];
|
|
3236
3326
|
}
|
|
3237
3327
|
|
|
3238
|
-
var css$
|
|
3328
|
+
var css$t = {"root":"DItj1X"};
|
|
3239
3329
|
|
|
3240
3330
|
function applyTextMods(mods) {
|
|
3241
3331
|
const textClasses = getTextClasses({
|
|
@@ -3244,7 +3334,7 @@ function applyTextMods(mods) {
|
|
|
3244
3334
|
fontSize: mods.fontSize,
|
|
3245
3335
|
}, false);
|
|
3246
3336
|
return [
|
|
3247
|
-
css$
|
|
3337
|
+
css$t.root,
|
|
3248
3338
|
'uui-text',
|
|
3249
3339
|
`uui-color-${mods.color || 'primary'}`,
|
|
3250
3340
|
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
@@ -3252,9 +3342,9 @@ function applyTextMods(mods) {
|
|
|
3252
3342
|
'uui-typography',
|
|
3253
3343
|
].concat(textClasses);
|
|
3254
3344
|
}
|
|
3255
|
-
const Text = uuiCore.withMods(
|
|
3345
|
+
const Text = uuiCore.withMods(uuiComponents__namespace.Text, applyTextMods);
|
|
3256
3346
|
|
|
3257
|
-
var css$
|
|
3347
|
+
var css$s = {"root":"P-9agp","loading-word":"MkiESq","animated-loading":"fYEbdN","skeleton_loading":"_0dREls","loadingWord":"MkiESq","animatedLoading":"fYEbdN","skeletonLoading":"_0dREls"};
|
|
3258
3348
|
|
|
3259
3349
|
const TextPlaceholder = (props) => {
|
|
3260
3350
|
const pattern = ' ';
|
|
@@ -3266,35 +3356,35 @@ const TextPlaceholder = (props) => {
|
|
|
3266
3356
|
}
|
|
3267
3357
|
return words;
|
|
3268
3358
|
}, [props.wordsCount]);
|
|
3269
|
-
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: cx__default.default(css$
|
|
3270
|
-
props.cx, css$
|
|
3359
|
+
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: cx__default.default(css$s.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
3360
|
+
props.cx, css$s.loadingWord, !props.isNotAnimated && css$s.animatedLoading,
|
|
3271
3361
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
3272
3362
|
};
|
|
3273
3363
|
|
|
3274
3364
|
const RichTextView = uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
3275
3365
|
|
|
3276
|
-
var css$
|
|
3366
|
+
var css$r = {"uui-typography":"f6ZPMH","hero-header":"PgfwBt","promo-header":"xHf-Qy","uui-critical":"VCWEeY","uui-info":"uupi3E","uui-success":"O-xjaZ","uui-warning":"BawFT3","uui-highlight":"-qLPBR","uui-typography-size-12":"jTf91y","uui-typography-size-14":"eJOD6F","uui-typography-size-16":"_33SiIY","root":"oNoJ1-","modal-blocker":"IMYXBd","animateModalBlocker":"lA4rkX","modal":"MlJggs","modal-footer":"v-dKkp","border-top":"a6-Xsg","modal-header":"CIOQR4","uuiTypography":"f6ZPMH","heroHeader":"PgfwBt","promoHeader":"xHf-Qy","uuiCritical":"VCWEeY","uuiInfo":"uupi3E","uuiSuccess":"O-xjaZ","uuiWarning":"BawFT3","uuiHighlight":"-qLPBR","uuiTypographySize12":"jTf91y","uuiTypographySize14":"eJOD6F","uuiTypographySize16":"_33SiIY","modalBlocker":"IMYXBd","modalFooter":"v-dKkp","borderTop":"a6-Xsg","modalHeader":"CIOQR4"};
|
|
3277
3367
|
|
|
3278
|
-
const ModalBlocker = uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$
|
|
3279
|
-
const ModalWindow = uuiCore.withMods(uuiComponents.ModalWindow, () => [css$
|
|
3368
|
+
const ModalBlocker = uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$r.modalBlocker]);
|
|
3369
|
+
const ModalWindow = uuiCore.withMods(uuiComponents.ModalWindow, () => [css$r.root, css$r.modal], (props) => ({
|
|
3280
3370
|
style: Object.assign(Object.assign({}, props.style), { width: `${props.width || 420}px`, height: props.height ? `${props.height}px` : 'auto' }),
|
|
3281
3371
|
}));
|
|
3282
3372
|
class ModalHeader extends React__namespace.Component {
|
|
3283
3373
|
render() {
|
|
3284
|
-
return (React__namespace.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "12", borderBottom: this.props.borderBottom, cx: [css$
|
|
3374
|
+
return (React__namespace.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "12", borderBottom: this.props.borderBottom, cx: [css$r.root, css$r.modalHeader, this.props.cx], spacing: "12", rawProps: this.props.rawProps },
|
|
3285
3375
|
this.props.title && (React__namespace.createElement(Text, { size: "48", fontSize: "18", fontWeight: "600" }, this.props.title)),
|
|
3286
3376
|
this.props.children,
|
|
3287
3377
|
this.props.onClose && React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
3288
3378
|
this.props.onClose && (React__namespace.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
3289
|
-
React__namespace.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$
|
|
3379
|
+
React__namespace.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$C, onClick: this.props.onClose })))));
|
|
3290
3380
|
}
|
|
3291
3381
|
}
|
|
3292
3382
|
class ModalFooter extends React__namespace.Component {
|
|
3293
3383
|
render() {
|
|
3294
3384
|
return (React__namespace.createElement(FlexRow, { spacing: this.props.spacing || '12', cx: [
|
|
3295
|
-
css$
|
|
3296
|
-
css$
|
|
3297
|
-
this.props.borderTop && css$
|
|
3385
|
+
css$r.root,
|
|
3386
|
+
css$r.modalFooter,
|
|
3387
|
+
this.props.borderTop && css$r.borderTop,
|
|
3298
3388
|
this.props.cx,
|
|
3299
3389
|
], padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
3300
3390
|
}
|
|
@@ -3316,7 +3406,7 @@ var SvgCross = function SvgCross(props, ref) {
|
|
|
3316
3406
|
};
|
|
3317
3407
|
var ForwardRef$j = /*#__PURE__*/React.forwardRef(SvgCross);
|
|
3318
3408
|
|
|
3319
|
-
var css$
|
|
3409
|
+
var css$q = {"uui-typography":"sFBkBg","hero-header":"StNapT","promo-header":"CS05tn","uui-critical":"ngZ-G4","uui-info":"B8KdLt","uui-success":"z1elXG","uui-warning":"Tfz-JO","uui-highlight":"_4JjDbF","uui-typography-size-12":"k-Y8Ep","uui-typography-size-14":"Yr5doO","uui-typography-size-16":"mqDLhc","root":"s94Q--","icon-wrapper":"cWsS2D","action-wrapper":"gwavNo","action-link":"kyAv4L","close-icon":"yGMm-K","main-path":"_40-nmH","content":"CZnEOw","clear-button":"_3xT2Pt","close-wrapper":"-I9ntX","uuiTypography":"sFBkBg","heroHeader":"StNapT","promoHeader":"CS05tn","uuiCritical":"ngZ-G4","uuiInfo":"B8KdLt","uuiSuccess":"z1elXG","uuiWarning":"Tfz-JO","uuiHighlight":"_4JjDbF","uuiTypographySize12":"k-Y8Ep","uuiTypographySize14":"Yr5doO","uuiTypographySize16":"mqDLhc","iconWrapper":"cWsS2D","actionWrapper":"gwavNo","actionLink":"kyAv4L","closeIcon":"yGMm-K","mainPath":"_40-nmH","clearButton":"_3xT2Pt","closeWrapper":"-I9ntX"};
|
|
3320
3410
|
|
|
3321
3411
|
const NotificationCard = React__namespace.default.forwardRef((props, ref) => {
|
|
3322
3412
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -3331,23 +3421,23 @@ const NotificationCard = React__namespace.default.forwardRef((props, ref) => {
|
|
|
3331
3421
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
3332
3422
|
};
|
|
3333
3423
|
}, []);
|
|
3334
|
-
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
3335
|
-
React__namespace.default.createElement("div", { className: css$
|
|
3336
|
-
props.icon && (React__namespace.default.createElement("div", { className: css$
|
|
3337
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
3338
|
-
React__namespace.default.createElement("div", { className: css$
|
|
3424
|
+
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$q.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
3425
|
+
React__namespace.default.createElement("div", { className: css$q.mainPath },
|
|
3426
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$q.iconWrapper },
|
|
3427
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$q.actionIcon }))),
|
|
3428
|
+
React__namespace.default.createElement("div", { className: css$q.content },
|
|
3339
3429
|
props.children,
|
|
3340
|
-
props.actions && (React__namespace.default.createElement("div", { className: css$
|
|
3341
|
-
props.onClose && (React__namespace.default.createElement("div", { className: css$
|
|
3342
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$j, color: "neutral", onClick: props.onClose, cx: css$
|
|
3430
|
+
props.actions && (React__namespace.default.createElement("div", { className: css$q.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$q.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
3431
|
+
props.onClose && (React__namespace.default.createElement("div", { className: css$q.closeWrapper },
|
|
3432
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$j, color: "neutral", onClick: props.onClose, cx: css$q.closeIcon }))))));
|
|
3343
3433
|
});
|
|
3344
|
-
const WarningNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3345
|
-
const SuccessNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3346
|
-
const HintNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3347
|
-
const ErrorNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3434
|
+
const WarningNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$F, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
3435
|
+
const SuccessNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$G, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
3436
|
+
const HintNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$D, color: "info" }, props, { ref: ref, cx: props.cx }))));
|
|
3437
|
+
const ErrorNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$E, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
3348
3438
|
class ClearNotification extends React__namespace.default.Component {
|
|
3349
3439
|
render() {
|
|
3350
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
3440
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$q.notificationWrapper, css$q.clearButton) },
|
|
3351
3441
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => this.context.uuiNotifications.clearAll() })));
|
|
3352
3442
|
}
|
|
3353
3443
|
}
|
|
@@ -3370,7 +3460,7 @@ class ConfirmationModal extends React__namespace.Component {
|
|
|
3370
3460
|
}
|
|
3371
3461
|
}
|
|
3372
3462
|
|
|
3373
|
-
const defaultMode =
|
|
3463
|
+
const defaultMode = EditMode.FORM;
|
|
3374
3464
|
class DatePickerComponent extends uuiComponents.BaseDatePicker {
|
|
3375
3465
|
constructor() {
|
|
3376
3466
|
super(...arguments);
|
|
@@ -3387,7 +3477,7 @@ class DatePickerComponent extends uuiComponents.BaseDatePicker {
|
|
|
3387
3477
|
});
|
|
3388
3478
|
}
|
|
3389
3479
|
}
|
|
3390
|
-
return (React__namespace.default.createElement(TextInput, Object.assign({}, props, { onClick: null, isDropdown: false, cx: uuiCore.cx(this.props.inputCx, this.state.isOpen && uuiCore.uuiMod.focus), icon: this.props.mode !==
|
|
3480
|
+
return (React__namespace.default.createElement(TextInput, Object.assign({}, props, { onClick: null, isDropdown: false, cx: uuiCore.cx(this.props.inputCx, this.state.isOpen && uuiCore.uuiMod.focus), icon: this.props.mode !== EditMode.CELL && systemIcons[this.props.size || '36'].calendar, iconPosition: this.props.iconPosition || 'left', placeholder: this.props.placeholder ? this.props.placeholder : this.getFormat(), size: this.props.size || '36', value: this.state.inputValue, onValueChange: this.handleInputChange, onCancel: this.props.disableClear || !this.state.inputValue ? undefined : this.handleCancel, isInvalid: this.props.isInvalid, isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, tabIndex: this.props.isReadonly || this.props.isDisabled ? -1 : 0, onFocus: this.handleFocus, onBlur: this.handleBlur, mode: this.props.mode || defaultMode, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.input, id: this.props.id })));
|
|
3391
3481
|
};
|
|
3392
3482
|
}
|
|
3393
3483
|
renderBody(props) {
|
|
@@ -3399,14 +3489,14 @@ class DatePickerComponent extends uuiComponents.BaseDatePicker {
|
|
|
3399
3489
|
}
|
|
3400
3490
|
const DatePicker = uuiCore.withMods(DatePickerComponent);
|
|
3401
3491
|
|
|
3402
|
-
var css$
|
|
3492
|
+
var css$p = {"uui-typography":"bZ8Kto","hero-header":"dAccHM","promo-header":"psAXn5","uui-critical":"CMuqb8","uui-info":"ueKHKJ","uui-success":"_5LQoOE","uui-warning":"_2RXCwf","uui-highlight":"ZyWyEm","uui-typography-size-12":"M-AxUK","uui-typography-size-14":"ef1Z6m","uui-typography-size-16":"eG-WlI","root":"RFldna","uuiTypography":"bZ8Kto","heroHeader":"dAccHM","promoHeader":"psAXn5","uuiCritical":"CMuqb8","uuiInfo":"ueKHKJ","uuiSuccess":"_5LQoOE","uuiWarning":"_2RXCwf","uuiHighlight":"ZyWyEm","uuiTypographySize12":"M-AxUK","uuiTypographySize14":"ef1Z6m","uuiTypographySize16":"eG-WlI"};
|
|
3403
3493
|
|
|
3404
3494
|
function applyCalendarPresetsMods() {
|
|
3405
|
-
return [css$
|
|
3495
|
+
return [css$p.root];
|
|
3406
3496
|
}
|
|
3407
3497
|
const CalendarPresets = uuiCore.withMods(uuiComponents.CalendarPresets, applyCalendarPresetsMods, () => ({}));
|
|
3408
3498
|
|
|
3409
|
-
var css$
|
|
3499
|
+
var css$o = {"uui-typography":"ApF0f6","hero-header":"sa7spX","promo-header":"-XeD2o","uui-critical":"Guz4Wd","uui-info":"Jeu0Pd","uui-success":"k-82q7","uui-warning":"_2SSylT","uui-highlight":"y4id8a","uui-typography-size-12":"_4GNZxp","uui-typography-size-14":"_47xpUq","uui-typography-size-16":"Yku-yE","root":"VFKRX9","container":"yNLlMq","day-selection":"YmPPoM","from-picker":"-RwAFR","to-picker":"SYet8F","bodes-wrapper":"loM9hh","blocker":"NEGsCT","uuiTypography":"ApF0f6","heroHeader":"sa7spX","promoHeader":"-XeD2o","uuiCritical":"Guz4Wd","uuiInfo":"Jeu0Pd","uuiSuccess":"k-82q7","uuiWarning":"_2SSylT","uuiHighlight":"y4id8a","uuiTypographySize12":"_4GNZxp","uuiTypographySize14":"_47xpUq","uuiTypographySize16":"Yku-yE","daySelection":"YmPPoM","fromPicker":"-RwAFR","toPicker":"SYet8F","bodesWrapper":"loM9hh"};
|
|
3410
3500
|
|
|
3411
3501
|
dayjs__default.default.extend(isoWeek__default.default);
|
|
3412
3502
|
function weekCount(displayedDate) {
|
|
@@ -3466,60 +3556,56 @@ class RangeDatePickerBody extends React__namespace.Component {
|
|
|
3466
3556
|
this.getDayCX = (day) => {
|
|
3467
3557
|
var _a, _b;
|
|
3468
3558
|
const dayValue = day.valueOf();
|
|
3469
|
-
const fromValue = ((_a = this.props.value) === null || _a === void 0 ? void 0 : _a.
|
|
3470
|
-
const toValue = ((_b = this.props.value) === null || _b === void 0 ? void 0 : _b.
|
|
3471
|
-
const inRange = dayValue >= fromValue && dayValue <= toValue && fromValue !== toValue
|
|
3559
|
+
const fromValue = ((_a = this.props.value.selectedDate) === null || _a === void 0 ? void 0 : _a.from) ? dayjs__default.default(this.props.value.selectedDate.from).valueOf() : null;
|
|
3560
|
+
const toValue = ((_b = this.props.value.selectedDate) === null || _b === void 0 ? void 0 : _b.to) ? dayjs__default.default(this.props.value.selectedDate.to).valueOf() : null;
|
|
3561
|
+
const inRange = fromValue && toValue && dayValue >= fromValue && dayValue <= toValue && fromValue !== toValue;
|
|
3472
3562
|
const isFirst = dayValue === fromValue;
|
|
3473
3563
|
const isLast = dayValue === toValue;
|
|
3474
|
-
return [
|
|
3475
|
-
inRange && uuiRangeDatePickerBody.inRange,
|
|
3476
|
-
isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper,
|
|
3477
|
-
!inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper,
|
|
3478
|
-
isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper,
|
|
3479
|
-
!inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper,
|
|
3480
|
-
(dayValue === fromValue || dayValue === toValue) && uuiComponents.uuiDaySelection.selectedDay,
|
|
3481
|
-
];
|
|
3564
|
+
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)];
|
|
3482
3565
|
};
|
|
3483
3566
|
this.getFromValue = () => {
|
|
3484
3567
|
var _a;
|
|
3485
|
-
return Object.assign(Object.assign({}, this.props.value), { view: this.state.activePart === 'from' ? this.props.value.view : 'DAY_SELECTION', selectedDate: (_a = this.props.value) === null || _a === void 0 ? void 0 : _a.
|
|
3568
|
+
return Object.assign(Object.assign({}, this.props.value), { view: this.state.activePart === 'from' ? this.props.value.view : 'DAY_SELECTION', selectedDate: ((_a = this.props.value.selectedDate) === null || _a === void 0 ? void 0 : _a.from) || null });
|
|
3486
3569
|
};
|
|
3487
3570
|
this.getToValue = () => {
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3571
|
+
var _a;
|
|
3572
|
+
return {
|
|
3573
|
+
view: this.state.activePart === 'to' ? this.props.value.view : 'DAY_SELECTION',
|
|
3574
|
+
displayedDate: this.props.value.displayedDate.add(1, 'month'),
|
|
3575
|
+
selectedDate: ((_a = this.props.value.selectedDate) === null || _a === void 0 ? void 0 : _a.from) || null,
|
|
3576
|
+
};
|
|
3491
3577
|
};
|
|
3492
|
-
this.renderPresets = () => {
|
|
3578
|
+
this.renderPresets = (presets) => {
|
|
3493
3579
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3494
3580
|
React__namespace.createElement("div", { className: uuiRangeDatePickerBody.separator }),
|
|
3495
3581
|
React__namespace.createElement(CalendarPresets, { forwardedRef: this.props.forwardedRef, onPresetSet: (presetVal) => {
|
|
3582
|
+
var _a, _b;
|
|
3496
3583
|
this.props.onValueChange({
|
|
3497
3584
|
view: 'DAY_SELECTION',
|
|
3498
3585
|
selectedDate: { from: dayjs__default.default(presetVal.from).format(uuiComponents.valueFormat), to: dayjs__default.default(presetVal.to).format(uuiComponents.valueFormat) },
|
|
3499
3586
|
displayedDate: dayjs__default.default(presetVal.from),
|
|
3500
3587
|
});
|
|
3501
|
-
this.props.changeIsOpen(false);
|
|
3502
|
-
}, presets:
|
|
3588
|
+
(_b = (_a = this.props).changeIsOpen) === null || _b === void 0 ? void 0 : _b.call(_a, false);
|
|
3589
|
+
}, presets: presets })));
|
|
3503
3590
|
};
|
|
3504
3591
|
this.renderDatePicker = () => {
|
|
3505
|
-
|
|
3506
|
-
return (React__namespace.createElement(FlexRow, { cx: [((_a = this.props.value) === null || _a === void 0 ? void 0 : _a.view) === 'DAY_SELECTION' && css$n.daySelection, css$n.container], alignItems: "top" },
|
|
3592
|
+
return (React__namespace.createElement(FlexRow, { cx: [this.props.value.view === 'DAY_SELECTION' && css$o.daySelection, css$o.container], alignItems: "top" },
|
|
3507
3593
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
3508
3594
|
React__namespace.createElement(FlexRow, null,
|
|
3509
|
-
React__namespace.createElement(FlexRow, { cx: css$
|
|
3510
|
-
React__namespace.createElement(DatePickerBody, { cx: uuiCore.cx(css$
|
|
3511
|
-
React__namespace.createElement(DatePickerBody, { cx: uuiCore.cx(css$
|
|
3512
|
-
|
|
3513
|
-
left: this.state.activePart === 'from'
|
|
3514
|
-
right: this.state.activePart === 'to'
|
|
3515
|
-
}, className: css$
|
|
3516
|
-
this.props.presets && this.renderPresets()),
|
|
3595
|
+
React__namespace.createElement(FlexRow, { cx: css$o.bodesWrapper, alignItems: "top" },
|
|
3596
|
+
React__namespace.createElement(DatePickerBody, { cx: uuiCore.cx(css$o.fromPicker), setSelectedDate: (nv) => this.setSelectedDate(nv), value: this.getFromValue(), setDisplayedDateAndView: (displayedDate, view) => this.setDisplayedDateAndView(displayedDate, view, 'from'), getDayCX: this.getDayCX, filter: this.props.filter, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday }),
|
|
3597
|
+
React__namespace.createElement(DatePickerBody, { cx: uuiCore.cx(css$o.toPicker), setSelectedDate: (nv) => this.setSelectedDate(nv), value: this.getToValue(), setDisplayedDateAndView: (displayedDate, view) => this.setDisplayedDateAndView(displayedDate, view, 'to'), getDayCX: this.getDayCX, filter: this.props.filter, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday }),
|
|
3598
|
+
this.props.value.view !== 'DAY_SELECTION' && (React__namespace.createElement("div", { style: {
|
|
3599
|
+
left: this.state.activePart === 'from' ? '50%' : undefined,
|
|
3600
|
+
right: this.state.activePart === 'to' ? '50%' : undefined,
|
|
3601
|
+
}, className: css$o.blocker }))),
|
|
3602
|
+
this.props.presets && this.renderPresets(this.props.presets)),
|
|
3517
3603
|
this.props.renderFooter && this.props.renderFooter())));
|
|
3518
3604
|
};
|
|
3519
3605
|
}
|
|
3520
3606
|
getRange(selectedDate) {
|
|
3521
3607
|
const newRange = { from: null, to: null };
|
|
3522
|
-
const currentRange = this.props.value.selectedDate;
|
|
3608
|
+
const currentRange = this.props.value.selectedDate || { from: null, to: null };
|
|
3523
3609
|
if (!this.props.filter || this.props.filter(dayjs__default.default(selectedDate))) {
|
|
3524
3610
|
if (this.props.focusPart === 'from') {
|
|
3525
3611
|
if (dayjs__default.default(selectedDate).valueOf() <= dayjs__default.default(currentRange.to).valueOf()) {
|
|
@@ -3548,10 +3634,11 @@ class RangeDatePickerBody extends React__namespace.Component {
|
|
|
3548
3634
|
return newRange;
|
|
3549
3635
|
}
|
|
3550
3636
|
setSelectedDate(selectedDate) {
|
|
3637
|
+
var _a, _b;
|
|
3551
3638
|
const range = this.getRange(selectedDate);
|
|
3552
3639
|
this.props.onValueChange(Object.assign(Object.assign({}, this.props.value), { selectedDate: range }));
|
|
3553
3640
|
if (range.from && range.to && this.props.focusPart === 'to') {
|
|
3554
|
-
this.props.changeIsOpen(false);
|
|
3641
|
+
(_b = (_a = this.props).changeIsOpen) === null || _b === void 0 ? void 0 : _b.call(_a, false);
|
|
3555
3642
|
}
|
|
3556
3643
|
}
|
|
3557
3644
|
setDisplayedDateAndView(displayedDate, view, part) {
|
|
@@ -3563,18 +3650,18 @@ class RangeDatePickerBody extends React__namespace.Component {
|
|
|
3563
3650
|
});
|
|
3564
3651
|
}
|
|
3565
3652
|
render() {
|
|
3566
|
-
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$
|
|
3653
|
+
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$o.root, uuiComponents.uuiDatePickerBodyBase.container, this.props.cx) }, this.props.rawProps), this.renderDatePicker()));
|
|
3567
3654
|
}
|
|
3568
3655
|
}
|
|
3569
3656
|
|
|
3570
|
-
var css$
|
|
3657
|
+
var css$n = {"uui-typography":"Gcc5-5","hero-header":"HYhJlC","promo-header":"e2-Qgk","uui-critical":"sF7SYO","uui-info":"Y9t9cM","uui-success":"_9xIBJM","uui-warning":"pKt-iq","uui-highlight":"lDt-Pg","uui-typography-size-12":"g9vN-o","uui-typography-size-14":"V4yVlK","uui-typography-size-16":"_7qoN8F","dropdown-container":"O-7jjq","date-input":"vnE-r2","size-24":"cVVoe0","size-30":"wHMCCG","size-36":"w393Fs","size-42":"ZDucAV","size-48":"_9SEOQW","date-input-group":"l6WjbD","separator":"hsO1Cw","mode-form":"RBB8BD","mode-cell":"tGoz1b","uuiTypography":"Gcc5-5","heroHeader":"HYhJlC","promoHeader":"e2-Qgk","uuiCritical":"sF7SYO","uuiInfo":"Y9t9cM","uuiSuccess":"_9xIBJM","uuiWarning":"pKt-iq","uuiHighlight":"lDt-Pg","uuiTypographySize12":"g9vN-o","uuiTypographySize14":"V4yVlK","uuiTypographySize16":"_7qoN8F","dropdownContainer":"O-7jjq","dateInput":"vnE-r2","size24":"cVVoe0","size30":"wHMCCG","size36":"w393Fs","size42":"ZDucAV","size48":"_9SEOQW","dateInputGroup":"l6WjbD","modeForm":"RBB8BD","modeCell":"tGoz1b"};
|
|
3571
3658
|
|
|
3572
3659
|
const defaultValue = { from: null, to: null };
|
|
3573
3660
|
class RangeDatePickerComponent extends uuiComponents.BaseRangeDatePicker {
|
|
3574
3661
|
constructor() {
|
|
3575
3662
|
super(...arguments);
|
|
3576
3663
|
this.renderInput = (props) => {
|
|
3577
|
-
var _a, _b;
|
|
3664
|
+
var _a, _b, _c;
|
|
3578
3665
|
if (process.env.NODE_ENV !== "production") {
|
|
3579
3666
|
if (this.props.size === '48') {
|
|
3580
3667
|
uuiCore.devLogger.warnAboutDeprecatedPropValue({
|
|
@@ -3586,37 +3673,68 @@ class RangeDatePickerComponent extends uuiComponents.BaseRangeDatePicker {
|
|
|
3586
3673
|
});
|
|
3587
3674
|
}
|
|
3588
3675
|
}
|
|
3589
|
-
return (React__namespace.createElement("div", { className: cx__default.default(this.props.inputCx, css$
|
|
3590
|
-
React__namespace.createElement(TextInput, { icon: systemIcons[this.props.size || '36'].calendar, cx: cx__default.default(css$
|
|
3591
|
-
React__namespace.createElement("div", { className: css$
|
|
3592
|
-
React__namespace.createElement(TextInput, { cx: cx__default.default(css$
|
|
3676
|
+
return (React__namespace.createElement("div", { className: cx__default.default(this.props.inputCx, css$n.dateInputGroup, this.props.isDisabled && uuiCore.uuiMod.disabled, this.props.isReadonly && uuiCore.uuiMod.readonly, this.props.isInvalid && uuiCore.uuiMod.invalid, this.state.inFocus && uuiCore.uuiMod.focus), onClick: !this.props.isDisabled && props.onClick, onBlur: this.handleWrapperBlur, ref: props.ref },
|
|
3677
|
+
React__namespace.createElement(TextInput, { icon: systemIcons[this.props.size || '36'].calendar, cx: cx__default.default(css$n.dateInput, css$n['size-' + (this.props.size || 36)], this.state.inFocus === 'from' && uuiCore.uuiMod.focus), size: this.props.size || '36', placeholder: this.props.getPlaceholder ? this.props.getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: this.state.inputValue.from, onValueChange: this.getChangeHandler('from'), isInvalid: this.props.isInvalid, isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, onFocus: (event) => this.handleFocus(event, 'from'), onBlur: (event) => this.handleBlur(event, 'from'), isDropdown: false, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.from, id: (_b = this.props) === null || _b === void 0 ? void 0 : _b.id }),
|
|
3678
|
+
React__namespace.createElement("div", { className: css$n.separator }),
|
|
3679
|
+
React__namespace.createElement(TextInput, { cx: cx__default.default(css$n.dateInput, css$n['size-' + (this.props.size || 36)], this.state.inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: this.props.getPlaceholder ? this.props.getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: this.props.size || '36', value: this.state.inputValue.to, onCancel: this.props.disableClear ? null : this.state.inputValue.from && this.state.inputValue.to && this.handleCancel, onValueChange: this.getChangeHandler('to'), isInvalid: this.props.isInvalid, isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, onFocus: (e) => this.handleFocus(e, 'to'), onBlur: (e) => this.handleBlur(e, 'to'), isDropdown: false, rawProps: (_c = this.props.rawProps) === null || _c === void 0 ? void 0 : _c.to })));
|
|
3593
3680
|
};
|
|
3594
3681
|
}
|
|
3595
3682
|
renderBody(props) {
|
|
3596
3683
|
var _a;
|
|
3597
|
-
return (React__namespace.createElement(DropdownContainer, Object.assign({}, props, { cx: cx__default.default(css$
|
|
3684
|
+
return (React__namespace.createElement(DropdownContainer, Object.assign({}, props, { cx: cx__default.default(css$n.dropdownContainer), focusLock: false }),
|
|
3598
3685
|
React__namespace.createElement(FlexRow, null,
|
|
3599
3686
|
React__namespace.createElement(RangeDatePickerBody, { cx: cx__default.default(this.props.bodyCx), value: this.getValue(), onValueChange: this.onRangeChange, filter: this.props.filter, changeIsOpen: this.toggleOpening, presets: this.props.presets, focusPart: this.state.inFocus, renderDay: this.props.renderDay, renderFooter: this.props.renderFooter && (() => this.props.renderFooter(this.props.value || defaultValue)), isHoliday: this.props.isHoliday, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.body }))));
|
|
3600
3687
|
}
|
|
3601
3688
|
}
|
|
3602
3689
|
const RangeDatePicker = uuiCore.withMods(RangeDatePickerComponent);
|
|
3603
3690
|
|
|
3604
|
-
var css$
|
|
3691
|
+
var css$m = {"root":"NLuslP","blocker":"CFj-N9","marker":"ef5KWU","top":"Kq7HJf","bottom":"fbfNXt","left":"pp9XjC","right":"nI4BN-","inside":"ljrwC7"};
|
|
3605
3692
|
|
|
3606
3693
|
function DropMarker(props) {
|
|
3607
3694
|
return props.isDndInProgress
|
|
3608
3695
|
? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3609
|
-
props.enableBlocker && React__namespace.createElement("div", { className: css$
|
|
3696
|
+
props.enableBlocker && React__namespace.createElement("div", { className: css$m.blocker }),
|
|
3610
3697
|
React__namespace.createElement("div", { className: cx__default.default([
|
|
3611
|
-
css$
|
|
3612
|
-
css$
|
|
3613
|
-
css$
|
|
3698
|
+
css$m.root,
|
|
3699
|
+
css$m.marker,
|
|
3700
|
+
css$m[props.position],
|
|
3614
3701
|
props === null || props === void 0 ? void 0 : props.cx,
|
|
3615
3702
|
]) })))
|
|
3616
3703
|
: null;
|
|
3617
3704
|
}
|
|
3618
3705
|
|
|
3619
|
-
var css$
|
|
3706
|
+
var css$l = {"cell":"Bx8zfY","wrapper":"wqME4r","align-widgets-top":"v16-aj","size-24":"Xcgeoi","size-30":"sPckMf","size-36":"Mt27rd","size-42":"upC8pS","size-48":"_5H3mUw","size-60":"FmydwS","align-widgets-center":"_7Fofk9","padding-12":"a5f7Mg","padding-24":"ZpJSBF","padding-left-12":"_1bOzar","padding-left-24":"EctYjs","padding-right-24":"sU566a","loading-cell":"WX5tRO","alignWidgetsTop":"v16-aj","size24":"Xcgeoi","size30":"sPckMf","size36":"Mt27rd","size42":"upC8pS","size48":"_5H3mUw","size60":"FmydwS","alignWidgetsCenter":"_7Fofk9","padding12":"a5f7Mg","padding24":"ZpJSBF","paddingLeft12":"_1bOzar","paddingLeft24":"EctYjs","paddingRight24":"sU566a","loadingCell":"WX5tRO"};
|
|
3707
|
+
|
|
3708
|
+
function DataTableCell(props) {
|
|
3709
|
+
props = Object.assign({}, props);
|
|
3710
|
+
if (props.isFirstColumn) {
|
|
3711
|
+
props.addons = React__namespace.createElement(DataRowAddons, Object.assign({}, props));
|
|
3712
|
+
}
|
|
3713
|
+
props.renderPlaceholder = props.renderPlaceholder
|
|
3714
|
+
|| (() => (
|
|
3715
|
+
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
3716
|
+
React__namespace.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48', cx: css$l.loadingCell },
|
|
3717
|
+
React__namespace.createElement(TextPlaceholder, null))));
|
|
3718
|
+
props.renderUnknown = props.renderUnknown
|
|
3719
|
+
|| (() => (React__namespace.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48' }, "Unknown")));
|
|
3720
|
+
props.renderTooltip = (tooltipProps) => React__namespace.createElement(Tooltip, Object.assign({ color: "critical" }, tooltipProps));
|
|
3721
|
+
const isEditable = !!props.onValueChange;
|
|
3722
|
+
props.cx = [
|
|
3723
|
+
'uui-dt-vars',
|
|
3724
|
+
'data-table-cell',
|
|
3725
|
+
props.cx,
|
|
3726
|
+
css$l.cell,
|
|
3727
|
+
css$l['size-' + (props.size || '36')],
|
|
3728
|
+
css$l[`padding-${props.padding || (isEditable && !props.rowProps.isLoading && '0') || '12'}`],
|
|
3729
|
+
props.isFirstColumn && css$l[`padding-left-${props.padding || (isEditable && !props.rowProps.isLoading && '12') || '24'}`],
|
|
3730
|
+
props.isLastColumn && css$l['padding-right-24'],
|
|
3731
|
+
css$l[`align-widgets-${props.alignActions || 'top'}`],
|
|
3732
|
+
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
3733
|
+
];
|
|
3734
|
+
return React__namespace.createElement(uuiComponents.DataTableCell, Object.assign({}, props));
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3737
|
+
var css$k = {"uui-typography":"ULyBfz","hero-header":"hGdWXa","promo-header":"i6sj5V","uui-critical":"_95XDh-","uui-info":"X0gYe-","uui-success":"KhZHw4","uui-warning":"TDOM9h","uui-highlight":"pAahi-","uui-typography-size-12":"fgwdqC","uui-typography-size-14":"cZh83X","uui-typography-size-16":"BpahX7","root":"IVVmUR","size-24":"KSSjqJ","size-30":"SRNUed","size-36":"BVfWJw","size-48":"_7hUmjB","size-60":"IxBdkJ","uuiTypography":"ULyBfz","heroHeader":"hGdWXa","promoHeader":"i6sj5V","uuiCritical":"_95XDh-","uuiInfo":"X0gYe-","uuiSuccess":"KhZHw4","uuiWarning":"TDOM9h","uuiHighlight":"pAahi-","uuiTypographySize12":"fgwdqC","uuiTypographySize14":"cZh83X","uuiTypographySize16":"BpahX7","size24":"KSSjqJ","size30":"SRNUed","size36":"BVfWJw","size48":"_7hUmjB","size60":"IxBdkJ"};
|
|
3620
3738
|
|
|
3621
3739
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3622
3740
|
// 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.
|
|
@@ -3632,7 +3750,7 @@ const DataTableRow = uuiCore.withMods(uuiComponents.DataTableRow, ({ borderBotto
|
|
|
3632
3750
|
];
|
|
3633
3751
|
}, () => propsMods);
|
|
3634
3752
|
|
|
3635
|
-
var css$j = {"uui-typography":"
|
|
3753
|
+
var css$j = {"uui-typography":"qW9rk9","hero-header":"K-iY35","promo-header":"_57zjph","uui-critical":"-WzvIr","uui-info":"XDd-az","uui-success":"CKLw-X","uui-warning":"rMZn2T","uui-highlight":"z6AKeY","uui-typography-size-12":"_6PtkM0","uui-typography-size-14":"Ww9Eyy","uui-typography-size-16":"VV8qDh","sorting-panel-container":"UwExHH","sort-active":"_6LMovX","uuiTypography":"qW9rk9","heroHeader":"K-iY35","promoHeader":"_57zjph","uuiCritical":"-WzvIr","uuiInfo":"XDd-az","uuiSuccess":"CKLw-X","uuiWarning":"rMZn2T","uuiHighlight":"z6AKeY","uuiTypographySize12":"_6PtkM0","uuiTypographySize14":"Ww9Eyy","uuiTypographySize16":"VV8qDh","sortingPanelContainer":"UwExHH","sortActive":"_6LMovX"};
|
|
3636
3754
|
|
|
3637
3755
|
var _path$h;
|
|
3638
3756
|
function _extends$i() { _extends$i = 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$i.apply(this, arguments); }
|
|
@@ -3681,13 +3799,13 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
3681
3799
|
}, uuiCore.mobilePopperModifier,
|
|
3682
3800
|
], []);
|
|
3683
3801
|
const closeDropdown = React.useCallback(() => props.onOpenChange(false), [props.onOpenChange]);
|
|
3684
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__namespace.default.createElement(MobileDropdownWrapper, { width:
|
|
3802
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__namespace.default.createElement(MobileDropdownWrapper, { width: 280, maxWidth: "auto", title: props.title, onClose: closeDropdown },
|
|
3685
3803
|
props.isSortable && React__namespace.default.createElement(SortingPanel, { sortDirection: props.sortDirection, onSort: props.onSort }),
|
|
3686
3804
|
props.renderFilter(dropdownProps))), modifiers: popperModifiers, value: props.isOpen, onValueChange: props.onOpenChange }));
|
|
3687
3805
|
};
|
|
3688
3806
|
const ColumnHeaderDropdown = React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
3689
3807
|
|
|
3690
|
-
var css$i = {"uui-typography":"
|
|
3808
|
+
var css$i = {"uui-typography":"KqEOoo","hero-header":"TQcJ6a","promo-header":"vJiB-2","uui-critical":"GM6o-J","uui-info":"KvAS6A","uui-success":"ETiEyh","uui-warning":"iplftE","uui-highlight":"_9nghK3","uui-typography-size-12":"oNNaNC","uui-typography-size-14":"kBX8sq","uui-typography-size-16":"vjT70O","cell":"c-Irou","sort-icon":"_8D4KQM","dropdown-icon":"fea8aD","infoIcon":"t7rPM0","resizable":"Krkp5M","size-24":"rHG8RZ","size-30":"i0nLpb","size-36":"P-w3lL","size-42":"r48THR","size-48":"uv45TC","padding-left-24":"_1Bv9I-","padding-right-24":"z6JxL8","caption":"XC2JHZ","checkbox":"_0x9nLT","icon":"j7ML52","icon-cell":"m2RTma","align-right":"kCOdfN","align-center":"NOvjJe","tooltip-wrapper":"sVKO--","cell-tooltip":"AuvgjZ","upper-case":"CJdc5z","font-size-14":"bamgF2","resize-mark":"ntNxui","draggable":"sNDJFX","ghost":"_3ZPxKR","is-dragged-out":"muSeFq","dnd-marker-left":"zpZnD9","dnd-marker-right":"nu6z9E","cell-tooltip-wrapper":"kvFvIV","cell-tooltip-text":"nuzBl1","uuiTypography":"KqEOoo","heroHeader":"TQcJ6a","promoHeader":"vJiB-2","uuiCritical":"GM6o-J","uuiInfo":"KvAS6A","uuiSuccess":"ETiEyh","uuiWarning":"iplftE","uuiHighlight":"_9nghK3","uuiTypographySize12":"oNNaNC","uuiTypographySize14":"kBX8sq","uuiTypographySize16":"vjT70O","sortIcon":"_8D4KQM","dropdownIcon":"fea8aD","size24":"rHG8RZ","size30":"i0nLpb","size36":"P-w3lL","size42":"r48THR","size48":"uv45TC","paddingLeft24":"_1Bv9I-","paddingRight24":"z6JxL8","iconCell":"m2RTma","alignRight":"kCOdfN","alignCenter":"NOvjJe","tooltipWrapper":"sVKO--","cellTooltip":"AuvgjZ","upperCase":"CJdc5z","fontSize14":"bamgF2","resizeMark":"ntNxui","isDraggedOut":"muSeFq","dndMarkerLeft":"zpZnD9","dndMarkerRight":"nu6z9E","cellTooltipWrapper":"kvFvIV","cellTooltipText":"nuzBl1"};
|
|
3691
3809
|
|
|
3692
3810
|
var _path$f;
|
|
3693
3811
|
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); }
|
|
@@ -3755,19 +3873,23 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3755
3873
|
React__namespace.createElement(Text, { key: "text", lineHeight: "30", fontSize: "14", size: "30", cx: uuiCore.cx(css$i.caption, this.getTextStyle(), uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaption) }, this.props.column.caption)),
|
|
3756
3874
|
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$i.icon, css$i.sortIcon, this.props.sortDirection && css$i.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'neutral' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$h : this.props.sortDirection === 'asc' ? ForwardRef$i : ForwardRef$g })),
|
|
3757
3875
|
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$i.icon, !this.props.sortDirection && css$i.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "neutral", icon: ForwardRef$f })),
|
|
3758
|
-
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$i.icon, css$i.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$e : ForwardRef$
|
|
3876
|
+
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$i.icon, css$i.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$e : ForwardRef$z })))));
|
|
3759
3877
|
};
|
|
3760
3878
|
this.renderHeaderCheckbox = () => this.props.selectAll
|
|
3761
3879
|
&& this.props.isFirstColumn && (React__namespace.createElement(Checkbox, Object.assign({ size: +this.props.size < 36 ? '12' : '18' }, this.props.selectAll, { cx: uuiCore.cx(css$i.checkbox, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCheckbox) })));
|
|
3762
3880
|
this.renderResizeMark = (props) => React__namespace.createElement("div", { onMouseDown: props.onResizeStart, className: uuiCore.cx(css$i.resizeMark, uuiCore.uuiMarkers.draggable) });
|
|
3763
|
-
this.renderCellContent = (props, dropdownProps) =>
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3881
|
+
this.renderCellContent = (props, dropdownProps) => {
|
|
3882
|
+
var _a;
|
|
3883
|
+
const isResizable = (_a = this.props.column.allowResizing) !== null && _a !== void 0 ? _a : this.props.allowColumnsResizing;
|
|
3884
|
+
return (React__namespace.createElement(FlexCell, Object.assign({}, this.props.column, { minWidth: this.props.column.width, ref: (ref) => {
|
|
3885
|
+
var _a;
|
|
3886
|
+
props.ref(ref);
|
|
3887
|
+
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
3888
|
+
}, cx: uuiCore.cx('uui-dt-vars', uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$i.cell, css$i['size-' + (this.props.size || '36')], this.props.isFirstColumn && css$i['padding-left-24'], this.props.isLastColumn && css$i['padding-right-24'], this.props.column.cx, isResizable && css$i.resizable, props.isDraggable && css$i.draggable, props.isDragGhost && css$i.ghost, props.isDraggedOut && css$i.isDraggedOut, props.isDndInProgress && css$i['dnd-marker-' + props.position]), onClick: !this.props.column.renderFilter ? props.toggleSort : dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.onClick, rawProps: Object.assign({ role: 'columnheader', 'aria-sort': this.props.sortDirection === 'asc' ? 'ascending' : this.props.sortDirection ? 'descending' : 'none' }, props.eventHandlers) }),
|
|
3889
|
+
this.renderHeaderCheckbox(),
|
|
3890
|
+
this.getColumnCaption(),
|
|
3891
|
+
isResizable && this.renderResizeMark(props)));
|
|
3892
|
+
};
|
|
3771
3893
|
this.renderCellWithFilter = (props) => (React__namespace.createElement(ColumnHeaderDropdown, { isOpen: this.state.isDropdownOpen, isSortable: this.props.column.isSortable, renderTarget: (dropdownProps) => this.renderCellContent(props, dropdownProps), renderFilter: this.props.renderFilter, onSort: this.props.onSort, sortDirection: this.props.sortDirection, onOpenChange: (isDropdownOpen) => this.setState({ isDropdownOpen }), title: this.props.column.caption }));
|
|
3772
3894
|
}
|
|
3773
3895
|
render() {
|
|
@@ -3775,7 +3897,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3775
3897
|
}
|
|
3776
3898
|
}
|
|
3777
3899
|
|
|
3778
|
-
var css$h = {"uui-typography":"
|
|
3900
|
+
var css$h = {"uui-typography":"LAWGRL","hero-header":"falTc0","promo-header":"Sa6Fei","uui-critical":"msLNAE","uui-info":"b-RREi","uui-success":"_4R6DWY","uui-warning":"HdjbTb","uui-highlight":"_9-D96z","uui-typography-size-12":"jsDkLT","uui-typography-size-14":"Ryf5fJ","uui-typography-size-16":"S7QTqe","header-cell":"scmV7q","config-icon":"Uxd80W","uuiTypography":"LAWGRL","heroHeader":"falTc0","promoHeader":"Sa6Fei","uuiCritical":"msLNAE","uuiInfo":"b-RREi","uuiSuccess":"_4R6DWY","uuiWarning":"HdjbTb","uuiHighlight":"_9-D96z","uuiTypographySize12":"jsDkLT","uuiTypographySize14":"Ryf5fJ","uuiTypographySize16":"S7QTqe","headerCell":"scmV7q","configIcon":"Uxd80W"};
|
|
3779
3901
|
|
|
3780
3902
|
var _path$c;
|
|
3781
3903
|
function _extends$d() { _extends$d = 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$d.apply(this, arguments); }
|
|
@@ -3797,7 +3919,7 @@ const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, ()
|
|
|
3797
3919
|
renderConfigButton: () => React__namespace.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: css$h.configIcon, color: "neutral", icon: ForwardRef$d }),
|
|
3798
3920
|
}));
|
|
3799
3921
|
|
|
3800
|
-
var styles$1 = {"uui-typography":"
|
|
3922
|
+
var styles$1 = {"uui-typography":"TT20jg","hero-header":"AS8fJB","promo-header":"Rejx-H","uui-critical":"-Xcww-","uui-info":"u-JpkZ","uui-success":"hheIP6","uui-warning":"QsBwJb","uui-highlight":"YhlEYE","uui-typography-size-12":"LcGgne","uui-typography-size-14":"iItSq1","uui-typography-size-16":"gsLDLo","main-panel":"nqsKpP","group-title":"CepeuQ","group-title-text":"Ck75kx","group-title-badge":"tYAVN2","group-items":"DrOjx9","no-data":"tFM7VN","h-divider":"v1enP7","search-area":"Ssy6YG","uuiTypography":"TT20jg","heroHeader":"AS8fJB","promoHeader":"Rejx-H","uuiCritical":"-Xcww-","uuiInfo":"u-JpkZ","uuiSuccess":"hheIP6","uuiWarning":"QsBwJb","uuiHighlight":"YhlEYE","uuiTypographySize12":"LcGgne","uuiTypographySize14":"iItSq1","uuiTypographySize16":"gsLDLo","mainPanel":"nqsKpP","groupTitle":"CepeuQ","groupTitleText":"Ck75kx","groupTitleBadge":"tYAVN2","groupItems":"DrOjx9","noData":"tFM7VN","hDivider":"v1enP7","searchArea":"Ssy6YG"};
|
|
3801
3923
|
|
|
3802
3924
|
var _path$b;
|
|
3803
3925
|
function _extends$c() { _extends$c = 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$c.apply(this, arguments); }
|
|
@@ -3874,7 +3996,7 @@ function PinIconButton(props) {
|
|
|
3874
3996
|
React__namespace.createElement(IconButton, { icon: pinIcon, onClick: pinClickHandler, isDisabled: isPinnedAlways, color: isPinned ? 'info' : undefined }))));
|
|
3875
3997
|
}
|
|
3876
3998
|
|
|
3877
|
-
var styles = {"uui-typography":"
|
|
3999
|
+
var styles = {"uui-typography":"XZFZl5","hero-header":"xr3X1z","promo-header":"DkWXRk","uui-critical":"GTDPzW","uui-info":"MwhLbs","uui-success":"RxyMpg","uui-warning":"_0fPeFC","uui-highlight":"L4HsyU","uui-typography-size-12":"Q6pjfi","uui-typography-size-14":"Xm1Un6","uui-typography-size-16":"JGHfF1","row-wrapper":"_4FcG7j","not-pinned":"_5lkuzB","pin-icon-button":"F0jr9Y","checkbox":"iP92nV","drag-handle":"O-By6q","dnd-disabled":"Uf-OJo","uuiTypography":"XZFZl5","heroHeader":"xr3X1z","promoHeader":"DkWXRk","uuiCritical":"GTDPzW","uuiInfo":"MwhLbs","uuiSuccess":"RxyMpg","uuiWarning":"_0fPeFC","uuiHighlight":"L4HsyU","uuiTypographySize12":"Q6pjfi","uuiTypographySize14":"Xm1Un6","uuiTypographySize16":"JGHfF1","rowWrapper":"_4FcG7j","notPinned":"_5lkuzB","pinIconButton":"F0jr9Y","dragHandle":"O-By6q","dndDisabled":"Uf-OJo"};
|
|
3878
4000
|
|
|
3879
4001
|
const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
3880
4002
|
const { column } = props;
|
|
@@ -3959,7 +4081,7 @@ function ColumnsConfigurationModal(props) {
|
|
|
3959
4081
|
noVisibleColumns ? (React__namespace.createElement(Tooltip, { content: i18n$1.enableAtLeastOneColumnMessage, placement: "top-end", color: "critical" }, applyButton)) : (applyButton)))));
|
|
3960
4082
|
}
|
|
3961
4083
|
|
|
3962
|
-
var css$g = {"listContainer":"
|
|
4084
|
+
var css$g = {"listContainer":"_9882Ng","header":"AwSNRA","group":"JeyKpk","stickyHeader":"_4s8BtD"};
|
|
3963
4085
|
|
|
3964
4086
|
const getChildrenAndRest = (row, rows) => {
|
|
3965
4087
|
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
@@ -4025,7 +4147,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4025
4147
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4026
4148
|
ref: ref
|
|
4027
4149
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
4028
|
-
clipPath: "url(#
|
|
4150
|
+
clipPath: "url(#jdufip20r8eubn779_a)"
|
|
4029
4151
|
}, _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4030
4152
|
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",
|
|
4031
4153
|
fill: "#F5F6FA"
|
|
@@ -4046,7 +4168,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4046
4168
|
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",
|
|
4047
4169
|
fill: "#1D1E26"
|
|
4048
4170
|
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
4049
|
-
id: "
|
|
4171
|
+
id: "jdufip9x0xejcqsc_b",
|
|
4050
4172
|
style: {
|
|
4051
4173
|
maskType: "alpha"
|
|
4052
4174
|
},
|
|
@@ -4059,7 +4181,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4059
4181
|
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",
|
|
4060
4182
|
fill: "#9BDEFF"
|
|
4061
4183
|
}))), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
4062
|
-
mask: "url(#
|
|
4184
|
+
mask: "url(#jdufip9x0xejcqsc_b)",
|
|
4063
4185
|
fillRule: "evenodd",
|
|
4064
4186
|
clipRule: "evenodd"
|
|
4065
4187
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -4145,7 +4267,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4145
4267
|
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",
|
|
4146
4268
|
fill: "#fff"
|
|
4147
4269
|
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
4148
|
-
id: "
|
|
4270
|
+
id: "jdufip20r8eubn779_a"
|
|
4149
4271
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
4150
4272
|
fill: "#fff",
|
|
4151
4273
|
transform: "translate(.552)",
|
|
@@ -4154,7 +4276,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4154
4276
|
};
|
|
4155
4277
|
var ForwardRef$9 = /*#__PURE__*/React.forwardRef(SvgEmptyTable);
|
|
4156
4278
|
|
|
4157
|
-
var css$f = {"sticky-header":"
|
|
4279
|
+
var css$f = {"sticky-header":"sapEod","table":"_2EYfig","no-results":"BJBATb","no-results-icon":"crLhs5","no-results-title":"bxvPfk","stickyHeader":"sapEod","noResults":"BJBATb","noResultsIcon":"crLhs5","noResultsTitle":"bxvPfk"};
|
|
4158
4280
|
|
|
4159
4281
|
function DataTable(props) {
|
|
4160
4282
|
var _a;
|
|
@@ -4197,16 +4319,17 @@ function DataTable(props) {
|
|
|
4197
4319
|
props, columns, rows, renderNoResultsBlock, onConfigurationButtonClick,
|
|
4198
4320
|
]);
|
|
4199
4321
|
return (React__namespace.createElement(uuiComponents.DataTableSelectionProvider, { onCopy: props.onCopy, rows: rows, columns: columns },
|
|
4200
|
-
React__namespace.createElement(
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4322
|
+
React__namespace.createElement(uuiComponents.DataTableFocusProvider, { dataTableFocusManager: props.dataTableFocusManager },
|
|
4323
|
+
React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rowsCount: props.rowsCount, renderRows: renderRowsContainer, cx: uuiCore.cx(css$f.table, 'uui-dt-vars'), isLoading: props.isReloading, rowsSelector: "[role=row]", rawProps: {
|
|
4324
|
+
role: 'table',
|
|
4325
|
+
'aria-colcount': columns.length,
|
|
4326
|
+
'aria-rowcount': props.rowsCount,
|
|
4327
|
+
} }))));
|
|
4205
4328
|
}
|
|
4206
4329
|
|
|
4207
|
-
var css$e = {"root":"
|
|
4330
|
+
var css$e = {"root":"BULoA8"};
|
|
4208
4331
|
|
|
4209
|
-
var css$d = {"root":"
|
|
4332
|
+
var css$d = {"root":"D-s6bp","burger-content":"blkUWp","burgerContent":"blkUWp"};
|
|
4210
4333
|
|
|
4211
4334
|
var _path$7;
|
|
4212
4335
|
function _extends$8() { _extends$8 = 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$8.apply(this, arguments); }
|
|
@@ -4273,7 +4396,7 @@ var SvgTriangle = function SvgTriangle(props, ref) {
|
|
|
4273
4396
|
};
|
|
4274
4397
|
var ForwardRef$6 = /*#__PURE__*/React.forwardRef(SvgTriangle);
|
|
4275
4398
|
|
|
4276
|
-
var css$c = {"uui-typography":"
|
|
4399
|
+
var css$c = {"uui-typography":"Z3x-BM","hero-header":"y3V-v5","promo-header":"AJuYqN","uui-critical":"-nIBQb","uui-info":"VoH3Xo","uui-success":"_3Am2dN","uui-warning":"q2mQfv","uui-highlight":"B1jPMy","uui-typography-size-12":"_0SvSl5","uui-typography-size-14":"_8Y8JM7","uui-typography-size-16":"SEN7wx","root":"S87UWs","button-primary":"NP1Y6w","button-secondary":"jTC2ri","hasIcon":"-KCmGd","dropdown":"o7RykL","uuiTypography":"Z3x-BM","heroHeader":"y3V-v5","promoHeader":"AJuYqN","uuiCritical":"-nIBQb","uuiInfo":"VoH3Xo","uuiSuccess":"_3Am2dN","uuiWarning":"q2mQfv","uuiHighlight":"B1jPMy","uuiTypographySize12":"_0SvSl5","uuiTypographySize14":"_8Y8JM7","uuiTypographySize16":"SEN7wx","buttonPrimary":"NP1Y6w","buttonSecondary":"jTC2ri"};
|
|
4277
4400
|
|
|
4278
4401
|
const BurgerButton = uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
4279
4402
|
css$c.root,
|
|
@@ -4330,13 +4453,13 @@ var SvgMenuInputCancel = function SvgMenuInputCancel(props, ref) {
|
|
|
4330
4453
|
};
|
|
4331
4454
|
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgMenuInputCancel);
|
|
4332
4455
|
|
|
4333
|
-
var css$b = {"search-input":"
|
|
4456
|
+
var css$b = {"search-input":"NCxjSp","searchInput":"NCxjSp"};
|
|
4334
4457
|
|
|
4335
4458
|
function BurgerSearch(props) {
|
|
4336
4459
|
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(css$b.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$14, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$5 }));
|
|
4337
4460
|
}
|
|
4338
4461
|
|
|
4339
|
-
var css$a = {"root":"
|
|
4462
|
+
var css$a = {"root":"Mn50b5","group-header":"D-NFwz","group-name":"_7TdB4H","line":"YfPxVB","groupHeader":"D-NFwz","groupName":"_7TdB4H"};
|
|
4340
4463
|
|
|
4341
4464
|
function BurgerGroupHeader(props) {
|
|
4342
4465
|
return (React__namespace.createElement("div", { className: cx__default.default(css$a.root, css$a.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4344,7 +4467,7 @@ function BurgerGroupHeader(props) {
|
|
|
4344
4467
|
React__namespace.createElement("span", { className: css$a.groupName }, props.caption)));
|
|
4345
4468
|
}
|
|
4346
4469
|
|
|
4347
|
-
var css$9 = {"uui-typography":"
|
|
4470
|
+
var css$9 = {"uui-typography":"tsXsIp","hero-header":"sGVNVR","promo-header":"M0g-Mx","uui-critical":"gOEA7O","uui-info":"OrROWF","uui-success":"_0EvuXS","uui-warning":"PlnGFn","uui-highlight":"_22Anf4","uui-typography-size-12":"EwtiOG","uui-typography-size-14":"bfKwSj","uui-typography-size-16":"LKoX54","root":"RL38By","type-primary":"_8kGjpz","type-secondary":"kXJCF9","uuiTypography":"tsXsIp","heroHeader":"sGVNVR","promoHeader":"M0g-Mx","uuiCritical":"gOEA7O","uuiInfo":"OrROWF","uuiSuccess":"_0EvuXS","uuiWarning":"PlnGFn","uuiHighlight":"_22Anf4","uuiTypographySize12":"EwtiOG","uuiTypographySize14":"bfKwSj","uuiTypographySize16":"LKoX54","typePrimary":"_8kGjpz","typeSecondary":"kXJCF9"};
|
|
4348
4471
|
|
|
4349
4472
|
var _path$4;
|
|
4350
4473
|
function _extends$4() { _extends$4 = 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$4.apply(this, arguments); }
|
|
@@ -4364,7 +4487,7 @@ var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgChevronDown24);
|
|
|
4364
4487
|
|
|
4365
4488
|
const MainMenuButton = uuiCore.withMods(uuiComponents.Button, (mods) => [css$9.root, css$9['type-' + (mods.type || 'primary')]], () => ({ dropdownIcon: ForwardRef$4, role: 'menuitem' }));
|
|
4366
4489
|
|
|
4367
|
-
var css$8 = {"dropdown-body":"
|
|
4490
|
+
var css$8 = {"dropdown-body":"O1NpHx","dropdownBody":"O1NpHx"};
|
|
4368
4491
|
|
|
4369
4492
|
class MainMenuDropdown extends React__namespace.Component {
|
|
4370
4493
|
render() {
|
|
@@ -4418,12 +4541,12 @@ var SvgGlobalMenu = function SvgGlobalMenu(props, ref) {
|
|
|
4418
4541
|
};
|
|
4419
4542
|
var ForwardRef$3 = /*#__PURE__*/React.forwardRef(SvgGlobalMenu);
|
|
4420
4543
|
|
|
4421
|
-
var css$7 = {"global-menu-btn":"
|
|
4544
|
+
var css$7 = {"global-menu-btn":"QQ-fbr","globalMenuIcon":"bKjc3p","globalMenuBtn":"QQ-fbr"};
|
|
4422
4545
|
|
|
4423
4546
|
const GlobalMenu = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx__default.default(css$7.globalMenuBtn, props.cx) }, props.rawProps),
|
|
4424
4547
|
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$3, cx: css$7.globalMenuIcon }))));
|
|
4425
4548
|
|
|
4426
|
-
var css$6 = {"container":"
|
|
4549
|
+
var css$6 = {"container":"ocq0c6","open":"j1mavv"};
|
|
4427
4550
|
|
|
4428
4551
|
const MainMenuAvatar = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$6.container, props.isDropdown && css$6.dropdown, props.isOpen && css$6.open, props.onClick && uuiCore.uuiMarkers.clickable, props.cx), onClick: props.onClick },
|
|
4429
4552
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -4431,18 +4554,18 @@ const MainMenuAvatar = React__namespace.forwardRef((props, ref) => (React__names
|
|
|
4431
4554
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
4432
4555
|
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$1a, flipY: props.isOpen }))))));
|
|
4433
4556
|
|
|
4434
|
-
var css$5 = {"search-input":"
|
|
4557
|
+
var css$5 = {"search-input":"nVqUZe","searchInput":"nVqUZe"};
|
|
4435
4558
|
|
|
4436
4559
|
const MainMenuSearch = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
4437
4560
|
var _a;
|
|
4438
4561
|
return (React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition: "left", icon: ForwardRef$14, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$5 }, props, iEditable, { ref: ref, cx: uuiCore.cx(css$5.searchInput, props.cx) }, props.rawProps)));
|
|
4439
4562
|
} }))));
|
|
4440
4563
|
|
|
4441
|
-
var css$4 = {"container":"
|
|
4564
|
+
var css$4 = {"container":"_1ERubV"};
|
|
4442
4565
|
|
|
4443
4566
|
const MainMenuIcon = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css$4.container) }, props))));
|
|
4444
4567
|
|
|
4445
|
-
var css$3 = {"root":"
|
|
4568
|
+
var css$3 = {"root":"AaVf8p"};
|
|
4446
4569
|
|
|
4447
4570
|
const Anchor = uuiCore.withMods(uuiComponents.Anchor, () => [css$3.root]);
|
|
4448
4571
|
|
|
@@ -4499,7 +4622,7 @@ var SvgShape = function SvgShape(props, ref) {
|
|
|
4499
4622
|
};
|
|
4500
4623
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgShape);
|
|
4501
4624
|
|
|
4502
|
-
var css$2 = {"root":"
|
|
4625
|
+
var css$2 = {"root":"QrWkbG","drop-start":"BHCWUV","drop-over":"d7h0Ta","link":"DJh969","drop-area":"sfRo56","icon-blue":"bELkH7","dropStart":"BHCWUV","dropOver":"d7h0Ta","dropArea":"sfRo56","iconBlue":"bELkH7"};
|
|
4503
4626
|
|
|
4504
4627
|
class DropSpot extends React__namespace.Component {
|
|
4505
4628
|
constructor() {
|
|
@@ -4523,9 +4646,9 @@ class DropSpot extends React__namespace.Component {
|
|
|
4523
4646
|
}
|
|
4524
4647
|
}
|
|
4525
4648
|
|
|
4526
|
-
var css$1 = {"root":"
|
|
4649
|
+
var css$1 = {"root":"mQqmvX","file-name":"OEJNaK","default-color":"wmqfHy","doc-color":"sqNMxF","xls-color":"wEbA2M","pdf-color":"IWxNv5","movie-color":"_3YJaam","img-color":"Yd6luC","mov-color":"B9eaQc","error-block":"Fiukdl","icons-block":"zgSr0r","fileName":"OEJNaK","defaultColor":"wmqfHy","docColor":"sqNMxF","xlsColor":"wEbA2M","pdfColor":"IWxNv5","movieColor":"_3YJaam","imgColor":"Yd6luC","movColor":"B9eaQc","errorBlock":"Fiukdl","iconsBlock":"zgSr0r"};
|
|
4527
4650
|
|
|
4528
|
-
var css = {"root":"
|
|
4651
|
+
var css = {"root":"UAiMdl"};
|
|
4529
4652
|
|
|
4530
4653
|
const SvgCircleProgress = React__namespace.forwardRef((props, ref) => {
|
|
4531
4654
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -4678,6 +4801,7 @@ exports.DataPickerBody = DataPickerBody;
|
|
|
4678
4801
|
exports.DataPickerFooter = DataPickerFooter;
|
|
4679
4802
|
exports.DataPickerHeader = DataPickerHeader;
|
|
4680
4803
|
exports.DataPickerRow = DataPickerRow;
|
|
4804
|
+
exports.DataRowAddons = DataRowAddons;
|
|
4681
4805
|
exports.DataRowsContainer = DataRowsContainer;
|
|
4682
4806
|
exports.DataTable = DataTable;
|
|
4683
4807
|
exports.DataTableCell = DataTableCell;
|
|
@@ -4763,23 +4887,7 @@ exports.VerticalTabButton = VerticalTabButton;
|
|
|
4763
4887
|
exports.VirtualList = VirtualList;
|
|
4764
4888
|
exports.WarningAlert = WarningAlert;
|
|
4765
4889
|
exports.WarningNotification = WarningNotification;
|
|
4766
|
-
exports.allIconColors = allIconColors;
|
|
4767
|
-
exports.allLinkButtonColors = allLinkButtonColors;
|
|
4768
|
-
exports.applyBadgeMods = applyBadgeMods;
|
|
4769
|
-
exports.applyButtonMods = applyButtonMods;
|
|
4770
|
-
exports.applyCheckboxMods = applyCheckboxMods;
|
|
4771
4890
|
exports.applyDateSelectionMods = applyDateSelectionMods;
|
|
4772
|
-
exports.applyInputAddonMods = applyInputAddonMods;
|
|
4773
|
-
exports.applyNumericInputMods = applyNumericInputMods;
|
|
4774
|
-
exports.applyProgressBarMods = applyProgressBarMods;
|
|
4775
|
-
exports.applySliderMods = applySliderMods;
|
|
4776
|
-
exports.applySpinnerMods = applySpinnerMods;
|
|
4777
|
-
exports.applySwitchMods = applySwitchMods;
|
|
4778
|
-
exports.applyTagMods = applyTagMods;
|
|
4779
|
-
exports.applyTextAreaMods = applyTextAreaMods;
|
|
4780
|
-
exports.applyTextInputMods = applyTextInputMods;
|
|
4781
|
-
exports.defaultBadgeFill = defaultBadgeFill;
|
|
4782
|
-
exports.defaultBadgeSize = defaultBadgeSize;
|
|
4783
4891
|
exports.defaultPredicates = defaultPredicates;
|
|
4784
4892
|
exports.getHighlightRanges = getHighlightRanges;
|
|
4785
4893
|
exports.getHighlightedSearchMatches = getHighlightedSearchMatches;
|