@fluidattacks/design 3.16.2-pr-03 → 3.16.2-pr-05
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-array/field/index.js +1 -1
- package/dist/components/inputs/fields/input-array/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/lottie/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/{components-DZrISstU.js → components-B_4iUP4N.js} +24 -24
- package/dist/{components-BOk7pvd_.mjs → components-CrFKpI5l.mjs} +175 -178
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -338,7 +338,7 @@ const ae = (e) => ({
|
|
|
338
338
|
), g = j(
|
|
339
339
|
"gap",
|
|
340
340
|
e.gap === void 0 ? void 0 : T.spacing[e.gap]
|
|
341
|
-
), u = j("background-color", e.bgColor), f = j("background", e.bgGradient), y = j("flex-direction", e.flexDirection), b = j("flex-grow", e.flexGrow),
|
|
341
|
+
), u = j("background-color", e.bgColor), f = j("background", e.bgGradient), y = j("flex-direction", e.flexDirection), b = j("flex-grow", e.flexGrow), m = j("justify-content", e.justify), w = j("justify-self", e.justifySelf), v = j("align-items", e.alignItems), C = j("align-self", e.alignSelf), S = j("flex-wrap", e.wrap);
|
|
342
342
|
return `
|
|
343
343
|
${t}
|
|
344
344
|
${i}
|
|
@@ -355,8 +355,8 @@ const ae = (e) => ({
|
|
|
355
355
|
${g}
|
|
356
356
|
${y}
|
|
357
357
|
${b}
|
|
358
|
-
${w}
|
|
359
358
|
${m}
|
|
359
|
+
${w}
|
|
360
360
|
${v}
|
|
361
361
|
${C}
|
|
362
362
|
${S}
|
|
@@ -598,8 +598,8 @@ const ae = (e) => ({
|
|
|
598
598
|
sizeSm: f,
|
|
599
599
|
textFill: y,
|
|
600
600
|
whiteSpace: b,
|
|
601
|
-
wordBreak:
|
|
602
|
-
...
|
|
601
|
+
wordBreak: m,
|
|
602
|
+
...w
|
|
603
603
|
}, v) {
|
|
604
604
|
return /* @__PURE__ */ n(
|
|
605
605
|
Ln,
|
|
@@ -617,10 +617,10 @@ const ae = (e) => ({
|
|
|
617
617
|
$sizeSm: f,
|
|
618
618
|
$textFill: y,
|
|
619
619
|
$whiteSpace: b,
|
|
620
|
-
$wordBreak:
|
|
620
|
+
$wordBreak: m,
|
|
621
621
|
className: a,
|
|
622
622
|
ref: v,
|
|
623
|
-
...
|
|
623
|
+
...w,
|
|
624
624
|
children: i
|
|
625
625
|
}
|
|
626
626
|
);
|
|
@@ -674,8 +674,8 @@ const ae = (e) => ({
|
|
|
674
674
|
sizeSm: f,
|
|
675
675
|
textFill: y,
|
|
676
676
|
whiteSpace: b,
|
|
677
|
-
wordBreak:
|
|
678
|
-
...
|
|
677
|
+
wordBreak: m,
|
|
678
|
+
...w
|
|
679
679
|
}, v) {
|
|
680
680
|
return /* @__PURE__ */ n(
|
|
681
681
|
At,
|
|
@@ -693,10 +693,10 @@ const ae = (e) => ({
|
|
|
693
693
|
$sizeSm: f,
|
|
694
694
|
$textFill: y,
|
|
695
695
|
$whiteSpace: b,
|
|
696
|
-
$wordBreak:
|
|
696
|
+
$wordBreak: m,
|
|
697
697
|
className: a,
|
|
698
698
|
ref: v,
|
|
699
|
-
...
|
|
699
|
+
...w,
|
|
700
700
|
children: i
|
|
701
701
|
}
|
|
702
702
|
);
|
|
@@ -789,7 +789,7 @@ const N = G(function({
|
|
|
789
789
|
spanClass: f,
|
|
790
790
|
secondaryColor: y,
|
|
791
791
|
...b
|
|
792
|
-
},
|
|
792
|
+
}, m) {
|
|
793
793
|
return /* @__PURE__ */ n(
|
|
794
794
|
Pn,
|
|
795
795
|
{
|
|
@@ -803,7 +803,7 @@ const N = G(function({
|
|
|
803
803
|
className: f,
|
|
804
804
|
"data-testid": `${r}-icon`,
|
|
805
805
|
onClick: g,
|
|
806
|
-
ref:
|
|
806
|
+
ref: m,
|
|
807
807
|
...b,
|
|
808
808
|
children: /* @__PURE__ */ n(
|
|
809
809
|
"i",
|
|
@@ -1125,7 +1125,7 @@ const N = G(function({
|
|
|
1125
1125
|
hide: f = g === "" && u === "" && d === void 0,
|
|
1126
1126
|
width: y
|
|
1127
1127
|
}) => {
|
|
1128
|
-
const b = D(), [
|
|
1128
|
+
const b = D(), [m, w] = F(!1), { refs: v, floatingStyles: C, context: S } = si({
|
|
1129
1129
|
middleware: [
|
|
1130
1130
|
ui({
|
|
1131
1131
|
fallbackAxisSideDirection: "start"
|
|
@@ -1133,8 +1133,8 @@ const N = G(function({
|
|
|
1133
1133
|
fi({ mainAxis: 10 }),
|
|
1134
1134
|
hi()
|
|
1135
1135
|
],
|
|
1136
|
-
onOpenChange:
|
|
1137
|
-
open:
|
|
1136
|
+
onOpenChange: w,
|
|
1137
|
+
open: m,
|
|
1138
1138
|
placement: p,
|
|
1139
1139
|
whileElementsMounted: Ct
|
|
1140
1140
|
}), E = ci(S, {
|
|
@@ -1163,12 +1163,12 @@ const N = G(function({
|
|
|
1163
1163
|
icon: r,
|
|
1164
1164
|
iconColor: o,
|
|
1165
1165
|
iconSize: l ?? "xxs",
|
|
1166
|
-
iconType:
|
|
1166
|
+
iconType: m ? "fa-solid" : "fa-light"
|
|
1167
1167
|
}
|
|
1168
1168
|
) : e
|
|
1169
1169
|
}
|
|
1170
1170
|
),
|
|
1171
|
-
|
|
1171
|
+
m && !f && de(
|
|
1172
1172
|
/* @__PURE__ */ h(
|
|
1173
1173
|
Gn,
|
|
1174
1174
|
{
|
|
@@ -1224,8 +1224,8 @@ const N = G(function({
|
|
|
1224
1224
|
type: f = "button",
|
|
1225
1225
|
tooltip: y,
|
|
1226
1226
|
tooltipPlace: b,
|
|
1227
|
-
value:
|
|
1228
|
-
variant:
|
|
1227
|
+
value: m,
|
|
1228
|
+
variant: w = "primary",
|
|
1229
1229
|
...v
|
|
1230
1230
|
}, C) {
|
|
1231
1231
|
const S = /* @__PURE__ */ n(
|
|
@@ -1234,7 +1234,7 @@ const N = G(function({
|
|
|
1234
1234
|
$borderRadius: t,
|
|
1235
1235
|
$px: g,
|
|
1236
1236
|
$py: u,
|
|
1237
|
-
$variant:
|
|
1237
|
+
$variant: w,
|
|
1238
1238
|
"aria-disabled": i,
|
|
1239
1239
|
"aria-label": c,
|
|
1240
1240
|
borderRadius: t,
|
|
@@ -1244,7 +1244,7 @@ const N = G(function({
|
|
|
1244
1244
|
onClick: p,
|
|
1245
1245
|
ref: C,
|
|
1246
1246
|
type: f,
|
|
1247
|
-
value:
|
|
1247
|
+
value: m,
|
|
1248
1248
|
...v,
|
|
1249
1249
|
children: /* @__PURE__ */ n(
|
|
1250
1250
|
N,
|
|
@@ -1258,7 +1258,7 @@ const N = G(function({
|
|
|
1258
1258
|
}
|
|
1259
1259
|
)
|
|
1260
1260
|
}
|
|
1261
|
-
), W = (f + (
|
|
1261
|
+
), W = (f + (w ?? "") + (c ?? a)).replace(/ /u, "_");
|
|
1262
1262
|
return y === void 0 ? S : /* @__PURE__ */ n(ie, { id: `${W}-tooltip`, place: b, tip: y, children: S });
|
|
1263
1263
|
}), gl = G(function({
|
|
1264
1264
|
autoHide: t = !1,
|
|
@@ -1686,8 +1686,8 @@ const N = G(function({
|
|
|
1686
1686
|
tooltip: f,
|
|
1687
1687
|
tooltipPlace: y = "bottom",
|
|
1688
1688
|
underline: b = !1,
|
|
1689
|
-
value:
|
|
1690
|
-
variant:
|
|
1689
|
+
value: m,
|
|
1690
|
+
variant: w = "primary",
|
|
1691
1691
|
width: v,
|
|
1692
1692
|
...C
|
|
1693
1693
|
}, S) {
|
|
@@ -1697,23 +1697,23 @@ const N = G(function({
|
|
|
1697
1697
|
Pt,
|
|
1698
1698
|
{
|
|
1699
1699
|
$size: r,
|
|
1700
|
-
$variant:
|
|
1700
|
+
$variant: w,
|
|
1701
1701
|
"aria-disabled": i,
|
|
1702
1702
|
className: b ? "underline" : void 0,
|
|
1703
1703
|
disabled: i,
|
|
1704
1704
|
id: l,
|
|
1705
1705
|
name: c,
|
|
1706
|
-
onClick:
|
|
1706
|
+
onClick: w === "link" ? z : d,
|
|
1707
1707
|
ref: S,
|
|
1708
1708
|
type: u,
|
|
1709
|
-
value:
|
|
1709
|
+
value: m,
|
|
1710
1710
|
width: v,
|
|
1711
1711
|
...E ? { "data-tooltip-id": W } : {},
|
|
1712
1712
|
...C,
|
|
1713
1713
|
children: [
|
|
1714
1714
|
s !== void 0 && /* @__PURE__ */ n(N, { icon: s, iconSize: "xs", iconType: "fa-light" }),
|
|
1715
1715
|
t,
|
|
1716
|
-
(p ||
|
|
1716
|
+
(p || w === "link") && /* @__PURE__ */ n(N, { icon: "arrow-right", iconSize: "xs", iconType: "fa-light" }),
|
|
1717
1717
|
g === void 0 ? null : /* @__PURE__ */ n(re, { tagLabel: g, variant: "default" })
|
|
1718
1718
|
]
|
|
1719
1719
|
}
|
|
@@ -1935,9 +1935,9 @@ const N = G(function({
|
|
|
1935
1935
|
showMaximize: g = !0,
|
|
1936
1936
|
videoViewStatus: u
|
|
1937
1937
|
}) => {
|
|
1938
|
-
const f = D(), [y, b] = F(!1),
|
|
1938
|
+
const f = D(), [y, b] = F(!1), m = k(() => {
|
|
1939
1939
|
b(!0);
|
|
1940
|
-
}, []),
|
|
1940
|
+
}, []), w = k(() => {
|
|
1941
1941
|
b(!1);
|
|
1942
1942
|
}, []);
|
|
1943
1943
|
return /* @__PURE__ */ h(
|
|
@@ -1950,8 +1950,8 @@ const N = G(function({
|
|
|
1950
1950
|
display: "flex",
|
|
1951
1951
|
flexDirection: "column",
|
|
1952
1952
|
gap: 1,
|
|
1953
|
-
onHover:
|
|
1954
|
-
onLeave:
|
|
1953
|
+
onHover: m,
|
|
1954
|
+
onLeave: w,
|
|
1955
1955
|
padding: [0.5, 0.5, 0.5, 0.5],
|
|
1956
1956
|
width: "100%",
|
|
1957
1957
|
children: [
|
|
@@ -2429,10 +2429,10 @@ const N = G(function({
|
|
|
2429
2429
|
required: f,
|
|
2430
2430
|
tooltip: y,
|
|
2431
2431
|
value: b,
|
|
2432
|
-
weight:
|
|
2432
|
+
weight: m
|
|
2433
2433
|
}) => {
|
|
2434
2434
|
var Qe;
|
|
2435
|
-
const
|
|
2435
|
+
const w = D(), v = t ? void 0 : i, C = (e == null ? void 0 : e.value) ?? b, [S, E] = F(
|
|
2436
2436
|
((Qe = d.find((H) => H.value === C)) == null ? void 0 : Qe.name) ?? ""
|
|
2437
2437
|
), [W, z] = F(C), [L, B] = F(d), [A, M] = F(!1), { contains: X } = xi({ sensitivity: "base" }), ee = V(null), J = V(null), _ = V(null), K = V(null), le = V(null), Pe = te(() => d.map(
|
|
2438
2438
|
(H) => X(H.name, S) || A ? /* @__PURE__ */ n(mi, { children: H.name }, H.value) : null
|
|
@@ -2512,7 +2512,7 @@ const N = G(function({
|
|
|
2512
2512
|
label: l,
|
|
2513
2513
|
required: f,
|
|
2514
2514
|
tooltip: y,
|
|
2515
|
-
weight:
|
|
2515
|
+
weight: m,
|
|
2516
2516
|
children: [
|
|
2517
2517
|
/* @__PURE__ */ h(
|
|
2518
2518
|
oe,
|
|
@@ -2535,7 +2535,7 @@ const N = G(function({
|
|
|
2535
2535
|
{
|
|
2536
2536
|
icon: "exclamation-circle",
|
|
2537
2537
|
iconClass: "error-icon",
|
|
2538
|
-
iconColor:
|
|
2538
|
+
iconColor: w.palette.error[500],
|
|
2539
2539
|
iconSize: "xs"
|
|
2540
2540
|
}
|
|
2541
2541
|
) : void 0,
|
|
@@ -2545,7 +2545,7 @@ const N = G(function({
|
|
|
2545
2545
|
...ii,
|
|
2546
2546
|
className: "action",
|
|
2547
2547
|
icon: ne.isOpen ? "chevron-up" : "chevron-down",
|
|
2548
|
-
iconColor:
|
|
2548
|
+
iconColor: w.palette.gray[400],
|
|
2549
2549
|
iconSize: "xxs",
|
|
2550
2550
|
iconType: "fa-light",
|
|
2551
2551
|
px: 0.125,
|
|
@@ -2590,20 +2590,20 @@ const N = G(function({
|
|
|
2590
2590
|
required: f,
|
|
2591
2591
|
tooltip: y,
|
|
2592
2592
|
value: b,
|
|
2593
|
-
weight:
|
|
2593
|
+
weight: m
|
|
2594
2594
|
}) => e ? /* @__PURE__ */ n(
|
|
2595
2595
|
Be,
|
|
2596
2596
|
{
|
|
2597
2597
|
control: e,
|
|
2598
2598
|
name: c,
|
|
2599
|
-
render: ({ field:
|
|
2599
|
+
render: ({ field: w, fieldState: v }) => {
|
|
2600
2600
|
var C;
|
|
2601
2601
|
return /* @__PURE__ */ n(
|
|
2602
2602
|
st,
|
|
2603
2603
|
{
|
|
2604
2604
|
disabled: t,
|
|
2605
2605
|
error: (C = v.error) == null ? void 0 : C.message,
|
|
2606
|
-
field:
|
|
2606
|
+
field: w,
|
|
2607
2607
|
helpLink: a,
|
|
2608
2608
|
helpLinkText: r,
|
|
2609
2609
|
helpText: o,
|
|
@@ -2617,7 +2617,7 @@ const N = G(function({
|
|
|
2617
2617
|
required: f,
|
|
2618
2618
|
tooltip: y,
|
|
2619
2619
|
value: b,
|
|
2620
|
-
weight:
|
|
2620
|
+
weight: m
|
|
2621
2621
|
}
|
|
2622
2622
|
);
|
|
2623
2623
|
},
|
|
@@ -2641,7 +2641,7 @@ const N = G(function({
|
|
|
2641
2641
|
required: f,
|
|
2642
2642
|
tooltip: y,
|
|
2643
2643
|
value: b,
|
|
2644
|
-
weight:
|
|
2644
|
+
weight: m
|
|
2645
2645
|
}
|
|
2646
2646
|
), sa = $.div`
|
|
2647
2647
|
${({ theme: e }) => `
|
|
@@ -3194,15 +3194,15 @@ const N = G(function({
|
|
|
3194
3194
|
d && z && d(s, me(String(z)));
|
|
3195
3195
|
},
|
|
3196
3196
|
[s, d]
|
|
3197
|
-
),
|
|
3197
|
+
), m = Tt({
|
|
3198
3198
|
...u,
|
|
3199
3199
|
onChange(z) {
|
|
3200
3200
|
b(z);
|
|
3201
3201
|
},
|
|
3202
3202
|
value: R.isNil(y) || R.isEmpty(y) || y === "-" ? null : Ri(y.replace(/\//gu, "-"))
|
|
3203
|
-
}), { close:
|
|
3203
|
+
}), { close: w } = m, { groupProps: v, fieldProps: C, buttonProps: S, dialogProps: E, calendarProps: W } = Nt(
|
|
3204
3204
|
{ ...u, "aria-label": l ?? s, name: s },
|
|
3205
|
-
|
|
3205
|
+
m,
|
|
3206
3206
|
f
|
|
3207
3207
|
);
|
|
3208
3208
|
return /* @__PURE__ */ h(
|
|
@@ -3233,14 +3233,14 @@ const N = G(function({
|
|
|
3233
3233
|
value: y
|
|
3234
3234
|
}
|
|
3235
3235
|
),
|
|
3236
|
-
|
|
3236
|
+
m.isOpen && !e ? /* @__PURE__ */ n(
|
|
3237
3237
|
Ee,
|
|
3238
3238
|
{
|
|
3239
3239
|
offset: 8,
|
|
3240
3240
|
placement: "bottom start",
|
|
3241
|
-
state:
|
|
3241
|
+
state: m,
|
|
3242
3242
|
triggerRef: f,
|
|
3243
|
-
children: /* @__PURE__ */ n(Ye, { ...E, children: /* @__PURE__ */ n(xa, { onClose:
|
|
3243
|
+
children: /* @__PURE__ */ n(Ye, { ...E, children: /* @__PURE__ */ n(xa, { onClose: w, props: W }) })
|
|
3244
3244
|
}
|
|
3245
3245
|
) : null
|
|
3246
3246
|
]
|
|
@@ -3304,14 +3304,14 @@ const N = G(function({
|
|
|
3304
3304
|
));
|
|
3305
3305
|
},
|
|
3306
3306
|
[u, f, s, c, d]
|
|
3307
|
-
),
|
|
3307
|
+
), m = Wi({
|
|
3308
3308
|
...g,
|
|
3309
3309
|
endName: (c == null ? void 0 : c.name) ?? u,
|
|
3310
3310
|
startName: (d == null ? void 0 : d.name) ?? f,
|
|
3311
3311
|
onChange(L) {
|
|
3312
3312
|
b(L);
|
|
3313
3313
|
}
|
|
3314
|
-
}), { close:
|
|
3314
|
+
}), { close: w } = m, {
|
|
3315
3315
|
groupProps: v,
|
|
3316
3316
|
startFieldProps: C,
|
|
3317
3317
|
endFieldProps: S,
|
|
@@ -3320,7 +3320,7 @@ const N = G(function({
|
|
|
3320
3320
|
calendarProps: z
|
|
3321
3321
|
} = Hi(
|
|
3322
3322
|
{ ...g, "aria-label": i ?? a },
|
|
3323
|
-
|
|
3323
|
+
m,
|
|
3324
3324
|
y
|
|
3325
3325
|
);
|
|
3326
3326
|
return /* @__PURE__ */ h(
|
|
@@ -3383,14 +3383,14 @@ const N = G(function({
|
|
|
3383
3383
|
]
|
|
3384
3384
|
}
|
|
3385
3385
|
),
|
|
3386
|
-
|
|
3386
|
+
m.isOpen && !e ? /* @__PURE__ */ n(
|
|
3387
3387
|
Ee,
|
|
3388
3388
|
{
|
|
3389
3389
|
offset: 8,
|
|
3390
3390
|
placement: "bottom start",
|
|
3391
|
-
state:
|
|
3391
|
+
state: m,
|
|
3392
3392
|
triggerRef: y,
|
|
3393
|
-
children: /* @__PURE__ */ n(Ye, { ...W, children: /* @__PURE__ */ n(Sa, { onClose:
|
|
3393
|
+
children: /* @__PURE__ */ n(Ye, { ...W, children: /* @__PURE__ */ n(Sa, { onClose: w, props: z }) })
|
|
3394
3394
|
}
|
|
3395
3395
|
) : null
|
|
3396
3396
|
]
|
|
@@ -3462,7 +3462,7 @@ const N = G(function({
|
|
|
3462
3462
|
isRequired: a,
|
|
3463
3463
|
shouldCloseOnSelect: !1,
|
|
3464
3464
|
value: R.isNil(p) || R.isEmpty(p) || p === "-" ? null : Vi(p.replace(/\//gu, "-"))
|
|
3465
|
-
}), { close: f } = u, { groupProps: y, fieldProps: b, buttonProps:
|
|
3465
|
+
}), { close: f } = u, { groupProps: y, fieldProps: b, buttonProps: m, dialogProps: w, calendarProps: v } = Nt(e, u, g), C = k(
|
|
3466
3466
|
(E) => {
|
|
3467
3467
|
v.onChange && v.onChange(E), c == null || c(
|
|
3468
3468
|
o,
|
|
@@ -3488,7 +3488,7 @@ const N = G(function({
|
|
|
3488
3488
|
/* @__PURE__ */ n(
|
|
3489
3489
|
we,
|
|
3490
3490
|
{
|
|
3491
|
-
buttonProps:
|
|
3491
|
+
buttonProps: m,
|
|
3492
3492
|
datePickerRef: g,
|
|
3493
3493
|
disabled: t,
|
|
3494
3494
|
error: i,
|
|
@@ -3508,7 +3508,7 @@ const N = G(function({
|
|
|
3508
3508
|
placement: "bottom start",
|
|
3509
3509
|
state: u,
|
|
3510
3510
|
triggerRef: g,
|
|
3511
|
-
children: /* @__PURE__ */ n(Ye, { ...
|
|
3511
|
+
children: /* @__PURE__ */ n(Ye, { ...w, children: /* @__PURE__ */ n(
|
|
3512
3512
|
Fa,
|
|
3513
3513
|
{
|
|
3514
3514
|
handleTimeChange: S,
|
|
@@ -3555,8 +3555,8 @@ const N = G(function({
|
|
|
3555
3555
|
maskValue: f = !1,
|
|
3556
3556
|
onPaste: y,
|
|
3557
3557
|
placeholder: b,
|
|
3558
|
-
removeItemArray:
|
|
3559
|
-
register:
|
|
3558
|
+
removeItemArray: m,
|
|
3559
|
+
register: w,
|
|
3560
3560
|
suggestions: v,
|
|
3561
3561
|
tooltip: C,
|
|
3562
3562
|
type: S = "text",
|
|
@@ -3608,7 +3608,7 @@ const N = G(function({
|
|
|
3608
3608
|
onPaste: y,
|
|
3609
3609
|
placeholder: b,
|
|
3610
3610
|
type: S,
|
|
3611
|
-
...
|
|
3611
|
+
...w ? w(u, { required: z, onBlur: L, onChange: B }) : { ...W }
|
|
3612
3612
|
}
|
|
3613
3613
|
),
|
|
3614
3614
|
M ? /* @__PURE__ */ n(
|
|
@@ -3636,7 +3636,7 @@ const N = G(function({
|
|
|
3636
3636
|
icon: "trash",
|
|
3637
3637
|
iconSize: "xxs",
|
|
3638
3638
|
iconType: "fa-light",
|
|
3639
|
-
onClick:
|
|
3639
|
+
onClick: m ? m(s) : void 0,
|
|
3640
3640
|
variant: "ghost"
|
|
3641
3641
|
}
|
|
3642
3642
|
) : void 0
|
|
@@ -3773,10 +3773,10 @@ const N = G(function({
|
|
|
3773
3773
|
placeholder: f,
|
|
3774
3774
|
tooltip: y,
|
|
3775
3775
|
remove: b,
|
|
3776
|
-
value:
|
|
3776
|
+
value: m
|
|
3777
3777
|
}) => {
|
|
3778
3778
|
var C;
|
|
3779
|
-
const
|
|
3779
|
+
const w = k(() => {
|
|
3780
3780
|
t == null || t(o);
|
|
3781
3781
|
}, [t, o]), v = k(
|
|
3782
3782
|
(S) => () => {
|
|
@@ -3802,7 +3802,7 @@ const N = G(function({
|
|
|
3802
3802
|
removeItemArray: v,
|
|
3803
3803
|
required: s,
|
|
3804
3804
|
tooltip: y,
|
|
3805
|
-
value:
|
|
3805
|
+
value: m
|
|
3806
3806
|
}
|
|
3807
3807
|
) }),
|
|
3808
3808
|
l < d - 1 && l + 1 === (a == null ? void 0 : a.length) ? /* @__PURE__ */ n(ut, { lg: 25, md: 25, sm: 25, children: /* @__PURE__ */ n(
|
|
@@ -3810,7 +3810,7 @@ const N = G(function({
|
|
|
3810
3810
|
{
|
|
3811
3811
|
disabled: i,
|
|
3812
3812
|
icon: "plus",
|
|
3813
|
-
onClick:
|
|
3813
|
+
onClick: w,
|
|
3814
3814
|
variant: "ghost",
|
|
3815
3815
|
width: "100%",
|
|
3816
3816
|
children: e ?? "Add"
|
|
@@ -3837,26 +3837,26 @@ const N = G(function({
|
|
|
3837
3837
|
{
|
|
3838
3838
|
control: i,
|
|
3839
3839
|
name: `${d}.${b}`,
|
|
3840
|
-
render: ({ field:
|
|
3840
|
+
render: ({ field: m, fieldState: w }) => /* @__PURE__ */ n(
|
|
3841
3841
|
ft,
|
|
3842
3842
|
{
|
|
3843
3843
|
addText: e,
|
|
3844
3844
|
append: t,
|
|
3845
3845
|
disabled: a,
|
|
3846
|
-
fieldState:
|
|
3846
|
+
fieldState: w,
|
|
3847
3847
|
fields: r,
|
|
3848
3848
|
index: b,
|
|
3849
3849
|
initValue: o,
|
|
3850
3850
|
label: s,
|
|
3851
3851
|
max: c,
|
|
3852
|
-
name:
|
|
3853
|
-
onBlur:
|
|
3854
|
-
onChange: p ??
|
|
3852
|
+
name: m.name,
|
|
3853
|
+
onBlur: m.onBlur,
|
|
3854
|
+
onChange: p ?? m.onChange,
|
|
3855
3855
|
placeholder: g,
|
|
3856
3856
|
remove: u,
|
|
3857
3857
|
required: l,
|
|
3858
3858
|
tooltip: f,
|
|
3859
|
-
value:
|
|
3859
|
+
value: m.value.value
|
|
3860
3860
|
}
|
|
3861
3861
|
),
|
|
3862
3862
|
index: b,
|
|
@@ -3914,7 +3914,7 @@ const N = G(function({
|
|
|
3914
3914
|
watch: y,
|
|
3915
3915
|
weight: b
|
|
3916
3916
|
}) => {
|
|
3917
|
-
const
|
|
3917
|
+
const m = D(), w = t ? void 0 : i, v = V(null), C = g == null ? void 0 : g(c, { required: p }), S = y == null ? void 0 : y(c), E = Pa(S), W = k(() => {
|
|
3918
3918
|
const B = Bt("change", c, void 0);
|
|
3919
3919
|
u && u(c, void 0), C && C.onChange(B);
|
|
3920
3920
|
}, [C, c, u]), z = k(
|
|
@@ -3932,7 +3932,7 @@ const N = G(function({
|
|
|
3932
3932
|
return /* @__PURE__ */ h(
|
|
3933
3933
|
q,
|
|
3934
3934
|
{
|
|
3935
|
-
error:
|
|
3935
|
+
error: w,
|
|
3936
3936
|
helpLink: r,
|
|
3937
3937
|
helpText: o,
|
|
3938
3938
|
htmlFor: l ?? c,
|
|
@@ -3944,14 +3944,14 @@ const N = G(function({
|
|
|
3944
3944
|
/* @__PURE__ */ h(
|
|
3945
3945
|
oe,
|
|
3946
3946
|
{
|
|
3947
|
-
className: `${t ? "disabled" : ""} ${
|
|
3947
|
+
className: `${t ? "disabled" : ""} ${w ? "error" : ""}`,
|
|
3948
3948
|
children: [
|
|
3949
3949
|
/* @__PURE__ */ n(Ra, { $size: "xs", children: E }),
|
|
3950
3950
|
/* @__PURE__ */ h(x, { alignItems: "center", display: "flex", gap: 0.625, children: [
|
|
3951
3951
|
P.isEmpty(E) ? void 0 : /* @__PURE__ */ n(
|
|
3952
3952
|
Y,
|
|
3953
3953
|
{
|
|
3954
|
-
color:
|
|
3954
|
+
color: m.palette.gray[400],
|
|
3955
3955
|
height: "20px",
|
|
3956
3956
|
icon: "xmark",
|
|
3957
3957
|
iconSize: "lg",
|
|
@@ -3961,19 +3961,19 @@ const N = G(function({
|
|
|
3961
3961
|
width: "20px"
|
|
3962
3962
|
}
|
|
3963
3963
|
),
|
|
3964
|
-
|
|
3964
|
+
w && /* @__PURE__ */ n(
|
|
3965
3965
|
N,
|
|
3966
3966
|
{
|
|
3967
3967
|
icon: "exclamation-circle",
|
|
3968
3968
|
iconClass: "error-icon",
|
|
3969
|
-
iconColor:
|
|
3969
|
+
iconColor: m.palette.error[500],
|
|
3970
3970
|
iconSize: "xs"
|
|
3971
3971
|
}
|
|
3972
3972
|
),
|
|
3973
3973
|
/* @__PURE__ */ h(
|
|
3974
3974
|
O,
|
|
3975
3975
|
{
|
|
3976
|
-
border: t ? `1px solid ${
|
|
3976
|
+
border: t ? `1px solid ${m.palette.gray[300]} !important` : "",
|
|
3977
3977
|
borderRadius: "0px 8px 8px 0px !important",
|
|
3978
3978
|
disabled: t,
|
|
3979
3979
|
height: "40px",
|
|
@@ -4032,7 +4032,7 @@ const N = G(function({
|
|
|
4032
4032
|
value: f,
|
|
4033
4033
|
weight: y
|
|
4034
4034
|
}) => {
|
|
4035
|
-
const b = D(),
|
|
4035
|
+
const b = D(), m = e ? void 0 : t, [w, v] = F(""), C = c ? f : i == null ? void 0 : i.value, S = te(() => C && typeof C == "string" ? C.split(",").filter(Boolean) : [], [C]), E = k(
|
|
4036
4036
|
(A) => {
|
|
4037
4037
|
const X = [...new Set(A.filter(Boolean))].join(","), ee = Bt("change", s, X);
|
|
4038
4038
|
i && i.onChange(ee), c && c(ee);
|
|
@@ -4045,16 +4045,16 @@ const N = G(function({
|
|
|
4045
4045
|
[]
|
|
4046
4046
|
), z = k(
|
|
4047
4047
|
(A) => {
|
|
4048
|
-
const M =
|
|
4048
|
+
const M = w.trim();
|
|
4049
4049
|
M.length && !S.includes(M) && (A.preventDefault(), E([...S, M]), v("")), i && i.onBlur();
|
|
4050
4050
|
},
|
|
4051
|
-
[
|
|
4051
|
+
[w, i, E, S]
|
|
4052
4052
|
), L = k(
|
|
4053
4053
|
(A) => {
|
|
4054
|
-
const M =
|
|
4054
|
+
const M = w.trim();
|
|
4055
4055
|
A.key === "Enter" && M.length === 0 && A.preventDefault(), ["Enter", ","].includes(A.key) && M.length > 0 && !S.includes(M) ? (A.preventDefault(), E([...S, M]), v("")) : A.key === "Backspace" && !M.length && S.length && (A.preventDefault(), d == null || d(S[S.length - 1]), E(S.slice(0, -1)));
|
|
4056
4056
|
},
|
|
4057
|
-
[
|
|
4057
|
+
[w, d, E, S]
|
|
4058
4058
|
), B = k(
|
|
4059
4059
|
(A) => () => {
|
|
4060
4060
|
d == null || d(A), E(S.filter((M) => M !== A));
|
|
@@ -4064,7 +4064,7 @@ const N = G(function({
|
|
|
4064
4064
|
return /* @__PURE__ */ n(
|
|
4065
4065
|
q,
|
|
4066
4066
|
{
|
|
4067
|
-
error:
|
|
4067
|
+
error: m,
|
|
4068
4068
|
helpLink: a,
|
|
4069
4069
|
helpLinkText: r,
|
|
4070
4070
|
helpText: o,
|
|
@@ -4077,7 +4077,7 @@ const N = G(function({
|
|
|
4077
4077
|
oe,
|
|
4078
4078
|
{
|
|
4079
4079
|
$overflowX: "auto",
|
|
4080
|
-
className: `${e ? "disabled" : ""} ${
|
|
4080
|
+
className: `${e ? "disabled" : ""} ${m ? "error" : ""}`,
|
|
4081
4081
|
children: [
|
|
4082
4082
|
S.map((A) => /* @__PURE__ */ n(
|
|
4083
4083
|
re,
|
|
@@ -4092,7 +4092,7 @@ const N = G(function({
|
|
|
4092
4092
|
Wa,
|
|
4093
4093
|
{
|
|
4094
4094
|
"aria-hidden": !1,
|
|
4095
|
-
"aria-invalid":
|
|
4095
|
+
"aria-invalid": m ? "true" : "false",
|
|
4096
4096
|
"aria-label": s,
|
|
4097
4097
|
"aria-required": g,
|
|
4098
4098
|
autoComplete: "off",
|
|
@@ -4103,10 +4103,10 @@ const N = G(function({
|
|
|
4103
4103
|
placeholder: S.length === 0 ? p : void 0,
|
|
4104
4104
|
ref: i == null ? void 0 : i.ref,
|
|
4105
4105
|
type: "text",
|
|
4106
|
-
value:
|
|
4106
|
+
value: w
|
|
4107
4107
|
}
|
|
4108
4108
|
),
|
|
4109
|
-
|
|
4109
|
+
m ? /* @__PURE__ */ n(
|
|
4110
4110
|
N,
|
|
4111
4111
|
{
|
|
4112
4112
|
icon: "exclamation-circle",
|
|
@@ -4218,18 +4218,18 @@ const N = G(function({
|
|
|
4218
4218
|
setValue: u,
|
|
4219
4219
|
value: f
|
|
4220
4220
|
}) => {
|
|
4221
|
-
const y = D(), b = i ? void 0 : e,
|
|
4221
|
+
const y = D(), b = i ? void 0 : e, m = t < 0 ? 0 : t, [w, v] = F(
|
|
4222
4222
|
f ? R.toNumber(f) : 0
|
|
4223
4223
|
), C = k(() => {
|
|
4224
|
-
const z = (
|
|
4224
|
+
const z = (w - 10 ** -m).toFixed(m), L = Math.max(Number(l), Number(z));
|
|
4225
4225
|
u && u(s, L, { shouldDirty: !0 }), v(L);
|
|
4226
|
-
}, [
|
|
4227
|
-
const z = (
|
|
4226
|
+
}, [m, w, l, s, u]), S = k(() => {
|
|
4227
|
+
const z = (w + 10 ** -m).toFixed(m), L = Math.min(
|
|
4228
4228
|
Number(o),
|
|
4229
4229
|
Number(z) > Number(l) ? Number(z) : Number(l)
|
|
4230
4230
|
);
|
|
4231
4231
|
u && u(s, L, { shouldDirty: !0 }), v(L);
|
|
4232
|
-
}, [
|
|
4232
|
+
}, [m, w, o, l, s, u]), E = k(
|
|
4233
4233
|
(z) => {
|
|
4234
4234
|
const { value: L } = z.target, B = /\d+/u.test(L) && !R.isEmpty(L);
|
|
4235
4235
|
u && u(s, B ? L : void 0), c && c(z), v(Number(L));
|
|
@@ -4261,7 +4261,7 @@ const N = G(function({
|
|
|
4261
4261
|
onKeyDown: W,
|
|
4262
4262
|
placeholder: d,
|
|
4263
4263
|
required: g,
|
|
4264
|
-
step: 10 ** -
|
|
4264
|
+
step: 10 ** -m,
|
|
4265
4265
|
type: "number",
|
|
4266
4266
|
...p == null ? void 0 : p(s, {
|
|
4267
4267
|
maxLength: r,
|
|
@@ -4326,8 +4326,8 @@ const N = G(function({
|
|
|
4326
4326
|
placeholder: f,
|
|
4327
4327
|
register: y,
|
|
4328
4328
|
required: b,
|
|
4329
|
-
setValue:
|
|
4330
|
-
tooltip:
|
|
4329
|
+
setValue: m,
|
|
4330
|
+
tooltip: w,
|
|
4331
4331
|
value: v,
|
|
4332
4332
|
watch: C,
|
|
4333
4333
|
weight: S
|
|
@@ -4342,7 +4342,7 @@ const N = G(function({
|
|
|
4342
4342
|
linkPosition: s,
|
|
4343
4343
|
maxLength: c,
|
|
4344
4344
|
required: b,
|
|
4345
|
-
tooltip:
|
|
4345
|
+
tooltip: w,
|
|
4346
4346
|
weight: S,
|
|
4347
4347
|
children: /* @__PURE__ */ n(
|
|
4348
4348
|
He,
|
|
@@ -4359,7 +4359,7 @@ const N = G(function({
|
|
|
4359
4359
|
placeholder: f,
|
|
4360
4360
|
register: y,
|
|
4361
4361
|
required: b,
|
|
4362
|
-
setValue:
|
|
4362
|
+
setValue: m,
|
|
4363
4363
|
value: u ? v : C == null ? void 0 : C(g)
|
|
4364
4364
|
}
|
|
4365
4365
|
)
|
|
@@ -4535,7 +4535,7 @@ const N = G(function({
|
|
|
4535
4535
|
watch: d,
|
|
4536
4536
|
weight: p
|
|
4537
4537
|
}) => {
|
|
4538
|
-
const g = D(), u = V(null), f = e ? void 0 : t, y = (d == null ? void 0 : d(a)) ?? c, [b,
|
|
4538
|
+
const g = D(), u = V(null), f = e ? void 0 : t, y = (d == null ? void 0 : d(a)) ?? c, [b, m] = F(!1), [w, v] = F(""), { refs: C, floatingStyles: S } = Ft({
|
|
4539
4539
|
placement: "bottom-start",
|
|
4540
4540
|
whileElementsMounted: Ct
|
|
4541
4541
|
}), { inputRef: E, inputValue: W, handlePhoneValueChange: z, country: L, setCountry: B } = Bi({
|
|
@@ -4550,14 +4550,14 @@ const N = G(function({
|
|
|
4550
4550
|
[]
|
|
4551
4551
|
), M = k(
|
|
4552
4552
|
(_) => {
|
|
4553
|
-
_.preventDefault(),
|
|
4553
|
+
_.preventDefault(), m((K) => !K), b || v("");
|
|
4554
4554
|
},
|
|
4555
4555
|
[b]
|
|
4556
4556
|
), X = k(
|
|
4557
4557
|
(_) => () => {
|
|
4558
|
-
B(_),
|
|
4558
|
+
B(_), m(!1), v("");
|
|
4559
4559
|
},
|
|
4560
|
-
[B,
|
|
4560
|
+
[B, m]
|
|
4561
4561
|
), ee = k(
|
|
4562
4562
|
(_) => {
|
|
4563
4563
|
_.key.length === 1 ? v((K) => K + _.key) : _.key === "Backspace" && v((K) => K.slice(0, -1));
|
|
@@ -4565,12 +4565,12 @@ const N = G(function({
|
|
|
4565
4565
|
[]
|
|
4566
4566
|
), J = tt.filter((_) => {
|
|
4567
4567
|
const { name: K } = it(_);
|
|
4568
|
-
return K.toLowerCase().includes(
|
|
4568
|
+
return K.toLowerCase().includes(w.toLowerCase());
|
|
4569
4569
|
});
|
|
4570
4570
|
return Re(
|
|
4571
4571
|
C.floating.current,
|
|
4572
4572
|
() => {
|
|
4573
|
-
|
|
4573
|
+
m(!1), v("");
|
|
4574
4574
|
},
|
|
4575
4575
|
!0
|
|
4576
4576
|
), /* @__PURE__ */ n(
|
|
@@ -4702,11 +4702,11 @@ const N = G(function({
|
|
|
4702
4702
|
required: f,
|
|
4703
4703
|
rows: y,
|
|
4704
4704
|
tooltip: b,
|
|
4705
|
-
watch:
|
|
4706
|
-
weight:
|
|
4705
|
+
watch: m,
|
|
4706
|
+
weight: w,
|
|
4707
4707
|
value: v
|
|
4708
4708
|
}) => {
|
|
4709
|
-
const C = D(), S = (
|
|
4709
|
+
const C = D(), S = (m == null ? void 0 : m(s)) ?? v, E = o && r && !e, W = e ? void 0 : t;
|
|
4710
4710
|
return /* @__PURE__ */ n(
|
|
4711
4711
|
q,
|
|
4712
4712
|
{
|
|
@@ -4719,7 +4719,7 @@ const N = G(function({
|
|
|
4719
4719
|
required: f,
|
|
4720
4720
|
tooltip: b,
|
|
4721
4721
|
value: S ? String(S) : void 0,
|
|
4722
|
-
weight:
|
|
4722
|
+
weight: w,
|
|
4723
4723
|
children: /* @__PURE__ */ h(
|
|
4724
4724
|
oe,
|
|
4725
4725
|
{
|
|
@@ -5072,7 +5072,7 @@ const N = G(function({
|
|
|
5072
5072
|
const g = p.filter(({ locked: b }) => !b), f = [...p.filter(({ locked: b }) => b), ...g], y = f.map(({ name: b }) => b);
|
|
5073
5073
|
l((b) => [
|
|
5074
5074
|
...f,
|
|
5075
|
-
...b.filter(({ name:
|
|
5075
|
+
...b.filter(({ name: m }) => !y.includes(m))
|
|
5076
5076
|
]), a && a(f.map(({ id: b }) => b));
|
|
5077
5077
|
},
|
|
5078
5078
|
[a]
|
|
@@ -6637,8 +6637,8 @@ ${f[8]}...` : (f.length < 8 && c(!1), t);
|
|
|
6637
6637
|
const r = D(), o = V(null), [l, s] = F(void 0), c = k(
|
|
6638
6638
|
(g) => {
|
|
6639
6639
|
const { checked: u, value: f } = g.target, y = i.columns.map((b) => {
|
|
6640
|
-
var
|
|
6641
|
-
return b.name === f ? ((
|
|
6640
|
+
var m;
|
|
6641
|
+
return b.name === f ? ((m = b.toggleVisibility) == null || m.call(b, u), { ...b, visible: u }) : b;
|
|
6642
6642
|
});
|
|
6643
6643
|
i.setColumns(y);
|
|
6644
6644
|
},
|
|
@@ -7048,21 +7048,21 @@ ${f[8]}...` : (f.length < 8 && c(!1), t);
|
|
|
7048
7048
|
const o = D(), [l, s] = F(e), [c, d] = F(
|
|
7049
7049
|
[]
|
|
7050
7050
|
), [p, g] = F({}), [u, f] = F(""), y = k(
|
|
7051
|
-
(
|
|
7052
|
-
const v = l.find((S) => S.label ===
|
|
7051
|
+
(w) => () => {
|
|
7052
|
+
const v = l.find((S) => S.label === w), C = !(v != null && v.filterOptions.some(
|
|
7053
7053
|
(S) => S.type === "dateRange" || S.type === "select"
|
|
7054
7054
|
));
|
|
7055
|
-
r == null || r(C ?? !0), f(
|
|
7055
|
+
r == null || r(C ?? !0), f(w), d((v == null ? void 0 : v.filterOptions) ?? []);
|
|
7056
7056
|
},
|
|
7057
7057
|
[l, r]
|
|
7058
7058
|
), b = k(
|
|
7059
|
-
(
|
|
7059
|
+
(w) => {
|
|
7060
7060
|
const v = [
|
|
7061
|
-
...
|
|
7062
|
-
...Object.values(
|
|
7063
|
-
...
|
|
7064
|
-
...
|
|
7065
|
-
...
|
|
7061
|
+
...w.checkbox,
|
|
7062
|
+
...Object.values(w.text ?? {}),
|
|
7063
|
+
...w.radio ? [w.radio] : [],
|
|
7064
|
+
...w.minValue ? [String(w.minValue)] : [],
|
|
7065
|
+
...w.maxValue ? [String(w.maxValue)] : []
|
|
7066
7066
|
];
|
|
7067
7067
|
g((z) => v.length > 0 ? { ...z, [u]: v } : z);
|
|
7068
7068
|
const C = (z) => {
|
|
@@ -7071,11 +7071,11 @@ ${f[8]}...` : (f.length < 8 && c(!1), t);
|
|
|
7071
7071
|
...z,
|
|
7072
7072
|
options: (L = z.options) == null ? void 0 : L.map((A) => ({
|
|
7073
7073
|
...A,
|
|
7074
|
-
checked:
|
|
7074
|
+
checked: w.checkbox.includes(A.value) || w.radio === A.value
|
|
7075
7075
|
})),
|
|
7076
|
-
value: ["text", "select"].includes(z.type) ? ((B =
|
|
7077
|
-
minValue: ["numberRange", "dateRange"].includes(z.type) ?
|
|
7078
|
-
maxValue: ["numberRange", "dateRange"].includes(z.type) ?
|
|
7076
|
+
value: ["text", "select"].includes(z.type) ? ((B = w.text) == null ? void 0 : B[`${String(z.key)}-${z.filterFn ?? "caseInsensitive"}`]) ?? z.value : z.value,
|
|
7077
|
+
minValue: ["numberRange", "dateRange"].includes(z.type) ? w.minValue : z.minValue,
|
|
7078
|
+
maxValue: ["numberRange", "dateRange"].includes(z.type) ? w.maxValue : z.maxValue
|
|
7079
7079
|
};
|
|
7080
7080
|
}, S = (z) => z.label === u ? {
|
|
7081
7081
|
...z,
|
|
@@ -7088,20 +7088,20 @@ ${f[8]}...` : (f.length < 8 && c(!1), t);
|
|
|
7088
7088
|
i(W), d([]);
|
|
7089
7089
|
},
|
|
7090
7090
|
[l, i, u]
|
|
7091
|
-
),
|
|
7092
|
-
(
|
|
7093
|
-
const C = `li-filter-option-${
|
|
7091
|
+
), m = k(
|
|
7092
|
+
(w, v) => {
|
|
7093
|
+
const C = `li-filter-option-${w}`;
|
|
7094
7094
|
return /* @__PURE__ */ h(
|
|
7095
7095
|
Rr,
|
|
7096
7096
|
{
|
|
7097
7097
|
icon: v,
|
|
7098
|
-
onClick: y(
|
|
7098
|
+
onClick: y(w),
|
|
7099
7099
|
style: { minWidth: "180px" },
|
|
7100
7100
|
value: C,
|
|
7101
7101
|
width: "100%",
|
|
7102
7102
|
children: [
|
|
7103
|
-
|
|
7104
|
-
p[
|
|
7103
|
+
w,
|
|
7104
|
+
p[w] === void 0 ? void 0 : /* @__PURE__ */ n(re, { tagLabel: p[w].length.toString() })
|
|
7105
7105
|
]
|
|
7106
7106
|
},
|
|
7107
7107
|
C
|
|
@@ -7110,7 +7110,7 @@ ${f[8]}...` : (f.length < 8 && c(!1), t);
|
|
|
7110
7110
|
[p, y]
|
|
7111
7111
|
);
|
|
7112
7112
|
return U(() => {
|
|
7113
|
-
const
|
|
7113
|
+
const w = e.reduce(
|
|
7114
7114
|
(v, { label: C, filterOptions: S }) => {
|
|
7115
7115
|
const E = S.flatMap(({ value: L, minValue: B, maxValue: A }) => [
|
|
7116
7116
|
B,
|
|
@@ -7127,7 +7127,7 @@ ${f[8]}...` : (f.length < 8 && c(!1), t);
|
|
|
7127
7127
|
},
|
|
7128
7128
|
{}
|
|
7129
7129
|
);
|
|
7130
|
-
g(
|
|
7130
|
+
g(w), c.length > 0 && a && a("column");
|
|
7131
7131
|
}, [c, e, a]), t === "grouped" ? /* @__PURE__ */ n(
|
|
7132
7132
|
x,
|
|
7133
7133
|
{
|
|
@@ -7146,12 +7146,12 @@ ${f[8]}...` : (f.length < 8 && c(!1), t);
|
|
|
7146
7146
|
options: c
|
|
7147
7147
|
}
|
|
7148
7148
|
) : Object.entries(Yt(e)).map(
|
|
7149
|
-
([
|
|
7150
|
-
/* @__PURE__ */ n(I, { color: o.palette.gray[400], mb: 0.25, size: "sm", children:
|
|
7149
|
+
([w, v]) => /* @__PURE__ */ h(x, { children: [
|
|
7150
|
+
/* @__PURE__ */ n(I, { color: o.palette.gray[400], mb: 0.25, size: "sm", children: w }),
|
|
7151
7151
|
v.map(
|
|
7152
|
-
({ label: C, icon: S = "filter-list" }) =>
|
|
7152
|
+
({ label: C, icon: S = "filter-list" }) => m(C, S)
|
|
7153
7153
|
)
|
|
7154
|
-
] },
|
|
7154
|
+
] }, w)
|
|
7155
7155
|
)
|
|
7156
7156
|
}
|
|
7157
7157
|
) : /* @__PURE__ */ n(
|
|
@@ -7172,7 +7172,7 @@ ${f[8]}...` : (f.length < 8 && c(!1), t);
|
|
|
7172
7172
|
options: c
|
|
7173
7173
|
}
|
|
7174
7174
|
) : e.map(
|
|
7175
|
-
({ label:
|
|
7175
|
+
({ label: w, icon: v = "filter-list" }) => m(w, v)
|
|
7176
7176
|
)
|
|
7177
7177
|
}
|
|
7178
7178
|
);
|
|
@@ -7452,9 +7452,9 @@ const $e = ({
|
|
|
7452
7452
|
xt(s)
|
|
7453
7453
|
), g = i.map((b) => ({
|
|
7454
7454
|
...b,
|
|
7455
|
-
filterOptions: b.filterOptions.map((
|
|
7456
|
-
(v) => v.key ===
|
|
7457
|
-
) ?? { ...
|
|
7455
|
+
filterOptions: b.filterOptions.map((m) => s.find(
|
|
7456
|
+
(v) => v.key === m.key && v.type === m.type && v.filterFn === m.filterFn
|
|
7457
|
+
) ?? { ...m })
|
|
7458
7458
|
})), u = k(
|
|
7459
7459
|
(b) => {
|
|
7460
7460
|
c([...b]), localStorage.setItem(t, JSON.stringify(b));
|
|
@@ -7462,19 +7462,16 @@ const $e = ({
|
|
|
7462
7462
|
[c, t]
|
|
7463
7463
|
), f = k(
|
|
7464
7464
|
(b) => () => {
|
|
7465
|
-
const
|
|
7466
|
-
(
|
|
7465
|
+
const m = s.map(
|
|
7466
|
+
(w) => w.key === b.key && w.type === b.type && w.filterFn === b.filterFn ? Xr(w) : w
|
|
7467
7467
|
);
|
|
7468
|
-
c(
|
|
7468
|
+
c(m), localStorage.setItem(t, JSON.stringify(m));
|
|
7469
7469
|
},
|
|
7470
7470
|
[s, t]
|
|
7471
7471
|
);
|
|
7472
7472
|
return U(() => {
|
|
7473
|
-
const b = localStorage.getItem(t), w = b ? JSON.parse(b) :
|
|
7474
|
-
|
|
7475
|
-
JSON.stringify(i.flatMap((m) => m.filterOptions))
|
|
7476
|
-
);
|
|
7477
|
-
c(w);
|
|
7473
|
+
const b = localStorage.getItem(t), m = i.flatMap((v) => v.filterOptions), w = b ? JSON.parse(b) : m;
|
|
7474
|
+
m.flatMap((v) => v.value).filter(Boolean).length > 0 && localStorage.setItem(t, JSON.stringify(m)), c(w);
|
|
7478
7475
|
}, [t, i, c]), U(() => {
|
|
7479
7476
|
a && e !== void 0 && a(qr(e, s)), p(xt(s)), r == null || r(s);
|
|
7480
7477
|
}, [e, s, a, p, r]), { Filters: () => /* @__PURE__ */ h(
|
|
@@ -7896,17 +7893,17 @@ const $e = ({
|
|
|
7896
7893
|
variant: s
|
|
7897
7894
|
}) => {
|
|
7898
7895
|
const c = D(), [d, p] = F(t), [g, u] = F(""), f = k(
|
|
7899
|
-
(
|
|
7896
|
+
(m) => {
|
|
7900
7897
|
p(
|
|
7901
|
-
(
|
|
7902
|
-
(v) => String(v.name).toLowerCase().includes(
|
|
7898
|
+
(w) => w.filter(
|
|
7899
|
+
(v) => String(v.name).toLowerCase().includes(m.toLocaleLowerCase())
|
|
7903
7900
|
)
|
|
7904
7901
|
);
|
|
7905
7902
|
},
|
|
7906
7903
|
[p]
|
|
7907
7904
|
), y = k(
|
|
7908
|
-
(
|
|
7909
|
-
|
|
7905
|
+
(m) => {
|
|
7906
|
+
m.currentTarget && (u(m.currentTarget.value), f(m.currentTarget.value));
|
|
7910
7907
|
},
|
|
7911
7908
|
[u, f]
|
|
7912
7909
|
);
|
|
@@ -7986,14 +7983,14 @@ const $e = ({
|
|
|
7986
7983
|
/* @__PURE__ */ n(I, { color: c.palette.gray[400], size: "sm", children: "New organization" })
|
|
7987
7984
|
] }) }) : void 0,
|
|
7988
7985
|
d.map(
|
|
7989
|
-
(
|
|
7986
|
+
(m) => /* @__PURE__ */ n(
|
|
7990
7987
|
ao,
|
|
7991
7988
|
{
|
|
7992
|
-
isSelected: o.toLowerCase() ===
|
|
7993
|
-
label:
|
|
7989
|
+
isSelected: o.toLowerCase() === m.name,
|
|
7990
|
+
label: m.name.charAt(0).toUpperCase() + m.name.slice(1),
|
|
7994
7991
|
onSelect: a
|
|
7995
7992
|
},
|
|
7996
|
-
|
|
7993
|
+
m.name
|
|
7997
7994
|
)
|
|
7998
7995
|
)
|
|
7999
7996
|
]
|
|
@@ -8570,19 +8567,19 @@ const $e = ({
|
|
|
8570
8567
|
...d
|
|
8571
8568
|
}, p) {
|
|
8572
8569
|
const g = i < 0 ? 0 : i, [u, f] = F(Number(a).toFixed(g)), y = k(
|
|
8573
|
-
(
|
|
8574
|
-
const v = P.toNumber(
|
|
8575
|
-
|
|
8570
|
+
(w) => {
|
|
8571
|
+
const v = P.toNumber(w.target.value);
|
|
8572
|
+
w.target.value.endsWith(".") ? f(w.target.value) : v >= Number(o) && v <= Number(r) && (f(String(v)), t && s(P.toNumber(v.toFixed(g)))), w.stopPropagation();
|
|
8576
8573
|
},
|
|
8577
8574
|
[t, g, r, o, s]
|
|
8578
8575
|
), b = k(
|
|
8579
|
-
(
|
|
8580
|
-
|
|
8576
|
+
(w) => {
|
|
8577
|
+
w.currentTarget.contains(w.relatedTarget) || f(Number(a).toFixed(g)), w.stopPropagation();
|
|
8581
8578
|
},
|
|
8582
8579
|
[g, a]
|
|
8583
|
-
),
|
|
8584
|
-
(
|
|
8585
|
-
|
|
8580
|
+
), m = k(
|
|
8581
|
+
(w) => {
|
|
8582
|
+
w.stopPropagation(), w.key === "Enter" && !P.isEmpty(w.currentTarget.value) && s(P.toNumber(w.currentTarget.value));
|
|
8586
8583
|
},
|
|
8587
8584
|
[s]
|
|
8588
8585
|
);
|
|
@@ -8598,7 +8595,7 @@ const $e = ({
|
|
|
8598
8595
|
min: o,
|
|
8599
8596
|
name: l,
|
|
8600
8597
|
onChange: y,
|
|
8601
|
-
onKeyUp:
|
|
8598
|
+
onKeyUp: m,
|
|
8602
8599
|
ref: p,
|
|
8603
8600
|
step: 10 ** -g,
|
|
8604
8601
|
type: "number",
|
|
@@ -8975,7 +8972,7 @@ const So = {
|
|
|
8975
8972
|
title: p,
|
|
8976
8973
|
titleColor: g
|
|
8977
8974
|
}) => {
|
|
8978
|
-
const u = D(), { alt: f, src: y, width: b = "77px", height:
|
|
8975
|
+
const u = D(), { alt: f, src: y, width: b = "77px", height: m = "77px" } = c, w = k(() => {
|
|
8979
8976
|
t == null || t.onClick();
|
|
8980
8977
|
}, [t]), v = k(() => {
|
|
8981
8978
|
r == null || r.onClick();
|
|
@@ -9023,7 +9020,7 @@ const So = {
|
|
|
9023
9020
|
pe,
|
|
9024
9021
|
{
|
|
9025
9022
|
alt: f,
|
|
9026
|
-
height:
|
|
9023
|
+
height: m,
|
|
9027
9024
|
publicId: y,
|
|
9028
9025
|
width: b
|
|
9029
9026
|
}
|
|
@@ -9082,7 +9079,7 @@ const So = {
|
|
|
9082
9079
|
P.isObject(t) ? /* @__PURE__ */ n(
|
|
9083
9080
|
O,
|
|
9084
9081
|
{
|
|
9085
|
-
onClick:
|
|
9082
|
+
onClick: w,
|
|
9086
9083
|
variant: (t == null ? void 0 : t.variant) ?? "tertiary",
|
|
9087
9084
|
children: t == null ? void 0 : t.text
|
|
9088
9085
|
},
|
|
@@ -9617,8 +9614,8 @@ const So = {
|
|
|
9617
9614
|
return U(() => {
|
|
9618
9615
|
const f = ["mousedown", "touchstart"], y = (b) => {
|
|
9619
9616
|
var S;
|
|
9620
|
-
const
|
|
9621
|
-
i && !C && !(((S = g.current) == null ? void 0 : S.contains(
|
|
9617
|
+
const m = b.target, w = document.getElementById("helpBtn"), v = document.getElementById("filterBtn"), C = (m === w || ((w == null ? void 0 : w.contains(m)) ?? !1) || m === v || (v == null ? void 0 : v.contains(m))) ?? !1;
|
|
9618
|
+
i && !C && !(((S = g.current) == null ? void 0 : S.contains(m)) ?? !1) && r();
|
|
9622
9619
|
};
|
|
9623
9620
|
return f.forEach((b) => {
|
|
9624
9621
|
document.addEventListener(b, y, { passive: !0 });
|
|
@@ -9707,8 +9704,8 @@ const So = {
|
|
|
9707
9704
|
customBadge: f,
|
|
9708
9705
|
description: y,
|
|
9709
9706
|
icon: b,
|
|
9710
|
-
onClick:
|
|
9711
|
-
requiresUpgrade:
|
|
9707
|
+
onClick: m,
|
|
9708
|
+
requiresUpgrade: w,
|
|
9712
9709
|
title: v
|
|
9713
9710
|
}) => /* @__PURE__ */ n(
|
|
9714
9711
|
Po,
|
|
@@ -9716,8 +9713,8 @@ const So = {
|
|
|
9716
9713
|
customBadge: f,
|
|
9717
9714
|
description: y,
|
|
9718
9715
|
icon: b,
|
|
9719
|
-
onClick: u(
|
|
9720
|
-
requiresUpgrade:
|
|
9716
|
+
onClick: u(m),
|
|
9717
|
+
requiresUpgrade: w,
|
|
9721
9718
|
title: v
|
|
9722
9719
|
},
|
|
9723
9720
|
v
|
|
@@ -9998,9 +9995,9 @@ const So = {
|
|
|
9998
9995
|
[]
|
|
9999
9996
|
);
|
|
10000
9997
|
return /* @__PURE__ */ n(_o, { children: r.map((c, d) => {
|
|
10001
|
-
const { content: p, title: g, nextAction: u, previousAction: f } = c, y = d + 1, b = y === o ? "current" : "disabled",
|
|
9998
|
+
const { content: p, title: g, nextAction: u, previousAction: f } = c, y = d + 1, b = y === o ? "current" : "disabled", m = y < o ? "completed" : b;
|
|
10002
9999
|
return /* @__PURE__ */ h(Yo, { children: [
|
|
10003
|
-
/* @__PURE__ */ n(x, { maxWidth: "40px", position: "relative", children: /* @__PURE__ */ n(qo, { $variant:
|
|
10000
|
+
/* @__PURE__ */ n(x, { maxWidth: "40px", position: "relative", children: /* @__PURE__ */ n(qo, { $variant: m, children: m === "completed" ? /* @__PURE__ */ n(N, { icon: "check", iconSize: "xs", iconType: "fa-solid" }) : y }) }),
|
|
10004
10001
|
/* @__PURE__ */ h(x, { ml: 1.5, width: "100%", children: [
|
|
10005
10002
|
/* @__PURE__ */ n(
|
|
10006
10003
|
Q,
|
|
@@ -10012,7 +10009,7 @@ const So = {
|
|
|
10012
10009
|
children: g
|
|
10013
10010
|
}
|
|
10014
10011
|
),
|
|
10015
|
-
|
|
10012
|
+
m === "current" && /* @__PURE__ */ h(x, { children: [
|
|
10016
10013
|
p,
|
|
10017
10014
|
/* @__PURE__ */ h(Ko, { children: [
|
|
10018
10015
|
o > 1 && /* @__PURE__ */ n(
|