@atscript/vue-form 0.1.166 → 0.1.168
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/{as-array-B2axGw3v.mjs → as-array-C9mBBhOv.mjs} +6 -6
- package/dist/{as-array-C97cLzdA.cjs → as-array-ChGQxnvj.cjs} +6 -6
- package/dist/{as-array-clear-btn-BBFccQjO.cjs → as-array-clear-btn-QX7jyfrl.cjs} +2 -2
- package/dist/{as-array-clear-btn-DEH8a3_N.mjs → as-array-clear-btn-oKQHiamf.mjs} +2 -2
- package/dist/as-array.cjs +1 -1
- package/dist/as-array.mjs +1 -1
- package/dist/{as-checkbox-BO8xW0OM.mjs → as-checkbox-BOyH1Yfs.mjs} +3 -3
- package/dist/{as-checkbox-Wn-PmHi-.cjs → as-checkbox-Cbm2qmFH.cjs} +3 -3
- package/dist/as-checkbox.cjs +1 -1
- package/dist/as-checkbox.mjs +1 -1
- package/dist/{as-collapsible-BGeuF2Bn.cjs → as-collapsible-Ck92YufI.cjs} +2 -2
- package/dist/{as-collapsible-Cb9SgJh9.mjs → as-collapsible-DxYCn-ue.mjs} +2 -2
- package/dist/as-collapsible.cjs +1 -1
- package/dist/as-collapsible.mjs +1 -1
- package/dist/{as-date-jQpwe6sr.mjs → as-date-BFiTIWhQ.mjs} +1 -1
- package/dist/{as-date-B2dgUoau.cjs → as-date-Y8DtscL_.cjs} +1 -1
- package/dist/as-date.cjs +1 -1
- package/dist/as-date.mjs +1 -1
- package/dist/{as-datetime-DYn9NndT.mjs → as-datetime-Cx4OKGNY.mjs} +1 -1
- package/dist/{as-datetime-CmBLyjgU.cjs → as-datetime-DRXHIWG7.cjs} +1 -1
- package/dist/as-datetime.cjs +1 -1
- package/dist/as-datetime.mjs +1 -1
- package/dist/{as-decimal-C-OJ8ygU.mjs → as-decimal-BF8UHXiz.mjs} +2 -2
- package/dist/{as-decimal-C0Eqd9nM.cjs → as-decimal-DuTXhLLu.cjs} +2 -2
- package/dist/as-decimal.cjs +1 -1
- package/dist/as-decimal.mjs +1 -1
- package/dist/{as-field-D0HgywQY.cjs → as-field-CHYBYJ07.cjs} +6 -3
- package/dist/{as-field-BZpWLPcM.mjs → as-field-Cem3O5q5.mjs} +6 -3
- package/dist/{as-field-shell-DSj3CqN6.cjs → as-field-shell-ByTLPM99.cjs} +3 -3
- package/dist/{as-field-shell-D7XovzgJ.mjs → as-field-shell-YzKEFdfk.mjs} +3 -3
- package/dist/as-field-shell.cjs +1 -1
- package/dist/as-field-shell.mjs +1 -1
- package/dist/as-field.cjs +1 -1
- package/dist/as-field.mjs +1 -1
- package/dist/{as-form-0VCxVsGo.mjs → as-form-CkLlDHYv.mjs} +11 -7
- package/dist/{as-form-ChyW9bj2.cjs → as-form-wiko7XE-.cjs} +11 -7
- package/dist/as-form.cjs +1 -1
- package/dist/as-form.d.cts +1 -1
- package/dist/as-form.d.mts +1 -1
- package/dist/as-form.mjs +1 -1
- package/dist/{as-form.vue-BuRFHSK-.d.cts → as-form.vue-B7pD1tRD.d.cts} +7 -1
- package/dist/{as-form.vue-CHEkgO3k.d.mts → as-form.vue-CZsZ93hh.d.mts} +7 -1
- package/dist/{as-input-DlLLiAYI.mjs → as-input-DF8S-SVw.mjs} +1 -1
- package/dist/{as-input-Bf94SAOY.cjs → as-input-UmnzPTWe.cjs} +1 -1
- package/dist/as-input.cjs +1 -1
- package/dist/as-input.mjs +1 -1
- package/dist/{as-iterator-Bty6f5Bq.cjs → as-iterator-CQowj0oB.cjs} +2 -2
- package/dist/{as-iterator-Dp1OiwU7.mjs → as-iterator-DWKOlmIo.mjs} +2 -2
- package/dist/as-iterator.cjs +1 -1
- package/dist/as-iterator.mjs +1 -1
- package/dist/{as-multi-select-ZGBYoI48.cjs → as-multi-select-BPhhpk-0.cjs} +2 -2
- package/dist/{as-multi-select-DT0M_1_O.mjs → as-multi-select-DTErr4w0.mjs} +2 -2
- package/dist/as-multi-select.cjs +1 -1
- package/dist/as-multi-select.mjs +1 -1
- package/dist/{as-number-DXQCnc9d.cjs → as-number-CFF3UZuC.cjs} +2 -2
- package/dist/{as-number-DkG5GuGW.mjs → as-number-D3YaZJEv.mjs} +2 -2
- package/dist/as-number.cjs +1 -1
- package/dist/as-number.mjs +1 -1
- package/dist/{as-object-mpRxIKVB.mjs → as-object-CYBKux5h.mjs} +5 -5
- package/dist/{as-object-DLdKOhxb.cjs → as-object-DgVplPOo.cjs} +5 -5
- package/dist/as-object.cjs +1 -1
- package/dist/as-object.mjs +1 -1
- package/dist/{as-radio-CW9YWBnC.mjs → as-radio-B0xhGDGg.mjs} +1 -1
- package/dist/{as-radio-D9sctKpc.cjs → as-radio-ColcrNuU.cjs} +1 -1
- package/dist/as-radio.cjs +1 -1
- package/dist/as-radio.mjs +1 -1
- package/dist/{as-ref-CpHMAAJu.cjs → as-ref-DBfT7RYx.cjs} +3 -3
- package/dist/{as-ref-DaCGfshO.mjs → as-ref-KUaYhUd1.mjs} +3 -3
- package/dist/as-ref.cjs +1 -1
- package/dist/as-ref.mjs +1 -1
- package/dist/{as-select-DAbNosmB.cjs → as-select-C4nXhF3W.cjs} +1 -1
- package/dist/{as-select-CrjlxcgR.mjs → as-select-CYhUQpSa.mjs} +1 -1
- package/dist/as-select.cjs +1 -1
- package/dist/as-select.mjs +1 -1
- package/dist/{as-time-NaICaSIj.cjs → as-time-BfWzx_ja.cjs} +1 -1
- package/dist/{as-time-BmXXgfCZ.mjs → as-time-DnPYtRha.mjs} +1 -1
- package/dist/as-time.cjs +1 -1
- package/dist/as-time.mjs +1 -1
- package/dist/{as-tuple-DkI9fp4G.cjs → as-tuple-BLgljjo3.cjs} +6 -6
- package/dist/{as-tuple-BBx6P6xb.mjs → as-tuple-DB8ZlblB.mjs} +6 -6
- package/dist/as-tuple.cjs +1 -1
- package/dist/as-tuple.mjs +1 -1
- package/dist/{as-union-C3QiGYlE.mjs → as-union-CzYUjXbF.mjs} +2 -2
- package/dist/{as-union-BjmrvD80.cjs → as-union-a17Hv-0j.cjs} +2 -2
- package/dist/as-union.cjs +1 -1
- package/dist/as-union.mjs +1 -1
- package/dist/{as-variant-picker-BUF7Am9t.mjs → as-variant-picker-CDUB7dsS.mjs} +1 -1
- package/dist/{as-variant-picker-BcJx7Zt7.cjs → as-variant-picker-DrI9AF2k.cjs} +1 -1
- package/dist/index.cjs +25 -23
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +24 -24
- package/dist/locale.cjs +5 -1
- package/dist/locale.d.cts +2 -2
- package/dist/locale.d.mts +2 -2
- package/dist/locale.mjs +2 -2
- package/dist/use-as-locale-BxMBUV_j.d.mts +84 -0
- package/dist/use-as-locale-CbpIkjCt.mjs +159 -0
- package/dist/use-as-locale-Dyt3uS60.d.cts +84 -0
- package/dist/use-as-locale-x8f0eN6K.cjs +200 -0
- package/dist/{use-as-value-help-nIpEFMqD.mjs → use-as-value-help-B7Nv5fo6.mjs} +48 -11
- package/dist/{use-as-value-help-BE-fAZRP.cjs → use-as-value-help-DvGkyEPo.cjs} +48 -11
- package/dist/{use-form-context-C3FxL3eF.mjs → use-form-context--9Eqepmq.mjs} +3 -2
- package/dist/{use-form-context-CXsLnG7l.cjs → use-form-context-CtV09wts.cjs} +8 -1
- package/package.json +10 -10
- package/dist/use-as-locale-1k9NBn-G.mjs +0 -56
- package/dist/use-as-locale-BVcC0l75.d.mts +0 -35
- package/dist/use-as-locale-C2tFUenv.cjs +0 -73
- package/dist/use-as-locale-CnGzoVWd.d.cts +0 -35
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as CHANGE_HANDLER_KEY, n as useAsUnionVariant, r as useFormContext } from "./use-form-context
|
|
2
|
-
import {
|
|
3
|
-
import { t as as_field_default } from "./as-field-
|
|
4
|
-
import { t as as_collapsible_default } from "./as-collapsible-
|
|
5
|
-
import { t as as_variant_picker_default } from "./as-variant-picker-
|
|
1
|
+
import { a as CHANGE_HANDLER_KEY, n as useAsUnionVariant, r as useFormContext } from "./use-form-context--9Eqepmq.mjs";
|
|
2
|
+
import { o as useAsTexts } from "./use-as-locale-CbpIkjCt.mjs";
|
|
3
|
+
import { t as as_field_default } from "./as-field-Cem3O5q5.mjs";
|
|
4
|
+
import { t as as_collapsible_default } from "./as-collapsible-DxYCn-ue.mjs";
|
|
5
|
+
import { t as as_variant_picker_default } from "./as-variant-picker-CDUB7dsS.mjs";
|
|
6
6
|
import { n as useAsDropdown, t as variantLabel } from "./variant-label-B065kts3.mjs";
|
|
7
7
|
import { t as useAsOptionalAddFlow } from "./use-as-optional-add-flow-BdjKNx9P.mjs";
|
|
8
|
-
import { t as as_array_clear_btn_default } from "./as-array-clear-btn-
|
|
8
|
+
import { t as as_array_clear_btn_default } from "./as-array-clear-btn-oKQHiamf.mjs";
|
|
9
9
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, normalizeClass, openBlock, reactive, ref, renderList, toDisplayString, unref, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
|
|
10
10
|
import { createFormData, createFormValueResolver, getFieldMeta, isUnionField } from "@atscript/ui";
|
|
11
11
|
//#region src/composables/use-as-array.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_use_form_context = require("./use-form-context-
|
|
2
|
-
const require_use_as_locale = require("./use-as-locale-
|
|
3
|
-
const require_as_field = require("./as-field-
|
|
4
|
-
const require_as_collapsible = require("./as-collapsible-
|
|
5
|
-
const require_as_variant_picker = require("./as-variant-picker-
|
|
1
|
+
const require_use_form_context = require("./use-form-context-CtV09wts.cjs");
|
|
2
|
+
const require_use_as_locale = require("./use-as-locale-x8f0eN6K.cjs");
|
|
3
|
+
const require_as_field = require("./as-field-CHYBYJ07.cjs");
|
|
4
|
+
const require_as_collapsible = require("./as-collapsible-Ck92YufI.cjs");
|
|
5
|
+
const require_as_variant_picker = require("./as-variant-picker-DrI9AF2k.cjs");
|
|
6
6
|
const require_variant_label = require("./variant-label-C-rLK7Z3.cjs");
|
|
7
7
|
const require_use_as_optional_add_flow = require("./use-as-optional-add-flow-CD8seN3C.cjs");
|
|
8
|
-
const require_as_array_clear_btn = require("./as-array-clear-btn-
|
|
8
|
+
const require_as_array_clear_btn = require("./as-array-clear-btn-QX7jyfrl.cjs");
|
|
9
9
|
let vue = require("vue");
|
|
10
10
|
let _atscript_ui = require("@atscript/ui");
|
|
11
11
|
//#region src/composables/use-as-array.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_as_locale = require("./use-as-locale-
|
|
2
|
-
const require_as_variant_picker = require("./as-variant-picker-
|
|
1
|
+
const require_use_as_locale = require("./use-as-locale-x8f0eN6K.cjs");
|
|
2
|
+
const require_as_variant_picker = require("./as-variant-picker-DrI9AF2k.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
//#region src/components/internal/as-array-clear-btn.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
const _hoisted_1 = ["disabled", "aria-label"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as as_optional_clear_default } from "./as-variant-picker-
|
|
1
|
+
import { o as useAsTexts } from "./use-as-locale-CbpIkjCt.mjs";
|
|
2
|
+
import { n as as_optional_clear_default } from "./as-variant-picker-CDUB7dsS.mjs";
|
|
3
3
|
import { createBlock, createElementBlock, defineComponent, openBlock, toDisplayString, unref, withModifiers } from "vue";
|
|
4
4
|
//#region src/components/internal/as-array-clear-btn.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
const _hoisted_1 = ["disabled", "aria-label"];
|
package/dist/as-array.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_array = require("./as-array-
|
|
1
|
+
const require_as_array = require("./as-array-ChGQxnvj.cjs");
|
|
2
2
|
module.exports = require_as_array.as_array_default;
|
package/dist/as-array.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_array_default } from "./as-array-
|
|
1
|
+
import { t as as_array_default } from "./as-array-C9mBBhOv.mjs";
|
|
2
2
|
export { as_array_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as as_field_shell_default } from "./as-field-shell-
|
|
3
|
-
import { n as as_optional_clear_default } from "./as-variant-picker-
|
|
1
|
+
import { o as useAsTexts } from "./use-as-locale-CbpIkjCt.mjs";
|
|
2
|
+
import { t as as_field_shell_default } from "./as-field-shell-YzKEFdfk.mjs";
|
|
3
|
+
import { n as as_optional_clear_default } from "./as-variant-picker-CDUB7dsS.mjs";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, toDisplayString, unref, watchEffect, withCtx } from "vue";
|
|
5
5
|
import { optKey, optLabel } from "@atscript/ui";
|
|
6
6
|
//#region src/composables/use-as-tri-state-checkbox.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_use_as_locale = require("./use-as-locale-
|
|
2
|
-
const require_as_field_shell = require("./as-field-shell-
|
|
3
|
-
const require_as_variant_picker = require("./as-variant-picker-
|
|
1
|
+
const require_use_as_locale = require("./use-as-locale-x8f0eN6K.cjs");
|
|
2
|
+
const require_as_field_shell = require("./as-field-shell-ByTLPM99.cjs");
|
|
3
|
+
const require_as_variant_picker = require("./as-variant-picker-DrI9AF2k.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
let _atscript_ui = require("@atscript/ui");
|
|
6
6
|
//#region src/composables/use-as-tri-state-checkbox.ts
|
package/dist/as-checkbox.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_checkbox = require("./as-checkbox-
|
|
1
|
+
const require_as_checkbox = require("./as-checkbox-Cbm2qmFH.cjs");
|
|
2
2
|
module.exports = require_as_checkbox.as_checkbox_default;
|
package/dist/as-checkbox.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_checkbox_default } from "./as-checkbox-
|
|
1
|
+
import { t as as_checkbox_default } from "./as-checkbox-BOyH1Yfs.mjs";
|
|
2
2
|
export { as_checkbox_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_use_form_context = require("./use-form-context-
|
|
1
|
+
const require_use_form_context = require("./use-form-context-CtV09wts.cjs");
|
|
2
2
|
const require_use_as_nested_sections_store = require("./use-as-nested-sections-store-u1VgBJAP.cjs");
|
|
3
|
-
const require_use_as_locale = require("./use-as-locale-
|
|
3
|
+
const require_use_as_locale = require("./use-as-locale-x8f0eN6K.cjs");
|
|
4
4
|
const require_focus_after_toggle = require("./focus-after-toggle-CWxiPZWi.cjs");
|
|
5
5
|
let vue = require("vue");
|
|
6
6
|
//#region src/components/as-collapsible.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as formatIndexedLabelParts } from "./use-form-context
|
|
1
|
+
import { t as formatIndexedLabelParts } from "./use-form-context--9Eqepmq.mjs";
|
|
2
2
|
import { i as useAsNestedSectionsStore, t as DESCENDANT_ERROR_COUNTS_KEY } from "./use-as-nested-sections-store-Dfo971PK.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { o as useAsTexts } from "./use-as-locale-CbpIkjCt.mjs";
|
|
4
4
|
import { r as useAsFocusFirstAfter } from "./focus-after-toggle-Dtl3P6CS.mjs";
|
|
5
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, inject, normalizeClass, onBeforeUnmount, onMounted, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, unref, vShow, withCtx, withDirectives } from "vue";
|
|
6
6
|
//#region src/components/as-collapsible.vue?vue&type=script&setup=true&lang.ts
|
package/dist/as-collapsible.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_collapsible = require("./as-collapsible-
|
|
1
|
+
const require_as_collapsible = require("./as-collapsible-Ck92YufI.cjs");
|
|
2
2
|
module.exports = require_as_collapsible.as_collapsible_default;
|
package/dist/as-collapsible.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_collapsible_default } from "./as-collapsible-
|
|
1
|
+
import { t as as_collapsible_default } from "./as-collapsible-DxYCn-ue.mjs";
|
|
2
2
|
export { as_collapsible_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as as_field_shell_default } from "./as-field-shell-
|
|
1
|
+
import { t as as_field_shell_default } from "./as-field-shell-YzKEFdfk.mjs";
|
|
2
2
|
import { t as as_adornment_shell_default } from "./as-adornment-shell-C4A2fnDp.mjs";
|
|
3
3
|
import { t as committedValue } from "./_shape-CpbGJMWP.mjs";
|
|
4
4
|
import { n as as_date_control_default, t as useAsDate } from "./use-as-date-pbhMXyU8.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_as_field_shell = require("./as-field-shell-
|
|
1
|
+
const require_as_field_shell = require("./as-field-shell-ByTLPM99.cjs");
|
|
2
2
|
const require_as_adornment_shell = require("./as-adornment-shell-DptUMWNk.cjs");
|
|
3
3
|
const require__shape = require("./_shape-JEtANIMR.cjs");
|
|
4
4
|
const require_use_as_date = require("./use-as-date-U_aHShPD.cjs");
|
package/dist/as-date.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_date = require("./as-date-
|
|
1
|
+
const require_as_date = require("./as-date-Y8DtscL_.cjs");
|
|
2
2
|
module.exports = require_as_date.as_date_default;
|
package/dist/as-date.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_date_default } from "./as-date-
|
|
1
|
+
import { t as as_date_default } from "./as-date-BFiTIWhQ.mjs";
|
|
2
2
|
export { as_date_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as as_field_shell_default } from "./as-field-shell-
|
|
1
|
+
import { t as as_field_shell_default } from "./as-field-shell-YzKEFdfk.mjs";
|
|
2
2
|
import { t as as_adornment_shell_default } from "./as-adornment-shell-C4A2fnDp.mjs";
|
|
3
3
|
import { t as committedValue } from "./_shape-CpbGJMWP.mjs";
|
|
4
4
|
import { n as as_date_control_default, t as useAsDate } from "./use-as-date-pbhMXyU8.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_as_field_shell = require("./as-field-shell-
|
|
1
|
+
const require_as_field_shell = require("./as-field-shell-ByTLPM99.cjs");
|
|
2
2
|
const require_as_adornment_shell = require("./as-adornment-shell-DptUMWNk.cjs");
|
|
3
3
|
const require__shape = require("./_shape-JEtANIMR.cjs");
|
|
4
4
|
const require_use_as_date = require("./use-as-date-U_aHShPD.cjs");
|
package/dist/as-datetime.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_datetime = require("./as-datetime-
|
|
1
|
+
const require_as_datetime = require("./as-datetime-DRXHIWG7.cjs");
|
|
2
2
|
module.exports = require_as_datetime.as_datetime_default;
|
package/dist/as-datetime.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_datetime_default } from "./as-datetime-
|
|
1
|
+
import { t as as_datetime_default } from "./as-datetime-Cx4OKGNY.mjs";
|
|
2
2
|
export { as_datetime_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as as_field_shell_default } from "./as-field-shell-
|
|
1
|
+
import { a as useAsLocale, o as useAsTexts } from "./use-as-locale-CbpIkjCt.mjs";
|
|
2
|
+
import { t as as_field_shell_default } from "./as-field-shell-YzKEFdfk.mjs";
|
|
3
3
|
import { n as preserveShape, t as committedValue } from "./_shape-CpbGJMWP.mjs";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, nextTick, normalizeClass, normalizeProps, openBlock, ref, toDisplayString, unref, watch, withCtx } from "vue";
|
|
5
5
|
import { enforceScale, formatDecimalForDisplay, getDecimalSeparator, getThousandsSeparator, groupInteger, joinDecimalString, parseDecimalInput, splitDecimalString } from "@atscript/ui";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_as_locale = require("./use-as-locale-
|
|
2
|
-
const require_as_field_shell = require("./as-field-shell-
|
|
1
|
+
const require_use_as_locale = require("./use-as-locale-x8f0eN6K.cjs");
|
|
2
|
+
const require_as_field_shell = require("./as-field-shell-ByTLPM99.cjs");
|
|
3
3
|
const require__shape = require("./_shape-JEtANIMR.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
let _atscript_ui = require("@atscript/ui");
|
package/dist/as-decimal.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_decimal = require("./as-decimal-
|
|
1
|
+
const require_as_decimal = require("./as-decimal-DuTXhLLu.cjs");
|
|
2
2
|
module.exports = require_as_decimal.as_decimal_default;
|
package/dist/as-decimal.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_decimal_default } from "./as-decimal-
|
|
1
|
+
import { t as as_decimal_default } from "./as-decimal-BF8UHXiz.mjs";
|
|
2
2
|
export { as_decimal_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_form_context = require("./use-form-context-
|
|
2
|
-
const require_use_as_locale = require("./use-as-locale-
|
|
1
|
+
const require_use_form_context = require("./use-form-context-CtV09wts.cjs");
|
|
2
|
+
const require_use_as_locale = require("./use-as-locale-x8f0eN6K.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _atscript_ui = require("@atscript/ui");
|
|
5
5
|
let _atscript_ui_fns = require("@atscript/ui-fns");
|
|
@@ -249,6 +249,7 @@ var as_field_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
249
249
|
const handleAction = (0, vue.inject)(require_use_form_context.ACTION_HANDLER_KEY, () => {});
|
|
250
250
|
const handleChange = (0, vue.inject)(require_use_form_context.CHANGE_HANDLER_KEY, () => {});
|
|
251
251
|
const dismissExternalAt = (0, vue.inject)(require_use_form_context.DISMISS_EXTERNAL_AT_KEY, () => {});
|
|
252
|
+
const normalizedFormData = (0, vue.inject)(require_use_form_context.FORM_NORMALIZED_DATA_KEY, void 0);
|
|
252
253
|
const { t } = require_use_as_locale.useAsTexts();
|
|
253
254
|
const { rootFormData, formContext, joinPath, buildPath, getByPath, setByPath, buildScope } = require_use_form_context.useFormContext("AsField");
|
|
254
255
|
const absolutePath = joinPath(() => props.field.path);
|
|
@@ -456,7 +457,9 @@ var as_field_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
456
457
|
}
|
|
457
458
|
function formRule(v) {
|
|
458
459
|
return formValidate(v, {
|
|
459
|
-
data
|
|
460
|
+
get data() {
|
|
461
|
+
return normalizedFormData?.value ?? rootFormData().value ?? {};
|
|
462
|
+
},
|
|
460
463
|
context: formContext.value,
|
|
461
464
|
t
|
|
462
465
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import {
|
|
1
|
+
import { _ as ROOT_DATA_KEY, a as CHANGE_HANDLER_KEY, c as ERRORS_KEY, d as FORM_NORMALIZED_DATA_KEY, f as FORM_PATCH_KEY, g as PATH_PREFIX_KEY, h as LEVEL_KEY, i as ACTION_HANDLER_KEY, l as FORM_CONTEXT_KEY, m as HIDE_ROOT_TITLE_KEY, o as COMPONENTS_KEY, p as FORM_STATE_KEY, r as useFormContext, s as DISMISS_EXTERNAL_AT_KEY, u as FORM_DATA_KEY, v as TYPES_KEY } from "./use-form-context--9Eqepmq.mjs";
|
|
2
|
+
import { a as useAsLocale, o as useAsTexts } from "./use-as-locale-CbpIkjCt.mjs";
|
|
3
3
|
import { computed, createBlock, createElementBlock, defineComponent, inject, isRef, mergeProps, onUnmounted, openBlock, provide, ref, resolveDynamicComponent, toDisplayString, unref, useId, watch } from "vue";
|
|
4
4
|
import { DB_AMOUNT_CURRENCY, DB_AMOUNT_CURRENCY_REF, DB_COLUMN_PRECISION, DB_UNIT, DB_UNIT_REF, EXPECT_MAX_LENGTH, META_DEFAULT, META_DESCRIPTION, META_LABEL, META_READONLY, META_REQUIRED, UI_FORM_ACTION, UI_FORM_ATTR, UI_FORM_AUTOCOMPLETE, UI_FORM_CLASSES, UI_FORM_COMPONENT, UI_FORM_DISABLED, UI_FORM_FN_CLASSES, UI_FORM_FN_DESCRIPTION, UI_FORM_FN_DISABLED, UI_FORM_FN_HINT, UI_FORM_FN_LABEL, UI_FORM_FN_PLACEHOLDER, UI_FORM_FN_PREFIX, UI_FORM_FN_READONLY, UI_FORM_FN_STYLES, UI_FORM_FN_TITLE, UI_FORM_FN_VALUE, UI_FORM_GRID_COL_SPAN, UI_FORM_GRID_ROW_SPAN, UI_FORM_HIDDEN, UI_FORM_HINT, UI_FORM_LABEL_SINGULAR, UI_FORM_PLACEHOLDER, UI_FORM_PREFIX, UI_FORM_PREFIX_ICON, UI_FORM_PREFIX_REF, UI_FORM_STYLES, UI_FORM_SUFFIX, UI_FORM_SUFFIX_ICON, UI_FORM_SUFFIX_REF, UI_FORM_VALIDATE, WF_ACTION_WITH_DATA, buildGridClasses, createFieldValidator, createFormData, createFormValueResolver, getByPath, getCurrencyDecimals, getCurrencyDisplayParts, getFieldMeta, hasFieldMeta, isArrayField, isFieldHidden, isObjectField, isTupleField, isUnionField, joinPath, resolveAttrs, resolveFieldProp, resolveFormProp, resolveGridSpec, resolveOptions, resolveSingularLabel, setByPath } from "@atscript/ui";
|
|
5
5
|
import { buildFieldEntry } from "@atscript/ui-fns";
|
|
@@ -249,6 +249,7 @@ var as_field_default = /* @__PURE__ */ defineComponent({
|
|
|
249
249
|
const handleAction = inject(ACTION_HANDLER_KEY, () => {});
|
|
250
250
|
const handleChange = inject(CHANGE_HANDLER_KEY, () => {});
|
|
251
251
|
const dismissExternalAt = inject(DISMISS_EXTERNAL_AT_KEY, () => {});
|
|
252
|
+
const normalizedFormData = inject(FORM_NORMALIZED_DATA_KEY, void 0);
|
|
252
253
|
const { t } = useAsTexts();
|
|
253
254
|
const { rootFormData, formContext, joinPath, buildPath, getByPath, setByPath, buildScope } = useFormContext("AsField");
|
|
254
255
|
const absolutePath = joinPath(() => props.field.path);
|
|
@@ -456,7 +457,9 @@ var as_field_default = /* @__PURE__ */ defineComponent({
|
|
|
456
457
|
}
|
|
457
458
|
function formRule(v) {
|
|
458
459
|
return formValidate(v, {
|
|
459
|
-
data
|
|
460
|
+
get data() {
|
|
461
|
+
return normalizedFormData?.value ?? rootFormData().value ?? {};
|
|
462
|
+
},
|
|
460
463
|
context: formContext.value,
|
|
461
464
|
t
|
|
462
465
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_use_form_context = require("./use-form-context-
|
|
2
|
-
const require_use_as_locale = require("./use-as-locale-
|
|
1
|
+
const require_use_form_context = require("./use-form-context-CtV09wts.cjs");
|
|
2
|
+
const require_use_as_locale = require("./use-as-locale-x8f0eN6K.cjs");
|
|
3
3
|
const require_focus_after_toggle = require("./focus-after-toggle-CWxiPZWi.cjs");
|
|
4
|
-
const require_as_variant_picker = require("./as-variant-picker-
|
|
4
|
+
const require_as_variant_picker = require("./as-variant-picker-DrI9AF2k.cjs");
|
|
5
5
|
let vue = require("vue");
|
|
6
6
|
//#region src/components/internal/as-no-data.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
const _hoisted_1$1 = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as useAsUnionVariant, t as formatIndexedLabelParts } from "./use-form-context
|
|
2
|
-
import {
|
|
1
|
+
import { n as useAsUnionVariant, t as formatIndexedLabelParts } from "./use-form-context--9Eqepmq.mjs";
|
|
2
|
+
import { o as useAsTexts } from "./use-as-locale-CbpIkjCt.mjs";
|
|
3
3
|
import { r as useAsFocusFirstAfter } from "./focus-after-toggle-Dtl3P6CS.mjs";
|
|
4
|
-
import { n as as_optional_clear_default, t as as_variant_picker_default } from "./as-variant-picker-
|
|
4
|
+
import { n as as_optional_clear_default, t as as_variant_picker_default } from "./as-variant-picker-CDUB7dsS.mjs";
|
|
5
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, toDisplayString, unref, vShow, withDirectives, withKeys, withModifiers } from "vue";
|
|
6
6
|
//#region src/components/internal/as-no-data.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
const _hoisted_1$1 = {
|
package/dist/as-field-shell.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_field_shell = require("./as-field-shell-
|
|
1
|
+
const require_as_field_shell = require("./as-field-shell-ByTLPM99.cjs");
|
|
2
2
|
module.exports = require_as_field_shell.as_field_shell_default;
|
package/dist/as-field-shell.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_field_shell_default } from "./as-field-shell-
|
|
1
|
+
import { t as as_field_shell_default } from "./as-field-shell-YzKEFdfk.mjs";
|
|
2
2
|
export { as_field_shell_default as default };
|
package/dist/as-field.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_field = require("./as-field-
|
|
1
|
+
const require_as_field = require("./as-field-CHYBYJ07.cjs");
|
|
2
2
|
module.exports = require_as_field.as_field_default;
|
package/dist/as-field.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_field_default } from "./as-field-
|
|
1
|
+
import { t as as_field_default } from "./as-field-Cem3O5q5.mjs";
|
|
2
2
|
export { as_field_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as ROOT_DATA_KEY, a as CHANGE_HANDLER_KEY, c as ERRORS_KEY, d as FORM_NORMALIZED_DATA_KEY, f as FORM_PATCH_KEY, g as PATH_PREFIX_KEY, i as ACTION_HANDLER_KEY, l as FORM_CONTEXT_KEY, m as HIDE_ROOT_TITLE_KEY, o as COMPONENTS_KEY, p as FORM_STATE_KEY, s as DISMISS_EXTERNAL_AT_KEY, u as FORM_DATA_KEY, v as TYPES_KEY } from "./use-form-context--9Eqepmq.mjs";
|
|
2
2
|
import { i as useAsNestedSectionsStore, n as provideAsNestedSectionsStore, t as DESCENDANT_ERROR_COUNTS_KEY } from "./use-as-nested-sections-store-Dfo971PK.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { t as CLIENT_FACTORY_KEY } from "./use-as-value-help-
|
|
5
|
-
import { t as as_field_default } from "./as-field-
|
|
6
|
-
import { t as as_iterator_default } from "./as-iterator-
|
|
3
|
+
import { o as useAsTexts } from "./use-as-locale-CbpIkjCt.mjs";
|
|
4
|
+
import { t as CLIENT_FACTORY_KEY } from "./use-as-value-help-B7Nv5fo6.mjs";
|
|
5
|
+
import { t as as_field_default } from "./as-field-Cem3O5q5.mjs";
|
|
6
|
+
import { t as as_iterator_default } from "./as-iterator-DWKOlmIo.mjs";
|
|
7
7
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, inject, isProxy, isRef, mergeProps, nextTick, normalizeProps, openBlock, provide, reactive, ref, renderSlot, shallowRef, toDisplayString, toRaw, toValue, unref, watch, watchEffect, withModifiers } from "vue";
|
|
8
8
|
import { FORM_ERROR_KEY, META_DESCRIPTION, META_LABEL, UI_FORM_FN_DESCRIPTION, UI_FORM_FN_SUBMIT_DISABLED, UI_FORM_FN_SUBMIT_TEXT, UI_FORM_FN_TITLE, UI_FORM_SUBMIT_TEXT, buildDescendantErrorCounts, buildFormDiff, buildFormRebase, collectDirtyPaths, deepClone, getByPath, getDeclaredFormActions, getFormValidator, iteratePathAncestors, mergeErrorMaps, omitPaths, omitSkippedNavFields, resolveFormProp, setByPath, unionVariantChanged } from "@atscript/ui";
|
|
9
9
|
//#region src/composables/use-as-form-patch.ts
|
|
@@ -409,6 +409,7 @@ function useAsForm(options) {
|
|
|
409
409
|
const formContext = computed(() => options.formContext?.());
|
|
410
410
|
const formValidator = computed(() => getFormValidator(options.def(), { errorLimit: Number.MAX_SAFE_INTEGER }));
|
|
411
411
|
let submitting = {};
|
|
412
|
+
provide(FORM_NORMALIZED_DATA_KEY, computed(() => formValidator.value.normalize(getDomainData()) ?? {}));
|
|
412
413
|
const { clearErrors: clearFieldErrors, reset: resetState, submit, setErrors, liveErrors, registeredPaths } = useAsState({
|
|
413
414
|
formData: data,
|
|
414
415
|
formContext,
|
|
@@ -500,8 +501,10 @@ function useAsForm(options) {
|
|
|
500
501
|
return getDeclaredFormActions(def).some((a) => a.id === actionId);
|
|
501
502
|
}
|
|
502
503
|
function invokeAction(name) {
|
|
503
|
-
|
|
504
|
-
|
|
504
|
+
const def = options.def();
|
|
505
|
+
const data = omitSkippedNavFields(def, formValidator.value.normalize(domainData()));
|
|
506
|
+
if (supportsAction(def, name)) options.emits?.action?.(name, data);
|
|
507
|
+
else options.emits?.unsupportedAction?.(name, data);
|
|
505
508
|
}
|
|
506
509
|
provide(ACTION_HANDLER_KEY, invokeAction);
|
|
507
510
|
function handleChange(type, path, value) {
|
|
@@ -656,6 +659,7 @@ var as_form_default = /* @__PURE__ */ defineComponent({
|
|
|
656
659
|
});
|
|
657
660
|
__expose({
|
|
658
661
|
submit: form.onSubmit,
|
|
662
|
+
action: form.invokeAction,
|
|
659
663
|
reset: form.reset,
|
|
660
664
|
clearErrors: form.clearErrors,
|
|
661
665
|
setErrors: form.setErrors,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_use_form_context = require("./use-form-context-
|
|
1
|
+
const require_use_form_context = require("./use-form-context-CtV09wts.cjs");
|
|
2
2
|
const require_use_as_nested_sections_store = require("./use-as-nested-sections-store-u1VgBJAP.cjs");
|
|
3
|
-
const require_use_as_locale = require("./use-as-locale-
|
|
4
|
-
const require_use_as_value_help = require("./use-as-value-help-
|
|
5
|
-
const require_as_field = require("./as-field-
|
|
6
|
-
const require_as_iterator = require("./as-iterator-
|
|
3
|
+
const require_use_as_locale = require("./use-as-locale-x8f0eN6K.cjs");
|
|
4
|
+
const require_use_as_value_help = require("./use-as-value-help-DvGkyEPo.cjs");
|
|
5
|
+
const require_as_field = require("./as-field-CHYBYJ07.cjs");
|
|
6
|
+
const require_as_iterator = require("./as-iterator-CQowj0oB.cjs");
|
|
7
7
|
let vue = require("vue");
|
|
8
8
|
let _atscript_ui = require("@atscript/ui");
|
|
9
9
|
//#region src/composables/use-as-form-patch.ts
|
|
@@ -409,6 +409,7 @@ function useAsForm(options) {
|
|
|
409
409
|
const formContext = (0, vue.computed)(() => options.formContext?.());
|
|
410
410
|
const formValidator = (0, vue.computed)(() => (0, _atscript_ui.getFormValidator)(options.def(), { errorLimit: Number.MAX_SAFE_INTEGER }));
|
|
411
411
|
let submitting = {};
|
|
412
|
+
(0, vue.provide)(require_use_form_context.FORM_NORMALIZED_DATA_KEY, (0, vue.computed)(() => formValidator.value.normalize(getDomainData()) ?? {}));
|
|
412
413
|
const { clearErrors: clearFieldErrors, reset: resetState, submit, setErrors, liveErrors, registeredPaths } = useAsState({
|
|
413
414
|
formData: data,
|
|
414
415
|
formContext,
|
|
@@ -500,8 +501,10 @@ function useAsForm(options) {
|
|
|
500
501
|
return (0, _atscript_ui.getDeclaredFormActions)(def).some((a) => a.id === actionId);
|
|
501
502
|
}
|
|
502
503
|
function invokeAction(name) {
|
|
503
|
-
|
|
504
|
-
|
|
504
|
+
const def = options.def();
|
|
505
|
+
const data = (0, _atscript_ui.omitSkippedNavFields)(def, formValidator.value.normalize(domainData()));
|
|
506
|
+
if (supportsAction(def, name)) options.emits?.action?.(name, data);
|
|
507
|
+
else options.emits?.unsupportedAction?.(name, data);
|
|
505
508
|
}
|
|
506
509
|
(0, vue.provide)(require_use_form_context.ACTION_HANDLER_KEY, invokeAction);
|
|
507
510
|
function handleChange(type, path, value) {
|
|
@@ -656,6 +659,7 @@ var as_form_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
656
659
|
});
|
|
657
660
|
__expose({
|
|
658
661
|
submit: form.onSubmit,
|
|
662
|
+
action: form.invokeAction,
|
|
659
663
|
reset: form.reset,
|
|
660
664
|
clearErrors: form.clearErrors,
|
|
661
665
|
setErrors: form.setErrors,
|
package/dist/as-form.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_form = require("./as-form-
|
|
1
|
+
const require_as_form = require("./as-form-wiko7XE-.cjs");
|
|
2
2
|
module.exports = require_as_form.as_form_default;
|
package/dist/as-form.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _default, t as Props } from "./as-form.vue-
|
|
1
|
+
import { n as _default, t as Props } from "./as-form.vue-B7pD1tRD.cjs";
|
|
2
2
|
export { Props, _default as default };
|
package/dist/as-form.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _default, t as Props } from "./as-form.vue-
|
|
1
|
+
import { n as _default, t as Props } from "./as-form.vue-CZsZ93hh.mjs";
|
|
2
2
|
export { Props, _default as default };
|
package/dist/as-form.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_form_default } from "./as-form-
|
|
1
|
+
import { t as as_form_default } from "./as-form-CkLlDHYv.mjs";
|
|
2
2
|
export { as_form_default as default };
|
|
@@ -1170,8 +1170,8 @@ declare const __VLS_export: <TFormData = any, TFormContext = any>(__VLS_props: N
|
|
|
1170
1170
|
path: string;
|
|
1171
1171
|
message: string;
|
|
1172
1172
|
}[]) => any) | undefined;
|
|
1173
|
-
onAction?: ((name: string, data: TAsFormValue<TFormData>) => any) | undefined;
|
|
1174
1173
|
onSubmit?: ((data: TAsFormValue<TFormData>) => any) | undefined;
|
|
1174
|
+
onAction?: ((name: string, data: TAsFormValue<TFormData>) => any) | undefined;
|
|
1175
1175
|
"onUnsupported-action"?: ((name: string, data: TAsFormValue<TFormData>) => any) | undefined;
|
|
1176
1176
|
onChange?: ((type: TAsChangeType, path: string, value: unknown, formData: TAsFormValue<TFormData>) => any) | undefined;
|
|
1177
1177
|
}> & (typeof globalThis extends {
|
|
@@ -1179,6 +1179,12 @@ declare const __VLS_export: <TFormData = any, TFormContext = any>(__VLS_props: N
|
|
|
1179
1179
|
} ? P : {});
|
|
1180
1180
|
expose: (exposed: vue.ShallowUnwrapRef<{
|
|
1181
1181
|
submit: () => void;
|
|
1182
|
+
/**
|
|
1183
|
+
* Fire a form action as its button would: emits `action` (or
|
|
1184
|
+
* `unsupported-action`) with the data a submit would send — normalized,
|
|
1185
|
+
* not validated.
|
|
1186
|
+
*/
|
|
1187
|
+
action: (name: string) => void;
|
|
1182
1188
|
reset: () => Promise<void>; /** Clear all error state (per-field + the submit-time map behind badges). */
|
|
1183
1189
|
clearErrors: () => void; /** Set external-error messages by path (e.g. mapping a server 400). */
|
|
1184
1190
|
setErrors: (errors: Record<string, string>) => void; /** True when `track-changes` is on AND data differs from baseline. */
|
|
@@ -1170,8 +1170,8 @@ declare const __VLS_export: <TFormData = any, TFormContext = any>(__VLS_props: N
|
|
|
1170
1170
|
path: string;
|
|
1171
1171
|
message: string;
|
|
1172
1172
|
}[]) => any) | undefined;
|
|
1173
|
-
onAction?: ((name: string, data: TAsFormValue<TFormData>) => any) | undefined;
|
|
1174
1173
|
onSubmit?: ((data: TAsFormValue<TFormData>) => any) | undefined;
|
|
1174
|
+
onAction?: ((name: string, data: TAsFormValue<TFormData>) => any) | undefined;
|
|
1175
1175
|
"onUnsupported-action"?: ((name: string, data: TAsFormValue<TFormData>) => any) | undefined;
|
|
1176
1176
|
onChange?: ((type: TAsChangeType, path: string, value: unknown, formData: TAsFormValue<TFormData>) => any) | undefined;
|
|
1177
1177
|
}> & (typeof globalThis extends {
|
|
@@ -1179,6 +1179,12 @@ declare const __VLS_export: <TFormData = any, TFormContext = any>(__VLS_props: N
|
|
|
1179
1179
|
} ? P : {});
|
|
1180
1180
|
expose: (exposed: vue.ShallowUnwrapRef<{
|
|
1181
1181
|
submit: () => void;
|
|
1182
|
+
/**
|
|
1183
|
+
* Fire a form action as its button would: emits `action` (or
|
|
1184
|
+
* `unsupported-action`) with the data a submit would send — normalized,
|
|
1185
|
+
* not validated.
|
|
1186
|
+
*/
|
|
1187
|
+
action: (name: string) => void;
|
|
1182
1188
|
reset: () => Promise<void>; /** Clear all error state (per-field + the submit-time map behind badges). */
|
|
1183
1189
|
clearErrors: () => void; /** Set external-error messages by path (e.g. mapping a server 400). */
|
|
1184
1190
|
setErrors: (errors: Record<string, string>) => void; /** True when `track-changes` is on AND data differs from baseline. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as as_field_shell_default } from "./as-field-shell-
|
|
1
|
+
import { t as as_field_shell_default } from "./as-field-shell-YzKEFdfk.mjs";
|
|
2
2
|
import { t as as_input_control_default } from "./as-input-control-4W60Kbyl.mjs";
|
|
3
3
|
import { t as as_adornment_shell_default } from "./as-adornment-shell-C4A2fnDp.mjs";
|
|
4
4
|
import { computed, createBlock, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, withCtx } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_as_field_shell = require("./as-field-shell-
|
|
1
|
+
const require_as_field_shell = require("./as-field-shell-ByTLPM99.cjs");
|
|
2
2
|
const require_as_input_control = require("./as-input-control-Dtvrw_PS.cjs");
|
|
3
3
|
const require_as_adornment_shell = require("./as-adornment-shell-DptUMWNk.cjs");
|
|
4
4
|
let vue = require("vue");
|
package/dist/as-input.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_input = require("./as-input-
|
|
1
|
+
const require_as_input = require("./as-input-UmnzPTWe.cjs");
|
|
2
2
|
module.exports = require_as_input.as_input_default;
|
package/dist/as-input.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_input_default } from "./as-input-
|
|
1
|
+
import { t as as_input_default } from "./as-input-DF8S-SVw.mjs";
|
|
2
2
|
export { as_input_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_form_context = require("./use-form-context-
|
|
2
|
-
const require_as_field = require("./as-field-
|
|
1
|
+
const require_use_form_context = require("./use-form-context-CtV09wts.cjs");
|
|
2
|
+
const require_as_field = require("./as-field-CHYBYJ07.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _atscript_ui = require("@atscript/ui");
|
|
5
5
|
//#region src/composables/use-as-level.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as as_field_default } from "./as-field-
|
|
1
|
+
import { g as PATH_PREFIX_KEY, h as LEVEL_KEY } from "./use-form-context--9Eqepmq.mjs";
|
|
2
|
+
import { t as as_field_default } from "./as-field-Cem3O5q5.mjs";
|
|
3
3
|
import { Fragment, computed, createBlock, createElementBlock, defineComponent, inject, openBlock, provide, renderList } from "vue";
|
|
4
4
|
import { joinPath } from "@atscript/ui";
|
|
5
5
|
//#region src/composables/use-as-level.ts
|
package/dist/as-iterator.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_iterator = require("./as-iterator-
|
|
1
|
+
const require_as_iterator = require("./as-iterator-CQowj0oB.cjs");
|
|
2
2
|
module.exports = require_as_iterator.as_iterator_default;
|
package/dist/as-iterator.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_iterator_default } from "./as-iterator-
|
|
1
|
+
import { t as as_iterator_default } from "./as-iterator-DWKOlmIo.mjs";
|
|
2
2
|
export { as_iterator_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_as_locale = require("./use-as-locale-
|
|
2
|
-
const require_as_field_shell = require("./as-field-shell-
|
|
1
|
+
const require_use_as_locale = require("./use-as-locale-x8f0eN6K.cjs");
|
|
2
|
+
const require_as_field_shell = require("./as-field-shell-ByTLPM99.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _atscript_ui = require("@atscript/ui");
|
|
5
5
|
let reka_ui = require("reka-ui");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as as_field_shell_default } from "./as-field-shell-
|
|
1
|
+
import { o as useAsTexts } from "./use-as-locale-CbpIkjCt.mjs";
|
|
2
|
+
import { t as as_field_shell_default } from "./as-field-shell-YzKEFdfk.mjs";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, openBlock, ref, renderList, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
4
4
|
import { hasFieldMeta, optKey, optLabel, optionValue } from "@atscript/ui";
|
|
5
5
|
import { ComboboxAnchor, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxPortal, ComboboxRoot, ComboboxViewport, TagsInputInput, TagsInputItem, TagsInputItemDelete, TagsInputItemText, TagsInputRoot } from "reka-ui";
|
package/dist/as-multi-select.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_multi_select = require("./as-multi-select-
|
|
1
|
+
const require_as_multi_select = require("./as-multi-select-BPhhpk-0.cjs");
|
|
2
2
|
module.exports = require_as_multi_select.as_multi_select_default;
|
package/dist/as-multi-select.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_multi_select_default } from "./as-multi-select-
|
|
1
|
+
import { t as as_multi_select_default } from "./as-multi-select-DTErr4w0.mjs";
|
|
2
2
|
export { as_multi_select_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_as_locale = require("./use-as-locale-
|
|
2
|
-
const require_as_field_shell = require("./as-field-shell-
|
|
1
|
+
const require_use_as_locale = require("./use-as-locale-x8f0eN6K.cjs");
|
|
2
|
+
const require_as_field_shell = require("./as-field-shell-ByTLPM99.cjs");
|
|
3
3
|
const require_as_input_control = require("./as-input-control-Dtvrw_PS.cjs");
|
|
4
4
|
const require__shape = require("./_shape-JEtANIMR.cjs");
|
|
5
5
|
let vue = require("vue");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as as_field_shell_default } from "./as-field-shell-
|
|
1
|
+
import { a as useAsLocale } from "./use-as-locale-CbpIkjCt.mjs";
|
|
2
|
+
import { t as as_field_shell_default } from "./as-field-shell-YzKEFdfk.mjs";
|
|
3
3
|
import { t as as_input_control_default } from "./as-input-control-4W60Kbyl.mjs";
|
|
4
4
|
import { t as committedValue } from "./_shape-CpbGJMWP.mjs";
|
|
5
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, ref, toDisplayString, withCtx } from "vue";
|
package/dist/as-number.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_number = require("./as-number-
|
|
1
|
+
const require_as_number = require("./as-number-CFF3UZuC.cjs");
|
|
2
2
|
module.exports = require_as_number.as_number_default;
|
package/dist/as-number.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_number_default } from "./as-number-
|
|
1
|
+
import { t as as_number_default } from "./as-number-D3YaZJEv.mjs";
|
|
2
2
|
export { as_number_default as default };
|