@atscript/vue-form 0.1.164 → 0.1.165

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 (109) hide show
  1. package/dist/{as-array-CqnBh3rv.mjs → as-array-B2axGw3v.mjs} +15 -12
  2. package/dist/{as-array-CxeMe9Dw.cjs → as-array-C97cLzdA.cjs} +16 -13
  3. package/dist/{as-array-clear-btn-COfRUzeb.cjs → as-array-clear-btn-BBFccQjO.cjs} +5 -3
  4. package/dist/{as-array-clear-btn-BY1IBwBP.mjs → as-array-clear-btn-DEH8a3_N.mjs} +6 -4
  5. package/dist/as-array.cjs +1 -1
  6. package/dist/as-array.mjs +1 -1
  7. package/dist/{as-checkbox-DosdhEuS.mjs → as-checkbox-BO8xW0OM.mjs} +36 -12
  8. package/dist/{as-checkbox-QO5Oh13K.cjs → as-checkbox-Wn-PmHi-.cjs} +35 -11
  9. package/dist/as-checkbox.cjs +1 -1
  10. package/dist/as-checkbox.mjs +1 -1
  11. package/dist/{as-collapsible-CQyuXwj9.cjs → as-collapsible-BGeuF2Bn.cjs} +4 -2
  12. package/dist/{as-collapsible-DHSlSMfY.mjs → as-collapsible-Cb9SgJh9.mjs} +5 -3
  13. package/dist/as-collapsible.cjs +1 -1
  14. package/dist/as-collapsible.mjs +1 -1
  15. package/dist/{as-date-DTUQP2Dc.cjs → as-date-B2dgUoau.cjs} +1 -1
  16. package/dist/{as-date-DyQsn7Mu.mjs → as-date-jQpwe6sr.mjs} +1 -1
  17. package/dist/as-date.cjs +1 -1
  18. package/dist/as-date.mjs +1 -1
  19. package/dist/{as-datetime-BDJtlZLz.cjs → as-datetime-CmBLyjgU.cjs} +1 -1
  20. package/dist/{as-datetime-CrstxtPJ.mjs → as-datetime-DYn9NndT.mjs} +1 -1
  21. package/dist/as-datetime.cjs +1 -1
  22. package/dist/as-datetime.mjs +1 -1
  23. package/dist/{as-decimal-Bimpnzo2.mjs → as-decimal-C-OJ8ygU.mjs} +4 -3
  24. package/dist/{as-decimal-BZWqiKXZ.cjs → as-decimal-C0Eqd9nM.cjs} +4 -3
  25. package/dist/as-decimal.cjs +1 -1
  26. package/dist/as-decimal.mjs +1 -1
  27. package/dist/{as-field-DQxlwJVM.mjs → as-field-BZpWLPcM.mjs} +16 -13
  28. package/dist/{as-field-8MDWK_jb.cjs → as-field-D0HgywQY.cjs} +15 -12
  29. package/dist/{as-field-shell-Bxqa_ZsU.mjs → as-field-shell-D7XovzgJ.mjs} +14 -7
  30. package/dist/{as-field-shell-BrJpCzIA.cjs → as-field-shell-DSj3CqN6.cjs} +14 -7
  31. package/dist/as-field-shell.cjs +1 -1
  32. package/dist/as-field-shell.mjs +1 -1
  33. package/dist/as-field.cjs +1 -1
  34. package/dist/as-field.mjs +1 -1
  35. package/dist/{as-form-C-CV5ezE.mjs → as-form-0VCxVsGo.mjs} +18 -10
  36. package/dist/{as-form-DLSFfuLR.cjs → as-form-ChyW9bj2.cjs} +18 -10
  37. package/dist/as-form.cjs +1 -1
  38. package/dist/as-form.d.cts +1 -1
  39. package/dist/as-form.d.mts +1 -1
  40. package/dist/as-form.mjs +1 -1
  41. package/dist/{as-form.vue-BA70Ib2m.d.cts → as-form.vue-CjNW1L-x.d.cts} +7 -11
  42. package/dist/{as-form.vue-D2SQ5VeJ.d.mts → as-form.vue-NCTvXZUy.d.mts} +7 -11
  43. package/dist/{as-input-UkZxRSD4.cjs → as-input-Bf94SAOY.cjs} +1 -1
  44. package/dist/{as-input-65rtLZt3.mjs → as-input-DlLLiAYI.mjs} +1 -1
  45. package/dist/as-input.cjs +1 -1
  46. package/dist/as-input.mjs +1 -1
  47. package/dist/{as-iterator-Bbyxog8g.cjs → as-iterator-Bty6f5Bq.cjs} +2 -2
  48. package/dist/{as-iterator-CaQ1TkIR.mjs → as-iterator-Dp1OiwU7.mjs} +2 -2
  49. package/dist/as-iterator.cjs +1 -1
  50. package/dist/as-iterator.mjs +1 -1
  51. package/dist/{as-multi-select-B7Nc2brD.mjs → as-multi-select-DT0M_1_O.mjs} +20 -17
  52. package/dist/{as-multi-select-BiUexFnY.cjs → as-multi-select-ZGBYoI48.cjs} +19 -16
  53. package/dist/as-multi-select.cjs +1 -1
  54. package/dist/as-multi-select.mjs +1 -1
  55. package/dist/{as-number-BMsgxGQw.cjs → as-number-DXQCnc9d.cjs} +2 -2
  56. package/dist/{as-number-6DTZnVfg.mjs → as-number-DkG5GuGW.mjs} +2 -2
  57. package/dist/as-number.cjs +1 -1
  58. package/dist/as-number.mjs +1 -1
  59. package/dist/{as-object-BjOUiVDG.cjs → as-object-DLdKOhxb.cjs} +14 -8
  60. package/dist/{as-object-0Qo0bPi5.mjs → as-object-mpRxIKVB.mjs} +14 -8
  61. package/dist/as-object.cjs +1 -1
  62. package/dist/as-object.mjs +1 -1
  63. package/dist/{as-radio-Dg9c4dGh.mjs → as-radio-CW9YWBnC.mjs} +3 -3
  64. package/dist/{as-radio-C06SIAFY.cjs → as-radio-D9sctKpc.cjs} +2 -2
  65. package/dist/as-radio.cjs +1 -1
  66. package/dist/as-radio.mjs +1 -1
  67. package/dist/{as-ref-BEhS_vo9.cjs → as-ref-CpHMAAJu.cjs} +5 -3
  68. package/dist/{as-ref-BWJlIf5G.mjs → as-ref-DaCGfshO.mjs} +5 -3
  69. package/dist/as-ref.cjs +1 -1
  70. package/dist/as-ref.mjs +1 -1
  71. package/dist/{as-select-CrTKlmhd.mjs → as-select-CrjlxcgR.mjs} +3 -3
  72. package/dist/{as-select-DzEUs8Od.cjs → as-select-DAbNosmB.cjs} +2 -2
  73. package/dist/as-select.cjs +1 -1
  74. package/dist/as-select.mjs +1 -1
  75. package/dist/{as-time-BQ6KXMyV.mjs → as-time-BmXXgfCZ.mjs} +1 -1
  76. package/dist/{as-time-Cu-8mKpR.cjs → as-time-NaICaSIj.cjs} +1 -1
  77. package/dist/as-time.cjs +1 -1
  78. package/dist/as-time.mjs +1 -1
  79. package/dist/{as-tuple-fwxeV71M.mjs → as-tuple-BBx6P6xb.mjs} +8 -6
  80. package/dist/{as-tuple-DKBOLriy.cjs → as-tuple-DkI9fp4G.cjs} +8 -6
  81. package/dist/as-tuple.cjs +1 -1
  82. package/dist/as-tuple.mjs +1 -1
  83. package/dist/{as-union-DT8XDZSt.cjs → as-union-BjmrvD80.cjs} +8 -6
  84. package/dist/{as-union-Gz8gEjmn.mjs → as-union-C3QiGYlE.mjs} +7 -5
  85. package/dist/as-union.cjs +1 -1
  86. package/dist/as-union.mjs +1 -1
  87. package/dist/{as-variant-picker-B3GLhKyt.mjs → as-variant-picker-BUF7Am9t.mjs} +13 -8
  88. package/dist/{as-variant-picker-JlEhh7YO.cjs → as-variant-picker-BcJx7Zt7.cjs} +14 -9
  89. package/dist/index.cjs +25 -25
  90. package/dist/index.d.cts +2 -1
  91. package/dist/index.d.mts +2 -1
  92. package/dist/index.mjs +24 -24
  93. package/dist/locale.cjs +5 -0
  94. package/dist/locale.d.cts +2 -0
  95. package/dist/locale.d.mts +2 -0
  96. package/dist/locale.mjs +2 -0
  97. package/dist/use-as-locale-1k9NBn-G.mjs +56 -0
  98. package/dist/use-as-locale-BVcC0l75.d.mts +35 -0
  99. package/dist/use-as-locale-C2tFUenv.cjs +73 -0
  100. package/dist/use-as-locale-CnGzoVWd.d.cts +35 -0
  101. package/dist/{use-as-value-help-CDmkz6A7.cjs → use-as-value-help-BE-fAZRP.cjs} +4 -2
  102. package/dist/{use-as-value-help-CYMlEubv.mjs → use-as-value-help-nIpEFMqD.mjs} +4 -2
  103. package/dist/{use-form-context-cDW2GW4-.mjs → use-form-context-C3FxL3eF.mjs} +4 -1
  104. package/dist/{use-form-context-B6ZnzfxG.cjs → use-form-context-CXsLnG7l.cjs} +4 -1
  105. package/dist/{use-as-dropdown-B2Shb7wn.mjs → variant-label-B065kts3.mjs} +13 -1
  106. package/dist/{use-as-dropdown-Bj9toVdw.cjs → variant-label-C-rLK7Z3.cjs} +18 -0
  107. package/package.json +14 -9
  108. package/dist/use-as-locale-BrFdAgnU.mjs +0 -23
  109. package/dist/use-as-locale-C4z5stwD.cjs +0 -34
