@epam/uui 5.11.0-alpha.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/buttons/Button.d.ts +1 -1
- package/components/buttons/Button.d.ts.map +1 -1
- package/components/datePickers/RangeDatePicker.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerInput.d.ts +4 -0
- package/components/datePickers/RangeDatePickerInput.d.ts.map +1 -1
- package/components/inputs/MultiSwitch.d.ts +11 -3
- package/components/inputs/MultiSwitch.d.ts.map +1 -1
- package/components/layout/Accordion.d.ts.map +1 -1
- package/components/layout/ControlGroup.d.ts.map +1 -1
- package/components/overlays/Modals.d.ts.map +1 -1
- package/components/pickers/DataPickerFooter.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/components/tables/columnsConfigurationModal/ColumnRow.d.ts.map +1 -1
- package/components/typography/Text.d.ts.map +1 -1
- package/index.esm.js +418 -335
- package/index.esm.js.map +1 -1
- package/index.js +417 -334
- package/index.js.map +1 -1
- package/package.json +6 -6
- package/settings.d.ts.map +1 -1
- package/settings.types.d.ts +13 -1
- package/settings.types.d.ts.map +1 -1
- package/stats.html +1 -19
- package/styles.css +2843 -2593
- 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: {
|
|
@@ -548,7 +567,7 @@ const settings = {
|
|
|
548
567
|
modal: {
|
|
549
568
|
window: {
|
|
550
569
|
defaults: {
|
|
551
|
-
width:
|
|
570
|
+
width: 420,
|
|
552
571
|
},
|
|
553
572
|
},
|
|
554
573
|
},
|
|
@@ -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,32 +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
|
-
const getMode = (mode) => {
|
|
1144
|
-
return mode || 'block';
|
|
1145
|
-
};
|
|
1146
1162
|
function applyAccordionMods(mods) {
|
|
1147
1163
|
return [
|
|
1148
|
-
css$
|
|
1149
|
-
css$
|
|
1150
|
-
mods.padding && css$
|
|
1164
|
+
css$1i.root,
|
|
1165
|
+
css$1i[`mode-${mods.mode || 'block'}`],
|
|
1166
|
+
mods.padding && css$1i['padding-' + mods.padding],
|
|
1151
1167
|
];
|
|
1152
1168
|
}
|
|
1153
1169
|
const Accordion = /* @__PURE__ */withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
1154
1170
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons.foldingArrow,
|
|
1155
1171
|
}));
|
|
1156
1172
|
|
|
1157
|
-
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"};
|
|
1158
1174
|
|
|
1159
|
-
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$
|
|
1175
|
+
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$1h.flexCell]);
|
|
1160
1176
|
|
|
1161
1177
|
const FlexRow = /* @__PURE__ */withMods(FlexRow$1, (props) => {
|
|
1162
1178
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1165,45 +1181,45 @@ const FlexRow = /* @__PURE__ */withMods(FlexRow$1, (props) => {
|
|
|
1165
1181
|
}
|
|
1166
1182
|
}
|
|
1167
1183
|
return [
|
|
1168
|
-
css$
|
|
1184
|
+
css$1h.root,
|
|
1169
1185
|
props.size !== null && 'uui-size-' + (props.size || '36'),
|
|
1170
|
-
props.padding && css$
|
|
1171
|
-
props.vPadding && css$
|
|
1172
|
-
props.margin && css$
|
|
1173
|
-
props.topShadow && css$
|
|
1174
|
-
props.borderBottom && css$
|
|
1175
|
-
props.borderTop && css$
|
|
1176
|
-
props.spacing && css$
|
|
1177
|
-
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}`],
|
|
1178
1194
|
];
|
|
1179
1195
|
});
|
|
1180
1196
|
|
|
1181
|
-
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"};
|
|
1182
1198
|
|
|
1183
1199
|
const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
|
|
1184
1200
|
'uui-panel',
|
|
1185
|
-
css$
|
|
1186
|
-
props.shadow && css$
|
|
1187
|
-
props.margin && css$
|
|
1188
|
-
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}`],
|
|
1189
1205
|
]);
|
|
1190
1206
|
|
|
1191
|
-
var css$
|
|
1207
|
+
var css$1f = {"root":"g0hTH8"};
|
|
1192
1208
|
|
|
1193
1209
|
function applyTooltipMods(mods) {
|
|
1194
1210
|
return [
|
|
1195
|
-
css$
|
|
1211
|
+
css$1f.root,
|
|
1196
1212
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1197
1213
|
];
|
|
1198
1214
|
}
|
|
1199
1215
|
const Tooltip = /* @__PURE__ */withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
1200
1216
|
|
|
1201
|
-
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"};
|
|
1202
1218
|
|
|
1203
1219
|
function applyLabeledInputMods(mods) {
|
|
1204
1220
|
return [
|
|
1205
1221
|
'uui-labeled-input',
|
|
1206
|
-
css$
|
|
1222
|
+
css$1e.root,
|
|
1207
1223
|
'uui-size-' + (mods.size || settings.sizes.defaults.labeledInput),
|
|
1208
1224
|
];
|
|
1209
1225
|
}
|
|
@@ -1212,7 +1228,7 @@ const LabeledInput = /* @__PURE__ */withMods(uuiComponents.LabeledInput, applyLa
|
|
|
1212
1228
|
infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$w : ForwardRef$L),
|
|
1213
1229
|
}));
|
|
1214
1230
|
|
|
1215
|
-
var css$
|
|
1231
|
+
var css$1d = {"root":"tlUb9Z"};
|
|
1216
1232
|
|
|
1217
1233
|
function RadioGroup(props) {
|
|
1218
1234
|
const direction = props.direction || 'vertical';
|
|
@@ -1221,34 +1237,34 @@ function RadioGroup(props) {
|
|
|
1221
1237
|
props.onValueChange(newVal);
|
|
1222
1238
|
}
|
|
1223
1239
|
};
|
|
1224
|
-
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) => {
|
|
1225
1241
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1226
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)));
|
|
1227
1243
|
})));
|
|
1228
1244
|
}
|
|
1229
1245
|
|
|
1230
|
-
var css$
|
|
1246
|
+
var css$1c = {"root":"tyh2l2"};
|
|
1231
1247
|
|
|
1232
1248
|
function applyScrollBarsMods() {
|
|
1233
1249
|
return [
|
|
1234
|
-
css$
|
|
1250
|
+
css$1c.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1235
1251
|
];
|
|
1236
1252
|
}
|
|
1237
1253
|
const ScrollBars = /* @__PURE__ */withMods(ScrollBars$1, applyScrollBarsMods);
|
|
1238
1254
|
|
|
1239
|
-
var css$
|
|
1255
|
+
var css$1b = {"scroll-container":"_0Y2R4G","list-container":"skRcYH","scrollContainer":"_0Y2R4G","listContainer":"skRcYH"};
|
|
1240
1256
|
|
|
1241
|
-
var css$
|
|
1257
|
+
var css$1a = {"root":"zKxj1u"};
|
|
1242
1258
|
|
|
1243
|
-
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$
|
|
1259
|
+
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$1a.root]);
|
|
1244
1260
|
|
|
1245
|
-
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"};
|
|
1246
1262
|
|
|
1247
1263
|
const DEFAULT_FILL = 'solid';
|
|
1248
1264
|
function applyBadgeMods(mods) {
|
|
1249
1265
|
return [
|
|
1250
1266
|
'uui-badge',
|
|
1251
|
-
css$
|
|
1267
|
+
css$19.root,
|
|
1252
1268
|
`uui-size-${mods.size || settings.sizes.defaults.badge}`,
|
|
1253
1269
|
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1254
1270
|
`uui-color-${mods.color || 'info'}`,
|
|
@@ -1266,11 +1282,11 @@ const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1266
1282
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1267
1283
|
});
|
|
1268
1284
|
|
|
1269
|
-
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"};
|
|
1270
1286
|
|
|
1271
1287
|
function applyTagMods(props) {
|
|
1272
1288
|
return [
|
|
1273
|
-
css$
|
|
1289
|
+
css$18.root,
|
|
1274
1290
|
`uui-size-${props.size || settings.sizes.defaults.tag}`,
|
|
1275
1291
|
`uui-color-${props.color || 'neutral'}`,
|
|
1276
1292
|
`uui-fill-${props.fill || 'solid'}`,
|
|
@@ -1290,10 +1306,10 @@ const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1290
1306
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1291
1307
|
});
|
|
1292
1308
|
|
|
1293
|
-
var css$
|
|
1309
|
+
var css$17 = {"root":"wpX2u6","uui-spinner":"AeYkFy","uuiSpinner":"AeYkFy"};
|
|
1294
1310
|
|
|
1295
1311
|
function applySpinnerMods() {
|
|
1296
|
-
return [css$
|
|
1312
|
+
return [css$17.root, 'uui-spinner'];
|
|
1297
1313
|
}
|
|
1298
1314
|
const Spinner = /* @__PURE__ */withMods(Spinner$1, applySpinnerMods);
|
|
1299
1315
|
|
|
@@ -1327,57 +1343,57 @@ var SvgNavigationChevronRightOutline = function SvgNavigationChevronRightOutline
|
|
|
1327
1343
|
};
|
|
1328
1344
|
var ForwardRef$u = /*#__PURE__*/forwardRef(SvgNavigationChevronRightOutline);
|
|
1329
1345
|
|
|
1330
|
-
var css$
|
|
1346
|
+
var css$16 = {"root":"LgQr41","page":"h-ue9o","spacer":"_6lTnzR","mode-ghost":"rMWHAS","modeGhost":"rMWHAS"};
|
|
1331
1347
|
|
|
1332
1348
|
function Paginator(props) {
|
|
1333
|
-
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),
|
|
1334
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" }),
|
|
1335
1351
|
params.pages.map((page, index) => {
|
|
1336
1352
|
if (page.type === 'spacer') {
|
|
1337
|
-
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 }));
|
|
1338
1354
|
}
|
|
1339
1355
|
else {
|
|
1340
|
-
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 }));
|
|
1341
1357
|
}
|
|
1342
1358
|
}),
|
|
1343
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" })));
|
|
1344
1360
|
return React__default.createElement(Paginator$1, Object.assign({}, props, { render: renderPaginator }));
|
|
1345
1361
|
}
|
|
1346
1362
|
|
|
1347
|
-
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"};
|
|
1348
1364
|
|
|
1349
1365
|
const IndeterminateBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1350
|
-
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$
|
|
1351
|
-
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) })));
|
|
1352
1368
|
});
|
|
1353
1369
|
|
|
1354
|
-
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"};
|
|
1355
1371
|
|
|
1356
1372
|
const DEFAULT_SIZE = '12';
|
|
1357
1373
|
function applyProgressBarMods(mods) {
|
|
1358
1374
|
const size = mods.size || DEFAULT_SIZE;
|
|
1359
1375
|
return [
|
|
1360
|
-
css$
|
|
1361
|
-
css$
|
|
1362
|
-
mods.striped && css$
|
|
1376
|
+
css$14.root,
|
|
1377
|
+
css$14[`size-${size}`],
|
|
1378
|
+
mods.striped && css$14.striped,
|
|
1363
1379
|
];
|
|
1364
1380
|
}
|
|
1365
1381
|
const ProgressBar = /* @__PURE__ */withMods(uuiComponents.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1366
1382
|
hideLabel: props.hideLabel || props.striped,
|
|
1367
1383
|
}));
|
|
1368
1384
|
|
|
1369
|
-
var css$
|
|
1385
|
+
var css$13 = {"root":"UD-QPC"};
|
|
1370
1386
|
|
|
1371
1387
|
const IndicatorBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1372
1388
|
const { progress } = props;
|
|
1373
|
-
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) }));
|
|
1374
1390
|
});
|
|
1375
1391
|
|
|
1376
|
-
var css$
|
|
1392
|
+
var css$12 = {"root":"ztzoSG"};
|
|
1377
1393
|
|
|
1378
1394
|
const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1379
1395
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
1380
|
-
css$
|
|
1396
|
+
css$12.root,
|
|
1381
1397
|
`uui-size-${props.size || settings.sizes.defaults.statusIndicator}`,
|
|
1382
1398
|
'uui-status_indicator',
|
|
1383
1399
|
`uui-color-${props.color || 'neutral'}`,
|
|
@@ -1388,7 +1404,7 @@ const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1388
1404
|
React__default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1389
1405
|
});
|
|
1390
1406
|
|
|
1391
|
-
var css$
|
|
1407
|
+
var css$11 = {"drag-handle":"zCNLEd","icon-container":"HB-b1h","dragHandle":"zCNLEd","iconContainer":"HB-b1h"};
|
|
1392
1408
|
|
|
1393
1409
|
function DataRowAddons(props) {
|
|
1394
1410
|
var _a, _b;
|
|
@@ -1400,19 +1416,19 @@ function DataRowAddons(props) {
|
|
|
1400
1416
|
return settings.sizes.rowAddons.indentWidth[props.size] || settings.sizes.rowAddons.defaults.indentWidth;
|
|
1401
1417
|
};
|
|
1402
1418
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1403
|
-
((_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) }),
|
|
1404
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 })),
|
|
1405
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: {
|
|
1406
1422
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1407
1423
|
role: 'button',
|
|
1408
1424
|
}, key: "icon", icon: ForwardRef$P, cx: [
|
|
1409
|
-
uuiElement.foldingArrow, uuiMarkers.clickable, css$
|
|
1425
|
+
uuiElement.foldingArrow, uuiMarkers.clickable, css$11.iconContainer,
|
|
1410
1426
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.sizes.rowAddons.icon[props.size] || settings.sizes.rowAddons.defaults.icon }))))));
|
|
1411
1427
|
}
|
|
1412
1428
|
|
|
1413
|
-
var css
|
|
1429
|
+
var css$10 = {"root":"oNClxd"};
|
|
1414
1430
|
|
|
1415
|
-
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)) }));
|
|
1416
1432
|
|
|
1417
1433
|
const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1418
1434
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = useVirtualList({
|
|
@@ -1428,7 +1444,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1428
1444
|
var _a;
|
|
1429
1445
|
return ((_a = props.renderRows) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
1430
1446
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1431
|
-
})) || (React.createElement("div", { className: css$
|
|
1447
|
+
})) || (React.createElement("div", { className: css$1b.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1432
1448
|
React.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1433
1449
|
};
|
|
1434
1450
|
const renderView = ({ style }) => (React.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
@@ -1438,7 +1454,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1438
1454
|
return;
|
|
1439
1455
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1440
1456
|
}, []);
|
|
1441
|
-
return (React.createElement(ScrollBars, { cx: cx$1(css$
|
|
1457
|
+
return (React.createElement(ScrollBars, { cx: cx$1(css$1b.scrollContainer, props.cx, {
|
|
1442
1458
|
[uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1443
1459
|
[uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1444
1460
|
[uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -1451,7 +1467,7 @@ const VirtualListView = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1451
1467
|
React.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
1452
1468
|
});
|
|
1453
1469
|
|
|
1454
|
-
var css
|
|
1470
|
+
var css$$ = {"root":"-FfvPK"};
|
|
1455
1471
|
|
|
1456
1472
|
function CheckboxGroup(props) {
|
|
1457
1473
|
const currentValue = props.value || [];
|
|
@@ -1467,62 +1483,16 @@ function CheckboxGroup(props) {
|
|
|
1467
1483
|
}
|
|
1468
1484
|
props.onValueChange(newSelection);
|
|
1469
1485
|
};
|
|
1470
|
-
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) => {
|
|
1471
1487
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1472
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)));
|
|
1473
1489
|
})));
|
|
1474
1490
|
}
|
|
1475
1491
|
|
|
1476
|
-
var css$
|
|
1477
|
-
|
|
1478
|
-
function applyTextMods(mods) {
|
|
1479
|
-
return [
|
|
1480
|
-
css$Z.root,
|
|
1481
|
-
'uui-text',
|
|
1482
|
-
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
1483
|
-
(mods.size !== 'none' || mods.lineHeight) && css$Z.lineHeight,
|
|
1484
|
-
(mods.size !== 'none' || mods.fontSize) && css$Z.fontSize,
|
|
1485
|
-
`uui-color-${mods.color || 'primary'}`,
|
|
1486
|
-
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
1487
|
-
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
1488
|
-
'uui-typography',
|
|
1489
|
-
];
|
|
1490
|
-
}
|
|
1491
|
-
const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props) => {
|
|
1492
|
-
var _a;
|
|
1493
|
-
if (props.fontSize || props.lineHeight) {
|
|
1494
|
-
const style = {};
|
|
1495
|
-
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
1496
|
-
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
1497
|
-
return {
|
|
1498
|
-
rawProps: Object.assign({ style: Object.assign(Object.assign({}, style), (_a = props === null || props === void 0 ? void 0 : props.rawProps) === null || _a === void 0 ? void 0 : _a.style) }, props === null || props === void 0 ? void 0 : props.rawProps),
|
|
1499
|
-
};
|
|
1500
|
-
}
|
|
1501
|
-
});
|
|
1502
|
-
|
|
1503
|
-
var css$Y = {"root":"p4WTiN","loading-word":"_0ibkqa","animated-loading":"svNd9S","skeleton_loading":"WPSnJo","loadingWord":"_0ibkqa","animatedLoading":"svNd9S","skeletonLoading":"WPSnJo"};
|
|
1504
|
-
|
|
1505
|
-
const TextPlaceholder = (props) => {
|
|
1506
|
-
const pattern = ' ';
|
|
1507
|
-
const text = React.useMemo(() => {
|
|
1508
|
-
const words = [];
|
|
1509
|
-
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
1510
|
-
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
1511
|
-
words.push(pattern.repeat(lengthWord));
|
|
1512
|
-
}
|
|
1513
|
-
return words;
|
|
1514
|
-
}, [props.wordsCount]);
|
|
1515
|
-
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([
|
|
1516
|
-
props.cx, css$Y.loadingWord, !props.isNotAnimated && css$Y.animatedLoading,
|
|
1517
|
-
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
1518
|
-
};
|
|
1519
|
-
|
|
1520
|
-
const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
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"};
|
|
1521
1493
|
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$X.modalBlocker]);
|
|
1525
|
-
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$X.root, css$X.modal], (props) => {
|
|
1494
|
+
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$_.modalBlocker]);
|
|
1495
|
+
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$_.root, css$_.modal], (props) => {
|
|
1526
1496
|
const width = props.width || settings.sizes.modal.window.defaults.width;
|
|
1527
1497
|
const height = props.height || 'auto';
|
|
1528
1498
|
const maxHeight = isMobile() ? '100dvh' : (props.maxHeight || '80dvh');
|
|
@@ -1534,8 +1504,8 @@ const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$X.root, cs
|
|
|
1534
1504
|
});
|
|
1535
1505
|
class ModalHeader extends React__default.Component {
|
|
1536
1506
|
render() {
|
|
1537
|
-
return (React__default.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "
|
|
1538
|
-
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)),
|
|
1539
1509
|
this.props.children,
|
|
1540
1510
|
this.props.onClose && React__default.createElement(FlexSpacer, null),
|
|
1541
1511
|
this.props.onClose && (React__default.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
@@ -1545,8 +1515,8 @@ class ModalHeader extends React__default.Component {
|
|
|
1545
1515
|
class ModalFooter extends React__default.Component {
|
|
1546
1516
|
render() {
|
|
1547
1517
|
return (React__default.createElement(FlexRow, { columnGap: this.props.columnGap || '12', cx: [
|
|
1548
|
-
css$
|
|
1549
|
-
css$
|
|
1518
|
+
css$_.root,
|
|
1519
|
+
css$_.modalFooter,
|
|
1550
1520
|
this.props.cx,
|
|
1551
1521
|
], borderTop: this.props.borderTop, padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
1552
1522
|
}
|
|
@@ -1708,7 +1678,7 @@ var SvgNotificationHelpFill = function SvgNotificationHelpFill(props, ref) {
|
|
|
1708
1678
|
};
|
|
1709
1679
|
var ForwardRef$t = /*#__PURE__*/forwardRef(SvgNotificationHelpFill);
|
|
1710
1680
|
|
|
1711
|
-
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"};
|
|
1712
1682
|
|
|
1713
1683
|
const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
1714
1684
|
const notificationCardNode = React__default.useRef(null);
|
|
@@ -1723,15 +1693,15 @@ const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
1723
1693
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
1724
1694
|
};
|
|
1725
1695
|
}, []);
|
|
1726
|
-
return (React__default.createElement("div", Object.assign({ role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
1727
|
-
React__default.createElement("div", { className: css$
|
|
1728
|
-
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 },
|
|
1729
1699
|
React__default.createElement(IconContainer, { size: 24, icon: props.icon }))),
|
|
1730
|
-
React__default.createElement("div", { className: css$
|
|
1700
|
+
React__default.createElement("div", { className: css$Z.content },
|
|
1731
1701
|
props.children,
|
|
1732
|
-
props.actions && (React__default.createElement("div", { className: css$
|
|
1733
|
-
props.onClose && (React__default.createElement("div", { className: css$
|
|
1734
|
-
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 }))))));
|
|
1735
1705
|
});
|
|
1736
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 }))));
|
|
1737
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 }))));
|
|
@@ -1739,11 +1709,11 @@ const HintNotification = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
1739
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 }))));
|
|
1740
1710
|
function ClearNotification() {
|
|
1741
1711
|
const uuiCtx = useUuiContext();
|
|
1742
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
1712
|
+
return (React__default.createElement("div", { className: cx(css$Z.notificationWrapper, css$Z.clearButton) },
|
|
1743
1713
|
React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
1744
1714
|
}
|
|
1745
1715
|
|
|
1746
|
-
var css$
|
|
1716
|
+
var css$Y = {"footer":"nMveUl"};
|
|
1747
1717
|
|
|
1748
1718
|
class ConfirmationModal extends React.Component {
|
|
1749
1719
|
render() {
|
|
@@ -1755,7 +1725,7 @@ class ConfirmationModal extends React.Component {
|
|
|
1755
1725
|
React.createElement(ModalWindow, { width: 420 },
|
|
1756
1726
|
React.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
1757
1727
|
React.createElement(ScrollBars, null, bodyContent),
|
|
1758
|
-
React.createElement(ModalFooter, { cx: css$
|
|
1728
|
+
React.createElement(ModalFooter, { cx: css$Y.footer },
|
|
1759
1729
|
this.props.hideCancelButton || (React.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
1760
1730
|
React.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
1761
1731
|
}
|
|
@@ -1785,7 +1755,7 @@ function useReliableForceUpdate() {
|
|
|
1785
1755
|
return red[1];
|
|
1786
1756
|
}
|
|
1787
1757
|
|
|
1788
|
-
var css$
|
|
1758
|
+
var css$X = {"root":"aPLQMU","timepicker-input":"oBjTPN","ltr-always":"bOQMVG","timepickerInput":"oBjTPN","ltrAlways":"bOQMVG"};
|
|
1789
1759
|
|
|
1790
1760
|
const uuiTimePicker = {
|
|
1791
1761
|
container: 'uui-timepicker-container',
|
|
@@ -1824,8 +1794,8 @@ function TimePickerBody(props) {
|
|
|
1824
1794
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
1825
1795
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
1826
1796
|
};
|
|
1827
|
-
return (React.createElement("div", Object.assign({ className: cx$1(css$
|
|
1828
|
-
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 },
|
|
1829
1799
|
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1830
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()) }),
|
|
1831
1801
|
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -1967,7 +1937,7 @@ function TimePicker(props) {
|
|
|
1967
1937
|
};
|
|
1968
1938
|
const renderInput = (inputProps) => {
|
|
1969
1939
|
var _a;
|
|
1970
|
-
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 })));
|
|
1971
1941
|
};
|
|
1972
1942
|
const renderBody = (bodyProps) => {
|
|
1973
1943
|
var _a;
|
|
@@ -1978,19 +1948,19 @@ function TimePicker(props) {
|
|
|
1978
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 }));
|
|
1979
1949
|
}
|
|
1980
1950
|
|
|
1981
|
-
var css$
|
|
1951
|
+
var css$W = {"root":"_8ZS4aJ"};
|
|
1982
1952
|
|
|
1983
1953
|
function applyInputAddonMods() {
|
|
1984
1954
|
return [
|
|
1985
|
-
css$
|
|
1955
|
+
css$W.root,
|
|
1986
1956
|
];
|
|
1987
1957
|
}
|
|
1988
1958
|
const InputAddon = /* @__PURE__ */withMods(InputAddon$1, applyInputAddonMods);
|
|
1989
1959
|
|
|
1990
|
-
var css$
|
|
1960
|
+
var css$V = {"root":"KWdxCh"};
|
|
1991
1961
|
|
|
1992
1962
|
function applySliderMods() {
|
|
1993
|
-
return [css$
|
|
1963
|
+
return [css$V.root, 'uui-color-neutral'];
|
|
1994
1964
|
}
|
|
1995
1965
|
const Slider = /* @__PURE__ */withMods(Slider$1, applySliderMods);
|
|
1996
1966
|
|
|
@@ -2122,7 +2092,7 @@ const getNextYearsList = (currentDate) => {
|
|
|
2122
2092
|
return currentDate.add(16, 'year');
|
|
2123
2093
|
};
|
|
2124
2094
|
|
|
2125
|
-
var css$
|
|
2095
|
+
var css$U = {"root":"vmfB3-","container":"YV7DSC"};
|
|
2126
2096
|
|
|
2127
2097
|
const uuiHeader = {
|
|
2128
2098
|
container: 'uui-datepicker-header-container',
|
|
@@ -2199,21 +2169,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2199
2169
|
}, [view, month]);
|
|
2200
2170
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2201
2171
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2202
|
-
return (React.createElement("div", { className: cx(css$
|
|
2172
|
+
return (React.createElement("div", { className: cx(css$U.root, uuiHeader.container, cx) },
|
|
2203
2173
|
React.createElement("header", { className: uuiHeader.headerNav },
|
|
2204
2174
|
React.createElement(Button, { icon: navIconLeft || ForwardRef$v, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2205
2175
|
React.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2206
2176
|
React.createElement(Button, { icon: navIconRight || ForwardRef$u, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2207
2177
|
}
|
|
2208
2178
|
|
|
2209
|
-
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"};
|
|
2210
2180
|
|
|
2211
2181
|
function applyDateSelectionMods() {
|
|
2212
|
-
return [css$
|
|
2182
|
+
return [css$T.root, `uui-size-${settings.sizes.defaults.datePicker}`];
|
|
2213
2183
|
}
|
|
2214
2184
|
const Calendar = /* @__PURE__ */withMods(Calendar$1, applyDateSelectionMods);
|
|
2215
2185
|
|
|
2216
|
-
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"};
|
|
2217
2187
|
|
|
2218
2188
|
const uuiDatePickerBody = {
|
|
2219
2189
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2257,7 +2227,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2257
2227
|
}
|
|
2258
2228
|
};
|
|
2259
2229
|
return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(uuiDatePickerBodyBase.container, `uui-size-${settings.sizes.defaults.datePicker}`, classes) }, rawProps),
|
|
2260
|
-
React__default.createElement("div", { className: cx$1(css$
|
|
2230
|
+
React__default.createElement("div", { className: cx$1(css$S.root, uuiDatePickerBody.wrapper) },
|
|
2261
2231
|
React__default.createElement(DatePickerHeader, { value: {
|
|
2262
2232
|
view,
|
|
2263
2233
|
month,
|
|
@@ -2344,9 +2314,9 @@ function DatePickerComponent(props, ref) {
|
|
|
2344
2314
|
}
|
|
2345
2315
|
const DatePicker = /* @__PURE__ */React__default.forwardRef(DatePickerComponent);
|
|
2346
2316
|
|
|
2347
|
-
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"};
|
|
2348
2318
|
|
|
2349
|
-
const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, id, cx: classes, }, ref) => {
|
|
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) => {
|
|
2350
2320
|
const [inputValue, setInputValue] = useState(toCustomDateRangeFormat(value, format));
|
|
2351
2321
|
useEffect(() => {
|
|
2352
2322
|
setInputValue(toCustomDateRangeFormat(value, format));
|
|
@@ -2376,15 +2346,17 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
|
|
|
2376
2346
|
}
|
|
2377
2347
|
};
|
|
2378
2348
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2379
|
-
return (
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
React__default.createElement(TextInput, { cx: cx$1(css$
|
|
2349
|
+
return (
|
|
2350
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
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 ? () => {
|
|
2383
2355
|
onValueChange(defaultRangeValue);
|
|
2384
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 })));
|
|
2385
2357
|
});
|
|
2386
2358
|
|
|
2387
|
-
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"};
|
|
2388
2360
|
|
|
2389
2361
|
const uuiPresets = {
|
|
2390
2362
|
container: 'uui-presets-container',
|
|
@@ -2395,12 +2367,12 @@ const getPresets = (presets) => {
|
|
|
2395
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);
|
|
2396
2368
|
};
|
|
2397
2369
|
function CalendarPresets(props) {
|
|
2398
|
-
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),
|
|
2399
2371
|
React.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2400
2372
|
getPresets(props.presets).map((item) => (React.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: "24" })))));
|
|
2401
2373
|
}
|
|
2402
2374
|
|
|
2403
|
-
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"};
|
|
2404
2376
|
|
|
2405
2377
|
const uuiRangeDatePickerBody = {
|
|
2406
2378
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -2541,21 +2513,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
2541
2513
|
});
|
|
2542
2514
|
}, presets: presets })));
|
|
2543
2515
|
};
|
|
2544
|
-
return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(css$
|
|
2545
|
-
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" },
|
|
2546
2518
|
React__default.createElement(FlexCell, { width: "auto" },
|
|
2547
2519
|
React__default.createElement(FlexRow, null,
|
|
2548
|
-
React__default.createElement(FlexRow, { cx: css$
|
|
2549
|
-
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) => {
|
|
2550
2522
|
setMonth(m);
|
|
2551
2523
|
}, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' })),
|
|
2552
|
-
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) => {
|
|
2553
2525
|
setMonth(m.subtract(1, 'month'));
|
|
2554
2526
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' })),
|
|
2555
2527
|
view !== 'DAY_SELECTION' && (React__default.createElement("div", { style: {
|
|
2556
2528
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
2557
2529
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
2558
|
-
}, className: css$
|
|
2530
|
+
}, className: css$P.blocker }))),
|
|
2559
2531
|
props.presets && renderPresets(props.presets)),
|
|
2560
2532
|
props.renderFooter && props.renderFooter()))));
|
|
2561
2533
|
}
|
|
@@ -2575,7 +2547,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
2575
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)];
|
|
2576
2548
|
};
|
|
2577
2549
|
|
|
2578
|
-
var css$
|
|
2550
|
+
var css$O = {"dropdown-container":"MtKUM1","dropdownContainer":"MtKUM1"};
|
|
2579
2551
|
|
|
2580
2552
|
const modifiers = [{
|
|
2581
2553
|
name: 'offset',
|
|
@@ -2587,6 +2559,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2587
2559
|
const context = useUuiContext();
|
|
2588
2560
|
const [isOpen, setIsOpen] = useState(false);
|
|
2589
2561
|
const [inFocus, setInFocus] = useState(null);
|
|
2562
|
+
const targetRef = React__default.useRef(null);
|
|
2590
2563
|
const onValueChange = (newValue) => {
|
|
2591
2564
|
const fromChanged = (value === null || value === void 0 ? void 0 : value.from) !== (newValue === null || newValue === void 0 ? void 0 : newValue.from);
|
|
2592
2565
|
const toChanged = (value === null || value === void 0 ? void 0 : value.to) !== (newValue === null || newValue === void 0 ? void 0 : newValue.to);
|
|
@@ -2602,6 +2575,10 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2602
2575
|
var _a;
|
|
2603
2576
|
setIsOpen(newIsOpen);
|
|
2604
2577
|
(_a = props.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(props, newIsOpen);
|
|
2578
|
+
if (!inFocus && newIsOpen) {
|
|
2579
|
+
setInFocus('from');
|
|
2580
|
+
targetRef.current.querySelector('.uui-input').focus();
|
|
2581
|
+
}
|
|
2605
2582
|
};
|
|
2606
2583
|
const onBodyValueChange = (newValue) => {
|
|
2607
2584
|
var _a;
|
|
@@ -2617,7 +2594,10 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2617
2594
|
};
|
|
2618
2595
|
const renderBody = (renderProps) => {
|
|
2619
2596
|
var _a;
|
|
2620
|
-
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) => {
|
|
2598
|
+
console.log('lock', node);
|
|
2599
|
+
return true;
|
|
2600
|
+
} }),
|
|
2621
2601
|
React__default.createElement(FlexRow, null,
|
|
2622
2602
|
React__default.createElement(RangeDatePickerBody, { cx: cx(props.bodyCx), value: {
|
|
2623
2603
|
selectedDate: _value,
|
|
@@ -2627,33 +2607,83 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2627
2607
|
return (_a = props.renderFooter) === null || _a === void 0 ? void 0 : _a.call(props, value);
|
|
2628
2608
|
}, isHoliday: props.isHoliday, rawProps: (_a = props.rawProps) === null || _a === void 0 ? void 0 : _a.body }))));
|
|
2629
2609
|
};
|
|
2610
|
+
const handleEscape = (e) => {
|
|
2611
|
+
if (e.key === 'Escape' && isOpen) {
|
|
2612
|
+
e.preventDefault();
|
|
2613
|
+
onOpenChange(false);
|
|
2614
|
+
}
|
|
2615
|
+
};
|
|
2630
2616
|
return (React__default.createElement(Dropdown$1, { renderTarget: (renderProps) => {
|
|
2631
2617
|
var _a;
|
|
2632
|
-
return ((_a = props.renderTarget) === null || _a === void 0 ? void 0 : _a.call(props, renderProps)) || (React__default.createElement(RangeDatePickerInput, { id: props.id, ref: renderProps.ref, cx: props.inputCx, onClick: renderProps.
|
|
2618
|
+
return ((_a = props.renderTarget) === null || _a === void 0 ? void 0 : _a.call(props, renderProps)) || (React__default.createElement(RangeDatePickerInput, { id: props.id, ref: (node) => { renderProps.ref(node); targetRef.current = node; }, cx: props.inputCx, onClick: () => renderProps.toggleDropdownOpening(true), isDisabled: props.isDisabled, isInvalid: props.isInvalid, isReadonly: props.isReadonly, size: props.size, getPlaceholder: props.getPlaceholder, disableClear: props.disableClear, rawProps: props.rawProps, inFocus: inFocus, value: value, format: format, onValueChange: onValueChange, onFocusInput: (e, type) => {
|
|
2633
2619
|
var _a;
|
|
2634
2620
|
(_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e, type);
|
|
2635
2621
|
setInFocus(type);
|
|
2636
|
-
}, onBlurInput: (e, type) => { var _a; (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e, type); !isOpen && setInFocus(null); } }));
|
|
2622
|
+
}, onBlurInput: (e, type) => { var _a; (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e, type); !isOpen && setInFocus(null); }, onKeyDown: handleEscape }));
|
|
2637
2623
|
}, renderBody: (renderProps) => renderBody(renderProps), onValueChange: (v) => onOpenChange(v), value: isOpen, modifiers: modifiers, placement: props.placement, forwardedRef: ref }));
|
|
2638
2624
|
}
|
|
2639
2625
|
const RangeDatePicker = /* @__PURE__ */React__default.forwardRef(RangeDatePickerComponent);
|
|
2640
2626
|
|
|
2641
|
-
var css$
|
|
2627
|
+
var css$N = {"root":"_5M2TJ2","blocker":"rx5kjB","marker":"w0-6QR","top":"PfqFJD","bottom":"sjp65Q","left":"TF30bU","right":"onyygz","inside":"m0Loz2"};
|
|
2642
2628
|
|
|
2643
2629
|
function DropMarker(props) {
|
|
2644
2630
|
return props.isDndInProgress
|
|
2645
2631
|
? (React.createElement(React.Fragment, null,
|
|
2646
|
-
props.enableBlocker && React.createElement("div", { className: css$
|
|
2632
|
+
props.enableBlocker && React.createElement("div", { className: css$N.blocker }),
|
|
2647
2633
|
React.createElement("div", { className: cx([
|
|
2648
|
-
css$
|
|
2649
|
-
css$
|
|
2650
|
-
css$
|
|
2634
|
+
css$N.root,
|
|
2635
|
+
css$N.marker,
|
|
2636
|
+
css$N[props.position],
|
|
2651
2637
|
props === null || props === void 0 ? void 0 : props.cx,
|
|
2652
2638
|
]) })))
|
|
2653
2639
|
: null;
|
|
2654
2640
|
}
|
|
2655
2641
|
|
|
2656
|
-
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"};
|
|
2657
2687
|
|
|
2658
2688
|
class DataPickerBody extends PickerBodyBase {
|
|
2659
2689
|
constructor() {
|
|
@@ -2672,7 +2702,7 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
2672
2702
|
});
|
|
2673
2703
|
}
|
|
2674
2704
|
if (this.props.minCharsToSearch && search.length < this.props.minCharsToSearch) {
|
|
2675
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
2705
|
+
return (React__default.createElement(FlexCell$1, { cx: css$K.noData, grow: 1, textAlign: "center" },
|
|
2676
2706
|
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
2677
2707
|
}
|
|
2678
2708
|
if (this.props.rows.length === 0) {
|
|
@@ -2687,55 +2717,52 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
2687
2717
|
}
|
|
2688
2718
|
// Default no record found message for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
2689
2719
|
// TODO: make separate messages for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
2690
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
2720
|
+
return (React__default.createElement(FlexCell$1, { cx: css$K.noData, grow: 1, textAlign: "center" },
|
|
2691
2721
|
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
2692
2722
|
}
|
|
2693
2723
|
}
|
|
2694
2724
|
render() {
|
|
2695
2725
|
const searchSize = this.getSearchSize();
|
|
2696
2726
|
return (React__default.createElement(React__default.Fragment, null,
|
|
2697
|
-
this.showSearch() && (React__default.createElement("div", { key: "search", className: css$
|
|
2727
|
+
this.showSearch() && (React__default.createElement("div", { key: "search", className: css$K.searchWrapper },
|
|
2698
2728
|
React__default.createElement(FlexCell$1, { grow: 1 },
|
|
2699
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' } }))))),
|
|
2700
|
-
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())));
|
|
2701
2731
|
}
|
|
2702
2732
|
}
|
|
2703
2733
|
|
|
2704
|
-
var css$
|
|
2734
|
+
var css$J = {"footer":"_3cDF0d"};
|
|
2705
2735
|
|
|
2706
2736
|
function DataPickerFooterImpl(props) {
|
|
2707
2737
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
2708
2738
|
const size = isMobile() ? settings.sizes.pickerInput.body.mobile.footer.linkButton : props.size;
|
|
2709
2739
|
const hasSelection = view.getSelectedRowsCount() > 0;
|
|
2710
2740
|
const rowsCount = view.getListProps().rowsCount;
|
|
2711
|
-
const isEmptyRowsAndHasNoSelection = (rowsCount === 0 && !hasSelection);
|
|
2712
2741
|
const isSinglePicker = selectionMode === 'single';
|
|
2713
2742
|
const clearAllText = i18n.pickerInput.clearSelectionButton;
|
|
2714
2743
|
const clearSingleText = i18n.pickerInput.clearSelectionButtonSingle;
|
|
2715
2744
|
const selectAllText = i18n.pickerInput.selectAllButton;
|
|
2716
|
-
|
|
2717
|
-
const
|
|
2718
|
-
const
|
|
2719
|
-
return !hideFooter && (React__default.createElement(FlexRow, { cx: css$
|
|
2745
|
+
const isSearching = search === null || search === void 0 ? void 0 : search.length;
|
|
2746
|
+
const hideFooter = isSearchTooShort || rowsCount === 0 || isSearching || (isSinglePicker && props.disableClear);
|
|
2747
|
+
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
2748
|
+
return !hideFooter && (React__default.createElement(FlexRow, { cx: css$J.footer },
|
|
2720
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 })),
|
|
2721
2750
|
React__default.createElement(FlexSpacer, null),
|
|
2722
2751
|
React__default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
2723
|
-
view.selectAll && (React__default.createElement(LinkButton, {
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
'aria-label': isSinglePicker ? clearSingleText : clearAllText,
|
|
2728
|
-
} })))));
|
|
2752
|
+
view.selectAll && !hasSelection && (React__default.createElement(LinkButton, { key: "SelectAll/ClearAll" // We use the same key for these buttons, because we need to leave focus on it after click, so we need to react doesn't remount it.
|
|
2753
|
+
, size: size, caption: selectAllText, onClick: () => view.selectAll.onValueChange(true) })),
|
|
2754
|
+
showClear && (React__default.createElement(LinkButton, { key: "SelectAll/ClearAll" // We use the same key for these buttons, because we need to leave focus on it after click, so we need to react doesn't remount it. Basically it's the same button, but with different caption.
|
|
2755
|
+
, size: size, caption: isSinglePicker ? clearSingleText : clearAllText, onClick: clearSelection, isDisabled: !hasSelection })))));
|
|
2729
2756
|
}
|
|
2730
2757
|
const DataPickerFooter = /* @__PURE__ */React__default.memo(DataPickerFooterImpl);
|
|
2731
2758
|
|
|
2732
|
-
var css$
|
|
2759
|
+
var css$I = {"header":"WzgQhD","title":"fh1W76","close":"_486zLe"};
|
|
2733
2760
|
|
|
2734
2761
|
const DataPickerHeaderImpl = (props) => {
|
|
2735
2762
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
2736
|
-
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$
|
|
2737
|
-
React__default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$
|
|
2738
|
-
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 })));
|
|
2739
2766
|
};
|
|
2740
2767
|
const DataPickerHeader = /* @__PURE__ */React__default.memo(DataPickerHeaderImpl);
|
|
2741
2768
|
|
|
@@ -2754,7 +2781,7 @@ var SvgNotificationDoneFill = function SvgNotificationDoneFill(props, ref) {
|
|
|
2754
2781
|
};
|
|
2755
2782
|
var ForwardRef$s = /*#__PURE__*/forwardRef(SvgNotificationDoneFill);
|
|
2756
2783
|
|
|
2757
|
-
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"};
|
|
2758
2785
|
|
|
2759
2786
|
function DataPickerCell(props) {
|
|
2760
2787
|
const ref = React.useRef();
|
|
@@ -2762,28 +2789,28 @@ function DataPickerCell(props) {
|
|
|
2762
2789
|
if (props.rowProps.isLoading) {
|
|
2763
2790
|
content = (
|
|
2764
2791
|
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
2765
|
-
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 },
|
|
2766
2793
|
React.createElement(TextPlaceholder, null)));
|
|
2767
2794
|
}
|
|
2768
2795
|
else if (props.rowProps.isUnknown) {
|
|
2769
2796
|
content = (React.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size] }, "Unknown"));
|
|
2770
2797
|
}
|
|
2771
2798
|
else {
|
|
2772
|
-
content = (React.createElement("div", { key: `${props.rowProps.id}`, className: css$
|
|
2799
|
+
content = (React.createElement("div", { key: `${props.rowProps.id}`, className: css$H.renderItem },
|
|
2773
2800
|
props.renderItem(props.rowProps.value, props.rowProps),
|
|
2774
2801
|
React.createElement(FlexSpacer, null),
|
|
2775
|
-
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React.createElement("div", { className: cx$1(css$
|
|
2776
|
-
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
|
|
2777
2804
|
? 'Child is selected'
|
|
2778
2805
|
: 'Selected' } })))));
|
|
2779
2806
|
}
|
|
2780
|
-
const getWrappedContent = () => (React.createElement("div", { className: css$
|
|
2807
|
+
const getWrappedContent = () => (React.createElement("div", { className: css$H.contentWrapper }, content));
|
|
2781
2808
|
return (React.createElement(FlexCell, { ref: ref, grow: 1, width: 0, minWidth: 0, rawProps: { role: 'cell' }, cx: [
|
|
2782
|
-
css$
|
|
2809
|
+
css$H.root,
|
|
2783
2810
|
props.cx,
|
|
2784
2811
|
'data-picker-cell',
|
|
2785
2812
|
props.size && `uui-size-${props.size}`,
|
|
2786
|
-
css$
|
|
2813
|
+
css$H[`align-widgets-${props.alignActions || 'top'}`],
|
|
2787
2814
|
], style: props.padding && {
|
|
2788
2815
|
'--uui-data_picker_cell-horizontal-padding': `${props.padding}px`,
|
|
2789
2816
|
} },
|
|
@@ -2791,7 +2818,7 @@ function DataPickerCell(props) {
|
|
|
2791
2818
|
getWrappedContent()));
|
|
2792
2819
|
}
|
|
2793
2820
|
|
|
2794
|
-
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"};
|
|
2795
2822
|
|
|
2796
2823
|
class DataPickerRow extends React.Component {
|
|
2797
2824
|
constructor() {
|
|
@@ -2801,20 +2828,20 @@ class DataPickerRow extends React.Component {
|
|
|
2801
2828
|
};
|
|
2802
2829
|
}
|
|
2803
2830
|
render() {
|
|
2804
|
-
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 })));
|
|
2805
2832
|
}
|
|
2806
2833
|
}
|
|
2807
2834
|
|
|
2808
|
-
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"};
|
|
2809
2836
|
|
|
2810
2837
|
const PickerBodyMobileView = (props) => {
|
|
2811
2838
|
const isMobileView = isMobile();
|
|
2812
2839
|
const maxWidth = isMobileView ? 'auto' : props.maxWidth;
|
|
2813
2840
|
const maxHeight = isMobileView ? 'auto' : props.maxHeight;
|
|
2814
|
-
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 }),
|
|
2815
2842
|
isMobileView && React__default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
|
|
2816
2843
|
props.children,
|
|
2817
|
-
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 })));
|
|
2818
2845
|
};
|
|
2819
2846
|
|
|
2820
2847
|
var _path$r, _path2$4;
|
|
@@ -2839,7 +2866,7 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2839
2866
|
};
|
|
2840
2867
|
var ForwardRef$r = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
|
|
2841
2868
|
|
|
2842
|
-
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"};
|
|
2843
2870
|
|
|
2844
2871
|
const mergeHighlightRanges = (ranges) => {
|
|
2845
2872
|
const mergedRanges = [];
|
|
@@ -2906,7 +2933,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
2906
2933
|
return getDecoratedText(str, ranges);
|
|
2907
2934
|
};
|
|
2908
2935
|
|
|
2909
|
-
var css$
|
|
2936
|
+
var css$D = {"root":"nmx00p","column-gap":"NcWFQ8","multiline":"-aoT4J","text":"uvN1vd","columnGap":"NcWFQ8"};
|
|
2910
2937
|
|
|
2911
2938
|
function PickerItem(props) {
|
|
2912
2939
|
var _a;
|
|
@@ -2916,13 +2943,13 @@ function PickerItem(props) {
|
|
|
2916
2943
|
const { search } = (_a = props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2917
2944
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(props.title, search) : props.title;
|
|
2918
2945
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(props.subtitle, search) : props.subtitle;
|
|
2919
|
-
return (React.createElement(FlexCell, { width: "auto", cx: [css$
|
|
2920
|
-
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` } } },
|
|
2921
2948
|
avatarUrl && (React.createElement(Avatar, { isLoading: isLoading, img: avatarUrl, size: getAvatarSize(itemSize, isMultiline).toString() })),
|
|
2922
2949
|
icon && React.createElement(IconContainer, { icon: icon }),
|
|
2923
2950
|
React.createElement(FlexCell, { width: "auto" },
|
|
2924
|
-
title && (React.createElement(Text, { size: itemSize, cx: css$
|
|
2925
|
-
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))))));
|
|
2926
2953
|
}
|
|
2927
2954
|
function getAvatarSize(size, isMultiline) {
|
|
2928
2955
|
return settings.sizes.pickerInput.body.dropdown.row.cell.item.avatar[isMultiline ? 'multiline' : 'rest'][size];
|
|
@@ -2956,17 +2983,17 @@ function PickerModal(props) {
|
|
|
2956
2983
|
React__default.createElement(Button, { color: "primary", caption: i18n.pickerModal.selectButton, onClick: () => props.success(selection) })));
|
|
2957
2984
|
};
|
|
2958
2985
|
const renderNotFound = () => {
|
|
2959
|
-
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__default.createElement("div", { className: css$
|
|
2960
|
-
React__default.createElement(IconContainer, { cx: css$
|
|
2961
|
-
React__default.createElement(Text, { cx: css$
|
|
2962
|
-
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)));
|
|
2963
2990
|
};
|
|
2964
2991
|
const dataRows = getRows();
|
|
2965
2992
|
const rows = dataRows.map((row) => renderRow(row));
|
|
2966
2993
|
return (React__default.createElement(ModalBlocker, Object.assign({}, props),
|
|
2967
2994
|
React__default.createElement(ModalWindow, { width: 600, height: 700 },
|
|
2968
2995
|
React__default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
2969
|
-
React__default.createElement(FlexCell, { cx: css$
|
|
2996
|
+
React__default.createElement(FlexCell, { cx: css$E.subHeaderWrapper },
|
|
2970
2997
|
React__default.createElement(FlexRow, { vPadding: "24" },
|
|
2971
2998
|
React__default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => handleDataSourceKeyboard({
|
|
2972
2999
|
value: getDataSourceState(),
|
|
@@ -2975,20 +3002,20 @@ function PickerModal(props) {
|
|
|
2975
3002
|
rows: dataRows,
|
|
2976
3003
|
searchPosition: 'body',
|
|
2977
3004
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: { dir: 'auto' } }))),
|
|
2978
|
-
!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" }))),
|
|
2979
3006
|
props.renderFilter && React__default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
2980
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" })),
|
|
2981
3008
|
React__default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
2982
3009
|
}
|
|
2983
3010
|
|
|
2984
|
-
var css$
|
|
3011
|
+
var css$C = {"tooltip":"CQsB6W"};
|
|
2985
3012
|
|
|
2986
3013
|
const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
2987
3014
|
var _a;
|
|
2988
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 });
|
|
2989
3016
|
if (props.isCollapsed) {
|
|
2990
3017
|
const collapsedRows = props.collapsedRows.map((row) => props.getName(row.value)).join(', ');
|
|
2991
|
-
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 },
|
|
2992
3019
|
React.createElement(Tag, Object.assign({ ref: ref, rawProps: { role: 'option' } }, tagProps))));
|
|
2993
3020
|
}
|
|
2994
3021
|
else {
|
|
@@ -2996,15 +3023,15 @@ const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2996
3023
|
}
|
|
2997
3024
|
});
|
|
2998
3025
|
|
|
2999
|
-
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"};
|
|
3000
3027
|
|
|
3001
3028
|
const defaultMode = EditMode.FORM;
|
|
3002
3029
|
function applyPickerTogglerMods(mods) {
|
|
3003
3030
|
return [
|
|
3004
|
-
css$
|
|
3031
|
+
css$B.root,
|
|
3005
3032
|
'uui-picker_toggler',
|
|
3006
3033
|
`uui-size-${mods.size || settings.sizes.pickerInput.toggler.defaults.size}`,
|
|
3007
|
-
css$
|
|
3034
|
+
css$B['mode-' + (mods.mode || defaultMode)],
|
|
3008
3035
|
];
|
|
3009
3036
|
}
|
|
3010
3037
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -3093,7 +3120,7 @@ function PickerInputComponent(_a, ref) {
|
|
|
3093
3120
|
}
|
|
3094
3121
|
const PickerInput = /* @__PURE__ */React__default.forwardRef(PickerInputComponent);
|
|
3095
3122
|
|
|
3096
|
-
var css$
|
|
3123
|
+
var css$A = {"row":"xwLjqb"};
|
|
3097
3124
|
|
|
3098
3125
|
function PickerListItem(props) {
|
|
3099
3126
|
var _a;
|
|
@@ -3111,10 +3138,10 @@ function PickerListItem(props) {
|
|
|
3111
3138
|
else {
|
|
3112
3139
|
component = (React__default.createElement(RadioInput, { label: label, value: props.isSelected, isDisabled: props.isLoading || !props.isSelectable || props.isDisabled, onValueChange: () => props.onSelect(props) }));
|
|
3113
3140
|
}
|
|
3114
|
-
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));
|
|
3115
3142
|
}
|
|
3116
3143
|
|
|
3117
|
-
var css$
|
|
3144
|
+
var css$z = {"root":"_8dlJaz"};
|
|
3118
3145
|
|
|
3119
3146
|
function PickerList(props) {
|
|
3120
3147
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = usePickerList(props);
|
|
@@ -3137,7 +3164,7 @@ function PickerList(props) {
|
|
|
3137
3164
|
const showPicker = viewProps.totalCount == null || viewProps.totalCount > getMaxDefaultItems();
|
|
3138
3165
|
const renderToggler = props.renderModalToggler || defaultRenderToggler;
|
|
3139
3166
|
const renderRow = props.renderRow || defaultRenderRow;
|
|
3140
|
-
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) },
|
|
3141
3168
|
!rows.length
|
|
3142
3169
|
&& (props.noOptionsMessage || (React__default.createElement(Text, { color: "secondary", size: props.size }, "No options available"))),
|
|
3143
3170
|
rows.map((row) => renderRow(Object.assign(Object.assign({}, row), { isDisabled: props.isDisabled }), dataSourceState)),
|
|
@@ -3149,7 +3176,7 @@ function PickerList(props) {
|
|
|
3149
3176
|
}, selectedRows)));
|
|
3150
3177
|
}
|
|
3151
3178
|
|
|
3152
|
-
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"};
|
|
3153
3180
|
|
|
3154
3181
|
function DataTableCell(initialProps) {
|
|
3155
3182
|
const props = Object.assign({}, initialProps);
|
|
@@ -3183,12 +3210,12 @@ function DataTableCell(initialProps) {
|
|
|
3183
3210
|
};
|
|
3184
3211
|
props.cx = [
|
|
3185
3212
|
'data-table-cell',
|
|
3186
|
-
css$
|
|
3213
|
+
css$y.root,
|
|
3187
3214
|
props.cx,
|
|
3188
3215
|
'uui-size-' + (props.size || settings.sizes.dataTable.body.row.cell.defaults.size),
|
|
3189
3216
|
props.isFirstColumn && 'uui-dt-first-column',
|
|
3190
3217
|
props.isLastColumn && 'uui-dt-last-column',
|
|
3191
|
-
css$
|
|
3218
|
+
css$y[`align-widgets-${props.alignActions || 'top'}`],
|
|
3192
3219
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
3193
3220
|
];
|
|
3194
3221
|
props.style = {
|
|
@@ -3198,7 +3225,7 @@ function DataTableCell(initialProps) {
|
|
|
3198
3225
|
return React.createElement(DataTableCell$1, Object.assign({}, props));
|
|
3199
3226
|
}
|
|
3200
3227
|
|
|
3201
|
-
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"};
|
|
3202
3229
|
|
|
3203
3230
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3204
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.
|
|
@@ -3210,11 +3237,11 @@ const renderDropMarkers = (props) => React.createElement(DropMarker, Object.assi
|
|
|
3210
3237
|
const propsMods = { renderCell, renderDropMarkers };
|
|
3211
3238
|
const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = true, size }) => {
|
|
3212
3239
|
return [
|
|
3213
|
-
css$
|
|
3240
|
+
css$x.root, 'uui-dt-vars', borderBottom && 'uui-dt-row-border', `uui-size-${size || settings.sizes.dataTable.body.row.default}`,
|
|
3214
3241
|
];
|
|
3215
3242
|
}, () => propsMods);
|
|
3216
3243
|
|
|
3217
|
-
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"};
|
|
3218
3245
|
|
|
3219
3246
|
var _path$q;
|
|
3220
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); }
|
|
@@ -3249,7 +3276,7 @@ var ForwardRef$p = /*#__PURE__*/forwardRef(SvgTableSortDescOutline);
|
|
|
3249
3276
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3250
3277
|
const sortAsc = useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
3251
3278
|
const sortDesc = useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
3252
|
-
return (React__default.createElement(FlexCell, { cx: cx$1(css$
|
|
3279
|
+
return (React__default.createElement(FlexCell, { cx: cx$1(css$w.sortingPanelContainer, 'uui-dropdownMenu-body') },
|
|
3253
3280
|
React__default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$q, onClick: sortAsc }),
|
|
3254
3281
|
React__default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$p, onClick: sortDesc })));
|
|
3255
3282
|
};
|
|
@@ -3344,7 +3371,7 @@ var SvgNavigationExpandAllOutline = function SvgNavigationExpandAllOutline(props
|
|
|
3344
3371
|
};
|
|
3345
3372
|
var ForwardRef$k = /*#__PURE__*/forwardRef(SvgNavigationExpandAllOutline);
|
|
3346
3373
|
|
|
3347
|
-
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"};
|
|
3348
3375
|
|
|
3349
3376
|
class DataTableHeaderCell extends React.Component {
|
|
3350
3377
|
constructor() {
|
|
@@ -3352,27 +3379,27 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3352
3379
|
this.state = {
|
|
3353
3380
|
isDropdownOpen: null,
|
|
3354
3381
|
};
|
|
3355
|
-
this.getTooltipContent = (column) => (React.createElement("div", { className: cx$1(css$
|
|
3356
|
-
React.createElement(Text, { cx: [css$
|
|
3357
|
-
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))));
|
|
3358
3385
|
this.getColumnCaption = () => {
|
|
3359
3386
|
const renderTooltip = this.props.column.renderTooltip || this.getTooltipContent;
|
|
3360
3387
|
const captionCx = [
|
|
3361
|
-
css$
|
|
3362
|
-
this.props.textCase === 'upper' && css$
|
|
3388
|
+
css$v.caption,
|
|
3389
|
+
this.props.textCase === 'upper' && css$v.upperCase,
|
|
3363
3390
|
uuiDataTableHeaderCell.uuiTableHeaderCaption,
|
|
3364
|
-
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,
|
|
3365
3392
|
];
|
|
3366
|
-
return (React.createElement("div", { className: cx$1(css$
|
|
3367
|
-
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 },
|
|
3368
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)),
|
|
3369
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React.createElement(IconButton, { key: "sort", cx: cx$1(css$
|
|
3370
|
-
this.props.isFilterActive && (React.createElement(IconButton, { key: "filter", cx: cx$1(css$
|
|
3371
|
-
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 }))));
|
|
3372
3399
|
};
|
|
3373
3400
|
this.renderHeaderCheckbox = () => {
|
|
3374
3401
|
if (this.props.selectAll && this.props.isFirstColumn) {
|
|
3375
|
-
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) })));
|
|
3376
3403
|
}
|
|
3377
3404
|
};
|
|
3378
3405
|
this.renderFoldAllIcon = () => {
|
|
@@ -3380,14 +3407,14 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3380
3407
|
return (React.createElement(Tooltip, { content: this.props.areAllFolded
|
|
3381
3408
|
? i18n.tables.columnHeader.expandAllTooltip
|
|
3382
3409
|
: i18n.tables.columnHeader.collapseAllTooltip },
|
|
3383
|
-
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: {
|
|
3384
3411
|
'aria-label': this.props.areAllFolded ? 'Expand All' : 'Collapse All',
|
|
3385
3412
|
'aria-expanded': !!this.props.areAllFolded,
|
|
3386
3413
|
} })));
|
|
3387
3414
|
}
|
|
3388
3415
|
};
|
|
3389
3416
|
this.renderResizingMarker = (props) => {
|
|
3390
|
-
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) }));
|
|
3391
3418
|
};
|
|
3392
3419
|
this.getLeftPadding = () => {
|
|
3393
3420
|
const { columnsGap, isFirstColumn } = this.props;
|
|
@@ -3419,7 +3446,7 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3419
3446
|
var _a;
|
|
3420
3447
|
props.ref(ref);
|
|
3421
3448
|
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
3422
|
-
}, 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 },
|
|
3423
3450
|
this.renderHeaderCheckbox(),
|
|
3424
3451
|
this.renderFoldAllIcon(),
|
|
3425
3452
|
this.getColumnCaption(),
|
|
@@ -3450,10 +3477,66 @@ var SvgActionSettingsFill = function SvgActionSettingsFill(props, ref) {
|
|
|
3450
3477
|
};
|
|
3451
3478
|
var ForwardRef$j = /*#__PURE__*/forwardRef(SvgActionSettingsFill);
|
|
3452
3479
|
|
|
3453
|
-
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
|
+
}
|
|
3454
3536
|
|
|
3455
|
-
const DataTableHeaderRow = /* @__PURE__ */withMods(DataTableHeaderRow$1, () => [css$
|
|
3537
|
+
const DataTableHeaderRow = /* @__PURE__ */withMods(DataTableHeaderRow$1, () => [css$u.root, 'uui-dt-vars'], (mods) => ({
|
|
3456
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 }))),
|
|
3457
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 })),
|
|
3458
3541
|
}));
|
|
3459
3542
|
|
|
@@ -3462,7 +3545,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
3462
3545
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
3463
3546
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
3464
3547
|
|
|
3465
|
-
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"};
|
|
3466
3549
|
|
|
3467
3550
|
const defaultSize = '36';
|
|
3468
3551
|
const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
@@ -3640,7 +3723,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
3640
3723
|
React__default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
3641
3724
|
}
|
|
3642
3725
|
|
|
3643
|
-
var css$r = {"container":"
|
|
3726
|
+
var css$r = {"container":"_6ZBiWx"};
|
|
3644
3727
|
|
|
3645
3728
|
function FilterNumericBody(props) {
|
|
3646
3729
|
var _a, _b;
|
|
@@ -3738,7 +3821,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
3738
3821
|
};
|
|
3739
3822
|
var ForwardRef$i = /*#__PURE__*/forwardRef(SvgActionDeleteOutline);
|
|
3740
3823
|
|
|
3741
|
-
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"};
|
|
3742
3825
|
|
|
3743
3826
|
function useView(props, value) {
|
|
3744
3827
|
const forceUpdate = useForceUpdate();
|
|
@@ -4059,7 +4142,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4059
4142
|
}
|
|
4060
4143
|
const FiltersPanel = /* @__PURE__ */React__default.memo(FiltersToolbarImpl);
|
|
4061
4144
|
|
|
4062
|
-
var css$p = {"divider":"
|
|
4145
|
+
var css$p = {"divider":"_4wr1zo","dropdownDeleteIcon":"A0ppIK","presetsWrapper":"zsSH7j","addPresetContainer":"WXKR8O","dropContainer":"RWWHlr"};
|
|
4063
4146
|
|
|
4064
4147
|
var _path$g;
|
|
4065
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); }
|
|
@@ -4172,7 +4255,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4172
4255
|
};
|
|
4173
4256
|
var ForwardRef$a = /*#__PURE__*/forwardRef(SvgContentLinkOutline);
|
|
4174
4257
|
|
|
4175
|
-
var css$o = {"delete-button":"
|
|
4258
|
+
var css$o = {"delete-button":"_0NxjSE","tab-button":"RFzq0v","targetOpen":"ogYZs5","deleteButton":"_0NxjSE","tabButton":"RFzq0v"};
|
|
4176
4259
|
|
|
4177
4260
|
function PresetActionsDropdown(props) {
|
|
4178
4261
|
const { uuiNotifications } = useUuiContext();
|
|
@@ -4230,7 +4313,7 @@ function PresetActionsDropdown(props) {
|
|
|
4230
4313
|
return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4231
4314
|
}
|
|
4232
4315
|
|
|
4233
|
-
var css$n = {"preset-input-cell":"
|
|
4316
|
+
var css$n = {"preset-input-cell":"KFihLD","preset-input":"Pkz6yn","presetInputCell":"KFihLD","presetInput":"Pkz6yn"};
|
|
4234
4317
|
|
|
4235
4318
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4236
4319
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4263,7 +4346,7 @@ function PresetInput(props) {
|
|
|
4263
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 })));
|
|
4264
4347
|
}
|
|
4265
4348
|
|
|
4266
|
-
var css$m = {"preset":"
|
|
4349
|
+
var css$m = {"preset":"_3vILba","activePreset":"BjloKB"};
|
|
4267
4350
|
|
|
4268
4351
|
function Preset(props) {
|
|
4269
4352
|
const [isRenamePreset, setIsRenamePreset] = useState(false);
|
|
@@ -4437,7 +4520,7 @@ var SvgTableGroupColumnRightFill = function SvgTableGroupColumnRightFill(props,
|
|
|
4437
4520
|
};
|
|
4438
4521
|
var ForwardRef$6 = /*#__PURE__*/forwardRef(SvgTableGroupColumnRightFill);
|
|
4439
4522
|
|
|
4440
|
-
var css$l = {"unpin-icon":"
|
|
4523
|
+
var css$l = {"unpin-icon":"XaICNP","pin-toggler-icon":"C4564U","unpinIcon":"XaICNP","pinTogglerIcon":"C4564U"};
|
|
4441
4524
|
|
|
4442
4525
|
function PinIconButton(props) {
|
|
4443
4526
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4496,7 +4579,7 @@ var SvgActionDragIndicator18 = function SvgActionDragIndicator18(props, ref) {
|
|
|
4496
4579
|
};
|
|
4497
4580
|
var ForwardRef$5 = /*#__PURE__*/forwardRef(SvgActionDragIndicator18);
|
|
4498
4581
|
|
|
4499
|
-
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"};
|
|
4500
4583
|
|
|
4501
4584
|
const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
4502
4585
|
const { column } = props;
|
|
@@ -4506,10 +4589,10 @@ const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
|
4506
4589
|
const isPinned = !!pinPosition;
|
|
4507
4590
|
const data = { column, columnConfig };
|
|
4508
4591
|
const renderContent = (dndActorParams) => {
|
|
4509
|
-
const wrapperClasses = cx$1(css$k.rowWrapper, !isPinned && css$k.notPinned, dndActorParams.isDragGhost && uuiDndState.dragGhost);
|
|
4592
|
+
const wrapperClasses = cx$1(css$k.rowWrapper, !isPinned && css$k.notPinned, dndActorParams.isDragGhost && uuiDndState.dragGhost, 'uui-dt-columns-config-row');
|
|
4510
4593
|
const _a = dndActorParams.eventHandlers, { onTouchStart, onPointerDown } = _a, restEventHandlers = __rest(_a, ["onTouchStart", "onPointerDown"]);
|
|
4511
4594
|
const dndActorPropsWithoutRef = __rest(dndActorParams, ["ref"]);
|
|
4512
|
-
return (React.createElement(FlexRow, { size:
|
|
4595
|
+
return (React.createElement(FlexRow, { size: settings.sizes.dataTable.columnsConfigurationModal.columnRow, cx: wrapperClasses, ref: dndActorParams.ref, rawProps: Object.assign({}, restEventHandlers), alignItems: "top" },
|
|
4513
4596
|
React.createElement(DragHandle, { dragHandleIcon: ForwardRef$5, rawProps: { onTouchStart, onPointerDown }, isDisabled: !isDndAllowed, cx: cx$1(css$k.dragHandle, !isDndAllowed && css$k.dndDisabled) }),
|
|
4514
4597
|
React.createElement(Checkbox, { key: column.key, label: props.renderItem ? props.renderItem(props.column) : column.caption, value: isVisible, onValueChange: toggleVisibility, isReadonly: column.isAlwaysVisible || column.isLocked, cx: css$k.checkbox }),
|
|
4515
4598
|
React.createElement(FlexRow, { size: null, cx: css$k.pinIconButton },
|
|
@@ -4519,7 +4602,7 @@ const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
|
4519
4602
|
return (React.createElement(DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4520
4603
|
});
|
|
4521
4604
|
|
|
4522
|
-
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"};
|
|
4523
4606
|
|
|
4524
4607
|
const renderGroupTitle = (title, amount) => (React.createElement(FlexRow, { cx: css$j.group },
|
|
4525
4608
|
React.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -4608,7 +4691,7 @@ function SubGroup(props) {
|
|
|
4608
4691
|
return null;
|
|
4609
4692
|
}
|
|
4610
4693
|
|
|
4611
|
-
var css$i = {"listContainer":"
|
|
4694
|
+
var css$i = {"listContainer":"EwMhkg","header":"cr6GoK","group":"_-6XHBk","stickyHeader":"L1Od2j"};
|
|
4612
4695
|
|
|
4613
4696
|
const getChildrenAndRest = (row, rows) => {
|
|
4614
4697
|
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
@@ -4674,7 +4757,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4674
4757
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4675
4758
|
ref: ref
|
|
4676
4759
|
}, props), /*#__PURE__*/React.createElement("g", {
|
|
4677
|
-
clipPath: "url(#
|
|
4760
|
+
clipPath: "url(#4i4gxfxqciyncjhri_a)"
|
|
4678
4761
|
}, _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
4679
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",
|
|
4680
4763
|
fill: "#F5F6FA"
|
|
@@ -4695,7 +4778,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4695
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",
|
|
4696
4779
|
fill: "#1D1E26"
|
|
4697
4780
|
})), /*#__PURE__*/React.createElement("mask", {
|
|
4698
|
-
id: "
|
|
4781
|
+
id: "4i4gxfr65igsuth3_b",
|
|
4699
4782
|
style: {
|
|
4700
4783
|
maskType: "alpha"
|
|
4701
4784
|
},
|
|
@@ -4708,7 +4791,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4708
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",
|
|
4709
4792
|
fill: "#9BDEFF"
|
|
4710
4793
|
}))), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
4711
|
-
mask: "url(#
|
|
4794
|
+
mask: "url(#4i4gxfr65igsuth3_b)",
|
|
4712
4795
|
fillRule: "evenodd",
|
|
4713
4796
|
clipRule: "evenodd"
|
|
4714
4797
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -4794,7 +4877,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4794
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",
|
|
4795
4878
|
fill: "#fff"
|
|
4796
4879
|
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
4797
|
-
id: "
|
|
4880
|
+
id: "4i4gxfxqciyncjhri_a"
|
|
4798
4881
|
}, /*#__PURE__*/React.createElement("path", {
|
|
4799
4882
|
fill: "#fff",
|
|
4800
4883
|
transform: "translate(.552)",
|
|
@@ -4803,7 +4886,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4803
4886
|
};
|
|
4804
4887
|
var ForwardRef$4 = /*#__PURE__*/forwardRef(SvgEmptyTable);
|
|
4805
4888
|
|
|
4806
|
-
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"};
|
|
4807
4890
|
|
|
4808
4891
|
function DataTable(props) {
|
|
4809
4892
|
var _a, _b, _c, _d;
|
|
@@ -4838,7 +4921,7 @@ function DataTable(props) {
|
|
|
4838
4921
|
]);
|
|
4839
4922
|
const renderRowsContainer = React.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows }) => (React.createElement(React.Fragment, null,
|
|
4840
4923
|
React.createElement("div", { className: css$h.stickyHeader, ref: headerRef },
|
|
4841
|
-
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 }),
|
|
4842
4925
|
React.createElement("div", { className: cx$1(uuiScrollShadows.top, {
|
|
4843
4926
|
[uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
4844
4927
|
}) })),
|
|
@@ -4854,9 +4937,9 @@ function DataTable(props) {
|
|
|
4854
4937
|
} }))));
|
|
4855
4938
|
}
|
|
4856
4939
|
|
|
4857
|
-
var css$g = {"root":"
|
|
4940
|
+
var css$g = {"root":"VrUG5D"};
|
|
4858
4941
|
|
|
4859
|
-
var css$f = {"root":"
|
|
4942
|
+
var css$f = {"root":"YZM2yD","burger-content":"cRAMXc","burgerContent":"cRAMXc"};
|
|
4860
4943
|
|
|
4861
4944
|
var _path$3;
|
|
4862
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); }
|
|
@@ -4899,7 +4982,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
4899
4982
|
};
|
|
4900
4983
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgNavigationArrowDownOutline);
|
|
4901
4984
|
|
|
4902
|
-
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"};
|
|
4903
4986
|
|
|
4904
4987
|
const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
4905
4988
|
css$e.root,
|
|
@@ -4910,13 +4993,13 @@ const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
|
4910
4993
|
props.icon && css$e.hasIcon,
|
|
4911
4994
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
4912
4995
|
|
|
4913
|
-
var css$d = {"search-input":"
|
|
4996
|
+
var css$d = {"search-input":"U8g5Uw","searchInput":"U8g5Uw"};
|
|
4914
4997
|
|
|
4915
4998
|
function BurgerSearch(props) {
|
|
4916
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 }));
|
|
4917
5000
|
}
|
|
4918
5001
|
|
|
4919
|
-
var css$c = {"root":"
|
|
5002
|
+
var css$c = {"root":"nqDq9z","group-header":"btNwk0","group-name":"OJlsOO","line":"fI22Sj","groupHeader":"btNwk0","groupName":"OJlsOO"};
|
|
4920
5003
|
|
|
4921
5004
|
function BurgerGroupHeader(props) {
|
|
4922
5005
|
return (React.createElement("div", { className: cx(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4924,7 +5007,7 @@ function BurgerGroupHeader(props) {
|
|
|
4924
5007
|
React.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
4925
5008
|
}
|
|
4926
5009
|
|
|
4927
|
-
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"};
|
|
4928
5011
|
|
|
4929
5012
|
const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
4930
5013
|
const { type } = props, clickableProps = __rest(props, ["type"]);
|
|
@@ -4940,7 +5023,7 @@ const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
4940
5023
|
props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$P, flipY: props.isOpen }))));
|
|
4941
5024
|
});
|
|
4942
5025
|
|
|
4943
|
-
var css$a = {"dropdown-body":"
|
|
5026
|
+
var css$a = {"dropdown-body":"_4AK4XV","dropdownBody":"_4AK4XV"};
|
|
4944
5027
|
|
|
4945
5028
|
class MainMenuDropdown extends React.Component {
|
|
4946
5029
|
render() {
|
|
@@ -4995,12 +5078,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
4995
5078
|
};
|
|
4996
5079
|
var ForwardRef$1 = /*#__PURE__*/forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
4997
5080
|
|
|
4998
|
-
var css$9 = {"global-menu-btn":"
|
|
5081
|
+
var css$9 = {"global-menu-btn":"bChZQi","global-menu-icon":"RGtXj1","globalMenuBtn":"bChZQi","globalMenuIcon":"RGtXj1"};
|
|
4999
5082
|
|
|
5000
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),
|
|
5001
5084
|
React.createElement(IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5002
5085
|
|
|
5003
|
-
var css$8 = {"container":"
|
|
5086
|
+
var css$8 = {"container":"n3hyXQ","open":"EbBSmf","folding-arrow":"m8PIG9","foldingArrow":"m8PIG9"};
|
|
5004
5087
|
|
|
5005
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 },
|
|
5006
5089
|
React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5008,18 +5091,18 @@ const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.cr
|
|
|
5008
5091
|
props.isDropdown && (React.createElement("div", null,
|
|
5009
5092
|
React.createElement(IconContainer, { size: 18, icon: ForwardRef$P, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5010
5093
|
|
|
5011
|
-
var css$7 = {"search-input":"
|
|
5094
|
+
var css$7 = {"search-input":"hjTARJ","searchInput":"hjTARJ"};
|
|
5012
5095
|
|
|
5013
5096
|
const MainMenuSearch = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
5014
5097
|
var _a;
|
|
5015
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)));
|
|
5016
5099
|
} }))));
|
|
5017
5100
|
|
|
5018
|
-
var css$6 = {"container":"
|
|
5101
|
+
var css$6 = {"container":"F9R3-N"};
|
|
5019
5102
|
|
|
5020
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))));
|
|
5021
5104
|
|
|
5022
|
-
var css$5 = {"root":"
|
|
5105
|
+
var css$5 = {"root":"PYOBf5"};
|
|
5023
5106
|
|
|
5024
5107
|
const Anchor = /* @__PURE__ */withMods(Anchor$1, () => [css$5.root]);
|
|
5025
5108
|
|
|
@@ -5077,7 +5160,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5077
5160
|
};
|
|
5078
5161
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgFileCloudUploadFill);
|
|
5079
5162
|
|
|
5080
|
-
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"};
|
|
5081
5164
|
|
|
5082
5165
|
function DropSpot(props) {
|
|
5083
5166
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5095,9 +5178,9 @@ function DropSpot(props) {
|
|
|
5095
5178
|
return React.createElement(DropSpot$1, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5096
5179
|
}
|
|
5097
5180
|
|
|
5098
|
-
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"};
|
|
5099
5182
|
|
|
5100
|
-
var css$2 = {"root":"
|
|
5183
|
+
var css$2 = {"root":"xRHHnc"};
|
|
5101
5184
|
|
|
5102
5185
|
const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5103
5186
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5222,7 +5305,7 @@ const getErrorPageConfig = () => ({
|
|
|
5222
5305
|
},
|
|
5223
5306
|
});
|
|
5224
5307
|
|
|
5225
|
-
var css$1 = {"container":"
|
|
5308
|
+
var css$1 = {"container":"MIS038"};
|
|
5226
5309
|
|
|
5227
5310
|
const ErrorPage = (props) => {
|
|
5228
5311
|
const isMobileScreen = isMobile();
|
|
@@ -5233,7 +5316,7 @@ const ErrorPage = (props) => {
|
|
|
5233
5316
|
React__default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle))));
|
|
5234
5317
|
};
|
|
5235
5318
|
|
|
5236
|
-
var css = {"recovery-spinner":"
|
|
5319
|
+
var css = {"recovery-spinner":"ghTwsA","recovery-message":"Y9mSeI","modal-blocker":"lUmm5Y","modalFadeIn":"-smeL9","recoverySpinner":"ghTwsA","recoveryMessage":"Y9mSeI","modalBlocker":"lUmm5Y"};
|
|
5237
5320
|
|
|
5238
5321
|
function ErrorHandler(props) {
|
|
5239
5322
|
const { uuiNotifications, uuiModals, uuiApi } = useUuiContext();
|