@fiscozen/checkbox 3.0.3 → 3.0.5
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 +15 -0
- package/dist/checkbox.js +90 -83
- 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,20 @@
|
|
|
1
1
|
# @fiscozen/checkbox
|
|
2
2
|
|
|
3
|
+
## 3.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [a243ebb]
|
|
8
|
+
- @fiscozen/composables@1.0.4
|
|
9
|
+
- @fiscozen/tooltip@3.0.3
|
|
10
|
+
|
|
11
|
+
## 3.0.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [351b6b7]
|
|
16
|
+
- @fiscozen/badge@3.0.1
|
|
17
|
+
|
|
3
18
|
## 3.0.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/checkbox.js
CHANGED
|
@@ -52,7 +52,7 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
|
|
|
52
52
|
right: parseFloat(e.marginRight),
|
|
53
53
|
top: parseFloat(e.marginTop),
|
|
54
54
|
bottom: parseFloat(e.marginBottom)
|
|
55
|
-
}), ne = {
|
|
55
|
+
}), ne = (e) => e !== null && (e.width > 0 || e.height > 0), re = {
|
|
56
56
|
bottom: (e, t) => ({
|
|
57
57
|
position: {
|
|
58
58
|
x: e.left - t.left + e.width / 2,
|
|
@@ -173,8 +173,8 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
|
|
|
173
173
|
y: -100
|
|
174
174
|
}
|
|
175
175
|
})
|
|
176
|
-
},
|
|
177
|
-
let r =
|
|
176
|
+
}, ie = (e, t, n) => {
|
|
177
|
+
let r = re[e];
|
|
178
178
|
return r ? r(t, n) : {
|
|
179
179
|
position: {
|
|
180
180
|
x: 0,
|
|
@@ -185,7 +185,7 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
|
|
|
185
185
|
y: 0
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
|
-
},
|
|
188
|
+
}, ae = {
|
|
189
189
|
bottom: (e, t) => ({
|
|
190
190
|
position: {
|
|
191
191
|
x: e.left + e.width / 2,
|
|
@@ -306,8 +306,8 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
|
|
|
306
306
|
y: 0
|
|
307
307
|
}
|
|
308
308
|
})
|
|
309
|
-
},
|
|
310
|
-
let r =
|
|
309
|
+
}, oe = (e, t, n) => {
|
|
310
|
+
let r = ae[e];
|
|
311
311
|
return r ? r(t, n) : {
|
|
312
312
|
position: {
|
|
313
313
|
x: 0,
|
|
@@ -318,7 +318,7 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
|
|
|
318
318
|
y: 0
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
|
-
},
|
|
321
|
+
}, se = (e, t, n, r) => {
|
|
322
322
|
let i = { ...e }, a = { ...r };
|
|
323
323
|
if (e.x < n.left && (i.x = n.left, a.x = 0), e.x + t.width > n.right) {
|
|
324
324
|
let e = n.right - t.width;
|
|
@@ -332,7 +332,7 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
|
|
|
332
332
|
position: i,
|
|
333
333
|
transform: a
|
|
334
334
|
};
|
|
335
|
-
},
|
|
335
|
+
}, ce = (e, t, n, r, i) => {
|
|
336
336
|
let a = i ? null : t;
|
|
337
337
|
switch (e) {
|
|
338
338
|
case "auto": return K(a, n, r);
|
|
@@ -343,7 +343,7 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
|
|
|
343
343
|
case "auto-vertical-end": return K(a, n, r, "end", !0);
|
|
344
344
|
default: return "bottom-start";
|
|
345
345
|
}
|
|
346
|
-
},
|
|
346
|
+
}, le = (e) => e.startsWith("auto"), ue = (e) => {
|
|
347
347
|
let t = S("auto"), n = S(), r = S(), i = S(), a = S(), o = x({ position: {
|
|
348
348
|
x: 0,
|
|
349
349
|
y: 0
|
|
@@ -379,8 +379,12 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
|
|
|
379
379
|
left: "0px"
|
|
380
380
|
});
|
|
381
381
|
let f = u(d);
|
|
382
|
-
r.value = f.element, i.value = f.opener ?? void 0, a.value = f.container,
|
|
383
|
-
|
|
382
|
+
if (r.value = f.element, i.value = f.opener ?? void 0, a.value = f.container, d.opener && !ne(f.opener)) {
|
|
383
|
+
d.element.style.display = "none";
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
c.value.observe(d.element), c.value.observe(d.container), le(n.value) && d.opener && (n.value = ce(n.value, d.container, d.element, d.opener, e.useViewport?.value ?? !1));
|
|
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 = se(ee(f.element, m.position, m.transform.x, m.transform.y), f.element, f.container, m.transform);
|
|
384
388
|
o.position.x = h.position.x, o.position.y = h.position.y, Object.assign(d.element.style, {
|
|
385
389
|
top: `${o.position.y}px`,
|
|
386
390
|
left: `${o.position.x}px`,
|
|
@@ -396,7 +400,7 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
|
|
|
396
400
|
};
|
|
397
401
|
//#endregion
|
|
398
402
|
//#region ../composables/src/composables/useMediaQuery.ts
|
|
399
|
-
function
|
|
403
|
+
function de(e) {
|
|
400
404
|
let t = window.matchMedia(e), r = S(t.matches);
|
|
401
405
|
function i(e) {
|
|
402
406
|
r.value = e.matches;
|
|
@@ -1926,7 +1930,7 @@ var J = {
|
|
|
1926
1930
|
},
|
|
1927
1931
|
$themes: [],
|
|
1928
1932
|
$metadata: { tokenSetOrder: ["global", "alias"] }
|
|
1929
|
-
},
|
|
1933
|
+
}, fe = {
|
|
1930
1934
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
1931
1935
|
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'.",
|
|
1932
1936
|
safeColorNames: [
|
|
@@ -1938,7 +1942,7 @@ var J = {
|
|
|
1938
1942
|
"grey",
|
|
1939
1943
|
"core"
|
|
1940
1944
|
]
|
|
1941
|
-
},
|
|
1945
|
+
}, pe = {
|
|
1942
1946
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
1943
1947
|
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'.",
|
|
1944
1948
|
semanticColorNames: [
|
|
@@ -1947,8 +1951,8 @@ var J = {
|
|
|
1947
1951
|
"success",
|
|
1948
1952
|
"info"
|
|
1949
1953
|
]
|
|
1950
|
-
},
|
|
1951
|
-
|
|
1954
|
+
}, me = fe.safeColorNames, he = pe.semanticColorNames, Y = {};
|
|
1955
|
+
me.forEach((e) => {
|
|
1952
1956
|
let t = J.global[e];
|
|
1953
1957
|
t && Object.keys(t).forEach((n) => {
|
|
1954
1958
|
let r = t[n]?.value;
|
|
@@ -1956,7 +1960,7 @@ pe.forEach((e) => {
|
|
|
1956
1960
|
});
|
|
1957
1961
|
});
|
|
1958
1962
|
var X = J.global.semantic;
|
|
1959
|
-
X &&
|
|
1963
|
+
X && he.forEach((e) => {
|
|
1960
1964
|
let t = X[e];
|
|
1961
1965
|
t && typeof t == "object" && Object.keys(t).forEach((n) => {
|
|
1962
1966
|
let r = t[n]?.value;
|
|
@@ -1968,7 +1972,7 @@ X && me.forEach((e) => {
|
|
|
1968
1972
|
});
|
|
1969
1973
|
//#endregion
|
|
1970
1974
|
//#region ../style/src/constants.ts
|
|
1971
|
-
var
|
|
1975
|
+
var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.value, e), {}), _e = /* @__PURE__ */ u({
|
|
1972
1976
|
__name: "FzFloating",
|
|
1973
1977
|
props: {
|
|
1974
1978
|
isOpen: {
|
|
@@ -1989,7 +1993,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
1989
1993
|
},
|
|
1990
1994
|
emits: ["fzfloating:setPosition"],
|
|
1991
1995
|
setup(e, { expose: s, emit: c }) {
|
|
1992
|
-
let l = e, u = c, d = S(null), f = S(null), p = P(), m =
|
|
1996
|
+
let l = e, u = c, d = S(null), f = S(null), p = P(), m = de(`(max-width: ${ge.xs})`), v = !1, b = !1, x = null, C = null, T = {
|
|
1993
1997
|
position: l.position,
|
|
1994
1998
|
element: { domRef: d },
|
|
1995
1999
|
container: { domRef: A(l.container || document.body) },
|
|
@@ -2000,7 +2004,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2000
2004
|
}
|
|
2001
2005
|
}, E = j(T);
|
|
2002
2006
|
p.opener && (T.opener = { domRef: f });
|
|
2003
|
-
let D =
|
|
2007
|
+
let D = ue(E), O = () => {
|
|
2004
2008
|
v || !b || (v = !0, requestAnimationFrame(() => {
|
|
2005
2009
|
b && l.isOpen && D.setPosition(), v = !1;
|
|
2006
2010
|
}));
|
|
@@ -2072,11 +2076,11 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2072
2076
|
})], 2), [[I, n.$slots.default && (!n.$slots.opener || n.$slots.opener && e.isOpen)]])])) : i("", !0)
|
|
2073
2077
|
]));
|
|
2074
2078
|
}
|
|
2075
|
-
}),
|
|
2079
|
+
}), ve = [
|
|
2076
2080
|
"aria-label",
|
|
2077
2081
|
"aria-describedby",
|
|
2078
2082
|
"tabindex"
|
|
2079
|
-
],
|
|
2083
|
+
], ye = ["aria-hidden"], be = 100, xe = "text-core-white max-w-[200px] p-8 text-sm leading-[16px] flex flex-row items-start justify-center", Se = /* @__PURE__ */ u({
|
|
2080
2084
|
__name: "FzTooltip",
|
|
2081
2085
|
props: {
|
|
2082
2086
|
position: { default: "auto" },
|
|
@@ -2155,7 +2159,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2155
2159
|
function F() {
|
|
2156
2160
|
T.value &&= (clearTimeout(T.value), null), T.value = setTimeout(() => {
|
|
2157
2161
|
!x.value && !C.value && j();
|
|
2158
|
-
},
|
|
2162
|
+
}, be);
|
|
2159
2163
|
}
|
|
2160
2164
|
function I() {
|
|
2161
2165
|
x.value = !0, T.value &&= (clearTimeout(T.value), null);
|
|
@@ -2178,7 +2182,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2178
2182
|
e ? A() : j();
|
|
2179
2183
|
}), v(() => {
|
|
2180
2184
|
T.value && clearTimeout(T.value);
|
|
2181
|
-
}), (n, a) => (y(), r(M(
|
|
2185
|
+
}), (n, a) => (y(), r(M(_e), {
|
|
2182
2186
|
teleport: !0,
|
|
2183
2187
|
"is-open": b.value,
|
|
2184
2188
|
position: e.position,
|
|
@@ -2198,10 +2202,10 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2198
2202
|
onFocusin: B,
|
|
2199
2203
|
onFocusout: H,
|
|
2200
2204
|
onKeydown: U
|
|
2201
|
-
}, [w(n.$slots, "default", {}, void 0, !0)], 40,
|
|
2205
|
+
}, [w(n.$slots, "default", {}, void 0, !0)], 40, ve)]),
|
|
2202
2206
|
default: R(() => [o("div", {
|
|
2203
2207
|
id: g,
|
|
2204
|
-
class: h(
|
|
2208
|
+
class: h(xe),
|
|
2205
2209
|
role: "tooltip",
|
|
2206
2210
|
"aria-hidden": !b.value,
|
|
2207
2211
|
onMouseenter: I,
|
|
@@ -2219,7 +2223,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2219
2223
|
{ "text-core-black": t.status === "alert" }
|
|
2220
2224
|
]),
|
|
2221
2225
|
"aria-hidden": !0
|
|
2222
|
-
}, 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,
|
|
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, ye)]),
|
|
2223
2227
|
_: 3
|
|
2224
2228
|
}, 8, [
|
|
2225
2229
|
"is-open",
|
|
@@ -2231,12 +2235,12 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2231
2235
|
let n = e.__vccOpts || e;
|
|
2232
2236
|
for (let [e, r] of t) n[e] = r;
|
|
2233
2237
|
return n;
|
|
2234
|
-
},
|
|
2238
|
+
}, Ce = /* @__PURE__ */ Z(Se, [["__scopeId", "data-v-e4c0b632"]]), Q = {
|
|
2235
2239
|
xs: "backoffice",
|
|
2236
2240
|
sm: "backoffice",
|
|
2237
2241
|
md: "backoffice",
|
|
2238
2242
|
lg: "frontoffice"
|
|
2239
|
-
},
|
|
2243
|
+
}, we = ["disabled", "aria-disabled"], Te = /* @__PURE__ */ u({
|
|
2240
2244
|
__fzKind: "@fiscozen/button/FzButton",
|
|
2241
2245
|
__name: "FzButton",
|
|
2242
2246
|
props: {
|
|
@@ -2320,6 +2324,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2320
2324
|
let e = !!(t.label || o.default), n = !!t.iconName, r = t.overrideContainerClass && n;
|
|
2321
2325
|
return e && n || r;
|
|
2322
2326
|
}), f = [
|
|
2327
|
+
"fz-button",
|
|
2323
2328
|
"relative",
|
|
2324
2329
|
"rounded",
|
|
2325
2330
|
"flex",
|
|
@@ -2330,7 +2335,9 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2330
2335
|
"!text-[16px]",
|
|
2331
2336
|
"!leading-[20px]",
|
|
2332
2337
|
"border-1",
|
|
2338
|
+
"border-solid",
|
|
2333
2339
|
"border-transparent",
|
|
2340
|
+
"appearance-none",
|
|
2334
2341
|
"gap-8"
|
|
2335
2342
|
], p = [
|
|
2336
2343
|
"flex",
|
|
@@ -2380,9 +2387,9 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2380
2387
|
size: "md",
|
|
2381
2388
|
variant: e.iconVariant
|
|
2382
2389
|
}, null, 8, ["name", "variant"])) : i("", !0)])])) : i("", !0)
|
|
2383
|
-
], 10,
|
|
2390
|
+
], 10, we));
|
|
2384
2391
|
}
|
|
2385
|
-
}),
|
|
2392
|
+
}), Ee = /* @__PURE__ */ Z(/* @__PURE__ */ u({
|
|
2386
2393
|
inheritAttrs: !1,
|
|
2387
2394
|
__fzKind: "@fiscozen/button/FzIconButton",
|
|
2388
2395
|
__name: "FzIconButton",
|
|
@@ -2449,7 +2456,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2449
2456
|
"fz-icon-button-wrapper--backoffice": r.value === "backoffice",
|
|
2450
2457
|
"fz-icon-button-wrapper--frontoffice": r.value === "frontoffice"
|
|
2451
2458
|
}
|
|
2452
|
-
]) }, [l(
|
|
2459
|
+
]) }, [l(Te, p(e.$attrs, {
|
|
2453
2460
|
disabled: t.disabled,
|
|
2454
2461
|
environment: r.value,
|
|
2455
2462
|
variant: t.variant,
|
|
@@ -2471,7 +2478,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2471
2478
|
"aria-hidden": "true"
|
|
2472
2479
|
}, null, 2)) : i("", !0)], 2));
|
|
2473
2480
|
}
|
|
2474
|
-
}), [["__scopeId", "data-v-84505903"]]),
|
|
2481
|
+
}), [["__scopeId", "data-v-84505903"]]), De = /* @__PURE__ */ Z(/* @__PURE__ */ u({
|
|
2475
2482
|
__name: "FzContainer",
|
|
2476
2483
|
props: {
|
|
2477
2484
|
main: {
|
|
@@ -2510,11 +2517,11 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2510
2517
|
_: 3
|
|
2511
2518
|
}, 8, ["class"]));
|
|
2512
2519
|
}
|
|
2513
|
-
}), [["__scopeId", "data-v-8c40daeb"]]),
|
|
2520
|
+
}), [["__scopeId", "data-v-8c40daeb"]]), Oe = ["aria-disabled"], ke = [
|
|
2514
2521
|
"href",
|
|
2515
2522
|
"target",
|
|
2516
2523
|
"rel"
|
|
2517
|
-
],
|
|
2524
|
+
], Ae = /* @__PURE__ */ u({
|
|
2518
2525
|
__fzKind: "@fiscozen/link/FzLink",
|
|
2519
2526
|
__name: "FzLink",
|
|
2520
2527
|
props: {
|
|
@@ -2591,13 +2598,13 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2591
2598
|
"aria-disabled": e.disabled ? "true" : "false",
|
|
2592
2599
|
role: "link",
|
|
2593
2600
|
"aria-label": "Link disabled"
|
|
2594
|
-
}, [w(t.$slots, "default")], 10,
|
|
2601
|
+
}, [w(t.$slots, "default")], 10, Oe)) : e.external ? (y(), a("a", {
|
|
2595
2602
|
key: 1,
|
|
2596
2603
|
href: g.value,
|
|
2597
2604
|
class: h(p.value),
|
|
2598
2605
|
target: e.target,
|
|
2599
2606
|
rel: _.value
|
|
2600
|
-
}, [w(t.$slots, "default")], 10,
|
|
2607
|
+
}, [w(t.$slots, "default")], 10, ke)) : (y(), r(i, {
|
|
2601
2608
|
key: 2,
|
|
2602
2609
|
to: e.to,
|
|
2603
2610
|
replace: e.replace,
|
|
@@ -2614,10 +2621,10 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2614
2621
|
]));
|
|
2615
2622
|
};
|
|
2616
2623
|
}
|
|
2617
|
-
}),
|
|
2624
|
+
}), je = { class: "flex flex-col flex-1" }, Me = {
|
|
2618
2625
|
key: 0,
|
|
2619
2626
|
class: "leading-[20px]"
|
|
2620
|
-
},
|
|
2627
|
+
}, Ne = /* @__PURE__ */ Z(/* @__PURE__ */ u({
|
|
2621
2628
|
__name: "FzAlert",
|
|
2622
2629
|
props: {
|
|
2623
2630
|
tone: {},
|
|
@@ -2696,7 +2703,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2696
2703
|
return y(), a("div", {
|
|
2697
2704
|
class: h(_.value),
|
|
2698
2705
|
onClick: G
|
|
2699
|
-
}, [l(M(
|
|
2706
|
+
}, [l(M(De), {
|
|
2700
2707
|
horizontal: "",
|
|
2701
2708
|
gap: T.value,
|
|
2702
2709
|
class: h(["flex-1", C.value]),
|
|
@@ -2711,17 +2718,17 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2711
2718
|
"name",
|
|
2712
2719
|
"size",
|
|
2713
2720
|
"class"
|
|
2714
|
-
]), o("div",
|
|
2715
|
-
e.title && !g.value ? z((y(), a("p",
|
|
2721
|
+
]), o("div", je, [
|
|
2722
|
+
e.title && !g.value ? z((y(), a("p", Me, [c(k(e.title), 1)])), [[s]]) : i("", !0),
|
|
2716
2723
|
F.value ? (y(), a("p", {
|
|
2717
2724
|
key: 1,
|
|
2718
2725
|
class: h(O.value)
|
|
2719
2726
|
}, [w(t.$slots, "default", {}, void 0, !0)], 2)) : i("", !0),
|
|
2720
|
-
D.value ? w(t.$slots, "action", { key: 2 }, () => [l(M(
|
|
2727
|
+
D.value ? w(t.$slots, "action", { key: 2 }, () => [l(M(De), {
|
|
2721
2728
|
horizontal: "",
|
|
2722
2729
|
gap: "sm"
|
|
2723
2730
|
}, {
|
|
2724
|
-
default: R(() => [e.showButtonAction ? (y(), r(M(
|
|
2731
|
+
default: R(() => [e.showButtonAction ? (y(), r(M(Te), {
|
|
2725
2732
|
key: 0,
|
|
2726
2733
|
onClick: I,
|
|
2727
2734
|
tooltip: e.buttonActionTooltip,
|
|
@@ -2730,7 +2737,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2730
2737
|
}, {
|
|
2731
2738
|
default: R(() => [c(k(e.buttonActionLabel), 1)]),
|
|
2732
2739
|
_: 1
|
|
2733
|
-
}, 8, ["tooltip", "environment"])) : i("", !0), e.showLinkAction ? (y(), r(M(
|
|
2740
|
+
}, 8, ["tooltip", "environment"])) : i("", !0), e.showLinkAction ? (y(), r(M(Ae), {
|
|
2734
2741
|
key: 1,
|
|
2735
2742
|
to: e.linkActionLocation,
|
|
2736
2743
|
onClick: I,
|
|
@@ -2749,7 +2756,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2749
2756
|
})], !0) : i("", !0)
|
|
2750
2757
|
])]),
|
|
2751
2758
|
_: 3
|
|
2752
|
-
}, 8, ["gap", "class"]), U.value ? (y(), r(M(
|
|
2759
|
+
}, 8, ["gap", "class"]), U.value ? (y(), r(M(Ee), {
|
|
2753
2760
|
key: 0,
|
|
2754
2761
|
iconName: j.value,
|
|
2755
2762
|
environment: L.value,
|
|
@@ -2758,11 +2765,11 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2758
2765
|
}, null, 8, ["iconName", "environment"])) : i("", !0)], 2);
|
|
2759
2766
|
};
|
|
2760
2767
|
}
|
|
2761
|
-
}), [["__scopeId", "data-v-3d1f9d4e"]]),
|
|
2768
|
+
}), [["__scopeId", "data-v-3d1f9d4e"]]), Pe = /* @__PURE__ */ u({
|
|
2762
2769
|
__name: "ErrorAlert",
|
|
2763
2770
|
props: { id: {} },
|
|
2764
2771
|
setup(e) {
|
|
2765
|
-
return (t, n) => (y(), r(M(
|
|
2772
|
+
return (t, n) => (y(), r(M(Ne), {
|
|
2766
2773
|
id: e.id,
|
|
2767
2774
|
tone: "error",
|
|
2768
2775
|
variant: "text",
|
|
@@ -2775,11 +2782,11 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2775
2782
|
_: 3
|
|
2776
2783
|
}, 8, ["id"]));
|
|
2777
2784
|
}
|
|
2778
|
-
}),
|
|
2785
|
+
}), Fe = { class: "flex justify-center flex-col w-fit gap-4" }, Ie = [
|
|
2779
2786
|
"data-emphasis",
|
|
2780
2787
|
"data-error",
|
|
2781
2788
|
"data-disabled"
|
|
2782
|
-
],
|
|
2789
|
+
], Le = [
|
|
2783
2790
|
"id",
|
|
2784
2791
|
"disabled",
|
|
2785
2792
|
"required",
|
|
@@ -2791,7 +2798,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2791
2798
|
"aria-describedby",
|
|
2792
2799
|
"aria-labelledby",
|
|
2793
2800
|
"aria-owns"
|
|
2794
|
-
],
|
|
2801
|
+
], Re = ["id", "for"], ze = "w-0 h-0 peer fz-hidden-input", Be = "\n flex gap-6 items-start hover:cursor-pointer text-core-black\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", Ve = "relative", $ = /* @__PURE__ */ Z(/* @__PURE__ */ u({
|
|
2795
2802
|
__name: "FzCheckbox",
|
|
2796
2803
|
props: /* @__PURE__ */ f({
|
|
2797
2804
|
label: {},
|
|
@@ -2840,7 +2847,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2840
2847
|
}), 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);
|
|
2841
2848
|
return _(() => {
|
|
2842
2849
|
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")));
|
|
2843
|
-
}), (n, s) => (y(), a("div",
|
|
2850
|
+
}), (n, s) => (y(), a("div", Fe, [
|
|
2844
2851
|
o("div", {
|
|
2845
2852
|
class: "flex items-start group",
|
|
2846
2853
|
"data-emphasis": t.emphasis || void 0,
|
|
@@ -2851,7 +2858,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2851
2858
|
type: "checkbox",
|
|
2852
2859
|
id: M(g),
|
|
2853
2860
|
disabled: t.disabled,
|
|
2854
|
-
class: h(
|
|
2861
|
+
class: h(ze),
|
|
2855
2862
|
required: t.required,
|
|
2856
2863
|
value: t.value,
|
|
2857
2864
|
onChange: s[0] ||= (e) => b("change", e),
|
|
@@ -2865,23 +2872,23 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2865
2872
|
"aria-owns": u.ariaOwns,
|
|
2866
2873
|
ref_key: "refCheckbox",
|
|
2867
2874
|
ref: x
|
|
2868
|
-
}, null, 40,
|
|
2875
|
+
}, null, 40, Le), [[F, v.value]]),
|
|
2869
2876
|
o("label", {
|
|
2870
2877
|
id: `${M(g)}-label`,
|
|
2871
2878
|
for: M(g),
|
|
2872
|
-
class: h([
|
|
2879
|
+
class: h([Be, E.value])
|
|
2873
2880
|
}, [l(M(V), {
|
|
2874
2881
|
name: A.value,
|
|
2875
2882
|
size: "md",
|
|
2876
|
-
class: h([
|
|
2883
|
+
class: h([Ve, D.value]),
|
|
2877
2884
|
variant: j.value,
|
|
2878
2885
|
"aria-hidden": "true"
|
|
2879
2886
|
}, null, 8, [
|
|
2880
2887
|
"name",
|
|
2881
2888
|
"class",
|
|
2882
2889
|
"variant"
|
|
2883
|
-
]), t.standalone ? i("", !0) : (y(), a(e, { key: 0 }, [c(k(t.label), 1)], 64))], 10,
|
|
2884
|
-
t.tooltip ? (y(), r(M(
|
|
2890
|
+
]), t.standalone ? i("", !0) : (y(), a(e, { key: 0 }, [c(k(t.label), 1)], 64))], 10, Re),
|
|
2891
|
+
t.tooltip ? (y(), r(M(Ce), p({ key: 0 }, t.tooltip, { class: "ml-6" }), {
|
|
2885
2892
|
default: R(() => [l(M(V), {
|
|
2886
2893
|
name: "info-circle",
|
|
2887
2894
|
size: "md",
|
|
@@ -2891,8 +2898,8 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2891
2898
|
})]),
|
|
2892
2899
|
_: 1
|
|
2893
2900
|
}, 16)) : i("", !0)
|
|
2894
|
-
], 8,
|
|
2895
|
-
t.error && n.$slots.error ? (y(), r(
|
|
2901
|
+
], 8, Ie),
|
|
2902
|
+
t.error && n.$slots.error ? (y(), r(Pe, {
|
|
2896
2903
|
key: 0,
|
|
2897
2904
|
id: `${M(g)}-error`
|
|
2898
2905
|
}, {
|
|
@@ -2902,7 +2909,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2902
2909
|
w(n.$slots, "children", {}, void 0, !0)
|
|
2903
2910
|
]));
|
|
2904
2911
|
}
|
|
2905
|
-
}), [["__scopeId", "data-v-2b198cc9"]]),
|
|
2912
|
+
}), [["__scopeId", "data-v-2b198cc9"]]), He = "@fiscozen/checkbox/CheckedSet", Ue = "flex flex-col justify-center gap-8 pl-24", We = /* @__PURE__ */ u({
|
|
2906
2913
|
__name: "FzCheckboxGroupOption",
|
|
2907
2914
|
props: /* @__PURE__ */ f({
|
|
2908
2915
|
label: {},
|
|
@@ -2954,7 +2961,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2954
2961
|
onChange: _
|
|
2955
2962
|
}, s({ _: 2 }, [t.children?.length ? {
|
|
2956
2963
|
name: "children",
|
|
2957
|
-
fn: R(() => [o("div", { class: h([
|
|
2964
|
+
fn: R(() => [o("div", { class: h([Ue, f.value]) }, [(y(!0), a(e, null, C(t.children, (e, n) => (y(), r($, p({
|
|
2958
2965
|
key: e.value ? e.value.toString() : e.label,
|
|
2959
2966
|
modelValue: l.value,
|
|
2960
2967
|
"onUpdate:modelValue": c[0] ||= (e) => l.value = e,
|
|
@@ -2983,13 +2990,13 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
2983
2990
|
"aria-owns"
|
|
2984
2991
|
]));
|
|
2985
2992
|
}
|
|
2986
|
-
}),
|
|
2993
|
+
}), Ge = ["id"], Ke = { key: 0 }, qe = ["id"], Je = [
|
|
2987
2994
|
"id",
|
|
2988
2995
|
"aria-labelledby",
|
|
2989
2996
|
"aria-describedby",
|
|
2990
2997
|
"aria-required",
|
|
2991
2998
|
"aria-invalid"
|
|
2992
|
-
],
|
|
2999
|
+
], Ye = "flex flex-col", Xe = "flex flex-col gap-10", Ze = "flex self-stretch", Qe = /* @__PURE__ */ u({
|
|
2993
3000
|
__name: "FzCheckboxGroup",
|
|
2994
3001
|
props: /* @__PURE__ */ f({
|
|
2995
3002
|
label: {},
|
|
@@ -3014,7 +3021,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3014
3021
|
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.");
|
|
3015
3022
|
}, { immediate: !0 });
|
|
3016
3023
|
let u = W(), d = n(() => ["text-sm", s.disabled ? "text-grey-400" : "text-grey-500"]), f = N(t, "modelValue");
|
|
3017
|
-
b(
|
|
3024
|
+
b(He, {
|
|
3018
3025
|
source: f,
|
|
3019
3026
|
set: n(() => new Set(f.value))
|
|
3020
3027
|
});
|
|
@@ -3035,24 +3042,24 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3035
3042
|
let e = [];
|
|
3036
3043
|
return l.help && e.push(`${u}-help`), s.error && l.error && e.push(`${u}-error`), e.length > 0 ? e.join(" ") : void 0;
|
|
3037
3044
|
});
|
|
3038
|
-
return (n, s) => (y(), a("div", { class: h([
|
|
3045
|
+
return (n, s) => (y(), a("div", { class: h([Xe, g.value]) }, [
|
|
3039
3046
|
o("label", {
|
|
3040
3047
|
id: M(u) + "-label",
|
|
3041
|
-
class: h([
|
|
3042
|
-
}, [o("span", null, [c(k(t.label), 1), t.required ? (y(), a("span",
|
|
3048
|
+
class: h([Ye, m.value])
|
|
3049
|
+
}, [o("span", null, [c(k(t.label), 1), t.required ? (y(), a("span", Ke, " *")) : i("", !0)]), n.$slots.help ? (y(), a("p", {
|
|
3043
3050
|
key: 0,
|
|
3044
3051
|
id: M(u) + "-help",
|
|
3045
3052
|
class: h(d.value)
|
|
3046
|
-
}, [w(n.$slots, "help")], 10,
|
|
3053
|
+
}, [w(n.$slots, "help")], 10, qe)) : i("", !0)], 10, Ge),
|
|
3047
3054
|
o("div", {
|
|
3048
|
-
class: h([
|
|
3055
|
+
class: h([Ze, _.value]),
|
|
3049
3056
|
id: M(u),
|
|
3050
3057
|
role: "group",
|
|
3051
3058
|
"aria-labelledby": M(u) + "-label",
|
|
3052
3059
|
"aria-describedby": S.value,
|
|
3053
3060
|
"aria-required": t.required ? "true" : "false",
|
|
3054
3061
|
"aria-invalid": t.error ? "true" : "false"
|
|
3055
|
-
}, [v.value ? (y(!0), a(e, { key: 0 }, C(t.options, (e) => (y(), r(
|
|
3062
|
+
}, [v.value ? (y(!0), a(e, { key: 0 }, C(t.options, (e) => (y(), r(We, p({
|
|
3056
3063
|
key: e.value ? e.value.toString() : e.label,
|
|
3057
3064
|
modelValue: f.value,
|
|
3058
3065
|
"onUpdate:modelValue": s[0] ||= (e) => f.value = e,
|
|
@@ -3068,8 +3075,8 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3068
3075
|
]))), 128)) : w(n.$slots, "default", {
|
|
3069
3076
|
key: 1,
|
|
3070
3077
|
checkboxGroupProps: x.value
|
|
3071
|
-
})], 10,
|
|
3072
|
-
t.error && n.$slots.error ? (y(), r(
|
|
3078
|
+
})], 10, Je),
|
|
3079
|
+
t.error && n.$slots.error ? (y(), r(Pe, {
|
|
3073
3080
|
key: 0,
|
|
3074
3081
|
id: M(u) + "-error"
|
|
3075
3082
|
}, {
|
|
@@ -3078,7 +3085,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3078
3085
|
}, 8, ["id"])) : i("", !0)
|
|
3079
3086
|
], 2));
|
|
3080
3087
|
}
|
|
3081
|
-
}),
|
|
3088
|
+
}), $e = [
|
|
3082
3089
|
"id",
|
|
3083
3090
|
"value",
|
|
3084
3091
|
"disabled",
|
|
@@ -3088,7 +3095,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3088
3095
|
"aria-checked",
|
|
3089
3096
|
"aria-required",
|
|
3090
3097
|
"aria-invalid"
|
|
3091
|
-
],
|
|
3098
|
+
], et = ["for"], tt = ["title"], nt = ["src", "alt"], rt = { class: "flex flex-row w-full justify-between min-w-0" }, it = { class: "justify-center flex flex-col w-full grow-0 min-w-0 gap-4" }, at = "peer h-0 w-0 absolute fz-hidden-input", ot = /* @__PURE__ */ Z(/* @__PURE__ */ u({
|
|
3092
3099
|
__name: "FzCheckboxCard",
|
|
3093
3100
|
props: /* @__PURE__ */ f({
|
|
3094
3101
|
label: {},
|
|
@@ -3119,7 +3126,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3119
3126
|
}),
|
|
3120
3127
|
emits: ["update:modelValue"],
|
|
3121
3128
|
setup(e) {
|
|
3122
|
-
let t = e, s = n(() => t.value ?? t.label), c = U(), u = N(e, "modelValue"), f = d(
|
|
3129
|
+
let t = e, s = n(() => t.value ?? t.label), c = U(), u = N(e, "modelValue"), f = d(He, null), p = n(() => u.value == null ? !1 : f && f.source.value === u.value ? f.set.value.has(s.value) : u.value.includes(s.value));
|
|
3123
3130
|
function m() {
|
|
3124
3131
|
if (t.disabled) return;
|
|
3125
3132
|
let e = u.value ?? [];
|
|
@@ -3148,7 +3155,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3148
3155
|
return (n, u) => (y(), a("div", null, [o("input", {
|
|
3149
3156
|
type: "checkbox",
|
|
3150
3157
|
id: M(c),
|
|
3151
|
-
class: h([
|
|
3158
|
+
class: h([at]),
|
|
3152
3159
|
value: s.value,
|
|
3153
3160
|
disabled: e.disabled,
|
|
3154
3161
|
checked: p.value,
|
|
@@ -3159,7 +3166,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3159
3166
|
"aria-required": e.required ? "true" : "false",
|
|
3160
3167
|
"aria-invalid": e.error ? "true" : "false",
|
|
3161
3168
|
onChange: m
|
|
3162
|
-
}, null, 42,
|
|
3169
|
+
}, null, 42, $e), o("label", {
|
|
3163
3170
|
class: h(["relative flex block rounded-lg border-solid pt-12 px-12 cursor-pointer w-full", C.value]),
|
|
3164
3171
|
for: M(c)
|
|
3165
3172
|
}, [
|
|
@@ -3194,14 +3201,14 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3194
3201
|
src: e.imageUrl,
|
|
3195
3202
|
alt: e.imageAlt || "",
|
|
3196
3203
|
class: "object-cover h-full w-full"
|
|
3197
|
-
}, null, 8,
|
|
3198
|
-
o("div",
|
|
3204
|
+
}, null, 8, nt)], 10, tt)) : i("", !0),
|
|
3205
|
+
o("div", rt, [o("div", it, [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", {
|
|
3199
3206
|
key: 0,
|
|
3200
3207
|
class: h(["font-normal text-sm mt-4 break-words !m-0 !leading-[16px]", {
|
|
3201
3208
|
"text-grey-300": t.disabled,
|
|
3202
3209
|
"text-grey-500": !t.disabled
|
|
3203
3210
|
}])
|
|
3204
|
-
}, k(e.subtitle), 3)) : i("", !0)]), e.tooltip ? (y(), r(M(
|
|
3211
|
+
}, k(e.subtitle), 3)) : i("", !0)]), e.tooltip ? (y(), r(M(Ce), {
|
|
3205
3212
|
key: 0,
|
|
3206
3213
|
class: h({
|
|
3207
3214
|
"self-center": t.variant === "horizontal",
|
|
@@ -3226,8 +3233,8 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
|
|
|
3226
3233
|
"text",
|
|
3227
3234
|
"status"
|
|
3228
3235
|
])) : i("", !0)])
|
|
3229
|
-
], 10,
|
|
3236
|
+
], 10, et)]));
|
|
3230
3237
|
}
|
|
3231
3238
|
}), [["__scopeId", "data-v-1a096df1"]]);
|
|
3232
3239
|
//#endregion
|
|
3233
|
-
export { $ as FzCheckbox,
|
|
3240
|
+
export { $ as FzCheckbox, ot as FzCheckboxCard, Qe as FzCheckboxGroup, U as generateCheckboxId, W as generateGroupId };
|