@@ -352,7 +352,11 @@ interface UseAsFormReturn<TFormData = unknown, TFormContext = unknown> {
352
352
  clearErrors: () => void;
353
353
  /** Imperatively set external-error messages by path. */
354
354
  setErrors: (errors: Record<string, string>) => void;
355
- /** Trigger submit. Emits `submit` on success and `error` on validation failure. */
355
+ /**
356
+ * Trigger submit. Applies the type's `@normalize.*` (trim, case) to the data,
357
+ * validates the result and emits it with `submit` on success, `error` on
358
+ * validation failure. The form data itself is left as typed.
359
+ */
356
360
  onSubmit: () => void;
357
361
  /** Resolved submit-button text (`@ui.form.submit.text` / fn variant). */
358
362
  submitText: ComputedRef<string>;
@@ -844,14 +848,6 @@ interface UseAsTriStateCheckboxReturn {
844
848
  */
845
849
  declare function useAsTriStateCheckbox(options: UseAsTriStateCheckboxOptions): UseAsTriStateCheckboxReturn;
846
850
  //#endregion
847
- //#region src/composables/use-as-locale.d.ts
848
- declare function provideAsLocale(getter: () => string | undefined): void;
849
- interface UseAsLocaleReturn {
850
- /** Resolved locale; `undefined` when no provider is present (runtime locale). */
851
- locale: ComputedRef<string | undefined>;
852
- }
853
- declare function useAsLocale(): UseAsLocaleReturn;
854
- //#endregion
855
851
  //#region src/composables/use-as-decimal.d.ts
856
852
  interface UseAsDecimalOptions {
857
853
  /** Read the current value. Storage shape is preserved on commit. */
@@ -1170,12 +1166,12 @@ interface Props<TF, TC> {
1170
1166
  }
1171
1167
  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<{
1172
1168
  props: vue.PublicProps & __VLS_PrettifyLocal<Props<TFormData, TFormContext> & {
1169
+ onSubmit?: ((data: TAsFormValue<TFormData>) => any) | undefined;
1173
1170
  onError?: ((errors: {
1174
1171
  path: string;
1175
1172
  message: string;
1176
1173
  }[]) => any) | undefined;
1177
1174
  onAction?: ((name: string, data: TAsFormValue<TFormData>) => any) | undefined;
1178
- onSubmit?: ((data: TAsFormValue<TFormData>) => any) | undefined;
1179
1175
  "onUnsupported-action"?: ((name: string, data: TAsFormValue<TFormData>) => any) | undefined;
1180
1176
  onChange?: ((type: TAsChangeType, path: string, value: unknown, formData: TAsFormValue<TFormData>) => any) | undefined;
1181
1177
  }> & (typeof globalThis extends {
@@ -1385,4 +1381,4 @@ declare const __VLS_export: <TFormData = any, TFormContext = any>(__VLS_props: N
1385
1381
  declare const _default: typeof __VLS_export;
1386
1382
  type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
1387
1383
  //#endregion
1388
- export { useAsLevel as $, useAsNumber as A, UseAsFieldReturn as At, UseAsOptionalAddFlowOptions as B, UseAsDateReturn as C, AsFormPatchHandle as Ct, useAsDualInput as D, UseAsStateReturn as Dt, UseAsDualInputReturn as E, TFormSubmitValidator as Et, provideAsLocale as F, TFormState as Ft, useAsFocusFirstAfter as G, useAsOptionalAddFlow as H, useAsLocale as I, createDefaultTypes as It, useAsOptionalField as J, useAsVisibleFields as K, UseAsTriStateCheckboxOptions as L, createAsFormDef as Lt, UseAsDecimalReturn as M, TFormFieldCallbacks as Mt, useAsDecimal as N, TFormFieldRegistration as Nt, UseAsNumberOptions as O, useAsState as Ot, UseAsLocaleReturn as P, TFormRule as Pt, provideAsNestedLevel as Q, UseAsTriStateCheckboxReturn as R, UseAsDateOptions as S, useAsForm as St, UseAsDualInputOptions as T, useAsFormPatch as Tt, focusFirstAfter as U, UseAsOptionalAddFlowReturn as V, focusNewFocusableAfter as W, UseAsFieldScopeReturn as X, TResolveFieldPropOptions as Y, useAsFieldScope as Z, useAsData as _, UseAsExternalErrorsReturn as _t, FormFieldChange$1 as a, UseAsValueHelpOptions as at, UseAsPathReturn as b, UseAsFormOptions as bt, getDefaultClientFactory as c, formatIndexedLabelParts as ct, joinPath$1 as d, useAsUnion as dt, AsNestedSectionsStore as et, resetDefaultClientFactory as f, UseAsTupleReturn as ft, UseAsDataReturn as g, UseAsExternalErrorsOptions as gt, useAsErrorDismiss as h, useAsArray as ht, FormDiffOptions$1 as i, useAsDropdown as it, UseAsDecimalOptions as j, useAsField as jt, UseAsNumberReturn as k, UseAsFieldOptions as kt, hasFieldMeta$1 as l, useAsUnionVariant as lt, AsErrorDismiss as m, UseAsArrayReturn as mt, _default as n, useAsDescendantErrorCounts as nt, FormRebaseOptions$1 as o, UseAsValueHelpReturn as ot, setDefaultClientFactory as p, useAsTuple as pt, UseAsOptionalFieldReturn as q, ClientFactory$1 as r, useAsNestedSectionsStore as rt, TypedClientFactory as s, useAsValueHelp as st, Props as t, provideAsNestedSectionsStore as tt, isFieldHidden$1 as u, UseAsUnionReturn as ut, UseAsTypeMapReturn as v, useAsExternalErrors as vt, useAsDate as w, RebaseOntoResult as wt, useAsPath as x, UseAsFormReturn as xt, useAsTypeMap as y, TAsFormValue as yt, useAsTriStateCheckbox as z };
1384
+ export { useAsDescendantErrorCounts as $, useAsNumber as A, TFormFieldRegistration as At, focusFirstAfter as B, UseAsDateReturn as C, TFormSubmitValidator as Ct, useAsDualInput as D, UseAsFieldReturn as Dt, UseAsDualInputReturn as E, UseAsFieldOptions as Et, UseAsTriStateCheckboxReturn as F, useAsOptionalField as G, useAsFocusFirstAfter as H, useAsTriStateCheckbox as I, useAsFieldScope as J, TResolveFieldPropOptions as K, UseAsOptionalAddFlowOptions as L, UseAsDecimalReturn as M, TFormState as Mt, useAsDecimal as N, createDefaultTypes as Nt, UseAsNumberOptions as O, useAsField as Ot, UseAsTriStateCheckboxOptions as P, createAsFormDef as Pt, provideAsNestedSectionsStore as Q, UseAsOptionalAddFlowReturn as R, UseAsDateOptions as S, useAsFormPatch as St, UseAsDualInputOptions as T, useAsState as Tt, useAsVisibleFields as U, focusNewFocusableAfter as V, UseAsOptionalFieldReturn as W, useAsLevel as X, provideAsNestedLevel as Y, AsNestedSectionsStore as Z, useAsData as _, UseAsFormOptions as _t, FormFieldChange$1 as a, formatIndexedLabelParts as at, UseAsPathReturn as b, AsFormPatchHandle as bt, getDefaultClientFactory as c, useAsUnion as ct, joinPath$1 as d, UseAsArrayReturn as dt, useAsNestedSectionsStore as et, resetDefaultClientFactory as f, useAsArray as ft, UseAsDataReturn as g, TAsFormValue as gt, useAsErrorDismiss as h, useAsExternalErrors as ht, FormDiffOptions$1 as i, useAsValueHelp as it, UseAsDecimalOptions as j, TFormRule as jt, UseAsNumberReturn as k, TFormFieldCallbacks as kt, hasFieldMeta$1 as l, UseAsTupleReturn as lt, AsErrorDismiss as m, UseAsExternalErrorsReturn as mt, _default as n, UseAsValueHelpOptions as nt, FormRebaseOptions$1 as o, useAsUnionVariant as ot, setDefaultClientFactory as p, UseAsExternalErrorsOptions as pt, UseAsFieldScopeReturn as q, ClientFactory$1 as r, UseAsValueHelpReturn as rt, TypedClientFactory as s, UseAsUnionReturn as st, Props as t, useAsDropdown as tt, isFieldHidden$1 as u, useAsTuple as ut, UseAsTypeMapReturn as v, UseAsFormReturn as vt, useAsDate as w, UseAsStateReturn as wt, useAsPath as x, RebaseOntoResult as xt, useAsTypeMap as y, useAsForm as yt, useAsOptionalAddFlow as z };
@@ -1,4 +1,4 @@
1
- const require_as_field_shell = require("./as-field-shell-BrJpCzIA.cjs");
1
+ const require_as_field_shell = require("./as-field-shell-DSj3CqN6.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");
@@ -1,4 +1,4 @@
1
- import { t as as_field_shell_default } from "./as-field-shell-Bxqa_ZsU.mjs";
1
+ import { t as as_field_shell_default } from "./as-field-shell-D7XovzgJ.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";
package/dist/as-input.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const require_as_input = require("./as-input-UkZxRSD4.cjs");
1
+ const require_as_input = require("./as-input-Bf94SAOY.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-65rtLZt3.mjs";
1
+ import { t as as_input_default } from "./as-input-DlLLiAYI.mjs";
2
2
  export { as_input_default as default };
@@ -1,5 +1,5 @@
1
- const require_use_form_context = require("./use-form-context-B6ZnzfxG.cjs");
2
- const require_as_field = require("./as-field-8MDWK_jb.cjs");
1
+ const require_use_form_context = require("./use-form-context-CXsLnG7l.cjs");
2
+ const require_as_field = require("./as-field-D0HgywQY.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 { h as PATH_PREFIX_KEY, m as LEVEL_KEY } from "./use-form-context-cDW2GW4-.mjs";
2
- import { t as as_field_default } from "./as-field-DQxlwJVM.mjs";
1
+ import { h as PATH_PREFIX_KEY, m as LEVEL_KEY } from "./use-form-context-C3FxL3eF.mjs";
2
+ import { t as as_field_default } from "./as-field-BZpWLPcM.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
@@ -1,2 +1,2 @@
1
- const require_as_iterator = require("./as-iterator-Bbyxog8g.cjs");
1
+ const require_as_iterator = require("./as-iterator-Bty6f5Bq.cjs");
2
2
  module.exports = require_as_iterator.as_iterator_default;
@@ -1,2 +1,2 @@
1
- import { t as as_iterator_default } from "./as-iterator-CaQ1TkIR.mjs";
1
+ import { t as as_iterator_default } from "./as-iterator-Dp1OiwU7.mjs";
2
2
  export { as_iterator_default as default };
@@ -1,6 +1,7 @@
1
- import { t as as_field_shell_default } from "./as-field-shell-Bxqa_ZsU.mjs";
1
+ import { r as useAsTexts } from "./use-as-locale-1k9NBn-G.mjs";
2
+ import { t as as_field_shell_default } from "./as-field-shell-D7XovzgJ.mjs";
2
3
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, openBlock, ref, renderList, toDisplayString, unref, withCtx, withModifiers } from "vue";
3
- import { hasFieldMeta, optKey, optLabel } from "@atscript/ui";
4
+ import { hasFieldMeta, optKey, optLabel, optionValue } from "@atscript/ui";
4
5
  import { ComboboxAnchor, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxPortal, ComboboxRoot, ComboboxViewport, TagsInputInput, TagsInputItem, TagsInputItemDelete, TagsInputItemText, TagsInputRoot } from "reka-ui";
5
6
  //#region src/components/defaults/as-multi-select.vue?vue&type=script&setup=true&lang.ts
6
7
  const _hoisted_1 = ["id"];
@@ -10,13 +11,14 @@ const _hoisted_3 = [
10
11
  "aria-label",
11
12
  "onClick"
12
13
  ];
13
- const _hoisted_4 = { class: "as-multi-select-item-label" };
14
- const _hoisted_5 = {
14
+ const _hoisted_4 = ["aria-label"];
15
+ const _hoisted_5 = { class: "as-multi-select-item-label" };
16
+ const _hoisted_6 = {
15
17
  key: 0,
16
18
  class: "as-multi-select-footer"
17
19
  };
18
- const _hoisted_6 = ["disabled"];
19
20
  const _hoisted_7 = ["disabled"];
21
+ const _hoisted_8 = ["disabled"];
20
22
  //#endregion
21
23
  //#region src/components/defaults/as-multi-select.vue
22
24
  var as_multi_select_default = /* @__PURE__ */ defineComponent({
@@ -231,7 +233,7 @@ var as_multi_select_default = /* @__PURE__ */ defineComponent({
231
233
  props.model.value = [];
232
234
  }
233
235
  function selectAll() {
234
- props.model.value = (props.options ?? []).map((o) => optKey(o));
236
+ props.model.value = (props.options ?? []).map((o) => optionValue(o));
235
237
  }
236
238
  const tags = computed(() => props.field?.customType === "tags");
237
239
  const uniqueItems = computed(() => !!props.field && hasFieldMeta(props.field.prop, "expect.array.uniqueItems"));
@@ -246,6 +248,7 @@ var as_multi_select_default = /* @__PURE__ */ defineComponent({
246
248
  function onTags(values) {
247
249
  props.model.value = values.filter((v) => v !== "" && !(typeof v === "number" && Number.isNaN(v)));
248
250
  }
251
+ const { t } = useAsTexts();
249
252
  return (_ctx, _cache) => {
250
253
  return openBlock(), createBlock(as_field_shell_default, mergeProps(_ctx.$props, { "field-class": "as-multi-select-field" }), {
251
254
  header: withCtx(({ inputId }) => [createElementVNode("span", {
@@ -271,7 +274,7 @@ var as_multi_select_default = /* @__PURE__ */ defineComponent({
271
274
  }, {
272
275
  default: withCtx(() => [createVNode(unref(TagsInputItemText), { class: "as-multi-select-chip-label" }), createVNode(unref(TagsInputItemDelete), {
273
276
  class: "as-multi-select-chip-remove",
274
- "aria-label": `Remove ${item}`
277
+ "aria-label": unref(t)("UI_FORM_REMOVE_VALUE", { value: item })
275
278
  }, {
276
279
  default: withCtx(() => [..._cache[5] || (_cache[5] = [createElementVNode("span", {
277
280
  class: "i-as-close",
@@ -330,7 +333,7 @@ var as_multi_select_default = /* @__PURE__ */ defineComponent({
330
333
  type: "button",
331
334
  class: "as-multi-select-chip-remove",
332
335
  disabled: __props.disabled || __props.readonly,
333
- "aria-label": `Remove ${unref(optLabel)(opt)}`,
336
+ "aria-label": unref(t)("UI_FORM_REMOVE_VALUE", { value: unref(optLabel)(opt) }),
334
337
  onClick: withModifiers(($event) => deselect(unref(optKey)(opt)), ["stop"])
335
338
  }, [..._cache[6] || (_cache[6] = [createElementVNode("span", {
336
339
  class: "i-as-close",
@@ -339,7 +342,7 @@ var as_multi_select_default = /* @__PURE__ */ defineComponent({
339
342
  }), 128)),
340
343
  createVNode(unref(ComboboxInput), {
341
344
  id: inputId,
342
- placeholder: selectedOptions.value.length ? "" : __props.placeholder ?? "Select...",
345
+ placeholder: selectedOptions.value.length ? "" : __props.placeholder ?? unref(t)("UI_SELECT_PLACEHOLDER"),
343
346
  disabled: __props.disabled,
344
347
  readonly: __props.readonly,
345
348
  "aria-required": __props.required || void 0,
@@ -364,12 +367,12 @@ var as_multi_select_default = /* @__PURE__ */ defineComponent({
364
367
  key: 0,
365
368
  type: "button",
366
369
  class: "as-multi-select-clear",
367
- "aria-label": "Clear selection",
370
+ "aria-label": unref(t)("UI_CLEAR_SELECTION"),
368
371
  onClick: withModifiers(clearAll, ["stop", "prevent"])
369
372
  }, [..._cache[7] || (_cache[7] = [createElementVNode("span", {
370
373
  class: "i-as-close",
371
374
  "aria-hidden": "true"
372
- }, null, -1)])])) : createCommentVNode("v-if", true),
375
+ }, null, -1)])], 8, _hoisted_4)) : createCommentVNode("v-if", true),
373
376
  _cache[8] || (_cache[8] = createElementVNode("span", {
374
377
  class: "as-multi-select-caret i-as-chevron-down",
375
378
  "aria-hidden": "true"
@@ -387,28 +390,28 @@ var as_multi_select_default = /* @__PURE__ */ defineComponent({
387
390
  default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (opt) => {
388
391
  return openBlock(), createBlock(unref(ComboboxItem), {
389
392
  key: unref(optKey)(opt),
390
- value: unref(optKey)(opt),
393
+ value: unref(optionValue)(opt),
391
394
  class: "as-multi-select-item"
392
395
  }, {
393
- default: withCtx(() => [createElementVNode("span", _hoisted_4, toDisplayString(unref(optLabel)(opt)), 1)]),
396
+ default: withCtx(() => [createElementVNode("span", _hoisted_5, toDisplayString(unref(optLabel)(opt)), 1)]),
394
397
  _: 2
395
398
  }, 1032, ["value"]);
396
399
  }), 128)), createVNode(unref(ComboboxEmpty), { class: "as-multi-select-empty" }, {
397
- default: withCtx(() => [..._cache[9] || (_cache[9] = [createTextVNode("No matches", -1)])]),
400
+ default: withCtx(() => [createTextVNode(toDisplayString(unref(t)("UI_FORM_NO_MATCHES")), 1)]),
398
401
  _: 1
399
402
  })]),
400
403
  _: 1
401
- }), (__props.options?.length ?? 0) > 2 ? (openBlock(), createElementBlock("div", _hoisted_5, [createElementVNode("button", {
404
+ }), (__props.options?.length ?? 0) > 2 ? (openBlock(), createElementBlock("div", _hoisted_6, [createElementVNode("button", {
402
405
  type: "button",
403
406
  class: "as-multi-select-footer-action",
404
407
  disabled: selectedOptions.value.length === (__props.options?.length ?? 0),
405
408
  onClick: withModifiers(selectAll, ["stop", "prevent"])
406
- }, " Select all ", 8, _hoisted_6), createElementVNode("button", {
409
+ }, toDisplayString(unref(t)("UI_SELECT_ALL")), 9, _hoisted_7), createElementVNode("button", {
407
410
  type: "button",
408
411
  class: "as-multi-select-footer-action",
409
412
  disabled: selectedOptions.value.length === 0,
410
413
  onClick: withModifiers(clearAll, ["stop", "prevent"])
411
- }, " Clear ", 8, _hoisted_7)])) : createCommentVNode("v-if", true)]),
414
+ }, toDisplayString(unref(t)("UI_CLEAR")), 9, _hoisted_8)])) : createCommentVNode("v-if", true)]),
412
415
  _: 1
413
416
  })]),
414
417
  _: 1
@@ -1,4 +1,5 @@
1
- const require_as_field_shell = require("./as-field-shell-BrJpCzIA.cjs");
1
+ const require_use_as_locale = require("./use-as-locale-C2tFUenv.cjs");
2
+ const require_as_field_shell = require("./as-field-shell-DSj3CqN6.cjs");
2
3
  let vue = require("vue");
3
4
  let _atscript_ui = require("@atscript/ui");
4
5
  let reka_ui = require("reka-ui");
@@ -10,13 +11,14 @@ const _hoisted_3 = [
10
11
  "aria-label",
11
12
  "onClick"
12
13
  ];
13
- const _hoisted_4 = { class: "as-multi-select-item-label" };
14
- const _hoisted_5 = {
14
+ const _hoisted_4 = ["aria-label"];
15
+ const _hoisted_5 = { class: "as-multi-select-item-label" };
16
+ const _hoisted_6 = {
15
17
  key: 0,
16
18
  class: "as-multi-select-footer"
17
19
  };
18
- const _hoisted_6 = ["disabled"];
19
20
  const _hoisted_7 = ["disabled"];
21
+ const _hoisted_8 = ["disabled"];
20
22
  //#endregion
21
23
  //#region src/components/defaults/as-multi-select.vue
22
24
  var as_multi_select_default = /* @__PURE__ */ (0, vue.defineComponent)({
@@ -231,7 +233,7 @@ var as_multi_select_default = /* @__PURE__ */ (0, vue.defineComponent)({
231
233
  props.model.value = [];
232
234
  }
233
235
  function selectAll() {
234
- props.model.value = (props.options ?? []).map((o) => (0, _atscript_ui.optKey)(o));
236
+ props.model.value = (props.options ?? []).map((o) => (0, _atscript_ui.optionValue)(o));
235
237
  }
236
238
  const tags = (0, vue.computed)(() => props.field?.customType === "tags");
237
239
  const uniqueItems = (0, vue.computed)(() => !!props.field && (0, _atscript_ui.hasFieldMeta)(props.field.prop, "expect.array.uniqueItems"));
@@ -246,6 +248,7 @@ var as_multi_select_default = /* @__PURE__ */ (0, vue.defineComponent)({
246
248
  function onTags(values) {
247
249
  props.model.value = values.filter((v) => v !== "" && !(typeof v === "number" && Number.isNaN(v)));
248
250
  }
251
+ const { t } = require_use_as_locale.useAsTexts();
249
252
  return (_ctx, _cache) => {
250
253
  return (0, vue.openBlock)(), (0, vue.createBlock)(require_as_field_shell.as_field_shell_default, (0, vue.mergeProps)(_ctx.$props, { "field-class": "as-multi-select-field" }), {
251
254
  header: (0, vue.withCtx)(({ inputId }) => [(0, vue.createElementVNode)("span", {
@@ -271,7 +274,7 @@ var as_multi_select_default = /* @__PURE__ */ (0, vue.defineComponent)({
271
274
  }, {
272
275
  default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.TagsInputItemText), { class: "as-multi-select-chip-label" }), (0, vue.createVNode)((0, vue.unref)(reka_ui.TagsInputItemDelete), {
273
276
  class: "as-multi-select-chip-remove",
274
- "aria-label": `Remove ${item}`
277
+ "aria-label": (0, vue.unref)(t)("UI_FORM_REMOVE_VALUE", { value: item })
275
278
  }, {
276
279
  default: (0, vue.withCtx)(() => [..._cache[5] || (_cache[5] = [(0, vue.createElementVNode)("span", {
277
280
  class: "i-as-close",
@@ -330,7 +333,7 @@ var as_multi_select_default = /* @__PURE__ */ (0, vue.defineComponent)({
330
333
  type: "button",
331
334
  class: "as-multi-select-chip-remove",
332
335
  disabled: __props.disabled || __props.readonly,
333
- "aria-label": `Remove ${(0, vue.unref)(_atscript_ui.optLabel)(opt)}`,
336
+ "aria-label": (0, vue.unref)(t)("UI_FORM_REMOVE_VALUE", { value: (0, vue.unref)(_atscript_ui.optLabel)(opt) }),
334
337
  onClick: (0, vue.withModifiers)(($event) => deselect((0, vue.unref)(_atscript_ui.optKey)(opt)), ["stop"])
335
338
  }, [..._cache[6] || (_cache[6] = [(0, vue.createElementVNode)("span", {
336
339
  class: "i-as-close",
@@ -339,7 +342,7 @@ var as_multi_select_default = /* @__PURE__ */ (0, vue.defineComponent)({
339
342
  }), 128)),
340
343
  (0, vue.createVNode)((0, vue.unref)(reka_ui.ComboboxInput), {
341
344
  id: inputId,
342
- placeholder: selectedOptions.value.length ? "" : __props.placeholder ?? "Select...",
345
+ placeholder: selectedOptions.value.length ? "" : __props.placeholder ?? (0, vue.unref)(t)("UI_SELECT_PLACEHOLDER"),
343
346
  disabled: __props.disabled,
344
347
  readonly: __props.readonly,
345
348
  "aria-required": __props.required || void 0,
@@ -364,12 +367,12 @@ var as_multi_select_default = /* @__PURE__ */ (0, vue.defineComponent)({
364
367
  key: 0,
365
368
  type: "button",
366
369
  class: "as-multi-select-clear",
367
- "aria-label": "Clear selection",
370
+ "aria-label": (0, vue.unref)(t)("UI_CLEAR_SELECTION"),
368
371
  onClick: (0, vue.withModifiers)(clearAll, ["stop", "prevent"])
369
372
  }, [..._cache[7] || (_cache[7] = [(0, vue.createElementVNode)("span", {
370
373
  class: "i-as-close",
371
374
  "aria-hidden": "true"
372
- }, null, -1)])])) : (0, vue.createCommentVNode)("v-if", true),
375
+ }, null, -1)])], 8, _hoisted_4)) : (0, vue.createCommentVNode)("v-if", true),
373
376
  _cache[8] || (_cache[8] = (0, vue.createElementVNode)("span", {
374
377
  class: "as-multi-select-caret i-as-chevron-down",
375
378
  "aria-hidden": "true"
@@ -387,28 +390,28 @@ var as_multi_select_default = /* @__PURE__ */ (0, vue.defineComponent)({
387
390
  default: (0, vue.withCtx)(() => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(__props.options, (opt) => {
388
391
  return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.ComboboxItem), {
389
392
  key: (0, vue.unref)(_atscript_ui.optKey)(opt),
390
- value: (0, vue.unref)(_atscript_ui.optKey)(opt),
393
+ value: (0, vue.unref)(_atscript_ui.optionValue)(opt),
391
394
  class: "as-multi-select-item"
392
395
  }, {
393
- default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("span", _hoisted_4, (0, vue.toDisplayString)((0, vue.unref)(_atscript_ui.optLabel)(opt)), 1)]),
396
+ default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("span", _hoisted_5, (0, vue.toDisplayString)((0, vue.unref)(_atscript_ui.optLabel)(opt)), 1)]),
394
397
  _: 2
395
398
  }, 1032, ["value"]);
396
399
  }), 128)), (0, vue.createVNode)((0, vue.unref)(reka_ui.ComboboxEmpty), { class: "as-multi-select-empty" }, {
397
- default: (0, vue.withCtx)(() => [..._cache[9] || (_cache[9] = [(0, vue.createTextVNode)("No matches", -1)])]),
400
+ default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)((0, vue.unref)(t)("UI_FORM_NO_MATCHES")), 1)]),
398
401
  _: 1
399
402
  })]),
400
403
  _: 1
401
- }), (__props.options?.length ?? 0) > 2 ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_5, [(0, vue.createElementVNode)("button", {
404
+ }), (__props.options?.length ?? 0) > 2 ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_6, [(0, vue.createElementVNode)("button", {
402
405
  type: "button",
403
406
  class: "as-multi-select-footer-action",
404
407
  disabled: selectedOptions.value.length === (__props.options?.length ?? 0),
405
408
  onClick: (0, vue.withModifiers)(selectAll, ["stop", "prevent"])
406
- }, " Select all ", 8, _hoisted_6), (0, vue.createElementVNode)("button", {
409
+ }, (0, vue.toDisplayString)((0, vue.unref)(t)("UI_SELECT_ALL")), 9, _hoisted_7), (0, vue.createElementVNode)("button", {
407
410
  type: "button",
408
411
  class: "as-multi-select-footer-action",
409
412
  disabled: selectedOptions.value.length === 0,
410
413
  onClick: (0, vue.withModifiers)(clearAll, ["stop", "prevent"])
411
- }, " Clear ", 8, _hoisted_7)])) : (0, vue.createCommentVNode)("v-if", true)]),
414
+ }, (0, vue.toDisplayString)((0, vue.unref)(t)("UI_CLEAR")), 9, _hoisted_8)])) : (0, vue.createCommentVNode)("v-if", true)]),
412
415
  _: 1
413
416
  })]),
414
417
  _: 1
@@ -1,2 +1,2 @@
1
- const require_as_multi_select = require("./as-multi-select-BiUexFnY.cjs");
1
+ const require_as_multi_select = require("./as-multi-select-ZGBYoI48.cjs");
2
2
  module.exports = require_as_multi_select.as_multi_select_default;
@@ -1,2 +1,2 @@
1
- import { t as as_multi_select_default } from "./as-multi-select-B7Nc2brD.mjs";
1
+ import { t as as_multi_select_default } from "./as-multi-select-DT0M_1_O.mjs";
2
2
  export { as_multi_select_default as default };
@@ -1,5 +1,5 @@
1
- const require_use_as_locale = require("./use-as-locale-C4z5stwD.cjs");
2
- const require_as_field_shell = require("./as-field-shell-BrJpCzIA.cjs");
1
+ const require_use_as_locale = require("./use-as-locale-C2tFUenv.cjs");
2
+ const require_as_field_shell = require("./as-field-shell-DSj3CqN6.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 { n as useAsLocale } from "./use-as-locale-BrFdAgnU.mjs";
2
- import { t as as_field_shell_default } from "./as-field-shell-Bxqa_ZsU.mjs";
1
+ import { n as useAsLocale } from "./use-as-locale-1k9NBn-G.mjs";
2
+ import { t as as_field_shell_default } from "./as-field-shell-D7XovzgJ.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";
@@ -1,2 +1,2 @@
1
- const require_as_number = require("./as-number-BMsgxGQw.cjs");
1
+ const require_as_number = require("./as-number-DXQCnc9d.cjs");
2
2
  module.exports = require_as_number.as_number_default;
@@ -1,2 +1,2 @@
1
- import { t as as_number_default } from "./as-number-6DTZnVfg.mjs";
1
+ import { t as as_number_default } from "./as-number-DkG5GuGW.mjs";
2
2
  export { as_number_default as default };
@@ -1,7 +1,8 @@
1
- const require_use_form_context = require("./use-form-context-B6ZnzfxG.cjs");
2
- const require_as_iterator = require("./as-iterator-Bbyxog8g.cjs");
3
- const require_as_collapsible = require("./as-collapsible-CQyuXwj9.cjs");
4
- const require_as_variant_picker = require("./as-variant-picker-JlEhh7YO.cjs");
1
+ const require_use_form_context = require("./use-form-context-CXsLnG7l.cjs");
2
+ const require_use_as_locale = require("./use-as-locale-C2tFUenv.cjs");
3
+ const require_as_iterator = require("./as-iterator-Bty6f5Bq.cjs");
4
+ const require_as_collapsible = require("./as-collapsible-BGeuF2Bn.cjs");
5
+ const require_as_variant_picker = require("./as-variant-picker-BcJx7Zt7.cjs");
5
6
  const require_use_as_optional_add_flow = require("./use-as-optional-add-flow-CD8seN3C.cjs");
6
7
  let vue = require("vue");
7
8
  let _atscript_ui = require("@atscript/ui");
@@ -14,7 +15,11 @@ const _hoisted_2 = {
14
15
  key: 1,
15
16
  class: "as-form-description"
16
17
  };
17
- const _hoisted_3 = ["disabled"];
18
+ const _hoisted_3 = [
19
+ "disabled",
20
+ "aria-label",
21
+ "title"
22
+ ];
18
23
  const _hoisted_4 = {
19
24
  key: 0,
20
25
  class: "as-collapsible-description"
@@ -230,6 +235,7 @@ var as_object_default = /* @__PURE__ */ (0, vue.defineComponent)({
230
235
  function handleAddData() {
231
236
  collapsibleRef.value?.runAndFocusNew(composeAction(() => props.onToggleOptional?.(true)), 2);
232
237
  }
238
+ const { t } = require_use_as_locale.useAsTexts();
233
239
  return (_ctx, _cache) => {
234
240
  return isRoot.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, [
235
241
  __props.title ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("h2", _hoisted_1, (0, vue.toDisplayString)(__props.title), 1)) : (0, vue.createCommentVNode)("v-if", true),
@@ -269,8 +275,8 @@ var as_object_default = /* @__PURE__ */ (0, vue.defineComponent)({
269
275
  type: "button",
270
276
  class: "as-field-remove-btn",
271
277
  disabled: !__props.canRemove,
272
- "aria-label": "Remove",
273
- title: "Remove",
278
+ "aria-label": (0, vue.unref)(t)("UI_REMOVE"),
279
+ title: (0, vue.unref)(t)("UI_REMOVE"),
274
280
  onClick: _cache[0] || (_cache[0] = (0, vue.withModifiers)((...args) => __props.onRemove && __props.onRemove(...args), ["stop", "prevent"]))
275
281
  }, [..._cache[2] || (_cache[2] = [(0, vue.createElementVNode)("span", {
276
282
  class: "as-field-remove-btn-icon",
@@ -291,7 +297,7 @@ var as_object_default = /* @__PURE__ */ (0, vue.defineComponent)({
291
297
  }, [_cache[3] || (_cache[3] = (0, vue.createElementVNode)("span", {
292
298
  class: "i-as-field-fill as-object-empty-add-icon",
293
299
  "aria-hidden": "true"
294
- }, null, -1)), (0, vue.createTextVNode)(" Add " + (0, vue.toDisplayString)(__props.title), 1)]), __props.description ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("p", _hoisted_4, (0, vue.toDisplayString)(__props.description), 1)) : (0, vue.createCommentVNode)("v-if", true)], 2), [[vue.vShow, !__props.hidden]])]),
300
+ }, null, -1)), (0, vue.createTextVNode)(" " + (0, vue.toDisplayString)((0, vue.unref)(t)("UI_FORM_ADD", { item: __props.title })), 1)]), __props.description ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("p", _hoisted_4, (0, vue.toDisplayString)(__props.description), 1)) : (0, vue.createCommentVNode)("v-if", true)], 2), [[vue.vShow, !__props.hidden]])]),
295
301
  _: 1
296
302
  }, 8, [
297
303
  "class",
@@ -1,7 +1,8 @@
1
- import { n as useAsUnionVariant } from "./use-form-context-cDW2GW4-.mjs";
2
- import { t as as_iterator_default } from "./as-iterator-CaQ1TkIR.mjs";
3
- import { t as as_collapsible_default } from "./as-collapsible-DHSlSMfY.mjs";
4
- import { n as as_optional_clear_default, t as as_variant_picker_default } from "./as-variant-picker-B3GLhKyt.mjs";
1
+ import { n as useAsUnionVariant } from "./use-form-context-C3FxL3eF.mjs";
2
+ import { r as useAsTexts } from "./use-as-locale-1k9NBn-G.mjs";
3
+ import { t as as_iterator_default } from "./as-iterator-Dp1OiwU7.mjs";
4
+ import { t as as_collapsible_default } from "./as-collapsible-Cb9SgJh9.mjs";
5
+ import { n as as_optional_clear_default, t as as_variant_picker_default } from "./as-variant-picker-BUF7Am9t.mjs";
5
6
  import { t as useAsOptionalAddFlow } from "./use-as-optional-add-flow-BdjKNx9P.mjs";
6
7
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, toDisplayString, unref, useTemplateRef, vShow, withCtx, withDirectives, withModifiers } from "vue";
7
8
  import { isObjectField } from "@atscript/ui";
@@ -14,7 +15,11 @@ const _hoisted_2 = {
14
15
  key: 1,
15
16
  class: "as-form-description"
16
17
  };
17
- const _hoisted_3 = ["disabled"];
18
+ const _hoisted_3 = [
19
+ "disabled",
20
+ "aria-label",
21
+ "title"
22
+ ];
18
23
  const _hoisted_4 = {
19
24
  key: 0,
20
25
  class: "as-collapsible-description"
@@ -230,6 +235,7 @@ var as_object_default = /* @__PURE__ */ defineComponent({
230
235
  function handleAddData() {
231
236
  collapsibleRef.value?.runAndFocusNew(composeAction(() => props.onToggleOptional?.(true)), 2);
232
237
  }
238
+ const { t } = useAsTexts();
233
239
  return (_ctx, _cache) => {
234
240
  return isRoot.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
235
241
  __props.title ? (openBlock(), createElementBlock("h2", _hoisted_1, toDisplayString(__props.title), 1)) : createCommentVNode("v-if", true),
@@ -269,8 +275,8 @@ var as_object_default = /* @__PURE__ */ defineComponent({
269
275
  type: "button",
270
276
  class: "as-field-remove-btn",
271
277
  disabled: !__props.canRemove,
272
- "aria-label": "Remove",
273
- title: "Remove",
278
+ "aria-label": unref(t)("UI_REMOVE"),
279
+ title: unref(t)("UI_REMOVE"),
274
280
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => __props.onRemove && __props.onRemove(...args), ["stop", "prevent"]))
275
281
  }, [..._cache[2] || (_cache[2] = [createElementVNode("span", {
276
282
  class: "as-field-remove-btn-icon",
@@ -291,7 +297,7 @@ var as_object_default = /* @__PURE__ */ defineComponent({
291
297
  }, [_cache[3] || (_cache[3] = createElementVNode("span", {
292
298
  class: "i-as-field-fill as-object-empty-add-icon",
293
299
  "aria-hidden": "true"
294
- }, null, -1)), createTextVNode(" Add " + toDisplayString(__props.title), 1)]), __props.description ? (openBlock(), createElementBlock("p", _hoisted_4, toDisplayString(__props.description), 1)) : createCommentVNode("v-if", true)], 2), [[vShow, !__props.hidden]])]),
300
+ }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("UI_FORM_ADD", { item: __props.title })), 1)]), __props.description ? (openBlock(), createElementBlock("p", _hoisted_4, toDisplayString(__props.description), 1)) : createCommentVNode("v-if", true)], 2), [[vShow, !__props.hidden]])]),
295
301
  _: 1
