@atscript/vue-form 0.1.163 → 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 (187) hide show
  1. package/dist/as-action.d.cts +1 -1
  2. package/dist/as-action.d.mts +1 -1
  3. package/dist/{as-action.vue-wcB6Dkpu.d.cts → as-action.vue-CYGG4gUQ.d.mts} +1 -1
  4. package/dist/{as-action.vue-yDKx8hC0.d.mts → as-action.vue-Cp9Q8a-6.d.cts} +1 -1
  5. package/dist/{as-array-CD_Z7lZV.mjs → as-array-B2axGw3v.mjs} +15 -12
  6. package/dist/{as-array-CX52_z_L.cjs → as-array-C97cLzdA.cjs} +16 -13
  7. package/dist/{as-array-clear-btn-COfRUzeb.cjs → as-array-clear-btn-BBFccQjO.cjs} +5 -3
  8. package/dist/{as-array-clear-btn-BY1IBwBP.mjs → as-array-clear-btn-DEH8a3_N.mjs} +6 -4
  9. package/dist/as-array.cjs +1 -1
  10. package/dist/as-array.d.cts +1 -1
  11. package/dist/as-array.d.mts +1 -1
  12. package/dist/as-array.mjs +1 -1
  13. package/dist/{as-array.vue-BoKbyO1a.d.cts → as-array.vue-Cgfjz2I-.d.cts} +1 -1
  14. package/dist/{as-array.vue-DKcxkmjP.d.mts → as-array.vue-Wj9giGdu.d.mts} +1 -1
  15. package/dist/{as-checkbox-DosdhEuS.mjs → as-checkbox-BO8xW0OM.mjs} +36 -12
  16. package/dist/{as-checkbox-QO5Oh13K.cjs → as-checkbox-Wn-PmHi-.cjs} +35 -11
  17. package/dist/as-checkbox.cjs +1 -1
  18. package/dist/as-checkbox.d.cts +1 -1
  19. package/dist/as-checkbox.d.mts +1 -1
  20. package/dist/as-checkbox.mjs +1 -1
  21. package/dist/{as-checkbox.vue-BXS5v6Ru.d.mts → as-checkbox.vue-CWe73b3Z.d.mts} +1 -1
  22. package/dist/{as-checkbox.vue-DdttMJAS.d.cts → as-checkbox.vue-CXiUHIZj.d.cts} +1 -1
  23. package/dist/{as-collapsible-CQyuXwj9.cjs → as-collapsible-BGeuF2Bn.cjs} +4 -2
  24. package/dist/{as-collapsible-DHSlSMfY.mjs → as-collapsible-Cb9SgJh9.mjs} +5 -3
  25. package/dist/as-collapsible.cjs +1 -1
  26. package/dist/as-collapsible.d.cts +1 -1
  27. package/dist/as-collapsible.d.mts +1 -1
  28. package/dist/as-collapsible.mjs +1 -1
  29. package/dist/{as-collapsible.vue-1JSWgRMg.d.cts → as-collapsible.vue-BXwe24OV.d.cts} +1 -1
  30. package/dist/{as-collapsible.vue-DowxhNde.d.mts → as-collapsible.vue-hfAqxx1w.d.mts} +1 -1
  31. package/dist/{as-date-DTUQP2Dc.cjs → as-date-B2dgUoau.cjs} +1 -1
  32. package/dist/{as-date-DyQsn7Mu.mjs → as-date-jQpwe6sr.mjs} +1 -1
  33. package/dist/as-date.cjs +1 -1
  34. package/dist/as-date.d.cts +1 -1
  35. package/dist/as-date.d.mts +1 -1
  36. package/dist/as-date.mjs +1 -1
  37. package/dist/{as-date.vue-BVvALvZ_.d.mts → as-date.vue-BTm9X4fW.d.mts} +1 -1
  38. package/dist/{as-date.vue-BiUgcOwZ.d.cts → as-date.vue-axahL_Zv.d.cts} +1 -1
  39. package/dist/{as-datetime-BDJtlZLz.cjs → as-datetime-CmBLyjgU.cjs} +1 -1
  40. package/dist/{as-datetime-CrstxtPJ.mjs → as-datetime-DYn9NndT.mjs} +1 -1
  41. package/dist/as-datetime.cjs +1 -1
  42. package/dist/as-datetime.d.cts +1 -1
  43. package/dist/as-datetime.d.mts +1 -1
  44. package/dist/as-datetime.mjs +1 -1
  45. package/dist/{as-datetime.vue-BVc6jcUI.d.cts → as-datetime.vue-C6ILTI-7.d.cts} +1 -1
  46. package/dist/{as-datetime.vue-CCQqZsKA.d.mts → as-datetime.vue-vysHc3Ug.d.mts} +1 -1
  47. package/dist/{as-decimal-Bimpnzo2.mjs → as-decimal-C-OJ8ygU.mjs} +4 -3
  48. package/dist/{as-decimal-BZWqiKXZ.cjs → as-decimal-C0Eqd9nM.cjs} +4 -3
  49. package/dist/as-decimal.cjs +1 -1
  50. package/dist/as-decimal.d.cts +1 -1
  51. package/dist/as-decimal.d.mts +1 -1
  52. package/dist/as-decimal.mjs +1 -1
  53. package/dist/{as-decimal.vue-BDfM2ICc.d.mts → as-decimal.vue-CAq25zbX.d.mts} +1 -1
  54. package/dist/{as-decimal.vue-Cc9pNTqj.d.cts → as-decimal.vue-Dgfz9UDJ.d.cts} +1 -1
  55. package/dist/{as-field-DqK4Yiev.mjs → as-field-BZpWLPcM.mjs} +32 -16
  56. package/dist/{as-field-C_DB6Lbi.cjs → as-field-D0HgywQY.cjs} +31 -15
  57. package/dist/{as-field-shell-Bxqa_ZsU.mjs → as-field-shell-D7XovzgJ.mjs} +14 -7
  58. package/dist/{as-field-shell-BrJpCzIA.cjs → as-field-shell-DSj3CqN6.cjs} +14 -7
  59. package/dist/as-field-shell.cjs +1 -1
  60. package/dist/as-field-shell.d.cts +1 -1
  61. package/dist/as-field-shell.d.mts +1 -1
  62. package/dist/as-field-shell.mjs +1 -1
  63. package/dist/{as-field-shell.vue-B1ep312_.d.cts → as-field-shell.vue-BU0_8-uI.d.mts} +1 -1
  64. package/dist/{as-field-shell.vue-DisEXQI1.d.mts → as-field-shell.vue-DAcRqi7G.d.cts} +1 -1
  65. package/dist/as-field.cjs +1 -1
  66. package/dist/as-field.mjs +1 -1
  67. package/dist/{as-form-DLYEF8Ez.mjs → as-form-0VCxVsGo.mjs} +20 -11
  68. package/dist/{as-form-DgbRGqD8.cjs → as-form-ChyW9bj2.cjs} +19 -10
  69. package/dist/as-form.cjs +1 -1
  70. package/dist/as-form.d.cts +1 -1
  71. package/dist/as-form.d.mts +1 -1
  72. package/dist/as-form.mjs +1 -1
  73. package/dist/{as-form.vue-BmKBCn6P.d.cts → as-form.vue-CjNW1L-x.d.cts} +55 -326
  74. package/dist/{as-form.vue-hHJm_Rxq.d.mts → as-form.vue-NCTvXZUy.d.mts} +55 -326
  75. package/dist/{as-input-UkZxRSD4.cjs → as-input-Bf94SAOY.cjs} +1 -1
  76. package/dist/{as-input-65rtLZt3.mjs → as-input-DlLLiAYI.mjs} +1 -1
  77. package/dist/as-input.cjs +1 -1
  78. package/dist/as-input.d.cts +1 -1
  79. package/dist/as-input.d.mts +1 -1
  80. package/dist/as-input.mjs +1 -1
  81. package/dist/{as-input.vue-CL-Om6Ed.d.mts → as-input.vue-CyLveDWK.d.mts} +1 -1
  82. package/dist/{as-input.vue-D-RM35Rp.d.cts → as-input.vue-mZ0h1Q2J.d.cts} +1 -1
  83. package/dist/{as-iterator-DHNJwo-R.cjs → as-iterator-Bty6f5Bq.cjs} +2 -2
  84. package/dist/{as-iterator-mOyaYJiN.mjs → as-iterator-Dp1OiwU7.mjs} +2 -2
  85. package/dist/as-iterator.cjs +1 -1
  86. package/dist/as-iterator.mjs +1 -1
  87. package/dist/{as-multi-select-AC05uVzY.mjs → as-multi-select-DT0M_1_O.mjs} +97 -26
  88. package/dist/{as-multi-select-BedSzod1.cjs → as-multi-select-ZGBYoI48.cjs} +95 -24
  89. package/dist/as-multi-select.cjs +1 -1
  90. package/dist/as-multi-select.d.cts +1 -1
  91. package/dist/as-multi-select.d.mts +1 -1
  92. package/dist/as-multi-select.mjs +1 -1
  93. package/dist/{as-multi-select.vue-5GHWrbim.d.mts → as-multi-select.vue-BS9bNhCB.d.mts} +1 -1
  94. package/dist/{as-multi-select.vue-D1OnCH-x.d.cts → as-multi-select.vue-DAFz9hZR.d.cts} +1 -1
  95. package/dist/{as-number-BMsgxGQw.cjs → as-number-DXQCnc9d.cjs} +2 -2
  96. package/dist/{as-number-6DTZnVfg.mjs → as-number-DkG5GuGW.mjs} +2 -2
  97. package/dist/as-number.cjs +1 -1
  98. package/dist/as-number.d.cts +1 -1
  99. package/dist/as-number.d.mts +1 -1
  100. package/dist/as-number.mjs +1 -1
  101. package/dist/{as-number.vue-BiZ2B2iJ.d.mts → as-number.vue-BsJdJS36.d.cts} +1 -1
  102. package/dist/{as-number.vue-DE33Giq3.d.cts → as-number.vue-DSP2S_xP.d.mts} +1 -1
  103. package/dist/{as-object-YYxV2y77.cjs → as-object-DLdKOhxb.cjs} +14 -8
  104. package/dist/{as-object-B_x-yycI.mjs → as-object-mpRxIKVB.mjs} +14 -8
  105. package/dist/as-object.cjs +1 -1
  106. package/dist/as-object.d.cts +1 -1
  107. package/dist/as-object.d.mts +1 -1
  108. package/dist/as-object.mjs +1 -1
  109. package/dist/{as-object.vue-Dg4IT2JT.d.mts → as-object.vue-CpDhlJ_D.d.mts} +1 -1
  110. package/dist/{as-object.vue-PUhmGqhY.d.cts → as-object.vue-DduGoHKD.d.cts} +1 -1
  111. package/dist/as-paragraph.d.cts +1 -1
  112. package/dist/as-paragraph.d.mts +1 -1
  113. package/dist/{as-paragraph.vue-BUfbXaiy.d.cts → as-paragraph.vue-BJSA27kd.d.cts} +1 -1
  114. package/dist/{as-paragraph.vue-Bp-MUDcH.d.mts → as-paragraph.vue-CMUaF6WV.d.mts} +1 -1
  115. package/dist/{as-radio-Dg9c4dGh.mjs → as-radio-CW9YWBnC.mjs} +3 -3
  116. package/dist/{as-radio-C06SIAFY.cjs → as-radio-D9sctKpc.cjs} +2 -2
  117. package/dist/as-radio.cjs +1 -1
  118. package/dist/as-radio.d.cts +1 -1
  119. package/dist/as-radio.d.mts +1 -1
  120. package/dist/as-radio.mjs +1 -1
  121. package/dist/{as-radio.vue-NmjJm8Pj.d.mts → as-radio.vue-BR2ThEbi.d.mts} +1 -1
  122. package/dist/{as-radio.vue-h4XkpaW0.d.cts → as-radio.vue-Dw1QaJoY.d.cts} +1 -1
  123. package/dist/{as-ref-BEhS_vo9.cjs → as-ref-CpHMAAJu.cjs} +5 -3
  124. package/dist/{as-ref-BWJlIf5G.mjs → as-ref-DaCGfshO.mjs} +5 -3
  125. package/dist/as-ref.cjs +1 -1
  126. package/dist/as-ref.d.cts +1 -1
  127. package/dist/as-ref.d.mts +1 -1
  128. package/dist/as-ref.mjs +1 -1
  129. package/dist/{as-ref.vue-ec447Bmx.d.cts → as-ref.vue-CZzOVBz1.d.mts} +1 -1
  130. package/dist/{as-ref.vue-vP2P1ePF.d.mts → as-ref.vue-CvY88H7p.d.cts} +1 -1
  131. package/dist/{as-select-CrTKlmhd.mjs → as-select-CrjlxcgR.mjs} +3 -3
  132. package/dist/{as-select-DzEUs8Od.cjs → as-select-DAbNosmB.cjs} +2 -2
  133. package/dist/as-select.cjs +1 -1
  134. package/dist/as-select.d.cts +1 -1
  135. package/dist/as-select.d.mts +1 -1
  136. package/dist/as-select.mjs +1 -1
  137. package/dist/{as-select.vue-9mQ6cjW7.d.mts → as-select.vue-7xiuC9JG.d.cts} +1 -1
  138. package/dist/{as-select.vue-DV0C1MsH.d.cts → as-select.vue-BPPctxZT.d.mts} +1 -1
  139. package/dist/{as-time-BQ6KXMyV.mjs → as-time-BmXXgfCZ.mjs} +1 -1
  140. package/dist/{as-time-Cu-8mKpR.cjs → as-time-NaICaSIj.cjs} +1 -1
  141. package/dist/as-time.cjs +1 -1
  142. package/dist/as-time.d.cts +1 -1
  143. package/dist/as-time.d.mts +1 -1
  144. package/dist/as-time.mjs +1 -1
  145. package/dist/{as-time.vue-CmvsgHJd.d.cts → as-time.vue-CQhIKAs0.d.cts} +1 -1
  146. package/dist/{as-time.vue-DGfZPnWK.d.mts → as-time.vue-CjzRrsFg.d.mts} +1 -1
  147. package/dist/{as-tuple-Dny4Ov_j.mjs → as-tuple-BBx6P6xb.mjs} +8 -6
  148. package/dist/{as-tuple-CfgSnsT9.cjs → as-tuple-DkI9fp4G.cjs} +8 -6
  149. package/dist/as-tuple.cjs +1 -1
  150. package/dist/as-tuple.d.cts +1 -1
  151. package/dist/as-tuple.d.mts +1 -1
  152. package/dist/as-tuple.mjs +1 -1
  153. package/dist/{as-tuple.vue-CInEbMRo.d.mts → as-tuple.vue-BSh2-1uv.d.cts} +1 -1
  154. package/dist/{as-tuple.vue-zZkuYxet.d.cts → as-tuple.vue-DvHHrn-6.d.mts} +1 -1
  155. package/dist/{as-union-DT8XDZSt.cjs → as-union-BjmrvD80.cjs} +8 -6
  156. package/dist/{as-union-Gz8gEjmn.mjs → as-union-C3QiGYlE.mjs} +7 -5
  157. package/dist/as-union.cjs +1 -1
  158. package/dist/as-union.d.cts +1 -1
  159. package/dist/as-union.d.mts +1 -1
  160. package/dist/as-union.mjs +1 -1
  161. package/dist/{as-union.vue-Bz3EO0Gg.d.mts → as-union.vue-BJ8xFYYb.d.mts} +1 -1
  162. package/dist/{as-union.vue-K9ZSRg0G.d.cts → as-union.vue-CnF4bNex.d.cts} +1 -1
  163. package/dist/{as-variant-picker-B3GLhKyt.mjs → as-variant-picker-BUF7Am9t.mjs} +13 -8
  164. package/dist/{as-variant-picker-JlEhh7YO.cjs → as-variant-picker-BcJx7Zt7.cjs} +14 -9
  165. package/dist/index.cjs +30 -27
  166. package/dist/index.d.cts +23 -22
  167. package/dist/index.d.mts +23 -22
  168. package/dist/index.mjs +29 -26
  169. package/dist/locale.cjs +5 -0
  170. package/dist/locale.d.cts +2 -0
  171. package/dist/locale.d.mts +2 -0
  172. package/dist/locale.mjs +2 -0
  173. package/dist/{types-BLoV3zIo.d.mts → types-BoguW89D.d.mts} +24 -19
  174. package/dist/{types-Crwu2D-w.d.cts → types-DoLxVJhd.d.cts} +24 -19
  175. package/dist/use-as-locale-1k9NBn-G.mjs +56 -0
  176. package/dist/use-as-locale-BVcC0l75.d.mts +35 -0
  177. package/dist/use-as-locale-C2tFUenv.cjs +73 -0
  178. package/dist/use-as-locale-CnGzoVWd.d.cts +35 -0
  179. package/dist/{use-as-value-help-CDmkz6A7.cjs → use-as-value-help-BE-fAZRP.cjs} +4 -2
  180. package/dist/{use-as-value-help-CYMlEubv.mjs → use-as-value-help-nIpEFMqD.mjs} +4 -2
  181. package/dist/{use-form-context-cDW2GW4-.mjs → use-form-context-C3FxL3eF.mjs} +4 -1
  182. package/dist/{use-form-context-B6ZnzfxG.cjs → use-form-context-CXsLnG7l.cjs} +4 -1
  183. package/dist/{use-as-dropdown-B2Shb7wn.mjs → variant-label-B065kts3.mjs} +13 -1
  184. package/dist/{use-as-dropdown-Bj9toVdw.cjs → variant-label-C-rLK7Z3.cjs} +18 -0
  185. package/package.json +16 -11
  186. package/dist/use-as-locale-BrFdAgnU.mjs +0 -23
  187. package/dist/use-as-locale-C4z5stwD.cjs +0 -34
