@atscript/vue-form 0.1.152 → 0.1.153

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.
Files changed (76) hide show
  1. package/dist/_shape-CpbGJMWP.mjs +26 -0
  2. package/dist/_shape-JEtANIMR.cjs +37 -0
  3. package/dist/as-action.d.mts +1 -1
  4. package/dist/{as-action.vue-DOOr8wOc.d.mts → as-action.vue-yDKx8hC0.d.mts} +1 -1
  5. package/dist/as-array.d.mts +1 -1
  6. package/dist/{as-array.vue-Cd2X9Aj9.d.mts → as-array.vue-DKcxkmjP.d.mts} +1 -1
  7. package/dist/as-checkbox.d.mts +1 -1
  8. package/dist/{as-checkbox.vue-C2kipqKM.d.mts → as-checkbox.vue-BXS5v6Ru.d.mts} +1 -1
  9. package/dist/as-collapsible.d.mts +1 -1
  10. package/dist/{as-collapsible.vue-B6Bs3fZU.d.mts → as-collapsible.vue-DowxhNde.d.mts} +1 -1
  11. package/dist/{as-date-DPNqfBaq.cjs → as-date-DTUQP2Dc.cjs} +3 -2
  12. package/dist/{as-date-gGh6aNHW.mjs → as-date-DyQsn7Mu.mjs} +3 -2
  13. package/dist/as-date.cjs +1 -1
  14. package/dist/as-date.d.mts +1 -1
  15. package/dist/as-date.mjs +1 -1
  16. package/dist/{as-date.vue-BZ1cNMbN.d.mts → as-date.vue-BVvALvZ_.d.mts} +1 -1
  17. package/dist/{as-datetime-BDUWhEuq.cjs → as-datetime-BDJtlZLz.cjs} +3 -2
  18. package/dist/{as-datetime-DqXt3riD.mjs → as-datetime-CrstxtPJ.mjs} +3 -2
  19. package/dist/as-datetime.cjs +1 -1
  20. package/dist/as-datetime.d.mts +1 -1
  21. package/dist/as-datetime.mjs +1 -1
  22. package/dist/{as-datetime.vue-DLuL9Zp3.d.mts → as-datetime.vue-CCQqZsKA.d.mts} +1 -1
  23. package/dist/{as-decimal-BcvgGV03.cjs → as-decimal-BZWqiKXZ.cjs} +4 -19
  24. package/dist/{as-decimal-Ck4oZ3uK.mjs → as-decimal-Bimpnzo2.mjs} +2 -17
  25. package/dist/as-decimal.cjs +1 -1
  26. package/dist/as-decimal.d.mts +1 -1
  27. package/dist/as-decimal.mjs +1 -1
  28. package/dist/{as-decimal.vue-BfhaMuCz.d.mts → as-decimal.vue-BDfM2ICc.d.mts} +1 -1
  29. package/dist/as-field-shell.d.mts +1 -1
  30. package/dist/{as-field-shell.vue-BDtmxN8W.d.mts → as-field-shell.vue-DisEXQI1.d.mts} +1 -1
  31. package/dist/as-field.d.mts +1 -1
  32. package/dist/as-form.d.cts +1 -1
  33. package/dist/as-form.d.mts +1 -1
  34. package/dist/{as-form.vue-DkRgc3SA.d.mts → as-form.vue-BJA1Hbdd.d.mts} +18 -4
  35. package/dist/{as-form.vue-B6JmG2a-.d.cts → as-form.vue-FimWnYe7.d.cts} +17 -3
  36. package/dist/as-input.d.mts +1 -1
  37. package/dist/{as-input.vue--S9S4-N-.d.mts → as-input.vue-CL-Om6Ed.d.mts} +1 -1
  38. package/dist/as-iterator.d.mts +1 -1
  39. package/dist/as-multi-select.d.mts +1 -1
  40. package/dist/{as-multi-select.vue-DRe3VNeM.d.mts → as-multi-select.vue-5GHWrbim.d.mts} +1 -1
  41. package/dist/{as-number-B7zYsrwk.mjs → as-number-6DTZnVfg.mjs} +2 -1
  42. package/dist/{as-number-DZyfbo_R.cjs → as-number-BMsgxGQw.cjs} +2 -1
  43. package/dist/as-number.cjs +1 -1
  44. package/dist/as-number.d.mts +1 -1
  45. package/dist/as-number.mjs +1 -1
  46. package/dist/{as-number.vue-BUUl1Y_9.d.mts → as-number.vue-BiZ2B2iJ.d.mts} +1 -1
  47. package/dist/as-object.d.mts +1 -1
  48. package/dist/{as-object.vue-pL1w2onW.d.mts → as-object.vue-Dg4IT2JT.d.mts} +1 -1
  49. package/dist/as-paragraph.d.mts +1 -1
  50. package/dist/{as-paragraph.vue-aKtn76iW.d.mts → as-paragraph.vue-Bp-MUDcH.d.mts} +1 -1
  51. package/dist/as-radio.d.mts +1 -1
  52. package/dist/{as-radio.vue-DQ9GnafC.d.mts → as-radio.vue-NmjJm8Pj.d.mts} +1 -1
  53. package/dist/as-ref.d.mts +1 -1
  54. package/dist/{as-ref.vue-njC9usEd.d.mts → as-ref.vue-vP2P1ePF.d.mts} +1 -1
  55. package/dist/as-select.d.mts +1 -1
  56. package/dist/{as-select.vue-DGwIGxEr.d.mts → as-select.vue-9mQ6cjW7.d.mts} +1 -1
  57. package/dist/{as-time-hfgmHDVL.mjs → as-time-BQ6KXMyV.mjs} +3 -2
  58. package/dist/{as-time-Bybj2FVd.cjs → as-time-Cu-8mKpR.cjs} +3 -2
  59. package/dist/as-time.cjs +1 -1
  60. package/dist/as-time.d.mts +1 -1
  61. package/dist/as-time.mjs +1 -1
  62. package/dist/{as-time.vue-CpQRa8tU.d.mts → as-time.vue-DGfZPnWK.d.mts} +1 -1
  63. package/dist/as-tuple.d.mts +1 -1
  64. package/dist/{as-tuple.vue-Bvlf7sFv.d.mts → as-tuple.vue-CInEbMRo.d.mts} +1 -1
  65. package/dist/as-union.d.mts +1 -1
  66. package/dist/{as-union.vue-CYgwfCd3.d.mts → as-union.vue-Bz3EO0Gg.d.mts} +1 -1
  67. package/dist/index.cjs +6 -6
  68. package/dist/index.d.cts +1 -1
  69. package/dist/index.d.mts +23 -23
  70. package/dist/index.mjs +6 -6
  71. package/package.json +9 -9
  72. /package/dist/{as-field.vue-BOTSEvA_.d.mts → as-field.vue-CN4gnZcq.d.mts} +0 -0
  73. /package/dist/{as-iterator.vue-diVHA64A.d.mts → as-iterator.vue-B0DTpqFJ.d.mts} +0 -0
  74. /package/dist/{types-QI-iGjsL.d.mts → types-BLoV3zIo.d.mts} +0 -0
  75. /package/dist/{use-as-date-BazILwxT.cjs → use-as-date-U_aHShPD.cjs} +0 -0
  76. /package/dist/{use-as-date-DXJhqwyJ.mjs → use-as-date-pbhMXyU8.mjs} +0 -0
