@oliasoft-open-source/react-ui-library 6.5.0-beta-1 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/slider/slider.d.ts.map +1 -1
- package/dist/index.js +402 -402
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,69 +4,69 @@ import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
|
4
4
|
import { TbAlertTriangle as b, TbArrowDown as x, TbArrowLeft as S, TbArrowRight as C, TbArrowUp as w, TbArrowsDiagonal as T, TbArrowsMaximize as E, TbArrowsMinimize as D, TbArrowsMove as O, TbArrowsSplit as k, TbBell as A, TbBold as j, TbBolt as M, TbBook2 as N, TbBuildingSkyscraper as P, TbCamera as F, TbChartBar as I, TbChartLine as ee, TbChartPie2 as L, TbCheck as te, TbChevronDown as ne, TbChevronLeft as re, TbChevronRight as ie, TbChevronUp as ae, TbChevronsLeft as R, TbChevronsRight as oe, TbCircle as se, TbCircleCheck as ce, TbCircleX as le, TbClipboard as z, TbClock as ue, TbCode as de, TbCopy as fe, TbCornerDownRight as pe, TbDeviceFloppy as me, TbDeviceLaptop as he, TbDotsVertical as ge, TbDownload as _e, TbDroplet as ve, TbExclamationMark as ye, TbExternalLink as be, TbEye as xe, TbEyeOff as Se, TbFile as Ce, TbFilter as we, TbFilterOff as Te, TbFocusCentered as Ee, TbFolder as De, TbFolderSearch as Oe, TbGauge as ke, TbGitFork as Ae, TbGripVertical as je, TbHelp as Me, TbInfoCircle as Ne, TbItalic as Pe, TbKey as Fe, TbLayoutColumns as Ie, TbLayoutRows as Le, TbLibraryMinus as Re, TbLibraryPlus as ze, TbLink as Be, TbLinkOff as Ve, TbList as He, TbListNumbers as Ue, TbLoader2 as We, TbLock as Ge, TbLockOpen as Ke, TbMapPin as qe, TbMessageCircle as Je, TbMinus as Ye, TbMoon as Xe, TbMovie as Ze, TbNote as Qe, TbPencil as $e, TbPlayerPause as et, TbPlayerPlay as tt, TbPlayerSkipBack as nt, TbPlayerSkipForward as rt, TbPlayerStop as it, TbPlayerTrackNext as at, TbPlayerTrackPrev as ot, TbPlus as st, TbQuestionMark as ct, TbRefresh as lt, TbReload as ut, TbRotate as dt, TbRowInsertBottom as ft, TbRowInsertTop as pt, TbRuler3 as mt, TbScale as ht, TbSearch as gt, TbServer as _t, TbSettings as vt, TbSortAscending as yt, TbSortDescending as bt, TbSquarePlus as xt, TbStar as St, TbSun as Ct, TbTable as wt, TbTarget as Tt, TbTrash as Et, TbUpload as Dt, TbUser as Ot, TbUsers as kt, TbX as At } from "react-icons/tb";
|
|
5
5
|
import { CSSTransition as jt } from "react-transition-group";
|
|
6
6
|
import { FloatingArrow as Mt, FloatingNode as Nt, FloatingPortal as Pt, FloatingTree as Ft, arrow as It, autoUpdate as Lt, flip as Rt, offset as zt, shift as Bt, size as Vt, useClientPoint as Ht, useDismiss as Ut, useFloating as Wt, useFloatingNodeId as Gt, useFloatingParentNodeId as Kt, useHover as qt, useInteractions as Jt, useMergeRefs as Yt } from "@floating-ui/react";
|
|
7
|
-
import { cloneDeep as Xt, cloneDeepWith as Zt, debounce as Qt, every as $t, get as en, isArray as tn, isBoolean as nn, isEmpty as rn, isEqual as an, isFunction as on, isNil as sn, isNumber as cn, isObject as ln, isPlainObject as un, isString as dn, keys as fn, noop as
|
|
8
|
-
import { Resizable as
|
|
9
|
-
import { createPortal as
|
|
10
|
-
import { ALT_UNITS as
|
|
11
|
-
import { List as
|
|
12
|
-
import { SortableContext as
|
|
13
|
-
import { CSS as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { DndContext as
|
|
18
|
-
import { useVirtualizer as
|
|
19
|
-
import { SimplifyAP as
|
|
20
|
-
import
|
|
21
|
-
import { Slide as
|
|
22
|
-
import { isNil as
|
|
23
|
-
import { EditorContent as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import { Markdown as
|
|
27
|
-
import
|
|
7
|
+
import { cloneDeep as Xt, cloneDeepWith as Zt, debounce as Qt, every as $t, get as en, isArray as tn, isBoolean as nn, isEmpty as rn, isEqual as an, isFunction as on, isNil as sn, isNumber as cn, isObject as ln, isPlainObject as un, isString as dn, keys as fn, noop as pn, set as mn, toLower as hn, toNumber as gn, values as _n } from "es-toolkit/compat";
|
|
8
|
+
import { Resizable as vn } from "react-resizable";
|
|
9
|
+
import { createPortal as yn } from "react-dom";
|
|
10
|
+
import { ALT_UNITS as bn, KNOWN_UNITS as xn, altUnitsList as Sn, cleanNumStr as Cn, convertAndGetValue as wn, convertSamePrecision as Tn, getAltUnitsListByQuantity as En, getUnit as Dn, getUnitsForQuantity as On, getValue as kn, isNumeric as An, isScientificStringNum as jn, isValidNum as Mn, isValueWithUnit as Nn, label as Pn, roundByMagnitude as Fn, roundByMagnitudeToFixed as In, roundToFixed as Ln, roundToPrecision as Rn, split as zn, stripLeadingZeros as Bn, toNum as Vn, toString as Hn, unitFromQuantity as Un, validateNumber as Wn, withPrettyUnitLabel as Gn, withUnit as Kn } from "@oliasoft-open-source/units";
|
|
11
|
+
import { List as qn } from "react-window";
|
|
12
|
+
import { SortableContext as Jn, useSortable as Yn, verticalListSortingStrategy as Xn } from "@dnd-kit/sortable";
|
|
13
|
+
import { CSS as Zn } from "@dnd-kit/utilities";
|
|
14
|
+
import Qn from "rc-slider";
|
|
15
|
+
import $n from "memoize-one";
|
|
16
|
+
import er from "react-fast-compare";
|
|
17
|
+
import { DndContext as tr, DragOverlay as nr, closestCenter as rr } from "@dnd-kit/core";
|
|
18
|
+
import { useVirtualizer as ir } from "@tanstack/react-virtual";
|
|
19
|
+
import { SimplifyAP as ar } from "simplify-ts";
|
|
20
|
+
import or from "papaparse";
|
|
21
|
+
import { Slide as sr, ToastContainer as cr, toast as lr } from "react-toastify";
|
|
22
|
+
import { isNil as ur } from "es-toolkit";
|
|
23
|
+
import { EditorContent as dr, useEditor as fr } from "@tiptap/react";
|
|
24
|
+
import pr from "@tiptap/starter-kit";
|
|
25
|
+
import mr from "@tiptap/extension-placeholder";
|
|
26
|
+
import { Markdown as hr } from "@tiptap/markdown";
|
|
27
|
+
import gr from "react-loading-skeleton";
|
|
28
28
|
import "react-loading-skeleton/dist/skeleton.css";
|
|
29
|
-
import { DndProvider as
|
|
30
|
-
import { MultiBackend as
|
|
31
|
-
import
|
|
29
|
+
import { DndProvider as _r } from "react-dnd";
|
|
30
|
+
import { MultiBackend as vr, Tree as yr, getBackendOptions as br } from "@minoru/react-dnd-treeview";
|
|
31
|
+
import xr, { DiffMethod as Sr } from "react-diff-viewer-continued";
|
|
32
32
|
//#region src/typings/common-types.ts
|
|
33
|
-
var
|
|
33
|
+
var Cr = /* @__PURE__ */ function(e) {
|
|
34
34
|
return e.TEXT = "Text", e.BUTTON = "Button", e.DROP_DOWN_BUTTON = "DropDownButton", e.COMPONENT = "Component", e;
|
|
35
|
-
}({}),
|
|
35
|
+
}({}), B = /* @__PURE__ */ function(e) {
|
|
36
36
|
return e.FIRST = "first", e.MIDDLE = "middle", e.LAST = "last", e;
|
|
37
|
-
}({}), Cr = /* @__PURE__ */ function(e) {
|
|
38
|
-
return e.DANGER = "danger", e.RED = "red", e.WHITE = "white", e.SUCCESS = "success", e.GREEN = "green", e.MUTED = "muted", e;
|
|
39
37
|
}({}), wr = /* @__PURE__ */ function(e) {
|
|
40
|
-
return e.
|
|
38
|
+
return e.DANGER = "danger", e.RED = "red", e.WHITE = "white", e.SUCCESS = "success", e.GREEN = "green", e.MUTED = "muted", e;
|
|
41
39
|
}({}), Tr = /* @__PURE__ */ function(e) {
|
|
40
|
+
return e.LEFT = "left", e.RIGHT = "right", e.CENTER = "center", e;
|
|
41
|
+
}({}), Er = /* @__PURE__ */ function(e) {
|
|
42
42
|
return e.TOP = "top", e.BOTTOM = "bottom", e;
|
|
43
|
-
}({}),
|
|
43
|
+
}({}), V = /* @__PURE__ */ function(e) {
|
|
44
44
|
return e.LIBRARY = "library", e.ADD = "add", e.DRAG = "drag", e.HELP = "help", e.NOTIFICATION = "notification", e.MENU = "menu", e.EDIT = "edit", e.FAST_FORWARD = "fast forward", e.INDENT = "indent", e.STAR = "star", e.LIST = "list", e.SETTINGS = "settings", e.CHECK = "check", e.LOCK = "lock", e.UNLOCK = "unlock", e.CLOSE = "close", e.SUCCESS = "success", e.WARNING = "warning", e.ERROR = "error", e.INFO = "info", e.LEFT = "left", e.COLLAPSE = "collapse", e.EXPAND = "expand", e.SORT_ASCENDING = "sort ascending", e.SORT_DESCENDING = "sort descending", e.FAST_BACKWARD = "fast backward", e.CHEVRON_DOWN = "chevron down", e.CHEVRON_RIGHT = "chevron right", e.CHEVRON_LEFT = "chevron left", e.CHEVRON_DOUBLE_LEFT = "chevron double left", e.CHEVRON_DOUBLE_RIGHT = "chevron double right", e;
|
|
45
|
-
}({}), Er = /* @__PURE__ */ function(e) {
|
|
46
|
-
return e.UPPERCASE = "uppercase", e.LOWERCASE = "lowercase", e.CAPITALIZE = "capitalize", e.NONE = "none", e;
|
|
47
45
|
}({}), Dr = /* @__PURE__ */ function(e) {
|
|
48
|
-
return e.
|
|
46
|
+
return e.UPPERCASE = "uppercase", e.LOWERCASE = "lowercase", e.CAPITALIZE = "capitalize", e.NONE = "none", e;
|
|
49
47
|
}({}), Or = /* @__PURE__ */ function(e) {
|
|
48
|
+
return e.DARK = "dark", e.WHITE = "white", e.LIGHT = "light", e.INHERIT = "inherit", e;
|
|
49
|
+
}({}), kr = /* @__PURE__ */ function(e) {
|
|
50
50
|
return e.TEXT = "text", e.RADIO = "radio", e.CHECKBOX = "checkbox", e;
|
|
51
|
-
}({}),
|
|
51
|
+
}({}), Ar = {
|
|
52
52
|
chevron: "_chevron_dd6mn_1",
|
|
53
53
|
expanded: "_expanded_dd6mn_9"
|
|
54
|
-
},
|
|
54
|
+
}, H = e.createContext(!1), jr = {
|
|
55
55
|
wrapper: "_wrapper_18w09_1",
|
|
56
56
|
customSvg: "_customSvg_18w09_8",
|
|
57
57
|
customPng: "_customPng_18w09_14",
|
|
58
58
|
clickable: "_clickable_18w09_19"
|
|
59
|
-
},
|
|
59
|
+
}, Mr = ({ src: e, size: t }) => {
|
|
60
60
|
let n = t == null ? "1em" : t, r = {
|
|
61
61
|
width: n,
|
|
62
62
|
height: n,
|
|
63
63
|
mask: `url("${e}") no-repeat center / contain`
|
|
64
64
|
};
|
|
65
65
|
return /* @__PURE__ */ v("span", {
|
|
66
|
-
className:
|
|
66
|
+
className: jr.customSvg,
|
|
67
67
|
style: r
|
|
68
68
|
});
|
|
69
|
-
},
|
|
69
|
+
}, Nr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-square-minus'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M9%2012h6'%20/%3e%3cpath%20d='M3%205a2%202%200%200%201%202%20-2h14a2%202%200%200%201%202%202v14a2%202%200%200%201%20-2%202h-14a2%202%200%200%201%20-2%20-2v-14'%20/%3e%3c/svg%3e", Pr = "data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%204H6C4.89543%204%204%204.89543%204%206V18C4%2019.1046%204.89543%2020%206%2020H18C19.1046%2020%2020%2019.1046%2020%2018V6C20%204.89543%2019.1046%204%2018%204Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Fr = "data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%2012H20M12%204V12M18%2020H6C4.89543%2020%204%2019.1046%204%2018V6C4%204.8954%204.89543%204%206%204H18C19.1046%204%2020%204.8954%2020%206V18C20%2019.1046%2019.1046%2020%2018%2020Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Ir = "data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%2012H20M12%2020V12M18%204H6C4.89543%204%204%204.89543%204%206V18C4%2019.1046%204.89543%2020%206%2020H18C19.1046%2020%2020%2019.1046%2020%2018V6C20%204.89543%2019.1046%204%2018%204Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Lr = "data:image/svg+xml,%3csvg%20fill='none'%20height='1em'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m12%2020v-16m-8%208h8m8-6v12c0%201.1046-.8954%202-2%202h-12c-1.1046%200-2-.8954-2-2v-12c0-1.1046.8954-2%202-2h12c1.1046%200%202%20.8954%202%202z'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/svg%3e", Rr = "data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%204L12%2020M20%2012H12M4%2018L4%206C4%204.89543%204.89543%204%206%204L18%204C19.1046%204%2020%204.89543%2020%206V18C20%2019.1046%2019.1046%2020%2018%2020H6C4.89543%2020%204%2019.1046%204%2018Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", zr = "data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%204C4.89543%204%204%204.89543%204%206V18C4%2019.1046%204.89543%2020%206%2020H18C19.1046%2020%2020%2019.1046%2020%2018V6C20%204.89543%2019.1046%204%2018%204M6%204H18M6%204H12M18%204H12M4%2012H20M12%204V20'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Br = ({ icon: e }) => {
|
|
70
70
|
switch (e) {
|
|
71
71
|
case "add":
|
|
72
72
|
case "plus": return /* @__PURE__ */ v(st, {});
|
|
@@ -105,7 +105,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
105
105
|
case "copy":
|
|
106
106
|
case "duplicate": return /* @__PURE__ */ v(fe, {});
|
|
107
107
|
case "code": return /* @__PURE__ */ v(de, {});
|
|
108
|
-
case "collapse": return /* @__PURE__ */ v(
|
|
108
|
+
case "collapse": return /* @__PURE__ */ v(Mr, { src: Nr });
|
|
109
109
|
case "collapse all": return /* @__PURE__ */ v(Re, {});
|
|
110
110
|
case "company": return /* @__PURE__ */ v(P, {});
|
|
111
111
|
case "compare": return /* @__PURE__ */ v(ht, {});
|
|
@@ -143,15 +143,15 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
143
143
|
case "layout columns":
|
|
144
144
|
case "columns": return /* @__PURE__ */ v(Ie, {});
|
|
145
145
|
case "layout grid":
|
|
146
|
-
case "grid": return /* @__PURE__ */ v(
|
|
146
|
+
case "grid": return /* @__PURE__ */ v(Mr, { src: zr });
|
|
147
147
|
case "layout rows":
|
|
148
148
|
case "rows": return /* @__PURE__ */ v(Le, {});
|
|
149
149
|
case "layout single":
|
|
150
|
-
case "square": return /* @__PURE__ */ v(
|
|
151
|
-
case "layout 3 split top": return /* @__PURE__ */ v(
|
|
152
|
-
case "layout 3 split bottom": return /* @__PURE__ */ v(
|
|
153
|
-
case "layout 3 split left": return /* @__PURE__ */ v(
|
|
154
|
-
case "layout 3 split right": return /* @__PURE__ */ v(
|
|
150
|
+
case "square": return /* @__PURE__ */ v(Mr, { src: Pr });
|
|
151
|
+
case "layout 3 split top": return /* @__PURE__ */ v(Mr, { src: Fr });
|
|
152
|
+
case "layout 3 split bottom": return /* @__PURE__ */ v(Mr, { src: Ir });
|
|
153
|
+
case "layout 3 split left": return /* @__PURE__ */ v(Mr, { src: Lr });
|
|
154
|
+
case "layout 3 split right": return /* @__PURE__ */ v(Mr, { src: Rr });
|
|
155
155
|
case "link": return /* @__PURE__ */ v(Be, {});
|
|
156
156
|
case "list":
|
|
157
157
|
case "legend":
|
|
@@ -220,8 +220,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
220
220
|
case "": return null;
|
|
221
221
|
default: return /* @__PURE__ */ v(se, {});
|
|
222
222
|
}
|
|
223
|
-
},
|
|
224
|
-
let c = s(
|
|
223
|
+
}, U = ({ icon: e, onClick: t, clickable: n = !1, color: r, size: a, testId: o }) => {
|
|
224
|
+
let c = s(H), l = {
|
|
225
225
|
color: r,
|
|
226
226
|
fill: r,
|
|
227
227
|
fontSize: a || "inherit",
|
|
@@ -229,23 +229,23 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
229
229
|
height: a || "auto"
|
|
230
230
|
};
|
|
231
231
|
return /* @__PURE__ */ v("div", {
|
|
232
|
-
className: g(
|
|
232
|
+
className: g(jr.wrapper, (n || t) && !c ? jr.clickable : ""),
|
|
233
233
|
style: l,
|
|
234
234
|
onClick: (e) => t && !c ? t(e) : void 0,
|
|
235
235
|
"data-testid": o,
|
|
236
|
-
children: i(e) ? e : typeof e == "string" && (e.includes(".svg") || e.includes("image/svg")) ? /* @__PURE__ */ v(
|
|
236
|
+
children: i(e) ? e : typeof e == "string" && (e.includes(".svg") || e.includes("image/svg")) ? /* @__PURE__ */ v(Mr, {
|
|
237
237
|
src: e,
|
|
238
238
|
size: a
|
|
239
239
|
}) : typeof e == "string" && (e.includes(".png") || e.includes("image/png")) ? /* @__PURE__ */ v("img", {
|
|
240
240
|
alt: "icon",
|
|
241
|
-
className:
|
|
241
|
+
className: jr.customPng,
|
|
242
242
|
src: e
|
|
243
|
-
}) : typeof e == "string" ? /* @__PURE__ */ v(
|
|
243
|
+
}) : typeof e == "string" ? /* @__PURE__ */ v(Br, { icon: e }) : null
|
|
244
244
|
});
|
|
245
|
-
},
|
|
246
|
-
className: g(
|
|
247
|
-
children: /* @__PURE__ */ v(
|
|
248
|
-
}),
|
|
245
|
+
}, Vr = ({ expanded: e }) => /* @__PURE__ */ v("span", {
|
|
246
|
+
className: g(Ar.chevron, e ? Ar.expanded : ""),
|
|
247
|
+
children: /* @__PURE__ */ v(U, { icon: V.CHEVRON_RIGHT })
|
|
248
|
+
}), Hr = {
|
|
249
249
|
accordion: "_accordion_15p8j_1",
|
|
250
250
|
accordionHeader: "_accordionHeader_15p8j_5",
|
|
251
251
|
heading: "_heading_15p8j_9",
|
|
@@ -255,58 +255,58 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
255
255
|
expanded: "_expanded_15p8j_36",
|
|
256
256
|
padding: "_padding_15p8j_44",
|
|
257
257
|
squareBottom: "_squareBottom_15p8j_47"
|
|
258
|
-
},
|
|
258
|
+
}, Ur = {
|
|
259
259
|
collapse: "_collapse_1m1n2_5",
|
|
260
260
|
enter: "_enter_1m1n2_9",
|
|
261
261
|
enterActive: "_enterActive_1m1n2_12",
|
|
262
262
|
exit: "_exit_1m1n2_15",
|
|
263
263
|
exitActive: "_exitActive_1m1n2_18",
|
|
264
264
|
collapseInner: "_collapseInner_1m1n2_21"
|
|
265
|
-
},
|
|
265
|
+
}, Wr = ({ children: e, expanded: t }) => {
|
|
266
266
|
let n = p(null);
|
|
267
267
|
return /* @__PURE__ */ v(jt, {
|
|
268
268
|
nodeRef: n,
|
|
269
269
|
in: t,
|
|
270
270
|
timeout: 100,
|
|
271
271
|
classNames: {
|
|
272
|
-
enter:
|
|
273
|
-
enterActive:
|
|
274
|
-
exit:
|
|
275
|
-
exitActive:
|
|
272
|
+
enter: Ur.enter,
|
|
273
|
+
enterActive: Ur.enterActive,
|
|
274
|
+
exit: Ur.exit,
|
|
275
|
+
exitActive: Ur.exitActive
|
|
276
276
|
},
|
|
277
277
|
unmountOnExit: !0,
|
|
278
278
|
children: /* @__PURE__ */ v("div", {
|
|
279
279
|
ref: n,
|
|
280
|
-
className:
|
|
280
|
+
className: Ur.collapse,
|
|
281
281
|
children: /* @__PURE__ */ v("div", {
|
|
282
|
-
className:
|
|
282
|
+
className: Ur.collapseInner,
|
|
283
283
|
children: /* @__PURE__ */ v("div", { children: t && e })
|
|
284
284
|
})
|
|
285
285
|
})
|
|
286
286
|
});
|
|
287
|
-
},
|
|
287
|
+
}, Gr = ({ heading: e, expanded: t = !1, bordered: n = !1, padding: r = !0, children: i, squareBottom: a = !1, onClick: o, testId: s }) => {
|
|
288
288
|
let c = t && !!i;
|
|
289
289
|
return /* @__PURE__ */ y("div", {
|
|
290
|
-
className: g(
|
|
290
|
+
className: g(Hr.accordion, n ? Hr.bordered : "", t ? Hr.expanded : "", a ? Hr.squareBottom : ""),
|
|
291
291
|
children: [/* @__PURE__ */ y("div", {
|
|
292
|
-
className: g(
|
|
292
|
+
className: g(Hr.accordionHeader, o ? Hr.clickable : ""),
|
|
293
293
|
onClick: o,
|
|
294
294
|
"data-testid": s,
|
|
295
|
-
children: [/* @__PURE__ */ v(
|
|
296
|
-
className:
|
|
295
|
+
children: [/* @__PURE__ */ v(Vr, { expanded: t }), /* @__PURE__ */ v("div", {
|
|
296
|
+
className: Hr.heading,
|
|
297
297
|
children: e
|
|
298
298
|
})]
|
|
299
|
-
}), /* @__PURE__ */ v(
|
|
299
|
+
}), /* @__PURE__ */ v(Wr, {
|
|
300
300
|
expanded: c,
|
|
301
301
|
children: /* @__PURE__ */ v("div", {
|
|
302
|
-
className: g(
|
|
302
|
+
className: g(Hr.accordionContent, n && r ? Hr.padding : ""),
|
|
303
303
|
children: i
|
|
304
304
|
})
|
|
305
305
|
})]
|
|
306
306
|
});
|
|
307
|
-
},
|
|
307
|
+
}, Kr = ({ heading: t, bordered: n, padding: r, expanded: i = !1, children: a, testId: o }) => {
|
|
308
308
|
let [s, c] = e.useState(i);
|
|
309
|
-
return /* @__PURE__ */ v(
|
|
309
|
+
return /* @__PURE__ */ v(Gr, {
|
|
310
310
|
heading: t,
|
|
311
311
|
bordered: n,
|
|
312
312
|
padding: r,
|
|
@@ -317,7 +317,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
317
317
|
testId: o,
|
|
318
318
|
children: a
|
|
319
319
|
});
|
|
320
|
-
},
|
|
320
|
+
}, qr = ({ heading: e, expanded: t = !1, managed: n = !1, bordered: r = !1, padding: i = !0, children: a, onClick: o, squareBottom: s = !1, testId: c }) => v(n ? Kr : Gr, {
|
|
321
321
|
heading: e,
|
|
322
322
|
expanded: t,
|
|
323
323
|
bordered: r,
|
|
@@ -326,7 +326,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
326
326
|
onClick: o,
|
|
327
327
|
testId: c,
|
|
328
328
|
children: a
|
|
329
|
-
}),
|
|
329
|
+
}), Jr = {
|
|
330
330
|
checkbox: "_checkbox_1ezew_1",
|
|
331
331
|
noLabel: "_noLabel_1ezew_17",
|
|
332
332
|
small: "_small_1ezew_20",
|
|
@@ -335,9 +335,9 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
335
335
|
noMargin: "_noMargin_1ezew_98",
|
|
336
336
|
isInTable: "_isInTable_1ezew_101",
|
|
337
337
|
helpIconEnabled: "_helpIconEnabled_1ezew_104"
|
|
338
|
-
},
|
|
338
|
+
}, Yr = ({ children: e }) => Kt() === null ? /* @__PURE__ */ v(Ft, { children: e }) : /* @__PURE__ */ v(_, { children: e }), Xr = "bottom-start", Zr = (e, t) => {
|
|
339
339
|
t((t) => t && t.width === e.width && t.height === e.height && t.x === e.x && t.y === e.y ? t : e);
|
|
340
|
-
},
|
|
340
|
+
}, Qr = (e = Xr) => e === "center" ? "bottom" : e.replace("-center", ""), $r = ({ arrowOffset: e, arrowRef: t, containerOffset: n, fallbackPlacements: r, matchReferenceWidth: i, triggerOffset: a }) => [
|
|
341
341
|
zt(a),
|
|
342
342
|
Rt({
|
|
343
343
|
fallbackPlacements: r,
|
|
@@ -354,9 +354,9 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
354
354
|
element: t,
|
|
355
355
|
padding: e
|
|
356
356
|
})
|
|
357
|
-
],
|
|
357
|
+
], ei = ({ isOpen: e, arrowOffset: t = 0, clientPoint: n, containerOffset: r = 10, hover: i, matchReferenceWidth: a = !1, placement: s = Xr, possiblePlacements: c, triggerOffset: l = 0, overflowContainer: u = !0, onOpenChange: f, onOutsideClick: h }) => {
|
|
358
358
|
var g, _, y, b, x, S, C;
|
|
359
|
-
let w = p(null), [T, E] = m(null), D = Gt(), O =
|
|
359
|
+
let w = p(null), [T, E] = m(null), D = Gt(), O = Qr(s), k = d(() => c == null ? void 0 : c.map(Qr), [c]), A = d(() => $r({
|
|
360
360
|
arrowOffset: t,
|
|
361
361
|
arrowRef: w,
|
|
362
362
|
containerOffset: r,
|
|
@@ -369,8 +369,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
369
369
|
k,
|
|
370
370
|
a,
|
|
371
371
|
l
|
|
372
|
-
]), j = o((e, t, n) => (
|
|
373
|
-
|
|
372
|
+
]), j = o((e, t, n) => (Zr(e.getBoundingClientRect(), E), Lt(e, t, () => {
|
|
373
|
+
Zr(e.getBoundingClientRect(), E), n();
|
|
374
374
|
})), []), { context: M, refs: N, floatingStyles: P, isPositioned: F, x: I, y: ee } = Wt({
|
|
375
375
|
open: e,
|
|
376
376
|
onOpenChange: (e, t, n) => {
|
|
@@ -384,7 +384,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
384
384
|
middleware: A
|
|
385
385
|
}), L = o((e) => {
|
|
386
386
|
if (N.setReference(e), e) {
|
|
387
|
-
|
|
387
|
+
Zr(e.getBoundingClientRect(), E);
|
|
388
388
|
return;
|
|
389
389
|
}
|
|
390
390
|
E(null);
|
|
@@ -442,7 +442,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
442
442
|
triggerBounds: T,
|
|
443
443
|
triggerProps: ie
|
|
444
444
|
};
|
|
445
|
-
},
|
|
445
|
+
}, ti = () => {
|
|
446
446
|
let [e, t] = m(null);
|
|
447
447
|
return {
|
|
448
448
|
clientPoint: e,
|
|
@@ -455,12 +455,12 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
455
455
|
hasClientPoint: !!e,
|
|
456
456
|
resetClientPoint: () => t(null)
|
|
457
457
|
};
|
|
458
|
-
},
|
|
458
|
+
}, ni = {
|
|
459
459
|
tooltip: "_tooltip_o1fhy_1",
|
|
460
460
|
error: "_error_o1fhy_14",
|
|
461
461
|
warning: "_warning_o1fhy_18"
|
|
462
|
-
},
|
|
463
|
-
className: g(
|
|
462
|
+
}, ri = ({ text: e = "", error: t = !1, warning: n = !1, maxWidth: r = "none", fontSize: i = "inherit", padding: a = "var(--padding-xxs) var(--padding-xs)", layerProps: o = { style: { position: "fixed" } }, arrowProps: s }) => /* @__PURE__ */ y("div", {
|
|
463
|
+
className: g(ni.tooltip, t ? ni.error : n ? ni.warning : ""),
|
|
464
464
|
...o,
|
|
465
465
|
children: [/* @__PURE__ */ v("div", {
|
|
466
466
|
style: {
|
|
@@ -477,13 +477,13 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
477
477
|
tipRadius: 1,
|
|
478
478
|
fill: "inherit"
|
|
479
479
|
})]
|
|
480
|
-
}),
|
|
480
|
+
}), ii = ({ children: e, text: t = "", error: n = !1, placement: r = "top-center", possiblePlacements: a = [
|
|
481
481
|
"top-center",
|
|
482
482
|
"left-center",
|
|
483
483
|
"bottom-center",
|
|
484
484
|
"right-center"
|
|
485
485
|
], enabled: o = !0, warning: s = !1, maxWidth: c = "40em", triggerOffset: l = 12, fontSize: u = "inherit", padding: d = "var(--padding-xxs) var(--padding-xs)", display: f = "inline", flex: p = "none", forceOpen: h = !1 }) => {
|
|
486
|
-
let g = o && (i(t) || typeof t == "string" && t.length > 0 || typeof t == "number"), [b, x] = m(!1), S = g ? h ? !0 : b : !1, { renderLayer: C, triggerProps: w, layerProps: T, arrowProps: E } =
|
|
486
|
+
let g = o && (i(t) || typeof t == "string" && t.length > 0 || typeof t == "number"), [b, x] = m(!1), S = g ? h ? !0 : b : !1, { renderLayer: C, triggerProps: w, layerProps: T, arrowProps: E } = ei({
|
|
487
487
|
isOpen: S,
|
|
488
488
|
hover: {
|
|
489
489
|
enabled: g && !h,
|
|
@@ -503,7 +503,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
503
503
|
var t;
|
|
504
504
|
(t = w.onMouseOver) == null || t.call(w, e), g && !h && !e.nativeEvent.isTrusted && x(!0);
|
|
505
505
|
};
|
|
506
|
-
return /* @__PURE__ */ y(_, { children: [S && C(/* @__PURE__ */ v(
|
|
506
|
+
return /* @__PURE__ */ y(_, { children: [S && C(/* @__PURE__ */ v(ri, {
|
|
507
507
|
text: t,
|
|
508
508
|
error: n,
|
|
509
509
|
warning: s,
|
|
@@ -522,32 +522,32 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
522
522
|
onMouseOver: O,
|
|
523
523
|
children: e
|
|
524
524
|
})] });
|
|
525
|
-
},
|
|
525
|
+
}, W = (e) => /* @__PURE__ */ v(Yr, { children: /* @__PURE__ */ v(ii, { ...e }) }), ai = {
|
|
526
526
|
helpIcon: "_helpIcon_hd0z2_1",
|
|
527
527
|
active: "_active_hd0z2_9",
|
|
528
528
|
clickable: "_clickable_hd0z2_12"
|
|
529
|
-
},
|
|
529
|
+
}, oi = ({ children: e, text: t, maxWidth: n }) => t ? /* @__PURE__ */ v(W, {
|
|
530
530
|
text: t,
|
|
531
531
|
display: "inline-flex",
|
|
532
532
|
maxWidth: n,
|
|
533
533
|
children: e
|
|
534
|
-
}) : /* @__PURE__ */ v(_, { children: e }),
|
|
535
|
-
className: g(
|
|
534
|
+
}) : /* @__PURE__ */ v(_, { children: e }), si = ({ text: e, onClick: t, icon: n = "help", active: r = !1, maxWidth: i = "300px", testId: a }) => /* @__PURE__ */ v("div", {
|
|
535
|
+
className: g(ai.helpIcon, t ? ai.clickable : "", r ? ai.active : ""),
|
|
536
536
|
onClick: (e) => {
|
|
537
537
|
t && (e.stopPropagation(), t());
|
|
538
538
|
},
|
|
539
539
|
"data-testid": a,
|
|
540
|
-
children: /* @__PURE__ */ v(
|
|
540
|
+
children: /* @__PURE__ */ v(oi, {
|
|
541
541
|
text: e,
|
|
542
542
|
maxWidth: i,
|
|
543
|
-
children: /* @__PURE__ */ v(
|
|
543
|
+
children: /* @__PURE__ */ v(U, { icon: n })
|
|
544
544
|
})
|
|
545
|
-
}),
|
|
546
|
-
let x = s(
|
|
545
|
+
}), ci = ({ noMargin: e = !1, dataix: t = 0, isInTable: n = !1, tabIndex: r = 0, checked: i = !1, indeterminate: a = !1, name: o, label: c = "", disabled: l = !1, small: d = !1, onChange: f, testId: m, helpText: h, onClickHelp: _, textTransform: b = Dr.CAPITALIZE }) => {
|
|
546
|
+
let x = s(H), S = h || _, C = l || x, w = p(null);
|
|
547
547
|
return u(() => {
|
|
548
548
|
w.current && (w.current.indeterminate = a);
|
|
549
549
|
}, [a, i]), /* @__PURE__ */ y("div", {
|
|
550
|
-
className: g(
|
|
550
|
+
className: g(Jr.checkbox, e && Jr.noMargin, n && Jr.isInTable, C && Jr.disabled, d && Jr.small, !c && Jr.noLabel),
|
|
551
551
|
"data-ix": t,
|
|
552
552
|
onClick: (e) => {
|
|
553
553
|
if (!C) {
|
|
@@ -577,65 +577,65 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
577
577
|
htmlFor: o,
|
|
578
578
|
style: { textTransform: b },
|
|
579
579
|
children: [/* @__PURE__ */ v("span", {
|
|
580
|
-
className:
|
|
581
|
-
children: /* @__PURE__ */ v(
|
|
580
|
+
className: Jr.checkmark,
|
|
581
|
+
children: /* @__PURE__ */ v(U, { icon: V.CHECK })
|
|
582
582
|
}), c]
|
|
583
583
|
}),
|
|
584
584
|
S && /* @__PURE__ */ v("div", {
|
|
585
|
-
className:
|
|
585
|
+
className: Jr.helpIconEnabled,
|
|
586
586
|
onClick: _,
|
|
587
|
-
children: /* @__PURE__ */ v(
|
|
587
|
+
children: /* @__PURE__ */ v(si, { text: h })
|
|
588
588
|
})
|
|
589
589
|
]
|
|
590
590
|
});
|
|
591
|
-
},
|
|
591
|
+
}, li = {
|
|
592
592
|
bordered: "_bordered_1cgsf_1",
|
|
593
593
|
checkboxWrapper: "_checkboxWrapper_1cgsf_7",
|
|
594
594
|
padding: "_padding_1cgsf_13",
|
|
595
595
|
contentWrapper: "_contentWrapper_1cgsf_16"
|
|
596
|
-
},
|
|
596
|
+
}, ui = /* @__PURE__ */ function(e) {
|
|
597
597
|
return e.TOGGLE_ACCORDION = "TOGGLE_ACCORDION", e.TOGGLE_ENABLE = "TOGGLE_ENABLE", e;
|
|
598
|
-
}({}),
|
|
598
|
+
}({}), di = (e, t) => {
|
|
599
599
|
switch (t.type) {
|
|
600
|
-
case
|
|
600
|
+
case ui.TOGGLE_ACCORDION: return {
|
|
601
601
|
...e,
|
|
602
602
|
accordionExpanded: !e.accordionExpanded
|
|
603
603
|
};
|
|
604
|
-
case
|
|
604
|
+
case ui.TOGGLE_ENABLE: return {
|
|
605
605
|
...e,
|
|
606
606
|
defaultEnabled: !e.defaultEnabled,
|
|
607
607
|
accordionExpanded: e.defaultEnabled
|
|
608
608
|
};
|
|
609
609
|
default: return e;
|
|
610
610
|
}
|
|
611
|
-
},
|
|
612
|
-
let [s, c] = f(
|
|
611
|
+
}, fi = ({ heading: e, toggleLabel: t, onClickDefaultToggle: n, expanded: r = !1, defaultEnabled: i = !0, padding: a = !0, children: o }) => {
|
|
612
|
+
let [s, c] = f(di, {
|
|
613
613
|
accordionExpanded: r,
|
|
614
614
|
defaultEnabled: i
|
|
615
615
|
}), l = /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("div", {
|
|
616
|
-
className:
|
|
617
|
-
children: /* @__PURE__ */ v(
|
|
616
|
+
className: li.checkboxWrapper,
|
|
617
|
+
children: /* @__PURE__ */ v(ci, {
|
|
618
618
|
label: t,
|
|
619
619
|
onChange: (e) => {
|
|
620
|
-
c({ type:
|
|
620
|
+
c({ type: ui.TOGGLE_ENABLE }), n == null || n(e);
|
|
621
621
|
},
|
|
622
622
|
checked: s.defaultEnabled
|
|
623
623
|
})
|
|
624
624
|
}), s.accordionExpanded && /* @__PURE__ */ v("div", {
|
|
625
|
-
className:
|
|
625
|
+
className: li.contentWrapper,
|
|
626
626
|
children: o
|
|
627
627
|
})] });
|
|
628
|
-
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(
|
|
628
|
+
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(qr, {
|
|
629
629
|
heading: e,
|
|
630
630
|
bordered: !0,
|
|
631
631
|
expanded: s.accordionExpanded,
|
|
632
632
|
squareBottom: !0,
|
|
633
|
-
onClick: () => c({ type:
|
|
633
|
+
onClick: () => c({ type: ui.TOGGLE_ACCORDION })
|
|
634
634
|
}), /* @__PURE__ */ v("div", {
|
|
635
|
-
className: g(
|
|
635
|
+
className: g(li.bordered, a ? li.padding : ""),
|
|
636
636
|
children: l
|
|
637
637
|
})] });
|
|
638
|
-
},
|
|
638
|
+
}, G = {
|
|
639
639
|
inputInTable: "_inputInTable_1isig_1",
|
|
640
640
|
inputHover: "_inputHover_1isig_13",
|
|
641
641
|
inputFocus: "_inputFocus_1isig_18",
|
|
@@ -672,26 +672,26 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
672
672
|
});
|
|
673
673
|
}, hi = /* @__PURE__ */ function(e) {
|
|
674
674
|
return e.SUBMIT = "submit", e.BUTTON = "button", e.RESET = "reset", e;
|
|
675
|
-
}({}), gi = ({ children: e, tooltip: t = null }) => t ? /* @__PURE__ */ v(
|
|
675
|
+
}({}), gi = ({ children: e, tooltip: t = null }) => t ? /* @__PURE__ */ v(W, {
|
|
676
676
|
text: t,
|
|
677
677
|
display: "inline-flex",
|
|
678
678
|
children: e
|
|
679
679
|
}) : /* @__PURE__ */ v(_, { children: e }), K = ({ active: e = !1, basic: t = !1, colored: n = !1, disabled: r = !1, ignoreDisabledContext: i = !1, groupOrder: a, icon: o = null, rightIcon: c = null, label: l = "", loading: u = !1, name: d, pill: f = !1, round: p = !1, small: m = !1, styles: h = "", width: _ = "", title: b = "", type: x = hi.BUTTON, onClick: S = () => {}, error: C, warning: w, testId: T, tooltip: E, inverted: D = !1, component: O = "button", url: k, tabIndex: A }) => {
|
|
680
|
-
let j = s(
|
|
680
|
+
let j = s(H), M = (() => {
|
|
681
681
|
if (n) switch (n) {
|
|
682
|
-
case
|
|
683
|
-
case
|
|
684
|
-
case
|
|
685
|
-
case
|
|
686
|
-
case
|
|
687
|
-
default: return
|
|
682
|
+
case wr.DANGER:
|
|
683
|
+
case wr.RED: return G.red;
|
|
684
|
+
case wr.SUCCESS:
|
|
685
|
+
case wr.GREEN: return G.green;
|
|
686
|
+
case wr.MUTED: return G.muted;
|
|
687
|
+
default: return G.orange;
|
|
688
688
|
}
|
|
689
689
|
return "";
|
|
690
690
|
})(), N = (() => {
|
|
691
691
|
if (a) switch (a) {
|
|
692
|
-
case
|
|
693
|
-
case
|
|
694
|
-
default: return
|
|
692
|
+
case B.FIRST: return G.groupOrderFirst;
|
|
693
|
+
case B.LAST: return G.groupOrderLast;
|
|
694
|
+
default: return G.groupOrderMiddle;
|
|
695
695
|
}
|
|
696
696
|
return "";
|
|
697
697
|
})(), P = r || j && !i;
|
|
@@ -699,7 +699,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
699
699
|
tooltip: E,
|
|
700
700
|
children: /* @__PURE__ */ y(O, {
|
|
701
701
|
type: x === hi.SUBMIT ? hi.SUBMIT : hi.BUTTON,
|
|
702
|
-
className: g(
|
|
702
|
+
className: g(G.button, e ? G.active : "", t ? G.basic : "", M, P ? G.disabled : "", (o || u) && !l ? G.iconOnly : "", D ? G.inverted : "", N, f ? G.pill : "", p ? G.round : "", m ? G.small : "", h),
|
|
703
703
|
disabled: P,
|
|
704
704
|
name: d == null ? "" : d,
|
|
705
705
|
onClick: S,
|
|
@@ -712,11 +712,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
712
712
|
tabIndex: A,
|
|
713
713
|
children: [
|
|
714
714
|
o && /* @__PURE__ */ v("span", {
|
|
715
|
-
className:
|
|
716
|
-
children: /* @__PURE__ */ v(
|
|
715
|
+
className: G.icon,
|
|
716
|
+
children: /* @__PURE__ */ v(U, { icon: o })
|
|
717
717
|
}),
|
|
718
718
|
u && /* @__PURE__ */ v("span", {
|
|
719
|
-
className:
|
|
719
|
+
className: G.icon,
|
|
720
720
|
children: /* @__PURE__ */ v(mi, {
|
|
721
721
|
small: !m,
|
|
722
722
|
tiny: m,
|
|
@@ -726,8 +726,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
726
726
|
}),
|
|
727
727
|
l,
|
|
728
728
|
c && /* @__PURE__ */ v("span", {
|
|
729
|
-
className:
|
|
730
|
-
children: /* @__PURE__ */ v(
|
|
729
|
+
className: G.rightIcon,
|
|
730
|
+
children: /* @__PURE__ */ v(U, { icon: c })
|
|
731
731
|
})
|
|
732
732
|
]
|
|
733
733
|
})
|
|
@@ -774,9 +774,9 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
774
774
|
children: [e, !!n && /* @__PURE__ */ v("span", {
|
|
775
775
|
className: g(q.headingIcon, t ? q.clickable : ""),
|
|
776
776
|
onClick: t,
|
|
777
|
-
children: /* @__PURE__ */ v(
|
|
777
|
+
children: /* @__PURE__ */ v(U, { icon: n })
|
|
778
778
|
})]
|
|
779
|
-
}), yi = () => /* @__PURE__ */ v("hr", { className: q.divider }), bi = ({ actions: e, label: t, url: n, onClick: r, description: i, icon: a, selected: o, closeOnOptionClick: s, close: c, disabled: l, inline: u, title: d, upload: f, uploadType: p, onChange: m =
|
|
779
|
+
}), yi = () => /* @__PURE__ */ v("hr", { className: q.divider }), bi = ({ actions: e, label: t, url: n, onClick: r, description: i, icon: a, selected: o, closeOnOptionClick: s, close: c, disabled: l, inline: u, title: d, upload: f, uploadType: p, onChange: m = pn, testId: h, component: _ = "a" }) => /* @__PURE__ */ y(_, {
|
|
780
780
|
href: n,
|
|
781
781
|
to: n,
|
|
782
782
|
className: g(q.option, l ? q.disabled : "", u ? q.inline : "", o ? q == null ? void 0 : q.selected : ""),
|
|
@@ -791,7 +791,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
791
791
|
children: [
|
|
792
792
|
a ? /* @__PURE__ */ v("span", {
|
|
793
793
|
className: q.icon,
|
|
794
|
-
children: /* @__PURE__ */ v(
|
|
794
|
+
children: /* @__PURE__ */ v(U, { icon: a })
|
|
795
795
|
}) : null,
|
|
796
796
|
/* @__PURE__ */ y("div", {
|
|
797
797
|
className: q.optionContent,
|
|
@@ -832,7 +832,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
832
832
|
className: q.right,
|
|
833
833
|
children: [o && /* @__PURE__ */ v("span", {
|
|
834
834
|
className: q.check,
|
|
835
|
-
children: /* @__PURE__ */ v(
|
|
835
|
+
children: /* @__PURE__ */ v(U, { icon: V.CHECK })
|
|
836
836
|
}), !!(e != null && e.length) && /* @__PURE__ */ v("div", {
|
|
837
837
|
className: q.actions,
|
|
838
838
|
children: /* @__PURE__ */ v(Ji, { actions: e })
|
|
@@ -844,7 +844,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
844
844
|
}({}), Si = /* @__PURE__ */ function(e) {
|
|
845
845
|
return e.FALSE = "false", e.RIGHT = "right", e.DOWN = "down", e;
|
|
846
846
|
}({}), Ci = ({ section: e, closeOnOptionClick: t, close: n, tree: r, path: i, maxHeight: a }) => {
|
|
847
|
-
let o = s(
|
|
847
|
+
let o = s(H);
|
|
848
848
|
switch (e.type) {
|
|
849
849
|
case xi.HEADING:
|
|
850
850
|
var c;
|
|
@@ -893,7 +893,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
893
893
|
});
|
|
894
894
|
default: return null;
|
|
895
895
|
}
|
|
896
|
-
}, wi = (e) => e.includes("[") ? e.substr(0, e.lastIndexOf("[")) : e, Ti = (e, t) => `${e}.sections[${t}]`.replace(/^\./, ""), Ei = (e) => `${e}.close`.replace(/^\./, ""), Di = (e, t) => en(e, wi(t), []), Oi = (e, t, n) =>
|
|
896
|
+
}, wi = (e) => e.includes("[") ? e.substr(0, e.lastIndexOf("[")) : e, Ti = (e, t) => `${e}.sections[${t}]`.replace(/^\./, ""), Ei = (e) => `${e}.close`.replace(/^\./, ""), Di = (e, t) => en(e, wi(t), []), Oi = (e, t, n) => mn(e, Ei(t), n), ki = ({ sections: e, isNested: t, width: n, closeOnOptionClick: r, close: a = () => {}, tree: o, path: s, maxHeight: c, showAllButton: l, testId: u }) => {
|
|
897
897
|
var d, f;
|
|
898
898
|
if (i(e)) return /* @__PURE__ */ v(_, { children: e });
|
|
899
899
|
let [p, h] = m(!(l != null && l.visible)), y = e, b = (d = l == null || (f = l.additionalSections) == null ? void 0 : f.map((e) => ({
|
|
@@ -955,7 +955,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
955
955
|
}), e]
|
|
956
956
|
});
|
|
957
957
|
}, Fi = ({ trigger: e, label: t, colored: n, small: r, width: i, disabled: a, groupOrder: o, loading: c, error: l, warning: u, active: d, tabIndex: f }) => {
|
|
958
|
-
let p = s(
|
|
958
|
+
let p = s(H), m = e === Cr.DROP_DOWN_BUTTON;
|
|
959
959
|
return /* @__PURE__ */ v("div", {
|
|
960
960
|
className: g(q.trigger, a || p ? q.disabled : null),
|
|
961
961
|
style: { width: i },
|
|
@@ -969,7 +969,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
969
969
|
width: i,
|
|
970
970
|
groupOrder: o,
|
|
971
971
|
onClick: () => {},
|
|
972
|
-
rightIcon: m ?
|
|
972
|
+
rightIcon: m ? V.CHEVRON_DOWN : null,
|
|
973
973
|
loading: c,
|
|
974
974
|
disabled: a,
|
|
975
975
|
error: l,
|
|
@@ -988,24 +988,24 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
988
988
|
children: e
|
|
989
989
|
}), n && n === Si.RIGHT ? /* @__PURE__ */ v("span", {
|
|
990
990
|
className: q.arrow,
|
|
991
|
-
children: /* @__PURE__ */ v(
|
|
991
|
+
children: /* @__PURE__ */ v(U, { icon: V.CHEVRON_RIGHT })
|
|
992
992
|
}) : n && n === Si.DOWN ? /* @__PURE__ */ v("span", {
|
|
993
993
|
className: q.arrow,
|
|
994
|
-
children: /* @__PURE__ */ v(
|
|
994
|
+
children: /* @__PURE__ */ v(U, { icon: V.CHEVRON_DOWN })
|
|
995
995
|
}) : null]
|
|
996
996
|
});
|
|
997
997
|
}, Li = ({ component: e, disabled: t, testId: n }) => /* @__PURE__ */ v("div", {
|
|
998
998
|
className: g(q.component, t ? q.disabled : null),
|
|
999
999
|
"data-testid": n,
|
|
1000
1000
|
children: e
|
|
1001
|
-
}), Ri = ({ tooltip: e, error: t, warning: n, children: r }) => !J(e) && !J(t) && !J(n) ? /* @__PURE__ */ v(_, { children: r }) : /* @__PURE__ */ v(
|
|
1001
|
+
}), Ri = ({ tooltip: e, error: t, warning: n, children: r }) => !J(e) && !J(t) && !J(n) ? /* @__PURE__ */ v(_, { children: r }) : /* @__PURE__ */ v(W, {
|
|
1002
1002
|
error: !!t,
|
|
1003
1003
|
warning: !!n,
|
|
1004
1004
|
text: e || t || n,
|
|
1005
1005
|
display: "inline-flex",
|
|
1006
1006
|
children: r
|
|
1007
1007
|
}), zi = e.forwardRef(({ active: e, isDisabled: t, badgeTitle: n, badgeDot: r, loading: i, width: a, trigger: o, label: s, title: c, onClickTrigger: l, colored: u, small: d, isNested: f, contextMenu: p, component: m, groupOrder: h, fullHeight: g, isOpen: _, error: y, warning: b, tooltip: x, testId: S, selected: C, tabIndex: w }, T) => {
|
|
1008
|
-
let E = o ===
|
|
1008
|
+
let E = o === Cr.BUTTON || o === Cr.DROP_DOWN_BUTTON ? /* @__PURE__ */ v(Fi, {
|
|
1009
1009
|
trigger: o,
|
|
1010
1010
|
label: s == null ? "" : s,
|
|
1011
1011
|
colored: u,
|
|
@@ -1018,14 +1018,14 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1018
1018
|
warning: b,
|
|
1019
1019
|
active: _ || e,
|
|
1020
1020
|
tabIndex: w
|
|
1021
|
-
}) : o ===
|
|
1021
|
+
}) : o === Cr.TEXT ? /* @__PURE__ */ v(Ii, {
|
|
1022
1022
|
label: s == null ? "" : s,
|
|
1023
1023
|
title: c,
|
|
1024
1024
|
disabled: t,
|
|
1025
1025
|
carat: p ? void 0 : f ? Si.RIGHT : Si.DOWN,
|
|
1026
1026
|
isOpen: _,
|
|
1027
1027
|
selected: C
|
|
1028
|
-
}) : o ===
|
|
1028
|
+
}) : o === Cr.COMPONENT ? /* @__PURE__ */ v(Li, {
|
|
1029
1029
|
component: m,
|
|
1030
1030
|
disabled: t
|
|
1031
1031
|
}) : null, D = !f && (n || r) ? /* @__PURE__ */ v(Pi, {
|
|
@@ -1058,7 +1058,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1058
1058
|
let { sections: t } = e;
|
|
1059
1059
|
return !i(t) && (!Array.isArray(t) || t.every((e) => rn(e)));
|
|
1060
1060
|
}, Vi = ({ sections: e, width: t, placement: n, possiblePlacements: r, closeOnOptionClick: i, closeParent: a, tree: o, path: s, overflowContainer: c, maxHeight: l, testId: u }) => {
|
|
1061
|
-
let { clientPoint: d, hasClientPoint: f, resetClientPoint: p, handleMouseEvent: m } =
|
|
1061
|
+
let { clientPoint: d, hasClientPoint: f, resetClientPoint: p, handleMouseEvent: m } = ti(), h = p, g = f, { layerProps: _, renderLayer: y, triggerProps: b } = ei({
|
|
1062
1062
|
isOpen: g,
|
|
1063
1063
|
clientPoint: {
|
|
1064
1064
|
enabled: f,
|
|
@@ -1088,7 +1088,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1088
1088
|
onContextMenu: m
|
|
1089
1089
|
}];
|
|
1090
1090
|
}, Hi = ({ menu: e, width: t, disabled: n = !1, closeOnOptionClick: r = !0, closeParent: i, tree: a, path: o, groupOrder: c, testId: l }) => {
|
|
1091
|
-
let u = s(
|
|
1091
|
+
let u = s(H), { label: d, trigger: f, fullHeightTrigger: p, colored: m, small: h, component: g, placement: _, possiblePlacements: b = ["bottom-start", "top-start"] } = e, [x, S] = Vi({
|
|
1092
1092
|
sections: e.sections,
|
|
1093
1093
|
width: t,
|
|
1094
1094
|
placement: _,
|
|
@@ -1121,7 +1121,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1121
1121
|
}), x]
|
|
1122
1122
|
});
|
|
1123
1123
|
}, Ui = ({ menu: e, width: t, disabled: n = !1, badgeTitle: r, badgeDot: i = !1, loading: a = !1, isNested: o = !1, closeOnOptionClick: c = !0, closeParent: l, tree: u, path: d, groupOrder: f, overflowContainer: h = !0, maxHeight: g, testId: b, open: x, setOpen: S, tooltip: C, error: w, warning: T, selected: E, tabIndex: D, active: O }) => {
|
|
1124
|
-
let k = s(
|
|
1124
|
+
let k = s(H), A = p(null), { label: j, title: M, trigger: N, fullHeightTrigger: P, colored: F, small: I, sections: ee, component: L, placement: te, showAllButton: ne, possiblePlacements: re = ["bottom-start", "top-start"] } = e, [ie, ae] = nn(x) && on(S) ? [x, S] : m(!1), R = () => ae(!1), oe = () => ae(!0), { triggerProps: se, layerProps: ce, renderLayer: le } = ei({
|
|
1125
1125
|
isOpen: ie,
|
|
1126
1126
|
...Ai(te, o),
|
|
1127
1127
|
possiblePlacements: re,
|
|
@@ -1192,7 +1192,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1192
1192
|
})
|
|
1193
1193
|
})) })
|
|
1194
1194
|
})] });
|
|
1195
|
-
}, Wi = (e) => /* @__PURE__ */ v(
|
|
1195
|
+
}, Wi = (e) => /* @__PURE__ */ v(Yr, { children: /* @__PURE__ */ v(Ui, { ...e }) }), Gi = (e) => e.contextMenu ? /* @__PURE__ */ v(Hi, {
|
|
1196
1196
|
...e,
|
|
1197
1197
|
tree: {},
|
|
1198
1198
|
path: "",
|
|
@@ -1202,18 +1202,18 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1202
1202
|
tree: {},
|
|
1203
1203
|
path: "",
|
|
1204
1204
|
testId: e.testId
|
|
1205
|
-
}), Ki = (e) => /* @__PURE__ */ v(
|
|
1205
|
+
}), Ki = (e) => /* @__PURE__ */ v(Yr, { children: /* @__PURE__ */ v(Gi, { ...e }) }), qi = (e) => {
|
|
1206
1206
|
let { subActions: t, subMenuIcon: n, primary: r, testId: i, tooltip: a } = e, o = /* @__PURE__ */ v(K, {
|
|
1207
|
-
colored: r ? !0 :
|
|
1207
|
+
colored: r ? !0 : wr.MUTED,
|
|
1208
1208
|
basic: !r,
|
|
1209
1209
|
round: !0,
|
|
1210
1210
|
small: !0,
|
|
1211
|
-
icon: n ||
|
|
1211
|
+
icon: n || V.MENU,
|
|
1212
1212
|
testId: i,
|
|
1213
1213
|
tooltip: a
|
|
1214
1214
|
});
|
|
1215
1215
|
return t.length ? /* @__PURE__ */ v(Ki, { menu: {
|
|
1216
|
-
trigger:
|
|
1216
|
+
trigger: Cr.COMPONENT,
|
|
1217
1217
|
component: o,
|
|
1218
1218
|
sections: t.map((e) => {
|
|
1219
1219
|
var t;
|
|
@@ -1231,7 +1231,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1231
1231
|
})
|
|
1232
1232
|
} }) : null;
|
|
1233
1233
|
}, Ji = (t) => {
|
|
1234
|
-
let n = s(
|
|
1234
|
+
let n = s(H), { actions: r = [], closeLayer: i } = t;
|
|
1235
1235
|
return /* @__PURE__ */ v("div", {
|
|
1236
1236
|
className: g(_i.actions),
|
|
1237
1237
|
children: r.map((t, r) => {
|
|
@@ -1271,7 +1271,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1271
1271
|
}, Xi = /* @__PURE__ */ function(e) {
|
|
1272
1272
|
return e.LABEL = "label", e.LINK = "link", e.CUSTOM = "custom", e;
|
|
1273
1273
|
}({}), Zi = ({ type: e = Xi.LABEL, label: t, url: n, onClick: r, active: a, disabled: o, element: c }) => {
|
|
1274
|
-
let l = s(
|
|
1274
|
+
let l = s(H), u = e === Xi.LINK && n !== void 0, d = e === Xi.CUSTOM && i(c);
|
|
1275
1275
|
return /* @__PURE__ */ v("span", {
|
|
1276
1276
|
onClick: r,
|
|
1277
1277
|
className: g(Yi.labelContainer, a && Yi.active, (o || l) && Yi.disabled),
|
|
@@ -1301,7 +1301,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1301
1301
|
label: "_label_iu2wi_1",
|
|
1302
1302
|
buttonGroup: "_buttonGroup_iu2wi_11"
|
|
1303
1303
|
}, ea = (e) => {
|
|
1304
|
-
let { basic: t = !1, items: n = [], header: r = "", onSelected: i = () => {}, small: a = !1, value: o = "", testId: c = void 0, disabled: l } = e, u = s(
|
|
1304
|
+
let { basic: t = !1, items: n = [], header: r = "", onSelected: i = () => {}, small: a = !1, value: o = "", testId: c = void 0, disabled: l } = e, u = s(H), d = (e, t, n, r, a) => {
|
|
1305
1305
|
e.preventDefault(), e.stopPropagation(), !(l || a || u) && i(t, n, r);
|
|
1306
1306
|
}, f = (e, t) => t === "string" ? e : t === "object" ? e.label : t === "array" ? e[1] : null, p = (e, t) => {
|
|
1307
1307
|
var n, r;
|
|
@@ -1316,8 +1316,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1316
1316
|
className: $i.buttonGroup,
|
|
1317
1317
|
"data-testid": c,
|
|
1318
1318
|
children: n.map((e, r) => {
|
|
1319
|
-
let i = ji(e), o = r === 0 ?
|
|
1320
|
-
return y ? null : /* @__PURE__ */ v(
|
|
1319
|
+
let i = ji(e), o = r === 0 ? B.FIRST : r === n.length - 1 ? B.LAST : B.MIDDLE, s = f(e, i), c = p(e, i), u = m(e, i, c), y = h(e, i), b = g(e, i), x = _(i, u, c), { error: S, maxTooltipWidth: C, testId: w, tooltip: T, warning: E } = e;
|
|
1320
|
+
return y ? null : /* @__PURE__ */ v(W, {
|
|
1321
1321
|
error: !!S,
|
|
1322
1322
|
warning: !!E,
|
|
1323
1323
|
text: T || S || E,
|
|
@@ -1365,7 +1365,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1365
1365
|
fullWidthStyleFix: "_fullWidthStyleFix_rwod1_17",
|
|
1366
1366
|
dismiss: "_dismiss_rwod1_22"
|
|
1367
1367
|
}, ia = ({ children: t, content: n, placement: r = "top-center", closeOnOutsideClick: i = !0, fullWidth: a = !1, showCloseButton: o = !1, testId: l, disabled: u = !1, overflowContainer: d = !1, isOpen: f, onToggle: h }) => {
|
|
1368
|
-
let b = s(
|
|
1368
|
+
let b = s(H), x = p(null), [S, C] = f === void 0 ? m(!1) : [f, h], w = () => {
|
|
1369
1369
|
!u && !b && C && C(!1);
|
|
1370
1370
|
}, T = () => {
|
|
1371
1371
|
u || b || C && C(!S);
|
|
@@ -1373,7 +1373,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1373
1373
|
c(() => {
|
|
1374
1374
|
(u || b) && w();
|
|
1375
1375
|
}, [u, b]);
|
|
1376
|
-
let { renderLayer: E, arrowProps: D, layerProps: O, triggerProps: k } =
|
|
1376
|
+
let { renderLayer: E, arrowProps: D, layerProps: O, triggerProps: k } = ei({
|
|
1377
1377
|
isOpen: S,
|
|
1378
1378
|
placement: r,
|
|
1379
1379
|
triggerOffset: 6,
|
|
@@ -1404,7 +1404,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1404
1404
|
small: !0,
|
|
1405
1405
|
round: !0,
|
|
1406
1406
|
onClick: w,
|
|
1407
|
-
icon:
|
|
1407
|
+
icon: V.CLOSE
|
|
1408
1408
|
})
|
|
1409
1409
|
})] }), D.context && /* @__PURE__ */ v(Mt, {
|
|
1410
1410
|
context: D.context,
|
|
@@ -1418,7 +1418,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1418
1418
|
})]
|
|
1419
1419
|
})) })
|
|
1420
1420
|
})] });
|
|
1421
|
-
}, aa = (e) => /* @__PURE__ */ v(
|
|
1421
|
+
}, aa = (e) => /* @__PURE__ */ v(Yr, { children: /* @__PURE__ */ v(ia, { ...e }) }), oa = {
|
|
1422
1422
|
colorInput: "_colorInput_1j7vk_1",
|
|
1423
1423
|
trigger: "_trigger_1j7vk_8",
|
|
1424
1424
|
buttonColor: "_buttonColor_1j7vk_12",
|
|
@@ -1528,11 +1528,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1528
1528
|
children: e
|
|
1529
1529
|
}), ga = (e) => {
|
|
1530
1530
|
switch (e) {
|
|
1531
|
-
case
|
|
1532
|
-
case
|
|
1531
|
+
case Tr.LEFT: return pa.alignLeft;
|
|
1532
|
+
case Tr.RIGHT: return pa.alignRight;
|
|
1533
1533
|
default: return "";
|
|
1534
1534
|
}
|
|
1535
|
-
}, _a = ({ children: e, margin: t = "var(--padding)", color: n = "var(--color-border)", align: r =
|
|
1535
|
+
}, _a = ({ children: e, margin: t = "var(--padding)", color: n = "var(--color-border)", align: r = Tr.CENTER }) => /* @__PURE__ */ v("div", {
|
|
1536
1536
|
className: `${pa.divider} ${ga(r)}`,
|
|
1537
1537
|
style: {
|
|
1538
1538
|
marginTop: t,
|
|
@@ -1558,18 +1558,18 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1558
1558
|
children: [e, /* @__PURE__ */ y("div", {
|
|
1559
1559
|
className: va.icons,
|
|
1560
1560
|
children: [
|
|
1561
|
-
a && /* @__PURE__ */ v(
|
|
1561
|
+
a && /* @__PURE__ */ v(si, {
|
|
1562
1562
|
onClick: i,
|
|
1563
1563
|
icon: a
|
|
1564
1564
|
}),
|
|
1565
|
-
d && /* @__PURE__ */ v(
|
|
1565
|
+
d && /* @__PURE__ */ v(si, {
|
|
1566
1566
|
text: t,
|
|
1567
1567
|
onClick: r
|
|
1568
1568
|
}),
|
|
1569
|
-
o && /* @__PURE__ */ v(
|
|
1569
|
+
o && /* @__PURE__ */ v(si, {
|
|
1570
1570
|
text: (u = o == null ? void 0 : o.tooltip) == null ? "" : u,
|
|
1571
1571
|
onClick: o.onClick,
|
|
1572
|
-
icon:
|
|
1572
|
+
icon: V.LIBRARY
|
|
1573
1573
|
})
|
|
1574
1574
|
]
|
|
1575
1575
|
})]
|
|
@@ -1610,7 +1610,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1610
1610
|
})] }), l ? /* @__PURE__ */ v("div", {
|
|
1611
1611
|
className: ba.dismiss,
|
|
1612
1612
|
children: /* @__PURE__ */ v(K, {
|
|
1613
|
-
icon:
|
|
1613
|
+
icon: V.CLOSE,
|
|
1614
1614
|
round: !0,
|
|
1615
1615
|
basic: !0,
|
|
1616
1616
|
small: !0,
|
|
@@ -1695,12 +1695,12 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1695
1695
|
ref: t,
|
|
1696
1696
|
className: Ca.resizeHandle,
|
|
1697
1697
|
...r,
|
|
1698
|
-
children: /* @__PURE__ */ v(
|
|
1698
|
+
children: /* @__PURE__ */ v(U, { icon: V.DRAG })
|
|
1699
1699
|
});
|
|
1700
|
-
}), Da =
|
|
1700
|
+
}), Da = vn, Oa = ({ children: e = null, width: t = 400, right: n = !1, onResize: r, setOpen: i, maxOpenWidth: a }) => {
|
|
1701
1701
|
let [o, s] = m(!1), c = a == null ? window.innerWidth / 2 : a;
|
|
1702
1702
|
return r ? /* @__PURE__ */ v(Da, {
|
|
1703
|
-
width:
|
|
1703
|
+
width: gn(t),
|
|
1704
1704
|
height: 100,
|
|
1705
1705
|
minConstraints: [35, Infinity],
|
|
1706
1706
|
maxConstraints: [c, Infinity],
|
|
@@ -1719,7 +1719,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1719
1719
|
},
|
|
1720
1720
|
children: e
|
|
1721
1721
|
}) : /* @__PURE__ */ v(_, { children: e });
|
|
1722
|
-
}, ka = ({ background: e = "var(--color-background-raised)", fixed: t = !1, open: n = !1, setOpen: r, right: a = !1, width: o = 400, closedWidth: s = 0, shadow: c = !1, top: l = 0, button: u = null, buttonAnimate: d = !0, buttonPosition: f =
|
|
1722
|
+
}, ka = ({ background: e = "var(--color-background-raised)", fixed: t = !1, open: n = !1, setOpen: r, right: a = !1, width: o = 400, closedWidth: s = 0, shadow: c = !1, top: l = 0, button: u = null, buttonAnimate: d = !0, buttonPosition: f = Er.BOTTOM, border: p = !1, children: h = null, tabs: _, defaultTabIndex: b = 0, activeTab: x, setActiveTab: S, testId: C, onResize: w, getActiveTab: T, onClose: E, onOpen: D, maxOpenWidth: O }) => {
|
|
1723
1723
|
let k = u === !0, A = !k && i(u), [j, M] = r ? [n, r] : k || _ ? m(n) : [n, () => {}], [N, P] = m(b), F = r ? n : j, I = r || M, ee = S === void 0 ? N : x, L = S || P, te = Array.isArray(o) ? o[ee || 0] : o, ne = F ? te : _ ? 35 : s;
|
|
1724
1724
|
return /* @__PURE__ */ v(Oa, {
|
|
1725
1725
|
width: ne,
|
|
@@ -1766,14 +1766,14 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1766
1766
|
children: A ? u : /* @__PURE__ */ v(K, {
|
|
1767
1767
|
onClick: I ? () => I(!F) : void 0,
|
|
1768
1768
|
round: !0,
|
|
1769
|
-
icon: a ?
|
|
1769
|
+
icon: a ? V.CHEVRON_RIGHT : V.CHEVRON_LEFT
|
|
1770
1770
|
})
|
|
1771
1771
|
})]
|
|
1772
1772
|
})
|
|
1773
1773
|
});
|
|
1774
1774
|
}, Aa = { inputGroup: "_inputGroup_biuoa_1" }, ja = (e) => i(e) && typeof e.type == "string", Ma = ({ children: n, small: r = !1, width: a = "100%" }) => {
|
|
1775
1775
|
let o = Array.isArray(n) ? n.filter((e) => i(e)) : [n], s = o.map((n, i) => {
|
|
1776
|
-
let a = ja(n), { groupOrder: s } = a ? { groupOrder: null } : n.props, c = o.length, l = i === 0, u = i === c - 1, d = s || (!c || c === 1 ? null : l ?
|
|
1776
|
+
let a = ja(n), { groupOrder: s } = a ? { groupOrder: null } : n.props, c = o.length, l = i === 0, u = i === c - 1, d = s || (!c || c === 1 ? null : l ? B.FIRST : u ? B.LAST : B.MIDDLE);
|
|
1777
1777
|
return a ? n : /* @__PURE__ */ v(t, { children: e.cloneElement(n, {
|
|
1778
1778
|
groupOrder: d,
|
|
1779
1779
|
small: r
|
|
@@ -1799,11 +1799,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1799
1799
|
groupOrderFirst: "_groupOrderFirst_b8kpk_173",
|
|
1800
1800
|
groupOrderMiddle: "_groupOrderMiddle_b8kpk_174",
|
|
1801
1801
|
groupOrderLast: "_groupOrderLast_b8kpk_178"
|
|
1802
|
-
}, Pa = r(({ error: e = null, tooltip: t = null, isInTable: n, width: r = void 0, small: i = !1, onChange: a =
|
|
1803
|
-
let O = s(
|
|
1802
|
+
}, Pa = r(({ error: e = null, tooltip: t = null, isInTable: n, width: r = void 0, small: i = !1, onChange: a = pn, placeholder: o = "", value: c = "", onKeyPress: l = () => {}, onFocus: u = () => {}, onBlur: d = () => {}, onPaste: f = () => {}, onKeyDown: p = () => {}, selectOnFocus: m = !0, name: h = void 0, type: _ = "text", tabIndex: y = 0, disabled: b = !1, right: x = !1, warning: S = null, groupOrder: C = null, maxTooltipWidth: w = void 0, testId: T = void 0, size: E = null }, D) => {
|
|
1803
|
+
let O = s(H), k = (() => {
|
|
1804
1804
|
if (C) switch (C) {
|
|
1805
|
-
case
|
|
1806
|
-
case
|
|
1805
|
+
case B.FIRST: return Na.groupOrderFirst;
|
|
1806
|
+
case B.LAST: return Na.groupOrderLast;
|
|
1807
1807
|
default: return Na.groupOrderMiddle;
|
|
1808
1808
|
}
|
|
1809
1809
|
return "";
|
|
@@ -1811,7 +1811,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1811
1811
|
return /* @__PURE__ */ v("div", {
|
|
1812
1812
|
style: { width: A },
|
|
1813
1813
|
className: k,
|
|
1814
|
-
children: /* @__PURE__ */ v(
|
|
1814
|
+
children: /* @__PURE__ */ v(W, {
|
|
1815
1815
|
error: !!e,
|
|
1816
1816
|
warning: !!S,
|
|
1817
1817
|
text: t || e || S,
|
|
@@ -1868,8 +1868,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1868
1868
|
n = `Selected - ${(r = Object.keys(e)) == null ? void 0 : r.length} files`;
|
|
1869
1869
|
} else n = e == null ? void 0 : e.name;
|
|
1870
1870
|
return n || null;
|
|
1871
|
-
}, za = ({ label: e = "Select", loading: t = !1, placeholder: n = "No file selected", disabled: r = !1, file: i, accept: a, multi: o, name: c, width: l, onChange: u =
|
|
1872
|
-
let f = s(
|
|
1871
|
+
}, za = ({ label: e = "Select", loading: t = !1, placeholder: n = "No file selected", disabled: r = !1, file: i, accept: a, multi: o, name: c, width: l, onChange: u = pn, testId: d }) => {
|
|
1872
|
+
let f = s(H), m = p(null), h = Ra(i, o);
|
|
1873
1873
|
return /* @__PURE__ */ y("div", {
|
|
1874
1874
|
onClick: () => {
|
|
1875
1875
|
var e;
|
|
@@ -1927,7 +1927,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
1927
1927
|
let n = document.querySelector(`#${e}`), [r, i] = m(!1);
|
|
1928
1928
|
return u(() => {
|
|
1929
1929
|
r || i(!0);
|
|
1930
|
-
}, [e]), n ?
|
|
1930
|
+
}, [e]), n ? yn(t, n) : null;
|
|
1931
1931
|
}, Ua = {
|
|
1932
1932
|
wrapper: "_wrapper_1sv3a_1",
|
|
1933
1933
|
enter: "_enter_1sv3a_15",
|
|
@@ -2065,7 +2065,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
2065
2065
|
testId: `${g}-file-input`,
|
|
2066
2066
|
accept: "image/*"
|
|
2067
2067
|
}),
|
|
2068
|
-
S && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Ba, {}), /* @__PURE__ */ v(Ya, { percentage:
|
|
2068
|
+
S && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Ba, {}), /* @__PURE__ */ v(Ya, { percentage: In(100 * w / Za, 3) })] })
|
|
2069
2069
|
] }), P = /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(K, {
|
|
2070
2070
|
label: p || "Upload",
|
|
2071
2071
|
colored: !0,
|
|
@@ -2176,8 +2176,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
2176
2176
|
return e.TOGGLE_DETAILS = "TOGGLE_DETAILS", e;
|
|
2177
2177
|
}({}), co = ({ type: e, onClose: t, isInToast: n, testId: r }) => /* @__PURE__ */ v("div", {
|
|
2178
2178
|
className: g(ao.dismiss, n ? ao.absolute : "", e === oo.INFO ? ao.info : e === oo.SUCCESS ? ao.success : e === oo.WARNING ? ao.warning : e === oo.ERROR ? ao.error : null),
|
|
2179
|
-
children: /* @__PURE__ */ v(
|
|
2180
|
-
icon:
|
|
2179
|
+
children: /* @__PURE__ */ v(U, {
|
|
2180
|
+
icon: V.CLOSE,
|
|
2181
2181
|
onClick: t,
|
|
2182
2182
|
testId: r
|
|
2183
2183
|
})
|
|
@@ -2193,7 +2193,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
2193
2193
|
className: g(ao.legendToggle),
|
|
2194
2194
|
onClick: n,
|
|
2195
2195
|
children: t ? "Hide details" : "Show details"
|
|
2196
|
-
}), /* @__PURE__ */ v(
|
|
2196
|
+
}), /* @__PURE__ */ v(Wr, {
|
|
2197
2197
|
expanded: t,
|
|
2198
2198
|
children: /* @__PURE__ */ v("div", {
|
|
2199
2199
|
className: ao.detailsText,
|
|
@@ -2201,20 +2201,20 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
2201
2201
|
})
|
|
2202
2202
|
})] }), fo = ({ type: e }) => {
|
|
2203
2203
|
switch (e) {
|
|
2204
|
-
case oo.SUCCESS: return /* @__PURE__ */ v(
|
|
2205
|
-
icon:
|
|
2204
|
+
case oo.SUCCESS: return /* @__PURE__ */ v(U, {
|
|
2205
|
+
icon: V.SUCCESS,
|
|
2206
2206
|
size: 16
|
|
2207
2207
|
});
|
|
2208
|
-
case oo.WARNING: return /* @__PURE__ */ v(
|
|
2209
|
-
icon:
|
|
2208
|
+
case oo.WARNING: return /* @__PURE__ */ v(U, {
|
|
2209
|
+
icon: V.WARNING,
|
|
2210
2210
|
size: 16
|
|
2211
2211
|
});
|
|
2212
|
-
case oo.ERROR: return /* @__PURE__ */ v(
|
|
2213
|
-
icon:
|
|
2212
|
+
case oo.ERROR: return /* @__PURE__ */ v(U, {
|
|
2213
|
+
icon: V.ERROR,
|
|
2214
2214
|
size: 16
|
|
2215
2215
|
});
|
|
2216
|
-
default: return /* @__PURE__ */ v(
|
|
2217
|
-
icon:
|
|
2216
|
+
default: return /* @__PURE__ */ v(U, {
|
|
2217
|
+
icon: V.INFO,
|
|
2218
2218
|
size: 16
|
|
2219
2219
|
});
|
|
2220
2220
|
}
|
|
@@ -2303,8 +2303,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
2303
2303
|
groupOrderFirst: "_groupOrderFirst_sl2b5_193",
|
|
2304
2304
|
groupOrderMiddle: "_groupOrderMiddle_sl2b5_194",
|
|
2305
2305
|
groupOrderLast: "_groupOrderLast_sl2b5_198"
|
|
2306
|
-
}, yo = ({ disabled: e = !1, error: t = null, warning: n = null, tooltip: r = null, options: i, onChange: a =
|
|
2307
|
-
let w = s(
|
|
2306
|
+
}, yo = ({ disabled: e = !1, error: t = null, warning: n = null, tooltip: r = null, options: i, onChange: a = pn, onFocus: o = pn, onBlur: c = pn, right: l = !1, small: u = !1, tabIndex: d = 0, selectedOption: f, width: p = null, groupOrder: m, testId: h, isInTable: _ = !1, clearable: y, placeholder: b, hasNonExistentValue: x, maxTooltipWidth: S, borderRadius: C }) => {
|
|
2307
|
+
let w = s(H), T = f === null || (f == null ? void 0 : f.value) === null ? "unselected" : f == null ? void 0 : f.value, E = T === "unselected", D = (T === "unselected" || y ? [/* @__PURE__ */ v("option", {
|
|
2308
2308
|
value: "unselected",
|
|
2309
2309
|
disabled: !y,
|
|
2310
2310
|
hidden: !y,
|
|
@@ -2319,13 +2319,13 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
2319
2319
|
children: e.label
|
|
2320
2320
|
}, t))), O = (() => {
|
|
2321
2321
|
if (m) switch (m) {
|
|
2322
|
-
case
|
|
2323
|
-
case
|
|
2322
|
+
case B.FIRST: return vo.groupOrderFirst;
|
|
2323
|
+
case B.LAST: return vo.groupOrderLast;
|
|
2324
2324
|
default: return vo.groupOrderMiddle;
|
|
2325
2325
|
}
|
|
2326
2326
|
return "";
|
|
2327
2327
|
})();
|
|
2328
|
-
return /* @__PURE__ */ v(
|
|
2328
|
+
return /* @__PURE__ */ v(W, {
|
|
2329
2329
|
error: !!t,
|
|
2330
2330
|
warning: !!n,
|
|
2331
2331
|
text: r || t || n,
|
|
@@ -2439,11 +2439,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
2439
2439
|
}),
|
|
2440
2440
|
/* @__PURE__ */ v("span", {
|
|
2441
2441
|
className: wo.check,
|
|
2442
|
-
children: i ? /* @__PURE__ */ v(
|
|
2442
|
+
children: i ? /* @__PURE__ */ v(U, { icon: V.CHECK }) : null
|
|
2443
2443
|
})
|
|
2444
2444
|
]
|
|
2445
2445
|
}), Wo = ({ section: e, selected: t, focused: n, onSelectOption: r, closeLayer: i }) => {
|
|
2446
|
-
let a = s(
|
|
2446
|
+
let a = s(H);
|
|
2447
2447
|
switch (e.type) {
|
|
2448
2448
|
case xi.HEADING: return /* @__PURE__ */ v(Ho, { label: e.label });
|
|
2449
2449
|
case xi.OPTION:
|
|
@@ -2488,7 +2488,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
2488
2488
|
return /* @__PURE__ */ v("div", {
|
|
2489
2489
|
"data-testid": u,
|
|
2490
2490
|
className: g(wo.layer, c && wo.small),
|
|
2491
|
-
children: n.length ? /* @__PURE__ */ v(
|
|
2491
|
+
children: n.length ? /* @__PURE__ */ v(qn, {
|
|
2492
2492
|
listRef: d,
|
|
2493
2493
|
rowComponent: qo,
|
|
2494
2494
|
rowCount: n.length,
|
|
@@ -2561,7 +2561,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
2561
2561
|
e.stopPropagation();
|
|
2562
2562
|
},
|
|
2563
2563
|
children: e.label
|
|
2564
|
-
}, t)), s.length > 0 && /* @__PURE__ */ v(
|
|
2564
|
+
}, t)), s.length > 0 && /* @__PURE__ */ v(W, {
|
|
2565
2565
|
text: s.map((e, t) => /* @__PURE__ */ v("div", { children: e.label }, t)),
|
|
2566
2566
|
display: "inline-flex",
|
|
2567
2567
|
children: /* @__PURE__ */ v("span", {
|
|
@@ -2570,7 +2570,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
2570
2570
|
})
|
|
2571
2571
|
})]
|
|
2572
2572
|
});
|
|
2573
|
-
}, Xo = ({ selectedOptions: e, searchable: t = !1, searchValue: n, onChange: r =
|
|
2573
|
+
}, Xo = ({ selectedOptions: e, searchable: t = !1, searchValue: n, onChange: r = pn, inputRef: i, error: a, placeholder: o = "Select...", small: s, testId: c }) => {
|
|
2574
2574
|
let l = p(null), u = Array.isArray(e), d = u ? e.length > 0 : !!e, f = n ? n.length + 1 : 1;
|
|
2575
2575
|
return /* @__PURE__ */ y("div", {
|
|
2576
2576
|
className: Y.triggerInputContainer,
|
|
@@ -2605,8 +2605,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
2605
2605
|
var k;
|
|
2606
2606
|
let [A, j] = bo(), M = Array.isArray(e) ? e.length > 0 && ((k = e[0]) == null ? void 0 : k.value) : e == null ? void 0 : e.value, N = r && M, P = (() => {
|
|
2607
2607
|
if (w) switch (w) {
|
|
2608
|
-
case
|
|
2609
|
-
case
|
|
2608
|
+
case B.FIRST: return Y.groupOrderFirst;
|
|
2609
|
+
case B.LAST: return Y.groupOrderLast;
|
|
2610
2610
|
default: return Y.groupOrderMiddle;
|
|
2611
2611
|
}
|
|
2612
2612
|
return "";
|
|
@@ -2651,14 +2651,14 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
2651
2651
|
e.stopPropagation(), p && p(e);
|
|
2652
2652
|
},
|
|
2653
2653
|
"data-testid": O && `${O}-clear`,
|
|
2654
|
-
children: /* @__PURE__ */ v(
|
|
2654
|
+
children: /* @__PURE__ */ v(U, { icon: V.CLOSE })
|
|
2655
2655
|
}) : /* @__PURE__ */ v("span", {
|
|
2656
2656
|
className: g(Y.iconOpen),
|
|
2657
|
-
children: /* @__PURE__ */ v(
|
|
2657
|
+
children: /* @__PURE__ */ v(U, { icon: "chevron down" })
|
|
2658
2658
|
})
|
|
2659
2659
|
})]
|
|
2660
2660
|
})] });
|
|
2661
|
-
return /* @__PURE__ */ v(_, { children: /* @__PURE__ */ v(
|
|
2661
|
+
return /* @__PURE__ */ v(_, { children: /* @__PURE__ */ v(W, {
|
|
2662
2662
|
error: !!o,
|
|
2663
2663
|
warning: !!s,
|
|
2664
2664
|
text: c || o || s,
|
|
@@ -2787,7 +2787,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
2787
2787
|
options: n
|
|
2788
2788
|
}), r();
|
|
2789
2789
|
}
|
|
2790
|
-
}, T = o(() => d ? d === "auto" ? Bo(n, f, m, h) : d : "100%", [n, m]), E = o((e) => y ? Math.max(Bo(n, f, m, h), e == null ? void 0 : e.width) : e == null ? void 0 : e.width, [n, m]), { renderLayer: D, layerProps: O, triggerProps: k, triggerBounds: A } =
|
|
2790
|
+
}, T = o(() => d ? d === "auto" ? Bo(n, f, m, h) : d : "100%", [n, m]), E = o((e) => y ? Math.max(Bo(n, f, m, h), e == null ? void 0 : e.width) : e == null ? void 0 : e.width, [n, m]), { renderLayer: D, layerProps: O, triggerProps: k, triggerBounds: A } = ei({
|
|
2791
2791
|
isOpen: (b = e == null ? void 0 : e.isLayerOpen) == null ? !1 : b,
|
|
2792
2792
|
matchReferenceWidth: !0,
|
|
2793
2793
|
overflowContainer: !0,
|
|
@@ -2887,7 +2887,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
2887
2887
|
triggerBounds: A
|
|
2888
2888
|
};
|
|
2889
2889
|
}, ds = (e) => {
|
|
2890
|
-
let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: c, onCreate: l = null, placeholder: u = "", small: d = !1, tabIndex: m = 0, onFocus: h = () => {}, onBlur: g = () => {}, searchable: b = !0, clearable: x = !1, maxTooltipWidth: S, closeOnOptionActionClick: C, isInTable: w = !1, groupOrder: T, firstSelectedOptionIndex: E = 0, right: D = !1, testId: O = void 0 } = e, k = s(
|
|
2890
|
+
let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: c, onCreate: l = null, placeholder: u = "", small: d = !1, tabIndex: m = 0, onFocus: h = () => {}, onBlur: g = () => {}, searchable: b = !0, clearable: x = !1, maxTooltipWidth: S, closeOnOptionActionClick: C, isInTable: w = !1, groupOrder: T, firstSelectedOptionIndex: E = 0, right: D = !1, testId: O = void 0 } = e, k = s(H), A = l !== null, j = p(null), M = p(null), [N, P] = bo(), F = xo(), [I, ee] = f(os, {
|
|
2891
2891
|
options: o,
|
|
2892
2892
|
firstSelectedOptionIndex: E
|
|
2893
2893
|
}, ({ options: e }) => ({
|
|
@@ -2971,7 +2971,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
2971
2971
|
})) })
|
|
2972
2972
|
})]
|
|
2973
2973
|
});
|
|
2974
|
-
}, fs = (e) => /* @__PURE__ */ v(
|
|
2974
|
+
}, fs = (e) => /* @__PURE__ */ v(Yr, { children: /* @__PURE__ */ v(ds, { ...e }) }), ps = (e) => e == null || e === "", ms = (e) => /^-?\d+(\.\d+)?$/.test(e.trim()), hs = (e) => e instanceof Array, gs = (e, t) => t && Array.isArray(e) ? e.map((e) => typeof e == "string" || typeof e == "number" ? {
|
|
2975
2975
|
label: e,
|
|
2976
2976
|
value: e
|
|
2977
2977
|
} : e) : e, _s = (e, t) => {
|
|
@@ -3000,7 +3000,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3000
3000
|
hasNonExistentValue: r && l !== void 0 ? xs(s, l) : !1
|
|
3001
3001
|
};
|
|
3002
3002
|
}, Cs = (e) => {
|
|
3003
|
-
let { name: t = "", options: n = [], value: r, native: i = !1, onChange: a =
|
|
3003
|
+
let { name: t = "", options: n = [], value: r, native: i = !1, onChange: a = pn, deprecatedEventHandler: o = !1, autoScroll: s = !0, warning: c, error: l, checkNonExistentValues: u = !0, closeOnOptionActionClick: d = !0, testId: f, disabled: p } = e, { multi: m, simpleInputs: h, options: g, selectedOptions: _, firstSelectedOptionIndex: b, hasNonExistentValue: x } = Ss(n, r, !i && s === !0, u), S = !m, C = i && S;
|
|
3004
3004
|
i && !S && console.warn("Native select does not support provided props (see stories)");
|
|
3005
3005
|
let w = "Value no longer available for re-selection", T = x && !p ? c ? /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("div", { children: w }), /* @__PURE__ */ v("div", { children: c })] }) : w : c, E = x && l && !p ? /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("div", { children: w }), /* @__PURE__ */ v("div", { children: l })] }) : l, D = (e, n) => {
|
|
3006
3006
|
if (o) {
|
|
@@ -3062,8 +3062,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3062
3062
|
}, ks = ({ children: e, groupOrder: t, small: n = !1 }) => {
|
|
3063
3063
|
let r = (() => {
|
|
3064
3064
|
if (t) switch (t) {
|
|
3065
|
-
case
|
|
3066
|
-
case
|
|
3065
|
+
case B.FIRST: return Os.groupOrderFirst;
|
|
3066
|
+
case B.LAST: return Os.groupOrderLast;
|
|
3067
3067
|
default: return Os.groupOrderMiddle;
|
|
3068
3068
|
}
|
|
3069
3069
|
return "";
|
|
@@ -3101,7 +3101,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3101
3101
|
small: r,
|
|
3102
3102
|
round: !0,
|
|
3103
3103
|
basic: !0,
|
|
3104
|
-
icon:
|
|
3104
|
+
icon: V.CHEVRON_DOUBLE_LEFT,
|
|
3105
3105
|
onClick: () => h("1"),
|
|
3106
3106
|
disabled: l || n === 1
|
|
3107
3107
|
}),
|
|
@@ -3109,7 +3109,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3109
3109
|
small: r,
|
|
3110
3110
|
round: !0,
|
|
3111
3111
|
basic: !0,
|
|
3112
|
-
icon:
|
|
3112
|
+
icon: V.CHEVRON_LEFT,
|
|
3113
3113
|
onClick: () => h(String(Number(n) - 1)),
|
|
3114
3114
|
disabled: l || n === 1
|
|
3115
3115
|
}),
|
|
@@ -3130,7 +3130,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3130
3130
|
small: r,
|
|
3131
3131
|
round: !0,
|
|
3132
3132
|
basic: !0,
|
|
3133
|
-
icon:
|
|
3133
|
+
icon: V.CHEVRON_RIGHT,
|
|
3134
3134
|
onClick: () => h(String(Number(n) + 1)),
|
|
3135
3135
|
disabled: l || n === u
|
|
3136
3136
|
}),
|
|
@@ -3138,7 +3138,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3138
3138
|
small: r,
|
|
3139
3139
|
round: !0,
|
|
3140
3140
|
basic: !0,
|
|
3141
|
-
icon:
|
|
3141
|
+
icon: V.CHEVRON_DOUBLE_RIGHT,
|
|
3142
3142
|
onClick: () => h(String(u)),
|
|
3143
3143
|
disabled: l || n === u,
|
|
3144
3144
|
testId: s == null ? void 0 : s.doubleRightBtn
|
|
@@ -3195,10 +3195,10 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3195
3195
|
if (!e) return null;
|
|
3196
3196
|
let { bodyAlignment: r, headerAlignment: i, textAlign: a, isHeader: o } = e;
|
|
3197
3197
|
switch (a || (o && i ? i : r)) {
|
|
3198
|
-
case
|
|
3199
|
-
case
|
|
3200
|
-
case
|
|
3201
|
-
default: return n ?
|
|
3198
|
+
case Tr.LEFT: return n ? Tr.LEFT : t.leftAligned;
|
|
3199
|
+
case Tr.RIGHT: return n ? Tr.RIGHT : t.rightAligned;
|
|
3200
|
+
case Tr.CENTER: return n ? Tr.CENTER : t.centerAligned;
|
|
3201
|
+
default: return n ? Tr.LEFT : t.leftAligned;
|
|
3202
3202
|
}
|
|
3203
3203
|
}, zs = (e, t = !1, n = 0) => {
|
|
3204
3204
|
if (!e || e.length === 0) return [];
|
|
@@ -3253,15 +3253,15 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3253
3253
|
disabled: e.disabled,
|
|
3254
3254
|
isInTable: !0,
|
|
3255
3255
|
maxTooltipWidth: e.maxTooltipWidth,
|
|
3256
|
-
right: t ===
|
|
3256
|
+
right: t === Tr.RIGHT,
|
|
3257
3257
|
selectOnFocus: e.selectOnFocus,
|
|
3258
3258
|
testId: n,
|
|
3259
3259
|
tabIndex: e.disabled ? -1 : 0,
|
|
3260
3260
|
tooltip: e.tooltip,
|
|
3261
3261
|
type: r
|
|
3262
|
-
}), Vs = 14, Hs = (e) => String(
|
|
3262
|
+
}), Vs = 14, Hs = (e) => String(Hn(e)), Us = (e) => jn(e) ? e : Hs(Rn(Vn(e), Vs)), Ws = (e) => e ? typeof e == "string" ? e : tn(e) ? e[0] : e.fieldName : "", Gs = ({ name: e, placeholder: t = "", disabled: n = !1, error: r = !1, left: i = !1, small: a = !1, width: o = "100%", value: s = "", onChange: l = () => {}, onFocus: u = () => {}, onBlur: d = () => {}, selectOnFocus: f = !0, tabIndex: h = 0, testId: g, tooltip: _ = null, warning: y = !1, validationCallback: b = () => {}, allowEmpty: x = !1, isInTable: S, groupOrder: C, enableCosmeticRounding: w = !0, enableDisplayRounding: T = !1, roundDisplayValue: E, disableInternalErrorValidationMessages: D = !1, disableValidationOnFocus: O = !1 }) => {
|
|
3263
3263
|
let k = (e) => {
|
|
3264
|
-
let n =
|
|
3264
|
+
let n = Wn(e), r = t && ps(e);
|
|
3265
3265
|
return [Infinity, -Infinity].includes(Number(e)) || r ? {
|
|
3266
3266
|
valid: !0,
|
|
3267
3267
|
errors: []
|
|
@@ -3277,7 +3277,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3277
3277
|
}, j = p(null), [M, N] = m(A(Hs(s))), [P, F] = m(!1), I = Ws(e), { valid: ee, errors: L } = k(M), te = L && L.length && !D ? L[0] : null;
|
|
3278
3278
|
c(() => {
|
|
3279
3279
|
let e = A(Hs(s));
|
|
3280
|
-
|
|
3280
|
+
Vn(M) !== Vn(e) && N(e);
|
|
3281
3281
|
}, [
|
|
3282
3282
|
s,
|
|
3283
3283
|
w,
|
|
@@ -3291,12 +3291,12 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3291
3291
|
]);
|
|
3292
3292
|
let ne = (e) => {
|
|
3293
3293
|
var n, r;
|
|
3294
|
-
let i = "key" in e ? M : e == null || (n = e.target) == null ? void 0 : n.value, a =
|
|
3294
|
+
let i = "key" in e ? M : e == null || (n = e.target) == null ? void 0 : n.value, a = Cn(i.replaceAll(" ", "").replaceAll("|", ""));
|
|
3295
3295
|
N(a), ((r = k(a)) != null && r.valid || t && ps(i)) && l({
|
|
3296
3296
|
...e,
|
|
3297
3297
|
target: {
|
|
3298
3298
|
...e.target,
|
|
3299
|
-
value:
|
|
3299
|
+
value: Bn(Hs(a)),
|
|
3300
3300
|
name: I
|
|
3301
3301
|
}
|
|
3302
3302
|
});
|
|
@@ -3315,7 +3315,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3315
3315
|
testId: g,
|
|
3316
3316
|
disabled: n,
|
|
3317
3317
|
placeholder: t,
|
|
3318
|
-
value: T && !P && ee ? E ? Hs(E(M)) : ((e) => S ?
|
|
3318
|
+
value: T && !P && ee ? E ? Hs(E(M)) : ((e) => S ? Ln(e, 2) : Fn(e, 4))(s) : M,
|
|
3319
3319
|
onChange: ne,
|
|
3320
3320
|
onFocus: (e) => {
|
|
3321
3321
|
F(!0), u(e);
|
|
@@ -3354,7 +3354,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3354
3354
|
warning: e.warning,
|
|
3355
3355
|
disabled: e.disabled,
|
|
3356
3356
|
isInTable: !0,
|
|
3357
|
-
left: (r = e.left) == null ? t ===
|
|
3357
|
+
left: (r = e.left) == null ? t === Tr.LEFT : r,
|
|
3358
3358
|
selectOnFocus: e.selectOnFocus,
|
|
3359
3359
|
tabIndex: e.disabled ? -1 : 0,
|
|
3360
3360
|
testId: n,
|
|
@@ -3389,7 +3389,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3389
3389
|
width: "100%",
|
|
3390
3390
|
autoLayerWidth: e.autoLayerWidth,
|
|
3391
3391
|
multi: e.multi,
|
|
3392
|
-
right: t ===
|
|
3392
|
+
right: t === Tr.RIGHT,
|
|
3393
3393
|
testId: n,
|
|
3394
3394
|
tabIndex: e.disabled ? -1 : 0
|
|
3395
3395
|
}), Js = ({ cell: e, columnAlignment: t, testId: n }) => /* @__PURE__ */ v("div", {
|
|
@@ -3412,10 +3412,10 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3412
3412
|
testId: n
|
|
3413
3413
|
}) : null
|
|
3414
3414
|
}), Ys = ({ cell: e, testId: t }) => {
|
|
3415
|
-
let n = s(
|
|
3415
|
+
let n = s(H), { error: r, warning: i, tooltip: a, maxTooltipWidth: o } = e, c = (e) => J(e);
|
|
3416
3416
|
return /* @__PURE__ */ v("div", {
|
|
3417
3417
|
className: X.inputWrapper,
|
|
3418
|
-
children: /* @__PURE__ */ v(
|
|
3418
|
+
children: /* @__PURE__ */ v(W, {
|
|
3419
3419
|
error: !!r,
|
|
3420
3420
|
warning: !!i,
|
|
3421
3421
|
text: a || r || i,
|
|
@@ -3439,7 +3439,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3439
3439
|
});
|
|
3440
3440
|
}, Xs = ({ cell: e, testId: t }) => /* @__PURE__ */ v("div", {
|
|
3441
3441
|
className: e.label ? "" : X.standaloneCheckbox,
|
|
3442
|
-
children: /* @__PURE__ */ v(
|
|
3442
|
+
children: /* @__PURE__ */ v(ci, {
|
|
3443
3443
|
label: e.label,
|
|
3444
3444
|
checked: e.checked,
|
|
3445
3445
|
isInTable: !0,
|
|
@@ -3457,19 +3457,19 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3457
3457
|
button: "_button_1vgw8_18",
|
|
3458
3458
|
label: "_label_1vgw8_21",
|
|
3459
3459
|
dot: "_dot_1vgw8_32"
|
|
3460
|
-
}, Qs =
|
|
3460
|
+
}, Qs = $n((e) => e.reduce((e, { label: t, tooltip: n, value: r }) => (e[r] = /* @__PURE__ */ v(W, {
|
|
3461
3461
|
text: /* @__PURE__ */ y(_, { children: [
|
|
3462
3462
|
n,
|
|
3463
3463
|
n ? ": " : "",
|
|
3464
3464
|
t == null ? r : t
|
|
3465
3465
|
] }),
|
|
3466
3466
|
children: /* @__PURE__ */ v("div", { className: Zs.dot })
|
|
3467
|
-
}), e), {}),
|
|
3467
|
+
}), e), {}), er), $s = ({ name: e, label: t, width: n = "100%", labelWidth: r = "auto", value: i, min: a, max: o, step: c = 1, marks: l = [], showArrows: u = !1, showTooltip: d = !1, tooltipFormatter: f = (e) => e, disabled: p = !1, range: m = !1, small: h = !1, vertical: _ = {
|
|
3468
3468
|
enabled: !1,
|
|
3469
3469
|
width: "100px",
|
|
3470
3470
|
height: "400px"
|
|
3471
|
-
}, onChange: b
|
|
3472
|
-
let S = s(
|
|
3471
|
+
}, onChange: b, onChangeComplete: x }) => {
|
|
3472
|
+
let S = s(H), C = Qs(l), w = (n) => ({ target: {
|
|
3473
3473
|
name: e == null ? "" : e,
|
|
3474
3474
|
value: n,
|
|
3475
3475
|
label: typeof t == "string" ? t : String(t)
|
|
@@ -3488,7 +3488,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3488
3488
|
T(e), E(e);
|
|
3489
3489
|
},
|
|
3490
3490
|
disabled: p || i === a || S,
|
|
3491
|
-
icon:
|
|
3491
|
+
icon: V.FAST_BACKWARD
|
|
3492
3492
|
})
|
|
3493
3493
|
}), O = () => /* @__PURE__ */ v("div", {
|
|
3494
3494
|
className: Zs.button,
|
|
@@ -3501,7 +3501,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3501
3501
|
T(e), E(e);
|
|
3502
3502
|
},
|
|
3503
3503
|
disabled: p || i === o || S,
|
|
3504
|
-
icon:
|
|
3504
|
+
icon: V.FAST_FORWARD
|
|
3505
3505
|
})
|
|
3506
3506
|
});
|
|
3507
3507
|
return /* @__PURE__ */ y("div", {
|
|
@@ -3512,7 +3512,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3512
3512
|
} : { width: n },
|
|
3513
3513
|
children: [
|
|
3514
3514
|
u && (_.enabled ? /* @__PURE__ */ v(O, {}) : /* @__PURE__ */ v(D, {})),
|
|
3515
|
-
/* @__PURE__ */ v(
|
|
3515
|
+
/* @__PURE__ */ v(Qn, {
|
|
3516
3516
|
range: m,
|
|
3517
3517
|
allowCross: !1,
|
|
3518
3518
|
className: g((p || S) && Zs.rcSliderDisabled, u && Zs.hasArrows),
|
|
@@ -3527,7 +3527,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3527
3527
|
vertical: _.enabled,
|
|
3528
3528
|
handleRender: (e, t) => /* @__PURE__ */ y("div", {
|
|
3529
3529
|
style: { position: "relative" },
|
|
3530
|
-
children: [e, d && t.dragging && /* @__PURE__ */ v(
|
|
3530
|
+
children: [e, d && t.dragging && /* @__PURE__ */ v(W, {
|
|
3531
3531
|
display: "block",
|
|
3532
3532
|
text: f(i),
|
|
3533
3533
|
forceOpen: !0,
|
|
@@ -3565,19 +3565,19 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3565
3565
|
let { tooltip: t, icon: n } = e;
|
|
3566
3566
|
return /* @__PURE__ */ v("div", {
|
|
3567
3567
|
className: X.iconCellWrapper,
|
|
3568
|
-
children: /* @__PURE__ */ v(
|
|
3568
|
+
children: /* @__PURE__ */ v(W, {
|
|
3569
3569
|
text: t,
|
|
3570
3570
|
enabled: !!t && J(t),
|
|
3571
3571
|
display: "flex",
|
|
3572
3572
|
placement: "top-center",
|
|
3573
|
-
children: /* @__PURE__ */ v(
|
|
3573
|
+
children: /* @__PURE__ */ v(U, { icon: n })
|
|
3574
3574
|
})
|
|
3575
3575
|
});
|
|
3576
3576
|
}, nc = ({ cell: e }) => /* @__PURE__ */ v(Ji, { actions: e.actions }), rc = ({ cell: e }) => {
|
|
3577
3577
|
let { helpIcon: t } = e;
|
|
3578
3578
|
return t ? /* @__PURE__ */ v("div", {
|
|
3579
3579
|
className: X.icon,
|
|
3580
|
-
children: /* @__PURE__ */ v(
|
|
3580
|
+
children: /* @__PURE__ */ v(si, {
|
|
3581
3581
|
onClick: t.onClick,
|
|
3582
3582
|
text: t.tooltip
|
|
3583
3583
|
})
|
|
@@ -3586,10 +3586,10 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3586
3586
|
let { libraryIcon: t } = e;
|
|
3587
3587
|
return t ? /* @__PURE__ */ v("div", {
|
|
3588
3588
|
className: X.icon,
|
|
3589
|
-
children: /* @__PURE__ */ v(
|
|
3589
|
+
children: /* @__PURE__ */ v(si, {
|
|
3590
3590
|
onClick: t.onClick,
|
|
3591
3591
|
text: t.tooltip,
|
|
3592
|
-
icon:
|
|
3592
|
+
icon: V.LIBRARY
|
|
3593
3593
|
})
|
|
3594
3594
|
}) : null;
|
|
3595
3595
|
}, ac = ({ cell: e }) => {
|
|
@@ -3598,13 +3598,13 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3598
3598
|
className: X.sortingCellIcon,
|
|
3599
3599
|
children: [n === "down" ? /* @__PURE__ */ v(ha, {
|
|
3600
3600
|
link: !0,
|
|
3601
|
-
children: /* @__PURE__ */ v(
|
|
3601
|
+
children: /* @__PURE__ */ v(U, { icon: V.SORT_ASCENDING })
|
|
3602
3602
|
}) : n === "up" ? /* @__PURE__ */ v(ha, {
|
|
3603
3603
|
link: !0,
|
|
3604
|
-
children: /* @__PURE__ */ v(
|
|
3604
|
+
children: /* @__PURE__ */ v(U, { icon: V.SORT_DESCENDING })
|
|
3605
3605
|
}) : /* @__PURE__ */ v(ha, {
|
|
3606
3606
|
faint: !0,
|
|
3607
|
-
children: /* @__PURE__ */ v(
|
|
3607
|
+
children: /* @__PURE__ */ v(U, { icon: V.SORT_DESCENDING })
|
|
3608
3608
|
}), r && n ? /* @__PURE__ */ v("sup", { children: r }) : null]
|
|
3609
3609
|
}) : null;
|
|
3610
3610
|
}, oc = ({ cell: e, isHeader: t, testId: n }) => {
|
|
@@ -3622,7 +3622,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3622
3622
|
});
|
|
3623
3623
|
return /* @__PURE__ */ v("div", {
|
|
3624
3624
|
className: X.inputWrapper,
|
|
3625
|
-
children: /* @__PURE__ */ v(
|
|
3625
|
+
children: /* @__PURE__ */ v(W, {
|
|
3626
3626
|
error: !!r,
|
|
3627
3627
|
warning: !!i,
|
|
3628
3628
|
text: a || r || i,
|
|
@@ -3658,7 +3658,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3658
3658
|
disabled: "_disabled_1u1qo_98",
|
|
3659
3659
|
isInTable: "_isInTable_1u1qo_114",
|
|
3660
3660
|
helpIconEnabled: "_helpIconEnabled_1u1qo_119"
|
|
3661
|
-
}, lc = ({ name: e, label: t, value: n, selected: r, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: u, textTransform: d =
|
|
3661
|
+
}, lc = ({ name: e, label: t, value: n, selected: r, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: u, textTransform: d = Dr.CAPITALIZE }) => {
|
|
3662
3662
|
let f = l || u;
|
|
3663
3663
|
return /* @__PURE__ */ y("div", {
|
|
3664
3664
|
className: g(cc.radio, i ? cc.disabled : null, a ? cc.small : null, s ? cc.noMargin : null, t ? null : cc.noLabel),
|
|
@@ -3666,7 +3666,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3666
3666
|
"data-testid": c,
|
|
3667
3667
|
children: [
|
|
3668
3668
|
/* @__PURE__ */ v("input", {
|
|
3669
|
-
type:
|
|
3669
|
+
type: kr.RADIO,
|
|
3670
3670
|
value: n,
|
|
3671
3671
|
checked: r,
|
|
3672
3672
|
onChange: () => {},
|
|
@@ -3681,7 +3681,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3681
3681
|
f && /* @__PURE__ */ v("div", {
|
|
3682
3682
|
className: cc.helpIconEnabled,
|
|
3683
3683
|
onClick: u,
|
|
3684
|
-
children: /* @__PURE__ */ v(
|
|
3684
|
+
children: /* @__PURE__ */ v(si, { text: l })
|
|
3685
3685
|
})
|
|
3686
3686
|
]
|
|
3687
3687
|
});
|
|
@@ -3728,7 +3728,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3728
3728
|
}
|
|
3729
3729
|
}, fc = /* @__PURE__ */ function(e) {
|
|
3730
3730
|
return e.INPUT = "Input", e.NUMBER_INPUT = "NumberInput", e.SELECT = "Select", e.POPOVER = "Popover", e.SLIDER = "Slider", e.CHECKBOX = "CheckBox", e.RADIO = "Radio", e.ACTIONS = "Actions", e.AUTO_UNIT = "AutoUnit", e.UNIT = "Unit", e.STATIC = "Static", e;
|
|
3731
|
-
}({}), pc = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r =
|
|
3731
|
+
}({}), pc = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = Tr.LEFT, width: i, testId: a }) => {
|
|
3732
3732
|
var o;
|
|
3733
3733
|
if (!e) return null;
|
|
3734
3734
|
let { style: s, colSpan: c, rowSpan: l, width: u, textAlign: d } = e, f = p(null), m = {
|
|
@@ -3739,7 +3739,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3739
3739
|
}, h = Rs(m, X), _ = Rs(m, X, !0), y = e.type === fc.INPUT || e.type === fc.NUMBER_INPUT || e.type === fc.SELECT || e.type === fc.POPOVER ? X.inputCell : e.type === fc.SLIDER ? X.sliderCell : e.type === fc.CHECKBOX || e.type === fc.RADIO ? X.checkBoxCell : e.type === fc.ACTIONS ? X.actionsCell : X.staticCell, b = g(X.cell, y, e.hasSort ? X.sortingCell : null, h, e.breakWord ? X.breakWord : ""), x = (o = u == null ? i : u) == null ? void 0 : o, S = e.type === fc.STATIC || !e.type, C = {
|
|
3740
3740
|
width: x,
|
|
3741
3741
|
minWidth: x,
|
|
3742
|
-
textTransform: t && S ?
|
|
3742
|
+
textTransform: t && S ? Dr.CAPITALIZE : void 0,
|
|
3743
3743
|
...s
|
|
3744
3744
|
};
|
|
3745
3745
|
return /* @__PURE__ */ v(t ? "th" : "td", {
|
|
@@ -3750,7 +3750,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3750
3750
|
rowSpan: l,
|
|
3751
3751
|
children: /* @__PURE__ */ v(dc, {
|
|
3752
3752
|
cell: e,
|
|
3753
|
-
columnAlignment: _ == null ?
|
|
3753
|
+
columnAlignment: _ == null ? Tr.RIGHT : _,
|
|
3754
3754
|
isHeader: t,
|
|
3755
3755
|
testId: a
|
|
3756
3756
|
})
|
|
@@ -3772,11 +3772,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3772
3772
|
actions: e.actions
|
|
3773
3773
|
},
|
|
3774
3774
|
isHeader: n
|
|
3775
|
-
}, r), { attributes: O, listeners: k, setNodeRef: A, transform: j, transition: M, isDragging: N } =
|
|
3775
|
+
}, r), { attributes: O, listeners: k, setNodeRef: A, transform: j, transition: M, isDragging: N } = Yn({
|
|
3776
3776
|
id: t.toString(),
|
|
3777
3777
|
animateLayoutChanges: () => !1
|
|
3778
3778
|
}), P = {
|
|
3779
|
-
transform: u ? void 0 :
|
|
3779
|
+
transform: u ? void 0 : Zn.Translate.toString(j),
|
|
3780
3780
|
height: d,
|
|
3781
3781
|
transition: M,
|
|
3782
3782
|
opacity: N ? 0 : void 0
|
|
@@ -3818,7 +3818,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3818
3818
|
className: g(Is.dragIcon, u ? Is.dragIconDisabled : ""),
|
|
3819
3819
|
...O,
|
|
3820
3820
|
...k,
|
|
3821
|
-
children: /* @__PURE__ */ v(
|
|
3821
|
+
children: /* @__PURE__ */ v(U, { icon: V.DRAG })
|
|
3822
3822
|
})
|
|
3823
3823
|
}) : null,
|
|
3824
3824
|
E,
|
|
@@ -3831,8 +3831,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3831
3831
|
}, `${t}_expanded_content`) : null] });
|
|
3832
3832
|
}, hc = (e) => {
|
|
3833
3833
|
let { children: t, colSpan: n, columnAlignment: r, columnCount: i, draggable: a, onListReorder: o = () => {}, canListReorder: s = () => !0, rowActions: c, rows: l = [], tbodyRef: u } = e, [f, p] = m(null), [h, _] = m(!1), b = d(() => l.map((e, t) => t.toString()), [l]);
|
|
3834
|
-
return a ? /* @__PURE__ */ y(
|
|
3835
|
-
collisionDetection:
|
|
3834
|
+
return a ? /* @__PURE__ */ y(tr, {
|
|
3835
|
+
collisionDetection: rr,
|
|
3836
3836
|
onDragStart: (e) => {
|
|
3837
3837
|
p(e.active.id);
|
|
3838
3838
|
},
|
|
@@ -3856,11 +3856,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3856
3856
|
to: i
|
|
3857
3857
|
}));
|
|
3858
3858
|
},
|
|
3859
|
-
children: [/* @__PURE__ */ v(
|
|
3859
|
+
children: [/* @__PURE__ */ v(Jn, {
|
|
3860
3860
|
items: b,
|
|
3861
|
-
strategy:
|
|
3861
|
+
strategy: Xn,
|
|
3862
3862
|
children: t({ dropDisabled: h })
|
|
3863
|
-
}), !!f &&
|
|
3863
|
+
}), !!f && yn(/* @__PURE__ */ v(nr, {
|
|
3864
3864
|
dropAnimation: null,
|
|
3865
3865
|
children: /* @__PURE__ */ v("table", {
|
|
3866
3866
|
className: g(mo.table, mo.dragOverlay),
|
|
@@ -3886,7 +3886,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3886
3886
|
}) : t({});
|
|
3887
3887
|
}, gc = ({ table: e, children: t }) => {
|
|
3888
3888
|
var n, r, i;
|
|
3889
|
-
let a = p(null), o =
|
|
3889
|
+
let a = p(null), o = ir({
|
|
3890
3890
|
count: (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n,
|
|
3891
3891
|
getScrollElement: () => a.current,
|
|
3892
3892
|
estimateSize: () => 31,
|
|
@@ -4130,9 +4130,9 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4130
4130
|
]);
|
|
4131
4131
|
let S = d(() => t.fields.map((e, r) => {
|
|
4132
4132
|
var a, o, s;
|
|
4133
|
-
let c = b == null ? void 0 : b[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) =>
|
|
4133
|
+
let c = b == null ? void 0 : b[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) => hn(e) === bc);
|
|
4134
4134
|
if (!l.length || u) return {};
|
|
4135
|
-
let d = t == null || (a = t.units) == null ? void 0 : a[r], f =
|
|
4135
|
+
let d = t == null || (a = t.units) == null ? void 0 : a[r], f = hn(d), p = l != null && l.some((e) => hn(e) === f) ? d : (o = c == null ? void 0 : c.defaultUnit) == null ? "" : o;
|
|
4136
4136
|
return {
|
|
4137
4137
|
key: i == null || (s = i[r]) == null ? void 0 : s.value,
|
|
4138
4138
|
value: p,
|
|
@@ -4481,7 +4481,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4481
4481
|
throw Error(`${n("jsonParseFailed")} ${e.message}`);
|
|
4482
4482
|
}
|
|
4483
4483
|
}, tl = (e) => e.replace(",", "."), nl = (e) => e.map((e) => e.map((e) => tl(e))), rl = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
|
|
4484
|
-
|
|
4484
|
+
or.parse(e, {
|
|
4485
4485
|
...Kc,
|
|
4486
4486
|
preview: t,
|
|
4487
4487
|
complete: (e) => {
|
|
@@ -4514,7 +4514,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4514
4514
|
t,
|
|
4515
4515
|
...n
|
|
4516
4516
|
].filter(Boolean);
|
|
4517
|
-
return
|
|
4517
|
+
return or.unparse(o, {
|
|
4518
4518
|
quotes: !1,
|
|
4519
4519
|
header: !0,
|
|
4520
4520
|
delimiter: a
|
|
@@ -4559,12 +4559,12 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4559
4559
|
default: return "info";
|
|
4560
4560
|
}
|
|
4561
4561
|
})();
|
|
4562
|
-
return e !== void 0 &&
|
|
4562
|
+
return e !== void 0 && lr.isActive(e) ? lr.update(e, {
|
|
4563
4563
|
render: o,
|
|
4564
4564
|
autoClose: n,
|
|
4565
4565
|
onClose: r,
|
|
4566
4566
|
type: s
|
|
4567
|
-
}) :
|
|
4567
|
+
}) : lr(o, {
|
|
4568
4568
|
toastId: e,
|
|
4569
4569
|
autoClose: n,
|
|
4570
4570
|
onClose: r,
|
|
@@ -4574,11 +4574,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4574
4574
|
pauseOnHover: !0,
|
|
4575
4575
|
draggable: !1,
|
|
4576
4576
|
closeButton: a,
|
|
4577
|
-
transition:
|
|
4577
|
+
transition: sr,
|
|
4578
4578
|
type: s
|
|
4579
4579
|
});
|
|
4580
4580
|
}, cl = (e) => {
|
|
4581
|
-
|
|
4581
|
+
lr.dismiss(e);
|
|
4582
4582
|
}, ll = (e, t) => {
|
|
4583
4583
|
t(() => {
|
|
4584
4584
|
sl({ ...e });
|
|
@@ -4589,8 +4589,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4589
4589
|
disabled: "_disabled_18fme_105",
|
|
4590
4590
|
noMargin: "_noMargin_18fme_113",
|
|
4591
4591
|
helpIconEnabled: "_helpIconEnabled_18fme_116"
|
|
4592
|
-
}, dl = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: c = !1, testId: l, helpText: u, onClickHelp: d, textTransform: f =
|
|
4593
|
-
let p = s(
|
|
4592
|
+
}, dl = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: c = !1, testId: l, helpText: u, onClickHelp: d, textTransform: f = Dr.CAPITALIZE }) => {
|
|
4593
|
+
let p = s(H), m = u || d, h = r || p;
|
|
4594
4594
|
return /* @__PURE__ */ y("div", {
|
|
4595
4595
|
className: g(ul.toggle, h ? ul.disabled : null, a ? ul.small : null, c ? ul.noMargin : null),
|
|
4596
4596
|
style: { display: i },
|
|
@@ -4600,7 +4600,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4600
4600
|
"data-testid": l,
|
|
4601
4601
|
children: [
|
|
4602
4602
|
/* @__PURE__ */ v("input", {
|
|
4603
|
-
type:
|
|
4603
|
+
type: kr.CHECKBOX,
|
|
4604
4604
|
name: e,
|
|
4605
4605
|
value: n == null ? void 0 : n.toString(),
|
|
4606
4606
|
disabled: h,
|
|
@@ -4614,7 +4614,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4614
4614
|
m && /* @__PURE__ */ v("div", {
|
|
4615
4615
|
className: ul.helpIconEnabled,
|
|
4616
4616
|
onClick: d,
|
|
4617
|
-
children: /* @__PURE__ */ v(
|
|
4617
|
+
children: /* @__PURE__ */ v(si, { text: u })
|
|
4618
4618
|
})
|
|
4619
4619
|
]
|
|
4620
4620
|
});
|
|
@@ -4639,7 +4639,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4639
4639
|
let j = o((t) => {
|
|
4640
4640
|
if (t) {
|
|
4641
4641
|
var n, r, i;
|
|
4642
|
-
let t =
|
|
4642
|
+
let t = ar(I == null || (n = I.rows) == null ? void 0 : n.map(([e, t]) => [Number(e), Number(t)]), .001).map(([e, t]) => [e.toString(), t.toString()]), a = {
|
|
4643
4643
|
validationRules: s,
|
|
4644
4644
|
importLimit: (r = e.importLimit) == null ? xc : r
|
|
4645
4645
|
}, o = al(I.fields.slice(0, 2), ((i = I.units) == null ? [] : i).slice(0, 2), t, a);
|
|
@@ -4680,7 +4680,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4680
4680
|
/* @__PURE__ */ y("div", {
|
|
4681
4681
|
className: io.headerContainer,
|
|
4682
4682
|
children: [
|
|
4683
|
-
/* @__PURE__ */ v(
|
|
4683
|
+
/* @__PURE__ */ v(W, {
|
|
4684
4684
|
text: u("downsampleTooltip"),
|
|
4685
4685
|
children: /* @__PURE__ */ v(dl, {
|
|
4686
4686
|
label: u("downsampled"),
|
|
@@ -4689,7 +4689,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4689
4689
|
disabled: re || !L
|
|
4690
4690
|
})
|
|
4691
4691
|
}),
|
|
4692
|
-
/* @__PURE__ */ v(
|
|
4692
|
+
/* @__PURE__ */ v(W, {
|
|
4693
4693
|
text: u("deletePastedContent"),
|
|
4694
4694
|
children: /* @__PURE__ */ v(K, {
|
|
4695
4695
|
name: "clearReview",
|
|
@@ -4698,7 +4698,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4698
4698
|
onClick: M
|
|
4699
4699
|
})
|
|
4700
4700
|
}),
|
|
4701
|
-
/* @__PURE__ */ v(
|
|
4701
|
+
/* @__PURE__ */ v(W, {
|
|
4702
4702
|
text: u("openHelp"),
|
|
4703
4703
|
children: /* @__PURE__ */ v(K, {
|
|
4704
4704
|
name: "help",
|
|
@@ -4925,7 +4925,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4925
4925
|
...e,
|
|
4926
4926
|
rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
|
|
4927
4927
|
let t = String(e == null ? "" : e);
|
|
4928
|
-
return yl.test(t) ?
|
|
4928
|
+
return yl.test(t) ? Cn(t) : t;
|
|
4929
4929
|
}))
|
|
4930
4930
|
};
|
|
4931
4931
|
}, xl = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
|
|
@@ -5086,7 +5086,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5086
5086
|
onClickCopyClipboard: o(async (e) => {
|
|
5087
5087
|
let t = await v();
|
|
5088
5088
|
if (!t) return;
|
|
5089
|
-
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : bc).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = al(n, o, a.map((t) => t.map((t) =>
|
|
5089
|
+
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : bc).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = al(n, o, a.map((t) => t.map((t) => ur(t) ? "" : s(t.toString(), e))), { delimiter: " " });
|
|
5090
5090
|
try {
|
|
5091
5091
|
await navigator.clipboard.writeText(c), ll({ message: {
|
|
5092
5092
|
type: "Success",
|
|
@@ -5109,7 +5109,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5109
5109
|
} }, i);
|
|
5110
5110
|
return;
|
|
5111
5111
|
}
|
|
5112
|
-
if (!tn(e) || e.length < 2 || !$t(e, (e) => un(e) && $t(
|
|
5112
|
+
if (!tn(e) || e.length < 2 || !$t(e, (e) => un(e) && $t(_n(e), dn))) {
|
|
5113
5113
|
ll({ message: {
|
|
5114
5114
|
type: "Error",
|
|
5115
5115
|
content: "Smart upload returned unexpected format.",
|
|
@@ -5331,8 +5331,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5331
5331
|
testId: n
|
|
5332
5332
|
})
|
|
5333
5333
|
] });
|
|
5334
|
-
}, Ol = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a =
|
|
5335
|
-
let c = s(
|
|
5334
|
+
}, Ol = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = pn, ...o }) => {
|
|
5335
|
+
let c = s(H), l = p(null), u = () => {
|
|
5336
5336
|
var e;
|
|
5337
5337
|
i || c || (e = l.current) == null || e.click();
|
|
5338
5338
|
}, d = (e) => {
|
|
@@ -5370,7 +5370,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5370
5370
|
onClick: () => {},
|
|
5371
5371
|
tooltip: "",
|
|
5372
5372
|
testId: void 0
|
|
5373
|
-
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u =
|
|
5373
|
+
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = Dr.CAPITALIZE }) => {
|
|
5374
5374
|
var d;
|
|
5375
5375
|
return /* @__PURE__ */ v("div", {
|
|
5376
5376
|
className: g(kl.label, c ? kl.labelLeft : "", l ? kl.small : ""),
|
|
@@ -5382,25 +5382,25 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5382
5382
|
children: [e, /* @__PURE__ */ y("div", {
|
|
5383
5383
|
className: kl.icons,
|
|
5384
5384
|
children: [
|
|
5385
|
-
(n || i) && /* @__PURE__ */ v(
|
|
5385
|
+
(n || i) && /* @__PURE__ */ v(si, {
|
|
5386
5386
|
text: n,
|
|
5387
5387
|
onClick: i,
|
|
5388
5388
|
maxWidth: r
|
|
5389
5389
|
}),
|
|
5390
|
-
o && /* @__PURE__ */ v(
|
|
5390
|
+
o && /* @__PURE__ */ v(si, {
|
|
5391
5391
|
text: o,
|
|
5392
|
-
icon:
|
|
5392
|
+
icon: V.INFO
|
|
5393
5393
|
}),
|
|
5394
|
-
a && a.visible && a.onClick && /* @__PURE__ */ v(
|
|
5394
|
+
a && a.visible && a.onClick && /* @__PURE__ */ v(si, {
|
|
5395
5395
|
onClick: a.onClick,
|
|
5396
|
-
icon: a.active ?
|
|
5396
|
+
icon: a.active ? V.LOCK : V.UNLOCK,
|
|
5397
5397
|
active: a.active,
|
|
5398
5398
|
testId: a.testId
|
|
5399
5399
|
}),
|
|
5400
|
-
s && /* @__PURE__ */ v(
|
|
5400
|
+
s && /* @__PURE__ */ v(si, {
|
|
5401
5401
|
text: (d = s == null ? void 0 : s.tooltip) == null ? "" : d,
|
|
5402
5402
|
onClick: s.onClick,
|
|
5403
|
-
icon:
|
|
5403
|
+
icon: V.LIBRARY
|
|
5404
5404
|
})
|
|
5405
5405
|
]
|
|
5406
5406
|
})]
|
|
@@ -5419,7 +5419,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5419
5419
|
onClick: () => {},
|
|
5420
5420
|
tooltip: "",
|
|
5421
5421
|
testId: void 0
|
|
5422
|
-
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f =
|
|
5422
|
+
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = Dr.CAPITALIZE }) => /* @__PURE__ */ y("div", {
|
|
5423
5423
|
className: g(jl.field, t ? jl.labelLeft : ""),
|
|
5424
5424
|
"data-testid": d,
|
|
5425
5425
|
children: [(e || t) && /* @__PURE__ */ v(Al, {
|
|
@@ -5513,7 +5513,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5513
5513
|
}, Bl = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ v("a", {
|
|
5514
5514
|
className: Z.toggleNarrow,
|
|
5515
5515
|
onClick: t,
|
|
5516
|
-
children: /* @__PURE__ */ v(
|
|
5516
|
+
children: /* @__PURE__ */ v(U, { icon: V.CHEVRON_LEFT })
|
|
5517
5517
|
}) : null, Vl = r(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ y("div", {
|
|
5518
5518
|
ref: a,
|
|
5519
5519
|
className: g(Z.header, i ? Z.stickyHeader : ""),
|
|
@@ -5546,7 +5546,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5546
5546
|
small: e.small
|
|
5547
5547
|
})
|
|
5548
5548
|
}) : null, Ul = ({ name: e, icon: t, testId: n }) => {
|
|
5549
|
-
let r = t && /* @__PURE__ */ v(
|
|
5549
|
+
let r = t && /* @__PURE__ */ v(U, {
|
|
5550
5550
|
icon: t.icon,
|
|
5551
5551
|
color: t.color || "#db2828"
|
|
5552
5552
|
});
|
|
@@ -5555,7 +5555,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5555
5555
|
"data-testid": n,
|
|
5556
5556
|
children: [e, t && t.tooltip && t.tooltip.text ? /* @__PURE__ */ v("span", {
|
|
5557
5557
|
className: Z.iconTooltipMargin,
|
|
5558
|
-
children: /* @__PURE__ */ v(
|
|
5558
|
+
children: /* @__PURE__ */ v(W, {
|
|
5559
5559
|
text: t.tooltip.text,
|
|
5560
5560
|
maxWidth: "350px",
|
|
5561
5561
|
children: r
|
|
@@ -5595,7 +5595,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5595
5595
|
}, Gl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ v(Pi, {
|
|
5596
5596
|
color: "rgba(0,0,0,0.25)",
|
|
5597
5597
|
title: e.metaCount
|
|
5598
|
-
}), Kl = ({ item: e, expanding: t }) => /* @__PURE__ */ v(
|
|
5598
|
+
}), Kl = ({ item: e, expanding: t }) => /* @__PURE__ */ v(Wr, {
|
|
5599
5599
|
expanded: !!t && !!e.active && !!e.content,
|
|
5600
5600
|
children: /* @__PURE__ */ v("div", {
|
|
5601
5601
|
className: Z.itemContent,
|
|
@@ -5606,7 +5606,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5606
5606
|
})
|
|
5607
5607
|
}), ql = r(({ item: e, index: t }, n) => {
|
|
5608
5608
|
var r;
|
|
5609
|
-
let i = s(
|
|
5609
|
+
let i = s(H), { actions: a, disabled: o, expanded: c, onClick: l, title: u, name: d, icon: f, testId: p } = e;
|
|
5610
5610
|
return /* @__PURE__ */ v("div", {
|
|
5611
5611
|
ref: (e) => {
|
|
5612
5612
|
n && "current" in n && Array.isArray(n.current) && t !== void 0 && (n.current[t] = e);
|
|
@@ -5622,7 +5622,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5622
5622
|
children: [
|
|
5623
5623
|
typeof c == "boolean" && /* @__PURE__ */ v("div", {
|
|
5624
5624
|
className: g(Z.expandIcon, c && Z.expanded),
|
|
5625
|
-
children: /* @__PURE__ */ v(
|
|
5625
|
+
children: /* @__PURE__ */ v(U, { icon: V.CHEVRON_RIGHT })
|
|
5626
5626
|
}),
|
|
5627
5627
|
/* @__PURE__ */ v(Ul, {
|
|
5628
5628
|
name: d,
|
|
@@ -5639,7 +5639,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5639
5639
|
}) })
|
|
5640
5640
|
});
|
|
5641
5641
|
}), Jl = r(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
|
|
5642
|
-
let o = s(
|
|
5642
|
+
let o = s(H), c = (e, t, s, c, l, u) => {
|
|
5643
5643
|
let d = t.actions && t.actions.find((e) => {
|
|
5644
5644
|
var t;
|
|
5645
5645
|
return e.label && ((t = String(e.label)) == null ? void 0 : t.toLowerCase()) === "edit";
|
|
@@ -5668,11 +5668,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5668
5668
|
className: Z.drag,
|
|
5669
5669
|
...c,
|
|
5670
5670
|
...l,
|
|
5671
|
-
children: /* @__PURE__ */ v(
|
|
5671
|
+
children: /* @__PURE__ */ v(U, { icon: V.DRAG })
|
|
5672
5672
|
}),
|
|
5673
5673
|
t.level && t.level > 0 ? /* @__PURE__ */ v("div", {
|
|
5674
5674
|
className: Z.indentIcon,
|
|
5675
|
-
children: /* @__PURE__ */ v(
|
|
5675
|
+
children: /* @__PURE__ */ v(U, { icon: V.INDENT })
|
|
5676
5676
|
}) : null,
|
|
5677
5677
|
/* @__PURE__ */ v(Hl, { label: t.label }),
|
|
5678
5678
|
/* @__PURE__ */ v(Wl, { item: t }),
|
|
@@ -5696,12 +5696,12 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5696
5696
|
item: e,
|
|
5697
5697
|
index: t
|
|
5698
5698
|
}, t) : i ? ((e, t) => {
|
|
5699
|
-
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } =
|
|
5699
|
+
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = Yn({
|
|
5700
5700
|
id: e.toString(),
|
|
5701
5701
|
animateLayoutChanges: () => !1
|
|
5702
5702
|
});
|
|
5703
5703
|
return c(e, t, {
|
|
5704
|
-
transform:
|
|
5704
|
+
transform: Zn.Translate.toString(a),
|
|
5705
5705
|
transition: o,
|
|
5706
5706
|
opacity: +!s
|
|
5707
5707
|
}, n, r, i);
|
|
@@ -5717,15 +5717,15 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5717
5717
|
to: Number(o)
|
|
5718
5718
|
});
|
|
5719
5719
|
}, c = d(() => n.items.map((e, t) => t.toString()), [n.items]);
|
|
5720
|
-
return t ? /* @__PURE__ */ y(
|
|
5721
|
-
collisionDetection:
|
|
5720
|
+
return t ? /* @__PURE__ */ y(tr, {
|
|
5721
|
+
collisionDetection: rr,
|
|
5722
5722
|
onDragStart: o,
|
|
5723
5723
|
onDragEnd: s,
|
|
5724
|
-
children: [/* @__PURE__ */ v(
|
|
5724
|
+
children: [/* @__PURE__ */ v(Jn, {
|
|
5725
5725
|
items: c,
|
|
5726
|
-
strategy:
|
|
5726
|
+
strategy: Xn,
|
|
5727
5727
|
children: e
|
|
5728
|
-
}), !!i &&
|
|
5728
|
+
}), !!i && yn(/* @__PURE__ */ v(nr, {
|
|
5729
5729
|
dropAnimation: null,
|
|
5730
5730
|
children: /* @__PURE__ */ v("div", {
|
|
5731
5731
|
className: Z.dragOverlay,
|
|
@@ -5738,7 +5738,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5738
5738
|
}), document.body)]
|
|
5739
5739
|
}) : e;
|
|
5740
5740
|
}, Xl = ({ items: e, scrollDetails: t, children: n }) => {
|
|
5741
|
-
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: s } = t, l = p(null), u =
|
|
5741
|
+
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: s } = t, l = p(null), u = ir({
|
|
5742
5742
|
count: e.length,
|
|
5743
5743
|
getScrollElement: () => l.current,
|
|
5744
5744
|
estimateSize: o(() => {
|
|
@@ -5835,8 +5835,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5835
5835
|
content: "_content_477i5_44",
|
|
5836
5836
|
text: "_text_477i5_49",
|
|
5837
5837
|
details: "_details_477i5_53"
|
|
5838
|
-
}, eu = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s =
|
|
5839
|
-
let l = s ===
|
|
5838
|
+
}, eu = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = Or.DARK, testId: c = null }) => {
|
|
5839
|
+
let l = s === Or.DARK ? Or.WHITE : Or.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
|
|
5840
5840
|
return /* @__PURE__ */ v("div", {
|
|
5841
5841
|
className: g($l.loader, a ? $l.cover : "", { [$l.fullViewPortSize]: i }),
|
|
5842
5842
|
style: {
|
|
@@ -5878,7 +5878,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5878
5878
|
let { key: n, label: r, selected: i, testId: a } = e == null ? {} : e;
|
|
5879
5879
|
return /* @__PURE__ */ v("div", {
|
|
5880
5880
|
className: tu.item,
|
|
5881
|
-
children: /* @__PURE__ */ v(
|
|
5881
|
+
children: /* @__PURE__ */ v(ci, {
|
|
5882
5882
|
label: r,
|
|
5883
5883
|
noMargin: !0,
|
|
5884
5884
|
checked: i,
|
|
@@ -5949,7 +5949,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5949
5949
|
testId: c ? `${c}-menu-layer` : void 0,
|
|
5950
5950
|
small: a,
|
|
5951
5951
|
label: n,
|
|
5952
|
-
trigger:
|
|
5952
|
+
trigger: Cr.DROP_DOWN_BUTTON,
|
|
5953
5953
|
possiblePlacements: ["top-start", "bottom-start"],
|
|
5954
5954
|
sections: /* @__PURE__ */ v(au, {
|
|
5955
5955
|
testId: c,
|
|
@@ -5981,7 +5981,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5981
5981
|
className: lu.printHeader,
|
|
5982
5982
|
style: { width: n }
|
|
5983
5983
|
}), du = ({ name: e, label: t, options: n, value: r, onChange: i, disabled: a = !1, small: o = !1, noMargin: c = !1, onClick: l = () => {}, inline: u = !1, mainLabel: d = "", radioButtonsData: f, classForContainer: p = "grouped fields" }) => {
|
|
5984
|
-
let m = s(
|
|
5984
|
+
let m = s(H), h = f !== void 0, { simpleInputs: _, options: b, selectedOptions: x } = h ? {
|
|
5985
5985
|
simpleInputs: !1,
|
|
5986
5986
|
options: f,
|
|
5987
5987
|
selectedOptions: void 0
|
|
@@ -6054,7 +6054,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6054
6054
|
round: !0,
|
|
6055
6055
|
basic: !0,
|
|
6056
6056
|
icon: e.icon,
|
|
6057
|
-
colored:
|
|
6057
|
+
colored: wr.MUTED,
|
|
6058
6058
|
onClick: e.onClick,
|
|
6059
6059
|
active: e.active,
|
|
6060
6060
|
disabled: t
|
|
@@ -6071,11 +6071,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6071
6071
|
hideScrollbars: "_hideScrollbars_gb097_67",
|
|
6072
6072
|
richTextInput: "_richTextInput_gb097_77"
|
|
6073
6073
|
}, gu = a(r(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
|
|
6074
|
-
let o = s(
|
|
6074
|
+
let o = s(H), u = r || o, d = fr({
|
|
6075
6075
|
extensions: [
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6076
|
+
pr,
|
|
6077
|
+
mr.configure({ placeholder: e }),
|
|
6078
|
+
hr
|
|
6079
6079
|
],
|
|
6080
6080
|
content: n == null ? "" : n,
|
|
6081
6081
|
contentType: "markdown",
|
|
@@ -6102,7 +6102,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6102
6102
|
editor: d,
|
|
6103
6103
|
disabled: u,
|
|
6104
6104
|
toolbarComponent: i
|
|
6105
|
-
}), /* @__PURE__ */ v(
|
|
6105
|
+
}), /* @__PURE__ */ v(dr, { editor: d })]
|
|
6106
6106
|
});
|
|
6107
6107
|
})), _u = { row: "_row_n16je_1" }, vu = ({ alignItems: t = "initial", justifyContent: n = "initial", children: r = null, flex: a = !1, height: o = "auto", marginBottom: s = "0", marginTop: c = "0", spacing: l = "var(--padding)", wrap: u = !1, testId: d = null }) => {
|
|
6108
6108
|
let f = typeof l == "number" ? `${l}px` : l, p = (r === null || r === !1 ? [] : Array.isArray(r) ? r.filter((e) => i(e)) : [r]).map((t, n) => /* @__PURE__ */ v(e.Fragment, { children: e.cloneElement(t, { spacing: f }) }, n));
|
|
@@ -6142,7 +6142,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6142
6142
|
experimental: "_experimental_1oy1z_155",
|
|
6143
6143
|
active: "_active_1oy1z_159",
|
|
6144
6144
|
icon: "_icon_1oy1z_163"
|
|
6145
|
-
}, bu = a(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(
|
|
6145
|
+
}, bu = a(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(W, {
|
|
6146
6146
|
text: t,
|
|
6147
6147
|
enabled: !e,
|
|
6148
6148
|
placement: "right-center",
|
|
@@ -6156,13 +6156,13 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6156
6156
|
small: !0,
|
|
6157
6157
|
title: r ? "!" : void 0,
|
|
6158
6158
|
margin: 4,
|
|
6159
|
-
children: /* @__PURE__ */ v(
|
|
6159
|
+
children: /* @__PURE__ */ v(U, { icon: n })
|
|
6160
6160
|
})
|
|
6161
6161
|
})
|
|
6162
6162
|
}), /* @__PURE__ */ v("span", {
|
|
6163
6163
|
className: yu.label,
|
|
6164
6164
|
children: t
|
|
6165
|
-
})] }), (e, t) =>
|
|
6165
|
+
})] }), (e, t) => er(e, t)), xu = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ v("div", {
|
|
6166
6166
|
className: yu.list,
|
|
6167
6167
|
children: t.map((t, a) => {
|
|
6168
6168
|
let o = `${n}_${a}`;
|
|
@@ -6198,7 +6198,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6198
6198
|
top: r,
|
|
6199
6199
|
background: "var(--color-background-sidebar)",
|
|
6200
6200
|
closedWidth: "var(--size-sidebar)",
|
|
6201
|
-
buttonPosition:
|
|
6201
|
+
buttonPosition: Er.BOTTOM,
|
|
6202
6202
|
buttonAnimate: !0,
|
|
6203
6203
|
button: s && /* @__PURE__ */ v(K, {
|
|
6204
6204
|
onClick: (e) => {
|
|
@@ -6206,7 +6206,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6206
6206
|
},
|
|
6207
6207
|
colored: !0,
|
|
6208
6208
|
round: !0,
|
|
6209
|
-
icon:
|
|
6209
|
+
icon: V.LEFT
|
|
6210
6210
|
}),
|
|
6211
6211
|
children: /* @__PURE__ */ v("div", {
|
|
6212
6212
|
className: g(yu.sidebar, i ? "" : yu.collapsed),
|
|
@@ -6223,10 +6223,10 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6223
6223
|
})
|
|
6224
6224
|
})
|
|
6225
6225
|
});
|
|
6226
|
-
}, (e, t) =>
|
|
6226
|
+
}, (e, t) => er(e, t)), wu = {
|
|
6227
6227
|
skeletonContainer: "_skeletonContainer_mcfxp_9",
|
|
6228
6228
|
skeleton: "_skeleton_mcfxp_9"
|
|
6229
|
-
}, Tu = ({ count: e, width: t, height: n }) => /* @__PURE__ */ v(
|
|
6229
|
+
}, Tu = ({ count: e, width: t, height: n }) => /* @__PURE__ */ v(gr, {
|
|
6230
6230
|
baseColor: "var(--color-skeleton-base)",
|
|
6231
6231
|
highlightColor: "var(--color-skeleton-highlight)",
|
|
6232
6232
|
containerClassName: wu.skeletonContainer,
|
|
@@ -6269,8 +6269,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6269
6269
|
}, Ou = ({ children: e, activeTabIndex: t, contentPadding: n }) => Array.isArray(e) ? /* @__PURE__ */ v("div", {
|
|
6270
6270
|
className: g(n ? Eu.contentPadding : ""),
|
|
6271
6271
|
children: e.map((e, n) => t === n && e)
|
|
6272
|
-
}) : null, ku = ({ name: e = void 0, options: t = null, children: n = null, value: r = void 0, onChange: i =
|
|
6273
|
-
let p = s(
|
|
6272
|
+
}) : null, ku = ({ name: e = void 0, options: t = null, children: n = null, value: r = void 0, onChange: i = pn, padding: a = !1, margin: o = !0, contentPadding: c = !0, onChangeTab: l, activeTabIndex: u = void 0, tabs: d = void 0, testId: f }) => {
|
|
6273
|
+
let p = s(H), m = l !== void 0, h = n ? n.map((e, t) => {
|
|
6274
6274
|
var n;
|
|
6275
6275
|
return {
|
|
6276
6276
|
value: t,
|
|
@@ -6336,8 +6336,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6336
6336
|
textarea: "_textarea_q0tl0_77",
|
|
6337
6337
|
small: "_small_q0tl0_116",
|
|
6338
6338
|
monospace: "_monospace_q0tl0_155"
|
|
6339
|
-
}, Mu = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o =
|
|
6340
|
-
let S = s(
|
|
6339
|
+
}, Mu = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = pn, onKeyPress: c = pn, onFocus: l = pn, onBlur: u = pn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: _, monospace: y = !1, small: b = !1, testId: x }) => {
|
|
6340
|
+
let S = s(H), C = /* @__PURE__ */ v("textarea", {
|
|
6341
6341
|
className: g(ju.textarea, f ? ju.error : "", p ? ju.warning : "", y ? ju.monospace : "", b ? ju.small : ""),
|
|
6342
6342
|
name: e,
|
|
6343
6343
|
value: t,
|
|
@@ -6355,7 +6355,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6355
6355
|
"data-warning": p || null,
|
|
6356
6356
|
"data-testid": x
|
|
6357
6357
|
});
|
|
6358
|
-
return /* @__PURE__ */ v(
|
|
6358
|
+
return /* @__PURE__ */ v(W, {
|
|
6359
6359
|
error: !!f,
|
|
6360
6360
|
warning: !!p,
|
|
6361
6361
|
text: m || f || p,
|
|
@@ -6384,7 +6384,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6384
6384
|
className: Q.alert,
|
|
6385
6385
|
children: e
|
|
6386
6386
|
}), Pu = ({ icon: e, url: t, onClick: n }) => {
|
|
6387
|
-
let r = /* @__PURE__ */ v(
|
|
6387
|
+
let r = /* @__PURE__ */ v(U, { icon: e });
|
|
6388
6388
|
return t ? /* @__PURE__ */ v("a", {
|
|
6389
6389
|
href: t,
|
|
6390
6390
|
onClick: n,
|
|
@@ -6427,7 +6427,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6427
6427
|
}, Iu = /* @__PURE__ */ function(e) {
|
|
6428
6428
|
return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
|
|
6429
6429
|
}({}), Lu = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: c = "a" }) => {
|
|
6430
|
-
let l = s(
|
|
6430
|
+
let l = s(H);
|
|
6431
6431
|
return /* @__PURE__ */ y(c, {
|
|
6432
6432
|
className: g(Q.link, i ? Q.active : ""),
|
|
6433
6433
|
href: t || "#",
|
|
@@ -6475,7 +6475,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6475
6475
|
children: /* @__PURE__ */ v(Ki, {
|
|
6476
6476
|
maxHeight: "100%",
|
|
6477
6477
|
menu: {
|
|
6478
|
-
trigger:
|
|
6478
|
+
trigger: Cr.COMPONENT,
|
|
6479
6479
|
fullHeightTrigger: !0,
|
|
6480
6480
|
placement: "bottom-start",
|
|
6481
6481
|
component: /* @__PURE__ */ v(Lu, {
|
|
@@ -6598,16 +6598,16 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6598
6598
|
className: Uu.toggle,
|
|
6599
6599
|
children: /* @__PURE__ */ v(K, {
|
|
6600
6600
|
basic: !0,
|
|
6601
|
-
colored: r ? !0 :
|
|
6601
|
+
colored: r ? !0 : wr.MUTED,
|
|
6602
6602
|
small: !0,
|
|
6603
6603
|
round: !0,
|
|
6604
|
-
icon: r ? (s == null ? void 0 : s.collapse) ||
|
|
6604
|
+
icon: r ? (s == null ? void 0 : s.collapse) || V.COLLAPSE : (s == null ? void 0 : s.expand) || V.EXPAND,
|
|
6605
6605
|
onClick: C
|
|
6606
6606
|
})
|
|
6607
6607
|
}),
|
|
6608
6608
|
o && /* @__PURE__ */ v("div", {
|
|
6609
6609
|
className: Z.drag,
|
|
6610
|
-
children: /* @__PURE__ */ v(
|
|
6610
|
+
children: /* @__PURE__ */ v(U, { icon: V.DRAG })
|
|
6611
6611
|
}),
|
|
6612
6612
|
/* @__PURE__ */ v(Wl, { item: u }),
|
|
6613
6613
|
/* @__PURE__ */ y("div", {
|
|
@@ -6685,11 +6685,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6685
6685
|
name: e.name,
|
|
6686
6686
|
actions: e.actions,
|
|
6687
6687
|
stickyHeader: h
|
|
6688
|
-
}), /* @__PURE__ */ v(
|
|
6689
|
-
backend:
|
|
6690
|
-
options:
|
|
6688
|
+
}), /* @__PURE__ */ v(_r, {
|
|
6689
|
+
backend: vr,
|
|
6690
|
+
options: br(),
|
|
6691
6691
|
context: window,
|
|
6692
|
-
children: /* @__PURE__ */ v(
|
|
6692
|
+
children: /* @__PURE__ */ v(yr, {
|
|
6693
6693
|
ref: S,
|
|
6694
6694
|
tree: j,
|
|
6695
6695
|
sort: !1,
|
|
@@ -6850,7 +6850,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6850
6850
|
className: qu.drag,
|
|
6851
6851
|
onClick: (e) => e.stopPropagation(),
|
|
6852
6852
|
ref: i,
|
|
6853
|
-
children: /* @__PURE__ */ v(
|
|
6853
|
+
children: /* @__PURE__ */ v(U, { icon: V.DRAG })
|
|
6854
6854
|
})
|
|
6855
6855
|
}),
|
|
6856
6856
|
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ v("td", { className: qu.folderCell }, t)),
|
|
@@ -6862,11 +6862,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6862
6862
|
onMouseDown: (e) => e.stopPropagation(),
|
|
6863
6863
|
children: /* @__PURE__ */ v(K, {
|
|
6864
6864
|
basic: !0,
|
|
6865
|
-
colored: c ? !0 :
|
|
6865
|
+
colored: c ? !0 : wr.MUTED,
|
|
6866
6866
|
disabled: !a,
|
|
6867
6867
|
small: !0,
|
|
6868
6868
|
round: !0,
|
|
6869
|
-
icon: a && c ? (s == null ? void 0 : s.collapse) ||
|
|
6869
|
+
icon: a && c ? (s == null ? void 0 : s.collapse) || V.COLLAPSE : (s == null ? void 0 : s.expand) || V.EXPAND
|
|
6870
6870
|
})
|
|
6871
6871
|
})
|
|
6872
6872
|
}),
|
|
@@ -6982,30 +6982,30 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6982
6982
|
let n = t == null ? void 0 : t[e];
|
|
6983
6983
|
if (!n) {
|
|
6984
6984
|
var r;
|
|
6985
|
-
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r =
|
|
6985
|
+
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = Un(e)) == null ? "" : r;
|
|
6986
6986
|
}
|
|
6987
6987
|
return n;
|
|
6988
6988
|
}, od = /* @__PURE__ */ function(e) {
|
|
6989
6989
|
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
6990
6990
|
}({}), sd = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), cd = (e) => {
|
|
6991
6991
|
if (!e) return !1;
|
|
6992
|
-
let t =
|
|
6993
|
-
return !
|
|
6992
|
+
let t = Dn(e);
|
|
6993
|
+
return !xn.includes(t);
|
|
6994
6994
|
}, ld = ({ value: e, unitkey: t, toUnit: n }) => {
|
|
6995
6995
|
var r;
|
|
6996
|
-
let i =
|
|
6997
|
-
if (!i || i.length === 0 || !((r =
|
|
6998
|
-
let a =
|
|
6996
|
+
let i = bn[t];
|
|
6997
|
+
if (!i || i.length === 0 || !((r = Wn(e)) != null && r.valid) || !i.includes(n)) return !1;
|
|
6998
|
+
let a = Dn(String(e));
|
|
6999
6999
|
return !(a && !i.includes(a));
|
|
7000
7000
|
}, ud = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
|
|
7001
7001
|
var o;
|
|
7002
|
-
let s =
|
|
7002
|
+
let s = Nn(e) ? kn(e) : e, c = [Infinity, -Infinity].includes(Number(s));
|
|
7003
7003
|
if (i || c) return {
|
|
7004
7004
|
value: s,
|
|
7005
7005
|
error: null
|
|
7006
7006
|
};
|
|
7007
|
-
let l = r || (
|
|
7008
|
-
if (!((o =
|
|
7007
|
+
let l = r || (Nn(e) ? Dn(e) : Un(t));
|
|
7008
|
+
if (!((o = Wn(s)) != null && o.valid)) return {
|
|
7009
7009
|
value: void 0,
|
|
7010
7010
|
error: "Invalid number format"
|
|
7011
7011
|
};
|
|
@@ -7022,16 +7022,16 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7022
7022
|
error: "Value is invalid for conversion"
|
|
7023
7023
|
};
|
|
7024
7024
|
try {
|
|
7025
|
-
let e =
|
|
7025
|
+
let e = Kn(s, l);
|
|
7026
7026
|
return ld({
|
|
7027
7027
|
value: e,
|
|
7028
7028
|
toUnit: n,
|
|
7029
7029
|
unitkey: t
|
|
7030
7030
|
}) ? {
|
|
7031
|
-
value:
|
|
7031
|
+
value: kn(Hs(a ? Tn(e, n) : wn(e, n))),
|
|
7032
7032
|
error: null
|
|
7033
7033
|
} : {
|
|
7034
|
-
value:
|
|
7034
|
+
value: kn(e),
|
|
7035
7035
|
error: null
|
|
7036
7036
|
};
|
|
7037
7037
|
} catch {
|
|
@@ -7041,12 +7041,12 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7041
7041
|
};
|
|
7042
7042
|
}
|
|
7043
7043
|
}, dd = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
|
|
7044
|
-
let a =
|
|
7044
|
+
let a = kn(e), o = sd(a);
|
|
7045
7045
|
return !ld({
|
|
7046
7046
|
value: e,
|
|
7047
7047
|
unitkey: n,
|
|
7048
7048
|
toUnit: t
|
|
7049
|
-
}) || cd(e) || o ? { value: a } :
|
|
7049
|
+
}) || cd(e) || o ? { value: a } : Nn(e) ? ud({
|
|
7050
7050
|
value: e,
|
|
7051
7051
|
unitkey: n,
|
|
7052
7052
|
toUnit: t,
|
|
@@ -7054,21 +7054,21 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7054
7054
|
doNotConvertValue: i,
|
|
7055
7055
|
exactPrecision: !0
|
|
7056
7056
|
}) : { value: e };
|
|
7057
|
-
}, fd = (e) => ln(e) && !tn(e) && !on(e) ? en(e, "fieldName", "") : typeof e == "string" ? e : "", pd = (e = "") =>
|
|
7058
|
-
let n =
|
|
7057
|
+
}, fd = (e) => ln(e) && !tn(e) && !on(e) ? en(e, "fieldName", "") : typeof e == "string" ? e : "", pd = (e = "") => xn == null ? void 0 : xn.includes(e), md = (e, t) => {
|
|
7058
|
+
let n = Dn(e || "");
|
|
7059
7059
|
return pd(t) && pd(n);
|
|
7060
7060
|
}, hd = n(null), gd = () => s(hd), _d = !1, vd = (e) => {
|
|
7061
7061
|
_d || (_d = !0, hd = e);
|
|
7062
|
-
}, yd = (e) =>
|
|
7062
|
+
}, yd = (e) => jn(e) ? e : Fn(e), bd = {
|
|
7063
7063
|
predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
|
|
7064
7064
|
inputWrapper: "_inputWrapper_ye9w9_4"
|
|
7065
|
-
}, xd = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: l, unitkey: u = "", initUnit: f, noConversion: p = !1, onChange: h =
|
|
7065
|
+
}, xd = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: l, unitkey: u = "", initUnit: f, noConversion: p = !1, onChange: h = pn, onClick: b = pn, onFocus: x = pn, onSwitchUnit: S = pn, unitTemplate: C, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
|
|
7066
7066
|
name: "",
|
|
7067
7067
|
error: null
|
|
7068
7068
|
}), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus: ee = !0, groupOrder: L, tooltip: te = null }) => {
|
|
7069
7069
|
let ne = gd(), re = rd();
|
|
7070
7070
|
typeof l == "number" && (l = `${l}`);
|
|
7071
|
-
let [ie = "", ae = ""] = l === void 0 ? [] :
|
|
7071
|
+
let [ie = "", ae = ""] = l === void 0 ? [] : zn(l), R = d(() => ad(u, C || (ne == null ? void 0 : ne.unitTemplate)), [
|
|
7072
7072
|
u,
|
|
7073
7073
|
C,
|
|
7074
7074
|
ne == null ? void 0 : ne.unitTemplate
|
|
@@ -7087,12 +7087,12 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7087
7087
|
}), de = M || (z == null ? void 0 : z.value) === void 0, [fe, pe] = m(D ? od.PREDEFINED : od.CUSTOM), me = !!(j || n), he = E && E.find((e) => {
|
|
7088
7088
|
if (!(e != null && e.value)) return;
|
|
7089
7089
|
if (k) return k === e.valueKey;
|
|
7090
|
-
let t =
|
|
7090
|
+
let t = Nn(e.value) ? Dn(e.value) : "", { value: n = l } = ud({
|
|
7091
7091
|
value: String(l),
|
|
7092
7092
|
unitkey: u,
|
|
7093
7093
|
toUnit: t
|
|
7094
7094
|
});
|
|
7095
|
-
return
|
|
7095
|
+
return Kn(n, t) === e.value;
|
|
7096
7096
|
}), ge = () => {
|
|
7097
7097
|
var e;
|
|
7098
7098
|
let t = (e = l) == null ? "" : e, n = z.unit;
|
|
@@ -7101,21 +7101,21 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7101
7101
|
unitkey: u,
|
|
7102
7102
|
toUnit: n
|
|
7103
7103
|
})) {
|
|
7104
|
-
let e =
|
|
7104
|
+
let e = En(u);
|
|
7105
7105
|
return e == null ? void 0 : e.map((e) => ["", e == null ? void 0 : e.unit]);
|
|
7106
7106
|
} else if (u) try {
|
|
7107
|
-
let e =
|
|
7108
|
-
return
|
|
7107
|
+
let e = Sn(t, u);
|
|
7108
|
+
return kn(t) === "" ? e.map((e) => ["", e[1]]) : e;
|
|
7109
7109
|
} catch {
|
|
7110
7110
|
return null;
|
|
7111
7111
|
}
|
|
7112
7112
|
}, _e = (t) => {
|
|
7113
|
-
let n = fd(e), r = t.target, { value: i, selectionStart: a } = r, o =
|
|
7113
|
+
let n = fd(e), r = t.target, { value: i, selectionStart: a } = r, o = Kn(i, (z == null ? void 0 : z.unit) || "");
|
|
7114
7114
|
h({ target: {
|
|
7115
|
-
value: N ?
|
|
7115
|
+
value: N ? Kn(wn(o, ae), ae) : o,
|
|
7116
7116
|
name: n
|
|
7117
7117
|
} });
|
|
7118
|
-
let [s, c] =
|
|
7118
|
+
let [s, c] = zn(o);
|
|
7119
7119
|
ue({
|
|
7120
7120
|
value: s,
|
|
7121
7121
|
unit: c
|
|
@@ -7140,7 +7140,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7140
7140
|
doNotConvertValue: p
|
|
7141
7141
|
});
|
|
7142
7142
|
e = n, t = se;
|
|
7143
|
-
} else if (
|
|
7143
|
+
} else if (Kn(z.value, z.unit) !== l) {
|
|
7144
7144
|
let { value: n } = dd({
|
|
7145
7145
|
value: l,
|
|
7146
7146
|
toUnit: z.unit,
|
|
@@ -7161,8 +7161,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7161
7161
|
i,
|
|
7162
7162
|
O
|
|
7163
7163
|
]);
|
|
7164
|
-
let ye = ge(), be =
|
|
7165
|
-
let r = t != null && t.value ? t.value : "", [i = "", a = ""] =
|
|
7164
|
+
let ye = ge(), be = Pn(z.unit) || z.unit || "", xe = p || !ye || ye && ye.length === 1, Se = fd(e), Ce, we = (t) => {
|
|
7165
|
+
let r = t != null && t.value ? t.value : "", [i = "", a = ""] = Nn(r) ? zn(r) : [r], o = Gn(r);
|
|
7166
7166
|
if (ld({
|
|
7167
7167
|
value: r,
|
|
7168
7168
|
unitkey: u,
|
|
@@ -7175,13 +7175,13 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7175
7175
|
defaultFromUnit: a,
|
|
7176
7176
|
doNotConvertValue: p
|
|
7177
7177
|
});
|
|
7178
|
-
o =
|
|
7178
|
+
o = Gn(Kn(e, R));
|
|
7179
7179
|
}
|
|
7180
7180
|
return {
|
|
7181
7181
|
type: xi.OPTION,
|
|
7182
7182
|
inline: !0,
|
|
7183
7183
|
onClick: () => {
|
|
7184
|
-
|
|
7184
|
+
Wn(i).valid && !n && (pe(od.PREDEFINED), h({ target: {
|
|
7185
7185
|
value: r,
|
|
7186
7186
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
|
|
7187
7187
|
predefinedSelected: !0,
|
|
@@ -7201,7 +7201,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7201
7201
|
inline: !0,
|
|
7202
7202
|
onClick: () => {
|
|
7203
7203
|
fe !== od.CUSTOM && !n && h({ target: {
|
|
7204
|
-
value:
|
|
7204
|
+
value: Kn(z.value, z.unit),
|
|
7205
7205
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
|
|
7206
7206
|
} });
|
|
7207
7207
|
},
|
|
@@ -7212,8 +7212,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7212
7212
|
Ce = [...Ce, ...e];
|
|
7213
7213
|
}
|
|
7214
7214
|
let Te = (e) => {
|
|
7215
|
-
if (
|
|
7216
|
-
let t =
|
|
7215
|
+
if (Nn(e)) {
|
|
7216
|
+
let t = Dn(e), { value: n } = dd({
|
|
7217
7217
|
value: e,
|
|
7218
7218
|
toUnit: z.unit,
|
|
7219
7219
|
unitkey: u,
|
|
@@ -7223,7 +7223,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7223
7223
|
return n;
|
|
7224
7224
|
}
|
|
7225
7225
|
return e;
|
|
7226
|
-
}, Ee = !E && (!L || L ===
|
|
7226
|
+
}, Ee = !E && (!L || L === B.FIRST) ? B.FIRST : B.MIDDLE, De = !L || L === B.LAST ? B.LAST : B.MIDDLE;
|
|
7227
7227
|
return /* @__PURE__ */ v("div", {
|
|
7228
7228
|
className: fe === od.PREDEFINED ? g(bd.predefinedMenuActive) : "",
|
|
7229
7229
|
children: /* @__PURE__ */ y(Ma, {
|
|
@@ -7289,7 +7289,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7289
7289
|
trigger: "DropDownButton",
|
|
7290
7290
|
small: o,
|
|
7291
7291
|
sections: ye.map(([e = "", t = "", n]) => {
|
|
7292
|
-
let r = n || t || "", i =
|
|
7292
|
+
let r = n || t || "", i = Mn(e) ? e : "";
|
|
7293
7293
|
return {
|
|
7294
7294
|
type: "Option",
|
|
7295
7295
|
label: P ? yd(i) : i,
|
|
@@ -7406,8 +7406,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7406
7406
|
error: !u && (i == null ? void 0 : i.unitIsMissing) || l,
|
|
7407
7407
|
disabled: c || !u,
|
|
7408
7408
|
searchable: !1,
|
|
7409
|
-
options: (a =
|
|
7410
|
-
label:
|
|
7409
|
+
options: (a = On(s)) == null ? void 0 : a.map((e) => ({
|
|
7410
|
+
label: Pn(e),
|
|
7411
7411
|
value: e
|
|
7412
7412
|
})),
|
|
7413
7413
|
native: e.native,
|
|
@@ -7500,9 +7500,9 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7500
7500
|
children: /* @__PURE__ */ y(Nl, {
|
|
7501
7501
|
gap: "8px",
|
|
7502
7502
|
alignItems: "center",
|
|
7503
|
-
children: [m && /* @__PURE__ */ v(
|
|
7504
|
-
text:
|
|
7505
|
-
icon:
|
|
7503
|
+
children: [m && /* @__PURE__ */ v(si, {
|
|
7504
|
+
text: Wn(o).valid ? `${d == null ? void 0 : d.companySetting}: ${Nn(o) ? Gn(o) : o}` : d == null ? void 0 : d.companySettingDifferent,
|
|
7505
|
+
icon: V.INFO
|
|
7506
7506
|
}), /* @__PURE__ */ v(Cs, {
|
|
7507
7507
|
small: !0,
|
|
7508
7508
|
searchable: !1,
|
|
@@ -7572,11 +7572,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7572
7572
|
muted: !0,
|
|
7573
7573
|
children: a == null ? void 0 : a.changesTooLarge
|
|
7574
7574
|
})
|
|
7575
|
-
}) : /* @__PURE__ */ v(
|
|
7575
|
+
}) : /* @__PURE__ */ v(xr, {
|
|
7576
7576
|
oldValue: e,
|
|
7577
7577
|
newValue: t,
|
|
7578
7578
|
splitView: o === Fd,
|
|
7579
|
-
compareMethod:
|
|
7579
|
+
compareMethod: Sr.WORDS
|
|
7580
7580
|
})
|
|
7581
7581
|
}) });
|
|
7582
7582
|
};
|
|
@@ -8885,7 +8885,7 @@ var jf = (e = {}) => Af({
|
|
|
8885
8885
|
}
|
|
8886
8886
|
return n || "";
|
|
8887
8887
|
}, Ff = (e) => {
|
|
8888
|
-
let t = (e) =>
|
|
8888
|
+
let t = (e) => Nn(e) ? Gn(e) : String(e);
|
|
8889
8889
|
return Array.isArray(e) ? e.length === 0 ? "" : e.some((e) => e && typeof e == "object") ? "Multiple changes..." : e.map(t).join(", ") : e && typeof e == "object" ? Object.keys(e).length === 0 ? "" : "Multiple changes..." : t(e);
|
|
8890
8890
|
}, If = (e) => {
|
|
8891
8891
|
switch (e.length) {
|
|
@@ -8990,7 +8990,7 @@ var jf = (e = {}) => Af({
|
|
|
8990
8990
|
}, Gf = (e, t = e.length - 1) => {
|
|
8991
8991
|
if (t >= e.length) return "Value";
|
|
8992
8992
|
let n = e[t];
|
|
8993
|
-
return !n ||
|
|
8993
|
+
return !n || An(n) ? Gf(e, t - 1) : Uf(n);
|
|
8994
8994
|
}, Kf = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
8995
8995
|
let o = Wf(r), s = Wf(i), c = a ? ` in ${a}` : "";
|
|
8996
8996
|
switch (t) {
|
|
@@ -9150,7 +9150,7 @@ var jf = (e = {}) => Af({
|
|
|
9150
9150
|
padding: !1,
|
|
9151
9151
|
children: r ? /* @__PURE__ */ v(eu, {
|
|
9152
9152
|
height: "100px",
|
|
9153
|
-
theme:
|
|
9153
|
+
theme: Or.WHITE,
|
|
9154
9154
|
children: /* @__PURE__ */ v(mi, { dark: !0 })
|
|
9155
9155
|
}) : /* @__PURE__ */ v(yc, { table: {
|
|
9156
9156
|
headers: T,
|
|
@@ -9212,4 +9212,4 @@ var jf = (e = {}) => Af({
|
|
|
9212
9212
|
});
|
|
9213
9213
|
};
|
|
9214
9214
|
//#endregion
|
|
9215
|
-
export {
|
|
9215
|
+
export { qr as Accordion, fi as AccordionWithDefaultToggle, Ji as Actions, Tr as Align, Qf as AuditLog, Pi as Badge, Qi as Breadcrumb, Xi as BreadcrumbLinkType, K as Button, ea as ButtonGroup, Er as ButtonPosition, hi as ButtonType, na as Card, ci as CheckBox, Vr as Chevron, Wr as Collapse, wr as Color, sa as ColorInput, fa as Column, Sa as Dialog, Ld as DiffViewer, H as DisabledContext, _a as Divider, ka as Drawer, Iu as ElementType, Ac as Empty, Ml as Field, Ol as FileButton, za as FileInput, Nl as Flex, Fl as FormRow, zl as Grid, B as GroupOrder, ya as Heading, si as HelpIcon, U as Icon, V as IconType, Pa as Input, Ma as InputGroup, ks as InputGroupAddon, Ia as InputReaderMethods, kr as InputType, Al as Label, Ql as List, Vl as ListHeading, ql as ListSubheading, eu as Loader, Ki as Menu, Si as MenuCarat, xi as MenuType, po as Message, oo as MessageType, Ka as Modal, yo as NativeSelect, Gs as NumberInput, ou as OptionDropdown, cu as Page, As as Pagination, Hu as PopConfirm, aa as Popover, Ha as Portal, uu as PrintHeader, Ya as ProgressBar, du as RadioButton, gu as RichTextInput, vu as Row, Cs as Select, Nd as SettingField, Cu as SideBar, Tu as Skeleton, $s as Slider, eo as SmartUploadModal, Ba as Spacer, mi as Spinner, yc as Table, Dl as TableImportExport, ku as Tabs, ha as Text, Mu as TextArea, Au as TextLink, Dr as TextTransform, Or as Theme, cr as Toaster, dl as Toggle, W as Tooltip, zu as TopBar, Ku as Tree, nd as TreeTable, Cr as TriggerType, xd as UnitInput, jd as UnitTable, $f as UsageTracker, cl as dismissToast, vd as initializeContext, tp as initializeGuiLibrary, La as readFile, sl as toast, bo as useFocus, Va as useKeyboardEvent, Co as useWindowWidth };
|