@@ -1,2 +1,2 @@
1
- const require_as_object = require("./as-object-YYxV2y77.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 _default } from "./as-object.vue-PUhmGqhY.cjs";
1
+ import { t as _default } from "./as-object.vue-DduGoHKD.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-object.vue-Dg4IT2JT.mjs";
1
+ import { t as _default } from "./as-object.vue-CpDhlJ_D.mjs";
2
2
  export { _default as default };
@@ -1,2 +1,2 @@
1
- import { t as as_object_default } from "./as-object-B_x-yycI.mjs";
1
+ import { t as as_object_default } from "./as-object-mpRxIKVB.mjs";
2
2
  export { as_object_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
1
+ import { o as TAsComponentProps } from "./types-BoguW89D.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-object.vue.d.ts
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-Crwu2D-w.cjs";
1
+ import { o as TAsComponentProps } from "./types-DoLxVJhd.cjs";
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-BUfbXaiy.cjs";
1
+ import { t as _default } from "./as-paragraph.vue-BJSA27kd.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-paragraph.vue-Bp-MUDcH.mjs";
1
+ import { t as _default } from "./as-paragraph.vue-CMUaF6WV.mjs";
2
2
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-Crwu2D-w.cjs";
1
+ import { o as TAsComponentProps } from "./types-DoLxVJhd.cjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-paragraph.vue.d.ts
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
1
+ import { o as TAsComponentProps } from "./types-BoguW89D.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-paragraph.vue.d.ts
@@ -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;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-radio.vue-h4XkpaW0.cjs";
1
+ import { t as _default } from "./as-radio.vue-Dw1QaJoY.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-radio.vue-NmjJm8Pj.mjs";
1
+ import { t as _default } from "./as-radio.vue-BR2ThEbi.mjs";
2
2
  export { _default as 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,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
1
+ import { o as TAsComponentProps } from "./types-BoguW89D.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-radio.vue.d.ts
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-Crwu2D-w.cjs";
1
+ import { o as TAsComponentProps } from "./types-DoLxVJhd.cjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-radio.vue.d.ts
@@ -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
package/dist/as-ref.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const require_as_ref = require("./as-ref-BEhS_vo9.cjs");
1
+ const require_as_ref = require("./as-ref-CpHMAAJu.cjs");
2
2
  module.exports = require_as_ref.as_ref_default;
package/dist/as-ref.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-ref.vue-ec447Bmx.cjs";
1
+ import { t as _default } from "./as-ref.vue-CvY88H7p.cjs";
2
2
  export = _default;
package/dist/as-ref.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-ref.vue-vP2P1ePF.mjs";
1
+ import { t as _default } from "./as-ref.vue-CZzOVBz1.mjs";
2
2
  export { _default as default };
package/dist/as-ref.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as as_ref_default } from "./as-ref-BWJlIf5G.mjs";
1
+ import { t as as_ref_default } from "./as-ref-DaCGfshO.mjs";
2
2
  export { as_ref_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-Crwu2D-w.cjs";
1
+ import { o as TAsComponentProps } from "./types-BoguW89D.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-ref.vue.d.ts
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
1
+ import { o as TAsComponentProps } from "./types-DoLxVJhd.cjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-ref.vue.d.ts
@@ -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, createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderList, toDisplayString, unref, vModelSelect, 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-select.vue?vue&type=script&setup=true&lang.ts
5
5
  const _hoisted_1 = { class: "as-select-wrap" };
6
6
  const _hoisted_2 = [
@@ -234,7 +234,7 @@ var as_select_default = /* @__PURE__ */ defineComponent({
234
234
  }, [__props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_3, toDisplayString(__props.placeholder), 1)) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (opt) => {
235
235
  return openBlock(), createElementBlock("option", {
236
236
  key: unref(optKey)(opt),
237
- value: unref(optKey)(opt)
237
+ value: unref(optionValue)(opt)
238
238
  }, toDisplayString(unref(optLabel)(opt)), 9, _hoisted_4);
239
239
  }), 128))], 40, _hoisted_2), [[vModelSelect, __props.model.value]]), _cache[3] || (_cache[3] = createElementVNode("span", {
240
240
  class: "as-select-caret i-as-chevron-down",
@@ -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-select.vue?vue&type=script&setup=true&lang.ts
@@ -234,7 +234,7 @@ var as_select_default = /* @__PURE__ */ (0, vue.defineComponent)({
234
234
  }, [__props.placeholder ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("option", _hoisted_3, (0, vue.toDisplayString)(__props.placeholder), 1)) : (0, vue.createCommentVNode)("v-if", true), ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(__props.options, (opt) => {
235
235
  return (0, vue.openBlock)(), (0, vue.createElementBlock)("option", {
236
236
  key: (0, vue.unref)(_atscript_ui.optKey)(opt),
237
- value: (0, vue.unref)(_atscript_ui.optKey)(opt)
237
+ value: (0, vue.unref)(_atscript_ui.optionValue)(opt)
238
238
  }, (0, vue.toDisplayString)((0, vue.unref)(_atscript_ui.optLabel)(opt)), 9, _hoisted_4);
239
239
  }), 128))], 40, _hoisted_2), [[vue.vModelSelect, __props.model.value]]), _cache[3] || (_cache[3] = (0, vue.createElementVNode)("span", {
240
240
  class: "as-select-caret i-as-chevron-down",
@@ -1,2 +1,2 @@
1
- const require_as_select = require("./as-select-DzEUs8Od.cjs");
1
+ const require_as_select = require("./as-select-DAbNosmB.cjs");
2
2
  module.exports = require_as_select.as_select_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-select.vue-DV0C1MsH.cjs";
1
+ import { t as _default } from "./as-select.vue-7xiuC9JG.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-select.vue-9mQ6cjW7.mjs";
1
+ import { t as _default } from "./as-select.vue-BPPctxZT.mjs";
2
2
  export { _default as default };
@@ -1,2 +1,2 @@
1
- import { t as as_select_default } from "./as-select-CrTKlmhd.mjs";
1
+ import { t as as_select_default } from "./as-select-CrjlxcgR.mjs";
2
2
  export { as_select_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
1
+ import { o as TAsComponentProps } from "./types-DoLxVJhd.cjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-select.vue.d.ts
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-Crwu2D-w.cjs";
1
+ import { o as TAsComponentProps } from "./types-BoguW89D.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-select.vue.d.ts
@@ -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_adornment_shell_default } from "./as-adornment-shell-C4A2fnDp.mjs";
3
3
  import { t as committedValue } from "./_shape-CpbGJMWP.mjs";
4
4
  import { n as as_date_control_default, t as useAsDate } from "./use-as-date-pbhMXyU8.mjs";
@@ -1,4 +1,4 @@
1
- const require_as_field_shell = require("./as-field-shell-BrJpCzIA.cjs");
1
+ const require_as_field_shell = require("./as-field-shell-DSj3CqN6.cjs");
2
2
  const require_as_adornment_shell = require("./as-adornment-shell-DptUMWNk.cjs");
3
3
  const require__shape = require("./_shape-JEtANIMR.cjs");
4
4
  const require_use_as_date = require("./use-as-date-U_aHShPD.cjs");
package/dist/as-time.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const require_as_time = require("./as-time-Cu-8mKpR.cjs");
1
+ const require_as_time = require("./as-time-NaICaSIj.cjs");
2
2
  module.exports = require_as_time.as_time_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-time.vue-CmvsgHJd.cjs";
1
+ import { t as _default } from "./as-time.vue-CQhIKAs0.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-time.vue-DGfZPnWK.mjs";
1
+ import { t as _default } from "./as-time.vue-CjzRrsFg.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-BQ6KXMyV.mjs";
1
+ import { t as as_time_default } from "./as-time-BmXXgfCZ.mjs";
2
2
  export { as_time_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-Crwu2D-w.cjs";
1
+ import { o as TAsComponentProps } from "./types-DoLxVJhd.cjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-time.vue.d.ts
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
1
+ import { o as TAsComponentProps } from "./types-BoguW89D.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-time.vue.d.ts
@@ -1,9 +1,10 @@
1
- import { a as CHANGE_HANDLER_KEY, n as useAsUnionVariant, r as useFormContext } from "./use-form-context-cDW2GW4-.mjs";
2
- import { t as as_field_default } from "./as-field-DqK4Yiev.mjs";
3
- import { t as as_collapsible_default } from "./as-collapsible-DHSlSMfY.mjs";
4
- import { t as as_variant_picker_default } from "./as-variant-picker-B3GLhKyt.mjs";
1
+ import { a as CHANGE_HANDLER_KEY, n as useAsUnionVariant, r as useFormContext } from "./use-form-context-C3FxL3eF.mjs";
2
+ import { r as useAsTexts } from "./use-as-locale-1k9NBn-G.mjs";
3
+ import { t as as_field_default } from "./as-field-BZpWLPcM.mjs";
4
+ import { t as as_collapsible_default } from "./as-collapsible-Cb9SgJh9.mjs";
5
+ import { 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
- import { t as as_array_clear_btn_default } from "./as-array-clear-btn-BY1IBwBP.mjs";
7
+ import { t as as_array_clear_btn_default } from "./as-array-clear-btn-DEH8a3_N.mjs";
7
8
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, normalizeClass, onMounted, openBlock, renderList, toDisplayString, unref, useTemplateRef, vShow, withCtx, withDirectives } from "vue";
8
9
  import { META_LABEL, createFormData, createFormValueResolver, getFieldMeta } from "@atscript/ui";
9
10
  //#region src/composables/use-as-tuple.ts
@@ -279,6 +280,7 @@ var as_tuple_default = /* @__PURE__ */ defineComponent({
279
280
  fillMissing();
280
281
  }), 2);
281
282
  }
283
+ const { t } = useAsTexts();
282
284
  return (_ctx, _cache) => {
283
285
  return openBlock(), createBlock(as_collapsible_default, {
284
286
  ref_key: "collapsibleRef",
@@ -315,7 +317,7 @@ var as_tuple_default = /* @__PURE__ */ defineComponent({
315
317
  }, [_cache[0] || (_cache[0] = createElementVNode("span", {
316
318
  class: "i-as-field-fill as-object-empty-add-icon",
317
319
  "aria-hidden": "true"
318
- }, null, -1)), createTextVNode(" Add " + toDisplayString(__props.title), 1)]), __props.description ? (openBlock(), createElementBlock("p", _hoisted_1, toDisplayString(__props.description), 1)) : createCommentVNode("v-if", true)], 2), [[vShow, !__props.hidden]])]),
320
+ }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("UI_FORM_ADD", { item: __props.title })), 1)]), __props.description ? (openBlock(), createElementBlock("p", _hoisted_1, toDisplayString(__props.description), 1)) : createCommentVNode("v-if", true)], 2), [[vShow, !__props.hidden]])]),
319
321
  _: 2
