@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.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { forwardRef, useContext, useRef, useState, useMemo, useEffect, useCallback } from 'react';
|
|
3
3
|
import * as uuiComponents from '@epam/uui-components';
|
|
4
|
-
import {
|
|
4
|
+
import { Button as Button$1, IconButton as IconButton$1, RadioInput as RadioInput$1, TextInput as TextInput$1, ControlGroup as ControlGroup$1, NumericInput as NumericInput$1, TextArea as TextArea$1, TimePickerBody as TimePickerBody$1, BaseTimePicker, InputAddon as InputAddon$1, Slider as Slider$1, Calendar as Calendar$1, DatePickerBodyBase, valueFormat, YearSelection, MonthSelection, i18n as i18n$1, IconContainer, Dropdown as Dropdown$1, Anchor as Anchor$1, FlexRow as FlexRow$1, Text as Text$1, FlexSpacer, FlexCell as FlexCell$1, VPanel, ScrollBars as ScrollBars$1, AvatarStack as AvatarStack$1, Spinner as Spinner$1, Paginator as Paginator$1, ProgressBar as ProgressBar$1, DragHandle, Blocker as Blocker$1, PickerBodyBase, DataPickerRow as DataPickerRow$1, Avatar, usePickerModal, handleDataSourceKeyboard, PickerToggler as PickerToggler$1, usePickerInput, usePickerList, BaseDatePicker, BaseRangeDatePicker, AdaptivePanel, ModalBlocker as ModalBlocker$1, ModalWindow as ModalWindow$1, CalendarPresets as CalendarPresets$1, uuiDaySelection, uuiDatePickerBodyBase, DataTableCell as DataTableCell$1, DataTableRow as DataTableRow$1, DataTableHeaderCell as DataTableHeaderCell$1, DataTableHeaderRow as DataTableHeaderRow$1, useColumnsConfiguration, DataTableSelectionProvider, DataTableFocusProvider, Burger as Burger$1, UploadFileToggler, DropSpot as DropSpot$1 } from '@epam/uui-components';
|
|
5
5
|
export { Avatar, FlexSpacer, IconContainer } from '@epam/uui-components';
|
|
6
|
-
import { withMods,
|
|
6
|
+
import { withMods, IEditableDebouncer, devLogger, cx as cx$1, UuiContext, uuiMod, i18n as i18n$2, directionMode, uuiElement, uuiMarkers, useVirtualList, useScrollShadows, Lens, isMobile, useForceUpdate, getSeparatedValue, useArrayDataSource, getOrderBetween, useUuiContext, arrayToMatrix, mobilePopperModifier, uuiDataTableHeaderCell, DndActor, useColumnsConfig, uuiScrollShadows, Form as Form$1, useForm as useForm$1, formatBytes } from '@epam/uui-core';
|
|
7
7
|
import cx from 'classnames';
|
|
8
8
|
import dayjs from 'dayjs';
|
|
9
9
|
import customParseFormat from 'dayjs/plugin/customParseFormat.js';
|
|
@@ -570,274 +570,44 @@ const systemIcons = {
|
|
|
570
570
|
},
|
|
571
571
|
};
|
|
572
572
|
|
|
573
|
-
var css$
|
|
574
|
-
|
|
575
|
-
const AvatarStack = withMods(AvatarStack$1, () => [css$1m.root]);
|
|
576
|
-
|
|
577
|
-
var css$1l = {"root":"tgDuFG","size-24":"_6AG2w-","size-18":"AFmt8Q","size-12":"XDRpIZ","size24":"_6AG2w-","size18":"AFmt8Q","size12":"XDRpIZ"};
|
|
573
|
+
var css$1o = {"root":"g9tgpe","size-24":"_6-zHVP","size-18":"Tn39rO","size-12":"RcGZ35","size24":"_6-zHVP","size18":"Tn39rO","size12":"RcGZ35"};
|
|
578
574
|
|
|
579
575
|
const CountIndicator = forwardRef((props, ref) => {
|
|
580
576
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
581
|
-
css$
|
|
577
|
+
css$1o.root,
|
|
582
578
|
'uui-count_indicator',
|
|
583
|
-
css$
|
|
579
|
+
css$1o[`size-${props.size || 24}`],
|
|
584
580
|
props.color && `uui-color-${props.color}`,
|
|
585
581
|
props.cx,
|
|
586
582
|
]) }, props.caption));
|
|
587
583
|
});
|
|
588
584
|
|
|
589
|
-
var css$
|
|
590
|
-
|
|
591
|
-
const mapSize$1 = {
|
|
592
|
-
48: '48',
|
|
593
|
-
42: '48',
|
|
594
|
-
36: '36',
|
|
595
|
-
30: '30',
|
|
596
|
-
24: '30',
|
|
597
|
-
18: '18',
|
|
598
|
-
};
|
|
599
|
-
const defaultBadgeSize = '36';
|
|
600
|
-
const defaultBadgeFill = 'solid';
|
|
601
|
-
function applyBadgeMods(mods) {
|
|
602
|
-
return [
|
|
603
|
-
'uui-badge',
|
|
604
|
-
css$1k.root,
|
|
605
|
-
css$1k['size-' + (mods.size || defaultBadgeSize)],
|
|
606
|
-
`uui-fill-${mods.fill || defaultBadgeFill}`,
|
|
607
|
-
mods.color && `uui-color-${mods.color}`,
|
|
608
|
-
mods.indicator && 'uui-indicator',
|
|
609
|
-
];
|
|
610
|
-
}
|
|
611
|
-
const mapCountIndicatorSizes$1 = {
|
|
612
|
-
18: '12',
|
|
613
|
-
24: '18',
|
|
614
|
-
30: '18',
|
|
615
|
-
36: '18',
|
|
616
|
-
42: '24',
|
|
617
|
-
48: '24',
|
|
618
|
-
};
|
|
619
|
-
const Badge = withMods(Button$1, applyBadgeMods, (props) => {
|
|
620
|
-
if (process.env.NODE_ENV !== "production") {
|
|
621
|
-
devLogger.warnAboutDeprecatedPropValue({
|
|
622
|
-
component: 'Badge',
|
|
623
|
-
propName: 'size',
|
|
624
|
-
propValue: props.size,
|
|
625
|
-
propValueUseInstead: '42',
|
|
626
|
-
condition: () => ['48'].indexOf(props.size) !== -1,
|
|
627
|
-
});
|
|
628
|
-
}
|
|
629
|
-
return {
|
|
630
|
-
dropdownIcon: systemIcons[(props.size && mapSize$1[props.size]) || defaultBadgeSize].foldingArrow,
|
|
631
|
-
clearIcon: systemIcons[(props.size && mapSize$1[props.size]) || defaultBadgeSize].clear,
|
|
632
|
-
countPosition: 'left',
|
|
633
|
-
countIndicator: (countIndicatorProps) => (React__default.createElement(CountIndicator, Object.assign({}, countIndicatorProps, { color: null, size: mapCountIndicatorSizes$1[props.size || defaultBadgeSize] }))),
|
|
634
|
-
indicator: props.indicator || false,
|
|
635
|
-
};
|
|
636
|
-
});
|
|
637
|
-
|
|
638
|
-
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"};
|
|
639
|
-
|
|
640
|
-
const defaultSize$a = '36';
|
|
641
|
-
const mapSize = {
|
|
642
|
-
48: '48',
|
|
643
|
-
42: '48',
|
|
644
|
-
36: '36',
|
|
645
|
-
30: '30',
|
|
646
|
-
24: '30',
|
|
647
|
-
18: '18',
|
|
648
|
-
};
|
|
649
|
-
const mapCountIndicatorSizes = {
|
|
650
|
-
18: '12',
|
|
651
|
-
24: '18',
|
|
652
|
-
30: '18',
|
|
653
|
-
36: '18',
|
|
654
|
-
42: '24',
|
|
655
|
-
48: '24',
|
|
656
|
-
};
|
|
657
|
-
function applyTagMods(props) {
|
|
658
|
-
return [
|
|
659
|
-
css$1j['size-' + (props.size || defaultSize$a)],
|
|
660
|
-
css$1j.root,
|
|
661
|
-
`uui-color-${props.color || 'neutral'}`,
|
|
662
|
-
`uui-fill-${props.fill || 'solid'}`,
|
|
663
|
-
'uui-tag',
|
|
664
|
-
];
|
|
665
|
-
}
|
|
666
|
-
const Tag = withMods(Button$1, applyTagMods, (props) => ({
|
|
667
|
-
dropdownIcon: systemIcons[mapSize[props.size] || defaultSize$a].foldingArrow,
|
|
668
|
-
clearIcon: systemIcons[mapSize[props.size] || defaultSize$a].clear,
|
|
669
|
-
countIndicator: (countIndicatorProps) => (React__default.createElement(CountIndicator, Object.assign({}, countIndicatorProps, { color: (!props.color || props.color === 'neutral') ? 'white' : props.color, size: mapCountIndicatorSizes[props.size || defaultSize$a] }))),
|
|
670
|
-
}));
|
|
671
|
-
|
|
672
|
-
var css$1i = {"root":"GnKCde","uui-spinner":"fGZaIO","uuiSpinner":"fGZaIO"};
|
|
673
|
-
|
|
674
|
-
function applySpinnerMods() {
|
|
675
|
-
return [css$1i.root, 'uui-spinner'];
|
|
676
|
-
}
|
|
677
|
-
const Spinner = withMods(Spinner$1, applySpinnerMods);
|
|
678
|
-
|
|
679
|
-
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"};
|
|
680
|
-
|
|
681
|
-
var _path$L;
|
|
682
|
-
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); }
|
|
683
|
-
var SvgNavigationChevronLeft12 = function SvgNavigationChevronLeft12(props, ref) {
|
|
684
|
-
return /*#__PURE__*/React.createElement("svg", _extends$N({
|
|
685
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
686
|
-
width: 13,
|
|
687
|
-
height: 12,
|
|
688
|
-
viewBox: "0 0 13 12",
|
|
689
|
-
ref: ref
|
|
690
|
-
}, props), _path$L || (_path$L = /*#__PURE__*/React.createElement("path", {
|
|
691
|
-
fillRule: "evenodd",
|
|
692
|
-
d: "M8.205 3.705 7.5 3l-3 3 3 3 .705-.705L5.915 6l2.29-2.295z",
|
|
693
|
-
clipRule: "evenodd"
|
|
694
|
-
})));
|
|
695
|
-
};
|
|
696
|
-
var ForwardRef$N = /*#__PURE__*/forwardRef(SvgNavigationChevronLeft12);
|
|
697
|
-
|
|
698
|
-
var _path$K;
|
|
699
|
-
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); }
|
|
700
|
-
var SvgNavigationChevronRight12 = function SvgNavigationChevronRight12(props, ref) {
|
|
701
|
-
return /*#__PURE__*/React.createElement("svg", _extends$M({
|
|
702
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
703
|
-
width: 13,
|
|
704
|
-
height: 12,
|
|
705
|
-
viewBox: "0 0 13 12",
|
|
706
|
-
ref: ref
|
|
707
|
-
}, props), _path$K || (_path$K = /*#__PURE__*/React.createElement("path", {
|
|
708
|
-
fillRule: "evenodd",
|
|
709
|
-
d: "m5.5 3-.705.705L7.085 6l-2.29 2.295L5.5 9l3-3-3-3z",
|
|
710
|
-
clipRule: "evenodd"
|
|
711
|
-
})));
|
|
712
|
-
};
|
|
713
|
-
var ForwardRef$M = /*#__PURE__*/forwardRef(SvgNavigationChevronRight12);
|
|
714
|
-
|
|
715
|
-
var _path$J;
|
|
716
|
-
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); }
|
|
717
|
-
var SvgNavigationChevronLeft18 = function SvgNavigationChevronLeft18(props, ref) {
|
|
718
|
-
return /*#__PURE__*/React.createElement("svg", _extends$L({
|
|
719
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
720
|
-
width: 18,
|
|
721
|
-
height: 18,
|
|
722
|
-
viewBox: "0 0 18 18",
|
|
723
|
-
ref: ref
|
|
724
|
-
}, props), _path$J || (_path$J = /*#__PURE__*/React.createElement("path", {
|
|
725
|
-
fillRule: "evenodd",
|
|
726
|
-
d: "M11.557 5.558 10.5 4.5 6 9l4.5 4.5 1.057-1.057L8.123 9l3.434-3.442z",
|
|
727
|
-
clipRule: "evenodd"
|
|
728
|
-
})));
|
|
729
|
-
};
|
|
730
|
-
var ForwardRef$L = /*#__PURE__*/forwardRef(SvgNavigationChevronLeft18);
|
|
731
|
-
|
|
732
|
-
var _path$I;
|
|
733
|
-
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); }
|
|
734
|
-
var SvgNavigationChevronRight18 = function SvgNavigationChevronRight18(props, ref) {
|
|
735
|
-
return /*#__PURE__*/React.createElement("svg", _extends$K({
|
|
736
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
737
|
-
width: 18,
|
|
738
|
-
height: 18,
|
|
739
|
-
viewBox: "0 0 18 18",
|
|
740
|
-
ref: ref
|
|
741
|
-
}, props), _path$I || (_path$I = /*#__PURE__*/React.createElement("path", {
|
|
742
|
-
fillRule: "evenodd",
|
|
743
|
-
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",
|
|
744
|
-
clipRule: "evenodd"
|
|
745
|
-
})));
|
|
746
|
-
};
|
|
747
|
-
var ForwardRef$K = /*#__PURE__*/forwardRef(SvgNavigationChevronRight18);
|
|
748
|
-
|
|
749
|
-
function Paginator(props) {
|
|
750
|
-
const renderPaginator = (params) => {
|
|
751
|
-
var _a, _b;
|
|
752
|
-
return (React__default.createElement("nav", Object.assign({ role: "navigation", className: cx(css$1h.root, 'uui-paginator') }, params.rawProps),
|
|
753
|
-
React__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" }),
|
|
754
|
-
params.pages.map((page, index) => {
|
|
755
|
-
var _a, _b;
|
|
756
|
-
if (page.type === 'spacer') {
|
|
757
|
-
return (React__default.createElement(Button, { cx: cx(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 }));
|
|
758
|
-
}
|
|
759
|
-
else {
|
|
760
|
-
return (React__default.createElement(Button, { cx: cx(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" }));
|
|
761
|
-
}
|
|
762
|
-
}),
|
|
763
|
-
React__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" })));
|
|
764
|
-
};
|
|
765
|
-
return React__default.createElement(Paginator$1, Object.assign({}, props, { render: renderPaginator }));
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
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"};
|
|
769
|
-
|
|
770
|
-
const IndeterminateBar = React.forwardRef((props, ref) => {
|
|
771
|
-
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$1g.root, css$1g[`size-${props.size || 12}`]) },
|
|
772
|
-
React.createElement("div", { className: cx(css$1g.progressBar) })));
|
|
773
|
-
});
|
|
774
|
-
|
|
775
|
-
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"};
|
|
776
|
-
|
|
777
|
-
const defaultSize$9 = '12';
|
|
778
|
-
function applyProgressBarMods(mods) {
|
|
779
|
-
const size = mods.size || defaultSize$9;
|
|
780
|
-
return [
|
|
781
|
-
css$1f.root,
|
|
782
|
-
css$1f[`size-${size}`],
|
|
783
|
-
mods.striped && css$1f.striped,
|
|
784
|
-
];
|
|
785
|
-
}
|
|
786
|
-
const ProgressBar = withMods(ProgressBar$1, applyProgressBarMods, (props) => ({
|
|
787
|
-
hideLabel: props.hideLabel || props.striped,
|
|
788
|
-
}));
|
|
789
|
-
|
|
790
|
-
var css$1e = {"root":"_4Bdufz"};
|
|
791
|
-
|
|
792
|
-
const IndicatorBar = React.forwardRef((props, ref) => {
|
|
793
|
-
const { progress } = props;
|
|
794
|
-
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$1e.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$1e.root, props.cx) }));
|
|
795
|
-
});
|
|
796
|
-
|
|
797
|
-
var css$1d = {"root":"GPy3p5","size-12":"gK0qes","size-18":"_7H-YeF","size-24":"ypMWVG","size12":"gK0qes","size18":"_7H-YeF","size24":"ypMWVG"};
|
|
798
|
-
|
|
799
|
-
const StatusIndicator = forwardRef((props, ref) => {
|
|
800
|
-
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
801
|
-
css$1d.root,
|
|
802
|
-
css$1d[`size-${props.size || 24}`],
|
|
803
|
-
'uui-status_indicator',
|
|
804
|
-
`uui-color-${props.color || 'neutral'}`,
|
|
805
|
-
`uui-fill-${props.fill || 'solid'}`,
|
|
806
|
-
props.cx,
|
|
807
|
-
]) },
|
|
808
|
-
React__default.createElement("div", { className: "uui-status_indicator_dot" }),
|
|
809
|
-
React__default.createElement("p", { className: "uui-status_indicator_caption" }, props.caption)));
|
|
810
|
-
});
|
|
811
|
-
|
|
812
|
-
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"};
|
|
585
|
+
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"};
|
|
813
586
|
|
|
814
|
-
const
|
|
587
|
+
const DEFAULT_SIZE$8 = '36';
|
|
815
588
|
function applyButtonMods(mods) {
|
|
816
589
|
return [
|
|
817
|
-
css$
|
|
590
|
+
css$1n.root,
|
|
818
591
|
'uui-button',
|
|
819
592
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
820
593
|
`uui-color-${mods.color || 'primary'}`,
|
|
821
|
-
`uui-size-${mods.size ||
|
|
594
|
+
`uui-size-${mods.size || DEFAULT_SIZE$8}`,
|
|
822
595
|
];
|
|
823
596
|
}
|
|
824
597
|
const Button = withMods(Button$1, applyButtonMods, (props) => ({
|
|
825
|
-
dropdownIcon: systemIcons[props.size ||
|
|
826
|
-
clearIcon: systemIcons[props.size ||
|
|
598
|
+
dropdownIcon: systemIcons[props.size || DEFAULT_SIZE$8].foldingArrow,
|
|
599
|
+
clearIcon: systemIcons[props.size || DEFAULT_SIZE$8].clear,
|
|
827
600
|
countIndicator: (countIndicatorProps) => React__default.createElement(CountIndicator, Object.assign({}, countIndicatorProps, { color: "white" })),
|
|
828
601
|
}));
|
|
829
602
|
|
|
830
|
-
var css$
|
|
603
|
+
var css$1m = {"root":"DBt6Pb"};
|
|
831
604
|
|
|
832
|
-
const allIconColors = [
|
|
833
|
-
'info', 'success', 'warning', 'error', 'secondary', 'neutral',
|
|
834
|
-
];
|
|
835
605
|
function applyIconButtonMods(mods) {
|
|
836
|
-
return ['uui-icon_button', `uui-color-${mods.color || 'neutral'}`, css$
|
|
606
|
+
return ['uui-icon_button', `uui-color-${mods.color || 'neutral'}`, css$1m.root];
|
|
837
607
|
}
|
|
838
608
|
const IconButton = withMods(IconButton$1, applyIconButtonMods);
|
|
839
609
|
|
|
840
|
-
var css$
|
|
610
|
+
var css$1l = {"root":"tZra-e"};
|
|
841
611
|
|
|
842
612
|
function getIconClass(props) {
|
|
843
613
|
const classList = {
|
|
@@ -856,135 +626,144 @@ function getIconClass(props) {
|
|
|
856
626
|
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'];
|
|
857
627
|
}
|
|
858
628
|
|
|
859
|
-
const
|
|
860
|
-
const allLinkButtonColors = ['primary', 'secondary', 'contrast'];
|
|
629
|
+
const DEFAULT_SIZE$7 = '36';
|
|
861
630
|
function applyLinkButtonMods(mods) {
|
|
862
631
|
return [
|
|
863
632
|
'uui-link_button',
|
|
864
|
-
css$
|
|
865
|
-
`uui-size-${mods.size ||
|
|
633
|
+
css$1l.root,
|
|
634
|
+
`uui-size-${mods.size || DEFAULT_SIZE$7}`,
|
|
866
635
|
...getIconClass(mods),
|
|
867
636
|
`uui-color-${mods.color || 'primary'}`,
|
|
868
637
|
];
|
|
869
638
|
}
|
|
870
639
|
const LinkButton = withMods(Button$1, applyLinkButtonMods, (props) => ({
|
|
871
|
-
dropdownIcon: systemIcons[props.size ||
|
|
872
|
-
clearIcon: systemIcons[props.size ||
|
|
640
|
+
dropdownIcon: systemIcons[props.size || DEFAULT_SIZE$7].foldingArrow,
|
|
641
|
+
clearIcon: systemIcons[props.size || DEFAULT_SIZE$7].clear,
|
|
873
642
|
}));
|
|
874
643
|
|
|
875
|
-
var css$
|
|
644
|
+
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"};
|
|
876
645
|
|
|
877
646
|
function applyTabButtonMods(mods) {
|
|
878
647
|
return [
|
|
879
|
-
css$
|
|
648
|
+
css$1k.root,
|
|
880
649
|
'uui-tab-button',
|
|
881
|
-
css$
|
|
882
|
-
mods.withNotify && css$
|
|
650
|
+
css$1k['size-' + (mods.size || '48')],
|
|
651
|
+
mods.withNotify && css$1k.withNotify,
|
|
883
652
|
...getIconClass(mods),
|
|
884
653
|
];
|
|
885
654
|
}
|
|
886
|
-
const TabButton = withMods(Button
|
|
655
|
+
const TabButton = withMods(uuiComponents.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__default.createElement(CountIndicator, Object.assign({}, countIndicatorProps, { color: props.isLinkActive ? 'info' : 'neutral', size: "18" }))) })));
|
|
887
656
|
|
|
888
|
-
var css$
|
|
657
|
+
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"};
|
|
889
658
|
|
|
890
659
|
function applyVerticalTabButtonMods() {
|
|
891
|
-
return [css$
|
|
660
|
+
return [css$1j.root];
|
|
892
661
|
}
|
|
893
662
|
const VerticalTabButton = withMods(TabButton, applyVerticalTabButtonMods);
|
|
894
663
|
|
|
664
|
+
/**
|
|
665
|
+
* Defines the different edit modes.
|
|
666
|
+
*/
|
|
895
667
|
var EditMode;
|
|
896
668
|
(function (EditMode) {
|
|
669
|
+
/** Defines edit mode for form */
|
|
897
670
|
EditMode["FORM"] = "form";
|
|
671
|
+
/** Defines edit mode for cell in tables */
|
|
898
672
|
EditMode["CELL"] = "cell";
|
|
673
|
+
/** Defines edit mode for inline elements */
|
|
899
674
|
EditMode["INLINE"] = "inline";
|
|
900
675
|
})(EditMode || (EditMode = {}));
|
|
901
676
|
|
|
902
|
-
var _path$
|
|
903
|
-
function _extends$
|
|
677
|
+
var _path$L;
|
|
678
|
+
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); }
|
|
904
679
|
var SvgCheck12 = function SvgCheck12(props, ref) {
|
|
905
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
680
|
+
return /*#__PURE__*/React.createElement("svg", _extends$N({
|
|
906
681
|
width: 12,
|
|
907
682
|
height: 12,
|
|
908
683
|
viewBox: "0 0 12 12",
|
|
909
684
|
xmlns: "http://www.w3.org/2000/svg",
|
|
910
685
|
ref: ref
|
|
911
|
-
}, props), _path$
|
|
686
|
+
}, props), _path$L || (_path$L = /*#__PURE__*/React.createElement("path", {
|
|
912
687
|
fillRule: "evenodd",
|
|
913
688
|
d: "M9.491 3.449 10.51 4.55 5.663 9.024 2.487 6.047l1.026-1.094L5.67 6.975z"
|
|
914
689
|
})));
|
|
915
690
|
};
|
|
916
|
-
var ForwardRef$
|
|
691
|
+
var ForwardRef$N = /*#__PURE__*/forwardRef(SvgCheck12);
|
|
917
692
|
|
|
918
|
-
var _path$
|
|
919
|
-
function _extends$
|
|
693
|
+
var _path$K;
|
|
694
|
+
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); }
|
|
920
695
|
var SvgCheck18 = function SvgCheck18(props, ref) {
|
|
921
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
696
|
+
return /*#__PURE__*/React.createElement("svg", _extends$M({
|
|
922
697
|
width: 18,
|
|
923
698
|
height: 18,
|
|
924
699
|
viewBox: "0 0 18 18",
|
|
925
700
|
xmlns: "http://www.w3.org/2000/svg",
|
|
926
701
|
ref: ref
|
|
927
|
-
}, props), _path$
|
|
702
|
+
}, props), _path$K || (_path$K = /*#__PURE__*/React.createElement("path", {
|
|
928
703
|
fillRule: "evenodd",
|
|
929
704
|
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"
|
|
930
705
|
})));
|
|
931
706
|
};
|
|
932
|
-
var ForwardRef$
|
|
707
|
+
var ForwardRef$M = /*#__PURE__*/forwardRef(SvgCheck18);
|
|
933
708
|
|
|
934
|
-
var _path$
|
|
935
|
-
function _extends$
|
|
709
|
+
var _path$J;
|
|
710
|
+
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); }
|
|
936
711
|
var SvgPartlySelect12 = function SvgPartlySelect12(props, ref) {
|
|
937
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
712
|
+
return /*#__PURE__*/React.createElement("svg", _extends$L({
|
|
938
713
|
width: 12,
|
|
939
714
|
height: 12,
|
|
940
715
|
viewBox: "0 0 12 12",
|
|
941
716
|
xmlns: "http://www.w3.org/2000/svg",
|
|
942
717
|
ref: ref
|
|
943
|
-
}, props), _path$
|
|
718
|
+
}, props), _path$J || (_path$J = /*#__PURE__*/React.createElement("path", {
|
|
944
719
|
fillRule: "evenodd",
|
|
945
720
|
d: "M9 5v2H3V5z"
|
|
946
721
|
})));
|
|
947
722
|
};
|
|
948
|
-
var ForwardRef$
|
|
723
|
+
var ForwardRef$L = /*#__PURE__*/forwardRef(SvgPartlySelect12);
|
|
949
724
|
|
|
950
|
-
var _path$
|
|
951
|
-
function _extends$
|
|
725
|
+
var _path$I;
|
|
726
|
+
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); }
|
|
952
727
|
var SvgPartlySelect18 = function SvgPartlySelect18(props, ref) {
|
|
953
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
728
|
+
return /*#__PURE__*/React.createElement("svg", _extends$K({
|
|
954
729
|
width: 18,
|
|
955
730
|
height: 18,
|
|
956
731
|
viewBox: "0 0 18 18",
|
|
957
732
|
xmlns: "http://www.w3.org/2000/svg",
|
|
958
733
|
ref: ref
|
|
959
|
-
}, props), _path$
|
|
734
|
+
}, props), _path$I || (_path$I = /*#__PURE__*/React.createElement("path", {
|
|
960
735
|
fillRule: "evenodd",
|
|
961
736
|
d: "M14 8v2H4V8z"
|
|
962
737
|
})));
|
|
963
738
|
};
|
|
964
|
-
var ForwardRef$
|
|
739
|
+
var ForwardRef$K = /*#__PURE__*/forwardRef(SvgPartlySelect18);
|
|
965
740
|
|
|
966
|
-
var css$
|
|
741
|
+
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"};
|
|
967
742
|
|
|
968
743
|
function applyCheckboxMods(mods) {
|
|
969
744
|
return [
|
|
970
|
-
css$
|
|
971
|
-
css$
|
|
972
|
-
css$
|
|
745
|
+
css$1i.root,
|
|
746
|
+
css$1i['size-' + (mods.size || '18')],
|
|
747
|
+
css$1i['mode-' + (mods.mode || 'form')],
|
|
973
748
|
'uui-color-primary',
|
|
974
749
|
];
|
|
975
750
|
}
|
|
976
|
-
const applyUUICheckboxProps = (props) =>
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
751
|
+
const applyUUICheckboxProps = (props) => {
|
|
752
|
+
const defaultIcon = props.size === '12' ? ForwardRef$N : ForwardRef$M;
|
|
753
|
+
const defaultIndeterminateIcon = props.size === '12' ? ForwardRef$L : ForwardRef$K;
|
|
754
|
+
return {
|
|
755
|
+
icon: props.icon ? props.icon : defaultIcon,
|
|
756
|
+
indeterminateIcon: props.indeterminateIcon ? props.indeterminateIcon : defaultIndeterminateIcon,
|
|
757
|
+
};
|
|
758
|
+
};
|
|
980
759
|
const Checkbox = withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
981
760
|
|
|
982
|
-
var css$
|
|
761
|
+
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"};
|
|
983
762
|
|
|
984
763
|
var _circle;
|
|
985
|
-
function _extends$
|
|
764
|
+
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); }
|
|
986
765
|
var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
987
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
766
|
+
return /*#__PURE__*/React.createElement("svg", _extends$J({
|
|
988
767
|
width: 18,
|
|
989
768
|
height: 18,
|
|
990
769
|
viewBox: "0 0 18 18",
|
|
@@ -996,18 +775,23 @@ var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
|
996
775
|
r: 6
|
|
997
776
|
})));
|
|
998
777
|
};
|
|
999
|
-
var ForwardRef$
|
|
778
|
+
var ForwardRef$J = /*#__PURE__*/forwardRef(SvgRadioPoint);
|
|
1000
779
|
|
|
1001
780
|
function applyRadioInputMods(mods) {
|
|
1002
|
-
return [
|
|
781
|
+
return [
|
|
782
|
+
css$1h.root,
|
|
783
|
+
css$1h['size-' + (mods.size || '18')],
|
|
784
|
+
'uui-radio-input-container',
|
|
785
|
+
'uui-color-primary',
|
|
786
|
+
];
|
|
1003
787
|
}
|
|
1004
|
-
const RadioInput = withMods(RadioInput$1, applyRadioInputMods, () => ({ icon: ForwardRef$
|
|
788
|
+
const RadioInput = withMods(RadioInput$1, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$J }));
|
|
1005
789
|
|
|
1006
|
-
var css$
|
|
790
|
+
var css$1g = {"root":"Kz-GS0","size-12":"_0W2X0C","size-18":"_8jRpYn","size-24":"Eye9uS","size12":"_0W2X0C","size18":"_8jRpYn","size24":"Eye9uS"};
|
|
1007
791
|
|
|
1008
792
|
function applySwitchMods(mods) {
|
|
1009
793
|
return [
|
|
1010
|
-
css$
|
|
794
|
+
css$1g.root, css$1g['size-' + (mods.size || '18')], 'uui-color-primary',
|
|
1011
795
|
];
|
|
1012
796
|
}
|
|
1013
797
|
const Switch = withMods(uuiComponents.Switch, applySwitchMods);
|
|
@@ -1056,94 +840,114 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
1056
840
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1057
841
|
};
|
|
1058
842
|
|
|
1059
|
-
var textInputCss = {"uui-typography":"
|
|
843
|
+
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"};
|
|
1060
844
|
|
|
1061
|
-
const
|
|
1062
|
-
const
|
|
845
|
+
const DEFAULT_SIZE$6 = '36';
|
|
846
|
+
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1063
847
|
function applyTextInputMods(mods) {
|
|
1064
848
|
return [
|
|
1065
849
|
textInputCss.root,
|
|
1066
|
-
textInputCss['size-' + (mods.size ||
|
|
1067
|
-
textInputCss['mode-' + (mods.mode ||
|
|
850
|
+
textInputCss['size-' + (mods.size || DEFAULT_SIZE$6)],
|
|
851
|
+
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$3)],
|
|
1068
852
|
];
|
|
1069
853
|
}
|
|
1070
854
|
const TextInput = withMods(TextInput$1, applyTextInputMods, (props) => ({
|
|
1071
|
-
acceptIcon: systemIcons[props.size ||
|
|
1072
|
-
cancelIcon: systemIcons[props.size ||
|
|
1073
|
-
dropdownIcon: systemIcons[props.size ||
|
|
855
|
+
acceptIcon: systemIcons[props.size || DEFAULT_SIZE$6].accept,
|
|
856
|
+
cancelIcon: systemIcons[props.size || DEFAULT_SIZE$6].clear,
|
|
857
|
+
dropdownIcon: systemIcons[props.size || DEFAULT_SIZE$6].foldingArrow,
|
|
1074
858
|
}));
|
|
1075
859
|
const SearchInput = React__default.forwardRef((props, ref) => {
|
|
1076
860
|
// analytics events are sending in IEditableDebouncer, so we need to avoid sending events in TextInput
|
|
1077
861
|
const textInputProps = __rest(props, []);
|
|
1078
862
|
delete textInputProps.getValueChangeAnalyticsEvent;
|
|
1079
|
-
return (React__default.createElement(IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => (React__default.createElement(TextInput, Object.assign({ icon: systemIcons[props.size ||
|
|
1080
|
-
// In a lot of places, it is required to check if a clicked element is a part of some other element.
|
|
1081
|
-
// Usually, those are global click event handlers. To allow that logic to work correctly, it is necessary
|
|
1082
|
-
// to execute the `disappearing` of the cross (setState execution) after the event will pass through all the handlers.
|
|
1083
|
-
// Related issue: https://github.com/epam/UUI/issues/1045.
|
|
1084
|
-
? (() => setTimeout(() => iEditable.onValueChange(''), 0))
|
|
1085
|
-
: undefined, type: "search", inputMode: "search", ref: ref }, textInputProps, iEditable))) })));
|
|
863
|
+
return (React__default.createElement(IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => (React__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))) })));
|
|
1086
864
|
});
|
|
1087
865
|
|
|
1088
|
-
var css$
|
|
866
|
+
var css$1f = {"root":"KYFtmg"};
|
|
1089
867
|
|
|
1090
|
-
const ControlGroup = withMods(ControlGroup$1, () => [css$
|
|
868
|
+
const ControlGroup = withMods(ControlGroup$1, () => [css$1f.root]);
|
|
1091
869
|
|
|
1092
870
|
function MultiSwitchComponent(props, ref) {
|
|
1093
871
|
return (React.createElement(ControlGroup, { ref: ref, rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'tablist' }) }, props.items.map((item, index) => (React.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' } }))))));
|
|
1094
872
|
}
|
|
1095
873
|
const MultiSwitch = React.forwardRef(MultiSwitchComponent);
|
|
1096
874
|
|
|
1097
|
-
var css$
|
|
875
|
+
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"};
|
|
1098
876
|
|
|
1099
|
-
const
|
|
1100
|
-
const
|
|
877
|
+
const DEFAULT_SIZE$5 = '36';
|
|
878
|
+
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1101
879
|
function applyNumericInputMods(mods) {
|
|
1102
880
|
return [
|
|
1103
|
-
textInputCss.root,
|
|
881
|
+
textInputCss.root,
|
|
882
|
+
css$1e.root,
|
|
883
|
+
css$1e['size-' + (mods.size || DEFAULT_SIZE$5)],
|
|
884
|
+
textInputCss['size-' + (mods.size || DEFAULT_SIZE$5)],
|
|
885
|
+
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$2)],
|
|
1104
886
|
];
|
|
1105
887
|
}
|
|
1106
888
|
const NumericInput = withMods(NumericInput$1, applyNumericInputMods, (props) => {
|
|
1107
889
|
var _a, _b;
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
890
|
+
if (process.env.NODE_ENV !== "production") {
|
|
891
|
+
devLogger.warnAboutDeprecatedPropValue({
|
|
892
|
+
component: 'NumericInput',
|
|
893
|
+
propName: 'size',
|
|
894
|
+
propValue: '48',
|
|
895
|
+
propValueUseInstead: '42',
|
|
896
|
+
condition: () => props.size === '48',
|
|
897
|
+
});
|
|
898
|
+
}
|
|
899
|
+
return {
|
|
900
|
+
upIcon: systemIcons[props.size || DEFAULT_SIZE$5].foldingArrow,
|
|
901
|
+
downIcon: systemIcons[props.size || DEFAULT_SIZE$5].foldingArrow,
|
|
1111
902
|
align: (_a = props.align) !== null && _a !== void 0 ? _a : (props.mode === 'cell' ? 'right' : 'left'),
|
|
1112
903
|
disableArrows: (_b = props.disableArrows) !== null && _b !== void 0 ? _b : props.mode === 'cell',
|
|
1113
|
-
}
|
|
904
|
+
};
|
|
1114
905
|
});
|
|
1115
906
|
|
|
1116
|
-
var css$
|
|
907
|
+
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"};
|
|
1117
908
|
|
|
1118
|
-
const
|
|
1119
|
-
const
|
|
909
|
+
const DEFAULT_SIZE$4 = '36';
|
|
910
|
+
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1120
911
|
function applyTextAreaMods(mods) {
|
|
1121
912
|
return [
|
|
1122
|
-
css$
|
|
913
|
+
css$1d.root,
|
|
914
|
+
css$1d['size-' + (mods.size || DEFAULT_SIZE$4)],
|
|
915
|
+
css$1d['mode-' + (mods.mode || DEFAULT_MODE$1)],
|
|
1123
916
|
];
|
|
1124
917
|
}
|
|
1125
|
-
const TextArea = withMods(TextArea$1, applyTextAreaMods, (props) =>
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
918
|
+
const TextArea = withMods(TextArea$1, applyTextAreaMods, (props) => {
|
|
919
|
+
if (process.env.NODE_ENV !== "production") {
|
|
920
|
+
devLogger.warnAboutDeprecatedPropValue({
|
|
921
|
+
component: 'TextArea',
|
|
922
|
+
propName: 'size',
|
|
923
|
+
propValue: '48',
|
|
924
|
+
propValueUseInstead: '42',
|
|
925
|
+
condition: () => props.size === '48',
|
|
926
|
+
});
|
|
927
|
+
}
|
|
928
|
+
return {
|
|
929
|
+
autoSize: props.mode === EditMode.CELL ? true : props.autoSize,
|
|
930
|
+
maxLength: props.mode === EditMode.CELL ? undefined : props.maxLength,
|
|
931
|
+
};
|
|
932
|
+
});
|
|
1129
933
|
|
|
1130
|
-
var css$
|
|
934
|
+
var css$1c = {"root":"O9-0Ok"};
|
|
1131
935
|
|
|
1132
936
|
function applyDropdownContainerMods(mods) {
|
|
1133
937
|
return [
|
|
1134
|
-
css$
|
|
938
|
+
css$1c.root,
|
|
1135
939
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1136
940
|
mods.padding && `padding-${mods.padding}`,
|
|
1137
941
|
];
|
|
1138
942
|
}
|
|
1139
943
|
const DropdownContainer = withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
1140
944
|
|
|
1141
|
-
var css$
|
|
945
|
+
var css$1b = {"root":"MBeWTF","timepicker-input":"xjFAs0","timepickerInput":"xjFAs0"};
|
|
1142
946
|
|
|
1143
|
-
const TimePickerBody = withMods(TimePickerBody$1, () => [css$
|
|
947
|
+
const TimePickerBody = withMods(TimePickerBody$1, () => [css$1b.root], () => ({ addIcon: ForwardRef$1a, subtractIcon: ForwardRef$1a }));
|
|
1144
948
|
|
|
1145
949
|
dayjs.extend(customParseFormat);
|
|
1146
|
-
const
|
|
950
|
+
const DEFAULT_MODE = EditMode.FORM;
|
|
1147
951
|
class TimePickerComponent extends BaseTimePicker {
|
|
1148
952
|
constructor() {
|
|
1149
953
|
super(...arguments);
|
|
@@ -1160,7 +964,7 @@ class TimePickerComponent extends BaseTimePicker {
|
|
|
1160
964
|
});
|
|
1161
965
|
}
|
|
1162
966
|
}
|
|
1163
|
-
return (React__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$
|
|
967
|
+
return (React__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 })));
|
|
1164
968
|
};
|
|
1165
969
|
this.renderBody = (props) => {
|
|
1166
970
|
var _a;
|
|
@@ -1172,23 +976,57 @@ class TimePickerComponent extends BaseTimePicker {
|
|
|
1172
976
|
}
|
|
1173
977
|
const TimePicker = withMods(TimePickerComponent);
|
|
1174
978
|
|
|
1175
|
-
var css
|
|
979
|
+
var css$1a = {"root":"Tfvpxh"};
|
|
1176
980
|
|
|
1177
981
|
function applyInputAddonMods() {
|
|
1178
982
|
return [
|
|
1179
|
-
css
|
|
983
|
+
css$1a.root,
|
|
1180
984
|
];
|
|
1181
985
|
}
|
|
1182
986
|
const InputAddon = withMods(InputAddon$1, applyInputAddonMods);
|
|
1183
987
|
|
|
1184
|
-
var css$
|
|
988
|
+
var css$19 = {"root":"nnS5Ny"};
|
|
1185
989
|
|
|
1186
990
|
function applySliderMods() {
|
|
1187
|
-
return [css$
|
|
991
|
+
return [css$19.root, 'uui-color-neutral'];
|
|
1188
992
|
}
|
|
1189
993
|
const Slider = withMods(Slider$1, applySliderMods);
|
|
1190
994
|
|
|
1191
|
-
var css$
|
|
995
|
+
var css$18 = {"container":"_6zEJTQ"};
|
|
996
|
+
|
|
997
|
+
var _path$H;
|
|
998
|
+
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); }
|
|
999
|
+
var SvgNavigationChevronLeft18 = function SvgNavigationChevronLeft18(props, ref) {
|
|
1000
|
+
return /*#__PURE__*/React.createElement("svg", _extends$I({
|
|
1001
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1002
|
+
width: 18,
|
|
1003
|
+
height: 18,
|
|
1004
|
+
viewBox: "0 0 18 18",
|
|
1005
|
+
ref: ref
|
|
1006
|
+
}, props), _path$H || (_path$H = /*#__PURE__*/React.createElement("path", {
|
|
1007
|
+
fillRule: "evenodd",
|
|
1008
|
+
d: "M11.557 5.558 10.5 4.5 6 9l4.5 4.5 1.057-1.057L8.123 9l3.434-3.442z",
|
|
1009
|
+
clipRule: "evenodd"
|
|
1010
|
+
})));
|
|
1011
|
+
};
|
|
1012
|
+
var ForwardRef$I = /*#__PURE__*/forwardRef(SvgNavigationChevronLeft18);
|
|
1013
|
+
|
|
1014
|
+
var _path$G;
|
|
1015
|
+
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); }
|
|
1016
|
+
var SvgNavigationChevronRight18 = function SvgNavigationChevronRight18(props, ref) {
|
|
1017
|
+
return /*#__PURE__*/React.createElement("svg", _extends$H({
|
|
1018
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1019
|
+
width: 18,
|
|
1020
|
+
height: 18,
|
|
1021
|
+
viewBox: "0 0 18 18",
|
|
1022
|
+
ref: ref
|
|
1023
|
+
}, props), _path$G || (_path$G = /*#__PURE__*/React.createElement("path", {
|
|
1024
|
+
fillRule: "evenodd",
|
|
1025
|
+
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",
|
|
1026
|
+
clipRule: "evenodd"
|
|
1027
|
+
})));
|
|
1028
|
+
};
|
|
1029
|
+
var ForwardRef$H = /*#__PURE__*/forwardRef(SvgNavigationChevronRight18);
|
|
1192
1030
|
|
|
1193
1031
|
dayjs.extend(localeData);
|
|
1194
1032
|
const uuiHeader = {
|
|
@@ -1261,23 +1099,25 @@ function DatePickerHeader(props) {
|
|
|
1261
1099
|
};
|
|
1262
1100
|
const title = React.useMemo(() => {
|
|
1263
1101
|
var _a, _b, _c;
|
|
1264
|
-
return `${((_a = props.value) === null || _a === void 0 ? void 0 : _a.view) !== 'MONTH_SELECTION'
|
|
1102
|
+
return `${((_a = props.value) === null || _a === void 0 ? void 0 : _a.view) !== 'MONTH_SELECTION'
|
|
1103
|
+
? dayjs.months()[(_b = props.value) === null || _b === void 0 ? void 0 : _b.displayedDate.month()]
|
|
1104
|
+
: ''} ${(_c = props.value) === null || _c === void 0 ? void 0 : _c.displayedDate.year()}`;
|
|
1265
1105
|
}, [(_a = props.value) === null || _a === void 0 ? void 0 : _a.view, (_b = props.value) === null || _b === void 0 ? void 0 : _b.displayedDate]);
|
|
1266
|
-
return (React.createElement("div", { className: cx(css$
|
|
1106
|
+
return (React.createElement("div", { className: cx(css$18.container, uuiHeader.container, props.cx) },
|
|
1267
1107
|
React.createElement("header", { className: uuiHeader.header },
|
|
1268
|
-
React.createElement(Button, { icon: props.navIconLeft || ForwardRef$
|
|
1108
|
+
React.createElement(Button, { icon: props.navIconLeft || ForwardRef$I, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: () => onLeftNavigationArrow() }),
|
|
1269
1109
|
React.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: () => onCaptionClick(props.value.view) }),
|
|
1270
|
-
React.createElement(Button, { icon: props.navIconRight || ForwardRef$
|
|
1110
|
+
React.createElement(Button, { icon: props.navIconRight || ForwardRef$H, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: () => onRightNavigationArrow() }))));
|
|
1271
1111
|
}
|
|
1272
1112
|
|
|
1273
|
-
var css$
|
|
1113
|
+
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"};
|
|
1274
1114
|
|
|
1275
1115
|
function applyDateSelectionMods() {
|
|
1276
|
-
return [css$
|
|
1116
|
+
return [css$17.root];
|
|
1277
1117
|
}
|
|
1278
1118
|
const Calendar = withMods(Calendar$1, applyDateSelectionMods);
|
|
1279
1119
|
|
|
1280
|
-
var css$
|
|
1120
|
+
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"};
|
|
1281
1121
|
|
|
1282
1122
|
dayjs.extend(updateLocale);
|
|
1283
1123
|
const uuiDatePickerBody = {
|
|
@@ -1305,7 +1145,7 @@ class DatePickerBody extends DatePickerBodyBase {
|
|
|
1305
1145
|
}
|
|
1306
1146
|
};
|
|
1307
1147
|
this.renderBody = () => {
|
|
1308
|
-
return (React.createElement("div", { className: cx$1(css$
|
|
1148
|
+
return (React.createElement("div", { className: cx$1(css$16.root, uuiDatePickerBody.wrapper, this.props.cx) },
|
|
1309
1149
|
React.createElement(DatePickerHeader, { value: this.props.value, onValueChange: (newValue) => this.props.setDisplayedDateAndView(newValue.displayedDate, newValue.view) }),
|
|
1310
1150
|
this.getView()));
|
|
1311
1151
|
};
|
|
@@ -1314,104 +1154,104 @@ class DatePickerBody extends DatePickerBodyBase {
|
|
|
1314
1154
|
}
|
|
1315
1155
|
}
|
|
1316
1156
|
|
|
1317
|
-
var _path$
|
|
1318
|
-
function _extends$
|
|
1157
|
+
var _path$F;
|
|
1158
|
+
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); }
|
|
1319
1159
|
var SvgNotificationCheckCircleFill24 = function SvgNotificationCheckCircleFill24(props, ref) {
|
|
1320
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1160
|
+
return /*#__PURE__*/React.createElement("svg", _extends$G({
|
|
1321
1161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1322
1162
|
width: 24,
|
|
1323
1163
|
height: 24,
|
|
1324
1164
|
viewBox: "0 0 24 24",
|
|
1325
1165
|
ref: ref
|
|
1326
|
-
}, props), _path$
|
|
1166
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React.createElement("path", {
|
|
1327
1167
|
fillRule: "evenodd",
|
|
1328
1168
|
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"
|
|
1329
1169
|
})));
|
|
1330
1170
|
};
|
|
1331
|
-
var ForwardRef$
|
|
1171
|
+
var ForwardRef$G = /*#__PURE__*/forwardRef(SvgNotificationCheckCircleFill24);
|
|
1332
1172
|
|
|
1333
|
-
var _path$
|
|
1334
|
-
function _extends$
|
|
1173
|
+
var _path$E;
|
|
1174
|
+
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); }
|
|
1335
1175
|
var SvgNotificationWarningFill24 = function SvgNotificationWarningFill24(props, ref) {
|
|
1336
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1176
|
+
return /*#__PURE__*/React.createElement("svg", _extends$F({
|
|
1337
1177
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1338
1178
|
width: 24,
|
|
1339
1179
|
height: 24,
|
|
1340
1180
|
viewBox: "0 0 24 24",
|
|
1341
1181
|
ref: ref
|
|
1342
|
-
}, props), _path$
|
|
1182
|
+
}, props), _path$E || (_path$E = /*#__PURE__*/React.createElement("path", {
|
|
1343
1183
|
fillRule: "evenodd",
|
|
1344
1184
|
d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
1345
1185
|
})));
|
|
1346
1186
|
};
|
|
1347
|
-
var ForwardRef$
|
|
1187
|
+
var ForwardRef$F = /*#__PURE__*/forwardRef(SvgNotificationWarningFill24);
|
|
1348
1188
|
|
|
1349
|
-
var _path$
|
|
1350
|
-
function _extends$
|
|
1189
|
+
var _path$D;
|
|
1190
|
+
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); }
|
|
1351
1191
|
var SvgNotificationErrorFill24 = function SvgNotificationErrorFill24(props, ref) {
|
|
1352
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1192
|
+
return /*#__PURE__*/React.createElement("svg", _extends$E({
|
|
1353
1193
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1354
1194
|
width: 24,
|
|
1355
1195
|
height: 24,
|
|
1356
1196
|
viewBox: "0 0 24 24",
|
|
1357
1197
|
ref: ref
|
|
1358
|
-
}, props), _path$
|
|
1198
|
+
}, props), _path$D || (_path$D = /*#__PURE__*/React.createElement("path", {
|
|
1359
1199
|
fillRule: "evenodd",
|
|
1360
1200
|
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"
|
|
1361
1201
|
})));
|
|
1362
1202
|
};
|
|
1363
|
-
var ForwardRef$
|
|
1203
|
+
var ForwardRef$E = /*#__PURE__*/forwardRef(SvgNotificationErrorFill24);
|
|
1364
1204
|
|
|
1365
|
-
var _path$
|
|
1366
|
-
function _extends$
|
|
1205
|
+
var _path$C;
|
|
1206
|
+
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); }
|
|
1367
1207
|
var SvgNotificationHelpFill24 = function SvgNotificationHelpFill24(props, ref) {
|
|
1368
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1208
|
+
return /*#__PURE__*/React.createElement("svg", _extends$D({
|
|
1369
1209
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1370
1210
|
width: 24,
|
|
1371
1211
|
height: 24,
|
|
1372
1212
|
viewBox: "0 0 24 24",
|
|
1373
1213
|
ref: ref
|
|
1374
|
-
}, props), _path$
|
|
1214
|
+
}, props), _path$C || (_path$C = /*#__PURE__*/React.createElement("path", {
|
|
1375
1215
|
fillRule: "evenodd",
|
|
1376
1216
|
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"
|
|
1377
1217
|
})));
|
|
1378
1218
|
};
|
|
1379
|
-
var ForwardRef$
|
|
1219
|
+
var ForwardRef$D = /*#__PURE__*/forwardRef(SvgNotificationHelpFill24);
|
|
1380
1220
|
|
|
1381
|
-
var _path$
|
|
1382
|
-
function _extends$
|
|
1221
|
+
var _path$B;
|
|
1222
|
+
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); }
|
|
1383
1223
|
var SvgNavigationClose24$1 = function SvgNavigationClose24(props, ref) {
|
|
1384
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1224
|
+
return /*#__PURE__*/React.createElement("svg", _extends$C({
|
|
1385
1225
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1386
1226
|
width: 24,
|
|
1387
1227
|
height: 24,
|
|
1388
1228
|
viewBox: "0 0 24 24",
|
|
1389
1229
|
ref: ref
|
|
1390
|
-
}, props), _path$
|
|
1230
|
+
}, props), _path$B || (_path$B = /*#__PURE__*/React.createElement("path", {
|
|
1391
1231
|
fillRule: "evenodd",
|
|
1392
1232
|
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"
|
|
1393
1233
|
})));
|
|
1394
1234
|
};
|
|
1395
|
-
var ForwardRef$
|
|
1235
|
+
var ForwardRef$C = /*#__PURE__*/forwardRef(SvgNavigationClose24$1);
|
|
1396
1236
|
|
|
1397
|
-
var css$
|
|
1237
|
+
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"};
|
|
1398
1238
|
|
|
1399
|
-
const Alert = React.forwardRef((props, ref) => (React.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx('uui-alert', css$
|
|
1400
|
-
React.createElement("div", { className: css$
|
|
1401
|
-
props.icon && (React.createElement("div", { className: css$
|
|
1402
|
-
React.createElement(IconContainer, { icon: props.icon, cx: css$
|
|
1403
|
-
React.createElement("div", { className: css$
|
|
1239
|
+
const Alert = React.forwardRef((props, ref) => (React.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx('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),
|
|
1240
|
+
React.createElement("div", { className: css$15.mainPath },
|
|
1241
|
+
props.icon && (React.createElement("div", { className: css$15.iconWrapper },
|
|
1242
|
+
React.createElement(IconContainer, { icon: props.icon, cx: css$15.actionIcon }))),
|
|
1243
|
+
React.createElement("div", { className: css$15.content },
|
|
1404
1244
|
props.children,
|
|
1405
|
-
props.actions && (React.createElement("div", { className: css$
|
|
1406
|
-
props.onClose && React.createElement(IconButton, { icon: ForwardRef$
|
|
1407
|
-
const WarningAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1408
|
-
const SuccessAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1409
|
-
const HintAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1410
|
-
const ErrorAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1245
|
+
props.actions && (React.createElement("div", { className: css$15.actionWrapper }, props.actions.map((action) => (React.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' })))))),
|
|
1246
|
+
props.onClose && React.createElement(IconButton, { icon: ForwardRef$C, color: "neutral", onClick: props.onClose, cx: css$15.closeIcon })))));
|
|
1247
|
+
const WarningAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$F, color: "warning", ref: ref }, props)));
|
|
1248
|
+
const SuccessAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$G, color: "success", ref: ref }, props)));
|
|
1249
|
+
const HintAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$D, color: "info", ref: ref }, props)));
|
|
1250
|
+
const ErrorAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$E, color: "error", ref: ref }, props)));
|
|
1411
1251
|
|
|
1412
1252
|
const Dropdown = withMods(Dropdown$1);
|
|
1413
1253
|
|
|
1414
|
-
var css$
|
|
1254
|
+
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"};
|
|
1415
1255
|
|
|
1416
1256
|
const icons = systemIcons['36'];
|
|
1417
1257
|
var IDropdownControlKeys;
|
|
@@ -1446,9 +1286,9 @@ function DropdownMenuContainer(props) {
|
|
|
1446
1286
|
props.onClose();
|
|
1447
1287
|
}
|
|
1448
1288
|
};
|
|
1449
|
-
return (React__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$
|
|
1289
|
+
return (React__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] })));
|
|
1450
1290
|
}
|
|
1451
|
-
const DropdownMenuBody = withMods(DropdownMenuContainer, () => [css$
|
|
1291
|
+
const DropdownMenuBody = withMods(DropdownMenuContainer, () => [css$14.bodyRoot], (props) => {
|
|
1452
1292
|
return (Object.assign({ closeOnKey: IDropdownControlKeys.ESCAPE }, props));
|
|
1453
1293
|
});
|
|
1454
1294
|
const DropdownMenuButton = React__default.forwardRef((props, ref) => {
|
|
@@ -1471,32 +1311,32 @@ const DropdownMenuButton = React__default.forwardRef((props, ref) => {
|
|
|
1471
1311
|
const getMenuButtonContent = () => {
|
|
1472
1312
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1473
1313
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1474
|
-
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'info' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$
|
|
1314
|
+
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'info' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$14.root, css$14.icon, iconPosition === 'right' ? css$14.iconAfter : css$14.iconBefore) }));
|
|
1475
1315
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1476
1316
|
isIconBefore && iconElement,
|
|
1477
|
-
React__default.createElement(Text$1, { cx: props.indent && css$
|
|
1317
|
+
React__default.createElement(Text$1, { cx: props.indent && css$14.indent }, caption),
|
|
1478
1318
|
isIconAfter && (React__default.createElement(React__default.Fragment, null,
|
|
1479
1319
|
React__default.createElement(FlexSpacer, null),
|
|
1480
1320
|
iconElement))));
|
|
1481
1321
|
};
|
|
1482
1322
|
const isAnchor = Boolean(link || href);
|
|
1483
|
-
const itemClassNames = cx$1(css$
|
|
1484
|
-
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$
|
|
1323
|
+
const itemClassNames = cx$1(css$14.root, props.cx, css$14.itemRoot, isDisabled && uuiMod.disabled, isActive && uuiMod.active, isOpen && uuiMod.opened);
|
|
1324
|
+
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(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__default.createElement(FlexRow$1, { rawProps: {
|
|
1485
1325
|
tabIndex: isDisabled ? -1 : 0,
|
|
1486
1326
|
role: 'menuitem',
|
|
1487
1327
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
1488
1328
|
}, cx: itemClassNames, onClick: handleClick, ref: ref },
|
|
1489
1329
|
getMenuButtonContent(),
|
|
1490
|
-
isSelected && React__default.createElement(IconContainer, { icon: icons.accept, cx: cx$1(css$
|
|
1330
|
+
isSelected && React__default.createElement(IconContainer, { icon: icons.accept, cx: cx$1(css$14.root, css$14.selectedCheckmark) })));
|
|
1491
1331
|
});
|
|
1492
1332
|
DropdownMenuButton.displayName = 'DropdownMenuButton';
|
|
1493
1333
|
function DropdownMenuSplitter(props) {
|
|
1494
|
-
return (React__default.createElement("div", { className: cx$1(css$
|
|
1495
|
-
React__default.createElement("hr", { className: css$
|
|
1334
|
+
return (React__default.createElement("div", { className: cx$1(css$14.root, props.cx, css$14.splitterRoot) },
|
|
1335
|
+
React__default.createElement("hr", { className: css$14.splitter })));
|
|
1496
1336
|
}
|
|
1497
1337
|
function DropdownMenuHeader(props) {
|
|
1498
|
-
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', css$
|
|
1499
|
-
React__default.createElement("span", { className: css$
|
|
1338
|
+
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', css$14.root, props.cx, css$14.headerRoot) },
|
|
1339
|
+
React__default.createElement("span", { className: css$14.header }, props.caption)));
|
|
1500
1340
|
}
|
|
1501
1341
|
function DropdownSubMenu(props) {
|
|
1502
1342
|
const subMenuModifiers = [
|
|
@@ -1516,7 +1356,7 @@ function DropdownSubMenu(props) {
|
|
|
1516
1356
|
];
|
|
1517
1357
|
return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: "right-start", modifiers: subMenuModifiers, renderBody: (dropdownProps) => React__default.createElement(DropdownMenuBody, Object.assign({ closeOnKey: IDropdownControlKeys.LEFT_ARROW }, props, dropdownProps)), renderTarget: (_a) => {
|
|
1518
1358
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
1519
|
-
return (React__default.createElement(DropdownMenuButton, Object.assign({ cx: cx$1(css$
|
|
1359
|
+
return (React__default.createElement(DropdownMenuButton, Object.assign({ cx: cx$1(css$14.root, css$14.submenuRootItem), icon: icons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
1520
1360
|
} }));
|
|
1521
1361
|
}
|
|
1522
1362
|
function DropdownMenuSwitchButton(props) {
|
|
@@ -1533,39 +1373,39 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1533
1373
|
onHandleValueChange(!isSelected);
|
|
1534
1374
|
}
|
|
1535
1375
|
};
|
|
1536
|
-
return (React__default.createElement(FlexRow$1, { cx: cx$1(props.cx, css$
|
|
1537
|
-
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$
|
|
1376
|
+
return (React__default.createElement(FlexRow$1, { cx: cx$1(props.cx, css$14.itemRoot, isDisabled && uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
1377
|
+
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$14.iconBefore }),
|
|
1538
1378
|
React__default.createElement(Text$1, null, caption),
|
|
1539
1379
|
React__default.createElement(FlexSpacer, null),
|
|
1540
1380
|
React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1541
1381
|
}
|
|
1542
1382
|
|
|
1543
|
-
var css$
|
|
1383
|
+
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"};
|
|
1544
1384
|
|
|
1545
|
-
const FlexCell = withMods(FlexCell$1, () => [css$
|
|
1385
|
+
const FlexCell = withMods(FlexCell$1, () => [css$13.flexCell]);
|
|
1546
1386
|
|
|
1547
1387
|
const FlexRow = withMods(FlexRow$1, (props) => {
|
|
1548
1388
|
return [
|
|
1549
|
-
css$
|
|
1550
|
-
props.size !== null && css$
|
|
1551
|
-
props.padding && css$
|
|
1552
|
-
props.vPadding && css$
|
|
1553
|
-
props.margin && css$
|
|
1554
|
-
props.topShadow && css$
|
|
1555
|
-
props.borderBottom && css$
|
|
1556
|
-
props.spacing && css$
|
|
1557
|
-
props.background && css$
|
|
1389
|
+
css$13.root,
|
|
1390
|
+
props.size !== null && css$13['size-' + (props.size || '36')],
|
|
1391
|
+
props.padding && css$13['padding-' + props.padding],
|
|
1392
|
+
props.vPadding && css$13['vPadding-' + props.vPadding],
|
|
1393
|
+
props.margin && css$13['margin-' + props.margin],
|
|
1394
|
+
props.topShadow && css$13.topShadow,
|
|
1395
|
+
props.borderBottom && css$13.borderBottom,
|
|
1396
|
+
props.spacing && css$13['spacing-' + props.spacing],
|
|
1397
|
+
props.background && css$13[`uui-${props.background}`],
|
|
1558
1398
|
];
|
|
1559
1399
|
});
|
|
1560
1400
|
|
|
1561
|
-
var css$
|
|
1401
|
+
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"};
|
|
1562
1402
|
|
|
1563
1403
|
const Panel = withMods(VPanel, (props) => [
|
|
1564
1404
|
'uui-panel',
|
|
1565
|
-
css$
|
|
1566
|
-
props.shadow && css$
|
|
1567
|
-
props.margin && css$
|
|
1568
|
-
props.background && css$
|
|
1405
|
+
css$12.root,
|
|
1406
|
+
props.shadow && css$12.shadow,
|
|
1407
|
+
props.margin && css$12['margin-' + props.margin],
|
|
1408
|
+
props.background && css$12[`uui-${props.background}`],
|
|
1569
1409
|
]);
|
|
1570
1410
|
|
|
1571
1411
|
const i18n = Object.assign(Object.assign({}, i18n$2), { dataPickerBody: {
|
|
@@ -1657,61 +1497,301 @@ const i18n = Object.assign(Object.assign({}, i18n$2), { dataPickerBody: {
|
|
|
1657
1497
|
fileSizeProgress: ' of ',
|
|
1658
1498
|
} });
|
|
1659
1499
|
|
|
1660
|
-
var css$
|
|
1500
|
+
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"};
|
|
1661
1501
|
|
|
1662
1502
|
const getMode = (mode) => {
|
|
1663
1503
|
return mode || 'block';
|
|
1664
1504
|
};
|
|
1665
1505
|
function applyAccordionMods(mods) {
|
|
1666
1506
|
return [
|
|
1667
|
-
css$
|
|
1668
|
-
css$
|
|
1669
|
-
mods.padding && css$
|
|
1507
|
+
css$11.root,
|
|
1508
|
+
css$11['mode-' + getMode(mods.mode)],
|
|
1509
|
+
mods.padding && css$11['padding-' + mods.padding],
|
|
1670
1510
|
];
|
|
1671
1511
|
}
|
|
1672
1512
|
const Accordion = withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
1673
1513
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons[getMode(mods.mode) === 'block' ? '60' : '30'].foldingArrow,
|
|
1674
1514
|
}));
|
|
1675
1515
|
|
|
1676
|
-
var css$
|
|
1516
|
+
var css$10 = {"root":"mbiA7Q"};
|
|
1677
1517
|
|
|
1678
1518
|
function applyTooltipMods(mods) {
|
|
1679
1519
|
return [
|
|
1680
|
-
css$
|
|
1520
|
+
css$10.root,
|
|
1681
1521
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1682
1522
|
];
|
|
1683
1523
|
}
|
|
1684
|
-
const Tooltip = withMods(Tooltip
|
|
1524
|
+
const Tooltip = withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
1685
1525
|
|
|
1686
|
-
var css
|
|
1526
|
+
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"};
|
|
1687
1527
|
|
|
1688
|
-
const
|
|
1528
|
+
const DEFAULT_SIZE$3 = '36';
|
|
1689
1529
|
function applyLabeledInputMods(mods) {
|
|
1690
|
-
return [css
|
|
1530
|
+
return [css$$.root, css$$['size-' + (mods.size || DEFAULT_SIZE$3)]];
|
|
1691
1531
|
}
|
|
1692
1532
|
const LabeledInput = withMods(uuiComponents.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1693
1533
|
Tooltip,
|
|
1694
|
-
infoIcon: systemIcons[props.size ||
|
|
1534
|
+
infoIcon: systemIcons[props.size || DEFAULT_SIZE$3].help,
|
|
1695
1535
|
}));
|
|
1696
1536
|
|
|
1697
|
-
var css$
|
|
1537
|
+
var css$_ = {"root":"OCsStR"};
|
|
1698
1538
|
|
|
1699
|
-
|
|
1539
|
+
function RadioGroup(props) {
|
|
1540
|
+
const direction = props.direction || 'vertical';
|
|
1541
|
+
const handleChange = (newVal) => {
|
|
1542
|
+
if (newVal !== props.value) {
|
|
1543
|
+
props.onValueChange(newVal);
|
|
1544
|
+
}
|
|
1545
|
+
};
|
|
1546
|
+
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$_.root, directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur }, props.rawProps), props.items.map((i) => {
|
|
1547
|
+
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1548
|
+
return (React.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)));
|
|
1549
|
+
})));
|
|
1550
|
+
}
|
|
1700
1551
|
|
|
1701
|
-
var css$
|
|
1552
|
+
var css$Z = {"root":"YIeH-Z"};
|
|
1702
1553
|
|
|
1703
1554
|
function applyScrollBarsMods() {
|
|
1704
1555
|
return [
|
|
1705
|
-
css$
|
|
1556
|
+
css$Z.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1706
1557
|
];
|
|
1707
1558
|
}
|
|
1708
1559
|
const ScrollBars = withMods(ScrollBars$1, applyScrollBarsMods);
|
|
1709
1560
|
|
|
1710
|
-
var css$
|
|
1561
|
+
var css$Y = {"scroll-container":"_5VNazm","list-container":"N8Z5dG","scrollContainer":"_5VNazm","listContainer":"N8Z5dG"};
|
|
1562
|
+
|
|
1563
|
+
var css$X = {"root":"eqx5Be"};
|
|
1564
|
+
|
|
1565
|
+
const AvatarStack = withMods(AvatarStack$1, () => [css$X.root]);
|
|
1566
|
+
|
|
1567
|
+
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"};
|
|
1568
|
+
|
|
1569
|
+
const mapSize$1 = {
|
|
1570
|
+
48: '48',
|
|
1571
|
+
42: '48',
|
|
1572
|
+
36: '36',
|
|
1573
|
+
30: '30',
|
|
1574
|
+
24: '30',
|
|
1575
|
+
18: '18',
|
|
1576
|
+
};
|
|
1577
|
+
const DEFAULT_SIZE$2 = '36';
|
|
1578
|
+
const DEFAULT_FILL = 'solid';
|
|
1579
|
+
function applyBadgeMods(mods) {
|
|
1580
|
+
return [
|
|
1581
|
+
'uui-badge',
|
|
1582
|
+
css$W.root,
|
|
1583
|
+
css$W['size-' + (mods.size || DEFAULT_SIZE$2)],
|
|
1584
|
+
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1585
|
+
`uui-color-${mods.color || 'info'}`,
|
|
1586
|
+
mods.indicator && mods.fill === 'outline' && 'uui-indicator',
|
|
1587
|
+
];
|
|
1588
|
+
}
|
|
1589
|
+
const mapCountIndicatorSizes$1 = {
|
|
1590
|
+
12: '12',
|
|
1591
|
+
18: '12',
|
|
1592
|
+
24: '18',
|
|
1593
|
+
30: '18',
|
|
1594
|
+
36: '18',
|
|
1595
|
+
42: '24',
|
|
1596
|
+
48: '24',
|
|
1597
|
+
};
|
|
1598
|
+
const Badge = withMods(uuiComponents.Button, applyBadgeMods, (props) => {
|
|
1599
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1600
|
+
devLogger.warnAboutDeprecatedPropValue({
|
|
1601
|
+
component: 'Badge',
|
|
1602
|
+
propName: 'size',
|
|
1603
|
+
propValue: props.size,
|
|
1604
|
+
propValueUseInstead: '42',
|
|
1605
|
+
condition: () => ['48'].indexOf(props.size) !== -1,
|
|
1606
|
+
});
|
|
1607
|
+
}
|
|
1608
|
+
return {
|
|
1609
|
+
dropdownIcon: systemIcons[(props.size && mapSize$1[props.size]) || DEFAULT_SIZE$2].foldingArrow,
|
|
1610
|
+
clearIcon: systemIcons[(props.size && mapSize$1[props.size]) || DEFAULT_SIZE$2].clear,
|
|
1611
|
+
countPosition: 'left',
|
|
1612
|
+
countIndicator: (countIndicatorProps) => (React__default.createElement(CountIndicator, Object.assign({}, countIndicatorProps, { color: null, size: mapCountIndicatorSizes$1[props.size || DEFAULT_SIZE$2] }))),
|
|
1613
|
+
indicator: props.indicator || false,
|
|
1614
|
+
iconPosition: props.iconPosition || 'left',
|
|
1615
|
+
};
|
|
1616
|
+
});
|
|
1617
|
+
|
|
1618
|
+
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"};
|
|
1619
|
+
|
|
1620
|
+
const DEFAULT_SIZE$1 = '36';
|
|
1621
|
+
const mapSize = {
|
|
1622
|
+
48: '48',
|
|
1623
|
+
42: '48',
|
|
1624
|
+
36: '36',
|
|
1625
|
+
30: '30',
|
|
1626
|
+
24: '30',
|
|
1627
|
+
18: '18',
|
|
1628
|
+
};
|
|
1629
|
+
const mapCountIndicatorSizes = {
|
|
1630
|
+
18: '12',
|
|
1631
|
+
24: '18',
|
|
1632
|
+
30: '18',
|
|
1633
|
+
36: '18',
|
|
1634
|
+
42: '24',
|
|
1635
|
+
48: '24',
|
|
1636
|
+
};
|
|
1637
|
+
function applyTagMods(props) {
|
|
1638
|
+
return [
|
|
1639
|
+
css$V['size-' + (props.size || DEFAULT_SIZE$1)],
|
|
1640
|
+
css$V.root,
|
|
1641
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
1642
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
1643
|
+
'uui-tag',
|
|
1644
|
+
];
|
|
1645
|
+
}
|
|
1646
|
+
const Tag = withMods(Button$1, applyTagMods, (props) => ({
|
|
1647
|
+
dropdownIcon: systemIcons[mapSize[props.size] || DEFAULT_SIZE$1].foldingArrow,
|
|
1648
|
+
clearIcon: systemIcons[mapSize[props.size] || DEFAULT_SIZE$1].clear,
|
|
1649
|
+
countIndicator: (countIndicatorProps) => (React__default.createElement(CountIndicator, Object.assign({}, countIndicatorProps, { color: (!props.color || props.color === 'neutral') ? 'white' : props.color, size: mapCountIndicatorSizes[props.size || DEFAULT_SIZE$1] }))),
|
|
1650
|
+
}));
|
|
1651
|
+
|
|
1652
|
+
var css$U = {"root":"JtxFks","uui-spinner":"SI80KO","uuiSpinner":"SI80KO"};
|
|
1653
|
+
|
|
1654
|
+
function applySpinnerMods() {
|
|
1655
|
+
return [css$U.root, 'uui-spinner'];
|
|
1656
|
+
}
|
|
1657
|
+
const Spinner = withMods(Spinner$1, applySpinnerMods);
|
|
1658
|
+
|
|
1659
|
+
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"};
|
|
1660
|
+
|
|
1661
|
+
var _path$A;
|
|
1662
|
+
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); }
|
|
1663
|
+
var SvgNavigationChevronLeft12 = function SvgNavigationChevronLeft12(props, ref) {
|
|
1664
|
+
return /*#__PURE__*/React.createElement("svg", _extends$B({
|
|
1665
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1666
|
+
width: 13,
|
|
1667
|
+
height: 12,
|
|
1668
|
+
viewBox: "0 0 13 12",
|
|
1669
|
+
ref: ref
|
|
1670
|
+
}, props), _path$A || (_path$A = /*#__PURE__*/React.createElement("path", {
|
|
1671
|
+
fillRule: "evenodd",
|
|
1672
|
+
d: "M8.205 3.705 7.5 3l-3 3 3 3 .705-.705L5.915 6l2.29-2.295z",
|
|
1673
|
+
clipRule: "evenodd"
|
|
1674
|
+
})));
|
|
1675
|
+
};
|
|
1676
|
+
var ForwardRef$B = /*#__PURE__*/forwardRef(SvgNavigationChevronLeft12);
|
|
1677
|
+
|
|
1678
|
+
var _path$z;
|
|
1679
|
+
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); }
|
|
1680
|
+
var SvgNavigationChevronRight12 = function SvgNavigationChevronRight12(props, ref) {
|
|
1681
|
+
return /*#__PURE__*/React.createElement("svg", _extends$A({
|
|
1682
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1683
|
+
width: 13,
|
|
1684
|
+
height: 12,
|
|
1685
|
+
viewBox: "0 0 13 12",
|
|
1686
|
+
ref: ref
|
|
1687
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React.createElement("path", {
|
|
1688
|
+
fillRule: "evenodd",
|
|
1689
|
+
d: "m5.5 3-.705.705L7.085 6l-2.29 2.295L5.5 9l3-3-3-3z",
|
|
1690
|
+
clipRule: "evenodd"
|
|
1691
|
+
})));
|
|
1692
|
+
};
|
|
1693
|
+
var ForwardRef$A = /*#__PURE__*/forwardRef(SvgNavigationChevronRight12);
|
|
1694
|
+
|
|
1695
|
+
function Paginator(props) {
|
|
1696
|
+
const renderPaginator = (params) => {
|
|
1697
|
+
var _a, _b;
|
|
1698
|
+
return (React__default.createElement("nav", Object.assign({ role: "navigation", className: cx(css$T.root, 'uui-paginator') }, params.rawProps),
|
|
1699
|
+
React__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" }),
|
|
1700
|
+
params.pages.map((page, index) => {
|
|
1701
|
+
var _a, _b;
|
|
1702
|
+
if (page.type === 'spacer') {
|
|
1703
|
+
return (React__default.createElement(Button, { cx: cx(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 }));
|
|
1704
|
+
}
|
|
1705
|
+
else {
|
|
1706
|
+
return (React__default.createElement(Button, { cx: cx(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" }));
|
|
1707
|
+
}
|
|
1708
|
+
}),
|
|
1709
|
+
React__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" })));
|
|
1710
|
+
};
|
|
1711
|
+
return React__default.createElement(Paginator$1, Object.assign({}, props, { render: renderPaginator }));
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
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"};
|
|
1715
|
+
|
|
1716
|
+
const IndeterminateBar = React.forwardRef((props, ref) => {
|
|
1717
|
+
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$S.root, css$S[`size-${props.size || 12}`]) },
|
|
1718
|
+
React.createElement("div", { className: cx(css$S.progressBar) })));
|
|
1719
|
+
});
|
|
1720
|
+
|
|
1721
|
+
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"};
|
|
1722
|
+
|
|
1723
|
+
const DEFAULT_SIZE = '12';
|
|
1724
|
+
function applyProgressBarMods(mods) {
|
|
1725
|
+
const size = mods.size || DEFAULT_SIZE;
|
|
1726
|
+
return [
|
|
1727
|
+
css$R.root,
|
|
1728
|
+
css$R[`size-${size}`],
|
|
1729
|
+
mods.striped && css$R.striped,
|
|
1730
|
+
];
|
|
1731
|
+
}
|
|
1732
|
+
const ProgressBar = withMods(ProgressBar$1, applyProgressBarMods, (props) => ({
|
|
1733
|
+
hideLabel: props.hideLabel || props.striped,
|
|
1734
|
+
}));
|
|
1735
|
+
|
|
1736
|
+
var css$Q = {"root":"EnZ2we"};
|
|
1737
|
+
|
|
1738
|
+
const IndicatorBar = React.forwardRef((props, ref) => {
|
|
1739
|
+
const { progress } = props;
|
|
1740
|
+
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$Q.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$Q.root, props.cx) }));
|
|
1741
|
+
});
|
|
1742
|
+
|
|
1743
|
+
var css$P = {"root":"NwxnLv","size-12":"_42pJE9","size-18":"a1hXOL","size-24":"ZMk2fC","size12":"_42pJE9","size18":"a1hXOL","size24":"ZMk2fC"};
|
|
1744
|
+
|
|
1745
|
+
const StatusIndicator = forwardRef((props, ref) => {
|
|
1746
|
+
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
1747
|
+
css$P.root,
|
|
1748
|
+
css$P[`size-${props.size || 24}`],
|
|
1749
|
+
'uui-status_indicator',
|
|
1750
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
1751
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
1752
|
+
props.cx,
|
|
1753
|
+
]) },
|
|
1754
|
+
React__default.createElement("div", { className: "uui-status_indicator_dot" }),
|
|
1755
|
+
React__default.createElement("p", { className: "uui-status_indicator_caption" }, props.caption)));
|
|
1756
|
+
});
|
|
1757
|
+
|
|
1758
|
+
var _path$y;
|
|
1759
|
+
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); }
|
|
1760
|
+
var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref) {
|
|
1761
|
+
return /*#__PURE__*/React.createElement("svg", _extends$z({
|
|
1762
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1763
|
+
width: 18,
|
|
1764
|
+
height: 18,
|
|
1765
|
+
viewBox: "0 0 18 18",
|
|
1766
|
+
ref: ref
|
|
1767
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
|
|
1768
|
+
fillRule: "evenodd",
|
|
1769
|
+
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",
|
|
1770
|
+
clipRule: "evenodd"
|
|
1771
|
+
})));
|
|
1772
|
+
};
|
|
1773
|
+
var ForwardRef$z = /*#__PURE__*/forwardRef(SvgNavigationChevronDown18);
|
|
1774
|
+
|
|
1775
|
+
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"};
|
|
1776
|
+
|
|
1777
|
+
function DataRowAddons(props) {
|
|
1778
|
+
var _a, _b;
|
|
1779
|
+
const row = props.rowProps;
|
|
1780
|
+
const additionalItemSize = +props.size < 30 ? '12' : '18';
|
|
1781
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
1782
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__default.createElement(DragHandle, { key: "dh", cx: css$O.dragHandle }),
|
|
1783
|
+
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__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 })),
|
|
1784
|
+
row.indent > 0 && (React__default.createElement("div", { key: "fold", className: css$O.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable && (React__default.createElement(IconContainer, { rawProps: {
|
|
1785
|
+
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1786
|
+
role: 'button',
|
|
1787
|
+
}, key: "icon", icon: ForwardRef$z, cx: [
|
|
1788
|
+
uuiElement.foldingArrow, css$O[`folding-arrow-${additionalItemSize}`], uuiMarkers.clickable, css$O.iconContainer,
|
|
1789
|
+
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))))));
|
|
1790
|
+
}
|
|
1711
1791
|
|
|
1712
|
-
var css$
|
|
1792
|
+
var css$N = {"root":"h2KPev"};
|
|
1713
1793
|
|
|
1714
|
-
const Blocker = withMods(Blocker$1, () => [css$
|
|
1794
|
+
const Blocker = withMods(Blocker$1, () => [css$N.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__default.createElement(Spinner, null)) }));
|
|
1715
1795
|
|
|
1716
1796
|
const VirtualList = React.forwardRef((props, ref) => {
|
|
1717
1797
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = useVirtualList({
|
|
@@ -1727,7 +1807,7 @@ const VirtualList = React.forwardRef((props, ref) => {
|
|
|
1727
1807
|
var _a;
|
|
1728
1808
|
return ((_a = props.renderRows) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
1729
1809
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1730
|
-
})) || (React.createElement("div", { className: css$
|
|
1810
|
+
})) || (React.createElement("div", { className: css$Y.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1731
1811
|
React.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1732
1812
|
};
|
|
1733
1813
|
const renderView = ({ style }) => (React.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
@@ -1737,7 +1817,7 @@ const VirtualList = React.forwardRef((props, ref) => {
|
|
|
1737
1817
|
return;
|
|
1738
1818
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1739
1819
|
}, []);
|
|
1740
|
-
return (React.createElement(ScrollBars, { cx: cx$1(css$
|
|
1820
|
+
return (React.createElement(ScrollBars, { cx: cx$1(css$Y.scrollContainer, props.cx, {
|
|
1741
1821
|
[uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1742
1822
|
[uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1743
1823
|
[uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -1751,11 +1831,29 @@ const VirtualListView = React.forwardRef((props, ref) => {
|
|
|
1751
1831
|
});
|
|
1752
1832
|
VirtualList.displayName = 'VirtualList';
|
|
1753
1833
|
|
|
1754
|
-
var css$
|
|
1834
|
+
var css$M = {"root":"acZmCZ"};
|
|
1755
1835
|
|
|
1756
|
-
|
|
1836
|
+
function CheckboxGroup(props) {
|
|
1837
|
+
const currentValue = props.value || [];
|
|
1838
|
+
const direction = props.direction || 'vertical';
|
|
1839
|
+
const handleChange = (selected, newVal) => {
|
|
1840
|
+
let newSelection;
|
|
1841
|
+
const actualValue = props.value || [];
|
|
1842
|
+
if (selected) {
|
|
1843
|
+
newSelection = actualValue.concat([newVal]);
|
|
1844
|
+
}
|
|
1845
|
+
else {
|
|
1846
|
+
newSelection = actualValue.filter((i) => i !== newVal);
|
|
1847
|
+
}
|
|
1848
|
+
props.onValueChange(newSelection);
|
|
1849
|
+
};
|
|
1850
|
+
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$M.root, directionMode[direction], props.cx) }, props.rawProps), props.items.map((i) => {
|
|
1851
|
+
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1852
|
+
return (React.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)));
|
|
1853
|
+
})));
|
|
1854
|
+
}
|
|
1757
1855
|
|
|
1758
|
-
var css$
|
|
1856
|
+
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"};
|
|
1759
1857
|
|
|
1760
1858
|
class DataPickerBody extends PickerBodyBase {
|
|
1761
1859
|
constructor() {
|
|
@@ -1767,16 +1865,16 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
1767
1865
|
if (this.props.renderNotFound) {
|
|
1768
1866
|
return this.props.renderNotFound();
|
|
1769
1867
|
}
|
|
1770
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
1868
|
+
return (React__default.createElement(FlexCell$1, { cx: css$L[`no-found-size-${this.props.searchSize || 36}`], grow: 1, textAlign: "center" },
|
|
1771
1869
|
React__default.createElement(Text, { size: this.props.searchSize || '36' }, i18n.dataPickerBody.noRecordsMessage)));
|
|
1772
1870
|
}
|
|
1773
1871
|
render() {
|
|
1774
1872
|
const searchSize = isMobile() ? '48' : this.props.searchSize || '36';
|
|
1775
1873
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1776
|
-
this.showSearch() && (React__default.createElement("div", { key: "search", className: css$
|
|
1874
|
+
this.showSearch() && (React__default.createElement("div", { key: "search", className: css$L.searchWrapper },
|
|
1777
1875
|
React__default.createElement(FlexCell$1, { grow: 1 },
|
|
1778
1876
|
React__default.createElement(SearchInput, Object.assign({ ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize, debounceDelay: this.props.searchDebounceDelay }))))),
|
|
1779
|
-
React__default.createElement(FlexRow, { key: "body", cx: cx$1(css$
|
|
1877
|
+
React__default.createElement(FlexRow, { key: "body", cx: cx$1(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__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()))));
|
|
1780
1878
|
}
|
|
1781
1879
|
}
|
|
1782
1880
|
|
|
@@ -1812,92 +1910,30 @@ function DataPickerFooterImpl(props) {
|
|
|
1812
1910
|
}
|
|
1813
1911
|
const DataPickerFooter = React__default.memo(DataPickerFooterImpl);
|
|
1814
1912
|
|
|
1815
|
-
var css$
|
|
1913
|
+
var css$K = {"header":"E9L6WK","close":"VGQcJT"};
|
|
1816
1914
|
|
|
1817
|
-
var _path$
|
|
1818
|
-
function _extends$
|
|
1915
|
+
var _path$x;
|
|
1916
|
+
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); }
|
|
1819
1917
|
var SvgNavigationClose24 = function SvgNavigationClose24(props, ref) {
|
|
1820
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1918
|
+
return /*#__PURE__*/React.createElement("svg", _extends$y({
|
|
1821
1919
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1822
1920
|
width: 25,
|
|
1823
1921
|
height: 24,
|
|
1824
1922
|
viewBox: "0 0 25 24",
|
|
1825
1923
|
ref: ref
|
|
1826
|
-
}, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
|
|
1827
|
-
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"
|
|
1828
|
-
})));
|
|
1829
|
-
};
|
|
1830
|
-
var ForwardRef$z = /*#__PURE__*/forwardRef(SvgNavigationClose24);
|
|
1831
|
-
|
|
1832
|
-
const DataPickerHeaderImpl = (props) => {
|
|
1833
|
-
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
1834
|
-
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$J.header },
|
|
1835
|
-
React__default.createElement(Text, { size: "48", fontWeight: "600" }, title),
|
|
1836
|
-
React__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 })));
|
|
1837
|
-
};
|
|
1838
|
-
const DataPickerHeader = React__default.memo(DataPickerHeaderImpl);
|
|
1839
|
-
|
|
1840
|
-
var _path$x;
|
|
1841
|
-
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); }
|
|
1842
|
-
var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref) {
|
|
1843
|
-
return /*#__PURE__*/React.createElement("svg", _extends$y({
|
|
1844
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1845
|
-
width: 18,
|
|
1846
|
-
height: 18,
|
|
1847
|
-
viewBox: "0 0 18 18",
|
|
1848
|
-
ref: ref
|
|
1849
1924
|
}, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
|
|
1850
|
-
|
|
1851
|
-
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",
|
|
1852
|
-
clipRule: "evenodd"
|
|
1925
|
+
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"
|
|
1853
1926
|
})));
|
|
1854
1927
|
};
|
|
1855
|
-
var ForwardRef$y = /*#__PURE__*/forwardRef(
|
|
1856
|
-
|
|
1857
|
-
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"};
|
|
1928
|
+
var ForwardRef$y = /*#__PURE__*/forwardRef(SvgNavigationClose24);
|
|
1858
1929
|
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
row.indent > 0 && (React.createElement("div", { key: "fold", className: css$I.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable && (React.createElement(IconContainer, { rawProps: {
|
|
1867
|
-
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1868
|
-
role: 'button',
|
|
1869
|
-
}, key: "icon", icon: ForwardRef$y, cx: [
|
|
1870
|
-
css$I.foldingArrow, css$I[`folding-arrow-${additionalItemSize}`], uuiMarkers.clickable, css$I.iconContainer,
|
|
1871
|
-
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))))));
|
|
1872
|
-
}
|
|
1873
|
-
function DataTableCell(props) {
|
|
1874
|
-
props = Object.assign({}, props);
|
|
1875
|
-
if (props.isFirstColumn) {
|
|
1876
|
-
props.addons = React.createElement(DataTableRowAddons, Object.assign({}, props));
|
|
1877
|
-
}
|
|
1878
|
-
props.renderPlaceholder = props.renderPlaceholder
|
|
1879
|
-
|| (() => (
|
|
1880
|
-
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
1881
|
-
React.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48', cx: css$I.loadingCell },
|
|
1882
|
-
React.createElement(TextPlaceholder, null))));
|
|
1883
|
-
props.renderUnknown = props.renderUnknown
|
|
1884
|
-
|| (() => (React.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48' }, "Unknown")));
|
|
1885
|
-
props.renderTooltip = (tooltipProps) => React.createElement(Tooltip, Object.assign({ color: "critical" }, tooltipProps));
|
|
1886
|
-
const isEditable = !!props.onValueChange;
|
|
1887
|
-
props.cx = [
|
|
1888
|
-
'uui-dt-vars',
|
|
1889
|
-
'data-table-cell',
|
|
1890
|
-
props.cx,
|
|
1891
|
-
css$I.cell,
|
|
1892
|
-
css$I['size-' + (props.size || '36')],
|
|
1893
|
-
css$I[`padding-${props.padding || (isEditable && !props.rowProps.isLoading && '0') || '12'}`],
|
|
1894
|
-
props.isFirstColumn && css$I[`padding-left-${props.padding || (isEditable && !props.rowProps.isLoading && '12') || '24'}`],
|
|
1895
|
-
props.isLastColumn && css$I['padding-right-24'],
|
|
1896
|
-
css$I[`align-widgets-${props.alignActions || 'top'}`],
|
|
1897
|
-
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
1898
|
-
];
|
|
1899
|
-
return React.createElement(DataTableCell$1, Object.assign({}, props));
|
|
1900
|
-
}
|
|
1930
|
+
const DataPickerHeaderImpl = (props) => {
|
|
1931
|
+
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
1932
|
+
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$K.header },
|
|
1933
|
+
React__default.createElement(Text, { size: "48", fontWeight: "600" }, title),
|
|
1934
|
+
React__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 })));
|
|
1935
|
+
};
|
|
1936
|
+
const DataPickerHeader = React__default.memo(DataPickerHeaderImpl);
|
|
1901
1937
|
|
|
1902
1938
|
var _path$w;
|
|
1903
1939
|
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); }
|
|
@@ -1944,55 +1980,81 @@ var SvgNotificationDone12 = function SvgNotificationDone12(props, ref) {
|
|
|
1944
1980
|
};
|
|
1945
1981
|
var ForwardRef$v = /*#__PURE__*/forwardRef(SvgNotificationDone12);
|
|
1946
1982
|
|
|
1947
|
-
var css$
|
|
1983
|
+
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"};
|
|
1984
|
+
|
|
1985
|
+
const getIcon = (size) => {
|
|
1986
|
+
switch (size) {
|
|
1987
|
+
case '24':
|
|
1988
|
+
return ForwardRef$v;
|
|
1989
|
+
case '30':
|
|
1990
|
+
return ForwardRef$w;
|
|
1991
|
+
case '36':
|
|
1992
|
+
return ForwardRef$w;
|
|
1993
|
+
case '42':
|
|
1994
|
+
return ForwardRef$x;
|
|
1995
|
+
default:
|
|
1996
|
+
return ForwardRef$w;
|
|
1997
|
+
}
|
|
1998
|
+
};
|
|
1999
|
+
function DataPickerCell(props) {
|
|
2000
|
+
const ref = React.useRef();
|
|
2001
|
+
let content;
|
|
2002
|
+
if (props.rowProps.isLoading) {
|
|
2003
|
+
content = (
|
|
2004
|
+
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
2005
|
+
React.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48', cx: css$J.loadingCell },
|
|
2006
|
+
React.createElement(TextPlaceholder, null)));
|
|
2007
|
+
}
|
|
2008
|
+
else if (props.rowProps.isUnknown) {
|
|
2009
|
+
content = (React.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48' }, "Unknown"));
|
|
2010
|
+
}
|
|
2011
|
+
else {
|
|
2012
|
+
content = (React.createElement("div", { key: `${props.rowProps.id}`, className: css$J.renderItem },
|
|
2013
|
+
props.renderItem(props.rowProps.value, props.rowProps),
|
|
2014
|
+
React.createElement(FlexSpacer, null),
|
|
2015
|
+
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React.createElement("div", { className: css$J.iconWrapper },
|
|
2016
|
+
React.createElement(IconContainer, { icon: getIcon(props.size), cx: props.rowProps.isChildrenSelected ? css$J.iconDefault : css$J.iconPrimary, rawProps: { 'aria-label': props.rowProps.isChildrenSelected
|
|
2017
|
+
? 'Child is selected'
|
|
2018
|
+
: 'Selected' } })))));
|
|
2019
|
+
}
|
|
2020
|
+
const getWrappedContent = () => (React.createElement("div", { className: css$J.contentWrapper }, content));
|
|
2021
|
+
return (React.createElement(FlexCell, { ref: ref, grow: 1, width: 0, minWidth: 0, rawProps: { role: 'cell' }, cx: [
|
|
2022
|
+
css$J.cell,
|
|
2023
|
+
props.cx,
|
|
2024
|
+
'data-picker-cell',
|
|
2025
|
+
css$J['size-' + (props.size || '36')],
|
|
2026
|
+
css$J[`padding-${props.padding || '12'}`],
|
|
2027
|
+
css$J[`padding-left-${props.padding || '24'}`],
|
|
2028
|
+
css$J[`align-widgets-${props.alignActions || 'top'}`],
|
|
2029
|
+
] },
|
|
2030
|
+
React.createElement(DataRowAddons, Object.assign({}, props)),
|
|
2031
|
+
getWrappedContent()));
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
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"};
|
|
1948
2035
|
|
|
1949
2036
|
class DataPickerRow extends React.Component {
|
|
1950
2037
|
constructor() {
|
|
1951
2038
|
super(...arguments);
|
|
1952
|
-
this.getIcon = (size) => {
|
|
1953
|
-
switch (size) {
|
|
1954
|
-
case '24':
|
|
1955
|
-
return ForwardRef$v;
|
|
1956
|
-
case '30':
|
|
1957
|
-
return ForwardRef$w;
|
|
1958
|
-
case '36':
|
|
1959
|
-
return ForwardRef$w;
|
|
1960
|
-
case '42':
|
|
1961
|
-
return ForwardRef$x;
|
|
1962
|
-
default:
|
|
1963
|
-
return ForwardRef$w;
|
|
1964
|
-
}
|
|
1965
|
-
};
|
|
1966
|
-
this.column = {
|
|
1967
|
-
key: 'name',
|
|
1968
|
-
grow: 1,
|
|
1969
|
-
width: 0,
|
|
1970
|
-
render: (item, rowProps) => (React.createElement("div", { key: rowProps.id, className: css$H.renderItem },
|
|
1971
|
-
this.props.renderItem(item, rowProps),
|
|
1972
|
-
React.createElement(FlexSpacer, null),
|
|
1973
|
-
(rowProps.isChildrenSelected || rowProps.isSelected) && (React.createElement("div", { className: css$H.iconWrapper },
|
|
1974
|
-
React.createElement(IconContainer, { icon: this.getIcon(this.props.size), cx: rowProps.isChildrenSelected ? css$H.iconDefault : css$H.iconPrimary, rawProps: { 'aria-label': rowProps.isChildrenSelected
|
|
1975
|
-
? 'Child is selected'
|
|
1976
|
-
: 'Selected' } }))))),
|
|
1977
|
-
};
|
|
1978
2039
|
this.renderContent = () => {
|
|
1979
|
-
return (React.createElement(
|
|
2040
|
+
return (React.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 }));
|
|
1980
2041
|
};
|
|
1981
2042
|
}
|
|
1982
2043
|
render() {
|
|
1983
|
-
return React.createElement(DataPickerRow$1, Object.assign({}, this.props, { cx: [css$
|
|
2044
|
+
return (React.createElement(DataPickerRow$1, Object.assign({}, this.props, { cx: [css$I.pickerRow, this.props.cx], renderContent: this.renderContent })));
|
|
1984
2045
|
}
|
|
1985
2046
|
}
|
|
1986
2047
|
|
|
1987
|
-
var css$
|
|
2048
|
+
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"};
|
|
1988
2049
|
|
|
1989
2050
|
const MobileDropdownWrapper = (props) => {
|
|
1990
2051
|
const isMobileView = isMobile();
|
|
1991
2052
|
const maxWidth = isMobileView ? 'auto' : props.maxWidth;
|
|
1992
|
-
|
|
2053
|
+
const maxHeight = isMobileView ? 'auto' : props.maxHeight;
|
|
2054
|
+
return (React__default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$H.container, props.cx] }),
|
|
1993
2055
|
isMobileView && React__default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
|
|
1994
2056
|
props.children,
|
|
1995
|
-
isMobileView && React__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$
|
|
2057
|
+
isMobileView && React__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" })));
|
|
1996
2058
|
};
|
|
1997
2059
|
|
|
1998
2060
|
var _path$t, _path2$2;
|
|
@@ -2017,103 +2079,9 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2017
2079
|
};
|
|
2018
2080
|
var ForwardRef$u = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
|
|
2019
2081
|
|
|
2020
|
-
var css$
|
|
2021
|
-
|
|
2022
|
-
function PickerModal(props) {
|
|
2023
|
-
const { view, selection, dataSourceStateLens, showSelectedLens, dataSourceState, getDataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = usePickerModal(props);
|
|
2024
|
-
const renderRow = (rowProps) => {
|
|
2025
|
-
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React__default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: "none", padding: "24", size: "36", renderItem: (i) => React__default.createElement(Text, { size: "36" }, rowProps.isLoading ? React__default.createElement(TextPlaceholder, { wordsCount: 2 }) : getName(i)) })));
|
|
2026
|
-
};
|
|
2027
|
-
const renderFooter = () => {
|
|
2028
|
-
const hasSelection = view.getSelectedRowsCount() > 0;
|
|
2029
|
-
const rowsCount = view.getListProps().rowsCount;
|
|
2030
|
-
const isEmptyRowsAndHasNoSelection = (rowsCount === 0 && !hasSelection);
|
|
2031
|
-
return (React__default.createElement(React__default.Fragment, null,
|
|
2032
|
-
view.selectAll && (React__default.createElement(LinkButton, { caption: hasSelection ? i18n.pickerModal.clearAllButton : i18n.pickerModal.selectAllButton, onClick: hasSelection ? () => clearSelection() : () => view.selectAll.onValueChange(true), isDisabled: isEmptyRowsAndHasNoSelection })),
|
|
2033
|
-
React__default.createElement(FlexSpacer, null),
|
|
2034
|
-
React__default.createElement(Button, { fill: "outline", color: "secondary", caption: i18n.pickerModal.cancelButton, onClick: () => props.abort() }),
|
|
2035
|
-
React__default.createElement(Button, { color: "accent", caption: i18n.pickerModal.selectButton, onClick: () => props.success(selection) })));
|
|
2036
|
-
};
|
|
2037
|
-
const renderNotFound = () => {
|
|
2038
|
-
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__default.createElement("div", { className: css$F.noFoundModalContainer },
|
|
2039
|
-
React__default.createElement(IconContainer, { cx: css$F.noFoundModalContainerIcon, icon: ForwardRef$u }),
|
|
2040
|
-
React__default.createElement(Text, { cx: css$F.noFoundModalContainerText, fontWeight: "600", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
2041
|
-
React__default.createElement(Text, { cx: css$F.noFoundModalContainerText, fontSize: "12", lineHeight: "18", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
2042
|
-
};
|
|
2043
|
-
const dataRows = getRows();
|
|
2044
|
-
const rows = dataRows.map((row) => renderRow(row));
|
|
2045
|
-
return (React__default.createElement(ModalBlocker, Object.assign({}, props),
|
|
2046
|
-
React__default.createElement(ModalWindow, { width: 600, height: 700 },
|
|
2047
|
-
React__default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
2048
|
-
React__default.createElement(FlexCell, { cx: css$F.subHeaderWrapper },
|
|
2049
|
-
React__default.createElement(FlexRow, { vPadding: "24" },
|
|
2050
|
-
React__default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => handleDataSourceKeyboard({
|
|
2051
|
-
value: getDataSourceState(),
|
|
2052
|
-
onValueChange: handleDataSourceValueChange,
|
|
2053
|
-
listView: view,
|
|
2054
|
-
rows: dataRows,
|
|
2055
|
-
searchPosition: 'body',
|
|
2056
|
-
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder }))),
|
|
2057
|
-
!isSingleSelect() && (React__default.createElement(Switch, Object.assign({ cx: css$F.switch, size: "18" }, showSelectedLens.toProps(), { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
2058
|
-
props.renderFilter && React__default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
2059
|
-
React__default.createElement(DataPickerBody, Object.assign({}, getListProps(), { value: getDataSourceState(), onValueChange: handleDataSourceValueChange, search: dataSourceStateLens.prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: renderNotFound, editMode: "modal" })),
|
|
2060
|
-
React__default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
2061
|
-
}
|
|
2062
|
-
|
|
2063
|
-
const MAX_ITEMS = 100;
|
|
2064
|
-
const getMaxItems = (maxItems) => maxItems || maxItems === 0 ? maxItems : MAX_ITEMS;
|
|
2065
|
-
|
|
2066
|
-
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"};
|
|
2067
|
-
|
|
2068
|
-
const defaultSize$2 = '36';
|
|
2069
|
-
const defaultMode$1 = EditMode.FORM;
|
|
2070
|
-
function applyPickerTogglerMods(mods) {
|
|
2071
|
-
return [
|
|
2072
|
-
css$E.root,
|
|
2073
|
-
css$E['size-' + (mods.size || defaultSize$2)],
|
|
2074
|
-
css$E['mode-' + (mods.mode || defaultMode$1)],
|
|
2075
|
-
];
|
|
2076
|
-
}
|
|
2077
|
-
function PickerTogglerComponent(props, ref) {
|
|
2078
|
-
const getPickerTogglerButtonSize = (propSize) => {
|
|
2079
|
-
switch (propSize) {
|
|
2080
|
-
case '48':
|
|
2081
|
-
return '42';
|
|
2082
|
-
case '42':
|
|
2083
|
-
return '36';
|
|
2084
|
-
case '36':
|
|
2085
|
-
return '30';
|
|
2086
|
-
case '30':
|
|
2087
|
-
return '24';
|
|
2088
|
-
case '24':
|
|
2089
|
-
return '18';
|
|
2090
|
-
}
|
|
2091
|
-
};
|
|
2092
|
-
const getCaption = (row) => {
|
|
2093
|
-
const maxItems = getMaxItems(props.maxItems);
|
|
2094
|
-
if (row.isLoading) {
|
|
2095
|
-
return React.createElement(TextPlaceholder, null);
|
|
2096
|
-
}
|
|
2097
|
-
else if (!props.getName || props.selectedRowsCount > maxItems) {
|
|
2098
|
-
return row.value;
|
|
2099
|
-
}
|
|
2100
|
-
else {
|
|
2101
|
-
return props.getName(row.value);
|
|
2102
|
-
}
|
|
2103
|
-
};
|
|
2104
|
-
const renderItem = (row) => {
|
|
2105
|
-
var _a;
|
|
2106
|
-
return (React.createElement(Tag, { key: row.rowKey, caption: getCaption(row), tabIndex: -1, size: props.size ? getPickerTogglerButtonSize(props.size) : '30', onClear: (e) => {
|
|
2107
|
-
var _a;
|
|
2108
|
-
(_a = row.onCheck) === null || _a === void 0 ? void 0 : _a.call(row, row);
|
|
2109
|
-
e.stopPropagation();
|
|
2110
|
-
}, isDisabled: props.isDisabled || props.isReadonly || ((_a = row === null || row === void 0 ? void 0 : row.checkbox) === null || _a === void 0 ? void 0 : _a.isDisabled) }));
|
|
2111
|
-
};
|
|
2112
|
-
return (React.createElement(PickerToggler$1, 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 })));
|
|
2113
|
-
}
|
|
2114
|
-
const PickerToggler = React.forwardRef(PickerTogglerComponent);
|
|
2082
|
+
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"};
|
|
2115
2083
|
|
|
2116
|
-
var css$
|
|
2084
|
+
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"};
|
|
2117
2085
|
|
|
2118
2086
|
const mergeHighlightRanges = (ranges) => {
|
|
2119
2087
|
const mergedRanges = [];
|
|
@@ -2180,7 +2148,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
2180
2148
|
return getDecoratedText(str, ranges);
|
|
2181
2149
|
};
|
|
2182
2150
|
|
|
2183
|
-
const defaultSize$
|
|
2151
|
+
const defaultSize$2 = '36';
|
|
2184
2152
|
class PickerItem extends React.Component {
|
|
2185
2153
|
constructor() {
|
|
2186
2154
|
super(...arguments);
|
|
@@ -2191,24 +2159,130 @@ class PickerItem extends React.Component {
|
|
|
2191
2159
|
render() {
|
|
2192
2160
|
var _a;
|
|
2193
2161
|
const { size, avatarUrl, isLoading, isDisabled, icon, highlightSearchMatches, cx, } = this.props;
|
|
2194
|
-
const itemSize = size
|
|
2162
|
+
const itemSize = size || defaultSize$2;
|
|
2195
2163
|
const isMultiline = !!(this.props.title && this.props.subtitle);
|
|
2196
2164
|
const { search } = (_a = this.props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2197
2165
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(this.props.title, search) : this.props.title;
|
|
2198
2166
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(this.props.subtitle, search) : this.props.subtitle;
|
|
2199
|
-
return (React.createElement(FlexCell, { width: "auto", cx: [css$
|
|
2200
|
-
React.createElement(FlexRow, { size: itemSize, cx: isMultiline && [css$
|
|
2167
|
+
return (React.createElement(FlexCell, { width: "auto", cx: [css$F.root, 'uui-typography', cx] },
|
|
2168
|
+
React.createElement(FlexRow, { size: itemSize, cx: isMultiline && [css$F.multiline, css$F[`vertical-padding-${itemSize}`]], spacing: "12" },
|
|
2201
2169
|
avatarUrl && React.createElement(Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2202
2170
|
icon && React.createElement(IconContainer, { icon: icon }),
|
|
2203
2171
|
React.createElement(FlexCell, { width: "auto" },
|
|
2204
|
-
title && (React.createElement(Text, { size: itemSize, cx: css$
|
|
2205
|
-
subtitle && (React.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$
|
|
2172
|
+
title && (React.createElement(Text, { size: itemSize, cx: css$F.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React.createElement(TextPlaceholder, { wordsCount: 2 }) : title)),
|
|
2173
|
+
subtitle && (React.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$F.text }, isLoading ? React.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
2206
2174
|
}
|
|
2207
2175
|
}
|
|
2208
2176
|
PickerItem.defaultProps = {
|
|
2209
2177
|
highlightSearchMatches: true,
|
|
2210
2178
|
};
|
|
2211
2179
|
|
|
2180
|
+
function PickerModal(props) {
|
|
2181
|
+
const { view, selection, dataSourceStateLens, showSelectedLens, dataSourceState, getDataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = usePickerModal(props);
|
|
2182
|
+
const getSubtitle = ({ path }, { search }) => {
|
|
2183
|
+
if (!search)
|
|
2184
|
+
return;
|
|
2185
|
+
return path
|
|
2186
|
+
.map(({ value }) => getName(value))
|
|
2187
|
+
.filter(Boolean)
|
|
2188
|
+
.join(' / ');
|
|
2189
|
+
};
|
|
2190
|
+
const renderItem = (item, rowProps, dsState) => {
|
|
2191
|
+
const { flattenSearchResults } = view.getConfig();
|
|
2192
|
+
return (React__default.createElement(PickerItem, Object.assign({ title: getName(item), size: "36", dataSourceState: dsState }, (flattenSearchResults ? { subtitle: getSubtitle(rowProps, dataSourceState) } : {}), rowProps)));
|
|
2193
|
+
};
|
|
2194
|
+
const renderRow = (rowProps) => {
|
|
2195
|
+
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React__default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, padding: "24", size: "36", renderItem: (item, itemProps) => renderItem(item, itemProps, dataSourceState) })));
|
|
2196
|
+
};
|
|
2197
|
+
const renderFooter = () => {
|
|
2198
|
+
const hasSelection = view.getSelectedRowsCount() > 0;
|
|
2199
|
+
const rowsCount = view.getListProps().rowsCount;
|
|
2200
|
+
const isEmptyRowsAndHasNoSelection = (rowsCount === 0 && !hasSelection);
|
|
2201
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
2202
|
+
view.selectAll && (React__default.createElement(LinkButton, { caption: hasSelection ? i18n.pickerModal.clearAllButton : i18n.pickerModal.selectAllButton, onClick: hasSelection ? () => clearSelection() : () => view.selectAll.onValueChange(true), isDisabled: isEmptyRowsAndHasNoSelection })),
|
|
2203
|
+
React__default.createElement(FlexSpacer, null),
|
|
2204
|
+
React__default.createElement(Button, { fill: "outline", color: "secondary", caption: i18n.pickerModal.cancelButton, onClick: () => props.abort() }),
|
|
2205
|
+
React__default.createElement(Button, { color: "accent", caption: i18n.pickerModal.selectButton, onClick: () => props.success(selection) })));
|
|
2206
|
+
};
|
|
2207
|
+
const renderNotFound = () => {
|
|
2208
|
+
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__default.createElement("div", { className: css$G.noFoundModalContainer },
|
|
2209
|
+
React__default.createElement(IconContainer, { cx: css$G.noFoundModalContainerIcon, icon: ForwardRef$u }),
|
|
2210
|
+
React__default.createElement(Text, { cx: css$G.noFoundModalContainerText, fontWeight: "600", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
2211
|
+
React__default.createElement(Text, { cx: css$G.noFoundModalContainerText, fontSize: "12", lineHeight: "18", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
2212
|
+
};
|
|
2213
|
+
const dataRows = getRows();
|
|
2214
|
+
const rows = dataRows.map((row) => renderRow(row));
|
|
2215
|
+
return (React__default.createElement(ModalBlocker, Object.assign({}, props),
|
|
2216
|
+
React__default.createElement(ModalWindow, { width: 600, height: 700 },
|
|
2217
|
+
React__default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
2218
|
+
React__default.createElement(FlexCell, { cx: css$G.subHeaderWrapper },
|
|
2219
|
+
React__default.createElement(FlexRow, { vPadding: "24" },
|
|
2220
|
+
React__default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => handleDataSourceKeyboard({
|
|
2221
|
+
value: getDataSourceState(),
|
|
2222
|
+
onValueChange: handleDataSourceValueChange,
|
|
2223
|
+
listView: view,
|
|
2224
|
+
rows: dataRows,
|
|
2225
|
+
searchPosition: 'body',
|
|
2226
|
+
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder }))),
|
|
2227
|
+
!isSingleSelect() && (React__default.createElement(Switch, Object.assign({ cx: css$G.switch, size: "18" }, showSelectedLens.toProps(), { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
2228
|
+
props.renderFilter && React__default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
2229
|
+
React__default.createElement(DataPickerBody, Object.assign({}, getListProps(), { value: getDataSourceState(), onValueChange: handleDataSourceValueChange, search: dataSourceStateLens.prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: renderNotFound, editMode: "modal" })),
|
|
2230
|
+
React__default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
const MAX_ITEMS = 100;
|
|
2234
|
+
const getMaxItems = (maxItems) => maxItems || maxItems === 0 ? maxItems : MAX_ITEMS;
|
|
2235
|
+
|
|
2236
|
+
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"};
|
|
2237
|
+
|
|
2238
|
+
const defaultSize$1 = '36';
|
|
2239
|
+
const defaultMode$1 = EditMode.FORM;
|
|
2240
|
+
function applyPickerTogglerMods(mods) {
|
|
2241
|
+
return [
|
|
2242
|
+
css$E.root,
|
|
2243
|
+
css$E['size-' + (mods.size || defaultSize$1)],
|
|
2244
|
+
css$E['mode-' + (mods.mode || defaultMode$1)],
|
|
2245
|
+
];
|
|
2246
|
+
}
|
|
2247
|
+
function PickerTogglerComponent(props, ref) {
|
|
2248
|
+
const getPickerTogglerButtonSize = (propSize) => {
|
|
2249
|
+
switch (propSize) {
|
|
2250
|
+
case '48':
|
|
2251
|
+
return '42';
|
|
2252
|
+
case '42':
|
|
2253
|
+
return '36';
|
|
2254
|
+
case '36':
|
|
2255
|
+
return '30';
|
|
2256
|
+
case '30':
|
|
2257
|
+
return '24';
|
|
2258
|
+
case '24':
|
|
2259
|
+
return '18';
|
|
2260
|
+
}
|
|
2261
|
+
};
|
|
2262
|
+
const getCaption = (row) => {
|
|
2263
|
+
const maxItems = getMaxItems(props.maxItems);
|
|
2264
|
+
if (row.isLoading) {
|
|
2265
|
+
return React.createElement(TextPlaceholder, null);
|
|
2266
|
+
}
|
|
2267
|
+
else if (!props.getName || props.selectedRowsCount > maxItems) {
|
|
2268
|
+
return row.value;
|
|
2269
|
+
}
|
|
2270
|
+
else {
|
|
2271
|
+
return props.getName(row.value);
|
|
2272
|
+
}
|
|
2273
|
+
};
|
|
2274
|
+
const renderItem = (row) => {
|
|
2275
|
+
var _a;
|
|
2276
|
+
return (React.createElement(Tag, { key: row.rowKey, caption: getCaption(row), tabIndex: -1, size: props.size ? getPickerTogglerButtonSize(props.size) : '30', onClear: (e) => {
|
|
2277
|
+
var _a;
|
|
2278
|
+
(_a = row.onCheck) === null || _a === void 0 ? void 0 : _a.call(row, row);
|
|
2279
|
+
e.stopPropagation();
|
|
2280
|
+
}, isDisabled: props.isDisabled || props.isReadonly || ((_a = row === null || row === void 0 ? void 0 : row.checkbox) === null || _a === void 0 ? void 0 : _a.isDisabled) }));
|
|
2281
|
+
};
|
|
2282
|
+
return (React.createElement(PickerToggler$1, 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 })));
|
|
2283
|
+
}
|
|
2284
|
+
const PickerToggler = React.forwardRef(PickerTogglerComponent);
|
|
2285
|
+
|
|
2212
2286
|
const pickerHeight$1 = 300;
|
|
2213
2287
|
const pickerWidth = 360;
|
|
2214
2288
|
function PickerInputComponent(_a, ref) {
|
|
@@ -2222,7 +2296,7 @@ function PickerInputComponent(_a, ref) {
|
|
|
2222
2296
|
})
|
|
2223
2297
|
.catch(() => { });
|
|
2224
2298
|
};
|
|
2225
|
-
const { context, popperModifiers, getName, getPlaceholder, handleSelectionValueChange, getTogglerProps, getRows, handleTogglerSearchChange, toggleBodyOpening, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, shouldShowBody, getSearchPosition, handlePickerInputKeyboard, } = usePickerInput(Object.assign(Object.assign({}, props), { toggleModalOpening }));
|
|
2299
|
+
const { view, context, popperModifiers, getName, getPlaceholder, handleSelectionValueChange, getTogglerProps, getRows, handleTogglerSearchChange, toggleBodyOpening, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, shouldShowBody, getSearchPosition, handlePickerInputKeyboard, } = usePickerInput(Object.assign(Object.assign({}, props), { toggleModalOpening }));
|
|
2226
2300
|
const getTogglerMods = () => {
|
|
2227
2301
|
return {
|
|
2228
2302
|
size: props.size,
|
|
@@ -2243,11 +2317,20 @@ function PickerInputComponent(_a, ref) {
|
|
|
2243
2317
|
}
|
|
2244
2318
|
return props.editMode === 'modal' ? '36' : props.size;
|
|
2245
2319
|
};
|
|
2320
|
+
const getSubtitle = ({ path }, { search }) => {
|
|
2321
|
+
if (!search)
|
|
2322
|
+
return;
|
|
2323
|
+
return path
|
|
2324
|
+
.map(({ value }) => getName(value))
|
|
2325
|
+
.filter(Boolean)
|
|
2326
|
+
.join(' / ');
|
|
2327
|
+
};
|
|
2246
2328
|
const renderItem = (item, rowProps, dsState) => {
|
|
2247
|
-
|
|
2329
|
+
const { flattenSearchResults } = view.getConfig();
|
|
2330
|
+
return (React__default.createElement(PickerItem, Object.assign({ title: getName(item), size: getRowSize(), dataSourceState: dsState, highlightSearchMatches: highlightSearchMatches }, (flattenSearchResults ? { subtitle: getSubtitle(rowProps, dataSourceState) } : {}), rowProps)));
|
|
2248
2331
|
};
|
|
2249
2332
|
const renderRow = (rowProps, dsState) => {
|
|
2250
|
-
return props.renderRow ? (props.renderRow(rowProps, dsState)) : (React__default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey,
|
|
2333
|
+
return props.renderRow ? (props.renderRow(rowProps, dsState)) : (React__default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, size: getRowSize(), padding: props.editMode === 'modal' ? '24' : '12', renderItem: (item, itemProps) => renderItem(item, itemProps, dsState) })));
|
|
2251
2334
|
};
|
|
2252
2335
|
const renderBody = (bodyProps, rows) => {
|
|
2253
2336
|
const renderedDataRows = rows.map((row) => renderRow(row, dataSourceState));
|
|
@@ -2270,7 +2353,7 @@ function PickerInputComponent(_a, ref) {
|
|
|
2270
2353
|
}
|
|
2271
2354
|
const PickerInput = React__default.forwardRef(PickerInputComponent);
|
|
2272
2355
|
|
|
2273
|
-
var css$
|
|
2356
|
+
var css$D = {"row":"igcBWl"};
|
|
2274
2357
|
|
|
2275
2358
|
function PickerListItem(props) {
|
|
2276
2359
|
var _a;
|
|
@@ -2288,7 +2371,7 @@ function PickerListItem(props) {
|
|
|
2288
2371
|
else {
|
|
2289
2372
|
component = (React__default.createElement(RadioInput, { label: label, value: props.isSelected, isDisabled: props.isLoading || !props.isSelectable || props.isDisabled, onValueChange: () => props.onSelect(props) }));
|
|
2290
2373
|
}
|
|
2291
|
-
return (React__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$
|
|
2374
|
+
return (React__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));
|
|
2292
2375
|
}
|
|
2293
2376
|
|
|
2294
2377
|
function PickerList(props) {
|
|
@@ -2329,7 +2412,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
2329
2412
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
2330
2413
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
2331
2414
|
|
|
2332
|
-
var css$
|
|
2415
|
+
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"};
|
|
2333
2416
|
|
|
2334
2417
|
const defaultSize = '36';
|
|
2335
2418
|
const FilterPanelItemToggler = React.forwardRef((props, ref) => {
|
|
@@ -2354,19 +2437,19 @@ const FilterPanelItemToggler = React.forwardRef((props, ref) => {
|
|
|
2354
2437
|
};
|
|
2355
2438
|
const getTitle = props.predicateName ? `${props.title} ${props.predicateName}` : `${props.title}${props.selection ? ':' : ''}`;
|
|
2356
2439
|
const getSelectionText = () => props.selection.map((i, index) => (React.createElement(React.Fragment, { key: `${i}${index}` },
|
|
2357
|
-
React.createElement(Text, { color: "brand", size: props.size, cx: css$
|
|
2440
|
+
React.createElement(Text, { color: "brand", size: props.size, cx: css$C.selection }, i),
|
|
2358
2441
|
(props.postfix || index !== props.selection.length - 1) && React.createElement("span", null, ",\u00A0"))));
|
|
2359
2442
|
return (React.createElement(FlexRow$1, Object.assign({}, props, { rawProps: {
|
|
2360
2443
|
style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` },
|
|
2361
2444
|
role: 'button',
|
|
2362
2445
|
tabIndex: props.isDisabled ? -1 : 0,
|
|
2363
2446
|
onKeyDown: onKeyDownHandler,
|
|
2364
|
-
}, cx: cx(UUI_FILTERS_PANEL_ITEM_TOGGLER, css$
|
|
2365
|
-
React.createElement(FlexRow$1, { cx: css$
|
|
2366
|
-
React.createElement(Text, { size: props.size, cx: css$
|
|
2367
|
-
props.selection && (React.createElement("div", { className: css$
|
|
2447
|
+
}, cx: cx(UUI_FILTERS_PANEL_ITEM_TOGGLER, css$C.root, uuiElement.inputBox, uuiMarkers.clickable, props.isOpen && uuiMod.opened, `size-${props.size || defaultSize}`, props.cx), onClick: togglerPickerOpened, ref: ref }),
|
|
2448
|
+
React.createElement(FlexRow$1, { cx: css$C.titleWrapper },
|
|
2449
|
+
React.createElement(Text, { size: props.size, cx: css$C.title }, getTitle),
|
|
2450
|
+
props.selection && (React.createElement("div", { className: css$C.textWrapper },
|
|
2368
2451
|
getSelectionText(),
|
|
2369
|
-
props.postfix && (React.createElement(Text, { color: "brand", size: props.size, cx: css$
|
|
2452
|
+
props.postfix && (React.createElement(Text, { color: "brand", size: props.size, cx: css$C.postfix }, props.postfix))))),
|
|
2370
2453
|
!props.isDisabled && React.createElement(IconContainer, { icon: systemIcons[props.size || defaultSize].foldingArrow, flipY: props.isOpen, cx: "uui-icon-dropdown" })));
|
|
2371
2454
|
});
|
|
2372
2455
|
|
|
@@ -2386,14 +2469,14 @@ function FilterPickerBody(props) {
|
|
|
2386
2469
|
if (rowProps.isSelectable && isSingleSelect() && props.editMode !== 'modal') {
|
|
2387
2470
|
rowProps.onSelect = onSelect;
|
|
2388
2471
|
}
|
|
2389
|
-
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey,
|
|
2472
|
+
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, size: "36", padding: "12", renderItem: renderItem })));
|
|
2390
2473
|
};
|
|
2391
2474
|
const renderFooter = () => {
|
|
2392
2475
|
return React.createElement(DataPickerFooter, Object.assign({}, getFooterProps(), { size: "36" }));
|
|
2393
2476
|
};
|
|
2394
2477
|
const renderBody = (bodyProps, rows) => {
|
|
2395
2478
|
const renderedDataRows = rows.map((props) => renderRow(props));
|
|
2396
|
-
const maxHeight = isMobile() ? document.documentElement.clientHeight : props.
|
|
2479
|
+
const maxHeight = isMobile() ? document.documentElement.clientHeight : props.maxBodyHeight || pickerHeight;
|
|
2397
2480
|
const maxWidth = isMobile() ? undefined : 360;
|
|
2398
2481
|
return (React.createElement(React.Fragment, null,
|
|
2399
2482
|
React.createElement(DataPickerBody, Object.assign({}, bodyProps, { selectionMode: props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, maxWidth: maxWidth, searchSize: "36", editMode: "dropdown" })),
|
|
@@ -2406,7 +2489,6 @@ function FilterPickerBody(props) {
|
|
|
2406
2489
|
class FilterDatePickerBody extends BaseDatePicker {
|
|
2407
2490
|
constructor() {
|
|
2408
2491
|
super(...arguments);
|
|
2409
|
-
this.state = Object.assign(Object.assign({}, super.getValue()), { isOpen: false, inputValue: null });
|
|
2410
2492
|
this.renderInput = () => {
|
|
2411
2493
|
return null;
|
|
2412
2494
|
};
|
|
@@ -2435,7 +2517,7 @@ class FilterDatePickerBody extends BaseDatePicker {
|
|
|
2435
2517
|
}
|
|
2436
2518
|
}
|
|
2437
2519
|
|
|
2438
|
-
var css$
|
|
2520
|
+
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"};
|
|
2439
2521
|
|
|
2440
2522
|
class FilterRangeDatePickerBody extends BaseRangeDatePicker {
|
|
2441
2523
|
constructor() {
|
|
@@ -2455,10 +2537,10 @@ class FilterRangeDatePickerBody extends BaseRangeDatePicker {
|
|
|
2455
2537
|
React.createElement(RangeDatePickerBody, { value: this.getValue(), onValueChange: this.onRangeChange, filter: this.props.filter, focusPart: this.state.inFocus, changeIsOpen: this.changeIsOpen, presets: this.props.presets })),
|
|
2456
2538
|
React.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2457
2539
|
React.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2458
|
-
React.createElement("div", { className: cx(css$
|
|
2459
|
-
React.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx(css$
|
|
2460
|
-
React.createElement("div", { className: css$
|
|
2461
|
-
React.createElement(TextInput, { cx: cx(css$
|
|
2540
|
+
React.createElement("div", { className: cx(css$B.dateInputGroup, this.state.inFocus && uuiMod.focus) },
|
|
2541
|
+
React.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx(css$B.dateInput, css$B['size-30'], this.state.inFocus === 'from' && 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') }),
|
|
2542
|
+
React.createElement("div", { className: css$B.separator }),
|
|
2543
|
+
React.createElement(TextInput, { cx: cx(css$B.dateInput, css$B['size-30'], this.state.inFocus === 'to' && 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') })),
|
|
2462
2544
|
React.createElement(FlexSpacer, null),
|
|
2463
2545
|
React.createElement(LinkButton, { isDisabled: !this.state.inputValue.from && !this.state.inputValue.to, caption: i18n.pickerModal.clearAllButton, onClick: this.handleCancel })))));
|
|
2464
2546
|
}
|
|
@@ -2467,11 +2549,16 @@ class FilterRangeDatePickerBody extends BaseRangeDatePicker {
|
|
|
2467
2549
|
}
|
|
2468
2550
|
}
|
|
2469
2551
|
|
|
2470
|
-
var css$
|
|
2552
|
+
var css$A = {"container":"T9DU35"};
|
|
2471
2553
|
|
|
2472
2554
|
function FilterNumericBody(props) {
|
|
2473
2555
|
var _a, _b;
|
|
2474
2556
|
const isInRangePredicate = (props === null || props === void 0 ? void 0 : props.selectedPredicate) === 'inRange' || (props === null || props === void 0 ? void 0 : props.selectedPredicate) === 'notInRange';
|
|
2557
|
+
const isWrongRange = (from, to) => {
|
|
2558
|
+
if (!to && to !== 0)
|
|
2559
|
+
return false;
|
|
2560
|
+
return from > to;
|
|
2561
|
+
};
|
|
2475
2562
|
const rangeValueHandler = (type) => (val) => {
|
|
2476
2563
|
var _a, _b;
|
|
2477
2564
|
const value = props.value;
|
|
@@ -2511,15 +2598,15 @@ function FilterNumericBody(props) {
|
|
|
2511
2598
|
if (isInRangePredicate) {
|
|
2512
2599
|
const value = props.value;
|
|
2513
2600
|
return (React__default.createElement("div", null,
|
|
2514
|
-
React__default.createElement(FlexRow, { padding: "12", alignItems: "center", spacing: "12", borderBottom: true, cx: css$
|
|
2601
|
+
React__default.createElement(FlexRow, { padding: "12", alignItems: "center", spacing: "12", borderBottom: true, cx: css$A.container },
|
|
2515
2602
|
React__default.createElement(FlexCell, { width: "100%" },
|
|
2516
2603
|
React__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 } })),
|
|
2517
2604
|
React__default.createElement(FlexCell, { width: "100%" },
|
|
2518
|
-
React__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 } }))),
|
|
2605
|
+
React__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) }))),
|
|
2519
2606
|
renderFooter()));
|
|
2520
2607
|
}
|
|
2521
2608
|
return (React__default.createElement("div", null,
|
|
2522
|
-
React__default.createElement(FlexRow, { padding: "12", alignItems: "center", borderBottom: true, cx: css$
|
|
2609
|
+
React__default.createElement(FlexRow, { padding: "12", alignItems: "center", borderBottom: true, cx: css$A.container },
|
|
2523
2610
|
React__default.createElement(FlexCell, { width: 130 },
|
|
2524
2611
|
React__default.createElement(NumericInput, { value: typeof props.value === 'number' ? props.value : null, onValueChange: props.onValueChange, size: "36", placeholder: "Enter a number", formatOptions: { maximumFractionDigits: 2 } }))),
|
|
2525
2612
|
renderFooter()));
|
|
@@ -2559,7 +2646,7 @@ var SvgActionDeleteforever12 = function SvgActionDeleteforever12(props, ref) {
|
|
|
2559
2646
|
};
|
|
2560
2647
|
var ForwardRef$t = /*#__PURE__*/forwardRef(SvgActionDeleteforever12);
|
|
2561
2648
|
|
|
2562
|
-
var css$
|
|
2649
|
+
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"};
|
|
2563
2650
|
|
|
2564
2651
|
function FiltersToolbarItemImpl(props) {
|
|
2565
2652
|
const { maxCount = 2 } = props;
|
|
@@ -2635,9 +2722,9 @@ function FiltersToolbarItemImpl(props) {
|
|
|
2635
2722
|
};
|
|
2636
2723
|
const renderHeader = (hideTitle) => {
|
|
2637
2724
|
var _a;
|
|
2638
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
2725
|
+
return (React__default.createElement("div", { className: cx(css$z.header, isPickersType && ((_a = props.showSearch) !== null && _a !== void 0 ? _a : css$z.withSearch)) },
|
|
2639
2726
|
props.predicates ? (React__default.createElement(MultiSwitch, { items: props.predicates.map((i) => ({ id: i.predicate, caption: i.name })), value: predicate, onValueChange: changePredicate, size: "24" })) : (!hideTitle && (React__default.createElement(Text, { color: "secondary", size: "24", fontSize: "14" }, props.title))),
|
|
2640
|
-
!(props === null || props === void 0 ? void 0 : props.isAlwaysVisible) && (React__default.createElement(LinkButton, { cx: css$
|
|
2727
|
+
!(props === null || props === void 0 ? void 0 : props.isAlwaysVisible) && (React__default.createElement(LinkButton, { cx: css$z.removeButton, caption: i18n.filterToolbar.datePicker.removeCaption, onClick: removeOnclickHandler, size: "24", icon: ForwardRef$t }))));
|
|
2641
2728
|
};
|
|
2642
2729
|
const renderBody = (dropdownProps) => {
|
|
2643
2730
|
const hideHeaderTitle = isPickersType && isMobileScreen;
|
|
@@ -2860,9 +2947,9 @@ function FiltersToolbarImpl(props) {
|
|
|
2860
2947
|
}
|
|
2861
2948
|
const FiltersPanel = React__default.memo(FiltersToolbarImpl);
|
|
2862
2949
|
|
|
2863
|
-
var css$
|
|
2950
|
+
var css$y = {"divider":"Z1EP4U","dropdownDeleteIcon":"M47n0M","presetsWrapper":"NMQBav","addPresetContainer":"_3lJYYr","dropContainer":"qBKiM8"};
|
|
2864
2951
|
|
|
2865
|
-
var css$
|
|
2952
|
+
var css$x = {"preset-dropdown-panel":"_6G8WBh","delete-row":"_45Cg-t","delete-button":"Z3dZnN","targetOpen":"mW5tkT","presetDropdownPanel":"_6G8WBh","deleteRow":"_45Cg-t","deleteButton":"Z3dZnN"};
|
|
2866
2953
|
|
|
2867
2954
|
var _path$q;
|
|
2868
2955
|
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); }
|
|
@@ -3027,7 +3114,7 @@ function PresetActionsDropdown(props) {
|
|
|
3027
3114
|
]);
|
|
3028
3115
|
const renderBody = () => {
|
|
3029
3116
|
const isReadonlyPreset = props.preset.isReadonly;
|
|
3030
|
-
return (React__default.createElement(Panel, { background: "surface-main", shadow: true, cx: css$
|
|
3117
|
+
return (React__default.createElement(Panel, { background: "surface-main", shadow: true, cx: css$x.presetDropdownPanel },
|
|
3031
3118
|
props.activePresetId === props.preset.id && props.hasPresetChanged(props.preset) && (React__default.createElement(React__default.Fragment, null,
|
|
3032
3119
|
!isReadonlyPreset && (React__default.createElement(FlexRow, { key: `${props.preset.id}-save-in-current` },
|
|
3033
3120
|
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$q, caption: "Save in current", onClick: saveInCurrentHandler }))),
|
|
@@ -3041,16 +3128,16 @@ function PresetActionsDropdown(props) {
|
|
|
3041
3128
|
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$n, caption: "Duplicate", onClick: duplicateHandler })),
|
|
3042
3129
|
React__default.createElement(FlexRow, { borderBottom: true, key: `${props.preset.id}-copyLink` },
|
|
3043
3130
|
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$l, caption: "Copy Link", onClick: copyUrlToClipboard })),
|
|
3044
|
-
!isReadonlyPreset && (React__default.createElement(FlexRow, { key: `${props.preset.id}-delete`, cx: css$
|
|
3045
|
-
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$k, caption: "Delete", cx: css$
|
|
3131
|
+
!isReadonlyPreset && (React__default.createElement(FlexRow, { key: `${props.preset.id}-delete`, cx: css$x.deleteRow },
|
|
3132
|
+
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$k, caption: "Delete", cx: css$x.deleteButton, onClick: deleteHandler })))));
|
|
3046
3133
|
};
|
|
3047
3134
|
const renderTarget = useCallback((dropdownProps) => {
|
|
3048
|
-
return (React__default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$
|
|
3135
|
+
return (React__default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$x.targetOpen, color: props.preset.id === props.activePresetId ? 'info' : 'neutral' }, dropdownProps, { icon: ForwardRef$r })));
|
|
3049
3136
|
}, []);
|
|
3050
3137
|
return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
3051
3138
|
}
|
|
3052
3139
|
|
|
3053
|
-
var css$
|
|
3140
|
+
var css$w = {"preset-input-cell":"btqiSH","preset-input":"eDBfhW","presetInputCell":"btqiSH","presetInput":"eDBfhW"};
|
|
3054
3141
|
|
|
3055
3142
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
3056
3143
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -3060,15 +3147,18 @@ const UUI_PRESETS_PANEL_PRESET = 'uui-presets-panel-preset';
|
|
|
3060
3147
|
function PresetInput(props) {
|
|
3061
3148
|
var _a;
|
|
3062
3149
|
const [presetCaption, setPresetCaption] = useState(((_a = props.preset) === null || _a === void 0 ? void 0 : _a.name) || '');
|
|
3150
|
+
const [readonly, setReadonly] = useState(false);
|
|
3063
3151
|
const cancelActionHandler = useCallback(() => {
|
|
3064
3152
|
setPresetCaption('');
|
|
3065
3153
|
props.onCancel();
|
|
3066
3154
|
}, [props.onCancel]);
|
|
3067
3155
|
const acceptActionHandler = useCallback(() => __awaiter(this, void 0, void 0, function* () {
|
|
3156
|
+
setReadonly(() => true);
|
|
3068
3157
|
if (presetCaption) {
|
|
3069
3158
|
yield props.onSuccess(presetCaption);
|
|
3070
3159
|
}
|
|
3071
3160
|
props.onCancel();
|
|
3161
|
+
setReadonly(() => false);
|
|
3072
3162
|
}), [presetCaption]);
|
|
3073
3163
|
const newPresetOnBlurHandler = useCallback(() => {
|
|
3074
3164
|
if (presetCaption.length) {
|
|
@@ -3076,11 +3166,11 @@ function PresetInput(props) {
|
|
|
3076
3166
|
}
|
|
3077
3167
|
props.onCancel();
|
|
3078
3168
|
}, [presetCaption.length, props.onCancel]);
|
|
3079
|
-
return (React__default.createElement(FlexCell, { cx: [css$
|
|
3080
|
-
React__default.createElement(TextInput, { cx: css$
|
|
3169
|
+
return (React__default.createElement(FlexCell, { cx: [css$w.presetInputCell, UUI_PRESETS_PANEL_INPUT], minWidth: 180 },
|
|
3170
|
+
React__default.createElement(TextInput, { cx: css$w.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
3081
3171
|
}
|
|
3082
3172
|
|
|
3083
|
-
var css$
|
|
3173
|
+
var css$v = {"preset":"vjDQ-S","activePreset":"pIaB6m"};
|
|
3084
3174
|
|
|
3085
3175
|
function Preset(props) {
|
|
3086
3176
|
const [isRenamePreset, setIsRenamePreset] = useState(false);
|
|
@@ -3098,7 +3188,7 @@ function Preset(props) {
|
|
|
3098
3188
|
return props.updatePreset(newPreset);
|
|
3099
3189
|
}, [props.preset]);
|
|
3100
3190
|
const isPresetActive = props.activePresetId === props.preset.id;
|
|
3101
|
-
return (React__default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__default.createElement(TabButton, { caption: props.preset.name, onClick: !isPresetActive && choosePresetHandler, cx: [css$
|
|
3191
|
+
return (React__default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__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__default.createElement(PresetActionsDropdown, Object.assign({ renamePreset: setPresetForRename }, props)), iconPosition: "right", isLinkActive: isPresetActive }))));
|
|
3102
3192
|
}
|
|
3103
3193
|
|
|
3104
3194
|
function PresetsPanel(props) {
|
|
@@ -3114,16 +3204,16 @@ function PresetsPanel(props) {
|
|
|
3114
3204
|
return React__default.createElement(Preset, Object.assign({ key: preset.id, preset: preset, addPreset: setAddingPreset }, presetApi));
|
|
3115
3205
|
};
|
|
3116
3206
|
const renderAddPresetButton = useCallback(() => {
|
|
3117
|
-
return (React__default.createElement("div", { key: "addingPresetBlock", className: css$
|
|
3207
|
+
return (React__default.createElement("div", { key: "addingPresetBlock", className: css$y.addPresetContainer }, !isAddingPreset ? (React__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__default.createElement(PresetInput, { onCancel: cancelAddingPreset, onSuccess: props.createNewPreset }))));
|
|
3118
3208
|
}, [isAddingPreset]);
|
|
3119
3209
|
const onPresetDropdownSelect = (preset) => {
|
|
3120
3210
|
props.choosePreset(preset.preset);
|
|
3121
3211
|
};
|
|
3122
3212
|
const renderMoreButtonDropdown = (item, hiddenItems) => {
|
|
3123
3213
|
return (React__default.createElement(Dropdown, { key: "more", renderTarget: (props) => (React__default.createElement(FlexRow, null,
|
|
3124
|
-
React__default.createElement("div", { className: css$
|
|
3125
|
-
React__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__default.createElement(DropdownContainer, Object.assign({ cx: cx$1(css$
|
|
3126
|
-
React__default.createElement(ScrollBars$1, null, hiddenItems.map((hiddenItem) => (React__default.createElement(DropdownMenuButton, { key: hiddenItem.preset.id, onClick: () => onPresetDropdownSelect(hiddenItem), caption: hiddenItem.preset.name, icon: !hiddenItem.preset.isReadonly && ForwardRef$k, iconPosition: "right", cx: css$
|
|
3214
|
+
React__default.createElement("div", { className: css$y.divider }),
|
|
3215
|
+
React__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__default.createElement(DropdownContainer, Object.assign({ cx: cx$1(css$y.dropContainer), width: 230 }, propsBody),
|
|
3216
|
+
React__default.createElement(ScrollBars$1, null, hiddenItems.map((hiddenItem) => (React__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)) })))))) }));
|
|
3127
3217
|
};
|
|
3128
3218
|
const getPresetPriority = (preset, index) => {
|
|
3129
3219
|
return preset.id === props.activePresetId ? 100499 : 1000 - index;
|
|
@@ -3141,7 +3231,7 @@ function PresetsPanel(props) {
|
|
|
3141
3231
|
];
|
|
3142
3232
|
};
|
|
3143
3233
|
return (React__default.createElement(FlexCell, { grow: 1, minWidth: 310, rawProps: props.rawProps },
|
|
3144
|
-
React__default.createElement(FlexRow, { size: null, spacing: "12", cx: css$
|
|
3234
|
+
React__default.createElement(FlexRow, { size: null, spacing: "12", cx: css$y.presetsWrapper },
|
|
3145
3235
|
React__default.createElement(AdaptivePanel, { items: getPanelItems() }))));
|
|
3146
3236
|
}
|
|
3147
3237
|
|
|
@@ -3179,7 +3269,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
3179
3269
|
return columns;
|
|
3180
3270
|
};
|
|
3181
3271
|
|
|
3182
|
-
var css$
|
|
3272
|
+
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"};
|
|
3183
3273
|
|
|
3184
3274
|
const defaultTextSettings = {
|
|
3185
3275
|
18: { lineHeight: 12, fontSize: 10 },
|
|
@@ -3192,7 +3282,7 @@ const defaultTextSettings = {
|
|
|
3192
3282
|
};
|
|
3193
3283
|
function getTextClasses(props, border) {
|
|
3194
3284
|
if (props.size === 'none') {
|
|
3195
|
-
return [css$
|
|
3285
|
+
return [css$u['line-height-' + props.lineHeight], css$u['font-size-' + props.fontSize]];
|
|
3196
3286
|
}
|
|
3197
3287
|
const setting = {
|
|
3198
3288
|
size: props.size,
|
|
@@ -3201,11 +3291,11 @@ function getTextClasses(props, border) {
|
|
|
3201
3291
|
};
|
|
3202
3292
|
const vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
3203
3293
|
return [
|
|
3204
|
-
css$
|
|
3294
|
+
css$u['line-height-' + setting.lineHeight], css$u['font-size-' + setting.fontSize], css$u['v-padding-' + vPadding],
|
|
3205
3295
|
];
|
|
3206
3296
|
}
|
|
3207
3297
|
|
|
3208
|
-
var css$
|
|
3298
|
+
var css$t = {"root":"DItj1X"};
|
|
3209
3299
|
|
|
3210
3300
|
function applyTextMods(mods) {
|
|
3211
3301
|
const textClasses = getTextClasses({
|
|
@@ -3214,7 +3304,7 @@ function applyTextMods(mods) {
|
|
|
3214
3304
|
fontSize: mods.fontSize,
|
|
3215
3305
|
}, false);
|
|
3216
3306
|
return [
|
|
3217
|
-
css$
|
|
3307
|
+
css$t.root,
|
|
3218
3308
|
'uui-text',
|
|
3219
3309
|
`uui-color-${mods.color || 'primary'}`,
|
|
3220
3310
|
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
@@ -3222,9 +3312,9 @@ function applyTextMods(mods) {
|
|
|
3222
3312
|
'uui-typography',
|
|
3223
3313
|
].concat(textClasses);
|
|
3224
3314
|
}
|
|
3225
|
-
const Text = withMods(Text
|
|
3315
|
+
const Text = withMods(uuiComponents.Text, applyTextMods);
|
|
3226
3316
|
|
|
3227
|
-
var css$
|
|
3317
|
+
var css$s = {"root":"P-9agp","loading-word":"MkiESq","animated-loading":"fYEbdN","skeleton_loading":"_0dREls","loadingWord":"MkiESq","animatedLoading":"fYEbdN","skeletonLoading":"_0dREls"};
|
|
3228
3318
|
|
|
3229
3319
|
const TextPlaceholder = (props) => {
|
|
3230
3320
|
const pattern = ' ';
|
|
@@ -3236,35 +3326,35 @@ const TextPlaceholder = (props) => {
|
|
|
3236
3326
|
}
|
|
3237
3327
|
return words;
|
|
3238
3328
|
}, [props.wordsCount]);
|
|
3239
|
-
return (React.createElement("div", Object.assign({ "aria-busy": true, className: cx(css$
|
|
3240
|
-
props.cx, css$
|
|
3329
|
+
return (React.createElement("div", Object.assign({ "aria-busy": true, className: cx(css$s.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React.createElement("span", { key: index, className: cx([
|
|
3330
|
+
props.cx, css$s.loadingWord, !props.isNotAnimated && css$s.animatedLoading,
|
|
3241
3331
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
3242
3332
|
};
|
|
3243
3333
|
|
|
3244
3334
|
const RichTextView = withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
3245
3335
|
|
|
3246
|
-
var css$
|
|
3336
|
+
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"};
|
|
3247
3337
|
|
|
3248
|
-
const ModalBlocker = withMods(ModalBlocker$1, () => [css$
|
|
3249
|
-
const ModalWindow = withMods(ModalWindow$1, () => [css$
|
|
3338
|
+
const ModalBlocker = withMods(ModalBlocker$1, () => [css$r.modalBlocker]);
|
|
3339
|
+
const ModalWindow = withMods(ModalWindow$1, () => [css$r.root, css$r.modal], (props) => ({
|
|
3250
3340
|
style: Object.assign(Object.assign({}, props.style), { width: `${props.width || 420}px`, height: props.height ? `${props.height}px` : 'auto' }),
|
|
3251
3341
|
}));
|
|
3252
3342
|
class ModalHeader extends React.Component {
|
|
3253
3343
|
render() {
|
|
3254
|
-
return (React.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "12", borderBottom: this.props.borderBottom, cx: [css$
|
|
3344
|
+
return (React.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 },
|
|
3255
3345
|
this.props.title && (React.createElement(Text, { size: "48", fontSize: "18", fontWeight: "600" }, this.props.title)),
|
|
3256
3346
|
this.props.children,
|
|
3257
3347
|
this.props.onClose && React.createElement(FlexSpacer, null),
|
|
3258
3348
|
this.props.onClose && (React.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
3259
|
-
React.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$
|
|
3349
|
+
React.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$C, onClick: this.props.onClose })))));
|
|
3260
3350
|
}
|
|
3261
3351
|
}
|
|
3262
3352
|
class ModalFooter extends React.Component {
|
|
3263
3353
|
render() {
|
|
3264
3354
|
return (React.createElement(FlexRow, { spacing: this.props.spacing || '12', cx: [
|
|
3265
|
-
css$
|
|
3266
|
-
css$
|
|
3267
|
-
this.props.borderTop && css$
|
|
3355
|
+
css$r.root,
|
|
3356
|
+
css$r.modalFooter,
|
|
3357
|
+
this.props.borderTop && css$r.borderTop,
|
|
3268
3358
|
this.props.cx,
|
|
3269
3359
|
], padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
3270
3360
|
}
|
|
@@ -3286,7 +3376,7 @@ var SvgCross = function SvgCross(props, ref) {
|
|
|
3286
3376
|
};
|
|
3287
3377
|
var ForwardRef$j = /*#__PURE__*/forwardRef(SvgCross);
|
|
3288
3378
|
|
|
3289
|
-
var css$
|
|
3379
|
+
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"};
|
|
3290
3380
|
|
|
3291
3381
|
const NotificationCard = React__default.forwardRef((props, ref) => {
|
|
3292
3382
|
const notificationCardNode = React__default.useRef(null);
|
|
@@ -3301,23 +3391,23 @@ const NotificationCard = React__default.forwardRef((props, ref) => {
|
|
|
3301
3391
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
3302
3392
|
};
|
|
3303
3393
|
}, []);
|
|
3304
|
-
return (React__default.createElement("div", Object.assign({ role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
3305
|
-
React__default.createElement("div", { className: css$
|
|
3306
|
-
props.icon && (React__default.createElement("div", { className: css$
|
|
3307
|
-
React__default.createElement(IconContainer, { icon: props.icon, cx: css$
|
|
3308
|
-
React__default.createElement("div", { className: css$
|
|
3394
|
+
return (React__default.createElement("div", Object.assign({ role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$q.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
3395
|
+
React__default.createElement("div", { className: css$q.mainPath },
|
|
3396
|
+
props.icon && (React__default.createElement("div", { className: css$q.iconWrapper },
|
|
3397
|
+
React__default.createElement(IconContainer, { icon: props.icon, cx: css$q.actionIcon }))),
|
|
3398
|
+
React__default.createElement("div", { className: css$q.content },
|
|
3309
3399
|
props.children,
|
|
3310
|
-
props.actions && (React__default.createElement("div", { className: css$
|
|
3311
|
-
props.onClose && (React__default.createElement("div", { className: css$
|
|
3312
|
-
React__default.createElement(IconButton, { icon: ForwardRef$j, color: "neutral", onClick: props.onClose, cx: css$
|
|
3400
|
+
props.actions && (React__default.createElement("div", { className: css$q.actionWrapper }, props.actions.map((action) => (React__default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$q.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
3401
|
+
props.onClose && (React__default.createElement("div", { className: css$q.closeWrapper },
|
|
3402
|
+
React__default.createElement(IconButton, { icon: ForwardRef$j, color: "neutral", onClick: props.onClose, cx: css$q.closeIcon }))))));
|
|
3313
3403
|
});
|
|
3314
|
-
const WarningNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3315
|
-
const SuccessNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3316
|
-
const HintNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3317
|
-
const ErrorNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3404
|
+
const WarningNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$F, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
3405
|
+
const SuccessNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$G, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
3406
|
+
const HintNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$D, color: "info" }, props, { ref: ref, cx: props.cx }))));
|
|
3407
|
+
const ErrorNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$E, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
3318
3408
|
class ClearNotification extends React__default.Component {
|
|
3319
3409
|
render() {
|
|
3320
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
3410
|
+
return (React__default.createElement("div", { className: cx(css$q.notificationWrapper, css$q.clearButton) },
|
|
3321
3411
|
React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => this.context.uuiNotifications.clearAll() })));
|
|
3322
3412
|
}
|
|
3323
3413
|
}
|
|
@@ -3357,7 +3447,7 @@ class DatePickerComponent extends BaseDatePicker {
|
|
|
3357
3447
|
});
|
|
3358
3448
|
}
|
|
3359
3449
|
}
|
|
3360
|
-
return (React__default.createElement(TextInput, Object.assign({}, props, { onClick: null, isDropdown: false, cx: cx$1(this.props.inputCx, this.state.isOpen && 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 })));
|
|
3450
|
+
return (React__default.createElement(TextInput, Object.assign({}, props, { onClick: null, isDropdown: false, cx: cx$1(this.props.inputCx, this.state.isOpen && 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 })));
|
|
3361
3451
|
};
|
|
3362
3452
|
}
|
|
3363
3453
|
renderBody(props) {
|
|
@@ -3369,14 +3459,14 @@ class DatePickerComponent extends BaseDatePicker {
|
|
|
3369
3459
|
}
|
|
3370
3460
|
const DatePicker = withMods(DatePickerComponent);
|
|
3371
3461
|
|
|
3372
|
-
var css$
|
|
3462
|
+
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"};
|
|
3373
3463
|
|
|
3374
3464
|
function applyCalendarPresetsMods() {
|
|
3375
|
-
return [css$
|
|
3465
|
+
return [css$p.root];
|
|
3376
3466
|
}
|
|
3377
3467
|
const CalendarPresets = withMods(CalendarPresets$1, applyCalendarPresetsMods, () => ({}));
|
|
3378
3468
|
|
|
3379
|
-
var css$
|
|
3469
|
+
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"};
|
|
3380
3470
|
|
|
3381
3471
|
dayjs.extend(isoWeek);
|
|
3382
3472
|
function weekCount(displayedDate) {
|
|
@@ -3436,60 +3526,56 @@ class RangeDatePickerBody extends React.Component {
|
|
|
3436
3526
|
this.getDayCX = (day) => {
|
|
3437
3527
|
var _a, _b;
|
|
3438
3528
|
const dayValue = day.valueOf();
|
|
3439
|
-
const fromValue = ((_a = this.props.value) === null || _a === void 0 ? void 0 : _a.
|
|
3440
|
-
const toValue = ((_b = this.props.value) === null || _b === void 0 ? void 0 : _b.
|
|
3441
|
-
const inRange = dayValue >= fromValue && dayValue <= toValue && fromValue !== toValue
|
|
3529
|
+
const fromValue = ((_a = this.props.value.selectedDate) === null || _a === void 0 ? void 0 : _a.from) ? dayjs(this.props.value.selectedDate.from).valueOf() : null;
|
|
3530
|
+
const toValue = ((_b = this.props.value.selectedDate) === null || _b === void 0 ? void 0 : _b.to) ? dayjs(this.props.value.selectedDate.to).valueOf() : null;
|
|
3531
|
+
const inRange = fromValue && toValue && dayValue >= fromValue && dayValue <= toValue && fromValue !== toValue;
|
|
3442
3532
|
const isFirst = dayValue === fromValue;
|
|
3443
3533
|
const isLast = dayValue === toValue;
|
|
3444
|
-
return [
|
|
3445
|
-
inRange && uuiRangeDatePickerBody.inRange,
|
|
3446
|
-
isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper,
|
|
3447
|
-
!inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper,
|
|
3448
|
-
isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper,
|
|
3449
|
-
!inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper,
|
|
3450
|
-
(dayValue === fromValue || dayValue === toValue) && uuiDaySelection.selectedDay,
|
|
3451
|
-
];
|
|
3534
|
+
return [cx$1(inRange && uuiRangeDatePickerBody.inRange, isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper, !inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper, isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper, !inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper, (dayValue === fromValue || dayValue === toValue) && uuiDaySelection.selectedDay)];
|
|
3452
3535
|
};
|
|
3453
3536
|
this.getFromValue = () => {
|
|
3454
3537
|
var _a;
|
|
3455
|
-
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.
|
|
3538
|
+
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 });
|
|
3456
3539
|
};
|
|
3457
3540
|
this.getToValue = () => {
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3541
|
+
var _a;
|
|
3542
|
+
return {
|
|
3543
|
+
view: this.state.activePart === 'to' ? this.props.value.view : 'DAY_SELECTION',
|
|
3544
|
+
displayedDate: this.props.value.displayedDate.add(1, 'month'),
|
|
3545
|
+
selectedDate: ((_a = this.props.value.selectedDate) === null || _a === void 0 ? void 0 : _a.from) || null,
|
|
3546
|
+
};
|
|
3461
3547
|
};
|
|
3462
|
-
this.renderPresets = () => {
|
|
3548
|
+
this.renderPresets = (presets) => {
|
|
3463
3549
|
return (React.createElement(React.Fragment, null,
|
|
3464
3550
|
React.createElement("div", { className: uuiRangeDatePickerBody.separator }),
|
|
3465
3551
|
React.createElement(CalendarPresets, { forwardedRef: this.props.forwardedRef, onPresetSet: (presetVal) => {
|
|
3552
|
+
var _a, _b;
|
|
3466
3553
|
this.props.onValueChange({
|
|
3467
3554
|
view: 'DAY_SELECTION',
|
|
3468
3555
|
selectedDate: { from: dayjs(presetVal.from).format(valueFormat), to: dayjs(presetVal.to).format(valueFormat) },
|
|
3469
3556
|
displayedDate: dayjs(presetVal.from),
|
|
3470
3557
|
});
|
|
3471
|
-
this.props.changeIsOpen(false);
|
|
3472
|
-
}, presets:
|
|
3558
|
+
(_b = (_a = this.props).changeIsOpen) === null || _b === void 0 ? void 0 : _b.call(_a, false);
|
|
3559
|
+
}, presets: presets })));
|
|
3473
3560
|
};
|
|
3474
3561
|
this.renderDatePicker = () => {
|
|
3475
|
-
|
|
3476
|
-
return (React.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" },
|
|
3562
|
+
return (React.createElement(FlexRow, { cx: [this.props.value.view === 'DAY_SELECTION' && css$o.daySelection, css$o.container], alignItems: "top" },
|
|
3477
3563
|
React.createElement(FlexCell, { width: "auto" },
|
|
3478
3564
|
React.createElement(FlexRow, null,
|
|
3479
|
-
React.createElement(FlexRow, { cx: css$
|
|
3480
|
-
React.createElement(DatePickerBody, { cx: cx$1(css$
|
|
3481
|
-
React.createElement(DatePickerBody, { cx: cx$1(css$
|
|
3482
|
-
|
|
3483
|
-
left: this.state.activePart === 'from'
|
|
3484
|
-
right: this.state.activePart === 'to'
|
|
3485
|
-
}, className: css$
|
|
3486
|
-
this.props.presets && this.renderPresets()),
|
|
3565
|
+
React.createElement(FlexRow, { cx: css$o.bodesWrapper, alignItems: "top" },
|
|
3566
|
+
React.createElement(DatePickerBody, { cx: cx$1(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 }),
|
|
3567
|
+
React.createElement(DatePickerBody, { cx: cx$1(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 }),
|
|
3568
|
+
this.props.value.view !== 'DAY_SELECTION' && (React.createElement("div", { style: {
|
|
3569
|
+
left: this.state.activePart === 'from' ? '50%' : undefined,
|
|
3570
|
+
right: this.state.activePart === 'to' ? '50%' : undefined,
|
|
3571
|
+
}, className: css$o.blocker }))),
|
|
3572
|
+
this.props.presets && this.renderPresets(this.props.presets)),
|
|
3487
3573
|
this.props.renderFooter && this.props.renderFooter())));
|
|
3488
3574
|
};
|
|
3489
3575
|
}
|
|
3490
3576
|
getRange(selectedDate) {
|
|
3491
3577
|
const newRange = { from: null, to: null };
|
|
3492
|
-
const currentRange = this.props.value.selectedDate;
|
|
3578
|
+
const currentRange = this.props.value.selectedDate || { from: null, to: null };
|
|
3493
3579
|
if (!this.props.filter || this.props.filter(dayjs(selectedDate))) {
|
|
3494
3580
|
if (this.props.focusPart === 'from') {
|
|
3495
3581
|
if (dayjs(selectedDate).valueOf() <= dayjs(currentRange.to).valueOf()) {
|
|
@@ -3518,10 +3604,11 @@ class RangeDatePickerBody extends React.Component {
|
|
|
3518
3604
|
return newRange;
|
|
3519
3605
|
}
|
|
3520
3606
|
setSelectedDate(selectedDate) {
|
|
3607
|
+
var _a, _b;
|
|
3521
3608
|
const range = this.getRange(selectedDate);
|
|
3522
3609
|
this.props.onValueChange(Object.assign(Object.assign({}, this.props.value), { selectedDate: range }));
|
|
3523
3610
|
if (range.from && range.to && this.props.focusPart === 'to') {
|
|
3524
|
-
this.props.changeIsOpen(false);
|
|
3611
|
+
(_b = (_a = this.props).changeIsOpen) === null || _b === void 0 ? void 0 : _b.call(_a, false);
|
|
3525
3612
|
}
|
|
3526
3613
|
}
|
|
3527
3614
|
setDisplayedDateAndView(displayedDate, view, part) {
|
|
@@ -3533,18 +3620,18 @@ class RangeDatePickerBody extends React.Component {
|
|
|
3533
3620
|
});
|
|
3534
3621
|
}
|
|
3535
3622
|
render() {
|
|
3536
|
-
return (React.createElement("div", Object.assign({ className: cx$1(css$
|
|
3623
|
+
return (React.createElement("div", Object.assign({ className: cx$1(css$o.root, uuiDatePickerBodyBase.container, this.props.cx) }, this.props.rawProps), this.renderDatePicker()));
|
|
3537
3624
|
}
|
|
3538
3625
|
}
|
|
3539
3626
|
|
|
3540
|
-
var css$
|
|
3627
|
+
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"};
|
|
3541
3628
|
|
|
3542
3629
|
const defaultValue = { from: null, to: null };
|
|
3543
3630
|
class RangeDatePickerComponent extends BaseRangeDatePicker {
|
|
3544
3631
|
constructor() {
|
|
3545
3632
|
super(...arguments);
|
|
3546
3633
|
this.renderInput = (props) => {
|
|
3547
|
-
var _a, _b;
|
|
3634
|
+
var _a, _b, _c;
|
|
3548
3635
|
if (process.env.NODE_ENV !== "production") {
|
|
3549
3636
|
if (this.props.size === '48') {
|
|
3550
3637
|
devLogger.warnAboutDeprecatedPropValue({
|
|
@@ -3556,37 +3643,68 @@ class RangeDatePickerComponent extends BaseRangeDatePicker {
|
|
|
3556
3643
|
});
|
|
3557
3644
|
}
|
|
3558
3645
|
}
|
|
3559
|
-
return (React.createElement("div", { className: cx(this.props.inputCx, css$
|
|
3560
|
-
React.createElement(TextInput, { icon: systemIcons[this.props.size || '36'].calendar, cx: cx(css$
|
|
3561
|
-
React.createElement("div", { className: css$
|
|
3562
|
-
React.createElement(TextInput, { cx: cx(css$
|
|
3646
|
+
return (React.createElement("div", { className: cx(this.props.inputCx, css$n.dateInputGroup, this.props.isDisabled && uuiMod.disabled, this.props.isReadonly && uuiMod.readonly, this.props.isInvalid && uuiMod.invalid, this.state.inFocus && uuiMod.focus), onClick: !this.props.isDisabled && props.onClick, onBlur: this.handleWrapperBlur, ref: props.ref },
|
|
3647
|
+
React.createElement(TextInput, { icon: systemIcons[this.props.size || '36'].calendar, cx: cx(css$n.dateInput, css$n['size-' + (this.props.size || 36)], this.state.inFocus === 'from' && 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 }),
|
|
3648
|
+
React.createElement("div", { className: css$n.separator }),
|
|
3649
|
+
React.createElement(TextInput, { cx: cx(css$n.dateInput, css$n['size-' + (this.props.size || 36)], this.state.inFocus === 'to' && 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 })));
|
|
3563
3650
|
};
|
|
3564
3651
|
}
|
|
3565
3652
|
renderBody(props) {
|
|
3566
3653
|
var _a;
|
|
3567
|
-
return (React.createElement(DropdownContainer, Object.assign({}, props, { cx: cx(css$
|
|
3654
|
+
return (React.createElement(DropdownContainer, Object.assign({}, props, { cx: cx(css$n.dropdownContainer), focusLock: false }),
|
|
3568
3655
|
React.createElement(FlexRow, null,
|
|
3569
3656
|
React.createElement(RangeDatePickerBody, { cx: cx(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 }))));
|
|
3570
3657
|
}
|
|
3571
3658
|
}
|
|
3572
3659
|
const RangeDatePicker = withMods(RangeDatePickerComponent);
|
|
3573
3660
|
|
|
3574
|
-
var css$
|
|
3661
|
+
var css$m = {"root":"NLuslP","blocker":"CFj-N9","marker":"ef5KWU","top":"Kq7HJf","bottom":"fbfNXt","left":"pp9XjC","right":"nI4BN-","inside":"ljrwC7"};
|
|
3575
3662
|
|
|
3576
3663
|
function DropMarker(props) {
|
|
3577
3664
|
return props.isDndInProgress
|
|
3578
3665
|
? (React.createElement(React.Fragment, null,
|
|
3579
|
-
props.enableBlocker && React.createElement("div", { className: css$
|
|
3666
|
+
props.enableBlocker && React.createElement("div", { className: css$m.blocker }),
|
|
3580
3667
|
React.createElement("div", { className: cx([
|
|
3581
|
-
css$
|
|
3582
|
-
css$
|
|
3583
|
-
css$
|
|
3668
|
+
css$m.root,
|
|
3669
|
+
css$m.marker,
|
|
3670
|
+
css$m[props.position],
|
|
3584
3671
|
props === null || props === void 0 ? void 0 : props.cx,
|
|
3585
3672
|
]) })))
|
|
3586
3673
|
: null;
|
|
3587
3674
|
}
|
|
3588
3675
|
|
|
3589
|
-
var css$
|
|
3676
|
+
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"};
|
|
3677
|
+
|
|
3678
|
+
function DataTableCell(props) {
|
|
3679
|
+
props = Object.assign({}, props);
|
|
3680
|
+
if (props.isFirstColumn) {
|
|
3681
|
+
props.addons = React.createElement(DataRowAddons, Object.assign({}, props));
|
|
3682
|
+
}
|
|
3683
|
+
props.renderPlaceholder = props.renderPlaceholder
|
|
3684
|
+
|| (() => (
|
|
3685
|
+
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
3686
|
+
React.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48', cx: css$l.loadingCell },
|
|
3687
|
+
React.createElement(TextPlaceholder, null))));
|
|
3688
|
+
props.renderUnknown = props.renderUnknown
|
|
3689
|
+
|| (() => (React.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48' }, "Unknown")));
|
|
3690
|
+
props.renderTooltip = (tooltipProps) => React.createElement(Tooltip, Object.assign({ color: "critical" }, tooltipProps));
|
|
3691
|
+
const isEditable = !!props.onValueChange;
|
|
3692
|
+
props.cx = [
|
|
3693
|
+
'uui-dt-vars',
|
|
3694
|
+
'data-table-cell',
|
|
3695
|
+
props.cx,
|
|
3696
|
+
css$l.cell,
|
|
3697
|
+
css$l['size-' + (props.size || '36')],
|
|
3698
|
+
css$l[`padding-${props.padding || (isEditable && !props.rowProps.isLoading && '0') || '12'}`],
|
|
3699
|
+
props.isFirstColumn && css$l[`padding-left-${props.padding || (isEditable && !props.rowProps.isLoading && '12') || '24'}`],
|
|
3700
|
+
props.isLastColumn && css$l['padding-right-24'],
|
|
3701
|
+
css$l[`align-widgets-${props.alignActions || 'top'}`],
|
|
3702
|
+
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
3703
|
+
];
|
|
3704
|
+
return React.createElement(DataTableCell$1, Object.assign({}, props));
|
|
3705
|
+
}
|
|
3706
|
+
|
|
3707
|
+
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"};
|
|
3590
3708
|
|
|
3591
3709
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3592
3710
|
// 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.
|
|
@@ -3602,7 +3720,7 @@ const DataTableRow = withMods(DataTableRow$1, ({ borderBottom = true, size }) =>
|
|
|
3602
3720
|
];
|
|
3603
3721
|
}, () => propsMods);
|
|
3604
3722
|
|
|
3605
|
-
var css$j = {"uui-typography":"
|
|
3723
|
+
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"};
|
|
3606
3724
|
|
|
3607
3725
|
var _path$h;
|
|
3608
3726
|
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); }
|
|
@@ -3651,13 +3769,13 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
3651
3769
|
}, mobilePopperModifier,
|
|
3652
3770
|
], []);
|
|
3653
3771
|
const closeDropdown = useCallback(() => props.onOpenChange(false), [props.onOpenChange]);
|
|
3654
|
-
return (React__default.createElement(Dropdown$1, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__default.createElement(MobileDropdownWrapper, { width:
|
|
3772
|
+
return (React__default.createElement(Dropdown$1, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__default.createElement(MobileDropdownWrapper, { width: 280, maxWidth: "auto", title: props.title, onClose: closeDropdown },
|
|
3655
3773
|
props.isSortable && React__default.createElement(SortingPanel, { sortDirection: props.sortDirection, onSort: props.onSort }),
|
|
3656
3774
|
props.renderFilter(dropdownProps))), modifiers: popperModifiers, value: props.isOpen, onValueChange: props.onOpenChange }));
|
|
3657
3775
|
};
|
|
3658
3776
|
const ColumnHeaderDropdown = React__default.memo(ColumnHeaderDropdownImpl);
|
|
3659
3777
|
|
|
3660
|
-
var css$i = {"uui-typography":"
|
|
3778
|
+
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"};
|
|
3661
3779
|
|
|
3662
3780
|
var _path$f;
|
|
3663
3781
|
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); }
|
|
@@ -3725,19 +3843,23 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3725
3843
|
React.createElement(Text, { key: "text", lineHeight: "30", fontSize: "14", size: "30", cx: cx$1(css$i.caption, this.getTextStyle(), uuiDataTableHeaderCell.uuiTableHeaderCaption) }, this.props.column.caption)),
|
|
3726
3844
|
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React.createElement(IconButton, { key: "sort", cx: cx$1(css$i.icon, css$i.sortIcon, this.props.sortDirection && css$i.sortIconActive, uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'neutral' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$h : this.props.sortDirection === 'asc' ? ForwardRef$i : ForwardRef$g })),
|
|
3727
3845
|
this.props.isFilterActive && (React.createElement(IconButton, { key: "filter", cx: cx$1(css$i.icon, !this.props.sortDirection && css$i.filterIcon, uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "neutral", icon: ForwardRef$f })),
|
|
3728
|
-
this.props.column.renderFilter && (React.createElement(IconButton, { key: "dropdown", cx: cx$1(css$i.icon, css$i.dropdownIcon, uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$e : ForwardRef$
|
|
3846
|
+
this.props.column.renderFilter && (React.createElement(IconButton, { key: "dropdown", cx: cx$1(css$i.icon, css$i.dropdownIcon, uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$e : ForwardRef$z })))));
|
|
3729
3847
|
};
|
|
3730
3848
|
this.renderHeaderCheckbox = () => this.props.selectAll
|
|
3731
3849
|
&& this.props.isFirstColumn && (React.createElement(Checkbox, Object.assign({ size: +this.props.size < 36 ? '12' : '18' }, this.props.selectAll, { cx: cx$1(css$i.checkbox, uuiDataTableHeaderCell.uuiTableHeaderCheckbox) })));
|
|
3732
3850
|
this.renderResizeMark = (props) => React.createElement("div", { onMouseDown: props.onResizeStart, className: cx$1(css$i.resizeMark, uuiMarkers.draggable) });
|
|
3733
|
-
this.renderCellContent = (props, dropdownProps) =>
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3851
|
+
this.renderCellContent = (props, dropdownProps) => {
|
|
3852
|
+
var _a;
|
|
3853
|
+
const isResizable = (_a = this.props.column.allowResizing) !== null && _a !== void 0 ? _a : this.props.allowColumnsResizing;
|
|
3854
|
+
return (React.createElement(FlexCell, Object.assign({}, this.props.column, { minWidth: this.props.column.width, ref: (ref) => {
|
|
3855
|
+
var _a;
|
|
3856
|
+
props.ref(ref);
|
|
3857
|
+
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
3858
|
+
}, cx: cx$1('uui-dt-vars', uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && 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) }),
|
|
3859
|
+
this.renderHeaderCheckbox(),
|
|
3860
|
+
this.getColumnCaption(),
|
|
3861
|
+
isResizable && this.renderResizeMark(props)));
|
|
3862
|
+
};
|
|
3741
3863
|
this.renderCellWithFilter = (props) => (React.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 }));
|
|
3742
3864
|
}
|
|
3743
3865
|
render() {
|
|
@@ -3745,7 +3867,7 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3745
3867
|
}
|
|
3746
3868
|
}
|
|
3747
3869
|
|
|
3748
|
-
var css$h = {"uui-typography":"
|
|
3870
|
+
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"};
|
|
3749
3871
|
|
|
3750
3872
|
var _path$c;
|
|
3751
3873
|
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); }
|
|
@@ -3767,7 +3889,7 @@ const DataTableHeaderRow = withMods(DataTableHeaderRow$1, () => [css$h.root, 'uu
|
|
|
3767
3889
|
renderConfigButton: () => React.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: css$h.configIcon, color: "neutral", icon: ForwardRef$d }),
|
|
3768
3890
|
}));
|
|
3769
3891
|
|
|
3770
|
-
var styles$1 = {"uui-typography":"
|
|
3892
|
+
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"};
|
|
3771
3893
|
|
|
3772
3894
|
var _path$b;
|
|
3773
3895
|
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); }
|
|
@@ -3844,7 +3966,7 @@ function PinIconButton(props) {
|
|
|
3844
3966
|
React.createElement(IconButton, { icon: pinIcon, onClick: pinClickHandler, isDisabled: isPinnedAlways, color: isPinned ? 'info' : undefined }))));
|
|
3845
3967
|
}
|
|
3846
3968
|
|
|
3847
|
-
var styles = {"uui-typography":"
|
|
3969
|
+
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"};
|
|
3848
3970
|
|
|
3849
3971
|
const ColumnRow = React.memo(function ColumnRow(props) {
|
|
3850
3972
|
const { column } = props;
|
|
@@ -3929,7 +4051,7 @@ function ColumnsConfigurationModal(props) {
|
|
|
3929
4051
|
noVisibleColumns ? (React.createElement(Tooltip, { content: i18n$1.enableAtLeastOneColumnMessage, placement: "top-end", color: "critical" }, applyButton)) : (applyButton)))));
|
|
3930
4052
|
}
|
|
3931
4053
|
|
|
3932
|
-
var css$g = {"listContainer":"
|
|
4054
|
+
var css$g = {"listContainer":"_9882Ng","header":"AwSNRA","group":"JeyKpk","stickyHeader":"_4s8BtD"};
|
|
3933
4055
|
|
|
3934
4056
|
const getChildrenAndRest = (row, rows) => {
|
|
3935
4057
|
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
@@ -3995,7 +4117,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
3995
4117
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3996
4118
|
ref: ref
|
|
3997
4119
|
}, props), /*#__PURE__*/React.createElement("g", {
|
|
3998
|
-
clipPath: "url(#
|
|
4120
|
+
clipPath: "url(#jdufip20r8eubn779_a)"
|
|
3999
4121
|
}, _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
|
|
4000
4122
|
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",
|
|
4001
4123
|
fill: "#F5F6FA"
|
|
@@ -4016,7 +4138,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4016
4138
|
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",
|
|
4017
4139
|
fill: "#1D1E26"
|
|
4018
4140
|
})), /*#__PURE__*/React.createElement("mask", {
|
|
4019
|
-
id: "
|
|
4141
|
+
id: "jdufip9x0xejcqsc_b",
|
|
4020
4142
|
style: {
|
|
4021
4143
|
maskType: "alpha"
|
|
4022
4144
|
},
|
|
@@ -4029,7 +4151,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4029
4151
|
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",
|
|
4030
4152
|
fill: "#9BDEFF"
|
|
4031
4153
|
}))), _g$1 || (_g$1 = /*#__PURE__*/React.createElement("g", {
|
|
4032
|
-
mask: "url(#
|
|
4154
|
+
mask: "url(#jdufip9x0xejcqsc_b)",
|
|
4033
4155
|
fillRule: "evenodd",
|
|
4034
4156
|
clipRule: "evenodd"
|
|
4035
4157
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -4115,7 +4237,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4115
4237
|
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",
|
|
4116
4238
|
fill: "#fff"
|
|
4117
4239
|
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
4118
|
-
id: "
|
|
4240
|
+
id: "jdufip20r8eubn779_a"
|
|
4119
4241
|
}, /*#__PURE__*/React.createElement("path", {
|
|
4120
4242
|
fill: "#fff",
|
|
4121
4243
|
transform: "translate(.552)",
|
|
@@ -4124,7 +4246,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4124
4246
|
};
|
|
4125
4247
|
var ForwardRef$9 = /*#__PURE__*/forwardRef(SvgEmptyTable);
|
|
4126
4248
|
|
|
4127
|
-
var css$f = {"sticky-header":"
|
|
4249
|
+
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"};
|
|
4128
4250
|
|
|
4129
4251
|
function DataTable(props) {
|
|
4130
4252
|
var _a;
|
|
@@ -4167,16 +4289,17 @@ function DataTable(props) {
|
|
|
4167
4289
|
props, columns, rows, renderNoResultsBlock, onConfigurationButtonClick,
|
|
4168
4290
|
]);
|
|
4169
4291
|
return (React.createElement(DataTableSelectionProvider, { onCopy: props.onCopy, rows: rows, columns: columns },
|
|
4170
|
-
React.createElement(
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4292
|
+
React.createElement(DataTableFocusProvider, { dataTableFocusManager: props.dataTableFocusManager },
|
|
4293
|
+
React.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rowsCount: props.rowsCount, renderRows: renderRowsContainer, cx: cx$1(css$f.table, 'uui-dt-vars'), isLoading: props.isReloading, rowsSelector: "[role=row]", rawProps: {
|
|
4294
|
+
role: 'table',
|
|
4295
|
+
'aria-colcount': columns.length,
|
|
4296
|
+
'aria-rowcount': props.rowsCount,
|
|
4297
|
+
} }))));
|
|
4175
4298
|
}
|
|
4176
4299
|
|
|
4177
|
-
var css$e = {"root":"
|
|
4300
|
+
var css$e = {"root":"BULoA8"};
|
|
4178
4301
|
|
|
4179
|
-
var css$d = {"root":"
|
|
4302
|
+
var css$d = {"root":"D-s6bp","burger-content":"blkUWp","burgerContent":"blkUWp"};
|
|
4180
4303
|
|
|
4181
4304
|
var _path$7;
|
|
4182
4305
|
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); }
|
|
@@ -4243,7 +4366,7 @@ var SvgTriangle = function SvgTriangle(props, ref) {
|
|
|
4243
4366
|
};
|
|
4244
4367
|
var ForwardRef$6 = /*#__PURE__*/forwardRef(SvgTriangle);
|
|
4245
4368
|
|
|
4246
|
-
var css$c = {"uui-typography":"
|
|
4369
|
+
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"};
|
|
4247
4370
|
|
|
4248
4371
|
const BurgerButton = withMods(Button$1, (props) => [
|
|
4249
4372
|
css$c.root,
|
|
@@ -4300,13 +4423,13 @@ var SvgMenuInputCancel = function SvgMenuInputCancel(props, ref) {
|
|
|
4300
4423
|
};
|
|
4301
4424
|
var ForwardRef$5 = /*#__PURE__*/forwardRef(SvgMenuInputCancel);
|
|
4302
4425
|
|
|
4303
|
-
var css$b = {"search-input":"
|
|
4426
|
+
var css$b = {"search-input":"NCxjSp","searchInput":"NCxjSp"};
|
|
4304
4427
|
|
|
4305
4428
|
function BurgerSearch(props) {
|
|
4306
4429
|
return (React.createElement(TextInput$1, { cx: cx(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 }));
|
|
4307
4430
|
}
|
|
4308
4431
|
|
|
4309
|
-
var css$a = {"root":"
|
|
4432
|
+
var css$a = {"root":"Mn50b5","group-header":"D-NFwz","group-name":"_7TdB4H","line":"YfPxVB","groupHeader":"D-NFwz","groupName":"_7TdB4H"};
|
|
4310
4433
|
|
|
4311
4434
|
function BurgerGroupHeader(props) {
|
|
4312
4435
|
return (React.createElement("div", { className: cx(css$a.root, css$a.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4314,7 +4437,7 @@ function BurgerGroupHeader(props) {
|
|
|
4314
4437
|
React.createElement("span", { className: css$a.groupName }, props.caption)));
|
|
4315
4438
|
}
|
|
4316
4439
|
|
|
4317
|
-
var css$9 = {"uui-typography":"
|
|
4440
|
+
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"};
|
|
4318
4441
|
|
|
4319
4442
|
var _path$4;
|
|
4320
4443
|
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); }
|
|
@@ -4334,7 +4457,7 @@ var ForwardRef$4 = /*#__PURE__*/forwardRef(SvgChevronDown24);
|
|
|
4334
4457
|
|
|
4335
4458
|
const MainMenuButton = withMods(Button$1, (mods) => [css$9.root, css$9['type-' + (mods.type || 'primary')]], () => ({ dropdownIcon: ForwardRef$4, role: 'menuitem' }));
|
|
4336
4459
|
|
|
4337
|
-
var css$8 = {"dropdown-body":"
|
|
4460
|
+
var css$8 = {"dropdown-body":"O1NpHx","dropdownBody":"O1NpHx"};
|
|
4338
4461
|
|
|
4339
4462
|
class MainMenuDropdown extends React.Component {
|
|
4340
4463
|
render() {
|
|
@@ -4388,12 +4511,12 @@ var SvgGlobalMenu = function SvgGlobalMenu(props, ref) {
|
|
|
4388
4511
|
};
|
|
4389
4512
|
var ForwardRef$3 = /*#__PURE__*/forwardRef(SvgGlobalMenu);
|
|
4390
4513
|
|
|
4391
|
-
var css$7 = {"global-menu-btn":"
|
|
4514
|
+
var css$7 = {"global-menu-btn":"QQ-fbr","globalMenuIcon":"bKjc3p","globalMenuBtn":"QQ-fbr"};
|
|
4392
4515
|
|
|
4393
4516
|
const GlobalMenu = React.forwardRef((props, ref) => (React.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx(css$7.globalMenuBtn, props.cx) }, props.rawProps),
|
|
4394
4517
|
React.createElement(IconContainer, { icon: ForwardRef$3, cx: css$7.globalMenuIcon }))));
|
|
4395
4518
|
|
|
4396
|
-
var css$6 = {"container":"
|
|
4519
|
+
var css$6 = {"container":"ocq0c6","open":"j1mavv"};
|
|
4397
4520
|
|
|
4398
4521
|
const MainMenuAvatar = React.forwardRef((props, ref) => (React.createElement("button", { ref: ref, className: cx(css$6.container, props.isDropdown && css$6.dropdown, props.isOpen && css$6.open, props.onClick && uuiMarkers.clickable, props.cx), onClick: props.onClick },
|
|
4399
4522
|
React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -4401,18 +4524,18 @@ const MainMenuAvatar = React.forwardRef((props, ref) => (React.createElement("bu
|
|
|
4401
4524
|
props.isDropdown && (React.createElement("div", null,
|
|
4402
4525
|
React.createElement(IconContainer, { icon: ForwardRef$1a, flipY: props.isOpen }))))));
|
|
4403
4526
|
|
|
4404
|
-
var css$5 = {"search-input":"
|
|
4527
|
+
var css$5 = {"search-input":"nVqUZe","searchInput":"nVqUZe"};
|
|
4405
4528
|
|
|
4406
4529
|
const MainMenuSearch = React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
4407
4530
|
var _a;
|
|
4408
4531
|
return (React.createElement(TextInput$1, 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: cx$1(css$5.searchInput, props.cx) }, props.rawProps)));
|
|
4409
4532
|
} }))));
|
|
4410
4533
|
|
|
4411
|
-
var css$4 = {"container":"
|
|
4534
|
+
var css$4 = {"container":"_1ERubV"};
|
|
4412
4535
|
|
|
4413
4536
|
const MainMenuIcon = React.forwardRef((props, ref) => (React.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: cx$1(props.cx, css$4.container) }, props))));
|
|
4414
4537
|
|
|
4415
|
-
var css$3 = {"root":"
|
|
4538
|
+
var css$3 = {"root":"AaVf8p"};
|
|
4416
4539
|
|
|
4417
4540
|
const Anchor = withMods(Anchor$1, () => [css$3.root]);
|
|
4418
4541
|
|
|
@@ -4469,7 +4592,7 @@ var SvgShape = function SvgShape(props, ref) {
|
|
|
4469
4592
|
};
|
|
4470
4593
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgShape);
|
|
4471
4594
|
|
|
4472
|
-
var css$2 = {"root":"
|
|
4595
|
+
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"};
|
|
4473
4596
|
|
|
4474
4597
|
class DropSpot extends React.Component {
|
|
4475
4598
|
constructor() {
|
|
@@ -4493,9 +4616,9 @@ class DropSpot extends React.Component {
|
|
|
4493
4616
|
}
|
|
4494
4617
|
}
|
|
4495
4618
|
|
|
4496
|
-
var css$1 = {"root":"
|
|
4619
|
+
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"};
|
|
4497
4620
|
|
|
4498
|
-
var css = {"root":"
|
|
4621
|
+
var css = {"root":"UAiMdl"};
|
|
4499
4622
|
|
|
4500
4623
|
const SvgCircleProgress = React.forwardRef((props, ref) => {
|
|
4501
4624
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -4612,5 +4735,5 @@ const FileCard = React.forwardRef((props, ref) => {
|
|
|
4612
4735
|
isCrossShow && React.createElement(IconButton, { icon: ForwardRef$1, onClick: removeHandler })))));
|
|
4613
4736
|
});
|
|
4614
4737
|
|
|
4615
|
-
export { Accordion, Alert, Anchor, AvatarStack, Badge, Blocker, Burger, BurgerButton, BurgerGroupHeader, BurgerSearch, Button, Calendar, Checkbox, CheckboxGroup, ClearNotification, ColumnHeaderDropdown, ColumnsConfigurationModal, ConfirmationModal, ControlGroup, CountIndicator, DataPickerBody, DataPickerFooter, DataPickerHeader, DataPickerRow, DataRowsContainer, DataTable, DataTableCell, DataTableHeaderCell, DataTableHeaderRow, DataTableRow, DatePicker, DatePickerBody, DropMarker, DropSpot, Dropdown, DropdownContainer, DropdownMenuBody, DropdownMenuButton, DropdownMenuHeader, DropdownMenuSplitter, DropdownMenuSwitchButton, DropdownSubMenu,
|
|
4738
|
+
export { Accordion, Alert, Anchor, AvatarStack, Badge, Blocker, Burger, BurgerButton, BurgerGroupHeader, BurgerSearch, Button, Calendar, Checkbox, CheckboxGroup, ClearNotification, ColumnHeaderDropdown, ColumnsConfigurationModal, ConfirmationModal, ControlGroup, CountIndicator, DataPickerBody, DataPickerFooter, DataPickerHeader, DataPickerRow, DataRowAddons, DataRowsContainer, DataTable, DataTableCell, DataTableHeaderCell, DataTableHeaderRow, DataTableRow, DatePicker, DatePickerBody, DropMarker, DropSpot, Dropdown, DropdownContainer, DropdownMenuBody, DropdownMenuButton, DropdownMenuHeader, DropdownMenuSplitter, DropdownMenuSwitchButton, DropdownSubMenu, ErrorAlert, ErrorNotification, FileCard, FilterItemBody, FiltersPanel, FlexCell, FlexRow, Form, GlobalMenu, HintAlert, HintNotification, IDropdownControlKeys, IconButton, IndeterminateBar, IndicatorBar, InputAddon, LabeledInput, LinkButton, MainMenu, MainMenuAvatar, MainMenuButton, MainMenuDropdown, MainMenuIcon, MainMenuSearch, MobileDropdownWrapper, ModalBlocker, ModalFooter, ModalHeader, ModalWindow, MultiSwitch, NotificationCard, NumericInput, Paginator, Panel, PickerInput, PickerItem, PickerList, PickerListItem, PickerModal, PickerToggler, PresetsPanel, ProgressBar, RadioGroup, RadioInput, RangeDatePicker, RangeDatePickerBody, RichTextView, ScrollBars, SearchInput, Slider, Spinner, StatusIndicator, SuccessAlert, SuccessNotification, SvgCircleProgress, Switch, TabButton, Tag, Text, TextArea, TextInput, TextPlaceholder, TimePicker, Tooltip, VerticalTabButton, VirtualList, WarningAlert, WarningNotification, applyDateSelectionMods, defaultPredicates, getHighlightRanges, getHighlightedSearchMatches, getTextClasses, i18n, propsMods, rangeDatePickerPresets, renderCell, renderDropMarkers, useColumnsWithFilters, useForm, uuiDatePickerBody, weekCount };
|
|
4616
4739
|
//# sourceMappingURL=index.esm.js.map
|