@oliasoft-open-source/react-ui-library 4.1.11 → 4.2.0-beta-2
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/dist/assets/{index-9e4179c3.css → index-0d78a198.css} +3 -0
- package/dist/assets/{index-cfa07a3f.js → index-26f804a8.js} +180 -175
- package/dist/global.css +3 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.html +1 -1
- package/dist/index.js +822 -400
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/Color-6VNJS4EI-4c266928.js +1 -0
- package/dist/storybook/assets/DocsRenderer-NNNQARDV-4522c04a.js +1 -0
- package/dist/storybook/assets/WithTooltip-4HIR6TLV-3f797c81.js +1 -0
- package/dist/storybook/assets/{accordion-1b587708.js → accordion-168fa7c5.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-c0594576.js → accordion.stories-0f8af16e.js} +1 -1
- package/dist/storybook/assets/{actions-83a2a04e.js → actions-2d4e1c8e.js} +1 -1
- package/dist/storybook/assets/{actions.stories-a38cd26e.js → actions.stories-81a7cb7a.js} +1 -1
- package/dist/storybook/assets/{afe.stories-7e91eae9.js → afe.stories-afb9be07.js} +2 -2
- package/dist/storybook/assets/{badge.stories-1cbf35f9.js → badge.stories-5ce7957f.js} +1 -1
- package/dist/storybook/assets/{blowout.stories-af7f9432.js → blowout.stories-ee7f932b.js} +1 -1
- package/dist/storybook/assets/{button-050c998a.js → button-74c97e4a.js} +1 -1
- package/dist/storybook/assets/{button-group-0176fca3.js → button-group-fa895d0c.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-7659a587.js → button-group.stories-22f072b7.js} +1 -1
- package/dist/storybook/assets/{button.stories-5f73ddef.js → button.stories-9b954335.js} +1 -1
- package/dist/storybook/assets/buttons-and-links-3ca65a4b.js +14 -0
- package/dist/storybook/assets/{card.stories-0437a4e2.js → card.stories-537a1772.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-825f83a2.js → casing-loads.stories-cfbab702.js} +1 -1
- package/dist/storybook/assets/{cell.stories-f38059bb.js → cell.stories-524a7418.js} +1 -1
- package/dist/storybook/assets/{check-box-b38490e5.js → check-box-e21258d5.js} +1 -1
- package/dist/storybook/assets/{check-box.stories-9bf1c260.js → check-box.stories-5f7d06e0.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-666e47c8.js → chunk-HLWAVYOI-6bd5aff8.js} +1 -1
- package/dist/storybook/assets/color-6f498d70.js +25 -0
- package/dist/storybook/assets/{column.stories-d5ca2c42.js → column.stories-ae7588c5.js} +1 -1
- package/dist/storybook/assets/{dialog-c036ff34.js → dialog-cd58dd09.js} +1 -1
- package/dist/storybook/assets/{drawer-308b0a03.js → drawer-7f450988.js} +1 -1
- package/dist/storybook/assets/{drawer.stories-d76c0577.js → drawer.stories-39625e91.js} +2 -2
- package/dist/storybook/assets/{empty.stories-30fdd793.js → empty.stories-e0e3ac78.js} +1 -1
- package/dist/storybook/assets/{field-248df38c.js → field-a094cd72.js} +1 -1
- package/dist/storybook/assets/{field.stories-60d1a82f.js → field.stories-f1318053.js} +1 -1
- package/dist/storybook/assets/{file-input.stories-a7e96582.js → file-input.stories-1c6ce0ea.js} +1 -1
- package/dist/storybook/assets/{flex.stories-6a278b40.js → flex.stories-09e9c602.js} +1 -1
- package/dist/storybook/assets/footer.stories-57f07ea2.js +3 -0
- package/dist/storybook/assets/form.stories-45c0cd59.js +49 -0
- package/dist/storybook/assets/formation.stories-5eeaa826.js +74 -0
- package/dist/storybook/assets/{formatter-SWP5E3XI-9c4ced01.js → formatter-SWP5E3XI-cf89c041.js} +2 -2
- package/dist/storybook/assets/{heading-39e599c8.js → heading-d29eb744.js} +1 -1
- package/dist/storybook/assets/{heading.stories-6ff7f5ed.js → heading.stories-9689bddc.js} +1 -1
- package/dist/storybook/assets/{help-icon-c0abd380.js → help-icon-d4189b1b.js} +1 -1
- package/dist/storybook/assets/{help-icon.stories-a30b7058.js → help-icon.stories-15d1620d.js} +1 -1
- package/dist/storybook/assets/icon-e9cbb4d7.js +8 -0
- package/dist/storybook/assets/{icon.stories-466d158f.js → icon.stories-8dae69e1.js} +1 -1
- package/dist/storybook/assets/iframe-4241ee87.js +1 -0
- package/dist/storybook/assets/{index-321d8456.js → index-24b2d8c6.js} +4 -4
- package/dist/storybook/assets/{number-input-7cb3ea4d.js → index-57d7693e.js} +9 -9
- package/dist/storybook/assets/{index.es-37e2ce0d.js → index.es-85cc7dfc.js} +4 -4
- package/dist/storybook/assets/inheritsLoose-d4851ab8.js +1 -0
- package/dist/storybook/assets/{input-05f21b51.js → input-d68625a5.js} +1 -1
- package/dist/storybook/assets/{input-group.stories-8bfc754d.js → input-group.stories-a2a3400e.js} +2 -2
- package/dist/storybook/assets/{input-validation-6c75c726.js → input-validation-ca50f656.js} +2 -2
- package/dist/storybook/assets/{input.stories-bf58ba7c.js → input.stories-164d93ab.js} +1 -1
- package/dist/storybook/assets/{inputs-d5e439a7.js → inputs-48a26c2d.js} +1 -1
- package/dist/storybook/assets/{label-e6d15b59.js → label-13d490a3.js} +1 -1
- package/dist/storybook/assets/{label.stories-1c98204a.js → label.stories-427ba162.js} +1 -1
- package/dist/storybook/assets/layout-forms-ee9889f6.js +16 -0
- package/dist/storybook/assets/{layout-general-7f5a030f.js → layout-general-2d6bd6c2.js} +2 -2
- package/dist/storybook/assets/{list-bc0d9ad9.js → list-0dc3df85.js} +1 -1
- package/dist/storybook/assets/{list-heading-2215213f.js → list-heading-88cc8a9b.js} +1 -1
- package/dist/storybook/assets/{list.stories-c8b4f325.js → list.stories-5715452e.js} +2 -2
- package/dist/storybook/assets/{list.stories-data-ba40864f.js → list.stories-data-94f7c623.js} +1 -1
- package/dist/storybook/assets/{loader.stories-4e8e8df7.js → loader.stories-6107832a.js} +1 -1
- package/dist/storybook/assets/{menu.stories-8d724757.js → menu.stories-927adf3d.js} +1 -1
- package/dist/storybook/assets/{message-0b5ae3c5.js → message-7e627e60.js} +1 -1
- package/dist/storybook/assets/{message.stories-9b9c40c4.js → message.stories-f41a0c22.js} +1 -1
- package/dist/storybook/assets/{modal.stories-0cc6a0bb.js → modal.stories-0e068cc1.js} +2 -2
- package/dist/storybook/assets/number-input-7d49b0b3.js +1 -0
- package/dist/storybook/assets/{number-input.stories-cc2fcc11.js → number-input.stories-02528124.js} +1 -1
- package/dist/storybook/assets/{option-dropdown.stories-4c391727.js → option-dropdown.stories-5030bdb8.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-51ac7658.js → padding-and-spacing-c11842e2.js} +2 -2
- package/dist/storybook/assets/{page.stories-b69a6953.js → page.stories-7cb68fed.js} +1 -1
- package/dist/storybook/assets/{pagination-fec74b7e.js → pagination-8aade846.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-72183c57.js → pagination.stories-423b4938.js} +2 -2
- package/dist/storybook/assets/{pop-confirm.stories-3016f322.js → pop-confirm.stories-81b30901.js} +1 -1
- package/dist/storybook/assets/{popover-c1234faa.js → popover-06e375a5.js} +1 -1
- package/dist/storybook/assets/popover.stories-f651a81c.js +1 -0
- package/dist/storybook/assets/preview-ea6061e8.js +1 -0
- package/dist/storybook/assets/{preview-2f05745a.js → preview-f4241840.js} +3 -3
- package/dist/storybook/assets/projects.stories-3884a80c.js +47 -0
- package/dist/storybook/assets/{radio-button-d69b72e4.js → radio-button-135a9615.js} +1 -1
- package/dist/storybook/assets/{radio-button.stories-6ff0dc9b.js → radio-button.stories-0e8377ea.js} +1 -1
- package/dist/storybook/assets/{reservoirs.stories-ae41be59.js → reservoirs.stories-6b14a37f.js} +2 -2
- package/dist/storybook/assets/{rich-text-input.stories-986f747c.js → rich-text-input.stories-661f34f1.js} +3 -3
- package/dist/storybook/assets/{row.stories-d97c751c.js → row.stories-d5b6b4a6.js} +1 -1
- package/dist/storybook/assets/select-205cd538.js +1 -0
- package/dist/storybook/assets/{select.stories-f81a3e79.js → select.stories-60f055e6.js} +60 -25
- package/dist/storybook/assets/{side-bar-10cceacd.js → side-bar-88e8cf41.js} +1 -1
- package/dist/storybook/assets/{side-bar.stories-02211e0d.js → side-bar.stories-2c06f8a6.js} +1 -1
- package/dist/storybook/assets/{site.stories-ae79a20c.js → site.stories-dee8ce1c.js} +2 -2
- package/dist/storybook/assets/slider-160e2152.js +7 -0
- package/dist/storybook/assets/{slider.stories-a55df653.js → slider.stories-79ab0e97.js} +2 -2
- package/dist/storybook/assets/{spacer.stories-a2798d47.js → spacer.stories-38071af8.js} +1 -1
- package/dist/storybook/assets/syntaxhighlighter-NMPM6SWI-2e6bd966.js +1 -0
- package/dist/storybook/assets/{table-e1565225.js → table-da6f6045.js} +1 -1
- package/dist/storybook/assets/{table.stories-3f11111c.js → table.stories-67a3023a.js} +1 -1
- package/dist/storybook/assets/{table.stories-data-ddbcf8c3.js → table.stories-data-8a836b92.js} +1 -1
- package/dist/storybook/assets/{textarea-598f9fff.js → textarea-d48efea2.js} +1 -1
- package/dist/storybook/assets/{textarea.stories-3902f4aa.js → textarea.stories-89c8afd7.js} +1 -1
- package/dist/storybook/assets/{title.stories-c8601d39.js → title.stories-5b4a226c.js} +1 -1
- package/dist/storybook/assets/{toaster-f096ba56.js → toaster-541ce85b.js} +1 -1
- package/dist/storybook/assets/{toaster.stories-66162195.js → toaster.stories-5e4d95b1.js} +1 -1
- package/dist/storybook/assets/{toggle-6f4d5797.js → toggle-bb34b2a2.js} +1 -1
- package/dist/storybook/assets/{toggle.stories-a289f544.js → toggle.stories-b771ed81.js} +1 -1
- package/dist/storybook/assets/{tooltip-856042a7.js → tooltip-23e84186.js} +1 -1
- package/dist/storybook/assets/{tooltip.stories-666868d0.js → tooltip.stories-e8ba5fff.js} +1 -1
- package/dist/storybook/assets/{tooltip.test-case.stories-4c1ea273.js → tooltip.test-case.stories-9817078b.js} +1 -1
- package/dist/storybook/assets/{top-bar-38689fe2.js → top-bar-a84b9365.js} +1 -1
- package/dist/storybook/assets/{top-bar.stories-3d9a6da1.js → top-bar.stories-e93330f0.js} +1 -1
- package/dist/storybook/assets/{top-bar.testcase.stories-dc051455.js → top-bar.testcase.stories-3a824a14.js} +1 -1
- package/dist/storybook/assets/{tree.stories-729aebd7.js → tree.stories-590bdd69.js} +1 -1
- package/dist/storybook/assets/unit-input.stories-c251e2c8.css +1 -0
- package/dist/storybook/assets/unit-input.stories-ca28e74b.js +257 -0
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/storybook/stories.json +1 -1
- package/package.json +1 -1
- package/dist/404.html +0 -1
- package/dist/storybook/assets/Color-6VNJS4EI-4e3c6900.js +0 -1
- package/dist/storybook/assets/DocsRenderer-NNNQARDV-78819900.js +0 -1
- package/dist/storybook/assets/WithTooltip-4HIR6TLV-051215cb.js +0 -1
- package/dist/storybook/assets/buttons-and-links-84e3426b.js +0 -14
- package/dist/storybook/assets/color-8a098cdf.js +0 -25
- package/dist/storybook/assets/extends-98964cd2.js +0 -1
- package/dist/storybook/assets/footer.stories-5b3c1620.js +0 -3
- package/dist/storybook/assets/form.stories-41ecd579.js +0 -49
- package/dist/storybook/assets/formation.stories-30bc36d4.js +0 -74
- package/dist/storybook/assets/icon-8acf9925.js +0 -8
- package/dist/storybook/assets/iframe-c82204d3.js +0 -1
- package/dist/storybook/assets/inheritsLoose-c82a83d4.js +0 -1
- package/dist/storybook/assets/layout-forms-9a0c6c34.js +0 -16
- package/dist/storybook/assets/popover.stories-3e4a0b6f.js +0 -1
- package/dist/storybook/assets/preview-64f6671a.js +0 -1
- package/dist/storybook/assets/projects.stories-104a0c19.js +0 -47
- package/dist/storybook/assets/select-1a8fd9be.js +0 -1
- package/dist/storybook/assets/slider-5d5442fe.js +0 -7
- package/dist/storybook/assets/syntaxhighlighter-NMPM6SWI-7352c231.js +0 -1
package/dist/index.js
CHANGED
|
@@ -10,8 +10,9 @@ import React__default, { useContext, isValidElement, useState, useRef, useEffect
|
|
|
10
10
|
import * as PropTypes from "prop-types";
|
|
11
11
|
import PropTypes__default from "prop-types";
|
|
12
12
|
import ReactDOM, { createPortal, unstable_batchedUpdates, render } from "react-dom";
|
|
13
|
-
import _$1, { set, get as get$2, isString as isString$3, isNumber as isNumber$1, isBoolean as isBoolean$2, isFunction as isFunction$3, isEmpty, isArray as isArray$1, toNumber, debounce as debounce$2 } from "lodash";
|
|
14
|
-
import { validateNumber, cleanNumStr } from "@oliasoft-open-source/units";
|
|
13
|
+
import _$1, { set, get as get$2, isString as isString$3, isNumber as isNumber$1, isBoolean as isBoolean$2, isFunction as isFunction$3, isEmpty, isArray as isArray$1, toNumber, debounce as debounce$2, isObject as isObject$5, isObjectLike, has as has$1 } from "lodash";
|
|
14
|
+
import { validateNumber, cleanNumStr, unitFromQuantity, isValueWithUnit, convertSamePrecision, withUnit, getValue as getValue$1, split as split$1, getUnit, checkAndCleanDecimalComma, label as label$b, altUnitsList } from "@oliasoft-open-source/units";
|
|
15
|
+
import { isValueWithUnit as isValueWithUnit$1 } from "@oliasoft-open-source/units/dist/units";
|
|
15
16
|
const global$2 = "";
|
|
16
17
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
17
18
|
function getDefaultExportFromCjs(x2) {
|
|
@@ -174,7 +175,7 @@ var InputType = /* @__PURE__ */ ((InputType2) => {
|
|
|
174
175
|
})(InputType || {});
|
|
175
176
|
const chevron = "_chevron_1kw4m_1";
|
|
176
177
|
const expanded$2 = "_expanded_1kw4m_9";
|
|
177
|
-
const styles$
|
|
178
|
+
const styles$U = {
|
|
178
179
|
chevron,
|
|
179
180
|
expanded: expanded$2
|
|
180
181
|
};
|
|
@@ -880,7 +881,7 @@ const wrapper$5 = "_wrapper_18jt2_1";
|
|
|
880
881
|
const customSvg = "_customSvg_18jt2_8";
|
|
881
882
|
const customPng = "_customPng_18jt2_11";
|
|
882
883
|
const clickable$2 = "_clickable_18jt2_16";
|
|
883
|
-
const styles$
|
|
884
|
+
const styles$T = {
|
|
884
885
|
wrapper: wrapper$5,
|
|
885
886
|
customSvg,
|
|
886
887
|
customPng,
|
|
@@ -1563,8 +1564,8 @@ const Icon = ({
|
|
|
1563
1564
|
"div",
|
|
1564
1565
|
{
|
|
1565
1566
|
className: cx$2(
|
|
1566
|
-
styles$
|
|
1567
|
-
(clickable2 || onClick) && !disabledContext ? styles$
|
|
1567
|
+
styles$T.wrapper,
|
|
1568
|
+
(clickable2 || onClick) && !disabledContext ? styles$T.clickable : ""
|
|
1568
1569
|
),
|
|
1569
1570
|
style: style2,
|
|
1570
1571
|
onClick: (evt) => onClick && !disabledContext ? onClick(evt) : void 0,
|
|
@@ -1572,7 +1573,7 @@ const Icon = ({
|
|
|
1572
1573
|
children: isValidElement(icon2) ? icon2 : typeof icon2 === "string" && (icon2.includes(".svg") || icon2.includes("image/svg")) ? /* @__PURE__ */ jsx(
|
|
1573
1574
|
ReactSVG,
|
|
1574
1575
|
{
|
|
1575
|
-
className: styles$
|
|
1576
|
+
className: styles$T.customSvg,
|
|
1576
1577
|
beforeInjection: (svg) => {
|
|
1577
1578
|
if (size2) {
|
|
1578
1579
|
svg.setAttribute("width", String(size2));
|
|
@@ -1581,12 +1582,12 @@ const Icon = ({
|
|
|
1581
1582
|
},
|
|
1582
1583
|
src: icon2
|
|
1583
1584
|
}
|
|
1584
|
-
) : typeof icon2 === "string" && (icon2.includes(".png") || icon2.includes("image/png")) ? /* @__PURE__ */ jsx("img", { alt: "icon", className: styles$
|
|
1585
|
+
) : typeof icon2 === "string" && (icon2.includes(".png") || icon2.includes("image/png")) ? /* @__PURE__ */ jsx("img", { alt: "icon", className: styles$T.customPng, src: icon2 }) : typeof icon2 === "string" ? /* @__PURE__ */ jsx(NamedIcon, { icon: icon2 }) : null
|
|
1585
1586
|
}
|
|
1586
1587
|
);
|
|
1587
1588
|
};
|
|
1588
1589
|
const Chevron = ({ expanded: expanded2 }) => {
|
|
1589
|
-
return /* @__PURE__ */ jsx("span", { className: cx$2(styles$
|
|
1590
|
+
return /* @__PURE__ */ jsx("span", { className: cx$2(styles$U.chevron, expanded2 ? styles$U.expanded : ""), children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_RIGHT }) });
|
|
1590
1591
|
};
|
|
1591
1592
|
const accordion = "_accordion_15p8j_1";
|
|
1592
1593
|
const accordionHeader = "_accordionHeader_15p8j_5";
|
|
@@ -1597,7 +1598,7 @@ const accordionContent = "_accordionContent_15p8j_18";
|
|
|
1597
1598
|
const expanded$1 = "_expanded_15p8j_36";
|
|
1598
1599
|
const padding$3 = "_padding_15p8j_44";
|
|
1599
1600
|
const squareBottom = "_squareBottom_15p8j_47";
|
|
1600
|
-
const styles$
|
|
1601
|
+
const styles$S = {
|
|
1601
1602
|
accordion,
|
|
1602
1603
|
accordionHeader,
|
|
1603
1604
|
heading: heading$6,
|
|
@@ -1622,21 +1623,21 @@ const AccordionBase = ({
|
|
|
1622
1623
|
"div",
|
|
1623
1624
|
{
|
|
1624
1625
|
className: cx$2(
|
|
1625
|
-
styles$
|
|
1626
|
-
bordered2 ? styles$
|
|
1627
|
-
expanded2 ? styles$
|
|
1628
|
-
squareBottom2 ? styles$
|
|
1626
|
+
styles$S.accordion,
|
|
1627
|
+
bordered2 ? styles$S.bordered : "",
|
|
1628
|
+
expanded2 ? styles$S.expanded : "",
|
|
1629
|
+
squareBottom2 ? styles$S.squareBottom : ""
|
|
1629
1630
|
),
|
|
1630
1631
|
children: [
|
|
1631
1632
|
/* @__PURE__ */ jsxs(
|
|
1632
1633
|
"div",
|
|
1633
1634
|
{
|
|
1634
|
-
className: cx$2(styles$
|
|
1635
|
+
className: cx$2(styles$S.accordionHeader, onClick ? styles$S.clickable : ""),
|
|
1635
1636
|
onClick,
|
|
1636
1637
|
"data-testid": testId,
|
|
1637
1638
|
children: [
|
|
1638
1639
|
/* @__PURE__ */ jsx(Chevron, { expanded: expanded2 }),
|
|
1639
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
1640
|
+
/* @__PURE__ */ jsx("div", { className: styles$S.heading, children: heading2 })
|
|
1640
1641
|
]
|
|
1641
1642
|
}
|
|
1642
1643
|
),
|
|
@@ -1644,8 +1645,8 @@ const AccordionBase = ({
|
|
|
1644
1645
|
"div",
|
|
1645
1646
|
{
|
|
1646
1647
|
className: cx$2(
|
|
1647
|
-
styles$
|
|
1648
|
-
bordered2 && padding2 ? styles$
|
|
1648
|
+
styles$S.accordionContent,
|
|
1649
|
+
bordered2 && padding2 ? styles$S.padding : ""
|
|
1649
1650
|
),
|
|
1650
1651
|
children
|
|
1651
1652
|
}
|
|
@@ -1723,7 +1724,7 @@ const disabled$a = "_disabled_1ybyr_67";
|
|
|
1723
1724
|
const noMargin$2 = "_noMargin_1ybyr_81";
|
|
1724
1725
|
const isInTable$4 = "_isInTable_1ybyr_84";
|
|
1725
1726
|
const helpIconEnabled$2 = "_helpIconEnabled_1ybyr_87";
|
|
1726
|
-
const styles$
|
|
1727
|
+
const styles$R = {
|
|
1727
1728
|
checkbox,
|
|
1728
1729
|
noLabel,
|
|
1729
1730
|
small: small$d,
|
|
@@ -3748,7 +3749,7 @@ function useHover(_temp) {
|
|
|
3748
3749
|
const tooltip = "_tooltip_wli9z_1";
|
|
3749
3750
|
const error$9 = "_error_wli9z_15";
|
|
3750
3751
|
const warning$c = "_warning_wli9z_19";
|
|
3751
|
-
const styles$
|
|
3752
|
+
const styles$Q = {
|
|
3752
3753
|
tooltip,
|
|
3753
3754
|
error: error$9,
|
|
3754
3755
|
warning: warning$c
|
|
@@ -3779,8 +3780,8 @@ const TooltipLayer = ({
|
|
|
3779
3780
|
"div",
|
|
3780
3781
|
{
|
|
3781
3782
|
className: cx$2(
|
|
3782
|
-
styles$
|
|
3783
|
-
error2 ? styles$
|
|
3783
|
+
styles$Q.tooltip,
|
|
3784
|
+
error2 ? styles$Q.error : warning2 ? styles$Q.warning : ""
|
|
3784
3785
|
),
|
|
3785
3786
|
...layerProps,
|
|
3786
3787
|
children: [
|
|
@@ -3849,7 +3850,7 @@ const Tooltip = ({
|
|
|
3849
3850
|
const helpIcon = "_helpIcon_hd0z2_1";
|
|
3850
3851
|
const active$9 = "_active_hd0z2_9";
|
|
3851
3852
|
const clickable = "_clickable_hd0z2_12";
|
|
3852
|
-
const styles$
|
|
3853
|
+
const styles$P = {
|
|
3853
3854
|
helpIcon,
|
|
3854
3855
|
active: active$9,
|
|
3855
3856
|
clickable
|
|
@@ -3880,9 +3881,9 @@ const HelpIcon = ({
|
|
|
3880
3881
|
"div",
|
|
3881
3882
|
{
|
|
3882
3883
|
className: cx$2(
|
|
3883
|
-
styles$
|
|
3884
|
-
onClick ? styles$
|
|
3885
|
-
active2 ? styles$
|
|
3884
|
+
styles$P.helpIcon,
|
|
3885
|
+
onClick ? styles$P.clickable : "",
|
|
3886
|
+
active2 ? styles$P.active : ""
|
|
3886
3887
|
),
|
|
3887
3888
|
onClick: onClickHelpIcon,
|
|
3888
3889
|
"data-testid": testId,
|
|
@@ -3914,12 +3915,12 @@ const CheckBox = ({
|
|
|
3914
3915
|
"div",
|
|
3915
3916
|
{
|
|
3916
3917
|
className: cx$2(
|
|
3917
|
-
styles$
|
|
3918
|
-
noMargin2 && styles$
|
|
3919
|
-
isInTable2 && styles$
|
|
3920
|
-
isDisabled && styles$
|
|
3921
|
-
small2 && styles$
|
|
3922
|
-
!label2 && styles$
|
|
3918
|
+
styles$R.checkbox,
|
|
3919
|
+
noMargin2 && styles$R.noMargin,
|
|
3920
|
+
isInTable2 && styles$R.isInTable,
|
|
3921
|
+
isDisabled && styles$R.disabled,
|
|
3922
|
+
small2 && styles$R.small,
|
|
3923
|
+
!label2 && styles$R.noLabel
|
|
3923
3924
|
),
|
|
3924
3925
|
"data-ix": dataix,
|
|
3925
3926
|
onClick: (evt) => {
|
|
@@ -3947,10 +3948,10 @@ const CheckBox = ({
|
|
|
3947
3948
|
key2
|
|
3948
3949
|
),
|
|
3949
3950
|
/* @__PURE__ */ jsxs("label", { htmlFor: name2, children: [
|
|
3950
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
3951
|
+
/* @__PURE__ */ jsx("span", { className: styles$R.checkmark, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHECK }) }),
|
|
3951
3952
|
label2
|
|
3952
3953
|
] }),
|
|
3953
|
-
showHelp && /* @__PURE__ */ jsx("div", { className: styles$
|
|
3954
|
+
showHelp && /* @__PURE__ */ jsx("div", { className: styles$R.helpIconEnabled, onClick: onClickHelp, children: /* @__PURE__ */ jsx(HelpIcon, { text: helpText }) })
|
|
3954
3955
|
]
|
|
3955
3956
|
}
|
|
3956
3957
|
);
|
|
@@ -3959,7 +3960,7 @@ const bordered$3 = "_bordered_1cgsf_1";
|
|
|
3959
3960
|
const checkboxWrapper = "_checkboxWrapper_1cgsf_7";
|
|
3960
3961
|
const padding$2 = "_padding_1cgsf_13";
|
|
3961
3962
|
const contentWrapper = "_contentWrapper_1cgsf_16";
|
|
3962
|
-
const styles$
|
|
3963
|
+
const styles$O = {
|
|
3963
3964
|
bordered: bordered$3,
|
|
3964
3965
|
checkboxWrapper,
|
|
3965
3966
|
padding: padding$2,
|
|
@@ -4001,7 +4002,7 @@ const AccordionWithDefaultToggle = ({
|
|
|
4001
4002
|
defaultEnabled
|
|
4002
4003
|
});
|
|
4003
4004
|
const content2 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
4004
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
4005
|
+
/* @__PURE__ */ jsx("div", { className: styles$O.checkboxWrapper, children: /* @__PURE__ */ jsx(
|
|
4005
4006
|
CheckBox,
|
|
4006
4007
|
{
|
|
4007
4008
|
label: toggleLabel,
|
|
@@ -4012,7 +4013,7 @@ const AccordionWithDefaultToggle = ({
|
|
|
4012
4013
|
checked: state.defaultEnabled
|
|
4013
4014
|
}
|
|
4014
4015
|
) }),
|
|
4015
|
-
state.accordionExpanded && /* @__PURE__ */ jsx("div", { className: styles$
|
|
4016
|
+
state.accordionExpanded && /* @__PURE__ */ jsx("div", { className: styles$O.contentWrapper, children })
|
|
4016
4017
|
] });
|
|
4017
4018
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
4018
4019
|
/* @__PURE__ */ jsx(
|
|
@@ -4025,7 +4026,7 @@ const AccordionWithDefaultToggle = ({
|
|
|
4025
4026
|
onClick: () => dispatch({ type: AccordionActionType.TOGGLE_ACCORDION })
|
|
4026
4027
|
}
|
|
4027
4028
|
),
|
|
4028
|
-
/* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
4029
|
+
/* @__PURE__ */ jsx("div", { className: cx$2(styles$O.bordered, padding2 ? styles$O.padding : ""), children: content2 })
|
|
4029
4030
|
] });
|
|
4030
4031
|
};
|
|
4031
4032
|
const inputInTable$b = "_inputInTable_1rzkf_1";
|
|
@@ -4083,7 +4084,7 @@ const buttonStyles = {
|
|
|
4083
4084
|
groupOrderLast: groupOrderLast$4
|
|
4084
4085
|
};
|
|
4085
4086
|
const spinner = "_spinner_156m4_1";
|
|
4086
|
-
const styles$
|
|
4087
|
+
const styles$N = {
|
|
4087
4088
|
spinner
|
|
4088
4089
|
};
|
|
4089
4090
|
const Spinner$1 = ({
|
|
@@ -4094,7 +4095,7 @@ const Spinner$1 = ({
|
|
|
4094
4095
|
}) => {
|
|
4095
4096
|
const color2 = colored2 ? "var(--color-text-primary)" : dark2 ? "var(--color-text-muted)" : "white";
|
|
4096
4097
|
const fontSize = small2 ? "var(--font-size)" : tiny ? "var(--font-size-xs)" : "var(--size)";
|
|
4097
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
4098
|
+
return /* @__PURE__ */ jsx("div", { className: styles$N.spinner, style: { color: color2, fontSize } });
|
|
4098
4099
|
};
|
|
4099
4100
|
var ButtonType = /* @__PURE__ */ ((ButtonType2) => {
|
|
4100
4101
|
ButtonType2["SUBMIT"] = "submit";
|
|
@@ -4213,7 +4214,7 @@ const Button$1 = ({
|
|
|
4213
4214
|
const actions$2 = "_actions_1nid8_1";
|
|
4214
4215
|
const actionComponentContainer = "_actionComponentContainer_1nid8_11";
|
|
4215
4216
|
const active$7 = "_active_1nid8_33";
|
|
4216
|
-
const styles$
|
|
4217
|
+
const styles$M = {
|
|
4217
4218
|
actions: actions$2,
|
|
4218
4219
|
actionComponentContainer,
|
|
4219
4220
|
active: active$7
|
|
@@ -4246,7 +4247,7 @@ const buttonCaret = "_buttonCaret_uioq1_178";
|
|
|
4246
4247
|
const component = "_component_uioq1_182";
|
|
4247
4248
|
const right$7 = "_right_uioq1_188";
|
|
4248
4249
|
const actions$1 = "_actions_uioq1_193";
|
|
4249
|
-
const styles$
|
|
4250
|
+
const styles$L = {
|
|
4250
4251
|
wrapper: wrapper$4,
|
|
4251
4252
|
layer: layer$1,
|
|
4252
4253
|
layerContainer: layerContainer$1,
|
|
@@ -4280,15 +4281,15 @@ const Heading$3 = ({ label: label2, onClick, icon: icon2, testId }) => /* @__PUR
|
|
|
4280
4281
|
"div",
|
|
4281
4282
|
{
|
|
4282
4283
|
onClick: (evt) => evt.stopPropagation(),
|
|
4283
|
-
className: styles$
|
|
4284
|
+
className: styles$L.heading,
|
|
4284
4285
|
"data-testid": testId,
|
|
4285
4286
|
children: [
|
|
4286
4287
|
label2,
|
|
4287
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4288
|
+
/* @__PURE__ */ jsx("span", { className: styles$L.headingIcon, onClick, children: icon2 })
|
|
4288
4289
|
]
|
|
4289
4290
|
}
|
|
4290
4291
|
);
|
|
4291
|
-
const Divider$1 = () => /* @__PURE__ */ jsx("hr", { className: styles$
|
|
4292
|
+
const Divider$1 = () => /* @__PURE__ */ jsx("hr", { className: styles$L.divider });
|
|
4292
4293
|
const Option$2 = ({
|
|
4293
4294
|
actions: actions2,
|
|
4294
4295
|
label: label2,
|
|
@@ -4324,31 +4325,31 @@ const Option$2 = ({
|
|
|
4324
4325
|
{
|
|
4325
4326
|
href: url,
|
|
4326
4327
|
className: cx$2(
|
|
4327
|
-
styles$
|
|
4328
|
-
disabled2 ? styles$
|
|
4329
|
-
inline2 ? styles$
|
|
4330
|
-
selected2 ? styles$
|
|
4328
|
+
styles$L.option,
|
|
4329
|
+
disabled2 ? styles$L.disabled : "",
|
|
4330
|
+
inline2 ? styles$L.inline : "",
|
|
4331
|
+
selected2 ? styles$L.selected : ""
|
|
4331
4332
|
),
|
|
4332
4333
|
onClick: handleClick2,
|
|
4333
4334
|
"data-testid": testId,
|
|
4334
4335
|
children: [
|
|
4335
|
-
icon2 ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
4336
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
4336
|
+
icon2 ? /* @__PURE__ */ jsx("span", { className: styles$L.icon, children: /* @__PURE__ */ jsx(Icon, { icon: icon2 }) }) : null,
|
|
4337
|
+
/* @__PURE__ */ jsxs("div", { className: styles$L.optionContent, children: [
|
|
4337
4338
|
upload && /* @__PURE__ */ jsx(
|
|
4338
4339
|
"input",
|
|
4339
4340
|
{
|
|
4340
4341
|
type: "file",
|
|
4341
|
-
className: styles$
|
|
4342
|
+
className: styles$L.fileInput,
|
|
4342
4343
|
onChange: (evt) => {
|
|
4343
4344
|
onChange == null ? void 0 : onChange(evt.target.files);
|
|
4344
4345
|
close2 == null ? void 0 : close2();
|
|
4345
4346
|
}
|
|
4346
4347
|
}
|
|
4347
4348
|
),
|
|
4348
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4349
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
4350
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4351
|
-
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsx("div", { className: styles$
|
|
4349
|
+
/* @__PURE__ */ jsx("span", { className: styles$L.label, title: `${title2 || label2}`, children: label2 }),
|
|
4350
|
+
/* @__PURE__ */ jsxs("div", { className: styles$L.right, children: [
|
|
4351
|
+
/* @__PURE__ */ jsx("span", { className: styles$L.description, children: description2 }),
|
|
4352
|
+
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsx("div", { className: styles$L.actions, children: /* @__PURE__ */ jsx(Actions, { actions: actions2 }) })
|
|
4352
4353
|
] })
|
|
4353
4354
|
] })
|
|
4354
4355
|
]
|
|
@@ -4481,7 +4482,7 @@ const Layer$2 = ({
|
|
|
4481
4482
|
return /* @__PURE__ */ jsx(
|
|
4482
4483
|
"div",
|
|
4483
4484
|
{
|
|
4484
|
-
className: cx$2(styles$
|
|
4485
|
+
className: cx$2(styles$L.layer, isNested ? styles$L.nested : null),
|
|
4485
4486
|
style: { maxWidth: width2, maxHeight },
|
|
4486
4487
|
"data-testid": testId,
|
|
4487
4488
|
children: /* @__PURE__ */ jsx("ul", { children: localSections.map((section2, i) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
@@ -4518,7 +4519,7 @@ const light = "_light_nwprz_26";
|
|
|
4518
4519
|
const small$b = "_small_nwprz_29";
|
|
4519
4520
|
const dot = "_dot_nwprz_33";
|
|
4520
4521
|
const hasChildren = "_hasChildren_nwprz_39";
|
|
4521
|
-
const styles$
|
|
4522
|
+
const styles$K = {
|
|
4522
4523
|
wrapper: wrapper$3,
|
|
4523
4524
|
badge,
|
|
4524
4525
|
label: label$9,
|
|
@@ -4546,16 +4547,16 @@ const Badge = ({
|
|
|
4546
4547
|
small: small2 = false
|
|
4547
4548
|
}) => {
|
|
4548
4549
|
const visible = !(title2 === null && dot2 === false);
|
|
4549
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
4550
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$K.wrapper, children: [
|
|
4550
4551
|
visible && /* @__PURE__ */ jsx(
|
|
4551
4552
|
"sup",
|
|
4552
4553
|
{
|
|
4553
4554
|
className: cx$2(
|
|
4554
|
-
styles$
|
|
4555
|
-
isDark(color2) ? styles$
|
|
4556
|
-
title2 !== null ? styles$
|
|
4557
|
-
small2 ? styles$
|
|
4558
|
-
children ? styles$
|
|
4555
|
+
styles$K.badge,
|
|
4556
|
+
isDark(color2) ? styles$K.dark : styles$K.light,
|
|
4557
|
+
title2 !== null ? styles$K.label : styles$K.dot,
|
|
4558
|
+
small2 ? styles$K.small : "",
|
|
4559
|
+
children ? styles$K.hasChildren : ""
|
|
4559
4560
|
),
|
|
4560
4561
|
style: {
|
|
4561
4562
|
background: color2 || void 0,
|
|
@@ -4581,16 +4582,16 @@ const Button = ({
|
|
|
4581
4582
|
active: active2
|
|
4582
4583
|
}) => {
|
|
4583
4584
|
const disabledContext = useContext(DisabledContext);
|
|
4584
|
-
const buttonLabel2 = trigger2 === TriggerType.BUTTON ? label2 : trigger2 === TriggerType.DROP_DOWN_BUTTON ? /* @__PURE__ */ jsxs("span", { className: styles$
|
|
4585
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4586
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4585
|
+
const buttonLabel2 = trigger2 === TriggerType.BUTTON ? label2 : trigger2 === TriggerType.DROP_DOWN_BUTTON ? /* @__PURE__ */ jsxs("span", { className: styles$L.middleAlignedInline, children: [
|
|
4586
|
+
/* @__PURE__ */ jsx("span", { className: styles$L.buttonLabel, children: label2 }),
|
|
4587
|
+
/* @__PURE__ */ jsx("span", { className: styles$L.buttonCaret, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_DOWN }) })
|
|
4587
4588
|
] }) : null;
|
|
4588
4589
|
return /* @__PURE__ */ jsx(
|
|
4589
4590
|
"div",
|
|
4590
4591
|
{
|
|
4591
4592
|
className: cx$2(
|
|
4592
|
-
styles$
|
|
4593
|
-
disabled2 || disabledContext ? styles$
|
|
4593
|
+
styles$L.trigger,
|
|
4594
|
+
disabled2 || disabledContext ? styles$L.disabled : null
|
|
4594
4595
|
),
|
|
4595
4596
|
style: { width: width2 },
|
|
4596
4597
|
children: /* @__PURE__ */ jsx(
|
|
@@ -4630,13 +4631,13 @@ const Text$1 = ({
|
|
|
4630
4631
|
"div",
|
|
4631
4632
|
{
|
|
4632
4633
|
className: cx$2(
|
|
4633
|
-
styles$
|
|
4634
|
-
disabled2 ? styles$
|
|
4635
|
-
isOpen2 ? styles$
|
|
4634
|
+
styles$L.trigger,
|
|
4635
|
+
disabled2 ? styles$L.disabled : null,
|
|
4636
|
+
isOpen2 ? styles$L.active : null
|
|
4636
4637
|
),
|
|
4637
4638
|
children: [
|
|
4638
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4639
|
-
carat && carat === MenuCarat.RIGHT ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
4639
|
+
/* @__PURE__ */ jsx("span", { className: styles$L.label, title: titleText, children: label2 }),
|
|
4640
|
+
carat && carat === MenuCarat.RIGHT ? /* @__PURE__ */ jsx("span", { className: styles$L.arrow, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_RIGHT }) }) : carat && carat === MenuCarat.DOWN ? /* @__PURE__ */ jsx("span", { className: styles$L.arrow, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_DOWN }) }) : null
|
|
4640
4641
|
]
|
|
4641
4642
|
}
|
|
4642
4643
|
);
|
|
@@ -4649,7 +4650,7 @@ const Component = ({
|
|
|
4649
4650
|
return /* @__PURE__ */ jsx(
|
|
4650
4651
|
"div",
|
|
4651
4652
|
{
|
|
4652
|
-
className: cx$2(styles$
|
|
4653
|
+
className: cx$2(styles$L.component, disabled2 ? styles$L.disabled : null),
|
|
4653
4654
|
"data-testid": testId,
|
|
4654
4655
|
children: component2
|
|
4655
4656
|
}
|
|
@@ -4730,7 +4731,7 @@ const Trigger$1 = React__default.forwardRef(
|
|
|
4730
4731
|
"div",
|
|
4731
4732
|
{
|
|
4732
4733
|
ref: ref2,
|
|
4733
|
-
className: styles$
|
|
4734
|
+
className: styles$L.wrapper,
|
|
4734
4735
|
style: width2 ? { width: width2 } : {
|
|
4735
4736
|
...fullHeight && {
|
|
4736
4737
|
height: "100%",
|
|
@@ -4952,7 +4953,7 @@ const DropDownMenu = ({
|
|
|
4952
4953
|
"div",
|
|
4953
4954
|
{
|
|
4954
4955
|
...layerProps,
|
|
4955
|
-
className: styles$
|
|
4956
|
+
className: styles$L.layerContainer,
|
|
4956
4957
|
"data-testid": menu2.testId,
|
|
4957
4958
|
onClick: (evt) => evt.stopPropagation(),
|
|
4958
4959
|
children: /* @__PURE__ */ jsx(
|
|
@@ -5020,7 +5021,7 @@ const SubmenuActions = (props) => {
|
|
|
5020
5021
|
const Actions = (props) => {
|
|
5021
5022
|
const disabledContext = useContext(DisabledContext);
|
|
5022
5023
|
const { actions: actions2 = [], closeLayer } = props;
|
|
5023
|
-
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
5024
|
+
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$M.actions), children: actions2.map((action2, index2) => {
|
|
5024
5025
|
const hidden2 = (action2 == null ? void 0 : action2.hidden) || !action2 || !Object.keys(action2).length;
|
|
5025
5026
|
if (!hidden2) {
|
|
5026
5027
|
if (action2.childComponent && React__default.isValidElement(action2.childComponent)) {
|
|
@@ -5074,7 +5075,7 @@ const labelContainer = "_labelContainer_2k0cd_7";
|
|
|
5074
5075
|
const active$5 = "_active_2k0cd_17";
|
|
5075
5076
|
const disabled$7 = "_disabled_2k0cd_22";
|
|
5076
5077
|
const separator = "_separator_2k0cd_27";
|
|
5077
|
-
const styles$
|
|
5078
|
+
const styles$J = {
|
|
5078
5079
|
breadcrumb,
|
|
5079
5080
|
small: small$a,
|
|
5080
5081
|
labelContainer,
|
|
@@ -5105,16 +5106,16 @@ const Link$2 = ({
|
|
|
5105
5106
|
{
|
|
5106
5107
|
onClick,
|
|
5107
5108
|
className: cx$2(
|
|
5108
|
-
styles$
|
|
5109
|
-
active2 && styles$
|
|
5110
|
-
(disabled2 || disabledContext) && styles$
|
|
5109
|
+
styles$J.labelContainer,
|
|
5110
|
+
active2 && styles$J.active,
|
|
5111
|
+
(disabled2 || disabledContext) && styles$J.disabled
|
|
5111
5112
|
),
|
|
5112
5113
|
children: isLink ? /* @__PURE__ */ jsx("a", { href: url, children: label2 }) : isCustom ? element : label2
|
|
5113
5114
|
}
|
|
5114
5115
|
);
|
|
5115
5116
|
};
|
|
5116
5117
|
const Breadcrumb = ({ links, small: small2 = false }) => {
|
|
5117
|
-
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
5118
|
+
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$J.breadcrumb, small2 && styles$J.small), children: links.map((link2, i) => {
|
|
5118
5119
|
const isFinal = links.length === i + 1;
|
|
5119
5120
|
const { type, label: label2, url, onClick, active: active2, disabled: disabled2, element } = link2;
|
|
5120
5121
|
return /* @__PURE__ */ jsxs("span", { children: [
|
|
@@ -5130,13 +5131,13 @@ const Breadcrumb = ({ links, small: small2 = false }) => {
|
|
|
5130
5131
|
element
|
|
5131
5132
|
}
|
|
5132
5133
|
),
|
|
5133
|
-
!isFinal && /* @__PURE__ */ jsx("span", { className: styles$
|
|
5134
|
+
!isFinal && /* @__PURE__ */ jsx("span", { className: styles$J.separator, children: "/" })
|
|
5134
5135
|
] }, i);
|
|
5135
5136
|
}) });
|
|
5136
5137
|
};
|
|
5137
5138
|
const label$8 = "_label_iu2wi_1";
|
|
5138
5139
|
const buttonGroup = "_buttonGroup_iu2wi_11";
|
|
5139
|
-
const styles$
|
|
5140
|
+
const styles$I = {
|
|
5140
5141
|
label: label$8,
|
|
5141
5142
|
buttonGroup
|
|
5142
5143
|
};
|
|
@@ -5197,7 +5198,7 @@ const ButtonGroup = (props) => {
|
|
|
5197
5198
|
};
|
|
5198
5199
|
const renderHeader = () => {
|
|
5199
5200
|
if (header2) {
|
|
5200
|
-
return /* @__PURE__ */ jsx("label", { className: styles$
|
|
5201
|
+
return /* @__PURE__ */ jsx("label", { className: styles$I.label, children: header2 });
|
|
5201
5202
|
}
|
|
5202
5203
|
};
|
|
5203
5204
|
const renderButtons = () => {
|
|
@@ -5254,7 +5255,7 @@ const ButtonGroup = (props) => {
|
|
|
5254
5255
|
};
|
|
5255
5256
|
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("div", { children: [
|
|
5256
5257
|
renderHeader(),
|
|
5257
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
5258
|
+
/* @__PURE__ */ jsx("div", { className: styles$I.buttonGroup, "data-testid": testId, children: renderButtons() })
|
|
5258
5259
|
] }) });
|
|
5259
5260
|
};
|
|
5260
5261
|
const card = "_card_ucdeu_1";
|
|
@@ -5264,7 +5265,7 @@ const cardHeader = "_cardHeader_ucdeu_13";
|
|
|
5264
5265
|
const cardContentBorderTop = "_cardContentBorderTop_ucdeu_19";
|
|
5265
5266
|
const padding$1 = "_padding_ucdeu_22";
|
|
5266
5267
|
const cardContent = "_cardContent_ucdeu_19";
|
|
5267
|
-
const styles$
|
|
5268
|
+
const styles$H = {
|
|
5268
5269
|
card,
|
|
5269
5270
|
bordered: bordered$2,
|
|
5270
5271
|
raised,
|
|
@@ -5285,20 +5286,20 @@ const Card = ({
|
|
|
5285
5286
|
"div",
|
|
5286
5287
|
{
|
|
5287
5288
|
className: cx$2(
|
|
5288
|
-
styles$
|
|
5289
|
-
bordered2 ? styles$
|
|
5290
|
-
raised2 ? styles$
|
|
5289
|
+
styles$H.card,
|
|
5290
|
+
bordered2 ? styles$H.bordered : "",
|
|
5291
|
+
raised2 ? styles$H.raised : ""
|
|
5291
5292
|
),
|
|
5292
5293
|
style: { margin: margin2 },
|
|
5293
5294
|
children: [
|
|
5294
|
-
heading2 ? /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
5295
|
+
heading2 ? /* @__PURE__ */ jsx("div", { className: cx$2(styles$H.cardHeader), children: heading2 }) : null,
|
|
5295
5296
|
/* @__PURE__ */ jsx(
|
|
5296
5297
|
"div",
|
|
5297
5298
|
{
|
|
5298
5299
|
className: cx$2(
|
|
5299
|
-
styles$
|
|
5300
|
-
heading2 ? styles$
|
|
5301
|
-
padding2 ? styles$
|
|
5300
|
+
styles$H.cardContent,
|
|
5301
|
+
heading2 ? styles$H.cardContentBorderTop : "",
|
|
5302
|
+
padding2 ? styles$H.padding : ""
|
|
5302
5303
|
),
|
|
5303
5304
|
children
|
|
5304
5305
|
}
|
|
@@ -6530,7 +6531,7 @@ const Column = ({
|
|
|
6530
6531
|
const divider = "_divider_2bfzh_1";
|
|
6531
6532
|
const alignLeft = "_alignLeft_2bfzh_12";
|
|
6532
6533
|
const alignRight = "_alignRight_2bfzh_15";
|
|
6533
|
-
const styles$
|
|
6534
|
+
const styles$G = {
|
|
6534
6535
|
divider,
|
|
6535
6536
|
alignLeft,
|
|
6536
6537
|
alignRight
|
|
@@ -6544,7 +6545,7 @@ const warning$a = "_warning_11ofj_16";
|
|
|
6544
6545
|
const error$7 = "_error_11ofj_19";
|
|
6545
6546
|
const small$9 = "_small_11ofj_22";
|
|
6546
6547
|
const link$1 = "_link_11ofj_25";
|
|
6547
|
-
const styles$
|
|
6548
|
+
const styles$F = {
|
|
6548
6549
|
bold: bold$1,
|
|
6549
6550
|
center,
|
|
6550
6551
|
muted: muted$1,
|
|
@@ -6572,16 +6573,16 @@ const Text = ({
|
|
|
6572
6573
|
"span",
|
|
6573
6574
|
{
|
|
6574
6575
|
className: cx$2(
|
|
6575
|
-
bold2 && styles$
|
|
6576
|
-
center2 && styles$
|
|
6577
|
-
error2 && styles$
|
|
6578
|
-
faint2 && styles$
|
|
6579
|
-
link2 && styles$
|
|
6580
|
-
muted2 && styles$
|
|
6581
|
-
onClick && styles$
|
|
6582
|
-
small2 && styles$
|
|
6583
|
-
success2 && styles$
|
|
6584
|
-
warning2 && styles$
|
|
6576
|
+
bold2 && styles$F.bold,
|
|
6577
|
+
center2 && styles$F.center,
|
|
6578
|
+
error2 && styles$F.error,
|
|
6579
|
+
faint2 && styles$F.faint,
|
|
6580
|
+
link2 && styles$F.link,
|
|
6581
|
+
muted2 && styles$F.muted,
|
|
6582
|
+
onClick && styles$F.clickable,
|
|
6583
|
+
small2 && styles$F.small,
|
|
6584
|
+
success2 && styles$F.success,
|
|
6585
|
+
warning2 && styles$F.warning
|
|
6585
6586
|
),
|
|
6586
6587
|
onClick,
|
|
6587
6588
|
children
|
|
@@ -6591,9 +6592,9 @@ const Text = ({
|
|
|
6591
6592
|
const cssAlignClass = (align) => {
|
|
6592
6593
|
switch (align) {
|
|
6593
6594
|
case Align.LEFT:
|
|
6594
|
-
return styles$
|
|
6595
|
+
return styles$G.alignLeft;
|
|
6595
6596
|
case Align.RIGHT:
|
|
6596
|
-
return styles$
|
|
6597
|
+
return styles$G.alignRight;
|
|
6597
6598
|
default:
|
|
6598
6599
|
return "";
|
|
6599
6600
|
}
|
|
@@ -6606,7 +6607,7 @@ const Divider = ({
|
|
|
6606
6607
|
}) => /* @__PURE__ */ jsx(
|
|
6607
6608
|
"div",
|
|
6608
6609
|
{
|
|
6609
|
-
className: `${styles$
|
|
6610
|
+
className: `${styles$G.divider} ${cssAlignClass(align)}`,
|
|
6610
6611
|
style: {
|
|
6611
6612
|
marginTop: margin2,
|
|
6612
6613
|
marginBottom: margin2,
|
|
@@ -6618,7 +6619,7 @@ const Divider = ({
|
|
|
6618
6619
|
const heading$4 = "_heading_yhdiy_1";
|
|
6619
6620
|
const top$1 = "_top_yhdiy_10";
|
|
6620
6621
|
const icons$2 = "_icons_yhdiy_20";
|
|
6621
|
-
const styles$
|
|
6622
|
+
const styles$E = {
|
|
6622
6623
|
heading: heading$4,
|
|
6623
6624
|
top: top$1,
|
|
6624
6625
|
icons: icons$2
|
|
@@ -6639,13 +6640,13 @@ const Heading$2 = ({
|
|
|
6639
6640
|
return /* @__PURE__ */ jsxs(
|
|
6640
6641
|
"div",
|
|
6641
6642
|
{
|
|
6642
|
-
className: cx$2(styles$
|
|
6643
|
+
className: cx$2(styles$E.heading, top2 ? styles$E.top : ""),
|
|
6643
6644
|
style: { marginBottom },
|
|
6644
6645
|
onClick,
|
|
6645
6646
|
"data-testid": testId,
|
|
6646
6647
|
children: [
|
|
6647
6648
|
children,
|
|
6648
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
6649
|
+
/* @__PURE__ */ jsxs("div", { className: styles$E.icons, children: [
|
|
6649
6650
|
icon2 && /* @__PURE__ */ jsx(HelpIcon, { onClick: onIconClick, icon: icon2 }),
|
|
6650
6651
|
isHelpIconDisplayed && /* @__PURE__ */ jsx(HelpIcon, { text: helpText, onClick: onClickHelp }),
|
|
6651
6652
|
libraryIcon && /* @__PURE__ */ jsx(
|
|
@@ -6668,7 +6669,7 @@ const header$2 = "_header_18g0k_24";
|
|
|
6668
6669
|
const dismiss$2 = "_dismiss_18g0k_33";
|
|
6669
6670
|
const content$3 = "_content_18g0k_38";
|
|
6670
6671
|
const footer$2 = "_footer_18g0k_47";
|
|
6671
|
-
const styles$
|
|
6672
|
+
const styles$D = {
|
|
6672
6673
|
dialog,
|
|
6673
6674
|
inline: inline$3,
|
|
6674
6675
|
scroll: scroll$3,
|
|
@@ -6703,16 +6704,16 @@ const Dialog = ({ dialog: dialog2 }) => {
|
|
|
6703
6704
|
"div",
|
|
6704
6705
|
{
|
|
6705
6706
|
className: cx$2(
|
|
6706
|
-
styles$
|
|
6707
|
-
width2 ? styles$
|
|
6708
|
-
scroll3 ? styles$
|
|
6707
|
+
styles$D.dialog,
|
|
6708
|
+
width2 ? styles$D.inline : null,
|
|
6709
|
+
scroll3 ? styles$D.scroll : null
|
|
6709
6710
|
),
|
|
6710
6711
|
style: { width: width2, height: height2 },
|
|
6711
6712
|
"data-testid": testId ?? null,
|
|
6712
6713
|
children: [
|
|
6713
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
6714
|
+
/* @__PURE__ */ jsxs("div", { className: styles$D.header, children: [
|
|
6714
6715
|
/* @__PURE__ */ jsx(Heading$2, { testId: testId && `${testId}-heading`, top: true, marginBottom: 0, children: heading2 }),
|
|
6715
|
-
onClose ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
6716
|
+
onClose ? /* @__PURE__ */ jsx("div", { className: styles$D.dismiss, children: /* @__PURE__ */ jsx(
|
|
6716
6717
|
Button$1,
|
|
6717
6718
|
{
|
|
6718
6719
|
icon: IconType.CLOSE,
|
|
@@ -6728,7 +6729,7 @@ const Dialog = ({ dialog: dialog2 }) => {
|
|
|
6728
6729
|
"div",
|
|
6729
6730
|
{
|
|
6730
6731
|
"data-testid": testId && `${testId}-content`,
|
|
6731
|
-
className: styles$
|
|
6732
|
+
className: styles$D.content,
|
|
6732
6733
|
style: { padding: contentPadding2 },
|
|
6733
6734
|
children: convertStringToJsx(content2)
|
|
6734
6735
|
}
|
|
@@ -6737,7 +6738,7 @@ const Dialog = ({ dialog: dialog2 }) => {
|
|
|
6737
6738
|
"div",
|
|
6738
6739
|
{
|
|
6739
6740
|
"data-testid": testId && `${testId}-footer`,
|
|
6740
|
-
className: styles$
|
|
6741
|
+
className: styles$D.footer,
|
|
6741
6742
|
children: footer2
|
|
6742
6743
|
}
|
|
6743
6744
|
)
|
|
@@ -6770,7 +6771,7 @@ const active$4 = "_active_khmhl_197";
|
|
|
6770
6771
|
const disabled$6 = "_disabled_khmhl_222";
|
|
6771
6772
|
const tabsContent = "_tabsContent_khmhl_229";
|
|
6772
6773
|
const resizeHandle = "_resizeHandle_khmhl_235";
|
|
6773
|
-
const styles$
|
|
6774
|
+
const styles$C = {
|
|
6774
6775
|
inputInTable: inputInTable$a,
|
|
6775
6776
|
inputHover: inputHover$a,
|
|
6776
6777
|
inputFocus: inputFocus$a,
|
|
@@ -6812,13 +6813,13 @@ const DrawerTabs = ({
|
|
|
6812
6813
|
testId
|
|
6813
6814
|
}) => {
|
|
6814
6815
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
6815
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
6816
|
+
/* @__PURE__ */ jsx("div", { className: styles$C.tabs, children: tabs2.map((tab2, index2) => /* @__PURE__ */ jsx(
|
|
6816
6817
|
"div",
|
|
6817
6818
|
{
|
|
6818
6819
|
className: cx$2(
|
|
6819
|
-
styles$
|
|
6820
|
-
activeTab === index2 && open ? styles$
|
|
6821
|
-
tab2.disabled ? styles$
|
|
6820
|
+
styles$C.tab,
|
|
6821
|
+
activeTab === index2 && open ? styles$C.active : "",
|
|
6822
|
+
tab2.disabled ? styles$C.disabled : ""
|
|
6822
6823
|
),
|
|
6823
6824
|
style: { background: background2 },
|
|
6824
6825
|
onClick: !tab2.disabled ? () => handleTabClick(index2) : void 0,
|
|
@@ -6833,7 +6834,7 @@ const DrawerTabs = ({
|
|
|
6833
6834
|
"div",
|
|
6834
6835
|
{
|
|
6835
6836
|
style: { width: typeof width2 === "number" ? `${width2}px` : width2 },
|
|
6836
|
-
className: styles$
|
|
6837
|
+
className: styles$C.tabsContent,
|
|
6837
6838
|
"data-testid": testId && `${testId}-content-${index2}`,
|
|
6838
6839
|
children: active2 && open && tab2.content
|
|
6839
6840
|
},
|
|
@@ -8825,7 +8826,7 @@ const MIN_OPEN_WIDTH = 240;
|
|
|
8825
8826
|
const ResizeHandle = forwardRef(
|
|
8826
8827
|
(props, ref2) => {
|
|
8827
8828
|
const { handleAxis, ...rest } = props;
|
|
8828
|
-
return /* @__PURE__ */ jsx("div", { ref: ref2, className: styles$
|
|
8829
|
+
return /* @__PURE__ */ jsx("div", { ref: ref2, className: styles$C.resizeHandle, ...rest, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.DRAG }) });
|
|
8829
8830
|
}
|
|
8830
8831
|
);
|
|
8831
8832
|
const DrawerResizeWrapper = ({
|
|
@@ -8852,7 +8853,7 @@ const DrawerResizeWrapper = ({
|
|
|
8852
8853
|
handle: /* @__PURE__ */ jsx(ResizeHandle, {}),
|
|
8853
8854
|
resizeHandles: right2 ? ["w"] : ["e"],
|
|
8854
8855
|
axis: "x",
|
|
8855
|
-
className: isResizing2 ? styles$
|
|
8856
|
+
className: isResizing2 ? styles$C.isResizing : "",
|
|
8856
8857
|
onResizeStart: () => {
|
|
8857
8858
|
if (setOpen)
|
|
8858
8859
|
setOpen(true);
|
|
@@ -8953,17 +8954,17 @@ const Drawer = ({
|
|
|
8953
8954
|
"div",
|
|
8954
8955
|
{
|
|
8955
8956
|
className: cx$2(
|
|
8956
|
-
styles$
|
|
8957
|
-
shadow4 ? styles$
|
|
8958
|
-
fixed2 ? styles$
|
|
8959
|
-
right2 ? styles$
|
|
8957
|
+
styles$C.drawer,
|
|
8958
|
+
shadow4 ? styles$C.shadow : "",
|
|
8959
|
+
fixed2 ? styles$C.fixed : styles$C.inline,
|
|
8960
|
+
right2 ? styles$C.right : styles$C.left
|
|
8960
8961
|
),
|
|
8961
8962
|
style: { top: top2 },
|
|
8962
8963
|
children: [
|
|
8963
8964
|
/* @__PURE__ */ jsx(
|
|
8964
8965
|
"div",
|
|
8965
8966
|
{
|
|
8966
|
-
className: cx$2(styles$
|
|
8967
|
+
className: cx$2(styles$C.drawerContent, border2 && styles$C.border),
|
|
8967
8968
|
style: {
|
|
8968
8969
|
background: background2,
|
|
8969
8970
|
borderColor: typeof border2 === "string" ? border2 : void 0,
|
|
@@ -8989,9 +8990,9 @@ const Drawer = ({
|
|
|
8989
8990
|
"span",
|
|
8990
8991
|
{
|
|
8991
8992
|
className: cx$2(
|
|
8992
|
-
styles$
|
|
8993
|
-
localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$
|
|
8994
|
-
buttonPosition === "top" ? styles$
|
|
8993
|
+
styles$C.toggleButton,
|
|
8994
|
+
localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$C.toggleButtonOpen : "",
|
|
8995
|
+
buttonPosition === "top" ? styles$C.top : styles$C.bottom
|
|
8995
8996
|
),
|
|
8996
8997
|
children: isCustomButton ? button2 : /* @__PURE__ */ jsx(
|
|
8997
8998
|
Button$1,
|
|
@@ -9011,7 +9012,7 @@ const Drawer = ({
|
|
|
9011
9012
|
};
|
|
9012
9013
|
const empty$2 = "_empty_fe425_1";
|
|
9013
9014
|
const text$2 = "_text_fe425_11";
|
|
9014
|
-
const styles$
|
|
9015
|
+
const styles$B = {
|
|
9015
9016
|
empty: empty$2,
|
|
9016
9017
|
text: text$2
|
|
9017
9018
|
};
|
|
@@ -9025,7 +9026,7 @@ const Empty = ({
|
|
|
9025
9026
|
return /* @__PURE__ */ jsxs(
|
|
9026
9027
|
"div",
|
|
9027
9028
|
{
|
|
9028
|
-
className: styles$
|
|
9029
|
+
className: styles$B.empty,
|
|
9029
9030
|
style: { width: width2, height: height2 },
|
|
9030
9031
|
"data-testid": testId,
|
|
9031
9032
|
children: [
|
|
@@ -9057,14 +9058,14 @@ const Empty = ({
|
|
|
9057
9058
|
)
|
|
9058
9059
|
] })
|
|
9059
9060
|
] }) }),
|
|
9060
|
-
text2 !== "" && /* @__PURE__ */ jsx("div", { className: styles$
|
|
9061
|
+
text2 !== "" && /* @__PURE__ */ jsx("div", { className: styles$B.text, children: /* @__PURE__ */ jsx(Text, { faint: true, children: text2 }) }),
|
|
9061
9062
|
children
|
|
9062
9063
|
]
|
|
9063
9064
|
}
|
|
9064
9065
|
);
|
|
9065
9066
|
};
|
|
9066
9067
|
const inputGroup = "_inputGroup_biuoa_1";
|
|
9067
|
-
const styles$
|
|
9068
|
+
const styles$A = {
|
|
9068
9069
|
inputGroup
|
|
9069
9070
|
};
|
|
9070
9071
|
const isDOMTypeElement = (element) => {
|
|
@@ -9089,7 +9090,7 @@ const InputGroup = ({
|
|
|
9089
9090
|
return /* @__PURE__ */ jsx(
|
|
9090
9091
|
"div",
|
|
9091
9092
|
{
|
|
9092
|
-
className: cx$2(styles$
|
|
9093
|
+
className: cx$2(styles$A.inputGroup),
|
|
9093
9094
|
style: { width: width2 },
|
|
9094
9095
|
children: elements
|
|
9095
9096
|
}
|
|
@@ -9111,7 +9112,7 @@ const right$5 = "_right_jnwnh_170";
|
|
|
9111
9112
|
const groupOrderFirst$3 = "_groupOrderFirst_jnwnh_173";
|
|
9112
9113
|
const groupOrderMiddle$3 = "_groupOrderMiddle_jnwnh_174";
|
|
9113
9114
|
const groupOrderLast$3 = "_groupOrderLast_jnwnh_175";
|
|
9114
|
-
const styles$
|
|
9115
|
+
const styles$z = {
|
|
9115
9116
|
inputInTable: inputInTable$9,
|
|
9116
9117
|
inputHover: inputHover$9,
|
|
9117
9118
|
inputFocus: inputFocus$9,
|
|
@@ -9166,11 +9167,11 @@ const Input$1 = forwardRef(
|
|
|
9166
9167
|
if (groupOrder) {
|
|
9167
9168
|
switch (groupOrder) {
|
|
9168
9169
|
case "first":
|
|
9169
|
-
return styles$
|
|
9170
|
+
return styles$z.groupOrderFirst;
|
|
9170
9171
|
case "last":
|
|
9171
|
-
return styles$
|
|
9172
|
+
return styles$z.groupOrderLast;
|
|
9172
9173
|
default:
|
|
9173
|
-
return styles$
|
|
9174
|
+
return styles$z.groupOrderMiddle;
|
|
9174
9175
|
}
|
|
9175
9176
|
}
|
|
9176
9177
|
return "";
|
|
@@ -9204,11 +9205,11 @@ const Input$1 = forwardRef(
|
|
|
9204
9205
|
autoComplete: "off",
|
|
9205
9206
|
disabled: disabled2 || disabledContext,
|
|
9206
9207
|
className: cx$2(
|
|
9207
|
-
styles$
|
|
9208
|
-
error2 ? styles$
|
|
9209
|
-
right2 ? styles$
|
|
9210
|
-
small2 ? styles$
|
|
9211
|
-
isInTable2 ? styles$
|
|
9208
|
+
styles$z.input,
|
|
9209
|
+
error2 ? styles$z.error : warning2 ? styles$z.warning : "",
|
|
9210
|
+
right2 ? styles$z.right : "",
|
|
9211
|
+
small2 ? styles$z.small : "",
|
|
9212
|
+
isInTable2 ? styles$z.isInTable : ""
|
|
9212
9213
|
),
|
|
9213
9214
|
style: { width: width2 },
|
|
9214
9215
|
"data-testid": testId
|
|
@@ -9219,7 +9220,7 @@ const Input$1 = forwardRef(
|
|
|
9219
9220
|
}
|
|
9220
9221
|
);
|
|
9221
9222
|
const fileInput = "_fileInput_1elar_1";
|
|
9222
|
-
const styles$
|
|
9223
|
+
const styles$y = {
|
|
9223
9224
|
fileInput
|
|
9224
9225
|
};
|
|
9225
9226
|
var InputReaderMethods = /* @__PURE__ */ ((InputReaderMethods2) => {
|
|
@@ -9288,7 +9289,7 @@ const FileInput = ({
|
|
|
9288
9289
|
{
|
|
9289
9290
|
name: name2,
|
|
9290
9291
|
ref: inputRef,
|
|
9291
|
-
className: styles$
|
|
9292
|
+
className: styles$y.fileInput,
|
|
9292
9293
|
type: "file",
|
|
9293
9294
|
accept,
|
|
9294
9295
|
onChange: (evt) => {
|
|
@@ -9309,7 +9310,7 @@ const FileInput = ({
|
|
|
9309
9310
|
const label$7 = "_label_18pfe_1";
|
|
9310
9311
|
const labelLeft$1 = "_labelLeft_18pfe_5";
|
|
9311
9312
|
const icons$1 = "_icons_18pfe_13";
|
|
9312
|
-
const styles$
|
|
9313
|
+
const styles$x = {
|
|
9313
9314
|
label: label$7,
|
|
9314
9315
|
labelLeft: labelLeft$1,
|
|
9315
9316
|
icons: icons$1
|
|
@@ -9332,9 +9333,9 @@ const Label$2 = ({
|
|
|
9332
9333
|
libraryIcon,
|
|
9333
9334
|
labelLeft: labelLeft2 = false
|
|
9334
9335
|
}) => {
|
|
9335
|
-
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
9336
|
+
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$x.label, labelLeft2 ? styles$x.labelLeft : ""), children: /* @__PURE__ */ jsxs("label", { style: { width: width2 || "" }, children: [
|
|
9336
9337
|
label2,
|
|
9337
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
9338
|
+
/* @__PURE__ */ jsxs("div", { className: styles$x.icons, children: [
|
|
9338
9339
|
(helpText || onClickHelp) && /* @__PURE__ */ jsx(
|
|
9339
9340
|
HelpIcon,
|
|
9340
9341
|
{
|
|
@@ -9369,7 +9370,7 @@ const labelLeft = "_labelLeft_1xoss_5";
|
|
|
9369
9370
|
const fieldInput = "_fieldInput_1xoss_9";
|
|
9370
9371
|
const formRow$1 = "_formRow_1xoss_12";
|
|
9371
9372
|
const button$2 = "_button_1xoss_22";
|
|
9372
|
-
const styles$
|
|
9373
|
+
const styles$w = {
|
|
9373
9374
|
field,
|
|
9374
9375
|
labelLeft,
|
|
9375
9376
|
fieldInput,
|
|
@@ -9400,7 +9401,7 @@ const Field = ({
|
|
|
9400
9401
|
return /* @__PURE__ */ jsxs(
|
|
9401
9402
|
"div",
|
|
9402
9403
|
{
|
|
9403
|
-
className: cx$2(styles$
|
|
9404
|
+
className: cx$2(styles$w.field, labelLeft2 ? styles$w.labelLeft : ""),
|
|
9404
9405
|
"data-testid": testId,
|
|
9405
9406
|
children: [
|
|
9406
9407
|
(label2 || labelLeft2) && /* @__PURE__ */ jsx(
|
|
@@ -9417,7 +9418,7 @@ const Field = ({
|
|
|
9417
9418
|
labelLeft: labelLeft2
|
|
9418
9419
|
}
|
|
9419
9420
|
),
|
|
9420
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
9421
|
+
/* @__PURE__ */ jsx("div", { className: styles$w.fieldInput, children })
|
|
9421
9422
|
]
|
|
9422
9423
|
}
|
|
9423
9424
|
);
|
|
@@ -9448,11 +9449,11 @@ const Flex = ({
|
|
|
9448
9449
|
);
|
|
9449
9450
|
};
|
|
9450
9451
|
const formRow = "_formRow_odewu_1";
|
|
9451
|
-
const styles$
|
|
9452
|
+
const styles$v = {
|
|
9452
9453
|
formRow
|
|
9453
9454
|
};
|
|
9454
9455
|
const FormRow = ({ children }) => {
|
|
9455
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
9456
|
+
return /* @__PURE__ */ jsx("div", { className: styles$v.formRow, children });
|
|
9456
9457
|
};
|
|
9457
9458
|
const getGapValue = (gap) => {
|
|
9458
9459
|
if (typeof gap === "boolean") {
|
|
@@ -9512,7 +9513,7 @@ const small$7 = "_small_b4w53_12";
|
|
|
9512
9513
|
const groupOrderFirst$2 = "_groupOrderFirst_b4w53_16";
|
|
9513
9514
|
const groupOrderMiddle$2 = "_groupOrderMiddle_b4w53_17";
|
|
9514
9515
|
const groupOrderLast$2 = "_groupOrderLast_b4w53_21";
|
|
9515
|
-
const styles$
|
|
9516
|
+
const styles$u = {
|
|
9516
9517
|
addon,
|
|
9517
9518
|
small: small$7,
|
|
9518
9519
|
groupOrderFirst: groupOrderFirst$2,
|
|
@@ -9528,16 +9529,16 @@ const InputGroupAddon = ({
|
|
|
9528
9529
|
if (groupOrder) {
|
|
9529
9530
|
switch (groupOrder) {
|
|
9530
9531
|
case GroupOrder.FIRST:
|
|
9531
|
-
return styles$
|
|
9532
|
+
return styles$u.groupOrderFirst;
|
|
9532
9533
|
case GroupOrder.LAST:
|
|
9533
|
-
return styles$
|
|
9534
|
+
return styles$u.groupOrderLast;
|
|
9534
9535
|
default:
|
|
9535
|
-
return styles$
|
|
9536
|
+
return styles$u.groupOrderMiddle;
|
|
9536
9537
|
}
|
|
9537
9538
|
}
|
|
9538
9539
|
return "";
|
|
9539
9540
|
})();
|
|
9540
|
-
return /* @__PURE__ */ jsx("span", { className: cx$2(styles$
|
|
9541
|
+
return /* @__PURE__ */ jsx("span", { className: cx$2(styles$u.addon, order2, small2 ? styles$u.small : ""), children });
|
|
9541
9542
|
};
|
|
9542
9543
|
function _typeof$2(o) {
|
|
9543
9544
|
"@babel/helpers - typeof";
|
|
@@ -15944,7 +15945,7 @@ function useStartupValidation() {
|
|
|
15944
15945
|
checkDoctype(document);
|
|
15945
15946
|
}, []);
|
|
15946
15947
|
}
|
|
15947
|
-
function usePrevious$
|
|
15948
|
+
function usePrevious$3(current) {
|
|
15948
15949
|
var ref2 = useRef(current);
|
|
15949
15950
|
useEffect(function() {
|
|
15950
15951
|
ref2.current = current;
|
|
@@ -16622,7 +16623,7 @@ function useTouchSensor(api) {
|
|
|
16622
16623
|
}
|
|
16623
16624
|
function useValidateSensorHooks(sensorHooks) {
|
|
16624
16625
|
useDev(function() {
|
|
16625
|
-
var previousRef = usePrevious$
|
|
16626
|
+
var previousRef = usePrevious$3(sensorHooks);
|
|
16626
16627
|
useDevSetupWarning(function() {
|
|
16627
16628
|
!(previousRef.current.length === sensorHooks.length) ? process.env.NODE_ENV !== "production" ? invariant$3(false, "Cannot change the amount of sensor hooks after mounting") : invariant$3(false) : void 0;
|
|
16628
16629
|
});
|
|
@@ -17034,7 +17035,7 @@ function App(props) {
|
|
|
17034
17035
|
var contextId = props.contextId, setCallbacks = props.setCallbacks, sensors = props.sensors, nonce = props.nonce, dragHandleUsageInstructions2 = props.dragHandleUsageInstructions;
|
|
17035
17036
|
var lazyStoreRef = useRef(null);
|
|
17036
17037
|
useStartupValidation();
|
|
17037
|
-
var lastPropsRef = usePrevious$
|
|
17038
|
+
var lastPropsRef = usePrevious$3(props);
|
|
17038
17039
|
var getResponders = useCallback(function() {
|
|
17039
17040
|
return createResponders(lastPropsRef.current);
|
|
17040
17041
|
}, [lastPropsRef]);
|
|
@@ -17386,7 +17387,7 @@ function useDroppablePublisher(args) {
|
|
|
17386
17387
|
var appContext = useRequiredContext(AppContext);
|
|
17387
17388
|
var uniqueId3 = useUniqueId("droppable");
|
|
17388
17389
|
var registry = appContext.registry, marshal = appContext.marshal;
|
|
17389
|
-
var previousRef = usePrevious$
|
|
17390
|
+
var previousRef = usePrevious$3(args);
|
|
17390
17391
|
var descriptor = useMemo(function() {
|
|
17391
17392
|
return {
|
|
17392
17393
|
id: args.droppableId,
|
|
@@ -19069,7 +19070,7 @@ const dimmer = "_dimmer_477i5_21";
|
|
|
19069
19070
|
const content$2 = "_content_477i5_44";
|
|
19070
19071
|
const text$1 = "_text_477i5_49";
|
|
19071
19072
|
const details$1 = "_details_477i5_53";
|
|
19072
|
-
const styles$
|
|
19073
|
+
const styles$t = {
|
|
19073
19074
|
loader,
|
|
19074
19075
|
fullViewPortSize,
|
|
19075
19076
|
cover,
|
|
@@ -19094,22 +19095,22 @@ const Loader = ({
|
|
|
19094
19095
|
return /* @__PURE__ */ jsx(
|
|
19095
19096
|
"div",
|
|
19096
19097
|
{
|
|
19097
|
-
className: cx$2(styles$
|
|
19098
|
-
[styles$
|
|
19098
|
+
className: cx$2(styles$t.loader, cover2 ? styles$t.cover : "", {
|
|
19099
|
+
[styles$t.fullViewPortSize]: fullViewPortSize2
|
|
19099
19100
|
}),
|
|
19100
19101
|
style: { width: width2, height: height2 },
|
|
19101
19102
|
"data-testid": testId,
|
|
19102
|
-
children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
19103
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$t.dimmer, style: { background: background2, color: color2 }, children: /* @__PURE__ */ jsxs(
|
|
19103
19104
|
"div",
|
|
19104
19105
|
{
|
|
19105
|
-
className: styles$
|
|
19106
|
+
className: styles$t.content,
|
|
19106
19107
|
"data-testid": testId && `${testId}-content`,
|
|
19107
19108
|
children: [
|
|
19108
19109
|
children,
|
|
19109
19110
|
text2 && /* @__PURE__ */ jsx(
|
|
19110
19111
|
"div",
|
|
19111
19112
|
{
|
|
19112
|
-
className: styles$
|
|
19113
|
+
className: styles$t.text,
|
|
19113
19114
|
"data-testid": testId && `${testId}-text`,
|
|
19114
19115
|
children: text2
|
|
19115
19116
|
}
|
|
@@ -19117,7 +19118,7 @@ const Loader = ({
|
|
|
19117
19118
|
details2 && /* @__PURE__ */ jsx(
|
|
19118
19119
|
"div",
|
|
19119
19120
|
{
|
|
19120
|
-
className: styles$
|
|
19121
|
+
className: styles$t.details,
|
|
19121
19122
|
"data-testid": testId && `${testId}-details`,
|
|
19122
19123
|
children: details2
|
|
19123
19124
|
}
|
|
@@ -19321,7 +19322,7 @@ const absolute = "_absolute_s49vk_143";
|
|
|
19321
19322
|
const legendToggle = "_legendToggle_s49vk_155";
|
|
19322
19323
|
const detailsText = "_detailsText_s49vk_165";
|
|
19323
19324
|
const footer$1 = "_footer_s49vk_169";
|
|
19324
|
-
const styles$
|
|
19325
|
+
const styles$s = {
|
|
19325
19326
|
inputInTable: inputInTable$7,
|
|
19326
19327
|
inputHover: inputHover$7,
|
|
19327
19328
|
inputFocus: inputFocus$7,
|
|
@@ -19360,9 +19361,9 @@ const Dismiss = ({ type, onClose, isInToast }) => {
|
|
|
19360
19361
|
"div",
|
|
19361
19362
|
{
|
|
19362
19363
|
className: cx$2(
|
|
19363
|
-
styles$
|
|
19364
|
-
isInToast ? styles$
|
|
19365
|
-
type === MessageType.INFO ? styles$
|
|
19364
|
+
styles$s.dismiss,
|
|
19365
|
+
isInToast ? styles$s.absolute : "",
|
|
19366
|
+
type === MessageType.INFO ? styles$s.info : type === MessageType.SUCCESS ? styles$s.success : type === MessageType.WARNING ? styles$s.warning : type === MessageType.ERROR ? styles$s.error : null
|
|
19366
19367
|
),
|
|
19367
19368
|
children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CLOSE, onClick: onClose })
|
|
19368
19369
|
}
|
|
@@ -19384,8 +19385,8 @@ const reducer$1 = (state, action2) => {
|
|
|
19384
19385
|
};
|
|
19385
19386
|
const Details = ({ details: details2, visible, dispatch }) => {
|
|
19386
19387
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
19387
|
-
/* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
19388
|
-
visible ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
19388
|
+
/* @__PURE__ */ jsx("div", { className: cx$2(styles$s.legendToggle), onClick: dispatch, children: visible ? "Hide details" : "Show details" }),
|
|
19389
|
+
visible ? /* @__PURE__ */ jsx("div", { className: styles$s.detailsText, children: details2 }) : null
|
|
19389
19390
|
] });
|
|
19390
19391
|
};
|
|
19391
19392
|
const DialogIcon = ({ type }) => {
|
|
@@ -19420,15 +19421,15 @@ const Message = ({ message: message2 }) => {
|
|
|
19420
19421
|
"div",
|
|
19421
19422
|
{
|
|
19422
19423
|
className: cx$2(
|
|
19423
|
-
styles$
|
|
19424
|
-
width2 ? styles$
|
|
19425
|
-
type === MessageType.SUCCESS ? styles$
|
|
19424
|
+
styles$s.container,
|
|
19425
|
+
width2 ? styles$s.block : null,
|
|
19426
|
+
type === MessageType.SUCCESS ? styles$s.success : type === MessageType.WARNING ? styles$s.warning : type === MessageType.ERROR ? styles$s.error : styles$s.info
|
|
19426
19427
|
),
|
|
19427
19428
|
style: { width: width2, maxHeight },
|
|
19428
19429
|
children: [
|
|
19429
|
-
/* @__PURE__ */ jsx("div", { children: icon2 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
19430
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
19431
|
-
heading2 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
19430
|
+
/* @__PURE__ */ jsx("div", { children: icon2 ? /* @__PURE__ */ jsx("div", { className: styles$s.icon, children: /* @__PURE__ */ jsx(DialogIcon, { type }) }) : null }),
|
|
19431
|
+
/* @__PURE__ */ jsxs("div", { className: styles$s.content, children: [
|
|
19432
|
+
heading2 ? /* @__PURE__ */ jsx("div", { className: styles$s.heading, children: heading2 }) : null,
|
|
19432
19433
|
/* @__PURE__ */ jsx("div", { children: content2 }),
|
|
19433
19434
|
details2 ? /* @__PURE__ */ jsx(
|
|
19434
19435
|
Details,
|
|
@@ -19438,7 +19439,7 @@ const Message = ({ message: message2 }) => {
|
|
|
19438
19439
|
dispatch: () => dispatch({ type: MessageToggle.TOGGLE_DETAILS })
|
|
19439
19440
|
}
|
|
19440
19441
|
) : null,
|
|
19441
|
-
!!footer2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
19442
|
+
!!footer2 && /* @__PURE__ */ jsx("div", { className: styles$s.footer, children: footer2 })
|
|
19442
19443
|
] }),
|
|
19443
19444
|
withDismiss ? /* @__PURE__ */ jsx(Dismiss, { type, onClose }) : null
|
|
19444
19445
|
]
|
|
@@ -19471,7 +19472,7 @@ const wrapper$2 = "_wrapper_sb0hc_1";
|
|
|
19471
19472
|
const contentContainer = "_contentContainer_sb0hc_15";
|
|
19472
19473
|
const centered = "_centered_sb0hc_24";
|
|
19473
19474
|
const newLine = "_newLine_sb0hc_28";
|
|
19474
|
-
const styles$
|
|
19475
|
+
const styles$r = {
|
|
19475
19476
|
wrapper: wrapper$2,
|
|
19476
19477
|
contentContainer,
|
|
19477
19478
|
centered,
|
|
@@ -19491,12 +19492,12 @@ const Wrapper = ({ children }) => {
|
|
|
19491
19492
|
}
|
|
19492
19493
|
}
|
|
19493
19494
|
}, []);
|
|
19494
|
-
return /* @__PURE__ */ jsx("div", { ref: wrapperRef, tabIndex: -1, className: cx$2(styles$
|
|
19495
|
+
return /* @__PURE__ */ jsx("div", { ref: wrapperRef, tabIndex: -1, className: cx$2(styles$r.wrapper), children });
|
|
19495
19496
|
};
|
|
19496
19497
|
const Content$2 = ({ children, width: width2, centered: centered2 }) => /* @__PURE__ */ jsx(
|
|
19497
19498
|
"div",
|
|
19498
19499
|
{
|
|
19499
|
-
className: cx$2(styles$
|
|
19500
|
+
className: cx$2(styles$r.contentContainer, centered2 ? styles$r.centered : ""),
|
|
19500
19501
|
style: { maxWidth: width2 },
|
|
19501
19502
|
children
|
|
19502
19503
|
}
|
|
@@ -19536,7 +19537,7 @@ const menu$1 = "_menu_12x4u_1";
|
|
|
19536
19537
|
const header = "_header_12x4u_11";
|
|
19537
19538
|
const item$3 = "_item_12x4u_27";
|
|
19538
19539
|
const heading$1 = "_heading_12x4u_32";
|
|
19539
|
-
const styles$
|
|
19540
|
+
const styles$q = {
|
|
19540
19541
|
menu: menu$1,
|
|
19541
19542
|
header,
|
|
19542
19543
|
item: item$3,
|
|
@@ -19547,9 +19548,9 @@ const Option$1 = ({
|
|
|
19547
19548
|
onChange
|
|
19548
19549
|
}) => {
|
|
19549
19550
|
const { key: key2, label: label2, selected: selected2 } = option2;
|
|
19550
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
19551
|
+
return /* @__PURE__ */ jsx("div", { className: styles$q.item, children: /* @__PURE__ */ jsx(CheckBox, { label: label2, noMargin: true, checked: selected2, onChange }) }, key2);
|
|
19551
19552
|
};
|
|
19552
|
-
const Heading$1 = ({ label: label2 }) => /* @__PURE__ */ jsx("div", { className: styles$
|
|
19553
|
+
const Heading$1 = ({ label: label2 }) => /* @__PURE__ */ jsx("div", { className: styles$q.heading, children: label2 });
|
|
19553
19554
|
var DropdownType = /* @__PURE__ */ ((DropdownType2) => {
|
|
19554
19555
|
DropdownType2["HEADING"] = "Heading";
|
|
19555
19556
|
DropdownType2["DIVIDER"] = "Divider";
|
|
@@ -19562,9 +19563,9 @@ const Layer$1 = ({
|
|
|
19562
19563
|
showHeader,
|
|
19563
19564
|
maxHeight
|
|
19564
19565
|
}) => {
|
|
19565
|
-
return /* @__PURE__ */ jsxs("div", { className: cx$2("menu", styles$
|
|
19566
|
+
return /* @__PURE__ */ jsxs("div", { className: cx$2("menu", styles$q.menu), style: { maxHeight }, children: [
|
|
19566
19567
|
showHeader && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
19567
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
19568
|
+
/* @__PURE__ */ jsxs("div", { className: styles$q.header, children: [
|
|
19568
19569
|
/* @__PURE__ */ jsx(
|
|
19569
19570
|
"a",
|
|
19570
19571
|
{
|
|
@@ -19667,7 +19668,7 @@ const OptionDropdown = ({
|
|
|
19667
19668
|
};
|
|
19668
19669
|
const page = "_page_beskc_1";
|
|
19669
19670
|
const scroll$1 = "_scroll_beskc_23";
|
|
19670
|
-
const styles$
|
|
19671
|
+
const styles$p = {
|
|
19671
19672
|
page,
|
|
19672
19673
|
scroll: scroll$1
|
|
19673
19674
|
};
|
|
@@ -19682,7 +19683,7 @@ const Page = ({
|
|
|
19682
19683
|
return /* @__PURE__ */ jsx(
|
|
19683
19684
|
"div",
|
|
19684
19685
|
{
|
|
19685
|
-
className: cx$2(styles$
|
|
19686
|
+
className: cx$2(styles$p.page, scroll3 ? styles$p.scroll : ""),
|
|
19686
19687
|
style: { left: left2, padding: padding2, top: top2 },
|
|
19687
19688
|
children
|
|
19688
19689
|
}
|
|
@@ -19705,7 +19706,7 @@ const right$3 = "_right_2ynxq_182";
|
|
|
19705
19706
|
const groupOrderFirst$1 = "_groupOrderFirst_2ynxq_193";
|
|
19706
19707
|
const groupOrderMiddle$1 = "_groupOrderMiddle_2ynxq_194";
|
|
19707
19708
|
const groupOrderLast$1 = "_groupOrderLast_2ynxq_198";
|
|
19708
|
-
const styles$
|
|
19709
|
+
const styles$o = {
|
|
19709
19710
|
inputInTable: inputInTable$6,
|
|
19710
19711
|
inputHover: inputHover$6,
|
|
19711
19712
|
inputFocus: inputFocus$6,
|
|
@@ -19793,11 +19794,11 @@ const NativeSelect = ({
|
|
|
19793
19794
|
if (groupOrder) {
|
|
19794
19795
|
switch (groupOrder) {
|
|
19795
19796
|
case GroupOrder.FIRST:
|
|
19796
|
-
return styles$
|
|
19797
|
+
return styles$o.groupOrderFirst;
|
|
19797
19798
|
case GroupOrder.LAST:
|
|
19798
|
-
return styles$
|
|
19799
|
+
return styles$o.groupOrderLast;
|
|
19799
19800
|
default:
|
|
19800
|
-
return styles$
|
|
19801
|
+
return styles$o.groupOrderMiddle;
|
|
19801
19802
|
}
|
|
19802
19803
|
}
|
|
19803
19804
|
return "";
|
|
@@ -19815,12 +19816,12 @@ const NativeSelect = ({
|
|
|
19815
19816
|
"select",
|
|
19816
19817
|
{
|
|
19817
19818
|
className: cx$2(
|
|
19818
|
-
styles$
|
|
19819
|
-
isUnselected ? styles$
|
|
19820
|
-
error2 ? styles$
|
|
19821
|
-
right2 ? styles$
|
|
19822
|
-
small2 ? styles$
|
|
19823
|
-
isInTable2 ? styles$
|
|
19819
|
+
styles$o.select,
|
|
19820
|
+
isUnselected ? styles$o.unSelected : "",
|
|
19821
|
+
error2 ? styles$o.error : warning2 ? styles$o.warning : "",
|
|
19822
|
+
right2 ? styles$o.right : "",
|
|
19823
|
+
small2 ? styles$o.small : "",
|
|
19824
|
+
isInTable2 ? styles$o.isInTable : "",
|
|
19824
19825
|
order2
|
|
19825
19826
|
),
|
|
19826
19827
|
style: {
|
|
@@ -20595,7 +20596,7 @@ const optionContent = "_optionContent_1lbvo_92";
|
|
|
20595
20596
|
const label$5 = "_label_1lbvo_97";
|
|
20596
20597
|
const icon$2 = "_icon_1lbvo_104";
|
|
20597
20598
|
const details = "_details_1lbvo_109";
|
|
20598
|
-
const styles$
|
|
20599
|
+
const styles$n = {
|
|
20599
20600
|
layerContainer,
|
|
20600
20601
|
layer,
|
|
20601
20602
|
small: small$5,
|
|
@@ -20616,7 +20617,7 @@ const Heading = ({ label: label2 }) => {
|
|
|
20616
20617
|
"div",
|
|
20617
20618
|
{
|
|
20618
20619
|
onClick: (evt) => evt.stopPropagation(),
|
|
20619
|
-
className: styles$
|
|
20620
|
+
className: styles$n.heading,
|
|
20620
20621
|
children: label2
|
|
20621
20622
|
}
|
|
20622
20623
|
);
|
|
@@ -20637,21 +20638,21 @@ const Option = ({
|
|
|
20637
20638
|
"div",
|
|
20638
20639
|
{
|
|
20639
20640
|
className: cx$2(
|
|
20640
|
-
styles$
|
|
20641
|
-
disabled2 ? styles$
|
|
20642
|
-
selected2 ? styles$
|
|
20643
|
-
focused2 ? styles$
|
|
20641
|
+
styles$n.option,
|
|
20642
|
+
disabled2 ? styles$n.disabled : "",
|
|
20643
|
+
selected2 ? styles$n.selected : "",
|
|
20644
|
+
focused2 ? styles$n.focused : ""
|
|
20644
20645
|
),
|
|
20645
20646
|
onClick: !disabled2 && onSelectOption ? onSelectOption : void 0,
|
|
20646
20647
|
"data-testid": testId,
|
|
20647
20648
|
children: [
|
|
20648
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
20649
|
+
/* @__PURE__ */ jsx("div", { className: styles$n.optionContent, children: /* @__PURE__ */ jsxs("span", { className: styles$n.label, title: label2, children: [
|
|
20649
20650
|
label2,
|
|
20650
|
-
icon2 && /* @__PURE__ */ jsx("span", { className: styles$
|
|
20651
|
+
icon2 && /* @__PURE__ */ jsx("span", { className: styles$n.icon, children: icon2 })
|
|
20651
20652
|
] }) }),
|
|
20652
|
-
details2 && /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
20653
|
-
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
20654
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
20653
|
+
details2 && /* @__PURE__ */ jsx("div", { className: cx$2(styles$n.details), children: /* @__PURE__ */ jsx(Text, { faint: true, children: details2 }) }),
|
|
20654
|
+
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsx("div", { className: cx$2(styles$n.actions), children: /* @__PURE__ */ jsx(Actions, { actions: actions2, closeLayer }) }),
|
|
20655
|
+
/* @__PURE__ */ jsx("span", { className: styles$n.check, children: selected2 ? /* @__PURE__ */ jsx(Icon, { icon: IconType.CHECK }) : null })
|
|
20655
20656
|
]
|
|
20656
20657
|
}
|
|
20657
20658
|
);
|
|
@@ -20763,8 +20764,8 @@ const Layer = ({
|
|
|
20763
20764
|
"div",
|
|
20764
20765
|
{
|
|
20765
20766
|
"data-testid": testId,
|
|
20766
|
-
className: cx$2(styles$
|
|
20767
|
-
children: !sections.length ? /* @__PURE__ */ jsx("ul", { children: /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
20767
|
+
className: cx$2(styles$n.layer, small2 && styles$n.small),
|
|
20768
|
+
children: !sections.length ? /* @__PURE__ */ jsx("ul", { children: /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("div", { className: styles$n.message, style: { width: width2 }, children: "No matches" }) }) }) : /* @__PURE__ */ jsx(
|
|
20768
20769
|
FixedSizeList,
|
|
20769
20770
|
{
|
|
20770
20771
|
ref: listRef,
|
|
@@ -20826,7 +20827,7 @@ const groupOrderFirst = "_groupOrderFirst_1qfoj_297";
|
|
|
20826
20827
|
const groupOrderMiddle = "_groupOrderMiddle_1qfoj_298";
|
|
20827
20828
|
const groupOrderLast = "_groupOrderLast_1qfoj_302";
|
|
20828
20829
|
const detailedLabel = "_detailedLabel_1qfoj_307";
|
|
20829
|
-
const styles$
|
|
20830
|
+
const styles$m = {
|
|
20830
20831
|
inputInTable: inputInTable$5,
|
|
20831
20832
|
inputHover: inputHover$5,
|
|
20832
20833
|
inputFocus: inputFocus$5,
|
|
@@ -20884,11 +20885,11 @@ const MultiSelectedOptions = ({
|
|
|
20884
20885
|
setDisplayedOptions(displayed);
|
|
20885
20886
|
setOverflowOptions(overflow);
|
|
20886
20887
|
}, [selectedOptions, isFontLoaded, width2]);
|
|
20887
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
20888
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$m.multiOptions, children: [
|
|
20888
20889
|
displayedOptions.filter((option2) => option2 && option2.label).map((option2, index2) => /* @__PURE__ */ jsx(
|
|
20889
20890
|
"span",
|
|
20890
20891
|
{
|
|
20891
|
-
className: styles$
|
|
20892
|
+
className: styles$m.multiOption,
|
|
20892
20893
|
onClick: (evt) => {
|
|
20893
20894
|
evt.stopPropagation();
|
|
20894
20895
|
},
|
|
@@ -20901,7 +20902,7 @@ const MultiSelectedOptions = ({
|
|
|
20901
20902
|
{
|
|
20902
20903
|
text: overflowOptions.map((option2, index2) => /* @__PURE__ */ jsx("div", { children: option2.label }, index2)),
|
|
20903
20904
|
display: "inline-flex",
|
|
20904
|
-
children: /* @__PURE__ */ jsx("span", { className: styles$
|
|
20905
|
+
children: /* @__PURE__ */ jsx("span", { className: styles$m.multiOption, children: displayedOptions.length ? `+${overflowOptions.length}` : `${overflowOptions.length} items` })
|
|
20905
20906
|
}
|
|
20906
20907
|
)
|
|
20907
20908
|
] });
|
|
@@ -20927,22 +20928,22 @@ const Input = ({
|
|
|
20927
20928
|
const inputWidth = ((_b = inputRef.current) == null ? void 0 : _b.offsetWidth) || 0;
|
|
20928
20929
|
return containerWidth - inputWidth;
|
|
20929
20930
|
};
|
|
20930
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
20931
|
-
!hasSelectedValues ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
20931
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$m.triggerInputContainer, ref: containerRef, children: [
|
|
20932
|
+
!hasSelectedValues ? /* @__PURE__ */ jsx("span", { className: styles$m.placeHolder, children: !(searchValue == null ? void 0 : searchValue.length) ? placeholder3 : "" }) : isMulti2 ? /* @__PURE__ */ jsx(
|
|
20932
20933
|
MultiSelectedOptions,
|
|
20933
20934
|
{
|
|
20934
20935
|
selectedOptions,
|
|
20935
20936
|
small: small2,
|
|
20936
20937
|
width: getMultiOptionsWidth()
|
|
20937
20938
|
}
|
|
20938
|
-
) : /* @__PURE__ */ jsx("span", { className: styles$
|
|
20939
|
+
) : /* @__PURE__ */ jsx("span", { className: styles$m.selectedSingleValue, children: !(searchValue == null ? void 0 : searchValue.length) ? selectedOptions == null ? void 0 : selectedOptions.label : "" }),
|
|
20939
20940
|
searchable ? /* @__PURE__ */ jsx(
|
|
20940
20941
|
"input",
|
|
20941
20942
|
{
|
|
20942
20943
|
tabIndex: -1,
|
|
20943
20944
|
ref: inputRef,
|
|
20944
20945
|
size: inputSize,
|
|
20945
|
-
className: cx$2(styles$
|
|
20946
|
+
className: cx$2(styles$m.input, error2 ? styles$m.error : ""),
|
|
20946
20947
|
value: searchValue,
|
|
20947
20948
|
onChange: (evt) => onChange(evt.target.value)
|
|
20948
20949
|
}
|
|
@@ -20986,18 +20987,18 @@ const Trigger = ({
|
|
|
20986
20987
|
if (groupOrder) {
|
|
20987
20988
|
switch (groupOrder) {
|
|
20988
20989
|
case GroupOrder.FIRST:
|
|
20989
|
-
return styles$
|
|
20990
|
+
return styles$m.groupOrderFirst;
|
|
20990
20991
|
case GroupOrder.LAST:
|
|
20991
|
-
return styles$
|
|
20992
|
+
return styles$m.groupOrderLast;
|
|
20992
20993
|
default:
|
|
20993
|
-
return styles$
|
|
20994
|
+
return styles$m.groupOrderMiddle;
|
|
20994
20995
|
}
|
|
20995
20996
|
}
|
|
20996
20997
|
return "";
|
|
20997
20998
|
})();
|
|
20998
20999
|
const selectedOptionsWithDetails = !Array.isArray(selectedOptions) && (selectedOptions == null ? void 0 : selectedOptions.details) ? {
|
|
20999
21000
|
...selectedOptions,
|
|
21000
|
-
label: /* @__PURE__ */ jsxs("div", { className: cx$2(styles$
|
|
21001
|
+
label: /* @__PURE__ */ jsxs("div", { className: cx$2(styles$m.detailedLabel), children: [
|
|
21001
21002
|
/* @__PURE__ */ jsx(Text, { children: selectedOptions.label }),
|
|
21002
21003
|
/* @__PURE__ */ jsx(Text, { muted: true, children: selectedOptions.details })
|
|
21003
21004
|
] })
|
|
@@ -21010,13 +21011,13 @@ const Trigger = ({
|
|
|
21010
21011
|
ref: triggerRef,
|
|
21011
21012
|
tabIndex,
|
|
21012
21013
|
className: cx$2(
|
|
21013
|
-
styles$
|
|
21014
|
-
isOpen2 ? styles$
|
|
21015
|
-
error2 ? styles$
|
|
21016
|
-
disabled2 ? styles$
|
|
21017
|
-
small2 ? styles$
|
|
21018
|
-
isInTable2 ? styles$
|
|
21019
|
-
right2 ? styles$
|
|
21014
|
+
styles$m.trigger,
|
|
21015
|
+
isOpen2 ? styles$m.isOpen : "",
|
|
21016
|
+
error2 ? styles$m.error : warning2 ? styles$m.warning : "",
|
|
21017
|
+
disabled2 ? styles$m.disabled : "",
|
|
21018
|
+
small2 ? styles$m.small : "",
|
|
21019
|
+
isInTable2 ? styles$m.isInTable : "",
|
|
21020
|
+
right2 ? styles$m.right : "",
|
|
21020
21021
|
order2
|
|
21021
21022
|
),
|
|
21022
21023
|
onClick: (evt) => {
|
|
@@ -21043,12 +21044,12 @@ const Trigger = ({
|
|
|
21043
21044
|
small: small2
|
|
21044
21045
|
}
|
|
21045
21046
|
),
|
|
21046
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
21047
|
+
/* @__PURE__ */ jsx("span", { className: styles$m.icons, children: canClear ? /* @__PURE__ */ jsx(
|
|
21047
21048
|
"span",
|
|
21048
21049
|
{
|
|
21049
21050
|
className: cx$2(
|
|
21050
|
-
styles$
|
|
21051
|
-
clearAllIsFocused ? styles$
|
|
21051
|
+
styles$m.clearAll,
|
|
21052
|
+
clearAllIsFocused ? styles$m.focus : ""
|
|
21052
21053
|
),
|
|
21053
21054
|
onClick: (evt) => {
|
|
21054
21055
|
evt.stopPropagation();
|
|
@@ -21058,7 +21059,7 @@ const Trigger = ({
|
|
|
21058
21059
|
},
|
|
21059
21060
|
children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CLOSE })
|
|
21060
21061
|
}
|
|
21061
|
-
) : /* @__PURE__ */ jsx("span", { className: cx$2(styles$
|
|
21062
|
+
) : /* @__PURE__ */ jsx("span", { className: cx$2(styles$m.iconOpen), children: /* @__PURE__ */ jsx(Icon, { icon: "chevron down" }) }) })
|
|
21062
21063
|
]
|
|
21063
21064
|
}
|
|
21064
21065
|
)
|
|
@@ -21599,7 +21600,7 @@ const CustomSelect = (props) => {
|
|
|
21599
21600
|
}
|
|
21600
21601
|
),
|
|
21601
21602
|
state.isLayerOpen && renderLayer(
|
|
21602
|
-
/* @__PURE__ */ jsx("div", { ...layerProps, className: styles$
|
|
21603
|
+
/* @__PURE__ */ jsx("div", { ...layerProps, className: styles$n.layerContainer, children: /* @__PURE__ */ jsx(
|
|
21603
21604
|
Layer,
|
|
21604
21605
|
{
|
|
21605
21606
|
listRef,
|
|
@@ -21848,7 +21849,7 @@ const validateSelectedPage = (selectedPage, numPages, errorMessageTemplate = "Se
|
|
|
21848
21849
|
return valid;
|
|
21849
21850
|
};
|
|
21850
21851
|
const paginationContainer = "_paginationContainer_1tmz4_1";
|
|
21851
|
-
const styles$
|
|
21852
|
+
const styles$l = {
|
|
21852
21853
|
paginationContainer
|
|
21853
21854
|
};
|
|
21854
21855
|
const Pagination = ({ pagination }) => {
|
|
@@ -21885,7 +21886,7 @@ const Pagination = ({ pagination }) => {
|
|
|
21885
21886
|
onSelectPage(Number(value));
|
|
21886
21887
|
}
|
|
21887
21888
|
};
|
|
21888
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
21889
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$l.paginationContainer, children: [
|
|
21889
21890
|
rowsPerPage && /* @__PURE__ */ jsx("div", { style: { flexShrink: 0 }, children: /* @__PURE__ */ jsx(
|
|
21890
21891
|
Select,
|
|
21891
21892
|
{
|
|
@@ -21970,7 +21971,7 @@ const Pagination = ({ pagination }) => {
|
|
|
21970
21971
|
const toggleBox = "_toggleBox_lhie5_1";
|
|
21971
21972
|
const fullWidthStyleFix = "_fullWidthStyleFix_lhie5_8";
|
|
21972
21973
|
const dismiss = "_dismiss_lhie5_13";
|
|
21973
|
-
const styles$
|
|
21974
|
+
const styles$k = {
|
|
21974
21975
|
toggleBox,
|
|
21975
21976
|
fullWidthStyleFix,
|
|
21976
21977
|
dismiss
|
|
@@ -22014,7 +22015,7 @@ const Popover = ({
|
|
|
22014
22015
|
/* @__PURE__ */ jsxs(
|
|
22015
22016
|
"div",
|
|
22016
22017
|
{
|
|
22017
|
-
className: fullWidth ? cx$2(styles$
|
|
22018
|
+
className: fullWidth ? cx$2(styles$k.toggleBox, styles$k.fullWidthStyleFix) : cx$2(styles$k.toggleBox),
|
|
22018
22019
|
...layerProps,
|
|
22019
22020
|
children: [
|
|
22020
22021
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -22022,7 +22023,7 @@ const Popover = ({
|
|
|
22022
22023
|
content2,
|
|
22023
22024
|
{ close: close2 }
|
|
22024
22025
|
) : content2,
|
|
22025
|
-
showCloseButton && /* @__PURE__ */ jsx("div", { className: styles$
|
|
22026
|
+
showCloseButton && /* @__PURE__ */ jsx("div", { className: styles$k.dismiss, children: /* @__PURE__ */ jsx(Button$1, { small: true, round: true, onClick: close2, icon: IconType.CLOSE }) })
|
|
22026
22027
|
] }),
|
|
22027
22028
|
/* @__PURE__ */ jsx(
|
|
22028
22029
|
Arrow,
|
|
@@ -22041,7 +22042,7 @@ const Popover = ({
|
|
|
22041
22042
|
] });
|
|
22042
22043
|
};
|
|
22043
22044
|
const printHeader = "_printHeader_o7xxx_1";
|
|
22044
|
-
const styles$
|
|
22045
|
+
const styles$j = {
|
|
22045
22046
|
printHeader
|
|
22046
22047
|
};
|
|
22047
22048
|
const PrintHeader = ({
|
|
@@ -22053,7 +22054,7 @@ const PrintHeader = ({
|
|
|
22053
22054
|
{
|
|
22054
22055
|
src: logo2,
|
|
22055
22056
|
alt,
|
|
22056
|
-
className: styles$
|
|
22057
|
+
className: styles$j.printHeader,
|
|
22057
22058
|
style: { width: logoWidth }
|
|
22058
22059
|
}
|
|
22059
22060
|
);
|
|
@@ -22067,7 +22068,7 @@ const orange = "_orange_23ror_30";
|
|
|
22067
22068
|
const yellow = "_yellow_23ror_33";
|
|
22068
22069
|
const green = "_green_23ror_36";
|
|
22069
22070
|
const label$3 = "_label_23ror_39";
|
|
22070
|
-
const styles$
|
|
22071
|
+
const styles$i = {
|
|
22071
22072
|
progress: progress$1,
|
|
22072
22073
|
inverted,
|
|
22073
22074
|
bar,
|
|
@@ -22081,14 +22082,14 @@ const styles$h = {
|
|
|
22081
22082
|
};
|
|
22082
22083
|
const getColor = (perct) => {
|
|
22083
22084
|
if (perct < 20)
|
|
22084
|
-
return styles$
|
|
22085
|
+
return styles$i.grey;
|
|
22085
22086
|
if (perct < 40)
|
|
22086
|
-
return styles$
|
|
22087
|
+
return styles$i.red;
|
|
22087
22088
|
if (perct < 60)
|
|
22088
|
-
return styles$
|
|
22089
|
+
return styles$i.orange;
|
|
22089
22090
|
if (perct < 80)
|
|
22090
|
-
return styles$
|
|
22091
|
-
return styles$
|
|
22091
|
+
return styles$i.yellow;
|
|
22092
|
+
return styles$i.green;
|
|
22092
22093
|
};
|
|
22093
22094
|
const ProgressBar$1 = ({
|
|
22094
22095
|
width: width2 = "auto",
|
|
@@ -22101,21 +22102,21 @@ const ProgressBar$1 = ({
|
|
|
22101
22102
|
return /* @__PURE__ */ jsx("div", { style: { width: width2 }, "data-percent": percentage, children: /* @__PURE__ */ jsxs(
|
|
22102
22103
|
"div",
|
|
22103
22104
|
{
|
|
22104
|
-
className: cx$2(styles$
|
|
22105
|
+
className: cx$2(styles$i.progress, inverted2 ? styles$i.inverted : ""),
|
|
22105
22106
|
style: { width: width2 },
|
|
22106
22107
|
children: [
|
|
22107
22108
|
/* @__PURE__ */ jsx(
|
|
22108
22109
|
"div",
|
|
22109
22110
|
{
|
|
22110
22111
|
className: cx$2(
|
|
22111
|
-
styles$
|
|
22112
|
-
showProgressColors ? getColor(percentage) : colored2 ? styles$
|
|
22112
|
+
styles$i.bar,
|
|
22113
|
+
showProgressColors ? getColor(percentage) : colored2 ? styles$i.colored : ""
|
|
22113
22114
|
),
|
|
22114
22115
|
style: { width: `${percentage}%` },
|
|
22115
|
-
children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
22116
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$i.label, children: !noLabel2 && `${percentage}%` })
|
|
22116
22117
|
}
|
|
22117
22118
|
),
|
|
22118
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
22119
|
+
/* @__PURE__ */ jsx("div", { className: styles$i.label, children: !noLabel2 && `${percentage}%` })
|
|
22119
22120
|
]
|
|
22120
22121
|
}
|
|
22121
22122
|
) });
|
|
@@ -22129,7 +22130,7 @@ const noMargin$1 = "_noMargin_1fbik_32";
|
|
|
22129
22130
|
const disabled$2 = "_disabled_1fbik_90";
|
|
22130
22131
|
const isInTable = "_isInTable_1fbik_106";
|
|
22131
22132
|
const helpIconEnabled$1 = "_helpIconEnabled_1fbik_111";
|
|
22132
|
-
const styles$
|
|
22133
|
+
const styles$h = {
|
|
22133
22134
|
wrapper: wrapper$1,
|
|
22134
22135
|
inline: inline$1,
|
|
22135
22136
|
radio,
|
|
@@ -22158,10 +22159,10 @@ const RadioInput = ({
|
|
|
22158
22159
|
"div",
|
|
22159
22160
|
{
|
|
22160
22161
|
className: cx$2(
|
|
22161
|
-
styles$
|
|
22162
|
-
disabled2 ? styles$
|
|
22163
|
-
small2 ? styles$
|
|
22164
|
-
noMargin2 ? styles$
|
|
22162
|
+
styles$h.radio,
|
|
22163
|
+
disabled2 ? styles$h.disabled : null,
|
|
22164
|
+
small2 ? styles$h.small : null,
|
|
22165
|
+
noMargin2 ? styles$h.noMargin : null
|
|
22165
22166
|
),
|
|
22166
22167
|
onClick: onChange,
|
|
22167
22168
|
"data-testid": testId,
|
|
@@ -22178,7 +22179,7 @@ const RadioInput = ({
|
|
|
22178
22179
|
}
|
|
22179
22180
|
),
|
|
22180
22181
|
/* @__PURE__ */ jsx("label", { "data-name": name2, "data-value": value, children: label2 }),
|
|
22181
|
-
showHelp && /* @__PURE__ */ jsx("div", { className: styles$
|
|
22182
|
+
showHelp && /* @__PURE__ */ jsx("div", { className: styles$h.helpIconEnabled, onClick: onClickHelp, children: /* @__PURE__ */ jsx(HelpIcon, { text: helpText }) })
|
|
22182
22183
|
]
|
|
22183
22184
|
}
|
|
22184
22185
|
);
|
|
@@ -22218,13 +22219,13 @@ const RadioButton = ({
|
|
|
22218
22219
|
"div",
|
|
22219
22220
|
{
|
|
22220
22221
|
className: cx$2(
|
|
22221
|
-
styles$
|
|
22222
|
-
inline2 ? styles$
|
|
22223
|
-
classForContainer === "inline fields" ? styles$
|
|
22222
|
+
styles$h.wrapper,
|
|
22223
|
+
inline2 ? styles$h.inline : null,
|
|
22224
|
+
classForContainer === "inline fields" ? styles$h.inline : null
|
|
22224
22225
|
//deprecated
|
|
22225
22226
|
),
|
|
22226
22227
|
children: [
|
|
22227
|
-
mainLabel && /* @__PURE__ */ jsx("label", { className: cx$2(inline2 && styles$
|
|
22228
|
+
mainLabel && /* @__PURE__ */ jsx("label", { className: cx$2(inline2 && styles$h.labelMargin), children: label2 }),
|
|
22228
22229
|
options.map(
|
|
22229
22230
|
(option2, index2) => {
|
|
22230
22231
|
const selected2 = option2.checked || option2.value === selectedValue || false;
|
|
@@ -49746,7 +49747,7 @@ function createContextHook(useHook) {
|
|
|
49746
49747
|
function contextHookFactory(DefaultContext2) {
|
|
49747
49748
|
return (selector, equalityCheck) => {
|
|
49748
49749
|
const context2 = useContext(DefaultContext2);
|
|
49749
|
-
const previousContext = usePrevious$
|
|
49750
|
+
const previousContext = usePrevious$2(context2);
|
|
49750
49751
|
if (!context2) {
|
|
49751
49752
|
throw new Error(
|
|
49752
49753
|
"`useContextHook` must be placed inside the `Provider` returned by the `createContextState` method"
|
|
@@ -49768,7 +49769,7 @@ function contextHookFactory(DefaultContext2) {
|
|
|
49768
49769
|
return equalityCheck(previousValue, value) ? previousValue : value;
|
|
49769
49770
|
};
|
|
49770
49771
|
}
|
|
49771
|
-
function usePrevious$
|
|
49772
|
+
function usePrevious$2(value) {
|
|
49772
49773
|
const ref2 = useRef();
|
|
49773
49774
|
useIsomorphicLayoutEffect$3(() => {
|
|
49774
49775
|
ref2.current = value;
|
|
@@ -52268,7 +52269,7 @@ var ReactFramework = class extends Framework {
|
|
|
52268
52269
|
};
|
|
52269
52270
|
_editorRef = /* @__PURE__ */ new WeakMap();
|
|
52270
52271
|
var useIsomorphicLayoutEffect$2 = typeof document !== "undefined" ? useLayoutEffect$1 : useEffect;
|
|
52271
|
-
function usePrevious(value) {
|
|
52272
|
+
function usePrevious$1(value) {
|
|
52272
52273
|
const ref2 = useRef();
|
|
52273
52274
|
useIsomorphicLayoutEffect$2(() => {
|
|
52274
52275
|
ref2.current = value;
|
|
@@ -52322,7 +52323,7 @@ function useFramework(props) {
|
|
|
52322
52323
|
function useControlledEditor(framework) {
|
|
52323
52324
|
const { state } = framework.props;
|
|
52324
52325
|
const isControlledRef = useRef(!!state);
|
|
52325
|
-
const previousValue = usePrevious(state);
|
|
52326
|
+
const previousValue = usePrevious$1(state);
|
|
52326
52327
|
useIsomorphicLayoutEffect$2(() => {
|
|
52327
52328
|
const validUpdate = state ? isControlledRef.current === true : isControlledRef.current === false;
|
|
52328
52329
|
invariant$2(validUpdate, {
|
|
@@ -52380,7 +52381,7 @@ function Remirror(props) {
|
|
|
52380
52381
|
const all = "";
|
|
52381
52382
|
const richTextToolbar = "_richTextToolbar_1gbkk_1";
|
|
52382
52383
|
const richTextToolbarContainer = "_richTextToolbarContainer_1gbkk_5";
|
|
52383
|
-
const styles$
|
|
52384
|
+
const styles$g = {
|
|
52384
52385
|
richTextToolbar,
|
|
52385
52386
|
richTextToolbarContainer
|
|
52386
52387
|
};
|
|
@@ -52432,8 +52433,8 @@ const RichTextToolbar = ({
|
|
|
52432
52433
|
active: active2.orderedList()
|
|
52433
52434
|
}
|
|
52434
52435
|
];
|
|
52435
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
52436
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
52436
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$g.richTextToolbarContainer, children: [
|
|
52437
|
+
/* @__PURE__ */ jsx("div", { className: styles$g.richTextToolbar, children: items.map((item2, index2) => /* @__PURE__ */ jsx(
|
|
52437
52438
|
Button$1,
|
|
52438
52439
|
{
|
|
52439
52440
|
small: true,
|
|
@@ -52461,7 +52462,7 @@ const inputWarning$4 = "_inputWarning_ta5ga_26";
|
|
|
52461
52462
|
const inputDisabled$4 = "_inputDisabled_ta5ga_61";
|
|
52462
52463
|
const hideScrollbars$4 = "_hideScrollbars_ta5ga_67";
|
|
52463
52464
|
const richTextInput = "_richTextInput_ta5ga_77";
|
|
52464
|
-
const styles$
|
|
52465
|
+
const styles$f = {
|
|
52465
52466
|
inputInTable: inputInTable$4,
|
|
52466
52467
|
inputHover: inputHover$4,
|
|
52467
52468
|
inputFocus: inputFocus$4,
|
|
@@ -52497,7 +52498,7 @@ const RichTextInput = forwardRef(
|
|
|
52497
52498
|
}
|
|
52498
52499
|
setState(state2);
|
|
52499
52500
|
};
|
|
52500
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
52501
|
+
return /* @__PURE__ */ jsx("div", { className: styles$f.richTextInput, children: /* @__PURE__ */ jsxs(
|
|
52501
52502
|
Remirror,
|
|
52502
52503
|
{
|
|
52503
52504
|
manager,
|
|
@@ -52520,7 +52521,7 @@ const RichTextInput = forwardRef(
|
|
|
52520
52521
|
}
|
|
52521
52522
|
);
|
|
52522
52523
|
const row = "_row_n16je_1";
|
|
52523
|
-
const styles$
|
|
52524
|
+
const styles$e = {
|
|
52524
52525
|
row
|
|
52525
52526
|
};
|
|
52526
52527
|
const Row$1 = ({
|
|
@@ -52541,7 +52542,7 @@ const Row$1 = ({
|
|
|
52541
52542
|
return /* @__PURE__ */ jsx(
|
|
52542
52543
|
"div",
|
|
52543
52544
|
{
|
|
52544
|
-
className: cx$2(styles$
|
|
52545
|
+
className: cx$2(styles$e.row),
|
|
52545
52546
|
style: {
|
|
52546
52547
|
alignItems,
|
|
52547
52548
|
justifyContent,
|
|
@@ -52667,7 +52668,7 @@ const item$2 = "_item_1ube5_140";
|
|
|
52667
52668
|
const experimental = "_experimental_1ube5_155";
|
|
52668
52669
|
const active$2 = "_active_1ube5_159";
|
|
52669
52670
|
const icon$1 = "_icon_1ube5_163";
|
|
52670
|
-
const styles$
|
|
52671
|
+
const styles$d = {
|
|
52671
52672
|
inputInTable: inputInTable$3,
|
|
52672
52673
|
inputHover: inputHover$3,
|
|
52673
52674
|
inputFocus: inputFocus$3,
|
|
@@ -52700,10 +52701,10 @@ const TooltipIcon = memo(
|
|
|
52700
52701
|
fontSize: 16,
|
|
52701
52702
|
padding: "var(--padding-sm)",
|
|
52702
52703
|
display: "block",
|
|
52703
|
-
children: /* @__PURE__ */ jsx("span", { className: styles$
|
|
52704
|
+
children: /* @__PURE__ */ jsx("span", { className: styles$d.icon, children: /* @__PURE__ */ jsx(Badge, { small: true, title: invalid ? "!" : void 0, margin: 4, children: /* @__PURE__ */ jsx(Icon, { icon: icon2 }) }) })
|
|
52704
52705
|
}
|
|
52705
52706
|
),
|
|
52706
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
52707
|
+
/* @__PURE__ */ jsx("span", { className: styles$d.label, children: label2 })
|
|
52707
52708
|
] });
|
|
52708
52709
|
},
|
|
52709
52710
|
(prevProps, nextProps) => isEqual$1(prevProps, nextProps)
|
|
@@ -52715,16 +52716,16 @@ const Link$1 = ({
|
|
|
52715
52716
|
onClick,
|
|
52716
52717
|
testId
|
|
52717
52718
|
}) => {
|
|
52718
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
52719
|
+
return /* @__PURE__ */ jsx("div", { className: styles$d.list, children: items.map((link2, i) => {
|
|
52719
52720
|
const key2 = `${sectionIndex}_${i}`;
|
|
52720
52721
|
return /* @__PURE__ */ jsx(
|
|
52721
52722
|
"a",
|
|
52722
52723
|
{
|
|
52723
52724
|
href: link2.value,
|
|
52724
52725
|
className: cx$2(
|
|
52725
|
-
styles$
|
|
52726
|
-
link2.isActive ? styles$
|
|
52727
|
-
link2.isExperimental ? styles$
|
|
52726
|
+
styles$d.item,
|
|
52727
|
+
link2.isActive ? styles$d.active : "",
|
|
52728
|
+
link2.isExperimental ? styles$d.experimental : ""
|
|
52728
52729
|
),
|
|
52729
52730
|
onClick: (evt) => onClick(evt, link2.value, link2.label, link2.onClick),
|
|
52730
52731
|
"data-testid": testId,
|
|
@@ -52749,7 +52750,7 @@ const Sections = ({
|
|
|
52749
52750
|
onClick
|
|
52750
52751
|
}) => {
|
|
52751
52752
|
return /* @__PURE__ */ jsx(Fragment$1, { children: sections.map((section2, i) => /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
52752
|
-
/* @__PURE__ */ jsx("h5", { className: styles$
|
|
52753
|
+
/* @__PURE__ */ jsx("h5", { className: styles$d.subtitle, children: section2.heading.toUpperCase() }),
|
|
52753
52754
|
/* @__PURE__ */ jsx(
|
|
52754
52755
|
Link$1,
|
|
52755
52756
|
{
|
|
@@ -52805,8 +52806,8 @@ const SideBar = memo(
|
|
|
52805
52806
|
icon: IconType.LEFT
|
|
52806
52807
|
}
|
|
52807
52808
|
),
|
|
52808
|
-
children: /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
52809
|
-
/* @__PURE__ */ jsx("h4", { className: styles$
|
|
52809
|
+
children: /* @__PURE__ */ jsx("div", { className: cx$2(styles$d.sidebar, !isOpen2 ? styles$d.collapsed : ""), children: visible && /* @__PURE__ */ jsxs("div", { className: styles$d.inner, children: [
|
|
52810
|
+
/* @__PURE__ */ jsx("h4", { className: styles$d.title, children: options.title }),
|
|
52810
52811
|
/* @__PURE__ */ jsx(
|
|
52811
52812
|
Sections,
|
|
52812
52813
|
{
|
|
@@ -55274,7 +55275,7 @@ const vertical = "_vertical_1a936_13";
|
|
|
55274
55275
|
const hasArrows = "_hasArrows_1a936_17";
|
|
55275
55276
|
const button$1 = "_button_1a936_21";
|
|
55276
55277
|
const label$1 = "_label_1a936_24";
|
|
55277
|
-
const styles$
|
|
55278
|
+
const styles$c = {
|
|
55278
55279
|
container,
|
|
55279
55280
|
small: small$2,
|
|
55280
55281
|
hasMarks,
|
|
@@ -55326,7 +55327,7 @@ const Slider = ({
|
|
|
55326
55327
|
}
|
|
55327
55328
|
});
|
|
55328
55329
|
};
|
|
55329
|
-
const ButtonMin = () => /* @__PURE__ */ jsx("div", { className: styles$
|
|
55330
|
+
const ButtonMin = () => /* @__PURE__ */ jsx("div", { className: styles$c.button, children: /* @__PURE__ */ jsx(
|
|
55330
55331
|
Button$1,
|
|
55331
55332
|
{
|
|
55332
55333
|
basic: true,
|
|
@@ -55337,7 +55338,7 @@ const Slider = ({
|
|
|
55337
55338
|
icon: IconType.FAST_BACKWARD
|
|
55338
55339
|
}
|
|
55339
55340
|
) });
|
|
55340
|
-
const ButtonMax = () => /* @__PURE__ */ jsx("div", { className: styles$
|
|
55341
|
+
const ButtonMax = () => /* @__PURE__ */ jsx("div", { className: styles$c.button, children: /* @__PURE__ */ jsx(
|
|
55341
55342
|
Button$1,
|
|
55342
55343
|
{
|
|
55343
55344
|
basic: true,
|
|
@@ -55352,10 +55353,10 @@ const Slider = ({
|
|
|
55352
55353
|
"div",
|
|
55353
55354
|
{
|
|
55354
55355
|
className: cx$2(
|
|
55355
|
-
styles$
|
|
55356
|
-
small2 ? styles$
|
|
55357
|
-
vertical2.enabled ? styles$
|
|
55358
|
-
!_$1.isEmpty(marks) ? styles$
|
|
55356
|
+
styles$c.container,
|
|
55357
|
+
small2 ? styles$c.small : "",
|
|
55358
|
+
vertical2.enabled ? styles$c.vertical : "",
|
|
55359
|
+
!_$1.isEmpty(marks) ? styles$c.hasMarks : ""
|
|
55359
55360
|
),
|
|
55360
55361
|
style: vertical2.enabled ? { width: vertical2.width, height: vertical2.height } : { width: width2 },
|
|
55361
55362
|
children: [
|
|
@@ -55366,8 +55367,8 @@ const Slider = ({
|
|
|
55366
55367
|
range: true,
|
|
55367
55368
|
allowCross: false,
|
|
55368
55369
|
className: cx$2(
|
|
55369
|
-
(disabled2 || disabledContext) && styles$
|
|
55370
|
-
showArrows && styles$
|
|
55370
|
+
(disabled2 || disabledContext) && styles$c.rcSliderDisabled,
|
|
55371
|
+
showArrows && styles$c.hasArrows
|
|
55371
55372
|
),
|
|
55372
55373
|
value,
|
|
55373
55374
|
max,
|
|
@@ -55383,8 +55384,8 @@ const Slider = ({
|
|
|
55383
55384
|
Slider$1,
|
|
55384
55385
|
{
|
|
55385
55386
|
className: cx$2(
|
|
55386
|
-
(disabled2 || disabledContext) && styles$
|
|
55387
|
-
showArrows && styles$
|
|
55387
|
+
(disabled2 || disabledContext) && styles$c.rcSliderDisabled,
|
|
55388
|
+
showArrows && styles$c.hasArrows
|
|
55388
55389
|
),
|
|
55389
55390
|
value,
|
|
55390
55391
|
max,
|
|
@@ -55398,7 +55399,7 @@ const Slider = ({
|
|
|
55398
55399
|
}
|
|
55399
55400
|
),
|
|
55400
55401
|
showArrows && (vertical2.enabled ? /* @__PURE__ */ jsx(ButtonMin, {}) : /* @__PURE__ */ jsx(ButtonMax, {})),
|
|
55401
|
-
label2 && /* @__PURE__ */ jsx("label", { className: styles$
|
|
55402
|
+
label2 && /* @__PURE__ */ jsx("label", { className: styles$c.label, style: { width: labelWidth }, children: label2 })
|
|
55402
55403
|
]
|
|
55403
55404
|
}
|
|
55404
55405
|
);
|
|
@@ -55431,7 +55432,7 @@ const bordered = "_bordered_y9car_93";
|
|
|
55431
55432
|
const scroll2 = "_scroll_y9car_98";
|
|
55432
55433
|
const table = "_table_y9car_108";
|
|
55433
55434
|
const striped = "_striped_y9car_188";
|
|
55434
|
-
const styles$
|
|
55435
|
+
const styles$b = {
|
|
55435
55436
|
inputInTable: inputInTable$2,
|
|
55436
55437
|
inputHover: inputHover$2,
|
|
55437
55438
|
inputFocus: inputFocus$2,
|
|
@@ -55446,7 +55447,7 @@ const styles$a = {
|
|
|
55446
55447
|
striped
|
|
55447
55448
|
};
|
|
55448
55449
|
const title$1 = "_title_11pbp_1";
|
|
55449
|
-
const styles$
|
|
55450
|
+
const styles$a = {
|
|
55450
55451
|
title: title$1
|
|
55451
55452
|
};
|
|
55452
55453
|
const Title$1 = ({
|
|
@@ -55470,14 +55471,14 @@ const Title$1 = ({
|
|
|
55470
55471
|
}
|
|
55471
55472
|
return /* @__PURE__ */ jsx("div", { children: actionsComponent });
|
|
55472
55473
|
};
|
|
55473
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
55474
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$a.title, children: [
|
|
55474
55475
|
isNameDefined ? /* @__PURE__ */ jsx(Heading$2, { children: /* @__PURE__ */ jsx("span", { "data-testid": testId, children: name2 }) }) : null,
|
|
55475
55476
|
actionsContainer()
|
|
55476
55477
|
] });
|
|
55477
55478
|
};
|
|
55478
55479
|
const footer = "_footer_4sumy_1";
|
|
55479
55480
|
const section = "_section_4sumy_7";
|
|
55480
|
-
const styles$
|
|
55481
|
+
const styles$9 = {
|
|
55481
55482
|
footer,
|
|
55482
55483
|
section
|
|
55483
55484
|
};
|
|
@@ -55499,9 +55500,9 @@ const Footer = ({
|
|
|
55499
55500
|
return false;
|
|
55500
55501
|
};
|
|
55501
55502
|
const showFooter = hasActions2 || hasContent || hasPagination();
|
|
55502
|
-
return showFooter ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
55503
|
-
hasContent ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
55504
|
-
hasActions2 || hasPagination() ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
55503
|
+
return showFooter ? /* @__PURE__ */ jsxs("div", { className: styles$9.footer, children: [
|
|
55504
|
+
hasContent ? /* @__PURE__ */ jsx("div", { className: styles$9.section, children: /* @__PURE__ */ jsx("div", { children: content2 }) }) : null,
|
|
55505
|
+
hasActions2 || hasPagination() ? /* @__PURE__ */ jsxs("div", { className: styles$9.section, children: [
|
|
55505
55506
|
hasPagination() ? /* @__PURE__ */ jsx(Pagination, { pagination }) : /* @__PURE__ */ jsx("div", {}),
|
|
55506
55507
|
hasActions2 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Actions, { actions: actions2 }) })
|
|
55507
55508
|
] }) : null
|
|
@@ -55544,7 +55545,7 @@ const TableScrollWrapper = ({
|
|
|
55544
55545
|
setVisibleRows(visibleRows + pageSize);
|
|
55545
55546
|
}
|
|
55546
55547
|
};
|
|
55547
|
-
return /* @__PURE__ */ jsx("div", { id: "scrollWrapper", className: styles$
|
|
55548
|
+
return /* @__PURE__ */ jsx("div", { id: "scrollWrapper", className: styles$b.scroll, children: infiniteScroll ? /* @__PURE__ */ jsx(
|
|
55548
55549
|
InfiniteScroll,
|
|
55549
55550
|
{
|
|
55550
55551
|
dataLength: Math.min(rows.length, visibleRows + pageSize),
|
|
@@ -55564,7 +55565,7 @@ const expandableRow = "_expandableRow_11d5t_8";
|
|
|
55564
55565
|
const flush2 = "_flush_11d5t_8";
|
|
55565
55566
|
const dragIconCell = "_dragIconCell_11d5t_28";
|
|
55566
55567
|
const dragIcon = "_dragIcon_11d5t_28";
|
|
55567
|
-
const styles$
|
|
55568
|
+
const styles$8 = {
|
|
55568
55569
|
clickableRow,
|
|
55569
55570
|
hoverableRow,
|
|
55570
55571
|
rowActive,
|
|
@@ -55582,7 +55583,7 @@ const ExpandedContentRow = ({
|
|
|
55582
55583
|
"td",
|
|
55583
55584
|
{
|
|
55584
55585
|
colSpan,
|
|
55585
|
-
className: cx$2(styles$
|
|
55586
|
+
className: cx$2(styles$8.expandableRow, flush3 ? styles$8.flush : ""),
|
|
55586
55587
|
children
|
|
55587
55588
|
}
|
|
55588
55589
|
) });
|
|
@@ -55656,7 +55657,7 @@ const centerAligned = "_centerAligned_u3xdj_192";
|
|
|
55656
55657
|
const leftAligned = "_leftAligned_u3xdj_198";
|
|
55657
55658
|
const popover = "_popover_u3xdj_201";
|
|
55658
55659
|
const disabledPointerEvents = "_disabledPointerEvents_u3xdj_204";
|
|
55659
|
-
const styles$
|
|
55660
|
+
const styles$7 = {
|
|
55660
55661
|
inputInTable: inputInTable$1,
|
|
55661
55662
|
inputHover: inputHover$1,
|
|
55662
55663
|
inputFocus: inputFocus$1,
|
|
@@ -55718,7 +55719,7 @@ const InputCell = ({
|
|
|
55718
55719
|
}
|
|
55719
55720
|
);
|
|
55720
55721
|
};
|
|
55721
|
-
const getStringName = (name2) => {
|
|
55722
|
+
const getStringName$1 = (name2) => {
|
|
55722
55723
|
if (!name2)
|
|
55723
55724
|
return "";
|
|
55724
55725
|
if (typeof name2 === "string") {
|
|
@@ -55753,7 +55754,7 @@ const NumberInput = ({
|
|
|
55753
55754
|
}) => {
|
|
55754
55755
|
const [displayValue, setDisplayValue] = useState(value);
|
|
55755
55756
|
const [validationError, setValidationError] = useState(null);
|
|
55756
|
-
const stringName = getStringName(name2);
|
|
55757
|
+
const stringName = getStringName$1(name2);
|
|
55757
55758
|
const validateInputValue = (value2) => {
|
|
55758
55759
|
let validation = validateNumber(value2);
|
|
55759
55760
|
if (allowEmpty && value2 === "" || validation.valid) {
|
|
@@ -55889,7 +55890,7 @@ const InputCellWrapper = ({
|
|
|
55889
55890
|
columnAlignment,
|
|
55890
55891
|
testId
|
|
55891
55892
|
}) => {
|
|
55892
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
55893
|
+
return /* @__PURE__ */ jsx("div", { className: styles$7.inputWrapper, children: cell2.type === "Input" ? /* @__PURE__ */ jsx(
|
|
55893
55894
|
InputCell,
|
|
55894
55895
|
{
|
|
55895
55896
|
cell: cell2,
|
|
@@ -55911,7 +55912,7 @@ const LinkCell = ({ cell: cell2, testId }) => {
|
|
|
55911
55912
|
const isTooltipEnabled = (text2) => {
|
|
55912
55913
|
return isStringNumberOrNode(text2);
|
|
55913
55914
|
};
|
|
55914
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
55915
|
+
return /* @__PURE__ */ jsx("div", { className: styles$7.inputWrapper, children: /* @__PURE__ */ jsx(
|
|
55915
55916
|
Tooltip,
|
|
55916
55917
|
{
|
|
55917
55918
|
error: !!error2,
|
|
@@ -55924,14 +55925,14 @@ const LinkCell = ({ cell: cell2, testId }) => {
|
|
|
55924
55925
|
"div",
|
|
55925
55926
|
{
|
|
55926
55927
|
className: cx$2(
|
|
55927
|
-
styles$
|
|
55928
|
-
error2 ? styles$
|
|
55928
|
+
styles$7.staticCellContent,
|
|
55929
|
+
error2 ? styles$7.error : warning2 ? styles$7.warning : ""
|
|
55929
55930
|
),
|
|
55930
55931
|
children: /* @__PURE__ */ jsx(
|
|
55931
55932
|
"a",
|
|
55932
55933
|
{
|
|
55933
55934
|
className: cx$2(
|
|
55934
|
-
(cell2.disabled || disabledContext) && styles$
|
|
55935
|
+
(cell2.disabled || disabledContext) && styles$7.disabledLink
|
|
55935
55936
|
),
|
|
55936
55937
|
onClick: cell2.disabled || disabledContext ? void 0 : (evt) => {
|
|
55937
55938
|
var _a;
|
|
@@ -55962,7 +55963,7 @@ const CheckBoxCell = ({ cell: cell2, testId }) => {
|
|
|
55962
55963
|
);
|
|
55963
55964
|
};
|
|
55964
55965
|
const SliderCell = ({ cell: cell2 }) => {
|
|
55965
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
55966
|
+
return /* @__PURE__ */ jsx("div", { className: styles$7.inputWrapper, children: /* @__PURE__ */ jsx(
|
|
55966
55967
|
Slider,
|
|
55967
55968
|
{
|
|
55968
55969
|
label: cell2.label,
|
|
@@ -55981,7 +55982,7 @@ const SliderCell = ({ cell: cell2 }) => {
|
|
|
55981
55982
|
};
|
|
55982
55983
|
const IconCell = ({ cell: cell2 }) => {
|
|
55983
55984
|
const { tooltip: tooltip2, icon: icon2 } = cell2;
|
|
55984
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
55985
|
+
return /* @__PURE__ */ jsx("div", { className: styles$7.iconCellWrapper, children: /* @__PURE__ */ jsx(
|
|
55985
55986
|
Tooltip,
|
|
55986
55987
|
{
|
|
55987
55988
|
text: tooltip2,
|
|
@@ -55997,11 +55998,11 @@ const ActionsCell = ({ cell: cell2 }) => {
|
|
|
55997
55998
|
};
|
|
55998
55999
|
const CellHelpIcon = ({ cell: cell2 }) => {
|
|
55999
56000
|
const { helpIcon: helpIcon2 } = cell2;
|
|
56000
|
-
return helpIcon2 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
56001
|
+
return helpIcon2 ? /* @__PURE__ */ jsx("div", { className: styles$7.icon, children: /* @__PURE__ */ jsx(HelpIcon, { onClick: helpIcon2.onClick, text: helpIcon2.tooltip }) }) : null;
|
|
56001
56002
|
};
|
|
56002
56003
|
const CellLibraryIcon = ({ cell: cell2 }) => {
|
|
56003
56004
|
const { libraryIcon } = cell2;
|
|
56004
|
-
return libraryIcon ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
56005
|
+
return libraryIcon ? /* @__PURE__ */ jsx("div", { className: styles$7.icon, children: /* @__PURE__ */ jsx(
|
|
56005
56006
|
HelpIcon,
|
|
56006
56007
|
{
|
|
56007
56008
|
onClick: libraryIcon.onClick,
|
|
@@ -56012,7 +56013,7 @@ const CellLibraryIcon = ({ cell: cell2 }) => {
|
|
|
56012
56013
|
};
|
|
56013
56014
|
const Sort = ({ cell: cell2 }) => {
|
|
56014
56015
|
const { hasSort, sort: sort2, sortPriority } = cell2;
|
|
56015
|
-
return hasSort ? /* @__PURE__ */ jsxs("span", { className: styles$
|
|
56016
|
+
return hasSort ? /* @__PURE__ */ jsxs("span", { className: styles$7.sortingCellIcon, children: [
|
|
56016
56017
|
sort2 === "down" ? /* @__PURE__ */ jsx(Text, { link: true, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.SORT_ASCENDING }) }) : sort2 === "up" ? /* @__PURE__ */ jsx(Text, { link: true, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.SORT_DESCENDING }) }) : /* @__PURE__ */ jsx(Text, { faint: true, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.SORT_DESCENDING }) }),
|
|
56017
56018
|
sortPriority && sort2 ? /* @__PURE__ */ jsx("sup", { children: sortPriority }) : null
|
|
56018
56019
|
] }) : null;
|
|
@@ -56023,9 +56024,9 @@ const StaticCell = ({ cell: cell2, isHeader, testId }) => {
|
|
|
56023
56024
|
"div",
|
|
56024
56025
|
{
|
|
56025
56026
|
className: cx$2(
|
|
56026
|
-
styles$
|
|
56027
|
-
type === "Unit" ? styles$
|
|
56028
|
-
error2 ? styles$
|
|
56027
|
+
styles$7.staticCellContent,
|
|
56028
|
+
type === "Unit" ? styles$7.unit : "",
|
|
56029
|
+
error2 ? styles$7.error : warning2 ? styles$7.warning : ""
|
|
56029
56030
|
),
|
|
56030
56031
|
onClick: hasSort ? (evt) => onSort && onSort(evt) : () => {
|
|
56031
56032
|
},
|
|
@@ -56040,7 +56041,7 @@ const StaticCell = ({ cell: cell2, isHeader, testId }) => {
|
|
|
56040
56041
|
]
|
|
56041
56042
|
}
|
|
56042
56043
|
);
|
|
56043
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
56044
|
+
return /* @__PURE__ */ jsx("div", { className: styles$7.inputWrapper, children: /* @__PURE__ */ jsx(
|
|
56044
56045
|
Tooltip,
|
|
56045
56046
|
{
|
|
56046
56047
|
error: !!error2,
|
|
@@ -56063,7 +56064,7 @@ const PopoverCell = ({ cell: cell2, testId }) => {
|
|
|
56063
56064
|
fullWidth,
|
|
56064
56065
|
closeOnOutsideClick,
|
|
56065
56066
|
disabled: disabled2,
|
|
56066
|
-
children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
56067
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$7.popover, children: /* @__PURE__ */ jsx(StaticCell, { cell: cell2, testId }) })
|
|
56067
56068
|
}
|
|
56068
56069
|
);
|
|
56069
56070
|
};
|
|
@@ -56131,15 +56132,15 @@ const Cell = ({
|
|
|
56131
56132
|
headerAlignment: columnHeaderAlignment,
|
|
56132
56133
|
isHeader
|
|
56133
56134
|
};
|
|
56134
|
-
const cellAlignmentStyle = getCellAlignment(alignment, styles$
|
|
56135
|
-
const cellAlignmentText = getCellAlignment(alignment, styles$
|
|
56136
|
-
const cellTypeClassName = cell2.type === CellType.INPUT || cell2.type === CellType.NUMBER_INPUT || cell2.type === CellType.SELECT || cell2.type === CellType.POPOVER ? styles$
|
|
56135
|
+
const cellAlignmentStyle = getCellAlignment(alignment, styles$7);
|
|
56136
|
+
const cellAlignmentText = getCellAlignment(alignment, styles$7, true);
|
|
56137
|
+
const cellTypeClassName = cell2.type === CellType.INPUT || cell2.type === CellType.NUMBER_INPUT || cell2.type === CellType.SELECT || cell2.type === CellType.POPOVER ? styles$7.inputCell : cell2.type === CellType.SLIDER ? styles$7.sliderCell : cell2.type === CellType.CHECKBOX ? styles$7.checkBoxCell : cell2.type === CellType.ACTIONS ? styles$7.actionsCell : styles$7.staticCell;
|
|
56137
56138
|
const className = cx$2(
|
|
56138
|
-
styles$
|
|
56139
|
+
styles$7.cell,
|
|
56139
56140
|
cellTypeClassName,
|
|
56140
|
-
cell2.hasSort ? styles$
|
|
56141
|
+
cell2.hasSort ? styles$7.sortingCell : null,
|
|
56141
56142
|
cellAlignmentStyle,
|
|
56142
|
-
cell2.breakWord ? styles$
|
|
56143
|
+
cell2.breakWord ? styles$7.breakWord : ""
|
|
56143
56144
|
);
|
|
56144
56145
|
const width2 = cellWidthProp ?? columnWidthProp ?? ((snapshot == null ? void 0 : snapshot.isDragging) && ref2.current && ref2.current.offsetWidth) ?? void 0;
|
|
56145
56146
|
const style2 = { width: width2, minWidth: width2, ...styleProp };
|
|
@@ -56238,7 +56239,7 @@ const Row = ({
|
|
|
56238
56239
|
if (row2.noDrag) {
|
|
56239
56240
|
return /* @__PURE__ */ jsx("td", { "aria-labelledby": "unique-label-id" });
|
|
56240
56241
|
}
|
|
56241
|
-
return /* @__PURE__ */ jsx("td", { className: styles$
|
|
56242
|
+
return /* @__PURE__ */ jsx("td", { className: styles$8.dragIconCell, children: /* @__PURE__ */ jsx("div", { ...provided.dragHandleProps, className: styles$8.dragIcon, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.DRAG }) }) });
|
|
56242
56243
|
};
|
|
56243
56244
|
return isHeader ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
56244
56245
|
/* @__PURE__ */ jsxs(
|
|
@@ -56250,8 +56251,8 @@ const Row = ({
|
|
|
56250
56251
|
onMouseLeave: onRowMouseLeave,
|
|
56251
56252
|
onFocus: onRowFocus,
|
|
56252
56253
|
className: cx$2(
|
|
56253
|
-
onRowClick ? styles$
|
|
56254
|
-
onRowMouseEnter ? styles$
|
|
56254
|
+
onRowClick ? styles$8.clickableRow : null,
|
|
56255
|
+
onRowMouseEnter ? styles$8.hoverableRow : null
|
|
56255
56256
|
),
|
|
56256
56257
|
children: [
|
|
56257
56258
|
draggableTable ? (
|
|
@@ -56282,9 +56283,9 @@ const Row = ({
|
|
|
56282
56283
|
onMouseLeave: onRowMouseLeave,
|
|
56283
56284
|
onFocus: onRowFocus,
|
|
56284
56285
|
className: cx$2(
|
|
56285
|
-
onRowClick && !onRowClick.noStyle ? styles$
|
|
56286
|
-
onRowMouseEnter && !onRowMouseEnter.noStyle ? styles$
|
|
56287
|
-
active2 ? styles$
|
|
56286
|
+
onRowClick && !onRowClick.noStyle ? styles$8.clickableRow : null,
|
|
56287
|
+
onRowMouseEnter && !onRowMouseEnter.noStyle ? styles$8.hoverableRow : null,
|
|
56288
|
+
active2 ? styles$8.rowActive : null
|
|
56288
56289
|
),
|
|
56289
56290
|
ref: (provided == null ? void 0 : provided.innerRef) || null,
|
|
56290
56291
|
...(provided == null ? void 0 : provided.draggableProps) || null,
|
|
@@ -56383,7 +56384,7 @@ const Table = (props) => {
|
|
|
56383
56384
|
...propTable,
|
|
56384
56385
|
rows
|
|
56385
56386
|
};
|
|
56386
|
-
const wrapperClass = cx$2(styles$
|
|
56387
|
+
const wrapperClass = cx$2(styles$b.wrapper, bordered2 ? styles$b.bordered : "");
|
|
56387
56388
|
const wrapperStyles = {
|
|
56388
56389
|
maxHeight,
|
|
56389
56390
|
width: width2,
|
|
@@ -56415,7 +56416,7 @@ const Table = (props) => {
|
|
|
56415
56416
|
return /* @__PURE__ */ jsx(TableScrollWrapper, { table: table2, children: ({ visibleRows }) => /* @__PURE__ */ jsxs(
|
|
56416
56417
|
"table",
|
|
56417
56418
|
{
|
|
56418
|
-
className: cx$2(styles$
|
|
56419
|
+
className: cx$2(styles$b.table, striped2 ? styles$b.striped : ""),
|
|
56419
56420
|
"data-testid": testId,
|
|
56420
56421
|
ref: provided.innerRef,
|
|
56421
56422
|
children: [
|
|
@@ -56493,7 +56494,7 @@ const Table = (props) => {
|
|
|
56493
56494
|
/* @__PURE__ */ jsx(TableScrollWrapper, { table: table2, children: ({ visibleRows }) => /* @__PURE__ */ jsxs(
|
|
56494
56495
|
"table",
|
|
56495
56496
|
{
|
|
56496
|
-
className: cx$2(styles$
|
|
56497
|
+
className: cx$2(styles$b.table, striped2 ? styles$b.striped : ""),
|
|
56497
56498
|
"data-testid": testId,
|
|
56498
56499
|
children: [
|
|
56499
56500
|
/* @__PURE__ */ jsx("thead", { children: headers.map((row2, rowIndex) => {
|
|
@@ -56550,7 +56551,7 @@ const hidden = "_hidden_1y79t_58";
|
|
|
56550
56551
|
const disabled$1 = "_disabled_1y79t_61";
|
|
56551
56552
|
const left$1 = "_left_1y79t_65";
|
|
56552
56553
|
const right$1 = "_right_1y79t_65";
|
|
56553
|
-
const styles$
|
|
56554
|
+
const styles$6 = {
|
|
56554
56555
|
tabs,
|
|
56555
56556
|
padding,
|
|
56556
56557
|
margin,
|
|
@@ -56583,11 +56584,11 @@ const Label = ({
|
|
|
56583
56584
|
id: label2 == null ? void 0 : label2.toString(),
|
|
56584
56585
|
href: url,
|
|
56585
56586
|
className: cx$2(
|
|
56586
|
-
styles$
|
|
56587
|
-
active2 ? styles$
|
|
56588
|
-
disabled2 ? styles$
|
|
56589
|
-
hidden2 && !active2 ? styles$
|
|
56590
|
-
right2 ? styles$
|
|
56587
|
+
styles$6.item,
|
|
56588
|
+
active2 ? styles$6.active : "",
|
|
56589
|
+
disabled2 ? styles$6.disabled : "",
|
|
56590
|
+
hidden2 && !active2 ? styles$6.hidden : "",
|
|
56591
|
+
right2 ? styles$6.right : styles$6.left
|
|
56591
56592
|
),
|
|
56592
56593
|
onClick,
|
|
56593
56594
|
"data-testid": testId,
|
|
@@ -56600,7 +56601,7 @@ const Content$1 = ({
|
|
|
56600
56601
|
activeTabIndex,
|
|
56601
56602
|
contentPadding: contentPadding2
|
|
56602
56603
|
}) => {
|
|
56603
|
-
return Array.isArray(children) ? /* @__PURE__ */ jsx("div", { className: cx$2(contentPadding2 ? styles$
|
|
56604
|
+
return Array.isArray(children) ? /* @__PURE__ */ jsx("div", { className: cx$2(contentPadding2 ? styles$6.contentPadding : ""), children: children.map((child, index2) => activeTabIndex === index2 && child) }) : null;
|
|
56604
56605
|
};
|
|
56605
56606
|
const Tabs = ({
|
|
56606
56607
|
name: name2 = void 0,
|
|
@@ -56688,9 +56689,9 @@ const Tabs = ({
|
|
|
56688
56689
|
"div",
|
|
56689
56690
|
{
|
|
56690
56691
|
className: cx$2(
|
|
56691
|
-
styles$
|
|
56692
|
-
padding2 ? styles$
|
|
56693
|
-
margin2 ? styles$
|
|
56692
|
+
styles$6.tabs,
|
|
56693
|
+
padding2 ? styles$6.padding : "",
|
|
56694
|
+
margin2 ? styles$6.margin : ""
|
|
56694
56695
|
),
|
|
56695
56696
|
"data-testid": testId,
|
|
56696
56697
|
children: tabs2.map(renderTab)
|
|
@@ -56729,7 +56730,7 @@ const small$1 = "_small_66zck_116";
|
|
|
56729
56730
|
const error = "_error_66zck_121";
|
|
56730
56731
|
const warning$1 = "_warning_66zck_138";
|
|
56731
56732
|
const monospace = "_monospace_66zck_155";
|
|
56732
|
-
const styles$
|
|
56733
|
+
const styles$5 = {
|
|
56733
56734
|
inputInTable,
|
|
56734
56735
|
inputHover,
|
|
56735
56736
|
inputFocus,
|
|
@@ -56772,10 +56773,10 @@ const TextArea = ({
|
|
|
56772
56773
|
"textarea",
|
|
56773
56774
|
{
|
|
56774
56775
|
className: cx$2(
|
|
56775
|
-
styles$
|
|
56776
|
-
error2 ? styles$
|
|
56777
|
-
warning2 ? styles$
|
|
56778
|
-
monospace2 ? styles$
|
|
56776
|
+
styles$5.textarea,
|
|
56777
|
+
error2 ? styles$5.error : "",
|
|
56778
|
+
warning2 ? styles$5.warning : "",
|
|
56779
|
+
monospace2 ? styles$5.monospace : ""
|
|
56779
56780
|
),
|
|
56780
56781
|
name: name2,
|
|
56781
56782
|
value,
|
|
@@ -57921,7 +57922,7 @@ const small = "_small_1mo1i_25";
|
|
|
57921
57922
|
const disabled = "_disabled_1mo1i_102";
|
|
57922
57923
|
const noMargin = "_noMargin_1mo1i_113";
|
|
57923
57924
|
const helpIconEnabled = "_helpIconEnabled_1mo1i_116";
|
|
57924
|
-
const styles$
|
|
57925
|
+
const styles$4 = {
|
|
57925
57926
|
toggle: toggle$1,
|
|
57926
57927
|
small,
|
|
57927
57928
|
disabled,
|
|
@@ -57947,10 +57948,10 @@ const Toggle = ({
|
|
|
57947
57948
|
"div",
|
|
57948
57949
|
{
|
|
57949
57950
|
className: cx$2(
|
|
57950
|
-
styles$
|
|
57951
|
-
isDisabled ? styles$
|
|
57952
|
-
small2 ? styles$
|
|
57953
|
-
noMargin2 ? styles$
|
|
57951
|
+
styles$4.toggle,
|
|
57952
|
+
isDisabled ? styles$4.disabled : null,
|
|
57953
|
+
small2 ? styles$4.small : null,
|
|
57954
|
+
noMargin2 ? styles$4.noMargin : null
|
|
57954
57955
|
),
|
|
57955
57956
|
onClick: (evt) => {
|
|
57956
57957
|
if (!isDisabled) {
|
|
@@ -57975,7 +57976,7 @@ const Toggle = ({
|
|
|
57975
57976
|
}
|
|
57976
57977
|
),
|
|
57977
57978
|
/* @__PURE__ */ jsx("label", { children: label2 }),
|
|
57978
|
-
showHelp && /* @__PURE__ */ jsx("div", { className: styles$
|
|
57979
|
+
showHelp && /* @__PURE__ */ jsx("div", { className: styles$4.helpIconEnabled, onClick: onClickHelp, children: /* @__PURE__ */ jsx(HelpIcon, { text: helpText }) })
|
|
57979
57980
|
]
|
|
57980
57981
|
}
|
|
57981
57982
|
);
|
|
@@ -57996,7 +57997,7 @@ const button = "_button_gmfjn_139";
|
|
|
57996
57997
|
const menu = "_menu_gmfjn_140";
|
|
57997
57998
|
const active = "_active_gmfjn_168";
|
|
57998
57999
|
const alert = "_alert_gmfjn_193";
|
|
57999
|
-
const styles$
|
|
58000
|
+
const styles$3 = {
|
|
58000
58001
|
topbar,
|
|
58001
58002
|
fixed,
|
|
58002
58003
|
appSwitcher,
|
|
@@ -58015,7 +58016,7 @@ const styles$2 = {
|
|
|
58015
58016
|
alert
|
|
58016
58017
|
};
|
|
58017
58018
|
const Warning = ({ warning: warning2 }) => {
|
|
58018
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
58019
|
+
return /* @__PURE__ */ jsx("div", { className: styles$3.alert, children: warning2 });
|
|
58019
58020
|
};
|
|
58020
58021
|
const AppSwitcher = ({
|
|
58021
58022
|
icon: icon2,
|
|
@@ -58023,7 +58024,7 @@ const AppSwitcher = ({
|
|
|
58023
58024
|
onClick
|
|
58024
58025
|
}) => {
|
|
58025
58026
|
const content2 = /* @__PURE__ */ jsx(Icon, { icon: icon2 });
|
|
58026
|
-
return url ? /* @__PURE__ */ jsx("a", { href: url, onClick, className: styles$
|
|
58027
|
+
return url ? /* @__PURE__ */ jsx("a", { href: url, onClick, className: styles$3.appSwitcher, children: content2 }) : /* @__PURE__ */ jsx("div", { onClick, className: styles$3.appSwitcher, children: content2 });
|
|
58027
58028
|
};
|
|
58028
58029
|
const Title = ({
|
|
58029
58030
|
label: label2,
|
|
@@ -58032,12 +58033,12 @@ const Title = ({
|
|
|
58032
58033
|
version: version2,
|
|
58033
58034
|
onClick
|
|
58034
58035
|
}) => {
|
|
58035
|
-
const content2 = /* @__PURE__ */ jsxs("div", { className: styles$
|
|
58036
|
-
logo2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
58037
|
-
label2 && /* @__PURE__ */ jsx("span", { className: styles$
|
|
58038
|
-
version2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
58036
|
+
const content2 = /* @__PURE__ */ jsxs("div", { className: styles$3.title, children: [
|
|
58037
|
+
logo2 && /* @__PURE__ */ jsx("div", { className: styles$3.logo, children: logo2 }),
|
|
58038
|
+
label2 && /* @__PURE__ */ jsx("span", { className: styles$3.label, children: label2 }),
|
|
58039
|
+
version2 && /* @__PURE__ */ jsx("div", { className: styles$3.version, children: version2 })
|
|
58039
58040
|
] });
|
|
58040
|
-
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
58041
|
+
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$3.item, styles$3.brand), children: url ? /* @__PURE__ */ jsx("a", { href: url, onClick, children: content2 }) : /* @__PURE__ */ jsx("div", { onClick, children: content2 }) });
|
|
58041
58042
|
};
|
|
58042
58043
|
var ElementType = /* @__PURE__ */ ((ElementType2) => {
|
|
58043
58044
|
ElementType2["LINK"] = "Link";
|
|
@@ -58065,7 +58066,7 @@ const Link = ({
|
|
|
58065
58066
|
return /* @__PURE__ */ jsxs(
|
|
58066
58067
|
"a",
|
|
58067
58068
|
{
|
|
58068
|
-
className: cx$2(styles$
|
|
58069
|
+
className: cx$2(styles$3.link, active2 ? styles$3.active : ""),
|
|
58069
58070
|
href: url || "#",
|
|
58070
58071
|
onClick: handleClick2,
|
|
58071
58072
|
"aria-disabled": disabled2 || disabledContext,
|
|
@@ -58073,7 +58074,7 @@ const Link = ({
|
|
|
58073
58074
|
role: onClick && !url ? "button" : void 0,
|
|
58074
58075
|
children: [
|
|
58075
58076
|
icon2,
|
|
58076
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
58077
|
+
/* @__PURE__ */ jsx("span", { className: styles$3.label, children: label2 })
|
|
58077
58078
|
]
|
|
58078
58079
|
}
|
|
58079
58080
|
);
|
|
@@ -58081,7 +58082,7 @@ const Link = ({
|
|
|
58081
58082
|
const Element$1 = ({ element }) => {
|
|
58082
58083
|
switch (element.type) {
|
|
58083
58084
|
case ElementType.LINK:
|
|
58084
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
58085
|
+
return /* @__PURE__ */ jsx("div", { className: styles$3.item, children: /* @__PURE__ */ jsx(
|
|
58085
58086
|
Link,
|
|
58086
58087
|
{
|
|
58087
58088
|
label: element.label,
|
|
@@ -58094,7 +58095,7 @@ const Element$1 = ({ element }) => {
|
|
|
58094
58095
|
}
|
|
58095
58096
|
) });
|
|
58096
58097
|
case ElementType.BUTTON:
|
|
58097
|
-
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
58098
|
+
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$3.item, styles$3.button), children: /* @__PURE__ */ jsx(
|
|
58098
58099
|
Button$1,
|
|
58099
58100
|
{
|
|
58100
58101
|
label: element.label,
|
|
@@ -58107,7 +58108,7 @@ const Element$1 = ({ element }) => {
|
|
|
58107
58108
|
}
|
|
58108
58109
|
) });
|
|
58109
58110
|
case ElementType.MENU:
|
|
58110
|
-
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
58111
|
+
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$3.item, styles$3.menu), children: /* @__PURE__ */ jsx(
|
|
58111
58112
|
Menu,
|
|
58112
58113
|
{
|
|
58113
58114
|
maxHeight: "100%",
|
|
@@ -58128,7 +58129,7 @@ const Element$1 = ({ element }) => {
|
|
|
58128
58129
|
}
|
|
58129
58130
|
) });
|
|
58130
58131
|
case ElementType.COMPONENT:
|
|
58131
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
58132
|
+
return /* @__PURE__ */ jsx("div", { className: styles$3.item, children: element.component });
|
|
58132
58133
|
default:
|
|
58133
58134
|
return null;
|
|
58134
58135
|
}
|
|
@@ -58147,7 +58148,7 @@ const TopBar = ({
|
|
|
58147
58148
|
/* @__PURE__ */ jsxs(
|
|
58148
58149
|
"div",
|
|
58149
58150
|
{
|
|
58150
|
-
className: cx$2(styles$
|
|
58151
|
+
className: cx$2(styles$3.topbar, fixedPosition ? styles$3.fixed : ""),
|
|
58151
58152
|
style: { height: height2 },
|
|
58152
58153
|
children: [
|
|
58153
58154
|
!!appSwitcher2 && /* @__PURE__ */ jsx(
|
|
@@ -58158,7 +58159,7 @@ const TopBar = ({
|
|
|
58158
58159
|
onClick: appSwitcher2.onClick
|
|
58159
58160
|
}
|
|
58160
58161
|
),
|
|
58161
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
58162
|
+
/* @__PURE__ */ jsxs("div", { className: styles$3.left, children: [
|
|
58162
58163
|
title2 && /* @__PURE__ */ jsx(
|
|
58163
58164
|
Title,
|
|
58164
58165
|
{
|
|
@@ -58176,7 +58177,7 @@ const TopBar = ({
|
|
|
58176
58177
|
return null;
|
|
58177
58178
|
})
|
|
58178
58179
|
] }),
|
|
58179
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
58180
|
+
/* @__PURE__ */ jsx("div", { className: styles$3.right, children: contentRight.map((element, i) => {
|
|
58180
58181
|
if (element) {
|
|
58181
58182
|
return /* @__PURE__ */ jsx(Element$1, { element }, i);
|
|
58182
58183
|
}
|
|
@@ -58190,7 +58191,7 @@ const TopBar = ({
|
|
|
58190
58191
|
const popConfirm = "_popConfirm_1x6ye_1";
|
|
58191
58192
|
const content = "_content_1x6ye_7";
|
|
58192
58193
|
const buttons = "_buttons_1x6ye_13";
|
|
58193
|
-
const styles$
|
|
58194
|
+
const styles$2 = {
|
|
58194
58195
|
popConfirm,
|
|
58195
58196
|
content,
|
|
58196
58197
|
buttons
|
|
@@ -58203,9 +58204,9 @@ const Content = ({
|
|
|
58203
58204
|
onClickCancel,
|
|
58204
58205
|
close: close2,
|
|
58205
58206
|
testId
|
|
58206
|
-
}) => /* @__PURE__ */ jsxs("div", { className: styles$
|
|
58207
|
-
title2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
58208
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
58207
|
+
}) => /* @__PURE__ */ jsxs("div", { className: styles$2.popConfirm, children: [
|
|
58208
|
+
title2 && /* @__PURE__ */ jsx("div", { className: styles$2.content, children: /* @__PURE__ */ jsx(Text, { small: true, children: title2 }) }),
|
|
58209
|
+
/* @__PURE__ */ jsxs("div", { className: styles$2.buttons, children: [
|
|
58209
58210
|
/* @__PURE__ */ jsx(
|
|
58210
58211
|
Button$1,
|
|
58211
58212
|
{
|
|
@@ -69931,7 +69932,7 @@ const dropTarget = "_dropTarget_1lv9u_11";
|
|
|
69931
69932
|
const draggingSource = "_draggingSource_1lv9u_14";
|
|
69932
69933
|
const placeholderContainer = "_placeholderContainer_1lv9u_17";
|
|
69933
69934
|
const placeholder2 = "_placeholder_1lv9u_17";
|
|
69934
|
-
const styles = {
|
|
69935
|
+
const styles$1 = {
|
|
69935
69936
|
tree,
|
|
69936
69937
|
toggle,
|
|
69937
69938
|
dropTarget,
|
|
@@ -69979,7 +69980,7 @@ const TreeItem = ({
|
|
|
69979
69980
|
{
|
|
69980
69981
|
className: listStyles.itemHeader,
|
|
69981
69982
|
children: [
|
|
69982
|
-
hasChild && /* @__PURE__ */ jsx("div", { className: styles.toggle, children: /* @__PURE__ */ jsx(
|
|
69983
|
+
hasChild && /* @__PURE__ */ jsx("div", { className: styles$1.toggle, children: /* @__PURE__ */ jsx(
|
|
69983
69984
|
Button$1,
|
|
69984
69985
|
{
|
|
69985
69986
|
basic: true,
|
|
@@ -69999,7 +70000,7 @@ const TreeItem = ({
|
|
|
69999
70000
|
}
|
|
70000
70001
|
);
|
|
70001
70002
|
};
|
|
70002
|
-
const TreePlaceholder = ({ depth }) => /* @__PURE__ */ jsx("div", { className: styles.placeholder, style: { left: depth * 24 } });
|
|
70003
|
+
const TreePlaceholder = ({ depth }) => /* @__PURE__ */ jsx("div", { className: styles$1.placeholder, style: { left: depth * 24 } });
|
|
70003
70004
|
const Tree = ({
|
|
70004
70005
|
list: list2,
|
|
70005
70006
|
draggable: draggable2 = false,
|
|
@@ -70086,10 +70087,10 @@ const Tree = ({
|
|
|
70086
70087
|
listComponent: "div",
|
|
70087
70088
|
listItemComponent: "div",
|
|
70088
70089
|
classes: {
|
|
70089
|
-
root: styles.tree,
|
|
70090
|
-
draggingSource: styles.draggingSource,
|
|
70091
|
-
dropTarget: styles.dropTarget,
|
|
70092
|
-
placeholder: styles.placeholderContainer
|
|
70090
|
+
root: styles$1.tree,
|
|
70091
|
+
draggingSource: styles$1.draggingSource,
|
|
70092
|
+
dropTarget: styles$1.dropTarget,
|
|
70093
|
+
placeholder: styles$1.placeholderContainer
|
|
70093
70094
|
},
|
|
70094
70095
|
initialOpen: isInitialOpen
|
|
70095
70096
|
}
|
|
@@ -70098,6 +70099,426 @@ const Tree = ({
|
|
|
70098
70099
|
) })
|
|
70099
70100
|
] });
|
|
70100
70101
|
};
|
|
70102
|
+
const useRunAfterUpdate = () => {
|
|
70103
|
+
const afterPaintRef = useRef(null);
|
|
70104
|
+
useLayoutEffect$1(() => {
|
|
70105
|
+
if (afterPaintRef.current) {
|
|
70106
|
+
afterPaintRef.current();
|
|
70107
|
+
afterPaintRef.current = null;
|
|
70108
|
+
}
|
|
70109
|
+
});
|
|
70110
|
+
const runAfterUpdate = (fn) => {
|
|
70111
|
+
afterPaintRef.current = fn;
|
|
70112
|
+
};
|
|
70113
|
+
return runAfterUpdate;
|
|
70114
|
+
};
|
|
70115
|
+
const usePrevious = (value) => {
|
|
70116
|
+
const ref2 = useRef();
|
|
70117
|
+
useEffect(() => {
|
|
70118
|
+
ref2.current = value;
|
|
70119
|
+
}, [value]);
|
|
70120
|
+
return ref2.current;
|
|
70121
|
+
};
|
|
70122
|
+
const getPreferredUnit = (unitkey, unitTemplate) => {
|
|
70123
|
+
const preferredUnit = unitTemplate == null ? void 0 : unitTemplate[unitkey];
|
|
70124
|
+
if (!preferredUnit) {
|
|
70125
|
+
console.log(
|
|
70126
|
+
`Warning: unitTemplate is ${unitTemplate}, unitkey is ${unitkey}`
|
|
70127
|
+
);
|
|
70128
|
+
return unitFromQuantity(unitkey) ?? "";
|
|
70129
|
+
}
|
|
70130
|
+
return preferredUnit;
|
|
70131
|
+
};
|
|
70132
|
+
var PredefinedOptionsMenuState = /* @__PURE__ */ ((PredefinedOptionsMenuState2) => {
|
|
70133
|
+
PredefinedOptionsMenuState2["CUSTOM"] = "custom";
|
|
70134
|
+
PredefinedOptionsMenuState2["PREDEFINED"] = "predefined";
|
|
70135
|
+
return PredefinedOptionsMenuState2;
|
|
70136
|
+
})(PredefinedOptionsMenuState || {});
|
|
70137
|
+
const isWrongValue = (val) => {
|
|
70138
|
+
return val === "undefined" || val === void 0 || val === "" || val === "null" || val === null || val === "NaN" || isNaN(val);
|
|
70139
|
+
};
|
|
70140
|
+
const convertUnit = (stringValue = "", toUnit, defaultFromUnit = "", doNotConvertValue = false) => {
|
|
70141
|
+
if (toUnit && !doNotConvertValue) {
|
|
70142
|
+
try {
|
|
70143
|
+
const result = isWrongValue(stringValue) ? stringValue : isValueWithUnit(stringValue) ? convertSamePrecision(stringValue, toUnit) : convertSamePrecision(withUnit(stringValue, defaultFromUnit), toUnit);
|
|
70144
|
+
return getValue$1(result);
|
|
70145
|
+
} catch (e2) {
|
|
70146
|
+
}
|
|
70147
|
+
}
|
|
70148
|
+
return "";
|
|
70149
|
+
};
|
|
70150
|
+
const safeConvertValue = (value = "", toUnit, defaultFromUnit, doNotConvertValue) => {
|
|
70151
|
+
const isWithUnit = isValueWithUnit(value);
|
|
70152
|
+
const isNullEmptyUndefined = isWithUnit && isWrongValue(getValue$1(value)) || !isWithUnit && isWrongValue(value);
|
|
70153
|
+
const convertedValue = isWithUnit ? !isNullEmptyUndefined ? convertUnit(getValue$1(value), toUnit, defaultFromUnit, doNotConvertValue) : "" : !isNullEmptyUndefined ? value : "";
|
|
70154
|
+
return convertedValue;
|
|
70155
|
+
};
|
|
70156
|
+
const getStringName = (name2) => {
|
|
70157
|
+
if (isObject$5(name2) && !isArray$1(name2) && !isFunction$3(name2)) {
|
|
70158
|
+
return get$2(name2, "fieldName", "");
|
|
70159
|
+
}
|
|
70160
|
+
return typeof name2 === "string" ? name2 : "";
|
|
70161
|
+
};
|
|
70162
|
+
const isErrorObject = (error2) => isObjectLike(error2) && has$1(error2, "message");
|
|
70163
|
+
const getErrorMessage = (error2) => {
|
|
70164
|
+
if (typeof error2 === "string") {
|
|
70165
|
+
return error2;
|
|
70166
|
+
} else if (isErrorObject(error2)) {
|
|
70167
|
+
return error2.message;
|
|
70168
|
+
} else {
|
|
70169
|
+
return null;
|
|
70170
|
+
}
|
|
70171
|
+
};
|
|
70172
|
+
const hasLeadingZeroes = (value) => {
|
|
70173
|
+
return value.search(RegExp(/(^0{2}\.)|(^0+[1-9])/g)) === 0;
|
|
70174
|
+
};
|
|
70175
|
+
const validate = (value, options) => {
|
|
70176
|
+
var _a;
|
|
70177
|
+
const {
|
|
70178
|
+
allowEmpty = false,
|
|
70179
|
+
autoValue,
|
|
70180
|
+
placeholder: placeholder3,
|
|
70181
|
+
disabledValidation = false
|
|
70182
|
+
} = options || {};
|
|
70183
|
+
const stringValue = String(value);
|
|
70184
|
+
if (disabledValidation || autoValue || placeholder3) {
|
|
70185
|
+
return null;
|
|
70186
|
+
}
|
|
70187
|
+
const cleanValue = isValueWithUnit$1(stringValue) ? getValue$1(stringValue) : stringValue;
|
|
70188
|
+
if (allowEmpty && cleanValue === "") {
|
|
70189
|
+
return null;
|
|
70190
|
+
}
|
|
70191
|
+
if (hasLeadingZeroes(cleanValue)) {
|
|
70192
|
+
return "Invalid number format due to leading zeroes";
|
|
70193
|
+
}
|
|
70194
|
+
const validationErrors = validateNumber(cleanValue);
|
|
70195
|
+
if (!validationErrors.valid) {
|
|
70196
|
+
const firstError = ((_a = validationErrors == null ? void 0 : validationErrors.errors) == null ? void 0 : _a[0]) ?? null;
|
|
70197
|
+
return getErrorMessage(firstError);
|
|
70198
|
+
}
|
|
70199
|
+
return null;
|
|
70200
|
+
};
|
|
70201
|
+
const predefinedMenuActive = "_predefinedMenuActive_1yvt4_1";
|
|
70202
|
+
const styles = {
|
|
70203
|
+
predefinedMenuActive
|
|
70204
|
+
};
|
|
70205
|
+
const UnitInput = ({
|
|
70206
|
+
name: name2,
|
|
70207
|
+
placeholder: placeholder3 = "",
|
|
70208
|
+
disabled: disabled2 = false,
|
|
70209
|
+
disabledUnit = false,
|
|
70210
|
+
error: error2 = null,
|
|
70211
|
+
left: left2 = false,
|
|
70212
|
+
small: small2 = false,
|
|
70213
|
+
width: width2 = "100%",
|
|
70214
|
+
value,
|
|
70215
|
+
unitkey = "",
|
|
70216
|
+
initUnit,
|
|
70217
|
+
noConversion = false,
|
|
70218
|
+
onChange = () => {
|
|
70219
|
+
},
|
|
70220
|
+
onClick = () => {
|
|
70221
|
+
},
|
|
70222
|
+
onFocus = () => {
|
|
70223
|
+
},
|
|
70224
|
+
onSwitchUnit = () => {
|
|
70225
|
+
},
|
|
70226
|
+
unitTemplate,
|
|
70227
|
+
doNotConvertValue = false,
|
|
70228
|
+
testId,
|
|
70229
|
+
warning: warning2 = null,
|
|
70230
|
+
predefinedOptions,
|
|
70231
|
+
initialPredefinedOption = false,
|
|
70232
|
+
shouldLinkAutomaticly = true,
|
|
70233
|
+
selectedPredefinedOptionKey,
|
|
70234
|
+
validationCallback = () => ({ name: "", error: null }),
|
|
70235
|
+
disabledValidation = false,
|
|
70236
|
+
allowEmpty = false,
|
|
70237
|
+
autoValue
|
|
70238
|
+
}) => {
|
|
70239
|
+
if (typeof value === "number") {
|
|
70240
|
+
value = `${value}`;
|
|
70241
|
+
}
|
|
70242
|
+
const runAfterUpdate = useRunAfterUpdate();
|
|
70243
|
+
const [propValue = "", propUnit = ""] = value !== void 0 ? split$1(value) : [];
|
|
70244
|
+
const propAutoUnit = autoValue ? getUnit(autoValue) : "";
|
|
70245
|
+
const defaultUnit = getPreferredUnit(unitkey, unitTemplate);
|
|
70246
|
+
const initDisplayUnit = initUnit || defaultUnit || propUnit;
|
|
70247
|
+
const previousInitUnit = usePrevious(initDisplayUnit);
|
|
70248
|
+
const convertedValue = safeConvertValue(
|
|
70249
|
+
value,
|
|
70250
|
+
initDisplayUnit,
|
|
70251
|
+
propUnit,
|
|
70252
|
+
doNotConvertValue
|
|
70253
|
+
);
|
|
70254
|
+
const convertedAutoValue = safeConvertValue(
|
|
70255
|
+
autoValue,
|
|
70256
|
+
initDisplayUnit,
|
|
70257
|
+
propAutoUnit,
|
|
70258
|
+
doNotConvertValue
|
|
70259
|
+
);
|
|
70260
|
+
const initDisplayLayer = convertedValue !== "" ? { value: convertedValue, unit: initDisplayUnit } : convertedAutoValue !== "" ? { value: convertedAutoValue, unit: initDisplayUnit } : { value: propValue, unit: propUnit };
|
|
70261
|
+
const [displayLayer, setDisplayLayer] = useState(initDisplayLayer);
|
|
70262
|
+
const [validationError, setValidationError] = useState(null);
|
|
70263
|
+
const [predefinedOptionsMenuState, setPredefinedOptionsMenuState] = useState(
|
|
70264
|
+
initialPredefinedOption ? PredefinedOptionsMenuState.PREDEFINED : PredefinedOptionsMenuState.CUSTOM
|
|
70265
|
+
);
|
|
70266
|
+
const isAutoValue = propValue === "" && autoValue;
|
|
70267
|
+
const foundPredefinedMenuOption = predefinedOptions && predefinedOptions.find((el2) => {
|
|
70268
|
+
if (selectedPredefinedOptionKey) {
|
|
70269
|
+
return selectedPredefinedOptionKey === el2.valueKey;
|
|
70270
|
+
}
|
|
70271
|
+
const predefinedMenuItemUnit = isValueWithUnit(el2.value) ? getUnit(el2.value) : "";
|
|
70272
|
+
return withUnit(
|
|
70273
|
+
convertUnit(String(value), predefinedMenuItemUnit),
|
|
70274
|
+
predefinedMenuItemUnit
|
|
70275
|
+
) === el2.value;
|
|
70276
|
+
});
|
|
70277
|
+
const getAlternativeUnits = () => {
|
|
70278
|
+
if (unitkey) {
|
|
70279
|
+
try {
|
|
70280
|
+
const valueToList = String(isAutoValue ? autoValue : value ?? "");
|
|
70281
|
+
let alternativeUnits2 = altUnitsList(valueToList, unitkey);
|
|
70282
|
+
if (getValue$1(valueToList) === "") {
|
|
70283
|
+
return alternativeUnits2.map((unitRow) => ["", unitRow[1]]);
|
|
70284
|
+
}
|
|
70285
|
+
return alternativeUnits2;
|
|
70286
|
+
} catch (e2) {
|
|
70287
|
+
return null;
|
|
70288
|
+
}
|
|
70289
|
+
}
|
|
70290
|
+
};
|
|
70291
|
+
const onSetValue = (evt) => {
|
|
70292
|
+
const stringName2 = getStringName(name2);
|
|
70293
|
+
const input2 = evt.target;
|
|
70294
|
+
const { value: inputValue, selectionStart: currentCursorPosition } = input2;
|
|
70295
|
+
const cleanInputValue = cleanNumStr(
|
|
70296
|
+
inputValue.replaceAll(" ", "").replaceAll("|", "")
|
|
70297
|
+
);
|
|
70298
|
+
const newValue = withUnit(cleanInputValue, (displayLayer == null ? void 0 : displayLayer.unit) || "");
|
|
70299
|
+
const rawValue = getValue$1(newValue);
|
|
70300
|
+
const validationResult = validate(rawValue, {
|
|
70301
|
+
allowEmpty,
|
|
70302
|
+
autoValue,
|
|
70303
|
+
placeholder: placeholder3,
|
|
70304
|
+
disabledValidation
|
|
70305
|
+
});
|
|
70306
|
+
if (validationResult === null) {
|
|
70307
|
+
onChange({
|
|
70308
|
+
target: {
|
|
70309
|
+
value: newValue,
|
|
70310
|
+
name: stringName2
|
|
70311
|
+
}
|
|
70312
|
+
});
|
|
70313
|
+
const [val, u] = split$1(newValue);
|
|
70314
|
+
setDisplayLayer({ value: val, unit: u });
|
|
70315
|
+
setValidationError(null);
|
|
70316
|
+
validationCallback(stringName2, null);
|
|
70317
|
+
} else {
|
|
70318
|
+
setDisplayLayer({ value: cleanInputValue, unit: displayLayer.unit });
|
|
70319
|
+
setValidationError(validationResult);
|
|
70320
|
+
validationCallback(stringName2, validationResult);
|
|
70321
|
+
}
|
|
70322
|
+
runAfterUpdate(() => {
|
|
70323
|
+
input2.selectionStart = currentCursorPosition;
|
|
70324
|
+
input2.selectionEnd = currentCursorPosition;
|
|
70325
|
+
});
|
|
70326
|
+
};
|
|
70327
|
+
const onClickUnit = (nextValue, nextUnit) => {
|
|
70328
|
+
if (nextUnit === displayLayer.unit || isNaN(Number(nextValue))) {
|
|
70329
|
+
return;
|
|
70330
|
+
}
|
|
70331
|
+
setDisplayLayer({ value: nextValue, unit: nextUnit });
|
|
70332
|
+
if (onSwitchUnit) {
|
|
70333
|
+
onSwitchUnit(nextUnit);
|
|
70334
|
+
}
|
|
70335
|
+
};
|
|
70336
|
+
useEffect(() => {
|
|
70337
|
+
if (initDisplayUnit) {
|
|
70338
|
+
let newValue, newUnit = "";
|
|
70339
|
+
if (previousInitUnit !== initDisplayUnit) {
|
|
70340
|
+
newValue = safeConvertValue(
|
|
70341
|
+
String(value),
|
|
70342
|
+
initDisplayUnit,
|
|
70343
|
+
propUnit,
|
|
70344
|
+
doNotConvertValue
|
|
70345
|
+
);
|
|
70346
|
+
newUnit = initDisplayUnit;
|
|
70347
|
+
} else if (withUnit(displayLayer.value, displayLayer.unit) !== value) {
|
|
70348
|
+
newValue = safeConvertValue(
|
|
70349
|
+
String(value),
|
|
70350
|
+
displayLayer.unit,
|
|
70351
|
+
propUnit,
|
|
70352
|
+
doNotConvertValue
|
|
70353
|
+
);
|
|
70354
|
+
newUnit = displayLayer.unit;
|
|
70355
|
+
}
|
|
70356
|
+
if (newValue !== void 0) {
|
|
70357
|
+
setDisplayLayer({ value: newValue, unit: newUnit });
|
|
70358
|
+
}
|
|
70359
|
+
if (predefinedOptions) {
|
|
70360
|
+
if (foundPredefinedMenuOption && shouldLinkAutomaticly) {
|
|
70361
|
+
setPredefinedOptionsMenuState(PredefinedOptionsMenuState.PREDEFINED);
|
|
70362
|
+
} else {
|
|
70363
|
+
setPredefinedOptionsMenuState(PredefinedOptionsMenuState.CUSTOM);
|
|
70364
|
+
}
|
|
70365
|
+
}
|
|
70366
|
+
}
|
|
70367
|
+
const cleanValue = withUnit(
|
|
70368
|
+
checkAndCleanDecimalComma(propValue),
|
|
70369
|
+
(displayLayer == null ? void 0 : displayLayer.unit) || ""
|
|
70370
|
+
);
|
|
70371
|
+
const errorMessage = validate(cleanValue, {
|
|
70372
|
+
allowEmpty,
|
|
70373
|
+
autoValue,
|
|
70374
|
+
placeholder: placeholder3,
|
|
70375
|
+
disabledValidation
|
|
70376
|
+
});
|
|
70377
|
+
setValidationError(errorMessage);
|
|
70378
|
+
}, [initDisplayUnit, value, error2, shouldLinkAutomaticly]);
|
|
70379
|
+
const alternativeUnits = getAlternativeUnits();
|
|
70380
|
+
const displayUnitLabel = label$b(displayLayer.unit) || displayLayer.unit || "";
|
|
70381
|
+
const noConvert = noConversion || !alternativeUnits || alternativeUnits && alternativeUnits.length === 1;
|
|
70382
|
+
const stringName = getStringName(name2);
|
|
70383
|
+
let sectionsPredefinedMenu;
|
|
70384
|
+
const createPredefinedOption = (el2) => {
|
|
70385
|
+
const [value2, unit2 = ""] = isValueWithUnit(el2.value) ? split$1(el2.value) : [el2.value];
|
|
70386
|
+
return {
|
|
70387
|
+
type: MenuType.OPTION,
|
|
70388
|
+
inline: true,
|
|
70389
|
+
onClick: () => {
|
|
70390
|
+
const validation = validateNumber(value2);
|
|
70391
|
+
if (validation.valid && !disabled2) {
|
|
70392
|
+
setPredefinedOptionsMenuState(PredefinedOptionsMenuState.PREDEFINED);
|
|
70393
|
+
onChange({
|
|
70394
|
+
target: {
|
|
70395
|
+
value: el2.value,
|
|
70396
|
+
name: typeof name2 === "string" ? name2 : (name2 == null ? void 0 : name2.fieldName) || "",
|
|
70397
|
+
predefinedSelected: true,
|
|
70398
|
+
predefinedOption: el2
|
|
70399
|
+
}
|
|
70400
|
+
});
|
|
70401
|
+
}
|
|
70402
|
+
},
|
|
70403
|
+
label: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
70404
|
+
/* @__PURE__ */ jsx(Text, { children: el2.label }),
|
|
70405
|
+
/* @__PURE__ */ jsx(Spacer, { width: "20px", height: "0" })
|
|
70406
|
+
] }),
|
|
70407
|
+
description: isValueWithUnit(el2.value) ? `${value2} ${unit2}` : el2.value,
|
|
70408
|
+
selected: foundPredefinedMenuOption === el2 && predefinedOptionsMenuState === PredefinedOptionsMenuState.PREDEFINED
|
|
70409
|
+
};
|
|
70410
|
+
};
|
|
70411
|
+
sectionsPredefinedMenu = [
|
|
70412
|
+
{
|
|
70413
|
+
type: MenuType.OPTION,
|
|
70414
|
+
inline: true,
|
|
70415
|
+
onClick: () => {
|
|
70416
|
+
if (predefinedOptionsMenuState !== PredefinedOptionsMenuState.CUSTOM && !disabled2) {
|
|
70417
|
+
onChange({
|
|
70418
|
+
target: {
|
|
70419
|
+
value: withUnit(displayLayer.value, displayLayer.unit),
|
|
70420
|
+
name: typeof name2 === "string" ? name2 : (name2 == null ? void 0 : name2.fieldName) || ""
|
|
70421
|
+
}
|
|
70422
|
+
});
|
|
70423
|
+
}
|
|
70424
|
+
},
|
|
70425
|
+
label: "Custom",
|
|
70426
|
+
selected: predefinedOptionsMenuState === PredefinedOptionsMenuState.CUSTOM
|
|
70427
|
+
}
|
|
70428
|
+
];
|
|
70429
|
+
if (predefinedOptions == null ? void 0 : predefinedOptions.length) {
|
|
70430
|
+
const dynamicOptions = predefinedOptions.map(createPredefinedOption);
|
|
70431
|
+
sectionsPredefinedMenu = [...sectionsPredefinedMenu, ...dynamicOptions];
|
|
70432
|
+
}
|
|
70433
|
+
return /* @__PURE__ */ jsx(
|
|
70434
|
+
"div",
|
|
70435
|
+
{
|
|
70436
|
+
className: predefinedOptionsMenuState === PredefinedOptionsMenuState.PREDEFINED ? cx$2(styles.predefinedMenuActive) : "",
|
|
70437
|
+
children: /* @__PURE__ */ jsxs(InputGroup, { small: small2, width: width2, children: [
|
|
70438
|
+
predefinedOptions && /* @__PURE__ */ jsx(
|
|
70439
|
+
Tooltip,
|
|
70440
|
+
{
|
|
70441
|
+
text: predefinedOptionsMenuState === PredefinedOptionsMenuState.PREDEFINED ? foundPredefinedMenuOption == null ? void 0 : foundPredefinedMenuOption.label : "",
|
|
70442
|
+
children: /* @__PURE__ */ jsx(
|
|
70443
|
+
Menu,
|
|
70444
|
+
{
|
|
70445
|
+
maxHeight: 380,
|
|
70446
|
+
groupOrder: "first",
|
|
70447
|
+
testId: testId && `${testId}-predefined-menu`,
|
|
70448
|
+
disabled: disabled2,
|
|
70449
|
+
menu: {
|
|
70450
|
+
colored: true,
|
|
70451
|
+
trigger: "Component",
|
|
70452
|
+
component: /* @__PURE__ */ jsx(
|
|
70453
|
+
Button$1,
|
|
70454
|
+
{
|
|
70455
|
+
groupOrder: "first",
|
|
70456
|
+
active: predefinedOptionsMenuState === PredefinedOptionsMenuState.PREDEFINED,
|
|
70457
|
+
icon: predefinedOptionsMenuState === PredefinedOptionsMenuState.PREDEFINED ? "link" : "unlink"
|
|
70458
|
+
}
|
|
70459
|
+
),
|
|
70460
|
+
small: small2,
|
|
70461
|
+
sections: sectionsPredefinedMenu
|
|
70462
|
+
}
|
|
70463
|
+
}
|
|
70464
|
+
)
|
|
70465
|
+
}
|
|
70466
|
+
),
|
|
70467
|
+
/* @__PURE__ */ jsx(
|
|
70468
|
+
Input$1,
|
|
70469
|
+
{
|
|
70470
|
+
type: "text",
|
|
70471
|
+
name: stringName,
|
|
70472
|
+
testId,
|
|
70473
|
+
disabled: disabled2,
|
|
70474
|
+
placeholder: isAutoValue ? safeConvertValue(
|
|
70475
|
+
autoValue,
|
|
70476
|
+
displayLayer.unit,
|
|
70477
|
+
propAutoUnit,
|
|
70478
|
+
doNotConvertValue
|
|
70479
|
+
) : placeholder3,
|
|
70480
|
+
value: displayLayer.value,
|
|
70481
|
+
onChange: onSetValue,
|
|
70482
|
+
onFocus,
|
|
70483
|
+
error: error2 || validationError,
|
|
70484
|
+
warning: warning2,
|
|
70485
|
+
right: !left2
|
|
70486
|
+
},
|
|
70487
|
+
stringName
|
|
70488
|
+
),
|
|
70489
|
+
displayUnitLabel && (noConvert ? /* @__PURE__ */ jsx(InputGroupAddon, { groupOrder: "last", children: displayUnitLabel }) : /* @__PURE__ */ jsx(
|
|
70490
|
+
Menu,
|
|
70491
|
+
{
|
|
70492
|
+
maxHeight: 380,
|
|
70493
|
+
groupOrder: "last",
|
|
70494
|
+
disabled: disabledUnit,
|
|
70495
|
+
testId: testId && `${testId}-menu`,
|
|
70496
|
+
menu: {
|
|
70497
|
+
label: displayUnitLabel,
|
|
70498
|
+
trigger: "DropDownButton",
|
|
70499
|
+
small: small2,
|
|
70500
|
+
sections: alternativeUnits.map(([value2, altUnit, label2]) => {
|
|
70501
|
+
const displayUnit = label2 || altUnit || "";
|
|
70502
|
+
return {
|
|
70503
|
+
type: "Option",
|
|
70504
|
+
label: !isNaN(Number(value2)) ? value2 : "",
|
|
70505
|
+
inline: true,
|
|
70506
|
+
onClick: (evt) => {
|
|
70507
|
+
evt.stopPropagation();
|
|
70508
|
+
onClickUnit(isAutoValue ? "" : value2, altUnit);
|
|
70509
|
+
},
|
|
70510
|
+
description: displayUnit,
|
|
70511
|
+
selected: displayUnit === displayUnitLabel,
|
|
70512
|
+
testId: `${testId}-unit-${displayUnit}`
|
|
70513
|
+
};
|
|
70514
|
+
})
|
|
70515
|
+
}
|
|
70516
|
+
}
|
|
70517
|
+
))
|
|
70518
|
+
] })
|
|
70519
|
+
}
|
|
70520
|
+
);
|
|
70521
|
+
};
|
|
70101
70522
|
export {
|
|
70102
70523
|
Accordion,
|
|
70103
70524
|
AccordionWithDefaultToggle,
|
|
@@ -70176,6 +70597,7 @@ export {
|
|
|
70176
70597
|
TopBar,
|
|
70177
70598
|
Tree,
|
|
70178
70599
|
TriggerType,
|
|
70600
|
+
UnitInput,
|
|
70179
70601
|
dismissToast,
|
|
70180
70602
|
readFile,
|
|
70181
70603
|
toast,
|