320
322
  }, [unref(isOptional) && optionalEnabled.value ? {
321
323
  name: "actions",
@@ -1,9 +1,10 @@
1
- const require_use_form_context = require("./use-form-context-B6ZnzfxG.cjs");
2
- const require_as_field = require("./as-field-C_DB6Lbi.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_field = require("./as-field-D0HgywQY.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
- const require_as_array_clear_btn = require("./as-array-clear-btn-COfRUzeb.cjs");
7
+ const require_as_array_clear_btn = require("./as-array-clear-btn-BBFccQjO.cjs");
7
8
  let vue = require("vue");
8
9
  let _atscript_ui = require("@atscript/ui");
9
10
  //#region src/composables/use-as-tuple.ts
@@ -279,6 +280,7 @@ var as_tuple_default = /* @__PURE__ */ (0, vue.defineComponent)({
279
280
  fillMissing();
280
281
  }), 2);
281
282
  }
283
+ const { t } = require_use_as_locale.useAsTexts();
282
284
  return (_ctx, _cache) => {
283
285
  return (0, vue.openBlock)(), (0, vue.createBlock)(require_as_collapsible.as_collapsible_default, {
284
286
  ref_key: "collapsibleRef",
@@ -315,7 +317,7 @@ var as_tuple_default = /* @__PURE__ */ (0, vue.defineComponent)({
315
317
  }, [_cache[0] || (_cache[0] = (0, vue.createElementVNode)("span", {
316
318
  class: "i-as-field-fill as-object-empty-add-icon",
317
319
  "aria-hidden": "true"
318
- }, null, -1)), (0, vue.createTextVNode)(" Add " + (0, vue.toDisplayString)(__props.title), 1)]), __props.description ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("p", _hoisted_1, (0, vue.toDisplayString)(__props.description), 1)) : (0, vue.createCommentVNode)("v-if", true)], 2), [[vue.vShow, !__props.hidden]])]),
320
+ }, 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_1, (0, vue.toDisplayString)(__props.description), 1)) : (0, vue.createCommentVNode)("v-if", true)], 2), [[vue.vShow, !__props.hidden]])]),
319
321
  _: 2
