@epam/uui 5.11.0 → 5.11.1-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/errors/ErrorPage.d.ts.map +1 -1
- package/components/errors/config.d.ts +4 -0
- package/components/errors/config.d.ts.map +1 -1
- package/components/overlays/Alert.d.ts.map +1 -1
- package/components/tables/DataTable.d.ts +3 -1
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableHeaderGroupCell.d.ts +16 -0
- package/components/tables/DataTableHeaderGroupCell.d.ts.map +1 -0
- package/components/tables/DataTableHeaderRow.d.ts.map +1 -1
- package/i18n.d.ts +2 -0
- package/i18n.d.ts.map +1 -1
- package/index.esm.js +368 -281
- package/index.esm.js.map +1 -1
- package/index.js +367 -280
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/settings.d.ts.map +1 -1
- package/settings.types.d.ts +17 -0
- package/settings.types.d.ts.map +1 -1
- package/stats.html +1 -19
- package/styles.css +2771 -2538
- package/styles.css.map +1 -1
package/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as uuiComponents from '@epam/uui-components';
|
|
2
2
|
import { Clickable, IconContainer, RadioInput as RadioInput$1, TextInput as TextInput$1, ControlGroup as ControlGroup$1, NumericInput as NumericInput$1, TextArea as TextArea$1, Dropdown as Dropdown$1, Anchor as Anchor$1, FlexRow as FlexRow$1, FlexSpacer, Text as Text$1, FlexCell as FlexCell$1, VPanel, ScrollBars as ScrollBars$1, AvatarStack as AvatarStack$1, Spinner as Spinner$1, Paginator as Paginator$1, DragHandle, Blocker as Blocker$1, ModalBlocker as ModalBlocker$1, ModalWindow as ModalWindow$1, Snackbar as Snackbar$1, InputAddon as InputAddon$1, Slider as Slider$1, Calendar as Calendar$1, YearSelection, MonthSelection, Day, uuiDaySelection, PickerBodyBase, DataPickerRow as DataPickerRow$1, Avatar, usePickerModal, handleDataSourceKeyboard, PickerToggler as PickerToggler$1, usePickerInput, usePickerList, DataTableCell as DataTableCell$1, DataTableRow as DataTableRow$1, DataTableCellContainer, DataTableHeaderCell as DataTableHeaderCell$1, DataTableHeaderRow as DataTableHeaderRow$1, AdaptivePanel, useColumnsConfiguration, Accordion as Accordion$1, DataTableSelectionProvider, DataTableFocusProvider, Burger as Burger$1, Button as Button$1, DropSpot as DropSpot$1, UploadFileToggler, ErrorCatch } from '@epam/uui-components';
|
|
3
3
|
export { Avatar, DataTableCellContainer, FlexSpacer, IconContainer } from '@epam/uui-components';
|
|
4
|
-
import { withMods, devLogger, uuiElement, cx as cx$1, uuiMarkers, IEditableDebouncer, UuiContext, uuiMod, directionMode, useVirtualList, useScrollShadows, isMobile, i18n as i18n$1, useUuiContext, isFocusReceiverInsideFocusLock, Lens, mobilePopperModifier, uuiDataTableHeaderCell, usePrevious, useForceUpdate, getSeparatedValue, useArrayDataSource, orderBy, getOrderBetween, DndActor, uuiDndState, useColumnsConfig, uuiScrollShadows, Form as Form$1, useForm as useForm$1, formatBytes, useUuiError } from '@epam/uui-core';
|
|
4
|
+
import { withMods, devLogger, uuiElement, cx as cx$1, uuiMarkers, IEditableDebouncer, UuiContext, uuiMod, directionMode, useVirtualList, useScrollShadows, isMobile, i18n as i18n$1, useUuiContext, isFocusReceiverInsideFocusLock, Lens, mobilePopperModifier, uuiDataTableHeaderCell, uuiDataTableHeaderGroupCell, usePrevious, useForceUpdate, getSeparatedValue, useArrayDataSource, orderBy, getOrderBetween, DndActor, uuiDndState, useColumnsConfig, uuiScrollShadows, Form as Form$1, useForm as useForm$1, formatBytes, useUuiError } from '@epam/uui-core';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default, { forwardRef, useContext, useRef, useState, useEffect, useReducer, useImperativeHandle, useCallback, useMemo, Fragment } from 'react';
|
|
7
7
|
import cx from 'classnames';
|
|
@@ -284,6 +284,7 @@ const systemIcons = {
|
|
|
284
284
|
const settings = {
|
|
285
285
|
sizes: {
|
|
286
286
|
defaults: {
|
|
287
|
+
alert: '48',
|
|
287
288
|
badge: '36',
|
|
288
289
|
button: '36',
|
|
289
290
|
checkbox: '18',
|
|
@@ -304,6 +305,12 @@ const settings = {
|
|
|
304
305
|
paginator: '30',
|
|
305
306
|
rating: '18',
|
|
306
307
|
},
|
|
308
|
+
alert: {
|
|
309
|
+
action: {
|
|
310
|
+
36: '24',
|
|
311
|
+
48: '30',
|
|
312
|
+
},
|
|
313
|
+
},
|
|
307
314
|
tag: {
|
|
308
315
|
countIndicator: {
|
|
309
316
|
18: '12',
|
|
@@ -515,6 +522,25 @@ const settings = {
|
|
|
515
522
|
},
|
|
516
523
|
truncate: ['48'],
|
|
517
524
|
},
|
|
525
|
+
groupCell: {
|
|
526
|
+
defaults: {
|
|
527
|
+
size: '36',
|
|
528
|
+
padding: '12',
|
|
529
|
+
paddingEdge: '24',
|
|
530
|
+
},
|
|
531
|
+
columnCaption: {
|
|
532
|
+
fontSize: '14',
|
|
533
|
+
fontWeight: '400',
|
|
534
|
+
size: '18',
|
|
535
|
+
uppercase: '12',
|
|
536
|
+
},
|
|
537
|
+
iconSize: {
|
|
538
|
+
36: '18',
|
|
539
|
+
48: '18',
|
|
540
|
+
60: '18',
|
|
541
|
+
},
|
|
542
|
+
truncate: ['48'],
|
|
543
|
+
},
|
|
518
544
|
},
|
|
519
545
|
},
|
|
520
546
|
body: {
|
|
@@ -563,11 +589,11 @@ const settings = {
|
|
|
563
589
|
},
|
|
564
590
|
};
|
|
565
591
|
|
|
566
|
-
var css$
|
|
592
|
+
var css$1y = {"uui-typography":"J9F0Yv","uuiTypography":"J9F0Yv","hero-header":"VReReM","heroHeader":"VReReM","promo-header":"tHLGjF","promoHeader":"tHLGjF","uui-critical":"DLZwkn","uuiCritical":"DLZwkn","uui-info":"sBgxUY","uuiInfo":"sBgxUY","uui-success":"QQMd27","uuiSuccess":"QQMd27","uui-warning":"FVc1Te","uuiWarning":"FVc1Te","uui-highlight":"ppU43y","uuiHighlight":"ppU43y","uui-typography-size-12":"hB1xK-","uuiTypographySize12":"hB1xK-","uui-typography-size-14":"_5rAoDW","uuiTypographySize14":"_5rAoDW","uui-typography-size-16":"r-z-NQ","uuiTypographySize16":"r-z-NQ","root":"hoCSdn"};
|
|
567
593
|
|
|
568
594
|
function applyButtonMods(mods) {
|
|
569
595
|
return [
|
|
570
|
-
css$
|
|
596
|
+
css$1y.root,
|
|
571
597
|
'uui-button',
|
|
572
598
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
573
599
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -581,10 +607,10 @@ const Button = /* @__PURE__ */withMods(uuiComponents.Button, applyButtonMods, ()
|
|
|
581
607
|
};
|
|
582
608
|
});
|
|
583
609
|
|
|
584
|
-
var css$
|
|
610
|
+
var css$1x = {"root":"l38xLY"};
|
|
585
611
|
|
|
586
612
|
function applyIconButtonMods(props) {
|
|
587
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
613
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1x.root];
|
|
588
614
|
}
|
|
589
615
|
const IconButton = /* @__PURE__ */withMods(uuiComponents.IconButton, applyIconButtonMods, (props) => {
|
|
590
616
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -618,7 +644,7 @@ function getIconClass(props) {
|
|
|
618
644
|
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'];
|
|
619
645
|
}
|
|
620
646
|
|
|
621
|
-
var css$
|
|
647
|
+
var css$1w = {"uui-typography":"qdQNt6","uuiTypography":"qdQNt6","hero-header":"Q61TeP","heroHeader":"Q61TeP","promo-header":"Y3-k15","promoHeader":"Y3-k15","uui-critical":"_5FM1RG","uuiCritical":"_5FM1RG","uui-info":"_15mtnP","uuiInfo":"_15mtnP","uui-success":"TchaMK","uuiSuccess":"TchaMK","uui-warning":"D0f800","uuiWarning":"D0f800","uui-highlight":"v7Kx-y","uuiHighlight":"v7Kx-y","uui-typography-size-12":"g9LFq2","uuiTypographySize12":"g9LFq2","uui-typography-size-14":"UJbvxz","uuiTypographySize14":"UJbvxz","uui-typography-size-16":"ViRFb2","uuiTypographySize16":"ViRFb2","root":"sfTGVG"};
|
|
622
648
|
|
|
623
649
|
const DEFAULT_COLOR = 'primary';
|
|
624
650
|
const DEFAULT_WEIGHT = 'semibold';
|
|
@@ -634,7 +660,7 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
634
660
|
}
|
|
635
661
|
const rootStyles = [
|
|
636
662
|
'uui-link_button',
|
|
637
|
-
css$
|
|
663
|
+
css$1w.root,
|
|
638
664
|
`uui-size-${props.size || settings.sizes.defaults.linkButton}`,
|
|
639
665
|
...getIconClass(props),
|
|
640
666
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -649,11 +675,11 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
649
675
|
props.isDropdown && (React.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
650
676
|
});
|
|
651
677
|
|
|
652
|
-
var css$
|
|
678
|
+
var css$1v = {"root":"AK7DaS"};
|
|
653
679
|
|
|
654
680
|
const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
655
681
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
656
|
-
css$
|
|
682
|
+
css$1v.root,
|
|
657
683
|
'uui-count_indicator',
|
|
658
684
|
`uui-size-${props.size || settings.sizes.defaults.countIndicator}`,
|
|
659
685
|
props.color && `uui-color-${props.color}`,
|
|
@@ -661,11 +687,11 @@ const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
661
687
|
]) }, props.caption));
|
|
662
688
|
});
|
|
663
689
|
|
|
664
|
-
var css$
|
|
690
|
+
var css$1u = {"uui-typography":"cbl9MC","uuiTypography":"cbl9MC","hero-header":"kkoAHA","heroHeader":"kkoAHA","promo-header":"hWcSse","promoHeader":"hWcSse","uui-critical":"t4oxm0","uuiCritical":"t4oxm0","uui-info":"MkvWES","uuiInfo":"MkvWES","uui-success":"JgAzVp","uuiSuccess":"JgAzVp","uui-warning":"Mxztkz","uuiWarning":"Mxztkz","uui-highlight":"_8-ZVT8","uuiHighlight":"_8-ZVT8","uui-typography-size-12":"eJwhfH","uuiTypographySize12":"eJwhfH","uui-typography-size-14":"rHTgfV","uuiTypographySize14":"rHTgfV","uui-typography-size-16":"Ijf-jk","uuiTypographySize16":"Ijf-jk","root":"kNnKB8","withNotify":"cjUkE4"};
|
|
665
691
|
|
|
666
692
|
const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
667
693
|
const styles = [
|
|
668
|
-
css$
|
|
694
|
+
css$1u.root,
|
|
669
695
|
'uui-tab-button',
|
|
670
696
|
`uui-size-${props.size || settings.sizes.defaults.tabButton}`,
|
|
671
697
|
...getIconClass(props),
|
|
@@ -677,17 +703,17 @@ const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
677
703
|
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
678
704
|
(props.caption || props.withNotify) && (React__default.createElement("div", { className: cx$1(uuiElement.caption) },
|
|
679
705
|
props.caption,
|
|
680
|
-
props.withNotify && React__default.createElement("div", { className: css$
|
|
706
|
+
props.withNotify && React__default.createElement("div", { className: css$1u.withNotify }))),
|
|
681
707
|
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
682
708
|
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { color: "neutral", size: settings.sizes.tabButton.countIndicator[props.size || settings.sizes.defaults.tabButton], caption: props.count })),
|
|
683
709
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
684
710
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
685
711
|
});
|
|
686
712
|
|
|
687
|
-
var css$
|
|
713
|
+
var css$1t = {"uui-typography":"vW0uwe","uuiTypography":"vW0uwe","hero-header":"rsU-3q","heroHeader":"rsU-3q","promo-header":"FXqUtR","promoHeader":"FXqUtR","uui-critical":"_12AtpJ","uuiCritical":"_12AtpJ","uui-info":"LAeKTz","uuiInfo":"LAeKTz","uui-success":"XMon2-","uuiSuccess":"XMon2-","uui-warning":"f7x8A5","uuiWarning":"f7x8A5","uui-highlight":"xNQVBO","uuiHighlight":"xNQVBO","uui-typography-size-12":"ylf7HJ","uuiTypographySize12":"ylf7HJ","uui-typography-size-14":"_8Ww-bC","uuiTypographySize14":"_8Ww-bC","uui-typography-size-16":"P-wQdX","uuiTypographySize16":"P-wQdX","root":"ALXCN6"};
|
|
688
714
|
|
|
689
715
|
function applyVerticalTabButtonMods() {
|
|
690
|
-
return [css$
|
|
716
|
+
return [css$1t.root, 'uui-vertical-tab-button'];
|
|
691
717
|
}
|
|
692
718
|
const VerticalTabButton = /* @__PURE__ */withMods(TabButton, applyVerticalTabButtonMods);
|
|
693
719
|
|
|
@@ -706,13 +732,13 @@ var SvgContentMinusOutline = function SvgContentMinusOutline(props, ref) {
|
|
|
706
732
|
};
|
|
707
733
|
var ForwardRef$C = /*#__PURE__*/forwardRef(SvgContentMinusOutline);
|
|
708
734
|
|
|
709
|
-
var css$
|
|
735
|
+
var css$1s = {"uui-typography":"DQccUr","uuiTypography":"DQccUr","hero-header":"RaijP6","heroHeader":"RaijP6","promo-header":"k5HNPf","promoHeader":"k5HNPf","uui-critical":"aPpsYc","uuiCritical":"aPpsYc","uui-info":"o4QdoJ","uuiInfo":"o4QdoJ","uui-success":"W1PW0O","uuiSuccess":"W1PW0O","uui-warning":"D28vgU","uuiWarning":"D28vgU","uui-highlight":"_0rN1KB","uuiHighlight":"_0rN1KB","uui-typography-size-12":"MZhFDG","uuiTypographySize12":"MZhFDG","uui-typography-size-14":"rqpsQD","uuiTypographySize14":"rqpsQD","uui-typography-size-16":"bamILv","uuiTypographySize16":"bamILv","root":"TCKCkl","mode-cell":"At8Put","modeCell":"At8Put"};
|
|
710
736
|
|
|
711
737
|
function applyCheckboxMods(mods) {
|
|
712
738
|
return [
|
|
713
|
-
css$
|
|
739
|
+
css$1s.root,
|
|
714
740
|
`uui-size-${mods.size || settings.sizes.defaults.checkbox}`,
|
|
715
|
-
css$
|
|
741
|
+
css$1s['mode-' + (mods.mode || 'form')],
|
|
716
742
|
'uui-color-primary',
|
|
717
743
|
];
|
|
718
744
|
}
|
|
@@ -741,11 +767,11 @@ var SvgRadioDotFill = function SvgRadioDotFill(props, ref) {
|
|
|
741
767
|
};
|
|
742
768
|
var ForwardRef$B = /*#__PURE__*/forwardRef(SvgRadioDotFill);
|
|
743
769
|
|
|
744
|
-
var css$
|
|
770
|
+
var css$1r = {"uui-typography":"jaY3XZ","uuiTypography":"jaY3XZ","hero-header":"_9Kwgun","heroHeader":"_9Kwgun","promo-header":"rvZs5u","promoHeader":"rvZs5u","uui-critical":"bltBkV","uuiCritical":"bltBkV","uui-info":"OwELnv","uuiInfo":"OwELnv","uui-success":"O9FV6K","uuiSuccess":"O9FV6K","uui-warning":"b2oBd2","uuiWarning":"b2oBd2","uui-highlight":"Vax1-G","uuiHighlight":"Vax1-G","uui-typography-size-12":"Tek2ef","uuiTypographySize12":"Tek2ef","uui-typography-size-14":"diyJoi","uuiTypographySize14":"diyJoi","uui-typography-size-16":"OyMRoH","uuiTypographySize16":"OyMRoH","root":"HJAVSZ"};
|
|
745
771
|
|
|
746
772
|
function applyRadioInputMods(mods) {
|
|
747
773
|
return [
|
|
748
|
-
css$
|
|
774
|
+
css$1r.root,
|
|
749
775
|
`uui-size-${mods.size || settings.sizes.defaults.radioInput}`,
|
|
750
776
|
'uui-radio-input-container',
|
|
751
777
|
'uui-color-primary',
|
|
@@ -753,11 +779,11 @@ function applyRadioInputMods(mods) {
|
|
|
753
779
|
}
|
|
754
780
|
const RadioInput = /* @__PURE__ */withMods(RadioInput$1, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$B }));
|
|
755
781
|
|
|
756
|
-
var css$
|
|
782
|
+
var css$1q = {"root":"u4SGkZ"};
|
|
757
783
|
|
|
758
784
|
function applySwitchMods(mods) {
|
|
759
785
|
return [
|
|
760
|
-
css$
|
|
786
|
+
css$1q.root,
|
|
761
787
|
`uui-size-${mods.size || settings.sizes.defaults.switch}`,
|
|
762
788
|
'uui-color-primary',
|
|
763
789
|
];
|
|
@@ -821,7 +847,7 @@ var EditMode;
|
|
|
821
847
|
EditMode["INLINE"] = "inline";
|
|
822
848
|
})(EditMode || (EditMode = {}));
|
|
823
849
|
|
|
824
|
-
var textInputCss = {"uui-typography":"
|
|
850
|
+
var textInputCss = {"uui-typography":"c1E6zM","uuiTypography":"c1E6zM","hero-header":"hryxst","heroHeader":"hryxst","promo-header":"IC8KRR","promoHeader":"IC8KRR","uui-critical":"UDb7rn","uuiCritical":"UDb7rn","uui-info":"rq22sm","uuiInfo":"rq22sm","uui-success":"ao5xXI","uuiSuccess":"ao5xXI","uui-warning":"_3iKnTZ","uuiWarning":"_3iKnTZ","uui-highlight":"Fn1QyD","uuiHighlight":"Fn1QyD","uui-typography-size-12":"yzFKxg","uuiTypographySize12":"yzFKxg","uui-typography-size-14":"pd45en","uuiTypographySize14":"pd45en","uui-typography-size-16":"pNnxNO","uuiTypographySize16":"pNnxNO","root":"FKapts","mode-form":"_9Y6NIQ","modeForm":"_9Y6NIQ","mode-inline":"GdnWiN","modeInline":"GdnWiN","mode-cell":"t-x6Yj","modeCell":"t-x6Yj"};
|
|
825
851
|
|
|
826
852
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
827
853
|
function applyTextInputMods(mods) {
|
|
@@ -847,22 +873,22 @@ const SearchInput = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
847
873
|
} })));
|
|
848
874
|
});
|
|
849
875
|
|
|
850
|
-
var css$
|
|
876
|
+
var css$1p = {"root":"-UksMn"};
|
|
851
877
|
|
|
852
|
-
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$
|
|
878
|
+
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$1p.root, 'uui-control-group']);
|
|
853
879
|
|
|
854
880
|
function MultiSwitchComponent(props, ref) {
|
|
855
881
|
return (React.createElement(ControlGroup, { ref: ref, rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'tablist', 'aria-invalid': props.isInvalid, 'aria-required': props.isRequired, 'aria-disabled': props.isDisabled, 'aria-readonly': props.isReadonly }) }, props.items.map((item, index) => (React.createElement(Button, Object.assign({}, props, item, { isDisabled: props.isDisabled, key: index + '-' + item.id, onClick: () => props.onValueChange(item.id), fill: props.value === item.id ? 'solid' : 'outline', color: props.color, size: props.size, rawProps: { 'aria-current': props.value === item.id, role: 'tab' } }))))));
|
|
856
882
|
}
|
|
857
883
|
const MultiSwitch = /* @__PURE__ */React.forwardRef(MultiSwitchComponent);
|
|
858
884
|
|
|
859
|
-
var css$
|
|
885
|
+
var css$1o = {"uui-typography":"cvC9E5","uuiTypography":"cvC9E5","hero-header":"k3ZLbr","heroHeader":"k3ZLbr","promo-header":"ycXdbc","promoHeader":"ycXdbc","uui-critical":"YqdIaI","uuiCritical":"YqdIaI","uui-info":"PcBxz9","uuiInfo":"PcBxz9","uui-success":"_5NmxaM","uuiSuccess":"_5NmxaM","uui-warning":"oYGjH4","uuiWarning":"oYGjH4","uui-highlight":"uh8a19","uuiHighlight":"uh8a19","uui-typography-size-12":"ZYqiJQ","uuiTypographySize12":"ZYqiJQ","uui-typography-size-14":"aKxUwy","uuiTypographySize14":"aKxUwy","uui-typography-size-16":"_6nhtKA","uuiTypographySize16":"_6nhtKA","root":"E-N6Jj","mode-form":"G-9ONx","modeForm":"G-9ONx","mode-cell":"dQ0Oar","modeCell":"dQ0Oar"};
|
|
860
886
|
|
|
861
887
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
862
888
|
function applyNumericInputMods(mods) {
|
|
863
889
|
return [
|
|
864
890
|
textInputCss.root,
|
|
865
|
-
css$
|
|
891
|
+
css$1o.root,
|
|
866
892
|
`uui-size-${mods.size || settings.sizes.defaults.numericInput}`,
|
|
867
893
|
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$2)],
|
|
868
894
|
];
|
|
@@ -877,15 +903,15 @@ const NumericInput = /* @__PURE__ */withMods(NumericInput$1, applyNumericInputMo
|
|
|
877
903
|
};
|
|
878
904
|
});
|
|
879
905
|
|
|
880
|
-
var css$
|
|
906
|
+
var css$1n = {"uui-typography":"_3bZDf8","uuiTypography":"_3bZDf8","hero-header":"toYAZI","heroHeader":"toYAZI","promo-header":"_0QVlvP","promoHeader":"_0QVlvP","uui-critical":"P5Z9dZ","uuiCritical":"P5Z9dZ","uui-info":"Ynfqq5","uuiInfo":"Ynfqq5","uui-success":"xJVEc6","uuiSuccess":"xJVEc6","uui-warning":"_5Ueeqf","uuiWarning":"_5Ueeqf","uui-highlight":"_9SzP3h","uuiHighlight":"_9SzP3h","uui-typography-size-12":"_1M8yZT","uuiTypographySize12":"_1M8yZT","uui-typography-size-14":"Jqt1bT","uuiTypographySize14":"Jqt1bT","uui-typography-size-16":"_7nrAMW","uuiTypographySize16":"_7nrAMW","root":"pIstVs","mode-form":"VfOL2n","modeForm":"VfOL2n","mode-cell":"zOlTEy","modeCell":"zOlTEy","mode-inline":"eGqF8M","modeInline":"eGqF8M"};
|
|
881
907
|
|
|
882
908
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
883
909
|
function applyTextAreaMods(mods) {
|
|
884
910
|
return [
|
|
885
|
-
css$
|
|
911
|
+
css$1n.root,
|
|
886
912
|
'uui-textarea',
|
|
887
913
|
'uui-size-' + (mods.size || settings.sizes.defaults.textArea),
|
|
888
|
-
css$
|
|
914
|
+
css$1n['mode-' + (mods.mode || DEFAULT_MODE$1)],
|
|
889
915
|
];
|
|
890
916
|
}
|
|
891
917
|
const TextArea = /* @__PURE__ */withMods(TextArea$1, applyTextAreaMods, (props) => {
|
|
@@ -978,16 +1004,17 @@ var SvgNotificationInfoFill = function SvgNotificationInfoFill(props, ref) {
|
|
|
978
1004
|
};
|
|
979
1005
|
var ForwardRef$x = /*#__PURE__*/forwardRef(SvgNotificationInfoFill);
|
|
980
1006
|
|
|
981
|
-
var css$
|
|
1007
|
+
var css$1m = {"uui-typography":"HWTwsP","uuiTypography":"HWTwsP","hero-header":"S87K1Y","heroHeader":"S87K1Y","promo-header":"ErTD0d","promoHeader":"ErTD0d","uui-critical":"eBB-E-","uuiCritical":"eBB-E-","uui-info":"g39ReE","uuiInfo":"g39ReE","uui-success":"AWAkqJ","uuiSuccess":"AWAkqJ","uui-warning":"_8U9E0Q","uuiWarning":"_8U9E0Q","uui-highlight":"TT9fWI","uuiHighlight":"TT9fWI","uui-typography-size-12":"e-RLsF","uuiTypographySize12":"e-RLsF","uui-typography-size-14":"podbdR","uuiTypographySize14":"podbdR","uui-typography-size-16":"SJ1LYW","uuiTypographySize16":"SJ1LYW","root":"Y3EN-t","main-path":"KrkNm3","mainPath":"KrkNm3","content-wrapper":"VzQa9h","contentWrapper":"VzQa9h","content":"_8IwZ1i","action-wrapper":"G9TGRp","actionWrapper":"G9TGRp","icon-wrapper":"_0-Yx1E","iconWrapper":"_0-Yx1E","icon":"MSH2tZ","close-icon":"OZB7T4","closeIcon":"OZB7T4"};
|
|
982
1008
|
|
|
983
|
-
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx('uui-alert', css$
|
|
984
|
-
React.createElement("div", { className: css$
|
|
985
|
-
|
|
986
|
-
React.createElement(
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
1009
|
+
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx('uui-alert', css$1m.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.sizes.defaults.alert}`) }, props.rawProps),
|
|
1010
|
+
React.createElement("div", { className: css$1m.mainPath },
|
|
1011
|
+
React.createElement("div", { className: css$1m.contentWrapper },
|
|
1012
|
+
props.icon && (React.createElement("div", { className: css$1m.iconWrapper },
|
|
1013
|
+
React.createElement(IconContainer, { icon: props.icon, cx: css$1m.icon }))),
|
|
1014
|
+
React.createElement("div", { className: css$1m.content },
|
|
1015
|
+
props.children,
|
|
1016
|
+
props.actions && (React.createElement("div", { className: css$1m.actionWrapper }, props.actions.map((action) => (React.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$1m.actionLink, size: settings.sizes.alert.action[props.size || settings.sizes.defaults.alert] }))))))),
|
|
1017
|
+
props.onClose && React.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$1m.closeIcon })))));
|
|
991
1018
|
const WarningAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$z, color: "warning", ref: ref }, props)));
|
|
992
1019
|
const SuccessAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$A, color: "success", ref: ref }, props)));
|
|
993
1020
|
const HintAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$x, color: "info", ref: ref }, props)));
|
|
@@ -995,18 +1022,18 @@ const ErrorAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createE
|
|
|
995
1022
|
|
|
996
1023
|
const Dropdown = /* @__PURE__ */withMods(Dropdown$1);
|
|
997
1024
|
|
|
998
|
-
var css$
|
|
1025
|
+
var css$1l = {"root":"yr1ZfS"};
|
|
999
1026
|
|
|
1000
1027
|
function applyDropdownContainerMods(mods) {
|
|
1001
1028
|
return [
|
|
1002
|
-
css$
|
|
1029
|
+
css$1l.root,
|
|
1003
1030
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1004
1031
|
mods.padding && `padding-${mods.padding}`,
|
|
1005
1032
|
];
|
|
1006
1033
|
}
|
|
1007
1034
|
const DropdownContainer = /* @__PURE__ */withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
1008
1035
|
|
|
1009
|
-
var css$
|
|
1036
|
+
var css$1k = {"uui-typography":"yL2G1R","uuiTypography":"yL2G1R","hero-header":"u6E83x","heroHeader":"u6E83x","promo-header":"HfIb3N","promoHeader":"HfIb3N","uui-critical":"vjBgWl","uuiCritical":"vjBgWl","uui-info":"TS1FcQ","uuiInfo":"TS1FcQ","uui-success":"_0uQ673","uuiSuccess":"_0uQ673","uui-warning":"NwXTV7","uuiWarning":"NwXTV7","uui-highlight":"vruTWu","uuiHighlight":"vruTWu","uui-typography-size-12":"_4WLGbC","uuiTypographySize12":"_4WLGbC","uui-typography-size-14":"JthH6C","uuiTypographySize14":"JthH6C","uui-typography-size-16":"f9fRfa","uuiTypographySize16":"f9fRfa","submenu-root-item-rtl":"InbstL","submenuRootItemRtl":"InbstL","icon-after":"zpJd6q","iconAfter":"zpJd6q","submenu-root-item":"PPjiSU","submenuRootItem":"PPjiSU","icon-check":"D-Fz29","iconCheck":"D-Fz29","splitter-root":"nhVyFF","splitterRoot":"nhVyFF","splitter":"SP9TgY","header-root":"zC68mG","headerRoot":"zC68mG","item-root":"NgaKno","itemRoot":"NgaKno","icon":"LQbwtZ","link":"INu1xn","indent":"NHB9YG","selected-mark":"VnBFIM","selectedMark":"VnBFIM"};
|
|
1010
1037
|
|
|
1011
1038
|
var IDropdownControlKeys;
|
|
1012
1039
|
(function (IDropdownControlKeys) {
|
|
@@ -1067,17 +1094,17 @@ const DropdownMenuButton = /* @__PURE__ */React__default.forwardRef((props, ref)
|
|
|
1067
1094
|
const getMenuButtonContent = () => {
|
|
1068
1095
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1069
1096
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1070
|
-
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$
|
|
1097
|
+
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$1k.icon, iconPosition === 'right' ? css$1k.iconAfter : css$1k.iconBefore) }));
|
|
1071
1098
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1072
1099
|
isIconBefore && iconElement,
|
|
1073
|
-
React__default.createElement(Text$1, { cx: props.indent && css$
|
|
1100
|
+
React__default.createElement(Text$1, { cx: props.indent && css$1k.indent }, caption),
|
|
1074
1101
|
isIconAfter && (React__default.createElement(React__default.Fragment, null,
|
|
1075
1102
|
React__default.createElement(FlexSpacer, null),
|
|
1076
1103
|
iconElement))));
|
|
1077
1104
|
};
|
|
1078
1105
|
const isAnchor = Boolean(link || href);
|
|
1079
|
-
const itemClassNames = cx$1(props.cx, css$
|
|
1080
|
-
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$
|
|
1106
|
+
const itemClassNames = cx$1(props.cx, css$1k.itemRoot, isDisabled && uuiMod.disabled, isActive && uuiMod.active, isOpen && uuiMod.opened);
|
|
1107
|
+
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$1k.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isLinkActive: isActive, isDisabled: isDisabled, target: target }, getMenuButtonContent())) : (React__default.createElement(FlexRow$1, { rawProps: {
|
|
1081
1108
|
tabIndex: isDisabled ? -1 : 0,
|
|
1082
1109
|
role: 'menuitem',
|
|
1083
1110
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
@@ -1085,15 +1112,15 @@ const DropdownMenuButton = /* @__PURE__ */React__default.forwardRef((props, ref)
|
|
|
1085
1112
|
getMenuButtonContent(),
|
|
1086
1113
|
isSelected && (React__default.createElement(React__default.Fragment, null,
|
|
1087
1114
|
React__default.createElement(FlexSpacer, null),
|
|
1088
|
-
React__default.createElement(IconContainer, { icon: systemIcons.accept, cx: css$
|
|
1115
|
+
React__default.createElement(IconContainer, { icon: systemIcons.accept, cx: css$1k.selectedMark })))));
|
|
1089
1116
|
});
|
|
1090
1117
|
function DropdownMenuSplitter(props) {
|
|
1091
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
1092
|
-
React__default.createElement("hr", { className: css$
|
|
1118
|
+
return (React__default.createElement("div", { className: cx$1(props.cx, css$1k.splitterRoot) },
|
|
1119
|
+
React__default.createElement("hr", { className: css$1k.splitter })));
|
|
1093
1120
|
}
|
|
1094
1121
|
function DropdownMenuHeader(props) {
|
|
1095
|
-
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$
|
|
1096
|
-
React__default.createElement("span", { className: css$
|
|
1122
|
+
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$1k.headerRoot) },
|
|
1123
|
+
React__default.createElement("span", { className: css$1k.header }, props.caption)));
|
|
1097
1124
|
}
|
|
1098
1125
|
function DropdownSubMenu(props) {
|
|
1099
1126
|
const subMenuModifiers = [
|
|
@@ -1115,7 +1142,7 @@ function DropdownSubMenu(props) {
|
|
|
1115
1142
|
const isRtl = (window === null || window === void 0 ? void 0 : window.document.dir) === 'rtl';
|
|
1116
1143
|
return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__default.createElement(DropdownMenuBody, Object.assign({ closeOnKey: IDropdownControlKeys.LEFT_ARROW }, props, dropdownProps))), renderTarget: (_a) => {
|
|
1117
1144
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
1118
|
-
return (React__default.createElement(DropdownMenuButton, Object.assign({ cx: cx$1(isRtl ? css$
|
|
1145
|
+
return (React__default.createElement(DropdownMenuButton, Object.assign({ cx: cx$1(isRtl ? css$1k.submenuRootItemRtl : css$1k.submenuRootItem), icon: systemIcons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
1119
1146
|
} }));
|
|
1120
1147
|
}
|
|
1121
1148
|
function DropdownMenuSwitchButton(props) {
|
|
@@ -1132,29 +1159,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1132
1159
|
onHandleValueChange(!isSelected);
|
|
1133
1160
|
}
|
|
1134
1161
|
};
|
|
1135
|
-
return (React__default.createElement(FlexRow$1, { cx: cx$1(props.cx, css$
|
|
1136
|
-
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$
|
|
1162
|
+
return (React__default.createElement(FlexRow$1, { cx: cx$1(props.cx, css$1k.itemRoot, isDisabled && uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
1163
|
+
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$1k.iconBefore }),
|
|
1137
1164
|
React__default.createElement(Text$1, null, caption),
|
|
1138
1165
|
React__default.createElement(FlexSpacer, null),
|
|
1139
1166
|
React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1140
1167
|
}
|
|
1141
1168
|
|
|
1142
|
-
var css$
|
|
1169
|
+
var css$1j = {"uui-typography":"tJ5ReB","uuiTypography":"tJ5ReB","hero-header":"Bz6h48","heroHeader":"Bz6h48","promo-header":"ev6NBH","promoHeader":"ev6NBH","uui-critical":"ElhTl-","uuiCritical":"ElhTl-","uui-info":"MoLvxB","uuiInfo":"MoLvxB","uui-success":"hE4Pv6","uuiSuccess":"hE4Pv6","uui-warning":"_4Z9UK7","uuiWarning":"_4Z9UK7","uui-highlight":"aO1euL","uuiHighlight":"aO1euL","uui-typography-size-12":"MI4bZN","uuiTypographySize12":"MI4bZN","uui-typography-size-14":"_5ivDdV","uuiTypographySize14":"_5ivDdV","uui-typography-size-16":"xoPY6N","uuiTypographySize16":"xoPY6N","root":"_1s9MKj","mode-block":"xgwaE6","modeBlock":"xgwaE6","mode-inline":"va2-Vj","modeInline":"va2-Vj","padding-0":"L-lKt-","padding0":"L-lKt-","padding-6":"gfTITF","padding6":"gfTITF","padding-12":"MIJ0Lq","padding12":"MIJ0Lq","padding-18":"veSZWb","padding18":"veSZWb"};
|
|
1143
1170
|
|
|
1144
1171
|
function applyAccordionMods(mods) {
|
|
1145
1172
|
return [
|
|
1146
|
-
css$
|
|
1147
|
-
css$
|
|
1148
|
-
mods.padding && css$
|
|
1173
|
+
css$1j.root,
|
|
1174
|
+
css$1j[`mode-${mods.mode || 'block'}`],
|
|
1175
|
+
mods.padding && css$1j['padding-' + mods.padding],
|
|
1149
1176
|
];
|
|
1150
1177
|
}
|
|
1151
1178
|
const Accordion = /* @__PURE__ */withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
1152
1179
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons.foldingArrow,
|
|
1153
1180
|
}));
|
|
1154
1181
|
|
|
1155
|
-
var css$
|
|
1182
|
+
var css$1i = {"uui-typography":"_3w-ph0","uuiTypography":"_3w-ph0","hero-header":"lmiIWE","heroHeader":"lmiIWE","promo-header":"wQ59M5","promoHeader":"wQ59M5","uui-critical":"_3VClnA","uuiCritical":"_3VClnA","uui-info":"tIeb4B","uuiInfo":"tIeb4B","uui-success":"z4K-ul","uuiSuccess":"z4K-ul","uui-warning":"rNHjIp","uuiWarning":"rNHjIp","uui-highlight":"rhrDM-","uuiHighlight":"rhrDM-","uui-typography-size-12":"ACYjEC","uuiTypographySize12":"ACYjEC","uui-typography-size-14":"tGgHwK","uuiTypographySize14":"tGgHwK","uui-typography-size-16":"PiT3pq","uuiTypographySize16":"PiT3pq","root":"FJHiiy","border-top":"_5N6Pf-","borderTop":"_5N6Pf-","border-bottom":"_---kjD","borderBottom":"_---kjD","top-shadow":"Mf2Olm","topShadow":"Mf2Olm","padding-6":"_8ridhK","padding6":"_8ridhK","padding-12":"OMVlcX","padding12":"OMVlcX","padding-18":"dREilp","padding18":"dREilp","padding-24":"xRRPmF","padding24":"xRRPmF","margin-24":"J-sIuf","margin24":"J-sIuf","margin-12":"JkVzSh","margin12":"JkVzSh","vPadding-12":"_7d9NIq","vPadding12":"_7d9NIq","vPadding-18":"XCjJtb","vPadding18":"XCjJtb","vPadding-24":"_5Oop5C","vPadding24":"_5Oop5C","vPadding-36":"QoUP1d","vPadding36":"QoUP1d","vPadding-48":"wmZ-62","vPadding48":"wmZ-62","spacing-6":"VxKML8","spacing6":"VxKML8","spacing-12":"LTB9xp","spacing12":"LTB9xp","spacing-18":"elVpOT","spacing18":"elVpOT","uui-surface-main":"KY-d-j","uuiSurfaceMain":"KY-d-j"};
|
|
1156
1183
|
|
|
1157
|
-
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$
|
|
1184
|
+
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$1i.flexCell]);
|
|
1158
1185
|
|
|
1159
1186
|
const FlexRow = /* @__PURE__ */withMods(FlexRow$1, (props) => {
|
|
1160
1187
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1163,45 +1190,45 @@ const FlexRow = /* @__PURE__ */withMods(FlexRow$1, (props) => {
|
|
|
1163
1190
|
}
|
|
1164
1191
|
}
|
|
1165
1192
|
return [
|
|
1166
|
-
css$
|
|
1193
|
+
css$1i.root,
|
|
1167
1194
|
props.size !== null && 'uui-size-' + (props.size || '36'),
|
|
1168
|
-
props.padding && css$
|
|
1169
|
-
props.vPadding && css$
|
|
1170
|
-
props.margin && css$
|
|
1171
|
-
props.topShadow && css$
|
|
1172
|
-
props.borderBottom && css$
|
|
1173
|
-
props.borderTop && css$
|
|
1174
|
-
props.spacing && css$
|
|
1175
|
-
props.background && css$
|
|
1195
|
+
props.padding && css$1i['padding-' + props.padding],
|
|
1196
|
+
props.vPadding && css$1i['vPadding-' + props.vPadding],
|
|
1197
|
+
props.margin && css$1i['margin-' + props.margin],
|
|
1198
|
+
props.topShadow && css$1i.topShadow,
|
|
1199
|
+
props.borderBottom && css$1i.borderBottom,
|
|
1200
|
+
props.borderTop && css$1i.borderTop,
|
|
1201
|
+
props.spacing && css$1i['spacing-' + props.spacing],
|
|
1202
|
+
props.background && css$1i[`uui-${props.background}`],
|
|
1176
1203
|
];
|
|
1177
1204
|
});
|
|
1178
1205
|
|
|
1179
|
-
var css$
|
|
1206
|
+
var css$1h = {"root":"KO863m","margin-24":"wrJRGk","margin24":"wrJRGk","padding-12":"opOilq","padding12":"opOilq","padding-24":"_5hukYs","padding24":"_5hukYs","shadow":"IQlNLa","uui-surface-main":"OIgcvF","uuiSurfaceMain":"OIgcvF"};
|
|
1180
1207
|
|
|
1181
1208
|
const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
|
|
1182
1209
|
'uui-panel',
|
|
1183
|
-
css$
|
|
1184
|
-
props.shadow && css$
|
|
1185
|
-
props.margin && css$
|
|
1186
|
-
props.background && css$
|
|
1210
|
+
css$1h.root,
|
|
1211
|
+
props.shadow && css$1h.shadow,
|
|
1212
|
+
props.margin && css$1h['margin-' + props.margin],
|
|
1213
|
+
props.background && css$1h[`uui-${props.background}`],
|
|
1187
1214
|
]);
|
|
1188
1215
|
|
|
1189
|
-
var css$
|
|
1216
|
+
var css$1g = {"root":"LZGau1"};
|
|
1190
1217
|
|
|
1191
1218
|
function applyTooltipMods(mods) {
|
|
1192
1219
|
return [
|
|
1193
|
-
css$
|
|
1220
|
+
css$1g.root,
|
|
1194
1221
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1195
1222
|
];
|
|
1196
1223
|
}
|
|
1197
1224
|
const Tooltip = /* @__PURE__ */withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
1198
1225
|
|
|
1199
|
-
var css$
|
|
1226
|
+
var css$1f = {"uui-typography":"XQVPio","uuiTypography":"XQVPio","hero-header":"oDtmmx","heroHeader":"oDtmmx","promo-header":"syi7we","promoHeader":"syi7we","uui-critical":"kbbmCy","uuiCritical":"kbbmCy","uui-info":"_0jX8L0","uuiInfo":"_0jX8L0","uui-success":"Uu1l7r","uuiSuccess":"Uu1l7r","uui-warning":"-chxlD","uuiWarning":"-chxlD","uui-highlight":"AcNzql","uuiHighlight":"AcNzql","uui-typography-size-12":"mz5zlm","uuiTypographySize12":"mz5zlm","uui-typography-size-14":"cM3Fck","uuiTypographySize14":"cM3Fck","uui-typography-size-16":"JskUye","uuiTypographySize16":"JskUye","root":"uVFE2q"};
|
|
1200
1227
|
|
|
1201
1228
|
function applyLabeledInputMods(mods) {
|
|
1202
1229
|
return [
|
|
1203
1230
|
'uui-labeled-input',
|
|
1204
|
-
css$
|
|
1231
|
+
css$1f.root,
|
|
1205
1232
|
'uui-size-' + (mods.size || settings.sizes.defaults.labeledInput),
|
|
1206
1233
|
];
|
|
1207
1234
|
}
|
|
@@ -1210,7 +1237,7 @@ const LabeledInput = /* @__PURE__ */withMods(uuiComponents.LabeledInput, applyLa
|
|
|
1210
1237
|
infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$x : ForwardRef$M),
|
|
1211
1238
|
}));
|
|
1212
1239
|
|
|
1213
|
-
var css$
|
|
1240
|
+
var css$1e = {"root":"lVVYkK"};
|
|
1214
1241
|
|
|
1215
1242
|
function RadioGroup(props) {
|
|
1216
1243
|
const direction = props.direction || 'vertical';
|
|
@@ -1219,34 +1246,34 @@ function RadioGroup(props) {
|
|
|
1219
1246
|
props.onValueChange(newVal);
|
|
1220
1247
|
}
|
|
1221
1248
|
};
|
|
1222
|
-
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$
|
|
1249
|
+
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$1e.root, directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur }, props.rawProps), props.items.map((i) => {
|
|
1223
1250
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1224
1251
|
return (React.createElement(RadioInput, Object.assign({ name: props.name, renderLabel: i.renderName ? i.renderName : () => i.name, value: props.value === i.id, onValueChange: () => handleChange(i.id), isDisabled: props.isDisabled || i.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size }, restItemProps)));
|
|
1225
1252
|
})));
|
|
1226
1253
|
}
|
|
1227
1254
|
|
|
1228
|
-
var css$
|
|
1255
|
+
var css$1d = {"root":"BFVP-q"};
|
|
1229
1256
|
|
|
1230
1257
|
function applyScrollBarsMods() {
|
|
1231
1258
|
return [
|
|
1232
|
-
css$
|
|
1259
|
+
css$1d.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1233
1260
|
];
|
|
1234
1261
|
}
|
|
1235
1262
|
const ScrollBars = /* @__PURE__ */withMods(ScrollBars$1, applyScrollBarsMods);
|
|
1236
1263
|
|
|
1237
|
-
var css$
|
|
1264
|
+
var css$1c = {"scroll-container":"wm3FFF","scrollContainer":"wm3FFF","list-container":"FjyvHJ","listContainer":"FjyvHJ"};
|
|
1238
1265
|
|
|
1239
|
-
var css$
|
|
1266
|
+
var css$1b = {"root":"xTx-HH"};
|
|
1240
1267
|
|
|
1241
|
-
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$
|
|
1268
|
+
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$1b.root]);
|
|
1242
1269
|
|
|
1243
|
-
var css$
|
|
1270
|
+
var css$1a = {"uui-typography":"omeBJf","uuiTypography":"omeBJf","hero-header":"KrcSIz","heroHeader":"KrcSIz","promo-header":"PbtcFt","promoHeader":"PbtcFt","uui-critical":"-LTK8w","uuiCritical":"-LTK8w","uui-info":"IIqZ4d","uuiInfo":"IIqZ4d","uui-success":"yoUmrQ","uuiSuccess":"yoUmrQ","uui-warning":"bM8IZ6","uuiWarning":"bM8IZ6","uui-highlight":"g-kHDU","uuiHighlight":"g-kHDU","uui-typography-size-12":"XmceiP","uuiTypographySize12":"XmceiP","uui-typography-size-14":"L69Jqz","uuiTypographySize14":"L69Jqz","uui-typography-size-16":"SHIyC3","uuiTypographySize16":"SHIyC3","root":"_8GuXQY"};
|
|
1244
1271
|
|
|
1245
1272
|
const DEFAULT_FILL = 'solid';
|
|
1246
1273
|
function applyBadgeMods(mods) {
|
|
1247
1274
|
return [
|
|
1248
1275
|
'uui-badge',
|
|
1249
|
-
css$
|
|
1276
|
+
css$1a.root,
|
|
1250
1277
|
`uui-size-${mods.size || settings.sizes.defaults.badge}`,
|
|
1251
1278
|
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1252
1279
|
`uui-color-${mods.color || 'info'}`,
|
|
@@ -1264,11 +1291,11 @@ const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1264
1291
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1265
1292
|
});
|
|
1266
1293
|
|
|
1267
|
-
var css$
|
|
1294
|
+
var css$19 = {"uui-typography":"AQhy4v","uuiTypography":"AQhy4v","hero-header":"rTAA2t","heroHeader":"rTAA2t","promo-header":"MtVS6T","promoHeader":"MtVS6T","uui-critical":"lYfaM5","uuiCritical":"lYfaM5","uui-info":"jijbkU","uuiInfo":"jijbkU","uui-success":"yufIQ9","uuiSuccess":"yufIQ9","uui-warning":"nVvh4o","uuiWarning":"nVvh4o","uui-highlight":"soQhfQ","uuiHighlight":"soQhfQ","uui-typography-size-12":"f9JIO0","uuiTypographySize12":"f9JIO0","uui-typography-size-14":"_57lFU5","uuiTypographySize14":"_57lFU5","uui-typography-size-16":"_8UeN-o","uuiTypographySize16":"_8UeN-o","root":"pQTLk-"};
|
|
1268
1295
|
|
|
1269
1296
|
function applyTagMods(props) {
|
|
1270
1297
|
return [
|
|
1271
|
-
css$
|
|
1298
|
+
css$19.root,
|
|
1272
1299
|
`uui-size-${props.size || settings.sizes.defaults.tag}`,
|
|
1273
1300
|
`uui-color-${props.color || 'neutral'}`,
|
|
1274
1301
|
`uui-fill-${props.fill || 'solid'}`,
|
|
@@ -1288,10 +1315,10 @@ const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1288
1315
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1289
1316
|
});
|
|
1290
1317
|
|
|
1291
|
-
var css$
|
|
1318
|
+
var css$18 = {"root":"_4VTEQq","uui-spinner":"TAaiFU","uuiSpinner":"TAaiFU"};
|
|
1292
1319
|
|
|
1293
1320
|
function applySpinnerMods() {
|
|
1294
|
-
return [css$
|
|
1321
|
+
return [css$18.root, 'uui-spinner'];
|
|
1295
1322
|
}
|
|
1296
1323
|
const Spinner = /* @__PURE__ */withMods(Spinner$1, applySpinnerMods);
|
|
1297
1324
|
|
|
@@ -1325,57 +1352,57 @@ var SvgNavigationChevronRightOutline = function SvgNavigationChevronRightOutline
|
|
|
1325
1352
|
};
|
|
1326
1353
|
var ForwardRef$v = /*#__PURE__*/forwardRef(SvgNavigationChevronRightOutline);
|
|
1327
1354
|
|
|
1328
|
-
var css$
|
|
1355
|
+
var css$17 = {"root":"taIwL-","page":"a0c9EI","spacer":"gYwB6k","mode-ghost":"_6gm-xU","modeGhost":"_6gm-xU"};
|
|
1329
1356
|
|
|
1330
1357
|
function Paginator(props) {
|
|
1331
|
-
const renderPaginator = (params) => (React__default.createElement("nav", Object.assign({ role: "navigation", className: cx(css$
|
|
1358
|
+
const renderPaginator = (params) => (React__default.createElement("nav", Object.assign({ role: "navigation", className: cx(css$17.root, 'uui-paginator', `uui-size-${props.size || settings.sizes.defaults.paginator}`) }, params.rawProps),
|
|
1332
1359
|
React__default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$w, onClick: params.goToPrev, isDisabled: params.isFirst || props.isDisabled, fill: "outline", color: "secondary" }),
|
|
1333
1360
|
params.pages.map((page, index) => {
|
|
1334
1361
|
if (page.type === 'spacer') {
|
|
1335
|
-
return (React__default.createElement(Button, { cx: cx(css$
|
|
1362
|
+
return (React__default.createElement(Button, { cx: cx(css$17.spacer, css$17.page), size: props.size || settings.sizes.defaults.paginator, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
|
|
1336
1363
|
}
|
|
1337
1364
|
else {
|
|
1338
|
-
return (React__default.createElement(Button, { cx: cx(css$
|
|
1365
|
+
return (React__default.createElement(Button, { cx: cx(css$17[`mode-${!page.isActive && 'ghost'}`], css$17.page), size: props.size || settings.sizes.defaults.paginator, key: page.pageNumber, caption: page.pageNumber, onClick: () => { var _a; return (_a = page.onClick) === null || _a === void 0 ? void 0 : _a.call(page); }, rawProps: { 'aria-current': page.isActive }, fill: (page.isActive && 'outline') || 'ghost', color: "primary", isDisabled: props.isDisabled }));
|
|
1339
1366
|
}
|
|
1340
1367
|
}),
|
|
1341
1368
|
React__default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$v, onClick: params.goToNext, isDisabled: params.isLast || props.isDisabled, fill: "outline", color: "secondary" })));
|
|
1342
1369
|
return React__default.createElement(Paginator$1, Object.assign({}, props, { render: renderPaginator }));
|
|
1343
1370
|
}
|
|
1344
1371
|
|
|
1345
|
-
var css$
|
|
1372
|
+
var css$16 = {"root":"Wq4Cfl","progress-bar":"udXVIQ","progressBar":"udXVIQ","progressBar-indeterminate":"e544hG","progressBarIndeterminate":"e544hG","size-12":"m3Kkps","size12":"m3Kkps","size-18":"x-k7IY","size18":"x-k7IY","size-24":"w-svs1","size24":"w-svs1"};
|
|
1346
1373
|
|
|
1347
1374
|
const IndeterminateBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1348
|
-
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$
|
|
1349
|
-
React.createElement("div", { className: cx(css$
|
|
1375
|
+
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$16.root, css$16[`size-${props.size || 12}`]) },
|
|
1376
|
+
React.createElement("div", { className: cx(css$16.progressBar) })));
|
|
1350
1377
|
});
|
|
1351
1378
|
|
|
1352
|
-
var css$
|
|
1379
|
+
var css$15 = {"root":"Y9OC-K","striped":"-qGV2t","animate-stripes":"vaRVOG","animateStripes":"vaRVOG","size-12":"Rz5XjK","size12":"Rz5XjK","size-18":"avR49C","size18":"avR49C","size-24":"m9L6f5","size24":"m9L6f5"};
|
|
1353
1380
|
|
|
1354
1381
|
const DEFAULT_SIZE = '12';
|
|
1355
1382
|
function applyProgressBarMods(mods) {
|
|
1356
1383
|
const size = mods.size || DEFAULT_SIZE;
|
|
1357
1384
|
return [
|
|
1358
|
-
css$
|
|
1359
|
-
css$
|
|
1360
|
-
mods.striped && css$
|
|
1385
|
+
css$15.root,
|
|
1386
|
+
css$15[`size-${size}`],
|
|
1387
|
+
mods.striped && css$15.striped,
|
|
1361
1388
|
];
|
|
1362
1389
|
}
|
|
1363
1390
|
const ProgressBar = /* @__PURE__ */withMods(uuiComponents.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1364
1391
|
hideLabel: props.hideLabel || props.striped,
|
|
1365
1392
|
}));
|
|
1366
1393
|
|
|
1367
|
-
var css$
|
|
1394
|
+
var css$14 = {"root":"TKJniY"};
|
|
1368
1395
|
|
|
1369
1396
|
const IndicatorBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1370
1397
|
const { progress } = props;
|
|
1371
|
-
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$
|
|
1398
|
+
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$14.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$14.root, props.cx) }));
|
|
1372
1399
|
});
|
|
1373
1400
|
|
|
1374
|
-
var css$
|
|
1401
|
+
var css$13 = {"root":"QkSwyC"};
|
|
1375
1402
|
|
|
1376
1403
|
const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1377
1404
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
1378
|
-
css$
|
|
1405
|
+
css$13.root,
|
|
1379
1406
|
`uui-size-${props.size || settings.sizes.defaults.statusIndicator}`,
|
|
1380
1407
|
'uui-status_indicator',
|
|
1381
1408
|
`uui-color-${props.color || 'neutral'}`,
|
|
@@ -1386,7 +1413,7 @@ const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1386
1413
|
React__default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1387
1414
|
});
|
|
1388
1415
|
|
|
1389
|
-
var css$
|
|
1416
|
+
var css$12 = {"drag-handle":"DtPwOU","dragHandle":"DtPwOU","icon-container":"johVCs","iconContainer":"johVCs"};
|
|
1390
1417
|
|
|
1391
1418
|
function DataRowAddons(props) {
|
|
1392
1419
|
var _a, _b;
|
|
@@ -1398,19 +1425,19 @@ function DataRowAddons(props) {
|
|
|
1398
1425
|
return settings.sizes.rowAddons.indentWidth[props.size] || settings.sizes.rowAddons.defaults.indentWidth;
|
|
1399
1426
|
};
|
|
1400
1427
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1401
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__default.createElement(DragHandle, { key: "dh", cx: css$
|
|
1428
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__default.createElement(DragHandle, { key: "dh", cx: css$12.dragHandle, rawProps: Object.assign({}, props.eventHandlers) }),
|
|
1402
1429
|
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: settings.sizes.rowAddons.checkbox[props.size], value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => { var _a; return (_a = row.onCheck) === null || _a === void 0 ? void 0 : _a.call(row, row); }, isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
|
|
1403
1430
|
row.indent > 0 && (React__default.createElement("div", { key: "fold", className: cx('uui-dr_addons-indent', `uui-size-${props.size}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__default.createElement(IconContainer, { rawProps: {
|
|
1404
1431
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1405
1432
|
role: 'button',
|
|
1406
1433
|
}, key: "icon", icon: ForwardRef$Q, cx: [
|
|
1407
|
-
uuiElement.foldingArrow, uuiMarkers.clickable, css$
|
|
1434
|
+
uuiElement.foldingArrow, uuiMarkers.clickable, css$12.iconContainer,
|
|
1408
1435
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.sizes.rowAddons.icon[props.size] || settings.sizes.rowAddons.defaults.icon }))))));
|
|
1409
1436
|
}
|
|
1410
1437
|
|
|
1411
|
-
var css$
|
|
1438
|
+
var css$11 = {"root":"KcDEuI"};
|
|
1412
1439
|
|
|
1413
|
-
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$
|
|
1440
|
+
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$11.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__default.createElement(Spinner, null)) }));
|
|
1414
1441
|
|
|
1415
1442
|
const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1416
1443
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = useVirtualList({
|
|
@@ -1426,7 +1453,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1426
1453
|
var _a;
|
|
1427
1454
|
return ((_a = props.renderRows) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
1428
1455
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1429
|
-
})) || (React.createElement("div", { className: css$
|
|
1456
|
+
})) || (React.createElement("div", { className: css$1c.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1430
1457
|
React.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1431
1458
|
};
|
|
1432
1459
|
const renderView = ({ style }) => (React.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
@@ -1436,7 +1463,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1436
1463
|
return;
|
|
1437
1464
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1438
1465
|
}, []);
|
|
1439
|
-
return (React.createElement(ScrollBars, { cx: cx$1(css$
|
|
1466
|
+
return (React.createElement(ScrollBars, { cx: cx$1(css$1c.scrollContainer, props.cx, {
|
|
1440
1467
|
[uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1441
1468
|
[uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1442
1469
|
[uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -1449,7 +1476,7 @@ const VirtualListView = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1449
1476
|
React.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
1450
1477
|
});
|
|
1451
1478
|
|
|
1452
|
-
var css
|
|
1479
|
+
var css$10 = {"root":"x9tPpn"};
|
|
1453
1480
|
|
|
1454
1481
|
function CheckboxGroup(props) {
|
|
1455
1482
|
const currentValue = props.value || [];
|
|
@@ -1465,16 +1492,16 @@ function CheckboxGroup(props) {
|
|
|
1465
1492
|
}
|
|
1466
1493
|
props.onValueChange(newSelection);
|
|
1467
1494
|
};
|
|
1468
|
-
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css
|
|
1495
|
+
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$10.root, directionMode[direction], props.cx) }, props.rawProps), props.items.map((i) => {
|
|
1469
1496
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1470
1497
|
return (React.createElement(Checkbox, Object.assign({ renderLabel: i.renderName ? i.renderName : () => i.name, value: currentValue.indexOf(i.id) !== -1, onValueChange: (selected) => handleChange(selected, i.id), isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size }, restItemProps)));
|
|
1471
1498
|
})));
|
|
1472
1499
|
}
|
|
1473
1500
|
|
|
1474
|
-
var css
|
|
1501
|
+
var css$$ = {"uui-typography":"UaIBUQ","uuiTypography":"UaIBUQ","hero-header":"sRZEB-","heroHeader":"sRZEB-","promo-header":"_1qaTh4","promoHeader":"_1qaTh4","uui-critical":"ritavP","uuiCritical":"ritavP","uui-info":"l4a7h7","uuiInfo":"l4a7h7","uui-success":"visifc","uuiSuccess":"visifc","uui-warning":"z-p6-W","uuiWarning":"z-p6-W","uui-highlight":"BHcj6q","uuiHighlight":"BHcj6q","uui-typography-size-12":"_-72Rmn","uuiTypographySize12":"_-72Rmn","uui-typography-size-14":"_5O-JG6","uuiTypographySize14":"_5O-JG6","uui-typography-size-16":"bro--i","uuiTypographySize16":"bro--i","root":"-kSY4W","modal-blocker":"_99CSq4","modalBlocker":"_99CSq4","animateModalBlocker":"kOiL-t","modal":"LrQl-R","modal-footer":"qOnsCD","modalFooter":"qOnsCD","modal-header":"uGoT73","modalHeader":"uGoT73"};
|
|
1475
1502
|
|
|
1476
|
-
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css
|
|
1477
|
-
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css
|
|
1503
|
+
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$$.modalBlocker]);
|
|
1504
|
+
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$$.root, css$$.modal], (props) => {
|
|
1478
1505
|
const width = props.width || settings.sizes.modal.window.defaults.width;
|
|
1479
1506
|
const height = props.height || 'auto';
|
|
1480
1507
|
const maxHeight = isMobile() ? '100dvh' : (props.maxHeight || '80dvh');
|
|
@@ -1486,7 +1513,7 @@ const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$_.root, cs
|
|
|
1486
1513
|
});
|
|
1487
1514
|
class ModalHeader extends React__default.Component {
|
|
1488
1515
|
render() {
|
|
1489
|
-
return (React__default.createElement(FlexRow, { padding: this.props.padding || '24', size: null, vPadding: "36", borderBottom: this.props.borderBottom, cx: [css
|
|
1516
|
+
return (React__default.createElement(FlexRow, { padding: this.props.padding || '24', size: null, vPadding: "36", borderBottom: this.props.borderBottom, cx: [css$$.root, css$$.modalHeader, this.props.cx], columnGap: "12", rawProps: this.props.rawProps },
|
|
1490
1517
|
this.props.title && (React__default.createElement("div", { className: cx('uui-modal-title', 'uui-typography') }, this.props.title)),
|
|
1491
1518
|
this.props.children,
|
|
1492
1519
|
this.props.onClose && React__default.createElement(FlexSpacer, null),
|
|
@@ -1497,8 +1524,8 @@ class ModalHeader extends React__default.Component {
|
|
|
1497
1524
|
class ModalFooter extends React__default.Component {
|
|
1498
1525
|
render() {
|
|
1499
1526
|
return (React__default.createElement(FlexRow, { columnGap: this.props.columnGap || '12', cx: [
|
|
1500
|
-
css
|
|
1501
|
-
css
|
|
1527
|
+
css$$.root,
|
|
1528
|
+
css$$.modalFooter,
|
|
1502
1529
|
this.props.cx,
|
|
1503
1530
|
], borderTop: this.props.borderTop, padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
1504
1531
|
}
|
|
@@ -1642,6 +1669,7 @@ const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, i18n$1), { da
|
|
|
1642
1669
|
subtitle: 'We are trying to recover. Please wait.',
|
|
1643
1670
|
},
|
|
1644
1671
|
},
|
|
1672
|
+
supportLink: undefined,
|
|
1645
1673
|
} }));
|
|
1646
1674
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
1647
1675
|
|
|
@@ -1660,7 +1688,7 @@ var SvgNotificationHelpFill = function SvgNotificationHelpFill(props, ref) {
|
|
|
1660
1688
|
};
|
|
1661
1689
|
var ForwardRef$u = /*#__PURE__*/forwardRef(SvgNotificationHelpFill);
|
|
1662
1690
|
|
|
1663
|
-
var css$
|
|
1691
|
+
var css$_ = {"uui-typography":"A5tu7D","uuiTypography":"A5tu7D","hero-header":"L81i-W","heroHeader":"L81i-W","promo-header":"-lcIHf","promoHeader":"-lcIHf","uui-critical":"xDPYKS","uuiCritical":"xDPYKS","uui-info":"u0qM5m","uuiInfo":"u0qM5m","uui-success":"_9Wrvtc","uuiSuccess":"_9Wrvtc","uui-warning":"OJqCa5","uuiWarning":"OJqCa5","uui-highlight":"QnwZPs","uuiHighlight":"QnwZPs","uui-typography-size-12":"JOesrW","uuiTypographySize12":"JOesrW","uui-typography-size-14":"k-c5Tm","uuiTypographySize14":"k-c5Tm","uui-typography-size-16":"jPYlP-","uuiTypographySize16":"jPYlP-","root":"D7WfYa","icon-wrapper":"ZZuDTA","iconWrapper":"ZZuDTA","action-wrapper":"_2d1DXy","actionWrapper":"_2d1DXy","action-link":"YUzqpB","actionLink":"YUzqpB","close-icon":"qPgvcV","closeIcon":"qPgvcV","main-path":"DuLD-F","mainPath":"DuLD-F","content":"_7jLtE6","close-wrapper":"J6L7LQ","closeWrapper":"J6L7LQ","notification-wrapper":"aMcumV","notificationWrapper":"aMcumV","clear-button":"ghlGxR","clearButton":"ghlGxR"};
|
|
1664
1692
|
|
|
1665
1693
|
const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
1666
1694
|
const notificationCardNode = React__default.useRef(null);
|
|
@@ -1675,15 +1703,15 @@ const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
1675
1703
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
1676
1704
|
};
|
|
1677
1705
|
}, []);
|
|
1678
|
-
return (React__default.createElement("div", Object.assign({ role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
1679
|
-
React__default.createElement("div", { className: css$
|
|
1680
|
-
props.icon && (React__default.createElement("div", { className: css$
|
|
1706
|
+
return (React__default.createElement("div", Object.assign({ role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$_.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
1707
|
+
React__default.createElement("div", { className: css$_.mainPath },
|
|
1708
|
+
props.icon && (React__default.createElement("div", { className: css$_.iconWrapper },
|
|
1681
1709
|
React__default.createElement(IconContainer, { size: 24, icon: props.icon }))),
|
|
1682
|
-
React__default.createElement("div", { className: css$
|
|
1710
|
+
React__default.createElement("div", { className: css$_.content },
|
|
1683
1711
|
props.children,
|
|
1684
|
-
props.actions && (React__default.createElement("div", { className: css$
|
|
1685
|
-
props.onClose && (React__default.createElement("div", { className: css$
|
|
1686
|
-
React__default.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$
|
|
1712
|
+
props.actions && (React__default.createElement("div", { className: css$_.actionWrapper }, props.actions.map((action) => (React__default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$_.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
1713
|
+
props.onClose && (React__default.createElement("div", { className: css$_.closeWrapper },
|
|
1714
|
+
React__default.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$_.closeIcon }))))));
|
|
1687
1715
|
});
|
|
1688
1716
|
const WarningNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$z, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
1689
1717
|
const SuccessNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$A, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
@@ -1691,11 +1719,11 @@ const HintNotification = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
1691
1719
|
const ErrorNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$y, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
1692
1720
|
function ClearNotification() {
|
|
1693
1721
|
const uuiCtx = useUuiContext();
|
|
1694
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
1722
|
+
return (React__default.createElement("div", { className: cx(css$_.notificationWrapper, css$_.clearButton) },
|
|
1695
1723
|
React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
1696
1724
|
}
|
|
1697
1725
|
|
|
1698
|
-
var css$
|
|
1726
|
+
var css$Z = {"footer":"v5gs-u"};
|
|
1699
1727
|
|
|
1700
1728
|
class ConfirmationModal extends React.Component {
|
|
1701
1729
|
render() {
|
|
@@ -1707,7 +1735,7 @@ class ConfirmationModal extends React.Component {
|
|
|
1707
1735
|
React.createElement(ModalWindow, { width: 420 },
|
|
1708
1736
|
React.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
1709
1737
|
React.createElement(ScrollBars, null, bodyContent),
|
|
1710
|
-
React.createElement(ModalFooter, { cx: css$
|
|
1738
|
+
React.createElement(ModalFooter, { cx: css$Z.footer },
|
|
1711
1739
|
this.props.hideCancelButton || (React.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
1712
1740
|
React.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
1713
1741
|
}
|
|
@@ -1737,7 +1765,7 @@ function useReliableForceUpdate() {
|
|
|
1737
1765
|
return red[1];
|
|
1738
1766
|
}
|
|
1739
1767
|
|
|
1740
|
-
var css$
|
|
1768
|
+
var css$Y = {"root":"MZSjfy","timepicker-input":"Ywx66E","timepickerInput":"Ywx66E","ltr-always":"C697kO","ltrAlways":"C697kO"};
|
|
1741
1769
|
|
|
1742
1770
|
const uuiTimePicker = {
|
|
1743
1771
|
container: 'uui-timepicker-container',
|
|
@@ -1776,8 +1804,8 @@ function TimePickerBody(props) {
|
|
|
1776
1804
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
1777
1805
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
1778
1806
|
};
|
|
1779
|
-
return (React.createElement("div", Object.assign({ className: cx$1(css$
|
|
1780
|
-
React.createElement("div", { className: css$
|
|
1807
|
+
return (React.createElement("div", Object.assign({ className: cx$1(css$Y.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef }, props.rawProps),
|
|
1808
|
+
React.createElement("div", { className: css$Y.ltrAlways },
|
|
1781
1809
|
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1782
1810
|
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
1783
1811
|
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -1919,7 +1947,7 @@ function TimePicker(props) {
|
|
|
1919
1947
|
};
|
|
1920
1948
|
const renderInput = (inputProps) => {
|
|
1921
1949
|
var _a;
|
|
1922
|
-
return (React__default.createElement(TextInput, Object.assign({}, inputProps, { onClick: null, size: props.size || '36', isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$
|
|
1950
|
+
return (React__default.createElement(TextInput, Object.assign({}, inputProps, { onClick: null, size: props.size || '36', isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$Y.root, css$Y.timepickerInput, props.inputCx], value: state.inputValue, onValueChange: handleInputChange, onCancel: !props.disableClear && onClear, onFocus: handleFocus, onBlur: handleBlur, isDropdown: false, placeholder: props.placeholder ? props.placeholder : getFormat(), mode: props.mode || DEFAULT_MODE, rawProps: (_a = props.rawProps) === null || _a === void 0 ? void 0 : _a.input })));
|
|
1923
1951
|
};
|
|
1924
1952
|
const renderBody = (bodyProps) => {
|
|
1925
1953
|
var _a;
|
|
@@ -1930,19 +1958,19 @@ function TimePicker(props) {
|
|
|
1930
1958
|
return (React__default.createElement(Dropdown, { renderTarget: (targetProps) => (props.renderTarget ? props.renderTarget(targetProps) : renderInput(targetProps)), renderBody: (bodyProps) => !props.isDisabled && !props.isReadonly && renderBody(bodyProps), onValueChange: !props.isDisabled && !props.isReadonly ? onToggle : null, value: state.isOpen, modifiers: [{ name: 'offset', options: { offset: [0, 6] } }], forwardedRef: props.forwardedRef }));
|
|
1931
1959
|
}
|
|
1932
1960
|
|
|
1933
|
-
var css$
|
|
1961
|
+
var css$X = {"root":"g0x9XC"};
|
|
1934
1962
|
|
|
1935
1963
|
function applyInputAddonMods() {
|
|
1936
1964
|
return [
|
|
1937
|
-
css$
|
|
1965
|
+
css$X.root,
|
|
1938
1966
|
];
|
|
1939
1967
|
}
|
|
1940
1968
|
const InputAddon = /* @__PURE__ */withMods(InputAddon$1, applyInputAddonMods);
|
|
1941
1969
|
|
|
1942
|
-
var css$
|
|
1970
|
+
var css$W = {"root":"_5ewzvx"};
|
|
1943
1971
|
|
|
1944
1972
|
function applySliderMods() {
|
|
1945
|
-
return [css$
|
|
1973
|
+
return [css$W.root, 'uui-color-neutral'];
|
|
1946
1974
|
}
|
|
1947
1975
|
const Slider = /* @__PURE__ */withMods(Slider$1, applySliderMods);
|
|
1948
1976
|
|
|
@@ -1962,11 +1990,11 @@ var SvgStarFilled = function SvgStarFilled(props, ref) {
|
|
|
1962
1990
|
};
|
|
1963
1991
|
var ForwardRef$t = /*#__PURE__*/forwardRef(SvgStarFilled);
|
|
1964
1992
|
|
|
1965
|
-
var css$
|
|
1993
|
+
var css$V = {"root":"_5hi37a","tooltip":"GUohZm"};
|
|
1966
1994
|
|
|
1967
1995
|
function applyRatingMods(mods) {
|
|
1968
1996
|
return [
|
|
1969
|
-
css$
|
|
1997
|
+
css$V.root,
|
|
1970
1998
|
`uui-size-${mods.size || settings.sizes.defaults.rating}`,
|
|
1971
1999
|
];
|
|
1972
2000
|
}
|
|
@@ -2104,7 +2132,7 @@ const getNextYearsList = (currentDate) => {
|
|
|
2104
2132
|
return currentDate.add(16, 'year');
|
|
2105
2133
|
};
|
|
2106
2134
|
|
|
2107
|
-
var css$
|
|
2135
|
+
var css$U = {"root":"IKlpq1","container":"_4OuiG1"};
|
|
2108
2136
|
|
|
2109
2137
|
const uuiHeader = {
|
|
2110
2138
|
container: 'uui-datepicker-header-container',
|
|
@@ -2181,21 +2209,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2181
2209
|
}, [view, month]);
|
|
2182
2210
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2183
2211
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2184
|
-
return (React.createElement("div", { className: cx(css$
|
|
2212
|
+
return (React.createElement("div", { className: cx(css$U.root, uuiHeader.container, cx) },
|
|
2185
2213
|
React.createElement("header", { className: uuiHeader.headerNav },
|
|
2186
2214
|
React.createElement(Button, { icon: navIconLeft || ForwardRef$w, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2187
2215
|
React.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2188
2216
|
React.createElement(Button, { icon: navIconRight || ForwardRef$v, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2189
2217
|
}
|
|
2190
2218
|
|
|
2191
|
-
var css$
|
|
2219
|
+
var css$T = {"uui-typography":"ukdbDq","uuiTypography":"ukdbDq","hero-header":"fofNhS","heroHeader":"fofNhS","promo-header":"_0TJIS4","promoHeader":"_0TJIS4","uui-critical":"vF2pMi","uuiCritical":"vF2pMi","uui-info":"QPuwnb","uuiInfo":"QPuwnb","uui-success":"OEMrlw","uuiSuccess":"OEMrlw","uui-warning":"HhTDIE","uuiWarning":"HhTDIE","uui-highlight":"n-GkuB","uuiHighlight":"n-GkuB","uui-typography-size-12":"L-L-OZ","uuiTypographySize12":"L-L-OZ","uui-typography-size-14":"_1Kl-D3","uuiTypographySize14":"_1Kl-D3","uui-typography-size-16":"IhyvaD","uuiTypographySize16":"IhyvaD","root":"hrQw-Q"};
|
|
2192
2220
|
|
|
2193
2221
|
function applyDateSelectionMods() {
|
|
2194
|
-
return [css$
|
|
2222
|
+
return [css$T.root, `uui-size-${settings.sizes.defaults.datePicker}`];
|
|
2195
2223
|
}
|
|
2196
2224
|
const Calendar = /* @__PURE__ */withMods(Calendar$1, applyDateSelectionMods);
|
|
2197
2225
|
|
|
2198
|
-
var css$
|
|
2226
|
+
var css$S = {"uui-typography":"_0BWOnO","uuiTypography":"_0BWOnO","hero-header":"raqG7r","heroHeader":"raqG7r","promo-header":"tjN37K","promoHeader":"tjN37K","uui-critical":"D86bJe","uuiCritical":"D86bJe","uui-info":"_16yHJT","uuiInfo":"_16yHJT","uui-success":"_6aR253","uuiSuccess":"_6aR253","uui-warning":"_6PGLwV","uuiWarning":"_6PGLwV","uui-highlight":"uPDouR","uuiHighlight":"uPDouR","uui-typography-size-12":"CSZUAM","uuiTypographySize12":"CSZUAM","uui-typography-size-14":"_8EiyRK","uuiTypographySize14":"_8EiyRK","uui-typography-size-16":"H71U2a","uuiTypographySize16":"H71U2a","root":"_69hvHb"};
|
|
2199
2227
|
|
|
2200
2228
|
const uuiDatePickerBody = {
|
|
2201
2229
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2239,7 +2267,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2239
2267
|
}
|
|
2240
2268
|
};
|
|
2241
2269
|
return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(uuiDatePickerBodyBase.container, `uui-size-${settings.sizes.defaults.datePicker}`, classes) }, rawProps),
|
|
2242
|
-
React__default.createElement("div", { className: cx$1(css$
|
|
2270
|
+
React__default.createElement("div", { className: cx$1(css$S.root, uuiDatePickerBody.wrapper) },
|
|
2243
2271
|
React__default.createElement(DatePickerHeader, { value: {
|
|
2244
2272
|
view,
|
|
2245
2273
|
month,
|
|
@@ -2326,7 +2354,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2326
2354
|
}
|
|
2327
2355
|
const DatePicker = /* @__PURE__ */React__default.forwardRef(DatePickerComponent);
|
|
2328
2356
|
|
|
2329
|
-
var css$
|
|
2357
|
+
var css$R = {"uui-typography":"MEYtbQ","uuiTypography":"MEYtbQ","hero-header":"p8HJo6","heroHeader":"p8HJo6","promo-header":"FPA5EF","promoHeader":"FPA5EF","uui-critical":"yHSQYb","uuiCritical":"yHSQYb","uui-info":"rBUs7Q","uuiInfo":"rBUs7Q","uui-success":"TFP57v","uuiSuccess":"TFP57v","uui-warning":"FR19rr","uuiWarning":"FR19rr","uui-highlight":"_8XmFSS","uuiHighlight":"_8XmFSS","uui-typography-size-12":"wIXixZ","uuiTypographySize12":"wIXixZ","uui-typography-size-14":"jQzdBc","uuiTypographySize14":"jQzdBc","uui-typography-size-16":"p8Gijh","uuiTypographySize16":"p8Gijh","date-input":"_1UznQZ","dateInput":"_1UznQZ","root":"_1W8igF","separator":"F3aMlS","mode-form":"qclRuX","modeForm":"qclRuX","mode-cell":"TfkzQo","modeCell":"TfkzQo"};
|
|
2330
2358
|
|
|
2331
2359
|
const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, id, cx: classes, }, ref) => {
|
|
2332
2360
|
const [inputValue, setInputValue] = useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2360,15 +2388,15 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
|
|
|
2360
2388
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2361
2389
|
return (
|
|
2362
2390
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
2363
|
-
React__default.createElement("div", { ref: ref, className: cx$1(`uui-size-${size || settings.sizes.defaults.rangeDatePicker}`, 'uui-range-date-picker', classes, css$
|
|
2364
|
-
React__default.createElement(TextInput, { icon: systemIcons.calendar, cx: cx$1(css$
|
|
2365
|
-
React__default.createElement("div", { className: css$
|
|
2366
|
-
React__default.createElement(TextInput, { cx: cx$1(css$
|
|
2391
|
+
React__default.createElement("div", { ref: ref, className: cx$1(`uui-size-${size || settings.sizes.defaults.rangeDatePicker}`, 'uui-range-date-picker', classes, css$R.root, isDisabled && uuiMod.disabled, isReadonly && uuiMod.readonly, isInvalid && uuiMod.invalid, inFocus && uuiMod.focus), onKeyDown: onKeyDown },
|
|
2392
|
+
React__default.createElement(TextInput, { icon: systemIcons.calendar, cx: cx$1(css$R.dateInput, inFocus === 'from' && uuiMod.focus), size: size || settings.sizes.defaults.rangeDatePicker, placeholder: getPlaceholder ? getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: inputValue.from || undefined, onValueChange: (v) => onInputChange(v || '', 'from'), onFocus: (event) => handleFocus(event, 'from'), onBlur: (event) => handleBlur(event, 'from'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps === null || rawProps === void 0 ? void 0 : rawProps.from, onClick: onClick, onKeyDown: onInputKeyDown, id: id }),
|
|
2393
|
+
React__default.createElement("div", { className: css$R.separator }),
|
|
2394
|
+
React__default.createElement(TextInput, { cx: cx$1(css$R.dateInput, inFocus === 'to' && uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.sizes.defaults.rangeDatePicker, value: inputValue.to || undefined, onCancel: clearAllowed ? () => {
|
|
2367
2395
|
onValueChange(defaultRangeValue);
|
|
2368
2396
|
} : undefined, onValueChange: (v) => onInputChange(v || '', 'to'), onFocus: (e) => handleFocus(e, 'to'), onBlur: (e) => handleBlur(e, 'to'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps === null || rawProps === void 0 ? void 0 : rawProps.to, onClick: onClick, onKeyDown: onInputKeyDown })));
|
|
2369
2397
|
});
|
|
2370
2398
|
|
|
2371
|
-
var css$
|
|
2399
|
+
var css$Q = {"uui-typography":"UfqYIe","uuiTypography":"UfqYIe","hero-header":"srO50g","heroHeader":"srO50g","promo-header":"NO-IpH","promoHeader":"NO-IpH","uui-critical":"_8LISMi","uuiCritical":"_8LISMi","uui-info":"dBWGtp","uuiInfo":"dBWGtp","uui-success":"vJGk3F","uuiSuccess":"vJGk3F","uui-warning":"w2vLvZ","uuiWarning":"w2vLvZ","uui-highlight":"iRR9yk","uuiHighlight":"iRR9yk","uui-typography-size-12":"-cBCkf","uuiTypographySize12":"-cBCkf","uui-typography-size-14":"_6461Rg","uuiTypographySize14":"_6461Rg","uui-typography-size-16":"fZvbX7","uuiTypographySize16":"fZvbX7","root":"_7-3BPP"};
|
|
2372
2400
|
|
|
2373
2401
|
const uuiPresets = {
|
|
2374
2402
|
container: 'uui-presets-container',
|
|
@@ -2379,12 +2407,12 @@ const getPresets = (presets) => {
|
|
|
2379
2407
|
return Object.keys(presets).map((key) => (Object.assign(Object.assign({}, presets[key].getRange()), { name: presets[key].name, key }))).sort((a, b) => a.order - b.order);
|
|
2380
2408
|
};
|
|
2381
2409
|
function CalendarPresets(props) {
|
|
2382
|
-
return (React.createElement("div", Object.assign({ ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$
|
|
2410
|
+
return (React.createElement("div", Object.assign({ ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$Q.root, props.cx) }, props.rawProps),
|
|
2383
2411
|
React.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2384
2412
|
getPresets(props.presets).map((item) => (React.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: "24" })))));
|
|
2385
2413
|
}
|
|
2386
2414
|
|
|
2387
|
-
var css$
|
|
2415
|
+
var css$P = {"uui-typography":"yZH0GN","uuiTypography":"yZH0GN","hero-header":"FHA4XR","heroHeader":"FHA4XR","promo-header":"_8-1z-r","promoHeader":"_8-1z-r","uui-critical":"cZBZ4M","uuiCritical":"cZBZ4M","uui-info":"DW75Wy","uuiInfo":"DW75Wy","uui-success":"rX9YL7","uuiSuccess":"rX9YL7","uui-warning":"ji3xE7","uuiWarning":"ji3xE7","uui-highlight":"pSo0ry","uuiHighlight":"pSo0ry","uui-typography-size-12":"EGOpXU","uuiTypographySize12":"EGOpXU","uui-typography-size-14":"Hct3C-","uuiTypographySize14":"Hct3C-","uui-typography-size-16":"GF9YN4","uuiTypographySize16":"GF9YN4","root":"-ILCul","container":"USeFWr","day-selection":"kd1-IV","daySelection":"kd1-IV","from-picker":"IK7Hp6","fromPicker":"IK7Hp6","to-picker":"ftcAfy","toPicker":"ftcAfy","bodes-wrapper":"UlgAo-","bodesWrapper":"UlgAo-","blocker":"xWRQgu"};
|
|
2388
2416
|
|
|
2389
2417
|
const uuiRangeDatePickerBody = {
|
|
2390
2418
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -2525,21 +2553,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
2525
2553
|
});
|
|
2526
2554
|
}, presets: presets })));
|
|
2527
2555
|
};
|
|
2528
|
-
return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(css$
|
|
2529
|
-
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
2556
|
+
return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(css$P.root, uuiDatePickerBodyBase.container, props.cx) }, props.rawProps),
|
|
2557
|
+
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$P.daySelection, css$P.container], alignItems: "top" },
|
|
2530
2558
|
React__default.createElement(FlexCell, { width: "auto" },
|
|
2531
2559
|
React__default.createElement(FlexRow, null,
|
|
2532
|
-
React__default.createElement(FlexRow, { cx: css$
|
|
2533
|
-
React__default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: cx$1(css$
|
|
2560
|
+
React__default.createElement(FlexRow, { cx: css$P.bodesWrapper, alignItems: "top" },
|
|
2561
|
+
React__default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: cx$1(css$P.fromPicker) }, from, { onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
|
|
2534
2562
|
setMonth(m);
|
|
2535
2563
|
}, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' })),
|
|
2536
|
-
React__default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: cx$1(css$
|
|
2564
|
+
React__default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: cx$1(css$P.toPicker) }, to, { onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
|
|
2537
2565
|
setMonth(m.subtract(1, 'month'));
|
|
2538
2566
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' })),
|
|
2539
2567
|
view !== 'DAY_SELECTION' && (React__default.createElement("div", { style: {
|
|
2540
2568
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
2541
2569
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
2542
|
-
}, className: css$
|
|
2570
|
+
}, className: css$P.blocker }))),
|
|
2543
2571
|
props.presets && renderPresets(props.presets)),
|
|
2544
2572
|
props.renderFooter && props.renderFooter()))));
|
|
2545
2573
|
}
|
|
@@ -2559,7 +2587,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
2559
2587
|
return [cx$1(inRange && uuiRangeDatePickerBody.inRange, isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper, !inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper, isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper, !inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper, (dayValue === fromValue || dayValue === toValue) && uuiDaySelection.selectedDay)];
|
|
2560
2588
|
};
|
|
2561
2589
|
|
|
2562
|
-
var css$
|
|
2590
|
+
var css$O = {"dropdown-container":"A1mRtn","dropdownContainer":"A1mRtn"};
|
|
2563
2591
|
|
|
2564
2592
|
const modifiers = [{
|
|
2565
2593
|
name: 'offset',
|
|
@@ -2606,7 +2634,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2606
2634
|
};
|
|
2607
2635
|
const renderBody = (renderProps) => {
|
|
2608
2636
|
var _a;
|
|
2609
|
-
return (React__default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx(css$
|
|
2637
|
+
return (React__default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx(css$O.dropdownContainer), shards: [targetRef], returnFocus: (node) => {
|
|
2610
2638
|
console.log('lock', node);
|
|
2611
2639
|
return true;
|
|
2612
2640
|
} }),
|
|
@@ -2636,30 +2664,30 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2636
2664
|
}
|
|
2637
2665
|
const RangeDatePicker = /* @__PURE__ */React__default.forwardRef(RangeDatePickerComponent);
|
|
2638
2666
|
|
|
2639
|
-
var css$
|
|
2667
|
+
var css$N = {"root":"pJK5Jq","blocker":"zVrjNh","marker":"hwXqJt","top":"BLseOz","bottom":"PBzzta","left":"r7cKgi","right":"mzfXf4","inside":"aVNP1X"};
|
|
2640
2668
|
|
|
2641
2669
|
function DropMarker(props) {
|
|
2642
2670
|
return props.isDndInProgress
|
|
2643
2671
|
? (React.createElement(React.Fragment, null,
|
|
2644
|
-
props.enableBlocker && React.createElement("div", { className: css$
|
|
2672
|
+
props.enableBlocker && React.createElement("div", { className: css$N.blocker }),
|
|
2645
2673
|
React.createElement("div", { className: cx([
|
|
2646
|
-
css$
|
|
2647
|
-
css$
|
|
2648
|
-
css$
|
|
2674
|
+
css$N.root,
|
|
2675
|
+
css$N.marker,
|
|
2676
|
+
css$N[props.position],
|
|
2649
2677
|
props === null || props === void 0 ? void 0 : props.cx,
|
|
2650
2678
|
]) })))
|
|
2651
2679
|
: null;
|
|
2652
2680
|
}
|
|
2653
2681
|
|
|
2654
|
-
var css$
|
|
2682
|
+
var css$M = {"root":"evhtvL","line-height":"_184w2a","lineHeight":"_184w2a","font-size":"WlU92J","fontSize":"WlU92J"};
|
|
2655
2683
|
|
|
2656
2684
|
function applyTextMods(mods) {
|
|
2657
2685
|
return [
|
|
2658
|
-
css$
|
|
2686
|
+
css$M.root,
|
|
2659
2687
|
'uui-text',
|
|
2660
2688
|
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
2661
|
-
(mods.size !== 'none' || mods.lineHeight) && css$
|
|
2662
|
-
(mods.size !== 'none' || mods.fontSize) && css$
|
|
2689
|
+
(mods.size !== 'none' || mods.lineHeight) && css$M.lineHeight,
|
|
2690
|
+
(mods.size !== 'none' || mods.fontSize) && css$M.fontSize,
|
|
2663
2691
|
`uui-color-${mods.color || 'primary'}`,
|
|
2664
2692
|
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
2665
2693
|
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
@@ -2676,7 +2704,7 @@ const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props)
|
|
|
2676
2704
|
};
|
|
2677
2705
|
});
|
|
2678
2706
|
|
|
2679
|
-
var css$
|
|
2707
|
+
var css$L = {"root":"NH88VS","loading-word":"I9KNWr","loadingWord":"I9KNWr","animated-loading":"CBCaFX","animatedLoading":"CBCaFX","skeleton_loading":"Eu3w87","skeletonLoading":"Eu3w87"};
|
|
2680
2708
|
|
|
2681
2709
|
const TextPlaceholder = (props) => {
|
|
2682
2710
|
const pattern = ' ';
|
|
@@ -2688,14 +2716,14 @@ const TextPlaceholder = (props) => {
|
|
|
2688
2716
|
}
|
|
2689
2717
|
return words;
|
|
2690
2718
|
}, [props.wordsCount]);
|
|
2691
|
-
return (React.createElement("div", Object.assign({ "aria-busy": true, className: cx(css$
|
|
2692
|
-
props.cx, css$
|
|
2719
|
+
return (React.createElement("div", Object.assign({ "aria-busy": true, className: cx(css$L.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React.createElement("span", { key: index, className: cx([
|
|
2720
|
+
props.cx, css$L.loadingWord, !props.isNotAnimated && css$L.animatedLoading,
|
|
2693
2721
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
2694
2722
|
};
|
|
2695
2723
|
|
|
2696
2724
|
const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
2697
2725
|
|
|
2698
|
-
var css$
|
|
2726
|
+
var css$K = {"uui-typography":"y-rFup","uuiTypography":"y-rFup","hero-header":"ZPE5wM","heroHeader":"ZPE5wM","promo-header":"YnoVWn","promoHeader":"YnoVWn","uui-critical":"N8yexm","uuiCritical":"N8yexm","uui-info":"W-HTf-","uuiInfo":"W-HTf-","uui-success":"DIIv1k","uuiSuccess":"DIIv1k","uui-warning":"F2Iqk4","uuiWarning":"F2Iqk4","uui-highlight":"KMB0Zf","uuiHighlight":"KMB0Zf","uui-typography-size-12":"_6SbfKb","uuiTypographySize12":"_6SbfKb","uui-typography-size-14":"Ad9b2k","uuiTypographySize14":"Ad9b2k","uui-typography-size-16":"UxTVQ2","uuiTypographySize16":"UxTVQ2","modal":"-Zk1C1","search-wrapper":"bylDi3","searchWrapper":"bylDi3","no-data":"-Kwjt-","noData":"-Kwjt-","type-search-to-load-size-24":"mYSL16","typeSearchToLoadSize24":"mYSL16"};
|
|
2699
2727
|
|
|
2700
2728
|
class DataPickerBody extends PickerBodyBase {
|
|
2701
2729
|
constructor() {
|
|
@@ -2714,7 +2742,7 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
2714
2742
|
});
|
|
2715
2743
|
}
|
|
2716
2744
|
if (this.props.minCharsToSearch && search.length < this.props.minCharsToSearch) {
|
|
2717
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
2745
|
+
return (React__default.createElement(FlexCell$1, { cx: css$K.noData, grow: 1, textAlign: "center" },
|
|
2718
2746
|
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
2719
2747
|
}
|
|
2720
2748
|
if (this.props.rows.length === 0) {
|
|
@@ -2729,21 +2757,21 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
2729
2757
|
}
|
|
2730
2758
|
// Default no record found message for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
2731
2759
|
// TODO: make separate messages for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
2732
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
2760
|
+
return (React__default.createElement(FlexCell$1, { cx: css$K.noData, grow: 1, textAlign: "center" },
|
|
2733
2761
|
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
2734
2762
|
}
|
|
2735
2763
|
}
|
|
2736
2764
|
render() {
|
|
2737
2765
|
const searchSize = this.getSearchSize();
|
|
2738
2766
|
return (React__default.createElement(React__default.Fragment, null,
|
|
2739
|
-
this.showSearch() && (React__default.createElement("div", { key: "search", className: css$
|
|
2767
|
+
this.showSearch() && (React__default.createElement("div", { key: "search", className: css$K.searchWrapper },
|
|
2740
2768
|
React__default.createElement(FlexCell$1, { grow: 1 },
|
|
2741
2769
|
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, rawProps: { dir: 'auto' } }))))),
|
|
2742
|
-
React__default.createElement(FlexRow, { key: "body", cx: cx$1('uui-picker_input-body', css$
|
|
2770
|
+
React__default.createElement(FlexRow, { key: "body", cx: cx$1('uui-picker_input-body', css$K[this.props.editMode], css$K[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight, maxWidth: this.props.maxWidth } } }, this.props.rows.length > 0 ? (React__default.createElement(VirtualList, Object.assign({}, this.lens.toProps(), { rows: this.props.rows, rawProps: this.props.rawProps, rowsCount: this.props.rowsCount, isLoading: this.props.isReloading }))) : this.renderEmpty())));
|
|
2743
2771
|
}
|
|
2744
2772
|
}
|
|
2745
2773
|
|
|
2746
|
-
var css$
|
|
2774
|
+
var css$J = {"footer":"TgJGGD"};
|
|
2747
2775
|
|
|
2748
2776
|
function DataPickerFooterImpl(props) {
|
|
2749
2777
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
@@ -2757,7 +2785,7 @@ function DataPickerFooterImpl(props) {
|
|
|
2757
2785
|
const isSearching = search === null || search === void 0 ? void 0 : search.length;
|
|
2758
2786
|
const hideFooter = isSearchTooShort || rowsCount === 0 || isSearching || (isSinglePicker && props.disableClear);
|
|
2759
2787
|
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
2760
|
-
return !hideFooter && (React__default.createElement(FlexRow, { cx: css$
|
|
2788
|
+
return !hideFooter && (React__default.createElement(FlexRow, { cx: css$J.footer },
|
|
2761
2789
|
!isSinglePicker && (React__default.createElement(Switch, { size: settings.sizes.pickerInput.body.dropdown.footer.switch[props.size], value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
2762
2790
|
React__default.createElement(FlexSpacer, null),
|
|
2763
2791
|
React__default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
@@ -2768,13 +2796,13 @@ function DataPickerFooterImpl(props) {
|
|
|
2768
2796
|
}
|
|
2769
2797
|
const DataPickerFooter = /* @__PURE__ */React__default.memo(DataPickerFooterImpl);
|
|
2770
2798
|
|
|
2771
|
-
var css$
|
|
2799
|
+
var css$I = {"header":"WYWC9u","title":"IqVcjn","close":"BcGvT1"};
|
|
2772
2800
|
|
|
2773
2801
|
const DataPickerHeaderImpl = (props) => {
|
|
2774
2802
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
2775
|
-
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$
|
|
2776
|
-
React__default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$
|
|
2777
|
-
React__default.createElement(IconButton, { icon: ForwardRef$R, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$
|
|
2803
|
+
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$I.header },
|
|
2804
|
+
React__default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$I.title }, title),
|
|
2805
|
+
React__default.createElement(IconButton, { icon: ForwardRef$R, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$I.close })));
|
|
2778
2806
|
};
|
|
2779
2807
|
const DataPickerHeader = /* @__PURE__ */React__default.memo(DataPickerHeaderImpl);
|
|
2780
2808
|
|
|
@@ -2793,7 +2821,7 @@ var SvgNotificationDoneFill = function SvgNotificationDoneFill(props, ref) {
|
|
|
2793
2821
|
};
|
|
2794
2822
|
var ForwardRef$s = /*#__PURE__*/forwardRef(SvgNotificationDoneFill);
|
|
2795
2823
|
|
|
2796
|
-
var css$
|
|
2824
|
+
var css$H = {"uui-typography":"K00gTh","uuiTypography":"K00gTh","hero-header":"CWgu3z","heroHeader":"CWgu3z","promo-header":"CLSAcN","promoHeader":"CLSAcN","uui-critical":"MVa9oJ","uuiCritical":"MVa9oJ","uui-info":"EzEBcf","uuiInfo":"EzEBcf","uui-success":"og104M","uuiSuccess":"og104M","uui-warning":"eaVsoi","uuiWarning":"eaVsoi","uui-highlight":"uh7nS0","uuiHighlight":"uh7nS0","uui-typography-size-12":"sqpz-f","uuiTypographySize12":"sqpz-f","uui-typography-size-14":"b72WqI","uuiTypographySize14":"b72WqI","uui-typography-size-16":"_2-uNs0","uuiTypographySize16":"_2-uNs0","root":"u0MDJ4","align-widgets-top":"_2kfsaO","alignWidgetsTop":"_2kfsaO","align-widgets-center":"S0bFue","alignWidgetsCenter":"S0bFue","icon-container":"lUSKP5","iconContainer":"lUSKP5","loading-cell":"Ghljvg","loadingCell":"Ghljvg","content-wrapper":"ikmInM","contentWrapper":"ikmInM","render-item":"CvnlzK","renderItem":"CvnlzK","icon-wrapper":"HOg4tb","iconWrapper":"HOg4tb","icon-default":"VZc2aD","iconDefault":"VZc2aD","selected-mark":"mlj-I8","selectedMark":"mlj-I8"};
|
|
2797
2825
|
|
|
2798
2826
|
function DataPickerCell(props) {
|
|
2799
2827
|
const ref = React.useRef();
|
|
@@ -2801,28 +2829,28 @@ function DataPickerCell(props) {
|
|
|
2801
2829
|
if (props.rowProps.isLoading) {
|
|
2802
2830
|
content = (
|
|
2803
2831
|
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
2804
|
-
React.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size], cx: css$
|
|
2832
|
+
React.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size], cx: css$H.loadingCell },
|
|
2805
2833
|
React.createElement(TextPlaceholder, null)));
|
|
2806
2834
|
}
|
|
2807
2835
|
else if (props.rowProps.isUnknown) {
|
|
2808
2836
|
content = (React.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size] }, "Unknown"));
|
|
2809
2837
|
}
|
|
2810
2838
|
else {
|
|
2811
|
-
content = (React.createElement("div", { key: `${props.rowProps.id}`, className: css$
|
|
2839
|
+
content = (React.createElement("div", { key: `${props.rowProps.id}`, className: css$H.renderItem },
|
|
2812
2840
|
props.renderItem(props.rowProps.value, props.rowProps),
|
|
2813
2841
|
React.createElement(FlexSpacer, null),
|
|
2814
|
-
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React.createElement("div", { className: cx$1(css$
|
|
2815
|
-
React.createElement(IconContainer, { size: settings.sizes.pickerInput.body.dropdown.row.cell.icon[props.size], icon: settings.sizes.pickerInput.body.dropdown.row.cell.isBoldSelectionIcon[props.size] ? ForwardRef$s : ForwardRef$P, cx: props.rowProps.isChildrenSelected ? css$
|
|
2842
|
+
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React.createElement("div", { className: cx$1(css$H.iconWrapper, uuiMod.selected) },
|
|
2843
|
+
React.createElement(IconContainer, { size: settings.sizes.pickerInput.body.dropdown.row.cell.icon[props.size], icon: settings.sizes.pickerInput.body.dropdown.row.cell.isBoldSelectionIcon[props.size] ? ForwardRef$s : ForwardRef$P, cx: props.rowProps.isChildrenSelected ? css$H.iconDefault : css$H.selectedMark, rawProps: { 'aria-label': props.rowProps.isChildrenSelected
|
|
2816
2844
|
? 'Child is selected'
|
|
2817
2845
|
: 'Selected' } })))));
|
|
2818
2846
|
}
|
|
2819
|
-
const getWrappedContent = () => (React.createElement("div", { className: css$
|
|
2847
|
+
const getWrappedContent = () => (React.createElement("div", { className: css$H.contentWrapper }, content));
|
|
2820
2848
|
return (React.createElement(FlexCell, { ref: ref, grow: 1, width: 0, minWidth: 0, rawProps: { role: 'cell' }, cx: [
|
|
2821
|
-
css$
|
|
2849
|
+
css$H.root,
|
|
2822
2850
|
props.cx,
|
|
2823
2851
|
'data-picker-cell',
|
|
2824
2852
|
props.size && `uui-size-${props.size}`,
|
|
2825
|
-
css$
|
|
2853
|
+
css$H[`align-widgets-${props.alignActions || 'top'}`],
|
|
2826
2854
|
], style: props.padding && {
|
|
2827
2855
|
'--uui-data_picker_cell-horizontal-padding': `${props.padding}px`,
|
|
2828
2856
|
} },
|
|
@@ -2830,7 +2858,7 @@ function DataPickerCell(props) {
|
|
|
2830
2858
|
getWrappedContent()));
|
|
2831
2859
|
}
|
|
2832
2860
|
|
|
2833
|
-
var css$
|
|
2861
|
+
var css$G = {"uui-typography":"-EwErA","uuiTypography":"-EwErA","hero-header":"w33u-G","heroHeader":"w33u-G","promo-header":"u4T-39","promoHeader":"u4T-39","uui-critical":"BbYYm6","uuiCritical":"BbYYm6","uui-info":"hBPUIo","uuiInfo":"hBPUIo","uui-success":"G67--9","uuiSuccess":"G67--9","uui-warning":"PA5wmv","uuiWarning":"PA5wmv","uui-highlight":"p-HEC4","uuiHighlight":"p-HEC4","uui-typography-size-12":"_0HLnjQ","uuiTypographySize12":"_0HLnjQ","uui-typography-size-14":"eMH33m","uuiTypographySize14":"eMH33m","uui-typography-size-16":"ubYvBY","uuiTypographySize16":"ubYvBY","picker-row":"qAxx-u","pickerRow":"qAxx-u"};
|
|
2834
2862
|
|
|
2835
2863
|
class DataPickerRow extends React.Component {
|
|
2836
2864
|
constructor() {
|
|
@@ -2840,20 +2868,20 @@ class DataPickerRow extends React.Component {
|
|
|
2840
2868
|
};
|
|
2841
2869
|
}
|
|
2842
2870
|
render() {
|
|
2843
|
-
return (React.createElement(DataPickerRow$1, Object.assign({}, this.props, { cx: [css$
|
|
2871
|
+
return (React.createElement(DataPickerRow$1, Object.assign({}, this.props, { cx: [css$G.pickerRow, this.props.cx], renderContent: this.renderContent })));
|
|
2844
2872
|
}
|
|
2845
2873
|
}
|
|
2846
2874
|
|
|
2847
|
-
var css$
|
|
2875
|
+
var css$F = {"uui-typography":"aS7FW6","uuiTypography":"aS7FW6","hero-header":"_7GquDI","heroHeader":"_7GquDI","promo-header":"HwYvvy","promoHeader":"HwYvvy","uui-critical":"URvWOo","uuiCritical":"URvWOo","uui-info":"DTHFNn","uuiInfo":"DTHFNn","uui-success":"ObiCMg","uuiSuccess":"ObiCMg","uui-warning":"gq31NT","uuiWarning":"gq31NT","uui-highlight":"pcw7MA","uuiHighlight":"pcw7MA","uui-typography-size-12":"m5Y0i0","uuiTypographySize12":"m5Y0i0","uui-typography-size-14":"j1neW9","uuiTypographySize14":"j1neW9","uui-typography-size-16":"Br4rYQ","uuiTypographySize16":"Br4rYQ","done":"-kYvHL","container":"nIStzk"};
|
|
2848
2876
|
|
|
2849
2877
|
const PickerBodyMobileView = (props) => {
|
|
2850
2878
|
const isMobileView = isMobile();
|
|
2851
2879
|
const maxWidth = isMobileView ? 'auto' : props.maxWidth;
|
|
2852
2880
|
const maxHeight = isMobileView ? 'auto' : props.maxHeight;
|
|
2853
|
-
return (React__default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$
|
|
2881
|
+
return (React__default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$F.container, props.cx], autoFocus: true }),
|
|
2854
2882
|
isMobileView && React__default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
|
|
2855
2883
|
props.children,
|
|
2856
|
-
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$
|
|
2884
|
+
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$F.done, size: settings.sizes.pickerInput.body.mobile.footer.linkButton })));
|
|
2857
2885
|
};
|
|
2858
2886
|
|
|
2859
2887
|
var _path$r, _path2$4;
|
|
@@ -2878,7 +2906,7 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2878
2906
|
};
|
|
2879
2907
|
var ForwardRef$r = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
|
|
2880
2908
|
|
|
2881
|
-
var css$
|
|
2909
|
+
var css$E = {"uui-typography":"vqv4WY","uuiTypography":"vqv4WY","hero-header":"N0UiFq","heroHeader":"N0UiFq","promo-header":"zWFjLe","promoHeader":"zWFjLe","uui-critical":"kB-H6r","uuiCritical":"kB-H6r","uui-info":"o4gmd1","uuiInfo":"o4gmd1","uui-success":"rjSAYb","uuiSuccess":"rjSAYb","uui-warning":"b5t-5g","uuiWarning":"b5t-5g","uui-highlight":"xEc9YH","uuiHighlight":"xEc9YH","uui-typography-size-12":"OacvH5","uuiTypographySize12":"OacvH5","uui-typography-size-14":"V2SBvN","uuiTypographySize14":"V2SBvN","uui-typography-size-16":"Zdm-BC","uuiTypographySize16":"Zdm-BC","sub-header-wrapper":"_9l1Eyu","subHeaderWrapper":"_9l1Eyu","switch":"w-ken5","no-found-modal-container":"XNM9Om","noFoundModalContainer":"XNM9Om","no-found-modal-container-icon":"gwD15N","noFoundModalContainerIcon":"gwD15N","no-found-modal-container-text":"zf3eye","noFoundModalContainerText":"zf3eye"};
|
|
2882
2910
|
|
|
2883
2911
|
const mergeHighlightRanges = (ranges) => {
|
|
2884
2912
|
const mergedRanges = [];
|
|
@@ -2945,7 +2973,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
2945
2973
|
return getDecoratedText(str, ranges);
|
|
2946
2974
|
};
|
|
2947
2975
|
|
|
2948
|
-
var css$
|
|
2976
|
+
var css$D = {"root":"tEDNpE","column-gap":"ewMnYD","columnGap":"ewMnYD","multiline":"pY-mW8","text":"WyX3dn"};
|
|
2949
2977
|
|
|
2950
2978
|
function PickerItem(props) {
|
|
2951
2979
|
var _a;
|
|
@@ -2955,13 +2983,13 @@ function PickerItem(props) {
|
|
|
2955
2983
|
const { search } = (_a = props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2956
2984
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(props.title, search) : props.title;
|
|
2957
2985
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(props.subtitle, search) : props.subtitle;
|
|
2958
|
-
return (React.createElement(FlexCell, { width: "auto", cx: [css$
|
|
2959
|
-
React.createElement(FlexRow, { size: itemSize, cx: [isMultiline && css$
|
|
2986
|
+
return (React.createElement(FlexCell, { width: "auto", cx: [css$D.root, 'uui-typography', cx] },
|
|
2987
|
+
React.createElement(FlexRow, { size: itemSize, cx: [isMultiline && css$D.multiline, css$D.columnGap], rawProps: { style: { '--uui-picker_item-vertical-padding': `${settings.sizes.pickerInput.body.dropdown.row.cell.item.verticalPadding[itemSize]}px` } } },
|
|
2960
2988
|
avatarUrl && (React.createElement(Avatar, { isLoading: isLoading, img: avatarUrl, size: getAvatarSize(itemSize, isMultiline).toString() })),
|
|
2961
2989
|
icon && React.createElement(IconContainer, { icon: icon }),
|
|
2962
2990
|
React.createElement(FlexCell, { width: "auto" },
|
|
2963
|
-
title && (React.createElement(Text, { size: itemSize, cx: css$
|
|
2964
|
-
subtitle && (React.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$
|
|
2991
|
+
title && (React.createElement(Text, { size: itemSize, cx: css$D.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React.createElement(TextPlaceholder, { wordsCount: 2 }) : title)),
|
|
2992
|
+
subtitle && (React.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$D.text }, isLoading ? React.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
2965
2993
|
}
|
|
2966
2994
|
function getAvatarSize(size, isMultiline) {
|
|
2967
2995
|
return settings.sizes.pickerInput.body.dropdown.row.cell.item.avatar[isMultiline ? 'multiline' : 'rest'][size];
|
|
@@ -2995,17 +3023,17 @@ function PickerModal(props) {
|
|
|
2995
3023
|
React__default.createElement(Button, { color: "primary", caption: i18n.pickerModal.selectButton, onClick: () => props.success(selection) })));
|
|
2996
3024
|
};
|
|
2997
3025
|
const renderNotFound = () => {
|
|
2998
|
-
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__default.createElement("div", { className: css$
|
|
2999
|
-
React__default.createElement(IconContainer, { cx: css$
|
|
3000
|
-
React__default.createElement(Text, { cx: css$
|
|
3001
|
-
React__default.createElement(Text, { cx: css$
|
|
3026
|
+
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__default.createElement("div", { className: css$E.noFoundModalContainer },
|
|
3027
|
+
React__default.createElement(IconContainer, { cx: css$E.noFoundModalContainerIcon, icon: ForwardRef$r }),
|
|
3028
|
+
React__default.createElement(Text, { cx: css$E.noFoundModalContainerText, fontWeight: "600", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
3029
|
+
React__default.createElement(Text, { cx: css$E.noFoundModalContainerText, fontSize: "12", lineHeight: "18", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
3002
3030
|
};
|
|
3003
3031
|
const dataRows = getRows();
|
|
3004
3032
|
const rows = dataRows.map((row) => renderRow(row));
|
|
3005
3033
|
return (React__default.createElement(ModalBlocker, Object.assign({}, props),
|
|
3006
3034
|
React__default.createElement(ModalWindow, { width: 600, height: 700 },
|
|
3007
3035
|
React__default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
3008
|
-
React__default.createElement(FlexCell, { cx: css$
|
|
3036
|
+
React__default.createElement(FlexCell, { cx: css$E.subHeaderWrapper },
|
|
3009
3037
|
React__default.createElement(FlexRow, { vPadding: "24" },
|
|
3010
3038
|
React__default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => handleDataSourceKeyboard({
|
|
3011
3039
|
value: getDataSourceState(),
|
|
@@ -3014,20 +3042,20 @@ function PickerModal(props) {
|
|
|
3014
3042
|
rows: dataRows,
|
|
3015
3043
|
searchPosition: 'body',
|
|
3016
3044
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: { dir: 'auto' } }))),
|
|
3017
|
-
!isSingleSelect() && (React__default.createElement(Switch, Object.assign({ cx: css$
|
|
3045
|
+
!isSingleSelect() && (React__default.createElement(Switch, Object.assign({ cx: css$E.switch, size: "18" }, getFooterProps().showSelected, { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
3018
3046
|
props.renderFilter && React__default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
3019
3047
|
React__default.createElement(DataPickerBody, Object.assign({}, getListProps(), { value: getDataSourceState(), onValueChange: handleDataSourceValueChange, search: dataSourceStateLens.prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: renderNotFound, editMode: "modal" })),
|
|
3020
3048
|
React__default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3021
3049
|
}
|
|
3022
3050
|
|
|
3023
|
-
var css$
|
|
3051
|
+
var css$C = {"tooltip":"iPNJyX"};
|
|
3024
3052
|
|
|
3025
3053
|
const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3026
3054
|
var _a;
|
|
3027
3055
|
const tagProps = Object.assign(Object.assign({}, props), { tabIndex: -1, size: settings.sizes.pickerInput.toggler.tag[props.size], caption: ((_a = props.rowProps) === null || _a === void 0 ? void 0 : _a.isLoading) ? React.createElement(TextPlaceholder, null) : props.caption });
|
|
3028
3056
|
if (props.isCollapsed) {
|
|
3029
3057
|
const collapsedRows = props.collapsedRows.map((row) => props.getName(row.value)).join(', ');
|
|
3030
|
-
return (React.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$
|
|
3058
|
+
return (React.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$C.tooltip },
|
|
3031
3059
|
React.createElement(Tag, Object.assign({ ref: ref, rawProps: { role: 'option' } }, tagProps))));
|
|
3032
3060
|
}
|
|
3033
3061
|
else {
|
|
@@ -3035,15 +3063,15 @@ const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
3035
3063
|
}
|
|
3036
3064
|
});
|
|
3037
3065
|
|
|
3038
|
-
var css$
|
|
3066
|
+
var css$B = {"uui-typography":"elgNOM","uuiTypography":"elgNOM","hero-header":"PLDfw0","heroHeader":"PLDfw0","promo-header":"_71BxwL","promoHeader":"_71BxwL","uui-critical":"Iw4mxU","uuiCritical":"Iw4mxU","uui-info":"KNy6ZS","uuiInfo":"KNy6ZS","uui-success":"kgzf1p","uuiSuccess":"kgzf1p","uui-warning":"pqMd2x","uuiWarning":"pqMd2x","uui-highlight":"Ia04tO","uuiHighlight":"Ia04tO","uui-typography-size-12":"_2kPl7M","uuiTypographySize12":"_2kPl7M","uui-typography-size-14":"Ns9pH5","uuiTypographySize14":"Ns9pH5","uui-typography-size-16":"G2p6GC","uuiTypographySize16":"G2p6GC","root":"MAgHLa","mode-form":"KYaJW4","modeForm":"KYaJW4","mode-cell":"wAhF0l","modeCell":"wAhF0l","mode-inline":"LEr3uB","modeInline":"LEr3uB"};
|
|
3039
3067
|
|
|
3040
3068
|
const defaultMode = EditMode.FORM;
|
|
3041
3069
|
function applyPickerTogglerMods(mods) {
|
|
3042
3070
|
return [
|
|
3043
|
-
css$
|
|
3071
|
+
css$B.root,
|
|
3044
3072
|
'uui-picker_toggler',
|
|
3045
3073
|
`uui-size-${mods.size || settings.sizes.pickerInput.toggler.defaults.size}`,
|
|
3046
|
-
css$
|
|
3074
|
+
css$B['mode-' + (mods.mode || defaultMode)],
|
|
3047
3075
|
];
|
|
3048
3076
|
}
|
|
3049
3077
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -3132,7 +3160,7 @@ function PickerInputComponent(_a, ref) {
|
|
|
3132
3160
|
}
|
|
3133
3161
|
const PickerInput = /* @__PURE__ */React__default.forwardRef(PickerInputComponent);
|
|
3134
3162
|
|
|
3135
|
-
var css$
|
|
3163
|
+
var css$A = {"row":"SGlRzY"};
|
|
3136
3164
|
|
|
3137
3165
|
function PickerListItem(props) {
|
|
3138
3166
|
var _a;
|
|
@@ -3150,10 +3178,10 @@ function PickerListItem(props) {
|
|
|
3150
3178
|
else {
|
|
3151
3179
|
component = (React__default.createElement(RadioInput, { label: label, value: props.isSelected, isDisabled: props.isLoading || !props.isSelectable || props.isDisabled, onValueChange: () => props.onSelect(props) }));
|
|
3152
3180
|
}
|
|
3153
|
-
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$
|
|
3181
|
+
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$A.row }), component));
|
|
3154
3182
|
}
|
|
3155
3183
|
|
|
3156
|
-
var css$
|
|
3184
|
+
var css$z = {"root":"sXTYin"};
|
|
3157
3185
|
|
|
3158
3186
|
function PickerList(props) {
|
|
3159
3187
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = usePickerList(props);
|
|
@@ -3176,7 +3204,7 @@ function PickerList(props) {
|
|
|
3176
3204
|
const showPicker = viewProps.totalCount == null || viewProps.totalCount > getMaxDefaultItems();
|
|
3177
3205
|
const renderToggler = props.renderModalToggler || defaultRenderToggler;
|
|
3178
3206
|
const renderRow = props.renderRow || defaultRenderRow;
|
|
3179
|
-
return (React__default.createElement("div", { className: cx('uui-picker-list', css$
|
|
3207
|
+
return (React__default.createElement("div", { className: cx('uui-picker-list', css$z.root) },
|
|
3180
3208
|
!rows.length
|
|
3181
3209
|
&& (props.noOptionsMessage || (React__default.createElement(Text, { color: "secondary", size: props.size }, "No options available"))),
|
|
3182
3210
|
rows.map((row) => renderRow(Object.assign(Object.assign({}, row), { isDisabled: props.isDisabled }), dataSourceState)),
|
|
@@ -3188,7 +3216,7 @@ function PickerList(props) {
|
|
|
3188
3216
|
}, selectedRows)));
|
|
3189
3217
|
}
|
|
3190
3218
|
|
|
3191
|
-
var css$
|
|
3219
|
+
var css$y = {"uui-typography":"_9sR1YC","uuiTypography":"_9sR1YC","hero-header":"GjX40w","heroHeader":"GjX40w","promo-header":"zwisP1","promoHeader":"zwisP1","uui-critical":"_6Cl4nw","uuiCritical":"_6Cl4nw","uui-info":"M7Q6vY","uuiInfo":"M7Q6vY","uui-success":"aUXtuM","uuiSuccess":"aUXtuM","uui-warning":"WaIyor","uuiWarning":"WaIyor","uui-highlight":"zOTUtB","uuiHighlight":"zOTUtB","uui-typography-size-12":"whtkaK","uuiTypographySize12":"whtkaK","uui-typography-size-14":"ydc-jZ","uuiTypographySize14":"ydc-jZ","uui-typography-size-16":"iXELgt","uuiTypographySize16":"iXELgt","root":"y5BZ-G","wrapper":"-v6rLZ","align-widgets-top":"KEeg69","alignWidgetsTop":"KEeg69","align-widgets-center":"m2H05a","alignWidgetsCenter":"m2H05a"};
|
|
3192
3220
|
|
|
3193
3221
|
function DataTableCell(initialProps) {
|
|
3194
3222
|
const props = Object.assign({}, initialProps);
|
|
@@ -3222,12 +3250,12 @@ function DataTableCell(initialProps) {
|
|
|
3222
3250
|
};
|
|
3223
3251
|
props.cx = [
|
|
3224
3252
|
'data-table-cell',
|
|
3225
|
-
css$
|
|
3253
|
+
css$y.root,
|
|
3226
3254
|
props.cx,
|
|
3227
3255
|
'uui-size-' + (props.size || settings.sizes.dataTable.body.row.cell.defaults.size),
|
|
3228
3256
|
props.isFirstColumn && 'uui-dt-first-column',
|
|
3229
3257
|
props.isLastColumn && 'uui-dt-last-column',
|
|
3230
|
-
css$
|
|
3258
|
+
css$y[`align-widgets-${props.alignActions || 'top'}`],
|
|
3231
3259
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
3232
3260
|
];
|
|
3233
3261
|
props.style = {
|
|
@@ -3237,7 +3265,7 @@ function DataTableCell(initialProps) {
|
|
|
3237
3265
|
return React.createElement(DataTableCell$1, Object.assign({}, props));
|
|
3238
3266
|
}
|
|
3239
3267
|
|
|
3240
|
-
var css$
|
|
3268
|
+
var css$x = {"uui-typography":"MgFZrF","uuiTypography":"MgFZrF","hero-header":"NWRdaL","heroHeader":"NWRdaL","promo-header":"aeaIqj","promoHeader":"aeaIqj","uui-critical":"TMUwRn","uuiCritical":"TMUwRn","uui-info":"N-HygM","uuiInfo":"N-HygM","uui-success":"n-LaAS","uuiSuccess":"n-LaAS","uui-warning":"_2S3n1u","uuiWarning":"_2S3n1u","uui-highlight":"O4sIrc","uuiHighlight":"O4sIrc","uui-typography-size-12":"_5MV71e","uuiTypographySize12":"_5MV71e","uui-typography-size-14":"HxQB29","uuiTypographySize14":"HxQB29","uui-typography-size-16":"-gbefa","uuiTypographySize16":"-gbefa","root":"RKtP5y"};
|
|
3241
3269
|
|
|
3242
3270
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3243
3271
|
// 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.
|
|
@@ -3249,11 +3277,11 @@ const renderDropMarkers = (props) => React.createElement(DropMarker, Object.assi
|
|
|
3249
3277
|
const propsMods = { renderCell, renderDropMarkers };
|
|
3250
3278
|
const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = true, size }) => {
|
|
3251
3279
|
return [
|
|
3252
|
-
css$
|
|
3280
|
+
css$x.root, 'uui-dt-vars', borderBottom && 'uui-dt-row-border', `uui-size-${size || settings.sizes.dataTable.body.row.default}`,
|
|
3253
3281
|
];
|
|
3254
3282
|
}, () => propsMods);
|
|
3255
3283
|
|
|
3256
|
-
var css$
|
|
3284
|
+
var css$w = {"uui-typography":"_8aXuDP","uuiTypography":"_8aXuDP","hero-header":"SYUMQ9","heroHeader":"SYUMQ9","promo-header":"_5hHNL4","promoHeader":"_5hHNL4","uui-critical":"H9BuUo","uuiCritical":"H9BuUo","uui-info":"-QLZPV","uuiInfo":"-QLZPV","uui-success":"JPywlv","uuiSuccess":"JPywlv","uui-warning":"LH62sY","uuiWarning":"LH62sY","uui-highlight":"NJimv2","uuiHighlight":"NJimv2","uui-typography-size-12":"j3lzY6","uuiTypographySize12":"j3lzY6","uui-typography-size-14":"_61X9N9","uuiTypographySize14":"_61X9N9","uui-typography-size-16":"IQCWgu","uuiTypographySize16":"IQCWgu","sorting-panel-container":"b8m05I","sortingPanelContainer":"b8m05I"};
|
|
3257
3285
|
|
|
3258
3286
|
var _path$q;
|
|
3259
3287
|
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); }
|
|
@@ -3288,7 +3316,7 @@ var ForwardRef$p = /*#__PURE__*/forwardRef(SvgTableSortDescOutline);
|
|
|
3288
3316
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3289
3317
|
const sortAsc = useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
3290
3318
|
const sortDesc = useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
3291
|
-
return (React__default.createElement(FlexCell, { cx: cx$1(css$
|
|
3319
|
+
return (React__default.createElement(FlexCell, { cx: cx$1(css$w.sortingPanelContainer, 'uui-dropdownMenu-body') },
|
|
3292
3320
|
React__default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$q, onClick: sortAsc }),
|
|
3293
3321
|
React__default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$p, onClick: sortDesc })));
|
|
3294
3322
|
};
|
|
@@ -3383,7 +3411,7 @@ var SvgNavigationExpandAllOutline = function SvgNavigationExpandAllOutline(props
|
|
|
3383
3411
|
};
|
|
3384
3412
|
var ForwardRef$k = /*#__PURE__*/forwardRef(SvgNavigationExpandAllOutline);
|
|
3385
3413
|
|
|
3386
|
-
var css$
|
|
3414
|
+
var css$v = {"uui-typography":"WxUB7G","uuiTypography":"WxUB7G","hero-header":"_3HKlPv","heroHeader":"_3HKlPv","promo-header":"_5FBhqQ","promoHeader":"_5FBhqQ","uui-critical":"G7RzbV","uuiCritical":"G7RzbV","uui-info":"NqvTsS","uuiInfo":"NqvTsS","uui-success":"_9N5QDV","uuiSuccess":"_9N5QDV","uui-warning":"qU4y8g","uuiWarning":"qU4y8g","uui-highlight":"CsPUvI","uuiHighlight":"CsPUvI","uui-typography-size-12":"VGBf5T","uuiTypographySize12":"VGBf5T","uui-typography-size-14":"CI--ik","uuiTypographySize14":"CI--ik","uui-typography-size-16":"GC6n55","uuiTypographySize16":"GC6n55","root":"Xbxpq-","caption-wrapper":"_5iMiMM","captionWrapper":"_5iMiMM","sort-icon":"nnW--a","sortIcon":"nnW--a","dropdown-icon":"_8hZbbZ","dropdownIcon":"_8hZbbZ","infoIcon":"_7OlxEh","resizable":"DFDh7w","align-right":"KcBgcC","alignRight":"KcBgcC","align-center":"wUCUbt","alignCenter":"wUCUbt","caption":"G8wvGd","truncate":"FG8soj","checkbox":"vTv8l4","icon":"GczrGo","fold-all-icon":"EINOJZ","foldAllIcon":"EINOJZ","cell-tooltip":"Q6PaHL","cellTooltip":"Q6PaHL","upper-case":"V2z2rm","upperCase":"V2z2rm","resizing-marker":"_6SMMRj","resizingMarker":"_6SMMRj","pinned-right":"TzND2G","pinnedRight":"TzND2G","draggable":"_0vF0lf","ghost":"_0f1eQx","is-dragged-out":"_9Fg680","isDraggedOut":"_9Fg680","dnd-marker-left":"hMke-8","dndMarkerLeft":"hMke-8","dnd-marker-right":"pXBgpc","dndMarkerRight":"pXBgpc","cell-tooltip-wrapper":"AJEVXx","cellTooltipWrapper":"AJEVXx","cell-tooltip-text":"_0H4T9O","cellTooltipText":"_0H4T9O","tooltip-caption":"Aft4Rx","tooltipCaption":"Aft4Rx","tooltip-info":"aMTlKp","tooltipInfo":"aMTlKp"};
|
|
3387
3415
|
|
|
3388
3416
|
class DataTableHeaderCell extends React.Component {
|
|
3389
3417
|
constructor() {
|
|
@@ -3391,27 +3419,27 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3391
3419
|
this.state = {
|
|
3392
3420
|
isDropdownOpen: null,
|
|
3393
3421
|
};
|
|
3394
|
-
this.getTooltipContent = (column) => (React.createElement("div", { className: cx$1(css$
|
|
3395
|
-
React.createElement(Text, { cx: [css$
|
|
3396
|
-
column.info && (React.createElement(Text, { cx: [css$
|
|
3422
|
+
this.getTooltipContent = (column) => (React.createElement("div", { className: cx$1(css$v.cellTooltipWrapper, uuiDataTableHeaderCell.uuiTableHeaderCaptionTooltip) },
|
|
3423
|
+
React.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipCaption] }, column.caption),
|
|
3424
|
+
column.info && (React.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipInfo] }, column.info))));
|
|
3397
3425
|
this.getColumnCaption = () => {
|
|
3398
3426
|
const renderTooltip = this.props.column.renderTooltip || this.getTooltipContent;
|
|
3399
3427
|
const captionCx = [
|
|
3400
|
-
css$
|
|
3401
|
-
this.props.textCase === 'upper' && css$
|
|
3428
|
+
css$v.caption,
|
|
3429
|
+
this.props.textCase === 'upper' && css$v.upperCase,
|
|
3402
3430
|
uuiDataTableHeaderCell.uuiTableHeaderCaption,
|
|
3403
|
-
settings.sizes.dataTable.header.row.cell.truncate.includes(this.props.size) && css$
|
|
3431
|
+
settings.sizes.dataTable.header.row.cell.truncate.includes(this.props.size) && css$v.truncate,
|
|
3404
3432
|
];
|
|
3405
|
-
return (React.createElement("div", { className: cx$1(css$
|
|
3406
|
-
React.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: css$
|
|
3433
|
+
return (React.createElement("div", { className: cx$1(css$v.captionWrapper, css$v['align-' + this.props.column.textAlign], uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
3434
|
+
React.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: css$v.cellTooltip, openDelay: 600 },
|
|
3407
3435
|
React.createElement(Text, { key: "text", fontSize: settings.sizes.dataTable.header.row.cell.columnCaption[this.props.textCase === 'upper' ? 'uppercase' : 'fontSize'], size: settings.sizes.dataTable.header.row.cell.columnCaption.size, cx: captionCx }, this.props.column.caption)),
|
|
3408
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React.createElement(IconButton, { key: "sort", cx: cx$1(css$
|
|
3409
|
-
this.props.isFilterActive && (React.createElement(IconButton, { key: "filter", cx: cx$1(css$
|
|
3410
|
-
this.props.column.renderFilter && (React.createElement(IconButton, { key: "dropdown", cx: cx$1(css$
|
|
3436
|
+
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React.createElement(IconButton, { key: "sort", cx: cx$1(css$v.icon, css$v.sortIcon, this.props.sortDirection && css$v.sortIconActive, uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'neutral' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$p : this.props.sortDirection === 'asc' ? ForwardRef$q : ForwardRef$o })),
|
|
3437
|
+
this.props.isFilterActive && (React.createElement(IconButton, { key: "filter", cx: cx$1(css$v.icon, !this.props.sortDirection && css$v.filterIcon, uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "neutral", icon: ForwardRef$n })),
|
|
3438
|
+
this.props.column.renderFilter && (React.createElement(IconButton, { key: "dropdown", cx: cx$1(css$v.icon, css$v.dropdownIcon, uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$m : ForwardRef$Q }))));
|
|
3411
3439
|
};
|
|
3412
3440
|
this.renderHeaderCheckbox = () => {
|
|
3413
3441
|
if (this.props.selectAll && this.props.isFirstColumn) {
|
|
3414
|
-
return (React.createElement(Checkbox, Object.assign({ size: settings.sizes.dataTable.header.row.cell.checkbox[this.props.size] }, this.props.selectAll, { cx: cx$1(css$
|
|
3442
|
+
return (React.createElement(Checkbox, Object.assign({ size: settings.sizes.dataTable.header.row.cell.checkbox[this.props.size] }, this.props.selectAll, { cx: cx$1(css$v.checkbox, uuiDataTableHeaderCell.uuiTableHeaderCheckbox) })));
|
|
3415
3443
|
}
|
|
3416
3444
|
};
|
|
3417
3445
|
this.renderFoldAllIcon = () => {
|
|
@@ -3419,14 +3447,14 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3419
3447
|
return (React.createElement(Tooltip, { content: this.props.areAllFolded
|
|
3420
3448
|
? i18n.tables.columnHeader.expandAllTooltip
|
|
3421
3449
|
: i18n.tables.columnHeader.collapseAllTooltip },
|
|
3422
|
-
React.createElement(IconButton, { color: "secondary", cx: cx$1(css$
|
|
3450
|
+
React.createElement(IconButton, { color: "secondary", cx: cx$1(css$v.icon, css$v.foldAllIcon, uuiDataTableHeaderCell.uuiTableHeaderFoldAllIcon), icon: this.props.areAllFolded ? ForwardRef$k : ForwardRef$l, onClick: this.props.onFoldAll, rawProps: {
|
|
3423
3451
|
'aria-label': this.props.areAllFolded ? 'Expand All' : 'Collapse All',
|
|
3424
3452
|
'aria-expanded': !!this.props.areAllFolded,
|
|
3425
3453
|
} })));
|
|
3426
3454
|
}
|
|
3427
3455
|
};
|
|
3428
3456
|
this.renderResizingMarker = (props) => {
|
|
3429
|
-
return (React.createElement("div", { role: "separator", onMouseDown: props.onResizeStart, className: cx$1(css$
|
|
3457
|
+
return (React.createElement("div", { role: "separator", onMouseDown: props.onResizeStart, className: cx$1(css$v.resizingMarker, uuiMarkers.draggable, uuiMarkers.clickable) }));
|
|
3430
3458
|
};
|
|
3431
3459
|
this.getLeftPadding = () => {
|
|
3432
3460
|
const { columnsGap, isFirstColumn } = this.props;
|
|
@@ -3458,7 +3486,7 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3458
3486
|
var _a;
|
|
3459
3487
|
props.ref(ref);
|
|
3460
3488
|
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
3461
|
-
}, cx: cx$1(uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiMarkers.clickable, css$
|
|
3489
|
+
}, cx: cx$1(uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiMarkers.clickable, css$v.root, `uui-size-${this.props.size || settings.sizes.dataTable.header.row.cell.defaults.size}`, this.props.isFirstColumn && 'uui-dt-header-first-column', this.props.isLastColumn && 'uui-dt-header-last-column', this.props.column.fix && css$v['pinned-' + this.props.column.fix], isResizable && css$v.resizable, props.isDraggable && css$v.draggable, props.isDragGhost && css$v.ghost, props.isDraggedOut && css$v.isDraggedOut, props.isDndInProgress && css$v['dnd-marker-' + props.position]), onClick: onClickEvent, rawProps: Object.assign({ role: 'columnheader', 'aria-sort': this.props.sortDirection === 'asc' ? 'ascending' : this.props.sortDirection ? 'descending' : 'none' }, props.eventHandlers), style: computeStyles },
|
|
3462
3490
|
this.renderHeaderCheckbox(),
|
|
3463
3491
|
this.renderFoldAllIcon(),
|
|
3464
3492
|
this.getColumnCaption(),
|
|
@@ -3489,10 +3517,65 @@ var SvgActionSettingsFill = function SvgActionSettingsFill(props, ref) {
|
|
|
3489
3517
|
};
|
|
3490
3518
|
var ForwardRef$j = /*#__PURE__*/forwardRef(SvgActionSettingsFill);
|
|
3491
3519
|
|
|
3492
|
-
var css$
|
|
3520
|
+
var css$u = {"uui-typography":"V1C42Q","uuiTypography":"V1C42Q","hero-header":"_3jY06p","heroHeader":"_3jY06p","promo-header":"C3ZNOA","promoHeader":"C3ZNOA","uui-critical":"Q2dq4Z","uuiCritical":"Q2dq4Z","uui-info":"inoPp3","uuiInfo":"inoPp3","uui-success":"LGa6B4","uuiSuccess":"LGa6B4","uui-warning":"S4jIdc","uuiWarning":"S4jIdc","uui-highlight":"vsDULv","uuiHighlight":"vsDULv","uui-typography-size-12":"w1d3-N","uuiTypographySize12":"w1d3-N","uui-typography-size-14":"BLqt5-","uuiTypographySize14":"BLqt5-","uui-typography-size-16":"pD3qU3","uuiTypographySize16":"pD3qU3","root":"bdxZo7"};
|
|
3493
3521
|
|
|
3494
|
-
|
|
3522
|
+
var css$t = {"uui-typography":"-vbA9o","uuiTypography":"-vbA9o","hero-header":"_6MtY9q","heroHeader":"_6MtY9q","promo-header":"HqIiPL","promoHeader":"HqIiPL","uui-critical":"Ksr2Gx","uuiCritical":"Ksr2Gx","uui-info":"iff1of","uuiInfo":"iff1of","uui-success":"_58Cc9s","uuiSuccess":"_58Cc9s","uui-warning":"WFq1EB","uuiWarning":"WFq1EB","uui-highlight":"dBxxyg","uuiHighlight":"dBxxyg","uui-typography-size-12":"_7tyVur","uuiTypographySize12":"_7tyVur","uui-typography-size-14":"_5JHLFM","uuiTypographySize14":"_5JHLFM","uui-typography-size-16":"XFdhdn","uuiTypographySize16":"XFdhdn","root":"oVfl3E","caption-wrapper":"X0fN9Y","captionWrapper":"X0fN9Y","align-center":"VhAsj9","alignCenter":"VhAsj9","caption":"QG4m-U","truncate":"L-AaWJ","group-cell-tooltip":"SPrAH6","groupCellTooltip":"SPrAH6","upper-case":"DoYTHI","upperCase":"DoYTHI","group-cell-tooltip-wrapper":"bf9f5l","groupCellTooltipWrapper":"bf9f5l","group-cell-tooltip-text":"JnQTfQ","groupCellTooltipText":"JnQTfQ","tooltip-caption":"ASciOP","tooltipCaption":"ASciOP","tooltip-info":"aEGGTJ","tooltipInfo":"aEGGTJ"};
|
|
3523
|
+
|
|
3524
|
+
class DataTableHeaderGroupCell extends React.Component {
|
|
3525
|
+
constructor() {
|
|
3526
|
+
super(...arguments);
|
|
3527
|
+
this.getTooltipContent = (column) => (React.createElement("div", { className: cx$1(css$t.groupCellTooltipWrapper, uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaptionTooltip) },
|
|
3528
|
+
React.createElement(Text, { cx: [css$t.groupCellTooltipText, css$t.tooltipCaption] }, column.caption),
|
|
3529
|
+
column.info && (React.createElement(Text, { cx: [css$t.groupCellTooltipText, css$t.tooltipInfo] }, column.info))));
|
|
3530
|
+
this.getColumnCaption = () => {
|
|
3531
|
+
const renderTooltip = this.props.group.renderTooltip || this.getTooltipContent;
|
|
3532
|
+
const captionCx = [
|
|
3533
|
+
css$t.caption,
|
|
3534
|
+
this.props.textCase === 'upper' && css$t.upperCase,
|
|
3535
|
+
uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaption,
|
|
3536
|
+
settings.sizes.dataTable.header.row.groupCell.truncate.includes(this.props.size) && css$t.truncate,
|
|
3537
|
+
];
|
|
3538
|
+
return (React.createElement("div", { className: cx$1(css$t.captionWrapper, css$t['align-' + this.props.group.textAlign], uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaptionWrapper) },
|
|
3539
|
+
React.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.group), cx: css$t.groupCellTooltip, openDelay: 600 },
|
|
3540
|
+
React.createElement(Text, { key: "text", fontSize: settings.sizes.dataTable.header.row.groupCell.columnCaption[this.props.textCase === 'upper' ? 'uppercase' : 'fontSize'], size: settings.sizes.dataTable.header.row.groupCell.columnCaption.size, cx: captionCx }, this.props.group.caption))));
|
|
3541
|
+
};
|
|
3542
|
+
this.getLeftPadding = () => {
|
|
3543
|
+
const { columnsGap, isFirstCell } = this.props;
|
|
3544
|
+
if (columnsGap)
|
|
3545
|
+
return isFirstCell ? columnsGap : +columnsGap / 2;
|
|
3546
|
+
return isFirstCell ? settings.sizes.dataTable.header.row.groupCell.defaults.paddingEdge : settings.sizes.dataTable.header.row.groupCell.defaults.padding;
|
|
3547
|
+
};
|
|
3548
|
+
this.getRightPadding = () => {
|
|
3549
|
+
const { columnsGap, isLastCell } = this.props;
|
|
3550
|
+
if (columnsGap)
|
|
3551
|
+
return isLastCell ? columnsGap : +columnsGap / 2;
|
|
3552
|
+
return isLastCell ? settings.sizes.dataTable.header.row.groupCell.defaults.paddingEdge : settings.sizes.dataTable.header.row.groupCell.defaults.padding;
|
|
3553
|
+
};
|
|
3554
|
+
this.renderCellContent = (props) => {
|
|
3555
|
+
const computeStyles = {
|
|
3556
|
+
'--uui-dt-header-group-cell-padding-start': `${this.getLeftPadding()}px`,
|
|
3557
|
+
'--uui-dt-header-group-cell-padding-end': `${this.getRightPadding()}px`,
|
|
3558
|
+
};
|
|
3559
|
+
return (React.createElement(DataTableCellContainer, { column: this.props.group, ref: (ref) => {
|
|
3560
|
+
props.ref(ref);
|
|
3561
|
+
}, cx: cx$1(uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCell, css$t.root, `uui-size-${this.props.size || settings.sizes.dataTable.header.row.groupCell.defaults.size}`, this.props.isFirstCell && 'uui-dt-header-first-column', this.props.isLastCell && 'uui-dt-header-last-column'), rawProps: Object.assign({ role: 'columnheader' }, props.eventHandlers), style: computeStyles }, this.getColumnCaption()));
|
|
3562
|
+
};
|
|
3563
|
+
}
|
|
3564
|
+
render() {
|
|
3565
|
+
if (this.props.group.renderHeaderCell) {
|
|
3566
|
+
return this.props.group.renderHeaderCell(this.props);
|
|
3567
|
+
}
|
|
3568
|
+
const computeStyles = {
|
|
3569
|
+
'--uui-dt-header-group-cell-padding-start': `${this.getLeftPadding()}px`,
|
|
3570
|
+
'--uui-dt-header-group-cell-padding-end': `${this.getRightPadding()}px`,
|
|
3571
|
+
};
|
|
3572
|
+
return (React.createElement(DataTableCellContainer, { column: this.props.group, cx: cx$1(uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCell, css$t.root, `uui-size-${this.props.size || settings.sizes.dataTable.header.row.groupCell.defaults.size}`, this.props.isFirstCell && 'uui-dt-header-first-column', this.props.isLastCell && 'uui-dt-header-last-column'), rawProps: { role: 'columnheader' }, style: computeStyles }, this.getColumnCaption()));
|
|
3573
|
+
}
|
|
3574
|
+
}
|
|
3575
|
+
|
|
3576
|
+
const DataTableHeaderRow = /* @__PURE__ */withMods(DataTableHeaderRow$1, () => [css$u.root, 'uui-dt-vars'], (mods) => ({
|
|
3495
3577
|
renderCell: (props) => (React.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap }))),
|
|
3578
|
+
renderGroupCell: (props) => (React.createElement(DataTableHeaderGroupCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.key, columnsGap: mods.columnsGap }))),
|
|
3496
3579
|
renderConfigButton: () => (React.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: ['config-icon', `uui-size-${settings.sizes.dataTable.header.row.cell.iconSize[mods.size || settings.sizes.dataTable.header.row.default]}`], color: "neutral", icon: ForwardRef$j })),
|
|
3497
3580
|
}));
|
|
3498
3581
|
|
|
@@ -3501,7 +3584,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
3501
3584
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
3502
3585
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
3503
3586
|
|
|
3504
|
-
var css$s = {"uui-typography":"
|
|
3587
|
+
var css$s = {"uui-typography":"LsX-QX","uuiTypography":"LsX-QX","hero-header":"_0Ou81v","heroHeader":"_0Ou81v","promo-header":"_2mp821","promoHeader":"_2mp821","uui-critical":"LTMLK-","uuiCritical":"LTMLK-","uui-info":"BkwyBD","uuiInfo":"BkwyBD","uui-success":"v2Vh3u","uuiSuccess":"v2Vh3u","uui-warning":"OCtJGi","uuiWarning":"OCtJGi","uui-highlight":"_3Fs6TM","uuiHighlight":"_3Fs6TM","uui-typography-size-12":"jlBrkN","uuiTypographySize12":"jlBrkN","uui-typography-size-14":"tRtxxV","uuiTypographySize14":"tRtxxV","uui-typography-size-16":"EcgKB0","uuiTypographySize16":"EcgKB0","root":"J-bngz","title-wrapper":"rpUs0E","titleWrapper":"rpUs0E","title":"_4ugTMf","text-wrapper":"qXV68s","textWrapper":"qXV68s","selection":"yFGU9J","postfix":"_2Im7GA","selected":"K1QKbk"};
|
|
3505
3588
|
|
|
3506
3589
|
const defaultSize = '36';
|
|
3507
3590
|
const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
@@ -3632,7 +3715,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
3632
3715
|
const context = useUuiContext();
|
|
3633
3716
|
const onOpenChange = (newIsOpen) => {
|
|
3634
3717
|
var _a, _b;
|
|
3635
|
-
|
|
3718
|
+
{
|
|
3636
3719
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
3637
3720
|
}
|
|
3638
3721
|
(_b = props.onOpenChange) === null || _b === void 0 ? void 0 : _b.call(props, newIsOpen);
|
|
@@ -3679,7 +3762,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
3679
3762
|
React__default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
3680
3763
|
}
|
|
3681
3764
|
|
|
3682
|
-
var css$r = {"container":"
|
|
3765
|
+
var css$r = {"container":"_14kw-Q"};
|
|
3683
3766
|
|
|
3684
3767
|
function FilterNumericBody(props) {
|
|
3685
3768
|
var _a, _b;
|
|
@@ -3777,7 +3860,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
3777
3860
|
};
|
|
3778
3861
|
var ForwardRef$i = /*#__PURE__*/forwardRef(SvgActionDeleteOutline);
|
|
3779
3862
|
|
|
3780
|
-
var css$q = {"uui-typography":"
|
|
3863
|
+
var css$q = {"uui-typography":"D8RB3e","uuiTypography":"D8RB3e","hero-header":"f3nas0","heroHeader":"f3nas0","promo-header":"ZgPBn7","promoHeader":"ZgPBn7","uui-critical":"zY6daX","uuiCritical":"zY6daX","uui-info":"oeTWy1","uuiInfo":"oeTWy1","uui-success":"yIySO-","uuiSuccess":"yIySO-","uui-warning":"j4adTr","uuiWarning":"j4adTr","uui-highlight":"rzO12l","uuiHighlight":"rzO12l","uui-typography-size-12":"Xmt5jB","uuiTypographySize12":"Xmt5jB","uui-typography-size-14":"DGk--L","uuiTypographySize14":"DGk--L","uui-typography-size-16":"shMth9","uuiTypographySize16":"shMth9","header":"GRWR3U","removeButton":"_9ukNQJ","with-search":"pXO0-F","withSearch":"pXO0-F"};
|
|
3781
3864
|
|
|
3782
3865
|
function useView(props, value) {
|
|
3783
3866
|
const forceUpdate = useForceUpdate();
|
|
@@ -4098,7 +4181,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4098
4181
|
}
|
|
4099
4182
|
const FiltersPanel = /* @__PURE__ */React__default.memo(FiltersToolbarImpl);
|
|
4100
4183
|
|
|
4101
|
-
var css$p = {"divider":"
|
|
4184
|
+
var css$p = {"divider":"WUoHol","dropdownDeleteIcon":"EURDQT","presetsWrapper":"ue2wPg","addPresetContainer":"bSJiS6","dropContainer":"caIP9m"};
|
|
4102
4185
|
|
|
4103
4186
|
var _path$g;
|
|
4104
4187
|
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); }
|
|
@@ -4211,7 +4294,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4211
4294
|
};
|
|
4212
4295
|
var ForwardRef$a = /*#__PURE__*/forwardRef(SvgContentLinkOutline);
|
|
4213
4296
|
|
|
4214
|
-
var css$o = {"delete-button":"
|
|
4297
|
+
var css$o = {"delete-button":"nofb7J","deleteButton":"nofb7J","tab-button":"N-tFt6","tabButton":"N-tFt6","targetOpen":"qXwPW-"};
|
|
4215
4298
|
|
|
4216
4299
|
function PresetActionsDropdown(props) {
|
|
4217
4300
|
const { uuiNotifications } = useUuiContext();
|
|
@@ -4271,7 +4354,7 @@ function PresetActionsDropdown(props) {
|
|
|
4271
4354
|
return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4272
4355
|
}
|
|
4273
4356
|
|
|
4274
|
-
var css$n = {"preset-input-cell":"
|
|
4357
|
+
var css$n = {"preset-input-cell":"Dn-BMn","presetInputCell":"Dn-BMn","preset-input":"SsrZgS","presetInput":"SsrZgS"};
|
|
4275
4358
|
|
|
4276
4359
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4277
4360
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4304,7 +4387,7 @@ function PresetInput(props) {
|
|
|
4304
4387
|
React__default.createElement(TextInput, { cx: css$n.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
4305
4388
|
}
|
|
4306
4389
|
|
|
4307
|
-
var css$m = {"preset":"
|
|
4390
|
+
var css$m = {"preset":"NClphZ","activePreset":"ypn8yA"};
|
|
4308
4391
|
|
|
4309
4392
|
function Preset(props) {
|
|
4310
4393
|
const [isRenamePreset, setIsRenamePreset] = useState(false);
|
|
@@ -4479,7 +4562,7 @@ var SvgTableGroupColumnRightFill = function SvgTableGroupColumnRightFill(props,
|
|
|
4479
4562
|
};
|
|
4480
4563
|
var ForwardRef$6 = /*#__PURE__*/forwardRef(SvgTableGroupColumnRightFill);
|
|
4481
4564
|
|
|
4482
|
-
var css$l = {"unpin-icon":"
|
|
4565
|
+
var css$l = {"unpin-icon":"Nicm0o","unpinIcon":"Nicm0o","pin-toggler-icon":"Ar8l5q","pinTogglerIcon":"Ar8l5q"};
|
|
4483
4566
|
|
|
4484
4567
|
function PinIconButton(props) {
|
|
4485
4568
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4538,7 +4621,7 @@ var SvgActionDragIndicator18 = function SvgActionDragIndicator18(props, ref) {
|
|
|
4538
4621
|
};
|
|
4539
4622
|
var ForwardRef$5 = /*#__PURE__*/forwardRef(SvgActionDragIndicator18);
|
|
4540
4623
|
|
|
4541
|
-
var css$k = {"uui-typography":"
|
|
4624
|
+
var css$k = {"uui-typography":"hfRTVq","uuiTypography":"hfRTVq","hero-header":"OU0AUx","heroHeader":"OU0AUx","promo-header":"r-9kU-","promoHeader":"r-9kU-","uui-critical":"Cwo-6p","uuiCritical":"Cwo-6p","uui-info":"Vze-Gg","uuiInfo":"Vze-Gg","uui-success":"L0hb6K","uuiSuccess":"L0hb6K","uui-warning":"n7qYbc","uuiWarning":"n7qYbc","uui-highlight":"_8HRIpN","uuiHighlight":"_8HRIpN","uui-typography-size-12":"_3z3LR-","uuiTypographySize12":"_3z3LR-","uui-typography-size-14":"IaCmch","uuiTypographySize14":"IaCmch","uui-typography-size-16":"yElhd5","uuiTypographySize16":"yElhd5","row-wrapper":"_8veK-v","rowWrapper":"_8veK-v","pin-icon-button":"H-iSoW","pinIconButton":"H-iSoW","not-pinned":"Kd6ZZu","notPinned":"Kd6ZZu","checkbox":"Y7mSyX","drag-handle":"Z33b4E","dragHandle":"Z33b4E","dnd-disabled":"MDQR6W","dndDisabled":"MDQR6W"};
|
|
4542
4625
|
|
|
4543
4626
|
const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
4544
4627
|
const { column } = props;
|
|
@@ -4561,7 +4644,7 @@ const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
|
4561
4644
|
return (React.createElement(DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4562
4645
|
});
|
|
4563
4646
|
|
|
4564
|
-
var css$j = {"uui-typography":"
|
|
4647
|
+
var css$j = {"uui-typography":"hdjLyK","uuiTypography":"hdjLyK","hero-header":"SR-VsF","heroHeader":"SR-VsF","promo-header":"_1UlWSL","promoHeader":"_1UlWSL","uui-critical":"uiSXNK","uuiCritical":"uiSXNK","uui-info":"_2Kl32S","uuiInfo":"_2Kl32S","uui-success":"SjlGZN","uuiSuccess":"SjlGZN","uui-warning":"LdfJsS","uuiWarning":"LdfJsS","uui-highlight":"gTYVph","uuiHighlight":"gTYVph","uui-typography-size-12":"qvCcuR","uuiTypographySize12":"qvCcuR","uui-typography-size-14":"gJjxI-","uuiTypographySize14":"gJjxI-","uui-typography-size-16":"L4Q7oG","uuiTypographySize16":"L4Q7oG","root":"dK3DyX","main-panel":"kH6-jn","mainPanel":"kH6-jn","group":"OP5eLZ","group-title":"fSeTHO","groupTitle":"fSeTHO","group-items":"LnouUb","groupItems":"LnouUb","no-data":"LE-nho","noData":"LE-nho","no-data-title":"wtdbnk","noDataTitle":"wtdbnk","no-data-sub-title":"w-VtxK","noDataSubTitle":"w-VtxK","h-divider":"g62fQY","hDivider":"g62fQY","search-area":"Sflq0g","searchArea":"Sflq0g","subgroup-accordion":"isAVrA","subgroupAccordion":"isAVrA","subgroup":"GX6552","subgroup-title":"Whgn5e","subgroupTitle":"Whgn5e"};
|
|
4565
4648
|
|
|
4566
4649
|
const renderGroupTitle = (title, amount) => (React.createElement(FlexRow, { cx: css$j.group },
|
|
4567
4650
|
React.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -4650,7 +4733,7 @@ function SubGroup(props) {
|
|
|
4650
4733
|
return null;
|
|
4651
4734
|
}
|
|
4652
4735
|
|
|
4653
|
-
var css$i = {"listContainer":"
|
|
4736
|
+
var css$i = {"listContainer":"K-ETk4","header":"_9iM73l","group":"G-EGKa","stickyHeader":"t76FIc"};
|
|
4654
4737
|
|
|
4655
4738
|
const getChildrenAndRest = (row, rows) => {
|
|
4656
4739
|
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
@@ -4716,7 +4799,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4716
4799
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4717
4800
|
ref: ref
|
|
4718
4801
|
}, props), /*#__PURE__*/React.createElement("g", {
|
|
4719
|
-
clipPath: "url(#
|
|
4802
|
+
clipPath: "url(#zslffuwbe3x0hyms_a)"
|
|
4720
4803
|
}, _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
4721
4804
|
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",
|
|
4722
4805
|
fill: "#F5F6FA"
|
|
@@ -4737,7 +4820,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4737
4820
|
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",
|
|
4738
4821
|
fill: "#1D1E26"
|
|
4739
4822
|
})), /*#__PURE__*/React.createElement("mask", {
|
|
4740
|
-
id: "
|
|
4823
|
+
id: "zslffuefrkrogn54_b",
|
|
4741
4824
|
style: {
|
|
4742
4825
|
maskType: "alpha"
|
|
4743
4826
|
},
|
|
@@ -4750,7 +4833,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4750
4833
|
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",
|
|
4751
4834
|
fill: "#9BDEFF"
|
|
4752
4835
|
}))), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
4753
|
-
mask: "url(#
|
|
4836
|
+
mask: "url(#zslffuefrkrogn54_b)",
|
|
4754
4837
|
fillRule: "evenodd",
|
|
4755
4838
|
clipRule: "evenodd"
|
|
4756
4839
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -4836,7 +4919,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4836
4919
|
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",
|
|
4837
4920
|
fill: "#fff"
|
|
4838
4921
|
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
4839
|
-
id: "
|
|
4922
|
+
id: "zslffuwbe3x0hyms_a"
|
|
4840
4923
|
}, /*#__PURE__*/React.createElement("path", {
|
|
4841
4924
|
fill: "#fff",
|
|
4842
4925
|
transform: "translate(.552)",
|
|
@@ -4845,7 +4928,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4845
4928
|
};
|
|
4846
4929
|
var ForwardRef$4 = /*#__PURE__*/forwardRef(SvgEmptyTable);
|
|
4847
4930
|
|
|
4848
|
-
var css$h = {"root":"
|
|
4931
|
+
var css$h = {"root":"NooTnf","sticky-header":"IXbZMo","stickyHeader":"IXbZMo","no-results":"_90wEUV","noResults":"_90wEUV","icon":"_91Kmhl","title":"wjVG8n"};
|
|
4849
4932
|
|
|
4850
4933
|
function DataTable(props) {
|
|
4851
4934
|
var _a, _b, _c, _d;
|
|
@@ -4880,7 +4963,7 @@ function DataTable(props) {
|
|
|
4880
4963
|
]);
|
|
4881
4964
|
const renderRowsContainer = React.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows }) => (React.createElement(React.Fragment, null,
|
|
4882
4965
|
React.createElement("div", { className: css$h.stickyHeader, ref: headerRef },
|
|
4883
|
-
React.createElement(DataTableHeaderRow, { columns: columns, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.headerSize || settings.sizes.dataTable.header.row.default, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, showFoldAll: props.showFoldAll, value: Object.assign(Object.assign({}, props.value), { columnsConfig: config }), onValueChange: props.onValueChange, columnsGap: props.columnsGap }),
|
|
4966
|
+
React.createElement(DataTableHeaderRow, { columns: columns, columnGroups: props.columnGroups, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.headerSize || settings.sizes.dataTable.header.row.default, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, showFoldAll: props.showFoldAll, value: Object.assign(Object.assign({}, props.value), { columnsConfig: config }), onValueChange: props.onValueChange, columnsGap: props.columnsGap }),
|
|
4884
4967
|
React.createElement("div", { className: cx$1(uuiScrollShadows.top, {
|
|
4885
4968
|
[uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
4886
4969
|
}) })),
|
|
@@ -4896,9 +4979,9 @@ function DataTable(props) {
|
|
|
4896
4979
|
} }))));
|
|
4897
4980
|
}
|
|
4898
4981
|
|
|
4899
|
-
var css$g = {"root":"
|
|
4982
|
+
var css$g = {"root":"ysccK0"};
|
|
4900
4983
|
|
|
4901
|
-
var css$f = {"root":"
|
|
4984
|
+
var css$f = {"root":"NV1wxU","burger-content":"LnKa9I","burgerContent":"LnKa9I"};
|
|
4902
4985
|
|
|
4903
4986
|
var _path$3;
|
|
4904
4987
|
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
@@ -4941,7 +5024,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
4941
5024
|
};
|
|
4942
5025
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgNavigationArrowDownOutline);
|
|
4943
5026
|
|
|
4944
|
-
var css$e = {"uui-typography":"
|
|
5027
|
+
var css$e = {"uui-typography":"ge6lrr","uuiTypography":"ge6lrr","hero-header":"R6ootK","heroHeader":"R6ootK","promo-header":"n-WTz1","promoHeader":"n-WTz1","uui-critical":"_8x2eyy","uuiCritical":"_8x2eyy","uui-info":"DB5Jh6","uuiInfo":"DB5Jh6","uui-success":"D3-5xg","uuiSuccess":"D3-5xg","uui-warning":"P5eAAr","uuiWarning":"P5eAAr","uui-highlight":"v5c-y3","uuiHighlight":"v5c-y3","uui-typography-size-12":"fYedE4","uuiTypographySize12":"fYedE4","uui-typography-size-14":"mrk0gV","uuiTypographySize14":"mrk0gV","uui-typography-size-16":"Nv5eod","uuiTypographySize16":"Nv5eod","root":"TGdMwl","button-primary":"bSgADo","buttonPrimary":"bSgADo","button-secondary":"fztJU-","buttonSecondary":"fztJU-","hasIcon":"_1ycqPX","dropdown":"JHDUEZ"};
|
|
4945
5028
|
|
|
4946
5029
|
const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
4947
5030
|
css$e.root,
|
|
@@ -4952,13 +5035,13 @@ const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
|
4952
5035
|
props.icon && css$e.hasIcon,
|
|
4953
5036
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
4954
5037
|
|
|
4955
|
-
var css$d = {"search-input":"
|
|
5038
|
+
var css$d = {"search-input":"i1iw2c","searchInput":"i1iw2c"};
|
|
4956
5039
|
|
|
4957
5040
|
function BurgerSearch(props) {
|
|
4958
5041
|
return (React.createElement(TextInput$1, { cx: cx(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$O, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$R }));
|
|
4959
5042
|
}
|
|
4960
5043
|
|
|
4961
|
-
var css$c = {"root":"
|
|
5044
|
+
var css$c = {"root":"tEiErd","group-header":"jBZk12","groupHeader":"jBZk12","group-name":"WuI71n","groupName":"WuI71n","line":"UxGgi8"};
|
|
4962
5045
|
|
|
4963
5046
|
function BurgerGroupHeader(props) {
|
|
4964
5047
|
return (React.createElement("div", { className: cx(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4966,7 +5049,7 @@ function BurgerGroupHeader(props) {
|
|
|
4966
5049
|
React.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
4967
5050
|
}
|
|
4968
5051
|
|
|
4969
|
-
var css$b = {"uui-typography":"
|
|
5052
|
+
var css$b = {"uui-typography":"S7G9sC","uuiTypography":"S7G9sC","hero-header":"Gjasnq","heroHeader":"Gjasnq","promo-header":"Tk67qC","promoHeader":"Tk67qC","uui-critical":"PTp1Un","uuiCritical":"PTp1Un","uui-info":"WZRCAb","uuiInfo":"WZRCAb","uui-success":"VtHsU0","uuiSuccess":"VtHsU0","uui-warning":"lzORec","uuiWarning":"lzORec","uui-highlight":"-uUWad","uuiHighlight":"-uUWad","uui-typography-size-12":"_9jZlIJ","uuiTypographySize12":"_9jZlIJ","uui-typography-size-14":"STZlQ8","uuiTypographySize14":"STZlQ8","uui-typography-size-16":"a5Wg0C","uuiTypographySize16":"a5Wg0C","root":"d8L9XE","type-primary":"WL9hwD","typePrimary":"WL9hwD","type-secondary":"TDnu0n","typeSecondary":"TDnu0n"};
|
|
4970
5053
|
|
|
4971
5054
|
const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
4972
5055
|
const { type } = props, clickableProps = __rest(props, ["type"]);
|
|
@@ -4982,7 +5065,7 @@ const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
4982
5065
|
props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
|
|
4983
5066
|
});
|
|
4984
5067
|
|
|
4985
|
-
var css$a = {"dropdown-body":"
|
|
5068
|
+
var css$a = {"dropdown-body":"_-3Qts7","dropdownBody":"_-3Qts7"};
|
|
4986
5069
|
|
|
4987
5070
|
class MainMenuDropdown extends React.Component {
|
|
4988
5071
|
render() {
|
|
@@ -5037,12 +5120,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5037
5120
|
};
|
|
5038
5121
|
var ForwardRef$1 = /*#__PURE__*/forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5039
5122
|
|
|
5040
|
-
var css$9 = {"global-menu-btn":"
|
|
5123
|
+
var css$9 = {"global-menu-btn":"EvIOVk","globalMenuBtn":"EvIOVk","global-menu-icon":"IV2Nbc","globalMenuIcon":"IV2Nbc"};
|
|
5041
5124
|
|
|
5042
5125
|
const GlobalMenu = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx(css$9.globalMenuBtn, props.cx) }, props.rawProps),
|
|
5043
5126
|
React.createElement(IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5044
5127
|
|
|
5045
|
-
var css$8 = {"container":"
|
|
5128
|
+
var css$8 = {"container":"_6otY3S","open":"_0jh-Rd","folding-arrow":"cg4DT5","foldingArrow":"cg4DT5"};
|
|
5046
5129
|
|
|
5047
5130
|
const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", { ref: ref, className: cx(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiMarkers.clickable, props.cx), onClick: props.onClick },
|
|
5048
5131
|
React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5050,18 +5133,18 @@ const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.cr
|
|
|
5050
5133
|
props.isDropdown && (React.createElement("div", null,
|
|
5051
5134
|
React.createElement(IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5052
5135
|
|
|
5053
|
-
var css$7 = {"search-input":"
|
|
5136
|
+
var css$7 = {"search-input":"vLCki4","searchInput":"vLCki4"};
|
|
5054
5137
|
|
|
5055
5138
|
const MainMenuSearch = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
5056
5139
|
var _a;
|
|
5057
5140
|
return (React.createElement(TextInput$1, Object.assign({ iconPosition: "left", icon: ForwardRef$O, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$R }, props, iEditable, { ref: ref, cx: cx$1(css$7.searchInput, props.cx) }, props.rawProps)));
|
|
5058
5141
|
} }))));
|
|
5059
5142
|
|
|
5060
|
-
var css$6 = {"container":"
|
|
5143
|
+
var css$6 = {"container":"_03hE-9"};
|
|
5061
5144
|
|
|
5062
5145
|
const MainMenuIcon = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: cx$1(props.cx, css$6.container) }, props))));
|
|
5063
5146
|
|
|
5064
|
-
var css$5 = {"root":"
|
|
5147
|
+
var css$5 = {"root":"uRVbSA"};
|
|
5065
5148
|
|
|
5066
5149
|
const Anchor = /* @__PURE__ */withMods(Anchor$1, () => [css$5.root]);
|
|
5067
5150
|
|
|
@@ -5119,7 +5202,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5119
5202
|
};
|
|
5120
5203
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgFileCloudUploadFill);
|
|
5121
5204
|
|
|
5122
|
-
var css$4 = {"root":"
|
|
5205
|
+
var css$4 = {"root":"S1bF7m","drop-start":"Gel8mZ","dropStart":"Gel8mZ","drop-over":"SN4q4H","dropOver":"SN4q4H","link":"Ur1m7i","drop-area":"vDdcWQ","dropArea":"vDdcWQ","drop-caption":"KyKK48","dropCaption":"KyKK48","icon-blue":"z099Tq","iconBlue":"z099Tq"};
|
|
5123
5206
|
|
|
5124
5207
|
function DropSpot(props) {
|
|
5125
5208
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5137,9 +5220,9 @@ function DropSpot(props) {
|
|
|
5137
5220
|
return React.createElement(DropSpot$1, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5138
5221
|
}
|
|
5139
5222
|
|
|
5140
|
-
var css$3 = {"uui-typography":"
|
|
5223
|
+
var css$3 = {"uui-typography":"BTHLK7","uuiTypography":"BTHLK7","hero-header":"K-KlRs","heroHeader":"K-KlRs","promo-header":"ADlt4r","promoHeader":"ADlt4r","uui-critical":"Qp164z","uuiCritical":"Qp164z","uui-info":"PKAC-w","uuiInfo":"PKAC-w","uui-success":"NY25bG","uuiSuccess":"NY25bG","uui-warning":"GL-9e-","uuiWarning":"GL-9e-","uui-highlight":"_51dkE9","uuiHighlight":"_51dkE9","uui-typography-size-12":"VJFKvf","uuiTypographySize12":"VJFKvf","uui-typography-size-14":"iUp3iS","uuiTypographySize14":"iUp3iS","uui-typography-size-16":"_3nuaRf","uuiTypographySize16":"_3nuaRf","root":"b92utw","file-name":"_3iBS25","fileName":"_3iBS25","default-color":"ytSSnl","defaultColor":"ytSSnl","doc-color":"XdPvL4","docColor":"XdPvL4","xls-color":"AxoQBu","xlsColor":"AxoQBu","pdf-color":"WyTchL","pdfColor":"WyTchL","movie-color":"_9owr3w","movieColor":"_9owr3w","img-color":"S1ISHc","imgColor":"S1ISHc","mov-color":"IjjZdf","movColor":"IjjZdf","error-block":"xwE-ta","errorBlock":"xwE-ta","icons-block":"_5mXXPJ","iconsBlock":"_5mXXPJ"};
|
|
5141
5224
|
|
|
5142
|
-
var css$2 = {"root":"
|
|
5225
|
+
var css$2 = {"root":"ciOnoq"};
|
|
5143
5226
|
|
|
5144
5227
|
const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5145
5228
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5249,22 +5332,25 @@ const getErrorPageConfig = () => ({
|
|
|
5249
5332
|
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Error_500_Monochrome.svg',
|
|
5250
5333
|
title: i18n.errorHandler.errorPageConfig.serverError.title,
|
|
5251
5334
|
subtitle: i18n.errorHandler.errorPageConfig.serverError.subtitle,
|
|
5335
|
+
supportLink: i18n.errorHandler.supportLink,
|
|
5252
5336
|
},
|
|
5253
5337
|
serviceUnavailable: {
|
|
5254
5338
|
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Error_503_Monochrome.svg',
|
|
5255
5339
|
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Error_503_Monochrome.svg',
|
|
5256
5340
|
title: i18n.errorHandler.errorPageConfig.serviceUnavailable.title,
|
|
5257
5341
|
subtitle: i18n.errorHandler.errorPageConfig.serviceUnavailable.subtitle,
|
|
5342
|
+
supportLink: i18n.errorHandler.supportLink,
|
|
5258
5343
|
},
|
|
5259
5344
|
default: {
|
|
5260
5345
|
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Empty_Monochrome.svg',
|
|
5261
5346
|
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Empty_Monochrome.svg',
|
|
5262
5347
|
title: i18n.errorHandler.errorPageConfig.default.title,
|
|
5263
5348
|
subtitle: i18n.errorHandler.errorPageConfig.default.subtitle,
|
|
5349
|
+
supportLink: i18n.errorHandler.supportLink,
|
|
5264
5350
|
},
|
|
5265
5351
|
});
|
|
5266
5352
|
|
|
5267
|
-
var css$1 = {"container":"
|
|
5353
|
+
var css$1 = {"container":"_5gu0D9"};
|
|
5268
5354
|
|
|
5269
5355
|
const ErrorPage = (props) => {
|
|
5270
5356
|
const isMobileScreen = isMobile();
|
|
@@ -5272,10 +5358,11 @@ const ErrorPage = (props) => {
|
|
|
5272
5358
|
React__default.createElement("div", { className: "uui-error-content" },
|
|
5273
5359
|
React__default.createElement("img", { className: "uui-error-image", src: isMobileScreen && props.mobileImageUrl ? props.mobileImageUrl : props.imageUrl, alt: "ERROR OCCURRED!" }),
|
|
5274
5360
|
React__default.createElement("div", { className: "uui-error-title" }, props.title),
|
|
5275
|
-
React__default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle)
|
|
5361
|
+
React__default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle),
|
|
5362
|
+
React__default.createElement("div", { className: "uui-error-support-link" }, props === null || props === void 0 ? void 0 : props.supportLink))));
|
|
5276
5363
|
};
|
|
5277
5364
|
|
|
5278
|
-
var css = {"recovery-spinner":"
|
|
5365
|
+
var css = {"recovery-spinner":"MDkORu","recoverySpinner":"MDkORu","recovery-message":"p8UsBu","recoveryMessage":"p8UsBu","modal-blocker":"XZznBv","modalBlocker":"XZznBv","modalFadeIn":"Aj4asz"};
|
|
5279
5366
|
|
|
5280
5367
|
function ErrorHandler(props) {
|
|
5281
5368
|
const { uuiNotifications, uuiModals, uuiApi } = useUuiContext();
|