@stonecrop/aform 0.6.3 → 0.7.1
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 +11 -14
- package/dist/aform.js +58 -58
- 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/dist/src/types/index.d.ts +1 -1
- package/package.json +23 -23
- package/src/components/AForm.vue +3 -3
- package/src/components/form/ACheckbox.vue +2 -9
- package/src/components/form/ADate.vue +2 -3
- package/src/components/form/ANumericInput.vue +2 -9
- package/src/components/form/ATextInput.vue +2 -10
- package/src/types/index.ts +1 -1
package/dist/aform.d.ts
CHANGED
|
@@ -139,7 +139,7 @@ export declare type ComponentProps = {
|
|
|
139
139
|
* Indicate whether elements inside the component are read-only
|
|
140
140
|
* @public
|
|
141
141
|
*/
|
|
142
|
-
|
|
142
|
+
readOnly?: boolean;
|
|
143
143
|
/**
|
|
144
144
|
* Set a unique identifier for elements inside the component
|
|
145
145
|
* @public
|
|
@@ -260,7 +260,7 @@ name: string;
|
|
|
260
260
|
align?: CanvasTextAlign | undefined;
|
|
261
261
|
edit?: boolean | undefined;
|
|
262
262
|
label?: string | undefined;
|
|
263
|
-
|
|
263
|
+
fieldtype?: string | undefined;
|
|
264
264
|
width?: string | undefined;
|
|
265
265
|
pinned?: boolean | undefined;
|
|
266
266
|
resizable?: boolean | undefined;
|
|
@@ -284,7 +284,7 @@ name: string;
|
|
|
284
284
|
align?: CanvasTextAlign | undefined;
|
|
285
285
|
edit?: boolean | undefined;
|
|
286
286
|
label?: string | undefined;
|
|
287
|
-
|
|
287
|
+
fieldtype?: string | undefined;
|
|
288
288
|
width?: string | undefined;
|
|
289
289
|
pinned?: boolean | undefined;
|
|
290
290
|
resizable?: boolean | undefined;
|
|
@@ -554,7 +554,7 @@ name: string;
|
|
|
554
554
|
align?: CanvasTextAlign | undefined;
|
|
555
555
|
edit?: boolean | undefined;
|
|
556
556
|
label?: string | undefined;
|
|
557
|
-
|
|
557
|
+
fieldtype?: string | undefined;
|
|
558
558
|
width?: string | undefined;
|
|
559
559
|
pinned?: boolean | undefined;
|
|
560
560
|
resizable?: boolean | undefined;
|
|
@@ -578,7 +578,7 @@ name: string;
|
|
|
578
578
|
align?: CanvasTextAlign | undefined;
|
|
579
579
|
edit?: boolean | undefined;
|
|
580
580
|
label?: string | undefined;
|
|
581
|
-
|
|
581
|
+
fieldtype?: string | undefined;
|
|
582
582
|
width?: string | undefined;
|
|
583
583
|
pinned?: boolean | undefined;
|
|
584
584
|
resizable?: boolean | undefined;
|
|
@@ -848,7 +848,7 @@ name: string;
|
|
|
848
848
|
align?: CanvasTextAlign | undefined;
|
|
849
849
|
edit?: boolean | undefined;
|
|
850
850
|
label?: string | undefined;
|
|
851
|
-
|
|
851
|
+
fieldtype?: string | undefined;
|
|
852
852
|
width?: string | undefined;
|
|
853
853
|
pinned?: boolean | undefined;
|
|
854
854
|
resizable?: boolean | undefined;
|
|
@@ -872,7 +872,7 @@ name: string;
|
|
|
872
872
|
align?: CanvasTextAlign | undefined;
|
|
873
873
|
edit?: boolean | undefined;
|
|
874
874
|
label?: string | undefined;
|
|
875
|
-
|
|
875
|
+
fieldtype?: string | undefined;
|
|
876
876
|
width?: string | undefined;
|
|
877
877
|
pinned?: boolean | undefined;
|
|
878
878
|
resizable?: boolean | undefined;
|
|
@@ -1403,15 +1403,12 @@ export declare interface TableColumn {
|
|
|
1403
1403
|
*/
|
|
1404
1404
|
label?: string;
|
|
1405
1405
|
/**
|
|
1406
|
-
* The
|
|
1407
|
-
*
|
|
1408
|
-
* - `Select` - the column contains a select input
|
|
1409
|
-
* - `Date` - the column contains a date input
|
|
1410
|
-
* - `component` - the column contains a custom component
|
|
1406
|
+
* The semantic field type of the column. Uses the same StonecropFieldType enum as forms.
|
|
1407
|
+
* Common values: 'Data', 'Text', 'Int', 'Float', 'Date', 'Select', 'Link', 'Check', etc.
|
|
1411
1408
|
*
|
|
1412
|
-
* @
|
|
1409
|
+
* @public
|
|
1413
1410
|
*/
|
|
1414
|
-
|
|
1411
|
+
fieldtype?: string;
|
|
1415
1412
|
/**
|
|
1416
1413
|
* The width of the column. This can be a number (in pixels) or a string (in CSS units).
|
|
1417
1414
|
*
|
package/dist/aform.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, mergeModels as z, useModel as q, createElementBlock as b, openBlock as g, createElementVNode as c, withDirectives as E, toDisplayString as M, vModelCheckbox as
|
|
1
|
+
import { defineComponent as C, mergeModels as z, useModel as q, createElementBlock as b, openBlock as g, createElementVNode as c, withDirectives as E, toDisplayString as M, vModelCheckbox as Oe, vShow as U, resolveComponent as Pe, createBlock as le, withCtx as Fe, useTemplateRef as xe, vModelText as H, watch as P, getCurrentScope as De, onScopeDispose as Ee, toRef as Re, readonly as Me, ref as x, customRef as He, computed as T, watchEffect as ae, toValue as w, unref as S, shallowRef as G, reactive as Be, normalizeClass as X, withKeys as F, Fragment as j, renderList as Y, withModifiers as Ie, onMounted as se, onBeforeUnmount as qe, getCurrentInstance as Ue, nextTick as We, resolveDynamicComponent as Ne, mergeProps as je, renderSlot as Ye, createTextVNode as Ae, createCommentVNode as re, createVNode as Ke } from "vue";
|
|
2
2
|
import './assets/index.css';const ze = { class: "aform_form-element" }, Ge = ["for"], Je = { class: "aform_checkbox-container aform_input-field" }, Qe = ["id", "readonly", "required"], Xe = ["innerHTML"], Ze = /* @__PURE__ */ C({
|
|
3
3
|
__name: "ACheckbox",
|
|
4
4
|
props: /* @__PURE__ */ z({
|
|
@@ -6,7 +6,7 @@ import './assets/index.css';const ze = { class: "aform_form-element" }, Ge = ["f
|
|
|
6
6
|
label: {},
|
|
7
7
|
mask: {},
|
|
8
8
|
required: { type: Boolean },
|
|
9
|
-
|
|
9
|
+
readOnly: { type: Boolean },
|
|
10
10
|
uuid: {},
|
|
11
11
|
validation: { default: () => ({ errorMessage: " " }) }
|
|
12
12
|
}, {
|
|
@@ -27,10 +27,10 @@ import './assets/index.css';const ze = { class: "aform_form-element" }, Ge = ["f
|
|
|
27
27
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
|
|
28
28
|
type: "checkbox",
|
|
29
29
|
class: "aform_checkbox",
|
|
30
|
-
readonly: e.
|
|
30
|
+
readonly: e.readOnly,
|
|
31
31
|
required: e.required
|
|
32
32
|
}, null, 8, Qe), [
|
|
33
|
-
[
|
|
33
|
+
[Oe, t.value]
|
|
34
34
|
])
|
|
35
35
|
]),
|
|
36
36
|
E(c("p", {
|
|
@@ -46,18 +46,18 @@ import './assets/index.css';const ze = { class: "aform_form-element" }, Ge = ["f
|
|
|
46
46
|
for (const [o, a] of t)
|
|
47
47
|
n[o] = a;
|
|
48
48
|
return n;
|
|
49
|
-
}, et = /* @__PURE__ */ L(Ze, [["__scopeId", "data-v-
|
|
49
|
+
}, et = /* @__PURE__ */ L(Ze, [["__scopeId", "data-v-f13fd4d6"]]), tt = /* @__PURE__ */ C({
|
|
50
50
|
__name: "AComboBox",
|
|
51
51
|
props: ["event", "cellData", "tableID"],
|
|
52
52
|
setup(e) {
|
|
53
53
|
return (t, n) => {
|
|
54
|
-
const o =
|
|
54
|
+
const o = Pe("ATableModal");
|
|
55
55
|
return g(), le(o, {
|
|
56
56
|
event: e.event,
|
|
57
57
|
"cell-data": e.cellData,
|
|
58
58
|
class: "amodal"
|
|
59
59
|
}, {
|
|
60
|
-
default:
|
|
60
|
+
default: Fe(() => [...n[0] || (n[0] = [
|
|
61
61
|
c("div", null, [
|
|
62
62
|
c("input", { type: "text" }),
|
|
63
63
|
c("input", { type: "text" }),
|
|
@@ -75,7 +75,7 @@ import './assets/index.css';const ze = { class: "aform_form-element" }, Ge = ["f
|
|
|
75
75
|
label: { default: "Date" },
|
|
76
76
|
mask: {},
|
|
77
77
|
required: { type: Boolean },
|
|
78
|
-
|
|
78
|
+
readOnly: { type: Boolean },
|
|
79
79
|
uuid: {},
|
|
80
80
|
validation: { default: () => ({ errorMessage: " " }) }
|
|
81
81
|
}, {
|
|
@@ -98,7 +98,7 @@ import './assets/index.css';const ze = { class: "aform_form-element" }, Ge = ["f
|
|
|
98
98
|
ref: "date",
|
|
99
99
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
100
100
|
type: "date",
|
|
101
|
-
disabled: e.
|
|
101
|
+
disabled: e.readOnly,
|
|
102
102
|
required: e.required,
|
|
103
103
|
onClick: o
|
|
104
104
|
}, null, 8, nt), [
|
|
@@ -112,7 +112,7 @@ import './assets/index.css';const ze = { class: "aform_form-element" }, Ge = ["f
|
|
|
112
112
|
])
|
|
113
113
|
]));
|
|
114
114
|
}
|
|
115
|
-
}), st = /* @__PURE__ */ L(at, [["__scopeId", "data-v-
|
|
115
|
+
}), st = /* @__PURE__ */ L(at, [["__scopeId", "data-v-a15ed922"]]);
|
|
116
116
|
function Te(e, t) {
|
|
117
117
|
return De() ? (Ee(e, t), !0) : !1;
|
|
118
118
|
}
|
|
@@ -139,7 +139,7 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
|
139
139
|
const rt = Object.prototype.toString, it = (e) => rt.call(e) === "[object Object]", N = () => {
|
|
140
140
|
}, ut = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
|
|
141
141
|
function ct(...e) {
|
|
142
|
-
if (e.length !== 1) return
|
|
142
|
+
if (e.length !== 1) return Re(...e);
|
|
143
143
|
const t = e[0];
|
|
144
144
|
return typeof t == "function" ? Me(He(() => ({
|
|
145
145
|
get: t,
|
|
@@ -150,13 +150,13 @@ function Z(e) {
|
|
|
150
150
|
return Array.isArray(e) ? e : [e];
|
|
151
151
|
}
|
|
152
152
|
function dt(e, t, n) {
|
|
153
|
-
return
|
|
153
|
+
return P(e, t, {
|
|
154
154
|
...n,
|
|
155
155
|
immediate: !0
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
const $e = Ce ? window : void 0, ft = Ce ? window.document : void 0;
|
|
159
|
-
function
|
|
159
|
+
function R(e) {
|
|
160
160
|
var t;
|
|
161
161
|
const n = w(e);
|
|
162
162
|
return (t = n?.$el) !== null && t !== void 0 ? t : n;
|
|
@@ -169,7 +169,7 @@ function ee(...e) {
|
|
|
169
169
|
return dt(() => {
|
|
170
170
|
var o, a;
|
|
171
171
|
return [
|
|
172
|
-
(o = (a = n.value) === null || a === void 0 ? void 0 : a.map((s) =>
|
|
172
|
+
(o = (a = n.value) === null || a === void 0 ? void 0 : a.map((s) => R(s))) !== null && o !== void 0 ? o : [$e].filter((s) => s != null),
|
|
173
173
|
Z(w(n.value ? e[1] : e[0])),
|
|
174
174
|
Z(S(n.value ? e[2] : e[1])),
|
|
175
175
|
w(n.value ? e[3] : e[2])
|
|
@@ -193,7 +193,7 @@ function me(e, t, n = {}) {
|
|
|
193
193
|
const u = (f) => w(a).some((h) => {
|
|
194
194
|
if (typeof h == "string") return Array.from(o.document.querySelectorAll(h)).some((D) => D === f.target || f.composedPath().includes(D));
|
|
195
195
|
{
|
|
196
|
-
const D =
|
|
196
|
+
const D = R(h);
|
|
197
197
|
return D && (f.target === D || f.composedPath().includes(D));
|
|
198
198
|
}
|
|
199
199
|
});
|
|
@@ -206,7 +206,7 @@ function me(e, t, n = {}) {
|
|
|
206
206
|
return y == null || !Array.isArray(y) ? !1 : y.some((k) => k.el === h.target || h.composedPath().includes(k.el));
|
|
207
207
|
}
|
|
208
208
|
const d = (f) => {
|
|
209
|
-
const h =
|
|
209
|
+
const h = R(e);
|
|
210
210
|
if (f.target != null && !(!(h instanceof Element) && v(e) && m(e, f)) && !(!h || h === f.target || f.composedPath().includes(h))) {
|
|
211
211
|
if ("detail" in f && f.detail === 0 && (i = !u(f)), !i) {
|
|
212
212
|
i = !0;
|
|
@@ -226,13 +226,13 @@ function me(e, t, n = {}) {
|
|
|
226
226
|
capture: s
|
|
227
227
|
}),
|
|
228
228
|
ee(o, "pointerdown", (f) => {
|
|
229
|
-
const h =
|
|
229
|
+
const h = R(e);
|
|
230
230
|
i = !u(f) && !!(h && !f.composedPath().includes(h));
|
|
231
231
|
}, { passive: !0 }),
|
|
232
232
|
l && ee(o, "blur", (f) => {
|
|
233
233
|
setTimeout(() => {
|
|
234
234
|
var h;
|
|
235
|
-
const D =
|
|
235
|
+
const D = R(e);
|
|
236
236
|
((h = o.document.activeElement) === null || h === void 0 ? void 0 : h.tagName) === "IFRAME" && !D?.contains(o.document.activeElement) && t(f);
|
|
237
237
|
}, 0);
|
|
238
238
|
}, { passive: !0 })
|
|
@@ -263,7 +263,7 @@ function vt(e) {
|
|
|
263
263
|
function pt(e = {}) {
|
|
264
264
|
const { document: t = ft } = e, n = x(vt(e.initialFiles)), { on: o, trigger: a } = /* @__PURE__ */ fe(), { on: s, trigger: l } = /* @__PURE__ */ fe(), r = T(() => {
|
|
265
265
|
var m;
|
|
266
|
-
const d = (m =
|
|
266
|
+
const d = (m = R(e.input)) !== null && m !== void 0 ? m : t ? t.createElement("input") : void 0;
|
|
267
267
|
return d && (d.type = "file", d.onchange = (p) => {
|
|
268
268
|
n.value = p.target.files, a(n.value);
|
|
269
269
|
}, d.oncancel = () => {
|
|
@@ -301,7 +301,7 @@ const ne = /* @__PURE__ */ new WeakMap();
|
|
|
301
301
|
function ht(e, t = !1) {
|
|
302
302
|
const n = G(t);
|
|
303
303
|
let o = "";
|
|
304
|
-
|
|
304
|
+
P(ct(e), (l) => {
|
|
305
305
|
const r = te(w(l));
|
|
306
306
|
if (r) {
|
|
307
307
|
const i = r;
|
|
@@ -348,7 +348,7 @@ function yt() {
|
|
|
348
348
|
if (t.value = o.value, e) return;
|
|
349
349
|
e = !0;
|
|
350
350
|
const a = ht(n, o.value);
|
|
351
|
-
|
|
351
|
+
P(t, (s) => a.value = s);
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
354
|
yt();
|
|
@@ -428,11 +428,11 @@ const bt = { class: "input-wrapper" }, wt = {
|
|
|
428
428
|
onInput: a,
|
|
429
429
|
onFocus: l,
|
|
430
430
|
onKeydown: [
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
431
|
+
F(u, ["down"]),
|
|
432
|
+
F(v, ["up"]),
|
|
433
|
+
F(m, ["enter"]),
|
|
434
|
+
F(o, ["esc"]),
|
|
435
|
+
F(o, ["tab"])
|
|
436
436
|
]
|
|
437
437
|
}, null, 544), [
|
|
438
438
|
[H, t.value]
|
|
@@ -464,7 +464,7 @@ function Q(e) {
|
|
|
464
464
|
return Array.isArray(e) ? e : [e];
|
|
465
465
|
}
|
|
466
466
|
function $t(e, t, n) {
|
|
467
|
-
return
|
|
467
|
+
return P(e, t, {
|
|
468
468
|
...n,
|
|
469
469
|
immediate: !0
|
|
470
470
|
});
|
|
@@ -513,7 +513,7 @@ function _t(e, t, n = {}) {
|
|
|
513
513
|
let s;
|
|
514
514
|
const l = /* @__PURE__ */ Lt(() => o && "MutationObserver" in o), r = () => {
|
|
515
515
|
s && (s.disconnect(), s = void 0);
|
|
516
|
-
}, i =
|
|
516
|
+
}, i = P(T(() => {
|
|
517
517
|
const m = Q(w(e)).map(B).filter(It);
|
|
518
518
|
return new Set(m);
|
|
519
519
|
}), (m) => {
|
|
@@ -554,7 +554,7 @@ function Vt(e, t, n = {}) {
|
|
|
554
554
|
return Se(u), u;
|
|
555
555
|
}
|
|
556
556
|
// @__NO_SIDE_EFFECTS__
|
|
557
|
-
function
|
|
557
|
+
function Ot(e = {}) {
|
|
558
558
|
var t;
|
|
559
559
|
const { window: n = W, deep: o = !0, triggerOnRemoval: a = !1 } = e, s = (t = e.document) !== null && t !== void 0 ? t : n?.document, l = () => {
|
|
560
560
|
let u = s?.activeElement;
|
|
@@ -575,14 +575,14 @@ function Pt(e = {}) {
|
|
|
575
575
|
}
|
|
576
576
|
return a && Vt(r, i, { document: s }), i(), r;
|
|
577
577
|
}
|
|
578
|
-
const
|
|
578
|
+
const Pt = "focusin", Ft = "focusout", Rt = ":focus-within";
|
|
579
579
|
function Ht(e, t = {}) {
|
|
580
580
|
const { window: n = W } = t, o = T(() => B(e)), a = G(!1), s = T(() => a.value);
|
|
581
|
-
if (!n || !(/* @__PURE__ */
|
|
581
|
+
if (!n || !(/* @__PURE__ */ Ot(t)).value) return { focused: s };
|
|
582
582
|
const l = { passive: !0 };
|
|
583
|
-
return K(o,
|
|
583
|
+
return K(o, Pt, () => a.value = !0, l), K(o, Ft, () => {
|
|
584
584
|
var r, i, u;
|
|
585
|
-
return a.value = (r = (i = o.value) === null || i === void 0 || (u = i.matches) === null || u === void 0 ? void 0 : u.call(i,
|
|
585
|
+
return a.value = (r = (i = o.value) === null || i === void 0 || (u = i.matches) === null || u === void 0 ? void 0 : u.call(i, Rt)) !== null && r !== void 0 ? r : !1;
|
|
586
586
|
}, l), { focused: s };
|
|
587
587
|
}
|
|
588
588
|
function Bt(e, { window: t = W, scrollTarget: n } = {}) {
|
|
@@ -596,7 +596,7 @@ function Bt(e, { window: t = W, scrollTarget: n } = {}) {
|
|
|
596
596
|
o.value = r.top <= (t.innerHeight || s.documentElement.clientHeight) && r.left <= (t.innerWidth || s.documentElement.clientWidth) && r.bottom >= 0 && r.right >= 0;
|
|
597
597
|
}
|
|
598
598
|
};
|
|
599
|
-
return
|
|
599
|
+
return P(
|
|
600
600
|
() => B(e),
|
|
601
601
|
() => a(),
|
|
602
602
|
{ immediate: !0, flush: "post" }
|
|
@@ -814,7 +814,7 @@ function Nt(e) {
|
|
|
814
814
|
for (const l of e) {
|
|
815
815
|
const r = t(l), i = o(l), u = a(l), v = r ? [r] : i;
|
|
816
816
|
for (const m of v) {
|
|
817
|
-
const { focused: d } = Ht(x(m)), p =
|
|
817
|
+
const { focused: d } = Ht(x(m)), p = P(d, (I) => {
|
|
818
818
|
I ? m.addEventListener("keydown", u) : m.removeEventListener("keydown", u);
|
|
819
819
|
});
|
|
820
820
|
s.push(p);
|
|
@@ -854,10 +854,10 @@ const jt = {
|
|
|
854
854
|
const i = () => {
|
|
855
855
|
l.value = [];
|
|
856
856
|
const y = new Date(s.value, a.value, 1), k = y.getDay(), $ = y.setDate(y.getDate() - k);
|
|
857
|
-
for (const
|
|
858
|
-
l.value.push($ +
|
|
857
|
+
for (const O of Array(43).keys())
|
|
858
|
+
l.value.push($ + O * 864e5);
|
|
859
859
|
};
|
|
860
|
-
|
|
860
|
+
P([a, s], i);
|
|
861
861
|
const u = () => s.value -= 1, v = () => s.value += 1, m = () => {
|
|
862
862
|
a.value == 0 ? (a.value = 11, u()) : a.value -= 1;
|
|
863
863
|
}, d = () => {
|
|
@@ -914,20 +914,20 @@ const jt = {
|
|
|
914
914
|
c("td", null, "S")
|
|
915
915
|
], -1)),
|
|
916
916
|
(g(), b(j, null, Y(zt, ($) => c("tr", { key: $ }, [
|
|
917
|
-
(g(), b(j, null, Y(we, (
|
|
917
|
+
(g(), b(j, null, Y(we, (O) => c("td", {
|
|
918
918
|
ref_for: !0,
|
|
919
919
|
ref: "celldate",
|
|
920
|
-
key: A($,
|
|
920
|
+
key: A($, O),
|
|
921
921
|
contenteditable: !1,
|
|
922
922
|
spellcheck: !1,
|
|
923
923
|
tabindex: 0,
|
|
924
924
|
class: X({
|
|
925
|
-
todaysDate: p(f($,
|
|
926
|
-
selectedDate: I(f($,
|
|
925
|
+
todaysDate: p(f($, O)),
|
|
926
|
+
selectedDate: I(f($, O))
|
|
927
927
|
}),
|
|
928
|
-
onClick: Ie((Ve) => h(A($,
|
|
929
|
-
onKeydown:
|
|
930
|
-
}, M(new Date(f($,
|
|
928
|
+
onClick: Ie((Ve) => h(A($, O)), ["prevent", "stop"]),
|
|
929
|
+
onKeydown: F((Ve) => h(A($, O)), ["enter"])
|
|
930
|
+
}, M(new Date(f($, O)).getDate()), 43, Kt)), 64))
|
|
931
931
|
])), 64))
|
|
932
932
|
])
|
|
933
933
|
])
|
|
@@ -948,7 +948,7 @@ const jt = {
|
|
|
948
948
|
props: {
|
|
949
949
|
modelValue: {},
|
|
950
950
|
data: {},
|
|
951
|
-
|
|
951
|
+
readOnly: { type: Boolean }
|
|
952
952
|
},
|
|
953
953
|
emits: ["update:modelValue"],
|
|
954
954
|
setup(e, { emit: t }) {
|
|
@@ -982,11 +982,11 @@ const jt = {
|
|
|
982
982
|
"onUpdate:modelValue": (v) => s.value[u].value = v,
|
|
983
983
|
schema: i,
|
|
984
984
|
data: o.value[i.fieldname],
|
|
985
|
-
|
|
986
|
-
}, { ref_for: !0 }, a(i)), null, 16, ["modelValue", "onUpdate:modelValue", "schema", "data", "
|
|
985
|
+
readOnly: e.readOnly
|
|
986
|
+
}, { ref_for: !0 }, a(i)), null, 16, ["modelValue", "onUpdate:modelValue", "schema", "data", "readOnly"]))), 128))
|
|
987
987
|
]));
|
|
988
988
|
}
|
|
989
|
-
}), _e = /* @__PURE__ */ L(en, [["__scopeId", "data-v-
|
|
989
|
+
}), _e = /* @__PURE__ */ L(en, [["__scopeId", "data-v-5336a410"]]), tn = /* @__PURE__ */ C({
|
|
990
990
|
__name: "AFieldset",
|
|
991
991
|
props: {
|
|
992
992
|
schema: {},
|
|
@@ -1060,7 +1060,7 @@ const jt = {
|
|
|
1060
1060
|
label: {},
|
|
1061
1061
|
mask: {},
|
|
1062
1062
|
required: { type: Boolean },
|
|
1063
|
-
|
|
1063
|
+
readOnly: { type: Boolean },
|
|
1064
1064
|
uuid: {},
|
|
1065
1065
|
validation: { default: () => ({ errorMessage: " " }) }
|
|
1066
1066
|
}, {
|
|
@@ -1076,7 +1076,7 @@ const jt = {
|
|
|
1076
1076
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
|
|
1077
1077
|
class: "aform_input-field",
|
|
1078
1078
|
type: "number",
|
|
1079
|
-
disabled: e.
|
|
1079
|
+
disabled: e.readOnly,
|
|
1080
1080
|
required: e.required
|
|
1081
1081
|
}, null, 8, cn), [
|
|
1082
1082
|
[H, t.value]
|
|
@@ -1156,7 +1156,7 @@ const bn = { class: "aform_form-element" }, wn = ["id", "disabled", "maxlength",
|
|
|
1156
1156
|
label: {},
|
|
1157
1157
|
mask: {},
|
|
1158
1158
|
required: { type: Boolean },
|
|
1159
|
-
|
|
1159
|
+
readOnly: { type: Boolean },
|
|
1160
1160
|
uuid: {},
|
|
1161
1161
|
validation: { default: () => ({ errorMessage: " " }) }
|
|
1162
1162
|
}, {
|
|
@@ -1171,7 +1171,7 @@ const bn = { class: "aform_form-element" }, wn = ["id", "disabled", "maxlength",
|
|
|
1171
1171
|
id: e.uuid,
|
|
1172
1172
|
"onUpdate:modelValue": a[0] || (a[0] = (s) => n.value = s),
|
|
1173
1173
|
class: "aform_input-field",
|
|
1174
|
-
disabled: e.
|
|
1174
|
+
disabled: e.readOnly,
|
|
1175
1175
|
maxlength: e.mask && t.value ? e.mask.length : void 0,
|
|
1176
1176
|
required: e.required
|
|
1177
1177
|
}, null, 8, wn), [
|
|
@@ -1190,10 +1190,10 @@ const bn = { class: "aform_form-element" }, wn = ["id", "disabled", "maxlength",
|
|
|
1190
1190
|
])
|
|
1191
1191
|
]));
|
|
1192
1192
|
}
|
|
1193
|
-
}), En = { class: "login-container" }, Mn = { class: "account-container" }, In = { class: "account-header" }, An = { id: "account-title" }, Tn = { id: "account-subtitle" }, Cn = { class: "login-form-container" }, $n = { class: "login-form-email aform_form-element" }, Sn = ["disabled"], Ln = { class: "login-form-password aform_form-element" }, _n = ["disabled"], Vn = ["disabled"],
|
|
1193
|
+
}), En = { class: "login-container" }, Mn = { class: "account-container" }, In = { class: "account-header" }, An = { id: "account-title" }, Tn = { id: "account-subtitle" }, Cn = { class: "login-form-container" }, $n = { class: "login-form-email aform_form-element" }, Sn = ["disabled"], Ln = { class: "login-form-password aform_form-element" }, _n = ["disabled"], Vn = ["disabled"], On = {
|
|
1194
1194
|
key: 0,
|
|
1195
1195
|
class: "material-symbols-outlined loading-icon"
|
|
1196
|
-
},
|
|
1196
|
+
}, Pn = /* @__PURE__ */ C({
|
|
1197
1197
|
__name: "Login",
|
|
1198
1198
|
props: {
|
|
1199
1199
|
headerTitle: { default: "Login" },
|
|
@@ -1261,7 +1261,7 @@ const bn = { class: "aform_form-element" }, wn = ["id", "disabled", "maxlength",
|
|
|
1261
1261
|
disabled: s.value || !o.value || !a.value,
|
|
1262
1262
|
onClick: r
|
|
1263
1263
|
}, [
|
|
1264
|
-
s.value ? (g(), b("span",
|
|
1264
|
+
s.value ? (g(), b("span", On, "progress_activity")) : re("", !0),
|
|
1265
1265
|
u[4] || (u[4] = c("span", { id: "login-form-button" }, "Login", -1))
|
|
1266
1266
|
], 8, Vn)
|
|
1267
1267
|
])
|
|
@@ -1273,7 +1273,7 @@ const bn = { class: "aform_form-element" }, wn = ["id", "disabled", "maxlength",
|
|
|
1273
1273
|
])
|
|
1274
1274
|
]));
|
|
1275
1275
|
}
|
|
1276
|
-
}),
|
|
1276
|
+
}), Rn = /* @__PURE__ */ L(Pn, [["__scopeId", "data-v-d9ffd0a7"]]);
|
|
1277
1277
|
function Hn(e) {
|
|
1278
1278
|
e.component("ACheckbox", et), e.component("ACombobox", tt), e.component("ADate", st), e.component("ADropdown", Et), e.component("ADatePicker", Jt), e.component("AFieldset", nn), e.component("AFileAttach", rn), e.component("AForm", _e), e.component("ANumericInput", mn), e.component("ATextInput", Dn);
|
|
1279
1279
|
}
|
|
@@ -1288,7 +1288,7 @@ export {
|
|
|
1288
1288
|
_e as AForm,
|
|
1289
1289
|
mn as ANumericInput,
|
|
1290
1290
|
Dn as ATextInput,
|
|
1291
|
-
|
|
1291
|
+
Rn as Login,
|
|
1292
1292
|
Hn as install
|
|
1293
1293
|
};
|
|
1294
1294
|
//# sourceMappingURL=aform.js.map
|