@kosdev-code/base-ui-components 0.1.0-dev.5699 → 0.1.0-dev.5706
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/components/atoms/copyable-text/copyable-text.d.ts +2 -1
- package/components/atoms/copyable-text/copyable-text.d.ts.map +1 -1
- package/index.cjs +90 -90
- package/index.cjs.map +1 -1
- package/index.js +743 -740
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -3,9 +3,9 @@ var $a = (e, t, o) => t in e ? ka(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var M = (e, t, o) => ($a(e, typeof t != "symbol" ? t + "" : t, o), o);
|
|
4
4
|
import { jsx as c, jsxs as $, Fragment as pe } from "@emotion/react/jsx-runtime";
|
|
5
5
|
import * as Eo from "react";
|
|
6
|
-
import T, { forwardRef as ue, createContext as ve, useContext as be, useMemo as
|
|
6
|
+
import T, { forwardRef as ue, createContext as ve, useContext as be, useMemo as V, memo as A, useReducer as Ca, useState as W, useRef as H, useLayoutEffect as Ie, useEffect as U, useCallback as I, cloneElement as Ut, isValidElement as Ct, useId as _e, Children as Xn, Suspense as Hr, Fragment as Ur } from "react";
|
|
7
7
|
import g from "@emotion/styled";
|
|
8
|
-
import { css as
|
|
8
|
+
import { css as q, ClassNames as Q, keyframes as St, createElement as Sa } from "@emotion/react";
|
|
9
9
|
import { flushSync as Gr } from "react-dom";
|
|
10
10
|
import { useMergeRefs as Gt, useFloating as go, useClick as Fo, useDismiss as fo, useInteractions as mo, useTransitionStatus as Ia, FloatingPortal as Yt, FloatingFocusManager as Ao, FloatingOverlay as Yr, flip as Bo, size as _a, autoUpdate as Lo, useListNavigation as za, useRole as Wo, FloatingList as Da, useListItem as Ta, offset as Kr, shift as qr, arrow as Ea, useHover as Ma, useFocus as Oa, FloatingArrow as Na } from "@floating-ui/react";
|
|
11
11
|
import { useDrag as Ra } from "@use-gesture/react";
|
|
@@ -46,7 +46,7 @@ const bl = (e) => {
|
|
|
46
46
|
return Array.isArray(n) || (n = [n]), xl(
|
|
47
47
|
n.map((r) => vl(r) ? wl(r, t, o) : r)
|
|
48
48
|
);
|
|
49
|
-
}, qt = (e, t) => t ? e : `var(${e})`,
|
|
49
|
+
}, qt = (e, t) => t ? e : `var(${e})`, L = (e, t) => qt(`--studio-g-${e}`, t), l = (e, t) => qt(`--studio-s-${e}`, t), $l = {
|
|
50
50
|
"actionable-blurb": {
|
|
51
51
|
"row-gap": l("spacing-4"),
|
|
52
52
|
"icon-column-width": l("spacing-20")
|
|
@@ -984,75 +984,75 @@ const bl = (e) => {
|
|
|
984
984
|
// TODO: Talk to bndigital about a more semantic naming
|
|
985
985
|
// convention for these tokens.
|
|
986
986
|
color: {
|
|
987
|
-
white:
|
|
988
|
-
grey10:
|
|
989
|
-
grey15:
|
|
990
|
-
grey20:
|
|
991
|
-
grey30:
|
|
992
|
-
grey40:
|
|
993
|
-
grey50:
|
|
994
|
-
grey60:
|
|
995
|
-
grey65:
|
|
996
|
-
grey70:
|
|
997
|
-
grey80:
|
|
998
|
-
black:
|
|
999
|
-
primary:
|
|
1000
|
-
primaryLight:
|
|
1001
|
-
additional1:
|
|
1002
|
-
additional2:
|
|
1003
|
-
additional3:
|
|
1004
|
-
green:
|
|
1005
|
-
orange:
|
|
1006
|
-
red:
|
|
1007
|
-
purple:
|
|
1008
|
-
blue:
|
|
1009
|
-
yellow:
|
|
987
|
+
white: L("color-grey0"),
|
|
988
|
+
grey10: L("color-grey10"),
|
|
989
|
+
grey15: L("color-grey15"),
|
|
990
|
+
grey20: L("color-grey20"),
|
|
991
|
+
grey30: L("color-grey30"),
|
|
992
|
+
grey40: L("color-grey40"),
|
|
993
|
+
grey50: L("color-grey50"),
|
|
994
|
+
grey60: L("color-grey60"),
|
|
995
|
+
grey65: L("color-grey65"),
|
|
996
|
+
grey70: L("color-grey70"),
|
|
997
|
+
grey80: L("color-grey80"),
|
|
998
|
+
black: L("color-grey100"),
|
|
999
|
+
primary: L("color-blue30"),
|
|
1000
|
+
primaryLight: L("color-blue0"),
|
|
1001
|
+
additional1: L("color-blue20"),
|
|
1002
|
+
additional2: L("color-blue40"),
|
|
1003
|
+
additional3: L("color-blue10"),
|
|
1004
|
+
green: L("color-green0"),
|
|
1005
|
+
orange: L("color-orange0"),
|
|
1006
|
+
red: L("color-red0"),
|
|
1007
|
+
purple: L("color-purple0"),
|
|
1008
|
+
blue: L("color-blue30"),
|
|
1009
|
+
yellow: L("color-yellow0")
|
|
1010
1010
|
}
|
|
1011
1011
|
}, kc = {
|
|
1012
1012
|
"font-size": {
|
|
1013
|
-
sm:
|
|
1014
|
-
med:
|
|
1015
|
-
lrg:
|
|
1016
|
-
xlrg:
|
|
1013
|
+
sm: L("font-size-10px"),
|
|
1014
|
+
med: L("font-size-12px"),
|
|
1015
|
+
lrg: L("font-size-14px"),
|
|
1016
|
+
xlrg: L("font-size-16px")
|
|
1017
1017
|
},
|
|
1018
1018
|
"font-weight": {
|
|
1019
|
-
normal:
|
|
1020
|
-
bold:
|
|
1019
|
+
normal: L("font-weight-400"),
|
|
1020
|
+
bold: L("font-weight-700")
|
|
1021
1021
|
},
|
|
1022
1022
|
"font-family": {
|
|
1023
|
-
default:
|
|
1023
|
+
default: L("font-family-Arial")
|
|
1024
1024
|
},
|
|
1025
1025
|
"line-height": {
|
|
1026
|
-
default:
|
|
1026
|
+
default: L("line-height-120")
|
|
1027
1027
|
}
|
|
1028
1028
|
}, $c = {
|
|
1029
1029
|
spacing: {
|
|
1030
|
-
2:
|
|
1031
|
-
4:
|
|
1032
|
-
6:
|
|
1033
|
-
7:
|
|
1034
|
-
8:
|
|
1035
|
-
10:
|
|
1036
|
-
12:
|
|
1037
|
-
14:
|
|
1038
|
-
16:
|
|
1039
|
-
18:
|
|
1040
|
-
20:
|
|
1041
|
-
22:
|
|
1042
|
-
24:
|
|
1043
|
-
26:
|
|
1044
|
-
28:
|
|
1045
|
-
30:
|
|
1046
|
-
32:
|
|
1047
|
-
34:
|
|
1048
|
-
36:
|
|
1049
|
-
40:
|
|
1030
|
+
2: L("spacing-2px"),
|
|
1031
|
+
4: L("spacing-4px"),
|
|
1032
|
+
6: L("spacing-6px"),
|
|
1033
|
+
7: L("spacing-7px"),
|
|
1034
|
+
8: L("spacing-8px"),
|
|
1035
|
+
10: L("spacing-10px"),
|
|
1036
|
+
12: L("spacing-12px"),
|
|
1037
|
+
14: L("spacing-14px"),
|
|
1038
|
+
16: L("spacing-16px"),
|
|
1039
|
+
18: L("spacing-18px"),
|
|
1040
|
+
20: L("spacing-20px"),
|
|
1041
|
+
22: L("spacing-22px"),
|
|
1042
|
+
24: L("spacing-24px"),
|
|
1043
|
+
26: L("spacing-26px"),
|
|
1044
|
+
28: L("spacing-28px"),
|
|
1045
|
+
30: L("spacing-30px"),
|
|
1046
|
+
32: L("spacing-32px"),
|
|
1047
|
+
34: L("spacing-34px"),
|
|
1048
|
+
36: L("spacing-36px"),
|
|
1049
|
+
40: L("spacing-40px")
|
|
1050
1050
|
},
|
|
1051
1051
|
border: {
|
|
1052
|
-
xsm:
|
|
1053
|
-
sm:
|
|
1054
|
-
med:
|
|
1055
|
-
lrg:
|
|
1052
|
+
xsm: L("spacing-0-5px"),
|
|
1053
|
+
sm: L("spacing-1px"),
|
|
1054
|
+
med: L("spacing-2px"),
|
|
1055
|
+
lrg: L("spacing-3px")
|
|
1056
1056
|
}
|
|
1057
1057
|
}, Cc = {
|
|
1058
1058
|
...wc,
|
|
@@ -1068,7 +1068,7 @@ const bl = (e) => {
|
|
|
1068
1068
|
a.map(
|
|
1069
1069
|
(s) => (d, u) => qt(`--${o}-${String(s)}-${d}`, u)
|
|
1070
1070
|
)
|
|
1071
|
-
), i =
|
|
1071
|
+
), i = q`
|
|
1072
1072
|
${n} {
|
|
1073
1073
|
${ii(e, o).join(`;
|
|
1074
1074
|
`)};
|
|
@@ -1080,7 +1080,7 @@ const bl = (e) => {
|
|
|
1080
1080
|
};
|
|
1081
1081
|
}, Xv = (e, t = "studio-c") => (o, n) => qt(`--${t}-${e}-${o}`, n), Jv = (e, t = {}) => {
|
|
1082
1082
|
const { prefix: o = "studio-c" } = t;
|
|
1083
|
-
return
|
|
1083
|
+
return q`
|
|
1084
1084
|
${ii(e, o).join(`;
|
|
1085
1085
|
`)};
|
|
1086
1086
|
`;
|
|
@@ -1093,26 +1093,26 @@ const bl = (e) => {
|
|
|
1093
1093
|
(o) => Object.keys(e[o]).map(
|
|
1094
1094
|
(n) => `${t(`${o}-${n}`, !0)}: ${e[o][n]}`
|
|
1095
1095
|
)
|
|
1096
|
-
), Qv =
|
|
1096
|
+
), Qv = q`
|
|
1097
1097
|
:root {
|
|
1098
1098
|
${Dn(Cc, l)}
|
|
1099
1099
|
}
|
|
1100
|
-
`, ex =
|
|
1100
|
+
`, ex = q`
|
|
1101
1101
|
:root {
|
|
1102
1102
|
.rdp-root {
|
|
1103
1103
|
--rdp-accent-color: ${l("color-primary")};
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
|
-
${Dn(xc,
|
|
1106
|
+
${Dn(xc, L)}
|
|
1107
1107
|
}
|
|
1108
|
-
`, tx =
|
|
1108
|
+
`, tx = q`
|
|
1109
1109
|
:root {
|
|
1110
1110
|
${Dn(
|
|
1111
1111
|
mc,
|
|
1112
1112
|
(e, t) => qt(`--studio-c-${e}`, t)
|
|
1113
1113
|
)}
|
|
1114
1114
|
}
|
|
1115
|
-
`, Sc =
|
|
1115
|
+
`, Sc = q`
|
|
1116
1116
|
:root {
|
|
1117
1117
|
// viewable list item
|
|
1118
1118
|
--studio-component-viewable-list-item-padding-inline: var(
|
|
@@ -1137,7 +1137,7 @@ const bl = (e) => {
|
|
|
1137
1137
|
--studio-generic-padding-x-small
|
|
1138
1138
|
);
|
|
1139
1139
|
}
|
|
1140
|
-
`, Ic =
|
|
1140
|
+
`, Ic = q`
|
|
1141
1141
|
:root {
|
|
1142
1142
|
// button
|
|
1143
1143
|
--studio-component-button-background-color-active: var(
|
|
@@ -1203,7 +1203,7 @@ const bl = (e) => {
|
|
|
1203
1203
|
--studio-component-button-gap: var(--studio-semantic-control-gap);
|
|
1204
1204
|
--studio-component-button-padding: 10px 40px;
|
|
1205
1205
|
}
|
|
1206
|
-
`, _c =
|
|
1206
|
+
`, _c = q`
|
|
1207
1207
|
:root {
|
|
1208
1208
|
// list item
|
|
1209
1209
|
--studio-component-list-item-border-color-selected: var(
|
|
@@ -1236,14 +1236,14 @@ const bl = (e) => {
|
|
|
1236
1236
|
--studio-semantic-component-list-padding-inline
|
|
1237
1237
|
);
|
|
1238
1238
|
}
|
|
1239
|
-
`, zc =
|
|
1239
|
+
`, zc = q`
|
|
1240
1240
|
:root {
|
|
1241
1241
|
//list
|
|
1242
1242
|
--studio-component-list-border-color-default: var(
|
|
1243
1243
|
--studio-generic-color-grey-20
|
|
1244
1244
|
);
|
|
1245
1245
|
}
|
|
1246
|
-
`, Dc =
|
|
1246
|
+
`, Dc = q`
|
|
1247
1247
|
:root {
|
|
1248
1248
|
}
|
|
1249
1249
|
`, Jn = [
|
|
@@ -1252,7 +1252,7 @@ const bl = (e) => {
|
|
|
1252
1252
|
Ic,
|
|
1253
1253
|
_c,
|
|
1254
1254
|
zc
|
|
1255
|
-
], Qn =
|
|
1255
|
+
], Qn = q`
|
|
1256
1256
|
:root {
|
|
1257
1257
|
/* radius */
|
|
1258
1258
|
--studio-generic-border-radius-small: 4px;
|
|
@@ -1351,7 +1351,7 @@ const bl = (e) => {
|
|
|
1351
1351
|
--studio-generic-center-text-align: center;
|
|
1352
1352
|
// --studio-generic-center-text-align: var(--studio-generic-color-white, #f0f0f0);
|
|
1353
1353
|
}
|
|
1354
|
-
`, er =
|
|
1354
|
+
`, er = q`
|
|
1355
1355
|
:root {
|
|
1356
1356
|
// colour
|
|
1357
1357
|
--studio-semantic-color-system-green: var(--studio-generic-color-green-100);
|
|
@@ -1605,7 +1605,7 @@ const bl = (e) => {
|
|
|
1605
1605
|
)
|
|
1606
1606
|
var(--studio-generic-padding-small);
|
|
1607
1607
|
}
|
|
1608
|
-
`, tr =
|
|
1608
|
+
`, tr = q`
|
|
1609
1609
|
::-webkit-scrollbar {
|
|
1610
1610
|
background-color: transparent;
|
|
1611
1611
|
height: 8px;
|
|
@@ -2078,14 +2078,14 @@ const bl = (e) => {
|
|
|
2078
2078
|
"--kos-font-weight-heading-small": "700",
|
|
2079
2079
|
"--kos-font-weight-heading-medium": "700",
|
|
2080
2080
|
"--kos-font-weight-heading-large": "700"
|
|
2081
|
-
}, nx =
|
|
2081
|
+
}, nx = q`
|
|
2082
2082
|
scrollbar-gutter: stable;
|
|
2083
2083
|
//AUTO might be the one that overlays things
|
|
2084
2084
|
|
|
2085
2085
|
/* Hide scrollbar for IE, Edge, Firefox, and other browsers */
|
|
2086
2086
|
scrollbar-width: thin; /* Firefox */
|
|
2087
2087
|
overflow-y: auto;
|
|
2088
|
-
`, rx = () =>
|
|
2088
|
+
`, rx = () => q`
|
|
2089
2089
|
:root {
|
|
2090
2090
|
--kos-font-size-base: 10px;
|
|
2091
2091
|
--kos-font-size-small: 10px;
|
|
@@ -2094,11 +2094,11 @@ const bl = (e) => {
|
|
|
2094
2094
|
font-size: var(--kos-base-font-size);
|
|
2095
2095
|
}
|
|
2096
2096
|
:root {
|
|
2097
|
-
${
|
|
2098
|
-
${
|
|
2099
|
-
${
|
|
2100
|
-
${
|
|
2101
|
-
${
|
|
2097
|
+
${q(Tc)}
|
|
2098
|
+
${q(Fc)}
|
|
2099
|
+
${q(Rc)}
|
|
2100
|
+
${q(Oc)}
|
|
2101
|
+
${q(Nc)}
|
|
2102
2102
|
}
|
|
2103
2103
|
|
|
2104
2104
|
::-webkit-scrollbar {
|
|
@@ -2173,17 +2173,17 @@ const bl = (e) => {
|
|
|
2173
2173
|
|
|
2174
2174
|
@media (-webkit-max-device-pixel-ratio: 1.25) {
|
|
2175
2175
|
:root {
|
|
2176
|
-
${
|
|
2176
|
+
${q(or)}
|
|
2177
2177
|
}
|
|
2178
2178
|
}
|
|
2179
2179
|
@media (-webkit-min-device-pixel-ratio: 1.25) {
|
|
2180
2180
|
:root {
|
|
2181
|
-
${
|
|
2181
|
+
${q(or)}
|
|
2182
2182
|
}
|
|
2183
2183
|
}
|
|
2184
2184
|
@media (prefers-color-scheme: light) {
|
|
2185
2185
|
:root {
|
|
2186
|
-
${
|
|
2186
|
+
${q(Ec)}
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
2189
2189
|
:root {
|
|
@@ -2202,7 +2202,7 @@ const bl = (e) => {
|
|
|
2202
2202
|
}
|
|
2203
2203
|
@media (prefers-color-scheme: dark) {
|
|
2204
2204
|
:root {
|
|
2205
|
-
${
|
|
2205
|
+
${q(Mc)}
|
|
2206
2206
|
}
|
|
2207
2207
|
:root {
|
|
2208
2208
|
--ant-primary-color: var(--kos-primary-color);
|
|
@@ -2322,7 +2322,7 @@ const [We] = O(["text"]), si = [
|
|
|
2322
2322
|
"span",
|
|
2323
2323
|
{
|
|
2324
2324
|
ref: i,
|
|
2325
|
-
css:
|
|
2325
|
+
css: q`
|
|
2326
2326
|
${Wc}
|
|
2327
2327
|
font-size: ${kt(`font-size-${o}`)};
|
|
2328
2328
|
`,
|
|
@@ -2332,7 +2332,7 @@ const [We] = O(["text"]), si = [
|
|
|
2332
2332
|
children: e
|
|
2333
2333
|
}
|
|
2334
2334
|
)
|
|
2335
|
-
), Wc =
|
|
2335
|
+
), Wc = q`
|
|
2336
2336
|
font-weight: ${kt("font-weight")};
|
|
2337
2337
|
font-family: ${kt("font-family")};
|
|
2338
2338
|
line-height: ${kt("line-height")};
|
|
@@ -2372,7 +2372,7 @@ const [We] = O(["text"]), si = [
|
|
|
2372
2372
|
children: e,
|
|
2373
2373
|
publicPath: t
|
|
2374
2374
|
}) => {
|
|
2375
|
-
const o =
|
|
2375
|
+
const o = V(() => ({
|
|
2376
2376
|
basePath: t ?? "/ui/"
|
|
2377
2377
|
}), [t]);
|
|
2378
2378
|
return /* @__PURE__ */ c(li.Provider, { value: o, children: e });
|
|
@@ -2399,7 +2399,7 @@ const [We] = O(["text"]), si = [
|
|
|
2399
2399
|
}
|
|
2400
2400
|
);
|
|
2401
2401
|
}
|
|
2402
|
-
), N =
|
|
2402
|
+
), N = A(Vc);
|
|
2403
2403
|
N.displayName = "Icon";
|
|
2404
2404
|
const Hc = g.svg`
|
|
2405
2405
|
fill: currentColor;
|
|
@@ -2421,7 +2421,7 @@ const Hc = g.svg`
|
|
|
2421
2421
|
min-width: ${Qt(`size-${e}`)};
|
|
2422
2422
|
}`
|
|
2423
2423
|
).join("")}
|
|
2424
|
-
`, [ci] = O(["actionable-blurb"]), sx =
|
|
2424
|
+
`, [ci] = O(["actionable-blurb"]), sx = A(
|
|
2425
2425
|
({
|
|
2426
2426
|
text: e,
|
|
2427
2427
|
actions: t,
|
|
@@ -2431,7 +2431,7 @@ const Hc = g.svg`
|
|
|
2431
2431
|
iconSize: i,
|
|
2432
2432
|
className: a
|
|
2433
2433
|
}) => {
|
|
2434
|
-
const s =
|
|
2434
|
+
const s = V(() => {
|
|
2435
2435
|
if (!t)
|
|
2436
2436
|
return e;
|
|
2437
2437
|
let d = e;
|
|
@@ -2471,7 +2471,7 @@ const Hc = g.svg`
|
|
|
2471
2471
|
row-gap: ${ci("row-gap")};
|
|
2472
2472
|
`, Xe = () => {
|
|
2473
2473
|
}, Kc = (e) => (t, o) => e[t][o] ?? t, qc = (e, t) => Ca(Kc(t), e), Co = (e) => (e == null ? void 0 : e.animationName) || "none", Zc = (e, t) => {
|
|
2474
|
-
const [o, n] = W(), r =
|
|
2474
|
+
const [o, n] = W(), r = H(), i = H(e), a = H("none"), s = H(
|
|
2475
2475
|
t
|
|
2476
2476
|
);
|
|
2477
2477
|
Ie(() => {
|
|
@@ -2528,7 +2528,7 @@ const Hc = g.svg`
|
|
|
2528
2528
|
isPresent: p,
|
|
2529
2529
|
ref: h
|
|
2530
2530
|
};
|
|
2531
|
-
}, Xc =
|
|
2531
|
+
}, Xc = A(
|
|
2532
2532
|
({ present: e, children: t, onPresenceChange: o }) => {
|
|
2533
2533
|
const n = Zc(e, o);
|
|
2534
2534
|
return n.isPresent ? Ut(t, { ref: n.ref, present: e }) : null;
|
|
@@ -2583,7 +2583,7 @@ const ax = ({
|
|
|
2583
2583
|
${({ $back: e }) => e && `
|
|
2584
2584
|
transform: rotateX(180deg) translateZ(20px);
|
|
2585
2585
|
`}
|
|
2586
|
-
`, [
|
|
2586
|
+
`, [F, Ee] = O(["button", "icon"]), ed = ue(
|
|
2587
2587
|
({ variant: e, text: t, disabled: o, className: n, icon: r, ...i }, a) => /* @__PURE__ */ c(Q, { children: ({ cx: s }) => /* @__PURE__ */ $(
|
|
2588
2588
|
td,
|
|
2589
2589
|
{
|
|
@@ -2597,87 +2597,87 @@ const ax = ({
|
|
|
2597
2597
|
]
|
|
2598
2598
|
}
|
|
2599
2599
|
) })
|
|
2600
|
-
), at =
|
|
2600
|
+
), at = A(ed);
|
|
2601
2601
|
at.displayName = "StudioButton";
|
|
2602
2602
|
const td = g.button`
|
|
2603
|
-
font-weight: ${
|
|
2604
|
-
font-size: ${
|
|
2605
|
-
line-height: ${
|
|
2606
|
-
border-radius: ${
|
|
2607
|
-
border-width: ${
|
|
2608
|
-
cursor: ${
|
|
2609
|
-
padding: ${`${
|
|
2603
|
+
font-weight: ${F("font-weight")};
|
|
2604
|
+
font-size: ${F("font-size")};
|
|
2605
|
+
line-height: ${F("line-height")};
|
|
2606
|
+
border-radius: ${F("br")};
|
|
2607
|
+
border-width: ${F("border-width")};
|
|
2608
|
+
cursor: ${F("cursor")};
|
|
2609
|
+
padding: ${`${F("ypadding")} ${F("xpadding")}`};
|
|
2610
2610
|
border-style: solid;
|
|
2611
2611
|
transition: border 0.125s ease-in-out, background 0.125s ease-in-out,
|
|
2612
2612
|
color 0.125s ease-in-out;
|
|
2613
2613
|
|
|
2614
|
-
background-color: ${
|
|
2615
|
-
color: ${
|
|
2616
|
-
border-color: ${
|
|
2614
|
+
background-color: ${F("bg")};
|
|
2615
|
+
color: ${F("color")};
|
|
2616
|
+
border-color: ${F("border")};
|
|
2617
2617
|
display: flex;
|
|
2618
2618
|
align-items: center;
|
|
2619
2619
|
justify-content: flex-start;
|
|
2620
2620
|
white-space: nowrap;
|
|
2621
2621
|
// This token will let us flip the icon and text if we want to
|
|
2622
|
-
flex-direction: ${
|
|
2622
|
+
flex-direction: ${F("flex-direction")};
|
|
2623
2623
|
|
|
2624
|
-
${`${Ee("fill-white", !0)}: ${
|
|
2624
|
+
${`${Ee("fill-white", !0)}: ${F("color")}`};
|
|
2625
2625
|
|
|
2626
2626
|
&.primary-small,
|
|
2627
2627
|
&.secondary-small,
|
|
2628
2628
|
&.text-small {
|
|
2629
|
-
padding-top: ${
|
|
2630
|
-
padding-bottom: ${
|
|
2629
|
+
padding-top: ${F("ypadding-small")};
|
|
2630
|
+
padding-bottom: ${F("ypadding-small")};
|
|
2631
2631
|
}
|
|
2632
2632
|
|
|
2633
2633
|
&:hover {
|
|
2634
|
-
border-color: ${
|
|
2635
|
-
color: ${
|
|
2636
|
-
background-color: ${
|
|
2637
|
-
${`${Ee("fill-white", !0)}: ${
|
|
2634
|
+
border-color: ${F("border-hover")};
|
|
2635
|
+
color: ${F("color-hover")};
|
|
2636
|
+
background-color: ${F("bg-hover")};
|
|
2637
|
+
${`${Ee("fill-white", !0)}: ${F("color-hover")}`};
|
|
2638
2638
|
}
|
|
2639
2639
|
|
|
2640
2640
|
&:active {
|
|
2641
|
-
border-color: ${
|
|
2642
|
-
color: ${
|
|
2643
|
-
background-color: ${
|
|
2644
|
-
${`${Ee("fill-white", !0)}: ${
|
|
2641
|
+
border-color: ${F("border-active")};
|
|
2642
|
+
color: ${F("color-active")};
|
|
2643
|
+
background-color: ${F("bg-active")};
|
|
2644
|
+
${`${Ee("fill-white", !0)}: ${F("color-active")}`};
|
|
2645
2645
|
}
|
|
2646
2646
|
|
|
2647
2647
|
&:disabled {
|
|
2648
2648
|
cursor: not-allowed;
|
|
2649
|
-
border-color: ${
|
|
2650
|
-
color: ${
|
|
2651
|
-
background-color: ${
|
|
2652
|
-
${`${Ee("fill-white", !0)}: ${
|
|
2649
|
+
border-color: ${F("border-disabled")};
|
|
2650
|
+
color: ${F("color-disabled")};
|
|
2651
|
+
background-color: ${F("bg-disabled")};
|
|
2652
|
+
${`${Ee("fill-white", !0)}: ${F("color-disabled")}`};
|
|
2653
2653
|
}
|
|
2654
2654
|
|
|
2655
2655
|
// Re-assign bg and color vars for secondary buttons.
|
|
2656
2656
|
&.secondary,
|
|
2657
2657
|
&.secondary-small {
|
|
2658
|
-
background-color: ${
|
|
2659
|
-
color: ${
|
|
2660
|
-
border-color: ${
|
|
2661
|
-
${`${Ee("fill-white", !0)}: ${
|
|
2658
|
+
background-color: ${F("bg-secondary")};
|
|
2659
|
+
color: ${F("color-secondary")};
|
|
2660
|
+
border-color: ${F("border-secondary")};
|
|
2661
|
+
${`${Ee("fill-white", !0)}: ${F("color-secondary")}`};
|
|
2662
2662
|
&:hover {
|
|
2663
|
-
border-color: ${
|
|
2664
|
-
color: ${
|
|
2665
|
-
background-color: ${
|
|
2666
|
-
${`${Ee("fill-white", !0)}: ${
|
|
2663
|
+
border-color: ${F("border-hover-secondary")};
|
|
2664
|
+
color: ${F("color-hover-secondary")};
|
|
2665
|
+
background-color: ${F("bg-hover-secondary")};
|
|
2666
|
+
${`${Ee("fill-white", !0)}: ${F("color-hover-secondary")}`};
|
|
2667
2667
|
}
|
|
2668
2668
|
|
|
2669
2669
|
&:active {
|
|
2670
|
-
border-color: ${
|
|
2671
|
-
color: ${
|
|
2672
|
-
background-color: ${
|
|
2673
|
-
${`${Ee("fill-white", !0)}: ${
|
|
2670
|
+
border-color: ${F("border-active-secondary")};
|
|
2671
|
+
color: ${F("color-active-secondary")};
|
|
2672
|
+
background-color: ${F("bg-active-secondary")};
|
|
2673
|
+
${`${Ee("fill-white", !0)}: ${F("color-active-secondary")}`};
|
|
2674
2674
|
}
|
|
2675
2675
|
|
|
2676
2676
|
&:disabled {
|
|
2677
|
-
border-color: ${
|
|
2678
|
-
color: ${
|
|
2679
|
-
background-color: ${
|
|
2680
|
-
${`${Ee("fill-white", !0)}: ${
|
|
2677
|
+
border-color: ${F("border-disabled-secondary")};
|
|
2678
|
+
color: ${F("color-disabled-secondary")};
|
|
2679
|
+
background-color: ${F("bg-disabled-secondary")};
|
|
2680
|
+
${`${Ee("fill-white", !0)}: ${F(
|
|
2681
2681
|
"color-disabled-secondary"
|
|
2682
2682
|
)}`};
|
|
2683
2683
|
}
|
|
@@ -2686,39 +2686,39 @@ const td = g.button`
|
|
|
2686
2686
|
// Re-assign bg, color, and border vars for borderless buttons.
|
|
2687
2687
|
&.borderless,
|
|
2688
2688
|
&.borderless-small {
|
|
2689
|
-
background-color: ${
|
|
2690
|
-
color: ${
|
|
2691
|
-
border-color: ${
|
|
2692
|
-
${`${Ee("fill-white", !0)}: ${
|
|
2689
|
+
background-color: ${F("bg-borderless")};
|
|
2690
|
+
color: ${F("color-borderless")};
|
|
2691
|
+
border-color: ${F("border-borderless")};
|
|
2692
|
+
${`${Ee("fill-white", !0)}: ${F("color-borderless")}`};
|
|
2693
2693
|
&:hover {
|
|
2694
|
-
border-color: ${
|
|
2695
|
-
color: ${
|
|
2696
|
-
background-color: ${
|
|
2697
|
-
${`${Ee("fill-white", !0)}: ${
|
|
2694
|
+
border-color: ${F("border-hover-borderless")};
|
|
2695
|
+
color: ${F("color-hover-borderless")};
|
|
2696
|
+
background-color: ${F("bg-hover-borderless")};
|
|
2697
|
+
${`${Ee("fill-white", !0)}: ${F("color-hover-borderless")}`};
|
|
2698
2698
|
}
|
|
2699
2699
|
|
|
2700
2700
|
&:active {
|
|
2701
|
-
border-color: ${
|
|
2702
|
-
color: ${
|
|
2703
|
-
background-color: ${
|
|
2704
|
-
${`${Ee("fill-white", !0)}: ${
|
|
2701
|
+
border-color: ${F("border-active-borderless")};
|
|
2702
|
+
color: ${F("color-active-borderless")};
|
|
2703
|
+
background-color: ${F("bg-active-borderless")};
|
|
2704
|
+
${`${Ee("fill-white", !0)}: ${F(
|
|
2705
2705
|
"color-active-borderless"
|
|
2706
2706
|
)}`};
|
|
2707
2707
|
}
|
|
2708
2708
|
|
|
2709
2709
|
&:disabled {
|
|
2710
2710
|
cursor: not-allowed;
|
|
2711
|
-
border-color: ${
|
|
2712
|
-
color: ${
|
|
2713
|
-
background-color: ${
|
|
2714
|
-
${`${Ee("fill-white", !0)}: ${
|
|
2711
|
+
border-color: ${F("border-disabled-borderless")};
|
|
2712
|
+
color: ${F("color-disabled-borderless")};
|
|
2713
|
+
background-color: ${F("bg-disabled-borderless")};
|
|
2714
|
+
${`${Ee("fill-white", !0)}: ${F(
|
|
2715
2715
|
"color-disabled-borderless"
|
|
2716
2716
|
)}`};
|
|
2717
2717
|
}
|
|
2718
2718
|
}
|
|
2719
2719
|
`, od = g.span`
|
|
2720
2720
|
display: flex;
|
|
2721
|
-
margin: ${
|
|
2721
|
+
margin: ${F("icon-margin")};
|
|
2722
2722
|
`, di = ve(void 0);
|
|
2723
2723
|
function nd() {
|
|
2724
2724
|
const e = be(di);
|
|
@@ -2735,7 +2735,7 @@ const [Ft] = O(["button-group"]), lx = ({
|
|
|
2735
2735
|
children: n,
|
|
2736
2736
|
className: r
|
|
2737
2737
|
}) => {
|
|
2738
|
-
const [i, a] = W(t), s = e ?? i, d = o ?? a, u =
|
|
2738
|
+
const [i, a] = W(t), s = e ?? i, d = o ?? a, u = V(() => ({ value: s, setValue: d }), [s, d]);
|
|
2739
2739
|
return /* @__PURE__ */ c(di.Provider, { value: u, children: /* @__PURE__ */ c(rd, { className: r, children: n }) });
|
|
2740
2740
|
}, rd = g.div`
|
|
2741
2741
|
display: inline-flex;
|
|
@@ -2745,7 +2745,7 @@ const [Ft] = O(["button-group"]), lx = ({
|
|
|
2745
2745
|
border-radius: ${Ft("border-radius")};
|
|
2746
2746
|
border: ${Ft("border-width")} solid ${Ft("border-color")};
|
|
2747
2747
|
padding: ${Ft("padding")};
|
|
2748
|
-
`, [xt, id] = O(["button-group", "icon"]), sd =
|
|
2748
|
+
`, [xt, id] = O(["button-group", "icon"]), sd = A(
|
|
2749
2749
|
({ value: e, iconId: t, label: o, tooltip: n, disabled: r }) => {
|
|
2750
2750
|
const { value: i, setValue: a } = nd(), s = i === e, d = I(() => {
|
|
2751
2751
|
r || a(e);
|
|
@@ -2890,7 +2890,7 @@ const ad = g.button`
|
|
|
2890
2890
|
onOpenChange: o
|
|
2891
2891
|
}) => {
|
|
2892
2892
|
const [n, r] = W(e), i = t ?? n, a = o ?? r;
|
|
2893
|
-
return
|
|
2893
|
+
return V(() => ({
|
|
2894
2894
|
open: i,
|
|
2895
2895
|
setOpen: a
|
|
2896
2896
|
}), [i, a]);
|
|
@@ -2995,74 +2995,77 @@ const bd = /* @__PURE__ */ pi(md), yd = 250, vd = 500, cx = ({
|
|
|
2995
2995
|
onMouseOut: a,
|
|
2996
2996
|
onMouseOver: s,
|
|
2997
2997
|
style: d,
|
|
2998
|
-
|
|
2998
|
+
className: u,
|
|
2999
|
+
textClassName: h,
|
|
3000
|
+
...p
|
|
2999
3001
|
}) => {
|
|
3000
|
-
const
|
|
3002
|
+
const f = H(), m = H(), b = H(null), y = H(null), [x, v] = W(!1), [C, w] = W(!1), S = I(
|
|
3001
3003
|
(z) => {
|
|
3002
|
-
let
|
|
3003
|
-
|
|
3004
|
-
const
|
|
3005
|
-
|
|
3004
|
+
let R = n;
|
|
3005
|
+
R || (R = typeof e == "string" ? String(e) : ""), v(!0), bd(R);
|
|
3006
|
+
const G = () => {
|
|
3007
|
+
v(!1);
|
|
3006
3008
|
};
|
|
3007
|
-
clearTimeout(
|
|
3009
|
+
clearTimeout(f.current), f.current = setTimeout(G, vd), r == null || r(z);
|
|
3008
3010
|
},
|
|
3009
3011
|
[e, n, r]
|
|
3010
3012
|
), k = I(
|
|
3011
3013
|
(z) => {
|
|
3012
|
-
if (!
|
|
3014
|
+
if (!b.current || !y.current) {
|
|
3013
3015
|
i == null || i(z);
|
|
3014
3016
|
return;
|
|
3015
3017
|
}
|
|
3016
|
-
const
|
|
3017
|
-
|
|
3018
|
+
const R = y.current.getBoundingClientRect(), G = z.clientX - R.left + 9, j = z.clientY - R.top + 9;
|
|
3019
|
+
b.current.style.transform = `translate(${G}px, ${j}px)`, i == null || i(z);
|
|
3018
3020
|
},
|
|
3019
3021
|
[i]
|
|
3020
|
-
),
|
|
3022
|
+
), D = I(
|
|
3021
3023
|
(z) => {
|
|
3022
|
-
|
|
3024
|
+
v(!1), w(!1), clearTimeout(m.current), a == null || a(z);
|
|
3023
3025
|
},
|
|
3024
3026
|
[a]
|
|
3025
|
-
),
|
|
3027
|
+
), _ = I(
|
|
3026
3028
|
(z) => {
|
|
3027
|
-
const
|
|
3028
|
-
|
|
3029
|
+
const R = () => {
|
|
3030
|
+
w(!0);
|
|
3029
3031
|
};
|
|
3030
|
-
return clearTimeout(
|
|
3031
|
-
clearTimeout(
|
|
3032
|
+
return clearTimeout(m.current), m.current = setTimeout(R, yd), s == null || s(z), () => {
|
|
3033
|
+
clearTimeout(m.current);
|
|
3032
3034
|
};
|
|
3033
3035
|
},
|
|
3034
3036
|
[s]
|
|
3035
3037
|
);
|
|
3036
|
-
return /* @__PURE__ */ $("div", { style: { position: "relative" }, children: [
|
|
3038
|
+
return /* @__PURE__ */ $("div", { className: u, style: { position: "relative" }, children: [
|
|
3037
3039
|
/* @__PURE__ */ c(
|
|
3038
3040
|
xd,
|
|
3039
3041
|
{
|
|
3040
|
-
ref:
|
|
3042
|
+
ref: y,
|
|
3041
3043
|
children: e,
|
|
3042
|
-
onClick: o ?
|
|
3044
|
+
onClick: o ? S : r,
|
|
3043
3045
|
onMouseMove: o ? k : i,
|
|
3044
|
-
onMouseOut: o ?
|
|
3045
|
-
onMouseOver: o ?
|
|
3046
|
-
|
|
3046
|
+
onMouseOut: o ? D : a,
|
|
3047
|
+
onMouseOver: o ? _ : s,
|
|
3048
|
+
className: h,
|
|
3049
|
+
style: o ? x ? {
|
|
3047
3050
|
...d,
|
|
3048
3051
|
opacity: 0.5,
|
|
3049
3052
|
cursor: "default",
|
|
3050
3053
|
userSelect: "none"
|
|
3051
3054
|
} : { ...d, cursor: "default", userSelect: "none" } : { ...d, cursor: "default", userSelect: "none" },
|
|
3052
|
-
...
|
|
3055
|
+
...p
|
|
3053
3056
|
}
|
|
3054
3057
|
),
|
|
3055
3058
|
o && /* @__PURE__ */ c(
|
|
3056
3059
|
N,
|
|
3057
3060
|
{
|
|
3058
|
-
ref:
|
|
3061
|
+
ref: b,
|
|
3059
3062
|
iconId: "CopyFilled",
|
|
3060
3063
|
style: {
|
|
3061
3064
|
position: "absolute",
|
|
3062
3065
|
transition: "opacity 150ms ease-in-out",
|
|
3063
3066
|
top: "0px",
|
|
3064
3067
|
left: "0px",
|
|
3065
|
-
opacity:
|
|
3068
|
+
opacity: C && !x ? "1" : "0"
|
|
3066
3069
|
}
|
|
3067
3070
|
}
|
|
3068
3071
|
)
|
|
@@ -3111,14 +3114,14 @@ function kd({
|
|
|
3111
3114
|
u,
|
|
3112
3115
|
n ? { outsidePressEvent: "mousedown", ...n } : { outsidePressEvent: "mousedown" }
|
|
3113
3116
|
), f = mo([h, p]);
|
|
3114
|
-
return
|
|
3117
|
+
return V(() => ({
|
|
3115
3118
|
open: a,
|
|
3116
3119
|
setOpen: s,
|
|
3117
3120
|
...f,
|
|
3118
3121
|
...d
|
|
3119
3122
|
}), [a, s, f, d]);
|
|
3120
3123
|
}
|
|
3121
|
-
const $d =
|
|
3124
|
+
const $d = q`
|
|
3122
3125
|
background: rgba(0, 0, 0, 0.8);
|
|
3123
3126
|
display: grid;
|
|
3124
3127
|
place-items: center;
|
|
@@ -3128,7 +3131,7 @@ const $d = K`
|
|
|
3128
3131
|
if (e == null)
|
|
3129
3132
|
throw new Error("Dialog components must be wrapped in <Dialog />");
|
|
3130
3133
|
return e;
|
|
3131
|
-
}, fi =
|
|
3134
|
+
}, fi = A(({ children: e, ...t }) => {
|
|
3132
3135
|
const o = kd(t);
|
|
3133
3136
|
return /* @__PURE__ */ c(gi.Provider, { value: o, children: e });
|
|
3134
3137
|
}), mi = ue(
|
|
@@ -3188,7 +3191,7 @@ const $d = K`
|
|
|
3188
3191
|
}
|
|
3189
3192
|
), Mn = 300;
|
|
3190
3193
|
function yi() {
|
|
3191
|
-
const e =
|
|
3194
|
+
const e = H(null), [t, o] = W();
|
|
3192
3195
|
return U(() => {
|
|
3193
3196
|
const n = new ResizeObserver(([r]) => {
|
|
3194
3197
|
r && o(r.contentRect.width);
|
|
@@ -3224,7 +3227,7 @@ const Cd = g.div`
|
|
|
3224
3227
|
size: r,
|
|
3225
3228
|
...i
|
|
3226
3229
|
}) => {
|
|
3227
|
-
const a =
|
|
3230
|
+
const a = H(0), s = Ra(({ down: d, movement: [u], first: h }) => {
|
|
3228
3231
|
if (!d)
|
|
3229
3232
|
return;
|
|
3230
3233
|
h && (a.current = r);
|
|
@@ -3241,7 +3244,7 @@ const Cd = g.div`
|
|
|
3241
3244
|
size: i = 440
|
|
3242
3245
|
}) => {
|
|
3243
3246
|
const [a, s] = W(e), [d, u] = W(i), h = r ?? a, p = n ?? s;
|
|
3244
|
-
return
|
|
3247
|
+
return V(() => ({
|
|
3245
3248
|
mode: o,
|
|
3246
3249
|
open: h,
|
|
3247
3250
|
setOpen: p,
|
|
@@ -3261,15 +3264,15 @@ const Cd = g.div`
|
|
|
3261
3264
|
width: 100%;
|
|
3262
3265
|
z-index: 1;
|
|
3263
3266
|
pointer-events: none;
|
|
3264
|
-
`, vi =
|
|
3267
|
+
`, vi = q`
|
|
3265
3268
|
pointer-events: none;
|
|
3266
3269
|
display: grid;
|
|
3267
3270
|
overflow: hidden !important;
|
|
3268
3271
|
z-index: 1;
|
|
3269
|
-
`, dx =
|
|
3272
|
+
`, dx = q`
|
|
3270
3273
|
place-items: start;
|
|
3271
3274
|
${vi};
|
|
3272
|
-
`, ux =
|
|
3275
|
+
`, ux = q`
|
|
3273
3276
|
place-items: end;
|
|
3274
3277
|
${vi};
|
|
3275
3278
|
`, xi = g.div`
|
|
@@ -3478,7 +3481,7 @@ const Cd = g.div`
|
|
|
3478
3481
|
`, Ad = {
|
|
3479
3482
|
escapeKey: !0,
|
|
3480
3483
|
outsidePress: !1
|
|
3481
|
-
}, xx =
|
|
3484
|
+
}, xx = A(({ children: e, ...t }) => {
|
|
3482
3485
|
const o = Sd(t);
|
|
3483
3486
|
return t.mode === "dialog" ? /* @__PURE__ */ c(xn.Provider, { value: o, children: /* @__PURE__ */ c(
|
|
3484
3487
|
fi,
|
|
@@ -3490,7 +3493,7 @@ const Cd = g.div`
|
|
|
3490
3493
|
children: e
|
|
3491
3494
|
}
|
|
3492
3495
|
) }) : /* @__PURE__ */ c(xn.Provider, { value: o, children: e });
|
|
3493
|
-
}), wx =
|
|
3496
|
+
}), wx = A(({ children: e }) => {
|
|
3494
3497
|
const { mode: t, open: o, setOpen: n } = Nt(), r = I(() => {
|
|
3495
3498
|
n(!o);
|
|
3496
3499
|
}, [o, n]);
|
|
@@ -3505,7 +3508,7 @@ const Cd = g.div`
|
|
|
3505
3508
|
"data-state": o ? "open" : "closed"
|
|
3506
3509
|
});
|
|
3507
3510
|
throw new Error("Passed DialogTrigger an invalid element");
|
|
3508
|
-
}), kx =
|
|
3511
|
+
}), kx = A(
|
|
3509
3512
|
({ children: e, OverlayStyles: t, ...o }) => {
|
|
3510
3513
|
const { mode: n, open: r } = Nt();
|
|
3511
3514
|
if (n === "dialog")
|
|
@@ -3655,7 +3658,7 @@ const Rt = /* @__PURE__ */ pi(Bd), [Ye] = O(["icon-button"]), fe = ue(
|
|
|
3655
3658
|
&.isLocked {
|
|
3656
3659
|
cursor: url("/ui/custom-cursors/locked-cursor.png"), not-allowed !important;
|
|
3657
3660
|
}
|
|
3658
|
-
`, [eo] = O(["drawer"]), Cx =
|
|
3661
|
+
`, [eo] = O(["drawer"]), Cx = A(
|
|
3659
3662
|
({
|
|
3660
3663
|
children: e,
|
|
3661
3664
|
className: t,
|
|
@@ -3725,36 +3728,36 @@ const Rt = /* @__PURE__ */ pi(Bd), [Ye] = O(["icon-button"]), fe = ue(
|
|
|
3725
3728
|
onClear: x,
|
|
3726
3729
|
...v
|
|
3727
3730
|
}, C) => {
|
|
3728
|
-
const
|
|
3729
|
-
_(S ? "password" : "text"),
|
|
3730
|
-
}, [S]),
|
|
3731
|
-
|
|
3731
|
+
const w = t === "password", [S, k] = W(!1), [D, _] = W(t), z = I(() => {
|
|
3732
|
+
_(S ? "password" : "text"), k(!S);
|
|
3733
|
+
}, [S]), R = (G) => {
|
|
3734
|
+
G.key === "Enter" && (b == null || b()), y == null || y(G);
|
|
3732
3735
|
};
|
|
3733
3736
|
if (U(() => {
|
|
3734
3737
|
_(t);
|
|
3735
|
-
}, [t]), x &&
|
|
3738
|
+
}, [t]), x && w)
|
|
3736
3739
|
throw new Error("Password inputs cannot have an onClear handler.");
|
|
3737
|
-
if (h &&
|
|
3740
|
+
if (h && w)
|
|
3738
3741
|
throw new Error("Password inputs cannot have a suffix icon.");
|
|
3739
3742
|
if (x && h)
|
|
3740
3743
|
throw new Error(
|
|
3741
3744
|
"Inputs with an onClear handler cannot have a suffix icon."
|
|
3742
3745
|
);
|
|
3743
|
-
return /* @__PURE__ */ c(Q, { children: ({ cx:
|
|
3746
|
+
return /* @__PURE__ */ c(Q, { children: ({ cx: G }) => /* @__PURE__ */ $(jd, { children: [
|
|
3744
3747
|
/* @__PURE__ */ c(
|
|
3745
3748
|
Vd,
|
|
3746
3749
|
{
|
|
3747
|
-
type:
|
|
3748
|
-
className:
|
|
3750
|
+
type: D,
|
|
3751
|
+
className: G(e, {
|
|
3749
3752
|
isSmall: i,
|
|
3750
3753
|
hasLeftIcon: !!o,
|
|
3751
|
-
hasRightIcon: !!
|
|
3754
|
+
hasRightIcon: !!w || !!p || !!h
|
|
3752
3755
|
}),
|
|
3753
3756
|
ref: C,
|
|
3754
|
-
autoCapitalize:
|
|
3755
|
-
autoComplete:
|
|
3756
|
-
autoCorrect:
|
|
3757
|
-
onKeyDown:
|
|
3757
|
+
autoCapitalize: w ? "off" : a,
|
|
3758
|
+
autoComplete: w ? "current-password" : s,
|
|
3759
|
+
autoCorrect: w ? "off" : d,
|
|
3760
|
+
onKeyDown: R,
|
|
3758
3761
|
...v
|
|
3759
3762
|
}
|
|
3760
3763
|
),
|
|
@@ -3766,7 +3769,7 @@ const Rt = /* @__PURE__ */ pi(Bd), [Ye] = O(["icon-button"]), fe = ue(
|
|
|
3766
3769
|
size: r || "sm"
|
|
3767
3770
|
}
|
|
3768
3771
|
),
|
|
3769
|
-
(
|
|
3772
|
+
(w || !!p || !!h || x && !!v.value) && /* @__PURE__ */ c(Ud, { children: h || (p ? /* @__PURE__ */ c(
|
|
3770
3773
|
N,
|
|
3771
3774
|
{
|
|
3772
3775
|
iconId: p,
|
|
@@ -3785,7 +3788,7 @@ const Rt = /* @__PURE__ */ pi(Bd), [Ye] = O(["icon-button"]), fe = ue(
|
|
|
3785
3788
|
) : /* @__PURE__ */ c(
|
|
3786
3789
|
fe,
|
|
3787
3790
|
{
|
|
3788
|
-
onClick:
|
|
3791
|
+
onClick: z,
|
|
3789
3792
|
iconId: S ? "Eye" : "EyeInvisible",
|
|
3790
3793
|
size: "sm",
|
|
3791
3794
|
color: n ?? "black"
|
|
@@ -3892,7 +3895,7 @@ const Gd = ue(
|
|
|
3892
3895
|
value: o
|
|
3893
3896
|
}
|
|
3894
3897
|
)
|
|
3895
|
-
), [Yd] = O(["label"]), Di =
|
|
3898
|
+
), [Yd] = O(["label"]), Di = q`
|
|
3896
3899
|
align-items: center;
|
|
3897
3900
|
display: flex;
|
|
3898
3901
|
gap: ${Yd("gap")};
|
|
@@ -3905,7 +3908,7 @@ const Gd = ue(
|
|
|
3905
3908
|
t,
|
|
3906
3909
|
e,
|
|
3907
3910
|
o
|
|
3908
|
-
] }), [qd] = O(["label-with-action"]), Zd =
|
|
3911
|
+
] }), [qd] = O(["label-with-action"]), Zd = q([Di, { gap: qd("gap") }]), Ix = ({
|
|
3909
3912
|
action: e,
|
|
3910
3913
|
variant: t = "h2",
|
|
3911
3914
|
...o
|
|
@@ -3917,7 +3920,7 @@ const Gd = ue(
|
|
|
3917
3920
|
variant: t,
|
|
3918
3921
|
...o
|
|
3919
3922
|
}
|
|
3920
|
-
), [Xd] = O(["label-with-content-link"]), Jd =
|
|
3923
|
+
), [Xd] = O(["label-with-content-link"]), Jd = q`
|
|
3921
3924
|
color: ${Xd("color")};
|
|
3922
3925
|
`, _x = (e) => /* @__PURE__ */ c(Ti, { css: Jd, ...e }), zx = new RegExp(/^[a-zA-Z0-9 _.-]*$/), Qd = new RegExp(
|
|
3923
3926
|
/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
|
|
@@ -3978,7 +3981,7 @@ const Nx = (e, t) => ({
|
|
|
3978
3981
|
};
|
|
3979
3982
|
let nn;
|
|
3980
3983
|
const ru = () => nn || (nn = nu()), iu = (e, t) => {
|
|
3981
|
-
const o = ru(), n =
|
|
3984
|
+
const o = ru(), n = H(t);
|
|
3982
3985
|
return Ie(() => {
|
|
3983
3986
|
n.current = t;
|
|
3984
3987
|
}, [t]), Ie(() => {
|
|
@@ -3994,7 +3997,7 @@ const ru = () => nn || (nn = nu()), iu = (e, t) => {
|
|
|
3994
3997
|
};
|
|
3995
3998
|
}, [e, o]), o.observer;
|
|
3996
3999
|
}, On = (e) => {
|
|
3997
|
-
const t =
|
|
4000
|
+
const t = H(null), o = H(null), n = I(() => {
|
|
3998
4001
|
if (!t.current)
|
|
3999
4002
|
return;
|
|
4000
4003
|
const a = o.current, s = t.current;
|
|
@@ -4003,8 +4006,8 @@ const ru = () => nn || (nn = nu()), iu = (e, t) => {
|
|
|
4003
4006
|
s.textContent !== d && (s.textContent = d);
|
|
4004
4007
|
const h = s.textContent, p = s.offsetWidth, f = a.offsetWidth;
|
|
4005
4008
|
if (p > f && h) {
|
|
4006
|
-
const m = h.length, b = p / m, x = Math.ceil((p - f) / b) / 2 + 1.5, v = Math.floor(m / 2 - x), C = Math.ceil(m / 2 + x),
|
|
4007
|
-
s.textContent = `${
|
|
4009
|
+
const m = h.length, b = p / m, x = Math.ceil((p - f) / b) / 2 + 1.5, v = Math.floor(m / 2 - x), C = Math.ceil(m / 2 + x), w = h.substr(0, v), S = h.substr(C);
|
|
4010
|
+
s.textContent = `${w.trim()}...${S.trim()}`;
|
|
4008
4011
|
}
|
|
4009
4012
|
}
|
|
4010
4013
|
}, []), r = I(
|
|
@@ -4065,16 +4068,16 @@ const Fx = ({
|
|
|
4065
4068
|
orientation: a = "horizontal"
|
|
4066
4069
|
// Default to horizontal orientation
|
|
4067
4070
|
}) => {
|
|
4068
|
-
const s =
|
|
4071
|
+
const s = H(null), [d, u] = W(null);
|
|
4069
4072
|
U(() => {
|
|
4070
4073
|
if (s.current && d === null) {
|
|
4071
4074
|
const y = s.current.getBoundingClientRect(), x = a === "horizontal" ? y.width : y.height, v = e / 100 * x, C = Math.max(
|
|
4072
4075
|
t,
|
|
4073
4076
|
v
|
|
4074
|
-
),
|
|
4077
|
+
), w = C / x * 100;
|
|
4075
4078
|
u(C);
|
|
4076
|
-
const S =
|
|
4077
|
-
a === "horizontal" ? s.current.style.gridTemplateColumns = `${S}% 2px ${
|
|
4079
|
+
const S = w, k = 100 - w;
|
|
4080
|
+
a === "horizontal" ? s.current.style.gridTemplateColumns = `${S}% 2px ${k}%` : s.current.style.gridTemplateRows = `${S}% 2px ${k}%`;
|
|
4078
4081
|
}
|
|
4079
4082
|
}, [e, t, d, a]);
|
|
4080
4083
|
const h = I(() => {
|
|
@@ -4084,17 +4087,17 @@ const Fx = ({
|
|
|
4084
4087
|
let v = Math.round(d / x * 100), C = 100 - v;
|
|
4085
4088
|
if (C < n) {
|
|
4086
4089
|
C = n, v = 100 - C;
|
|
4087
|
-
const
|
|
4090
|
+
const w = Math.round(
|
|
4088
4091
|
v / 100 * x
|
|
4089
4092
|
);
|
|
4090
|
-
u(
|
|
4093
|
+
u(w);
|
|
4091
4094
|
}
|
|
4092
4095
|
if (v < o) {
|
|
4093
4096
|
v = o, C = 100 - v;
|
|
4094
|
-
const
|
|
4097
|
+
const w = Math.round(
|
|
4095
4098
|
v / 100 * x
|
|
4096
4099
|
);
|
|
4097
|
-
u(
|
|
4100
|
+
u(w);
|
|
4098
4101
|
}
|
|
4099
4102
|
a === "horizontal" ? s.current.style.gridTemplateColumns = `${d}px 2px auto` : s.current.style.gridTemplateRows = `${d}px 2px auto`;
|
|
4100
4103
|
}, [d, o, n, a]), p = I(uu(h, 50), [
|
|
@@ -4106,8 +4109,8 @@ const Fx = ({
|
|
|
4106
4109
|
}, m = (y) => {
|
|
4107
4110
|
if (!s.current)
|
|
4108
4111
|
return;
|
|
4109
|
-
const x = s.current.getBoundingClientRect(), v = a === "horizontal" ? x.width : x.height, C = a === "horizontal" ? y.clientX - x.left : y.clientY - x.top,
|
|
4110
|
-
S >= o &&
|
|
4112
|
+
const x = s.current.getBoundingClientRect(), v = a === "horizontal" ? x.width : x.height, C = a === "horizontal" ? y.clientX - x.left : y.clientY - x.top, w = Math.max(t, C), S = Math.round(w / v * 100), k = 100 - S;
|
|
4113
|
+
S >= o && k >= n && (u(C), a === "horizontal" ? s.current.style.gridTemplateColumns = `${S}% 2px ${k}%` : s.current.style.gridTemplateRows = `${S}% 2px ${k}%`);
|
|
4111
4114
|
}, b = () => {
|
|
4112
4115
|
document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", b);
|
|
4113
4116
|
};
|
|
@@ -4281,7 +4284,7 @@ const gu = (e) => e.type.startsWith("mouse"), fu = (e) => e.type.startsWith("poi
|
|
|
4281
4284
|
direction: t,
|
|
4282
4285
|
onResizeEnd: o
|
|
4283
4286
|
}) => {
|
|
4284
|
-
const n = _e(), r =
|
|
4287
|
+
const n = _e(), r = H(null), [i, a] = W(null), s = H({
|
|
4285
4288
|
dragState: i,
|
|
4286
4289
|
id: n,
|
|
4287
4290
|
initialResizePanelSize: null,
|
|
@@ -4317,8 +4320,8 @@ const gu = (e) => e.type.startsWith("mouse"), fu = (e) => e.type.startsWith("poi
|
|
|
4317
4320
|
r.current
|
|
4318
4321
|
);
|
|
4319
4322
|
if (C) {
|
|
4320
|
-
const { element:
|
|
4321
|
-
s.current.initialResizePanelSize = y === "vertical" ?
|
|
4323
|
+
const { element: w, panelPosition: S } = C, k = w.getBoundingClientRect();
|
|
4324
|
+
s.current.initialResizePanelSize = y === "vertical" ? k.height : k.width, s.current.lastResizedPanelId = w.dataset.resizablePanelId ?? null, s.current.panelPosition = S;
|
|
4322
4325
|
}
|
|
4323
4326
|
},
|
|
4324
4327
|
[]
|
|
@@ -4345,11 +4348,11 @@ const gu = (e) => e.type.startsWith("mouse"), fu = (e) => e.type.startsWith("poi
|
|
|
4345
4348
|
(v) => v.dataset.resizablePanelId === m
|
|
4346
4349
|
);
|
|
4347
4350
|
if (x) {
|
|
4348
|
-
const v = x.parentElement, C = b === "horizontal" ? v == null ? void 0 : v.getBoundingClientRect().width : v == null ? void 0 : v.getBoundingClientRect().height,
|
|
4351
|
+
const v = x.parentElement, C = b === "horizontal" ? v == null ? void 0 : v.getBoundingClientRect().width : v == null ? void 0 : v.getBoundingClientRect().height, w = x.dataset.collapsed === "true", S = lo(
|
|
4349
4352
|
x,
|
|
4350
4353
|
"resizablePanelMinSize",
|
|
4351
4354
|
C
|
|
4352
|
-
),
|
|
4355
|
+
), k = lo(
|
|
4353
4356
|
x,
|
|
4354
4357
|
"resizablePanelCollapsedSize",
|
|
4355
4358
|
C
|
|
@@ -4357,8 +4360,8 @@ const gu = (e) => e.type.startsWith("mouse"), fu = (e) => e.type.startsWith("poi
|
|
|
4357
4360
|
sn(
|
|
4358
4361
|
x,
|
|
4359
4362
|
b,
|
|
4360
|
-
|
|
4361
|
-
!
|
|
4363
|
+
w ? S : k,
|
|
4364
|
+
!w
|
|
4362
4365
|
);
|
|
4363
4366
|
}
|
|
4364
4367
|
}, []);
|
|
@@ -4382,28 +4385,28 @@ const gu = (e) => e.type.startsWith("mouse"), fu = (e) => e.type.startsWith("poi
|
|
|
4382
4385
|
if (!y)
|
|
4383
4386
|
return () => null;
|
|
4384
4387
|
const { direction: x, dragState: v, panelPosition: C } = s.current;
|
|
4385
|
-
let
|
|
4388
|
+
let w = bu(
|
|
4386
4389
|
b,
|
|
4387
4390
|
m,
|
|
4388
4391
|
x,
|
|
4389
4392
|
v,
|
|
4390
4393
|
y
|
|
4391
4394
|
);
|
|
4392
|
-
if (C === "right" && (
|
|
4395
|
+
if (C === "right" && (w = -w), w !== 0 && r.current) {
|
|
4393
4396
|
const S = lr(
|
|
4394
4397
|
m,
|
|
4395
4398
|
s.current.id,
|
|
4396
4399
|
r.current
|
|
4397
4400
|
);
|
|
4398
4401
|
if (S && s.current.initialResizePanelSize !== null) {
|
|
4399
|
-
const { element:
|
|
4400
|
-
let _ =
|
|
4401
|
-
_ = _ < 0 ? 0 : _, sn(
|
|
4402
|
+
const { element: k } = S, D = s.current.initialResizePanelSize;
|
|
4403
|
+
let _ = D + w;
|
|
4404
|
+
_ = _ < 0 ? 0 : _, sn(k, x, _, D > _);
|
|
4402
4405
|
}
|
|
4403
4406
|
}
|
|
4404
4407
|
},
|
|
4405
4408
|
[]
|
|
4406
|
-
), f =
|
|
4409
|
+
), f = V(() => ({
|
|
4407
4410
|
id: n,
|
|
4408
4411
|
startDragging: d,
|
|
4409
4412
|
stopDragging: u,
|
|
@@ -4672,7 +4675,7 @@ const Eu = () => {
|
|
|
4672
4675
|
const { direction: n } = o;
|
|
4673
4676
|
n === "horizontal" ? e = !0 : t = !0;
|
|
4674
4677
|
}), e && t ? an("intersection") : e ? an("horizontal") : t ? an("vertical") : Su();
|
|
4675
|
-
}, [ln] = O(["resizable-panels"]), Nu =
|
|
4678
|
+
}, [ln] = O(["resizable-panels"]), Nu = A(
|
|
4676
4679
|
({ className: e, disabled: t }) => {
|
|
4677
4680
|
const {
|
|
4678
4681
|
id: o,
|
|
@@ -4682,7 +4685,7 @@ const Eu = () => {
|
|
|
4682
4685
|
registerResizeHandle: a
|
|
4683
4686
|
} = Fi(), s = _e(), [d, u] = W("inactive"), [h, p] = W(
|
|
4684
4687
|
null
|
|
4685
|
-
), f =
|
|
4688
|
+
), f = H(null), m = H({
|
|
4686
4689
|
state: d
|
|
4687
4690
|
});
|
|
4688
4691
|
return Ie(() => {
|
|
@@ -4713,8 +4716,8 @@ const Eu = () => {
|
|
|
4713
4716
|
break;
|
|
4714
4717
|
}
|
|
4715
4718
|
case "move": {
|
|
4716
|
-
const { state:
|
|
4717
|
-
|
|
4719
|
+
const { state: w } = m.current;
|
|
4720
|
+
w !== "drag" && u("hover"), bt(C, 'Expected event to be defined for "move" action'), h(C);
|
|
4718
4721
|
break;
|
|
4719
4722
|
}
|
|
4720
4723
|
case "up": {
|
|
@@ -4812,47 +4815,47 @@ const Eu = () => {
|
|
|
4812
4815
|
onBeforeOpen: p = Lu,
|
|
4813
4816
|
showOpenState: f = !1
|
|
4814
4817
|
}) => {
|
|
4815
|
-
const [m, b] = W(!1), [y, x] = W(null), [v, C] = W(null),
|
|
4818
|
+
const [m, b] = W(!1), [y, x] = W(null), [v, C] = W(null), w = r ?? v, S = i ?? C, k = I(
|
|
4816
4819
|
(oe) => {
|
|
4817
4820
|
oe ? p().then(() => {
|
|
4818
4821
|
b(oe), h && h(oe);
|
|
4819
4822
|
}) : (b(oe), h && h(oe));
|
|
4820
4823
|
},
|
|
4821
4824
|
[p, h]
|
|
4822
|
-
), { refs:
|
|
4825
|
+
), { refs: D, floatingStyles: _, context: z } = go({
|
|
4823
4826
|
placement: u || "bottom-end",
|
|
4824
4827
|
open: m,
|
|
4825
|
-
onOpenChange:
|
|
4828
|
+
onOpenChange: k,
|
|
4826
4829
|
whileElementsMounted: Lo,
|
|
4827
4830
|
middleware: s ? Li : Bu
|
|
4828
|
-
}),
|
|
4831
|
+
}), R = H([]), G = H([]), j = I(
|
|
4829
4832
|
(oe) => {
|
|
4830
4833
|
var Z;
|
|
4831
|
-
S(oe), oe !== null && t(((Z =
|
|
4834
|
+
S(oe), oe !== null && t(((Z = R.current[oe]) == null ? void 0 : Z.dataset.key) || ""), b(!1), h && h(!1);
|
|
4832
4835
|
},
|
|
4833
4836
|
[h, t, S]
|
|
4834
|
-
), P = za(
|
|
4835
|
-
listRef:
|
|
4837
|
+
), P = za(z, {
|
|
4838
|
+
listRef: R,
|
|
4836
4839
|
activeIndex: y,
|
|
4837
|
-
selectedIndex:
|
|
4840
|
+
selectedIndex: w,
|
|
4838
4841
|
focusItemOnHover: !d,
|
|
4839
4842
|
focusItemOnOpen: !d,
|
|
4840
4843
|
onNavigate: x
|
|
4841
|
-
}), J = Fo(
|
|
4844
|
+
}), J = Fo(z, { enabled: !n }), he = fo(z), te = Wo(z, { role: "listbox" }), { getReferenceProps: ee, getFloatingProps: Le, getItemProps: ye } = mo(
|
|
4842
4845
|
[P, J, he, te]
|
|
4843
|
-
), $e =
|
|
4846
|
+
), $e = V(() => ({
|
|
4844
4847
|
activeIndex: y,
|
|
4845
|
-
selectedIndex:
|
|
4848
|
+
selectedIndex: w,
|
|
4846
4849
|
open: m,
|
|
4847
4850
|
getItemProps: ye,
|
|
4848
|
-
handleSelect:
|
|
4851
|
+
handleSelect: j,
|
|
4849
4852
|
setIsOpen: b
|
|
4850
|
-
}), [y, m,
|
|
4853
|
+
}), [y, m, w, ye, j]);
|
|
4851
4854
|
return /* @__PURE__ */ $(Wi.Provider, { value: $e, children: [
|
|
4852
4855
|
/* @__PURE__ */ c(
|
|
4853
4856
|
Wu,
|
|
4854
4857
|
{
|
|
4855
|
-
ref:
|
|
4858
|
+
ref: D.setReference,
|
|
4856
4859
|
tabIndex: 0,
|
|
4857
4860
|
...ee({
|
|
4858
4861
|
onClick(oe) {
|
|
@@ -4885,16 +4888,16 @@ const Eu = () => {
|
|
|
4885
4888
|
Ao,
|
|
4886
4889
|
{
|
|
4887
4890
|
disabled: d,
|
|
4888
|
-
context:
|
|
4891
|
+
context: z,
|
|
4889
4892
|
modal: !1,
|
|
4890
4893
|
children: /* @__PURE__ */ c(
|
|
4891
4894
|
Pu,
|
|
4892
4895
|
{
|
|
4893
|
-
ref:
|
|
4896
|
+
ref: D.setFloating,
|
|
4894
4897
|
style: _,
|
|
4895
4898
|
className: a,
|
|
4896
4899
|
...Le(),
|
|
4897
|
-
children: /* @__PURE__ */ c(Da, { elementsRef:
|
|
4900
|
+
children: /* @__PURE__ */ c(Da, { elementsRef: R, labelsRef: G, children: e })
|
|
4898
4901
|
}
|
|
4899
4902
|
)
|
|
4900
4903
|
}
|
|
@@ -4920,7 +4923,7 @@ const Eu = () => {
|
|
|
4920
4923
|
align-items: center;
|
|
4921
4924
|
justify-content: flex-start;
|
|
4922
4925
|
gap: 2px;
|
|
4923
|
-
`, [et, pr] = O(["option", "text"]), Et =
|
|
4926
|
+
`, [et, pr] = O(["option", "text"]), Et = A(
|
|
4924
4927
|
({
|
|
4925
4928
|
label: e,
|
|
4926
4929
|
optionKey: t,
|
|
@@ -4934,7 +4937,7 @@ const Eu = () => {
|
|
|
4934
4937
|
disableSelectionStyle: u,
|
|
4935
4938
|
disableEnterSelection: h
|
|
4936
4939
|
}) => {
|
|
4937
|
-
const { activeIndex: p, selectedIndex: f, getItemProps: m, handleSelect: b } = Pi(), { ref: y, index: x } = Ta({ label: t }), v = p !== null && p !== -1 && p === x, C = !u && f !== null && f !== -1 && f === x,
|
|
4940
|
+
const { activeIndex: p, selectedIndex: f, getItemProps: m, handleSelect: b } = Pi(), { ref: y, index: x } = Ta({ label: t }), v = p !== null && p !== -1 && p === x, C = !u && f !== null && f !== -1 && f === x, w = I(
|
|
4938
4941
|
(S) => {
|
|
4939
4942
|
o || (S.stopPropagation(), b(x));
|
|
4940
4943
|
},
|
|
@@ -4951,9 +4954,9 @@ const Eu = () => {
|
|
|
4951
4954
|
"aria-selected": v && C,
|
|
4952
4955
|
tabIndex: v ? 0 : -1,
|
|
4953
4956
|
...m({
|
|
4954
|
-
onClick: (
|
|
4955
|
-
onKeyDown: !h && !o ? (
|
|
4956
|
-
|
|
4957
|
+
onClick: (k) => w(k),
|
|
4958
|
+
onKeyDown: !h && !o ? (k) => {
|
|
4959
|
+
k.code === "Enter" && b(x);
|
|
4957
4960
|
} : void 0
|
|
4958
4961
|
}),
|
|
4959
4962
|
children: [
|
|
@@ -5020,7 +5023,7 @@ const Eu = () => {
|
|
|
5020
5023
|
disabled: t,
|
|
5021
5024
|
onSelect: o
|
|
5022
5025
|
}) => {
|
|
5023
|
-
const n =
|
|
5026
|
+
const n = V(
|
|
5024
5027
|
() => e.map((r) => /* @__PURE__ */ c(
|
|
5025
5028
|
Et,
|
|
5026
5029
|
{
|
|
@@ -5056,7 +5059,7 @@ const Eu = () => {
|
|
|
5056
5059
|
default:
|
|
5057
5060
|
return;
|
|
5058
5061
|
}
|
|
5059
|
-
}, Uu =
|
|
5062
|
+
}, Uu = A(
|
|
5060
5063
|
({ label: e, iconId: t, level: o, disabled: n, iconSize: r }) => /* @__PURE__ */ $(Gu, { children: [
|
|
5061
5064
|
/* @__PURE__ */ c(
|
|
5062
5065
|
N,
|
|
@@ -5089,7 +5092,7 @@ const Eu = () => {
|
|
|
5089
5092
|
if (e === null)
|
|
5090
5093
|
throw new Error("Unable to use TabContext outside of a TabProvider");
|
|
5091
5094
|
return e;
|
|
5092
|
-
}, Lx =
|
|
5095
|
+
}, Lx = A(
|
|
5093
5096
|
({
|
|
5094
5097
|
children: e,
|
|
5095
5098
|
activeTab: t,
|
|
@@ -5099,14 +5102,14 @@ const Eu = () => {
|
|
|
5099
5102
|
}) => {
|
|
5100
5103
|
const [i, a] = W(
|
|
5101
5104
|
n
|
|
5102
|
-
), s = o ?? a, d = t ?? i, u =
|
|
5105
|
+
), s = o ?? a, d = t ?? i, u = V(() => ({
|
|
5103
5106
|
onTabChange: s,
|
|
5104
5107
|
activeTab: d,
|
|
5105
5108
|
variant: r
|
|
5106
5109
|
}), [d, s, r]);
|
|
5107
5110
|
return /* @__PURE__ */ c(ji.Provider, { value: u, children: e });
|
|
5108
5111
|
}
|
|
5109
|
-
), [ce] = O(["tab"]), Wx =
|
|
5112
|
+
), [ce] = O(["tab"]), Wx = A(
|
|
5110
5113
|
({
|
|
5111
5114
|
value: e,
|
|
5112
5115
|
text: t,
|
|
@@ -5269,7 +5272,7 @@ const Eu = () => {
|
|
|
5269
5272
|
children: e,
|
|
5270
5273
|
className: t
|
|
5271
5274
|
}) => {
|
|
5272
|
-
const { activeTab: o, variant: n } = Fn(), r =
|
|
5275
|
+
const { activeTab: o, variant: n } = Fn(), r = H(null), i = H(null), a = n === "underline";
|
|
5273
5276
|
return U(() => {
|
|
5274
5277
|
if (a && i.current && r.current) {
|
|
5275
5278
|
const s = i.current.querySelector(
|
|
@@ -5391,7 +5394,7 @@ const Eu = () => {
|
|
|
5391
5394
|
/* @__PURE__ */ c(E, { variant: "body", children: e }),
|
|
5392
5395
|
/* @__PURE__ */ c(N, { size: "xxsm", iconId: "Close", onClick: () => t(e) })
|
|
5393
5396
|
] }, `key-tag-${e}`), Hx = ({ search: e, style: t, children: o, highlightColor: n, highlightTextColor: r }) => {
|
|
5394
|
-
const i = n || "yellow", a =
|
|
5397
|
+
const i = n || "yellow", a = V(
|
|
5395
5398
|
() => Array.isArray(e) ? e : [e].filter(Boolean),
|
|
5396
5399
|
[e]
|
|
5397
5400
|
);
|
|
@@ -5726,7 +5729,7 @@ const [lh, Ve, Oe] = O([
|
|
|
5726
5729
|
offset: s,
|
|
5727
5730
|
disabled: d
|
|
5728
5731
|
}) => {
|
|
5729
|
-
const u =
|
|
5732
|
+
const u = H(null), [h, p] = W(n);
|
|
5730
5733
|
U(() => {
|
|
5731
5734
|
n !== void 0 && p(n);
|
|
5732
5735
|
}, [n]);
|
|
@@ -5742,7 +5745,7 @@ const [lh, Ve, Oe] = O([
|
|
|
5742
5745
|
qr(),
|
|
5743
5746
|
Ea({ element: u })
|
|
5744
5747
|
]
|
|
5745
|
-
}), y = Ma(b, { move: !1, restMs: r }), x = Oa(b), v = fo(b), C = Wo(b, { role: "tooltip" }), { getReferenceProps:
|
|
5748
|
+
}), y = Ma(b, { move: !1, restMs: r }), x = Oa(b), v = fo(b), C = Wo(b, { role: "tooltip" }), { getReferenceProps: w, getFloatingProps: S } = mo(
|
|
5746
5749
|
d ? [] : [y, x, v, C]
|
|
5747
5750
|
);
|
|
5748
5751
|
return /* @__PURE__ */ $(pe, { children: [
|
|
@@ -5751,7 +5754,7 @@ const [lh, Ve, Oe] = O([
|
|
|
5751
5754
|
{
|
|
5752
5755
|
className: i,
|
|
5753
5756
|
ref: f.setReference,
|
|
5754
|
-
...
|
|
5757
|
+
...w(),
|
|
5755
5758
|
children: t
|
|
5756
5759
|
}
|
|
5757
5760
|
),
|
|
@@ -5956,9 +5959,9 @@ const [lh, Ve, Oe] = O([
|
|
|
5956
5959
|
&:hover {
|
|
5957
5960
|
background-color: ${oo("item-hover-bg")};
|
|
5958
5961
|
}
|
|
5959
|
-
`, [Io] = O(["multi-select"]), Mh =
|
|
5962
|
+
`, [Io] = O(["multi-select"]), Mh = A(
|
|
5960
5963
|
({ SelectAllItemTemplate: e, options: t }) => {
|
|
5961
|
-
const { selected: o, onSetSelected: n, setOpen: r } = Eh(), i =
|
|
5964
|
+
const { selected: o, onSetSelected: n, setOpen: r } = Eh(), i = H(null), { isAllSelected: a, isPartiallySelected: s } = V(() => {
|
|
5962
5965
|
const u = t.every(
|
|
5963
5966
|
(h) => o.some((p) => p.value === h.value)
|
|
5964
5967
|
);
|
|
@@ -5990,7 +5993,7 @@ const [lh, Ve, Oe] = O([
|
|
|
5990
5993
|
z-index: 2;
|
|
5991
5994
|
padding-top: calc(${Io("item-padding-y")} * 2);
|
|
5992
5995
|
background-color: ${Io("background")};
|
|
5993
|
-
`, Nh =
|
|
5996
|
+
`, Nh = A(
|
|
5994
5997
|
({
|
|
5995
5998
|
value: e,
|
|
5996
5999
|
label: t,
|
|
@@ -6001,7 +6004,7 @@ const [lh, Ve, Oe] = O([
|
|
|
6001
6004
|
/* @__PURE__ */ c(Xt, { onChange: Xe, checked: o }),
|
|
6002
6005
|
/* @__PURE__ */ c(E, { variant: "body", color: "dark", children: t })
|
|
6003
6006
|
] })
|
|
6004
|
-
), [Bt] = O(["multi-select"]), Rh =
|
|
6007
|
+
), [Bt] = O(["multi-select"]), Rh = A(
|
|
6005
6008
|
({
|
|
6006
6009
|
value: e,
|
|
6007
6010
|
label: t,
|
|
@@ -6031,7 +6034,7 @@ const [lh, Ve, Oe] = O([
|
|
|
6031
6034
|
:hover {
|
|
6032
6035
|
background-color: ${Bt("selected-item-background-hover")};
|
|
6033
6036
|
}
|
|
6034
|
-
`, [we] = O(["multi-select"]), Ah =
|
|
6037
|
+
`, [we] = O(["multi-select"]), Ah = A(
|
|
6035
6038
|
({
|
|
6036
6039
|
options: e,
|
|
6037
6040
|
selected: t,
|
|
@@ -6055,30 +6058,30 @@ const [lh, Ve, Oe] = O([
|
|
|
6055
6058
|
}), x = Fo(y, {
|
|
6056
6059
|
enabled: !i,
|
|
6057
6060
|
toggle: !!n
|
|
6058
|
-
}), v = fo(y), C = Wo(y, { role: "listbox" }), { getReferenceProps:
|
|
6061
|
+
}), v = fo(y), C = Wo(y, { role: "listbox" }), { getReferenceProps: w, getFloatingProps: S } = mo([
|
|
6059
6062
|
x,
|
|
6060
6063
|
v,
|
|
6061
6064
|
C
|
|
6062
|
-
]),
|
|
6065
|
+
]), k = I(
|
|
6063
6066
|
(_) => {
|
|
6064
|
-
t.some((
|
|
6065
|
-
t.filter((
|
|
6067
|
+
t.some((z) => z.value === _.value) ? r(
|
|
6068
|
+
t.filter((z) => z.value !== _.value)
|
|
6066
6069
|
) : r([...t, _]);
|
|
6067
6070
|
},
|
|
6068
6071
|
[r, t]
|
|
6069
|
-
),
|
|
6072
|
+
), D = V(() => ({
|
|
6070
6073
|
open: h,
|
|
6071
6074
|
setOpen: p,
|
|
6072
6075
|
selected: t,
|
|
6073
|
-
onToggleSelect:
|
|
6076
|
+
onToggleSelect: k,
|
|
6074
6077
|
onSetSelected: r
|
|
6075
|
-
}), [
|
|
6076
|
-
return console.log({ open: h }), /* @__PURE__ */ c(Th, { value:
|
|
6078
|
+
}), [k, h, t, r]);
|
|
6079
|
+
return console.log({ open: h }), /* @__PURE__ */ c(Th, { value: D, children: /* @__PURE__ */ $(
|
|
6077
6080
|
Bh,
|
|
6078
6081
|
{
|
|
6079
6082
|
ref: m.setReference,
|
|
6080
6083
|
className: o,
|
|
6081
|
-
...
|
|
6084
|
+
...w({
|
|
6082
6085
|
onClick(_) {
|
|
6083
6086
|
_.stopPropagation();
|
|
6084
6087
|
}
|
|
@@ -6090,7 +6093,7 @@ const [lh, Ve, Oe] = O([
|
|
|
6090
6093
|
SelectedItemTemplate: u,
|
|
6091
6094
|
..._,
|
|
6092
6095
|
key: _.value,
|
|
6093
|
-
onRemove:
|
|
6096
|
+
onRemove: k
|
|
6094
6097
|
}
|
|
6095
6098
|
)),
|
|
6096
6099
|
h && /* @__PURE__ */ c(Yt, { children: /* @__PURE__ */ c(Ao, { context: y, modal: !1, children: /* @__PURE__ */ $(
|
|
@@ -6115,9 +6118,9 @@ const [lh, Ve, Oe] = O([
|
|
|
6115
6118
|
{
|
|
6116
6119
|
label: _.label,
|
|
6117
6120
|
value: _.value,
|
|
6118
|
-
onToggleSelect:
|
|
6121
|
+
onToggleSelect: k,
|
|
6119
6122
|
isSelected: t.some(
|
|
6120
|
-
(
|
|
6123
|
+
(z) => _.value === z.value
|
|
6121
6124
|
),
|
|
6122
6125
|
ListItemTemplate: d
|
|
6123
6126
|
},
|
|
@@ -6164,7 +6167,7 @@ const [lh, Ve, Oe] = O([
|
|
|
6164
6167
|
&.selectAllHidden {
|
|
6165
6168
|
padding-top: ${we("list-padding")};
|
|
6166
6169
|
}
|
|
6167
|
-
`, Gx =
|
|
6170
|
+
`, Gx = A(({ className: e }) => {
|
|
6168
6171
|
const t = _e();
|
|
6169
6172
|
return /* @__PURE__ */ $(
|
|
6170
6173
|
"svg",
|
|
@@ -6330,7 +6333,7 @@ const Uh = g.div`
|
|
|
6330
6333
|
g.img`
|
|
6331
6334
|
height: 100%;
|
|
6332
6335
|
`;
|
|
6333
|
-
const qi =
|
|
6336
|
+
const qi = q`
|
|
6334
6337
|
${jh.map(
|
|
6335
6338
|
({ start: e, end: t }) => `&[data-gradient="${e}-${t}"] {
|
|
6336
6339
|
background: linear-gradient(
|
|
@@ -6392,7 +6395,7 @@ const Zh = g.div`
|
|
|
6392
6395
|
-webkit-box-orient: vertical;
|
|
6393
6396
|
overflow: hidden;
|
|
6394
6397
|
text-overflow: ellipsis;
|
|
6395
|
-
`, Jh = (e) => /* @__PURE__ */ c(Xh, { ...e, variant: "body", color: "dark" }), Yx =
|
|
6398
|
+
`, Jh = (e) => /* @__PURE__ */ c(Xh, { ...e, variant: "body", color: "dark" }), Yx = A(
|
|
6396
6399
|
({
|
|
6397
6400
|
color: e,
|
|
6398
6401
|
title: t,
|
|
@@ -6413,7 +6416,7 @@ const Zh = g.div`
|
|
|
6413
6416
|
!!r && /* @__PURE__ */ c(r, {})
|
|
6414
6417
|
] })
|
|
6415
6418
|
] }) }) })
|
|
6416
|
-
), Qh =
|
|
6419
|
+
), Qh = A(
|
|
6417
6420
|
({ description: e }) => {
|
|
6418
6421
|
const { open: t } = Vo();
|
|
6419
6422
|
return /* @__PURE__ */ c(
|
|
@@ -6437,7 +6440,7 @@ const Zh = g.div`
|
|
|
6437
6440
|
white-space: normal;
|
|
6438
6441
|
word-break: break-word;
|
|
6439
6442
|
}
|
|
6440
|
-
`, [rt] = O(["collapsible-artifact"]), Kx =
|
|
6443
|
+
`, [rt] = O(["collapsible-artifact"]), Kx = A(
|
|
6441
6444
|
({
|
|
6442
6445
|
onExternalClick: e,
|
|
6443
6446
|
id: t,
|
|
@@ -6465,7 +6468,7 @@ const Zh = g.div`
|
|
|
6465
6468
|
/* @__PURE__ */ c(
|
|
6466
6469
|
E,
|
|
6467
6470
|
{
|
|
6468
|
-
css:
|
|
6471
|
+
css: q`
|
|
6469
6472
|
word-break: break-all;
|
|
6470
6473
|
`,
|
|
6471
6474
|
variant: "small",
|
|
@@ -6534,7 +6537,7 @@ const Zh = g.div`
|
|
|
6534
6537
|
`, lp = g.div`
|
|
6535
6538
|
padding: ${rt("name-and-selected-spacing")};
|
|
6536
6539
|
width: 100%;
|
|
6537
|
-
`, [He] = O(["collapsible-artifact-version"]), qx =
|
|
6540
|
+
`, [He] = O(["collapsible-artifact-version"]), qx = A(
|
|
6538
6541
|
({
|
|
6539
6542
|
onListItemAction: e,
|
|
6540
6543
|
isSelected: t,
|
|
@@ -6664,7 +6667,7 @@ const Zh = g.div`
|
|
|
6664
6667
|
border-bottom: ${co("border-width")} solid
|
|
6665
6668
|
${co("border-color")};
|
|
6666
6669
|
}
|
|
6667
|
-
`, [fr] = O(["combobox"]), bp =
|
|
6670
|
+
`, [fr] = O(["combobox"]), bp = A(
|
|
6668
6671
|
({
|
|
6669
6672
|
isDeletable: e,
|
|
6670
6673
|
inputText: t,
|
|
@@ -6726,7 +6729,7 @@ const Zh = g.div`
|
|
|
6726
6729
|
&.isDeletable {
|
|
6727
6730
|
padding-right: ${l("spacing-32")};
|
|
6728
6731
|
}
|
|
6729
|
-
`, wp =
|
|
6732
|
+
`, wp = A(
|
|
6730
6733
|
({ name: e }) => /* @__PURE__ */ $(pe, { children: [
|
|
6731
6734
|
/* @__PURE__ */ c(
|
|
6732
6735
|
N,
|
|
@@ -6755,7 +6758,7 @@ const Zh = g.div`
|
|
|
6755
6758
|
}) => {
|
|
6756
6759
|
const { setIsOpen: f, selectedIndex: m } = Pi(), b = I(() => {
|
|
6757
6760
|
o("create", { id: t, name: t }), f(!1);
|
|
6758
|
-
}, [t, f, o]), y =
|
|
6761
|
+
}, [t, f, o]), y = V(
|
|
6759
6762
|
() => !e.length || !e.some(
|
|
6760
6763
|
(v) => v.name.toLowerCase() === t.toLowerCase()
|
|
6761
6764
|
),
|
|
@@ -6807,7 +6810,7 @@ const Zh = g.div`
|
|
|
6807
6810
|
requiresSelection: a,
|
|
6808
6811
|
...s
|
|
6809
6812
|
}) => {
|
|
6810
|
-
const d =
|
|
6813
|
+
const d = H(n == null ? void 0 : n.id), [u, h] = W(
|
|
6811
6814
|
a ? "" : (n == null ? void 0 : n.name) ?? ""
|
|
6812
6815
|
), p = !!n && n.name === u, f = t !== void 0 ? t : p && !a;
|
|
6813
6816
|
Ie(() => {
|
|
@@ -6819,22 +6822,22 @@ const Zh = g.div`
|
|
|
6819
6822
|
},
|
|
6820
6823
|
[r]
|
|
6821
6824
|
), b = I(
|
|
6822
|
-
(C,
|
|
6823
|
-
d.current =
|
|
6825
|
+
(C, w) => {
|
|
6826
|
+
d.current = w == null ? void 0 : w.id, h(a ? "" : (w == null ? void 0 : w.name) ?? ""), i(C, w == null ? void 0 : w.id);
|
|
6824
6827
|
},
|
|
6825
6828
|
[i, a]
|
|
6826
6829
|
), y = I(
|
|
6827
6830
|
(C) => {
|
|
6828
|
-
const
|
|
6829
|
-
|
|
6831
|
+
const w = o.find((S) => S.id === C);
|
|
6832
|
+
w && b("select", w);
|
|
6830
6833
|
},
|
|
6831
6834
|
[b, o]
|
|
6832
|
-
), x =
|
|
6835
|
+
), x = V(
|
|
6833
6836
|
() => p ? o : o.filter(
|
|
6834
6837
|
(C) => C.name.toLowerCase().includes(u.toLowerCase()) || C.isHeader
|
|
6835
6838
|
),
|
|
6836
6839
|
[u, o, p]
|
|
6837
|
-
), v =
|
|
6840
|
+
), v = V(
|
|
6838
6841
|
() => x.findIndex((C) => C.id === (n == null ? void 0 : n.id)),
|
|
6839
6842
|
[x, n == null ? void 0 : n.id]
|
|
6840
6843
|
);
|
|
@@ -7019,7 +7022,7 @@ function Zi(e) {
|
|
|
7019
7022
|
const f = Dt(e.timeZone, e), m = f > 0 ? Math.floor(f) : Math.ceil(f), y = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - m, x = m !== o, v = y - d;
|
|
7020
7023
|
if (x && v) {
|
|
7021
7024
|
Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + v);
|
|
7022
|
-
const C = Dt(e.timeZone, e),
|
|
7025
|
+
const C = Dt(e.timeZone, e), w = C > 0 ? Math.floor(C) : Math.ceil(C), S = m - w;
|
|
7023
7026
|
S && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + S), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + S));
|
|
7024
7027
|
}
|
|
7025
7028
|
}
|
|
@@ -7734,10 +7737,10 @@ function wg(e) {
|
|
|
7734
7737
|
o.focused && ((i = r.current) == null || i.focus());
|
|
7735
7738
|
}, [o.focused]), T.createElement("button", { ref: r, ...n });
|
|
7736
7739
|
}
|
|
7737
|
-
var
|
|
7740
|
+
var B;
|
|
7738
7741
|
(function(e) {
|
|
7739
7742
|
e.Root = "root", e.Chevron = "chevron", e.Day = "day", e.DayButton = "day_button", e.CaptionLabel = "caption_label", e.Dropdowns = "dropdowns", e.Dropdown = "dropdown", e.DropdownRoot = "dropdown_root", e.Footer = "footer", e.MonthGrid = "month_grid", e.MonthCaption = "month_caption", e.MonthsDropdown = "months_dropdown", e.Month = "month", e.Months = "months", e.Nav = "nav", e.NextMonthButton = "button_next", e.PreviousMonthButton = "button_previous", e.Week = "week", e.Weeks = "weeks", e.Weekday = "weekday", e.Weekdays = "weekdays", e.WeekNumber = "week_number", e.WeekNumberHeader = "week_number_header", e.YearsDropdown = "years_dropdown";
|
|
7740
|
-
})(
|
|
7743
|
+
})(B || (B = {}));
|
|
7741
7744
|
var de;
|
|
7742
7745
|
(function(e) {
|
|
7743
7746
|
e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today";
|
|
@@ -7751,16 +7754,16 @@ var De;
|
|
|
7751
7754
|
e.weeks_before_enter = "weeks_before_enter", e.weeks_before_exit = "weeks_before_exit", e.weeks_after_enter = "weeks_after_enter", e.weeks_after_exit = "weeks_after_exit", e.caption_after_enter = "caption_after_enter", e.caption_after_exit = "caption_after_exit", e.caption_before_enter = "caption_before_enter", e.caption_before_exit = "caption_before_exit";
|
|
7752
7755
|
})(De || (De = {}));
|
|
7753
7756
|
function kg(e) {
|
|
7754
|
-
const { options: t, className: o, components: n, classNames: r, ...i } = e, a = [r[
|
|
7757
|
+
const { options: t, className: o, components: n, classNames: r, ...i } = e, a = [r[B.Dropdown], o].join(" "), s = t == null ? void 0 : t.find(({ value: d }) => d === i.value);
|
|
7755
7758
|
return T.createElement(
|
|
7756
7759
|
"span",
|
|
7757
|
-
{ "data-disabled": i.disabled, className: r[
|
|
7760
|
+
{ "data-disabled": i.disabled, className: r[B.DropdownRoot] },
|
|
7758
7761
|
T.createElement(n.Select, { className: a, ...i }, t == null ? void 0 : t.map(({ value: d, label: u, disabled: h }) => T.createElement(n.Option, { key: d, value: d, disabled: h }, u))),
|
|
7759
7762
|
T.createElement(
|
|
7760
7763
|
"span",
|
|
7761
|
-
{ className: r[
|
|
7764
|
+
{ className: r[B.CaptionLabel], "aria-hidden": !0 },
|
|
7762
7765
|
s == null ? void 0 : s.label,
|
|
7763
|
-
T.createElement(n.Chevron, { orientation: "down", size: 18, className: r[
|
|
7766
|
+
T.createElement(n.Chevron, { orientation: "down", size: 18, className: r[B.Chevron] })
|
|
7764
7767
|
)
|
|
7765
7768
|
);
|
|
7766
7769
|
}
|
|
@@ -7806,13 +7809,13 @@ function Tg(e) {
|
|
|
7806
7809
|
{ ...i },
|
|
7807
7810
|
T.createElement(
|
|
7808
7811
|
a.PreviousMonthButton,
|
|
7809
|
-
{ type: "button", className: s[
|
|
7810
|
-
T.createElement(a.Chevron, { disabled: n ? void 0 : !0, className: s[
|
|
7812
|
+
{ type: "button", className: s[B.PreviousMonthButton], tabIndex: n ? void 0 : -1, "aria-disabled": n ? void 0 : !0, "aria-label": d(n), onClick: p },
|
|
7813
|
+
T.createElement(a.Chevron, { disabled: n ? void 0 : !0, className: s[B.Chevron], orientation: "left" })
|
|
7811
7814
|
),
|
|
7812
7815
|
T.createElement(
|
|
7813
7816
|
a.NextMonthButton,
|
|
7814
|
-
{ type: "button", className: s[
|
|
7815
|
-
T.createElement(a.Chevron, { disabled: r ? void 0 : !0, orientation: "right", className: s[
|
|
7817
|
+
{ type: "button", className: s[B.NextMonthButton], tabIndex: r ? void 0 : -1, "aria-disabled": r ? void 0 : !0, "aria-label": u(r), onClick: h },
|
|
7818
|
+
T.createElement(a.Chevron, { disabled: r ? void 0 : !0, orientation: "right", className: s[B.Chevron] })
|
|
7816
7819
|
)
|
|
7817
7820
|
);
|
|
7818
7821
|
}
|
|
@@ -7935,44 +7938,44 @@ function mt(e, t, o = lt) {
|
|
|
7935
7938
|
});
|
|
7936
7939
|
}
|
|
7937
7940
|
function Hg(e, t, o, n, r) {
|
|
7938
|
-
const { disabled: i, hidden: a, modifiers: s, showOutsideDays: d, broadcastCalendar: u, today: h } = t, { isSameDay: p, isSameMonth: f, startOfMonth: m, isBefore: b, endOfMonth: y, isAfter: x } = r, v = o && m(o), C = n && y(n),
|
|
7941
|
+
const { disabled: i, hidden: a, modifiers: s, showOutsideDays: d, broadcastCalendar: u, today: h } = t, { isSameDay: p, isSameMonth: f, startOfMonth: m, isBefore: b, endOfMonth: y, isAfter: x } = r, v = o && m(o), C = n && y(n), w = {
|
|
7939
7942
|
[de.focused]: [],
|
|
7940
7943
|
[de.outside]: [],
|
|
7941
7944
|
[de.disabled]: [],
|
|
7942
7945
|
[de.hidden]: [],
|
|
7943
7946
|
[de.today]: []
|
|
7944
7947
|
}, S = {};
|
|
7945
|
-
for (const
|
|
7946
|
-
const { date:
|
|
7947
|
-
!u && !d &&
|
|
7948
|
-
|
|
7948
|
+
for (const k of e) {
|
|
7949
|
+
const { date: D, displayMonth: _ } = k, z = !!(_ && !f(D, _)), R = !!(v && b(D, v)), G = !!(C && x(D, C)), j = !!(i && mt(D, i, r)), P = !!(a && mt(D, a, r)) || R || G || // Broadcast calendar will show outside days as default
|
|
7950
|
+
!u && !d && z || u && d === !1 && z, J = p(D, h ?? r.today());
|
|
7951
|
+
z && w.outside.push(k), j && w.disabled.push(k), P && w.hidden.push(k), J && w.today.push(k), s && Object.keys(s).forEach((he) => {
|
|
7949
7952
|
const te = s == null ? void 0 : s[he];
|
|
7950
|
-
te && mt(
|
|
7953
|
+
te && mt(D, te, r) && (S[he] ? S[he].push(k) : S[he] = [k]);
|
|
7951
7954
|
});
|
|
7952
7955
|
}
|
|
7953
|
-
return (
|
|
7954
|
-
const
|
|
7956
|
+
return (k) => {
|
|
7957
|
+
const D = {
|
|
7955
7958
|
[de.focused]: !1,
|
|
7956
7959
|
[de.disabled]: !1,
|
|
7957
7960
|
[de.hidden]: !1,
|
|
7958
7961
|
[de.outside]: !1,
|
|
7959
7962
|
[de.today]: !1
|
|
7960
7963
|
}, _ = {};
|
|
7961
|
-
for (const
|
|
7962
|
-
const
|
|
7963
|
-
z
|
|
7964
|
+
for (const z in w) {
|
|
7965
|
+
const R = w[z];
|
|
7966
|
+
D[z] = R.some((G) => G === k);
|
|
7964
7967
|
}
|
|
7965
|
-
for (const
|
|
7966
|
-
_[
|
|
7968
|
+
for (const z in S)
|
|
7969
|
+
_[z] = S[z].some((R) => R === k);
|
|
7967
7970
|
return {
|
|
7968
|
-
...
|
|
7971
|
+
...D,
|
|
7969
7972
|
// custom modifiers should override all the previous ones
|
|
7970
7973
|
..._
|
|
7971
7974
|
};
|
|
7972
7975
|
};
|
|
7973
7976
|
}
|
|
7974
7977
|
function Ug(e, t, o = {}) {
|
|
7975
|
-
return Object.entries(e).filter(([, r]) => r === !0).reduce((r, [i]) => (o[i] ? r.push(o[i]) : t[de[i]] ? r.push(t[de[i]]) : t[qe[i]] && r.push(t[qe[i]]), r), [t[
|
|
7978
|
+
return Object.entries(e).filter(([, r]) => r === !0).reduce((r, [i]) => (o[i] ? r.push(o[i]) : t[de[i]] ? r.push(t[de[i]]) : t[qe[i]] && r.push(t[qe[i]]), r), [t[B.Day]]);
|
|
7976
7979
|
}
|
|
7977
7980
|
function Gg(e) {
|
|
7978
7981
|
return {
|
|
@@ -7995,8 +7998,8 @@ function Yg(e) {
|
|
|
7995
7998
|
}
|
|
7996
7999
|
function Kg() {
|
|
7997
8000
|
const e = {};
|
|
7998
|
-
for (const t in
|
|
7999
|
-
e[
|
|
8001
|
+
for (const t in B)
|
|
8002
|
+
e[B[t]] = `rdp-${B[t]}`;
|
|
8000
8003
|
for (const t in de)
|
|
8001
8004
|
e[de[t]] = `rdp-${de[t]}`;
|
|
8002
8005
|
for (const t in qe)
|
|
@@ -8056,7 +8059,7 @@ function rf(e, t, o, n, r) {
|
|
|
8056
8059
|
});
|
|
8057
8060
|
}
|
|
8058
8061
|
function sf(e, t = {}, o = {}) {
|
|
8059
|
-
let n = { ...t == null ? void 0 : t[
|
|
8062
|
+
let n = { ...t == null ? void 0 : t[B.Day] };
|
|
8060
8063
|
return Object.entries(e).filter(([, r]) => r === !0).forEach(([r]) => {
|
|
8061
8064
|
n = {
|
|
8062
8065
|
...n,
|
|
@@ -8144,7 +8147,7 @@ const xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8144
8147
|
...e.querySelectorAll("[data-animated-month]") ?? []
|
|
8145
8148
|
], wf = (e) => xo(e.querySelector("[data-animated-month]")), pn = (e) => xo(e.querySelector("[data-animated-caption]")), gn = (e) => xo(e.querySelector("[data-animated-weeks]")), kf = (e) => xo(e.querySelector("[data-animated-nav]")), $f = (e) => xo(e.querySelector("[data-animated-weekdays]"));
|
|
8146
8149
|
function Cf(e, t, { classNames: o, months: n, focused: r, dateLib: i }) {
|
|
8147
|
-
const a =
|
|
8150
|
+
const a = H(null), s = H(n), d = H(!1);
|
|
8148
8151
|
Ie(() => {
|
|
8149
8152
|
const u = s.current;
|
|
8150
8153
|
if (s.current = n, !t || !e.current || // safety check because the ref can be set to anything by consumers
|
|
@@ -8152,15 +8155,15 @@ function Cf(e, t, { classNames: o, months: n, focused: r, dateLib: i }) {
|
|
|
8152
8155
|
n.length === 0 || u.length === 0 || n.length !== u.length)
|
|
8153
8156
|
return;
|
|
8154
8157
|
const h = i.isSameMonth(n[0].date, u[0].date), p = i.isAfter(n[0].date, u[0].date), f = p ? o[De.caption_after_enter] : o[De.caption_before_enter], m = p ? o[De.weeks_after_enter] : o[De.weeks_before_enter], b = a.current, y = e.current.cloneNode(!0);
|
|
8155
|
-
if (y instanceof HTMLElement ? (hn(y).forEach((
|
|
8156
|
-
if (!(
|
|
8158
|
+
if (y instanceof HTMLElement ? (hn(y).forEach((w) => {
|
|
8159
|
+
if (!(w instanceof HTMLElement))
|
|
8157
8160
|
return;
|
|
8158
|
-
const S = wf(
|
|
8159
|
-
S &&
|
|
8160
|
-
const
|
|
8161
|
-
|
|
8162
|
-
const
|
|
8163
|
-
|
|
8161
|
+
const S = wf(w);
|
|
8162
|
+
S && w.contains(S) && w.removeChild(S);
|
|
8163
|
+
const k = pn(w);
|
|
8164
|
+
k && k.classList.remove(f);
|
|
8165
|
+
const D = gn(w);
|
|
8166
|
+
D && D.classList.remove(m);
|
|
8164
8167
|
}), a.current = y) : a.current = null, d.current || h || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
|
|
8165
8168
|
r)
|
|
8166
8169
|
return;
|
|
@@ -8168,46 +8171,46 @@ function Cf(e, t, { classNames: o, months: n, focused: r, dateLib: i }) {
|
|
|
8168
8171
|
if (v != null && v.every((C) => C instanceof HTMLElement) && x && x.every((C) => C instanceof HTMLElement)) {
|
|
8169
8172
|
d.current = !0, e.current.style.isolation = "isolate";
|
|
8170
8173
|
const C = kf(e.current);
|
|
8171
|
-
C && (C.style.zIndex = "1"), v.forEach((
|
|
8172
|
-
const
|
|
8173
|
-
if (!
|
|
8174
|
+
C && (C.style.zIndex = "1"), v.forEach((w, S) => {
|
|
8175
|
+
const k = x[S];
|
|
8176
|
+
if (!k)
|
|
8174
8177
|
return;
|
|
8175
|
-
|
|
8176
|
-
const
|
|
8177
|
-
|
|
8178
|
-
const _ = gn(
|
|
8178
|
+
w.style.position = "relative", w.style.overflow = "hidden";
|
|
8179
|
+
const D = pn(w);
|
|
8180
|
+
D && D.classList.add(f);
|
|
8181
|
+
const _ = gn(w);
|
|
8179
8182
|
_ && _.classList.add(m);
|
|
8180
|
-
const
|
|
8181
|
-
d.current = !1, e.current && (e.current.style.isolation = ""), C && (C.style.zIndex = ""),
|
|
8183
|
+
const z = () => {
|
|
8184
|
+
d.current = !1, e.current && (e.current.style.isolation = ""), C && (C.style.zIndex = ""), D && D.classList.remove(f), _ && _.classList.remove(m), w.style.position = "", w.style.overflow = "", w.contains(k) && w.removeChild(k);
|
|
8182
8185
|
};
|
|
8183
|
-
|
|
8184
|
-
const
|
|
8185
|
-
|
|
8186
|
-
const
|
|
8187
|
-
|
|
8188
|
-
const
|
|
8189
|
-
|
|
8186
|
+
k.style.pointerEvents = "none", k.style.position = "absolute", k.style.overflow = "hidden", k.setAttribute("aria-hidden", "true");
|
|
8187
|
+
const R = $f(k);
|
|
8188
|
+
R && (R.style.opacity = "0");
|
|
8189
|
+
const G = pn(k);
|
|
8190
|
+
G && (G.classList.add(p ? o[De.caption_before_exit] : o[De.caption_after_exit]), G.addEventListener("animationend", z));
|
|
8191
|
+
const j = gn(k);
|
|
8192
|
+
j && j.classList.add(p ? o[De.weeks_before_exit] : o[De.weeks_after_exit]), w.insertBefore(k, w.firstChild);
|
|
8190
8193
|
});
|
|
8191
8194
|
}
|
|
8192
8195
|
});
|
|
8193
8196
|
}
|
|
8194
8197
|
function Sf(e, t, o, n) {
|
|
8195
|
-
const r = e[0], i = e[e.length - 1], { ISOWeek: a, fixedWeeks: s, broadcastCalendar: d } = o ?? {}, { addDays: u, differenceInCalendarDays: h, differenceInCalendarMonths: p, endOfBroadcastWeek: f, endOfISOWeek: m, endOfMonth: b, endOfWeek: y, isAfter: x, startOfBroadcastWeek: v, startOfISOWeek: C, startOfWeek:
|
|
8196
|
-
for (let
|
|
8197
|
-
const P = u(S,
|
|
8198
|
+
const r = e[0], i = e[e.length - 1], { ISOWeek: a, fixedWeeks: s, broadcastCalendar: d } = o ?? {}, { addDays: u, differenceInCalendarDays: h, differenceInCalendarMonths: p, endOfBroadcastWeek: f, endOfISOWeek: m, endOfMonth: b, endOfWeek: y, isAfter: x, startOfBroadcastWeek: v, startOfISOWeek: C, startOfWeek: w } = n, S = d ? v(r, n) : a ? C(r) : w(r), k = d ? f(i) : a ? m(b(i)) : y(b(i)), D = h(k, S), _ = p(i, r) + 1, z = [];
|
|
8199
|
+
for (let j = 0; j <= D; j++) {
|
|
8200
|
+
const P = u(S, j);
|
|
8198
8201
|
if (t && x(P, t))
|
|
8199
8202
|
break;
|
|
8200
|
-
|
|
8201
|
-
}
|
|
8202
|
-
const
|
|
8203
|
-
if (s &&
|
|
8204
|
-
const
|
|
8205
|
-
for (let P = 0; P <
|
|
8206
|
-
const J = u(
|
|
8207
|
-
|
|
8203
|
+
z.push(P);
|
|
8204
|
+
}
|
|
8205
|
+
const G = (d ? 35 : 42) * _;
|
|
8206
|
+
if (s && z.length < G) {
|
|
8207
|
+
const j = G - z.length;
|
|
8208
|
+
for (let P = 0; P < j; P++) {
|
|
8209
|
+
const J = u(z[z.length - 1], 1);
|
|
8210
|
+
z.push(J);
|
|
8208
8211
|
}
|
|
8209
8212
|
}
|
|
8210
|
-
return
|
|
8213
|
+
return z;
|
|
8211
8214
|
}
|
|
8212
8215
|
function If(e) {
|
|
8213
8216
|
const t = [];
|
|
@@ -8238,19 +8241,19 @@ function vr(e, t, o, n) {
|
|
|
8238
8241
|
}
|
|
8239
8242
|
function zf(e, t, o, n) {
|
|
8240
8243
|
const { addDays: r, endOfBroadcastWeek: i, endOfISOWeek: a, endOfMonth: s, endOfWeek: d, getISOWeek: u, getWeek: h, startOfBroadcastWeek: p, startOfISOWeek: f, startOfWeek: m } = n, b = e.reduce((y, x) => {
|
|
8241
|
-
const v = o.broadcastCalendar ? p(x, n) : o.ISOWeek ? f(x) : m(x), C = o.broadcastCalendar ? i(x) : o.ISOWeek ? a(s(x)) : d(s(x)),
|
|
8242
|
-
if (o.fixedWeeks &&
|
|
8243
|
-
const _ = t.filter((
|
|
8244
|
-
const
|
|
8245
|
-
return
|
|
8244
|
+
const v = o.broadcastCalendar ? p(x, n) : o.ISOWeek ? f(x) : m(x), C = o.broadcastCalendar ? i(x) : o.ISOWeek ? a(s(x)) : d(s(x)), w = t.filter((_) => _ >= v && _ <= C), S = o.broadcastCalendar ? 35 : 42;
|
|
8245
|
+
if (o.fixedWeeks && w.length < S) {
|
|
8246
|
+
const _ = t.filter((z) => {
|
|
8247
|
+
const R = S - w.length;
|
|
8248
|
+
return z > C && z <= r(C, R);
|
|
8246
8249
|
});
|
|
8247
|
-
|
|
8250
|
+
w.push(..._);
|
|
8248
8251
|
}
|
|
8249
|
-
const
|
|
8250
|
-
const
|
|
8251
|
-
return
|
|
8252
|
-
}, []),
|
|
8253
|
-
return y.push(
|
|
8252
|
+
const k = w.reduce((_, z) => {
|
|
8253
|
+
const R = o.ISOWeek ? u(z) : h(z), G = _.find((P) => P.weekNumber === R), j = new Qi(z, x, n);
|
|
8254
|
+
return G ? G.days.push(j) : _.push(new mg(R, [j])), _;
|
|
8255
|
+
}, []), D = new fg(x, k);
|
|
8256
|
+
return y.push(D), y;
|
|
8254
8257
|
}, []);
|
|
8255
8258
|
return o.reverseMonths ? b.reverse() : b;
|
|
8256
8259
|
}
|
|
@@ -8297,13 +8300,13 @@ function Of(e, t) {
|
|
|
8297
8300
|
e.month ? a : void 0
|
|
8298
8301
|
);
|
|
8299
8302
|
U(() => {
|
|
8300
|
-
const
|
|
8301
|
-
d(
|
|
8303
|
+
const D = vr(e, o, n, t);
|
|
8304
|
+
d(D);
|
|
8302
8305
|
}, [e.timeZone]);
|
|
8303
|
-
const u = _f(s, n, e, t), h = Sf(u, e.endMonth ? i(e.endMonth) : void 0, e, t), p = zf(u, h, e, t), f = Mf(p), m = If(p), b = Ef(s, o, e, t), y = Tf(s, n, e, t), { disableNavigation: x, onMonthChange: v } = e, C = (
|
|
8306
|
+
const u = _f(s, n, e, t), h = Sf(u, e.endMonth ? i(e.endMonth) : void 0, e, t), p = zf(u, h, e, t), f = Mf(p), m = If(p), b = Ef(s, o, e, t), y = Tf(s, n, e, t), { disableNavigation: x, onMonthChange: v } = e, C = (D) => f.some((_) => _.days.some((z) => z.isEqualTo(D))), w = (D) => {
|
|
8304
8307
|
if (x)
|
|
8305
8308
|
return;
|
|
8306
|
-
let _ = r(
|
|
8309
|
+
let _ = r(D);
|
|
8307
8310
|
o && _ < r(o) && (_ = r(o)), n && _ > r(n) && (_ = r(n)), d(_), v == null || v(_);
|
|
8308
8311
|
};
|
|
8309
8312
|
return {
|
|
@@ -8314,9 +8317,9 @@ function Of(e, t) {
|
|
|
8314
8317
|
navEnd: n,
|
|
8315
8318
|
previousMonth: b,
|
|
8316
8319
|
nextMonth: y,
|
|
8317
|
-
goToMonth:
|
|
8318
|
-
goToDay: (
|
|
8319
|
-
C(
|
|
8320
|
+
goToMonth: w,
|
|
8321
|
+
goToDay: (D) => {
|
|
8322
|
+
C(D) || w(D.date);
|
|
8320
8323
|
}
|
|
8321
8324
|
};
|
|
8322
8325
|
}
|
|
@@ -8336,16 +8339,16 @@ function Nf(e, t, o, n) {
|
|
|
8336
8339
|
return r || (r = e.find((a) => xr(t(a)))), r;
|
|
8337
8340
|
}
|
|
8338
8341
|
function Rf(e, t, o, n, r, i, a) {
|
|
8339
|
-
const { ISOWeek: s, broadcastCalendar: d } = i, { addDays: u, addMonths: h, addWeeks: p, addYears: f, endOfBroadcastWeek: m, endOfISOWeek: b, endOfWeek: y, max: x, min: v, startOfBroadcastWeek: C, startOfISOWeek:
|
|
8340
|
-
let
|
|
8342
|
+
const { ISOWeek: s, broadcastCalendar: d } = i, { addDays: u, addMonths: h, addWeeks: p, addYears: f, endOfBroadcastWeek: m, endOfISOWeek: b, endOfWeek: y, max: x, min: v, startOfBroadcastWeek: C, startOfISOWeek: w, startOfWeek: S } = a;
|
|
8343
|
+
let D = {
|
|
8341
8344
|
day: u,
|
|
8342
8345
|
week: p,
|
|
8343
8346
|
month: h,
|
|
8344
8347
|
year: f,
|
|
8345
|
-
startOfWeek: (_) => d ? C(_, a) : s ?
|
|
8348
|
+
startOfWeek: (_) => d ? C(_, a) : s ? w(_) : S(_),
|
|
8346
8349
|
endOfWeek: (_) => d ? m(_) : s ? b(_) : y(_)
|
|
8347
8350
|
}[e](o, t === "after" ? 1 : -1);
|
|
8348
|
-
return t === "before" && n ?
|
|
8351
|
+
return t === "before" && n ? D = x([n, D]) : t === "after" && r && (D = v([r, D])), D;
|
|
8349
8352
|
}
|
|
8350
8353
|
function ds(e, t, o, n, r, i, a, s = 0) {
|
|
8351
8354
|
if (s > 365)
|
|
@@ -8488,15 +8491,15 @@ function Hf(e) {
|
|
|
8488
8491
|
let t = e;
|
|
8489
8492
|
t.timeZone && (t = {
|
|
8490
8493
|
...e
|
|
8491
|
-
}, t.today && (t.today = new xe(t.today, t.timeZone)), t.month && (t.month = new xe(t.month, t.timeZone)), t.defaultMonth && (t.defaultMonth = new xe(t.defaultMonth, t.timeZone)), t.startMonth && (t.startMonth = new xe(t.startMonth, t.timeZone)), t.endMonth && (t.endMonth = new xe(t.endMonth, t.timeZone)), t.mode === "single" && t.selected ? t.selected = new xe(t.selected, t.timeZone) : t.mode === "multiple" && t.selected ? t.selected = (Zn = t.selected) == null ? void 0 : Zn.map((
|
|
8494
|
+
}, t.today && (t.today = new xe(t.today, t.timeZone)), t.month && (t.month = new xe(t.month, t.timeZone)), t.defaultMonth && (t.defaultMonth = new xe(t.defaultMonth, t.timeZone)), t.startMonth && (t.startMonth = new xe(t.startMonth, t.timeZone)), t.endMonth && (t.endMonth = new xe(t.endMonth, t.timeZone)), t.mode === "single" && t.selected ? t.selected = new xe(t.selected, t.timeZone) : t.mode === "multiple" && t.selected ? t.selected = (Zn = t.selected) == null ? void 0 : Zn.map((K) => new xe(K, t.timeZone)) : t.mode === "range" && t.selected && (t.selected = {
|
|
8492
8495
|
from: t.selected.from ? new xe(t.selected.from, t.timeZone) : void 0,
|
|
8493
8496
|
to: t.selected.to ? new xe(t.selected.to, t.timeZone) : void 0
|
|
8494
8497
|
}));
|
|
8495
|
-
const { components: o, formatters: n, labels: r, dateLib: i, locale: a, classNames: s } =
|
|
8496
|
-
const
|
|
8498
|
+
const { components: o, formatters: n, labels: r, dateLib: i, locale: a, classNames: s } = V(() => {
|
|
8499
|
+
const K = { ...Xi, ...t.locale };
|
|
8497
8500
|
return {
|
|
8498
8501
|
dateLib: new yt({
|
|
8499
|
-
locale:
|
|
8502
|
+
locale: K,
|
|
8500
8503
|
weekStartsOn: t.broadcastCalendar ? 1 : t.weekStartsOn,
|
|
8501
8504
|
firstWeekContainsDate: t.firstWeekContainsDate,
|
|
8502
8505
|
useAdditionalWeekYearTokens: t.useAdditionalWeekYearTokens,
|
|
@@ -8507,7 +8510,7 @@ function Hf(e) {
|
|
|
8507
8510
|
components: Gg(t.components),
|
|
8508
8511
|
formatters: nf(t.formatters),
|
|
8509
8512
|
labels: { ...xf, ...t.labels },
|
|
8510
|
-
locale:
|
|
8513
|
+
locale: K,
|
|
8511
8514
|
classNames: { ...Kg(), ...t.classNames }
|
|
8512
8515
|
};
|
|
8513
8516
|
}, [
|
|
@@ -8524,53 +8527,53 @@ function Hf(e) {
|
|
|
8524
8527
|
t.formatters,
|
|
8525
8528
|
t.labels,
|
|
8526
8529
|
t.classNames
|
|
8527
|
-
]), { captionLayout: d, mode: u, navLayout: h, numberOfMonths: p = 1, onDayBlur: f, onDayClick: m, onDayFocus: b, onDayKeyDown: y, onDayMouseEnter: x, onDayMouseLeave: v, onNextClick: C, onPrevClick:
|
|
8528
|
-
ye && (oe(ye),
|
|
8529
|
-
}, [ye, oe,
|
|
8530
|
+
]), { captionLayout: d, mode: u, navLayout: h, numberOfMonths: p = 1, onDayBlur: f, onDayClick: m, onDayFocus: b, onDayKeyDown: y, onDayMouseEnter: x, onDayMouseLeave: v, onNextClick: C, onPrevClick: w, showWeekNumber: S, styles: k } = t, { formatCaption: D, formatDay: _, formatMonthDropdown: z, formatWeekNumber: R, formatWeekNumberHeader: G, formatWeekdayName: j, formatYearDropdown: P } = n, J = Of(t, i), { days: he, months: te, navStart: ee, navEnd: Le, previousMonth: ye, nextMonth: $e, goToMonth: oe } = J, Z = Hg(he, t, ee, Le, i), { isSelected: ne, select: ut, selected: Qe } = Vf(t, i) ?? {}, { blur: Un, focused: ko, isFocusTarget: qs, moveFocus: Gn, setFocused: $o } = Ff(t, J, Z, ne ?? (() => !1), i), { labelDayButton: Zs, labelGridcell: Xs, labelGrid: Js, labelMonthDropdown: Qs, labelNav: Yn, labelPrevious: ea, labelNext: ta, labelWeekday: oa, labelWeekNumber: na, labelWeekNumberHeader: ra, labelYearDropdown: ia } = r, sa = V(() => af(i, t.ISOWeek), [i, t.ISOWeek]), Kn = u !== void 0 || m !== void 0, Jo = I(() => {
|
|
8531
|
+
ye && (oe(ye), w == null || w(ye));
|
|
8532
|
+
}, [ye, oe, w]), Qo = I(() => {
|
|
8530
8533
|
$e && (oe($e), C == null || C($e));
|
|
8531
|
-
}, [oe, $e, C]), aa = I((
|
|
8532
|
-
|
|
8533
|
-
}, [ut, m, $o]), la = I((
|
|
8534
|
-
$o(
|
|
8535
|
-
}, [b, $o]), ca = I((
|
|
8536
|
-
Un(), f == null || f(
|
|
8537
|
-
}, [Un, f]), da = I((
|
|
8534
|
+
}, [oe, $e, C]), aa = I((K, re) => (Y) => {
|
|
8535
|
+
Y.preventDefault(), Y.stopPropagation(), $o(K), ut == null || ut(K.date, re, Y), m == null || m(K.date, re, Y);
|
|
8536
|
+
}, [ut, m, $o]), la = I((K, re) => (Y) => {
|
|
8537
|
+
$o(K), b == null || b(K.date, re, Y);
|
|
8538
|
+
}, [b, $o]), ca = I((K, re) => (Y) => {
|
|
8539
|
+
Un(), f == null || f(K.date, re, Y);
|
|
8540
|
+
}, [Un, f]), da = I((K, re) => (Y) => {
|
|
8538
8541
|
const ae = {
|
|
8539
8542
|
ArrowLeft: [
|
|
8540
|
-
|
|
8543
|
+
Y.shiftKey ? "month" : "day",
|
|
8541
8544
|
t.dir === "rtl" ? "after" : "before"
|
|
8542
8545
|
],
|
|
8543
8546
|
ArrowRight: [
|
|
8544
|
-
|
|
8547
|
+
Y.shiftKey ? "month" : "day",
|
|
8545
8548
|
t.dir === "rtl" ? "before" : "after"
|
|
8546
8549
|
],
|
|
8547
|
-
ArrowDown: [
|
|
8548
|
-
ArrowUp: [
|
|
8549
|
-
PageUp: [
|
|
8550
|
-
PageDown: [
|
|
8550
|
+
ArrowDown: [Y.shiftKey ? "year" : "week", "after"],
|
|
8551
|
+
ArrowUp: [Y.shiftKey ? "year" : "week", "before"],
|
|
8552
|
+
PageUp: [Y.shiftKey ? "year" : "month", "before"],
|
|
8553
|
+
PageDown: [Y.shiftKey ? "year" : "month", "after"],
|
|
8551
8554
|
Home: ["startOfWeek", "before"],
|
|
8552
8555
|
End: ["endOfWeek", "after"]
|
|
8553
8556
|
};
|
|
8554
|
-
if (ae[
|
|
8555
|
-
|
|
8556
|
-
const [Te, X] = ae[
|
|
8557
|
+
if (ae[Y.key]) {
|
|
8558
|
+
Y.preventDefault(), Y.stopPropagation();
|
|
8559
|
+
const [Te, X] = ae[Y.key];
|
|
8557
8560
|
Gn(Te, X);
|
|
8558
8561
|
}
|
|
8559
|
-
y == null || y(
|
|
8560
|
-
}, [Gn, y, t.dir]), ua = I((
|
|
8561
|
-
x == null || x(
|
|
8562
|
-
}, [x]), ha = I((
|
|
8563
|
-
v == null || v(
|
|
8564
|
-
}, [v]), pa = I((
|
|
8565
|
-
const
|
|
8562
|
+
y == null || y(K.date, re, Y);
|
|
8563
|
+
}, [Gn, y, t.dir]), ua = I((K, re) => (Y) => {
|
|
8564
|
+
x == null || x(K.date, re, Y);
|
|
8565
|
+
}, [x]), ha = I((K, re) => (Y) => {
|
|
8566
|
+
v == null || v(K.date, re, Y);
|
|
8567
|
+
}, [v]), pa = I((K) => (re) => {
|
|
8568
|
+
const Y = Number(re.target.value), ae = i.setMonth(i.startOfMonth(K), Y);
|
|
8566
8569
|
oe(ae);
|
|
8567
|
-
}, [i, oe]), ga = I((
|
|
8568
|
-
const
|
|
8570
|
+
}, [i, oe]), ga = I((K) => (re) => {
|
|
8571
|
+
const Y = Number(re.target.value), ae = i.setYear(i.startOfMonth(K), Y);
|
|
8569
8572
|
oe(ae);
|
|
8570
|
-
}, [i, oe]), { className: fa, style: ma } =
|
|
8571
|
-
className: [s[
|
|
8572
|
-
style: { ...
|
|
8573
|
-
}), [s, t.className, t.style,
|
|
8573
|
+
}, [i, oe]), { className: fa, style: ma } = V(() => ({
|
|
8574
|
+
className: [s[B.Root], t.className].filter(Boolean).join(" "),
|
|
8575
|
+
style: { ...k == null ? void 0 : k[B.Root], ...t.style }
|
|
8576
|
+
}), [s, t.className, t.style, k]), ba = Yg(t), qn = H(null);
|
|
8574
8577
|
Cf(qn, !!t.animate, {
|
|
8575
8578
|
classNames: s,
|
|
8576
8579
|
months: te,
|
|
@@ -8589,7 +8592,7 @@ function Hf(e) {
|
|
|
8589
8592
|
getModifiers: Z,
|
|
8590
8593
|
components: o,
|
|
8591
8594
|
classNames: s,
|
|
8592
|
-
styles:
|
|
8595
|
+
styles: k,
|
|
8593
8596
|
labels: r,
|
|
8594
8597
|
formatters: n
|
|
8595
8598
|
};
|
|
@@ -8601,29 +8604,29 @@ function Hf(e) {
|
|
|
8601
8604
|
{ rootRef: t.animate ? qn : void 0, className: fa, style: ma, dir: t.dir, id: t.id, lang: t.lang, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], ...ba },
|
|
8602
8605
|
T.createElement(
|
|
8603
8606
|
o.Months,
|
|
8604
|
-
{ className: s[
|
|
8605
|
-
!t.hideNavigation && !h && T.createElement(o.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: s[
|
|
8606
|
-
te.map((
|
|
8607
|
+
{ className: s[B.Months], style: k == null ? void 0 : k[B.Months] },
|
|
8608
|
+
!t.hideNavigation && !h && T.createElement(o.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: s[B.Nav], style: k == null ? void 0 : k[B.Nav], "aria-label": Yn(), onPreviousClick: Jo, onNextClick: Qo, previousMonth: ye, nextMonth: $e }),
|
|
8609
|
+
te.map((K, re) => T.createElement(
|
|
8607
8610
|
o.Month,
|
|
8608
8611
|
{
|
|
8609
8612
|
"data-animated-month": t.animate ? "true" : void 0,
|
|
8610
|
-
className: s[
|
|
8611
|
-
style:
|
|
8613
|
+
className: s[B.Month],
|
|
8614
|
+
style: k == null ? void 0 : k[B.Month],
|
|
8612
8615
|
// biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
|
|
8613
8616
|
key: re,
|
|
8614
8617
|
displayIndex: re,
|
|
8615
|
-
calendarMonth:
|
|
8618
|
+
calendarMonth: K
|
|
8616
8619
|
},
|
|
8617
8620
|
h === "around" && !t.hideNavigation && re === 0 && T.createElement(
|
|
8618
8621
|
o.PreviousMonthButton,
|
|
8619
|
-
{ type: "button", className: s[
|
|
8620
|
-
T.createElement(o.Chevron, { disabled: ye ? void 0 : !0, className: s[
|
|
8622
|
+
{ type: "button", className: s[B.PreviousMonthButton], tabIndex: ye ? void 0 : -1, "aria-disabled": ye ? void 0 : !0, "aria-label": ea(ye), onClick: Jo, "data-animated-button": t.animate ? "true" : void 0 },
|
|
8623
|
+
T.createElement(o.Chevron, { disabled: ye ? void 0 : !0, className: s[B.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
|
|
8621
8624
|
),
|
|
8622
|
-
T.createElement(o.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: s[
|
|
8625
|
+
T.createElement(o.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: s[B.MonthCaption], style: k == null ? void 0 : k[B.MonthCaption], calendarMonth: K, displayIndex: re }, d != null && d.startsWith("dropdown") ? T.createElement(
|
|
8623
8626
|
o.DropdownNav,
|
|
8624
|
-
{ className: s[
|
|
8625
|
-
d === "dropdown" || d === "dropdown-months" ? T.createElement(o.MonthsDropdown, { className: s[
|
|
8626
|
-
d === "dropdown" || d === "dropdown-years" ? T.createElement(o.YearsDropdown, { className: s[
|
|
8627
|
+
{ className: s[B.Dropdowns], style: k == null ? void 0 : k[B.Dropdowns] },
|
|
8628
|
+
d === "dropdown" || d === "dropdown-months" ? T.createElement(o.MonthsDropdown, { className: s[B.MonthsDropdown], "aria-label": Qs(), classNames: s, components: o, disabled: !!t.disableNavigation, onChange: pa(K.date), options: rf(K.date, ee, Le, n, i), style: k == null ? void 0 : k[B.Dropdown], value: i.getMonth(K.date) }) : T.createElement("span", null, z(K.date, i)),
|
|
8629
|
+
d === "dropdown" || d === "dropdown-years" ? T.createElement(o.YearsDropdown, { className: s[B.YearsDropdown], "aria-label": ia(i.options), classNames: s, components: o, disabled: !!t.disableNavigation, onChange: ga(K.date), options: lf(ee, Le, n, i, !!t.reverseYears), style: k == null ? void 0 : k[B.Dropdown], value: i.getYear(K.date) }) : T.createElement("span", null, P(K.date, i)),
|
|
8627
8630
|
T.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
8628
8631
|
border: 0,
|
|
8629
8632
|
clip: "rect(0 0 0 0)",
|
|
@@ -8635,43 +8638,43 @@ function Hf(e) {
|
|
|
8635
8638
|
width: "1px",
|
|
8636
8639
|
whiteSpace: "nowrap",
|
|
8637
8640
|
wordWrap: "normal"
|
|
8638
|
-
} },
|
|
8641
|
+
} }, D(K.date, i.options, i))
|
|
8639
8642
|
) : (
|
|
8640
8643
|
// biome-ignore lint/a11y/useSemanticElements: breaking change
|
|
8641
|
-
T.createElement(o.CaptionLabel, { className: s[
|
|
8644
|
+
T.createElement(o.CaptionLabel, { className: s[B.CaptionLabel], role: "status", "aria-live": "polite" }, D(K.date, i.options, i))
|
|
8642
8645
|
)),
|
|
8643
8646
|
h === "around" && !t.hideNavigation && re === p - 1 && T.createElement(
|
|
8644
8647
|
o.NextMonthButton,
|
|
8645
|
-
{ type: "button", className: s[
|
|
8646
|
-
T.createElement(o.Chevron, { disabled: $e ? void 0 : !0, className: s[
|
|
8648
|
+
{ type: "button", className: s[B.NextMonthButton], tabIndex: $e ? void 0 : -1, "aria-disabled": $e ? void 0 : !0, "aria-label": ta($e), onClick: Qo, "data-animated-button": t.animate ? "true" : void 0 },
|
|
8649
|
+
T.createElement(o.Chevron, { disabled: $e ? void 0 : !0, className: s[B.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
|
|
8647
8650
|
),
|
|
8648
|
-
re === p - 1 && h === "after" && !t.hideNavigation && T.createElement(o.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: s[
|
|
8651
|
+
re === p - 1 && h === "after" && !t.hideNavigation && T.createElement(o.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: s[B.Nav], style: k == null ? void 0 : k[B.Nav], "aria-label": Yn(), onPreviousClick: Jo, onNextClick: Qo, previousMonth: ye, nextMonth: $e }),
|
|
8649
8652
|
T.createElement(
|
|
8650
8653
|
o.MonthGrid,
|
|
8651
|
-
{ role: "grid", "aria-multiselectable": u === "multiple" || u === "range", "aria-label": Js(
|
|
8654
|
+
{ role: "grid", "aria-multiselectable": u === "multiple" || u === "range", "aria-label": Js(K.date, i.options, i) || void 0, className: s[B.MonthGrid], style: k == null ? void 0 : k[B.MonthGrid] },
|
|
8652
8655
|
!t.hideWeekdays && T.createElement(
|
|
8653
8656
|
o.Weekdays,
|
|
8654
|
-
{ "data-animated-weekdays": t.animate ? "true" : void 0, className: s[
|
|
8655
|
-
S && T.createElement(o.WeekNumberHeader, { "aria-label": ra(i.options), className: s[
|
|
8656
|
-
sa.map((
|
|
8657
|
+
{ "data-animated-weekdays": t.animate ? "true" : void 0, className: s[B.Weekdays], style: k == null ? void 0 : k[B.Weekdays] },
|
|
8658
|
+
S && T.createElement(o.WeekNumberHeader, { "aria-label": ra(i.options), className: s[B.WeekNumberHeader], style: k == null ? void 0 : k[B.WeekNumberHeader], scope: "col" }, G()),
|
|
8659
|
+
sa.map((Y) => T.createElement(o.Weekday, { "aria-label": oa(Y, i.options, i), className: s[B.Weekday], key: String(Y), style: k == null ? void 0 : k[B.Weekday], scope: "col" }, j(Y, i.options, i)))
|
|
8657
8660
|
),
|
|
8658
|
-
T.createElement(o.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: s[
|
|
8661
|
+
T.createElement(o.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: s[B.Weeks], style: k == null ? void 0 : k[B.Weeks] }, K.weeks.map((Y) => T.createElement(
|
|
8659
8662
|
o.Week,
|
|
8660
|
-
{ className: s[
|
|
8663
|
+
{ className: s[B.Week], key: Y.weekNumber, style: k == null ? void 0 : k[B.Week], week: Y },
|
|
8661
8664
|
S && // biome-ignore lint/a11y/useSemanticElements: react component
|
|
8662
|
-
T.createElement(o.WeekNumber, { week:
|
|
8665
|
+
T.createElement(o.WeekNumber, { week: Y, style: k == null ? void 0 : k[B.WeekNumber], "aria-label": na(Y.weekNumber, {
|
|
8663
8666
|
locale: a
|
|
8664
|
-
}), className: s[
|
|
8665
|
-
|
|
8667
|
+
}), className: s[B.WeekNumber], scope: "row", role: "rowheader" }, R(Y.weekNumber, i)),
|
|
8668
|
+
Y.days.map((ae) => {
|
|
8666
8669
|
const { date: Te } = ae, X = Z(ae);
|
|
8667
8670
|
if (X[de.focused] = !X.hidden && !!(ko != null && ko.isEqualTo(ae)), X[qe.selected] = (ne == null ? void 0 : ne(Te)) || X.selected, Wn(Qe)) {
|
|
8668
8671
|
const { from: en, to: tn } = Qe;
|
|
8669
8672
|
X[qe.range_start] = !!(en && tn && i.isSameDay(Te, en)), X[qe.range_end] = !!(en && tn && i.isSameDay(Te, tn)), X[qe.range_middle] = ft(Qe, Te, !0, i);
|
|
8670
8673
|
}
|
|
8671
|
-
const va = sf(X,
|
|
8674
|
+
const va = sf(X, k, t.modifiersStyles), xa = Ug(X, s, t.modifiersClassNames), wa = !Kn && !X.hidden ? Xs(Te, X, i.options, i) : void 0;
|
|
8672
8675
|
return (
|
|
8673
8676
|
// biome-ignore lint/a11y/useSemanticElements: react component
|
|
8674
|
-
T.createElement(o.Day, { key: `${i.format(Te, "yyyy-MM-dd")}_${i.format(ae.displayMonth, "yyyy-MM")}`, day: ae, modifiers: X, className: xa.join(" "), style: va, role: "gridcell", "aria-selected": X.selected || void 0, "aria-label": wa, "data-day": i.format(Te, "yyyy-MM-dd"), "data-month": ae.outside ? i.format(Te, "yyyy-MM") : void 0, "data-selected": X.selected || void 0, "data-disabled": X.disabled || void 0, "data-hidden": X.hidden || void 0, "data-outside": ae.outside || void 0, "data-focused": X.focused || void 0, "data-today": X.today || void 0 }, !X.hidden && Kn ? T.createElement(o.DayButton, { className: s[
|
|
8677
|
+
T.createElement(o.Day, { key: `${i.format(Te, "yyyy-MM-dd")}_${i.format(ae.displayMonth, "yyyy-MM")}`, day: ae, modifiers: X, className: xa.join(" "), style: va, role: "gridcell", "aria-selected": X.selected || void 0, "aria-label": wa, "data-day": i.format(Te, "yyyy-MM-dd"), "data-month": ae.outside ? i.format(Te, "yyyy-MM") : void 0, "data-selected": X.selected || void 0, "data-disabled": X.disabled || void 0, "data-hidden": X.hidden || void 0, "data-outside": ae.outside || void 0, "data-focused": X.focused || void 0, "data-today": X.today || void 0 }, !X.hidden && Kn ? T.createElement(o.DayButton, { className: s[B.DayButton], style: k == null ? void 0 : k[B.DayButton], type: "button", day: ae, modifiers: X, disabled: X.disabled || void 0, tabIndex: qs(ae) ? 0 : -1, "aria-label": Zs(Te, X, i.options, i), onClick: aa(ae, X), onBlur: ca(ae, X), onFocus: la(ae, X), onKeyDown: da(ae, X), onMouseEnter: ua(ae, X), onMouseLeave: ha(ae, X) }, _(Te, i.options, i)) : !X.hidden && _(ae.date, i.options, i))
|
|
8675
8678
|
);
|
|
8676
8679
|
})
|
|
8677
8680
|
)))
|
|
@@ -8679,11 +8682,11 @@ function Hf(e) {
|
|
|
8679
8682
|
))
|
|
8680
8683
|
),
|
|
8681
8684
|
t.footer && // biome-ignore lint/a11y/useSemanticElements: react component
|
|
8682
|
-
T.createElement(o.Footer, { className: s[
|
|
8685
|
+
T.createElement(o.Footer, { className: s[B.Footer], style: k == null ? void 0 : k[B.Footer], role: "status", "aria-live": "polite" }, t.footer)
|
|
8683
8686
|
)
|
|
8684
8687
|
);
|
|
8685
8688
|
}
|
|
8686
|
-
const Xx =
|
|
8689
|
+
const Xx = A(({ ...e }) => /* @__PURE__ */ c(Uf, { mode: "single", ...e })), Uf = g(Hf)`
|
|
8687
8690
|
font-family: ${l("font-family-default")};
|
|
8688
8691
|
`, Gf = ({
|
|
8689
8692
|
disabled: e,
|
|
@@ -8700,25 +8703,25 @@ const Xx = F(({ ...e }) => /* @__PURE__ */ c(Uf, { mode: "single", ...e })), Uf
|
|
|
8700
8703
|
onSelect: p,
|
|
8701
8704
|
onKeyDown: f
|
|
8702
8705
|
}) => {
|
|
8703
|
-
var
|
|
8704
|
-
const m =
|
|
8706
|
+
var D, _;
|
|
8707
|
+
const m = H(n);
|
|
8705
8708
|
U(() => {
|
|
8706
8709
|
m.current = n;
|
|
8707
8710
|
}, [n]);
|
|
8708
8711
|
const b = I(
|
|
8709
|
-
(
|
|
8710
|
-
let
|
|
8711
|
-
return
|
|
8712
|
-
Ct(P) && P.props.optionKey && P.props.optionKey ===
|
|
8713
|
-
}),
|
|
8712
|
+
(z) => {
|
|
8713
|
+
let R = h == null ? void 0 : h(z), G = u == null ? void 0 : u(z), j;
|
|
8714
|
+
return z && Xn.forEach(o, (P) => {
|
|
8715
|
+
Ct(P) && P.props.optionKey && P.props.optionKey === z && (j = P);
|
|
8716
|
+
}), j !== void 0 && Ct(j) && j.props.label && (G = G ?? j.props.label, R = R ?? j.props.prefixIconId), { label: G ?? "", iconId: R };
|
|
8714
8717
|
},
|
|
8715
8718
|
[o, h, u]
|
|
8716
8719
|
), y = I(
|
|
8717
|
-
(
|
|
8718
|
-
let
|
|
8719
|
-
return Xn.forEach(
|
|
8720
|
-
Ct(
|
|
8721
|
-
}),
|
|
8720
|
+
(z, R) => {
|
|
8721
|
+
let G = null;
|
|
8722
|
+
return Xn.forEach(z, (j, P) => {
|
|
8723
|
+
Ct(j) && j.props.optionKey && j.props.optionKey === R && (G = P);
|
|
8724
|
+
}), G;
|
|
8722
8725
|
},
|
|
8723
8726
|
[]
|
|
8724
8727
|
), [x, v] = W(
|
|
@@ -8727,15 +8730,15 @@ const Xx = F(({ ...e }) => /* @__PURE__ */ c(Uf, { mode: "single", ...e })), Uf
|
|
|
8727
8730
|
U(() => {
|
|
8728
8731
|
v(y(o, m.current));
|
|
8729
8732
|
}, [o, y]);
|
|
8730
|
-
const [C,
|
|
8731
|
-
(
|
|
8732
|
-
), [S,
|
|
8733
|
+
const [C, w] = W(
|
|
8734
|
+
(D = b(n)) == null ? void 0 : D.label
|
|
8735
|
+
), [S, k] = W(
|
|
8733
8736
|
(_ = b(n)) == null ? void 0 : _.iconId
|
|
8734
8737
|
);
|
|
8735
8738
|
return U(() => {
|
|
8736
|
-
const
|
|
8737
|
-
|
|
8738
|
-
}, [n, b]), /* @__PURE__ */ c(Q, { children: ({ cx:
|
|
8739
|
+
const z = b(n);
|
|
8740
|
+
w(z == null ? void 0 : z.label), k(z == null ? void 0 : z.iconId);
|
|
8741
|
+
}, [n, b]), /* @__PURE__ */ c(Q, { children: ({ cx: z }) => /* @__PURE__ */ c(
|
|
8739
8742
|
Kf,
|
|
8740
8743
|
{
|
|
8741
8744
|
onSelect: p,
|
|
@@ -8757,7 +8760,7 @@ const Xx = F(({ ...e }) => /* @__PURE__ */ c(Uf, { mode: "single", ...e })), Uf
|
|
|
8757
8760
|
type: "text",
|
|
8758
8761
|
placeholder: i,
|
|
8759
8762
|
autoComplete: "off",
|
|
8760
|
-
className:
|
|
8763
|
+
className: z(d, "form-input"),
|
|
8761
8764
|
suffixIconId: "Down",
|
|
8762
8765
|
suffixIconColor: e ? "grey" : "black"
|
|
8763
8766
|
}
|
|
@@ -8796,7 +8799,7 @@ const Xx = F(({ ...e }) => /* @__PURE__ */ c(Uf, { mode: "single", ...e })), Uf
|
|
|
8796
8799
|
cursor: default;
|
|
8797
8800
|
border-bottom: 0.5px solid ${l("color-grey60")};
|
|
8798
8801
|
pointer-events: none;
|
|
8799
|
-
`, Qx =
|
|
8802
|
+
`, Qx = A(
|
|
8800
8803
|
({ title: e, message: t }) => /* @__PURE__ */ $(Xf, { children: [
|
|
8801
8804
|
/* @__PURE__ */ c(E, { variant: "body", bold: !0, children: e }),
|
|
8802
8805
|
/* @__PURE__ */ c(E, { variant: "body", color: "grey", children: t })
|
|
@@ -8827,7 +8830,7 @@ const Xx = F(({ ...e }) => /* @__PURE__ */ c(Uf, { mode: "single", ...e })), Uf
|
|
|
8827
8830
|
return t(r, s);
|
|
8828
8831
|
},
|
|
8829
8832
|
[t]
|
|
8830
|
-
), n =
|
|
8833
|
+
), n = V(() => ({
|
|
8831
8834
|
...e.control,
|
|
8832
8835
|
register: o
|
|
8833
8836
|
}), [e.control, o]);
|
|
@@ -8871,7 +8874,7 @@ function em({
|
|
|
8871
8874
|
}
|
|
8872
8875
|
) });
|
|
8873
8876
|
}
|
|
8874
|
-
const tm =
|
|
8877
|
+
const tm = A(() => /* @__PURE__ */ c(
|
|
8875
8878
|
"svg",
|
|
8876
8879
|
{
|
|
8877
8880
|
width: "12",
|
|
@@ -8887,7 +8890,7 @@ const tm = F(() => /* @__PURE__ */ c(
|
|
|
8887
8890
|
}
|
|
8888
8891
|
)
|
|
8889
8892
|
}
|
|
8890
|
-
)), om = (e) => e === void 0 ? /* @__PURE__ */ c(tm, {}) : e ? /* @__PURE__ */ c(N, { iconId: "Check", color: "green", size: "sm" }) : /* @__PURE__ */ c(N, { iconId: "Close", color: "red", size: "sm" }), nm =
|
|
8893
|
+
)), om = (e) => e === void 0 ? /* @__PURE__ */ c(tm, {}) : e ? /* @__PURE__ */ c(N, { iconId: "Check", color: "green", size: "sm" }) : /* @__PURE__ */ c(N, { iconId: "Close", color: "red", size: "sm" }), nm = A(
|
|
8891
8894
|
({
|
|
8892
8895
|
isBlank: e,
|
|
8893
8896
|
requirements: t,
|
|
@@ -8943,9 +8946,9 @@ const tm = F(() => /* @__PURE__ */ c(
|
|
|
8943
8946
|
id: "tooSimilar"
|
|
8944
8947
|
},
|
|
8945
8948
|
...ps
|
|
8946
|
-
], e1 =
|
|
8949
|
+
], e1 = A(
|
|
8947
8950
|
({ name: e, t, hasLabel: o, includeTooSimilar: n }) => {
|
|
8948
|
-
const { getFieldState: r, formState: i } = lm(), { error: a, isDirty: s } = r(e ?? "password", i), d =
|
|
8951
|
+
const { getFieldState: r, formState: i } = lm(), { error: a, isDirty: s } = r(e ?? "password", i), d = V(() => {
|
|
8949
8952
|
const u = (a == null ? void 0 : a.types) ?? {}, h = [];
|
|
8950
8953
|
return !u.minLength && !u.required && h.push("length"), !u.tooSimilar && n && h.push("tooSimilar"), !u[Do.noDigit] && !u[Do.noUpperCase] && h.push("uppercaseAndNumber"), u[Do.noSpecialCharacter] || h.push("specialCharacter"), h;
|
|
8951
8954
|
}, [a == null ? void 0 : a.types, n]);
|
|
@@ -8997,7 +9000,7 @@ const tm = F(() => /* @__PURE__ */ c(
|
|
|
8997
9000
|
}
|
|
8998
9001
|
`;
|
|
8999
9002
|
Be.displayName = "FormLabel";
|
|
9000
|
-
const [mn] = O(["form"]), vt =
|
|
9003
|
+
const [mn] = O(["form"]), vt = A(
|
|
9001
9004
|
({ handleError: e, name: t, hasLabel: o }) => {
|
|
9002
9005
|
const { getFieldState: n, formState: r } = Se(), { error: i } = n(t, r);
|
|
9003
9006
|
if (!i)
|
|
@@ -9196,13 +9199,13 @@ const [mn] = O(["form"]), vt = F(
|
|
|
9196
9199
|
field: { ref: m, ...b },
|
|
9197
9200
|
fieldState: { error: y }
|
|
9198
9201
|
} = Ae({ name: e, control: f, rules: p, disabled: t }), x = _e(), { onChange: v } = b, C = I(
|
|
9199
|
-
(
|
|
9200
|
-
v(
|
|
9202
|
+
(w) => {
|
|
9203
|
+
v(w), h && h(w);
|
|
9201
9204
|
},
|
|
9202
9205
|
[v, h]
|
|
9203
9206
|
);
|
|
9204
|
-
return /* @__PURE__ */ c(Q, { children: ({ cx:
|
|
9205
|
-
/* @__PURE__ */ $(dt, { className:
|
|
9207
|
+
return /* @__PURE__ */ c(Q, { children: ({ cx: w }) => /* @__PURE__ */ $(ct, { children: [
|
|
9208
|
+
/* @__PURE__ */ $(dt, { className: w({ hasLabel: !!o }), children: [
|
|
9206
9209
|
o && /* @__PURE__ */ c(
|
|
9207
9210
|
Be,
|
|
9208
9211
|
{
|
|
@@ -9253,15 +9256,15 @@ const [mn] = O(["form"]), vt = F(
|
|
|
9253
9256
|
...y
|
|
9254
9257
|
}, x) => {
|
|
9255
9258
|
const { control: v } = Se(), {
|
|
9256
|
-
field: { ref: C, ...
|
|
9259
|
+
field: { ref: C, ...w },
|
|
9257
9260
|
fieldState: { error: S }
|
|
9258
|
-
} = Ae({ name: e, control: v, rules: y, disabled: t }),
|
|
9261
|
+
} = Ae({ name: e, control: v, rules: y, disabled: t }), k = _e(), D = Gt([C, x]);
|
|
9259
9262
|
return /* @__PURE__ */ c(Q, { children: ({ cx: _ }) => /* @__PURE__ */ $(ct, { children: [
|
|
9260
9263
|
/* @__PURE__ */ $(dt, { className: _({ hasLabel: !!o }), children: [
|
|
9261
9264
|
o && /* @__PURE__ */ c(
|
|
9262
9265
|
Be,
|
|
9263
9266
|
{
|
|
9264
|
-
formItemId:
|
|
9267
|
+
formItemId: k,
|
|
9265
9268
|
isValid: !S,
|
|
9266
9269
|
required: !!y.required,
|
|
9267
9270
|
children: o
|
|
@@ -9270,15 +9273,15 @@ const [mn] = O(["form"]), vt = F(
|
|
|
9270
9273
|
/* @__PURE__ */ c(
|
|
9271
9274
|
bo,
|
|
9272
9275
|
{
|
|
9273
|
-
...
|
|
9274
|
-
onChange: (
|
|
9275
|
-
y.autoTrim ?
|
|
9276
|
+
...w,
|
|
9277
|
+
onChange: (z) => {
|
|
9278
|
+
y.autoTrim ? w.onChange(z.target.value.trim()) : w.onChange(z.target.value);
|
|
9276
9279
|
},
|
|
9277
|
-
id:
|
|
9280
|
+
id: k,
|
|
9278
9281
|
type: r,
|
|
9279
9282
|
autoFocus: f,
|
|
9280
9283
|
placeholder: n,
|
|
9281
|
-
ref:
|
|
9284
|
+
ref: D,
|
|
9282
9285
|
autoComplete: "off",
|
|
9283
9286
|
prefixIconColor: d,
|
|
9284
9287
|
prefixIconId: s,
|
|
@@ -9470,7 +9473,7 @@ const [mn] = O(["form"]), vt = F(
|
|
|
9470
9473
|
align-items: center;
|
|
9471
9474
|
justify-content: flex-start;
|
|
9472
9475
|
column-gap: ${uo("label-column-gap")};
|
|
9473
|
-
`, a1 =
|
|
9476
|
+
`, a1 = A(
|
|
9474
9477
|
({ nameBlackList: e, maxLength: t, t: o, ...n }) => {
|
|
9475
9478
|
const r = I(
|
|
9476
9479
|
(i) => eu.test(i) ? t && i.length > t ? (o == null ? void 0 : o("form.tooLongName")) ?? `Cannot be longer than ${t}.` : e && e.includes(i) ? (o == null ? void 0 : o("form.duplicateName")) ?? "This name is already taken" : !0 : (o == null ? void 0 : o("form.noLeadingOrTrailingSpacesName")) ?? "Cannot have leading or trailing spaces.",
|
|
@@ -9506,13 +9509,13 @@ const [mn] = O(["form"]), vt = F(
|
|
|
9506
9509
|
}) => {
|
|
9507
9510
|
const { control: x } = Se(), {
|
|
9508
9511
|
field: { ref: v, ...C },
|
|
9509
|
-
fieldState: { error:
|
|
9510
|
-
} = Ae({ name: e, control: x, rules: y, disabled: t }), S = _e(),
|
|
9511
|
-
(_,
|
|
9512
|
-
C.onChange(
|
|
9512
|
+
fieldState: { error: w }
|
|
9513
|
+
} = Ae({ name: e, control: x, rules: y, disabled: t }), S = _e(), k = I(
|
|
9514
|
+
(_, z) => {
|
|
9515
|
+
C.onChange(z ?? "");
|
|
9513
9516
|
},
|
|
9514
9517
|
[C]
|
|
9515
|
-
),
|
|
9518
|
+
), D = V(() => {
|
|
9516
9519
|
if (C.value)
|
|
9517
9520
|
return {
|
|
9518
9521
|
id: C.value,
|
|
@@ -9525,7 +9528,7 @@ const [mn] = O(["form"]), vt = F(
|
|
|
9525
9528
|
Be,
|
|
9526
9529
|
{
|
|
9527
9530
|
formItemId: S,
|
|
9528
|
-
isValid: !
|
|
9531
|
+
isValid: !w,
|
|
9529
9532
|
required: !!y.required,
|
|
9530
9533
|
children: o
|
|
9531
9534
|
}
|
|
@@ -9534,8 +9537,8 @@ const [mn] = O(["form"]), vt = F(
|
|
|
9534
9537
|
Cp,
|
|
9535
9538
|
{
|
|
9536
9539
|
options: m,
|
|
9537
|
-
selected:
|
|
9538
|
-
onSelectionChange:
|
|
9540
|
+
selected: D,
|
|
9541
|
+
onSelectionChange: k,
|
|
9539
9542
|
children: /* @__PURE__ */ $(km, { children: [
|
|
9540
9543
|
/* @__PURE__ */ c(On, { variant: "body", color: "dark", children: C.value }),
|
|
9541
9544
|
/* @__PURE__ */ c($m, { children: /* @__PURE__ */ c(N, { iconId: "Down", size: "sm", color: "black" }) })
|
|
@@ -9571,7 +9574,7 @@ const [mn] = O(["form"]), vt = F(
|
|
|
9571
9574
|
placeholder: i,
|
|
9572
9575
|
...a
|
|
9573
9576
|
}) => {
|
|
9574
|
-
const { control: s } = Se(), d =
|
|
9577
|
+
const { control: s } = Se(), d = H(null), {
|
|
9575
9578
|
field: { ref: u, value: h, onChange: p, ...f },
|
|
9576
9579
|
fieldState: { error: m }
|
|
9577
9580
|
} = Ae({ name: e, control: s, rules: a, disabled: t }), b = _e(), y = Gt([u, d]), x = I(() => {
|
|
@@ -9581,18 +9584,18 @@ const [mn] = O(["form"]), vt = F(
|
|
|
9581
9584
|
}, []), C = I(
|
|
9582
9585
|
(S) => {
|
|
9583
9586
|
S.preventDefault();
|
|
9584
|
-
let
|
|
9587
|
+
let k = !1;
|
|
9585
9588
|
if (S.dataTransfer.items.length)
|
|
9586
|
-
for (let
|
|
9587
|
-
const _ = S.dataTransfer.items[
|
|
9589
|
+
for (let D = 0; D < S.dataTransfer.items.length && !k; D++) {
|
|
9590
|
+
const _ = S.dataTransfer.items[D];
|
|
9588
9591
|
if (_.kind === "file") {
|
|
9589
|
-
const
|
|
9590
|
-
|
|
9592
|
+
const z = _.getAsFile();
|
|
9593
|
+
z && (k = !0, p(z));
|
|
9591
9594
|
}
|
|
9592
9595
|
}
|
|
9593
9596
|
},
|
|
9594
9597
|
[p]
|
|
9595
|
-
),
|
|
9598
|
+
), w = I(() => {
|
|
9596
9599
|
p(void 0);
|
|
9597
9600
|
}, [p]);
|
|
9598
9601
|
return /* @__PURE__ */ c(Q, { children: ({ cx: S }) => /* @__PURE__ */ $(ct, { children: [
|
|
@@ -9612,7 +9615,7 @@ const [mn] = O(["form"]), vt = F(
|
|
|
9612
9615
|
/* @__PURE__ */ c(
|
|
9613
9616
|
_m,
|
|
9614
9617
|
{
|
|
9615
|
-
onClick:
|
|
9618
|
+
onClick: w,
|
|
9616
9619
|
iconId: "Close",
|
|
9617
9620
|
size: "sm",
|
|
9618
9621
|
color: "black"
|
|
@@ -9636,8 +9639,8 @@ const [mn] = O(["form"]), vt = F(
|
|
|
9636
9639
|
value: h == null ? void 0 : h.fileName,
|
|
9637
9640
|
...f,
|
|
9638
9641
|
id: b,
|
|
9639
|
-
onChange: (
|
|
9640
|
-
|
|
9642
|
+
onChange: (k) => {
|
|
9643
|
+
k.target.files && p(k.target.files[0]);
|
|
9641
9644
|
},
|
|
9642
9645
|
type: "file",
|
|
9643
9646
|
ref: y
|
|
@@ -9697,13 +9700,13 @@ const [mn] = O(["form"]), vt = F(
|
|
|
9697
9700
|
field: { value: b, onChange: y },
|
|
9698
9701
|
fieldState: { error: x }
|
|
9699
9702
|
} = Ae({ name: e, control: m, rules: f, disabled: t }), v = _e(), C = I(
|
|
9700
|
-
(
|
|
9701
|
-
y(
|
|
9703
|
+
(w) => {
|
|
9704
|
+
y(w);
|
|
9702
9705
|
},
|
|
9703
9706
|
[y]
|
|
9704
9707
|
);
|
|
9705
|
-
return /* @__PURE__ */ c(Q, { children: ({ cx:
|
|
9706
|
-
/* @__PURE__ */ $(dt, { className:
|
|
9708
|
+
return /* @__PURE__ */ c(Q, { children: ({ cx: w }) => /* @__PURE__ */ $(ct, { children: [
|
|
9709
|
+
/* @__PURE__ */ $(dt, { className: w({ hasLabel: !!o }), children: [
|
|
9707
9710
|
o && /* @__PURE__ */ c(
|
|
9708
9711
|
Be,
|
|
9709
9712
|
{
|
|
@@ -9840,14 +9843,14 @@ const Mm = se(
|
|
|
9840
9843
|
disableSelectionStyling: s = !1
|
|
9841
9844
|
}) => {
|
|
9842
9845
|
var x;
|
|
9843
|
-
const d = be(Jt), u =
|
|
9846
|
+
const d = be(Jt), u = V(() => {
|
|
9844
9847
|
if (!n)
|
|
9845
9848
|
return;
|
|
9846
9849
|
if (typeof n == "function")
|
|
9847
9850
|
return n(e);
|
|
9848
9851
|
const v = e.type;
|
|
9849
9852
|
return v ? n[v] : void 0;
|
|
9850
|
-
}, [n, e]), h =
|
|
9853
|
+
}, [n, e]), h = V(() => {
|
|
9851
9854
|
if (!(r != null && r.length))
|
|
9852
9855
|
return;
|
|
9853
9856
|
const v = t.originalItems.get(e.id);
|
|
@@ -9911,7 +9914,7 @@ const Mm = se(
|
|
|
9911
9914
|
b && !y && x,
|
|
9912
9915
|
!b && !y && v,
|
|
9913
9916
|
(() => {
|
|
9914
|
-
const C = e.items,
|
|
9917
|
+
const C = e.items, w = (_) => /* @__PURE__ */ c(
|
|
9915
9918
|
Mm,
|
|
9916
9919
|
{
|
|
9917
9920
|
item: _,
|
|
@@ -9926,25 +9929,25 @@ const Mm = se(
|
|
|
9926
9929
|
_.id
|
|
9927
9930
|
);
|
|
9928
9931
|
if (!p)
|
|
9929
|
-
return C.map(
|
|
9930
|
-
const S = [],
|
|
9932
|
+
return C.map(w);
|
|
9933
|
+
const S = [], k = /* @__PURE__ */ new Map();
|
|
9931
9934
|
for (const _ of C) {
|
|
9932
|
-
const
|
|
9933
|
-
if (
|
|
9935
|
+
const z = p(_);
|
|
9936
|
+
if (z === void 0)
|
|
9934
9937
|
S.push(_);
|
|
9935
9938
|
else {
|
|
9936
|
-
const
|
|
9937
|
-
|
|
9939
|
+
const R = k.get(z);
|
|
9940
|
+
R ? R.push(_) : k.set(z, [_]);
|
|
9938
9941
|
}
|
|
9939
9942
|
}
|
|
9940
|
-
const
|
|
9941
|
-
(_,
|
|
9943
|
+
const D = Array.from(k.keys()).sort(
|
|
9944
|
+
(_, z) => _.localeCompare(z)
|
|
9942
9945
|
);
|
|
9943
9946
|
return /* @__PURE__ */ $(pe, { children: [
|
|
9944
|
-
S.map(
|
|
9945
|
-
|
|
9947
|
+
S.map(w),
|
|
9948
|
+
D.map((_) => /* @__PURE__ */ $(T.Fragment, { children: [
|
|
9946
9949
|
/* @__PURE__ */ c(xs, { groupName: _ }),
|
|
9947
|
-
(
|
|
9950
|
+
(k.get(_) ?? []).map(w)
|
|
9948
9951
|
] }, `group-${_}`))
|
|
9949
9952
|
] });
|
|
9950
9953
|
})()
|
|
@@ -9968,12 +9971,12 @@ const Mm = se(
|
|
|
9968
9971
|
viewAction: n,
|
|
9969
9972
|
...r
|
|
9970
9973
|
}) => {
|
|
9971
|
-
const i =
|
|
9974
|
+
const i = V(() => ({
|
|
9972
9975
|
selected: e,
|
|
9973
9976
|
isSelected: (d) => e.includes(d),
|
|
9974
9977
|
toggleSelection: t,
|
|
9975
9978
|
isDisabled: !!o
|
|
9976
|
-
}), [e, t, o]), a =
|
|
9979
|
+
}), [e, t, o]), a = V(() => {
|
|
9977
9980
|
if (n)
|
|
9978
9981
|
return {
|
|
9979
9982
|
viewing: n.viewing,
|
|
@@ -9983,9 +9986,9 @@ const Mm = se(
|
|
|
9983
9986
|
let s = /* @__PURE__ */ c(Jt.Provider, { value: i, children: /* @__PURE__ */ c(Om, { ...r }) });
|
|
9984
9987
|
return a && (s = /* @__PURE__ */ c(ws.Provider, { value: a, children: s })), s;
|
|
9985
9988
|
}
|
|
9986
|
-
), [bn, Rm] = O(["option", "select"]), Cr = 3, wo =
|
|
9989
|
+
), [bn, Rm] = O(["option", "select"]), Cr = 3, wo = A(
|
|
9987
9990
|
({ actions: e, isSelected: t = !1, disableSelectionStyling: o = !1 }) => {
|
|
9988
|
-
const { inlinePrimary: n, overflowPrimary: r, secondary: i } =
|
|
9991
|
+
const { inlinePrimary: n, overflowPrimary: r, secondary: i } = V(() => {
|
|
9989
9992
|
const p = e.filter((m) => m.isPrimary), f = e.filter((m) => !m.isPrimary);
|
|
9990
9993
|
return {
|
|
9991
9994
|
// First MAX_PRIMARY_ACTIONS primary actions shown inline
|
|
@@ -9995,7 +9998,7 @@ const Mm = se(
|
|
|
9995
9998
|
// All secondary actions go to overflow
|
|
9996
9999
|
secondary: f
|
|
9997
10000
|
};
|
|
9998
|
-
}, [e]), a = r.length > 0 || i.length > 0, s = t && !o ? "white" : void 0, d =
|
|
10001
|
+
}, [e]), a = r.length > 0 || i.length > 0, s = t && !o ? "white" : void 0, d = V(() => {
|
|
9999
10002
|
const p = /* @__PURE__ */ new Map();
|
|
10000
10003
|
for (const f of e)
|
|
10001
10004
|
p.set(f.id, f);
|
|
@@ -10154,7 +10157,7 @@ const ks = T.createContext(
|
|
|
10154
10157
|
dataProvider: t,
|
|
10155
10158
|
onListItemAction: o
|
|
10156
10159
|
}) => {
|
|
10157
|
-
const [n, r] = W(), i =
|
|
10160
|
+
const [n, r] = W(), i = V(() => t ? {
|
|
10158
10161
|
action: o,
|
|
10159
10162
|
data: n
|
|
10160
10163
|
} : {
|
|
@@ -10201,7 +10204,7 @@ const ks = T.createContext(
|
|
|
10201
10204
|
isDisabled: b
|
|
10202
10205
|
} = Je(), y = f.includes(e), x = u || b, v = I(() => {
|
|
10203
10206
|
x || m(e);
|
|
10204
|
-
}, [e, m, x]), C = typeof p == "string" ? Number(p) : p,
|
|
10207
|
+
}, [e, m, x]), C = typeof p == "string" ? Number(p) : p, w = h > 0 ? { marginLeft: `${h * C}px` } : void 0;
|
|
10205
10208
|
return /* @__PURE__ */ $(
|
|
10206
10209
|
Pm,
|
|
10207
10210
|
{
|
|
@@ -10210,7 +10213,7 @@ const ks = T.createContext(
|
|
|
10210
10213
|
$isSelected: y,
|
|
10211
10214
|
$isDisabled: x,
|
|
10212
10215
|
"data-depth": h,
|
|
10213
|
-
style:
|
|
10216
|
+
style: w,
|
|
10214
10217
|
children: [
|
|
10215
10218
|
/* @__PURE__ */ c(
|
|
10216
10219
|
Xt,
|
|
@@ -10305,7 +10308,7 @@ const Pm = g.div`
|
|
|
10305
10308
|
isDisabled: y
|
|
10306
10309
|
} = Je(), x = I(() => {
|
|
10307
10310
|
!u && !y && b(e);
|
|
10308
|
-
}, [e, b, u, y]), v = m.includes(e), C = u || y,
|
|
10311
|
+
}, [e, b, u, y]), v = m.includes(e), C = u || y, w = typeof p == "string" ? Number(p) : p, S = h > 0 ? { marginLeft: `${h * w}px` } : void 0;
|
|
10309
10312
|
return /* @__PURE__ */ $(
|
|
10310
10313
|
Km,
|
|
10311
10314
|
{
|
|
@@ -10322,15 +10325,15 @@ const Pm = g.div`
|
|
|
10322
10325
|
/* @__PURE__ */ c(E, { variant: "body", bold: v, children: t }),
|
|
10323
10326
|
o && /* @__PURE__ */ c(Zm, { variant: "small", color: "dark", children: o })
|
|
10324
10327
|
] }) }),
|
|
10325
|
-
s && s.length > 0 && /* @__PURE__ */ c(Xm, { children: s.map((
|
|
10328
|
+
s && s.length > 0 && /* @__PURE__ */ c(Xm, { children: s.map((k) => /* @__PURE__ */ c(
|
|
10326
10329
|
Jm,
|
|
10327
10330
|
{
|
|
10328
10331
|
size: "sm",
|
|
10329
|
-
iconId:
|
|
10330
|
-
color: v && !f ? "white" :
|
|
10331
|
-
title:
|
|
10332
|
+
iconId: k.iconId,
|
|
10333
|
+
color: v && !f ? "white" : k.color,
|
|
10334
|
+
title: k.tooltip
|
|
10332
10335
|
},
|
|
10333
|
-
|
|
10336
|
+
k.id
|
|
10334
10337
|
)) }),
|
|
10335
10338
|
a && a.length > 0 && /* @__PURE__ */ c(
|
|
10336
10339
|
wo,
|
|
@@ -10409,24 +10412,24 @@ const Km = g.div`
|
|
|
10409
10412
|
selected: f,
|
|
10410
10413
|
toggleSelection: m,
|
|
10411
10414
|
isDisabled: b
|
|
10412
|
-
} = Je(), { viewing: y, onItemView: x } = Nm(), v =
|
|
10415
|
+
} = Je(), { viewing: y, onItemView: x } = Nm(), v = H(null), C = f.includes(e), w = y === e, S = u || b, k = I(() => {
|
|
10413
10416
|
S || m(e);
|
|
10414
|
-
}, [e, m, S]),
|
|
10415
|
-
(
|
|
10416
|
-
v.current && v.current.contains(
|
|
10417
|
+
}, [e, m, S]), D = I(
|
|
10418
|
+
(R) => {
|
|
10419
|
+
v.current && v.current.contains(R.target) || S || x(e);
|
|
10417
10420
|
},
|
|
10418
10421
|
[e, x, S]
|
|
10419
|
-
), _ = typeof p == "string" ? Number(p) : p,
|
|
10422
|
+
), _ = typeof p == "string" ? Number(p) : p, z = h > 0 ? { marginLeft: `${h * _}px` } : void 0;
|
|
10420
10423
|
return /* @__PURE__ */ $(
|
|
10421
10424
|
tb,
|
|
10422
10425
|
{
|
|
10423
10426
|
className: d,
|
|
10424
|
-
onClick:
|
|
10427
|
+
onClick: D,
|
|
10425
10428
|
$isSelected: C,
|
|
10426
|
-
$isViewing:
|
|
10429
|
+
$isViewing: w,
|
|
10427
10430
|
$isDisabled: S,
|
|
10428
10431
|
"data-depth": h,
|
|
10429
|
-
style:
|
|
10432
|
+
style: z,
|
|
10430
10433
|
children: [
|
|
10431
10434
|
/* @__PURE__ */ c(
|
|
10432
10435
|
Mi,
|
|
@@ -10434,7 +10437,7 @@ const Km = g.div`
|
|
|
10434
10437
|
ref: v,
|
|
10435
10438
|
checked: C,
|
|
10436
10439
|
disabled: S,
|
|
10437
|
-
onChange:
|
|
10440
|
+
onChange: k
|
|
10438
10441
|
}
|
|
10439
10442
|
),
|
|
10440
10443
|
r && /* @__PURE__ */ c(N, { size: "sm", iconId: r, color: i }),
|
|
@@ -10442,15 +10445,15 @@ const Km = g.div`
|
|
|
10442
10445
|
/* @__PURE__ */ c(E, { variant: "body", bold: C, children: t }),
|
|
10443
10446
|
o && /* @__PURE__ */ c(nb, { variant: "small", color: "dark", children: o })
|
|
10444
10447
|
] }) }),
|
|
10445
|
-
s && s.length > 0 && /* @__PURE__ */ c(rb, { children: s.map((
|
|
10448
|
+
s && s.length > 0 && /* @__PURE__ */ c(rb, { children: s.map((R) => /* @__PURE__ */ c(
|
|
10446
10449
|
ib,
|
|
10447
10450
|
{
|
|
10448
10451
|
size: "sm",
|
|
10449
|
-
iconId:
|
|
10450
|
-
color:
|
|
10451
|
-
title:
|
|
10452
|
+
iconId: R.iconId,
|
|
10453
|
+
color: R.color,
|
|
10454
|
+
title: R.tooltip
|
|
10452
10455
|
},
|
|
10453
|
-
|
|
10456
|
+
R.id
|
|
10454
10457
|
)) }),
|
|
10455
10458
|
a && a.length > 0 && /* @__PURE__ */ c(wo, { actions: a, isSelected: C }),
|
|
10456
10459
|
/* @__PURE__ */ c(sb, { children: /* @__PURE__ */ c(N, { iconId: "Right", color: "blue", size: "sm" }) })
|
|
@@ -11190,7 +11193,7 @@ const ub = g.div`
|
|
|
11190
11193
|
}) => {
|
|
11191
11194
|
const [u, h] = W(
|
|
11192
11195
|
o ?? []
|
|
11193
|
-
), p =
|
|
11196
|
+
), p = H(u ?? []);
|
|
11194
11197
|
Ie(() => {
|
|
11195
11198
|
p.current = u;
|
|
11196
11199
|
}, [u]), U(() => {
|
|
@@ -11207,7 +11210,7 @@ const ub = g.div`
|
|
|
11207
11210
|
), m = I(
|
|
11208
11211
|
(y) => p.current.includes(y),
|
|
11209
11212
|
[]
|
|
11210
|
-
), b =
|
|
11213
|
+
), b = V(() => ({
|
|
11211
11214
|
isSelected: m,
|
|
11212
11215
|
selected: u,
|
|
11213
11216
|
toggleSelection: f,
|
|
@@ -11278,7 +11281,7 @@ function v1(e) {
|
|
|
11278
11281
|
U(() => {
|
|
11279
11282
|
n(e.openedGroups ?? []);
|
|
11280
11283
|
}, [e.openedGroups]);
|
|
11281
|
-
const i =
|
|
11284
|
+
const i = V(() => ({ openedGroups: o, toggleGroup: r }), [o, r]);
|
|
11282
11285
|
return /* @__PURE__ */ c(_s.Provider, { value: i, children: /* @__PURE__ */ c(
|
|
11283
11286
|
Pn,
|
|
11284
11287
|
{
|
|
@@ -11368,7 +11371,7 @@ const fb = () => {
|
|
|
11368
11371
|
`, kb = g(Vn)`
|
|
11369
11372
|
height: initial;
|
|
11370
11373
|
padding: 0;
|
|
11371
|
-
`, $b =
|
|
11374
|
+
`, $b = A(
|
|
11372
11375
|
({
|
|
11373
11376
|
className: e,
|
|
11374
11377
|
disabled: t,
|
|
@@ -11436,7 +11439,7 @@ const fb = () => {
|
|
|
11436
11439
|
) }),
|
|
11437
11440
|
/* @__PURE__ */ c(Ib, { children: /* @__PURE__ */ c(E, { variant: "body", children: e.name }) })
|
|
11438
11441
|
] });
|
|
11439
|
-
}, [ot] = O(["named-list-item"]), $1 =
|
|
11442
|
+
}, [ot] = O(["named-list-item"]), $1 = A(
|
|
11440
11443
|
({
|
|
11441
11444
|
id: e,
|
|
11442
11445
|
iconId: t,
|
|
@@ -11650,7 +11653,7 @@ const Ts = ve(null), Ob = se(
|
|
|
11650
11653
|
setOpenedBranches: n,
|
|
11651
11654
|
dataProvider: r
|
|
11652
11655
|
}) => {
|
|
11653
|
-
const [i, a] = W([]), s = o ?? i, d = n ?? a, u =
|
|
11656
|
+
const [i, a] = W([]), s = o ?? i, d = n ?? a, u = H(s);
|
|
11654
11657
|
Ie(() => {
|
|
11655
11658
|
u.current = s;
|
|
11656
11659
|
}, [s]);
|
|
@@ -11659,15 +11662,15 @@ const Ts = ve(null), Ob = se(
|
|
|
11659
11662
|
if (!(r != null && r.tree))
|
|
11660
11663
|
return;
|
|
11661
11664
|
const m = f[r.idKey], b = u.current.includes(m), y = (v) => v.branches.flatMap((C) => {
|
|
11662
|
-
const
|
|
11663
|
-
return C.branches.length ? [
|
|
11665
|
+
const w = C[r.idKey];
|
|
11666
|
+
return C.branches.length ? [w, ...y(C)] : [];
|
|
11664
11667
|
}), x = y(f);
|
|
11665
11668
|
if (t) {
|
|
11666
|
-
const v = [], C = (
|
|
11667
|
-
const S =
|
|
11669
|
+
const v = [], C = (w) => {
|
|
11670
|
+
const S = w[r.parentIdKey];
|
|
11668
11671
|
if (S) {
|
|
11669
|
-
const
|
|
11670
|
-
|
|
11672
|
+
const k = r.itemsById[S];
|
|
11673
|
+
k && (v.push(S), C(k));
|
|
11671
11674
|
}
|
|
11672
11675
|
};
|
|
11673
11676
|
C(f), d(
|
|
@@ -11688,7 +11691,7 @@ const Ts = ve(null), Ob = se(
|
|
|
11688
11691
|
d,
|
|
11689
11692
|
t
|
|
11690
11693
|
]
|
|
11691
|
-
), p =
|
|
11694
|
+
), p = V(() => ({ openedBranches: s, toggleBranch: h }), [s, h]);
|
|
11692
11695
|
return (
|
|
11693
11696
|
// @ts-expect-error Generics and context dont play well together, since context has to be statically typed.
|
|
11694
11697
|
/* @__PURE__ */ c(Ts.Provider, { value: p, children: e })
|
|
@@ -11822,7 +11825,7 @@ const Ms = ve(null), Ab = () => {
|
|
|
11822
11825
|
isNodeSelectable: x,
|
|
11823
11826
|
branchContentRenderer: v,
|
|
11824
11827
|
itemContentRenderer: C,
|
|
11825
|
-
disableSelectionStyling:
|
|
11828
|
+
disableSelectionStyling: w = !1
|
|
11826
11829
|
}) => {
|
|
11827
11830
|
const S = Ab();
|
|
11828
11831
|
U(() => {
|
|
@@ -11839,14 +11842,14 @@ const Ms = ve(null), Ab = () => {
|
|
|
11839
11842
|
t,
|
|
11840
11843
|
b
|
|
11841
11844
|
]);
|
|
11842
|
-
const
|
|
11845
|
+
const k = V(() => {
|
|
11843
11846
|
if (!p)
|
|
11844
11847
|
return;
|
|
11845
11848
|
if (typeof p == "function")
|
|
11846
11849
|
return p(e);
|
|
11847
11850
|
const Z = e.type;
|
|
11848
11851
|
return Z ? p[Z] : void 0;
|
|
11849
|
-
}, [p, e]),
|
|
11852
|
+
}, [p, e]), D = V(() => {
|
|
11850
11853
|
if (!(f != null && f.length))
|
|
11851
11854
|
return;
|
|
11852
11855
|
const Z = t.originalItems.get(e.id);
|
|
@@ -11872,7 +11875,7 @@ const Ms = ve(null), Ab = () => {
|
|
|
11872
11875
|
color: Z.color,
|
|
11873
11876
|
tooltip: Z.tooltip
|
|
11874
11877
|
}));
|
|
11875
|
-
})(),
|
|
11878
|
+
})(), z = async () => {
|
|
11876
11879
|
if (S.openedBranches.includes(e.id))
|
|
11877
11880
|
i == null || i(e.id);
|
|
11878
11881
|
else if (e.loadingState.status === "idle") {
|
|
@@ -11880,12 +11883,12 @@ const Ms = ve(null), Ab = () => {
|
|
|
11880
11883
|
ne && (await (r == null ? void 0 : r(e.id, ne)), await t.expandBranch(e.id, ne));
|
|
11881
11884
|
}
|
|
11882
11885
|
S.toggleBranch(e.id);
|
|
11883
|
-
},
|
|
11886
|
+
}, R = () => {
|
|
11884
11887
|
const Z = t.originalItems.get(e.id);
|
|
11885
11888
|
Z && (s == null || s(e.id, Z));
|
|
11886
|
-
},
|
|
11889
|
+
}, G = Je();
|
|
11887
11890
|
if (e.isLeaf) {
|
|
11888
|
-
const Z = Fb(n) ? n.build(e) : n, ne =
|
|
11891
|
+
const Z = Fb(n) ? n.build(e) : n, ne = G.selected.includes(e.id), ut = C ? C(e, ne) : void 0, Qe = Ro(e);
|
|
11889
11892
|
return /* @__PURE__ */ c(
|
|
11890
11893
|
Z,
|
|
11891
11894
|
{
|
|
@@ -11895,17 +11898,17 @@ const Ms = ve(null), Ab = () => {
|
|
|
11895
11898
|
onListItemAction: a,
|
|
11896
11899
|
"data-depth": h,
|
|
11897
11900
|
"data-indent-size": y,
|
|
11898
|
-
"data-disable-selection-styling":
|
|
11899
|
-
iconId:
|
|
11900
|
-
iconColor:
|
|
11901
|
-
actions:
|
|
11901
|
+
"data-disable-selection-styling": w,
|
|
11902
|
+
iconId: k == null ? void 0 : k.iconId,
|
|
11903
|
+
iconColor: k == null ? void 0 : k.color,
|
|
11904
|
+
actions: D,
|
|
11902
11905
|
decorators: _,
|
|
11903
11906
|
children: ut
|
|
11904
11907
|
},
|
|
11905
11908
|
e.id
|
|
11906
11909
|
);
|
|
11907
11910
|
}
|
|
11908
|
-
const
|
|
11911
|
+
const j = Es(o) ? o.build(e) : o, P = b || S.openedBranches.includes(e.id), J = e.loadingState.status === "loading", he = e.loadingState.status === "error", te = e.loadingState.status === "loaded", ee = d === e.id, Le = P ? e.branches.length > 0 ? e.branches.map((Z) => /* @__PURE__ */ c(
|
|
11909
11912
|
Os,
|
|
11910
11913
|
{
|
|
11911
11914
|
branch: Z,
|
|
@@ -11927,18 +11930,18 @@ const Ms = ve(null), Ab = () => {
|
|
|
11927
11930
|
isNodeSelectable: x,
|
|
11928
11931
|
branchContentRenderer: v,
|
|
11929
11932
|
itemContentRenderer: C,
|
|
11930
|
-
disableSelectionStyling:
|
|
11933
|
+
disableSelectionStyling: w
|
|
11931
11934
|
},
|
|
11932
11935
|
Z.id
|
|
11933
11936
|
)) : te && u ? [u] : [] : [], ye = v ? v(e, ee) : void 0, $e = x ? x(e) : !0, oe = Ro(e);
|
|
11934
11937
|
return /* @__PURE__ */ c(Kt, { children: () => /* @__PURE__ */ c(
|
|
11935
|
-
|
|
11938
|
+
j,
|
|
11936
11939
|
{
|
|
11937
11940
|
className: e.className,
|
|
11938
11941
|
...e,
|
|
11939
11942
|
...oe !== void 0 ? { [No]: oe } : {},
|
|
11940
|
-
onClick: b ?
|
|
11941
|
-
onSelect:
|
|
11943
|
+
onClick: b ? R : z,
|
|
11944
|
+
onSelect: R,
|
|
11942
11945
|
"data-loading": J,
|
|
11943
11946
|
"data-error": he,
|
|
11944
11947
|
"data-open": P,
|
|
@@ -11947,10 +11950,10 @@ const Ms = ve(null), Ab = () => {
|
|
|
11947
11950
|
"data-depth": h,
|
|
11948
11951
|
"data-indent-size": y,
|
|
11949
11952
|
"data-selectable": $e,
|
|
11950
|
-
"data-disable-selection-styling":
|
|
11951
|
-
iconId:
|
|
11952
|
-
iconColor:
|
|
11953
|
-
actions:
|
|
11953
|
+
"data-disable-selection-styling": w,
|
|
11954
|
+
iconId: k == null ? void 0 : k.iconId,
|
|
11955
|
+
iconColor: k == null ? void 0 : k.color,
|
|
11956
|
+
actions: D,
|
|
11954
11957
|
decorators: _,
|
|
11955
11958
|
content: ye,
|
|
11956
11959
|
children: Le
|
|
@@ -11978,14 +11981,14 @@ const Ms = ve(null), Ab = () => {
|
|
|
11978
11981
|
nodeDecorators: x,
|
|
11979
11982
|
expandedMode: v = !1,
|
|
11980
11983
|
indentSize: C,
|
|
11981
|
-
isNodeSelectable:
|
|
11984
|
+
isNodeSelectable: w,
|
|
11982
11985
|
branchContentRenderer: S,
|
|
11983
|
-
itemContentRenderer:
|
|
11984
|
-
disableSelectionStyling:
|
|
11986
|
+
itemContentRenderer: k,
|
|
11987
|
+
disableSelectionStyling: D = !1
|
|
11985
11988
|
}) => {
|
|
11986
|
-
const [_,
|
|
11989
|
+
const [_, z] = W(!1), [R, G] = W([]), j = f ?? R, P = m ?? G;
|
|
11987
11990
|
U(() => e ? ((async () => {
|
|
11988
|
-
await e.init(),
|
|
11991
|
+
await e.init(), z(!0);
|
|
11989
11992
|
})(), () => {
|
|
11990
11993
|
e.dispose();
|
|
11991
11994
|
}) : void 0, [e]), U(() => {
|
|
@@ -11994,14 +11997,14 @@ const Ms = ve(null), Ab = () => {
|
|
|
11994
11997
|
}, [v, _, e]);
|
|
11995
11998
|
const J = I(
|
|
11996
11999
|
(ee) => {
|
|
11997
|
-
const Le =
|
|
11998
|
-
P(p ? Le ? [] : [ee] : Le ?
|
|
12000
|
+
const Le = j.includes(ee);
|
|
12001
|
+
P(p ? Le ? [] : [ee] : Le ? j.filter((ye) => ye !== ee) : [...j, ee]);
|
|
11999
12002
|
},
|
|
12000
|
-
[
|
|
12001
|
-
), he =
|
|
12002
|
-
openedBranches:
|
|
12003
|
+
[j, P, p]
|
|
12004
|
+
), he = V(() => ({
|
|
12005
|
+
openedBranches: j,
|
|
12003
12006
|
toggleBranch: J
|
|
12004
|
-
}), [
|
|
12007
|
+
}), [j, J]);
|
|
12005
12008
|
if (!_ || !e)
|
|
12006
12009
|
return d || null;
|
|
12007
12010
|
const te = f && f.length > 0 && e.tree.some((ee) => f.includes(ee.id) && !ee.isLeaf && ee.loadingState.status !== "loaded");
|
|
@@ -12030,10 +12033,10 @@ const Ms = ve(null), Ab = () => {
|
|
|
12030
12033
|
nodeDecorators: x,
|
|
12031
12034
|
expandedMode: v,
|
|
12032
12035
|
indentSize: C,
|
|
12033
|
-
isNodeSelectable:
|
|
12036
|
+
isNodeSelectable: w,
|
|
12034
12037
|
branchContentRenderer: S,
|
|
12035
|
-
itemContentRenderer:
|
|
12036
|
-
disableSelectionStyling:
|
|
12038
|
+
itemContentRenderer: k,
|
|
12039
|
+
disableSelectionStyling: D
|
|
12037
12040
|
},
|
|
12038
12041
|
ee.id
|
|
12039
12042
|
))
|
|
@@ -12053,7 +12056,7 @@ const Ms = ve(null), Ab = () => {
|
|
|
12053
12056
|
}) => {
|
|
12054
12057
|
const [s, d] = W(
|
|
12055
12058
|
o ?? []
|
|
12056
|
-
), u =
|
|
12059
|
+
), u = H(s ?? []);
|
|
12057
12060
|
Ie(() => {
|
|
12058
12061
|
u.current = s;
|
|
12059
12062
|
}, [s]), U(() => {
|
|
@@ -12070,7 +12073,7 @@ const Ms = ve(null), Ab = () => {
|
|
|
12070
12073
|
), p = I(
|
|
12071
12074
|
(m) => u.current.includes(m),
|
|
12072
12075
|
[]
|
|
12073
|
-
), f =
|
|
12076
|
+
), f = V(() => ({
|
|
12074
12077
|
isSelected: p,
|
|
12075
12078
|
selected: s,
|
|
12076
12079
|
toggleSelection: h,
|
|
@@ -12122,43 +12125,43 @@ const Ms = ve(null), Ab = () => {
|
|
|
12122
12125
|
const {
|
|
12123
12126
|
isSelected: v,
|
|
12124
12127
|
toggleSelection: C,
|
|
12125
|
-
selected:
|
|
12126
|
-
} = Je(), S = u &&
|
|
12127
|
-
|
|
12128
|
-
},
|
|
12128
|
+
selected: w
|
|
12129
|
+
} = Je(), S = u && w.includes(x.id), k = (R) => {
|
|
12130
|
+
R.stopPropagation(), o == null || o();
|
|
12131
|
+
}, D = () => {
|
|
12129
12132
|
u ? (C(x.id), n == null || n()) : o == null || o();
|
|
12130
|
-
}, _ = typeof d == "string" ? Number(d) : d,
|
|
12133
|
+
}, _ = typeof d == "string" ? Number(d) : d, z = s > 0 ? { marginLeft: `${s * _}px` } : void 0;
|
|
12131
12134
|
return /* @__PURE__ */ $(
|
|
12132
12135
|
Hb,
|
|
12133
12136
|
{
|
|
12134
12137
|
className: t,
|
|
12135
12138
|
isOpen: i,
|
|
12136
|
-
style:
|
|
12139
|
+
style: z,
|
|
12137
12140
|
children: [
|
|
12138
12141
|
/* @__PURE__ */ $(
|
|
12139
12142
|
Ub,
|
|
12140
12143
|
{
|
|
12141
12144
|
"data-loading": r,
|
|
12142
12145
|
"data-selected": S,
|
|
12143
|
-
onClick:
|
|
12146
|
+
onClick: D,
|
|
12144
12147
|
$isSelected: S,
|
|
12145
12148
|
$disableSelectionStyling: h,
|
|
12146
12149
|
children: [
|
|
12147
|
-
!a && /* @__PURE__ */ c(Pb, { onClick:
|
|
12150
|
+
!a && /* @__PURE__ */ c(Pb, { onClick: k, type: "button", children: /* @__PURE__ */ c(jb, { iconId: "CaretRight", size: "xxsm", $isOpen: i }) }),
|
|
12148
12151
|
p && /* @__PURE__ */ c(N, { size: "sm", iconId: p, color: f }),
|
|
12149
12152
|
/* @__PURE__ */ $(Vb, { children: [
|
|
12150
12153
|
y || /* @__PURE__ */ c(E, { variant: "body", bold: !0, children: x.name }),
|
|
12151
12154
|
r && /* @__PURE__ */ c(E, { variant: "body", children: "(Loading...)" })
|
|
12152
12155
|
] }),
|
|
12153
|
-
b && b.length > 0 && /* @__PURE__ */ c(Kb, { children: b.map((
|
|
12156
|
+
b && b.length > 0 && /* @__PURE__ */ c(Kb, { children: b.map((R) => /* @__PURE__ */ c(
|
|
12154
12157
|
qb,
|
|
12155
12158
|
{
|
|
12156
12159
|
size: "sm",
|
|
12157
|
-
iconId:
|
|
12158
|
-
color: S && !h ? "white" :
|
|
12159
|
-
title:
|
|
12160
|
+
iconId: R.iconId,
|
|
12161
|
+
color: S && !h ? "white" : R.color,
|
|
12162
|
+
title: R.tooltip
|
|
12160
12163
|
},
|
|
12161
|
-
|
|
12164
|
+
R.id
|
|
12162
12165
|
)) }),
|
|
12163
12166
|
m && m.length > 0 && /* @__PURE__ */ c(
|
|
12164
12167
|
wo,
|
|
@@ -12280,7 +12283,7 @@ const Ms = ve(null), Ab = () => {
|
|
|
12280
12283
|
display: flex;
|
|
12281
12284
|
flex-direction: column;
|
|
12282
12285
|
row-gap: 4px;
|
|
12283
|
-
`, e0 =
|
|
12286
|
+
`, e0 = A(
|
|
12284
12287
|
({
|
|
12285
12288
|
autoScrollToBottom: e = !1,
|
|
12286
12289
|
className: t,
|
|
@@ -12290,43 +12293,43 @@ const Ms = ve(null), Ab = () => {
|
|
|
12290
12293
|
overscanAmount: i,
|
|
12291
12294
|
renderRow: a
|
|
12292
12295
|
}) => {
|
|
12293
|
-
const [s, d] = W(0), [u, h] = W(0), p =
|
|
12296
|
+
const [s, d] = W(0), [u, h] = W(0), p = H(null), f = H(null), m = o * n, b = Math.ceil(u / n), y = Math.max(
|
|
12294
12297
|
Math.floor(s / n - (i ?? 0)),
|
|
12295
12298
|
0
|
|
12296
12299
|
), x = Math.min(
|
|
12297
12300
|
o - 1,
|
|
12298
12301
|
y + b + (i ?? 0)
|
|
12299
|
-
), v = (
|
|
12300
|
-
d(
|
|
12302
|
+
), v = (w) => {
|
|
12303
|
+
d(w.currentTarget.scrollTop);
|
|
12301
12304
|
};
|
|
12302
12305
|
Ie(() => {
|
|
12303
|
-
const
|
|
12306
|
+
const w = () => {
|
|
12304
12307
|
p.current && h(p.current.clientHeight);
|
|
12305
12308
|
};
|
|
12306
|
-
return
|
|
12309
|
+
return w(), window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
|
|
12307
12310
|
}, []), U(() => {
|
|
12308
12311
|
e && f.current && (f.current.scrollTop = f.current.scrollHeight);
|
|
12309
12312
|
}, [o, e]);
|
|
12310
12313
|
const C = [];
|
|
12311
|
-
for (let
|
|
12314
|
+
for (let w = y; w <= x; w++)
|
|
12312
12315
|
C.push(
|
|
12313
|
-
a(
|
|
12314
|
-
top:
|
|
12316
|
+
a(w, {
|
|
12317
|
+
top: w * n,
|
|
12315
12318
|
height: n,
|
|
12316
12319
|
position: "absolute",
|
|
12317
12320
|
width: "100%"
|
|
12318
12321
|
})
|
|
12319
12322
|
);
|
|
12320
12323
|
return U(() => {
|
|
12321
|
-
const
|
|
12322
|
-
const
|
|
12323
|
-
if (!
|
|
12324
|
+
const w = () => {
|
|
12325
|
+
const k = f.current;
|
|
12326
|
+
if (!k)
|
|
12324
12327
|
return;
|
|
12325
|
-
const
|
|
12326
|
-
!e &&
|
|
12328
|
+
const D = k.scrollHeight - k.scrollTop <= k.clientHeight + n;
|
|
12329
|
+
!e && D && (r == null || r());
|
|
12327
12330
|
}, S = f.current;
|
|
12328
|
-
return S && S.addEventListener("scroll",
|
|
12329
|
-
S && S.removeEventListener("scroll",
|
|
12331
|
+
return S && S.addEventListener("scroll", w), () => {
|
|
12332
|
+
S && S.removeEventListener("scroll", w);
|
|
12330
12333
|
};
|
|
12331
12334
|
}, [e, n, r]), /* @__PURE__ */ c(t0, { ref: p, children: /* @__PURE__ */ c(
|
|
12332
12335
|
o0,
|
|
@@ -12409,7 +12412,7 @@ const Ms = ve(null), Ab = () => {
|
|
|
12409
12412
|
}) => {
|
|
12410
12413
|
const [d, u] = W(
|
|
12411
12414
|
o ?? []
|
|
12412
|
-
), h =
|
|
12415
|
+
), h = H(d ?? []);
|
|
12413
12416
|
Ie(() => {
|
|
12414
12417
|
h.current = d;
|
|
12415
12418
|
}, [d]), U(() => {
|
|
@@ -12426,7 +12429,7 @@ const Ms = ve(null), Ab = () => {
|
|
|
12426
12429
|
), f = I(
|
|
12427
12430
|
(b) => h.current.includes(b),
|
|
12428
12431
|
[]
|
|
12429
|
-
), m =
|
|
12432
|
+
), m = V(() => ({
|
|
12430
12433
|
isSelected: f,
|
|
12431
12434
|
selected: d,
|
|
12432
12435
|
toggleSelection: p,
|
|
@@ -12445,7 +12448,7 @@ const Ms = ve(null), Ab = () => {
|
|
|
12445
12448
|
p
|
|
12446
12449
|
]), /* @__PURE__ */ c(Jt.Provider, { value: m, children: /* @__PURE__ */ c(r0, { dataProvider: i, ...s }) });
|
|
12447
12450
|
}
|
|
12448
|
-
), [gt] = O(["ingredient-card"]), R1 =
|
|
12451
|
+
), [gt] = O(["ingredient-card"]), R1 = A(
|
|
12449
12452
|
({
|
|
12450
12453
|
id: e,
|
|
12451
12454
|
name: t,
|
|
@@ -12456,7 +12459,7 @@ const Ms = ve(null), Ab = () => {
|
|
|
12456
12459
|
blocked: a,
|
|
12457
12460
|
isSmall: s
|
|
12458
12461
|
}) => {
|
|
12459
|
-
const { selected: d, toggleSelection: u } = Je(), { t: h } = fl("dispenser"), p =
|
|
12462
|
+
const { selected: d, toggleSelection: u } = Je(), { t: h } = fl("dispenser"), p = V(() => d.includes(e), [d, e]), f = I(() => {
|
|
12460
12463
|
i && i(e, "delete");
|
|
12461
12464
|
}, [e, i]), m = I(
|
|
12462
12465
|
(y) => {
|
|
@@ -12606,7 +12609,7 @@ const Ms = ve(null), Ab = () => {
|
|
|
12606
12609
|
&.isCollapsed {
|
|
12607
12610
|
border-bottom-width: 0px;
|
|
12608
12611
|
}
|
|
12609
|
-
`, d0 =
|
|
12612
|
+
`, d0 = A(
|
|
12610
12613
|
({ children: e }) => {
|
|
12611
12614
|
const { setOpen: t, open: o } = Vo(), n = I(
|
|
12612
12615
|
(r) => {
|
|
@@ -12634,7 +12637,7 @@ const Ms = ve(null), Ab = () => {
|
|
|
12634
12637
|
);
|
|
12635
12638
|
}
|
|
12636
12639
|
), [pt] = O(["named-section"]), u0 = (e) => e.variant === "selectable", h0 = (e) => {
|
|
12637
|
-
const { variant: t, className: o, children: n, header: r, isCollapsible: i } = e, a =
|
|
12640
|
+
const { variant: t, className: o, children: n, header: r, isCollapsible: i } = e, a = H(null), [s, d, u] = u0(e) ? [e.disabled, e.isSelected, e.onClick] : [e.disabled, !1, void 0], h = e.ContentWrapper ?? g0, p = I(
|
|
12638
12641
|
(f) => {
|
|
12639
12642
|
u && a.current && a.current.contains(f.target) && u();
|
|
12640
12643
|
},
|
|
@@ -12695,7 +12698,7 @@ const Ms = ve(null), Ab = () => {
|
|
|
12695
12698
|
`, g0 = g.div`
|
|
12696
12699
|
display: flex;
|
|
12697
12700
|
width: 100%;
|
|
12698
|
-
`, [qo] = O(["named-section-header"]), F1 =
|
|
12701
|
+
`, [qo] = O(["named-section-header"]), F1 = A(
|
|
12699
12702
|
({
|
|
12700
12703
|
name: e,
|
|
12701
12704
|
description: t,
|
|
@@ -12746,7 +12749,7 @@ const Ms = ve(null), Ab = () => {
|
|
|
12746
12749
|
align-items: center;
|
|
12747
12750
|
justify-content: flex-end;
|
|
12748
12751
|
row-gap: ${qo("row-gap")};
|
|
12749
|
-
`, Rs = ve(!1), v0 = () => be(Rs), x0 =
|
|
12752
|
+
`, Rs = ve(!1), v0 = () => be(Rs), x0 = A(
|
|
12750
12753
|
({
|
|
12751
12754
|
title: e,
|
|
12752
12755
|
disabled: t,
|
|
@@ -12769,7 +12772,7 @@ const Ms = ve(null), Ab = () => {
|
|
|
12769
12772
|
display: flex;
|
|
12770
12773
|
align-items: center;
|
|
12771
12774
|
gap: ${l("spacing-4")};
|
|
12772
|
-
`, $0 =
|
|
12775
|
+
`, $0 = A(
|
|
12773
12776
|
(e) => {
|
|
12774
12777
|
const { selected: t } = Je(), o = v0(), n = t.includes(e.id);
|
|
12775
12778
|
return o && !n ? null : /* @__PURE__ */ c($b, { ...e });
|
|
@@ -12794,7 +12797,7 @@ const Ms = ve(null), Ab = () => {
|
|
|
12794
12797
|
}) => {
|
|
12795
12798
|
const [h, p] = W(
|
|
12796
12799
|
e ?? !1
|
|
12797
|
-
), f =
|
|
12800
|
+
), f = H(null), m = I((y) => {
|
|
12798
12801
|
p(y);
|
|
12799
12802
|
}, []);
|
|
12800
12803
|
U(() => {
|
|
@@ -12971,7 +12974,7 @@ const L1 = ({
|
|
|
12971
12974
|
acceptButtonText: r,
|
|
12972
12975
|
onAccept: i
|
|
12973
12976
|
}, a) => {
|
|
12974
|
-
const s =
|
|
12977
|
+
const s = V(() => {
|
|
12975
12978
|
if (e === "error")
|
|
12976
12979
|
return { iconId: "ExclamationCircle", color: "red" };
|
|
12977
12980
|
if (e === "warn")
|
|
@@ -13060,12 +13063,12 @@ const L1 = ({
|
|
|
13060
13063
|
}
|
|
13061
13064
|
), O0 = g(Hn)`
|
|
13062
13065
|
column-gap: ${E0("footerGap")};
|
|
13063
|
-
`, N0 =
|
|
13066
|
+
`, N0 = A(
|
|
13064
13067
|
({ headerText: e }) => /* @__PURE__ */ $(pe, { children: [
|
|
13065
13068
|
/* @__PURE__ */ c(N, { iconId: "ExclamationCircle", color: "red", size: "lrg" }),
|
|
13066
13069
|
/* @__PURE__ */ c(E, { variant: "h2", color: "dark", children: e })
|
|
13067
13070
|
] })
|
|
13068
|
-
), R0 =
|
|
13071
|
+
), R0 = A(
|
|
13069
13072
|
({ contentText: e, compareText: t, errorText: o }) => {
|
|
13070
13073
|
const n = I(
|
|
13071
13074
|
(i) => i.message && i.message !== "" ? i.message : o ?? "That does not match.",
|
|
@@ -13093,7 +13096,7 @@ const L1 = ({
|
|
|
13093
13096
|
justify-content: flex-start;
|
|
13094
13097
|
flex-direction: column;
|
|
13095
13098
|
row-gap: 8px;
|
|
13096
|
-
`, A0 =
|
|
13099
|
+
`, A0 = A(
|
|
13097
13100
|
({ onSubmit: e }) => {
|
|
13098
13101
|
const { setOpen: t } = Ot(), o = I(() => {
|
|
13099
13102
|
t(!1);
|
|
@@ -13171,20 +13174,20 @@ const L1 = ({
|
|
|
13171
13174
|
disabled: m,
|
|
13172
13175
|
...b,
|
|
13173
13176
|
mode: p === "blur" ? "onBlur" : b.mode
|
|
13174
|
-
}), { setOpen: v } = Ot(), { setError: C, reset:
|
|
13175
|
-
(
|
|
13177
|
+
}), { setOpen: v } = Ot(), { setError: C, reset: w } = x, S = I(
|
|
13178
|
+
(z) => {
|
|
13176
13179
|
s({
|
|
13177
|
-
data:
|
|
13180
|
+
data: z,
|
|
13178
13181
|
closeModal: () => v(!1),
|
|
13179
13182
|
setError: C,
|
|
13180
|
-
resetForm:
|
|
13183
|
+
resetForm: w
|
|
13181
13184
|
});
|
|
13182
13185
|
},
|
|
13183
|
-
[s,
|
|
13184
|
-
),
|
|
13185
|
-
i == null || i(
|
|
13186
|
-
}, [i,
|
|
13187
|
-
(
|
|
13186
|
+
[s, w, C, v]
|
|
13187
|
+
), k = I(() => {
|
|
13188
|
+
i == null || i(w), v(!1);
|
|
13189
|
+
}, [i, w, v]), D = I(
|
|
13190
|
+
(z) => S(z),
|
|
13188
13191
|
[S]
|
|
13189
13192
|
), _ = f ?? Bs;
|
|
13190
13193
|
return /* @__PURE__ */ c(Xr, { ...x, children: /* @__PURE__ */ $(
|
|
@@ -13203,7 +13206,7 @@ const L1 = ({
|
|
|
13203
13206
|
at,
|
|
13204
13207
|
{
|
|
13205
13208
|
text: r ?? "Cancel",
|
|
13206
|
-
onClick:
|
|
13209
|
+
onClick: k,
|
|
13207
13210
|
type: "button",
|
|
13208
13211
|
variant: h ?? "borderless"
|
|
13209
13212
|
}
|
|
@@ -13211,7 +13214,7 @@ const L1 = ({
|
|
|
13211
13214
|
p !== "blur" && /* @__PURE__ */ c(
|
|
13212
13215
|
ms,
|
|
13213
13216
|
{
|
|
13214
|
-
onSubmit:
|
|
13217
|
+
onSubmit: D,
|
|
13215
13218
|
variant: u ?? "primary",
|
|
13216
13219
|
text: n ?? "Submit",
|
|
13217
13220
|
enabledIfClean: a,
|
|
@@ -13259,7 +13262,7 @@ function P1(e) {
|
|
|
13259
13262
|
}
|
|
13260
13263
|
);
|
|
13261
13264
|
}
|
|
13262
|
-
const j1 = ({ children: e }) => /* @__PURE__ */ c(mi, { children: e }), U0 =
|
|
13265
|
+
const j1 = ({ children: e }) => /* @__PURE__ */ c(mi, { children: e }), U0 = q`
|
|
13263
13266
|
background: ${V0("overlay-background")};
|
|
13264
13267
|
display: grid;
|
|
13265
13268
|
place-items: center;
|
|
@@ -13404,7 +13407,7 @@ const j1 = ({ children: e }) => /* @__PURE__ */ c(mi, { children: e }), U0 = K`
|
|
|
13404
13407
|
}
|
|
13405
13408
|
);
|
|
13406
13409
|
}
|
|
13407
|
-
), [Lt] = O(["button"]), U1 =
|
|
13410
|
+
), [Lt] = O(["button"]), U1 = A(
|
|
13408
13411
|
({ onClick: e, open: t, buttonText: o, text: n }) => /* @__PURE__ */ c(oy, { open: t, children: /* @__PURE__ */ $(ny, { children: [
|
|
13409
13412
|
/* @__PURE__ */ c(E, { variant: "h2", color: "light", children: n }),
|
|
13410
13413
|
/* @__PURE__ */ c(at, { variant: "borderless", text: o, onClick: e })
|
|
@@ -13456,17 +13459,17 @@ const j1 = ({ children: e }) => /* @__PURE__ */ c(mi, { children: e }), U0 = K`
|
|
|
13456
13459
|
onOpenChange: f,
|
|
13457
13460
|
whileElementsMounted: Lo,
|
|
13458
13461
|
middleware: [Kr(4), Bo(), qr({ padding: 8 })]
|
|
13459
|
-
}),
|
|
13460
|
-
|
|
13462
|
+
}), w = Fo(C, { enabled: !d }), S = fo(C), k = Wo(C), { getReferenceProps: D, getFloatingProps: _ } = mo([
|
|
13463
|
+
w,
|
|
13461
13464
|
S,
|
|
13462
|
-
|
|
13463
|
-
]),
|
|
13465
|
+
k
|
|
13466
|
+
]), z = I(
|
|
13464
13467
|
(P, J) => {
|
|
13465
13468
|
const he = { ...m }, te = new Set(m[P]);
|
|
13466
13469
|
te.has(J) ? te.delete(J) : te.add(J), he[P] = te, y(he);
|
|
13467
13470
|
},
|
|
13468
13471
|
[m, y]
|
|
13469
|
-
),
|
|
13472
|
+
), R = I(
|
|
13470
13473
|
(P) => {
|
|
13471
13474
|
const J = e.find((te) => te.id === P);
|
|
13472
13475
|
if (!J)
|
|
@@ -13475,12 +13478,12 @@ const j1 = ({ children: e }) => /* @__PURE__ */ c(mi, { children: e }), U0 = K`
|
|
|
13475
13478
|
he[P] = new Set(J.options.map((te) => te.value)), y(he);
|
|
13476
13479
|
},
|
|
13477
13480
|
[e, m, y]
|
|
13478
|
-
),
|
|
13481
|
+
), G = I(() => {
|
|
13479
13482
|
const P = {};
|
|
13480
13483
|
e.forEach((J) => {
|
|
13481
13484
|
P[J.id] = /* @__PURE__ */ new Set();
|
|
13482
13485
|
}), y(P);
|
|
13483
|
-
}, [e, y]),
|
|
13486
|
+
}, [e, y]), j = V(
|
|
13484
13487
|
() => Object.values(m).some((P) => P.size > 0),
|
|
13485
13488
|
[m]
|
|
13486
13489
|
);
|
|
@@ -13490,19 +13493,19 @@ const j1 = ({ children: e }) => /* @__PURE__ */ c(mi, { children: e }), U0 = K`
|
|
|
13490
13493
|
{
|
|
13491
13494
|
ref: x.setReference,
|
|
13492
13495
|
className: a,
|
|
13493
|
-
$isActive:
|
|
13496
|
+
$isActive: j,
|
|
13494
13497
|
$isDisabled: d,
|
|
13495
|
-
...
|
|
13498
|
+
...D(),
|
|
13496
13499
|
children: s || /* @__PURE__ */ $(pe, { children: [
|
|
13497
13500
|
/* @__PURE__ */ c(
|
|
13498
13501
|
N,
|
|
13499
13502
|
{
|
|
13500
13503
|
iconId: "Filter",
|
|
13501
13504
|
size: "sm",
|
|
13502
|
-
color:
|
|
13505
|
+
color: j ? "blue" : "grey"
|
|
13503
13506
|
}
|
|
13504
13507
|
),
|
|
13505
|
-
|
|
13508
|
+
j && /* @__PURE__ */ c(iy, {})
|
|
13506
13509
|
] })
|
|
13507
13510
|
}
|
|
13508
13511
|
),
|
|
@@ -13516,7 +13519,7 @@ const j1 = ({ children: e }) => /* @__PURE__ */ c(mi, { children: e }), U0 = K`
|
|
|
13516
13519
|
/* @__PURE__ */ $(ay, { children: [
|
|
13517
13520
|
/* @__PURE__ */ c(E, { variant: "body", bold: !0, children: "Filters" }),
|
|
13518
13521
|
/* @__PURE__ */ $(ly, { children: [
|
|
13519
|
-
r &&
|
|
13522
|
+
r && j && /* @__PURE__ */ c(cy, { onClick: G, children: /* @__PURE__ */ c(E, { variant: "small", color: "blue", children: "Clear all" }) }),
|
|
13520
13523
|
/* @__PURE__ */ c(dy, { onClick: () => f(!1), children: /* @__PURE__ */ c(N, { iconId: "Close", size: "sm", color: "grey" }) })
|
|
13521
13524
|
] })
|
|
13522
13525
|
] }),
|
|
@@ -13526,7 +13529,7 @@ const j1 = ({ children: e }) => /* @__PURE__ */ c(mi, { children: e }), U0 = K`
|
|
|
13526
13529
|
n && /* @__PURE__ */ c(
|
|
13527
13530
|
gy,
|
|
13528
13531
|
{
|
|
13529
|
-
onClick: () =>
|
|
13532
|
+
onClick: () => R(P.id),
|
|
13530
13533
|
children: /* @__PURE__ */ c(E, { variant: "small", color: "blue", children: "Select all" })
|
|
13531
13534
|
}
|
|
13532
13535
|
)
|
|
@@ -13538,7 +13541,7 @@ const j1 = ({ children: e }) => /* @__PURE__ */ c(mi, { children: e }), U0 = K`
|
|
|
13538
13541
|
my,
|
|
13539
13542
|
{
|
|
13540
13543
|
$isSelected: he,
|
|
13541
|
-
onClick: () =>
|
|
13544
|
+
onClick: () => z(P.id, J.value),
|
|
13542
13545
|
children: [
|
|
13543
13546
|
/* @__PURE__ */ c(by, { $isChecked: he, children: he && /* @__PURE__ */ c(N, { iconId: "Check", size: "xsm", color: "white" }) }),
|
|
13544
13547
|
/* @__PURE__ */ c(E, { variant: "small", children: J.label })
|
|
@@ -13676,8 +13679,8 @@ const j1 = ({ children: e }) => /* @__PURE__ */ c(mi, { children: e }), U0 = K`
|
|
|
13676
13679
|
"view-header",
|
|
13677
13680
|
"option",
|
|
13678
13681
|
"select"
|
|
13679
|
-
]), Tr = 3, Ls =
|
|
13680
|
-
const { inlinePrimary: t, overflowPrimary: o, secondary: n } =
|
|
13682
|
+
]), Tr = 3, Ls = A(({ actions: e }) => {
|
|
13683
|
+
const { inlinePrimary: t, overflowPrimary: o, secondary: n } = V(() => {
|
|
13681
13684
|
const s = e.filter((u) => u.isPrimary), d = e.filter((u) => !u.isPrimary);
|
|
13682
13685
|
return {
|
|
13683
13686
|
// First MAX_PRIMARY_ACTIONS primary actions shown inline
|
|
@@ -13687,7 +13690,7 @@ const j1 = ({ children: e }) => /* @__PURE__ */ c(mi, { children: e }), U0 = K`
|
|
|
13687
13690
|
// All secondary actions go to overflow
|
|
13688
13691
|
secondary: d
|
|
13689
13692
|
};
|
|
13690
|
-
}, [e]), r = o.length > 0 || n.length > 0, i =
|
|
13693
|
+
}, [e]), r = o.length > 0 || n.length > 0, i = V(() => {
|
|
13691
13694
|
const s = /* @__PURE__ */ new Map();
|
|
13692
13695
|
for (const d of e)
|
|
13693
13696
|
s.set(d.id, d);
|
|
@@ -13816,7 +13819,7 @@ const xy = g.div`
|
|
|
13816
13819
|
`, $y = g.div`
|
|
13817
13820
|
width: 16px;
|
|
13818
13821
|
height: 16px;
|
|
13819
|
-
`, [st] = O(["view-header"]), Ws =
|
|
13822
|
+
`, [st] = O(["view-header"]), Ws = A(
|
|
13820
13823
|
({
|
|
13821
13824
|
title: e,
|
|
13822
13825
|
subtitle: t,
|
|
@@ -13827,7 +13830,7 @@ const xy = g.div`
|
|
|
13827
13830
|
collapsed: a,
|
|
13828
13831
|
onToggleCollapse: s
|
|
13829
13832
|
}) => {
|
|
13830
|
-
const d =
|
|
13833
|
+
const d = V(
|
|
13831
13834
|
() => n && n.length > 0,
|
|
13832
13835
|
[n]
|
|
13833
13836
|
);
|
|
@@ -13908,7 +13911,7 @@ const Cy = g.div`
|
|
|
13908
13911
|
align-items: center;
|
|
13909
13912
|
gap: ${st("actions-gap")};
|
|
13910
13913
|
flex-shrink: 0;
|
|
13911
|
-
`, [Tt] = O(["view"]), Ey =
|
|
13914
|
+
`, [Tt] = O(["view"]), Ey = A(
|
|
13912
13915
|
({
|
|
13913
13916
|
title: e,
|
|
13914
13917
|
subtitle: t,
|
|
@@ -13973,7 +13976,7 @@ const My = g.div`
|
|
|
13973
13976
|
flex: 1;
|
|
13974
13977
|
overflow: auto;
|
|
13975
13978
|
padding: ${Tt("content-padding")};
|
|
13976
|
-
`, Ry =
|
|
13979
|
+
`, Ry = A(
|
|
13977
13980
|
({
|
|
13978
13981
|
searchValue: e,
|
|
13979
13982
|
onSearchChange: t,
|
|
@@ -14006,7 +14009,7 @@ const Fy = g.div`
|
|
|
14006
14009
|
flex-shrink: 0;
|
|
14007
14010
|
display: flex;
|
|
14008
14011
|
align-items: center;
|
|
14009
|
-
`, [_o] = O(["view-container"]), Ly =
|
|
14012
|
+
`, [_o] = O(["view-container"]), Ly = A(
|
|
14010
14013
|
({ id: e, direction: t = "vertical", gap: o, children: n, className: r }) => /* @__PURE__ */ c(Wy, { id: e, direction: t, gap: o, className: r, children: n })
|
|
14011
14014
|
);
|
|
14012
14015
|
Ly.displayName = "ViewContainer";
|
|
@@ -14052,9 +14055,9 @@ const Nr = new IntersectionObserver(
|
|
|
14052
14055
|
return e;
|
|
14053
14056
|
const n = e.replace(/\\/g, "/").split(/[/\\]+/);
|
|
14054
14057
|
return t !== !1 && n[n.length - 1] === "" && n.pop(), n.join("/");
|
|
14055
|
-
}, [Ce] = O(["select-view-list"]), jy =
|
|
14058
|
+
}, [Ce] = O(["select-view-list"]), jy = A(
|
|
14056
14059
|
({ id: e, name: t, icon: o, onListItemAction: n, isSelectDisabled: r }) => {
|
|
14057
|
-
const { selected: i, viewing: a } = Py(), s =
|
|
14060
|
+
const { selected: i, viewing: a } = Py(), s = H(null), d = H(null), u = H(!1), h = i === e, p = a === e;
|
|
14058
14061
|
U(() => {
|
|
14059
14062
|
d.current && (h ? (Nr.observe(d.current), u.current = !0) : u.current && (u.current = !1, Nr.unobserve(d.current)));
|
|
14060
14063
|
}, [h]);
|
|
@@ -14165,7 +14168,7 @@ const Nr = new IntersectionObserver(
|
|
|
14165
14168
|
selected: a,
|
|
14166
14169
|
viewing: s
|
|
14167
14170
|
}) => {
|
|
14168
|
-
const d =
|
|
14171
|
+
const d = V(() => ({
|
|
14169
14172
|
selected: a,
|
|
14170
14173
|
viewing: s
|
|
14171
14174
|
}), [a, s]);
|
|
@@ -14214,7 +14217,7 @@ const Nr = new IntersectionObserver(
|
|
|
14214
14217
|
display: flex;
|
|
14215
14218
|
height: 100%;
|
|
14216
14219
|
justify-content: flex-start;
|
|
14217
|
-
`, [Fr] = O(["shell-menu"]), X1 =
|
|
14220
|
+
`, [Fr] = O(["shell-menu"]), X1 = A(
|
|
14218
14221
|
({ text: e, onClick: t, isActive: o }) => /* @__PURE__ */ c(
|
|
14219
14222
|
Ky,
|
|
14220
14223
|
{
|
|
@@ -14236,7 +14239,7 @@ const Nr = new IntersectionObserver(
|
|
|
14236
14239
|
isSortable: o,
|
|
14237
14240
|
onListItemAction: n
|
|
14238
14241
|
}) => {
|
|
14239
|
-
const r =
|
|
14242
|
+
const r = V(() => ({
|
|
14240
14243
|
t,
|
|
14241
14244
|
isSortable: !!o,
|
|
14242
14245
|
onListItemAction: n
|
|
@@ -14260,7 +14263,7 @@ const Nr = new IntersectionObserver(
|
|
|
14260
14263
|
&:first-of-type {
|
|
14261
14264
|
padding-left: ${wt("cell-padding-left-first-in-row")};
|
|
14262
14265
|
}
|
|
14263
|
-
`, Us =
|
|
14266
|
+
`, Us = A(({ cell: e }) => {
|
|
14264
14267
|
const { isSortable: t } = Hs();
|
|
14265
14268
|
return /* @__PURE__ */ c(
|
|
14266
14269
|
Xo,
|
|
@@ -14273,7 +14276,7 @@ const Nr = new IntersectionObserver(
|
|
|
14273
14276
|
}), [Ar] = O(["table"]), Ht = g.tr`
|
|
14274
14277
|
width: 100%;
|
|
14275
14278
|
border-bottom: ${Ar("row-border-bottom-size")} solid ${Ar("border-color")};
|
|
14276
|
-
`, qy =
|
|
14279
|
+
`, qy = A(({ row: e, TdComponent: t }) => {
|
|
14277
14280
|
const o = t ?? Us;
|
|
14278
14281
|
return /* @__PURE__ */ c(Ht, { children: e.getVisibleCells().map((n) => /* @__PURE__ */ c(o, { cell: n }, n.id)) });
|
|
14279
14282
|
}), [Zy] = O(["table"]), Xy = (e) => e.id, Jy = ({
|
|
@@ -14380,7 +14383,7 @@ const Nr = new IntersectionObserver(
|
|
|
14380
14383
|
})) ?? "Click to sort ascending" : (t == null ? void 0 : t("table.cancelSort", { defaultValue: "Cancel sort" })) ?? "Cancel sort" : (t == null ? void 0 : t("table.sort", {
|
|
14381
14384
|
direction: t == null ? void 0 : t("table.descending"),
|
|
14382
14385
|
defaultValue: "Click to sort descending"
|
|
14383
|
-
})) ?? "Click to sort descending", Br =
|
|
14386
|
+
})) ?? "Click to sort descending", Br = A(
|
|
14384
14387
|
({
|
|
14385
14388
|
width: e,
|
|
14386
14389
|
isBlank: t,
|
|
@@ -14529,8 +14532,8 @@ function Wt(e, t, o) {
|
|
|
14529
14532
|
n = p;
|
|
14530
14533
|
let m;
|
|
14531
14534
|
if (o.key && ((s = o.debug) != null && s.call(o)) && (m = Date.now()), r = t(...p), o.key && ((d = o.debug) != null && d.call(o))) {
|
|
14532
|
-
const b = Math.round((Date.now() - h) * 100) / 100, y = Math.round((Date.now() - m) * 100) / 100, x = y / 16, v = (C,
|
|
14533
|
-
for (C = String(C); C.length <
|
|
14535
|
+
const b = Math.round((Date.now() - h) * 100) / 100, y = Math.round((Date.now() - m) * 100) / 100, x = y / 16, v = (C, w) => {
|
|
14536
|
+
for (C = String(C); C.length < w; )
|
|
14534
14537
|
C = " " + C;
|
|
14535
14538
|
return C;
|
|
14536
14539
|
};
|
|
@@ -15079,7 +15082,7 @@ const [Ys] = O(["table"]), yv = (e) => e.id, vv = ({
|
|
|
15079
15082
|
renderEmptyAsStandalone: d,
|
|
15080
15083
|
...u
|
|
15081
15084
|
}) => {
|
|
15082
|
-
const h =
|
|
15085
|
+
const h = H(null), [p, f] = W([]), m = oi({
|
|
15083
15086
|
columns: t,
|
|
15084
15087
|
data: e,
|
|
15085
15088
|
getCoreRowModel: ri(),
|
|
@@ -15239,7 +15242,7 @@ const [Ys] = O(["table"]), yv = (e) => e.id, vv = ({
|
|
|
15239
15242
|
z-index: 1;
|
|
15240
15243
|
`, Iv = g.tbody`
|
|
15241
15244
|
width: 100%;
|
|
15242
|
-
`, tw =
|
|
15245
|
+
`, tw = A(
|
|
15243
15246
|
({
|
|
15244
15247
|
listMaxSize: e,
|
|
15245
15248
|
listMinSize: t,
|
|
@@ -15297,66 +15300,66 @@ const ow = () => zn, nw = ({
|
|
|
15297
15300
|
onDragOver: s,
|
|
15298
15301
|
onDragLeave: d
|
|
15299
15302
|
}) => {
|
|
15300
|
-
const [u, h] = W(!1), [p, f] = W(!1), m = (
|
|
15301
|
-
|
|
15303
|
+
const [u, h] = W(!1), [p, f] = W(!1), m = (w) => {
|
|
15304
|
+
w.preventDefault(), w.stopPropagation();
|
|
15302
15305
|
}, b = I(
|
|
15303
|
-
(
|
|
15304
|
-
m(
|
|
15306
|
+
(w) => {
|
|
15307
|
+
m(w), f(!0), w.dataTransfer && (w.dataTransfer.dropEffect = "move"), s == null || s(w);
|
|
15305
15308
|
},
|
|
15306
15309
|
[s]
|
|
15307
15310
|
), y = I(
|
|
15308
|
-
(
|
|
15309
|
-
m(
|
|
15311
|
+
(w) => {
|
|
15312
|
+
m(w), f(!1), d == null || d(w);
|
|
15310
15313
|
},
|
|
15311
15314
|
[d]
|
|
15312
15315
|
), x = I(
|
|
15313
|
-
(
|
|
15314
|
-
m(
|
|
15316
|
+
(w) => {
|
|
15317
|
+
m(w), h(!1), f(!1), zn = null, a == null || a(w);
|
|
15315
15318
|
},
|
|
15316
15319
|
[a]
|
|
15317
15320
|
), v = I(
|
|
15318
|
-
(
|
|
15319
|
-
var
|
|
15320
|
-
m(
|
|
15321
|
+
(w) => {
|
|
15322
|
+
var k;
|
|
15323
|
+
m(w), h(!1), f(!1);
|
|
15321
15324
|
let S = null;
|
|
15322
15325
|
try {
|
|
15323
15326
|
S = JSON.parse(
|
|
15324
|
-
((
|
|
15327
|
+
((k = w.dataTransfer) == null ? void 0 : k.getData("application/json")) ?? "null"
|
|
15325
15328
|
);
|
|
15326
|
-
} catch (
|
|
15327
|
-
console.error("Invalid drag data:",
|
|
15329
|
+
} catch (D) {
|
|
15330
|
+
console.error("Invalid drag data:", D);
|
|
15328
15331
|
}
|
|
15329
|
-
S && (r == null || r(S,
|
|
15332
|
+
S && (r == null || r(S, w));
|
|
15330
15333
|
},
|
|
15331
15334
|
[r]
|
|
15332
15335
|
), C = I(
|
|
15333
|
-
(
|
|
15334
|
-
var
|
|
15336
|
+
(w) => {
|
|
15337
|
+
var k;
|
|
15335
15338
|
if (!o)
|
|
15336
15339
|
return;
|
|
15337
|
-
|
|
15340
|
+
w.stopPropagation(), h(!0), f(!1), w.dataTransfer && (w.dataTransfer.effectAllowed = "move");
|
|
15338
15341
|
const S = n(t);
|
|
15339
|
-
zn = S, (
|
|
15342
|
+
zn = S, (k = w.dataTransfer) == null || k.setData(
|
|
15340
15343
|
"application/json",
|
|
15341
15344
|
JSON.stringify(S)
|
|
15342
|
-
), i == null || i(t,
|
|
15345
|
+
), i == null || i(t, w);
|
|
15343
15346
|
},
|
|
15344
15347
|
[o, t, i, n]
|
|
15345
15348
|
);
|
|
15346
15349
|
return U(() => {
|
|
15347
|
-
const
|
|
15348
|
-
dragover: (
|
|
15349
|
-
dragenter: (
|
|
15350
|
-
dragleave: (
|
|
15351
|
-
drop: (
|
|
15352
|
-
dragstart: (
|
|
15353
|
-
dragend: (
|
|
15350
|
+
const w = e.current, S = {
|
|
15351
|
+
dragover: (k) => b(k),
|
|
15352
|
+
dragenter: (k) => b(k),
|
|
15353
|
+
dragleave: (k) => y(k),
|
|
15354
|
+
drop: (k) => v(k),
|
|
15355
|
+
dragstart: (k) => C(k),
|
|
15356
|
+
dragend: (k) => x(k)
|
|
15354
15357
|
};
|
|
15355
|
-
return
|
|
15356
|
-
([
|
|
15358
|
+
return w && Object.entries(S).forEach(
|
|
15359
|
+
([k, D]) => w.addEventListener(k, D)
|
|
15357
15360
|
), () => {
|
|
15358
|
-
Object.entries(S).forEach(([
|
|
15359
|
-
|
|
15361
|
+
Object.entries(S).forEach(([k, D]) => {
|
|
15362
|
+
w && w.removeEventListener(k, D);
|
|
15360
15363
|
});
|
|
15361
15364
|
};
|
|
15362
15365
|
}, [
|
|
@@ -16164,7 +16167,7 @@ export {
|
|
|
16164
16167
|
ow as getCurrentDragData,
|
|
16165
16168
|
Mx as getEmailValidation,
|
|
16166
16169
|
Rx as getErrorMessage,
|
|
16167
|
-
|
|
16170
|
+
L as getGlobalToken,
|
|
16168
16171
|
Nx as getPasswordValidation,
|
|
16169
16172
|
p1 as getPropertyWithFallback,
|
|
16170
16173
|
l as getSemanticToken,
|