@epam/uui 5.11.0-rc.0 → 5.12.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/overlays/Modals.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/index.esm.js +389 -314
- package/index.esm.js.map +1 -1
- package/index.js +388 -313
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/settings.d.ts.map +1 -1
- package/settings.types.d.ts +12 -0
- package/settings.types.d.ts.map +1 -1
- package/stats.html +1 -1
- package/styles.css +2820 -2564
- 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';
|
|
@@ -514,6 +514,25 @@ const settings = {
|
|
|
514
514
|
},
|
|
515
515
|
truncate: ['48'],
|
|
516
516
|
},
|
|
517
|
+
groupCell: {
|
|
518
|
+
defaults: {
|
|
519
|
+
size: '36',
|
|
520
|
+
padding: '12',
|
|
521
|
+
paddingEdge: '24',
|
|
522
|
+
},
|
|
523
|
+
columnCaption: {
|
|
524
|
+
fontSize: '14',
|
|
525
|
+
fontWeight: '400',
|
|
526
|
+
size: '18',
|
|
527
|
+
uppercase: '12',
|
|
528
|
+
},
|
|
529
|
+
iconSize: {
|
|
530
|
+
36: '18',
|
|
531
|
+
48: '18',
|
|
532
|
+
60: '18',
|
|
533
|
+
},
|
|
534
|
+
truncate: ['48'],
|
|
535
|
+
},
|
|
517
536
|
},
|
|
518
537
|
},
|
|
519
538
|
body: {
|
|
@@ -562,11 +581,11 @@ const settings = {
|
|
|
562
581
|
},
|
|
563
582
|
};
|
|
564
583
|
|
|
565
|
-
var css$
|
|
584
|
+
var css$1x = {"uui-typography":"oPhd0A","hero-header":"CVggzf","promo-header":"-NftxO","uui-critical":"BjTM8o","uui-info":"UbWgsY","uui-success":"_4y88m-","uui-warning":"kzBfRe","uui-highlight":"PP1oA8","uui-typography-size-12":"BKSrF2","uui-typography-size-14":"Z2pfLR","uui-typography-size-16":"kogV7Z","root":"qynglP","uuiTypography":"oPhd0A","heroHeader":"CVggzf","promoHeader":"-NftxO","uuiCritical":"BjTM8o","uuiInfo":"UbWgsY","uuiSuccess":"_4y88m-","uuiWarning":"kzBfRe","uuiHighlight":"PP1oA8","uuiTypographySize12":"BKSrF2","uuiTypographySize14":"Z2pfLR","uuiTypographySize16":"kogV7Z"};
|
|
566
585
|
|
|
567
586
|
function applyButtonMods(mods) {
|
|
568
587
|
return [
|
|
569
|
-
css$
|
|
588
|
+
css$1x.root,
|
|
570
589
|
'uui-button',
|
|
571
590
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
572
591
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -580,10 +599,10 @@ const Button = /* @__PURE__ */withMods(uuiComponents.Button, applyButtonMods, ()
|
|
|
580
599
|
};
|
|
581
600
|
});
|
|
582
601
|
|
|
583
|
-
var css$
|
|
602
|
+
var css$1w = {"root":"yu82wx"};
|
|
584
603
|
|
|
585
604
|
function applyIconButtonMods(props) {
|
|
586
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
605
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1w.root];
|
|
587
606
|
}
|
|
588
607
|
const IconButton = /* @__PURE__ */withMods(uuiComponents.IconButton, applyIconButtonMods, (props) => {
|
|
589
608
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -617,7 +636,7 @@ function getIconClass(props) {
|
|
|
617
636
|
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'];
|
|
618
637
|
}
|
|
619
638
|
|
|
620
|
-
var css$
|
|
639
|
+
var css$1v = {"uui-typography":"zdx-JE","hero-header":"_0-kBf4","promo-header":"R-rHPK","uui-critical":"S2NOCn","uui-info":"_4tHaa4","uui-success":"zUgmsy","uui-warning":"UMDHBQ","uui-highlight":"QaI3-r","uui-typography-size-12":"-M93cb","uui-typography-size-14":"JeIj6-","uui-typography-size-16":"nn31sc","root":"XWXkk0","uuiTypography":"zdx-JE","heroHeader":"_0-kBf4","promoHeader":"R-rHPK","uuiCritical":"S2NOCn","uuiInfo":"_4tHaa4","uuiSuccess":"zUgmsy","uuiWarning":"UMDHBQ","uuiHighlight":"QaI3-r","uuiTypographySize12":"-M93cb","uuiTypographySize14":"JeIj6-","uuiTypographySize16":"nn31sc"};
|
|
621
640
|
|
|
622
641
|
const DEFAULT_COLOR = 'primary';
|
|
623
642
|
const DEFAULT_WEIGHT = 'semibold';
|
|
@@ -633,7 +652,7 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
633
652
|
}
|
|
634
653
|
const rootStyles = [
|
|
635
654
|
'uui-link_button',
|
|
636
|
-
css$
|
|
655
|
+
css$1v.root,
|
|
637
656
|
`uui-size-${props.size || settings.sizes.defaults.linkButton}`,
|
|
638
657
|
...getIconClass(props),
|
|
639
658
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -648,11 +667,11 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
648
667
|
props.isDropdown && (React.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
649
668
|
});
|
|
650
669
|
|
|
651
|
-
var css$
|
|
670
|
+
var css$1u = {"root":"_1NYrxj"};
|
|
652
671
|
|
|
653
672
|
const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
654
673
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
655
|
-
css$
|
|
674
|
+
css$1u.root,
|
|
656
675
|
'uui-count_indicator',
|
|
657
676
|
`uui-size-${props.size || settings.sizes.defaults.countIndicator}`,
|
|
658
677
|
props.color && `uui-color-${props.color}`,
|
|
@@ -660,11 +679,11 @@ const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
660
679
|
]) }, props.caption));
|
|
661
680
|
});
|
|
662
681
|
|
|
663
|
-
var css$
|
|
682
|
+
var css$1t = {"uui-typography":"dLx-4U","hero-header":"FhHpzj","promo-header":"_2DFdxd","uui-critical":"tKRuYD","uui-info":"Fz-bK2","uui-success":"H0wz--","uui-warning":"XlwlkV","uui-highlight":"HL-Yb6","uui-typography-size-12":"YTJm-J","uui-typography-size-14":"nn7pw9","uui-typography-size-16":"upAMrm","root":"lRoUG2","withNotify":"iErYq4","uuiTypography":"dLx-4U","heroHeader":"FhHpzj","promoHeader":"_2DFdxd","uuiCritical":"tKRuYD","uuiInfo":"Fz-bK2","uuiSuccess":"H0wz--","uuiWarning":"XlwlkV","uuiHighlight":"HL-Yb6","uuiTypographySize12":"YTJm-J","uuiTypographySize14":"nn7pw9","uuiTypographySize16":"upAMrm"};
|
|
664
683
|
|
|
665
684
|
const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
666
685
|
const styles = [
|
|
667
|
-
css$
|
|
686
|
+
css$1t.root,
|
|
668
687
|
'uui-tab-button',
|
|
669
688
|
`uui-size-${props.size || settings.sizes.defaults.tabButton}`,
|
|
670
689
|
...getIconClass(props),
|
|
@@ -676,17 +695,17 @@ const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
676
695
|
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
677
696
|
(props.caption || props.withNotify) && (React__default.createElement("div", { className: cx$1(uuiElement.caption) },
|
|
678
697
|
props.caption,
|
|
679
|
-
props.withNotify && React__default.createElement("div", { className: css$
|
|
698
|
+
props.withNotify && React__default.createElement("div", { className: css$1t.withNotify }))),
|
|
680
699
|
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
681
700
|
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 })),
|
|
682
701
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
683
702
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
684
703
|
});
|
|
685
704
|
|
|
686
|
-
var css$
|
|
705
|
+
var css$1s = {"uui-typography":"dN-7su","hero-header":"Ak0Pf0","promo-header":"S7wuRt","uui-critical":"Q6BLlK","uui-info":"l3tkPb","uui-success":"D1QyYi","uui-warning":"QF-Gdz","uui-highlight":"INl9bc","uui-typography-size-12":"PtxwTU","uui-typography-size-14":"_1VKeOH","uui-typography-size-16":"GNbNo-","root":"C7t3p1","uuiTypography":"dN-7su","heroHeader":"Ak0Pf0","promoHeader":"S7wuRt","uuiCritical":"Q6BLlK","uuiInfo":"l3tkPb","uuiSuccess":"D1QyYi","uuiWarning":"QF-Gdz","uuiHighlight":"INl9bc","uuiTypographySize12":"PtxwTU","uuiTypographySize14":"_1VKeOH","uuiTypographySize16":"GNbNo-"};
|
|
687
706
|
|
|
688
707
|
function applyVerticalTabButtonMods() {
|
|
689
|
-
return [css$
|
|
708
|
+
return [css$1s.root, 'uui-vertical-tab-button'];
|
|
690
709
|
}
|
|
691
710
|
const VerticalTabButton = /* @__PURE__ */withMods(TabButton, applyVerticalTabButtonMods);
|
|
692
711
|
|
|
@@ -705,13 +724,13 @@ var SvgContentMinusOutline = function SvgContentMinusOutline(props, ref) {
|
|
|
705
724
|
};
|
|
706
725
|
var ForwardRef$B = /*#__PURE__*/forwardRef(SvgContentMinusOutline);
|
|
707
726
|
|
|
708
|
-
var css$
|
|
727
|
+
var css$1r = {"uui-typography":"Xum7fa","hero-header":"KAMHwn","promo-header":"cQVXec","uui-critical":"KYss4W","uui-info":"GEuQ86","uui-success":"zkwvSN","uui-warning":"tAiNa7","uui-highlight":"pB65h7","uui-typography-size-12":"iJAK5C","uui-typography-size-14":"xb-8ur","uui-typography-size-16":"_9K8M3Y","root":"Q9H8K9","mode-cell":"GAuoD7","uuiTypography":"Xum7fa","heroHeader":"KAMHwn","promoHeader":"cQVXec","uuiCritical":"KYss4W","uuiInfo":"GEuQ86","uuiSuccess":"zkwvSN","uuiWarning":"tAiNa7","uuiHighlight":"pB65h7","uuiTypographySize12":"iJAK5C","uuiTypographySize14":"xb-8ur","uuiTypographySize16":"_9K8M3Y","modeCell":"GAuoD7"};
|
|
709
728
|
|
|
710
729
|
function applyCheckboxMods(mods) {
|
|
711
730
|
return [
|
|
712
|
-
css$
|
|
731
|
+
css$1r.root,
|
|
713
732
|
`uui-size-${mods.size || settings.sizes.defaults.checkbox}`,
|
|
714
|
-
css$
|
|
733
|
+
css$1r['mode-' + (mods.mode || 'form')],
|
|
715
734
|
'uui-color-primary',
|
|
716
735
|
];
|
|
717
736
|
}
|
|
@@ -740,11 +759,11 @@ var SvgRadioDotFill = function SvgRadioDotFill(props, ref) {
|
|
|
740
759
|
};
|
|
741
760
|
var ForwardRef$A = /*#__PURE__*/forwardRef(SvgRadioDotFill);
|
|
742
761
|
|
|
743
|
-
var css$
|
|
762
|
+
var css$1q = {"uui-typography":"uJbYnl","hero-header":"iJTujC","promo-header":"vuDC5h","uui-critical":"_4s4haN","uui-info":"InZWIw","uui-success":"CTtlBO","uui-warning":"Q-WJa7","uui-highlight":"SbFe61","uui-typography-size-12":"PBaSw3","uui-typography-size-14":"kOjG1t","uui-typography-size-16":"jbNH0d","root":"pbQKvc","uuiTypography":"uJbYnl","heroHeader":"iJTujC","promoHeader":"vuDC5h","uuiCritical":"_4s4haN","uuiInfo":"InZWIw","uuiSuccess":"CTtlBO","uuiWarning":"Q-WJa7","uuiHighlight":"SbFe61","uuiTypographySize12":"PBaSw3","uuiTypographySize14":"kOjG1t","uuiTypographySize16":"jbNH0d"};
|
|
744
763
|
|
|
745
764
|
function applyRadioInputMods(mods) {
|
|
746
765
|
return [
|
|
747
|
-
css$
|
|
766
|
+
css$1q.root,
|
|
748
767
|
`uui-size-${mods.size || settings.sizes.defaults.radioInput}`,
|
|
749
768
|
'uui-radio-input-container',
|
|
750
769
|
'uui-color-primary',
|
|
@@ -752,11 +771,11 @@ function applyRadioInputMods(mods) {
|
|
|
752
771
|
}
|
|
753
772
|
const RadioInput = /* @__PURE__ */withMods(RadioInput$1, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$A }));
|
|
754
773
|
|
|
755
|
-
var css$
|
|
774
|
+
var css$1p = {"root":"ZRH9cY"};
|
|
756
775
|
|
|
757
776
|
function applySwitchMods(mods) {
|
|
758
777
|
return [
|
|
759
|
-
css$
|
|
778
|
+
css$1p.root,
|
|
760
779
|
`uui-size-${mods.size || settings.sizes.defaults.switch}`,
|
|
761
780
|
'uui-color-primary',
|
|
762
781
|
];
|
|
@@ -820,7 +839,7 @@ var EditMode;
|
|
|
820
839
|
EditMode["INLINE"] = "inline";
|
|
821
840
|
})(EditMode || (EditMode = {}));
|
|
822
841
|
|
|
823
|
-
var textInputCss = {"uui-typography":"
|
|
842
|
+
var textInputCss = {"uui-typography":"pVS-sF","hero-header":"mCEgin","promo-header":"_2OTLgm","uui-critical":"FlrKsi","uui-info":"_--OeNo","uui-success":"cHlf0E","uui-warning":"g45Sjk","uui-highlight":"KkdBYT","uui-typography-size-12":"qKjMFO","uui-typography-size-14":"ryMt5D","uui-typography-size-16":"_-8c8gS","root":"tpd9k0","mode-form":"je1CdM","mode-inline":"doSyGv","mode-cell":"zx-kpK","uuiTypography":"pVS-sF","heroHeader":"mCEgin","promoHeader":"_2OTLgm","uuiCritical":"FlrKsi","uuiInfo":"_--OeNo","uuiSuccess":"cHlf0E","uuiWarning":"g45Sjk","uuiHighlight":"KkdBYT","uuiTypographySize12":"qKjMFO","uuiTypographySize14":"ryMt5D","uuiTypographySize16":"_-8c8gS","modeForm":"je1CdM","modeInline":"doSyGv","modeCell":"zx-kpK"};
|
|
824
843
|
|
|
825
844
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
826
845
|
function applyTextInputMods(mods) {
|
|
@@ -846,22 +865,22 @@ const SearchInput = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
846
865
|
} })));
|
|
847
866
|
});
|
|
848
867
|
|
|
849
|
-
var css$
|
|
868
|
+
var css$1o = {"root":"_0LKW--"};
|
|
850
869
|
|
|
851
|
-
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$
|
|
870
|
+
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$1o.root, 'uui-control-group']);
|
|
852
871
|
|
|
853
872
|
function MultiSwitchComponent(props, ref) {
|
|
854
873
|
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' } }))))));
|
|
855
874
|
}
|
|
856
875
|
const MultiSwitch = /* @__PURE__ */React.forwardRef(MultiSwitchComponent);
|
|
857
876
|
|
|
858
|
-
var css$
|
|
877
|
+
var css$1n = {"uui-typography":"ciPUQF","hero-header":"nhRrkT","promo-header":"WLhj8e","uui-critical":"q150ZZ","uui-info":"iSqHZR","uui-success":"RE-u8S","uui-warning":"j47Bgy","uui-highlight":"qJmBUJ","uui-typography-size-12":"vZa2DQ","uui-typography-size-14":"_6AKohz","uui-typography-size-16":"EkSKCw","root":"Gm24wJ","mode-form":"I9-Tit","mode-cell":"z088yj","uuiTypography":"ciPUQF","heroHeader":"nhRrkT","promoHeader":"WLhj8e","uuiCritical":"q150ZZ","uuiInfo":"iSqHZR","uuiSuccess":"RE-u8S","uuiWarning":"j47Bgy","uuiHighlight":"qJmBUJ","uuiTypographySize12":"vZa2DQ","uuiTypographySize14":"_6AKohz","uuiTypographySize16":"EkSKCw","modeForm":"I9-Tit","modeCell":"z088yj"};
|
|
859
878
|
|
|
860
879
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
861
880
|
function applyNumericInputMods(mods) {
|
|
862
881
|
return [
|
|
863
882
|
textInputCss.root,
|
|
864
|
-
css$
|
|
883
|
+
css$1n.root,
|
|
865
884
|
`uui-size-${mods.size || settings.sizes.defaults.numericInput}`,
|
|
866
885
|
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$2)],
|
|
867
886
|
];
|
|
@@ -876,15 +895,15 @@ const NumericInput = /* @__PURE__ */withMods(NumericInput$1, applyNumericInputMo
|
|
|
876
895
|
};
|
|
877
896
|
});
|
|
878
897
|
|
|
879
|
-
var css$
|
|
898
|
+
var css$1m = {"uui-typography":"l6ZqIK","hero-header":"TPwPit","promo-header":"MLmpQy","uui-critical":"BogZTk","uui-info":"x0-wAD","uui-success":"cw17RX","uui-warning":"xrfO9g","uui-highlight":"ySwAAH","uui-typography-size-12":"InfUKw","uui-typography-size-14":"xXFVJe","uui-typography-size-16":"NPQLGP","root":"-gEmdq","mode-form":"-YQGA2","mode-cell":"b1Ff1I","mode-inline":"fjd2sh","uuiTypography":"l6ZqIK","heroHeader":"TPwPit","promoHeader":"MLmpQy","uuiCritical":"BogZTk","uuiInfo":"x0-wAD","uuiSuccess":"cw17RX","uuiWarning":"xrfO9g","uuiHighlight":"ySwAAH","uuiTypographySize12":"InfUKw","uuiTypographySize14":"xXFVJe","uuiTypographySize16":"NPQLGP","modeForm":"-YQGA2","modeCell":"b1Ff1I","modeInline":"fjd2sh"};
|
|
880
899
|
|
|
881
900
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
882
901
|
function applyTextAreaMods(mods) {
|
|
883
902
|
return [
|
|
884
|
-
css$
|
|
903
|
+
css$1m.root,
|
|
885
904
|
'uui-textarea',
|
|
886
905
|
'uui-size-' + (mods.size || settings.sizes.defaults.textArea),
|
|
887
|
-
css$
|
|
906
|
+
css$1m['mode-' + (mods.mode || DEFAULT_MODE$1)],
|
|
888
907
|
];
|
|
889
908
|
}
|
|
890
909
|
const TextArea = /* @__PURE__ */withMods(TextArea$1, applyTextAreaMods, (props) => {
|
|
@@ -977,16 +996,16 @@ var SvgNotificationInfoFill = function SvgNotificationInfoFill(props, ref) {
|
|
|
977
996
|
};
|
|
978
997
|
var ForwardRef$w = /*#__PURE__*/forwardRef(SvgNotificationInfoFill);
|
|
979
998
|
|
|
980
|
-
var css$
|
|
999
|
+
var css$1l = {"uui-typography":"PMJG-b","hero-header":"O-SC5Z","promo-header":"gsbmdn","uui-critical":"VKPTEA","uui-info":"eCXqCl","uui-success":"_9zjZG-","uui-warning":"jCBUMD","uui-highlight":"JLJ65V","uui-typography-size-12":"_50xFx3","uui-typography-size-14":"aTWZYi","uui-typography-size-16":"U4Od2w","root":"y3WfNT","icon-wrapper":"_3-4P0p","alert-wrapper":"_5fhSly","size-48":"a2K7ZG","size-36":"ouOP9C","action-wrapper":"JdZtRw","action-icon":"siFkBM","action-link":"zJ43Fs","close-icon":"Fu4aiV","main-path":"wClHGr","content":"pRlo3t","uuiTypography":"PMJG-b","heroHeader":"O-SC5Z","promoHeader":"gsbmdn","uuiCritical":"VKPTEA","uuiInfo":"eCXqCl","uuiSuccess":"_9zjZG-","uuiWarning":"jCBUMD","uuiHighlight":"JLJ65V","uuiTypographySize12":"_50xFx3","uuiTypographySize14":"aTWZYi","uuiTypographySize16":"U4Od2w","iconWrapper":"_3-4P0p","alertWrapper":"_5fhSly","size48":"a2K7ZG","size36":"ouOP9C","actionWrapper":"JdZtRw","actionIcon":"siFkBM","actionLink":"zJ43Fs","closeIcon":"Fu4aiV","mainPath":"wClHGr"};
|
|
981
1000
|
|
|
982
|
-
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx('uui-alert', css$
|
|
983
|
-
React.createElement("div", { className: css$
|
|
984
|
-
props.icon && (React.createElement("div", { className: css$
|
|
985
|
-
React.createElement(IconContainer, { icon: props.icon, cx: css$
|
|
986
|
-
React.createElement("div", { className: css$
|
|
1001
|
+
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx('uui-alert', css$1l.root, css$1l.alertWrapper, props.color && `uui-color-${props.color}`, props.cx, (props.size === '36' ? css$1l.size36 : css$1l.size48)) }, props.rawProps),
|
|
1002
|
+
React.createElement("div", { className: css$1l.mainPath },
|
|
1003
|
+
props.icon && (React.createElement("div", { className: css$1l.iconWrapper },
|
|
1004
|
+
React.createElement(IconContainer, { icon: props.icon, cx: css$1l.actionIcon }))),
|
|
1005
|
+
React.createElement("div", { className: css$1l.content },
|
|
987
1006
|
props.children,
|
|
988
|
-
props.actions && (React.createElement("div", { className: css$
|
|
989
|
-
props.onClose && React.createElement(IconButton, { icon: ForwardRef$Q, color: "neutral", onClick: props.onClose, cx: css$
|
|
1007
|
+
props.actions && (React.createElement("div", { className: css$1l.actionWrapper }, props.actions.map((action) => (React.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$1l.actionLink, size: (props === null || props === void 0 ? void 0 : props.size) === '36' ? '24' : '30' })))))),
|
|
1008
|
+
props.onClose && React.createElement(IconButton, { icon: ForwardRef$Q, color: "neutral", onClick: props.onClose, cx: css$1l.closeIcon })))));
|
|
990
1009
|
const WarningAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$y, color: "warning", ref: ref }, props)));
|
|
991
1010
|
const SuccessAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$z, color: "success", ref: ref }, props)));
|
|
992
1011
|
const HintAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$w, color: "info", ref: ref }, props)));
|
|
@@ -994,18 +1013,18 @@ const ErrorAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createE
|
|
|
994
1013
|
|
|
995
1014
|
const Dropdown = /* @__PURE__ */withMods(Dropdown$1);
|
|
996
1015
|
|
|
997
|
-
var css$
|
|
1016
|
+
var css$1k = {"root":"XFl9F-"};
|
|
998
1017
|
|
|
999
1018
|
function applyDropdownContainerMods(mods) {
|
|
1000
1019
|
return [
|
|
1001
|
-
css$
|
|
1020
|
+
css$1k.root,
|
|
1002
1021
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1003
1022
|
mods.padding && `padding-${mods.padding}`,
|
|
1004
1023
|
];
|
|
1005
1024
|
}
|
|
1006
1025
|
const DropdownContainer = /* @__PURE__ */withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
1007
1026
|
|
|
1008
|
-
var css$
|
|
1027
|
+
var css$1j = {"uui-typography":"tHnCx1","hero-header":"FCXIwa","promo-header":"OBTgKD","uui-critical":"CyBap-","uui-info":"aRcBOY","uui-success":"Q-Rjd0","uui-warning":"Bq3WFX","uui-highlight":"-cX8U7","uui-typography-size-12":"HDH3fz","uui-typography-size-14":"pJoBlV","uui-typography-size-16":"uu6jAZ","submenu-root-item-rtl":"zuuDqN","icon-after":"_1JPZz3","submenu-root-item":"gSVcWt","icon-check":"b72yW6","splitter-root":"qy9-We","splitter":"ByAt6-","header-root":"Df-Rn0","item-root":"_2keaAd","icon":"Gu06Zv","link":"QQsoh4","indent":"Rminog","selected-mark":"YW-Elt","uuiTypography":"tHnCx1","heroHeader":"FCXIwa","promoHeader":"OBTgKD","uuiCritical":"CyBap-","uuiInfo":"aRcBOY","uuiSuccess":"Q-Rjd0","uuiWarning":"Bq3WFX","uuiHighlight":"-cX8U7","uuiTypographySize12":"HDH3fz","uuiTypographySize14":"pJoBlV","uuiTypographySize16":"uu6jAZ","submenuRootItemRtl":"zuuDqN","iconAfter":"_1JPZz3","submenuRootItem":"gSVcWt","iconCheck":"b72yW6","splitterRoot":"qy9-We","headerRoot":"Df-Rn0","itemRoot":"_2keaAd","selectedMark":"YW-Elt"};
|
|
1009
1028
|
|
|
1010
1029
|
var IDropdownControlKeys;
|
|
1011
1030
|
(function (IDropdownControlKeys) {
|
|
@@ -1066,17 +1085,17 @@ const DropdownMenuButton = /* @__PURE__ */React__default.forwardRef((props, ref)
|
|
|
1066
1085
|
const getMenuButtonContent = () => {
|
|
1067
1086
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1068
1087
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1069
|
-
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$
|
|
1088
|
+
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$1j.icon, iconPosition === 'right' ? css$1j.iconAfter : css$1j.iconBefore) }));
|
|
1070
1089
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1071
1090
|
isIconBefore && iconElement,
|
|
1072
|
-
React__default.createElement(Text$1, { cx: props.indent && css$
|
|
1091
|
+
React__default.createElement(Text$1, { cx: props.indent && css$1j.indent }, caption),
|
|
1073
1092
|
isIconAfter && (React__default.createElement(React__default.Fragment, null,
|
|
1074
1093
|
React__default.createElement(FlexSpacer, null),
|
|
1075
1094
|
iconElement))));
|
|
1076
1095
|
};
|
|
1077
1096
|
const isAnchor = Boolean(link || href);
|
|
1078
|
-
const itemClassNames = cx$1(props.cx, css$
|
|
1079
|
-
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$
|
|
1097
|
+
const itemClassNames = cx$1(props.cx, css$1j.itemRoot, isDisabled && uuiMod.disabled, isActive && uuiMod.active, isOpen && uuiMod.opened);
|
|
1098
|
+
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$1j.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: {
|
|
1080
1099
|
tabIndex: isDisabled ? -1 : 0,
|
|
1081
1100
|
role: 'menuitem',
|
|
1082
1101
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
@@ -1084,15 +1103,15 @@ const DropdownMenuButton = /* @__PURE__ */React__default.forwardRef((props, ref)
|
|
|
1084
1103
|
getMenuButtonContent(),
|
|
1085
1104
|
isSelected && (React__default.createElement(React__default.Fragment, null,
|
|
1086
1105
|
React__default.createElement(FlexSpacer, null),
|
|
1087
|
-
React__default.createElement(IconContainer, { icon: systemIcons.accept, cx: css$
|
|
1106
|
+
React__default.createElement(IconContainer, { icon: systemIcons.accept, cx: css$1j.selectedMark })))));
|
|
1088
1107
|
});
|
|
1089
1108
|
function DropdownMenuSplitter(props) {
|
|
1090
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
1091
|
-
React__default.createElement("hr", { className: css$
|
|
1109
|
+
return (React__default.createElement("div", { className: cx$1(props.cx, css$1j.splitterRoot) },
|
|
1110
|
+
React__default.createElement("hr", { className: css$1j.splitter })));
|
|
1092
1111
|
}
|
|
1093
1112
|
function DropdownMenuHeader(props) {
|
|
1094
|
-
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$
|
|
1095
|
-
React__default.createElement("span", { className: css$
|
|
1113
|
+
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$1j.headerRoot) },
|
|
1114
|
+
React__default.createElement("span", { className: css$1j.header }, props.caption)));
|
|
1096
1115
|
}
|
|
1097
1116
|
function DropdownSubMenu(props) {
|
|
1098
1117
|
const subMenuModifiers = [
|
|
@@ -1114,7 +1133,7 @@ function DropdownSubMenu(props) {
|
|
|
1114
1133
|
const isRtl = (window === null || window === void 0 ? void 0 : window.document.dir) === 'rtl';
|
|
1115
1134
|
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) => {
|
|
1116
1135
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
1117
|
-
return (React__default.createElement(DropdownMenuButton, Object.assign({ cx: cx$1(isRtl ? css$
|
|
1136
|
+
return (React__default.createElement(DropdownMenuButton, Object.assign({ cx: cx$1(isRtl ? css$1j.submenuRootItemRtl : css$1j.submenuRootItem), icon: systemIcons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
1118
1137
|
} }));
|
|
1119
1138
|
}
|
|
1120
1139
|
function DropdownMenuSwitchButton(props) {
|
|
@@ -1131,29 +1150,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1131
1150
|
onHandleValueChange(!isSelected);
|
|
1132
1151
|
}
|
|
1133
1152
|
};
|
|
1134
|
-
return (React__default.createElement(FlexRow$1, { cx: cx$1(props.cx, css$
|
|
1135
|
-
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$
|
|
1153
|
+
return (React__default.createElement(FlexRow$1, { cx: cx$1(props.cx, css$1j.itemRoot, isDisabled && uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
1154
|
+
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$1j.iconBefore }),
|
|
1136
1155
|
React__default.createElement(Text$1, null, caption),
|
|
1137
1156
|
React__default.createElement(FlexSpacer, null),
|
|
1138
1157
|
React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1139
1158
|
}
|
|
1140
1159
|
|
|
1141
|
-
var css$
|
|
1160
|
+
var css$1i = {"uui-typography":"DyjuLb","hero-header":"EWSlpK","promo-header":"OF1tzH","uui-critical":"_4Z7zvA","uui-info":"eIN72N","uui-success":"wqyN0p","uui-warning":"kABoy-","uui-highlight":"ivsJ18","uui-typography-size-12":"E7YHDb","uui-typography-size-14":"Z5wU-M","uui-typography-size-16":"u0sEjd","root":"B3wNKp","mode-block":"khw55M","mode-inline":"_2Tu88U","padding-0":"PkWsB-","padding-6":"BSJ-82","padding-12":"sC2Gx4","padding-18":"BaYnDn","uuiTypography":"DyjuLb","heroHeader":"EWSlpK","promoHeader":"OF1tzH","uuiCritical":"_4Z7zvA","uuiInfo":"eIN72N","uuiSuccess":"wqyN0p","uuiWarning":"kABoy-","uuiHighlight":"ivsJ18","uuiTypographySize12":"E7YHDb","uuiTypographySize14":"Z5wU-M","uuiTypographySize16":"u0sEjd","modeBlock":"khw55M","modeInline":"_2Tu88U","padding0":"PkWsB-","padding6":"BSJ-82","padding12":"sC2Gx4","padding18":"BaYnDn"};
|
|
1142
1161
|
|
|
1143
1162
|
function applyAccordionMods(mods) {
|
|
1144
1163
|
return [
|
|
1145
|
-
css$
|
|
1146
|
-
css$
|
|
1147
|
-
mods.padding && css$
|
|
1164
|
+
css$1i.root,
|
|
1165
|
+
css$1i[`mode-${mods.mode || 'block'}`],
|
|
1166
|
+
mods.padding && css$1i['padding-' + mods.padding],
|
|
1148
1167
|
];
|
|
1149
1168
|
}
|
|
1150
1169
|
const Accordion = /* @__PURE__ */withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
1151
1170
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons.foldingArrow,
|
|
1152
1171
|
}));
|
|
1153
1172
|
|
|
1154
|
-
var css$
|
|
1173
|
+
var css$1h = {"uui-typography":"_0jAbuc","hero-header":"iozeTp","promo-header":"ZcvPs0","uui-critical":"_45qA6c","uui-info":"-FTf7X","uui-success":"IyLK7Y","uui-warning":"bBe8Y9","uui-highlight":"dtMFxJ","uui-typography-size-12":"bq7bbQ","uui-typography-size-14":"eFexoQ","uui-typography-size-16":"EeNwE-","root":"V07F8U","border-top":"_4nzZq1","border-bottom":"HP0Fcb","top-shadow":"_-0hCEK","padding-6":"_2aYHWt","padding-12":"U2c7U-","padding-18":"yK06l4","padding-24":"_7DwiSL","margin-24":"-P-E-A","margin-12":"_34iKbG","vPadding-12":"_82BmZc","vPadding-18":"T0C8jO","vPadding-24":"uK8wUN","vPadding-36":"Zz8rJB","vPadding-48":"Ms9IKw","spacing-6":"_7Fh8Qs","spacing-12":"ozNo8h","spacing-18":"S9bOmm","uui-surface-main":"eL7dye","uuiTypography":"_0jAbuc","heroHeader":"iozeTp","promoHeader":"ZcvPs0","uuiCritical":"_45qA6c","uuiInfo":"-FTf7X","uuiSuccess":"IyLK7Y","uuiWarning":"bBe8Y9","uuiHighlight":"dtMFxJ","uuiTypographySize12":"bq7bbQ","uuiTypographySize14":"eFexoQ","uuiTypographySize16":"EeNwE-","borderTop":"_4nzZq1","borderBottom":"HP0Fcb","topShadow":"_-0hCEK","padding6":"_2aYHWt","padding12":"U2c7U-","padding18":"yK06l4","padding24":"_7DwiSL","margin24":"-P-E-A","margin12":"_34iKbG","vPadding12":"_82BmZc","vPadding18":"T0C8jO","vPadding24":"uK8wUN","vPadding36":"Zz8rJB","vPadding48":"Ms9IKw","spacing6":"_7Fh8Qs","spacing12":"ozNo8h","spacing18":"S9bOmm","uuiSurfaceMain":"eL7dye"};
|
|
1155
1174
|
|
|
1156
|
-
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$
|
|
1175
|
+
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$1h.flexCell]);
|
|
1157
1176
|
|
|
1158
1177
|
const FlexRow = /* @__PURE__ */withMods(FlexRow$1, (props) => {
|
|
1159
1178
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1162,45 +1181,45 @@ const FlexRow = /* @__PURE__ */withMods(FlexRow$1, (props) => {
|
|
|
1162
1181
|
}
|
|
1163
1182
|
}
|
|
1164
1183
|
return [
|
|
1165
|
-
css$
|
|
1184
|
+
css$1h.root,
|
|
1166
1185
|
props.size !== null && 'uui-size-' + (props.size || '36'),
|
|
1167
|
-
props.padding && css$
|
|
1168
|
-
props.vPadding && css$
|
|
1169
|
-
props.margin && css$
|
|
1170
|
-
props.topShadow && css$
|
|
1171
|
-
props.borderBottom && css$
|
|
1172
|
-
props.borderTop && css$
|
|
1173
|
-
props.spacing && css$
|
|
1174
|
-
props.background && css$
|
|
1186
|
+
props.padding && css$1h['padding-' + props.padding],
|
|
1187
|
+
props.vPadding && css$1h['vPadding-' + props.vPadding],
|
|
1188
|
+
props.margin && css$1h['margin-' + props.margin],
|
|
1189
|
+
props.topShadow && css$1h.topShadow,
|
|
1190
|
+
props.borderBottom && css$1h.borderBottom,
|
|
1191
|
+
props.borderTop && css$1h.borderTop,
|
|
1192
|
+
props.spacing && css$1h['spacing-' + props.spacing],
|
|
1193
|
+
props.background && css$1h[`uui-${props.background}`],
|
|
1175
1194
|
];
|
|
1176
1195
|
});
|
|
1177
1196
|
|
|
1178
|
-
var css$
|
|
1197
|
+
var css$1g = {"root":"_-0E942","margin-24":"zZT5i7","padding-12":"Q0VJx1","padding-24":"QkdTxg","shadow":"Di5Xld","uui-surface-main":"_--AiN4","margin24":"zZT5i7","padding12":"Q0VJx1","padding24":"QkdTxg","uuiSurfaceMain":"_--AiN4"};
|
|
1179
1198
|
|
|
1180
1199
|
const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
|
|
1181
1200
|
'uui-panel',
|
|
1182
|
-
css$
|
|
1183
|
-
props.shadow && css$
|
|
1184
|
-
props.margin && css$
|
|
1185
|
-
props.background && css$
|
|
1201
|
+
css$1g.root,
|
|
1202
|
+
props.shadow && css$1g.shadow,
|
|
1203
|
+
props.margin && css$1g['margin-' + props.margin],
|
|
1204
|
+
props.background && css$1g[`uui-${props.background}`],
|
|
1186
1205
|
]);
|
|
1187
1206
|
|
|
1188
|
-
var css$
|
|
1207
|
+
var css$1f = {"root":"g0hTH8"};
|
|
1189
1208
|
|
|
1190
1209
|
function applyTooltipMods(mods) {
|
|
1191
1210
|
return [
|
|
1192
|
-
css$
|
|
1211
|
+
css$1f.root,
|
|
1193
1212
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1194
1213
|
];
|
|
1195
1214
|
}
|
|
1196
1215
|
const Tooltip = /* @__PURE__ */withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
1197
1216
|
|
|
1198
|
-
var css$
|
|
1217
|
+
var css$1e = {"uui-typography":"MX-y98","hero-header":"OMzxmd","promo-header":"zEsayJ","uui-critical":"uDz9Uv","uui-info":"u6Q-WS","uui-success":"CqLDe7","uui-warning":"Ry5Eqf","uui-highlight":"cCEdN5","uui-typography-size-12":"zk-bpK","uui-typography-size-14":"cKTaa8","uui-typography-size-16":"_5ijBba","root":"UF341m","uuiTypography":"MX-y98","heroHeader":"OMzxmd","promoHeader":"zEsayJ","uuiCritical":"uDz9Uv","uuiInfo":"u6Q-WS","uuiSuccess":"CqLDe7","uuiWarning":"Ry5Eqf","uuiHighlight":"cCEdN5","uuiTypographySize12":"zk-bpK","uuiTypographySize14":"cKTaa8","uuiTypographySize16":"_5ijBba"};
|
|
1199
1218
|
|
|
1200
1219
|
function applyLabeledInputMods(mods) {
|
|
1201
1220
|
return [
|
|
1202
1221
|
'uui-labeled-input',
|
|
1203
|
-
css$
|
|
1222
|
+
css$1e.root,
|
|
1204
1223
|
'uui-size-' + (mods.size || settings.sizes.defaults.labeledInput),
|
|
1205
1224
|
];
|
|
1206
1225
|
}
|
|
@@ -1209,7 +1228,7 @@ const LabeledInput = /* @__PURE__ */withMods(uuiComponents.LabeledInput, applyLa
|
|
|
1209
1228
|
infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$w : ForwardRef$L),
|
|
1210
1229
|
}));
|
|
1211
1230
|
|
|
1212
|
-
var css$
|
|
1231
|
+
var css$1d = {"root":"tlUb9Z"};
|
|
1213
1232
|
|
|
1214
1233
|
function RadioGroup(props) {
|
|
1215
1234
|
const direction = props.direction || 'vertical';
|
|
@@ -1218,34 +1237,34 @@ function RadioGroup(props) {
|
|
|
1218
1237
|
props.onValueChange(newVal);
|
|
1219
1238
|
}
|
|
1220
1239
|
};
|
|
1221
|
-
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$
|
|
1240
|
+
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$1d.root, directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur }, props.rawProps), props.items.map((i) => {
|
|
1222
1241
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1223
1242
|
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)));
|
|
1224
1243
|
})));
|
|
1225
1244
|
}
|
|
1226
1245
|
|
|
1227
|
-
var css$
|
|
1246
|
+
var css$1c = {"root":"tyh2l2"};
|
|
1228
1247
|
|
|
1229
1248
|
function applyScrollBarsMods() {
|
|
1230
1249
|
return [
|
|
1231
|
-
css$
|
|
1250
|
+
css$1c.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1232
1251
|
];
|
|
1233
1252
|
}
|
|
1234
1253
|
const ScrollBars = /* @__PURE__ */withMods(ScrollBars$1, applyScrollBarsMods);
|
|
1235
1254
|
|
|
1236
|
-
var css$
|
|
1255
|
+
var css$1b = {"scroll-container":"_0Y2R4G","list-container":"skRcYH","scrollContainer":"_0Y2R4G","listContainer":"skRcYH"};
|
|
1237
1256
|
|
|
1238
|
-
var css$
|
|
1257
|
+
var css$1a = {"root":"zKxj1u"};
|
|
1239
1258
|
|
|
1240
|
-
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$
|
|
1259
|
+
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$1a.root]);
|
|
1241
1260
|
|
|
1242
|
-
var css$
|
|
1261
|
+
var css$19 = {"uui-typography":"QQT02F","hero-header":"_7xL5v0","promo-header":"TUK0Yv","uui-critical":"Isx5vX","uui-info":"NApKTL","uui-success":"_7EuJxt","uui-warning":"WF1XeS","uui-highlight":"NokLLe","uui-typography-size-12":"tAFKJ8","uui-typography-size-14":"SOXVPP","uui-typography-size-16":"pFNMB8","root":"VH1wMu","uuiTypography":"QQT02F","heroHeader":"_7xL5v0","promoHeader":"TUK0Yv","uuiCritical":"Isx5vX","uuiInfo":"NApKTL","uuiSuccess":"_7EuJxt","uuiWarning":"WF1XeS","uuiHighlight":"NokLLe","uuiTypographySize12":"tAFKJ8","uuiTypographySize14":"SOXVPP","uuiTypographySize16":"pFNMB8"};
|
|
1243
1262
|
|
|
1244
1263
|
const DEFAULT_FILL = 'solid';
|
|
1245
1264
|
function applyBadgeMods(mods) {
|
|
1246
1265
|
return [
|
|
1247
1266
|
'uui-badge',
|
|
1248
|
-
css$
|
|
1267
|
+
css$19.root,
|
|
1249
1268
|
`uui-size-${mods.size || settings.sizes.defaults.badge}`,
|
|
1250
1269
|
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1251
1270
|
`uui-color-${mods.color || 'info'}`,
|
|
@@ -1263,11 +1282,11 @@ const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1263
1282
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1264
1283
|
});
|
|
1265
1284
|
|
|
1266
|
-
var css$
|
|
1285
|
+
var css$18 = {"uui-typography":"_9DfYYD","hero-header":"_8lChTV","promo-header":"Ub7TX3","uui-critical":"Z2ayWT","uui-info":"mPZILn","uui-success":"pZheNZ","uui-warning":"c-1M5C","uui-highlight":"Ma181W","uui-typography-size-12":"M-WiIU","uui-typography-size-14":"_-8iLxb","uui-typography-size-16":"qeYpiG","root":"CMJd6y","uuiTypography":"_9DfYYD","heroHeader":"_8lChTV","promoHeader":"Ub7TX3","uuiCritical":"Z2ayWT","uuiInfo":"mPZILn","uuiSuccess":"pZheNZ","uuiWarning":"c-1M5C","uuiHighlight":"Ma181W","uuiTypographySize12":"M-WiIU","uuiTypographySize14":"_-8iLxb","uuiTypographySize16":"qeYpiG"};
|
|
1267
1286
|
|
|
1268
1287
|
function applyTagMods(props) {
|
|
1269
1288
|
return [
|
|
1270
|
-
css$
|
|
1289
|
+
css$18.root,
|
|
1271
1290
|
`uui-size-${props.size || settings.sizes.defaults.tag}`,
|
|
1272
1291
|
`uui-color-${props.color || 'neutral'}`,
|
|
1273
1292
|
`uui-fill-${props.fill || 'solid'}`,
|
|
@@ -1287,10 +1306,10 @@ const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1287
1306
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1288
1307
|
});
|
|
1289
1308
|
|
|
1290
|
-
var css$
|
|
1309
|
+
var css$17 = {"root":"wpX2u6","uui-spinner":"AeYkFy","uuiSpinner":"AeYkFy"};
|
|
1291
1310
|
|
|
1292
1311
|
function applySpinnerMods() {
|
|
1293
|
-
return [css$
|
|
1312
|
+
return [css$17.root, 'uui-spinner'];
|
|
1294
1313
|
}
|
|
1295
1314
|
const Spinner = /* @__PURE__ */withMods(Spinner$1, applySpinnerMods);
|
|
1296
1315
|
|
|
@@ -1324,57 +1343,57 @@ var SvgNavigationChevronRightOutline = function SvgNavigationChevronRightOutline
|
|
|
1324
1343
|
};
|
|
1325
1344
|
var ForwardRef$u = /*#__PURE__*/forwardRef(SvgNavigationChevronRightOutline);
|
|
1326
1345
|
|
|
1327
|
-
var css$
|
|
1346
|
+
var css$16 = {"root":"LgQr41","page":"h-ue9o","spacer":"_6lTnzR","mode-ghost":"rMWHAS","modeGhost":"rMWHAS"};
|
|
1328
1347
|
|
|
1329
1348
|
function Paginator(props) {
|
|
1330
|
-
const renderPaginator = (params) => (React__default.createElement("nav", Object.assign({ role: "navigation", className: cx(css$
|
|
1349
|
+
const renderPaginator = (params) => (React__default.createElement("nav", Object.assign({ role: "navigation", className: cx(css$16.root, 'uui-paginator', `uui-size-${props.size || settings.sizes.defaults.paginator}`) }, params.rawProps),
|
|
1331
1350
|
React__default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$v, onClick: params.goToPrev, isDisabled: params.isFirst || props.isDisabled, fill: "outline", color: "secondary" }),
|
|
1332
1351
|
params.pages.map((page, index) => {
|
|
1333
1352
|
if (page.type === 'spacer') {
|
|
1334
|
-
return (React__default.createElement(Button, { cx: cx(css$
|
|
1353
|
+
return (React__default.createElement(Button, { cx: cx(css$16.spacer, css$16.page), size: props.size || settings.sizes.defaults.paginator, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
|
|
1335
1354
|
}
|
|
1336
1355
|
else {
|
|
1337
|
-
return (React__default.createElement(Button, { cx: cx(css$
|
|
1356
|
+
return (React__default.createElement(Button, { cx: cx(css$16[`mode-${!page.isActive && 'ghost'}`], css$16.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 }));
|
|
1338
1357
|
}
|
|
1339
1358
|
}),
|
|
1340
1359
|
React__default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$u, onClick: params.goToNext, isDisabled: params.isLast || props.isDisabled, fill: "outline", color: "secondary" })));
|
|
1341
1360
|
return React__default.createElement(Paginator$1, Object.assign({}, props, { render: renderPaginator }));
|
|
1342
1361
|
}
|
|
1343
1362
|
|
|
1344
|
-
var css$
|
|
1363
|
+
var css$15 = {"root":"Weqwl7","progress-bar":"XGajMm","progressBar-indeterminate":"FsuhtI","size-12":"ko4vwv","size-18":"UTWsI7","size-24":"_9LEPq7","progressBar":"XGajMm","progressBarIndeterminate":"FsuhtI","size12":"ko4vwv","size18":"UTWsI7","size24":"_9LEPq7"};
|
|
1345
1364
|
|
|
1346
1365
|
const IndeterminateBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1347
|
-
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$
|
|
1348
|
-
React.createElement("div", { className: cx(css$
|
|
1366
|
+
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$15.root, css$15[`size-${props.size || 12}`]) },
|
|
1367
|
+
React.createElement("div", { className: cx(css$15.progressBar) })));
|
|
1349
1368
|
});
|
|
1350
1369
|
|
|
1351
|
-
var css$
|
|
1370
|
+
var css$14 = {"root":"ZDxVEa","striped":"Vo5Ms-","animate-stripes":"uh2CtQ","size-12":"Ayaedz","size-18":"P1f-vL","size-24":"ptTFaV","animateStripes":"uh2CtQ","size12":"Ayaedz","size18":"P1f-vL","size24":"ptTFaV"};
|
|
1352
1371
|
|
|
1353
1372
|
const DEFAULT_SIZE = '12';
|
|
1354
1373
|
function applyProgressBarMods(mods) {
|
|
1355
1374
|
const size = mods.size || DEFAULT_SIZE;
|
|
1356
1375
|
return [
|
|
1357
|
-
css$
|
|
1358
|
-
css$
|
|
1359
|
-
mods.striped && css$
|
|
1376
|
+
css$14.root,
|
|
1377
|
+
css$14[`size-${size}`],
|
|
1378
|
+
mods.striped && css$14.striped,
|
|
1360
1379
|
];
|
|
1361
1380
|
}
|
|
1362
1381
|
const ProgressBar = /* @__PURE__ */withMods(uuiComponents.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1363
1382
|
hideLabel: props.hideLabel || props.striped,
|
|
1364
1383
|
}));
|
|
1365
1384
|
|
|
1366
|
-
var css$
|
|
1385
|
+
var css$13 = {"root":"UD-QPC"};
|
|
1367
1386
|
|
|
1368
1387
|
const IndicatorBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1369
1388
|
const { progress } = props;
|
|
1370
|
-
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$
|
|
1389
|
+
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$13.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$13.root, props.cx) }));
|
|
1371
1390
|
});
|
|
1372
1391
|
|
|
1373
|
-
var css$
|
|
1392
|
+
var css$12 = {"root":"ztzoSG"};
|
|
1374
1393
|
|
|
1375
1394
|
const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1376
1395
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
1377
|
-
css$
|
|
1396
|
+
css$12.root,
|
|
1378
1397
|
`uui-size-${props.size || settings.sizes.defaults.statusIndicator}`,
|
|
1379
1398
|
'uui-status_indicator',
|
|
1380
1399
|
`uui-color-${props.color || 'neutral'}`,
|
|
@@ -1385,7 +1404,7 @@ const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1385
1404
|
React__default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1386
1405
|
});
|
|
1387
1406
|
|
|
1388
|
-
var css$
|
|
1407
|
+
var css$11 = {"drag-handle":"zCNLEd","icon-container":"HB-b1h","dragHandle":"zCNLEd","iconContainer":"HB-b1h"};
|
|
1389
1408
|
|
|
1390
1409
|
function DataRowAddons(props) {
|
|
1391
1410
|
var _a, _b;
|
|
@@ -1397,19 +1416,19 @@ function DataRowAddons(props) {
|
|
|
1397
1416
|
return settings.sizes.rowAddons.indentWidth[props.size] || settings.sizes.rowAddons.defaults.indentWidth;
|
|
1398
1417
|
};
|
|
1399
1418
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1400
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__default.createElement(DragHandle, { key: "dh", cx: css$
|
|
1419
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__default.createElement(DragHandle, { key: "dh", cx: css$11.dragHandle, rawProps: Object.assign({}, props.eventHandlers) }),
|
|
1401
1420
|
((_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 })),
|
|
1402
1421
|
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: {
|
|
1403
1422
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1404
1423
|
role: 'button',
|
|
1405
1424
|
}, key: "icon", icon: ForwardRef$P, cx: [
|
|
1406
|
-
uuiElement.foldingArrow, uuiMarkers.clickable, css$
|
|
1425
|
+
uuiElement.foldingArrow, uuiMarkers.clickable, css$11.iconContainer,
|
|
1407
1426
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.sizes.rowAddons.icon[props.size] || settings.sizes.rowAddons.defaults.icon }))))));
|
|
1408
1427
|
}
|
|
1409
1428
|
|
|
1410
|
-
var css
|
|
1429
|
+
var css$10 = {"root":"oNClxd"};
|
|
1411
1430
|
|
|
1412
|
-
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css
|
|
1431
|
+
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$10.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__default.createElement(Spinner, null)) }));
|
|
1413
1432
|
|
|
1414
1433
|
const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1415
1434
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = useVirtualList({
|
|
@@ -1425,7 +1444,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1425
1444
|
var _a;
|
|
1426
1445
|
return ((_a = props.renderRows) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
1427
1446
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1428
|
-
})) || (React.createElement("div", { className: css$
|
|
1447
|
+
})) || (React.createElement("div", { className: css$1b.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1429
1448
|
React.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1430
1449
|
};
|
|
1431
1450
|
const renderView = ({ style }) => (React.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
@@ -1435,7 +1454,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1435
1454
|
return;
|
|
1436
1455
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1437
1456
|
}, []);
|
|
1438
|
-
return (React.createElement(ScrollBars, { cx: cx$1(css$
|
|
1457
|
+
return (React.createElement(ScrollBars, { cx: cx$1(css$1b.scrollContainer, props.cx, {
|
|
1439
1458
|
[uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1440
1459
|
[uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1441
1460
|
[uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -1448,7 +1467,7 @@ const VirtualListView = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1448
1467
|
React.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
1449
1468
|
});
|
|
1450
1469
|
|
|
1451
|
-
var css
|
|
1470
|
+
var css$$ = {"root":"-FfvPK"};
|
|
1452
1471
|
|
|
1453
1472
|
function CheckboxGroup(props) {
|
|
1454
1473
|
const currentValue = props.value || [];
|
|
@@ -1464,60 +1483,16 @@ function CheckboxGroup(props) {
|
|
|
1464
1483
|
}
|
|
1465
1484
|
props.onValueChange(newSelection);
|
|
1466
1485
|
};
|
|
1467
|
-
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css
|
|
1486
|
+
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$$.root, directionMode[direction], props.cx) }, props.rawProps), props.items.map((i) => {
|
|
1468
1487
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1469
1488
|
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)));
|
|
1470
1489
|
})));
|
|
1471
1490
|
}
|
|
1472
1491
|
|
|
1473
|
-
var css$
|
|
1474
|
-
|
|
1475
|
-
function applyTextMods(mods) {
|
|
1476
|
-
return [
|
|
1477
|
-
css$Z.root,
|
|
1478
|
-
'uui-text',
|
|
1479
|
-
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
1480
|
-
(mods.size !== 'none' || mods.lineHeight) && css$Z.lineHeight,
|
|
1481
|
-
(mods.size !== 'none' || mods.fontSize) && css$Z.fontSize,
|
|
1482
|
-
`uui-color-${mods.color || 'primary'}`,
|
|
1483
|
-
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
1484
|
-
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
1485
|
-
'uui-typography',
|
|
1486
|
-
];
|
|
1487
|
-
}
|
|
1488
|
-
const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props) => {
|
|
1489
|
-
var _a;
|
|
1490
|
-
const style = ((_a = props === null || props === void 0 ? void 0 : props.rawProps) === null || _a === void 0 ? void 0 : _a.style) || {};
|
|
1491
|
-
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
1492
|
-
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
1493
|
-
return {
|
|
1494
|
-
rawProps: Object.assign(Object.assign({}, props === null || props === void 0 ? void 0 : props.rawProps), { style: style }),
|
|
1495
|
-
};
|
|
1496
|
-
});
|
|
1497
|
-
|
|
1498
|
-
var css$Y = {"root":"St4c-s","loading-word":"-DYCSx","animated-loading":"d0oAb0","skeleton_loading":"_2oky-D","loadingWord":"-DYCSx","animatedLoading":"d0oAb0","skeletonLoading":"_2oky-D"};
|
|
1499
|
-
|
|
1500
|
-
const TextPlaceholder = (props) => {
|
|
1501
|
-
const pattern = ' ';
|
|
1502
|
-
const text = React.useMemo(() => {
|
|
1503
|
-
const words = [];
|
|
1504
|
-
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
1505
|
-
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
1506
|
-
words.push(pattern.repeat(lengthWord));
|
|
1507
|
-
}
|
|
1508
|
-
return words;
|
|
1509
|
-
}, [props.wordsCount]);
|
|
1510
|
-
return (React.createElement("div", Object.assign({ "aria-busy": true, className: cx(css$Y.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React.createElement("span", { key: index, className: cx([
|
|
1511
|
-
props.cx, css$Y.loadingWord, !props.isNotAnimated && css$Y.animatedLoading,
|
|
1512
|
-
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
1513
|
-
};
|
|
1514
|
-
|
|
1515
|
-
const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
1516
|
-
|
|
1517
|
-
var css$X = {"uui-typography":"_0ccqKC","hero-header":"KckQiI","promo-header":"KxKPiL","uui-critical":"k1dXpL","uui-info":"zMB1fH","uui-success":"SUU4Hp","uui-warning":"pNaUE-","uui-highlight":"UfmBTR","uui-typography-size-12":"ywb3fi","uui-typography-size-14":"_4FQGnt","uui-typography-size-16":"_7NAAYY","root":"ckpq2c","modal-blocker":"axZzJa","animateModalBlocker":"X6GbLJ","modal":"ICz2Zj","modal-footer":"y8VUNA","modal-header":"r-aW-Z","uuiTypography":"_0ccqKC","heroHeader":"KckQiI","promoHeader":"KxKPiL","uuiCritical":"k1dXpL","uuiInfo":"zMB1fH","uuiSuccess":"SUU4Hp","uuiWarning":"pNaUE-","uuiHighlight":"UfmBTR","uuiTypographySize12":"ywb3fi","uuiTypographySize14":"_4FQGnt","uuiTypographySize16":"_7NAAYY","modalBlocker":"axZzJa","modalFooter":"y8VUNA","modalHeader":"r-aW-Z"};
|
|
1492
|
+
var css$_ = {"uui-typography":"FUCXyg","hero-header":"Ga-xKu","promo-header":"_9-pY4n","uui-critical":"WvUfMM","uui-info":"ACzlJD","uui-success":"-HTwUf","uui-warning":"gxdOZq","uui-highlight":"DAldhQ","uui-typography-size-12":"_72J-3g","uui-typography-size-14":"eKNsN9","uui-typography-size-16":"_16-Hos","root":"P4aRqW","modal-blocker":"YEU1ei","animateModalBlocker":"vb0B43","modal":"TDvoRu","modal-footer":"czUmdM","modal-header":"C-bf7F","uuiTypography":"FUCXyg","heroHeader":"Ga-xKu","promoHeader":"_9-pY4n","uuiCritical":"WvUfMM","uuiInfo":"ACzlJD","uuiSuccess":"-HTwUf","uuiWarning":"gxdOZq","uuiHighlight":"DAldhQ","uuiTypographySize12":"_72J-3g","uuiTypographySize14":"eKNsN9","uuiTypographySize16":"_16-Hos","modalBlocker":"YEU1ei","modalFooter":"czUmdM","modalHeader":"C-bf7F"};
|
|
1518
1493
|
|
|
1519
|
-
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$
|
|
1520
|
-
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$
|
|
1494
|
+
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$_.modalBlocker]);
|
|
1495
|
+
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$_.root, css$_.modal], (props) => {
|
|
1521
1496
|
const width = props.width || settings.sizes.modal.window.defaults.width;
|
|
1522
1497
|
const height = props.height || 'auto';
|
|
1523
1498
|
const maxHeight = isMobile() ? '100dvh' : (props.maxHeight || '80dvh');
|
|
@@ -1529,8 +1504,8 @@ const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$X.root, cs
|
|
|
1529
1504
|
});
|
|
1530
1505
|
class ModalHeader extends React__default.Component {
|
|
1531
1506
|
render() {
|
|
1532
|
-
return (React__default.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "
|
|
1533
|
-
this.props.title && (React__default.createElement(
|
|
1507
|
+
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 },
|
|
1508
|
+
this.props.title && (React__default.createElement("div", { className: cx('uui-modal-title', 'uui-typography') }, this.props.title)),
|
|
1534
1509
|
this.props.children,
|
|
1535
1510
|
this.props.onClose && React__default.createElement(FlexSpacer, null),
|
|
1536
1511
|
this.props.onClose && (React__default.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
@@ -1540,8 +1515,8 @@ class ModalHeader extends React__default.Component {
|
|
|
1540
1515
|
class ModalFooter extends React__default.Component {
|
|
1541
1516
|
render() {
|
|
1542
1517
|
return (React__default.createElement(FlexRow, { columnGap: this.props.columnGap || '12', cx: [
|
|
1543
|
-
css$
|
|
1544
|
-
css$
|
|
1518
|
+
css$_.root,
|
|
1519
|
+
css$_.modalFooter,
|
|
1545
1520
|
this.props.cx,
|
|
1546
1521
|
], borderTop: this.props.borderTop, padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
1547
1522
|
}
|
|
@@ -1703,7 +1678,7 @@ var SvgNotificationHelpFill = function SvgNotificationHelpFill(props, ref) {
|
|
|
1703
1678
|
};
|
|
1704
1679
|
var ForwardRef$t = /*#__PURE__*/forwardRef(SvgNotificationHelpFill);
|
|
1705
1680
|
|
|
1706
|
-
var css$
|
|
1681
|
+
var css$Z = {"uui-typography":"V8MVTR","hero-header":"M8uwTY","promo-header":"QkwCNq","uui-critical":"-nIb6-","uui-info":"qUCUyn","uui-success":"_3tQq-1","uui-warning":"KFA-g1","uui-highlight":"_9JFSVi","uui-typography-size-12":"Z6byay","uui-typography-size-14":"oQnMqV","uui-typography-size-16":"RG11Vi","root":"AsWGeG","icon-wrapper":"iP3HPx","action-wrapper":"hypx8W","action-link":"o2nY2A","close-icon":"-P4kyO","main-path":"hHPGyn","content":"f3la9Q","close-wrapper":"bHPo1T","notification-wrapper":"wvB4J-","clear-button":"Y6F8av","uuiTypography":"V8MVTR","heroHeader":"M8uwTY","promoHeader":"QkwCNq","uuiCritical":"-nIb6-","uuiInfo":"qUCUyn","uuiSuccess":"_3tQq-1","uuiWarning":"KFA-g1","uuiHighlight":"_9JFSVi","uuiTypographySize12":"Z6byay","uuiTypographySize14":"oQnMqV","uuiTypographySize16":"RG11Vi","iconWrapper":"iP3HPx","actionWrapper":"hypx8W","actionLink":"o2nY2A","closeIcon":"-P4kyO","mainPath":"hHPGyn","closeWrapper":"bHPo1T","notificationWrapper":"wvB4J-","clearButton":"Y6F8av"};
|
|
1707
1682
|
|
|
1708
1683
|
const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
1709
1684
|
const notificationCardNode = React__default.useRef(null);
|
|
@@ -1718,15 +1693,15 @@ const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
1718
1693
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
1719
1694
|
};
|
|
1720
1695
|
}, []);
|
|
1721
|
-
return (React__default.createElement("div", Object.assign({ role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
1722
|
-
React__default.createElement("div", { className: css$
|
|
1723
|
-
props.icon && (React__default.createElement("div", { className: css$
|
|
1696
|
+
return (React__default.createElement("div", Object.assign({ role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$Z.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
1697
|
+
React__default.createElement("div", { className: css$Z.mainPath },
|
|
1698
|
+
props.icon && (React__default.createElement("div", { className: css$Z.iconWrapper },
|
|
1724
1699
|
React__default.createElement(IconContainer, { size: 24, icon: props.icon }))),
|
|
1725
|
-
React__default.createElement("div", { className: css$
|
|
1700
|
+
React__default.createElement("div", { className: css$Z.content },
|
|
1726
1701
|
props.children,
|
|
1727
|
-
props.actions && (React__default.createElement("div", { className: css$
|
|
1728
|
-
props.onClose && (React__default.createElement("div", { className: css$
|
|
1729
|
-
React__default.createElement(IconButton, { icon: ForwardRef$Q, color: "neutral", onClick: props.onClose, cx: css$
|
|
1702
|
+
props.actions && (React__default.createElement("div", { className: css$Z.actionWrapper }, props.actions.map((action) => (React__default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$Z.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
1703
|
+
props.onClose && (React__default.createElement("div", { className: css$Z.closeWrapper },
|
|
1704
|
+
React__default.createElement(IconButton, { icon: ForwardRef$Q, color: "neutral", onClick: props.onClose, cx: css$Z.closeIcon }))))));
|
|
1730
1705
|
});
|
|
1731
1706
|
const WarningNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$y, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
1732
1707
|
const SuccessNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$z, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
@@ -1734,11 +1709,11 @@ const HintNotification = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
1734
1709
|
const ErrorNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$x, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
1735
1710
|
function ClearNotification() {
|
|
1736
1711
|
const uuiCtx = useUuiContext();
|
|
1737
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
1712
|
+
return (React__default.createElement("div", { className: cx(css$Z.notificationWrapper, css$Z.clearButton) },
|
|
1738
1713
|
React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
1739
1714
|
}
|
|
1740
1715
|
|
|
1741
|
-
var css$
|
|
1716
|
+
var css$Y = {"footer":"nMveUl"};
|
|
1742
1717
|
|
|
1743
1718
|
class ConfirmationModal extends React.Component {
|
|
1744
1719
|
render() {
|
|
@@ -1750,7 +1725,7 @@ class ConfirmationModal extends React.Component {
|
|
|
1750
1725
|
React.createElement(ModalWindow, { width: 420 },
|
|
1751
1726
|
React.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
1752
1727
|
React.createElement(ScrollBars, null, bodyContent),
|
|
1753
|
-
React.createElement(ModalFooter, { cx: css$
|
|
1728
|
+
React.createElement(ModalFooter, { cx: css$Y.footer },
|
|
1754
1729
|
this.props.hideCancelButton || (React.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
1755
1730
|
React.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
1756
1731
|
}
|
|
@@ -1780,7 +1755,7 @@ function useReliableForceUpdate() {
|
|
|
1780
1755
|
return red[1];
|
|
1781
1756
|
}
|
|
1782
1757
|
|
|
1783
|
-
var css$
|
|
1758
|
+
var css$X = {"root":"aPLQMU","timepicker-input":"oBjTPN","ltr-always":"bOQMVG","timepickerInput":"oBjTPN","ltrAlways":"bOQMVG"};
|
|
1784
1759
|
|
|
1785
1760
|
const uuiTimePicker = {
|
|
1786
1761
|
container: 'uui-timepicker-container',
|
|
@@ -1819,8 +1794,8 @@ function TimePickerBody(props) {
|
|
|
1819
1794
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
1820
1795
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
1821
1796
|
};
|
|
1822
|
-
return (React.createElement("div", Object.assign({ className: cx$1(css$
|
|
1823
|
-
React.createElement("div", { className: css$
|
|
1797
|
+
return (React.createElement("div", Object.assign({ className: cx$1(css$X.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef }, props.rawProps),
|
|
1798
|
+
React.createElement("div", { className: css$X.ltrAlways },
|
|
1824
1799
|
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1825
1800
|
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
1826
1801
|
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -1962,7 +1937,7 @@ function TimePicker(props) {
|
|
|
1962
1937
|
};
|
|
1963
1938
|
const renderInput = (inputProps) => {
|
|
1964
1939
|
var _a;
|
|
1965
|
-
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$
|
|
1940
|
+
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$X.root, css$X.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 })));
|
|
1966
1941
|
};
|
|
1967
1942
|
const renderBody = (bodyProps) => {
|
|
1968
1943
|
var _a;
|
|
@@ -1973,19 +1948,19 @@ function TimePicker(props) {
|
|
|
1973
1948
|
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 }));
|
|
1974
1949
|
}
|
|
1975
1950
|
|
|
1976
|
-
var css$
|
|
1951
|
+
var css$W = {"root":"_8ZS4aJ"};
|
|
1977
1952
|
|
|
1978
1953
|
function applyInputAddonMods() {
|
|
1979
1954
|
return [
|
|
1980
|
-
css$
|
|
1955
|
+
css$W.root,
|
|
1981
1956
|
];
|
|
1982
1957
|
}
|
|
1983
1958
|
const InputAddon = /* @__PURE__ */withMods(InputAddon$1, applyInputAddonMods);
|
|
1984
1959
|
|
|
1985
|
-
var css$
|
|
1960
|
+
var css$V = {"root":"KWdxCh"};
|
|
1986
1961
|
|
|
1987
1962
|
function applySliderMods() {
|
|
1988
|
-
return [css$
|
|
1963
|
+
return [css$V.root, 'uui-color-neutral'];
|
|
1989
1964
|
}
|
|
1990
1965
|
const Slider = /* @__PURE__ */withMods(Slider$1, applySliderMods);
|
|
1991
1966
|
|
|
@@ -2117,7 +2092,7 @@ const getNextYearsList = (currentDate) => {
|
|
|
2117
2092
|
return currentDate.add(16, 'year');
|
|
2118
2093
|
};
|
|
2119
2094
|
|
|
2120
|
-
var css$
|
|
2095
|
+
var css$U = {"root":"vmfB3-","container":"YV7DSC"};
|
|
2121
2096
|
|
|
2122
2097
|
const uuiHeader = {
|
|
2123
2098
|
container: 'uui-datepicker-header-container',
|
|
@@ -2194,21 +2169,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2194
2169
|
}, [view, month]);
|
|
2195
2170
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2196
2171
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2197
|
-
return (React.createElement("div", { className: cx(css$
|
|
2172
|
+
return (React.createElement("div", { className: cx(css$U.root, uuiHeader.container, cx) },
|
|
2198
2173
|
React.createElement("header", { className: uuiHeader.headerNav },
|
|
2199
2174
|
React.createElement(Button, { icon: navIconLeft || ForwardRef$v, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2200
2175
|
React.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2201
2176
|
React.createElement(Button, { icon: navIconRight || ForwardRef$u, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2202
2177
|
}
|
|
2203
2178
|
|
|
2204
|
-
var css$
|
|
2179
|
+
var css$T = {"uui-typography":"WeDXbN","hero-header":"D9Wjng","promo-header":"xb6Ef3","uui-critical":"z4M5cZ","uui-info":"jew4Xo","uui-success":"Jvj5S4","uui-warning":"ERzwrA","uui-highlight":"estoUb","uui-typography-size-12":"b0Dd-o","uui-typography-size-14":"Hx-fi-","uui-typography-size-16":"ERZnk7","root":"_5fc7tl","uuiTypography":"WeDXbN","heroHeader":"D9Wjng","promoHeader":"xb6Ef3","uuiCritical":"z4M5cZ","uuiInfo":"jew4Xo","uuiSuccess":"Jvj5S4","uuiWarning":"ERzwrA","uuiHighlight":"estoUb","uuiTypographySize12":"b0Dd-o","uuiTypographySize14":"Hx-fi-","uuiTypographySize16":"ERZnk7"};
|
|
2205
2180
|
|
|
2206
2181
|
function applyDateSelectionMods() {
|
|
2207
|
-
return [css$
|
|
2182
|
+
return [css$T.root, `uui-size-${settings.sizes.defaults.datePicker}`];
|
|
2208
2183
|
}
|
|
2209
2184
|
const Calendar = /* @__PURE__ */withMods(Calendar$1, applyDateSelectionMods);
|
|
2210
2185
|
|
|
2211
|
-
var css$
|
|
2186
|
+
var css$S = {"uui-typography":"_9upb8N","hero-header":"_0AxSGd","promo-header":"bTMJ3d","uui-critical":"Me3Ezc","uui-info":"lJQneT","uui-success":"UVaVgN","uui-warning":"f88Dvd","uui-highlight":"GV3ixr","uui-typography-size-12":"lcIg3e","uui-typography-size-14":"GZPWo3","uui-typography-size-16":"AHJ03R","root":"VVjEjz","uuiTypography":"_9upb8N","heroHeader":"_0AxSGd","promoHeader":"bTMJ3d","uuiCritical":"Me3Ezc","uuiInfo":"lJQneT","uuiSuccess":"UVaVgN","uuiWarning":"f88Dvd","uuiHighlight":"GV3ixr","uuiTypographySize12":"lcIg3e","uuiTypographySize14":"GZPWo3","uuiTypographySize16":"AHJ03R"};
|
|
2212
2187
|
|
|
2213
2188
|
const uuiDatePickerBody = {
|
|
2214
2189
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2252,7 +2227,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2252
2227
|
}
|
|
2253
2228
|
};
|
|
2254
2229
|
return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(uuiDatePickerBodyBase.container, `uui-size-${settings.sizes.defaults.datePicker}`, classes) }, rawProps),
|
|
2255
|
-
React__default.createElement("div", { className: cx$1(css$
|
|
2230
|
+
React__default.createElement("div", { className: cx$1(css$S.root, uuiDatePickerBody.wrapper) },
|
|
2256
2231
|
React__default.createElement(DatePickerHeader, { value: {
|
|
2257
2232
|
view,
|
|
2258
2233
|
month,
|
|
@@ -2339,7 +2314,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2339
2314
|
}
|
|
2340
2315
|
const DatePicker = /* @__PURE__ */React__default.forwardRef(DatePickerComponent);
|
|
2341
2316
|
|
|
2342
|
-
var css$
|
|
2317
|
+
var css$R = {"uui-typography":"BXNTni","hero-header":"V-Y1BU","promo-header":"_105k3N","uui-critical":"zafOJp","uui-info":"_7N3OMV","uui-success":"DMH0Pd","uui-warning":"ahJVaX","uui-highlight":"R4U-Nr","uui-typography-size-12":"Dxlstm","uui-typography-size-14":"CtHg1L","uui-typography-size-16":"_0-zknv","date-input":"A37kTt","root":"oR1q0Q","separator":"sBKGfF","mode-form":"jXvOcK","mode-cell":"uGWWRa","uuiTypography":"BXNTni","heroHeader":"V-Y1BU","promoHeader":"_105k3N","uuiCritical":"zafOJp","uuiInfo":"_7N3OMV","uuiSuccess":"DMH0Pd","uuiWarning":"ahJVaX","uuiHighlight":"R4U-Nr","uuiTypographySize12":"Dxlstm","uuiTypographySize14":"CtHg1L","uuiTypographySize16":"_0-zknv","dateInput":"A37kTt","modeForm":"jXvOcK","modeCell":"uGWWRa"};
|
|
2343
2318
|
|
|
2344
2319
|
const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, id, cx: classes, }, ref) => {
|
|
2345
2320
|
const [inputValue, setInputValue] = useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2373,15 +2348,15 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
|
|
|
2373
2348
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2374
2349
|
return (
|
|
2375
2350
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
2376
|
-
React__default.createElement("div", { ref: ref, className: cx$1(`uui-size-${size || settings.sizes.defaults.rangeDatePicker}`, 'uui-range-date-picker', classes, css$
|
|
2377
|
-
React__default.createElement(TextInput, { icon: systemIcons.calendar, cx: cx$1(css$
|
|
2378
|
-
React__default.createElement("div", { className: css$
|
|
2379
|
-
React__default.createElement(TextInput, { cx: cx$1(css$
|
|
2351
|
+
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 },
|
|
2352
|
+
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 }),
|
|
2353
|
+
React__default.createElement("div", { className: css$R.separator }),
|
|
2354
|
+
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 ? () => {
|
|
2380
2355
|
onValueChange(defaultRangeValue);
|
|
2381
2356
|
} : 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 })));
|
|
2382
2357
|
});
|
|
2383
2358
|
|
|
2384
|
-
var css$
|
|
2359
|
+
var css$Q = {"uui-typography":"Rbfk9R","hero-header":"ynkLM4","promo-header":"ESKhqH","uui-critical":"_2zAv8g","uui-info":"kdiI6c","uui-success":"_6Qg8bO","uui-warning":"Wi2jSC","uui-highlight":"hyafyO","uui-typography-size-12":"-R9w-p","uui-typography-size-14":"AL1cYJ","uui-typography-size-16":"g4P1pm","root":"_1yrQYv","uuiTypography":"Rbfk9R","heroHeader":"ynkLM4","promoHeader":"ESKhqH","uuiCritical":"_2zAv8g","uuiInfo":"kdiI6c","uuiSuccess":"_6Qg8bO","uuiWarning":"Wi2jSC","uuiHighlight":"hyafyO","uuiTypographySize12":"-R9w-p","uuiTypographySize14":"AL1cYJ","uuiTypographySize16":"g4P1pm"};
|
|
2385
2360
|
|
|
2386
2361
|
const uuiPresets = {
|
|
2387
2362
|
container: 'uui-presets-container',
|
|
@@ -2392,12 +2367,12 @@ const getPresets = (presets) => {
|
|
|
2392
2367
|
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);
|
|
2393
2368
|
};
|
|
2394
2369
|
function CalendarPresets(props) {
|
|
2395
|
-
return (React.createElement("div", Object.assign({ ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$
|
|
2370
|
+
return (React.createElement("div", Object.assign({ ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$Q.root, props.cx) }, props.rawProps),
|
|
2396
2371
|
React.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2397
2372
|
getPresets(props.presets).map((item) => (React.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: "24" })))));
|
|
2398
2373
|
}
|
|
2399
2374
|
|
|
2400
|
-
var css$
|
|
2375
|
+
var css$P = {"uui-typography":"r3BCFH","hero-header":"MEPBCT","promo-header":"Waxl6E","uui-critical":"-fUyoR","uui-info":"aSpFzQ","uui-success":"yPVHRn","uui-warning":"hg3CkZ","uui-highlight":"F25MUS","uui-typography-size-12":"hlDJX1","uui-typography-size-14":"tXRgjf","uui-typography-size-16":"KVZJkS","root":"CCEjWU","container":"_2N5JfV","day-selection":"wCubE-","from-picker":"ZuDMrw","to-picker":"MHq9Ro","bodes-wrapper":"xwY0ae","blocker":"tMIryj","uuiTypography":"r3BCFH","heroHeader":"MEPBCT","promoHeader":"Waxl6E","uuiCritical":"-fUyoR","uuiInfo":"aSpFzQ","uuiSuccess":"yPVHRn","uuiWarning":"hg3CkZ","uuiHighlight":"F25MUS","uuiTypographySize12":"hlDJX1","uuiTypographySize14":"tXRgjf","uuiTypographySize16":"KVZJkS","daySelection":"wCubE-","fromPicker":"ZuDMrw","toPicker":"MHq9Ro","bodesWrapper":"xwY0ae"};
|
|
2401
2376
|
|
|
2402
2377
|
const uuiRangeDatePickerBody = {
|
|
2403
2378
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -2538,21 +2513,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
2538
2513
|
});
|
|
2539
2514
|
}, presets: presets })));
|
|
2540
2515
|
};
|
|
2541
|
-
return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(css$
|
|
2542
|
-
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
2516
|
+
return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(css$P.root, uuiDatePickerBodyBase.container, props.cx) }, props.rawProps),
|
|
2517
|
+
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$P.daySelection, css$P.container], alignItems: "top" },
|
|
2543
2518
|
React__default.createElement(FlexCell, { width: "auto" },
|
|
2544
2519
|
React__default.createElement(FlexRow, null,
|
|
2545
|
-
React__default.createElement(FlexRow, { cx: css$
|
|
2546
|
-
React__default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: cx$1(css$
|
|
2520
|
+
React__default.createElement(FlexRow, { cx: css$P.bodesWrapper, alignItems: "top" },
|
|
2521
|
+
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) => {
|
|
2547
2522
|
setMonth(m);
|
|
2548
2523
|
}, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' })),
|
|
2549
|
-
React__default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: cx$1(css$
|
|
2524
|
+
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) => {
|
|
2550
2525
|
setMonth(m.subtract(1, 'month'));
|
|
2551
2526
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' })),
|
|
2552
2527
|
view !== 'DAY_SELECTION' && (React__default.createElement("div", { style: {
|
|
2553
2528
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
2554
2529
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
2555
|
-
}, className: css$
|
|
2530
|
+
}, className: css$P.blocker }))),
|
|
2556
2531
|
props.presets && renderPresets(props.presets)),
|
|
2557
2532
|
props.renderFooter && props.renderFooter()))));
|
|
2558
2533
|
}
|
|
@@ -2572,7 +2547,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
2572
2547
|
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)];
|
|
2573
2548
|
};
|
|
2574
2549
|
|
|
2575
|
-
var css$
|
|
2550
|
+
var css$O = {"dropdown-container":"MtKUM1","dropdownContainer":"MtKUM1"};
|
|
2576
2551
|
|
|
2577
2552
|
const modifiers = [{
|
|
2578
2553
|
name: 'offset',
|
|
@@ -2619,7 +2594,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2619
2594
|
};
|
|
2620
2595
|
const renderBody = (renderProps) => {
|
|
2621
2596
|
var _a;
|
|
2622
|
-
return (React__default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx(css$
|
|
2597
|
+
return (React__default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx(css$O.dropdownContainer), shards: [targetRef], returnFocus: (node) => {
|
|
2623
2598
|
console.log('lock', node);
|
|
2624
2599
|
return true;
|
|
2625
2600
|
} }),
|
|
@@ -2649,22 +2624,66 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2649
2624
|
}
|
|
2650
2625
|
const RangeDatePicker = /* @__PURE__ */React__default.forwardRef(RangeDatePickerComponent);
|
|
2651
2626
|
|
|
2652
|
-
var css$
|
|
2627
|
+
var css$N = {"root":"_5M2TJ2","blocker":"rx5kjB","marker":"w0-6QR","top":"PfqFJD","bottom":"sjp65Q","left":"TF30bU","right":"onyygz","inside":"m0Loz2"};
|
|
2653
2628
|
|
|
2654
2629
|
function DropMarker(props) {
|
|
2655
2630
|
return props.isDndInProgress
|
|
2656
2631
|
? (React.createElement(React.Fragment, null,
|
|
2657
|
-
props.enableBlocker && React.createElement("div", { className: css$
|
|
2632
|
+
props.enableBlocker && React.createElement("div", { className: css$N.blocker }),
|
|
2658
2633
|
React.createElement("div", { className: cx([
|
|
2659
|
-
css$
|
|
2660
|
-
css$
|
|
2661
|
-
css$
|
|
2634
|
+
css$N.root,
|
|
2635
|
+
css$N.marker,
|
|
2636
|
+
css$N[props.position],
|
|
2662
2637
|
props === null || props === void 0 ? void 0 : props.cx,
|
|
2663
2638
|
]) })))
|
|
2664
2639
|
: null;
|
|
2665
2640
|
}
|
|
2666
2641
|
|
|
2667
|
-
var css$
|
|
2642
|
+
var css$M = {"root":"Mjo7Bi","line-height":"_8GxBdr","font-size":"incD7r","lineHeight":"_8GxBdr","fontSize":"incD7r"};
|
|
2643
|
+
|
|
2644
|
+
function applyTextMods(mods) {
|
|
2645
|
+
return [
|
|
2646
|
+
css$M.root,
|
|
2647
|
+
'uui-text',
|
|
2648
|
+
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
2649
|
+
(mods.size !== 'none' || mods.lineHeight) && css$M.lineHeight,
|
|
2650
|
+
(mods.size !== 'none' || mods.fontSize) && css$M.fontSize,
|
|
2651
|
+
`uui-color-${mods.color || 'primary'}`,
|
|
2652
|
+
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
2653
|
+
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
2654
|
+
'uui-typography',
|
|
2655
|
+
];
|
|
2656
|
+
}
|
|
2657
|
+
const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props) => {
|
|
2658
|
+
var _a;
|
|
2659
|
+
const style = ((_a = props === null || props === void 0 ? void 0 : props.rawProps) === null || _a === void 0 ? void 0 : _a.style) || {};
|
|
2660
|
+
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
2661
|
+
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
2662
|
+
return {
|
|
2663
|
+
rawProps: Object.assign(Object.assign({}, props === null || props === void 0 ? void 0 : props.rawProps), { style: style }),
|
|
2664
|
+
};
|
|
2665
|
+
});
|
|
2666
|
+
|
|
2667
|
+
var css$L = {"root":"_3biGS-","loading-word":"uXaVMN","animated-loading":"pkYE96","skeleton_loading":"iNlDsj","loadingWord":"uXaVMN","animatedLoading":"pkYE96","skeletonLoading":"iNlDsj"};
|
|
2668
|
+
|
|
2669
|
+
const TextPlaceholder = (props) => {
|
|
2670
|
+
const pattern = ' ';
|
|
2671
|
+
const text = React.useMemo(() => {
|
|
2672
|
+
const words = [];
|
|
2673
|
+
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
2674
|
+
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
2675
|
+
words.push(pattern.repeat(lengthWord));
|
|
2676
|
+
}
|
|
2677
|
+
return words;
|
|
2678
|
+
}, [props.wordsCount]);
|
|
2679
|
+
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([
|
|
2680
|
+
props.cx, css$L.loadingWord, !props.isNotAnimated && css$L.animatedLoading,
|
|
2681
|
+
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
2682
|
+
};
|
|
2683
|
+
|
|
2684
|
+
const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
2685
|
+
|
|
2686
|
+
var css$K = {"uui-typography":"_7ZtltK","hero-header":"_7oUwdM","promo-header":"_2aycM9","uui-critical":"Qy5aUl","uui-info":"xygInV","uui-success":"_92uwUp","uui-warning":"qoKH-r","uui-highlight":"HCJsyM","uui-typography-size-12":"PyLdZK","uui-typography-size-14":"oWk9vM","uui-typography-size-16":"zhwt7t","modal":"wM1jdO","search-wrapper":"N3YZZJ","no-data":"nfTkW0","type-search-to-load-size-24":"v0W0V5","uuiTypography":"_7ZtltK","heroHeader":"_7oUwdM","promoHeader":"_2aycM9","uuiCritical":"Qy5aUl","uuiInfo":"xygInV","uuiSuccess":"_92uwUp","uuiWarning":"qoKH-r","uuiHighlight":"HCJsyM","uuiTypographySize12":"PyLdZK","uuiTypographySize14":"oWk9vM","uuiTypographySize16":"zhwt7t","searchWrapper":"N3YZZJ","noData":"nfTkW0","typeSearchToLoadSize24":"v0W0V5"};
|
|
2668
2687
|
|
|
2669
2688
|
class DataPickerBody extends PickerBodyBase {
|
|
2670
2689
|
constructor() {
|
|
@@ -2683,7 +2702,7 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
2683
2702
|
});
|
|
2684
2703
|
}
|
|
2685
2704
|
if (this.props.minCharsToSearch && search.length < this.props.minCharsToSearch) {
|
|
2686
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
2705
|
+
return (React__default.createElement(FlexCell$1, { cx: css$K.noData, grow: 1, textAlign: "center" },
|
|
2687
2706
|
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
2688
2707
|
}
|
|
2689
2708
|
if (this.props.rows.length === 0) {
|
|
@@ -2698,21 +2717,21 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
2698
2717
|
}
|
|
2699
2718
|
// Default no record found message for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
2700
2719
|
// TODO: make separate messages for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
2701
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
2720
|
+
return (React__default.createElement(FlexCell$1, { cx: css$K.noData, grow: 1, textAlign: "center" },
|
|
2702
2721
|
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
2703
2722
|
}
|
|
2704
2723
|
}
|
|
2705
2724
|
render() {
|
|
2706
2725
|
const searchSize = this.getSearchSize();
|
|
2707
2726
|
return (React__default.createElement(React__default.Fragment, null,
|
|
2708
|
-
this.showSearch() && (React__default.createElement("div", { key: "search", className: css$
|
|
2727
|
+
this.showSearch() && (React__default.createElement("div", { key: "search", className: css$K.searchWrapper },
|
|
2709
2728
|
React__default.createElement(FlexCell$1, { grow: 1 },
|
|
2710
2729
|
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' } }))))),
|
|
2711
|
-
React__default.createElement(FlexRow, { key: "body", cx: cx$1('uui-picker_input-body', css$
|
|
2730
|
+
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())));
|
|
2712
2731
|
}
|
|
2713
2732
|
}
|
|
2714
2733
|
|
|
2715
|
-
var css$
|
|
2734
|
+
var css$J = {"footer":"_3cDF0d"};
|
|
2716
2735
|
|
|
2717
2736
|
function DataPickerFooterImpl(props) {
|
|
2718
2737
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
@@ -2726,7 +2745,7 @@ function DataPickerFooterImpl(props) {
|
|
|
2726
2745
|
const isSearching = search === null || search === void 0 ? void 0 : search.length;
|
|
2727
2746
|
const hideFooter = isSearchTooShort || rowsCount === 0 || isSearching || (isSinglePicker && props.disableClear);
|
|
2728
2747
|
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
2729
|
-
return !hideFooter && (React__default.createElement(FlexRow, { cx: css$
|
|
2748
|
+
return !hideFooter && (React__default.createElement(FlexRow, { cx: css$J.footer },
|
|
2730
2749
|
!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 })),
|
|
2731
2750
|
React__default.createElement(FlexSpacer, null),
|
|
2732
2751
|
React__default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
@@ -2737,13 +2756,13 @@ function DataPickerFooterImpl(props) {
|
|
|
2737
2756
|
}
|
|
2738
2757
|
const DataPickerFooter = /* @__PURE__ */React__default.memo(DataPickerFooterImpl);
|
|
2739
2758
|
|
|
2740
|
-
var css$
|
|
2759
|
+
var css$I = {"header":"WzgQhD","title":"fh1W76","close":"_486zLe"};
|
|
2741
2760
|
|
|
2742
2761
|
const DataPickerHeaderImpl = (props) => {
|
|
2743
2762
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
2744
|
-
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$
|
|
2745
|
-
React__default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$
|
|
2746
|
-
React__default.createElement(IconButton, { icon: ForwardRef$Q, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$
|
|
2763
|
+
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$I.header },
|
|
2764
|
+
React__default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$I.title }, title),
|
|
2765
|
+
React__default.createElement(IconButton, { icon: ForwardRef$Q, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$I.close })));
|
|
2747
2766
|
};
|
|
2748
2767
|
const DataPickerHeader = /* @__PURE__ */React__default.memo(DataPickerHeaderImpl);
|
|
2749
2768
|
|
|
@@ -2762,7 +2781,7 @@ var SvgNotificationDoneFill = function SvgNotificationDoneFill(props, ref) {
|
|
|
2762
2781
|
};
|
|
2763
2782
|
var ForwardRef$s = /*#__PURE__*/forwardRef(SvgNotificationDoneFill);
|
|
2764
2783
|
|
|
2765
|
-
var css$
|
|
2784
|
+
var css$H = {"uui-typography":"L3NIYP","hero-header":"-sP389","promo-header":"uTOwKP","uui-critical":"_5T6Gdp","uui-info":"WfDI2J","uui-success":"_---oBV","uui-warning":"MfCl5E","uui-highlight":"Uvidl7","uui-typography-size-12":"jLWdTk","uui-typography-size-14":"pyCjtg","uui-typography-size-16":"eholnY","root":"UECaWi","align-widgets-top":"AVEAk7","align-widgets-center":"_5C4zLQ","icon-container":"StDR2P","loading-cell":"_2v0exp","content-wrapper":"_5K0uOT","render-item":"nxmy10","icon-wrapper":"GlUtUA","icon-default":"qG26OL","selected-mark":"BqhGno","uuiTypography":"L3NIYP","heroHeader":"-sP389","promoHeader":"uTOwKP","uuiCritical":"_5T6Gdp","uuiInfo":"WfDI2J","uuiSuccess":"_---oBV","uuiWarning":"MfCl5E","uuiHighlight":"Uvidl7","uuiTypographySize12":"jLWdTk","uuiTypographySize14":"pyCjtg","uuiTypographySize16":"eholnY","alignWidgetsTop":"AVEAk7","alignWidgetsCenter":"_5C4zLQ","iconContainer":"StDR2P","loadingCell":"_2v0exp","contentWrapper":"_5K0uOT","renderItem":"nxmy10","iconWrapper":"GlUtUA","iconDefault":"qG26OL","selectedMark":"BqhGno"};
|
|
2766
2785
|
|
|
2767
2786
|
function DataPickerCell(props) {
|
|
2768
2787
|
const ref = React.useRef();
|
|
@@ -2770,28 +2789,28 @@ function DataPickerCell(props) {
|
|
|
2770
2789
|
if (props.rowProps.isLoading) {
|
|
2771
2790
|
content = (
|
|
2772
2791
|
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
2773
|
-
React.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size], cx: css$
|
|
2792
|
+
React.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size], cx: css$H.loadingCell },
|
|
2774
2793
|
React.createElement(TextPlaceholder, null)));
|
|
2775
2794
|
}
|
|
2776
2795
|
else if (props.rowProps.isUnknown) {
|
|
2777
2796
|
content = (React.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size] }, "Unknown"));
|
|
2778
2797
|
}
|
|
2779
2798
|
else {
|
|
2780
|
-
content = (React.createElement("div", { key: `${props.rowProps.id}`, className: css$
|
|
2799
|
+
content = (React.createElement("div", { key: `${props.rowProps.id}`, className: css$H.renderItem },
|
|
2781
2800
|
props.renderItem(props.rowProps.value, props.rowProps),
|
|
2782
2801
|
React.createElement(FlexSpacer, null),
|
|
2783
|
-
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React.createElement("div", { className: cx$1(css$
|
|
2784
|
-
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$O, cx: props.rowProps.isChildrenSelected ? css$
|
|
2802
|
+
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React.createElement("div", { className: cx$1(css$H.iconWrapper, uuiMod.selected) },
|
|
2803
|
+
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$O, cx: props.rowProps.isChildrenSelected ? css$H.iconDefault : css$H.selectedMark, rawProps: { 'aria-label': props.rowProps.isChildrenSelected
|
|
2785
2804
|
? 'Child is selected'
|
|
2786
2805
|
: 'Selected' } })))));
|
|
2787
2806
|
}
|
|
2788
|
-
const getWrappedContent = () => (React.createElement("div", { className: css$
|
|
2807
|
+
const getWrappedContent = () => (React.createElement("div", { className: css$H.contentWrapper }, content));
|
|
2789
2808
|
return (React.createElement(FlexCell, { ref: ref, grow: 1, width: 0, minWidth: 0, rawProps: { role: 'cell' }, cx: [
|
|
2790
|
-
css$
|
|
2809
|
+
css$H.root,
|
|
2791
2810
|
props.cx,
|
|
2792
2811
|
'data-picker-cell',
|
|
2793
2812
|
props.size && `uui-size-${props.size}`,
|
|
2794
|
-
css$
|
|
2813
|
+
css$H[`align-widgets-${props.alignActions || 'top'}`],
|
|
2795
2814
|
], style: props.padding && {
|
|
2796
2815
|
'--uui-data_picker_cell-horizontal-padding': `${props.padding}px`,
|
|
2797
2816
|
} },
|
|
@@ -2799,7 +2818,7 @@ function DataPickerCell(props) {
|
|
|
2799
2818
|
getWrappedContent()));
|
|
2800
2819
|
}
|
|
2801
2820
|
|
|
2802
|
-
var css$
|
|
2821
|
+
var css$G = {"uui-typography":"KmVaRo","hero-header":"QWFgjX","promo-header":"ju02bk","uui-critical":"gsqesR","uui-info":"XPJP3J","uui-success":"_4bn4vC","uui-warning":"yO0RBs","uui-highlight":"Sfvad5","uui-typography-size-12":"dQu-dv","uui-typography-size-14":"nbU-hc","uui-typography-size-16":"_3ky1k6","picker-row":"Mm40S8","uuiTypography":"KmVaRo","heroHeader":"QWFgjX","promoHeader":"ju02bk","uuiCritical":"gsqesR","uuiInfo":"XPJP3J","uuiSuccess":"_4bn4vC","uuiWarning":"yO0RBs","uuiHighlight":"Sfvad5","uuiTypographySize12":"dQu-dv","uuiTypographySize14":"nbU-hc","uuiTypographySize16":"_3ky1k6","pickerRow":"Mm40S8"};
|
|
2803
2822
|
|
|
2804
2823
|
class DataPickerRow extends React.Component {
|
|
2805
2824
|
constructor() {
|
|
@@ -2809,20 +2828,20 @@ class DataPickerRow extends React.Component {
|
|
|
2809
2828
|
};
|
|
2810
2829
|
}
|
|
2811
2830
|
render() {
|
|
2812
|
-
return (React.createElement(DataPickerRow$1, Object.assign({}, this.props, { cx: [css$
|
|
2831
|
+
return (React.createElement(DataPickerRow$1, Object.assign({}, this.props, { cx: [css$G.pickerRow, this.props.cx], renderContent: this.renderContent })));
|
|
2813
2832
|
}
|
|
2814
2833
|
}
|
|
2815
2834
|
|
|
2816
|
-
var css$
|
|
2835
|
+
var css$F = {"uui-typography":"_3vPdOB","hero-header":"rMjOH9","promo-header":"j7PqCT","uui-critical":"CV9YxQ","uui-info":"aJFzyJ","uui-success":"nzDhCh","uui-warning":"D302FC","uui-highlight":"agNeVj","uui-typography-size-12":"KWEEbZ","uui-typography-size-14":"XnapgA","uui-typography-size-16":"r46pxT","done":"FIddZU","container":"s8YsgN","uuiTypography":"_3vPdOB","heroHeader":"rMjOH9","promoHeader":"j7PqCT","uuiCritical":"CV9YxQ","uuiInfo":"aJFzyJ","uuiSuccess":"nzDhCh","uuiWarning":"D302FC","uuiHighlight":"agNeVj","uuiTypographySize12":"KWEEbZ","uuiTypographySize14":"XnapgA","uuiTypographySize16":"r46pxT"};
|
|
2817
2836
|
|
|
2818
2837
|
const PickerBodyMobileView = (props) => {
|
|
2819
2838
|
const isMobileView = isMobile();
|
|
2820
2839
|
const maxWidth = isMobileView ? 'auto' : props.maxWidth;
|
|
2821
2840
|
const maxHeight = isMobileView ? 'auto' : props.maxHeight;
|
|
2822
|
-
return (React__default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$
|
|
2841
|
+
return (React__default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$F.container, props.cx], autoFocus: true }),
|
|
2823
2842
|
isMobileView && React__default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
|
|
2824
2843
|
props.children,
|
|
2825
|
-
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$
|
|
2844
|
+
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 })));
|
|
2826
2845
|
};
|
|
2827
2846
|
|
|
2828
2847
|
var _path$r, _path2$4;
|
|
@@ -2847,7 +2866,7 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2847
2866
|
};
|
|
2848
2867
|
var ForwardRef$r = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
|
|
2849
2868
|
|
|
2850
|
-
var css$
|
|
2869
|
+
var css$E = {"uui-typography":"K7QXPd","hero-header":"YnTL8D","promo-header":"Fejt08","uui-critical":"qwQYDX","uui-info":"DkTwuU","uui-success":"-JgR3p","uui-warning":"iQ2HlF","uui-highlight":"skJunE","uui-typography-size-12":"AmVNf9","uui-typography-size-14":"Q5OJ1g","uui-typography-size-16":"wFbWJY","sub-header-wrapper":"dS880n","switch":"_6dZOdi","no-found-modal-container":"V4ibbJ","no-found-modal-container-icon":"OAQ6UN","no-found-modal-container-text":"_7RUOhC","uuiTypography":"K7QXPd","heroHeader":"YnTL8D","promoHeader":"Fejt08","uuiCritical":"qwQYDX","uuiInfo":"DkTwuU","uuiSuccess":"-JgR3p","uuiWarning":"iQ2HlF","uuiHighlight":"skJunE","uuiTypographySize12":"AmVNf9","uuiTypographySize14":"Q5OJ1g","uuiTypographySize16":"wFbWJY","subHeaderWrapper":"dS880n","$switch$":"_6dZOdi","noFoundModalContainer":"V4ibbJ","noFoundModalContainerIcon":"OAQ6UN","noFoundModalContainerText":"_7RUOhC"};
|
|
2851
2870
|
|
|
2852
2871
|
const mergeHighlightRanges = (ranges) => {
|
|
2853
2872
|
const mergedRanges = [];
|
|
@@ -2914,7 +2933,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
2914
2933
|
return getDecoratedText(str, ranges);
|
|
2915
2934
|
};
|
|
2916
2935
|
|
|
2917
|
-
var css$
|
|
2936
|
+
var css$D = {"root":"nmx00p","column-gap":"NcWFQ8","multiline":"-aoT4J","text":"uvN1vd","columnGap":"NcWFQ8"};
|
|
2918
2937
|
|
|
2919
2938
|
function PickerItem(props) {
|
|
2920
2939
|
var _a;
|
|
@@ -2924,13 +2943,13 @@ function PickerItem(props) {
|
|
|
2924
2943
|
const { search } = (_a = props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2925
2944
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(props.title, search) : props.title;
|
|
2926
2945
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(props.subtitle, search) : props.subtitle;
|
|
2927
|
-
return (React.createElement(FlexCell, { width: "auto", cx: [css$
|
|
2928
|
-
React.createElement(FlexRow, { size: itemSize, cx: [isMultiline && css$
|
|
2946
|
+
return (React.createElement(FlexCell, { width: "auto", cx: [css$D.root, 'uui-typography', cx] },
|
|
2947
|
+
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` } } },
|
|
2929
2948
|
avatarUrl && (React.createElement(Avatar, { isLoading: isLoading, img: avatarUrl, size: getAvatarSize(itemSize, isMultiline).toString() })),
|
|
2930
2949
|
icon && React.createElement(IconContainer, { icon: icon }),
|
|
2931
2950
|
React.createElement(FlexCell, { width: "auto" },
|
|
2932
|
-
title && (React.createElement(Text, { size: itemSize, cx: css$
|
|
2933
|
-
subtitle && (React.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$
|
|
2951
|
+
title && (React.createElement(Text, { size: itemSize, cx: css$D.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React.createElement(TextPlaceholder, { wordsCount: 2 }) : title)),
|
|
2952
|
+
subtitle && (React.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$D.text }, isLoading ? React.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
2934
2953
|
}
|
|
2935
2954
|
function getAvatarSize(size, isMultiline) {
|
|
2936
2955
|
return settings.sizes.pickerInput.body.dropdown.row.cell.item.avatar[isMultiline ? 'multiline' : 'rest'][size];
|
|
@@ -2964,17 +2983,17 @@ function PickerModal(props) {
|
|
|
2964
2983
|
React__default.createElement(Button, { color: "primary", caption: i18n.pickerModal.selectButton, onClick: () => props.success(selection) })));
|
|
2965
2984
|
};
|
|
2966
2985
|
const renderNotFound = () => {
|
|
2967
|
-
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__default.createElement("div", { className: css$
|
|
2968
|
-
React__default.createElement(IconContainer, { cx: css$
|
|
2969
|
-
React__default.createElement(Text, { cx: css$
|
|
2970
|
-
React__default.createElement(Text, { cx: css$
|
|
2986
|
+
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__default.createElement("div", { className: css$E.noFoundModalContainer },
|
|
2987
|
+
React__default.createElement(IconContainer, { cx: css$E.noFoundModalContainerIcon, icon: ForwardRef$r }),
|
|
2988
|
+
React__default.createElement(Text, { cx: css$E.noFoundModalContainerText, fontWeight: "600", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
2989
|
+
React__default.createElement(Text, { cx: css$E.noFoundModalContainerText, fontSize: "12", lineHeight: "18", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
2971
2990
|
};
|
|
2972
2991
|
const dataRows = getRows();
|
|
2973
2992
|
const rows = dataRows.map((row) => renderRow(row));
|
|
2974
2993
|
return (React__default.createElement(ModalBlocker, Object.assign({}, props),
|
|
2975
2994
|
React__default.createElement(ModalWindow, { width: 600, height: 700 },
|
|
2976
2995
|
React__default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
2977
|
-
React__default.createElement(FlexCell, { cx: css$
|
|
2996
|
+
React__default.createElement(FlexCell, { cx: css$E.subHeaderWrapper },
|
|
2978
2997
|
React__default.createElement(FlexRow, { vPadding: "24" },
|
|
2979
2998
|
React__default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => handleDataSourceKeyboard({
|
|
2980
2999
|
value: getDataSourceState(),
|
|
@@ -2983,20 +3002,20 @@ function PickerModal(props) {
|
|
|
2983
3002
|
rows: dataRows,
|
|
2984
3003
|
searchPosition: 'body',
|
|
2985
3004
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: { dir: 'auto' } }))),
|
|
2986
|
-
!isSingleSelect() && (React__default.createElement(Switch, Object.assign({ cx: css$
|
|
3005
|
+
!isSingleSelect() && (React__default.createElement(Switch, Object.assign({ cx: css$E.switch, size: "18" }, getFooterProps().showSelected, { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
2987
3006
|
props.renderFilter && React__default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
2988
3007
|
React__default.createElement(DataPickerBody, Object.assign({}, getListProps(), { value: getDataSourceState(), onValueChange: handleDataSourceValueChange, search: dataSourceStateLens.prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: renderNotFound, editMode: "modal" })),
|
|
2989
3008
|
React__default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
2990
3009
|
}
|
|
2991
3010
|
|
|
2992
|
-
var css$
|
|
3011
|
+
var css$C = {"tooltip":"CQsB6W"};
|
|
2993
3012
|
|
|
2994
3013
|
const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
2995
3014
|
var _a;
|
|
2996
3015
|
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 });
|
|
2997
3016
|
if (props.isCollapsed) {
|
|
2998
3017
|
const collapsedRows = props.collapsedRows.map((row) => props.getName(row.value)).join(', ');
|
|
2999
|
-
return (React.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$
|
|
3018
|
+
return (React.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$C.tooltip },
|
|
3000
3019
|
React.createElement(Tag, Object.assign({ ref: ref, rawProps: { role: 'option' } }, tagProps))));
|
|
3001
3020
|
}
|
|
3002
3021
|
else {
|
|
@@ -3004,15 +3023,15 @@ const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
3004
3023
|
}
|
|
3005
3024
|
});
|
|
3006
3025
|
|
|
3007
|
-
var css$
|
|
3026
|
+
var css$B = {"uui-typography":"NvmU2F","hero-header":"gGvAZe","promo-header":"izRVKG","uui-critical":"xmU5kH","uui-info":"YBtyuQ","uui-success":"bFEyyO","uui-warning":"ZmgQYS","uui-highlight":"Lv0dG2","uui-typography-size-12":"bmUFtQ","uui-typography-size-14":"CKL5Y7","uui-typography-size-16":"zsUhPG","root":"JiAJ8K","mode-form":"Mk8NjG","mode-cell":"YDKiup","mode-inline":"tSu6mo","uuiTypography":"NvmU2F","heroHeader":"gGvAZe","promoHeader":"izRVKG","uuiCritical":"xmU5kH","uuiInfo":"YBtyuQ","uuiSuccess":"bFEyyO","uuiWarning":"ZmgQYS","uuiHighlight":"Lv0dG2","uuiTypographySize12":"bmUFtQ","uuiTypographySize14":"CKL5Y7","uuiTypographySize16":"zsUhPG","modeForm":"Mk8NjG","modeCell":"YDKiup","modeInline":"tSu6mo"};
|
|
3008
3027
|
|
|
3009
3028
|
const defaultMode = EditMode.FORM;
|
|
3010
3029
|
function applyPickerTogglerMods(mods) {
|
|
3011
3030
|
return [
|
|
3012
|
-
css$
|
|
3031
|
+
css$B.root,
|
|
3013
3032
|
'uui-picker_toggler',
|
|
3014
3033
|
`uui-size-${mods.size || settings.sizes.pickerInput.toggler.defaults.size}`,
|
|
3015
|
-
css$
|
|
3034
|
+
css$B['mode-' + (mods.mode || defaultMode)],
|
|
3016
3035
|
];
|
|
3017
3036
|
}
|
|
3018
3037
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -3101,7 +3120,7 @@ function PickerInputComponent(_a, ref) {
|
|
|
3101
3120
|
}
|
|
3102
3121
|
const PickerInput = /* @__PURE__ */React__default.forwardRef(PickerInputComponent);
|
|
3103
3122
|
|
|
3104
|
-
var css$
|
|
3123
|
+
var css$A = {"row":"xwLjqb"};
|
|
3105
3124
|
|
|
3106
3125
|
function PickerListItem(props) {
|
|
3107
3126
|
var _a;
|
|
@@ -3119,10 +3138,10 @@ function PickerListItem(props) {
|
|
|
3119
3138
|
else {
|
|
3120
3139
|
component = (React__default.createElement(RadioInput, { label: label, value: props.isSelected, isDisabled: props.isLoading || !props.isSelectable || props.isDisabled, onValueChange: () => props.onSelect(props) }));
|
|
3121
3140
|
}
|
|
3122
|
-
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$
|
|
3141
|
+
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));
|
|
3123
3142
|
}
|
|
3124
3143
|
|
|
3125
|
-
var css$
|
|
3144
|
+
var css$z = {"root":"_8dlJaz"};
|
|
3126
3145
|
|
|
3127
3146
|
function PickerList(props) {
|
|
3128
3147
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = usePickerList(props);
|
|
@@ -3145,7 +3164,7 @@ function PickerList(props) {
|
|
|
3145
3164
|
const showPicker = viewProps.totalCount == null || viewProps.totalCount > getMaxDefaultItems();
|
|
3146
3165
|
const renderToggler = props.renderModalToggler || defaultRenderToggler;
|
|
3147
3166
|
const renderRow = props.renderRow || defaultRenderRow;
|
|
3148
|
-
return (React__default.createElement("div", { className: cx('uui-picker-list', css$
|
|
3167
|
+
return (React__default.createElement("div", { className: cx('uui-picker-list', css$z.root) },
|
|
3149
3168
|
!rows.length
|
|
3150
3169
|
&& (props.noOptionsMessage || (React__default.createElement(Text, { color: "secondary", size: props.size }, "No options available"))),
|
|
3151
3170
|
rows.map((row) => renderRow(Object.assign(Object.assign({}, row), { isDisabled: props.isDisabled }), dataSourceState)),
|
|
@@ -3157,7 +3176,7 @@ function PickerList(props) {
|
|
|
3157
3176
|
}, selectedRows)));
|
|
3158
3177
|
}
|
|
3159
3178
|
|
|
3160
|
-
var css$
|
|
3179
|
+
var css$y = {"uui-typography":"IXIwtn","hero-header":"gcdzix","promo-header":"Zk-yDs","uui-critical":"JuSJiv","uui-info":"yNSKnR","uui-success":"iu2Oku","uui-warning":"enRwuW","uui-highlight":"F3ywWg","uui-typography-size-12":"kxwOA0","uui-typography-size-14":"yTEqEY","uui-typography-size-16":"w-kkFK","root":"wc2P--","wrapper":"aMnK-J","align-widgets-top":"P7DVaa","align-widgets-center":"_7xlRjH","uuiTypography":"IXIwtn","heroHeader":"gcdzix","promoHeader":"Zk-yDs","uuiCritical":"JuSJiv","uuiInfo":"yNSKnR","uuiSuccess":"iu2Oku","uuiWarning":"enRwuW","uuiHighlight":"F3ywWg","uuiTypographySize12":"kxwOA0","uuiTypographySize14":"yTEqEY","uuiTypographySize16":"w-kkFK","alignWidgetsTop":"P7DVaa","alignWidgetsCenter":"_7xlRjH"};
|
|
3161
3180
|
|
|
3162
3181
|
function DataTableCell(initialProps) {
|
|
3163
3182
|
const props = Object.assign({}, initialProps);
|
|
@@ -3191,12 +3210,12 @@ function DataTableCell(initialProps) {
|
|
|
3191
3210
|
};
|
|
3192
3211
|
props.cx = [
|
|
3193
3212
|
'data-table-cell',
|
|
3194
|
-
css$
|
|
3213
|
+
css$y.root,
|
|
3195
3214
|
props.cx,
|
|
3196
3215
|
'uui-size-' + (props.size || settings.sizes.dataTable.body.row.cell.defaults.size),
|
|
3197
3216
|
props.isFirstColumn && 'uui-dt-first-column',
|
|
3198
3217
|
props.isLastColumn && 'uui-dt-last-column',
|
|
3199
|
-
css$
|
|
3218
|
+
css$y[`align-widgets-${props.alignActions || 'top'}`],
|
|
3200
3219
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
3201
3220
|
];
|
|
3202
3221
|
props.style = {
|
|
@@ -3206,7 +3225,7 @@ function DataTableCell(initialProps) {
|
|
|
3206
3225
|
return React.createElement(DataTableCell$1, Object.assign({}, props));
|
|
3207
3226
|
}
|
|
3208
3227
|
|
|
3209
|
-
var css$
|
|
3228
|
+
var css$x = {"uui-typography":"RINLW9","hero-header":"_2PKZfb","promo-header":"R-3HsK","uui-critical":"WU4J3e","uui-info":"-sjX4R","uui-success":"yNA-68","uui-warning":"PNNyZ6","uui-highlight":"sLidlb","uui-typography-size-12":"f71kgK","uui-typography-size-14":"_9KcAvl","uui-typography-size-16":"LnifN9","root":"_2p9z-U","uuiTypography":"RINLW9","heroHeader":"_2PKZfb","promoHeader":"R-3HsK","uuiCritical":"WU4J3e","uuiInfo":"-sjX4R","uuiSuccess":"yNA-68","uuiWarning":"PNNyZ6","uuiHighlight":"sLidlb","uuiTypographySize12":"f71kgK","uuiTypographySize14":"_9KcAvl","uuiTypographySize16":"LnifN9"};
|
|
3210
3229
|
|
|
3211
3230
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3212
3231
|
// 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.
|
|
@@ -3218,11 +3237,11 @@ const renderDropMarkers = (props) => React.createElement(DropMarker, Object.assi
|
|
|
3218
3237
|
const propsMods = { renderCell, renderDropMarkers };
|
|
3219
3238
|
const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = true, size }) => {
|
|
3220
3239
|
return [
|
|
3221
|
-
css$
|
|
3240
|
+
css$x.root, 'uui-dt-vars', borderBottom && 'uui-dt-row-border', `uui-size-${size || settings.sizes.dataTable.body.row.default}`,
|
|
3222
3241
|
];
|
|
3223
3242
|
}, () => propsMods);
|
|
3224
3243
|
|
|
3225
|
-
var css$
|
|
3244
|
+
var css$w = {"uui-typography":"UF-XUO","hero-header":"aE2Ipa","promo-header":"f-laxh","uui-critical":"ODLMd3","uui-info":"_9r-HYP","uui-success":"NzVRhT","uui-warning":"WxLK5f","uui-highlight":"_4C-fbr","uui-typography-size-12":"FxCW9s","uui-typography-size-14":"so2sHN","uui-typography-size-16":"SkgO6s","sorting-panel-container":"KahKEx","uuiTypography":"UF-XUO","heroHeader":"aE2Ipa","promoHeader":"f-laxh","uuiCritical":"ODLMd3","uuiInfo":"_9r-HYP","uuiSuccess":"NzVRhT","uuiWarning":"WxLK5f","uuiHighlight":"_4C-fbr","uuiTypographySize12":"FxCW9s","uuiTypographySize14":"so2sHN","uuiTypographySize16":"SkgO6s","sortingPanelContainer":"KahKEx"};
|
|
3226
3245
|
|
|
3227
3246
|
var _path$q;
|
|
3228
3247
|
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); }
|
|
@@ -3257,7 +3276,7 @@ var ForwardRef$p = /*#__PURE__*/forwardRef(SvgTableSortDescOutline);
|
|
|
3257
3276
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3258
3277
|
const sortAsc = useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
3259
3278
|
const sortDesc = useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
3260
|
-
return (React__default.createElement(FlexCell, { cx: cx$1(css$
|
|
3279
|
+
return (React__default.createElement(FlexCell, { cx: cx$1(css$w.sortingPanelContainer, 'uui-dropdownMenu-body') },
|
|
3261
3280
|
React__default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$q, onClick: sortAsc }),
|
|
3262
3281
|
React__default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$p, onClick: sortDesc })));
|
|
3263
3282
|
};
|
|
@@ -3352,7 +3371,7 @@ var SvgNavigationExpandAllOutline = function SvgNavigationExpandAllOutline(props
|
|
|
3352
3371
|
};
|
|
3353
3372
|
var ForwardRef$k = /*#__PURE__*/forwardRef(SvgNavigationExpandAllOutline);
|
|
3354
3373
|
|
|
3355
|
-
var css$
|
|
3374
|
+
var css$v = {"uui-typography":"_5eFXni","hero-header":"O-5vZZ","promo-header":"u7u76x","uui-critical":"E3FjtM","uui-info":"_5qPrsM","uui-success":"ECoi0B","uui-warning":"Frznwg","uui-highlight":"UR5xbZ","uui-typography-size-12":"S4X4qj","uui-typography-size-14":"IPLd7s","uui-typography-size-16":"_-2gjCG","root":"RgckTZ","caption-wrapper":"Fu2yD-","sort-icon":"nPEMC3","dropdown-icon":"olxWkw","infoIcon":"_-6R-vp","resizable":"_2DeeQU","align-right":"O3TpFO","align-center":"BJ-hlC","caption":"UNduWY","truncate":"bXHn3i","checkbox":"_3-UDCj","icon":"zciOoW","fold-all-icon":"OIDjqB","cell-tooltip":"RSMIJo","upper-case":"bIos-q","resizing-marker":"IAoSZC","pinned-right":"oF9eOi","draggable":"vGz1NM","ghost":"FWMIAO","is-dragged-out":"geXWh5","dnd-marker-left":"LoTxGv","dnd-marker-right":"_28ovYp","cell-tooltip-wrapper":"gCyjhX","cell-tooltip-text":"ldzxFC","tooltip-caption":"EKkzXR","tooltip-info":"-X1CBi","uuiTypography":"_5eFXni","heroHeader":"O-5vZZ","promoHeader":"u7u76x","uuiCritical":"E3FjtM","uuiInfo":"_5qPrsM","uuiSuccess":"ECoi0B","uuiWarning":"Frznwg","uuiHighlight":"UR5xbZ","uuiTypographySize12":"S4X4qj","uuiTypographySize14":"IPLd7s","uuiTypographySize16":"_-2gjCG","captionWrapper":"Fu2yD-","sortIcon":"nPEMC3","dropdownIcon":"olxWkw","alignRight":"O3TpFO","alignCenter":"BJ-hlC","foldAllIcon":"OIDjqB","cellTooltip":"RSMIJo","upperCase":"bIos-q","resizingMarker":"IAoSZC","pinnedRight":"oF9eOi","isDraggedOut":"geXWh5","dndMarkerLeft":"LoTxGv","dndMarkerRight":"_28ovYp","cellTooltipWrapper":"gCyjhX","cellTooltipText":"ldzxFC","tooltipCaption":"EKkzXR","tooltipInfo":"-X1CBi"};
|
|
3356
3375
|
|
|
3357
3376
|
class DataTableHeaderCell extends React.Component {
|
|
3358
3377
|
constructor() {
|
|
@@ -3360,27 +3379,27 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3360
3379
|
this.state = {
|
|
3361
3380
|
isDropdownOpen: null,
|
|
3362
3381
|
};
|
|
3363
|
-
this.getTooltipContent = (column) => (React.createElement("div", { className: cx$1(css$
|
|
3364
|
-
React.createElement(Text, { cx: [css$
|
|
3365
|
-
column.info && (React.createElement(Text, { cx: [css$
|
|
3382
|
+
this.getTooltipContent = (column) => (React.createElement("div", { className: cx$1(css$v.cellTooltipWrapper, uuiDataTableHeaderCell.uuiTableHeaderCaptionTooltip) },
|
|
3383
|
+
React.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipCaption] }, column.caption),
|
|
3384
|
+
column.info && (React.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipInfo] }, column.info))));
|
|
3366
3385
|
this.getColumnCaption = () => {
|
|
3367
3386
|
const renderTooltip = this.props.column.renderTooltip || this.getTooltipContent;
|
|
3368
3387
|
const captionCx = [
|
|
3369
|
-
css$
|
|
3370
|
-
this.props.textCase === 'upper' && css$
|
|
3388
|
+
css$v.caption,
|
|
3389
|
+
this.props.textCase === 'upper' && css$v.upperCase,
|
|
3371
3390
|
uuiDataTableHeaderCell.uuiTableHeaderCaption,
|
|
3372
|
-
settings.sizes.dataTable.header.row.cell.truncate.includes(this.props.size) && css$
|
|
3391
|
+
settings.sizes.dataTable.header.row.cell.truncate.includes(this.props.size) && css$v.truncate,
|
|
3373
3392
|
];
|
|
3374
|
-
return (React.createElement("div", { className: cx$1(css$
|
|
3375
|
-
React.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: css$
|
|
3393
|
+
return (React.createElement("div", { className: cx$1(css$v.captionWrapper, css$v['align-' + this.props.column.textAlign], uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
3394
|
+
React.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: css$v.cellTooltip, openDelay: 600 },
|
|
3376
3395
|
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)),
|
|
3377
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React.createElement(IconButton, { key: "sort", cx: cx$1(css$
|
|
3378
|
-
this.props.isFilterActive && (React.createElement(IconButton, { key: "filter", cx: cx$1(css$
|
|
3379
|
-
this.props.column.renderFilter && (React.createElement(IconButton, { key: "dropdown", cx: cx$1(css$
|
|
3396
|
+
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 })),
|
|
3397
|
+
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 })),
|
|
3398
|
+
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$P }))));
|
|
3380
3399
|
};
|
|
3381
3400
|
this.renderHeaderCheckbox = () => {
|
|
3382
3401
|
if (this.props.selectAll && this.props.isFirstColumn) {
|
|
3383
|
-
return (React.createElement(Checkbox, Object.assign({ size: settings.sizes.dataTable.header.row.cell.checkbox[this.props.size] }, this.props.selectAll, { cx: cx$1(css$
|
|
3402
|
+
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) })));
|
|
3384
3403
|
}
|
|
3385
3404
|
};
|
|
3386
3405
|
this.renderFoldAllIcon = () => {
|
|
@@ -3388,14 +3407,14 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3388
3407
|
return (React.createElement(Tooltip, { content: this.props.areAllFolded
|
|
3389
3408
|
? i18n.tables.columnHeader.expandAllTooltip
|
|
3390
3409
|
: i18n.tables.columnHeader.collapseAllTooltip },
|
|
3391
|
-
React.createElement(IconButton, { color: "secondary", cx: cx$1(css$
|
|
3410
|
+
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: {
|
|
3392
3411
|
'aria-label': this.props.areAllFolded ? 'Expand All' : 'Collapse All',
|
|
3393
3412
|
'aria-expanded': !!this.props.areAllFolded,
|
|
3394
3413
|
} })));
|
|
3395
3414
|
}
|
|
3396
3415
|
};
|
|
3397
3416
|
this.renderResizingMarker = (props) => {
|
|
3398
|
-
return (React.createElement("div", { role: "separator", onMouseDown: props.onResizeStart, className: cx$1(css$
|
|
3417
|
+
return (React.createElement("div", { role: "separator", onMouseDown: props.onResizeStart, className: cx$1(css$v.resizingMarker, uuiMarkers.draggable, uuiMarkers.clickable) }));
|
|
3399
3418
|
};
|
|
3400
3419
|
this.getLeftPadding = () => {
|
|
3401
3420
|
const { columnsGap, isFirstColumn } = this.props;
|
|
@@ -3427,7 +3446,7 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3427
3446
|
var _a;
|
|
3428
3447
|
props.ref(ref);
|
|
3429
3448
|
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
3430
|
-
}, cx: cx$1(uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiMarkers.clickable, css$
|
|
3449
|
+
}, 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 },
|
|
3431
3450
|
this.renderHeaderCheckbox(),
|
|
3432
3451
|
this.renderFoldAllIcon(),
|
|
3433
3452
|
this.getColumnCaption(),
|
|
@@ -3458,10 +3477,66 @@ var SvgActionSettingsFill = function SvgActionSettingsFill(props, ref) {
|
|
|
3458
3477
|
};
|
|
3459
3478
|
var ForwardRef$j = /*#__PURE__*/forwardRef(SvgActionSettingsFill);
|
|
3460
3479
|
|
|
3461
|
-
var css$
|
|
3480
|
+
var css$u = {"uui-typography":"Quv3q7","hero-header":"cd416h","promo-header":"fRlxtA","uui-critical":"wBWqZY","uui-info":"sliYzq","uui-success":"xNaS3m","uui-warning":"Vt7KjL","uui-highlight":"Or40sM","uui-typography-size-12":"GHrkqQ","uui-typography-size-14":"VNg2pI","uui-typography-size-16":"oHe-rC","root":"_-7GAkE","uuiTypography":"Quv3q7","heroHeader":"cd416h","promoHeader":"fRlxtA","uuiCritical":"wBWqZY","uuiInfo":"sliYzq","uuiSuccess":"xNaS3m","uuiWarning":"Vt7KjL","uuiHighlight":"Or40sM","uuiTypographySize12":"GHrkqQ","uuiTypographySize14":"VNg2pI","uuiTypographySize16":"oHe-rC"};
|
|
3481
|
+
|
|
3482
|
+
var css$t = {"uui-typography":"D5x7Va","hero-header":"Kc-ium","promo-header":"DAd6L1","uui-critical":"x9VQCS","uui-info":"h0CW9X","uui-success":"_9V0vNz","uui-warning":"waEQkw","uui-highlight":"ZCTPin","uui-typography-size-12":"nLmHuR","uui-typography-size-14":"UrM7NM","uui-typography-size-16":"rMzoRx","root":"tjuGb1","caption-wrapper":"JPo2-7","align-center":"aZg84y","caption":"qnrN4G","truncate":"tK1X94","group-cell-tooltip":"m1qe-o","upper-case":"RURfyH","group-cell-tooltip-wrapper":"_9VA284","group-cell-tooltip-text":"ZETqRo","tooltip-caption":"s6LX6H","tooltip-info":"KQBVWp","uuiTypography":"D5x7Va","heroHeader":"Kc-ium","promoHeader":"DAd6L1","uuiCritical":"x9VQCS","uuiInfo":"h0CW9X","uuiSuccess":"_9V0vNz","uuiWarning":"waEQkw","uuiHighlight":"ZCTPin","uuiTypographySize12":"nLmHuR","uuiTypographySize14":"UrM7NM","uuiTypographySize16":"rMzoRx","captionWrapper":"JPo2-7","alignCenter":"aZg84y","groupCellTooltip":"m1qe-o","upperCase":"RURfyH","groupCellTooltipWrapper":"_9VA284","groupCellTooltipText":"ZETqRo","tooltipCaption":"s6LX6H","tooltipInfo":"KQBVWp"};
|
|
3483
|
+
|
|
3484
|
+
class DataTableHeaderGroupCell extends React.Component {
|
|
3485
|
+
constructor() {
|
|
3486
|
+
super(...arguments);
|
|
3487
|
+
this.getTooltipContent = (column) => (React.createElement("div", { className: cx$1(css$t.groupCellTooltipWrapper, uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaptionTooltip) },
|
|
3488
|
+
React.createElement(Text, { cx: [css$t.groupCellTooltipText, css$t.tooltipCaption] }, column.caption),
|
|
3489
|
+
column.info && (React.createElement(Text, { cx: [css$t.groupCellTooltipText, css$t.tooltipInfo] }, column.info))));
|
|
3490
|
+
this.getColumnCaption = () => {
|
|
3491
|
+
const renderTooltip = this.props.group.renderTooltip || this.getTooltipContent;
|
|
3492
|
+
const captionCx = [
|
|
3493
|
+
css$t.caption,
|
|
3494
|
+
this.props.textCase === 'upper' && css$t.upperCase,
|
|
3495
|
+
uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaption,
|
|
3496
|
+
settings.sizes.dataTable.header.row.groupCell.truncate.includes(this.props.size) && css$t.truncate,
|
|
3497
|
+
];
|
|
3498
|
+
return (React.createElement("div", { className: cx$1(css$t.captionWrapper, css$t['align-' + this.props.group.textAlign], uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaptionWrapper) },
|
|
3499
|
+
React.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.group), cx: css$t.groupCellTooltip, openDelay: 600 },
|
|
3500
|
+
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))));
|
|
3501
|
+
};
|
|
3502
|
+
this.getLeftPadding = () => {
|
|
3503
|
+
const { columnsGap, isFirstCell } = this.props;
|
|
3504
|
+
if (columnsGap)
|
|
3505
|
+
return isFirstCell ? columnsGap : +columnsGap / 2;
|
|
3506
|
+
return isFirstCell ? settings.sizes.dataTable.header.row.groupCell.defaults.paddingEdge : settings.sizes.dataTable.header.row.groupCell.defaults.padding;
|
|
3507
|
+
};
|
|
3508
|
+
this.getRightPadding = () => {
|
|
3509
|
+
const { columnsGap, isLastCell } = this.props;
|
|
3510
|
+
if (columnsGap)
|
|
3511
|
+
return isLastCell ? columnsGap : +columnsGap / 2;
|
|
3512
|
+
return isLastCell ? settings.sizes.dataTable.header.row.groupCell.defaults.paddingEdge : settings.sizes.dataTable.header.row.groupCell.defaults.padding;
|
|
3513
|
+
};
|
|
3514
|
+
this.renderCellContent = (props) => {
|
|
3515
|
+
const computeStyles = {
|
|
3516
|
+
'--uui-dt-header-group-cell-padding-start': `${this.getLeftPadding()}px`,
|
|
3517
|
+
'--uui-dt-header-group-cell-padding-end': `${this.getRightPadding()}px`,
|
|
3518
|
+
};
|
|
3519
|
+
return (React.createElement(DataTableCellContainer, { column: this.props.group, ref: (ref) => {
|
|
3520
|
+
props.ref(ref);
|
|
3521
|
+
}, 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()));
|
|
3522
|
+
};
|
|
3523
|
+
}
|
|
3524
|
+
render() {
|
|
3525
|
+
if (this.props.group.renderHeaderCell) {
|
|
3526
|
+
return this.props.group.renderHeaderCell(this.props);
|
|
3527
|
+
}
|
|
3528
|
+
const computeStyles = {
|
|
3529
|
+
'--uui-dt-header-group-cell-padding-start': `${this.getLeftPadding()}px`,
|
|
3530
|
+
'--uui-dt-header-group-cell-padding-end': `${this.getRightPadding()}px`,
|
|
3531
|
+
width: '100%',
|
|
3532
|
+
};
|
|
3533
|
+
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()));
|
|
3534
|
+
}
|
|
3535
|
+
}
|
|
3462
3536
|
|
|
3463
|
-
const DataTableHeaderRow = /* @__PURE__ */withMods(DataTableHeaderRow$1, () => [css$
|
|
3537
|
+
const DataTableHeaderRow = /* @__PURE__ */withMods(DataTableHeaderRow$1, () => [css$u.root, 'uui-dt-vars'], (mods) => ({
|
|
3464
3538
|
renderCell: (props) => (React.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap }))),
|
|
3539
|
+
renderGroupCell: (props) => (React.createElement(DataTableHeaderGroupCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.key, columnsGap: mods.columnsGap }))),
|
|
3465
3540
|
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 })),
|
|
3466
3541
|
}));
|
|
3467
3542
|
|
|
@@ -3470,7 +3545,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
3470
3545
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
3471
3546
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
3472
3547
|
|
|
3473
|
-
var css$s = {"uui-typography":"
|
|
3548
|
+
var css$s = {"uui-typography":"fo2CwB","hero-header":"JLHxdD","promo-header":"x47PAy","uui-critical":"VIE7nL","uui-info":"_0mdSGs","uui-success":"L9MjGW","uui-warning":"_4hav8N","uui-highlight":"pbtCxN","uui-typography-size-12":"VsSIeB","uui-typography-size-14":"Eh4pwj","uui-typography-size-16":"BwE4sY","root":"gLieAI","title-wrapper":"_8Ju-ZW","title":"_86rgMl","text-wrapper":"_9pG4Ze","selection":"_7DQ8UA","postfix":"UBiHLa","selected":"JvgXzX","uuiTypography":"fo2CwB","heroHeader":"JLHxdD","promoHeader":"x47PAy","uuiCritical":"VIE7nL","uuiInfo":"_0mdSGs","uuiSuccess":"L9MjGW","uuiWarning":"_4hav8N","uuiHighlight":"pbtCxN","uuiTypographySize12":"VsSIeB","uuiTypographySize14":"Eh4pwj","uuiTypographySize16":"BwE4sY","titleWrapper":"_8Ju-ZW","textWrapper":"_9pG4Ze"};
|
|
3474
3549
|
|
|
3475
3550
|
const defaultSize = '36';
|
|
3476
3551
|
const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
@@ -3648,7 +3723,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
3648
3723
|
React__default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
3649
3724
|
}
|
|
3650
3725
|
|
|
3651
|
-
var css$r = {"container":"
|
|
3726
|
+
var css$r = {"container":"_6ZBiWx"};
|
|
3652
3727
|
|
|
3653
3728
|
function FilterNumericBody(props) {
|
|
3654
3729
|
var _a, _b;
|
|
@@ -3746,7 +3821,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
3746
3821
|
};
|
|
3747
3822
|
var ForwardRef$i = /*#__PURE__*/forwardRef(SvgActionDeleteOutline);
|
|
3748
3823
|
|
|
3749
|
-
var css$q = {"uui-typography":"
|
|
3824
|
+
var css$q = {"uui-typography":"m9TdZM","hero-header":"hM-ss5","promo-header":"FxaAIM","uui-critical":"oyeFBi","uui-info":"ht90RN","uui-success":"DRuxST","uui-warning":"nE-E8J","uui-highlight":"sXrtwp","uui-typography-size-12":"XCcnwj","uui-typography-size-14":"mttp0I","uui-typography-size-16":"v-QoP9","header":"_3ELQSr","removeButton":"ZuyU3S","with-search":"_8HtXfd","uuiTypography":"m9TdZM","heroHeader":"hM-ss5","promoHeader":"FxaAIM","uuiCritical":"oyeFBi","uuiInfo":"ht90RN","uuiSuccess":"DRuxST","uuiWarning":"nE-E8J","uuiHighlight":"sXrtwp","uuiTypographySize12":"XCcnwj","uuiTypographySize14":"mttp0I","uuiTypographySize16":"v-QoP9","withSearch":"_8HtXfd"};
|
|
3750
3825
|
|
|
3751
3826
|
function useView(props, value) {
|
|
3752
3827
|
const forceUpdate = useForceUpdate();
|
|
@@ -4067,7 +4142,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4067
4142
|
}
|
|
4068
4143
|
const FiltersPanel = /* @__PURE__ */React__default.memo(FiltersToolbarImpl);
|
|
4069
4144
|
|
|
4070
|
-
var css$p = {"divider":"
|
|
4145
|
+
var css$p = {"divider":"_4wr1zo","dropdownDeleteIcon":"A0ppIK","presetsWrapper":"zsSH7j","addPresetContainer":"WXKR8O","dropContainer":"RWWHlr"};
|
|
4071
4146
|
|
|
4072
4147
|
var _path$g;
|
|
4073
4148
|
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); }
|
|
@@ -4180,7 +4255,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4180
4255
|
};
|
|
4181
4256
|
var ForwardRef$a = /*#__PURE__*/forwardRef(SvgContentLinkOutline);
|
|
4182
4257
|
|
|
4183
|
-
var css$o = {"delete-button":"
|
|
4258
|
+
var css$o = {"delete-button":"_0NxjSE","tab-button":"RFzq0v","targetOpen":"ogYZs5","deleteButton":"_0NxjSE","tabButton":"RFzq0v"};
|
|
4184
4259
|
|
|
4185
4260
|
function PresetActionsDropdown(props) {
|
|
4186
4261
|
const { uuiNotifications } = useUuiContext();
|
|
@@ -4238,7 +4313,7 @@ function PresetActionsDropdown(props) {
|
|
|
4238
4313
|
return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4239
4314
|
}
|
|
4240
4315
|
|
|
4241
|
-
var css$n = {"preset-input-cell":"
|
|
4316
|
+
var css$n = {"preset-input-cell":"KFihLD","preset-input":"Pkz6yn","presetInputCell":"KFihLD","presetInput":"Pkz6yn"};
|
|
4242
4317
|
|
|
4243
4318
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4244
4319
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4271,7 +4346,7 @@ function PresetInput(props) {
|
|
|
4271
4346
|
React__default.createElement(TextInput, { cx: css$n.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
4272
4347
|
}
|
|
4273
4348
|
|
|
4274
|
-
var css$m = {"preset":"
|
|
4349
|
+
var css$m = {"preset":"_3vILba","activePreset":"BjloKB"};
|
|
4275
4350
|
|
|
4276
4351
|
function Preset(props) {
|
|
4277
4352
|
const [isRenamePreset, setIsRenamePreset] = useState(false);
|
|
@@ -4445,7 +4520,7 @@ var SvgTableGroupColumnRightFill = function SvgTableGroupColumnRightFill(props,
|
|
|
4445
4520
|
};
|
|
4446
4521
|
var ForwardRef$6 = /*#__PURE__*/forwardRef(SvgTableGroupColumnRightFill);
|
|
4447
4522
|
|
|
4448
|
-
var css$l = {"unpin-icon":"
|
|
4523
|
+
var css$l = {"unpin-icon":"XaICNP","pin-toggler-icon":"C4564U","unpinIcon":"XaICNP","pinTogglerIcon":"C4564U"};
|
|
4449
4524
|
|
|
4450
4525
|
function PinIconButton(props) {
|
|
4451
4526
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4504,7 +4579,7 @@ var SvgActionDragIndicator18 = function SvgActionDragIndicator18(props, ref) {
|
|
|
4504
4579
|
};
|
|
4505
4580
|
var ForwardRef$5 = /*#__PURE__*/forwardRef(SvgActionDragIndicator18);
|
|
4506
4581
|
|
|
4507
|
-
var css$k = {"uui-typography":"
|
|
4582
|
+
var css$k = {"uui-typography":"zx8y6o","hero-header":"l19r9H","promo-header":"Rmw90J","uui-critical":"cLe9O5","uui-info":"FxoVZc","uui-success":"hhjF7y","uui-warning":"ZFJyTI","uui-highlight":"TjqTD3","uui-typography-size-12":"_8I-etm","uui-typography-size-14":"oSvede","uui-typography-size-16":"FeIXi9","row-wrapper":"yXSQ49","pin-icon-button":"mUe4I1","not-pinned":"dTvNi8","checkbox":"FikcF7","drag-handle":"RXAPI1","dnd-disabled":"spCa20","uuiTypography":"zx8y6o","heroHeader":"l19r9H","promoHeader":"Rmw90J","uuiCritical":"cLe9O5","uuiInfo":"FxoVZc","uuiSuccess":"hhjF7y","uuiWarning":"ZFJyTI","uuiHighlight":"TjqTD3","uuiTypographySize12":"_8I-etm","uuiTypographySize14":"oSvede","uuiTypographySize16":"FeIXi9","rowWrapper":"yXSQ49","pinIconButton":"mUe4I1","notPinned":"dTvNi8","dragHandle":"RXAPI1","dndDisabled":"spCa20"};
|
|
4508
4583
|
|
|
4509
4584
|
const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
4510
4585
|
const { column } = props;
|
|
@@ -4527,7 +4602,7 @@ const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
|
4527
4602
|
return (React.createElement(DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4528
4603
|
});
|
|
4529
4604
|
|
|
4530
|
-
var css$j = {"uui-typography":"
|
|
4605
|
+
var css$j = {"uui-typography":"BPGGBr","hero-header":"H-xLAU","promo-header":"jljpRr","uui-critical":"-W8-99","uui-info":"ycnIVU","uui-success":"R85t4t","uui-warning":"_26Dbaj","uui-highlight":"KThh3M","uui-typography-size-12":"uSQYqS","uui-typography-size-14":"_76hbIb","uui-typography-size-16":"-H--aJ","root":"R-Fd1v","main-panel":"_9-4YfA","group":"hKbCr-","group-title":"tR65jM","group-items":"RpwYxv","no-data":"_3osPKz","no-data-title":"XNORCB","no-data-sub-title":"KhrIYn","h-divider":"_8GOIaz","search-area":"_9uZZP-","subgroup-accordion":"B6L7vQ","subgroup":"Jcgttd","subgroup-title":"yZg5D5","uuiTypography":"BPGGBr","heroHeader":"H-xLAU","promoHeader":"jljpRr","uuiCritical":"-W8-99","uuiInfo":"ycnIVU","uuiSuccess":"R85t4t","uuiWarning":"_26Dbaj","uuiHighlight":"KThh3M","uuiTypographySize12":"uSQYqS","uuiTypographySize14":"_76hbIb","uuiTypographySize16":"-H--aJ","mainPanel":"_9-4YfA","groupTitle":"tR65jM","groupItems":"RpwYxv","noData":"_3osPKz","noDataTitle":"XNORCB","noDataSubTitle":"KhrIYn","hDivider":"_8GOIaz","searchArea":"_9uZZP-","subgroupAccordion":"B6L7vQ","subgroupTitle":"yZg5D5"};
|
|
4531
4606
|
|
|
4532
4607
|
const renderGroupTitle = (title, amount) => (React.createElement(FlexRow, { cx: css$j.group },
|
|
4533
4608
|
React.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -4616,7 +4691,7 @@ function SubGroup(props) {
|
|
|
4616
4691
|
return null;
|
|
4617
4692
|
}
|
|
4618
4693
|
|
|
4619
|
-
var css$i = {"listContainer":"
|
|
4694
|
+
var css$i = {"listContainer":"EwMhkg","header":"cr6GoK","group":"_-6XHBk","stickyHeader":"L1Od2j"};
|
|
4620
4695
|
|
|
4621
4696
|
const getChildrenAndRest = (row, rows) => {
|
|
4622
4697
|
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
@@ -4682,7 +4757,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4682
4757
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4683
4758
|
ref: ref
|
|
4684
4759
|
}, props), /*#__PURE__*/React.createElement("g", {
|
|
4685
|
-
clipPath: "url(#
|
|
4760
|
+
clipPath: "url(#4i4gxfxqciyncjhri_a)"
|
|
4686
4761
|
}, _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
4687
4762
|
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",
|
|
4688
4763
|
fill: "#F5F6FA"
|
|
@@ -4703,7 +4778,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4703
4778
|
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",
|
|
4704
4779
|
fill: "#1D1E26"
|
|
4705
4780
|
})), /*#__PURE__*/React.createElement("mask", {
|
|
4706
|
-
id: "
|
|
4781
|
+
id: "4i4gxfr65igsuth3_b",
|
|
4707
4782
|
style: {
|
|
4708
4783
|
maskType: "alpha"
|
|
4709
4784
|
},
|
|
@@ -4716,7 +4791,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4716
4791
|
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",
|
|
4717
4792
|
fill: "#9BDEFF"
|
|
4718
4793
|
}))), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
4719
|
-
mask: "url(#
|
|
4794
|
+
mask: "url(#4i4gxfr65igsuth3_b)",
|
|
4720
4795
|
fillRule: "evenodd",
|
|
4721
4796
|
clipRule: "evenodd"
|
|
4722
4797
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -4802,7 +4877,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4802
4877
|
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",
|
|
4803
4878
|
fill: "#fff"
|
|
4804
4879
|
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
4805
|
-
id: "
|
|
4880
|
+
id: "4i4gxfxqciyncjhri_a"
|
|
4806
4881
|
}, /*#__PURE__*/React.createElement("path", {
|
|
4807
4882
|
fill: "#fff",
|
|
4808
4883
|
transform: "translate(.552)",
|
|
@@ -4811,7 +4886,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4811
4886
|
};
|
|
4812
4887
|
var ForwardRef$4 = /*#__PURE__*/forwardRef(SvgEmptyTable);
|
|
4813
4888
|
|
|
4814
|
-
var css$h = {"root":"
|
|
4889
|
+
var css$h = {"root":"tHLkeF","sticky-header":"jONeJZ","no-results":"f4h-Yw","icon":"m-WhKy","title":"WoLDA6","stickyHeader":"jONeJZ","noResults":"f4h-Yw"};
|
|
4815
4890
|
|
|
4816
4891
|
function DataTable(props) {
|
|
4817
4892
|
var _a, _b, _c, _d;
|
|
@@ -4846,7 +4921,7 @@ function DataTable(props) {
|
|
|
4846
4921
|
]);
|
|
4847
4922
|
const renderRowsContainer = React.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows }) => (React.createElement(React.Fragment, null,
|
|
4848
4923
|
React.createElement("div", { className: css$h.stickyHeader, ref: headerRef },
|
|
4849
|
-
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 }),
|
|
4924
|
+
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 }),
|
|
4850
4925
|
React.createElement("div", { className: cx$1(uuiScrollShadows.top, {
|
|
4851
4926
|
[uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
4852
4927
|
}) })),
|
|
@@ -4862,9 +4937,9 @@ function DataTable(props) {
|
|
|
4862
4937
|
} }))));
|
|
4863
4938
|
}
|
|
4864
4939
|
|
|
4865
|
-
var css$g = {"root":"
|
|
4940
|
+
var css$g = {"root":"VrUG5D"};
|
|
4866
4941
|
|
|
4867
|
-
var css$f = {"root":"
|
|
4942
|
+
var css$f = {"root":"YZM2yD","burger-content":"cRAMXc","burgerContent":"cRAMXc"};
|
|
4868
4943
|
|
|
4869
4944
|
var _path$3;
|
|
4870
4945
|
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); }
|
|
@@ -4907,7 +4982,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
4907
4982
|
};
|
|
4908
4983
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgNavigationArrowDownOutline);
|
|
4909
4984
|
|
|
4910
|
-
var css$e = {"uui-typography":"
|
|
4985
|
+
var css$e = {"uui-typography":"_3y3-ZC","hero-header":"h7dpUY","promo-header":"XC8y8G","uui-critical":"DaH6nu","uui-info":"DT1J6a","uui-success":"IdiXpP","uui-warning":"t-N4p4","uui-highlight":"GrWv8V","uui-typography-size-12":"sNv569","uui-typography-size-14":"_7dDtxS","uui-typography-size-16":"UB0Md-","root":"amQpg4","button-primary":"_97PcEw","button-secondary":"oIu-It","hasIcon":"UIPiJ0","dropdown":"kJLI3T","uuiTypography":"_3y3-ZC","heroHeader":"h7dpUY","promoHeader":"XC8y8G","uuiCritical":"DaH6nu","uuiInfo":"DT1J6a","uuiSuccess":"IdiXpP","uuiWarning":"t-N4p4","uuiHighlight":"GrWv8V","uuiTypographySize12":"sNv569","uuiTypographySize14":"_7dDtxS","uuiTypographySize16":"UB0Md-","buttonPrimary":"_97PcEw","buttonSecondary":"oIu-It"};
|
|
4911
4986
|
|
|
4912
4987
|
const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
4913
4988
|
css$e.root,
|
|
@@ -4918,13 +4993,13 @@ const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
|
4918
4993
|
props.icon && css$e.hasIcon,
|
|
4919
4994
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
4920
4995
|
|
|
4921
|
-
var css$d = {"search-input":"
|
|
4996
|
+
var css$d = {"search-input":"U8g5Uw","searchInput":"U8g5Uw"};
|
|
4922
4997
|
|
|
4923
4998
|
function BurgerSearch(props) {
|
|
4924
4999
|
return (React.createElement(TextInput$1, { cx: cx(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$N, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$Q }));
|
|
4925
5000
|
}
|
|
4926
5001
|
|
|
4927
|
-
var css$c = {"root":"
|
|
5002
|
+
var css$c = {"root":"nqDq9z","group-header":"btNwk0","group-name":"OJlsOO","line":"fI22Sj","groupHeader":"btNwk0","groupName":"OJlsOO"};
|
|
4928
5003
|
|
|
4929
5004
|
function BurgerGroupHeader(props) {
|
|
4930
5005
|
return (React.createElement("div", { className: cx(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4932,7 +5007,7 @@ function BurgerGroupHeader(props) {
|
|
|
4932
5007
|
React.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
4933
5008
|
}
|
|
4934
5009
|
|
|
4935
|
-
var css$b = {"uui-typography":"
|
|
5010
|
+
var css$b = {"uui-typography":"_7WcSZ4","hero-header":"Cd0qAL","promo-header":"-dSVKH","uui-critical":"S4tItA","uui-info":"RzkpKA","uui-success":"_6Cg4Zf","uui-warning":"SXNR0h","uui-highlight":"jGm9be","uui-typography-size-12":"Gix2K4","uui-typography-size-14":"ftkulG","uui-typography-size-16":"xqFxtm","root":"sLljD5","type-primary":"_31yC8T","type-secondary":"bP5Fms","uuiTypography":"_7WcSZ4","heroHeader":"Cd0qAL","promoHeader":"-dSVKH","uuiCritical":"S4tItA","uuiInfo":"RzkpKA","uuiSuccess":"_6Cg4Zf","uuiWarning":"SXNR0h","uuiHighlight":"jGm9be","uuiTypographySize12":"Gix2K4","uuiTypographySize14":"ftkulG","uuiTypographySize16":"xqFxtm","typePrimary":"_31yC8T","typeSecondary":"bP5Fms"};
|
|
4936
5011
|
|
|
4937
5012
|
const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
4938
5013
|
const { type } = props, clickableProps = __rest(props, ["type"]);
|
|
@@ -4948,7 +5023,7 @@ const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
4948
5023
|
props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$P, flipY: props.isOpen }))));
|
|
4949
5024
|
});
|
|
4950
5025
|
|
|
4951
|
-
var css$a = {"dropdown-body":"
|
|
5026
|
+
var css$a = {"dropdown-body":"_4AK4XV","dropdownBody":"_4AK4XV"};
|
|
4952
5027
|
|
|
4953
5028
|
class MainMenuDropdown extends React.Component {
|
|
4954
5029
|
render() {
|
|
@@ -5003,12 +5078,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5003
5078
|
};
|
|
5004
5079
|
var ForwardRef$1 = /*#__PURE__*/forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5005
5080
|
|
|
5006
|
-
var css$9 = {"global-menu-btn":"
|
|
5081
|
+
var css$9 = {"global-menu-btn":"bChZQi","global-menu-icon":"RGtXj1","globalMenuBtn":"bChZQi","globalMenuIcon":"RGtXj1"};
|
|
5007
5082
|
|
|
5008
5083
|
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),
|
|
5009
5084
|
React.createElement(IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5010
5085
|
|
|
5011
|
-
var css$8 = {"container":"
|
|
5086
|
+
var css$8 = {"container":"n3hyXQ","open":"EbBSmf","folding-arrow":"m8PIG9","foldingArrow":"m8PIG9"};
|
|
5012
5087
|
|
|
5013
5088
|
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 },
|
|
5014
5089
|
React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5016,18 +5091,18 @@ const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.cr
|
|
|
5016
5091
|
props.isDropdown && (React.createElement("div", null,
|
|
5017
5092
|
React.createElement(IconContainer, { size: 18, icon: ForwardRef$P, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5018
5093
|
|
|
5019
|
-
var css$7 = {"search-input":"
|
|
5094
|
+
var css$7 = {"search-input":"hjTARJ","searchInput":"hjTARJ"};
|
|
5020
5095
|
|
|
5021
5096
|
const MainMenuSearch = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
5022
5097
|
var _a;
|
|
5023
5098
|
return (React.createElement(TextInput$1, Object.assign({ iconPosition: "left", icon: ForwardRef$N, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$Q }, props, iEditable, { ref: ref, cx: cx$1(css$7.searchInput, props.cx) }, props.rawProps)));
|
|
5024
5099
|
} }))));
|
|
5025
5100
|
|
|
5026
|
-
var css$6 = {"container":"
|
|
5101
|
+
var css$6 = {"container":"F9R3-N"};
|
|
5027
5102
|
|
|
5028
5103
|
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))));
|
|
5029
5104
|
|
|
5030
|
-
var css$5 = {"root":"
|
|
5105
|
+
var css$5 = {"root":"PYOBf5"};
|
|
5031
5106
|
|
|
5032
5107
|
const Anchor = /* @__PURE__ */withMods(Anchor$1, () => [css$5.root]);
|
|
5033
5108
|
|
|
@@ -5085,7 +5160,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5085
5160
|
};
|
|
5086
5161
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgFileCloudUploadFill);
|
|
5087
5162
|
|
|
5088
|
-
var css$4 = {"root":"
|
|
5163
|
+
var css$4 = {"root":"P6EKub","drop-start":"kE84I2","drop-over":"Ft3Uej","link":"D31y-c","drop-area":"RgCV-i","drop-caption":"AFIjyA","icon-blue":"IaLOcU","dropStart":"kE84I2","dropOver":"Ft3Uej","dropArea":"RgCV-i","dropCaption":"AFIjyA","iconBlue":"IaLOcU"};
|
|
5089
5164
|
|
|
5090
5165
|
function DropSpot(props) {
|
|
5091
5166
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5103,9 +5178,9 @@ function DropSpot(props) {
|
|
|
5103
5178
|
return React.createElement(DropSpot$1, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5104
5179
|
}
|
|
5105
5180
|
|
|
5106
|
-
var css$3 = {"uui-typography":"
|
|
5181
|
+
var css$3 = {"uui-typography":"_3xAshD","hero-header":"Omt8rO","promo-header":"PiAdgp","uui-critical":"lWPNa2","uui-info":"S0vyWP","uui-success":"DTReHq","uui-warning":"P647AL","uui-highlight":"sSvzSv","uui-typography-size-12":"E1MJ56","uui-typography-size-14":"IEfu0E","uui-typography-size-16":"_1K2uA-","root":"YQNwD6","file-name":"-yYOzJ","default-color":"jHC0Rs","doc-color":"n-5d-G","xls-color":"bOzUTp","pdf-color":"LNlZpp","movie-color":"ZsJeDN","img-color":"_31P70J","mov-color":"lnvT5F","error-block":"SlvlhR","icons-block":"VDiSmQ","uuiTypography":"_3xAshD","heroHeader":"Omt8rO","promoHeader":"PiAdgp","uuiCritical":"lWPNa2","uuiInfo":"S0vyWP","uuiSuccess":"DTReHq","uuiWarning":"P647AL","uuiHighlight":"sSvzSv","uuiTypographySize12":"E1MJ56","uuiTypographySize14":"IEfu0E","uuiTypographySize16":"_1K2uA-","fileName":"-yYOzJ","defaultColor":"jHC0Rs","docColor":"n-5d-G","xlsColor":"bOzUTp","pdfColor":"LNlZpp","movieColor":"ZsJeDN","imgColor":"_31P70J","movColor":"lnvT5F","errorBlock":"SlvlhR","iconsBlock":"VDiSmQ"};
|
|
5107
5182
|
|
|
5108
|
-
var css$2 = {"root":"
|
|
5183
|
+
var css$2 = {"root":"xRHHnc"};
|
|
5109
5184
|
|
|
5110
5185
|
const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5111
5186
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5230,7 +5305,7 @@ const getErrorPageConfig = () => ({
|
|
|
5230
5305
|
},
|
|
5231
5306
|
});
|
|
5232
5307
|
|
|
5233
|
-
var css$1 = {"container":"
|
|
5308
|
+
var css$1 = {"container":"MIS038"};
|
|
5234
5309
|
|
|
5235
5310
|
const ErrorPage = (props) => {
|
|
5236
5311
|
const isMobileScreen = isMobile();
|
|
@@ -5241,7 +5316,7 @@ const ErrorPage = (props) => {
|
|
|
5241
5316
|
React__default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle))));
|
|
5242
5317
|
};
|
|
5243
5318
|
|
|
5244
|
-
var css = {"recovery-spinner":"
|
|
5319
|
+
var css = {"recovery-spinner":"ghTwsA","recovery-message":"Y9mSeI","modal-blocker":"lUmm5Y","modalFadeIn":"-smeL9","recoverySpinner":"ghTwsA","recoveryMessage":"Y9mSeI","modalBlocker":"lUmm5Y"};
|
|
5245
5320
|
|
|
5246
5321
|
function ErrorHandler(props) {
|
|
5247
5322
|
const { uuiNotifications, uuiModals, uuiApi } = useUuiContext();
|