@stonecrop/aform 0.16.1 → 0.16.2
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/README.md +1 -1
- package/dist/aform.d.ts +2 -2
- package/dist/aform.js +86 -80
- package/dist/aform.js.map +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +3 -3
- package/package.json +5 -5
- package/src/components/AForm.vue +12 -4
- package/src/components/form/ADropdown.vue +1 -0
- package/src/components/form/ATextboxInput.vue +66 -0
- package/src/index.ts +3 -3
- package/src/components/form/ATextarea.vue +0 -31
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Schema-driven form components for the Stonecrop framework. Renders a `ResolvedFi
|
|
|
20
20
|
| `AFormLink` | Linked document selector with search dropdown and navigation arrow |
|
|
21
21
|
| `ANumericInput` | Numeric input with type-specific formatting |
|
|
22
22
|
| `ATextInput` | Single-line text input |
|
|
23
|
-
| `
|
|
23
|
+
| `ATextboxInput` | Multi-line long-text input |
|
|
24
24
|
|
|
25
25
|
## Installation
|
|
26
26
|
|
package/dist/aform.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import AFormLoading from './components/AFormLoading.vue';
|
|
|
14
14
|
import ANumericInput from './components/form/ANumericInput.vue';
|
|
15
15
|
import type { App } from 'vue';
|
|
16
16
|
import AQuantityInput from './components/form/AQuantityInput.vue';
|
|
17
|
-
import
|
|
17
|
+
import ATextboxInput from './components/form/ATextboxInput.vue';
|
|
18
18
|
import ATextInput from './components/form/ATextInput.vue';
|
|
19
19
|
import type { ColumnSchema } from '@stonecrop/schema';
|
|
20
20
|
import type { FieldValidation } from '@stonecrop/schema';
|
|
@@ -75,7 +75,7 @@ export { ANumericInput }
|
|
|
75
75
|
|
|
76
76
|
export { AQuantityInput }
|
|
77
77
|
|
|
78
|
-
export {
|
|
78
|
+
export { ATextboxInput }
|
|
79
79
|
|
|
80
80
|
export { ATextInput }
|
|
81
81
|
|
package/dist/aform.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ne, useTemplateRef as
|
|
1
|
+
import { defineComponent as ne, useTemplateRef as be, ref as L, computed as D, onMounted as Le, openBlock as y, createElementBlock as k, unref as P, normalizeClass as ie, normalizeStyle as Ce, createBlock as me, resolveDynamicComponent as Ne, mergeProps as at, toDisplayString as H, createElementVNode as h, withModifiers as te, withDirectives as j, Fragment as z, renderList as ge, vShow as pe, createCommentVNode as Z, renderSlot as Te, createTextVNode as It, watch as oe, onBeforeUnmount as hn, nextTick as st, toValue as V, shallowRef as we, getCurrentScope as Tt, onScopeDispose as $t, reactive as rt, vModelText as he, vModelCheckbox as Kt, vModelSelect as Xt, getCurrentInstance as Dt, watchEffect as Ct, useCssVars as pn, onUnmounted as gn, useModel as Me, inject as wt, createVNode as je, withCtx as qt, mergeModels as xe, isRef as yn, toRefs as wn, customRef as At, toRef as Yt, readonly as St, withKeys as se, provide as bn } from "vue";
|
|
2
2
|
import { defineStore as xn } from "pinia";
|
|
3
3
|
import './assets/index.css';function bt(e) {
|
|
4
4
|
return Function(`"use strict"; return (${e})`)();
|
|
@@ -48,7 +48,7 @@ function ze(...e) {
|
|
|
48
48
|
}
|
|
49
49
|
// @__NO_SIDE_EFFECTS__
|
|
50
50
|
function Cn() {
|
|
51
|
-
const e =
|
|
51
|
+
const e = we(!1), t = Dt();
|
|
52
52
|
return t && Le(() => {
|
|
53
53
|
e.value = !0;
|
|
54
54
|
}, t), e;
|
|
@@ -111,7 +111,7 @@ function Rn(e = {}) {
|
|
|
111
111
|
if (a)
|
|
112
112
|
for (var p; i?.shadowRoot; ) i = i == null || (p = i.shadowRoot) === null || p === void 0 ? void 0 : p.activeElement;
|
|
113
113
|
return i;
|
|
114
|
-
}, d =
|
|
114
|
+
}, d = we(), r = () => {
|
|
115
115
|
d.value = s();
|
|
116
116
|
};
|
|
117
117
|
if (o) {
|
|
@@ -127,7 +127,7 @@ function Rn(e = {}) {
|
|
|
127
127
|
}
|
|
128
128
|
const En = "focusin", Hn = "focusout", Bn = ":focus-within";
|
|
129
129
|
function Vn(e, t = {}) {
|
|
130
|
-
const { window: o = Ge } = t, a = D(() => Ze(e)), n =
|
|
130
|
+
const { window: o = Ge } = t, a = D(() => Ze(e)), n = we(!1), l = D(() => n.value);
|
|
131
131
|
if (!o || !(/* @__PURE__ */ Rn(t)).value) return { focused: l };
|
|
132
132
|
const s = { passive: !0 };
|
|
133
133
|
return ze(a, En, () => n.value = !0, s), ze(a, Hn, () => {
|
|
@@ -575,7 +575,7 @@ function xt(e, t, o = {}) {
|
|
|
575
575
|
}
|
|
576
576
|
// @__NO_SIDE_EFFECTS__
|
|
577
577
|
function Qn() {
|
|
578
|
-
const e =
|
|
578
|
+
const e = we(!1), t = Dt();
|
|
579
579
|
return t && Le(() => {
|
|
580
580
|
e.value = !0;
|
|
581
581
|
}, t), e;
|
|
@@ -741,7 +741,7 @@ function ot(e, t, o = {}) {
|
|
|
741
741
|
};
|
|
742
742
|
}
|
|
743
743
|
function _e(e, t = {}) {
|
|
744
|
-
const { reset: o = !0, windowResize: a = !0, windowScroll: n = !0, immediate: l = !0, updateTiming: s = "sync" } = t, d =
|
|
744
|
+
const { reset: o = !0, windowResize: a = !0, windowScroll: n = !0, immediate: l = !0, updateTiming: s = "sync" } = t, d = we(0), r = we(0), i = we(0), p = we(0), v = we(0), b = we(0), x = we(0), m = we(0);
|
|
745
745
|
function g() {
|
|
746
746
|
const c = De(e);
|
|
747
747
|
if (!c) {
|
|
@@ -776,7 +776,7 @@ function ct(e) {
|
|
|
776
776
|
}
|
|
777
777
|
const vt = /* @__PURE__ */ new WeakMap();
|
|
778
778
|
function eo(e, t = !1) {
|
|
779
|
-
const o =
|
|
779
|
+
const o = we(t);
|
|
780
780
|
let a = "";
|
|
781
781
|
oe(Zn(e), (s) => {
|
|
782
782
|
const d = ct(V(s));
|
|
@@ -804,7 +804,7 @@ function eo(e, t = !1) {
|
|
|
804
804
|
}
|
|
805
805
|
const on = {
|
|
806
806
|
ATextInput: "text",
|
|
807
|
-
|
|
807
|
+
ATextboxInput: "text",
|
|
808
808
|
ANumericInput: "number",
|
|
809
809
|
ACheckbox: "boolean",
|
|
810
810
|
ADate: "date",
|
|
@@ -1223,7 +1223,7 @@ const so = (e) => {
|
|
|
1223
1223
|
debounce: { default: 300 }
|
|
1224
1224
|
},
|
|
1225
1225
|
setup(e, { expose: t }) {
|
|
1226
|
-
const o =
|
|
1226
|
+
const o = be("cell"), a = e.store.getCellData(e.colIndex, e.rowIndex), n = L(""), l = L(!1), s = e.store.columns[e.colIndex], d = e.store.rows[e.rowIndex], r = s.align || "center", i = s.width || "40ch", p = D(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), v = L(null);
|
|
1227
1227
|
Le(() => {
|
|
1228
1228
|
if (!s.linkDoctype) return;
|
|
1229
1229
|
const E = e.store.getCellData(e.colIndex, e.rowIndex);
|
|
@@ -1373,7 +1373,7 @@ const so = (e) => {
|
|
|
1373
1373
|
v564d6da1: n.value,
|
|
1374
1374
|
v4f540c19: O.colspan
|
|
1375
1375
|
}));
|
|
1376
|
-
const a = o, n = L(e.color.length >= 6 ? e.color : "#cccccc"), l = `gantt-bar-row-${e.rowIndex}-col-${e.colIndex}`, s =
|
|
1376
|
+
const a = o, n = L(e.color.length >= 6 ? e.color : "#cccccc"), l = `gantt-bar-row-${e.rowIndex}-col-${e.colIndex}`, s = be("container"), d = be("bar"), r = be("leftResizeHandle"), i = be("rightResizeHandle"), p = be("leftConnectionHandle"), v = be("rightConnectionHandle"), { width: b } = _e(s), { left: x, right: m } = _e(d), g = L(e.start), u = L(e.end || g.value + e.colspan), c = L(!1), T = L(!1), C = L(!1), I = L(!1), M = L(!1), S = L({ startX: 0, startY: 0, endX: 0, endY: 0 }), _ = D(() => $e.value || le.value || ue.value), E = D(() => e.colspan > 0 ? b.value / e.colspan : 0), F = D(() => {
|
|
1377
1377
|
const O = g.value / e.colspan * 100, G = u.value / e.colspan * 100;
|
|
1378
1378
|
return {
|
|
1379
1379
|
left: `${O}%`,
|
|
@@ -1697,7 +1697,7 @@ const so = (e) => {
|
|
|
1697
1697
|
},
|
|
1698
1698
|
emits: ["action"],
|
|
1699
1699
|
setup(e, { emit: t }) {
|
|
1700
|
-
const o = e, a = t, n =
|
|
1700
|
+
const o = e, a = t, n = be("actionsCell"), l = be("toggleButton"), s = L(0), d = L(!1), r = L(!1), i = L({ top: 0, left: 0 }), p = {
|
|
1701
1701
|
add: "Add Record",
|
|
1702
1702
|
delete: "Delete Record",
|
|
1703
1703
|
duplicate: "Duplicate Record",
|
|
@@ -1829,7 +1829,7 @@ const so = (e) => {
|
|
|
1829
1829
|
},
|
|
1830
1830
|
emits: ["row:action", "row:click"],
|
|
1831
1831
|
setup(e, { emit: t }) {
|
|
1832
|
-
const o = t, a =
|
|
1832
|
+
const o = t, a = be("rowEl"), n = D(() => e.store.isRowVisible(e.rowIndex)), l = D(() => e.store.getRowExpandSymbol(e.rowIndex)), s = D(() => e.store.config.clickable ?? !1), d = D(() => e.store.config.rowActions || { enabled: !1 }), r = D(() => d.value.enabled), i = D(() => d.value.position || "before-index"), p = D(() => e.store.config.view === "list-expansion" && !!e.store.display[e.rowIndex]?.expanded), v = D(() => {
|
|
1833
1833
|
const g = e.store.config.view === "uncounted" ? 0 : 1, u = r.value ? 1 : 0;
|
|
1834
1834
|
return e.store.columns.length + g + u;
|
|
1835
1835
|
}), b = (g, u, c) => {
|
|
@@ -1940,7 +1940,7 @@ const so = (e) => {
|
|
|
1940
1940
|
} };
|
|
1941
1941
|
function Uo() {
|
|
1942
1942
|
let e = !1;
|
|
1943
|
-
const t =
|
|
1943
|
+
const t = we(!1);
|
|
1944
1944
|
return (o, a) => {
|
|
1945
1945
|
if (t.value = a.value, e) return;
|
|
1946
1946
|
e = !0;
|
|
@@ -2265,7 +2265,7 @@ const Zo = { class: "gantt-connection-overlay" }, Go = {
|
|
|
2265
2265
|
store: {}
|
|
2266
2266
|
},
|
|
2267
2267
|
setup(e) {
|
|
2268
|
-
const t =
|
|
2268
|
+
const t = be("amodal"), { width: o, height: a } = _e(t), n = D(() => {
|
|
2269
2269
|
if (!(e.store.modal.height && e.store.modal.width && e.store.modal.left && e.store.modal.bottom)) return {};
|
|
2270
2270
|
const l = e.store.modal.cell?.closest("table");
|
|
2271
2271
|
if (!l) return {};
|
|
@@ -2311,7 +2311,7 @@ const vl = {
|
|
|
2311
2311
|
style: { position: "relative" }
|
|
2312
2312
|
}, fl = /* @__PURE__ */ ne({
|
|
2313
2313
|
__name: "ATable",
|
|
2314
|
-
props: /* @__PURE__ */
|
|
2314
|
+
props: /* @__PURE__ */ xe({
|
|
2315
2315
|
id: { default: "" },
|
|
2316
2316
|
config: { default: () => new Object() },
|
|
2317
2317
|
schema: { default: () => [] },
|
|
@@ -2322,9 +2322,9 @@ const vl = {
|
|
|
2322
2322
|
columns: {},
|
|
2323
2323
|
columnsModifiers: {}
|
|
2324
2324
|
}),
|
|
2325
|
-
emits: /* @__PURE__ */
|
|
2325
|
+
emits: /* @__PURE__ */ xe(["cellUpdate", "gantt:drag", "connection:event", "columns:update", "row:add", "row:click", "row:delete", "row:duplicate", "row:insert-above", "row:insert-below", "row:move", "row:open"], ["update:rows", "update:columns"]),
|
|
2326
2326
|
setup(e, { expose: t, emit: o }) {
|
|
2327
|
-
const a = Me(e, "rows"), n = Me(e, "columns"), l = o, s =
|
|
2327
|
+
const a = Me(e, "rows"), n = Me(e, "columns"), l = o, s = be("table"), d = n.value?.length ? n.value : cl(e.schema ?? []), r = wt("aformLinkResolver", null), i = so({
|
|
2328
2328
|
columns: d,
|
|
2329
2329
|
rows: a.value,
|
|
2330
2330
|
id: e.id,
|
|
@@ -2580,7 +2580,7 @@ function Tl(e) {
|
|
|
2580
2580
|
}
|
|
2581
2581
|
const $l = { class: "aform_form-element" }, Dl = { class: "aform_field-label" }, Cl = { class: "aform_display-value" }, Al = ["for"], Sl = { class: "aform_checkbox-container aform_input-field" }, Ll = ["id", "disabled", "required"], Rl = ["innerHTML"], El = /* @__PURE__ */ ne({
|
|
2582
2582
|
__name: "ACheckbox",
|
|
2583
|
-
props: /* @__PURE__ */
|
|
2583
|
+
props: /* @__PURE__ */ xe({
|
|
2584
2584
|
schema: {},
|
|
2585
2585
|
label: {},
|
|
2586
2586
|
selectRange: { type: Boolean },
|
|
@@ -2627,12 +2627,12 @@ const $l = { class: "aform_form-element" }, Dl = { class: "aform_field-label" },
|
|
|
2627
2627
|
], 64))
|
|
2628
2628
|
]));
|
|
2629
2629
|
}
|
|
2630
|
-
}),
|
|
2630
|
+
}), ye = (e, t) => {
|
|
2631
2631
|
const o = e.__vccOpts || e;
|
|
2632
2632
|
for (const [a, n] of t)
|
|
2633
2633
|
o[a] = n;
|
|
2634
2634
|
return o;
|
|
2635
|
-
}, Hl = /* @__PURE__ */
|
|
2635
|
+
}, Hl = /* @__PURE__ */ ye(El, [["__scopeId", "data-v-ca06741d"]]);
|
|
2636
2636
|
function dn(e, t) {
|
|
2637
2637
|
return Tt() ? ($t(e, t), !0) : !1;
|
|
2638
2638
|
}
|
|
@@ -2819,7 +2819,7 @@ function pt(e) {
|
|
|
2819
2819
|
}
|
|
2820
2820
|
const gt = /* @__PURE__ */ new WeakMap();
|
|
2821
2821
|
function Zl(e, t = !1) {
|
|
2822
|
-
const o =
|
|
2822
|
+
const o = we(t);
|
|
2823
2823
|
let a = "";
|
|
2824
2824
|
oe(Pl(e), (s) => {
|
|
2825
2825
|
const d = pt(V(s));
|
|
@@ -2854,7 +2854,7 @@ const Gl = { class: "aform_display-value" }, Wl = { key: 0 }, jl = ["innerHTML"]
|
|
|
2854
2854
|
tabindex: -1
|
|
2855
2855
|
}, Xl = { key: 0 }, Yl = { colspan: "7" }, Ql = { class: "date-input" }, Jl = ["value"], ea = ["value"], ta = ["onClick", "onKeydown", "onMouseover"], na = ["innerHTML"], oa = 6, zt = 7, la = /* @__PURE__ */ ne({
|
|
2856
2856
|
__name: "ADatePicker",
|
|
2857
|
-
props: /* @__PURE__ */
|
|
2857
|
+
props: /* @__PURE__ */ xe({
|
|
2858
2858
|
schema: {},
|
|
2859
2859
|
label: {},
|
|
2860
2860
|
selectRange: { type: Boolean, default: !1 },
|
|
@@ -2868,9 +2868,9 @@ const Gl = { class: "aform_display-value" }, Wl = { key: 0 }, jl = ["innerHTML"]
|
|
|
2868
2868
|
modelValue: { default: /* @__PURE__ */ new Date() },
|
|
2869
2869
|
modelModifiers: {}
|
|
2870
2870
|
}),
|
|
2871
|
-
emits: /* @__PURE__ */
|
|
2871
|
+
emits: /* @__PURE__ */ xe(["get-date"], ["update:modelValue"]),
|
|
2872
2872
|
setup(e, { expose: t, emit: o }) {
|
|
2873
|
-
const a = D(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = Me(e, "modelValue"), l = L(new Date(n.value)), s = L(l.value.getMonth()), d = L(l.value.getFullYear()), r = L([]), i = L(new Date(n.value)), p = L(null), v = L(null), b =
|
|
2873
|
+
const a = D(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = Me(e, "modelValue"), l = L(new Date(n.value)), s = L(l.value.getMonth()), d = L(l.value.getFullYear()), r = L([]), i = L(new Date(n.value)), p = L(null), v = L(null), b = be("start-date-input"), x = be("end-date-input"), m = o, g = D(() => new Date(d.value, s.value, 1).toLocaleDateString(void 0, {
|
|
2874
2874
|
year: "numeric",
|
|
2875
2875
|
month: "long"
|
|
2876
2876
|
})), u = D(() => p.value != null ? T(p.value) : ""), c = D(() => v.value != null ? T(v.value) : ""), T = ($) => fe($) ? $.getMonth() + 1 + "/" + $.getDate() + "/" + $.getFullYear() : "", C = ($) => {
|
|
@@ -3030,7 +3030,7 @@ const Gl = { class: "aform_display-value" }, Wl = { key: 0 }, jl = ["innerHTML"]
|
|
|
3030
3030
|
])
|
|
3031
3031
|
], 64));
|
|
3032
3032
|
}
|
|
3033
|
-
}), fn = /* @__PURE__ */
|
|
3033
|
+
}), fn = /* @__PURE__ */ ye(la, [["__scopeId", "data-v-51c0c73a"]]), aa = { class: "adate_time" }, sa = { class: "adate_time_fields" }, ra = ["onKeydown"], ia = ["onKeydown"], ua = {
|
|
3034
3034
|
key: 0,
|
|
3035
3035
|
class: "colon"
|
|
3036
3036
|
}, da = ["onKeydown"], ca = /* @__PURE__ */ ne({
|
|
@@ -3045,7 +3045,7 @@ const Gl = { class: "aform_display-value" }, Wl = { key: 0 }, jl = ["innerHTML"]
|
|
|
3045
3045
|
},
|
|
3046
3046
|
emits: ["get-time"],
|
|
3047
3047
|
setup(e, { emit: t }) {
|
|
3048
|
-
const o = t, a =
|
|
3048
|
+
const o = t, a = be("meridiem-selector"), n = rt({
|
|
3049
3049
|
hours: String(e.defaultHours).padStart(2, "0"),
|
|
3050
3050
|
minutes: String(e.defaultMinutes).padStart(2, "0"),
|
|
3051
3051
|
seconds: String(e.defaultSeconds).padStart(2, "0")
|
|
@@ -3179,7 +3179,7 @@ const Gl = { class: "aform_display-value" }, Wl = { key: 0 }, jl = ["innerHTML"]
|
|
|
3179
3179
|
])
|
|
3180
3180
|
]));
|
|
3181
3181
|
}
|
|
3182
|
-
}), Mt = /* @__PURE__ */
|
|
3182
|
+
}), Mt = /* @__PURE__ */ ye(ca, [["__scopeId", "data-v-959a3e41"]]), va = { class: "adate-selection" }, fa = {
|
|
3183
3183
|
key: 3,
|
|
3184
3184
|
class: "empty"
|
|
3185
3185
|
}, ma = /* @__PURE__ */ ne({
|
|
@@ -3255,9 +3255,9 @@ const Gl = { class: "aform_display-value" }, Wl = { key: 0 }, jl = ["innerHTML"]
|
|
|
3255
3255
|
!e.showTime && !e.showDate ? (y(), k("p", fa, "empty")) : Z("", !0)
|
|
3256
3256
|
]));
|
|
3257
3257
|
}
|
|
3258
|
-
}), it = /* @__PURE__ */
|
|
3258
|
+
}), it = /* @__PURE__ */ ye(ma, [["__scopeId", "data-v-eeadb3e2"]]), ha = { class: "aform_display-value" }, pa = ["id", "value", "disabled", "required"], ga = ["for"], ya = ["innerHTML"], wa = /* @__PURE__ */ ne({
|
|
3259
3259
|
__name: "ADate",
|
|
3260
|
-
props: /* @__PURE__ */
|
|
3260
|
+
props: /* @__PURE__ */ xe({
|
|
3261
3261
|
schema: {},
|
|
3262
3262
|
label: { default: "Date" },
|
|
3263
3263
|
selectRange: { type: Boolean },
|
|
@@ -3278,7 +3278,7 @@ const Gl = { class: "aform_display-value" }, Wl = { key: 0 }, jl = ["innerHTML"]
|
|
|
3278
3278
|
set: (r) => {
|
|
3279
3279
|
a.value = new Date(r), o.value = r;
|
|
3280
3280
|
}
|
|
3281
|
-
}), l =
|
|
3281
|
+
}), l = be("picker"), s = L(!1);
|
|
3282
3282
|
lt(l, () => s.value = !1), oe(
|
|
3283
3283
|
() => o.value,
|
|
3284
3284
|
(r) => {
|
|
@@ -3326,7 +3326,7 @@ const Gl = { class: "aform_display-value" }, Wl = { key: 0 }, jl = ["innerHTML"]
|
|
|
3326
3326
|
], 64))
|
|
3327
3327
|
]));
|
|
3328
3328
|
}
|
|
3329
|
-
}), ba = /* @__PURE__ */
|
|
3329
|
+
}), ba = /* @__PURE__ */ ye(wa, [["__scopeId", "data-v-a73c275b"]]), yt = /* @__PURE__ */ new WeakMap(), Ft = {
|
|
3330
3330
|
mounted(e, t) {
|
|
3331
3331
|
const o = !t.modifiers.bubble;
|
|
3332
3332
|
let a;
|
|
@@ -3344,7 +3344,7 @@ const Gl = { class: "aform_display-value" }, Wl = { key: 0 }, jl = ["innerHTML"]
|
|
|
3344
3344
|
};
|
|
3345
3345
|
function xa() {
|
|
3346
3346
|
let e = !1;
|
|
3347
|
-
const t =
|
|
3347
|
+
const t = we(!1);
|
|
3348
3348
|
return (o, a) => {
|
|
3349
3349
|
if (t.value = a.value, e) return;
|
|
3350
3350
|
e = !0;
|
|
@@ -3364,7 +3364,7 @@ const ka = {
|
|
|
3364
3364
|
class: "loading autocomplete-result"
|
|
3365
3365
|
}, Aa = ["onClick"], Sa = ["innerHTML"], La = /* @__PURE__ */ ne({
|
|
3366
3366
|
__name: "ADropdown",
|
|
3367
|
-
props: /* @__PURE__ */
|
|
3367
|
+
props: /* @__PURE__ */ xe({
|
|
3368
3368
|
schema: {},
|
|
3369
3369
|
label: {},
|
|
3370
3370
|
selectRange: { type: Boolean },
|
|
@@ -3482,12 +3482,12 @@ const ka = {
|
|
|
3482
3482
|
[P(Ft), l]
|
|
3483
3483
|
]);
|
|
3484
3484
|
}
|
|
3485
|
-
}), Ra = /* @__PURE__ */
|
|
3485
|
+
}), Ra = /* @__PURE__ */ ye(La, [["__scopeId", "data-v-2b75e2d5"]]), Ea = { class: "aduration" }, Ha = { class: "aform_display-value" }, Ba = { class: "aduration__footer" }, Va = {
|
|
3486
3486
|
key: 0,
|
|
3487
3487
|
class: "aduration__summary"
|
|
3488
3488
|
}, Fa = { class: "aduration__value" }, Pa = { class: "aduration__ms" }, _a = /* @__PURE__ */ ne({
|
|
3489
3489
|
__name: "ADuration",
|
|
3490
|
-
props: /* @__PURE__ */
|
|
3490
|
+
props: /* @__PURE__ */ xe({
|
|
3491
3491
|
label: { default: "Duration" },
|
|
3492
3492
|
mode: { default: "edit" },
|
|
3493
3493
|
allowMilitaryTime: { type: Boolean, default: !1 },
|
|
@@ -3544,9 +3544,9 @@ const ka = {
|
|
|
3544
3544
|
], 64))
|
|
3545
3545
|
]));
|
|
3546
3546
|
}
|
|
3547
|
-
}), qa = /* @__PURE__ */
|
|
3547
|
+
}), qa = /* @__PURE__ */ ye(_a, [["__scopeId", "data-v-22611dd6"]]), Na = { class: "adaterange" }, Oa = { class: "aform_display-value" }, Ua = ["id", "value", "disabled"], Za = ["for"], Ga = ["innerHTML"], Wa = /* @__PURE__ */ ne({
|
|
3548
3548
|
__name: "ADateRange",
|
|
3549
|
-
props: /* @__PURE__ */
|
|
3549
|
+
props: /* @__PURE__ */ xe({
|
|
3550
3550
|
schema: {},
|
|
3551
3551
|
label: { default: "Date Range" },
|
|
3552
3552
|
selectRange: { type: Boolean },
|
|
@@ -3622,7 +3622,7 @@ const ka = {
|
|
|
3622
3622
|
], 64))
|
|
3623
3623
|
]));
|
|
3624
3624
|
}
|
|
3625
|
-
}), ja = /* @__PURE__ */
|
|
3625
|
+
}), ja = /* @__PURE__ */ ye(Wa, [["__scopeId", "data-v-b5838478"]]), za = { class: "aform" }, Ka = {
|
|
3626
3626
|
key: 0,
|
|
3627
3627
|
class: "aform-nested-section"
|
|
3628
3628
|
}, Xa = {
|
|
@@ -3630,7 +3630,7 @@ const ka = {
|
|
|
3630
3630
|
class: "aform-nested-label"
|
|
3631
3631
|
}, Ya = /* @__PURE__ */ ne({
|
|
3632
3632
|
__name: "AForm",
|
|
3633
|
-
props: /* @__PURE__ */
|
|
3633
|
+
props: /* @__PURE__ */ xe({
|
|
3634
3634
|
schema: {},
|
|
3635
3635
|
mode: { default: "edit" },
|
|
3636
3636
|
errors: {}
|
|
@@ -3638,7 +3638,7 @@ const ka = {
|
|
|
3638
3638
|
data: { required: !0 },
|
|
3639
3639
|
dataModifiers: {}
|
|
3640
3640
|
}),
|
|
3641
|
-
emits: /* @__PURE__ */
|
|
3641
|
+
emits: /* @__PURE__ */ xe(["update:schema", "update:data"], ["update:data"]),
|
|
3642
3642
|
setup(e, { emit: t }) {
|
|
3643
3643
|
const o = t, a = Me(e, "data"), n = (x) => (x.kind === "link" || x.kind === "fieldset") && "schema" in x && Array.isArray(x.schema) && x.schema.length > 0, l = L({});
|
|
3644
3644
|
oe(
|
|
@@ -3705,7 +3705,7 @@ const ka = {
|
|
|
3705
3705
|
], 64))), 128))
|
|
3706
3706
|
]));
|
|
3707
3707
|
}
|
|
3708
|
-
}), mn = /* @__PURE__ */
|
|
3708
|
+
}), mn = /* @__PURE__ */ ye(Ya, [["__scopeId", "data-v-bb17171c"]]), Qa = /* @__PURE__ */ ne({
|
|
3709
3709
|
__name: "CollapseButton",
|
|
3710
3710
|
props: {
|
|
3711
3711
|
collapsed: { type: Boolean }
|
|
@@ -3715,7 +3715,7 @@ const ka = {
|
|
|
3715
3715
|
class: ie(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
|
|
3716
3716
|
}, "×", 2));
|
|
3717
3717
|
}
|
|
3718
|
-
}), Ja = /* @__PURE__ */
|
|
3718
|
+
}), Ja = /* @__PURE__ */ ye(Qa, [["__scopeId", "data-v-6f1c1b45"]]), es = /* @__PURE__ */ ne({
|
|
3719
3719
|
__name: "AFieldset",
|
|
3720
3720
|
props: {
|
|
3721
3721
|
schema: {},
|
|
@@ -3753,7 +3753,7 @@ const ka = {
|
|
|
3753
3753
|
], !0)
|
|
3754
3754
|
]));
|
|
3755
3755
|
}
|
|
3756
|
-
}), ts = /* @__PURE__ */
|
|
3756
|
+
}), ts = /* @__PURE__ */ ye(es, [["__scopeId", "data-v-162e7317"]]), ns = { class: "aform_form-element aform_file-attach aform__grid--full" }, os = {
|
|
3757
3757
|
key: 0,
|
|
3758
3758
|
class: "aform_file-attach-feedback"
|
|
3759
3759
|
}, ls = {
|
|
@@ -3815,7 +3815,7 @@ const ka = {
|
|
|
3815
3815
|
], 64))
|
|
3816
3816
|
]));
|
|
3817
3817
|
}
|
|
3818
|
-
}), us = /* @__PURE__ */
|
|
3818
|
+
}), us = /* @__PURE__ */ ye(is, [["__scopeId", "data-v-8eefd179"]]), ds = { class: "aform_form-element" }, cs = {
|
|
3819
3819
|
key: 0,
|
|
3820
3820
|
class: "aform_display-value"
|
|
3821
3821
|
}, vs = { class: "aform_form-link-wrapper" }, fs = { class: "input-group" }, ms = ["disabled", "onKeydown"], hs = ["onKeydown"], ps = {
|
|
@@ -3829,7 +3829,7 @@ const ka = {
|
|
|
3829
3829
|
class: "aform_field-label"
|
|
3830
3830
|
}, bs = /* @__PURE__ */ ne({
|
|
3831
3831
|
__name: "AFormLink",
|
|
3832
|
-
props: /* @__PURE__ */
|
|
3832
|
+
props: /* @__PURE__ */ xe({
|
|
3833
3833
|
schema: {},
|
|
3834
3834
|
label: {},
|
|
3835
3835
|
selectRange: { type: Boolean },
|
|
@@ -3951,9 +3951,9 @@ const ka = {
|
|
|
3951
3951
|
], 64))
|
|
3952
3952
|
]));
|
|
3953
3953
|
}
|
|
3954
|
-
}), xs = /* @__PURE__ */
|
|
3954
|
+
}), xs = /* @__PURE__ */ ye(bs, [["__scopeId", "data-v-4b68886b"]]), ks = { class: "aform_form-element" }, Ms = { class: "aform_display-value" }, Is = { class: "aform_field-label" }, Ts = ["id", "disabled", "required"], $s = ["for"], Ds = ["innerHTML"], Cs = /* @__PURE__ */ ne({
|
|
3955
3955
|
__name: "ANumericInput",
|
|
3956
|
-
props: /* @__PURE__ */
|
|
3956
|
+
props: /* @__PURE__ */ xe({
|
|
3957
3957
|
schema: {},
|
|
3958
3958
|
label: {},
|
|
3959
3959
|
selectRange: { type: Boolean },
|
|
@@ -4000,7 +4000,7 @@ const ka = {
|
|
|
4000
4000
|
}
|
|
4001
4001
|
}), As = { class: "aform_form-element aquantity" }, Ss = { class: "aform_display-value" }, Ls = { class: "aform_field-label" }, Rs = { class: "aquantity__row" }, Es = { class: "aquantity__field aquantity__field--qty" }, Hs = { class: "aquantity__group" }, Bs = ["id", "disabled", "required"], Vs = { class: "aquantity__uom" }, Fs = ["id", "disabled", "aria-expanded", "aria-activedescendant", "onKeydown"], Ps = { class: "aquantity__uom-value" }, _s = ["aria-label"], qs = ["id", "aria-selected", "onMouseenter", "onClick"], Ns = ["for"], Os = { class: "aquantity__row aquantity__row--stock" }, Us = { class: "aquantity__field aquantity__field--stock-uom" }, Zs = ["value"], Gs = { class: "aform_field-label" }, Ws = { class: "aquantity__field aquantity__field--stock-qty" }, js = ["value"], zs = { class: "aform_field-label" }, Ks = { class: "aquantity__field aquantity__field--conversion" }, Xs = ["value"], Ys = { class: "aform_field-label" }, Qs = ["innerHTML"], Js = /* @__PURE__ */ ne({
|
|
4002
4002
|
__name: "AQuantityInput",
|
|
4003
|
-
props: /* @__PURE__ */
|
|
4003
|
+
props: /* @__PURE__ */ xe({
|
|
4004
4004
|
schema: {},
|
|
4005
4005
|
label: {},
|
|
4006
4006
|
selectRange: { type: Boolean },
|
|
@@ -4206,7 +4206,7 @@ const ka = {
|
|
|
4206
4206
|
], 64))
|
|
4207
4207
|
]));
|
|
4208
4208
|
}
|
|
4209
|
-
}), er = /* @__PURE__ */
|
|
4209
|
+
}), er = /* @__PURE__ */ ye(Js, [["__scopeId", "data-v-75e7ebee"]]);
|
|
4210
4210
|
function tr(e) {
|
|
4211
4211
|
try {
|
|
4212
4212
|
return bt(e);
|
|
@@ -4254,7 +4254,7 @@ function ar(e, t) {
|
|
|
4254
4254
|
}
|
|
4255
4255
|
const sr = { class: "aform_form-element" }, rr = { class: "aform_display-value" }, ir = { class: "aform_field-label" }, ur = ["id", "disabled", "maxlength", "required"], dr = ["for"], cr = ["innerHTML"], vr = /* @__PURE__ */ ne({
|
|
4256
4256
|
__name: "ATextInput",
|
|
4257
|
-
props: /* @__PURE__ */
|
|
4257
|
+
props: /* @__PURE__ */ xe({
|
|
4258
4258
|
schema: {},
|
|
4259
4259
|
label: {},
|
|
4260
4260
|
selectRange: { type: Boolean },
|
|
@@ -4300,9 +4300,9 @@ const sr = { class: "aform_form-element" }, rr = { class: "aform_display-value"
|
|
|
4300
4300
|
], 64))
|
|
4301
4301
|
]));
|
|
4302
4302
|
}
|
|
4303
|
-
}), fr = { class: "aform_form-element" }, mr = { class: "aform_display-value" }, hr = { class: "aform_field-label" }, pr = ["id", "disabled", "required"], gr = ["for"], yr = ["innerHTML"], wr = /* @__PURE__ */ ne({
|
|
4304
|
-
__name: "
|
|
4305
|
-
props: /* @__PURE__ */
|
|
4303
|
+
}), fr = { class: "aform_form-element" }, mr = { class: "aform_display-value aform_textbox-display" }, hr = { class: "aform_field-label" }, pr = ["id", "placeholder", "rows", "maxlength", "disabled", "required"], gr = ["for"], yr = ["innerHTML"], wr = /* @__PURE__ */ ne({
|
|
4304
|
+
__name: "ATextboxInput",
|
|
4305
|
+
props: /* @__PURE__ */ xe({
|
|
4306
4306
|
schema: {},
|
|
4307
4307
|
label: {},
|
|
4308
4308
|
selectRange: { type: Boolean },
|
|
@@ -4311,7 +4311,10 @@ const sr = { class: "aform_form-element" }, rr = { class: "aform_display-value"
|
|
|
4311
4311
|
mode: {},
|
|
4312
4312
|
uuid: {},
|
|
4313
4313
|
validation: { default: () => ({ errorMessage: "" }) },
|
|
4314
|
-
errors: {}
|
|
4314
|
+
errors: {},
|
|
4315
|
+
placeholder: { default: "" },
|
|
4316
|
+
rows: { default: 4 },
|
|
4317
|
+
maxlength: {}
|
|
4315
4318
|
}, {
|
|
4316
4319
|
modelValue: {},
|
|
4317
4320
|
modelModifiers: {}
|
|
@@ -4327,7 +4330,10 @@ const sr = { class: "aform_form-element" }, rr = { class: "aform_display-value"
|
|
|
4327
4330
|
j(h("textarea", {
|
|
4328
4331
|
id: e.uuid,
|
|
4329
4332
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => o.value = l),
|
|
4330
|
-
class: "aform_input-field
|
|
4333
|
+
class: "aform_input-field aform_textbox",
|
|
4334
|
+
placeholder: e.placeholder,
|
|
4335
|
+
rows: e.rows,
|
|
4336
|
+
maxlength: e.maxlength,
|
|
4331
4337
|
disabled: e.mode === "read",
|
|
4332
4338
|
required: e.required
|
|
4333
4339
|
}, null, 8, pr), [
|
|
@@ -4346,10 +4352,10 @@ const sr = { class: "aform_form-element" }, rr = { class: "aform_display-value"
|
|
|
4346
4352
|
], 64))
|
|
4347
4353
|
]));
|
|
4348
4354
|
}
|
|
4349
|
-
}), br = { class: "login-container" },
|
|
4355
|
+
}), br = /* @__PURE__ */ ye(wr, [["__scopeId", "data-v-2a9c793b"]]), xr = { class: "login-container" }, kr = { class: "account-container" }, Mr = { class: "account-header" }, Ir = { id: "account-title" }, Tr = { id: "account-subtitle" }, $r = { class: "login-form-container" }, Dr = { class: "login-form-email aform_form-element" }, Cr = ["disabled"], Ar = { class: "login-form-password aform_form-element" }, Sr = ["disabled"], Lr = ["disabled"], Rr = {
|
|
4350
4356
|
key: 0,
|
|
4351
4357
|
class: "material-symbols-outlined loading-icon"
|
|
4352
|
-
},
|
|
4358
|
+
}, Er = /* @__PURE__ */ ne({
|
|
4353
4359
|
__name: "Login",
|
|
4354
4360
|
props: {
|
|
4355
4361
|
headerTitle: { default: "Login" },
|
|
@@ -4365,16 +4371,16 @@ const sr = { class: "aform_form-element" }, rr = { class: "aform_display-value"
|
|
|
4365
4371
|
}
|
|
4366
4372
|
l.value = !1, o("loginSuccess");
|
|
4367
4373
|
}
|
|
4368
|
-
return (r, i) => (y(), k("div",
|
|
4374
|
+
return (r, i) => (y(), k("div", xr, [
|
|
4369
4375
|
h("div", null, [
|
|
4370
|
-
h("div",
|
|
4371
|
-
h("div",
|
|
4372
|
-
h("h1",
|
|
4373
|
-
h("p",
|
|
4376
|
+
h("div", kr, [
|
|
4377
|
+
h("div", Mr, [
|
|
4378
|
+
h("h1", Ir, H(e.headerTitle), 1),
|
|
4379
|
+
h("p", Tr, H(e.headerSubtitle), 1)
|
|
4374
4380
|
]),
|
|
4375
4381
|
h("form", { onSubmit: d }, [
|
|
4376
|
-
h("div",
|
|
4377
|
-
h("div",
|
|
4382
|
+
h("div", $r, [
|
|
4383
|
+
h("div", Dr, [
|
|
4378
4384
|
i[2] || (i[2] = h("label", {
|
|
4379
4385
|
id: "login-email",
|
|
4380
4386
|
for: "email",
|
|
@@ -4391,11 +4397,11 @@ const sr = { class: "aform_form-element" }, rr = { class: "aform_display-value"
|
|
|
4391
4397
|
"auto-complete": "email",
|
|
4392
4398
|
"auto-correct": "off",
|
|
4393
4399
|
disabled: l.value
|
|
4394
|
-
}, null, 8,
|
|
4400
|
+
}, null, 8, Cr), [
|
|
4395
4401
|
[he, a.value]
|
|
4396
4402
|
])
|
|
4397
4403
|
]),
|
|
4398
|
-
h("div",
|
|
4404
|
+
h("div", Ar, [
|
|
4399
4405
|
i[3] || (i[3] = h("label", {
|
|
4400
4406
|
id: "login-password",
|
|
4401
4407
|
for: "password",
|
|
@@ -4408,7 +4414,7 @@ const sr = { class: "aform_form-element" }, rr = { class: "aform_display-value"
|
|
|
4408
4414
|
name: "password",
|
|
4409
4415
|
type: "password",
|
|
4410
4416
|
disabled: l.value
|
|
4411
|
-
}, null, 8,
|
|
4417
|
+
}, null, 8, Sr), [
|
|
4412
4418
|
[he, n.value]
|
|
4413
4419
|
])
|
|
4414
4420
|
]),
|
|
@@ -4417,9 +4423,9 @@ const sr = { class: "aform_form-element" }, rr = { class: "aform_display-value"
|
|
|
4417
4423
|
disabled: l.value || !a.value || !n.value,
|
|
4418
4424
|
onClick: d
|
|
4419
4425
|
}, [
|
|
4420
|
-
l.value ? (y(), k("span",
|
|
4426
|
+
l.value ? (y(), k("span", Rr, "progress_activity")) : Z("", !0),
|
|
4421
4427
|
i[4] || (i[4] = h("span", { id: "login-form-button" }, "Login", -1))
|
|
4422
|
-
], 8,
|
|
4428
|
+
], 8, Lr)
|
|
4423
4429
|
])
|
|
4424
4430
|
], 32),
|
|
4425
4431
|
i[5] || (i[5] = h("button", { class: "btn" }, [
|
|
@@ -4429,18 +4435,18 @@ const sr = { class: "aform_form-element" }, rr = { class: "aform_display-value"
|
|
|
4429
4435
|
])
|
|
4430
4436
|
]));
|
|
4431
4437
|
}
|
|
4432
|
-
}),
|
|
4433
|
-
function
|
|
4434
|
-
return y(), k("div",
|
|
4435
|
-
h("div",
|
|
4438
|
+
}), Nr = /* @__PURE__ */ ye(Er, [["__scopeId", "data-v-2c0f0634"]]), Hr = {}, Br = { class: "aform-loading" }, Vr = { class: "aform-loading__label" };
|
|
4439
|
+
function Fr(e, t) {
|
|
4440
|
+
return y(), k("div", Br, [
|
|
4441
|
+
h("div", Vr, [
|
|
4436
4442
|
Te(e.$slots, "default", {}, void 0, !0)
|
|
4437
4443
|
]),
|
|
4438
4444
|
t[0] || (t[0] = h("div", { class: "aform-loading__bar" }, null, -1))
|
|
4439
4445
|
]);
|
|
4440
4446
|
}
|
|
4441
|
-
const
|
|
4442
|
-
function
|
|
4443
|
-
e.use(Tl), e.component("ACheckbox", Hl), e.component("ADate", ba), e.component("ADropdown", Ra), e.component("ADatePicker", fn), e.component("ADateTime", Mt), e.component("ADateRange", ja), e.component("ADateSelection", it), e.component("AFieldset", ts), e.component("AFileAttach", us), e.component("AForm", mn), e.component("AFormLink", xs), e.component("ANumericInput", Cs), e.component("AQuantityInput", er), e.component("ATextInput", vr), e.component("
|
|
4447
|
+
const Pr = /* @__PURE__ */ ye(Hr, [["render", Fr], ["__scopeId", "data-v-274f5ba3"]]);
|
|
4448
|
+
function Or(e) {
|
|
4449
|
+
e.use(Tl), e.component("ACheckbox", Hl), e.component("ADate", ba), e.component("ADropdown", Ra), e.component("ADatePicker", fn), e.component("ADateTime", Mt), e.component("ADateRange", ja), e.component("ADateSelection", it), e.component("AFieldset", ts), e.component("AFileAttach", us), e.component("AForm", mn), e.component("AFormLink", xs), e.component("ANumericInput", Cs), e.component("AQuantityInput", er), e.component("ATextInput", vr), e.component("ATextboxInput", br), e.component("ADuration", qa), e.component("AFormLoading", Pr);
|
|
4444
4450
|
}
|
|
4445
4451
|
export {
|
|
4446
4452
|
Hl as ACheckbox,
|
|
@@ -4455,13 +4461,13 @@ export {
|
|
|
4455
4461
|
us as AFileAttach,
|
|
4456
4462
|
mn as AForm,
|
|
4457
4463
|
xs as AFormLink,
|
|
4458
|
-
|
|
4464
|
+
Pr as AFormLoading,
|
|
4459
4465
|
Cs as ANumericInput,
|
|
4460
4466
|
er as AQuantityInput,
|
|
4461
4467
|
vr as ATextInput,
|
|
4462
|
-
|
|
4463
|
-
|
|
4468
|
+
br as ATextboxInput,
|
|
4469
|
+
Nr as Login,
|
|
4464
4470
|
bt as deserializeFunction,
|
|
4465
|
-
|
|
4471
|
+
Or as install
|
|
4466
4472
|
};
|
|
4467
4473
|
//# sourceMappingURL=aform.js.map
|