@atscript/vue-form 0.1.102 → 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 (197) 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-B_LjJ0oi.mjs → as-array-BGG38Y1L.mjs} +8 -4
  10. package/dist/{as-array-DAeDxzYV.cjs → as-array-DVc9_ood.cjs} +8 -4
  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-dN1K-rJ_.mjs → as-checkbox-DwLRHmXj.mjs} +5 -1
  18. package/dist/{as-checkbox-Cva4XHFW.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-B0rlXU0x.cjs → as-collapsible-BQ-eYR0v.cjs} +2 -2
  26. package/dist/{as-collapsible-DQOxKGGj.mjs → as-collapsible-DFTzB5Ar.mjs} +2 -2
  27. package/dist/as-collapsible.cjs +1 -1
  28. package/dist/as-collapsible.d.cts +1 -18
  29. package/dist/as-collapsible.d.mts +1 -19
  30. package/dist/as-collapsible.mjs +1 -1
  31. package/dist/as-collapsible.vue-34S3TEq5.d.cts +20 -0
  32. package/dist/as-collapsible.vue-CIfMlTQ6.d.mts +20 -0
  33. package/dist/{as-date-CsBBqja_.mjs → as-date-CfCa2Kp1.mjs} +6 -2
  34. package/dist/{as-date-Cizo8gZx.cjs → as-date-hCCTd52o.cjs} +6 -2
  35. package/dist/as-date.cjs +1 -1
  36. package/dist/as-date.d.cts +1 -1
  37. package/dist/as-date.d.mts +1 -1
  38. package/dist/as-date.mjs +1 -1
  39. package/dist/{as-date.vue-BfSVrED7.d.mts → as-date.vue-BZiy1s5s.d.cts} +1 -1
  40. package/dist/{as-date.vue-SdlJH5fn.d.cts → as-date.vue-DWWoojir.d.mts} +1 -1
  41. package/dist/{as-datetime-D_Wbrj9t.mjs → as-datetime-B1I_zREk.mjs} +6 -2
  42. package/dist/{as-datetime-Cjbprmxg.cjs → as-datetime-DDlWca2Q.cjs} +6 -2
  43. package/dist/as-datetime.cjs +1 -1
  44. package/dist/as-datetime.d.cts +1 -1
  45. package/dist/as-datetime.d.mts +1 -1
  46. package/dist/as-datetime.mjs +1 -1
  47. package/dist/{as-datetime.vue-B47V1siL.d.mts → as-datetime.vue-DYEHokj_.d.cts} +1 -1
  48. package/dist/{as-datetime.vue-DUp_TDOW.d.cts → as-datetime.vue-NblA-SVE.d.mts} +1 -1
  49. package/dist/{as-decimal-DtQuZmPA.mjs → as-decimal-CQM5OfqB.mjs} +5 -1
  50. package/dist/{as-decimal-DhrdOvUQ.cjs → as-decimal-DM10ycwv.cjs} +5 -1
  51. package/dist/as-decimal.cjs +1 -1
  52. package/dist/as-decimal.d.cts +1 -1
  53. package/dist/as-decimal.d.mts +1 -1
  54. package/dist/as-decimal.mjs +1 -1
  55. package/dist/{as-decimal.vue-Bhq4C1Ix.d.cts → as-decimal.vue-BoNNIhbL.d.mts} +1 -1
  56. package/dist/{as-decimal.vue-DitPZpS_.d.mts → as-decimal.vue-D3eGMvC0.d.cts} +1 -1
  57. package/dist/{as-field-CDB-HIfz.mjs → as-field-5rz47opo.mjs} +10 -4
  58. package/dist/{as-field-shell-zeno02I1.cjs → as-field-shell-C4epFfvE.cjs} +30 -24
  59. package/dist/{as-field-shell-D0mNXfQZ.mjs → as-field-shell-DLvPV8WS.mjs} +30 -24
  60. package/dist/as-field-shell.cjs +1 -1
  61. package/dist/as-field-shell.d.cts +1 -1
  62. package/dist/as-field-shell.d.mts +1 -1
  63. package/dist/as-field-shell.mjs +1 -1
  64. package/dist/{as-field-shell.vue-Ct1ixFqc.d.cts → as-field-shell.vue-CLDHaWN0.d.cts} +1 -1
  65. package/dist/{as-field-shell.vue-K4Flr3gw.d.mts → as-field-shell.vue-DssDDSal.d.mts} +1 -1
  66. package/dist/{as-field-DGnC4dew.cjs → as-field-vktmRs-V.cjs} +10 -4
  67. package/dist/as-field.cjs +1 -1
  68. package/dist/as-field.d.cts +1 -24
  69. package/dist/as-field.d.mts +1 -25
  70. package/dist/as-field.mjs +1 -1
  71. package/dist/as-field.vue-A2cJj-Ih.d.cts +26 -0
  72. package/dist/as-field.vue-CmjIDgQ5.d.mts +26 -0
  73. package/dist/{as-form-DaAnsFVF.cjs → as-form-B4DKpAVk.cjs} +235 -11
  74. package/dist/{as-form-8YNdb-49.mjs → as-form-me0zA-52.mjs} +232 -14
  75. package/dist/as-form.cjs +1 -1
  76. package/dist/as-form.d.cts +1 -1
  77. package/dist/as-form.d.mts +1 -1
  78. package/dist/as-form.mjs +1 -1
  79. package/dist/as-form.vue-D5d1Y2ff.d.cts +1425 -0
  80. package/dist/as-form.vue-DH3phgWP.d.mts +1425 -0
  81. package/dist/{as-input-CwPkK9qR.cjs → as-input-Bp1Ltp15.cjs} +6 -2
  82. package/dist/{as-input-VOGvI31W.mjs → as-input-DF--i7kY.mjs} +6 -2
  83. package/dist/{as-input-control-BYo_dfQA.cjs → as-input-control-B7F2q99A.cjs} +4 -0
  84. package/dist/{as-input-control-Bx-isLZN.mjs → as-input-control-BofS4mCo.mjs} +4 -0
  85. package/dist/as-input.cjs +1 -1
  86. package/dist/as-input.d.cts +1 -1
  87. package/dist/as-input.d.mts +1 -1
  88. package/dist/as-input.mjs +1 -1
  89. package/dist/{as-input.vue-BHsVVncq.d.cts → as-input.vue-CCAEWqK8.d.mts} +1 -1
  90. package/dist/{as-input.vue-DgZrW4pc.d.mts → as-input.vue-Nc9Q3RPh.d.cts} +1 -1
  91. package/dist/{as-iterator-BWXIzbJF.cjs → as-iterator-Bd-bKTMY.cjs} +2 -2
  92. package/dist/{as-iterator---gxkT-L.mjs → as-iterator-BjIF-O-J.mjs} +2 -2
  93. package/dist/as-iterator.cjs +1 -1
  94. package/dist/as-iterator.d.cts +1 -20
  95. package/dist/as-iterator.d.mts +1 -21
  96. package/dist/as-iterator.mjs +1 -1
  97. package/dist/as-iterator.vue-BZeozFr-.d.cts +22 -0
  98. package/dist/as-iterator.vue-C8HW6n25.d.mts +22 -0
  99. package/dist/{as-multi-select-D7XGZS3L.cjs → as-multi-select-b1l34vP5.cjs} +5 -1
  100. package/dist/{as-multi-select-DGipqqGz.mjs → as-multi-select-mp-aM3LV.mjs} +5 -1
  101. package/dist/as-multi-select.cjs +1 -1
  102. package/dist/as-multi-select.d.cts +1 -1
  103. package/dist/as-multi-select.d.mts +1 -1
  104. package/dist/as-multi-select.mjs +1 -1
  105. package/dist/{as-multi-select.vue--bavpcN-.d.cts → as-multi-select.vue-D9mseRFm.d.cts} +1 -1
  106. package/dist/{as-multi-select.vue-rsDUkzxa.d.mts → as-multi-select.vue-DKpOsOmM.d.mts} +1 -1
  107. package/dist/{as-number-BIhBVXih.mjs → as-number-De9zTltV.mjs} +6 -2
  108. package/dist/{as-number-BQWwSipg.cjs → as-number-joydTMcJ.cjs} +6 -2
  109. package/dist/as-number.cjs +1 -1
  110. package/dist/as-number.d.cts +1 -1
  111. package/dist/as-number.d.mts +1 -1
  112. package/dist/as-number.mjs +1 -1
  113. package/dist/{as-number.vue-D2DrbnQu.d.cts → as-number.vue-CZC0-zs8.d.cts} +1 -1
  114. package/dist/{as-number.vue-Oml2y6Nt.d.mts → as-number.vue-DrvjSOdq.d.mts} +1 -1
  115. package/dist/{as-object-Dr7CttaK.mjs → as-object-CQMTYtcY.mjs} +8 -4
  116. package/dist/{as-object-BJxJJM13.cjs → as-object-DgeItRdH.cjs} +8 -4
  117. package/dist/as-object.cjs +1 -1
  118. package/dist/as-object.d.cts +1 -1
  119. package/dist/as-object.d.mts +1 -1
  120. package/dist/as-object.mjs +1 -1
  121. package/dist/{as-object.vue-BljKYrMo.d.cts → as-object.vue-BItO19fw.d.mts} +1 -1
  122. package/dist/{as-object.vue-DAq7Kha3.d.mts → as-object.vue-DbHog5M-.d.cts} +1 -1
  123. package/dist/{as-paragraph-GIGj6UgL.mjs → as-paragraph-BP3-0EY4.mjs} +4 -0
  124. package/dist/{as-paragraph-BA-c863H.cjs → as-paragraph-CPhDTH_V.cjs} +4 -0
  125. package/dist/as-paragraph.cjs +1 -1
  126. package/dist/as-paragraph.d.cts +1 -1
  127. package/dist/as-paragraph.d.mts +1 -1
  128. package/dist/as-paragraph.mjs +1 -1
  129. package/dist/{as-paragraph.vue-CBU_olev.d.mts → as-paragraph.vue-BGDpjceO.d.mts} +1 -1
  130. package/dist/{as-paragraph.vue-LxXA7VPD.d.cts → as-paragraph.vue-D36pdOoc.d.cts} +1 -1
  131. package/dist/{as-radio-CdK8gCkN.cjs → as-radio-Dlmxk1vr.cjs} +5 -1
  132. package/dist/{as-radio-DBW6XzlW.mjs → as-radio-SwpgM1xP.mjs} +5 -1
  133. package/dist/as-radio.cjs +1 -1
  134. package/dist/as-radio.d.cts +1 -1
  135. package/dist/as-radio.d.mts +1 -1
  136. package/dist/as-radio.mjs +1 -1
  137. package/dist/{as-radio.vue-Dk4nlz-d.d.cts → as-radio.vue-EfrhKcBF.d.cts} +1 -1
  138. package/dist/{as-radio.vue-TVMliE1e.d.mts → as-radio.vue-WywkI-zY.d.mts} +1 -1
  139. package/dist/{as-ref-D6zp_PIG.mjs → as-ref-8JnEuan0.mjs} +6 -2
  140. package/dist/{as-ref-BOAHVeR-.cjs → as-ref-BCpvUq8E.cjs} +6 -2
  141. package/dist/as-ref.cjs +1 -1
  142. package/dist/as-ref.d.cts +1 -1
  143. package/dist/as-ref.d.mts +1 -1
  144. package/dist/as-ref.mjs +1 -1
  145. package/dist/{as-ref.vue-CUxxGqyg.d.mts → as-ref.vue-BD_vsu7I.d.mts} +1 -1
  146. package/dist/{as-ref.vue-CnzqRblA.d.cts → as-ref.vue-Cxg-A5QR.d.cts} +1 -1
  147. package/dist/{as-select-BiS6USZW.mjs → as-select-C3ukCyGQ.mjs} +5 -1
  148. package/dist/{as-select-B2jqgF38.cjs → as-select-CtSNZXtC.cjs} +5 -1
  149. package/dist/as-select.cjs +1 -1
  150. package/dist/as-select.d.cts +1 -1
  151. package/dist/as-select.d.mts +1 -1
  152. package/dist/as-select.mjs +1 -1
  153. package/dist/{as-select.vue-CKjAg-Y2.d.mts → as-select.vue-DoAG5njV.d.mts} +1 -1
  154. package/dist/{as-select.vue-ZZtjsmcO.d.cts → as-select.vue-hd94jaH_.d.cts} +1 -1
  155. package/dist/{as-time-BN-Vc-iw.mjs → as-time-QJ9YiVj9.mjs} +6 -2
  156. package/dist/{as-time-DdQnNIQX.cjs → as-time-nAPtGL3t.cjs} +6 -2
  157. package/dist/as-time.cjs +1 -1
  158. package/dist/as-time.d.cts +1 -1
  159. package/dist/as-time.d.mts +1 -1
  160. package/dist/as-time.mjs +1 -1
  161. package/dist/{as-time.vue-BCEE4uCV.d.mts → as-time.vue-DMy_Au0C.d.cts} +1 -1
  162. package/dist/{as-time.vue-BUAvE5m3.d.cts → as-time.vue-DgW7qSAM.d.mts} +1 -1
  163. package/dist/{as-tuple-DaY_Mw-y.cjs → as-tuple-CFn7aZYt.cjs} +8 -4
  164. package/dist/{as-tuple-BUzs7nm6.mjs → as-tuple-CJXpGGKj.mjs} +8 -4
  165. package/dist/as-tuple.cjs +1 -1
  166. package/dist/as-tuple.d.cts +1 -1
  167. package/dist/as-tuple.d.mts +1 -1
  168. package/dist/as-tuple.mjs +1 -1
  169. package/dist/{as-tuple.vue-WN7k43tv.d.mts → as-tuple.vue-BDwz5FeN.d.mts} +1 -1
  170. package/dist/{as-tuple.vue-cy0ThAGl.d.cts → as-tuple.vue-DZ2Soqyw.d.cts} +1 -1
  171. package/dist/{as-union-Cz5cm7BP.cjs → as-union-BDRNBacb.cjs} +6 -2
  172. package/dist/{as-union-B5OFQLJX.mjs → as-union-DZWgGqqM.mjs} +6 -2
  173. package/dist/as-union.cjs +1 -1
  174. package/dist/as-union.d.cts +1 -1
  175. package/dist/as-union.d.mts +1 -1
  176. package/dist/as-union.mjs +1 -1
  177. package/dist/{as-union.vue-AqH35ozq.d.cts → as-union.vue-D9Mh0M3_.d.mts} +1 -1
  178. package/dist/{as-union.vue-Ew3Bany8.d.mts → as-union.vue-DQKWNuhd.d.cts} +1 -1
  179. package/dist/index.cjs +28 -27
  180. package/dist/index.d.cts +24 -996
  181. package/dist/index.d.mts +24 -996
  182. package/dist/index.mjs +28 -28
  183. package/dist/{types-CV9ss4UN.d.mts → types-B8aPXWL5.d.cts} +13 -0
  184. package/dist/{types-BYfe1QEF.d.cts → types-nuUi10Kl.d.mts} +13 -0
  185. package/dist/{use-as-date-XLE8HBbo.mjs → use-as-date-B6RGkjjB.mjs} +4 -0
  186. package/dist/{use-as-date-DY8b1_V4.cjs → use-as-date-CslHBPmQ.cjs} +4 -0
  187. package/dist/{use-as-optional-add-flow-C85F2VoU.cjs → use-as-optional-add-flow-BXKiK1Kb.cjs} +1 -1
  188. package/dist/{use-as-optional-add-flow-CQctXLZI.mjs → use-as-optional-add-flow-B_gr8sX-.mjs} +1 -1
  189. package/dist/{use-form-context-bAj7UoSe.mjs → use-form-context-D6J1WTyG.mjs} +2 -1
  190. package/dist/{use-form-context-Dwr8Ai1v.cjs → use-form-context-DpGiGUvJ.cjs} +7 -0
  191. package/package.json +6 -6
  192. package/dist/as-form.vue-5FyX_1CQ.d.cts +0 -239
  193. package/dist/as-form.vue-ZykHT4gZ.d.mts +0 -239
  194. /package/dist/{use-as-nested-sections-store-jdMRxjBE.cjs → use-as-nested-sections-store--E0Ijpt5.cjs} +0 -0
  195. /package/dist/{use-as-nested-sections-store-lhi0z5z1.mjs → use-as-nested-sections-store-DVRmG7V0.mjs} +0 -0
  196. /package/dist/{use-as-value-help-uANI3zWa.cjs → use-as-value-help-BsAriqCI.cjs} +0 -0
  197. /package/dist/{use-as-value-help-CBykDEjZ.mjs → use-as-value-help-DrISSxCz.mjs} +0 -0