320
322
  }, [(0, vue.unref)(isOptional) && optionalEnabled.value ? {
321
323
  name: "actions",
package/dist/as-tuple.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const require_as_tuple = require("./as-tuple-CfgSnsT9.cjs");
1
+ const require_as_tuple = require("./as-tuple-DkI9fp4G.cjs");
2
2
  module.exports = require_as_tuple.as_tuple_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-tuple.vue-zZkuYxet.cjs";
1
+ import { t as _default } from "./as-tuple.vue-BSh2-1uv.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-tuple.vue-CInEbMRo.mjs";
1
+ import { t as _default } from "./as-tuple.vue-DvHHrn-6.mjs";
2
2
  export { _default as default };
package/dist/as-tuple.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as as_tuple_default } from "./as-tuple-Dny4Ov_j.mjs";
1
+ import { t as as_tuple_default } from "./as-tuple-BBx6P6xb.mjs";
2
2
  export { as_tuple_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
1
+ import { o as TAsComponentProps } from "./types-DoLxVJhd.cjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-tuple.vue.d.ts
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-Crwu2D-w.cjs";
1
+ import { o as TAsComponentProps } from "./types-BoguW89D.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-tuple.vue.d.ts
@@ -1,5 +1,6 @@
1
- const require_use_form_context = require("./use-form-context-B6ZnzfxG.cjs");
2
- const require_use_as_dropdown = require("./use-as-dropdown-Bj9toVdw.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_variant_label = require("./variant-label-C-rLK7Z3.cjs");
3
4
  const require_use_as_optional_add_flow = require("./use-as-optional-add-flow-CD8seN3C.cjs");
4
5
  let vue = require("vue");
5
6
  let _atscript_ui = require("@atscript/ui");
@@ -291,7 +292,7 @@ var as_union_default = /* @__PURE__ */ (0, vue.defineComponent)({
291
292
  return r.$el ?? null;
292
293
  };
293
294
  const pickerDropdownRef = (0, vue.ref)(null);
294
- const { isOpen: pickerOpen, toggle: togglePicker, select: selectPicker } = require_use_as_dropdown.useAsDropdown(pickerDropdownRef);
295
+ const { isOpen: pickerOpen, toggle: togglePicker, select: selectPicker } = require_variant_label.useAsDropdown(pickerDropdownRef);
295
296
  const { runAndFocusNew } = require_use_as_optional_add_flow.useAsOptionalAddFlow({ path: () => props.path });
296
297
  function pickAndFocus(vi) {
297
298
  runAndFocusNew(rootEl, () => changeVariant(vi), 2);
@@ -306,6 +307,7 @@ var as_union_default = /* @__PURE__ */ (0, vue.defineComponent)({
306
307
  function handleVariantPick(vi) {
307
308
  selectPicker(() => pickAndFocus(vi));
308
309
  }
310
+ const { t } = require_use_as_locale.useAsTexts();
309
311
  return (_ctx, _cache) => {
310
312
  return __props.optional && !(0, vue.unref)(optionalEnabled) ? (0, vue.withDirectives)(((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
311
313
  key: 0,
@@ -324,13 +326,13 @@ var as_union_default = /* @__PURE__ */ (0, vue.defineComponent)({
324
326
  }, [_cache[0] || (_cache[0] = (0, vue.createElementVNode)("span", {
325
327
  class: "i-as-field-fill as-object-empty-add-icon",
326
328
  "aria-hidden": "true"
327
- }, null, -1)), (0, vue.createTextVNode)(" Add " + (0, vue.toDisplayString)(fieldLabel.value), 1)]), (0, vue.unref)(pickerOpen) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)((0, vue.unref)(unionField).unionVariants, (v, vi) => {
329
+ }, null, -1)), (0, vue.createTextVNode)(" " + (0, vue.toDisplayString)((0, vue.unref)(t)("UI_FORM_ADD", { item: fieldLabel.value })), 1)]), (0, vue.unref)(pickerOpen) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)((0, vue.unref)(unionField).unionVariants, (v, vi) => {
328
330
  return (0, vue.openBlock)(), (0, vue.createElementBlock)("button", {
329
331
  key: vi,
330
332
  type: "button",
331
333
  class: "as-dropdown-item",
332
334
  onClick: ($event) => handleVariantPick(vi)
333
- }, (0, vue.toDisplayString)(v.label), 9, _hoisted_2);
335
+ }, (0, vue.toDisplayString)((0, vue.unref)(require_variant_label.variantLabel)(v, (0, vue.unref)(t))), 9, _hoisted_2);
334
336
  }), 128))])) : (0, vue.createCommentVNode)("v-if", true)], 512)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("button", {
335
337
  key: 1,
336
338
  type: "button",
@@ -339,7 +341,7 @@ var as_union_default = /* @__PURE__ */ (0, vue.defineComponent)({
339
341
  }, [_cache[1] || (_cache[1] = (0, vue.createElementVNode)("span", {
340
342
  class: "i-as-field-fill as-object-empty-add-icon",
341
343
  "aria-hidden": "true"
342
- }, null, -1)), (0, vue.createTextVNode)(" Add " + (0, vue.toDisplayString)(fieldLabel.value), 1)])), __props.description ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("p", _hoisted_3, (0, vue.toDisplayString)(__props.description), 1)) : (0, vue.createCommentVNode)("v-if", true)], 2)), [[vue.vShow, !__props.hidden]]) : variantComponent.value && (0, vue.unref)(innerField) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: 1 }, [(0, vue.createCommentVNode)(" Active: dispatch to variant's component, forwarding the field's @meta.label\n as title so the variant's chrome shows it (innerField.type overrides \"union\"). "), ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(variantComponent.value), (0, vue.mergeProps)({
344
+ }, null, -1)), (0, vue.createTextVNode)(" " + (0, vue.toDisplayString)((0, vue.unref)(t)("UI_FORM_ADD", { item: fieldLabel.value })), 1)])), __props.description ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("p", _hoisted_3, (0, vue.toDisplayString)(__props.description), 1)) : (0, vue.createCommentVNode)("v-if", true)], 2)), [[vue.vShow, !__props.hidden]]) : variantComponent.value && (0, vue.unref)(innerField) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: 1 }, [(0, vue.createCommentVNode)(" Active: dispatch to variant's component, forwarding the field's @meta.label\n as title so the variant's chrome shows it (innerField.type overrides \"union\"). "), ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(variantComponent.value), (0, vue.mergeProps)({
343
345
  ref_key: "rootRef",
344
346
  ref: rootRef
345
347
  }, _ctx.$props, {
@@ -1,5 +1,6 @@
1
- import { _ as TYPES_KEY, a as CHANGE_HANDLER_KEY, h as PATH_PREFIX_KEY, r as useFormContext, v as UNION_CONTEXT_KEY } from "./use-form-context-cDW2GW4-.mjs";
2
- import { t as useAsDropdown } from "./use-as-dropdown-B2Shb7wn.mjs";
1
+ import { _ as TYPES_KEY, a as CHANGE_HANDLER_KEY, h as PATH_PREFIX_KEY, r as useFormContext, v as UNION_CONTEXT_KEY } from "./use-form-context-C3FxL3eF.mjs";
2
+ import { r as useAsTexts } from "./use-as-locale-1k9NBn-G.mjs";
3
+ import { n as useAsDropdown, t as variantLabel } from "./variant-label-B065kts3.mjs";
3
4
  import { t as useAsOptionalAddFlow } from "./use-as-optional-add-flow-BdjKNx9P.mjs";
4
5
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, inject, mergeProps, normalizeClass, openBlock, provide, ref, renderList, resolveDynamicComponent, toDisplayString, unref, vShow, withDirectives } from "vue";
5
6
  import { createFormData, createFormValueResolver, detectUnionVariant, isUnionField } from "@atscript/ui";
@@ -306,6 +307,7 @@ var as_union_default = /* @__PURE__ */ defineComponent({
306
307
  function handleVariantPick(vi) {
307
308
  selectPicker(() => pickAndFocus(vi));
308
309
  }
310
+ const { t } = useAsTexts();
309
311
  return (_ctx, _cache) => {
310
312
  return __props.optional && !unref(optionalEnabled) ? withDirectives((openBlock(), createElementBlock("div", {
311
313
  key: 0,
@@ -324,13 +326,13 @@ var as_union_default = /* @__PURE__ */ defineComponent({
324
326
  }, [_cache[0] || (_cache[0] = createElementVNode("span", {
325
327
  class: "i-as-field-fill as-object-empty-add-icon",
326
328
  "aria-hidden": "true"
327
- }, null, -1)), createTextVNode(" Add " + toDisplayString(fieldLabel.value), 1)]), unref(pickerOpen) ? (openBlock(), createElementBlock("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(unionField).unionVariants, (v, vi) => {
329
+ }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("UI_FORM_ADD", { item: fieldLabel.value })), 1)]), unref(pickerOpen) ? (openBlock(), createElementBlock("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(unionField).unionVariants, (v, vi) => {
328
330
  return openBlock(), createElementBlock("button", {
329
331
  key: vi,
330
332
  type: "button",
331
333
  class: "as-dropdown-item",
332
334
  onClick: ($event) => handleVariantPick(vi)
333
- }, toDisplayString(v.label), 9, _hoisted_2);
335
+ }, toDisplayString(unref(variantLabel)(v, unref(t))), 9, _hoisted_2);
334
336
  }), 128))])) : createCommentVNode("v-if", true)], 512)) : (openBlock(), createElementBlock("button", {
335
337
  key: 1,
336
338
  type: "button",
@@ -339,7 +341,7 @@ var as_union_default = /* @__PURE__ */ defineComponent({
339
341
  }, [_cache[1] || (_cache[1] = createElementVNode("span", {
340
342
  class: "i-as-field-fill as-object-empty-add-icon",
341
343
  "aria-hidden": "true"
342
- }, null, -1)), createTextVNode(" Add " + toDisplayString(fieldLabel.value), 1)])), __props.description ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(__props.description), 1)) : createCommentVNode("v-if", true)], 2)), [[vShow, !__props.hidden]]) : variantComponent.value && unref(innerField) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" Active: dispatch to variant's component, forwarding the field's @meta.label\n as title so the variant's chrome shows it (innerField.type overrides \"union\"). "), (openBlock(), createBlock(resolveDynamicComponent(variantComponent.value), mergeProps({
344
+ }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("UI_FORM_ADD", { item: fieldLabel.value })), 1)])), __props.description ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(__props.description), 1)) : createCommentVNode("v-if", true)], 2)), [[vShow, !__props.hidden]]) : variantComponent.value && unref(innerField) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" Active: dispatch to variant's component, forwarding the field's @meta.label\n as title so the variant's chrome shows it (innerField.type overrides \"union\"). "), (openBlock(), createBlock(resolveDynamicComponent(variantComponent.value), mergeProps({
343
345
  ref_key: "rootRef",
344
346
  ref: rootRef
345
347
  }, _ctx.$props, {
package/dist/as-union.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const require_as_union = require("./as-union-DT8XDZSt.cjs");
1
+ const require_as_union = require("./as-union-BjmrvD80.cjs");
2
2
  module.exports = require_as_union.as_union_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-union.vue-K9ZSRg0G.cjs";
1
+ import { t as _default } from "./as-union.vue-CnF4bNex.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-union.vue-Bz3EO0Gg.mjs";
1
+ import { t as _default } from "./as-union.vue-BJ8xFYYb.mjs";
2
2
  export { _default as default };
package/dist/as-union.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as as_union_default } from "./as-union-Gz8gEjmn.mjs";
1
+ import { t as as_union_default } from "./as-union-C3QiGYlE.mjs";
2
2
  export { as_union_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-BLoV3zIo.mjs";
1
+ import { o as TAsComponentProps } from "./types-BoguW89D.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-union.vue.d.ts
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-Crwu2D-w.cjs";
1
+ import { o as TAsComponentProps } from "./types-DoLxVJhd.cjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-union.vue.d.ts