@nexxtmove/ui 1.43.0 → 1.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/editor/atoms/EditorDimensionField/EditorDimensionField.vue.d.ts +12 -2
- package/dist/components/editor/molecules/EditorMaxWidth/EditorMaxWidth.vue.d.ts +6 -0
- package/dist/components/editor/molecules/EditorSize/EditorSize.vue.d.ts +11 -7
- package/dist/components/editor/molecules/EditorSizeLimit/EditorSizeLimit.vue.d.ts +5 -0
- package/dist/index.js +151 -151
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/src/components/editor/atoms/EditorDimensionField/EditorDimensionField.vue +19 -3
- package/src/components/editor/molecules/EditorMaxWidth/EditorMaxWidth.vue +6 -0
- package/src/components/editor/molecules/EditorSize/EditorSize.vue +7 -4
- package/src/components/editor/molecules/EditorSizeLimit/EditorSizeLimit.vue +5 -0
|
@@ -58,7 +58,12 @@ export interface NexxtEditorDimensionFieldProps {
|
|
|
58
58
|
declare const _default: typeof __VLS_export;
|
|
59
59
|
export default _default;
|
|
60
60
|
declare const __VLS_export: import('vue').DefineComponent<NexxtEditorDimensionFieldProps & {
|
|
61
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* The dimension, or `null` for none. A `null` from outside -- another element
|
|
63
|
+
* selected, an undo -- resets the unit to the first of `units`; a field the
|
|
64
|
+
* user emptied keeps the unit picked in it. A value from outside brings its
|
|
65
|
+
* own unit.
|
|
66
|
+
*/
|
|
62
67
|
modelValue?: EditorDimensionValue | null;
|
|
63
68
|
}, {
|
|
64
69
|
/**
|
|
@@ -71,7 +76,12 @@ declare const __VLS_export: import('vue').DefineComponent<NexxtEditorDimensionFi
|
|
|
71
76
|
"update:modelValue": (value: EditorDimensionValue | null) => any;
|
|
72
77
|
commit: () => any;
|
|
73
78
|
}, string, import('vue').PublicProps, Readonly<NexxtEditorDimensionFieldProps & {
|
|
74
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* The dimension, or `null` for none. A `null` from outside -- another element
|
|
81
|
+
* selected, an undo -- resets the unit to the first of `units`; a field the
|
|
82
|
+
* user emptied keeps the unit picked in it. A value from outside brings its
|
|
83
|
+
* own unit.
|
|
84
|
+
*/
|
|
75
85
|
modelValue?: EditorDimensionValue | null;
|
|
76
86
|
}> & Readonly<{
|
|
77
87
|
"onUpdate:modelValue"?: ((value: EditorDimensionValue | null) => any) | undefined;
|
|
@@ -54,6 +54,12 @@ export interface EditorMaxWidthMessages {
|
|
|
54
54
|
*/
|
|
55
55
|
unit?: string;
|
|
56
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Sets a width on Tailwind's `max-w-*` steps, stored as the class.
|
|
59
|
+
*
|
|
60
|
+
* @deprecated Use `NexxtEditorSizeLimit`: a free maximum in px or % that can
|
|
61
|
+
* be none.
|
|
62
|
+
*/
|
|
57
63
|
export interface NexxtEditorMaxWidthProps {
|
|
58
64
|
/**
|
|
59
65
|
* Header text of the settings block. Defaults to the Dutch
|
|
@@ -16,7 +16,9 @@ export interface EditorSizeValue {
|
|
|
16
16
|
mode: EditorSizeMode;
|
|
17
17
|
/**
|
|
18
18
|
* The fixed dimension. Kept when another mode is picked, so switching back
|
|
19
|
-
* to `'fixed'` restores it; it only applies while `mode` is `'fixed'`.
|
|
19
|
+
* to `'fixed'` restores it; it only applies while `mode` is `'fixed'`. The
|
|
20
|
+
* app always fills it with the measured size of the element, so picking
|
|
21
|
+
* `'fixed'` starts from that size.
|
|
20
22
|
*/
|
|
21
23
|
fixed?: EditorDimensionValue;
|
|
22
24
|
}
|
|
@@ -76,9 +78,10 @@ declare const _default: typeof __VLS_export;
|
|
|
76
78
|
export default _default;
|
|
77
79
|
declare const __VLS_export: import('vue').DefineComponent<NexxtEditorSizeProps & {
|
|
78
80
|
/**
|
|
79
|
-
* The size.
|
|
80
|
-
*
|
|
81
|
-
*
|
|
81
|
+
* The size. Fill `fixed` with the measured size of the element, as the app
|
|
82
|
+
* always does. Without it, picking `'fixed'` writes `{ mode: 'fixed' }` and
|
|
83
|
+
* commits straight away, leaving a fixed mode without a size until a value is
|
|
84
|
+
* typed; with the measured size, that state does not come up.
|
|
82
85
|
*/
|
|
83
86
|
modelValue: EditorSizeValue;
|
|
84
87
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -86,9 +89,10 @@ declare const __VLS_export: import('vue').DefineComponent<NexxtEditorSizeProps &
|
|
|
86
89
|
commit: () => any;
|
|
87
90
|
}, string, import('vue').PublicProps, Readonly<NexxtEditorSizeProps & {
|
|
88
91
|
/**
|
|
89
|
-
* The size.
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
+
* The size. Fill `fixed` with the measured size of the element, as the app
|
|
93
|
+
* always does. Without it, picking `'fixed'` writes `{ mode: 'fixed' }` and
|
|
94
|
+
* commits straight away, leaving a fixed mode without a size until a value is
|
|
95
|
+
* typed; with the measured size, that state does not come up.
|
|
92
96
|
*/
|
|
93
97
|
modelValue: EditorSizeValue;
|
|
94
98
|
}> & Readonly<{
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { EditorDimensionValue, EditorDimensionFieldMessages, EditorDimensionUnit } from '../../atoms/EditorDimensionField/EditorDimensionField.vue';
|
|
2
2
|
/** Overridable copy of the field. Every key is optional. */
|
|
3
3
|
export type EditorSizeLimitMessages = EditorDimensionFieldMessages;
|
|
4
|
+
/**
|
|
5
|
+
* A free minimum or maximum of an element's size, in px or %, that can be
|
|
6
|
+
* none. Replaces the deprecated `NexxtEditorMaxWidth`, which offers only
|
|
7
|
+
* Tailwind's `max-w-*` steps.
|
|
8
|
+
*/
|
|
4
9
|
export interface NexxtEditorSizeLimitProps {
|
|
5
10
|
/** Visible label above the field, and its accessible name, as in `'Maximale breedte'`. */
|
|
6
11
|
label: string;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as e, Teleport as t, Transition as n, TransitionGroup as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createStaticVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, getCurrentInstance as m, guardReactiveProps as h, h as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as C, onMounted as w, onUnmounted as T, openBlock as E, readonly as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as j, toDisplayString as M, toHandlers as N, unref as P, useAttrs as F, useCssVars as
|
|
1
|
+
import { Fragment as e, Teleport as t, Transition as n, TransitionGroup as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createStaticVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, getCurrentInstance as m, guardReactiveProps as h, h as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as C, onMounted as w, onUnmounted as T, openBlock as E, readonly as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as j, toDisplayString as M, toHandlers as N, unref as P, useAttrs as F, useCssVars as ee, useId as I, useModel as L, useSlots as R, useTemplateRef as z, vModelCheckbox as B, vModelDynamic as V, vModelText as te, watch as H, watchEffect as U, withCtx as W, withDirectives as G, withKeys as K, withModifiers as q } from "vue";
|
|
2
2
|
import { createReusableTemplate as ne, useElementSize as re, useEventListener as ie, useFullscreen as ae, useMediaControls as J, useMounted as oe, usePreferredReducedMotion as se, useResizeObserver as ce } from "@vueuse/core";
|
|
3
3
|
import { ColorAreaArea as Y, ColorAreaRoot as le, ColorAreaThumb as ue, ColorFieldInput as X, ColorFieldRoot as de, ColorSliderRoot as fe, ColorSliderThumb as pe, ColorSliderTrack as me, ColorSwatch as he, DialogClose as ge, DialogContent as _e, DialogDescription as ve, DialogOverlay as ye, DialogPortal as be, DialogRoot as xe, DialogTitle as Se, PaginationEllipsis as Ce, PaginationFirst as we, PaginationLast as Te, PaginationList as Ee, PaginationListItem as De, PaginationNext as Oe, PaginationPrev as ke, PaginationRoot as Ae, SliderRange as je, SliderRoot as Me, SliderThumb as Ne, SliderTrack as Pe, TooltipContent as Fe, TooltipPortal as Ie, TooltipProvider as Le, TooltipRoot as Re, TooltipTrigger as ze, colorToString as Be, normalizeColor as Ve, setChannelValue as He } from "reka-ui";
|
|
4
4
|
import { autoUpdate as Ue, flip as We, offset as Ge, shift as Ke, size as qe, useFloating as Je } from "@floating-ui/vue";
|
|
@@ -332,7 +332,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
332
332
|
}),
|
|
333
333
|
emits: ["update:modelValue"],
|
|
334
334
|
setup(e) {
|
|
335
|
-
let t =
|
|
335
|
+
let t = L(e, "modelValue"), n = {
|
|
336
336
|
blue: "border-cornflower-blue-500 bg-cornflower-blue-500",
|
|
337
337
|
green: "border-green-400 bg-green-400"
|
|
338
338
|
}, r = {
|
|
@@ -405,7 +405,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
405
405
|
}),
|
|
406
406
|
emits: ["update:modelValue"],
|
|
407
407
|
setup(e) {
|
|
408
|
-
let t =
|
|
408
|
+
let t = L(e, "modelValue"), n = i(() => !e.switchable || t.value), r = i(() => !n.value || void 0);
|
|
409
409
|
return (i, l) => (E(), s("div", wt, [c("div", Tt, [e.switchable ? (E(), a(Ct, {
|
|
410
410
|
key: 0,
|
|
411
411
|
modelValue: t.value,
|
|
@@ -510,7 +510,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
510
510
|
}),
|
|
511
511
|
emits: ["update:modelValue"],
|
|
512
512
|
setup(t) {
|
|
513
|
-
let n = t, r =
|
|
513
|
+
let n = t, r = L(t, "modelValue"), i = z("containerRef"), l = O([]), u = O({
|
|
514
514
|
width: "0px",
|
|
515
515
|
transform: "translateX(0px)"
|
|
516
516
|
}), f = O("inset(0 100% 0 0 round 8px)"), p = O(!1), m = async () => {
|
|
@@ -599,7 +599,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
599
599
|
}),
|
|
600
600
|
emits: ["update:modelValue"],
|
|
601
601
|
setup(e) {
|
|
602
|
-
let t =
|
|
602
|
+
let t = L(e, "modelValue"), n = i(() => ({
|
|
603
603
|
...Bt,
|
|
604
604
|
...e.messages
|
|
605
605
|
})), r = {
|
|
@@ -646,7 +646,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
646
646
|
}),
|
|
647
647
|
emits: ["update:modelValue"],
|
|
648
648
|
setup(e) {
|
|
649
|
-
let t =
|
|
649
|
+
let t = L(e, "modelValue"), n = i(() => ({
|
|
650
650
|
...Ut,
|
|
651
651
|
...e.messages
|
|
652
652
|
})), r = {
|
|
@@ -687,7 +687,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
687
687
|
}),
|
|
688
688
|
emits: ["update:modelValue"],
|
|
689
689
|
setup(e) {
|
|
690
|
-
let t =
|
|
690
|
+
let t = L(e, "modelValue"), n = i(() => ({
|
|
691
691
|
...Kt,
|
|
692
692
|
...e.messages
|
|
693
693
|
})), r = {
|
|
@@ -748,7 +748,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
748
748
|
}),
|
|
749
749
|
emits: ["update:modelValue"],
|
|
750
750
|
setup(t) {
|
|
751
|
-
let n =
|
|
751
|
+
let n = L(t, "modelValue"), r = {
|
|
752
752
|
blue: "bg-cornflower-blue-500",
|
|
753
753
|
green: "bg-green-400"
|
|
754
754
|
}, l = {
|
|
@@ -882,7 +882,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
882
882
|
}),
|
|
883
883
|
emits: ["update:modelValue"],
|
|
884
884
|
setup(e) {
|
|
885
|
-
let t =
|
|
885
|
+
let t = L(e, "modelValue"), n = i(() => ({
|
|
886
886
|
...tn,
|
|
887
887
|
...e.messages
|
|
888
888
|
})), r = en.length - 1, o = i(() => Math.max(0, en.findIndex(({ token: e }) => `gap-${e}` === t.value))), s = i({
|
|
@@ -945,7 +945,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
945
945
|
onFocus: (e) => t("enter", e)
|
|
946
946
|
}) : [];
|
|
947
947
|
m.props = ["edge", "active"], m.emits = ["enter"];
|
|
948
|
-
let h = r, _ = u, x = O(!1), C = O(!1), k = O(!1), j = z("triggerRef"), M = z("floatingRef"), N = O(!1), F = O(null),
|
|
948
|
+
let h = r, _ = u, x = O(!1), C = O(!1), k = O(!1), j = z("triggerRef"), M = z("floatingRef"), N = O(!1), F = O(null), ee = se(), I = i(() => ee.value === "reduce"), L = i(() => d[h.surface === "raised" ? "raised" : "default"]), R = i(() => h.fitHeight ? F.value : null), B = i(() => N.value && x.value), V = i(() => [
|
|
949
949
|
Ge(h.offsetDistance),
|
|
950
950
|
We(),
|
|
951
951
|
Ke({ padding: 8 }),
|
|
@@ -1061,22 +1061,22 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
1061
1061
|
active: N.value,
|
|
1062
1062
|
onEnter: ue
|
|
1063
1063
|
}, null, 8, ["active"]),
|
|
1064
|
-
f(n, v({ css: !
|
|
1064
|
+
f(n, v({ css: !I.value }, fe.value, { onAfterLeave: i[0] ||= (e) => C.value = !1 }), {
|
|
1065
1065
|
default: W(() => [x.value && k.value ? (E(), s("div", rn, [r.surface ? (E(), s("div", {
|
|
1066
1066
|
key: 0,
|
|
1067
|
-
class: b(
|
|
1067
|
+
class: b(L.value)
|
|
1068
1068
|
}, [A(t.$slots, "content", {
|
|
1069
1069
|
isOpen: x.value,
|
|
1070
1070
|
close: q,
|
|
1071
1071
|
toggle: ne,
|
|
1072
|
-
availableHeight:
|
|
1072
|
+
availableHeight: R.value,
|
|
1073
1073
|
teleported: N.value
|
|
1074
1074
|
})], 2)) : A(t.$slots, "content", {
|
|
1075
1075
|
key: 1,
|
|
1076
1076
|
isOpen: x.value,
|
|
1077
1077
|
close: q,
|
|
1078
1078
|
toggle: ne,
|
|
1079
|
-
availableHeight:
|
|
1079
|
+
availableHeight: R.value,
|
|
1080
1080
|
teleported: N.value
|
|
1081
1081
|
})])) : o("", !0)]),
|
|
1082
1082
|
_: 3
|
|
@@ -1149,7 +1149,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
1149
1149
|
}),
|
|
1150
1150
|
emits: ["update:modelValue"],
|
|
1151
1151
|
setup(t) {
|
|
1152
|
-
let r = "color-picker-" + Math.random().toString(36).slice(2, 10), l = t, u =
|
|
1152
|
+
let r = "color-picker-" + Math.random().toString(36).slice(2, 10), l = t, u = L(t, "modelValue"), p = (e) => e.alpha < 1 ? He(e, "alpha", 100) : e, m = (e) => {
|
|
1153
1153
|
let t = Ve(e);
|
|
1154
1154
|
return l.showAlpha ? t : p(t);
|
|
1155
1155
|
}, h = (e) => {
|
|
@@ -1171,14 +1171,14 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
1171
1171
|
}, F = (e) => {
|
|
1172
1172
|
let t = l.showAlpha ? e : p(e);
|
|
1173
1173
|
y.value = t, u.value = v(t, _.value);
|
|
1174
|
-
},
|
|
1174
|
+
}, ee = (e) => {
|
|
1175
1175
|
let t = e.target.value;
|
|
1176
1176
|
try {
|
|
1177
1177
|
y.value = h(t), u.value = v(y.value, _.value), x.value = "";
|
|
1178
1178
|
} catch (e) {
|
|
1179
1179
|
x.value = e instanceof Error ? e.message : "Ongeldige kleur";
|
|
1180
1180
|
}
|
|
1181
|
-
},
|
|
1181
|
+
}, I = (e, t) => {
|
|
1182
1182
|
let n = Number(e.target.value);
|
|
1183
1183
|
if (isNaN(n)) {
|
|
1184
1184
|
C.value[t] = "Ongeldige waarde";
|
|
@@ -1302,7 +1302,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
1302
1302
|
default: W(() => [c("div", { class: b(["flex h-10 items-center overflow-hidden rounded-lg px-3 ring transition-colors ease-out focus-within:ring-cornflower-blue-500", x.value ? "ring-brick-400" : "ring-gray-200"]) }, [f(P(X), {
|
|
1303
1303
|
class: "w-full bg-transparent small-normal-mono text-gray-900 placeholder-gray-400 focus:outline-none",
|
|
1304
1304
|
placeholder: "#000000",
|
|
1305
|
-
onInput:
|
|
1305
|
+
onInput: ee
|
|
1306
1306
|
})], 2), x.value ? (E(), s("p", vn, M(x.value), 1)) : o("", !0)]),
|
|
1307
1307
|
_: 1
|
|
1308
1308
|
}, 8, ["model-value"])) : _.value === "hsl" ? (E(), s("div", yn, [
|
|
@@ -1316,7 +1316,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
1316
1316
|
default: W(() => [c("div", { class: b(["flex h-10 items-center overflow-hidden rounded-lg px-3 ring transition-colors ease-out focus-within:ring-cornflower-blue-500", C.value.hue ? "ring-brick-400" : "ring-gray-200"]) }, [f(P(X), {
|
|
1317
1317
|
class: "w-full bg-transparent small-normal-mono text-gray-900 placeholder-gray-400 focus:outline-none",
|
|
1318
1318
|
placeholder: "H",
|
|
1319
|
-
onInput: l[2] ||= (e) =>
|
|
1319
|
+
onInput: l[2] ||= (e) => I(e, "hue")
|
|
1320
1320
|
})], 2)]),
|
|
1321
1321
|
_: 1
|
|
1322
1322
|
}, 8, ["model-value"]),
|
|
@@ -1330,7 +1330,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
1330
1330
|
default: W(() => [c("div", { class: b(["flex h-10 items-center overflow-hidden rounded-lg px-3 ring transition-colors ease-out focus-within:ring-cornflower-blue-500", C.value.saturation ? "ring-brick-400" : "ring-gray-200"]) }, [f(P(X), {
|
|
1331
1331
|
class: "w-full bg-transparent small-normal-mono text-gray-900 placeholder-gray-400 focus:outline-none",
|
|
1332
1332
|
placeholder: "S",
|
|
1333
|
-
onInput: l[3] ||= (e) =>
|
|
1333
|
+
onInput: l[3] ||= (e) => I(e, "saturation")
|
|
1334
1334
|
})], 2)]),
|
|
1335
1335
|
_: 1
|
|
1336
1336
|
}, 8, ["model-value"]),
|
|
@@ -1344,7 +1344,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
1344
1344
|
default: W(() => [c("div", { class: b(["flex h-10 items-center overflow-hidden rounded-lg px-3 ring transition-colors ease-out focus-within:ring-cornflower-blue-500", C.value.lightness ? "ring-brick-400" : "ring-gray-200"]) }, [f(P(X), {
|
|
1345
1345
|
class: "w-full bg-transparent small-normal-mono text-gray-900 placeholder-gray-400 focus:outline-none",
|
|
1346
1346
|
placeholder: "L",
|
|
1347
|
-
onInput: l[4] ||= (e) =>
|
|
1347
|
+
onInput: l[4] ||= (e) => I(e, "lightness")
|
|
1348
1348
|
})], 2)]),
|
|
1349
1349
|
_: 1
|
|
1350
1350
|
}, 8, ["model-value"])
|
|
@@ -1359,7 +1359,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
1359
1359
|
default: W(() => [c("div", { class: b(["flex h-10 items-center overflow-hidden rounded-lg px-3 ring transition-colors ease-out focus-within:ring-cornflower-blue-500", C.value.red ? "ring-brick-400" : "ring-gray-200"]) }, [f(P(X), {
|
|
1360
1360
|
class: "w-full bg-transparent small-normal-mono text-gray-900 placeholder-gray-400 focus:outline-none",
|
|
1361
1361
|
placeholder: "R",
|
|
1362
|
-
onInput: l[5] ||= (e) =>
|
|
1362
|
+
onInput: l[5] ||= (e) => I(e, "red")
|
|
1363
1363
|
})], 2)]),
|
|
1364
1364
|
_: 1
|
|
1365
1365
|
}, 8, ["model-value"]),
|
|
@@ -1373,7 +1373,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
1373
1373
|
default: W(() => [c("div", { class: b(["flex h-10 items-center overflow-hidden rounded-lg px-3 ring transition-colors ease-out focus-within:ring-cornflower-blue-500", C.value.green ? "ring-brick-400" : "ring-gray-200"]) }, [f(P(X), {
|
|
1374
1374
|
class: "w-full bg-transparent small-normal-mono text-gray-900 placeholder-gray-400 focus:outline-none",
|
|
1375
1375
|
placeholder: "G",
|
|
1376
|
-
onInput: l[6] ||= (e) =>
|
|
1376
|
+
onInput: l[6] ||= (e) => I(e, "green")
|
|
1377
1377
|
})], 2)]),
|
|
1378
1378
|
_: 1
|
|
1379
1379
|
}, 8, ["model-value"]),
|
|
@@ -1387,7 +1387,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
1387
1387
|
default: W(() => [c("div", { class: b(["flex h-10 items-center overflow-hidden rounded-lg px-3 ring transition-colors ease-out focus-within:ring-cornflower-blue-500", C.value.blue ? "ring-brick-400" : "ring-gray-200"]) }, [f(P(X), {
|
|
1388
1388
|
class: "w-full bg-transparent small-normal-mono text-gray-900 placeholder-gray-400 focus:outline-none",
|
|
1389
1389
|
placeholder: "B",
|
|
1390
|
-
onInput: l[7] ||= (e) =>
|
|
1390
|
+
onInput: l[7] ||= (e) => I(e, "blue")
|
|
1391
1391
|
})], 2)]),
|
|
1392
1392
|
_: 1
|
|
1393
1393
|
}, 8, ["model-value"])
|
|
@@ -1462,7 +1462,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
1462
1462
|
}),
|
|
1463
1463
|
emits: ["update:modelValue", "update:enabled"],
|
|
1464
1464
|
setup(e) {
|
|
1465
|
-
let t =
|
|
1465
|
+
let t = L(e, "modelValue"), n = L(e, "enabled"), r = i(() => ({
|
|
1466
1466
|
...jn,
|
|
1467
1467
|
...e.messages
|
|
1468
1468
|
})), o = An.length - 1, s = i(() => t.value.split(/\s+/).filter(Boolean)), l = i(() => {
|
|
@@ -1557,7 +1557,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
1557
1557
|
}),
|
|
1558
1558
|
emits: ["update:modelValue"],
|
|
1559
1559
|
setup(t) {
|
|
1560
|
-
let r = (e) => typeof e == "string" ? e : e.label, l = (e) => typeof e == "string" ? e : e.value, u = (e) => typeof e == "string" ? void 0 : e.icon, p = "select-" + Math.random().toString(36).slice(2, 10), m = `${p}-listbox`, h = (e) => `${p}-option-${e}`, g = t, _ =
|
|
1560
|
+
let r = (e) => typeof e == "string" ? e : e.label, l = (e) => typeof e == "string" ? e : e.value, u = (e) => typeof e == "string" ? void 0 : e.icon, p = "select-" + Math.random().toString(36).slice(2, 10), m = `${p}-listbox`, h = (e) => `${p}-option-${e}`, g = t, _ = L(t, "modelValue"), v = z("panel"), y = O(-1), x = i(() => {
|
|
1561
1561
|
if (_.value === null || _.value === void 0) return null;
|
|
1562
1562
|
let e = g.options.find((e) => l(e) === _.value);
|
|
1563
1563
|
return e ? r(e) : null;
|
|
@@ -1726,7 +1726,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
1726
1726
|
}),
|
|
1727
1727
|
emits: ["update:modelValue"],
|
|
1728
1728
|
setup(e) {
|
|
1729
|
-
let t =
|
|
1729
|
+
let t = L(e, "modelValue"), n = i(() => ({
|
|
1730
1730
|
...Wn,
|
|
1731
1731
|
...e.messages
|
|
1732
1732
|
})), r = i(() => Un.map(({ token: e, level: t }) => {
|
|
@@ -1814,7 +1814,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
1814
1814
|
}),
|
|
1815
1815
|
emits: ["update:modelValue"],
|
|
1816
1816
|
setup(e) {
|
|
1817
|
-
let t =
|
|
1817
|
+
let t = L(e, "modelValue"), n = i(() => ({
|
|
1818
1818
|
...Yn,
|
|
1819
1819
|
...e.messages
|
|
1820
1820
|
})), r = Jn.length - 1, o = i(() => Math.max(0, Jn.findIndex(({ token: e }) => `rounded-${e}` === t.value))), s = i({
|
|
@@ -1865,7 +1865,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
1865
1865
|
}),
|
|
1866
1866
|
emits: ["update:modelValue"],
|
|
1867
1867
|
setup(e) {
|
|
1868
|
-
let t =
|
|
1868
|
+
let t = L(e, "modelValue"), n = i(() => ({
|
|
1869
1869
|
...Qn,
|
|
1870
1870
|
...e.messages
|
|
1871
1871
|
})), r = {
|
|
@@ -1914,7 +1914,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
1914
1914
|
}),
|
|
1915
1915
|
emits: ["update:modelValue"],
|
|
1916
1916
|
setup(e) {
|
|
1917
|
-
let t =
|
|
1917
|
+
let t = L(e, "modelValue"), n = i(() => ({
|
|
1918
1918
|
...tr,
|
|
1919
1919
|
...e.messages
|
|
1920
1920
|
})), r = {
|
|
@@ -2003,7 +2003,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
2003
2003
|
}),
|
|
2004
2004
|
emits: ["update:modelValue", "update:enabled"],
|
|
2005
2005
|
setup(e) {
|
|
2006
|
-
let t =
|
|
2006
|
+
let t = L(e, "modelValue"), n = L(e, "enabled"), r = i(() => ({
|
|
2007
2007
|
...or,
|
|
2008
2008
|
...e.messages
|
|
2009
2009
|
})), o = ar.length - 1, s = i(() => Math.max(0, ar.findIndex(({ token: e }) => `max-w-${e}` === t.value))), l = i({
|
|
@@ -2103,7 +2103,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
2103
2103
|
}),
|
|
2104
2104
|
emits: /*@__PURE__*/ _(["pointerup", "reset"], ["update:modelValue"]),
|
|
2105
2105
|
setup(e, { emit: t }) {
|
|
2106
|
-
let n = t, r =
|
|
2106
|
+
let n = t, r = L(e, "modelValue"), o = i(() => ({
|
|
2107
2107
|
...mr,
|
|
2108
2108
|
...e.messages
|
|
2109
2109
|
})), s = z("root"), l = dr.length - 1, u = (e) => dr.findIndex((t) => t.token === e), d = i(() => {
|
|
@@ -2259,7 +2259,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
2259
2259
|
}),
|
|
2260
2260
|
emits: /*@__PURE__*/ _(["pointerup"], ["update:modelValue"]),
|
|
2261
2261
|
setup(e, { emit: t }) {
|
|
2262
|
-
let n = t, r =
|
|
2262
|
+
let n = t, r = L(e, "modelValue"), o = i(() => ({
|
|
2263
2263
|
...Sr,
|
|
2264
2264
|
...e.messages
|
|
2265
2265
|
})), s = vr.length - 1, l = (e) => vr.findIndex((t) => t.token === e), u = (e) => dr.find((t) => t.token === e), d = i(() => u(e.fontSize) ?? u(br)), p = i(() => Math.max(0, l(r.value)));
|
|
@@ -2353,7 +2353,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
2353
2353
|
}),
|
|
2354
2354
|
emits: /*@__PURE__*/ _(["pointerup"], ["update:modelValue"]),
|
|
2355
2355
|
setup(e, { emit: t }) {
|
|
2356
|
-
let n = t, r =
|
|
2356
|
+
let n = t, r = L(e, "modelValue"), o = i(() => ({
|
|
2357
2357
|
...kr,
|
|
2358
2358
|
...e.messages
|
|
2359
2359
|
})), s = Er.length - 1, l = (e) => Er.findIndex((t) => t.token === e), u = (e) => dr.find((t) => t.token === e), d = i(() => (u(e.fontSize) ?? u(Dr)).px), p = i(() => {
|
|
@@ -2705,7 +2705,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
2705
2705
|
}),
|
|
2706
2706
|
emits: ["update:modelValue"],
|
|
2707
2707
|
setup(t) {
|
|
2708
|
-
let n =
|
|
2708
|
+
let n = L(t, "modelValue"), r = i(() => ({
|
|
2709
2709
|
...ei,
|
|
2710
2710
|
...t.messages
|
|
2711
2711
|
})), o = O(ri(n.value));
|
|
@@ -2851,105 +2851,105 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
2851
2851
|
}),
|
|
2852
2852
|
emits: /*@__PURE__*/ _(["commit"], ["update:modelValue"]),
|
|
2853
2853
|
setup(t, { expose: n, emit: r }) {
|
|
2854
|
-
let a = r, o =
|
|
2854
|
+
let a = r, o = L(t, "modelValue"), l = i(() => ({
|
|
2855
2855
|
...hi,
|
|
2856
2856
|
...t.messages
|
|
2857
|
-
})), u = O(o.value?.unit ?? t.units[0]);
|
|
2858
|
-
H(() => o.value
|
|
2859
|
-
e
|
|
2857
|
+
})), u = O(o.value?.unit ?? t.units[0]), d = !1;
|
|
2858
|
+
H(() => o.value, (e) => {
|
|
2859
|
+
e ? u.value = e.unit : d || (u.value = t.units[0]), d = !1;
|
|
2860
2860
|
});
|
|
2861
|
-
let
|
|
2861
|
+
let p = (e) => l.value[gi[e]], m = (e) => ({
|
|
2862
2862
|
min: t.min?.[e] ?? mi[e].min,
|
|
2863
2863
|
max: t.max?.[e] ?? mi[e].max
|
|
2864
|
-
}),
|
|
2865
|
-
let n =
|
|
2864
|
+
}), h = i(() => m(u.value)), g = (e, t) => {
|
|
2865
|
+
let n = m(t);
|
|
2866
2866
|
return Math.min(Math.max(Math.round(e), n.min), n.max);
|
|
2867
|
-
},
|
|
2868
|
-
|
|
2869
|
-
},
|
|
2867
|
+
}, _ = () => o.value === null ? "" : String(o.value.value), v = z("input"), b = () => v.value?.validity.badInput === !0, x = () => {
|
|
2868
|
+
S.value = _(), v.value && (v.value.value = S.value);
|
|
2869
|
+
}, S = O(_()), C = O();
|
|
2870
2870
|
H(() => o.value?.value ?? null, () => {
|
|
2871
|
-
|
|
2871
|
+
S.value = _();
|
|
2872
2872
|
});
|
|
2873
|
-
let
|
|
2873
|
+
let w = !1, T = (e) => {
|
|
2874
2874
|
let t = o.value;
|
|
2875
|
-
return !(e === null ? t === null : e.value === t?.value && e.unit === t.unit) && (o.value = e, !0);
|
|
2876
|
-
}, T = () => {
|
|
2877
|
-
C = !1, a("commit");
|
|
2875
|
+
return !(e === null ? t === null : e.value === t?.value && e.unit === t.unit) && (d = e === null, o.value = e, !0);
|
|
2878
2876
|
}, D = () => {
|
|
2879
|
-
|
|
2877
|
+
w = !1, a("commit");
|
|
2878
|
+
}, A = () => {
|
|
2879
|
+
v.value?.focus(), v.value?.select();
|
|
2880
2880
|
};
|
|
2881
2881
|
n({ focus: (e) => {
|
|
2882
|
-
|
|
2882
|
+
v.value?.focus(e), v.value?.select();
|
|
2883
2883
|
} });
|
|
2884
|
-
let
|
|
2885
|
-
e.pointerType === "mouse" && (e.target.closest("select") || document.activeElement !==
|
|
2886
|
-
},
|
|
2887
|
-
let e =
|
|
2888
|
-
n || (e === "" ? t.optional && (r =
|
|
2889
|
-
value:
|
|
2884
|
+
let j = (e) => {
|
|
2885
|
+
e.pointerType === "mouse" && (e.target.closest("select") || document.activeElement !== v.value && (e.preventDefault(), A()));
|
|
2886
|
+
}, N = async () => {
|
|
2887
|
+
let e = S.value.trim(), n = b(), r = !1;
|
|
2888
|
+
n || (e === "" ? t.optional && (r = T(null)) : _i.test(e) && (r = T({
|
|
2889
|
+
value: g(Number(e), u.value),
|
|
2890
2890
|
unit: u.value
|
|
2891
|
-
}))), (r ||
|
|
2892
|
-
},
|
|
2893
|
-
let n = o.value, r = n === null ?
|
|
2894
|
-
|
|
2891
|
+
}))), (r || w) && D(), await y(), x(), !(!_i.test(e) || o.value === null || Number(e) === o.value.value) && (C.value = void 0, await y(), C.value = o.value.value > Number(e) ? "up" : "down");
|
|
2892
|
+
}, P = async (e, t) => {
|
|
2893
|
+
let n = o.value, r = n === null ? m(u.value).min : g(n.value + e * t, n.unit);
|
|
2894
|
+
T({
|
|
2895
2895
|
value: r,
|
|
2896
2896
|
unit: n?.unit ?? u.value
|
|
2897
|
-
}) && (
|
|
2898
|
-
},
|
|
2899
|
-
if (e.key === "Enter") return e.preventDefault(), await
|
|
2900
|
-
if (e.key === "Escape") return
|
|
2901
|
-
if (e.key === "ArrowUp" || e.key === "ArrowDown") return e.preventDefault(),
|
|
2902
|
-
},
|
|
2903
|
-
(e.key === "ArrowUp" || e.key === "ArrowDown") &&
|
|
2904
|
-
}, I = O(!1),
|
|
2905
|
-
I.value = !0,
|
|
2906
|
-
},
|
|
2907
|
-
I.value =
|
|
2908
|
-
},
|
|
2897
|
+
}) && (w = !0), await y(), S.value = _();
|
|
2898
|
+
}, F = async (e) => {
|
|
2899
|
+
if (e.key === "Enter") return e.preventDefault(), await N(), A();
|
|
2900
|
+
if (e.key === "Escape") return S.value === _() && !b() ? void 0 : (e.stopPropagation(), x(), A());
|
|
2901
|
+
if (e.key === "ArrowUp" || e.key === "ArrowDown") return e.preventDefault(), P(e.key === "ArrowUp" ? 1 : -1, e.shiftKey ? 10 : 1);
|
|
2902
|
+
}, ee = (e) => {
|
|
2903
|
+
(e.key === "ArrowUp" || e.key === "ArrowDown") && w && D();
|
|
2904
|
+
}, I = O(!1), R = !1, B = () => {
|
|
2905
|
+
I.value = !0, R = !0, setTimeout(() => R = !1);
|
|
2906
|
+
}, V = () => {
|
|
2907
|
+
I.value = R;
|
|
2908
|
+
}, te = (e) => {
|
|
2909
2909
|
let t = e.target.value;
|
|
2910
|
-
u.value = t, o.value !== null &&
|
|
2911
|
-
value:
|
|
2910
|
+
u.value = t, o.value !== null && T({
|
|
2911
|
+
value: g(o.value.value, t),
|
|
2912
2912
|
unit: t
|
|
2913
|
-
}) &&
|
|
2913
|
+
}) && D();
|
|
2914
2914
|
};
|
|
2915
2915
|
return (n, r) => (E(), s("div", {
|
|
2916
2916
|
class: "flex cursor-text items-center gap-1 overflow-hidden rounded-lg px-3 whitespace-nowrap ring ring-gray-200 transition-colors duration-150 ease-out focus-within:ring-cornflower-blue-500 hover:not-focus-within:ring-gray-300 motion-reduce:transition-none",
|
|
2917
|
-
onPointerdown:
|
|
2917
|
+
onPointerdown: j
|
|
2918
2918
|
}, [c("input", {
|
|
2919
2919
|
ref: "input",
|
|
2920
2920
|
type: "number",
|
|
2921
2921
|
inputmode: "numeric",
|
|
2922
2922
|
step: "1",
|
|
2923
|
-
min:
|
|
2924
|
-
max:
|
|
2923
|
+
min: h.value.min,
|
|
2924
|
+
max: h.value.max,
|
|
2925
2925
|
autocomplete: "off",
|
|
2926
2926
|
placeholder: t.optional ? l.value.placeholder : void 0,
|
|
2927
|
-
"aria-label": `${t.label} (${
|
|
2928
|
-
value:
|
|
2929
|
-
"data-snap":
|
|
2927
|
+
"aria-label": `${t.label} (${p(u.value)})`,
|
|
2928
|
+
value: S.value,
|
|
2929
|
+
"data-snap": C.value,
|
|
2930
2930
|
class: "h-10 min-w-0 flex-1 [appearance:textfield] bg-transparent small-normal text-gray-900 tabular-nums placeholder-gray-700 focus:outline-none [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
2931
|
-
onInput: r[0] ||= (e) =>
|
|
2932
|
-
onFocus:
|
|
2933
|
-
onBlur:
|
|
2934
|
-
onKeydown:
|
|
2935
|
-
onKeyup:
|
|
2936
|
-
onAnimationend: r[1] ||= (e) =>
|
|
2931
|
+
onInput: r[0] ||= (e) => S.value = e.target.value,
|
|
2932
|
+
onFocus: A,
|
|
2933
|
+
onBlur: N,
|
|
2934
|
+
onKeydown: F,
|
|
2935
|
+
onKeyup: ee,
|
|
2936
|
+
onAnimationend: r[1] ||= (e) => C.value = void 0
|
|
2937
2937
|
}, null, 40, ci), t.units.length > 1 ? (E(), s("span", li, [c("select", {
|
|
2938
2938
|
value: u.value,
|
|
2939
2939
|
"aria-label": l.value.unit,
|
|
2940
2940
|
"data-pointer": I.value || void 0,
|
|
2941
2941
|
class: "cursor-pointer appearance-none rounded-sm bg-transparent pr-4 pl-1 small-normal text-gray-700 hover:text-gray-900 focus:outline-none focus-visible:not-data-pointer:bg-gray-100 focus-visible:not-data-pointer:text-gray-900",
|
|
2942
|
-
onPointerdown:
|
|
2943
|
-
onFocus:
|
|
2942
|
+
onPointerdown: B,
|
|
2943
|
+
onFocus: V,
|
|
2944
2944
|
onKeydown: r[2] ||= (e) => I.value = !1,
|
|
2945
2945
|
onBlur: r[3] ||= (e) => I.value = !1,
|
|
2946
|
-
onChange:
|
|
2946
|
+
onChange: te
|
|
2947
2947
|
}, [(E(!0), s(e, null, k(t.units, (e) => (E(), s("option", {
|
|
2948
2948
|
key: e,
|
|
2949
2949
|
value: e
|
|
2950
|
-
}, M(
|
|
2950
|
+
}, M(p(e)), 9, di))), 128))], 40, ui), c("span", fi, [f(Q, { name: "chevron-down" })])])) : (E(), s("span", pi, M(p(u.value)), 1))], 32));
|
|
2951
2951
|
}
|
|
2952
|
-
}), [["__scopeId", "data-v-
|
|
2952
|
+
}), [["__scopeId", "data-v-15feed8b"]]), yi = ["inert"], bi = { class: "px-1 pt-2 pb-1" }, xi = [
|
|
2953
2953
|
{ token: "auto" },
|
|
2954
2954
|
{ token: "fill" },
|
|
2955
2955
|
{ token: "fixed" }
|
|
@@ -2976,7 +2976,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
2976
2976
|
}),
|
|
2977
2977
|
emits: /*@__PURE__*/ _(["commit"], ["update:modelValue"]),
|
|
2978
2978
|
setup(e, { emit: t }) {
|
|
2979
|
-
let n = t, r =
|
|
2979
|
+
let n = t, r = L(e, "modelValue"), o = i(() => ({
|
|
2980
2980
|
...Si,
|
|
2981
2981
|
...e.messages
|
|
2982
2982
|
})), s = z("field"), l = (t) => e.messages?.[`${t}AriaLabel`] ?? `${e.label} ${o.value[t].toLocaleLowerCase()}`, u = i(() => xi.filter(({ token: t }) => !e.modes || e.modes.includes(t)).map(({ token: e }) => ({
|
|
@@ -3661,7 +3661,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
3661
3661
|
}),
|
|
3662
3662
|
emits: /*@__PURE__*/ _(["select"], ["update:modelValue"]),
|
|
3663
3663
|
setup(e, { emit: t }) {
|
|
3664
|
-
let r =
|
|
3664
|
+
let r = L(e, "modelValue"), l = t, u = O(r.value ? Z(new Date(r.value), e.timezone) : Z(/* @__PURE__ */ new Date(), e.timezone)), d = O("days"), p = O(null), m = O("fade");
|
|
3665
3665
|
H(r, (t) => {
|
|
3666
3666
|
t && (u.value = Z(new Date(t), e.timezone));
|
|
3667
3667
|
});
|
|
@@ -3830,7 +3830,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
3830
3830
|
}),
|
|
3831
3831
|
emits: ["update:modelValue"],
|
|
3832
3832
|
setup(e) {
|
|
3833
|
-
let t =
|
|
3833
|
+
let t = L(e, "modelValue"), n = z("inputRef");
|
|
3834
3834
|
return U(() => {
|
|
3835
3835
|
n.value && (n.value.indeterminate = e.indeterminate ?? !1);
|
|
3836
3836
|
}), (r, i) => (E(), s("label", { class: b(["inline-flex cursor-pointer", e.disabled ? "cursor-not-allowed opacity-50" : ""]) }, [G(c("input", v(r.$attrs, {
|
|
@@ -3994,7 +3994,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
3994
3994
|
})), u = i(() => {
|
|
3995
3995
|
let e = { ...a };
|
|
3996
3996
|
return delete e.class, delete e.style, e;
|
|
3997
|
-
}), p =
|
|
3997
|
+
}), p = L(e, "modelValue"), h = z("inputEl");
|
|
3998
3998
|
t({
|
|
3999
3999
|
focus: () => h.value?.focus(),
|
|
4000
4000
|
inputEl: h
|
|
@@ -4155,7 +4155,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
4155
4155
|
}),
|
|
4156
4156
|
emits: /*@__PURE__*/ _(["select"], ["update:modelValue"]),
|
|
4157
4157
|
setup(t, { expose: l, emit: u }) {
|
|
4158
|
-
let p = t, { icon: m = "tag", placeholder: h = "Zoeken...", floating: g = !0 } = p, _ = u, v =
|
|
4158
|
+
let p = t, { icon: m = "tag", placeholder: h = "Zoeken...", floating: g = !0 } = p, _ = u, v = L(t, "modelValue"), y = z("inputFieldRef"), b = z("wrapperRef"), x = O(""), S = O(!1), C = i(() => !p.singleSelect && p.showChips), D = (e) => {
|
|
4159
4159
|
b.value && !b.value.contains(e.target) && (S.value = !1);
|
|
4160
4160
|
}, A = (e) => {
|
|
4161
4161
|
e.key === "Escape" && (S.value = !1);
|
|
@@ -4165,17 +4165,17 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
4165
4165
|
}), T(() => {
|
|
4166
4166
|
document.removeEventListener("mousedown", D), document.removeEventListener("keydown", A);
|
|
4167
4167
|
});
|
|
4168
|
-
let j = (e) => typeof e == "string" ? e : e.label, N = (e) => typeof e == "string" ? e : e.value, F = (e) => typeof e == "object" && "options" in e,
|
|
4168
|
+
let j = (e) => typeof e == "string" ? e : e.label, N = (e) => typeof e == "string" ? e : e.value, F = (e) => typeof e == "object" && "options" in e, ee = I(), R = i(() => {
|
|
4169
4169
|
let e = p.options, t = e.filter(F);
|
|
4170
4170
|
return t.length === 0 ? [{
|
|
4171
|
-
id:
|
|
4171
|
+
id: ee,
|
|
4172
4172
|
options: e.filter((e) => !F(e))
|
|
4173
4173
|
}] : t.map((e, t) => ({
|
|
4174
|
-
id: `${
|
|
4174
|
+
id: `${ee}-group-${t}`,
|
|
4175
4175
|
label: e.label,
|
|
4176
4176
|
options: e.options
|
|
4177
4177
|
}));
|
|
4178
|
-
}), B = i(() =>
|
|
4178
|
+
}), B = i(() => R.value.flatMap((e) => e.options)), V = i(() => v.value.map((e) => {
|
|
4179
4179
|
let t = B.value.find((t) => N(t) === e);
|
|
4180
4180
|
return {
|
|
4181
4181
|
value: e,
|
|
@@ -4184,7 +4184,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
4184
4184
|
};
|
|
4185
4185
|
})), te = i(() => {
|
|
4186
4186
|
let e = x.value.toLowerCase();
|
|
4187
|
-
return
|
|
4187
|
+
return R.value.map((t) => ({
|
|
4188
4188
|
...t,
|
|
4189
4189
|
options: t.options.filter((e) => p.singleSelect || !v.value.includes(N(e))).filter((t) => j(t).toLowerCase().includes(e))
|
|
4190
4190
|
})).filter((e) => e.options.length > 0);
|
|
@@ -4413,7 +4413,7 @@ var xt = { funda: { render: bt } }, Q = /* @__PURE__ */ p({
|
|
|
4413
4413
|
}),
|
|
4414
4414
|
emits: ["update:modelValue"],
|
|
4415
4415
|
setup(e) {
|
|
4416
|
-
let t = e, { variant: n = "secondary", placement: r = "right", icon: o = "tag", placeholder: s = "Zoeken...", matchWidth: l = !1, fullWidth: u = !1, singleSelect: p = !1 } = t, m =
|
|
4416
|
+
let t = e, { variant: n = "secondary", placement: r = "right", icon: o = "tag", placeholder: s = "Zoeken...", matchWidth: l = !1, fullWidth: u = !1, singleSelect: p = !1 } = t, m = L(e, "modelValue"), h = O(null), g = i(() => r === "right" ? "bottom-end" : "bottom-start"), _ = i(() => !p && t.showChips), v = async () => {
|
|
4417
4417
|
await y(), h.value?.focus();
|
|
4418
4418
|
};
|
|
4419
4419
|
return (e, r) => (E(), a(ln, {
|
|
@@ -5282,7 +5282,7 @@ var co = /* @__PURE__ */ p({
|
|
|
5282
5282
|
}),
|
|
5283
5283
|
emits: ["update:modelValue"],
|
|
5284
5284
|
setup(t) {
|
|
5285
|
-
let r = "country-select-" + Math.random().toString(36).slice(2, 10), l = t, u =
|
|
5285
|
+
let r = "country-select-" + Math.random().toString(36).slice(2, 10), l = t, u = L(t, "modelValue"), p = O(""), m = O(null), h = i(() => Xa.find((e) => e.name === u.value) ?? null), g = i(() => {
|
|
5286
5286
|
let e = l.pinnedCountries.map((e) => Xa.find((t) => t.code === e)).filter((e) => e !== void 0), t = new Set(l.pinnedCountries), n = Xa.filter((e) => !t.has(e.code)).sort((e, t) => e.name.localeCompare(t.name, "nl"));
|
|
5287
5287
|
return [...e, ...n];
|
|
5288
5288
|
}), _ = i(() => {
|
|
@@ -5462,7 +5462,7 @@ var co = /* @__PURE__ */ p({
|
|
|
5462
5462
|
}),
|
|
5463
5463
|
emits: ["update:modelValue"],
|
|
5464
5464
|
setup(e) {
|
|
5465
|
-
let t =
|
|
5465
|
+
let t = L(e, "modelValue"), n = e, r = /* @__PURE__ */ new Set([
|
|
5466
5466
|
"placeholder",
|
|
5467
5467
|
"anchor",
|
|
5468
5468
|
"autoClose"
|
|
@@ -5721,7 +5721,7 @@ var co = /* @__PURE__ */ p({
|
|
|
5721
5721
|
}),
|
|
5722
5722
|
emits: ["update:modelValue", "update:enabled"],
|
|
5723
5723
|
setup(t) {
|
|
5724
|
-
let n =
|
|
5724
|
+
let n = L(t, "modelValue"), r = L(t, "enabled"), o = i(() => ({
|
|
5725
5725
|
...Po,
|
|
5726
5726
|
...t.messages
|
|
5727
5727
|
})), u = (e) => e.startsWith("#"), d = i(() => {
|
|
@@ -5807,7 +5807,7 @@ var co = /* @__PURE__ */ p({
|
|
|
5807
5807
|
}),
|
|
5808
5808
|
emits: /*@__PURE__*/ _(["commit"], ["update:modelValue"]),
|
|
5809
5809
|
setup(e, { emit: t }) {
|
|
5810
|
-
let n = t, r =
|
|
5810
|
+
let n = t, r = L(e, "modelValue");
|
|
5811
5811
|
return (t, i) => (E(), s("label", zo, [c("span", Bo, M(e.label), 1), f(vi, {
|
|
5812
5812
|
modelValue: r.value,
|
|
5813
5813
|
"onUpdate:modelValue": i[0] ||= (e) => r.value = e,
|
|
@@ -5888,7 +5888,7 @@ var co = /* @__PURE__ */ p({
|
|
|
5888
5888
|
}),
|
|
5889
5889
|
emits: ["update:open"],
|
|
5890
5890
|
setup(e) {
|
|
5891
|
-
let t =
|
|
5891
|
+
let t = L(e, "open"), r = I(), a = se(), l = i(() => a.value === "reduce"), u = {
|
|
5892
5892
|
base: "flex h-7 items-center gap-1.5 rounded-lg px-2 extra-small-semibold tracking-wide text-gray-700 uppercase select-none",
|
|
5893
5893
|
collapsible: "cursor-pointer hover:bg-gray-50",
|
|
5894
5894
|
static: "cursor-default"
|
|
@@ -6083,9 +6083,9 @@ var co = /* @__PURE__ */ p({
|
|
|
6083
6083
|
"clear"
|
|
6084
6084
|
], ["update:highlighted"]),
|
|
6085
6085
|
setup(t, { expose: r, emit: u }) {
|
|
6086
|
-
let p = t, m =
|
|
6086
|
+
let p = t, m = L(t, "highlighted"), h = u, g = R(), _ = `${I()}-listbox`, x = (e) => `${_}-opt-${encodeURIComponent(e)}`, S = z("listbox"), w = se(), T = i(() => w.value === "reduce"), D = (e) => e.normalize("NFD").replace(/\p{M}/gu, "").toLocaleLowerCase(), j = i(() => p.search.trim()), N = i(() => D(j.value)), P = i(() => N.value !== ""), F = (e) => !P.value || D(e.label).includes(N.value) || !!e.keywords?.some((e) => D(e).includes(N.value)), ee = i(() => p.items.filter(F)), B = i(() => new Set(p.groups.map((e) => e.id))), V = i(() => ee.value.filter((e) => !e.group || !B.value.has(e.group))), te = O({}), U = (e) => te.value[e.id] ?? e.defaultOpen ?? !0, G = i(() => p.collapsible && !P.value), K = i(() => p.groups.map((e) => ({
|
|
6087
6087
|
group: e,
|
|
6088
|
-
items:
|
|
6088
|
+
items: ee.value.filter((t) => t.group === e.id),
|
|
6089
6089
|
open: !G.value || U(e)
|
|
6090
6090
|
})).filter((e) => e.items.length > 0)), q = i(() => [...V.value, ...K.value.flatMap((e) => e.open ? e.items : [])]), ne = i(() => V.value.length > 0 || K.value.length > 0), re = i(() => P.value && q.value.length === 0 && !p.busy), ie = (e) => e === null ? null : q.value.find((t) => t.id === e) ?? null, ae = i(() => (q.value.find((e) => !e.disabled) ?? q.value[0])?.id ?? null), J = i(() => ie(m.value) ? m.value : ae.value), oe = i(() => J.value === null ? void 0 : x(J.value)), ce = "other", Y = (e, t) => {
|
|
6091
6091
|
t !== "fold" && (X = null), e !== J.value && (ce = t, m.value = e);
|
|
@@ -6394,7 +6394,7 @@ var co = /* @__PURE__ */ p({
|
|
|
6394
6394
|
"close"
|
|
6395
6395
|
], ["update:highlighted", "update:search"]),
|
|
6396
6396
|
setup(e, { expose: t, emit: n }) {
|
|
6397
|
-
let r = e, a =
|
|
6397
|
+
let r = e, a = L(e, "highlighted"), u = L(e, "search"), d = n, p = z("inputField"), m = z("list"), g = z("row"), _ = (e) => typeof e == "number" ? `${e}px` : e, v = i(() => {
|
|
6398
6398
|
let e = `min(${_(r.height)}, calc(100dvh - 5rem))`;
|
|
6399
6399
|
return {
|
|
6400
6400
|
width: _(r.width),
|
|
@@ -6651,10 +6651,10 @@ var co = /* @__PURE__ */ p({
|
|
|
6651
6651
|
"retry"
|
|
6652
6652
|
], ["update:modelValue"]),
|
|
6653
6653
|
setup(t, { emit: n }) {
|
|
6654
|
-
let r =
|
|
6654
|
+
let r = L(t, "modelValue"), u = n, p = i(() => ({
|
|
6655
6655
|
...Rs,
|
|
6656
6656
|
...t.messages
|
|
6657
|
-
})), m =
|
|
6657
|
+
})), m = I(), h = `${m}-trigger`, g = `${m}-label`, _ = `${m}-value`, v = z("root"), y = z("trigger"), x = z("floating"), C = z("panelRoot"), w = O(null), T = O(""), D = i(() => r.value || null), A = i(() => D.value ? Bs(D.value) : t.inherit ? zs : null), j = i(() => {
|
|
6658
6658
|
if (D.value) return {
|
|
6659
6659
|
primary: D.value,
|
|
6660
6660
|
family: D.value,
|
|
@@ -6673,7 +6673,7 @@ var co = /* @__PURE__ */ p({
|
|
|
6673
6673
|
primary: t.placeholder,
|
|
6674
6674
|
placeholder: !0
|
|
6675
6675
|
};
|
|
6676
|
-
}), N = i(() => [j.value.primary, j.value.detail].filter(Boolean).join(Ks)), F = i(() => t.label ? `${g} ${_}` : void 0),
|
|
6676
|
+
}), N = i(() => [j.value.primary, j.value.detail].filter(Boolean).join(Ks)), F = i(() => t.label ? `${g} ${_}` : void 0), ee = i(() => !t.label && t.ariaLabel ? `${t.ariaLabel}, ${N.value}` : void 0), R = i(() => {
|
|
6677
6677
|
let e = /* @__PURE__ */ new Set();
|
|
6678
6678
|
return t.fonts.filter(({ family: t }) => !e.has(t) && (e.add(t), !0));
|
|
6679
6679
|
}), B = (e, t) => [e === A.value ? p.value.current : void 0, t].filter(Boolean).join(". ") || void 0, V = i(() => {
|
|
@@ -6693,7 +6693,7 @@ var co = /* @__PURE__ */ p({
|
|
|
6693
6693
|
});
|
|
6694
6694
|
}
|
|
6695
6695
|
let n = D.value;
|
|
6696
|
-
if (n && !
|
|
6696
|
+
if (n && !R.value.some(({ family: e }) => e === n)) {
|
|
6697
6697
|
let t = Bs(n);
|
|
6698
6698
|
e.push({
|
|
6699
6699
|
item: {
|
|
@@ -6705,7 +6705,7 @@ var co = /* @__PURE__ */ p({
|
|
|
6705
6705
|
value: n
|
|
6706
6706
|
});
|
|
6707
6707
|
}
|
|
6708
|
-
for (let { family: t, source: n } of
|
|
6708
|
+
for (let { family: t, source: n } of R.value) {
|
|
6709
6709
|
let r = Bs(t);
|
|
6710
6710
|
e.push({
|
|
6711
6711
|
item: {
|
|
@@ -6725,7 +6725,7 @@ var co = /* @__PURE__ */ p({
|
|
|
6725
6725
|
}, {
|
|
6726
6726
|
id: Hs,
|
|
6727
6727
|
label: p.value.groupGoogle
|
|
6728
|
-
}]), q = i(() => t.catalogueStatus === "loading"), ne = i(() => t.catalogueStatus === "error"), ie = i(() => q.value && !
|
|
6728
|
+
}]), q = i(() => t.catalogueStatus === "loading"), ne = i(() => t.catalogueStatus === "error"), ie = i(() => q.value && !R.value.some(({ source: e }) => e === "google"));
|
|
6729
6729
|
process.env.NODE_ENV !== "production" && U(() => {
|
|
6730
6730
|
!t.label && !t.ariaLabel && console.warn("[NexxtFontPicker] Pass `label` or `ariaLabel`: the trigger has no name.");
|
|
6731
6731
|
});
|
|
@@ -6792,7 +6792,7 @@ var co = /* @__PURE__ */ p({
|
|
|
6792
6792
|
type: "button",
|
|
6793
6793
|
"aria-haspopup": "listbox",
|
|
6794
6794
|
"aria-expanded": e,
|
|
6795
|
-
"aria-label":
|
|
6795
|
+
"aria-label": ee.value,
|
|
6796
6796
|
"aria-labelledby": F.value,
|
|
6797
6797
|
disabled: t.disabled,
|
|
6798
6798
|
class: b(he.value),
|
|
@@ -7023,7 +7023,7 @@ var co = /* @__PURE__ */ p({
|
|
|
7023
7023
|
})), h = i(() => {
|
|
7024
7024
|
let e = { ...p };
|
|
7025
7025
|
return delete e.class, delete e.style, e;
|
|
7026
|
-
}), g = t, _ = (e) => typeof e == "string" ? e : e.label, y = (e) => typeof e == "string" ? e : e.value, x =
|
|
7026
|
+
}), g = t, _ = (e) => typeof e == "string" ? e : e.label, y = (e) => typeof e == "string" ? e : e.value, x = L(t, "input"), C = L(t, "select"), w = i(() => {
|
|
7027
7027
|
if (C.value === null || C.value === void 0) return null;
|
|
7028
7028
|
let e = g.options.find((e) => y(e) === C.value);
|
|
7029
7029
|
return e ? _(e) : null;
|
|
@@ -7137,7 +7137,7 @@ var co = /* @__PURE__ */ p({
|
|
|
7137
7137
|
}),
|
|
7138
7138
|
emits: ["update:modelValue"],
|
|
7139
7139
|
setup(e) {
|
|
7140
|
-
let t =
|
|
7140
|
+
let t = L(e, "modelValue"), r = i(() => e.description?.trim() || void 0), l = async (n) => {
|
|
7141
7141
|
if (n) {
|
|
7142
7142
|
t.value = !0;
|
|
7143
7143
|
return;
|
|
@@ -7482,7 +7482,7 @@ var Vc = { render: Bc }, Hc = /* @__PURE__ */ p({
|
|
|
7482
7482
|
}),
|
|
7483
7483
|
emits: ["update:page"],
|
|
7484
7484
|
setup(t) {
|
|
7485
|
-
let n =
|
|
7485
|
+
let n = L(t, "page");
|
|
7486
7486
|
return (r, i) => (E(), a(P(Ae), {
|
|
7487
7487
|
total: t.total,
|
|
7488
7488
|
"items-per-page": t.itemsPerPage,
|
|
@@ -7579,7 +7579,7 @@ var Vc = { render: Bc }, Hc = /* @__PURE__ */ p({
|
|
|
7579
7579
|
}),
|
|
7580
7580
|
emits: ["update:modelValue"],
|
|
7581
7581
|
setup(t) {
|
|
7582
|
-
let n =
|
|
7582
|
+
let n = L(t, "modelValue"), r = i(() => t.messages?.insert ?? "Placeholder invoegen"), l = i(() => t.placeholders.length > 1), u = z("field"), p = (e, t) => {
|
|
7583
7583
|
let r = u.value?.inputEl ?? null, i = `{{${e}}}`, a = r?.selectionStart ?? n.value.length, o = r?.selectionEnd ?? a;
|
|
7584
7584
|
n.value = n.value.slice(0, a) + i + n.value.slice(o), t(), y(() => {
|
|
7585
7585
|
r?.focus(), r?.setSelectionRange(a + i.length, a + i.length);
|
|
@@ -7878,7 +7878,7 @@ var Vc = { render: Bc }, Hc = /* @__PURE__ */ p({
|
|
|
7878
7878
|
}, n = i(() => ({
|
|
7879
7879
|
...t,
|
|
7880
7880
|
...e.messages
|
|
7881
|
-
})), r =
|
|
7881
|
+
})), r = L(e, "modelValue"), a = (e) => {
|
|
7882
7882
|
let t = String(e ?? "").trim();
|
|
7883
7883
|
return t ? t.startsWith("-") ? t : `-${t}` : "";
|
|
7884
7884
|
}, l = i(() => `${e.reference.streetName} ${e.reference.houseNumber}${a(e.reference.houseNumberExt)}`), u = i(() => `${e.reference.postalCode} ${e.reference.city}`), p = i(() => e.reference.energyLabel ?? null), m = i(() => {
|
|
@@ -8460,7 +8460,7 @@ var Nu = { render: Mu }, Pu = { class: "flex items-center justify-end self-stret
|
|
|
8460
8460
|
}),
|
|
8461
8461
|
emits: ["update:modelValue"],
|
|
8462
8462
|
setup(t) {
|
|
8463
|
-
let n = t, r =
|
|
8463
|
+
let n = t, r = L(t, "modelValue"), l = z("containerRef"), u = O([]), f = O({
|
|
8464
8464
|
width: "0px",
|
|
8465
8465
|
transform: "translateX(0px)"
|
|
8466
8466
|
}), p = O("inset(0 100% 0 0 round 9999px)"), m = O(!1), h = i(() => n.tabs.map((e) => typeof e == "string" ? { label: e } : e)), g = async () => {
|
|
@@ -8542,7 +8542,7 @@ var Nu = { render: Mu }, Pu = { class: "flex items-center justify-end self-stret
|
|
|
8542
8542
|
}),
|
|
8543
8543
|
emits: ["update:modelValue"],
|
|
8544
8544
|
setup(e) {
|
|
8545
|
-
let t = e, r =
|
|
8545
|
+
let t = e, r = L(e, "modelValue"), a = O("forward"), o = i(() => t.tabs.map((e) => typeof e == "string" ? e : e.label));
|
|
8546
8546
|
H(o, (e) => {
|
|
8547
8547
|
!r.value && e.length > 0 && (r.value = e[0]);
|
|
8548
8548
|
}, { immediate: !0 }), H(r, (e, t) => {
|
|
@@ -8637,7 +8637,7 @@ var Nu = { render: Mu }, Pu = { class: "flex items-center justify-end self-stret
|
|
|
8637
8637
|
"select",
|
|
8638
8638
|
"textarea",
|
|
8639
8639
|
"label"
|
|
8640
|
-
], u = t, p = r, m =
|
|
8640
|
+
], u = t, p = r, m = L(t, "modelValue"), h = L(t, "sortKey"), g = L(t, "sortDirection"), _ = z("rowRefs"), v = i(() => u.rows.length > 0 && m.value.length === u.rows.length), y = i(() => m.value.length > 0 && m.value.length < u.rows.length), x = (e) => m.value.includes(e), C = () => {
|
|
8641
8641
|
u.selectionMode !== "single" && (m.value = v.value ? [] : [...u.rows]);
|
|
8642
8642
|
}, w = (e) => {
|
|
8643
8643
|
if (u.selectionMode === "single") {
|
|
@@ -8653,7 +8653,7 @@ var Nu = { render: Mu }, Pu = { class: "flex items-center justify-end self-stret
|
|
|
8653
8653
|
if (!u.selectable || !x(u.rows[e])) return "";
|
|
8654
8654
|
let t = e > 0 && x(u.rows[e - 1]), n = e < u.rows.length - 1 && x(u.rows[e + 1]);
|
|
8655
8655
|
return !t && !n ? "rounded-md" : t ? n ? "" : "rounded-b-md" : "rounded-t-md";
|
|
8656
|
-
}, P = (e, t) => e[t], F = (e) => `cell-${e}`,
|
|
8656
|
+
}, P = (e, t) => e[t], F = (e) => `cell-${e}`, ee = (e, t) => {
|
|
8657
8657
|
e.key === "ArrowDown" ? (e.preventDefault(), _.value?.[Math.min(t + 1, u.rows.length - 1)]?.focus()) : e.key === "ArrowUp" && (e.preventDefault(), _.value?.[Math.max(t - 1, 0)]?.focus());
|
|
8658
8658
|
};
|
|
8659
8659
|
return (r, i) => (E(), s("div", od, [c("div", {
|
|
@@ -8703,7 +8703,7 @@ var Nu = { render: Mu }, Pu = { class: "flex items-center justify-end self-stret
|
|
|
8703
8703
|
"aria-selected": t.selectable ? x(n) : void 0,
|
|
8704
8704
|
tabindex: "0",
|
|
8705
8705
|
onClick: (e) => j(e, i),
|
|
8706
|
-
onKeydown: (e) =>
|
|
8706
|
+
onKeydown: (e) => ee(e, i)
|
|
8707
8707
|
}, [t.selectable ? (E(), s("div", md, [f(ga, {
|
|
8708
8708
|
"model-value": x(n),
|
|
8709
8709
|
"aria-label": `Select row ${i + 1}`,
|
|
@@ -8897,7 +8897,7 @@ var Nu = { render: Mu }, Pu = { class: "flex items-center justify-end self-stret
|
|
|
8897
8897
|
}),
|
|
8898
8898
|
emits: ["update:modelValue"],
|
|
8899
8899
|
setup(e, { expose: t }) {
|
|
8900
|
-
let n = "textarea-" + Math.random().toString(36).slice(2, 10), r =
|
|
8900
|
+
let n = "textarea-" + Math.random().toString(36).slice(2, 10), r = L(e, "modelValue"), a = F(), l = i(() => ({
|
|
8901
8901
|
class: a.class,
|
|
8902
8902
|
style: a.style
|
|
8903
8903
|
})), u = i(() => {
|
|
@@ -9174,7 +9174,7 @@ var Nu = { render: Mu }, Pu = { class: "flex items-center justify-end self-stret
|
|
|
9174
9174
|
},
|
|
9175
9175
|
emits: ["dismiss"],
|
|
9176
9176
|
setup(e, { emit: t }) {
|
|
9177
|
-
|
|
9177
|
+
ee((e) => ({ fa0d20de: uf }));
|
|
9178
9178
|
let n = {
|
|
9179
9179
|
info: {
|
|
9180
9180
|
icon: "info",
|
|
@@ -9393,7 +9393,7 @@ var Nu = { render: Mu }, Pu = { class: "flex items-center justify-end self-stret
|
|
|
9393
9393
|
}),
|
|
9394
9394
|
emits: /*@__PURE__*/ _(["move"], ["update:selected", "update:collapsed"]),
|
|
9395
9395
|
setup(t, { expose: n, emit: l }) {
|
|
9396
|
-
let u = t, d =
|
|
9396
|
+
let u = t, d = R(), p = l, m = L(t, "selected"), h = L(t, "collapsed"), g = z("root"), _ = O(null), v = i(() => {
|
|
9397
9397
|
let e = [], t = (n, r, i) => {
|
|
9398
9398
|
n.forEach((a, o) => {
|
|
9399
9399
|
let s = !!a.children?.length, c = a.canHaveChildren ?? !!a.children, l = s && !h.value.includes(a.id);
|
|
@@ -9413,7 +9413,7 @@ var Nu = { render: Mu }, Pu = { class: "flex items-center justify-end self-stret
|
|
|
9413
9413
|
return t(u.nodes, 0, null), e;
|
|
9414
9414
|
}), x = O(null), T = O(null), D = O(null), A = O(null), j = !1, N = i(() => v.value.find((e) => e.node.id === x.value)), P = (e) => {
|
|
9415
9415
|
_f(D.value, e) || (D.value = e);
|
|
9416
|
-
}, F = (e) => e.classList.contains("absolute"),
|
|
9416
|
+
}, F = (e) => e.classList.contains("absolute"), ee = () => {
|
|
9417
9417
|
let e = g.value?.querySelector("[data-tree-id]")?.parentElement, t = Array.from(e?.children ?? []).filter((e) => e instanceof HTMLElement && !F(e)), n = [], r = null;
|
|
9418
9418
|
return t.forEach((e, i) => {
|
|
9419
9419
|
let a = e.offsetTop, o = t[i + 1], s = parseFloat(getComputedStyle(e).marginBottom) || 0, c = o ? o.offsetTop : a + e.offsetHeight + s;
|
|
@@ -9444,7 +9444,7 @@ var Nu = { render: Mu }, Pu = { class: "flex items-center justify-end self-stret
|
|
|
9444
9444
|
P(null);
|
|
9445
9445
|
return;
|
|
9446
9446
|
}
|
|
9447
|
-
let r = mf(
|
|
9447
|
+
let r = mf(ee(), t - g.value.getBoundingClientRect().top);
|
|
9448
9448
|
if (r.kind === "keep") return;
|
|
9449
9449
|
let i = v.value.find((e) => e.node.id === r.id), a = i ? hf(i, r.ratio, n.node) : null;
|
|
9450
9450
|
P(a && !gf(a, n) && te(n, a) ? a : null);
|
|
@@ -9637,7 +9637,7 @@ var Nu = { render: Mu }, Pu = { class: "flex items-center justify-end self-stret
|
|
|
9637
9637
|
}, Le = i(() => {
|
|
9638
9638
|
let e = v.value.map((e) => e.node.id);
|
|
9639
9639
|
return _.value && e.includes(_.value) ? _.value : m.value && e.includes(m.value) ? m.value : e[0] ?? null;
|
|
9640
|
-
}), Re = (e) => e === Le.value ? 0 : -1, ze =
|
|
9640
|
+
}), Re = (e) => e === Le.value ? 0 : -1, ze = I(), Be = (e) => `${ze}-label-${encodeURIComponent(e)}`, Ve = (e) => d["node-actions"]?.(e), He = (e) => {
|
|
9641
9641
|
h.value = h.value.includes(e) ? h.value.filter((t) => t !== e) : [...h.value, e];
|
|
9642
9642
|
}, Ue = (e) => {
|
|
9643
9643
|
He(e), g.value?.contains(document.activeElement) && We(e);
|
|
@@ -9847,33 +9847,33 @@ var Nu = { render: Mu }, Pu = { class: "flex items-center justify-end self-stret
|
|
|
9847
9847
|
return t > 0 ? `${t}:${String(n).padStart(2, "0")}:${String(r).padStart(2, "0")}` : `${n}:${String(r).padStart(2, "0")}`;
|
|
9848
9848
|
}, F = () => {
|
|
9849
9849
|
u.value = !u.value, k(u.value ? "play" : "pause");
|
|
9850
|
-
},
|
|
9850
|
+
}, ee = () => {
|
|
9851
9851
|
h.value = !h.value;
|
|
9852
|
-
},
|
|
9852
|
+
}, I = z("scrubberRef"), L = O(null), R = !1, B = i(() => L.value === null ? m.value ? p.value / m.value * 100 : 0 : L.value * 100), V = i(() => L.value === null ? p.value : L.value * (m.value || 0));
|
|
9853
9853
|
H(g, (e) => {
|
|
9854
|
-
!e &&
|
|
9854
|
+
!e && R && (R = !1, L.value = null);
|
|
9855
9855
|
});
|
|
9856
9856
|
let te = (e) => {
|
|
9857
|
-
if (!
|
|
9858
|
-
let t =
|
|
9857
|
+
if (!I.value) return 0;
|
|
9858
|
+
let t = I.value.getBoundingClientRect(), n = "touches" in e ? e.touches[0]?.clientX ?? 0 : e.clientX;
|
|
9859
9859
|
return Math.max(0, Math.min(1, (n - t.left) / t.width));
|
|
9860
9860
|
}, U = (e) => {
|
|
9861
|
-
|
|
9861
|
+
L.value = te(e);
|
|
9862
9862
|
}, G = (e) => {
|
|
9863
9863
|
if (!m.value) return;
|
|
9864
9864
|
let t = Math.max(0, Math.min(m.value, p.value + e));
|
|
9865
|
-
|
|
9865
|
+
R = !0, p.value = t;
|
|
9866
9866
|
}, K = (e) => {
|
|
9867
9867
|
e.key === "ArrowLeft" ? (e.preventDefault(), G(-5)) : e.key === "ArrowRight" ? (e.preventDefault(), G(5)) : e.key === "Home" ? (e.preventDefault(), G(-Infinity)) : e.key === "End" && (e.preventDefault(), G(Infinity));
|
|
9868
9868
|
}, ne = () => {
|
|
9869
|
-
|
|
9869
|
+
L.value !== null && m.value ? (R = !0, p.value = L.value * m.value) : L.value = null;
|
|
9870
9870
|
};
|
|
9871
9871
|
return ie(document, "mousemove", (e) => {
|
|
9872
|
-
|
|
9872
|
+
L.value !== null && (L.value = te(e));
|
|
9873
9873
|
}), ie(document, "mouseup", () => {
|
|
9874
|
-
|
|
9874
|
+
L.value !== null && ne();
|
|
9875
9875
|
}), ie(document, "touchend", () => {
|
|
9876
|
-
|
|
9876
|
+
L.value !== null && ne();
|
|
9877
9877
|
}), w(() => {
|
|
9878
9878
|
r.autoplay && (u.value = !0), r.muted && (h.value = !0);
|
|
9879
9879
|
}), t({
|
|
@@ -9921,7 +9921,7 @@ var Nu = { render: Mu }, Pu = { class: "flex items-center justify-end self-stret
|
|
|
9921
9921
|
style: S({ transform: x.value ? "translateY(0)" : "translateY(100%)" })
|
|
9922
9922
|
}, [c("div", {
|
|
9923
9923
|
ref_key: "scrubberRef",
|
|
9924
|
-
ref:
|
|
9924
|
+
ref: I,
|
|
9925
9925
|
role: "slider",
|
|
9926
9926
|
"aria-label": a.value.seek,
|
|
9927
9927
|
"aria-valuemin": 0,
|
|
@@ -9934,10 +9934,10 @@ var Nu = { render: Mu }, Pu = { class: "flex items-center justify-end self-stret
|
|
|
9934
9934
|
onTouchstart: q(U, ["prevent"]),
|
|
9935
9935
|
onKeydown: K,
|
|
9936
9936
|
onTouchmove: r[2] ||= q((e) => {
|
|
9937
|
-
|
|
9937
|
+
L.value !== null && (L.value = te(e));
|
|
9938
9938
|
}, ["prevent"]),
|
|
9939
9939
|
onTouchend: r[3] ||= () => {
|
|
9940
|
-
|
|
9940
|
+
L.value !== null && ne();
|
|
9941
9941
|
}
|
|
9942
9942
|
}, [
|
|
9943
9943
|
c("div", {
|
|
@@ -9969,7 +9969,7 @@ var Nu = { render: Mu }, Pu = { class: "flex items-center justify-end self-stret
|
|
|
9969
9969
|
type: "button",
|
|
9970
9970
|
"aria-label": P(h) ? a.value.unmute : a.value.mute,
|
|
9971
9971
|
class: "flex size-8 cursor-pointer items-center justify-center rounded-full text-white transition hover:bg-white/10 hover:text-cornflower-blue-400",
|
|
9972
|
-
onClick:
|
|
9972
|
+
onClick: ee
|
|
9973
9973
|
}, [f(Q, {
|
|
9974
9974
|
name: P(h) ? "volume-xmark" : "volume-high",
|
|
9975
9975
|
class: "text-sm",
|
package/dist/ui.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
input[data-snap][data-v-5d3904ac]{animation:snap-in-5d3904ac .18s var(--ease-out-strong)}input[data-snap=up][data-v-5d3904ac]{--snap-from:2px}input[data-snap=down][data-v-5d3904ac]{--snap-from:-2px}@keyframes snap-in-5d3904ac{0%{opacity:0;transform:translateY(var(--snap-from))}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){input[data-snap][data-v-5d3904ac]{animation:1ms snap-hold-5d3904ac}@keyframes snap-hold-5d3904ac{0%,to{opacity:1}}}input[data-snap][data-v-
|
|
1
|
+
input[data-snap][data-v-5d3904ac]{animation:snap-in-5d3904ac .18s var(--ease-out-strong)}input[data-snap=up][data-v-5d3904ac]{--snap-from:2px}input[data-snap=down][data-v-5d3904ac]{--snap-from:-2px}@keyframes snap-in-5d3904ac{0%{opacity:0;transform:translateY(var(--snap-from))}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){input[data-snap][data-v-5d3904ac]{animation:1ms snap-hold-5d3904ac}@keyframes snap-hold-5d3904ac{0%,to{opacity:1}}}input[data-snap][data-v-15feed8b]{animation:snap-in-15feed8b .18s var(--ease-out-strong)}input[data-snap=up][data-v-15feed8b]{--snap-from:2px}input[data-snap=down][data-v-15feed8b]{--snap-from:-2px}@keyframes snap-in-15feed8b{0%{opacity:0;transform:translateY(var(--snap-from))}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){input[data-snap][data-v-15feed8b]{animation:1ms snap-hold-15feed8b}@keyframes snap-hold-15feed8b{0%,to{opacity:1}}}rect[data-v-0a5d9b21]{animation-duration:4s;animation-timing-function:cubic-bezier(.77,0,.175,1);animation-iteration-count:infinite}rect[data-v-0a5d9b21]:first-child{animation-name:load-1-0a5d9b21}rect[data-v-0a5d9b21]:nth-child(2){animation-name:load-2-0a5d9b21}rect[data-v-0a5d9b21]:nth-child(3){animation-name:load-3-0a5d9b21}rect[data-v-0a5d9b21]:nth-child(4){animation-name:load-4-0a5d9b21}rect[data-v-0a5d9b21]:nth-child(5){animation-name:load-5-0a5d9b21}rect[data-v-0a5d9b21]:nth-child(6){animation-name:load-6-0a5d9b21}rect[data-v-0a5d9b21]:nth-child(7){animation-name:load-7-0a5d9b21}rect[data-v-0a5d9b21]:nth-child(8){animation-name:load-8-0a5d9b21}@media (prefers-reduced-motion:reduce){rect[data-v-0a5d9b21]{animation:none}svg[data-v-0a5d9b21]{animation:2.5s ease-in-out infinite pulse-0a5d9b21}}@keyframes pulse-0a5d9b21{0%,to{opacity:1}50%{opacity:.65}}@keyframes load-1-0a5d9b21{0%,80%{transform:translate(0)}5%,20%,60%,75%{transform:translate(-25px,25px)}30%,50%{transform:translate(-75px,75px)}}@keyframes load-2-0a5d9b21{5%,75%{transform:translate(0%)}10%,20%,60%,70%{transform:translate(50px)}30%,50%{transform:translateY(50px)}}@keyframes load-3-0a5d9b21{10%,70%{transform:translate(0%)}15%,65%{transform:translateY(-50px)}20%,60%{fill:var(--color-sapphire-500);transform:translateY(-50px)}30%,50%{fill:var(--color-purple-500);transform:translate(-50px)}}@keyframes load-4-0a5d9b21{20%,60%{transform:translate(0%)}30%,50%{transform:translate(50px,-50px)}}@keyframes load-5-0a5d9b21{0%,80%{transform:translate(0%)}5%,20%,60%,75%{transform:translateY(50px)}30%,50%{transform:translate(50px)}}@keyframes load-6-0a5d9b21{5%,75%{transform:translate(0%)}10%,20%,60%,70%{transform:translate(-50px)}30%,50%{transform:translateY(-50px)}}@keyframes load-7-0a5d9b21{10%,70%{transform:translate(0%)}15%,20%,60%,65%{transform:translate(50px)}30%,50%{transform:translate(100px,-50px)}}@keyframes load-8-0a5d9b21{15%,65%{transform:translate(0%)}20%,60%{transform:translateY(-50px)}30%,50%{transform:translate(50px,-100px)}}.timer-circle[data-v-7e3c5bda]{stroke-dashoffset:0;animation:linear forwards toast-timer-7e3c5bda}@keyframes toast-timer-7e3c5bda{to{stroke-dashoffset:var(--fa0d20de)}}
|
|
2
2
|
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -97,7 +97,12 @@ const emit = defineEmits<{
|
|
|
97
97
|
commit: []
|
|
98
98
|
}>()
|
|
99
99
|
|
|
100
|
-
/**
|
|
100
|
+
/**
|
|
101
|
+
* The dimension, or `null` for none. A `null` from outside -- another element
|
|
102
|
+
* selected, an undo -- resets the unit to the first of `units`; a field the
|
|
103
|
+
* user emptied keeps the unit picked in it. A value from outside brings its
|
|
104
|
+
* own unit.
|
|
105
|
+
*/
|
|
101
106
|
const model = defineModel<EditorDimensionValue | null>({ default: null })
|
|
102
107
|
|
|
103
108
|
const copy = computed(() => ({ ...DEFAULT_MESSAGES, ...messages }))
|
|
@@ -109,10 +114,20 @@ const copy = computed(() => ({ ...DEFAULT_MESSAGES, ...messages }))
|
|
|
109
114
|
*/
|
|
110
115
|
const unit = ref<EditorDimensionUnit>(model.value?.unit ?? units[0])
|
|
111
116
|
|
|
117
|
+
/**
|
|
118
|
+
* Set while the field's own `null` is on its way through the model. Without
|
|
119
|
+
* it, the user emptying the field could not be told apart from a `null` from
|
|
120
|
+
* outside, and only the latter resets the unit.
|
|
121
|
+
*/
|
|
122
|
+
let emptiedHere = false
|
|
123
|
+
|
|
112
124
|
watch(
|
|
113
|
-
() => model.value
|
|
125
|
+
() => model.value,
|
|
114
126
|
(next) => {
|
|
115
|
-
if (next) unit.value = next
|
|
127
|
+
if (next) unit.value = next.unit
|
|
128
|
+
else if (!emptiedHere) unit.value = units[0]
|
|
129
|
+
|
|
130
|
+
emptiedHere = false
|
|
116
131
|
},
|
|
117
132
|
)
|
|
118
133
|
|
|
@@ -183,6 +198,7 @@ const write = (next: EditorDimensionValue | null) => {
|
|
|
183
198
|
)
|
|
184
199
|
return false
|
|
185
200
|
|
|
201
|
+
emptiedHere = next === null
|
|
186
202
|
model.value = next
|
|
187
203
|
return true
|
|
188
204
|
}
|
|
@@ -37,6 +37,12 @@ export interface EditorMaxWidthMessages {
|
|
|
37
37
|
unit?: string
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
/**
|
|
41
|
+
* Sets a width on Tailwind's `max-w-*` steps, stored as the class.
|
|
42
|
+
*
|
|
43
|
+
* @deprecated Use `NexxtEditorSizeLimit`: a free maximum in px or % that can
|
|
44
|
+
* be none.
|
|
45
|
+
*/
|
|
40
46
|
export interface NexxtEditorMaxWidthProps {
|
|
41
47
|
/**
|
|
42
48
|
* Header text of the settings block. Defaults to the Dutch
|
|
@@ -21,7 +21,9 @@ export interface EditorSizeValue {
|
|
|
21
21
|
mode: EditorSizeMode
|
|
22
22
|
/**
|
|
23
23
|
* The fixed dimension. Kept when another mode is picked, so switching back
|
|
24
|
-
* to `'fixed'` restores it; it only applies while `mode` is `'fixed'`.
|
|
24
|
+
* to `'fixed'` restores it; it only applies while `mode` is `'fixed'`. The
|
|
25
|
+
* app always fills it with the measured size of the element, so picking
|
|
26
|
+
* `'fixed'` starts from that size.
|
|
25
27
|
*/
|
|
26
28
|
fixed?: EditorDimensionValue
|
|
27
29
|
}
|
|
@@ -119,9 +121,10 @@ const emit = defineEmits<{
|
|
|
119
121
|
}>()
|
|
120
122
|
|
|
121
123
|
/**
|
|
122
|
-
* The size.
|
|
123
|
-
*
|
|
124
|
-
*
|
|
124
|
+
* The size. Fill `fixed` with the measured size of the element, as the app
|
|
125
|
+
* always does. Without it, picking `'fixed'` writes `{ mode: 'fixed' }` and
|
|
126
|
+
* commits straight away, leaving a fixed mode without a size until a value is
|
|
127
|
+
* typed; with the measured size, that state does not come up.
|
|
125
128
|
*/
|
|
126
129
|
const model = defineModel<EditorSizeValue>({ required: true })
|
|
127
130
|
|
|
@@ -7,6 +7,11 @@ import type {
|
|
|
7
7
|
/** Overridable copy of the field. Every key is optional. */
|
|
8
8
|
export type EditorSizeLimitMessages = EditorDimensionFieldMessages
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* A free minimum or maximum of an element's size, in px or %, that can be
|
|
12
|
+
* none. Replaces the deprecated `NexxtEditorMaxWidth`, which offers only
|
|
13
|
+
* Tailwind's `max-w-*` steps.
|
|
14
|
+
*/
|
|
10
15
|
export interface NexxtEditorSizeLimitProps {
|
|
11
16
|
/** Visible label above the field, and its accessible name, as in `'Maximale breedte'`. */
|
|
12
17
|
label: string
|