@oliasoft-open-source/react-ui-library 6.7.0-beta-4 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/slider/slider.d.ts +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/slider-cell.d.ts.map +1 -1
- package/dist/global.css +1 -1
- package/dist/index.js +796 -787
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
import e, { Fragment as t, createContext as n, forwardRef as r, isValidElement as i, memo as a, useCallback as o, useContext as s, useEffect as c, useImperativeHandle as l, useLayoutEffect as u, useMemo as d, useReducer as f, useRef as p, useState as m, useTransition as h } from "react";
|
|
2
2
|
import g from "classnames";
|
|
3
3
|
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
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
|
|
5
|
-
import { CSSTransition as
|
|
6
|
-
import { FloatingArrow as
|
|
7
|
-
import { clamp 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 * as
|
|
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
|
|
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 L, TbChartPie2 as R, TbCheck as ee, TbChevronDown as te, TbChevronLeft as ne, TbChevronRight as re, TbChevronUp as ie, TbChevronsLeft as z, TbChevronsRight as ae, TbCircle as oe, TbCircleCheck as se, TbCircleX as ce, TbClipboard as B, TbClock as le, TbCode as ue, TbCopy as de, TbCornerDownRight as fe, TbDeviceFloppy as pe, TbDeviceLaptop as me, TbDotsVertical as he, TbDownload as ge, TbDroplet as _e, TbExclamationMark as ve, TbExternalLink as ye, TbEye as be, TbEyeOff as xe, TbFile as Se, TbFilter as Ce, TbFilterOff as we, TbFocusCentered as Te, TbFolder as Ee, TbFolderSearch as De, TbGauge as Oe, TbGitFork as ke, TbGripVertical as Ae, TbHelp as je, TbInfoCircle as Me, TbItalic as Ne, TbKey as Pe, TbLayoutColumns as Fe, TbLayoutRows as Ie, TbLibraryMinus as Le, TbLibraryPlus as Re, TbLink as ze, TbLinkOff as Be, TbList as Ve, TbListNumbers as He, TbLoader2 as Ue, TbLock as We, TbLockOpen as Ge, TbMapPin as Ke, TbMessageCircle as qe, TbMinus as Je, TbMoon as Ye, TbMovie as Xe, TbNote as Ze, TbPencil as Qe, TbPlayerPause as $e, TbPlayerPlay as et, TbPlayerSkipBack as tt, TbPlayerSkipForward as nt, TbPlayerStop as rt, TbPlayerTrackNext as it, TbPlayerTrackPrev as at, TbPlus as ot, TbQuestionMark as st, TbRefresh as ct, TbReload as lt, TbRotate as ut, TbRowInsertBottom as dt, TbRowInsertTop as ft, TbRuler3 as pt, TbScale as mt, TbSearch as ht, TbServer as gt, TbSettings as _t, TbSortAscending as vt, TbSortDescending as yt, TbSquarePlus as bt, TbStar as xt, TbSun as St, TbTable as Ct, TbTarget as wt, TbTrash as Tt, TbUpload as Et, TbUser as Dt, TbUsers as Ot, TbX as kt } from "react-icons/tb";
|
|
5
|
+
import { CSSTransition as At } from "react-transition-group";
|
|
6
|
+
import { FloatingArrow as jt, FloatingNode as Mt, FloatingPortal as Nt, FloatingTree as Pt, arrow as Ft, autoUpdate as It, flip as Lt, offset as Rt, shift as zt, size as Bt, useClientPoint as Vt, useDismiss as Ht, useFloating as Ut, useFloatingNodeId as Wt, useFloatingParentNodeId as Gt, useHover as Kt, useInteractions as qt, useMergeRefs as Jt } from "@floating-ui/react";
|
|
7
|
+
import { clamp as Yt, 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, sortBy as hn, toLower as gn, toNumber as _n, values as vn } from "es-toolkit/compat";
|
|
8
|
+
import { Resizable as yn } from "react-resizable";
|
|
9
|
+
import { createPortal as bn } from "react-dom";
|
|
10
|
+
import { ALT_UNITS as xn, KNOWN_UNITS as Sn, altUnitsList as Cn, cleanNumStr as wn, convertAndGetValue as Tn, convertSamePrecision as En, getAltUnitsListByQuantity as Dn, getUnit as On, getUnitsForQuantity as kn, getValue as An, isNumeric as jn, isScientificStringNum as Mn, isValidNum as Nn, isValueWithUnit as Pn, label as Fn, roundByMagnitude as In, roundByMagnitudeToFixed as Ln, roundToFixed as Rn, roundToPrecision as zn, split as Bn, stripLeadingZeros as Vn, toNum as Hn, toString as Un, unitFromQuantity as Wn, validateNumber as Gn, withPrettyUnitLabel as Kn, withUnit as qn } from "@oliasoft-open-source/units";
|
|
11
|
+
import { List as Jn } from "react-window";
|
|
12
|
+
import { SortableContext as Yn, useSortable as Xn, verticalListSortingStrategy as Zn } from "@dnd-kit/sortable";
|
|
13
|
+
import { CSS as Qn } from "@dnd-kit/utilities";
|
|
14
|
+
import * as $n from "@radix-ui/react-slider";
|
|
15
|
+
import er from "memoize-one";
|
|
16
|
+
import tr from "react-fast-compare";
|
|
17
|
+
import { DndContext as nr, DragOverlay as rr, closestCenter as ir } from "@dnd-kit/core";
|
|
18
|
+
import { useVirtualizer as ar } from "@tanstack/react-virtual";
|
|
19
|
+
import { SimplifyAP as or } from "simplify-ts";
|
|
20
|
+
import sr from "papaparse";
|
|
21
|
+
import { Slide as cr, ToastContainer as lr, toast as ur } from "react-toastify";
|
|
22
|
+
import { isNil as dr } from "es-toolkit";
|
|
23
|
+
import { EditorContent as fr, useEditor as pr } from "@tiptap/react";
|
|
24
|
+
import mr from "@tiptap/starter-kit";
|
|
25
|
+
import hr from "@tiptap/extension-placeholder";
|
|
26
|
+
import { Markdown as gr } from "@tiptap/markdown";
|
|
27
|
+
import _r 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 vr } from "react-dnd";
|
|
30
|
+
import { MultiBackend as yr, Tree as br, getBackendOptions as xr } from "@minoru/react-dnd-treeview";
|
|
31
|
+
import Sr, { DiffMethod as Cr } from "react-diff-viewer-continued";
|
|
32
32
|
//#region src/typings/common-types.ts
|
|
33
|
-
var
|
|
33
|
+
var wr = /* @__PURE__ */ function(e) {
|
|
34
34
|
return e.TEXT = "Text", e.BUTTON = "Button", e.DROP_DOWN_BUTTON = "DropDownButton", e.COMPONENT = "Component", e;
|
|
35
|
-
}({}),
|
|
35
|
+
}({}), V = /* @__PURE__ */ function(e) {
|
|
36
36
|
return e.FIRST = "first", e.MIDDLE = "middle", e.LAST = "last", e;
|
|
37
|
-
}({}),
|
|
37
|
+
}({}), Tr = /* @__PURE__ */ function(e) {
|
|
38
38
|
return e.DANGER = "danger", e.RED = "red", e.WHITE = "white", e.SUCCESS = "success", e.GREEN = "green", e.MUTED = "muted", e;
|
|
39
|
-
}({}),
|
|
39
|
+
}({}), Er = /* @__PURE__ */ function(e) {
|
|
40
40
|
return e.LEFT = "left", e.RIGHT = "right", e.CENTER = "center", e;
|
|
41
|
-
}({}),
|
|
41
|
+
}({}), Dr = /* @__PURE__ */ function(e) {
|
|
42
42
|
return e.TOP = "top", e.BOTTOM = "bottom", e;
|
|
43
|
-
}({}),
|
|
43
|
+
}({}), H = /* @__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
|
-
}({}),
|
|
45
|
+
}({}), Or = /* @__PURE__ */ function(e) {
|
|
46
46
|
return e.UPPERCASE = "uppercase", e.LOWERCASE = "lowercase", e.CAPITALIZE = "capitalize", e.NONE = "none", e;
|
|
47
|
-
}({}),
|
|
47
|
+
}({}), kr = /* @__PURE__ */ function(e) {
|
|
48
48
|
return e.DARK = "dark", e.WHITE = "white", e.LIGHT = "light", e.INHERIT = "inherit", e;
|
|
49
|
-
}({}),
|
|
49
|
+
}({}), Ar = /* @__PURE__ */ function(e) {
|
|
50
50
|
return e.TEXT = "text", e.RADIO = "radio", e.CHECKBOX = "checkbox", e;
|
|
51
|
-
}({}),
|
|
51
|
+
}({}), jr = {
|
|
52
52
|
chevron: "_chevron_dd6mn_1",
|
|
53
53
|
expanded: "_expanded_dd6mn_9"
|
|
54
|
-
},
|
|
54
|
+
}, U = e.createContext(!1), Mr = {
|
|
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
|
+
}, Nr = ({ 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: Mr.customSvg,
|
|
67
67
|
style: r
|
|
68
68
|
});
|
|
69
|
-
},
|
|
69
|
+
}, Pr = "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", 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='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", 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%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", Lr = "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", Rr = "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", 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='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", Br = "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", Vr = ({ icon: e }) => {
|
|
70
70
|
switch (e) {
|
|
71
71
|
case "add":
|
|
72
|
-
case "plus": return /* @__PURE__ */ v(
|
|
73
|
-
case "add above": return /* @__PURE__ */ v(
|
|
74
|
-
case "add below": return /* @__PURE__ */ v(
|
|
72
|
+
case "plus": return /* @__PURE__ */ v(ot, {});
|
|
73
|
+
case "add above": return /* @__PURE__ */ v(ft, {});
|
|
74
|
+
case "add below": return /* @__PURE__ */ v(dt, {});
|
|
75
75
|
case "arrow down":
|
|
76
76
|
case "down": return /* @__PURE__ */ v(x, {});
|
|
77
77
|
case "arrow left":
|
|
@@ -86,142 +86,142 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
86
86
|
case "camera": return /* @__PURE__ */ v(F, {});
|
|
87
87
|
case "close":
|
|
88
88
|
case "clear":
|
|
89
|
-
case "times": return /* @__PURE__ */ v(
|
|
89
|
+
case "times": return /* @__PURE__ */ v(kt, {});
|
|
90
90
|
case "chart":
|
|
91
|
-
case "chart line": return /* @__PURE__ */ v(
|
|
91
|
+
case "chart line": return /* @__PURE__ */ v(L, {});
|
|
92
92
|
case "chart bar": return /* @__PURE__ */ v(I, {});
|
|
93
|
-
case "chart pie": return /* @__PURE__ */ v(
|
|
94
|
-
case "chat": return /* @__PURE__ */ v(
|
|
93
|
+
case "chart pie": return /* @__PURE__ */ v(R, {});
|
|
94
|
+
case "chat": return /* @__PURE__ */ v(qe, {});
|
|
95
95
|
case "check":
|
|
96
|
-
case "checkmark": return /* @__PURE__ */ v(
|
|
97
|
-
case "chevron up": return /* @__PURE__ */ v(
|
|
98
|
-
case "chevron down": return /* @__PURE__ */ v(
|
|
99
|
-
case "chevron left": return /* @__PURE__ */ v(
|
|
100
|
-
case "chevron right": return /* @__PURE__ */ v(
|
|
101
|
-
case "chevron double left": return /* @__PURE__ */ v(
|
|
102
|
-
case "chevron double right": return /* @__PURE__ */ v(
|
|
103
|
-
case "clock": return /* @__PURE__ */ v(
|
|
96
|
+
case "checkmark": return /* @__PURE__ */ v(ee, {});
|
|
97
|
+
case "chevron up": return /* @__PURE__ */ v(ie, {});
|
|
98
|
+
case "chevron down": return /* @__PURE__ */ v(te, {});
|
|
99
|
+
case "chevron left": return /* @__PURE__ */ v(ne, {});
|
|
100
|
+
case "chevron right": return /* @__PURE__ */ v(re, {});
|
|
101
|
+
case "chevron double left": return /* @__PURE__ */ v(z, {});
|
|
102
|
+
case "chevron double right": return /* @__PURE__ */ v(ae, {});
|
|
103
|
+
case "clock": return /* @__PURE__ */ v(le, {});
|
|
104
104
|
case "clone":
|
|
105
105
|
case "copy":
|
|
106
|
-
case "duplicate": return /* @__PURE__ */ v(
|
|
107
|
-
case "code": return /* @__PURE__ */ v(
|
|
108
|
-
case "collapse": return /* @__PURE__ */ v(
|
|
109
|
-
case "collapse all": return /* @__PURE__ */ v(
|
|
106
|
+
case "duplicate": return /* @__PURE__ */ v(de, {});
|
|
107
|
+
case "code": return /* @__PURE__ */ v(ue, {});
|
|
108
|
+
case "collapse": return /* @__PURE__ */ v(Nr, { src: Pr });
|
|
109
|
+
case "collapse all": return /* @__PURE__ */ v(Le, {});
|
|
110
110
|
case "company": return /* @__PURE__ */ v(P, {});
|
|
111
|
-
case "compare": return /* @__PURE__ */ v(
|
|
111
|
+
case "compare": return /* @__PURE__ */ v(mt, {});
|
|
112
112
|
case "delete":
|
|
113
|
-
case "trash": return /* @__PURE__ */ v(
|
|
114
|
-
case "depth": return /* @__PURE__ */ v(
|
|
113
|
+
case "trash": return /* @__PURE__ */ v(Tt, {});
|
|
114
|
+
case "depth": return /* @__PURE__ */ v(pt, { style: { transform: "rotate(-90deg)" } });
|
|
115
115
|
case "download":
|
|
116
|
-
case "import": return /* @__PURE__ */ v(
|
|
117
|
-
case "drag": return /* @__PURE__ */ v(
|
|
116
|
+
case "import": return /* @__PURE__ */ v(ge, {});
|
|
117
|
+
case "drag": return /* @__PURE__ */ v(Ae, {});
|
|
118
118
|
case "edit":
|
|
119
119
|
case "pencil":
|
|
120
|
-
case "rename": return /* @__PURE__ */ v(
|
|
120
|
+
case "rename": return /* @__PURE__ */ v(Qe, {});
|
|
121
121
|
case "electricity": return /* @__PURE__ */ v(M, {});
|
|
122
|
-
case "error": return /* @__PURE__ */ v(
|
|
123
|
-
case "exclamation": return /* @__PURE__ */ v(
|
|
124
|
-
case "expand": return /* @__PURE__ */ v(
|
|
125
|
-
case "expand all": return /* @__PURE__ */ v(
|
|
126
|
-
case "external": return /* @__PURE__ */ v(
|
|
127
|
-
case "fast forward": return /* @__PURE__ */ v(
|
|
128
|
-
case "fast backward": return /* @__PURE__ */ v(
|
|
129
|
-
case "file": return /* @__PURE__ */ v(
|
|
130
|
-
case "filter": return /* @__PURE__ */ v(
|
|
131
|
-
case "focus": return /* @__PURE__ */ v(
|
|
132
|
-
case "folder": return /* @__PURE__ */ v(
|
|
133
|
-
case "folder search": return /* @__PURE__ */ v(
|
|
134
|
-
case "fork": return /* @__PURE__ */ v(
|
|
135
|
-
case "gauge": return /* @__PURE__ */ v(
|
|
136
|
-
case "help": return /* @__PURE__ */ v(
|
|
137
|
-
case "hide": return /* @__PURE__ */ v(
|
|
138
|
-
case "indent": return /* @__PURE__ */ v(
|
|
139
|
-
case "info": return /* @__PURE__ */ v(
|
|
140
|
-
case "italic": return /* @__PURE__ */ v(
|
|
141
|
-
case "key": return /* @__PURE__ */ v(
|
|
142
|
-
case "laptop": return /* @__PURE__ */ v(
|
|
122
|
+
case "error": return /* @__PURE__ */ v(ce, {});
|
|
123
|
+
case "exclamation": return /* @__PURE__ */ v(ve, {});
|
|
124
|
+
case "expand": return /* @__PURE__ */ v(bt, {});
|
|
125
|
+
case "expand all": return /* @__PURE__ */ v(Re, {});
|
|
126
|
+
case "external": return /* @__PURE__ */ v(ye, {});
|
|
127
|
+
case "fast forward": return /* @__PURE__ */ v(it, {});
|
|
128
|
+
case "fast backward": return /* @__PURE__ */ v(at, {});
|
|
129
|
+
case "file": return /* @__PURE__ */ v(Se, {});
|
|
130
|
+
case "filter": return /* @__PURE__ */ v(Ce, {});
|
|
131
|
+
case "focus": return /* @__PURE__ */ v(Te, {});
|
|
132
|
+
case "folder": return /* @__PURE__ */ v(Ee, {});
|
|
133
|
+
case "folder search": return /* @__PURE__ */ v(De, {});
|
|
134
|
+
case "fork": return /* @__PURE__ */ v(ke, {});
|
|
135
|
+
case "gauge": return /* @__PURE__ */ v(Oe, {});
|
|
136
|
+
case "help": return /* @__PURE__ */ v(je, {});
|
|
137
|
+
case "hide": return /* @__PURE__ */ v(xe, {});
|
|
138
|
+
case "indent": return /* @__PURE__ */ v(fe, {});
|
|
139
|
+
case "info": return /* @__PURE__ */ v(Me, {});
|
|
140
|
+
case "italic": return /* @__PURE__ */ v(Ne, {});
|
|
141
|
+
case "key": return /* @__PURE__ */ v(Pe, {});
|
|
142
|
+
case "laptop": return /* @__PURE__ */ v(me, {});
|
|
143
143
|
case "layout columns":
|
|
144
|
-
case "columns": return /* @__PURE__ */ v(
|
|
144
|
+
case "columns": return /* @__PURE__ */ v(Fe, {});
|
|
145
145
|
case "layout grid":
|
|
146
|
-
case "grid": return /* @__PURE__ */ v(
|
|
146
|
+
case "grid": return /* @__PURE__ */ v(Nr, { src: Br });
|
|
147
147
|
case "layout rows":
|
|
148
|
-
case "rows": return /* @__PURE__ */ v(
|
|
148
|
+
case "rows": return /* @__PURE__ */ v(Ie, {});
|
|
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(
|
|
155
|
-
case "link": return /* @__PURE__ */ v(
|
|
150
|
+
case "square": return /* @__PURE__ */ v(Nr, { src: Fr });
|
|
151
|
+
case "layout 3 split top": return /* @__PURE__ */ v(Nr, { src: Ir });
|
|
152
|
+
case "layout 3 split bottom": return /* @__PURE__ */ v(Nr, { src: Lr });
|
|
153
|
+
case "layout 3 split left": return /* @__PURE__ */ v(Nr, { src: Rr });
|
|
154
|
+
case "layout 3 split right": return /* @__PURE__ */ v(Nr, { src: zr });
|
|
155
|
+
case "link": return /* @__PURE__ */ v(ze, {});
|
|
156
156
|
case "list":
|
|
157
157
|
case "legend":
|
|
158
|
-
case "ul": return /* @__PURE__ */ v(
|
|
158
|
+
case "ul": return /* @__PURE__ */ v(Ve, {});
|
|
159
159
|
case "list numbers":
|
|
160
|
-
case "ol": return /* @__PURE__ */ v(
|
|
161
|
-
case "location": return /* @__PURE__ */ v(
|
|
162
|
-
case "lock": return /* @__PURE__ */ v(
|
|
160
|
+
case "ol": return /* @__PURE__ */ v(He, {});
|
|
161
|
+
case "location": return /* @__PURE__ */ v(Ke, {});
|
|
162
|
+
case "lock": return /* @__PURE__ */ v(We, {});
|
|
163
163
|
case "maximize": return /* @__PURE__ */ v(E, {});
|
|
164
|
-
case "menu": return /* @__PURE__ */ v(
|
|
164
|
+
case "menu": return /* @__PURE__ */ v(he, {});
|
|
165
165
|
case "minimize": return /* @__PURE__ */ v(D, {});
|
|
166
|
-
case "minus": return /* @__PURE__ */ v(
|
|
167
|
-
case "moon": return /* @__PURE__ */ v(
|
|
166
|
+
case "minus": return /* @__PURE__ */ v(Je, {});
|
|
167
|
+
case "moon": return /* @__PURE__ */ v(Ye, {});
|
|
168
168
|
case "move": return /* @__PURE__ */ v(O, {});
|
|
169
|
-
case "note": return /* @__PURE__ */ v(
|
|
169
|
+
case "note": return /* @__PURE__ */ v(Ze, {});
|
|
170
170
|
case "notification":
|
|
171
171
|
case "bell": return /* @__PURE__ */ v(A, {});
|
|
172
|
-
case "paste": return /* @__PURE__ */ v(
|
|
173
|
-
case "pause": return /* @__PURE__ */ v(
|
|
174
|
-
case "play": return /* @__PURE__ */ v(
|
|
175
|
-
case "question": return /* @__PURE__ */ v(
|
|
172
|
+
case "paste": return /* @__PURE__ */ v(B, {});
|
|
173
|
+
case "pause": return /* @__PURE__ */ v($e, {});
|
|
174
|
+
case "play": return /* @__PURE__ */ v(et, {});
|
|
175
|
+
case "question": return /* @__PURE__ */ v(st, {});
|
|
176
176
|
case "redo":
|
|
177
177
|
case "rotate":
|
|
178
|
-
case "rotate right": return /* @__PURE__ */ v(
|
|
178
|
+
case "rotate right": return /* @__PURE__ */ v(lt, {});
|
|
179
179
|
case "refresh":
|
|
180
|
-
case "sync": return /* @__PURE__ */ v(
|
|
181
|
-
case "save": return /* @__PURE__ */ v(
|
|
180
|
+
case "sync": return /* @__PURE__ */ v(ct, {});
|
|
181
|
+
case "save": return /* @__PURE__ */ v(pe, {});
|
|
182
182
|
case "scale": return /* @__PURE__ */ v(T, {});
|
|
183
|
-
case "search": return /* @__PURE__ */ v(
|
|
184
|
-
case "server": return /* @__PURE__ */ v(
|
|
185
|
-
case "settings": return /* @__PURE__ */ v(
|
|
183
|
+
case "search": return /* @__PURE__ */ v(ht, {});
|
|
184
|
+
case "server": return /* @__PURE__ */ v(gt, {});
|
|
185
|
+
case "settings": return /* @__PURE__ */ v(_t, {});
|
|
186
186
|
case "show":
|
|
187
|
-
case "eye": return /* @__PURE__ */ v(
|
|
187
|
+
case "eye": return /* @__PURE__ */ v(be, {});
|
|
188
188
|
case "sort":
|
|
189
189
|
case "sort descending":
|
|
190
190
|
case "sort down":
|
|
191
|
-
case "sort amount down": return /* @__PURE__ */ v(
|
|
191
|
+
case "sort amount down": return /* @__PURE__ */ v(yt, {});
|
|
192
192
|
case "sort ascending":
|
|
193
193
|
case "sort up":
|
|
194
|
-
case "sort amount up": return /* @__PURE__ */ v(
|
|
195
|
-
case "spinner": return /* @__PURE__ */ v(
|
|
194
|
+
case "sort amount up": return /* @__PURE__ */ v(vt, {});
|
|
195
|
+
case "spinner": return /* @__PURE__ */ v(Ue, {});
|
|
196
196
|
case "split": return /* @__PURE__ */ v(k, {});
|
|
197
|
-
case "star": return /* @__PURE__ */ v(
|
|
198
|
-
case "step backward": return /* @__PURE__ */ v(
|
|
199
|
-
case "step forward": return /* @__PURE__ */ v(
|
|
200
|
-
case "stop": return /* @__PURE__ */ v(
|
|
201
|
-
case "success": return /* @__PURE__ */ v(
|
|
202
|
-
case "sun": return /* @__PURE__ */ v(
|
|
203
|
-
case "table": return /* @__PURE__ */ v(
|
|
204
|
-
case "target": return /* @__PURE__ */ v(
|
|
197
|
+
case "star": return /* @__PURE__ */ v(xt, {});
|
|
198
|
+
case "step backward": return /* @__PURE__ */ v(tt, {});
|
|
199
|
+
case "step forward": return /* @__PURE__ */ v(nt, {});
|
|
200
|
+
case "stop": return /* @__PURE__ */ v(rt, {});
|
|
201
|
+
case "success": return /* @__PURE__ */ v(se, {});
|
|
202
|
+
case "sun": return /* @__PURE__ */ v(St, {});
|
|
203
|
+
case "table": return /* @__PURE__ */ v(Ct, {});
|
|
204
|
+
case "target": return /* @__PURE__ */ v(wt, {});
|
|
205
205
|
case "undo":
|
|
206
|
-
case "rotate left": return /* @__PURE__ */ v(
|
|
207
|
-
case "unfilter": return /* @__PURE__ */ v(
|
|
208
|
-
case "unlink": return /* @__PURE__ */ v(
|
|
209
|
-
case "unlock": return /* @__PURE__ */ v(
|
|
206
|
+
case "rotate left": return /* @__PURE__ */ v(ut, {});
|
|
207
|
+
case "unfilter": return /* @__PURE__ */ v(we, {});
|
|
208
|
+
case "unlink": return /* @__PURE__ */ v(Be, {});
|
|
209
|
+
case "unlock": return /* @__PURE__ */ v(Ge, {});
|
|
210
210
|
case "upload":
|
|
211
|
-
case "export": return /* @__PURE__ */ v(
|
|
212
|
-
case "user": return /* @__PURE__ */ v(
|
|
211
|
+
case "export": return /* @__PURE__ */ v(Et, {});
|
|
212
|
+
case "user": return /* @__PURE__ */ v(Dt, {});
|
|
213
213
|
case "users":
|
|
214
|
-
case "group": return /* @__PURE__ */ v(
|
|
215
|
-
case "video": return /* @__PURE__ */ v(
|
|
214
|
+
case "group": return /* @__PURE__ */ v(Ot, {});
|
|
215
|
+
case "video": return /* @__PURE__ */ v(Xe, {});
|
|
216
216
|
case "warning":
|
|
217
217
|
case "alert": return /* @__PURE__ */ v(b, {});
|
|
218
218
|
case "water":
|
|
219
|
-
case "droplet": return /* @__PURE__ */ v(
|
|
219
|
+
case "droplet": return /* @__PURE__ */ v(_e, {});
|
|
220
220
|
case "": return null;
|
|
221
|
-
default: return /* @__PURE__ */ v(
|
|
221
|
+
default: return /* @__PURE__ */ v(oe, {});
|
|
222
222
|
}
|
|
223
|
-
},
|
|
224
|
-
let c = s(
|
|
223
|
+
}, W = ({ icon: e, onClick: t, clickable: n = !1, color: r, size: a, testId: o }) => {
|
|
224
|
+
let c = s(U), l = {
|
|
225
225
|
color: r,
|
|
226
226
|
fill: r,
|
|
227
227
|
fontSize: a || "inherit",
|
|
@@ -229,23 +229,23 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
229
229
|
height: a || "auto"
|
|
230
230
|
};
|
|
231
231
|
return /* @__PURE__ */ v("div", {
|
|
232
|
-
className: g(
|
|
232
|
+
className: g(Mr.wrapper, (n || t) && !c ? Mr.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(Nr, {
|
|
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: Mr.customPng,
|
|
242
242
|
src: e
|
|
243
|
-
}) : typeof e == "string" ? /* @__PURE__ */ v(
|
|
243
|
+
}) : typeof e == "string" ? /* @__PURE__ */ v(Vr, { icon: e }) : null
|
|
244
244
|
});
|
|
245
|
-
},
|
|
246
|
-
className: g(
|
|
247
|
-
children: /* @__PURE__ */ v(
|
|
248
|
-
}),
|
|
245
|
+
}, Hr = ({ expanded: e }) => /* @__PURE__ */ v("span", {
|
|
246
|
+
className: g(jr.chevron, e ? jr.expanded : ""),
|
|
247
|
+
children: /* @__PURE__ */ v(W, { icon: H.CHEVRON_RIGHT })
|
|
248
|
+
}), Ur = {
|
|
249
249
|
accordion: "_accordion_15p8j_1",
|
|
250
250
|
accordionHeader: "_accordionHeader_15p8j_5",
|
|
251
251
|
heading: "_heading_15p8j_9",
|
|
@@ -255,58 +255,58 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
255
255
|
expanded: "_expanded_15p8j_36",
|
|
256
256
|
padding: "_padding_15p8j_44",
|
|
257
257
|
squareBottom: "_squareBottom_15p8j_47"
|
|
258
|
-
},
|
|
258
|
+
}, Wr = {
|
|
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
|
+
}, Gr = ({ children: e, expanded: t }) => {
|
|
266
266
|
let n = p(null);
|
|
267
|
-
return /* @__PURE__ */ v(
|
|
267
|
+
return /* @__PURE__ */ v(At, {
|
|
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: Wr.enter,
|
|
273
|
+
enterActive: Wr.enterActive,
|
|
274
|
+
exit: Wr.exit,
|
|
275
|
+
exitActive: Wr.exitActive
|
|
276
276
|
},
|
|
277
277
|
unmountOnExit: !0,
|
|
278
278
|
children: /* @__PURE__ */ v("div", {
|
|
279
279
|
ref: n,
|
|
280
|
-
className:
|
|
280
|
+
className: Wr.collapse,
|
|
281
281
|
children: /* @__PURE__ */ v("div", {
|
|
282
|
-
className:
|
|
282
|
+
className: Wr.collapseInner,
|
|
283
283
|
children: /* @__PURE__ */ v("div", { children: t && e })
|
|
284
284
|
})
|
|
285
285
|
})
|
|
286
286
|
});
|
|
287
|
-
},
|
|
287
|
+
}, Kr = ({ 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(Ur.accordion, n ? Ur.bordered : "", t ? Ur.expanded : "", a ? Ur.squareBottom : ""),
|
|
291
291
|
children: [/* @__PURE__ */ y("div", {
|
|
292
|
-
className: g(
|
|
292
|
+
className: g(Ur.accordionHeader, o ? Ur.clickable : ""),
|
|
293
293
|
onClick: o,
|
|
294
294
|
"data-testid": s,
|
|
295
|
-
children: [/* @__PURE__ */ v(
|
|
296
|
-
className:
|
|
295
|
+
children: [/* @__PURE__ */ v(Hr, { expanded: t }), /* @__PURE__ */ v("div", {
|
|
296
|
+
className: Ur.heading,
|
|
297
297
|
children: e
|
|
298
298
|
})]
|
|
299
|
-
}), /* @__PURE__ */ v(
|
|
299
|
+
}), /* @__PURE__ */ v(Gr, {
|
|
300
300
|
expanded: c,
|
|
301
301
|
children: /* @__PURE__ */ v("div", {
|
|
302
|
-
className: g(
|
|
302
|
+
className: g(Ur.accordionContent, n && r ? Ur.padding : ""),
|
|
303
303
|
children: i
|
|
304
304
|
})
|
|
305
305
|
})]
|
|
306
306
|
});
|
|
307
|
-
},
|
|
307
|
+
}, qr = ({ 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(Kr, {
|
|
310
310
|
heading: t,
|
|
311
311
|
bordered: n,
|
|
312
312
|
padding: r,
|
|
@@ -317,7 +317,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
317
317
|
testId: o,
|
|
318
318
|
children: a
|
|
319
319
|
});
|
|
320
|
-
},
|
|
320
|
+
}, Jr = ({ 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 ? qr : Kr, {
|
|
321
321
|
heading: e,
|
|
322
322
|
expanded: t,
|
|
323
323
|
bordered: r,
|
|
@@ -326,7 +326,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
326
326
|
onClick: o,
|
|
327
327
|
testId: c,
|
|
328
328
|
children: a
|
|
329
|
-
}),
|
|
329
|
+
}), Yr = {
|
|
330
330
|
checkbox: "_checkbox_1ezew_1",
|
|
331
331
|
noLabel: "_noLabel_1ezew_17",
|
|
332
332
|
small: "_small_1ezew_20",
|
|
@@ -335,28 +335,28 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
335
335
|
noMargin: "_noMargin_1ezew_98",
|
|
336
336
|
isInTable: "_isInTable_1ezew_101",
|
|
337
337
|
helpIconEnabled: "_helpIconEnabled_1ezew_104"
|
|
338
|
-
},
|
|
338
|
+
}, Xr = ({ children: e }) => Gt() === null ? /* @__PURE__ */ v(Pt, { children: e }) : /* @__PURE__ */ v(_, { children: e }), Zr = "bottom-start", Qr = (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
|
-
},
|
|
341
|
-
|
|
342
|
-
|
|
340
|
+
}, $r = (e = Zr) => e === "center" ? "bottom" : e.replace("-center", ""), ei = ({ arrowOffset: e, arrowRef: t, containerOffset: n, fallbackPlacements: r, matchReferenceWidth: i, triggerOffset: a }) => [
|
|
341
|
+
Rt(a),
|
|
342
|
+
Lt({
|
|
343
343
|
fallbackPlacements: r,
|
|
344
344
|
padding: n
|
|
345
345
|
}),
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
zt({ padding: n }),
|
|
347
|
+
Bt({
|
|
348
348
|
padding: n,
|
|
349
349
|
apply({ elements: e, rects: t }) {
|
|
350
350
|
i && Object.assign(e.floating.style, { minWidth: `${t.reference.width}px` });
|
|
351
351
|
}
|
|
352
352
|
}),
|
|
353
|
-
|
|
353
|
+
Ft({
|
|
354
354
|
element: t,
|
|
355
355
|
padding: e
|
|
356
356
|
})
|
|
357
|
-
],
|
|
357
|
+
], ti = ({ isOpen: e, arrowOffset: t = 0, clientPoint: n, containerOffset: r = 10, hover: i, matchReferenceWidth: a = !1, placement: s = Zr, 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 =
|
|
359
|
+
let w = p(null), [T, E] = m(null), D = Wt(), O = $r(s), k = d(() => c == null ? void 0 : c.map($r), [c]), A = d(() => ei({
|
|
360
360
|
arrowOffset: t,
|
|
361
361
|
arrowRef: w,
|
|
362
362
|
containerOffset: r,
|
|
@@ -369,9 +369,9 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
369
369
|
k,
|
|
370
370
|
a,
|
|
371
371
|
l
|
|
372
|
-
]), j = o((e, t, n) => (
|
|
373
|
-
|
|
374
|
-
})), []), { context: M, refs: N, floatingStyles: P, isPositioned: F, x: I, y:
|
|
372
|
+
]), j = o((e, t, n) => (Qr(e.getBoundingClientRect(), E), It(e, t, () => {
|
|
373
|
+
Qr(e.getBoundingClientRect(), E), n();
|
|
374
|
+
})), []), { context: M, refs: N, floatingStyles: P, isPositioned: F, x: I, y: L } = Ut({
|
|
375
375
|
open: e,
|
|
376
376
|
onOpenChange: (e, t, n) => {
|
|
377
377
|
!e && (n === "outside-press" || n === "escape-key") && (h == null || h()), f == null || f(e);
|
|
@@ -382,21 +382,21 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
382
382
|
transform: !1,
|
|
383
383
|
whileElementsMounted: j,
|
|
384
384
|
middleware: A
|
|
385
|
-
}),
|
|
385
|
+
}), R = o((e) => {
|
|
386
386
|
if (N.setReference(e), e) {
|
|
387
|
-
|
|
387
|
+
Qr(e.getBoundingClientRect(), E);
|
|
388
388
|
return;
|
|
389
389
|
}
|
|
390
390
|
E(null);
|
|
391
|
-
}, [N.setReference]),
|
|
392
|
-
|
|
393
|
-
enabled: e && (!!h ||
|
|
394
|
-
ancestorScroll:
|
|
391
|
+
}, [N.setReference]), ee = (g = i == null ? void 0 : i.hideOnScroll) == null ? !1 : g, { getReferenceProps: te, getFloatingProps: ne } = qt([
|
|
392
|
+
Ht(M, {
|
|
393
|
+
enabled: e && (!!h || ee),
|
|
394
|
+
ancestorScroll: ee,
|
|
395
395
|
escapeKey: !!h,
|
|
396
396
|
outsidePress: !!h,
|
|
397
397
|
outsidePressEvent: "mousedown"
|
|
398
398
|
}),
|
|
399
|
-
|
|
399
|
+
Kt(M, {
|
|
400
400
|
enabled: (_ = i == null ? void 0 : i.enabled) == null ? !1 : _,
|
|
401
401
|
delay: {
|
|
402
402
|
open: (y = i == null ? void 0 : i.delayEnter) == null ? 0 : y,
|
|
@@ -405,44 +405,44 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
405
405
|
mouseOnly: i == null ? void 0 : i.mouseOnly,
|
|
406
406
|
move: !1
|
|
407
407
|
}),
|
|
408
|
-
|
|
408
|
+
Vt(M, {
|
|
409
409
|
enabled: (x = n == null ? void 0 : n.enabled) == null ? !1 : x,
|
|
410
410
|
axis: n == null ? void 0 : n.axis,
|
|
411
411
|
x: (S = n == null ? void 0 : n.x) == null ? null : S,
|
|
412
412
|
y: (C = n == null ? void 0 : n.y) == null ? null : C
|
|
413
413
|
})
|
|
414
|
-
]),
|
|
414
|
+
]), re = d(() => te({ ref: R }), [te, R]), ie = d(() => ne({
|
|
415
415
|
ref: N.setFloating,
|
|
416
416
|
style: {
|
|
417
417
|
...P,
|
|
418
|
-
visibility: e && (!F || I === null ||
|
|
418
|
+
visibility: e && (!F || I === null || L === null) ? "hidden" : void 0
|
|
419
419
|
}
|
|
420
420
|
}), [
|
|
421
421
|
P,
|
|
422
|
-
|
|
422
|
+
ne,
|
|
423
423
|
e,
|
|
424
424
|
F,
|
|
425
425
|
N.setFloating,
|
|
426
426
|
I,
|
|
427
|
-
|
|
427
|
+
L
|
|
428
428
|
]);
|
|
429
429
|
return {
|
|
430
430
|
arrowProps: d(() => ({
|
|
431
431
|
context: M,
|
|
432
432
|
ref: w
|
|
433
433
|
}), [M]),
|
|
434
|
-
layerProps:
|
|
435
|
-
renderLayer: (e) => typeof document > "u" ? null : /* @__PURE__ */ v(
|
|
434
|
+
layerProps: ie,
|
|
435
|
+
renderLayer: (e) => typeof document > "u" ? null : /* @__PURE__ */ v(Mt, {
|
|
436
436
|
id: D,
|
|
437
|
-
children: /* @__PURE__ */ v(
|
|
437
|
+
children: /* @__PURE__ */ v(Nt, {
|
|
438
438
|
id: "layers",
|
|
439
439
|
children: e
|
|
440
440
|
})
|
|
441
441
|
}),
|
|
442
442
|
triggerBounds: T,
|
|
443
|
-
triggerProps:
|
|
443
|
+
triggerProps: re
|
|
444
444
|
};
|
|
445
|
-
},
|
|
445
|
+
}, ni = () => {
|
|
446
446
|
let [e, t] = m(null);
|
|
447
447
|
return {
|
|
448
448
|
clientPoint: e,
|
|
@@ -455,12 +455,12 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
455
455
|
hasClientPoint: !!e,
|
|
456
456
|
resetClientPoint: () => t(null)
|
|
457
457
|
};
|
|
458
|
-
},
|
|
458
|
+
}, ri = {
|
|
459
459
|
tooltip: "_tooltip_o1fhy_1",
|
|
460
460
|
error: "_error_o1fhy_14",
|
|
461
461
|
warning: "_warning_o1fhy_18"
|
|
462
|
-
},
|
|
463
|
-
className: g(
|
|
462
|
+
}, ii = ({ 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(ri.tooltip, t ? ri.error : n ? ri.warning : ""),
|
|
464
464
|
...o,
|
|
465
465
|
children: [/* @__PURE__ */ v("div", {
|
|
466
466
|
style: {
|
|
@@ -469,7 +469,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
469
469
|
padding: a
|
|
470
470
|
},
|
|
471
471
|
children: e
|
|
472
|
-
}), (s == null ? void 0 : s.context) && /* @__PURE__ */ v(
|
|
472
|
+
}), (s == null ? void 0 : s.context) && /* @__PURE__ */ v(jt, {
|
|
473
473
|
context: s.context,
|
|
474
474
|
ref: s.ref,
|
|
475
475
|
width: 12,
|
|
@@ -477,13 +477,13 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
477
477
|
tipRadius: 1,
|
|
478
478
|
fill: "inherit"
|
|
479
479
|
})]
|
|
480
|
-
}),
|
|
480
|
+
}), ai = ({ 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", triggerStyle: h, forceOpen: g = !1 }) => {
|
|
486
|
-
let b = o && (i(t) || typeof t == "string" && t.length > 0 || typeof t == "number"), [x, S] = m(!1), C = b ? g ? !0 : x : !1, { renderLayer: w, triggerProps: T, layerProps: E, arrowProps: D } =
|
|
486
|
+
let b = o && (i(t) || typeof t == "string" && t.length > 0 || typeof t == "number"), [x, S] = m(!1), C = b ? g ? !0 : x : !1, { renderLayer: w, triggerProps: T, layerProps: E, arrowProps: D } = ti({
|
|
487
487
|
isOpen: C,
|
|
488
488
|
hover: {
|
|
489
489
|
enabled: b && !g,
|
|
@@ -503,7 +503,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
503
503
|
var t;
|
|
504
504
|
(t = T.onMouseOver) == null || t.call(T, e), b && !g && !e.nativeEvent.isTrusted && S(!0);
|
|
505
505
|
};
|
|
506
|
-
return /* @__PURE__ */ y(_, { children: [C && w(/* @__PURE__ */ v(
|
|
506
|
+
return /* @__PURE__ */ y(_, { children: [C && w(/* @__PURE__ */ v(ii, {
|
|
507
507
|
text: t,
|
|
508
508
|
error: n,
|
|
509
509
|
warning: s,
|
|
@@ -523,32 +523,32 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
523
523
|
onMouseOver: k,
|
|
524
524
|
children: e
|
|
525
525
|
})] });
|
|
526
|
-
},
|
|
526
|
+
}, G = (e) => /* @__PURE__ */ v(Xr, { children: /* @__PURE__ */ v(ai, { ...e }) }), oi = {
|
|
527
527
|
helpIcon: "_helpIcon_hd0z2_1",
|
|
528
528
|
active: "_active_hd0z2_9",
|
|
529
529
|
clickable: "_clickable_hd0z2_12"
|
|
530
|
-
},
|
|
530
|
+
}, si = ({ children: e, text: t, maxWidth: n }) => t ? /* @__PURE__ */ v(G, {
|
|
531
531
|
text: t,
|
|
532
532
|
display: "inline-flex",
|
|
533
533
|
maxWidth: n,
|
|
534
534
|
children: e
|
|
535
|
-
}) : /* @__PURE__ */ v(_, { children: e }),
|
|
536
|
-
className: g(
|
|
535
|
+
}) : /* @__PURE__ */ v(_, { children: e }), ci = ({ text: e, onClick: t, icon: n = "help", active: r = !1, maxWidth: i = "300px", testId: a }) => /* @__PURE__ */ v("div", {
|
|
536
|
+
className: g(oi.helpIcon, t ? oi.clickable : "", r ? oi.active : ""),
|
|
537
537
|
onClick: (e) => {
|
|
538
538
|
t && (e.stopPropagation(), t());
|
|
539
539
|
},
|
|
540
540
|
"data-testid": a,
|
|
541
|
-
children: /* @__PURE__ */ v(
|
|
541
|
+
children: /* @__PURE__ */ v(si, {
|
|
542
542
|
text: e,
|
|
543
543
|
maxWidth: i,
|
|
544
|
-
children: /* @__PURE__ */ v(
|
|
544
|
+
children: /* @__PURE__ */ v(W, { icon: n })
|
|
545
545
|
})
|
|
546
|
-
}),
|
|
547
|
-
let x = s(
|
|
546
|
+
}), li = ({ 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 = Or.CAPITALIZE }) => {
|
|
547
|
+
let x = s(U), S = h || _, C = l || x, w = p(null);
|
|
548
548
|
return u(() => {
|
|
549
549
|
w.current && (w.current.indeterminate = a);
|
|
550
550
|
}, [a, i]), /* @__PURE__ */ y("div", {
|
|
551
|
-
className: g(
|
|
551
|
+
className: g(Yr.checkbox, e && Yr.noMargin, n && Yr.isInTable, C && Yr.disabled, d && Yr.small, !c && Yr.noLabel),
|
|
552
552
|
"data-ix": t,
|
|
553
553
|
onClick: (e) => {
|
|
554
554
|
if (!C) {
|
|
@@ -578,65 +578,65 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
578
578
|
htmlFor: o,
|
|
579
579
|
style: { textTransform: b },
|
|
580
580
|
children: [/* @__PURE__ */ v("span", {
|
|
581
|
-
className:
|
|
582
|
-
children: /* @__PURE__ */ v(
|
|
581
|
+
className: Yr.checkmark,
|
|
582
|
+
children: /* @__PURE__ */ v(W, { icon: H.CHECK })
|
|
583
583
|
}), c]
|
|
584
584
|
}),
|
|
585
585
|
S && /* @__PURE__ */ v("div", {
|
|
586
|
-
className:
|
|
586
|
+
className: Yr.helpIconEnabled,
|
|
587
587
|
onClick: _,
|
|
588
|
-
children: /* @__PURE__ */ v(
|
|
588
|
+
children: /* @__PURE__ */ v(ci, { text: h })
|
|
589
589
|
})
|
|
590
590
|
]
|
|
591
591
|
});
|
|
592
|
-
},
|
|
592
|
+
}, ui = {
|
|
593
593
|
bordered: "_bordered_1cgsf_1",
|
|
594
594
|
checkboxWrapper: "_checkboxWrapper_1cgsf_7",
|
|
595
595
|
padding: "_padding_1cgsf_13",
|
|
596
596
|
contentWrapper: "_contentWrapper_1cgsf_16"
|
|
597
|
-
},
|
|
597
|
+
}, di = /* @__PURE__ */ function(e) {
|
|
598
598
|
return e.TOGGLE_ACCORDION = "TOGGLE_ACCORDION", e.TOGGLE_ENABLE = "TOGGLE_ENABLE", e;
|
|
599
|
-
}({}),
|
|
599
|
+
}({}), fi = (e, t) => {
|
|
600
600
|
switch (t.type) {
|
|
601
|
-
case
|
|
601
|
+
case di.TOGGLE_ACCORDION: return {
|
|
602
602
|
...e,
|
|
603
603
|
accordionExpanded: !e.accordionExpanded
|
|
604
604
|
};
|
|
605
|
-
case
|
|
605
|
+
case di.TOGGLE_ENABLE: return {
|
|
606
606
|
...e,
|
|
607
607
|
defaultEnabled: !e.defaultEnabled,
|
|
608
608
|
accordionExpanded: e.defaultEnabled
|
|
609
609
|
};
|
|
610
610
|
default: return e;
|
|
611
611
|
}
|
|
612
|
-
},
|
|
613
|
-
let [s, c] = f(
|
|
612
|
+
}, pi = ({ heading: e, toggleLabel: t, onClickDefaultToggle: n, expanded: r = !1, defaultEnabled: i = !0, padding: a = !0, children: o }) => {
|
|
613
|
+
let [s, c] = f(fi, {
|
|
614
614
|
accordionExpanded: r,
|
|
615
615
|
defaultEnabled: i
|
|
616
616
|
}), l = /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("div", {
|
|
617
|
-
className:
|
|
618
|
-
children: /* @__PURE__ */ v(
|
|
617
|
+
className: ui.checkboxWrapper,
|
|
618
|
+
children: /* @__PURE__ */ v(li, {
|
|
619
619
|
label: t,
|
|
620
620
|
onChange: (e) => {
|
|
621
|
-
c({ type:
|
|
621
|
+
c({ type: di.TOGGLE_ENABLE }), n == null || n(e);
|
|
622
622
|
},
|
|
623
623
|
checked: s.defaultEnabled
|
|
624
624
|
})
|
|
625
625
|
}), s.accordionExpanded && /* @__PURE__ */ v("div", {
|
|
626
|
-
className:
|
|
626
|
+
className: ui.contentWrapper,
|
|
627
627
|
children: o
|
|
628
628
|
})] });
|
|
629
|
-
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(
|
|
629
|
+
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Jr, {
|
|
630
630
|
heading: e,
|
|
631
631
|
bordered: !0,
|
|
632
632
|
expanded: s.accordionExpanded,
|
|
633
633
|
squareBottom: !0,
|
|
634
|
-
onClick: () => c({ type:
|
|
634
|
+
onClick: () => c({ type: di.TOGGLE_ACCORDION })
|
|
635
635
|
}), /* @__PURE__ */ v("div", {
|
|
636
|
-
className: g(
|
|
636
|
+
className: g(ui.bordered, a ? ui.padding : ""),
|
|
637
637
|
children: l
|
|
638
638
|
})] });
|
|
639
|
-
},
|
|
639
|
+
}, mi = {
|
|
640
640
|
inputInTable: "_inputInTable_1isig_1",
|
|
641
641
|
inputHover: "_inputHover_1isig_13",
|
|
642
642
|
inputFocus: "_inputFocus_1isig_18",
|
|
@@ -673,26 +673,26 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
673
673
|
});
|
|
674
674
|
}, _i = /* @__PURE__ */ function(e) {
|
|
675
675
|
return e.SUBMIT = "submit", e.BUTTON = "button", e.RESET = "reset", e;
|
|
676
|
-
}({}), vi = ({ children: e, tooltip: t = null }) => t ? /* @__PURE__ */ v(
|
|
676
|
+
}({}), vi = ({ children: e, tooltip: t = null }) => t ? /* @__PURE__ */ v(G, {
|
|
677
677
|
text: t,
|
|
678
678
|
display: "inline-flex",
|
|
679
679
|
children: e
|
|
680
680
|
}) : /* @__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 = _i.BUTTON, onClick: S = () => {}, error: C, warning: w, testId: T, tooltip: E, inverted: D = !1, component: O = "button", url: k, tabIndex: A }) => {
|
|
681
|
-
let j = s(
|
|
681
|
+
let j = s(U), M = (() => {
|
|
682
682
|
if (n) switch (n) {
|
|
683
|
-
case
|
|
684
|
-
case
|
|
685
|
-
case
|
|
686
|
-
case
|
|
687
|
-
case
|
|
688
|
-
default: return
|
|
683
|
+
case Tr.DANGER:
|
|
684
|
+
case Tr.RED: return mi.red;
|
|
685
|
+
case Tr.SUCCESS:
|
|
686
|
+
case Tr.GREEN: return mi.green;
|
|
687
|
+
case Tr.MUTED: return mi.muted;
|
|
688
|
+
default: return mi.orange;
|
|
689
689
|
}
|
|
690
690
|
return "";
|
|
691
691
|
})(), N = (() => {
|
|
692
692
|
if (a) switch (a) {
|
|
693
|
-
case
|
|
694
|
-
case
|
|
695
|
-
default: return
|
|
693
|
+
case V.FIRST: return mi.groupOrderFirst;
|
|
694
|
+
case V.LAST: return mi.groupOrderLast;
|
|
695
|
+
default: return mi.groupOrderMiddle;
|
|
696
696
|
}
|
|
697
697
|
return "";
|
|
698
698
|
})(), P = r || j && !i;
|
|
@@ -700,7 +700,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
700
700
|
tooltip: E,
|
|
701
701
|
children: /* @__PURE__ */ y(O, {
|
|
702
702
|
type: x === _i.SUBMIT ? _i.SUBMIT : _i.BUTTON,
|
|
703
|
-
className: g(
|
|
703
|
+
className: g(mi.button, e ? mi.active : "", t ? mi.basic : "", M, P ? mi.disabled : "", (o || u) && !l ? mi.iconOnly : "", D ? mi.inverted : "", N, f ? mi.pill : "", p ? mi.round : "", m ? mi.small : "", h),
|
|
704
704
|
disabled: P,
|
|
705
705
|
name: d == null ? "" : d,
|
|
706
706
|
onClick: S,
|
|
@@ -713,11 +713,11 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
713
713
|
tabIndex: A,
|
|
714
714
|
children: [
|
|
715
715
|
o && /* @__PURE__ */ v("span", {
|
|
716
|
-
className:
|
|
717
|
-
children: /* @__PURE__ */ v(
|
|
716
|
+
className: mi.icon,
|
|
717
|
+
children: /* @__PURE__ */ v(W, { icon: o })
|
|
718
718
|
}),
|
|
719
719
|
u && /* @__PURE__ */ v("span", {
|
|
720
|
-
className:
|
|
720
|
+
className: mi.icon,
|
|
721
721
|
children: /* @__PURE__ */ v(gi, {
|
|
722
722
|
small: !m,
|
|
723
723
|
tiny: m,
|
|
@@ -727,8 +727,8 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
727
727
|
}),
|
|
728
728
|
l,
|
|
729
729
|
c && /* @__PURE__ */ v("span", {
|
|
730
|
-
className:
|
|
731
|
-
children: /* @__PURE__ */ v(
|
|
730
|
+
className: mi.rightIcon,
|
|
731
|
+
children: /* @__PURE__ */ v(W, { icon: c })
|
|
732
732
|
})
|
|
733
733
|
]
|
|
734
734
|
})
|
|
@@ -775,9 +775,9 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
775
775
|
children: [e, !!n && /* @__PURE__ */ v("span", {
|
|
776
776
|
className: g(q.headingIcon, t ? q.clickable : ""),
|
|
777
777
|
onClick: t,
|
|
778
|
-
children: /* @__PURE__ */ v(
|
|
778
|
+
children: /* @__PURE__ */ v(W, { icon: n })
|
|
779
779
|
})]
|
|
780
|
-
}), xi = () => /* @__PURE__ */ v("hr", { className: q.divider }), Si = ({ 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 =
|
|
780
|
+
}), xi = () => /* @__PURE__ */ v("hr", { className: q.divider }), Si = ({ 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(_, {
|
|
781
781
|
href: n,
|
|
782
782
|
to: n,
|
|
783
783
|
className: g(q.option, l ? q.disabled : "", u ? q.inline : "", o ? q == null ? void 0 : q.selected : ""),
|
|
@@ -792,7 +792,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
792
792
|
children: [
|
|
793
793
|
a ? /* @__PURE__ */ v("span", {
|
|
794
794
|
className: q.icon,
|
|
795
|
-
children: /* @__PURE__ */ v(
|
|
795
|
+
children: /* @__PURE__ */ v(W, { icon: a })
|
|
796
796
|
}) : null,
|
|
797
797
|
/* @__PURE__ */ y("div", {
|
|
798
798
|
className: q.optionContent,
|
|
@@ -833,7 +833,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
833
833
|
className: q.right,
|
|
834
834
|
children: [o && /* @__PURE__ */ v("span", {
|
|
835
835
|
className: q.check,
|
|
836
|
-
children: /* @__PURE__ */ v(
|
|
836
|
+
children: /* @__PURE__ */ v(W, { icon: H.CHECK })
|
|
837
837
|
}), !!(e != null && e.length) && /* @__PURE__ */ v("div", {
|
|
838
838
|
className: q.actions,
|
|
839
839
|
children: /* @__PURE__ */ v(Xi, { actions: e })
|
|
@@ -845,7 +845,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
845
845
|
}({}), wi = /* @__PURE__ */ function(e) {
|
|
846
846
|
return e.FALSE = "false", e.RIGHT = "right", e.DOWN = "down", e;
|
|
847
847
|
}({}), Ti = ({ section: e, closeOnOptionClick: t, close: n, tree: r, path: i, maxHeight: a }) => {
|
|
848
|
-
let o = s(
|
|
848
|
+
let o = s(U);
|
|
849
849
|
switch (e.type) {
|
|
850
850
|
case Ci.HEADING:
|
|
851
851
|
var c;
|
|
@@ -894,7 +894,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
894
894
|
});
|
|
895
895
|
default: return null;
|
|
896
896
|
}
|
|
897
|
-
}, Ei = (e) => e.includes("[") ? e.substr(0, e.lastIndexOf("[")) : e, Di = (e, t) => `${e}.sections[${t}]`.replace(/^\./, ""), Oi = (e) => `${e}.close`.replace(/^\./, ""), ki = (e, t) =>
|
|
897
|
+
}, Ei = (e) => e.includes("[") ? e.substr(0, e.lastIndexOf("[")) : e, Di = (e, t) => `${e}.sections[${t}]`.replace(/^\./, ""), Oi = (e) => `${e}.close`.replace(/^\./, ""), ki = (e, t) => en(e, Ei(t), []), Ai = (e, t, n) => mn(e, Oi(t), n), ji = ({ sections: e, isNested: t, width: n, closeOnOptionClick: r, close: a = () => {}, tree: o, path: s, maxHeight: c, showAllButton: l, testId: u }) => {
|
|
898
898
|
var d, f;
|
|
899
899
|
if (i(e)) return /* @__PURE__ */ v(_, { children: e });
|
|
900
900
|
let [p, h] = m(!(l != null && l.visible)), y = e, b = (d = l == null || (f = l.additionalSections) == null ? void 0 : f.map((e) => ({
|
|
@@ -931,7 +931,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
931
931
|
maxHeight: c
|
|
932
932
|
}) }, t)) })
|
|
933
933
|
});
|
|
934
|
-
}, Mi = (e, t = !1) => ({ placement: e || (t ? "right-start" : "bottom-start") }), J = (e) =>
|
|
934
|
+
}, Mi = (e, t = !1) => ({ placement: e || (t ? "right-start" : "bottom-start") }), J = (e) => dn(e) || cn(e) || i(e), Ni = (e) => Array.isArray(e) ? "array" : typeof e, Pi = {
|
|
935
935
|
wrapper: "_wrapper_14vly_1",
|
|
936
936
|
badge: "_badge_14vly_5",
|
|
937
937
|
label: "_label_14vly_11",
|
|
@@ -956,7 +956,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
956
956
|
}), e]
|
|
957
957
|
});
|
|
958
958
|
}, Li = ({ trigger: e, label: t, colored: n, small: r, width: i, disabled: a, groupOrder: o, loading: c, error: l, warning: u, active: d, tabIndex: f }) => {
|
|
959
|
-
let p = s(
|
|
959
|
+
let p = s(U), m = e === wr.DROP_DOWN_BUTTON;
|
|
960
960
|
return /* @__PURE__ */ v("div", {
|
|
961
961
|
className: g(q.trigger, a || p ? q.disabled : null),
|
|
962
962
|
style: { width: i },
|
|
@@ -970,7 +970,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
970
970
|
width: i,
|
|
971
971
|
groupOrder: o,
|
|
972
972
|
onClick: () => {},
|
|
973
|
-
rightIcon: m ?
|
|
973
|
+
rightIcon: m ? H.CHEVRON_DOWN : null,
|
|
974
974
|
loading: c,
|
|
975
975
|
disabled: a,
|
|
976
976
|
error: l,
|
|
@@ -989,24 +989,24 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
989
989
|
children: e
|
|
990
990
|
}), n && n === wi.RIGHT ? /* @__PURE__ */ v("span", {
|
|
991
991
|
className: q.arrow,
|
|
992
|
-
children: /* @__PURE__ */ v(
|
|
992
|
+
children: /* @__PURE__ */ v(W, { icon: H.CHEVRON_RIGHT })
|
|
993
993
|
}) : n && n === wi.DOWN ? /* @__PURE__ */ v("span", {
|
|
994
994
|
className: q.arrow,
|
|
995
|
-
children: /* @__PURE__ */ v(
|
|
995
|
+
children: /* @__PURE__ */ v(W, { icon: H.CHEVRON_DOWN })
|
|
996
996
|
}) : null]
|
|
997
997
|
});
|
|
998
998
|
}, zi = ({ component: e, disabled: t, testId: n }) => /* @__PURE__ */ v("div", {
|
|
999
999
|
className: g(q.component, t ? q.disabled : null),
|
|
1000
1000
|
"data-testid": n,
|
|
1001
1001
|
children: e
|
|
1002
|
-
}), Bi = ({ tooltip: e, error: t, warning: n, children: r }) => !J(e) && !J(t) && !J(n) ? /* @__PURE__ */ v(_, { children: r }) : /* @__PURE__ */ v(
|
|
1002
|
+
}), Bi = ({ tooltip: e, error: t, warning: n, children: r }) => !J(e) && !J(t) && !J(n) ? /* @__PURE__ */ v(_, { children: r }) : /* @__PURE__ */ v(G, {
|
|
1003
1003
|
error: !!t,
|
|
1004
1004
|
warning: !!n,
|
|
1005
1005
|
text: e || t || n,
|
|
1006
1006
|
display: "inline-flex",
|
|
1007
1007
|
children: r
|
|
1008
1008
|
}), Vi = 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) => {
|
|
1009
|
-
let E = o ===
|
|
1009
|
+
let E = o === wr.BUTTON || o === wr.DROP_DOWN_BUTTON ? /* @__PURE__ */ v(Li, {
|
|
1010
1010
|
trigger: o,
|
|
1011
1011
|
label: s == null ? "" : s,
|
|
1012
1012
|
colored: u,
|
|
@@ -1019,14 +1019,14 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1019
1019
|
warning: b,
|
|
1020
1020
|
active: _ || e,
|
|
1021
1021
|
tabIndex: w
|
|
1022
|
-
}) : o ===
|
|
1022
|
+
}) : o === wr.TEXT ? /* @__PURE__ */ v(Ri, {
|
|
1023
1023
|
label: s == null ? "" : s,
|
|
1024
1024
|
title: c,
|
|
1025
1025
|
disabled: t,
|
|
1026
1026
|
carat: p ? void 0 : f ? wi.RIGHT : wi.DOWN,
|
|
1027
1027
|
isOpen: _,
|
|
1028
1028
|
selected: C
|
|
1029
|
-
}) : o ===
|
|
1029
|
+
}) : o === wr.COMPONENT ? /* @__PURE__ */ v(zi, {
|
|
1030
1030
|
component: m,
|
|
1031
1031
|
disabled: t
|
|
1032
1032
|
}) : null, D = !f && (n || r) ? /* @__PURE__ */ v(Ii, {
|
|
@@ -1057,9 +1057,9 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1057
1057
|
});
|
|
1058
1058
|
}), Hi = (e) => {
|
|
1059
1059
|
let { sections: t } = e;
|
|
1060
|
-
return !i(t) && (!Array.isArray(t) || t.every((e) =>
|
|
1060
|
+
return !i(t) && (!Array.isArray(t) || t.every((e) => rn(e)));
|
|
1061
1061
|
}, Ui = ({ sections: e, width: t, placement: n, possiblePlacements: r, closeOnOptionClick: i, closeParent: a, tree: o, path: s, overflowContainer: c, maxHeight: l, testId: u }) => {
|
|
1062
|
-
let { clientPoint: d, hasClientPoint: f, resetClientPoint: p, handleMouseEvent: m } =
|
|
1062
|
+
let { clientPoint: d, hasClientPoint: f, resetClientPoint: p, handleMouseEvent: m } = ni(), h = p, g = f, { layerProps: _, renderLayer: y, triggerProps: b } = ti({
|
|
1063
1063
|
isOpen: g,
|
|
1064
1064
|
clientPoint: {
|
|
1065
1065
|
enabled: f,
|
|
@@ -1089,7 +1089,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1089
1089
|
onContextMenu: m
|
|
1090
1090
|
}];
|
|
1091
1091
|
}, Wi = ({ menu: e, width: t, disabled: n = !1, closeOnOptionClick: r = !0, closeParent: i, tree: a, path: o, groupOrder: c, testId: l }) => {
|
|
1092
|
-
let u = s(
|
|
1092
|
+
let u = s(U), { label: d, trigger: f, fullHeightTrigger: p, colored: m, small: h, component: g, placement: _, possiblePlacements: b = ["bottom-start", "top-start"] } = e, [x, S] = Ui({
|
|
1093
1093
|
sections: e.sections,
|
|
1094
1094
|
width: t,
|
|
1095
1095
|
placement: _,
|
|
@@ -1122,16 +1122,16 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1122
1122
|
}), x]
|
|
1123
1123
|
});
|
|
1124
1124
|
}, Gi = ({ 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 }) => {
|
|
1125
|
-
let k = s(
|
|
1126
|
-
isOpen:
|
|
1127
|
-
...Mi(
|
|
1128
|
-
possiblePlacements:
|
|
1129
|
-
onOutsideClick:
|
|
1125
|
+
let k = s(U), A = p(null), { label: j, title: M, trigger: N, fullHeightTrigger: P, colored: F, small: I, sections: L, component: R, placement: ee, showAllButton: te, possiblePlacements: ne = ["bottom-start", "top-start"] } = e, [re, ie] = nn(x) && on(S) ? [x, S] : m(!1), z = () => ie(!1), ae = () => ie(!0), { triggerProps: oe, layerProps: se, renderLayer: ce } = ti({
|
|
1126
|
+
isOpen: re,
|
|
1127
|
+
...Mi(ee, o),
|
|
1128
|
+
possiblePlacements: ne,
|
|
1129
|
+
onOutsideClick: z,
|
|
1130
1130
|
overflowContainer: h
|
|
1131
|
-
}),
|
|
1132
|
-
return Ai(u, d,
|
|
1133
|
-
ref:
|
|
1134
|
-
isDisabled:
|
|
1131
|
+
}), B = Jt([A, se.ref]), le = n || Hi(e) || k;
|
|
1132
|
+
return Ai(u, d, z), /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Vi, {
|
|
1133
|
+
ref: oe.ref,
|
|
1134
|
+
isDisabled: le,
|
|
1135
1135
|
badgeTitle: r,
|
|
1136
1136
|
badgeDot: i,
|
|
1137
1137
|
loading: a,
|
|
@@ -1141,22 +1141,22 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1141
1141
|
label: j,
|
|
1142
1142
|
title: M,
|
|
1143
1143
|
onClickTrigger: () => {
|
|
1144
|
-
if (!
|
|
1145
|
-
if (
|
|
1146
|
-
|
|
1144
|
+
if (!le) {
|
|
1145
|
+
if (re) {
|
|
1146
|
+
z();
|
|
1147
1147
|
return;
|
|
1148
1148
|
}
|
|
1149
1149
|
ki(u, d).forEach((e) => {
|
|
1150
1150
|
e.close && e.close();
|
|
1151
|
-
}),
|
|
1151
|
+
}), ae();
|
|
1152
1152
|
}
|
|
1153
1153
|
},
|
|
1154
1154
|
colored: F,
|
|
1155
1155
|
small: I,
|
|
1156
1156
|
isNested: o,
|
|
1157
|
-
component:
|
|
1157
|
+
component: R,
|
|
1158
1158
|
groupOrder: f,
|
|
1159
|
-
isOpen:
|
|
1159
|
+
isOpen: re,
|
|
1160
1160
|
active: O,
|
|
1161
1161
|
tooltip: C,
|
|
1162
1162
|
error: w,
|
|
@@ -1164,36 +1164,36 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1164
1164
|
testId: b,
|
|
1165
1165
|
selected: E,
|
|
1166
1166
|
tabIndex: D
|
|
1167
|
-
}), /* @__PURE__ */ v(
|
|
1167
|
+
}), /* @__PURE__ */ v(At, {
|
|
1168
1168
|
nodeRef: A,
|
|
1169
|
-
in:
|
|
1169
|
+
in: re,
|
|
1170
1170
|
timeout: 100,
|
|
1171
1171
|
classNames: {
|
|
1172
1172
|
enter: q.enter,
|
|
1173
1173
|
enterActive: q.enterActive
|
|
1174
1174
|
},
|
|
1175
1175
|
unmountOnExit: !0,
|
|
1176
|
-
children: /* @__PURE__ */ v(_, { children:
|
|
1177
|
-
...
|
|
1178
|
-
ref:
|
|
1176
|
+
children: /* @__PURE__ */ v(_, { children: re && ce(/* @__PURE__ */ v("div", {
|
|
1177
|
+
...se,
|
|
1178
|
+
ref: B,
|
|
1179
1179
|
className: q.layerContainer,
|
|
1180
1180
|
"data-testid": e.testId,
|
|
1181
1181
|
onClick: (e) => e.stopPropagation(),
|
|
1182
1182
|
children: /* @__PURE__ */ v(ji, {
|
|
1183
|
-
sections:
|
|
1183
|
+
sections: L,
|
|
1184
1184
|
isNested: o,
|
|
1185
1185
|
width: t,
|
|
1186
1186
|
closeOnOptionClick: c,
|
|
1187
|
-
close: l ||
|
|
1187
|
+
close: l || z,
|
|
1188
1188
|
tree: u,
|
|
1189
1189
|
path: d,
|
|
1190
1190
|
maxHeight: g,
|
|
1191
|
-
showAllButton:
|
|
1191
|
+
showAllButton: te,
|
|
1192
1192
|
testId: b && `${b}-layer`
|
|
1193
1193
|
})
|
|
1194
1194
|
})) })
|
|
1195
1195
|
})] });
|
|
1196
|
-
}, Ki = (e) => /* @__PURE__ */ v(
|
|
1196
|
+
}, Ki = (e) => /* @__PURE__ */ v(Xr, { children: /* @__PURE__ */ v(Gi, { ...e }) }), qi = (e) => e.contextMenu ? /* @__PURE__ */ v(Wi, {
|
|
1197
1197
|
...e,
|
|
1198
1198
|
tree: {},
|
|
1199
1199
|
path: "",
|
|
@@ -1203,18 +1203,18 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1203
1203
|
tree: {},
|
|
1204
1204
|
path: "",
|
|
1205
1205
|
testId: e.testId
|
|
1206
|
-
}), Ji = (e) => /* @__PURE__ */ v(
|
|
1206
|
+
}), Ji = (e) => /* @__PURE__ */ v(Xr, { children: /* @__PURE__ */ v(qi, { ...e }) }), Yi = (e) => {
|
|
1207
1207
|
let { subActions: t, subMenuIcon: n, primary: r, testId: i, tooltip: a } = e, o = /* @__PURE__ */ v(K, {
|
|
1208
|
-
colored: r ? !0 :
|
|
1208
|
+
colored: r ? !0 : Tr.MUTED,
|
|
1209
1209
|
basic: !r,
|
|
1210
1210
|
round: !0,
|
|
1211
1211
|
small: !0,
|
|
1212
|
-
icon: n ||
|
|
1212
|
+
icon: n || H.MENU,
|
|
1213
1213
|
testId: i,
|
|
1214
1214
|
tooltip: a
|
|
1215
1215
|
});
|
|
1216
1216
|
return t.length ? /* @__PURE__ */ v(Ji, { menu: {
|
|
1217
|
-
trigger:
|
|
1217
|
+
trigger: wr.COMPONENT,
|
|
1218
1218
|
component: o,
|
|
1219
1219
|
sections: t.map((e) => {
|
|
1220
1220
|
var t;
|
|
@@ -1226,13 +1226,13 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1226
1226
|
disabled: e.disabled,
|
|
1227
1227
|
menu: e.menu,
|
|
1228
1228
|
onClick: (t) => {
|
|
1229
|
-
t.stopPropagation(), t.preventDefault(),
|
|
1229
|
+
t.stopPropagation(), t.preventDefault(), on(e.onClick) && e.onClick(t);
|
|
1230
1230
|
}
|
|
1231
1231
|
};
|
|
1232
1232
|
})
|
|
1233
1233
|
} }) : null;
|
|
1234
1234
|
}, Xi = (t) => {
|
|
1235
|
-
let n = s(
|
|
1235
|
+
let n = s(U), { actions: r = [], closeLayer: i } = t;
|
|
1236
1236
|
return /* @__PURE__ */ v("div", {
|
|
1237
1237
|
className: g(yi.actions),
|
|
1238
1238
|
children: r.map((t, r) => {
|
|
@@ -1255,7 +1255,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1255
1255
|
name: String(t.label),
|
|
1256
1256
|
icon: t.icon ? t.icon : null,
|
|
1257
1257
|
onClick: (e) => {
|
|
1258
|
-
i && i(), e.stopPropagation(), e.preventDefault(), !(t.disabled || n) &&
|
|
1258
|
+
i && i(), e.stopPropagation(), e.preventDefault(), !(t.disabled || n) && on(t.onClick) && t.onClick(e);
|
|
1259
1259
|
},
|
|
1260
1260
|
testId: t.testId,
|
|
1261
1261
|
tooltip: t.tooltip
|
|
@@ -1272,7 +1272,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1272
1272
|
}, Qi = /* @__PURE__ */ function(e) {
|
|
1273
1273
|
return e.LABEL = "label", e.LINK = "link", e.CUSTOM = "custom", e;
|
|
1274
1274
|
}({}), $i = ({ type: e = Qi.LABEL, label: t, url: n, onClick: r, active: a, disabled: o, element: c }) => {
|
|
1275
|
-
let l = s(
|
|
1275
|
+
let l = s(U), u = e === Qi.LINK && n !== void 0, d = e === Qi.CUSTOM && i(c);
|
|
1276
1276
|
return /* @__PURE__ */ v("span", {
|
|
1277
1277
|
onClick: r,
|
|
1278
1278
|
className: g(Zi.labelContainer, a && Zi.active, (o || l) && Zi.disabled),
|
|
@@ -1302,7 +1302,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1302
1302
|
label: "_label_iu2wi_1",
|
|
1303
1303
|
buttonGroup: "_buttonGroup_iu2wi_11"
|
|
1304
1304
|
}, na = (e) => {
|
|
1305
|
-
let { basic: t = !1, items: n = [], header: r = "", onSelected: i = () => {}, small: a = !1, value: o = "", testId: c = void 0, disabled: l } = e, u = s(
|
|
1305
|
+
let { basic: t = !1, items: n = [], header: r = "", onSelected: i = () => {}, small: a = !1, value: o = "", testId: c = void 0, disabled: l } = e, u = s(U), d = (e, t, n, r, a) => {
|
|
1306
1306
|
e.preventDefault(), e.stopPropagation(), !(l || a || u) && i(t, n, r);
|
|
1307
1307
|
}, f = (e, t) => t === "string" ? e : t === "object" ? e.label : t === "array" ? e[1] : null, p = (e, t) => {
|
|
1308
1308
|
var n, r;
|
|
@@ -1317,8 +1317,8 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1317
1317
|
className: ta.buttonGroup,
|
|
1318
1318
|
"data-testid": c,
|
|
1319
1319
|
children: n.map((e, r) => {
|
|
1320
|
-
let i = Ni(e), o = r === 0 ?
|
|
1321
|
-
return y ? null : /* @__PURE__ */ v(
|
|
1320
|
+
let i = Ni(e), o = r === 0 ? V.FIRST : r === n.length - 1 ? V.LAST : V.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;
|
|
1321
|
+
return y ? null : /* @__PURE__ */ v(G, {
|
|
1322
1322
|
error: !!S,
|
|
1323
1323
|
warning: !!E,
|
|
1324
1324
|
text: T || S || E,
|
|
@@ -1366,7 +1366,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1366
1366
|
fullWidthStyleFix: "_fullWidthStyleFix_rwod1_17",
|
|
1367
1367
|
dismiss: "_dismiss_rwod1_22"
|
|
1368
1368
|
}, oa = ({ 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 }) => {
|
|
1369
|
-
let b = s(
|
|
1369
|
+
let b = s(U), x = p(null), [S, C] = f === void 0 ? m(!1) : [f, h], w = () => {
|
|
1370
1370
|
!u && !b && C && C(!1);
|
|
1371
1371
|
}, T = () => {
|
|
1372
1372
|
u || b || C && C(!S);
|
|
@@ -1374,19 +1374,19 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1374
1374
|
c(() => {
|
|
1375
1375
|
(u || b) && w();
|
|
1376
1376
|
}, [u, b]);
|
|
1377
|
-
let { renderLayer: E, arrowProps: D, layerProps: O, triggerProps: k } =
|
|
1377
|
+
let { renderLayer: E, arrowProps: D, layerProps: O, triggerProps: k } = ti({
|
|
1378
1378
|
isOpen: S,
|
|
1379
1379
|
placement: r,
|
|
1380
1380
|
triggerOffset: 6,
|
|
1381
1381
|
onOutsideClick: i ? w : void 0,
|
|
1382
1382
|
overflowContainer: d
|
|
1383
|
-
}), A =
|
|
1383
|
+
}), A = Jt([x, O.ref]);
|
|
1384
1384
|
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("div", {
|
|
1385
1385
|
ref: k.ref,
|
|
1386
1386
|
onClick: T,
|
|
1387
1387
|
"data-testid": l,
|
|
1388
1388
|
children: t
|
|
1389
|
-
}), /* @__PURE__ */ v(
|
|
1389
|
+
}), /* @__PURE__ */ v(At, {
|
|
1390
1390
|
nodeRef: x,
|
|
1391
1391
|
in: S,
|
|
1392
1392
|
timeout: 100,
|
|
@@ -1405,9 +1405,9 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1405
1405
|
small: !0,
|
|
1406
1406
|
round: !0,
|
|
1407
1407
|
onClick: w,
|
|
1408
|
-
icon:
|
|
1408
|
+
icon: H.CLOSE
|
|
1409
1409
|
})
|
|
1410
|
-
})] }), D.context && /* @__PURE__ */ v(
|
|
1410
|
+
})] }), D.context && /* @__PURE__ */ v(jt, {
|
|
1411
1411
|
context: D.context,
|
|
1412
1412
|
ref: D.ref,
|
|
1413
1413
|
width: 12,
|
|
@@ -1419,7 +1419,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1419
1419
|
})]
|
|
1420
1420
|
})) })
|
|
1421
1421
|
})] });
|
|
1422
|
-
}, sa = (e) => /* @__PURE__ */ v(
|
|
1422
|
+
}, sa = (e) => /* @__PURE__ */ v(Xr, { children: /* @__PURE__ */ v(oa, { ...e }) }), ca = {
|
|
1423
1423
|
colorInput: "_colorInput_1j7vk_1",
|
|
1424
1424
|
trigger: "_trigger_1j7vk_8",
|
|
1425
1425
|
buttonColor: "_buttonColor_1j7vk_12",
|
|
@@ -1530,11 +1530,11 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1530
1530
|
children: e
|
|
1531
1531
|
}), va = (e) => {
|
|
1532
1532
|
switch (e) {
|
|
1533
|
-
case
|
|
1534
|
-
case
|
|
1533
|
+
case Er.LEFT: return ha.alignLeft;
|
|
1534
|
+
case Er.RIGHT: return ha.alignRight;
|
|
1535
1535
|
default: return "";
|
|
1536
1536
|
}
|
|
1537
|
-
}, ya = ({ children: e, margin: t = "var(--padding)", color: n = "var(--color-border)", align: r =
|
|
1537
|
+
}, ya = ({ children: e, margin: t = "var(--padding)", color: n = "var(--color-border)", align: r = Er.CENTER }) => /* @__PURE__ */ v("div", {
|
|
1538
1538
|
className: `${ha.divider} ${va(r)}`,
|
|
1539
1539
|
style: {
|
|
1540
1540
|
marginTop: t,
|
|
@@ -1560,18 +1560,18 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1560
1560
|
children: [e, /* @__PURE__ */ y("div", {
|
|
1561
1561
|
className: ba.icons,
|
|
1562
1562
|
children: [
|
|
1563
|
-
a && /* @__PURE__ */ v(
|
|
1563
|
+
a && /* @__PURE__ */ v(ci, {
|
|
1564
1564
|
onClick: i,
|
|
1565
1565
|
icon: a
|
|
1566
1566
|
}),
|
|
1567
|
-
d && /* @__PURE__ */ v(
|
|
1567
|
+
d && /* @__PURE__ */ v(ci, {
|
|
1568
1568
|
text: t,
|
|
1569
1569
|
onClick: r
|
|
1570
1570
|
}),
|
|
1571
|
-
o && /* @__PURE__ */ v(
|
|
1571
|
+
o && /* @__PURE__ */ v(ci, {
|
|
1572
1572
|
text: (u = o == null ? void 0 : o.tooltip) == null ? "" : u,
|
|
1573
1573
|
onClick: o.onClick,
|
|
1574
|
-
icon:
|
|
1574
|
+
icon: H.LIBRARY
|
|
1575
1575
|
})
|
|
1576
1576
|
]
|
|
1577
1577
|
})]
|
|
@@ -1585,7 +1585,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1585
1585
|
subheading: "_subheading_xouqi_38",
|
|
1586
1586
|
content: "_content_xouqi_41",
|
|
1587
1587
|
footer: "_footer_xouqi_50"
|
|
1588
|
-
}, Ca = (e) =>
|
|
1588
|
+
}, Ca = (e) => tn(e) ? e.map((e, n) => /* @__PURE__ */ y(t, { children: [
|
|
1589
1589
|
e,
|
|
1590
1590
|
" ",
|
|
1591
1591
|
/* @__PURE__ */ v("br", {})
|
|
@@ -1612,7 +1612,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1612
1612
|
})] }), l ? /* @__PURE__ */ v("div", {
|
|
1613
1613
|
className: Sa.dismiss,
|
|
1614
1614
|
children: /* @__PURE__ */ v(K, {
|
|
1615
|
-
icon:
|
|
1615
|
+
icon: H.CLOSE,
|
|
1616
1616
|
round: !0,
|
|
1617
1617
|
basic: !0,
|
|
1618
1618
|
small: !0,
|
|
@@ -1669,7 +1669,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1669
1669
|
children: t
|
|
1670
1670
|
}) : /* @__PURE__ */ v(_, { children: t }), Da = ({ tabs: e, activeTab: t, open: n, background: r, handleTabClick: i, width: a, testId: o }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("div", {
|
|
1671
1671
|
className: Ta.tabs,
|
|
1672
|
-
children: e.map((e, a) =>
|
|
1672
|
+
children: e.map((e, a) => sn(e) || rn(e) ? null : /* @__PURE__ */ v("div", {
|
|
1673
1673
|
className: g(Ta.tab, t === a && n ? Ta.active : "", e.disabled ? Ta.disabled : ""),
|
|
1674
1674
|
style: { background: r },
|
|
1675
1675
|
onClick: e.disabled ? void 0 : () => i(a),
|
|
@@ -1680,7 +1680,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1680
1680
|
})
|
|
1681
1681
|
}, a))
|
|
1682
1682
|
}), e.map((e, r) => {
|
|
1683
|
-
if (
|
|
1683
|
+
if (sn(e) || rn(e)) return null;
|
|
1684
1684
|
let i = t === r;
|
|
1685
1685
|
return /* @__PURE__ */ v("div", {
|
|
1686
1686
|
style: {
|
|
@@ -1697,12 +1697,12 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1697
1697
|
ref: t,
|
|
1698
1698
|
className: Ta.resizeHandle,
|
|
1699
1699
|
...r,
|
|
1700
|
-
children: /* @__PURE__ */ v(
|
|
1700
|
+
children: /* @__PURE__ */ v(W, { icon: H.DRAG })
|
|
1701
1701
|
});
|
|
1702
|
-
}), ka =
|
|
1702
|
+
}), ka = yn, Aa = ({ children: e = null, width: t = 400, right: n = !1, onResize: r, setOpen: i, maxOpenWidth: a }) => {
|
|
1703
1703
|
let [o, s] = m(!1), c = a == null ? window.innerWidth / 2 : a;
|
|
1704
1704
|
return r ? /* @__PURE__ */ v(ka, {
|
|
1705
|
-
width:
|
|
1705
|
+
width: _n(t),
|
|
1706
1706
|
height: 100,
|
|
1707
1707
|
minConstraints: [35, Infinity],
|
|
1708
1708
|
maxConstraints: [c, Infinity],
|
|
@@ -1721,10 +1721,10 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1721
1721
|
},
|
|
1722
1722
|
children: e
|
|
1723
1723
|
}) : /* @__PURE__ */ v(_, { children: e });
|
|
1724
|
-
}, ja = ({ 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 =
|
|
1725
|
-
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,
|
|
1724
|
+
}, ja = ({ 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 = Dr.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 }) => {
|
|
1725
|
+
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, L = S === void 0 ? N : x, R = S || P, ee = Array.isArray(o) ? o[L || 0] : o, te = F ? ee : _ ? 35 : s;
|
|
1726
1726
|
return /* @__PURE__ */ v(Aa, {
|
|
1727
|
-
width:
|
|
1727
|
+
width: te,
|
|
1728
1728
|
onResize: w,
|
|
1729
1729
|
setOpen: I,
|
|
1730
1730
|
right: a,
|
|
@@ -1737,30 +1737,30 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1737
1737
|
style: {
|
|
1738
1738
|
background: e,
|
|
1739
1739
|
borderColor: typeof p == "string" ? p : void 0,
|
|
1740
|
-
width:
|
|
1740
|
+
width: te
|
|
1741
1741
|
},
|
|
1742
1742
|
children: _ ? /* @__PURE__ */ v(Da, {
|
|
1743
|
-
width:
|
|
1743
|
+
width: ee,
|
|
1744
1744
|
testId: C,
|
|
1745
1745
|
tabs: _,
|
|
1746
1746
|
open: F,
|
|
1747
|
-
activeTab:
|
|
1747
|
+
activeTab: L || 0,
|
|
1748
1748
|
background: e,
|
|
1749
1749
|
handleTabClick: (e) => {
|
|
1750
1750
|
let t = (t) => {
|
|
1751
1751
|
_ && t && t(_[e]);
|
|
1752
1752
|
};
|
|
1753
|
-
|
|
1753
|
+
L === e && F && I ? (t(E), I(!1)) : !F && I && (t(D), I(!0), w && ((e) => {
|
|
1754
1754
|
let t;
|
|
1755
|
-
if (t = Array.isArray(e) ? e[
|
|
1755
|
+
if (t = Array.isArray(e) ? e[L || 0] : e, typeof t == "number" && t < 240) w(240);
|
|
1756
1756
|
else if (typeof t == "string") {
|
|
1757
1757
|
let e = parseInt(t, 10);
|
|
1758
1758
|
!isNaN(e) && e < 240 && w(240);
|
|
1759
1759
|
}
|
|
1760
|
-
})(o)),
|
|
1760
|
+
})(o)), R(e), t(T);
|
|
1761
1761
|
}
|
|
1762
1762
|
}) : /* @__PURE__ */ v("div", {
|
|
1763
|
-
style: { width:
|
|
1763
|
+
style: { width: ee },
|
|
1764
1764
|
children: h
|
|
1765
1765
|
})
|
|
1766
1766
|
}), u && /* @__PURE__ */ v("span", {
|
|
@@ -1768,14 +1768,14 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1768
1768
|
children: A ? u : /* @__PURE__ */ v(K, {
|
|
1769
1769
|
onClick: I ? () => I(!F) : void 0,
|
|
1770
1770
|
round: !0,
|
|
1771
|
-
icon: a ?
|
|
1771
|
+
icon: a ? H.CHEVRON_RIGHT : H.CHEVRON_LEFT
|
|
1772
1772
|
})
|
|
1773
1773
|
})]
|
|
1774
1774
|
})
|
|
1775
1775
|
});
|
|
1776
1776
|
}, Ma = { inputGroup: "_inputGroup_biuoa_1" }, Na = (e) => i(e) && typeof e.type == "string", Pa = ({ children: n, small: r = !1, width: a = "100%" }) => {
|
|
1777
1777
|
let o = Array.isArray(n) ? n.filter((e) => i(e)) : [n], s = o.map((n, i) => {
|
|
1778
|
-
let a = Na(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 ?
|
|
1778
|
+
let a = Na(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 ? V.FIRST : u ? V.LAST : V.MIDDLE);
|
|
1779
1779
|
return a ? n : /* @__PURE__ */ v(t, { children: e.cloneElement(n, {
|
|
1780
1780
|
groupOrder: d,
|
|
1781
1781
|
small: r
|
|
@@ -1801,11 +1801,11 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1801
1801
|
groupOrderFirst: "_groupOrderFirst_b8kpk_173",
|
|
1802
1802
|
groupOrderMiddle: "_groupOrderMiddle_b8kpk_174",
|
|
1803
1803
|
groupOrderLast: "_groupOrderLast_b8kpk_178"
|
|
1804
|
-
}, Ia = r(({ error: e = null, tooltip: t = null, isInTable: n, width: r = void 0, small: i = !1, onChange: a =
|
|
1805
|
-
let O = s(
|
|
1804
|
+
}, Ia = 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) => {
|
|
1805
|
+
let O = s(U), k = (() => {
|
|
1806
1806
|
if (C) switch (C) {
|
|
1807
|
-
case
|
|
1808
|
-
case
|
|
1807
|
+
case V.FIRST: return Fa.groupOrderFirst;
|
|
1808
|
+
case V.LAST: return Fa.groupOrderLast;
|
|
1809
1809
|
default: return Fa.groupOrderMiddle;
|
|
1810
1810
|
}
|
|
1811
1811
|
return "";
|
|
@@ -1813,7 +1813,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1813
1813
|
return /* @__PURE__ */ v("div", {
|
|
1814
1814
|
style: { width: A },
|
|
1815
1815
|
className: k,
|
|
1816
|
-
children: /* @__PURE__ */ v(
|
|
1816
|
+
children: /* @__PURE__ */ v(G, {
|
|
1817
1817
|
error: !!e,
|
|
1818
1818
|
warning: !!S,
|
|
1819
1819
|
text: t || e || S,
|
|
@@ -1870,8 +1870,8 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1870
1870
|
n = `Selected - ${(r = Object.keys(e)) == null ? void 0 : r.length} files`;
|
|
1871
1871
|
} else n = e == null ? void 0 : e.name;
|
|
1872
1872
|
return n || null;
|
|
1873
|
-
}, Va = ({ 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 =
|
|
1874
|
-
let f = s(
|
|
1873
|
+
}, Va = ({ 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 }) => {
|
|
1874
|
+
let f = s(U), m = p(null), h = Ba(i, o);
|
|
1875
1875
|
return /* @__PURE__ */ y("div", {
|
|
1876
1876
|
onClick: () => {
|
|
1877
1877
|
var e;
|
|
@@ -1929,7 +1929,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1929
1929
|
let n = document.querySelector(`#${e}`), [r, i] = m(!1);
|
|
1930
1930
|
return u(() => {
|
|
1931
1931
|
r || i(!0);
|
|
1932
|
-
}, [e]), n ?
|
|
1932
|
+
}, [e]), n ? bn(t, n) : null;
|
|
1933
1933
|
}, Ga = {
|
|
1934
1934
|
wrapper: "_wrapper_1sv3a_1",
|
|
1935
1935
|
enter: "_enter_1sv3a_15",
|
|
@@ -1946,7 +1946,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
1946
1946
|
let e = n.current.querySelector("[tabindex=\"0\"]");
|
|
1947
1947
|
e ? e.focus() : n.current.focus();
|
|
1948
1948
|
}
|
|
1949
|
-
}, []), /* @__PURE__ */ v(
|
|
1949
|
+
}, []), /* @__PURE__ */ v(At, {
|
|
1950
1950
|
nodeRef: n,
|
|
1951
1951
|
in: t,
|
|
1952
1952
|
timeout: 100,
|
|
@@ -2067,7 +2067,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2067
2067
|
testId: `${g}-file-input`,
|
|
2068
2068
|
accept: "image/*"
|
|
2069
2069
|
}),
|
|
2070
|
-
S && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Ha, {}), /* @__PURE__ */ v(Za, { percentage:
|
|
2070
|
+
S && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Ha, {}), /* @__PURE__ */ v(Za, { percentage: Ln(100 * w / $a, 3) })] })
|
|
2071
2071
|
] }), P = /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(K, {
|
|
2072
2072
|
label: p || "Upload",
|
|
2073
2073
|
colored: !0,
|
|
@@ -2178,8 +2178,8 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2178
2178
|
return e.TOGGLE_DETAILS = "TOGGLE_DETAILS", e;
|
|
2179
2179
|
}({}), uo = ({ type: e, onClose: t, isInToast: n, testId: r }) => /* @__PURE__ */ v("div", {
|
|
2180
2180
|
className: g(so.dismiss, n ? so.absolute : "", e === co.INFO ? so.info : e === co.SUCCESS ? so.success : e === co.WARNING ? so.warning : e === co.ERROR ? so.error : null),
|
|
2181
|
-
children: /* @__PURE__ */ v(
|
|
2182
|
-
icon:
|
|
2181
|
+
children: /* @__PURE__ */ v(W, {
|
|
2182
|
+
icon: H.CLOSE,
|
|
2183
2183
|
onClick: t,
|
|
2184
2184
|
testId: r
|
|
2185
2185
|
})
|
|
@@ -2195,7 +2195,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2195
2195
|
className: g(so.legendToggle),
|
|
2196
2196
|
onClick: n,
|
|
2197
2197
|
children: t ? "Hide details" : "Show details"
|
|
2198
|
-
}), /* @__PURE__ */ v(
|
|
2198
|
+
}), /* @__PURE__ */ v(Gr, {
|
|
2199
2199
|
expanded: t,
|
|
2200
2200
|
children: /* @__PURE__ */ v("div", {
|
|
2201
2201
|
className: so.detailsText,
|
|
@@ -2203,20 +2203,20 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2203
2203
|
})
|
|
2204
2204
|
})] }), mo = ({ type: e }) => {
|
|
2205
2205
|
switch (e) {
|
|
2206
|
-
case co.SUCCESS: return /* @__PURE__ */ v(
|
|
2207
|
-
icon:
|
|
2206
|
+
case co.SUCCESS: return /* @__PURE__ */ v(W, {
|
|
2207
|
+
icon: H.SUCCESS,
|
|
2208
2208
|
size: 16
|
|
2209
2209
|
});
|
|
2210
|
-
case co.WARNING: return /* @__PURE__ */ v(
|
|
2211
|
-
icon:
|
|
2210
|
+
case co.WARNING: return /* @__PURE__ */ v(W, {
|
|
2211
|
+
icon: H.WARNING,
|
|
2212
2212
|
size: 16
|
|
2213
2213
|
});
|
|
2214
|
-
case co.ERROR: return /* @__PURE__ */ v(
|
|
2215
|
-
icon:
|
|
2214
|
+
case co.ERROR: return /* @__PURE__ */ v(W, {
|
|
2215
|
+
icon: H.ERROR,
|
|
2216
2216
|
size: 16
|
|
2217
2217
|
});
|
|
2218
|
-
default: return /* @__PURE__ */ v(
|
|
2219
|
-
icon:
|
|
2218
|
+
default: return /* @__PURE__ */ v(W, {
|
|
2219
|
+
icon: H.INFO,
|
|
2220
2220
|
size: 16
|
|
2221
2221
|
});
|
|
2222
2222
|
}
|
|
@@ -2305,8 +2305,8 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2305
2305
|
groupOrderFirst: "_groupOrderFirst_sl2b5_193",
|
|
2306
2306
|
groupOrderMiddle: "_groupOrderMiddle_sl2b5_194",
|
|
2307
2307
|
groupOrderLast: "_groupOrderLast_sl2b5_198"
|
|
2308
|
-
}, xo = ({ disabled: e = !1, error: t = null, warning: n = null, tooltip: r = null, options: i, onChange: a =
|
|
2309
|
-
let w = s(
|
|
2308
|
+
}, xo = ({ 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 }) => {
|
|
2309
|
+
let w = s(U), 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", {
|
|
2310
2310
|
value: "unselected",
|
|
2311
2311
|
disabled: !y,
|
|
2312
2312
|
hidden: !y,
|
|
@@ -2321,13 +2321,13 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2321
2321
|
children: e.label
|
|
2322
2322
|
}, t))), O = (() => {
|
|
2323
2323
|
if (m) switch (m) {
|
|
2324
|
-
case
|
|
2325
|
-
case
|
|
2324
|
+
case V.FIRST: return bo.groupOrderFirst;
|
|
2325
|
+
case V.LAST: return bo.groupOrderLast;
|
|
2326
2326
|
default: return bo.groupOrderMiddle;
|
|
2327
2327
|
}
|
|
2328
2328
|
return "";
|
|
2329
2329
|
})();
|
|
2330
|
-
return /* @__PURE__ */ v(
|
|
2330
|
+
return /* @__PURE__ */ v(G, {
|
|
2331
2331
|
error: !!t,
|
|
2332
2332
|
warning: !!n,
|
|
2333
2333
|
text: r || t || n,
|
|
@@ -2371,7 +2371,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2371
2371
|
})();
|
|
2372
2372
|
}, []), e;
|
|
2373
2373
|
}, wo = () => window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, To = () => {
|
|
2374
|
-
let [e, t] = m(wo()), n =
|
|
2374
|
+
let [e, t] = m(wo()), n = Qt(() => t(wo()), 150);
|
|
2375
2375
|
return c(() => (window.addEventListener("resize", n), () => {
|
|
2376
2376
|
window.removeEventListener("resize", n);
|
|
2377
2377
|
}), []), e;
|
|
@@ -2441,11 +2441,11 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2441
2441
|
}),
|
|
2442
2442
|
/* @__PURE__ */ v("span", {
|
|
2443
2443
|
className: Eo.check,
|
|
2444
|
-
children: i ? /* @__PURE__ */ v(
|
|
2444
|
+
children: i ? /* @__PURE__ */ v(W, { icon: H.CHECK }) : null
|
|
2445
2445
|
})
|
|
2446
2446
|
]
|
|
2447
2447
|
}), Ko = ({ section: e, selected: t, focused: n, onSelectOption: r, closeLayer: i }) => {
|
|
2448
|
-
let a = s(
|
|
2448
|
+
let a = s(U);
|
|
2449
2449
|
switch (e.type) {
|
|
2450
2450
|
case Ci.HEADING: return /* @__PURE__ */ v(Wo, { label: e.label });
|
|
2451
2451
|
case Ci.OPTION:
|
|
@@ -2490,7 +2490,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2490
2490
|
return /* @__PURE__ */ v("div", {
|
|
2491
2491
|
"data-testid": u,
|
|
2492
2492
|
className: g(Eo.layer, c && Eo.small),
|
|
2493
|
-
children: n.length ? /* @__PURE__ */ v(
|
|
2493
|
+
children: n.length ? /* @__PURE__ */ v(Jn, {
|
|
2494
2494
|
listRef: d,
|
|
2495
2495
|
rowComponent: Yo,
|
|
2496
2496
|
rowCount: n.length,
|
|
@@ -2563,7 +2563,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2563
2563
|
e.stopPropagation();
|
|
2564
2564
|
},
|
|
2565
2565
|
children: e.label
|
|
2566
|
-
}, t)), s.length > 0 && /* @__PURE__ */ v(
|
|
2566
|
+
}, t)), s.length > 0 && /* @__PURE__ */ v(G, {
|
|
2567
2567
|
text: s.map((e, t) => /* @__PURE__ */ v("div", { children: e.label }, t)),
|
|
2568
2568
|
display: "inline-flex",
|
|
2569
2569
|
children: /* @__PURE__ */ v("span", {
|
|
@@ -2572,7 +2572,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2572
2572
|
})
|
|
2573
2573
|
})]
|
|
2574
2574
|
});
|
|
2575
|
-
}, Qo = ({ selectedOptions: e, searchable: t = !1, searchValue: n, onChange: r =
|
|
2575
|
+
}, Qo = ({ selectedOptions: e, searchable: t = !1, searchValue: n, onChange: r = pn, inputRef: i, error: a, placeholder: o = "Select...", small: s, testId: c }) => {
|
|
2576
2576
|
let l = p(null), u = Array.isArray(e), d = u ? e.length > 0 : !!e, f = n ? n.length + 1 : 1;
|
|
2577
2577
|
return /* @__PURE__ */ y("div", {
|
|
2578
2578
|
className: Y.triggerInputContainer,
|
|
@@ -2607,8 +2607,8 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2607
2607
|
var k;
|
|
2608
2608
|
let [A, j] = So(), 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 = (() => {
|
|
2609
2609
|
if (w) switch (w) {
|
|
2610
|
-
case
|
|
2611
|
-
case
|
|
2610
|
+
case V.FIRST: return Y.groupOrderFirst;
|
|
2611
|
+
case V.LAST: return Y.groupOrderLast;
|
|
2612
2612
|
default: return Y.groupOrderMiddle;
|
|
2613
2613
|
}
|
|
2614
2614
|
return "";
|
|
@@ -2653,14 +2653,14 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2653
2653
|
e.stopPropagation(), p && p(e);
|
|
2654
2654
|
},
|
|
2655
2655
|
"data-testid": O && `${O}-clear`,
|
|
2656
|
-
children: /* @__PURE__ */ v(
|
|
2656
|
+
children: /* @__PURE__ */ v(W, { icon: H.CLOSE })
|
|
2657
2657
|
}) : /* @__PURE__ */ v("span", {
|
|
2658
2658
|
className: g(Y.iconOpen),
|
|
2659
|
-
children: /* @__PURE__ */ v(
|
|
2659
|
+
children: /* @__PURE__ */ v(W, { icon: "chevron down" })
|
|
2660
2660
|
})
|
|
2661
2661
|
})]
|
|
2662
2662
|
})] });
|
|
2663
|
-
return /* @__PURE__ */ v(_, { children: /* @__PURE__ */ v(
|
|
2663
|
+
return /* @__PURE__ */ v(_, { children: /* @__PURE__ */ v(G, {
|
|
2664
2664
|
error: !!o,
|
|
2665
2665
|
warning: !!s,
|
|
2666
2666
|
text: c || o || s,
|
|
@@ -2789,7 +2789,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2789
2789
|
options: n
|
|
2790
2790
|
}), r();
|
|
2791
2791
|
}
|
|
2792
|
-
}, T = o(() => d ? d === "auto" ? Ho(n, f, m, h) : d : "100%", [n, m]), E = o((e) => y ? Math.max(Ho(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 } =
|
|
2792
|
+
}, T = o(() => d ? d === "auto" ? Ho(n, f, m, h) : d : "100%", [n, m]), E = o((e) => y ? Math.max(Ho(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 } = ti({
|
|
2793
2793
|
isOpen: (b = e == null ? void 0 : e.isLayerOpen) == null ? !1 : b,
|
|
2794
2794
|
matchReferenceWidth: !0,
|
|
2795
2795
|
overflowContainer: !0,
|
|
@@ -2827,44 +2827,44 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2827
2827
|
createAble: _
|
|
2828
2828
|
}), I = () => {
|
|
2829
2829
|
S(), t({ type: us.BLUR_TRIGGER_INPUTS });
|
|
2830
|
-
},
|
|
2830
|
+
}, L = (e) => {
|
|
2831
2831
|
v.current && Number.isInteger(e) && v.current.scrollToRow({ index: e });
|
|
2832
|
-
},
|
|
2832
|
+
}, R = (n) => {
|
|
2833
2833
|
let r = is(n, e.layerFocus);
|
|
2834
2834
|
t({
|
|
2835
2835
|
type: us.FOCUS_LAYER_OPTIONS,
|
|
2836
2836
|
nextLayerFocus: r
|
|
2837
|
-
}),
|
|
2838
|
-
},
|
|
2837
|
+
}), L(r.current);
|
|
2838
|
+
}, ee = (e) => {
|
|
2839
2839
|
t({
|
|
2840
2840
|
type: us.FOCUS_TRIGGER_INPUTS,
|
|
2841
2841
|
ICustomSelectDirection: e,
|
|
2842
2842
|
selectedOptions: u
|
|
2843
2843
|
});
|
|
2844
|
-
},
|
|
2844
|
+
}, te = (e) => P(e), ne = u && u[e.triggerFocus.currentOption], re = (t) => {
|
|
2845
2845
|
N(t, u[e.triggerFocus.currentOption]);
|
|
2846
|
-
},
|
|
2846
|
+
}, ie = (t) => {
|
|
2847
2847
|
var n;
|
|
2848
2848
|
w(t, e == null || (n = e.visibleOptions) == null ? void 0 : n[e.layerFocus.current], x);
|
|
2849
|
-
},
|
|
2849
|
+
}, z = e.triggerFocus.clearAll;
|
|
2850
2850
|
return {
|
|
2851
2851
|
getTriggerWidth: T,
|
|
2852
2852
|
onKeyEvent: (n, r) => {
|
|
2853
2853
|
switch (n) {
|
|
2854
2854
|
case ds.UP:
|
|
2855
|
-
|
|
2855
|
+
R("up");
|
|
2856
2856
|
break;
|
|
2857
2857
|
case ds.DOWN:
|
|
2858
|
-
e.isLayerOpen ?
|
|
2858
|
+
e.isLayerOpen ? R("down") : I();
|
|
2859
2859
|
break;
|
|
2860
2860
|
case ds.LEFT:
|
|
2861
|
-
|
|
2861
|
+
ee("left");
|
|
2862
2862
|
break;
|
|
2863
2863
|
case ds.RIGHT:
|
|
2864
|
-
|
|
2864
|
+
ee("right");
|
|
2865
2865
|
break;
|
|
2866
2866
|
case ds.ENTER:
|
|
2867
|
-
|
|
2867
|
+
z ? te(r) : ne ? re(r) : ie(r);
|
|
2868
2868
|
break;
|
|
2869
2869
|
case ds.ESC:
|
|
2870
2870
|
x();
|
|
@@ -2875,7 +2875,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2875
2875
|
default:
|
|
2876
2876
|
}
|
|
2877
2877
|
},
|
|
2878
|
-
clearAllIsFocused:
|
|
2878
|
+
clearAllIsFocused: z,
|
|
2879
2879
|
triggerProps: k,
|
|
2880
2880
|
onClickTrigger: j,
|
|
2881
2881
|
onChangeSearch: F,
|
|
@@ -2889,7 +2889,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2889
2889
|
triggerBounds: A
|
|
2890
2890
|
};
|
|
2891
2891
|
}, ps = (e) => {
|
|
2892
|
-
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(
|
|
2892
|
+
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(U), A = l !== null, j = p(null), M = p(null), [N, P] = So(), F = Co(), [I, L] = f(cs, {
|
|
2893
2893
|
options: o,
|
|
2894
2894
|
firstSelectedOptionIndex: E
|
|
2895
2895
|
}, ({ options: e }) => ({
|
|
@@ -2898,29 +2898,29 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2898
2898
|
layerFocus: rs(e, E == null ? 0 : E),
|
|
2899
2899
|
triggerFocus: ts,
|
|
2900
2900
|
isLayerOpen: !1
|
|
2901
|
-
})), { getTriggerWidth:
|
|
2901
|
+
})), { getTriggerWidth: R, onKeyEvent: ee, clearAllIsFocused: te, triggerProps: ne, onClickTrigger: re, onChangeSearch: ie, onClickDeselectOption: z, onClickClearAll: ae, renderLayer: oe, layerProps: se, closeLayer: ce, onSelectOption: B, getLayerWidth: le, triggerBounds: ue } = fs({
|
|
2902
2902
|
...e,
|
|
2903
2903
|
state: I,
|
|
2904
|
-
dispatch:
|
|
2904
|
+
dispatch: L,
|
|
2905
2905
|
setTriggerFocus: P,
|
|
2906
2906
|
disabledContext: k,
|
|
2907
2907
|
isFontLoaded: F,
|
|
2908
2908
|
createAble: A,
|
|
2909
2909
|
listRef: j
|
|
2910
|
-
}),
|
|
2910
|
+
}), de = Jt([N, ne.ref]), fe = Jt([M, se.ref]);
|
|
2911
2911
|
return /* @__PURE__ */ y("div", {
|
|
2912
|
-
style: { width:
|
|
2912
|
+
style: { width: R() },
|
|
2913
2913
|
onKeyDown: (e) => {
|
|
2914
|
-
Object.values(ds).includes(e.key) &&
|
|
2914
|
+
Object.values(ds).includes(e.key) && ee(e.key, e);
|
|
2915
2915
|
},
|
|
2916
2916
|
children: [/* @__PURE__ */ v($o, {
|
|
2917
2917
|
selectedOptions: c,
|
|
2918
2918
|
searchValue: I.searchValue,
|
|
2919
2919
|
isOpen: I.isLayerOpen,
|
|
2920
2920
|
focusedSelectedOptionIndex: typeof I.triggerFocus.currentOption == "number" ? I.triggerFocus.currentOption : void 0,
|
|
2921
|
-
clearAllIsFocused:
|
|
2921
|
+
clearAllIsFocused: te,
|
|
2922
2922
|
searchable: b,
|
|
2923
|
-
triggerRef:
|
|
2923
|
+
triggerRef: de,
|
|
2924
2924
|
error: r,
|
|
2925
2925
|
warning: i,
|
|
2926
2926
|
tooltip: a,
|
|
@@ -2929,10 +2929,10 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2929
2929
|
disabled: n || k,
|
|
2930
2930
|
clearable: x,
|
|
2931
2931
|
tabIndex: m,
|
|
2932
|
-
onClickTrigger:
|
|
2933
|
-
onChangeSearch:
|
|
2934
|
-
onClickDeselect:
|
|
2935
|
-
onClickClear:
|
|
2932
|
+
onClickTrigger: re,
|
|
2933
|
+
onChangeSearch: ie,
|
|
2934
|
+
onClickDeselect: z,
|
|
2935
|
+
onClickClear: ae,
|
|
2936
2936
|
onFocus: h,
|
|
2937
2937
|
onBlur: g,
|
|
2938
2938
|
groupOrder: T,
|
|
@@ -2940,7 +2940,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2940
2940
|
placeholder: u,
|
|
2941
2941
|
right: D,
|
|
2942
2942
|
testId: O
|
|
2943
|
-
}), /* @__PURE__ */ v(
|
|
2943
|
+
}), /* @__PURE__ */ v(At, {
|
|
2944
2944
|
nodeRef: M,
|
|
2945
2945
|
in: I.isLayerOpen,
|
|
2946
2946
|
timeout: 100,
|
|
@@ -2949,9 +2949,9 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2949
2949
|
enterActive: Eo.enterActive
|
|
2950
2950
|
},
|
|
2951
2951
|
unmountOnExit: !0,
|
|
2952
|
-
children: /* @__PURE__ */ v(_, { children: I.isLayerOpen &&
|
|
2953
|
-
...
|
|
2954
|
-
ref:
|
|
2952
|
+
children: /* @__PURE__ */ v(_, { children: I.isLayerOpen && oe(/* @__PURE__ */ v("div", {
|
|
2953
|
+
...se,
|
|
2954
|
+
ref: fe,
|
|
2955
2955
|
className: Eo.layerContainer,
|
|
2956
2956
|
children: /* @__PURE__ */ v(Xo, {
|
|
2957
2957
|
listRef: j,
|
|
@@ -2959,12 +2959,12 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2959
2959
|
sections: I.visibleOptions,
|
|
2960
2960
|
selectedOptions: c,
|
|
2961
2961
|
onSelectOption: (e, n) => {
|
|
2962
|
-
|
|
2962
|
+
B(e, n, t ? void 0 : ce);
|
|
2963
2963
|
},
|
|
2964
2964
|
closeLayer: () => {
|
|
2965
|
-
C &&
|
|
2965
|
+
C && ce();
|
|
2966
2966
|
},
|
|
2967
|
-
width: ue
|
|
2967
|
+
width: le(ue),
|
|
2968
2968
|
small: d,
|
|
2969
2969
|
focusedOptionIndex: typeof I.layerFocus.current == "number" ? I.layerFocus.current : void 0,
|
|
2970
2970
|
firstSelectedOptionIndex: E == null ? 0 : E,
|
|
@@ -2973,7 +2973,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
2973
2973
|
})) })
|
|
2974
2974
|
})]
|
|
2975
2975
|
});
|
|
2976
|
-
}, ms = (e) => /* @__PURE__ */ v(
|
|
2976
|
+
}, ms = (e) => /* @__PURE__ */ v(Xr, { children: /* @__PURE__ */ v(ps, { ...e }) }), hs = (e) => e == null || e === "", gs = (e) => /^-?\d+(\.\d+)?$/.test(e.trim()), _s = (e) => e instanceof Array, vs = (e, t) => t && Array.isArray(e) ? e.map((e) => typeof e == "string" || typeof e == "number" ? {
|
|
2977
2977
|
label: e,
|
|
2978
2978
|
value: e
|
|
2979
2979
|
} : e) : e, ys = (e, t) => {
|
|
@@ -3002,7 +3002,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3002
3002
|
hasNonExistentValue: r && l !== void 0 ? Cs(s, l) : !1
|
|
3003
3003
|
};
|
|
3004
3004
|
}, Ts = (e) => {
|
|
3005
|
-
let { name: t = "", options: n = [], value: r, native: i = !1, onChange: a =
|
|
3005
|
+
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 } = ws(n, r, !i && s === !0, u), S = !m, C = i && S;
|
|
3006
3006
|
i && !S && console.warn("Native select does not support provided props (see stories)");
|
|
3007
3007
|
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) => {
|
|
3008
3008
|
if (o) {
|
|
@@ -3064,8 +3064,8 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3064
3064
|
}, js = ({ children: e, groupOrder: t, small: n = !1 }) => {
|
|
3065
3065
|
let r = (() => {
|
|
3066
3066
|
if (t) switch (t) {
|
|
3067
|
-
case
|
|
3068
|
-
case
|
|
3067
|
+
case V.FIRST: return As.groupOrderFirst;
|
|
3068
|
+
case V.LAST: return As.groupOrderLast;
|
|
3069
3069
|
default: return As.groupOrderMiddle;
|
|
3070
3070
|
}
|
|
3071
3071
|
return "";
|
|
@@ -3103,7 +3103,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3103
3103
|
small: r,
|
|
3104
3104
|
round: !0,
|
|
3105
3105
|
basic: !0,
|
|
3106
|
-
icon:
|
|
3106
|
+
icon: H.CHEVRON_DOUBLE_LEFT,
|
|
3107
3107
|
onClick: () => h("1"),
|
|
3108
3108
|
disabled: l || n === 1
|
|
3109
3109
|
}),
|
|
@@ -3111,7 +3111,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3111
3111
|
small: r,
|
|
3112
3112
|
round: !0,
|
|
3113
3113
|
basic: !0,
|
|
3114
|
-
icon:
|
|
3114
|
+
icon: H.CHEVRON_LEFT,
|
|
3115
3115
|
onClick: () => h(String(Number(n) - 1)),
|
|
3116
3116
|
disabled: l || n === 1
|
|
3117
3117
|
}),
|
|
@@ -3132,7 +3132,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3132
3132
|
small: r,
|
|
3133
3133
|
round: !0,
|
|
3134
3134
|
basic: !0,
|
|
3135
|
-
icon:
|
|
3135
|
+
icon: H.CHEVRON_RIGHT,
|
|
3136
3136
|
onClick: () => h(String(Number(n) + 1)),
|
|
3137
3137
|
disabled: l || n === u
|
|
3138
3138
|
}),
|
|
@@ -3140,7 +3140,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3140
3140
|
small: r,
|
|
3141
3141
|
round: !0,
|
|
3142
3142
|
basic: !0,
|
|
3143
|
-
icon:
|
|
3143
|
+
icon: H.CHEVRON_DOUBLE_RIGHT,
|
|
3144
3144
|
onClick: () => h(String(u)),
|
|
3145
3145
|
disabled: l || n === u,
|
|
3146
3146
|
testId: s == null ? void 0 : s.doubleRightBtn
|
|
@@ -3197,10 +3197,10 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3197
3197
|
if (!e) return null;
|
|
3198
3198
|
let { bodyAlignment: r, headerAlignment: i, textAlign: a, isHeader: o } = e;
|
|
3199
3199
|
switch (a || (o && i ? i : r)) {
|
|
3200
|
-
case
|
|
3201
|
-
case
|
|
3202
|
-
case
|
|
3203
|
-
default: return n ?
|
|
3200
|
+
case Er.LEFT: return n ? Er.LEFT : t.leftAligned;
|
|
3201
|
+
case Er.RIGHT: return n ? Er.RIGHT : t.rightAligned;
|
|
3202
|
+
case Er.CENTER: return n ? Er.CENTER : t.centerAligned;
|
|
3203
|
+
default: return n ? Er.LEFT : t.leftAligned;
|
|
3204
3204
|
}
|
|
3205
3205
|
}, Vs = (e, t = !1, n = 0) => {
|
|
3206
3206
|
if (!e || e.length === 0) return [];
|
|
@@ -3255,15 +3255,15 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3255
3255
|
disabled: e.disabled,
|
|
3256
3256
|
isInTable: !0,
|
|
3257
3257
|
maxTooltipWidth: e.maxTooltipWidth,
|
|
3258
|
-
right: t ===
|
|
3258
|
+
right: t === Er.RIGHT,
|
|
3259
3259
|
selectOnFocus: e.selectOnFocus,
|
|
3260
3260
|
testId: n,
|
|
3261
3261
|
tabIndex: e.disabled ? -1 : 0,
|
|
3262
3262
|
tooltip: e.tooltip,
|
|
3263
3263
|
type: r
|
|
3264
|
-
}), Us = 14, Ws = (e) => String(
|
|
3264
|
+
}), Us = 14, Ws = (e) => String(Un(e)), Gs = (e) => Mn(e) ? e : Ws(zn(Hn(e), Us)), Ks = (e) => e ? typeof e == "string" ? e : tn(e) ? e[0] : e.fieldName : "", qs = ({ 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 }) => {
|
|
3265
3265
|
let k = (e) => {
|
|
3266
|
-
let n =
|
|
3266
|
+
let n = Gn(e), r = t && hs(e);
|
|
3267
3267
|
return [Infinity, -Infinity].includes(Number(e)) || r ? {
|
|
3268
3268
|
valid: !0,
|
|
3269
3269
|
errors: []
|
|
@@ -3276,29 +3276,29 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3276
3276
|
var t;
|
|
3277
3277
|
let n = !!(e != null && e.endsWith("0"));
|
|
3278
3278
|
return Ws(w && e && !n && (t = k(e)) != null && t.valid ? Gs(e) : e);
|
|
3279
|
-
}, j = p(null), [M, N] = m(A(Ws(s))), [P, F] = m(!1), I = Ks(e), { valid:
|
|
3279
|
+
}, j = p(null), [M, N] = m(A(Ws(s))), [P, F] = m(!1), I = Ks(e), { valid: L, errors: R } = k(M), ee = R && R.length && !D ? R[0] : null;
|
|
3280
3280
|
c(() => {
|
|
3281
3281
|
let e = A(Ws(s));
|
|
3282
|
-
|
|
3282
|
+
Hn(M) !== Hn(e) && N(e);
|
|
3283
3283
|
}, [
|
|
3284
3284
|
s,
|
|
3285
3285
|
w,
|
|
3286
3286
|
T
|
|
3287
3287
|
]), c(() => {
|
|
3288
|
-
(O || !P) && !
|
|
3288
|
+
(O || !P) && !L ? b(I, ee) : b(I, null);
|
|
3289
3289
|
}, [
|
|
3290
3290
|
P,
|
|
3291
|
-
|
|
3291
|
+
L,
|
|
3292
3292
|
r
|
|
3293
3293
|
]);
|
|
3294
|
-
let
|
|
3294
|
+
let te = (e) => {
|
|
3295
3295
|
var n, r;
|
|
3296
|
-
let i = "key" in e ? M : e == null || (n = e.target) == null ? void 0 : n.value, a =
|
|
3296
|
+
let i = "key" in e ? M : e == null || (n = e.target) == null ? void 0 : n.value, a = wn(i.replaceAll(" ", "").replaceAll("|", ""));
|
|
3297
3297
|
N(a), ((r = k(a)) != null && r.valid || t && hs(i)) && l({
|
|
3298
3298
|
...e,
|
|
3299
3299
|
target: {
|
|
3300
3300
|
...e.target,
|
|
3301
|
-
value:
|
|
3301
|
+
value: Vn(Ws(a)),
|
|
3302
3302
|
name: I
|
|
3303
3303
|
}
|
|
3304
3304
|
});
|
|
@@ -3317,8 +3317,8 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3317
3317
|
testId: g,
|
|
3318
3318
|
disabled: n,
|
|
3319
3319
|
placeholder: t,
|
|
3320
|
-
value: T && !P &&
|
|
3321
|
-
onChange:
|
|
3320
|
+
value: T && !P && L ? E ? Ws(E(M)) : ((e) => S ? Rn(e, 2) : In(e, 4))(s) : M,
|
|
3321
|
+
onChange: te,
|
|
3322
3322
|
onFocus: (e) => {
|
|
3323
3323
|
F(!0), u(e);
|
|
3324
3324
|
},
|
|
@@ -3326,9 +3326,9 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3326
3326
|
F(!1), d(e);
|
|
3327
3327
|
},
|
|
3328
3328
|
onKeyDown: (e) => {
|
|
3329
|
-
e.key === ds.ENTER &&
|
|
3329
|
+
e.key === ds.ENTER && te(e);
|
|
3330
3330
|
},
|
|
3331
|
-
error:
|
|
3331
|
+
error: ee || r,
|
|
3332
3332
|
warning: y,
|
|
3333
3333
|
right: !i,
|
|
3334
3334
|
small: a,
|
|
@@ -3356,7 +3356,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3356
3356
|
warning: e.warning,
|
|
3357
3357
|
disabled: e.disabled,
|
|
3358
3358
|
isInTable: !0,
|
|
3359
|
-
left: (r = e.left) == null ? t ===
|
|
3359
|
+
left: (r = e.left) == null ? t === Er.LEFT : r,
|
|
3360
3360
|
selectOnFocus: e.selectOnFocus,
|
|
3361
3361
|
tabIndex: e.disabled ? -1 : 0,
|
|
3362
3362
|
testId: n,
|
|
@@ -3391,7 +3391,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3391
3391
|
width: "100%",
|
|
3392
3392
|
autoLayerWidth: e.autoLayerWidth,
|
|
3393
3393
|
multi: e.multi,
|
|
3394
|
-
right: t ===
|
|
3394
|
+
right: t === Er.RIGHT,
|
|
3395
3395
|
testId: n,
|
|
3396
3396
|
tabIndex: e.disabled ? -1 : 0
|
|
3397
3397
|
}), Xs = ({ cell: e, columnAlignment: t, testId: n }) => /* @__PURE__ */ v("div", {
|
|
@@ -3414,10 +3414,10 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3414
3414
|
testId: n
|
|
3415
3415
|
}) : null
|
|
3416
3416
|
}), Zs = ({ cell: e, testId: t }) => {
|
|
3417
|
-
let n = s(
|
|
3417
|
+
let n = s(U), { error: r, warning: i, tooltip: a, maxTooltipWidth: o } = e, c = (e) => J(e);
|
|
3418
3418
|
return /* @__PURE__ */ v("div", {
|
|
3419
3419
|
className: X.inputWrapper,
|
|
3420
|
-
children: /* @__PURE__ */ v(
|
|
3420
|
+
children: /* @__PURE__ */ v(G, {
|
|
3421
3421
|
error: !!r,
|
|
3422
3422
|
warning: !!i,
|
|
3423
3423
|
text: a || r || i,
|
|
@@ -3441,10 +3441,10 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3441
3441
|
});
|
|
3442
3442
|
}, Qs = ({ cell: e, testId: t }) => /* @__PURE__ */ v("div", {
|
|
3443
3443
|
className: e.label ? "" : X.standaloneCheckbox,
|
|
3444
|
-
children: /* @__PURE__ */ v(
|
|
3444
|
+
children: /* @__PURE__ */ v(G, {
|
|
3445
3445
|
text: e.tooltip,
|
|
3446
3446
|
enabled: !!e.tooltip,
|
|
3447
|
-
children: /* @__PURE__ */ v(
|
|
3447
|
+
children: /* @__PURE__ */ v(li, {
|
|
3448
3448
|
label: e.label,
|
|
3449
3449
|
checked: e.checked,
|
|
3450
3450
|
isInTable: !0,
|
|
@@ -3456,104 +3456,110 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3456
3456
|
})
|
|
3457
3457
|
})
|
|
3458
3458
|
}), $s = {
|
|
3459
|
-
container: "
|
|
3460
|
-
small: "
|
|
3461
|
-
vertical: "
|
|
3462
|
-
hasArrows: "
|
|
3463
|
-
button: "
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
marks: "
|
|
3469
|
-
mark: "
|
|
3470
|
-
dot: "
|
|
3471
|
-
markActive: "
|
|
3472
|
-
sliderDisabled: "
|
|
3473
|
-
label: "
|
|
3474
|
-
}, ec = (e, t) =>
|
|
3459
|
+
container: "_container_1rezb_1",
|
|
3460
|
+
small: "_small_1rezb_9",
|
|
3461
|
+
vertical: "_vertical_1rezb_12",
|
|
3462
|
+
hasArrows: "_hasArrows_1rezb_16",
|
|
3463
|
+
button: "_button_1rezb_20",
|
|
3464
|
+
thumb: "_thumb_1rezb_23",
|
|
3465
|
+
slider: "_slider_1rezb_28",
|
|
3466
|
+
track: "_track_1rezb_60",
|
|
3467
|
+
range: "_range_1rezb_72",
|
|
3468
|
+
marks: "_marks_1rezb_110",
|
|
3469
|
+
mark: "_mark_1rezb_110",
|
|
3470
|
+
dot: "_dot_1rezb_138",
|
|
3471
|
+
markActive: "_markActive_1rezb_146",
|
|
3472
|
+
sliderDisabled: "_sliderDisabled_1rezb_149",
|
|
3473
|
+
label: "_label_1rezb_156"
|
|
3474
|
+
}, ec = (e, t) => hn(tn(e) ? e : [e]).slice(0, t ? 2 : 1), tc = (e, t) => t ? e : e[0], nc = er((e) => e.map(({ label: e, tooltip: t, value: n }) => ({
|
|
3475
3475
|
label: e,
|
|
3476
3476
|
tooltip: t,
|
|
3477
3477
|
value: Number(n)
|
|
3478
|
-
})),
|
|
3478
|
+
})), tr), rc = ({ name: e, label: t, width: n = "100%", labelWidth: r = "auto", testId: i, value: a, min: o, max: c, step: l = 1, marks: u = [], showArrows: f = !1, showTooltip: p = !1, tooltipFormatter: h = (e) => e, disabled: b = !1, range: x = !1, small: S = !1, vertical: C = {
|
|
3479
3479
|
enabled: !1,
|
|
3480
3480
|
width: "100px",
|
|
3481
3481
|
height: "400px"
|
|
3482
|
-
}, onChange:
|
|
3483
|
-
let
|
|
3484
|
-
let r = tc(n,
|
|
3482
|
+
}, onChange: w, onChangeComplete: T }) => {
|
|
3483
|
+
let E = s(U), D = b || E, [O, k] = m(null), A = nc(u), j = d(() => ec(a, x), [x, a]), M = (n) => {
|
|
3484
|
+
let r = tc(n, x);
|
|
3485
3485
|
return { target: {
|
|
3486
3486
|
name: e == null ? "" : e,
|
|
3487
3487
|
value: r,
|
|
3488
3488
|
label: typeof t == "string" ? t : String(t)
|
|
3489
3489
|
} };
|
|
3490
|
-
}, M = (e) => {
|
|
3491
|
-
C(j(e));
|
|
3492
3490
|
}, N = (e) => {
|
|
3493
|
-
w
|
|
3491
|
+
w(M(e));
|
|
3494
3492
|
}, P = (e) => {
|
|
3495
|
-
M(e)
|
|
3496
|
-
}, F = () =>
|
|
3493
|
+
T == null || T(M(e));
|
|
3494
|
+
}, F = (e) => {
|
|
3495
|
+
N(e), P(e);
|
|
3496
|
+
}, I = () => /* @__PURE__ */ v("div", {
|
|
3497
3497
|
className: $s.button,
|
|
3498
3498
|
children: /* @__PURE__ */ v(K, {
|
|
3499
3499
|
basic: !0,
|
|
3500
3500
|
small: !0,
|
|
3501
3501
|
round: !0,
|
|
3502
3502
|
onClick: () => {
|
|
3503
|
-
|
|
3503
|
+
F(x ? [o, j[1]] : [o]);
|
|
3504
3504
|
},
|
|
3505
|
-
disabled:
|
|
3506
|
-
icon:
|
|
3505
|
+
disabled: D || j[0] === o,
|
|
3506
|
+
icon: H.FAST_BACKWARD
|
|
3507
3507
|
})
|
|
3508
|
-
}),
|
|
3508
|
+
}), L = () => /* @__PURE__ */ v("div", {
|
|
3509
3509
|
className: $s.button,
|
|
3510
3510
|
children: /* @__PURE__ */ v(K, {
|
|
3511
3511
|
basic: !0,
|
|
3512
3512
|
small: !0,
|
|
3513
3513
|
round: !0,
|
|
3514
3514
|
onClick: () => {
|
|
3515
|
-
|
|
3515
|
+
F(x ? [j[0], c] : [c]);
|
|
3516
3516
|
},
|
|
3517
|
-
disabled:
|
|
3518
|
-
icon:
|
|
3517
|
+
disabled: D || j[j.length - 1] === c,
|
|
3518
|
+
icon: H.FAST_FORWARD
|
|
3519
3519
|
})
|
|
3520
|
-
}),
|
|
3520
|
+
}), R = (e) => c === o ? "0%" : `${(e - o) / (c - o) * 100}%`, ee = (e) => {
|
|
3521
|
+
let t = R(e);
|
|
3522
|
+
return C.enabled ? { bottom: t } : { left: t };
|
|
3523
|
+
}, te = (e) => {
|
|
3524
|
+
if (i) return x ? `${i}-handle-${e}` : `${i}-handle`;
|
|
3525
|
+
}, ne = (e) => x ? j[0] <= e && e <= j[1] : j[0] >= e, re = (e) => x ? Math.abs(e - j[0]) <= Math.abs(e - j[1]) ? [Yt(e, o, j[1]), j[1]] : [j[0], Yt(e, j[0], c)] : [Yt(e, o, c)];
|
|
3521
3526
|
return /* @__PURE__ */ y("div", {
|
|
3522
|
-
className: g($s.container,
|
|
3523
|
-
style:
|
|
3524
|
-
width:
|
|
3525
|
-
height:
|
|
3527
|
+
className: g($s.container, S ? $s.small : "", C.enabled ? $s.vertical : ""),
|
|
3528
|
+
style: C.enabled ? {
|
|
3529
|
+
width: C.width,
|
|
3530
|
+
height: C.height
|
|
3526
3531
|
} : { width: n },
|
|
3527
3532
|
children: [
|
|
3528
|
-
|
|
3529
|
-
/* @__PURE__ */ y(
|
|
3530
|
-
className: g($s.slider,
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3533
|
+
f && (C.enabled ? /* @__PURE__ */ v(L, {}) : /* @__PURE__ */ v(I, {})),
|
|
3534
|
+
/* @__PURE__ */ y($n.Root, {
|
|
3535
|
+
className: g($s.slider, D && $s.sliderDisabled, f && $s.hasArrows),
|
|
3536
|
+
"data-testid": i,
|
|
3537
|
+
disabled: D,
|
|
3538
|
+
max: c,
|
|
3539
|
+
min: o,
|
|
3534
3540
|
minStepsBetweenThumbs: 0,
|
|
3535
3541
|
name: e,
|
|
3536
|
-
onValueChange: (e) =>
|
|
3542
|
+
onValueChange: (e) => N(e),
|
|
3537
3543
|
onValueCommit: (e) => {
|
|
3538
|
-
|
|
3544
|
+
k(null), P(e);
|
|
3539
3545
|
},
|
|
3540
|
-
orientation:
|
|
3541
|
-
step:
|
|
3542
|
-
value:
|
|
3543
|
-
children: [/* @__PURE__ */ y(
|
|
3546
|
+
orientation: C.enabled ? "vertical" : "horizontal",
|
|
3547
|
+
step: l,
|
|
3548
|
+
value: j,
|
|
3549
|
+
children: [/* @__PURE__ */ y($n.Track, {
|
|
3544
3550
|
className: $s.track,
|
|
3545
|
-
children: [/* @__PURE__ */ v(
|
|
3551
|
+
children: [/* @__PURE__ */ v($n.Range, { className: $s.range }), A.length > 0 && /* @__PURE__ */ v("span", {
|
|
3546
3552
|
className: $s.marks,
|
|
3547
|
-
children:
|
|
3548
|
-
let r = Number(n), i =
|
|
3553
|
+
children: A.map(({ label: e, tooltip: t, value: n }) => {
|
|
3554
|
+
let r = Number(n), i = ne(r), a = { [C.enabled ? "bottom" : "left"]: R(r) };
|
|
3549
3555
|
return /* @__PURE__ */ v("button", {
|
|
3550
3556
|
"aria-label": String(e == null ? n : e),
|
|
3551
3557
|
className: g($s.mark, i && $s.markActive),
|
|
3552
|
-
disabled:
|
|
3553
|
-
onClick: () =>
|
|
3558
|
+
disabled: D,
|
|
3559
|
+
onClick: () => F(re(r)),
|
|
3554
3560
|
style: a,
|
|
3555
3561
|
type: "button",
|
|
3556
|
-
children: /* @__PURE__ */ v(
|
|
3562
|
+
children: /* @__PURE__ */ v(G, {
|
|
3557
3563
|
text: /* @__PURE__ */ y(_, { children: [
|
|
3558
3564
|
t,
|
|
3559
3565
|
t ? ": " : "",
|
|
@@ -3564,18 +3570,20 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3564
3570
|
}, String(n));
|
|
3565
3571
|
})
|
|
3566
3572
|
})]
|
|
3567
|
-
}),
|
|
3573
|
+
}), j.map((n, r) => {
|
|
3568
3574
|
var i;
|
|
3569
|
-
return /* @__PURE__ */ v(
|
|
3575
|
+
return /* @__PURE__ */ v($n.Thumb, {
|
|
3570
3576
|
"aria-label": String((i = t == null ? e : t) == null ? "Slider" : i),
|
|
3571
3577
|
className: $s.thumb,
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3578
|
+
"data-testid": te(r),
|
|
3579
|
+
onKeyDown: () => k(r),
|
|
3580
|
+
onKeyUp: () => k(null),
|
|
3581
|
+
onPointerDown: () => k(r),
|
|
3582
|
+
onPointerUp: () => k(null),
|
|
3583
|
+
style: ee(n),
|
|
3584
|
+
children: p && O === r && /* @__PURE__ */ v(G, {
|
|
3577
3585
|
display: "block",
|
|
3578
|
-
text:
|
|
3586
|
+
text: h(tc(j, x)),
|
|
3579
3587
|
forceOpen: !0,
|
|
3580
3588
|
triggerStyle: {
|
|
3581
3589
|
position: "absolute",
|
|
@@ -3585,7 +3593,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3585
3593
|
}, r);
|
|
3586
3594
|
})]
|
|
3587
3595
|
}),
|
|
3588
|
-
|
|
3596
|
+
f && (C.enabled ? /* @__PURE__ */ v(I, {}) : /* @__PURE__ */ v(L, {})),
|
|
3589
3597
|
t && /* @__PURE__ */ v("label", {
|
|
3590
3598
|
className: $s.label,
|
|
3591
3599
|
style: { width: r },
|
|
@@ -3597,6 +3605,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3597
3605
|
className: X.inputWrapper,
|
|
3598
3606
|
children: /* @__PURE__ */ v(rc, {
|
|
3599
3607
|
label: e.label,
|
|
3608
|
+
testId: e.testId,
|
|
3600
3609
|
value: e.value,
|
|
3601
3610
|
min: e.min,
|
|
3602
3611
|
max: e.max,
|
|
@@ -3612,19 +3621,19 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3612
3621
|
let { tooltip: t, icon: n } = e;
|
|
3613
3622
|
return /* @__PURE__ */ v("div", {
|
|
3614
3623
|
className: X.iconCellWrapper,
|
|
3615
|
-
children: /* @__PURE__ */ v(
|
|
3624
|
+
children: /* @__PURE__ */ v(G, {
|
|
3616
3625
|
text: t,
|
|
3617
3626
|
enabled: !!t && J(t),
|
|
3618
3627
|
display: "flex",
|
|
3619
3628
|
placement: "top-center",
|
|
3620
|
-
children: /* @__PURE__ */ v(
|
|
3629
|
+
children: /* @__PURE__ */ v(W, { icon: n })
|
|
3621
3630
|
})
|
|
3622
3631
|
});
|
|
3623
3632
|
}, oc = ({ cell: e }) => /* @__PURE__ */ v(Xi, { actions: e.actions }), sc = ({ cell: e }) => {
|
|
3624
3633
|
let { helpIcon: t } = e;
|
|
3625
3634
|
return t ? /* @__PURE__ */ v("div", {
|
|
3626
3635
|
className: X.icon,
|
|
3627
|
-
children: /* @__PURE__ */ v(
|
|
3636
|
+
children: /* @__PURE__ */ v(ci, {
|
|
3628
3637
|
onClick: t.onClick,
|
|
3629
3638
|
text: t.tooltip
|
|
3630
3639
|
})
|
|
@@ -3633,10 +3642,10 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3633
3642
|
let { libraryIcon: t } = e;
|
|
3634
3643
|
return t ? /* @__PURE__ */ v("div", {
|
|
3635
3644
|
className: X.icon,
|
|
3636
|
-
children: /* @__PURE__ */ v(
|
|
3645
|
+
children: /* @__PURE__ */ v(ci, {
|
|
3637
3646
|
onClick: t.onClick,
|
|
3638
3647
|
text: t.tooltip,
|
|
3639
|
-
icon:
|
|
3648
|
+
icon: H.LIBRARY
|
|
3640
3649
|
})
|
|
3641
3650
|
}) : null;
|
|
3642
3651
|
}, lc = ({ cell: e }) => {
|
|
@@ -3645,13 +3654,13 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3645
3654
|
className: X.sortingCellIcon,
|
|
3646
3655
|
children: [n === "down" ? /* @__PURE__ */ v(_a, {
|
|
3647
3656
|
link: !0,
|
|
3648
|
-
children: /* @__PURE__ */ v(
|
|
3657
|
+
children: /* @__PURE__ */ v(W, { icon: H.SORT_ASCENDING })
|
|
3649
3658
|
}) : n === "up" ? /* @__PURE__ */ v(_a, {
|
|
3650
3659
|
link: !0,
|
|
3651
|
-
children: /* @__PURE__ */ v(
|
|
3660
|
+
children: /* @__PURE__ */ v(W, { icon: H.SORT_DESCENDING })
|
|
3652
3661
|
}) : /* @__PURE__ */ v(_a, {
|
|
3653
3662
|
faint: !0,
|
|
3654
|
-
children: /* @__PURE__ */ v(
|
|
3663
|
+
children: /* @__PURE__ */ v(W, { icon: H.SORT_DESCENDING })
|
|
3655
3664
|
}), r && n ? /* @__PURE__ */ v("sup", { children: r }) : null]
|
|
3656
3665
|
}) : null;
|
|
3657
3666
|
}, uc = ({ cell: e, isHeader: t, testId: n }) => {
|
|
@@ -3669,7 +3678,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3669
3678
|
});
|
|
3670
3679
|
return /* @__PURE__ */ v("div", {
|
|
3671
3680
|
className: X.inputWrapper,
|
|
3672
|
-
children: /* @__PURE__ */ v(
|
|
3681
|
+
children: /* @__PURE__ */ v(G, {
|
|
3673
3682
|
error: !!r,
|
|
3674
3683
|
warning: !!i,
|
|
3675
3684
|
text: a || r || i,
|
|
@@ -3705,7 +3714,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3705
3714
|
disabled: "_disabled_1u1qo_98",
|
|
3706
3715
|
isInTable: "_isInTable_1u1qo_114",
|
|
3707
3716
|
helpIconEnabled: "_helpIconEnabled_1u1qo_119"
|
|
3708
|
-
}, pc = ({ 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 =
|
|
3717
|
+
}, pc = ({ 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 = Or.CAPITALIZE }) => {
|
|
3709
3718
|
let f = l || u;
|
|
3710
3719
|
return /* @__PURE__ */ y("div", {
|
|
3711
3720
|
className: g(fc.radio, i ? fc.disabled : null, a ? fc.small : null, s ? fc.noMargin : null, t ? null : fc.noLabel),
|
|
@@ -3713,7 +3722,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3713
3722
|
"data-testid": c,
|
|
3714
3723
|
children: [
|
|
3715
3724
|
/* @__PURE__ */ v("input", {
|
|
3716
|
-
type:
|
|
3725
|
+
type: Ar.RADIO,
|
|
3717
3726
|
value: n,
|
|
3718
3727
|
checked: r,
|
|
3719
3728
|
onChange: () => {},
|
|
@@ -3728,7 +3737,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3728
3737
|
f && /* @__PURE__ */ v("div", {
|
|
3729
3738
|
className: fc.helpIconEnabled,
|
|
3730
3739
|
onClick: u,
|
|
3731
|
-
children: /* @__PURE__ */ v(
|
|
3740
|
+
children: /* @__PURE__ */ v(ci, { text: l })
|
|
3732
3741
|
})
|
|
3733
3742
|
]
|
|
3734
3743
|
});
|
|
@@ -3775,7 +3784,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3775
3784
|
}
|
|
3776
3785
|
}, gc = /* @__PURE__ */ function(e) {
|
|
3777
3786
|
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;
|
|
3778
|
-
}({}), _c = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r =
|
|
3787
|
+
}({}), _c = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = Er.LEFT, width: i, testId: a }) => {
|
|
3779
3788
|
var o;
|
|
3780
3789
|
if (!e) return null;
|
|
3781
3790
|
let { style: s, colSpan: c, rowSpan: l, width: u, textAlign: d } = e, f = p(null), m = {
|
|
@@ -3786,7 +3795,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3786
3795
|
}, h = Bs(m, X), _ = Bs(m, X, !0), y = e.type === gc.INPUT || e.type === gc.NUMBER_INPUT || e.type === gc.SELECT || e.type === gc.POPOVER ? X.inputCell : e.type === gc.SLIDER ? X.sliderCell : e.type === gc.CHECKBOX || e.type === gc.RADIO ? X.checkBoxCell : e.type === gc.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 === gc.STATIC || !e.type, C = {
|
|
3787
3796
|
width: x,
|
|
3788
3797
|
minWidth: x,
|
|
3789
|
-
textTransform: t && S ?
|
|
3798
|
+
textTransform: t && S ? Or.CAPITALIZE : void 0,
|
|
3790
3799
|
...s
|
|
3791
3800
|
};
|
|
3792
3801
|
return /* @__PURE__ */ v(t ? "th" : "td", {
|
|
@@ -3797,7 +3806,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3797
3806
|
rowSpan: l,
|
|
3798
3807
|
children: /* @__PURE__ */ v(hc, {
|
|
3799
3808
|
cell: e,
|
|
3800
|
-
columnAlignment: _ == null ?
|
|
3809
|
+
columnAlignment: _ == null ? Er.RIGHT : _,
|
|
3801
3810
|
isHeader: t,
|
|
3802
3811
|
testId: a
|
|
3803
3812
|
})
|
|
@@ -3819,11 +3828,11 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3819
3828
|
actions: e.actions
|
|
3820
3829
|
},
|
|
3821
3830
|
isHeader: n
|
|
3822
|
-
}, r), { attributes: O, listeners: k, setNodeRef: A, transform: j, transition: M, isDragging: N } =
|
|
3831
|
+
}, r), { attributes: O, listeners: k, setNodeRef: A, transform: j, transition: M, isDragging: N } = Xn({
|
|
3823
3832
|
id: t.toString(),
|
|
3824
3833
|
animateLayoutChanges: () => !1
|
|
3825
3834
|
}), P = {
|
|
3826
|
-
transform: u ? void 0 :
|
|
3835
|
+
transform: u ? void 0 : Qn.Translate.toString(j),
|
|
3827
3836
|
height: d,
|
|
3828
3837
|
transition: M,
|
|
3829
3838
|
opacity: N ? 0 : void 0
|
|
@@ -3865,7 +3874,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3865
3874
|
className: g(Rs.dragIcon, u ? Rs.dragIconDisabled : ""),
|
|
3866
3875
|
...O,
|
|
3867
3876
|
...k,
|
|
3868
|
-
children: /* @__PURE__ */ v(
|
|
3877
|
+
children: /* @__PURE__ */ v(W, { icon: H.DRAG })
|
|
3869
3878
|
})
|
|
3870
3879
|
}) : null,
|
|
3871
3880
|
E,
|
|
@@ -3878,8 +3887,8 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3878
3887
|
}, `${t}_expanded_content`) : null] });
|
|
3879
3888
|
}, yc = (e) => {
|
|
3880
3889
|
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]);
|
|
3881
|
-
return a ? /* @__PURE__ */ y(
|
|
3882
|
-
collisionDetection:
|
|
3890
|
+
return a ? /* @__PURE__ */ y(nr, {
|
|
3891
|
+
collisionDetection: ir,
|
|
3883
3892
|
onDragStart: (e) => {
|
|
3884
3893
|
p(e.active.id);
|
|
3885
3894
|
},
|
|
@@ -3903,11 +3912,11 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3903
3912
|
to: i
|
|
3904
3913
|
}));
|
|
3905
3914
|
},
|
|
3906
|
-
children: [/* @__PURE__ */ v(
|
|
3915
|
+
children: [/* @__PURE__ */ v(Yn, {
|
|
3907
3916
|
items: b,
|
|
3908
|
-
strategy:
|
|
3917
|
+
strategy: Zn,
|
|
3909
3918
|
children: t({ dropDisabled: h })
|
|
3910
|
-
}), !!f &&
|
|
3919
|
+
}), !!f && bn(/* @__PURE__ */ v(rr, {
|
|
3911
3920
|
dropAnimation: null,
|
|
3912
3921
|
children: /* @__PURE__ */ v("table", {
|
|
3913
3922
|
className: g(go.table, go.dragOverlay),
|
|
@@ -3933,7 +3942,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3933
3942
|
}) : t({});
|
|
3934
3943
|
}, bc = ({ table: e, children: t }) => {
|
|
3935
3944
|
var n, r, i;
|
|
3936
|
-
let a = p(null), o =
|
|
3945
|
+
let a = p(null), o = ar({
|
|
3937
3946
|
count: (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n,
|
|
3938
3947
|
getScrollElement: () => a.current,
|
|
3939
3948
|
estimateSize: () => 31,
|
|
@@ -3997,7 +4006,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
3997
4006
|
});
|
|
3998
4007
|
}, Cc = (e) => {
|
|
3999
4008
|
var t, n, r, i, a;
|
|
4000
|
-
let { onListReorder: o = () => {}, canListReorder: s = () => !0, beforeRenderRow: c, table: l } = e, { columnWidths: u, footer: d, name: f, rows: m = [], actions: h, actionsRight: _, columnHeaderAlignments: b, columnAlignment: x, striped: S = !0, testId: C, draggable: w, defaultEmptyRow: T = null, onAddRow: E = null, bordered: D = !0, maxHeight: O, fixedWidth: k } = l, A = p(null), j =
|
|
4009
|
+
let { onListReorder: o = () => {}, canListReorder: s = () => !0, beforeRenderRow: c, table: l } = e, { columnWidths: u, footer: d, name: f, rows: m = [], actions: h, actionsRight: _, columnHeaderAlignments: b, columnAlignment: x, striped: S = !0, testId: C, draggable: w, defaultEmptyRow: T = null, onAddRow: E = null, bordered: D = !0, maxHeight: O, fixedWidth: k } = l, A = p(null), j = en(e, "table.headers", []), M = Fs(m, j), N = Ls(m, j), P = M + +!!N, F = d ? (d == null || (t = d.pagination) == null || (t = t.rowsPerPage) == null ? void 0 : t.value) === 0 || Number(d == null || (n = d.pagination) == null ? void 0 : n.selectedPage) >= Number(d == null || (r = d.pagination) == null ? void 0 : r.rowCount) / Number(d == null || (i = d.pagination) == null || (i = i.rowsPerPage) == null ? void 0 : i.value) : !0, I = (T == null || (a = T.cells) == null ? void 0 : a.length) && E && F, L = {
|
|
4001
4010
|
cells: I ? T.cells.map((e, t) => (e == null ? void 0 : e.type) === "Input" ? {
|
|
4002
4011
|
...e,
|
|
4003
4012
|
onChange: (e) => {
|
|
@@ -4016,9 +4025,9 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4016
4025
|
disabled: !0
|
|
4017
4026
|
}) : null,
|
|
4018
4027
|
testId: C ? `${C}-last-empty-row` : void 0
|
|
4019
|
-
},
|
|
4028
|
+
}, R = I ? m.concat(L) : m, ee = {
|
|
4020
4029
|
...l,
|
|
4021
|
-
rows:
|
|
4030
|
+
rows: R
|
|
4022
4031
|
};
|
|
4023
4032
|
return /* @__PURE__ */ y("div", {
|
|
4024
4033
|
className: g(go.wrapper, D ? go.bordered : ""),
|
|
@@ -4041,11 +4050,11 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4041
4050
|
draggable: w,
|
|
4042
4051
|
onListReorder: o,
|
|
4043
4052
|
rowActions: N,
|
|
4044
|
-
rows:
|
|
4053
|
+
rows: R,
|
|
4045
4054
|
tbodyRef: A,
|
|
4046
4055
|
canListReorder: s,
|
|
4047
4056
|
children: ({ dropDisabled: e }) => /* @__PURE__ */ v(Sc, {
|
|
4048
|
-
table:
|
|
4057
|
+
table: ee,
|
|
4049
4058
|
children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ y("table", {
|
|
4050
4059
|
className: g(go.table, S ? go.striped : ""),
|
|
4051
4060
|
"data-testid": C,
|
|
@@ -4064,7 +4073,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4064
4073
|
}, `0_${t}`)) }), /* @__PURE__ */ v("tbody", {
|
|
4065
4074
|
ref: A,
|
|
4066
4075
|
children: t ? t.getVirtualItems().map((t) => {
|
|
4067
|
-
let n = t.index, r =
|
|
4076
|
+
let n = t.index, r = R[n];
|
|
4068
4077
|
return /* @__PURE__ */ v(vc, {
|
|
4069
4078
|
rowIndex: n,
|
|
4070
4079
|
row: c ? c({
|
|
@@ -4080,7 +4089,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4080
4089
|
height: t.size,
|
|
4081
4090
|
dropDisabled: e
|
|
4082
4091
|
}, `1_${n}`);
|
|
4083
|
-
}) :
|
|
4092
|
+
}) : R.map((t, n) => /* @__PURE__ */ v(vc, {
|
|
4084
4093
|
rowIndex: n,
|
|
4085
4094
|
row: c ? c({
|
|
4086
4095
|
row: t,
|
|
@@ -4177,9 +4186,9 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4177
4186
|
]);
|
|
4178
4187
|
let S = d(() => t.fields.map((e, r) => {
|
|
4179
4188
|
var a, o, s;
|
|
4180
|
-
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) =>
|
|
4189
|
+
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) => gn(e) === wc);
|
|
4181
4190
|
if (!l.length || u) return {};
|
|
4182
|
-
let d = t == null || (a = t.units) == null ? void 0 : a[r], f =
|
|
4191
|
+
let d = t == null || (a = t.units) == null ? void 0 : a[r], f = gn(d), p = l != null && l.some((e) => gn(e) === f) ? d : (o = c == null ? void 0 : c.defaultUnit) == null ? "" : o;
|
|
4183
4192
|
return {
|
|
4184
4193
|
key: i == null || (s = i[r]) == null ? void 0 : s.value,
|
|
4185
4194
|
value: p,
|
|
@@ -4203,7 +4212,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4203
4212
|
e,
|
|
4204
4213
|
i,
|
|
4205
4214
|
n
|
|
4206
|
-
]), C = d(() => S.some((e) => !
|
|
4215
|
+
]), C = d(() => S.some((e) => !rn(e)), [S]), w = d(() => [{
|
|
4207
4216
|
cells: i,
|
|
4208
4217
|
actions: [{}]
|
|
4209
4218
|
}, ...C ? [{ cells: S }] : []], [
|
|
@@ -4528,7 +4537,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4528
4537
|
throw Error(`${n("jsonParseFailed")} ${e.message}`);
|
|
4529
4538
|
}
|
|
4530
4539
|
}, al = (e) => e.replace(",", "."), ol = (e) => e.map((e) => e.map((e) => al(e))), sl = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
|
|
4531
|
-
|
|
4540
|
+
sr.parse(e, {
|
|
4532
4541
|
...Xc,
|
|
4533
4542
|
preview: t,
|
|
4534
4543
|
complete: (e) => {
|
|
@@ -4561,7 +4570,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4561
4570
|
t,
|
|
4562
4571
|
...n
|
|
4563
4572
|
].filter(Boolean);
|
|
4564
|
-
return
|
|
4573
|
+
return sr.unparse(o, {
|
|
4565
4574
|
quotes: !1,
|
|
4566
4575
|
header: !0,
|
|
4567
4576
|
delimiter: a
|
|
@@ -4606,12 +4615,12 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4606
4615
|
default: return "info";
|
|
4607
4616
|
}
|
|
4608
4617
|
})();
|
|
4609
|
-
return e !== void 0 &&
|
|
4618
|
+
return e !== void 0 && ur.isActive(e) ? ur.update(e, {
|
|
4610
4619
|
render: o,
|
|
4611
4620
|
autoClose: n,
|
|
4612
4621
|
onClose: r,
|
|
4613
4622
|
type: s
|
|
4614
|
-
}) :
|
|
4623
|
+
}) : ur(o, {
|
|
4615
4624
|
toastId: e,
|
|
4616
4625
|
autoClose: n,
|
|
4617
4626
|
onClose: r,
|
|
@@ -4621,11 +4630,11 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4621
4630
|
pauseOnHover: !0,
|
|
4622
4631
|
draggable: !1,
|
|
4623
4632
|
closeButton: a,
|
|
4624
|
-
transition:
|
|
4633
|
+
transition: cr,
|
|
4625
4634
|
type: s
|
|
4626
4635
|
});
|
|
4627
4636
|
}, fl = (e) => {
|
|
4628
|
-
|
|
4637
|
+
ur.dismiss(e);
|
|
4629
4638
|
}, pl = (e, t) => {
|
|
4630
4639
|
t(() => {
|
|
4631
4640
|
dl({ ...e });
|
|
@@ -4636,8 +4645,8 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4636
4645
|
disabled: "_disabled_18fme_105",
|
|
4637
4646
|
noMargin: "_noMargin_18fme_113",
|
|
4638
4647
|
helpIconEnabled: "_helpIconEnabled_18fme_116"
|
|
4639
|
-
}, hl = ({ 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 =
|
|
4640
|
-
let p = s(
|
|
4648
|
+
}, hl = ({ 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 = Or.CAPITALIZE }) => {
|
|
4649
|
+
let p = s(U), m = u || d, h = r || p;
|
|
4641
4650
|
return /* @__PURE__ */ y("div", {
|
|
4642
4651
|
className: g(ml.toggle, h ? ml.disabled : null, a ? ml.small : null, c ? ml.noMargin : null),
|
|
4643
4652
|
style: { display: i },
|
|
@@ -4647,7 +4656,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4647
4656
|
"data-testid": l,
|
|
4648
4657
|
children: [
|
|
4649
4658
|
/* @__PURE__ */ v("input", {
|
|
4650
|
-
type:
|
|
4659
|
+
type: Ar.CHECKBOX,
|
|
4651
4660
|
name: e,
|
|
4652
4661
|
value: n == null ? void 0 : n.toString(),
|
|
4653
4662
|
disabled: h,
|
|
@@ -4661,7 +4670,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4661
4670
|
m && /* @__PURE__ */ v("div", {
|
|
4662
4671
|
className: ml.helpIconEnabled,
|
|
4663
4672
|
onClick: d,
|
|
4664
|
-
children: /* @__PURE__ */ v(
|
|
4673
|
+
children: /* @__PURE__ */ v(ci, { text: u })
|
|
4665
4674
|
})
|
|
4666
4675
|
]
|
|
4667
4676
|
});
|
|
@@ -4686,7 +4695,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4686
4695
|
let j = o((t) => {
|
|
4687
4696
|
if (t) {
|
|
4688
4697
|
var n, r, i;
|
|
4689
|
-
let t =
|
|
4698
|
+
let t = or(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 = {
|
|
4690
4699
|
validationRules: s,
|
|
4691
4700
|
importLimit: (r = e.importLimit) == null ? Tc : r
|
|
4692
4701
|
}, o = ll(I.fields.slice(0, 2), ((i = I.units) == null ? [] : i).slice(0, 2), t, a);
|
|
@@ -4723,20 +4732,20 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4723
4732
|
type: "Success",
|
|
4724
4733
|
content: u("pasteSuccessful")
|
|
4725
4734
|
} }, f);
|
|
4726
|
-
}, { pastedText: F, parsedResult: I } = k,
|
|
4735
|
+
}, { pastedText: F, parsedResult: I } = k, L = T && T(I), { isValid: R, errors: ee } = I, te = ee.length, ne = F === "", re = Ic(F), ie = Fc(F), z = /* @__PURE__ */ y(_, { children: [
|
|
4727
4736
|
/* @__PURE__ */ y("div", {
|
|
4728
4737
|
className: oo.headerContainer,
|
|
4729
4738
|
children: [
|
|
4730
|
-
/* @__PURE__ */ v(
|
|
4739
|
+
/* @__PURE__ */ v(G, {
|
|
4731
4740
|
text: u("downsampleTooltip"),
|
|
4732
4741
|
children: /* @__PURE__ */ v(hl, {
|
|
4733
4742
|
label: u("downsampled"),
|
|
4734
4743
|
checked: D,
|
|
4735
4744
|
onChange: () => j(!D),
|
|
4736
|
-
disabled:
|
|
4745
|
+
disabled: ne || !R
|
|
4737
4746
|
})
|
|
4738
4747
|
}),
|
|
4739
|
-
/* @__PURE__ */ v(
|
|
4748
|
+
/* @__PURE__ */ v(G, {
|
|
4740
4749
|
text: u("deletePastedContent"),
|
|
4741
4750
|
children: /* @__PURE__ */ v(K, {
|
|
4742
4751
|
name: "clearReview",
|
|
@@ -4745,7 +4754,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4745
4754
|
onClick: M
|
|
4746
4755
|
})
|
|
4747
4756
|
}),
|
|
4748
|
-
/* @__PURE__ */ v(
|
|
4757
|
+
/* @__PURE__ */ v(G, {
|
|
4749
4758
|
text: u("openHelp"),
|
|
4750
4759
|
children: /* @__PURE__ */ v(K, {
|
|
4751
4760
|
name: "help",
|
|
@@ -4760,7 +4769,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4760
4769
|
validationRules: s,
|
|
4761
4770
|
t: u
|
|
4762
4771
|
}),
|
|
4763
|
-
|
|
4772
|
+
ne ? /* @__PURE__ */ v("div", {
|
|
4764
4773
|
className: oo.resultContainer,
|
|
4765
4774
|
children: /* @__PURE__ */ v(Pc, {
|
|
4766
4775
|
text: null,
|
|
@@ -4798,22 +4807,22 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4798
4807
|
}) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
|
|
4799
4808
|
className: oo.messagesContainer,
|
|
4800
4809
|
children: [
|
|
4801
|
-
|
|
4802
|
-
errors:
|
|
4810
|
+
te ? /* @__PURE__ */ v(Mc, {
|
|
4811
|
+
errors: ee,
|
|
4803
4812
|
t: u
|
|
4804
4813
|
}) : null,
|
|
4805
|
-
|
|
4814
|
+
re && /* @__PURE__ */ v(_a, {
|
|
4806
4815
|
muted: !0,
|
|
4807
4816
|
children: u("commasAsDecimals")
|
|
4808
4817
|
}),
|
|
4809
|
-
|
|
4818
|
+
ie && /* @__PURE__ */ v(ho, { message: {
|
|
4810
4819
|
visible: !0,
|
|
4811
4820
|
icon: !0,
|
|
4812
4821
|
width: "100%",
|
|
4813
4822
|
content: u("extraSeparators"),
|
|
4814
4823
|
type: "Warning"
|
|
4815
4824
|
} }),
|
|
4816
|
-
|
|
4825
|
+
L && /* @__PURE__ */ v(ho, { message: {
|
|
4817
4826
|
visible: !0,
|
|
4818
4827
|
icon: !0,
|
|
4819
4828
|
width: "100%",
|
|
@@ -4840,14 +4849,14 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4840
4849
|
heading: u("pasteWithReviewRoundBrackets"),
|
|
4841
4850
|
content: /* @__PURE__ */ v("div", {
|
|
4842
4851
|
className: oo.modalContent,
|
|
4843
|
-
children:
|
|
4852
|
+
children: z
|
|
4844
4853
|
}),
|
|
4845
4854
|
footer: /* @__PURE__ */ y(_, { children: [
|
|
4846
4855
|
/* @__PURE__ */ v(K, {
|
|
4847
4856
|
label: u("okay"),
|
|
4848
4857
|
colored: !0,
|
|
4849
4858
|
onClick: () => f(() => P()),
|
|
4850
|
-
disabled:
|
|
4859
|
+
disabled: ne || !R,
|
|
4851
4860
|
loading: d,
|
|
4852
4861
|
testId: `${h}-paste-with-review-modal-button-okay`
|
|
4853
4862
|
}),
|
|
@@ -4855,7 +4864,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4855
4864
|
label: u("cancel"),
|
|
4856
4865
|
onClick: () => i()
|
|
4857
4866
|
}),
|
|
4858
|
-
|
|
4867
|
+
L && /* @__PURE__ */ v(K, {
|
|
4859
4868
|
label: C,
|
|
4860
4869
|
onClick: w
|
|
4861
4870
|
})
|
|
@@ -4972,7 +4981,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
4972
4981
|
...e,
|
|
4973
4982
|
rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
|
|
4974
4983
|
let t = String(e == null ? "" : e);
|
|
4975
|
-
return Cl.test(t) ?
|
|
4984
|
+
return Cl.test(t) ? wn(t) : t;
|
|
4976
4985
|
}))
|
|
4977
4986
|
};
|
|
4978
4987
|
}, Tl = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
|
|
@@ -5133,7 +5142,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5133
5142
|
onClickCopyClipboard: o(async (e) => {
|
|
5134
5143
|
let t = await v();
|
|
5135
5144
|
if (!t) return;
|
|
5136
|
-
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : wc).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = ll(n, o, a.map((t) => t.map((t) =>
|
|
5145
|
+
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : wc).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = ll(n, o, a.map((t) => t.map((t) => dr(t) ? "" : s(t.toString(), e))), { delimiter: " " });
|
|
5137
5146
|
try {
|
|
5138
5147
|
await navigator.clipboard.writeText(c), pl({ message: {
|
|
5139
5148
|
type: "Success",
|
|
@@ -5148,7 +5157,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5148
5157
|
}
|
|
5149
5158
|
}, [v, _]),
|
|
5150
5159
|
onSmartUploadResult: o((e) => {
|
|
5151
|
-
let t =
|
|
5160
|
+
let t = un(e) && dn(e.errorMessage) ? e.errorMessage : void 0;
|
|
5152
5161
|
if (t) {
|
|
5153
5162
|
pl({ message: {
|
|
5154
5163
|
type: "Error",
|
|
@@ -5156,7 +5165,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5156
5165
|
} }, i);
|
|
5157
5166
|
return;
|
|
5158
5167
|
}
|
|
5159
|
-
if (!
|
|
5168
|
+
if (!tn(e) || e.length < 2 || !$t(e, (e) => un(e) && $t(vn(e), dn))) {
|
|
5160
5169
|
pl({ message: {
|
|
5161
5170
|
type: "Error",
|
|
5162
5171
|
content: "Smart upload returned unexpected format.",
|
|
@@ -5164,7 +5173,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5164
5173
|
} }, i);
|
|
5165
5174
|
return;
|
|
5166
5175
|
}
|
|
5167
|
-
let [n, ...a] = e, o =
|
|
5176
|
+
let [n, ...a] = e, o = fn(a[0]), s = {
|
|
5168
5177
|
isValid: !0,
|
|
5169
5178
|
fields: o,
|
|
5170
5179
|
units: o.map((e) => {
|
|
@@ -5179,7 +5188,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5179
5188
|
};
|
|
5180
5189
|
i(() => y({ parsedResult: s })), i(() => d(s));
|
|
5181
5190
|
let { onComplete: c } = r == null ? {} : r;
|
|
5182
|
-
|
|
5191
|
+
on(c) && c(s), b();
|
|
5183
5192
|
}, [
|
|
5184
5193
|
y,
|
|
5185
5194
|
d,
|
|
@@ -5193,8 +5202,8 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5193
5202
|
var n, r;
|
|
5194
5203
|
let { fields: i, rows: a } = e, o = ll(i, (n = (r = e.units) == null ? void 0 : r.map((e) => e || "blank")) == null ? [] : n, a, { delimiter: " " }), s = new Blob([o], { type: "text/plain" }), c = document.createElement("a");
|
|
5195
5204
|
c.href = window.URL.createObjectURL(s), c.download = `${t}.csv`, document.body.appendChild(c), c.click(), document.body.removeChild(c);
|
|
5196
|
-
}, Dl = (e) =>
|
|
5197
|
-
if (
|
|
5205
|
+
}, Dl = (e) => ln(e) && "modalKey" in e, Ol = (e, t, n) => Zt(e, (e) => {
|
|
5206
|
+
if (tn(e) || !un(e)) return;
|
|
5198
5207
|
let { modalKey: r } = e == null ? {} : e;
|
|
5199
5208
|
if (Dl(e) && typeof e.onClick != "function") {
|
|
5200
5209
|
let i = () => {
|
|
@@ -5223,55 +5232,55 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5223
5232
|
}
|
|
5224
5233
|
}, jl = ({ config: e, smartUploadConfig: t, testId: n }) => {
|
|
5225
5234
|
var r, i, a, o;
|
|
5226
|
-
let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: g = !0, copyFromClipBoard: _ = !0, showDeleteOptions: b = !0, showHelpOption: x = !0, showUploadFileOption: S = !0, modals: C = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = m(Al), { modalVisibility: { smartUploadModal: O = !1, reviewPasteModal: k = !1, helpModal: A = !1 } } = E, { enabled: j, prompt: M = "", onClose: N, onError: P, service: F = () => Promise.resolve() } = t == null ? {} : t, I = Sl(f),
|
|
5235
|
+
let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: g = !0, copyFromClipBoard: _ = !0, showDeleteOptions: b = !0, showHelpOption: x = !0, showUploadFileOption: S = !0, modals: C = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = m(Al), { modalVisibility: { smartUploadModal: O = !1, reviewPasteModal: k = !1, helpModal: A = !1 } } = E, { enabled: j, prompt: M = "", onClose: N, onError: P, service: F = () => Promise.resolve() } = t == null ? {} : t, I = Sl(f), L = yl(I, s, c), [R, ee] = h(), te = Tl({
|
|
5227
5236
|
config: e,
|
|
5228
5237
|
state: E,
|
|
5229
5238
|
setState: D,
|
|
5230
5239
|
smartUploadConfig: t,
|
|
5231
|
-
startTransition:
|
|
5232
|
-
}), { readAndParseInput:
|
|
5233
|
-
Ua("Escape", () =>
|
|
5234
|
-
let
|
|
5240
|
+
startTransition: ee
|
|
5241
|
+
}), { readAndParseInput: ne, updateState: re, closeModals: ie, setModalVisibility: z, onFileChange: ae, onClickQuickPasteFromClipBoard: oe, onClickCopyClipboard: se, onSmartUploadResult: ce, deleteAllRows: B } = te == null ? {} : te;
|
|
5242
|
+
Ua("Escape", () => ie());
|
|
5243
|
+
let le = g ? [
|
|
5235
5244
|
...S ? [{
|
|
5236
5245
|
type: "Option",
|
|
5237
5246
|
label: I("uploadFile"),
|
|
5238
5247
|
upload: !0,
|
|
5239
5248
|
uploadType: ".csv,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
5240
|
-
onChange:
|
|
5249
|
+
onChange: ae,
|
|
5241
5250
|
testId: `${n}-option-upload-file`
|
|
5242
5251
|
}] : [],
|
|
5243
5252
|
..._ ? [{
|
|
5244
5253
|
type: "Option",
|
|
5245
5254
|
label: I("quickPasteFromClipboard"),
|
|
5246
|
-
onClick:
|
|
5255
|
+
onClick: oe,
|
|
5247
5256
|
testId: `${n}-option-quick-paste-from-clipboard`
|
|
5248
5257
|
}] : [],
|
|
5249
5258
|
..._ ? [{
|
|
5250
5259
|
type: "Option",
|
|
5251
5260
|
label: I("pasteWithReview"),
|
|
5252
|
-
onClick: () =>
|
|
5261
|
+
onClick: () => z("reviewPasteModal", !k),
|
|
5253
5262
|
testId: `${n}-paste-with-review`
|
|
5254
5263
|
}] : [],
|
|
5255
5264
|
...M && j && t ? [{
|
|
5256
5265
|
type: "Option",
|
|
5257
5266
|
label: I("smartUpload_smartUpload"),
|
|
5258
|
-
onClick: () =>
|
|
5267
|
+
onClick: () => z("smartUploadModal", !O),
|
|
5259
5268
|
testId: `${n}-smart-upload`
|
|
5260
5269
|
}] : [],
|
|
5261
|
-
...kl((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E,
|
|
5262
|
-
] : [],
|
|
5270
|
+
...kl((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, z)
|
|
5271
|
+
] : [], ue = [
|
|
5263
5272
|
{
|
|
5264
5273
|
type: "Option",
|
|
5265
5274
|
label: I("downloadFile"),
|
|
5266
5275
|
onClick: async () => {
|
|
5267
|
-
let e = await
|
|
5276
|
+
let e = await L();
|
|
5268
5277
|
e && e && El(e, d);
|
|
5269
5278
|
}
|
|
5270
5279
|
},
|
|
5271
5280
|
...p ? [{
|
|
5272
5281
|
type: "Option",
|
|
5273
5282
|
label: I("copyToClipboard"),
|
|
5274
|
-
onClick: () =>
|
|
5283
|
+
onClick: () => se("dot")
|
|
5275
5284
|
}] : [{
|
|
5276
5285
|
type: "Menu",
|
|
5277
5286
|
testId: `${n}-menu-copy-to-clipboard`,
|
|
@@ -5281,55 +5290,55 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5281
5290
|
sections: [{
|
|
5282
5291
|
type: "Option",
|
|
5283
5292
|
label: I("copyDecimalDot"),
|
|
5284
|
-
onClick: () =>
|
|
5293
|
+
onClick: () => se("dot"),
|
|
5285
5294
|
testId: `${n}-option-copy-decimal-dot`
|
|
5286
5295
|
}, {
|
|
5287
5296
|
type: "Option",
|
|
5288
5297
|
label: I("copyDecimalComma"),
|
|
5289
|
-
onClick: () =>
|
|
5298
|
+
onClick: () => se("comma")
|
|
5290
5299
|
}]
|
|
5291
5300
|
}
|
|
5292
5301
|
}],
|
|
5293
|
-
...kl((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E,
|
|
5294
|
-
],
|
|
5302
|
+
...kl((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, z)
|
|
5303
|
+
], de = b ? [{
|
|
5295
5304
|
type: "Option",
|
|
5296
5305
|
label: I("deleteAllRows"),
|
|
5297
|
-
onClick: () =>
|
|
5306
|
+
onClick: () => B(),
|
|
5298
5307
|
testId: `${n}-delete-all-rows`
|
|
5299
|
-
}, ...kl((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E,
|
|
5308
|
+
}, ...kl((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, z)] : [], fe = x ? [
|
|
5300
5309
|
{ type: "Divider" },
|
|
5301
5310
|
{
|
|
5302
5311
|
type: "Option",
|
|
5303
5312
|
label: I("help"),
|
|
5304
|
-
onClick: () =>
|
|
5313
|
+
onClick: () => z("helpModal", !A)
|
|
5305
5314
|
},
|
|
5306
|
-
...kl((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E,
|
|
5307
|
-
] : [],
|
|
5308
|
-
...
|
|
5309
|
-
section: [...
|
|
5315
|
+
...kl((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, z)
|
|
5316
|
+
] : [], pe = [
|
|
5317
|
+
...le.length ? [{
|
|
5318
|
+
section: [...le, ...fe],
|
|
5310
5319
|
name: "import-options",
|
|
5311
5320
|
iconName: "import",
|
|
5312
5321
|
tooltip: I("import")
|
|
5313
5322
|
}] : [],
|
|
5314
|
-
...
|
|
5315
|
-
section:
|
|
5323
|
+
...ue.length ? [{
|
|
5324
|
+
section: ue,
|
|
5316
5325
|
name: "export-options",
|
|
5317
5326
|
iconName: "export",
|
|
5318
5327
|
tooltip: I("export")
|
|
5319
5328
|
}] : [],
|
|
5320
|
-
...
|
|
5321
|
-
section:
|
|
5329
|
+
...de.length ? [{
|
|
5330
|
+
section: de,
|
|
5322
5331
|
name: "delete-options",
|
|
5323
5332
|
iconName: "delete",
|
|
5324
5333
|
tooltip: I("deleteAllRows")
|
|
5325
5334
|
}] : []
|
|
5326
5335
|
];
|
|
5327
5336
|
return /* @__PURE__ */ y("span", { children: [
|
|
5328
|
-
|
|
5337
|
+
R && /* @__PURE__ */ v(gi, {
|
|
5329
5338
|
small: !0,
|
|
5330
5339
|
dark: !0
|
|
5331
5340
|
}),
|
|
5332
|
-
|
|
5341
|
+
pe.map((e, t) => /* @__PURE__ */ v(vl, {
|
|
5333
5342
|
sections: e.section,
|
|
5334
5343
|
iconName: e.iconName,
|
|
5335
5344
|
tooltip: e.tooltip,
|
|
@@ -5338,21 +5347,21 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5338
5347
|
k && /* @__PURE__ */ v(gl, {
|
|
5339
5348
|
config: e,
|
|
5340
5349
|
state: E,
|
|
5341
|
-
updateState:
|
|
5342
|
-
setModalVisibility:
|
|
5343
|
-
readAndParseInput:
|
|
5344
|
-
onCloseModal:
|
|
5350
|
+
updateState: re,
|
|
5351
|
+
setModalVisibility: z,
|
|
5352
|
+
readAndParseInput: ne,
|
|
5353
|
+
onCloseModal: ie,
|
|
5345
5354
|
validationRules: u,
|
|
5346
5355
|
onCompleteImport: T,
|
|
5347
5356
|
prevalidationConfig: l,
|
|
5348
5357
|
t: I,
|
|
5349
|
-
loading:
|
|
5350
|
-
startTransition:
|
|
5358
|
+
loading: R,
|
|
5359
|
+
startTransition: ee,
|
|
5351
5360
|
testId: n
|
|
5352
5361
|
}),
|
|
5353
5362
|
A && /* @__PURE__ */ v(ao, {
|
|
5354
5363
|
visible: A,
|
|
5355
|
-
setModalVisibility:
|
|
5364
|
+
setModalVisibility: z,
|
|
5356
5365
|
validationRules: u,
|
|
5357
5366
|
t: I
|
|
5358
5367
|
}),
|
|
@@ -5360,8 +5369,8 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5360
5369
|
visible: O,
|
|
5361
5370
|
prompt: M,
|
|
5362
5371
|
onUpload: F,
|
|
5363
|
-
onCloseModal: () =>
|
|
5364
|
-
onComplete:
|
|
5372
|
+
onCloseModal: () => ie({ callback: N }),
|
|
5373
|
+
onComplete: ce,
|
|
5365
5374
|
onError: P,
|
|
5366
5375
|
heading: I("smartUpload_smartUpload"),
|
|
5367
5376
|
dialogText: I("smartUpload_description"),
|
|
@@ -5374,12 +5383,12 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5374
5383
|
/* @__PURE__ */ v(_l, {
|
|
5375
5384
|
modals: C,
|
|
5376
5385
|
modalVisibility: E == null ? void 0 : E.modalVisibility,
|
|
5377
|
-
onCloseModal:
|
|
5386
|
+
onCloseModal: ie,
|
|
5378
5387
|
testId: n
|
|
5379
5388
|
})
|
|
5380
5389
|
] });
|
|
5381
|
-
}, Ml = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a =
|
|
5382
|
-
let c = s(
|
|
5390
|
+
}, Ml = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = pn, ...o }) => {
|
|
5391
|
+
let c = s(U), l = p(null), u = () => {
|
|
5383
5392
|
var e;
|
|
5384
5393
|
i || c || (e = l.current) == null || e.click();
|
|
5385
5394
|
}, d = (e) => {
|
|
@@ -5417,7 +5426,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5417
5426
|
onClick: () => {},
|
|
5418
5427
|
tooltip: "",
|
|
5419
5428
|
testId: void 0
|
|
5420
|
-
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u =
|
|
5429
|
+
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = Or.CAPITALIZE }) => {
|
|
5421
5430
|
var d;
|
|
5422
5431
|
return /* @__PURE__ */ v("div", {
|
|
5423
5432
|
className: g(Nl.label, c ? Nl.labelLeft : "", l ? Nl.small : ""),
|
|
@@ -5429,25 +5438,25 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5429
5438
|
children: [e, /* @__PURE__ */ y("div", {
|
|
5430
5439
|
className: Nl.icons,
|
|
5431
5440
|
children: [
|
|
5432
|
-
(n || i) && /* @__PURE__ */ v(
|
|
5441
|
+
(n || i) && /* @__PURE__ */ v(ci, {
|
|
5433
5442
|
text: n,
|
|
5434
5443
|
onClick: i,
|
|
5435
5444
|
maxWidth: r
|
|
5436
5445
|
}),
|
|
5437
|
-
o && /* @__PURE__ */ v(
|
|
5446
|
+
o && /* @__PURE__ */ v(ci, {
|
|
5438
5447
|
text: o,
|
|
5439
|
-
icon:
|
|
5448
|
+
icon: H.INFO
|
|
5440
5449
|
}),
|
|
5441
|
-
a && a.visible && a.onClick && /* @__PURE__ */ v(
|
|
5450
|
+
a && a.visible && a.onClick && /* @__PURE__ */ v(ci, {
|
|
5442
5451
|
onClick: a.onClick,
|
|
5443
|
-
icon: a.active ?
|
|
5452
|
+
icon: a.active ? H.LOCK : H.UNLOCK,
|
|
5444
5453
|
active: a.active,
|
|
5445
5454
|
testId: a.testId
|
|
5446
5455
|
}),
|
|
5447
|
-
s && /* @__PURE__ */ v(
|
|
5456
|
+
s && /* @__PURE__ */ v(ci, {
|
|
5448
5457
|
text: (d = s == null ? void 0 : s.tooltip) == null ? "" : d,
|
|
5449
5458
|
onClick: s.onClick,
|
|
5450
|
-
icon:
|
|
5459
|
+
icon: H.LIBRARY
|
|
5451
5460
|
})
|
|
5452
5461
|
]
|
|
5453
5462
|
})]
|
|
@@ -5466,7 +5475,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5466
5475
|
onClick: () => {},
|
|
5467
5476
|
tooltip: "",
|
|
5468
5477
|
testId: void 0
|
|
5469
|
-
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f =
|
|
5478
|
+
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = Or.CAPITALIZE }) => /* @__PURE__ */ y("div", {
|
|
5470
5479
|
className: g(Fl.field, t ? Fl.labelLeft : ""),
|
|
5471
5480
|
"data-testid": d,
|
|
5472
5481
|
children: [(e || t) && /* @__PURE__ */ v(Pl, {
|
|
@@ -5560,7 +5569,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5560
5569
|
}, Wl = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ v("a", {
|
|
5561
5570
|
className: Z.toggleNarrow,
|
|
5562
5571
|
onClick: t,
|
|
5563
|
-
children: /* @__PURE__ */ v(
|
|
5572
|
+
children: /* @__PURE__ */ v(W, { icon: H.CHEVRON_LEFT })
|
|
5564
5573
|
}) : null, Gl = r(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ y("div", {
|
|
5565
5574
|
ref: a,
|
|
5566
5575
|
className: g(Z.header, i ? Z.stickyHeader : ""),
|
|
@@ -5593,7 +5602,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5593
5602
|
small: e.small
|
|
5594
5603
|
})
|
|
5595
5604
|
}) : null, ql = ({ name: e, icon: t, testId: n }) => {
|
|
5596
|
-
let r = t && /* @__PURE__ */ v(
|
|
5605
|
+
let r = t && /* @__PURE__ */ v(W, {
|
|
5597
5606
|
icon: t.icon,
|
|
5598
5607
|
color: t.color || "#db2828"
|
|
5599
5608
|
});
|
|
@@ -5602,7 +5611,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5602
5611
|
"data-testid": n,
|
|
5603
5612
|
children: [e, t && t.tooltip && t.tooltip.text ? /* @__PURE__ */ v("span", {
|
|
5604
5613
|
className: Z.iconTooltipMargin,
|
|
5605
|
-
children: /* @__PURE__ */ v(
|
|
5614
|
+
children: /* @__PURE__ */ v(G, {
|
|
5606
5615
|
text: t.tooltip.text,
|
|
5607
5616
|
maxWidth: "350px",
|
|
5608
5617
|
children: r
|
|
@@ -5642,7 +5651,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5642
5651
|
}, Yl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ v(Ii, {
|
|
5643
5652
|
color: "rgba(0,0,0,0.25)",
|
|
5644
5653
|
title: e.metaCount
|
|
5645
|
-
}), Xl = ({ item: e, expanding: t }) => /* @__PURE__ */ v(
|
|
5654
|
+
}), Xl = ({ item: e, expanding: t }) => /* @__PURE__ */ v(Gr, {
|
|
5646
5655
|
expanded: !!t && !!e.active && !!e.content,
|
|
5647
5656
|
children: /* @__PURE__ */ v("div", {
|
|
5648
5657
|
className: Z.itemContent,
|
|
@@ -5653,7 +5662,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5653
5662
|
})
|
|
5654
5663
|
}), Zl = r(({ item: e, index: t }, n) => {
|
|
5655
5664
|
var r;
|
|
5656
|
-
let i = s(
|
|
5665
|
+
let i = s(U), { actions: a, disabled: o, expanded: c, onClick: l, title: u, name: d, icon: f, testId: p } = e;
|
|
5657
5666
|
return /* @__PURE__ */ v("div", {
|
|
5658
5667
|
ref: (e) => {
|
|
5659
5668
|
n && "current" in n && Array.isArray(n.current) && t !== void 0 && (n.current[t] = e);
|
|
@@ -5669,7 +5678,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5669
5678
|
children: [
|
|
5670
5679
|
typeof c == "boolean" && /* @__PURE__ */ v("div", {
|
|
5671
5680
|
className: g(Z.expandIcon, c && Z.expanded),
|
|
5672
|
-
children: /* @__PURE__ */ v(
|
|
5681
|
+
children: /* @__PURE__ */ v(W, { icon: H.CHEVRON_RIGHT })
|
|
5673
5682
|
}),
|
|
5674
5683
|
/* @__PURE__ */ v(ql, {
|
|
5675
5684
|
name: d,
|
|
@@ -5686,7 +5695,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5686
5695
|
}) })
|
|
5687
5696
|
});
|
|
5688
5697
|
}), Ql = r(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
|
|
5689
|
-
let o = s(
|
|
5698
|
+
let o = s(U), c = (e, t, s, c, l, u) => {
|
|
5690
5699
|
let d = t.actions && t.actions.find((e) => {
|
|
5691
5700
|
var t;
|
|
5692
5701
|
return e.label && ((t = String(e.label)) == null ? void 0 : t.toLowerCase()) === "edit";
|
|
@@ -5715,11 +5724,11 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5715
5724
|
className: Z.drag,
|
|
5716
5725
|
...c,
|
|
5717
5726
|
...l,
|
|
5718
|
-
children: /* @__PURE__ */ v(
|
|
5727
|
+
children: /* @__PURE__ */ v(W, { icon: H.DRAG })
|
|
5719
5728
|
}),
|
|
5720
5729
|
t.level && t.level > 0 ? /* @__PURE__ */ v("div", {
|
|
5721
5730
|
className: Z.indentIcon,
|
|
5722
|
-
children: /* @__PURE__ */ v(
|
|
5731
|
+
children: /* @__PURE__ */ v(W, { icon: H.INDENT })
|
|
5723
5732
|
}) : null,
|
|
5724
5733
|
/* @__PURE__ */ v(Kl, { label: t.label }),
|
|
5725
5734
|
/* @__PURE__ */ v(Jl, { item: t }),
|
|
@@ -5743,12 +5752,12 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5743
5752
|
item: e,
|
|
5744
5753
|
index: t
|
|
5745
5754
|
}, t) : i ? ((e, t) => {
|
|
5746
|
-
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } =
|
|
5755
|
+
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = Xn({
|
|
5747
5756
|
id: e.toString(),
|
|
5748
5757
|
animateLayoutChanges: () => !1
|
|
5749
5758
|
});
|
|
5750
5759
|
return c(e, t, {
|
|
5751
|
-
transform:
|
|
5760
|
+
transform: Qn.Translate.toString(a),
|
|
5752
5761
|
transition: o,
|
|
5753
5762
|
opacity: +!s
|
|
5754
5763
|
}, n, r, i);
|
|
@@ -5764,15 +5773,15 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5764
5773
|
to: Number(o)
|
|
5765
5774
|
});
|
|
5766
5775
|
}, c = d(() => n.items.map((e, t) => t.toString()), [n.items]);
|
|
5767
|
-
return t ? /* @__PURE__ */ y(
|
|
5768
|
-
collisionDetection:
|
|
5776
|
+
return t ? /* @__PURE__ */ y(nr, {
|
|
5777
|
+
collisionDetection: ir,
|
|
5769
5778
|
onDragStart: o,
|
|
5770
5779
|
onDragEnd: s,
|
|
5771
|
-
children: [/* @__PURE__ */ v(
|
|
5780
|
+
children: [/* @__PURE__ */ v(Yn, {
|
|
5772
5781
|
items: c,
|
|
5773
|
-
strategy:
|
|
5782
|
+
strategy: Zn,
|
|
5774
5783
|
children: e
|
|
5775
|
-
}), !!i &&
|
|
5784
|
+
}), !!i && bn(/* @__PURE__ */ v(rr, {
|
|
5776
5785
|
dropAnimation: null,
|
|
5777
5786
|
children: /* @__PURE__ */ v("div", {
|
|
5778
5787
|
className: Z.dragOverlay,
|
|
@@ -5785,7 +5794,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5785
5794
|
}), document.body)]
|
|
5786
5795
|
}) : e;
|
|
5787
5796
|
}, eu = ({ items: e, scrollDetails: t, children: n }) => {
|
|
5788
|
-
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: s } = t, l = p(null), u =
|
|
5797
|
+
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: s } = t, l = p(null), u = ar({
|
|
5789
5798
|
count: e.length,
|
|
5790
5799
|
getScrollElement: () => l.current,
|
|
5791
5800
|
estimateSize: o(() => {
|
|
@@ -5882,8 +5891,8 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5882
5891
|
content: "_content_477i5_44",
|
|
5883
5892
|
text: "_text_477i5_49",
|
|
5884
5893
|
details: "_details_477i5_53"
|
|
5885
|
-
}, iu = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s =
|
|
5886
|
-
let l = s ===
|
|
5894
|
+
}, iu = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = kr.DARK, testId: c = null }) => {
|
|
5895
|
+
let l = s === kr.DARK ? kr.WHITE : kr.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
|
|
5887
5896
|
return /* @__PURE__ */ v("div", {
|
|
5888
5897
|
className: g(ru.loader, a ? ru.cover : "", { [ru.fullViewPortSize]: i }),
|
|
5889
5898
|
style: {
|
|
@@ -5925,7 +5934,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5925
5934
|
let { key: n, label: r, selected: i, testId: a } = e == null ? {} : e;
|
|
5926
5935
|
return /* @__PURE__ */ v("div", {
|
|
5927
5936
|
className: au.item,
|
|
5928
|
-
children: /* @__PURE__ */ v(
|
|
5937
|
+
children: /* @__PURE__ */ v(li, {
|
|
5929
5938
|
label: r,
|
|
5930
5939
|
noMargin: !0,
|
|
5931
5940
|
checked: i,
|
|
@@ -5996,7 +6005,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
5996
6005
|
testId: c ? `${c}-menu-layer` : void 0,
|
|
5997
6006
|
small: a,
|
|
5998
6007
|
label: n,
|
|
5999
|
-
trigger:
|
|
6008
|
+
trigger: wr.DROP_DOWN_BUTTON,
|
|
6000
6009
|
possiblePlacements: ["top-start", "bottom-start"],
|
|
6001
6010
|
sections: /* @__PURE__ */ v(lu, {
|
|
6002
6011
|
testId: c,
|
|
@@ -6028,7 +6037,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6028
6037
|
className: pu.printHeader,
|
|
6029
6038
|
style: { width: n }
|
|
6030
6039
|
}), hu = ({ 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" }) => {
|
|
6031
|
-
let m = s(
|
|
6040
|
+
let m = s(U), h = f !== void 0, { simpleInputs: _, options: b, selectedOptions: x } = h ? {
|
|
6032
6041
|
simpleInputs: !1,
|
|
6033
6042
|
options: f,
|
|
6034
6043
|
selectedOptions: void 0
|
|
@@ -6101,7 +6110,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6101
6110
|
round: !0,
|
|
6102
6111
|
basic: !0,
|
|
6103
6112
|
icon: e.icon,
|
|
6104
|
-
colored:
|
|
6113
|
+
colored: Tr.MUTED,
|
|
6105
6114
|
onClick: e.onClick,
|
|
6106
6115
|
active: e.active,
|
|
6107
6116
|
disabled: t
|
|
@@ -6118,11 +6127,11 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6118
6127
|
hideScrollbars: "_hideScrollbars_gb097_67",
|
|
6119
6128
|
richTextInput: "_richTextInput_gb097_77"
|
|
6120
6129
|
}, bu = a(r(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
|
|
6121
|
-
let o = s(
|
|
6130
|
+
let o = s(U), u = r || o, d = pr({
|
|
6122
6131
|
extensions: [
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6132
|
+
mr,
|
|
6133
|
+
hr.configure({ placeholder: e }),
|
|
6134
|
+
gr
|
|
6126
6135
|
],
|
|
6127
6136
|
content: n == null ? "" : n,
|
|
6128
6137
|
contentType: "markdown",
|
|
@@ -6149,7 +6158,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6149
6158
|
editor: d,
|
|
6150
6159
|
disabled: u,
|
|
6151
6160
|
toolbarComponent: i
|
|
6152
|
-
}), /* @__PURE__ */ v(
|
|
6161
|
+
}), /* @__PURE__ */ v(fr, { editor: d })]
|
|
6153
6162
|
});
|
|
6154
6163
|
})), xu = { row: "_row_n16je_1" }, Su = ({ 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 }) => {
|
|
6155
6164
|
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));
|
|
@@ -6189,7 +6198,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6189
6198
|
experimental: "_experimental_1oy1z_155",
|
|
6190
6199
|
active: "_active_1oy1z_159",
|
|
6191
6200
|
icon: "_icon_1oy1z_163"
|
|
6192
|
-
}, wu = a(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(
|
|
6201
|
+
}, wu = a(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(G, {
|
|
6193
6202
|
text: t,
|
|
6194
6203
|
enabled: !e,
|
|
6195
6204
|
placement: "right-center",
|
|
@@ -6203,13 +6212,13 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6203
6212
|
small: !0,
|
|
6204
6213
|
title: r ? "!" : void 0,
|
|
6205
6214
|
margin: 4,
|
|
6206
|
-
children: /* @__PURE__ */ v(
|
|
6215
|
+
children: /* @__PURE__ */ v(W, { icon: n })
|
|
6207
6216
|
})
|
|
6208
6217
|
})
|
|
6209
6218
|
}), /* @__PURE__ */ v("span", {
|
|
6210
6219
|
className: Cu.label,
|
|
6211
6220
|
children: t
|
|
6212
|
-
})] }), (e, t) =>
|
|
6221
|
+
})] }), (e, t) => tr(e, t)), Tu = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ v("div", {
|
|
6213
6222
|
className: Cu.list,
|
|
6214
6223
|
children: t.map((t, a) => {
|
|
6215
6224
|
let o = `${n}_${a}`;
|
|
@@ -6245,7 +6254,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6245
6254
|
top: r,
|
|
6246
6255
|
background: "var(--color-background-sidebar)",
|
|
6247
6256
|
closedWidth: "var(--size-sidebar)",
|
|
6248
|
-
buttonPosition:
|
|
6257
|
+
buttonPosition: Dr.BOTTOM,
|
|
6249
6258
|
buttonAnimate: !0,
|
|
6250
6259
|
button: s && /* @__PURE__ */ v(K, {
|
|
6251
6260
|
onClick: (e) => {
|
|
@@ -6253,7 +6262,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6253
6262
|
},
|
|
6254
6263
|
colored: !0,
|
|
6255
6264
|
round: !0,
|
|
6256
|
-
icon:
|
|
6265
|
+
icon: H.LEFT
|
|
6257
6266
|
}),
|
|
6258
6267
|
children: /* @__PURE__ */ v("div", {
|
|
6259
6268
|
className: g(Cu.sidebar, i ? "" : Cu.collapsed),
|
|
@@ -6270,10 +6279,10 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6270
6279
|
})
|
|
6271
6280
|
})
|
|
6272
6281
|
});
|
|
6273
|
-
}, (e, t) =>
|
|
6282
|
+
}, (e, t) => tr(e, t)), Ou = {
|
|
6274
6283
|
skeletonContainer: "_skeletonContainer_mcfxp_9",
|
|
6275
6284
|
skeleton: "_skeleton_mcfxp_9"
|
|
6276
|
-
}, ku = ({ count: e, width: t, height: n }) => /* @__PURE__ */ v(
|
|
6285
|
+
}, ku = ({ count: e, width: t, height: n }) => /* @__PURE__ */ v(_r, {
|
|
6277
6286
|
baseColor: "var(--color-skeleton-base)",
|
|
6278
6287
|
highlightColor: "var(--color-skeleton-highlight)",
|
|
6279
6288
|
containerClassName: Ou.skeletonContainer,
|
|
@@ -6316,8 +6325,8 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6316
6325
|
}, Mu = ({ children: e, activeTabIndex: t, contentPadding: n }) => Array.isArray(e) ? /* @__PURE__ */ v("div", {
|
|
6317
6326
|
className: g(n ? Au.contentPadding : ""),
|
|
6318
6327
|
children: e.map((e, n) => t === n && e)
|
|
6319
|
-
}) : null, Nu = ({ name: e = void 0, options: t = null, children: n = null, value: r = void 0, onChange: i =
|
|
6320
|
-
let p = s(
|
|
6328
|
+
}) : null, Nu = ({ 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 }) => {
|
|
6329
|
+
let p = s(U), m = l !== void 0, h = n ? n.map((e, t) => {
|
|
6321
6330
|
var n;
|
|
6322
6331
|
return {
|
|
6323
6332
|
value: t,
|
|
@@ -6383,8 +6392,8 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6383
6392
|
textarea: "_textarea_q0tl0_77",
|
|
6384
6393
|
small: "_small_q0tl0_116",
|
|
6385
6394
|
monospace: "_monospace_q0tl0_155"
|
|
6386
|
-
}, Iu = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o =
|
|
6387
|
-
let S = s(
|
|
6395
|
+
}, Iu = ({ 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 }) => {
|
|
6396
|
+
let S = s(U), C = /* @__PURE__ */ v("textarea", {
|
|
6388
6397
|
className: g(Fu.textarea, f ? Fu.error : "", p ? Fu.warning : "", y ? Fu.monospace : "", b ? Fu.small : ""),
|
|
6389
6398
|
name: e,
|
|
6390
6399
|
value: t,
|
|
@@ -6402,7 +6411,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6402
6411
|
"data-warning": p || null,
|
|
6403
6412
|
"data-testid": x
|
|
6404
6413
|
});
|
|
6405
|
-
return /* @__PURE__ */ v(
|
|
6414
|
+
return /* @__PURE__ */ v(G, {
|
|
6406
6415
|
error: !!f,
|
|
6407
6416
|
warning: !!p,
|
|
6408
6417
|
text: m || f || p,
|
|
@@ -6431,7 +6440,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6431
6440
|
className: Q.alert,
|
|
6432
6441
|
children: e
|
|
6433
6442
|
}), Ru = ({ icon: e, url: t, onClick: n }) => {
|
|
6434
|
-
let r = /* @__PURE__ */ v(
|
|
6443
|
+
let r = /* @__PURE__ */ v(W, { icon: e });
|
|
6435
6444
|
return t ? /* @__PURE__ */ v("a", {
|
|
6436
6445
|
href: t,
|
|
6437
6446
|
onClick: n,
|
|
@@ -6474,7 +6483,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6474
6483
|
}, Bu = /* @__PURE__ */ function(e) {
|
|
6475
6484
|
return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
|
|
6476
6485
|
}({}), Vu = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: c = "a" }) => {
|
|
6477
|
-
let l = s(
|
|
6486
|
+
let l = s(U);
|
|
6478
6487
|
return /* @__PURE__ */ y(c, {
|
|
6479
6488
|
className: g(Q.link, i ? Q.active : ""),
|
|
6480
6489
|
href: t || "#",
|
|
@@ -6522,7 +6531,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6522
6531
|
children: /* @__PURE__ */ v(Ji, {
|
|
6523
6532
|
maxHeight: "100%",
|
|
6524
6533
|
menu: {
|
|
6525
|
-
trigger:
|
|
6534
|
+
trigger: wr.COMPONENT,
|
|
6526
6535
|
fullHeightTrigger: !0,
|
|
6527
6536
|
placement: "bottom-start",
|
|
6528
6537
|
component: /* @__PURE__ */ v(Vu, {
|
|
@@ -6645,16 +6654,16 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6645
6654
|
className: qu.toggle,
|
|
6646
6655
|
children: /* @__PURE__ */ v(K, {
|
|
6647
6656
|
basic: !0,
|
|
6648
|
-
colored: r ? !0 :
|
|
6657
|
+
colored: r ? !0 : Tr.MUTED,
|
|
6649
6658
|
small: !0,
|
|
6650
6659
|
round: !0,
|
|
6651
|
-
icon: r ? (s == null ? void 0 : s.collapse) ||
|
|
6660
|
+
icon: r ? (s == null ? void 0 : s.collapse) || H.COLLAPSE : (s == null ? void 0 : s.expand) || H.EXPAND,
|
|
6652
6661
|
onClick: C
|
|
6653
6662
|
})
|
|
6654
6663
|
}),
|
|
6655
6664
|
o && /* @__PURE__ */ v("div", {
|
|
6656
6665
|
className: Z.drag,
|
|
6657
|
-
children: /* @__PURE__ */ v(
|
|
6666
|
+
children: /* @__PURE__ */ v(W, { icon: H.DRAG })
|
|
6658
6667
|
}),
|
|
6659
6668
|
/* @__PURE__ */ v(Jl, { item: u }),
|
|
6660
6669
|
/* @__PURE__ */ y("div", {
|
|
@@ -6732,11 +6741,11 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6732
6741
|
name: e.name,
|
|
6733
6742
|
actions: e.actions,
|
|
6734
6743
|
stickyHeader: h
|
|
6735
|
-
}), /* @__PURE__ */ v(
|
|
6736
|
-
backend:
|
|
6737
|
-
options:
|
|
6744
|
+
}), /* @__PURE__ */ v(vr, {
|
|
6745
|
+
backend: yr,
|
|
6746
|
+
options: xr(),
|
|
6738
6747
|
context: window,
|
|
6739
|
-
children: /* @__PURE__ */ v(
|
|
6748
|
+
children: /* @__PURE__ */ v(br, {
|
|
6740
6749
|
ref: S,
|
|
6741
6750
|
tree: j,
|
|
6742
6751
|
sort: !1,
|
|
@@ -6912,7 +6921,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6912
6921
|
className: Zu.drag,
|
|
6913
6922
|
onClick: (e) => e.stopPropagation(),
|
|
6914
6923
|
ref: i,
|
|
6915
|
-
children: /* @__PURE__ */ v(
|
|
6924
|
+
children: /* @__PURE__ */ v(W, { icon: H.DRAG })
|
|
6916
6925
|
})
|
|
6917
6926
|
}),
|
|
6918
6927
|
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ v("td", { className: Zu.folderCell }, t)),
|
|
@@ -6924,11 +6933,11 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
6924
6933
|
onMouseDown: (e) => e.stopPropagation(),
|
|
6925
6934
|
children: /* @__PURE__ */ v(K, {
|
|
6926
6935
|
basic: !0,
|
|
6927
|
-
colored: c ? !0 :
|
|
6936
|
+
colored: c ? !0 : Tr.MUTED,
|
|
6928
6937
|
disabled: !a,
|
|
6929
6938
|
small: !0,
|
|
6930
6939
|
round: !0,
|
|
6931
|
-
icon: a && c ? (s == null ? void 0 : s.collapse) ||
|
|
6940
|
+
icon: a && c ? (s == null ? void 0 : s.collapse) || H.COLLAPSE : (s == null ? void 0 : s.expand) || H.EXPAND
|
|
6932
6941
|
})
|
|
6933
6942
|
})
|
|
6934
6943
|
}),
|
|
@@ -7043,30 +7052,30 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
7043
7052
|
let n = t == null ? void 0 : t[e];
|
|
7044
7053
|
if (!n) {
|
|
7045
7054
|
var r;
|
|
7046
|
-
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r =
|
|
7055
|
+
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = Wn(e)) == null ? "" : r;
|
|
7047
7056
|
}
|
|
7048
7057
|
return n;
|
|
7049
7058
|
}, fd = /* @__PURE__ */ function(e) {
|
|
7050
7059
|
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
7051
7060
|
}({}), pd = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), md = (e) => {
|
|
7052
7061
|
if (!e) return !1;
|
|
7053
|
-
let t =
|
|
7054
|
-
return !
|
|
7062
|
+
let t = On(e);
|
|
7063
|
+
return !Sn.includes(t);
|
|
7055
7064
|
}, hd = ({ value: e, unitkey: t, toUnit: n }) => {
|
|
7056
7065
|
var r;
|
|
7057
|
-
let i =
|
|
7058
|
-
if (!i || i.length === 0 || !((r =
|
|
7059
|
-
let a =
|
|
7066
|
+
let i = xn[t];
|
|
7067
|
+
if (!i || i.length === 0 || !((r = Gn(e)) != null && r.valid) || !i.includes(n)) return !1;
|
|
7068
|
+
let a = On(String(e));
|
|
7060
7069
|
return !(a && !i.includes(a));
|
|
7061
7070
|
}, gd = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
|
|
7062
7071
|
var o;
|
|
7063
|
-
let s =
|
|
7072
|
+
let s = Pn(e) ? An(e) : e, c = [Infinity, -Infinity].includes(Number(s));
|
|
7064
7073
|
if (i || c) return {
|
|
7065
7074
|
value: s,
|
|
7066
7075
|
error: null
|
|
7067
7076
|
};
|
|
7068
|
-
let l = r || (
|
|
7069
|
-
if (!((o =
|
|
7077
|
+
let l = r || (Pn(e) ? On(e) : Wn(t));
|
|
7078
|
+
if (!((o = Gn(s)) != null && o.valid)) return {
|
|
7070
7079
|
value: void 0,
|
|
7071
7080
|
error: "Invalid number format"
|
|
7072
7081
|
};
|
|
@@ -7083,16 +7092,16 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
7083
7092
|
error: "Value is invalid for conversion"
|
|
7084
7093
|
};
|
|
7085
7094
|
try {
|
|
7086
|
-
let e =
|
|
7095
|
+
let e = qn(s, l);
|
|
7087
7096
|
return hd({
|
|
7088
7097
|
value: e,
|
|
7089
7098
|
toUnit: n,
|
|
7090
7099
|
unitkey: t
|
|
7091
7100
|
}) ? {
|
|
7092
|
-
value:
|
|
7101
|
+
value: An(Ws(a ? En(e, n) : Tn(e, n))),
|
|
7093
7102
|
error: null
|
|
7094
7103
|
} : {
|
|
7095
|
-
value:
|
|
7104
|
+
value: An(e),
|
|
7096
7105
|
error: null
|
|
7097
7106
|
};
|
|
7098
7107
|
} catch {
|
|
@@ -7102,12 +7111,12 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
7102
7111
|
};
|
|
7103
7112
|
}
|
|
7104
7113
|
}, _d = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
|
|
7105
|
-
let a =
|
|
7114
|
+
let a = An(e), o = pd(a);
|
|
7106
7115
|
return !hd({
|
|
7107
7116
|
value: e,
|
|
7108
7117
|
unitkey: n,
|
|
7109
7118
|
toUnit: t
|
|
7110
|
-
}) || md(e) || o ? { value: a } :
|
|
7119
|
+
}) || md(e) || o ? { value: a } : Pn(e) ? gd({
|
|
7111
7120
|
value: e,
|
|
7112
7121
|
unitkey: n,
|
|
7113
7122
|
toUnit: t,
|
|
@@ -7115,115 +7124,115 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
7115
7124
|
doNotConvertValue: i,
|
|
7116
7125
|
exactPrecision: !0
|
|
7117
7126
|
}) : { value: e };
|
|
7118
|
-
}, vd = (e) =>
|
|
7119
|
-
let n =
|
|
7127
|
+
}, vd = (e) => ln(e) && !tn(e) && !on(e) ? en(e, "fieldName", "") : typeof e == "string" ? e : "", yd = (e = "") => Sn == null ? void 0 : Sn.includes(e), bd = (e, t) => {
|
|
7128
|
+
let n = On(e || "");
|
|
7120
7129
|
return yd(t) && yd(n);
|
|
7121
7130
|
}, xd = n(null), Sd = () => s(xd), Cd = !1, wd = (e) => {
|
|
7122
7131
|
Cd || (Cd = !0, xd = e);
|
|
7123
|
-
}, Td = (e) =>
|
|
7132
|
+
}, Td = (e) => Mn(e) ? e : In(e), Ed = {
|
|
7124
7133
|
predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
|
|
7125
7134
|
inputWrapper: "_inputWrapper_ye9w9_4"
|
|
7126
|
-
}, Dd = ({ 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 =
|
|
7135
|
+
}, Dd = ({ 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 = () => ({
|
|
7127
7136
|
name: "",
|
|
7128
7137
|
error: null
|
|
7129
|
-
}), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus:
|
|
7130
|
-
let
|
|
7138
|
+
}), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus: L = !0, groupOrder: R, tooltip: ee = null }) => {
|
|
7139
|
+
let te = Sd(), ne = ld();
|
|
7131
7140
|
typeof l == "number" && (l = `${l}`);
|
|
7132
|
-
let [
|
|
7141
|
+
let [re = "", ie = ""] = l === void 0 ? [] : Bn(l), z = d(() => dd(u, C || (te == null ? void 0 : te.unitTemplate)), [
|
|
7133
7142
|
u,
|
|
7134
7143
|
C,
|
|
7135
|
-
|
|
7136
|
-
]),
|
|
7144
|
+
te == null ? void 0 : te.unitTemplate
|
|
7145
|
+
]), ae = bd(l, z), oe = f || z || ie, se = ud(oe), { value: ce } = _d({
|
|
7137
7146
|
value: l,
|
|
7138
|
-
toUnit:
|
|
7147
|
+
toUnit: oe,
|
|
7139
7148
|
unitkey: u,
|
|
7140
|
-
defaultFromUnit:
|
|
7149
|
+
defaultFromUnit: ie,
|
|
7141
7150
|
doNotConvertValue: p
|
|
7142
|
-
}), [
|
|
7143
|
-
value:
|
|
7144
|
-
unit:
|
|
7151
|
+
}), [B, le] = m(ce === "" ? {
|
|
7152
|
+
value: re,
|
|
7153
|
+
unit: ie
|
|
7145
7154
|
} : {
|
|
7146
|
-
value:
|
|
7147
|
-
unit:
|
|
7148
|
-
}),
|
|
7155
|
+
value: ce,
|
|
7156
|
+
unit: oe
|
|
7157
|
+
}), ue = M || (B == null ? void 0 : B.value) === void 0, [de, fe] = m(D ? fd.PREDEFINED : fd.CUSTOM), pe = !!(j || n), me = E && E.find((e) => {
|
|
7149
7158
|
if (!(e != null && e.value)) return;
|
|
7150
7159
|
if (k) return k === e.valueKey;
|
|
7151
|
-
let t =
|
|
7160
|
+
let t = Pn(e.value) ? On(e.value) : "", { value: n = l } = gd({
|
|
7152
7161
|
value: String(l),
|
|
7153
7162
|
unitkey: u,
|
|
7154
7163
|
toUnit: t
|
|
7155
7164
|
});
|
|
7156
|
-
return
|
|
7157
|
-
}),
|
|
7165
|
+
return qn(n, t) === e.value;
|
|
7166
|
+
}), he = () => {
|
|
7158
7167
|
var e;
|
|
7159
|
-
let t = (e = l) == null ? "" : e, n =
|
|
7168
|
+
let t = (e = l) == null ? "" : e, n = B.unit;
|
|
7160
7169
|
if (!hd({
|
|
7161
7170
|
value: t,
|
|
7162
7171
|
unitkey: u,
|
|
7163
7172
|
toUnit: n
|
|
7164
7173
|
})) {
|
|
7165
|
-
let e =
|
|
7174
|
+
let e = Dn(u);
|
|
7166
7175
|
return e == null ? void 0 : e.map((e) => ["", e == null ? void 0 : e.unit]);
|
|
7167
7176
|
} else if (u) try {
|
|
7168
|
-
let e =
|
|
7169
|
-
return
|
|
7177
|
+
let e = Cn(t, u);
|
|
7178
|
+
return An(t) === "" ? e.map((e) => ["", e[1]]) : e;
|
|
7170
7179
|
} catch {
|
|
7171
7180
|
return null;
|
|
7172
7181
|
}
|
|
7173
|
-
},
|
|
7174
|
-
let n = vd(e), r = t.target, { value: i, selectionStart: a } = r, o =
|
|
7182
|
+
}, ge = (t) => {
|
|
7183
|
+
let n = vd(e), r = t.target, { value: i, selectionStart: a } = r, o = qn(i, (B == null ? void 0 : B.unit) || "");
|
|
7175
7184
|
h({ target: {
|
|
7176
|
-
value: N ?
|
|
7185
|
+
value: N ? qn(Tn(o, ie), ie) : o,
|
|
7177
7186
|
name: n
|
|
7178
7187
|
} });
|
|
7179
|
-
let [s, c] =
|
|
7180
|
-
|
|
7188
|
+
let [s, c] = Bn(o);
|
|
7189
|
+
le({
|
|
7181
7190
|
value: s,
|
|
7182
7191
|
unit: c
|
|
7183
|
-
}),
|
|
7192
|
+
}), ne(() => {
|
|
7184
7193
|
r.selectionStart = a, r.selectionEnd = a;
|
|
7185
7194
|
});
|
|
7186
|
-
},
|
|
7187
|
-
t ===
|
|
7195
|
+
}, _e = (e, t) => {
|
|
7196
|
+
t === B.unit || isNaN(Number(e)) || (le({
|
|
7188
7197
|
value: e,
|
|
7189
7198
|
unit: t
|
|
7190
7199
|
}), S && S(t));
|
|
7191
7200
|
};
|
|
7192
7201
|
c(() => {
|
|
7193
|
-
if (
|
|
7202
|
+
if (oe) {
|
|
7194
7203
|
let e, t = "";
|
|
7195
|
-
if (
|
|
7204
|
+
if (se !== oe) {
|
|
7196
7205
|
let { value: n } = _d({
|
|
7197
7206
|
value: l,
|
|
7198
|
-
toUnit:
|
|
7207
|
+
toUnit: oe,
|
|
7199
7208
|
unitkey: u,
|
|
7200
|
-
defaultFromUnit:
|
|
7209
|
+
defaultFromUnit: ie,
|
|
7201
7210
|
doNotConvertValue: p
|
|
7202
7211
|
});
|
|
7203
|
-
e = n, t =
|
|
7204
|
-
} else if (
|
|
7212
|
+
e = n, t = oe;
|
|
7213
|
+
} else if (qn(B.value, B.unit) !== l) {
|
|
7205
7214
|
let { value: n } = _d({
|
|
7206
7215
|
value: l,
|
|
7207
|
-
toUnit:
|
|
7216
|
+
toUnit: B.unit,
|
|
7208
7217
|
unitkey: u,
|
|
7209
|
-
defaultFromUnit:
|
|
7218
|
+
defaultFromUnit: ie,
|
|
7210
7219
|
doNotConvertValue: p
|
|
7211
7220
|
});
|
|
7212
|
-
e = n, t =
|
|
7221
|
+
e = n, t = B.unit;
|
|
7213
7222
|
}
|
|
7214
|
-
e !== void 0 &&
|
|
7223
|
+
e !== void 0 && le({
|
|
7215
7224
|
value: e,
|
|
7216
7225
|
unit: t
|
|
7217
|
-
}),
|
|
7226
|
+
}), fe(E && me && O ? fd.PREDEFINED : fd.CUSTOM);
|
|
7218
7227
|
}
|
|
7219
7228
|
}, [
|
|
7220
|
-
|
|
7229
|
+
oe,
|
|
7221
7230
|
l,
|
|
7222
7231
|
i,
|
|
7223
7232
|
O
|
|
7224
7233
|
]);
|
|
7225
|
-
let
|
|
7226
|
-
let r = t != null && t.value ? t.value : "", [i = "", a = ""] =
|
|
7234
|
+
let ve = he(), ye = Fn(B.unit) || B.unit || "", be = p || !ve || ve && ve.length === 1, xe = vd(e), Se, Ce = (t) => {
|
|
7235
|
+
let r = t != null && t.value ? t.value : "", [i = "", a = ""] = Pn(r) ? Bn(r) : [r], o = Kn(r);
|
|
7227
7236
|
if (hd({
|
|
7228
7237
|
value: r,
|
|
7229
7238
|
unitkey: u,
|
|
@@ -7231,18 +7240,18 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
7231
7240
|
})) {
|
|
7232
7241
|
let { value: e = "" } = _d({
|
|
7233
7242
|
value: r,
|
|
7234
|
-
toUnit:
|
|
7243
|
+
toUnit: z,
|
|
7235
7244
|
unitkey: u,
|
|
7236
7245
|
defaultFromUnit: a,
|
|
7237
7246
|
doNotConvertValue: p
|
|
7238
7247
|
});
|
|
7239
|
-
o = qn(
|
|
7248
|
+
o = Kn(qn(e, z));
|
|
7240
7249
|
}
|
|
7241
7250
|
return {
|
|
7242
7251
|
type: Ci.OPTION,
|
|
7243
7252
|
inline: !0,
|
|
7244
7253
|
onClick: () => {
|
|
7245
|
-
|
|
7254
|
+
Gn(i).valid && !n && (fe(fd.PREDEFINED), h({ target: {
|
|
7246
7255
|
value: r,
|
|
7247
7256
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
|
|
7248
7257
|
predefinedSelected: !0,
|
|
@@ -7254,29 +7263,29 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
7254
7263
|
height: "0"
|
|
7255
7264
|
})] }),
|
|
7256
7265
|
description: o,
|
|
7257
|
-
selected:
|
|
7266
|
+
selected: me === t && de === fd.PREDEFINED
|
|
7258
7267
|
};
|
|
7259
7268
|
};
|
|
7260
|
-
if (
|
|
7269
|
+
if (Se = [{
|
|
7261
7270
|
type: Ci.OPTION,
|
|
7262
7271
|
inline: !0,
|
|
7263
7272
|
onClick: () => {
|
|
7264
|
-
|
|
7265
|
-
value:
|
|
7273
|
+
de !== fd.CUSTOM && !n && h({ target: {
|
|
7274
|
+
value: qn(B.value, B.unit),
|
|
7266
7275
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
|
|
7267
7276
|
} });
|
|
7268
7277
|
},
|
|
7269
7278
|
label: "Custom",
|
|
7270
|
-
selected:
|
|
7279
|
+
selected: de === fd.CUSTOM
|
|
7271
7280
|
}], E != null && E.length) {
|
|
7272
|
-
let e = E.map(
|
|
7273
|
-
|
|
7281
|
+
let e = E.map(Ce);
|
|
7282
|
+
Se = [...Se, ...e];
|
|
7274
7283
|
}
|
|
7275
|
-
let
|
|
7276
|
-
if (
|
|
7277
|
-
let t =
|
|
7284
|
+
let we = (e) => {
|
|
7285
|
+
if (Pn(e)) {
|
|
7286
|
+
let t = On(e), { value: n } = _d({
|
|
7278
7287
|
value: e,
|
|
7279
|
-
toUnit:
|
|
7288
|
+
toUnit: B.unit,
|
|
7280
7289
|
unitkey: u,
|
|
7281
7290
|
defaultFromUnit: t,
|
|
7282
7291
|
doNotConvertValue: p
|
|
@@ -7284,9 +7293,9 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
7284
7293
|
return n;
|
|
7285
7294
|
}
|
|
7286
7295
|
return e;
|
|
7287
|
-
},
|
|
7296
|
+
}, Te = !E && (!R || R === V.FIRST) ? V.FIRST : V.MIDDLE, Ee = !R || R === V.LAST ? V.LAST : V.MIDDLE;
|
|
7288
7297
|
return /* @__PURE__ */ v("div", {
|
|
7289
|
-
className:
|
|
7298
|
+
className: de === fd.PREDEFINED ? g(Ed.predefinedMenuActive) : "",
|
|
7290
7299
|
children: /* @__PURE__ */ y(Pa, {
|
|
7291
7300
|
small: o,
|
|
7292
7301
|
width: s,
|
|
@@ -7301,65 +7310,65 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
7301
7310
|
trigger: "Component",
|
|
7302
7311
|
component: /* @__PURE__ */ v(K, {
|
|
7303
7312
|
groupOrder: "first",
|
|
7304
|
-
active:
|
|
7305
|
-
icon:
|
|
7313
|
+
active: de === fd.PREDEFINED,
|
|
7314
|
+
icon: de === fd.PREDEFINED ? "link" : "unlink",
|
|
7306
7315
|
small: o
|
|
7307
7316
|
}),
|
|
7308
7317
|
small: o,
|
|
7309
|
-
sections:
|
|
7318
|
+
sections: Se
|
|
7310
7319
|
},
|
|
7311
|
-
tooltip:
|
|
7320
|
+
tooltip: de === fd.PREDEFINED ? me == null ? void 0 : me.label : ""
|
|
7312
7321
|
}),
|
|
7313
7322
|
/* @__PURE__ */ v("div", {
|
|
7314
7323
|
className: Ed.inputWrapper,
|
|
7315
7324
|
children: /* @__PURE__ */ v(qs, {
|
|
7316
|
-
name:
|
|
7325
|
+
name: xe,
|
|
7317
7326
|
testId: w,
|
|
7318
7327
|
disabled: n,
|
|
7319
|
-
placeholder:
|
|
7320
|
-
value:
|
|
7321
|
-
onChange:
|
|
7328
|
+
placeholder: we(t),
|
|
7329
|
+
value: B.value,
|
|
7330
|
+
onChange: ge,
|
|
7322
7331
|
onFocus: x,
|
|
7323
7332
|
error: i === null ? void 0 : i,
|
|
7324
7333
|
warning: T === null ? void 0 : T,
|
|
7325
7334
|
left: a,
|
|
7326
|
-
allowEmpty:
|
|
7327
|
-
validationCallback: (e, t) => A(
|
|
7335
|
+
allowEmpty: ue,
|
|
7336
|
+
validationCallback: (e, t) => A(xe, t),
|
|
7328
7337
|
enableCosmeticRounding: P,
|
|
7329
7338
|
enableDisplayRounding: F,
|
|
7330
7339
|
roundDisplayValue: I,
|
|
7331
|
-
groupOrder:
|
|
7332
|
-
disableInternalErrorValidationMessages:
|
|
7340
|
+
groupOrder: Te,
|
|
7341
|
+
disableInternalErrorValidationMessages: pe,
|
|
7333
7342
|
small: o,
|
|
7334
|
-
selectOnFocus:
|
|
7335
|
-
tooltip:
|
|
7336
|
-
},
|
|
7343
|
+
selectOnFocus: L,
|
|
7344
|
+
tooltip: ee
|
|
7345
|
+
}, xe)
|
|
7337
7346
|
}),
|
|
7338
|
-
|
|
7339
|
-
groupOrder:
|
|
7347
|
+
ye && (be || !ae ? /* @__PURE__ */ v(js, {
|
|
7348
|
+
groupOrder: Ee,
|
|
7340
7349
|
small: o,
|
|
7341
|
-
children:
|
|
7350
|
+
children: ye
|
|
7342
7351
|
}) : /* @__PURE__ */ v(Ji, {
|
|
7343
|
-
groupOrder:
|
|
7352
|
+
groupOrder: Ee,
|
|
7344
7353
|
maxHeight: 380,
|
|
7345
7354
|
disabled: r,
|
|
7346
7355
|
testId: w && `${w}-menu`,
|
|
7347
7356
|
tabIndex: -1,
|
|
7348
7357
|
menu: {
|
|
7349
|
-
label:
|
|
7358
|
+
label: ye,
|
|
7350
7359
|
trigger: "DropDownButton",
|
|
7351
7360
|
small: o,
|
|
7352
|
-
sections:
|
|
7353
|
-
let r = n || t || "", i =
|
|
7361
|
+
sections: ve.map(([e = "", t = "", n]) => {
|
|
7362
|
+
let r = n || t || "", i = Nn(e) ? e : "";
|
|
7354
7363
|
return {
|
|
7355
7364
|
type: "Option",
|
|
7356
7365
|
label: P ? Td(i) : i,
|
|
7357
7366
|
inline: !0,
|
|
7358
7367
|
onClick: (n) => {
|
|
7359
|
-
n.stopPropagation(),
|
|
7368
|
+
n.stopPropagation(), _e(e, t);
|
|
7360
7369
|
},
|
|
7361
7370
|
description: r,
|
|
7362
|
-
selected: r ===
|
|
7371
|
+
selected: r === ye,
|
|
7363
7372
|
testId: `${w}-unit-${r}`
|
|
7364
7373
|
};
|
|
7365
7374
|
})
|
|
@@ -7467,8 +7476,8 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
7467
7476
|
error: !u && (i == null ? void 0 : i.unitIsMissing) || l,
|
|
7468
7477
|
disabled: c || !u,
|
|
7469
7478
|
searchable: !1,
|
|
7470
|
-
options: (a =
|
|
7471
|
-
label:
|
|
7479
|
+
options: (a = kn(s)) == null ? void 0 : a.map((e) => ({
|
|
7480
|
+
label: Fn(e),
|
|
7472
7481
|
value: e
|
|
7473
7482
|
})),
|
|
7474
7483
|
native: e.native,
|
|
@@ -7514,7 +7523,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
7514
7523
|
i
|
|
7515
7524
|
]);
|
|
7516
7525
|
return c(() => {
|
|
7517
|
-
|
|
7526
|
+
an(p, h) || Object.keys(p).forEach((e) => {
|
|
7518
7527
|
let t = h == null ? void 0 : h[e], n = p[e];
|
|
7519
7528
|
t !== n && y({
|
|
7520
7529
|
unitKey: e,
|
|
@@ -7549,7 +7558,7 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
7549
7558
|
label: d == null ? void 0 : d.custom,
|
|
7550
7559
|
value: void 0
|
|
7551
7560
|
}] : []
|
|
7552
|
-
], m = a !== void 0 && o !== void 0 && !
|
|
7561
|
+
], m = a !== void 0 && o !== void 0 && !an(a, o);
|
|
7553
7562
|
return /* @__PURE__ */ y("div", {
|
|
7554
7563
|
className: Rd.settingField,
|
|
7555
7564
|
"data-testid": u,
|
|
@@ -7561,9 +7570,9 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
7561
7570
|
children: /* @__PURE__ */ y(Ll, {
|
|
7562
7571
|
gap: "8px",
|
|
7563
7572
|
alignItems: "center",
|
|
7564
|
-
children: [m && /* @__PURE__ */ v(
|
|
7565
|
-
text:
|
|
7566
|
-
icon:
|
|
7573
|
+
children: [m && /* @__PURE__ */ v(ci, {
|
|
7574
|
+
text: Gn(o).valid ? `${d == null ? void 0 : d.companySetting}: ${Pn(o) ? Kn(o) : o}` : d == null ? void 0 : d.companySettingDifferent,
|
|
7575
|
+
icon: H.INFO
|
|
7567
7576
|
}), /* @__PURE__ */ v(Ts, {
|
|
7568
7577
|
small: !0,
|
|
7569
7578
|
searchable: !1,
|
|
@@ -7633,11 +7642,11 @@ var Tr = /* @__PURE__ */ function(e) {
|
|
|
7633
7642
|
muted: !0,
|
|
7634
7643
|
children: a == null ? void 0 : a.changesTooLarge
|
|
7635
7644
|
})
|
|
7636
|
-
}) : /* @__PURE__ */ v(
|
|
7645
|
+
}) : /* @__PURE__ */ v(Sr, {
|
|
7637
7646
|
oldValue: e,
|
|
7638
7647
|
newValue: t,
|
|
7639
7648
|
splitView: o === Vd,
|
|
7640
|
-
compareMethod:
|
|
7649
|
+
compareMethod: Cr.WORDS
|
|
7641
7650
|
})
|
|
7642
7651
|
}) });
|
|
7643
7652
|
};
|
|
@@ -8946,7 +8955,7 @@ var Lf = (e = {}) => If({
|
|
|
8946
8955
|
}
|
|
8947
8956
|
return n || "";
|
|
8948
8957
|
}, Vf = (e) => {
|
|
8949
|
-
let t = (e) =>
|
|
8958
|
+
let t = (e) => Pn(e) ? Kn(e) : String(e);
|
|
8950
8959
|
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);
|
|
8951
8960
|
}, Hf = (e) => {
|
|
8952
8961
|
switch (e.length) {
|
|
@@ -8980,7 +8989,7 @@ var Lf = (e = {}) => If({
|
|
|
8980
8989
|
after: ""
|
|
8981
8990
|
};
|
|
8982
8991
|
}
|
|
8983
|
-
}, Uf = (e) => Array.isArray(e), Wf = (e, t) => t ? Uf(t) ? t.length === 0 ? e : t.reduce((e, t) => zf.unpatch(
|
|
8992
|
+
}, Uf = (e) => Array.isArray(e), Wf = (e, t) => t ? Uf(t) ? t.length === 0 ? e : t.reduce((e, t) => zf.unpatch(Xt(e), Xt(t)), Xt(e)) : zf.unpatch(Xt(e), Xt(t)) : e, Gf = (e) => e.createdAt || e.date, Kf = (e, t, n) => {
|
|
8984
8993
|
let r = Gf(e);
|
|
8985
8994
|
if (!r) return {
|
|
8986
8995
|
oldJson: "",
|
|
@@ -8991,7 +9000,7 @@ var Lf = (e = {}) => If({
|
|
|
8991
9000
|
let t = Gf(e);
|
|
8992
9001
|
return !!(e.diffs && t && t >= r);
|
|
8993
9002
|
}), a = Array.from({ length: i.length + 1 });
|
|
8994
|
-
a[0] =
|
|
9003
|
+
a[0] = Xt(n);
|
|
8995
9004
|
let o = "", s = "";
|
|
8996
9005
|
try {
|
|
8997
9006
|
for (let e = 0; e < i.length; e++) {
|
|
@@ -9029,10 +9038,10 @@ var Lf = (e = {}) => If({
|
|
|
9029
9038
|
value: s
|
|
9030
9039
|
})) return;
|
|
9031
9040
|
let c = [...r, i];
|
|
9032
|
-
|
|
9041
|
+
tn(s) ? t.push({
|
|
9033
9042
|
deltaFormat: [...s],
|
|
9034
9043
|
path: c
|
|
9035
|
-
}) :
|
|
9044
|
+
}) : ln(s) && qf(s, t, n, c);
|
|
9036
9045
|
});
|
|
9037
9046
|
}, Jf = (e, t = {}) => {
|
|
9038
9047
|
let n = [];
|
|
@@ -9051,7 +9060,7 @@ var Lf = (e = {}) => If({
|
|
|
9051
9060
|
}, Zf = (e, t = e.length - 1) => {
|
|
9052
9061
|
if (t >= e.length) return "Value";
|
|
9053
9062
|
let n = e[t];
|
|
9054
|
-
return !n ||
|
|
9063
|
+
return !n || jn(n) ? Zf(e, t - 1) : Yf(n);
|
|
9055
9064
|
}, Qf = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
9056
9065
|
let o = Xf(r), s = Xf(i), c = a ? ` in ${a}` : "";
|
|
9057
9066
|
switch (t) {
|
|
@@ -9211,7 +9220,7 @@ var Lf = (e = {}) => If({
|
|
|
9211
9220
|
padding: !1,
|
|
9212
9221
|
children: r ? /* @__PURE__ */ v(iu, {
|
|
9213
9222
|
height: "100px",
|
|
9214
|
-
theme:
|
|
9223
|
+
theme: kr.WHITE,
|
|
9215
9224
|
children: /* @__PURE__ */ v(gi, { dark: !0 })
|
|
9216
9225
|
}) : /* @__PURE__ */ v(Cc, { table: {
|
|
9217
9226
|
headers: T,
|
|
@@ -9273,4 +9282,4 @@ var Lf = (e = {}) => If({
|
|
|
9273
9282
|
});
|
|
9274
9283
|
};
|
|
9275
9284
|
//#endregion
|
|
9276
|
-
export {
|
|
9285
|
+
export { Jr as Accordion, pi as AccordionWithDefaultToggle, Xi as Actions, Er as Align, ip as AuditLog, Ii as Badge, ea as Breadcrumb, Qi as BreadcrumbLinkType, K as Button, na as ButtonGroup, Dr as ButtonPosition, _i as ButtonType, ia as Card, li as CheckBox, Hr as Chevron, Gr as Collapse, Tr as Color, la as ColorInput, ma as Column, wa as Dialog, Ud as DiffViewer, U as DisabledContext, ya as Divider, ja as Drawer, Bu as ElementType, Pc as Empty, Il as Field, Ml as FileButton, Va as FileInput, Ll as Flex, zl as FormRow, Ul as Grid, V as GroupOrder, xa as Heading, ci as HelpIcon, W as Icon, H as IconType, Ia as Input, Pa as InputGroup, js as InputGroupAddon, Ra as InputReaderMethods, Ar as InputType, Pl as Label, nu as List, Gl as ListHeading, Zl as ListSubheading, iu as Loader, Ji as Menu, wi as MenuCarat, Ci as MenuType, ho as Message, co as MessageType, Ja as Modal, xo as NativeSelect, qs as NumberInput, uu as OptionDropdown, fu as Page, Ms as Pagination, Ku as PopConfirm, sa as Popover, Wa as Portal, mu as PrintHeader, Za as ProgressBar, hu as RadioButton, bu as RichTextInput, Su as Row, Ts as Select, zd as SettingField, Du as SideBar, ku as Skeleton, rc as Slider, no as SmartUploadModal, Ha as Spacer, gi as Spinner, Cc as Table, jl as TableImportExport, Nu as Tabs, _a as Text, Iu as TextArea, Pu as TextLink, Or as TextTransform, kr as Theme, lr as Toaster, hl as Toggle, G as Tooltip, Uu as TopBar, Xu as Tree, cd as TreeTable, wr as TriggerType, Dd as UnitInput, Ld as UnitTable, ap as UsageTracker, fl as dismissToast, wd as initializeContext, sp as initializeGuiLibrary, za as readFile, dl as toast, So as useFocus, Ua as useKeyboardEvent, To as useWindowWidth };
|