@epam/uui 5.2.0-rc.3 → 5.3.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/effects.scss +1 -1
- package/assets/styles/typography.scss +25 -29
- package/components/buttons/Button.d.ts +4 -3
- package/components/buttons/Button.d.ts.map +1 -1
- package/components/buttons/TabButton.d.ts +2 -1
- package/components/buttons/TabButton.d.ts.map +1 -1
- package/components/filters/FilterPickerBody.d.ts.map +1 -1
- package/components/inputs/Checkbox.d.ts +4 -4
- package/components/inputs/Checkbox.d.ts.map +1 -1
- package/components/inputs/Slider.d.ts +6 -0
- package/components/inputs/Slider.d.ts.map +1 -0
- package/components/inputs/Switch.d.ts +4 -3
- package/components/inputs/Switch.d.ts.map +1 -1
- package/components/inputs/TextInput.d.ts +3 -1
- package/components/inputs/TextInput.d.ts.map +1 -1
- package/components/inputs/index.d.ts +1 -0
- package/components/inputs/index.d.ts.map +1 -1
- package/components/layout/Accordion.d.ts +3 -2
- package/components/layout/Accordion.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/Panel.d.ts +2 -0
- package/components/layout/FlexItems/Panel.d.ts.map +1 -1
- package/components/layout/LabeledInput.d.ts +3 -2
- package/components/layout/LabeledInput.d.ts.map +1 -1
- package/components/layout/VirtualList.d.ts +32 -2
- package/components/layout/VirtualList.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenu.d.ts +3 -2
- package/components/navigation/MainMenu/MainMenu.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuIcon.d.ts +1 -1
- package/components/navigation/MainMenu/MainMenuIcon.d.ts.map +1 -1
- package/components/overlays/DropdownContainer.d.ts +3 -3
- package/components/overlays/DropdownContainer.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/pickers/DataPickerBody.d.ts +1 -2
- package/components/pickers/DataPickerBody.d.ts.map +1 -1
- package/components/pickers/PickerInput.d.ts +1 -2
- package/components/pickers/PickerInput.d.ts.map +1 -1
- package/components/tables/ColumnHeaderDropdown/ColumnHeaderDropdown.d.ts.map +1 -1
- package/components/tables/DataRowsContainer/DataRowsContainer.d.ts +1 -1
- package/components/tables/DataRowsContainer/DataRowsContainer.d.ts.map +1 -1
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/types.d.ts +8 -1
- package/components/types.d.ts.map +1 -1
- package/components/typography/RichTextView.d.ts +3 -2
- package/components/typography/RichTextView.d.ts.map +1 -1
- package/components/typography/Text.d.ts.map +1 -1
- package/components/widgets/Badge.d.ts +4 -2
- package/components/widgets/Badge.d.ts.map +1 -1
- package/components/widgets/CountIndicator.d.ts +8 -0
- package/components/widgets/CountIndicator.d.ts.map +1 -0
- package/components/widgets/StatusIndicator.d.ts +15 -0
- package/components/widgets/StatusIndicator.d.ts.map +1 -0
- package/components/widgets/Tag.d.ts +2 -1
- package/components/widgets/Tag.d.ts.map +1 -1
- package/components/widgets/index.d.ts +2 -1
- package/components/widgets/index.d.ts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.esm.js +674 -590
- package/index.esm.js.map +1 -1
- package/index.js +676 -589
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/stats.html +1 -1
- package/styles.css +9243 -4149
- package/styles.css.map +1 -1
- package/components/widgets/Informer.d.ts +0 -8
- package/components/widgets/Informer.d.ts.map +0 -1
package/index.esm.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { Button as Button$1, IconButton as IconButton$1, Checkbox as Checkbox$1, RadioInput as RadioInput$1, Switch as Switch$1, TextInput as TextInput$1, ControlGroup as ControlGroup$1, NumericInput as NumericInput$1, TextArea as TextArea$1, DropdownContainer as DropdownContainer$1, TimePickerBody as TimePickerBody$1, BaseTimePicker, InputAddon as InputAddon$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, Accordion as Accordion$1, Tooltip as Tooltip$1, LabeledInput as LabeledInput$1, RadioGroup as RadioGroup$1, ScrollBars as ScrollBars$1, VirtualList as VirtualList$1, Spinner as Spinner$1, Blocker as Blocker$1, CheckboxGroup as CheckboxGroup$1, PickerBodyBase, DataTableCell as DataTableCell$1, DragHandle, DataPickerRow as DataPickerRow$1, usePickerModal, handleDataSourceKeyboard, AvatarStack as AvatarStack$1, Paginator as Paginator$1, ProgressBar as ProgressBar$1, PickerToggler as PickerToggler$1, Avatar, usePickerInput, usePickerList, BaseDatePicker, BaseRangeDatePicker, AdaptivePanel, RichTextView as RichTextView$1, ModalBlocker as ModalBlocker$1, ModalWindow as ModalWindow$1, CalendarPresets as CalendarPresets$1, uuiDaySelection, uuiDatePickerBodyBase, DataTableRow as DataTableRow$1, DataTableHeaderCell as DataTableHeaderCell$1, DataTableHeaderRow as DataTableHeaderRow$1, useColumnsConfiguration, DataTableSelectionProvider, Burger as Burger$1, MainMenu as MainMenu$1, UploadFileToggler, DropSpot as DropSpot$1 } from '@epam/uui-components';
|
|
2
|
-
export { Avatar, FlexSpacer, IconContainer } from '@epam/uui-components';
|
|
3
|
-
import { withMods, IEditableDebouncer, devLogger, cx as cx$1, UuiContext, uuiMod, i18n as i18n$2, Lens, isMobile, uuiMarkers, uuiElement, useForceUpdate, getSeparatedValue, useArrayDataSource, getOrderBetween, useUuiContext, arrayToMatrix, mobilePopperModifier, uuiDataTableHeaderCell, DndActor, useColumnsConfig, uuiScrollShadows, Form as Form$1, useForm as useForm$1, formatBytes } from '@epam/uui-core';
|
|
4
1
|
import * as React from 'react';
|
|
5
2
|
import React__default, { forwardRef, useContext, useRef, useState, useMemo, useEffect, useCallback } from 'react';
|
|
3
|
+
import * as uuiComponents from '@epam/uui-components';
|
|
4
|
+
import { AvatarStack as AvatarStack$1, Button as Button$1, Spinner as Spinner$1, Paginator as Paginator$1, ProgressBar as ProgressBar$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, Tooltip as Tooltip$1, RadioGroup as RadioGroup$1, ScrollBars as ScrollBars$1, Blocker as Blocker$1, CheckboxGroup as CheckboxGroup$1, PickerBodyBase, DataTableCell as DataTableCell$1, DragHandle, DataPickerRow as DataPickerRow$1, usePickerModal, handleDataSourceKeyboard, PickerToggler as PickerToggler$1, Avatar, usePickerInput, usePickerList, BaseDatePicker, BaseRangeDatePicker, AdaptivePanel, ModalBlocker as ModalBlocker$1, ModalWindow as ModalWindow$1, CalendarPresets as CalendarPresets$1, uuiDaySelection, uuiDatePickerBodyBase, DataTableRow as DataTableRow$1, DataTableHeaderCell as DataTableHeaderCell$1, DataTableHeaderRow as DataTableHeaderRow$1, useColumnsConfiguration, DataTableSelectionProvider, Burger as Burger$1, UploadFileToggler, DropSpot as DropSpot$1 } from '@epam/uui-components';
|
|
5
|
+
export { Avatar, FlexSpacer, IconContainer } from '@epam/uui-components';
|
|
6
|
+
import { withMods, devLogger, IEditableDebouncer, cx as cx$1, UuiContext, uuiMod, i18n as i18n$2, useVirtualList, useScrollShadows, uuiMarkers, Lens, isMobile, uuiElement, 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
|
+
import cx from 'classnames';
|
|
6
8
|
import dayjs from 'dayjs';
|
|
7
9
|
import customParseFormat from 'dayjs/plugin/customParseFormat.js';
|
|
8
10
|
import updateLocale from 'dayjs/plugin/updateLocale.js';
|
|
9
|
-
import cx from 'classnames';
|
|
10
11
|
import localeData from 'dayjs/plugin/localeData';
|
|
11
12
|
import sortBy from 'lodash.sortby';
|
|
12
13
|
import isoWeek from 'dayjs/plugin/isoWeek.js';
|
|
@@ -571,37 +572,275 @@ const systemIcons = {
|
|
|
571
572
|
},
|
|
572
573
|
};
|
|
573
574
|
|
|
574
|
-
var css$
|
|
575
|
+
var css$1n = {"root":"OGJyAA"};
|
|
576
|
+
|
|
577
|
+
const AvatarStack = withMods(AvatarStack$1, () => [css$1n.root]);
|
|
578
|
+
|
|
579
|
+
var css$1m = {"root":"_723x-7","size-24":"_3US0jP","size-18":"uJJpdb","size-12":"-Ym7r-","size24":"_3US0jP","size18":"uJJpdb","size12":"-Ym7r-"};
|
|
580
|
+
|
|
581
|
+
const CountIndicator = forwardRef((props, ref) => {
|
|
582
|
+
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
583
|
+
css$1m.root,
|
|
584
|
+
'uui-count_indicator',
|
|
585
|
+
css$1m[`size-${props.size || 24}`],
|
|
586
|
+
props.color && `uui-color-${props.color}`,
|
|
587
|
+
props.cx,
|
|
588
|
+
]) }, props.caption));
|
|
589
|
+
});
|
|
590
|
+
|
|
591
|
+
var css$1l = {"uui-typography":"eDMB8n","hero-header":"t3RZR2","promo-header":"id8tKi","uui-critical":"TCe3z-","uui-success":"a8l8aJ","uui-warning":"vxAGrs","uui-typography-size-12":"fLMuYa","uui-typography-size-14":"oLE3Jv","uui-typography-size-16":"P1Vk-O","root":"OcUAEf","size-18":"Y78XaG","size-24":"LgSgbx","size-30":"jLP7uR","size-36":"k7qIOW","size-42":"pNUIOI","size-48":"tNDmp4","uuiTypography":"eDMB8n","heroHeader":"t3RZR2","promoHeader":"id8tKi","uuiCritical":"TCe3z-","uuiSuccess":"a8l8aJ","uuiWarning":"vxAGrs","uuiTypographySize12":"fLMuYa","uuiTypographySize14":"oLE3Jv","uuiTypographySize16":"P1Vk-O","size18":"Y78XaG","size24":"LgSgbx","size30":"jLP7uR","size36":"k7qIOW","size42":"pNUIOI","size48":"tNDmp4"};
|
|
592
|
+
|
|
593
|
+
const defaultSize$b = '36';
|
|
594
|
+
const mapSize$1 = {
|
|
595
|
+
48: '48',
|
|
596
|
+
42: '48',
|
|
597
|
+
36: '36',
|
|
598
|
+
30: '30',
|
|
599
|
+
24: '30',
|
|
600
|
+
18: '18',
|
|
601
|
+
};
|
|
602
|
+
function applyBadgeMods(mods) {
|
|
603
|
+
return [
|
|
604
|
+
'uui-badge',
|
|
605
|
+
css$1l.root,
|
|
606
|
+
css$1l['size-' + (mods.size || defaultSize$b)],
|
|
607
|
+
`uui-fill-${mods.fill || 'solid'}`,
|
|
608
|
+
mods.color && `uui-color-${mods.color}`,
|
|
609
|
+
mods.indicator && 'uui-indicator',
|
|
610
|
+
];
|
|
611
|
+
}
|
|
612
|
+
const mapCountIndicatorSizes$1 = {
|
|
613
|
+
18: '12',
|
|
614
|
+
24: '18',
|
|
615
|
+
30: '18',
|
|
616
|
+
36: '18',
|
|
617
|
+
42: '24',
|
|
618
|
+
48: '24',
|
|
619
|
+
};
|
|
620
|
+
const Badge = withMods(Button$1, applyBadgeMods, (props) => {
|
|
621
|
+
if (process.env.NODE_ENV !== "production") {
|
|
622
|
+
devLogger.warnAboutDeprecatedPropValue({
|
|
623
|
+
component: 'Badge',
|
|
624
|
+
propName: 'size',
|
|
625
|
+
propValue: props.size,
|
|
626
|
+
propValueUseInstead: '42',
|
|
627
|
+
condition: () => ['48'].indexOf(props.size) !== -1,
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
return {
|
|
631
|
+
dropdownIcon: systemIcons[(props.size && mapSize$1[props.size]) || defaultSize$b].foldingArrow,
|
|
632
|
+
clearIcon: systemIcons[(props.size && mapSize$1[props.size]) || defaultSize$b].clear,
|
|
633
|
+
countPosition: 'left',
|
|
634
|
+
countIndicator: (countIndicatorProps) => (React__default.createElement(CountIndicator, Object.assign({}, countIndicatorProps, { color: null, size: mapCountIndicatorSizes$1[props.size || defaultSize$b] }))),
|
|
635
|
+
indicator: props.indicator || false,
|
|
636
|
+
};
|
|
637
|
+
});
|
|
638
|
+
|
|
639
|
+
var css$1k = {"uui-typography":"o2R8qc","hero-header":"_5gKOsI","promo-header":"BH1xZG","uui-critical":"K4XPRN","uui-success":"CdJF-j","uui-warning":"bT-8-Z","uui-typography-size-12":"HwaQan","uui-typography-size-14":"wiZ1yj","uui-typography-size-16":"NzruFf","root":"-NfsH-","size-18":"US-fLR","size-24":"_632Uwl","size-30":"K-DFbQ","size-36":"Sm1C07","size-42":"iV8a5D","size-48":"CdarUL","uuiTypography":"o2R8qc","heroHeader":"_5gKOsI","promoHeader":"BH1xZG","uuiCritical":"K4XPRN","uuiSuccess":"CdJF-j","uuiWarning":"bT-8-Z","uuiTypographySize12":"HwaQan","uuiTypographySize14":"wiZ1yj","uuiTypographySize16":"NzruFf","size18":"US-fLR","size24":"_632Uwl","size30":"K-DFbQ","size36":"Sm1C07","size42":"iV8a5D","size48":"CdarUL"};
|
|
640
|
+
|
|
641
|
+
const defaultSize$a = '36';
|
|
642
|
+
const mapSize = {
|
|
643
|
+
48: '48',
|
|
644
|
+
42: '48',
|
|
645
|
+
36: '36',
|
|
646
|
+
30: '30',
|
|
647
|
+
24: '30',
|
|
648
|
+
18: '18',
|
|
649
|
+
};
|
|
650
|
+
const mapCountIndicatorSizes = {
|
|
651
|
+
18: '12',
|
|
652
|
+
24: '18',
|
|
653
|
+
30: '18',
|
|
654
|
+
36: '18',
|
|
655
|
+
42: '24',
|
|
656
|
+
48: '24',
|
|
657
|
+
};
|
|
658
|
+
function applyTagMods(mods) {
|
|
659
|
+
return [
|
|
660
|
+
css$1k['size-' + (mods.size || defaultSize$a)],
|
|
661
|
+
css$1k.root,
|
|
662
|
+
'uui-color-neutral',
|
|
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: "white", size: mapCountIndicatorSizes[props.size || defaultSize$a] }))),
|
|
670
|
+
}));
|
|
671
|
+
|
|
672
|
+
var css$1j = {"root":"IJ-Yci","uui-spinner":"XqvuBZ","uuiSpinner":"XqvuBZ"};
|
|
673
|
+
|
|
674
|
+
function applySpinnerMods() {
|
|
675
|
+
return [css$1j.root, 'uui-spinner'];
|
|
676
|
+
}
|
|
677
|
+
const Spinner = withMods(Spinner$1, applySpinnerMods);
|
|
678
|
+
|
|
679
|
+
var css$1i = {"root":"MdAmE7","spacer":"pe2ubC","mode-ghost":"aihJFJ","size-24":"rZFJ5R","size-30":"_5565Jq","navigation-size-24":"_9xmLQ6","navigation-size-30":"K3BMHI","modeGhost":"aihJFJ","size24":"rZFJ5R","size30":"_5565Jq","navigationSize24":"_9xmLQ6","navigationSize30":"K3BMHI"};
|
|
680
|
+
|
|
681
|
+
var _path$M;
|
|
682
|
+
function _extends$O() { _extends$O = 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$O.apply(this, arguments); }
|
|
683
|
+
var SvgNavigationChevronLeft12 = function SvgNavigationChevronLeft12(props, ref) {
|
|
684
|
+
return /*#__PURE__*/React.createElement("svg", _extends$O({
|
|
685
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
686
|
+
width: 12,
|
|
687
|
+
height: 12,
|
|
688
|
+
viewBox: "0 0 12 12",
|
|
689
|
+
ref: ref
|
|
690
|
+
}, props), _path$M || (_path$M = /*#__PURE__*/React.createElement("path", {
|
|
691
|
+
fillRule: "evenodd",
|
|
692
|
+
d: "M7.705 3.705 7 3 4 6l3 3 .705-.705L5.415 6l2.29-2.295z",
|
|
693
|
+
clipRule: "evenodd"
|
|
694
|
+
})));
|
|
695
|
+
};
|
|
696
|
+
var ForwardRef$O = /*#__PURE__*/forwardRef(SvgNavigationChevronLeft12);
|
|
697
|
+
|
|
698
|
+
var _path$L;
|
|
699
|
+
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); }
|
|
700
|
+
var SvgNavigationChevronRight12 = function SvgNavigationChevronRight12(props, ref) {
|
|
701
|
+
return /*#__PURE__*/React.createElement("svg", _extends$N({
|
|
702
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
703
|
+
width: 12,
|
|
704
|
+
height: 12,
|
|
705
|
+
viewBox: "0 0 12 12",
|
|
706
|
+
ref: ref
|
|
707
|
+
}, props), _path$L || (_path$L = /*#__PURE__*/React.createElement("path", {
|
|
708
|
+
fillRule: "evenodd",
|
|
709
|
+
d: "m5 3-.705.705L6.585 6l-2.29 2.295L5 9l3-3-3-3z",
|
|
710
|
+
clipRule: "evenodd"
|
|
711
|
+
})));
|
|
712
|
+
};
|
|
713
|
+
var ForwardRef$N = /*#__PURE__*/forwardRef(SvgNavigationChevronRight12);
|
|
714
|
+
|
|
715
|
+
var _path$K;
|
|
716
|
+
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); }
|
|
717
|
+
var SvgNavigationChevronLeft18 = function SvgNavigationChevronLeft18(props, ref) {
|
|
718
|
+
return /*#__PURE__*/React.createElement("svg", _extends$M({
|
|
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$K || (_path$K = /*#__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$M = /*#__PURE__*/forwardRef(SvgNavigationChevronLeft18);
|
|
731
|
+
|
|
732
|
+
var _path$J;
|
|
733
|
+
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); }
|
|
734
|
+
var SvgNavigationChevronRight18 = function SvgNavigationChevronRight18(props, ref) {
|
|
735
|
+
return /*#__PURE__*/React.createElement("svg", _extends$L({
|
|
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$J || (_path$J = /*#__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$L = /*#__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$1i.root, 'uui-paginator') }, params.rawProps),
|
|
753
|
+
React__default.createElement(Button, { cx: css$1i[`navigation-size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$M : ForwardRef$O, 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$1i[`size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], css$1i.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$1i[`size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], css$1i[`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$1i[`navigation-size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$L : ForwardRef$N, 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$1h = {"root":"MHvesC","bar":"Q0RjIc","progressBar-indeterminate":"xRCQUE","size-12":"SvtZSo","size-18":"x-4uJ0","size-24":"QYXUHo","progressBarIndeterminate":"xRCQUE","size12":"SvtZSo","size18":"x-4uJ0","size24":"QYXUHo"};
|
|
769
|
+
|
|
770
|
+
const IndeterminateBar = React.forwardRef((props, ref) => {
|
|
771
|
+
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$1h.root, css$1h[`size-${props.size || 12}`]) },
|
|
772
|
+
React.createElement("div", { className: cx(css$1h.bar) })));
|
|
773
|
+
});
|
|
774
|
+
|
|
775
|
+
var css$1g = {"root":"KE3rZG","striped":"LRp-Lw","animate-stripes":"d7BOBF","size-12":"c4EBQo","size-18":"mRaPHp","size-24":"WIFWK2","animateStripes":"d7BOBF","size12":"c4EBQo","size18":"mRaPHp","size24":"WIFWK2"};
|
|
776
|
+
|
|
777
|
+
const defaultSize$9 = '12';
|
|
778
|
+
function applyProgressBarMods(mods) {
|
|
779
|
+
const size = mods.size || defaultSize$9;
|
|
780
|
+
return [
|
|
781
|
+
css$1g.root,
|
|
782
|
+
css$1g[`size-${size}`],
|
|
783
|
+
mods.striped && css$1g.striped,
|
|
784
|
+
];
|
|
785
|
+
}
|
|
786
|
+
const ProgressBar = withMods(ProgressBar$1, applyProgressBarMods, (props) => ({
|
|
787
|
+
hideLabel: props.hideLabel || props.striped,
|
|
788
|
+
}));
|
|
789
|
+
|
|
790
|
+
var css$1f = {"root":"ODMyao"};
|
|
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$1f.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$1f.root, props.cx) }));
|
|
795
|
+
});
|
|
796
|
+
|
|
797
|
+
var css$1e = {"root":"Ld4RCO","size-12":"_8G6ivf","size-18":"WzabQU","size-24":"mzlmOO","size12":"_8G6ivf","size18":"WzabQU","size24":"mzlmOO"};
|
|
798
|
+
|
|
799
|
+
const StatusIndicator = forwardRef((props, ref) => {
|
|
800
|
+
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
801
|
+
css$1e.root,
|
|
802
|
+
css$1e[`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$1d = {"uui-typography":"d-pCLI","hero-header":"DPXc1q","promo-header":"Wjjj7C","uui-critical":"KDwqFK","uui-success":"qGfSuu","uui-warning":"HNaYRT","uui-typography-size-12":"PYXGrH","uui-typography-size-14":"_62UZ1B","uui-typography-size-16":"_0AFtoC","root":"_1UkAXk","size-18":"Lo611v","size-24":"_6U3dKn","size-30":"_9XGvV7","size-36":"zGarwU","size-42":"uZ9exU","size-48":"xXvOdg","uuiTypography":"d-pCLI","heroHeader":"DPXc1q","promoHeader":"Wjjj7C","uuiCritical":"KDwqFK","uuiSuccess":"qGfSuu","uuiWarning":"HNaYRT","uuiTypographySize12":"PYXGrH","uuiTypographySize14":"_62UZ1B","uuiTypographySize16":"_0AFtoC","size18":"Lo611v","size24":"_6U3dKn","size30":"_9XGvV7","size36":"zGarwU","size42":"uZ9exU","size48":"xXvOdg"};
|
|
575
813
|
|
|
576
814
|
const allButtonColors = [
|
|
577
|
-
'accent', 'primary', 'secondary', '
|
|
815
|
+
'accent', 'primary', 'critical', 'secondary', 'neutral',
|
|
578
816
|
];
|
|
579
|
-
const defaultSize$
|
|
817
|
+
const defaultSize$8 = '36';
|
|
580
818
|
function applyButtonMods(mods) {
|
|
581
819
|
return [
|
|
582
|
-
css$
|
|
820
|
+
css$1d.root,
|
|
583
821
|
'uui-button',
|
|
584
822
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
585
823
|
`uui-color-${mods.color || 'primary'}`,
|
|
586
|
-
css$
|
|
824
|
+
css$1d[`size-${mods.size || defaultSize$8}`],
|
|
587
825
|
];
|
|
588
826
|
}
|
|
589
827
|
const Button = withMods(Button$1, applyButtonMods, (props) => ({
|
|
590
|
-
dropdownIcon: systemIcons[props.size || defaultSize$
|
|
591
|
-
clearIcon: systemIcons[props.size || defaultSize$
|
|
828
|
+
dropdownIcon: systemIcons[props.size || defaultSize$8].foldingArrow,
|
|
829
|
+
clearIcon: systemIcons[props.size || defaultSize$8].clear,
|
|
830
|
+
countIndicator: (countIndicatorProps) => React__default.createElement(CountIndicator, Object.assign({}, countIndicatorProps, { color: "white" })),
|
|
592
831
|
}));
|
|
593
832
|
|
|
594
|
-
var css$
|
|
833
|
+
var css$1c = {"root":"ZZ473Y"};
|
|
595
834
|
|
|
596
835
|
const allIconColors = [
|
|
597
836
|
'info', 'success', 'warning', 'error', 'secondary', 'neutral',
|
|
598
837
|
];
|
|
599
838
|
function applyIconButtonMods(mods) {
|
|
600
|
-
return ['uui-icon_button', `uui-color-${mods.color || 'neutral'}`, css$
|
|
839
|
+
return ['uui-icon_button', `uui-color-${mods.color || 'neutral'}`, css$1c.root];
|
|
601
840
|
}
|
|
602
841
|
const IconButton = withMods(IconButton$1, applyIconButtonMods);
|
|
603
842
|
|
|
604
|
-
var css$
|
|
843
|
+
var css$1b = {"root":"iVpl7q","size-18":"l-1ZWb","size-24":"TthNTH","size-30":"iP1y0i","size-36":"rIoKlV","size-42":"X69uia","size-48":"nrNqM4","size18":"l-1ZWb","size24":"TthNTH","size30":"iP1y0i","size36":"rIoKlV","size42":"X69uia","size48":"nrNqM4"};
|
|
605
844
|
|
|
606
845
|
function getIconClass(props) {
|
|
607
846
|
const classList = {
|
|
@@ -620,39 +859,39 @@ function getIconClass(props) {
|
|
|
620
859
|
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'];
|
|
621
860
|
}
|
|
622
861
|
|
|
623
|
-
const defaultSize$
|
|
862
|
+
const defaultSize$7 = '36';
|
|
624
863
|
const allLinkButtonColors = ['primary', 'secondary', 'contrast'];
|
|
625
864
|
function applyLinkButtonMods(mods) {
|
|
626
865
|
return [
|
|
627
866
|
'uui-link_button',
|
|
628
|
-
css$
|
|
629
|
-
css$
|
|
867
|
+
css$1b.root,
|
|
868
|
+
css$1b['size-' + (mods.size || defaultSize$7)],
|
|
630
869
|
...getIconClass(mods),
|
|
631
870
|
`uui-color-${mods.color || 'primary'}`,
|
|
632
871
|
];
|
|
633
872
|
}
|
|
634
873
|
const LinkButton = withMods(Button$1, applyLinkButtonMods, (props) => ({
|
|
635
|
-
dropdownIcon: systemIcons[props.size || defaultSize$
|
|
636
|
-
clearIcon: systemIcons[props.size || defaultSize$
|
|
874
|
+
dropdownIcon: systemIcons[props.size || defaultSize$7].foldingArrow,
|
|
875
|
+
clearIcon: systemIcons[props.size || defaultSize$7].clear,
|
|
637
876
|
}));
|
|
638
877
|
|
|
639
|
-
var css$
|
|
878
|
+
var css$1a = {"uui-typography":"y-VYv4","hero-header":"wTNqSp","promo-header":"NXzCXN","uui-critical":"VvGIuJ","uui-success":"TY710q","uui-warning":"_0n1YXt","uui-typography-size-12":"q7BBDm","uui-typography-size-14":"FHC-7C","uui-typography-size-16":"_7mGCfj","root":"Y-c-PR","withNotify":"snIH2z","size-36":"_1Bd6gR","size-48":"oBRI61","size-60":"TH8Cj2","uuiTypography":"y-VYv4","heroHeader":"wTNqSp","promoHeader":"NXzCXN","uuiCritical":"VvGIuJ","uuiSuccess":"TY710q","uuiWarning":"_0n1YXt","uuiTypographySize12":"q7BBDm","uuiTypographySize14":"FHC-7C","uuiTypographySize16":"_7mGCfj","size36":"_1Bd6gR","size48":"oBRI61","size60":"TH8Cj2"};
|
|
640
879
|
|
|
641
880
|
function applyTabButtonMods(mods) {
|
|
642
881
|
return [
|
|
643
|
-
css$
|
|
882
|
+
css$1a.root,
|
|
644
883
|
'uui-tab-button',
|
|
645
|
-
css$
|
|
646
|
-
mods.withNotify && css$
|
|
884
|
+
css$1a['size-' + (mods.size || '48')],
|
|
885
|
+
mods.withNotify && css$1a.withNotify,
|
|
647
886
|
...getIconClass(mods),
|
|
648
887
|
];
|
|
649
888
|
}
|
|
650
|
-
const TabButton = withMods(Button$1, applyTabButtonMods, (props) => (Object.assign(Object.assign({ dropdownIcon: systemIcons['36'].foldingArrow, clearIcon: systemIcons['36'].clear
|
|
889
|
+
const TabButton = withMods(Button$1, 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" }))) })));
|
|
651
890
|
|
|
652
|
-
var css$
|
|
891
|
+
var css$19 = {"uui-typography":"VPcP6T","hero-header":"gEHpxw","promo-header":"bgQAQR","uui-critical":"BAgmbv","uui-success":"_8ZXn-D","uui-warning":"U94iRT","uui-typography-size-12":"BvJwr0","uui-typography-size-14":"vrOu1P","uui-typography-size-16":"K--CkC","root":"cmRTpx","uuiTypography":"VPcP6T","heroHeader":"gEHpxw","promoHeader":"bgQAQR","uuiCritical":"BAgmbv","uuiSuccess":"_8ZXn-D","uuiWarning":"U94iRT","uuiTypographySize12":"BvJwr0","uuiTypographySize14":"vrOu1P","uuiTypographySize16":"K--CkC"};
|
|
653
892
|
|
|
654
893
|
function applyVerticalTabButtonMods() {
|
|
655
|
-
return [css$
|
|
894
|
+
return [css$19.root];
|
|
656
895
|
}
|
|
657
896
|
const VerticalTabButton = withMods(TabButton, applyVerticalTabButtonMods);
|
|
658
897
|
|
|
@@ -670,7 +909,7 @@ const allSemanticColors = [
|
|
|
670
909
|
'info', 'success', 'warning', 'error',
|
|
671
910
|
];
|
|
672
911
|
const allEpamBadgeSemanticColors = [
|
|
673
|
-
'info', 'success', 'warning', '
|
|
912
|
+
'info', 'success', 'warning', 'critical', 'neutral',
|
|
674
913
|
];
|
|
675
914
|
const allTextSizes = [
|
|
676
915
|
'18', '24', '30', '36', '48',
|
|
@@ -685,92 +924,92 @@ var EditMode;
|
|
|
685
924
|
EditMode["INLINE"] = "inline";
|
|
686
925
|
})(EditMode || (EditMode = {}));
|
|
687
926
|
|
|
688
|
-
var _path$
|
|
689
|
-
function _extends$
|
|
927
|
+
var _path$I;
|
|
928
|
+
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); }
|
|
690
929
|
var SvgCheck12 = function SvgCheck12(props, ref) {
|
|
691
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
930
|
+
return /*#__PURE__*/React.createElement("svg", _extends$K({
|
|
692
931
|
width: 12,
|
|
693
932
|
height: 12,
|
|
694
933
|
viewBox: "0 0 12 12",
|
|
695
934
|
xmlns: "http://www.w3.org/2000/svg",
|
|
696
935
|
ref: ref
|
|
697
|
-
}, props), _path$
|
|
936
|
+
}, props), _path$I || (_path$I = /*#__PURE__*/React.createElement("path", {
|
|
698
937
|
fillRule: "evenodd",
|
|
699
938
|
d: "M9.491 3.449 10.51 4.55 5.663 9.024 2.487 6.047l1.026-1.094L5.67 6.975z"
|
|
700
939
|
})));
|
|
701
940
|
};
|
|
702
|
-
var ForwardRef$
|
|
941
|
+
var ForwardRef$K = /*#__PURE__*/forwardRef(SvgCheck12);
|
|
703
942
|
|
|
704
|
-
var _path$
|
|
705
|
-
function _extends$
|
|
943
|
+
var _path$H;
|
|
944
|
+
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); }
|
|
706
945
|
var SvgCheck18 = function SvgCheck18(props, ref) {
|
|
707
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
946
|
+
return /*#__PURE__*/React.createElement("svg", _extends$J({
|
|
708
947
|
width: 18,
|
|
709
948
|
height: 18,
|
|
710
949
|
viewBox: "0 0 18 18",
|
|
711
950
|
xmlns: "http://www.w3.org/2000/svg",
|
|
712
951
|
ref: ref
|
|
713
|
-
}, props), _path$
|
|
952
|
+
}, props), _path$H || (_path$H = /*#__PURE__*/React.createElement("path", {
|
|
714
953
|
fillRule: "evenodd",
|
|
715
954
|
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"
|
|
716
955
|
})));
|
|
717
956
|
};
|
|
718
|
-
var ForwardRef$
|
|
957
|
+
var ForwardRef$J = /*#__PURE__*/forwardRef(SvgCheck18);
|
|
719
958
|
|
|
720
|
-
var _path$
|
|
721
|
-
function _extends$
|
|
959
|
+
var _path$G;
|
|
960
|
+
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); }
|
|
722
961
|
var SvgPartlySelect12 = function SvgPartlySelect12(props, ref) {
|
|
723
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
962
|
+
return /*#__PURE__*/React.createElement("svg", _extends$I({
|
|
724
963
|
width: 12,
|
|
725
964
|
height: 12,
|
|
726
965
|
viewBox: "0 0 12 12",
|
|
727
966
|
xmlns: "http://www.w3.org/2000/svg",
|
|
728
967
|
ref: ref
|
|
729
|
-
}, props), _path$
|
|
968
|
+
}, props), _path$G || (_path$G = /*#__PURE__*/React.createElement("path", {
|
|
730
969
|
fillRule: "evenodd",
|
|
731
970
|
d: "M9 5v2H3V5z"
|
|
732
971
|
})));
|
|
733
972
|
};
|
|
734
|
-
var ForwardRef$
|
|
973
|
+
var ForwardRef$I = /*#__PURE__*/forwardRef(SvgPartlySelect12);
|
|
735
974
|
|
|
736
|
-
var _path$
|
|
737
|
-
function _extends$
|
|
975
|
+
var _path$F;
|
|
976
|
+
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); }
|
|
738
977
|
var SvgPartlySelect18 = function SvgPartlySelect18(props, ref) {
|
|
739
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
978
|
+
return /*#__PURE__*/React.createElement("svg", _extends$H({
|
|
740
979
|
width: 18,
|
|
741
980
|
height: 18,
|
|
742
981
|
viewBox: "0 0 18 18",
|
|
743
982
|
xmlns: "http://www.w3.org/2000/svg",
|
|
744
983
|
ref: ref
|
|
745
|
-
}, props), _path$
|
|
984
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React.createElement("path", {
|
|
746
985
|
fillRule: "evenodd",
|
|
747
986
|
d: "M14 8v2H4V8z"
|
|
748
987
|
})));
|
|
749
988
|
};
|
|
750
|
-
var ForwardRef$
|
|
989
|
+
var ForwardRef$H = /*#__PURE__*/forwardRef(SvgPartlySelect18);
|
|
751
990
|
|
|
752
|
-
var css$
|
|
991
|
+
var css$18 = {"uui-typography":"PIBPnE","hero-header":"t-6hoI","promo-header":"nZSMXM","uui-critical":"_4aYZWv","uui-success":"E4kiYc","uui-warning":"UQEjxK","uui-typography-size-12":"qBjUr9","uui-typography-size-14":"dgsxDM","uui-typography-size-16":"_5uN-0S","root":"THQBC6","size-18":"Xp29lq","size-12":"KuDpjx","mode-cell":"VbuSuE","uuiTypography":"PIBPnE","heroHeader":"t-6hoI","promoHeader":"nZSMXM","uuiCritical":"_4aYZWv","uuiSuccess":"E4kiYc","uuiWarning":"UQEjxK","uuiTypographySize12":"qBjUr9","uuiTypographySize14":"dgsxDM","uuiTypographySize16":"_5uN-0S","size18":"Xp29lq","size12":"KuDpjx","modeCell":"VbuSuE"};
|
|
753
992
|
|
|
754
993
|
function applyCheckboxMods(mods) {
|
|
755
994
|
return [
|
|
756
|
-
css$
|
|
757
|
-
css$
|
|
758
|
-
css$
|
|
995
|
+
css$18.root,
|
|
996
|
+
css$18['size-' + (mods.size || '18')],
|
|
997
|
+
css$18['mode-' + (mods.mode || 'form')],
|
|
759
998
|
'uui-color-primary',
|
|
760
999
|
];
|
|
761
1000
|
}
|
|
762
1001
|
const applyUUICheckboxProps = (props) => ({
|
|
763
|
-
icon: props.size === '12' ? ForwardRef$
|
|
764
|
-
indeterminateIcon: props.size === '12' ? ForwardRef$
|
|
1002
|
+
icon: props.size === '12' ? ForwardRef$K : ForwardRef$J,
|
|
1003
|
+
indeterminateIcon: props.size === '12' ? ForwardRef$I : ForwardRef$H,
|
|
765
1004
|
});
|
|
766
|
-
const Checkbox = withMods(Checkbox
|
|
1005
|
+
const Checkbox = withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
767
1006
|
|
|
768
|
-
var css$
|
|
1007
|
+
var css$17 = {"uui-typography":"-iDKoQ","hero-header":"RhKRs7","promo-header":"h-UWRJ","uui-critical":"lIGFuF","uui-success":"XrS0R0","uui-warning":"gb3AO2","uui-typography-size-12":"_3e5L15","uui-typography-size-14":"_9isW1j","uui-typography-size-16":"zr-zCt","root":"lNjTUi","size-18":"iYB8qZ","size-12":"mhj7Ov","uuiTypography":"-iDKoQ","heroHeader":"RhKRs7","promoHeader":"h-UWRJ","uuiCritical":"lIGFuF","uuiSuccess":"XrS0R0","uuiWarning":"gb3AO2","uuiTypographySize12":"_3e5L15","uuiTypographySize14":"_9isW1j","uuiTypographySize16":"zr-zCt","size18":"iYB8qZ","size12":"mhj7Ov"};
|
|
769
1008
|
|
|
770
1009
|
var _circle;
|
|
771
|
-
function _extends$
|
|
1010
|
+
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); }
|
|
772
1011
|
var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
773
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1012
|
+
return /*#__PURE__*/React.createElement("svg", _extends$G({
|
|
774
1013
|
width: 18,
|
|
775
1014
|
height: 18,
|
|
776
1015
|
viewBox: "0 0 18 18",
|
|
@@ -782,21 +1021,21 @@ var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
|
782
1021
|
r: 6
|
|
783
1022
|
})));
|
|
784
1023
|
};
|
|
785
|
-
var ForwardRef$
|
|
1024
|
+
var ForwardRef$G = /*#__PURE__*/forwardRef(SvgRadioPoint);
|
|
786
1025
|
|
|
787
1026
|
function applyRadioInputMods(mods) {
|
|
788
|
-
return [css$
|
|
1027
|
+
return [css$17.root, css$17['size-' + (mods.size || '18')], 'uui-color-primary'];
|
|
789
1028
|
}
|
|
790
|
-
const RadioInput = withMods(RadioInput$1, applyRadioInputMods, () => ({ icon: ForwardRef$
|
|
1029
|
+
const RadioInput = withMods(RadioInput$1, applyRadioInputMods, () => ({ icon: ForwardRef$G }));
|
|
791
1030
|
|
|
792
|
-
var css$
|
|
1031
|
+
var css$16 = {"root":"_5eGiNq","size-12":"dmGsw-","size-18":"dnZ83Z","size-24":"sQJGNJ","size12":"dmGsw-","size18":"dnZ83Z","size24":"sQJGNJ"};
|
|
793
1032
|
|
|
794
1033
|
function applySwitchMods(mods) {
|
|
795
1034
|
return [
|
|
796
|
-
css$
|
|
1035
|
+
css$16.root, css$16['size-' + (mods.size || '18')], 'uui-color-primary',
|
|
797
1036
|
];
|
|
798
1037
|
}
|
|
799
|
-
const Switch = withMods(Switch
|
|
1038
|
+
const Switch = withMods(uuiComponents.Switch, applySwitchMods);
|
|
800
1039
|
|
|
801
1040
|
/******************************************************************************
|
|
802
1041
|
Copyright (c) Microsoft Corporation.
|
|
@@ -842,27 +1081,27 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
842
1081
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
843
1082
|
};
|
|
844
1083
|
|
|
845
|
-
var textInputCss = {"root":"
|
|
1084
|
+
var textInputCss = {"uui-typography":"Vqe9Hc","hero-header":"TwsQ7b","promo-header":"Zl6eXK","uui-critical":"kjmiE2","uui-success":"oqLwZt","uui-warning":"uy3Bmj","uui-typography-size-12":"nFtkWZ","uui-typography-size-14":"kv2pSu","uui-typography-size-16":"eESpCP","root":"vKsAnN","mode-form":"fxgMSF","mode-inline":"qBWKpx","mode-cell":"g0HKL4","size-24":"kTbPQM","size-30":"NZv94p","size-36":"_8JfSxy","size-42":"GextdL","size-48":"gSYmDT","uuiTypography":"Vqe9Hc","heroHeader":"TwsQ7b","promoHeader":"Zl6eXK","uuiCritical":"kjmiE2","uuiSuccess":"oqLwZt","uuiWarning":"uy3Bmj","uuiTypographySize12":"nFtkWZ","uuiTypographySize14":"kv2pSu","uuiTypographySize16":"eESpCP","modeForm":"fxgMSF","modeInline":"qBWKpx","modeCell":"g0HKL4","size24":"kTbPQM","size30":"NZv94p","size36":"_8JfSxy","size42":"GextdL","size48":"gSYmDT"};
|
|
846
1085
|
|
|
847
|
-
const defaultSize$
|
|
1086
|
+
const defaultSize$6 = '36';
|
|
848
1087
|
const defaultMode$5 = EditMode.FORM;
|
|
849
1088
|
function applyTextInputMods(mods) {
|
|
850
1089
|
return [
|
|
851
1090
|
textInputCss.root,
|
|
852
|
-
textInputCss['size-' + (mods.size || defaultSize$
|
|
1091
|
+
textInputCss['size-' + (mods.size || defaultSize$6)],
|
|
853
1092
|
textInputCss['mode-' + (mods.mode || defaultMode$5)],
|
|
854
1093
|
];
|
|
855
1094
|
}
|
|
856
1095
|
const TextInput = withMods(TextInput$1, applyTextInputMods, (props) => ({
|
|
857
|
-
acceptIcon: systemIcons[props.size || defaultSize$
|
|
858
|
-
cancelIcon: systemIcons[props.size || defaultSize$
|
|
859
|
-
dropdownIcon: systemIcons[props.size || defaultSize$
|
|
1096
|
+
acceptIcon: systemIcons[props.size || defaultSize$6].accept,
|
|
1097
|
+
cancelIcon: systemIcons[props.size || defaultSize$6].clear,
|
|
1098
|
+
dropdownIcon: systemIcons[props.size || defaultSize$6].foldingArrow,
|
|
860
1099
|
}));
|
|
861
1100
|
const SearchInput = React__default.forwardRef((props, ref) => {
|
|
862
1101
|
// analytics events are sending in IEditableDebouncer, so we need to avoid sending events in TextInput
|
|
863
1102
|
const textInputProps = __rest(props, []);
|
|
864
1103
|
delete textInputProps.getValueChangeAnalyticsEvent;
|
|
865
|
-
return (React__default.createElement(IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => (React__default.createElement(TextInput, Object.assign({ icon: systemIcons[props.size || defaultSize$
|
|
1104
|
+
return (React__default.createElement(IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => (React__default.createElement(TextInput, Object.assign({ icon: systemIcons[props.size || defaultSize$6].search, onCancel: !!props.value
|
|
866
1105
|
// In a lot of places, it is required to check if a clicked element is a part of some other element.
|
|
867
1106
|
// Usually, those are global click event handlers. To allow that logic to work correctly, it is necessary
|
|
868
1107
|
// to execute the `disappearing` of the cross (setState execution) after the event will pass through all the handlers.
|
|
@@ -871,41 +1110,41 @@ const SearchInput = React__default.forwardRef((props, ref) => {
|
|
|
871
1110
|
: undefined, type: "search", inputMode: "search", ref: ref }, textInputProps, iEditable))) })));
|
|
872
1111
|
});
|
|
873
1112
|
|
|
874
|
-
var css$
|
|
1113
|
+
var css$15 = {"root":"KA9WO-"};
|
|
875
1114
|
|
|
876
|
-
const ControlGroup = withMods(ControlGroup$1, () => [css$
|
|
1115
|
+
const ControlGroup = withMods(ControlGroup$1, () => [css$15.root]);
|
|
877
1116
|
|
|
878
1117
|
function MultiSwitchComponent(props, ref) {
|
|
879
1118
|
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 === 'secondary' && props.value === item.id ? 'primary' : props.color || 'primary', size: props.size, rawProps: { 'aria-current': props.value === item.id, role: 'tab' } }))))));
|
|
880
1119
|
}
|
|
881
1120
|
const MultiSwitch = React.forwardRef(MultiSwitchComponent);
|
|
882
1121
|
|
|
883
|
-
var css$
|
|
1122
|
+
var css$14 = {"uui-typography":"-dUdcX","hero-header":"Z6gBx1","promo-header":"_72v0kR","uui-critical":"kjzvMi","uui-success":"XGW7ke","uui-warning":"unu2bz","uui-typography-size-12":"O2IM5q","uui-typography-size-14":"JU75LM","uui-typography-size-16":"amta3z","root":"K6OU3B","size-24":"DMQU-8","size-30":"kmSZ-K","size-36":"wDCUAW","size-42":"HQKayp","size-48":"_16Bkal","mode-form":"ph27ht","mode-cell":"eWk4CJ","uuiTypography":"-dUdcX","heroHeader":"Z6gBx1","promoHeader":"_72v0kR","uuiCritical":"kjzvMi","uuiSuccess":"XGW7ke","uuiWarning":"unu2bz","uuiTypographySize12":"O2IM5q","uuiTypographySize14":"JU75LM","uuiTypographySize16":"amta3z","size24":"DMQU-8","size30":"kmSZ-K","size36":"wDCUAW","size42":"HQKayp","size48":"_16Bkal","modeForm":"ph27ht","modeCell":"eWk4CJ"};
|
|
884
1123
|
|
|
885
|
-
const defaultSize$
|
|
1124
|
+
const defaultSize$5 = '36';
|
|
886
1125
|
const defaultMode$4 = EditMode.FORM;
|
|
887
1126
|
function applyNumericInputMods(mods) {
|
|
888
1127
|
return [
|
|
889
|
-
textInputCss.root, css$
|
|
1128
|
+
textInputCss.root, css$14.root, css$14['size-' + (mods.size || defaultSize$5)], textInputCss['size-' + (mods.size || defaultSize$5)], textInputCss['mode-' + (mods.mode || defaultMode$4)],
|
|
890
1129
|
];
|
|
891
1130
|
}
|
|
892
1131
|
const NumericInput = withMods(NumericInput$1, applyNumericInputMods, (props) => {
|
|
893
1132
|
var _a, _b;
|
|
894
1133
|
return ({
|
|
895
|
-
upIcon: systemIcons[props.size || defaultSize$
|
|
896
|
-
downIcon: systemIcons[props.size || defaultSize$
|
|
1134
|
+
upIcon: systemIcons[props.size || defaultSize$5].foldingArrow,
|
|
1135
|
+
downIcon: systemIcons[props.size || defaultSize$5].foldingArrow,
|
|
897
1136
|
align: (_a = props.align) !== null && _a !== void 0 ? _a : (props.mode === 'cell' ? 'right' : 'left'),
|
|
898
1137
|
disableArrows: (_b = props.disableArrows) !== null && _b !== void 0 ? _b : props.mode === 'cell',
|
|
899
1138
|
});
|
|
900
1139
|
});
|
|
901
1140
|
|
|
902
|
-
var css$
|
|
1141
|
+
var css$13 = {"uui-typography":"_715x-F","hero-header":"umk8VP","promo-header":"Wc3IgT","uui-critical":"_6aejJw","uui-success":"tdn-Eo","uui-warning":"ttPuHb","uui-typography-size-12":"_5PNCHe","uui-typography-size-14":"cOX4sg","uui-typography-size-16":"Vgi1Mx","root":"Ce4Vuu","mode-form":"iuj5Z6","mode-cell":"glsVfO","mode-inline":"E3QA2X","size-24":"h2Zco-","size-30":"K15-cm","size-36":"hL4JAw","size-42":"XZbGSO","size-48":"Ylt6-B","uuiTypography":"_715x-F","heroHeader":"umk8VP","promoHeader":"Wc3IgT","uuiCritical":"_6aejJw","uuiSuccess":"tdn-Eo","uuiWarning":"ttPuHb","uuiTypographySize12":"_5PNCHe","uuiTypographySize14":"cOX4sg","uuiTypographySize16":"Vgi1Mx","modeForm":"iuj5Z6","modeCell":"glsVfO","modeInline":"E3QA2X","size24":"h2Zco-","size30":"K15-cm","size36":"hL4JAw","size42":"XZbGSO","size48":"Ylt6-B"};
|
|
903
1142
|
|
|
904
|
-
const defaultSize$
|
|
1143
|
+
const defaultSize$4 = '36';
|
|
905
1144
|
const defaultMode$3 = EditMode.FORM;
|
|
906
1145
|
function applyTextAreaMods(mods) {
|
|
907
1146
|
return [
|
|
908
|
-
css$
|
|
1147
|
+
css$13.root, css$13['size-' + (mods.size || defaultSize$4)], css$13['mode-' + (mods.mode || defaultMode$3)],
|
|
909
1148
|
];
|
|
910
1149
|
}
|
|
911
1150
|
const TextArea = withMods(TextArea$1, applyTextAreaMods, (props) => ({
|
|
@@ -913,20 +1152,20 @@ const TextArea = withMods(TextArea$1, applyTextAreaMods, (props) => ({
|
|
|
913
1152
|
maxLength: props.mode === EditMode.CELL ? undefined : props.maxLength,
|
|
914
1153
|
}));
|
|
915
1154
|
|
|
916
|
-
var css$
|
|
1155
|
+
var css$12 = {"root":"vjSXA6"};
|
|
917
1156
|
|
|
918
1157
|
function applyDropdownContainerMods(mods) {
|
|
919
1158
|
return [
|
|
920
|
-
css$
|
|
1159
|
+
css$12.root,
|
|
921
1160
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
922
1161
|
mods.padding && `padding-${mods.padding}`,
|
|
923
1162
|
];
|
|
924
1163
|
}
|
|
925
|
-
const DropdownContainer = withMods(DropdownContainer
|
|
1164
|
+
const DropdownContainer = withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
926
1165
|
|
|
927
|
-
var css$
|
|
1166
|
+
var css$11 = {"root":"_1z5901","icon":"_474N6m","date-input":"fSthI4","dateInput":"fSthI4"};
|
|
928
1167
|
|
|
929
|
-
const TimePickerBody = withMods(TimePickerBody$1, () => [css$
|
|
1168
|
+
const TimePickerBody = withMods(TimePickerBody$1, () => [css$11.root], () => ({ addIcon: ForwardRef$1b, subtractIcon: ForwardRef$1b }));
|
|
930
1169
|
|
|
931
1170
|
dayjs.extend(customParseFormat);
|
|
932
1171
|
const defaultMode$2 = EditMode.FORM;
|
|
@@ -946,7 +1185,7 @@ class TimePicker extends BaseTimePicker {
|
|
|
946
1185
|
});
|
|
947
1186
|
}
|
|
948
1187
|
}
|
|
949
|
-
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$
|
|
1188
|
+
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$11.root, css$11.dateInput, 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 || defaultMode$2, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.input })));
|
|
950
1189
|
};
|
|
951
1190
|
this.renderBody = (props) => {
|
|
952
1191
|
var _a;
|
|
@@ -956,50 +1195,23 @@ class TimePicker extends BaseTimePicker {
|
|
|
956
1195
|
}
|
|
957
1196
|
}
|
|
958
1197
|
|
|
959
|
-
var css$
|
|
1198
|
+
var css$10 = {"root":"BIYkBh"};
|
|
960
1199
|
|
|
961
1200
|
function applyInputAddonMods() {
|
|
962
1201
|
return [
|
|
963
|
-
css$
|
|
1202
|
+
css$10.root,
|
|
964
1203
|
];
|
|
965
1204
|
}
|
|
966
1205
|
const InputAddon = withMods(InputAddon$1, applyInputAddonMods);
|
|
967
1206
|
|
|
968
|
-
var css
|
|
1207
|
+
var css$$ = {"root":"_2FWoQd"};
|
|
969
1208
|
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
975
|
-
width: 18,
|
|
976
|
-
height: 18,
|
|
977
|
-
viewBox: "0 0 18 18",
|
|
978
|
-
ref: ref
|
|
979
|
-
}, props), _path$I || (_path$I = /*#__PURE__*/React.createElement("path", {
|
|
980
|
-
fillRule: "evenodd",
|
|
981
|
-
d: "M11.557 5.558 10.5 4.5 6 9l4.5 4.5 1.057-1.057L8.123 9l3.434-3.442z",
|
|
982
|
-
clipRule: "evenodd"
|
|
983
|
-
})));
|
|
984
|
-
};
|
|
985
|
-
var ForwardRef$J = /*#__PURE__*/forwardRef(SvgNavigationChevronLeft18);
|
|
1209
|
+
function applySliderMods() {
|
|
1210
|
+
return [css$$.root];
|
|
1211
|
+
}
|
|
1212
|
+
const Slider = withMods(Slider$1, applySliderMods);
|
|
986
1213
|
|
|
987
|
-
var
|
|
988
|
-
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); }
|
|
989
|
-
var SvgNavigationChevronRight18 = function SvgNavigationChevronRight18(props, ref) {
|
|
990
|
-
return /*#__PURE__*/React.createElement("svg", _extends$I({
|
|
991
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
992
|
-
width: 18,
|
|
993
|
-
height: 18,
|
|
994
|
-
viewBox: "0 0 18 18",
|
|
995
|
-
ref: ref
|
|
996
|
-
}, props), _path$H || (_path$H = /*#__PURE__*/React.createElement("path", {
|
|
997
|
-
fillRule: "evenodd",
|
|
998
|
-
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",
|
|
999
|
-
clipRule: "evenodd"
|
|
1000
|
-
})));
|
|
1001
|
-
};
|
|
1002
|
-
var ForwardRef$I = /*#__PURE__*/forwardRef(SvgNavigationChevronRight18);
|
|
1214
|
+
var css$_ = {"container":"vRT4Th"};
|
|
1003
1215
|
|
|
1004
1216
|
dayjs.extend(localeData);
|
|
1005
1217
|
const uuiHeader = {
|
|
@@ -1074,21 +1286,21 @@ function DatePickerHeader(props) {
|
|
|
1074
1286
|
var _a, _b, _c;
|
|
1075
1287
|
return `${((_a = props.value) === null || _a === void 0 ? void 0 : _a.view) !== 'MONTH_SELECTION' ? dayjs.months()[(_b = props.value) === null || _b === void 0 ? void 0 : _b.displayedDate.month()] : ''} ${(_c = props.value) === null || _c === void 0 ? void 0 : _c.displayedDate.year()}`;
|
|
1076
1288
|
}, [(_a = props.value) === null || _a === void 0 ? void 0 : _a.view, (_b = props.value) === null || _b === void 0 ? void 0 : _b.displayedDate]);
|
|
1077
|
-
return (React.createElement("div", { className: cx(css$
|
|
1289
|
+
return (React.createElement("div", { className: cx(css$_.container, uuiHeader.container, props.cx) },
|
|
1078
1290
|
React.createElement("header", { className: uuiHeader.header },
|
|
1079
|
-
React.createElement(Button, { icon: props.navIconLeft || ForwardRef$
|
|
1291
|
+
React.createElement(Button, { icon: props.navIconLeft || ForwardRef$M, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: () => onLeftNavigationArrow() }),
|
|
1080
1292
|
React.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: () => onCaptionClick(props.value.view) }),
|
|
1081
|
-
React.createElement(Button, { icon: props.navIconRight || ForwardRef$
|
|
1293
|
+
React.createElement(Button, { icon: props.navIconRight || ForwardRef$L, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: () => onRightNavigationArrow() }))));
|
|
1082
1294
|
}
|
|
1083
1295
|
|
|
1084
|
-
var css$
|
|
1296
|
+
var css$Z = {"uui-typography":"_75FVgp","hero-header":"qzWIhI","promo-header":"_1KKrGN","uui-critical":"XJfyFK","uui-success":"ef-4cF","uui-warning":"Z30Sn-","uui-typography-size-12":"LgkOOE","uui-typography-size-14":"Ey3o6z","uui-typography-size-16":"_8PKcDr","root":"dB9AVm","uuiTypography":"_75FVgp","heroHeader":"qzWIhI","promoHeader":"_1KKrGN","uuiCritical":"XJfyFK","uuiSuccess":"ef-4cF","uuiWarning":"Z30Sn-","uuiTypographySize12":"LgkOOE","uuiTypographySize14":"Ey3o6z","uuiTypographySize16":"_8PKcDr"};
|
|
1085
1297
|
|
|
1086
1298
|
function applyDateSelectionMods() {
|
|
1087
|
-
return [css$
|
|
1299
|
+
return [css$Z.root];
|
|
1088
1300
|
}
|
|
1089
1301
|
const Calendar = withMods(Calendar$1, applyDateSelectionMods);
|
|
1090
1302
|
|
|
1091
|
-
var css$
|
|
1303
|
+
var css$Y = {"uui-typography":"THyeDd","hero-header":"zwAx-r","promo-header":"ckbv64","uui-critical":"krOLsT","uui-success":"N9EzfC","uui-warning":"_4OudPu","uui-typography-size-12":"eSJUpW","uui-typography-size-14":"_7ZI8r3","uui-typography-size-16":"B2sB0-","root":"ou0EZq","uuiTypography":"THyeDd","heroHeader":"zwAx-r","promoHeader":"ckbv64","uuiCritical":"krOLsT","uuiSuccess":"N9EzfC","uuiWarning":"_4OudPu","uuiTypographySize12":"eSJUpW","uuiTypographySize14":"_7ZI8r3","uuiTypographySize16":"B2sB0-"};
|
|
1092
1304
|
|
|
1093
1305
|
dayjs.extend(updateLocale);
|
|
1094
1306
|
const uuiDatePickerBody = {
|
|
@@ -1116,7 +1328,7 @@ class DatePickerBody extends DatePickerBodyBase {
|
|
|
1116
1328
|
}
|
|
1117
1329
|
};
|
|
1118
1330
|
this.renderBody = () => {
|
|
1119
|
-
return (React.createElement("div", { className: cx$1(css$
|
|
1331
|
+
return (React.createElement("div", { className: cx$1(css$Y.root, uuiDatePickerBody.wrapper, this.props.cx) },
|
|
1120
1332
|
React.createElement(DatePickerHeader, { value: this.props.value, onValueChange: (newValue) => this.props.setDisplayedDateAndView(newValue.displayedDate, newValue.view) }),
|
|
1121
1333
|
this.getView()));
|
|
1122
1334
|
};
|
|
@@ -1125,106 +1337,106 @@ class DatePickerBody extends DatePickerBodyBase {
|
|
|
1125
1337
|
}
|
|
1126
1338
|
}
|
|
1127
1339
|
|
|
1128
|
-
var _path$
|
|
1129
|
-
function _extends$
|
|
1340
|
+
var _path$E;
|
|
1341
|
+
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); }
|
|
1130
1342
|
var SvgNotificationCheckCircleFill24 = function SvgNotificationCheckCircleFill24(props, ref) {
|
|
1131
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1343
|
+
return /*#__PURE__*/React.createElement("svg", _extends$F({
|
|
1132
1344
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1133
1345
|
width: 24,
|
|
1134
1346
|
height: 24,
|
|
1135
1347
|
viewBox: "0 0 24 24",
|
|
1136
1348
|
ref: ref
|
|
1137
|
-
}, props), _path$
|
|
1349
|
+
}, props), _path$E || (_path$E = /*#__PURE__*/React.createElement("path", {
|
|
1138
1350
|
fillRule: "evenodd",
|
|
1139
1351
|
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"
|
|
1140
1352
|
})));
|
|
1141
1353
|
};
|
|
1142
|
-
var ForwardRef$
|
|
1354
|
+
var ForwardRef$F = /*#__PURE__*/forwardRef(SvgNotificationCheckCircleFill24);
|
|
1143
1355
|
|
|
1144
|
-
var _path$
|
|
1145
|
-
function _extends$
|
|
1356
|
+
var _path$D;
|
|
1357
|
+
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); }
|
|
1146
1358
|
var SvgNotificationWarningFill24 = function SvgNotificationWarningFill24(props, ref) {
|
|
1147
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1359
|
+
return /*#__PURE__*/React.createElement("svg", _extends$E({
|
|
1148
1360
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1149
1361
|
width: 24,
|
|
1150
1362
|
height: 24,
|
|
1151
1363
|
viewBox: "0 0 24 24",
|
|
1152
1364
|
ref: ref
|
|
1153
|
-
}, props), _path$
|
|
1365
|
+
}, props), _path$D || (_path$D = /*#__PURE__*/React.createElement("path", {
|
|
1154
1366
|
fillRule: "evenodd",
|
|
1155
1367
|
d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
1156
1368
|
})));
|
|
1157
1369
|
};
|
|
1158
|
-
var ForwardRef$
|
|
1370
|
+
var ForwardRef$E = /*#__PURE__*/forwardRef(SvgNotificationWarningFill24);
|
|
1159
1371
|
|
|
1160
|
-
var _path$
|
|
1161
|
-
function _extends$
|
|
1372
|
+
var _path$C;
|
|
1373
|
+
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); }
|
|
1162
1374
|
var SvgNotificationErrorFill24 = function SvgNotificationErrorFill24(props, ref) {
|
|
1163
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1375
|
+
return /*#__PURE__*/React.createElement("svg", _extends$D({
|
|
1164
1376
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1165
1377
|
width: 24,
|
|
1166
1378
|
height: 24,
|
|
1167
1379
|
viewBox: "0 0 24 24",
|
|
1168
1380
|
ref: ref
|
|
1169
|
-
}, props), _path$
|
|
1381
|
+
}, props), _path$C || (_path$C = /*#__PURE__*/React.createElement("path", {
|
|
1170
1382
|
fillRule: "evenodd",
|
|
1171
1383
|
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"
|
|
1172
1384
|
})));
|
|
1173
1385
|
};
|
|
1174
|
-
var ForwardRef$
|
|
1386
|
+
var ForwardRef$D = /*#__PURE__*/forwardRef(SvgNotificationErrorFill24);
|
|
1175
1387
|
|
|
1176
|
-
var _path$
|
|
1177
|
-
function _extends$
|
|
1388
|
+
var _path$B;
|
|
1389
|
+
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); }
|
|
1178
1390
|
var SvgNotificationHelpFill24 = function SvgNotificationHelpFill24(props, ref) {
|
|
1179
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1391
|
+
return /*#__PURE__*/React.createElement("svg", _extends$C({
|
|
1180
1392
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1181
1393
|
width: 24,
|
|
1182
1394
|
height: 24,
|
|
1183
1395
|
viewBox: "0 0 24 24",
|
|
1184
1396
|
ref: ref
|
|
1185
|
-
}, props), _path$
|
|
1397
|
+
}, props), _path$B || (_path$B = /*#__PURE__*/React.createElement("path", {
|
|
1186
1398
|
fillRule: "evenodd",
|
|
1187
1399
|
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"
|
|
1188
1400
|
})));
|
|
1189
1401
|
};
|
|
1190
|
-
var ForwardRef$
|
|
1402
|
+
var ForwardRef$C = /*#__PURE__*/forwardRef(SvgNotificationHelpFill24);
|
|
1191
1403
|
|
|
1192
|
-
var _path$
|
|
1193
|
-
function _extends$
|
|
1404
|
+
var _path$A;
|
|
1405
|
+
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); }
|
|
1194
1406
|
var SvgNavigationClose24$1 = function SvgNavigationClose24(props, ref) {
|
|
1195
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1407
|
+
return /*#__PURE__*/React.createElement("svg", _extends$B({
|
|
1196
1408
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1197
1409
|
width: 24,
|
|
1198
1410
|
height: 24,
|
|
1199
1411
|
viewBox: "0 0 24 24",
|
|
1200
1412
|
ref: ref
|
|
1201
|
-
}, props), _path$
|
|
1413
|
+
}, props), _path$A || (_path$A = /*#__PURE__*/React.createElement("path", {
|
|
1202
1414
|
fillRule: "evenodd",
|
|
1203
1415
|
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"
|
|
1204
1416
|
})));
|
|
1205
1417
|
};
|
|
1206
|
-
var ForwardRef$
|
|
1418
|
+
var ForwardRef$B = /*#__PURE__*/forwardRef(SvgNavigationClose24$1);
|
|
1207
1419
|
|
|
1208
|
-
var css$
|
|
1420
|
+
var css$X = {"root":"hH33Pj","icon-wrapper":"mavA8x","alert-wrapper":"n8pptZ","size-48":"_1tHAyk","size-36":"_2RfS3-","action-wrapper":"_7Ltx-K","action-icon":"MTrWZE","action-link":"ALDYSa","close-icon":"BjPoge","main-path":"_6o9Ay7","content":"AyIbIl","iconWrapper":"mavA8x","alertWrapper":"n8pptZ","size48":"_1tHAyk","size36":"_2RfS3-","actionWrapper":"_7Ltx-K","actionIcon":"MTrWZE","actionLink":"ALDYSa","closeIcon":"BjPoge","mainPath":"_6o9Ay7"};
|
|
1209
1421
|
|
|
1210
|
-
const Alert = React.forwardRef((props, ref) => (React.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx('uui-alert', css$
|
|
1211
|
-
React.createElement("div", { className: css$
|
|
1212
|
-
props.icon && (React.createElement("div", { className: css$
|
|
1213
|
-
React.createElement(IconContainer, { icon: props.icon, cx: css$
|
|
1214
|
-
React.createElement("div", { className: css$
|
|
1422
|
+
const Alert = React.forwardRef((props, ref) => (React.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx('uui-alert', css$X.root, css$X.alertWrapper, props.color && `uui-color-${props.color}`, props.cx, (props.size === '36' ? css$X.size36 : css$X.size48)) }, props.rawProps),
|
|
1423
|
+
React.createElement("div", { className: css$X.mainPath },
|
|
1424
|
+
props.icon && (React.createElement("div", { className: css$X.iconWrapper },
|
|
1425
|
+
React.createElement(IconContainer, { icon: props.icon, cx: css$X.actionIcon }))),
|
|
1426
|
+
React.createElement("div", { className: css$X.content },
|
|
1215
1427
|
props.children,
|
|
1216
|
-
props.actions && (React.createElement("div", { className: css$
|
|
1217
|
-
props.onClose && React.createElement(IconButton, { icon: ForwardRef$
|
|
1218
|
-
const WarningAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1219
|
-
const SuccessAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1220
|
-
const HintAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1221
|
-
const ErrorAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1428
|
+
props.actions && (React.createElement("div", { className: css$X.actionWrapper }, props.actions.map((action) => (React.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$X.actionLink, size: (props === null || props === void 0 ? void 0 : props.size) === '36' ? '24' : '30' })))))),
|
|
1429
|
+
props.onClose && React.createElement(IconButton, { icon: ForwardRef$B, color: "neutral", onClick: props.onClose, cx: css$X.closeIcon })))));
|
|
1430
|
+
const WarningAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$E, color: "warning", ref: ref }, props)));
|
|
1431
|
+
const SuccessAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$F, color: "success", ref: ref }, props)));
|
|
1432
|
+
const HintAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$C, color: "info", ref: ref }, props)));
|
|
1433
|
+
const ErrorAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$D, color: "error", ref: ref }, props)));
|
|
1222
1434
|
|
|
1223
1435
|
function Dropdown(props) {
|
|
1224
1436
|
return React.createElement(Dropdown$1, Object.assign({}, props));
|
|
1225
1437
|
}
|
|
1226
1438
|
|
|
1227
|
-
var css$
|
|
1439
|
+
var css$W = {"uui-typography":"eBtsyJ","hero-header":"xfQ7lA","promo-header":"f0T4Ca","uui-critical":"I2ltwg","uui-success":"yGRBwt","uui-warning":"_55UiLR","uui-typography-size-12":"_0GRghR","uui-typography-size-14":"j0--Mr","uui-typography-size-16":"WrJ-7-","root":"at3Khw","bodyRoot":"kmqdMl","submenuRootItem":"_5xXKgl","iconAfter":"Y1bohr","iconCheck":"eraKq0","splitterRoot":"OT3qAg","splitter":"_4D1E3s","headerRoot":"_5MW-zq","itemRoot":"g0iI46","icon":"_02d-x-","link":"_2h8VmD","indent":"YHo-Ro","uuiTypography":"eBtsyJ","heroHeader":"xfQ7lA","promoHeader":"f0T4Ca","uuiCritical":"I2ltwg","uuiSuccess":"yGRBwt","uuiWarning":"_55UiLR","uuiTypographySize12":"_0GRghR","uuiTypographySize14":"j0--Mr","uuiTypographySize16":"WrJ-7-"};
|
|
1228
1440
|
|
|
1229
1441
|
const icons = systemIcons['36'];
|
|
1230
1442
|
var IDropdownControlKeys;
|
|
@@ -1259,9 +1471,9 @@ function DropdownMenuContainer(props) {
|
|
|
1259
1471
|
props.onClose();
|
|
1260
1472
|
}
|
|
1261
1473
|
};
|
|
1262
|
-
return (React__default.createElement(DropdownContainer, Object.assign({}, props, { rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'menu' }), ref: menuRef, lockProps: { onKeyDown: handleArrowKeys }, cx: css$
|
|
1474
|
+
return (React__default.createElement(DropdownContainer, Object.assign({}, props, { rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'menu' }), ref: menuRef, lockProps: { onKeyDown: handleArrowKeys }, cx: css$W.root })));
|
|
1263
1475
|
}
|
|
1264
|
-
const DropdownMenuBody = withMods(DropdownMenuContainer, () => [css$
|
|
1476
|
+
const DropdownMenuBody = withMods(DropdownMenuContainer, () => [css$W.bodyRoot], (props) => {
|
|
1265
1477
|
const dropdownRawProps = props.minWidth ? Object.assign(Object.assign({}, props.rawProps), { style: { minWidth: `${props.minWidth}px` } }) : null;
|
|
1266
1478
|
return (Object.assign(Object.assign({ closeOnKey: IDropdownControlKeys.ESCAPE }, props), { rawProps: dropdownRawProps || props.rawProps }));
|
|
1267
1479
|
});
|
|
@@ -1285,32 +1497,32 @@ const DropdownMenuButton = React__default.forwardRef((props, ref) => {
|
|
|
1285
1497
|
const getMenuButtonContent = () => {
|
|
1286
1498
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1287
1499
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1288
|
-
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'info' : 'neutral', onClick: onIconClick, cx: cx$1(css$
|
|
1500
|
+
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'info' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$W.root, css$W.icon, iconPosition === 'right' ? css$W.iconAfter : css$W.iconBefore) }));
|
|
1289
1501
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1290
1502
|
isIconBefore && iconElement,
|
|
1291
|
-
React__default.createElement(Text$1, { cx: props.indent && css$
|
|
1503
|
+
React__default.createElement(Text$1, { cx: props.indent && css$W.indent }, caption),
|
|
1292
1504
|
isIconAfter && (React__default.createElement(React__default.Fragment, null,
|
|
1293
1505
|
React__default.createElement(FlexSpacer, null),
|
|
1294
1506
|
iconElement))));
|
|
1295
1507
|
};
|
|
1296
1508
|
const isAnchor = Boolean(link || href);
|
|
1297
|
-
const itemClassNames = cx$1(css$
|
|
1298
|
-
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$
|
|
1509
|
+
const itemClassNames = cx$1(css$W.root, props.cx, css$W.itemRoot, isDisabled && uuiMod.disabled, isActive && uuiMod.active, isOpen && uuiMod.opened);
|
|
1510
|
+
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$W.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isDisabled: isDisabled, forwardedRef: ref, target: target }, getMenuButtonContent())) : (React__default.createElement(FlexRow$1, { rawProps: {
|
|
1299
1511
|
tabIndex: isDisabled ? -1 : 0,
|
|
1300
1512
|
role: 'menuitem',
|
|
1301
1513
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
1302
1514
|
}, cx: itemClassNames, onClick: handleClick, ref: ref },
|
|
1303
1515
|
getMenuButtonContent(),
|
|
1304
|
-
isSelected && React__default.createElement(IconContainer, { icon: icons.accept, cx: cx$1(css$
|
|
1516
|
+
isSelected && React__default.createElement(IconContainer, { icon: icons.accept, cx: cx$1(css$W.root, css$W.selectedCheckmark) })));
|
|
1305
1517
|
});
|
|
1306
1518
|
DropdownMenuButton.displayName = 'DropdownMenuButton';
|
|
1307
1519
|
function DropdownMenuSplitter(props) {
|
|
1308
|
-
return (React__default.createElement("div", { className: cx$1(css$
|
|
1309
|
-
React__default.createElement("hr", { className: css$
|
|
1520
|
+
return (React__default.createElement("div", { className: cx$1(css$W.root, props.cx, css$W.splitterRoot) },
|
|
1521
|
+
React__default.createElement("hr", { className: css$W.splitter })));
|
|
1310
1522
|
}
|
|
1311
1523
|
function DropdownMenuHeader(props) {
|
|
1312
|
-
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', css$
|
|
1313
|
-
React__default.createElement("span", { className: css$
|
|
1524
|
+
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', css$W.root, props.cx, css$W.headerRoot) },
|
|
1525
|
+
React__default.createElement("span", { className: css$W.header }, props.caption)));
|
|
1314
1526
|
}
|
|
1315
1527
|
function DropdownSubMenu(props) {
|
|
1316
1528
|
const subMenuModifiers = [
|
|
@@ -1330,7 +1542,7 @@ function DropdownSubMenu(props) {
|
|
|
1330
1542
|
];
|
|
1331
1543
|
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) => {
|
|
1332
1544
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
1333
|
-
return (React__default.createElement(DropdownMenuButton, Object.assign({ cx: cx$1(css$
|
|
1545
|
+
return (React__default.createElement(DropdownMenuButton, Object.assign({ cx: cx$1(css$W.root, css$W.submenuRootItem), icon: icons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
1334
1546
|
} }));
|
|
1335
1547
|
}
|
|
1336
1548
|
function DropdownMenuSwitchButton(props) {
|
|
@@ -1347,38 +1559,38 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1347
1559
|
onHandleValueChange(!isSelected);
|
|
1348
1560
|
}
|
|
1349
1561
|
};
|
|
1350
|
-
return (React__default.createElement(FlexRow$1, { cx: cx$1(props.cx, css$
|
|
1351
|
-
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$
|
|
1562
|
+
return (React__default.createElement(FlexRow$1, { cx: cx$1(props.cx, css$W.itemRoot, isDisabled && uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
1563
|
+
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$W.iconBefore }),
|
|
1352
1564
|
React__default.createElement(Text$1, null, caption),
|
|
1353
1565
|
React__default.createElement(FlexSpacer, null),
|
|
1354
1566
|
React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1355
1567
|
}
|
|
1356
1568
|
|
|
1357
|
-
var css$
|
|
1569
|
+
var css$V = {"uui-typography":"gukPI5","hero-header":"BS-Wyc","promo-header":"qTbTZv","uui-critical":"WzDJF2","uui-success":"SnQjUC","uui-warning":"xycbUG","uui-typography-size-12":"cxEel-","uui-typography-size-14":"rzlpeS","uui-typography-size-16":"_6rMGj-","root":"ETXhOY","border-bottom":"NL8VeU","top-shadow":"NhZeFB","size-24":"GUQsTD","size-30":"WPpbTz","size-36":"xXKtAe","size-42":"_6DqH5J","size-48":"_7AKUXM","padding-6":"uJfJsj","padding-12":"_8cASub","padding-18":"kHJhfx","padding-24":"_6BaAcc","margin-24":"-nCtma","margin-12":"cgsaKa","vPadding-12":"HiMKb3","vPadding-18":"x1fMzN","vPadding-24":"zLwcAJ","vPadding-36":"-T7r9k","vPadding-48":"WCarRH","spacing-6":"Q8iR1G","spacing-12":"_6jnx7q","spacing-18":"TQOfRE","uuiTypography":"gukPI5","heroHeader":"BS-Wyc","promoHeader":"qTbTZv","uuiCritical":"WzDJF2","uuiSuccess":"SnQjUC","uuiWarning":"xycbUG","uuiTypographySize12":"cxEel-","uuiTypographySize14":"rzlpeS","uuiTypographySize16":"_6rMGj-","borderBottom":"NL8VeU","topShadow":"NhZeFB","size24":"GUQsTD","size30":"WPpbTz","size36":"xXKtAe","size42":"_6DqH5J","size48":"_7AKUXM","padding6":"uJfJsj","padding12":"_8cASub","padding18":"kHJhfx","padding24":"_6BaAcc","margin24":"-nCtma","margin12":"cgsaKa","vPadding12":"HiMKb3","vPadding18":"x1fMzN","vPadding24":"zLwcAJ","vPadding36":"-T7r9k","vPadding48":"WCarRH","spacing6":"Q8iR1G","spacing12":"_6jnx7q","spacing18":"TQOfRE"};
|
|
1358
1570
|
|
|
1359
|
-
const FlexCell = withMods(FlexCell$1, () => [css$
|
|
1571
|
+
const FlexCell = withMods(FlexCell$1, () => [css$V.flexCell]);
|
|
1360
1572
|
|
|
1361
1573
|
const FlexRow = withMods(FlexRow$1, (props) => {
|
|
1362
1574
|
return [
|
|
1363
|
-
css$
|
|
1364
|
-
props.size !== null && css$
|
|
1365
|
-
props.padding && css$
|
|
1366
|
-
props.vPadding && css$
|
|
1367
|
-
props.margin && css$
|
|
1368
|
-
props.topShadow && css$
|
|
1369
|
-
props.borderBottom && css$
|
|
1370
|
-
props.spacing && css$
|
|
1575
|
+
css$V.root,
|
|
1576
|
+
props.size !== null && css$V['size-' + (props.size || '36')],
|
|
1577
|
+
props.padding && css$V['padding-' + props.padding],
|
|
1578
|
+
props.vPadding && css$V['vPadding-' + props.vPadding],
|
|
1579
|
+
props.margin && css$V['margin-' + props.margin],
|
|
1580
|
+
props.topShadow && css$V.topShadow,
|
|
1581
|
+
props.borderBottom && css$V.borderBottom,
|
|
1582
|
+
props.spacing && css$V['spacing-' + props.spacing],
|
|
1371
1583
|
props.background && `uui-color-${props.background}`,
|
|
1372
1584
|
];
|
|
1373
1585
|
});
|
|
1374
1586
|
|
|
1375
|
-
var css$
|
|
1587
|
+
var css$U = {"root":"gAacU6","margin-24":"aZBTiV","padding-12":"ljZW-v","padding-24":"fq5PlF","shadow":"NAxBEY","margin24":"aZBTiV","padding12":"ljZW-v","padding24":"fq5PlF"};
|
|
1376
1588
|
|
|
1377
1589
|
const Panel = withMods(VPanel, (props) => [
|
|
1378
1590
|
'uui-panel',
|
|
1379
|
-
css$
|
|
1380
|
-
props.shadow && css$
|
|
1381
|
-
props.margin && css$
|
|
1591
|
+
css$U.root,
|
|
1592
|
+
props.shadow && css$U.shadow,
|
|
1593
|
+
props.margin && css$U['margin-' + props.margin],
|
|
1382
1594
|
props.background && `uui-color-${props.background}`,
|
|
1383
1595
|
]);
|
|
1384
1596
|
|
|
@@ -1471,43 +1683,43 @@ const i18n = Object.assign(Object.assign({}, i18n$2), { dataPickerBody: {
|
|
|
1471
1683
|
fileSizeProgress: ' of ',
|
|
1472
1684
|
} });
|
|
1473
1685
|
|
|
1474
|
-
var css$
|
|
1686
|
+
var css$T = {"root":"RGpAzR","mode-block":"Yy-seD","mode-inline":"bCXVqO","padding-0":"R4XLj-","padding-6":"_5OIi4H","padding-12":"i7pBII","padding-18":"RzDCHj","modeBlock":"Yy-seD","modeInline":"bCXVqO","padding0":"R4XLj-","padding6":"_5OIi4H","padding12":"i7pBII","padding18":"RzDCHj"};
|
|
1475
1687
|
|
|
1476
1688
|
function applyAccordionMods(mods) {
|
|
1477
1689
|
return [
|
|
1478
|
-
css$
|
|
1479
|
-
css$
|
|
1480
|
-
mods.padding && css$
|
|
1690
|
+
css$T.root,
|
|
1691
|
+
css$T['mode-' + (mods.mode || 'block')],
|
|
1692
|
+
mods.padding && css$T['padding-' + mods.padding],
|
|
1481
1693
|
];
|
|
1482
1694
|
}
|
|
1483
|
-
const Accordion = withMods(Accordion
|
|
1695
|
+
const Accordion = withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
1484
1696
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons[mods.mode === 'block' ? '60' : '30'].foldingArrow,
|
|
1485
1697
|
}));
|
|
1486
1698
|
|
|
1487
|
-
var css
|
|
1699
|
+
var css$S = {"root":"Ov808D"};
|
|
1488
1700
|
|
|
1489
1701
|
function applyTooltipMods(mods) {
|
|
1490
1702
|
return [
|
|
1491
|
-
css
|
|
1703
|
+
css$S.root,
|
|
1492
1704
|
`uui-color-${mods.color || 'contrast'}`,
|
|
1493
1705
|
];
|
|
1494
1706
|
}
|
|
1495
1707
|
const Tooltip = withMods(Tooltip$1, applyTooltipMods);
|
|
1496
1708
|
|
|
1497
|
-
var css$
|
|
1709
|
+
var css$R = {"uui-typography":"-ZCZd-","hero-header":"FbJA7S","promo-header":"yBgN2t","uui-critical":"TOKj7X","uui-success":"PNLuuV","uui-warning":"uTQ5-u","uui-typography-size-12":"uBMO-v","uui-typography-size-14":"_76lwLc","uui-typography-size-16":"_01PmI3","root":"-qFU00","size-24":"dYxt-6","size-30":"haBt-5","size-36":"t6Sy-t","size-42":"aOSnFA","size-48":"nLYo7J","uuiTypography":"-ZCZd-","heroHeader":"FbJA7S","promoHeader":"yBgN2t","uuiCritical":"TOKj7X","uuiSuccess":"PNLuuV","uuiWarning":"uTQ5-u","uuiTypographySize12":"uBMO-v","uuiTypographySize14":"_76lwLc","uuiTypographySize16":"_01PmI3","size24":"dYxt-6","size30":"haBt-5","size36":"t6Sy-t","size42":"aOSnFA","size48":"nLYo7J"};
|
|
1498
1710
|
|
|
1499
|
-
const defaultSize$
|
|
1711
|
+
const defaultSize$3 = '36';
|
|
1500
1712
|
function applyLabeledInputMods(mods) {
|
|
1501
|
-
return [css$
|
|
1713
|
+
return [css$R.root, css$R['size-' + (mods.size || defaultSize$3)]];
|
|
1502
1714
|
}
|
|
1503
|
-
const LabeledInput = withMods(LabeledInput
|
|
1715
|
+
const LabeledInput = withMods(uuiComponents.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1504
1716
|
Tooltip,
|
|
1505
|
-
infoIcon: systemIcons[props.size || defaultSize$
|
|
1717
|
+
infoIcon: systemIcons[props.size || defaultSize$3].help,
|
|
1506
1718
|
}));
|
|
1507
1719
|
|
|
1508
|
-
var css$
|
|
1720
|
+
var css$Q = {"root":"lYA1x5"};
|
|
1509
1721
|
|
|
1510
|
-
const RadioGroup = withMods(RadioGroup$1, () => [css$
|
|
1722
|
+
const RadioGroup = withMods(RadioGroup$1, () => [css$Q.root], () => ({ RadioInput }));
|
|
1511
1723
|
|
|
1512
1724
|
function applyScrollBarsMods() {
|
|
1513
1725
|
return [
|
|
@@ -1516,51 +1728,75 @@ function applyScrollBarsMods() {
|
|
|
1516
1728
|
}
|
|
1517
1729
|
const ScrollBars = withMods(ScrollBars$1, applyScrollBarsMods);
|
|
1518
1730
|
|
|
1519
|
-
|
|
1731
|
+
var css$P = {"scroll-container":"F5k5Hp","list-container":"CJK86n","scrollContainer":"F5k5Hp","listContainer":"CJK86n"};
|
|
1520
1732
|
|
|
1521
|
-
var css$
|
|
1733
|
+
var css$O = {"root":"QhmkGn"};
|
|
1522
1734
|
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
function applySpinnerMods() {
|
|
1526
|
-
return [css$X.root, 'uui-spinner'];
|
|
1527
|
-
}
|
|
1528
|
-
const Spinner = withMods(Spinner$1, applySpinnerMods);
|
|
1735
|
+
const Blocker = withMods(Blocker$1, () => [css$O.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__default.createElement(Spinner, null)) }));
|
|
1529
1736
|
|
|
1530
|
-
const
|
|
1737
|
+
const VirtualList = React.forwardRef((props, ref) => {
|
|
1738
|
+
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = useVirtualList({
|
|
1739
|
+
value: props.value,
|
|
1740
|
+
onValueChange: props.onValueChange,
|
|
1741
|
+
onScroll: props.onScroll,
|
|
1742
|
+
rowsCount: props.rowsCount,
|
|
1743
|
+
rowsSelector: props.rowsSelector,
|
|
1744
|
+
});
|
|
1745
|
+
React.useImperativeHandle(ref, () => scrollContainerRef.current, [scrollContainerRef.current]);
|
|
1746
|
+
const scrollShadows = useScrollShadows({ root: scrollContainerRef.current });
|
|
1747
|
+
const renderRows = () => {
|
|
1748
|
+
var _a;
|
|
1749
|
+
return ((_a = props.renderRows) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
1750
|
+
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1751
|
+
})) || (React.createElement("div", { className: css$P.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1752
|
+
React.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1753
|
+
};
|
|
1754
|
+
const scrollBarsRef = React.useCallback((scrollbars) => {
|
|
1755
|
+
var _a;
|
|
1756
|
+
if (!((_a = scrollbars === null || scrollbars === void 0 ? void 0 : scrollbars.container) === null || _a === void 0 ? void 0 : _a.firstChild))
|
|
1757
|
+
return;
|
|
1758
|
+
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1759
|
+
}, []);
|
|
1760
|
+
return (React.createElement(ScrollBars, { cx: cx$1(css$P.scrollContainer, props.cx, {
|
|
1761
|
+
[uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1762
|
+
[uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1763
|
+
[uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
1764
|
+
[uuiMarkers.scrolledBottom]: scrollShadows.verticalBottom,
|
|
1765
|
+
}), onScroll: handleScroll, renderView: ({ style }) => React.createElement(VirtualListView, { isLoading: props.isLoading, style: style }), ref: scrollBarsRef }, renderRows()));
|
|
1766
|
+
});
|
|
1767
|
+
const VirtualListView = React.forwardRef((props, ref) => {
|
|
1768
|
+
return (React.createElement(React.Fragment, null,
|
|
1769
|
+
React.createElement("div", Object.assign({}, props.rawProps, { style: Object.assign(Object.assign({}, props.style), { position: 'relative', flex: '1 1 auto', display: 'flex', flexDirection: 'column', overflow: props.isLoading ? 'hidden' : 'scroll', marginRight: props.isLoading ? 0 : props.style.marginRight, marginBottom: props.isLoading ? 0 : props.style.marginBottom }), ref: ref }), props.children),
|
|
1770
|
+
React.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
1771
|
+
});
|
|
1772
|
+
VirtualList.displayName = 'VirtualList';
|
|
1531
1773
|
|
|
1532
|
-
var css$
|
|
1774
|
+
var css$N = {"root":"PHGe32"};
|
|
1533
1775
|
|
|
1534
|
-
const CheckboxGroup = withMods(CheckboxGroup$1, () => [css$
|
|
1776
|
+
const CheckboxGroup = withMods(CheckboxGroup$1, () => [css$N.root], () => ({ CheckboxInput: Checkbox }));
|
|
1535
1777
|
|
|
1536
|
-
var css$
|
|
1778
|
+
var css$M = {"uui-typography":"CcJUEM","hero-header":"sW2C9A","promo-header":"K8BvX8","uui-critical":"CNgxgM","uui-success":"U5-zAZ","uui-warning":"LgL-f5","uui-typography-size-12":"N-tuF7","uui-typography-size-14":"DMxONi","uui-typography-size-16":"fqGVbF","body":"PaMsU9","modal":"rar-ps","search-wrapper":"CCuVGA","checkbox":"Yy4qtl","no-found-size-24":"yMc3EV","no-found-size-30":"qNoKon","no-found-size-36":"UYvZLA","no-found-size-42":"CfyGGE","uuiTypography":"CcJUEM","heroHeader":"sW2C9A","promoHeader":"K8BvX8","uuiCritical":"CNgxgM","uuiSuccess":"U5-zAZ","uuiWarning":"LgL-f5","uuiTypographySize12":"N-tuF7","uuiTypographySize14":"DMxONi","uuiTypographySize16":"fqGVbF","searchWrapper":"CCuVGA","noFoundSize24":"yMc3EV","noFoundSize30":"qNoKon","noFoundSize36":"UYvZLA","noFoundSize42":"CfyGGE"};
|
|
1537
1779
|
|
|
1538
1780
|
class DataPickerBody extends PickerBodyBase {
|
|
1539
1781
|
constructor() {
|
|
1540
1782
|
super(...arguments);
|
|
1541
1783
|
this.lens = Lens.onEditableComponent(this);
|
|
1542
1784
|
this.searchLens = this.lens.prop('search');
|
|
1543
|
-
this.renderRowsContainer = ({ listContainerRef, estimatedHeight, offsetY }) => {
|
|
1544
|
-
return (React__default.createElement(React__default.Fragment, null,
|
|
1545
|
-
React__default.createElement("div", { className: css$V.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1546
|
-
React__default.createElement("div", { ref: listContainerRef, role: "listbox", style: { marginTop: offsetY } }, this.props.rows)),
|
|
1547
|
-
React__default.createElement(Blocker, { isEnabled: this.props.isReloading })));
|
|
1548
|
-
};
|
|
1549
1785
|
}
|
|
1550
1786
|
renderNotFound() {
|
|
1551
1787
|
if (this.props.renderNotFound) {
|
|
1552
1788
|
return this.props.renderNotFound();
|
|
1553
1789
|
}
|
|
1554
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
1790
|
+
return (React__default.createElement(FlexCell$1, { cx: css$M[`no-found-size-${this.props.searchSize || 36}`], grow: 1, textAlign: "center" },
|
|
1555
1791
|
React__default.createElement(Text, { size: this.props.searchSize || '36' }, i18n.dataPickerBody.noRecordsMessage)));
|
|
1556
1792
|
}
|
|
1557
1793
|
render() {
|
|
1558
1794
|
const searchSize = isMobile() ? '48' : this.props.searchSize || '36';
|
|
1559
1795
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1560
|
-
this.showSearch() && (React__default.createElement("div", { key: "search", className: css$
|
|
1796
|
+
this.showSearch() && (React__default.createElement("div", { key: "search", className: css$M.searchWrapper },
|
|
1561
1797
|
React__default.createElement(FlexCell$1, { grow: 1 },
|
|
1562
1798
|
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 }))))),
|
|
1563
|
-
React__default.createElement(FlexRow, { key: "body", cx: cx$1(css$
|
|
1799
|
+
React__default.createElement(FlexRow, { key: "body", cx: cx$1(css$M.body, css$M[this.props.editMode], css$M[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight } } }, 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()))));
|
|
1564
1800
|
}
|
|
1565
1801
|
}
|
|
1566
1802
|
|
|
@@ -1594,64 +1830,64 @@ function DataPickerFooterImpl(props) {
|
|
|
1594
1830
|
}
|
|
1595
1831
|
const DataPickerFooter = React__default.memo(DataPickerFooterImpl);
|
|
1596
1832
|
|
|
1597
|
-
var css$
|
|
1833
|
+
var css$L = {"header":"K9dJGL","close":"uPysLT"};
|
|
1598
1834
|
|
|
1599
|
-
var _path$
|
|
1600
|
-
function _extends$
|
|
1835
|
+
var _path$z;
|
|
1836
|
+
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); }
|
|
1601
1837
|
var SvgNavigationClose24 = function SvgNavigationClose24(props, ref) {
|
|
1602
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1838
|
+
return /*#__PURE__*/React.createElement("svg", _extends$A({
|
|
1603
1839
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1604
1840
|
width: 24,
|
|
1605
1841
|
height: 24,
|
|
1606
1842
|
viewBox: "0 0 24 24",
|
|
1607
1843
|
ref: ref
|
|
1608
|
-
}, props), _path$
|
|
1844
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React.createElement("path", {
|
|
1609
1845
|
fillRule: "evenodd",
|
|
1610
1846
|
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 12 19 6.41z",
|
|
1611
1847
|
clipRule: "evenodd"
|
|
1612
1848
|
})));
|
|
1613
1849
|
};
|
|
1614
|
-
var ForwardRef$
|
|
1850
|
+
var ForwardRef$A = /*#__PURE__*/forwardRef(SvgNavigationClose24);
|
|
1615
1851
|
|
|
1616
1852
|
const DataPickerHeaderImpl = (props) => {
|
|
1617
1853
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
1618
|
-
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$
|
|
1854
|
+
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$L.header },
|
|
1619
1855
|
React__default.createElement(Text, { size: "48", font: "semibold" }, title),
|
|
1620
|
-
React__default.createElement(IconButton, { icon: ForwardRef$
|
|
1856
|
+
React__default.createElement(IconButton, { icon: ForwardRef$A, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$L.close })));
|
|
1621
1857
|
};
|
|
1622
1858
|
const DataPickerHeader = React__default.memo(DataPickerHeaderImpl);
|
|
1623
1859
|
|
|
1624
|
-
var _path$
|
|
1625
|
-
function _extends$
|
|
1860
|
+
var _path$y;
|
|
1861
|
+
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); }
|
|
1626
1862
|
var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref) {
|
|
1627
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1863
|
+
return /*#__PURE__*/React.createElement("svg", _extends$z({
|
|
1628
1864
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1629
1865
|
width: 18,
|
|
1630
1866
|
height: 18,
|
|
1631
1867
|
viewBox: "0 0 18 18",
|
|
1632
1868
|
ref: ref
|
|
1633
|
-
}, props), _path$
|
|
1869
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
|
|
1634
1870
|
fillRule: "evenodd",
|
|
1635
1871
|
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",
|
|
1636
1872
|
clipRule: "evenodd"
|
|
1637
1873
|
})));
|
|
1638
1874
|
};
|
|
1639
|
-
var ForwardRef$
|
|
1875
|
+
var ForwardRef$z = /*#__PURE__*/forwardRef(SvgNavigationChevronDown18);
|
|
1640
1876
|
|
|
1641
|
-
var css$
|
|
1877
|
+
var css$K = {"cell":"P4X6-0","wrapper":"FQCCcw","align-widgets-top":"LdbiF4","size-24":"QNbjhK","folding-arrow":"RbCwvA","size-30":"UI-1HN","size-36":"AbgWx8","size-42":"FRvmI7","size-48":"-V0-dR","size-60":"m8XPtP","align-widgets-center":"Trsw9-","padding-12":"wUwbTn","padding-24":"BbMKgU","padding-left-12":"soTF-9","padding-left-24":"kNijPu","padding-right-24":"pUGE7e","drag-handle":"yOoRDp","checkbox":"_83Q-W0","indent":"HtQwnk","folding-arrow-12":"YJD3FZ","folding-arrow-18":"ZrasWF","icon-container":"eIbDdJ","loading-cell":"_6-BCg3","alignWidgetsTop":"LdbiF4","size24":"QNbjhK","foldingArrow":"RbCwvA","size30":"UI-1HN","size36":"AbgWx8","size42":"FRvmI7","size48":"-V0-dR","size60":"m8XPtP","alignWidgetsCenter":"Trsw9-","padding12":"wUwbTn","padding24":"BbMKgU","paddingLeft12":"soTF-9","paddingLeft24":"kNijPu","paddingRight24":"pUGE7e","dragHandle":"yOoRDp","foldingArrow12":"YJD3FZ","foldingArrow18":"ZrasWF","iconContainer":"eIbDdJ","loadingCell":"_6-BCg3"};
|
|
1642
1878
|
|
|
1643
1879
|
function DataTableRowAddons(props) {
|
|
1644
1880
|
var _a, _b;
|
|
1645
1881
|
const row = props.rowProps;
|
|
1646
1882
|
const additionalItemSize = +props.size < 30 ? '12' : '18';
|
|
1647
1883
|
return (React.createElement(React.Fragment, null,
|
|
1648
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React.createElement(DragHandle, { key: "dh", cx: css$
|
|
1649
|
-
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React.createElement(Checkbox, { key: "cb", cx: css$
|
|
1650
|
-
row.indent > 0 && (React.createElement("div", { key: "fold", className: css$
|
|
1884
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React.createElement(DragHandle, { key: "dh", cx: css$K.dragHandle }),
|
|
1885
|
+
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React.createElement(Checkbox, { key: "cb", cx: css$K.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 })),
|
|
1886
|
+
row.indent > 0 && (React.createElement("div", { key: "fold", className: css$K.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable && (React.createElement(IconContainer, { rawProps: {
|
|
1651
1887
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1652
1888
|
role: 'button',
|
|
1653
|
-
}, key: "icon", icon: ForwardRef$
|
|
1654
|
-
css$
|
|
1889
|
+
}, key: "icon", icon: ForwardRef$z, cx: [
|
|
1890
|
+
css$K.foldingArrow, css$K[`folding-arrow-${additionalItemSize}`], uuiMarkers.clickable, css$K.iconContainer,
|
|
1655
1891
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))))));
|
|
1656
1892
|
}
|
|
1657
1893
|
function DataTableCell(props) {
|
|
@@ -1662,7 +1898,7 @@ function DataTableCell(props) {
|
|
|
1662
1898
|
props.renderPlaceholder = props.renderPlaceholder
|
|
1663
1899
|
|| (() => (
|
|
1664
1900
|
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
1665
|
-
React.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48', cx: css$
|
|
1901
|
+
React.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48', cx: css$K.loadingCell },
|
|
1666
1902
|
React.createElement(TextPlaceholder, null))));
|
|
1667
1903
|
props.renderUnknown = props.renderUnknown
|
|
1668
1904
|
|| (() => (React.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48' }, "Unknown")));
|
|
@@ -1672,67 +1908,67 @@ function DataTableCell(props) {
|
|
|
1672
1908
|
'uui-dt-vars',
|
|
1673
1909
|
'data-table-cell',
|
|
1674
1910
|
props.cx,
|
|
1675
|
-
css$
|
|
1676
|
-
css$
|
|
1677
|
-
css$
|
|
1678
|
-
props.isFirstColumn && css$
|
|
1679
|
-
props.isLastColumn && css$
|
|
1680
|
-
css$
|
|
1911
|
+
css$K.cell,
|
|
1912
|
+
css$K['size-' + (props.size || '36')],
|
|
1913
|
+
css$K[`padding-${props.padding || (isEditable && !props.rowProps.isLoading && '0') || '12'}`],
|
|
1914
|
+
props.isFirstColumn && css$K[`padding-left-${props.padding || (isEditable && !props.rowProps.isLoading && '12') || '24'}`],
|
|
1915
|
+
props.isLastColumn && css$K['padding-right-24'],
|
|
1916
|
+
css$K[`align-widgets-${props.alignActions || 'top'}`],
|
|
1681
1917
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
1682
1918
|
];
|
|
1683
1919
|
return React.createElement(DataTableCell$1, Object.assign({}, props));
|
|
1684
1920
|
}
|
|
1685
1921
|
|
|
1686
|
-
var _path$
|
|
1687
|
-
function _extends$
|
|
1922
|
+
var _path$x;
|
|
1923
|
+
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); }
|
|
1688
1924
|
var SvgNotificationDone24 = function SvgNotificationDone24(props, ref) {
|
|
1689
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1925
|
+
return /*#__PURE__*/React.createElement("svg", _extends$y({
|
|
1690
1926
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1691
1927
|
width: 24,
|
|
1692
1928
|
height: 24,
|
|
1693
1929
|
viewBox: "0 0 24 24",
|
|
1694
1930
|
ref: ref
|
|
1695
|
-
}, props), _path$
|
|
1931
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
|
|
1696
1932
|
fillRule: "evenodd",
|
|
1697
1933
|
d: "m9.727 16.075-4.295-4.388L4 13.149 9.727 19 22 6.463 20.568 5 9.728 16.075z",
|
|
1698
1934
|
clipRule: "evenodd"
|
|
1699
1935
|
})));
|
|
1700
1936
|
};
|
|
1701
|
-
var ForwardRef$
|
|
1937
|
+
var ForwardRef$y = /*#__PURE__*/forwardRef(SvgNotificationDone24);
|
|
1702
1938
|
|
|
1703
|
-
var _path$
|
|
1704
|
-
function _extends$
|
|
1939
|
+
var _path$w;
|
|
1940
|
+
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); }
|
|
1705
1941
|
var SvgNotificationDone18 = function SvgNotificationDone18(props, ref) {
|
|
1706
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1942
|
+
return /*#__PURE__*/React.createElement("svg", _extends$x({
|
|
1707
1943
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1708
1944
|
width: 18,
|
|
1709
1945
|
height: 18,
|
|
1710
1946
|
viewBox: "0 0 18 18",
|
|
1711
1947
|
ref: ref
|
|
1712
|
-
}, props), _path$
|
|
1948
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
|
|
1713
1949
|
fillRule: "evenodd",
|
|
1714
1950
|
d: "M7.136 11.91 4.034 8.776 3 9.821 7.136 14 16 5.045 14.966 4l-7.83 7.91z",
|
|
1715
1951
|
clipRule: "evenodd"
|
|
1716
1952
|
})));
|
|
1717
1953
|
};
|
|
1718
|
-
var ForwardRef$
|
|
1954
|
+
var ForwardRef$x = /*#__PURE__*/forwardRef(SvgNotificationDone18);
|
|
1719
1955
|
|
|
1720
|
-
var _path$
|
|
1721
|
-
function _extends$
|
|
1956
|
+
var _path$v;
|
|
1957
|
+
function _extends$w() { _extends$w = 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$w.apply(this, arguments); }
|
|
1722
1958
|
var SvgNotificationDone12 = function SvgNotificationDone12(props, ref) {
|
|
1723
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1959
|
+
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
1724
1960
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1725
1961
|
width: 12,
|
|
1726
1962
|
height: 12,
|
|
1727
1963
|
viewBox: "0 0 12 12",
|
|
1728
1964
|
ref: ref
|
|
1729
|
-
}, props), _path$
|
|
1965
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
|
|
1730
1966
|
d: "M11 3.6 9.462 2 4.846 6.8 2.538 4.4 1 6l3.846 4L11 3.6z"
|
|
1731
1967
|
})));
|
|
1732
1968
|
};
|
|
1733
|
-
var ForwardRef$
|
|
1969
|
+
var ForwardRef$w = /*#__PURE__*/forwardRef(SvgNotificationDone12);
|
|
1734
1970
|
|
|
1735
|
-
var css$
|
|
1971
|
+
var css$J = {"uui-typography":"rZJwh2","hero-header":"DBbf57","promo-header":"IKnvOY","uui-critical":"apQM8G","uui-success":"dHF5nl","uui-warning":"GlwlhS","uui-typography-size-12":"jfeql1","uui-typography-size-14":"ZNFM5w","uui-typography-size-16":"komUri","render-item":"XOVaaH","icon-wrapper":"lEw-ee","picker-row":"_63E29s","icon-default":"cf4ps3","icon-primary":"Ith4d5","uuiTypography":"rZJwh2","heroHeader":"DBbf57","promoHeader":"IKnvOY","uuiCritical":"apQM8G","uuiSuccess":"dHF5nl","uuiWarning":"GlwlhS","uuiTypographySize12":"jfeql1","uuiTypographySize14":"ZNFM5w","uuiTypographySize16":"komUri","renderItem":"XOVaaH","iconWrapper":"lEw-ee","pickerRow":"_63E29s","iconDefault":"cf4ps3","iconPrimary":"Ith4d5"};
|
|
1736
1972
|
|
|
1737
1973
|
class DataPickerRow extends React.Component {
|
|
1738
1974
|
constructor() {
|
|
@@ -1740,26 +1976,26 @@ class DataPickerRow extends React.Component {
|
|
|
1740
1976
|
this.getIcon = (size) => {
|
|
1741
1977
|
switch (size) {
|
|
1742
1978
|
case '24':
|
|
1743
|
-
return ForwardRef$
|
|
1979
|
+
return ForwardRef$w;
|
|
1744
1980
|
case '30':
|
|
1745
|
-
return ForwardRef$
|
|
1981
|
+
return ForwardRef$x;
|
|
1746
1982
|
case '36':
|
|
1747
|
-
return ForwardRef$
|
|
1983
|
+
return ForwardRef$x;
|
|
1748
1984
|
case '42':
|
|
1749
|
-
return ForwardRef$
|
|
1985
|
+
return ForwardRef$y;
|
|
1750
1986
|
default:
|
|
1751
|
-
return ForwardRef$
|
|
1987
|
+
return ForwardRef$x;
|
|
1752
1988
|
}
|
|
1753
1989
|
};
|
|
1754
1990
|
this.column = {
|
|
1755
1991
|
key: 'name',
|
|
1756
1992
|
grow: 1,
|
|
1757
1993
|
width: 0,
|
|
1758
|
-
render: (item, rowProps) => (React.createElement("div", { key: rowProps.id, className: css$
|
|
1994
|
+
render: (item, rowProps) => (React.createElement("div", { key: rowProps.id, className: css$J.renderItem },
|
|
1759
1995
|
this.props.renderItem(item, rowProps),
|
|
1760
1996
|
React.createElement(FlexSpacer, null),
|
|
1761
|
-
(rowProps.isChildrenSelected || rowProps.isSelected) && (React.createElement("div", { className: css$
|
|
1762
|
-
React.createElement(IconContainer, { icon: this.getIcon(this.props.size), cx: rowProps.isChildrenSelected ? css$
|
|
1997
|
+
(rowProps.isChildrenSelected || rowProps.isSelected) && (React.createElement("div", { className: css$J.iconWrapper },
|
|
1998
|
+
React.createElement(IconContainer, { icon: this.getIcon(this.props.size), cx: rowProps.isChildrenSelected ? css$J.iconDefault : css$J.iconPrimary, rawProps: { 'aria-label': rowProps.isChildrenSelected
|
|
1763
1999
|
? 'Child is selected'
|
|
1764
2000
|
: 'Selected' } }))))),
|
|
1765
2001
|
};
|
|
@@ -1768,31 +2004,31 @@ class DataPickerRow extends React.Component {
|
|
|
1768
2004
|
};
|
|
1769
2005
|
}
|
|
1770
2006
|
render() {
|
|
1771
|
-
return React.createElement(DataPickerRow$1, Object.assign({}, this.props, { cx: [css$
|
|
2007
|
+
return React.createElement(DataPickerRow$1, Object.assign({}, this.props, { cx: [css$J.pickerRow, this.props.cx], renderContent: this.renderContent }));
|
|
1772
2008
|
}
|
|
1773
2009
|
}
|
|
1774
2010
|
|
|
1775
|
-
var css$
|
|
2011
|
+
var css$I = {"uui-typography":"_9qNf2Q","hero-header":"XKxME7","promo-header":"c7VCDM","uui-critical":"bU4FWu","uui-success":"-JUWAS","uui-warning":"LqvTxa","uui-typography-size-12":"wcRLHM","uui-typography-size-14":"PQRQoH","uui-typography-size-16":"_29wwWE","done":"E5WUzg","container":"vs-6iP","uuiTypography":"_9qNf2Q","heroHeader":"XKxME7","promoHeader":"c7VCDM","uuiCritical":"bU4FWu","uuiSuccess":"-JUWAS","uuiWarning":"LqvTxa","uuiTypographySize12":"wcRLHM","uuiTypographySize14":"PQRQoH","uuiTypographySize16":"_29wwWE"};
|
|
1776
2012
|
|
|
1777
2013
|
const MobileDropdownWrapper = (props) => {
|
|
1778
2014
|
const isMobileView = isMobile();
|
|
1779
|
-
return (React__default.createElement(DropdownContainer, Object.assign({}, props, { cx: [css$
|
|
2015
|
+
return (React__default.createElement(DropdownContainer, Object.assign({}, props, { cx: [css$I.container, props.cx], rawProps: props.rawProps, onKeyDown: props.onKeyDown, focusLock: props.focusLock, width: props.width }),
|
|
1780
2016
|
isMobileView && React__default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
|
|
1781
2017
|
props.children,
|
|
1782
|
-
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$
|
|
2018
|
+
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$I.done, size: "48" })));
|
|
1783
2019
|
};
|
|
1784
2020
|
|
|
1785
|
-
var _path$
|
|
1786
|
-
function _extends$
|
|
2021
|
+
var _path$u, _path2$1;
|
|
2022
|
+
function _extends$v() { _extends$v = 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$v.apply(this, arguments); }
|
|
1787
2023
|
var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
1788
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
2024
|
+
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
1789
2025
|
width: 66,
|
|
1790
2026
|
height: 67,
|
|
1791
2027
|
viewBox: "0 0 66 67",
|
|
1792
2028
|
fill: "none",
|
|
1793
2029
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1794
2030
|
ref: ref
|
|
1795
|
-
}, props), _path$
|
|
2031
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
|
|
1796
2032
|
d: "M0 33.5C0 15.275 14.775.5 33 .5s33 14.775 33 33-14.775 33-33 33-33-14.775-33-33Z",
|
|
1797
2033
|
fill: "#EBEDF5"
|
|
1798
2034
|
})), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -1802,9 +2038,9 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
1802
2038
|
fill: "#6C6F80"
|
|
1803
2039
|
})));
|
|
1804
2040
|
};
|
|
1805
|
-
var ForwardRef$
|
|
2041
|
+
var ForwardRef$v = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
|
|
1806
2042
|
|
|
1807
|
-
var css$
|
|
2043
|
+
var css$H = {"uui-typography":"Ur5MiI","hero-header":"_0FoUFa","promo-header":"xR-BAk","uui-critical":"Wf0BDP","uui-success":"jNVRk1","uui-warning":"aDfBQZ","uui-typography-size-12":"_9bFNLb","uui-typography-size-14":"_0dfgBH","uui-typography-size-16":"yhaF4a","sub-header-wrapper":"xtIzf8","switch":"g22RGI","no-found-modal-container":"JtVJ9C","no-found-modal-container-icon":"wgf3tX","no-found-modal-container-text":"_8Kfh6N","uuiTypography":"Ur5MiI","heroHeader":"_0FoUFa","promoHeader":"xR-BAk","uuiCritical":"Wf0BDP","uuiSuccess":"jNVRk1","uuiWarning":"aDfBQZ","uuiTypographySize12":"_9bFNLb","uuiTypographySize14":"_0dfgBH","uuiTypographySize16":"yhaF4a","subHeaderWrapper":"xtIzf8","$switch$":"g22RGI","noFoundModalContainer":"JtVJ9C","noFoundModalContainerIcon":"wgf3tX","noFoundModalContainerText":"_8Kfh6N"};
|
|
1808
2044
|
|
|
1809
2045
|
function PickerModal(props) {
|
|
1810
2046
|
const { view, selection, dataSourceStateLens, showSelectedLens, dataSourceState, getDataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = usePickerModal(props);
|
|
@@ -1820,17 +2056,17 @@ function PickerModal(props) {
|
|
|
1820
2056
|
React__default.createElement(Button, { color: "accent", caption: i18n.pickerModal.selectButton, onClick: () => props.success(selection) })));
|
|
1821
2057
|
};
|
|
1822
2058
|
const renderNotFound = () => {
|
|
1823
|
-
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__default.createElement("div", { className: css$
|
|
1824
|
-
React__default.createElement(IconContainer, { cx: css$
|
|
1825
|
-
React__default.createElement(Text, { cx: css$
|
|
1826
|
-
React__default.createElement(Text, { cx: css$
|
|
2059
|
+
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__default.createElement("div", { className: css$H.noFoundModalContainer },
|
|
2060
|
+
React__default.createElement(IconContainer, { cx: css$H.noFoundModalContainerIcon, icon: ForwardRef$v }),
|
|
2061
|
+
React__default.createElement(Text, { cx: css$H.noFoundModalContainerText, font: "semibold", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
2062
|
+
React__default.createElement(Text, { cx: css$H.noFoundModalContainerText, fontSize: "12", lineHeight: "18", font: "regular", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
1827
2063
|
};
|
|
1828
2064
|
const dataRows = getRows();
|
|
1829
2065
|
const rows = dataRows.map((row) => renderRow(row));
|
|
1830
2066
|
return (React__default.createElement(ModalBlocker, Object.assign({}, props),
|
|
1831
2067
|
React__default.createElement(ModalWindow, { width: 600, height: 700 },
|
|
1832
2068
|
React__default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
1833
|
-
React__default.createElement(FlexCell, { cx: css$
|
|
2069
|
+
React__default.createElement(FlexCell, { cx: css$H.subHeaderWrapper },
|
|
1834
2070
|
React__default.createElement(FlexRow, { vPadding: "24" },
|
|
1835
2071
|
React__default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => handleDataSourceKeyboard({
|
|
1836
2072
|
value: getDataSourceState(),
|
|
@@ -1839,168 +2075,24 @@ function PickerModal(props) {
|
|
|
1839
2075
|
rows: dataRows,
|
|
1840
2076
|
searchPosition: 'body',
|
|
1841
2077
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder }))),
|
|
1842
|
-
!isSingleSelect() && (React__default.createElement(Switch, Object.assign({ cx: css$
|
|
2078
|
+
!isSingleSelect() && (React__default.createElement(Switch, Object.assign({ cx: css$H.switch, size: "18" }, showSelectedLens.toProps(), { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
1843
2079
|
props.renderFilter && React__default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
1844
2080
|
React__default.createElement(DataPickerBody, Object.assign({}, getListProps(), { value: getDataSourceState(), onValueChange: handleDataSourceValueChange, search: dataSourceStateLens.prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: renderNotFound, editMode: "modal" })),
|
|
1845
2081
|
React__default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
1846
2082
|
}
|
|
1847
2083
|
|
|
1848
|
-
var css$P = {"root":"Cqz3Ry"};
|
|
1849
|
-
|
|
1850
|
-
const AvatarStack = withMods(AvatarStack$1, () => [css$P.root]);
|
|
1851
|
-
|
|
1852
|
-
var css$O = {"root":"_8j2Pdp","size-18":"qMV7zC","size-24":"R2OFMy","size-30":"BgaLX3","size-36":"qLi8c3","size-42":"ydCAMA","size-48":"xn-v4s","size18":"qMV7zC","size24":"R2OFMy","size30":"BgaLX3","size36":"qLi8c3","size42":"ydCAMA","size48":"xn-v4s"};
|
|
1853
|
-
|
|
1854
|
-
const defaultSize$5 = '36';
|
|
1855
|
-
const mapSize$1 = {
|
|
1856
|
-
48: '48',
|
|
1857
|
-
42: '48',
|
|
1858
|
-
36: '36',
|
|
1859
|
-
30: '30',
|
|
1860
|
-
24: '30',
|
|
1861
|
-
18: '18',
|
|
1862
|
-
};
|
|
1863
|
-
function applyBadgeMods(mods) {
|
|
1864
|
-
return [
|
|
1865
|
-
'uui-badge',
|
|
1866
|
-
css$O.root,
|
|
1867
|
-
css$O['size-' + (mods.size || defaultSize$5)],
|
|
1868
|
-
`fill-${mods.fill || 'solid'}`,
|
|
1869
|
-
mods.color && `uui-color-${mods.color}`,
|
|
1870
|
-
];
|
|
1871
|
-
}
|
|
1872
|
-
const Badge = withMods(Button$1, applyBadgeMods, (props) => ({
|
|
1873
|
-
dropdownIcon: systemIcons[(props.size && mapSize$1[props.size]) || defaultSize$5].foldingArrow,
|
|
1874
|
-
clearIcon: systemIcons[(props.size && mapSize$1[props.size]) || defaultSize$5].clear,
|
|
1875
|
-
countPosition: 'left',
|
|
1876
|
-
}));
|
|
1877
|
-
|
|
1878
|
-
var css$N = {"root":"MS24E-","size-18":"WT3Ivg","size-24":"gGgt8L","size-30":"gY40BV","size-36":"xcA7Nm","size-42":"-PGvxx","size-48":"cpmfsB","size18":"WT3Ivg","size24":"gGgt8L","size30":"gY40BV","size36":"xcA7Nm","size42":"-PGvxx","size48":"cpmfsB"};
|
|
1879
|
-
|
|
1880
|
-
const defaultSize$4 = '36';
|
|
1881
|
-
const mapSize = {
|
|
1882
|
-
48: '48',
|
|
1883
|
-
42: '48',
|
|
1884
|
-
36: '36',
|
|
1885
|
-
30: '30',
|
|
1886
|
-
24: '30',
|
|
1887
|
-
18: '18',
|
|
1888
|
-
};
|
|
1889
|
-
function applyTagMods(mods) {
|
|
1890
|
-
return [css$N['size-' + (mods.size || defaultSize$4)], css$N.root, 'uui-color-gray', 'uui-tag'];
|
|
1891
|
-
}
|
|
1892
|
-
const Tag = withMods(Button$1, applyTagMods, (props) => ({
|
|
1893
|
-
dropdownIcon: systemIcons[mapSize[props.size] || defaultSize$4].foldingArrow,
|
|
1894
|
-
clearIcon: systemIcons[mapSize[props.size] || defaultSize$4].clear,
|
|
1895
|
-
}));
|
|
1896
|
-
|
|
1897
|
-
var css$M = {"root":"A1e7MR","spacer":"ioSBM8","mode-ghost":"NhTAvE","size-24":"QRazxp","size-30":"un047X","navigation-size-24":"LWOBKR","navigation-size-30":"k3cF4G","modeGhost":"NhTAvE","size24":"QRazxp","size30":"un047X","navigationSize24":"LWOBKR","navigationSize30":"k3cF4G"};
|
|
1898
|
-
|
|
1899
|
-
var _path$v;
|
|
1900
|
-
function _extends$w() { _extends$w = 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$w.apply(this, arguments); }
|
|
1901
|
-
var SvgNavigationChevronLeft12 = function SvgNavigationChevronLeft12(props, ref) {
|
|
1902
|
-
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
1903
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1904
|
-
width: 12,
|
|
1905
|
-
height: 12,
|
|
1906
|
-
viewBox: "0 0 12 12",
|
|
1907
|
-
ref: ref
|
|
1908
|
-
}, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
|
|
1909
|
-
fillRule: "evenodd",
|
|
1910
|
-
d: "M7.705 3.705 7 3 4 6l3 3 .705-.705L5.415 6l2.29-2.295z",
|
|
1911
|
-
clipRule: "evenodd"
|
|
1912
|
-
})));
|
|
1913
|
-
};
|
|
1914
|
-
var ForwardRef$w = /*#__PURE__*/forwardRef(SvgNavigationChevronLeft12);
|
|
1915
|
-
|
|
1916
|
-
var _path$u;
|
|
1917
|
-
function _extends$v() { _extends$v = 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$v.apply(this, arguments); }
|
|
1918
|
-
var SvgNavigationChevronRight12 = function SvgNavigationChevronRight12(props, ref) {
|
|
1919
|
-
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
1920
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1921
|
-
width: 12,
|
|
1922
|
-
height: 12,
|
|
1923
|
-
viewBox: "0 0 12 12",
|
|
1924
|
-
ref: ref
|
|
1925
|
-
}, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
|
|
1926
|
-
fillRule: "evenodd",
|
|
1927
|
-
d: "m5 3-.705.705L6.585 6l-2.29 2.295L5 9l3-3-3-3z",
|
|
1928
|
-
clipRule: "evenodd"
|
|
1929
|
-
})));
|
|
1930
|
-
};
|
|
1931
|
-
var ForwardRef$v = /*#__PURE__*/forwardRef(SvgNavigationChevronRight12);
|
|
1932
|
-
|
|
1933
|
-
function Paginator(props) {
|
|
1934
|
-
const renderPaginator = (params) => {
|
|
1935
|
-
var _a, _b;
|
|
1936
|
-
return (React__default.createElement("nav", Object.assign({ role: "navigation", className: cx(css$M.root, 'uui-paginator') }, params.rawProps),
|
|
1937
|
-
React__default.createElement(Button, { cx: css$M[`navigation-size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$J : ForwardRef$w, onClick: params.goToPrev, isDisabled: params.isFirst, fill: "outline", color: "secondary" }),
|
|
1938
|
-
params.pages.map((page, index) => {
|
|
1939
|
-
var _a, _b;
|
|
1940
|
-
if (page.type === 'spacer') {
|
|
1941
|
-
return (React__default.createElement(Button, { cx: cx(css$M[`size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], css$M.spacer), size: params.size, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1 }));
|
|
1942
|
-
}
|
|
1943
|
-
else {
|
|
1944
|
-
return (React__default.createElement(Button, { cx: cx(css$M[`size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], css$M[`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" }));
|
|
1945
|
-
}
|
|
1946
|
-
}),
|
|
1947
|
-
React__default.createElement(Button, { cx: css$M[`navigation-size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$I : ForwardRef$v, onClick: params.goToNext, isDisabled: params.isLast, fill: "outline", color: "secondary" })));
|
|
1948
|
-
};
|
|
1949
|
-
return React__default.createElement(Paginator$1, Object.assign({}, props, { render: renderPaginator }));
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
var css$L = {"root":"ad-0f4","bar":"tnbgJt","progressBar-indeterminate":"_1hGUFm","size-12":"_0qMUN9","size-18":"Ri5BiU","size-24":"abPz-b","progressBarIndeterminate":"_1hGUFm","size12":"_0qMUN9","size18":"Ri5BiU","size24":"abPz-b"};
|
|
1953
|
-
|
|
1954
|
-
const IndeterminateBar = React.forwardRef((props, ref) => {
|
|
1955
|
-
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$L.root, css$L[`size-${props.size || 12}`]) },
|
|
1956
|
-
React.createElement("div", { className: cx(css$L.bar) })));
|
|
1957
|
-
});
|
|
1958
|
-
|
|
1959
|
-
var css$K = {"root":"euBBqd","striped":"_6Fl2Mx","animate-stripes":"Ixlc0M","size-12":"p3DSUZ","size-18":"yf8gLh","size-24":"Zhpq7s","animateStripes":"Ixlc0M","size12":"p3DSUZ","size18":"yf8gLh","size24":"Zhpq7s"};
|
|
1960
|
-
|
|
1961
|
-
const defaultSize$3 = '12';
|
|
1962
|
-
function applyProgressBarMods(mods) {
|
|
1963
|
-
const size = mods.size || defaultSize$3;
|
|
1964
|
-
return [
|
|
1965
|
-
css$K.root,
|
|
1966
|
-
css$K[`size-${size}`],
|
|
1967
|
-
mods.striped && css$K.striped,
|
|
1968
|
-
];
|
|
1969
|
-
}
|
|
1970
|
-
const ProgressBar = withMods(ProgressBar$1, applyProgressBarMods, (props) => ({
|
|
1971
|
-
hideLabel: props.hideLabel || props.striped,
|
|
1972
|
-
}));
|
|
1973
|
-
|
|
1974
|
-
var css$J = {"root":"-UOWB4"};
|
|
1975
|
-
|
|
1976
|
-
const IndicatorBar = React.forwardRef((props, ref) => {
|
|
1977
|
-
const { progress } = props;
|
|
1978
|
-
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$J.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$J.root, props.cx) }));
|
|
1979
|
-
});
|
|
1980
|
-
|
|
1981
|
-
var css$I = {"root":"dxRv9o"};
|
|
1982
|
-
|
|
1983
|
-
const Informer = forwardRef((props, ref) => {
|
|
1984
|
-
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
1985
|
-
css$I.root,
|
|
1986
|
-
'uui-informer',
|
|
1987
|
-
`size-${props.size || 24}`,
|
|
1988
|
-
props.color && `uui-color-${props.color}`,
|
|
1989
|
-
]) }, props.caption));
|
|
1990
|
-
});
|
|
1991
|
-
|
|
1992
2084
|
const MAX_ITEMS = 100;
|
|
1993
2085
|
const getMaxItems = (maxItems) => maxItems || maxItems === 0 ? maxItems : MAX_ITEMS;
|
|
1994
2086
|
|
|
1995
|
-
var css$
|
|
2087
|
+
var css$G = {"uui-typography":"-kMsnj","hero-header":"D6pxR7","promo-header":"_6j9uJd","uui-critical":"GeYQ8j","uui-success":"sVFh9E","uui-warning":"IpHU7t","uui-typography-size-12":"_-2hQwF","uui-typography-size-14":"kDcap9","uui-typography-size-16":"dXWelT","root":"-OJMCg","mode-form":"_9QuoKh","mode-cell":"ZGOQq6","mode-inline":"nFp9-k","size-24":"vnyssf","size-30":"tzYHLO","size-36":"_4k9Qp1","size-42":"MIsovA","size-48":"_0IwSQd","uuiTypography":"-kMsnj","heroHeader":"D6pxR7","promoHeader":"_6j9uJd","uuiCritical":"GeYQ8j","uuiSuccess":"sVFh9E","uuiWarning":"IpHU7t","uuiTypographySize12":"_-2hQwF","uuiTypographySize14":"kDcap9","uuiTypographySize16":"dXWelT","modeForm":"_9QuoKh","modeCell":"ZGOQq6","modeInline":"nFp9-k","size24":"vnyssf","size30":"tzYHLO","size36":"_4k9Qp1","size42":"MIsovA","size48":"_0IwSQd"};
|
|
1996
2088
|
|
|
1997
2089
|
const defaultSize$2 = '36';
|
|
1998
2090
|
const defaultMode$1 = EditMode.FORM;
|
|
1999
2091
|
function applyPickerTogglerMods(mods) {
|
|
2000
2092
|
return [
|
|
2001
|
-
css$
|
|
2002
|
-
css$
|
|
2003
|
-
css$
|
|
2093
|
+
css$G.root,
|
|
2094
|
+
css$G['size-' + (mods.size || defaultSize$2)],
|
|
2095
|
+
css$G['mode-' + (mods.mode || defaultMode$1)],
|
|
2004
2096
|
];
|
|
2005
2097
|
}
|
|
2006
2098
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -2042,9 +2134,9 @@ function PickerTogglerComponent(props, ref) {
|
|
|
2042
2134
|
}
|
|
2043
2135
|
const PickerToggler = React.forwardRef(PickerTogglerComponent);
|
|
2044
2136
|
|
|
2045
|
-
var css$
|
|
2137
|
+
var css$F = {"root":"rV7aJu","multiline":"ZKiU44","vertical-padding-24":"ADIADL","vertical-padding-30":"M2eN8h","vertical-padding-36":"fFeA9V","vertical-padding-42":"eVyZ03","vertical-padding-48":"_21L38I","text":"VvPOEH","verticalPadding24":"ADIADL","verticalPadding30":"M2eN8h","verticalPadding36":"fFeA9V","verticalPadding42":"eVyZ03","verticalPadding48":"_21L38I"};
|
|
2046
2138
|
|
|
2047
|
-
var css$
|
|
2139
|
+
var css$E = {"highlighted-text":"ALd6ve","highlightedText":"ALd6ve"};
|
|
2048
2140
|
|
|
2049
2141
|
const mergeHighlightRanges = (ranges) => {
|
|
2050
2142
|
const mergedRanges = [];
|
|
@@ -2098,7 +2190,7 @@ const getHighlightRanges = (str, search) => {
|
|
|
2098
2190
|
};
|
|
2099
2191
|
const getDecoratedText = (str, ranges) => ranges.map((range, index) => {
|
|
2100
2192
|
const rangeStr = str.substring(range.from, range.to);
|
|
2101
|
-
return (React__default.createElement("span", Object.assign({ key: `${rangeStr}-${index}` }, (range.isHighlighted ? { className: css$
|
|
2193
|
+
return (React__default.createElement("span", Object.assign({ key: `${rangeStr}-${index}` }, (range.isHighlighted ? { className: css$E.highlightedText } : {})), rangeStr));
|
|
2102
2194
|
});
|
|
2103
2195
|
const getHighlightedSearchMatches = (str, search) => {
|
|
2104
2196
|
if (!search || !str) {
|
|
@@ -2127,20 +2219,20 @@ class PickerItem extends React.Component {
|
|
|
2127
2219
|
const { search } = (_a = this.props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2128
2220
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(this.props.title, search) : this.props.title;
|
|
2129
2221
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(this.props.subtitle, search) : this.props.subtitle;
|
|
2130
|
-
return (React.createElement(FlexCell, { width: "auto", cx: [css$
|
|
2131
|
-
React.createElement(FlexRow, { size: itemSize, cx: isMultiline && [css$
|
|
2222
|
+
return (React.createElement(FlexCell, { width: "auto", cx: [css$F.root, cx] },
|
|
2223
|
+
React.createElement(FlexRow, { size: itemSize, cx: isMultiline && [css$F.multiline, css$F[`vertical-padding-${itemSize}`]], spacing: "12" },
|
|
2132
2224
|
avatarUrl && React.createElement(Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2133
2225
|
icon && React.createElement(IconContainer, { icon: icon }),
|
|
2134
2226
|
React.createElement(FlexCell, { width: "auto" },
|
|
2135
|
-
title && (React.createElement(Text, { size: itemSize, cx: css$
|
|
2136
|
-
subtitle && (React.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$
|
|
2227
|
+
title && (React.createElement(Text, { size: itemSize, cx: css$F.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React.createElement(TextPlaceholder, { wordsCount: 2 }) : title)),
|
|
2228
|
+
subtitle && (React.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$F.text }, isLoading ? React.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
2137
2229
|
}
|
|
2138
2230
|
}
|
|
2139
2231
|
PickerItem.defaultProps = {
|
|
2140
2232
|
highlightSearchMatches: true,
|
|
2141
2233
|
};
|
|
2142
2234
|
|
|
2143
|
-
var css$
|
|
2235
|
+
var css$D = {"uui-typography":"ngd97c","hero-header":"afsRhK","promo-header":"d3Kjey","uui-critical":"FmQEwz","uui-success":"GzwYqr","uui-warning":"_13DPu3","uui-typography-size-12":"Uy-fEu","uui-typography-size-14":"NufN7K","uui-typography-size-16":"nwKEAd","root":"fcBJnM","panel":"UCJmyg","footer-wrapper":"_4SZ1D3","footer-size-24":"eEx2vV","footer-size-30":"fqcVl-","footer-size-36":"pI6rDl","footer-size-42":"r7dAX7","footer-size-48":"okY9KF","uuiTypography":"ngd97c","heroHeader":"afsRhK","promoHeader":"d3Kjey","uuiCritical":"FmQEwz","uuiSuccess":"GzwYqr","uuiWarning":"_13DPu3","uuiTypographySize12":"Uy-fEu","uuiTypographySize14":"NufN7K","uuiTypographySize16":"nwKEAd","footerWrapper":"_4SZ1D3","footerSize24":"eEx2vV","footerSize30":"fqcVl-","footerSize36":"pI6rDl","footerSize42":"r7dAX7","footerSize48":"okY9KF"};
|
|
2144
2236
|
|
|
2145
2237
|
const pickerHeight$1 = 300;
|
|
2146
2238
|
const pickerWidth = 360;
|
|
@@ -2155,7 +2247,7 @@ function PickerInput(_a) {
|
|
|
2155
2247
|
})
|
|
2156
2248
|
.catch(() => { });
|
|
2157
2249
|
};
|
|
2158
|
-
const { context, popperModifiers, getName, getPlaceholder, handleSelectionValueChange, getTogglerProps, getRows, handleTogglerSearchChange, toggleBodyOpening, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, shouldShowBody, getSearchPosition, } = usePickerInput(Object.assign(Object.assign({}, props), { toggleModalOpening }));
|
|
2250
|
+
const { context, popperModifiers, getName, getPlaceholder, handleSelectionValueChange, getTogglerProps, getRows, handleTogglerSearchChange, toggleBodyOpening, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, shouldShowBody, getSearchPosition, handlePickerInputKeyboard, } = usePickerInput(Object.assign(Object.assign({}, props), { toggleModalOpening }));
|
|
2159
2251
|
const getTogglerMods = () => {
|
|
2160
2252
|
return {
|
|
2161
2253
|
size: props.size,
|
|
@@ -2164,7 +2256,7 @@ function PickerInput(_a) {
|
|
|
2164
2256
|
};
|
|
2165
2257
|
const renderTarget = (targetProps) => {
|
|
2166
2258
|
const renderTargetFn = props.renderToggler || ((props) => React__default.createElement(PickerToggler, Object.assign({}, props)));
|
|
2167
|
-
return (React__default.createElement(IEditableDebouncer, { value: targetProps.value, onValueChange: handleTogglerSearchChange, debounceDelay: props.searchDebounceDelay, render: (editableProps) => renderTargetFn(Object.assign(Object.assign(Object.assign({}, getTogglerMods()), targetProps), editableProps)) }));
|
|
2259
|
+
return (React__default.createElement(IEditableDebouncer, { value: targetProps.value, onValueChange: handleTogglerSearchChange, debounceDelay: props.searchDebounceDelay, render: (editableProps) => renderTargetFn(Object.assign(Object.assign(Object.assign(Object.assign({}, getTogglerMods()), targetProps), editableProps), { onKeyDown: (e) => handlePickerInputKeyboard(rows, e, editableProps.value) })) }));
|
|
2168
2260
|
};
|
|
2169
2261
|
const renderFooter = () => {
|
|
2170
2262
|
const footerProps = getFooterProps();
|
|
@@ -2186,7 +2278,7 @@ function PickerInput(_a) {
|
|
|
2186
2278
|
const renderedDataRows = rows.map((row) => renderRow(row, dataSourceState));
|
|
2187
2279
|
const bodyHeight = isMobile() ? document.documentElement.clientHeight : props.dropdownHeight || pickerHeight$1;
|
|
2188
2280
|
const minBodyWidth = props.minBodyWidth || pickerWidth;
|
|
2189
|
-
return (React__default.createElement(MobileDropdownWrapper, { title: props.entityName, onClose: () => toggleBodyOpening(false), cx: [css$
|
|
2281
|
+
return (React__default.createElement(MobileDropdownWrapper, { title: props.entityName, onClose: () => toggleBodyOpening(false), cx: [css$D.panel, css$D.root, props.bodyCx], onKeyDown: bodyProps.onKeyDown, width: bodyProps.togglerWidth > minBodyWidth ? bodyProps.togglerWidth : minBodyWidth, focusLock: getSearchPosition() === 'body' },
|
|
2190
2282
|
React__default.createElement(DataPickerBody, Object.assign({}, bodyProps, { rows: renderedDataRows, maxHeight: bodyHeight, searchSize: props.size, editMode: "dropdown", selectionMode: props.selectionMode, renderNotFound: props.renderNotFound
|
|
2191
2283
|
? () => props.renderNotFound({
|
|
2192
2284
|
search: dataSourceState.search,
|
|
@@ -2197,12 +2289,12 @@ function PickerInput(_a) {
|
|
|
2197
2289
|
};
|
|
2198
2290
|
const rows = getRows();
|
|
2199
2291
|
return (React__default.createElement(Dropdown, { renderTarget: (dropdownProps) => {
|
|
2200
|
-
const targetProps = getTogglerProps(
|
|
2292
|
+
const targetProps = getTogglerProps();
|
|
2201
2293
|
return renderTarget(Object.assign(Object.assign({}, dropdownProps), targetProps));
|
|
2202
2294
|
}, renderBody: (bodyProps) => renderBody(Object.assign(Object.assign(Object.assign({}, bodyProps), getPickerBodyProps(rows)), getListProps()), rows), value: shouldShowBody(), onValueChange: !props.isDisabled && toggleBodyOpening, placement: props.dropdownPlacement, modifiers: popperModifiers, closeBodyOnTogglerHidden: !isMobile(), portalTarget: props.portalTarget }));
|
|
2203
2295
|
}
|
|
2204
2296
|
|
|
2205
|
-
var css$
|
|
2297
|
+
var css$C = {"row":"HyYMxC"};
|
|
2206
2298
|
|
|
2207
2299
|
function PickerListItem(props) {
|
|
2208
2300
|
var _a;
|
|
@@ -2220,7 +2312,7 @@ function PickerListItem(props) {
|
|
|
2220
2312
|
else {
|
|
2221
2313
|
component = (React__default.createElement(RadioInput, { label: label, value: props.isSelected, isDisabled: props.isLoading || !props.isSelectable || props.isDisabled, onValueChange: () => props.onSelect(props) }));
|
|
2222
2314
|
}
|
|
2223
|
-
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$
|
|
2315
|
+
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$C.row }), component));
|
|
2224
2316
|
}
|
|
2225
2317
|
|
|
2226
2318
|
function PickerList(props) {
|
|
@@ -2256,7 +2348,7 @@ function PickerList(props) {
|
|
|
2256
2348
|
}, selectedRows)));
|
|
2257
2349
|
}
|
|
2258
2350
|
|
|
2259
|
-
var css$
|
|
2351
|
+
var css$B = {"uui-typography":"ap4TZT","hero-header":"yzXr-B","promo-header":"MHI-nJ","uui-critical":"MHNLpK","uui-success":"aRhVsX","uui-warning":"bsLhZ1","uui-typography-size-12":"qCyqMB","uui-typography-size-14":"giHqBO","uui-typography-size-16":"XyxnbN","root":"daYT2z","title-wrapper":"RXPVOW","title":"Im21qa","text-wrapper":"SRaabv","selection":"_4BnvZc","postfix":"-sMc7R","selected":"NJzm8S","uuiTypography":"ap4TZT","heroHeader":"yzXr-B","promoHeader":"MHI-nJ","uuiCritical":"MHNLpK","uuiSuccess":"aRhVsX","uuiWarning":"bsLhZ1","uuiTypographySize12":"qCyqMB","uuiTypographySize14":"giHqBO","uuiTypographySize16":"XyxnbN","titleWrapper":"RXPVOW","textWrapper":"SRaabv"};
|
|
2260
2352
|
|
|
2261
2353
|
const defaultSize = '36';
|
|
2262
2354
|
const FilterPanelItemToggler = React.forwardRef((props, ref) => {
|
|
@@ -2281,19 +2373,19 @@ const FilterPanelItemToggler = React.forwardRef((props, ref) => {
|
|
|
2281
2373
|
};
|
|
2282
2374
|
const getTitle = props.predicateName ? `${props.title} ${props.predicateName}` : `${props.title}${props.selection ? ':' : ''}`;
|
|
2283
2375
|
const getSelectionText = () => props.selection.map((i, index) => (React.createElement(React.Fragment, { key: `${i}${index}` },
|
|
2284
|
-
React.createElement(Text, { color: "brand", size: props.size, cx: css$
|
|
2376
|
+
React.createElement(Text, { color: "brand", size: props.size, cx: css$B.selection }, i),
|
|
2285
2377
|
(props.postfix || index !== props.selection.length - 1) && React.createElement("span", null, ",\u00A0"))));
|
|
2286
2378
|
return (React.createElement(FlexRow$1, Object.assign({}, props, { rawProps: {
|
|
2287
2379
|
style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` },
|
|
2288
2380
|
role: 'button',
|
|
2289
2381
|
tabIndex: props.isDisabled ? -1 : 0,
|
|
2290
2382
|
onKeyDown: onKeyDownHandler,
|
|
2291
|
-
}, cx: cx(css$
|
|
2292
|
-
React.createElement(FlexRow$1, { cx: css$
|
|
2293
|
-
React.createElement(Text, { size: props.size, cx: css$
|
|
2294
|
-
props.selection && (React.createElement("div", { className: css$
|
|
2383
|
+
}, cx: cx(css$B.root, uuiElement.inputBox, uuiMarkers.clickable, props.isOpen && uuiMod.opened, ['size-' + (props.size || defaultSize)], props.cx), onClick: togglerPickerOpened, ref: ref }),
|
|
2384
|
+
React.createElement(FlexRow$1, { cx: css$B.titleWrapper },
|
|
2385
|
+
React.createElement(Text, { size: props.size, cx: css$B.title }, getTitle),
|
|
2386
|
+
props.selection && (React.createElement("div", { className: css$B.textWrapper },
|
|
2295
2387
|
getSelectionText(),
|
|
2296
|
-
props.postfix && (React.createElement(Text, { color: "brand", size: props.size, cx: css$
|
|
2388
|
+
props.postfix && (React.createElement(Text, { color: "brand", size: props.size, cx: css$B.postfix }, props.postfix))))),
|
|
2297
2389
|
!props.isDisabled && React.createElement(IconContainer, { icon: systemIcons[props.size || defaultSize].foldingArrow, flipY: props.isOpen, cx: "uui-icon-dropdown" })));
|
|
2298
2390
|
});
|
|
2299
2391
|
|
|
@@ -2360,7 +2452,7 @@ class FilterDatePickerBody extends BaseDatePicker {
|
|
|
2360
2452
|
}
|
|
2361
2453
|
}
|
|
2362
2454
|
|
|
2363
|
-
var css$
|
|
2455
|
+
var css$A = {"uui-typography":"_5jJXMg","hero-header":"miYEaS","promo-header":"c7vb7b","uui-critical":"ZYQXZ9","uui-success":"XAqC0H","uui-warning":"OEQOG9","uui-typography-size-12":"r4I1ne","uui-typography-size-14":"Qu3DOq","uui-typography-size-16":"wt0YIk","date-input":"Rhf-NY","size-24":"bePuD7","size-30":"Nr65L1","size-36":"n8JWZi","size-42":"eHlmPe","size-48":"WDErmE","date-input-group":"_1tCXUz","separator":"Wer6VQ","mode-form":"PMJeg4","mode-cell":"L7RNk6","uuiTypography":"_5jJXMg","heroHeader":"miYEaS","promoHeader":"c7vb7b","uuiCritical":"ZYQXZ9","uuiSuccess":"XAqC0H","uuiWarning":"OEQOG9","uuiTypographySize12":"r4I1ne","uuiTypographySize14":"Qu3DOq","uuiTypographySize16":"wt0YIk","dateInput":"Rhf-NY","size24":"bePuD7","size30":"Nr65L1","size36":"n8JWZi","size42":"eHlmPe","size48":"WDErmE","dateInputGroup":"_1tCXUz","modeForm":"PMJeg4","modeCell":"L7RNk6"};
|
|
2364
2456
|
|
|
2365
2457
|
class FilterRangeDatePickerBody extends BaseRangeDatePicker {
|
|
2366
2458
|
constructor() {
|
|
@@ -2380,10 +2472,10 @@ class FilterRangeDatePickerBody extends BaseRangeDatePicker {
|
|
|
2380
2472
|
React.createElement(RangeDatePickerBody, { value: this.getValue(), onValueChange: this.onRangeChange, filter: this.props.filter, focusPart: this.state.inFocus, changeIsOpen: this.changeIsOpen, presets: this.props.presets })),
|
|
2381
2473
|
React.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2382
2474
|
React.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2383
|
-
React.createElement("div", { className: cx(css$
|
|
2384
|
-
React.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx(css$
|
|
2385
|
-
React.createElement("div", { className: css$
|
|
2386
|
-
React.createElement(TextInput, { cx: cx(css$
|
|
2475
|
+
React.createElement("div", { className: cx(css$A.dateInputGroup, this.state.inFocus && uuiMod.focus) },
|
|
2476
|
+
React.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx(css$A.dateInput, css$A['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') }),
|
|
2477
|
+
React.createElement("div", { className: css$A.separator }),
|
|
2478
|
+
React.createElement(TextInput, { cx: cx(css$A.dateInput, css$A['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') })),
|
|
2387
2479
|
React.createElement(FlexSpacer, null),
|
|
2388
2480
|
React.createElement(LinkButton, { isDisabled: !this.state.inputValue.from && !this.state.inputValue.to, caption: i18n.pickerModal.clearAllButton, onClick: this.handleCancel })))));
|
|
2389
2481
|
}
|
|
@@ -2392,7 +2484,7 @@ class FilterRangeDatePickerBody extends BaseRangeDatePicker {
|
|
|
2392
2484
|
}
|
|
2393
2485
|
}
|
|
2394
2486
|
|
|
2395
|
-
var css$
|
|
2487
|
+
var css$z = {"container":"WTjS8E"};
|
|
2396
2488
|
|
|
2397
2489
|
function FilterNumericBody(props) {
|
|
2398
2490
|
var _a, _b;
|
|
@@ -2436,7 +2528,7 @@ function FilterNumericBody(props) {
|
|
|
2436
2528
|
if (isInRangePredicate) {
|
|
2437
2529
|
const value = props.value;
|
|
2438
2530
|
return (React__default.createElement("div", null,
|
|
2439
|
-
React__default.createElement(FlexRow, { padding: "12", alignItems: "center", spacing: "12", borderBottom: true, cx: css$
|
|
2531
|
+
React__default.createElement(FlexRow, { padding: "12", alignItems: "center", spacing: "12", borderBottom: true, cx: css$z.container },
|
|
2440
2532
|
React__default.createElement(FlexCell, { width: "100%" },
|
|
2441
2533
|
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 } })),
|
|
2442
2534
|
React__default.createElement(FlexCell, { width: "100%" },
|
|
@@ -2444,7 +2536,7 @@ function FilterNumericBody(props) {
|
|
|
2444
2536
|
renderFooter()));
|
|
2445
2537
|
}
|
|
2446
2538
|
return (React__default.createElement("div", null,
|
|
2447
|
-
React__default.createElement(FlexRow, { padding: "12", alignItems: "center", borderBottom: true, cx: css$
|
|
2539
|
+
React__default.createElement(FlexRow, { padding: "12", alignItems: "center", borderBottom: true, cx: css$z.container },
|
|
2448
2540
|
React__default.createElement(FlexCell, { width: 130 },
|
|
2449
2541
|
React__default.createElement(NumericInput, { value: typeof props.value === 'number' ? props.value : null, onValueChange: props.onValueChange, size: "36", placeholder: "Enter a number", formatOptions: { maximumFractionDigits: 2 } }))),
|
|
2450
2542
|
renderFooter()));
|
|
@@ -2483,7 +2575,7 @@ var SvgActionDeleteforever12 = function SvgActionDeleteforever12(props, ref) {
|
|
|
2483
2575
|
};
|
|
2484
2576
|
var ForwardRef$u = /*#__PURE__*/forwardRef(SvgActionDeleteforever12);
|
|
2485
2577
|
|
|
2486
|
-
var css$
|
|
2578
|
+
var css$y = {"uui-typography":"Zk7WJo","hero-header":"UZnVFS","promo-header":"Wzv05a","uui-critical":"CY0Vrn","uui-success":"_18Xc94","uui-warning":"b9jr0l","uui-typography-size-12":"tdbLzj","uui-typography-size-14":"CDcNtq","uui-typography-size-16":"mQzog5","root":"RLboIe","header":"hhgQGi","removeButton":"lzxfsQ","with-search":"XGKB1N","uuiTypography":"Zk7WJo","heroHeader":"UZnVFS","promoHeader":"Wzv05a","uuiCritical":"CY0Vrn","uuiSuccess":"_18Xc94","uuiWarning":"b9jr0l","uuiTypographySize12":"tdbLzj","uuiTypographySize14":"CDcNtq","uuiTypographySize16":"mQzog5","withSearch":"XGKB1N"};
|
|
2487
2579
|
|
|
2488
2580
|
function FiltersToolbarItemImpl(props) {
|
|
2489
2581
|
const { maxCount = 2 } = props;
|
|
@@ -2559,13 +2651,13 @@ function FiltersToolbarItemImpl(props) {
|
|
|
2559
2651
|
};
|
|
2560
2652
|
const renderHeader = (hideTitle) => {
|
|
2561
2653
|
var _a;
|
|
2562
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
2654
|
+
return (React__default.createElement("div", { className: cx(css$y.header, isPickersType && ((_a = props.showSearch) !== null && _a !== void 0 ? _a : css$y.withSearch)) },
|
|
2563
2655
|
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))),
|
|
2564
|
-
!(props === null || props === void 0 ? void 0 : props.isAlwaysVisible) && (React__default.createElement(LinkButton, { cx: css$
|
|
2656
|
+
!(props === null || props === void 0 ? void 0 : props.isAlwaysVisible) && (React__default.createElement(LinkButton, { cx: css$y.removeButton, caption: i18n.filterToolbar.datePicker.removeCaption, onClick: removeOnclickHandler, size: "24", icon: ForwardRef$u }))));
|
|
2565
2657
|
};
|
|
2566
2658
|
const renderBody = (dropdownProps) => {
|
|
2567
2659
|
const hideHeaderTitle = isPickersType && isMobileScreen;
|
|
2568
|
-
return isPickersType ? (React__default.createElement(MobileDropdownWrapper, Object.assign({}, dropdownProps, { cx: css$
|
|
2660
|
+
return isPickersType ? (React__default.createElement(MobileDropdownWrapper, Object.assign({}, dropdownProps, { cx: css$y.root, title: props.title, width: 360, onClose: () => isOpenChange(false) }),
|
|
2569
2661
|
renderHeader(hideHeaderTitle),
|
|
2570
2662
|
React__default.createElement(FilterItemBody, Object.assign({}, props, dropdownProps, { selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange })))) : (React__default.createElement(DropdownContainer, Object.assign({}, dropdownProps),
|
|
2571
2663
|
renderHeader(hideHeaderTitle),
|
|
@@ -2779,9 +2871,9 @@ function FiltersToolbarImpl(props) {
|
|
|
2779
2871
|
}
|
|
2780
2872
|
const FiltersPanel = React__default.memo(FiltersToolbarImpl);
|
|
2781
2873
|
|
|
2782
|
-
var css$
|
|
2874
|
+
var css$x = {"divider":"DQnMf6","dropdownDeleteIcon":"qwj572","presetsWrapper":"dSs46P","addPresetContainer":"NtPIXt","dropContainer":"_7VJGe2"};
|
|
2783
2875
|
|
|
2784
|
-
var css$
|
|
2876
|
+
var css$w = {"preset-dropdown-panel":"A90xPX","delete-row":"spOE-B","delete-button":"kctO7l","targetOpen":"RjVggq","presetDropdownPanel":"A90xPX","deleteRow":"spOE-B","deleteButton":"kctO7l"};
|
|
2785
2877
|
|
|
2786
2878
|
var _path$r;
|
|
2787
2879
|
function _extends$s() { _extends$s = 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$s.apply(this, arguments); }
|
|
@@ -2952,7 +3044,7 @@ function PresetActionsDropdown(props) {
|
|
|
2952
3044
|
]);
|
|
2953
3045
|
const renderBody = () => {
|
|
2954
3046
|
const isReadonlyPreset = props.preset.isReadonly;
|
|
2955
|
-
return (React__default.createElement(Panel, { background: "surface", shadow: true, cx: css$
|
|
3047
|
+
return (React__default.createElement(Panel, { background: "surface", shadow: true, cx: css$w.presetDropdownPanel },
|
|
2956
3048
|
props.activePresetId === props.preset.id && props.hasPresetChanged(props.preset) && (React__default.createElement(React__default.Fragment, null,
|
|
2957
3049
|
!isReadonlyPreset && (React__default.createElement(FlexRow, { key: `${props.preset.id}-save-in-current` },
|
|
2958
3050
|
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$r, caption: "Save in current", onClick: saveInCurrentHandler }))),
|
|
@@ -2966,16 +3058,16 @@ function PresetActionsDropdown(props) {
|
|
|
2966
3058
|
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$o, caption: "Duplicate", onClick: duplicateHandler })),
|
|
2967
3059
|
React__default.createElement(FlexRow, { borderBottom: true, key: `${props.preset.id}-copyLink` },
|
|
2968
3060
|
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$m, caption: "Copy Link", onClick: copyUrlToClipboard })),
|
|
2969
|
-
!isReadonlyPreset && (React__default.createElement(FlexRow, { key: `${props.preset.id}-delete`, cx: css$
|
|
2970
|
-
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$l, caption: "Delete", cx: css$
|
|
3061
|
+
!isReadonlyPreset && (React__default.createElement(FlexRow, { key: `${props.preset.id}-delete`, cx: css$w.deleteRow },
|
|
3062
|
+
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$l, caption: "Delete", cx: css$w.deleteButton, onClick: deleteHandler })))));
|
|
2971
3063
|
};
|
|
2972
3064
|
const renderTarget = useCallback((dropdownProps) => {
|
|
2973
|
-
return (React__default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$
|
|
3065
|
+
return (React__default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$w.targetOpen, color: props.preset.id === props.activePresetId ? 'info' : 'neutral' }, dropdownProps, { icon: ForwardRef$s })));
|
|
2974
3066
|
}, []);
|
|
2975
3067
|
return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
2976
3068
|
}
|
|
2977
3069
|
|
|
2978
|
-
var css$
|
|
3070
|
+
var css$v = {"preset-input-cell":"vMf-kt","preset-input":"HPLexe","presetInputCell":"vMf-kt","presetInput":"HPLexe"};
|
|
2979
3071
|
|
|
2980
3072
|
function PresetInput(props) {
|
|
2981
3073
|
var _a;
|
|
@@ -2996,11 +3088,11 @@ function PresetInput(props) {
|
|
|
2996
3088
|
}
|
|
2997
3089
|
props.onCancel();
|
|
2998
3090
|
}, [presetCaption.length, props.onCancel]);
|
|
2999
|
-
return (React__default.createElement(FlexCell, { cx: css$
|
|
3000
|
-
React__default.createElement(TextInput, { cx: css$
|
|
3091
|
+
return (React__default.createElement(FlexCell, { cx: css$v.presetInputCell, minWidth: 180 },
|
|
3092
|
+
React__default.createElement(TextInput, { cx: css$v.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50 })));
|
|
3001
3093
|
}
|
|
3002
3094
|
|
|
3003
|
-
var css$
|
|
3095
|
+
var css$u = {"preset":"elilTR","activePreset":"J8qO16"};
|
|
3004
3096
|
|
|
3005
3097
|
function Preset(props) {
|
|
3006
3098
|
const [isRenamePreset, setIsRenamePreset] = useState(false);
|
|
@@ -3018,7 +3110,7 @@ function Preset(props) {
|
|
|
3018
3110
|
return props.updatePreset(newPreset);
|
|
3019
3111
|
}, [props.preset]);
|
|
3020
3112
|
const isPresetActive = props.activePresetId === props.preset.id;
|
|
3021
|
-
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$
|
|
3113
|
+
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$u.preset, isPresetActive && css$u.activePreset], size: "60", withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: () => React__default.createElement(PresetActionsDropdown, Object.assign({ renamePreset: setPresetForRename }, props)), iconPosition: "right", isLinkActive: isPresetActive }))));
|
|
3022
3114
|
}
|
|
3023
3115
|
|
|
3024
3116
|
var _path$j;
|
|
@@ -3049,16 +3141,16 @@ function PresetsPanel(props) {
|
|
|
3049
3141
|
return React__default.createElement(Preset, Object.assign({ key: preset.id, preset: preset, addPreset: setAddingPreset }, presetApi));
|
|
3050
3142
|
};
|
|
3051
3143
|
const renderAddPresetButton = useCallback(() => {
|
|
3052
|
-
return (React__default.createElement("div", { key: "addingPresetBlock", className: css$
|
|
3144
|
+
return (React__default.createElement("div", { key: "addingPresetBlock", className: css$x.addPresetContainer }, !isAddingPreset ? (React__default.createElement(Button, { size: "36", onClick: setAddingPreset, caption: i18n.presetPanel.addCaption, icon: ForwardRef$k, iconPosition: "left", fill: "ghost", color: "primary" })) : (React__default.createElement(PresetInput, { onCancel: cancelAddingPreset, onSuccess: props.createNewPreset }))));
|
|
3053
3145
|
}, [isAddingPreset]);
|
|
3054
3146
|
const onPresetDropdownSelect = (preset) => {
|
|
3055
3147
|
props.choosePreset(preset.preset);
|
|
3056
3148
|
};
|
|
3057
3149
|
const renderMoreButtonDropdown = (item, hiddenItems) => {
|
|
3058
3150
|
return (React__default.createElement(Dropdown, { key: "more", renderTarget: (props) => (React__default.createElement(FlexRow, null,
|
|
3059
|
-
React__default.createElement("div", { className: css$
|
|
3060
|
-
React__default.createElement(Button, Object.assign({ 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$
|
|
3061
|
-
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$l, iconPosition: "right", cx: css$
|
|
3151
|
+
React__default.createElement("div", { className: css$x.divider }),
|
|
3152
|
+
React__default.createElement(Button, Object.assign({ 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$x.dropContainer), width: 230 }, propsBody),
|
|
3153
|
+
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$l, iconPosition: "right", cx: css$x.dropdownDeleteIcon, onIconClick: !hiddenItem.preset.isReadonly && (() => props.deletePreset(hiddenItem.preset)) })))))) }));
|
|
3062
3154
|
};
|
|
3063
3155
|
const getPresetPriority = (preset, index) => {
|
|
3064
3156
|
return preset.id === props.activePresetId ? 100499 : 1000 - index;
|
|
@@ -3076,7 +3168,7 @@ function PresetsPanel(props) {
|
|
|
3076
3168
|
];
|
|
3077
3169
|
};
|
|
3078
3170
|
return (React__default.createElement(FlexCell, { grow: 1, minWidth: 310, rawProps: props.rawProps },
|
|
3079
|
-
React__default.createElement(FlexRow, { size: null, spacing: "12", cx: css$
|
|
3171
|
+
React__default.createElement(FlexRow, { size: null, spacing: "12", cx: css$x.presetsWrapper },
|
|
3080
3172
|
React__default.createElement(AdaptivePanel, { items: getPanelItems() }))));
|
|
3081
3173
|
}
|
|
3082
3174
|
|
|
@@ -3114,7 +3206,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
3114
3206
|
return columns;
|
|
3115
3207
|
};
|
|
3116
3208
|
|
|
3117
|
-
var css$
|
|
3209
|
+
var css$t = {"line-height-12":"aUZCjy","line-height-18":"-WV9kE","line-height-24":"FU018S","line-height-30":"S5txCm","font-size-10":"yrVTW7","font-size-12":"_8eziTJ","font-size-14":"_5zz2n0","font-size-16":"ZF1uV5","font-size-18":"_3K1Bk2","font-size-24":"zMaz8u","v-padding-2":"_0CgM6y","v-padding-3":"UfF4X7","v-padding-5":"PEIZFg","v-padding-6":"ruRp-S","v-padding-8":"a2j-4Q","v-padding-9":"CQ4hm7","v-padding-11":"_0--Xwc","v-padding-12":"yFVXCi","v-padding-14":"INP55i","v-padding-15":"_2ul1pb","v-padding-17":"Lh24ww","v-padding-18":"YXSaBf","v-padding-23":"qbsjT7","v-padding-24":"_63VWvS","lineHeight12":"aUZCjy","lineHeight18":"-WV9kE","lineHeight24":"FU018S","lineHeight30":"S5txCm","fontSize10":"yrVTW7","fontSize12":"_8eziTJ","fontSize14":"_5zz2n0","fontSize16":"ZF1uV5","fontSize18":"_3K1Bk2","fontSize24":"zMaz8u","vPadding2":"_0CgM6y","vPadding3":"UfF4X7","vPadding5":"PEIZFg","vPadding6":"ruRp-S","vPadding8":"a2j-4Q","vPadding9":"CQ4hm7","vPadding11":"_0--Xwc","vPadding12":"yFVXCi","vPadding14":"INP55i","vPadding15":"_2ul1pb","vPadding17":"Lh24ww","vPadding18":"YXSaBf","vPadding23":"qbsjT7","vPadding24":"_63VWvS"};
|
|
3118
3210
|
|
|
3119
3211
|
const defaultTextSettings = {
|
|
3120
3212
|
18: { lineHeight: 12, fontSize: 10 },
|
|
@@ -3127,7 +3219,7 @@ const defaultTextSettings = {
|
|
|
3127
3219
|
};
|
|
3128
3220
|
function getTextClasses(props, border) {
|
|
3129
3221
|
if (props.size === 'none') {
|
|
3130
|
-
return [css$
|
|
3222
|
+
return [css$t['line-height-' + props.lineHeight], css$t['font-size-' + props.fontSize]];
|
|
3131
3223
|
}
|
|
3132
3224
|
const setting = {
|
|
3133
3225
|
size: props.size,
|
|
@@ -3136,11 +3228,11 @@ function getTextClasses(props, border) {
|
|
|
3136
3228
|
};
|
|
3137
3229
|
const vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
3138
3230
|
return [
|
|
3139
|
-
css$
|
|
3231
|
+
css$t['line-height-' + setting.lineHeight], css$t['font-size-' + setting.fontSize], css$t['v-padding-' + vPadding],
|
|
3140
3232
|
];
|
|
3141
3233
|
}
|
|
3142
3234
|
|
|
3143
|
-
var css$
|
|
3235
|
+
var css$s = {"root":"Dni-ME"};
|
|
3144
3236
|
|
|
3145
3237
|
const allTextColors = ['info', 'warning', 'error', 'success', 'brand', 'primary', 'secondary', 'disabled', 'contrast', 'white'];
|
|
3146
3238
|
function applyTextMods(mods) {
|
|
@@ -3150,15 +3242,16 @@ function applyTextMods(mods) {
|
|
|
3150
3242
|
fontSize: mods.fontSize,
|
|
3151
3243
|
}, false);
|
|
3152
3244
|
return [
|
|
3153
|
-
css$
|
|
3245
|
+
css$s.root,
|
|
3154
3246
|
'uui-text',
|
|
3155
3247
|
`uui-font-${mods.font || 'regular'}`,
|
|
3156
3248
|
`uui-color-${mods.color || 'primary'}`,
|
|
3249
|
+
'uui-typography',
|
|
3157
3250
|
].concat(textClasses);
|
|
3158
3251
|
}
|
|
3159
3252
|
const Text = withMods(Text$1, applyTextMods);
|
|
3160
3253
|
|
|
3161
|
-
var css$
|
|
3254
|
+
var css$r = {"root":"de--DO","loading-word":"qxTKrq","animated-loading":"tqXcVL","skeleton_loading":"GHL1hG","loadingWord":"qxTKrq","animatedLoading":"tqXcVL","skeletonLoading":"GHL1hG"};
|
|
3162
3255
|
|
|
3163
3256
|
const TextPlaceholder = (props) => {
|
|
3164
3257
|
const pattern = ' ';
|
|
@@ -3170,37 +3263,35 @@ const TextPlaceholder = (props) => {
|
|
|
3170
3263
|
}
|
|
3171
3264
|
return words;
|
|
3172
3265
|
}, [props.wordsCount]);
|
|
3173
|
-
return (React.createElement("div", Object.assign({ "aria-busy": true, className: css$
|
|
3174
|
-
props.cx, css$
|
|
3266
|
+
return (React.createElement("div", Object.assign({ "aria-busy": true, className: css$r.root }, props.rawProps), text.map((it, index) => (React.createElement("span", { key: index, className: cx([
|
|
3267
|
+
props.cx, css$r.loadingWord, !props.isNotAnimated && css$r.animatedLoading,
|
|
3175
3268
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
3176
3269
|
};
|
|
3177
3270
|
|
|
3178
|
-
|
|
3271
|
+
const RichTextView = withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-${mods.size || '14'}`]);
|
|
3179
3272
|
|
|
3180
|
-
|
|
3273
|
+
var css$q = {"uui-typography":"drvtD9","hero-header":"QxmnBG","promo-header":"V3FmWe","uui-critical":"_3ekauF","uui-success":"mAVhXk","uui-warning":"A8Fz0M","uui-typography-size-12":"Sv6fjZ","uui-typography-size-14":"tZP8sz","uui-typography-size-16":"_81jdyh","root":"TCWIOt","modal-blocker":"Dn-Ya0","animateModalBlocker":"eoF-Qh","modal":"kkO-ou","modal-footer":"ykk3NX","border-top":"qL6Q7m","modal-header":"fN8gha","uuiTypography":"drvtD9","heroHeader":"QxmnBG","promoHeader":"V3FmWe","uuiCritical":"_3ekauF","uuiSuccess":"mAVhXk","uuiWarning":"A8Fz0M","uuiTypographySize12":"Sv6fjZ","uuiTypographySize14":"tZP8sz","uuiTypographySize16":"_81jdyh","modalBlocker":"Dn-Ya0","modalFooter":"ykk3NX","borderTop":"qL6Q7m","modalHeader":"fN8gha"};
|
|
3181
3274
|
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
const ModalBlocker = withMods(ModalBlocker$1, () => [css$r.modalBlocker]);
|
|
3185
|
-
const ModalWindow = withMods(ModalWindow$1, () => [css$r.root, css$r.modal], (props) => ({
|
|
3275
|
+
const ModalBlocker = withMods(ModalBlocker$1, () => [css$q.modalBlocker]);
|
|
3276
|
+
const ModalWindow = withMods(ModalWindow$1, () => [css$q.root, css$q.modal], (props) => ({
|
|
3186
3277
|
style: Object.assign(Object.assign({}, props.style), { width: `${props.width || 420}px`, height: props.height ? `${props.height}px` : 'auto' }),
|
|
3187
3278
|
}));
|
|
3188
3279
|
class ModalHeader extends React.Component {
|
|
3189
3280
|
render() {
|
|
3190
|
-
return (React.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "12", borderBottom: this.props.borderBottom, cx: [css$
|
|
3281
|
+
return (React.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "12", borderBottom: this.props.borderBottom, cx: [css$q.root, css$q.modalHeader, this.props.cx], spacing: "12", rawProps: this.props.rawProps },
|
|
3191
3282
|
this.props.title && (React.createElement(Text, { size: "48", fontSize: "18", font: "semibold" }, this.props.title)),
|
|
3192
3283
|
this.props.children,
|
|
3193
3284
|
this.props.onClose && React.createElement(FlexSpacer, null),
|
|
3194
3285
|
this.props.onClose && (React.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
3195
|
-
React.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$
|
|
3286
|
+
React.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$B, onClick: this.props.onClose })))));
|
|
3196
3287
|
}
|
|
3197
3288
|
}
|
|
3198
3289
|
class ModalFooter extends React.Component {
|
|
3199
3290
|
render() {
|
|
3200
3291
|
return (React.createElement(FlexRow, { spacing: this.props.spacing || '12', cx: [
|
|
3201
|
-
css$
|
|
3202
|
-
css$
|
|
3203
|
-
this.props.borderTop && css$
|
|
3292
|
+
css$q.root,
|
|
3293
|
+
css$q.modalFooter,
|
|
3294
|
+
this.props.borderTop && css$q.borderTop,
|
|
3204
3295
|
this.props.cx,
|
|
3205
3296
|
], padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
3206
3297
|
}
|
|
@@ -3222,7 +3313,7 @@ var SvgCross = function SvgCross(props, ref) {
|
|
|
3222
3313
|
};
|
|
3223
3314
|
var ForwardRef$j = /*#__PURE__*/forwardRef(SvgCross);
|
|
3224
3315
|
|
|
3225
|
-
var css$
|
|
3316
|
+
var css$p = {"uui-typography":"C7RWD7","hero-header":"o0EP9a","promo-header":"y2S-Il","uui-critical":"hlubEH","uui-success":"SdBl-0","uui-warning":"_1bukA-","uui-typography-size-12":"DMT-yK","uui-typography-size-14":"_9XByoT","uui-typography-size-16":"yo3e7T","root":"_7yW3Qn","icon-wrapper":"EKg7qw","action-wrapper":"_8X9sYB","action-link":"w3pp0M","close-icon":"_1n3GTb","main-path":"GejCTv","content":"_2X4juk","clear-button":"NLD9DT","close-wrapper":"pf2LwY","uuiTypography":"C7RWD7","heroHeader":"o0EP9a","promoHeader":"y2S-Il","uuiCritical":"hlubEH","uuiSuccess":"SdBl-0","uuiWarning":"_1bukA-","uuiTypographySize12":"DMT-yK","uuiTypographySize14":"_9XByoT","uuiTypographySize16":"yo3e7T","iconWrapper":"EKg7qw","actionWrapper":"_8X9sYB","actionLink":"w3pp0M","closeIcon":"_1n3GTb","mainPath":"GejCTv","clearButton":"NLD9DT","closeWrapper":"pf2LwY"};
|
|
3226
3317
|
|
|
3227
3318
|
const NotificationCard = React__default.forwardRef((props, ref) => {
|
|
3228
3319
|
const notificationCardNode = React__default.useRef(null);
|
|
@@ -3237,23 +3328,23 @@ const NotificationCard = React__default.forwardRef((props, ref) => {
|
|
|
3237
3328
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
3238
3329
|
};
|
|
3239
3330
|
}, []);
|
|
3240
|
-
return (React__default.createElement("div", Object.assign({ role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
3241
|
-
React__default.createElement("div", { className: css$
|
|
3242
|
-
props.icon && (React__default.createElement("div", { className: css$
|
|
3243
|
-
React__default.createElement(IconContainer, { icon: props.icon, cx: css$
|
|
3244
|
-
React__default.createElement("div", { className: css$
|
|
3331
|
+
return (React__default.createElement("div", Object.assign({ role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$p.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
3332
|
+
React__default.createElement("div", { className: css$p.mainPath },
|
|
3333
|
+
props.icon && (React__default.createElement("div", { className: css$p.iconWrapper },
|
|
3334
|
+
React__default.createElement(IconContainer, { icon: props.icon, cx: css$p.actionIcon }))),
|
|
3335
|
+
React__default.createElement("div", { className: css$p.content },
|
|
3245
3336
|
props.children,
|
|
3246
|
-
props.actions && (React__default.createElement("div", { className: css$
|
|
3247
|
-
props.onClose && (React__default.createElement("div", { className: css$
|
|
3248
|
-
React__default.createElement(IconButton, { icon: ForwardRef$j, color: "neutral", onClick: props.onClose, cx: css$
|
|
3337
|
+
props.actions && (React__default.createElement("div", { className: css$p.actionWrapper }, props.actions.map((action) => (React__default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$p.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
3338
|
+
props.onClose && (React__default.createElement("div", { className: css$p.closeWrapper },
|
|
3339
|
+
React__default.createElement(IconButton, { icon: ForwardRef$j, color: "neutral", onClick: props.onClose, cx: css$p.closeIcon }))))));
|
|
3249
3340
|
});
|
|
3250
|
-
const WarningNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3251
|
-
const SuccessNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3252
|
-
const HintNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3253
|
-
const ErrorNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3341
|
+
const WarningNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$E, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
3342
|
+
const SuccessNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$F, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
3343
|
+
const HintNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$C, color: "info" }, props, { ref: ref, cx: props.cx }))));
|
|
3344
|
+
const ErrorNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$D, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
3254
3345
|
class ClearNotification extends React__default.Component {
|
|
3255
3346
|
render() {
|
|
3256
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
3347
|
+
return (React__default.createElement("div", { className: cx(css$p.notificationWrapper, css$p.clearButton) },
|
|
3257
3348
|
React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => this.context.uuiNotifications.clearAll() })));
|
|
3258
3349
|
}
|
|
3259
3350
|
}
|
|
@@ -3304,14 +3395,14 @@ class DatePicker extends BaseDatePicker {
|
|
|
3304
3395
|
}
|
|
3305
3396
|
}
|
|
3306
3397
|
|
|
3307
|
-
var css$
|
|
3398
|
+
var css$o = {"uui-typography":"RVerdp","hero-header":"ET1To2","promo-header":"wfeV-q","uui-critical":"hlpwQT","uui-success":"Jus5M1","uui-warning":"lHLxF8","uui-typography-size-12":"_5MAlQh","uui-typography-size-14":"PBSnKi","uui-typography-size-16":"Ps26MG","root":"CkuUAx","uuiTypography":"RVerdp","heroHeader":"ET1To2","promoHeader":"wfeV-q","uuiCritical":"hlpwQT","uuiSuccess":"Jus5M1","uuiWarning":"lHLxF8","uuiTypographySize12":"_5MAlQh","uuiTypographySize14":"PBSnKi","uuiTypographySize16":"Ps26MG"};
|
|
3308
3399
|
|
|
3309
3400
|
function applyCalendarPresetsMods() {
|
|
3310
|
-
return [css$
|
|
3401
|
+
return [css$o.root];
|
|
3311
3402
|
}
|
|
3312
3403
|
const CalendarPresets = withMods(CalendarPresets$1, applyCalendarPresetsMods, () => ({}));
|
|
3313
3404
|
|
|
3314
|
-
var css$
|
|
3405
|
+
var css$n = {"uui-typography":"GHfMQm","hero-header":"WHskA-","promo-header":"zj6hkU","uui-critical":"JKs2MR","uui-success":"v0X8lb","uui-warning":"K1d-7C","uui-typography-size-12":"KPEGPA","uui-typography-size-14":"_5r-TeS","uui-typography-size-16":"eu7f8-","root":"ILu4gt","container":"sKhRL1","day-selection":"kFPB6w","from-picker":"MQMdPh","to-picker":"Jye9-n","bodes-wrapper":"R2zd5U","blocker":"fSE4q-","uuiTypography":"GHfMQm","heroHeader":"WHskA-","promoHeader":"zj6hkU","uuiCritical":"JKs2MR","uuiSuccess":"v0X8lb","uuiWarning":"K1d-7C","uuiTypographySize12":"KPEGPA","uuiTypographySize14":"_5r-TeS","uuiTypographySize16":"eu7f8-","daySelection":"kFPB6w","fromPicker":"MQMdPh","toPicker":"Jye9-n","bodesWrapper":"R2zd5U"};
|
|
3315
3406
|
|
|
3316
3407
|
dayjs.extend(isoWeek);
|
|
3317
3408
|
function weekCount(displayedDate) {
|
|
@@ -3408,16 +3499,16 @@ class RangeDatePickerBody extends React.Component {
|
|
|
3408
3499
|
};
|
|
3409
3500
|
this.renderDatePicker = () => {
|
|
3410
3501
|
var _a, _b;
|
|
3411
|
-
return (React.createElement(FlexRow, { cx: [((_a = this.props.value) === null || _a === void 0 ? void 0 : _a.view) === 'DAY_SELECTION' && css$
|
|
3502
|
+
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" },
|
|
3412
3503
|
React.createElement(FlexCell, { width: "auto" },
|
|
3413
3504
|
React.createElement(FlexRow, null,
|
|
3414
|
-
React.createElement(FlexRow, { cx: css$
|
|
3415
|
-
React.createElement(DatePickerBody, { cx: cx$1(css$
|
|
3416
|
-
React.createElement(DatePickerBody, { cx: cx$1(css$
|
|
3505
|
+
React.createElement(FlexRow, { cx: css$n.bodesWrapper, alignItems: "top" },
|
|
3506
|
+
React.createElement(DatePickerBody, { cx: cx$1(css$n.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 }),
|
|
3507
|
+
React.createElement(DatePickerBody, { cx: cx$1(css$n.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 }),
|
|
3417
3508
|
((_b = this.props.value) === null || _b === void 0 ? void 0 : _b.view) !== 'DAY_SELECTION' && (React.createElement("div", { style: {
|
|
3418
3509
|
left: this.state.activePart === 'from' && '50%',
|
|
3419
3510
|
right: this.state.activePart === 'to' && '50%',
|
|
3420
|
-
}, className: css$
|
|
3511
|
+
}, className: css$n.blocker }))),
|
|
3421
3512
|
this.props.presets && this.renderPresets()),
|
|
3422
3513
|
this.props.renderFooter && this.props.renderFooter())));
|
|
3423
3514
|
};
|
|
@@ -3468,11 +3559,11 @@ class RangeDatePickerBody extends React.Component {
|
|
|
3468
3559
|
});
|
|
3469
3560
|
}
|
|
3470
3561
|
render() {
|
|
3471
|
-
return (React.createElement("div", Object.assign({ className: cx$1(css$
|
|
3562
|
+
return (React.createElement("div", Object.assign({ className: cx$1(css$n.root, uuiDatePickerBodyBase.container, this.props.cx) }, this.props.rawProps), this.renderDatePicker()));
|
|
3472
3563
|
}
|
|
3473
3564
|
}
|
|
3474
3565
|
|
|
3475
|
-
var css$
|
|
3566
|
+
var css$m = {"uui-typography":"kRFh0u","hero-header":"PuwmR-","promo-header":"_817QbA","uui-critical":"C4t-kM","uui-success":"ydfX2d","uui-warning":"mDQvoD","uui-typography-size-12":"HAxTMZ","uui-typography-size-14":"rjV3tq","uui-typography-size-16":"z0c-5q","dropdown-container":"xCiqFM","date-input":"_510nfe","size-24":"DSun5f","size-30":"_57dfyq","size-36":"fQGt5i","size-42":"kBgVek","size-48":"xpFTyF","date-input-group":"q3jDaK","separator":"_1WeMKp","mode-form":"v1H049","mode-cell":"E31Jml","uuiTypography":"kRFh0u","heroHeader":"PuwmR-","promoHeader":"_817QbA","uuiCritical":"C4t-kM","uuiSuccess":"ydfX2d","uuiWarning":"mDQvoD","uuiTypographySize12":"HAxTMZ","uuiTypographySize14":"rjV3tq","uuiTypographySize16":"z0c-5q","dropdownContainer":"xCiqFM","dateInput":"_510nfe","size24":"DSun5f","size30":"_57dfyq","size36":"fQGt5i","size42":"kBgVek","size48":"xpFTyF","dateInputGroup":"q3jDaK","modeForm":"v1H049","modeCell":"E31Jml"};
|
|
3476
3567
|
|
|
3477
3568
|
const defaultValue = { from: null, to: null };
|
|
3478
3569
|
class RangeDatePicker extends BaseRangeDatePicker {
|
|
@@ -3491,36 +3582,36 @@ class RangeDatePicker extends BaseRangeDatePicker {
|
|
|
3491
3582
|
});
|
|
3492
3583
|
}
|
|
3493
3584
|
}
|
|
3494
|
-
return (React.createElement("div", { className: cx(this.props.inputCx, css$
|
|
3495
|
-
React.createElement(TextInput, { icon: systemIcons[this.props.size || '36'].calendar, cx: cx(css$
|
|
3496
|
-
React.createElement("div", { className: css$
|
|
3497
|
-
React.createElement(TextInput, { cx: cx(css$
|
|
3585
|
+
return (React.createElement("div", { className: cx(this.props.inputCx, css$m.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 },
|
|
3586
|
+
React.createElement(TextInput, { icon: systemIcons[this.props.size || '36'].calendar, cx: cx(css$m.dateInput, css$m['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 }),
|
|
3587
|
+
React.createElement("div", { className: css$m.separator }),
|
|
3588
|
+
React.createElement(TextInput, { cx: cx(css$m.dateInput, css$m['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: (_b = this.props.rawProps) === null || _b === void 0 ? void 0 : _b.to })));
|
|
3498
3589
|
};
|
|
3499
3590
|
}
|
|
3500
3591
|
renderBody(props) {
|
|
3501
3592
|
var _a;
|
|
3502
|
-
return (React.createElement(DropdownContainer, Object.assign({}, props, { cx: cx(css$
|
|
3593
|
+
return (React.createElement(DropdownContainer, Object.assign({}, props, { cx: cx(css$m.dropdownContainer), focusLock: false }),
|
|
3503
3594
|
React.createElement(FlexRow, null,
|
|
3504
3595
|
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 }))));
|
|
3505
3596
|
}
|
|
3506
3597
|
}
|
|
3507
3598
|
|
|
3508
|
-
var css$
|
|
3599
|
+
var css$l = {"root":"HKQ-ca","blocker":"b1ysHW","marker":"I6H6oI","top":"_4jGlgZ","bottom":"ZRbmau","left":"X3-qyg","right":"Do8NvI","inside":"DzRmPs"};
|
|
3509
3600
|
|
|
3510
3601
|
function DropMarker(props) {
|
|
3511
3602
|
return props.isDndInProgress
|
|
3512
3603
|
? (React.createElement(React.Fragment, null,
|
|
3513
|
-
props.enableBlocker && React.createElement("div", { className: css$
|
|
3604
|
+
props.enableBlocker && React.createElement("div", { className: css$l.blocker }),
|
|
3514
3605
|
React.createElement("div", { className: cx([
|
|
3515
|
-
css$
|
|
3516
|
-
css$
|
|
3517
|
-
css$
|
|
3606
|
+
css$l.root,
|
|
3607
|
+
css$l.marker,
|
|
3608
|
+
css$l[props.position],
|
|
3518
3609
|
props === null || props === void 0 ? void 0 : props.cx,
|
|
3519
3610
|
]) })))
|
|
3520
3611
|
: null;
|
|
3521
3612
|
}
|
|
3522
3613
|
|
|
3523
|
-
var css$
|
|
3614
|
+
var css$k = {"uui-typography":"bjdVPG","hero-header":"KkP5A2","promo-header":"NN70h3","uui-critical":"e2dk78","uui-success":"jNvV3Y","uui-warning":"_014-hX","uui-typography-size-12":"u7IPIz","uui-typography-size-14":"tiyL2t","uui-typography-size-16":"_9CF3Gn","root":"I9m3iS","size-24":"zo94vi","size-30":"hiXoyF","size-36":"gQI3Cj","size-48":"RLVhUl","size-60":"XAd88H","uuiTypography":"bjdVPG","heroHeader":"KkP5A2","promoHeader":"NN70h3","uuiCritical":"e2dk78","uuiSuccess":"jNvV3Y","uuiWarning":"_014-hX","uuiTypographySize12":"u7IPIz","uuiTypographySize14":"tiyL2t","uuiTypographySize16":"_9CF3Gn","size24":"zo94vi","size30":"hiXoyF","size36":"gQI3Cj","size48":"RLVhUl","size60":"XAd88H"};
|
|
3524
3615
|
|
|
3525
3616
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3526
3617
|
// 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.
|
|
@@ -3532,13 +3623,11 @@ const renderDropMarkers = (props) => React.createElement(DropMarker, Object.assi
|
|
|
3532
3623
|
const propsMods = { renderCell, renderDropMarkers };
|
|
3533
3624
|
const DataTableRow = withMods(DataTableRow$1, ({ borderBottom = true, size }) => {
|
|
3534
3625
|
return [
|
|
3535
|
-
css$
|
|
3626
|
+
css$k.root, 'uui-dt-vars', borderBottom && 'uui-dt-row-border', css$k['size-' + (size || '36')],
|
|
3536
3627
|
];
|
|
3537
3628
|
}, () => propsMods);
|
|
3538
3629
|
|
|
3539
|
-
var css$
|
|
3540
|
-
|
|
3541
|
-
var css$j = {"sorting-panel-container":"g1Vwar","sort-active":"_1qQ-VD","sortingPanelContainer":"g1Vwar","sortActive":"_1qQ-VD"};
|
|
3630
|
+
var css$j = {"uui-typography":"xK-6uO","hero-header":"_1C22-M","promo-header":"A63DHb","uui-critical":"N-glf1","uui-success":"ZW0eZ6","uui-warning":"S3kR9m","uui-typography-size-12":"NMXreN","uui-typography-size-14":"TB-FHj","uui-typography-size-16":"b6c9fY","sorting-panel-container":"s-epnz","sort-active":"sMbyw-","uuiTypography":"xK-6uO","heroHeader":"_1C22-M","promoHeader":"A63DHb","uuiCritical":"N-glf1","uuiSuccess":"ZW0eZ6","uuiWarning":"S3kR9m","uuiTypographySize12":"NMXreN","uuiTypographySize14":"TB-FHj","uuiTypographySize16":"b6c9fY","sortingPanelContainer":"s-epnz","sortActive":"sMbyw-"};
|
|
3542
3631
|
|
|
3543
3632
|
var _path$h;
|
|
3544
3633
|
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); }
|
|
@@ -3590,18 +3679,14 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
3590
3679
|
options: { offset: [0, 1] },
|
|
3591
3680
|
}, mobilePopperModifier,
|
|
3592
3681
|
], []);
|
|
3593
|
-
const style = useMemo(() => ({
|
|
3594
|
-
width: isMobile() ? document.documentElement.clientWidth : undefined,
|
|
3595
|
-
}), []);
|
|
3596
3682
|
const closeDropdown = useCallback(() => props.onOpenChange(false), [props.onOpenChange]);
|
|
3597
|
-
return (React__default.createElement(Dropdown$1, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__default.createElement(
|
|
3598
|
-
React__default.createElement(
|
|
3599
|
-
|
|
3600
|
-
props.renderFilter(dropdownProps)))), modifiers: popperModifiers, value: props.isOpen, onValueChange: props.onOpenChange }));
|
|
3683
|
+
return (React__default.createElement(Dropdown$1, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__default.createElement(MobileDropdownWrapper, { width: 280, title: props.title, onClose: closeDropdown },
|
|
3684
|
+
props.isSortable && React__default.createElement(SortingPanel, { sortDirection: props.sortDirection, onSort: props.onSort }),
|
|
3685
|
+
props.renderFilter(dropdownProps))), modifiers: popperModifiers, value: props.isOpen, onValueChange: props.onOpenChange }));
|
|
3601
3686
|
};
|
|
3602
3687
|
const ColumnHeaderDropdown = React__default.memo(ColumnHeaderDropdownImpl);
|
|
3603
3688
|
|
|
3604
|
-
var css$i = {"
|
|
3689
|
+
var css$i = {"uui-typography":"bkorBr","hero-header":"Vv8CnA","promo-header":"foQFJk","uui-critical":"cIN232","uui-success":"dLVF4d","uui-warning":"_8moeH7","uui-typography-size-12":"GmMZAC","uui-typography-size-14":"tUz-WI","uui-typography-size-16":"LCoOzD","cell":"e5S818","sort-icon":"re9iBD","dropdown-icon":"fqSP-T","infoIcon":"q299ha","resizable":"Ik3WaK","size-24":"S9O-D1","size-30":"xabzzM","size-36":"pb8gW2","size-42":"_1eTgM0","size-48":"tFYIUB","padding-left-24":"Kd-A-a","padding-right-24":"pnMVIj","caption":"eMUPCA","checkbox":"oWHOu0","icon":"_5NdHFH","icon-cell":"Q4mdEY","align-right":"wEjgxl","align-center":"RuCfrQ","tooltip-wrapper":"S11ckh","cell-tooltip":"_31GTNk","upper-case":"FAu8IX","font-size-14":"bywbNf","resize-mark":"SORtOZ","draggable":"VOVZ5t","ghost":"DxWfzP","is-dragged-out":"AQwcgk","dnd-marker-left":"P3eriw","dnd-marker-right":"_1cwJC5","cell-tooltip-wrapper":"_6n8uoh","cell-tooltip-text":"-JShWF","uuiTypography":"bkorBr","heroHeader":"Vv8CnA","promoHeader":"foQFJk","uuiCritical":"cIN232","uuiSuccess":"dLVF4d","uuiWarning":"_8moeH7","uuiTypographySize12":"GmMZAC","uuiTypographySize14":"tUz-WI","uuiTypographySize16":"LCoOzD","sortIcon":"re9iBD","dropdownIcon":"fqSP-T","size24":"S9O-D1","size30":"xabzzM","size36":"pb8gW2","size42":"_1eTgM0","size48":"tFYIUB","paddingLeft24":"Kd-A-a","paddingRight24":"pnMVIj","iconCell":"Q4mdEY","alignRight":"wEjgxl","alignCenter":"RuCfrQ","tooltipWrapper":"S11ckh","cellTooltip":"_31GTNk","upperCase":"FAu8IX","fontSize14":"bywbNf","resizeMark":"SORtOZ","isDraggedOut":"AQwcgk","dndMarkerLeft":"P3eriw","dndMarkerRight":"_1cwJC5","cellTooltipWrapper":"_6n8uoh","cellTooltipText":"-JShWF"};
|
|
3605
3690
|
|
|
3606
3691
|
var _path$f;
|
|
3607
3692
|
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); }
|
|
@@ -3675,7 +3760,7 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3675
3760
|
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)),
|
|
3676
3761
|
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 })),
|
|
3677
3762
|
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 })),
|
|
3678
|
-
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$
|
|
3763
|
+
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 })))));
|
|
3679
3764
|
};
|
|
3680
3765
|
this.renderHeaderCheckbox = () => this.props.selectAll
|
|
3681
3766
|
&& 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) })));
|
|
@@ -3695,7 +3780,7 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3695
3780
|
}
|
|
3696
3781
|
}
|
|
3697
3782
|
|
|
3698
|
-
var css$h = {"header-cell":"
|
|
3783
|
+
var css$h = {"uui-typography":"_9MI91Y","hero-header":"_0Qi3-0","promo-header":"gXVGIS","uui-critical":"XfRA6H","uui-success":"p8iQSV","uui-warning":"hU8dUJ","uui-typography-size-12":"oCSbea","uui-typography-size-14":"aHJcb4","uui-typography-size-16":"lcFYqO","header-cell":"Mh1A8x","config-icon":"r42XUZ","uuiTypography":"_9MI91Y","heroHeader":"_0Qi3-0","promoHeader":"gXVGIS","uuiCritical":"XfRA6H","uuiSuccess":"p8iQSV","uuiWarning":"hU8dUJ","uuiTypographySize12":"oCSbea","uuiTypographySize14":"aHJcb4","uuiTypographySize16":"lcFYqO","headerCell":"Mh1A8x","configIcon":"r42XUZ"};
|
|
3699
3784
|
|
|
3700
3785
|
var _path$c;
|
|
3701
3786
|
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); }
|
|
@@ -3719,7 +3804,7 @@ const DataTableHeaderRow = withMods(DataTableHeaderRow$1, () => [css$h.root, 'uu
|
|
|
3719
3804
|
renderConfigButton: () => React.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: css$h.configIcon, color: "neutral", icon: ForwardRef$d }),
|
|
3720
3805
|
}));
|
|
3721
3806
|
|
|
3722
|
-
var styles$1 = {"main-panel":"
|
|
3807
|
+
var styles$1 = {"uui-typography":"nh7WgS","hero-header":"vwBmvG","promo-header":"_6iJwJ-","uui-critical":"MHu7mi","uui-success":"HOmsTS","uui-warning":"hPfS47","uui-typography-size-12":"jgNevH","uui-typography-size-14":"zyNvyW","uui-typography-size-16":"KOPUMT","main-panel":"Gesp2K","group-title":"_7SMWYC","group-title-text":"iual1t","group-title-badge":"vHuAMk","group-items":"_2uhWT6","no-data":"MB-1WA","h-divider":"IcY6eT","search-area":"Wdbpxx","uuiTypography":"nh7WgS","heroHeader":"vwBmvG","promoHeader":"_6iJwJ-","uuiCritical":"MHu7mi","uuiSuccess":"HOmsTS","uuiWarning":"hPfS47","uuiTypographySize12":"jgNevH","uuiTypographySize14":"zyNvyW","uuiTypographySize16":"KOPUMT","mainPanel":"Gesp2K","groupTitle":"_7SMWYC","groupTitleText":"iual1t","groupTitleBadge":"vHuAMk","groupItems":"_2uhWT6","noData":"MB-1WA","hDivider":"IcY6eT","searchArea":"Wdbpxx"};
|
|
3723
3808
|
|
|
3724
3809
|
var _path$b;
|
|
3725
3810
|
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); }
|
|
@@ -3798,7 +3883,7 @@ function PinIconButton(props) {
|
|
|
3798
3883
|
React.createElement(IconButton, { icon: pinIcon, onClick: pinClickHandler, isDisabled: isPinnedAlways, color: isPinned ? 'info' : undefined }))));
|
|
3799
3884
|
}
|
|
3800
3885
|
|
|
3801
|
-
var styles = {"row-wrapper":"
|
|
3886
|
+
var styles = {"uui-typography":"cT2V4-","hero-header":"rh00xg","promo-header":"Z-XykY","uui-critical":"-rXc0C","uui-success":"tg1dr8","uui-warning":"XG3Asw","uui-typography-size-12":"_4mRK-h","uui-typography-size-14":"IryKgW","uui-typography-size-16":"BR55YW","row-wrapper":"AeJi93","not-pinned":"Zprhto","pin-icon-button":"wsYjR9","checkbox":"NJv8UH","drag-handle":"utizSR","dnd-disabled":"QQXiQz","uuiTypography":"cT2V4-","heroHeader":"rh00xg","promoHeader":"Z-XykY","uuiCritical":"-rXc0C","uuiSuccess":"tg1dr8","uuiWarning":"XG3Asw","uuiTypographySize12":"_4mRK-h","uuiTypographySize14":"IryKgW","uuiTypographySize16":"BR55YW","rowWrapper":"AeJi93","notPinned":"Zprhto","pinIconButton":"wsYjR9","dragHandle":"utizSR","dndDisabled":"QQXiQz"};
|
|
3802
3887
|
|
|
3803
3888
|
const ColumnRow = React.memo(function ColumnRow(props) {
|
|
3804
3889
|
const { column } = props;
|
|
@@ -3883,7 +3968,7 @@ function ColumnsConfigurationModal(props) {
|
|
|
3883
3968
|
noVisibleColumns ? (React.createElement(Tooltip, { content: i18n$1.enableAtLeastOneColumnMessage, placement: "top-end", color: "critical" }, applyButton)) : (applyButton)))));
|
|
3884
3969
|
}
|
|
3885
3970
|
|
|
3886
|
-
var css$g = {"listContainer":"
|
|
3971
|
+
var css$g = {"listContainer":"TKLWIu","header":"oQabbQ","group":"uYIJg-","stickyHeader":"_4WoN1g"};
|
|
3887
3972
|
|
|
3888
3973
|
const getChildrenAndRest = (row, rows) => {
|
|
3889
3974
|
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
@@ -3949,7 +4034,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
3949
4034
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3950
4035
|
ref: ref
|
|
3951
4036
|
}, props), /*#__PURE__*/React.createElement("g", {
|
|
3952
|
-
clipPath: "url(#
|
|
4037
|
+
clipPath: "url(#odcvp14f5jigh3wnc_a)"
|
|
3953
4038
|
}, _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
|
|
3954
4039
|
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",
|
|
3955
4040
|
fill: "#F5F6FA"
|
|
@@ -3970,7 +4055,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
3970
4055
|
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",
|
|
3971
4056
|
fill: "#1D1E26"
|
|
3972
4057
|
})), /*#__PURE__*/React.createElement("mask", {
|
|
3973
|
-
id: "
|
|
4058
|
+
id: "odcvp1h2yq1tv2m5c_b",
|
|
3974
4059
|
style: {
|
|
3975
4060
|
maskType: "alpha"
|
|
3976
4061
|
},
|
|
@@ -3983,7 +4068,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
3983
4068
|
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",
|
|
3984
4069
|
fill: "#9BDEFF"
|
|
3985
4070
|
}))), _g$1 || (_g$1 = /*#__PURE__*/React.createElement("g", {
|
|
3986
|
-
mask: "url(#
|
|
4071
|
+
mask: "url(#odcvp1h2yq1tv2m5c_b)",
|
|
3987
4072
|
fillRule: "evenodd",
|
|
3988
4073
|
clipRule: "evenodd"
|
|
3989
4074
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -4069,7 +4154,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4069
4154
|
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",
|
|
4070
4155
|
fill: "#fff"
|
|
4071
4156
|
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
4072
|
-
id: "
|
|
4157
|
+
id: "odcvp14f5jigh3wnc_a"
|
|
4073
4158
|
}, /*#__PURE__*/React.createElement("path", {
|
|
4074
4159
|
fill: "#fff",
|
|
4075
4160
|
transform: "translate(.552)",
|
|
@@ -4078,7 +4163,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4078
4163
|
};
|
|
4079
4164
|
var ForwardRef$9 = /*#__PURE__*/forwardRef(SvgEmptyTable);
|
|
4080
4165
|
|
|
4081
|
-
var css$f = {"sticky-header":"
|
|
4166
|
+
var css$f = {"sticky-header":"Yr1gKJ","table":"x6cmhN","no-results":"OEhAL9","no-results-icon":"_3qURi8","no-results-title":"RkhM12","stickyHeader":"Yr1gKJ","noResults":"OEhAL9","noResultsIcon":"_3qURi8","noResultsTitle":"RkhM12"};
|
|
4082
4167
|
|
|
4083
4168
|
function DataTable(props) {
|
|
4084
4169
|
var _a;
|
|
@@ -4117,21 +4202,20 @@ function DataTable(props) {
|
|
|
4117
4202
|
React.createElement("div", { className: cx$1(uuiScrollShadows.top, {
|
|
4118
4203
|
[uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
4119
4204
|
}) })),
|
|
4120
|
-
props.exactRowsCount !== 0 ? (React.createElement(DataRowsContainer, { headerRef: headerRef, listContainerRef: listContainerRef, estimatedHeight: estimatedHeight, offsetY: offsetY, scrollShadows: scrollShadows, renderRow: renderRow, rows: rows })) : (renderNoResultsBlock === null || renderNoResultsBlock === void 0 ? void 0 : renderNoResultsBlock()),
|
|
4121
|
-
React.createElement(Blocker, { isEnabled: props.isReloading }))), [
|
|
4205
|
+
props.exactRowsCount !== 0 ? (React.createElement(DataRowsContainer, { headerRef: headerRef, listContainerRef: listContainerRef, estimatedHeight: estimatedHeight, offsetY: offsetY, scrollShadows: scrollShadows, renderRow: renderRow, rows: rows })) : (renderNoResultsBlock === null || renderNoResultsBlock === void 0 ? void 0 : renderNoResultsBlock()))), [
|
|
4122
4206
|
props, columns, rows, renderNoResultsBlock, onConfigurationButtonClick,
|
|
4123
4207
|
]);
|
|
4124
4208
|
return (React.createElement(DataTableSelectionProvider, { onCopy: props.onCopy, rows: rows, columns: columns },
|
|
4125
|
-
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'),
|
|
4209
|
+
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: {
|
|
4126
4210
|
role: 'table',
|
|
4127
4211
|
'aria-colcount': columns.length,
|
|
4128
4212
|
'aria-rowcount': props.rowsCount,
|
|
4129
4213
|
} })));
|
|
4130
4214
|
}
|
|
4131
4215
|
|
|
4132
|
-
var css$e = {"root":"
|
|
4216
|
+
var css$e = {"root":"nUu4v6"};
|
|
4133
4217
|
|
|
4134
|
-
var css$d = {"root":"
|
|
4218
|
+
var css$d = {"root":"YgJxo0","burger-content":"NVCq2B","burgerContent":"NVCq2B"};
|
|
4135
4219
|
|
|
4136
4220
|
var _path$7;
|
|
4137
4221
|
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); }
|
|
@@ -4198,7 +4282,7 @@ var SvgTriangle = function SvgTriangle(props, ref) {
|
|
|
4198
4282
|
};
|
|
4199
4283
|
var ForwardRef$6 = /*#__PURE__*/forwardRef(SvgTriangle);
|
|
4200
4284
|
|
|
4201
|
-
var css$c = {"root":"
|
|
4285
|
+
var css$c = {"uui-typography":"uRDD-m","hero-header":"_7ZRcTr","promo-header":"_9YioH4","uui-critical":"WMI4cG","uui-success":"_8b7ece","uui-warning":"i3RDqG","uui-typography-size-12":"aGHOA6","uui-typography-size-14":"e4FJ9a","uui-typography-size-16":"abgIlP","root":"JdVEUQ","button-primary":"LijBED","button-secondary":"IQMsTt","hasIcon":"-NN9-5","dropdown":"ELLUye","uuiTypography":"uRDD-m","heroHeader":"_7ZRcTr","promoHeader":"_9YioH4","uuiCritical":"WMI4cG","uuiSuccess":"_8b7ece","uuiWarning":"i3RDqG","uuiTypographySize12":"aGHOA6","uuiTypographySize14":"e4FJ9a","uuiTypographySize16":"abgIlP","buttonPrimary":"LijBED","buttonSecondary":"IQMsTt"};
|
|
4202
4286
|
|
|
4203
4287
|
const BurgerButton = withMods(Button$1, (props) => [
|
|
4204
4288
|
css$c.root,
|
|
@@ -4255,13 +4339,13 @@ var SvgMenuInputCancel = function SvgMenuInputCancel(props, ref) {
|
|
|
4255
4339
|
};
|
|
4256
4340
|
var ForwardRef$5 = /*#__PURE__*/forwardRef(SvgMenuInputCancel);
|
|
4257
4341
|
|
|
4258
|
-
var css$b = {"search-input":"
|
|
4342
|
+
var css$b = {"search-input":"tGROR5","searchInput":"tGROR5"};
|
|
4259
4343
|
|
|
4260
4344
|
function BurgerSearch(props) {
|
|
4261
4345
|
return (React.createElement(TextInput$1, { cx: cx(css$b.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$15, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$5 }));
|
|
4262
4346
|
}
|
|
4263
4347
|
|
|
4264
|
-
var css$a = {"root":"
|
|
4348
|
+
var css$a = {"root":"k2ZCD9","group-header":"bTDk44","group-name":"BI-PeX","line":"pVl6Qh","groupHeader":"bTDk44","groupName":"BI-PeX"};
|
|
4265
4349
|
|
|
4266
4350
|
function BurgerGroupHeader(props) {
|
|
4267
4351
|
return (React.createElement("div", { className: cx(css$a.root, css$a.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4269,7 +4353,7 @@ function BurgerGroupHeader(props) {
|
|
|
4269
4353
|
React.createElement("span", { className: css$a.groupName }, props.caption)));
|
|
4270
4354
|
}
|
|
4271
4355
|
|
|
4272
|
-
var css$9 = {"root":"
|
|
4356
|
+
var css$9 = {"uui-typography":"GVaIuA","hero-header":"CorQar","promo-header":"sGwxGY","uui-critical":"xTp4Xc","uui-success":"cjfefQ","uui-warning":"NiAu13","uui-typography-size-12":"_5zDq6v","uui-typography-size-14":"uWCTKx","uui-typography-size-16":"SSenM-","root":"QxsGk0","type-primary":"zRNtmE","type-secondary":"ximnJC","uuiTypography":"GVaIuA","heroHeader":"CorQar","promoHeader":"sGwxGY","uuiCritical":"xTp4Xc","uuiSuccess":"cjfefQ","uuiWarning":"NiAu13","uuiTypographySize12":"_5zDq6v","uuiTypographySize14":"uWCTKx","uuiTypographySize16":"SSenM-","typePrimary":"zRNtmE","typeSecondary":"ximnJC"};
|
|
4273
4357
|
|
|
4274
4358
|
var _path$4;
|
|
4275
4359
|
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); }
|
|
@@ -4289,7 +4373,7 @@ var ForwardRef$4 = /*#__PURE__*/forwardRef(SvgChevronDown24);
|
|
|
4289
4373
|
|
|
4290
4374
|
const MainMenuButton = withMods(Button$1, (mods) => [css$9.root, css$9['type-' + (mods.type || 'primary')]], () => ({ dropdownIcon: ForwardRef$4, role: 'menuitem' }));
|
|
4291
4375
|
|
|
4292
|
-
var css$8 = {"dropdown-body":"
|
|
4376
|
+
var css$8 = {"dropdown-body":"mgSK0p","dropdownBody":"mgSK0p"};
|
|
4293
4377
|
|
|
4294
4378
|
class MainMenuDropdown extends React.Component {
|
|
4295
4379
|
render() {
|
|
@@ -4322,7 +4406,7 @@ function applyMainMenuMods() {
|
|
|
4322
4406
|
'uui-main_menu',
|
|
4323
4407
|
];
|
|
4324
4408
|
}
|
|
4325
|
-
const MainMenu = withMods(MainMenu
|
|
4409
|
+
const MainMenu = withMods(uuiComponents.MainMenu, applyMainMenuMods, () => ({
|
|
4326
4410
|
Burger,
|
|
4327
4411
|
MainMenuDropdown,
|
|
4328
4412
|
}));
|
|
@@ -4343,12 +4427,12 @@ var SvgGlobalMenu = function SvgGlobalMenu(props, ref) {
|
|
|
4343
4427
|
};
|
|
4344
4428
|
var ForwardRef$3 = /*#__PURE__*/forwardRef(SvgGlobalMenu);
|
|
4345
4429
|
|
|
4346
|
-
var css$7 = {"global-menu-btn":"
|
|
4430
|
+
var css$7 = {"global-menu-btn":"dDPxEL","globalMenuIcon":"_2b33-m","globalMenuBtn":"dDPxEL"};
|
|
4347
4431
|
|
|
4348
4432
|
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),
|
|
4349
4433
|
React.createElement(IconContainer, { icon: ForwardRef$3, cx: css$7.globalMenuIcon }))));
|
|
4350
4434
|
|
|
4351
|
-
var css$6 = {"container":"
|
|
4435
|
+
var css$6 = {"container":"-wZrLg","open":"EXNBJy"};
|
|
4352
4436
|
|
|
4353
4437
|
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 },
|
|
4354
4438
|
React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -4356,18 +4440,18 @@ const MainMenuAvatar = React.forwardRef((props, ref) => (React.createElement("bu
|
|
|
4356
4440
|
props.isDropdown && (React.createElement("div", null,
|
|
4357
4441
|
React.createElement(IconContainer, { icon: ForwardRef$1b, flipY: props.isOpen }))))));
|
|
4358
4442
|
|
|
4359
|
-
var css$5 = {"search-input":"
|
|
4443
|
+
var css$5 = {"search-input":"_7PPGLK","searchInput":"_7PPGLK"};
|
|
4360
4444
|
|
|
4361
4445
|
const MainMenuSearch = React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
4362
4446
|
var _a;
|
|
4363
4447
|
return (React.createElement(TextInput$1, Object.assign({ iconPosition: "left", icon: ForwardRef$15, 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)));
|
|
4364
4448
|
} }))));
|
|
4365
4449
|
|
|
4366
|
-
var css$4 = {"container":"
|
|
4450
|
+
var css$4 = {"container":"atjytZ"};
|
|
4367
4451
|
|
|
4368
4452
|
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))));
|
|
4369
4453
|
|
|
4370
|
-
var css$3 = {"root":"
|
|
4454
|
+
var css$3 = {"root":"_6oLV6I"};
|
|
4371
4455
|
|
|
4372
4456
|
const Anchor = withMods(Anchor$1, () => [css$3.root]);
|
|
4373
4457
|
|
|
@@ -4424,7 +4508,7 @@ var SvgShape = function SvgShape(props, ref) {
|
|
|
4424
4508
|
};
|
|
4425
4509
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgShape);
|
|
4426
4510
|
|
|
4427
|
-
var css$2 = {"root":"
|
|
4511
|
+
var css$2 = {"root":"GYZECa","drop-start":"AIhmOf","drop-over":"NvN90A","link":"cL95WF","drop-area":"E9-ozb","icon-blue":"EiTHWZ","dropStart":"AIhmOf","dropOver":"NvN90A","dropArea":"E9-ozb","iconBlue":"EiTHWZ"};
|
|
4428
4512
|
|
|
4429
4513
|
class DropSpot extends React.Component {
|
|
4430
4514
|
constructor() {
|
|
@@ -4448,9 +4532,9 @@ class DropSpot extends React.Component {
|
|
|
4448
4532
|
}
|
|
4449
4533
|
}
|
|
4450
4534
|
|
|
4451
|
-
var css$1 = {"root":"
|
|
4535
|
+
var css$1 = {"root":"_9Y-z2O","file-name":"L-LfnB","default-color":"zaZeIU","doc-color":"sBpP7I","xls-color":"_6c0Ve4","pdf-color":"liEOmG","movie-color":"aIy8ez","img-color":"_78cDpF","mov-color":"DKhayr","error-block":"xln0jE","icons-block":"oHcpts","fileName":"L-LfnB","defaultColor":"zaZeIU","docColor":"sBpP7I","xlsColor":"_6c0Ve4","pdfColor":"liEOmG","movieColor":"aIy8ez","imgColor":"_78cDpF","movColor":"DKhayr","errorBlock":"xln0jE","iconsBlock":"oHcpts"};
|
|
4452
4536
|
|
|
4453
|
-
var css = {"root":"
|
|
4537
|
+
var css = {"root":"XjgmVj"};
|
|
4454
4538
|
|
|
4455
4539
|
const SvgCircleProgress = React.forwardRef((props, ref) => {
|
|
4456
4540
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -4558,8 +4642,8 @@ const FileCard = React.forwardRef((props, ref) => {
|
|
|
4558
4642
|
progress && progress < 100 && abortXHR();
|
|
4559
4643
|
onClick();
|
|
4560
4644
|
};
|
|
4561
|
-
return (React.createElement(FlexCell, { ref: ref, cx: cx$1(css$1.root,
|
|
4562
|
-
React.createElement(FlexRow, {
|
|
4645
|
+
return (React.createElement(FlexCell, { ref: ref, cx: cx$1(css$1.root, 'uui-file_card', (isLoading || (error === null || error === void 0 ? void 0 : error.isError)) && uuiMod.loading, componentCx, (error === null || error === void 0 ? void 0 : error.isError) && uuiMod.error), minWidth: width, width: !width ? '100%' : undefined },
|
|
4646
|
+
React.createElement(FlexRow, { size: "36", alignItems: "top", spacing: "6" },
|
|
4563
4647
|
fileExtension && getIcon(fileExtension),
|
|
4564
4648
|
React.createElement(FlexCell, { width: "100%" },
|
|
4565
4649
|
React.createElement(Text, { size: "18", fontSize: "14", lineHeight: "18", color: progress < 100 ? 'secondary' : 'primary', cx: css$1.fileName }, fileName),
|
|
@@ -4569,5 +4653,5 @@ const FileCard = React.forwardRef((props, ref) => {
|
|
|
4569
4653
|
isCrossShow && React.createElement(IconButton, { icon: ForwardRef$1, onClick: removeHandler })))));
|
|
4570
4654
|
});
|
|
4571
4655
|
|
|
4572
|
-
export { Accordion, Alert, Anchor, AvatarStack, Badge, Blocker, Burger, BurgerButton, BurgerGroupHeader, BurgerSearch, Button, Calendar, Checkbox, CheckboxGroup, ClearNotification, ColumnHeaderDropdown, ColumnsConfigurationModal, ConfirmationModal, ControlGroup, DataPickerBody, DataPickerFooter, DataPickerHeader, DataPickerRow, DataRowsContainer, DataTable, DataTableCell, DataTableHeaderCell, DataTableHeaderRow, DataTableRow, DatePicker, DatePickerBody, DropMarker, DropSpot, Dropdown, DropdownContainer, DropdownMenuBody, DropdownMenuButton, DropdownMenuHeader, DropdownMenuSplitter, DropdownMenuSwitchButton, DropdownSubMenu, EditMode, ErrorAlert, ErrorNotification, FileCard, FilterItemBody, FiltersPanel, FlexCell, FlexRow, Form, GlobalMenu, HintAlert, HintNotification, IDropdownControlKeys, IconButton, IndeterminateBar, IndicatorBar,
|
|
4656
|
+
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, EditMode, 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, allButtonColors, allButtonFills, allEpamBadgeSemanticColors, allFillStyles, allFontStyles, allIconColors, allLinkButtonColors, allRowSizes, allSemanticColors, allSizes, allTextColors, allTextSizes, applyBadgeMods, applyButtonMods, applyCheckboxMods, applyDateSelectionMods, applyInputAddonMods, applyNumericInputMods, applyProgressBarMods, applySliderMods, applySpinnerMods, applySwitchMods, applyTagMods, applyTextAreaMods, applyTextInputMods, defaultPredicates, getHighlightRanges, getHighlightedSearchMatches, getTextClasses, i18n, propsMods, rangeDatePickerPresets, renderCell, renderDropMarkers, useColumnsWithFilters, useForm, uuiDatePickerBody, weekCount };
|
|
4573
4657
|
//# sourceMappingURL=index.esm.js.map
|