@epam/uui 6.4.3 → 6.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/helpers.scss +15 -3
- package/components/buttons/VerticalTabButton.d.ts.map +1 -1
- package/components/datePickers/DatePicker.d.ts.map +1 -1
- package/components/filters/FilterNumericBody.d.ts +3 -3
- package/components/filters/FilterNumericBody.d.ts.map +1 -1
- package/components/inputs/timePicker/TimePickerBody.d.ts.map +1 -1
- package/components/layout/Blocker.d.ts +2 -1
- package/components/layout/Blocker.d.ts.map +1 -1
- package/components/layout/VirtualList.d.ts +1 -1
- package/components/layout/VirtualList.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts +2 -2
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/pickers/DataPickerBody.d.ts.map +1 -1
- package/components/tables/ColumnHeaderDropdown/SortingPanel.d.ts.map +1 -1
- package/components/tables/DataTable.d.ts +3 -2
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableHeaderCell.d.ts +2 -21
- package/components/tables/DataTableHeaderCell.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts +1 -1
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts.map +1 -1
- package/components/widgets/DataRowAddons.d.ts.map +1 -1
- package/i18n.d.ts +1 -0
- package/i18n.d.ts.map +1 -1
- package/index.esm.js +273 -221
- package/index.esm.js.map +1 -1
- package/index.js +271 -219
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/stats.html +1 -1
- package/styles.css +1042 -1024
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -190,7 +190,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
190
190
|
xmlns: "http://www.w3.org/2000/svg",
|
|
191
191
|
ref: ref
|
|
192
192
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
193
|
-
clipPath: "url(#
|
|
193
|
+
clipPath: "url(#g3sdanswhqkvot7f_a)"
|
|
194
194
|
}, _path$I || (_path$I = /*#__PURE__*/React__namespace.createElement("path", {
|
|
195
195
|
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",
|
|
196
196
|
fill: "#F5F6FA"
|
|
@@ -211,7 +211,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
211
211
|
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",
|
|
212
212
|
fill: "#1D1E26"
|
|
213
213
|
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
214
|
-
id: "
|
|
214
|
+
id: "g3sdancilj2tzyi46_b",
|
|
215
215
|
style: {
|
|
216
216
|
maskType: "alpha"
|
|
217
217
|
},
|
|
@@ -224,7 +224,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
224
224
|
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",
|
|
225
225
|
fill: "#9BDEFF"
|
|
226
226
|
}))), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
227
|
-
mask: "url(#
|
|
227
|
+
mask: "url(#g3sdancilj2tzyi46_b)",
|
|
228
228
|
fillRule: "evenodd",
|
|
229
229
|
clipRule: "evenodd"
|
|
230
230
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -310,7 +310,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
310
310
|
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",
|
|
311
311
|
fill: "#fff"
|
|
312
312
|
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
313
|
-
id: "
|
|
313
|
+
id: "g3sdanswhqkvot7f_a"
|
|
314
314
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
315
315
|
fill: "#fff",
|
|
316
316
|
transform: "translate(.552)",
|
|
@@ -961,14 +961,14 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
961
961
|
};
|
|
962
962
|
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
963
963
|
|
|
964
|
-
var css$1w = {"root":"
|
|
964
|
+
var css$1w = {"root":"UE27xC","uui-spinner":"JZ8Uv5","uuiSpinner":"JZ8Uv5"};
|
|
965
965
|
|
|
966
966
|
function applySpinnerMods() {
|
|
967
967
|
return [css$1w.root, 'uui-spinner'];
|
|
968
968
|
}
|
|
969
969
|
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
970
970
|
|
|
971
|
-
var css$1v = {"root":"
|
|
971
|
+
var css$1v = {"root":"vlgrhq","loading-word":"RxXHQu","loadingWord":"RxXHQu","animated-loading":"vIsykU","animatedLoading":"vIsykU","skeleton_loading":"MTpfbj","skeletonLoading":"MTpfbj"};
|
|
972
972
|
|
|
973
973
|
const TextPlaceholder = (props) => {
|
|
974
974
|
const pattern = ' ';
|
|
@@ -985,7 +985,7 @@ const TextPlaceholder = (props) => {
|
|
|
985
985
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
986
986
|
};
|
|
987
987
|
|
|
988
|
-
var css$1u = {"root":"
|
|
988
|
+
var css$1u = {"root":"GDTy8P","line-height":"uxBDY-","lineHeight":"uxBDY-","font-size":"Jfl4Kx","fontSize":"Jfl4Kx"};
|
|
989
989
|
|
|
990
990
|
function applyTextMods(mods) {
|
|
991
991
|
return [
|
|
@@ -1012,7 +1012,7 @@ const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, appl
|
|
|
1012
1012
|
};
|
|
1013
1013
|
});
|
|
1014
1014
|
|
|
1015
|
-
var css$1t = {"root":"
|
|
1015
|
+
var css$1t = {"root":"tP39oV"};
|
|
1016
1016
|
|
|
1017
1017
|
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$1t.root], () => ({ renderSpinner: settings.blocker.renderSpinner }));
|
|
1018
1018
|
|
|
@@ -1517,7 +1517,7 @@ const settings = {
|
|
|
1517
1517
|
textInput: textInputSettings,
|
|
1518
1518
|
};
|
|
1519
1519
|
|
|
1520
|
-
var css$1s = {"root":"
|
|
1520
|
+
var css$1s = {"root":"UngvQG"};
|
|
1521
1521
|
|
|
1522
1522
|
function applyButtonMods(mods) {
|
|
1523
1523
|
return [
|
|
@@ -1535,7 +1535,7 @@ const Button = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Button,
|
|
|
1535
1535
|
};
|
|
1536
1536
|
});
|
|
1537
1537
|
|
|
1538
|
-
var css$1r = {"root":"
|
|
1538
|
+
var css$1r = {"root":"WpOWm9"};
|
|
1539
1539
|
|
|
1540
1540
|
function applyIconButtonMods(props) {
|
|
1541
1541
|
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1r.root];
|
|
@@ -1572,7 +1572,7 @@ function getIconClass(props) {
|
|
|
1572
1572
|
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'];
|
|
1573
1573
|
}
|
|
1574
1574
|
|
|
1575
|
-
var css$1q = {"root":"
|
|
1575
|
+
var css$1q = {"root":"-wCqo3"};
|
|
1576
1576
|
|
|
1577
1577
|
const DEFAULT_COLOR = 'primary';
|
|
1578
1578
|
const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
@@ -1602,7 +1602,7 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1602
1602
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1603
1603
|
});
|
|
1604
1604
|
|
|
1605
|
-
var css$1p = {"root":"
|
|
1605
|
+
var css$1p = {"root":"Nn9bGc"};
|
|
1606
1606
|
|
|
1607
1607
|
const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1608
1608
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
@@ -1614,7 +1614,7 @@ const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1614
1614
|
]) }, props.caption));
|
|
1615
1615
|
});
|
|
1616
1616
|
|
|
1617
|
-
var css$1o = {"root":"
|
|
1617
|
+
var css$1o = {"root":"HB7Csf","withNotify":"_73xN8N"};
|
|
1618
1618
|
|
|
1619
1619
|
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, refExternal) => {
|
|
1620
1620
|
const refLocal = React__namespace.default.useRef(null);
|
|
@@ -1661,13 +1661,13 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
1661
1661
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1662
1662
|
});
|
|
1663
1663
|
|
|
1664
|
-
var css$1n = {"root":"
|
|
1664
|
+
var css$1n = {"root":"DjEb16","noLeftPadding":"vFYbua","foldingArea":"d2FFaF","onlyFoldable":"F6gy36","captionWrapper":"_92Ln4t","withNotify":"tqso6T"};
|
|
1665
1665
|
|
|
1666
|
-
var css$1m = {"root":"
|
|
1666
|
+
var css$1m = {"root":"e0-jaV"};
|
|
1667
1667
|
|
|
1668
1668
|
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$1m.root]);
|
|
1669
1669
|
|
|
1670
|
-
var css$1l = {"root":"
|
|
1670
|
+
var css$1l = {"root":"MoXaMB"};
|
|
1671
1671
|
|
|
1672
1672
|
const DEFAULT_FILL = 'solid';
|
|
1673
1673
|
function applyBadgeMods(mods) {
|
|
@@ -1695,7 +1695,7 @@ const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) =>
|
|
|
1695
1695
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1696
1696
|
});
|
|
1697
1697
|
|
|
1698
|
-
var css$1k = {"root":"
|
|
1698
|
+
var css$1k = {"root":"EluYH6"};
|
|
1699
1699
|
|
|
1700
1700
|
function applyTagMods(props) {
|
|
1701
1701
|
return [
|
|
@@ -1728,7 +1728,7 @@ const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
|
1728
1728
|
} }))));
|
|
1729
1729
|
});
|
|
1730
1730
|
|
|
1731
|
-
var css$1j = {"root":"
|
|
1731
|
+
var css$1j = {"root":"dGyt7a","page":"Ir6nO6","spacer":"I3NMdL","mode-ghost":"_4xtqr6","modeGhost":"_4xtqr6"};
|
|
1732
1732
|
|
|
1733
1733
|
function Paginator(props) {
|
|
1734
1734
|
const renderPaginator = (params) => (React__namespace.default.createElement("nav", { role: "navigation", className: cx__default.default('uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
@@ -1754,14 +1754,14 @@ function Paginator(props) {
|
|
|
1754
1754
|
return React__namespace.default.createElement(uuiComponents.Paginator, { ...props, render: renderPaginator });
|
|
1755
1755
|
}
|
|
1756
1756
|
|
|
1757
|
-
var css$1i = {"root":"
|
|
1757
|
+
var css$1i = {"root":"C4JxUr","progress-bar":"nJiiRt","progressBar":"nJiiRt","progressBar-indeterminate":"Un-0I3","progressBarIndeterminate":"Un-0I3","size-12":"J-wweH","size12":"J-wweH","size-18":"YaxwGL","size18":"YaxwGL","size-24":"gljeGl","size24":"gljeGl"};
|
|
1758
1758
|
|
|
1759
1759
|
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1760
1760
|
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$1i.root, css$1i[`size-${props.size || 12}`]) },
|
|
1761
1761
|
React__namespace.createElement("div", { className: cx__default.default(css$1i.progressBar) })));
|
|
1762
1762
|
});
|
|
1763
1763
|
|
|
1764
|
-
var css$1h = {"root":"
|
|
1764
|
+
var css$1h = {"root":"ClOpVp","striped":"_8YBwrZ","animate-stripes":"-jpz57","animateStripes":"-jpz57","size-12":"tNDqAh","size12":"tNDqAh","size-18":"EolQHk","size18":"EolQHk","size-24":"JYY2Ik","size24":"JYY2Ik"};
|
|
1765
1765
|
|
|
1766
1766
|
const DEFAULT_SIZE = '12';
|
|
1767
1767
|
function applyProgressBarMods(mods) {
|
|
@@ -1776,14 +1776,14 @@ const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Pro
|
|
|
1776
1776
|
hideLabel: props.hideLabel || props.striped,
|
|
1777
1777
|
}));
|
|
1778
1778
|
|
|
1779
|
-
var css$1g = {"root":"
|
|
1779
|
+
var css$1g = {"root":"_0mbooH"};
|
|
1780
1780
|
|
|
1781
1781
|
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1782
1782
|
const { progress } = props;
|
|
1783
1783
|
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$1g.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$1g.root, props.cx) }));
|
|
1784
1784
|
});
|
|
1785
1785
|
|
|
1786
|
-
var css$1f = {"root":"
|
|
1786
|
+
var css$1f = {"root":"-Ez8OP"};
|
|
1787
1787
|
|
|
1788
1788
|
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1789
1789
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
@@ -1798,7 +1798,7 @@ const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1798
1798
|
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1799
1799
|
});
|
|
1800
1800
|
|
|
1801
|
-
var css$1e = {"root":"
|
|
1801
|
+
var css$1e = {"root":"ONuItu"};
|
|
1802
1802
|
|
|
1803
1803
|
function applyCheckboxMods(mods) {
|
|
1804
1804
|
return [
|
|
@@ -1816,7 +1816,7 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1816
1816
|
};
|
|
1817
1817
|
const Checkbox = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1818
1818
|
|
|
1819
|
-
var css$1d = {"root":"
|
|
1819
|
+
var css$1d = {"root":"JmMFgU"};
|
|
1820
1820
|
|
|
1821
1821
|
function applyRadioInputMods(mods) {
|
|
1822
1822
|
return [
|
|
@@ -1828,7 +1828,7 @@ function applyRadioInputMods(mods) {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1830
1830
|
|
|
1831
|
-
var css$1c = {"root":"
|
|
1831
|
+
var css$1c = {"root":"XQzutj"};
|
|
1832
1832
|
|
|
1833
1833
|
function applySwitchMods(mods) {
|
|
1834
1834
|
return [
|
|
@@ -1852,7 +1852,7 @@ var EditMode;
|
|
|
1852
1852
|
EditMode["INLINE"] = "inline";
|
|
1853
1853
|
})(EditMode || (EditMode = {}));
|
|
1854
1854
|
|
|
1855
|
-
var textInputCss = {"root":"
|
|
1855
|
+
var textInputCss = {"root":"hMCzBl"};
|
|
1856
1856
|
|
|
1857
1857
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1858
1858
|
function applyTextInputMods(mods) {
|
|
@@ -1877,7 +1877,7 @@ const SearchInput = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
1877
1877
|
} }));
|
|
1878
1878
|
});
|
|
1879
1879
|
|
|
1880
|
-
var css$1b = {"root":"
|
|
1880
|
+
var css$1b = {"root":"BPv3vl"};
|
|
1881
1881
|
|
|
1882
1882
|
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1b.root, 'uui-control-group']);
|
|
1883
1883
|
|
|
@@ -1893,7 +1893,7 @@ function MultiSwitchComponent(props, ref) {
|
|
|
1893
1893
|
}
|
|
1894
1894
|
const MultiSwitch = /* @__PURE__ */React__namespace.forwardRef(MultiSwitchComponent);
|
|
1895
1895
|
|
|
1896
|
-
var css$1a = {"root":"
|
|
1896
|
+
var css$1a = {"root":"MPAM05"};
|
|
1897
1897
|
|
|
1898
1898
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1899
1899
|
function applyNumericInputMods(mods) {
|
|
@@ -1913,7 +1913,7 @@ const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput,
|
|
|
1913
1913
|
};
|
|
1914
1914
|
});
|
|
1915
1915
|
|
|
1916
|
-
var css$19 = {"root":"
|
|
1916
|
+
var css$19 = {"root":"NvBVoj"};
|
|
1917
1917
|
|
|
1918
1918
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1919
1919
|
function applyTextAreaMods(mods) {
|
|
@@ -1954,7 +1954,7 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1954
1954
|
};
|
|
1955
1955
|
}
|
|
1956
1956
|
|
|
1957
|
-
var css$18 = {"root":"
|
|
1957
|
+
var css$18 = {"root":"wZvAB2"};
|
|
1958
1958
|
|
|
1959
1959
|
function applyDropdownContainerMods(mods) {
|
|
1960
1960
|
return [
|
|
@@ -1965,7 +1965,7 @@ function applyDropdownContainerMods(mods) {
|
|
|
1965
1965
|
}
|
|
1966
1966
|
const DropdownContainer = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1967
1967
|
|
|
1968
|
-
var css$17 = {"root":"
|
|
1968
|
+
var css$17 = {"root":"uQskY7","timepicker-input":"pyHstO","timepickerInput":"pyHstO","ltr-always":"wGaM07","ltrAlways":"wGaM07"};
|
|
1969
1969
|
|
|
1970
1970
|
const uuiTimePicker = {
|
|
1971
1971
|
container: 'uui-timepicker-container',
|
|
@@ -2010,11 +2010,11 @@ function TimePickerBody(props) {
|
|
|
2010
2010
|
React__namespace.createElement(uuiComponents.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()) }),
|
|
2011
2011
|
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
2012
2012
|
.set(props.value)
|
|
2013
|
-
.format(MAX_HOURS === FORMAT_12H ? 'hh' : 'HH')), isReadonly: true, min: MIN_HOURS, max: MAX_HOURS }),
|
|
2013
|
+
.format(MAX_HOURS === FORMAT_12H ? 'hh' : 'HH')), formatValue: (v) => String(v).padStart(2, '0'), isReadonly: true, min: MIN_HOURS, max: MAX_HOURS }),
|
|
2014
2014
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement hours' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$P, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).subtract(1, 'h').hour()) })),
|
|
2015
2015
|
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
2016
2016
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment minutes' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: handleMinutesUpClick }),
|
|
2017
|
-
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onMinutesChange, value: +uuiDayjs.dayjs().set(props.value).format('m'), isReadonly: true, min: MIN_MINUTES, max: MAX_MINUTES }),
|
|
2017
|
+
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onMinutesChange, value: +uuiDayjs.dayjs().set(props.value).format('m'), formatValue: (v) => String(v).padStart(2, '0'), isReadonly: true, min: MIN_MINUTES, max: MAX_MINUTES }),
|
|
2018
2018
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement minutes' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$P, onClick: handleMinutesDownClick }))),
|
|
2019
2019
|
MAX_HOURS === FORMAT_12H && (React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
2020
2020
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: onTimeTypeChange }),
|
|
@@ -2186,7 +2186,7 @@ function TimePickerComponent(props, ref) {
|
|
|
2186
2186
|
}
|
|
2187
2187
|
const TimePicker = /* @__PURE__ */React__namespace.default.forwardRef(TimePickerComponent);
|
|
2188
2188
|
|
|
2189
|
-
var css$16 = {"root":"
|
|
2189
|
+
var css$16 = {"root":"mSYQeQ"};
|
|
2190
2190
|
|
|
2191
2191
|
function applyInputAddonMods() {
|
|
2192
2192
|
return [
|
|
@@ -2195,14 +2195,14 @@ function applyInputAddonMods() {
|
|
|
2195
2195
|
}
|
|
2196
2196
|
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
2197
2197
|
|
|
2198
|
-
var css$15 = {"root":"
|
|
2198
|
+
var css$15 = {"root":"_0T9jml"};
|
|
2199
2199
|
|
|
2200
2200
|
function applySliderMods() {
|
|
2201
2201
|
return [css$15.root, 'uui-color-neutral'];
|
|
2202
2202
|
}
|
|
2203
2203
|
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
2204
2204
|
|
|
2205
|
-
var css$14 = {"root":"
|
|
2205
|
+
var css$14 = {"root":"OySA86"};
|
|
2206
2206
|
|
|
2207
2207
|
function applyTooltipMods(mods) {
|
|
2208
2208
|
return [
|
|
@@ -2212,7 +2212,7 @@ function applyTooltipMods(mods) {
|
|
|
2212
2212
|
}
|
|
2213
2213
|
const Tooltip = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
2214
2214
|
|
|
2215
|
-
var css$13 = {"root":"
|
|
2215
|
+
var css$13 = {"root":"OqYx-a","tooltip":"-VZob5"};
|
|
2216
2216
|
|
|
2217
2217
|
function applyRatingMods(mods) {
|
|
2218
2218
|
return [
|
|
@@ -2226,10 +2226,13 @@ const Rating = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Rating,
|
|
|
2226
2226
|
Tooltip,
|
|
2227
2227
|
}));
|
|
2228
2228
|
|
|
2229
|
-
var css$12 = {"drag-handle-wrapper":"
|
|
2229
|
+
var css$12 = {"drag-handle-wrapper":"RZxDvE","dragHandleWrapper":"RZxDvE","with-indent":"_6omlAl","withIndent":"_6omlAl","drag-handle":"qN7vvv","dragHandle":"qN7vvv","icon-container":"Y7UjiS","iconContainer":"Y7UjiS"};
|
|
2230
2230
|
|
|
2231
2231
|
function DataRowAddons(props) {
|
|
2232
2232
|
const row = props.rowProps;
|
|
2233
|
+
const checkboxSize = settings.dataTable.sizes.body.checkboxMap[props.size];
|
|
2234
|
+
const isCheckboxVisible = row?.checkbox?.isVisible;
|
|
2235
|
+
const reserveCheckboxSpace = row?.checkbox?.reserveSpace;
|
|
2233
2236
|
const getIndent = () => {
|
|
2234
2237
|
return (row.indent - 1) * settings.dataTable.sizes.body.indentUnitMap[props.size || settings.dataTable.sizes.body.row];
|
|
2235
2238
|
};
|
|
@@ -2250,7 +2253,8 @@ function DataRowAddons(props) {
|
|
|
2250
2253
|
};
|
|
2251
2254
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2252
2255
|
row.dnd?.srcData && renderDragHandle(),
|
|
2253
|
-
|
|
2256
|
+
isCheckboxVisible && (React__namespace.default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: checkboxSize, value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => row.onCheck?.(row), isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid, rawProps: { 'aria-label': 'Select' } })),
|
|
2257
|
+
!isCheckboxVisible && reserveCheckboxSpace && (React__namespace.default.createElement("div", { key: "cb-spacer", className: cx__default.default('uui-checkbox-container', 'uui-dr_addons-checkbox-spacer', `uui-size-${checkboxSize}`), "aria-hidden": "true" })),
|
|
2254
2258
|
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: cx__default.default('uui-dr_addons-indent', `uui-size-${props.size || settings.dataTable.sizes.body.row}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.ControlIcon, { rawProps: {
|
|
2255
2259
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
2256
2260
|
role: 'button',
|
|
@@ -2288,6 +2292,7 @@ function VerticalTabButtonComponent(props, ref) {
|
|
|
2288
2292
|
const ClearIcon = props.clearIcon ? props.clearIcon : settings.verticalTabButton.icons.clearIcon;
|
|
2289
2293
|
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, onClick: props.onClick || props.onFold, rawProps: {
|
|
2290
2294
|
role: 'tab',
|
|
2295
|
+
'aria-selected': isActive,
|
|
2291
2296
|
...props.rawProps,
|
|
2292
2297
|
}, cx: styles, ref: ref },
|
|
2293
2298
|
props.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: uuiCore.cx(css$1n.foldingArea, props.onFold && uuiCore.uuiMarkers.clickable), style: { '--uui-folding-indent': `${props.indent - 1}` }, onClick: props.onFold }, props.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
@@ -2308,7 +2313,7 @@ function VerticalTabButtonComponent(props, ref) {
|
|
|
2308
2313
|
}
|
|
2309
2314
|
const VerticalTabButton = /* @__PURE__ */React__namespace.default.forwardRef(VerticalTabButtonComponent);
|
|
2310
2315
|
|
|
2311
|
-
var css$11 = {"root":"
|
|
2316
|
+
var css$11 = {"root":"suPfV7","main-path":"GqksXy","mainPath":"GqksXy","content-wrapper":"-N7JSJ","contentWrapper":"-N7JSJ","content":"sn-tUw","action-wrapper":"pAzBw1","actionWrapper":"pAzBw1","icon-wrapper":"JdDOMV","iconWrapper":"JdDOMV","icon":"Bp4zdQ","close-icon":"sSZgE3","closeIcon":"sSZgE3"};
|
|
2312
2317
|
|
|
2313
2318
|
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", { role: "alert", ref: ref, className: cx__default.default('uui-alert', css$11.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.alert.sizes.default}`), ...props.rawProps },
|
|
2314
2319
|
React__namespace.createElement("div", { className: css$11.mainPath },
|
|
@@ -2326,7 +2331,7 @@ const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => Re
|
|
|
2326
2331
|
|
|
2327
2332
|
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
2328
2333
|
|
|
2329
|
-
var css$10 = {"submenu-root-item-rtl":"
|
|
2334
|
+
var css$10 = {"submenu-root-item-rtl":"_8sezyH","submenuRootItemRtl":"_8sezyH","icon-after":"_2tkap9","iconAfter":"_2tkap9","submenu-root-item":"_7b-9d4","submenuRootItem":"_7b-9d4","icon-check":"K4cfYl","iconCheck":"K4cfYl","splitter-root":"gUr7g6","splitterRoot":"gUr7g6","splitter":"A6ftY9","header-root":"_85nMHp","headerRoot":"_85nMHp","item-root":"m-YPSQ","itemRoot":"m-YPSQ","icon":"_0nKtmu","link":"nvd2aA","indent":"yJQ5rE","selected-mark":"T6eITy","selectedMark":"T6eITy"};
|
|
2330
2335
|
|
|
2331
2336
|
exports.IDropdownControlKeys = void 0;
|
|
2332
2337
|
(function (IDropdownControlKeys) {
|
|
@@ -2343,7 +2348,7 @@ function DropdownMenuContainer(props) {
|
|
|
2343
2348
|
const getMenuItems = () => {
|
|
2344
2349
|
if (!menuRef.current)
|
|
2345
2350
|
return [];
|
|
2346
|
-
return Array.from(menuRef.current.querySelectorAll(`[role
|
|
2351
|
+
return Array.from(menuRef.current.querySelectorAll(`[role^="menuitem"]:not(.${uuiCore.uuiMod.disabled})`));
|
|
2347
2352
|
};
|
|
2348
2353
|
const changeFocus = (nextFocusedIndex) => {
|
|
2349
2354
|
const menuItems = getMenuItems();
|
|
@@ -2410,7 +2415,7 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
2410
2415
|
};
|
|
2411
2416
|
const isAnchor = Boolean(link || href);
|
|
2412
2417
|
const itemClassNames = uuiCore.cx(props.cx, css$10.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened, (!isDisabled && onClick) && uuiCore.uuiMarkers.clickable);
|
|
2413
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$10.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isDisabled: isDisabled, target: target }, getMenuButtonContent())) : (React__namespace.default.createElement("div", { tabIndex: isDisabled ? -1 : 0, role: "menuitem", onKeyDown: isDisabled ? null : handleOpenDropdown, className: itemClassNames, onClick: handleClick, ref: ref },
|
|
2418
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$10.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0, ...props.rawProps }, onClick: handleClick, isDisabled: isDisabled, target: target }, getMenuButtonContent())) : (React__namespace.default.createElement("div", { tabIndex: isDisabled ? -1 : 0, role: "menuitem", onKeyDown: isDisabled ? null : handleOpenDropdown, className: itemClassNames, onClick: handleClick, ref: ref, ...props.rawProps },
|
|
2414
2419
|
getMenuButtonContent(),
|
|
2415
2420
|
isSelected && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2416
2421
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
@@ -2441,6 +2446,7 @@ function DropdownSubMenu(props) {
|
|
|
2441
2446
|
}
|
|
2442
2447
|
function DropdownMenuSwitchButton(props) {
|
|
2443
2448
|
const context = React.useContext(uuiCore.UuiContext);
|
|
2449
|
+
const switchRef = React.useRef(null);
|
|
2444
2450
|
const { icon, caption, isDisabled, isSelected, onValueChange, } = props;
|
|
2445
2451
|
const onHandleValueChange = (value) => {
|
|
2446
2452
|
if (isDisabled || !onValueChange)
|
|
@@ -2453,14 +2459,20 @@ function DropdownMenuSwitchButton(props) {
|
|
|
2453
2459
|
onHandleValueChange(!isSelected);
|
|
2454
2460
|
}
|
|
2455
2461
|
};
|
|
2456
|
-
|
|
2462
|
+
const handleClick = (event) => {
|
|
2463
|
+
const isSwitchClicked = switchRef.current?.contains(event.target);
|
|
2464
|
+
if (isSwitchClicked)
|
|
2465
|
+
return;
|
|
2466
|
+
onHandleValueChange(!isSelected);
|
|
2467
|
+
};
|
|
2468
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$10.itemRoot, isDisabled && uuiCore.uuiMod.disabled, (!isDisabled || onValueChange) && uuiCore.uuiMarkers.clickable), onClick: handleClick, role: "menuitem", onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 },
|
|
2457
2469
|
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$10.iconBefore }),
|
|
2458
2470
|
React__namespace.default.createElement(uuiComponents.Text, null, caption),
|
|
2459
2471
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2460
|
-
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
2472
|
+
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange, ref: switchRef })));
|
|
2461
2473
|
}
|
|
2462
2474
|
|
|
2463
|
-
var css$$ = {"root":"
|
|
2475
|
+
var css$$ = {"root":"PcyFZ3","mode-block":"-hovKu","modeBlock":"-hovKu","mode-inline":"_7uG285","modeInline":"_7uG285","padding-0":"MsI11x","padding0":"MsI11x","padding-6":"xfO-1U","padding6":"xfO-1U","padding-12":"jQJc2I","padding12":"jQJc2I","padding-18":"dEVGd2","padding18":"dEVGd2"};
|
|
2464
2476
|
|
|
2465
2477
|
function applyAccordionMods(mods) {
|
|
2466
2478
|
return [
|
|
@@ -2473,7 +2485,7 @@ const Accordion = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Accor
|
|
|
2473
2485
|
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
2474
2486
|
}));
|
|
2475
2487
|
|
|
2476
|
-
var css$_ = {"root":"
|
|
2488
|
+
var css$_ = {"root":"ikdE6t","align-items":"NQh8KE","alignItems":"NQh8KE","justify-content":"_8UUkKu","justifyContent":"_8UUkKu","border-top":"E1eUd7","borderTop":"E1eUd7","border-bottom":"FpoPsZ","borderBottom":"FpoPsZ","top-shadow":"i8Vw0o","topShadow":"i8Vw0o","padding":"cbGu2X","margin":"OqFcqI","vPadding":"lcmsET","column-gap":"_4jB8Qh","columnGap":"_4jB8Qh","row-gap":"CNZhiF","rowGap":"CNZhiF","spacing":"TrD3JA"};
|
|
2477
2489
|
|
|
2478
2490
|
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$_.flexCell]);
|
|
2479
2491
|
|
|
@@ -2525,7 +2537,7 @@ const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2525
2537
|
} }, props.children));
|
|
2526
2538
|
});
|
|
2527
2539
|
|
|
2528
|
-
var css$Z = {"root":"
|
|
2540
|
+
var css$Z = {"root":"mdSWEE","margin-24":"_2nytQ-","margin24":"_2nytQ-","padding-12":"GMGJf2","padding12":"GMGJf2","padding-24":"u-TmU9","padding24":"u-TmU9","shadow":"GJha7t","uui-surface-main":"BHP0Yp","uuiSurfaceMain":"BHP0Yp"};
|
|
2529
2541
|
|
|
2530
2542
|
const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
2531
2543
|
'uui-panel',
|
|
@@ -2535,7 +2547,7 @@ const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
|
2535
2547
|
props.background && css$Z[`uui-${props.background}`],
|
|
2536
2548
|
]);
|
|
2537
2549
|
|
|
2538
|
-
var css$Y = {"root":"
|
|
2550
|
+
var css$Y = {"root":"a0b0i-"};
|
|
2539
2551
|
|
|
2540
2552
|
function applyLabeledInputMods(mods) {
|
|
2541
2553
|
return [
|
|
@@ -2557,7 +2569,7 @@ function applyLabeledInputProps(props) {
|
|
|
2557
2569
|
}
|
|
2558
2570
|
const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
2559
2571
|
|
|
2560
|
-
var css$X = {"root":"
|
|
2572
|
+
var css$X = {"root":"cKPomo"};
|
|
2561
2573
|
|
|
2562
2574
|
function RadioGroup(props) {
|
|
2563
2575
|
const direction = props.direction || 'vertical';
|
|
@@ -2572,7 +2584,7 @@ function RadioGroup(props) {
|
|
|
2572
2584
|
})));
|
|
2573
2585
|
}
|
|
2574
2586
|
|
|
2575
|
-
var css$W = {"root":"
|
|
2587
|
+
var css$W = {"root":"Yc1hqI","viewport":"AR-rKK"};
|
|
2576
2588
|
|
|
2577
2589
|
var uuiScrollbars;
|
|
2578
2590
|
(function (uuiScrollbars) {
|
|
@@ -2651,7 +2663,7 @@ const ScrollBars = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2651
2663
|
});
|
|
2652
2664
|
ScrollBars.displayName = 'ScrollBars';
|
|
2653
2665
|
|
|
2654
|
-
var css$V = {"scroll-container":"
|
|
2666
|
+
var css$V = {"scroll-container":"gugpxO","scrollContainer":"gugpxO","list-container":"DtcsB0","listContainer":"DtcsB0"};
|
|
2655
2667
|
|
|
2656
2668
|
const VirtualList = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
2657
2669
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
@@ -2660,8 +2672,11 @@ const VirtualList = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
2660
2672
|
onScroll: props.onScroll,
|
|
2661
2673
|
rowsCount: props.rowsCount,
|
|
2662
2674
|
rowsSelector: props.rowsSelector,
|
|
2675
|
+
rowHeight: props.rowHeight,
|
|
2676
|
+
rowGap: props.rowGap,
|
|
2663
2677
|
});
|
|
2664
2678
|
React__namespace.default.useImperativeHandle(ref, () => scrollContainerRef.current, [scrollContainerRef.current]);
|
|
2679
|
+
const [blockerInset, setBlockerInset] = React__namespace.default.useState(null);
|
|
2665
2680
|
const renderRows = () => props.renderRows?.({
|
|
2666
2681
|
listContainerRef, estimatedHeight, offsetY,
|
|
2667
2682
|
}) || (React__namespace.default.createElement("div", { className: css$V.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
@@ -2671,9 +2686,28 @@ const VirtualList = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
2671
2686
|
return;
|
|
2672
2687
|
scrollContainerRef.current = scrollbars.view;
|
|
2673
2688
|
}, []);
|
|
2674
|
-
|
|
2689
|
+
const rawProps = React__namespace.default.useMemo(() => ({
|
|
2690
|
+
...(props.rawProps ?? {}),
|
|
2691
|
+
style: {
|
|
2692
|
+
...(props.rawProps?.style ?? {}),
|
|
2693
|
+
overflow: props.isLoading ? 'hidden' : props.rawProps?.style?.overflow,
|
|
2694
|
+
},
|
|
2695
|
+
}), [props.rawProps, props.isLoading]);
|
|
2696
|
+
const updateBlockerInset = React__namespace.default.useCallback(() => {
|
|
2697
|
+
const scrollContainer = scrollContainerRef.current;
|
|
2698
|
+
if (!scrollContainer)
|
|
2699
|
+
return;
|
|
2700
|
+
const { scrollTop, scrollLeft } = scrollContainer;
|
|
2701
|
+
setBlockerInset({ top: scrollTop, left: scrollLeft, right: -scrollLeft, bottom: -scrollTop });
|
|
2702
|
+
}, [setBlockerInset]);
|
|
2703
|
+
React__namespace.default.useEffect(() => {
|
|
2704
|
+
if (props.isLoading) {
|
|
2705
|
+
updateBlockerInset();
|
|
2706
|
+
}
|
|
2707
|
+
}, [props.isLoading, updateBlockerInset]);
|
|
2708
|
+
return (React__namespace.default.createElement(ScrollBars, { cx: uuiCore.cx(css$V.scrollContainer, props.cx), onScroll: handleScroll, ref: scrollBarsRef, rawProps: rawProps, overflowTopEffect: props.overflowTopEffect, overflowBottomEffect: props.overflowBottomEffect, autoHide: props.isLoading ? 'scroll' : undefined },
|
|
2675
2709
|
renderRows(),
|
|
2676
|
-
React__namespace.default.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
2710
|
+
React__namespace.default.createElement(Blocker, { isEnabled: props.isLoading, inset: blockerInset })));
|
|
2677
2711
|
});
|
|
2678
2712
|
|
|
2679
2713
|
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || settings.richTextView.sizes.default}`]);
|
|
@@ -2704,7 +2738,7 @@ function Tree(props) {
|
|
|
2704
2738
|
return (React__namespace.createElement(VirtualList, { value: value, onValueChange: onValueChange, rowsCount: rowsCount, rows: renderedRows, cx: uuiCore.cx(propsCx), role: "tree" }));
|
|
2705
2739
|
}
|
|
2706
2740
|
|
|
2707
|
-
var css$U = {"root":"
|
|
2741
|
+
var css$U = {"root":"lMXYuJ"};
|
|
2708
2742
|
|
|
2709
2743
|
function CheckboxGroup(props) {
|
|
2710
2744
|
const currentValue = props.value || [];
|
|
@@ -2806,7 +2840,7 @@ const Tabs = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2806
2840
|
});
|
|
2807
2841
|
Tabs.displayName = 'Tabs';
|
|
2808
2842
|
|
|
2809
|
-
var css$T = {"root":"
|
|
2843
|
+
var css$T = {"root":"_4yUjfz","modal-blocker":"TX5p8-","modalBlocker":"TX5p8-","animateModalBlocker":"qsInCo","modal":"_2Ks58T","modal-footer":"qmTu-7","modalFooter":"qmTu-7","border-top":"_6W15ve","borderTop":"_6W15ve","modal-header":"kBqnuN","modalHeader":"kBqnuN","border-bottom":"mGXFEu","borderBottom":"mGXFEu"};
|
|
2810
2844
|
|
|
2811
2845
|
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$T.modalBlocker]);
|
|
2812
2846
|
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$T.root, css$T.modal], (props) => {
|
|
@@ -2913,6 +2947,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2913
2947
|
columnHeader: {
|
|
2914
2948
|
collapseAllTooltip: 'Collapse All',
|
|
2915
2949
|
expandAllTooltip: 'Expand All',
|
|
2950
|
+
filterActiveLabel: 'filter active',
|
|
2916
2951
|
},
|
|
2917
2952
|
},
|
|
2918
2953
|
pickerFilterHeader: {
|
|
@@ -2998,7 +3033,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2998
3033
|
});
|
|
2999
3034
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
3000
3035
|
|
|
3001
|
-
var css$S = {"root":"
|
|
3036
|
+
var css$S = {"root":"VCuR5k","icon-wrapper":"prqZvp","iconWrapper":"prqZvp","action-wrapper":"X-IzMp","actionWrapper":"X-IzMp","close-icon":"_3EZ22P","closeIcon":"_3EZ22P","main-path":"QDcskl","mainPath":"QDcskl","content":"J9j7nF","close-wrapper":"Cq64U-","closeWrapper":"Cq64U-","clear-notifications":"M5PhB8","clearNotifications":"M5PhB8"};
|
|
3002
3037
|
|
|
3003
3038
|
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
3004
3039
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -3031,7 +3066,7 @@ function ClearNotification() {
|
|
|
3031
3066
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
3032
3067
|
}
|
|
3033
3068
|
|
|
3034
|
-
var css$R = {"footer":"
|
|
3069
|
+
var css$R = {"footer":"J56wd0"};
|
|
3035
3070
|
|
|
3036
3071
|
class ConfirmationModal extends React__namespace.Component {
|
|
3037
3072
|
render() {
|
|
@@ -3073,7 +3108,7 @@ function useReliableForceUpdate() {
|
|
|
3073
3108
|
return red[1];
|
|
3074
3109
|
}
|
|
3075
3110
|
|
|
3076
|
-
var css$Q = {"root":"
|
|
3111
|
+
var css$Q = {"root":"CGEeiF","container":"vi-Ish"};
|
|
3077
3112
|
|
|
3078
3113
|
const defaultFormat = 'MMM D, YYYY';
|
|
3079
3114
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -3300,14 +3335,14 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
3300
3335
|
React__namespace.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
3301
3336
|
}
|
|
3302
3337
|
|
|
3303
|
-
var css$P = {"root":"
|
|
3338
|
+
var css$P = {"root":"EXKo7e"};
|
|
3304
3339
|
|
|
3305
3340
|
function applyDateSelectionMods() {
|
|
3306
3341
|
return [css$P.root, `uui-size-${settings.datePicker.sizes.body}`];
|
|
3307
3342
|
}
|
|
3308
3343
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
3309
3344
|
|
|
3310
|
-
var css$O = {"root":"
|
|
3345
|
+
var css$O = {"root":"fM4MRI"};
|
|
3311
3346
|
|
|
3312
3347
|
const uuiDatePickerBody = {
|
|
3313
3348
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -3389,6 +3424,10 @@ function DatePickerComponent(props, ref) {
|
|
|
3389
3424
|
};
|
|
3390
3425
|
const onBlur = (e) => {
|
|
3391
3426
|
props.onBlur?.(e);
|
|
3427
|
+
const formattedValue = toCustomDateFormat(value, format);
|
|
3428
|
+
if (inputValue === formattedValue) {
|
|
3429
|
+
return; // No changes made to the field, skip validation
|
|
3430
|
+
}
|
|
3392
3431
|
if (isValidDate(inputValue, format, props.filter)) {
|
|
3393
3432
|
setInputValue(toCustomDateFormat(inputValue, format));
|
|
3394
3433
|
onValueChange(toValueDateFormat(inputValue, format));
|
|
@@ -3430,7 +3469,7 @@ function DatePickerComponent(props, ref) {
|
|
|
3430
3469
|
}
|
|
3431
3470
|
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
3432
3471
|
|
|
3433
|
-
var css$N = {"date-input":"
|
|
3472
|
+
var css$N = {"date-input":"f61-sG","dateInput":"f61-sG","root":"g7GnjG","separator":"awlDd6"};
|
|
3434
3473
|
|
|
3435
3474
|
const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, preventEmptyFromDate, preventEmptyToDate, id, cx: classes, }, ref) => {
|
|
3436
3475
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
@@ -3507,7 +3546,7 @@ const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isIn
|
|
|
3507
3546
|
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$N.dateInput, inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.rangeDatePicker.sizes.default, value: inputValue.to || undefined, icon: clearAllowed && ForwardRef$Q, iconPosition: "right", iconLabel: "Clear selected date range", onIconClick: onClear, 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?.to, onClick: onClick, onKeyDown: onInputKeyDown })));
|
|
3508
3547
|
});
|
|
3509
3548
|
|
|
3510
|
-
var css$M = {"root":"
|
|
3549
|
+
var css$M = {"root":"FE5uLX"};
|
|
3511
3550
|
|
|
3512
3551
|
const uuiPresets = {
|
|
3513
3552
|
container: 'uui-presets-container',
|
|
@@ -3527,7 +3566,7 @@ function CalendarPresets(props) {
|
|
|
3527
3566
|
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: settings.rangeDatePicker.sizes.preset })))));
|
|
3528
3567
|
}
|
|
3529
3568
|
|
|
3530
|
-
var css$L = {"root":"
|
|
3569
|
+
var css$L = {"root":"g-Uh-a","container":"chyhsa","day-selection":"o1UhI-","daySelection":"o1UhI-","from-picker":"_9tzbXn","fromPicker":"_9tzbXn","to-picker":"wJloKY","toPicker":"wJloKY","bodes-wrapper":"R7HbPd","bodesWrapper":"R7HbPd","blocker":"VyzdAJ"};
|
|
3531
3570
|
|
|
3532
3571
|
const uuiRangeDatePickerBody = {
|
|
3533
3572
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3729,7 +3768,7 @@ const getDayState = (day, selectedDate) => {
|
|
|
3729
3768
|
};
|
|
3730
3769
|
};
|
|
3731
3770
|
|
|
3732
|
-
var css$K = {"dropdown-container":"
|
|
3771
|
+
var css$K = {"dropdown-container":"uKTNuw","dropdownContainer":"uKTNuw"};
|
|
3733
3772
|
|
|
3734
3773
|
function RangeDatePickerComponent(props, ref) {
|
|
3735
3774
|
const { value: _value, format = defaultFormat, size = settings.rangeDatePicker.sizes.default } = props;
|
|
@@ -3797,7 +3836,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3797
3836
|
}
|
|
3798
3837
|
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
3799
3838
|
|
|
3800
|
-
var css$J = {"root":"
|
|
3839
|
+
var css$J = {"root":"u7dZKH","blocker":"Uk3hQU","marker":"xeke1m","top":"B0TIVy","bottom":"_85B0uh","left":"ePl0zr","right":"_4R6YIi","inside":"gEBKHQ"};
|
|
3801
3840
|
|
|
3802
3841
|
function DropMarker(props) {
|
|
3803
3842
|
return props.isDndInProgress
|
|
@@ -3812,9 +3851,9 @@ function DropMarker(props) {
|
|
|
3812
3851
|
: null;
|
|
3813
3852
|
}
|
|
3814
3853
|
|
|
3815
|
-
var css$I = {"root":"
|
|
3854
|
+
var css$I = {"root":"tMJiQm","search-wrapper":"fhZFAT","searchWrapper":"fhZFAT","no-data":"WMkNix","noData":"WMkNix","empty-status-announcer":"bvtPB7","emptyStatusAnnouncer":"bvtPB7"};
|
|
3816
3855
|
|
|
3817
|
-
var css$H = {"picker-row":"
|
|
3856
|
+
var css$H = {"picker-row":"AznH1Z","pickerRow":"AznH1Z","align-widgets-top":"XPma4m","alignWidgetsTop":"XPma4m","row-content":"JwKtND","rowContent":"JwKtND","align-widgets-center":"JHmBNU","alignWidgetsCenter":"JHmBNU","icon-container":"oPKubC","iconContainer":"oPKubC","content-wrapper":"Pz-8SD","contentWrapper":"Pz-8SD","icon-wrapper":"lOXhs1","iconWrapper":"lOXhs1","icon-default":"zkdtCU","iconDefault":"zkdtCU","selected-mark":"Rfykaj","selectedMark":"Rfykaj"};
|
|
3818
3857
|
|
|
3819
3858
|
const mergeHighlightRanges = (ranges) => {
|
|
3820
3859
|
const mergedRanges = [];
|
|
@@ -3881,7 +3920,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3881
3920
|
return getDecoratedText(str, ranges);
|
|
3882
3921
|
};
|
|
3883
3922
|
|
|
3884
|
-
var css$G = {"root":"
|
|
3923
|
+
var css$G = {"root":"OpXQJD","column-gap":"_2jvmWR","columnGap":"_2jvmWR","title":"vhbNHi","subtitle":"BAV0Du","disabled":"-byJT0","multiline":"_7FoW3u"};
|
|
3885
3924
|
|
|
3886
3925
|
function PickerItem(props) {
|
|
3887
3926
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -3970,6 +4009,15 @@ function DataPickerBody({ highlightSearchMatches = true, autoFocusSearch = true,
|
|
|
3970
4009
|
const prevProps = uuiCore.usePrevious(props);
|
|
3971
4010
|
const showSearch = props.showSearch === 'auto' ? props.totalCount > 10 : Boolean(props.showSearch);
|
|
3972
4011
|
const [isKeyboardNavigation, setIsKeyboardNavigation] = React__namespace.default.useState(false);
|
|
4012
|
+
const [emptyMessage, setEmptyMessage] = React__namespace.default.useState('');
|
|
4013
|
+
// We need to also ensure that topIndex === 0, because we can have state were there is no rows but topIndex > 0, in case when we scrolled lover than we have rows
|
|
4014
|
+
// we fix this state on next render and shouldn't show empty state.
|
|
4015
|
+
const isEmptyList = props.rows.length === 0 && props.value.topIndex === 0;
|
|
4016
|
+
React.useEffect(() => {
|
|
4017
|
+
if (!isEmptyList) {
|
|
4018
|
+
setEmptyMessage('');
|
|
4019
|
+
}
|
|
4020
|
+
}, [isEmptyList]);
|
|
3973
4021
|
React.useEffect(() => {
|
|
3974
4022
|
if (props.rows.length !== prevProps?.rows.length || (!isEqual__default.default(prevProps?.value.checked, props.value.checked) && !props.fixedBodyPosition)) {
|
|
3975
4023
|
props.scheduleUpdate?.();
|
|
@@ -4059,12 +4107,11 @@ function DataPickerBody({ highlightSearchMatches = true, autoFocusSearch = true,
|
|
|
4059
4107
|
: settings.pickerInput.sizes.body.getSearchSize({ pickerSize: props.searchSize });
|
|
4060
4108
|
const renderedDataRows = React.useMemo(() => props.rows.map((row) => renderRow(row, props.value)), [props.rows, props.value, isKeyboardNavigation]);
|
|
4061
4109
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
4110
|
+
React__namespace.default.createElement("div", { className: css$I.emptyStatusAnnouncer, role: "status", "aria-live": "polite", "aria-atomic": "true" }, emptyMessage),
|
|
4062
4111
|
showSearch && (React__namespace.default.createElement("div", { key: "search", className: uuiCore.cx(css$I.searchWrapper, 'uui-picker_input-body-search') },
|
|
4063
4112
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 }, autoFocusSearch ? React__namespace.default.createElement(FocusLock.MoveFocusInside, null, renderSearchInput()) : renderSearchInput()))),
|
|
4064
|
-
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('uui-picker_input-body'), rawProps: { style: { maxHeight: props.maxHeight, maxWidth: props.maxWidth }, tabIndex: -1 } },
|
|
4065
|
-
|
|
4066
|
-
// we fix this state on next render and shouldn't show empty state.
|
|
4067
|
-
? renderEmpty() : (React__namespace.default.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, rows: renderedDataRows, role: "listbox", cx: css$I.root, rawProps: {
|
|
4113
|
+
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('uui-picker_input-body'), rawProps: { style: { maxHeight: props.maxHeight, maxWidth: props.maxWidth }, tabIndex: -1 } }, isEmptyList
|
|
4114
|
+
? (React__namespace.default.createElement("div", { ref: (el) => el && setEmptyMessage(el.textContent ?? '') }, renderEmpty())) : (React__namespace.default.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, rows: renderedDataRows, role: "listbox", cx: css$I.root, rawProps: {
|
|
4068
4115
|
'aria-multiselectable': props.selectionMode === 'multi' ? true : null,
|
|
4069
4116
|
'aria-orientation': 'vertical',
|
|
4070
4117
|
tabIndex: 0,
|
|
@@ -4099,7 +4146,7 @@ function DataPickerFooterImpl(props) {
|
|
|
4099
4146
|
}
|
|
4100
4147
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
4101
4148
|
|
|
4102
|
-
var css$F = {"header":"
|
|
4149
|
+
var css$F = {"header":"dcE--O","title":"KTqdQx","close":"ish9jy"};
|
|
4103
4150
|
|
|
4104
4151
|
const DataPickerMobileHeaderImpl = (props) => {
|
|
4105
4152
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
@@ -4109,7 +4156,7 @@ const DataPickerMobileHeaderImpl = (props) => {
|
|
|
4109
4156
|
};
|
|
4110
4157
|
const DataPickerMobileHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerMobileHeaderImpl);
|
|
4111
4158
|
|
|
4112
|
-
var css$E = {"done":"
|
|
4159
|
+
var css$E = {"done":"zlooV9","container":"_4TbYLa"};
|
|
4113
4160
|
|
|
4114
4161
|
const PickerBodyMobileView = (props) => {
|
|
4115
4162
|
const isMobileView = uuiCore.isMobile();
|
|
@@ -4121,7 +4168,7 @@ const PickerBodyMobileView = (props) => {
|
|
|
4121
4168
|
isMobileView && (React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => props.onClose?.(), cx: css$E.done, size: settings.pickerInput.sizes.body.mobileFooterLinkButton }))));
|
|
4122
4169
|
};
|
|
4123
4170
|
|
|
4124
|
-
var css$D = {"sub-header-wrapper":"
|
|
4171
|
+
var css$D = {"sub-header-wrapper":"DctblX","subHeaderWrapper":"DctblX","switch":"nxAIRh","search":"gA8hqk","no-found-modal-container":"OK1ls2","noFoundModalContainer":"OK1ls2","no-found-modal-container-icon":"OkqEpQ","noFoundModalContainerIcon":"OkqEpQ","no-found-modal-container-text":"AHOgpq","noFoundModalContainerText":"AHOgpq","body":"aioejM"};
|
|
4125
4172
|
|
|
4126
4173
|
function PickerModal(props) {
|
|
4127
4174
|
const { view, selection, dataSourceStateLens, dataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = uuiComponents.usePickerModal(props);
|
|
@@ -4182,7 +4229,7 @@ function PickerModal(props) {
|
|
|
4182
4229
|
React__namespace.default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
4183
4230
|
}
|
|
4184
4231
|
|
|
4185
|
-
var css$C = {"tooltip":"
|
|
4232
|
+
var css$C = {"tooltip":"_4Treuu","noShrink":"rR7TvO"};
|
|
4186
4233
|
|
|
4187
4234
|
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4188
4235
|
const tagProps = {
|
|
@@ -4201,7 +4248,7 @@ const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
4201
4248
|
}
|
|
4202
4249
|
});
|
|
4203
4250
|
|
|
4204
|
-
var css$B = {"root":"
|
|
4251
|
+
var css$B = {"root":"QGtLbJ"};
|
|
4205
4252
|
|
|
4206
4253
|
const defaultMode = EditMode.FORM;
|
|
4207
4254
|
function applyPickerTogglerMods(mods) {
|
|
@@ -4283,7 +4330,7 @@ function PickerInputComponent(props, ref) {
|
|
|
4283
4330
|
}
|
|
4284
4331
|
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
4285
4332
|
|
|
4286
|
-
var css$A = {"row":"
|
|
4333
|
+
var css$A = {"row":"hWRm8c"};
|
|
4287
4334
|
|
|
4288
4335
|
function PickerListRow(props) {
|
|
4289
4336
|
let label;
|
|
@@ -4303,7 +4350,7 @@ function PickerListRow(props) {
|
|
|
4303
4350
|
return (React__namespace.default.createElement("div", { role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1, ...(props.checkbox?.isVisible && { 'aria-checked': props.isChecked }), className: css$A.row }, component));
|
|
4304
4351
|
}
|
|
4305
4352
|
|
|
4306
|
-
var css$z = {"root":"
|
|
4353
|
+
var css$z = {"root":"BM9No7"};
|
|
4307
4354
|
|
|
4308
4355
|
function PickerList(props) {
|
|
4309
4356
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -4338,7 +4385,7 @@ function PickerList(props) {
|
|
|
4338
4385
|
}, selectedRows)));
|
|
4339
4386
|
}
|
|
4340
4387
|
|
|
4341
|
-
var css$y = {"root":"
|
|
4388
|
+
var css$y = {"root":"djeBSr","wrapper":"_2xF4NN","align-widgets-top":"-mnZme","alignWidgetsTop":"-mnZme","align-widgets-center":"DCXMuu","alignWidgetsCenter":"DCXMuu"};
|
|
4342
4389
|
|
|
4343
4390
|
function DataTableCell(initialProps) {
|
|
4344
4391
|
const props = { ...initialProps };
|
|
@@ -4388,7 +4435,7 @@ function DataTableCell(initialProps) {
|
|
|
4388
4435
|
return React__namespace.createElement(uuiComponents.DataTableCell, { ...props });
|
|
4389
4436
|
}
|
|
4390
4437
|
|
|
4391
|
-
var css$x = {"root":"
|
|
4438
|
+
var css$x = {"root":"_-58jb7"};
|
|
4392
4439
|
|
|
4393
4440
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
4394
4441
|
// 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.
|
|
@@ -4404,14 +4451,16 @@ const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow,
|
|
|
4404
4451
|
];
|
|
4405
4452
|
}, () => propsMods);
|
|
4406
4453
|
|
|
4407
|
-
var css$w = {"sorting-panel-container":"
|
|
4454
|
+
var css$w = {"sorting-panel-container":"vLpv8O","sortingPanelContainer":"vLpv8O"};
|
|
4408
4455
|
|
|
4409
4456
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
4410
4457
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
4411
4458
|
const sortDesc = React.useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
4459
|
+
const isAscSelected = sortDirection === 'asc';
|
|
4460
|
+
const isDescSelected = sortDirection === 'desc';
|
|
4412
4461
|
return (React__namespace.default.createElement(FlexCell, { cx: uuiCore.cx(css$w.sortingPanelContainer, 'uui-dropdownMenu-body') },
|
|
4413
|
-
React__namespace.default.createElement(DropdownMenuButton, { isActive:
|
|
4414
|
-
React__namespace.default.createElement(DropdownMenuButton, { isActive:
|
|
4462
|
+
React__namespace.default.createElement(DropdownMenuButton, { isActive: isAscSelected, caption: i18n.pickerFilterHeader.sortAscending, icon: settings.dataTable.icons.header.ascSortIcon, onClick: sortAsc, rawProps: { role: 'menuitemradio', 'aria-checked': isAscSelected } }),
|
|
4463
|
+
React__namespace.default.createElement(DropdownMenuButton, { isActive: isDescSelected, caption: i18n.pickerFilterHeader.sortDescending, icon: settings.dataTable.icons.header.descSortIcon, onClick: sortDesc, rawProps: { role: 'menuitemradio', 'aria-checked': isDescSelected } })));
|
|
4415
4464
|
};
|
|
4416
4465
|
const SortingPanel = /* @__PURE__ */React__namespace.default.memo(SortingPanelImpl);
|
|
4417
4466
|
|
|
@@ -4424,113 +4473,114 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
4424
4473
|
};
|
|
4425
4474
|
const ColumnHeaderDropdown = /* @__PURE__ */React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
4426
4475
|
|
|
4427
|
-
var css$v = {"root":"
|
|
4476
|
+
var css$v = {"root":"MlPbCS","caption-wrapper":"NiopQP","captionWrapper":"NiopQP","sort-icon":"UO6JkM","sortIcon":"UO6JkM","dropdown-icon":"iRU0zZ","dropdownIcon":"iRU0zZ","infoIcon":"L7egmt","sortInActive":"gfP7KI","align-right":"uk9YRV","alignRight":"uk9YRV","align-center":"hOepfI","alignCenter":"hOepfI","caption":"iW3U6O","truncate":"_7SBpJX","upper-case":"ub6mi-","upperCase":"ub6mi-","checkbox":"NO-b1J","icon":"GFDAeS","fold-all-icon":"x5NQJW","foldAllIcon":"x5NQJW","cell-tooltip":"FZW2AN","cellTooltip":"FZW2AN","resizing-marker":"w8Dc-z","resizingMarker":"w8Dc-z","pinned-right":"_3OcRs0","pinnedRight":"_3OcRs0","draggable":"z-n-KL","ghost":"nSsP-w","is-dragged-out":"n7UC4E","isDraggedOut":"n7UC4E","dnd-marker-left":"iYrgv0","dndMarkerLeft":"iYrgv0","dnd-marker-right":"dx-azV","dndMarkerRight":"dx-azV","cell-tooltip-wrapper":"PGSC1n","cellTooltipWrapper":"PGSC1n","cell-tooltip-text":"h3gfus","cellTooltipText":"h3gfus","tooltip-caption":"ChZNkP","tooltipCaption":"ChZNkP","tooltip-info":"hMScDw","tooltipInfo":"hMScDw"};
|
|
4428
4477
|
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
props.toggleSort(e);
|
|
4456
|
-
e.preventDefault();
|
|
4457
|
-
}
|
|
4458
|
-
};
|
|
4459
|
-
return (React__namespace.createElement("div", { className: uuiCore.cx(css$v.captionWrapper, css$v['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
4460
|
-
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: [css$v.cellTooltip, 'uui-dt-header-tooltip'], openDelay: 600, closeOnMouseLeave: "boundary" },
|
|
4461
|
-
React__namespace.createElement("div", { key: "text", className: captionCx }, this.props.column.caption)),
|
|
4462
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(uuiComponents.ControlIcon, { key: "sort", cx: uuiCore.cx(css$v.icon, css$v.sortIcon, !this.props.sortDirection && css$v.sortInActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), icon: settings.dataTable.icons.header[this.props.sortDirection === 'desc' ? 'descSortIcon' : this.props.sortDirection === 'asc' ? 'ascSortIcon' : 'defaultSortIcon'], onKeyDown: !this.props.column.renderFilter ? handleSort : undefined })),
|
|
4463
|
-
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$v.icon, !this.props.sortDirection && css$v.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "neutral", icon: settings.dataTable.icons.header.filterIcon })),
|
|
4464
|
-
this.props.column.renderFilter && (React__namespace.createElement(uuiComponents.ControlIcon, { key: "dropdown", cx: uuiCore.cx(css$v.icon, css$v.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), icon: settings.dataTable.icons.header[this.state.isDropdownOpen ? 'openedDropdownIcon' : 'dropdownIcon'], onKeyDown: handleFilterOpen }))));
|
|
4465
|
-
};
|
|
4466
|
-
this.renderHeaderCheckbox = () => {
|
|
4467
|
-
if (this.props.selectAll && this.props.isFirstColumn) {
|
|
4468
|
-
return (React__namespace.createElement(Checkbox, { size: settings.dataTable.sizes.body.checkboxMap[this.props.size], rawProps: { 'aria-label': 'Select All' }, ...this.props.selectAll, cx: uuiCore.cx(css$v.checkbox, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCheckbox) }));
|
|
4478
|
+
function DefaultTooltipContent(column) {
|
|
4479
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(css$v.cellTooltipWrapper, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionTooltip) },
|
|
4480
|
+
React__namespace.default.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipCaption] }, column.caption),
|
|
4481
|
+
column.info && (React__namespace.default.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipInfo] }, column.info))));
|
|
4482
|
+
}
|
|
4483
|
+
function DataTableHeaderCell(props) {
|
|
4484
|
+
const [isDropdownOpen, setIsDropdownOpen] = React.useState(null);
|
|
4485
|
+
const id = React.useId();
|
|
4486
|
+
const captionId = `uui-dt-header-caption-${id}-${props.column.key}`;
|
|
4487
|
+
const captionAriaProps = {
|
|
4488
|
+
'aria-labelledby': captionId,
|
|
4489
|
+
'aria-description': props.isFilterActive ? i18n.tables.columnHeader.filterActiveLabel : undefined,
|
|
4490
|
+
};
|
|
4491
|
+
const getColumnCaption = (contentProps, dropdownProps) => {
|
|
4492
|
+
const renderTooltip = props.column.renderTooltip || DefaultTooltipContent;
|
|
4493
|
+
const captionCx = uuiCore.cx([
|
|
4494
|
+
css$v.caption,
|
|
4495
|
+
props.textCase === 'upper' && css$v.upperCase,
|
|
4496
|
+
uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaption,
|
|
4497
|
+
'uui-typography-inline',
|
|
4498
|
+
props.size >= '48' && css$v.truncate,
|
|
4499
|
+
]);
|
|
4500
|
+
const handleFilterOpen = (e) => {
|
|
4501
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
4502
|
+
dropdownProps.onClick(e);
|
|
4503
|
+
e.preventDefault();
|
|
4469
4504
|
}
|
|
4470
4505
|
};
|
|
4471
|
-
|
|
4472
|
-
if (
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
: i18n.tables.columnHeader.collapseAllTooltip },
|
|
4476
|
-
React__namespace.createElement(uuiComponents.ControlIcon, { cx: uuiCore.cx(css$v.icon, css$v.foldAllIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFoldAllIcon), icon: settings.dataTable.icons.header[this.props.areAllFolded ? 'unfoldIcon' : 'foldIcon'], onClick: this.props.onFoldAll, rawProps: {
|
|
4477
|
-
'aria-label': this.props.areAllFolded ? 'Expand All' : 'Collapse All',
|
|
4478
|
-
'aria-expanded': !!this.props.areAllFolded,
|
|
4479
|
-
} })));
|
|
4506
|
+
const handleSort = (e) => {
|
|
4507
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
4508
|
+
contentProps.toggleSort(e);
|
|
4509
|
+
e.preventDefault();
|
|
4480
4510
|
}
|
|
4481
4511
|
};
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
const onClickEvent = !props.isResizing && (!this.props.column.renderFilter ? props.toggleSort : dropdownProps?.onClick);
|
|
4504
|
-
const computeStyles = {
|
|
4505
|
-
'--uui-dt-header-cell-icon-size': `${settings.dataTable.sizes.header.iconMap[this.props.size || settings.dataTable.sizes.header.row]}px`,
|
|
4506
|
-
'--uui-dt-header-cell-padding-start': this.getLeftPadding(),
|
|
4507
|
-
'--uui-dt-header-cell-padding-end': this.getRightPadding(),
|
|
4508
|
-
'--uui-dt-header-cell-resizing-marker-width': this.getResizingMarkerWidth(),
|
|
4509
|
-
};
|
|
4510
|
-
return (React__namespace.createElement(uuiComponents.DataTableCellContainer, { column: this.props.column, ref: (ref) => {
|
|
4511
|
-
props.ref(ref);
|
|
4512
|
-
dropdownProps?.ref?.(ref);
|
|
4513
|
-
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$v.root, `uui-size-${this.props.size || settings.dataTable.sizes.header.row}`, 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 && uuiCore.uuiMarkers.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: {
|
|
4514
|
-
role: 'columnheader',
|
|
4515
|
-
'aria-sort': this.props.sortDirection === 'asc' ? 'ascending' : this.props.sortDirection ? 'descending' : 'none',
|
|
4516
|
-
...props.eventHandlers,
|
|
4517
|
-
}, style: computeStyles },
|
|
4518
|
-
this.renderHeaderCheckbox(),
|
|
4519
|
-
this.renderFoldAllIcon(),
|
|
4520
|
-
this.getColumnCaption(props, dropdownProps),
|
|
4521
|
-
isResizable && this.renderResizingMarker(props)));
|
|
4522
|
-
};
|
|
4523
|
-
this.renderCellWithFilter = (props) => (React__namespace.createElement(ColumnHeaderDropdown, { isOpen: this.state.isDropdownOpen, isSortable: this.props.column.isSortable, renderTarget: (dropdownProps) => this.renderCellContent(props, dropdownProps), renderFilter: this.props.renderFilter, onSort: this.props.onSort, sortDirection: this.props.sortDirection, onOpenChange: (isDropdownOpen) => this.setState({ isDropdownOpen }), title: this.props.column.caption }));
|
|
4524
|
-
}
|
|
4525
|
-
render() {
|
|
4526
|
-
if (this.props.column.renderHeaderCell) {
|
|
4527
|
-
return this.props.column.renderHeaderCell(this.props);
|
|
4512
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(css$v.captionWrapper, css$v['align-' + props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
4513
|
+
React__namespace.default.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(props.column), cx: [css$v.cellTooltip, 'uui-dt-header-tooltip'], openDelay: 600, closeOnMouseLeave: "boundary" },
|
|
4514
|
+
React__namespace.default.createElement("div", { key: "text", id: captionId, className: captionCx }, props.column.caption)),
|
|
4515
|
+
props.column.isSortable && (!props.column.renderFilter || props.sortDirection) && (React__namespace.default.createElement(uuiComponents.ControlIcon, { key: "sort", cx: uuiCore.cx(css$v.icon, css$v.sortIcon, !props.sortDirection && css$v.sortInActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), icon: settings.dataTable.icons.header[props.sortDirection === 'desc' ? 'descSortIcon' : props.sortDirection === 'asc' ? 'ascSortIcon' : 'defaultSortIcon'], onKeyDown: !props.column.renderFilter ? handleSort : undefined, rawProps: { ...captionAriaProps, 'aria-hidden': !!props.column.renderFilter } })),
|
|
4516
|
+
props.isFilterActive && (React__namespace.default.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$v.icon, !props.sortDirection && css$v.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "neutral", icon: settings.dataTable.icons.header.filterIcon, rawProps: { 'aria-hidden': true } })),
|
|
4517
|
+
props.column.renderFilter && (React__namespace.default.createElement(uuiComponents.ControlIcon, { key: "dropdown", cx: uuiCore.cx(css$v.icon, css$v.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), icon: settings.dataTable.icons.header[isDropdownOpen ? 'openedDropdownIcon' : 'dropdownIcon'], onKeyDown: handleFilterOpen, rawProps: captionAriaProps }))));
|
|
4518
|
+
};
|
|
4519
|
+
const renderHeaderCheckbox = () => {
|
|
4520
|
+
if (props.selectAll && props.isFirstColumn) {
|
|
4521
|
+
return (React__namespace.default.createElement(Checkbox, { size: settings.dataTable.sizes.body.checkboxMap[props.size], rawProps: { 'aria-label': 'Select All' }, ...props.selectAll, cx: uuiCore.cx(css$v.checkbox, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCheckbox) }));
|
|
4522
|
+
}
|
|
4523
|
+
};
|
|
4524
|
+
const renderFoldAllIcon = () => {
|
|
4525
|
+
if (props.isFirstColumn && props.showFoldAll) {
|
|
4526
|
+
return (React__namespace.default.createElement(Tooltip, { content: props.areAllFolded
|
|
4527
|
+
? i18n.tables.columnHeader.expandAllTooltip
|
|
4528
|
+
: i18n.tables.columnHeader.collapseAllTooltip },
|
|
4529
|
+
React__namespace.default.createElement(uuiComponents.ControlIcon, { cx: uuiCore.cx(css$v.icon, css$v.foldAllIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFoldAllIcon), icon: settings.dataTable.icons.header[props.areAllFolded ? 'unfoldIcon' : 'foldIcon'], onClick: props.onFoldAll, rawProps: {
|
|
4530
|
+
'aria-label': props.areAllFolded ? 'Expand All' : 'Collapse All',
|
|
4531
|
+
'aria-expanded': !!props.areAllFolded,
|
|
4532
|
+
} })));
|
|
4528
4533
|
}
|
|
4529
|
-
|
|
4534
|
+
};
|
|
4535
|
+
const renderResizingMarker = (contentProps) => {
|
|
4536
|
+
return (React__namespace.default.createElement("div", { role: "separator", onMouseDown: contentProps.onResizeStart, className: uuiCore.cx(css$v.resizingMarker, uuiCore.uuiMarkers.draggable, uuiCore.uuiMarkers.clickable) }));
|
|
4537
|
+
};
|
|
4538
|
+
const getLeftPadding = () => {
|
|
4539
|
+
const { columnsGap, isFirstColumn } = props;
|
|
4540
|
+
if (columnsGap)
|
|
4541
|
+
return isFirstColumn ? `${columnsGap}px` : `${+columnsGap / 2}px`;
|
|
4542
|
+
return `var(--uui-dt-header-cell-padding${isFirstColumn ? '-edge' : ''})`;
|
|
4543
|
+
};
|
|
4544
|
+
const getRightPadding = () => {
|
|
4545
|
+
const { columnsGap, isLastColumn } = props;
|
|
4546
|
+
if (columnsGap)
|
|
4547
|
+
return isLastColumn ? `${columnsGap}px` : `${+columnsGap / 2}px`;
|
|
4548
|
+
return `var(--uui-dt-header-cell-padding${isLastColumn ? '-edge' : ''})`;
|
|
4549
|
+
};
|
|
4550
|
+
const getResizingMarkerWidth = () => {
|
|
4551
|
+
const { columnsGap } = props;
|
|
4552
|
+
return columnsGap ? `${+columnsGap / 2}px` : 'var(--uui-resize-marker-width)';
|
|
4553
|
+
};
|
|
4554
|
+
const renderCellContent = (contentProps, dropdownProps) => {
|
|
4555
|
+
const isResizable = props.column.allowResizing ?? props.allowColumnsResizing;
|
|
4556
|
+
const onClickEvent = !contentProps.isResizing && (!props.column.renderFilter ? contentProps.toggleSort : dropdownProps?.onClick);
|
|
4557
|
+
const computeStyles = {
|
|
4558
|
+
'--uui-dt-header-cell-icon-size': `${settings.dataTable.sizes.header.iconMap[props.size || settings.dataTable.sizes.header.row]}px`,
|
|
4559
|
+
'--uui-dt-header-cell-padding-start': getLeftPadding(),
|
|
4560
|
+
'--uui-dt-header-cell-padding-end': getRightPadding(),
|
|
4561
|
+
'--uui-dt-header-cell-resizing-marker-width': getResizingMarkerWidth(),
|
|
4562
|
+
};
|
|
4563
|
+
return (React__namespace.default.createElement(uuiComponents.DataTableCellContainer, { column: props.column, ref: (ref) => {
|
|
4564
|
+
contentProps.ref(ref);
|
|
4565
|
+
dropdownProps?.ref?.(ref);
|
|
4566
|
+
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (props.column.isSortable || props.isDropdown) && uuiCore.uuiMarkers.clickable, css$v.root, `uui-size-${props.size || settings.dataTable.sizes.header.row}`, props.isFirstColumn && 'uui-dt-header-first-column', props.isLastColumn && 'uui-dt-header-last-column', props.column.fix && css$v['pinned-' + props.column.fix], isResizable && uuiCore.uuiMarkers.resizable, contentProps.isDraggable && css$v.draggable, contentProps.isDragGhost && css$v.ghost, contentProps.isDraggedOut && css$v.isDraggedOut, contentProps.isDndInProgress && css$v['dnd-marker-' + contentProps.position]), onClick: onClickEvent, rawProps: {
|
|
4567
|
+
role: 'columnheader',
|
|
4568
|
+
'aria-sort': props.sortDirection === 'asc' ? 'ascending' : props.sortDirection ? 'descending' : 'none',
|
|
4569
|
+
...contentProps.eventHandlers,
|
|
4570
|
+
}, style: computeStyles },
|
|
4571
|
+
renderHeaderCheckbox(),
|
|
4572
|
+
renderFoldAllIcon(),
|
|
4573
|
+
getColumnCaption(contentProps, dropdownProps),
|
|
4574
|
+
isResizable && renderResizingMarker(contentProps)));
|
|
4575
|
+
};
|
|
4576
|
+
const renderCellWithFilter = (contentProps) => (React__namespace.default.createElement(ColumnHeaderDropdown, { isOpen: isDropdownOpen, isSortable: props.column.isSortable, renderTarget: (dropdownProps) => renderCellContent(contentProps, dropdownProps), renderFilter: props.renderFilter, onSort: props.onSort, sortDirection: props.sortDirection, onOpenChange: setIsDropdownOpen, title: props.column.caption }));
|
|
4577
|
+
if (props.column.renderHeaderCell) {
|
|
4578
|
+
return props.column.renderHeaderCell(props);
|
|
4530
4579
|
}
|
|
4580
|
+
return (React__namespace.default.createElement(uuiComponents.DataTableHeaderCell, { ...props, renderCellContent: props.column.renderFilter ? renderCellWithFilter : renderCellContent }));
|
|
4531
4581
|
}
|
|
4532
4582
|
|
|
4533
|
-
var css$u = {"root":"
|
|
4583
|
+
var css$u = {"root":"_2uQD0I","caption-wrapper":"DCW1wE","captionWrapper":"DCW1wE","align-center":"OOZAi0","alignCenter":"OOZAi0","caption":"RJC3aU","truncate":"Ik27Fy","upper-case":"h7yYCr","upperCase":"h7yYCr","group-cell-tooltip":"Gtpssv","groupCellTooltip":"Gtpssv","group-cell-tooltip-wrapper":"Mx2RxI","groupCellTooltipWrapper":"Mx2RxI","group-cell-tooltip-text":"Rd2QDK","groupCellTooltipText":"Rd2QDK","tooltip-caption":"lj18gK","tooltipCaption":"lj18gK","tooltip-info":"_8tibXu","tooltipInfo":"_8tibXu"};
|
|
4534
4584
|
|
|
4535
4585
|
class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
4536
4586
|
constructor() {
|
|
@@ -4570,7 +4620,7 @@ class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
|
4570
4620
|
}
|
|
4571
4621
|
}
|
|
4572
4622
|
|
|
4573
|
-
var css$t = {"root":"
|
|
4623
|
+
var css$t = {"root":"_5cSIAT"};
|
|
4574
4624
|
|
|
4575
4625
|
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$t.root, 'uui-dt-vars'], (mods) => {
|
|
4576
4626
|
return ({
|
|
@@ -4678,7 +4728,7 @@ const UUI_FILTERS_PANEL_ITEM_TOGGLER_SELECTION = 'uui-filters-panel-item-toggler
|
|
|
4678
4728
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER_POSTFIX = 'uui-filters-panel-item-toggler-postfix';
|
|
4679
4729
|
const UUI_FILTERS_PANEL_BODY_FOOTER = 'uui-filters-panel-item-footer';
|
|
4680
4730
|
|
|
4681
|
-
var css$s = {"body":"
|
|
4731
|
+
var css$s = {"body":"Oeq3L5","header":"eMTe8I","title":"q4z-t1","removeButton":"-mPrB9","with-search":"_5ZXgMR","withSearch":"_5ZXgMR"};
|
|
4682
4732
|
|
|
4683
4733
|
function FilterColumnBody(props) {
|
|
4684
4734
|
const [predicate, setPredicate] = React.useState(getDefaultPredicate(props.predicates, props.value));
|
|
@@ -4739,7 +4789,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4739
4789
|
return columns;
|
|
4740
4790
|
};
|
|
4741
4791
|
|
|
4742
|
-
var css$r = {"unpin-icon":"
|
|
4792
|
+
var css$r = {"unpin-icon":"BnhK--","unpinIcon":"BnhK--","pin-toggler-icon":"d2W-Dd","pinTogglerIcon":"d2W-Dd"};
|
|
4743
4793
|
|
|
4744
4794
|
function PinIconButton(props) {
|
|
4745
4795
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4790,7 +4840,7 @@ function getUnpinIcon(params) {
|
|
|
4790
4840
|
}
|
|
4791
4841
|
}
|
|
4792
4842
|
|
|
4793
|
-
var css$q = {"row-wrapper":"
|
|
4843
|
+
var css$q = {"row-wrapper":"c9H8oz","rowWrapper":"c9H8oz","pin-icon-button":"yaZ9Zn","pinIconButton":"yaZ9Zn","not-pinned":"hpuUvH","notPinned":"hpuUvH","checkbox":"iJa3dS","drag-handle":"QzxqNA","dragHandle":"QzxqNA","dnd-disabled":"PZUp2w","dndDisabled":"PZUp2w"};
|
|
4794
4844
|
|
|
4795
4845
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
4796
4846
|
const { column } = props;
|
|
@@ -4824,7 +4874,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4824
4874
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4825
4875
|
});
|
|
4826
4876
|
|
|
4827
|
-
var css$p = {"root":"
|
|
4877
|
+
var css$p = {"root":"I8e28f","main-panel":"w7Zcli","mainPanel":"w7Zcli","group":"-JPNp5","group-title":"L-MM9V","groupTitle":"L-MM9V","group-items":"uN10Jg","groupItems":"uN10Jg","no-data":"-l34C5","noData":"-l34C5","no-data-title":"C6xq4x","noDataTitle":"C6xq4x","no-data-sub-title":"mcfBS1","noDataSubTitle":"mcfBS1","h-divider":"_91tlWq","hDivider":"_91tlWq","search-area":"Mm3qTT","searchArea":"Mm3qTT","subgroup-accordion":"AALvgz","subgroupAccordion":"AALvgz","subgroup":"vsKUIZ","subgroup-title":"FiM4NP","subgroupTitle":"FiM4NP"};
|
|
4828
4878
|
|
|
4829
4879
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$p.group },
|
|
4830
4880
|
React__namespace.createElement(Text, { size: "none", cx: css$p.groupTitle }, title),
|
|
@@ -4927,7 +4977,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
4927
4977
|
return [children, rest];
|
|
4928
4978
|
};
|
|
4929
4979
|
|
|
4930
|
-
var css$o = {"listContainer":"
|
|
4980
|
+
var css$o = {"listContainer":"-gBDgo","header":"uPVX4r","group":"Nlg0US","stickyHeader":"P-aC-C"};
|
|
4931
4981
|
|
|
4932
4982
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
4933
4983
|
const rowRef = React.useRef(undefined);
|
|
@@ -4967,7 +5017,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
4967
5017
|
React__namespace.default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
4968
5018
|
}
|
|
4969
5019
|
|
|
4970
|
-
var css$n = {"root":"
|
|
5020
|
+
var css$n = {"root":"Rt6x9-","sticky-header":"qKF0-g","stickyHeader":"qKF0-g","no-results":"fSp-H-","noResults":"fSp-H-","icon":"EpGowY","title":"ImAAqn"};
|
|
4971
5021
|
|
|
4972
5022
|
function DataTable(props) {
|
|
4973
5023
|
const { uuiModals } = uuiCore.useUuiContext();
|
|
@@ -5009,6 +5059,7 @@ function DataTable(props) {
|
|
|
5009
5059
|
role: 'table',
|
|
5010
5060
|
'aria-colcount': columns.length,
|
|
5011
5061
|
'aria-rowcount': props.rowsCount,
|
|
5062
|
+
...props.rawProps,
|
|
5012
5063
|
};
|
|
5013
5064
|
return (React__namespace.createElement(uuiComponents.DataTableSelectionProvider, { onCopy: props.onCopy, rows: rows, columns: columns },
|
|
5014
5065
|
React__namespace.createElement(uuiComponents.DataTableFocusProvider, { dataTableFocusManager: props.dataTableFocusManager }, props.disableVirtualization === true
|
|
@@ -5016,7 +5067,7 @@ function DataTable(props) {
|
|
|
5016
5067
|
: (React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rowsCount: props.rowsCount, renderRows: renderTableBody, cx: classes, isLoading: props.isReloading, rowsSelector: "[role=row]", rawProps: rawProps })))));
|
|
5017
5068
|
}
|
|
5018
5069
|
|
|
5019
|
-
var css$m = {"root":"
|
|
5070
|
+
var css$m = {"root":"bEq-Qb","title-wrapper":"iUPJXI","titleWrapper":"iUPJXI","title":"h6zCAh","text-wrapper":"AAQtxj","textWrapper":"AAQtxj","selection":"v2oaFP","postfix":"_5Ql-LF","selected":"O-rh-V"};
|
|
5020
5071
|
|
|
5021
5072
|
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5022
5073
|
const togglerPickerOpened = (e) => {
|
|
@@ -5241,9 +5292,10 @@ function FilterRangeDatePickerBody(props) {
|
|
|
5241
5292
|
renderFooter()));
|
|
5242
5293
|
}
|
|
5243
5294
|
|
|
5244
|
-
var css$l = {"container":"
|
|
5295
|
+
var css$l = {"container":"xeqrCL"};
|
|
5245
5296
|
|
|
5246
|
-
function FilterNumericBody(props) {
|
|
5297
|
+
function FilterNumericBody({ min, max, step, ...props }) {
|
|
5298
|
+
const numericInputProps = { min, max, step };
|
|
5247
5299
|
const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
|
|
5248
5300
|
const isWrongRange = (from, to) => {
|
|
5249
5301
|
if (!to && to !== 0)
|
|
@@ -5292,15 +5344,15 @@ function FilterNumericBody(props) {
|
|
|
5292
5344
|
return (React__namespace.default.createElement("div", null,
|
|
5293
5345
|
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", columnGap: "12", borderBottom: true, cx: css$l.container },
|
|
5294
5346
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
5295
|
-
React__namespace.default.createElement(NumericInput, { size: settings.filtersPanel.sizes.default, value: value?.from ?? null, onValueChange: rangeValueHandler('from'), placeholder: "Min", formatOptions: { maximumFractionDigits: 2 } })),
|
|
5347
|
+
React__namespace.default.createElement(NumericInput, { size: settings.filtersPanel.sizes.default, value: value?.from ?? null, onValueChange: rangeValueHandler('from'), placeholder: "Min", formatOptions: { maximumFractionDigits: 2 }, ...numericInputProps })),
|
|
5296
5348
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
5297
|
-
React__namespace.default.createElement(NumericInput, { size: settings.filtersPanel.sizes.default, value: value?.to ?? null, onValueChange: rangeValueHandler('to'), placeholder: "Max", formatOptions: { maximumFractionDigits: 2 }, isInvalid: isWrongRange(value?.from, value?.to) }))),
|
|
5349
|
+
React__namespace.default.createElement(NumericInput, { size: settings.filtersPanel.sizes.default, value: value?.to ?? null, onValueChange: rangeValueHandler('to'), placeholder: "Max", formatOptions: { maximumFractionDigits: 2 }, isInvalid: isWrongRange(value?.from, value?.to), ...numericInputProps }))),
|
|
5298
5350
|
renderFooter()));
|
|
5299
5351
|
}
|
|
5300
5352
|
return (React__namespace.default.createElement("div", null,
|
|
5301
5353
|
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", borderBottom: true, cx: css$l.container },
|
|
5302
5354
|
React__namespace.default.createElement(FlexCell, { width: 130 },
|
|
5303
|
-
React__namespace.default.createElement(NumericInput, { size: settings.filtersPanel.sizes.default, value: typeof props.value === 'number' ? props.value : null, onValueChange: props.onValueChange, placeholder: "Enter a number", formatOptions: { maximumFractionDigits: 2 } }))),
|
|
5355
|
+
React__namespace.default.createElement(NumericInput, { size: settings.filtersPanel.sizes.default, value: typeof props.value === 'number' ? props.value : null, onValueChange: props.onValueChange, placeholder: "Enter a number", formatOptions: { maximumFractionDigits: 2 }, ...numericInputProps }))),
|
|
5304
5356
|
renderFooter()));
|
|
5305
5357
|
}
|
|
5306
5358
|
|
|
@@ -5379,9 +5431,9 @@ function FiltersToolbarItemImpl(props) {
|
|
|
5379
5431
|
props.predicates ? (React__namespace.default.createElement(FilterPredicatePanel, { predicates: props.predicates, predicate: predicate, type: props.type, onValueChange: props.onValueChange, value: props.value, setPredicate: setPredicate })) : (!hideTitle && (React__namespace.default.createElement("div", { className: css$s.title }, props.title))),
|
|
5380
5432
|
!props?.isAlwaysVisible && (React__namespace.default.createElement(LinkButton, { cx: css$s.removeButton, caption: i18n.filterToolbar.datePicker.removeCaption, onClick: removeOnclickHandler, size: settings.filtersPanel.sizes.pickerBodyLinkButton, icon: settings.filtersPanel.icons.pickerBodyRemoveIcon }))));
|
|
5381
5433
|
const renderBody = (dropdownProps) => {
|
|
5382
|
-
return isPickersType ? (React__namespace.default.createElement(PickerBodyMobileView, { ...dropdownProps, rawProps: {
|
|
5434
|
+
return isPickersType ? (React__namespace.default.createElement(PickerBodyMobileView, { ...dropdownProps, rawProps: { 'aria-modal': true }, cx: [css$s.body, UUI_FILTERS_PANEL_ITEM_BODY], title: props.title, width: settings.filtersPanel.sizes.pickerBodyMinWidth, onClose: () => isOpenChange(false) },
|
|
5383
5435
|
renderHeader(hideHeaderTitle),
|
|
5384
|
-
React__namespace.default.createElement(FilterItemBody, { ...props, ...dropdownProps, selectedPredicate: predicate, value: getValue(predicate, props.value), onValueChange: onValueChange }))) : (React__namespace.default.createElement(DropdownContainer, { cx: [css$s.body, UUI_FILTERS_PANEL_ITEM_BODY], ...dropdownProps, rawProps: {
|
|
5436
|
+
React__namespace.default.createElement(FilterItemBody, { ...props, ...dropdownProps, selectedPredicate: predicate, value: getValue(predicate, props.value), onValueChange: onValueChange }))) : (React__namespace.default.createElement(DropdownContainer, { cx: [css$s.body, UUI_FILTERS_PANEL_ITEM_BODY], ...dropdownProps, rawProps: { 'aria-modal': true } },
|
|
5385
5437
|
renderHeader(hideHeaderTitle),
|
|
5386
5438
|
React__namespace.default.createElement(FilterItemBody, { ...props, ...dropdownProps, selectedPredicate: predicate, value: getValue(predicate, props.value), onValueChange: onValueChange })));
|
|
5387
5439
|
};
|
|
@@ -5552,7 +5604,7 @@ function FiltersToolbarImpl(props) {
|
|
|
5552
5604
|
}
|
|
5553
5605
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
5554
5606
|
|
|
5555
|
-
var css$k = {"delete-button":"
|
|
5607
|
+
var css$k = {"delete-button":"frGXqP","deleteButton":"frGXqP","tab-button":"_5COuq7","tabButton":"_5COuq7","targetOpen":"zE5K4c"};
|
|
5556
5608
|
|
|
5557
5609
|
function PresetActionsDropdown(props) {
|
|
5558
5610
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -5628,7 +5680,7 @@ const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
|
5628
5680
|
const UUI_PRESETS_PANEL_INPUT = 'uui-presets-panel-input';
|
|
5629
5681
|
const UUI_PRESETS_PANEL_PRESET = 'uui-presets-panel-preset';
|
|
5630
5682
|
|
|
5631
|
-
var css$j = {"preset-input-cell":"
|
|
5683
|
+
var css$j = {"preset-input-cell":"CX--BX","presetInputCell":"CX--BX","preset-input":"Pc-ija","presetInput":"Pc-ija"};
|
|
5632
5684
|
|
|
5633
5685
|
function PresetInput(props) {
|
|
5634
5686
|
const [presetCaption, setPresetCaption] = React.useState(props.preset?.name || '');
|
|
@@ -5655,7 +5707,7 @@ function PresetInput(props) {
|
|
|
5655
5707
|
React__namespace.default.createElement(TextInput, { cx: css$j.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
5656
5708
|
}
|
|
5657
5709
|
|
|
5658
|
-
var css$i = {"preset":"
|
|
5710
|
+
var css$i = {"preset":"_7-CwRy","activePreset":"I-Hd6X"};
|
|
5659
5711
|
|
|
5660
5712
|
function Preset(props) {
|
|
5661
5713
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -5680,7 +5732,7 @@ function Preset(props) {
|
|
|
5680
5732
|
return (React__namespace.default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__namespace.default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__namespace.default.createElement(TabButton, { caption: props.preset.name, onClick: !isPresetActive && choosePresetHandler, cx: [css$i.preset, isPresetActive && css$i.activePreset, UUI_PRESETS_PANEL_PRESET], size: settings.presetsPanel.sizes.tabButton, withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: PresetActionsDropdownComponent, iconPosition: "right", isActive: isPresetActive }))));
|
|
5681
5733
|
}
|
|
5682
5734
|
|
|
5683
|
-
var css$h = {"divider":"
|
|
5735
|
+
var css$h = {"divider":"eB2z47","dropdownDeleteIcon":"_8t-mZX","presetsWrapper":"xc27q1","addPresetContainer":"wrmFxW","dropContainer":"iqVuNd"};
|
|
5684
5736
|
|
|
5685
5737
|
function PresetsPanel(props) {
|
|
5686
5738
|
const [isAddingPreset, setIsAddingPreset] = React.useState(false);
|
|
@@ -5729,9 +5781,9 @@ function PresetsPanel(props) {
|
|
|
5729
5781
|
React__namespace.default.createElement(uuiComponents.AdaptivePanel, { items: getPanelItems() }))));
|
|
5730
5782
|
}
|
|
5731
5783
|
|
|
5732
|
-
var css$g = {"root":"
|
|
5784
|
+
var css$g = {"root":"LJp6vz"};
|
|
5733
5785
|
|
|
5734
|
-
var css$f = {"root":"
|
|
5786
|
+
var css$f = {"root":"_6gLsRs","burger-content":"rkuFY6","burgerContent":"rkuFY6"};
|
|
5735
5787
|
|
|
5736
5788
|
var _path$3;
|
|
5737
5789
|
function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
|
|
@@ -5774,7 +5826,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5774
5826
|
};
|
|
5775
5827
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
5776
5828
|
|
|
5777
|
-
var css$e = {"root":"
|
|
5829
|
+
var css$e = {"root":"OZQczq","button-primary":"wx8yiu","buttonPrimary":"wx8yiu","button-secondary":"gy-75D","buttonSecondary":"gy-75D","hasIcon":"QjBofk","dropdown":"qLwDDX"};
|
|
5778
5830
|
|
|
5779
5831
|
function applyBurgerButtonMods(props) {
|
|
5780
5832
|
return [
|
|
@@ -5799,13 +5851,13 @@ const BurgerButton = /* @__PURE__ */React__namespace.default.forwardRef((props,
|
|
|
5799
5851
|
}, dropdownIcon: ForwardRef$2 }));
|
|
5800
5852
|
});
|
|
5801
5853
|
|
|
5802
|
-
var css$d = {"search-input":"
|
|
5854
|
+
var css$d = {"search-input":"gQLAWs","searchInput":"gQLAWs"};
|
|
5803
5855
|
|
|
5804
5856
|
function BurgerSearch(props) {
|
|
5805
5857
|
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$M, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$Q }));
|
|
5806
5858
|
}
|
|
5807
5859
|
|
|
5808
|
-
var css$c = {"root":"
|
|
5860
|
+
var css$c = {"root":"w-S8L1","group-header":"YGKwqA","groupHeader":"YGKwqA","group-name":"mbcwfp","groupName":"mbcwfp","line":"YjM1L5"};
|
|
5809
5861
|
|
|
5810
5862
|
function BurgerGroupHeader(props) {
|
|
5811
5863
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5813,7 +5865,7 @@ function BurgerGroupHeader(props) {
|
|
|
5813
5865
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5814
5866
|
}
|
|
5815
5867
|
|
|
5816
|
-
var css$b = {"root":"
|
|
5868
|
+
var css$b = {"root":"C1udgy","type-primary":"LMLYUT","typePrimary":"LMLYUT","type-secondary":"_1NwAKU","typeSecondary":"_1NwAKU"};
|
|
5817
5869
|
|
|
5818
5870
|
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5819
5871
|
const { type, ...clickableProps } = props;
|
|
@@ -5841,7 +5893,7 @@ const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5841
5893
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$P, flipY: props.isOpen }))));
|
|
5842
5894
|
});
|
|
5843
5895
|
|
|
5844
|
-
var css$a = {"dropdown-body":"
|
|
5896
|
+
var css$a = {"dropdown-body":"PB-SfU","dropdownBody":"PB-SfU"};
|
|
5845
5897
|
|
|
5846
5898
|
function MainMenuDropdown(props) {
|
|
5847
5899
|
const handleEscape = (e, onClose, isOpen) => {
|
|
@@ -5887,12 +5939,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5887
5939
|
};
|
|
5888
5940
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5889
5941
|
|
|
5890
|
-
var css$9 = {"global-menu-btn":"
|
|
5942
|
+
var css$9 = {"global-menu-btn":"A39zfo","globalMenuBtn":"A39zfo","global-menu-icon":"iMqHXL","globalMenuIcon":"iMqHXL"};
|
|
5891
5943
|
|
|
5892
5944
|
const GlobalMenu = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, id: "global_menu_toggle", className: cx__default.default(css$9.globalMenuBtn, props.cx), ...props.rawProps },
|
|
5893
5945
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5894
5946
|
|
|
5895
|
-
var css$8 = {"container":"
|
|
5947
|
+
var css$8 = {"container":"Vfxej-","open":"_6xCWfp","folding-arrow":"Vw00hX","foldingArrow":"Vw00hX"};
|
|
5896
5948
|
|
|
5897
5949
|
const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiCore.uuiMarkers.clickable, props.cx), onClick: props.onClick, ...props.rawProps },
|
|
5898
5950
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5900,15 +5952,15 @@ const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5900
5952
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5901
5953
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$P, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5902
5954
|
|
|
5903
|
-
var css$7 = {"search-input":"
|
|
5955
|
+
var css$7 = {"search-input":"_67jSLc","searchInput":"_67jSLc"};
|
|
5904
5956
|
|
|
5905
5957
|
const MainMenuSearch = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, { ...props, render: (iEditable) => (React__namespace.createElement(uuiComponents.TextInput, { iconPosition: "left", icon: ForwardRef$M, cancelIcon: props.value?.length > 0 && ForwardRef$Q, ...props, ...iEditable, ref: ref, cx: uuiCore.cx(css$7.searchInput, props.cx), ...props.rawProps })) })));
|
|
5906
5958
|
|
|
5907
|
-
var css$6 = {"container":"
|
|
5959
|
+
var css$6 = {"container":"CuJETf"};
|
|
5908
5960
|
|
|
5909
5961
|
const MainMenuIcon = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, { ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css$6.container), ...props })));
|
|
5910
5962
|
|
|
5911
|
-
var css$5 = {"root":"
|
|
5963
|
+
var css$5 = {"root":"b0P50j"};
|
|
5912
5964
|
|
|
5913
5965
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5914
5966
|
|
|
@@ -5966,7 +6018,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5966
6018
|
};
|
|
5967
6019
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
5968
6020
|
|
|
5969
|
-
var css$4 = {"root":"
|
|
6021
|
+
var css$4 = {"root":"s2hV5Q","drop-start":"B8kpCs","dropStart":"B8kpCs","drop-over":"MXcGrP","dropOver":"MXcGrP","link":"_1RYnw-","drop-area":"jz8iwH","dropArea":"jz8iwH","drop-caption":"_1IWZzH","dropCaption":"_1IWZzH","icon-blue":"rnKR0s","iconBlue":"rnKR0s"};
|
|
5970
6022
|
|
|
5971
6023
|
function DropSpot(props) {
|
|
5972
6024
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5984,7 +6036,7 @@ function DropSpot(props) {
|
|
|
5984
6036
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5985
6037
|
}
|
|
5986
6038
|
|
|
5987
|
-
var css$3 = {"root":"
|
|
6039
|
+
var css$3 = {"root":"nksM9G"};
|
|
5988
6040
|
|
|
5989
6041
|
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5990
6042
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5995,7 +6047,7 @@ const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref
|
|
|
5995
6047
|
React__namespace.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
5996
6048
|
});
|
|
5997
6049
|
|
|
5998
|
-
var css$2 = {"root":"
|
|
6050
|
+
var css$2 = {"root":"vLjTKy","file-name":"_6HkxLE","fileName":"_6HkxLE","default-color":"_2IV72d","defaultColor":"_2IV72d","doc-color":"jEY6Ye","docColor":"jEY6Ye","xls-color":"PNefNe","xlsColor":"PNefNe","pdf-color":"_-1OcsO","pdfColor":"_-1OcsO","movie-color":"CFmzjL","movieColor":"CFmzjL","img-color":"s7NiFu","imgColor":"s7NiFu","mov-color":"ZfaPOA","movColor":"ZfaPOA","error-block":"YS16lt","errorBlock":"YS16lt","icons-block":"sJWOvu","iconsBlock":"sJWOvu"};
|
|
5999
6051
|
|
|
6000
6052
|
const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
6001
6053
|
const [isLoadingShow, setIsLoadingShow] = React__namespace.useState(true);
|
|
@@ -6115,7 +6167,7 @@ const getErrorPageConfig = () => ({
|
|
|
6115
6167
|
},
|
|
6116
6168
|
});
|
|
6117
6169
|
|
|
6118
|
-
var css$1 = {"container":"
|
|
6170
|
+
var css$1 = {"container":"p7VA34"};
|
|
6119
6171
|
|
|
6120
6172
|
const ErrorPage = (props) => {
|
|
6121
6173
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -6127,7 +6179,7 @@ const ErrorPage = (props) => {
|
|
|
6127
6179
|
props?.supportLink && React__namespace.default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
6128
6180
|
};
|
|
6129
6181
|
|
|
6130
|
-
var css = {"recovery-spinner":"
|
|
6182
|
+
var css = {"recovery-spinner":"qpWq9b","recoverySpinner":"qpWq9b","recovery-message":"_8tB95V","recoveryMessage":"_8tB95V","modal-blocker":"DWNCZ1","modalBlocker":"DWNCZ1","modalFadeIn":"-rCBak"};
|
|
6131
6183
|
|
|
6132
6184
|
function ErrorHandler(props) {
|
|
6133
6185
|
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|