@atscript/vue-form 0.1.103 → 0.1.104

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 (185) hide show
  1. package/dist/{as-action-lLooKipk.cjs → as-action-B712j9xf.cjs} +4 -0
  2. package/dist/{as-action-BoZtbaXt.mjs → as-action-CCjN5EFP.mjs} +4 -0
  3. package/dist/as-action.cjs +1 -1
  4. package/dist/as-action.d.cts +1 -1
  5. package/dist/as-action.d.mts +1 -1
  6. package/dist/as-action.mjs +1 -1
  7. package/dist/{as-action.vue-BCbopk0S.d.cts → as-action.vue-BL8_a0fE.d.cts} +1 -1
  8. package/dist/{as-action.vue-BtQX09n-.d.mts → as-action.vue-CcOPK2qI.d.mts} +1 -1
  9. package/dist/{as-array-4rQYVD9_.mjs → as-array-BGG38Y1L.mjs} +5 -1
  10. package/dist/{as-array-C6tCzZir.cjs → as-array-DVc9_ood.cjs} +5 -1
  11. package/dist/as-array.cjs +1 -1
  12. package/dist/as-array.d.cts +1 -1
  13. package/dist/as-array.d.mts +1 -1
  14. package/dist/as-array.mjs +1 -1
  15. package/dist/{as-array.vue-Ci4xO292.d.cts → as-array.vue-Be1tDTdH.d.cts} +1 -1
  16. package/dist/{as-array.vue-I42wuF6e.d.mts → as-array.vue-CtBBY2gF.d.mts} +1 -1
  17. package/dist/{as-checkbox-C3i6ZmRk.mjs → as-checkbox-DwLRHmXj.mjs} +5 -1
  18. package/dist/{as-checkbox-oxG8_Isu.cjs → as-checkbox-sgF16SuJ.cjs} +5 -1
  19. package/dist/as-checkbox.cjs +1 -1
  20. package/dist/as-checkbox.d.cts +1 -1
  21. package/dist/as-checkbox.d.mts +1 -1
  22. package/dist/as-checkbox.mjs +1 -1
  23. package/dist/{as-checkbox.vue-BoY72SV8.d.mts → as-checkbox.vue-B6zk5IbU.d.cts} +1 -1
  24. package/dist/{as-checkbox.vue-DqIm0ms2.d.cts → as-checkbox.vue-CXpsn_WG.d.mts} +1 -1
  25. package/dist/as-collapsible.d.cts +1 -18
  26. package/dist/as-collapsible.d.mts +1 -19
  27. package/dist/as-collapsible.vue-34S3TEq5.d.cts +20 -0
  28. package/dist/as-collapsible.vue-CIfMlTQ6.d.mts +20 -0
  29. package/dist/{as-date-BfISLr-e.mjs → as-date-CfCa2Kp1.mjs} +6 -2
  30. package/dist/{as-date-C7pJIpe-.cjs → as-date-hCCTd52o.cjs} +6 -2
  31. package/dist/as-date.cjs +1 -1
  32. package/dist/as-date.d.cts +1 -1
  33. package/dist/as-date.d.mts +1 -1
  34. package/dist/as-date.mjs +1 -1
  35. package/dist/{as-date.vue-BfSVrED7.d.mts → as-date.vue-BZiy1s5s.d.cts} +1 -1
  36. package/dist/{as-date.vue-SdlJH5fn.d.cts → as-date.vue-DWWoojir.d.mts} +1 -1
  37. package/dist/{as-datetime-F3In2A6l.mjs → as-datetime-B1I_zREk.mjs} +6 -2
  38. package/dist/{as-datetime-DFTI8Wcr.cjs → as-datetime-DDlWca2Q.cjs} +6 -2
  39. package/dist/as-datetime.cjs +1 -1
  40. package/dist/as-datetime.d.cts +1 -1
  41. package/dist/as-datetime.d.mts +1 -1
  42. package/dist/as-datetime.mjs +1 -1
  43. package/dist/{as-datetime.vue-B47V1siL.d.mts → as-datetime.vue-DYEHokj_.d.cts} +1 -1
  44. package/dist/{as-datetime.vue-DUp_TDOW.d.cts → as-datetime.vue-NblA-SVE.d.mts} +1 -1
  45. package/dist/{as-decimal-DIO8bD2Y.mjs → as-decimal-CQM5OfqB.mjs} +5 -1
  46. package/dist/{as-decimal-CJAHWYjW.cjs → as-decimal-DM10ycwv.cjs} +5 -1
  47. package/dist/as-decimal.cjs +1 -1
  48. package/dist/as-decimal.d.cts +1 -1
  49. package/dist/as-decimal.d.mts +1 -1
  50. package/dist/as-decimal.mjs +1 -1
  51. package/dist/{as-decimal.vue-Bhq4C1Ix.d.cts → as-decimal.vue-BoNNIhbL.d.mts} +1 -1
  52. package/dist/{as-decimal.vue-DitPZpS_.d.mts → as-decimal.vue-D3eGMvC0.d.cts} +1 -1
  53. package/dist/{as-field-DLW-csEu.mjs → as-field-5rz47opo.mjs} +10 -4
  54. package/dist/{as-field-shell-CW3DDHnq.cjs → as-field-shell-C4epFfvE.cjs} +29 -23
  55. package/dist/{as-field-shell-BHYEjGcn.mjs → as-field-shell-DLvPV8WS.mjs} +29 -23
  56. package/dist/as-field-shell.cjs +1 -1
  57. package/dist/as-field-shell.d.cts +1 -1
  58. package/dist/as-field-shell.d.mts +1 -1
  59. package/dist/as-field-shell.mjs +1 -1
  60. package/dist/{as-field-shell.vue-Ct1ixFqc.d.cts → as-field-shell.vue-CLDHaWN0.d.cts} +1 -1
  61. package/dist/{as-field-shell.vue-K4Flr3gw.d.mts → as-field-shell.vue-DssDDSal.d.mts} +1 -1
  62. package/dist/{as-field-BKa4D63r.cjs → as-field-vktmRs-V.cjs} +9 -3
  63. package/dist/as-field.cjs +1 -1
  64. package/dist/as-field.d.cts +1 -24
  65. package/dist/as-field.d.mts +1 -25
  66. package/dist/as-field.mjs +1 -1
  67. package/dist/as-field.vue-A2cJj-Ih.d.cts +26 -0
  68. package/dist/as-field.vue-CmjIDgQ5.d.mts +26 -0
  69. package/dist/{as-form-CrMA0HdQ.cjs → as-form-B4DKpAVk.cjs} +75 -37
  70. package/dist/{as-form-OsyP7m-A.mjs → as-form-me0zA-52.mjs} +77 -39
  71. package/dist/as-form.cjs +1 -1
  72. package/dist/as-form.d.cts +1 -1
  73. package/dist/as-form.d.mts +1 -1
  74. package/dist/as-form.mjs +1 -1
  75. package/dist/as-form.vue-D5d1Y2ff.d.cts +1425 -0
  76. package/dist/as-form.vue-DH3phgWP.d.mts +1425 -0
  77. package/dist/{as-input-CqxNYh5q.cjs → as-input-Bp1Ltp15.cjs} +6 -2
  78. package/dist/{as-input-D7aA22Yx.mjs → as-input-DF--i7kY.mjs} +6 -2
  79. package/dist/{as-input-control-BYo_dfQA.cjs → as-input-control-B7F2q99A.cjs} +4 -0
  80. package/dist/{as-input-control-Bx-isLZN.mjs → as-input-control-BofS4mCo.mjs} +4 -0
  81. package/dist/as-input.cjs +1 -1
  82. package/dist/as-input.d.cts +1 -1
  83. package/dist/as-input.d.mts +1 -1
  84. package/dist/as-input.mjs +1 -1
  85. package/dist/{as-input.vue-BHsVVncq.d.cts → as-input.vue-CCAEWqK8.d.mts} +1 -1
  86. package/dist/{as-input.vue-DgZrW4pc.d.mts → as-input.vue-Nc9Q3RPh.d.cts} +1 -1
  87. package/dist/{as-iterator-DsDKfpTh.cjs → as-iterator-Bd-bKTMY.cjs} +1 -1
  88. package/dist/{as-iterator-DW7giLlz.mjs → as-iterator-BjIF-O-J.mjs} +1 -1
  89. package/dist/as-iterator.cjs +1 -1
  90. package/dist/as-iterator.d.cts +1 -20
  91. package/dist/as-iterator.d.mts +1 -21
  92. package/dist/as-iterator.mjs +1 -1
  93. package/dist/as-iterator.vue-BZeozFr-.d.cts +22 -0
  94. package/dist/as-iterator.vue-C8HW6n25.d.mts +22 -0
  95. package/dist/{as-multi-select-DQUInqwY.cjs → as-multi-select-b1l34vP5.cjs} +5 -1
  96. package/dist/{as-multi-select-Bsf4Y_mv.mjs → as-multi-select-mp-aM3LV.mjs} +5 -1
  97. package/dist/as-multi-select.cjs +1 -1
  98. package/dist/as-multi-select.d.cts +1 -1
  99. package/dist/as-multi-select.d.mts +1 -1
  100. package/dist/as-multi-select.mjs +1 -1
  101. package/dist/{as-multi-select.vue--bavpcN-.d.cts → as-multi-select.vue-D9mseRFm.d.cts} +1 -1
  102. package/dist/{as-multi-select.vue-rsDUkzxa.d.mts → as-multi-select.vue-DKpOsOmM.d.mts} +1 -1
  103. package/dist/{as-number-B8MCg-ph.mjs → as-number-De9zTltV.mjs} +6 -2
  104. package/dist/{as-number-CFdK5xjM.cjs → as-number-joydTMcJ.cjs} +6 -2
  105. package/dist/as-number.cjs +1 -1
  106. package/dist/as-number.d.cts +1 -1
  107. package/dist/as-number.d.mts +1 -1
  108. package/dist/as-number.mjs +1 -1
  109. package/dist/{as-number.vue-D2DrbnQu.d.cts → as-number.vue-CZC0-zs8.d.cts} +1 -1
  110. package/dist/{as-number.vue-Oml2y6Nt.d.mts → as-number.vue-DrvjSOdq.d.mts} +1 -1
  111. package/dist/{as-object-CN3KZFXO.mjs → as-object-CQMTYtcY.mjs} +5 -1
  112. package/dist/{as-object-B4sF9sIh.cjs → as-object-DgeItRdH.cjs} +5 -1
  113. package/dist/as-object.cjs +1 -1
  114. package/dist/as-object.d.cts +1 -1
  115. package/dist/as-object.d.mts +1 -1
  116. package/dist/as-object.mjs +1 -1
  117. package/dist/{as-object.vue-BljKYrMo.d.cts → as-object.vue-BItO19fw.d.mts} +1 -1
  118. package/dist/{as-object.vue-DAq7Kha3.d.mts → as-object.vue-DbHog5M-.d.cts} +1 -1
  119. package/dist/{as-paragraph-GIGj6UgL.mjs → as-paragraph-BP3-0EY4.mjs} +4 -0
  120. package/dist/{as-paragraph-BA-c863H.cjs → as-paragraph-CPhDTH_V.cjs} +4 -0
  121. package/dist/as-paragraph.cjs +1 -1
  122. package/dist/as-paragraph.d.cts +1 -1
  123. package/dist/as-paragraph.d.mts +1 -1
  124. package/dist/as-paragraph.mjs +1 -1
  125. package/dist/{as-paragraph.vue-CBU_olev.d.mts → as-paragraph.vue-BGDpjceO.d.mts} +1 -1
  126. package/dist/{as-paragraph.vue-LxXA7VPD.d.cts → as-paragraph.vue-D36pdOoc.d.cts} +1 -1
  127. package/dist/{as-radio-BeOQdoeq.cjs → as-radio-Dlmxk1vr.cjs} +5 -1
  128. package/dist/{as-radio-CFaDbRPe.mjs → as-radio-SwpgM1xP.mjs} +5 -1
  129. package/dist/as-radio.cjs +1 -1
  130. package/dist/as-radio.d.cts +1 -1
  131. package/dist/as-radio.d.mts +1 -1
  132. package/dist/as-radio.mjs +1 -1
  133. package/dist/{as-radio.vue-Dk4nlz-d.d.cts → as-radio.vue-EfrhKcBF.d.cts} +1 -1
  134. package/dist/{as-radio.vue-TVMliE1e.d.mts → as-radio.vue-WywkI-zY.d.mts} +1 -1
  135. package/dist/{as-ref-CNQgr6zE.mjs → as-ref-8JnEuan0.mjs} +5 -1
  136. package/dist/{as-ref-RawBvR6v.cjs → as-ref-BCpvUq8E.cjs} +5 -1
  137. package/dist/as-ref.cjs +1 -1
  138. package/dist/as-ref.d.cts +1 -1
  139. package/dist/as-ref.d.mts +1 -1
  140. package/dist/as-ref.mjs +1 -1
  141. package/dist/{as-ref.vue-CUxxGqyg.d.mts → as-ref.vue-BD_vsu7I.d.mts} +1 -1
  142. package/dist/{as-ref.vue-CnzqRblA.d.cts → as-ref.vue-Cxg-A5QR.d.cts} +1 -1
  143. package/dist/{as-select-Cr00CPKf.mjs → as-select-C3ukCyGQ.mjs} +5 -1
  144. package/dist/{as-select-LJIvBPiv.cjs → as-select-CtSNZXtC.cjs} +5 -1
  145. package/dist/as-select.cjs +1 -1
  146. package/dist/as-select.d.cts +1 -1
  147. package/dist/as-select.d.mts +1 -1
  148. package/dist/as-select.mjs +1 -1
  149. package/dist/{as-select.vue-CKjAg-Y2.d.mts → as-select.vue-DoAG5njV.d.mts} +1 -1
  150. package/dist/{as-select.vue-ZZtjsmcO.d.cts → as-select.vue-hd94jaH_.d.cts} +1 -1
  151. package/dist/{as-time-CE2FaqZ3.mjs → as-time-QJ9YiVj9.mjs} +6 -2
  152. package/dist/{as-time-CqCF0pKQ.cjs → as-time-nAPtGL3t.cjs} +6 -2
  153. package/dist/as-time.cjs +1 -1
  154. package/dist/as-time.d.cts +1 -1
  155. package/dist/as-time.d.mts +1 -1
  156. package/dist/as-time.mjs +1 -1
  157. package/dist/{as-time.vue-BCEE4uCV.d.mts → as-time.vue-DMy_Au0C.d.cts} +1 -1
  158. package/dist/{as-time.vue-BUAvE5m3.d.cts → as-time.vue-DgW7qSAM.d.mts} +1 -1
  159. package/dist/{as-tuple-B3ysbvxB.cjs → as-tuple-CFn7aZYt.cjs} +5 -1
  160. package/dist/{as-tuple-CeJWgP6l.mjs → as-tuple-CJXpGGKj.mjs} +5 -1
  161. package/dist/as-tuple.cjs +1 -1
  162. package/dist/as-tuple.d.cts +1 -1
  163. package/dist/as-tuple.d.mts +1 -1
  164. package/dist/as-tuple.mjs +1 -1
  165. package/dist/{as-tuple.vue-WN7k43tv.d.mts → as-tuple.vue-BDwz5FeN.d.mts} +1 -1
  166. package/dist/{as-tuple.vue-cy0ThAGl.d.cts → as-tuple.vue-DZ2Soqyw.d.cts} +1 -1
  167. package/dist/{as-union-Djhjo69H.cjs → as-union-BDRNBacb.cjs} +4 -0
  168. package/dist/{as-union-BPlYyGVk.mjs → as-union-DZWgGqqM.mjs} +4 -0
  169. package/dist/as-union.cjs +1 -1
  170. package/dist/as-union.d.cts +1 -1
  171. package/dist/as-union.d.mts +1 -1
  172. package/dist/as-union.mjs +1 -1
  173. package/dist/{as-union.vue-AqH35ozq.d.cts → as-union.vue-D9Mh0M3_.d.mts} +1 -1
  174. package/dist/{as-union.vue-Ew3Bany8.d.mts → as-union.vue-DQKWNuhd.d.cts} +1 -1
  175. package/dist/index.cjs +22 -22
  176. package/dist/index.d.cts +24 -1081
  177. package/dist/index.d.mts +24 -1081
  178. package/dist/index.mjs +22 -22
  179. package/dist/{types-BYfe1QEF.d.cts → types-B8aPXWL5.d.cts} +13 -0
  180. package/dist/{types-CV9ss4UN.d.mts → types-nuUi10Kl.d.mts} +13 -0
  181. package/dist/{use-as-date-XLE8HBbo.mjs → use-as-date-B6RGkjjB.mjs} +4 -0
  182. package/dist/{use-as-date-DY8b1_V4.cjs → use-as-date-CslHBPmQ.cjs} +4 -0
  183. package/package.json +6 -6
  184. package/dist/as-form.vue-2NZSk1F9.d.mts +0 -285
  185. package/dist/as-form.vue-Dg_5GYWG.d.cts +0 -285
