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