@@ -1,239 +0,0 @@
1
- import { n as TAsChangeType, o as TAsComponentProps, s as TAsTypeComponents } from "./types-CV9ss4UN.mjs";
2
- import * as vue from "vue";
3
- import { Component } from "vue";
4
- import { ClientFactory, FormDef } from "@atscript/ui";
5
-
6
- //#region src/composables/types.d.ts
7
- type TFormRule<TValue, TFormData, TContext> = (v: TValue, data?: TFormData, context?: TContext) => boolean | string;
8
- interface TFormFieldCallbacks {
9
- validate: () => boolean | string;
10
- clearErrors: () => void;
11
- reset: () => void;
12
- setExternalError: (msg?: string) => void;
13
- }
14
- interface TFormFieldRegistration {
15
- path: () => string;
16
- callbacks: TFormFieldCallbacks;
17
- }
18
- interface TFormState {
19
- firstSubmitHappened: boolean;
20
- firstValidation: "on-change" | "touched-on-blur" | "on-blur" | "on-submit" | "none";
21
- /**
22
- * Fields registered AFTER `firstSubmitHappened` flipped to true. They stay
23
- * in this set until either the user edits the field (model watch removes
24
- * the id) or the next submit fires (set is cleared). Live validation is
25
- * suppressed for these fields so a freshly-added array item doesn't render
26
- * red required-field errors before the user has had a chance to type.
27
- */
28
- freshFields: Set<symbol>;
29
- register: (id: symbol, registration: TFormFieldRegistration) => void;
30
- unregister: (id: symbol) => void;
31
- }
32
- //#endregion
33
- //#region src/components/as-form.vue.d.ts
34
- interface Props<TF, TC> {
35
- def: FormDef;
36
- formData?: TF;
37
- formContext?: TC;
38
- firstValidation?: TFormState["firstValidation"];
39
- components?: Record<string, Component<TAsComponentProps>>;
40
- /**
41
- * Type-to-component map for field rendering. Maps field types to Vue components.
42
- * Must include entries for all built-in field types. Use `createDefaultTypes()`
43
- * for a pre-filled map, or supply your own.
44
- */
45
- types: TAsTypeComponents;
46
- errors?: Record<string, string | undefined>;
47
- /**
48
- * Per-form client factory override. Creates `Client` instances from URL paths
49
- * for FK value-help pickers inside this form. Falls back to the app-wide
50
- * default (`setDefaultClientFactory`) and then to the built-in `new Client(url)`
51
- * factory when unset.
52
- */
53
- clientFactory?: ClientFactory;
54
- /**
55
- * Suppress the root field's title rendering. Use when the form is mounted
56
- * inside a chrome that already shows the form's `@meta.label` (e.g. a
57
- * dialog header). Nested fields keep their own headings.
58
- */
59
- hideRootTitle?: boolean;
60
- /**
61
- * Suppress the default submit button. Use when the host chrome owns the
62
- * submit affordance (e.g. a dialog footer with its own submit button
63
- * wired via HTML5 `<button form="...">`). Vue 3 treats an empty
64
- * `<template #form.submit />` as "slot not provided" and falls back to
65
- * the default button — this prop is the explicit way to skip it.
66
- */
67
- hideSubmit?: boolean;
68
- /**
69
- * When true, freezes the form: the body becomes `inert` (blocks pointer
70
- * events + keyboard focus) and a loading overlay paints over the entire
71
- * form area. Used by `<AsWfForm>` to lock interaction during a server
72
- * round-trip so the user can't edit a field whose response is racing in.
73
- * Visual is shared with `<AsTable>`'s query overlay via vunor
74
- * `inner-loading`.
75
- */
76
- loading?: boolean;
77
- }
78
- 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<{
79
- props: vue.PublicProps & __VLS_PrettifyLocal<Props<TFormData, TFormContext> & {
80
- onSubmit?: ((data: TFormData) => any) | undefined;
81
- onError?: ((errors: {
82
- path: string;
83
- message: string;
84
- }[]) => any) | undefined;
85
- onAction?: ((name: string, data: TFormData) => any) | undefined;
86
- "onUnsupported-action"?: ((name: string, data: TFormData) => any) | undefined;
87
- onChange?: ((type: TAsChangeType, path: string, value: unknown, formData: TFormData) => any) | undefined;
88
- }> & (typeof globalThis extends {
89
- __VLS_PROPS_FALLBACK: infer P;
90
- } ? P : {});
91
- expose: (exposed: {}) => void;
92
- attrs: any;
93
- slots: {
94
- 'form.header'?: (props: {
95
- title: string | undefined;
96
- description: string | undefined;
97
- data: TFormData;
98
- errors: Record<string, string | undefined> | undefined;
99
- formError: string | undefined;
100
- disabled: boolean;
101
- loading: boolean;
102
- submitText: string;
103
- submit: () => void;
104
- reset: () => Promise<void>;
105
- clearErrors: () => void;
106
- setErrors: (errors: Record<string, string>) => void;
107
- dismissError: (path: string) => void;
108
- dismissFormError: () => void;
109
- formContext: TFormContext | undefined;
110
- }) => any;
111
- } & {
112
- 'form.before'?: (props: {
113
- title: string | undefined;
114
- description: string | undefined;
115
- data: TFormData;
116
- errors: Record<string, string | undefined> | undefined;
117
- formError: string | undefined;
118
- disabled: boolean;
119
- loading: boolean;
120
- submitText: string;
121
- submit: () => void;
122
- reset: () => Promise<void>;
123
- clearErrors: () => void;
124
- setErrors: (errors: Record<string, string>) => void;
125
- dismissError: (path: string) => void;
126
- dismissFormError: () => void;
127
- formContext: TFormContext | undefined;
128
- }) => any;
129
- } & {
130
- 'form.after'?: (props: {
131
- title: string | undefined;
132
- description: string | undefined;
133
- data: TFormData;
134
- errors: Record<string, string | undefined> | undefined;
135
- formError: string | undefined;
136
- disabled: boolean;
137
- loading: boolean;
138
- submitText: string;
139
- submit: () => void;
140
- reset: () => Promise<void>;
141
- clearErrors: () => void;
142
- setErrors: (errors: Record<string, string>) => void;
143
- dismissError: (path: string) => void;
144
- dismissFormError: () => void;
145
- formContext: TFormContext | undefined;
146
- }) => any;
147
- } & {
148
- 'form.error'?: (props: {
149
- message: string;
150
- dismiss: () => void;
151
- title: string | undefined;
152
- description: string | undefined;
153
- data: TFormData;
154
- errors: Record<string, string | undefined> | undefined;
155
- formError: string | undefined;
156
- disabled: boolean;
157
- loading: boolean;
158
- submitText: string;
159
- submit: () => void;
160
- reset: () => Promise<void>;
161
- clearErrors: () => void;
162
- setErrors: (errors: Record<string, string>) => void;
163
- dismissError: (path: string) => void;
164
- dismissFormError: () => void;
165
- formContext: TFormContext | undefined;
166
- }) => any;
167
- } & {
168
- 'form.submit'?: (props: {
169
- text: string;
170
- title: string | undefined;
171
- description: string | undefined;
172
- data: TFormData;
173
- errors: Record<string, string | undefined> | undefined;
174
- formError: string | undefined;
175
- disabled: boolean;
176
- loading: boolean;
177
- submitText: string;
178
- submit: () => void;
179
- reset: () => Promise<void>;
180
- clearErrors: () => void;
181
- setErrors: (errors: Record<string, string>) => void;
182
- dismissError: (path: string) => void;
183
- dismissFormError: () => void;
184
- formContext: TFormContext | undefined;
185
- }) => any;
186
- } & {
187
- 'form.footer'?: (props: {
188
- title: string | undefined;
189
- description: string | undefined;
190
- data: TFormData;
191
- errors: Record<string, string | undefined> | undefined;
192
- formError: string | undefined;
193
- disabled: boolean;
194
- loading: boolean;
195
- submitText: string;
196
- submit: () => void;
197
- reset: () => Promise<void>;
198
- clearErrors: () => void;
199
- setErrors: (errors: Record<string, string>) => void;
200
- dismissError: (path: string) => void;
201
- dismissFormError: () => void;
202
- formContext: TFormContext | undefined;
203
- }) => any;
204
- } & {
205
- 'form.loading'?: (props: {
206
- title: string | undefined;
207
- description: string | undefined;
208
- data: TFormData;
209
- errors: Record<string, string | undefined> | undefined;
210
- formError: string | undefined;
211
- disabled: boolean;
212
- loading: boolean;
213
- submitText: string;
214
- submit: () => void;
215
- reset: () => Promise<void>;
216
- clearErrors: () => void;
217
- setErrors: (errors: Record<string, string>) => void;
218
- dismissError: (path: string) => void;
219
- dismissFormError: () => void;
220
- formContext: TFormContext | undefined;
221
- }) => any;
222
- };
223
- emit: {
224
- (e: "submit", data: TFormData): void;
225
- (e: "error", errors: {
226
- path: string;
227
- message: string;
228
- }[]): void;
229
- (e: "action", name: string, data: TFormData): void;
230
- (e: "unsupported-action", name: string, data: TFormData): void;
231
- (e: "change", type: TAsChangeType, path: string, value: unknown, formData: TFormData): void;
232
- };
233
- }>) => vue.VNode & {
234
- __ctx?: Awaited<typeof __VLS_setup>;
235
- };
236
- declare const _default: typeof __VLS_export;
237
- type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
238
- //#endregion
239
- export { TFormRule as a, TFormFieldRegistration as i, _default as n, TFormState as o, TFormFieldCallbacks as r, Props as t };