@@ -184,6 +184,10 @@ var as_action_default = /* @__PURE__ */ (0, vue.defineComponent)({
184
184
  type: Boolean,
185
185
  required: false
186
186
  },
187
+ isDirty: {
188
+ type: Boolean,
189
+ required: false
190
+ },
187
191
  disabled: {
188
192
  type: Boolean,
189
193
  required: false
@@ -184,6 +184,10 @@ var as_action_default = /* @__PURE__ */ defineComponent({
184
184
  type: Boolean,
185
185
  required: false
186
186
  },
187
+ isDirty: {
188
+ type: Boolean,
189
+ required: false
190
+ },
187
191
  disabled: {
188
192
  type: Boolean,
189
193
  required: false
@@ -1,2 +1,2 @@
1
- const require_as_action = require("./as-action-lLooKipk.cjs");
1
+ const require_as_action = require("./as-action-B712j9xf.cjs");
2
2
  module.exports = require_as_action.as_action_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-action.vue-BCbopk0S.cjs";
1
+ import { t as _default } from "./as-action.vue-BL8_a0fE.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-action.vue-BtQX09n-.mjs";
1
+ import { t as _default } from "./as-action.vue-CcOPK2qI.mjs";
2
2
  export { _default as default };
@@ -1,2 +1,2 @@
1
- import { t as as_action_default } from "./as-action-BoZtbaXt.mjs";
1
+ import { t as as_action_default } from "./as-action-CCjN5EFP.mjs";
2
2
  export { as_action_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-BYfe1QEF.cjs";
1
+ import { o as TAsComponentProps } from "./types-B8aPXWL5.cjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-action.vue.d.ts
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-CV9ss4UN.mjs";
1
+ import { o as TAsComponentProps } from "./types-nuUi10Kl.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-action.vue.d.ts
@@ -1,5 +1,5 @@
1
1
  import { a as CHANGE_HANDLER_KEY, n as useAsUnionVariant, r as useFormContext } from "./use-form-context-D6J1WTyG.mjs";
2
- import { t as as_field_default } from "./as-field-DLW-csEu.mjs";
2
+ import { t as as_field_default } from "./as-field-5rz47opo.mjs";
3
3
  import { t as as_collapsible_default } from "./as-collapsible-DFTzB5Ar.mjs";
4
4
  import { t as as_variant_picker_default } from "./as-variant-picker-B3GLhKyt.mjs";
5
5
  import { t as useAsDropdown } from "./use-as-dropdown-B2Shb7wn.mjs";
@@ -320,6 +320,10 @@ var as_array_default = /* @__PURE__ */ defineComponent({
320
320
  type: Boolean,
321
321
  required: false
322
322
  },
323
+ isDirty: {
324
+ type: Boolean,
325
+ required: false
326
+ },
323
327
  disabled: {
324
328
  type: Boolean,
325
329
  required: false
@@ -1,5 +1,5 @@
1
1
  const require_use_form_context = require("./use-form-context-DpGiGUvJ.cjs");
2
- const require_as_field = require("./as-field-BKa4D63r.cjs");
2
+ const require_as_field = require("./as-field-vktmRs-V.cjs");
3
3
  const require_as_collapsible = require("./as-collapsible-BQ-eYR0v.cjs");
4
4
  const require_as_variant_picker = require("./as-variant-picker-JlEhh7YO.cjs");
5
5
  const require_use_as_dropdown = require("./use-as-dropdown-Bj9toVdw.cjs");
@@ -320,6 +320,10 @@ var as_array_default = /* @__PURE__ */ (0, vue.defineComponent)({
320
320
  type: Boolean,
321
321
  required: false
322
322
  },
323
+ isDirty: {
324
+ type: Boolean,
325
+ required: false
326
+ },
323
327
  disabled: {
324
328
  type: Boolean,
325
329
  required: false
package/dist/as-array.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const require_as_array = require("./as-array-C6tCzZir.cjs");
1
+ const require_as_array = require("./as-array-DVc9_ood.cjs");
2
2
  module.exports = require_as_array.as_array_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-array.vue-Ci4xO292.cjs";
1
+ import { t as _default } from "./as-array.vue-Be1tDTdH.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-array.vue-I42wuF6e.mjs";
1
+ import { t as _default } from "./as-array.vue-CtBBY2gF.mjs";
2
2
  export { _default as default };
package/dist/as-array.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as as_array_default } from "./as-array-4rQYVD9_.mjs";
1
+ import { t as as_array_default } from "./as-array-BGG38Y1L.mjs";
2
2
  export { as_array_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-BYfe1QEF.cjs";
1
+ import { o as TAsComponentProps } from "./types-B8aPXWL5.cjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-array.vue.d.ts
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-CV9ss4UN.mjs";
1
+ import { o as TAsComponentProps } from "./types-nuUi10Kl.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-array.vue.d.ts
@@ -1,4 +1,4 @@
1
- import { t as as_field_shell_default } from "./as-field-shell-BHYEjGcn.mjs";
1
+ import { t as as_field_shell_default } from "./as-field-shell-DLvPV8WS.mjs";
2
2
  import { n as as_optional_clear_default } from "./as-variant-picker-B3GLhKyt.mjs";
3
3
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, toDisplayString, unref, watchEffect, withCtx } from "vue";
4
4
  //#region src/composables/use-as-tri-state-checkbox.ts
@@ -225,6 +225,10 @@ var as_checkbox_default = /* @__PURE__ */ defineComponent({
225
225
  type: Boolean,
226
226
  required: false
227
227
  },
228
+ isDirty: {
229
+ type: Boolean,
230
+ required: false
231
+ },
228
232
  disabled: {
229
233
  type: Boolean,
230
234
  required: false
@@ -1,4 +1,4 @@
1
- const require_as_field_shell = require("./as-field-shell-CW3DDHnq.cjs");
1
+ const require_as_field_shell = require("./as-field-shell-C4epFfvE.cjs");
2
2
  const require_as_variant_picker = require("./as-variant-picker-JlEhh7YO.cjs");
3
3
  let vue = require("vue");
4
4
  //#region src/composables/use-as-tri-state-checkbox.ts
@@ -225,6 +225,10 @@ var as_checkbox_default = /* @__PURE__ */ (0, vue.defineComponent)({
225
225
  type: Boolean,
226
226
  required: false
227
227
  },
228
+ isDirty: {
229
+ type: Boolean,
230
+ required: false
231
+ },
228
232
  disabled: {
229
233
  type: Boolean,
230
234
  required: false
@@ -1,2 +1,2 @@
1
- const require_as_checkbox = require("./as-checkbox-oxG8_Isu.cjs");
1
+ const require_as_checkbox = require("./as-checkbox-sgF16SuJ.cjs");
2
2
  module.exports = require_as_checkbox.as_checkbox_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-checkbox.vue-DqIm0ms2.cjs";
1
+ import { t as _default } from "./as-checkbox.vue-B6zk5IbU.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-checkbox.vue-BoY72SV8.mjs";
1
+ import { t as _default } from "./as-checkbox.vue-CXpsn_WG.mjs";
2
2
  export { _default as default };
@@ -1,2 +1,2 @@
1
- import { t as as_checkbox_default } from "./as-checkbox-C3i6ZmRk.mjs";
1
+ import { t as as_checkbox_default } from "./as-checkbox-DwLRHmXj.mjs";
2
2
  export { as_checkbox_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-CV9ss4UN.mjs";
1
+ import { o as TAsComponentProps } from "./types-B8aPXWL5.cjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-checkbox.vue.d.ts
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-BYfe1QEF.cjs";
1
+ import { o as TAsComponentProps } from "./types-nuUi10Kl.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-checkbox.vue.d.ts
@@ -1,19 +1,2 @@
1
- import { i as TAsCollapsibleSlots, r as TAsCollapsibleProps } from "./types-BYfe1QEF.cjs";
2
- import * as vue from "vue";
3
-
4
- //#region src/components/as-collapsible.vue.d.ts
5
- declare const _default: typeof __VLS_export;
6
- declare const __VLS_export: __VLS_WithSlots<vue.DefineComponent<TAsCollapsibleProps, {
7
- runAndFocus: (action: () => void, ticks?: number) => void;
8
- runAndFocusNew: (action: () => void, ticks?: number) => void;
9
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<TAsCollapsibleProps> & Readonly<{}>, {
10
- optional: boolean;
11
- optionalEnabled: boolean;
12
- defaultOpen: boolean;
13
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>, TAsCollapsibleSlots>;
14
- type __VLS_WithSlots<T, S> = T & {
15
- new (): {
16
- $slots: S;
17
- };
18
- };
1
+ import { t as _default } from "./as-collapsible.vue-34S3TEq5.cjs";
19
2
  export = _default;
@@ -1,20 +1,2 @@
1
- import { i as TAsCollapsibleSlots, r as TAsCollapsibleProps } from "./types-CV9ss4UN.mjs";
2
- import * as vue from "vue";
3
-
4
- //#region src/components/as-collapsible.vue.d.ts
5
- declare const _default: typeof __VLS_export;
6
- declare const __VLS_export: __VLS_WithSlots<vue.DefineComponent<TAsCollapsibleProps, {
7
- runAndFocus: (action: () => void, ticks?: number) => void;
8
- runAndFocusNew: (action: () => void, ticks?: number) => void;
9
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<TAsCollapsibleProps> & Readonly<{}>, {
10
- optional: boolean;
11
- optionalEnabled: boolean;
12
- defaultOpen: boolean;
13
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>, TAsCollapsibleSlots>;
14
- type __VLS_WithSlots<T, S> = T & {
15
- new (): {
16
- $slots: S;
17
- };
18
- };
19
- //#endregion
1
+ import { t as _default } from "./as-collapsible.vue-CIfMlTQ6.mjs";
20
2
  export { _default as default };
@@ -0,0 +1,20 @@
1
+ import { i as TAsCollapsibleSlots, r as TAsCollapsibleProps } from "./types-B8aPXWL5.cjs";
2
+ import * as vue from "vue";
3
+
4
+ //#region src/components/as-collapsible.vue.d.ts
5
+ declare const _default: typeof __VLS_export;
6
+ declare const __VLS_export: __VLS_WithSlots<vue.DefineComponent<TAsCollapsibleProps, {
7
+ runAndFocus: (action: () => void, ticks?: number) => void;
8
+ runAndFocusNew: (action: () => void, ticks?: number) => void;
9
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<TAsCollapsibleProps> & Readonly<{}>, {
10
+ optional: boolean;
11
+ optionalEnabled: boolean;
12
+ defaultOpen: boolean;
13
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>, TAsCollapsibleSlots>;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
19
+ //#endregion
20
+ export { _default as t };
@@ -0,0 +1,20 @@
1
+ import { i as TAsCollapsibleSlots, r as TAsCollapsibleProps } from "./types-nuUi10Kl.mjs";
2
+ import * as vue from "vue";
3
+
4
+ //#region src/components/as-collapsible.vue.d.ts
5
+ declare const _default: typeof __VLS_export;
6
+ declare const __VLS_export: __VLS_WithSlots<vue.DefineComponent<TAsCollapsibleProps, {
7
+ runAndFocus: (action: () => void, ticks?: number) => void;
8
+ runAndFocusNew: (action: () => void, ticks?: number) => void;
9
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<TAsCollapsibleProps> & Readonly<{}>, {
10
+ optional: boolean;
11
+ optionalEnabled: boolean;
12
+ defaultOpen: boolean;
13
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>, TAsCollapsibleSlots>;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
19
+ //#endregion
20
+ export { _default as t };
@@ -1,6 +1,6 @@
1
- import { t as as_field_shell_default } from "./as-field-shell-BHYEjGcn.mjs";
1
+ import { t as as_field_shell_default } from "./as-field-shell-DLvPV8WS.mjs";
2
2
  import { t as as_adornment_shell_default } from "./as-adornment-shell-C4A2fnDp.mjs";
3
- import { n as as_date_control_default, t as useAsDate } from "./use-as-date-XLE8HBbo.mjs";
3
+ import { n as as_date_control_default, t as useAsDate } from "./use-as-date-B6RGkjjB.mjs";
4
4
  import { computed, createBlock, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, unref, withCtx } from "vue";
5
5
  //#endregion
6
6
  //#region src/components/defaults/as-date.vue
@@ -182,6 +182,10 @@ var as_date_default = /* @__PURE__ */ defineComponent({
182
182
  type: Boolean,
183
183
  required: false
184
184
  },
185
+ isDirty: {
186
+ type: Boolean,
187
+ required: false
188
+ },
185
189
  disabled: {
186
190
  type: Boolean,
187
191
  required: false
@@ -1,6 +1,6 @@
1
- const require_as_field_shell = require("./as-field-shell-CW3DDHnq.cjs");
1
+ const require_as_field_shell = require("./as-field-shell-C4epFfvE.cjs");
2
2
  const require_as_adornment_shell = require("./as-adornment-shell-DptUMWNk.cjs");
3
- const require_use_as_date = require("./use-as-date-DY8b1_V4.cjs");
3
+ const require_use_as_date = require("./use-as-date-CslHBPmQ.cjs");
4
4
  let vue = require("vue");
5
5
  //#endregion
6
6
  //#region src/components/defaults/as-date.vue
@@ -182,6 +182,10 @@ var as_date_default = /* @__PURE__ */ (0, vue.defineComponent)({
182
182
  type: Boolean,
183
183
  required: false
184
184
  },
185
+ isDirty: {
186
+ type: Boolean,
187
+ required: false
188
+ },
185
189
  disabled: {
186
190
  type: Boolean,
187
191
  required: false
package/dist/as-date.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const require_as_date = require("./as-date-C7pJIpe-.cjs");
1
+ const require_as_date = require("./as-date-hCCTd52o.cjs");
2
2
  module.exports = require_as_date.as_date_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-date.vue-SdlJH5fn.cjs";
1
+ import { t as _default } from "./as-date.vue-BZiy1s5s.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-date.vue-BfSVrED7.mjs";
1
+ import { t as _default } from "./as-date.vue-DWWoojir.mjs";
2
2
  export { _default as default };
package/dist/as-date.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as as_date_default } from "./as-date-BfISLr-e.mjs";
1
+ import { t as as_date_default } from "./as-date-CfCa2Kp1.mjs";
2
2
  export { as_date_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-CV9ss4UN.mjs";
1
+ import { o as TAsComponentProps } from "./types-B8aPXWL5.cjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-date.vue.d.ts
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-BYfe1QEF.cjs";
1
+ import { o as TAsComponentProps } from "./types-nuUi10Kl.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-date.vue.d.ts
@@ -1,6 +1,6 @@
1
- import { t as as_field_shell_default } from "./as-field-shell-BHYEjGcn.mjs";
1
+ import { t as as_field_shell_default } from "./as-field-shell-DLvPV8WS.mjs";
2
2
  import { t as as_adornment_shell_default } from "./as-adornment-shell-C4A2fnDp.mjs";
3
- import { n as as_date_control_default, t as useAsDate } from "./use-as-date-XLE8HBbo.mjs";
3
+ import { n as as_date_control_default, t as useAsDate } from "./use-as-date-B6RGkjjB.mjs";
4
4
  import { computed, createBlock, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, unref, withCtx } from "vue";
5
5
  //#endregion
6
6
  //#region src/components/defaults/as-datetime.vue
@@ -182,6 +182,10 @@ var as_datetime_default = /* @__PURE__ */ defineComponent({
182
182
  type: Boolean,
183
183
  required: false
184
184
  },
185
+ isDirty: {
186
+ type: Boolean,
187
+ required: false
188
+ },
185
189
  disabled: {
186
190
  type: Boolean,
187
191
  required: false
@@ -1,6 +1,6 @@
1
- const require_as_field_shell = require("./as-field-shell-CW3DDHnq.cjs");
1
+ const require_as_field_shell = require("./as-field-shell-C4epFfvE.cjs");
2
2
  const require_as_adornment_shell = require("./as-adornment-shell-DptUMWNk.cjs");
3
- const require_use_as_date = require("./use-as-date-DY8b1_V4.cjs");
3
+ const require_use_as_date = require("./use-as-date-CslHBPmQ.cjs");
4
4
  let vue = require("vue");
5
5
  //#endregion
6
6
  //#region src/components/defaults/as-datetime.vue
@@ -182,6 +182,10 @@ var as_datetime_default = /* @__PURE__ */ (0, vue.defineComponent)({
182
182
  type: Boolean,
183
183
  required: false
184
184
  },
185
+ isDirty: {
186
+ type: Boolean,
187
+ required: false
188
+ },
185
189
  disabled: {
186
190
  type: Boolean,
187
191
  required: false
@@ -1,2 +1,2 @@
1
- const require_as_datetime = require("./as-datetime-DFTI8Wcr.cjs");
1
+ const require_as_datetime = require("./as-datetime-DDlWca2Q.cjs");
2
2
  module.exports = require_as_datetime.as_datetime_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-datetime.vue-DUp_TDOW.cjs";
1
+ import { t as _default } from "./as-datetime.vue-DYEHokj_.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-datetime.vue-B47V1siL.mjs";
1
+ import { t as _default } from "./as-datetime.vue-NblA-SVE.mjs";
2
2
  export { _default as default };
@@ -1,2 +1,2 @@
1
- import { t as as_datetime_default } from "./as-datetime-F3In2A6l.mjs";
1
+ import { t as as_datetime_default } from "./as-datetime-B1I_zREk.mjs";
2
2
  export { as_datetime_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-CV9ss4UN.mjs";
1
+ import { o as TAsComponentProps } from "./types-B8aPXWL5.cjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-datetime.vue.d.ts
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-BYfe1QEF.cjs";
1
+ import { o as TAsComponentProps } from "./types-nuUi10Kl.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-datetime.vue.d.ts
@@ -1,5 +1,5 @@
1
1
  import { n as useAsLocale } from "./use-as-locale-BrFdAgnU.mjs";
2
- import { t as as_field_shell_default } from "./as-field-shell-BHYEjGcn.mjs";
2
+ import { t as as_field_shell_default } from "./as-field-shell-DLvPV8WS.mjs";
3
3
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, nextTick, normalizeClass, normalizeProps, openBlock, ref, toDisplayString, unref, watch, withCtx } from "vue";
4
4
  import { enforceScale, formatDecimalForDisplay, getDecimalSeparator, getThousandsSeparator, groupInteger, joinDecimalString, parseDecimalInput, splitDecimalString } from "@atscript/ui";
5
5
  //#region src/composables/_shape.ts
@@ -590,6 +590,10 @@ var as_decimal_default = /* @__PURE__ */ defineComponent({
590
590
  type: Boolean,
591
591
  required: false
592
592
  },
593
+ isDirty: {
594
+ type: Boolean,
595
+ required: false
596
+ },
593
597
  disabled: {
594
598
  type: Boolean,
595
599
  required: false
@@ -1,5 +1,5 @@
1
1
  const require_use_as_locale = require("./use-as-locale-C4z5stwD.cjs");
2
- const require_as_field_shell = require("./as-field-shell-CW3DDHnq.cjs");
2
+ const require_as_field_shell = require("./as-field-shell-C4epFfvE.cjs");
3
3
  let vue = require("vue");
4
4
  let _atscript_ui = require("@atscript/ui");
5
5
  //#region src/composables/_shape.ts
@@ -590,6 +590,10 @@ var as_decimal_default = /* @__PURE__ */ (0, vue.defineComponent)({
590
590
  type: Boolean,
591
591
  required: false
592
592
  },
593
+ isDirty: {
594
+ type: Boolean,
595
+ required: false
596
+ },
593
597
  disabled: {
594
598
  type: Boolean,
595
599
  required: false
@@ -1,2 +1,2 @@
1
- const require_as_decimal = require("./as-decimal-CJAHWYjW.cjs");
1
+ const require_as_decimal = require("./as-decimal-DM10ycwv.cjs");
2
2
  module.exports = require_as_decimal.as_decimal_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-decimal.vue-Bhq4C1Ix.cjs";
1
+ import { t as _default } from "./as-decimal.vue-D3eGMvC0.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-decimal.vue-DitPZpS_.mjs";
1
+ import { t as _default } from "./as-decimal.vue-BoNNIhbL.mjs";
2
2
  export { _default as default };
@@ -1,2 +1,2 @@
1
- import { t as as_decimal_default } from "./as-decimal-DIO8bD2Y.mjs";
1
+ import { t as as_decimal_default } from "./as-decimal-CQM5OfqB.mjs";
2
2
  export { as_decimal_default as default };
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-BYfe1QEF.cjs";
1
+ import { o as TAsComponentProps } from "./types-nuUi10Kl.mjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-decimal.vue.d.ts
@@ -1,4 +1,4 @@
1
- import { o as TAsComponentProps } from "./types-CV9ss4UN.mjs";
1
+ import { o as TAsComponentProps } from "./types-B8aPXWL5.cjs";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/defaults/as-decimal.vue.d.ts
@@ -1,4 +1,4 @@
1
- import { _ as TYPES_KEY, a as CHANGE_HANDLER_KEY, c as ERRORS_KEY, f as FORM_STATE_KEY, g as ROOT_DATA_KEY, h as PATH_PREFIX_KEY, i as ACTION_HANDLER_KEY, l as FORM_CONTEXT_KEY, m as LEVEL_KEY, o as COMPONENTS_KEY, p as HIDE_ROOT_TITLE_KEY, r as useFormContext, s as DISMISS_EXTERNAL_AT_KEY, u as FORM_DATA_KEY } from "./use-form-context-D6J1WTyG.mjs";
1
+ import { _ as TYPES_KEY, a as CHANGE_HANDLER_KEY, c as ERRORS_KEY, d as FORM_PATCH_KEY, f as FORM_STATE_KEY, g as ROOT_DATA_KEY, h as PATH_PREFIX_KEY, i as ACTION_HANDLER_KEY, l as FORM_CONTEXT_KEY, m as LEVEL_KEY, o as COMPONENTS_KEY, p as HIDE_ROOT_TITLE_KEY, r as useFormContext, s as DISMISS_EXTERNAL_AT_KEY, u as FORM_DATA_KEY } from "./use-form-context-D6J1WTyG.mjs";
2
2
  import { n as useAsLocale } from "./use-as-locale-BrFdAgnU.mjs";
3
3
  import { computed, createBlock, createElementBlock, defineComponent, inject, isRef, mergeProps, onUnmounted, openBlock, provide, ref, resolveDynamicComponent, toDisplayString, unref, useId, watch } from "vue";
4
4
  import { DB_AMOUNT_CURRENCY, DB_AMOUNT_CURRENCY_REF, DB_COLUMN_PRECISION, DB_UNIT, DB_UNIT_REF, EXPECT_MAX_LENGTH, META_DEFAULT, META_DESCRIPTION, META_LABEL, META_READONLY, META_REQUIRED, UI_FORM_ACTION, UI_FORM_ATTR, UI_FORM_AUTOCOMPLETE, UI_FORM_CLASSES, UI_FORM_COMPONENT, UI_FORM_DISABLED, UI_FORM_FN_CLASSES, UI_FORM_FN_DESCRIPTION, UI_FORM_FN_DISABLED, UI_FORM_FN_HIDDEN, UI_FORM_FN_HINT, UI_FORM_FN_LABEL, UI_FORM_FN_PLACEHOLDER, UI_FORM_FN_PREFIX, UI_FORM_FN_READONLY, UI_FORM_FN_STYLES, UI_FORM_FN_TITLE, UI_FORM_FN_VALUE, UI_FORM_GRID_COL_SPAN, UI_FORM_GRID_ROW_SPAN, UI_FORM_HIDDEN, UI_FORM_HINT, UI_FORM_PLACEHOLDER, UI_FORM_PREFIX, UI_FORM_PREFIX_ICON, UI_FORM_PREFIX_REF, UI_FORM_STYLES, UI_FORM_SUFFIX, UI_FORM_SUFFIX_ICON, UI_FORM_SUFFIX_REF, UI_FORM_VALIDATE, WF_ACTION_WITH_DATA, buildGridClasses, createFieldValidator, createFormData, createFormValueResolver, extractValueHelp, getByPath, getCurrencyDecimals, getCurrencyDisplayParts, getFieldMeta, isArrayField, isObjectField, isTupleField, isUnionField, resolveAttrs, resolveFieldProp, resolveFormProp, resolveGridSpec, resolveOptions, resolveSingularLabel } from "@atscript/ui";
@@ -8,6 +8,7 @@ function useAsField(opts) {
8
8
  const formState = inject(FORM_STATE_KEY);
9
9
  const formData = inject(FORM_DATA_KEY);
10
10
  const formContext = inject(FORM_CONTEXT_KEY);
11
+ const patch = inject(FORM_PATCH_KEY, void 0);
11
12
  const id = Symbol("form-field");
12
13
  const submitError = ref();
13
14
  const externalError = ref();
@@ -17,6 +18,7 @@ function useAsField(opts) {
17
18
  get: opts.getValue,
18
19
  set: opts.setValue
19
20
  });
21
+ const isDirty = computed(() => patch ? patch.isDirtyPath(opts.path()) : false);
20
22
  watch(model, () => {
21
23
  submitError.value = void 0;
22
24
  externalError.value = void 0;
@@ -76,7 +78,8 @@ function useAsField(opts) {
76
78
  return {
77
79
  model,
78
80
  error,
79
- onBlur
81
+ onBlur,
82
+ isDirty
80
83
  };
81
84
  }
82
85
  //#endregion
@@ -381,7 +384,7 @@ var as_field_default = /* @__PURE__ */ defineComponent({
381
384
  context: formContext.value
382
385
  });
383
386
  }
384
- const { model, error: formError, onBlur: _onBlur } = useAsField({
387
+ const { model, error: formError, onBlur: _onBlur, isDirty } = useAsField({
385
388
  getValue: getModel,
386
389
  setValue: setModel,
387
390
  rules: [formRule],
@@ -479,7 +482,10 @@ var as_field_default = /* @__PURE__ */ defineComponent({
479
482
  };
480
483
  });
481
484
  return (_ctx, _cache) => {
482
- return resolvedComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(resolvedComponent.value), mergeProps({ key: 0 }, componentProps.value, { onAction: unref(handleAction) }), null, 16, ["onAction"])) : (openBlock(), createElementBlock("div", _hoisted_1, " [" + toDisplayString(unwrap(unref(label))) + "] No component for type \"" + toDisplayString(__props.field.customType ?? __props.field.type) + "\"" + toDisplayString(unref(componentName) ? ` (component "${unref(componentName)}" not supplied)` : ""), 1));
485
+ return resolvedComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(resolvedComponent.value), mergeProps({ key: 0 }, componentProps.value, {
486
+ "is-dirty": unref(isDirty),
487
+ onAction: unref(handleAction)
488
+ }), null, 16, ["is-dirty", "onAction"])) : (openBlock(), createElementBlock("div", _hoisted_1, " [" + toDisplayString(unwrap(unref(label))) + "] No component for type \"" + toDisplayString(__props.field.customType ?? __props.field.type) + "\"" + toDisplayString(unref(componentName) ? ` (component "${unref(componentName)}" not supplied)` : ""), 1));
483
489
  };
484
490
  }
485
491
  });