@stonecrop/aform 0.28.0 → 0.30.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.js +16 -12
- package/dist/aform.js.map +1 -1
- package/dist/assets/index.css +1 -1
- package/package.json +5 -5
- package/src/components/AForm.vue +1 -1
- package/src/components/AFormLoading.vue +1 -1
- package/src/components/base/ExpandButton.vue +1 -1
- package/src/components/form/ABadge.vue +3 -3
- package/src/components/form/ACurrencyInput.vue +1 -1
- package/src/components/form/ADatePicker.vue +1 -1
- package/src/components/form/ADateSelection.vue +1 -1
- package/src/components/form/ADropdown.vue +1 -1
- package/src/components/form/ADuration.vue +3 -3
- package/src/components/form/AFormLink.vue +13 -2
- package/src/components/form/AQuantityInput.vue +3 -3
- package/dist/theme/custom_themes.css +0 -6
- package/dist/theme/fields.css +0 -84
- package/dist/theme/login.css +0 -1
- package/dist/theme/purple_theme.css +0 -9
- package/src/theme/custom_themes.css +0 -6
- package/src/theme/fields.css +0 -84
- package/src/theme/login.css +0 -1
- package/src/theme/purple_theme.css +0 -9
package/dist/aform.js
CHANGED
|
@@ -178,7 +178,11 @@ const Oe = { class: "aform_form-element" }, je = { class: "aform_field-label" },
|
|
|
178
178
|
X(
|
|
179
179
|
() => A(o.value),
|
|
180
180
|
async (T) => {
|
|
181
|
-
if (
|
|
181
|
+
if (T && c(o.value)) {
|
|
182
|
+
d.value = a.value;
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
if (T)
|
|
182
186
|
try {
|
|
183
187
|
let V, P;
|
|
184
188
|
if (e.filterFunction ? (V = (await (typeof e.filterFunction == "string" ? le(e.filterFunction) : e.filterFunction)(String(T))).find((ce) => String(ce.id) === String(T)), P = V?.displayText, P === void 0 && console.warn(
|
|
@@ -292,7 +296,7 @@ const Oe = { class: "aform_form-element" }, je = { class: "aform_field-label" },
|
|
|
292
296
|
], 64))
|
|
293
297
|
], 2));
|
|
294
298
|
}
|
|
295
|
-
}), Le = /* @__PURE__ */ R(bt, [["__scopeId", "data-v-
|
|
299
|
+
}), Le = /* @__PURE__ */ R(bt, [["__scopeId", "data-v-91a761d0"]]), gt = { class: "aform_form-element acurrency" }, ht = { class: "aform_display-value" }, kt = { class: "aform_field-label" }, $t = { class: "acurrency__row" }, xt = { class: "acurrency__field acurrency__field--amount" }, Dt = { class: "acurrency__group" }, wt = { class: "acurrency__currency" }, Mt = { class: "acurrency__amount-wrap" }, Tt = ["id", "disabled", "required"], St = ["for"], At = { class: "acurrency__row acurrency__row--base" }, pt = { class: "acurrency__field acurrency__field--base-currency" }, It = ["value"], Lt = { class: "aform_field-label" }, _t = { class: "acurrency__field acurrency__field--base-amount" }, Bt = ["value"], Ct = { class: "aform_field-label" }, qt = { class: "acurrency__field acurrency__field--exchange-rate" }, Ft = ["value"], Vt = { class: "aform_field-label" }, Rt = ["innerHTML"], Me = 6, Ht = /* @__PURE__ */ F({
|
|
296
300
|
__name: "ACurrencyInput",
|
|
297
301
|
props: /* @__PURE__ */ E({
|
|
298
302
|
schema: {},
|
|
@@ -489,7 +493,7 @@ const Oe = { class: "aform_form-element" }, je = { class: "aform_field-label" },
|
|
|
489
493
|
], 64))
|
|
490
494
|
]));
|
|
491
495
|
}
|
|
492
|
-
}), Nt = /* @__PURE__ */ R(Ht, [["__scopeId", "data-v-
|
|
496
|
+
}), Nt = /* @__PURE__ */ R(Ht, [["__scopeId", "data-v-77852830"]]), Ut = { class: "aform_display-value" }, Et = { key: 0 }, Pt = ["innerHTML"], Kt = {
|
|
493
497
|
ref: "datepicker",
|
|
494
498
|
class: "adatepicker",
|
|
495
499
|
tabindex: "0"
|
|
@@ -676,7 +680,7 @@ const Oe = { class: "aform_form-element" }, je = { class: "aform_field-label" },
|
|
|
676
680
|
])
|
|
677
681
|
], 64));
|
|
678
682
|
}
|
|
679
|
-
}), _e = /* @__PURE__ */ R(jt, [["__scopeId", "data-v-
|
|
683
|
+
}), _e = /* @__PURE__ */ R(jt, [["__scopeId", "data-v-ef698187"]]), ea = { class: "adate_time" }, ta = { class: "adate_time_fields" }, aa = ["onKeydown"], la = ["onKeydown"], na = {
|
|
680
684
|
key: 0,
|
|
681
685
|
class: "colon"
|
|
682
686
|
}, oa = ["onKeydown"], sa = /* @__PURE__ */ F({
|
|
@@ -903,7 +907,7 @@ const Oe = { class: "aform_form-element" }, je = { class: "aform_field-label" },
|
|
|
903
907
|
!e.showTime && !e.showDate ? (u(), m("p", ua, "empty")) : q("", !0)
|
|
904
908
|
]));
|
|
905
909
|
}
|
|
906
|
-
}), ne = /* @__PURE__ */ R(ra, [["__scopeId", "data-v-
|
|
910
|
+
}), ne = /* @__PURE__ */ R(ra, [["__scopeId", "data-v-36e737ea"]]), da = { class: "aform_form-element" }, ca = { class: "aform_display-value" }, ma = { class: "aform_field-label" }, fa = ["id", "disabled", "required"], va = ["for"], ya = ["innerHTML"], ba = /* @__PURE__ */ F({
|
|
907
911
|
__name: "ADate",
|
|
908
912
|
props: /* @__PURE__ */ E({
|
|
909
913
|
schema: {},
|
|
@@ -1117,7 +1121,7 @@ const Oe = { class: "aform_form-element" }, je = { class: "aform_field-label" },
|
|
|
1117
1121
|
], 64))
|
|
1118
1122
|
]));
|
|
1119
1123
|
}
|
|
1120
|
-
}), pa = /* @__PURE__ */ R(Aa, [["__scopeId", "data-v-
|
|
1124
|
+
}), pa = /* @__PURE__ */ R(Aa, [["__scopeId", "data-v-4206fcf7"]]), Ia = /* @__PURE__ */ F({
|
|
1121
1125
|
__name: "ABadge",
|
|
1122
1126
|
props: {
|
|
1123
1127
|
label: {},
|
|
@@ -1156,7 +1160,7 @@ const Oe = { class: "aform_form-element" }, je = { class: "aform_field-label" },
|
|
|
1156
1160
|
style: ie(h.value)
|
|
1157
1161
|
}, k(r.value), 7)) : q("", !0);
|
|
1158
1162
|
}
|
|
1159
|
-
}), Be = /* @__PURE__ */ R(Ia, [["__scopeId", "data-v-
|
|
1163
|
+
}), Be = /* @__PURE__ */ R(Ia, [["__scopeId", "data-v-f99dd564"]]), La = {
|
|
1160
1164
|
key: 1,
|
|
1161
1165
|
class: "aform_display-value"
|
|
1162
1166
|
}, _a = ["id"], Ba = ["role", "aria-labelledby", "aria-label", "aria-busy"], Ca = ["data-segment-value"], qa = ["name", "value", "disabled"], Fa = ["name", "value", "disabled"], Va = { class: "aform_segmented-label" }, Ra = ["innerHTML"], Ha = /* @__PURE__ */ F({
|
|
@@ -1444,7 +1448,7 @@ const Oe = { class: "aform_form-element" }, je = { class: "aform_field-label" },
|
|
|
1444
1448
|
], 64))
|
|
1445
1449
|
]));
|
|
1446
1450
|
}
|
|
1447
|
-
}), tl = /* @__PURE__ */ R(el, [["__scopeId", "data-v-
|
|
1451
|
+
}), tl = /* @__PURE__ */ R(el, [["__scopeId", "data-v-43788a3d"]]), al = { class: "aform_form-element" }, ll = { class: "aform_display-value" }, nl = { class: "aform_field-label" }, ol = ["id", "value", "disabled"], sl = ["for"], il = ["innerHTML"], ul = /* @__PURE__ */ F({
|
|
1448
1452
|
__name: "ADateRange",
|
|
1449
1453
|
props: /* @__PURE__ */ E({
|
|
1450
1454
|
schema: {},
|
|
@@ -1611,7 +1615,7 @@ const Oe = { class: "aform_form-element" }, je = { class: "aform_field-label" },
|
|
|
1611
1615
|
], 64))), 128))
|
|
1612
1616
|
]));
|
|
1613
1617
|
}
|
|
1614
|
-
}), Ce = /* @__PURE__ */ R(fl, [["__scopeId", "data-v-
|
|
1618
|
+
}), Ce = /* @__PURE__ */ R(fl, [["__scopeId", "data-v-713aca93"]]), vl = /* @__PURE__ */ F({
|
|
1615
1619
|
__name: "CollapseButton",
|
|
1616
1620
|
props: {
|
|
1617
1621
|
collapsed: { type: Boolean }
|
|
@@ -1976,7 +1980,7 @@ const Oe = { class: "aform_form-element" }, je = { class: "aform_field-label" },
|
|
|
1976
1980
|
], 64))
|
|
1977
1981
|
]));
|
|
1978
1982
|
}
|
|
1979
|
-
}), nn = /* @__PURE__ */ R(ln, [["__scopeId", "data-v-
|
|
1983
|
+
}), nn = /* @__PURE__ */ R(ln, [["__scopeId", "data-v-f16b20ca"]]);
|
|
1980
1984
|
function on(e) {
|
|
1981
1985
|
try {
|
|
1982
1986
|
return le(e);
|
|
@@ -2214,7 +2218,7 @@ function Pn(e, l) {
|
|
|
2214
2218
|
l[0] || (l[0] = t("div", { class: "aform-loading__bar" }, null, -1))
|
|
2215
2219
|
]);
|
|
2216
2220
|
}
|
|
2217
|
-
const Kn = /* @__PURE__ */ R(Nn, [["render", Pn], ["__scopeId", "data-v-
|
|
2221
|
+
const Kn = /* @__PURE__ */ R(Nn, [["render", Pn], ["__scopeId", "data-v-a8ae13b2"]]), Qn = ["aria-expanded", "aria-label"], Gn = /* @__PURE__ */ F({
|
|
2218
2222
|
__name: "ExpandButton",
|
|
2219
2223
|
props: {
|
|
2220
2224
|
expanded: { type: Boolean }
|
|
@@ -2227,7 +2231,7 @@ const Kn = /* @__PURE__ */ R(Nn, [["render", Pn], ["__scopeId", "data-v-274f5ba3
|
|
|
2227
2231
|
"aria-label": e.expanded ? "Collapse" : "Expand"
|
|
2228
2232
|
}, k(e.expanded ? "▼" : "►"), 9, Qn));
|
|
2229
2233
|
}
|
|
2230
|
-
}), Yn = /* @__PURE__ */ R(Gn, [["__scopeId", "data-v-
|
|
2234
|
+
}), Yn = /* @__PURE__ */ R(Gn, [["__scopeId", "data-v-5ed76a08"]]);
|
|
2231
2235
|
function jn(e) {
|
|
2232
2236
|
e.use(Ne), e.component("ACheckbox", st), e.component("ACurrencyInput", Nt), e.component("ADate", ga), e.component("ADropdown", pa), e.component("ASegmentedControl", Na), e.component("ABadge", Be), e.component("ADatePicker", _e), e.component("ADateTime", za), e.component("ADateTimeInput", ve), e.component("ADateRange", rl), e.component("ADateSelection", ne), e.component("AFieldset", gl), e.component("AFileAttach", Tl), e.component("AForm", Ce), e.component("AFormLink", Le), e.component("ANumericInput", Bl), e.component("AQuantityInput", nn), e.component("ATextInput", gn), e.component("ATextboxInput", Tn), e.component("ADuration", tl), e.component("AFormLoading", Kn), e.component("ExpandButton", Yn);
|
|
2233
2237
|
}
|