@epam/uui 5.2.0 → 5.3.0-rc.1
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 +38 -35
- package/components/buttons/Button.d.ts +14 -0
- package/components/buttons/Button.d.ts.map +1 -0
- package/components/buttons/IconButton.d.ts +1 -1
- package/components/buttons/LinkButton.d.ts.map +1 -1
- package/components/buttons/TabButton.d.ts +2 -1
- package/components/buttons/TabButton.d.ts.map +1 -1
- package/components/buttons/index.d.ts +1 -1
- package/components/buttons/index.d.ts.map +1 -1
- package/components/datePickers/DatePickerBody.d.ts +1 -2
- package/components/datePickers/DatePickerBody.d.ts.map +1 -1
- package/components/dnd/DropMarker.d.ts.map +1 -1
- 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/index.d.ts +1 -0
- package/components/inputs/index.d.ts.map +1 -1
- package/components/layout/Accordion.d.ts.map +1 -1
- package/components/layout/FlexItems/FlexRow.d.ts +1 -0
- package/components/layout/FlexItems/FlexRow.d.ts.map +1 -1
- package/components/layout/FlexItems/Panel.d.ts +1 -0
- package/components/layout/FlexItems/Panel.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/Burger.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/BurgerButton.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/BurgerGroupHeader.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/BurgerSearch.d.ts.map +1 -1
- 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/Alert.d.ts +5 -5
- package/components/overlays/Alert.d.ts.map +1 -1
- package/components/overlays/DropdownContainer.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/overlays/Modals.d.ts.map +1 -1
- package/components/overlays/Tooltip.d.ts +1 -1
- package/components/pickers/DataPickerBody.d.ts.map +1 -1
- package/components/pickers/PickerInput.d.ts.map +1 -1
- package/components/tables/DataTable.d.ts +1 -0
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableCell.d.ts +1 -0
- package/components/tables/DataTableCell.d.ts.map +1 -1
- package/components/tables/DataTableHeaderCell.d.ts +1 -0
- package/components/tables/DataTableHeaderCell.d.ts.map +1 -1
- package/components/tables/DataTableHeaderRow.d.ts +1 -0
- package/components/tables/DataTableHeaderRow.d.ts.map +1 -1
- package/components/tables/DataTableRow.d.ts +1 -0
- package/components/tables/DataTableRow.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/PinIconButton.d.ts.map +1 -1
- package/components/types.d.ts +4 -6
- package/components/types.d.ts.map +1 -1
- package/components/typography/RichTextView.d.ts.map +1 -1
- package/components/typography/Text.d.ts +4 -2
- 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/ProgressBar.d.ts.map +1 -1
- 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 -0
- 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 +1565 -1454
- package/index.esm.js.map +1 -1
- package/index.js +1570 -1455
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/stats.html +1 -1
- package/styles.css +9360 -3726
- package/styles.css.map +1 -1
- package/components/buttons/Button/Button.d.ts +0 -13
- package/components/buttons/Button/Button.d.ts.map +0 -1
- package/components/buttons/Button/index.d.ts +0 -2
- package/components/buttons/Button/index.d.ts.map +0 -1
package/index.esm.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { forwardRef, useContext, useRef, useState, useMemo, useEffect, useCallback } from 'react';
|
|
1
3
|
import * as uuiComponents from '@epam/uui-components';
|
|
2
|
-
import {
|
|
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';
|
|
3
5
|
export { Avatar, FlexSpacer, IconContainer } from '@epam/uui-components';
|
|
4
|
-
import { withMods,
|
|
5
|
-
import
|
|
6
|
-
import React__default, { forwardRef, useContext, useRef, useState, useCallback, useMemo, useEffect } from 'react';
|
|
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';
|
|
7
8
|
import dayjs from 'dayjs';
|
|
8
9
|
import customParseFormat from 'dayjs/plugin/customParseFormat.js';
|
|
9
10
|
import updateLocale from 'dayjs/plugin/updateLocale.js';
|
|
10
|
-
import cx from 'classnames';
|
|
11
11
|
import localeData from 'dayjs/plugin/localeData';
|
|
12
|
-
import isoWeek from 'dayjs/plugin/isoWeek.js';
|
|
13
12
|
import sortBy from 'lodash.sortby';
|
|
13
|
+
import isoWeek from 'dayjs/plugin/isoWeek.js';
|
|
14
14
|
import FocusLock from 'react-focus-lock';
|
|
15
15
|
|
|
16
16
|
var _path$1d;
|
|
@@ -572,36 +572,275 @@ const systemIcons = {
|
|
|
572
572
|
},
|
|
573
573
|
};
|
|
574
574
|
|
|
575
|
-
var
|
|
575
|
+
var css$1n = {"root":"_3yrNYH"};
|
|
576
|
+
|
|
577
|
+
const AvatarStack = withMods(AvatarStack$1, () => [css$1n.root]);
|
|
578
|
+
|
|
579
|
+
var css$1m = {"root":"Luqjzj","size-24":"hqp2yC","size-18":"CWtD1X","size-12":"gP-GDE","size24":"hqp2yC","size18":"CWtD1X","size12":"gP-GDE"};
|
|
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":"qKdfCX","hero-header":"_28cSe9","promo-header":"_9k-ESQ","uui-critical":"WEGK2o","uui-success":"I4jQ-0","uui-warning":"qcFmm4","uui-typography-size-12":"Kvo9tH","uui-typography-size-14":"R6ydKu","uui-typography-size-16":"dOdj4s","root":"-OXwOB","size-18":"Br3o3X","size-24":"JQue1N","size-30":"IEANf-","size-36":"kpAN3K","size-42":"cvz6B5","size-48":"mAmFTX","uuiTypography":"qKdfCX","heroHeader":"_28cSe9","promoHeader":"_9k-ESQ","uuiCritical":"WEGK2o","uuiSuccess":"I4jQ-0","uuiWarning":"qcFmm4","uuiTypographySize12":"Kvo9tH","uuiTypographySize14":"R6ydKu","uuiTypographySize16":"dOdj4s","size18":"Br3o3X","size24":"JQue1N","size30":"IEANf-","size36":"kpAN3K","size42":"cvz6B5","size48":"mAmFTX"};
|
|
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":"SLTHmI","hero-header":"nP3Scp","promo-header":"_5mHlmJ","uui-critical":"jzZYi0","uui-success":"uxmDHo","uui-warning":"G8DOto","uui-typography-size-12":"ggPO3-","uui-typography-size-14":"iI144g","uui-typography-size-16":"hDxksW","root":"duaqU8","size-18":"DLx6dT","size-24":"REDfgX","size-30":"rvZnC-","size-36":"oAipv0","size-42":"MaSU-p","size-48":"paNCBJ","uuiTypography":"SLTHmI","heroHeader":"nP3Scp","promoHeader":"_5mHlmJ","uuiCritical":"jzZYi0","uuiSuccess":"uxmDHo","uuiWarning":"G8DOto","uuiTypographySize12":"ggPO3-","uuiTypographySize14":"iI144g","uuiTypographySize16":"hDxksW","size18":"DLx6dT","size24":"REDfgX","size30":"rvZnC-","size36":"oAipv0","size42":"MaSU-p","size48":"paNCBJ"};
|
|
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":"gVFB-y","uui-spinner":"OQNRYv","uuiSpinner":"OQNRYv"};
|
|
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":"NOi-AT","spacer":"dNxuOX","mode-ghost":"iG7OeE","size-24":"bHqhVZ","size-30":"rU9f5C","navigation-size-24":"_-3q0oi","navigation-size-30":"QNZHCb","modeGhost":"iG7OeE","size24":"bHqhVZ","size30":"rU9f5C","navigationSize24":"_-3q0oi","navigationSize30":"QNZHCb"};
|
|
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":"k-MwpF","bar":"cVuIlF","progressBar-indeterminate":"Jb0M7h","size-12":"i5H6RI","size-18":"ykaiPn","size-24":"Z4bAzW","progressBarIndeterminate":"Jb0M7h","size12":"i5H6RI","size18":"ykaiPn","size24":"Z4bAzW"};
|
|
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":"_1zljNJ","striped":"_3Oc66t","animate-stripes":"AzaLeg","size-12":"AYDPkB","size-18":"gozExq","size-24":"pe8pQp","animateStripes":"AzaLeg","size12":"AYDPkB","size18":"gozExq","size24":"pe8pQp"};
|
|
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":"_5xOU14"};
|
|
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":"GSVC1S","size-12":"uYbavj","size-18":"kU-W4y","size-24":"n47c-p","size12":"uYbavj","size18":"kU-W4y","size24":"n47c-p"};
|
|
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":"cXfXyf","hero-header":"zjzfnQ","promo-header":"uSCJT2","uui-critical":"A20pNH","uui-success":"YmMKmU","uui-warning":"Jipexj","uui-typography-size-12":"rkDzYE","uui-typography-size-14":"LWHKtv","uui-typography-size-16":"kpQMMv","root":"j-Bm7f","size-18":"gs-Msa","size-24":"f95UdQ","size-30":"aqqftl","size-36":"MVEaV8","size-42":"tHcyPL","size-48":"jPboMx","uuiTypography":"cXfXyf","heroHeader":"zjzfnQ","promoHeader":"uSCJT2","uuiCritical":"A20pNH","uuiSuccess":"YmMKmU","uuiWarning":"Jipexj","uuiTypographySize12":"rkDzYE","uuiTypographySize14":"LWHKtv","uuiTypographySize16":"kpQMMv","size18":"gs-Msa","size24":"f95UdQ","size30":"aqqftl","size36":"MVEaV8","size42":"tHcyPL","size48":"jPboMx"};
|
|
576
813
|
|
|
577
814
|
const allButtonColors = [
|
|
578
|
-
'accent', 'primary', 'secondary', '
|
|
815
|
+
'accent', 'primary', 'critical', 'secondary', 'neutral',
|
|
579
816
|
];
|
|
580
|
-
const defaultSize$
|
|
817
|
+
const defaultSize$8 = '36';
|
|
581
818
|
function applyButtonMods(mods) {
|
|
582
819
|
return [
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
820
|
+
css$1d.root,
|
|
821
|
+
'uui-button',
|
|
822
|
+
`uui-fill-${mods.fill || 'solid'}`,
|
|
823
|
+
`uui-color-${mods.color || 'primary'}`,
|
|
824
|
+
css$1d[`size-${mods.size || defaultSize$8}`],
|
|
587
825
|
];
|
|
588
826
|
}
|
|
589
|
-
const Button = withMods(
|
|
590
|
-
dropdownIcon: systemIcons[props.size || defaultSize$
|
|
591
|
-
clearIcon: systemIcons[props.size || defaultSize$
|
|
827
|
+
const Button = withMods(Button$1, applyButtonMods, (props) => ({
|
|
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":"MfCqIL"};
|
|
595
834
|
|
|
596
835
|
const allIconColors = [
|
|
597
|
-
'info', 'success', 'warning', 'error', 'secondary', '
|
|
836
|
+
'info', 'success', 'warning', 'error', 'secondary', 'neutral',
|
|
598
837
|
];
|
|
599
838
|
function applyIconButtonMods(mods) {
|
|
600
|
-
return [`
|
|
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":"_97b6xl","size-18":"bobENg","size-24":"GSss5o","size-30":"jixH8P","size-36":"_28Kg5s","size-42":"-RyIBL","size-48":"yJ78sb","size18":"bobENg","size24":"GSss5o","size30":"jixH8P","size36":"_28Kg5s","size42":"-RyIBL","size48":"yJ78sb"};
|
|
605
844
|
|
|
606
845
|
function getIconClass(props) {
|
|
607
846
|
const classList = {
|
|
@@ -620,45 +859,46 @@ 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
|
-
|
|
628
|
-
css$
|
|
866
|
+
'uui-link_button',
|
|
867
|
+
css$1b.root,
|
|
868
|
+
css$1b['size-' + (mods.size || defaultSize$7)],
|
|
629
869
|
...getIconClass(mods),
|
|
630
|
-
`
|
|
870
|
+
`uui-color-${mods.color || 'primary'}`,
|
|
631
871
|
];
|
|
632
872
|
}
|
|
633
873
|
const LinkButton = withMods(Button$1, applyLinkButtonMods, (props) => ({
|
|
634
|
-
dropdownIcon: systemIcons[props.size || defaultSize$
|
|
635
|
-
clearIcon: systemIcons[props.size || defaultSize$
|
|
874
|
+
dropdownIcon: systemIcons[props.size || defaultSize$7].foldingArrow,
|
|
875
|
+
clearIcon: systemIcons[props.size || defaultSize$7].clear,
|
|
636
876
|
}));
|
|
637
877
|
|
|
638
|
-
var css$
|
|
878
|
+
var css$1a = {"uui-typography":"tZEox0","hero-header":"hj-7-y","promo-header":"dl2f3x","uui-critical":"_2Zxdu3","uui-success":"PR9bWG","uui-warning":"aNA5ug","uui-typography-size-12":"YihI9r","uui-typography-size-14":"FEjTsi","uui-typography-size-16":"m45-bW","root":"bPVRhU","withNotify":"a5k8wB","size-36":"CKA3pD","size-48":"x7Tnbl","size-60":"M8F7KE","uuiTypography":"tZEox0","heroHeader":"hj-7-y","promoHeader":"dl2f3x","uuiCritical":"_2Zxdu3","uuiSuccess":"PR9bWG","uuiWarning":"aNA5ug","uuiTypographySize12":"YihI9r","uuiTypographySize14":"FEjTsi","uuiTypographySize16":"m45-bW","size36":"CKA3pD","size48":"x7Tnbl","size60":"M8F7KE"};
|
|
639
879
|
|
|
640
880
|
function applyTabButtonMods(mods) {
|
|
641
881
|
return [
|
|
642
|
-
css$
|
|
643
|
-
'
|
|
644
|
-
css$
|
|
645
|
-
mods.withNotify && css$
|
|
882
|
+
css$1a.root,
|
|
883
|
+
'uui-tab-button',
|
|
884
|
+
css$1a['size-' + (mods.size || '48')],
|
|
885
|
+
mods.withNotify && css$1a.withNotify,
|
|
646
886
|
...getIconClass(mods),
|
|
647
887
|
];
|
|
648
888
|
}
|
|
649
|
-
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" }))) })));
|
|
650
890
|
|
|
651
|
-
var css$
|
|
891
|
+
var css$19 = {"uui-typography":"i6pq-e","hero-header":"CkLeId","promo-header":"gOXAii","uui-critical":"_4IsaOF","uui-success":"_37-jsb","uui-warning":"dzv9dX","uui-typography-size-12":"nJIR6e","uui-typography-size-14":"Cj5mzm","uui-typography-size-16":"txaPS-","root":"ipnm9s","uuiTypography":"i6pq-e","heroHeader":"CkLeId","promoHeader":"gOXAii","uuiCritical":"_4IsaOF","uuiSuccess":"_37-jsb","uuiWarning":"dzv9dX","uuiTypographySize12":"nJIR6e","uuiTypographySize14":"Cj5mzm","uuiTypographySize16":"txaPS-"};
|
|
652
892
|
|
|
653
893
|
function applyVerticalTabButtonMods() {
|
|
654
|
-
return [css$
|
|
894
|
+
return [css$19.root];
|
|
655
895
|
}
|
|
656
896
|
const VerticalTabButton = withMods(TabButton, applyVerticalTabButtonMods);
|
|
657
897
|
|
|
658
|
-
const
|
|
898
|
+
const allButtonFills = [
|
|
659
899
|
'solid', 'outline', 'ghost', 'none',
|
|
660
900
|
];
|
|
661
|
-
const allFillStyles =
|
|
901
|
+
const allFillStyles = allButtonFills;
|
|
662
902
|
const allSizes = [
|
|
663
903
|
'24', '30', '36', '42', '48',
|
|
664
904
|
];
|
|
@@ -668,11 +908,8 @@ const allRowSizes = [
|
|
|
668
908
|
const allSemanticColors = [
|
|
669
909
|
'info', 'success', 'warning', 'error',
|
|
670
910
|
];
|
|
671
|
-
const allButtonSemanticColors = [
|
|
672
|
-
'accent', 'primary', 'secondary', 'negative',
|
|
673
|
-
];
|
|
674
911
|
const allEpamBadgeSemanticColors = [
|
|
675
|
-
'info', 'success', 'warning', '
|
|
912
|
+
'info', 'success', 'warning', 'critical', 'neutral',
|
|
676
913
|
];
|
|
677
914
|
const allTextSizes = [
|
|
678
915
|
'18', '24', '30', '36', '48',
|
|
@@ -687,89 +924,92 @@ var EditMode;
|
|
|
687
924
|
EditMode["INLINE"] = "inline";
|
|
688
925
|
})(EditMode || (EditMode = {}));
|
|
689
926
|
|
|
690
|
-
var _path$
|
|
691
|
-
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); }
|
|
692
929
|
var SvgCheck12 = function SvgCheck12(props, ref) {
|
|
693
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
930
|
+
return /*#__PURE__*/React.createElement("svg", _extends$K({
|
|
694
931
|
width: 12,
|
|
695
932
|
height: 12,
|
|
696
933
|
viewBox: "0 0 12 12",
|
|
697
934
|
xmlns: "http://www.w3.org/2000/svg",
|
|
698
935
|
ref: ref
|
|
699
|
-
}, props), _path$
|
|
936
|
+
}, props), _path$I || (_path$I = /*#__PURE__*/React.createElement("path", {
|
|
700
937
|
fillRule: "evenodd",
|
|
701
938
|
d: "M9.491 3.449 10.51 4.55 5.663 9.024 2.487 6.047l1.026-1.094L5.67 6.975z"
|
|
702
939
|
})));
|
|
703
940
|
};
|
|
704
|
-
var ForwardRef$
|
|
941
|
+
var ForwardRef$K = /*#__PURE__*/forwardRef(SvgCheck12);
|
|
705
942
|
|
|
706
|
-
var _path$
|
|
707
|
-
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); }
|
|
708
945
|
var SvgCheck18 = function SvgCheck18(props, ref) {
|
|
709
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
946
|
+
return /*#__PURE__*/React.createElement("svg", _extends$J({
|
|
710
947
|
width: 18,
|
|
711
948
|
height: 18,
|
|
712
949
|
viewBox: "0 0 18 18",
|
|
713
950
|
xmlns: "http://www.w3.org/2000/svg",
|
|
714
951
|
ref: ref
|
|
715
|
-
}, props), _path$
|
|
952
|
+
}, props), _path$H || (_path$H = /*#__PURE__*/React.createElement("path", {
|
|
716
953
|
fillRule: "evenodd",
|
|
717
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"
|
|
718
955
|
})));
|
|
719
956
|
};
|
|
720
|
-
var ForwardRef$
|
|
957
|
+
var ForwardRef$J = /*#__PURE__*/forwardRef(SvgCheck18);
|
|
721
958
|
|
|
722
|
-
var _path$
|
|
723
|
-
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); }
|
|
724
961
|
var SvgPartlySelect12 = function SvgPartlySelect12(props, ref) {
|
|
725
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
962
|
+
return /*#__PURE__*/React.createElement("svg", _extends$I({
|
|
726
963
|
width: 12,
|
|
727
964
|
height: 12,
|
|
728
965
|
viewBox: "0 0 12 12",
|
|
729
966
|
xmlns: "http://www.w3.org/2000/svg",
|
|
730
967
|
ref: ref
|
|
731
|
-
}, props), _path$
|
|
968
|
+
}, props), _path$G || (_path$G = /*#__PURE__*/React.createElement("path", {
|
|
732
969
|
fillRule: "evenodd",
|
|
733
970
|
d: "M9 5v2H3V5z"
|
|
734
971
|
})));
|
|
735
972
|
};
|
|
736
|
-
var ForwardRef$
|
|
973
|
+
var ForwardRef$I = /*#__PURE__*/forwardRef(SvgPartlySelect12);
|
|
737
974
|
|
|
738
|
-
var _path$
|
|
739
|
-
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); }
|
|
740
977
|
var SvgPartlySelect18 = function SvgPartlySelect18(props, ref) {
|
|
741
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
978
|
+
return /*#__PURE__*/React.createElement("svg", _extends$H({
|
|
742
979
|
width: 18,
|
|
743
980
|
height: 18,
|
|
744
981
|
viewBox: "0 0 18 18",
|
|
745
982
|
xmlns: "http://www.w3.org/2000/svg",
|
|
746
983
|
ref: ref
|
|
747
|
-
}, props), _path$
|
|
984
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React.createElement("path", {
|
|
748
985
|
fillRule: "evenodd",
|
|
749
986
|
d: "M14 8v2H4V8z"
|
|
750
987
|
})));
|
|
751
988
|
};
|
|
752
|
-
var ForwardRef$
|
|
989
|
+
var ForwardRef$H = /*#__PURE__*/forwardRef(SvgPartlySelect18);
|
|
753
990
|
|
|
754
|
-
var css$
|
|
991
|
+
var css$18 = {"uui-typography":"Mg45YS","hero-header":"KJDGUT","promo-header":"E2nOBY","uui-critical":"v5N25b","uui-success":"K5fqX9","uui-warning":"Y9k65L","uui-typography-size-12":"zKHwhO","uui-typography-size-14":"b5Kw3K","uui-typography-size-16":"xLHkib","root":"y-s0Dd","size-18":"QDd8hm","size-12":"-TzHMf","mode-cell":"Sp-K-n","uuiTypography":"Mg45YS","heroHeader":"KJDGUT","promoHeader":"E2nOBY","uuiCritical":"v5N25b","uuiSuccess":"K5fqX9","uuiWarning":"Y9k65L","uuiTypographySize12":"zKHwhO","uuiTypographySize14":"b5Kw3K","uuiTypographySize16":"xLHkib","size18":"QDd8hm","size12":"-TzHMf","modeCell":"Sp-K-n"};
|
|
755
992
|
|
|
756
993
|
function applyCheckboxMods(mods) {
|
|
757
994
|
return [
|
|
758
|
-
css$
|
|
995
|
+
css$18.root,
|
|
996
|
+
css$18['size-' + (mods.size || '18')],
|
|
997
|
+
css$18['mode-' + (mods.mode || 'form')],
|
|
998
|
+
'uui-color-primary',
|
|
759
999
|
];
|
|
760
1000
|
}
|
|
761
1001
|
const applyUUICheckboxProps = (props) => ({
|
|
762
|
-
icon: props.size === '12' ? ForwardRef$
|
|
763
|
-
indeterminateIcon: props.size === '12' ? ForwardRef$
|
|
1002
|
+
icon: props.size === '12' ? ForwardRef$K : ForwardRef$J,
|
|
1003
|
+
indeterminateIcon: props.size === '12' ? ForwardRef$I : ForwardRef$H,
|
|
764
1004
|
});
|
|
765
1005
|
const Checkbox = withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
766
1006
|
|
|
767
|
-
var css$
|
|
1007
|
+
var css$17 = {"uui-typography":"zooAAk","hero-header":"qNwiT2","promo-header":"NioGFN","uui-critical":"dV5OWt","uui-success":"oYEFLn","uui-warning":"gAYURJ","uui-typography-size-12":"KyIR1A","uui-typography-size-14":"htC76H","uui-typography-size-16":"Dgodbd","root":"sTrlfp","size-18":"PwLpfK","size-12":"NN-8sx","uuiTypography":"zooAAk","heroHeader":"qNwiT2","promoHeader":"NioGFN","uuiCritical":"dV5OWt","uuiSuccess":"oYEFLn","uuiWarning":"gAYURJ","uuiTypographySize12":"KyIR1A","uuiTypographySize14":"htC76H","uuiTypographySize16":"Dgodbd","size18":"PwLpfK","size12":"NN-8sx"};
|
|
768
1008
|
|
|
769
1009
|
var _circle;
|
|
770
|
-
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); }
|
|
771
1011
|
var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
772
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1012
|
+
return /*#__PURE__*/React.createElement("svg", _extends$G({
|
|
773
1013
|
width: 18,
|
|
774
1014
|
height: 18,
|
|
775
1015
|
viewBox: "0 0 18 18",
|
|
@@ -781,18 +1021,18 @@ var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
|
781
1021
|
r: 6
|
|
782
1022
|
})));
|
|
783
1023
|
};
|
|
784
|
-
var ForwardRef$
|
|
1024
|
+
var ForwardRef$G = /*#__PURE__*/forwardRef(SvgRadioPoint);
|
|
785
1025
|
|
|
786
1026
|
function applyRadioInputMods(mods) {
|
|
787
|
-
return [css$
|
|
1027
|
+
return [css$17.root, css$17['size-' + (mods.size || '18')], 'uui-color-primary'];
|
|
788
1028
|
}
|
|
789
|
-
const RadioInput = withMods(RadioInput$1, applyRadioInputMods, () => ({ icon: ForwardRef$
|
|
1029
|
+
const RadioInput = withMods(RadioInput$1, applyRadioInputMods, () => ({ icon: ForwardRef$G }));
|
|
790
1030
|
|
|
791
|
-
var css$
|
|
1031
|
+
var css$16 = {"root":"TpZL4g","size-12":"nPz9EM","size-18":"_2MXQIy","size-24":"lgiXar","size12":"nPz9EM","size18":"_2MXQIy","size24":"lgiXar"};
|
|
792
1032
|
|
|
793
1033
|
function applySwitchMods(mods) {
|
|
794
1034
|
return [
|
|
795
|
-
|
|
1035
|
+
css$16.root, css$16['size-' + (mods.size || '18')], 'uui-color-primary',
|
|
796
1036
|
];
|
|
797
1037
|
}
|
|
798
1038
|
const Switch = withMods(uuiComponents.Switch, applySwitchMods);
|
|
@@ -841,27 +1081,27 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
841
1081
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
842
1082
|
};
|
|
843
1083
|
|
|
844
|
-
var textInputCss = {"
|
|
1084
|
+
var textInputCss = {"uui-typography":"wKSDEr","hero-header":"CRLjy5","promo-header":"GwjwwV","uui-critical":"oO63xI","uui-success":"Cd3IBr","uui-warning":"dpNmTt","uui-typography-size-12":"_4E9hWO","uui-typography-size-14":"-dERdY","uui-typography-size-16":"wcflJo","root":"PW1w5J","mode-form":"GbkRWY","mode-inline":"_517VoZ","mode-cell":"d0Tuxx","size-24":"_5EUT3t","size-30":"NLpCIH","size-36":"vbwnuz","size-42":"hobixB","size-48":"mTTCip","uuiTypography":"wKSDEr","heroHeader":"CRLjy5","promoHeader":"GwjwwV","uuiCritical":"oO63xI","uuiSuccess":"Cd3IBr","uuiWarning":"dpNmTt","uuiTypographySize12":"_4E9hWO","uuiTypographySize14":"-dERdY","uuiTypographySize16":"wcflJo","modeForm":"GbkRWY","modeInline":"_517VoZ","modeCell":"d0Tuxx","size24":"_5EUT3t","size30":"NLpCIH","size36":"vbwnuz","size42":"hobixB","size48":"mTTCip"};
|
|
845
1085
|
|
|
846
|
-
const defaultSize$
|
|
1086
|
+
const defaultSize$6 = '36';
|
|
847
1087
|
const defaultMode$5 = EditMode.FORM;
|
|
848
1088
|
function applyTextInputMods(mods) {
|
|
849
1089
|
return [
|
|
850
1090
|
textInputCss.root,
|
|
851
|
-
textInputCss['size-' + (mods.size || defaultSize$
|
|
1091
|
+
textInputCss['size-' + (mods.size || defaultSize$6)],
|
|
852
1092
|
textInputCss['mode-' + (mods.mode || defaultMode$5)],
|
|
853
1093
|
];
|
|
854
1094
|
}
|
|
855
1095
|
const TextInput = withMods(TextInput$1, applyTextInputMods, (props) => ({
|
|
856
|
-
acceptIcon: systemIcons[props.size || defaultSize$
|
|
857
|
-
cancelIcon: systemIcons[props.size || defaultSize$
|
|
858
|
-
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,
|
|
859
1099
|
}));
|
|
860
1100
|
const SearchInput = React__default.forwardRef((props, ref) => {
|
|
861
1101
|
// analytics events are sending in IEditableDebouncer, so we need to avoid sending events in TextInput
|
|
862
1102
|
const textInputProps = __rest(props, []);
|
|
863
1103
|
delete textInputProps.getValueChangeAnalyticsEvent;
|
|
864
|
-
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
|
|
865
1105
|
// In a lot of places, it is required to check if a clicked element is a part of some other element.
|
|
866
1106
|
// Usually, those are global click event handlers. To allow that logic to work correctly, it is necessary
|
|
867
1107
|
// to execute the `disappearing` of the cross (setState execution) after the event will pass through all the handlers.
|
|
@@ -870,41 +1110,41 @@ const SearchInput = React__default.forwardRef((props, ref) => {
|
|
|
870
1110
|
: undefined, type: "search", inputMode: "search", ref: ref }, textInputProps, iEditable))) })));
|
|
871
1111
|
});
|
|
872
1112
|
|
|
873
|
-
var css$
|
|
1113
|
+
var css$15 = {"root":"pud-3w"};
|
|
874
1114
|
|
|
875
|
-
const ControlGroup = withMods(ControlGroup$1, () => [css$
|
|
1115
|
+
const ControlGroup = withMods(ControlGroup$1, () => [css$15.root]);
|
|
876
1116
|
|
|
877
1117
|
function MultiSwitchComponent(props, ref) {
|
|
878
|
-
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),
|
|
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' } }))))));
|
|
879
1119
|
}
|
|
880
1120
|
const MultiSwitch = React.forwardRef(MultiSwitchComponent);
|
|
881
1121
|
|
|
882
|
-
var css$
|
|
1122
|
+
var css$14 = {"uui-typography":"Y--vnV","hero-header":"crBUoh","promo-header":"laf--p","uui-critical":"c-pYk0","uui-success":"-UPuxw","uui-warning":"qqUTRa","uui-typography-size-12":"_4HZnEj","uui-typography-size-14":"OaO9nN","uui-typography-size-16":"lcQcNn","root":"_73qIvK","size-24":"KfRyeG","size-30":"LK4vyc","size-36":"_2j6CAc","size-42":"WxpuNH","size-48":"L2rWy3","mode-form":"stfG4E","mode-cell":"_5V-5jI","uuiTypography":"Y--vnV","heroHeader":"crBUoh","promoHeader":"laf--p","uuiCritical":"c-pYk0","uuiSuccess":"-UPuxw","uuiWarning":"qqUTRa","uuiTypographySize12":"_4HZnEj","uuiTypographySize14":"OaO9nN","uuiTypographySize16":"lcQcNn","size24":"KfRyeG","size30":"LK4vyc","size36":"_2j6CAc","size42":"WxpuNH","size48":"L2rWy3","modeForm":"stfG4E","modeCell":"_5V-5jI"};
|
|
883
1123
|
|
|
884
|
-
const defaultSize$
|
|
1124
|
+
const defaultSize$5 = '36';
|
|
885
1125
|
const defaultMode$4 = EditMode.FORM;
|
|
886
1126
|
function applyNumericInputMods(mods) {
|
|
887
1127
|
return [
|
|
888
|
-
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)],
|
|
889
1129
|
];
|
|
890
1130
|
}
|
|
891
1131
|
const NumericInput = withMods(NumericInput$1, applyNumericInputMods, (props) => {
|
|
892
1132
|
var _a, _b;
|
|
893
1133
|
return ({
|
|
894
|
-
upIcon: systemIcons[props.size || defaultSize$
|
|
895
|
-
downIcon: systemIcons[props.size || defaultSize$
|
|
1134
|
+
upIcon: systemIcons[props.size || defaultSize$5].foldingArrow,
|
|
1135
|
+
downIcon: systemIcons[props.size || defaultSize$5].foldingArrow,
|
|
896
1136
|
align: (_a = props.align) !== null && _a !== void 0 ? _a : (props.mode === 'cell' ? 'right' : 'left'),
|
|
897
1137
|
disableArrows: (_b = props.disableArrows) !== null && _b !== void 0 ? _b : props.mode === 'cell',
|
|
898
1138
|
});
|
|
899
1139
|
});
|
|
900
1140
|
|
|
901
|
-
var css$
|
|
1141
|
+
var css$13 = {"uui-typography":"EzJpt1","hero-header":"WtxTZ7","promo-header":"goLCPT","uui-critical":"aWoVpE","uui-success":"fnapwX","uui-warning":"tacqlh","uui-typography-size-12":"_2yeqgu","uui-typography-size-14":"JZeT65","uui-typography-size-16":"Of568E","root":"s1awNl","mode-form":"KjBQEi","mode-cell":"xM18WA","mode-inline":"yixNK2","size-24":"hx0hBi","size-30":"_6Ry-pN","size-36":"qnIlPr","size-42":"_5v4J70","size-48":"ohC0J-","uuiTypography":"EzJpt1","heroHeader":"WtxTZ7","promoHeader":"goLCPT","uuiCritical":"aWoVpE","uuiSuccess":"fnapwX","uuiWarning":"tacqlh","uuiTypographySize12":"_2yeqgu","uuiTypographySize14":"JZeT65","uuiTypographySize16":"Of568E","modeForm":"KjBQEi","modeCell":"xM18WA","modeInline":"yixNK2","size24":"hx0hBi","size30":"_6Ry-pN","size36":"qnIlPr","size42":"_5v4J70","size48":"ohC0J-"};
|
|
902
1142
|
|
|
903
|
-
const defaultSize$
|
|
1143
|
+
const defaultSize$4 = '36';
|
|
904
1144
|
const defaultMode$3 = EditMode.FORM;
|
|
905
1145
|
function applyTextAreaMods(mods) {
|
|
906
1146
|
return [
|
|
907
|
-
css$
|
|
1147
|
+
css$13.root, css$13['size-' + (mods.size || defaultSize$4)], css$13['mode-' + (mods.mode || defaultMode$3)],
|
|
908
1148
|
];
|
|
909
1149
|
}
|
|
910
1150
|
const TextArea = withMods(TextArea$1, applyTextAreaMods, (props) => ({
|
|
@@ -912,18 +1152,20 @@ const TextArea = withMods(TextArea$1, applyTextAreaMods, (props) => ({
|
|
|
912
1152
|
maxLength: props.mode === EditMode.CELL ? undefined : props.maxLength,
|
|
913
1153
|
}));
|
|
914
1154
|
|
|
915
|
-
var css$
|
|
1155
|
+
var css$12 = {"root":"zOegt3"};
|
|
916
1156
|
|
|
917
1157
|
function applyDropdownContainerMods(mods) {
|
|
918
1158
|
return [
|
|
919
|
-
css$
|
|
1159
|
+
css$12.root,
|
|
1160
|
+
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1161
|
+
mods.padding && `padding-${mods.padding}`,
|
|
920
1162
|
];
|
|
921
1163
|
}
|
|
922
1164
|
const DropdownContainer = withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
923
1165
|
|
|
924
|
-
var css$
|
|
1166
|
+
var css$11 = {"root":"bVj5a8","icon":"-B-Fzs","date-input":"RPoQmy","dateInput":"RPoQmy"};
|
|
925
1167
|
|
|
926
|
-
const TimePickerBody = withMods(TimePickerBody$1, () => [css$
|
|
1168
|
+
const TimePickerBody = withMods(TimePickerBody$1, () => [css$11.root], () => ({ addIcon: ForwardRef$1b, subtractIcon: ForwardRef$1b }));
|
|
927
1169
|
|
|
928
1170
|
dayjs.extend(customParseFormat);
|
|
929
1171
|
const defaultMode$2 = EditMode.FORM;
|
|
@@ -943,7 +1185,7 @@ class TimePicker extends BaseTimePicker {
|
|
|
943
1185
|
});
|
|
944
1186
|
}
|
|
945
1187
|
}
|
|
946
|
-
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 })));
|
|
947
1189
|
};
|
|
948
1190
|
this.renderBody = (props) => {
|
|
949
1191
|
var _a;
|
|
@@ -953,50 +1195,23 @@ class TimePicker extends BaseTimePicker {
|
|
|
953
1195
|
}
|
|
954
1196
|
}
|
|
955
1197
|
|
|
956
|
-
var css$
|
|
1198
|
+
var css$10 = {"root":"HtayTa"};
|
|
957
1199
|
|
|
958
1200
|
function applyInputAddonMods() {
|
|
959
1201
|
return [
|
|
960
|
-
css$
|
|
1202
|
+
css$10.root,
|
|
961
1203
|
];
|
|
962
1204
|
}
|
|
963
1205
|
const InputAddon = withMods(InputAddon$1, applyInputAddonMods);
|
|
964
1206
|
|
|
965
|
-
var css
|
|
1207
|
+
var css$$ = {"root":"i6Is7L"};
|
|
966
1208
|
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
972
|
-
width: 18,
|
|
973
|
-
height: 18,
|
|
974
|
-
viewBox: "0 0 18 18",
|
|
975
|
-
ref: ref
|
|
976
|
-
}, props), _path$I || (_path$I = /*#__PURE__*/React.createElement("path", {
|
|
977
|
-
fillRule: "evenodd",
|
|
978
|
-
d: "M11.557 5.558 10.5 4.5 6 9l4.5 4.5 1.057-1.057L8.123 9l3.434-3.442z",
|
|
979
|
-
clipRule: "evenodd"
|
|
980
|
-
})));
|
|
981
|
-
};
|
|
982
|
-
var ForwardRef$J = /*#__PURE__*/forwardRef(SvgNavigationChevronLeft18);
|
|
1209
|
+
function applySliderMods() {
|
|
1210
|
+
return [css$$.root];
|
|
1211
|
+
}
|
|
1212
|
+
const Slider = withMods(Slider$1, applySliderMods);
|
|
983
1213
|
|
|
984
|
-
var
|
|
985
|
-
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); }
|
|
986
|
-
var SvgNavigationChevronRight18 = function SvgNavigationChevronRight18(props, ref) {
|
|
987
|
-
return /*#__PURE__*/React.createElement("svg", _extends$I({
|
|
988
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
989
|
-
width: 18,
|
|
990
|
-
height: 18,
|
|
991
|
-
viewBox: "0 0 18 18",
|
|
992
|
-
ref: ref
|
|
993
|
-
}, props), _path$H || (_path$H = /*#__PURE__*/React.createElement("path", {
|
|
994
|
-
fillRule: "evenodd",
|
|
995
|
-
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",
|
|
996
|
-
clipRule: "evenodd"
|
|
997
|
-
})));
|
|
998
|
-
};
|
|
999
|
-
var ForwardRef$I = /*#__PURE__*/forwardRef(SvgNavigationChevronRight18);
|
|
1214
|
+
var css$_ = {"container":"hHnkCY"};
|
|
1000
1215
|
|
|
1001
1216
|
dayjs.extend(localeData);
|
|
1002
1217
|
const uuiHeader = {
|
|
@@ -1071,20 +1286,22 @@ function DatePickerHeader(props) {
|
|
|
1071
1286
|
var _a, _b, _c;
|
|
1072
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()}`;
|
|
1073
1288
|
}, [(_a = props.value) === null || _a === void 0 ? void 0 : _a.view, (_b = props.value) === null || _b === void 0 ? void 0 : _b.displayedDate]);
|
|
1074
|
-
return (React.createElement("div", { className: cx(css$
|
|
1289
|
+
return (React.createElement("div", { className: cx(css$_.container, uuiHeader.container, props.cx) },
|
|
1075
1290
|
React.createElement("header", { className: uuiHeader.header },
|
|
1076
|
-
React.createElement(Button, { icon: ForwardRef$
|
|
1077
|
-
React.createElement(Button, { caption: title,
|
|
1078
|
-
React.createElement(Button, { icon: ForwardRef$
|
|
1291
|
+
React.createElement(Button, { icon: props.navIconLeft || ForwardRef$M, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: () => onLeftNavigationArrow() }),
|
|
1292
|
+
React.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: () => onCaptionClick(props.value.view) }),
|
|
1293
|
+
React.createElement(Button, { icon: props.navIconRight || ForwardRef$L, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: () => onRightNavigationArrow() }))));
|
|
1079
1294
|
}
|
|
1080
1295
|
|
|
1081
|
-
var css$
|
|
1296
|
+
var css$Z = {"uui-typography":"_0luRPY","hero-header":"I8ShoX","promo-header":"X5AHbP","uui-critical":"vvJeNC","uui-success":"UJOPvv","uui-warning":"TEvB8J","uui-typography-size-12":"LWivlJ","uui-typography-size-14":"Q1gxlm","uui-typography-size-16":"u4J1pZ","root":"eBu0Yg","uuiTypography":"_0luRPY","heroHeader":"I8ShoX","promoHeader":"X5AHbP","uuiCritical":"vvJeNC","uuiSuccess":"UJOPvv","uuiWarning":"TEvB8J","uuiTypographySize12":"LWivlJ","uuiTypographySize14":"Q1gxlm","uuiTypographySize16":"u4J1pZ"};
|
|
1082
1297
|
|
|
1083
1298
|
function applyDateSelectionMods() {
|
|
1084
|
-
return [css$
|
|
1299
|
+
return [css$Z.root];
|
|
1085
1300
|
}
|
|
1086
1301
|
const Calendar = withMods(Calendar$1, applyDateSelectionMods);
|
|
1087
1302
|
|
|
1303
|
+
var css$Y = {"uui-typography":"eeqC4H","hero-header":"vCQzFG","promo-header":"_99L26i","uui-critical":"bKEb7B","uui-success":"pu8a1h","uui-warning":"z0tDwz","uui-typography-size-12":"rGgewF","uui-typography-size-14":"sdIhjS","uui-typography-size-16":"_2pjxtH","root":"UNeGQl","uuiTypography":"eeqC4H","heroHeader":"vCQzFG","promoHeader":"_99L26i","uuiCritical":"bKEb7B","uuiSuccess":"pu8a1h","uuiWarning":"z0tDwz","uuiTypographySize12":"rGgewF","uuiTypographySize14":"sdIhjS","uuiTypographySize16":"_2pjxtH"};
|
|
1304
|
+
|
|
1088
1305
|
dayjs.extend(updateLocale);
|
|
1089
1306
|
const uuiDatePickerBody = {
|
|
1090
1307
|
wrapper: 'uui-datepickerBody-wrapper',
|
|
@@ -1110,8 +1327,8 @@ class DatePickerBody extends DatePickerBodyBase {
|
|
|
1110
1327
|
return (React.createElement(Calendar, { value: dayjs(this.props.value.selectedDate), onValueChange: this.onDayClick, displayedDate: this.props.value.displayedDate, filter: this.props.filter, getDayCX: this.props.getDayCX, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday }));
|
|
1111
1328
|
}
|
|
1112
1329
|
};
|
|
1113
|
-
this.
|
|
1114
|
-
return (React.createElement("div", { className: cx$1(uuiDatePickerBody.wrapper, this.props.cx) },
|
|
1330
|
+
this.renderBody = () => {
|
|
1331
|
+
return (React.createElement("div", { className: cx$1(css$Y.root, uuiDatePickerBody.wrapper, this.props.cx) },
|
|
1115
1332
|
React.createElement(DatePickerHeader, { value: this.props.value, onValueChange: (newValue) => this.props.setDisplayedDateAndView(newValue.displayedDate, newValue.view) }),
|
|
1116
1333
|
this.getView()));
|
|
1117
1334
|
};
|
|
@@ -1120,106 +1337,106 @@ class DatePickerBody extends DatePickerBodyBase {
|
|
|
1120
1337
|
}
|
|
1121
1338
|
}
|
|
1122
1339
|
|
|
1123
|
-
var _path$
|
|
1124
|
-
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); }
|
|
1125
1342
|
var SvgNotificationCheckCircleFill24 = function SvgNotificationCheckCircleFill24(props, ref) {
|
|
1126
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1343
|
+
return /*#__PURE__*/React.createElement("svg", _extends$F({
|
|
1127
1344
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1128
1345
|
width: 24,
|
|
1129
1346
|
height: 24,
|
|
1130
1347
|
viewBox: "0 0 24 24",
|
|
1131
1348
|
ref: ref
|
|
1132
|
-
}, props), _path$
|
|
1349
|
+
}, props), _path$E || (_path$E = /*#__PURE__*/React.createElement("path", {
|
|
1133
1350
|
fillRule: "evenodd",
|
|
1134
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"
|
|
1135
1352
|
})));
|
|
1136
1353
|
};
|
|
1137
|
-
var ForwardRef$
|
|
1354
|
+
var ForwardRef$F = /*#__PURE__*/forwardRef(SvgNotificationCheckCircleFill24);
|
|
1138
1355
|
|
|
1139
|
-
var _path$
|
|
1140
|
-
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); }
|
|
1141
1358
|
var SvgNotificationWarningFill24 = function SvgNotificationWarningFill24(props, ref) {
|
|
1142
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1359
|
+
return /*#__PURE__*/React.createElement("svg", _extends$E({
|
|
1143
1360
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1144
1361
|
width: 24,
|
|
1145
1362
|
height: 24,
|
|
1146
1363
|
viewBox: "0 0 24 24",
|
|
1147
1364
|
ref: ref
|
|
1148
|
-
}, props), _path$
|
|
1365
|
+
}, props), _path$D || (_path$D = /*#__PURE__*/React.createElement("path", {
|
|
1149
1366
|
fillRule: "evenodd",
|
|
1150
1367
|
d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
1151
1368
|
})));
|
|
1152
1369
|
};
|
|
1153
|
-
var ForwardRef$
|
|
1370
|
+
var ForwardRef$E = /*#__PURE__*/forwardRef(SvgNotificationWarningFill24);
|
|
1154
1371
|
|
|
1155
|
-
var _path$
|
|
1156
|
-
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); }
|
|
1157
1374
|
var SvgNotificationErrorFill24 = function SvgNotificationErrorFill24(props, ref) {
|
|
1158
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1375
|
+
return /*#__PURE__*/React.createElement("svg", _extends$D({
|
|
1159
1376
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1160
1377
|
width: 24,
|
|
1161
1378
|
height: 24,
|
|
1162
1379
|
viewBox: "0 0 24 24",
|
|
1163
1380
|
ref: ref
|
|
1164
|
-
}, props), _path$
|
|
1381
|
+
}, props), _path$C || (_path$C = /*#__PURE__*/React.createElement("path", {
|
|
1165
1382
|
fillRule: "evenodd",
|
|
1166
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"
|
|
1167
1384
|
})));
|
|
1168
1385
|
};
|
|
1169
|
-
var ForwardRef$
|
|
1386
|
+
var ForwardRef$D = /*#__PURE__*/forwardRef(SvgNotificationErrorFill24);
|
|
1170
1387
|
|
|
1171
|
-
var _path$
|
|
1172
|
-
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); }
|
|
1173
1390
|
var SvgNotificationHelpFill24 = function SvgNotificationHelpFill24(props, ref) {
|
|
1174
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1391
|
+
return /*#__PURE__*/React.createElement("svg", _extends$C({
|
|
1175
1392
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1176
1393
|
width: 24,
|
|
1177
1394
|
height: 24,
|
|
1178
1395
|
viewBox: "0 0 24 24",
|
|
1179
1396
|
ref: ref
|
|
1180
|
-
}, props), _path$
|
|
1397
|
+
}, props), _path$B || (_path$B = /*#__PURE__*/React.createElement("path", {
|
|
1181
1398
|
fillRule: "evenodd",
|
|
1182
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"
|
|
1183
1400
|
})));
|
|
1184
1401
|
};
|
|
1185
|
-
var ForwardRef$
|
|
1402
|
+
var ForwardRef$C = /*#__PURE__*/forwardRef(SvgNotificationHelpFill24);
|
|
1186
1403
|
|
|
1187
|
-
var _path$
|
|
1188
|
-
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); }
|
|
1189
1406
|
var SvgNavigationClose24$1 = function SvgNavigationClose24(props, ref) {
|
|
1190
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1407
|
+
return /*#__PURE__*/React.createElement("svg", _extends$B({
|
|
1191
1408
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1192
1409
|
width: 24,
|
|
1193
1410
|
height: 24,
|
|
1194
1411
|
viewBox: "0 0 24 24",
|
|
1195
1412
|
ref: ref
|
|
1196
|
-
}, props), _path$
|
|
1413
|
+
}, props), _path$A || (_path$A = /*#__PURE__*/React.createElement("path", {
|
|
1197
1414
|
fillRule: "evenodd",
|
|
1198
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"
|
|
1199
1416
|
})));
|
|
1200
1417
|
};
|
|
1201
|
-
var ForwardRef$
|
|
1418
|
+
var ForwardRef$B = /*#__PURE__*/forwardRef(SvgNavigationClose24$1);
|
|
1202
1419
|
|
|
1203
|
-
var css$
|
|
1420
|
+
var css$X = {"root":"KoUIMl","icon-wrapper":"-GbN7J","alert-wrapper":"Ej-McX","size-48":"SfSn1o","size-36":"GCLvIP","action-wrapper":"OV2c3-","action-icon":"nC1q5A","action-link":"fKsbUr","close-icon":"u2pb-R","main-path":"fP1cmr","content":"_6040CY","iconWrapper":"-GbN7J","alertWrapper":"Ej-McX","size48":"SfSn1o","size36":"GCLvIP","actionWrapper":"OV2c3-","actionIcon":"nC1q5A","actionLink":"fKsbUr","closeIcon":"u2pb-R","mainPath":"fP1cmr"};
|
|
1204
1421
|
|
|
1205
|
-
const Alert = React.forwardRef((props, ref) => (React.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx(css$
|
|
1206
|
-
React.createElement("div", { className: css$
|
|
1207
|
-
props.icon && (React.createElement("div", { className: css$
|
|
1208
|
-
React.createElement(IconContainer, { icon: props.icon, cx: css$
|
|
1209
|
-
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 },
|
|
1210
1427
|
props.children,
|
|
1211
|
-
props.actions && (React.createElement("div", { className: css$
|
|
1212
|
-
props.onClose && React.createElement(IconButton, { icon: ForwardRef$
|
|
1213
|
-
const WarningAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1214
|
-
const SuccessAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1215
|
-
const HintAlert = React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1216
|
-
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)));
|
|
1217
1434
|
|
|
1218
1435
|
function Dropdown(props) {
|
|
1219
1436
|
return React.createElement(Dropdown$1, Object.assign({}, props));
|
|
1220
1437
|
}
|
|
1221
1438
|
|
|
1222
|
-
var css$
|
|
1439
|
+
var css$W = {"uui-typography":"xg9nMp","hero-header":"_96hWwf","promo-header":"_0kcJUW","uui-critical":"iEdwhf","uui-success":"S-2FvP","uui-warning":"YGcauS","uui-typography-size-12":"MjJSkJ","uui-typography-size-14":"ITj0AB","uui-typography-size-16":"JYHFwV","root":"SYbzu8","bodyRoot":"uIUDhI","submenuRootItem":"rCRRoE","iconAfter":"w9-S58","iconCheck":"tSMiP7","splitterRoot":"_2QPbMc","splitter":"SveQBA","headerRoot":"_11IGTt","itemRoot":"_5Rhd10","icon":"_20OJGT","link":"_2i8eJn","indent":"SXcXyx","uuiTypography":"xg9nMp","heroHeader":"_96hWwf","promoHeader":"_0kcJUW","uuiCritical":"iEdwhf","uuiSuccess":"S-2FvP","uuiWarning":"YGcauS","uuiTypographySize12":"MjJSkJ","uuiTypographySize14":"ITj0AB","uuiTypographySize16":"JYHFwV"};
|
|
1223
1440
|
|
|
1224
1441
|
const icons = systemIcons['36'];
|
|
1225
1442
|
var IDropdownControlKeys;
|
|
@@ -1254,9 +1471,9 @@ function DropdownMenuContainer(props) {
|
|
|
1254
1471
|
props.onClose();
|
|
1255
1472
|
}
|
|
1256
1473
|
};
|
|
1257
|
-
return (React__default.createElement(DropdownContainer, Object.assign({}, props, { rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'menu' }), ref: menuRef, lockProps: { onKeyDown: handleArrowKeys } })));
|
|
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 })));
|
|
1258
1475
|
}
|
|
1259
|
-
const DropdownMenuBody = withMods(DropdownMenuContainer, () => [css$
|
|
1476
|
+
const DropdownMenuBody = withMods(DropdownMenuContainer, () => [css$W.bodyRoot], (props) => {
|
|
1260
1477
|
const dropdownRawProps = props.minWidth ? Object.assign(Object.assign({}, props.rawProps), { style: { minWidth: `${props.minWidth}px` } }) : null;
|
|
1261
1478
|
return (Object.assign(Object.assign({ closeOnKey: IDropdownControlKeys.ESCAPE }, props), { rawProps: dropdownRawProps || props.rawProps }));
|
|
1262
1479
|
});
|
|
@@ -1280,32 +1497,32 @@ const DropdownMenuButton = React__default.forwardRef((props, ref) => {
|
|
|
1280
1497
|
const getMenuButtonContent = () => {
|
|
1281
1498
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1282
1499
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1283
|
-
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'info' : '
|
|
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) }));
|
|
1284
1501
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1285
1502
|
isIconBefore && iconElement,
|
|
1286
|
-
React__default.createElement(Text$1, { cx: props.indent && css$
|
|
1503
|
+
React__default.createElement(Text$1, { cx: props.indent && css$W.indent }, caption),
|
|
1287
1504
|
isIconAfter && (React__default.createElement(React__default.Fragment, null,
|
|
1288
1505
|
React__default.createElement(FlexSpacer, null),
|
|
1289
1506
|
iconElement))));
|
|
1290
1507
|
};
|
|
1291
1508
|
const isAnchor = Boolean(link || href);
|
|
1292
|
-
const itemClassNames = cx$1(props.cx, css$
|
|
1293
|
-
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: {
|
|
1294
1511
|
tabIndex: isDisabled ? -1 : 0,
|
|
1295
1512
|
role: 'menuitem',
|
|
1296
1513
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
1297
1514
|
}, cx: itemClassNames, onClick: handleClick, ref: ref },
|
|
1298
1515
|
getMenuButtonContent(),
|
|
1299
|
-
isSelected && React__default.createElement(IconContainer, { icon: icons.accept, cx: css$
|
|
1516
|
+
isSelected && React__default.createElement(IconContainer, { icon: icons.accept, cx: cx$1(css$W.root, css$W.selectedCheckmark) })));
|
|
1300
1517
|
});
|
|
1301
1518
|
DropdownMenuButton.displayName = 'DropdownMenuButton';
|
|
1302
1519
|
function DropdownMenuSplitter(props) {
|
|
1303
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
1304
|
-
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 })));
|
|
1305
1522
|
}
|
|
1306
1523
|
function DropdownMenuHeader(props) {
|
|
1307
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
1308
|
-
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)));
|
|
1309
1526
|
}
|
|
1310
1527
|
function DropdownSubMenu(props) {
|
|
1311
1528
|
const subMenuModifiers = [
|
|
@@ -1325,7 +1542,7 @@ function DropdownSubMenu(props) {
|
|
|
1325
1542
|
];
|
|
1326
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) => {
|
|
1327
1544
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
1328
|
-
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)));
|
|
1329
1546
|
} }));
|
|
1330
1547
|
}
|
|
1331
1548
|
function DropdownMenuSwitchButton(props) {
|
|
@@ -1342,116 +1559,41 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1342
1559
|
onHandleValueChange(!isSelected);
|
|
1343
1560
|
}
|
|
1344
1561
|
};
|
|
1345
|
-
return (React__default.createElement(FlexRow$1, { cx: cx$1(props.cx, css$
|
|
1346
|
-
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 }),
|
|
1347
1564
|
React__default.createElement(Text$1, null, caption),
|
|
1348
1565
|
React__default.createElement(FlexSpacer, null),
|
|
1349
1566
|
React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1350
1567
|
}
|
|
1351
1568
|
|
|
1352
|
-
var css$
|
|
1569
|
+
var css$V = {"uui-typography":"CT49Rd","hero-header":"-ZNcvB","promo-header":"Cwjxo7","uui-critical":"_7RXfQT","uui-success":"k-2Tmz","uui-warning":"xDQHuU","uui-typography-size-12":"PxiFGn","uui-typography-size-14":"gXBmbX","uui-typography-size-16":"d32yiv","root":"TlEJ7m","border-bottom":"Gh-MGX","top-shadow":"X75T31","size-24":"_1n8gIg","size-30":"_93CcAr","size-36":"-GI1W4","size-42":"lUC9BM","size-48":"-DT3-t","padding-6":"_6LwJ99","padding-12":"BRVp5n","padding-18":"ffCcFg","padding-24":"_3AYFIW","margin-24":"UfQBLo","margin-12":"H-nGTD","vPadding-12":"_33ExSh","vPadding-18":"_1PxwKl","vPadding-24":"_6vZMan","vPadding-36":"_4my7K4","vPadding-48":"pH0Win","spacing-6":"LYJnCe","spacing-12":"gZHl6d","spacing-18":"_0e8-3f","uuiTypography":"CT49Rd","heroHeader":"-ZNcvB","promoHeader":"Cwjxo7","uuiCritical":"_7RXfQT","uuiSuccess":"k-2Tmz","uuiWarning":"xDQHuU","uuiTypographySize12":"PxiFGn","uuiTypographySize14":"gXBmbX","uuiTypographySize16":"d32yiv","borderBottom":"Gh-MGX","topShadow":"X75T31","size24":"_1n8gIg","size30":"_93CcAr","size36":"-GI1W4","size42":"lUC9BM","size48":"-DT3-t","padding6":"_6LwJ99","padding12":"BRVp5n","padding18":"ffCcFg","padding24":"_3AYFIW","margin24":"UfQBLo","margin12":"H-nGTD","vPadding12":"_33ExSh","vPadding18":"_1PxwKl","vPadding24":"_6vZMan","vPadding36":"_4my7K4","vPadding48":"pH0Win","spacing6":"LYJnCe","spacing12":"gZHl6d","spacing18":"_0e8-3f"};
|
|
1353
1570
|
|
|
1354
|
-
const FlexCell = withMods(FlexCell$1, () => [css$
|
|
1571
|
+
const FlexCell = withMods(FlexCell$1, () => [css$V.flexCell]);
|
|
1355
1572
|
|
|
1356
1573
|
const FlexRow = withMods(FlexRow$1, (props) => {
|
|
1357
1574
|
return [
|
|
1358
|
-
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],
|
|
1583
|
+
props.background && `uui-color-${props.background}`,
|
|
1359
1584
|
];
|
|
1360
1585
|
});
|
|
1361
1586
|
|
|
1362
|
-
var css$
|
|
1587
|
+
var css$U = {"root":"_32-Uew","margin-24":"_95gsaC","padding-12":"FLdnqO","padding-24":"i5o6xC","shadow":"s3lSwL","margin24":"_95gsaC","padding12":"FLdnqO","padding24":"i5o6xC"};
|
|
1363
1588
|
|
|
1364
1589
|
const Panel = withMods(VPanel, (props) => [
|
|
1365
|
-
'uui-panel',
|
|
1590
|
+
'uui-panel',
|
|
1591
|
+
css$U.root,
|
|
1592
|
+
props.shadow && css$U.shadow,
|
|
1593
|
+
props.margin && css$U['margin-' + props.margin],
|
|
1594
|
+
props.background && `uui-color-${props.background}`,
|
|
1366
1595
|
]);
|
|
1367
1596
|
|
|
1368
|
-
var css$$ = {"root":"D2QmF6"};
|
|
1369
|
-
|
|
1370
|
-
var css$_ = {"line-height-12":"Ls4HSs","line-height-18":"IBzWgI","line-height-24":"E2psIP","line-height-30":"_69eN-B","font-size-10":"_3Ox-cx","font-size-12":"ITyelp","font-size-14":"A7poa3","font-size-16":"kbczvD","font-size-18":"lz-0g5","font-size-24":"Uj-Yc6","v-padding-2":"yGrGJG","v-padding-3":"au3aEU","v-padding-5":"otrYJH","v-padding-6":"F9Lafv","v-padding-8":"REDQUM","v-padding-9":"hnnLS1","v-padding-11":"EIoA7G","v-padding-12":"uuRb9A","v-padding-14":"HnDGtX","v-padding-15":"L72KdE","v-padding-17":"kTiUaB","v-padding-18":"ge3TKQ","v-padding-23":"APGFcJ","v-padding-24":"_1sG0ba","lineHeight12":"Ls4HSs","lineHeight18":"IBzWgI","lineHeight24":"E2psIP","lineHeight30":"_69eN-B","fontSize10":"_3Ox-cx","fontSize12":"ITyelp","fontSize14":"A7poa3","fontSize16":"kbczvD","fontSize18":"lz-0g5","fontSize24":"Uj-Yc6","vPadding2":"yGrGJG","vPadding3":"au3aEU","vPadding5":"otrYJH","vPadding6":"F9Lafv","vPadding8":"REDQUM","vPadding9":"hnnLS1","vPadding11":"EIoA7G","vPadding12":"uuRb9A","vPadding14":"HnDGtX","vPadding15":"L72KdE","vPadding17":"kTiUaB","vPadding18":"ge3TKQ","vPadding23":"APGFcJ","vPadding24":"_1sG0ba"};
|
|
1371
|
-
|
|
1372
|
-
const defaultTextSettings = {
|
|
1373
|
-
18: { lineHeight: 12, fontSize: 10 },
|
|
1374
|
-
24: { lineHeight: 18, fontSize: 12 },
|
|
1375
|
-
30: { lineHeight: 18, fontSize: 14 },
|
|
1376
|
-
36: { lineHeight: 18, fontSize: 14 },
|
|
1377
|
-
42: { lineHeight: 24, fontSize: 16 },
|
|
1378
|
-
48: { lineHeight: 24, fontSize: 16 },
|
|
1379
|
-
60: { lineHeight: 30, fontSize: 24 },
|
|
1380
|
-
};
|
|
1381
|
-
function getTextClasses(props, border) {
|
|
1382
|
-
if (props.size === 'none') {
|
|
1383
|
-
return [css$_['line-height-' + props.lineHeight], css$_['font-size-' + props.fontSize]];
|
|
1384
|
-
}
|
|
1385
|
-
const setting = {
|
|
1386
|
-
size: props.size,
|
|
1387
|
-
lineHeight: props.lineHeight || defaultTextSettings[props.size].lineHeight,
|
|
1388
|
-
fontSize: props.fontSize || defaultTextSettings[props.size].fontSize,
|
|
1389
|
-
};
|
|
1390
|
-
const vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
1391
|
-
return [
|
|
1392
|
-
css$_['line-height-' + setting.lineHeight], css$_['font-size-' + setting.fontSize], css$_['v-padding-' + vPadding],
|
|
1393
|
-
];
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
function applyTextMods(mods) {
|
|
1397
|
-
const textClasses = getTextClasses({
|
|
1398
|
-
size: mods.size || '36',
|
|
1399
|
-
lineHeight: mods.lineHeight,
|
|
1400
|
-
fontSize: mods.fontSize,
|
|
1401
|
-
}, false);
|
|
1402
|
-
return [
|
|
1403
|
-
`uui-font-${mods.font || 'regular'}`,
|
|
1404
|
-
`uui-text-${mods.color || 'primary'}`,
|
|
1405
|
-
css$$.root,
|
|
1406
|
-
].concat(textClasses);
|
|
1407
|
-
}
|
|
1408
|
-
const Text = withMods(Text$1, applyTextMods);
|
|
1409
|
-
|
|
1410
|
-
var css$Z = {"container":"_5gNYlx","loading-word":"_1wEsVw","animated-loading":"P-Cskh","skeleton_loading":"MS-uNo","loadingWord":"_1wEsVw","animatedLoading":"P-Cskh","skeletonLoading":"MS-uNo"};
|
|
1411
|
-
|
|
1412
|
-
const TextPlaceholder = (props) => {
|
|
1413
|
-
const pattern = ' ';
|
|
1414
|
-
const text = React.useMemo(() => {
|
|
1415
|
-
const words = [];
|
|
1416
|
-
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
1417
|
-
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
1418
|
-
words.push(pattern.repeat(lengthWord));
|
|
1419
|
-
}
|
|
1420
|
-
return words;
|
|
1421
|
-
}, [props.wordsCount]);
|
|
1422
|
-
return (React.createElement("div", Object.assign({ "aria-busy": true, className: css$Z.container }, props.rawProps), text.map((it, index) => (React.createElement("span", { key: index, className: cx([
|
|
1423
|
-
props.cx, css$Z.loadingWord, !props.isNotAnimated && css$Z.animatedLoading,
|
|
1424
|
-
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
1425
|
-
};
|
|
1426
|
-
|
|
1427
|
-
var style = {"typography-16":"VsECio","typography-14":"_2eIIED","typography-12":"Rp8Q1e","typography-uui":"wQ5LA6","typography16":"VsECio","typography14":"_2eIIED","typography12":"Rp8Q1e","typographyUui":"wQ5LA6"};
|
|
1428
|
-
|
|
1429
|
-
const RichTextView = withMods(uuiComponents.RichTextView, (mods) => [style.typographyUui, style['typography-' + (mods.size || '14')]]);
|
|
1430
|
-
|
|
1431
|
-
var css$Y = {"modal-blocker":"YU0A8K","animateModalBlocker":"_4yQzYl","modal":"YTQxCZ","modal-footer":"V-m7u0","border-top":"CLfKji","modal-header":"RtBELJ","modalBlocker":"YU0A8K","modalFooter":"V-m7u0","borderTop":"CLfKji","modalHeader":"RtBELJ"};
|
|
1432
|
-
|
|
1433
|
-
const ModalBlocker = withMods(ModalBlocker$1, () => [css$Y.modalBlocker]);
|
|
1434
|
-
const ModalWindow = withMods(ModalWindow$1, () => [css$Y.modal], (props) => ({
|
|
1435
|
-
style: Object.assign(Object.assign({}, props.style), { width: `${props.width || 420}px`, height: props.height ? `${props.height}px` : 'auto' }),
|
|
1436
|
-
}));
|
|
1437
|
-
class ModalHeader extends React.Component {
|
|
1438
|
-
render() {
|
|
1439
|
-
return (React.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "12", borderBottom: this.props.borderBottom, cx: [css$Y.modalHeader, this.props.cx], spacing: "12", rawProps: this.props.rawProps },
|
|
1440
|
-
this.props.title && (React.createElement(Text, { size: "48", fontSize: "18", font: "semibold" }, this.props.title)),
|
|
1441
|
-
this.props.children,
|
|
1442
|
-
this.props.onClose && React.createElement(FlexSpacer, null),
|
|
1443
|
-
this.props.onClose && (React.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
1444
|
-
React.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$D, onClick: this.props.onClose })))));
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
class ModalFooter extends React.Component {
|
|
1448
|
-
render() {
|
|
1449
|
-
return (React.createElement(FlexRow, { spacing: this.props.spacing || '12', cx: [
|
|
1450
|
-
css$Y.modalFooter, this.props.borderTop && css$Y.borderTop, this.props.cx,
|
|
1451
|
-
], padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
1452
|
-
}
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
1597
|
const i18n = Object.assign(Object.assign({}, i18n$2), { dataPickerBody: {
|
|
1456
1598
|
searchPlaceholder: 'Search',
|
|
1457
1599
|
noRecordsMessage: 'No records found',
|
|
@@ -1541,94 +1683,43 @@ const i18n = Object.assign(Object.assign({}, i18n$2), { dataPickerBody: {
|
|
|
1541
1683
|
fileSizeProgress: ' of ',
|
|
1542
1684
|
} });
|
|
1543
1685
|
|
|
1544
|
-
var
|
|
1545
|
-
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); }
|
|
1546
|
-
var SvgCross = function SvgCross(props, ref) {
|
|
1547
|
-
return /*#__PURE__*/React.createElement("svg", _extends$C({
|
|
1548
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1549
|
-
width: 24,
|
|
1550
|
-
height: 24,
|
|
1551
|
-
viewBox: "0 0 24 24",
|
|
1552
|
-
ref: ref
|
|
1553
|
-
}, props), _path$B || (_path$B = /*#__PURE__*/React.createElement("path", {
|
|
1554
|
-
fillRule: "evenodd",
|
|
1555
|
-
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"
|
|
1556
|
-
})));
|
|
1557
|
-
};
|
|
1558
|
-
var ForwardRef$C = /*#__PURE__*/forwardRef(SvgCross);
|
|
1559
|
-
|
|
1560
|
-
var css$X = {"root":"ckp29D","icon-wrapper":"eZpjQi","action-wrapper":"_1tB2Lc","action-link":"_8HPQbt","close-icon":"v8tBmL","main-path":"gjuq3-","content":"I3GXxj","clear-button":"quKLh7","close-wrapper":"V441Cr","iconWrapper":"eZpjQi","actionWrapper":"_1tB2Lc","actionLink":"_8HPQbt","closeIcon":"v8tBmL","mainPath":"gjuq3-","clearButton":"quKLh7","closeWrapper":"V441Cr"};
|
|
1561
|
-
|
|
1562
|
-
const NotificationCard = React__default.forwardRef((props, ref) => {
|
|
1563
|
-
const notificationCardNode = React__default.useRef(null);
|
|
1564
|
-
React__default.useImperativeHandle(ref, () => notificationCardNode.current, [notificationCardNode.current]);
|
|
1565
|
-
React__default.useLayoutEffect(() => {
|
|
1566
|
-
var _a, _b;
|
|
1567
|
-
(_a = notificationCardNode.current) === null || _a === void 0 ? void 0 : _a.addEventListener('mouseenter', props.clearTimer);
|
|
1568
|
-
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.addEventListener('mouseleave', props.refreshTimer);
|
|
1569
|
-
return () => {
|
|
1570
|
-
var _a, _b;
|
|
1571
|
-
(_a = notificationCardNode.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('mouseenter', props.clearTimer);
|
|
1572
|
-
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
1573
|
-
};
|
|
1574
|
-
}, []);
|
|
1575
|
-
return (React__default.createElement("div", Object.assign({ role: "alert", className: cx(props.color && `notification-card-${props.color}`, css$X.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
1576
|
-
React__default.createElement("div", { className: css$X.mainPath },
|
|
1577
|
-
props.icon && (React__default.createElement("div", { className: css$X.iconWrapper },
|
|
1578
|
-
React__default.createElement(IconContainer, { icon: props.icon, cx: css$X.actionIcon }))),
|
|
1579
|
-
React__default.createElement("div", { className: css$X.content },
|
|
1580
|
-
props.children,
|
|
1581
|
-
props.actions && (React__default.createElement("div", { className: css$X.actionWrapper }, props.actions.map((action) => (React__default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$X.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
1582
|
-
props.onClose && (React__default.createElement("div", { className: css$X.closeWrapper },
|
|
1583
|
-
React__default.createElement(IconButton, { icon: ForwardRef$C, color: "default", onClick: props.onClose, cx: css$X.closeIcon }))))));
|
|
1584
|
-
});
|
|
1585
|
-
const WarningNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$G, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
1586
|
-
const SuccessNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$H, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
1587
|
-
const HintNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$E, color: "info" }, props, { ref: ref, cx: props.cx }))));
|
|
1588
|
-
const ErrorNotification = React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$F, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
1589
|
-
class ClearNotification extends React__default.Component {
|
|
1590
|
-
render() {
|
|
1591
|
-
return (React__default.createElement("div", { className: cx(css$X.notificationWrapper, css$X.clearButton) },
|
|
1592
|
-
React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => this.context.uuiNotifications.clearAll() })));
|
|
1593
|
-
}
|
|
1594
|
-
}
|
|
1595
|
-
ClearNotification.contextType = UuiContext;
|
|
1596
|
-
|
|
1597
|
-
var css$W = {"root":"hWqffz"};
|
|
1686
|
+
var css$T = {"root":"uL4Zop","mode-block":"fHfMwg","mode-inline":"M840Mb","padding-0":"hvVkTe","padding-6":"Y56-BO","padding-12":"vmrApN","padding-18":"r6bYdT","modeBlock":"fHfMwg","modeInline":"M840Mb","padding0":"hvVkTe","padding6":"Y56-BO","padding12":"vmrApN","padding18":"r6bYdT"};
|
|
1598
1687
|
|
|
1599
|
-
function
|
|
1688
|
+
function applyAccordionMods(mods) {
|
|
1600
1689
|
return [
|
|
1601
|
-
|
|
1602
|
-
css$
|
|
1690
|
+
css$T.root,
|
|
1691
|
+
css$T['mode-' + (mods.mode || 'block')],
|
|
1692
|
+
mods.padding && css$T['padding-' + mods.padding],
|
|
1603
1693
|
];
|
|
1604
1694
|
}
|
|
1605
|
-
const
|
|
1695
|
+
const Accordion = withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
1696
|
+
dropdownIcon: mods.dropdownIcon !== null && systemIcons[mods.mode === 'block' ? '60' : '30'].foldingArrow,
|
|
1697
|
+
}));
|
|
1606
1698
|
|
|
1607
|
-
var css$
|
|
1699
|
+
var css$S = {"root":"m4EfMA"};
|
|
1608
1700
|
|
|
1609
|
-
function
|
|
1701
|
+
function applyTooltipMods(mods) {
|
|
1610
1702
|
return [
|
|
1611
|
-
css$
|
|
1703
|
+
css$S.root,
|
|
1704
|
+
`uui-color-${mods.color || 'contrast'}`,
|
|
1612
1705
|
];
|
|
1613
1706
|
}
|
|
1614
|
-
const
|
|
1615
|
-
dropdownIcon: mods.dropdownIcon !== null && systemIcons[mods.mode === 'block' ? '60' : '30'].foldingArrow,
|
|
1616
|
-
}));
|
|
1707
|
+
const Tooltip = withMods(Tooltip$1, applyTooltipMods);
|
|
1617
1708
|
|
|
1618
|
-
var css$
|
|
1709
|
+
var css$R = {"uui-typography":"z30Eta","hero-header":"pwPy8w","promo-header":"I-YWoW","uui-critical":"a0AA-W","uui-success":"qIjcnW","uui-warning":"ut821y","uui-typography-size-12":"vpAauN","uui-typography-size-14":"eQLpI5","uui-typography-size-16":"N8vxM4","root":"g0LiYK","size-24":"TNPZC7","size-30":"_1caQ71","size-36":"WmnLiw","size-42":"uBsRyR","size-48":"s2QHnu","uuiTypography":"z30Eta","heroHeader":"pwPy8w","promoHeader":"I-YWoW","uuiCritical":"a0AA-W","uuiSuccess":"qIjcnW","uuiWarning":"ut821y","uuiTypographySize12":"vpAauN","uuiTypographySize14":"eQLpI5","uuiTypographySize16":"N8vxM4","size24":"TNPZC7","size30":"_1caQ71","size36":"WmnLiw","size42":"uBsRyR","size48":"s2QHnu"};
|
|
1619
1710
|
|
|
1620
|
-
const defaultSize$
|
|
1711
|
+
const defaultSize$3 = '36';
|
|
1621
1712
|
function applyLabeledInputMods(mods) {
|
|
1622
|
-
return [css$
|
|
1713
|
+
return [css$R.root, css$R['size-' + (mods.size || defaultSize$3)]];
|
|
1623
1714
|
}
|
|
1624
1715
|
const LabeledInput = withMods(uuiComponents.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1625
1716
|
Tooltip,
|
|
1626
|
-
infoIcon: systemIcons[props.size || defaultSize$
|
|
1717
|
+
infoIcon: systemIcons[props.size || defaultSize$3].help,
|
|
1627
1718
|
}));
|
|
1628
1719
|
|
|
1629
|
-
var css$
|
|
1720
|
+
var css$Q = {"root":"dIlo2N"};
|
|
1630
1721
|
|
|
1631
|
-
const RadioGroup = withMods(RadioGroup$1, () => [css$
|
|
1722
|
+
const RadioGroup = withMods(RadioGroup$1, () => [css$Q.root], () => ({ RadioInput }));
|
|
1632
1723
|
|
|
1633
1724
|
function applyScrollBarsMods() {
|
|
1634
1725
|
return [
|
|
@@ -1637,18 +1728,11 @@ function applyScrollBarsMods() {
|
|
|
1637
1728
|
}
|
|
1638
1729
|
const ScrollBars = withMods(ScrollBars$1, applyScrollBarsMods);
|
|
1639
1730
|
|
|
1640
|
-
var css$
|
|
1641
|
-
|
|
1642
|
-
var css$R = {"root":"AWyU2E"};
|
|
1731
|
+
var css$P = {"scroll-container":"_70WgCw","list-container":"kOfI6U","scrollContainer":"_70WgCw","listContainer":"kOfI6U"};
|
|
1643
1732
|
|
|
1644
|
-
var css$
|
|
1645
|
-
|
|
1646
|
-
function applySpinnerMods() {
|
|
1647
|
-
return [css$Q.root];
|
|
1648
|
-
}
|
|
1649
|
-
const Spinner = withMods(Spinner$1, applySpinnerMods);
|
|
1733
|
+
var css$O = {"root":"PpN-hM"};
|
|
1650
1734
|
|
|
1651
|
-
const Blocker = withMods(Blocker$1, () => [css$
|
|
1735
|
+
const Blocker = withMods(Blocker$1, () => [css$O.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__default.createElement(Spinner, null)) }));
|
|
1652
1736
|
|
|
1653
1737
|
const VirtualList = React.forwardRef((props, ref) => {
|
|
1654
1738
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = useVirtualList({
|
|
@@ -1664,7 +1748,7 @@ const VirtualList = React.forwardRef((props, ref) => {
|
|
|
1664
1748
|
var _a;
|
|
1665
1749
|
return ((_a = props.renderRows) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
1666
1750
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1667
|
-
})) || (React.createElement("div", { className: css$
|
|
1751
|
+
})) || (React.createElement("div", { className: css$P.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1668
1752
|
React.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1669
1753
|
};
|
|
1670
1754
|
const scrollBarsRef = React.useCallback((scrollbars) => {
|
|
@@ -1673,7 +1757,7 @@ const VirtualList = React.forwardRef((props, ref) => {
|
|
|
1673
1757
|
return;
|
|
1674
1758
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1675
1759
|
}, []);
|
|
1676
|
-
return (React.createElement(ScrollBars, { cx: cx$1(css$
|
|
1760
|
+
return (React.createElement(ScrollBars, { cx: cx$1(css$P.scrollContainer, props.cx, {
|
|
1677
1761
|
[uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1678
1762
|
[uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1679
1763
|
[uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -1687,383 +1771,123 @@ const VirtualListView = React.forwardRef((props, ref) => {
|
|
|
1687
1771
|
});
|
|
1688
1772
|
VirtualList.displayName = 'VirtualList';
|
|
1689
1773
|
|
|
1690
|
-
var css$
|
|
1774
|
+
var css$N = {"root":"HXfot5"};
|
|
1691
1775
|
|
|
1692
|
-
const CheckboxGroup = withMods(CheckboxGroup$1, () => [css$
|
|
1776
|
+
const CheckboxGroup = withMods(CheckboxGroup$1, () => [css$N.root], () => ({ CheckboxInput: Checkbox }));
|
|
1693
1777
|
|
|
1694
|
-
|
|
1695
|
-
render() {
|
|
1696
|
-
let bodyContent;
|
|
1697
|
-
if (this.props.bodyContent) {
|
|
1698
|
-
bodyContent = React.createElement(Panel, { margin: "24" }, this.props.bodyContent);
|
|
1699
|
-
}
|
|
1700
|
-
return (React.createElement(ModalBlocker, Object.assign({}, this.props),
|
|
1701
|
-
React.createElement(ModalWindow, { width: 420 },
|
|
1702
|
-
React.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
1703
|
-
React.createElement(ScrollBars, null, bodyContent),
|
|
1704
|
-
React.createElement(ModalFooter, null,
|
|
1705
|
-
React.createElement(FlexSpacer, null),
|
|
1706
|
-
this.props.hideCancelButton || (React.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), mode: "outline", color: "secondary" })),
|
|
1707
|
-
React.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "accent" })))));
|
|
1708
|
-
}
|
|
1709
|
-
}
|
|
1778
|
+
var css$M = {"uui-typography":"jvNJJ7","hero-header":"kMGHdo","promo-header":"aUjgFc","uui-critical":"vU-3R7","uui-success":"EbJkac","uui-warning":"RtA-SD","uui-typography-size-12":"GpSQGK","uui-typography-size-14":"-b63hs","uui-typography-size-16":"TyRmMJ","body":"foxUv2","modal":"VZJlys","search-wrapper":"mK3hAW","checkbox":"_1a-rbP","no-found-size-24":"sl-Rqz","no-found-size-30":"XzM9uV","no-found-size-36":"hbfq6E","no-found-size-42":"W-u4M4","uuiTypography":"jvNJJ7","heroHeader":"kMGHdo","promoHeader":"aUjgFc","uuiCritical":"vU-3R7","uuiSuccess":"EbJkac","uuiWarning":"RtA-SD","uuiTypographySize12":"GpSQGK","uuiTypographySize14":"-b63hs","uuiTypographySize16":"TyRmMJ","searchWrapper":"mK3hAW","noFoundSize24":"sl-Rqz","noFoundSize30":"XzM9uV","noFoundSize36":"hbfq6E","noFoundSize42":"W-u4M4"};
|
|
1710
1779
|
|
|
1711
|
-
|
|
1712
|
-
class DatePicker extends BaseDatePicker {
|
|
1780
|
+
class DataPickerBody extends PickerBodyBase {
|
|
1713
1781
|
constructor() {
|
|
1714
1782
|
super(...arguments);
|
|
1715
|
-
this.
|
|
1716
|
-
|
|
1717
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1718
|
-
if (this.props.size === '48') {
|
|
1719
|
-
devLogger.warnAboutDeprecatedPropValue({
|
|
1720
|
-
component: 'DatePicker',
|
|
1721
|
-
propName: 'size',
|
|
1722
|
-
propValue: this.props.size,
|
|
1723
|
-
propValueUseInstead: '42',
|
|
1724
|
-
condition: () => ['48'].indexOf(this.props.size) !== -1,
|
|
1725
|
-
});
|
|
1726
|
-
}
|
|
1727
|
-
}
|
|
1728
|
-
return (React__default.createElement(TextInput, Object.assign({}, props, { onClick: null, isDropdown: false, cx: cx$1(this.props.inputCx, this.state.isOpen && uuiMod.focus), icon: this.props.mode !== EditMode.CELL && systemIcons[this.props.size || '36'].calendar, iconPosition: this.props.iconPosition || 'left', placeholder: this.props.placeholder ? this.props.placeholder : this.getFormat(), size: this.props.size || '36', value: this.state.inputValue, onValueChange: this.handleInputChange, onCancel: this.props.disableClear || !this.state.inputValue ? undefined : this.handleCancel, isInvalid: this.props.isInvalid, isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, tabIndex: this.props.isReadonly || this.props.isDisabled ? -1 : 0, onFocus: this.handleFocus, onBlur: this.handleBlur, mode: this.props.mode || defaultMode$1, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.input })));
|
|
1729
|
-
};
|
|
1783
|
+
this.lens = Lens.onEditableComponent(this);
|
|
1784
|
+
this.searchLens = this.lens.prop('search');
|
|
1730
1785
|
}
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1786
|
+
renderNotFound() {
|
|
1787
|
+
if (this.props.renderNotFound) {
|
|
1788
|
+
return this.props.renderNotFound();
|
|
1789
|
+
}
|
|
1790
|
+
return (React__default.createElement(FlexCell$1, { cx: css$M[`no-found-size-${this.props.searchSize || 36}`], grow: 1, textAlign: "center" },
|
|
1791
|
+
React__default.createElement(Text, { size: this.props.searchSize || '36' }, i18n.dataPickerBody.noRecordsMessage)));
|
|
1792
|
+
}
|
|
1793
|
+
render() {
|
|
1794
|
+
const searchSize = isMobile() ? '48' : this.props.searchSize || '36';
|
|
1795
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
1796
|
+
this.showSearch() && (React__default.createElement("div", { key: "search", className: css$M.searchWrapper },
|
|
1797
|
+
React__default.createElement(FlexCell$1, { grow: 1 },
|
|
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 }))))),
|
|
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()))));
|
|
1736
1800
|
}
|
|
1737
1801
|
}
|
|
1738
1802
|
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1803
|
+
const switchSizes = {
|
|
1804
|
+
24: '12',
|
|
1805
|
+
36: '18',
|
|
1806
|
+
42: '24',
|
|
1807
|
+
48: '24',
|
|
1808
|
+
};
|
|
1809
|
+
function DataPickerFooterImpl(props) {
|
|
1810
|
+
const { clearSelection, view, showSelected, selectionMode, } = props;
|
|
1811
|
+
const size = isMobile() ? '48' : props.size || '36';
|
|
1812
|
+
const switchSize = switchSizes[size];
|
|
1813
|
+
const hasSelection = view.getSelectedRowsCount() > 0;
|
|
1814
|
+
const isSinglePicker = selectionMode === 'single';
|
|
1815
|
+
const clearAllText = i18n.pickerInput.clearSelectionButton;
|
|
1816
|
+
const clearSingleText = i18n.pickerInput.clearSelectionButtonSingle;
|
|
1817
|
+
const selectAllText = i18n.pickerInput.selectAllButton;
|
|
1818
|
+
// show always for multi picker and for single only in case if search not disabled.
|
|
1819
|
+
const shouldShowFooter = isSinglePicker ? !props.disableClear : true;
|
|
1820
|
+
return shouldShowFooter && (React__default.createElement(FlexRow, { padding: "12" },
|
|
1821
|
+
!isSinglePicker && (React__default.createElement(Switch, { size: switchSize, value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
1822
|
+
React__default.createElement(FlexSpacer, null),
|
|
1823
|
+
React__default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
1824
|
+
view.selectAll && (React__default.createElement(LinkButton, { size: size, caption: hasSelection ? clearAllText : selectAllText, onClick: hasSelection ? clearSelection : () => view.selectAll.onValueChange(true), rawProps: {
|
|
1825
|
+
'aria-label': hasSelection ? clearAllText : selectAllText,
|
|
1826
|
+
} })),
|
|
1827
|
+
!view.selectAll && (React__default.createElement(LinkButton, { isDisabled: !hasSelection, size: size, caption: isSinglePicker ? clearSingleText : clearAllText, onClick: clearSelection, rawProps: {
|
|
1828
|
+
'aria-label': isSinglePicker ? clearSingleText : clearAllText,
|
|
1829
|
+
} })))));
|
|
1743
1830
|
}
|
|
1744
|
-
const
|
|
1831
|
+
const DataPickerFooter = React__default.memo(DataPickerFooterImpl);
|
|
1745
1832
|
|
|
1746
|
-
var css$
|
|
1833
|
+
var css$L = {"header":"WhkoHA","close":"vxTh3-"};
|
|
1747
1834
|
|
|
1748
|
-
|
|
1749
|
-
function
|
|
1750
|
-
let days = [];
|
|
1751
|
-
const dayOfLastWeekInPrevMonth = displayedDate.subtract(1, 'month').endOf('month').day();
|
|
1752
|
-
days = days.concat(new Array(dayOfLastWeekInPrevMonth).fill(undefined));
|
|
1753
|
-
// get days of current month
|
|
1754
|
-
days = days.concat(new Array(displayedDate.endOf('month').date()).fill(undefined));
|
|
1755
|
-
return arrayToMatrix(days, 7).length;
|
|
1756
|
-
}
|
|
1757
|
-
const uuiRangeDatePickerBody = {
|
|
1758
|
-
inRange: 'uui-range-datepicker-in-range',
|
|
1759
|
-
firstDayInRangeWrapper: 'uui-range-datepicker-first-day-in-range-wrapper',
|
|
1760
|
-
lastDayInRangeWrapper: 'uui-range-datepicker-last-day-in-range-wrapper',
|
|
1761
|
-
separator: 'uui-range-datepicker-separator',
|
|
1762
|
-
};
|
|
1763
|
-
const rangeDatePickerPresets = {
|
|
1764
|
-
today: {
|
|
1765
|
-
name: 'Today',
|
|
1766
|
-
getRange: () => ({ from: dayjs().toString(), to: undefined, order: 1 }),
|
|
1767
|
-
},
|
|
1768
|
-
thisWeek: {
|
|
1769
|
-
name: 'This Week',
|
|
1770
|
-
getRange: () => ({ from: dayjs().startOf('isoWeek').toString(), to: dayjs().endOf('isoWeek').toString(), order: 2 }),
|
|
1771
|
-
},
|
|
1772
|
-
lastWeek: {
|
|
1773
|
-
name: 'Last Week',
|
|
1774
|
-
getRange: () => ({ from: dayjs().startOf('isoWeek').subtract(1, 'week').toString(), to: dayjs().endOf('isoWeek').subtract(1, 'week').toString(), order: 3 }),
|
|
1775
|
-
},
|
|
1776
|
-
thisMonth: {
|
|
1777
|
-
name: 'This Month',
|
|
1778
|
-
getRange: () => ({ from: dayjs().startOf('month').toString(), to: dayjs().endOf('month').toString(), order: 4 }),
|
|
1779
|
-
},
|
|
1780
|
-
lastMonth: {
|
|
1781
|
-
name: 'Last Month',
|
|
1782
|
-
getRange: () => ({ from: dayjs().startOf('month').subtract(1, 'month').toString(), to: dayjs().subtract(1, 'month').endOf('month').toString(), order: 5 }),
|
|
1783
|
-
},
|
|
1784
|
-
last3Month: {
|
|
1785
|
-
name: 'Last 3 Months',
|
|
1786
|
-
getRange: () => ({ from: dayjs().startOf('month').subtract(3, 'month').toString(), to: dayjs().subtract(1, 'month').endOf('month').toString(), order: 5 }),
|
|
1787
|
-
},
|
|
1788
|
-
thisYear: {
|
|
1789
|
-
name: 'This Year',
|
|
1790
|
-
getRange: () => ({ from: dayjs().startOf('year').toString(), to: dayjs().endOf('year').toString(), order: 7 }),
|
|
1791
|
-
},
|
|
1792
|
-
lastYear: {
|
|
1793
|
-
name: 'Last Year',
|
|
1794
|
-
getRange: () => ({ from: dayjs().startOf('year').subtract(1, 'year').toString(), to: dayjs().subtract(1, 'year').endOf('year').toString(), order: 8 }),
|
|
1795
|
-
},
|
|
1796
|
-
};
|
|
1797
|
-
class RangeDatePickerBody extends React.Component {
|
|
1798
|
-
constructor() {
|
|
1799
|
-
super(...arguments);
|
|
1800
|
-
this.state = {
|
|
1801
|
-
activePart: null,
|
|
1802
|
-
};
|
|
1803
|
-
this.getDayCX = (day) => {
|
|
1804
|
-
var _a, _b;
|
|
1805
|
-
const dayValue = day.valueOf();
|
|
1806
|
-
const fromValue = ((_a = this.props.value) === null || _a === void 0 ? void 0 : _a.selectedDate.from) ? dayjs(this.props.value.selectedDate.from).valueOf() : null;
|
|
1807
|
-
const toValue = ((_b = this.props.value) === null || _b === void 0 ? void 0 : _b.selectedDate.to) ? dayjs(this.props.value.selectedDate.to).valueOf() : null;
|
|
1808
|
-
const inRange = dayValue >= fromValue && dayValue <= toValue && fromValue !== toValue && fromValue && toValue;
|
|
1809
|
-
const isFirst = dayValue === fromValue;
|
|
1810
|
-
const isLast = dayValue === toValue;
|
|
1811
|
-
return [
|
|
1812
|
-
inRange && uuiRangeDatePickerBody.inRange,
|
|
1813
|
-
isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper,
|
|
1814
|
-
!inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper,
|
|
1815
|
-
isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper,
|
|
1816
|
-
!inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper,
|
|
1817
|
-
(dayValue === fromValue || dayValue === toValue) && uuiDaySelection.selectedDay,
|
|
1818
|
-
];
|
|
1819
|
-
};
|
|
1820
|
-
this.getFromValue = () => {
|
|
1821
|
-
var _a;
|
|
1822
|
-
return Object.assign(Object.assign({}, this.props.value), { view: this.state.activePart === 'from' ? this.props.value.view : 'DAY_SELECTION', selectedDate: (_a = this.props.value) === null || _a === void 0 ? void 0 : _a.selectedDate.from });
|
|
1823
|
-
};
|
|
1824
|
-
this.getToValue = () => {
|
|
1825
|
-
if (!this.props.value)
|
|
1826
|
-
return;
|
|
1827
|
-
return Object.assign(Object.assign({}, this.props.value), { view: this.state.activePart === 'to' ? this.props.value.view : 'DAY_SELECTION', displayedDate: this.props.value.displayedDate.add(1, 'month'), selectedDate: this.props.value.selectedDate.to });
|
|
1828
|
-
};
|
|
1829
|
-
this.renderPresets = () => {
|
|
1830
|
-
return (React.createElement(React.Fragment, null,
|
|
1831
|
-
React.createElement("div", { className: uuiRangeDatePickerBody.separator }),
|
|
1832
|
-
React.createElement(CalendarPresets, { forwardedRef: this.props.forwardedRef, onPresetSet: (presetVal) => {
|
|
1833
|
-
this.props.onValueChange({
|
|
1834
|
-
view: 'DAY_SELECTION',
|
|
1835
|
-
selectedDate: { from: dayjs(presetVal.from).format(valueFormat), to: dayjs(presetVal.to).format(valueFormat) },
|
|
1836
|
-
displayedDate: dayjs(presetVal.from),
|
|
1837
|
-
});
|
|
1838
|
-
this.props.changeIsOpen(false);
|
|
1839
|
-
}, presets: this.props.presets })));
|
|
1840
|
-
};
|
|
1841
|
-
this.renderDatePicker = () => {
|
|
1842
|
-
var _a, _b;
|
|
1843
|
-
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" },
|
|
1844
|
-
React.createElement(FlexCell, { width: "auto" },
|
|
1845
|
-
React.createElement(FlexRow, null,
|
|
1846
|
-
React.createElement(FlexRow, { cx: css$N.bodesWrapper, alignItems: "top" },
|
|
1847
|
-
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 }),
|
|
1848
|
-
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 }),
|
|
1849
|
-
((_b = this.props.value) === null || _b === void 0 ? void 0 : _b.view) !== 'DAY_SELECTION' && (React.createElement("div", { style: {
|
|
1850
|
-
left: this.state.activePart === 'from' && '50%',
|
|
1851
|
-
right: this.state.activePart === 'to' && '50%',
|
|
1852
|
-
}, className: css$N.blocker }))),
|
|
1853
|
-
this.props.presets && this.renderPresets()),
|
|
1854
|
-
this.props.renderFooter && this.props.renderFooter())));
|
|
1855
|
-
};
|
|
1856
|
-
}
|
|
1857
|
-
getRange(selectedDate) {
|
|
1858
|
-
const newRange = { from: null, to: null };
|
|
1859
|
-
const currentRange = this.props.value.selectedDate;
|
|
1860
|
-
if (!this.props.filter || this.props.filter(dayjs(selectedDate))) {
|
|
1861
|
-
if (this.props.focusPart === 'from') {
|
|
1862
|
-
if (dayjs(selectedDate).valueOf() <= dayjs(currentRange.to).valueOf()) {
|
|
1863
|
-
newRange.from = selectedDate;
|
|
1864
|
-
newRange.to = currentRange.to;
|
|
1865
|
-
}
|
|
1866
|
-
else {
|
|
1867
|
-
newRange.from = selectedDate;
|
|
1868
|
-
newRange.to = null;
|
|
1869
|
-
}
|
|
1870
|
-
}
|
|
1871
|
-
if (this.props.focusPart === 'to') {
|
|
1872
|
-
if (!currentRange.from) {
|
|
1873
|
-
newRange.to = selectedDate;
|
|
1874
|
-
}
|
|
1875
|
-
else if (dayjs(selectedDate).valueOf() >= dayjs(currentRange.from).valueOf()) {
|
|
1876
|
-
newRange.from = currentRange.from;
|
|
1877
|
-
newRange.to = selectedDate;
|
|
1878
|
-
}
|
|
1879
|
-
else {
|
|
1880
|
-
newRange.from = selectedDate;
|
|
1881
|
-
newRange.to = null;
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
return newRange;
|
|
1886
|
-
}
|
|
1887
|
-
setSelectedDate(selectedDate) {
|
|
1888
|
-
const range = this.getRange(selectedDate);
|
|
1889
|
-
this.props.onValueChange(Object.assign(Object.assign({}, this.props.value), { selectedDate: range }));
|
|
1890
|
-
if (range.from && range.to && this.props.focusPart === 'to') {
|
|
1891
|
-
this.props.changeIsOpen(false);
|
|
1892
|
-
}
|
|
1893
|
-
}
|
|
1894
|
-
setDisplayedDateAndView(displayedDate, view, part) {
|
|
1895
|
-
this.setState({ activePart: part });
|
|
1896
|
-
this.props.onValueChange({
|
|
1897
|
-
selectedDate: this.props.value.selectedDate,
|
|
1898
|
-
displayedDate: part === 'from' ? displayedDate : displayedDate.subtract(1, 'month'),
|
|
1899
|
-
view: view,
|
|
1900
|
-
});
|
|
1901
|
-
}
|
|
1902
|
-
render() {
|
|
1903
|
-
return (React.createElement("div", Object.assign({ className: cx$1(css$N.root, uuiDatePickerBodyBase.container, this.props.cx) }, this.props.rawProps), this.renderDatePicker()));
|
|
1904
|
-
}
|
|
1905
|
-
}
|
|
1906
|
-
|
|
1907
|
-
var css$M = {"dropdown-container":"x29HGv","container":"kgxL2j","button-group":"_2d9yok","date-input":"MKQEAM","size-24":"TUXmbv","size-30":"_2J4SvE","size-36":"Ht-9e5","size-42":"xrGhbF","size-48":"gwdkyo","date-input-group":"Lrfa50","separator":"iUtFnB","mode-form":"_2fnsML","mode-cell":"HIrZd5","dropdownContainer":"x29HGv","buttonGroup":"_2d9yok","dateInput":"MKQEAM","size24":"TUXmbv","size30":"_2J4SvE","size36":"Ht-9e5","size42":"xrGhbF","size48":"gwdkyo","dateInputGroup":"Lrfa50","modeForm":"_2fnsML","modeCell":"HIrZd5"};
|
|
1908
|
-
|
|
1909
|
-
const defaultValue = { from: null, to: null };
|
|
1910
|
-
class RangeDatePicker extends BaseRangeDatePicker {
|
|
1911
|
-
constructor() {
|
|
1912
|
-
super(...arguments);
|
|
1913
|
-
this.renderInput = (props) => {
|
|
1914
|
-
var _a, _b;
|
|
1915
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1916
|
-
if (this.props.size === '48') {
|
|
1917
|
-
devLogger.warnAboutDeprecatedPropValue({
|
|
1918
|
-
component: 'RangeDatePicker',
|
|
1919
|
-
propName: 'size',
|
|
1920
|
-
propValue: this.props.size,
|
|
1921
|
-
propValueUseInstead: '42',
|
|
1922
|
-
condition: () => ['48'].indexOf(this.props.size) !== -1,
|
|
1923
|
-
});
|
|
1924
|
-
}
|
|
1925
|
-
}
|
|
1926
|
-
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 },
|
|
1927
|
-
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 }),
|
|
1928
|
-
React.createElement("div", { className: css$M.separator }),
|
|
1929
|
-
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 })));
|
|
1930
|
-
};
|
|
1931
|
-
}
|
|
1932
|
-
renderBody(props) {
|
|
1933
|
-
var _a;
|
|
1934
|
-
return (React.createElement(DropdownContainer, Object.assign({}, props, { cx: cx(css$M.dropdownContainer), focusLock: false }),
|
|
1935
|
-
React.createElement(FlexRow, null,
|
|
1936
|
-
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 }))));
|
|
1937
|
-
}
|
|
1938
|
-
}
|
|
1939
|
-
|
|
1940
|
-
var css$L = {"blocker":"M6FfCs","marker":"be8R-0","top":"SuOJrb","bottom":"zgQz-C","left":"Nj7BUc","right":"W7EplK","inside":"tt5qdK"};
|
|
1941
|
-
|
|
1942
|
-
function DropMarker(props) {
|
|
1943
|
-
return props.isDndInProgress
|
|
1944
|
-
? (React.createElement(React.Fragment, null,
|
|
1945
|
-
props.enableBlocker && React.createElement("div", { className: css$L.blocker }),
|
|
1946
|
-
React.createElement("div", { className: cx([
|
|
1947
|
-
css$L.marker,
|
|
1948
|
-
css$L[props.position],
|
|
1949
|
-
props === null || props === void 0 ? void 0 : props.cx,
|
|
1950
|
-
]) })))
|
|
1951
|
-
: null;
|
|
1952
|
-
}
|
|
1953
|
-
|
|
1954
|
-
var css$K = {"body":"ZDIze9","modal":"_41-9cx","search-wrapper":"vs-1wQ","checkbox":"_5cYKlo","no-found-size-24":"_4MBmZA","no-found-size-30":"_686oeG","no-found-size-36":"VqtnaS","no-found-size-42":"W5ASPu","searchWrapper":"vs-1wQ","noFoundSize24":"_4MBmZA","noFoundSize30":"_686oeG","noFoundSize36":"VqtnaS","noFoundSize42":"W5ASPu"};
|
|
1955
|
-
|
|
1956
|
-
class DataPickerBody extends PickerBodyBase {
|
|
1957
|
-
constructor() {
|
|
1958
|
-
super(...arguments);
|
|
1959
|
-
this.lens = Lens.onEditableComponent(this);
|
|
1960
|
-
this.searchLens = this.lens.prop('search');
|
|
1961
|
-
}
|
|
1962
|
-
renderNotFound() {
|
|
1963
|
-
if (this.props.renderNotFound) {
|
|
1964
|
-
return this.props.renderNotFound();
|
|
1965
|
-
}
|
|
1966
|
-
return (React__default.createElement(FlexCell$1, { cx: css$K[`no-found-size-${this.props.searchSize || 36}`], grow: 1, textAlign: "center" },
|
|
1967
|
-
React__default.createElement(Text, { size: this.props.searchSize || '36' }, i18n.dataPickerBody.noRecordsMessage)));
|
|
1968
|
-
}
|
|
1969
|
-
render() {
|
|
1970
|
-
const searchSize = isMobile() ? '48' : this.props.searchSize || '36';
|
|
1971
|
-
return (React__default.createElement(React__default.Fragment, null,
|
|
1972
|
-
this.showSearch() && (React__default.createElement("div", { key: "search", className: css$K.searchWrapper },
|
|
1973
|
-
React__default.createElement(FlexCell$1, { grow: 1 },
|
|
1974
|
-
React__default.createElement(SearchInput, Object.assign({ ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize }))))),
|
|
1975
|
-
React__default.createElement(FlexRow, { key: "body", cx: cx$1(css$K.body, css$K[this.props.editMode], css$K[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()))));
|
|
1976
|
-
}
|
|
1977
|
-
}
|
|
1978
|
-
|
|
1979
|
-
const switchSizes = {
|
|
1980
|
-
24: '12',
|
|
1981
|
-
36: '18',
|
|
1982
|
-
42: '24',
|
|
1983
|
-
48: '24',
|
|
1984
|
-
};
|
|
1985
|
-
function DataPickerFooterImpl(props) {
|
|
1986
|
-
const { clearSelection, view, showSelected, selectionMode, } = props;
|
|
1987
|
-
const size = isMobile() ? '48' : props.size || '36';
|
|
1988
|
-
const switchSize = switchSizes[size];
|
|
1989
|
-
const hasSelection = view.getSelectedRowsCount() > 0;
|
|
1990
|
-
const isSinglePicker = selectionMode === 'single';
|
|
1991
|
-
const clearAllText = i18n.pickerInput.clearSelectionButton;
|
|
1992
|
-
const clearSingleText = i18n.pickerInput.clearSelectionButtonSingle;
|
|
1993
|
-
const selectAllText = i18n.pickerInput.selectAllButton;
|
|
1994
|
-
// show always for multi picker and for single only in case if search not disabled.
|
|
1995
|
-
const shouldShowFooter = isSinglePicker ? !props.disableClear : true;
|
|
1996
|
-
return shouldShowFooter && (React__default.createElement(FlexRow, { padding: "12" },
|
|
1997
|
-
!isSinglePicker && (React__default.createElement(Switch, { size: switchSize, value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
1998
|
-
React__default.createElement(FlexSpacer, null),
|
|
1999
|
-
React__default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
2000
|
-
view.selectAll && (React__default.createElement(LinkButton, { size: size, caption: hasSelection ? clearAllText : selectAllText, onClick: hasSelection ? clearSelection : () => view.selectAll.onValueChange(true), rawProps: {
|
|
2001
|
-
'aria-label': hasSelection ? clearAllText : selectAllText,
|
|
2002
|
-
} })),
|
|
2003
|
-
!view.selectAll && (React__default.createElement(LinkButton, { isDisabled: !hasSelection, size: size, caption: isSinglePicker ? clearSingleText : clearAllText, onClick: clearSelection, rawProps: {
|
|
2004
|
-
'aria-label': isSinglePicker ? clearSingleText : clearAllText,
|
|
2005
|
-
} })))));
|
|
2006
|
-
}
|
|
2007
|
-
const DataPickerFooter = React__default.memo(DataPickerFooterImpl);
|
|
2008
|
-
|
|
2009
|
-
var css$J = {"header":"hKec5G","close":"h1cM0x"};
|
|
2010
|
-
|
|
2011
|
-
var _path$A;
|
|
2012
|
-
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); }
|
|
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); }
|
|
2013
1837
|
var SvgNavigationClose24 = function SvgNavigationClose24(props, ref) {
|
|
2014
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1838
|
+
return /*#__PURE__*/React.createElement("svg", _extends$A({
|
|
2015
1839
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2016
1840
|
width: 24,
|
|
2017
1841
|
height: 24,
|
|
2018
1842
|
viewBox: "0 0 24 24",
|
|
2019
1843
|
ref: ref
|
|
2020
|
-
}, props), _path$
|
|
1844
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React.createElement("path", {
|
|
2021
1845
|
fillRule: "evenodd",
|
|
2022
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",
|
|
2023
1847
|
clipRule: "evenodd"
|
|
2024
1848
|
})));
|
|
2025
1849
|
};
|
|
2026
|
-
var ForwardRef$
|
|
1850
|
+
var ForwardRef$A = /*#__PURE__*/forwardRef(SvgNavigationClose24);
|
|
2027
1851
|
|
|
2028
1852
|
const DataPickerHeaderImpl = (props) => {
|
|
2029
1853
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
2030
|
-
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 },
|
|
2031
1855
|
React__default.createElement(Text, { size: "48", font: "semibold" }, title),
|
|
2032
|
-
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 })));
|
|
2033
1857
|
};
|
|
2034
1858
|
const DataPickerHeader = React__default.memo(DataPickerHeaderImpl);
|
|
2035
1859
|
|
|
2036
|
-
var _path$
|
|
2037
|
-
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); }
|
|
2038
1862
|
var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref) {
|
|
2039
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1863
|
+
return /*#__PURE__*/React.createElement("svg", _extends$z({
|
|
2040
1864
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2041
1865
|
width: 18,
|
|
2042
1866
|
height: 18,
|
|
2043
1867
|
viewBox: "0 0 18 18",
|
|
2044
1868
|
ref: ref
|
|
2045
|
-
}, props), _path$
|
|
1869
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
|
|
2046
1870
|
fillRule: "evenodd",
|
|
2047
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",
|
|
2048
1872
|
clipRule: "evenodd"
|
|
2049
1873
|
})));
|
|
2050
1874
|
};
|
|
2051
|
-
var ForwardRef$
|
|
1875
|
+
var ForwardRef$z = /*#__PURE__*/forwardRef(SvgNavigationChevronDown18);
|
|
2052
1876
|
|
|
2053
|
-
var css$
|
|
1877
|
+
var css$K = {"cell":"XjKrco","wrapper":"fTv4i7","align-widgets-top":"Ua1KJp","size-24":"oaM8FD","folding-arrow":"XoVrS-","size-30":"_7lfYSn","size-36":"ncM7pi","size-42":"ejNwNI","size-48":"q2glX4","size-60":"_18hWmy","align-widgets-center":"YwpBtM","padding-12":"J-bkXf","padding-24":"J8TYbq","padding-left-12":"_66I3se","padding-left-24":"go51jF","padding-right-24":"sDDRt-","drag-handle":"GVCO-l","checkbox":"YqT4UL","indent":"xehW3c","folding-arrow-12":"RXOLW3","folding-arrow-18":"EZh2YO","icon-container":"EkMUaZ","loading-cell":"TEqXBn","alignWidgetsTop":"Ua1KJp","size24":"oaM8FD","foldingArrow":"XoVrS-","size30":"_7lfYSn","size36":"ncM7pi","size42":"ejNwNI","size48":"q2glX4","size60":"_18hWmy","alignWidgetsCenter":"YwpBtM","padding12":"J-bkXf","padding24":"J8TYbq","paddingLeft12":"_66I3se","paddingLeft24":"go51jF","paddingRight24":"sDDRt-","dragHandle":"GVCO-l","foldingArrow12":"RXOLW3","foldingArrow18":"EZh2YO","iconContainer":"EkMUaZ","loadingCell":"TEqXBn"};
|
|
2054
1878
|
|
|
2055
1879
|
function DataTableRowAddons(props) {
|
|
2056
1880
|
var _a, _b;
|
|
2057
1881
|
const row = props.rowProps;
|
|
2058
1882
|
const additionalItemSize = +props.size < 30 ? '12' : '18';
|
|
2059
1883
|
return (React.createElement(React.Fragment, null,
|
|
2060
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React.createElement(DragHandle, { key: "dh", cx: css$
|
|
2061
|
-
((_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$
|
|
2062
|
-
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: {
|
|
2063
1887
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
2064
1888
|
role: 'button',
|
|
2065
|
-
}, key: "icon", icon: ForwardRef$
|
|
2066
|
-
css$
|
|
1889
|
+
}, key: "icon", icon: ForwardRef$z, cx: [
|
|
1890
|
+
css$K.foldingArrow, css$K[`folding-arrow-${additionalItemSize}`], uuiMarkers.clickable, css$K.iconContainer,
|
|
2067
1891
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))))));
|
|
2068
1892
|
}
|
|
2069
1893
|
function DataTableCell(props) {
|
|
@@ -2074,76 +1898,77 @@ function DataTableCell(props) {
|
|
|
2074
1898
|
props.renderPlaceholder = props.renderPlaceholder
|
|
2075
1899
|
|| (() => (
|
|
2076
1900
|
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
2077
|
-
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 },
|
|
2078
1902
|
React.createElement(TextPlaceholder, null))));
|
|
2079
1903
|
props.renderUnknown = props.renderUnknown
|
|
2080
1904
|
|| (() => (React.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48' }, "Unknown")));
|
|
2081
1905
|
props.renderTooltip = (tooltipProps) => React.createElement(Tooltip, Object.assign({ color: "critical" }, tooltipProps));
|
|
2082
1906
|
const isEditable = !!props.onValueChange;
|
|
2083
1907
|
props.cx = [
|
|
1908
|
+
'uui-dt-vars',
|
|
2084
1909
|
'data-table-cell',
|
|
2085
1910
|
props.cx,
|
|
2086
|
-
css$
|
|
2087
|
-
css$
|
|
2088
|
-
css$
|
|
2089
|
-
props.isFirstColumn && css$
|
|
2090
|
-
props.isLastColumn && css$
|
|
2091
|
-
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'}`],
|
|
2092
1917
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
2093
1918
|
];
|
|
2094
1919
|
return React.createElement(DataTableCell$1, Object.assign({}, props));
|
|
2095
1920
|
}
|
|
2096
1921
|
|
|
2097
|
-
var _path$
|
|
2098
|
-
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); }
|
|
2099
1924
|
var SvgNotificationDone24 = function SvgNotificationDone24(props, ref) {
|
|
2100
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1925
|
+
return /*#__PURE__*/React.createElement("svg", _extends$y({
|
|
2101
1926
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2102
1927
|
width: 24,
|
|
2103
1928
|
height: 24,
|
|
2104
1929
|
viewBox: "0 0 24 24",
|
|
2105
1930
|
ref: ref
|
|
2106
|
-
}, props), _path$
|
|
1931
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
|
|
2107
1932
|
fillRule: "evenodd",
|
|
2108
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",
|
|
2109
1934
|
clipRule: "evenodd"
|
|
2110
1935
|
})));
|
|
2111
1936
|
};
|
|
2112
|
-
var ForwardRef$
|
|
1937
|
+
var ForwardRef$y = /*#__PURE__*/forwardRef(SvgNotificationDone24);
|
|
2113
1938
|
|
|
2114
|
-
var _path$
|
|
2115
|
-
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); }
|
|
2116
1941
|
var SvgNotificationDone18 = function SvgNotificationDone18(props, ref) {
|
|
2117
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1942
|
+
return /*#__PURE__*/React.createElement("svg", _extends$x({
|
|
2118
1943
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2119
1944
|
width: 18,
|
|
2120
1945
|
height: 18,
|
|
2121
1946
|
viewBox: "0 0 18 18",
|
|
2122
1947
|
ref: ref
|
|
2123
|
-
}, props), _path$
|
|
1948
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
|
|
2124
1949
|
fillRule: "evenodd",
|
|
2125
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",
|
|
2126
1951
|
clipRule: "evenodd"
|
|
2127
1952
|
})));
|
|
2128
1953
|
};
|
|
2129
|
-
var ForwardRef$
|
|
1954
|
+
var ForwardRef$x = /*#__PURE__*/forwardRef(SvgNotificationDone18);
|
|
2130
1955
|
|
|
2131
|
-
var _path$
|
|
2132
|
-
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); }
|
|
2133
1958
|
var SvgNotificationDone12 = function SvgNotificationDone12(props, ref) {
|
|
2134
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1959
|
+
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
2135
1960
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2136
1961
|
width: 12,
|
|
2137
1962
|
height: 12,
|
|
2138
1963
|
viewBox: "0 0 12 12",
|
|
2139
1964
|
ref: ref
|
|
2140
|
-
}, props), _path$
|
|
1965
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
|
|
2141
1966
|
d: "M11 3.6 9.462 2 4.846 6.8 2.538 4.4 1 6l3.846 4L11 3.6z"
|
|
2142
1967
|
})));
|
|
2143
1968
|
};
|
|
2144
|
-
var ForwardRef$
|
|
1969
|
+
var ForwardRef$w = /*#__PURE__*/forwardRef(SvgNotificationDone12);
|
|
2145
1970
|
|
|
2146
|
-
var css$
|
|
1971
|
+
var css$J = {"uui-typography":"_9USLHN","hero-header":"HQQKB1","promo-header":"KLpsnv","uui-critical":"kMPKxG","uui-success":"_5Y097w","uui-warning":"Upl3Py","uui-typography-size-12":"_8cdfCK","uui-typography-size-14":"OGtg6C","uui-typography-size-16":"nJ2Iyi","render-item":"VD-DSQ","icon-wrapper":"R6bUgT","picker-row":"AtJLzs","icon-default":"D65yTW","icon-primary":"dPb8DH","uuiTypography":"_9USLHN","heroHeader":"HQQKB1","promoHeader":"KLpsnv","uuiCritical":"kMPKxG","uuiSuccess":"_5Y097w","uuiWarning":"Upl3Py","uuiTypographySize12":"_8cdfCK","uuiTypographySize14":"OGtg6C","uuiTypographySize16":"nJ2Iyi","renderItem":"VD-DSQ","iconWrapper":"R6bUgT","pickerRow":"AtJLzs","iconDefault":"D65yTW","iconPrimary":"dPb8DH"};
|
|
2147
1972
|
|
|
2148
1973
|
class DataPickerRow extends React.Component {
|
|
2149
1974
|
constructor() {
|
|
@@ -2151,26 +1976,26 @@ class DataPickerRow extends React.Component {
|
|
|
2151
1976
|
this.getIcon = (size) => {
|
|
2152
1977
|
switch (size) {
|
|
2153
1978
|
case '24':
|
|
2154
|
-
return ForwardRef$
|
|
1979
|
+
return ForwardRef$w;
|
|
2155
1980
|
case '30':
|
|
2156
|
-
return ForwardRef$
|
|
1981
|
+
return ForwardRef$x;
|
|
2157
1982
|
case '36':
|
|
2158
|
-
return ForwardRef$
|
|
1983
|
+
return ForwardRef$x;
|
|
2159
1984
|
case '42':
|
|
2160
|
-
return ForwardRef$z;
|
|
2161
|
-
default:
|
|
2162
1985
|
return ForwardRef$y;
|
|
1986
|
+
default:
|
|
1987
|
+
return ForwardRef$x;
|
|
2163
1988
|
}
|
|
2164
1989
|
};
|
|
2165
1990
|
this.column = {
|
|
2166
1991
|
key: 'name',
|
|
2167
1992
|
grow: 1,
|
|
2168
1993
|
width: 0,
|
|
2169
|
-
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 },
|
|
2170
1995
|
this.props.renderItem(item, rowProps),
|
|
2171
1996
|
React.createElement(FlexSpacer, null),
|
|
2172
|
-
(rowProps.isChildrenSelected || rowProps.isSelected) && (React.createElement("div", { className: css$
|
|
2173
|
-
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
|
|
2174
1999
|
? 'Child is selected'
|
|
2175
2000
|
: 'Selected' } }))))),
|
|
2176
2001
|
};
|
|
@@ -2179,31 +2004,31 @@ class DataPickerRow extends React.Component {
|
|
|
2179
2004
|
};
|
|
2180
2005
|
}
|
|
2181
2006
|
render() {
|
|
2182
|
-
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 }));
|
|
2183
2008
|
}
|
|
2184
2009
|
}
|
|
2185
2010
|
|
|
2186
|
-
var css$
|
|
2011
|
+
var css$I = {"uui-typography":"wBIRv7","hero-header":"qX9SAF","promo-header":"xL5Iwl","uui-critical":"Bud3KW","uui-success":"RtZgKb","uui-warning":"p6nIhk","uui-typography-size-12":"Y71xBT","uui-typography-size-14":"AXsDfo","uui-typography-size-16":"p8yJZf","done":"l3-I6q","container":"NfVfF3","uuiTypography":"wBIRv7","heroHeader":"qX9SAF","promoHeader":"xL5Iwl","uuiCritical":"Bud3KW","uuiSuccess":"RtZgKb","uuiWarning":"p6nIhk","uuiTypographySize12":"Y71xBT","uuiTypographySize14":"AXsDfo","uuiTypographySize16":"p8yJZf"};
|
|
2187
2012
|
|
|
2188
2013
|
const MobileDropdownWrapper = (props) => {
|
|
2189
2014
|
const isMobileView = isMobile();
|
|
2190
|
-
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 }),
|
|
2191
2016
|
isMobileView && React__default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
|
|
2192
2017
|
props.children,
|
|
2193
|
-
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" })));
|
|
2194
2019
|
};
|
|
2195
2020
|
|
|
2196
|
-
var _path$
|
|
2197
|
-
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); }
|
|
2198
2023
|
var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
2199
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
2024
|
+
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
2200
2025
|
width: 66,
|
|
2201
2026
|
height: 67,
|
|
2202
2027
|
viewBox: "0 0 66 67",
|
|
2203
2028
|
fill: "none",
|
|
2204
2029
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2205
2030
|
ref: ref
|
|
2206
|
-
}, props), _path$
|
|
2031
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
|
|
2207
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",
|
|
2208
2033
|
fill: "#EBEDF5"
|
|
2209
2034
|
})), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -2213,9 +2038,9 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2213
2038
|
fill: "#6C6F80"
|
|
2214
2039
|
})));
|
|
2215
2040
|
};
|
|
2216
|
-
var ForwardRef$
|
|
2041
|
+
var ForwardRef$v = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
|
|
2217
2042
|
|
|
2218
|
-
var css$
|
|
2043
|
+
var css$H = {"uui-typography":"kikt-y","hero-header":"QE0qYA","promo-header":"pHvbg7","uui-critical":"nkebDQ","uui-success":"ZRp5C9","uui-warning":"ixY1Gr","uui-typography-size-12":"W56-Hv","uui-typography-size-14":"KRn-P8","uui-typography-size-16":"dzDbJr","sub-header-wrapper":"YHZG-y","switch":"EmiVQm","no-found-modal-container":"aLCdse","no-found-modal-container-icon":"SPYiPv","no-found-modal-container-text":"SnJlH-","uuiTypography":"kikt-y","heroHeader":"QE0qYA","promoHeader":"pHvbg7","uuiCritical":"nkebDQ","uuiSuccess":"ZRp5C9","uuiWarning":"ixY1Gr","uuiTypographySize12":"W56-Hv","uuiTypographySize14":"KRn-P8","uuiTypographySize16":"dzDbJr","subHeaderWrapper":"YHZG-y","$switch$":"EmiVQm","noFoundModalContainer":"aLCdse","noFoundModalContainerIcon":"SPYiPv","noFoundModalContainerText":"SnJlH-"};
|
|
2219
2044
|
|
|
2220
2045
|
function PickerModal(props) {
|
|
2221
2046
|
const { view, selection, dataSourceStateLens, showSelectedLens, dataSourceState, getDataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = usePickerModal(props);
|
|
@@ -2227,174 +2052,47 @@ function PickerModal(props) {
|
|
|
2227
2052
|
return (React__default.createElement(React__default.Fragment, null,
|
|
2228
2053
|
view.selectAll && (React__default.createElement(LinkButton, { caption: hasSelection ? i18n.pickerModal.clearAllButton : i18n.pickerModal.selectAllButton, onClick: hasSelection ? () => clearSelection() : () => view.selectAll.onValueChange(true) })),
|
|
2229
2054
|
React__default.createElement(FlexSpacer, null),
|
|
2230
|
-
React__default.createElement(Button, {
|
|
2055
|
+
React__default.createElement(Button, { fill: "outline", color: "secondary", caption: i18n.pickerModal.cancelButton, onClick: () => props.abort() }),
|
|
2231
2056
|
React__default.createElement(Button, { color: "accent", caption: i18n.pickerModal.selectButton, onClick: () => props.success(selection) })));
|
|
2232
2057
|
};
|
|
2233
2058
|
const renderNotFound = () => {
|
|
2234
|
-
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__default.createElement("div", { className: css$
|
|
2235
|
-
React__default.createElement(IconContainer, { cx: css$
|
|
2236
|
-
React__default.createElement(Text, { cx: css$
|
|
2237
|
-
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)));
|
|
2238
2063
|
};
|
|
2239
2064
|
const dataRows = getRows();
|
|
2240
2065
|
const rows = dataRows.map((row) => renderRow(row));
|
|
2241
2066
|
return (React__default.createElement(ModalBlocker, Object.assign({}, props),
|
|
2242
2067
|
React__default.createElement(ModalWindow, { width: 600, height: 700 },
|
|
2243
2068
|
React__default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
2244
|
-
React__default.createElement(FlexCell, { cx: css$
|
|
2069
|
+
React__default.createElement(FlexCell, { cx: css$H.subHeaderWrapper },
|
|
2245
2070
|
React__default.createElement(FlexRow, { vPadding: "24" },
|
|
2246
2071
|
React__default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => handleDataSourceKeyboard({
|
|
2247
2072
|
value: getDataSourceState(),
|
|
2248
2073
|
onValueChange: handleDataSourceValueChange,
|
|
2249
2074
|
listView: view,
|
|
2250
2075
|
rows: dataRows,
|
|
2251
|
-
|
|
2076
|
+
searchPosition: 'body',
|
|
2252
2077
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder }))),
|
|
2253
|
-
!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" }))),
|
|
2254
2079
|
props.renderFilter && React__default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
2255
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" })),
|
|
2256
2081
|
React__default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
2257
2082
|
}
|
|
2258
2083
|
|
|
2259
|
-
var css$E = {"root":"wpTgsJ"};
|
|
2260
|
-
|
|
2261
|
-
const AvatarStack = withMods(AvatarStack$1, () => [css$E.root]);
|
|
2262
|
-
|
|
2263
|
-
var css$D = {"root":"g2GaTF","size-18":"lFB9qZ","fill-transparent":"l8aT0K","size-24":"LvDUJc","size-30":"eUWIJU","size-36":"IZKJg7","size-42":"E3BKCK","size-48":"go0UJ6","fill-solid":"_9MM4-l","fill-semitransparent":"WXI04I","size18":"lFB9qZ","fillTransparent":"l8aT0K","size24":"LvDUJc","size30":"eUWIJU","size36":"IZKJg7","size42":"E3BKCK","size48":"go0UJ6","fillSolid":"_9MM4-l","fillSemitransparent":"WXI04I"};
|
|
2264
|
-
|
|
2265
|
-
const defaultSize$5 = '36';
|
|
2266
|
-
const mapSize$1 = {
|
|
2267
|
-
48: '48',
|
|
2268
|
-
42: '48',
|
|
2269
|
-
36: '36',
|
|
2270
|
-
30: '30',
|
|
2271
|
-
24: '30',
|
|
2272
|
-
18: '18',
|
|
2273
|
-
};
|
|
2274
|
-
function applyBadgeMods(mods) {
|
|
2275
|
-
return [
|
|
2276
|
-
css$D.root, buttonCss.root, css$D['size-' + (mods.size || defaultSize$5)], css$D['fill-' + (mods.fill || 'solid')], mods.color && `badge-${mods.color}`,
|
|
2277
|
-
];
|
|
2278
|
-
}
|
|
2279
|
-
const Badge = withMods(Button$1, applyBadgeMods, (props) => ({
|
|
2280
|
-
dropdownIcon: systemIcons[(props.size && mapSize$1[props.size]) || defaultSize$5].foldingArrow,
|
|
2281
|
-
clearIcon: systemIcons[(props.size && mapSize$1[props.size]) || defaultSize$5].clear,
|
|
2282
|
-
countPosition: 'left',
|
|
2283
|
-
}));
|
|
2284
|
-
|
|
2285
|
-
var css$C = {"root":"_1-I1ie","size-18":"_5CmAdj","size-24":"nWfM8C","size-30":"ChHfDN","size-36":"b3axBo","size-42":"_4K3Gli","size-48":"xWS4i7","size18":"_5CmAdj","size24":"nWfM8C","size30":"ChHfDN","size36":"b3axBo","size42":"_4K3Gli","size48":"xWS4i7"};
|
|
2286
|
-
|
|
2287
|
-
const defaultSize$4 = '36';
|
|
2288
|
-
const mapSize = {
|
|
2289
|
-
48: '48',
|
|
2290
|
-
42: '48',
|
|
2291
|
-
36: '36',
|
|
2292
|
-
30: '30',
|
|
2293
|
-
24: '30',
|
|
2294
|
-
18: '18',
|
|
2295
|
-
};
|
|
2296
|
-
function applyTagMods(mods) {
|
|
2297
|
-
return [css$C['size-' + (mods.size || defaultSize$4)], css$C.root];
|
|
2298
|
-
}
|
|
2299
|
-
const Tag = withMods(Button$1, applyTagMods, (props) => ({
|
|
2300
|
-
dropdownIcon: systemIcons[mapSize[props.size] || defaultSize$4].foldingArrow,
|
|
2301
|
-
clearIcon: systemIcons[mapSize[props.size] || defaultSize$4].clear,
|
|
2302
|
-
}));
|
|
2303
|
-
|
|
2304
|
-
var css$B = {"root":"zHpSJK","spacer":"eFz-P4","mode-ghost":"_3dh7wo","size-24":"Rqjuvc","size-30":"As-OAc","navigation-size-24":"Rw9pt-","navigation-size-30":"-agfoU","modeGhost":"_3dh7wo","size24":"Rqjuvc","size30":"As-OAc","navigationSize24":"Rw9pt-","navigationSize30":"-agfoU"};
|
|
2305
|
-
|
|
2306
|
-
var _path$u;
|
|
2307
|
-
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); }
|
|
2308
|
-
var SvgNavigationChevronLeft12 = function SvgNavigationChevronLeft12(props, ref) {
|
|
2309
|
-
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
2310
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2311
|
-
width: 12,
|
|
2312
|
-
height: 12,
|
|
2313
|
-
viewBox: "0 0 12 12",
|
|
2314
|
-
ref: ref
|
|
2315
|
-
}, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
|
|
2316
|
-
fillRule: "evenodd",
|
|
2317
|
-
d: "M7.705 3.705 7 3 4 6l3 3 .705-.705L5.415 6l2.29-2.295z",
|
|
2318
|
-
clipRule: "evenodd"
|
|
2319
|
-
})));
|
|
2320
|
-
};
|
|
2321
|
-
var ForwardRef$v = /*#__PURE__*/forwardRef(SvgNavigationChevronLeft12);
|
|
2322
|
-
|
|
2323
|
-
var _path$t;
|
|
2324
|
-
function _extends$u() { _extends$u = 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$u.apply(this, arguments); }
|
|
2325
|
-
var SvgNavigationChevronRight12 = function SvgNavigationChevronRight12(props, ref) {
|
|
2326
|
-
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
2327
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2328
|
-
width: 12,
|
|
2329
|
-
height: 12,
|
|
2330
|
-
viewBox: "0 0 12 12",
|
|
2331
|
-
ref: ref
|
|
2332
|
-
}, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
|
|
2333
|
-
fillRule: "evenodd",
|
|
2334
|
-
d: "m5 3-.705.705L6.585 6l-2.29 2.295L5 9l3-3-3-3z",
|
|
2335
|
-
clipRule: "evenodd"
|
|
2336
|
-
})));
|
|
2337
|
-
};
|
|
2338
|
-
var ForwardRef$u = /*#__PURE__*/forwardRef(SvgNavigationChevronRight12);
|
|
2339
|
-
|
|
2340
|
-
function Paginator(props) {
|
|
2341
|
-
const renderPaginator = (params) => {
|
|
2342
|
-
var _a, _b;
|
|
2343
|
-
return (React__default.createElement("nav", Object.assign({ role: "navigation", className: css$B.root }, params.rawProps),
|
|
2344
|
-
React__default.createElement(Button, { cx: css$B[`navigation-size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$J : ForwardRef$v, onClick: params.goToPrev, isDisabled: params.isFirst, mode: "outline", color: "secondary" }),
|
|
2345
|
-
params.pages.map((page, index) => {
|
|
2346
|
-
var _a, _b;
|
|
2347
|
-
if (page.type === 'spacer') {
|
|
2348
|
-
return (React__default.createElement(Button, { cx: cx(css$B[`size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], css$B.spacer), size: params.size, key: `${index}_spacer`, caption: "...", mode: "ghost", color: "secondary", tabIndex: -1 }));
|
|
2349
|
-
}
|
|
2350
|
-
else {
|
|
2351
|
-
return (React__default.createElement(Button, { cx: cx(css$B[`size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], css$B[`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 }, mode: (page.isActive && 'outline') || 'ghost', color: "primary" }));
|
|
2352
|
-
}
|
|
2353
|
-
}),
|
|
2354
|
-
React__default.createElement(Button, { cx: css$B[`navigation-size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$I : ForwardRef$u, onClick: params.goToNext, isDisabled: params.isLast, mode: "outline", color: "secondary" })));
|
|
2355
|
-
};
|
|
2356
|
-
return React__default.createElement(Paginator$1, Object.assign({}, props, { render: renderPaginator }));
|
|
2357
|
-
}
|
|
2358
|
-
|
|
2359
|
-
var css$A = {"root":"J1Q-ET","bar":"Hrr-CY","progressBar-indeterminate":"I6Mhye","size-12":"_0LaF1B","size-18":"wXkA4a","size-24":"gMexWL","progressBarIndeterminate":"I6Mhye","size12":"_0LaF1B","size18":"wXkA4a","size24":"gMexWL"};
|
|
2360
|
-
|
|
2361
|
-
const IndeterminateBar = React.forwardRef((props, ref) => {
|
|
2362
|
-
return (React.createElement("div", { ref: ref, className: cx(props.cx, css$A.root, css$A[`size-${props.size || 12}`]) },
|
|
2363
|
-
React.createElement("div", { className: cx(css$A.bar) })));
|
|
2364
|
-
});
|
|
2365
|
-
|
|
2366
|
-
var css$z = {"root":"Ygyvyo","striped":"cYG-rF","animate-stripes":"Rb6nNv","size-12":"K9B4DN","size-18":"_4jfOKa","size-24":"PbHM1I","animateStripes":"Rb6nNv","size12":"K9B4DN","size18":"_4jfOKa","size24":"PbHM1I"};
|
|
2367
|
-
|
|
2368
|
-
const defaultSize$3 = '12';
|
|
2369
|
-
function applyProgressBarMods(mods) {
|
|
2370
|
-
const size = mods.size || defaultSize$3;
|
|
2371
|
-
return [
|
|
2372
|
-
css$z.root, css$z[`size-${size}`], mods.striped && css$z.striped,
|
|
2373
|
-
];
|
|
2374
|
-
}
|
|
2375
|
-
const ProgressBar = withMods(ProgressBar$1, applyProgressBarMods, (props) => ({
|
|
2376
|
-
hideLabel: props.hideLabel || props.striped,
|
|
2377
|
-
}));
|
|
2378
|
-
|
|
2379
|
-
var css$y = {"root":"V5ZqTD"};
|
|
2380
|
-
|
|
2381
|
-
const IndicatorBar = React.forwardRef((props, ref) => {
|
|
2382
|
-
const { progress } = props;
|
|
2383
|
-
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$y.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$y.root, props.cx) }));
|
|
2384
|
-
});
|
|
2385
|
-
|
|
2386
2084
|
const MAX_ITEMS = 100;
|
|
2387
2085
|
const getMaxItems = (maxItems) => maxItems || maxItems === 0 ? maxItems : MAX_ITEMS;
|
|
2388
2086
|
|
|
2389
|
-
var css$
|
|
2087
|
+
var css$G = {"uui-typography":"sQQj5s","hero-header":"_9aaey-","promo-header":"p5LCtM","uui-critical":"rMCuRU","uui-success":"mDpbWl","uui-warning":"Rw3xv0","uui-typography-size-12":"B4XeiI","uui-typography-size-14":"P4YlEH","uui-typography-size-16":"bGt7Jr","root":"E8pxGp","mode-form":"DCnwtL","mode-cell":"ueQo1o","mode-inline":"v11GFl","size-24":"_6rvzHn","size-30":"dZ-gOp","size-36":"_7mUcLE","size-42":"w5NzhK","size-48":"b8FGFE","uuiTypography":"sQQj5s","heroHeader":"_9aaey-","promoHeader":"p5LCtM","uuiCritical":"rMCuRU","uuiSuccess":"mDpbWl","uuiWarning":"Rw3xv0","uuiTypographySize12":"B4XeiI","uuiTypographySize14":"P4YlEH","uuiTypographySize16":"bGt7Jr","modeForm":"DCnwtL","modeCell":"ueQo1o","modeInline":"v11GFl","size24":"_6rvzHn","size30":"dZ-gOp","size36":"_7mUcLE","size42":"w5NzhK","size48":"b8FGFE"};
|
|
2390
2088
|
|
|
2391
2089
|
const defaultSize$2 = '36';
|
|
2392
|
-
const defaultMode = EditMode.FORM;
|
|
2090
|
+
const defaultMode$1 = EditMode.FORM;
|
|
2393
2091
|
function applyPickerTogglerMods(mods) {
|
|
2394
2092
|
return [
|
|
2395
|
-
css$
|
|
2396
|
-
css$
|
|
2397
|
-
css$
|
|
2093
|
+
css$G.root,
|
|
2094
|
+
css$G['size-' + (mods.size || defaultSize$2)],
|
|
2095
|
+
css$G['mode-' + (mods.mode || defaultMode$1)],
|
|
2398
2096
|
];
|
|
2399
2097
|
}
|
|
2400
2098
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -2436,9 +2134,9 @@ function PickerTogglerComponent(props, ref) {
|
|
|
2436
2134
|
}
|
|
2437
2135
|
const PickerToggler = React.forwardRef(PickerTogglerComponent);
|
|
2438
2136
|
|
|
2439
|
-
var css$
|
|
2137
|
+
var css$F = {"root":"_2dUS8A","multiline":"_1trv6u","vertical-padding-24":"_9Yv2rg","vertical-padding-30":"jZ-3-7","vertical-padding-36":"AtJGWQ","vertical-padding-42":"ARLKMU","vertical-padding-48":"Q-cTho","text":"V3-iwn","verticalPadding24":"_9Yv2rg","verticalPadding30":"jZ-3-7","verticalPadding36":"AtJGWQ","verticalPadding42":"ARLKMU","verticalPadding48":"Q-cTho"};
|
|
2440
2138
|
|
|
2441
|
-
var css$
|
|
2139
|
+
var css$E = {"highlighted-text":"O1m5aV","highlightedText":"O1m5aV"};
|
|
2442
2140
|
|
|
2443
2141
|
const mergeHighlightRanges = (ranges) => {
|
|
2444
2142
|
const mergedRanges = [];
|
|
@@ -2492,7 +2190,7 @@ const getHighlightRanges = (str, search) => {
|
|
|
2492
2190
|
};
|
|
2493
2191
|
const getDecoratedText = (str, ranges) => ranges.map((range, index) => {
|
|
2494
2192
|
const rangeStr = str.substring(range.from, range.to);
|
|
2495
|
-
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));
|
|
2496
2194
|
});
|
|
2497
2195
|
const getHighlightedSearchMatches = (str, search) => {
|
|
2498
2196
|
if (!search || !str) {
|
|
@@ -2521,20 +2219,20 @@ class PickerItem extends React.Component {
|
|
|
2521
2219
|
const { search } = (_a = this.props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2522
2220
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(this.props.title, search) : this.props.title;
|
|
2523
2221
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(this.props.subtitle, search) : this.props.subtitle;
|
|
2524
|
-
return (React.createElement(FlexCell, { width: "auto", cx: [css$
|
|
2525
|
-
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" },
|
|
2526
2224
|
avatarUrl && React.createElement(Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2527
2225
|
icon && React.createElement(IconContainer, { icon: icon }),
|
|
2528
2226
|
React.createElement(FlexCell, { width: "auto" },
|
|
2529
|
-
title && (React.createElement(Text, { size: itemSize, cx: css$
|
|
2530
|
-
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))))));
|
|
2531
2229
|
}
|
|
2532
2230
|
}
|
|
2533
2231
|
PickerItem.defaultProps = {
|
|
2534
2232
|
highlightSearchMatches: true,
|
|
2535
2233
|
};
|
|
2536
2234
|
|
|
2537
|
-
var css$
|
|
2235
|
+
var css$D = {"uui-typography":"fF8ZwP","hero-header":"_9b-bPp","promo-header":"-cvRcr","uui-critical":"fHlDEe","uui-success":"Dg92tJ","uui-warning":"qhpAAB","uui-typography-size-12":"v-FDRt","uui-typography-size-14":"EUJkES","uui-typography-size-16":"aFs07c","root":"fLKY6A","panel":"p4QNcg","footer-wrapper":"gFO-FS","footer-size-24":"r6XsSu","footer-size-30":"xZzEB2","footer-size-36":"zhjyXq","footer-size-42":"EsxpXL","footer-size-48":"Koxf6N","uuiTypography":"fF8ZwP","heroHeader":"_9b-bPp","promoHeader":"-cvRcr","uuiCritical":"fHlDEe","uuiSuccess":"Dg92tJ","uuiWarning":"qhpAAB","uuiTypographySize12":"v-FDRt","uuiTypographySize14":"EUJkES","uuiTypographySize16":"aFs07c","footerWrapper":"gFO-FS","footerSize24":"r6XsSu","footerSize30":"xZzEB2","footerSize36":"zhjyXq","footerSize42":"EsxpXL","footerSize48":"Koxf6N"};
|
|
2538
2236
|
|
|
2539
2237
|
const pickerHeight$1 = 300;
|
|
2540
2238
|
const pickerWidth = 360;
|
|
@@ -2549,7 +2247,7 @@ function PickerInput(_a) {
|
|
|
2549
2247
|
})
|
|
2550
2248
|
.catch(() => { });
|
|
2551
2249
|
};
|
|
2552
|
-
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 }));
|
|
2553
2251
|
const getTogglerMods = () => {
|
|
2554
2252
|
return {
|
|
2555
2253
|
size: props.size,
|
|
@@ -2558,7 +2256,7 @@ function PickerInput(_a) {
|
|
|
2558
2256
|
};
|
|
2559
2257
|
const renderTarget = (targetProps) => {
|
|
2560
2258
|
const renderTargetFn = props.renderToggler || ((props) => React__default.createElement(PickerToggler, Object.assign({}, props)));
|
|
2561
|
-
return (React__default.createElement(IEditableDebouncer, { value: targetProps.value, onValueChange: handleTogglerSearchChange, 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) })) }));
|
|
2562
2260
|
};
|
|
2563
2261
|
const renderFooter = () => {
|
|
2564
2262
|
const footerProps = getFooterProps();
|
|
@@ -2580,7 +2278,7 @@ function PickerInput(_a) {
|
|
|
2580
2278
|
const renderedDataRows = rows.map((row) => renderRow(row, dataSourceState));
|
|
2581
2279
|
const bodyHeight = isMobile() ? document.documentElement.clientHeight : props.dropdownHeight || pickerHeight$1;
|
|
2582
2280
|
const minBodyWidth = props.minBodyWidth || pickerWidth;
|
|
2583
|
-
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' },
|
|
2584
2282
|
React__default.createElement(DataPickerBody, Object.assign({}, bodyProps, { rows: renderedDataRows, maxHeight: bodyHeight, searchSize: props.size, editMode: "dropdown", selectionMode: props.selectionMode, renderNotFound: props.renderNotFound
|
|
2585
2283
|
? () => props.renderNotFound({
|
|
2586
2284
|
search: dataSourceState.search,
|
|
@@ -2591,12 +2289,12 @@ function PickerInput(_a) {
|
|
|
2591
2289
|
};
|
|
2592
2290
|
const rows = getRows();
|
|
2593
2291
|
return (React__default.createElement(Dropdown, { renderTarget: (dropdownProps) => {
|
|
2594
|
-
const targetProps = getTogglerProps(
|
|
2292
|
+
const targetProps = getTogglerProps();
|
|
2595
2293
|
return renderTarget(Object.assign(Object.assign({}, dropdownProps), targetProps));
|
|
2596
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 }));
|
|
2597
2295
|
}
|
|
2598
2296
|
|
|
2599
|
-
var css$
|
|
2297
|
+
var css$C = {"row":"xMWN54"};
|
|
2600
2298
|
|
|
2601
2299
|
function PickerListItem(props) {
|
|
2602
2300
|
var _a;
|
|
@@ -2614,7 +2312,7 @@ function PickerListItem(props) {
|
|
|
2614
2312
|
else {
|
|
2615
2313
|
component = (React__default.createElement(RadioInput, { label: label, value: props.isSelected, isDisabled: props.isLoading || !props.isSelectable || props.isDisabled, onValueChange: () => props.onSelect(props) }));
|
|
2616
2314
|
}
|
|
2617
|
-
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));
|
|
2618
2316
|
}
|
|
2619
2317
|
|
|
2620
2318
|
function PickerList(props) {
|
|
@@ -2650,304 +2348,111 @@ function PickerList(props) {
|
|
|
2650
2348
|
}, selectedRows)));
|
|
2651
2349
|
}
|
|
2652
2350
|
|
|
2653
|
-
var css$
|
|
2654
|
-
|
|
2655
|
-
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
2656
|
-
// 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.
|
|
2657
|
-
const renderCell = (props) => {
|
|
2658
|
-
const mods = props.rowProps;
|
|
2659
|
-
return React.createElement(DataTableCell, Object.assign({ size: mods.size }, props));
|
|
2660
|
-
};
|
|
2661
|
-
const renderDropMarkers = (props) => React.createElement(DropMarker, Object.assign({}, props, { enableBlocker: true }));
|
|
2662
|
-
const propsMods = { renderCell, renderDropMarkers };
|
|
2663
|
-
const DataTableRow = withMods(DataTableRow$1, ({ borderBottom = true, size }) => {
|
|
2664
|
-
return [
|
|
2665
|
-
css$s.root, borderBottom && 'uui-dt-row-border', css$s['size-' + (size || '36')],
|
|
2666
|
-
];
|
|
2667
|
-
}, () => propsMods);
|
|
2351
|
+
var css$B = {"uui-typography":"qotcmM","hero-header":"VPm67t","promo-header":"s7R73G","uui-critical":"_1CW-Ns","uui-success":"NxHJe2","uui-warning":"iRc28A","uui-typography-size-12":"Lfdlhf","uui-typography-size-14":"sb5Rbb","uui-typography-size-16":"_1zblT9","root":"BNm03Q","title-wrapper":"_9-IJUP","title":"Qg0AZQ","text-wrapper":"wuDR7n","selection":"YLD2Hy","postfix":"y8s5tw","selected":"RNA4BW","uuiTypography":"qotcmM","heroHeader":"VPm67t","promoHeader":"s7R73G","uuiCritical":"_1CW-Ns","uuiSuccess":"NxHJe2","uuiWarning":"iRc28A","uuiTypographySize12":"Lfdlhf","uuiTypographySize14":"sb5Rbb","uuiTypographySize16":"_1zblT9","titleWrapper":"_9-IJUP","textWrapper":"wuDR7n"};
|
|
2668
2352
|
|
|
2669
|
-
|
|
2353
|
+
const defaultSize = '36';
|
|
2354
|
+
const FilterPanelItemToggler = React.forwardRef((props, ref) => {
|
|
2355
|
+
const togglerPickerOpened = (e) => {
|
|
2356
|
+
var _a;
|
|
2357
|
+
if (props.isDisabled)
|
|
2358
|
+
return;
|
|
2359
|
+
e.preventDefault();
|
|
2360
|
+
(_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
2361
|
+
};
|
|
2362
|
+
const onKeyDownHandler = (e) => {
|
|
2363
|
+
if (props.isDisabled)
|
|
2364
|
+
return;
|
|
2365
|
+
if (e.key === 'Enter' && !props.isOpen) {
|
|
2366
|
+
e.preventDefault();
|
|
2367
|
+
props.toggleDropdownOpening(true);
|
|
2368
|
+
}
|
|
2369
|
+
if (e.key === 'Escape' && props.isOpen) {
|
|
2370
|
+
e.preventDefault();
|
|
2371
|
+
props.toggleDropdownOpening(false);
|
|
2372
|
+
}
|
|
2373
|
+
};
|
|
2374
|
+
const getTitle = props.predicateName ? `${props.title} ${props.predicateName}` : `${props.title}${props.selection ? ':' : ''}`;
|
|
2375
|
+
const getSelectionText = () => props.selection.map((i, index) => (React.createElement(React.Fragment, { key: `${i}${index}` },
|
|
2376
|
+
React.createElement(Text, { color: "brand", size: props.size, cx: css$B.selection }, i),
|
|
2377
|
+
(props.postfix || index !== props.selection.length - 1) && React.createElement("span", null, ",\u00A0"))));
|
|
2378
|
+
return (React.createElement(FlexRow$1, Object.assign({}, props, { rawProps: {
|
|
2379
|
+
style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` },
|
|
2380
|
+
role: 'button',
|
|
2381
|
+
tabIndex: props.isDisabled ? -1 : 0,
|
|
2382
|
+
onKeyDown: onKeyDownHandler,
|
|
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 },
|
|
2387
|
+
getSelectionText(),
|
|
2388
|
+
props.postfix && (React.createElement(Text, { color: "brand", size: props.size, cx: css$B.postfix }, props.postfix))))),
|
|
2389
|
+
!props.isDisabled && React.createElement(IconContainer, { icon: systemIcons[props.size || defaultSize].foldingArrow, flipY: props.isOpen, cx: "uui-icon-dropdown" })));
|
|
2390
|
+
});
|
|
2670
2391
|
|
|
2671
|
-
|
|
2672
|
-
function
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
}
|
|
2686
|
-
|
|
2392
|
+
const pickerHeight = 300;
|
|
2393
|
+
function FilterPickerBody(props) {
|
|
2394
|
+
const shouldShowBody = () => props.isOpen;
|
|
2395
|
+
const { getName, isSingleSelect, getRows, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, handleDataSourceValueChange, } = usePickerInput(Object.assign(Object.assign({}, props), { shouldShowBody }));
|
|
2396
|
+
const renderItem = (item, rowProps) => {
|
|
2397
|
+
return React.createElement(PickerItem, Object.assign({ title: getName(item), size: "36" }, rowProps));
|
|
2398
|
+
};
|
|
2399
|
+
const onSelect = (row) => {
|
|
2400
|
+
props.onClose();
|
|
2401
|
+
handleDataSourceValueChange(Object.assign(Object.assign({}, dataSourceState), { search: '', selectedId: row.id }));
|
|
2402
|
+
};
|
|
2403
|
+
const renderRow = (rowProps) => {
|
|
2404
|
+
if (rowProps.isSelectable && isSingleSelect() && props.editMode !== 'modal') {
|
|
2405
|
+
rowProps.onSelect = onSelect;
|
|
2406
|
+
}
|
|
2407
|
+
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: "none", size: "36", padding: "12", renderItem: renderItem })));
|
|
2408
|
+
};
|
|
2409
|
+
const renderFooter = () => {
|
|
2410
|
+
return React.createElement(DataPickerFooter, Object.assign({}, getFooterProps(), { size: "36" }));
|
|
2411
|
+
};
|
|
2412
|
+
const renderBody = (bodyProps, rows) => {
|
|
2413
|
+
const renderedDataRows = rows.map((props) => renderRow(props));
|
|
2414
|
+
const maxHeight = isMobile() ? document.documentElement.clientHeight : props.dropdownHeight || pickerHeight;
|
|
2415
|
+
return (React.createElement(React.Fragment, null,
|
|
2416
|
+
React.createElement(DataPickerBody, Object.assign({}, bodyProps, { selectionMode: props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, searchSize: "36", editMode: "dropdown", showSearch: true })),
|
|
2417
|
+
renderFooter()));
|
|
2418
|
+
};
|
|
2419
|
+
const rows = getRows();
|
|
2420
|
+
return renderBody(Object.assign(Object.assign({}, getPickerBodyProps(rows)), getListProps()), rows);
|
|
2421
|
+
}
|
|
2687
2422
|
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
};
|
|
2703
|
-
|
|
2423
|
+
class FilterDatePickerBody extends BaseDatePicker {
|
|
2424
|
+
constructor() {
|
|
2425
|
+
super(...arguments);
|
|
2426
|
+
this.state = Object.assign(Object.assign({}, super.getValue()), { isOpen: false, inputValue: null });
|
|
2427
|
+
this.renderInput = () => {
|
|
2428
|
+
return null;
|
|
2429
|
+
};
|
|
2430
|
+
this.onToggleHandler = (val) => {
|
|
2431
|
+
this.onToggle(val);
|
|
2432
|
+
this.props.onClose();
|
|
2433
|
+
};
|
|
2434
|
+
this.handleCancel = () => {
|
|
2435
|
+
this.handleValueChange(undefined);
|
|
2436
|
+
this.setState({ inputValue: null, selectedDate: null });
|
|
2437
|
+
};
|
|
2438
|
+
}
|
|
2439
|
+
renderBody() {
|
|
2440
|
+
var _a;
|
|
2441
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
2442
|
+
React__default.createElement(FlexRow, { borderBottom: true },
|
|
2443
|
+
React__default.createElement(DatePickerBody, { filter: this.props.filter, value: this.getValue(), setSelectedDate: this.setSelectedDate, setDisplayedDateAndView: this.setDisplayedDateAndView, changeIsOpen: this.onToggleHandler, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.body })),
|
|
2444
|
+
React__default.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2445
|
+
React__default.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2446
|
+
React__default.createElement(Text, null, this.state.selectedDate ? dayjs(this.state.selectedDate).format('MMM DD, YYYY') : ''),
|
|
2447
|
+
React__default.createElement(FlexSpacer, null),
|
|
2448
|
+
React__default.createElement(LinkButton, { isDisabled: !this.state.selectedDate, caption: i18n.filterToolbar.datePicker.clearCaption, onClick: this.handleCancel })))));
|
|
2449
|
+
}
|
|
2450
|
+
render() {
|
|
2451
|
+
return this.renderBody();
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2704
2454
|
|
|
2705
|
-
|
|
2706
|
-
const sortAsc = useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
2707
|
-
const sortDesc = useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
2708
|
-
return (React__default.createElement(FlexCell, { cx: css$r.sortingPanelContainer },
|
|
2709
|
-
React__default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$t, onClick: sortAsc }),
|
|
2710
|
-
React__default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$s, onClick: sortDesc })));
|
|
2711
|
-
};
|
|
2712
|
-
const SortingPanel = React__default.memo(SortingPanelImpl);
|
|
2713
|
-
|
|
2714
|
-
const ColumnHeaderDropdownImpl = (props) => {
|
|
2715
|
-
const popperModifiers = useMemo(() => [
|
|
2716
|
-
{
|
|
2717
|
-
name: 'offset',
|
|
2718
|
-
options: { offset: [0, 1] },
|
|
2719
|
-
}, mobilePopperModifier,
|
|
2720
|
-
], []);
|
|
2721
|
-
const closeDropdown = useCallback(() => props.onOpenChange(false), [props.onOpenChange]);
|
|
2722
|
-
return (React__default.createElement(Dropdown$1, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__default.createElement(MobileDropdownWrapper, { width: 360, title: props.title, onClose: closeDropdown },
|
|
2723
|
-
props.isSortable && React__default.createElement(SortingPanel, { sortDirection: props.sortDirection, onSort: props.onSort }),
|
|
2724
|
-
props.renderFilter(dropdownProps))), modifiers: popperModifiers, value: props.isOpen, onValueChange: props.onOpenChange }));
|
|
2725
|
-
};
|
|
2726
|
-
const ColumnHeaderDropdown = React__default.memo(ColumnHeaderDropdownImpl);
|
|
2727
|
-
|
|
2728
|
-
var css$q = {"cell":"tLAaeS","sort-icon":"fmuW6X","dropdown-icon":"_2XBE01","infoIcon":"g-SEdD","resizable":"fvxO4N","size-24":"vpt9Co","size-30":"t5WPTX","size-36":"Ha-8JD","size-42":"nI5chi","size-48":"k-8FVR","padding-left-24":"_2IORP8","padding-right-24":"eR2pIk","caption":"hXSvxS","checkbox":"WIQOhV","icon":"z-bjKK","icon-cell":"EjVWiZ","align-right":"jUnOzp","align-center":"YB-A2i","tooltip-wrapper":"hqa-dZ","cell-tooltip":"IE01Fr","upper-case":"lVsgvo","font-size-14":"cGKeij","resize-mark":"Zh231g","draggable":"klkXBa","ghost":"I0IT-7","is-dragged-out":"-x9U0X","dnd-marker-left":"Uwa2ke","dnd-marker-right":"L-Z1CZ","cell-tooltip-wrapper":"i721RA","cell-tooltip-text":"WRfPs-","sortIcon":"fmuW6X","dropdownIcon":"_2XBE01","size24":"vpt9Co","size30":"t5WPTX","size36":"Ha-8JD","size42":"nI5chi","size48":"k-8FVR","paddingLeft24":"_2IORP8","paddingRight24":"eR2pIk","iconCell":"EjVWiZ","alignRight":"jUnOzp","alignCenter":"YB-A2i","tooltipWrapper":"hqa-dZ","cellTooltip":"IE01Fr","upperCase":"lVsgvo","fontSize14":"cGKeij","resizeMark":"Zh231g","isDraggedOut":"-x9U0X","dndMarkerLeft":"Uwa2ke","dndMarkerRight":"L-Z1CZ","cellTooltipWrapper":"i721RA","cellTooltipText":"WRfPs-"};
|
|
2729
|
-
|
|
2730
|
-
var _path$q;
|
|
2731
|
-
function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
|
|
2732
|
-
var SvgTableSwap18 = function SvgTableSwap18(props, ref) {
|
|
2733
|
-
return /*#__PURE__*/React.createElement("svg", _extends$r({
|
|
2734
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2735
|
-
width: 18,
|
|
2736
|
-
height: 18,
|
|
2737
|
-
viewBox: "0 0 18 18",
|
|
2738
|
-
ref: ref
|
|
2739
|
-
}, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
|
|
2740
|
-
fillRule: "evenodd",
|
|
2741
|
-
d: "M6 1 2 5h3v7h2V5h3L6 1zm7 12V6h-2v7H8l4 4 4-4h-3z",
|
|
2742
|
-
clipRule: "evenodd"
|
|
2743
|
-
})));
|
|
2744
|
-
};
|
|
2745
|
-
var ForwardRef$r = /*#__PURE__*/forwardRef(SvgTableSwap18);
|
|
2746
|
-
|
|
2747
|
-
var _path$p;
|
|
2748
|
-
function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
|
|
2749
|
-
var SvgContentFiltration18 = function SvgContentFiltration18(props, ref) {
|
|
2750
|
-
return /*#__PURE__*/React.createElement("svg", _extends$q({
|
|
2751
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2752
|
-
width: 18,
|
|
2753
|
-
height: 18,
|
|
2754
|
-
viewBox: "0 0 18 18",
|
|
2755
|
-
ref: ref
|
|
2756
|
-
}, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
|
|
2757
|
-
fillRule: "evenodd",
|
|
2758
|
-
d: "m8 14 2 2v-5H8v3zM2 3v2h14V3H2zm6 8h2l6-6H2l6 6z",
|
|
2759
|
-
clipRule: "evenodd"
|
|
2760
|
-
})));
|
|
2761
|
-
};
|
|
2762
|
-
var ForwardRef$q = /*#__PURE__*/forwardRef(SvgContentFiltration18);
|
|
2763
|
-
|
|
2764
|
-
var _path$o;
|
|
2765
|
-
function _extends$p() { _extends$p = 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$p.apply(this, arguments); }
|
|
2766
|
-
var SvgNavigationChevronUp18 = function SvgNavigationChevronUp18(props, ref) {
|
|
2767
|
-
return /*#__PURE__*/React.createElement("svg", _extends$p({
|
|
2768
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2769
|
-
width: 18,
|
|
2770
|
-
height: 18,
|
|
2771
|
-
viewBox: "0 0 18 18",
|
|
2772
|
-
ref: ref
|
|
2773
|
-
}, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
|
|
2774
|
-
fillRule: "evenodd",
|
|
2775
|
-
d: "m9 6-4.5 4.5 1.058 1.057L9 8.123l3.443 3.434L13.5 10.5 9 6z",
|
|
2776
|
-
clipRule: "evenodd"
|
|
2777
|
-
})));
|
|
2778
|
-
};
|
|
2779
|
-
var ForwardRef$p = /*#__PURE__*/forwardRef(SvgNavigationChevronUp18);
|
|
2780
|
-
|
|
2781
|
-
class DataTableHeaderCell extends React.Component {
|
|
2782
|
-
constructor() {
|
|
2783
|
-
super(...arguments);
|
|
2784
|
-
this.state = {
|
|
2785
|
-
isDropdownOpen: null,
|
|
2786
|
-
};
|
|
2787
|
-
this.getTextStyle = () => {
|
|
2788
|
-
if (this.props.textCase === 'upper')
|
|
2789
|
-
return css$q.upperCase;
|
|
2790
|
-
return css$q['font-size-14'];
|
|
2791
|
-
};
|
|
2792
|
-
this.getTooltipContent = () => (React.createElement("div", { className: css$q.cellTooltipWrapper },
|
|
2793
|
-
React.createElement(Text, { fontSize: "14", color: "contrast", font: "semibold", cx: css$q.cellTooltipText }, this.props.column.caption),
|
|
2794
|
-
this.props.column.info && React.createElement(Text, { fontSize: "12", color: "contrast", cx: css$q.cellTooltipText }, this.props.column.info)));
|
|
2795
|
-
this.getColumnCaption = () => {
|
|
2796
|
-
return (React.createElement("div", { className: css$q.tooltipWrapper },
|
|
2797
|
-
React.createElement("div", { className: cx$1(css$q.iconCell, css$q['align-' + this.props.column.textAlign], uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
2798
|
-
React.createElement(Tooltip, { placement: "top", color: "contrast", renderContent: this.getTooltipContent, cx: css$q.cellTooltip, openDelay: 600 },
|
|
2799
|
-
React.createElement(Text, { key: "text", lineHeight: "30", fontSize: "14", size: "30", cx: cx$1(css$q.caption, this.getTextStyle(), uuiDataTableHeaderCell.uuiTableHeaderCaption) }, this.props.column.caption)),
|
|
2800
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React.createElement(IconButton, { key: "sort", cx: cx$1(css$q.icon, css$q.sortIcon, this.props.sortDirection && css$q.sortIconActive, uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'default' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$s : this.props.sortDirection === 'asc' ? ForwardRef$t : ForwardRef$r })),
|
|
2801
|
-
this.props.isFilterActive && (React.createElement(IconButton, { key: "filter", cx: cx$1(css$q.icon, !this.props.sortDirection && css$q.filterIcon, uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "default", icon: ForwardRef$q })),
|
|
2802
|
-
this.props.column.renderFilter && (React.createElement(IconButton, { key: "dropdown", cx: cx$1(css$q.icon, css$q.dropdownIcon, uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$p : ForwardRef$A })))));
|
|
2803
|
-
};
|
|
2804
|
-
this.renderHeaderCheckbox = () => this.props.selectAll
|
|
2805
|
-
&& this.props.isFirstColumn && (React.createElement(Checkbox, Object.assign({ size: +this.props.size < 36 ? '12' : '18' }, this.props.selectAll, { cx: cx$1(css$q.checkbox, uuiDataTableHeaderCell.uuiTableHeaderCheckbox) })));
|
|
2806
|
-
this.renderResizeMark = (props) => React.createElement("div", { onMouseDown: props.onResizeStart, className: cx$1(css$q.resizeMark, uuiMarkers.draggable) });
|
|
2807
|
-
this.renderCellContent = (props, dropdownProps) => (React.createElement(FlexCell, Object.assign({}, this.props.column, { minWidth: this.props.column.width, ref: (ref) => {
|
|
2808
|
-
var _a;
|
|
2809
|
-
props.ref(ref);
|
|
2810
|
-
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
2811
|
-
}, cx: cx$1(uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiMarkers.clickable, css$q.cell, css$q['size-' + (this.props.size || '36')], this.props.isFirstColumn && css$q['padding-left-24'], this.props.isLastColumn && css$q['padding-right-24'], this.props.column.cx, this.props.allowColumnsResizing && css$q.resizable, props.isDraggable && css$q.draggable, props.isDragGhost && css$q.ghost, props.isDraggedOut && css$q.isDraggedOut, props.isDndInProgress && css$q['dnd-marker-' + props.position]), onClick: !this.props.column.renderFilter ? props.toggleSort : dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.onClick, rawProps: Object.assign({ role: 'columnheader', 'aria-sort': this.props.sortDirection === 'asc' ? 'ascending' : this.props.sortDirection ? 'descending' : 'none' }, props.eventHandlers) }),
|
|
2812
|
-
this.renderHeaderCheckbox(),
|
|
2813
|
-
this.getColumnCaption(),
|
|
2814
|
-
this.props.allowColumnsResizing && this.renderResizeMark(props)));
|
|
2815
|
-
this.renderCellWithFilter = (props) => (React.createElement(ColumnHeaderDropdown, { isOpen: this.state.isDropdownOpen, isSortable: this.props.column.isSortable, renderTarget: (dropdownProps) => this.renderCellContent(props, dropdownProps), renderFilter: this.props.renderFilter, onSort: this.props.onSort, sortDirection: this.props.sortDirection, onOpenChange: (isDropdownOpen) => this.setState({ isDropdownOpen }), title: this.props.column.caption }));
|
|
2816
|
-
}
|
|
2817
|
-
render() {
|
|
2818
|
-
return React.createElement(DataTableHeaderCell$1, Object.assign({}, this.props, { renderCellContent: this.props.column.renderFilter ? this.renderCellWithFilter : this.renderCellContent }));
|
|
2819
|
-
}
|
|
2820
|
-
}
|
|
2821
|
-
|
|
2822
|
-
var css$p = {"header-cell":"csxPiM","config-icon":"B23ddJ","headerCell":"csxPiM","configIcon":"B23ddJ"};
|
|
2823
|
-
|
|
2824
|
-
var _path$n;
|
|
2825
|
-
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); }
|
|
2826
|
-
var SvgActionSettings18 = function SvgActionSettings18(props, ref) {
|
|
2827
|
-
return /*#__PURE__*/React.createElement("svg", _extends$o({
|
|
2828
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2829
|
-
width: 18,
|
|
2830
|
-
height: 18,
|
|
2831
|
-
viewBox: "0 0 18 18",
|
|
2832
|
-
ref: ref
|
|
2833
|
-
}, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
|
|
2834
|
-
fillRule: "evenodd",
|
|
2835
|
-
d: "M3 9.093a6.083 6.083 0 0 1 0-.186L1.55 7.271a1 1 0 0 1-.118-1.163l1.28-2.216a1 1 0 0 1 1.066-.48l2.14.439a3.81 3.81 0 0 1 .163-.094l.691-2.073A1 1 0 0 1 7.721 1h2.558a1 1 0 0 1 .949.684l.69 2.073c.056.03.11.061.163.094l2.141-.439a1 1 0 0 1 1.067.48l1.279 2.216a1 1 0 0 1-.118 1.163L15 8.907a5.72 5.72 0 0 1 0 .186l1.45 1.636a1 1 0 0 1 .118 1.163l-1.28 2.216a1 1 0 0 1-1.066.48l-2.14-.438a6.215 6.215 0 0 1-.163.093l-.691 2.073a1 1 0 0 1-.949.684H7.721a1 1 0 0 1-.949-.684l-.69-2.073a6.105 6.105 0 0 1-.163-.094l-2.141.439a1 1 0 0 1-1.067-.48l-1.279-2.216a1 1 0 0 1 .118-1.163L3 9.093zM9 12a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",
|
|
2836
|
-
clipRule: "evenodd"
|
|
2837
|
-
})));
|
|
2838
|
-
};
|
|
2839
|
-
var ForwardRef$o = /*#__PURE__*/forwardRef(SvgActionSettings18);
|
|
2840
|
-
|
|
2841
|
-
const DataTableHeaderRow = withMods(DataTableHeaderRow$1, () => [css$p.root], (mods) => ({
|
|
2842
|
-
renderCell: (props) => React.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key })),
|
|
2843
|
-
renderConfigButton: () => React.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: css$p.configIcon, color: "default", icon: ForwardRef$o }),
|
|
2844
|
-
}));
|
|
2845
|
-
|
|
2846
|
-
var css$o = {"root":"I6CA0x","title-wrapper":"vf-OAE","title":"zDg-E-","text-wrapper":"_4iPQBD","selection":"RN11B2","postfix":"XTLeTq","selected":"_1-TViP","titleWrapper":"vf-OAE","textWrapper":"_4iPQBD"};
|
|
2847
|
-
|
|
2848
|
-
const defaultSize = '36';
|
|
2849
|
-
const FilterPanelItemToggler = React.forwardRef((props, ref) => {
|
|
2850
|
-
const togglerPickerOpened = (e) => {
|
|
2851
|
-
var _a;
|
|
2852
|
-
if (props.isDisabled)
|
|
2853
|
-
return;
|
|
2854
|
-
e.preventDefault();
|
|
2855
|
-
(_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
2856
|
-
};
|
|
2857
|
-
const onKeyDownHandler = (e) => {
|
|
2858
|
-
if (props.isDisabled)
|
|
2859
|
-
return;
|
|
2860
|
-
if (e.key === 'Enter' && !props.isOpen) {
|
|
2861
|
-
e.preventDefault();
|
|
2862
|
-
props.toggleDropdownOpening(true);
|
|
2863
|
-
}
|
|
2864
|
-
if (e.key === 'Escape' && props.isOpen) {
|
|
2865
|
-
e.preventDefault();
|
|
2866
|
-
props.toggleDropdownOpening(false);
|
|
2867
|
-
}
|
|
2868
|
-
};
|
|
2869
|
-
const getTitle = props.predicateName ? `${props.title} ${props.predicateName}` : `${props.title}${props.selection ? ':' : ''}`;
|
|
2870
|
-
const getSelectionText = () => props.selection.map((i, index) => (React.createElement(React.Fragment, { key: `${i}${index}` },
|
|
2871
|
-
React.createElement(Text, { color: "brand", size: props.size, cx: css$o.selection }, i),
|
|
2872
|
-
(props.postfix || index !== props.selection.length - 1) && React.createElement("span", null, ",\u00A0"))));
|
|
2873
|
-
return (React.createElement(FlexRow$1, Object.assign({}, props, { rawProps: {
|
|
2874
|
-
style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` },
|
|
2875
|
-
role: 'button',
|
|
2876
|
-
tabIndex: props.isDisabled ? -1 : 0,
|
|
2877
|
-
onKeyDown: onKeyDownHandler,
|
|
2878
|
-
}, cx: cx(css$o.root, uuiElement.inputBox, uuiMarkers.clickable, props.isOpen && uuiMod.opened, ['size-' + (props.size || defaultSize)], props.cx), onClick: togglerPickerOpened, ref: ref }),
|
|
2879
|
-
React.createElement(FlexRow$1, { cx: css$o.titleWrapper },
|
|
2880
|
-
React.createElement(Text, { size: props.size, cx: css$o.title }, getTitle),
|
|
2881
|
-
props.selection && (React.createElement("div", { className: css$o.textWrapper },
|
|
2882
|
-
getSelectionText(),
|
|
2883
|
-
props.postfix && (React.createElement(Text, { color: "brand", size: props.size, cx: css$o.postfix }, props.postfix))))),
|
|
2884
|
-
!props.isDisabled && React.createElement(IconContainer, { icon: systemIcons[props.size || defaultSize].foldingArrow, flipY: props.isOpen, cx: "uui-icon-dropdown" })));
|
|
2885
|
-
});
|
|
2886
|
-
|
|
2887
|
-
const pickerHeight = 300;
|
|
2888
|
-
function FilterPickerBody(props) {
|
|
2889
|
-
const shouldShowBody = () => props.isOpen;
|
|
2890
|
-
const { getName, isSingleSelect, getRows, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, handleDataSourceValueChange, } = usePickerInput(Object.assign(Object.assign({}, props), { shouldShowBody }));
|
|
2891
|
-
const renderItem = (item, rowProps) => {
|
|
2892
|
-
return React.createElement(PickerItem, Object.assign({ title: getName(item), size: "36" }, rowProps));
|
|
2893
|
-
};
|
|
2894
|
-
const onSelect = (row) => {
|
|
2895
|
-
props.onClose();
|
|
2896
|
-
handleDataSourceValueChange(Object.assign(Object.assign({}, dataSourceState), { search: '', selectedId: row.id }));
|
|
2897
|
-
};
|
|
2898
|
-
const renderRow = (rowProps) => {
|
|
2899
|
-
if (rowProps.isSelectable && isSingleSelect() && props.editMode !== 'modal') {
|
|
2900
|
-
rowProps.onSelect = onSelect;
|
|
2901
|
-
}
|
|
2902
|
-
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: "none", size: "36", padding: "12", renderItem: renderItem })));
|
|
2903
|
-
};
|
|
2904
|
-
const renderFooter = () => {
|
|
2905
|
-
return React.createElement(DataPickerFooter, Object.assign({}, getFooterProps(), { size: "36" }));
|
|
2906
|
-
};
|
|
2907
|
-
const renderBody = (bodyProps, rows) => {
|
|
2908
|
-
const renderedDataRows = rows.map((props) => renderRow(props));
|
|
2909
|
-
const maxHeight = isMobile() ? document.documentElement.clientHeight : props.dropdownHeight || pickerHeight;
|
|
2910
|
-
return (React.createElement(React.Fragment, null,
|
|
2911
|
-
React.createElement(DataPickerBody, Object.assign({}, bodyProps, { selectionMode: props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, searchSize: "36", editMode: "dropdown", showSearch: true })),
|
|
2912
|
-
renderFooter()));
|
|
2913
|
-
};
|
|
2914
|
-
const rows = getRows();
|
|
2915
|
-
return renderBody(Object.assign(Object.assign({}, getPickerBodyProps(rows)), getListProps()), rows);
|
|
2916
|
-
}
|
|
2917
|
-
|
|
2918
|
-
class FilterDatePickerBody extends BaseDatePicker {
|
|
2919
|
-
constructor() {
|
|
2920
|
-
super(...arguments);
|
|
2921
|
-
this.state = Object.assign(Object.assign({}, super.getValue()), { isOpen: false, inputValue: null });
|
|
2922
|
-
this.renderInput = () => {
|
|
2923
|
-
return null;
|
|
2924
|
-
};
|
|
2925
|
-
this.onToggleHandler = (val) => {
|
|
2926
|
-
this.onToggle(val);
|
|
2927
|
-
this.props.onClose();
|
|
2928
|
-
};
|
|
2929
|
-
this.handleCancel = () => {
|
|
2930
|
-
this.handleValueChange(undefined);
|
|
2931
|
-
this.setState({ inputValue: null, selectedDate: null });
|
|
2932
|
-
};
|
|
2933
|
-
}
|
|
2934
|
-
renderBody() {
|
|
2935
|
-
var _a;
|
|
2936
|
-
return (React__default.createElement(React__default.Fragment, null,
|
|
2937
|
-
React__default.createElement(FlexRow, { borderBottom: true },
|
|
2938
|
-
React__default.createElement(DatePickerBody, { filter: this.props.filter, value: this.getValue(), setSelectedDate: this.setSelectedDate, setDisplayedDateAndView: this.setDisplayedDateAndView, changeIsOpen: this.onToggleHandler, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.body })),
|
|
2939
|
-
React__default.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2940
|
-
React__default.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2941
|
-
React__default.createElement(Text, null, this.state.selectedDate ? dayjs(this.state.selectedDate).format('MMM DD, YYYY') : ''),
|
|
2942
|
-
React__default.createElement(FlexSpacer, null),
|
|
2943
|
-
React__default.createElement(LinkButton, { isDisabled: !this.state.selectedDate, caption: i18n.filterToolbar.datePicker.clearCaption, onClick: this.handleCancel })))));
|
|
2944
|
-
}
|
|
2945
|
-
render() {
|
|
2946
|
-
return this.renderBody();
|
|
2947
|
-
}
|
|
2948
|
-
}
|
|
2949
|
-
|
|
2950
|
-
var css$n = {"date-input":"oXyvT9","size-24":"aYiI4h","size-30":"nUhMQv","size-36":"_8nzaPk","size-42":"Gn6Pm1","size-48":"zNamhc","date-input-group":"_6tNooK","separator":"MJxVBQ","mode-form":"qJ464i","mode-cell":"k4jEGI","dateInput":"oXyvT9","size24":"aYiI4h","size30":"nUhMQv","size36":"_8nzaPk","size42":"Gn6Pm1","size48":"zNamhc","dateInputGroup":"_6tNooK","modeForm":"qJ464i","modeCell":"k4jEGI"};
|
|
2455
|
+
var css$A = {"uui-typography":"nq8HVJ","hero-header":"-JlEiH","promo-header":"lGb28G","uui-critical":"mNMMdo","uui-success":"jiMme-","uui-warning":"wsN6bm","uui-typography-size-12":"US-CEK","uui-typography-size-14":"_884cdM","uui-typography-size-16":"Wlq7qT","date-input":"OnE5M6","size-24":"Kim8pZ","size-30":"KP0jS9","size-36":"BN14qX","size-42":"eQT5mR","size-48":"_22soQP","date-input-group":"lBgfjb","separator":"yqG3nJ","mode-form":"yjK-uf","mode-cell":"Hu7bpx","uuiTypography":"nq8HVJ","heroHeader":"-JlEiH","promoHeader":"lGb28G","uuiCritical":"mNMMdo","uuiSuccess":"jiMme-","uuiWarning":"wsN6bm","uuiTypographySize12":"US-CEK","uuiTypographySize14":"_884cdM","uuiTypographySize16":"Wlq7qT","dateInput":"OnE5M6","size24":"Kim8pZ","size30":"KP0jS9","size36":"BN14qX","size42":"eQT5mR","size48":"_22soQP","dateInputGroup":"lBgfjb","modeForm":"yjK-uf","modeCell":"Hu7bpx"};
|
|
2951
2456
|
|
|
2952
2457
|
class FilterRangeDatePickerBody extends BaseRangeDatePicker {
|
|
2953
2458
|
constructor() {
|
|
@@ -2967,10 +2472,10 @@ class FilterRangeDatePickerBody extends BaseRangeDatePicker {
|
|
|
2967
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 })),
|
|
2968
2473
|
React.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2969
2474
|
React.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2970
|
-
React.createElement("div", { className: cx(css$
|
|
2971
|
-
React.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx(css$
|
|
2972
|
-
React.createElement("div", { className: css$
|
|
2973
|
-
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') })),
|
|
2974
2479
|
React.createElement(FlexSpacer, null),
|
|
2975
2480
|
React.createElement(LinkButton, { isDisabled: !this.state.inputValue.from && !this.state.inputValue.to, caption: i18n.pickerModal.clearAllButton, onClick: this.handleCancel })))));
|
|
2976
2481
|
}
|
|
@@ -2979,7 +2484,7 @@ class FilterRangeDatePickerBody extends BaseRangeDatePicker {
|
|
|
2979
2484
|
}
|
|
2980
2485
|
}
|
|
2981
2486
|
|
|
2982
|
-
var css$
|
|
2487
|
+
var css$z = {"container":"ZwHvOp"};
|
|
2983
2488
|
|
|
2984
2489
|
function FilterNumericBody(props) {
|
|
2985
2490
|
var _a, _b;
|
|
@@ -3023,7 +2528,7 @@ function FilterNumericBody(props) {
|
|
|
3023
2528
|
if (isInRangePredicate) {
|
|
3024
2529
|
const value = props.value;
|
|
3025
2530
|
return (React__default.createElement("div", null,
|
|
3026
|
-
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 },
|
|
3027
2532
|
React__default.createElement(FlexCell, { width: "100%" },
|
|
3028
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 } })),
|
|
3029
2534
|
React__default.createElement(FlexCell, { width: "100%" },
|
|
@@ -3031,7 +2536,7 @@ function FilterNumericBody(props) {
|
|
|
3031
2536
|
renderFooter()));
|
|
3032
2537
|
}
|
|
3033
2538
|
return (React__default.createElement("div", null,
|
|
3034
|
-
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 },
|
|
3035
2540
|
React__default.createElement(FlexCell, { width: 130 },
|
|
3036
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 } }))),
|
|
3037
2542
|
renderFooter()));
|
|
@@ -3054,23 +2559,23 @@ function FilterItemBody(props) {
|
|
|
3054
2559
|
}
|
|
3055
2560
|
}
|
|
3056
2561
|
|
|
3057
|
-
var _path$
|
|
3058
|
-
function _extends$
|
|
2562
|
+
var _path$t;
|
|
2563
|
+
function _extends$u() { _extends$u = 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$u.apply(this, arguments); }
|
|
3059
2564
|
var SvgActionDeleteforever12 = function SvgActionDeleteforever12(props, ref) {
|
|
3060
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
2565
|
+
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
3061
2566
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3062
2567
|
width: 12,
|
|
3063
2568
|
height: 12,
|
|
3064
2569
|
viewBox: "0 0 18 18",
|
|
3065
2570
|
ref: ref
|
|
3066
|
-
}, props), _path$
|
|
2571
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
|
|
3067
2572
|
fillRule: "evenodd",
|
|
3068
2573
|
d: "M14 6v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6h10zm-3-4 1 1h3v2H3V3h3l1-1h4zm-.24 12.1L9 12.36 7.24 14.1l-1.16-1.16 1.74-1.76-1.78-1.8 1.2-1.18L9 10l1.76-1.8 1.18 1.18-1.76 1.8 1.76 1.76-1.18 1.16z"
|
|
3069
2574
|
})));
|
|
3070
2575
|
};
|
|
3071
|
-
var ForwardRef$
|
|
2576
|
+
var ForwardRef$u = /*#__PURE__*/forwardRef(SvgActionDeleteforever12);
|
|
3072
2577
|
|
|
3073
|
-
var css$
|
|
2578
|
+
var css$y = {"uui-typography":"_-3QkAU","hero-header":"_35Pjn1","promo-header":"F5S-XN","uui-critical":"tm4WKM","uui-success":"H--XFr","uui-warning":"oe-YSy","uui-typography-size-12":"WSAbn5","uui-typography-size-14":"l-b9d0","uui-typography-size-16":"KxYOB5","root":"w1uOAy","header":"ZCXggF","removeButton":"IZ2zz3","with-search":"Cwt8av","uuiTypography":"_-3QkAU","heroHeader":"_35Pjn1","promoHeader":"F5S-XN","uuiCritical":"tm4WKM","uuiSuccess":"H--XFr","uuiWarning":"oe-YSy","uuiTypographySize12":"WSAbn5","uuiTypographySize14":"l-b9d0","uuiTypographySize16":"KxYOB5","withSearch":"Cwt8av"};
|
|
3074
2579
|
|
|
3075
2580
|
function FiltersToolbarItemImpl(props) {
|
|
3076
2581
|
const { maxCount = 2 } = props;
|
|
@@ -3146,13 +2651,13 @@ function FiltersToolbarItemImpl(props) {
|
|
|
3146
2651
|
};
|
|
3147
2652
|
const renderHeader = (hideTitle) => {
|
|
3148
2653
|
var _a;
|
|
3149
|
-
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)) },
|
|
3150
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))),
|
|
3151
|
-
!(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 }))));
|
|
3152
2657
|
};
|
|
3153
2658
|
const renderBody = (dropdownProps) => {
|
|
3154
2659
|
const hideHeaderTitle = isPickersType && isMobileScreen;
|
|
3155
|
-
return isPickersType ? (React__default.createElement(MobileDropdownWrapper, Object.assign({}, dropdownProps, { title: props.title, width: 360, onClose: () => isOpenChange(false) }),
|
|
2660
|
+
return isPickersType ? (React__default.createElement(MobileDropdownWrapper, Object.assign({}, dropdownProps, { cx: css$y.root, title: props.title, width: 360, onClose: () => isOpenChange(false) }),
|
|
3156
2661
|
renderHeader(hideHeaderTitle),
|
|
3157
2662
|
React__default.createElement(FilterItemBody, Object.assign({}, props, dropdownProps, { selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange })))) : (React__default.createElement(DropdownContainer, Object.assign({}, dropdownProps),
|
|
3158
2663
|
renderHeader(hideHeaderTitle),
|
|
@@ -3235,20 +2740,20 @@ function FiltersToolbarItemImpl(props) {
|
|
|
3235
2740
|
}
|
|
3236
2741
|
const FiltersPanelItem = React__default.memo(FiltersToolbarItemImpl);
|
|
3237
2742
|
|
|
3238
|
-
var _path$
|
|
3239
|
-
function _extends$
|
|
2743
|
+
var _path$s;
|
|
2744
|
+
function _extends$t() { _extends$t = 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$t.apply(this, arguments); }
|
|
3240
2745
|
var SvgActionAdd18 = function SvgActionAdd18(props, ref) {
|
|
3241
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
2746
|
+
return /*#__PURE__*/React.createElement("svg", _extends$t({
|
|
3242
2747
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3243
2748
|
width: 18,
|
|
3244
2749
|
height: 18,
|
|
3245
2750
|
viewBox: "0 0 18 18",
|
|
3246
2751
|
ref: ref
|
|
3247
|
-
}, props), _path$
|
|
2752
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
|
|
3248
2753
|
d: "M10 2H8v6H2v2h6v6h2v-6h6V8h-6V2z"
|
|
3249
2754
|
})));
|
|
3250
2755
|
};
|
|
3251
|
-
var ForwardRef$
|
|
2756
|
+
var ForwardRef$t = /*#__PURE__*/forwardRef(SvgActionAdd18);
|
|
3252
2757
|
|
|
3253
2758
|
const normalizeFilterWithPredicates = (filter) => {
|
|
3254
2759
|
if (!filter) {
|
|
@@ -3339,7 +2844,7 @@ function FiltersToolbarImpl(props) {
|
|
|
3339
2844
|
}, [filters, tableState.filtersConfig]);
|
|
3340
2845
|
const renderAddFilterToggler = useCallback((togglerProps) => {
|
|
3341
2846
|
var _a;
|
|
3342
|
-
return (React__default.createElement(Button, { size: (_a = props.size) !== null && _a !== void 0 ? _a : '36', onClick: togglerProps.onClick, ref: togglerProps.ref, caption: i18n.filterToolbar.addCaption, icon: ForwardRef$
|
|
2847
|
+
return (React__default.createElement(Button, { size: (_a = props.size) !== null && _a !== void 0 ? _a : '36', onClick: togglerProps.onClick, ref: togglerProps.ref, caption: i18n.filterToolbar.addCaption, icon: ForwardRef$t, iconPosition: "left", fill: "ghost", color: "primary" }));
|
|
3343
2848
|
}, []);
|
|
3344
2849
|
const getRowOptions = useCallback((item) => ({
|
|
3345
2850
|
isDisabled: item.isAlwaysVisible,
|
|
@@ -3366,143 +2871,143 @@ function FiltersToolbarImpl(props) {
|
|
|
3366
2871
|
}
|
|
3367
2872
|
const FiltersPanel = React__default.memo(FiltersToolbarImpl);
|
|
3368
2873
|
|
|
3369
|
-
var css$
|
|
2874
|
+
var css$x = {"divider":"iXP7pj","dropdownDeleteIcon":"_1E2e-U","presetsWrapper":"Qpmoqm","addPresetContainer":"mkB-13","dropContainer":"Wt42Az"};
|
|
3370
2875
|
|
|
3371
|
-
var css$
|
|
2876
|
+
var css$w = {"preset-dropdown-panel":"rilFzG","delete-row":"A-VvvW","delete-button":"z6Lm8U","targetOpen":"jDWIkr","presetDropdownPanel":"rilFzG","deleteRow":"A-VvvW","deleteButton":"z6Lm8U"};
|
|
3372
2877
|
|
|
3373
|
-
var _path$
|
|
3374
|
-
function _extends$
|
|
2878
|
+
var _path$r;
|
|
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); }
|
|
3375
2880
|
var SvgNavigationMoreVert18 = function SvgNavigationMoreVert18(props, ref) {
|
|
3376
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
2881
|
+
return /*#__PURE__*/React.createElement("svg", _extends$s({
|
|
3377
2882
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3378
2883
|
width: 18,
|
|
3379
2884
|
height: 18,
|
|
3380
2885
|
viewBox: "0 0 18 18",
|
|
3381
2886
|
ref: ref
|
|
3382
|
-
}, props), _path$
|
|
2887
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
|
|
3383
2888
|
fillRule: "evenodd",
|
|
3384
2889
|
d: "M9 6c.825 0 1.5-.675 1.5-1.5S9.825 3 9 3s-1.5.675-1.5 1.5S8.175 6 9 6zm0 1.5c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5 1.5-.675 1.5-1.5S9.825 7.5 9 7.5zM9 12c-.825 0-1.5.675-1.5 1.5S8.175 15 9 15s1.5-.675 1.5-1.5S9.825 12 9 12z",
|
|
3385
2890
|
clipRule: "evenodd"
|
|
3386
2891
|
})));
|
|
3387
2892
|
};
|
|
3388
|
-
var ForwardRef$
|
|
2893
|
+
var ForwardRef$s = /*#__PURE__*/forwardRef(SvgNavigationMoreVert18);
|
|
3389
2894
|
|
|
3390
|
-
var _path$
|
|
3391
|
-
function _extends$
|
|
2895
|
+
var _path$q;
|
|
2896
|
+
function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
|
|
3392
2897
|
var SvgActionUpdate18 = function SvgActionUpdate18(props, ref) {
|
|
3393
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
2898
|
+
return /*#__PURE__*/React.createElement("svg", _extends$r({
|
|
3394
2899
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3395
2900
|
width: 18,
|
|
3396
2901
|
height: 18,
|
|
3397
2902
|
viewBox: "0 0 18 18",
|
|
3398
2903
|
ref: ref
|
|
3399
|
-
}, props), _path$
|
|
2904
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
|
|
3400
2905
|
fillRule: "evenodd",
|
|
3401
2906
|
d: "M8.007 2A7.004 7.004 0 0 0 1 9a7.004 7.004 0 0 0 11.732 5.16l-1.497-1.347A4.999 4.999 0 0 1 3 9c0-2.763 2.237-5 5-5 2.762 0 5 2.237 5 5h2c0-3.864-3.129-7-6.993-7zM11 9l3 3 3-3h-6z",
|
|
3402
2907
|
clipRule: "evenodd"
|
|
3403
2908
|
})));
|
|
3404
2909
|
};
|
|
3405
|
-
var ForwardRef$
|
|
2910
|
+
var ForwardRef$r = /*#__PURE__*/forwardRef(SvgActionUpdate18);
|
|
3406
2911
|
|
|
3407
|
-
var _path$
|
|
3408
|
-
function _extends$
|
|
2912
|
+
var _path$p;
|
|
2913
|
+
function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
|
|
3409
2914
|
var SvgSaveOutline18 = function SvgSaveOutline18(props, ref) {
|
|
3410
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
2915
|
+
return /*#__PURE__*/React.createElement("svg", _extends$q({
|
|
3411
2916
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3412
2917
|
width: 18,
|
|
3413
2918
|
height: 18,
|
|
3414
2919
|
viewBox: "0 0 18 18",
|
|
3415
2920
|
ref: ref
|
|
3416
|
-
}, props), _path$
|
|
2921
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
|
|
3417
2922
|
d: "M12.75 2.25h-9a1.5 1.5 0 0 0-1.5 1.5v10.5a1.5 1.5 0 0 0 1.5 1.5h10.5c.825 0 1.5-.675 1.5-1.5v-9l-3-3zm1.5 12H3.75V3.75h8.377l2.123 2.122v8.378zM9 9a2.247 2.247 0 0 0-2.25 2.25A2.247 2.247 0 0 0 9 13.5a2.247 2.247 0 0 0 2.25-2.25A2.247 2.247 0 0 0 9 9zM4.5 4.5h6.75v3H4.5v-3z"
|
|
3418
2923
|
})));
|
|
3419
2924
|
};
|
|
3420
|
-
var ForwardRef$
|
|
2925
|
+
var ForwardRef$q = /*#__PURE__*/forwardRef(SvgSaveOutline18);
|
|
3421
2926
|
|
|
3422
|
-
var _path$
|
|
3423
|
-
function _extends$
|
|
2927
|
+
var _path$o;
|
|
2928
|
+
function _extends$p() { _extends$p = 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$p.apply(this, arguments); }
|
|
3424
2929
|
var SvgContentEditUndo18 = function SvgContentEditUndo18(props, ref) {
|
|
3425
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
2930
|
+
return /*#__PURE__*/React.createElement("svg", _extends$p({
|
|
3426
2931
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3427
2932
|
width: 18,
|
|
3428
2933
|
height: 18,
|
|
3429
2934
|
viewBox: "0 0 18 18",
|
|
3430
2935
|
ref: ref
|
|
3431
|
-
}, props), _path$
|
|
2936
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
|
|
3432
2937
|
fillRule: "evenodd",
|
|
3433
2938
|
d: "M9.375 6A7.848 7.848 0 0 0 4.2 7.95l-2.7-2.7V12h6.75L5.535 9.285a5.965 5.965 0 0 1 3.84-1.41 6.009 6.009 0 0 1 5.7 4.125l1.777-.585C15.81 8.273 12.862 6 9.375 6z",
|
|
3434
2939
|
clipRule: "evenodd"
|
|
3435
2940
|
})));
|
|
3436
2941
|
};
|
|
3437
|
-
var ForwardRef$
|
|
2942
|
+
var ForwardRef$p = /*#__PURE__*/forwardRef(SvgContentEditUndo18);
|
|
3438
2943
|
|
|
3439
|
-
var _path$
|
|
3440
|
-
function _extends$
|
|
2944
|
+
var _path$n;
|
|
2945
|
+
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); }
|
|
3441
2946
|
var SvgActionCopyContent18 = function SvgActionCopyContent18(props, ref) {
|
|
3442
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
2947
|
+
return /*#__PURE__*/React.createElement("svg", _extends$o({
|
|
3443
2948
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3444
2949
|
width: 18,
|
|
3445
2950
|
height: 18,
|
|
3446
2951
|
viewBox: "0 0 18 18",
|
|
3447
2952
|
ref: ref
|
|
3448
|
-
}, props), _path$
|
|
2953
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
|
|
3449
2954
|
fillRule: "evenodd",
|
|
3450
2955
|
d: "M3 1h8v2H3v8H1V3a2 2 0 0 1 2-2zm2 6a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V7zm10 8H7V7h8v8z",
|
|
3451
2956
|
clipRule: "evenodd"
|
|
3452
2957
|
})));
|
|
3453
2958
|
};
|
|
3454
|
-
var ForwardRef$
|
|
2959
|
+
var ForwardRef$o = /*#__PURE__*/forwardRef(SvgActionCopyContent18);
|
|
3455
2960
|
|
|
3456
|
-
var _path$
|
|
3457
|
-
function _extends$
|
|
2961
|
+
var _path$m;
|
|
2962
|
+
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); }
|
|
3458
2963
|
var SvgContentEdit18 = function SvgContentEdit18(props, ref) {
|
|
3459
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
2964
|
+
return /*#__PURE__*/React.createElement("svg", _extends$n({
|
|
3460
2965
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3461
2966
|
width: 18,
|
|
3462
2967
|
height: 18,
|
|
3463
2968
|
viewBox: "0 0 18 18",
|
|
3464
2969
|
ref: ref
|
|
3465
|
-
}, props), _path$
|
|
2970
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
|
|
3466
2971
|
fillRule: "evenodd",
|
|
3467
2972
|
d: "M2.25 12.94v2.812h2.813l8.294-8.295-2.812-2.813L2.25 12.94zm13.283-7.658a.747.747 0 0 0 0-1.058L13.777 2.47a.747.747 0 0 0-1.058 0l-1.373 1.373 2.813 2.812 1.373-1.372z",
|
|
3468
2973
|
clipRule: "evenodd"
|
|
3469
2974
|
})));
|
|
3470
2975
|
};
|
|
3471
|
-
var ForwardRef$
|
|
2976
|
+
var ForwardRef$n = /*#__PURE__*/forwardRef(SvgContentEdit18);
|
|
3472
2977
|
|
|
3473
|
-
var _path$
|
|
3474
|
-
function _extends$
|
|
2978
|
+
var _path$l;
|
|
2979
|
+
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); }
|
|
3475
2980
|
var SvgContentLink18 = function SvgContentLink18(props, ref) {
|
|
3476
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
2981
|
+
return /*#__PURE__*/React.createElement("svg", _extends$m({
|
|
3477
2982
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3478
2983
|
width: 18,
|
|
3479
2984
|
height: 18,
|
|
3480
2985
|
viewBox: "0 0 18 18",
|
|
3481
2986
|
ref: ref
|
|
3482
|
-
}, props), _path$
|
|
2987
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
|
|
3483
2988
|
fillRule: "evenodd",
|
|
3484
2989
|
d: "M7.943 10.057a.73.73 0 0 1 0 1.066.756.756 0 0 1-1.065 0 3.753 3.753 0 0 1 0-5.303l2.655-2.655a3.753 3.753 0 0 1 5.302 0 3.753 3.753 0 0 1 0 5.302l-1.118 1.118a5.18 5.18 0 0 0-.3-1.815l.353-.36a2.236 2.236 0 0 0 0-3.18 2.236 2.236 0 0 0-3.18 0L7.943 6.877a2.236 2.236 0 0 0 0 3.18zm2.114-3.18a.756.756 0 0 1 1.066 0 3.753 3.753 0 0 1 0 5.303l-2.655 2.655a3.753 3.753 0 0 1-5.303 0 3.753 3.753 0 0 1 0-5.303l1.118-1.117a5.25 5.25 0 0 0 .3 1.823l-.353.352a2.236 2.236 0 0 0 0 3.18 2.236 2.236 0 0 0 3.18 0l2.647-2.647a2.236 2.236 0 0 0 0-3.18.73.73 0 0 1 0-1.066z",
|
|
3485
2990
|
clipRule: "evenodd"
|
|
3486
2991
|
})));
|
|
3487
2992
|
};
|
|
3488
|
-
var ForwardRef$
|
|
2993
|
+
var ForwardRef$m = /*#__PURE__*/forwardRef(SvgContentLink18);
|
|
3489
2994
|
|
|
3490
|
-
var _path$
|
|
3491
|
-
function _extends$
|
|
2995
|
+
var _path$k;
|
|
2996
|
+
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); }
|
|
3492
2997
|
var SvgActionDeleteforever18 = function SvgActionDeleteforever18(props, ref) {
|
|
3493
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
2998
|
+
return /*#__PURE__*/React.createElement("svg", _extends$l({
|
|
3494
2999
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3495
3000
|
width: 18,
|
|
3496
3001
|
height: 18,
|
|
3497
3002
|
viewBox: "0 0 18 18",
|
|
3498
3003
|
ref: ref
|
|
3499
|
-
}, props), _path$
|
|
3004
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
|
|
3500
3005
|
fillRule: "evenodd",
|
|
3501
3006
|
d: "M7 2h4l1 1h3v2H3V3h3l1-1zM4 6h10v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6zm6.76 8.1L9 12.36 7.24 14.1l-1.16-1.16 1.74-1.76-1.78-1.8 1.2-1.18L9 10l1.76-1.8 1.18 1.18-1.76 1.8 1.76 1.76-1.18 1.16z",
|
|
3502
3007
|
clipRule: "evenodd"
|
|
3503
3008
|
})));
|
|
3504
3009
|
};
|
|
3505
|
-
var ForwardRef$
|
|
3010
|
+
var ForwardRef$l = /*#__PURE__*/forwardRef(SvgActionDeleteforever18);
|
|
3506
3011
|
|
|
3507
3012
|
function PresetActionsDropdown(props) {
|
|
3508
3013
|
const { uuiNotifications } = useUuiContext();
|
|
@@ -3539,30 +3044,30 @@ function PresetActionsDropdown(props) {
|
|
|
3539
3044
|
]);
|
|
3540
3045
|
const renderBody = () => {
|
|
3541
3046
|
const isReadonlyPreset = props.preset.isReadonly;
|
|
3542
|
-
return (React__default.createElement(Panel, { shadow: true, cx: css$
|
|
3047
|
+
return (React__default.createElement(Panel, { background: "surface", shadow: true, cx: css$w.presetDropdownPanel },
|
|
3543
3048
|
props.activePresetId === props.preset.id && props.hasPresetChanged(props.preset) && (React__default.createElement(React__default.Fragment, null,
|
|
3544
3049
|
!isReadonlyPreset && (React__default.createElement(FlexRow, { key: `${props.preset.id}-save-in-current` },
|
|
3545
|
-
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3050
|
+
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$r, caption: "Save in current", onClick: saveInCurrentHandler }))),
|
|
3546
3051
|
React__default.createElement(FlexRow, { key: `${props.preset.id}-save-as-new` },
|
|
3547
|
-
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3052
|
+
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$q, caption: "Save as new", onClick: props.addPreset })),
|
|
3548
3053
|
React__default.createElement(FlexRow, { key: `${props.preset.id}-discard`, borderBottom: true },
|
|
3549
|
-
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3054
|
+
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$p, caption: "Discard all changes", onClick: discardAllChangesHandler })))),
|
|
3550
3055
|
props.preset.id === props.activePresetId && !isReadonlyPreset && (React__default.createElement(FlexRow, { key: `${props.preset.id}-rename` },
|
|
3551
|
-
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3056
|
+
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$n, caption: "Rename", onClick: props.renamePreset }))),
|
|
3552
3057
|
React__default.createElement(FlexRow, { key: `${props.preset.id}-duplicate` },
|
|
3553
|
-
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3058
|
+
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$o, caption: "Duplicate", onClick: duplicateHandler })),
|
|
3554
3059
|
React__default.createElement(FlexRow, { borderBottom: true, key: `${props.preset.id}-copyLink` },
|
|
3555
|
-
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3556
|
-
!isReadonlyPreset && (React__default.createElement(FlexRow, { key: `${props.preset.id}-delete`, cx: css$
|
|
3557
|
-
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3060
|
+
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$m, caption: "Copy Link", onClick: copyUrlToClipboard })),
|
|
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 })))));
|
|
3558
3063
|
};
|
|
3559
3064
|
const renderTarget = useCallback((dropdownProps) => {
|
|
3560
|
-
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 })));
|
|
3561
3066
|
}, []);
|
|
3562
3067
|
return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
3563
3068
|
}
|
|
3564
3069
|
|
|
3565
|
-
var css$
|
|
3070
|
+
var css$v = {"preset-input-cell":"i2cLCZ","preset-input":"Qoz6fA","presetInputCell":"i2cLCZ","presetInput":"Qoz6fA"};
|
|
3566
3071
|
|
|
3567
3072
|
function PresetInput(props) {
|
|
3568
3073
|
var _a;
|
|
@@ -3583,34 +3088,703 @@ function PresetInput(props) {
|
|
|
3583
3088
|
}
|
|
3584
3089
|
props.onCancel();
|
|
3585
3090
|
}, [presetCaption.length, props.onCancel]);
|
|
3586
|
-
return (React__default.createElement(FlexCell, { cx: css$
|
|
3587
|
-
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 })));
|
|
3093
|
+
}
|
|
3094
|
+
|
|
3095
|
+
var css$u = {"preset":"iEgtuN","activePreset":"-icK7o"};
|
|
3096
|
+
|
|
3097
|
+
function Preset(props) {
|
|
3098
|
+
const [isRenamePreset, setIsRenamePreset] = useState(false);
|
|
3099
|
+
const choosePresetHandler = useCallback(() => props.choosePreset(props.preset), [props]);
|
|
3100
|
+
const cancelRenamePreset = useCallback(() => {
|
|
3101
|
+
setIsRenamePreset(() => false);
|
|
3102
|
+
}, []);
|
|
3103
|
+
const setPresetForRename = useCallback(() => {
|
|
3104
|
+
if (!isRenamePreset) {
|
|
3105
|
+
setIsRenamePreset(() => true);
|
|
3106
|
+
}
|
|
3107
|
+
}, []);
|
|
3108
|
+
const handlePresetRename = useCallback((name) => {
|
|
3109
|
+
const newPreset = Object.assign(Object.assign({}, props.preset), { name: name });
|
|
3110
|
+
return props.updatePreset(newPreset);
|
|
3111
|
+
}, [props.preset]);
|
|
3112
|
+
const isPresetActive = props.activePresetId === props.preset.id;
|
|
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 }))));
|
|
3114
|
+
}
|
|
3115
|
+
|
|
3116
|
+
var _path$j;
|
|
3117
|
+
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); }
|
|
3118
|
+
var SvgContentPlusBold18 = function SvgContentPlusBold18(props, ref) {
|
|
3119
|
+
return /*#__PURE__*/React.createElement("svg", _extends$k({
|
|
3120
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3121
|
+
width: 18,
|
|
3122
|
+
height: 18,
|
|
3123
|
+
viewBox: "0 0 18 18",
|
|
3124
|
+
ref: ref
|
|
3125
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
|
|
3126
|
+
d: "M10.5 3h-3v4.5H3v3h4.5V15h3v-4.5H15v-3h-4.5V3z"
|
|
3127
|
+
})));
|
|
3128
|
+
};
|
|
3129
|
+
var ForwardRef$k = /*#__PURE__*/forwardRef(SvgContentPlusBold18);
|
|
3130
|
+
|
|
3131
|
+
function PresetsPanel(props) {
|
|
3132
|
+
const [isAddingPreset, setIsAddingPreset] = useState(false);
|
|
3133
|
+
const setAddingPreset = useCallback(() => {
|
|
3134
|
+
setIsAddingPreset(true);
|
|
3135
|
+
}, []);
|
|
3136
|
+
const cancelAddingPreset = useCallback(() => {
|
|
3137
|
+
setIsAddingPreset(false);
|
|
3138
|
+
}, []);
|
|
3139
|
+
const presetApi = __rest(props, ["presets"]);
|
|
3140
|
+
const renderPreset = (preset) => {
|
|
3141
|
+
return React__default.createElement(Preset, Object.assign({ key: preset.id, preset: preset, addPreset: setAddingPreset }, presetApi));
|
|
3142
|
+
};
|
|
3143
|
+
const renderAddPresetButton = useCallback(() => {
|
|
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 }))));
|
|
3145
|
+
}, [isAddingPreset]);
|
|
3146
|
+
const onPresetDropdownSelect = (preset) => {
|
|
3147
|
+
props.choosePreset(preset.preset);
|
|
3148
|
+
};
|
|
3149
|
+
const renderMoreButtonDropdown = (item, hiddenItems) => {
|
|
3150
|
+
return (React__default.createElement(Dropdown, { key: "more", renderTarget: (props) => (React__default.createElement(FlexRow, null,
|
|
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)) })))))) }));
|
|
3154
|
+
};
|
|
3155
|
+
const getPresetPriority = (preset, index) => {
|
|
3156
|
+
return preset.id === props.activePresetId ? 100499 : 1000 - index;
|
|
3157
|
+
};
|
|
3158
|
+
const getPanelItems = () => {
|
|
3159
|
+
return [
|
|
3160
|
+
...sortBy(props.presets, (i) => i.order).map((preset, index) => ({
|
|
3161
|
+
id: preset.id.toString(),
|
|
3162
|
+
render: () => renderPreset(preset),
|
|
3163
|
+
priority: getPresetPriority(preset, index),
|
|
3164
|
+
preset: preset,
|
|
3165
|
+
})), {
|
|
3166
|
+
id: 'collapsedContainer', render: renderMoreButtonDropdown, priority: 100501, collapsedContainer: true,
|
|
3167
|
+
}, { id: 'addPreset', render: renderAddPresetButton, priority: 100501 },
|
|
3168
|
+
];
|
|
3169
|
+
};
|
|
3170
|
+
return (React__default.createElement(FlexCell, { grow: 1, minWidth: 310, rawProps: props.rawProps },
|
|
3171
|
+
React__default.createElement(FlexRow, { size: null, spacing: "12", cx: css$x.presetsWrapper },
|
|
3172
|
+
React__default.createElement(AdaptivePanel, { items: getPanelItems() }))));
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
const defaultPredicates = {
|
|
3176
|
+
numeric: [
|
|
3177
|
+
{ predicate: 'eq', name: '=', isDefault: true }, { predicate: 'neq', name: '≠' }, { predicate: 'lte', name: '≤' }, { predicate: 'gte', name: '≥' }, { predicate: 'inRange', name: 'In Range' },
|
|
3178
|
+
],
|
|
3179
|
+
multiPicker: [{ predicate: 'in', name: 'is', isDefault: true }, { predicate: 'nin', name: 'is not' }],
|
|
3180
|
+
rangeDatePicker: [{ predicate: 'inRange', name: 'In Range', isDefault: true }, { predicate: 'notInRange', name: 'Not in Range' }],
|
|
3181
|
+
};
|
|
3182
|
+
|
|
3183
|
+
const useColumnsWithFilters = (initialColumns, filters) => {
|
|
3184
|
+
const makeFilterRenderCallback = useCallback((key) => function (filterLens, dropdownProps) {
|
|
3185
|
+
const filter = filters.find((f) => f.columnKey === key);
|
|
3186
|
+
if (!filter)
|
|
3187
|
+
return null;
|
|
3188
|
+
const props = filterLens.prop(filter.field).toProps();
|
|
3189
|
+
return React__default.createElement(FilterItemBody, Object.assign({}, props, filter, dropdownProps));
|
|
3190
|
+
}, [filters]);
|
|
3191
|
+
const columns = useMemo(() => {
|
|
3192
|
+
if (filters) {
|
|
3193
|
+
const filterKeys = filters.map((f) => f.columnKey);
|
|
3194
|
+
const newColumns = (initialColumns.map((column) => {
|
|
3195
|
+
if (filterKeys.includes(column.key)) {
|
|
3196
|
+
return Object.assign(Object.assign({}, column), { renderFilter: makeFilterRenderCallback(column.key) });
|
|
3197
|
+
}
|
|
3198
|
+
else {
|
|
3199
|
+
return column;
|
|
3200
|
+
}
|
|
3201
|
+
}));
|
|
3202
|
+
return newColumns;
|
|
3203
|
+
}
|
|
3204
|
+
return initialColumns;
|
|
3205
|
+
}, [filters, initialColumns]);
|
|
3206
|
+
return columns;
|
|
3207
|
+
};
|
|
3208
|
+
|
|
3209
|
+
var css$t = {"line-height-12":"F6DzEg","line-height-18":"oyyqMR","line-height-24":"T0kOKr","line-height-30":"m6D9LL","font-size-10":"R34zuo","font-size-12":"cjNcwJ","font-size-14":"FeLlUx","font-size-16":"v-qPMi","font-size-18":"lHGTXJ","font-size-24":"yg1IyN","v-padding-2":"eUcf38","v-padding-3":"FoNV2-","v-padding-5":"FDfbov","v-padding-6":"l3AH2k","v-padding-8":"FUzQED","v-padding-9":"Frukj2","v-padding-11":"J-0fi2","v-padding-12":"zB2bEU","v-padding-14":"FgRxca","v-padding-15":"_3cHZb9","v-padding-17":"xeP2KJ","v-padding-18":"R1lerS","v-padding-23":"RvCm6l","v-padding-24":"lGKH-o","lineHeight12":"F6DzEg","lineHeight18":"oyyqMR","lineHeight24":"T0kOKr","lineHeight30":"m6D9LL","fontSize10":"R34zuo","fontSize12":"cjNcwJ","fontSize14":"FeLlUx","fontSize16":"v-qPMi","fontSize18":"lHGTXJ","fontSize24":"yg1IyN","vPadding2":"eUcf38","vPadding3":"FoNV2-","vPadding5":"FDfbov","vPadding6":"l3AH2k","vPadding8":"FUzQED","vPadding9":"Frukj2","vPadding11":"J-0fi2","vPadding12":"zB2bEU","vPadding14":"FgRxca","vPadding15":"_3cHZb9","vPadding17":"xeP2KJ","vPadding18":"R1lerS","vPadding23":"RvCm6l","vPadding24":"lGKH-o"};
|
|
3210
|
+
|
|
3211
|
+
const defaultTextSettings = {
|
|
3212
|
+
18: { lineHeight: 12, fontSize: 10 },
|
|
3213
|
+
24: { lineHeight: 18, fontSize: 12 },
|
|
3214
|
+
30: { lineHeight: 18, fontSize: 14 },
|
|
3215
|
+
36: { lineHeight: 18, fontSize: 14 },
|
|
3216
|
+
42: { lineHeight: 24, fontSize: 16 },
|
|
3217
|
+
48: { lineHeight: 24, fontSize: 16 },
|
|
3218
|
+
60: { lineHeight: 30, fontSize: 24 },
|
|
3219
|
+
};
|
|
3220
|
+
function getTextClasses(props, border) {
|
|
3221
|
+
if (props.size === 'none') {
|
|
3222
|
+
return [css$t['line-height-' + props.lineHeight], css$t['font-size-' + props.fontSize]];
|
|
3223
|
+
}
|
|
3224
|
+
const setting = {
|
|
3225
|
+
size: props.size,
|
|
3226
|
+
lineHeight: props.lineHeight || defaultTextSettings[props.size].lineHeight,
|
|
3227
|
+
fontSize: props.fontSize || defaultTextSettings[props.size].fontSize,
|
|
3228
|
+
};
|
|
3229
|
+
const vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
3230
|
+
return [
|
|
3231
|
+
css$t['line-height-' + setting.lineHeight], css$t['font-size-' + setting.fontSize], css$t['v-padding-' + vPadding],
|
|
3232
|
+
];
|
|
3233
|
+
}
|
|
3234
|
+
|
|
3235
|
+
var css$s = {"root":"_7BkxsH"};
|
|
3236
|
+
|
|
3237
|
+
const allTextColors = ['info', 'warning', 'error', 'success', 'brand', 'primary', 'secondary', 'disabled', 'contrast', 'white'];
|
|
3238
|
+
function applyTextMods(mods) {
|
|
3239
|
+
const textClasses = getTextClasses({
|
|
3240
|
+
size: mods.size || '36',
|
|
3241
|
+
lineHeight: mods.lineHeight,
|
|
3242
|
+
fontSize: mods.fontSize,
|
|
3243
|
+
}, false);
|
|
3244
|
+
return [
|
|
3245
|
+
css$s.root,
|
|
3246
|
+
'uui-text',
|
|
3247
|
+
`uui-font-${mods.font || 'regular'}`,
|
|
3248
|
+
`uui-color-${mods.color || 'primary'}`,
|
|
3249
|
+
'uui-typography',
|
|
3250
|
+
].concat(textClasses);
|
|
3251
|
+
}
|
|
3252
|
+
const Text = withMods(Text$1, applyTextMods);
|
|
3253
|
+
|
|
3254
|
+
var css$r = {"root":"lzyNyI","loading-word":"BO3Hd0","animated-loading":"U2s9HK","skeleton_loading":"_1LyLbb","loadingWord":"BO3Hd0","animatedLoading":"U2s9HK","skeletonLoading":"_1LyLbb"};
|
|
3255
|
+
|
|
3256
|
+
const TextPlaceholder = (props) => {
|
|
3257
|
+
const pattern = ' ';
|
|
3258
|
+
const text = React.useMemo(() => {
|
|
3259
|
+
const words = [];
|
|
3260
|
+
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
3261
|
+
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
3262
|
+
words.push(pattern.repeat(lengthWord));
|
|
3263
|
+
}
|
|
3264
|
+
return words;
|
|
3265
|
+
}, [props.wordsCount]);
|
|
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,
|
|
3268
|
+
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
3269
|
+
};
|
|
3270
|
+
|
|
3271
|
+
const RichTextView = withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-${mods.size || '14'}`]);
|
|
3272
|
+
|
|
3273
|
+
var css$q = {"uui-typography":"s9JRZi","hero-header":"oD1hEz","promo-header":"ILNK4P","uui-critical":"GjsqYy","uui-success":"yHlmkp","uui-warning":"EoRjKL","uui-typography-size-12":"noq76D","uui-typography-size-14":"ShEQtL","uui-typography-size-16":"qugEHx","root":"ru-q-l","modal-blocker":"hoZlV4","animateModalBlocker":"JO6GO5","modal":"NEv2ZA","modal-footer":"opRfev","border-top":"F-lEan","modal-header":"qDHKrs","uuiTypography":"s9JRZi","heroHeader":"oD1hEz","promoHeader":"ILNK4P","uuiCritical":"GjsqYy","uuiSuccess":"yHlmkp","uuiWarning":"EoRjKL","uuiTypographySize12":"noq76D","uuiTypographySize14":"ShEQtL","uuiTypographySize16":"qugEHx","modalBlocker":"hoZlV4","modalFooter":"opRfev","borderTop":"F-lEan","modalHeader":"qDHKrs"};
|
|
3274
|
+
|
|
3275
|
+
const ModalBlocker = withMods(ModalBlocker$1, () => [css$q.modalBlocker]);
|
|
3276
|
+
const ModalWindow = withMods(ModalWindow$1, () => [css$q.root, css$q.modal], (props) => ({
|
|
3277
|
+
style: Object.assign(Object.assign({}, props.style), { width: `${props.width || 420}px`, height: props.height ? `${props.height}px` : 'auto' }),
|
|
3278
|
+
}));
|
|
3279
|
+
class ModalHeader extends React.Component {
|
|
3280
|
+
render() {
|
|
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 },
|
|
3282
|
+
this.props.title && (React.createElement(Text, { size: "48", fontSize: "18", font: "semibold" }, this.props.title)),
|
|
3283
|
+
this.props.children,
|
|
3284
|
+
this.props.onClose && React.createElement(FlexSpacer, null),
|
|
3285
|
+
this.props.onClose && (React.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
3286
|
+
React.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$B, onClick: this.props.onClose })))));
|
|
3287
|
+
}
|
|
3288
|
+
}
|
|
3289
|
+
class ModalFooter extends React.Component {
|
|
3290
|
+
render() {
|
|
3291
|
+
return (React.createElement(FlexRow, { spacing: this.props.spacing || '12', cx: [
|
|
3292
|
+
css$q.root,
|
|
3293
|
+
css$q.modalFooter,
|
|
3294
|
+
this.props.borderTop && css$q.borderTop,
|
|
3295
|
+
this.props.cx,
|
|
3296
|
+
], padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
var _path$i;
|
|
3301
|
+
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); }
|
|
3302
|
+
var SvgCross = function SvgCross(props, ref) {
|
|
3303
|
+
return /*#__PURE__*/React.createElement("svg", _extends$j({
|
|
3304
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3305
|
+
width: 24,
|
|
3306
|
+
height: 24,
|
|
3307
|
+
viewBox: "0 0 24 24",
|
|
3308
|
+
ref: ref
|
|
3309
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
3310
|
+
fillRule: "evenodd",
|
|
3311
|
+
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"
|
|
3312
|
+
})));
|
|
3313
|
+
};
|
|
3314
|
+
var ForwardRef$j = /*#__PURE__*/forwardRef(SvgCross);
|
|
3315
|
+
|
|
3316
|
+
var css$p = {"uui-typography":"q6NfQ0","hero-header":"R30pwx","promo-header":"_1B-M3h","uui-critical":"v6t145","uui-success":"knH0tP","uui-warning":"VHUwhL","uui-typography-size-12":"_6svGWr","uui-typography-size-14":"A-NBUo","uui-typography-size-16":"Uza-pT","root":"DslK6e","icon-wrapper":"FI9e4-","action-wrapper":"WtuWmc","action-link":"KeamRH","close-icon":"tgWnQV","main-path":"UZlj7m","content":"IHjzKa","clear-button":"SjmoUk","close-wrapper":"ItriLv","uuiTypography":"q6NfQ0","heroHeader":"R30pwx","promoHeader":"_1B-M3h","uuiCritical":"v6t145","uuiSuccess":"knH0tP","uuiWarning":"VHUwhL","uuiTypographySize12":"_6svGWr","uuiTypographySize14":"A-NBUo","uuiTypographySize16":"Uza-pT","iconWrapper":"FI9e4-","actionWrapper":"WtuWmc","actionLink":"KeamRH","closeIcon":"tgWnQV","mainPath":"UZlj7m","clearButton":"SjmoUk","closeWrapper":"ItriLv"};
|
|
3317
|
+
|
|
3318
|
+
const NotificationCard = React__default.forwardRef((props, ref) => {
|
|
3319
|
+
const notificationCardNode = React__default.useRef(null);
|
|
3320
|
+
React__default.useImperativeHandle(ref, () => notificationCardNode.current, [notificationCardNode.current]);
|
|
3321
|
+
React__default.useLayoutEffect(() => {
|
|
3322
|
+
var _a, _b;
|
|
3323
|
+
(_a = notificationCardNode.current) === null || _a === void 0 ? void 0 : _a.addEventListener('mouseenter', props.clearTimer);
|
|
3324
|
+
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.addEventListener('mouseleave', props.refreshTimer);
|
|
3325
|
+
return () => {
|
|
3326
|
+
var _a, _b;
|
|
3327
|
+
(_a = notificationCardNode.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('mouseenter', props.clearTimer);
|
|
3328
|
+
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
3329
|
+
};
|
|
3330
|
+
}, []);
|
|
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 },
|
|
3336
|
+
props.children,
|
|
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 }))))));
|
|
3340
|
+
});
|
|
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 }))));
|
|
3345
|
+
class ClearNotification extends React__default.Component {
|
|
3346
|
+
render() {
|
|
3347
|
+
return (React__default.createElement("div", { className: cx(css$p.notificationWrapper, css$p.clearButton) },
|
|
3348
|
+
React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => this.context.uuiNotifications.clearAll() })));
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
ClearNotification.contextType = UuiContext;
|
|
3352
|
+
|
|
3353
|
+
class ConfirmationModal extends React.Component {
|
|
3354
|
+
render() {
|
|
3355
|
+
let bodyContent;
|
|
3356
|
+
if (this.props.bodyContent) {
|
|
3357
|
+
bodyContent = React.createElement(Panel, { background: "surface", margin: "24" }, this.props.bodyContent);
|
|
3358
|
+
}
|
|
3359
|
+
return (React.createElement(ModalBlocker, Object.assign({}, this.props),
|
|
3360
|
+
React.createElement(ModalWindow, { width: 420 },
|
|
3361
|
+
React.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
3362
|
+
React.createElement(ScrollBars, null, bodyContent),
|
|
3363
|
+
React.createElement(ModalFooter, null,
|
|
3364
|
+
React.createElement(FlexSpacer, null),
|
|
3365
|
+
this.props.hideCancelButton || (React.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
3366
|
+
React.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "accent" })))));
|
|
3367
|
+
}
|
|
3588
3368
|
}
|
|
3589
3369
|
|
|
3590
|
-
|
|
3370
|
+
const defaultMode = EditMode.FORM;
|
|
3371
|
+
class DatePicker extends BaseDatePicker {
|
|
3372
|
+
constructor() {
|
|
3373
|
+
super(...arguments);
|
|
3374
|
+
this.renderInput = (props) => {
|
|
3375
|
+
var _a;
|
|
3376
|
+
if (process.env.NODE_ENV !== "production") {
|
|
3377
|
+
if (this.props.size === '48') {
|
|
3378
|
+
devLogger.warnAboutDeprecatedPropValue({
|
|
3379
|
+
component: 'DatePicker',
|
|
3380
|
+
propName: 'size',
|
|
3381
|
+
propValue: this.props.size,
|
|
3382
|
+
propValueUseInstead: '42',
|
|
3383
|
+
condition: () => ['48'].indexOf(this.props.size) !== -1,
|
|
3384
|
+
});
|
|
3385
|
+
}
|
|
3386
|
+
}
|
|
3387
|
+
return (React__default.createElement(TextInput, Object.assign({}, props, { onClick: null, isDropdown: false, cx: cx$1(this.props.inputCx, this.state.isOpen && uuiMod.focus), icon: this.props.mode !== EditMode.CELL && systemIcons[this.props.size || '36'].calendar, iconPosition: this.props.iconPosition || 'left', placeholder: this.props.placeholder ? this.props.placeholder : this.getFormat(), size: this.props.size || '36', value: this.state.inputValue, onValueChange: this.handleInputChange, onCancel: this.props.disableClear || !this.state.inputValue ? undefined : this.handleCancel, isInvalid: this.props.isInvalid, isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, tabIndex: this.props.isReadonly || this.props.isDisabled ? -1 : 0, onFocus: this.handleFocus, onBlur: this.handleBlur, mode: this.props.mode || defaultMode, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.input })));
|
|
3388
|
+
};
|
|
3389
|
+
}
|
|
3390
|
+
renderBody(props) {
|
|
3391
|
+
var _a, _b, _c;
|
|
3392
|
+
return (React__default.createElement(DropdownContainer, Object.assign({}, props, { focusLock: false }),
|
|
3393
|
+
React__default.createElement(DatePickerBody, { cx: cx$1(this.props.bodyCx), filter: this.props.filter, value: this.getValue(), setSelectedDate: this.setSelectedDate, setDisplayedDateAndView: this.setDisplayedDateAndView, changeIsOpen: this.onToggle, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.body }), (_c = (_b = this.props).renderFooter) === null || _c === void 0 ? void 0 :
|
|
3394
|
+
_c.call(_b)));
|
|
3395
|
+
}
|
|
3396
|
+
}
|
|
3397
|
+
|
|
3398
|
+
var css$o = {"uui-typography":"cmyYUq","hero-header":"XD2Lnr","promo-header":"rAU9RV","uui-critical":"SN-nbq","uui-success":"-lxNp1","uui-warning":"mGza-n","uui-typography-size-12":"_4ktGBT","uui-typography-size-14":"TR7S7Y","uui-typography-size-16":"rFGjYq","root":"fwZgDA","uuiTypography":"cmyYUq","heroHeader":"XD2Lnr","promoHeader":"rAU9RV","uuiCritical":"SN-nbq","uuiSuccess":"-lxNp1","uuiWarning":"mGza-n","uuiTypographySize12":"_4ktGBT","uuiTypographySize14":"TR7S7Y","uuiTypographySize16":"rFGjYq"};
|
|
3399
|
+
|
|
3400
|
+
function applyCalendarPresetsMods() {
|
|
3401
|
+
return [css$o.root];
|
|
3402
|
+
}
|
|
3403
|
+
const CalendarPresets = withMods(CalendarPresets$1, applyCalendarPresetsMods, () => ({}));
|
|
3404
|
+
|
|
3405
|
+
var css$n = {"uui-typography":"MsL1jX","hero-header":"oRs3KW","promo-header":"Llb9mG","uui-critical":"FX8dEU","uui-success":"_4wS15D","uui-warning":"_4XKWle","uui-typography-size-12":"lLZgGK","uui-typography-size-14":"RD6Dtj","uui-typography-size-16":"OyoFet","root":"fI3Pfl","container":"_1l-DYR","day-selection":"UGLsuF","from-picker":"aVMvjD","to-picker":"_0pSvSV","bodes-wrapper":"CbyPVT","blocker":"uv9Awt","uuiTypography":"MsL1jX","heroHeader":"oRs3KW","promoHeader":"Llb9mG","uuiCritical":"FX8dEU","uuiSuccess":"_4wS15D","uuiWarning":"_4XKWle","uuiTypographySize12":"lLZgGK","uuiTypographySize14":"RD6Dtj","uuiTypographySize16":"OyoFet","daySelection":"UGLsuF","fromPicker":"aVMvjD","toPicker":"_0pSvSV","bodesWrapper":"CbyPVT"};
|
|
3406
|
+
|
|
3407
|
+
dayjs.extend(isoWeek);
|
|
3408
|
+
function weekCount(displayedDate) {
|
|
3409
|
+
let days = [];
|
|
3410
|
+
const dayOfLastWeekInPrevMonth = displayedDate.subtract(1, 'month').endOf('month').day();
|
|
3411
|
+
days = days.concat(new Array(dayOfLastWeekInPrevMonth).fill(undefined));
|
|
3412
|
+
// get days of current month
|
|
3413
|
+
days = days.concat(new Array(displayedDate.endOf('month').date()).fill(undefined));
|
|
3414
|
+
return arrayToMatrix(days, 7).length;
|
|
3415
|
+
}
|
|
3416
|
+
const uuiRangeDatePickerBody = {
|
|
3417
|
+
inRange: 'uui-range-datepicker-in-range',
|
|
3418
|
+
firstDayInRangeWrapper: 'uui-range-datepicker-first-day-in-range-wrapper',
|
|
3419
|
+
lastDayInRangeWrapper: 'uui-range-datepicker-last-day-in-range-wrapper',
|
|
3420
|
+
separator: 'uui-range-datepicker-separator',
|
|
3421
|
+
};
|
|
3422
|
+
const rangeDatePickerPresets = {
|
|
3423
|
+
today: {
|
|
3424
|
+
name: 'Today',
|
|
3425
|
+
getRange: () => ({ from: dayjs().toString(), to: undefined, order: 1 }),
|
|
3426
|
+
},
|
|
3427
|
+
thisWeek: {
|
|
3428
|
+
name: 'This Week',
|
|
3429
|
+
getRange: () => ({ from: dayjs().startOf('isoWeek').toString(), to: dayjs().endOf('isoWeek').toString(), order: 2 }),
|
|
3430
|
+
},
|
|
3431
|
+
lastWeek: {
|
|
3432
|
+
name: 'Last Week',
|
|
3433
|
+
getRange: () => ({ from: dayjs().startOf('isoWeek').subtract(1, 'week').toString(), to: dayjs().endOf('isoWeek').subtract(1, 'week').toString(), order: 3 }),
|
|
3434
|
+
},
|
|
3435
|
+
thisMonth: {
|
|
3436
|
+
name: 'This Month',
|
|
3437
|
+
getRange: () => ({ from: dayjs().startOf('month').toString(), to: dayjs().endOf('month').toString(), order: 4 }),
|
|
3438
|
+
},
|
|
3439
|
+
lastMonth: {
|
|
3440
|
+
name: 'Last Month',
|
|
3441
|
+
getRange: () => ({ from: dayjs().startOf('month').subtract(1, 'month').toString(), to: dayjs().subtract(1, 'month').endOf('month').toString(), order: 5 }),
|
|
3442
|
+
},
|
|
3443
|
+
last3Month: {
|
|
3444
|
+
name: 'Last 3 Months',
|
|
3445
|
+
getRange: () => ({ from: dayjs().startOf('month').subtract(3, 'month').toString(), to: dayjs().subtract(1, 'month').endOf('month').toString(), order: 5 }),
|
|
3446
|
+
},
|
|
3447
|
+
thisYear: {
|
|
3448
|
+
name: 'This Year',
|
|
3449
|
+
getRange: () => ({ from: dayjs().startOf('year').toString(), to: dayjs().endOf('year').toString(), order: 7 }),
|
|
3450
|
+
},
|
|
3451
|
+
lastYear: {
|
|
3452
|
+
name: 'Last Year',
|
|
3453
|
+
getRange: () => ({ from: dayjs().startOf('year').subtract(1, 'year').toString(), to: dayjs().subtract(1, 'year').endOf('year').toString(), order: 8 }),
|
|
3454
|
+
},
|
|
3455
|
+
};
|
|
3456
|
+
class RangeDatePickerBody extends React.Component {
|
|
3457
|
+
constructor() {
|
|
3458
|
+
super(...arguments);
|
|
3459
|
+
this.state = {
|
|
3460
|
+
activePart: null,
|
|
3461
|
+
};
|
|
3462
|
+
this.getDayCX = (day) => {
|
|
3463
|
+
var _a, _b;
|
|
3464
|
+
const dayValue = day.valueOf();
|
|
3465
|
+
const fromValue = ((_a = this.props.value) === null || _a === void 0 ? void 0 : _a.selectedDate.from) ? dayjs(this.props.value.selectedDate.from).valueOf() : null;
|
|
3466
|
+
const toValue = ((_b = this.props.value) === null || _b === void 0 ? void 0 : _b.selectedDate.to) ? dayjs(this.props.value.selectedDate.to).valueOf() : null;
|
|
3467
|
+
const inRange = dayValue >= fromValue && dayValue <= toValue && fromValue !== toValue && fromValue && toValue;
|
|
3468
|
+
const isFirst = dayValue === fromValue;
|
|
3469
|
+
const isLast = dayValue === toValue;
|
|
3470
|
+
return [
|
|
3471
|
+
inRange && uuiRangeDatePickerBody.inRange,
|
|
3472
|
+
isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper,
|
|
3473
|
+
!inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper,
|
|
3474
|
+
isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper,
|
|
3475
|
+
!inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper,
|
|
3476
|
+
(dayValue === fromValue || dayValue === toValue) && uuiDaySelection.selectedDay,
|
|
3477
|
+
];
|
|
3478
|
+
};
|
|
3479
|
+
this.getFromValue = () => {
|
|
3480
|
+
var _a;
|
|
3481
|
+
return Object.assign(Object.assign({}, this.props.value), { view: this.state.activePart === 'from' ? this.props.value.view : 'DAY_SELECTION', selectedDate: (_a = this.props.value) === null || _a === void 0 ? void 0 : _a.selectedDate.from });
|
|
3482
|
+
};
|
|
3483
|
+
this.getToValue = () => {
|
|
3484
|
+
if (!this.props.value)
|
|
3485
|
+
return;
|
|
3486
|
+
return Object.assign(Object.assign({}, this.props.value), { view: this.state.activePart === 'to' ? this.props.value.view : 'DAY_SELECTION', displayedDate: this.props.value.displayedDate.add(1, 'month'), selectedDate: this.props.value.selectedDate.to });
|
|
3487
|
+
};
|
|
3488
|
+
this.renderPresets = () => {
|
|
3489
|
+
return (React.createElement(React.Fragment, null,
|
|
3490
|
+
React.createElement("div", { className: uuiRangeDatePickerBody.separator }),
|
|
3491
|
+
React.createElement(CalendarPresets, { forwardedRef: this.props.forwardedRef, onPresetSet: (presetVal) => {
|
|
3492
|
+
this.props.onValueChange({
|
|
3493
|
+
view: 'DAY_SELECTION',
|
|
3494
|
+
selectedDate: { from: dayjs(presetVal.from).format(valueFormat), to: dayjs(presetVal.to).format(valueFormat) },
|
|
3495
|
+
displayedDate: dayjs(presetVal.from),
|
|
3496
|
+
});
|
|
3497
|
+
this.props.changeIsOpen(false);
|
|
3498
|
+
}, presets: this.props.presets })));
|
|
3499
|
+
};
|
|
3500
|
+
this.renderDatePicker = () => {
|
|
3501
|
+
var _a, _b;
|
|
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" },
|
|
3503
|
+
React.createElement(FlexCell, { width: "auto" },
|
|
3504
|
+
React.createElement(FlexRow, null,
|
|
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 }),
|
|
3508
|
+
((_b = this.props.value) === null || _b === void 0 ? void 0 : _b.view) !== 'DAY_SELECTION' && (React.createElement("div", { style: {
|
|
3509
|
+
left: this.state.activePart === 'from' && '50%',
|
|
3510
|
+
right: this.state.activePart === 'to' && '50%',
|
|
3511
|
+
}, className: css$n.blocker }))),
|
|
3512
|
+
this.props.presets && this.renderPresets()),
|
|
3513
|
+
this.props.renderFooter && this.props.renderFooter())));
|
|
3514
|
+
};
|
|
3515
|
+
}
|
|
3516
|
+
getRange(selectedDate) {
|
|
3517
|
+
const newRange = { from: null, to: null };
|
|
3518
|
+
const currentRange = this.props.value.selectedDate;
|
|
3519
|
+
if (!this.props.filter || this.props.filter(dayjs(selectedDate))) {
|
|
3520
|
+
if (this.props.focusPart === 'from') {
|
|
3521
|
+
if (dayjs(selectedDate).valueOf() <= dayjs(currentRange.to).valueOf()) {
|
|
3522
|
+
newRange.from = selectedDate;
|
|
3523
|
+
newRange.to = currentRange.to;
|
|
3524
|
+
}
|
|
3525
|
+
else {
|
|
3526
|
+
newRange.from = selectedDate;
|
|
3527
|
+
newRange.to = null;
|
|
3528
|
+
}
|
|
3529
|
+
}
|
|
3530
|
+
if (this.props.focusPart === 'to') {
|
|
3531
|
+
if (!currentRange.from) {
|
|
3532
|
+
newRange.to = selectedDate;
|
|
3533
|
+
}
|
|
3534
|
+
else if (dayjs(selectedDate).valueOf() >= dayjs(currentRange.from).valueOf()) {
|
|
3535
|
+
newRange.from = currentRange.from;
|
|
3536
|
+
newRange.to = selectedDate;
|
|
3537
|
+
}
|
|
3538
|
+
else {
|
|
3539
|
+
newRange.from = selectedDate;
|
|
3540
|
+
newRange.to = null;
|
|
3541
|
+
}
|
|
3542
|
+
}
|
|
3543
|
+
}
|
|
3544
|
+
return newRange;
|
|
3545
|
+
}
|
|
3546
|
+
setSelectedDate(selectedDate) {
|
|
3547
|
+
const range = this.getRange(selectedDate);
|
|
3548
|
+
this.props.onValueChange(Object.assign(Object.assign({}, this.props.value), { selectedDate: range }));
|
|
3549
|
+
if (range.from && range.to && this.props.focusPart === 'to') {
|
|
3550
|
+
this.props.changeIsOpen(false);
|
|
3551
|
+
}
|
|
3552
|
+
}
|
|
3553
|
+
setDisplayedDateAndView(displayedDate, view, part) {
|
|
3554
|
+
this.setState({ activePart: part });
|
|
3555
|
+
this.props.onValueChange({
|
|
3556
|
+
selectedDate: this.props.value.selectedDate,
|
|
3557
|
+
displayedDate: part === 'from' ? displayedDate : displayedDate.subtract(1, 'month'),
|
|
3558
|
+
view: view,
|
|
3559
|
+
});
|
|
3560
|
+
}
|
|
3561
|
+
render() {
|
|
3562
|
+
return (React.createElement("div", Object.assign({ className: cx$1(css$n.root, uuiDatePickerBodyBase.container, this.props.cx) }, this.props.rawProps), this.renderDatePicker()));
|
|
3563
|
+
}
|
|
3564
|
+
}
|
|
3565
|
+
|
|
3566
|
+
var css$m = {"uui-typography":"enP0Cu","hero-header":"CT36Eg","promo-header":"jduQns","uui-critical":"_0IKd4B","uui-success":"BmjzdB","uui-warning":"gl4w2P","uui-typography-size-12":"ErDlAZ","uui-typography-size-14":"WxZvXh","uui-typography-size-16":"_8AHOcE","dropdown-container":"BoyMPe","date-input":"B1GGdM","size-24":"PFj06b","size-30":"ml9Nfj","size-36":"MA2E8c","size-42":"c-62ZO","size-48":"j8NkyE","date-input-group":"_62pONb","separator":"gEjJ8b","mode-form":"cFcYXw","mode-cell":"_2KDLNQ","uuiTypography":"enP0Cu","heroHeader":"CT36Eg","promoHeader":"jduQns","uuiCritical":"_0IKd4B","uuiSuccess":"BmjzdB","uuiWarning":"gl4w2P","uuiTypographySize12":"ErDlAZ","uuiTypographySize14":"WxZvXh","uuiTypographySize16":"_8AHOcE","dropdownContainer":"BoyMPe","dateInput":"B1GGdM","size24":"PFj06b","size30":"ml9Nfj","size36":"MA2E8c","size42":"c-62ZO","size48":"j8NkyE","dateInputGroup":"_62pONb","modeForm":"cFcYXw","modeCell":"_2KDLNQ"};
|
|
3567
|
+
|
|
3568
|
+
const defaultValue = { from: null, to: null };
|
|
3569
|
+
class RangeDatePicker extends BaseRangeDatePicker {
|
|
3570
|
+
constructor() {
|
|
3571
|
+
super(...arguments);
|
|
3572
|
+
this.renderInput = (props) => {
|
|
3573
|
+
var _a, _b;
|
|
3574
|
+
if (process.env.NODE_ENV !== "production") {
|
|
3575
|
+
if (this.props.size === '48') {
|
|
3576
|
+
devLogger.warnAboutDeprecatedPropValue({
|
|
3577
|
+
component: 'RangeDatePicker',
|
|
3578
|
+
propName: 'size',
|
|
3579
|
+
propValue: this.props.size,
|
|
3580
|
+
propValueUseInstead: '42',
|
|
3581
|
+
condition: () => ['48'].indexOf(this.props.size) !== -1,
|
|
3582
|
+
});
|
|
3583
|
+
}
|
|
3584
|
+
}
|
|
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 })));
|
|
3589
|
+
};
|
|
3590
|
+
}
|
|
3591
|
+
renderBody(props) {
|
|
3592
|
+
var _a;
|
|
3593
|
+
return (React.createElement(DropdownContainer, Object.assign({}, props, { cx: cx(css$m.dropdownContainer), focusLock: false }),
|
|
3594
|
+
React.createElement(FlexRow, null,
|
|
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 }))));
|
|
3596
|
+
}
|
|
3597
|
+
}
|
|
3598
|
+
|
|
3599
|
+
var css$l = {"root":"_3p1pGk","blocker":"w74-e3","marker":"_5CuHoQ","top":"yfvdhy","bottom":"pBeRuf","left":"kjzxkZ","right":"N63-QQ","inside":"BE8g8-"};
|
|
3600
|
+
|
|
3601
|
+
function DropMarker(props) {
|
|
3602
|
+
return props.isDndInProgress
|
|
3603
|
+
? (React.createElement(React.Fragment, null,
|
|
3604
|
+
props.enableBlocker && React.createElement("div", { className: css$l.blocker }),
|
|
3605
|
+
React.createElement("div", { className: cx([
|
|
3606
|
+
css$l.root,
|
|
3607
|
+
css$l.marker,
|
|
3608
|
+
css$l[props.position],
|
|
3609
|
+
props === null || props === void 0 ? void 0 : props.cx,
|
|
3610
|
+
]) })))
|
|
3611
|
+
: null;
|
|
3612
|
+
}
|
|
3613
|
+
|
|
3614
|
+
var css$k = {"uui-typography":"-h6Hna","hero-header":"iEd6Y5","promo-header":"_36ljoJ","uui-critical":"_9L-kcw","uui-success":"wIowgP","uui-warning":"_0QwH9R","uui-typography-size-12":"tAA0m4","uui-typography-size-14":"e98mVu","uui-typography-size-16":"K1qkJB","root":"_8fEVsn","size-24":"teJnoy","size-30":"i6nx0c","size-36":"XbBtbP","size-48":"s70bhL","size-60":"-IibNH","uuiTypography":"-h6Hna","heroHeader":"iEd6Y5","promoHeader":"_36ljoJ","uuiCritical":"_9L-kcw","uuiSuccess":"wIowgP","uuiWarning":"_0QwH9R","uuiTypographySize12":"tAA0m4","uuiTypographySize14":"e98mVu","uuiTypographySize16":"K1qkJB","size24":"teJnoy","size30":"i6nx0c","size36":"XbBtbP","size48":"s70bhL","size60":"-IibNH"};
|
|
3615
|
+
|
|
3616
|
+
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
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.
|
|
3618
|
+
const renderCell = (props) => {
|
|
3619
|
+
const mods = props.rowProps;
|
|
3620
|
+
return React.createElement(DataTableCell, Object.assign({ size: mods.size }, props));
|
|
3621
|
+
};
|
|
3622
|
+
const renderDropMarkers = (props) => React.createElement(DropMarker, Object.assign({}, props, { enableBlocker: true }));
|
|
3623
|
+
const propsMods = { renderCell, renderDropMarkers };
|
|
3624
|
+
const DataTableRow = withMods(DataTableRow$1, ({ borderBottom = true, size }) => {
|
|
3625
|
+
return [
|
|
3626
|
+
css$k.root, 'uui-dt-vars', borderBottom && 'uui-dt-row-border', css$k['size-' + (size || '36')],
|
|
3627
|
+
];
|
|
3628
|
+
}, () => propsMods);
|
|
3629
|
+
|
|
3630
|
+
var css$j = {"uui-typography":"ufHP0i","hero-header":"DP1cuv","promo-header":"OLk4Zj","uui-critical":"BQIiXc","uui-success":"Pfc3VS","uui-warning":"tfNe1I","uui-typography-size-12":"vVDxew","uui-typography-size-14":"aqr7aT","uui-typography-size-16":"_4KI3PY","sorting-panel-container":"l-7WbX","sort-active":"u-4ib4","uuiTypography":"ufHP0i","heroHeader":"DP1cuv","promoHeader":"OLk4Zj","uuiCritical":"BQIiXc","uuiSuccess":"Pfc3VS","uuiWarning":"tfNe1I","uuiTypographySize12":"vVDxew","uuiTypographySize14":"aqr7aT","uuiTypographySize16":"_4KI3PY","sortingPanelContainer":"l-7WbX","sortActive":"u-4ib4"};
|
|
3631
|
+
|
|
3632
|
+
var _path$h;
|
|
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); }
|
|
3634
|
+
var SvgTableSortAsc18 = function SvgTableSortAsc18(props, ref) {
|
|
3635
|
+
return /*#__PURE__*/React.createElement("svg", _extends$i({
|
|
3636
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3637
|
+
width: 18,
|
|
3638
|
+
height: 18,
|
|
3639
|
+
viewBox: "0 0 18 18",
|
|
3640
|
+
ref: ref
|
|
3641
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
|
|
3642
|
+
fillRule: "evenodd",
|
|
3643
|
+
d: "M10 6v10H8V6H5l4-4 4 4h-3z",
|
|
3644
|
+
clipRule: "evenodd"
|
|
3645
|
+
})));
|
|
3646
|
+
};
|
|
3647
|
+
var ForwardRef$i = /*#__PURE__*/forwardRef(SvgTableSortAsc18);
|
|
3648
|
+
|
|
3649
|
+
var _path$g;
|
|
3650
|
+
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); }
|
|
3651
|
+
var SvgTableSortDesc18 = function SvgTableSortDesc18(props, ref) {
|
|
3652
|
+
return /*#__PURE__*/React.createElement("svg", _extends$h({
|
|
3653
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3654
|
+
width: 18,
|
|
3655
|
+
height: 18,
|
|
3656
|
+
viewBox: "0 0 18 18",
|
|
3657
|
+
ref: ref
|
|
3658
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
|
|
3659
|
+
fillRule: "evenodd",
|
|
3660
|
+
d: "M10 12V2H8v10H5l4 4 4-4h-3z",
|
|
3661
|
+
clipRule: "evenodd"
|
|
3662
|
+
})));
|
|
3663
|
+
};
|
|
3664
|
+
var ForwardRef$h = /*#__PURE__*/forwardRef(SvgTableSortDesc18);
|
|
3665
|
+
|
|
3666
|
+
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3667
|
+
const sortAsc = useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
3668
|
+
const sortDesc = useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
3669
|
+
return (React__default.createElement(FlexCell, { cx: css$j.sortingPanelContainer },
|
|
3670
|
+
React__default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$i, onClick: sortAsc }),
|
|
3671
|
+
React__default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$h, onClick: sortDesc })));
|
|
3672
|
+
};
|
|
3673
|
+
const SortingPanel = React__default.memo(SortingPanelImpl);
|
|
3674
|
+
|
|
3675
|
+
const ColumnHeaderDropdownImpl = (props) => {
|
|
3676
|
+
const popperModifiers = useMemo(() => [
|
|
3677
|
+
{
|
|
3678
|
+
name: 'offset',
|
|
3679
|
+
options: { offset: [0, 1] },
|
|
3680
|
+
}, mobilePopperModifier,
|
|
3681
|
+
], []);
|
|
3682
|
+
const closeDropdown = useCallback(() => props.onOpenChange(false), [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 }));
|
|
3686
|
+
};
|
|
3687
|
+
const ColumnHeaderDropdown = React__default.memo(ColumnHeaderDropdownImpl);
|
|
3688
|
+
|
|
3689
|
+
var css$i = {"uui-typography":"h9Elw1","hero-header":"KuX3vz","promo-header":"XChwxb","uui-critical":"IDZokF","uui-success":"UF-AwT","uui-warning":"PoSu5h","uui-typography-size-12":"zK0gQN","uui-typography-size-14":"_82INF7","uui-typography-size-16":"YngUrS","cell":"_-5iF8R","sort-icon":"CyYdV3","dropdown-icon":"Mq-Zhu","infoIcon":"YBVXK0","resizable":"w2rhDv","size-24":"jb9MMP","size-30":"lzFws9","size-36":"doj-5E","size-42":"FBCuvZ","size-48":"Pk-wsu","padding-left-24":"_7l09qi","padding-right-24":"zuMbo0","caption":"ptt-nB","checkbox":"CrPhzZ","icon":"dhzdx-","icon-cell":"CG26Hu","align-right":"nawuBl","align-center":"G27nhA","tooltip-wrapper":"YrRtRq","cell-tooltip":"OSwCmB","upper-case":"euPtPs","font-size-14":"KJM13X","resize-mark":"CJhltt","draggable":"WeRhp1","ghost":"MGoNSs","is-dragged-out":"shKdYt","dnd-marker-left":"ygvd8C","dnd-marker-right":"VEr0Hf","cell-tooltip-wrapper":"NvWccK","cell-tooltip-text":"_8MIDUh","uuiTypography":"h9Elw1","heroHeader":"KuX3vz","promoHeader":"XChwxb","uuiCritical":"IDZokF","uuiSuccess":"UF-AwT","uuiWarning":"PoSu5h","uuiTypographySize12":"zK0gQN","uuiTypographySize14":"_82INF7","uuiTypographySize16":"YngUrS","sortIcon":"CyYdV3","dropdownIcon":"Mq-Zhu","size24":"jb9MMP","size30":"lzFws9","size36":"doj-5E","size42":"FBCuvZ","size48":"Pk-wsu","paddingLeft24":"_7l09qi","paddingRight24":"zuMbo0","iconCell":"CG26Hu","alignRight":"nawuBl","alignCenter":"G27nhA","tooltipWrapper":"YrRtRq","cellTooltip":"OSwCmB","upperCase":"euPtPs","fontSize14":"KJM13X","resizeMark":"CJhltt","isDraggedOut":"shKdYt","dndMarkerLeft":"ygvd8C","dndMarkerRight":"VEr0Hf","cellTooltipWrapper":"NvWccK","cellTooltipText":"_8MIDUh"};
|
|
3690
|
+
|
|
3691
|
+
var _path$f;
|
|
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); }
|
|
3693
|
+
var SvgTableSwap18 = function SvgTableSwap18(props, ref) {
|
|
3694
|
+
return /*#__PURE__*/React.createElement("svg", _extends$g({
|
|
3695
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3696
|
+
width: 18,
|
|
3697
|
+
height: 18,
|
|
3698
|
+
viewBox: "0 0 18 18",
|
|
3699
|
+
ref: ref
|
|
3700
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
|
|
3701
|
+
fillRule: "evenodd",
|
|
3702
|
+
d: "M6 1 2 5h3v7h2V5h3L6 1zm7 12V6h-2v7H8l4 4 4-4h-3z",
|
|
3703
|
+
clipRule: "evenodd"
|
|
3704
|
+
})));
|
|
3705
|
+
};
|
|
3706
|
+
var ForwardRef$g = /*#__PURE__*/forwardRef(SvgTableSwap18);
|
|
3707
|
+
|
|
3708
|
+
var _path$e;
|
|
3709
|
+
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); }
|
|
3710
|
+
var SvgContentFiltration18 = function SvgContentFiltration18(props, ref) {
|
|
3711
|
+
return /*#__PURE__*/React.createElement("svg", _extends$f({
|
|
3712
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3713
|
+
width: 18,
|
|
3714
|
+
height: 18,
|
|
3715
|
+
viewBox: "0 0 18 18",
|
|
3716
|
+
ref: ref
|
|
3717
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
|
|
3718
|
+
fillRule: "evenodd",
|
|
3719
|
+
d: "m8 14 2 2v-5H8v3zM2 3v2h14V3H2zm6 8h2l6-6H2l6 6z",
|
|
3720
|
+
clipRule: "evenodd"
|
|
3721
|
+
})));
|
|
3722
|
+
};
|
|
3723
|
+
var ForwardRef$f = /*#__PURE__*/forwardRef(SvgContentFiltration18);
|
|
3591
3724
|
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3725
|
+
var _path$d;
|
|
3726
|
+
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); }
|
|
3727
|
+
var SvgNavigationChevronUp18 = function SvgNavigationChevronUp18(props, ref) {
|
|
3728
|
+
return /*#__PURE__*/React.createElement("svg", _extends$e({
|
|
3729
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3730
|
+
width: 18,
|
|
3731
|
+
height: 18,
|
|
3732
|
+
viewBox: "0 0 18 18",
|
|
3733
|
+
ref: ref
|
|
3734
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
|
|
3735
|
+
fillRule: "evenodd",
|
|
3736
|
+
d: "m9 6-4.5 4.5 1.058 1.057L9 8.123l3.443 3.434L13.5 10.5 9 6z",
|
|
3737
|
+
clipRule: "evenodd"
|
|
3738
|
+
})));
|
|
3739
|
+
};
|
|
3740
|
+
var ForwardRef$e = /*#__PURE__*/forwardRef(SvgNavigationChevronUp18);
|
|
3741
|
+
|
|
3742
|
+
class DataTableHeaderCell extends React.Component {
|
|
3743
|
+
constructor() {
|
|
3744
|
+
super(...arguments);
|
|
3745
|
+
this.state = {
|
|
3746
|
+
isDropdownOpen: null,
|
|
3747
|
+
};
|
|
3748
|
+
this.getTextStyle = () => {
|
|
3749
|
+
if (this.props.textCase === 'upper')
|
|
3750
|
+
return css$i.upperCase;
|
|
3751
|
+
return css$i['font-size-14'];
|
|
3752
|
+
};
|
|
3753
|
+
this.getTooltipContent = () => (React.createElement("div", { className: css$i.cellTooltipWrapper },
|
|
3754
|
+
React.createElement(Text, { fontSize: "14", color: "contrast", font: "semibold", cx: css$i.cellTooltipText }, this.props.column.caption),
|
|
3755
|
+
this.props.column.info && React.createElement(Text, { fontSize: "12", color: "contrast", cx: css$i.cellTooltipText }, this.props.column.info)));
|
|
3756
|
+
this.getColumnCaption = () => {
|
|
3757
|
+
return (React.createElement("div", { className: css$i.tooltipWrapper },
|
|
3758
|
+
React.createElement("div", { className: cx$1(css$i.iconCell, css$i['align-' + this.props.column.textAlign], uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
3759
|
+
React.createElement(Tooltip, { placement: "top", color: "contrast", renderContent: this.getTooltipContent, cx: css$i.cellTooltip, openDelay: 600 },
|
|
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)),
|
|
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 })),
|
|
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 })),
|
|
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 })))));
|
|
3764
|
+
};
|
|
3765
|
+
this.renderHeaderCheckbox = () => this.props.selectAll
|
|
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) })));
|
|
3767
|
+
this.renderResizeMark = (props) => React.createElement("div", { onMouseDown: props.onResizeStart, className: cx$1(css$i.resizeMark, uuiMarkers.draggable) });
|
|
3768
|
+
this.renderCellContent = (props, dropdownProps) => (React.createElement(FlexCell, Object.assign({}, this.props.column, { minWidth: this.props.column.width, ref: (ref) => {
|
|
3769
|
+
var _a;
|
|
3770
|
+
props.ref(ref);
|
|
3771
|
+
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
3772
|
+
}, cx: cx$1(uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiMarkers.clickable, css$i.cell, css$i['size-' + (this.props.size || '36')], this.props.isFirstColumn && css$i['padding-left-24'], this.props.isLastColumn && css$i['padding-right-24'], this.props.column.cx, this.props.allowColumnsResizing && css$i.resizable, props.isDraggable && css$i.draggable, props.isDragGhost && css$i.ghost, props.isDraggedOut && css$i.isDraggedOut, props.isDndInProgress && css$i['dnd-marker-' + props.position]), onClick: !this.props.column.renderFilter ? props.toggleSort : dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.onClick, rawProps: Object.assign({ role: 'columnheader', 'aria-sort': this.props.sortDirection === 'asc' ? 'ascending' : this.props.sortDirection ? 'descending' : 'none' }, props.eventHandlers) }),
|
|
3773
|
+
this.renderHeaderCheckbox(),
|
|
3774
|
+
this.getColumnCaption(),
|
|
3775
|
+
this.props.allowColumnsResizing && this.renderResizeMark(props)));
|
|
3776
|
+
this.renderCellWithFilter = (props) => (React.createElement(ColumnHeaderDropdown, { isOpen: this.state.isDropdownOpen, isSortable: this.props.column.isSortable, renderTarget: (dropdownProps) => this.renderCellContent(props, dropdownProps), renderFilter: this.props.renderFilter, onSort: this.props.onSort, sortDirection: this.props.sortDirection, onOpenChange: (isDropdownOpen) => this.setState({ isDropdownOpen }), title: this.props.column.caption }));
|
|
3777
|
+
}
|
|
3778
|
+
render() {
|
|
3779
|
+
return React.createElement(DataTableHeaderCell$1, Object.assign({}, this.props, { cx: "uui-dt-vars", renderCellContent: this.props.column.renderFilter ? this.renderCellWithFilter : this.renderCellContent }));
|
|
3780
|
+
}
|
|
3609
3781
|
}
|
|
3610
3782
|
|
|
3783
|
+
var css$h = {"uui-typography":"GyYgOR","hero-header":"a0rlKR","promo-header":"VtFMPm","uui-critical":"dRm-EC","uui-success":"qpwJS-","uui-warning":"ommFd7","uui-typography-size-12":"wYL07A","uui-typography-size-14":"g1BgKe","uui-typography-size-16":"AX5qk6","header-cell":"PRi7vN","config-icon":"Sit3CV","uuiTypography":"GyYgOR","heroHeader":"a0rlKR","promoHeader":"VtFMPm","uuiCritical":"dRm-EC","uuiSuccess":"qpwJS-","uuiWarning":"ommFd7","uuiTypographySize12":"wYL07A","uuiTypographySize14":"g1BgKe","uuiTypographySize16":"AX5qk6","headerCell":"PRi7vN","configIcon":"Sit3CV"};
|
|
3784
|
+
|
|
3611
3785
|
var _path$c;
|
|
3612
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); }
|
|
3613
|
-
var
|
|
3787
|
+
var SvgActionSettings18 = function SvgActionSettings18(props, ref) {
|
|
3614
3788
|
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
3615
3789
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3616
3790
|
width: 18,
|
|
@@ -3618,90 +3792,19 @@ var SvgContentPlusBold18 = function SvgContentPlusBold18(props, ref) {
|
|
|
3618
3792
|
viewBox: "0 0 18 18",
|
|
3619
3793
|
ref: ref
|
|
3620
3794
|
}, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
|
|
3621
|
-
|
|
3795
|
+
fillRule: "evenodd",
|
|
3796
|
+
d: "M3 9.093a6.083 6.083 0 0 1 0-.186L1.55 7.271a1 1 0 0 1-.118-1.163l1.28-2.216a1 1 0 0 1 1.066-.48l2.14.439a3.81 3.81 0 0 1 .163-.094l.691-2.073A1 1 0 0 1 7.721 1h2.558a1 1 0 0 1 .949.684l.69 2.073c.056.03.11.061.163.094l2.141-.439a1 1 0 0 1 1.067.48l1.279 2.216a1 1 0 0 1-.118 1.163L15 8.907a5.72 5.72 0 0 1 0 .186l1.45 1.636a1 1 0 0 1 .118 1.163l-1.28 2.216a1 1 0 0 1-1.066.48l-2.14-.438a6.215 6.215 0 0 1-.163.093l-.691 2.073a1 1 0 0 1-.949.684H7.721a1 1 0 0 1-.949-.684l-.69-2.073a6.105 6.105 0 0 1-.163-.094l-2.141.439a1 1 0 0 1-1.067-.48l-1.279-2.216a1 1 0 0 1 .118-1.163L3 9.093zM9 12a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",
|
|
3797
|
+
clipRule: "evenodd"
|
|
3622
3798
|
})));
|
|
3623
3799
|
};
|
|
3624
|
-
var ForwardRef$d = /*#__PURE__*/forwardRef(
|
|
3625
|
-
|
|
3626
|
-
function PresetsPanel(props) {
|
|
3627
|
-
const [isAddingPreset, setIsAddingPreset] = useState(false);
|
|
3628
|
-
const setAddingPreset = useCallback(() => {
|
|
3629
|
-
setIsAddingPreset(true);
|
|
3630
|
-
}, []);
|
|
3631
|
-
const cancelAddingPreset = useCallback(() => {
|
|
3632
|
-
setIsAddingPreset(false);
|
|
3633
|
-
}, []);
|
|
3634
|
-
const presetApi = __rest(props, ["presets"]);
|
|
3635
|
-
const renderPreset = (preset) => {
|
|
3636
|
-
return React__default.createElement(Preset, Object.assign({ key: preset.id, preset: preset, addPreset: setAddingPreset }, presetApi));
|
|
3637
|
-
};
|
|
3638
|
-
const renderAddPresetButton = useCallback(() => {
|
|
3639
|
-
return (React__default.createElement("div", { key: "addingPresetBlock", className: css$k.addPresetContainer }, !isAddingPreset ? (React__default.createElement(Button, { size: "36", onClick: setAddingPreset, caption: i18n.presetPanel.addCaption, icon: ForwardRef$d, iconPosition: "left", mode: "ghost", color: "primary" })) : (React__default.createElement(PresetInput, { onCancel: cancelAddingPreset, onSuccess: props.createNewPreset }))));
|
|
3640
|
-
}, [isAddingPreset]);
|
|
3641
|
-
const onPresetDropdownSelect = (preset) => {
|
|
3642
|
-
props.choosePreset(preset.preset);
|
|
3643
|
-
};
|
|
3644
|
-
const renderMoreButtonDropdown = (item, hiddenItems) => {
|
|
3645
|
-
return (React__default.createElement(Dropdown, { key: "more", renderTarget: (props) => (React__default.createElement(FlexRow, null,
|
|
3646
|
-
React__default.createElement("div", { className: css$k.divider }),
|
|
3647
|
-
React__default.createElement(Button, Object.assign({ mode: "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$k.dropContainer), width: 230 }, propsBody),
|
|
3648
|
-
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$e, iconPosition: "right", cx: css$k.dropdownDeleteIcon, onIconClick: !hiddenItem.preset.isReadonly && (() => props.deletePreset(hiddenItem.preset)) })))))) }));
|
|
3649
|
-
};
|
|
3650
|
-
const getPresetPriority = (preset, index) => {
|
|
3651
|
-
return preset.id === props.activePresetId ? 100499 : 1000 - index;
|
|
3652
|
-
};
|
|
3653
|
-
const getPanelItems = () => {
|
|
3654
|
-
return [
|
|
3655
|
-
...sortBy(props.presets, (i) => i.order).map((preset, index) => ({
|
|
3656
|
-
id: preset.id.toString(),
|
|
3657
|
-
render: () => renderPreset(preset),
|
|
3658
|
-
priority: getPresetPriority(preset, index),
|
|
3659
|
-
preset: preset,
|
|
3660
|
-
})), {
|
|
3661
|
-
id: 'collapsedContainer', render: renderMoreButtonDropdown, priority: 100501, collapsedContainer: true,
|
|
3662
|
-
}, { id: 'addPreset', render: renderAddPresetButton, priority: 100501 },
|
|
3663
|
-
];
|
|
3664
|
-
};
|
|
3665
|
-
return (React__default.createElement(FlexCell, { grow: 1, minWidth: 310, rawProps: props.rawProps },
|
|
3666
|
-
React__default.createElement(FlexRow, { size: null, spacing: "12", cx: css$k.presetsWrapper },
|
|
3667
|
-
React__default.createElement(AdaptivePanel, { items: getPanelItems() }))));
|
|
3668
|
-
}
|
|
3669
|
-
|
|
3670
|
-
const defaultPredicates = {
|
|
3671
|
-
numeric: [
|
|
3672
|
-
{ predicate: 'eq', name: '=', isDefault: true }, { predicate: 'neq', name: '≠' }, { predicate: 'lte', name: '≤' }, { predicate: 'gte', name: '≥' }, { predicate: 'inRange', name: 'In Range' },
|
|
3673
|
-
],
|
|
3674
|
-
multiPicker: [{ predicate: 'in', name: 'is', isDefault: true }, { predicate: 'nin', name: 'is not' }],
|
|
3675
|
-
rangeDatePicker: [{ predicate: 'inRange', name: 'In Range', isDefault: true }, { predicate: 'notInRange', name: 'Not in Range' }],
|
|
3676
|
-
};
|
|
3800
|
+
var ForwardRef$d = /*#__PURE__*/forwardRef(SvgActionSettings18);
|
|
3677
3801
|
|
|
3678
|
-
const
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
return null;
|
|
3683
|
-
const props = filterLens.prop(filter.field).toProps();
|
|
3684
|
-
return React__default.createElement(FilterItemBody, Object.assign({}, props, filter, dropdownProps));
|
|
3685
|
-
}, [filters]);
|
|
3686
|
-
const columns = useMemo(() => {
|
|
3687
|
-
if (filters) {
|
|
3688
|
-
const filterKeys = filters.map((f) => f.columnKey);
|
|
3689
|
-
const newColumns = (initialColumns.map((column) => {
|
|
3690
|
-
if (filterKeys.includes(column.key)) {
|
|
3691
|
-
return Object.assign(Object.assign({}, column), { renderFilter: makeFilterRenderCallback(column.key) });
|
|
3692
|
-
}
|
|
3693
|
-
else {
|
|
3694
|
-
return column;
|
|
3695
|
-
}
|
|
3696
|
-
}));
|
|
3697
|
-
return newColumns;
|
|
3698
|
-
}
|
|
3699
|
-
return initialColumns;
|
|
3700
|
-
}, [filters, initialColumns]);
|
|
3701
|
-
return columns;
|
|
3702
|
-
};
|
|
3802
|
+
const DataTableHeaderRow = withMods(DataTableHeaderRow$1, () => [css$h.root, 'uui-dt-vars'], (mods) => ({
|
|
3803
|
+
renderCell: (props) => React.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key })),
|
|
3804
|
+
renderConfigButton: () => React.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: css$h.configIcon, color: "neutral", icon: ForwardRef$d }),
|
|
3805
|
+
}));
|
|
3703
3806
|
|
|
3704
|
-
var styles$1 = {"main-panel":"
|
|
3807
|
+
var styles$1 = {"uui-typography":"mGcPRL","hero-header":"_0tTnvI","promo-header":"zMfQI9","uui-critical":"Ufx76A","uui-success":"WGremY","uui-warning":"OKzFYQ","uui-typography-size-12":"_1qSwW6","uui-typography-size-14":"vomjZ2","uui-typography-size-16":"KzVCy9","main-panel":"W4GF6R","group-title":"-jJY9r","group-title-text":"_0-dioj","group-title-badge":"uuBGSI","group-items":"qPCb-i","no-data":"_21fZHd","h-divider":"Kh4uZw","search-area":"rYoths","uuiTypography":"mGcPRL","heroHeader":"_0tTnvI","promoHeader":"zMfQI9","uuiCritical":"Ufx76A","uuiSuccess":"WGremY","uuiWarning":"OKzFYQ","uuiTypographySize12":"_1qSwW6","uuiTypographySize14":"vomjZ2","uuiTypographySize16":"KzVCy9","mainPanel":"W4GF6R","groupTitle":"-jJY9r","groupTitleText":"_0-dioj","groupTitleBadge":"uuBGSI","groupItems":"qPCb-i","noData":"_21fZHd","hDivider":"Kh4uZw","searchArea":"rYoths"};
|
|
3705
3808
|
|
|
3706
3809
|
var _path$b;
|
|
3707
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); }
|
|
@@ -3780,7 +3883,7 @@ function PinIconButton(props) {
|
|
|
3780
3883
|
React.createElement(IconButton, { icon: pinIcon, onClick: pinClickHandler, isDisabled: isPinnedAlways, color: isPinned ? 'info' : undefined }))));
|
|
3781
3884
|
}
|
|
3782
3885
|
|
|
3783
|
-
var styles = {"row-wrapper":"
|
|
3886
|
+
var styles = {"uui-typography":"p47L2W","hero-header":"DkRK5G","promo-header":"J5uzxQ","uui-critical":"Xvyn6B","uui-success":"S6scUE","uui-warning":"kgKMQH","uui-typography-size-12":"gYpBYm","uui-typography-size-14":"TN423q","uui-typography-size-16":"h9SEig","row-wrapper":"uBtvlk","not-pinned":"B7uAxr","pin-icon-button":"-b-VeG","checkbox":"_3leOUg","drag-handle":"L5QEYr","dnd-disabled":"CbmLsv","uuiTypography":"p47L2W","heroHeader":"DkRK5G","promoHeader":"J5uzxQ","uuiCritical":"Xvyn6B","uuiSuccess":"S6scUE","uuiWarning":"kgKMQH","uuiTypographySize12":"gYpBYm","uuiTypographySize14":"TN423q","uuiTypographySize16":"h9SEig","rowWrapper":"uBtvlk","notPinned":"B7uAxr","pinIconButton":"-b-VeG","dragHandle":"L5QEYr","dndDisabled":"CbmLsv"};
|
|
3784
3887
|
|
|
3785
3888
|
const ColumnRow = React.memo(function ColumnRow(props) {
|
|
3786
3889
|
const { column } = props;
|
|
@@ -3806,7 +3909,7 @@ const ColumnRow = React.memo(function ColumnRow(props) {
|
|
|
3806
3909
|
|
|
3807
3910
|
const renderGroupTitle = (title, amount) => (React.createElement(FlexRow, { size: "24", padding: "24", spacing: "6", cx: styles$1.groupTitle },
|
|
3808
3911
|
React.createElement(Text, { cx: styles$1.groupTitleText, font: "semibold", lineHeight: "24", fontSize: "14" }, title),
|
|
3809
|
-
React.createElement(Badge, { cx: styles$1.groupTitleBadge, caption: amount, color: "
|
|
3912
|
+
React.createElement(Badge, { cx: styles$1.groupTitleBadge, caption: amount, color: "neutral", size: "18" })));
|
|
3810
3913
|
function ColumnsConfigurationModal(props) {
|
|
3811
3914
|
const i18n$1 = i18n.tables.columnsConfigurationModal;
|
|
3812
3915
|
const { columns, columnsConfig: initialColumnsConfig, defaultConfig } = props, modalProps = __rest(props, ["columns", "columnsConfig", "defaultConfig"]);
|
|
@@ -3848,10 +3951,10 @@ function ColumnsConfigurationModal(props) {
|
|
|
3848
3951
|
React.createElement(ModalHeader, { title: i18n$1.configureColumnsTitle, onClose: close }),
|
|
3849
3952
|
React.createElement(FlexRow, { padding: "24", borderBottom: true, spacing: "12", cx: styles$1.searchArea },
|
|
3850
3953
|
React.createElement(SearchInput, { size: "30", value: searchValue, onValueChange: setSearchValue, placeholder: i18n$1.searchPlaceholder }),
|
|
3851
|
-
React.createElement(Dropdown, { closeOnTargetClick: true, renderBody: () => (React.createElement(Panel, { shadow: true },
|
|
3954
|
+
React.createElement(Dropdown, { closeOnTargetClick: true, renderBody: () => (React.createElement(Panel, { background: "surface", shadow: true },
|
|
3852
3955
|
React.createElement(DropdownMenuButton, { caption: i18n$1.clearAllButton, onClick: uncheckAll }),
|
|
3853
|
-
React.createElement(DropdownMenuButton, { caption: i18n$1.selectAllButton, onClick: checkAll }))), renderTarget: (props) => React.createElement(Button, Object.assign({}, props, {
|
|
3854
|
-
React.createElement(Panel, { cx: styles$1.mainPanel },
|
|
3956
|
+
React.createElement(DropdownMenuButton, { caption: i18n$1.selectAllButton, onClick: checkAll }))), renderTarget: (props) => React.createElement(Button, Object.assign({}, props, { fill: "none", icon: ForwardRef$s, size: "30", color: "secondary", isDropdown: false })) })),
|
|
3957
|
+
React.createElement(Panel, { background: "surface", cx: styles$1.mainPanel },
|
|
3855
3958
|
React.createElement(ScrollBars, null,
|
|
3856
3959
|
renderVisible(),
|
|
3857
3960
|
renderHidden(),
|
|
@@ -3859,12 +3962,67 @@ function ColumnsConfigurationModal(props) {
|
|
|
3859
3962
|
React.createElement(Text, { fontSize: "24", lineHeight: "30", color: "primary", font: "semibold" }, i18n$1.noResultsFound.text),
|
|
3860
3963
|
React.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" }, i18n$1.noResultsFound.subText))))),
|
|
3861
3964
|
React.createElement(ModalFooter, { borderTop: true },
|
|
3862
|
-
React.createElement(LinkButton, { icon: ForwardRef$
|
|
3965
|
+
React.createElement(LinkButton, { icon: ForwardRef$r, caption: i18n$1.resetToDefaultButton, onClick: reset }),
|
|
3863
3966
|
React.createElement(FlexSpacer, null),
|
|
3864
|
-
React.createElement(Button, {
|
|
3967
|
+
React.createElement(Button, { fill: "none", color: "secondary", caption: i18n$1.cancelButton, onClick: close }),
|
|
3865
3968
|
noVisibleColumns ? (React.createElement(Tooltip, { content: i18n$1.enableAtLeastOneColumnMessage, placement: "top-end", color: "critical" }, applyButton)) : (applyButton)))));
|
|
3866
3969
|
}
|
|
3867
3970
|
|
|
3971
|
+
var css$g = {"listContainer":"FOVXfC","header":"jY4gLS","group":"_6ZENDn","stickyHeader":"kYkDln"};
|
|
3972
|
+
|
|
3973
|
+
const getChildrenAndRest = (row, rows) => {
|
|
3974
|
+
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
3975
|
+
if (firstNotChildIndex === -1) {
|
|
3976
|
+
return [rows, []];
|
|
3977
|
+
}
|
|
3978
|
+
if (firstNotChildIndex === 0) {
|
|
3979
|
+
return [[], rows];
|
|
3980
|
+
}
|
|
3981
|
+
const children = rows.slice(0, firstNotChildIndex);
|
|
3982
|
+
const rest = rows.slice(firstNotChildIndex, rows.length);
|
|
3983
|
+
return [children, rest];
|
|
3984
|
+
};
|
|
3985
|
+
|
|
3986
|
+
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
3987
|
+
var _a, _b;
|
|
3988
|
+
const rowRef = useRef();
|
|
3989
|
+
const childrenPinnedTop = row.isPinned ? (top + ((_b = (_a = rowRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight) !== null && _b !== void 0 ? _b : 0)) : top;
|
|
3990
|
+
return (React__default.createElement("div", { className: css$g.group, key: row.rowKey },
|
|
3991
|
+
React__default.createElement("div", { className: row.isPinned ? css$g.stickyHeader : css$g.header,
|
|
3992
|
+
// Gaps between pinned parents should be removed by -1 from top height.
|
|
3993
|
+
// Otherwise, sometimes top value is rounded top.
|
|
3994
|
+
style: { zIndex: row.depth + 10, top: top - 1 }, ref: rowRef }, renderRow(row)),
|
|
3995
|
+
childRows.length > 0 && (React__default.createElement("div", null,
|
|
3996
|
+
React__default.createElement(DataRowsGroups, { rows: childRows, renderRow: renderRow, top: childrenPinnedTop })))));
|
|
3997
|
+
}
|
|
3998
|
+
const renderRows = (rows, renderRow, top) => {
|
|
3999
|
+
if (!rows.length)
|
|
4000
|
+
return [];
|
|
4001
|
+
const [row, ...rest] = rows;
|
|
4002
|
+
if (!rest.length) {
|
|
4003
|
+
return [renderRow(row)];
|
|
4004
|
+
}
|
|
4005
|
+
const [next] = rest;
|
|
4006
|
+
if (next.depth <= row.depth && !row.isPinned) {
|
|
4007
|
+
return [renderRow(row)].concat(renderRows(rest, renderRow, top));
|
|
4008
|
+
}
|
|
4009
|
+
const [children, otherRows] = getChildrenAndRest(row, rest);
|
|
4010
|
+
const group = (React__default.createElement(DataRowsGroup, { row: row, childRows: children, renderRow: renderRow, top: top, key: row.rowKey }));
|
|
4011
|
+
return [group].concat(renderRows(otherRows, renderRow, top));
|
|
4012
|
+
};
|
|
4013
|
+
function DataRowsGroups({ rows, renderRow, top = 1, }) {
|
|
4014
|
+
const rowsWithGroups = renderRows(rows, renderRow, top);
|
|
4015
|
+
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
4016
|
+
return (React__default.createElement(React__default.Fragment, null, rowsWithGroups));
|
|
4017
|
+
}
|
|
4018
|
+
|
|
4019
|
+
function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, renderRow, headerRef, }) {
|
|
4020
|
+
var _a;
|
|
4021
|
+
return (React__default.createElement("div", { className: css$g.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
4022
|
+
React__default.createElement("div", { ref: listContainerRef, role: "rowgroup", style: { marginTop: offsetY } },
|
|
4023
|
+
React__default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: (_a = headerRef === null || headerRef === void 0 ? void 0 : headerRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight }))));
|
|
4024
|
+
}
|
|
4025
|
+
|
|
3868
4026
|
var _path$8, _path2, _path3, _path4, _path5, _path6, _g$1, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _defs;
|
|
3869
4027
|
function _extends$9() { _extends$9 = 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$9.apply(this, arguments); }
|
|
3870
4028
|
var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
@@ -3876,7 +4034,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
3876
4034
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3877
4035
|
ref: ref
|
|
3878
4036
|
}, props), /*#__PURE__*/React.createElement("g", {
|
|
3879
|
-
clipPath: "url(#
|
|
4037
|
+
clipPath: "url(#odmwhp5hbu3kk9s64_a)"
|
|
3880
4038
|
}, _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
|
|
3881
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",
|
|
3882
4040
|
fill: "#F5F6FA"
|
|
@@ -3897,7 +4055,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
3897
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",
|
|
3898
4056
|
fill: "#1D1E26"
|
|
3899
4057
|
})), /*#__PURE__*/React.createElement("mask", {
|
|
3900
|
-
id: "
|
|
4058
|
+
id: "odmwhpailrok4upek_b",
|
|
3901
4059
|
style: {
|
|
3902
4060
|
maskType: "alpha"
|
|
3903
4061
|
},
|
|
@@ -3910,7 +4068,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
3910
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",
|
|
3911
4069
|
fill: "#9BDEFF"
|
|
3912
4070
|
}))), _g$1 || (_g$1 = /*#__PURE__*/React.createElement("g", {
|
|
3913
|
-
mask: "url(#
|
|
4071
|
+
mask: "url(#odmwhpailrok4upek_b)",
|
|
3914
4072
|
fillRule: "evenodd",
|
|
3915
4073
|
clipRule: "evenodd"
|
|
3916
4074
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -3996,7 +4154,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
3996
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",
|
|
3997
4155
|
fill: "#fff"
|
|
3998
4156
|
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
3999
|
-
id: "
|
|
4157
|
+
id: "odmwhp5hbu3kk9s64_a"
|
|
4000
4158
|
}, /*#__PURE__*/React.createElement("path", {
|
|
4001
4159
|
fill: "#fff",
|
|
4002
4160
|
transform: "translate(.552)",
|
|
@@ -4005,62 +4163,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4005
4163
|
};
|
|
4006
4164
|
var ForwardRef$9 = /*#__PURE__*/forwardRef(SvgEmptyTable);
|
|
4007
4165
|
|
|
4008
|
-
var css$
|
|
4009
|
-
|
|
4010
|
-
var css$f = {"listContainer":"iDegmz","header":"vfZjHc","group":"_95hELF","stickyHeader":"_1qQ29Z"};
|
|
4011
|
-
|
|
4012
|
-
const getChildrenAndRest = (row, rows) => {
|
|
4013
|
-
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
4014
|
-
if (firstNotChildIndex === -1) {
|
|
4015
|
-
return [rows, []];
|
|
4016
|
-
}
|
|
4017
|
-
if (firstNotChildIndex === 0) {
|
|
4018
|
-
return [[], rows];
|
|
4019
|
-
}
|
|
4020
|
-
const children = rows.slice(0, firstNotChildIndex);
|
|
4021
|
-
const rest = rows.slice(firstNotChildIndex, rows.length);
|
|
4022
|
-
return [children, rest];
|
|
4023
|
-
};
|
|
4024
|
-
|
|
4025
|
-
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
4026
|
-
var _a, _b;
|
|
4027
|
-
const rowRef = useRef();
|
|
4028
|
-
const childrenPinnedTop = row.isPinned ? (top + ((_b = (_a = rowRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight) !== null && _b !== void 0 ? _b : 0)) : top;
|
|
4029
|
-
return (React__default.createElement("div", { className: css$f.group, key: row.rowKey },
|
|
4030
|
-
React__default.createElement("div", { className: row.isPinned ? css$f.stickyHeader : css$f.header,
|
|
4031
|
-
// Gaps between pinned parents should be removed by -1 from top height.
|
|
4032
|
-
// Otherwise, sometimes top value is rounded top.
|
|
4033
|
-
style: { zIndex: row.depth + 10, top: top - 1 }, ref: rowRef }, renderRow(row)),
|
|
4034
|
-
childRows.length > 0 && (React__default.createElement("div", null,
|
|
4035
|
-
React__default.createElement(DataRowsGroups, { rows: childRows, renderRow: renderRow, top: childrenPinnedTop })))));
|
|
4036
|
-
}
|
|
4037
|
-
const renderRows = (rows, renderRow, top) => {
|
|
4038
|
-
if (!rows.length)
|
|
4039
|
-
return [];
|
|
4040
|
-
const [row, ...rest] = rows;
|
|
4041
|
-
if (!rest.length) {
|
|
4042
|
-
return [renderRow(row)];
|
|
4043
|
-
}
|
|
4044
|
-
const [next] = rest;
|
|
4045
|
-
if (next.depth <= row.depth && !row.isPinned) {
|
|
4046
|
-
return [renderRow(row)].concat(renderRows(rest, renderRow, top));
|
|
4047
|
-
}
|
|
4048
|
-
const [children, otherRows] = getChildrenAndRest(row, rest);
|
|
4049
|
-
const group = (React__default.createElement(DataRowsGroup, { row: row, childRows: children, renderRow: renderRow, top: top, key: row.rowKey }));
|
|
4050
|
-
return [group].concat(renderRows(otherRows, renderRow, top));
|
|
4051
|
-
};
|
|
4052
|
-
function DataRowsGroups({ rows, renderRow, top = 1, }) {
|
|
4053
|
-
const rowsWithGroups = renderRows(rows, renderRow, top);
|
|
4054
|
-
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
4055
|
-
return (React__default.createElement(React__default.Fragment, null, rowsWithGroups));
|
|
4056
|
-
}
|
|
4057
|
-
|
|
4058
|
-
function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, renderRow, headerRef, }) {
|
|
4059
|
-
var _a;
|
|
4060
|
-
return (React__default.createElement("div", { className: css$f.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
4061
|
-
React__default.createElement("div", { ref: listContainerRef, role: "rowgroup", style: { marginTop: offsetY } },
|
|
4062
|
-
React__default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: (_a = headerRef === null || headerRef === void 0 ? void 0 : headerRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight }))));
|
|
4063
|
-
}
|
|
4166
|
+
var css$f = {"sticky-header":"hlhppN","table":"RPXZnT","no-results":"sE1nCw","no-results-icon":"bUTvMm","no-results-title":"AagxzJ","stickyHeader":"hlhppN","noResults":"sE1nCw","noResultsIcon":"bUTvMm","noResultsTitle":"AagxzJ"};
|
|
4064
4167
|
|
|
4065
4168
|
function DataTable(props) {
|
|
4066
4169
|
var _a;
|
|
@@ -4069,15 +4172,15 @@ function DataTable(props) {
|
|
|
4069
4172
|
const columnsWithFilters = useColumnsWithFilters(props.columns, props.filters);
|
|
4070
4173
|
const { columns, config, defaultConfig } = useColumnsConfig(columnsWithFilters, (_a = props.value) === null || _a === void 0 ? void 0 : _a.columnsConfig);
|
|
4071
4174
|
const defaultRenderRow = React.useCallback((rowProps) => {
|
|
4072
|
-
return React.createElement(DataTableRow, Object.assign({ key: rowProps.rowKey, size: props.size, borderBottom: props.border }, rowProps, { cx: css$
|
|
4175
|
+
return React.createElement(DataTableRow, Object.assign({ key: rowProps.rowKey, size: props.size, borderBottom: props.border }, rowProps, { cx: css$f.cell }));
|
|
4073
4176
|
}, []);
|
|
4074
4177
|
const renderRow = (row) => { var _a; return ((_a = props.renderRow) !== null && _a !== void 0 ? _a : defaultRenderRow)(Object.assign(Object.assign({}, row), { columns })); };
|
|
4075
4178
|
const rows = props.getRows();
|
|
4076
4179
|
const renderNoResultsBlock = React.useCallback(() => {
|
|
4077
4180
|
var _a;
|
|
4078
|
-
return (React.createElement("div", { className: css$
|
|
4079
|
-
React.createElement(IconContainer, { cx: css$
|
|
4080
|
-
React.createElement(Text, { cx: css$
|
|
4181
|
+
return (React.createElement("div", { className: css$f.noResults }, props.renderNoResultsBlock ? ((_a = props.renderNoResultsBlock) === null || _a === void 0 ? void 0 : _a.call(props)) : (React.createElement(React.Fragment, null,
|
|
4182
|
+
React.createElement(IconContainer, { cx: css$f.noResultsIcon, icon: ForwardRef$9 }),
|
|
4183
|
+
React.createElement(Text, { cx: css$f.noResultsTitle, fontSize: "24", lineHeight: "30", color: "primary", font: "semibold" }, i18n.tables.noResultsBlock.title),
|
|
4081
4184
|
React.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" }, i18n.tables.noResultsBlock.message)))));
|
|
4082
4185
|
}, [props.renderNoResultsBlock]);
|
|
4083
4186
|
const onConfigurationButtonClick = React.useCallback(() => {
|
|
@@ -4094,7 +4197,7 @@ function DataTable(props) {
|
|
|
4094
4197
|
props.columns, config, defaultConfig, props.value, props.onValueChange, props.renderColumnsConfigurationModal,
|
|
4095
4198
|
]);
|
|
4096
4199
|
const renderRowsContainer = React.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows }) => (React.createElement(React.Fragment, null,
|
|
4097
|
-
React.createElement("div", { className: css$
|
|
4200
|
+
React.createElement("div", { className: css$f.stickyHeader, ref: headerRef },
|
|
4098
4201
|
React.createElement(DataTableHeaderRow, { columns: columns, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.size, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, value: Object.assign(Object.assign({}, props.value), { columnsConfig: config }), onValueChange: props.onValueChange }),
|
|
4099
4202
|
React.createElement("div", { className: cx$1(uuiScrollShadows.top, {
|
|
4100
4203
|
[uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
@@ -4103,16 +4206,16 @@ function DataTable(props) {
|
|
|
4103
4206
|
props, columns, rows, renderNoResultsBlock, onConfigurationButtonClick,
|
|
4104
4207
|
]);
|
|
4105
4208
|
return (React.createElement(DataTableSelectionProvider, { onCopy: props.onCopy, rows: rows, columns: columns },
|
|
4106
|
-
React.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rowsCount: props.rowsCount, renderRows: renderRowsContainer, cx: cx$1(css$
|
|
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: {
|
|
4107
4210
|
role: 'table',
|
|
4108
4211
|
'aria-colcount': columns.length,
|
|
4109
4212
|
'aria-rowcount': props.rowsCount,
|
|
4110
4213
|
} })));
|
|
4111
4214
|
}
|
|
4112
4215
|
|
|
4113
|
-
var css$e = {"root":"
|
|
4216
|
+
var css$e = {"root":"_1yPo2o"};
|
|
4114
4217
|
|
|
4115
|
-
var css$d = {"root":"
|
|
4218
|
+
var css$d = {"root":"OLnur1","burger-content":"_8VuLkA","burgerContent":"_8VuLkA"};
|
|
4116
4219
|
|
|
4117
4220
|
var _path$7;
|
|
4118
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); }
|
|
@@ -4145,7 +4248,7 @@ var SvgBurgerClose = function SvgBurgerClose(props, ref) {
|
|
|
4145
4248
|
var ForwardRef$7 = /*#__PURE__*/forwardRef(SvgBurgerClose);
|
|
4146
4249
|
|
|
4147
4250
|
function applyBurgerMods() {
|
|
4148
|
-
return [css$d.root];
|
|
4251
|
+
return [cx(css$d.root, 'uui-burger')];
|
|
4149
4252
|
}
|
|
4150
4253
|
const Burger = withMods(Burger$1, applyBurgerMods, () => ({
|
|
4151
4254
|
burgerIcon: ForwardRef$8,
|
|
@@ -4179,10 +4282,15 @@ var SvgTriangle = function SvgTriangle(props, ref) {
|
|
|
4179
4282
|
};
|
|
4180
4283
|
var ForwardRef$6 = /*#__PURE__*/forwardRef(SvgTriangle);
|
|
4181
4284
|
|
|
4182
|
-
var css$c = {"
|
|
4285
|
+
var css$c = {"uui-typography":"_9nDrBA","hero-header":"AdmOtD","promo-header":"fIBW6u","uui-critical":"f4TjuB","uui-success":"KfJVyP","uui-warning":"_7PQIay","uui-typography-size-12":"ADIB-G","uui-typography-size-14":"_0mtKhX","uui-typography-size-16":"Wg4Enz","root":"gNrdBT","button-primary":"HVTHMg","button-secondary":"TKb7Ru","hasIcon":"t-PgwR","dropdown":"fYU033","uuiTypography":"_9nDrBA","heroHeader":"AdmOtD","promoHeader":"fIBW6u","uuiCritical":"f4TjuB","uuiSuccess":"KfJVyP","uuiWarning":"_7PQIay","uuiTypographySize12":"ADIB-G","uuiTypographySize14":"_0mtKhX","uuiTypographySize16":"Wg4Enz","buttonPrimary":"HVTHMg","buttonSecondary":"TKb7Ru"};
|
|
4183
4286
|
|
|
4184
4287
|
const BurgerButton = withMods(Button$1, (props) => [
|
|
4185
|
-
css$c.root,
|
|
4288
|
+
css$c.root,
|
|
4289
|
+
'uui-main_menu-burger-button',
|
|
4290
|
+
css$c['button-' + (props.type || 'primary')],
|
|
4291
|
+
css$c['indent-' + (props.indentLevel || 0)],
|
|
4292
|
+
props.isDropdown && css$c.dropdown,
|
|
4293
|
+
props.icon && css$c.hasIcon,
|
|
4186
4294
|
], () => ({ dropdownIcon: ForwardRef$6, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
4187
4295
|
|
|
4188
4296
|
function _extends$5() { _extends$5 = 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$5.apply(this, arguments); }
|
|
@@ -4231,21 +4339,21 @@ var SvgMenuInputCancel = function SvgMenuInputCancel(props, ref) {
|
|
|
4231
4339
|
};
|
|
4232
4340
|
var ForwardRef$5 = /*#__PURE__*/forwardRef(SvgMenuInputCancel);
|
|
4233
4341
|
|
|
4234
|
-
var css$b = {"search-input":"
|
|
4342
|
+
var css$b = {"search-input":"-X1-6-","searchInput":"-X1-6-"};
|
|
4235
4343
|
|
|
4236
4344
|
function BurgerSearch(props) {
|
|
4237
|
-
return (React.createElement(TextInput$1, { cx: css$b.searchInput, iconPosition: "left", icon: ForwardRef$15, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$5 }));
|
|
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 }));
|
|
4238
4346
|
}
|
|
4239
4347
|
|
|
4240
|
-
var css$a = {"group-header":"
|
|
4348
|
+
var css$a = {"root":"VqX1NV","group-header":"McYOuP","group-name":"Fbn2Xi","line":"-kKLpQ","groupHeader":"McYOuP","groupName":"Fbn2Xi"};
|
|
4241
4349
|
|
|
4242
4350
|
function BurgerGroupHeader(props) {
|
|
4243
|
-
return (React.createElement("div", { className: css$a.groupHeader },
|
|
4351
|
+
return (React.createElement("div", { className: cx(css$a.root, css$a.groupHeader, 'uui-burger-group-header') },
|
|
4244
4352
|
React.createElement("hr", { className: css$a.line }),
|
|
4245
4353
|
React.createElement("span", { className: css$a.groupName }, props.caption)));
|
|
4246
4354
|
}
|
|
4247
4355
|
|
|
4248
|
-
var css$9 = {"root":"
|
|
4356
|
+
var css$9 = {"uui-typography":"_1t-jlM","hero-header":"Pzq43P","promo-header":"TPVQgX","uui-critical":"wyV3hN","uui-success":"n4gnxJ","uui-warning":"rTW6fv","uui-typography-size-12":"DWdabN","uui-typography-size-14":"YLfBE0","uui-typography-size-16":"tID7RS","root":"SjJkLt","type-primary":"x9Lllu","type-secondary":"mEepFc","uuiTypography":"_1t-jlM","heroHeader":"Pzq43P","promoHeader":"TPVQgX","uuiCritical":"wyV3hN","uuiSuccess":"n4gnxJ","uuiWarning":"rTW6fv","uuiTypographySize12":"DWdabN","uuiTypographySize14":"YLfBE0","uuiTypographySize16":"tID7RS","typePrimary":"x9Lllu","typeSecondary":"mEepFc"};
|
|
4249
4357
|
|
|
4250
4358
|
var _path$4;
|
|
4251
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); }
|
|
@@ -4265,7 +4373,7 @@ var ForwardRef$4 = /*#__PURE__*/forwardRef(SvgChevronDown24);
|
|
|
4265
4373
|
|
|
4266
4374
|
const MainMenuButton = withMods(Button$1, (mods) => [css$9.root, css$9['type-' + (mods.type || 'primary')]], () => ({ dropdownIcon: ForwardRef$4, role: 'menuitem' }));
|
|
4267
4375
|
|
|
4268
|
-
var css$8 = {"dropdown-body":"
|
|
4376
|
+
var css$8 = {"dropdown-body":"DwcTAn","dropdownBody":"DwcTAn"};
|
|
4269
4377
|
|
|
4270
4378
|
class MainMenuDropdown extends React.Component {
|
|
4271
4379
|
render() {
|
|
@@ -4276,7 +4384,7 @@ class MainMenuDropdown extends React.Component {
|
|
|
4276
4384
|
}
|
|
4277
4385
|
};
|
|
4278
4386
|
return (React.createElement(FocusLock, { returnFocus: true, persistentFocus: true, lockProps: { onKeyDown: handleEscape } },
|
|
4279
|
-
React.createElement("div", { className: cx(css$8.dropdownBody) }, this.props.renderBody
|
|
4387
|
+
React.createElement("div", { className: cx(css$8.dropdownBody, 'uui-main_menu-dropdown') }, this.props.renderBody
|
|
4280
4388
|
? this.props.renderBody(Object.assign({}, props))
|
|
4281
4389
|
: React.Children.map(this.props.children, (item) => {
|
|
4282
4390
|
if (!item)
|
|
@@ -4293,7 +4401,10 @@ class MainMenuDropdown extends React.Component {
|
|
|
4293
4401
|
}
|
|
4294
4402
|
|
|
4295
4403
|
function applyMainMenuMods() {
|
|
4296
|
-
return [
|
|
4404
|
+
return [
|
|
4405
|
+
css$e.root,
|
|
4406
|
+
'uui-main_menu',
|
|
4407
|
+
];
|
|
4297
4408
|
}
|
|
4298
4409
|
const MainMenu = withMods(uuiComponents.MainMenu, applyMainMenuMods, () => ({
|
|
4299
4410
|
Burger,
|
|
@@ -4316,12 +4427,12 @@ var SvgGlobalMenu = function SvgGlobalMenu(props, ref) {
|
|
|
4316
4427
|
};
|
|
4317
4428
|
var ForwardRef$3 = /*#__PURE__*/forwardRef(SvgGlobalMenu);
|
|
4318
4429
|
|
|
4319
|
-
var css$7 = {"global-menu-btn":"
|
|
4430
|
+
var css$7 = {"global-menu-btn":"pU-sAx","globalMenuIcon":"_77b19J","globalMenuBtn":"pU-sAx"};
|
|
4320
4431
|
|
|
4321
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),
|
|
4322
4433
|
React.createElement(IconContainer, { icon: ForwardRef$3, cx: css$7.globalMenuIcon }))));
|
|
4323
4434
|
|
|
4324
|
-
var css$6 = {"container":"
|
|
4435
|
+
var css$6 = {"container":"WE-ZXQ","open":"HCqEOg"};
|
|
4325
4436
|
|
|
4326
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 },
|
|
4327
4438
|
React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -4329,18 +4440,18 @@ const MainMenuAvatar = React.forwardRef((props, ref) => (React.createElement("bu
|
|
|
4329
4440
|
props.isDropdown && (React.createElement("div", null,
|
|
4330
4441
|
React.createElement(IconContainer, { icon: ForwardRef$1b, flipY: props.isOpen }))))));
|
|
4331
4442
|
|
|
4332
|
-
var css$5 = {"search-input":"
|
|
4443
|
+
var css$5 = {"search-input":"TTfdSh","searchInput":"TTfdSh"};
|
|
4333
4444
|
|
|
4334
4445
|
const MainMenuSearch = React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
4335
4446
|
var _a;
|
|
4336
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)));
|
|
4337
4448
|
} }))));
|
|
4338
4449
|
|
|
4339
|
-
var css$4 = {"container":"
|
|
4450
|
+
var css$4 = {"container":"_3T-pU8"};
|
|
4340
4451
|
|
|
4341
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))));
|
|
4342
4453
|
|
|
4343
|
-
var css$3 = {"root":"
|
|
4454
|
+
var css$3 = {"root":"BnT69q"};
|
|
4344
4455
|
|
|
4345
4456
|
const Anchor = withMods(Anchor$1, () => [css$3.root]);
|
|
4346
4457
|
|
|
@@ -4397,7 +4508,7 @@ var SvgShape = function SvgShape(props, ref) {
|
|
|
4397
4508
|
};
|
|
4398
4509
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgShape);
|
|
4399
4510
|
|
|
4400
|
-
var css$2 = {"root":"
|
|
4511
|
+
var css$2 = {"root":"_4lCJfq","drop-start":"AdLMQG","drop-over":"c2S0tc","link":"ojDuyS","drop-area":"UkObUB","icon-blue":"UA6kfJ","dropStart":"AdLMQG","dropOver":"c2S0tc","dropArea":"UkObUB","iconBlue":"UA6kfJ"};
|
|
4401
4512
|
|
|
4402
4513
|
class DropSpot extends React.Component {
|
|
4403
4514
|
constructor() {
|
|
@@ -4421,9 +4532,9 @@ class DropSpot extends React.Component {
|
|
|
4421
4532
|
}
|
|
4422
4533
|
}
|
|
4423
4534
|
|
|
4424
|
-
var css$1 = {"
|
|
4535
|
+
var css$1 = {"root":"_0Z9l9a","file-name":"mdbjDt","default-color":"Cdz4p1","doc-color":"_8t7qMj","xls-color":"I9oEud","pdf-color":"dv4UPH","movie-color":"aFiMoC","img-color":"HiIP6f","mov-color":"_0Vblnc","error-block":"VLVhhv","icons-block":"J5VDRn","fileName":"mdbjDt","defaultColor":"Cdz4p1","docColor":"_8t7qMj","xlsColor":"I9oEud","pdfColor":"dv4UPH","movieColor":"aFiMoC","imgColor":"HiIP6f","movColor":"_0Vblnc","errorBlock":"VLVhhv","iconsBlock":"J5VDRn"};
|
|
4425
4536
|
|
|
4426
|
-
var css = {"root":"
|
|
4537
|
+
var css = {"root":"plKduu"};
|
|
4427
4538
|
|
|
4428
4539
|
const SvgCircleProgress = React.forwardRef((props, ref) => {
|
|
4429
4540
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -4492,7 +4603,7 @@ const FileCard = React.forwardRef((props, ref) => {
|
|
|
4492
4603
|
case 'mp4':
|
|
4493
4604
|
case 'wmw':
|
|
4494
4605
|
case 'mkv':
|
|
4495
|
-
return React.createElement(IconContainer, { size: 24, icon: fileIcons.videoIcon, cx: css$1.
|
|
4606
|
+
return React.createElement(IconContainer, { size: 24, icon: fileIcons.videoIcon, cx: css$1.movColor });
|
|
4496
4607
|
case 'csv':
|
|
4497
4608
|
case 'xml':
|
|
4498
4609
|
return React.createElement(IconContainer, { size: 24, icon: fileIcons.tableIcon, cx: css$1.defaultColor });
|
|
@@ -4531,8 +4642,8 @@ const FileCard = React.forwardRef((props, ref) => {
|
|
|
4531
4642
|
progress && progress < 100 && abortXHR();
|
|
4532
4643
|
onClick();
|
|
4533
4644
|
};
|
|
4534
|
-
return (React.createElement(FlexCell, { ref: ref, cx: cx$1(css$1.
|
|
4535
|
-
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" },
|
|
4536
4647
|
fileExtension && getIcon(fileExtension),
|
|
4537
4648
|
React.createElement(FlexCell, { width: "100%" },
|
|
4538
4649
|
React.createElement(Text, { size: "18", fontSize: "14", lineHeight: "18", color: progress < 100 ? 'secondary' : 'primary', cx: css$1.fileName }, fileName),
|
|
@@ -4542,5 +4653,5 @@ const FileCard = React.forwardRef((props, ref) => {
|
|
|
4542
4653
|
isCrossShow && React.createElement(IconButton, { icon: ForwardRef$1, onClick: removeHandler })))));
|
|
4543
4654
|
});
|
|
4544
4655
|
|
|
4545
|
-
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, 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, Spinner, SuccessAlert, SuccessNotification, SvgCircleProgress, Switch, TabButton, Tag, Text, TextArea, TextInput, TextPlaceholder, TimePicker, Tooltip, VerticalTabButton, VirtualList, WarningAlert, WarningNotification, allButtonColors,
|
|
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 };
|
|
4546
4657
|
//# sourceMappingURL=index.esm.js.map
|