@oliasoft-open-source/react-ui-library 4.1.11-beta-2 → 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-6b425392.js → index-9914ac27.js} +182 -180
- package/dist/global.css +3 -0
- package/dist/index.d.ts +55 -1
- package/dist/index.html +1 -1
- package/dist/index.js +807 -408
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-6VNJS4EI-1362ada9.js → Color-6VNJS4EI-626cced0.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-NNNQARDV-47f5af58.js → DocsRenderer-NNNQARDV-576d9da9.js} +1 -1
- package/dist/storybook/assets/{WithTooltip-4HIR6TLV-a4d1ab26.js → WithTooltip-4HIR6TLV-bee8e125.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-3b8c9125.js → accordion.stories-54aa7085.js} +2 -2
- package/dist/storybook/assets/{actions-d85b06c5.js → actions-2d4e1c8e.js} +1 -1
- package/dist/storybook/assets/{actions.stories-829ed1da.js → actions.stories-81a7cb7a.js} +1 -1
- package/dist/storybook/assets/{afe.stories-41796c06.js → afe.stories-afb9be07.js} +1 -1
- package/dist/storybook/assets/{badge.stories-5fba1f9d.js → badge.stories-5ce7957f.js} +1 -1
- package/dist/storybook/assets/{blowout.stories-6e97b5bc.js → blowout.stories-ee7f932b.js} +1 -1
- package/dist/storybook/assets/button-74c97e4a.js +1 -0
- package/dist/storybook/assets/{button-group-85bed048.js → button-group-fa895d0c.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-6c428977.js → button-group.stories-22f072b7.js} +1 -1
- package/dist/storybook/assets/button.stories-531033a8.js +71 -0
- package/dist/storybook/assets/{buttons-and-links-b22c8e7a.js → buttons-and-links-5c2f81ed.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-43c82cc4.js → casing-loads.stories-d235dd15.js} +2 -2
- package/dist/storybook/assets/{cell.stories-5bbd9d0c.js → cell.stories-6d7c1887.js} +2 -2
- package/dist/storybook/assets/{chunk-HLWAVYOI-fcc656e8.js → chunk-HLWAVYOI-7cf52e0e.js} +1 -1
- package/dist/storybook/assets/{color-4d5e85d6.js → color-373aeff7.js} +1 -1
- package/dist/storybook/assets/{dialog-fe0688a2.js → dialog-cd58dd09.js} +1 -1
- package/dist/storybook/assets/{drawer-ff69a45d.js → drawer-7f450988.js} +1 -1
- package/dist/storybook/assets/{drawer.stories-1b3a93ac.js → drawer.stories-2512fef1.js} +1 -1
- package/dist/storybook/assets/{empty.stories-6bc17ed5.js → empty.stories-e0e3ac78.js} +1 -1
- package/dist/storybook/assets/{file-input.stories-6ff0028f.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-f31bbdb6.js → flex.stories-9d4c08a1.js} +1 -1
- package/dist/storybook/assets/footer.stories-9337b9e2.js +3 -0
- package/dist/storybook/assets/{form.stories-80922456.js → form.stories-40e17b4c.js} +1 -1
- package/dist/storybook/assets/{formation.stories-ed5378b0.js → formation.stories-fc57d144.js} +2 -2
- package/dist/storybook/assets/{formatter-SWP5E3XI-df6c1a3f.js → formatter-SWP5E3XI-46182822.js} +1 -1
- package/dist/storybook/assets/{heading.stories-9689bddc.js → heading.stories-869d41ea.js} +1 -1
- package/dist/storybook/assets/{icon.stories-8dae69e1.js → icon.stories-fca93dba.js} +1 -1
- package/dist/storybook/assets/iframe-c1f0de6b.js +1 -0
- package/dist/storybook/assets/{number-input-42f50494.js → index-0bfda4aa.js} +9 -9
- package/dist/storybook/assets/{index-c1750417.js → index-fba8c0d7.js} +4 -4
- package/dist/storybook/assets/{input-group.stories-7fd527f7.js → input-group.stories-a2a3400e.js} +1 -1
- package/dist/storybook/assets/{input-validation-5902073c.js → input-validation-3b7b7cda.js} +1 -1
- package/dist/storybook/assets/{inputs-19479a88.js → inputs-c02f8012.js} +2 -2
- package/dist/storybook/assets/{layout-forms-b4b3767c.js → layout-forms-bdf4b47b.js} +1 -1
- package/dist/storybook/assets/{layout-general-87dc66c8.js → layout-general-2c5e127e.js} +1 -1
- package/dist/storybook/assets/{list-153dc77c.js → list-0dc3df85.js} +1 -1
- package/dist/storybook/assets/{list-heading-22f443f6.js → list-heading-88cc8a9b.js} +1 -1
- package/dist/storybook/assets/{list.stories-007ec472.js → list.stories-0f30d0b5.js} +1 -1
- package/dist/storybook/assets/{list.stories-data-5f25d894.js → list.stories-data-390b28e1.js} +1 -1
- package/dist/storybook/assets/{loader.stories-e9055086.js → loader.stories-6107832a.js} +1 -1
- package/dist/storybook/assets/{menu.stories-641840aa.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.stories-5c5ab582.js → message.stories-f41a0c22.js} +1 -1
- package/dist/storybook/assets/{modal.stories-82f79f51.js → modal.stories-0e068cc1.js} +1 -1
- package/dist/storybook/assets/number-input-66bb0350.js +1 -0
- package/dist/storybook/assets/{number-input.stories-2be8813c.js → number-input.stories-ef65b216.js} +2 -2
- package/dist/storybook/assets/{option-dropdown.stories-f9f862e4.js → option-dropdown.stories-5030bdb8.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-8bf263db.js → padding-and-spacing-5cfec3f6.js} +1 -1
- package/dist/storybook/assets/{page.stories-feea81ea.js → page.stories-7cb68fed.js} +1 -1
- package/dist/storybook/assets/{pagination-2b7f21ea.js → pagination-8aade846.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-511d16b8.js → pagination.stories-423b4938.js} +1 -1
- package/dist/storybook/assets/{pop-confirm.stories-7956f177.js → pop-confirm.stories-81b30901.js} +1 -1
- package/dist/storybook/assets/{popover-103e4367.js → popover-06e375a5.js} +1 -1
- package/dist/storybook/assets/{popover.stories-ca2d66d3.js → popover.stories-4c074762.js} +1 -1
- package/dist/storybook/assets/{preview-a97ed24d.js → preview-8a38ceb3.js} +1 -1
- package/dist/storybook/assets/preview-f8076f66.js +1 -0
- package/dist/storybook/assets/{projects.stories-763ad373.js → projects.stories-3884a80c.js} +1 -1
- package/dist/storybook/assets/{reservoirs.stories-2bc62ed3.js → reservoirs.stories-6b14a37f.js} +1 -1
- package/dist/storybook/assets/{rich-text-input.stories-e39c06c6.js → rich-text-input.stories-661f34f1.js} +1 -1
- package/dist/storybook/assets/{row.stories-14c36eb7.js → row.stories-4c5f0247.js} +2 -2
- package/dist/storybook/assets/{select-19c8d90d.js → select-205cd538.js} +1 -1
- package/dist/storybook/assets/{select.stories-30aed3d3.js → select.stories-60f055e6.js} +60 -25
- package/dist/storybook/assets/{side-bar-95164631.js → side-bar-88e8cf41.js} +1 -1
- package/dist/storybook/assets/{side-bar.stories-381d58f5.js → side-bar.stories-0887207d.js} +1 -1
- package/dist/storybook/assets/{site.stories-10a9b7c5.js → site.stories-dee8ce1c.js} +1 -1
- package/dist/storybook/assets/{slider-02174601.js → slider-160e2152.js} +1 -1
- package/dist/storybook/assets/{slider.stories-0d728606.js → slider.stories-79ab0e97.js} +1 -1
- package/dist/storybook/assets/{spacer.stories-3497bff5.js → spacer.stories-97086558.js} +1 -1
- package/dist/storybook/assets/{syntaxhighlighter-NMPM6SWI-241ffa01.js → syntaxhighlighter-NMPM6SWI-758c17ef.js} +1 -1
- package/dist/storybook/assets/{table-af6bac16.js → table-646201c1.js} +1 -1
- package/dist/storybook/assets/{table.stories-b55c5f42.js → table.stories-ca3ed877.js} +2 -2
- package/dist/storybook/assets/{table.stories-data-cf93ddaa.js → table.stories-data-aefdf55f.js} +1 -1
- package/dist/storybook/assets/{textarea-d48efea2.js → textarea-54dd1c9a.js} +1 -1
- package/dist/storybook/assets/{textarea.stories-89c8afd7.js → textarea.stories-4b85aa60.js} +1 -1
- package/dist/storybook/assets/{title.stories-de7c657d.js → title.stories-7ad1232e.js} +2 -2
- package/dist/storybook/assets/{toaster.stories-62d37d9a.js → toaster.stories-bed0d43f.js} +1 -1
- package/dist/storybook/assets/{tooltip.test-case.stories-057ce9ba.js → tooltip.test-case.stories-ef78bd26.js} +1 -1
- package/dist/storybook/assets/{top-bar-5e52c795.js → top-bar-a84b9365.js} +1 -1
- package/dist/storybook/assets/{top-bar.stories-001f091f.js → top-bar.stories-e93330f0.js} +1 -1
- package/dist/storybook/assets/{top-bar.testcase.stories-e3c45eb2.js → top-bar.testcase.stories-3a824a14.js} +1 -1
- package/dist/storybook/assets/{tree.stories-969ad3d9.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/storybook/assets/button-ef030f87.js +0 -1
- package/dist/storybook/assets/button.stories-6f2a720b.js +0 -76
- package/dist/storybook/assets/footer.stories-0f6bd919.js +0 -3
- package/dist/storybook/assets/iframe-20c4b636.js +0 -1
- package/dist/storybook/assets/preview-67a97a87.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";
|
|
@@ -4134,7 +4134,7 @@ const Button$1 = ({
|
|
|
4134
4134
|
error: error2,
|
|
4135
4135
|
warning: warning2,
|
|
4136
4136
|
testId,
|
|
4137
|
-
tooltip:
|
|
4137
|
+
tooltip: tooltip2,
|
|
4138
4138
|
inverted: inverted2 = false
|
|
4139
4139
|
// *Deprecated*
|
|
4140
4140
|
}) => {
|
|
@@ -4169,7 +4169,6 @@ const Button$1 = ({
|
|
|
4169
4169
|
}
|
|
4170
4170
|
return "";
|
|
4171
4171
|
})();
|
|
4172
|
-
const tooltip2 = tooltipProp || (round2 ? title2 : void 0);
|
|
4173
4172
|
return /* @__PURE__ */ jsx(ButtonTooltipWrapper, { tooltip: tooltip2, children: /* @__PURE__ */ jsxs(
|
|
4174
4173
|
"button",
|
|
4175
4174
|
{
|
|
@@ -4214,7 +4213,7 @@ const Button$1 = ({
|
|
|
4214
4213
|
const actions$2 = "_actions_1nid8_1";
|
|
4215
4214
|
const actionComponentContainer = "_actionComponentContainer_1nid8_11";
|
|
4216
4215
|
const active$7 = "_active_1nid8_33";
|
|
4217
|
-
const styles$
|
|
4216
|
+
const styles$M = {
|
|
4218
4217
|
actions: actions$2,
|
|
4219
4218
|
actionComponentContainer,
|
|
4220
4219
|
active: active$7
|
|
@@ -4247,7 +4246,7 @@ const buttonCaret = "_buttonCaret_uioq1_178";
|
|
|
4247
4246
|
const component = "_component_uioq1_182";
|
|
4248
4247
|
const right$7 = "_right_uioq1_188";
|
|
4249
4248
|
const actions$1 = "_actions_uioq1_193";
|
|
4250
|
-
const styles$
|
|
4249
|
+
const styles$L = {
|
|
4251
4250
|
wrapper: wrapper$4,
|
|
4252
4251
|
layer: layer$1,
|
|
4253
4252
|
layerContainer: layerContainer$1,
|
|
@@ -4281,15 +4280,15 @@ const Heading$3 = ({ label: label2, onClick, icon: icon2, testId }) => /* @__PUR
|
|
|
4281
4280
|
"div",
|
|
4282
4281
|
{
|
|
4283
4282
|
onClick: (evt) => evt.stopPropagation(),
|
|
4284
|
-
className: styles$
|
|
4283
|
+
className: styles$L.heading,
|
|
4285
4284
|
"data-testid": testId,
|
|
4286
4285
|
children: [
|
|
4287
4286
|
label2,
|
|
4288
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4287
|
+
/* @__PURE__ */ jsx("span", { className: styles$L.headingIcon, onClick, children: icon2 })
|
|
4289
4288
|
]
|
|
4290
4289
|
}
|
|
4291
4290
|
);
|
|
4292
|
-
const Divider$1 = () => /* @__PURE__ */ jsx("hr", { className: styles$
|
|
4291
|
+
const Divider$1 = () => /* @__PURE__ */ jsx("hr", { className: styles$L.divider });
|
|
4293
4292
|
const Option$2 = ({
|
|
4294
4293
|
actions: actions2,
|
|
4295
4294
|
label: label2,
|
|
@@ -4325,31 +4324,31 @@ const Option$2 = ({
|
|
|
4325
4324
|
{
|
|
4326
4325
|
href: url,
|
|
4327
4326
|
className: cx$2(
|
|
4328
|
-
styles$
|
|
4329
|
-
disabled2 ? styles$
|
|
4330
|
-
inline2 ? styles$
|
|
4331
|
-
selected2 ? styles$
|
|
4327
|
+
styles$L.option,
|
|
4328
|
+
disabled2 ? styles$L.disabled : "",
|
|
4329
|
+
inline2 ? styles$L.inline : "",
|
|
4330
|
+
selected2 ? styles$L.selected : ""
|
|
4332
4331
|
),
|
|
4333
4332
|
onClick: handleClick2,
|
|
4334
4333
|
"data-testid": testId,
|
|
4335
4334
|
children: [
|
|
4336
|
-
icon2 ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
4337
|
-
/* @__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: [
|
|
4338
4337
|
upload && /* @__PURE__ */ jsx(
|
|
4339
4338
|
"input",
|
|
4340
4339
|
{
|
|
4341
4340
|
type: "file",
|
|
4342
|
-
className: styles$
|
|
4341
|
+
className: styles$L.fileInput,
|
|
4343
4342
|
onChange: (evt) => {
|
|
4344
4343
|
onChange == null ? void 0 : onChange(evt.target.files);
|
|
4345
4344
|
close2 == null ? void 0 : close2();
|
|
4346
4345
|
}
|
|
4347
4346
|
}
|
|
4348
4347
|
),
|
|
4349
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4350
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
4351
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4352
|
-
!!(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 }) })
|
|
4353
4352
|
] })
|
|
4354
4353
|
] })
|
|
4355
4354
|
]
|
|
@@ -4482,7 +4481,7 @@ const Layer$2 = ({
|
|
|
4482
4481
|
return /* @__PURE__ */ jsx(
|
|
4483
4482
|
"div",
|
|
4484
4483
|
{
|
|
4485
|
-
className: cx$2(styles$
|
|
4484
|
+
className: cx$2(styles$L.layer, isNested ? styles$L.nested : null),
|
|
4486
4485
|
style: { maxWidth: width2, maxHeight },
|
|
4487
4486
|
"data-testid": testId,
|
|
4488
4487
|
children: /* @__PURE__ */ jsx("ul", { children: localSections.map((section2, i) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
@@ -4519,7 +4518,7 @@ const light = "_light_nwprz_26";
|
|
|
4519
4518
|
const small$b = "_small_nwprz_29";
|
|
4520
4519
|
const dot = "_dot_nwprz_33";
|
|
4521
4520
|
const hasChildren = "_hasChildren_nwprz_39";
|
|
4522
|
-
const styles$
|
|
4521
|
+
const styles$K = {
|
|
4523
4522
|
wrapper: wrapper$3,
|
|
4524
4523
|
badge,
|
|
4525
4524
|
label: label$9,
|
|
@@ -4547,16 +4546,16 @@ const Badge = ({
|
|
|
4547
4546
|
small: small2 = false
|
|
4548
4547
|
}) => {
|
|
4549
4548
|
const visible = !(title2 === null && dot2 === false);
|
|
4550
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
4549
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$K.wrapper, children: [
|
|
4551
4550
|
visible && /* @__PURE__ */ jsx(
|
|
4552
4551
|
"sup",
|
|
4553
4552
|
{
|
|
4554
4553
|
className: cx$2(
|
|
4555
|
-
styles$
|
|
4556
|
-
isDark(color2) ? styles$
|
|
4557
|
-
title2 !== null ? styles$
|
|
4558
|
-
small2 ? styles$
|
|
4559
|
-
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 : ""
|
|
4560
4559
|
),
|
|
4561
4560
|
style: {
|
|
4562
4561
|
background: color2 || void 0,
|
|
@@ -4582,16 +4581,16 @@ const Button = ({
|
|
|
4582
4581
|
active: active2
|
|
4583
4582
|
}) => {
|
|
4584
4583
|
const disabledContext = useContext(DisabledContext);
|
|
4585
|
-
const buttonLabel2 = trigger2 === TriggerType.BUTTON ? label2 : trigger2 === TriggerType.DROP_DOWN_BUTTON ? /* @__PURE__ */ jsxs("span", { className: styles$
|
|
4586
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4587
|
-
/* @__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 }) })
|
|
4588
4587
|
] }) : null;
|
|
4589
4588
|
return /* @__PURE__ */ jsx(
|
|
4590
4589
|
"div",
|
|
4591
4590
|
{
|
|
4592
4591
|
className: cx$2(
|
|
4593
|
-
styles$
|
|
4594
|
-
disabled2 || disabledContext ? styles$
|
|
4592
|
+
styles$L.trigger,
|
|
4593
|
+
disabled2 || disabledContext ? styles$L.disabled : null
|
|
4595
4594
|
),
|
|
4596
4595
|
style: { width: width2 },
|
|
4597
4596
|
children: /* @__PURE__ */ jsx(
|
|
@@ -4631,13 +4630,13 @@ const Text$1 = ({
|
|
|
4631
4630
|
"div",
|
|
4632
4631
|
{
|
|
4633
4632
|
className: cx$2(
|
|
4634
|
-
styles$
|
|
4635
|
-
disabled2 ? styles$
|
|
4636
|
-
isOpen2 ? styles$
|
|
4633
|
+
styles$L.trigger,
|
|
4634
|
+
disabled2 ? styles$L.disabled : null,
|
|
4635
|
+
isOpen2 ? styles$L.active : null
|
|
4637
4636
|
),
|
|
4638
4637
|
children: [
|
|
4639
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4640
|
-
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
|
|
4641
4640
|
]
|
|
4642
4641
|
}
|
|
4643
4642
|
);
|
|
@@ -4650,7 +4649,7 @@ const Component = ({
|
|
|
4650
4649
|
return /* @__PURE__ */ jsx(
|
|
4651
4650
|
"div",
|
|
4652
4651
|
{
|
|
4653
|
-
className: cx$2(styles$
|
|
4652
|
+
className: cx$2(styles$L.component, disabled2 ? styles$L.disabled : null),
|
|
4654
4653
|
"data-testid": testId,
|
|
4655
4654
|
children: component2
|
|
4656
4655
|
}
|
|
@@ -4731,7 +4730,7 @@ const Trigger$1 = React__default.forwardRef(
|
|
|
4731
4730
|
"div",
|
|
4732
4731
|
{
|
|
4733
4732
|
ref: ref2,
|
|
4734
|
-
className: styles$
|
|
4733
|
+
className: styles$L.wrapper,
|
|
4735
4734
|
style: width2 ? { width: width2 } : {
|
|
4736
4735
|
...fullHeight && {
|
|
4737
4736
|
height: "100%",
|
|
@@ -4953,7 +4952,7 @@ const DropDownMenu = ({
|
|
|
4953
4952
|
"div",
|
|
4954
4953
|
{
|
|
4955
4954
|
...layerProps,
|
|
4956
|
-
className: styles$
|
|
4955
|
+
className: styles$L.layerContainer,
|
|
4957
4956
|
"data-testid": menu2.testId,
|
|
4958
4957
|
onClick: (evt) => evt.stopPropagation(),
|
|
4959
4958
|
children: /* @__PURE__ */ jsx(
|
|
@@ -5021,9 +5020,8 @@ const SubmenuActions = (props) => {
|
|
|
5021
5020
|
const Actions = (props) => {
|
|
5022
5021
|
const disabledContext = useContext(DisabledContext);
|
|
5023
5022
|
const { actions: actions2 = [], closeLayer } = props;
|
|
5024
|
-
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
5023
|
+
return /* @__PURE__ */ jsx("div", { className: cx$2(styles$M.actions), children: actions2.map((action2, index2) => {
|
|
5025
5024
|
const hidden2 = (action2 == null ? void 0 : action2.hidden) || !action2 || !Object.keys(action2).length;
|
|
5026
|
-
const tooltip2 = (action2 == null ? void 0 : action2.tooltip) || (action2 == null ? void 0 : action2.label);
|
|
5027
5025
|
if (!hidden2) {
|
|
5028
5026
|
if (action2.childComponent && React__default.isValidElement(action2.childComponent)) {
|
|
5029
5027
|
return /* @__PURE__ */ jsx("div", { "data-testid": action2.testId, children: action2.childComponent }, index2);
|
|
@@ -5035,7 +5033,7 @@ const Actions = (props) => {
|
|
|
5035
5033
|
primary: action2.primary,
|
|
5036
5034
|
subMenuIcon: action2.icon,
|
|
5037
5035
|
testId: action2.testId,
|
|
5038
|
-
tooltip:
|
|
5036
|
+
tooltip: action2.tooltip
|
|
5039
5037
|
},
|
|
5040
5038
|
index2
|
|
5041
5039
|
);
|
|
@@ -5062,7 +5060,7 @@ const Actions = (props) => {
|
|
|
5062
5060
|
}
|
|
5063
5061
|
},
|
|
5064
5062
|
testId: action2.testId,
|
|
5065
|
-
tooltip:
|
|
5063
|
+
tooltip: action2.tooltip
|
|
5066
5064
|
},
|
|
5067
5065
|
index2
|
|
5068
5066
|
);
|
|
@@ -5076,7 +5074,7 @@ const labelContainer = "_labelContainer_2k0cd_7";
|
|
|
5076
5074
|
const active$5 = "_active_2k0cd_17";
|
|
5077
5075
|
const disabled$7 = "_disabled_2k0cd_22";
|
|
5078
5076
|
const separator = "_separator_2k0cd_27";
|
|
5079
|
-
const styles$
|
|
5077
|
+
const styles$J = {
|
|
5080
5078
|
breadcrumb,
|
|
5081
5079
|
small: small$a,
|
|
5082
5080
|
labelContainer,
|
|
@@ -5107,16 +5105,16 @@ const Link$2 = ({
|
|
|
5107
5105
|
{
|
|
5108
5106
|
onClick,
|
|
5109
5107
|
className: cx$2(
|
|
5110
|
-
styles$
|
|
5111
|
-
active2 && styles$
|
|
5112
|
-
(disabled2 || disabledContext) && styles$
|
|
5108
|
+
styles$J.labelContainer,
|
|
5109
|
+
active2 && styles$J.active,
|
|
5110
|
+
(disabled2 || disabledContext) && styles$J.disabled
|
|
5113
5111
|
),
|
|
5114
5112
|
children: isLink ? /* @__PURE__ */ jsx("a", { href: url, children: label2 }) : isCustom ? element : label2
|
|
5115
5113
|
}
|
|
5116
5114
|
);
|
|
5117
5115
|
};
|
|
5118
5116
|
const Breadcrumb = ({ links, small: small2 = false }) => {
|
|
5119
|
-
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) => {
|
|
5120
5118
|
const isFinal = links.length === i + 1;
|
|
5121
5119
|
const { type, label: label2, url, onClick, active: active2, disabled: disabled2, element } = link2;
|
|
5122
5120
|
return /* @__PURE__ */ jsxs("span", { children: [
|
|
@@ -5132,13 +5130,13 @@ const Breadcrumb = ({ links, small: small2 = false }) => {
|
|
|
5132
5130
|
element
|
|
5133
5131
|
}
|
|
5134
5132
|
),
|
|
5135
|
-
!isFinal && /* @__PURE__ */ jsx("span", { className: styles$
|
|
5133
|
+
!isFinal && /* @__PURE__ */ jsx("span", { className: styles$J.separator, children: "/" })
|
|
5136
5134
|
] }, i);
|
|
5137
5135
|
}) });
|
|
5138
5136
|
};
|
|
5139
5137
|
const label$8 = "_label_iu2wi_1";
|
|
5140
5138
|
const buttonGroup = "_buttonGroup_iu2wi_11";
|
|
5141
|
-
const styles$
|
|
5139
|
+
const styles$I = {
|
|
5142
5140
|
label: label$8,
|
|
5143
5141
|
buttonGroup
|
|
5144
5142
|
};
|
|
@@ -5199,7 +5197,7 @@ const ButtonGroup = (props) => {
|
|
|
5199
5197
|
};
|
|
5200
5198
|
const renderHeader = () => {
|
|
5201
5199
|
if (header2) {
|
|
5202
|
-
return /* @__PURE__ */ jsx("label", { className: styles$
|
|
5200
|
+
return /* @__PURE__ */ jsx("label", { className: styles$I.label, children: header2 });
|
|
5203
5201
|
}
|
|
5204
5202
|
};
|
|
5205
5203
|
const renderButtons = () => {
|
|
@@ -5256,7 +5254,7 @@ const ButtonGroup = (props) => {
|
|
|
5256
5254
|
};
|
|
5257
5255
|
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("div", { children: [
|
|
5258
5256
|
renderHeader(),
|
|
5259
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
5257
|
+
/* @__PURE__ */ jsx("div", { className: styles$I.buttonGroup, "data-testid": testId, children: renderButtons() })
|
|
5260
5258
|
] }) });
|
|
5261
5259
|
};
|
|
5262
5260
|
const card = "_card_ucdeu_1";
|
|
@@ -5266,7 +5264,7 @@ const cardHeader = "_cardHeader_ucdeu_13";
|
|
|
5266
5264
|
const cardContentBorderTop = "_cardContentBorderTop_ucdeu_19";
|
|
5267
5265
|
const padding$1 = "_padding_ucdeu_22";
|
|
5268
5266
|
const cardContent = "_cardContent_ucdeu_19";
|
|
5269
|
-
const styles$
|
|
5267
|
+
const styles$H = {
|
|
5270
5268
|
card,
|
|
5271
5269
|
bordered: bordered$2,
|
|
5272
5270
|
raised,
|
|
@@ -5287,20 +5285,20 @@ const Card = ({
|
|
|
5287
5285
|
"div",
|
|
5288
5286
|
{
|
|
5289
5287
|
className: cx$2(
|
|
5290
|
-
styles$
|
|
5291
|
-
bordered2 ? styles$
|
|
5292
|
-
raised2 ? styles$
|
|
5288
|
+
styles$H.card,
|
|
5289
|
+
bordered2 ? styles$H.bordered : "",
|
|
5290
|
+
raised2 ? styles$H.raised : ""
|
|
5293
5291
|
),
|
|
5294
5292
|
style: { margin: margin2 },
|
|
5295
5293
|
children: [
|
|
5296
|
-
heading2 ? /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
5294
|
+
heading2 ? /* @__PURE__ */ jsx("div", { className: cx$2(styles$H.cardHeader), children: heading2 }) : null,
|
|
5297
5295
|
/* @__PURE__ */ jsx(
|
|
5298
5296
|
"div",
|
|
5299
5297
|
{
|
|
5300
5298
|
className: cx$2(
|
|
5301
|
-
styles$
|
|
5302
|
-
heading2 ? styles$
|
|
5303
|
-
padding2 ? styles$
|
|
5299
|
+
styles$H.cardContent,
|
|
5300
|
+
heading2 ? styles$H.cardContentBorderTop : "",
|
|
5301
|
+
padding2 ? styles$H.padding : ""
|
|
5304
5302
|
),
|
|
5305
5303
|
children
|
|
5306
5304
|
}
|
|
@@ -6532,7 +6530,7 @@ const Column = ({
|
|
|
6532
6530
|
const divider = "_divider_2bfzh_1";
|
|
6533
6531
|
const alignLeft = "_alignLeft_2bfzh_12";
|
|
6534
6532
|
const alignRight = "_alignRight_2bfzh_15";
|
|
6535
|
-
const styles$
|
|
6533
|
+
const styles$G = {
|
|
6536
6534
|
divider,
|
|
6537
6535
|
alignLeft,
|
|
6538
6536
|
alignRight
|
|
@@ -6546,7 +6544,7 @@ const warning$a = "_warning_11ofj_16";
|
|
|
6546
6544
|
const error$7 = "_error_11ofj_19";
|
|
6547
6545
|
const small$9 = "_small_11ofj_22";
|
|
6548
6546
|
const link$1 = "_link_11ofj_25";
|
|
6549
|
-
const styles$
|
|
6547
|
+
const styles$F = {
|
|
6550
6548
|
bold: bold$1,
|
|
6551
6549
|
center,
|
|
6552
6550
|
muted: muted$1,
|
|
@@ -6574,16 +6572,16 @@ const Text = ({
|
|
|
6574
6572
|
"span",
|
|
6575
6573
|
{
|
|
6576
6574
|
className: cx$2(
|
|
6577
|
-
bold2 && styles$
|
|
6578
|
-
center2 && styles$
|
|
6579
|
-
error2 && styles$
|
|
6580
|
-
faint2 && styles$
|
|
6581
|
-
link2 && styles$
|
|
6582
|
-
muted2 && styles$
|
|
6583
|
-
onClick && styles$
|
|
6584
|
-
small2 && styles$
|
|
6585
|
-
success2 && styles$
|
|
6586
|
-
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
|
|
6587
6585
|
),
|
|
6588
6586
|
onClick,
|
|
6589
6587
|
children
|
|
@@ -6593,9 +6591,9 @@ const Text = ({
|
|
|
6593
6591
|
const cssAlignClass = (align) => {
|
|
6594
6592
|
switch (align) {
|
|
6595
6593
|
case Align.LEFT:
|
|
6596
|
-
return styles$
|
|
6594
|
+
return styles$G.alignLeft;
|
|
6597
6595
|
case Align.RIGHT:
|
|
6598
|
-
return styles$
|
|
6596
|
+
return styles$G.alignRight;
|
|
6599
6597
|
default:
|
|
6600
6598
|
return "";
|
|
6601
6599
|
}
|
|
@@ -6608,7 +6606,7 @@ const Divider = ({
|
|
|
6608
6606
|
}) => /* @__PURE__ */ jsx(
|
|
6609
6607
|
"div",
|
|
6610
6608
|
{
|
|
6611
|
-
className: `${styles$
|
|
6609
|
+
className: `${styles$G.divider} ${cssAlignClass(align)}`,
|
|
6612
6610
|
style: {
|
|
6613
6611
|
marginTop: margin2,
|
|
6614
6612
|
marginBottom: margin2,
|
|
@@ -6620,7 +6618,7 @@ const Divider = ({
|
|
|
6620
6618
|
const heading$4 = "_heading_yhdiy_1";
|
|
6621
6619
|
const top$1 = "_top_yhdiy_10";
|
|
6622
6620
|
const icons$2 = "_icons_yhdiy_20";
|
|
6623
|
-
const styles$
|
|
6621
|
+
const styles$E = {
|
|
6624
6622
|
heading: heading$4,
|
|
6625
6623
|
top: top$1,
|
|
6626
6624
|
icons: icons$2
|
|
@@ -6641,13 +6639,13 @@ const Heading$2 = ({
|
|
|
6641
6639
|
return /* @__PURE__ */ jsxs(
|
|
6642
6640
|
"div",
|
|
6643
6641
|
{
|
|
6644
|
-
className: cx$2(styles$
|
|
6642
|
+
className: cx$2(styles$E.heading, top2 ? styles$E.top : ""),
|
|
6645
6643
|
style: { marginBottom },
|
|
6646
6644
|
onClick,
|
|
6647
6645
|
"data-testid": testId,
|
|
6648
6646
|
children: [
|
|
6649
6647
|
children,
|
|
6650
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
6648
|
+
/* @__PURE__ */ jsxs("div", { className: styles$E.icons, children: [
|
|
6651
6649
|
icon2 && /* @__PURE__ */ jsx(HelpIcon, { onClick: onIconClick, icon: icon2 }),
|
|
6652
6650
|
isHelpIconDisplayed && /* @__PURE__ */ jsx(HelpIcon, { text: helpText, onClick: onClickHelp }),
|
|
6653
6651
|
libraryIcon && /* @__PURE__ */ jsx(
|
|
@@ -6670,7 +6668,7 @@ const header$2 = "_header_18g0k_24";
|
|
|
6670
6668
|
const dismiss$2 = "_dismiss_18g0k_33";
|
|
6671
6669
|
const content$3 = "_content_18g0k_38";
|
|
6672
6670
|
const footer$2 = "_footer_18g0k_47";
|
|
6673
|
-
const styles$
|
|
6671
|
+
const styles$D = {
|
|
6674
6672
|
dialog,
|
|
6675
6673
|
inline: inline$3,
|
|
6676
6674
|
scroll: scroll$3,
|
|
@@ -6705,16 +6703,16 @@ const Dialog = ({ dialog: dialog2 }) => {
|
|
|
6705
6703
|
"div",
|
|
6706
6704
|
{
|
|
6707
6705
|
className: cx$2(
|
|
6708
|
-
styles$
|
|
6709
|
-
width2 ? styles$
|
|
6710
|
-
scroll3 ? styles$
|
|
6706
|
+
styles$D.dialog,
|
|
6707
|
+
width2 ? styles$D.inline : null,
|
|
6708
|
+
scroll3 ? styles$D.scroll : null
|
|
6711
6709
|
),
|
|
6712
6710
|
style: { width: width2, height: height2 },
|
|
6713
6711
|
"data-testid": testId ?? null,
|
|
6714
6712
|
children: [
|
|
6715
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
6713
|
+
/* @__PURE__ */ jsxs("div", { className: styles$D.header, children: [
|
|
6716
6714
|
/* @__PURE__ */ jsx(Heading$2, { testId: testId && `${testId}-heading`, top: true, marginBottom: 0, children: heading2 }),
|
|
6717
|
-
onClose ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
6715
|
+
onClose ? /* @__PURE__ */ jsx("div", { className: styles$D.dismiss, children: /* @__PURE__ */ jsx(
|
|
6718
6716
|
Button$1,
|
|
6719
6717
|
{
|
|
6720
6718
|
icon: IconType.CLOSE,
|
|
@@ -6730,7 +6728,7 @@ const Dialog = ({ dialog: dialog2 }) => {
|
|
|
6730
6728
|
"div",
|
|
6731
6729
|
{
|
|
6732
6730
|
"data-testid": testId && `${testId}-content`,
|
|
6733
|
-
className: styles$
|
|
6731
|
+
className: styles$D.content,
|
|
6734
6732
|
style: { padding: contentPadding2 },
|
|
6735
6733
|
children: convertStringToJsx(content2)
|
|
6736
6734
|
}
|
|
@@ -6739,7 +6737,7 @@ const Dialog = ({ dialog: dialog2 }) => {
|
|
|
6739
6737
|
"div",
|
|
6740
6738
|
{
|
|
6741
6739
|
"data-testid": testId && `${testId}-footer`,
|
|
6742
|
-
className: styles$
|
|
6740
|
+
className: styles$D.footer,
|
|
6743
6741
|
children: footer2
|
|
6744
6742
|
}
|
|
6745
6743
|
)
|
|
@@ -6772,7 +6770,7 @@ const active$4 = "_active_khmhl_197";
|
|
|
6772
6770
|
const disabled$6 = "_disabled_khmhl_222";
|
|
6773
6771
|
const tabsContent = "_tabsContent_khmhl_229";
|
|
6774
6772
|
const resizeHandle = "_resizeHandle_khmhl_235";
|
|
6775
|
-
const styles$
|
|
6773
|
+
const styles$C = {
|
|
6776
6774
|
inputInTable: inputInTable$a,
|
|
6777
6775
|
inputHover: inputHover$a,
|
|
6778
6776
|
inputFocus: inputFocus$a,
|
|
@@ -6814,13 +6812,13 @@ const DrawerTabs = ({
|
|
|
6814
6812
|
testId
|
|
6815
6813
|
}) => {
|
|
6816
6814
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
6817
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
6815
|
+
/* @__PURE__ */ jsx("div", { className: styles$C.tabs, children: tabs2.map((tab2, index2) => /* @__PURE__ */ jsx(
|
|
6818
6816
|
"div",
|
|
6819
6817
|
{
|
|
6820
6818
|
className: cx$2(
|
|
6821
|
-
styles$
|
|
6822
|
-
activeTab === index2 && open ? styles$
|
|
6823
|
-
tab2.disabled ? styles$
|
|
6819
|
+
styles$C.tab,
|
|
6820
|
+
activeTab === index2 && open ? styles$C.active : "",
|
|
6821
|
+
tab2.disabled ? styles$C.disabled : ""
|
|
6824
6822
|
),
|
|
6825
6823
|
style: { background: background2 },
|
|
6826
6824
|
onClick: !tab2.disabled ? () => handleTabClick(index2) : void 0,
|
|
@@ -6835,7 +6833,7 @@ const DrawerTabs = ({
|
|
|
6835
6833
|
"div",
|
|
6836
6834
|
{
|
|
6837
6835
|
style: { width: typeof width2 === "number" ? `${width2}px` : width2 },
|
|
6838
|
-
className: styles$
|
|
6836
|
+
className: styles$C.tabsContent,
|
|
6839
6837
|
"data-testid": testId && `${testId}-content-${index2}`,
|
|
6840
6838
|
children: active2 && open && tab2.content
|
|
6841
6839
|
},
|
|
@@ -8827,7 +8825,7 @@ const MIN_OPEN_WIDTH = 240;
|
|
|
8827
8825
|
const ResizeHandle = forwardRef(
|
|
8828
8826
|
(props, ref2) => {
|
|
8829
8827
|
const { handleAxis, ...rest } = props;
|
|
8830
|
-
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 }) });
|
|
8831
8829
|
}
|
|
8832
8830
|
);
|
|
8833
8831
|
const DrawerResizeWrapper = ({
|
|
@@ -8854,7 +8852,7 @@ const DrawerResizeWrapper = ({
|
|
|
8854
8852
|
handle: /* @__PURE__ */ jsx(ResizeHandle, {}),
|
|
8855
8853
|
resizeHandles: right2 ? ["w"] : ["e"],
|
|
8856
8854
|
axis: "x",
|
|
8857
|
-
className: isResizing2 ? styles$
|
|
8855
|
+
className: isResizing2 ? styles$C.isResizing : "",
|
|
8858
8856
|
onResizeStart: () => {
|
|
8859
8857
|
if (setOpen)
|
|
8860
8858
|
setOpen(true);
|
|
@@ -8955,17 +8953,17 @@ const Drawer = ({
|
|
|
8955
8953
|
"div",
|
|
8956
8954
|
{
|
|
8957
8955
|
className: cx$2(
|
|
8958
|
-
styles$
|
|
8959
|
-
shadow4 ? styles$
|
|
8960
|
-
fixed2 ? styles$
|
|
8961
|
-
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
|
|
8962
8960
|
),
|
|
8963
8961
|
style: { top: top2 },
|
|
8964
8962
|
children: [
|
|
8965
8963
|
/* @__PURE__ */ jsx(
|
|
8966
8964
|
"div",
|
|
8967
8965
|
{
|
|
8968
|
-
className: cx$2(styles$
|
|
8966
|
+
className: cx$2(styles$C.drawerContent, border2 && styles$C.border),
|
|
8969
8967
|
style: {
|
|
8970
8968
|
background: background2,
|
|
8971
8969
|
borderColor: typeof border2 === "string" ? border2 : void 0,
|
|
@@ -8991,9 +8989,9 @@ const Drawer = ({
|
|
|
8991
8989
|
"span",
|
|
8992
8990
|
{
|
|
8993
8991
|
className: cx$2(
|
|
8994
|
-
styles$
|
|
8995
|
-
localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$
|
|
8996
|
-
buttonPosition === "top" ? styles$
|
|
8992
|
+
styles$C.toggleButton,
|
|
8993
|
+
localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$C.toggleButtonOpen : "",
|
|
8994
|
+
buttonPosition === "top" ? styles$C.top : styles$C.bottom
|
|
8997
8995
|
),
|
|
8998
8996
|
children: isCustomButton ? button2 : /* @__PURE__ */ jsx(
|
|
8999
8997
|
Button$1,
|
|
@@ -9013,7 +9011,7 @@ const Drawer = ({
|
|
|
9013
9011
|
};
|
|
9014
9012
|
const empty$2 = "_empty_fe425_1";
|
|
9015
9013
|
const text$2 = "_text_fe425_11";
|
|
9016
|
-
const styles$
|
|
9014
|
+
const styles$B = {
|
|
9017
9015
|
empty: empty$2,
|
|
9018
9016
|
text: text$2
|
|
9019
9017
|
};
|
|
@@ -9027,7 +9025,7 @@ const Empty = ({
|
|
|
9027
9025
|
return /* @__PURE__ */ jsxs(
|
|
9028
9026
|
"div",
|
|
9029
9027
|
{
|
|
9030
|
-
className: styles$
|
|
9028
|
+
className: styles$B.empty,
|
|
9031
9029
|
style: { width: width2, height: height2 },
|
|
9032
9030
|
"data-testid": testId,
|
|
9033
9031
|
children: [
|
|
@@ -9059,14 +9057,14 @@ const Empty = ({
|
|
|
9059
9057
|
)
|
|
9060
9058
|
] })
|
|
9061
9059
|
] }) }),
|
|
9062
|
-
text2 !== "" && /* @__PURE__ */ jsx("div", { className: styles$
|
|
9060
|
+
text2 !== "" && /* @__PURE__ */ jsx("div", { className: styles$B.text, children: /* @__PURE__ */ jsx(Text, { faint: true, children: text2 }) }),
|
|
9063
9061
|
children
|
|
9064
9062
|
]
|
|
9065
9063
|
}
|
|
9066
9064
|
);
|
|
9067
9065
|
};
|
|
9068
9066
|
const inputGroup = "_inputGroup_biuoa_1";
|
|
9069
|
-
const styles$
|
|
9067
|
+
const styles$A = {
|
|
9070
9068
|
inputGroup
|
|
9071
9069
|
};
|
|
9072
9070
|
const isDOMTypeElement = (element) => {
|
|
@@ -9091,7 +9089,7 @@ const InputGroup = ({
|
|
|
9091
9089
|
return /* @__PURE__ */ jsx(
|
|
9092
9090
|
"div",
|
|
9093
9091
|
{
|
|
9094
|
-
className: cx$2(styles$
|
|
9092
|
+
className: cx$2(styles$A.inputGroup),
|
|
9095
9093
|
style: { width: width2 },
|
|
9096
9094
|
children: elements
|
|
9097
9095
|
}
|
|
@@ -9113,7 +9111,7 @@ const right$5 = "_right_jnwnh_170";
|
|
|
9113
9111
|
const groupOrderFirst$3 = "_groupOrderFirst_jnwnh_173";
|
|
9114
9112
|
const groupOrderMiddle$3 = "_groupOrderMiddle_jnwnh_174";
|
|
9115
9113
|
const groupOrderLast$3 = "_groupOrderLast_jnwnh_175";
|
|
9116
|
-
const styles$
|
|
9114
|
+
const styles$z = {
|
|
9117
9115
|
inputInTable: inputInTable$9,
|
|
9118
9116
|
inputHover: inputHover$9,
|
|
9119
9117
|
inputFocus: inputFocus$9,
|
|
@@ -9168,11 +9166,11 @@ const Input$1 = forwardRef(
|
|
|
9168
9166
|
if (groupOrder) {
|
|
9169
9167
|
switch (groupOrder) {
|
|
9170
9168
|
case "first":
|
|
9171
|
-
return styles$
|
|
9169
|
+
return styles$z.groupOrderFirst;
|
|
9172
9170
|
case "last":
|
|
9173
|
-
return styles$
|
|
9171
|
+
return styles$z.groupOrderLast;
|
|
9174
9172
|
default:
|
|
9175
|
-
return styles$
|
|
9173
|
+
return styles$z.groupOrderMiddle;
|
|
9176
9174
|
}
|
|
9177
9175
|
}
|
|
9178
9176
|
return "";
|
|
@@ -9206,11 +9204,11 @@ const Input$1 = forwardRef(
|
|
|
9206
9204
|
autoComplete: "off",
|
|
9207
9205
|
disabled: disabled2 || disabledContext,
|
|
9208
9206
|
className: cx$2(
|
|
9209
|
-
styles$
|
|
9210
|
-
error2 ? styles$
|
|
9211
|
-
right2 ? styles$
|
|
9212
|
-
small2 ? styles$
|
|
9213
|
-
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 : ""
|
|
9214
9212
|
),
|
|
9215
9213
|
style: { width: width2 },
|
|
9216
9214
|
"data-testid": testId
|
|
@@ -9221,7 +9219,7 @@ const Input$1 = forwardRef(
|
|
|
9221
9219
|
}
|
|
9222
9220
|
);
|
|
9223
9221
|
const fileInput = "_fileInput_1elar_1";
|
|
9224
|
-
const styles$
|
|
9222
|
+
const styles$y = {
|
|
9225
9223
|
fileInput
|
|
9226
9224
|
};
|
|
9227
9225
|
var InputReaderMethods = /* @__PURE__ */ ((InputReaderMethods2) => {
|
|
@@ -9290,7 +9288,7 @@ const FileInput = ({
|
|
|
9290
9288
|
{
|
|
9291
9289
|
name: name2,
|
|
9292
9290
|
ref: inputRef,
|
|
9293
|
-
className: styles$
|
|
9291
|
+
className: styles$y.fileInput,
|
|
9294
9292
|
type: "file",
|
|
9295
9293
|
accept,
|
|
9296
9294
|
onChange: (evt) => {
|
|
@@ -9311,7 +9309,7 @@ const FileInput = ({
|
|
|
9311
9309
|
const label$7 = "_label_18pfe_1";
|
|
9312
9310
|
const labelLeft$1 = "_labelLeft_18pfe_5";
|
|
9313
9311
|
const icons$1 = "_icons_18pfe_13";
|
|
9314
|
-
const styles$
|
|
9312
|
+
const styles$x = {
|
|
9315
9313
|
label: label$7,
|
|
9316
9314
|
labelLeft: labelLeft$1,
|
|
9317
9315
|
icons: icons$1
|
|
@@ -9334,9 +9332,9 @@ const Label$2 = ({
|
|
|
9334
9332
|
libraryIcon,
|
|
9335
9333
|
labelLeft: labelLeft2 = false
|
|
9336
9334
|
}) => {
|
|
9337
|
-
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: [
|
|
9338
9336
|
label2,
|
|
9339
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
9337
|
+
/* @__PURE__ */ jsxs("div", { className: styles$x.icons, children: [
|
|
9340
9338
|
(helpText || onClickHelp) && /* @__PURE__ */ jsx(
|
|
9341
9339
|
HelpIcon,
|
|
9342
9340
|
{
|
|
@@ -9371,7 +9369,7 @@ const labelLeft = "_labelLeft_1xoss_5";
|
|
|
9371
9369
|
const fieldInput = "_fieldInput_1xoss_9";
|
|
9372
9370
|
const formRow$1 = "_formRow_1xoss_12";
|
|
9373
9371
|
const button$2 = "_button_1xoss_22";
|
|
9374
|
-
const styles$
|
|
9372
|
+
const styles$w = {
|
|
9375
9373
|
field,
|
|
9376
9374
|
labelLeft,
|
|
9377
9375
|
fieldInput,
|
|
@@ -9402,7 +9400,7 @@ const Field = ({
|
|
|
9402
9400
|
return /* @__PURE__ */ jsxs(
|
|
9403
9401
|
"div",
|
|
9404
9402
|
{
|
|
9405
|
-
className: cx$2(styles$
|
|
9403
|
+
className: cx$2(styles$w.field, labelLeft2 ? styles$w.labelLeft : ""),
|
|
9406
9404
|
"data-testid": testId,
|
|
9407
9405
|
children: [
|
|
9408
9406
|
(label2 || labelLeft2) && /* @__PURE__ */ jsx(
|
|
@@ -9419,7 +9417,7 @@ const Field = ({
|
|
|
9419
9417
|
labelLeft: labelLeft2
|
|
9420
9418
|
}
|
|
9421
9419
|
),
|
|
9422
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
9420
|
+
/* @__PURE__ */ jsx("div", { className: styles$w.fieldInput, children })
|
|
9423
9421
|
]
|
|
9424
9422
|
}
|
|
9425
9423
|
);
|
|
@@ -9450,11 +9448,11 @@ const Flex = ({
|
|
|
9450
9448
|
);
|
|
9451
9449
|
};
|
|
9452
9450
|
const formRow = "_formRow_odewu_1";
|
|
9453
|
-
const styles$
|
|
9451
|
+
const styles$v = {
|
|
9454
9452
|
formRow
|
|
9455
9453
|
};
|
|
9456
9454
|
const FormRow = ({ children }) => {
|
|
9457
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
9455
|
+
return /* @__PURE__ */ jsx("div", { className: styles$v.formRow, children });
|
|
9458
9456
|
};
|
|
9459
9457
|
const getGapValue = (gap) => {
|
|
9460
9458
|
if (typeof gap === "boolean") {
|
|
@@ -9514,7 +9512,7 @@ const small$7 = "_small_b4w53_12";
|
|
|
9514
9512
|
const groupOrderFirst$2 = "_groupOrderFirst_b4w53_16";
|
|
9515
9513
|
const groupOrderMiddle$2 = "_groupOrderMiddle_b4w53_17";
|
|
9516
9514
|
const groupOrderLast$2 = "_groupOrderLast_b4w53_21";
|
|
9517
|
-
const styles$
|
|
9515
|
+
const styles$u = {
|
|
9518
9516
|
addon,
|
|
9519
9517
|
small: small$7,
|
|
9520
9518
|
groupOrderFirst: groupOrderFirst$2,
|
|
@@ -9530,16 +9528,16 @@ const InputGroupAddon = ({
|
|
|
9530
9528
|
if (groupOrder) {
|
|
9531
9529
|
switch (groupOrder) {
|
|
9532
9530
|
case GroupOrder.FIRST:
|
|
9533
|
-
return styles$
|
|
9531
|
+
return styles$u.groupOrderFirst;
|
|
9534
9532
|
case GroupOrder.LAST:
|
|
9535
|
-
return styles$
|
|
9533
|
+
return styles$u.groupOrderLast;
|
|
9536
9534
|
default:
|
|
9537
|
-
return styles$
|
|
9535
|
+
return styles$u.groupOrderMiddle;
|
|
9538
9536
|
}
|
|
9539
9537
|
}
|
|
9540
9538
|
return "";
|
|
9541
9539
|
})();
|
|
9542
|
-
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 });
|
|
9543
9541
|
};
|
|
9544
9542
|
function _typeof$2(o) {
|
|
9545
9543
|
"@babel/helpers - typeof";
|
|
@@ -15946,7 +15944,7 @@ function useStartupValidation() {
|
|
|
15946
15944
|
checkDoctype(document);
|
|
15947
15945
|
}, []);
|
|
15948
15946
|
}
|
|
15949
|
-
function usePrevious$
|
|
15947
|
+
function usePrevious$3(current) {
|
|
15950
15948
|
var ref2 = useRef(current);
|
|
15951
15949
|
useEffect(function() {
|
|
15952
15950
|
ref2.current = current;
|
|
@@ -16624,7 +16622,7 @@ function useTouchSensor(api) {
|
|
|
16624
16622
|
}
|
|
16625
16623
|
function useValidateSensorHooks(sensorHooks) {
|
|
16626
16624
|
useDev(function() {
|
|
16627
|
-
var previousRef = usePrevious$
|
|
16625
|
+
var previousRef = usePrevious$3(sensorHooks);
|
|
16628
16626
|
useDevSetupWarning(function() {
|
|
16629
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;
|
|
16630
16628
|
});
|
|
@@ -17036,7 +17034,7 @@ function App(props) {
|
|
|
17036
17034
|
var contextId = props.contextId, setCallbacks = props.setCallbacks, sensors = props.sensors, nonce = props.nonce, dragHandleUsageInstructions2 = props.dragHandleUsageInstructions;
|
|
17037
17035
|
var lazyStoreRef = useRef(null);
|
|
17038
17036
|
useStartupValidation();
|
|
17039
|
-
var lastPropsRef = usePrevious$
|
|
17037
|
+
var lastPropsRef = usePrevious$3(props);
|
|
17040
17038
|
var getResponders = useCallback(function() {
|
|
17041
17039
|
return createResponders(lastPropsRef.current);
|
|
17042
17040
|
}, [lastPropsRef]);
|
|
@@ -17388,7 +17386,7 @@ function useDroppablePublisher(args) {
|
|
|
17388
17386
|
var appContext = useRequiredContext(AppContext);
|
|
17389
17387
|
var uniqueId3 = useUniqueId("droppable");
|
|
17390
17388
|
var registry = appContext.registry, marshal = appContext.marshal;
|
|
17391
|
-
var previousRef = usePrevious$
|
|
17389
|
+
var previousRef = usePrevious$3(args);
|
|
17392
17390
|
var descriptor = useMemo(function() {
|
|
17393
17391
|
return {
|
|
17394
17392
|
id: args.droppableId,
|
|
@@ -19071,7 +19069,7 @@ const dimmer = "_dimmer_477i5_21";
|
|
|
19071
19069
|
const content$2 = "_content_477i5_44";
|
|
19072
19070
|
const text$1 = "_text_477i5_49";
|
|
19073
19071
|
const details$1 = "_details_477i5_53";
|
|
19074
|
-
const styles$
|
|
19072
|
+
const styles$t = {
|
|
19075
19073
|
loader,
|
|
19076
19074
|
fullViewPortSize,
|
|
19077
19075
|
cover,
|
|
@@ -19096,22 +19094,22 @@ const Loader = ({
|
|
|
19096
19094
|
return /* @__PURE__ */ jsx(
|
|
19097
19095
|
"div",
|
|
19098
19096
|
{
|
|
19099
|
-
className: cx$2(styles$
|
|
19100
|
-
[styles$
|
|
19097
|
+
className: cx$2(styles$t.loader, cover2 ? styles$t.cover : "", {
|
|
19098
|
+
[styles$t.fullViewPortSize]: fullViewPortSize2
|
|
19101
19099
|
}),
|
|
19102
19100
|
style: { width: width2, height: height2 },
|
|
19103
19101
|
"data-testid": testId,
|
|
19104
|
-
children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
19102
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$t.dimmer, style: { background: background2, color: color2 }, children: /* @__PURE__ */ jsxs(
|
|
19105
19103
|
"div",
|
|
19106
19104
|
{
|
|
19107
|
-
className: styles$
|
|
19105
|
+
className: styles$t.content,
|
|
19108
19106
|
"data-testid": testId && `${testId}-content`,
|
|
19109
19107
|
children: [
|
|
19110
19108
|
children,
|
|
19111
19109
|
text2 && /* @__PURE__ */ jsx(
|
|
19112
19110
|
"div",
|
|
19113
19111
|
{
|
|
19114
|
-
className: styles$
|
|
19112
|
+
className: styles$t.text,
|
|
19115
19113
|
"data-testid": testId && `${testId}-text`,
|
|
19116
19114
|
children: text2
|
|
19117
19115
|
}
|
|
@@ -19119,7 +19117,7 @@ const Loader = ({
|
|
|
19119
19117
|
details2 && /* @__PURE__ */ jsx(
|
|
19120
19118
|
"div",
|
|
19121
19119
|
{
|
|
19122
|
-
className: styles$
|
|
19120
|
+
className: styles$t.details,
|
|
19123
19121
|
"data-testid": testId && `${testId}-details`,
|
|
19124
19122
|
children: details2
|
|
19125
19123
|
}
|
|
@@ -19323,7 +19321,7 @@ const absolute = "_absolute_s49vk_143";
|
|
|
19323
19321
|
const legendToggle = "_legendToggle_s49vk_155";
|
|
19324
19322
|
const detailsText = "_detailsText_s49vk_165";
|
|
19325
19323
|
const footer$1 = "_footer_s49vk_169";
|
|
19326
|
-
const styles$
|
|
19324
|
+
const styles$s = {
|
|
19327
19325
|
inputInTable: inputInTable$7,
|
|
19328
19326
|
inputHover: inputHover$7,
|
|
19329
19327
|
inputFocus: inputFocus$7,
|
|
@@ -19362,9 +19360,9 @@ const Dismiss = ({ type, onClose, isInToast }) => {
|
|
|
19362
19360
|
"div",
|
|
19363
19361
|
{
|
|
19364
19362
|
className: cx$2(
|
|
19365
|
-
styles$
|
|
19366
|
-
isInToast ? styles$
|
|
19367
|
-
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
|
|
19368
19366
|
),
|
|
19369
19367
|
children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CLOSE, onClick: onClose })
|
|
19370
19368
|
}
|
|
@@ -19386,8 +19384,8 @@ const reducer$1 = (state, action2) => {
|
|
|
19386
19384
|
};
|
|
19387
19385
|
const Details = ({ details: details2, visible, dispatch }) => {
|
|
19388
19386
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
19389
|
-
/* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
19390
|
-
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
|
|
19391
19389
|
] });
|
|
19392
19390
|
};
|
|
19393
19391
|
const DialogIcon = ({ type }) => {
|
|
@@ -19422,15 +19420,15 @@ const Message = ({ message: message2 }) => {
|
|
|
19422
19420
|
"div",
|
|
19423
19421
|
{
|
|
19424
19422
|
className: cx$2(
|
|
19425
|
-
styles$
|
|
19426
|
-
width2 ? styles$
|
|
19427
|
-
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
|
|
19428
19426
|
),
|
|
19429
19427
|
style: { width: width2, maxHeight },
|
|
19430
19428
|
children: [
|
|
19431
|
-
/* @__PURE__ */ jsx("div", { children: icon2 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
19432
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
19433
|
-
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,
|
|
19434
19432
|
/* @__PURE__ */ jsx("div", { children: content2 }),
|
|
19435
19433
|
details2 ? /* @__PURE__ */ jsx(
|
|
19436
19434
|
Details,
|
|
@@ -19440,7 +19438,7 @@ const Message = ({ message: message2 }) => {
|
|
|
19440
19438
|
dispatch: () => dispatch({ type: MessageToggle.TOGGLE_DETAILS })
|
|
19441
19439
|
}
|
|
19442
19440
|
) : null,
|
|
19443
|
-
!!footer2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
19441
|
+
!!footer2 && /* @__PURE__ */ jsx("div", { className: styles$s.footer, children: footer2 })
|
|
19444
19442
|
] }),
|
|
19445
19443
|
withDismiss ? /* @__PURE__ */ jsx(Dismiss, { type, onClose }) : null
|
|
19446
19444
|
]
|
|
@@ -19473,7 +19471,7 @@ const wrapper$2 = "_wrapper_sb0hc_1";
|
|
|
19473
19471
|
const contentContainer = "_contentContainer_sb0hc_15";
|
|
19474
19472
|
const centered = "_centered_sb0hc_24";
|
|
19475
19473
|
const newLine = "_newLine_sb0hc_28";
|
|
19476
|
-
const styles$
|
|
19474
|
+
const styles$r = {
|
|
19477
19475
|
wrapper: wrapper$2,
|
|
19478
19476
|
contentContainer,
|
|
19479
19477
|
centered,
|
|
@@ -19493,12 +19491,12 @@ const Wrapper = ({ children }) => {
|
|
|
19493
19491
|
}
|
|
19494
19492
|
}
|
|
19495
19493
|
}, []);
|
|
19496
|
-
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 });
|
|
19497
19495
|
};
|
|
19498
19496
|
const Content$2 = ({ children, width: width2, centered: centered2 }) => /* @__PURE__ */ jsx(
|
|
19499
19497
|
"div",
|
|
19500
19498
|
{
|
|
19501
|
-
className: cx$2(styles$
|
|
19499
|
+
className: cx$2(styles$r.contentContainer, centered2 ? styles$r.centered : ""),
|
|
19502
19500
|
style: { maxWidth: width2 },
|
|
19503
19501
|
children
|
|
19504
19502
|
}
|
|
@@ -19538,7 +19536,7 @@ const menu$1 = "_menu_12x4u_1";
|
|
|
19538
19536
|
const header = "_header_12x4u_11";
|
|
19539
19537
|
const item$3 = "_item_12x4u_27";
|
|
19540
19538
|
const heading$1 = "_heading_12x4u_32";
|
|
19541
|
-
const styles$
|
|
19539
|
+
const styles$q = {
|
|
19542
19540
|
menu: menu$1,
|
|
19543
19541
|
header,
|
|
19544
19542
|
item: item$3,
|
|
@@ -19549,9 +19547,9 @@ const Option$1 = ({
|
|
|
19549
19547
|
onChange
|
|
19550
19548
|
}) => {
|
|
19551
19549
|
const { key: key2, label: label2, selected: selected2 } = option2;
|
|
19552
|
-
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);
|
|
19553
19551
|
};
|
|
19554
|
-
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 });
|
|
19555
19553
|
var DropdownType = /* @__PURE__ */ ((DropdownType2) => {
|
|
19556
19554
|
DropdownType2["HEADING"] = "Heading";
|
|
19557
19555
|
DropdownType2["DIVIDER"] = "Divider";
|
|
@@ -19564,9 +19562,9 @@ const Layer$1 = ({
|
|
|
19564
19562
|
showHeader,
|
|
19565
19563
|
maxHeight
|
|
19566
19564
|
}) => {
|
|
19567
|
-
return /* @__PURE__ */ jsxs("div", { className: cx$2("menu", styles$
|
|
19565
|
+
return /* @__PURE__ */ jsxs("div", { className: cx$2("menu", styles$q.menu), style: { maxHeight }, children: [
|
|
19568
19566
|
showHeader && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
19569
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
19567
|
+
/* @__PURE__ */ jsxs("div", { className: styles$q.header, children: [
|
|
19570
19568
|
/* @__PURE__ */ jsx(
|
|
19571
19569
|
"a",
|
|
19572
19570
|
{
|
|
@@ -19669,7 +19667,7 @@ const OptionDropdown = ({
|
|
|
19669
19667
|
};
|
|
19670
19668
|
const page = "_page_beskc_1";
|
|
19671
19669
|
const scroll$1 = "_scroll_beskc_23";
|
|
19672
|
-
const styles$
|
|
19670
|
+
const styles$p = {
|
|
19673
19671
|
page,
|
|
19674
19672
|
scroll: scroll$1
|
|
19675
19673
|
};
|
|
@@ -19684,7 +19682,7 @@ const Page = ({
|
|
|
19684
19682
|
return /* @__PURE__ */ jsx(
|
|
19685
19683
|
"div",
|
|
19686
19684
|
{
|
|
19687
|
-
className: cx$2(styles$
|
|
19685
|
+
className: cx$2(styles$p.page, scroll3 ? styles$p.scroll : ""),
|
|
19688
19686
|
style: { left: left2, padding: padding2, top: top2 },
|
|
19689
19687
|
children
|
|
19690
19688
|
}
|
|
@@ -19707,7 +19705,7 @@ const right$3 = "_right_2ynxq_182";
|
|
|
19707
19705
|
const groupOrderFirst$1 = "_groupOrderFirst_2ynxq_193";
|
|
19708
19706
|
const groupOrderMiddle$1 = "_groupOrderMiddle_2ynxq_194";
|
|
19709
19707
|
const groupOrderLast$1 = "_groupOrderLast_2ynxq_198";
|
|
19710
|
-
const styles$
|
|
19708
|
+
const styles$o = {
|
|
19711
19709
|
inputInTable: inputInTable$6,
|
|
19712
19710
|
inputHover: inputHover$6,
|
|
19713
19711
|
inputFocus: inputFocus$6,
|
|
@@ -19795,11 +19793,11 @@ const NativeSelect = ({
|
|
|
19795
19793
|
if (groupOrder) {
|
|
19796
19794
|
switch (groupOrder) {
|
|
19797
19795
|
case GroupOrder.FIRST:
|
|
19798
|
-
return styles$
|
|
19796
|
+
return styles$o.groupOrderFirst;
|
|
19799
19797
|
case GroupOrder.LAST:
|
|
19800
|
-
return styles$
|
|
19798
|
+
return styles$o.groupOrderLast;
|
|
19801
19799
|
default:
|
|
19802
|
-
return styles$
|
|
19800
|
+
return styles$o.groupOrderMiddle;
|
|
19803
19801
|
}
|
|
19804
19802
|
}
|
|
19805
19803
|
return "";
|
|
@@ -19817,12 +19815,12 @@ const NativeSelect = ({
|
|
|
19817
19815
|
"select",
|
|
19818
19816
|
{
|
|
19819
19817
|
className: cx$2(
|
|
19820
|
-
styles$
|
|
19821
|
-
isUnselected ? styles$
|
|
19822
|
-
error2 ? styles$
|
|
19823
|
-
right2 ? styles$
|
|
19824
|
-
small2 ? styles$
|
|
19825
|
-
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 : "",
|
|
19826
19824
|
order2
|
|
19827
19825
|
),
|
|
19828
19826
|
style: {
|
|
@@ -20597,7 +20595,7 @@ const optionContent = "_optionContent_1lbvo_92";
|
|
|
20597
20595
|
const label$5 = "_label_1lbvo_97";
|
|
20598
20596
|
const icon$2 = "_icon_1lbvo_104";
|
|
20599
20597
|
const details = "_details_1lbvo_109";
|
|
20600
|
-
const styles$
|
|
20598
|
+
const styles$n = {
|
|
20601
20599
|
layerContainer,
|
|
20602
20600
|
layer,
|
|
20603
20601
|
small: small$5,
|
|
@@ -20618,7 +20616,7 @@ const Heading = ({ label: label2 }) => {
|
|
|
20618
20616
|
"div",
|
|
20619
20617
|
{
|
|
20620
20618
|
onClick: (evt) => evt.stopPropagation(),
|
|
20621
|
-
className: styles$
|
|
20619
|
+
className: styles$n.heading,
|
|
20622
20620
|
children: label2
|
|
20623
20621
|
}
|
|
20624
20622
|
);
|
|
@@ -20639,21 +20637,21 @@ const Option = ({
|
|
|
20639
20637
|
"div",
|
|
20640
20638
|
{
|
|
20641
20639
|
className: cx$2(
|
|
20642
|
-
styles$
|
|
20643
|
-
disabled2 ? styles$
|
|
20644
|
-
selected2 ? styles$
|
|
20645
|
-
focused2 ? styles$
|
|
20640
|
+
styles$n.option,
|
|
20641
|
+
disabled2 ? styles$n.disabled : "",
|
|
20642
|
+
selected2 ? styles$n.selected : "",
|
|
20643
|
+
focused2 ? styles$n.focused : ""
|
|
20646
20644
|
),
|
|
20647
20645
|
onClick: !disabled2 && onSelectOption ? onSelectOption : void 0,
|
|
20648
20646
|
"data-testid": testId,
|
|
20649
20647
|
children: [
|
|
20650
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
20648
|
+
/* @__PURE__ */ jsx("div", { className: styles$n.optionContent, children: /* @__PURE__ */ jsxs("span", { className: styles$n.label, title: label2, children: [
|
|
20651
20649
|
label2,
|
|
20652
|
-
icon2 && /* @__PURE__ */ jsx("span", { className: styles$
|
|
20650
|
+
icon2 && /* @__PURE__ */ jsx("span", { className: styles$n.icon, children: icon2 })
|
|
20653
20651
|
] }) }),
|
|
20654
|
-
details2 && /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
20655
|
-
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
20656
|
-
/* @__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 })
|
|
20657
20655
|
]
|
|
20658
20656
|
}
|
|
20659
20657
|
);
|
|
@@ -20765,8 +20763,8 @@ const Layer = ({
|
|
|
20765
20763
|
"div",
|
|
20766
20764
|
{
|
|
20767
20765
|
"data-testid": testId,
|
|
20768
|
-
className: cx$2(styles$
|
|
20769
|
-
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(
|
|
20770
20768
|
FixedSizeList,
|
|
20771
20769
|
{
|
|
20772
20770
|
ref: listRef,
|
|
@@ -20828,7 +20826,7 @@ const groupOrderFirst = "_groupOrderFirst_1qfoj_297";
|
|
|
20828
20826
|
const groupOrderMiddle = "_groupOrderMiddle_1qfoj_298";
|
|
20829
20827
|
const groupOrderLast = "_groupOrderLast_1qfoj_302";
|
|
20830
20828
|
const detailedLabel = "_detailedLabel_1qfoj_307";
|
|
20831
|
-
const styles$
|
|
20829
|
+
const styles$m = {
|
|
20832
20830
|
inputInTable: inputInTable$5,
|
|
20833
20831
|
inputHover: inputHover$5,
|
|
20834
20832
|
inputFocus: inputFocus$5,
|
|
@@ -20886,11 +20884,11 @@ const MultiSelectedOptions = ({
|
|
|
20886
20884
|
setDisplayedOptions(displayed);
|
|
20887
20885
|
setOverflowOptions(overflow);
|
|
20888
20886
|
}, [selectedOptions, isFontLoaded, width2]);
|
|
20889
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
20887
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$m.multiOptions, children: [
|
|
20890
20888
|
displayedOptions.filter((option2) => option2 && option2.label).map((option2, index2) => /* @__PURE__ */ jsx(
|
|
20891
20889
|
"span",
|
|
20892
20890
|
{
|
|
20893
|
-
className: styles$
|
|
20891
|
+
className: styles$m.multiOption,
|
|
20894
20892
|
onClick: (evt) => {
|
|
20895
20893
|
evt.stopPropagation();
|
|
20896
20894
|
},
|
|
@@ -20903,7 +20901,7 @@ const MultiSelectedOptions = ({
|
|
|
20903
20901
|
{
|
|
20904
20902
|
text: overflowOptions.map((option2, index2) => /* @__PURE__ */ jsx("div", { children: option2.label }, index2)),
|
|
20905
20903
|
display: "inline-flex",
|
|
20906
|
-
children: /* @__PURE__ */ jsx("span", { className: styles$
|
|
20904
|
+
children: /* @__PURE__ */ jsx("span", { className: styles$m.multiOption, children: displayedOptions.length ? `+${overflowOptions.length}` : `${overflowOptions.length} items` })
|
|
20907
20905
|
}
|
|
20908
20906
|
)
|
|
20909
20907
|
] });
|
|
@@ -20929,22 +20927,22 @@ const Input = ({
|
|
|
20929
20927
|
const inputWidth = ((_b = inputRef.current) == null ? void 0 : _b.offsetWidth) || 0;
|
|
20930
20928
|
return containerWidth - inputWidth;
|
|
20931
20929
|
};
|
|
20932
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
20933
|
-
!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(
|
|
20934
20932
|
MultiSelectedOptions,
|
|
20935
20933
|
{
|
|
20936
20934
|
selectedOptions,
|
|
20937
20935
|
small: small2,
|
|
20938
20936
|
width: getMultiOptionsWidth()
|
|
20939
20937
|
}
|
|
20940
|
-
) : /* @__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 : "" }),
|
|
20941
20939
|
searchable ? /* @__PURE__ */ jsx(
|
|
20942
20940
|
"input",
|
|
20943
20941
|
{
|
|
20944
20942
|
tabIndex: -1,
|
|
20945
20943
|
ref: inputRef,
|
|
20946
20944
|
size: inputSize,
|
|
20947
|
-
className: cx$2(styles$
|
|
20945
|
+
className: cx$2(styles$m.input, error2 ? styles$m.error : ""),
|
|
20948
20946
|
value: searchValue,
|
|
20949
20947
|
onChange: (evt) => onChange(evt.target.value)
|
|
20950
20948
|
}
|
|
@@ -20988,18 +20986,18 @@ const Trigger = ({
|
|
|
20988
20986
|
if (groupOrder) {
|
|
20989
20987
|
switch (groupOrder) {
|
|
20990
20988
|
case GroupOrder.FIRST:
|
|
20991
|
-
return styles$
|
|
20989
|
+
return styles$m.groupOrderFirst;
|
|
20992
20990
|
case GroupOrder.LAST:
|
|
20993
|
-
return styles$
|
|
20991
|
+
return styles$m.groupOrderLast;
|
|
20994
20992
|
default:
|
|
20995
|
-
return styles$
|
|
20993
|
+
return styles$m.groupOrderMiddle;
|
|
20996
20994
|
}
|
|
20997
20995
|
}
|
|
20998
20996
|
return "";
|
|
20999
20997
|
})();
|
|
21000
20998
|
const selectedOptionsWithDetails = !Array.isArray(selectedOptions) && (selectedOptions == null ? void 0 : selectedOptions.details) ? {
|
|
21001
20999
|
...selectedOptions,
|
|
21002
|
-
label: /* @__PURE__ */ jsxs("div", { className: cx$2(styles$
|
|
21000
|
+
label: /* @__PURE__ */ jsxs("div", { className: cx$2(styles$m.detailedLabel), children: [
|
|
21003
21001
|
/* @__PURE__ */ jsx(Text, { children: selectedOptions.label }),
|
|
21004
21002
|
/* @__PURE__ */ jsx(Text, { muted: true, children: selectedOptions.details })
|
|
21005
21003
|
] })
|
|
@@ -21012,13 +21010,13 @@ const Trigger = ({
|
|
|
21012
21010
|
ref: triggerRef,
|
|
21013
21011
|
tabIndex,
|
|
21014
21012
|
className: cx$2(
|
|
21015
|
-
styles$
|
|
21016
|
-
isOpen2 ? styles$
|
|
21017
|
-
error2 ? styles$
|
|
21018
|
-
disabled2 ? styles$
|
|
21019
|
-
small2 ? styles$
|
|
21020
|
-
isInTable2 ? styles$
|
|
21021
|
-
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 : "",
|
|
21022
21020
|
order2
|
|
21023
21021
|
),
|
|
21024
21022
|
onClick: (evt) => {
|
|
@@ -21045,12 +21043,12 @@ const Trigger = ({
|
|
|
21045
21043
|
small: small2
|
|
21046
21044
|
}
|
|
21047
21045
|
),
|
|
21048
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
21046
|
+
/* @__PURE__ */ jsx("span", { className: styles$m.icons, children: canClear ? /* @__PURE__ */ jsx(
|
|
21049
21047
|
"span",
|
|
21050
21048
|
{
|
|
21051
21049
|
className: cx$2(
|
|
21052
|
-
styles$
|
|
21053
|
-
clearAllIsFocused ? styles$
|
|
21050
|
+
styles$m.clearAll,
|
|
21051
|
+
clearAllIsFocused ? styles$m.focus : ""
|
|
21054
21052
|
),
|
|
21055
21053
|
onClick: (evt) => {
|
|
21056
21054
|
evt.stopPropagation();
|
|
@@ -21060,7 +21058,7 @@ const Trigger = ({
|
|
|
21060
21058
|
},
|
|
21061
21059
|
children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CLOSE })
|
|
21062
21060
|
}
|
|
21063
|
-
) : /* @__PURE__ */ jsx("span", { className: cx$2(styles$
|
|
21061
|
+
) : /* @__PURE__ */ jsx("span", { className: cx$2(styles$m.iconOpen), children: /* @__PURE__ */ jsx(Icon, { icon: "chevron down" }) }) })
|
|
21064
21062
|
]
|
|
21065
21063
|
}
|
|
21066
21064
|
)
|
|
@@ -21601,7 +21599,7 @@ const CustomSelect = (props) => {
|
|
|
21601
21599
|
}
|
|
21602
21600
|
),
|
|
21603
21601
|
state.isLayerOpen && renderLayer(
|
|
21604
|
-
/* @__PURE__ */ jsx("div", { ...layerProps, className: styles$
|
|
21602
|
+
/* @__PURE__ */ jsx("div", { ...layerProps, className: styles$n.layerContainer, children: /* @__PURE__ */ jsx(
|
|
21605
21603
|
Layer,
|
|
21606
21604
|
{
|
|
21607
21605
|
listRef,
|
|
@@ -21726,7 +21724,8 @@ const Select = (props) => {
|
|
|
21726
21724
|
error: error2,
|
|
21727
21725
|
checkNonExistentValues = true,
|
|
21728
21726
|
closeOnOptionActionClick = true,
|
|
21729
|
-
testId
|
|
21727
|
+
testId,
|
|
21728
|
+
disabled: disabled2
|
|
21730
21729
|
} = props;
|
|
21731
21730
|
const enableAutoScroll = !native && autoScroll2 === true;
|
|
21732
21731
|
const {
|
|
@@ -21748,11 +21747,11 @@ const Select = (props) => {
|
|
|
21748
21747
|
console.warn("Native select does not support provided props (see stories)");
|
|
21749
21748
|
}
|
|
21750
21749
|
const nonExistentWarning = "Value no longer available for re-selection";
|
|
21751
|
-
const fullWarning = hasNonExistentValue ? warning2 ? /* @__PURE__ */ jsxs("div", { children: [
|
|
21750
|
+
const fullWarning = hasNonExistentValue && !disabled2 ? warning2 ? /* @__PURE__ */ jsxs("div", { children: [
|
|
21752
21751
|
/* @__PURE__ */ jsx("div", { children: nonExistentWarning }),
|
|
21753
21752
|
/* @__PURE__ */ jsx("div", { children: warning2 })
|
|
21754
21753
|
] }) : nonExistentWarning : warning2;
|
|
21755
|
-
const fullError = hasNonExistentValue && error2 ? /* @__PURE__ */ jsxs("div", { children: [
|
|
21754
|
+
const fullError = hasNonExistentValue && error2 && !disabled2 ? /* @__PURE__ */ jsxs("div", { children: [
|
|
21756
21755
|
/* @__PURE__ */ jsx("div", { children: nonExistentWarning }),
|
|
21757
21756
|
/* @__PURE__ */ jsx("div", { children: error2 })
|
|
21758
21757
|
] }) : error2;
|
|
@@ -21849,7 +21848,7 @@ const validateSelectedPage = (selectedPage, numPages, errorMessageTemplate = "Se
|
|
|
21849
21848
|
return valid;
|
|
21850
21849
|
};
|
|
21851
21850
|
const paginationContainer = "_paginationContainer_1tmz4_1";
|
|
21852
|
-
const styles$
|
|
21851
|
+
const styles$l = {
|
|
21853
21852
|
paginationContainer
|
|
21854
21853
|
};
|
|
21855
21854
|
const Pagination = ({ pagination }) => {
|
|
@@ -21886,7 +21885,7 @@ const Pagination = ({ pagination }) => {
|
|
|
21886
21885
|
onSelectPage(Number(value));
|
|
21887
21886
|
}
|
|
21888
21887
|
};
|
|
21889
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
21888
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$l.paginationContainer, children: [
|
|
21890
21889
|
rowsPerPage && /* @__PURE__ */ jsx("div", { style: { flexShrink: 0 }, children: /* @__PURE__ */ jsx(
|
|
21891
21890
|
Select,
|
|
21892
21891
|
{
|
|
@@ -21971,7 +21970,7 @@ const Pagination = ({ pagination }) => {
|
|
|
21971
21970
|
const toggleBox = "_toggleBox_lhie5_1";
|
|
21972
21971
|
const fullWidthStyleFix = "_fullWidthStyleFix_lhie5_8";
|
|
21973
21972
|
const dismiss = "_dismiss_lhie5_13";
|
|
21974
|
-
const styles$
|
|
21973
|
+
const styles$k = {
|
|
21975
21974
|
toggleBox,
|
|
21976
21975
|
fullWidthStyleFix,
|
|
21977
21976
|
dismiss
|
|
@@ -22015,7 +22014,7 @@ const Popover = ({
|
|
|
22015
22014
|
/* @__PURE__ */ jsxs(
|
|
22016
22015
|
"div",
|
|
22017
22016
|
{
|
|
22018
|
-
className: fullWidth ? cx$2(styles$
|
|
22017
|
+
className: fullWidth ? cx$2(styles$k.toggleBox, styles$k.fullWidthStyleFix) : cx$2(styles$k.toggleBox),
|
|
22019
22018
|
...layerProps,
|
|
22020
22019
|
children: [
|
|
22021
22020
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -22023,7 +22022,7 @@ const Popover = ({
|
|
|
22023
22022
|
content2,
|
|
22024
22023
|
{ close: close2 }
|
|
22025
22024
|
) : content2,
|
|
22026
|
-
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 }) })
|
|
22027
22026
|
] }),
|
|
22028
22027
|
/* @__PURE__ */ jsx(
|
|
22029
22028
|
Arrow,
|
|
@@ -22042,7 +22041,7 @@ const Popover = ({
|
|
|
22042
22041
|
] });
|
|
22043
22042
|
};
|
|
22044
22043
|
const printHeader = "_printHeader_o7xxx_1";
|
|
22045
|
-
const styles$
|
|
22044
|
+
const styles$j = {
|
|
22046
22045
|
printHeader
|
|
22047
22046
|
};
|
|
22048
22047
|
const PrintHeader = ({
|
|
@@ -22054,7 +22053,7 @@ const PrintHeader = ({
|
|
|
22054
22053
|
{
|
|
22055
22054
|
src: logo2,
|
|
22056
22055
|
alt,
|
|
22057
|
-
className: styles$
|
|
22056
|
+
className: styles$j.printHeader,
|
|
22058
22057
|
style: { width: logoWidth }
|
|
22059
22058
|
}
|
|
22060
22059
|
);
|
|
@@ -22068,7 +22067,7 @@ const orange = "_orange_23ror_30";
|
|
|
22068
22067
|
const yellow = "_yellow_23ror_33";
|
|
22069
22068
|
const green = "_green_23ror_36";
|
|
22070
22069
|
const label$3 = "_label_23ror_39";
|
|
22071
|
-
const styles$
|
|
22070
|
+
const styles$i = {
|
|
22072
22071
|
progress: progress$1,
|
|
22073
22072
|
inverted,
|
|
22074
22073
|
bar,
|
|
@@ -22082,14 +22081,14 @@ const styles$h = {
|
|
|
22082
22081
|
};
|
|
22083
22082
|
const getColor = (perct) => {
|
|
22084
22083
|
if (perct < 20)
|
|
22085
|
-
return styles$
|
|
22084
|
+
return styles$i.grey;
|
|
22086
22085
|
if (perct < 40)
|
|
22087
|
-
return styles$
|
|
22086
|
+
return styles$i.red;
|
|
22088
22087
|
if (perct < 60)
|
|
22089
|
-
return styles$
|
|
22088
|
+
return styles$i.orange;
|
|
22090
22089
|
if (perct < 80)
|
|
22091
|
-
return styles$
|
|
22092
|
-
return styles$
|
|
22090
|
+
return styles$i.yellow;
|
|
22091
|
+
return styles$i.green;
|
|
22093
22092
|
};
|
|
22094
22093
|
const ProgressBar$1 = ({
|
|
22095
22094
|
width: width2 = "auto",
|
|
@@ -22102,21 +22101,21 @@ const ProgressBar$1 = ({
|
|
|
22102
22101
|
return /* @__PURE__ */ jsx("div", { style: { width: width2 }, "data-percent": percentage, children: /* @__PURE__ */ jsxs(
|
|
22103
22102
|
"div",
|
|
22104
22103
|
{
|
|
22105
|
-
className: cx$2(styles$
|
|
22104
|
+
className: cx$2(styles$i.progress, inverted2 ? styles$i.inverted : ""),
|
|
22106
22105
|
style: { width: width2 },
|
|
22107
22106
|
children: [
|
|
22108
22107
|
/* @__PURE__ */ jsx(
|
|
22109
22108
|
"div",
|
|
22110
22109
|
{
|
|
22111
22110
|
className: cx$2(
|
|
22112
|
-
styles$
|
|
22113
|
-
showProgressColors ? getColor(percentage) : colored2 ? styles$
|
|
22111
|
+
styles$i.bar,
|
|
22112
|
+
showProgressColors ? getColor(percentage) : colored2 ? styles$i.colored : ""
|
|
22114
22113
|
),
|
|
22115
22114
|
style: { width: `${percentage}%` },
|
|
22116
|
-
children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
22115
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$i.label, children: !noLabel2 && `${percentage}%` })
|
|
22117
22116
|
}
|
|
22118
22117
|
),
|
|
22119
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
22118
|
+
/* @__PURE__ */ jsx("div", { className: styles$i.label, children: !noLabel2 && `${percentage}%` })
|
|
22120
22119
|
]
|
|
22121
22120
|
}
|
|
22122
22121
|
) });
|
|
@@ -22130,7 +22129,7 @@ const noMargin$1 = "_noMargin_1fbik_32";
|
|
|
22130
22129
|
const disabled$2 = "_disabled_1fbik_90";
|
|
22131
22130
|
const isInTable = "_isInTable_1fbik_106";
|
|
22132
22131
|
const helpIconEnabled$1 = "_helpIconEnabled_1fbik_111";
|
|
22133
|
-
const styles$
|
|
22132
|
+
const styles$h = {
|
|
22134
22133
|
wrapper: wrapper$1,
|
|
22135
22134
|
inline: inline$1,
|
|
22136
22135
|
radio,
|
|
@@ -22159,10 +22158,10 @@ const RadioInput = ({
|
|
|
22159
22158
|
"div",
|
|
22160
22159
|
{
|
|
22161
22160
|
className: cx$2(
|
|
22162
|
-
styles$
|
|
22163
|
-
disabled2 ? styles$
|
|
22164
|
-
small2 ? styles$
|
|
22165
|
-
noMargin2 ? styles$
|
|
22161
|
+
styles$h.radio,
|
|
22162
|
+
disabled2 ? styles$h.disabled : null,
|
|
22163
|
+
small2 ? styles$h.small : null,
|
|
22164
|
+
noMargin2 ? styles$h.noMargin : null
|
|
22166
22165
|
),
|
|
22167
22166
|
onClick: onChange,
|
|
22168
22167
|
"data-testid": testId,
|
|
@@ -22179,7 +22178,7 @@ const RadioInput = ({
|
|
|
22179
22178
|
}
|
|
22180
22179
|
),
|
|
22181
22180
|
/* @__PURE__ */ jsx("label", { "data-name": name2, "data-value": value, children: label2 }),
|
|
22182
|
-
showHelp && /* @__PURE__ */ jsx("div", { className: styles$
|
|
22181
|
+
showHelp && /* @__PURE__ */ jsx("div", { className: styles$h.helpIconEnabled, onClick: onClickHelp, children: /* @__PURE__ */ jsx(HelpIcon, { text: helpText }) })
|
|
22183
22182
|
]
|
|
22184
22183
|
}
|
|
22185
22184
|
);
|
|
@@ -22219,13 +22218,13 @@ const RadioButton = ({
|
|
|
22219
22218
|
"div",
|
|
22220
22219
|
{
|
|
22221
22220
|
className: cx$2(
|
|
22222
|
-
styles$
|
|
22223
|
-
inline2 ? styles$
|
|
22224
|
-
classForContainer === "inline fields" ? styles$
|
|
22221
|
+
styles$h.wrapper,
|
|
22222
|
+
inline2 ? styles$h.inline : null,
|
|
22223
|
+
classForContainer === "inline fields" ? styles$h.inline : null
|
|
22225
22224
|
//deprecated
|
|
22226
22225
|
),
|
|
22227
22226
|
children: [
|
|
22228
|
-
mainLabel && /* @__PURE__ */ jsx("label", { className: cx$2(inline2 && styles$
|
|
22227
|
+
mainLabel && /* @__PURE__ */ jsx("label", { className: cx$2(inline2 && styles$h.labelMargin), children: label2 }),
|
|
22229
22228
|
options.map(
|
|
22230
22229
|
(option2, index2) => {
|
|
22231
22230
|
const selected2 = option2.checked || option2.value === selectedValue || false;
|
|
@@ -49747,7 +49746,7 @@ function createContextHook(useHook) {
|
|
|
49747
49746
|
function contextHookFactory(DefaultContext2) {
|
|
49748
49747
|
return (selector, equalityCheck) => {
|
|
49749
49748
|
const context2 = useContext(DefaultContext2);
|
|
49750
|
-
const previousContext = usePrevious$
|
|
49749
|
+
const previousContext = usePrevious$2(context2);
|
|
49751
49750
|
if (!context2) {
|
|
49752
49751
|
throw new Error(
|
|
49753
49752
|
"`useContextHook` must be placed inside the `Provider` returned by the `createContextState` method"
|
|
@@ -49769,7 +49768,7 @@ function contextHookFactory(DefaultContext2) {
|
|
|
49769
49768
|
return equalityCheck(previousValue, value) ? previousValue : value;
|
|
49770
49769
|
};
|
|
49771
49770
|
}
|
|
49772
|
-
function usePrevious$
|
|
49771
|
+
function usePrevious$2(value) {
|
|
49773
49772
|
const ref2 = useRef();
|
|
49774
49773
|
useIsomorphicLayoutEffect$3(() => {
|
|
49775
49774
|
ref2.current = value;
|
|
@@ -52269,7 +52268,7 @@ var ReactFramework = class extends Framework {
|
|
|
52269
52268
|
};
|
|
52270
52269
|
_editorRef = /* @__PURE__ */ new WeakMap();
|
|
52271
52270
|
var useIsomorphicLayoutEffect$2 = typeof document !== "undefined" ? useLayoutEffect$1 : useEffect;
|
|
52272
|
-
function usePrevious(value) {
|
|
52271
|
+
function usePrevious$1(value) {
|
|
52273
52272
|
const ref2 = useRef();
|
|
52274
52273
|
useIsomorphicLayoutEffect$2(() => {
|
|
52275
52274
|
ref2.current = value;
|
|
@@ -52323,7 +52322,7 @@ function useFramework(props) {
|
|
|
52323
52322
|
function useControlledEditor(framework) {
|
|
52324
52323
|
const { state } = framework.props;
|
|
52325
52324
|
const isControlledRef = useRef(!!state);
|
|
52326
|
-
const previousValue = usePrevious(state);
|
|
52325
|
+
const previousValue = usePrevious$1(state);
|
|
52327
52326
|
useIsomorphicLayoutEffect$2(() => {
|
|
52328
52327
|
const validUpdate = state ? isControlledRef.current === true : isControlledRef.current === false;
|
|
52329
52328
|
invariant$2(validUpdate, {
|
|
@@ -52381,7 +52380,7 @@ function Remirror(props) {
|
|
|
52381
52380
|
const all = "";
|
|
52382
52381
|
const richTextToolbar = "_richTextToolbar_1gbkk_1";
|
|
52383
52382
|
const richTextToolbarContainer = "_richTextToolbarContainer_1gbkk_5";
|
|
52384
|
-
const styles$
|
|
52383
|
+
const styles$g = {
|
|
52385
52384
|
richTextToolbar,
|
|
52386
52385
|
richTextToolbarContainer
|
|
52387
52386
|
};
|
|
@@ -52433,8 +52432,8 @@ const RichTextToolbar = ({
|
|
|
52433
52432
|
active: active2.orderedList()
|
|
52434
52433
|
}
|
|
52435
52434
|
];
|
|
52436
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
52437
|
-
/* @__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(
|
|
52438
52437
|
Button$1,
|
|
52439
52438
|
{
|
|
52440
52439
|
small: true,
|
|
@@ -52462,7 +52461,7 @@ const inputWarning$4 = "_inputWarning_ta5ga_26";
|
|
|
52462
52461
|
const inputDisabled$4 = "_inputDisabled_ta5ga_61";
|
|
52463
52462
|
const hideScrollbars$4 = "_hideScrollbars_ta5ga_67";
|
|
52464
52463
|
const richTextInput = "_richTextInput_ta5ga_77";
|
|
52465
|
-
const styles$
|
|
52464
|
+
const styles$f = {
|
|
52466
52465
|
inputInTable: inputInTable$4,
|
|
52467
52466
|
inputHover: inputHover$4,
|
|
52468
52467
|
inputFocus: inputFocus$4,
|
|
@@ -52498,7 +52497,7 @@ const RichTextInput = forwardRef(
|
|
|
52498
52497
|
}
|
|
52499
52498
|
setState(state2);
|
|
52500
52499
|
};
|
|
52501
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
52500
|
+
return /* @__PURE__ */ jsx("div", { className: styles$f.richTextInput, children: /* @__PURE__ */ jsxs(
|
|
52502
52501
|
Remirror,
|
|
52503
52502
|
{
|
|
52504
52503
|
manager,
|
|
@@ -52521,7 +52520,7 @@ const RichTextInput = forwardRef(
|
|
|
52521
52520
|
}
|
|
52522
52521
|
);
|
|
52523
52522
|
const row = "_row_n16je_1";
|
|
52524
|
-
const styles$
|
|
52523
|
+
const styles$e = {
|
|
52525
52524
|
row
|
|
52526
52525
|
};
|
|
52527
52526
|
const Row$1 = ({
|
|
@@ -52542,7 +52541,7 @@ const Row$1 = ({
|
|
|
52542
52541
|
return /* @__PURE__ */ jsx(
|
|
52543
52542
|
"div",
|
|
52544
52543
|
{
|
|
52545
|
-
className: cx$2(styles$
|
|
52544
|
+
className: cx$2(styles$e.row),
|
|
52546
52545
|
style: {
|
|
52547
52546
|
alignItems,
|
|
52548
52547
|
justifyContent,
|
|
@@ -52668,7 +52667,7 @@ const item$2 = "_item_1ube5_140";
|
|
|
52668
52667
|
const experimental = "_experimental_1ube5_155";
|
|
52669
52668
|
const active$2 = "_active_1ube5_159";
|
|
52670
52669
|
const icon$1 = "_icon_1ube5_163";
|
|
52671
|
-
const styles$
|
|
52670
|
+
const styles$d = {
|
|
52672
52671
|
inputInTable: inputInTable$3,
|
|
52673
52672
|
inputHover: inputHover$3,
|
|
52674
52673
|
inputFocus: inputFocus$3,
|
|
@@ -52701,10 +52700,10 @@ const TooltipIcon = memo(
|
|
|
52701
52700
|
fontSize: 16,
|
|
52702
52701
|
padding: "var(--padding-sm)",
|
|
52703
52702
|
display: "block",
|
|
52704
|
-
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 }) }) })
|
|
52705
52704
|
}
|
|
52706
52705
|
),
|
|
52707
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
52706
|
+
/* @__PURE__ */ jsx("span", { className: styles$d.label, children: label2 })
|
|
52708
52707
|
] });
|
|
52709
52708
|
},
|
|
52710
52709
|
(prevProps, nextProps) => isEqual$1(prevProps, nextProps)
|
|
@@ -52716,16 +52715,16 @@ const Link$1 = ({
|
|
|
52716
52715
|
onClick,
|
|
52717
52716
|
testId
|
|
52718
52717
|
}) => {
|
|
52719
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
52718
|
+
return /* @__PURE__ */ jsx("div", { className: styles$d.list, children: items.map((link2, i) => {
|
|
52720
52719
|
const key2 = `${sectionIndex}_${i}`;
|
|
52721
52720
|
return /* @__PURE__ */ jsx(
|
|
52722
52721
|
"a",
|
|
52723
52722
|
{
|
|
52724
52723
|
href: link2.value,
|
|
52725
52724
|
className: cx$2(
|
|
52726
|
-
styles$
|
|
52727
|
-
link2.isActive ? styles$
|
|
52728
|
-
link2.isExperimental ? styles$
|
|
52725
|
+
styles$d.item,
|
|
52726
|
+
link2.isActive ? styles$d.active : "",
|
|
52727
|
+
link2.isExperimental ? styles$d.experimental : ""
|
|
52729
52728
|
),
|
|
52730
52729
|
onClick: (evt) => onClick(evt, link2.value, link2.label, link2.onClick),
|
|
52731
52730
|
"data-testid": testId,
|
|
@@ -52750,7 +52749,7 @@ const Sections = ({
|
|
|
52750
52749
|
onClick
|
|
52751
52750
|
}) => {
|
|
52752
52751
|
return /* @__PURE__ */ jsx(Fragment$1, { children: sections.map((section2, i) => /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
52753
|
-
/* @__PURE__ */ jsx("h5", { className: styles$
|
|
52752
|
+
/* @__PURE__ */ jsx("h5", { className: styles$d.subtitle, children: section2.heading.toUpperCase() }),
|
|
52754
52753
|
/* @__PURE__ */ jsx(
|
|
52755
52754
|
Link$1,
|
|
52756
52755
|
{
|
|
@@ -52806,8 +52805,8 @@ const SideBar = memo(
|
|
|
52806
52805
|
icon: IconType.LEFT
|
|
52807
52806
|
}
|
|
52808
52807
|
),
|
|
52809
|
-
children: /* @__PURE__ */ jsx("div", { className: cx$2(styles$
|
|
52810
|
-
/* @__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 }),
|
|
52811
52810
|
/* @__PURE__ */ jsx(
|
|
52812
52811
|
Sections,
|
|
52813
52812
|
{
|
|
@@ -55275,7 +55274,7 @@ const vertical = "_vertical_1a936_13";
|
|
|
55275
55274
|
const hasArrows = "_hasArrows_1a936_17";
|
|
55276
55275
|
const button$1 = "_button_1a936_21";
|
|
55277
55276
|
const label$1 = "_label_1a936_24";
|
|
55278
|
-
const styles$
|
|
55277
|
+
const styles$c = {
|
|
55279
55278
|
container,
|
|
55280
55279
|
small: small$2,
|
|
55281
55280
|
hasMarks,
|
|
@@ -55327,7 +55326,7 @@ const Slider = ({
|
|
|
55327
55326
|
}
|
|
55328
55327
|
});
|
|
55329
55328
|
};
|
|
55330
|
-
const ButtonMin = () => /* @__PURE__ */ jsx("div", { className: styles$
|
|
55329
|
+
const ButtonMin = () => /* @__PURE__ */ jsx("div", { className: styles$c.button, children: /* @__PURE__ */ jsx(
|
|
55331
55330
|
Button$1,
|
|
55332
55331
|
{
|
|
55333
55332
|
basic: true,
|
|
@@ -55338,7 +55337,7 @@ const Slider = ({
|
|
|
55338
55337
|
icon: IconType.FAST_BACKWARD
|
|
55339
55338
|
}
|
|
55340
55339
|
) });
|
|
55341
|
-
const ButtonMax = () => /* @__PURE__ */ jsx("div", { className: styles$
|
|
55340
|
+
const ButtonMax = () => /* @__PURE__ */ jsx("div", { className: styles$c.button, children: /* @__PURE__ */ jsx(
|
|
55342
55341
|
Button$1,
|
|
55343
55342
|
{
|
|
55344
55343
|
basic: true,
|
|
@@ -55353,10 +55352,10 @@ const Slider = ({
|
|
|
55353
55352
|
"div",
|
|
55354
55353
|
{
|
|
55355
55354
|
className: cx$2(
|
|
55356
|
-
styles$
|
|
55357
|
-
small2 ? styles$
|
|
55358
|
-
vertical2.enabled ? styles$
|
|
55359
|
-
!_$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 : ""
|
|
55360
55359
|
),
|
|
55361
55360
|
style: vertical2.enabled ? { width: vertical2.width, height: vertical2.height } : { width: width2 },
|
|
55362
55361
|
children: [
|
|
@@ -55367,8 +55366,8 @@ const Slider = ({
|
|
|
55367
55366
|
range: true,
|
|
55368
55367
|
allowCross: false,
|
|
55369
55368
|
className: cx$2(
|
|
55370
|
-
(disabled2 || disabledContext) && styles$
|
|
55371
|
-
showArrows && styles$
|
|
55369
|
+
(disabled2 || disabledContext) && styles$c.rcSliderDisabled,
|
|
55370
|
+
showArrows && styles$c.hasArrows
|
|
55372
55371
|
),
|
|
55373
55372
|
value,
|
|
55374
55373
|
max,
|
|
@@ -55384,8 +55383,8 @@ const Slider = ({
|
|
|
55384
55383
|
Slider$1,
|
|
55385
55384
|
{
|
|
55386
55385
|
className: cx$2(
|
|
55387
|
-
(disabled2 || disabledContext) && styles$
|
|
55388
|
-
showArrows && styles$
|
|
55386
|
+
(disabled2 || disabledContext) && styles$c.rcSliderDisabled,
|
|
55387
|
+
showArrows && styles$c.hasArrows
|
|
55389
55388
|
),
|
|
55390
55389
|
value,
|
|
55391
55390
|
max,
|
|
@@ -55399,7 +55398,7 @@ const Slider = ({
|
|
|
55399
55398
|
}
|
|
55400
55399
|
),
|
|
55401
55400
|
showArrows && (vertical2.enabled ? /* @__PURE__ */ jsx(ButtonMin, {}) : /* @__PURE__ */ jsx(ButtonMax, {})),
|
|
55402
|
-
label2 && /* @__PURE__ */ jsx("label", { className: styles$
|
|
55401
|
+
label2 && /* @__PURE__ */ jsx("label", { className: styles$c.label, style: { width: labelWidth }, children: label2 })
|
|
55403
55402
|
]
|
|
55404
55403
|
}
|
|
55405
55404
|
);
|
|
@@ -55432,7 +55431,7 @@ const bordered = "_bordered_y9car_93";
|
|
|
55432
55431
|
const scroll2 = "_scroll_y9car_98";
|
|
55433
55432
|
const table = "_table_y9car_108";
|
|
55434
55433
|
const striped = "_striped_y9car_188";
|
|
55435
|
-
const styles$
|
|
55434
|
+
const styles$b = {
|
|
55436
55435
|
inputInTable: inputInTable$2,
|
|
55437
55436
|
inputHover: inputHover$2,
|
|
55438
55437
|
inputFocus: inputFocus$2,
|
|
@@ -55447,7 +55446,7 @@ const styles$a = {
|
|
|
55447
55446
|
striped
|
|
55448
55447
|
};
|
|
55449
55448
|
const title$1 = "_title_11pbp_1";
|
|
55450
|
-
const styles$
|
|
55449
|
+
const styles$a = {
|
|
55451
55450
|
title: title$1
|
|
55452
55451
|
};
|
|
55453
55452
|
const Title$1 = ({
|
|
@@ -55471,14 +55470,14 @@ const Title$1 = ({
|
|
|
55471
55470
|
}
|
|
55472
55471
|
return /* @__PURE__ */ jsx("div", { children: actionsComponent });
|
|
55473
55472
|
};
|
|
55474
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
55473
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$a.title, children: [
|
|
55475
55474
|
isNameDefined ? /* @__PURE__ */ jsx(Heading$2, { children: /* @__PURE__ */ jsx("span", { "data-testid": testId, children: name2 }) }) : null,
|
|
55476
55475
|
actionsContainer()
|
|
55477
55476
|
] });
|
|
55478
55477
|
};
|
|
55479
55478
|
const footer = "_footer_4sumy_1";
|
|
55480
55479
|
const section = "_section_4sumy_7";
|
|
55481
|
-
const styles$
|
|
55480
|
+
const styles$9 = {
|
|
55482
55481
|
footer,
|
|
55483
55482
|
section
|
|
55484
55483
|
};
|
|
@@ -55500,9 +55499,9 @@ const Footer = ({
|
|
|
55500
55499
|
return false;
|
|
55501
55500
|
};
|
|
55502
55501
|
const showFooter = hasActions2 || hasContent || hasPagination();
|
|
55503
|
-
return showFooter ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
55504
|
-
hasContent ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
55505
|
-
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: [
|
|
55506
55505
|
hasPagination() ? /* @__PURE__ */ jsx(Pagination, { pagination }) : /* @__PURE__ */ jsx("div", {}),
|
|
55507
55506
|
hasActions2 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Actions, { actions: actions2 }) })
|
|
55508
55507
|
] }) : null
|
|
@@ -55545,7 +55544,7 @@ const TableScrollWrapper = ({
|
|
|
55545
55544
|
setVisibleRows(visibleRows + pageSize);
|
|
55546
55545
|
}
|
|
55547
55546
|
};
|
|
55548
|
-
return /* @__PURE__ */ jsx("div", { id: "scrollWrapper", className: styles$
|
|
55547
|
+
return /* @__PURE__ */ jsx("div", { id: "scrollWrapper", className: styles$b.scroll, children: infiniteScroll ? /* @__PURE__ */ jsx(
|
|
55549
55548
|
InfiniteScroll,
|
|
55550
55549
|
{
|
|
55551
55550
|
dataLength: Math.min(rows.length, visibleRows + pageSize),
|
|
@@ -55565,7 +55564,7 @@ const expandableRow = "_expandableRow_11d5t_8";
|
|
|
55565
55564
|
const flush2 = "_flush_11d5t_8";
|
|
55566
55565
|
const dragIconCell = "_dragIconCell_11d5t_28";
|
|
55567
55566
|
const dragIcon = "_dragIcon_11d5t_28";
|
|
55568
|
-
const styles$
|
|
55567
|
+
const styles$8 = {
|
|
55569
55568
|
clickableRow,
|
|
55570
55569
|
hoverableRow,
|
|
55571
55570
|
rowActive,
|
|
@@ -55583,7 +55582,7 @@ const ExpandedContentRow = ({
|
|
|
55583
55582
|
"td",
|
|
55584
55583
|
{
|
|
55585
55584
|
colSpan,
|
|
55586
|
-
className: cx$2(styles$
|
|
55585
|
+
className: cx$2(styles$8.expandableRow, flush3 ? styles$8.flush : ""),
|
|
55587
55586
|
children
|
|
55588
55587
|
}
|
|
55589
55588
|
) });
|
|
@@ -55657,7 +55656,7 @@ const centerAligned = "_centerAligned_u3xdj_192";
|
|
|
55657
55656
|
const leftAligned = "_leftAligned_u3xdj_198";
|
|
55658
55657
|
const popover = "_popover_u3xdj_201";
|
|
55659
55658
|
const disabledPointerEvents = "_disabledPointerEvents_u3xdj_204";
|
|
55660
|
-
const styles$
|
|
55659
|
+
const styles$7 = {
|
|
55661
55660
|
inputInTable: inputInTable$1,
|
|
55662
55661
|
inputHover: inputHover$1,
|
|
55663
55662
|
inputFocus: inputFocus$1,
|
|
@@ -55719,7 +55718,7 @@ const InputCell = ({
|
|
|
55719
55718
|
}
|
|
55720
55719
|
);
|
|
55721
55720
|
};
|
|
55722
|
-
const getStringName = (name2) => {
|
|
55721
|
+
const getStringName$1 = (name2) => {
|
|
55723
55722
|
if (!name2)
|
|
55724
55723
|
return "";
|
|
55725
55724
|
if (typeof name2 === "string") {
|
|
@@ -55754,7 +55753,7 @@ const NumberInput = ({
|
|
|
55754
55753
|
}) => {
|
|
55755
55754
|
const [displayValue, setDisplayValue] = useState(value);
|
|
55756
55755
|
const [validationError, setValidationError] = useState(null);
|
|
55757
|
-
const stringName = getStringName(name2);
|
|
55756
|
+
const stringName = getStringName$1(name2);
|
|
55758
55757
|
const validateInputValue = (value2) => {
|
|
55759
55758
|
let validation = validateNumber(value2);
|
|
55760
55759
|
if (allowEmpty && value2 === "" || validation.valid) {
|
|
@@ -55890,7 +55889,7 @@ const InputCellWrapper = ({
|
|
|
55890
55889
|
columnAlignment,
|
|
55891
55890
|
testId
|
|
55892
55891
|
}) => {
|
|
55893
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
55892
|
+
return /* @__PURE__ */ jsx("div", { className: styles$7.inputWrapper, children: cell2.type === "Input" ? /* @__PURE__ */ jsx(
|
|
55894
55893
|
InputCell,
|
|
55895
55894
|
{
|
|
55896
55895
|
cell: cell2,
|
|
@@ -55912,7 +55911,7 @@ const LinkCell = ({ cell: cell2, testId }) => {
|
|
|
55912
55911
|
const isTooltipEnabled = (text2) => {
|
|
55913
55912
|
return isStringNumberOrNode(text2);
|
|
55914
55913
|
};
|
|
55915
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
55914
|
+
return /* @__PURE__ */ jsx("div", { className: styles$7.inputWrapper, children: /* @__PURE__ */ jsx(
|
|
55916
55915
|
Tooltip,
|
|
55917
55916
|
{
|
|
55918
55917
|
error: !!error2,
|
|
@@ -55925,14 +55924,14 @@ const LinkCell = ({ cell: cell2, testId }) => {
|
|
|
55925
55924
|
"div",
|
|
55926
55925
|
{
|
|
55927
55926
|
className: cx$2(
|
|
55928
|
-
styles$
|
|
55929
|
-
error2 ? styles$
|
|
55927
|
+
styles$7.staticCellContent,
|
|
55928
|
+
error2 ? styles$7.error : warning2 ? styles$7.warning : ""
|
|
55930
55929
|
),
|
|
55931
55930
|
children: /* @__PURE__ */ jsx(
|
|
55932
55931
|
"a",
|
|
55933
55932
|
{
|
|
55934
55933
|
className: cx$2(
|
|
55935
|
-
(cell2.disabled || disabledContext) && styles$
|
|
55934
|
+
(cell2.disabled || disabledContext) && styles$7.disabledLink
|
|
55936
55935
|
),
|
|
55937
55936
|
onClick: cell2.disabled || disabledContext ? void 0 : (evt) => {
|
|
55938
55937
|
var _a;
|
|
@@ -55963,7 +55962,7 @@ const CheckBoxCell = ({ cell: cell2, testId }) => {
|
|
|
55963
55962
|
);
|
|
55964
55963
|
};
|
|
55965
55964
|
const SliderCell = ({ cell: cell2 }) => {
|
|
55966
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
55965
|
+
return /* @__PURE__ */ jsx("div", { className: styles$7.inputWrapper, children: /* @__PURE__ */ jsx(
|
|
55967
55966
|
Slider,
|
|
55968
55967
|
{
|
|
55969
55968
|
label: cell2.label,
|
|
@@ -55982,7 +55981,7 @@ const SliderCell = ({ cell: cell2 }) => {
|
|
|
55982
55981
|
};
|
|
55983
55982
|
const IconCell = ({ cell: cell2 }) => {
|
|
55984
55983
|
const { tooltip: tooltip2, icon: icon2 } = cell2;
|
|
55985
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
55984
|
+
return /* @__PURE__ */ jsx("div", { className: styles$7.iconCellWrapper, children: /* @__PURE__ */ jsx(
|
|
55986
55985
|
Tooltip,
|
|
55987
55986
|
{
|
|
55988
55987
|
text: tooltip2,
|
|
@@ -55998,11 +55997,11 @@ const ActionsCell = ({ cell: cell2 }) => {
|
|
|
55998
55997
|
};
|
|
55999
55998
|
const CellHelpIcon = ({ cell: cell2 }) => {
|
|
56000
55999
|
const { helpIcon: helpIcon2 } = cell2;
|
|
56001
|
-
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;
|
|
56002
56001
|
};
|
|
56003
56002
|
const CellLibraryIcon = ({ cell: cell2 }) => {
|
|
56004
56003
|
const { libraryIcon } = cell2;
|
|
56005
|
-
return libraryIcon ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
56004
|
+
return libraryIcon ? /* @__PURE__ */ jsx("div", { className: styles$7.icon, children: /* @__PURE__ */ jsx(
|
|
56006
56005
|
HelpIcon,
|
|
56007
56006
|
{
|
|
56008
56007
|
onClick: libraryIcon.onClick,
|
|
@@ -56013,7 +56012,7 @@ const CellLibraryIcon = ({ cell: cell2 }) => {
|
|
|
56013
56012
|
};
|
|
56014
56013
|
const Sort = ({ cell: cell2 }) => {
|
|
56015
56014
|
const { hasSort, sort: sort2, sortPriority } = cell2;
|
|
56016
|
-
return hasSort ? /* @__PURE__ */ jsxs("span", { className: styles$
|
|
56015
|
+
return hasSort ? /* @__PURE__ */ jsxs("span", { className: styles$7.sortingCellIcon, children: [
|
|
56017
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 }) }),
|
|
56018
56017
|
sortPriority && sort2 ? /* @__PURE__ */ jsx("sup", { children: sortPriority }) : null
|
|
56019
56018
|
] }) : null;
|
|
@@ -56024,9 +56023,9 @@ const StaticCell = ({ cell: cell2, isHeader, testId }) => {
|
|
|
56024
56023
|
"div",
|
|
56025
56024
|
{
|
|
56026
56025
|
className: cx$2(
|
|
56027
|
-
styles$
|
|
56028
|
-
type === "Unit" ? styles$
|
|
56029
|
-
error2 ? styles$
|
|
56026
|
+
styles$7.staticCellContent,
|
|
56027
|
+
type === "Unit" ? styles$7.unit : "",
|
|
56028
|
+
error2 ? styles$7.error : warning2 ? styles$7.warning : ""
|
|
56030
56029
|
),
|
|
56031
56030
|
onClick: hasSort ? (evt) => onSort && onSort(evt) : () => {
|
|
56032
56031
|
},
|
|
@@ -56041,7 +56040,7 @@ const StaticCell = ({ cell: cell2, isHeader, testId }) => {
|
|
|
56041
56040
|
]
|
|
56042
56041
|
}
|
|
56043
56042
|
);
|
|
56044
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
56043
|
+
return /* @__PURE__ */ jsx("div", { className: styles$7.inputWrapper, children: /* @__PURE__ */ jsx(
|
|
56045
56044
|
Tooltip,
|
|
56046
56045
|
{
|
|
56047
56046
|
error: !!error2,
|
|
@@ -56064,7 +56063,7 @@ const PopoverCell = ({ cell: cell2, testId }) => {
|
|
|
56064
56063
|
fullWidth,
|
|
56065
56064
|
closeOnOutsideClick,
|
|
56066
56065
|
disabled: disabled2,
|
|
56067
|
-
children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
56066
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$7.popover, children: /* @__PURE__ */ jsx(StaticCell, { cell: cell2, testId }) })
|
|
56068
56067
|
}
|
|
56069
56068
|
);
|
|
56070
56069
|
};
|
|
@@ -56132,15 +56131,15 @@ const Cell = ({
|
|
|
56132
56131
|
headerAlignment: columnHeaderAlignment,
|
|
56133
56132
|
isHeader
|
|
56134
56133
|
};
|
|
56135
|
-
const cellAlignmentStyle = getCellAlignment(alignment, styles$
|
|
56136
|
-
const cellAlignmentText = getCellAlignment(alignment, styles$
|
|
56137
|
-
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;
|
|
56138
56137
|
const className = cx$2(
|
|
56139
|
-
styles$
|
|
56138
|
+
styles$7.cell,
|
|
56140
56139
|
cellTypeClassName,
|
|
56141
|
-
cell2.hasSort ? styles$
|
|
56140
|
+
cell2.hasSort ? styles$7.sortingCell : null,
|
|
56142
56141
|
cellAlignmentStyle,
|
|
56143
|
-
cell2.breakWord ? styles$
|
|
56142
|
+
cell2.breakWord ? styles$7.breakWord : ""
|
|
56144
56143
|
);
|
|
56145
56144
|
const width2 = cellWidthProp ?? columnWidthProp ?? ((snapshot == null ? void 0 : snapshot.isDragging) && ref2.current && ref2.current.offsetWidth) ?? void 0;
|
|
56146
56145
|
const style2 = { width: width2, minWidth: width2, ...styleProp };
|
|
@@ -56239,7 +56238,7 @@ const Row = ({
|
|
|
56239
56238
|
if (row2.noDrag) {
|
|
56240
56239
|
return /* @__PURE__ */ jsx("td", { "aria-labelledby": "unique-label-id" });
|
|
56241
56240
|
}
|
|
56242
|
-
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 }) }) });
|
|
56243
56242
|
};
|
|
56244
56243
|
return isHeader ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
56245
56244
|
/* @__PURE__ */ jsxs(
|
|
@@ -56251,8 +56250,8 @@ const Row = ({
|
|
|
56251
56250
|
onMouseLeave: onRowMouseLeave,
|
|
56252
56251
|
onFocus: onRowFocus,
|
|
56253
56252
|
className: cx$2(
|
|
56254
|
-
onRowClick ? styles$
|
|
56255
|
-
onRowMouseEnter ? styles$
|
|
56253
|
+
onRowClick ? styles$8.clickableRow : null,
|
|
56254
|
+
onRowMouseEnter ? styles$8.hoverableRow : null
|
|
56256
56255
|
),
|
|
56257
56256
|
children: [
|
|
56258
56257
|
draggableTable ? (
|
|
@@ -56283,9 +56282,9 @@ const Row = ({
|
|
|
56283
56282
|
onMouseLeave: onRowMouseLeave,
|
|
56284
56283
|
onFocus: onRowFocus,
|
|
56285
56284
|
className: cx$2(
|
|
56286
|
-
onRowClick && !onRowClick.noStyle ? styles$
|
|
56287
|
-
onRowMouseEnter && !onRowMouseEnter.noStyle ? styles$
|
|
56288
|
-
active2 ? styles$
|
|
56285
|
+
onRowClick && !onRowClick.noStyle ? styles$8.clickableRow : null,
|
|
56286
|
+
onRowMouseEnter && !onRowMouseEnter.noStyle ? styles$8.hoverableRow : null,
|
|
56287
|
+
active2 ? styles$8.rowActive : null
|
|
56289
56288
|
),
|
|
56290
56289
|
ref: (provided == null ? void 0 : provided.innerRef) || null,
|
|
56291
56290
|
...(provided == null ? void 0 : provided.draggableProps) || null,
|
|
@@ -56384,7 +56383,7 @@ const Table = (props) => {
|
|
|
56384
56383
|
...propTable,
|
|
56385
56384
|
rows
|
|
56386
56385
|
};
|
|
56387
|
-
const wrapperClass = cx$2(styles$
|
|
56386
|
+
const wrapperClass = cx$2(styles$b.wrapper, bordered2 ? styles$b.bordered : "");
|
|
56388
56387
|
const wrapperStyles = {
|
|
56389
56388
|
maxHeight,
|
|
56390
56389
|
width: width2,
|
|
@@ -56416,7 +56415,7 @@ const Table = (props) => {
|
|
|
56416
56415
|
return /* @__PURE__ */ jsx(TableScrollWrapper, { table: table2, children: ({ visibleRows }) => /* @__PURE__ */ jsxs(
|
|
56417
56416
|
"table",
|
|
56418
56417
|
{
|
|
56419
|
-
className: cx$2(styles$
|
|
56418
|
+
className: cx$2(styles$b.table, striped2 ? styles$b.striped : ""),
|
|
56420
56419
|
"data-testid": testId,
|
|
56421
56420
|
ref: provided.innerRef,
|
|
56422
56421
|
children: [
|
|
@@ -56494,7 +56493,7 @@ const Table = (props) => {
|
|
|
56494
56493
|
/* @__PURE__ */ jsx(TableScrollWrapper, { table: table2, children: ({ visibleRows }) => /* @__PURE__ */ jsxs(
|
|
56495
56494
|
"table",
|
|
56496
56495
|
{
|
|
56497
|
-
className: cx$2(styles$
|
|
56496
|
+
className: cx$2(styles$b.table, striped2 ? styles$b.striped : ""),
|
|
56498
56497
|
"data-testid": testId,
|
|
56499
56498
|
children: [
|
|
56500
56499
|
/* @__PURE__ */ jsx("thead", { children: headers.map((row2, rowIndex) => {
|
|
@@ -56551,7 +56550,7 @@ const hidden = "_hidden_1y79t_58";
|
|
|
56551
56550
|
const disabled$1 = "_disabled_1y79t_61";
|
|
56552
56551
|
const left$1 = "_left_1y79t_65";
|
|
56553
56552
|
const right$1 = "_right_1y79t_65";
|
|
56554
|
-
const styles$
|
|
56553
|
+
const styles$6 = {
|
|
56555
56554
|
tabs,
|
|
56556
56555
|
padding,
|
|
56557
56556
|
margin,
|
|
@@ -56584,11 +56583,11 @@ const Label = ({
|
|
|
56584
56583
|
id: label2 == null ? void 0 : label2.toString(),
|
|
56585
56584
|
href: url,
|
|
56586
56585
|
className: cx$2(
|
|
56587
|
-
styles$
|
|
56588
|
-
active2 ? styles$
|
|
56589
|
-
disabled2 ? styles$
|
|
56590
|
-
hidden2 && !active2 ? styles$
|
|
56591
|
-
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
|
|
56592
56591
|
),
|
|
56593
56592
|
onClick,
|
|
56594
56593
|
"data-testid": testId,
|
|
@@ -56601,7 +56600,7 @@ const Content$1 = ({
|
|
|
56601
56600
|
activeTabIndex,
|
|
56602
56601
|
contentPadding: contentPadding2
|
|
56603
56602
|
}) => {
|
|
56604
|
-
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;
|
|
56605
56604
|
};
|
|
56606
56605
|
const Tabs = ({
|
|
56607
56606
|
name: name2 = void 0,
|
|
@@ -56689,9 +56688,9 @@ const Tabs = ({
|
|
|
56689
56688
|
"div",
|
|
56690
56689
|
{
|
|
56691
56690
|
className: cx$2(
|
|
56692
|
-
styles$
|
|
56693
|
-
padding2 ? styles$
|
|
56694
|
-
margin2 ? styles$
|
|
56691
|
+
styles$6.tabs,
|
|
56692
|
+
padding2 ? styles$6.padding : "",
|
|
56693
|
+
margin2 ? styles$6.margin : ""
|
|
56695
56694
|
),
|
|
56696
56695
|
"data-testid": testId,
|
|
56697
56696
|
children: tabs2.map(renderTab)
|
|
@@ -56730,7 +56729,7 @@ const small$1 = "_small_66zck_116";
|
|
|
56730
56729
|
const error = "_error_66zck_121";
|
|
56731
56730
|
const warning$1 = "_warning_66zck_138";
|
|
56732
56731
|
const monospace = "_monospace_66zck_155";
|
|
56733
|
-
const styles$
|
|
56732
|
+
const styles$5 = {
|
|
56734
56733
|
inputInTable,
|
|
56735
56734
|
inputHover,
|
|
56736
56735
|
inputFocus,
|
|
@@ -56773,10 +56772,10 @@ const TextArea = ({
|
|
|
56773
56772
|
"textarea",
|
|
56774
56773
|
{
|
|
56775
56774
|
className: cx$2(
|
|
56776
|
-
styles$
|
|
56777
|
-
error2 ? styles$
|
|
56778
|
-
warning2 ? styles$
|
|
56779
|
-
monospace2 ? styles$
|
|
56775
|
+
styles$5.textarea,
|
|
56776
|
+
error2 ? styles$5.error : "",
|
|
56777
|
+
warning2 ? styles$5.warning : "",
|
|
56778
|
+
monospace2 ? styles$5.monospace : ""
|
|
56780
56779
|
),
|
|
56781
56780
|
name: name2,
|
|
56782
56781
|
value,
|
|
@@ -57922,7 +57921,7 @@ const small = "_small_1mo1i_25";
|
|
|
57922
57921
|
const disabled = "_disabled_1mo1i_102";
|
|
57923
57922
|
const noMargin = "_noMargin_1mo1i_113";
|
|
57924
57923
|
const helpIconEnabled = "_helpIconEnabled_1mo1i_116";
|
|
57925
|
-
const styles$
|
|
57924
|
+
const styles$4 = {
|
|
57926
57925
|
toggle: toggle$1,
|
|
57927
57926
|
small,
|
|
57928
57927
|
disabled,
|
|
@@ -57948,10 +57947,10 @@ const Toggle = ({
|
|
|
57948
57947
|
"div",
|
|
57949
57948
|
{
|
|
57950
57949
|
className: cx$2(
|
|
57951
|
-
styles$
|
|
57952
|
-
isDisabled ? styles$
|
|
57953
|
-
small2 ? styles$
|
|
57954
|
-
noMargin2 ? styles$
|
|
57950
|
+
styles$4.toggle,
|
|
57951
|
+
isDisabled ? styles$4.disabled : null,
|
|
57952
|
+
small2 ? styles$4.small : null,
|
|
57953
|
+
noMargin2 ? styles$4.noMargin : null
|
|
57955
57954
|
),
|
|
57956
57955
|
onClick: (evt) => {
|
|
57957
57956
|
if (!isDisabled) {
|
|
@@ -57976,7 +57975,7 @@ const Toggle = ({
|
|
|
57976
57975
|
}
|
|
57977
57976
|
),
|
|
57978
57977
|
/* @__PURE__ */ jsx("label", { children: label2 }),
|
|
57979
|
-
showHelp && /* @__PURE__ */ jsx("div", { className: styles$
|
|
57978
|
+
showHelp && /* @__PURE__ */ jsx("div", { className: styles$4.helpIconEnabled, onClick: onClickHelp, children: /* @__PURE__ */ jsx(HelpIcon, { text: helpText }) })
|
|
57980
57979
|
]
|
|
57981
57980
|
}
|
|
57982
57981
|
);
|
|
@@ -57997,7 +57996,7 @@ const button = "_button_gmfjn_139";
|
|
|
57997
57996
|
const menu = "_menu_gmfjn_140";
|
|
57998
57997
|
const active = "_active_gmfjn_168";
|
|
57999
57998
|
const alert = "_alert_gmfjn_193";
|
|
58000
|
-
const styles$
|
|
57999
|
+
const styles$3 = {
|
|
58001
58000
|
topbar,
|
|
58002
58001
|
fixed,
|
|
58003
58002
|
appSwitcher,
|
|
@@ -58016,7 +58015,7 @@ const styles$2 = {
|
|
|
58016
58015
|
alert
|
|
58017
58016
|
};
|
|
58018
58017
|
const Warning = ({ warning: warning2 }) => {
|
|
58019
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
58018
|
+
return /* @__PURE__ */ jsx("div", { className: styles$3.alert, children: warning2 });
|
|
58020
58019
|
};
|
|
58021
58020
|
const AppSwitcher = ({
|
|
58022
58021
|
icon: icon2,
|
|
@@ -58024,7 +58023,7 @@ const AppSwitcher = ({
|
|
|
58024
58023
|
onClick
|
|
58025
58024
|
}) => {
|
|
58026
58025
|
const content2 = /* @__PURE__ */ jsx(Icon, { icon: icon2 });
|
|
58027
|
-
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 });
|
|
58028
58027
|
};
|
|
58029
58028
|
const Title = ({
|
|
58030
58029
|
label: label2,
|
|
@@ -58033,12 +58032,12 @@ const Title = ({
|
|
|
58033
58032
|
version: version2,
|
|
58034
58033
|
onClick
|
|
58035
58034
|
}) => {
|
|
58036
|
-
const content2 = /* @__PURE__ */ jsxs("div", { className: styles$
|
|
58037
|
-
logo2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
58038
|
-
label2 && /* @__PURE__ */ jsx("span", { className: styles$
|
|
58039
|
-
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 })
|
|
58040
58039
|
] });
|
|
58041
|
-
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 }) });
|
|
58042
58041
|
};
|
|
58043
58042
|
var ElementType = /* @__PURE__ */ ((ElementType2) => {
|
|
58044
58043
|
ElementType2["LINK"] = "Link";
|
|
@@ -58066,7 +58065,7 @@ const Link = ({
|
|
|
58066
58065
|
return /* @__PURE__ */ jsxs(
|
|
58067
58066
|
"a",
|
|
58068
58067
|
{
|
|
58069
|
-
className: cx$2(styles$
|
|
58068
|
+
className: cx$2(styles$3.link, active2 ? styles$3.active : ""),
|
|
58070
58069
|
href: url || "#",
|
|
58071
58070
|
onClick: handleClick2,
|
|
58072
58071
|
"aria-disabled": disabled2 || disabledContext,
|
|
@@ -58074,7 +58073,7 @@ const Link = ({
|
|
|
58074
58073
|
role: onClick && !url ? "button" : void 0,
|
|
58075
58074
|
children: [
|
|
58076
58075
|
icon2,
|
|
58077
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
58076
|
+
/* @__PURE__ */ jsx("span", { className: styles$3.label, children: label2 })
|
|
58078
58077
|
]
|
|
58079
58078
|
}
|
|
58080
58079
|
);
|
|
@@ -58082,7 +58081,7 @@ const Link = ({
|
|
|
58082
58081
|
const Element$1 = ({ element }) => {
|
|
58083
58082
|
switch (element.type) {
|
|
58084
58083
|
case ElementType.LINK:
|
|
58085
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
58084
|
+
return /* @__PURE__ */ jsx("div", { className: styles$3.item, children: /* @__PURE__ */ jsx(
|
|
58086
58085
|
Link,
|
|
58087
58086
|
{
|
|
58088
58087
|
label: element.label,
|
|
@@ -58095,7 +58094,7 @@ const Element$1 = ({ element }) => {
|
|
|
58095
58094
|
}
|
|
58096
58095
|
) });
|
|
58097
58096
|
case ElementType.BUTTON:
|
|
58098
|
-
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(
|
|
58099
58098
|
Button$1,
|
|
58100
58099
|
{
|
|
58101
58100
|
label: element.label,
|
|
@@ -58108,7 +58107,7 @@ const Element$1 = ({ element }) => {
|
|
|
58108
58107
|
}
|
|
58109
58108
|
) });
|
|
58110
58109
|
case ElementType.MENU:
|
|
58111
|
-
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(
|
|
58112
58111
|
Menu,
|
|
58113
58112
|
{
|
|
58114
58113
|
maxHeight: "100%",
|
|
@@ -58129,7 +58128,7 @@ const Element$1 = ({ element }) => {
|
|
|
58129
58128
|
}
|
|
58130
58129
|
) });
|
|
58131
58130
|
case ElementType.COMPONENT:
|
|
58132
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
58131
|
+
return /* @__PURE__ */ jsx("div", { className: styles$3.item, children: element.component });
|
|
58133
58132
|
default:
|
|
58134
58133
|
return null;
|
|
58135
58134
|
}
|
|
@@ -58148,7 +58147,7 @@ const TopBar = ({
|
|
|
58148
58147
|
/* @__PURE__ */ jsxs(
|
|
58149
58148
|
"div",
|
|
58150
58149
|
{
|
|
58151
|
-
className: cx$2(styles$
|
|
58150
|
+
className: cx$2(styles$3.topbar, fixedPosition ? styles$3.fixed : ""),
|
|
58152
58151
|
style: { height: height2 },
|
|
58153
58152
|
children: [
|
|
58154
58153
|
!!appSwitcher2 && /* @__PURE__ */ jsx(
|
|
@@ -58159,7 +58158,7 @@ const TopBar = ({
|
|
|
58159
58158
|
onClick: appSwitcher2.onClick
|
|
58160
58159
|
}
|
|
58161
58160
|
),
|
|
58162
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
58161
|
+
/* @__PURE__ */ jsxs("div", { className: styles$3.left, children: [
|
|
58163
58162
|
title2 && /* @__PURE__ */ jsx(
|
|
58164
58163
|
Title,
|
|
58165
58164
|
{
|
|
@@ -58177,7 +58176,7 @@ const TopBar = ({
|
|
|
58177
58176
|
return null;
|
|
58178
58177
|
})
|
|
58179
58178
|
] }),
|
|
58180
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
58179
|
+
/* @__PURE__ */ jsx("div", { className: styles$3.right, children: contentRight.map((element, i) => {
|
|
58181
58180
|
if (element) {
|
|
58182
58181
|
return /* @__PURE__ */ jsx(Element$1, { element }, i);
|
|
58183
58182
|
}
|
|
@@ -58191,7 +58190,7 @@ const TopBar = ({
|
|
|
58191
58190
|
const popConfirm = "_popConfirm_1x6ye_1";
|
|
58192
58191
|
const content = "_content_1x6ye_7";
|
|
58193
58192
|
const buttons = "_buttons_1x6ye_13";
|
|
58194
|
-
const styles$
|
|
58193
|
+
const styles$2 = {
|
|
58195
58194
|
popConfirm,
|
|
58196
58195
|
content,
|
|
58197
58196
|
buttons
|
|
@@ -58204,9 +58203,9 @@ const Content = ({
|
|
|
58204
58203
|
onClickCancel,
|
|
58205
58204
|
close: close2,
|
|
58206
58205
|
testId
|
|
58207
|
-
}) => /* @__PURE__ */ jsxs("div", { className: styles$
|
|
58208
|
-
title2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
58209
|
-
/* @__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: [
|
|
58210
58209
|
/* @__PURE__ */ jsx(
|
|
58211
58210
|
Button$1,
|
|
58212
58211
|
{
|
|
@@ -69932,7 +69931,7 @@ const dropTarget = "_dropTarget_1lv9u_11";
|
|
|
69932
69931
|
const draggingSource = "_draggingSource_1lv9u_14";
|
|
69933
69932
|
const placeholderContainer = "_placeholderContainer_1lv9u_17";
|
|
69934
69933
|
const placeholder2 = "_placeholder_1lv9u_17";
|
|
69935
|
-
const styles = {
|
|
69934
|
+
const styles$1 = {
|
|
69936
69935
|
tree,
|
|
69937
69936
|
toggle,
|
|
69938
69937
|
dropTarget,
|
|
@@ -69980,7 +69979,7 @@ const TreeItem = ({
|
|
|
69980
69979
|
{
|
|
69981
69980
|
className: listStyles.itemHeader,
|
|
69982
69981
|
children: [
|
|
69983
|
-
hasChild && /* @__PURE__ */ jsx("div", { className: styles.toggle, children: /* @__PURE__ */ jsx(
|
|
69982
|
+
hasChild && /* @__PURE__ */ jsx("div", { className: styles$1.toggle, children: /* @__PURE__ */ jsx(
|
|
69984
69983
|
Button$1,
|
|
69985
69984
|
{
|
|
69986
69985
|
basic: true,
|
|
@@ -70000,7 +69999,7 @@ const TreeItem = ({
|
|
|
70000
69999
|
}
|
|
70001
70000
|
);
|
|
70002
70001
|
};
|
|
70003
|
-
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 } });
|
|
70004
70003
|
const Tree = ({
|
|
70005
70004
|
list: list2,
|
|
70006
70005
|
draggable: draggable2 = false,
|
|
@@ -70087,10 +70086,10 @@ const Tree = ({
|
|
|
70087
70086
|
listComponent: "div",
|
|
70088
70087
|
listItemComponent: "div",
|
|
70089
70088
|
classes: {
|
|
70090
|
-
root: styles.tree,
|
|
70091
|
-
draggingSource: styles.draggingSource,
|
|
70092
|
-
dropTarget: styles.dropTarget,
|
|
70093
|
-
placeholder: styles.placeholderContainer
|
|
70089
|
+
root: styles$1.tree,
|
|
70090
|
+
draggingSource: styles$1.draggingSource,
|
|
70091
|
+
dropTarget: styles$1.dropTarget,
|
|
70092
|
+
placeholder: styles$1.placeholderContainer
|
|
70094
70093
|
},
|
|
70095
70094
|
initialOpen: isInitialOpen
|
|
70096
70095
|
}
|
|
@@ -70099,6 +70098,405 @@ const Tree = ({
|
|
|
70099
70098
|
) })
|
|
70100
70099
|
] });
|
|
70101
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
|
+
};
|
|
70102
70500
|
export {
|
|
70103
70501
|
Accordion,
|
|
70104
70502
|
AccordionWithDefaultToggle,
|
|
@@ -70177,6 +70575,7 @@ export {
|
|
|
70177
70575
|
TopBar,
|
|
70178
70576
|
Tree,
|
|
70179
70577
|
TriggerType,
|
|
70578
|
+
UnitInput,
|
|
70180
70579
|
dismissToast,
|
|
70181
70580
|
readFile,
|
|
70182
70581
|
toast,
|