@stonecrop/aform 0.2.55 → 0.2.57
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/aform.js +219 -219
- package/dist/aform.js.map +1 -1
- package/dist/aform.umd.cjs +2 -2
- package/dist/aform.umd.cjs.map +1 -1
- package/dist/assets/index.css +1 -1
- package/package.json +6 -6
- package/src/components/AForm.vue +108 -1
- package/src/components/form/ACheckbox.vue +33 -5
- package/src/components/form/ADatePicker.vue +51 -3
- package/src/components/form/ADropdown.vue +1 -1
- package/src/components/form/AFileAttach.vue +53 -4
- package/src/components/form/ANumericInput.vue +4 -4
- package/src/components/form/ATextInput.vue +4 -4
- package/src/components/utilities/Login.vue +110 -8
- package/src/theme/fields.css +5 -5
- package/src/theme/adate.css +0 -49
package/dist/aform.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as A, mergeModels as H, useModel as P, openBlock as m, createElementBlock as h, createElementVNode as i, toDisplayString as k, withDirectives as D, vModelCheckbox as ye, vShow as x, resolveComponent as be, createBlock as N, withCtx as _e, useTemplateRef as ce, ref as v, onMounted as
|
|
2
|
-
import './assets/index.css';const Le = { class: "
|
|
1
|
+
import { defineComponent as A, mergeModels as H, useModel as P, openBlock as m, createElementBlock as h, createElementVNode as i, toDisplayString as k, withDirectives as D, vModelCheckbox as ye, vShow as x, resolveComponent as be, createBlock as N, withCtx as _e, useTemplateRef as ce, ref as v, onMounted as z, onUnmounted as ke, normalizeClass as K, withKeys as G, vModelText as F, Fragment as B, renderList as q, watch as U, onBeforeUnmount as we, computed as V, unref as I, getCurrentScope as de, onScopeDispose as fe, getCurrentInstance as De, nextTick as Ae, withModifiers as Me, resolveDynamicComponent as Ee, mergeProps as Ce, createTextVNode as me, createCommentVNode as j, renderSlot as Te, createVNode as $e, readonly as Se } from "vue";
|
|
2
|
+
import './assets/index.css';const Le = { class: "aform_form-element" }, Ve = ["for"], Ie = { class: "aform_checkbox-container aform_input-field" }, He = ["id", "readonly", "required"], Pe = ["innerHTML"], xe = /* @__PURE__ */ A({
|
|
3
3
|
__name: "ACheckbox",
|
|
4
4
|
props: /* @__PURE__ */ H({
|
|
5
5
|
label: {},
|
|
@@ -17,30 +17,35 @@ import './assets/index.css';const Le = { class: "aform__form-element" }, Ve = ["
|
|
|
17
17
|
const t = P(e, "modelValue");
|
|
18
18
|
return (n, o) => (m(), h("div", Le, [
|
|
19
19
|
i("label", {
|
|
20
|
-
class: "
|
|
20
|
+
class: "aform_field-label",
|
|
21
21
|
for: n.uuid
|
|
22
22
|
}, k(n.label), 9, Ve),
|
|
23
|
-
i("span",
|
|
23
|
+
i("span", Ie, [
|
|
24
24
|
D(i("input", {
|
|
25
25
|
"onUpdate:modelValue": o[0] || (o[0] = (l) => t.value = l),
|
|
26
26
|
type: "checkbox",
|
|
27
27
|
id: n.uuid,
|
|
28
|
-
class: "
|
|
28
|
+
class: "aform_checkbox",
|
|
29
29
|
readonly: n.readonly,
|
|
30
30
|
required: n.required
|
|
31
|
-
}, null, 8,
|
|
31
|
+
}, null, 8, He), [
|
|
32
32
|
[ye, t.value]
|
|
33
33
|
])
|
|
34
34
|
]),
|
|
35
35
|
D(i("p", {
|
|
36
|
-
class: "
|
|
36
|
+
class: "aform_error",
|
|
37
37
|
innerHTML: n.validation.errorMessage
|
|
38
|
-
}, null, 8,
|
|
38
|
+
}, null, 8, Pe), [
|
|
39
39
|
[x, n.validation.errorMessage]
|
|
40
40
|
])
|
|
41
41
|
]));
|
|
42
42
|
}
|
|
43
|
-
}),
|
|
43
|
+
}), E = (e, t) => {
|
|
44
|
+
const n = e.__vccOpts || e;
|
|
45
|
+
for (const [o, l] of t)
|
|
46
|
+
n[o] = l;
|
|
47
|
+
return n;
|
|
48
|
+
}, Fe = /* @__PURE__ */ E(xe, [["__scopeId", "data-v-f0ba8b6d"]]), Be = /* @__PURE__ */ A({
|
|
44
49
|
__name: "AComboBox",
|
|
45
50
|
props: ["event", "cellData", "tableID"],
|
|
46
51
|
setup(e) {
|
|
@@ -62,7 +67,7 @@ import './assets/index.css';const Le = { class: "aform__form-element" }, Ve = ["
|
|
|
62
67
|
}, 8, ["event", "cellData"]);
|
|
63
68
|
};
|
|
64
69
|
}
|
|
65
|
-
}),
|
|
70
|
+
}), qe = ["id", "disabled", "required", "value"], Re = ["for"], Oe = ["innerHTML"], Ue = /* @__PURE__ */ A({
|
|
66
71
|
__name: "ADate",
|
|
67
72
|
props: /* @__PURE__ */ H({
|
|
68
73
|
label: { default: "Date" },
|
|
@@ -89,27 +94,22 @@ import './assets/index.css';const Le = { class: "aform__form-element" }, Ve = ["
|
|
|
89
94
|
required: l.required,
|
|
90
95
|
value: t.value,
|
|
91
96
|
onClick: o
|
|
92
|
-
}, null, 8,
|
|
93
|
-
i("label", { for: l.uuid }, k(l.label), 9,
|
|
97
|
+
}, null, 8, qe),
|
|
98
|
+
i("label", { for: l.uuid }, k(l.label), 9, Re),
|
|
94
99
|
D(i("p", {
|
|
95
100
|
innerHTML: l.validation.errorMessage
|
|
96
|
-
}, null, 8,
|
|
101
|
+
}, null, 8, Oe), [
|
|
97
102
|
[x, l.validation.errorMessage]
|
|
98
103
|
])
|
|
99
104
|
]));
|
|
100
105
|
}
|
|
101
|
-
}),
|
|
102
|
-
const n = e.__vccOpts || e;
|
|
103
|
-
for (const [o, l] of t)
|
|
104
|
-
n[o] = l;
|
|
105
|
-
return n;
|
|
106
|
-
}, Ue = /* @__PURE__ */ z(Oe, [["__scopeId", "data-v-ec9dd0e4"]]), We = { class: "input-wrapper" }, Ye = {
|
|
106
|
+
}), We = /* @__PURE__ */ E(Ue, [["__scopeId", "data-v-ec9dd0e4"]]), Ye = { class: "input-wrapper" }, Ge = {
|
|
107
107
|
id: "autocomplete-results",
|
|
108
108
|
class: "autocomplete-results"
|
|
109
|
-
},
|
|
109
|
+
}, Ke = {
|
|
110
110
|
key: 0,
|
|
111
111
|
class: "loading autocomplete-result"
|
|
112
|
-
},
|
|
112
|
+
}, ze = ["onClick"], Ne = /* @__PURE__ */ A({
|
|
113
113
|
__name: "ADropdown",
|
|
114
114
|
props: /* @__PURE__ */ H({
|
|
115
115
|
label: {},
|
|
@@ -122,7 +122,7 @@ import './assets/index.css';const Le = { class: "aform__form-element" }, Ve = ["
|
|
|
122
122
|
emits: /* @__PURE__ */ H(["filterChanged"], ["update:modelValue"]),
|
|
123
123
|
setup(e, { emit: t }) {
|
|
124
124
|
const n = t, o = v(e.items), l = P(e, "modelValue"), a = v(!1), s = v(0), r = v(!1);
|
|
125
|
-
|
|
125
|
+
z(() => {
|
|
126
126
|
document.addEventListener("click", f), u();
|
|
127
127
|
}), ke(() => {
|
|
128
128
|
document.removeEventListener("click", f);
|
|
@@ -141,33 +141,33 @@ import './assets/index.css';const Le = { class: "aform__form-element" }, Ve = ["
|
|
|
141
141
|
s.value < o.value.length && (s.value = s.value + 1);
|
|
142
142
|
}, w = () => {
|
|
143
143
|
s.value > 0 && (s.value = s.value - 1);
|
|
144
|
-
},
|
|
144
|
+
}, $ = () => {
|
|
145
145
|
l.value = o.value[s.value], p(), s.value = 0;
|
|
146
146
|
};
|
|
147
|
-
return (b,
|
|
148
|
-
class:
|
|
147
|
+
return (b, S) => (m(), h("div", {
|
|
148
|
+
class: K(["autocomplete", { isOpen: r.value }])
|
|
149
149
|
}, [
|
|
150
|
-
i("div",
|
|
150
|
+
i("div", Ye, [
|
|
151
151
|
D(i("input", {
|
|
152
152
|
ref: "mopInput",
|
|
153
153
|
type: "text",
|
|
154
154
|
onInput: d,
|
|
155
155
|
onFocus: d,
|
|
156
|
-
"onUpdate:modelValue":
|
|
156
|
+
"onUpdate:modelValue": S[0] || (S[0] = (g) => l.value = g),
|
|
157
157
|
onKeydown: [
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
G(y, ["down"]),
|
|
159
|
+
G(w, ["up"]),
|
|
160
|
+
G($, ["enter"])
|
|
161
161
|
]
|
|
162
162
|
}, null, 544), [
|
|
163
|
-
[
|
|
163
|
+
[F, l.value]
|
|
164
164
|
]),
|
|
165
|
-
D(i("ul",
|
|
166
|
-
a.value ? (m(), h("li",
|
|
165
|
+
D(i("ul", Ge, [
|
|
166
|
+
a.value ? (m(), h("li", Ke, "Loading results...")) : (m(!0), h(B, { key: 1 }, q(o.value, (g, _) => (m(), h("li", {
|
|
167
167
|
key: _,
|
|
168
168
|
onClick: (M) => c(g),
|
|
169
|
-
class:
|
|
170
|
-
}, k(g), 11,
|
|
169
|
+
class: K(["autocomplete-result", { "is-active": _ === s.value }])
|
|
170
|
+
}, k(g), 11, ze))), 128))
|
|
171
171
|
], 512), [
|
|
172
172
|
[x, r.value]
|
|
173
173
|
]),
|
|
@@ -175,35 +175,35 @@ import './assets/index.css';const Le = { class: "aform__form-element" }, Ve = ["
|
|
|
175
175
|
])
|
|
176
176
|
], 2));
|
|
177
177
|
}
|
|
178
|
-
});
|
|
178
|
+
}), je = /* @__PURE__ */ E(Ne, [["__scopeId", "data-v-4e77785f"]]);
|
|
179
179
|
function pe(e) {
|
|
180
180
|
return de() ? (fe(e), !0) : !1;
|
|
181
181
|
}
|
|
182
182
|
function J(e) {
|
|
183
|
-
return typeof e == "function" ? e() :
|
|
183
|
+
return typeof e == "function" ? e() : I(e);
|
|
184
184
|
}
|
|
185
|
-
const
|
|
185
|
+
const Je = typeof window < "u" && typeof document < "u";
|
|
186
186
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
187
|
-
const
|
|
188
|
-
},
|
|
189
|
-
function
|
|
187
|
+
const Qe = (e) => e != null, Xe = Object.prototype.toString, Ze = (e) => Xe.call(e) === "[object Object]", et = () => {
|
|
188
|
+
}, W = Je ? window : void 0;
|
|
189
|
+
function R(e) {
|
|
190
190
|
var t;
|
|
191
191
|
const n = J(e);
|
|
192
192
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function O(...e) {
|
|
195
195
|
let t, n, o, l;
|
|
196
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, l] = e, t =
|
|
197
|
-
return
|
|
196
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, l] = e, t = W) : [t, n, o, l] = e, !t)
|
|
197
|
+
return et;
|
|
198
198
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
199
199
|
const a = [], s = () => {
|
|
200
200
|
a.forEach((d) => d()), a.length = 0;
|
|
201
|
-
}, r = (d, f, p, y) => (d.addEventListener(f, p, y), () => d.removeEventListener(f, p, y)), c =
|
|
202
|
-
() => [
|
|
201
|
+
}, r = (d, f, p, y) => (d.addEventListener(f, p, y), () => d.removeEventListener(f, p, y)), c = U(
|
|
202
|
+
() => [R(t), J(l)],
|
|
203
203
|
([d, f]) => {
|
|
204
204
|
if (s(), !d)
|
|
205
205
|
return;
|
|
206
|
-
const p =
|
|
206
|
+
const p = Ze(f) ? { ...f } : f;
|
|
207
207
|
a.push(
|
|
208
208
|
...n.flatMap((y) => o.map((w) => r(d, y, w, p)))
|
|
209
209
|
);
|
|
@@ -214,25 +214,25 @@ function R(...e) {
|
|
|
214
214
|
};
|
|
215
215
|
return pe(u), u;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function tt() {
|
|
218
218
|
const e = v(!1), t = De();
|
|
219
|
-
return t &&
|
|
219
|
+
return t && z(() => {
|
|
220
220
|
e.value = !0;
|
|
221
221
|
}, t), e;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
const t =
|
|
225
|
-
return
|
|
223
|
+
function nt(e) {
|
|
224
|
+
const t = tt();
|
|
225
|
+
return V(() => (t.value, !!e()));
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
const { window: o =
|
|
227
|
+
function ot(e, t, n = {}) {
|
|
228
|
+
const { window: o = W, ...l } = n;
|
|
229
229
|
let a;
|
|
230
|
-
const s =
|
|
230
|
+
const s = nt(() => o && "MutationObserver" in o), r = () => {
|
|
231
231
|
a && (a.disconnect(), a = void 0);
|
|
232
|
-
}, c =
|
|
233
|
-
const p = J(e), y = (Array.isArray(p) ? p : [p]).map(
|
|
232
|
+
}, c = V(() => {
|
|
233
|
+
const p = J(e), y = (Array.isArray(p) ? p : [p]).map(R).filter(Qe);
|
|
234
234
|
return new Set(y);
|
|
235
|
-
}), u =
|
|
235
|
+
}), u = U(
|
|
236
236
|
() => c.value,
|
|
237
237
|
(p) => {
|
|
238
238
|
r(), s.value && p.size && (a = new MutationObserver(t), p.forEach((y) => a.observe(y, l)));
|
|
@@ -247,10 +247,10 @@ function tt(e, t, n = {}) {
|
|
|
247
247
|
takeRecords: d
|
|
248
248
|
};
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function lt(e = {}) {
|
|
251
251
|
var t;
|
|
252
252
|
const {
|
|
253
|
-
window: n =
|
|
253
|
+
window: n = W,
|
|
254
254
|
deep: o = !0,
|
|
255
255
|
triggerOnRemoval: l = !1
|
|
256
256
|
} = e, a = (t = e.document) != null ? t : n == null ? void 0 : n.document, s = () => {
|
|
@@ -263,9 +263,9 @@ function nt(e = {}) {
|
|
|
263
263
|
}, r = v(), c = () => {
|
|
264
264
|
r.value = s();
|
|
265
265
|
};
|
|
266
|
-
return n && (
|
|
266
|
+
return n && (O(n, "blur", (u) => {
|
|
267
267
|
u.relatedTarget === null && c();
|
|
268
|
-
}, !0),
|
|
268
|
+
}, !0), O(n, "focus", c, !0)), l && ot(a, (u) => {
|
|
269
269
|
u.filter((d) => d.removedNodes.length).map((d) => Array.from(d.removedNodes)).flat().forEach((d) => {
|
|
270
270
|
d === r.value && c();
|
|
271
271
|
});
|
|
@@ -274,15 +274,15 @@ function nt(e = {}) {
|
|
|
274
274
|
subtree: !0
|
|
275
275
|
}), c(), r;
|
|
276
276
|
}
|
|
277
|
-
const
|
|
278
|
-
function
|
|
279
|
-
const { window: n =
|
|
280
|
-
return !n || !s.value ? { focused: a } : (
|
|
277
|
+
const at = "focusin", st = "focusout";
|
|
278
|
+
function rt(e, t = {}) {
|
|
279
|
+
const { window: n = W } = t, o = V(() => R(e)), l = v(!1), a = V(() => l.value), s = lt(t);
|
|
280
|
+
return !n || !s.value ? { focused: a } : (O(o, at, () => l.value = !0), O(o, st, () => l.value = !1), { focused: a });
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function it(e, { window: t = W, scrollTarget: n } = {}) {
|
|
283
283
|
const o = v(!1), l = () => {
|
|
284
284
|
if (!t) return;
|
|
285
|
-
const a = t.document, s =
|
|
285
|
+
const a = t.document, s = R(e);
|
|
286
286
|
if (!s)
|
|
287
287
|
o.value = !1;
|
|
288
288
|
else {
|
|
@@ -290,19 +290,19 @@ function st(e, { window: t = U, scrollTarget: n } = {}) {
|
|
|
290
290
|
o.value = r.top <= (t.innerHeight || a.documentElement.clientHeight) && r.left <= (t.innerWidth || a.documentElement.clientWidth) && r.bottom >= 0 && r.right >= 0;
|
|
291
291
|
}
|
|
292
292
|
};
|
|
293
|
-
return
|
|
294
|
-
() =>
|
|
293
|
+
return U(
|
|
294
|
+
() => R(e),
|
|
295
295
|
() => l(),
|
|
296
296
|
{ immediate: !0, flush: "post" }
|
|
297
|
-
), t &&
|
|
297
|
+
), t && O(n || t, "scroll", l, {
|
|
298
298
|
capture: !1,
|
|
299
299
|
passive: !0
|
|
300
300
|
}), o;
|
|
301
301
|
}
|
|
302
|
-
const
|
|
303
|
-
let t =
|
|
302
|
+
const C = (e) => {
|
|
303
|
+
let t = it(e).value;
|
|
304
304
|
return t = t && e.offsetHeight > 0, t;
|
|
305
|
-
},
|
|
305
|
+
}, T = (e) => e.tabIndex >= 0, te = (e) => {
|
|
306
306
|
const t = e.target;
|
|
307
307
|
return Q(t);
|
|
308
308
|
}, Q = (e) => {
|
|
@@ -318,8 +318,8 @@ const E = (e) => {
|
|
|
318
318
|
const o = e.previousElementSibling;
|
|
319
319
|
o && (n = o);
|
|
320
320
|
}
|
|
321
|
-
return n && (!
|
|
322
|
-
},
|
|
321
|
+
return n && (!T(n) || !C(n)) ? Q(n) : n;
|
|
322
|
+
}, ut = (e) => {
|
|
323
323
|
var t;
|
|
324
324
|
const n = e.target;
|
|
325
325
|
let o;
|
|
@@ -336,7 +336,7 @@ const E = (e) => {
|
|
|
336
336
|
a && (o = a);
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
return o && (!
|
|
339
|
+
return o && (!T(o) || !C(o)) ? X(o) : o;
|
|
340
340
|
}, ne = (e) => {
|
|
341
341
|
const t = e.target;
|
|
342
342
|
return X(t);
|
|
@@ -353,8 +353,8 @@ const E = (e) => {
|
|
|
353
353
|
const o = e.nextElementSibling;
|
|
354
354
|
o && (n = o);
|
|
355
355
|
}
|
|
356
|
-
return n && (!
|
|
357
|
-
},
|
|
356
|
+
return n && (!T(n) || !C(n)) ? X(n) : n;
|
|
357
|
+
}, ct = (e) => {
|
|
358
358
|
var t;
|
|
359
359
|
const n = e.target;
|
|
360
360
|
let o;
|
|
@@ -371,7 +371,7 @@ const E = (e) => {
|
|
|
371
371
|
a && (o = a);
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
return o && (!
|
|
374
|
+
return o && (!T(o) || !C(o)) ? Q(o) : o;
|
|
375
375
|
}, oe = (e) => {
|
|
376
376
|
const t = e.target;
|
|
377
377
|
return Z(t);
|
|
@@ -384,7 +384,7 @@ const E = (e) => {
|
|
|
384
384
|
const o = (t = e.parentElement) == null ? void 0 : t.previousElementSibling;
|
|
385
385
|
n = o == null ? void 0 : o.lastElementChild;
|
|
386
386
|
}
|
|
387
|
-
return n && (!
|
|
387
|
+
return n && (!T(n) || !C(n)) ? Z(n) : n;
|
|
388
388
|
}, le = (e) => {
|
|
389
389
|
const t = e.target;
|
|
390
390
|
return ee(t);
|
|
@@ -397,14 +397,14 @@ const E = (e) => {
|
|
|
397
397
|
const o = (t = e.parentElement) == null ? void 0 : t.nextElementSibling;
|
|
398
398
|
n = o == null ? void 0 : o.firstElementChild;
|
|
399
399
|
}
|
|
400
|
-
return n && (!
|
|
400
|
+
return n && (!T(n) || !C(n)) ? ee(n) : n;
|
|
401
401
|
}, ae = (e) => {
|
|
402
402
|
const t = e.target.parentElement.firstElementChild;
|
|
403
|
-
return t && (!
|
|
403
|
+
return t && (!T(t) || !C(t)) ? ee(t) : t;
|
|
404
404
|
}, se = (e) => {
|
|
405
405
|
const t = e.target.parentElement.lastElementChild;
|
|
406
|
-
return t && (!
|
|
407
|
-
},
|
|
406
|
+
return t && (!T(t) || !C(t)) ? Z(t) : t;
|
|
407
|
+
}, Y = ["alt", "control", "shift", "meta"], dt = {
|
|
408
408
|
ArrowUp: "up",
|
|
409
409
|
ArrowDown: "down",
|
|
410
410
|
ArrowLeft: "left",
|
|
@@ -427,11 +427,11 @@ const E = (e) => {
|
|
|
427
427
|
e.preventDefault(), e.stopPropagation(), t && t.focus();
|
|
428
428
|
},
|
|
429
429
|
"keydown.control.up": (e) => {
|
|
430
|
-
const t =
|
|
430
|
+
const t = ut(e);
|
|
431
431
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
432
432
|
},
|
|
433
433
|
"keydown.control.down": (e) => {
|
|
434
|
-
const t =
|
|
434
|
+
const t = ct(e);
|
|
435
435
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
436
436
|
},
|
|
437
437
|
"keydown.control.left": (e) => {
|
|
@@ -473,7 +473,7 @@ const E = (e) => {
|
|
|
473
473
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
|
-
function
|
|
476
|
+
function ft(e) {
|
|
477
477
|
const t = (s) => {
|
|
478
478
|
let r = null;
|
|
479
479
|
return s.parent && (typeof s.parent == "string" ? r = document.querySelector(s.parent) : s.parent instanceof HTMLElement ? r = s.parent : r = s.parent.value), r;
|
|
@@ -496,36 +496,36 @@ function ct(e) {
|
|
|
496
496
|
}, o = (s) => {
|
|
497
497
|
const r = t(s);
|
|
498
498
|
let c = [];
|
|
499
|
-
return s.selectors ? c = n(s) : r && (c = Array.from(r.children).filter((u) =>
|
|
499
|
+
return s.selectors ? c = n(s) : r && (c = Array.from(r.children).filter((u) => T(u) && C(u))), c;
|
|
500
500
|
}, l = (s) => (r) => {
|
|
501
|
-
const c =
|
|
502
|
-
if (
|
|
501
|
+
const c = dt[r.key] || r.key.toLowerCase();
|
|
502
|
+
if (Y.includes(c)) return;
|
|
503
503
|
const u = s.handlers || ve;
|
|
504
504
|
for (const d of Object.keys(u)) {
|
|
505
505
|
const [f, ...p] = d.split(".");
|
|
506
506
|
if (f === "keydown" && p.includes(c)) {
|
|
507
|
-
const y = u[d], w = p.filter((b) =>
|
|
508
|
-
const
|
|
509
|
-
return r.getModifierState(
|
|
507
|
+
const y = u[d], w = p.filter((b) => Y.includes(b)), $ = Y.some((b) => {
|
|
508
|
+
const S = b.charAt(0).toUpperCase() + b.slice(1);
|
|
509
|
+
return r.getModifierState(S);
|
|
510
510
|
});
|
|
511
511
|
if (w.length > 0) {
|
|
512
|
-
if (
|
|
513
|
-
for (const b of
|
|
512
|
+
if ($) {
|
|
513
|
+
for (const b of Y)
|
|
514
514
|
if (p.includes(b)) {
|
|
515
|
-
const
|
|
516
|
-
r.getModifierState(
|
|
515
|
+
const S = b.charAt(0).toUpperCase() + b.slice(1);
|
|
516
|
+
r.getModifierState(S) && y(r);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
} else
|
|
520
|
-
|
|
520
|
+
$ || y(r);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
}, a = [];
|
|
524
|
-
|
|
524
|
+
z(() => {
|
|
525
525
|
for (const s of e) {
|
|
526
526
|
const r = t(s), c = o(s), u = l(s), d = r ? [r] : c;
|
|
527
527
|
for (const f of d) {
|
|
528
|
-
const { focused: p } =
|
|
528
|
+
const { focused: p } = rt(v(f)), y = U(p, (w) => {
|
|
529
529
|
w ? f.addEventListener("keydown", u) : f.removeEventListener("keydown", u);
|
|
530
530
|
});
|
|
531
531
|
a.push(y);
|
|
@@ -536,14 +536,14 @@ function ct(e) {
|
|
|
536
536
|
s();
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
|
-
const
|
|
539
|
+
const mt = {
|
|
540
540
|
class: "adatepicker",
|
|
541
541
|
tabindex: "0",
|
|
542
542
|
ref: "datepicker"
|
|
543
|
-
},
|
|
543
|
+
}, pt = {
|
|
544
544
|
colspan: "5",
|
|
545
545
|
tabindex: -1
|
|
546
|
-
},
|
|
546
|
+
}, vt = ["onClick", "onKeydown"], gt = 6, re = 7, ht = /* @__PURE__ */ A({
|
|
547
547
|
__name: "ADatePicker",
|
|
548
548
|
props: {
|
|
549
549
|
modelValue: { default: /* @__PURE__ */ new Date() },
|
|
@@ -552,7 +552,7 @@ const dt = {
|
|
|
552
552
|
emits: ["update:modelValue"],
|
|
553
553
|
setup(e) {
|
|
554
554
|
const t = P(e, "modelValue"), n = v(new Date(t.value)), o = v(n.value.getMonth()), l = v(n.value.getFullYear()), a = v([]), s = ce("datepicker");
|
|
555
|
-
|
|
555
|
+
z(async () => {
|
|
556
556
|
r(), await Ae();
|
|
557
557
|
const g = document.getElementsByClassName("selectedDate");
|
|
558
558
|
if (g.length > 0)
|
|
@@ -565,10 +565,10 @@ const dt = {
|
|
|
565
565
|
const r = () => {
|
|
566
566
|
a.value = [];
|
|
567
567
|
const g = new Date(l.value, o.value, 1), _ = g.getDay(), M = g.setDate(g.getDate() - _);
|
|
568
|
-
for (const
|
|
569
|
-
a.value.push(M +
|
|
568
|
+
for (const L of Array(43).keys())
|
|
569
|
+
a.value.push(M + L * 864e5);
|
|
570
570
|
};
|
|
571
|
-
|
|
571
|
+
U([o, l], r);
|
|
572
572
|
const c = () => l.value -= 1, u = () => l.value += 1, d = () => {
|
|
573
573
|
o.value == 0 ? (o.value = 11, c()) : o.value -= 1;
|
|
574
574
|
}, f = () => {
|
|
@@ -577,13 +577,13 @@ const dt = {
|
|
|
577
577
|
const _ = /* @__PURE__ */ new Date();
|
|
578
578
|
if (o.value === _.getMonth())
|
|
579
579
|
return _.toDateString() === new Date(g).toDateString();
|
|
580
|
-
}, y = (g) => new Date(g).toDateString() === new Date(n.value).toDateString(), w = (g, _) => (g - 1) * re + _,
|
|
580
|
+
}, y = (g) => new Date(g).toDateString() === new Date(n.value).toDateString(), w = (g, _) => (g - 1) * re + _, $ = (g, _) => a.value[w(g, _)], b = (g) => {
|
|
581
581
|
t.value = n.value = new Date(a.value[g]);
|
|
582
|
-
},
|
|
582
|
+
}, S = V(() => new Date(l.value, o.value, 1).toLocaleDateString(void 0, {
|
|
583
583
|
year: "numeric",
|
|
584
584
|
month: "long"
|
|
585
585
|
}));
|
|
586
|
-
return
|
|
586
|
+
return ft([
|
|
587
587
|
{
|
|
588
588
|
parent: s,
|
|
589
589
|
selectors: "td",
|
|
@@ -600,7 +600,7 @@ const dt = {
|
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
-
]), (g, _) => (m(), h("div",
|
|
603
|
+
]), (g, _) => (m(), h("div", mt, [
|
|
604
604
|
i("table", null, [
|
|
605
605
|
i("tr", null, [
|
|
606
606
|
i("td", {
|
|
@@ -608,7 +608,7 @@ const dt = {
|
|
|
608
608
|
onClick: d,
|
|
609
609
|
tabindex: -1
|
|
610
610
|
}, "<"),
|
|
611
|
-
i("th",
|
|
611
|
+
i("th", pt, k(S.value), 1),
|
|
612
612
|
i("td", {
|
|
613
613
|
id: "next-month-btn",
|
|
614
614
|
onClick: f,
|
|
@@ -624,36 +624,36 @@ const dt = {
|
|
|
624
624
|
i("td", null, "S"),
|
|
625
625
|
i("td", null, "S")
|
|
626
626
|
], -1)),
|
|
627
|
-
(m(), h(
|
|
628
|
-
(m(), h(
|
|
627
|
+
(m(), h(B, null, q(gt, (M) => i("tr", { key: M }, [
|
|
628
|
+
(m(), h(B, null, q(re, (L) => i("td", {
|
|
629
629
|
ref_for: !0,
|
|
630
630
|
ref: "celldate",
|
|
631
|
-
key: w(M,
|
|
631
|
+
key: w(M, L),
|
|
632
632
|
contenteditable: !1,
|
|
633
633
|
spellcheck: !1,
|
|
634
634
|
tabindex: 0,
|
|
635
|
-
onClick: Me((he) => b(w(M,
|
|
636
|
-
onKeydown:
|
|
637
|
-
class:
|
|
638
|
-
todaysDate: p(
|
|
639
|
-
selectedDate: y(
|
|
635
|
+
onClick: Me((he) => b(w(M, L)), ["prevent", "stop"]),
|
|
636
|
+
onKeydown: G((he) => b(w(M, L)), ["enter"]),
|
|
637
|
+
class: K({
|
|
638
|
+
todaysDate: p($(M, L)),
|
|
639
|
+
selectedDate: y($(M, L))
|
|
640
640
|
})
|
|
641
|
-
}, k(new Date(
|
|
641
|
+
}, k(new Date($(M, L)).getDate()), 43, vt)), 64))
|
|
642
642
|
])), 64))
|
|
643
643
|
])
|
|
644
644
|
], 512));
|
|
645
645
|
}
|
|
646
|
-
}),
|
|
646
|
+
}), yt = /* @__PURE__ */ E(ht, [["__scopeId", "data-v-a73ce0ff"]]), bt = /* @__PURE__ */ A({
|
|
647
647
|
__name: "CollapseButton",
|
|
648
648
|
props: {
|
|
649
649
|
collapsed: { type: Boolean }
|
|
650
650
|
},
|
|
651
651
|
setup(e) {
|
|
652
652
|
return (t, n) => (m(), h("button", {
|
|
653
|
-
class:
|
|
653
|
+
class: K(["collapse-button", t.collapsed ? "rotated" : "unrotated"])
|
|
654
654
|
}, "×", 2));
|
|
655
655
|
}
|
|
656
|
-
}),
|
|
656
|
+
}), _t = /* @__PURE__ */ E(bt, [["__scopeId", "data-v-6f1c1b45"]]), kt = { class: "aform" }, wt = /* @__PURE__ */ A({
|
|
657
657
|
__name: "AForm",
|
|
658
658
|
props: {
|
|
659
659
|
modelValue: {},
|
|
@@ -667,8 +667,8 @@ const dt = {
|
|
|
667
667
|
for (const [c, u] of Object.entries(s))
|
|
668
668
|
["component", "fieldtype"].includes(c) || (r[c] = u), c === "rows" && u && u.length === 0 && (r.rows = o.value[s.fieldname]);
|
|
669
669
|
return r;
|
|
670
|
-
}, a =
|
|
671
|
-
get: () => e.modelValue.map((s, r) =>
|
|
670
|
+
}, a = V({
|
|
671
|
+
get: () => e.modelValue.map((s, r) => V({
|
|
672
672
|
get() {
|
|
673
673
|
return s.value;
|
|
674
674
|
},
|
|
@@ -679,8 +679,8 @@ const dt = {
|
|
|
679
679
|
set: () => {
|
|
680
680
|
}
|
|
681
681
|
});
|
|
682
|
-
return (s, r) => (m(), h("form",
|
|
683
|
-
(m(!0), h(
|
|
682
|
+
return (s, r) => (m(), h("form", kt, [
|
|
683
|
+
(m(!0), h(B, null, q(s.modelValue, (c, u) => (m(), N(Ee(c.component), Ce({
|
|
684
684
|
key: u,
|
|
685
685
|
schema: c,
|
|
686
686
|
modelValue: a.value[u].value,
|
|
@@ -691,7 +691,7 @@ const dt = {
|
|
|
691
691
|
}, l(c)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
|
|
692
692
|
]));
|
|
693
693
|
}
|
|
694
|
-
}), ge = /* @__PURE__ */
|
|
694
|
+
}), ge = /* @__PURE__ */ E(wt, [["__scopeId", "data-v-d9ce3008"]]), Dt = /* @__PURE__ */ A({
|
|
695
695
|
__name: "AFieldset",
|
|
696
696
|
props: {
|
|
697
697
|
schema: {},
|
|
@@ -709,7 +709,7 @@ const dt = {
|
|
|
709
709
|
onSubmit: l
|
|
710
710
|
}, [
|
|
711
711
|
me(k(a.label) + " ", 1),
|
|
712
|
-
a.collapsible ? (m(), N(
|
|
712
|
+
a.collapsible ? (m(), N(_t, {
|
|
713
713
|
key: 0,
|
|
714
714
|
collapsed: t.value
|
|
715
715
|
}, null, 8, ["collapsed"])) : j("", !0)
|
|
@@ -725,8 +725,8 @@ const dt = {
|
|
|
725
725
|
], !0)
|
|
726
726
|
]));
|
|
727
727
|
}
|
|
728
|
-
}),
|
|
729
|
-
function
|
|
728
|
+
}), At = /* @__PURE__ */ E(Dt, [["__scopeId", "data-v-df65d1bf"]]);
|
|
729
|
+
function Mt(e) {
|
|
730
730
|
return de() ? (fe(e), !0) : !1;
|
|
731
731
|
}
|
|
732
732
|
function ie() {
|
|
@@ -737,7 +737,7 @@ function ie() {
|
|
|
737
737
|
on: (l) => {
|
|
738
738
|
e.add(l);
|
|
739
739
|
const a = () => t(l);
|
|
740
|
-
return
|
|
740
|
+
return Mt(a), {
|
|
741
741
|
off: a
|
|
742
742
|
};
|
|
743
743
|
},
|
|
@@ -745,17 +745,17 @@ function ie() {
|
|
|
745
745
|
trigger: (...l) => Promise.all(Array.from(e).map((a) => a(...l)))
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
|
-
const
|
|
748
|
+
const Et = typeof window < "u" && typeof document < "u";
|
|
749
749
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
750
|
-
const
|
|
750
|
+
const Ct = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Tt = Et ? window.document : void 0, $t = {
|
|
751
751
|
multiple: !0,
|
|
752
752
|
accept: "*",
|
|
753
753
|
reset: !1,
|
|
754
754
|
directory: !1
|
|
755
755
|
};
|
|
756
|
-
function
|
|
756
|
+
function St(e = {}) {
|
|
757
757
|
const {
|
|
758
|
-
document: t =
|
|
758
|
+
document: t = Tt
|
|
759
759
|
} = e, n = v(null), { on: o, trigger: l } = ie(), { on: a, trigger: s } = ie();
|
|
760
760
|
let r;
|
|
761
761
|
t && (r = t.createElement("input"), r.type = "file", r.onchange = (d) => {
|
|
@@ -770,11 +770,11 @@ function Ct(e = {}) {
|
|
|
770
770
|
if (!r)
|
|
771
771
|
return;
|
|
772
772
|
const f = {
|
|
773
|
-
|
|
773
|
+
...$t,
|
|
774
774
|
...e,
|
|
775
775
|
...d
|
|
776
776
|
};
|
|
777
|
-
r.multiple = f.multiple, r.accept = f.accept, r.webkitdirectory = f.directory,
|
|
777
|
+
r.multiple = f.multiple, r.accept = f.accept, r.webkitdirectory = f.directory, Ct(f, "capture") && (r.capture = f.capture), f.reset && c(), r.click();
|
|
778
778
|
};
|
|
779
779
|
return {
|
|
780
780
|
files: Se(n),
|
|
@@ -784,40 +784,40 @@ function Ct(e = {}) {
|
|
|
784
784
|
onChange: o
|
|
785
785
|
};
|
|
786
786
|
}
|
|
787
|
-
const
|
|
787
|
+
const Lt = { class: "aform_form-element aform_file-attach aform__grid--full" }, Vt = {
|
|
788
788
|
key: 0,
|
|
789
|
-
class: "
|
|
790
|
-
},
|
|
789
|
+
class: "aform_file-attach-feedback"
|
|
790
|
+
}, It = ["disabled"], Ht = /* @__PURE__ */ A({
|
|
791
791
|
__name: "AFileAttach",
|
|
792
792
|
props: {
|
|
793
793
|
label: {}
|
|
794
794
|
},
|
|
795
795
|
setup(e) {
|
|
796
|
-
const { files: t, open: n, reset: o, onChange: l } =
|
|
797
|
-
return l((s) => s), (s, r) => (m(), h("div",
|
|
798
|
-
|
|
796
|
+
const { files: t, open: n, reset: o, onChange: l } = St(), a = V(() => `${t.value.length} ${t.value.length === 1 ? "file" : "files"}`);
|
|
797
|
+
return l((s) => s), (s, r) => (m(), h("div", Lt, [
|
|
798
|
+
I(t) ? (m(), h("div", Vt, [
|
|
799
799
|
i("p", null, [
|
|
800
800
|
r[2] || (r[2] = me(" You have selected: ")),
|
|
801
801
|
i("b", null, k(a.value), 1)
|
|
802
802
|
]),
|
|
803
|
-
(m(!0), h(
|
|
803
|
+
(m(!0), h(B, null, q(I(t), (c) => (m(), h("li", {
|
|
804
804
|
key: c.name
|
|
805
805
|
}, k(c.name), 1))), 128))
|
|
806
806
|
])) : j("", !0),
|
|
807
807
|
i("button", {
|
|
808
808
|
type: "button",
|
|
809
|
-
onClick: r[0] || (r[0] = (c) =>
|
|
810
|
-
class: "
|
|
809
|
+
onClick: r[0] || (r[0] = (c) => I(n)()),
|
|
810
|
+
class: "aform_form-btn"
|
|
811
811
|
}, k(s.label), 1),
|
|
812
812
|
i("button", {
|
|
813
813
|
type: "button",
|
|
814
|
-
disabled: !
|
|
815
|
-
onClick: r[1] || (r[1] = (c) =>
|
|
816
|
-
class: "
|
|
817
|
-
}, "Reset", 8,
|
|
814
|
+
disabled: !I(t),
|
|
815
|
+
onClick: r[1] || (r[1] = (c) => I(o)()),
|
|
816
|
+
class: "aform_form-btn"
|
|
817
|
+
}, "Reset", 8, It)
|
|
818
818
|
]));
|
|
819
819
|
}
|
|
820
|
-
}),
|
|
820
|
+
}), Pt = /* @__PURE__ */ E(Ht, [["__scopeId", "data-v-0b3a11cc"]]), xt = { class: "aform_form-element" }, Ft = ["id", "disabled", "required"], Bt = ["for"], qt = ["innerHTML"], Rt = /* @__PURE__ */ A({
|
|
821
821
|
__name: "ANumericInput",
|
|
822
822
|
props: /* @__PURE__ */ H({
|
|
823
823
|
label: {},
|
|
@@ -833,25 +833,25 @@ const Tt = { class: "aform__form-element aform__file-attach aform__grid--full" }
|
|
|
833
833
|
emits: ["update:modelValue"],
|
|
834
834
|
setup(e) {
|
|
835
835
|
const t = P(e, "modelValue");
|
|
836
|
-
return (n, o) => (m(), h("div",
|
|
837
|
-
i("label", {
|
|
838
|
-
class: "aform__field-label",
|
|
839
|
-
for: n.uuid
|
|
840
|
-
}, k(n.label), 9, Ht),
|
|
836
|
+
return (n, o) => (m(), h("div", xt, [
|
|
841
837
|
D(i("input", {
|
|
842
|
-
class: "
|
|
838
|
+
class: "aform_input-field",
|
|
843
839
|
"onUpdate:modelValue": o[0] || (o[0] = (l) => t.value = l),
|
|
844
840
|
type: "number",
|
|
845
841
|
id: n.uuid,
|
|
846
842
|
disabled: n.readonly,
|
|
847
843
|
required: n.required
|
|
848
|
-
}, null, 8,
|
|
849
|
-
[
|
|
844
|
+
}, null, 8, Ft), [
|
|
845
|
+
[F, t.value]
|
|
850
846
|
]),
|
|
847
|
+
i("label", {
|
|
848
|
+
class: "aform_field-label",
|
|
849
|
+
for: n.uuid
|
|
850
|
+
}, k(n.label), 9, Bt),
|
|
851
851
|
D(i("p", {
|
|
852
|
-
class: "
|
|
852
|
+
class: "aform_error",
|
|
853
853
|
innerHTML: n.validation.errorMessage
|
|
854
|
-
}, null, 8,
|
|
854
|
+
}, null, 8, qt), [
|
|
855
855
|
[x, n.validation.errorMessage]
|
|
856
856
|
])
|
|
857
857
|
]));
|
|
@@ -864,17 +864,17 @@ const Tt = { class: "aform__form-element aform__file-attach aform__grid--full" }
|
|
|
864
864
|
phone: "(###) ### - ####",
|
|
865
865
|
card: "#### #### #### ####"
|
|
866
866
|
};
|
|
867
|
-
function
|
|
867
|
+
function Ot(e) {
|
|
868
868
|
try {
|
|
869
869
|
return Function(`"use strict";return (${e})`)();
|
|
870
870
|
} catch {
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
|
-
function
|
|
873
|
+
function Ut(e) {
|
|
874
874
|
var n;
|
|
875
875
|
let t = e.value;
|
|
876
876
|
if (t) {
|
|
877
|
-
const o =
|
|
877
|
+
const o = Ot(t);
|
|
878
878
|
if (o) {
|
|
879
879
|
const l = e.instance.locale;
|
|
880
880
|
t = o(l);
|
|
@@ -885,14 +885,14 @@ function Bt(e) {
|
|
|
885
885
|
}
|
|
886
886
|
return t;
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function Wt(e, t) {
|
|
889
889
|
let n = e;
|
|
890
890
|
const o = [t, "/", "-", "(", ")", " "];
|
|
891
891
|
for (const l of o)
|
|
892
892
|
n = n.replaceAll(l, "");
|
|
893
893
|
return n;
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function Yt(e, t, n) {
|
|
896
896
|
let o = t;
|
|
897
897
|
for (const l of e) {
|
|
898
898
|
const a = o.indexOf(n);
|
|
@@ -903,17 +903,17 @@ function Rt(e, t, n) {
|
|
|
903
903
|
}
|
|
904
904
|
return o.slice(0, t.length);
|
|
905
905
|
}
|
|
906
|
-
function
|
|
907
|
-
const n =
|
|
906
|
+
function Gt(e, t) {
|
|
907
|
+
const n = Ut(t);
|
|
908
908
|
if (!n) return;
|
|
909
|
-
const o = "#", l = e.value, a =
|
|
909
|
+
const o = "#", l = e.value, a = Wt(l, o);
|
|
910
910
|
if (a) {
|
|
911
|
-
const s =
|
|
911
|
+
const s = Yt(a, n, o);
|
|
912
912
|
t.instance.maskFilled && (t.instance.maskFilled = !s.includes(o)), e.value = s;
|
|
913
913
|
} else
|
|
914
914
|
e.value = n;
|
|
915
915
|
}
|
|
916
|
-
const
|
|
916
|
+
const Kt = { class: "aform_form-element" }, zt = ["id", "disabled", "maxlength", "required"], Nt = ["for"], jt = ["innerHTML"], Jt = /* @__PURE__ */ A({
|
|
917
917
|
__name: "ATextInput",
|
|
918
918
|
props: /* @__PURE__ */ H({
|
|
919
919
|
label: {},
|
|
@@ -929,34 +929,34 @@ const Ut = { class: "aform__form-element" }, Wt = ["for"], Yt = ["id", "disabled
|
|
|
929
929
|
emits: ["update:modelValue"],
|
|
930
930
|
setup(e) {
|
|
931
931
|
const t = v(!0), n = P(e, "modelValue");
|
|
932
|
-
return (o, l) => (m(), h("div",
|
|
933
|
-
i("label", {
|
|
934
|
-
class: "aform__field-label",
|
|
935
|
-
for: o.uuid
|
|
936
|
-
}, k(o.label), 9, Wt),
|
|
932
|
+
return (o, l) => (m(), h("div", Kt, [
|
|
937
933
|
D(i("input", {
|
|
938
|
-
class: "
|
|
934
|
+
class: "aform_input-field",
|
|
939
935
|
"onUpdate:modelValue": l[0] || (l[0] = (a) => n.value = a),
|
|
940
936
|
id: o.uuid,
|
|
941
937
|
disabled: o.readonly,
|
|
942
938
|
maxlength: o.mask ? t.value && o.mask.length : void 0,
|
|
943
939
|
required: o.required
|
|
944
|
-
}, null, 8,
|
|
945
|
-
[
|
|
946
|
-
[
|
|
940
|
+
}, null, 8, zt), [
|
|
941
|
+
[F, n.value],
|
|
942
|
+
[I(Gt), o.mask]
|
|
947
943
|
]),
|
|
944
|
+
i("label", {
|
|
945
|
+
class: "aform_field-label",
|
|
946
|
+
for: o.uuid
|
|
947
|
+
}, k(o.label), 9, Nt),
|
|
948
948
|
D(i("p", {
|
|
949
|
-
class: "
|
|
949
|
+
class: "aform_error",
|
|
950
950
|
innerHTML: o.validation.errorMessage
|
|
951
|
-
}, null, 8,
|
|
951
|
+
}, null, 8, jt), [
|
|
952
952
|
[x, o.validation.errorMessage]
|
|
953
953
|
])
|
|
954
954
|
]));
|
|
955
955
|
}
|
|
956
|
-
}),
|
|
956
|
+
}), Qt = { class: "login-container" }, Xt = { class: "account-container" }, Zt = { class: "account-header" }, en = { id: "account-title" }, tn = { id: "account-subtitle" }, nn = { class: "login-form-container" }, on = { class: "login-form-email aform_form-element" }, ln = ["disabled"], an = { class: "login-form-password aform_form-element" }, sn = ["disabled"], rn = ["disabled"], un = {
|
|
957
957
|
key: 0,
|
|
958
958
|
class: "material-symbols-outlined loading-icon"
|
|
959
|
-
},
|
|
959
|
+
}, cn = /* @__PURE__ */ A({
|
|
960
960
|
__name: "Login",
|
|
961
961
|
props: {
|
|
962
962
|
headerTitle: { default: "Login" },
|
|
@@ -972,24 +972,24 @@ const Ut = { class: "aform__form-element" }, Wt = ["for"], Yt = ["id", "disabled
|
|
|
972
972
|
}
|
|
973
973
|
a.value = !1, n("loginSuccess");
|
|
974
974
|
}
|
|
975
|
-
return (c, u) => (m(), h("div",
|
|
975
|
+
return (c, u) => (m(), h("div", Qt, [
|
|
976
976
|
i("div", null, [
|
|
977
|
-
i("div",
|
|
978
|
-
i("div",
|
|
979
|
-
i("h1",
|
|
980
|
-
i("p",
|
|
977
|
+
i("div", Xt, [
|
|
978
|
+
i("div", Zt, [
|
|
979
|
+
i("h1", en, k(c.headerTitle), 1),
|
|
980
|
+
i("p", tn, k(c.headerSubtitle), 1)
|
|
981
981
|
]),
|
|
982
982
|
i("form", { onSubmit: r }, [
|
|
983
|
-
i("div",
|
|
984
|
-
i("div",
|
|
983
|
+
i("div", nn, [
|
|
984
|
+
i("div", on, [
|
|
985
985
|
u[2] || (u[2] = i("label", {
|
|
986
986
|
id: "login-email",
|
|
987
987
|
for: "email",
|
|
988
|
-
class: "
|
|
988
|
+
class: "aform_field-label"
|
|
989
989
|
}, "Email", -1)),
|
|
990
990
|
D(i("input", {
|
|
991
991
|
id: "email",
|
|
992
|
-
class: "
|
|
992
|
+
class: "aform_input-field",
|
|
993
993
|
name: "email",
|
|
994
994
|
placeholder: "name@example.com",
|
|
995
995
|
type: "email",
|
|
@@ -998,25 +998,25 @@ const Ut = { class: "aform__form-element" }, Wt = ["for"], Yt = ["id", "disabled
|
|
|
998
998
|
"auto-complete": "email",
|
|
999
999
|
"auto-correct": "off",
|
|
1000
1000
|
disabled: a.value
|
|
1001
|
-
}, null, 8,
|
|
1002
|
-
[
|
|
1001
|
+
}, null, 8, ln), [
|
|
1002
|
+
[F, o.value]
|
|
1003
1003
|
])
|
|
1004
1004
|
]),
|
|
1005
|
-
i("div",
|
|
1005
|
+
i("div", an, [
|
|
1006
1006
|
u[3] || (u[3] = i("label", {
|
|
1007
1007
|
id: "login-password",
|
|
1008
1008
|
for: "password",
|
|
1009
|
-
class: "
|
|
1009
|
+
class: "aform_field-label"
|
|
1010
1010
|
}, "Password", -1)),
|
|
1011
1011
|
D(i("input", {
|
|
1012
1012
|
id: "password",
|
|
1013
|
-
class: "
|
|
1013
|
+
class: "aform_input-field",
|
|
1014
1014
|
name: "password",
|
|
1015
1015
|
type: "password",
|
|
1016
1016
|
"onUpdate:modelValue": u[1] || (u[1] = (d) => l.value = d),
|
|
1017
1017
|
disabled: a.value
|
|
1018
|
-
}, null, 8,
|
|
1019
|
-
[
|
|
1018
|
+
}, null, 8, sn), [
|
|
1019
|
+
[F, l.value]
|
|
1020
1020
|
])
|
|
1021
1021
|
]),
|
|
1022
1022
|
i("button", {
|
|
@@ -1024,9 +1024,9 @@ const Ut = { class: "aform__form-element" }, Wt = ["for"], Yt = ["id", "disabled
|
|
|
1024
1024
|
onClick: r,
|
|
1025
1025
|
disabled: a.value || !o.value || !l.value
|
|
1026
1026
|
}, [
|
|
1027
|
-
a.value ? (m(), h("span",
|
|
1027
|
+
a.value ? (m(), h("span", un, "progress_activity")) : j("", !0),
|
|
1028
1028
|
u[4] || (u[4] = i("span", { id: "login-form-button" }, "Login", -1))
|
|
1029
|
-
], 8,
|
|
1029
|
+
], 8, rn)
|
|
1030
1030
|
])
|
|
1031
1031
|
], 32),
|
|
1032
1032
|
u[5] || (u[5] = i("button", { class: "btn" }, [
|
|
@@ -1036,22 +1036,22 @@ const Ut = { class: "aform__form-element" }, Wt = ["for"], Yt = ["id", "disabled
|
|
|
1036
1036
|
])
|
|
1037
1037
|
]));
|
|
1038
1038
|
}
|
|
1039
|
-
});
|
|
1040
|
-
function
|
|
1041
|
-
e.component("ACheckbox",
|
|
1039
|
+
}), fn = /* @__PURE__ */ E(cn, [["__scopeId", "data-v-6cbd3add"]]);
|
|
1040
|
+
function mn(e) {
|
|
1041
|
+
e.component("ACheckbox", Fe), e.component("ACombobox", Be), e.component("ADate", We), e.component("ADropdown", je), e.component("ADatePicker", yt), e.component("AFieldset", At), e.component("AFileAttach", Pt), e.component("AForm", ge), e.component("ANumericInput", Rt), e.component("ATextInput", Jt);
|
|
1042
1042
|
}
|
|
1043
1043
|
export {
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1044
|
+
Fe as ACheckbox,
|
|
1045
|
+
Be as AComboBox,
|
|
1046
|
+
We as ADate,
|
|
1047
|
+
yt as ADatePicker,
|
|
1048
|
+
je as ADropdown,
|
|
1049
|
+
At as AFieldset,
|
|
1050
|
+
Pt as AFileAttach,
|
|
1051
1051
|
ge as AForm,
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1052
|
+
Rt as ANumericInput,
|
|
1053
|
+
Jt as ATextInput,
|
|
1054
|
+
fn as Login,
|
|
1055
|
+
mn as install
|
|
1056
1056
|
};
|
|
1057
1057
|
//# sourceMappingURL=aform.js.map
|