296
302
  }, 8, [
297
303
  "class",
@@ -1,2 +1,2 @@
1
- const require_as_object = require("./as-object-BjOUiVDG.cjs");
1
+ const require_as_object = require("./as-object-DLdKOhxb.cjs");
2
2
  module.exports = require_as_object.as_object_default;
@@ -1,2 +1,2 @@
1
- import { t as as_object_default } from "./as-object-0Qo0bPi5.mjs";
1
+ import { t as as_object_default } from "./as-object-mpRxIKVB.mjs";
2
2
  export { as_object_default as default };
@@ -1,6 +1,6 @@
1
- import { t as as_field_shell_default } from "./as-field-shell-Bxqa_ZsU.mjs";
1
+ import { t as as_field_shell_default } from "./as-field-shell-D7XovzgJ.mjs";
2
2
  import { Fragment, createBlock, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, openBlock, renderList, toDisplayString, unref, vModelRadio, withCtx, withDirectives } from "vue";
3
- import { optKey, optLabel } from "@atscript/ui";
3
+ import { optKey, optLabel, optionValue } from "@atscript/ui";
4
4
  //#region src/components/defaults/as-radio.vue?vue&type=script&setup=true&lang.ts
5
5
  const _hoisted_1 = ["id"];
6
6
  const _hoisted_2 = [
@@ -232,7 +232,7 @@ var as_radio_default = /* @__PURE__ */ defineComponent({
232
232
  }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (opt) => {
233
233
  return openBlock(), createElementBlock("label", { key: unref(optKey)(opt) }, [withDirectives(createElementVNode("input", {
234
234
  type: "radio",
235
- value: unref(optKey)(opt),
235
+ value: unref(optionValue)(opt),
236
236
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model.value = $event),
237
237
  onChange: _cache[1] || (_cache[1] = (...args) => __props.onBlur && __props.onBlur(...args)),
238
238
  onBlur: _cache[2] || (_cache[2] = (...args) => __props.onBlur && __props.onBlur(...args)),
@@ -1,4 +1,4 @@
1
- const require_as_field_shell = require("./as-field-shell-BrJpCzIA.cjs");
1
+ const require_as_field_shell = require("./as-field-shell-DSj3CqN6.cjs");
2
2
  let vue = require("vue");
3
3
  let _atscript_ui = require("@atscript/ui");
4
4
  //#region src/components/defaults/as-radio.vue?vue&type=script&setup=true&lang.ts
@@ -232,7 +232,7 @@ var as_radio_default = /* @__PURE__ */ (0, vue.defineComponent)({
232
232
  }, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(__props.options, (opt) => {
233
233
  return (0, vue.openBlock)(), (0, vue.createElementBlock)("label", { key: (0, vue.unref)(_atscript_ui.optKey)(opt) }, [(0, vue.withDirectives)((0, vue.createElementVNode)("input", {
234
234
  type: "radio",
235
- value: (0, vue.unref)(_atscript_ui.optKey)(opt),
235
+ value: (0, vue.unref)(_atscript_ui.optionValue)(opt),
236
236
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model.value = $event),
237
237
  onChange: _cache[1] || (_cache[1] = (...args) => __props.onBlur && __props.onBlur(...args)),
238
238
  onBlur: _cache[2] || (_cache[2] = (...args) => __props.onBlur && __props.onBlur(...args)),
package/dist/as-radio.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const require_as_radio = require("./as-radio-C06SIAFY.cjs");
1
+ const require_as_radio = require("./as-radio-D9sctKpc.cjs");
2
2
  module.exports = require_as_radio.as_radio_default;
package/dist/as-radio.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as as_radio_default } from "./as-radio-Dg9c4dGh.mjs";
1
+ import { t as as_radio_default } from "./as-radio-CW9YWBnC.mjs";
2
2
  export { as_radio_default as default };
@@ -1,5 +1,6 @@
1
- const require_use_as_value_help = require("./use-as-value-help-CDmkz6A7.cjs");
2
- const require_as_field_shell = require("./as-field-shell-BrJpCzIA.cjs");
1
+ const require_use_as_locale = require("./use-as-locale-C2tFUenv.cjs");
2
+ const require_use_as_value_help = require("./use-as-value-help-BE-fAZRP.cjs");
3
+ const require_as_field_shell = require("./as-field-shell-DSj3CqN6.cjs");
3
4
  let vue = require("vue");
4
5
  let reka_ui = require("reka-ui");
5
6
  //#region src/components/defaults/as-ref.vue?vue&type=script&setup=true&lang.ts
@@ -241,6 +242,7 @@ var as_ref_default = /* @__PURE__ */ (0, vue.defineComponent)({
241
242
  function onSearchInput(e) {
242
243
  if (vh) vh.searchText.value = e.target.value;
243
244
  }
245
+ const { t } = require_use_as_locale.useAsTexts();
244
246
  return (_ctx, _cache) => {
245
247
  return (0, vue.openBlock)(), (0, vue.createBlock)(require_as_field_shell.as_field_shell_default, (0, vue.normalizeProps)((0, vue.guardReactiveProps)(_ctx.$props)), {
246
248
  default: (0, vue.withCtx)(({ inputId }) => [(0, vue.createCommentVNode)(" Fallback: plain text input when no ValueHelpInfo or target meta unreachable "), !(0, vue.unref)(info) || !(0, vue.unref)(vh) || (0, vue.unref)(status) === "error" ? (0, vue.withDirectives)(((0, vue.openBlock)(), (0, vue.createElementBlock)("input", {
@@ -322,7 +324,7 @@ var as_ref_default = /* @__PURE__ */ (0, vue.defineComponent)({
322
324
  _: 2
323
325
  }, 1032, ["value"]);
324
326
  }), 128)), (0, vue.createVNode)((0, vue.unref)(reka_ui.ComboboxEmpty), { class: "as-ref-status" }, {
325
- default: (0, vue.withCtx)(() => [..._cache[8] || (_cache[8] = [(0, vue.createTextVNode)("No results", -1)])]),
327
+ default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)((0, vue.unref)(t)("UI_FORM_NO_RESULTS")), 1)]),
326
328
  _: 1
327
329
  })], 64))]),
328
330
  _: 1
@@ -1,5 +1,6 @@
1
- import { n as useAsValueHelp } from "./use-as-value-help-CYMlEubv.mjs";
2
- import { t as as_field_shell_default } from "./as-field-shell-Bxqa_ZsU.mjs";
1
+ import { r as useAsTexts } from "./use-as-locale-1k9NBn-G.mjs";
2
+ import { n as useAsValueHelp } from "./use-as-value-help-nIpEFMqD.mjs";
3
+ import { t as as_field_shell_default } from "./as-field-shell-D7XovzgJ.mjs";
3
4
  import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, normalizeProps, openBlock, ref, renderList, toDisplayString, unref, vModelText, withCtx, withDirectives } from "vue";
4
5
  import { ComboboxAnchor, ComboboxCancel, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxRoot, ComboboxViewport } from "reka-ui";
5
6
  //#region src/components/defaults/as-ref.vue?vue&type=script&setup=true&lang.ts
@@ -241,6 +242,7 @@ var as_ref_default = /* @__PURE__ */ defineComponent({
241
242
  function onSearchInput(e) {
242
243
  if (vh) vh.searchText.value = e.target.value;
243
244
  }
245
+ const { t } = useAsTexts();
244
246
  return (_ctx, _cache) => {
245
247
  return openBlock(), createBlock(as_field_shell_default, normalizeProps(guardReactiveProps(_ctx.$props)), {
246
248
  default: withCtx(({ inputId }) => [createCommentVNode(" Fallback: plain text input when no ValueHelpInfo or target meta unreachable "), !unref(info) || !unref(vh) || unref(status) === "error" ? withDirectives((openBlock(), createElementBlock("input", {
@@ -322,7 +324,7 @@ var as_ref_default = /* @__PURE__ */ defineComponent({
322
324
  _: 2
323
325
  }, 1032, ["value"]);
324
326
  }), 128)), createVNode(unref(ComboboxEmpty), { class: "as-ref-status" }, {
325
- default: withCtx(() => [..._cache[8] || (_cache[8] = [createTextVNode("No results", -1)])]),
327
+ default: withCtx(() => [createTextVNode(toDisplayString(unref(t)("UI_FORM_NO_RESULTS")), 1)]),
326
328
  _: 1
327
329
  })], 64))]),
328
330
  _: 1