@@ -0,0 +1,26 @@
1
+ //#region src/composables/_shape.ts
2
+ /**
3
+ * Match the input shape on commit: `null`/`undefined` model → write the
4
+ * canonical string (first-ever commit); pre-existing string → string;
5
+ * pre-existing number → number (caller opted into float; the precision
6
+ * loss is on them).
7
+ *
8
+ * Shared by `useAsDecimal` and `useAsNumber`. Not exported from the
9
+ * package barrel — internal helper, no public surface.
10
+ */
11
+ function preserveShape(original, normalized) {
12
+ if (original === null || original === void 0) return normalized;
13
+ if (typeof original === "string") return normalized;
14
+ return Number(normalized);
15
+ }
16
+ /**
17
+ * The value an emptied input commits: `undefined` (omitted) on an optional
18
+ * field — `null` is not a value of `name?: T`, and atscript >= 0.1.103
19
+ * rejects it there when the field also carries `@meta.required` — else
20
+ * `null`. Shared by the number / decimal / date / datetime / time inputs.
21
+ */
22
+ function committedValue(value, optional) {
23
+ return value === null && optional ? void 0 : value;
24
+ }
25
+ //#endregion
26
+ export { preserveShape as n, committedValue as t };
@@ -0,0 +1,37 @@
1
+ //#region src/composables/_shape.ts
2
+ /**
3
+ * Match the input shape on commit: `null`/`undefined` model → write the
4
+ * canonical string (first-ever commit); pre-existing string → string;
5
+ * pre-existing number → number (caller opted into float; the precision
6
+ * loss is on them).
7
+ *
8
+ * Shared by `useAsDecimal` and `useAsNumber`. Not exported from the
9
+ * package barrel — internal helper, no public surface.
10
+ */
11
+ function preserveShape(original, normalized) {
12
+ if (original === null || original === void 0) return normalized;
13
+ if (typeof original === "string") return normalized;
14
+ return Number(normalized);
15
+ }
16
+ /**
17
+ * The value an emptied input commits: `undefined` (omitted) on an optional
18
+ * field — `null` is not a value of `name?: T`, and atscript >= 0.1.103
19
+ * rejects it there when the field also carries `@meta.required` — else
20
+ * `null`. Shared by the number / decimal / date / datetime / time inputs.
21
+ */
22
+ function committedValue(value, optional) {
23
+ return value === null && optional ? void 0 : value;
24
+ }
25
+ //#endregion
26
+ Object.defineProperty(exports, "committedValue", {
27
+ enumerable: true,
28
+ get: function() {
29
+ return committedValue;
30
+ }
31
+ });
32
+ Object.defineProperty(exports, "preserveShape", {
33
+ enumerable: true,
34
+ get: function() {
35
+ return preserveShape;
36
+ }
37
+ });
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-action.vue-DOOr8wOc.mjs";
1
+ import { t as _default } from "./as-action.vue-yDKx8hC0.mjs";
2
2
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-action.vue.d.ts
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-array.vue-Cd2X9Aj9.mjs";
1
+ import { t as _default } from "./as-array.vue-DKcxkmjP.mjs";
2
2
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-array.vue.d.ts
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-checkbox.vue-C2kipqKM.mjs";
1
+ import { t as _default } from "./as-checkbox.vue-BXS5v6Ru.mjs";
2
2
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-checkbox.vue.d.ts
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-collapsible.vue-B6Bs3fZU.mjs";
1
+ import { t as _default } from "./as-collapsible.vue-DowxhNde.mjs";
2
2
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { i as TAsCollapsibleSlots, r as TAsCollapsibleProps } from "./types-QI-iGjsL.mjs";
1
+ import { i as TAsCollapsibleSlots, r as TAsCollapsibleProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/as-collapsible.vue.d.ts
@@ -1,6 +1,7 @@
1
1
  const require_as_field_shell = require("./as-field-shell-BrJpCzIA.cjs");
2
2
  const require_as_adornment_shell = require("./as-adornment-shell-DptUMWNk.cjs");
3
- const require_use_as_date = require("./use-as-date-BazILwxT.cjs");
3
+ const require__shape = require("./_shape-JEtANIMR.cjs");
4
+ const require_use_as_date = require("./use-as-date-U_aHShPD.cjs");
4
5
  let vue = require("vue");
5
6
  //#endregion
6
7
  //#region src/components/defaults/as-date.vue
@@ -205,7 +206,7 @@ var as_date_default = /* @__PURE__ */ (0, vue.defineComponent)({
205
206
  modelValue: () => props.model.value,
206
207
  kind: "date",
207
208
  onCommit: (v) => {
208
- props.model.value = v;
209
+ props.model.value = require__shape.committedValue(v, props.optional);
209
210
  }
210
211
  });
211
212
  const shellTitle = (0, vue.computed)(() => props.currencyCode ?? props.unitCode ?? void 0);
@@ -1,6 +1,7 @@
1
1
  import { t as as_field_shell_default } from "./as-field-shell-Bxqa_ZsU.mjs";
2
2
  import { t as as_adornment_shell_default } from "./as-adornment-shell-C4A2fnDp.mjs";
3
- import { n as as_date_control_default, t as useAsDate } from "./use-as-date-DXJhqwyJ.mjs";
3
+ import { t as committedValue } from "./_shape-CpbGJMWP.mjs";
4
+ import { n as as_date_control_default, t as useAsDate } from "./use-as-date-pbhMXyU8.mjs";
4
5
  import { computed, createBlock, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, unref, withCtx } from "vue";
5
6
  //#endregion
6
7
  //#region src/components/defaults/as-date.vue
@@ -205,7 +206,7 @@ var as_date_default = /* @__PURE__ */ defineComponent({
205
206
  modelValue: () => props.model.value,
206
207
  kind: "date",
207
208
  onCommit: (v) => {
208
- props.model.value = v;
209
+ props.model.value = committedValue(v, props.optional);
209
210
  }
210
211
  });
211
212
  const shellTitle = computed(() => props.currencyCode ?? props.unitCode ?? void 0);
package/dist/as-date.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const require_as_date = require("./as-date-DPNqfBaq.cjs");
1
+ const require_as_date = require("./as-date-DTUQP2Dc.cjs");
2
2
  module.exports = require_as_date.as_date_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-date.vue-BZ1cNMbN.mjs";
1
+ import { t as _default } from "./as-date.vue-BVvALvZ_.mjs";
2
2
  export { _default as default };
package/dist/as-date.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as as_date_default } from "./as-date-gGh6aNHW.mjs";
1
+ import { t as as_date_default } from "./as-date-DyQsn7Mu.mjs";
2
2
  export { as_date_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-date.vue.d.ts
@@ -1,6 +1,7 @@
1
1
  const require_as_field_shell = require("./as-field-shell-BrJpCzIA.cjs");
2
2
  const require_as_adornment_shell = require("./as-adornment-shell-DptUMWNk.cjs");
3
- const require_use_as_date = require("./use-as-date-BazILwxT.cjs");
3
+ const require__shape = require("./_shape-JEtANIMR.cjs");
4
+ const require_use_as_date = require("./use-as-date-U_aHShPD.cjs");
4
5
  let vue = require("vue");
5
6
  //#endregion
6
7
  //#region src/components/defaults/as-datetime.vue
@@ -205,7 +206,7 @@ var as_datetime_default = /* @__PURE__ */ (0, vue.defineComponent)({
205
206
  modelValue: () => props.model.value,
206
207
  kind: "datetime",
207
208
  onCommit: (v) => {
208
- props.model.value = v;
209
+ props.model.value = require__shape.committedValue(v, props.optional);
209
210
  }
210
211
  });
211
212
  const shellTitle = (0, vue.computed)(() => props.currencyCode ?? props.unitCode ?? void 0);
@@ -1,6 +1,7 @@
1
1
  import { t as as_field_shell_default } from "./as-field-shell-Bxqa_ZsU.mjs";
2
2
  import { t as as_adornment_shell_default } from "./as-adornment-shell-C4A2fnDp.mjs";
3
- import { n as as_date_control_default, t as useAsDate } from "./use-as-date-DXJhqwyJ.mjs";
3
+ import { t as committedValue } from "./_shape-CpbGJMWP.mjs";
4
+ import { n as as_date_control_default, t as useAsDate } from "./use-as-date-pbhMXyU8.mjs";
4
5
  import { computed, createBlock, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, unref, withCtx } from "vue";
5
6
  //#endregion
6
7
  //#region src/components/defaults/as-datetime.vue
@@ -205,7 +206,7 @@ var as_datetime_default = /* @__PURE__ */ defineComponent({
205
206
  modelValue: () => props.model.value,
206
207
  kind: "datetime",
207
208
  onCommit: (v) => {
208
- props.model.value = v;
209
+ props.model.value = committedValue(v, props.optional);
209
210
  }
210
211
  });
211
212
  const shellTitle = computed(() => props.currencyCode ?? props.unitCode ?? void 0);
@@ -1,2 +1,2 @@
1
- const require_as_datetime = require("./as-datetime-BDUWhEuq.cjs");
1
+ const require_as_datetime = require("./as-datetime-BDJtlZLz.cjs");
2
2
  module.exports = require_as_datetime.as_datetime_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-datetime.vue-DLuL9Zp3.mjs";
1
+ import { t as _default } from "./as-datetime.vue-CCQqZsKA.mjs";
2
2
  export { _default as default };
@@ -1,2 +1,2 @@
1
- import { t as as_datetime_default } from "./as-datetime-DqXt3riD.mjs";
1
+ import { t as as_datetime_default } from "./as-datetime-CrstxtPJ.mjs";
2
2
  export { as_datetime_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-datetime.vue.d.ts
@@ -1,23 +1,8 @@
1
1
  const require_use_as_locale = require("./use-as-locale-C4z5stwD.cjs");
2
2
  const require_as_field_shell = require("./as-field-shell-BrJpCzIA.cjs");
3
+ const require__shape = require("./_shape-JEtANIMR.cjs");
3
4
  let vue = require("vue");
4
5
  let _atscript_ui = require("@atscript/ui");
5
- //#region src/composables/_shape.ts
6
- /**
7
- * Match the input shape on commit: `null`/`undefined` model → write the
8
- * canonical string (first-ever commit); pre-existing string → string;
9
- * pre-existing number → number (caller opted into float; the precision
10
- * loss is on them).
11
- *
12
- * Shared by `useAsDecimal` and `useAsNumber`. Not exported from the
13
- * package barrel — internal helper, no public surface.
14
- */
15
- function preserveShape(original, normalized) {
16
- if (original === null || original === void 0) return normalized;
17
- if (typeof original === "string") return normalized;
18
- return Number(normalized);
19
- }
20
- //#endregion
21
6
  //#region src/composables/use-as-decimal.ts
22
7
  /**
23
8
  * Reactive composable for decimal-typed inputs (the `AsDecimal` SFC and
@@ -88,7 +73,7 @@ function useAsDecimal(opts) {
88
73
  });
89
74
  function commit(canonical) {
90
75
  const padded = (0, _atscript_ui.enforceScale)(canonical, storageScale.value);
91
- const shaped = preserveShape(opts.modelValue(), padded);
76
+ const shaped = require__shape.preserveShape(opts.modelValue(), padded);
92
77
  opts.onCommit(shaped);
93
78
  }
94
79
  function setFromInput(raw) {
@@ -121,7 +106,7 @@ function useAsDecimal(opts) {
121
106
  const s = typeof v === "number" ? Number.isFinite(v) ? String(v) : "" : v;
122
107
  if (s === "") return;
123
108
  if ((0, _atscript_ui.splitDecimalString)(s).decimal.length <= newScale) return;
124
- const shaped = preserveShape(v, (0, _atscript_ui.enforceScale)((0, _atscript_ui.enforceScale)(s, newScale), storageScale.value));
109
+ const shaped = require__shape.preserveShape(v, (0, _atscript_ui.enforceScale)((0, _atscript_ui.enforceScale)(s, newScale), storageScale.value));
125
110
  opts.onCommit(shaped);
126
111
  }, { flush: "sync" });
127
112
  return {
@@ -615,7 +600,7 @@ var as_decimal_default = /* @__PURE__ */ (0, vue.defineComponent)({
615
600
  scale: () => props.scale,
616
601
  storageScale: () => props.precisionScale,
617
602
  onCommit: (v) => {
618
- props.model.value = v;
603
+ props.model.value = require__shape.committedValue(v, props.optional);
619
604
  }
620
605
  });
621
606
  const { integerInput, decimalInput, integerDisplay, decimalDisplay, onIntegerFocus, onDecimalFocus, onBlurAll, onIntegerInput, onIntegerKeydown, onIntegerPaste, onDecimalInput, onDecimalKeydown, onDecimalPaste } = useAsDualInput({
@@ -1,23 +1,8 @@
1
1
  import { n as useAsLocale } from "./use-as-locale-BrFdAgnU.mjs";
2
2
  import { t as as_field_shell_default } from "./as-field-shell-Bxqa_ZsU.mjs";
3
+ import { n as preserveShape, t as committedValue } from "./_shape-CpbGJMWP.mjs";
3
4
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, nextTick, normalizeClass, normalizeProps, openBlock, ref, toDisplayString, unref, watch, withCtx } from "vue";
4
5
  import { enforceScale, formatDecimalForDisplay, getDecimalSeparator, getThousandsSeparator, groupInteger, joinDecimalString, parseDecimalInput, splitDecimalString } from "@atscript/ui";
5
- //#region src/composables/_shape.ts
6
- /**
7
- * Match the input shape on commit: `null`/`undefined` model → write the
8
- * canonical string (first-ever commit); pre-existing string → string;
9
- * pre-existing number → number (caller opted into float; the precision
10
- * loss is on them).
11
- *
12
- * Shared by `useAsDecimal` and `useAsNumber`. Not exported from the
13
- * package barrel — internal helper, no public surface.
14
- */
15
- function preserveShape(original, normalized) {
16
- if (original === null || original === void 0) return normalized;
17
- if (typeof original === "string") return normalized;
18
- return Number(normalized);
19
- }
20
- //#endregion
21
6
  //#region src/composables/use-as-decimal.ts
22
7
  /**
23
8
  * Reactive composable for decimal-typed inputs (the `AsDecimal` SFC and
@@ -615,7 +600,7 @@ var as_decimal_default = /* @__PURE__ */ defineComponent({
615
600
  scale: () => props.scale,
616
601
  storageScale: () => props.precisionScale,
617
602
  onCommit: (v) => {
618
- props.model.value = v;
603
+ props.model.value = committedValue(v, props.optional);
619
604
  }
620
605
  });
621
606
  const { integerInput, decimalInput, integerDisplay, decimalDisplay, onIntegerFocus, onDecimalFocus, onBlurAll, onIntegerInput, onIntegerKeydown, onIntegerPaste, onDecimalInput, onDecimalKeydown, onDecimalPaste } = useAsDualInput({
@@ -1,2 +1,2 @@
1
- const require_as_decimal = require("./as-decimal-BcvgGV03.cjs");
1
+ const require_as_decimal = require("./as-decimal-BZWqiKXZ.cjs");
2
2
  module.exports = require_as_decimal.as_decimal_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-decimal.vue-BfhaMuCz.mjs";
1
+ import { t as _default } from "./as-decimal.vue-BDfM2ICc.mjs";
2
2
  export { _default as default };
@@ -1,2 +1,2 @@
1
- import { t as as_decimal_default } from "./as-decimal-Ck4oZ3uK.mjs";
1
+ import { t as as_decimal_default } from "./as-decimal-Bimpnzo2.mjs";
2
2
  export { as_decimal_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-decimal.vue.d.ts
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-field-shell.vue-BDtmxN8W.mjs";
1
+ import { t as _default } from "./as-field-shell.vue-DisEXQI1.mjs";
2
2
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-field-shell.vue.d.ts
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-field.vue-BOTSEvA_.mjs";
1
+ import { t as _default } from "./as-field.vue-CN4gnZcq.mjs";
2
2
  export { _default as default };
@@ -1,2 +1,2 @@
1
- import { n as _default, t as Props } from "./as-form.vue-B6JmG2a-.cjs";
1
+ import { n as _default, t as Props } from "./as-form.vue-FimWnYe7.cjs";
2
2
  export { Props, _default as default };
@@ -1,2 +1,2 @@
1
- import { n as _default, t as Props } from "./as-form.vue-DkRgc3SA.mjs";
1
+ import { n as _default, t as Props } from "./as-form.vue-BJA1Hbdd.mjs";
2
2
  export { Props, _default as default };
@@ -1,11 +1,11 @@
1
- import { c as TAsUnionContext, n as TAsChangeType, o as TAsComponentProps, s as TAsTypeComponents } from "./types-QI-iGjsL.mjs";
1
+ import { c as TAsUnionContext, n as TAsChangeType, o as TAsComponentProps, s as TAsTypeComponents } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
  import { Component, ComputedRef, MaybeRef, MaybeRefOrGetter, Ref, ShallowRef, WritableComputedRef } from "vue";
4
4
  import * as _atscript_ui0 from "@atscript/ui";
5
5
  import { ClientFactory, ClientFactory as ClientFactory$1, FormArrayFieldDef, FormDef, FormDiffOptions, FormDiffOptions as FormDiffOptions$1, FormFieldChange, FormFieldChange as FormFieldChange$1, FormFieldDef, FormRebaseOptions, FormRebaseOptions as FormRebaseOptions$1, FormTupleFieldDef, FormUnionFieldDef, FormUnionVariant, ResolvedValueHelp, TResolveOptions, ValueHelpInfo, getDefaultClientFactory, hasFieldMeta as hasFieldMeta$1, isFieldHidden as isFieldHidden$1, joinPath as joinPath$1, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
6
6
  import { TFnScope } from "@atscript/ui-fns";
7
7
 
8
- //#region ../../node_modules/.pnpm/@atscript+typescript@0.1.102_@atscript+core@0.1.102_@emnapi+core@1.10.0_@emnapi+runtime_c64a9f4c7e92e61b4b6f1ab22397a281/node_modules/@atscript/typescript/dist/utils.d.ts
8
+ //#region ../../node_modules/.pnpm/@atscript+typescript@0.1.103_@atscript+core@0.1.103_@emnapi+core@1.10.0_@emnapi+runtime_eae370efc45caf0f3981f980e355a2ef/node_modules/@atscript/typescript/dist/utils.d.ts
9
9
  interface TError {
10
10
  path: string;
11
11
  message: string;
@@ -99,14 +99,28 @@ declare class Validator<T extends TAtscriptAnnotatedType = TAtscriptAnnotatedTyp
99
99
  protected get path(): string;
100
100
  protected validateAnnotatedType(def: TAtscriptAnnotatedType, value: any): boolean;
101
101
  protected validateUnion(def: TAtscriptAnnotatedType<TAtscriptTypeComplex>, value: any): boolean;
102
+ /**
103
+ * Constraints annotated on the union itself (`@expect.min 0` on `number | null`)
104
+ * apply to the non-null value that matched `branch`, on top of the branch's own.
105
+ * A literal branch (an enum value) is exempt: its value is fixed.
106
+ */
107
+ protected validateUnionConstraints(def: TAtscriptAnnotatedType<TAtscriptTypeComplex>, branch: TAtscriptAnnotatedType, value: any): boolean;
102
108
  protected validateIntersection(def: TAtscriptAnnotatedType<TAtscriptTypeComplex>, value: any): boolean;
103
109
  protected validateTuple(def: TAtscriptAnnotatedType<TAtscriptTypeComplex>, value: any): boolean;
104
110
  protected validateArray(def: TAtscriptAnnotatedType<TAtscriptTypeArray>, value: any): boolean;
111
+ /** `@expect.minLength` / `maxLength` / `array.uniqueItems` checks for an array value. */
112
+ protected validateArrayConstraints(metadata: TMetadataMap<AtscriptMetadata>, value: any[], of?: TAtscriptAnnotatedType): boolean;
105
113
  protected validateObject(def: TAtscriptAnnotatedType<TAtscriptTypeObject>, value: any): boolean;
106
114
  protected validatePrimitive(def: TAtscriptAnnotatedType<TAtscriptTypeFinal>, value: any): boolean;
107
115
  protected validateString(def: TAtscriptAnnotatedType<TAtscriptTypeFinal>, value: string): boolean;
116
+ /** `@meta.required` / `@expect.minLength` / `maxLength` / `pattern` checks for a string value. */
117
+ protected validateStringConstraints(metadata: TMetadataMap<AtscriptMetadata>, value: string): boolean;
108
118
  protected validateNumber(def: TAtscriptAnnotatedType<TAtscriptTypeFinal>, value: number): boolean;
119
+ /** `@expect.int` / `min` / `max` checks for a number value. */
120
+ protected validateNumberConstraints(metadata: TMetadataMap<AtscriptMetadata>, value: number): boolean;
109
121
  protected validateBoolean(def: TAtscriptAnnotatedType<TAtscriptTypeFinal>, value: boolean): boolean;
122
+ /** `@meta.required` check for a boolean value (must be `true`). */
123
+ protected validateBooleanConstraints(metadata: TMetadataMap<AtscriptMetadata>, value: boolean): boolean;
110
124
  }
111
125
  /** Error thrown by {@link Validator.validate} when validation fails. Contains structured error details. */
112
126
  /** Type definition for union, intersection, or tuple types. */
@@ -1346,12 +1360,12 @@ interface Props<TF, TC> {
1346
1360
  }
1347
1361
  declare const __VLS_export: <TFormData = any, TFormContext = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
1348
1362
  props: vue.PublicProps & __VLS_PrettifyLocal<Props<TFormData, TFormContext> & {
1349
- onSubmit?: ((data: TFormData) => any) | undefined;
1363
+ onAction?: ((name: string, data: TFormData) => any) | undefined;
1350
1364
  onError?: ((errors: {
1351
1365
  path: string;
1352
1366
  message: string;
1353
1367
  }[]) => any) | undefined;
1354
- onAction?: ((name: string, data: TFormData) => any) | undefined;
1368
+ onSubmit?: ((data: TFormData) => any) | undefined;
1355
1369
  "onUnsupported-action"?: ((name: string, data: TFormData) => any) | undefined;
1356
1370
  onChange?: ((type: TAsChangeType, path: string, value: unknown, formData: TFormData) => any) | undefined;
1357
1371
  }> & (typeof globalThis extends {
@@ -5,7 +5,7 @@ import * as _atscript_ui0 from "@atscript/ui";
5
5
  import { ClientFactory, ClientFactory as ClientFactory$1, FormArrayFieldDef, FormDef, FormDiffOptions, FormDiffOptions as FormDiffOptions$1, FormFieldChange, FormFieldChange as FormFieldChange$1, FormFieldDef, FormRebaseOptions, FormRebaseOptions as FormRebaseOptions$1, FormTupleFieldDef, FormUnionFieldDef, FormUnionVariant, ResolvedValueHelp, TResolveOptions, ValueHelpInfo, getDefaultClientFactory, hasFieldMeta, isFieldHidden, joinPath, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
6
6
  import { TFnScope } from "@atscript/ui-fns";
7
7
 
8
- //#region ../../node_modules/.pnpm/@atscript+typescript@0.1.102_@atscript+core@0.1.102_@emnapi+core@1.10.0_@emnapi+runtime_c64a9f4c7e92e61b4b6f1ab22397a281/node_modules/@atscript/typescript/dist/utils.d.ts
8
+ //#region ../../node_modules/.pnpm/@atscript+typescript@0.1.103_@atscript+core@0.1.103_@emnapi+core@1.10.0_@emnapi+runtime_eae370efc45caf0f3981f980e355a2ef/node_modules/@atscript/typescript/dist/utils.d.ts
9
9
  interface TError {
10
10
  path: string;
11
11
  message: string;
@@ -99,14 +99,28 @@ declare class Validator<T extends TAtscriptAnnotatedType = TAtscriptAnnotatedTyp
99
99
  protected get path(): string;
100
100
  protected validateAnnotatedType(def: TAtscriptAnnotatedType, value: any): boolean;
101
101
  protected validateUnion(def: TAtscriptAnnotatedType<TAtscriptTypeComplex>, value: any): boolean;
102
+ /**
103
+ * Constraints annotated on the union itself (`@expect.min 0` on `number | null`)
104
+ * apply to the non-null value that matched `branch`, on top of the branch's own.
105
+ * A literal branch (an enum value) is exempt: its value is fixed.
106
+ */
107
+ protected validateUnionConstraints(def: TAtscriptAnnotatedType<TAtscriptTypeComplex>, branch: TAtscriptAnnotatedType, value: any): boolean;
102
108
  protected validateIntersection(def: TAtscriptAnnotatedType<TAtscriptTypeComplex>, value: any): boolean;
103
109
  protected validateTuple(def: TAtscriptAnnotatedType<TAtscriptTypeComplex>, value: any): boolean;
104
110
  protected validateArray(def: TAtscriptAnnotatedType<TAtscriptTypeArray>, value: any): boolean;
111
+ /** `@expect.minLength` / `maxLength` / `array.uniqueItems` checks for an array value. */
112
+ protected validateArrayConstraints(metadata: TMetadataMap<AtscriptMetadata>, value: any[], of?: TAtscriptAnnotatedType): boolean;
105
113
  protected validateObject(def: TAtscriptAnnotatedType<TAtscriptTypeObject>, value: any): boolean;
106
114
  protected validatePrimitive(def: TAtscriptAnnotatedType<TAtscriptTypeFinal>, value: any): boolean;
107
115
  protected validateString(def: TAtscriptAnnotatedType<TAtscriptTypeFinal>, value: string): boolean;
116
+ /** `@meta.required` / `@expect.minLength` / `maxLength` / `pattern` checks for a string value. */
117
+ protected validateStringConstraints(metadata: TMetadataMap<AtscriptMetadata>, value: string): boolean;
108
118
  protected validateNumber(def: TAtscriptAnnotatedType<TAtscriptTypeFinal>, value: number): boolean;
119
+ /** `@expect.int` / `min` / `max` checks for a number value. */
120
+ protected validateNumberConstraints(metadata: TMetadataMap<AtscriptMetadata>, value: number): boolean;
109
121
  protected validateBoolean(def: TAtscriptAnnotatedType<TAtscriptTypeFinal>, value: boolean): boolean;
122
+ /** `@meta.required` check for a boolean value (must be `true`). */
123
+ protected validateBooleanConstraints(metadata: TMetadataMap<AtscriptMetadata>, value: boolean): boolean;
110
124
  }
111
125
  /** Error thrown by {@link Validator.validate} when validation fails. Contains structured error details. */
112
126
  /** Type definition for union, intersection, or tuple types. */
@@ -1346,12 +1360,12 @@ interface Props<TF, TC> {
1346
1360
  }
1347
1361
  declare const __VLS_export: <TFormData = any, TFormContext = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
1348
1362
  props: vue.PublicProps & __VLS_PrettifyLocal<Props<TFormData, TFormContext> & {
1349
- onSubmit?: ((data: TFormData) => any) | undefined;
1363
+ onAction?: ((name: string, data: TFormData) => any) | undefined;
1350
1364
  onError?: ((errors: {
1351
1365
  path: string;
1352
1366
  message: string;
1353
1367
  }[]) => any) | undefined;
1354
- onAction?: ((name: string, data: TFormData) => any) | undefined;
1368
+ onSubmit?: ((data: TFormData) => any) | undefined;
1355
1369
  "onUnsupported-action"?: ((name: string, data: TFormData) => any) | undefined;
1356
1370
  onChange?: ((type: TAsChangeType, path: string, value: unknown, formData: TFormData) => any) | undefined;
1357
1371
  }> & (typeof globalThis extends {
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-input.vue--S9S4-N-.mjs";
1
+ import { t as _default } from "./as-input.vue-CL-Om6Ed.mjs";
2
2
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-input.vue.d.ts
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-iterator.vue-diVHA64A.mjs";
1
+ import { t as _default } from "./as-iterator.vue-B0DTpqFJ.mjs";
2
2
  export { _default as default };
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-multi-select.vue-DRe3VNeM.mjs";
1
+ import { t as _default } from "./as-multi-select.vue-5GHWrbim.mjs";
2
2
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-multi-select.vue.d.ts
@@ -1,6 +1,7 @@
1
1
  import { n as useAsLocale } from "./use-as-locale-BrFdAgnU.mjs";
2
2
  import { t as as_field_shell_default } from "./as-field-shell-Bxqa_ZsU.mjs";
3
3
  import { t as as_input_control_default } from "./as-input-control-4W60Kbyl.mjs";
4
+ import { t as committedValue } from "./_shape-CpbGJMWP.mjs";
4
5
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, ref, toDisplayString, withCtx } from "vue";
5
6
  import { getDecimalSeparator, parseDecimalInput } from "@atscript/ui";
6
7
  //#region src/composables/use-as-number.ts
@@ -277,7 +278,7 @@ var as_number_default = /* @__PURE__ */ defineComponent({
277
278
  const { displayValue, rawValue, setFromInput } = useAsNumber({
278
279
  modelValue: () => props.model.value,
279
280
  onCommit: (v) => {
280
- props.model.value = v;
281
+ props.model.value = committedValue(v, props.optional);
281
282
  }
282
283
  });
283
284
  const focusActive = ref(false);
@@ -1,6 +1,7 @@
1
1
  const require_use_as_locale = require("./use-as-locale-C4z5stwD.cjs");
2
2
  const require_as_field_shell = require("./as-field-shell-BrJpCzIA.cjs");
3
3
  const require_as_input_control = require("./as-input-control-Dtvrw_PS.cjs");
4
+ const require__shape = require("./_shape-JEtANIMR.cjs");
4
5
  let vue = require("vue");
5
6
  let _atscript_ui = require("@atscript/ui");
6
7
  //#region src/composables/use-as-number.ts
@@ -277,7 +278,7 @@ var as_number_default = /* @__PURE__ */ (0, vue.defineComponent)({
277
278
  const { displayValue, rawValue, setFromInput } = useAsNumber({
278
279
  modelValue: () => props.model.value,
279
280
  onCommit: (v) => {
280
- props.model.value = v;
281
+ props.model.value = require__shape.committedValue(v, props.optional);
281
282
  }
282
283
  });
283
284
  const focusActive = (0, vue.ref)(false);
@@ -1,2 +1,2 @@
1
- const require_as_number = require("./as-number-DZyfbo_R.cjs");
1
+ const require_as_number = require("./as-number-BMsgxGQw.cjs");
2
2
  module.exports = require_as_number.as_number_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-number.vue-BUUl1Y_9.mjs";
1
+ import { t as _default } from "./as-number.vue-BiZ2B2iJ.mjs";
2
2
  export { _default as default };
@@ -1,2 +1,2 @@
1
- import { t as as_number_default } from "./as-number-B7zYsrwk.mjs";
1
+ import { t as as_number_default } from "./as-number-6DTZnVfg.mjs";
2
2
  export { as_number_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-number.vue.d.ts
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-object.vue-pL1w2onW.mjs";
1
+ import { t as _default } from "./as-object.vue-Dg4IT2JT.mjs";
2
2
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-object.vue.d.ts
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-paragraph.vue-aKtn76iW.mjs";
1
+ import { t as _default } from "./as-paragraph.vue-Bp-MUDcH.mjs";
2
2
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-paragraph.vue.d.ts
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-radio.vue-DQ9GnafC.mjs";
1
+ import { t as _default } from "./as-radio.vue-NmjJm8Pj.mjs";
2
2
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-radio.vue.d.ts
package/dist/as-ref.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-ref.vue-njC9usEd.mjs";
1
+ import { t as _default } from "./as-ref.vue-vP2P1ePF.mjs";
2
2
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-ref.vue.d.ts
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-select.vue-DGwIGxEr.mjs";
1
+ import { t as _default } from "./as-select.vue-9mQ6cjW7.mjs";
2
2
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-select.vue.d.ts
@@ -1,6 +1,7 @@
1
1
  import { t as as_field_shell_default } from "./as-field-shell-Bxqa_ZsU.mjs";
2
2
  import { t as as_adornment_shell_default } from "./as-adornment-shell-C4A2fnDp.mjs";
3
- import { n as as_date_control_default, t as useAsDate } from "./use-as-date-DXJhqwyJ.mjs";
3
+ import { t as committedValue } from "./_shape-CpbGJMWP.mjs";
4
+ import { n as as_date_control_default, t as useAsDate } from "./use-as-date-pbhMXyU8.mjs";
4
5
  import { computed, createBlock, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, unref, withCtx } from "vue";
5
6
  //#endregion
6
7
  //#region src/components/defaults/as-time.vue
@@ -205,7 +206,7 @@ var as_time_default = /* @__PURE__ */ defineComponent({
205
206
  modelValue: () => props.model.value,
206
207
  kind: "time",
207
208
  onCommit: (v) => {
208
- props.model.value = v;
209
+ props.model.value = committedValue(v, props.optional);
209
210
  }
210
211
  });
211
212
  const shellTitle = computed(() => props.currencyCode ?? props.unitCode ?? void 0);
@@ -1,6 +1,7 @@
1
1
  const require_as_field_shell = require("./as-field-shell-BrJpCzIA.cjs");
2
2
  const require_as_adornment_shell = require("./as-adornment-shell-DptUMWNk.cjs");
3
- const require_use_as_date = require("./use-as-date-BazILwxT.cjs");
3
+ const require__shape = require("./_shape-JEtANIMR.cjs");
4
+ const require_use_as_date = require("./use-as-date-U_aHShPD.cjs");
4
5
  let vue = require("vue");
5
6
  //#endregion
6
7
  //#region src/components/defaults/as-time.vue
@@ -205,7 +206,7 @@ var as_time_default = /* @__PURE__ */ (0, vue.defineComponent)({
205
206
  modelValue: () => props.model.value,
206
207
  kind: "time",
207
208
  onCommit: (v) => {
208
- props.model.value = v;
209
+ props.model.value = require__shape.committedValue(v, props.optional);
209
210
  }
210
211
  });
211
212
  const shellTitle = (0, vue.computed)(() => props.currencyCode ?? props.unitCode ?? void 0);
package/dist/as-time.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const require_as_time = require("./as-time-Bybj2FVd.cjs");
1
+ const require_as_time = require("./as-time-Cu-8mKpR.cjs");
2
2
  module.exports = require_as_time.as_time_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-time.vue-CpQRa8tU.mjs";
1
+ import { t as _default } from "./as-time.vue-DGfZPnWK.mjs";
2
2
  export { _default as default };
package/dist/as-time.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as as_time_default } from "./as-time-hfgmHDVL.mjs";
1
+ import { t as as_time_default } from "./as-time-BQ6KXMyV.mjs";
2
2
  export { as_time_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-time.vue.d.ts
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-tuple.vue-Bvlf7sFv.mjs";
1
+ import { t as _default } from "./as-tuple.vue-CInEbMRo.mjs";
2
2
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-tuple.vue.d.ts
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-union.vue-CYgwfCd3.mjs";
1
+ import { t as _default } from "./as-union.vue-Bz3EO0Gg.mjs";
2
2
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-QI-iGjsL.mjs";
1
+ import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-union.vue.d.ts
package/dist/index.cjs CHANGED
@@ -23,12 +23,12 @@ const require_as_array = require("./as-array-DzQ4o2My.cjs");
23
23
  const require_as_union = require("./as-union-DT8XDZSt.cjs");
24
24
  const require_as_tuple = require("./as-tuple-Bctdt-WG.cjs");
25
25
  const require_as_ref = require("./as-ref-CPLoPNRP.cjs");
26
- const require_as_decimal = require("./as-decimal-BcvgGV03.cjs");
27
- const require_as_number = require("./as-number-DZyfbo_R.cjs");
28
- const require_use_as_date = require("./use-as-date-BazILwxT.cjs");
29
- const require_as_date = require("./as-date-DPNqfBaq.cjs");
30
- const require_as_datetime = require("./as-datetime-BDUWhEuq.cjs");
31
- const require_as_time = require("./as-time-Bybj2FVd.cjs");
26
+ const require_as_decimal = require("./as-decimal-BZWqiKXZ.cjs");
27
+ const require_as_number = require("./as-number-BMsgxGQw.cjs");
28
+ const require_use_as_date = require("./use-as-date-U_aHShPD.cjs");
29
+ const require_as_date = require("./as-date-DTUQP2Dc.cjs");
30
+ const require_as_datetime = require("./as-datetime-BDJtlZLz.cjs");
31
+ const require_as_time = require("./as-time-Cu-8mKpR.cjs");
32
32
  let vue = require("vue");
33
33
  let _atscript_ui = require("@atscript/ui");
34
34
  //#region src/composables/create-as-form-def.ts
package/dist/index.d.cts CHANGED
@@ -20,5 +20,5 @@ import { t as _default$13 } from "./as-number.vue-DE33Giq3.cjs";
20
20
  import { t as _default$4 } from "./as-date.vue-BiUgcOwZ.cjs";
21
21
  import { t as _default$5 } from "./as-datetime.vue-BVc6jcUI.cjs";
22
22
  import { t as _default$19 } from "./as-time.vue-CmvsgHJd.cjs";
23
- import { $ as AsNestedSectionsStore, A as UseAsDecimalOptions, At as TFormFieldCallbacks, B as UseAsOptionalAddFlowReturn, C as useAsDate, Ct as useAsFormPatch, D as UseAsNumberOptions, Dt as UseAsFieldOptions, E as useAsDualInput, Et as useAsState, F as useAsLocale, Ft as createAsFormDef, G as useAsVisibleFields, H as focusFirstAfter, I as UseAsTriStateCheckboxOptions, J as TResolveFieldPropOptions, K as UseAsOptionalFieldReturn, L as UseAsTriStateCheckboxReturn, M as useAsDecimal, Mt as TFormRule, N as UseAsLocaleReturn, Nt as TFormState, O as UseAsNumberReturn, Ot as UseAsFieldReturn, P as provideAsLocale, Pt as createDefaultTypes, Q as useAsLevel, R as useAsTriStateCheckbox, S as UseAsDateReturn, St as RebaseOntoResult, T as UseAsDualInputReturn, Tt as UseAsStateReturn, U as focusNewFocusableAfter, V as useAsOptionalAddFlow, W as useAsFocusFirstAfter, X as useAsFieldScope, Y as UseAsFieldScopeReturn, Z as provideAsNestedLevel, _ as UseAsTypeMapReturn, _t as useAsExternalErrors, a as FormFieldChange, at as UseAsValueHelpReturn, b as useAsPath, bt as useAsForm, c as hasFieldMeta, ct as useAsUnionVariant, d as resetDefaultClientFactory, dt as UseAsTupleReturn, et as provideAsNestedSectionsStore, f as setDefaultClientFactory, ft as useAsTuple, g as useAsData, gt as UseAsExternalErrorsReturn, h as UseAsDataReturn, ht as UseAsExternalErrorsOptions, i as FormDiffOptions, it as UseAsValueHelpOptions, j as UseAsDecimalReturn, jt as TFormFieldRegistration, k as useAsNumber, kt as useAsField, l as isFieldHidden, lt as UseAsUnionReturn, m as useAsErrorDismiss, mt as useAsArray, n as _default$9, nt as useAsNestedSectionsStore, o as FormRebaseOptions, ot as useAsValueHelp, p as AsErrorDismiss, pt as UseAsArrayReturn, q as useAsOptionalField, r as ClientFactory, rt as useAsDropdown, s as getDefaultClientFactory, st as formatIndexedLabelParts, tt as useAsDescendantErrorCounts, u as joinPath, ut as useAsUnion, v as useAsTypeMap, vt as UseAsFormOptions, w as UseAsDualInputOptions, wt as TFormSubmitValidator, x as UseAsDateOptions, xt as AsFormPatchHandle, y as UseAsPathReturn, yt as UseAsFormReturn, z as UseAsOptionalAddFlowOptions } from "./as-form.vue-B6JmG2a-.cjs";
23
+ import { $ as AsNestedSectionsStore, A as UseAsDecimalOptions, At as TFormFieldCallbacks, B as UseAsOptionalAddFlowReturn, C as useAsDate, Ct as useAsFormPatch, D as UseAsNumberOptions, Dt as UseAsFieldOptions, E as useAsDualInput, Et as useAsState, F as useAsLocale, Ft as createAsFormDef, G as useAsVisibleFields, H as focusFirstAfter, I as UseAsTriStateCheckboxOptions, J as TResolveFieldPropOptions, K as UseAsOptionalFieldReturn, L as UseAsTriStateCheckboxReturn, M as useAsDecimal, Mt as TFormRule, N as UseAsLocaleReturn, Nt as TFormState, O as UseAsNumberReturn, Ot as UseAsFieldReturn, P as provideAsLocale, Pt as createDefaultTypes, Q as useAsLevel, R as useAsTriStateCheckbox, S as UseAsDateReturn, St as RebaseOntoResult, T as UseAsDualInputReturn, Tt as UseAsStateReturn, U as focusNewFocusableAfter, V as useAsOptionalAddFlow, W as useAsFocusFirstAfter, X as useAsFieldScope, Y as UseAsFieldScopeReturn, Z as provideAsNestedLevel, _ as UseAsTypeMapReturn, _t as useAsExternalErrors, a as FormFieldChange, at as UseAsValueHelpReturn, b as useAsPath, bt as useAsForm, c as hasFieldMeta, ct as useAsUnionVariant, d as resetDefaultClientFactory, dt as UseAsTupleReturn, et as provideAsNestedSectionsStore, f as setDefaultClientFactory, ft as useAsTuple, g as useAsData, gt as UseAsExternalErrorsReturn, h as UseAsDataReturn, ht as UseAsExternalErrorsOptions, i as FormDiffOptions, it as UseAsValueHelpOptions, j as UseAsDecimalReturn, jt as TFormFieldRegistration, k as useAsNumber, kt as useAsField, l as isFieldHidden, lt as UseAsUnionReturn, m as useAsErrorDismiss, mt as useAsArray, n as _default$9, nt as useAsNestedSectionsStore, o as FormRebaseOptions, ot as useAsValueHelp, p as AsErrorDismiss, pt as UseAsArrayReturn, q as useAsOptionalField, r as ClientFactory, rt as useAsDropdown, s as getDefaultClientFactory, st as formatIndexedLabelParts, tt as useAsDescendantErrorCounts, u as joinPath, ut as useAsUnion, v as useAsTypeMap, vt as UseAsFormOptions, w as UseAsDualInputOptions, wt as TFormSubmitValidator, x as UseAsDateOptions, xt as AsFormPatchHandle, y as UseAsPathReturn, yt as UseAsFormReturn, z as UseAsOptionalAddFlowOptions } from "./as-form.vue-FimWnYe7.cjs";
24
24
  export { _default as AsAction, _default$1 as AsArray, _default$2 as AsCheckbox, _default$3 as AsCollapsible, _default$4 as AsDate, _default$5 as AsDatetime, _default$6 as AsDecimal, AsErrorDismiss, _default$7 as AsField, _default$8 as AsFieldShell, _default$9 as AsForm, AsFormPatchHandle, _default$10 as AsInput, _default$11 as AsIterator, _default$12 as AsMultiSelect, AsNestedSectionsStore, _default$13 as AsNumber, _default$14 as AsObject, _default$15 as AsParagraph, _default$16 as AsRadio, _default$17 as AsRef, _default$18 as AsSelect, _default$19 as AsTime, _default$20 as AsTuple, _default$21 as AsUnion, ClientFactory, FormDiffOptions, FormFieldChange, FormRebaseOptions, RebaseOntoResult, TAsBaseComponentProps, TAsChangeType, TAsCollapsibleProps, TAsCollapsibleSlots, TAsComponentEmits, TAsComponentProps, TAsTypeComponents, TAsUnionContext, TFormFieldCallbacks, TFormFieldRegistration, TFormRule, TFormState, TFormSubmitValidator, TResolveFieldPropOptions, UseAsArrayReturn, UseAsDataReturn, UseAsDateOptions, UseAsDateReturn, UseAsDecimalOptions, UseAsDecimalReturn, UseAsDualInputOptions, UseAsDualInputReturn, UseAsExternalErrorsOptions, UseAsExternalErrorsReturn, UseAsFieldOptions, UseAsFieldReturn, UseAsFieldScopeReturn, UseAsFormOptions, UseAsFormReturn, UseAsLocaleReturn, UseAsNumberOptions, UseAsNumberReturn, UseAsOptionalAddFlowOptions, UseAsOptionalAddFlowReturn, UseAsOptionalFieldReturn, UseAsPathReturn, UseAsStateReturn, UseAsTriStateCheckboxOptions, UseAsTriStateCheckboxReturn, UseAsTupleReturn, UseAsTypeMapReturn, UseAsUnionReturn, UseAsValueHelpOptions, UseAsValueHelpReturn, createAsFormDef, createDefaultTypes, focusFirstAfter, focusNewFocusableAfter, formatIndexedLabelParts, getDefaultClientFactory, hasFieldMeta, isFieldHidden, joinPath, provideAsLocale, provideAsNestedLevel, provideAsNestedSectionsStore, resetDefaultClientFactory, setDefaultClientFactory, useAsArray, useAsData, useAsDate, useAsDecimal, useAsDescendantErrorCounts, useAsDropdown, useAsDualInput, useAsErrorDismiss, useAsExternalErrors, useAsField, useAsFieldScope, useAsFocusFirstAfter, useAsForm, useAsFormPatch, useAsLevel, useAsLocale, useAsNestedSectionsStore, useAsNumber, useAsOptionalAddFlow, useAsOptionalField, useAsPath, useAsState, useAsTriStateCheckbox, useAsTuple, useAsTypeMap, useAsUnion, useAsUnionVariant, useAsValueHelp, useAsVisibleFields };
package/dist/index.d.mts CHANGED
@@ -1,24 +1,24 @@
1
- import { a as TAsComponentEmits, c as TAsUnionContext, i as TAsCollapsibleSlots, n as TAsChangeType, o as TAsComponentProps, r as TAsCollapsibleProps, s as TAsTypeComponents, t as TAsBaseComponentProps } from "./types-QI-iGjsL.mjs";
2
- import { t as _default$3 } from "./as-collapsible.vue-B6Bs3fZU.mjs";
3
- import { t as _default$7 } from "./as-field.vue-BOTSEvA_.mjs";
4
- import { t as _default$11 } from "./as-iterator.vue-diVHA64A.mjs";
5
- import { t as _default$8 } from "./as-field-shell.vue-BDtmxN8W.mjs";
6
- import { t as _default$10 } from "./as-input.vue--S9S4-N-.mjs";
7
- import { t as _default$18 } from "./as-select.vue-DGwIGxEr.mjs";
8
- import { t as _default$12 } from "./as-multi-select.vue-DRe3VNeM.mjs";
9
- import { t as _default$16 } from "./as-radio.vue-DQ9GnafC.mjs";
10
- import { t as _default$2 } from "./as-checkbox.vue-C2kipqKM.mjs";
11
- import { t as _default$15 } from "./as-paragraph.vue-aKtn76iW.mjs";
12
- import { t as _default } from "./as-action.vue-DOOr8wOc.mjs";
13
- import { t as _default$14 } from "./as-object.vue-pL1w2onW.mjs";
14
- import { t as _default$1 } from "./as-array.vue-Cd2X9Aj9.mjs";
15
- import { t as _default$21 } from "./as-union.vue-CYgwfCd3.mjs";
16
- import { t as _default$20 } from "./as-tuple.vue-Bvlf7sFv.mjs";
17
- import { t as _default$17 } from "./as-ref.vue-njC9usEd.mjs";
18
- import { t as _default$6 } from "./as-decimal.vue-BfhaMuCz.mjs";
19
- import { t as _default$13 } from "./as-number.vue-BUUl1Y_9.mjs";
20
- import { t as _default$4 } from "./as-date.vue-BZ1cNMbN.mjs";
21
- import { t as _default$5 } from "./as-datetime.vue-DLuL9Zp3.mjs";
22
- import { t as _default$19 } from "./as-time.vue-CpQRa8tU.mjs";
23
- import { $ as AsNestedSectionsStore, A as UseAsDecimalOptions, At as TFormFieldCallbacks, B as UseAsOptionalAddFlowReturn, C as useAsDate, Ct as useAsFormPatch, D as UseAsNumberOptions, Dt as UseAsFieldOptions, E as useAsDualInput, Et as useAsState, F as useAsLocale, Ft as createAsFormDef, G as useAsVisibleFields, H as focusFirstAfter, I as UseAsTriStateCheckboxOptions, J as TResolveFieldPropOptions, K as UseAsOptionalFieldReturn, L as UseAsTriStateCheckboxReturn, M as useAsDecimal, Mt as TFormRule, N as UseAsLocaleReturn, Nt as TFormState, O as UseAsNumberReturn, Ot as UseAsFieldReturn, P as provideAsLocale, Pt as createDefaultTypes, Q as useAsLevel, R as useAsTriStateCheckbox, S as UseAsDateReturn, St as RebaseOntoResult, T as UseAsDualInputReturn, Tt as UseAsStateReturn, U as focusNewFocusableAfter, V as useAsOptionalAddFlow, W as useAsFocusFirstAfter, X as useAsFieldScope, Y as UseAsFieldScopeReturn, Z as provideAsNestedLevel, _ as UseAsTypeMapReturn, _t as useAsExternalErrors, a as FormFieldChange, at as UseAsValueHelpReturn, b as useAsPath, bt as useAsForm, c as hasFieldMeta, ct as useAsUnionVariant, d as resetDefaultClientFactory, dt as UseAsTupleReturn, et as provideAsNestedSectionsStore, f as setDefaultClientFactory, ft as useAsTuple, g as useAsData, gt as UseAsExternalErrorsReturn, h as UseAsDataReturn, ht as UseAsExternalErrorsOptions, i as FormDiffOptions, it as UseAsValueHelpOptions, j as UseAsDecimalReturn, jt as TFormFieldRegistration, k as useAsNumber, kt as useAsField, l as isFieldHidden, lt as UseAsUnionReturn, m as useAsErrorDismiss, mt as useAsArray, n as _default$9, nt as useAsNestedSectionsStore, o as FormRebaseOptions, ot as useAsValueHelp, p as AsErrorDismiss, pt as UseAsArrayReturn, q as useAsOptionalField, r as ClientFactory, rt as useAsDropdown, s as getDefaultClientFactory, st as formatIndexedLabelParts, tt as useAsDescendantErrorCounts, u as joinPath, ut as useAsUnion, v as useAsTypeMap, vt as UseAsFormOptions, w as UseAsDualInputOptions, wt as TFormSubmitValidator, x as UseAsDateOptions, xt as AsFormPatchHandle, y as UseAsPathReturn, yt as UseAsFormReturn, z as UseAsOptionalAddFlowOptions } from "./as-form.vue-DkRgc3SA.mjs";
1
+ import { a as TAsComponentEmits, c as TAsUnionContext, i as TAsCollapsibleSlots, n as TAsChangeType, o as TAsComponentProps, r as TAsCollapsibleProps, s as TAsTypeComponents, t as TAsBaseComponentProps } from "./types-BLoV3zIo.mjs";
2
+ import { t as _default$3 } from "./as-collapsible.vue-DowxhNde.mjs";
3
+ import { t as _default$7 } from "./as-field.vue-CN4gnZcq.mjs";
4
+ import { t as _default$11 } from "./as-iterator.vue-B0DTpqFJ.mjs";
5
+ import { t as _default$8 } from "./as-field-shell.vue-DisEXQI1.mjs";
6
+ import { t as _default$10 } from "./as-input.vue-CL-Om6Ed.mjs";
7
+ import { t as _default$18 } from "./as-select.vue-9mQ6cjW7.mjs";
8
+ import { t as _default$12 } from "./as-multi-select.vue-5GHWrbim.mjs";
9
+ import { t as _default$16 } from "./as-radio.vue-NmjJm8Pj.mjs";
10
+ import { t as _default$2 } from "./as-checkbox.vue-BXS5v6Ru.mjs";
11
+ import { t as _default$15 } from "./as-paragraph.vue-Bp-MUDcH.mjs";
12
+ import { t as _default } from "./as-action.vue-yDKx8hC0.mjs";
13
+ import { t as _default$14 } from "./as-object.vue-Dg4IT2JT.mjs";
14
+ import { t as _default$1 } from "./as-array.vue-DKcxkmjP.mjs";
15
+ import { t as _default$21 } from "./as-union.vue-Bz3EO0Gg.mjs";
16
+ import { t as _default$20 } from "./as-tuple.vue-CInEbMRo.mjs";
17
+ import { t as _default$17 } from "./as-ref.vue-vP2P1ePF.mjs";
18
+ import { t as _default$6 } from "./as-decimal.vue-BDfM2ICc.mjs";
19
+ import { t as _default$13 } from "./as-number.vue-BiZ2B2iJ.mjs";
20
+ import { t as _default$4 } from "./as-date.vue-BVvALvZ_.mjs";
21
+ import { t as _default$5 } from "./as-datetime.vue-CCQqZsKA.mjs";
22
+ import { t as _default$19 } from "./as-time.vue-DGfZPnWK.mjs";
23
+ import { $ as AsNestedSectionsStore, A as UseAsDecimalOptions, At as TFormFieldCallbacks, B as UseAsOptionalAddFlowReturn, C as useAsDate, Ct as useAsFormPatch, D as UseAsNumberOptions, Dt as UseAsFieldOptions, E as useAsDualInput, Et as useAsState, F as useAsLocale, Ft as createAsFormDef, G as useAsVisibleFields, H as focusFirstAfter, I as UseAsTriStateCheckboxOptions, J as TResolveFieldPropOptions, K as UseAsOptionalFieldReturn, L as UseAsTriStateCheckboxReturn, M as useAsDecimal, Mt as TFormRule, N as UseAsLocaleReturn, Nt as TFormState, O as UseAsNumberReturn, Ot as UseAsFieldReturn, P as provideAsLocale, Pt as createDefaultTypes, Q as useAsLevel, R as useAsTriStateCheckbox, S as UseAsDateReturn, St as RebaseOntoResult, T as UseAsDualInputReturn, Tt as UseAsStateReturn, U as focusNewFocusableAfter, V as useAsOptionalAddFlow, W as useAsFocusFirstAfter, X as useAsFieldScope, Y as UseAsFieldScopeReturn, Z as provideAsNestedLevel, _ as UseAsTypeMapReturn, _t as useAsExternalErrors, a as FormFieldChange, at as UseAsValueHelpReturn, b as useAsPath, bt as useAsForm, c as hasFieldMeta, ct as useAsUnionVariant, d as resetDefaultClientFactory, dt as UseAsTupleReturn, et as provideAsNestedSectionsStore, f as setDefaultClientFactory, ft as useAsTuple, g as useAsData, gt as UseAsExternalErrorsReturn, h as UseAsDataReturn, ht as UseAsExternalErrorsOptions, i as FormDiffOptions, it as UseAsValueHelpOptions, j as UseAsDecimalReturn, jt as TFormFieldRegistration, k as useAsNumber, kt as useAsField, l as isFieldHidden, lt as UseAsUnionReturn, m as useAsErrorDismiss, mt as useAsArray, n as _default$9, nt as useAsNestedSectionsStore, o as FormRebaseOptions, ot as useAsValueHelp, p as AsErrorDismiss, pt as UseAsArrayReturn, q as useAsOptionalField, r as ClientFactory, rt as useAsDropdown, s as getDefaultClientFactory, st as formatIndexedLabelParts, tt as useAsDescendantErrorCounts, u as joinPath, ut as useAsUnion, v as useAsTypeMap, vt as UseAsFormOptions, w as UseAsDualInputOptions, wt as TFormSubmitValidator, x as UseAsDateOptions, xt as AsFormPatchHandle, y as UseAsPathReturn, yt as UseAsFormReturn, z as UseAsOptionalAddFlowOptions } from "./as-form.vue-BJA1Hbdd.mjs";
24
24
  export { _default as AsAction, _default$1 as AsArray, _default$2 as AsCheckbox, _default$3 as AsCollapsible, _default$4 as AsDate, _default$5 as AsDatetime, _default$6 as AsDecimal, AsErrorDismiss, _default$7 as AsField, _default$8 as AsFieldShell, _default$9 as AsForm, AsFormPatchHandle, _default$10 as AsInput, _default$11 as AsIterator, _default$12 as AsMultiSelect, AsNestedSectionsStore, _default$13 as AsNumber, _default$14 as AsObject, _default$15 as AsParagraph, _default$16 as AsRadio, _default$17 as AsRef, _default$18 as AsSelect, _default$19 as AsTime, _default$20 as AsTuple, _default$21 as AsUnion, ClientFactory, FormDiffOptions, FormFieldChange, FormRebaseOptions, RebaseOntoResult, TAsBaseComponentProps, TAsChangeType, TAsCollapsibleProps, TAsCollapsibleSlots, TAsComponentEmits, TAsComponentProps, TAsTypeComponents, TAsUnionContext, TFormFieldCallbacks, TFormFieldRegistration, TFormRule, TFormState, TFormSubmitValidator, TResolveFieldPropOptions, UseAsArrayReturn, UseAsDataReturn, UseAsDateOptions, UseAsDateReturn, UseAsDecimalOptions, UseAsDecimalReturn, UseAsDualInputOptions, UseAsDualInputReturn, UseAsExternalErrorsOptions, UseAsExternalErrorsReturn, UseAsFieldOptions, UseAsFieldReturn, UseAsFieldScopeReturn, UseAsFormOptions, UseAsFormReturn, UseAsLocaleReturn, UseAsNumberOptions, UseAsNumberReturn, UseAsOptionalAddFlowOptions, UseAsOptionalAddFlowReturn, UseAsOptionalFieldReturn, UseAsPathReturn, UseAsStateReturn, UseAsTriStateCheckboxOptions, UseAsTriStateCheckboxReturn, UseAsTupleReturn, UseAsTypeMapReturn, UseAsUnionReturn, UseAsValueHelpOptions, UseAsValueHelpReturn, createAsFormDef, createDefaultTypes, focusFirstAfter, focusNewFocusableAfter, formatIndexedLabelParts, getDefaultClientFactory, hasFieldMeta, isFieldHidden, joinPath, provideAsLocale, provideAsNestedLevel, provideAsNestedSectionsStore, resetDefaultClientFactory, setDefaultClientFactory, useAsArray, useAsData, useAsDate, useAsDecimal, useAsDescendantErrorCounts, useAsDropdown, useAsDualInput, useAsErrorDismiss, useAsExternalErrors, useAsField, useAsFieldScope, useAsFocusFirstAfter, useAsForm, useAsFormPatch, useAsLevel, useAsLocale, useAsNestedSectionsStore, useAsNumber, useAsOptionalAddFlow, useAsOptionalField, useAsPath, useAsState, useAsTriStateCheckbox, useAsTuple, useAsTypeMap, useAsUnion, useAsUnionVariant, useAsValueHelp, useAsVisibleFields };
package/dist/index.mjs CHANGED
@@ -22,12 +22,12 @@ import { n as useAsArray, t as as_array_default } from "./as-array-DCDWM-j2.mjs"
22
22
  import { n as useAsTypeMap, r as useAsUnion, t as as_union_default } from "./as-union-Gz8gEjmn.mjs";
23
23
  import { n as useAsTuple, t as as_tuple_default } from "./as-tuple-CnRtQniL.mjs";
24
24
  import { t as as_ref_default } from "./as-ref-qg5EwDtk.mjs";
25
- import { n as useAsDualInput, r as useAsDecimal, t as as_decimal_default } from "./as-decimal-Ck4oZ3uK.mjs";
26
- import { n as useAsNumber, t as as_number_default } from "./as-number-B7zYsrwk.mjs";
27
- import { t as useAsDate } from "./use-as-date-DXJhqwyJ.mjs";
28
- import { t as as_date_default } from "./as-date-gGh6aNHW.mjs";
29
- import { t as as_datetime_default } from "./as-datetime-DqXt3riD.mjs";
30
- import { t as as_time_default } from "./as-time-hfgmHDVL.mjs";
25
+ import { n as useAsDualInput, r as useAsDecimal, t as as_decimal_default } from "./as-decimal-Bimpnzo2.mjs";
26
+ import { n as useAsNumber, t as as_number_default } from "./as-number-6DTZnVfg.mjs";
27
+ import { t as useAsDate } from "./use-as-date-pbhMXyU8.mjs";
28
+ import { t as as_date_default } from "./as-date-DyQsn7Mu.mjs";
29
+ import { t as as_datetime_default } from "./as-datetime-CrstxtPJ.mjs";
30
+ import { t as as_time_default } from "./as-time-BQ6KXMyV.mjs";
31
31
  import { computed, inject, reactive, toValue } from "vue";
32
32
  import { UI_FORM_FN_HIDDEN, UI_FORM_HIDDEN, createFormData, createFormDef, createFormValueResolver, getDefaultClientFactory, hasFieldMeta, isFieldHidden, joinPath, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
33
33
  //#region src/composables/create-as-form-def.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/vue-form",
3
- "version": "0.1.152",
3
+ "version": "0.1.153",
4
4
  "description": "Type-driven form rendering for Atscript with Vue 3",
5
5
  "keywords": [
6
6
  "atscript",
@@ -160,29 +160,29 @@
160
160
  "access": "public"
161
161
  },
162
162
  "dependencies": {
163
- "@atscript/ui": "^0.1.152"
163
+ "@atscript/ui": "^0.1.153"
164
164
  },
165
165
  "devDependencies": {
166
- "@atscript/core": "^0.1.102",
167
- "@atscript/db-client": "^0.1.151",
168
- "@atscript/typescript": "^0.1.102",
166
+ "@atscript/core": "^0.1.103",
167
+ "@atscript/db-client": "^0.1.153",
168
+ "@atscript/typescript": "^0.1.103",
169
169
  "@tsdown/css": "^0.21.4",
170
170
  "@vitejs/plugin-vue": "^6",
171
171
  "@vue/test-utils": "^2",
172
172
  "happy-dom": "^18",
173
173
  "reka-ui": "^2.9.8",
174
- "unplugin-atscript": "^0.1.102",
174
+ "unplugin-atscript": "^0.1.103",
175
175
  "vitest": "npm:@voidzero-dev/vite-plus-test@0.1.14",
176
176
  "vue": "^3",
177
177
  "vue-tsc": "~3.2.9",
178
178
  "vunor": "^0.3.2",
179
- "@atscript/ui-fns": "^0.1.152"
179
+ "@atscript/ui-fns": "^0.1.153"
180
180
  },
181
181
  "peerDependencies": {
182
- "@atscript/db-client": "^0.1.151",
182
+ "@atscript/db-client": "^0.1.153",
183
183
  "reka-ui": "^2.9.8",
184
184
  "vue": "^3",
185
- "@atscript/ui-fns": "^0.1.152"
185
+ "@atscript/ui-fns": "^0.1.153"
186
186
  },
187
187
  "scripts": {
188
188
  "build": "node ../../scripts/gen-exports.mjs && vp pack",