@stonecrop/aform 0.18.0 → 0.20.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/aform.d.ts +13 -0
- package/dist/aform.js +495 -480
- package/dist/aform.js.map +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/src/types/index.d.ts +12 -0
- package/dist/src/types/index.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/components/form/ADatePicker.vue +20 -1
- package/src/components/form/AFormLink.vue +42 -25
- package/src/types/index.ts +13 -0
package/dist/aform.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { install as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { vOnClickOutside as
|
|
4
|
-
import { onClickOutside as
|
|
5
|
-
import './assets/index.css';function
|
|
1
|
+
import { install as Le } from "@stonecrop/atable";
|
|
2
|
+
import { defineComponent as V, computed as A, useModel as G, openBlock as u, createElementBlock as m, Fragment as L, createElementVNode as a, toDisplayString as g, withDirectives as p, vModelCheckbox as qe, vShow as P, mergeModels as Q, useId as Fe, ref as I, inject as re, watch as Z, normalizeClass as O, withKeys as _, withModifiers as R, vModelText as Y, createCommentVNode as B, renderList as j, renderSlot as fe, createTextVNode as ne, unref as J, createVNode as oe, withCtx as _e, useTemplateRef as le, onMounted as we, nextTick as Ce, reactive as ve, vModelSelect as Be, provide as Re, createBlock as ee, watchEffect as Ve, resolveDynamicComponent as $e, mergeProps as Ne } from "vue";
|
|
3
|
+
import { vOnClickOutside as ye } from "@vueuse/components";
|
|
4
|
+
import { onClickOutside as De, useFileDialog as Ue } from "@vueuse/core";
|
|
5
|
+
import './assets/index.css';function ce(e) {
|
|
6
6
|
return Function(`"use strict"; return (${e})`)();
|
|
7
7
|
}
|
|
8
|
-
const He = { class: "aform_form-element" },
|
|
8
|
+
const He = { class: "aform_form-element" }, Ee = { class: "aform_field-label" }, Ke = { class: "aform_display-value" }, Pe = ["for"], Qe = { class: "aform_checkbox-container aform_input-field" }, Ye = ["id", "disabled", "required"], Ge = ["innerHTML"], ze = /* @__PURE__ */ V({
|
|
9
9
|
__name: "ACheckbox",
|
|
10
|
-
props: /* @__PURE__ */
|
|
10
|
+
props: /* @__PURE__ */ Q({
|
|
11
11
|
schema: {},
|
|
12
12
|
label: {},
|
|
13
13
|
selectRange: { type: Boolean },
|
|
@@ -26,14 +26,14 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
26
26
|
const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue");
|
|
27
27
|
return (c, t) => (u(), m("div", He, [
|
|
28
28
|
e.mode === "display" ? (u(), m(L, { key: 0 }, [
|
|
29
|
-
a("label",
|
|
30
|
-
a("span",
|
|
29
|
+
a("label", Ee, g(e.label), 1),
|
|
30
|
+
a("span", Ke, g(n.value ? "✓" : "✗"), 1)
|
|
31
31
|
], 64)) : (u(), m(L, { key: 1 }, [
|
|
32
32
|
a("label", {
|
|
33
33
|
class: "aform_field-label",
|
|
34
34
|
for: e.uuid
|
|
35
|
-
}, g(e.label), 9,
|
|
36
|
-
a("span",
|
|
35
|
+
}, g(e.label), 9, Pe),
|
|
36
|
+
a("span", Qe, [
|
|
37
37
|
p(a("input", {
|
|
38
38
|
id: e.uuid,
|
|
39
39
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => n.value = d),
|
|
@@ -41,36 +41,36 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
41
41
|
class: "aform_checkbox",
|
|
42
42
|
disabled: e.mode === "read",
|
|
43
43
|
required: e.required
|
|
44
|
-
}, null, 8,
|
|
45
|
-
[
|
|
44
|
+
}, null, 8, Ye), [
|
|
45
|
+
[qe, n.value]
|
|
46
46
|
])
|
|
47
47
|
]),
|
|
48
48
|
p(a("p", {
|
|
49
49
|
class: "aform_error",
|
|
50
50
|
innerHTML: s.value
|
|
51
|
-
}, null, 8,
|
|
52
|
-
[
|
|
51
|
+
}, null, 8, Ge), [
|
|
52
|
+
[P, s.value]
|
|
53
53
|
])
|
|
54
54
|
], 64))
|
|
55
55
|
]));
|
|
56
56
|
}
|
|
57
|
-
}),
|
|
57
|
+
}), H = (e, s) => {
|
|
58
58
|
const n = e.__vccOpts || e;
|
|
59
59
|
for (const [c, t] of s)
|
|
60
60
|
n[c] = t;
|
|
61
61
|
return n;
|
|
62
|
-
},
|
|
62
|
+
}, We = /* @__PURE__ */ H(ze, [["__scopeId", "data-v-ca06741d"]]), Je = {
|
|
63
63
|
key: 0,
|
|
64
64
|
class: "aform_display-value"
|
|
65
|
-
},
|
|
65
|
+
}, Xe = { class: "aform_form-link-wrapper" }, Ze = { class: "input-group" }, Oe = ["placeholder", "aria-label", "required", "aria-expanded", "aria-controls", "aria-activedescendant", "disabled", "onKeydown"], je = ["onKeydown"], et = ["aria-label"], tt = {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "autocomplete-result loading"
|
|
68
|
-
},
|
|
68
|
+
}, at = ["id", "aria-selected", "onMousedown"], lt = {
|
|
69
69
|
key: 0,
|
|
70
70
|
class: "aform_field-label"
|
|
71
|
-
},
|
|
71
|
+
}, nt = /* @__PURE__ */ V({
|
|
72
72
|
__name: "AFormLink",
|
|
73
|
-
props: /* @__PURE__ */
|
|
73
|
+
props: /* @__PURE__ */ Q({
|
|
74
74
|
schema: {},
|
|
75
75
|
label: {},
|
|
76
76
|
selectRange: { type: Boolean },
|
|
@@ -98,76 +98,89 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
98
98
|
}),
|
|
99
99
|
emits: ["update:modelValue"],
|
|
100
100
|
setup(e) {
|
|
101
|
-
const s = `${e.uuid ?? `aform-link-${
|
|
102
|
-
const D = n.value
|
|
103
|
-
return D
|
|
104
|
-
}),
|
|
105
|
-
|
|
106
|
-
()
|
|
107
|
-
(D)
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
101
|
+
const s = `${e.uuid ?? `aform-link-${Fe()}`}-listbox`, n = G(e, "modelValue"), c = A(() => T(n.value) !== void 0), t = A(() => {
|
|
102
|
+
const D = T(n.value);
|
|
103
|
+
return D === void 0 ? "—" : e.formatter ? e.formatter(l(n.value)) : f(n.value) ?? D;
|
|
104
|
+
}), d = I(c.value ? t.value : ""), y = I(!1), k = I(!1), v = I([]), h = I(null), x = re("aformLinkNavigator", null), $ = re("aformLinkResolver", null);
|
|
105
|
+
function T(D) {
|
|
106
|
+
if (D == null) return;
|
|
107
|
+
if (typeof D == "string") return D === "" ? void 0 : D;
|
|
108
|
+
if (typeof D == "number") return String(D);
|
|
109
|
+
const C = D.id;
|
|
110
|
+
if (!(C == null || C === ""))
|
|
111
|
+
return String(C);
|
|
112
|
+
}
|
|
113
|
+
function f(D) {
|
|
114
|
+
if (D == null || typeof D != "object") return;
|
|
115
|
+
const C = D.displayText;
|
|
116
|
+
return typeof C == "string" || typeof C == "number" ? String(C) : void 0;
|
|
117
|
+
}
|
|
118
|
+
function l(D) {
|
|
119
|
+
if (D != null && typeof D == "object") return D;
|
|
120
|
+
const C = T(D);
|
|
121
|
+
return C !== void 0 ? { id: C } : { id: "" };
|
|
122
|
+
}
|
|
123
|
+
Z(
|
|
124
|
+
() => T(n.value),
|
|
113
125
|
async (D) => {
|
|
114
|
-
if (!(!D || n.value
|
|
126
|
+
if (!(!D || f(n.value)))
|
|
115
127
|
try {
|
|
116
|
-
let
|
|
117
|
-
if (e.filterFunction ? (
|
|
128
|
+
let C, E;
|
|
129
|
+
if (e.filterFunction ? (C = (await (typeof e.filterFunction == "string" ? ce(e.filterFunction) : e.filterFunction)(String(D))).find((ue) => String(ue.id) === String(D)), E = C?.displayText, E === void 0 && console.warn(
|
|
118
130
|
`[AFormLink] filterFunction returned no matching result for id "${D}". The function must return an item whose \`id\` exactly matches the search string.`
|
|
119
|
-
)) : $ && e.doctype && (
|
|
120
|
-
const
|
|
121
|
-
d.value = e.formatter ? e.formatter(
|
|
131
|
+
)) : $ && e.doctype && (E = await $(e.doctype, D.toString()) ?? void 0), E) {
|
|
132
|
+
const X = { ...l(n.value), ...C, id: D, displayText: E };
|
|
133
|
+
d.value = e.formatter ? e.formatter(X) : E, n.value = X;
|
|
122
134
|
}
|
|
123
135
|
} catch {
|
|
124
136
|
}
|
|
125
137
|
},
|
|
126
138
|
{ immediate: !0 }
|
|
127
139
|
);
|
|
128
|
-
const
|
|
129
|
-
|
|
140
|
+
const o = () => {
|
|
141
|
+
const D = T(n.value);
|
|
142
|
+
x && e.doctype && D !== void 0 ? x.navigate(e.doctype, D) : x && !e.doctype && console.warn(
|
|
130
143
|
"[AFormLink] Navigation requested but `doctype` prop is missing. Add `options` (or `doctype`) to the Link field definition to enable navigation."
|
|
131
144
|
);
|
|
132
|
-
},
|
|
145
|
+
}, i = async (D) => {
|
|
133
146
|
if (!(!e.filterFunction || e.mode === "read")) {
|
|
134
147
|
h.value = null, y.value = !0, e.isAsync && (k.value = !0);
|
|
135
148
|
try {
|
|
136
|
-
const
|
|
137
|
-
v.value = await
|
|
149
|
+
const C = typeof e.filterFunction == "string" ? ce(e.filterFunction) : e.filterFunction;
|
|
150
|
+
v.value = await C(D) ?? [];
|
|
138
151
|
} catch {
|
|
139
152
|
v.value = [];
|
|
140
153
|
} finally {
|
|
141
154
|
k.value = !1;
|
|
142
155
|
}
|
|
143
156
|
}
|
|
144
|
-
},
|
|
157
|
+
}, w = () => {
|
|
145
158
|
y.value = !1, h.value = null, d.value = c.value ? t.value : "";
|
|
146
|
-
},
|
|
147
|
-
y.value &&
|
|
148
|
-
},
|
|
159
|
+
}, r = () => {
|
|
160
|
+
y.value && w();
|
|
161
|
+
}, F = () => i(d.value), b = () => i(d.value), q = (D) => {
|
|
149
162
|
n.value = D, d.value = e.formatter ? e.formatter(D) : D.displayText ?? String(D.id), y.value = !1, h.value = null;
|
|
150
|
-
},
|
|
163
|
+
}, N = () => {
|
|
151
164
|
const D = v.value.length;
|
|
152
165
|
D && (h.value = h.value === null ? 0 : (h.value + 1) % D);
|
|
153
|
-
},
|
|
166
|
+
}, W = () => {
|
|
154
167
|
v.value.length && (h.value === null || h.value === 0 ? h.value = null : h.value -= 1);
|
|
155
|
-
},
|
|
156
|
-
h.value !== null && v.value[h.value] &&
|
|
168
|
+
}, te = () => {
|
|
169
|
+
h.value !== null && v.value[h.value] && q(v.value[h.value]);
|
|
157
170
|
};
|
|
158
|
-
return (D,
|
|
159
|
-
class:
|
|
171
|
+
return (D, C) => (u(), m("div", {
|
|
172
|
+
class: O(["aform_form-element", { "aform_form-element--embedded": e.embedded }])
|
|
160
173
|
}, [
|
|
161
|
-
e.mode === "display" ? (u(), m("span",
|
|
162
|
-
p((u(), m("div",
|
|
163
|
-
a("div",
|
|
174
|
+
e.mode === "display" ? (u(), m("span", Je, g(t.value), 1)) : (u(), m(L, { key: 1 }, [
|
|
175
|
+
p((u(), m("div", Xe, [
|
|
176
|
+
a("div", Ze, [
|
|
164
177
|
p(a("input", {
|
|
165
|
-
"onUpdate:modelValue":
|
|
178
|
+
"onUpdate:modelValue": C[0] || (C[0] = (E) => d.value = E),
|
|
166
179
|
type: "text",
|
|
167
180
|
role: "combobox",
|
|
168
181
|
autocomplete: "off",
|
|
169
182
|
"aria-autocomplete": "list",
|
|
170
|
-
class:
|
|
183
|
+
class: O(["aform_input-field", { "aform_input-field--embedded": e.embedded }]),
|
|
171
184
|
placeholder: e.placeholder,
|
|
172
185
|
"aria-label": e.ariaLabel,
|
|
173
186
|
required: e.required,
|
|
@@ -175,27 +188,27 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
175
188
|
"aria-controls": y.value ? s : void 0,
|
|
176
189
|
"aria-activedescendant": h.value === null ? void 0 : `${s}-opt-${h.value}`,
|
|
177
190
|
disabled: e.disabled || e.mode === "read",
|
|
178
|
-
onInput:
|
|
179
|
-
onFocus:
|
|
191
|
+
onInput: b,
|
|
192
|
+
onFocus: F,
|
|
180
193
|
onKeydown: [
|
|
181
|
-
_(
|
|
182
|
-
_(
|
|
183
|
-
_(
|
|
184
|
-
_(
|
|
185
|
-
_(
|
|
194
|
+
_(R(N, ["prevent"]), ["down"]),
|
|
195
|
+
_(R(W, ["prevent"]), ["up"]),
|
|
196
|
+
_(R(te, ["prevent"]), ["enter"]),
|
|
197
|
+
_(w, ["esc"]),
|
|
198
|
+
_(w, ["tab"])
|
|
186
199
|
]
|
|
187
|
-
}, null, 42,
|
|
200
|
+
}, null, 42, Oe), [
|
|
188
201
|
[Y, d.value]
|
|
189
202
|
]),
|
|
190
203
|
c.value && !e.disabled && !e.embedded ? (u(), m("button", {
|
|
191
204
|
key: 0,
|
|
192
205
|
type: "button",
|
|
193
206
|
class: "aform_form-btn",
|
|
194
|
-
onClick:
|
|
195
|
-
onKeydown: _(
|
|
207
|
+
onClick: o,
|
|
208
|
+
onKeydown: _(R(o, ["prevent"]), ["enter"])
|
|
196
209
|
}, [
|
|
197
210
|
a("span", null, g(e.icon === "chevron-right" ? "›" : "→"), 1)
|
|
198
|
-
], 40,
|
|
211
|
+
], 40, je)) : B("", !0)
|
|
199
212
|
]),
|
|
200
213
|
y.value ? (u(), m("ul", {
|
|
201
214
|
key: 0,
|
|
@@ -204,29 +217,29 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
204
217
|
role: "listbox",
|
|
205
218
|
"aria-label": e.ariaLabel
|
|
206
219
|
}, [
|
|
207
|
-
k.value ? (u(), m("li",
|
|
208
|
-
id: `${s}-opt-${
|
|
209
|
-
key: String(
|
|
220
|
+
k.value ? (u(), m("li", tt, "Loading…")) : (u(!0), m(L, { key: 1 }, j(v.value, (E, X) => (u(), m("li", {
|
|
221
|
+
id: `${s}-opt-${X}`,
|
|
222
|
+
key: String(E.id),
|
|
210
223
|
role: "option",
|
|
211
|
-
"aria-selected":
|
|
212
|
-
class:
|
|
213
|
-
onMousedown:
|
|
224
|
+
"aria-selected": X === h.value,
|
|
225
|
+
class: O(["autocomplete-result", { "is-active": X === h.value }]),
|
|
226
|
+
onMousedown: R((ie) => q(E), ["prevent"])
|
|
214
227
|
}, [
|
|
215
|
-
|
|
216
|
-
|
|
228
|
+
fe(D.$slots, "option", { option: E }, () => [
|
|
229
|
+
ne(g(E.displayText ?? String(E.id)), 1)
|
|
217
230
|
], !0)
|
|
218
|
-
], 42,
|
|
219
|
-
], 8,
|
|
231
|
+
], 42, at))), 128))
|
|
232
|
+
], 8, et)) : B("", !0)
|
|
220
233
|
])), [
|
|
221
|
-
[
|
|
234
|
+
[J(ye), r]
|
|
222
235
|
]),
|
|
223
|
-
e.label && !e.embedded ? (u(), m("label",
|
|
236
|
+
e.label && !e.embedded ? (u(), m("label", lt, g(e.label), 1)) : B("", !0)
|
|
224
237
|
], 64))
|
|
225
238
|
], 2));
|
|
226
239
|
}
|
|
227
|
-
}),
|
|
240
|
+
}), Me = /* @__PURE__ */ H(nt, [["__scopeId", "data-v-154d79c9"]]), ot = { class: "aform_form-element acurrency" }, st = { class: "aform_display-value" }, it = { class: "aform_field-label" }, ut = { class: "acurrency__row" }, dt = { class: "acurrency__field acurrency__field--amount" }, rt = { class: "acurrency__group" }, ct = { class: "acurrency__currency" }, mt = { class: "acurrency__amount-wrap" }, ft = ["id", "disabled", "required"], vt = ["for"], yt = { class: "acurrency__row acurrency__row--base" }, ht = { class: "acurrency__field acurrency__field--base-currency" }, bt = ["value"], gt = { class: "aform_field-label" }, $t = { class: "acurrency__field acurrency__field--base-amount" }, kt = ["value"], xt = { class: "aform_field-label" }, wt = { class: "acurrency__field acurrency__field--exchange-rate" }, Dt = ["value"], Mt = { class: "aform_field-label" }, Tt = ["innerHTML"], ke = 6, St = /* @__PURE__ */ V({
|
|
228
241
|
__name: "ACurrencyInput",
|
|
229
|
-
props: /* @__PURE__ */
|
|
242
|
+
props: /* @__PURE__ */ Q({
|
|
230
243
|
schema: {},
|
|
231
244
|
label: {},
|
|
232
245
|
selectRange: { type: Boolean },
|
|
@@ -258,8 +271,8 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
258
271
|
const s = (r) => r.symbol ?? r.displayText ?? String(r.id), n = G(e, "modelValue"), c = A(() => {
|
|
259
272
|
const r = e.options.baseCurrency ?? n.value?.baseCurrency;
|
|
260
273
|
return r ? typeof r == "string" ? { id: r } : r : { id: "" };
|
|
261
|
-
}), t =
|
|
262
|
-
|
|
274
|
+
}), t = re("aformLinkResolver", null), d = I(c.value);
|
|
275
|
+
Z(
|
|
263
276
|
c,
|
|
264
277
|
async (r) => {
|
|
265
278
|
if (!r.id || r.displayText || !t || !e.options.doctype) {
|
|
@@ -283,7 +296,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
283
296
|
return !r || String(r) === String(F) ? 1 : String(r) === String(n.value?.currency?.id) ? n.value?.exchangeRate ?? e.options.exchangeRates?.[String(r)] ?? 1 : e.options.exchangeRates?.[String(r)] ?? 1;
|
|
284
297
|
}, v = A(() => {
|
|
285
298
|
const { precision: r } = e.options;
|
|
286
|
-
return r === void 0 ?
|
|
299
|
+
return r === void 0 ? ke : Number.isInteger(r) && r >= 0 && r <= 100 ? r : ke;
|
|
287
300
|
}), h = (r) => Number(r.toFixed(v.value)), x = (r, F) => {
|
|
288
301
|
const b = k(F.id);
|
|
289
302
|
n.value = {
|
|
@@ -296,7 +309,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
296
309
|
}, $ = A({
|
|
297
310
|
get: () => n.value?.amount ?? 0,
|
|
298
311
|
set: (r) => x(r, n.value?.currency ?? { id: "" })
|
|
299
|
-
}),
|
|
312
|
+
}), T = A({
|
|
300
313
|
get: () => n.value?.currency ?? { id: "" },
|
|
301
314
|
set: (r) => x(n.value?.amount ?? 0, r)
|
|
302
315
|
}), f = /* @__PURE__ */ new Set([
|
|
@@ -329,18 +342,18 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
329
342
|
const q = r.baseCurrency.displayText ?? String(r.baseCurrency.id);
|
|
330
343
|
return `${b} (${r.baseAmount} ${q})`;
|
|
331
344
|
});
|
|
332
|
-
return (r, F) => (u(), m("div",
|
|
345
|
+
return (r, F) => (u(), m("div", ot, [
|
|
333
346
|
e.mode === "display" ? (u(), m(L, { key: 0 }, [
|
|
334
347
|
a("span", st, g(w.value), 1),
|
|
335
|
-
a("label",
|
|
348
|
+
a("label", it, g(e.label), 1)
|
|
336
349
|
], 64)) : (u(), m(L, { key: 1 }, [
|
|
337
|
-
a("div",
|
|
338
|
-
a("div",
|
|
339
|
-
a("div",
|
|
340
|
-
a("div",
|
|
341
|
-
|
|
342
|
-
modelValue:
|
|
343
|
-
"onUpdate:modelValue": F[0] || (F[0] = (b) =>
|
|
350
|
+
a("div", ut, [
|
|
351
|
+
a("div", dt, [
|
|
352
|
+
a("div", rt, [
|
|
353
|
+
a("div", ct, [
|
|
354
|
+
oe(Me, {
|
|
355
|
+
modelValue: T.value,
|
|
356
|
+
"onUpdate:modelValue": F[0] || (F[0] = (b) => T.value = b),
|
|
344
357
|
mode: e.mode,
|
|
345
358
|
embedded: "",
|
|
346
359
|
placeholder: e.currencyLabel,
|
|
@@ -351,13 +364,13 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
351
364
|
"filter-function": e.options.filterFunction,
|
|
352
365
|
"is-async": e.options.isAsync
|
|
353
366
|
}, {
|
|
354
|
-
option:
|
|
355
|
-
|
|
367
|
+
option: _e(({ option: b }) => [
|
|
368
|
+
ne(g(b.symbol ? `${b.symbol} — ` : "") + g(b.displayText ?? b.id), 1)
|
|
356
369
|
]),
|
|
357
370
|
_: 1
|
|
358
371
|
}, 8, ["modelValue", "mode", "placeholder", "aria-label", "required", "doctype", "filter-function", "is-async"])
|
|
359
372
|
]),
|
|
360
|
-
a("div",
|
|
373
|
+
a("div", mt, [
|
|
361
374
|
p(a("input", {
|
|
362
375
|
id: e.uuid,
|
|
363
376
|
"onUpdate:modelValue": F[1] || (F[1] = (b) => $.value = b),
|
|
@@ -367,7 +380,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
367
380
|
required: e.required,
|
|
368
381
|
onKeydown: l,
|
|
369
382
|
onPaste: o
|
|
370
|
-
}, null, 40,
|
|
383
|
+
}, null, 40, ft), [
|
|
371
384
|
[
|
|
372
385
|
Y,
|
|
373
386
|
$.value,
|
|
@@ -378,59 +391,59 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
378
391
|
a("label", {
|
|
379
392
|
class: "aform_field-label",
|
|
380
393
|
for: e.uuid
|
|
381
|
-
}, g(e.label), 9,
|
|
394
|
+
}, g(e.label), 9, vt)
|
|
382
395
|
])
|
|
383
396
|
])
|
|
384
397
|
])
|
|
385
398
|
]),
|
|
386
|
-
a("div",
|
|
387
|
-
a("div",
|
|
399
|
+
a("div", yt, [
|
|
400
|
+
a("div", ht, [
|
|
388
401
|
a("input", {
|
|
389
402
|
value: y.value,
|
|
390
403
|
class: "aform_input-field acurrency__base-field",
|
|
391
404
|
type: "text",
|
|
392
405
|
disabled: ""
|
|
393
|
-
}, null, 8,
|
|
394
|
-
a("label",
|
|
406
|
+
}, null, 8, bt),
|
|
407
|
+
a("label", gt, g(e.baseCurrencyLabel), 1)
|
|
395
408
|
]),
|
|
396
|
-
a("div",
|
|
409
|
+
a("div", $t, [
|
|
397
410
|
a("input", {
|
|
398
411
|
value: n.value.baseAmount,
|
|
399
412
|
class: "aform_input-field acurrency__base-field",
|
|
400
413
|
type: "number",
|
|
401
414
|
disabled: ""
|
|
402
|
-
}, null, 8,
|
|
403
|
-
a("label",
|
|
415
|
+
}, null, 8, kt),
|
|
416
|
+
a("label", xt, g(e.baseAmountLabel), 1)
|
|
404
417
|
]),
|
|
405
|
-
a("div",
|
|
418
|
+
a("div", wt, [
|
|
406
419
|
a("input", {
|
|
407
420
|
value: n.value.exchangeRate,
|
|
408
421
|
class: "aform_input-field acurrency__base-field",
|
|
409
422
|
type: "number",
|
|
410
423
|
disabled: ""
|
|
411
|
-
}, null, 8,
|
|
412
|
-
a("label",
|
|
424
|
+
}, null, 8, Dt),
|
|
425
|
+
a("label", Mt, g(e.exchangeRateLabel), 1)
|
|
413
426
|
])
|
|
414
427
|
]),
|
|
415
428
|
p(a("p", {
|
|
416
429
|
class: "aform_error",
|
|
417
430
|
innerHTML: e.validation.errorMessage
|
|
418
|
-
}, null, 8,
|
|
419
|
-
[
|
|
431
|
+
}, null, 8, Tt), [
|
|
432
|
+
[P, e.validation.errorMessage]
|
|
420
433
|
])
|
|
421
434
|
], 64))
|
|
422
435
|
]));
|
|
423
436
|
}
|
|
424
|
-
}),
|
|
437
|
+
}), It = /* @__PURE__ */ H(St, [["__scopeId", "data-v-15bec6ef"]]), At = { class: "aform_display-value" }, pt = { key: 0 }, Lt = ["innerHTML"], qt = {
|
|
425
438
|
ref: "datepicker",
|
|
426
439
|
class: "adatepicker",
|
|
427
440
|
tabindex: "0"
|
|
428
|
-
},
|
|
441
|
+
}, Ft = {
|
|
429
442
|
colspan: "5",
|
|
430
443
|
tabindex: -1
|
|
431
|
-
},
|
|
444
|
+
}, _t = { key: 0 }, Ct = { colspan: "7" }, Bt = { class: "date-input" }, Rt = ["value"], Vt = ["value"], Nt = ["onClick", "onKeydown", "onMouseover"], Ut = ["innerHTML"], Ht = 6, xe = 7, Et = /* @__PURE__ */ V({
|
|
432
445
|
__name: "ADatePicker",
|
|
433
|
-
props: /* @__PURE__ */
|
|
446
|
+
props: /* @__PURE__ */ Q({
|
|
434
447
|
schema: {},
|
|
435
448
|
label: {},
|
|
436
449
|
selectRange: { type: Boolean, default: !1 },
|
|
@@ -444,52 +457,54 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
444
457
|
modelValue: { default: () => /* @__PURE__ */ new Date() },
|
|
445
458
|
modelModifiers: {}
|
|
446
459
|
}),
|
|
447
|
-
emits: /* @__PURE__ */
|
|
460
|
+
emits: /* @__PURE__ */ Q(["get-date"], ["update:modelValue"]),
|
|
448
461
|
setup(e, { expose: s, emit: n }) {
|
|
449
|
-
const c = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), t = G(e, "modelValue"), d =
|
|
462
|
+
const c = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), t = G(e, "modelValue"), d = I(new Date(t.value)), y = I(d.value.getMonth()), k = I(d.value.getFullYear()), v = I([]), h = I(new Date(t.value)), x = I(null), $ = I(null), T = le("start-date-input"), f = le("end-date-input"), l = n, o = A(() => new Date(k.value, y.value, 1).toLocaleDateString(void 0, {
|
|
450
463
|
year: "numeric",
|
|
451
464
|
month: "long"
|
|
452
465
|
})), i = A(() => x.value != null ? r(x.value) : ""), w = A(() => $.value != null ? r($.value) : ""), r = (M) => z(M) ? M.getMonth() + 1 + "/" + M.getDate() + "/" + M.getFullYear() : "", F = (M) => {
|
|
453
|
-
const
|
|
454
|
-
return y.value !==
|
|
466
|
+
const S = /* @__PURE__ */ new Date();
|
|
467
|
+
return y.value !== S.getMonth() ? !1 : S.toDateString() === new Date(M).toDateString();
|
|
455
468
|
}, b = (M) => new Date(M).toDateString() === new Date(d.value).toDateString(), q = (M) => {
|
|
456
|
-
const
|
|
457
|
-
return z(
|
|
458
|
-
},
|
|
459
|
-
const
|
|
460
|
-
return z(
|
|
461
|
-
},
|
|
462
|
-
const
|
|
463
|
-
if (!z(
|
|
464
|
-
const
|
|
465
|
-
return
|
|
466
|
-
},
|
|
469
|
+
const S = x.value;
|
|
470
|
+
return z(S) ? new Date(M).toDateString() === S.toDateString() : !1;
|
|
471
|
+
}, N = (M) => {
|
|
472
|
+
const S = $.value;
|
|
473
|
+
return z(S) ? new Date(M).toDateString() === S.toDateString() : !1;
|
|
474
|
+
}, W = (M, S) => (M - 1) * xe + S, te = (M) => {
|
|
475
|
+
const S = x.value;
|
|
476
|
+
if (!z(S)) return !1;
|
|
477
|
+
const U = new Date(M), K = $.value, ae = z(K) ? K : new Date(h.value);
|
|
478
|
+
return U.getTime() > S.getTime() && U.getTime() < ae.getTime();
|
|
479
|
+
}, D = (M, S) => v.value[W(M, S)], C = (M) => {
|
|
467
480
|
h.value = new Date(v.value[M]);
|
|
468
|
-
},
|
|
481
|
+
}, E = (M) => {
|
|
482
|
+
M.target?.tagName !== "INPUT" && M.preventDefault();
|
|
483
|
+
}, X = () => {
|
|
469
484
|
v.value = [];
|
|
470
|
-
const M = new Date(k.value, y.value, 1),
|
|
471
|
-
for (const
|
|
472
|
-
v.value.push(
|
|
473
|
-
},
|
|
474
|
-
y.value == 0 ? (y.value = 11,
|
|
485
|
+
const M = new Date(k.value, y.value, 1), S = M.getDay(), U = M.setDate(M.getDate() - S);
|
|
486
|
+
for (const K of Array(43).keys())
|
|
487
|
+
v.value.push(U + K * 864e5);
|
|
488
|
+
}, ie = () => k.value -= 1, ue = () => k.value += 1, Ie = () => {
|
|
489
|
+
y.value == 0 ? (y.value = 11, ie()) : y.value -= 1;
|
|
475
490
|
}, Ae = () => {
|
|
476
|
-
y.value == 11 ? (y.value = 0,
|
|
477
|
-
},
|
|
478
|
-
M.key === "Enter" &&
|
|
479
|
-
},
|
|
491
|
+
y.value == 11 ? (y.value = 0, ue()) : y.value += 1;
|
|
492
|
+
}, he = (M) => {
|
|
493
|
+
M.key === "Enter" && de();
|
|
494
|
+
}, be = (M) => {
|
|
480
495
|
if (t.value = d.value = new Date(v.value[M]), e.selectRange) {
|
|
481
|
-
const
|
|
482
|
-
|
|
496
|
+
const S = x.value;
|
|
497
|
+
S == null || $.value != null ? (x.value = t.value, $.value = null) : z(S) && d.value.getTime() < S.getTime() ? ($.value = null, x.value = t.value) : $.value = t.value, T.value && (T.value.value = r(x.value) ?? ""), f.value && (f.value.value = r($.value) ?? "");
|
|
483
498
|
}
|
|
484
|
-
|
|
485
|
-
},
|
|
486
|
-
const M = x.value,
|
|
487
|
-
z(
|
|
488
|
-
}, z = (M) => M instanceof Date && !isNaN(M.getTime()),
|
|
489
|
-
if (
|
|
499
|
+
ge();
|
|
500
|
+
}, pe = () => {
|
|
501
|
+
const M = x.value, S = $.value;
|
|
502
|
+
z(S) && z(M) && S.getTime() < M.getTime() && ([x.value, $.value] = [S, M]);
|
|
503
|
+
}, z = (M) => M instanceof Date && !isNaN(M.getTime()), de = () => {
|
|
504
|
+
if (T.value?.value == "")
|
|
490
505
|
x.value = null;
|
|
491
|
-
else if (
|
|
492
|
-
const M = new Date(
|
|
506
|
+
else if (T.value) {
|
|
507
|
+
const M = new Date(T.value.value);
|
|
493
508
|
x.value = z(M) ? M : null;
|
|
494
509
|
}
|
|
495
510
|
if (f.value?.value == "")
|
|
@@ -498,75 +513,75 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
498
513
|
const M = new Date(f.value.value);
|
|
499
514
|
$.value = z(M) ? M : null;
|
|
500
515
|
}
|
|
501
|
-
z(x.value) && (z($.value) &&
|
|
502
|
-
},
|
|
516
|
+
z(x.value) && (z($.value) && pe(), d.value = x.value), ge();
|
|
517
|
+
}, ge = () => {
|
|
503
518
|
l("get-date", {
|
|
504
519
|
start: e.selectRange ? x.value : null,
|
|
505
520
|
end: e.selectRange ? $.value : null,
|
|
506
521
|
selected: d.value
|
|
507
522
|
});
|
|
508
523
|
};
|
|
509
|
-
return
|
|
510
|
-
|
|
524
|
+
return we(async () => {
|
|
525
|
+
X(), await Ce();
|
|
511
526
|
const M = document.getElementsByClassName("selectedDate");
|
|
512
527
|
if (M.length > 0)
|
|
513
528
|
M[0].focus();
|
|
514
529
|
else {
|
|
515
|
-
const
|
|
516
|
-
|
|
530
|
+
const S = document.getElementsByClassName("todaysDate");
|
|
531
|
+
S.length > 0 && S[0].focus();
|
|
517
532
|
}
|
|
518
|
-
}),
|
|
533
|
+
}), Z([y, k], X), s({ currentMonth: y, currentYear: k, selectedDate: d }), (M, S) => e.mode === "display" || e.mode === "read" ? (u(), m(L, { key: 0 }, [
|
|
519
534
|
a("span", At, g(t.value ? new Date(t.value).toLocaleDateString() : ""), 1),
|
|
520
|
-
e.label ? (u(), m("label",
|
|
535
|
+
e.label ? (u(), m("label", pt, g(e.label), 1)) : B("", !0),
|
|
521
536
|
p(a("p", {
|
|
522
537
|
class: "aform_error",
|
|
523
538
|
innerHTML: c.value
|
|
524
|
-
}, null, 8,
|
|
525
|
-
[
|
|
539
|
+
}, null, 8, Lt), [
|
|
540
|
+
[P, c.value]
|
|
526
541
|
])
|
|
527
542
|
], 64)) : (u(), m(L, { key: 1 }, [
|
|
528
|
-
a("div",
|
|
529
|
-
a("table",
|
|
543
|
+
a("div", qt, [
|
|
544
|
+
a("table", { onMousedown: E }, [
|
|
530
545
|
a("tbody", null, [
|
|
531
546
|
a("tr", null, [
|
|
532
547
|
a("td", {
|
|
533
548
|
id: "previous-month-btn",
|
|
534
549
|
tabindex: -1,
|
|
535
|
-
onClick:
|
|
550
|
+
onClick: Ie
|
|
536
551
|
}, "<"),
|
|
537
|
-
a("th",
|
|
552
|
+
a("th", Ft, g(o.value), 1),
|
|
538
553
|
a("td", {
|
|
539
554
|
id: "next-month-btn",
|
|
540
555
|
tabindex: -1,
|
|
541
556
|
onClick: Ae
|
|
542
557
|
}, ">")
|
|
543
558
|
]),
|
|
544
|
-
e.selectRange ? (u(), m("tr",
|
|
545
|
-
a("td",
|
|
546
|
-
a("div",
|
|
559
|
+
e.selectRange ? (u(), m("tr", _t, [
|
|
560
|
+
a("td", Ct, [
|
|
561
|
+
a("div", Bt, [
|
|
547
562
|
a("input", {
|
|
548
563
|
ref: "start-date-input",
|
|
549
564
|
value: i.value,
|
|
550
565
|
class: "date-input-start aform_input-field",
|
|
551
566
|
type: "text",
|
|
552
567
|
placeholder: "start date",
|
|
553
|
-
onBlur:
|
|
554
|
-
onKeydown:
|
|
555
|
-
}, null, 40,
|
|
556
|
-
|
|
568
|
+
onBlur: S[0] || (S[0] = (U) => de()),
|
|
569
|
+
onKeydown: he
|
|
570
|
+
}, null, 40, Rt),
|
|
571
|
+
S[2] || (S[2] = a("div", null, "-", -1)),
|
|
557
572
|
a("input", {
|
|
558
573
|
ref: "end-date-input",
|
|
559
574
|
value: w.value,
|
|
560
575
|
class: "date-input-end aform_input-field",
|
|
561
576
|
type: "text",
|
|
562
577
|
placeholder: "end date",
|
|
563
|
-
onBlur:
|
|
564
|
-
onKeydown:
|
|
565
|
-
}, null, 40,
|
|
578
|
+
onBlur: S[1] || (S[1] = (U) => de()),
|
|
579
|
+
onKeydown: he
|
|
580
|
+
}, null, 40, Vt)
|
|
566
581
|
])
|
|
567
582
|
])
|
|
568
|
-
])) :
|
|
569
|
-
|
|
583
|
+
])) : B("", !0),
|
|
584
|
+
S[3] || (S[3] = a("tr", { class: "days-header" }, [
|
|
570
585
|
a("td", null, "M"),
|
|
571
586
|
a("td", null, "T"),
|
|
572
587
|
a("td", null, "W"),
|
|
@@ -575,41 +590,41 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
575
590
|
a("td", null, "S"),
|
|
576
591
|
a("td", null, "S")
|
|
577
592
|
], -1)),
|
|
578
|
-
(u(), m(L, null,
|
|
579
|
-
(u(), m(L, null,
|
|
593
|
+
(u(), m(L, null, j(Ht, (U) => a("tr", { key: U }, [
|
|
594
|
+
(u(), m(L, null, j(xe, (K) => a("td", {
|
|
580
595
|
ref_for: !0,
|
|
581
596
|
ref: "celldate",
|
|
582
|
-
key:
|
|
583
|
-
class:
|
|
584
|
-
todaysDate: F(
|
|
585
|
-
selectedDate: b(
|
|
586
|
-
withinRange: e.selectRange ?
|
|
587
|
-
startDate: e.selectRange ? q(
|
|
588
|
-
endDate: e.selectRange ? D(
|
|
597
|
+
key: W(U, K),
|
|
598
|
+
class: O(["date-cell", {
|
|
599
|
+
todaysDate: F(D(U, K)),
|
|
600
|
+
selectedDate: b(D(U, K)),
|
|
601
|
+
withinRange: e.selectRange ? te(D(U, K)) : !1,
|
|
602
|
+
startDate: e.selectRange ? q(D(U, K)) : !1,
|
|
603
|
+
endDate: e.selectRange ? N(D(U, K)) : !1
|
|
589
604
|
}]),
|
|
590
605
|
contenteditable: !1,
|
|
591
606
|
spellcheck: !1,
|
|
592
607
|
tabindex: 0,
|
|
593
|
-
onClick:
|
|
594
|
-
onKeydown: _((
|
|
595
|
-
onMouseover: (
|
|
596
|
-
}, g(new Date(
|
|
608
|
+
onClick: R((ae) => be(W(U, K)), ["prevent", "stop"]),
|
|
609
|
+
onKeydown: _((ae) => be(W(U, K)), ["enter"]),
|
|
610
|
+
onMouseover: (ae) => C(W(U, K))
|
|
611
|
+
}, g(new Date(D(U, K)).getDate()), 43, Nt)), 64))
|
|
597
612
|
])), 64))
|
|
598
613
|
])
|
|
599
|
-
])
|
|
614
|
+
], 32)
|
|
600
615
|
], 512),
|
|
601
616
|
p(a("p", {
|
|
602
617
|
class: "aform_error",
|
|
603
618
|
innerHTML: c.value
|
|
604
|
-
}, null, 8,
|
|
605
|
-
[
|
|
619
|
+
}, null, 8, Ut), [
|
|
620
|
+
[P, c.value]
|
|
606
621
|
])
|
|
607
622
|
], 64));
|
|
608
623
|
}
|
|
609
|
-
}),
|
|
624
|
+
}), Te = /* @__PURE__ */ H(Et, [["__scopeId", "data-v-322c2ceb"]]), Kt = { class: "adate_time" }, Pt = { class: "adate_time_fields" }, Qt = ["onKeydown"], Yt = ["onKeydown"], Gt = {
|
|
610
625
|
key: 0,
|
|
611
626
|
class: "colon"
|
|
612
|
-
},
|
|
627
|
+
}, zt = ["onKeydown"], Wt = /* @__PURE__ */ V({
|
|
613
628
|
__name: "ADateTime",
|
|
614
629
|
props: {
|
|
615
630
|
allowMilitaryTime: { type: Boolean, default: !1 },
|
|
@@ -621,12 +636,12 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
621
636
|
},
|
|
622
637
|
emits: ["get-time"],
|
|
623
638
|
setup(e, { emit: s }) {
|
|
624
|
-
const n = s, c =
|
|
639
|
+
const n = s, c = le("meridiem-selector"), t = ve({
|
|
625
640
|
hours: String(e.defaultHours).padStart(2, "0"),
|
|
626
641
|
minutes: String(e.defaultMinutes).padStart(2, "0"),
|
|
627
642
|
seconds: String(e.defaultSeconds).padStart(2, "0")
|
|
628
|
-
}), d =
|
|
629
|
-
|
|
643
|
+
}), d = I(e.defaultMeridiem == "AM" ? "AM" : "PM");
|
|
644
|
+
we(() => {
|
|
630
645
|
k();
|
|
631
646
|
});
|
|
632
647
|
const y = () => {
|
|
@@ -656,17 +671,17 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
656
671
|
const r = Number(t.hours);
|
|
657
672
|
!e.allowMilitaryTime && r !== w && (w === 11 && r === 12 || w === 12 && r === 11) && $(), t.hours = String(x(Number(t.hours), i, o)).padStart(2, "0"), t.minutes = String(x(Number(t.minutes), 0, 59)).padStart(2, "0"), t.seconds = String(x(Number(t.seconds), 0, 59)).padStart(2, "0");
|
|
658
673
|
};
|
|
659
|
-
|
|
674
|
+
Z(
|
|
660
675
|
() => t.hours,
|
|
661
676
|
(f, l) => {
|
|
662
677
|
t.hours = Number(f) > 99 ? l : f;
|
|
663
678
|
}
|
|
664
|
-
),
|
|
679
|
+
), Z(
|
|
665
680
|
() => t.minutes,
|
|
666
681
|
(f, l) => {
|
|
667
682
|
t.minutes = Number(f) > 99 ? l : f;
|
|
668
683
|
}
|
|
669
|
-
),
|
|
684
|
+
), Z(
|
|
670
685
|
() => t.seconds,
|
|
671
686
|
(f, l) => {
|
|
672
687
|
t.seconds = Number(f) > 99 ? l : f;
|
|
@@ -674,7 +689,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
674
689
|
);
|
|
675
690
|
const x = (f, l, o) => f > o ? l : f < l ? o : f, $ = () => {
|
|
676
691
|
d.value = d.value == "PM" ? "AM" : "PM", k();
|
|
677
|
-
},
|
|
692
|
+
}, T = (f, l = !1) => {
|
|
678
693
|
f.stopPropagation(), f.preventDefault();
|
|
679
694
|
const o = f.clipboardData;
|
|
680
695
|
if (!o) return;
|
|
@@ -690,21 +705,21 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
690
705
|
w instanceof HTMLInputElement && (w.value = i, w.dispatchEvent(new Event("input")));
|
|
691
706
|
}
|
|
692
707
|
};
|
|
693
|
-
return (f, l) => (u(), m("div",
|
|
694
|
-
a("div",
|
|
708
|
+
return (f, l) => (u(), m("div", Kt, [
|
|
709
|
+
a("div", Pt, [
|
|
695
710
|
p(a("input", {
|
|
696
711
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => t.hours = o),
|
|
697
712
|
type: "text",
|
|
698
713
|
inputmode: "numeric",
|
|
699
|
-
onPaste: l[1] || (l[1] = (o) =>
|
|
714
|
+
onPaste: l[1] || (l[1] = (o) => T(o, !0)),
|
|
700
715
|
onFocus: v,
|
|
701
716
|
onBlur: y,
|
|
702
717
|
onKeydown: [
|
|
703
|
-
_(
|
|
704
|
-
l[2] || (l[2] = _(
|
|
705
|
-
l[3] || (l[3] = _(
|
|
718
|
+
_(R(y, ["prevent"]), ["enter"]),
|
|
719
|
+
l[2] || (l[2] = _(R((o) => h("hours"), ["prevent"]), ["up"])),
|
|
720
|
+
l[3] || (l[3] = _(R((o) => h("hours", -1), ["prevent"]), ["down"]))
|
|
706
721
|
]
|
|
707
|
-
}, null, 40,
|
|
722
|
+
}, null, 40, Qt), [
|
|
708
723
|
[Y, t.hours]
|
|
709
724
|
]),
|
|
710
725
|
l[12] || (l[12] = a("span", { class: "colon" }, ":", -1)),
|
|
@@ -712,35 +727,35 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
712
727
|
"onUpdate:modelValue": l[4] || (l[4] = (o) => t.minutes = o),
|
|
713
728
|
type: "text",
|
|
714
729
|
inputmode: "numeric",
|
|
715
|
-
onPaste:
|
|
730
|
+
onPaste: T,
|
|
716
731
|
onFocus: v,
|
|
717
732
|
onBlur: y,
|
|
718
733
|
onKeydown: [
|
|
719
|
-
_(
|
|
720
|
-
l[5] || (l[5] = _(
|
|
721
|
-
l[6] || (l[6] = _(
|
|
734
|
+
_(R(y, ["prevent"]), ["enter"]),
|
|
735
|
+
l[5] || (l[5] = _(R((o) => h("minutes"), ["prevent"]), ["up"])),
|
|
736
|
+
l[6] || (l[6] = _(R((o) => h("minutes", -1), ["prevent"]), ["down"]))
|
|
722
737
|
]
|
|
723
|
-
}, null, 40,
|
|
738
|
+
}, null, 40, Yt), [
|
|
724
739
|
[Y, t.minutes]
|
|
725
740
|
]),
|
|
726
|
-
e.useSeconds ? (u(), m("span",
|
|
741
|
+
e.useSeconds ? (u(), m("span", Gt, ":")) : B("", !0),
|
|
727
742
|
e.useSeconds ? p((u(), m("input", {
|
|
728
743
|
key: 1,
|
|
729
744
|
"onUpdate:modelValue": l[7] || (l[7] = (o) => t.seconds = o),
|
|
730
745
|
type: "text",
|
|
731
746
|
inputmode: "numeric",
|
|
732
|
-
onPaste:
|
|
747
|
+
onPaste: T,
|
|
733
748
|
onFocus: v,
|
|
734
749
|
onBlur: y,
|
|
735
750
|
onKeydown: [
|
|
736
|
-
_(
|
|
737
|
-
l[8] || (l[8] = _(
|
|
738
|
-
l[9] || (l[9] = _(
|
|
751
|
+
_(R(y, ["prevent"]), ["enter"]),
|
|
752
|
+
l[8] || (l[8] = _(R((o) => h("seconds"), ["prevent"]), ["up"])),
|
|
753
|
+
l[9] || (l[9] = _(R((o) => h("seconds", -1), ["prevent"]), ["down"]))
|
|
739
754
|
]
|
|
740
|
-
}, null, 40,
|
|
755
|
+
}, null, 40, zt)), [
|
|
741
756
|
[Y, t.seconds]
|
|
742
|
-
]) :
|
|
743
|
-
e.allowMilitaryTime ?
|
|
757
|
+
]) : B("", !0),
|
|
758
|
+
e.allowMilitaryTime ? B("", !0) : p((u(), m("select", {
|
|
744
759
|
key: 2,
|
|
745
760
|
ref: "meridiem-selector",
|
|
746
761
|
"onUpdate:modelValue": l[10] || (l[10] = (o) => d.value = o),
|
|
@@ -750,15 +765,15 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
750
765
|
a("option", { value: "AM" }, "AM", -1),
|
|
751
766
|
a("option", { value: "PM" }, "PM", -1)
|
|
752
767
|
])], 544)), [
|
|
753
|
-
[
|
|
768
|
+
[Be, d.value]
|
|
754
769
|
])
|
|
755
770
|
])
|
|
756
771
|
]));
|
|
757
772
|
}
|
|
758
|
-
}),
|
|
773
|
+
}), me = /* @__PURE__ */ H(Wt, [["__scopeId", "data-v-959a3e41"]]), Jt = { class: "adate-selection" }, Xt = {
|
|
759
774
|
key: 3,
|
|
760
775
|
class: "empty"
|
|
761
|
-
},
|
|
776
|
+
}, Zt = /* @__PURE__ */ V({
|
|
762
777
|
__name: "ADateSelection",
|
|
763
778
|
props: {
|
|
764
779
|
showDate: { type: Boolean, default: !0 },
|
|
@@ -775,8 +790,8 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
775
790
|
emits: ["get-date", "get-time", "get-range"],
|
|
776
791
|
setup(e, { emit: s }) {
|
|
777
792
|
const n = s;
|
|
778
|
-
|
|
779
|
-
const c = /* @__PURE__ */ new Date(), t =
|
|
793
|
+
Re("select-range", e.selectRange);
|
|
794
|
+
const c = /* @__PURE__ */ new Date(), t = I(c), d = I(c), y = I(0), k = I(0), v = (l, o) => {
|
|
780
795
|
const i = new Date(l);
|
|
781
796
|
return i.setHours(0, 0, 0, 0), new Date(i.getTime() + o);
|
|
782
797
|
}, h = (l) => {
|
|
@@ -795,18 +810,18 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
795
810
|
});
|
|
796
811
|
}, $ = (l) => {
|
|
797
812
|
n("get-date", l), e.selectRange && (t.value = l.start ?? l.selected, d.value = l.end ?? l.selected, x());
|
|
798
|
-
},
|
|
813
|
+
}, T = (l) => {
|
|
799
814
|
y.value = h(l), e.showEndTime ? x() : n("get-time", l);
|
|
800
815
|
}, f = (l) => {
|
|
801
816
|
k.value = h(l), x();
|
|
802
817
|
};
|
|
803
|
-
return (l, o) => (u(), m("div",
|
|
804
|
-
e.showDate ? (u(),
|
|
818
|
+
return (l, o) => (u(), m("div", Jt, [
|
|
819
|
+
e.showDate ? (u(), ee(Te, {
|
|
805
820
|
key: 0,
|
|
806
821
|
"select-range": e.selectRange,
|
|
807
822
|
onGetDate: $
|
|
808
|
-
}, null, 8, ["select-range"])) :
|
|
809
|
-
e.showTime ? (u(),
|
|
823
|
+
}, null, 8, ["select-range"])) : B("", !0),
|
|
824
|
+
e.showTime ? (u(), ee(me, {
|
|
810
825
|
key: 1,
|
|
811
826
|
"allow-military-time": e.allowMilitaryTime,
|
|
812
827
|
"default-hours": e.defaultHours,
|
|
@@ -814,11 +829,11 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
814
829
|
"default-seconds": e.defaultSeconds,
|
|
815
830
|
"default-meridiem": e.defaultMeridiem,
|
|
816
831
|
"use-seconds": e.useSeconds,
|
|
817
|
-
onGetTime:
|
|
818
|
-
}, null, 8, ["allow-military-time", "default-hours", "default-minutes", "default-seconds", "default-meridiem", "use-seconds"])) :
|
|
832
|
+
onGetTime: T
|
|
833
|
+
}, null, 8, ["allow-military-time", "default-hours", "default-minutes", "default-seconds", "default-meridiem", "use-seconds"])) : B("", !0),
|
|
819
834
|
e.selectRange && e.showTime && e.showEndTime ? (u(), m(L, { key: 2 }, [
|
|
820
835
|
o[0] || (o[0] = a("div", { class: "adate-selection__end-label" }, "End time", -1)),
|
|
821
|
-
|
|
836
|
+
oe(me, {
|
|
822
837
|
"allow-military-time": e.allowMilitaryTime,
|
|
823
838
|
"default-hours": e.defaultHours,
|
|
824
839
|
"default-minutes": e.defaultMinutes,
|
|
@@ -827,13 +842,13 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
827
842
|
"use-seconds": e.useSeconds,
|
|
828
843
|
onGetTime: f
|
|
829
844
|
}, null, 8, ["allow-military-time", "default-hours", "default-minutes", "default-seconds", "default-meridiem", "use-seconds"])
|
|
830
|
-
], 64)) :
|
|
831
|
-
!e.showTime && !e.showDate ? (u(), m("p",
|
|
845
|
+
], 64)) : B("", !0),
|
|
846
|
+
!e.showTime && !e.showDate ? (u(), m("p", Xt, "empty")) : B("", !0)
|
|
832
847
|
]));
|
|
833
848
|
}
|
|
834
|
-
}),
|
|
849
|
+
}), se = /* @__PURE__ */ H(Zt, [["__scopeId", "data-v-eeadb3e2"]]), Ot = { class: "aform_display-value" }, jt = ["id", "value", "disabled", "required"], ea = ["for"], ta = ["innerHTML"], aa = /* @__PURE__ */ V({
|
|
835
850
|
__name: "ADate",
|
|
836
|
-
props: /* @__PURE__ */
|
|
851
|
+
props: /* @__PURE__ */ Q({
|
|
837
852
|
schema: {},
|
|
838
853
|
label: { default: "Date" },
|
|
839
854
|
selectRange: { type: Boolean },
|
|
@@ -849,13 +864,13 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
849
864
|
}),
|
|
850
865
|
emits: ["update:modelValue"],
|
|
851
866
|
setup(e) {
|
|
852
|
-
const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue"), c =
|
|
867
|
+
const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue"), c = I(n.value ? new Date(n.value) : /* @__PURE__ */ new Date()), t = A({
|
|
853
868
|
get: () => c.value.toISOString().split("T")[0],
|
|
854
869
|
set: (v) => {
|
|
855
870
|
c.value = new Date(v), n.value = v;
|
|
856
871
|
}
|
|
857
|
-
}), d =
|
|
858
|
-
|
|
872
|
+
}), d = le("picker"), y = I(!1);
|
|
873
|
+
De(d, () => y.value = !1), Z(
|
|
859
874
|
() => n.value,
|
|
860
875
|
(v) => {
|
|
861
876
|
v && (c.value = new Date(v));
|
|
@@ -866,7 +881,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
866
881
|
};
|
|
867
882
|
return (v, h) => (u(), m("div", null, [
|
|
868
883
|
e.mode === "display" ? (u(), m(L, { key: 0 }, [
|
|
869
|
-
a("span",
|
|
884
|
+
a("span", Ot, g(n.value ? new Date(t.value).toLocaleDateString() : ""), 1),
|
|
870
885
|
a("label", null, g(e.label), 1)
|
|
871
886
|
], 64)) : (u(), m(L, { key: 1 }, [
|
|
872
887
|
p(a("input", {
|
|
@@ -878,42 +893,42 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
878
893
|
type: "date",
|
|
879
894
|
disabled: e.mode === "read",
|
|
880
895
|
required: e.required,
|
|
881
|
-
onClick: h[1] || (h[1] =
|
|
896
|
+
onClick: h[1] || (h[1] = R(
|
|
882
897
|
() => {
|
|
883
898
|
y.value = !y.value;
|
|
884
899
|
},
|
|
885
900
|
["prevent"]
|
|
886
901
|
))
|
|
887
|
-
}, null, 8,
|
|
902
|
+
}, null, 8, jt), [
|
|
888
903
|
[Y, t.value]
|
|
889
904
|
]),
|
|
890
|
-
a("label", { for: e.uuid }, g(e.label), 9,
|
|
891
|
-
p(a("p", { innerHTML: s.value }, null, 8,
|
|
892
|
-
[
|
|
905
|
+
a("label", { for: e.uuid }, g(e.label), 9, ea),
|
|
906
|
+
p(a("p", { innerHTML: s.value }, null, 8, ta), [
|
|
907
|
+
[P, s.value]
|
|
893
908
|
]),
|
|
894
|
-
y.value ? (u(),
|
|
909
|
+
y.value ? (u(), ee(se, {
|
|
895
910
|
key: 0,
|
|
896
911
|
ref: "picker",
|
|
897
912
|
class: "picker",
|
|
898
913
|
"select-range": !1,
|
|
899
914
|
"show-time": !1,
|
|
900
915
|
onGetDate: k
|
|
901
|
-
}, null, 512)) :
|
|
916
|
+
}, null, 512)) : B("", !0)
|
|
902
917
|
], 64))
|
|
903
918
|
]));
|
|
904
919
|
}
|
|
905
|
-
}),
|
|
920
|
+
}), la = /* @__PURE__ */ H(aa, [["__scopeId", "data-v-a73c275b"]]), na = {
|
|
906
921
|
key: 0,
|
|
907
922
|
class: "input-wrapper"
|
|
908
|
-
},
|
|
923
|
+
}, oa = { class: "aform_display-value" }, sa = ["innerHTML"], ia = { class: "input-wrapper" }, ua = ["disabled"], da = {
|
|
909
924
|
id: "autocomplete-results",
|
|
910
925
|
class: "autocomplete-results"
|
|
911
|
-
},
|
|
926
|
+
}, ra = {
|
|
912
927
|
key: 0,
|
|
913
928
|
class: "loading autocomplete-result"
|
|
914
|
-
},
|
|
929
|
+
}, ca = ["onClick"], ma = ["innerHTML"], fa = /* @__PURE__ */ V({
|
|
915
930
|
__name: "ADropdown",
|
|
916
|
-
props: /* @__PURE__ */
|
|
931
|
+
props: /* @__PURE__ */ Q({
|
|
917
932
|
schema: {},
|
|
918
933
|
label: {},
|
|
919
934
|
selectRange: { type: Boolean },
|
|
@@ -932,7 +947,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
932
947
|
}),
|
|
933
948
|
emits: ["update:modelValue"],
|
|
934
949
|
setup(e) {
|
|
935
|
-
const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue"), c =
|
|
950
|
+
const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue"), c = I(n.value ?? ""), t = ve({
|
|
936
951
|
activeItemIndex: null,
|
|
937
952
|
open: !1,
|
|
938
953
|
loading: !1,
|
|
@@ -966,7 +981,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
966
981
|
t.activeItemIndex = (o + 1) % l;
|
|
967
982
|
} else
|
|
968
983
|
t.activeItemIndex = 0;
|
|
969
|
-
},
|
|
984
|
+
}, T = () => {
|
|
970
985
|
const l = t.results?.length || 0;
|
|
971
986
|
if (t.activeItemIndex != null) {
|
|
972
987
|
const o = isNaN(t.activeItemIndex) ? 0 : t.activeItemIndex;
|
|
@@ -980,20 +995,20 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
980
995
|
}
|
|
981
996
|
t.activeItemIndex = 0;
|
|
982
997
|
};
|
|
983
|
-
return (l, o) => e.mode === "display" ? (u(), m("div",
|
|
984
|
-
a("span",
|
|
998
|
+
return (l, o) => e.mode === "display" ? (u(), m("div", na, [
|
|
999
|
+
a("span", oa, g(n.value ?? ""), 1),
|
|
985
1000
|
a("label", null, g(e.label), 1),
|
|
986
1001
|
p(a("p", {
|
|
987
1002
|
class: "aform_error",
|
|
988
1003
|
innerHTML: s.value
|
|
989
1004
|
}, null, 8, sa), [
|
|
990
|
-
[
|
|
1005
|
+
[P, s.value]
|
|
991
1006
|
])
|
|
992
1007
|
])) : p((u(), m("div", {
|
|
993
1008
|
key: 1,
|
|
994
|
-
class:
|
|
1009
|
+
class: O(["autocomplete", { isOpen: t.open }])
|
|
995
1010
|
}, [
|
|
996
|
-
a("div",
|
|
1011
|
+
a("div", ia, [
|
|
997
1012
|
p(a("input", {
|
|
998
1013
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => n.value = i),
|
|
999
1014
|
type: "text",
|
|
@@ -1002,41 +1017,41 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1002
1017
|
onFocus: v,
|
|
1003
1018
|
onKeydown: [
|
|
1004
1019
|
_($, ["down"]),
|
|
1005
|
-
_(
|
|
1020
|
+
_(T, ["up"]),
|
|
1006
1021
|
_(f, ["enter"]),
|
|
1007
1022
|
_(d, ["esc"]),
|
|
1008
1023
|
_(d, ["tab"])
|
|
1009
1024
|
]
|
|
1010
|
-
}, null, 40,
|
|
1025
|
+
}, null, 40, ua), [
|
|
1011
1026
|
[Y, n.value]
|
|
1012
1027
|
]),
|
|
1013
|
-
p(a("ul",
|
|
1014
|
-
t.loading ? (u(), m("li",
|
|
1028
|
+
p(a("ul", da, [
|
|
1029
|
+
t.loading ? (u(), m("li", ra, "Loading results...")) : (u(!0), m(L, { key: 1 }, j(t.results, (i, w) => (u(), m("li", {
|
|
1015
1030
|
key: i,
|
|
1016
|
-
class:
|
|
1017
|
-
onClick:
|
|
1018
|
-
}, g(i), 11,
|
|
1031
|
+
class: O(["autocomplete-result", { "is-active": w === t.activeItemIndex }]),
|
|
1032
|
+
onClick: R((r) => k(i), ["stop"])
|
|
1033
|
+
}, g(i), 11, ca))), 128))
|
|
1019
1034
|
], 512), [
|
|
1020
|
-
[
|
|
1035
|
+
[P, t.open]
|
|
1021
1036
|
]),
|
|
1022
1037
|
a("label", null, g(e.label), 1)
|
|
1023
1038
|
]),
|
|
1024
1039
|
p(a("p", {
|
|
1025
1040
|
class: "aform_error",
|
|
1026
1041
|
innerHTML: s.value
|
|
1027
|
-
}, null, 8,
|
|
1028
|
-
[
|
|
1042
|
+
}, null, 8, ma), [
|
|
1043
|
+
[P, s.value]
|
|
1029
1044
|
])
|
|
1030
1045
|
], 2)), [
|
|
1031
|
-
[
|
|
1046
|
+
[J(ye), d]
|
|
1032
1047
|
]);
|
|
1033
1048
|
}
|
|
1034
|
-
}),
|
|
1049
|
+
}), va = /* @__PURE__ */ H(fa, [["__scopeId", "data-v-2b75e2d5"]]), ya = { class: "aduration" }, ha = { class: "aform_display-value" }, ba = { class: "aduration__footer" }, ga = {
|
|
1035
1050
|
key: 0,
|
|
1036
1051
|
class: "aduration__summary"
|
|
1037
|
-
},
|
|
1052
|
+
}, $a = { class: "aduration__value" }, ka = { class: "aduration__ms" }, xa = /* @__PURE__ */ V({
|
|
1038
1053
|
__name: "ADuration",
|
|
1039
|
-
props: /* @__PURE__ */
|
|
1054
|
+
props: /* @__PURE__ */ Q({
|
|
1040
1055
|
label: { default: "Duration" },
|
|
1041
1056
|
mode: { default: "edit" },
|
|
1042
1057
|
allowMilitaryTime: { type: Boolean, default: !1 },
|
|
@@ -1047,12 +1062,12 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1047
1062
|
}),
|
|
1048
1063
|
emits: ["update:modelValue"],
|
|
1049
1064
|
setup(e) {
|
|
1050
|
-
const s = G(e, "modelValue"), n =
|
|
1065
|
+
const s = G(e, "modelValue"), n = I(null), c = I(null), t = A(() => {
|
|
1051
1066
|
if (!n.value || !c.value) return 0;
|
|
1052
1067
|
const v = c.value.getTime() - n.value.getTime();
|
|
1053
1068
|
return v > 0 ? v : 0;
|
|
1054
1069
|
});
|
|
1055
|
-
|
|
1070
|
+
Z(t, (v) => {
|
|
1056
1071
|
s.value = v;
|
|
1057
1072
|
});
|
|
1058
1073
|
const d = (v) => {
|
|
@@ -1060,20 +1075,20 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1060
1075
|
}, y = A(() => {
|
|
1061
1076
|
const v = t.value;
|
|
1062
1077
|
if (v === 0) return "0s";
|
|
1063
|
-
const h = Math.floor(v / 1e3) % 60, x = Math.floor(v / 6e4) % 60, $ = Math.floor(v / 36e5) % 24,
|
|
1064
|
-
return [
|
|
1078
|
+
const h = Math.floor(v / 1e3) % 60, x = Math.floor(v / 6e4) % 60, $ = Math.floor(v / 36e5) % 24, T = Math.floor(v / 864e5);
|
|
1079
|
+
return [T && `${T}d`, $ && `${$}h`, x && `${x}m`, h && `${h}s`].filter(Boolean).join(" ") || "0s";
|
|
1065
1080
|
}), k = A(() => {
|
|
1066
1081
|
const v = s.value;
|
|
1067
1082
|
if (!v) return "—";
|
|
1068
|
-
const h = Math.floor(v / 1e3) % 60, x = Math.floor(v / 6e4) % 60, $ = Math.floor(v / 36e5) % 24,
|
|
1069
|
-
return [
|
|
1083
|
+
const h = Math.floor(v / 1e3) % 60, x = Math.floor(v / 6e4) % 60, $ = Math.floor(v / 36e5) % 24, T = Math.floor(v / 864e5);
|
|
1084
|
+
return [T && `${T}d`, $ && `${$}h`, x && `${x}m`, h && `${h}s`].filter(Boolean).join(" ") || "0s";
|
|
1070
1085
|
});
|
|
1071
|
-
return (v, h) => (u(), m("div",
|
|
1086
|
+
return (v, h) => (u(), m("div", ya, [
|
|
1072
1087
|
e.mode === "display" || e.mode === "read" ? (u(), m(L, { key: 0 }, [
|
|
1073
|
-
a("span",
|
|
1088
|
+
a("span", ha, g(k.value), 1),
|
|
1074
1089
|
a("label", null, g(e.label), 1)
|
|
1075
1090
|
], 64)) : (u(), m(L, { key: 1 }, [
|
|
1076
|
-
|
|
1091
|
+
oe(se, {
|
|
1077
1092
|
ref: "selectionRef",
|
|
1078
1093
|
"select-range": !0,
|
|
1079
1094
|
"show-time": !0,
|
|
@@ -1082,20 +1097,20 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1082
1097
|
"use-seconds": e.useSeconds,
|
|
1083
1098
|
onGetRange: d
|
|
1084
1099
|
}, null, 8, ["allow-military-time", "use-seconds"]),
|
|
1085
|
-
a("div",
|
|
1100
|
+
a("div", ba, [
|
|
1086
1101
|
a("label", null, g(e.label), 1),
|
|
1087
|
-
n.value && c.value ? (u(), m("div",
|
|
1102
|
+
n.value && c.value ? (u(), m("div", ga, [
|
|
1088
1103
|
h[0] || (h[0] = a("span", { class: "aduration__label" }, "Duration:", -1)),
|
|
1089
|
-
a("span",
|
|
1090
|
-
a("span",
|
|
1091
|
-
])) :
|
|
1104
|
+
a("span", $a, g(y.value), 1),
|
|
1105
|
+
a("span", ka, "(" + g(s.value ?? 0) + " ms)", 1)
|
|
1106
|
+
])) : B("", !0)
|
|
1092
1107
|
])
|
|
1093
1108
|
], 64))
|
|
1094
1109
|
]));
|
|
1095
1110
|
}
|
|
1096
|
-
}),
|
|
1111
|
+
}), wa = /* @__PURE__ */ H(xa, [["__scopeId", "data-v-22611dd6"]]), Da = { class: "adaterange" }, Ma = { class: "aform_display-value" }, Ta = ["id", "value", "disabled"], Sa = ["for"], Ia = ["innerHTML"], Aa = /* @__PURE__ */ V({
|
|
1097
1112
|
__name: "ADateRange",
|
|
1098
|
-
props: /* @__PURE__ */
|
|
1113
|
+
props: /* @__PURE__ */ Q({
|
|
1099
1114
|
schema: {},
|
|
1100
1115
|
label: { default: "Date Range" },
|
|
1101
1116
|
selectRange: { type: Boolean },
|
|
@@ -1113,8 +1128,8 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1113
1128
|
}),
|
|
1114
1129
|
emits: ["update:modelValue"],
|
|
1115
1130
|
setup(e) {
|
|
1116
|
-
const s = (i) => new Date(i).toLocaleDateString(), n = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), c = G(e, "modelValue"), t =
|
|
1117
|
-
|
|
1131
|
+
const s = (i) => new Date(i).toLocaleDateString(), n = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), c = G(e, "modelValue"), t = I(c.value.start_date ? new Date(c.value.start_date) : null), d = I(c.value.end_date ? new Date(c.value.end_date) : null), y = I(!1), k = I(null);
|
|
1132
|
+
De(k, () => y.value = !1);
|
|
1118
1133
|
const v = () => {
|
|
1119
1134
|
e.mode !== "read" && (y.value = !0);
|
|
1120
1135
|
}, h = (i) => i ? `${i.getMonth() + 1}/${i.getDate()}/${i.getFullYear()}` : "", x = A(() => {
|
|
@@ -1123,7 +1138,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1123
1138
|
}), $ = A(() => {
|
|
1124
1139
|
const i = c.value.start_date, w = c.value.end_date;
|
|
1125
1140
|
return !i && !w ? "" : i && w ? `${s(i)} — ${s(w)}` : i ? `From ${s(i)}` : `Until ${s(w)}`;
|
|
1126
|
-
}),
|
|
1141
|
+
}), T = () => {
|
|
1127
1142
|
const i = t.value, w = d.value;
|
|
1128
1143
|
i && w && w.getTime() < i.getTime() && ([t.value, d.value] = [w, i]);
|
|
1129
1144
|
}, f = (i) => i ? i.toISOString().split("T")[0] : null, l = () => {
|
|
@@ -1132,17 +1147,17 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1132
1147
|
end_date: f(d.value)
|
|
1133
1148
|
};
|
|
1134
1149
|
}, o = (i) => {
|
|
1135
|
-
i.start && (t.value = i.start), i.end && (d.value = i.end,
|
|
1150
|
+
i.start && (t.value = i.start), i.end && (d.value = i.end, T(), y.value = !1), l();
|
|
1136
1151
|
};
|
|
1137
|
-
return
|
|
1152
|
+
return Z(
|
|
1138
1153
|
() => c.value,
|
|
1139
1154
|
(i) => {
|
|
1140
1155
|
t.value = i.start_date ? new Date(i.start_date) : null, d.value = i.end_date ? new Date(i.end_date) : null;
|
|
1141
1156
|
},
|
|
1142
1157
|
{ deep: !0 }
|
|
1143
|
-
), (i, w) => (u(), m("div",
|
|
1158
|
+
), (i, w) => (u(), m("div", Da, [
|
|
1144
1159
|
e.mode === "display" ? (u(), m(L, { key: 0 }, [
|
|
1145
|
-
a("span",
|
|
1160
|
+
a("span", Ma, g($.value), 1),
|
|
1146
1161
|
a("label", null, g(e.label), 1)
|
|
1147
1162
|
], 64)) : (u(), m(L, { key: 1 }, [
|
|
1148
1163
|
a("input", {
|
|
@@ -1154,12 +1169,12 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1154
1169
|
disabled: e.mode === "read",
|
|
1155
1170
|
readonly: "",
|
|
1156
1171
|
onClick: v
|
|
1157
|
-
}, null, 8,
|
|
1158
|
-
a("label", { for: e.uuid }, g(e.label), 9,
|
|
1159
|
-
p(a("p", { innerHTML: n.value }, null, 8,
|
|
1160
|
-
[
|
|
1172
|
+
}, null, 8, Ta),
|
|
1173
|
+
a("label", { for: e.uuid }, g(e.label), 9, Sa),
|
|
1174
|
+
p(a("p", { innerHTML: n.value }, null, 8, Ia), [
|
|
1175
|
+
[P, n.value]
|
|
1161
1176
|
]),
|
|
1162
|
-
y.value ? (u(),
|
|
1177
|
+
y.value ? (u(), ee(se, {
|
|
1163
1178
|
key: 0,
|
|
1164
1179
|
ref_key: "pickerRef",
|
|
1165
1180
|
ref: k,
|
|
@@ -1167,19 +1182,19 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1167
1182
|
"select-range": !0,
|
|
1168
1183
|
"show-time": !1,
|
|
1169
1184
|
onGetDate: o
|
|
1170
|
-
}, null, 512)) :
|
|
1185
|
+
}, null, 512)) : B("", !0)
|
|
1171
1186
|
], 64))
|
|
1172
1187
|
]));
|
|
1173
1188
|
}
|
|
1174
|
-
}),
|
|
1189
|
+
}), pa = /* @__PURE__ */ H(Aa, [["__scopeId", "data-v-b5838478"]]), La = { class: "aform" }, qa = {
|
|
1175
1190
|
key: 0,
|
|
1176
1191
|
class: "aform-nested-section"
|
|
1177
|
-
},
|
|
1192
|
+
}, Fa = {
|
|
1178
1193
|
key: 0,
|
|
1179
1194
|
class: "aform-nested-label"
|
|
1180
|
-
},
|
|
1195
|
+
}, _a = /* @__PURE__ */ V({
|
|
1181
1196
|
__name: "AForm",
|
|
1182
|
-
props: /* @__PURE__ */
|
|
1197
|
+
props: /* @__PURE__ */ Q({
|
|
1183
1198
|
schema: {},
|
|
1184
1199
|
mode: { default: "edit" },
|
|
1185
1200
|
errors: {}
|
|
@@ -1187,10 +1202,10 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1187
1202
|
data: { required: !0 },
|
|
1188
1203
|
dataModifiers: {}
|
|
1189
1204
|
}),
|
|
1190
|
-
emits: /* @__PURE__ */
|
|
1205
|
+
emits: /* @__PURE__ */ Q(["update:schema", "update:data"], ["update:data"]),
|
|
1191
1206
|
setup(e, { emit: s }) {
|
|
1192
|
-
const n = s, c = G(e, "data"), t = (f) => (f.kind === "link" || f.kind === "fieldset") && "schema" in f && Array.isArray(f.schema) && f.schema.length > 0, d =
|
|
1193
|
-
|
|
1207
|
+
const n = s, c = G(e, "data"), t = (f) => (f.kind === "link" || f.kind === "fieldset") && "schema" in f && Array.isArray(f.schema) && f.schema.length > 0, d = I({});
|
|
1208
|
+
Z(
|
|
1194
1209
|
() => c.value,
|
|
1195
1210
|
(f) => {
|
|
1196
1211
|
!e.schema || !f || e.schema.forEach((l) => {
|
|
@@ -1215,8 +1230,8 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1215
1230
|
const l = f.mode;
|
|
1216
1231
|
return l || h.value;
|
|
1217
1232
|
}
|
|
1218
|
-
const $ =
|
|
1219
|
-
|
|
1233
|
+
const $ = I([]);
|
|
1234
|
+
Ve(() => {
|
|
1220
1235
|
e.schema && $.value.length !== e.schema.length && ($.value = e.schema.map((f, l) => A({
|
|
1221
1236
|
get() {
|
|
1222
1237
|
return c.value?.[e.schema[l].fieldname];
|
|
@@ -1227,12 +1242,12 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1227
1242
|
}
|
|
1228
1243
|
})));
|
|
1229
1244
|
});
|
|
1230
|
-
const
|
|
1231
|
-
return (f, l) => (u(), m("form",
|
|
1232
|
-
(u(!0), m(L, null,
|
|
1233
|
-
t(o) ? (u(), m("div",
|
|
1234
|
-
o.label && o.kind !== "fieldset" ? (u(), m("h4",
|
|
1235
|
-
(u(),
|
|
1245
|
+
const T = A(() => $.value);
|
|
1246
|
+
return (f, l) => (u(), m("form", La, [
|
|
1247
|
+
(u(!0), m(L, null, j(e.schema, (o, i) => (u(), m(L, { key: i }, [
|
|
1248
|
+
t(o) ? (u(), m("div", qa, [
|
|
1249
|
+
o.label && o.kind !== "fieldset" ? (u(), m("h4", Fa, g(o.label), 1)) : B("", !0),
|
|
1250
|
+
(u(), ee($e(o.component ?? "AForm"), {
|
|
1236
1251
|
data: d.value[o.fieldname],
|
|
1237
1252
|
mode: x(o),
|
|
1238
1253
|
schema: o.schema,
|
|
@@ -1241,10 +1256,10 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1241
1256
|
errors: e.errors,
|
|
1242
1257
|
"onUpdate:data": (w) => y(o.fieldname, w)
|
|
1243
1258
|
}, null, 40, ["data", "mode", "schema", "label", "collapsible", "errors", "onUpdate:data"]))
|
|
1244
|
-
])) : o.hidden ?
|
|
1259
|
+
])) : o.hidden ? B("", !0) : (u(), ee($e(o.component), Ne({
|
|
1245
1260
|
key: 1,
|
|
1246
|
-
modelValue:
|
|
1247
|
-
"onUpdate:modelValue": (w) =>
|
|
1261
|
+
modelValue: T.value[i].value,
|
|
1262
|
+
"onUpdate:modelValue": (w) => T.value[i].value = w,
|
|
1248
1263
|
style: v(o),
|
|
1249
1264
|
schema: o,
|
|
1250
1265
|
data: c.value[o.fieldname],
|
|
@@ -1254,17 +1269,17 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1254
1269
|
], 64))), 128))
|
|
1255
1270
|
]));
|
|
1256
1271
|
}
|
|
1257
|
-
}),
|
|
1272
|
+
}), Se = /* @__PURE__ */ H(_a, [["__scopeId", "data-v-bb17171c"]]), Ca = /* @__PURE__ */ V({
|
|
1258
1273
|
__name: "CollapseButton",
|
|
1259
1274
|
props: {
|
|
1260
1275
|
collapsed: { type: Boolean }
|
|
1261
1276
|
},
|
|
1262
1277
|
setup(e) {
|
|
1263
1278
|
return (s, n) => (u(), m("button", {
|
|
1264
|
-
class:
|
|
1279
|
+
class: O(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
|
|
1265
1280
|
}, "×", 2));
|
|
1266
1281
|
}
|
|
1267
|
-
}),
|
|
1282
|
+
}), Ba = /* @__PURE__ */ H(Ca, [["__scopeId", "data-v-6f1c1b45"]]), Ra = /* @__PURE__ */ V({
|
|
1268
1283
|
__name: "AFieldset",
|
|
1269
1284
|
props: {
|
|
1270
1285
|
schema: {},
|
|
@@ -1275,7 +1290,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1275
1290
|
mode: { default: "edit" }
|
|
1276
1291
|
},
|
|
1277
1292
|
setup(e, { expose: s }) {
|
|
1278
|
-
const n =
|
|
1293
|
+
const n = I(!1), c = I(e.data || []), t = I(e.schema), d = (y) => {
|
|
1279
1294
|
y.preventDefault(), e.collapsible && (n.value = !n.value);
|
|
1280
1295
|
};
|
|
1281
1296
|
return s({ collapsed: n }), (y, k) => (u(), m("fieldset", null, [
|
|
@@ -1284,34 +1299,34 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1284
1299
|
onClick: d,
|
|
1285
1300
|
onSubmit: d
|
|
1286
1301
|
}, [
|
|
1287
|
-
|
|
1288
|
-
e.collapsible ? (u(),
|
|
1302
|
+
ne(g(e.label) + " ", 1),
|
|
1303
|
+
e.collapsible ? (u(), ee(Ba, {
|
|
1289
1304
|
key: 0,
|
|
1290
1305
|
collapsed: n.value
|
|
1291
|
-
}, null, 8, ["collapsed"])) :
|
|
1292
|
-
], 32)) :
|
|
1293
|
-
|
|
1294
|
-
p(
|
|
1306
|
+
}, null, 8, ["collapsed"])) : B("", !0)
|
|
1307
|
+
], 32)) : B("", !0),
|
|
1308
|
+
fe(y.$slots, "default", { collapsed: n.value }, () => [
|
|
1309
|
+
p(oe(Se, {
|
|
1295
1310
|
data: c.value,
|
|
1296
1311
|
"onUpdate:data": k[0] || (k[0] = (v) => c.value = v),
|
|
1297
1312
|
schema: t.value,
|
|
1298
1313
|
mode: e.mode
|
|
1299
1314
|
}, null, 8, ["data", "schema", "mode"]), [
|
|
1300
|
-
[
|
|
1315
|
+
[P, !n.value]
|
|
1301
1316
|
])
|
|
1302
1317
|
], !0)
|
|
1303
1318
|
]));
|
|
1304
1319
|
}
|
|
1305
|
-
}),
|
|
1320
|
+
}), Va = /* @__PURE__ */ H(Ra, [["__scopeId", "data-v-162e7317"]]), Na = { class: "aform_form-element aform_file-attach aform__grid--full" }, Ua = {
|
|
1306
1321
|
key: 0,
|
|
1307
1322
|
class: "aform_file-attach-feedback"
|
|
1308
1323
|
}, Ha = {
|
|
1309
1324
|
key: 1,
|
|
1310
1325
|
class: "aform_display-value"
|
|
1311
|
-
},
|
|
1326
|
+
}, Ea = {
|
|
1312
1327
|
key: 0,
|
|
1313
1328
|
class: "aform_file-attach-feedback"
|
|
1314
|
-
},
|
|
1329
|
+
}, Ka = ["disabled"], Pa = ["disabled"], Qa = /* @__PURE__ */ V({
|
|
1315
1330
|
__name: "AFileAttach",
|
|
1316
1331
|
props: {
|
|
1317
1332
|
schema: {},
|
|
@@ -1325,48 +1340,48 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1325
1340
|
errors: {}
|
|
1326
1341
|
},
|
|
1327
1342
|
setup(e) {
|
|
1328
|
-
const { files: s, open: n, reset: c, onChange: t } =
|
|
1343
|
+
const { files: s, open: n, reset: c, onChange: t } = Ue(), d = A(() => {
|
|
1329
1344
|
const y = s.value?.length ?? 0;
|
|
1330
1345
|
return `${y} ${y === 1 ? "file" : "files"}`;
|
|
1331
1346
|
});
|
|
1332
|
-
return t((y) => y), (y, k) => (u(), m("div",
|
|
1347
|
+
return t((y) => y), (y, k) => (u(), m("div", Na, [
|
|
1333
1348
|
e.mode === "display" ? (u(), m(L, { key: 0 }, [
|
|
1334
|
-
|
|
1349
|
+
J(s) ? (u(), m("div", Ua, [
|
|
1335
1350
|
a("p", null, [
|
|
1336
1351
|
a("b", null, g(d.value), 1)
|
|
1337
1352
|
]),
|
|
1338
|
-
(u(!0), m(L, null,
|
|
1353
|
+
(u(!0), m(L, null, j(J(s), (v) => (u(), m("li", {
|
|
1339
1354
|
key: v.name
|
|
1340
1355
|
}, g(v.name), 1))), 128))
|
|
1341
1356
|
])) : (u(), m("span", Ha, "No file selected"))
|
|
1342
1357
|
], 64)) : (u(), m(L, { key: 1 }, [
|
|
1343
|
-
|
|
1358
|
+
J(s) ? (u(), m("div", Ea, [
|
|
1344
1359
|
a("p", null, [
|
|
1345
|
-
k[2] || (k[2] =
|
|
1360
|
+
k[2] || (k[2] = ne(" You have selected: ", -1)),
|
|
1346
1361
|
a("b", null, g(d.value), 1)
|
|
1347
1362
|
]),
|
|
1348
|
-
(u(!0), m(L, null,
|
|
1363
|
+
(u(!0), m(L, null, j(J(s), (v) => (u(), m("li", {
|
|
1349
1364
|
key: v.name
|
|
1350
1365
|
}, g(v.name), 1))), 128))
|
|
1351
|
-
])) :
|
|
1366
|
+
])) : B("", !0),
|
|
1352
1367
|
a("button", {
|
|
1353
1368
|
type: "button",
|
|
1354
1369
|
class: "aform_form-btn",
|
|
1355
1370
|
disabled: e.mode === "read",
|
|
1356
|
-
onClick: k[0] || (k[0] = (v) =>
|
|
1357
|
-
}, g(e.label), 9,
|
|
1371
|
+
onClick: k[0] || (k[0] = (v) => J(n)())
|
|
1372
|
+
}, g(e.label), 9, Ka),
|
|
1358
1373
|
a("button", {
|
|
1359
1374
|
type: "button",
|
|
1360
|
-
disabled: !
|
|
1375
|
+
disabled: !J(s) || e.mode === "read",
|
|
1361
1376
|
class: "aform_form-btn",
|
|
1362
|
-
onClick: k[1] || (k[1] = (v) =>
|
|
1363
|
-
}, "Reset", 8,
|
|
1377
|
+
onClick: k[1] || (k[1] = (v) => J(c)())
|
|
1378
|
+
}, "Reset", 8, Pa)
|
|
1364
1379
|
], 64))
|
|
1365
1380
|
]));
|
|
1366
1381
|
}
|
|
1367
|
-
}),
|
|
1382
|
+
}), Ya = /* @__PURE__ */ H(Qa, [["__scopeId", "data-v-8eefd179"]]), Ga = { class: "aform_form-element" }, za = { class: "aform_display-value" }, Wa = { class: "aform_field-label" }, Ja = ["id", "disabled", "required"], Xa = ["for"], Za = ["innerHTML"], Oa = /* @__PURE__ */ V({
|
|
1368
1383
|
__name: "ANumericInput",
|
|
1369
|
-
props: /* @__PURE__ */
|
|
1384
|
+
props: /* @__PURE__ */ Q({
|
|
1370
1385
|
schema: {},
|
|
1371
1386
|
label: {},
|
|
1372
1387
|
selectRange: { type: Boolean },
|
|
@@ -1383,10 +1398,10 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1383
1398
|
emits: ["update:modelValue"],
|
|
1384
1399
|
setup(e) {
|
|
1385
1400
|
const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue");
|
|
1386
|
-
return (c, t) => (u(), m("div",
|
|
1401
|
+
return (c, t) => (u(), m("div", Ga, [
|
|
1387
1402
|
e.mode === "display" ? (u(), m(L, { key: 0 }, [
|
|
1388
|
-
a("span",
|
|
1389
|
-
a("label",
|
|
1403
|
+
a("span", za, g(n.value ?? ""), 1),
|
|
1404
|
+
a("label", Wa, g(e.label), 1)
|
|
1390
1405
|
], 64)) : (u(), m(L, { key: 1 }, [
|
|
1391
1406
|
p(a("input", {
|
|
1392
1407
|
id: e.uuid,
|
|
@@ -1395,25 +1410,25 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1395
1410
|
type: "number",
|
|
1396
1411
|
disabled: e.mode === "read",
|
|
1397
1412
|
required: e.required
|
|
1398
|
-
}, null, 8,
|
|
1413
|
+
}, null, 8, Ja), [
|
|
1399
1414
|
[Y, n.value]
|
|
1400
1415
|
]),
|
|
1401
1416
|
a("label", {
|
|
1402
1417
|
class: "aform_field-label",
|
|
1403
1418
|
for: e.uuid
|
|
1404
|
-
}, g(e.label), 9,
|
|
1419
|
+
}, g(e.label), 9, Xa),
|
|
1405
1420
|
p(a("p", {
|
|
1406
1421
|
class: "aform_error",
|
|
1407
1422
|
innerHTML: s.value
|
|
1408
|
-
}, null, 8,
|
|
1409
|
-
[
|
|
1423
|
+
}, null, 8, Za), [
|
|
1424
|
+
[P, s.value]
|
|
1410
1425
|
])
|
|
1411
1426
|
], 64))
|
|
1412
1427
|
]));
|
|
1413
1428
|
}
|
|
1414
|
-
}),
|
|
1429
|
+
}), ja = { class: "aform_form-element aquantity" }, el = { class: "aform_display-value" }, tl = { class: "aform_field-label" }, al = { class: "aquantity__row" }, ll = { class: "aquantity__field aquantity__field--qty" }, nl = { class: "aquantity__group" }, ol = ["id", "disabled", "required"], sl = { class: "aquantity__uom" }, il = ["id", "disabled", "aria-expanded", "aria-activedescendant", "onKeydown"], ul = { class: "aquantity__uom-value" }, dl = ["aria-label"], rl = ["id", "aria-selected", "onMouseenter", "onClick"], cl = ["for"], ml = { class: "aquantity__row aquantity__row--stock" }, fl = { class: "aquantity__field aquantity__field--stock-uom" }, vl = ["value"], yl = { class: "aform_field-label" }, hl = { class: "aquantity__field aquantity__field--stock-qty" }, bl = ["value"], gl = { class: "aform_field-label" }, $l = { class: "aquantity__field aquantity__field--conversion" }, kl = ["value"], xl = { class: "aform_field-label" }, wl = ["innerHTML"], Dl = /* @__PURE__ */ V({
|
|
1415
1430
|
__name: "AQuantityInput",
|
|
1416
|
-
props: /* @__PURE__ */
|
|
1431
|
+
props: /* @__PURE__ */ Q({
|
|
1417
1432
|
schema: {},
|
|
1418
1433
|
label: {},
|
|
1419
1434
|
selectRange: { type: Boolean },
|
|
@@ -1439,16 +1454,16 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1439
1454
|
const s = G(e, "modelValue"), n = A(() => e.options.uoms ?? []), c = (b) => Number(b.toFixed(6)), t = (b) => {
|
|
1440
1455
|
const q = e.options.stockUom ?? s.value.stockUom;
|
|
1441
1456
|
if (!b || b === q) return 1;
|
|
1442
|
-
const
|
|
1443
|
-
return
|
|
1457
|
+
const N = e.options.conversionFactors?.[b];
|
|
1458
|
+
return N !== void 0 ? N : b === s.value.uom ? s.value.conversionFactor ?? 1 : 1;
|
|
1444
1459
|
}, d = (b, q) => {
|
|
1445
|
-
const
|
|
1460
|
+
const N = t(q);
|
|
1446
1461
|
s.value = {
|
|
1447
1462
|
qty: b,
|
|
1448
1463
|
uom: q,
|
|
1449
|
-
conversionFactor:
|
|
1464
|
+
conversionFactor: N,
|
|
1450
1465
|
stockUom: e.options.stockUom ?? s.value.stockUom,
|
|
1451
|
-
stockQty: c(b *
|
|
1466
|
+
stockQty: c(b * N)
|
|
1452
1467
|
};
|
|
1453
1468
|
}, y = A({
|
|
1454
1469
|
get: () => s.value?.qty ?? 0,
|
|
@@ -1475,24 +1490,24 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1475
1490
|
}, x = (b) => {
|
|
1476
1491
|
const q = b.clipboardData?.getData("text") ?? "";
|
|
1477
1492
|
/^\d*\.?\d*$/.test(q) || b.preventDefault();
|
|
1478
|
-
}, $ =
|
|
1493
|
+
}, $ = ve({ open: !1, activeIndex: -1 }), T = () => {
|
|
1479
1494
|
$.activeIndex = Math.max(n.value.indexOf(k.value), 0), $.open = !0;
|
|
1480
1495
|
}, f = () => {
|
|
1481
1496
|
$.open = !1;
|
|
1482
1497
|
}, l = () => {
|
|
1483
|
-
$.open ? f() :
|
|
1498
|
+
$.open ? f() : T();
|
|
1484
1499
|
}, o = (b) => {
|
|
1485
1500
|
k.value = b, f();
|
|
1486
1501
|
}, i = (b) => {
|
|
1487
1502
|
if (!$.open) {
|
|
1488
|
-
|
|
1503
|
+
T();
|
|
1489
1504
|
return;
|
|
1490
1505
|
}
|
|
1491
1506
|
const q = n.value.length;
|
|
1492
1507
|
q && ($.activeIndex = ($.activeIndex + b + q) % q);
|
|
1493
1508
|
}, w = () => {
|
|
1494
1509
|
if (!$.open) {
|
|
1495
|
-
|
|
1510
|
+
T();
|
|
1496
1511
|
return;
|
|
1497
1512
|
}
|
|
1498
1513
|
const b = n.value[$.activeIndex];
|
|
@@ -1506,24 +1521,24 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1506
1521
|
const q = `${b.qty} ${b.uom}`;
|
|
1507
1522
|
return r.value ? `${q} (${b.stockQty} ${b.stockUom})` : q;
|
|
1508
1523
|
});
|
|
1509
|
-
return (b, q) => (u(), m("div",
|
|
1524
|
+
return (b, q) => (u(), m("div", ja, [
|
|
1510
1525
|
e.mode === "display" ? (u(), m(L, { key: 0 }, [
|
|
1511
|
-
a("span",
|
|
1512
|
-
a("label",
|
|
1526
|
+
a("span", el, g(F.value), 1),
|
|
1527
|
+
a("label", tl, g(e.label), 1)
|
|
1513
1528
|
], 64)) : (u(), m(L, { key: 1 }, [
|
|
1514
|
-
a("div",
|
|
1515
|
-
a("div",
|
|
1516
|
-
a("div",
|
|
1529
|
+
a("div", al, [
|
|
1530
|
+
a("div", ll, [
|
|
1531
|
+
a("div", nl, [
|
|
1517
1532
|
p(a("input", {
|
|
1518
1533
|
id: e.uuid,
|
|
1519
|
-
"onUpdate:modelValue": q[0] || (q[0] = (
|
|
1534
|
+
"onUpdate:modelValue": q[0] || (q[0] = (N) => y.value = N),
|
|
1520
1535
|
class: "aquantity__qty",
|
|
1521
1536
|
type: "number",
|
|
1522
1537
|
disabled: e.mode === "read",
|
|
1523
1538
|
required: e.required,
|
|
1524
1539
|
onKeydown: h,
|
|
1525
1540
|
onPaste: x
|
|
1526
|
-
}, null, 40,
|
|
1541
|
+
}, null, 40, ol), [
|
|
1527
1542
|
[
|
|
1528
1543
|
Y,
|
|
1529
1544
|
y.value,
|
|
@@ -1542,102 +1557,102 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
|
|
|
1542
1557
|
"aria-activedescendant": $.open && $.activeIndex >= 0 ? `${e.uuid}-uom-opt-${$.activeIndex}` : void 0,
|
|
1543
1558
|
onClick: l,
|
|
1544
1559
|
onKeydown: [
|
|
1545
|
-
q[1] || (q[1] = _(
|
|
1546
|
-
q[2] || (q[2] = _(
|
|
1547
|
-
_(
|
|
1560
|
+
q[1] || (q[1] = _(R((N) => i(1), ["prevent"]), ["down"])),
|
|
1561
|
+
q[2] || (q[2] = _(R((N) => i(-1), ["prevent"]), ["up"])),
|
|
1562
|
+
_(R(w, ["prevent"]), ["enter"]),
|
|
1548
1563
|
_(f, ["esc"])
|
|
1549
1564
|
]
|
|
1550
1565
|
}, [
|
|
1551
|
-
a("span",
|
|
1566
|
+
a("span", ul, g(k.value || e.uomLabel), 1),
|
|
1552
1567
|
q[3] || (q[3] = a("span", {
|
|
1553
1568
|
class: "aquantity__caret",
|
|
1554
1569
|
"aria-hidden": "true"
|
|
1555
1570
|
}, null, -1))
|
|
1556
|
-
], 40,
|
|
1571
|
+
], 40, il),
|
|
1557
1572
|
p(a("ul", {
|
|
1558
1573
|
class: "aquantity__uom-menu",
|
|
1559
1574
|
role: "listbox",
|
|
1560
1575
|
"aria-label": e.uomLabel
|
|
1561
1576
|
}, [
|
|
1562
|
-
(u(!0), m(L, null,
|
|
1563
|
-
id: `${e.uuid}-uom-opt-${
|
|
1564
|
-
key:
|
|
1577
|
+
(u(!0), m(L, null, j(n.value, (N, W) => (u(), m("li", {
|
|
1578
|
+
id: `${e.uuid}-uom-opt-${W}`,
|
|
1579
|
+
key: N,
|
|
1565
1580
|
role: "option",
|
|
1566
|
-
"aria-selected":
|
|
1567
|
-
class:
|
|
1568
|
-
onMouseenter: (
|
|
1569
|
-
onClick: (
|
|
1570
|
-
}, g(
|
|
1571
|
-
], 8,
|
|
1572
|
-
[
|
|
1581
|
+
"aria-selected": N === k.value,
|
|
1582
|
+
class: O(["aquantity__uom-option", { "is-active": W === $.activeIndex }]),
|
|
1583
|
+
onMouseenter: (te) => $.activeIndex = W,
|
|
1584
|
+
onClick: (te) => o(N)
|
|
1585
|
+
}, g(N), 43, rl))), 128))
|
|
1586
|
+
], 8, dl), [
|
|
1587
|
+
[P, $.open]
|
|
1573
1588
|
])
|
|
1574
1589
|
])), [
|
|
1575
|
-
[
|
|
1590
|
+
[J(ye), f]
|
|
1576
1591
|
])
|
|
1577
1592
|
]),
|
|
1578
1593
|
a("label", {
|
|
1579
1594
|
class: "aform_field-label",
|
|
1580
1595
|
for: e.uuid
|
|
1581
|
-
}, g(e.label), 9,
|
|
1596
|
+
}, g(e.label), 9, cl)
|
|
1582
1597
|
])
|
|
1583
1598
|
]),
|
|
1584
|
-
a("div",
|
|
1585
|
-
a("div",
|
|
1599
|
+
a("div", ml, [
|
|
1600
|
+
a("div", fl, [
|
|
1586
1601
|
a("input", {
|
|
1587
1602
|
value: s.value.stockUom,
|
|
1588
1603
|
class: "aform_input-field aquantity__stock-field",
|
|
1589
1604
|
type: "text",
|
|
1590
1605
|
disabled: ""
|
|
1591
|
-
}, null, 8,
|
|
1592
|
-
a("label",
|
|
1606
|
+
}, null, 8, vl),
|
|
1607
|
+
a("label", yl, g(e.stockUomLabel), 1)
|
|
1593
1608
|
]),
|
|
1594
|
-
a("div",
|
|
1609
|
+
a("div", hl, [
|
|
1595
1610
|
a("input", {
|
|
1596
1611
|
value: s.value.stockQty,
|
|
1597
1612
|
class: "aform_input-field aquantity__stock-field",
|
|
1598
1613
|
type: "number",
|
|
1599
1614
|
disabled: ""
|
|
1600
|
-
}, null, 8,
|
|
1601
|
-
a("label",
|
|
1615
|
+
}, null, 8, bl),
|
|
1616
|
+
a("label", gl, g(e.stockQtyLabel), 1)
|
|
1602
1617
|
]),
|
|
1603
|
-
a("div",
|
|
1618
|
+
a("div", $l, [
|
|
1604
1619
|
a("input", {
|
|
1605
1620
|
value: s.value.conversionFactor,
|
|
1606
1621
|
class: "aform_input-field aquantity__stock-field",
|
|
1607
1622
|
type: "number",
|
|
1608
1623
|
disabled: ""
|
|
1609
|
-
}, null, 8,
|
|
1610
|
-
a("label",
|
|
1624
|
+
}, null, 8, kl),
|
|
1625
|
+
a("label", xl, g(e.conversionFactorLabel), 1)
|
|
1611
1626
|
])
|
|
1612
1627
|
]),
|
|
1613
1628
|
p(a("p", {
|
|
1614
1629
|
class: "aform_error",
|
|
1615
1630
|
innerHTML: e.validation.errorMessage
|
|
1616
|
-
}, null, 8,
|
|
1617
|
-
[
|
|
1631
|
+
}, null, 8, wl), [
|
|
1632
|
+
[P, e.validation.errorMessage]
|
|
1618
1633
|
])
|
|
1619
1634
|
], 64))
|
|
1620
1635
|
]));
|
|
1621
1636
|
}
|
|
1622
|
-
}),
|
|
1623
|
-
function
|
|
1637
|
+
}), Ml = /* @__PURE__ */ H(Dl, [["__scopeId", "data-v-0b714861"]]);
|
|
1638
|
+
function Tl(e) {
|
|
1624
1639
|
try {
|
|
1625
|
-
return
|
|
1640
|
+
return ce(e);
|
|
1626
1641
|
} catch {
|
|
1627
1642
|
return;
|
|
1628
1643
|
}
|
|
1629
1644
|
}
|
|
1630
|
-
function
|
|
1645
|
+
function Sl(e) {
|
|
1631
1646
|
const s = e.value;
|
|
1632
1647
|
if (!s) return;
|
|
1633
|
-
const n =
|
|
1648
|
+
const n = Tl(s);
|
|
1634
1649
|
if (n) {
|
|
1635
1650
|
const t = e.instance?.locale;
|
|
1636
1651
|
return n(t);
|
|
1637
1652
|
}
|
|
1638
1653
|
return s;
|
|
1639
1654
|
}
|
|
1640
|
-
function
|
|
1655
|
+
function Il(e, s) {
|
|
1641
1656
|
let n = e;
|
|
1642
1657
|
const c = [s, "/", "-", "(", ")", " "];
|
|
1643
1658
|
for (const t of c)
|
|
@@ -1655,19 +1670,19 @@ function Al(e, s, n) {
|
|
|
1655
1670
|
}
|
|
1656
1671
|
return c.slice(0, s.length);
|
|
1657
1672
|
}
|
|
1658
|
-
function
|
|
1659
|
-
const n =
|
|
1673
|
+
function pl(e, s) {
|
|
1674
|
+
const n = Sl(s);
|
|
1660
1675
|
if (!n) return;
|
|
1661
|
-
const c = "#", t = e.value, d =
|
|
1676
|
+
const c = "#", t = e.value, d = Il(t, c);
|
|
1662
1677
|
if (d) {
|
|
1663
1678
|
const y = Al(d, n, c), k = s.instance;
|
|
1664
1679
|
k?.maskFilled && (k.maskFilled = !y.includes(c)), e.value = y;
|
|
1665
1680
|
} else
|
|
1666
1681
|
e.value = n;
|
|
1667
1682
|
}
|
|
1668
|
-
const
|
|
1683
|
+
const Ll = { class: "aform_form-element" }, ql = { class: "aform_display-value" }, Fl = { class: "aform_field-label" }, _l = ["id", "disabled", "maxlength", "required"], Cl = ["for"], Bl = ["innerHTML"], Rl = /* @__PURE__ */ V({
|
|
1669
1684
|
__name: "ATextInput",
|
|
1670
|
-
props: /* @__PURE__ */
|
|
1685
|
+
props: /* @__PURE__ */ Q({
|
|
1671
1686
|
schema: {},
|
|
1672
1687
|
label: {},
|
|
1673
1688
|
selectRange: { type: Boolean },
|
|
@@ -1683,11 +1698,11 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
|
|
|
1683
1698
|
}),
|
|
1684
1699
|
emits: ["update:modelValue"],
|
|
1685
1700
|
setup(e) {
|
|
1686
|
-
const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n =
|
|
1687
|
-
return (t, d) => (u(), m("div",
|
|
1701
|
+
const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = I(!0), c = G(e, "modelValue");
|
|
1702
|
+
return (t, d) => (u(), m("div", Ll, [
|
|
1688
1703
|
e.mode === "display" ? (u(), m(L, { key: 0 }, [
|
|
1689
|
-
a("span",
|
|
1690
|
-
a("label",
|
|
1704
|
+
a("span", ql, g(c.value ?? ""), 1),
|
|
1705
|
+
a("label", Fl, g(e.label), 1)
|
|
1691
1706
|
], 64)) : (u(), m(L, { key: 1 }, [
|
|
1692
1707
|
p(a("input", {
|
|
1693
1708
|
id: e.uuid,
|
|
@@ -1696,26 +1711,26 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
|
|
|
1696
1711
|
disabled: e.mode === "read",
|
|
1697
1712
|
maxlength: e.mask && n.value ? e.mask.length : void 0,
|
|
1698
1713
|
required: e.required
|
|
1699
|
-
}, null, 8,
|
|
1714
|
+
}, null, 8, _l), [
|
|
1700
1715
|
[Y, c.value],
|
|
1701
|
-
[
|
|
1716
|
+
[J(pl), e.mask]
|
|
1702
1717
|
]),
|
|
1703
1718
|
a("label", {
|
|
1704
1719
|
class: "aform_field-label",
|
|
1705
1720
|
for: e.uuid
|
|
1706
|
-
}, g(e.label), 9,
|
|
1721
|
+
}, g(e.label), 9, Cl),
|
|
1707
1722
|
p(a("p", {
|
|
1708
1723
|
class: "aform_error",
|
|
1709
1724
|
innerHTML: s.value
|
|
1710
|
-
}, null, 8,
|
|
1711
|
-
[
|
|
1725
|
+
}, null, 8, Bl), [
|
|
1726
|
+
[P, s.value]
|
|
1712
1727
|
])
|
|
1713
1728
|
], 64))
|
|
1714
1729
|
]));
|
|
1715
1730
|
}
|
|
1716
|
-
}),
|
|
1731
|
+
}), Vl = { class: "aform_form-element" }, Nl = { class: "aform_display-value aform_textbox-display" }, Ul = { class: "aform_field-label" }, Hl = ["id", "placeholder", "rows", "maxlength", "disabled", "required"], El = ["for"], Kl = ["innerHTML"], Pl = /* @__PURE__ */ V({
|
|
1717
1732
|
__name: "ATextboxInput",
|
|
1718
|
-
props: /* @__PURE__ */
|
|
1733
|
+
props: /* @__PURE__ */ Q({
|
|
1719
1734
|
schema: {},
|
|
1720
1735
|
label: {},
|
|
1721
1736
|
selectRange: { type: Boolean },
|
|
@@ -1735,10 +1750,10 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
|
|
|
1735
1750
|
emits: ["update:modelValue"],
|
|
1736
1751
|
setup(e) {
|
|
1737
1752
|
const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue");
|
|
1738
|
-
return (c, t) => (u(), m("div",
|
|
1753
|
+
return (c, t) => (u(), m("div", Vl, [
|
|
1739
1754
|
e.mode === "display" ? (u(), m(L, { key: 0 }, [
|
|
1740
|
-
a("span",
|
|
1741
|
-
a("label",
|
|
1755
|
+
a("span", Nl, g(n.value ?? ""), 1),
|
|
1756
|
+
a("label", Ul, g(e.label), 1)
|
|
1742
1757
|
], 64)) : (u(), m(L, { key: 1 }, [
|
|
1743
1758
|
p(a("textarea", {
|
|
1744
1759
|
id: e.uuid,
|
|
@@ -1755,20 +1770,20 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
|
|
|
1755
1770
|
a("label", {
|
|
1756
1771
|
class: "aform_field-label",
|
|
1757
1772
|
for: e.uuid
|
|
1758
|
-
}, g(e.label), 9,
|
|
1773
|
+
}, g(e.label), 9, El),
|
|
1759
1774
|
p(a("p", {
|
|
1760
1775
|
class: "aform_error",
|
|
1761
1776
|
innerHTML: s.value
|
|
1762
|
-
}, null, 8,
|
|
1763
|
-
[
|
|
1777
|
+
}, null, 8, Kl), [
|
|
1778
|
+
[P, s.value]
|
|
1764
1779
|
])
|
|
1765
1780
|
], 64))
|
|
1766
1781
|
]));
|
|
1767
1782
|
}
|
|
1768
|
-
}),
|
|
1783
|
+
}), Ql = /* @__PURE__ */ H(Pl, [["__scopeId", "data-v-2a9c793b"]]), Yl = { class: "login-container" }, Gl = { class: "account-container" }, zl = { class: "account-header" }, Wl = { id: "account-title" }, Jl = { id: "account-subtitle" }, Xl = { class: "login-form-container" }, Zl = { class: "login-form-email aform_form-element" }, Ol = ["disabled"], jl = { class: "login-form-password aform_form-element" }, en = ["disabled"], tn = ["disabled"], an = {
|
|
1769
1784
|
key: 0,
|
|
1770
1785
|
class: "material-symbols-outlined loading-icon"
|
|
1771
|
-
},
|
|
1786
|
+
}, ln = /* @__PURE__ */ V({
|
|
1772
1787
|
__name: "Login",
|
|
1773
1788
|
props: {
|
|
1774
1789
|
headerTitle: { default: "Login" },
|
|
@@ -1776,7 +1791,7 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
|
|
|
1776
1791
|
},
|
|
1777
1792
|
emits: ["loginFailed", "loginSuccess"],
|
|
1778
1793
|
setup(e, { emit: s }) {
|
|
1779
|
-
const n = s, c =
|
|
1794
|
+
const n = s, c = I(""), t = I(""), d = I(!1), y = I(!1);
|
|
1780
1795
|
function k(v) {
|
|
1781
1796
|
if (v.preventDefault(), d.value = !0, y.value) {
|
|
1782
1797
|
d.value = !1, n("loginFailed");
|
|
@@ -1784,16 +1799,16 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
|
|
|
1784
1799
|
}
|
|
1785
1800
|
d.value = !1, n("loginSuccess");
|
|
1786
1801
|
}
|
|
1787
|
-
return (v, h) => (u(), m("div",
|
|
1802
|
+
return (v, h) => (u(), m("div", Yl, [
|
|
1788
1803
|
a("div", null, [
|
|
1789
|
-
a("div",
|
|
1790
|
-
a("div",
|
|
1791
|
-
a("h1",
|
|
1792
|
-
a("p",
|
|
1804
|
+
a("div", Gl, [
|
|
1805
|
+
a("div", zl, [
|
|
1806
|
+
a("h1", Wl, g(e.headerTitle), 1),
|
|
1807
|
+
a("p", Jl, g(e.headerSubtitle), 1)
|
|
1793
1808
|
]),
|
|
1794
1809
|
a("form", { onSubmit: k }, [
|
|
1795
|
-
a("div",
|
|
1796
|
-
a("div",
|
|
1810
|
+
a("div", Xl, [
|
|
1811
|
+
a("div", Zl, [
|
|
1797
1812
|
h[2] || (h[2] = a("label", {
|
|
1798
1813
|
id: "login-email",
|
|
1799
1814
|
for: "email",
|
|
@@ -1810,11 +1825,11 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
|
|
|
1810
1825
|
"auto-complete": "email",
|
|
1811
1826
|
"auto-correct": "off",
|
|
1812
1827
|
disabled: d.value
|
|
1813
|
-
}, null, 8,
|
|
1828
|
+
}, null, 8, Ol), [
|
|
1814
1829
|
[Y, c.value]
|
|
1815
1830
|
])
|
|
1816
1831
|
]),
|
|
1817
|
-
a("div",
|
|
1832
|
+
a("div", jl, [
|
|
1818
1833
|
h[3] || (h[3] = a("label", {
|
|
1819
1834
|
id: "login-password",
|
|
1820
1835
|
for: "password",
|
|
@@ -1827,7 +1842,7 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
|
|
|
1827
1842
|
name: "password",
|
|
1828
1843
|
type: "password",
|
|
1829
1844
|
disabled: d.value
|
|
1830
|
-
}, null, 8,
|
|
1845
|
+
}, null, 8, en), [
|
|
1831
1846
|
[Y, t.value]
|
|
1832
1847
|
])
|
|
1833
1848
|
]),
|
|
@@ -1836,9 +1851,9 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
|
|
|
1836
1851
|
disabled: d.value || !c.value || !t.value,
|
|
1837
1852
|
onClick: k
|
|
1838
1853
|
}, [
|
|
1839
|
-
d.value ? (u(), m("span",
|
|
1854
|
+
d.value ? (u(), m("span", an, "progress_activity")) : B("", !0),
|
|
1840
1855
|
h[4] || (h[4] = a("span", { id: "login-form-button" }, "Login", -1))
|
|
1841
|
-
], 8,
|
|
1856
|
+
], 8, tn)
|
|
1842
1857
|
])
|
|
1843
1858
|
], 32),
|
|
1844
1859
|
h[5] || (h[5] = a("button", { class: "btn" }, [
|
|
@@ -1848,40 +1863,40 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
|
|
|
1848
1863
|
])
|
|
1849
1864
|
]));
|
|
1850
1865
|
}
|
|
1851
|
-
}),
|
|
1852
|
-
function
|
|
1853
|
-
return u(), m("div",
|
|
1866
|
+
}), vn = /* @__PURE__ */ H(ln, [["__scopeId", "data-v-2c0f0634"]]), nn = {}, on = { class: "aform-loading" }, sn = { class: "aform-loading__label" };
|
|
1867
|
+
function un(e, s) {
|
|
1868
|
+
return u(), m("div", on, [
|
|
1854
1869
|
a("div", sn, [
|
|
1855
|
-
|
|
1870
|
+
fe(e.$slots, "default", {}, void 0, !0)
|
|
1856
1871
|
]),
|
|
1857
1872
|
s[0] || (s[0] = a("div", { class: "aform-loading__bar" }, null, -1))
|
|
1858
1873
|
]);
|
|
1859
1874
|
}
|
|
1860
|
-
const
|
|
1861
|
-
function
|
|
1862
|
-
e.use(
|
|
1875
|
+
const dn = /* @__PURE__ */ H(nn, [["render", un], ["__scopeId", "data-v-274f5ba3"]]);
|
|
1876
|
+
function yn(e) {
|
|
1877
|
+
e.use(Le), e.component("ACheckbox", We), e.component("ACurrencyInput", It), e.component("ADate", la), e.component("ADropdown", va), e.component("ADatePicker", Te), e.component("ADateTime", me), e.component("ADateRange", pa), e.component("ADateSelection", se), e.component("AFieldset", Va), e.component("AFileAttach", Ya), e.component("AForm", Se), e.component("AFormLink", Me), e.component("ANumericInput", Oa), e.component("AQuantityInput", Ml), e.component("ATextInput", Rl), e.component("ATextboxInput", Ql), e.component("ADuration", wa), e.component("AFormLoading", dn);
|
|
1863
1878
|
}
|
|
1864
1879
|
export {
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1880
|
+
We as ACheckbox,
|
|
1881
|
+
It as ACurrencyInput,
|
|
1882
|
+
la as ADate,
|
|
1883
|
+
Te as ADatePicker,
|
|
1884
|
+
pa as ADateRange,
|
|
1885
|
+
se as ADateSelection,
|
|
1886
|
+
me as ADateTime,
|
|
1887
|
+
va as ADropdown,
|
|
1888
|
+
wa as ADuration,
|
|
1889
|
+
Va as AFieldset,
|
|
1890
|
+
Ya as AFileAttach,
|
|
1891
|
+
Se as AForm,
|
|
1892
|
+
Me as AFormLink,
|
|
1893
|
+
dn as AFormLoading,
|
|
1894
|
+
Oa as ANumericInput,
|
|
1895
|
+
Ml as AQuantityInput,
|
|
1896
|
+
Rl as ATextInput,
|
|
1897
|
+
Ql as ATextboxInput,
|
|
1898
|
+
vn as Login,
|
|
1899
|
+
ce as deserializeFunction,
|
|
1900
|
+
yn as install
|
|
1886
1901
|
};
|
|
1887
1902
|
//# sourceMappingURL=aform.js.map
|