ablok-components 0.3.112 → 0.3.114
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/ablok-components.umd.js +2 -2
- package/dist/components/molecules/base-camera/base-camera.vue_vue_type_script_async_true_setup_true_lang.js +196 -197
- package/dist/components/molecules/dom-renderer/dom-renderer.vue_vue_type_script_setup_true_lang.js +25 -26
- package/dist/components/molecules/image-resize/image-resize.vue_vue_type_script_setup_true_lang.js +38 -39
- package/dist/components/molecules/input-datepicker/input-datepicker.vue_vue_type_script_setup_true_lang.js +37 -39
- package/package.json +1 -1
- package/dist/_virtual/_rolldown/runtime.js +0 -13
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -9
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -17
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -22
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -18
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de/_lib/formatDistance.js +0 -162
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de/_lib/formatLong.js +0 -32
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de/_lib/formatRelative.js +0 -11
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de/_lib/localize.js +0 -213
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de/_lib/match.js +0 -114
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de.js +0 -20
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -69
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -32
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -11
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -202
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.js +0 -124
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js +0 -20
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +0 -69
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr/_lib/formatLong.js +0 -32
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js +0 -11
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr/_lib/localize.js +0 -177
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr/_lib/match.js +0 -124
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr.js +0 -20
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js +0 -9
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +0 -15
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js +0 -13
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +0 -8
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js +0 -19
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js +0 -12
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js +0 -10
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js +0 -13
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js +0 -55
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js +0 -12
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js +0 -11
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js +0 -14
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js +0 -12
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js +0 -24
package/dist/components/molecules/dom-renderer/dom-renderer.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import d from "html2canvas";
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, normalizeClass as n, normalizeStyle as r, onBeforeUnmount as i, onMounted as a, openBlock as o, ref as s, renderSlot as c } from "vue";
|
|
2
|
+
import l from "lodash/debounce";
|
|
3
|
+
import u from "html2canvas";
|
|
5
4
|
//#region src/components/molecules/dom-renderer/dom-renderer.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
5
|
+
var d = /*@__PURE__*/ t({
|
|
7
6
|
__name: "dom-renderer",
|
|
8
7
|
props: {
|
|
9
8
|
modelValue: {
|
|
@@ -40,59 +39,59 @@ var f = /* @__PURE__ */ e(t(), 1), p = /*@__PURE__*/ r({
|
|
|
40
39
|
}
|
|
41
40
|
},
|
|
42
41
|
emits: ["update:modelValue", "update:pending"],
|
|
43
|
-
setup(
|
|
44
|
-
let
|
|
42
|
+
setup(t, { emit: d }) {
|
|
43
|
+
let f = t, p = d, m = s(), h = s(""), g = s(), _ = s(!0);
|
|
45
44
|
async function v() {
|
|
46
45
|
if (!m.value || !_.value) return "";
|
|
47
46
|
let e = m.value;
|
|
48
47
|
if (!e.isConnected) return "";
|
|
49
48
|
try {
|
|
50
|
-
|
|
49
|
+
f.emitPending && p("update:pending", !0);
|
|
51
50
|
let t = e.firstElementChild;
|
|
52
51
|
if (!t) return "";
|
|
53
|
-
let n = await
|
|
52
|
+
let n = await u(t, {
|
|
54
53
|
backgroundColor: "rgba(0, 0, 0, 0)",
|
|
55
54
|
scale: 1,
|
|
56
|
-
...
|
|
55
|
+
...f.options
|
|
57
56
|
});
|
|
58
57
|
if (!_.value || !m.value || !e.isConnected) return "";
|
|
59
|
-
let
|
|
60
|
-
if (p("update:modelValue",
|
|
58
|
+
let r = n.toDataURL();
|
|
59
|
+
if (p("update:modelValue", r), f.emitPending && p("update:pending", !1), f.debug) {
|
|
61
60
|
let e = new Image();
|
|
62
|
-
e.src =
|
|
61
|
+
e.src = r, document.body.appendChild(e);
|
|
63
62
|
}
|
|
64
|
-
return
|
|
63
|
+
return r;
|
|
65
64
|
} catch (e) {
|
|
66
|
-
return _.value &&
|
|
65
|
+
return _.value && f.emitPending && p("update:pending", !1), console.warn("dom-renderer: Render failed", e), "";
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
|
-
let y = (
|
|
68
|
+
let y = l(async () => {
|
|
70
69
|
h.value = await v();
|
|
71
70
|
}, 300, {
|
|
72
71
|
trailing: !0,
|
|
73
72
|
leading: !1
|
|
74
73
|
});
|
|
75
|
-
return
|
|
74
|
+
return a(() => {
|
|
76
75
|
let e = m.value;
|
|
77
|
-
|
|
78
|
-
!_.value || !e.isConnected || (
|
|
76
|
+
f.renderUpdates && (g.value = new MutationObserver(async (t) => {
|
|
77
|
+
!_.value || !e.isConnected || (f.emitPending && p("update:pending", !0), y());
|
|
79
78
|
}), g.value.observe(e, {
|
|
80
79
|
attributes: !0,
|
|
81
80
|
childList: !0,
|
|
82
81
|
characterData: !0,
|
|
83
82
|
subtree: !0
|
|
84
83
|
})), setTimeout(() => {
|
|
85
|
-
|
|
84
|
+
f.emitPending && p("update:pending", !0), y();
|
|
86
85
|
}, 500);
|
|
87
|
-
}),
|
|
86
|
+
}), i(() => {
|
|
88
87
|
_.value = !1, g.value && g.value.disconnect(), y.cancel();
|
|
89
|
-
}), (
|
|
90
|
-
class:
|
|
88
|
+
}), (i, a) => (o(), e("div", {
|
|
89
|
+
class: n(["dom-renderer", { "off-screen": !t.debug }]),
|
|
91
90
|
ref_key: "renderer",
|
|
92
91
|
ref: m,
|
|
93
|
-
style:
|
|
94
|
-
}, [
|
|
92
|
+
style: r(t.fixedWidth > 0 ? { width: `${t.fixedWidth}px` } : {})
|
|
93
|
+
}, [c(i.$slots, "default")], 6));
|
|
95
94
|
}
|
|
96
95
|
});
|
|
97
96
|
//#endregion
|
|
98
|
-
export {
|
|
97
|
+
export { d as default };
|
package/dist/components/molecules/image-resize/image-resize.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
4
|
-
import r from "
|
|
5
|
-
import
|
|
6
|
-
import { createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, onMounted as d, openBlock as f, ref as p, renderSlot as m, toDisplayString as h, useTemplateRef as g, vModelText as _, watch as v, withDirectives as y, withModifiers as b } from "vue";
|
|
1
|
+
import e from "../../atoms/base-image/base-image.js";
|
|
2
|
+
import { resizeImageElementToDataUrl as t } from "../../../utilities/helpers.js";
|
|
3
|
+
import n from "../../atoms/base-input/base-input.js";
|
|
4
|
+
import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, onMounted as l, openBlock as u, ref as d, renderSlot as f, toDisplayString as p, useTemplateRef as m, vModelText as h, watch as g, withDirectives as _, withModifiers as v } from "vue";
|
|
5
|
+
import y from "lodash/debounce";
|
|
7
6
|
//#region src/components/molecules/image-resize/image-resize.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
7
|
+
var b = {
|
|
9
8
|
key: 0,
|
|
10
9
|
class: "image-editor position-relative"
|
|
11
|
-
},
|
|
10
|
+
}, x = { class: "row mb-3" }, S = { class: "col" }, C = { class: "row gap-2 mb-4" }, w = { class: "col-12" }, T = { class: "input mb-2" }, E = { class: "col" }, D = { class: "input mb-0" }, O = { class: "col" }, k = { class: "input mb-0" }, A = { class: "row" }, j = { class: "col d-flex justify-content-end gap-2" }, M = ["disabled"], N = /*@__PURE__*/ c({
|
|
12
11
|
__name: "image-resize",
|
|
13
12
|
props: {
|
|
14
13
|
modelValue: {
|
|
@@ -26,36 +25,36 @@ var x = /* @__PURE__ */ e(i(), 1), S = {
|
|
|
26
25
|
}
|
|
27
26
|
},
|
|
28
27
|
emits: ["update:modelValue"],
|
|
29
|
-
setup(
|
|
30
|
-
let
|
|
28
|
+
setup(c, { emit: N }) {
|
|
29
|
+
let P = N, F = m("image"), I = d(1), L = d(0), R = d(0), z = d(null), B = d(0), V = d(0);
|
|
31
30
|
function H() {
|
|
32
|
-
z.value && (
|
|
31
|
+
z.value && (P("update:modelValue", z.value), I.value = 1);
|
|
33
32
|
}
|
|
34
33
|
let U = () => {
|
|
35
34
|
if (!B.value || !V.value) return;
|
|
36
35
|
L.value = Math.round(B.value * I.value);
|
|
37
36
|
let e = V.value / B.value;
|
|
38
37
|
R.value = Math.round(L.value * e);
|
|
39
|
-
let
|
|
40
|
-
if (!
|
|
41
|
-
let r =
|
|
42
|
-
r && (z.value =
|
|
43
|
-
}, W = (
|
|
44
|
-
return
|
|
38
|
+
let n = F.value?.$el;
|
|
39
|
+
if (!n) return;
|
|
40
|
+
let r = n.querySelector("img");
|
|
41
|
+
r && (z.value = t(r, L.value, R.value, "image/png"));
|
|
42
|
+
}, W = y(U, 300);
|
|
43
|
+
return g(I, () => {
|
|
45
44
|
B.value && (L.value = Math.round(B.value * I.value), W());
|
|
46
|
-
}),
|
|
45
|
+
}), g(L, () => {
|
|
47
46
|
if (!B.value || L.value === 0) return;
|
|
48
47
|
let e = L.value / B.value;
|
|
49
48
|
Math.abs(e - I.value) > 1e-4 && (I.value = Number(e.toFixed(4)));
|
|
50
49
|
let t = V.value / B.value;
|
|
51
50
|
R.value = Math.round(L.value * t), W();
|
|
52
|
-
}),
|
|
51
|
+
}), g(R, () => {
|
|
53
52
|
if (!V.value || R.value === 0) return;
|
|
54
53
|
let e = R.value / V.value;
|
|
55
54
|
Math.abs(e - I.value) > 1e-4 && (I.value = Number(e.toFixed(4)));
|
|
56
55
|
let t = B.value / V.value;
|
|
57
56
|
L.value = Math.round(R.value * t), W();
|
|
58
|
-
}),
|
|
57
|
+
}), l(() => {
|
|
59
58
|
let e = F.value?.$el;
|
|
60
59
|
if (!e) return;
|
|
61
60
|
let t = e.querySelector("img");
|
|
@@ -64,53 +63,53 @@ var x = /* @__PURE__ */ e(i(), 1), S = {
|
|
|
64
63
|
B.value = t.naturalWidth, V.value = t.naturalHeight, U();
|
|
65
64
|
};
|
|
66
65
|
t.complete ? n() : t.addEventListener("load", n);
|
|
67
|
-
}), (
|
|
68
|
-
|
|
66
|
+
}), (t, l) => c.modelValue ? (u(), a("div", b, [
|
|
67
|
+
o("div", x, [o("div", S, [s(e, {
|
|
69
68
|
ref_key: "image",
|
|
70
69
|
ref: F,
|
|
71
70
|
class: "d-none",
|
|
72
|
-
src:
|
|
71
|
+
src: c.modelValue,
|
|
73
72
|
animate: !1
|
|
74
|
-
}, null, 8, ["src"]), z.value ? (
|
|
73
|
+
}, null, 8, ["src"]), z.value ? (u(), r(e, {
|
|
75
74
|
key: 0,
|
|
76
75
|
ref: "targetImage",
|
|
77
76
|
class: "",
|
|
78
77
|
src: z.value,
|
|
79
78
|
animate: !1
|
|
80
|
-
}, null, 8, ["src"])) :
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
}, null, 8, ["src"])) : i("", !0)])]),
|
|
80
|
+
o("div", C, [
|
|
81
|
+
o("div", w, [o("div", T, [_(o("input", {
|
|
83
82
|
type: "range",
|
|
84
83
|
class: "form-range",
|
|
85
84
|
id: "scaleRange",
|
|
86
|
-
"onUpdate:modelValue":
|
|
85
|
+
"onUpdate:modelValue": l[0] ||= (e) => I.value = e,
|
|
87
86
|
min: "0",
|
|
88
87
|
max: "2",
|
|
89
88
|
step: "0.0001"
|
|
90
|
-
}, null, 512), [[
|
|
91
|
-
|
|
89
|
+
}, null, 512), [[h, I.value]])])]),
|
|
90
|
+
o("div", E, [o("div", D, [s(n, {
|
|
92
91
|
type: "number",
|
|
93
92
|
class: "form-input mb-0",
|
|
94
93
|
id: "targetWidth",
|
|
95
94
|
modelValue: L.value,
|
|
96
|
-
"onUpdate:modelValue":
|
|
95
|
+
"onUpdate:modelValue": l[1] ||= (e) => L.value = e
|
|
97
96
|
}, null, 8, ["modelValue"])])]),
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
l[3] ||= o("div", { class: "col-auto d-flex align-items-center" }, [o("output", null, "×")], -1),
|
|
98
|
+
o("div", O, [o("div", k, [s(n, {
|
|
100
99
|
type: "number",
|
|
101
100
|
class: "form-input mb-0",
|
|
102
101
|
id: "targetHeight",
|
|
103
102
|
modelValue: R.value,
|
|
104
|
-
"onUpdate:modelValue":
|
|
103
|
+
"onUpdate:modelValue": l[2] ||= (e) => R.value = e
|
|
105
104
|
}, null, 8, ["modelValue"])])])
|
|
106
105
|
]),
|
|
107
|
-
|
|
106
|
+
o("div", A, [o("div", j, [f(t.$slots, "actions"), o("button", {
|
|
108
107
|
class: "btn btn-sm btn-primary",
|
|
109
108
|
disabled: !z.value,
|
|
110
|
-
onClick:
|
|
111
|
-
},
|
|
112
|
-
])) :
|
|
109
|
+
onClick: v(H, ["prevent", "stop"])
|
|
110
|
+
}, p(t.$t("common.apply")), 9, M)])])
|
|
111
|
+
])) : i("", !0);
|
|
113
112
|
}
|
|
114
113
|
});
|
|
115
114
|
//#endregion
|
|
116
|
-
export {
|
|
115
|
+
export { N as default };
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { sanitizeHtml as e } from "../../../composables/useSanitize.js";
|
|
2
2
|
import { uniqueId as t } from "../../../utilities/helpers.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, normalizeClass as d, onMounted as f, openBlock as p, ref as m, renderSlot as h, resolveDynamicComponent as g, shallowRef as _, unref as v, watch as y } from "vue";
|
|
8
|
-
import { useI18n as b } from "vue-i18n";
|
|
4
|
+
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, onMounted as l, openBlock as u, ref as d, renderSlot as f, resolveDynamicComponent as p, shallowRef as m, unref as h, watch as g } from "vue";
|
|
5
|
+
import { useI18n as _ } from "vue-i18n";
|
|
6
|
+
import { de as v, enUS as y, fr as b } from "date-fns/locale";
|
|
9
7
|
//#region src/components/molecules/input-datepicker/input-datepicker.vue?vue&type=script&setup=true&lang.ts
|
|
10
8
|
var x = { class: "row" }, S = { class: "col-12" }, C = ["for", "innerHTML"], w = { key: 0 }, T = { class: "input-group justify-content-center" }, E = {
|
|
11
9
|
key: 0,
|
|
@@ -13,7 +11,7 @@ var x = { class: "row" }, S = { class: "col-12" }, C = ["for", "innerHTML"], w =
|
|
|
13
11
|
}, D = { class: "col-12 col-md-6" }, O = { class: "col-12 col-md-6" }, k = {
|
|
14
12
|
key: 1,
|
|
15
13
|
class: "row"
|
|
16
|
-
}, A = { class: "col-12" }, j = /*@__PURE__*/
|
|
14
|
+
}, A = { class: "col-12" }, j = /*@__PURE__*/ s({
|
|
17
15
|
__name: "input-datepicker",
|
|
18
16
|
props: {
|
|
19
17
|
modelValue: {
|
|
@@ -100,30 +98,30 @@ var x = { class: "row" }, S = { class: "col-12" }, C = ["for", "innerHTML"], w =
|
|
|
100
98
|
"update:from",
|
|
101
99
|
"update:to"
|
|
102
100
|
],
|
|
103
|
-
setup(t, { emit:
|
|
101
|
+
setup(t, { emit: s }) {
|
|
104
102
|
let j = {
|
|
105
103
|
Sunday: 0,
|
|
106
104
|
Monday: 1
|
|
107
|
-
}, M =
|
|
108
|
-
|
|
105
|
+
}, M = m(null);
|
|
106
|
+
l(async () => {
|
|
109
107
|
let { VueDatePicker: e } = await import("@vuepic/vue-datepicker");
|
|
110
108
|
M.value = e, console.log("VueDatePicker loaded:", F.value, N.locale);
|
|
111
109
|
});
|
|
112
|
-
let N = t, P =
|
|
113
|
-
en:
|
|
114
|
-
de:
|
|
115
|
-
fr:
|
|
116
|
-
}, L =
|
|
110
|
+
let N = t, P = s, { t: ee, locale: F } = _(), I = {
|
|
111
|
+
en: y,
|
|
112
|
+
de: v,
|
|
113
|
+
fr: b
|
|
114
|
+
}, L = n(() => {
|
|
117
115
|
let e = N.locale || F.value;
|
|
118
|
-
return I[e] ||
|
|
119
|
-
}), R =
|
|
116
|
+
return I[e] || y;
|
|
117
|
+
}), R = n(() => {
|
|
120
118
|
switch (N.locale || F.value) {
|
|
121
119
|
case "en": return j.Sunday;
|
|
122
120
|
case "de":
|
|
123
121
|
case "fr": return j.Monday;
|
|
124
122
|
default: return j.Sunday;
|
|
125
123
|
}
|
|
126
|
-
}), z =
|
|
124
|
+
}), z = n(() => N.inline || !N.picker ? {
|
|
127
125
|
openMenu: !1,
|
|
128
126
|
format: L.value
|
|
129
127
|
} : !0);
|
|
@@ -142,8 +140,8 @@ var x = { class: "row" }, S = { class: "col-12" }, C = ["for", "innerHTML"], w =
|
|
|
142
140
|
let e = N.from || (Array.isArray(N.modelValue) ? N.modelValue[0] : null), t = N.to || (Array.isArray(N.modelValue) ? N.modelValue[1] : null);
|
|
143
141
|
return N.utcStore ? (e = e ? Z(e) : null, t = t ? Z(t) : null) : (e = V(e), t = V(t)), [e, t];
|
|
144
142
|
}
|
|
145
|
-
let W =
|
|
146
|
-
|
|
143
|
+
let W = d(U());
|
|
144
|
+
g(() => [
|
|
147
145
|
N.modelValue,
|
|
148
146
|
N.from,
|
|
149
147
|
N.to,
|
|
@@ -159,7 +157,7 @@ var x = { class: "row" }, S = { class: "col-12" }, C = ["for", "innerHTML"], w =
|
|
|
159
157
|
function K(e, t) {
|
|
160
158
|
W.value = [e ?? null, t ?? null], G(e ?? null, t ?? null);
|
|
161
159
|
}
|
|
162
|
-
let q =
|
|
160
|
+
let q = n({
|
|
163
161
|
get() {
|
|
164
162
|
if (N.range) {
|
|
165
163
|
let e = N.from || (Array.isArray(N.modelValue) ? N.modelValue[0] : null), t = N.to || (Array.isArray(N.modelValue) ? N.modelValue[1] : null);
|
|
@@ -180,14 +178,14 @@ var x = { class: "row" }, S = { class: "col-12" }, C = ["for", "innerHTML"], w =
|
|
|
180
178
|
P("update:modelValue", t);
|
|
181
179
|
} else P("update:modelValue", H(e));
|
|
182
180
|
}
|
|
183
|
-
}), J =
|
|
181
|
+
}), J = n({
|
|
184
182
|
get() {
|
|
185
183
|
return W.value[0];
|
|
186
184
|
},
|
|
187
185
|
set(e) {
|
|
188
186
|
K(e, W.value[1]);
|
|
189
187
|
}
|
|
190
|
-
}), Y =
|
|
188
|
+
}), Y = n({
|
|
191
189
|
get() {
|
|
192
190
|
return W.value[1];
|
|
193
191
|
},
|
|
@@ -215,19 +213,19 @@ var x = { class: "row" }, S = { class: "col-12" }, C = ["for", "innerHTML"], w =
|
|
|
215
213
|
return Number.isNaN(t.getTime()) ? null : t.toISOString().split(".")[0];
|
|
216
214
|
}
|
|
217
215
|
let $ = (e) => (e = Array.isArray(e) ? e.map((e) => X(e)).join(" - ") : X(e), e);
|
|
218
|
-
return (n,
|
|
219
|
-
|
|
216
|
+
return (n, s) => (u(), a("div", { class: c(["input", "input--datepicker"]) }, [
|
|
217
|
+
f(n.$slots, "label", {}, () => [o("div", x, [o("div", S, [t.label ? (u(), a("label", {
|
|
220
218
|
key: 0,
|
|
221
219
|
for: t.id,
|
|
222
220
|
class: "input__label",
|
|
223
|
-
innerHTML:
|
|
224
|
-
}, null, 8, C)) :
|
|
225
|
-
t.textInput ? (
|
|
226
|
-
|
|
227
|
-
t.range && !t.textRange ? (
|
|
221
|
+
innerHTML: h(e)(`${t.label}${t.required ? " *" : ""}`)
|
|
222
|
+
}, null, 8, C)) : i("", !0)])])]),
|
|
223
|
+
t.textInput ? (u(), a("div", w, [o("div", T, [
|
|
224
|
+
f(n.$slots, "input-prepend", { slotScope: "props" }),
|
|
225
|
+
t.range && !t.textRange ? (u(), a("div", E, [o("div", D, [(u(), r(p(M.value), {
|
|
228
226
|
uid: `${t.id}-from`,
|
|
229
227
|
modelValue: J.value,
|
|
230
|
-
"onUpdate:modelValue":
|
|
228
|
+
"onUpdate:modelValue": s[0] ||= (e) => J.value = e,
|
|
231
229
|
locale: L.value,
|
|
232
230
|
format: $,
|
|
233
231
|
"text-input": z.value,
|
|
@@ -247,10 +245,10 @@ var x = { class: "row" }, S = { class: "col-12" }, C = ["for", "innerHTML"], w =
|
|
|
247
245
|
"required",
|
|
248
246
|
"max-date",
|
|
249
247
|
"week-start"
|
|
250
|
-
]))]),
|
|
248
|
+
]))]), o("div", O, [(u(), r(p(M.value), {
|
|
251
249
|
uid: `${t.id}-to`,
|
|
252
250
|
modelValue: Y.value,
|
|
253
|
-
"onUpdate:modelValue":
|
|
251
|
+
"onUpdate:modelValue": s[1] ||= (e) => Y.value = e,
|
|
254
252
|
locale: L.value,
|
|
255
253
|
format: $,
|
|
256
254
|
"text-input": z.value,
|
|
@@ -270,11 +268,11 @@ var x = { class: "row" }, S = { class: "col-12" }, C = ["for", "innerHTML"], w =
|
|
|
270
268
|
"required",
|
|
271
269
|
"min-date",
|
|
272
270
|
"week-start"
|
|
273
|
-
]))])])) : (
|
|
271
|
+
]))])])) : (u(), r(p(M.value), {
|
|
274
272
|
key: 1,
|
|
275
273
|
uid: `${t.id}-input-to`,
|
|
276
274
|
modelValue: q.value,
|
|
277
|
-
"onUpdate:modelValue":
|
|
275
|
+
"onUpdate:modelValue": s[2] ||= (e) => q.value = e,
|
|
278
276
|
format: $,
|
|
279
277
|
locale: L.value,
|
|
280
278
|
range: t.textRange,
|
|
@@ -295,12 +293,12 @@ var x = { class: "row" }, S = { class: "col-12" }, C = ["for", "innerHTML"], w =
|
|
|
295
293
|
"required",
|
|
296
294
|
"week-start"
|
|
297
295
|
])),
|
|
298
|
-
|
|
299
|
-
])])) :
|
|
300
|
-
t.inline ? (
|
|
296
|
+
f(n.$slots, "input-append", { slotScope: "props" })
|
|
297
|
+
])])) : i("", !0),
|
|
298
|
+
t.inline ? (u(), a("div", k, [o("div", A, [(u(), r(p(M.value), {
|
|
301
299
|
uid: `${t.id}-inline`,
|
|
302
300
|
modelValue: q.value,
|
|
303
|
-
"onUpdate:modelValue":
|
|
301
|
+
"onUpdate:modelValue": s[3] ||= (e) => q.value = e,
|
|
304
302
|
locale: L.value,
|
|
305
303
|
cancelText: "abbrechen",
|
|
306
304
|
selectText: "auswählen",
|
|
@@ -331,7 +329,7 @@ var x = { class: "row" }, S = { class: "col-12" }, C = ["for", "innerHTML"], w =
|
|
|
331
329
|
"read-only",
|
|
332
330
|
"required",
|
|
333
331
|
"week-start"
|
|
334
|
-
]))])])) :
|
|
332
|
+
]))])])) : i("", !0)
|
|
335
333
|
]));
|
|
336
334
|
}
|
|
337
335
|
});
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
|
|
3
|
-
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
4
|
-
get: ((e) => i[e]).bind(null, d),
|
|
5
|
-
enumerable: !(s = n(i, d)) || s.enumerable
|
|
6
|
-
});
|
|
7
|
-
return e;
|
|
8
|
-
}, c = (n, r, o) => (o = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
|
|
9
|
-
value: n,
|
|
10
|
-
enumerable: !0
|
|
11
|
-
}) : o, n));
|
|
12
|
-
//#endregion
|
|
13
|
-
export { o as __commonJSMin, c as __toESM };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
2
|
-
function e(e) {
|
|
3
|
-
return (t = {}) => {
|
|
4
|
-
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
5
|
-
return e.formats[n] || e.formats[e.defaultWidth];
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { e as buildFormatLongFn };
|
package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
2
|
-
function e(e) {
|
|
3
|
-
return (t, n) => {
|
|
4
|
-
let r = n?.context ? String(n.context) : "standalone", i;
|
|
5
|
-
if (r === "formatting" && e.formattingValues) {
|
|
6
|
-
let t = e.defaultFormattingWidth || e.defaultWidth, r = n?.width ? String(n.width) : t;
|
|
7
|
-
i = e.formattingValues[r] || e.formattingValues[t];
|
|
8
|
-
} else {
|
|
9
|
-
let t = e.defaultWidth, r = n?.width ? String(n.width) : e.defaultWidth;
|
|
10
|
-
i = e.values[r] || e.values[t];
|
|
11
|
-
}
|
|
12
|
-
let a = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
13
|
-
return i[a];
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { e as buildLocalizeFn };
|
package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
2
|
-
function e(e) {
|
|
3
|
-
return (r, i = {}) => {
|
|
4
|
-
let a = i.width, o = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], s = r.match(o);
|
|
5
|
-
if (!s) return null;
|
|
6
|
-
let c = s[0], l = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(l) ? n(l, (e) => e.test(c)) : t(l, (e) => e.test(c)), d;
|
|
7
|
-
d = e.valueCallback ? e.valueCallback(u) : u, d = i.valueCallback ? i.valueCallback(d) : d;
|
|
8
|
-
let f = r.slice(c.length);
|
|
9
|
-
return {
|
|
10
|
-
value: d,
|
|
11
|
-
rest: f
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
function t(e, t) {
|
|
16
|
-
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
17
|
-
}
|
|
18
|
-
function n(e, t) {
|
|
19
|
-
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
|
-
export { e as buildMatchFn };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
2
|
-
function e(e) {
|
|
3
|
-
return (t, n = {}) => {
|
|
4
|
-
let r = t.match(e.matchPattern);
|
|
5
|
-
if (!r) return null;
|
|
6
|
-
let i = r[0], a = t.match(e.parsePattern);
|
|
7
|
-
if (!a) return null;
|
|
8
|
-
let o = e.valueCallback ? e.valueCallback(a[0]) : a[0];
|
|
9
|
-
o = n.valueCallback ? n.valueCallback(o) : o;
|
|
10
|
-
let s = t.slice(i.length);
|
|
11
|
-
return {
|
|
12
|
-
value: o,
|
|
13
|
-
rest: s
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { e as buildMatchPatternFn };
|