@fiscozen/checkbox 3.0.9 → 3.0.11
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/CHANGELOG.md +19 -0
- package/dist/checkbox.js +97 -89
- package/dist/checkbox.umd.cjs +2 -2
- package/package.json +5 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/clover.xml +0 -1031
- package/coverage/coverage-final.json +0 -7
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -131
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/coverage/src/FzCheckbox.vue.html +0 -1489
- package/coverage/src/FzCheckboxGroup.vue.html +0 -682
- package/coverage/src/common.ts.html +0 -157
- package/coverage/src/components/ErrorAlert.vue.html +0 -268
- package/coverage/src/components/FzCheckboxGroupOption.vue.html +0 -652
- package/coverage/src/components/index.html +0 -131
- package/coverage/src/index.html +0 -161
- package/coverage/src/utils.ts.html +0 -265
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @fiscozen/checkbox
|
|
2
2
|
|
|
3
|
+
## 3.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [404ccde]
|
|
8
|
+
- Updated dependencies [ea5c15c]
|
|
9
|
+
- @fiscozen/icons@1.0.7
|
|
10
|
+
- @fiscozen/composables@1.1.1
|
|
11
|
+
- @fiscozen/tooltip@3.0.5
|
|
12
|
+
|
|
13
|
+
## 3.0.10
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [1c2baef]
|
|
18
|
+
- @fiscozen/composables@1.1.0
|
|
19
|
+
- @fiscozen/tooltip@3.0.4
|
|
20
|
+
- @fiscozen/alert@3.0.5
|
|
21
|
+
|
|
3
22
|
## 3.0.9
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/checkbox.js
CHANGED
|
@@ -318,21 +318,25 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
|
|
|
318
318
|
y: 0
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
|
-
}, se =
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
321
|
+
}, se = 8, ce = () => ({
|
|
322
|
+
left: 0,
|
|
323
|
+
top: 0,
|
|
324
|
+
right: window.innerWidth,
|
|
325
|
+
bottom: window.innerHeight
|
|
326
|
+
}), le = (e, t) => ({
|
|
327
|
+
left: Math.max(e.left, t.left),
|
|
328
|
+
right: Math.min(e.right, t.right),
|
|
329
|
+
top: Math.max(e.top, t.top),
|
|
330
|
+
bottom: Math.min(e.bottom, t.bottom)
|
|
331
|
+
}), ue = (e, t, n, r, i = ce(), a = se) => {
|
|
332
|
+
let o = { ...e }, s = { ...r }, c = le(n, i), l = c.left + a, u = Math.max(l, c.right - a - t.width);
|
|
333
|
+
o.x > u && (o.x = u, s.x = 0), o.x < l && (o.x = l, s.x = 0);
|
|
334
|
+
let d = c.top + a, f = Math.max(d, c.bottom - a - t.height);
|
|
335
|
+
return o.y > f && (o.y = f, s.y = 0), o.y < d && (o.y = d, s.y = 0), {
|
|
336
|
+
position: o,
|
|
337
|
+
transform: s
|
|
334
338
|
};
|
|
335
|
-
},
|
|
339
|
+
}, de = (e, t, n, r, i) => {
|
|
336
340
|
let a = i ? null : t;
|
|
337
341
|
switch (e) {
|
|
338
342
|
case "auto": return K(a, n, r);
|
|
@@ -343,7 +347,7 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
|
|
|
343
347
|
case "auto-vertical-end": return K(a, n, r, "end", !0);
|
|
344
348
|
default: return "bottom-start";
|
|
345
349
|
}
|
|
346
|
-
},
|
|
350
|
+
}, fe = (e) => e.startsWith("auto"), pe = (e) => {
|
|
347
351
|
let t = S("auto"), n = S(), r = S(), i = S(), a = S(), o = x({ position: {
|
|
348
352
|
x: 0,
|
|
349
353
|
y: 0
|
|
@@ -383,8 +387,8 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
|
|
|
383
387
|
d.element.style.display = "none";
|
|
384
388
|
return;
|
|
385
389
|
}
|
|
386
|
-
c.value.observe(d.element), c.value.observe(d.container),
|
|
387
|
-
let p = te(window.getComputedStyle(d.element)), m = d.opener && f.opener ? ie(n.value, f.opener, p) : oe(n.value, f.container, f.element), h =
|
|
390
|
+
c.value.observe(d.element), c.value.observe(d.container), fe(n.value) && d.opener && (n.value = de(n.value, d.container, d.element, d.opener, e.useViewport?.value ?? !1));
|
|
391
|
+
let p = te(window.getComputedStyle(d.element)), m = d.opener && f.opener ? ie(n.value, f.opener, p) : oe(n.value, f.container, f.element), h = ue(ee(f.element, m.position, m.transform.x, m.transform.y), f.element, f.container, m.transform);
|
|
388
392
|
o.position.x = h.position.x, o.position.y = h.position.y, Object.assign(d.element.style, {
|
|
389
393
|
top: `${o.position.y}px`,
|
|
390
394
|
left: `${o.position.x}px`,
|
|
@@ -400,7 +404,7 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
|
|
|
400
404
|
};
|
|
401
405
|
//#endregion
|
|
402
406
|
//#region ../composables/src/composables/useMediaQuery.ts
|
|
403
|
-
function
|
|
407
|
+
function me(e) {
|
|
404
408
|
let t = window.matchMedia(e), r = S(t.matches);
|
|
405
409
|
function i(e) {
|
|
406
410
|
r.value = e.matches;
|
|
@@ -990,6 +994,10 @@ var J = {
|
|
|
990
994
|
value: "1024px",
|
|
991
995
|
type: "sizing"
|
|
992
996
|
},
|
|
997
|
+
desktop: {
|
|
998
|
+
value: "1200px",
|
|
999
|
+
type: "sizing"
|
|
1000
|
+
},
|
|
993
1001
|
xl: {
|
|
994
1002
|
value: "1280px",
|
|
995
1003
|
type: "sizing"
|
|
@@ -1930,7 +1938,7 @@ var J = {
|
|
|
1930
1938
|
},
|
|
1931
1939
|
$themes: [],
|
|
1932
1940
|
$metadata: { tokenSetOrder: ["global", "alias"] }
|
|
1933
|
-
},
|
|
1941
|
+
}, he = {
|
|
1934
1942
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
1935
1943
|
description: "Lista dei colori da includere nella safelist di Tailwind. Per aggiungere un nuovo colore, aggiungi il suo nome qui e rigenera il build con 'pnpm run build'.",
|
|
1936
1944
|
safeColorNames: [
|
|
@@ -1942,7 +1950,7 @@ var J = {
|
|
|
1942
1950
|
"grey",
|
|
1943
1951
|
"core"
|
|
1944
1952
|
]
|
|
1945
|
-
},
|
|
1953
|
+
}, ge = {
|
|
1946
1954
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
1947
1955
|
description: "Lista dei colori semantici da includere nella safelist di Tailwind. Per aggiungere un nuovo colore semantico, aggiungi il suo nome qui e rigenera il build con 'pnpm run build'.",
|
|
1948
1956
|
semanticColorNames: [
|
|
@@ -1951,8 +1959,8 @@ var J = {
|
|
|
1951
1959
|
"success",
|
|
1952
1960
|
"info"
|
|
1953
1961
|
]
|
|
1954
|
-
},
|
|
1955
|
-
|
|
1962
|
+
}, _e = he.safeColorNames, ve = ge.semanticColorNames, Y = {};
|
|
1963
|
+
_e.forEach((e) => {
|
|
1956
1964
|
let t = J.global[e];
|
|
1957
1965
|
t && Object.keys(t).forEach((n) => {
|
|
1958
1966
|
let r = t[n]?.value;
|
|
@@ -1960,7 +1968,7 @@ me.forEach((e) => {
|
|
|
1960
1968
|
});
|
|
1961
1969
|
});
|
|
1962
1970
|
var X = J.global.semantic;
|
|
1963
|
-
X &&
|
|
1971
|
+
X && ve.forEach((e) => {
|
|
1964
1972
|
let t = X[e];
|
|
1965
1973
|
t && typeof t == "object" && Object.keys(t).forEach((n) => {
|
|
1966
1974
|
let r = t[n]?.value;
|
|
@@ -1972,7 +1980,7 @@ X && he.forEach((e) => {
|
|
|
1972
1980
|
});
|
|
1973
1981
|
//#endregion
|
|
1974
1982
|
//#region ../style/src/constants.ts
|
|
1975
|
-
var
|
|
1983
|
+
var ye = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.value, e), {}), be = /* @__PURE__ */ u({
|
|
1976
1984
|
__name: "FzFloating",
|
|
1977
1985
|
props: {
|
|
1978
1986
|
isOpen: {
|
|
@@ -1993,7 +2001,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
1993
2001
|
},
|
|
1994
2002
|
emits: ["fzfloating:setPosition"],
|
|
1995
2003
|
setup(e, { expose: s, emit: c }) {
|
|
1996
|
-
let l = e, u = c, d = S(null), f = S(null), p = P(), m =
|
|
2004
|
+
let l = e, u = c, d = S(null), f = S(null), p = P(), m = me(`(max-width: ${ye.xs})`), v = !1, b = !1, x = null, C = null, T = {
|
|
1997
2005
|
position: l.position,
|
|
1998
2006
|
element: { domRef: d },
|
|
1999
2007
|
container: { domRef: A(l.container || document.body) },
|
|
@@ -2004,7 +2012,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2004
2012
|
}
|
|
2005
2013
|
}, E = j(T);
|
|
2006
2014
|
p.opener && (T.opener = { domRef: f });
|
|
2007
|
-
let D =
|
|
2015
|
+
let D = pe(E), O = () => {
|
|
2008
2016
|
v || !b || (v = !0, requestAnimationFrame(() => {
|
|
2009
2017
|
b && l.isOpen && D.setPosition(), v = !1;
|
|
2010
2018
|
}));
|
|
@@ -2076,11 +2084,11 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2076
2084
|
})], 2), [[I, n.$slots.default && (!n.$slots.opener || n.$slots.opener && e.isOpen)]])])) : i("", !0)
|
|
2077
2085
|
]));
|
|
2078
2086
|
}
|
|
2079
|
-
}),
|
|
2087
|
+
}), xe = [
|
|
2080
2088
|
"aria-label",
|
|
2081
2089
|
"aria-describedby",
|
|
2082
2090
|
"tabindex"
|
|
2083
|
-
],
|
|
2091
|
+
], Se = ["aria-hidden"], Ce = 100, we = "text-core-white max-w-[200px] p-8 text-sm leading-[16px] flex flex-row items-start justify-center", Te = /* @__PURE__ */ u({
|
|
2084
2092
|
__name: "FzTooltip",
|
|
2085
2093
|
props: {
|
|
2086
2094
|
position: { default: "auto" },
|
|
@@ -2159,7 +2167,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2159
2167
|
function F() {
|
|
2160
2168
|
T.value &&= (clearTimeout(T.value), null), T.value = setTimeout(() => {
|
|
2161
2169
|
!x.value && !C.value && j();
|
|
2162
|
-
},
|
|
2170
|
+
}, Ce);
|
|
2163
2171
|
}
|
|
2164
2172
|
function I() {
|
|
2165
2173
|
x.value = !0, T.value &&= (clearTimeout(T.value), null);
|
|
@@ -2182,7 +2190,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2182
2190
|
e ? A() : j();
|
|
2183
2191
|
}), v(() => {
|
|
2184
2192
|
T.value && clearTimeout(T.value);
|
|
2185
|
-
}), (n, a) => (y(), r(M(
|
|
2193
|
+
}), (n, a) => (y(), r(M(be), {
|
|
2186
2194
|
teleport: !0,
|
|
2187
2195
|
"is-open": b.value,
|
|
2188
2196
|
position: e.position,
|
|
@@ -2202,10 +2210,10 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2202
2210
|
onFocusin: B,
|
|
2203
2211
|
onFocusout: H,
|
|
2204
2212
|
onKeydown: U
|
|
2205
|
-
}, [w(n.$slots, "default", {}, void 0, !0)], 40,
|
|
2213
|
+
}, [w(n.$slots, "default", {}, void 0, !0)], 40, xe)]),
|
|
2206
2214
|
default: R(() => [o("div", {
|
|
2207
2215
|
id: g,
|
|
2208
|
-
class: h(
|
|
2216
|
+
class: h(we),
|
|
2209
2217
|
role: "tooltip",
|
|
2210
2218
|
"aria-hidden": !b.value,
|
|
2211
2219
|
onMouseenter: I,
|
|
@@ -2223,7 +2231,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2223
2231
|
{ "text-core-black": t.status === "alert" }
|
|
2224
2232
|
]),
|
|
2225
2233
|
"aria-hidden": !0
|
|
2226
|
-
}, null, 8, ["name", "class"])) : i("", !0), o("span", { class: h(["basis-0 grow shrink-0 break-normal fz__tooltip__text", { "text-core-black": t.status === "alert" }]) }, [w(n.$slots, "text", {}, () => [c(k(t.text), 1)], !0)], 2)], 40,
|
|
2234
|
+
}, null, 8, ["name", "class"])) : i("", !0), o("span", { class: h(["basis-0 grow shrink-0 break-normal fz__tooltip__text", { "text-core-black": t.status === "alert" }]) }, [w(n.$slots, "text", {}, () => [c(k(t.text), 1)], !0)], 2)], 40, Se)]),
|
|
2227
2235
|
_: 3
|
|
2228
2236
|
}, 8, [
|
|
2229
2237
|
"is-open",
|
|
@@ -2235,12 +2243,12 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2235
2243
|
let n = e.__vccOpts || e;
|
|
2236
2244
|
for (let [e, r] of t) n[e] = r;
|
|
2237
2245
|
return n;
|
|
2238
|
-
},
|
|
2246
|
+
}, Ee = /* @__PURE__ */ Z(Te, [["__scopeId", "data-v-e4c0b632"]]), Q = {
|
|
2239
2247
|
xs: "backoffice",
|
|
2240
2248
|
sm: "backoffice",
|
|
2241
2249
|
md: "backoffice",
|
|
2242
2250
|
lg: "frontoffice"
|
|
2243
|
-
},
|
|
2251
|
+
}, De = ["disabled", "aria-disabled"], Oe = /* @__PURE__ */ u({
|
|
2244
2252
|
__fzKind: "@fiscozen/button/FzButton",
|
|
2245
2253
|
__name: "FzButton",
|
|
2246
2254
|
props: {
|
|
@@ -2387,9 +2395,9 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2387
2395
|
size: "md",
|
|
2388
2396
|
variant: e.iconVariant
|
|
2389
2397
|
}, null, 8, ["name", "variant"])) : i("", !0)])])) : i("", !0)
|
|
2390
|
-
], 10,
|
|
2398
|
+
], 10, De));
|
|
2391
2399
|
}
|
|
2392
|
-
}),
|
|
2400
|
+
}), ke = /* @__PURE__ */ Z(/* @__PURE__ */ u({
|
|
2393
2401
|
inheritAttrs: !1,
|
|
2394
2402
|
__fzKind: "@fiscozen/button/FzIconButton",
|
|
2395
2403
|
__name: "FzIconButton",
|
|
@@ -2456,7 +2464,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2456
2464
|
"fz-icon-button-wrapper--backoffice": r.value === "backoffice",
|
|
2457
2465
|
"fz-icon-button-wrapper--frontoffice": r.value === "frontoffice"
|
|
2458
2466
|
}
|
|
2459
|
-
]) }, [l(
|
|
2467
|
+
]) }, [l(Oe, p(e.$attrs, {
|
|
2460
2468
|
disabled: t.disabled,
|
|
2461
2469
|
environment: r.value,
|
|
2462
2470
|
variant: t.variant,
|
|
@@ -2478,7 +2486,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2478
2486
|
"aria-hidden": "true"
|
|
2479
2487
|
}, null, 2)) : i("", !0)], 2));
|
|
2480
2488
|
}
|
|
2481
|
-
}), [["__scopeId", "data-v-84505903"]]),
|
|
2489
|
+
}), [["__scopeId", "data-v-84505903"]]), Ae = /* @__PURE__ */ Z(/* @__PURE__ */ u({
|
|
2482
2490
|
__name: "FzContainer",
|
|
2483
2491
|
props: {
|
|
2484
2492
|
main: {
|
|
@@ -2517,11 +2525,11 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2517
2525
|
_: 3
|
|
2518
2526
|
}, 8, ["class"]));
|
|
2519
2527
|
}
|
|
2520
|
-
}), [["__scopeId", "data-v-6d8c564e"]]),
|
|
2528
|
+
}), [["__scopeId", "data-v-6d8c564e"]]), je = ["aria-disabled"], Me = [
|
|
2521
2529
|
"href",
|
|
2522
2530
|
"target",
|
|
2523
2531
|
"rel"
|
|
2524
|
-
],
|
|
2532
|
+
], Ne = /* @__PURE__ */ u({
|
|
2525
2533
|
__fzKind: "@fiscozen/link/FzLink",
|
|
2526
2534
|
__name: "FzLink",
|
|
2527
2535
|
props: {
|
|
@@ -2598,13 +2606,13 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2598
2606
|
"aria-disabled": e.disabled ? "true" : "false",
|
|
2599
2607
|
role: "link",
|
|
2600
2608
|
"aria-label": "Link disabled"
|
|
2601
|
-
}, [w(t.$slots, "default")], 10,
|
|
2609
|
+
}, [w(t.$slots, "default")], 10, je)) : e.external ? (y(), a("a", {
|
|
2602
2610
|
key: 1,
|
|
2603
2611
|
href: g.value,
|
|
2604
2612
|
class: h(p.value),
|
|
2605
2613
|
target: e.target,
|
|
2606
2614
|
rel: _.value
|
|
2607
|
-
}, [w(t.$slots, "default")], 10,
|
|
2615
|
+
}, [w(t.$slots, "default")], 10, Me)) : (y(), r(i, {
|
|
2608
2616
|
key: 2,
|
|
2609
2617
|
to: e.to,
|
|
2610
2618
|
replace: e.replace,
|
|
@@ -2621,10 +2629,10 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2621
2629
|
]));
|
|
2622
2630
|
};
|
|
2623
2631
|
}
|
|
2624
|
-
}),
|
|
2632
|
+
}), Pe = { class: "flex flex-1 flex-col" }, Fe = {
|
|
2625
2633
|
key: 0,
|
|
2626
2634
|
class: "mb-0 leading-[20px]"
|
|
2627
|
-
},
|
|
2635
|
+
}, Ie = /* @__PURE__ */ Z(/* @__PURE__ */ u({
|
|
2628
2636
|
__name: "FzAlert",
|
|
2629
2637
|
props: {
|
|
2630
2638
|
tone: {},
|
|
@@ -2707,7 +2715,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2707
2715
|
return y(), a("div", {
|
|
2708
2716
|
class: h(_.value),
|
|
2709
2717
|
onClick: G
|
|
2710
|
-
}, [l(M(
|
|
2718
|
+
}, [l(M(Ae), {
|
|
2711
2719
|
horizontal: "",
|
|
2712
2720
|
gap: T.value,
|
|
2713
2721
|
class: h(["flex-1", C.value]),
|
|
@@ -2722,17 +2730,17 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2722
2730
|
"name",
|
|
2723
2731
|
"size",
|
|
2724
2732
|
"class"
|
|
2725
|
-
]), o("div",
|
|
2726
|
-
e.title && !g.value ? z((y(), a("p",
|
|
2733
|
+
]), o("div", Pe, [
|
|
2734
|
+
e.title && !g.value ? z((y(), a("p", Fe, [c(k(e.title), 1)])), [[s]]) : i("", !0),
|
|
2727
2735
|
F.value ? (y(), a("p", {
|
|
2728
2736
|
key: 1,
|
|
2729
2737
|
class: h(O.value)
|
|
2730
2738
|
}, [w(t.$slots, "default", {}, void 0, !0)], 2)) : i("", !0),
|
|
2731
|
-
D.value ? w(t.$slots, "action", { key: 2 }, () => [l(M(
|
|
2739
|
+
D.value ? w(t.$slots, "action", { key: 2 }, () => [l(M(Ae), {
|
|
2732
2740
|
horizontal: "",
|
|
2733
2741
|
gap: "sm"
|
|
2734
2742
|
}, {
|
|
2735
|
-
default: R(() => [e.showButtonAction ? (y(), r(M(
|
|
2743
|
+
default: R(() => [e.showButtonAction ? (y(), r(M(Oe), {
|
|
2736
2744
|
key: 0,
|
|
2737
2745
|
onClick: I,
|
|
2738
2746
|
tooltip: e.buttonActionTooltip,
|
|
@@ -2741,7 +2749,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2741
2749
|
}, {
|
|
2742
2750
|
default: R(() => [c(k(e.buttonActionLabel), 1)]),
|
|
2743
2751
|
_: 1
|
|
2744
|
-
}, 8, ["tooltip", "environment"])) : i("", !0), e.showLinkAction ? (y(), r(M(
|
|
2752
|
+
}, 8, ["tooltip", "environment"])) : i("", !0), e.showLinkAction ? (y(), r(M(Ne), {
|
|
2745
2753
|
key: 1,
|
|
2746
2754
|
to: e.linkActionLocation,
|
|
2747
2755
|
onClick: I,
|
|
@@ -2760,7 +2768,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2760
2768
|
})], !0) : i("", !0)
|
|
2761
2769
|
])]),
|
|
2762
2770
|
_: 3
|
|
2763
|
-
}, 8, ["gap", "class"]), U.value ? (y(), r(M(
|
|
2771
|
+
}, 8, ["gap", "class"]), U.value ? (y(), r(M(ke), {
|
|
2764
2772
|
key: 0,
|
|
2765
2773
|
iconName: j.value,
|
|
2766
2774
|
environment: L.value,
|
|
@@ -2769,11 +2777,11 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2769
2777
|
}, null, 8, ["iconName", "environment"])) : i("", !0)], 2);
|
|
2770
2778
|
};
|
|
2771
2779
|
}
|
|
2772
|
-
}), [["__scopeId", "data-v-b54c6f05"]]),
|
|
2780
|
+
}), [["__scopeId", "data-v-b54c6f05"]]), Le = /* @__PURE__ */ u({
|
|
2773
2781
|
__name: "ErrorAlert",
|
|
2774
2782
|
props: { id: {} },
|
|
2775
2783
|
setup(e) {
|
|
2776
|
-
return (t, n) => (y(), r(M(
|
|
2784
|
+
return (t, n) => (y(), r(M(Ie), {
|
|
2777
2785
|
id: e.id,
|
|
2778
2786
|
tone: "error",
|
|
2779
2787
|
variant: "text",
|
|
@@ -2786,11 +2794,11 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2786
2794
|
_: 3
|
|
2787
2795
|
}, 8, ["id"]));
|
|
2788
2796
|
}
|
|
2789
|
-
}),
|
|
2797
|
+
}), Re = { class: "flex justify-center flex-col w-fit gap-4 text-core-black" }, ze = [
|
|
2790
2798
|
"data-emphasis",
|
|
2791
2799
|
"data-error",
|
|
2792
2800
|
"data-disabled"
|
|
2793
|
-
],
|
|
2801
|
+
], Be = [
|
|
2794
2802
|
"id",
|
|
2795
2803
|
"disabled",
|
|
2796
2804
|
"required",
|
|
@@ -2802,7 +2810,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2802
2810
|
"aria-describedby",
|
|
2803
2811
|
"aria-labelledby",
|
|
2804
2812
|
"aria-owns"
|
|
2805
|
-
],
|
|
2813
|
+
], Ve = ["id", "for"], He = "w-0 h-0 peer fz-hidden-input", Ue = "\n flex gap-6 items-start hover:cursor-pointer text-core-black mb-0\n peer-focus:[&_div]:after:border-1\n peer-focus:[&_div]:after:border-solid\n peer-focus:[&_div]:after:rounded-[2px]\n peer-focus:[&_div]:after:border-blue-200\n peer-focus:[&_div]:after:content-['']\n peer-focus:[&_div]:after:top-0\n peer-focus:[&_div]:after:left-0\n peer-focus:[&_div]:after:right-0\n peer-focus:[&_div]:after:bottom-0\n peer-focus:[&_div]:after:absolute\n", We = "relative", $ = /* @__PURE__ */ Z(/* @__PURE__ */ u({
|
|
2806
2814
|
__name: "FzCheckbox",
|
|
2807
2815
|
props: /* @__PURE__ */ f({
|
|
2808
2816
|
label: {},
|
|
@@ -2851,7 +2859,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2851
2859
|
}), m = n(() => u.value ?? u.label), g = u.checkboxId || U(), v = N(t, "modelValue"), b = s, x = O(null), S = n(() => v.value == null ? !1 : typeof v.value == "boolean" ? v.value : v.value.includes(m.value)), C = n(() => u.disabled ? "text-grey-300 [&_div]:text-grey-300" : u.error ? "text-semantic-error-200 [&_div]:text-semantic-error-200 peer-checked:[&_div]:text-semantic-error-200 peer-indeterminate:[&_div]:text-semantic-error-200" : u.emphasis ? "text-core-black [&_div]:text-blue-500 peer-checked:[&_div]:text-blue-500 peer-indeterminate:[&_div]:text-blue-500" : "text-core-black peer-checked:[&_div]:text-grey-500 peer-indeterminate:[&_div]:text-grey-500"), T = n(() => u.disabled ? "text-grey-300" : u.error ? "text-semantic-error-200" : u.emphasis ? "text-blue-500" : "text-grey-400"), E = n(() => ["text-base", C.value]), D = n(() => [T.value]), A = n(() => u.indeterminate ? d.INDETERMINATE : S.value ? d.CHECKED : d.UNCHECKED), j = n(() => u.indeterminate || S.value ? f.SOLID : f.REGULAR);
|
|
2852
2860
|
return _(() => {
|
|
2853
2861
|
v.value != null && (typeof v.value == "boolean" ? v.value && x.value?.dispatchEvent(new Event("change")) : v.value.includes(m.value) && x.value?.dispatchEvent(new Event("change")));
|
|
2854
|
-
}), (n, s) => (y(), a("div",
|
|
2862
|
+
}), (n, s) => (y(), a("div", Re, [
|
|
2855
2863
|
o("div", {
|
|
2856
2864
|
class: "flex items-start group",
|
|
2857
2865
|
"data-emphasis": t.emphasis || void 0,
|
|
@@ -2862,7 +2870,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2862
2870
|
type: "checkbox",
|
|
2863
2871
|
id: M(g),
|
|
2864
2872
|
disabled: t.disabled,
|
|
2865
|
-
class: h(
|
|
2873
|
+
class: h(He),
|
|
2866
2874
|
required: t.required,
|
|
2867
2875
|
value: t.value,
|
|
2868
2876
|
onChange: s[0] ||= (e) => b("change", e),
|
|
@@ -2876,23 +2884,23 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2876
2884
|
"aria-owns": u.ariaOwns,
|
|
2877
2885
|
ref_key: "refCheckbox",
|
|
2878
2886
|
ref: x
|
|
2879
|
-
}, null, 40,
|
|
2887
|
+
}, null, 40, Be), [[F, v.value]]),
|
|
2880
2888
|
o("label", {
|
|
2881
2889
|
id: `${M(g)}-label`,
|
|
2882
2890
|
for: M(g),
|
|
2883
|
-
class: h([
|
|
2891
|
+
class: h([Ue, E.value])
|
|
2884
2892
|
}, [l(M(V), {
|
|
2885
2893
|
name: A.value,
|
|
2886
2894
|
size: "md",
|
|
2887
|
-
class: h([
|
|
2895
|
+
class: h([We, D.value]),
|
|
2888
2896
|
variant: j.value,
|
|
2889
2897
|
"aria-hidden": "true"
|
|
2890
2898
|
}, null, 8, [
|
|
2891
2899
|
"name",
|
|
2892
2900
|
"class",
|
|
2893
2901
|
"variant"
|
|
2894
|
-
]), t.standalone ? i("", !0) : (y(), a(e, { key: 0 }, [c(k(t.label), 1)], 64))], 10,
|
|
2895
|
-
t.tooltip ? (y(), r(M(
|
|
2902
|
+
]), t.standalone ? i("", !0) : (y(), a(e, { key: 0 }, [c(k(t.label), 1)], 64))], 10, Ve),
|
|
2903
|
+
t.tooltip ? (y(), r(M(Ee), p({ key: 0 }, t.tooltip, { class: "ml-6" }), {
|
|
2896
2904
|
default: R(() => [l(M(V), {
|
|
2897
2905
|
name: "info-circle",
|
|
2898
2906
|
size: "md",
|
|
@@ -2902,8 +2910,8 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2902
2910
|
})]),
|
|
2903
2911
|
_: 1
|
|
2904
2912
|
}, 16)) : i("", !0)
|
|
2905
|
-
], 8,
|
|
2906
|
-
t.error && n.$slots.error ? (y(), r(
|
|
2913
|
+
], 8, ze),
|
|
2914
|
+
t.error && n.$slots.error ? (y(), r(Le, {
|
|
2907
2915
|
key: 0,
|
|
2908
2916
|
id: `${M(g)}-error`
|
|
2909
2917
|
}, {
|
|
@@ -2913,7 +2921,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2913
2921
|
w(n.$slots, "children", {}, void 0, !0)
|
|
2914
2922
|
]));
|
|
2915
2923
|
}
|
|
2916
|
-
}), [["__scopeId", "data-v-75e1292d"]]),
|
|
2924
|
+
}), [["__scopeId", "data-v-75e1292d"]]), Ge = "@fiscozen/checkbox/CheckedSet", Ke = "flex flex-col justify-center gap-8 pl-24", qe = /* @__PURE__ */ u({
|
|
2917
2925
|
__name: "FzCheckboxGroupOption",
|
|
2918
2926
|
props: /* @__PURE__ */ f({
|
|
2919
2927
|
label: {},
|
|
@@ -2965,7 +2973,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2965
2973
|
onChange: _
|
|
2966
2974
|
}, s({ _: 2 }, [t.children?.length ? {
|
|
2967
2975
|
name: "children",
|
|
2968
|
-
fn: R(() => [o("div", { class: h([
|
|
2976
|
+
fn: R(() => [o("div", { class: h([Ke, f.value]) }, [(y(!0), a(e, null, C(t.children, (e, n) => (y(), r($, p({
|
|
2969
2977
|
key: e.value ? e.value.toString() : e.label,
|
|
2970
2978
|
modelValue: l.value,
|
|
2971
2979
|
"onUpdate:modelValue": c[0] ||= (e) => l.value = e,
|
|
@@ -2994,13 +3002,13 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2994
3002
|
"aria-owns"
|
|
2995
3003
|
]));
|
|
2996
3004
|
}
|
|
2997
|
-
}),
|
|
3005
|
+
}), Je = ["id"], Ye = { key: 0 }, Xe = ["id"], Ze = [
|
|
2998
3006
|
"id",
|
|
2999
3007
|
"aria-labelledby",
|
|
3000
3008
|
"aria-describedby",
|
|
3001
3009
|
"aria-required",
|
|
3002
3010
|
"aria-invalid"
|
|
3003
|
-
],
|
|
3011
|
+
], Qe = "flex flex-col mb-0", $e = "flex flex-col gap-10 text-core-black", et = "flex self-stretch", tt = /* @__PURE__ */ u({
|
|
3004
3012
|
__name: "FzCheckboxGroup",
|
|
3005
3013
|
props: /* @__PURE__ */ f({
|
|
3006
3014
|
label: {},
|
|
@@ -3025,7 +3033,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3025
3033
|
e !== void 0 && console.warn("[FzCheckboxGroup] The \"size\" prop is deprecated and will be removed in a future version. Checkboxes now have a fixed size.");
|
|
3026
3034
|
}, { immediate: !0 });
|
|
3027
3035
|
let u = W(), d = n(() => ["text-sm", s.disabled ? "text-grey-400" : "text-grey-500"]), f = N(t, "modelValue");
|
|
3028
|
-
b(
|
|
3036
|
+
b(Ge, {
|
|
3029
3037
|
source: f,
|
|
3030
3038
|
set: n(() => new Set(f.value))
|
|
3031
3039
|
});
|
|
@@ -3046,24 +3054,24 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3046
3054
|
let e = [];
|
|
3047
3055
|
return l.help && e.push(`${u}-help`), s.error && l.error && e.push(`${u}-error`), e.length > 0 ? e.join(" ") : void 0;
|
|
3048
3056
|
});
|
|
3049
|
-
return (n, s) => (y(), a("div", { class: h([
|
|
3057
|
+
return (n, s) => (y(), a("div", { class: h([$e, g.value]) }, [
|
|
3050
3058
|
o("label", {
|
|
3051
3059
|
id: M(u) + "-label",
|
|
3052
|
-
class: h([
|
|
3053
|
-
}, [o("span", null, [c(k(t.label), 1), t.required ? (y(), a("span",
|
|
3060
|
+
class: h([Qe, m.value])
|
|
3061
|
+
}, [o("span", null, [c(k(t.label), 1), t.required ? (y(), a("span", Ye, " *")) : i("", !0)]), n.$slots.help ? (y(), a("p", {
|
|
3054
3062
|
key: 0,
|
|
3055
3063
|
id: M(u) + "-help",
|
|
3056
3064
|
class: h(d.value)
|
|
3057
|
-
}, [w(n.$slots, "help")], 10,
|
|
3065
|
+
}, [w(n.$slots, "help")], 10, Xe)) : i("", !0)], 10, Je),
|
|
3058
3066
|
o("div", {
|
|
3059
|
-
class: h([
|
|
3067
|
+
class: h([et, _.value]),
|
|
3060
3068
|
id: M(u),
|
|
3061
3069
|
role: "group",
|
|
3062
3070
|
"aria-labelledby": M(u) + "-label",
|
|
3063
3071
|
"aria-describedby": S.value,
|
|
3064
3072
|
"aria-required": t.required ? "true" : "false",
|
|
3065
3073
|
"aria-invalid": t.error ? "true" : "false"
|
|
3066
|
-
}, [v.value ? (y(!0), a(e, { key: 0 }, C(t.options, (e) => (y(), r(
|
|
3074
|
+
}, [v.value ? (y(!0), a(e, { key: 0 }, C(t.options, (e) => (y(), r(qe, p({
|
|
3067
3075
|
key: e.value ? e.value.toString() : e.label,
|
|
3068
3076
|
modelValue: f.value,
|
|
3069
3077
|
"onUpdate:modelValue": s[0] ||= (e) => f.value = e,
|
|
@@ -3079,8 +3087,8 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3079
3087
|
]))), 128)) : w(n.$slots, "default", {
|
|
3080
3088
|
key: 1,
|
|
3081
3089
|
checkboxGroupProps: x.value
|
|
3082
|
-
})], 10,
|
|
3083
|
-
t.error && n.$slots.error ? (y(), r(
|
|
3090
|
+
})], 10, Ze),
|
|
3091
|
+
t.error && n.$slots.error ? (y(), r(Le, {
|
|
3084
3092
|
key: 0,
|
|
3085
3093
|
id: M(u) + "-error"
|
|
3086
3094
|
}, {
|
|
@@ -3089,7 +3097,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3089
3097
|
}, 8, ["id"])) : i("", !0)
|
|
3090
3098
|
], 2));
|
|
3091
3099
|
}
|
|
3092
|
-
}),
|
|
3100
|
+
}), nt = [
|
|
3093
3101
|
"id",
|
|
3094
3102
|
"value",
|
|
3095
3103
|
"disabled",
|
|
@@ -3099,7 +3107,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3099
3107
|
"aria-checked",
|
|
3100
3108
|
"aria-required",
|
|
3101
3109
|
"aria-invalid"
|
|
3102
|
-
],
|
|
3110
|
+
], rt = ["for"], it = ["title"], at = ["src", "alt"], ot = { class: "flex flex-row w-full justify-between min-w-0" }, st = { class: "justify-center flex flex-col w-full grow-0 min-w-0 gap-4" }, ct = "peer h-0 w-0 absolute fz-hidden-input", lt = /* @__PURE__ */ Z(/* @__PURE__ */ u({
|
|
3103
3111
|
__name: "FzCheckboxCard",
|
|
3104
3112
|
props: /* @__PURE__ */ f({
|
|
3105
3113
|
label: {},
|
|
@@ -3130,7 +3138,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3130
3138
|
}),
|
|
3131
3139
|
emits: ["update:modelValue"],
|
|
3132
3140
|
setup(e) {
|
|
3133
|
-
let t = e, s = n(() => t.value ?? t.label), c = U(), u = N(e, "modelValue"), f = d(
|
|
3141
|
+
let t = e, s = n(() => t.value ?? t.label), c = U(), u = N(e, "modelValue"), f = d(Ge, null), p = n(() => u.value == null ? !1 : f && f.source.value === u.value ? f.set.value.has(s.value) : u.value.includes(s.value));
|
|
3134
3142
|
function m() {
|
|
3135
3143
|
if (t.disabled) return;
|
|
3136
3144
|
let e = u.value ?? [];
|
|
@@ -3159,7 +3167,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3159
3167
|
return (n, u) => (y(), a("div", null, [o("input", {
|
|
3160
3168
|
type: "checkbox",
|
|
3161
3169
|
id: M(c),
|
|
3162
|
-
class: h([
|
|
3170
|
+
class: h([ct]),
|
|
3163
3171
|
value: s.value,
|
|
3164
3172
|
disabled: e.disabled,
|
|
3165
3173
|
checked: p.value,
|
|
@@ -3170,7 +3178,7 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3170
3178
|
"aria-required": e.required ? "true" : "false",
|
|
3171
3179
|
"aria-invalid": e.error ? "true" : "false",
|
|
3172
3180
|
onChange: m
|
|
3173
|
-
}, null, 42,
|
|
3181
|
+
}, null, 42, nt), o("label", {
|
|
3174
3182
|
class: h(["relative flex block rounded-lg border-solid pt-12 px-12 cursor-pointer w-full", C.value]),
|
|
3175
3183
|
for: M(c)
|
|
3176
3184
|
}, [
|
|
@@ -3205,14 +3213,14 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3205
3213
|
src: e.imageUrl,
|
|
3206
3214
|
alt: e.imageAlt || "",
|
|
3207
3215
|
class: "object-cover h-full w-full"
|
|
3208
|
-
}, null, 8,
|
|
3209
|
-
o("div",
|
|
3216
|
+
}, null, 8, at)], 10, it)) : i("", !0),
|
|
3217
|
+
o("div", ot, [o("div", st, [o("p", { class: h(["font-medium break-words !m-0 !leading-[20px]", { "text-grey-300": t.disabled }]) }, k(e.title), 3), e.subtitle ? (y(), a("p", {
|
|
3210
3218
|
key: 0,
|
|
3211
3219
|
class: h(["font-normal text-sm mt-4 break-words !m-0 !leading-[16px]", {
|
|
3212
3220
|
"text-grey-300": t.disabled,
|
|
3213
3221
|
"text-grey-500": !t.disabled
|
|
3214
3222
|
}])
|
|
3215
|
-
}, k(e.subtitle), 3)) : i("", !0)]), e.tooltip ? (y(), r(M(
|
|
3223
|
+
}, k(e.subtitle), 3)) : i("", !0)]), e.tooltip ? (y(), r(M(Ee), {
|
|
3216
3224
|
key: 0,
|
|
3217
3225
|
class: h({
|
|
3218
3226
|
"self-center": t.variant === "horizontal",
|
|
@@ -3237,8 +3245,8 @@ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3237
3245
|
"text",
|
|
3238
3246
|
"status"
|
|
3239
3247
|
])) : i("", !0)])
|
|
3240
|
-
], 10,
|
|
3248
|
+
], 10, rt)]));
|
|
3241
3249
|
}
|
|
3242
3250
|
}), [["__scopeId", "data-v-1a096df1"]]);
|
|
3243
3251
|
//#endregion
|
|
3244
|
-
export { $ as FzCheckbox,
|
|
3252
|
+
export { $ as FzCheckbox, lt as FzCheckboxCard, tt as FzCheckboxGroup, U as generateCheckboxId, W as generateGroupId };
|