@oliasoft-open-source/react-ui-library 6.6.0-beta-1 → 6.6.0-beta-3
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 +2 -1
- package/dist/components/slider/slider.d.ts.map +1 -1
- package/dist/components/slider/slider.stories.d.ts +1 -0
- package/dist/components/slider/slider.stories.d.ts.map +1 -1
- package/dist/components/table/cell/cell-types/cell-types.interface.d.ts +1 -0
- package/dist/components/table/cell/cell-types/cell-types.interface.d.ts.map +1 -1
- package/dist/components/table/cell/cell-types/check-box-cell.d.ts.map +1 -1
- package/dist/components/table/table.stories-data.d.ts +1 -0
- package/dist/components/table/table.stories-data.d.ts.map +1 -1
- package/dist/components/tree-table/tree-table-check-context.d.ts +3 -0
- package/dist/components/tree-table/tree-table-check-context.d.ts.map +1 -1
- package/dist/components/tree-table/tree-table-row.d.ts.map +1 -1
- package/dist/components/tree-table/tree-table.stories.d.ts.map +1 -1
- package/dist/index.js +477 -461
- 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,15 +3439,19 @@ 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(
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3442
|
+
children: /* @__PURE__ */ v(W, {
|
|
3443
|
+
text: e.tooltip,
|
|
3444
|
+
enabled: !!e.tooltip,
|
|
3445
|
+
children: /* @__PURE__ */ v(ci, {
|
|
3446
|
+
label: e.label,
|
|
3447
|
+
checked: e.checked,
|
|
3448
|
+
isInTable: !0,
|
|
3449
|
+
disabled: e.disabled,
|
|
3450
|
+
onChange: (t) => e.onChange(t),
|
|
3451
|
+
testId: t,
|
|
3452
|
+
tabIndex: e.disabled ? -1 : 0,
|
|
3453
|
+
indeterminate: e.indeterminate
|
|
3454
|
+
})
|
|
3451
3455
|
})
|
|
3452
3456
|
}), Zs = {
|
|
3453
3457
|
container: "_container_1vgw8_1",
|
|
@@ -3457,43 +3461,51 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3457
3461
|
button: "_button_1vgw8_18",
|
|
3458
3462
|
label: "_label_1vgw8_21",
|
|
3459
3463
|
dot: "_dot_1vgw8_32"
|
|
3460
|
-
}, Qs =
|
|
3464
|
+
}, Qs = $n((e) => e.reduce((e, { label: t, tooltip: n, value: r }) => (e[r] = /* @__PURE__ */ v(W, {
|
|
3461
3465
|
text: /* @__PURE__ */ y(_, { children: [
|
|
3462
3466
|
n,
|
|
3463
3467
|
n ? ": " : "",
|
|
3464
3468
|
t == null ? r : t
|
|
3465
3469
|
] }),
|
|
3466
3470
|
children: /* @__PURE__ */ v("div", { className: Zs.dot })
|
|
3467
|
-
}), e), {}),
|
|
3471
|
+
}), 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
3472
|
enabled: !1,
|
|
3469
3473
|
width: "100px",
|
|
3470
3474
|
height: "400px"
|
|
3471
|
-
}, onChange: b
|
|
3472
|
-
let
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
},
|
|
3475
|
+
}, onChange: b, onChangeComplete: x }) => {
|
|
3476
|
+
let S = s(H), C = Qs(l), w = (n) => ({ target: {
|
|
3477
|
+
name: e == null ? "" : e,
|
|
3478
|
+
value: n,
|
|
3479
|
+
label: typeof t == "string" ? t : String(t)
|
|
3480
|
+
} }), T = (e) => {
|
|
3481
|
+
b(w(e));
|
|
3482
|
+
}, E = (e) => {
|
|
3483
|
+
x == null || x(w(e));
|
|
3484
|
+
}, D = () => /* @__PURE__ */ v("div", {
|
|
3479
3485
|
className: Zs.button,
|
|
3480
3486
|
children: /* @__PURE__ */ v(K, {
|
|
3481
3487
|
basic: !0,
|
|
3482
3488
|
small: !0,
|
|
3483
3489
|
round: !0,
|
|
3484
|
-
onClick: () =>
|
|
3485
|
-
|
|
3486
|
-
|
|
3490
|
+
onClick: () => {
|
|
3491
|
+
let e = m ? [a, i == null ? void 0 : i[1]] : a;
|
|
3492
|
+
T(e), E(e);
|
|
3493
|
+
},
|
|
3494
|
+
disabled: p || i === a || S,
|
|
3495
|
+
icon: V.FAST_BACKWARD
|
|
3487
3496
|
})
|
|
3488
|
-
}),
|
|
3497
|
+
}), O = () => /* @__PURE__ */ v("div", {
|
|
3489
3498
|
className: Zs.button,
|
|
3490
3499
|
children: /* @__PURE__ */ v(K, {
|
|
3491
3500
|
basic: !0,
|
|
3492
3501
|
small: !0,
|
|
3493
3502
|
round: !0,
|
|
3494
|
-
onClick: () =>
|
|
3495
|
-
|
|
3496
|
-
|
|
3503
|
+
onClick: () => {
|
|
3504
|
+
let e = m ? [i == null ? void 0 : i[0], o] : o;
|
|
3505
|
+
T(e), E(e);
|
|
3506
|
+
},
|
|
3507
|
+
disabled: p || i === o || S,
|
|
3508
|
+
icon: V.FAST_FORWARD
|
|
3497
3509
|
})
|
|
3498
3510
|
});
|
|
3499
3511
|
return /* @__PURE__ */ y("div", {
|
|
@@ -3503,22 +3515,23 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3503
3515
|
height: _.height
|
|
3504
3516
|
} : { width: n },
|
|
3505
3517
|
children: [
|
|
3506
|
-
u && (_.enabled ? /* @__PURE__ */ v(
|
|
3507
|
-
/* @__PURE__ */ v(
|
|
3518
|
+
u && (_.enabled ? /* @__PURE__ */ v(O, {}) : /* @__PURE__ */ v(D, {})),
|
|
3519
|
+
/* @__PURE__ */ v(Qn, {
|
|
3508
3520
|
range: m,
|
|
3509
3521
|
allowCross: !1,
|
|
3510
|
-
className: g((p ||
|
|
3522
|
+
className: g((p || S) && Zs.rcSliderDisabled, u && Zs.hasArrows),
|
|
3511
3523
|
value: i,
|
|
3512
3524
|
max: o,
|
|
3513
3525
|
min: a,
|
|
3514
3526
|
step: c,
|
|
3515
|
-
marks:
|
|
3516
|
-
onChange: (e) =>
|
|
3517
|
-
|
|
3527
|
+
marks: C,
|
|
3528
|
+
onChange: (e) => T(e),
|
|
3529
|
+
onChangeComplete: (e) => E(e),
|
|
3530
|
+
disabled: p || S,
|
|
3518
3531
|
vertical: _.enabled,
|
|
3519
3532
|
handleRender: (e, t) => /* @__PURE__ */ y("div", {
|
|
3520
3533
|
style: { position: "relative" },
|
|
3521
|
-
children: [e, d && t.dragging && /* @__PURE__ */ v(
|
|
3534
|
+
children: [e, d && t.dragging && /* @__PURE__ */ v(W, {
|
|
3522
3535
|
display: "block",
|
|
3523
3536
|
text: f(i),
|
|
3524
3537
|
forceOpen: !0,
|
|
@@ -3529,7 +3542,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3529
3542
|
})]
|
|
3530
3543
|
})
|
|
3531
3544
|
}),
|
|
3532
|
-
u && (_.enabled ? /* @__PURE__ */ v(
|
|
3545
|
+
u && (_.enabled ? /* @__PURE__ */ v(D, {}) : /* @__PURE__ */ v(O, {})),
|
|
3533
3546
|
t && /* @__PURE__ */ v("label", {
|
|
3534
3547
|
className: Zs.label,
|
|
3535
3548
|
style: { width: r },
|
|
@@ -3556,19 +3569,19 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3556
3569
|
let { tooltip: t, icon: n } = e;
|
|
3557
3570
|
return /* @__PURE__ */ v("div", {
|
|
3558
3571
|
className: X.iconCellWrapper,
|
|
3559
|
-
children: /* @__PURE__ */ v(
|
|
3572
|
+
children: /* @__PURE__ */ v(W, {
|
|
3560
3573
|
text: t,
|
|
3561
3574
|
enabled: !!t && J(t),
|
|
3562
3575
|
display: "flex",
|
|
3563
3576
|
placement: "top-center",
|
|
3564
|
-
children: /* @__PURE__ */ v(
|
|
3577
|
+
children: /* @__PURE__ */ v(U, { icon: n })
|
|
3565
3578
|
})
|
|
3566
3579
|
});
|
|
3567
3580
|
}, nc = ({ cell: e }) => /* @__PURE__ */ v(Ji, { actions: e.actions }), rc = ({ cell: e }) => {
|
|
3568
3581
|
let { helpIcon: t } = e;
|
|
3569
3582
|
return t ? /* @__PURE__ */ v("div", {
|
|
3570
3583
|
className: X.icon,
|
|
3571
|
-
children: /* @__PURE__ */ v(
|
|
3584
|
+
children: /* @__PURE__ */ v(si, {
|
|
3572
3585
|
onClick: t.onClick,
|
|
3573
3586
|
text: t.tooltip
|
|
3574
3587
|
})
|
|
@@ -3577,10 +3590,10 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3577
3590
|
let { libraryIcon: t } = e;
|
|
3578
3591
|
return t ? /* @__PURE__ */ v("div", {
|
|
3579
3592
|
className: X.icon,
|
|
3580
|
-
children: /* @__PURE__ */ v(
|
|
3593
|
+
children: /* @__PURE__ */ v(si, {
|
|
3581
3594
|
onClick: t.onClick,
|
|
3582
3595
|
text: t.tooltip,
|
|
3583
|
-
icon:
|
|
3596
|
+
icon: V.LIBRARY
|
|
3584
3597
|
})
|
|
3585
3598
|
}) : null;
|
|
3586
3599
|
}, ac = ({ cell: e }) => {
|
|
@@ -3589,13 +3602,13 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3589
3602
|
className: X.sortingCellIcon,
|
|
3590
3603
|
children: [n === "down" ? /* @__PURE__ */ v(ha, {
|
|
3591
3604
|
link: !0,
|
|
3592
|
-
children: /* @__PURE__ */ v(
|
|
3605
|
+
children: /* @__PURE__ */ v(U, { icon: V.SORT_ASCENDING })
|
|
3593
3606
|
}) : n === "up" ? /* @__PURE__ */ v(ha, {
|
|
3594
3607
|
link: !0,
|
|
3595
|
-
children: /* @__PURE__ */ v(
|
|
3608
|
+
children: /* @__PURE__ */ v(U, { icon: V.SORT_DESCENDING })
|
|
3596
3609
|
}) : /* @__PURE__ */ v(ha, {
|
|
3597
3610
|
faint: !0,
|
|
3598
|
-
children: /* @__PURE__ */ v(
|
|
3611
|
+
children: /* @__PURE__ */ v(U, { icon: V.SORT_DESCENDING })
|
|
3599
3612
|
}), r && n ? /* @__PURE__ */ v("sup", { children: r }) : null]
|
|
3600
3613
|
}) : null;
|
|
3601
3614
|
}, oc = ({ cell: e, isHeader: t, testId: n }) => {
|
|
@@ -3613,7 +3626,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3613
3626
|
});
|
|
3614
3627
|
return /* @__PURE__ */ v("div", {
|
|
3615
3628
|
className: X.inputWrapper,
|
|
3616
|
-
children: /* @__PURE__ */ v(
|
|
3629
|
+
children: /* @__PURE__ */ v(W, {
|
|
3617
3630
|
error: !!r,
|
|
3618
3631
|
warning: !!i,
|
|
3619
3632
|
text: a || r || i,
|
|
@@ -3649,7 +3662,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3649
3662
|
disabled: "_disabled_1u1qo_98",
|
|
3650
3663
|
isInTable: "_isInTable_1u1qo_114",
|
|
3651
3664
|
helpIconEnabled: "_helpIconEnabled_1u1qo_119"
|
|
3652
|
-
}, 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 =
|
|
3665
|
+
}, 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 }) => {
|
|
3653
3666
|
let f = l || u;
|
|
3654
3667
|
return /* @__PURE__ */ y("div", {
|
|
3655
3668
|
className: g(cc.radio, i ? cc.disabled : null, a ? cc.small : null, s ? cc.noMargin : null, t ? null : cc.noLabel),
|
|
@@ -3657,7 +3670,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3657
3670
|
"data-testid": c,
|
|
3658
3671
|
children: [
|
|
3659
3672
|
/* @__PURE__ */ v("input", {
|
|
3660
|
-
type:
|
|
3673
|
+
type: kr.RADIO,
|
|
3661
3674
|
value: n,
|
|
3662
3675
|
checked: r,
|
|
3663
3676
|
onChange: () => {},
|
|
@@ -3672,7 +3685,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3672
3685
|
f && /* @__PURE__ */ v("div", {
|
|
3673
3686
|
className: cc.helpIconEnabled,
|
|
3674
3687
|
onClick: u,
|
|
3675
|
-
children: /* @__PURE__ */ v(
|
|
3688
|
+
children: /* @__PURE__ */ v(si, { text: l })
|
|
3676
3689
|
})
|
|
3677
3690
|
]
|
|
3678
3691
|
});
|
|
@@ -3719,7 +3732,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3719
3732
|
}
|
|
3720
3733
|
}, fc = /* @__PURE__ */ function(e) {
|
|
3721
3734
|
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;
|
|
3722
|
-
}({}), pc = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r =
|
|
3735
|
+
}({}), pc = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = Tr.LEFT, width: i, testId: a }) => {
|
|
3723
3736
|
var o;
|
|
3724
3737
|
if (!e) return null;
|
|
3725
3738
|
let { style: s, colSpan: c, rowSpan: l, width: u, textAlign: d } = e, f = p(null), m = {
|
|
@@ -3730,7 +3743,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3730
3743
|
}, 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 = {
|
|
3731
3744
|
width: x,
|
|
3732
3745
|
minWidth: x,
|
|
3733
|
-
textTransform: t && S ?
|
|
3746
|
+
textTransform: t && S ? Dr.CAPITALIZE : void 0,
|
|
3734
3747
|
...s
|
|
3735
3748
|
};
|
|
3736
3749
|
return /* @__PURE__ */ v(t ? "th" : "td", {
|
|
@@ -3741,7 +3754,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3741
3754
|
rowSpan: l,
|
|
3742
3755
|
children: /* @__PURE__ */ v(dc, {
|
|
3743
3756
|
cell: e,
|
|
3744
|
-
columnAlignment: _ == null ?
|
|
3757
|
+
columnAlignment: _ == null ? Tr.RIGHT : _,
|
|
3745
3758
|
isHeader: t,
|
|
3746
3759
|
testId: a
|
|
3747
3760
|
})
|
|
@@ -3763,11 +3776,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3763
3776
|
actions: e.actions
|
|
3764
3777
|
},
|
|
3765
3778
|
isHeader: n
|
|
3766
|
-
}, r), { attributes: O, listeners: k, setNodeRef: A, transform: j, transition: M, isDragging: N } =
|
|
3779
|
+
}, r), { attributes: O, listeners: k, setNodeRef: A, transform: j, transition: M, isDragging: N } = Yn({
|
|
3767
3780
|
id: t.toString(),
|
|
3768
3781
|
animateLayoutChanges: () => !1
|
|
3769
3782
|
}), P = {
|
|
3770
|
-
transform: u ? void 0 :
|
|
3783
|
+
transform: u ? void 0 : Zn.Translate.toString(j),
|
|
3771
3784
|
height: d,
|
|
3772
3785
|
transition: M,
|
|
3773
3786
|
opacity: N ? 0 : void 0
|
|
@@ -3809,7 +3822,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3809
3822
|
className: g(Is.dragIcon, u ? Is.dragIconDisabled : ""),
|
|
3810
3823
|
...O,
|
|
3811
3824
|
...k,
|
|
3812
|
-
children: /* @__PURE__ */ v(
|
|
3825
|
+
children: /* @__PURE__ */ v(U, { icon: V.DRAG })
|
|
3813
3826
|
})
|
|
3814
3827
|
}) : null,
|
|
3815
3828
|
E,
|
|
@@ -3822,8 +3835,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3822
3835
|
}, `${t}_expanded_content`) : null] });
|
|
3823
3836
|
}, hc = (e) => {
|
|
3824
3837
|
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]);
|
|
3825
|
-
return a ? /* @__PURE__ */ y(
|
|
3826
|
-
collisionDetection:
|
|
3838
|
+
return a ? /* @__PURE__ */ y(tr, {
|
|
3839
|
+
collisionDetection: rr,
|
|
3827
3840
|
onDragStart: (e) => {
|
|
3828
3841
|
p(e.active.id);
|
|
3829
3842
|
},
|
|
@@ -3847,11 +3860,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3847
3860
|
to: i
|
|
3848
3861
|
}));
|
|
3849
3862
|
},
|
|
3850
|
-
children: [/* @__PURE__ */ v(
|
|
3863
|
+
children: [/* @__PURE__ */ v(Jn, {
|
|
3851
3864
|
items: b,
|
|
3852
|
-
strategy:
|
|
3865
|
+
strategy: Xn,
|
|
3853
3866
|
children: t({ dropDisabled: h })
|
|
3854
|
-
}), !!f &&
|
|
3867
|
+
}), !!f && yn(/* @__PURE__ */ v(nr, {
|
|
3855
3868
|
dropAnimation: null,
|
|
3856
3869
|
children: /* @__PURE__ */ v("table", {
|
|
3857
3870
|
className: g(mo.table, mo.dragOverlay),
|
|
@@ -3877,7 +3890,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
3877
3890
|
}) : t({});
|
|
3878
3891
|
}, gc = ({ table: e, children: t }) => {
|
|
3879
3892
|
var n, r, i;
|
|
3880
|
-
let a = p(null), o =
|
|
3893
|
+
let a = p(null), o = ir({
|
|
3881
3894
|
count: (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n,
|
|
3882
3895
|
getScrollElement: () => a.current,
|
|
3883
3896
|
estimateSize: () => 31,
|
|
@@ -4121,9 +4134,9 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4121
4134
|
]);
|
|
4122
4135
|
let S = d(() => t.fields.map((e, r) => {
|
|
4123
4136
|
var a, o, s;
|
|
4124
|
-
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) =>
|
|
4137
|
+
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);
|
|
4125
4138
|
if (!l.length || u) return {};
|
|
4126
|
-
let d = t == null || (a = t.units) == null ? void 0 : a[r], f =
|
|
4139
|
+
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;
|
|
4127
4140
|
return {
|
|
4128
4141
|
key: i == null || (s = i[r]) == null ? void 0 : s.value,
|
|
4129
4142
|
value: p,
|
|
@@ -4472,7 +4485,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4472
4485
|
throw Error(`${n("jsonParseFailed")} ${e.message}`);
|
|
4473
4486
|
}
|
|
4474
4487
|
}, tl = (e) => e.replace(",", "."), nl = (e) => e.map((e) => e.map((e) => tl(e))), rl = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
|
|
4475
|
-
|
|
4488
|
+
or.parse(e, {
|
|
4476
4489
|
...Kc,
|
|
4477
4490
|
preview: t,
|
|
4478
4491
|
complete: (e) => {
|
|
@@ -4505,7 +4518,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4505
4518
|
t,
|
|
4506
4519
|
...n
|
|
4507
4520
|
].filter(Boolean);
|
|
4508
|
-
return
|
|
4521
|
+
return or.unparse(o, {
|
|
4509
4522
|
quotes: !1,
|
|
4510
4523
|
header: !0,
|
|
4511
4524
|
delimiter: a
|
|
@@ -4550,12 +4563,12 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4550
4563
|
default: return "info";
|
|
4551
4564
|
}
|
|
4552
4565
|
})();
|
|
4553
|
-
return e !== void 0 &&
|
|
4566
|
+
return e !== void 0 && lr.isActive(e) ? lr.update(e, {
|
|
4554
4567
|
render: o,
|
|
4555
4568
|
autoClose: n,
|
|
4556
4569
|
onClose: r,
|
|
4557
4570
|
type: s
|
|
4558
|
-
}) :
|
|
4571
|
+
}) : lr(o, {
|
|
4559
4572
|
toastId: e,
|
|
4560
4573
|
autoClose: n,
|
|
4561
4574
|
onClose: r,
|
|
@@ -4565,11 +4578,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4565
4578
|
pauseOnHover: !0,
|
|
4566
4579
|
draggable: !1,
|
|
4567
4580
|
closeButton: a,
|
|
4568
|
-
transition:
|
|
4581
|
+
transition: sr,
|
|
4569
4582
|
type: s
|
|
4570
4583
|
});
|
|
4571
4584
|
}, cl = (e) => {
|
|
4572
|
-
|
|
4585
|
+
lr.dismiss(e);
|
|
4573
4586
|
}, ll = (e, t) => {
|
|
4574
4587
|
t(() => {
|
|
4575
4588
|
sl({ ...e });
|
|
@@ -4580,8 +4593,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4580
4593
|
disabled: "_disabled_18fme_105",
|
|
4581
4594
|
noMargin: "_noMargin_18fme_113",
|
|
4582
4595
|
helpIconEnabled: "_helpIconEnabled_18fme_116"
|
|
4583
|
-
}, 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 =
|
|
4584
|
-
let p = s(
|
|
4596
|
+
}, 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 }) => {
|
|
4597
|
+
let p = s(H), m = u || d, h = r || p;
|
|
4585
4598
|
return /* @__PURE__ */ y("div", {
|
|
4586
4599
|
className: g(ul.toggle, h ? ul.disabled : null, a ? ul.small : null, c ? ul.noMargin : null),
|
|
4587
4600
|
style: { display: i },
|
|
@@ -4591,7 +4604,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4591
4604
|
"data-testid": l,
|
|
4592
4605
|
children: [
|
|
4593
4606
|
/* @__PURE__ */ v("input", {
|
|
4594
|
-
type:
|
|
4607
|
+
type: kr.CHECKBOX,
|
|
4595
4608
|
name: e,
|
|
4596
4609
|
value: n == null ? void 0 : n.toString(),
|
|
4597
4610
|
disabled: h,
|
|
@@ -4605,7 +4618,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4605
4618
|
m && /* @__PURE__ */ v("div", {
|
|
4606
4619
|
className: ul.helpIconEnabled,
|
|
4607
4620
|
onClick: d,
|
|
4608
|
-
children: /* @__PURE__ */ v(
|
|
4621
|
+
children: /* @__PURE__ */ v(si, { text: u })
|
|
4609
4622
|
})
|
|
4610
4623
|
]
|
|
4611
4624
|
});
|
|
@@ -4630,7 +4643,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4630
4643
|
let j = o((t) => {
|
|
4631
4644
|
if (t) {
|
|
4632
4645
|
var n, r, i;
|
|
4633
|
-
let t =
|
|
4646
|
+
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 = {
|
|
4634
4647
|
validationRules: s,
|
|
4635
4648
|
importLimit: (r = e.importLimit) == null ? xc : r
|
|
4636
4649
|
}, o = al(I.fields.slice(0, 2), ((i = I.units) == null ? [] : i).slice(0, 2), t, a);
|
|
@@ -4671,7 +4684,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4671
4684
|
/* @__PURE__ */ y("div", {
|
|
4672
4685
|
className: io.headerContainer,
|
|
4673
4686
|
children: [
|
|
4674
|
-
/* @__PURE__ */ v(
|
|
4687
|
+
/* @__PURE__ */ v(W, {
|
|
4675
4688
|
text: u("downsampleTooltip"),
|
|
4676
4689
|
children: /* @__PURE__ */ v(dl, {
|
|
4677
4690
|
label: u("downsampled"),
|
|
@@ -4680,7 +4693,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4680
4693
|
disabled: re || !L
|
|
4681
4694
|
})
|
|
4682
4695
|
}),
|
|
4683
|
-
/* @__PURE__ */ v(
|
|
4696
|
+
/* @__PURE__ */ v(W, {
|
|
4684
4697
|
text: u("deletePastedContent"),
|
|
4685
4698
|
children: /* @__PURE__ */ v(K, {
|
|
4686
4699
|
name: "clearReview",
|
|
@@ -4689,7 +4702,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4689
4702
|
onClick: M
|
|
4690
4703
|
})
|
|
4691
4704
|
}),
|
|
4692
|
-
/* @__PURE__ */ v(
|
|
4705
|
+
/* @__PURE__ */ v(W, {
|
|
4693
4706
|
text: u("openHelp"),
|
|
4694
4707
|
children: /* @__PURE__ */ v(K, {
|
|
4695
4708
|
name: "help",
|
|
@@ -4916,7 +4929,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
4916
4929
|
...e,
|
|
4917
4930
|
rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
|
|
4918
4931
|
let t = String(e == null ? "" : e);
|
|
4919
|
-
return yl.test(t) ?
|
|
4932
|
+
return yl.test(t) ? Cn(t) : t;
|
|
4920
4933
|
}))
|
|
4921
4934
|
};
|
|
4922
4935
|
}, xl = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
|
|
@@ -5077,7 +5090,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5077
5090
|
onClickCopyClipboard: o(async (e) => {
|
|
5078
5091
|
let t = await v();
|
|
5079
5092
|
if (!t) return;
|
|
5080
|
-
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) =>
|
|
5093
|
+
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: " " });
|
|
5081
5094
|
try {
|
|
5082
5095
|
await navigator.clipboard.writeText(c), ll({ message: {
|
|
5083
5096
|
type: "Success",
|
|
@@ -5100,7 +5113,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5100
5113
|
} }, i);
|
|
5101
5114
|
return;
|
|
5102
5115
|
}
|
|
5103
|
-
if (!tn(e) || e.length < 2 || !$t(e, (e) => un(e) && $t(
|
|
5116
|
+
if (!tn(e) || e.length < 2 || !$t(e, (e) => un(e) && $t(_n(e), dn))) {
|
|
5104
5117
|
ll({ message: {
|
|
5105
5118
|
type: "Error",
|
|
5106
5119
|
content: "Smart upload returned unexpected format.",
|
|
@@ -5322,8 +5335,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5322
5335
|
testId: n
|
|
5323
5336
|
})
|
|
5324
5337
|
] });
|
|
5325
|
-
}, Ol = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a =
|
|
5326
|
-
let c = s(
|
|
5338
|
+
}, Ol = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = pn, ...o }) => {
|
|
5339
|
+
let c = s(H), l = p(null), u = () => {
|
|
5327
5340
|
var e;
|
|
5328
5341
|
i || c || (e = l.current) == null || e.click();
|
|
5329
5342
|
}, d = (e) => {
|
|
@@ -5361,7 +5374,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5361
5374
|
onClick: () => {},
|
|
5362
5375
|
tooltip: "",
|
|
5363
5376
|
testId: void 0
|
|
5364
|
-
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u =
|
|
5377
|
+
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = Dr.CAPITALIZE }) => {
|
|
5365
5378
|
var d;
|
|
5366
5379
|
return /* @__PURE__ */ v("div", {
|
|
5367
5380
|
className: g(kl.label, c ? kl.labelLeft : "", l ? kl.small : ""),
|
|
@@ -5373,25 +5386,25 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5373
5386
|
children: [e, /* @__PURE__ */ y("div", {
|
|
5374
5387
|
className: kl.icons,
|
|
5375
5388
|
children: [
|
|
5376
|
-
(n || i) && /* @__PURE__ */ v(
|
|
5389
|
+
(n || i) && /* @__PURE__ */ v(si, {
|
|
5377
5390
|
text: n,
|
|
5378
5391
|
onClick: i,
|
|
5379
5392
|
maxWidth: r
|
|
5380
5393
|
}),
|
|
5381
|
-
o && /* @__PURE__ */ v(
|
|
5394
|
+
o && /* @__PURE__ */ v(si, {
|
|
5382
5395
|
text: o,
|
|
5383
|
-
icon:
|
|
5396
|
+
icon: V.INFO
|
|
5384
5397
|
}),
|
|
5385
|
-
a && a.visible && a.onClick && /* @__PURE__ */ v(
|
|
5398
|
+
a && a.visible && a.onClick && /* @__PURE__ */ v(si, {
|
|
5386
5399
|
onClick: a.onClick,
|
|
5387
|
-
icon: a.active ?
|
|
5400
|
+
icon: a.active ? V.LOCK : V.UNLOCK,
|
|
5388
5401
|
active: a.active,
|
|
5389
5402
|
testId: a.testId
|
|
5390
5403
|
}),
|
|
5391
|
-
s && /* @__PURE__ */ v(
|
|
5404
|
+
s && /* @__PURE__ */ v(si, {
|
|
5392
5405
|
text: (d = s == null ? void 0 : s.tooltip) == null ? "" : d,
|
|
5393
5406
|
onClick: s.onClick,
|
|
5394
|
-
icon:
|
|
5407
|
+
icon: V.LIBRARY
|
|
5395
5408
|
})
|
|
5396
5409
|
]
|
|
5397
5410
|
})]
|
|
@@ -5410,7 +5423,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5410
5423
|
onClick: () => {},
|
|
5411
5424
|
tooltip: "",
|
|
5412
5425
|
testId: void 0
|
|
5413
|
-
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f =
|
|
5426
|
+
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = Dr.CAPITALIZE }) => /* @__PURE__ */ y("div", {
|
|
5414
5427
|
className: g(jl.field, t ? jl.labelLeft : ""),
|
|
5415
5428
|
"data-testid": d,
|
|
5416
5429
|
children: [(e || t) && /* @__PURE__ */ v(Al, {
|
|
@@ -5504,7 +5517,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5504
5517
|
}, Bl = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ v("a", {
|
|
5505
5518
|
className: Z.toggleNarrow,
|
|
5506
5519
|
onClick: t,
|
|
5507
|
-
children: /* @__PURE__ */ v(
|
|
5520
|
+
children: /* @__PURE__ */ v(U, { icon: V.CHEVRON_LEFT })
|
|
5508
5521
|
}) : null, Vl = r(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ y("div", {
|
|
5509
5522
|
ref: a,
|
|
5510
5523
|
className: g(Z.header, i ? Z.stickyHeader : ""),
|
|
@@ -5537,7 +5550,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5537
5550
|
small: e.small
|
|
5538
5551
|
})
|
|
5539
5552
|
}) : null, Ul = ({ name: e, icon: t, testId: n }) => {
|
|
5540
|
-
let r = t && /* @__PURE__ */ v(
|
|
5553
|
+
let r = t && /* @__PURE__ */ v(U, {
|
|
5541
5554
|
icon: t.icon,
|
|
5542
5555
|
color: t.color || "#db2828"
|
|
5543
5556
|
});
|
|
@@ -5546,7 +5559,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5546
5559
|
"data-testid": n,
|
|
5547
5560
|
children: [e, t && t.tooltip && t.tooltip.text ? /* @__PURE__ */ v("span", {
|
|
5548
5561
|
className: Z.iconTooltipMargin,
|
|
5549
|
-
children: /* @__PURE__ */ v(
|
|
5562
|
+
children: /* @__PURE__ */ v(W, {
|
|
5550
5563
|
text: t.tooltip.text,
|
|
5551
5564
|
maxWidth: "350px",
|
|
5552
5565
|
children: r
|
|
@@ -5586,7 +5599,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5586
5599
|
}, Gl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ v(Pi, {
|
|
5587
5600
|
color: "rgba(0,0,0,0.25)",
|
|
5588
5601
|
title: e.metaCount
|
|
5589
|
-
}), Kl = ({ item: e, expanding: t }) => /* @__PURE__ */ v(
|
|
5602
|
+
}), Kl = ({ item: e, expanding: t }) => /* @__PURE__ */ v(Wr, {
|
|
5590
5603
|
expanded: !!t && !!e.active && !!e.content,
|
|
5591
5604
|
children: /* @__PURE__ */ v("div", {
|
|
5592
5605
|
className: Z.itemContent,
|
|
@@ -5597,7 +5610,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5597
5610
|
})
|
|
5598
5611
|
}), ql = r(({ item: e, index: t }, n) => {
|
|
5599
5612
|
var r;
|
|
5600
|
-
let i = s(
|
|
5613
|
+
let i = s(H), { actions: a, disabled: o, expanded: c, onClick: l, title: u, name: d, icon: f, testId: p } = e;
|
|
5601
5614
|
return /* @__PURE__ */ v("div", {
|
|
5602
5615
|
ref: (e) => {
|
|
5603
5616
|
n && "current" in n && Array.isArray(n.current) && t !== void 0 && (n.current[t] = e);
|
|
@@ -5613,7 +5626,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5613
5626
|
children: [
|
|
5614
5627
|
typeof c == "boolean" && /* @__PURE__ */ v("div", {
|
|
5615
5628
|
className: g(Z.expandIcon, c && Z.expanded),
|
|
5616
|
-
children: /* @__PURE__ */ v(
|
|
5629
|
+
children: /* @__PURE__ */ v(U, { icon: V.CHEVRON_RIGHT })
|
|
5617
5630
|
}),
|
|
5618
5631
|
/* @__PURE__ */ v(Ul, {
|
|
5619
5632
|
name: d,
|
|
@@ -5630,7 +5643,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5630
5643
|
}) })
|
|
5631
5644
|
});
|
|
5632
5645
|
}), Jl = r(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
|
|
5633
|
-
let o = s(
|
|
5646
|
+
let o = s(H), c = (e, t, s, c, l, u) => {
|
|
5634
5647
|
let d = t.actions && t.actions.find((e) => {
|
|
5635
5648
|
var t;
|
|
5636
5649
|
return e.label && ((t = String(e.label)) == null ? void 0 : t.toLowerCase()) === "edit";
|
|
@@ -5659,11 +5672,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5659
5672
|
className: Z.drag,
|
|
5660
5673
|
...c,
|
|
5661
5674
|
...l,
|
|
5662
|
-
children: /* @__PURE__ */ v(
|
|
5675
|
+
children: /* @__PURE__ */ v(U, { icon: V.DRAG })
|
|
5663
5676
|
}),
|
|
5664
5677
|
t.level && t.level > 0 ? /* @__PURE__ */ v("div", {
|
|
5665
5678
|
className: Z.indentIcon,
|
|
5666
|
-
children: /* @__PURE__ */ v(
|
|
5679
|
+
children: /* @__PURE__ */ v(U, { icon: V.INDENT })
|
|
5667
5680
|
}) : null,
|
|
5668
5681
|
/* @__PURE__ */ v(Hl, { label: t.label }),
|
|
5669
5682
|
/* @__PURE__ */ v(Wl, { item: t }),
|
|
@@ -5687,12 +5700,12 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5687
5700
|
item: e,
|
|
5688
5701
|
index: t
|
|
5689
5702
|
}, t) : i ? ((e, t) => {
|
|
5690
|
-
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } =
|
|
5703
|
+
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = Yn({
|
|
5691
5704
|
id: e.toString(),
|
|
5692
5705
|
animateLayoutChanges: () => !1
|
|
5693
5706
|
});
|
|
5694
5707
|
return c(e, t, {
|
|
5695
|
-
transform:
|
|
5708
|
+
transform: Zn.Translate.toString(a),
|
|
5696
5709
|
transition: o,
|
|
5697
5710
|
opacity: +!s
|
|
5698
5711
|
}, n, r, i);
|
|
@@ -5708,15 +5721,15 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5708
5721
|
to: Number(o)
|
|
5709
5722
|
});
|
|
5710
5723
|
}, c = d(() => n.items.map((e, t) => t.toString()), [n.items]);
|
|
5711
|
-
return t ? /* @__PURE__ */ y(
|
|
5712
|
-
collisionDetection:
|
|
5724
|
+
return t ? /* @__PURE__ */ y(tr, {
|
|
5725
|
+
collisionDetection: rr,
|
|
5713
5726
|
onDragStart: o,
|
|
5714
5727
|
onDragEnd: s,
|
|
5715
|
-
children: [/* @__PURE__ */ v(
|
|
5728
|
+
children: [/* @__PURE__ */ v(Jn, {
|
|
5716
5729
|
items: c,
|
|
5717
|
-
strategy:
|
|
5730
|
+
strategy: Xn,
|
|
5718
5731
|
children: e
|
|
5719
|
-
}), !!i &&
|
|
5732
|
+
}), !!i && yn(/* @__PURE__ */ v(nr, {
|
|
5720
5733
|
dropAnimation: null,
|
|
5721
5734
|
children: /* @__PURE__ */ v("div", {
|
|
5722
5735
|
className: Z.dragOverlay,
|
|
@@ -5729,7 +5742,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5729
5742
|
}), document.body)]
|
|
5730
5743
|
}) : e;
|
|
5731
5744
|
}, Xl = ({ items: e, scrollDetails: t, children: n }) => {
|
|
5732
|
-
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: s } = t, l = p(null), u =
|
|
5745
|
+
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: s } = t, l = p(null), u = ir({
|
|
5733
5746
|
count: e.length,
|
|
5734
5747
|
getScrollElement: () => l.current,
|
|
5735
5748
|
estimateSize: o(() => {
|
|
@@ -5826,8 +5839,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5826
5839
|
content: "_content_477i5_44",
|
|
5827
5840
|
text: "_text_477i5_49",
|
|
5828
5841
|
details: "_details_477i5_53"
|
|
5829
|
-
}, eu = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s =
|
|
5830
|
-
let l = s ===
|
|
5842
|
+
}, 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 }) => {
|
|
5843
|
+
let l = s === Or.DARK ? Or.WHITE : Or.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
|
|
5831
5844
|
return /* @__PURE__ */ v("div", {
|
|
5832
5845
|
className: g($l.loader, a ? $l.cover : "", { [$l.fullViewPortSize]: i }),
|
|
5833
5846
|
style: {
|
|
@@ -5869,7 +5882,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5869
5882
|
let { key: n, label: r, selected: i, testId: a } = e == null ? {} : e;
|
|
5870
5883
|
return /* @__PURE__ */ v("div", {
|
|
5871
5884
|
className: tu.item,
|
|
5872
|
-
children: /* @__PURE__ */ v(
|
|
5885
|
+
children: /* @__PURE__ */ v(ci, {
|
|
5873
5886
|
label: r,
|
|
5874
5887
|
noMargin: !0,
|
|
5875
5888
|
checked: i,
|
|
@@ -5940,7 +5953,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5940
5953
|
testId: c ? `${c}-menu-layer` : void 0,
|
|
5941
5954
|
small: a,
|
|
5942
5955
|
label: n,
|
|
5943
|
-
trigger:
|
|
5956
|
+
trigger: Cr.DROP_DOWN_BUTTON,
|
|
5944
5957
|
possiblePlacements: ["top-start", "bottom-start"],
|
|
5945
5958
|
sections: /* @__PURE__ */ v(au, {
|
|
5946
5959
|
testId: c,
|
|
@@ -5972,7 +5985,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
5972
5985
|
className: lu.printHeader,
|
|
5973
5986
|
style: { width: n }
|
|
5974
5987
|
}), 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" }) => {
|
|
5975
|
-
let m = s(
|
|
5988
|
+
let m = s(H), h = f !== void 0, { simpleInputs: _, options: b, selectedOptions: x } = h ? {
|
|
5976
5989
|
simpleInputs: !1,
|
|
5977
5990
|
options: f,
|
|
5978
5991
|
selectedOptions: void 0
|
|
@@ -6045,7 +6058,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6045
6058
|
round: !0,
|
|
6046
6059
|
basic: !0,
|
|
6047
6060
|
icon: e.icon,
|
|
6048
|
-
colored:
|
|
6061
|
+
colored: wr.MUTED,
|
|
6049
6062
|
onClick: e.onClick,
|
|
6050
6063
|
active: e.active,
|
|
6051
6064
|
disabled: t
|
|
@@ -6062,11 +6075,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6062
6075
|
hideScrollbars: "_hideScrollbars_gb097_67",
|
|
6063
6076
|
richTextInput: "_richTextInput_gb097_77"
|
|
6064
6077
|
}, gu = a(r(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
|
|
6065
|
-
let o = s(
|
|
6078
|
+
let o = s(H), u = r || o, d = fr({
|
|
6066
6079
|
extensions: [
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6080
|
+
pr,
|
|
6081
|
+
mr.configure({ placeholder: e }),
|
|
6082
|
+
hr
|
|
6070
6083
|
],
|
|
6071
6084
|
content: n == null ? "" : n,
|
|
6072
6085
|
contentType: "markdown",
|
|
@@ -6093,7 +6106,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6093
6106
|
editor: d,
|
|
6094
6107
|
disabled: u,
|
|
6095
6108
|
toolbarComponent: i
|
|
6096
|
-
}), /* @__PURE__ */ v(
|
|
6109
|
+
}), /* @__PURE__ */ v(dr, { editor: d })]
|
|
6097
6110
|
});
|
|
6098
6111
|
})), _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 }) => {
|
|
6099
6112
|
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));
|
|
@@ -6133,7 +6146,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6133
6146
|
experimental: "_experimental_1oy1z_155",
|
|
6134
6147
|
active: "_active_1oy1z_159",
|
|
6135
6148
|
icon: "_icon_1oy1z_163"
|
|
6136
|
-
}, bu = a(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(
|
|
6149
|
+
}, bu = a(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(W, {
|
|
6137
6150
|
text: t,
|
|
6138
6151
|
enabled: !e,
|
|
6139
6152
|
placement: "right-center",
|
|
@@ -6147,13 +6160,13 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6147
6160
|
small: !0,
|
|
6148
6161
|
title: r ? "!" : void 0,
|
|
6149
6162
|
margin: 4,
|
|
6150
|
-
children: /* @__PURE__ */ v(
|
|
6163
|
+
children: /* @__PURE__ */ v(U, { icon: n })
|
|
6151
6164
|
})
|
|
6152
6165
|
})
|
|
6153
6166
|
}), /* @__PURE__ */ v("span", {
|
|
6154
6167
|
className: yu.label,
|
|
6155
6168
|
children: t
|
|
6156
|
-
})] }), (e, t) =>
|
|
6169
|
+
})] }), (e, t) => er(e, t)), xu = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ v("div", {
|
|
6157
6170
|
className: yu.list,
|
|
6158
6171
|
children: t.map((t, a) => {
|
|
6159
6172
|
let o = `${n}_${a}`;
|
|
@@ -6189,7 +6202,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6189
6202
|
top: r,
|
|
6190
6203
|
background: "var(--color-background-sidebar)",
|
|
6191
6204
|
closedWidth: "var(--size-sidebar)",
|
|
6192
|
-
buttonPosition:
|
|
6205
|
+
buttonPosition: Er.BOTTOM,
|
|
6193
6206
|
buttonAnimate: !0,
|
|
6194
6207
|
button: s && /* @__PURE__ */ v(K, {
|
|
6195
6208
|
onClick: (e) => {
|
|
@@ -6197,7 +6210,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6197
6210
|
},
|
|
6198
6211
|
colored: !0,
|
|
6199
6212
|
round: !0,
|
|
6200
|
-
icon:
|
|
6213
|
+
icon: V.LEFT
|
|
6201
6214
|
}),
|
|
6202
6215
|
children: /* @__PURE__ */ v("div", {
|
|
6203
6216
|
className: g(yu.sidebar, i ? "" : yu.collapsed),
|
|
@@ -6214,10 +6227,10 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6214
6227
|
})
|
|
6215
6228
|
})
|
|
6216
6229
|
});
|
|
6217
|
-
}, (e, t) =>
|
|
6230
|
+
}, (e, t) => er(e, t)), wu = {
|
|
6218
6231
|
skeletonContainer: "_skeletonContainer_mcfxp_9",
|
|
6219
6232
|
skeleton: "_skeleton_mcfxp_9"
|
|
6220
|
-
}, Tu = ({ count: e, width: t, height: n }) => /* @__PURE__ */ v(
|
|
6233
|
+
}, Tu = ({ count: e, width: t, height: n }) => /* @__PURE__ */ v(gr, {
|
|
6221
6234
|
baseColor: "var(--color-skeleton-base)",
|
|
6222
6235
|
highlightColor: "var(--color-skeleton-highlight)",
|
|
6223
6236
|
containerClassName: wu.skeletonContainer,
|
|
@@ -6260,8 +6273,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6260
6273
|
}, Ou = ({ children: e, activeTabIndex: t, contentPadding: n }) => Array.isArray(e) ? /* @__PURE__ */ v("div", {
|
|
6261
6274
|
className: g(n ? Eu.contentPadding : ""),
|
|
6262
6275
|
children: e.map((e, n) => t === n && e)
|
|
6263
|
-
}) : null, ku = ({ name: e = void 0, options: t = null, children: n = null, value: r = void 0, onChange: i =
|
|
6264
|
-
let p = s(
|
|
6276
|
+
}) : 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 }) => {
|
|
6277
|
+
let p = s(H), m = l !== void 0, h = n ? n.map((e, t) => {
|
|
6265
6278
|
var n;
|
|
6266
6279
|
return {
|
|
6267
6280
|
value: t,
|
|
@@ -6327,8 +6340,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6327
6340
|
textarea: "_textarea_q0tl0_77",
|
|
6328
6341
|
small: "_small_q0tl0_116",
|
|
6329
6342
|
monospace: "_monospace_q0tl0_155"
|
|
6330
|
-
}, Mu = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o =
|
|
6331
|
-
let S = s(
|
|
6343
|
+
}, 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 }) => {
|
|
6344
|
+
let S = s(H), C = /* @__PURE__ */ v("textarea", {
|
|
6332
6345
|
className: g(ju.textarea, f ? ju.error : "", p ? ju.warning : "", y ? ju.monospace : "", b ? ju.small : ""),
|
|
6333
6346
|
name: e,
|
|
6334
6347
|
value: t,
|
|
@@ -6346,7 +6359,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6346
6359
|
"data-warning": p || null,
|
|
6347
6360
|
"data-testid": x
|
|
6348
6361
|
});
|
|
6349
|
-
return /* @__PURE__ */ v(
|
|
6362
|
+
return /* @__PURE__ */ v(W, {
|
|
6350
6363
|
error: !!f,
|
|
6351
6364
|
warning: !!p,
|
|
6352
6365
|
text: m || f || p,
|
|
@@ -6375,7 +6388,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6375
6388
|
className: Q.alert,
|
|
6376
6389
|
children: e
|
|
6377
6390
|
}), Pu = ({ icon: e, url: t, onClick: n }) => {
|
|
6378
|
-
let r = /* @__PURE__ */ v(
|
|
6391
|
+
let r = /* @__PURE__ */ v(U, { icon: e });
|
|
6379
6392
|
return t ? /* @__PURE__ */ v("a", {
|
|
6380
6393
|
href: t,
|
|
6381
6394
|
onClick: n,
|
|
@@ -6418,7 +6431,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6418
6431
|
}, Iu = /* @__PURE__ */ function(e) {
|
|
6419
6432
|
return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
|
|
6420
6433
|
}({}), Lu = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: c = "a" }) => {
|
|
6421
|
-
let l = s(
|
|
6434
|
+
let l = s(H);
|
|
6422
6435
|
return /* @__PURE__ */ y(c, {
|
|
6423
6436
|
className: g(Q.link, i ? Q.active : ""),
|
|
6424
6437
|
href: t || "#",
|
|
@@ -6466,7 +6479,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6466
6479
|
children: /* @__PURE__ */ v(Ki, {
|
|
6467
6480
|
maxHeight: "100%",
|
|
6468
6481
|
menu: {
|
|
6469
|
-
trigger:
|
|
6482
|
+
trigger: Cr.COMPONENT,
|
|
6470
6483
|
fullHeightTrigger: !0,
|
|
6471
6484
|
placement: "bottom-start",
|
|
6472
6485
|
component: /* @__PURE__ */ v(Lu, {
|
|
@@ -6589,16 +6602,16 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6589
6602
|
className: Uu.toggle,
|
|
6590
6603
|
children: /* @__PURE__ */ v(K, {
|
|
6591
6604
|
basic: !0,
|
|
6592
|
-
colored: r ? !0 :
|
|
6605
|
+
colored: r ? !0 : wr.MUTED,
|
|
6593
6606
|
small: !0,
|
|
6594
6607
|
round: !0,
|
|
6595
|
-
icon: r ? (s == null ? void 0 : s.collapse) ||
|
|
6608
|
+
icon: r ? (s == null ? void 0 : s.collapse) || V.COLLAPSE : (s == null ? void 0 : s.expand) || V.EXPAND,
|
|
6596
6609
|
onClick: C
|
|
6597
6610
|
})
|
|
6598
6611
|
}),
|
|
6599
6612
|
o && /* @__PURE__ */ v("div", {
|
|
6600
6613
|
className: Z.drag,
|
|
6601
|
-
children: /* @__PURE__ */ v(
|
|
6614
|
+
children: /* @__PURE__ */ v(U, { icon: V.DRAG })
|
|
6602
6615
|
}),
|
|
6603
6616
|
/* @__PURE__ */ v(Wl, { item: u }),
|
|
6604
6617
|
/* @__PURE__ */ y("div", {
|
|
@@ -6676,11 +6689,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6676
6689
|
name: e.name,
|
|
6677
6690
|
actions: e.actions,
|
|
6678
6691
|
stickyHeader: h
|
|
6679
|
-
}), /* @__PURE__ */ v(
|
|
6680
|
-
backend:
|
|
6681
|
-
options:
|
|
6692
|
+
}), /* @__PURE__ */ v(_r, {
|
|
6693
|
+
backend: vr,
|
|
6694
|
+
options: br(),
|
|
6682
6695
|
context: window,
|
|
6683
|
-
children: /* @__PURE__ */ v(
|
|
6696
|
+
children: /* @__PURE__ */ v(yr, {
|
|
6684
6697
|
ref: S,
|
|
6685
6698
|
tree: j,
|
|
6686
6699
|
sort: !1,
|
|
@@ -6762,7 +6775,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6762
6775
|
indeterminate: a > 0 && a < r.length
|
|
6763
6776
|
};
|
|
6764
6777
|
}, $u = n(null), ed = () => s($u), td = ({ children: e, rowCheckboxes: t, rows: n }) => {
|
|
6765
|
-
let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [],
|
|
6778
|
+
let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [], getTooltip: s, onChange: c } = t == null ? {} : t, l = d(() => new Set(a), [a]), u = d(() => {
|
|
6766
6779
|
if (!r) return null;
|
|
6767
6780
|
let e = /* @__PURE__ */ new Map();
|
|
6768
6781
|
for (let t of n) e.set(t.id, Zu(n, t.id, i, a));
|
|
@@ -6772,78 +6785,81 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6772
6785
|
a,
|
|
6773
6786
|
r,
|
|
6774
6787
|
n
|
|
6775
|
-
]),
|
|
6788
|
+
]), f = d(() => r ? Qu(n, i, a) : void 0, [
|
|
6776
6789
|
i,
|
|
6777
6790
|
a,
|
|
6778
6791
|
r,
|
|
6779
6792
|
n
|
|
6780
|
-
]),
|
|
6781
|
-
if (!r ||
|
|
6782
|
-
let t = Ju(n, e), o = [e, ...t.filter((e) => !
|
|
6793
|
+
]), p = o((e) => u == null ? void 0 : u.get(e), [u]), m = o((e) => l.has(e), [l]), h = o((e) => s == null ? void 0 : s(e), [s]), g = o((e) => {
|
|
6794
|
+
if (!r || l.has(e)) return;
|
|
6795
|
+
let t = Ju(n, e), o = [e, ...t.filter((e) => !l.has(e))], s = [e, ...t], { checked: u } = Zu(n, e, i, a);
|
|
6783
6796
|
if (u) {
|
|
6784
|
-
let e = new Set(
|
|
6785
|
-
|
|
6786
|
-
} else
|
|
6797
|
+
let e = new Set(s);
|
|
6798
|
+
c == null || c(Xu(i, e, l));
|
|
6799
|
+
} else c == null || c([...new Set([...i, ...o])]);
|
|
6787
6800
|
}, [
|
|
6788
6801
|
i,
|
|
6789
6802
|
a,
|
|
6790
|
-
|
|
6803
|
+
l,
|
|
6791
6804
|
r,
|
|
6792
|
-
|
|
6805
|
+
c,
|
|
6793
6806
|
n
|
|
6794
|
-
]),
|
|
6807
|
+
]), _ = o(() => {
|
|
6795
6808
|
if (!r) return;
|
|
6796
6809
|
let e = Yu(n, a), { checked: t } = Qu(n, i, a);
|
|
6797
|
-
t ?
|
|
6810
|
+
t ? c == null || c(i.filter((e) => l.has(e))) : c == null || c([...new Set([...i, ...e])]);
|
|
6798
6811
|
}, [
|
|
6799
6812
|
i,
|
|
6800
6813
|
a,
|
|
6801
|
-
|
|
6814
|
+
l,
|
|
6802
6815
|
r,
|
|
6803
|
-
|
|
6816
|
+
c,
|
|
6804
6817
|
n
|
|
6805
|
-
]),
|
|
6818
|
+
]), y = d(() => ({
|
|
6806
6819
|
enabled: r,
|
|
6807
|
-
headerCheckState:
|
|
6808
|
-
getRowCheckState:
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6820
|
+
headerCheckState: f,
|
|
6821
|
+
getRowCheckState: p,
|
|
6822
|
+
getRowCheckTooltip: h,
|
|
6823
|
+
isRowCheckDisabled: m,
|
|
6824
|
+
toggleRowCheck: g,
|
|
6825
|
+
toggleHeaderCheck: _
|
|
6812
6826
|
}), [
|
|
6813
6827
|
r,
|
|
6814
|
-
f,
|
|
6815
|
-
u,
|
|
6816
6828
|
p,
|
|
6817
6829
|
h,
|
|
6818
|
-
|
|
6830
|
+
f,
|
|
6831
|
+
m,
|
|
6832
|
+
_,
|
|
6833
|
+
g
|
|
6819
6834
|
]);
|
|
6820
6835
|
return /* @__PURE__ */ v($u.Provider, {
|
|
6821
|
-
value:
|
|
6836
|
+
value: y,
|
|
6822
6837
|
children: e
|
|
6823
6838
|
});
|
|
6824
6839
|
}, nd = ({ columnAlignment: e, columnWidths: t, depth: n, draggable: r, handleRef: i, hasChild: a, hasRowActions: o, icons: s, isOpen: c, node: l, onDragEnter: u, onDragOver: d, onDragLeave: f, onDrop: p, onToggle: m }) => {
|
|
6825
|
-
let h = ed(), _ = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, b = _ == null ? void 0 : _.checked, x = _ == null ? void 0 : _.indeterminate, S = h == null ? void 0 : h.isRowCheckDisabled(l.id), { data:
|
|
6840
|
+
let h = ed(), _ = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, b = _ == null ? void 0 : _.checked, x = _ == null ? void 0 : _.indeterminate, S = h == null ? void 0 : h.isRowCheckDisabled(l.id), C = h == null ? void 0 : h.enabled, { data: w, droppable: T } = l, { id: E, cells: D, testId: O, actions: k = [], active: A, onRowClick: j } = w, M = T || a, N = (e) => {
|
|
6826
6841
|
let r = t ? t[e] : void 0;
|
|
6827
|
-
return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${
|
|
6842
|
+
return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${M ? n + 1 : n})`})` : r;
|
|
6828
6843
|
};
|
|
6829
6844
|
return /* @__PURE__ */ v("table", {
|
|
6830
6845
|
className: mo.table,
|
|
6831
|
-
"data-testid":
|
|
6846
|
+
"data-testid": O,
|
|
6832
6847
|
onDrop: p,
|
|
6833
6848
|
onDragEnter: u,
|
|
6834
6849
|
onDragOver: d,
|
|
6835
6850
|
onDragLeave: f,
|
|
6836
6851
|
children: /* @__PURE__ */ v("tbody", { children: /* @__PURE__ */ y("tr", {
|
|
6837
|
-
onClick:
|
|
6838
|
-
className: g(qu.treeTableRow,
|
|
6852
|
+
onClick: j,
|
|
6853
|
+
className: g(qu.treeTableRow, A ? qu.active : void 0),
|
|
6839
6854
|
children: [
|
|
6840
|
-
|
|
6855
|
+
C && /* @__PURE__ */ v(pc, {
|
|
6841
6856
|
isHeader: !1,
|
|
6842
6857
|
cell: {
|
|
6843
6858
|
type: fc.CHECKBOX,
|
|
6844
6859
|
checked: b,
|
|
6845
6860
|
disabled: S,
|
|
6846
6861
|
indeterminate: x,
|
|
6862
|
+
tooltip: h == null ? void 0 : h.getRowCheckTooltip(l.id),
|
|
6847
6863
|
onChange: () => h == null ? void 0 : h.toggleRowCheck(l.id)
|
|
6848
6864
|
}
|
|
6849
6865
|
}),
|
|
@@ -6853,27 +6869,27 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6853
6869
|
className: qu.drag,
|
|
6854
6870
|
onClick: (e) => e.stopPropagation(),
|
|
6855
6871
|
ref: i,
|
|
6856
|
-
children: /* @__PURE__ */ v(
|
|
6872
|
+
children: /* @__PURE__ */ v(U, { icon: V.DRAG })
|
|
6857
6873
|
})
|
|
6858
6874
|
}),
|
|
6859
6875
|
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ v("td", { className: qu.folderCell }, t)),
|
|
6860
|
-
|
|
6876
|
+
M && /* @__PURE__ */ v("td", {
|
|
6861
6877
|
className: qu.folderCell,
|
|
6862
6878
|
children: /* @__PURE__ */ v("div", {
|
|
6863
6879
|
className: qu.folder,
|
|
6864
|
-
onClick: () => m(
|
|
6880
|
+
onClick: () => m(E),
|
|
6865
6881
|
onMouseDown: (e) => e.stopPropagation(),
|
|
6866
6882
|
children: /* @__PURE__ */ v(K, {
|
|
6867
6883
|
basic: !0,
|
|
6868
|
-
colored: c ? !0 :
|
|
6884
|
+
colored: c ? !0 : wr.MUTED,
|
|
6869
6885
|
disabled: !a,
|
|
6870
6886
|
small: !0,
|
|
6871
6887
|
round: !0,
|
|
6872
|
-
icon: a && c ? (s == null ? void 0 : s.collapse) ||
|
|
6888
|
+
icon: a && c ? (s == null ? void 0 : s.collapse) || V.COLLAPSE : (s == null ? void 0 : s.expand) || V.EXPAND
|
|
6873
6889
|
})
|
|
6874
6890
|
})
|
|
6875
6891
|
}),
|
|
6876
|
-
|
|
6892
|
+
D.map((t, n) => /* @__PURE__ */ v(pc, {
|
|
6877
6893
|
isHeader: !1,
|
|
6878
6894
|
cell: t,
|
|
6879
6895
|
width: N(n),
|
|
@@ -6883,7 +6899,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6883
6899
|
isHeader: !1,
|
|
6884
6900
|
cell: {
|
|
6885
6901
|
type: fc.ACTIONS,
|
|
6886
|
-
actions:
|
|
6902
|
+
actions: k
|
|
6887
6903
|
}
|
|
6888
6904
|
})
|
|
6889
6905
|
]
|
|
@@ -6984,30 +7000,30 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
6984
7000
|
let n = t == null ? void 0 : t[e];
|
|
6985
7001
|
if (!n) {
|
|
6986
7002
|
var r;
|
|
6987
|
-
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r =
|
|
7003
|
+
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = Un(e)) == null ? "" : r;
|
|
6988
7004
|
}
|
|
6989
7005
|
return n;
|
|
6990
7006
|
}, cd = /* @__PURE__ */ function(e) {
|
|
6991
7007
|
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
6992
7008
|
}({}), ld = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), ud = (e) => {
|
|
6993
7009
|
if (!e) return !1;
|
|
6994
|
-
let t =
|
|
6995
|
-
return !
|
|
7010
|
+
let t = Dn(e);
|
|
7011
|
+
return !xn.includes(t);
|
|
6996
7012
|
}, dd = ({ value: e, unitkey: t, toUnit: n }) => {
|
|
6997
7013
|
var r;
|
|
6998
|
-
let i =
|
|
6999
|
-
if (!i || i.length === 0 || !((r =
|
|
7000
|
-
let a =
|
|
7014
|
+
let i = bn[t];
|
|
7015
|
+
if (!i || i.length === 0 || !((r = Wn(e)) != null && r.valid) || !i.includes(n)) return !1;
|
|
7016
|
+
let a = Dn(String(e));
|
|
7001
7017
|
return !(a && !i.includes(a));
|
|
7002
7018
|
}, fd = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
|
|
7003
7019
|
var o;
|
|
7004
|
-
let s =
|
|
7020
|
+
let s = Nn(e) ? kn(e) : e, c = [Infinity, -Infinity].includes(Number(s));
|
|
7005
7021
|
if (i || c) return {
|
|
7006
7022
|
value: s,
|
|
7007
7023
|
error: null
|
|
7008
7024
|
};
|
|
7009
|
-
let l = r || (
|
|
7010
|
-
if (!((o =
|
|
7025
|
+
let l = r || (Nn(e) ? Dn(e) : Un(t));
|
|
7026
|
+
if (!((o = Wn(s)) != null && o.valid)) return {
|
|
7011
7027
|
value: void 0,
|
|
7012
7028
|
error: "Invalid number format"
|
|
7013
7029
|
};
|
|
@@ -7024,16 +7040,16 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7024
7040
|
error: "Value is invalid for conversion"
|
|
7025
7041
|
};
|
|
7026
7042
|
try {
|
|
7027
|
-
let e =
|
|
7043
|
+
let e = Kn(s, l);
|
|
7028
7044
|
return dd({
|
|
7029
7045
|
value: e,
|
|
7030
7046
|
toUnit: n,
|
|
7031
7047
|
unitkey: t
|
|
7032
7048
|
}) ? {
|
|
7033
|
-
value:
|
|
7049
|
+
value: kn(Hs(a ? Tn(e, n) : wn(e, n))),
|
|
7034
7050
|
error: null
|
|
7035
7051
|
} : {
|
|
7036
|
-
value:
|
|
7052
|
+
value: kn(e),
|
|
7037
7053
|
error: null
|
|
7038
7054
|
};
|
|
7039
7055
|
} catch {
|
|
@@ -7043,12 +7059,12 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7043
7059
|
};
|
|
7044
7060
|
}
|
|
7045
7061
|
}, pd = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
|
|
7046
|
-
let a =
|
|
7062
|
+
let a = kn(e), o = ld(a);
|
|
7047
7063
|
return !dd({
|
|
7048
7064
|
value: e,
|
|
7049
7065
|
unitkey: n,
|
|
7050
7066
|
toUnit: t
|
|
7051
|
-
}) || ud(e) || o ? { value: a } :
|
|
7067
|
+
}) || ud(e) || o ? { value: a } : Nn(e) ? fd({
|
|
7052
7068
|
value: e,
|
|
7053
7069
|
unitkey: n,
|
|
7054
7070
|
toUnit: t,
|
|
@@ -7056,21 +7072,21 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7056
7072
|
doNotConvertValue: i,
|
|
7057
7073
|
exactPrecision: !0
|
|
7058
7074
|
}) : { value: e };
|
|
7059
|
-
}, md = (e) => ln(e) && !tn(e) && !on(e) ? en(e, "fieldName", "") : typeof e == "string" ? e : "", hd = (e = "") =>
|
|
7060
|
-
let n =
|
|
7075
|
+
}, md = (e) => ln(e) && !tn(e) && !on(e) ? en(e, "fieldName", "") : typeof e == "string" ? e : "", hd = (e = "") => xn == null ? void 0 : xn.includes(e), gd = (e, t) => {
|
|
7076
|
+
let n = Dn(e || "");
|
|
7061
7077
|
return hd(t) && hd(n);
|
|
7062
7078
|
}, _d = n(null), vd = () => s(_d), yd = !1, bd = (e) => {
|
|
7063
7079
|
yd || (yd = !0, _d = e);
|
|
7064
|
-
}, xd = (e) =>
|
|
7080
|
+
}, xd = (e) => jn(e) ? e : Fn(e), Sd = {
|
|
7065
7081
|
predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
|
|
7066
7082
|
inputWrapper: "_inputWrapper_ye9w9_4"
|
|
7067
|
-
}, Cd = ({ 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 =
|
|
7083
|
+
}, Cd = ({ 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 = () => ({
|
|
7068
7084
|
name: "",
|
|
7069
7085
|
error: null
|
|
7070
7086
|
}), 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 }) => {
|
|
7071
7087
|
let ne = vd(), re = ad();
|
|
7072
7088
|
typeof l == "number" && (l = `${l}`);
|
|
7073
|
-
let [ie = "", ae = ""] = l === void 0 ? [] :
|
|
7089
|
+
let [ie = "", ae = ""] = l === void 0 ? [] : zn(l), R = d(() => sd(u, C || (ne == null ? void 0 : ne.unitTemplate)), [
|
|
7074
7090
|
u,
|
|
7075
7091
|
C,
|
|
7076
7092
|
ne == null ? void 0 : ne.unitTemplate
|
|
@@ -7089,12 +7105,12 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7089
7105
|
}), de = M || (z == null ? void 0 : z.value) === void 0, [fe, pe] = m(D ? cd.PREDEFINED : cd.CUSTOM), me = !!(j || n), he = E && E.find((e) => {
|
|
7090
7106
|
if (!(e != null && e.value)) return;
|
|
7091
7107
|
if (k) return k === e.valueKey;
|
|
7092
|
-
let t =
|
|
7108
|
+
let t = Nn(e.value) ? Dn(e.value) : "", { value: n = l } = fd({
|
|
7093
7109
|
value: String(l),
|
|
7094
7110
|
unitkey: u,
|
|
7095
7111
|
toUnit: t
|
|
7096
7112
|
});
|
|
7097
|
-
return
|
|
7113
|
+
return Kn(n, t) === e.value;
|
|
7098
7114
|
}), ge = () => {
|
|
7099
7115
|
var e;
|
|
7100
7116
|
let t = (e = l) == null ? "" : e, n = z.unit;
|
|
@@ -7103,21 +7119,21 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7103
7119
|
unitkey: u,
|
|
7104
7120
|
toUnit: n
|
|
7105
7121
|
})) {
|
|
7106
|
-
let e =
|
|
7122
|
+
let e = En(u);
|
|
7107
7123
|
return e == null ? void 0 : e.map((e) => ["", e == null ? void 0 : e.unit]);
|
|
7108
7124
|
} else if (u) try {
|
|
7109
|
-
let e =
|
|
7110
|
-
return
|
|
7125
|
+
let e = Sn(t, u);
|
|
7126
|
+
return kn(t) === "" ? e.map((e) => ["", e[1]]) : e;
|
|
7111
7127
|
} catch {
|
|
7112
7128
|
return null;
|
|
7113
7129
|
}
|
|
7114
7130
|
}, _e = (t) => {
|
|
7115
|
-
let n = md(e), r = t.target, { value: i, selectionStart: a } = r, o =
|
|
7131
|
+
let n = md(e), r = t.target, { value: i, selectionStart: a } = r, o = Kn(i, (z == null ? void 0 : z.unit) || "");
|
|
7116
7132
|
h({ target: {
|
|
7117
|
-
value: N ?
|
|
7133
|
+
value: N ? Kn(wn(o, ae), ae) : o,
|
|
7118
7134
|
name: n
|
|
7119
7135
|
} });
|
|
7120
|
-
let [s, c] =
|
|
7136
|
+
let [s, c] = zn(o);
|
|
7121
7137
|
ue({
|
|
7122
7138
|
value: s,
|
|
7123
7139
|
unit: c
|
|
@@ -7142,7 +7158,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7142
7158
|
doNotConvertValue: p
|
|
7143
7159
|
});
|
|
7144
7160
|
e = n, t = se;
|
|
7145
|
-
} else if (
|
|
7161
|
+
} else if (Kn(z.value, z.unit) !== l) {
|
|
7146
7162
|
let { value: n } = pd({
|
|
7147
7163
|
value: l,
|
|
7148
7164
|
toUnit: z.unit,
|
|
@@ -7163,8 +7179,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7163
7179
|
i,
|
|
7164
7180
|
O
|
|
7165
7181
|
]);
|
|
7166
|
-
let ye = ge(), be =
|
|
7167
|
-
let r = t != null && t.value ? t.value : "", [i = "", a = ""] =
|
|
7182
|
+
let ye = ge(), be = Pn(z.unit) || z.unit || "", xe = p || !ye || ye && ye.length === 1, Se = md(e), Ce, we = (t) => {
|
|
7183
|
+
let r = t != null && t.value ? t.value : "", [i = "", a = ""] = Nn(r) ? zn(r) : [r], o = Gn(r);
|
|
7168
7184
|
if (dd({
|
|
7169
7185
|
value: r,
|
|
7170
7186
|
unitkey: u,
|
|
@@ -7177,13 +7193,13 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7177
7193
|
defaultFromUnit: a,
|
|
7178
7194
|
doNotConvertValue: p
|
|
7179
7195
|
});
|
|
7180
|
-
o =
|
|
7196
|
+
o = Gn(Kn(e, R));
|
|
7181
7197
|
}
|
|
7182
7198
|
return {
|
|
7183
7199
|
type: xi.OPTION,
|
|
7184
7200
|
inline: !0,
|
|
7185
7201
|
onClick: () => {
|
|
7186
|
-
|
|
7202
|
+
Wn(i).valid && !n && (pe(cd.PREDEFINED), h({ target: {
|
|
7187
7203
|
value: r,
|
|
7188
7204
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
|
|
7189
7205
|
predefinedSelected: !0,
|
|
@@ -7203,7 +7219,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7203
7219
|
inline: !0,
|
|
7204
7220
|
onClick: () => {
|
|
7205
7221
|
fe !== cd.CUSTOM && !n && h({ target: {
|
|
7206
|
-
value:
|
|
7222
|
+
value: Kn(z.value, z.unit),
|
|
7207
7223
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
|
|
7208
7224
|
} });
|
|
7209
7225
|
},
|
|
@@ -7214,8 +7230,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7214
7230
|
Ce = [...Ce, ...e];
|
|
7215
7231
|
}
|
|
7216
7232
|
let Te = (e) => {
|
|
7217
|
-
if (
|
|
7218
|
-
let t =
|
|
7233
|
+
if (Nn(e)) {
|
|
7234
|
+
let t = Dn(e), { value: n } = pd({
|
|
7219
7235
|
value: e,
|
|
7220
7236
|
toUnit: z.unit,
|
|
7221
7237
|
unitkey: u,
|
|
@@ -7225,7 +7241,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7225
7241
|
return n;
|
|
7226
7242
|
}
|
|
7227
7243
|
return e;
|
|
7228
|
-
}, Ee = !E && (!L || L ===
|
|
7244
|
+
}, Ee = !E && (!L || L === B.FIRST) ? B.FIRST : B.MIDDLE, De = !L || L === B.LAST ? B.LAST : B.MIDDLE;
|
|
7229
7245
|
return /* @__PURE__ */ v("div", {
|
|
7230
7246
|
className: fe === cd.PREDEFINED ? g(Sd.predefinedMenuActive) : "",
|
|
7231
7247
|
children: /* @__PURE__ */ y(Ma, {
|
|
@@ -7291,7 +7307,7 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7291
7307
|
trigger: "DropDownButton",
|
|
7292
7308
|
small: o,
|
|
7293
7309
|
sections: ye.map(([e = "", t = "", n]) => {
|
|
7294
|
-
let r = n || t || "", i =
|
|
7310
|
+
let r = n || t || "", i = Mn(e) ? e : "";
|
|
7295
7311
|
return {
|
|
7296
7312
|
type: "Option",
|
|
7297
7313
|
label: P ? xd(i) : i,
|
|
@@ -7408,8 +7424,8 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7408
7424
|
error: !u && (i == null ? void 0 : i.unitIsMissing) || l,
|
|
7409
7425
|
disabled: c || !u,
|
|
7410
7426
|
searchable: !1,
|
|
7411
|
-
options: (a =
|
|
7412
|
-
label:
|
|
7427
|
+
options: (a = On(s)) == null ? void 0 : a.map((e) => ({
|
|
7428
|
+
label: Pn(e),
|
|
7413
7429
|
value: e
|
|
7414
7430
|
})),
|
|
7415
7431
|
native: e.native,
|
|
@@ -7502,9 +7518,9 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7502
7518
|
children: /* @__PURE__ */ y(Nl, {
|
|
7503
7519
|
gap: "8px",
|
|
7504
7520
|
alignItems: "center",
|
|
7505
|
-
children: [m && /* @__PURE__ */ v(
|
|
7506
|
-
text:
|
|
7507
|
-
icon:
|
|
7521
|
+
children: [m && /* @__PURE__ */ v(si, {
|
|
7522
|
+
text: Wn(o).valid ? `${d == null ? void 0 : d.companySetting}: ${Nn(o) ? Gn(o) : o}` : d == null ? void 0 : d.companySettingDifferent,
|
|
7523
|
+
icon: V.INFO
|
|
7508
7524
|
}), /* @__PURE__ */ v(Cs, {
|
|
7509
7525
|
small: !0,
|
|
7510
7526
|
searchable: !1,
|
|
@@ -7574,11 +7590,11 @@ var Sr = /* @__PURE__ */ function(e) {
|
|
|
7574
7590
|
muted: !0,
|
|
7575
7591
|
children: a == null ? void 0 : a.changesTooLarge
|
|
7576
7592
|
})
|
|
7577
|
-
}) : /* @__PURE__ */ v(
|
|
7593
|
+
}) : /* @__PURE__ */ v(xr, {
|
|
7578
7594
|
oldValue: e,
|
|
7579
7595
|
newValue: t,
|
|
7580
7596
|
splitView: o === Ld,
|
|
7581
|
-
compareMethod:
|
|
7597
|
+
compareMethod: Sr.WORDS
|
|
7582
7598
|
})
|
|
7583
7599
|
}) });
|
|
7584
7600
|
};
|
|
@@ -8887,7 +8903,7 @@ var Nf = (e = {}) => Mf({
|
|
|
8887
8903
|
}
|
|
8888
8904
|
return n || "";
|
|
8889
8905
|
}, Lf = (e) => {
|
|
8890
|
-
let t = (e) =>
|
|
8906
|
+
let t = (e) => Nn(e) ? Gn(e) : String(e);
|
|
8891
8907
|
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);
|
|
8892
8908
|
}, Rf = (e) => {
|
|
8893
8909
|
switch (e.length) {
|
|
@@ -8992,7 +9008,7 @@ var Nf = (e = {}) => Mf({
|
|
|
8992
9008
|
}, qf = (e, t = e.length - 1) => {
|
|
8993
9009
|
if (t >= e.length) return "Value";
|
|
8994
9010
|
let n = e[t];
|
|
8995
|
-
return !n ||
|
|
9011
|
+
return !n || An(n) ? qf(e, t - 1) : Gf(n);
|
|
8996
9012
|
}, Jf = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
8997
9013
|
let o = Kf(r), s = Kf(i), c = a ? ` in ${a}` : "";
|
|
8998
9014
|
switch (t) {
|
|
@@ -9152,7 +9168,7 @@ var Nf = (e = {}) => Mf({
|
|
|
9152
9168
|
padding: !1,
|
|
9153
9169
|
children: r ? /* @__PURE__ */ v(eu, {
|
|
9154
9170
|
height: "100px",
|
|
9155
|
-
theme:
|
|
9171
|
+
theme: Or.WHITE,
|
|
9156
9172
|
children: /* @__PURE__ */ v(mi, { dark: !0 })
|
|
9157
9173
|
}) : /* @__PURE__ */ v(yc, { table: {
|
|
9158
9174
|
headers: T,
|
|
@@ -9214,4 +9230,4 @@ var Nf = (e = {}) => Mf({
|
|
|
9214
9230
|
});
|
|
9215
9231
|
};
|
|
9216
9232
|
//#endregion
|
|
9217
|
-
export {
|
|
9233
|
+
export { qr as Accordion, fi as AccordionWithDefaultToggle, Ji as Actions, Tr as Align, ep 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, zd 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, Fd 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, id as TreeTable, Cr as TriggerType, Cd as UnitInput, Nd as UnitTable, tp as UsageTracker, cl as dismissToast, bd as initializeContext, rp as initializeGuiLibrary, La as readFile, sl as toast, bo as useFocus, Va as useKeyboardEvent, Co as useWindowWidth };
|