@formatica/vue 0.1.2 → 0.2.3

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 (97) hide show
  1. package/README.md +280 -24
  2. package/dist/components/BaseField.d.ts +28 -0
  3. package/dist/components/BaseField.d.ts.map +1 -0
  4. package/dist/components/FormBuilder.d.ts +25 -0
  5. package/dist/components/FormBuilder.d.ts.map +1 -0
  6. package/dist/components/FormField.d.ts +6 -0
  7. package/dist/components/FormField.d.ts.map +1 -0
  8. package/dist/components/inputs/CheckboxGroupInput.d.ts +21 -0
  9. package/dist/components/inputs/CheckboxGroupInput.d.ts.map +1 -0
  10. package/dist/components/inputs/CheckboxInput.d.ts +16 -0
  11. package/dist/components/inputs/CheckboxInput.d.ts.map +1 -0
  12. package/dist/components/inputs/DateInput.d.ts +22 -0
  13. package/dist/components/inputs/DateInput.d.ts.map +1 -0
  14. package/dist/components/inputs/FileInput.d.ts +22 -0
  15. package/dist/components/inputs/FileInput.d.ts.map +1 -0
  16. package/dist/components/inputs/NumberInput.d.ts +26 -0
  17. package/dist/components/inputs/NumberInput.d.ts.map +1 -0
  18. package/dist/components/inputs/PhoneInput.d.ts +23 -0
  19. package/dist/components/inputs/PhoneInput.d.ts.map +1 -0
  20. package/dist/components/inputs/RadioInput.d.ts +19 -0
  21. package/dist/components/inputs/RadioInput.d.ts.map +1 -0
  22. package/dist/components/inputs/SelectInput.d.ts +29 -0
  23. package/dist/components/inputs/SelectInput.d.ts.map +1 -0
  24. package/dist/components/inputs/SliderInput.d.ts +23 -0
  25. package/dist/components/inputs/SliderInput.d.ts.map +1 -0
  26. package/dist/components/inputs/SwitchInput.d.ts +17 -0
  27. package/dist/components/inputs/SwitchInput.d.ts.map +1 -0
  28. package/dist/components/inputs/TagsInput.d.ts +24 -0
  29. package/dist/components/inputs/TagsInput.d.ts.map +1 -0
  30. package/dist/components/inputs/TextInput.d.ts +27 -0
  31. package/dist/components/inputs/TextInput.d.ts.map +1 -0
  32. package/dist/components/inputs/TextareaInput.d.ts +28 -0
  33. package/dist/components/inputs/TextareaInput.d.ts.map +1 -0
  34. package/dist/components/layout/FormDivider.d.ts +7 -0
  35. package/dist/components/layout/FormDivider.d.ts.map +1 -0
  36. package/dist/components/layout/FormGroup.d.ts +15 -0
  37. package/dist/components/layout/FormGroup.d.ts.map +1 -0
  38. package/dist/components/layout/FormHtml.d.ts +7 -0
  39. package/dist/components/layout/FormHtml.d.ts.map +1 -0
  40. package/dist/components/layout/FormRow.d.ts +12 -0
  41. package/dist/components/layout/FormRow.d.ts.map +1 -0
  42. package/dist/components/layout/FormSteps.d.ts +11 -0
  43. package/dist/components/layout/FormSteps.d.ts.map +1 -0
  44. package/dist/components/layout/FormTabs.d.ts +8 -0
  45. package/dist/components/layout/FormTabs.d.ts.map +1 -0
  46. package/dist/components/layout/LayoutRenderer.d.ts +8 -0
  47. package/dist/components/layout/LayoutRenderer.d.ts.map +1 -0
  48. package/dist/core/eventBus.d.ts +9 -0
  49. package/dist/core/eventBus.d.ts.map +1 -0
  50. package/dist/core/fieldRegistry.d.ts +24 -0
  51. package/dist/core/fieldRegistry.d.ts.map +1 -0
  52. package/dist/core/ruleRegistry.d.ts +2 -0
  53. package/dist/core/ruleRegistry.d.ts.map +1 -0
  54. package/dist/core/schemaParser.d.ts +4 -0
  55. package/dist/core/schemaParser.d.ts.map +1 -0
  56. package/dist/core/useConditions.d.ts +2 -0
  57. package/dist/core/useConditions.d.ts.map +1 -0
  58. package/dist/core/useForm.d.ts +10 -0
  59. package/dist/core/useForm.d.ts.map +1 -0
  60. package/dist/core/useFormI18n.d.ts +22 -0
  61. package/dist/core/useFormI18n.d.ts.map +1 -0
  62. package/dist/core/useTheme.d.ts +28 -0
  63. package/dist/core/useTheme.d.ts.map +1 -0
  64. package/dist/core/useValidation.d.ts +17 -0
  65. package/dist/core/useValidation.d.ts.map +1 -0
  66. package/dist/formatica.es.js +1230 -1193
  67. package/dist/formatica.es.js.map +1 -1
  68. package/dist/formatica.umd.cjs +1 -1
  69. package/dist/formatica.umd.cjs.map +1 -1
  70. package/dist/index.d.ts +12 -0
  71. package/dist/index.d.ts.map +1 -0
  72. package/dist/plugin.d.ts +11 -0
  73. package/dist/plugin.d.ts.map +1 -0
  74. package/dist/style.css +60 -47
  75. package/dist/types/form.d.ts +92 -0
  76. package/dist/types/form.d.ts.map +1 -0
  77. package/dist/types/i18n.d.ts +18 -0
  78. package/dist/types/i18n.d.ts.map +1 -0
  79. package/dist/types/index.d.ts +7 -0
  80. package/dist/types/index.d.ts.map +1 -0
  81. package/dist/types/layout.d.ts +76 -0
  82. package/dist/types/layout.d.ts.map +1 -0
  83. package/dist/types/schema.d.ts +252 -0
  84. package/dist/types/schema.d.ts.map +1 -0
  85. package/dist/types/theme.d.ts +69 -0
  86. package/dist/types/theme.d.ts.map +1 -0
  87. package/dist/types/validation.d.ts +26 -0
  88. package/dist/types/validation.d.ts.map +1 -0
  89. package/dist/utils/deepMerge.d.ts +2 -0
  90. package/dist/utils/deepMerge.d.ts.map +1 -0
  91. package/dist/utils/extractFields.d.ts +2 -0
  92. package/dist/utils/extractFields.d.ts.map +1 -0
  93. package/dist/utils/sanitize.d.ts +2 -0
  94. package/dist/utils/sanitize.d.ts.map +1 -0
  95. package/dist/utils/titleCase.d.ts +2 -0
  96. package/dist/utils/titleCase.d.ts.map +1 -0
  97. package/package.json +4 -2
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ modelValue: number;
3
+ min?: number;
4
+ max?: number;
5
+ step?: number;
6
+ showTooltip?: boolean;
7
+ disabled?: boolean;
8
+ };
9
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ "update:modelValue": (value: number) => any;
11
+ blur: (event: FocusEvent) => any;
12
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
14
+ onBlur?: ((event: FocusEvent) => any) | undefined;
15
+ }>, {
16
+ min: number;
17
+ max: number;
18
+ disabled: boolean;
19
+ step: number;
20
+ showTooltip: boolean;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
22
+ export default _default;
23
+ //# sourceMappingURL=SliderInput.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SliderInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/SliderInput.vue"],"names":[],"mappings":"AA0FI,KAAK,WAAW,GAAG;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;;;;;;;;SALQ,MAAM;SACN,MAAM;cAGD,OAAO;UAFX,MAAM;iBACC,OAAO;;AAyIjC,wBASG"}
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ modelValue: boolean;
3
+ activeLabel?: string;
4
+ inactiveLabel?: string;
5
+ disabled?: boolean;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ "update:modelValue": (value: boolean) => any;
9
+ blur: (event: FocusEvent) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
12
+ onBlur?: ((event: FocusEvent) => any) | undefined;
13
+ }>, {
14
+ disabled: boolean;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
16
+ export default _default;
17
+ //# sourceMappingURL=SwitchInput.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwitchInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/SwitchInput.vue"],"names":[],"mappings":"AAkFI,KAAK,WAAW,GAAG;IACX,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;;;;;;;;cADa,OAAO;;AA4H9B,wBASG"}
@@ -0,0 +1,24 @@
1
+ type __VLS_Props = {
2
+ modelValue: string[] | null;
3
+ maxTags?: number;
4
+ suggestions?: string[];
5
+ placeholder?: string;
6
+ disabled?: boolean;
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: string[]) => any;
10
+ blur: (event: FocusEvent) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
13
+ onBlur?: ((event: FocusEvent) => any) | undefined;
14
+ }>, {
15
+ placeholder: string;
16
+ disabled: boolean;
17
+ suggestions: string[];
18
+ modelValue: string[] | null;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
20
+ containerRef: HTMLDivElement;
21
+ inputRef: HTMLInputElement;
22
+ }, HTMLDivElement>;
23
+ export default _default;
24
+ //# sourceMappingURL=TagsInput.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagsInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/TagsInput.vue"],"names":[],"mappings":"AAmMI,KAAK,WAAW,GAAG;IACX,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;;;;;;;;iBAFgB,MAAM;cACT,OAAO;iBAFJ,MAAM,EAAE;gBAFV,MAAM,EAAE,GAAG,IAAI;;;;;AA8PvC,wBAUG"}
@@ -0,0 +1,27 @@
1
+ type __VLS_Props = {
2
+ modelValue: string;
3
+ inputType?: "text" | "email" | "password" | "url" | "tel";
4
+ placeholder?: string;
5
+ maxLength?: number;
6
+ prefix?: string;
7
+ suffix?: string;
8
+ disabled?: boolean;
9
+ readonly?: boolean;
10
+ mask?: string;
11
+ };
12
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ focus: (event: FocusEvent) => any;
14
+ "update:modelValue": (value: string) => any;
15
+ blur: (event: FocusEvent) => any;
16
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
17
+ onFocus?: ((event: FocusEvent) => any) | undefined;
18
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
19
+ onBlur?: ((event: FocusEvent) => any) | undefined;
20
+ }>, {
21
+ placeholder: string;
22
+ inputType: "text" | "email" | "password" | "url" | "tel";
23
+ disabled: boolean;
24
+ readonly: boolean;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ export default _default;
27
+ //# sourceMappingURL=TextInput.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/TextInput.vue"],"names":[],"mappings":"AA8GI,KAAK,WAAW,GAAG;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,KAAK,CAAC;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;;;;;;;;;;iBAPgB,MAAM;eADR,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,KAAK;cAK9C,OAAO;cACP,OAAO;;AAwJ9B,wBAQG"}
@@ -0,0 +1,28 @@
1
+ type __VLS_Props = {
2
+ modelValue: string;
3
+ rows?: number;
4
+ autoResize?: boolean;
5
+ maxLength?: number;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ readonly?: boolean;
9
+ };
10
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ focus: (event: FocusEvent) => any;
12
+ "update:modelValue": (value: string) => any;
13
+ blur: (event: FocusEvent) => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onFocus?: ((event: FocusEvent) => any) | undefined;
16
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
17
+ onBlur?: ((event: FocusEvent) => any) | undefined;
18
+ }>, {
19
+ placeholder: string;
20
+ disabled: boolean;
21
+ rows: number;
22
+ autoResize: boolean;
23
+ readonly: boolean;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
25
+ textareaRef: HTMLTextAreaElement;
26
+ }, HTMLTextAreaElement>;
27
+ export default _default;
28
+ //# sourceMappingURL=TextareaInput.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextareaInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/TextareaInput.vue"],"names":[],"mappings":"AAkGI,KAAK,WAAW,GAAG;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;;;;;;;;;;iBAHgB,MAAM;cACT,OAAO;UAJX,MAAM;gBACA,OAAO;cAIT,OAAO;;;;AAoI9B,wBAUG"}
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ label?: string;
3
+ className?: string;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
6
+ export default _default;
7
+ //# sourceMappingURL=FormDivider.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormDivider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layout/FormDivider.vue"],"names":[],"mappings":"AAwBI,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;;AA0DN,wBAOG"}
@@ -0,0 +1,15 @@
1
+ import { SchemaNode } from '../../types/schema';
2
+ type __VLS_Props = {
3
+ title?: string;
4
+ description?: string;
5
+ collapsible?: boolean;
6
+ collapsed?: boolean;
7
+ children: SchemaNode[];
8
+ className?: string;
9
+ };
10
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
+ collapsible: boolean;
12
+ collapsed: boolean;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
14
+ export default _default;
15
+ //# sourceMappingURL=FormGroup.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layout/FormGroup.vue"],"names":[],"mappings":"AAwGI,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGrD,KAAK,WAAW,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;;iBAJgB,OAAO;eACT,OAAO;;AAuK/B,wBAQG"}
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ content: string;
3
+ className?: string;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
6
+ export default _default;
7
+ //# sourceMappingURL=FormHtml.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormHtml.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layout/FormHtml.vue"],"names":[],"mappings":"AAuBI,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;;AA6CN,wBAOG"}
@@ -0,0 +1,12 @@
1
+ import { SchemaNode } from '../../types/schema';
2
+ type __VLS_Props = {
3
+ children: SchemaNode[];
4
+ gap?: string | number;
5
+ align?: "start" | "center" | "end" | "stretch";
6
+ className?: string;
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ align: "start" | "center" | "end" | "stretch";
10
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
11
+ export default _default;
12
+ //# sourceMappingURL=FormRow.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormRow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layout/FormRow.vue"],"names":[],"mappings":"AA6CI,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGrD,KAAK,WAAW,GAAG;IACX,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;;WAFU,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS;;AAiF1D,wBAQG"}
@@ -0,0 +1,11 @@
1
+ import { StepNodeItem } from '../../types/schema';
2
+ type __VLS_Props = {
3
+ steps: StepNodeItem[];
4
+ linear?: boolean;
5
+ className?: string;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
+ linear: boolean;
9
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
10
+ export default _default;
11
+ //# sourceMappingURL=FormSteps.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormSteps.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layout/FormSteps.vue"],"names":[],"mappings":"AA4MI,OAAO,KAAK,EAAc,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAInE,KAAK,WAAW,GAAG;IACX,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;;YAFW,OAAO;;AAsQ5B,wBAQG"}
@@ -0,0 +1,8 @@
1
+ import { TabNodeItem } from '../../types/schema';
2
+ type __VLS_Props = {
3
+ tabs: TabNodeItem[];
4
+ className?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
7
+ export default _default;
8
+ //# sourceMappingURL=FormTabs.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormTabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layout/FormTabs.vue"],"names":[],"mappings":"AA2HI,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,WAAW,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;;AA6KN,wBAOG"}
@@ -0,0 +1,8 @@
1
+ import { LayoutNode } from '../../types/layout';
2
+ import { SchemaNode } from '../../types/schema';
3
+ type __VLS_Props = {
4
+ nodes: SchemaNode[] | LayoutNode[];
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
8
+ //# sourceMappingURL=LayoutRenderer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LayoutRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layout/LayoutRenderer.vue"],"names":[],"mappings":"AA2HI,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAUrD,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,UAAU,EAAE,GAAG,UAAU,EAAE,CAAC;CACtC,CAAC;;AAkNN,wBAMG"}
@@ -0,0 +1,9 @@
1
+ import { FormEventName, FormEventPayloadMap } from '../types/form';
2
+ type EventHandler<E extends FormEventName> = (payload: FormEventPayloadMap[E]) => void;
3
+ export interface EventBus {
4
+ on: <E extends FormEventName>(event: E, handler: EventHandler<E>) => () => void;
5
+ emit: <E extends FormEventName>(event: E, payload: FormEventPayloadMap[E]) => void;
6
+ }
7
+ export declare function createEventBus(): EventBus;
8
+ export {};
9
+ //# sourceMappingURL=eventBus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventBus.d.ts","sourceRoot":"","sources":["../../src/core/eventBus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAExE,KAAK,YAAY,CAAC,CAAC,SAAS,aAAa,IAAI,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAEvF,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,CAAC,CAAC,SAAS,aAAa,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,MAAM,IAAI,CAAC;IAChF,IAAI,EAAE,CAAC,CAAC,SAAS,aAAa,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CACtF;AAED,wBAAgB,cAAc,IAAI,QAAQ,CAyBzC"}
@@ -0,0 +1,24 @@
1
+ import { Component, ComputedRef, InjectionKey } from 'vue';
2
+ export declare const FormComponentsKey: InjectionKey<ComputedRef<Record<string, Component>>>;
3
+ /**
4
+ * Register a Vue component for a given field type.
5
+ * If a component is already registered for that type, it will be replaced.
6
+ */
7
+ export declare function registerFieldType(type: string, component: Component): void;
8
+ /**
9
+ * Unregister a field type component.
10
+ */
11
+ export declare function unregisterFieldType(type: string): void;
12
+ /**
13
+ * Retrieve the component registered for a given field type.
14
+ */
15
+ export declare function getFieldComponent(type: string): Component | undefined;
16
+ /**
17
+ * Check whether a component is registered for a given field type.
18
+ */
19
+ export declare function hasFieldType(type: string): boolean;
20
+ /**
21
+ * Return all registered field type names.
22
+ */
23
+ export declare function getRegisteredFieldTypes(): string[];
24
+ //# sourceMappingURL=fieldRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldRegistry.d.ts","sourceRoot":"","sources":["../../src/core/fieldRegistry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AAMhE,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAClD,CAAC;AAQlC;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI,CAE1E;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAEtD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAErE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAElD;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,EAAE,CAElD"}
@@ -0,0 +1,2 @@
1
+ export { getRule, hasRule, registerRule, unregisterRule } from '@formatica/core';
2
+ //# sourceMappingURL=ruleRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ruleRegistry.d.ts","sourceRoot":"","sources":["../../src/core/ruleRegistry.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { parseFormSchema as coreParseFormSchema, SchemaValidationError } from '@formatica/core';
2
+ export { SchemaValidationError };
3
+ export declare const parseFormSchema: typeof coreParseFormSchema;
4
+ //# sourceMappingURL=schemaParser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemaParser.d.ts","sourceRoot":"","sources":["../../src/core/schemaParser.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,eAAe,IAAI,mBAAmB,EACtC,qBAAqB,EAExB,MAAM,iBAAiB,CAAC;AAOzB,OAAO,EAAE,qBAAqB,EAAE,CAAC;AACjC,eAAO,MAAM,eAAe,4BAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { evaluateCondition } from '@formatica/core';
2
+ //# sourceMappingURL=useConditions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConditions.d.ts","sourceRoot":"","sources":["../../src/core/useConditions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { FormSchema } from '@formatica/core';
2
+ import { InjectionKey } from 'vue';
3
+ import { FormInstance } from '../types/form';
4
+ export declare const FormContextKey: InjectionKey<FormInstance>;
5
+ export interface UseFormOptions {
6
+ locale?: string;
7
+ fallbackLocale?: string;
8
+ }
9
+ export declare function useForm(schema: FormSchema, options?: UseFormOptions): FormInstance;
10
+ //# sourceMappingURL=useForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../src/core/useForm.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAkC,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElF,OAAO,EAAY,KAAK,YAAY,EAAiC,MAAM,KAAK,CAAC;AACjF,OAAO,KAAK,EAA8B,YAAY,EAAiB,MAAM,eAAe,CAAC;AAS7F,eAAO,MAAM,cAAc,EAAE,YAAY,CAAC,YAAY,CAA8B,CAAC;AAMrF,MAAM,WAAW,cAAc;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AA8CD,wBAAgB,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,YAAY,CAoQlF"}
@@ -0,0 +1,22 @@
1
+ import { FieldTranslations, FormTranslations } from '@formatica/core';
2
+ import { InjectionKey, Ref } from 'vue';
3
+ export declare const FormI18nKey: InjectionKey<FormI18nInstance>;
4
+ export interface FormI18nInstance {
5
+ locale: Ref<string>;
6
+ fallbackLocale: string;
7
+ t: (field: string, key: string) => string;
8
+ tOption: (field: string, optionValue: string) => string;
9
+ tValidation: (ruleName: string, params?: Record<string, unknown>) => string;
10
+ }
11
+ export interface UseFormI18nOptions {
12
+ locale: Ref<string>;
13
+ fallbackLocale?: string;
14
+ fieldTranslations?: Record<string, FieldTranslations>;
15
+ formTranslations?: FormTranslations;
16
+ }
17
+ export declare function useFormI18n(options: UseFormI18nOptions): FormI18nInstance;
18
+ /**
19
+ * Inject the i18n instance provided by a parent useFormI18n call.
20
+ */
21
+ export declare function useFormI18nContext(): FormI18nInstance | undefined;
22
+ //# sourceMappingURL=useFormI18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFormI18n.d.ts","sourceRoot":"","sources":["../../src/core/useFormI18n.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAE3E,OAAO,EAAE,KAAK,YAAY,EAAmB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAMnE,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,gBAAgB,CAA2B,CAAC;AAMnF,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,MAAM,CAAC;IACxD,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC;CAC/E;AAED,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACtD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACvC;AA4BD,wBAAgB,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,gBAAgB,CAiFzE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,gBAAgB,GAAG,SAAS,CAEjE"}
@@ -0,0 +1,28 @@
1
+ import { ThemeConfig } from '@formatica/core';
2
+ import { ComputedRef, InjectionKey, Ref } from 'vue';
3
+ export declare const FormThemeKey: InjectionKey<ThemeInstance>;
4
+ export interface ThemeClasses {
5
+ form: string;
6
+ field: string;
7
+ label: string;
8
+ input: string;
9
+ error: string;
10
+ helpText: string;
11
+ group: string;
12
+ row: string;
13
+ steps: string;
14
+ tabs: string;
15
+ button: string;
16
+ }
17
+ export interface ThemeInstance {
18
+ config: ThemeConfig;
19
+ classes: ComputedRef<ThemeClasses>;
20
+ cssVars: ComputedRef<Record<string, string>>;
21
+ }
22
+ export declare function useTheme(config?: ThemeConfig | Ref<ThemeConfig | undefined>): ThemeInstance;
23
+ /**
24
+ * Inject the theme instance provided by a parent useTheme call.
25
+ * Falls back to default theme classes if no provider exists.
26
+ */
27
+ export declare function useThemeClasses(): ThemeInstance;
28
+ //# sourceMappingURL=useTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/core/useTheme.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EACH,KAAK,WAAW,EAEhB,KAAK,YAAY,EAIjB,KAAK,GAAG,EAEX,MAAM,KAAK,CAAC;AAMb,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,aAAa,CAA4B,CAAC;AAMlF,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IACnC,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAChD;AA+DD,wBAAgB,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC,GAAG,aAAa,CAwE3F;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,aAAa,CAK/C"}
@@ -0,0 +1,17 @@
1
+ import { FieldSchema, FormSettings } from '@formatica/core';
2
+ import { Ref } from 'vue';
3
+ import { FormContext } from '../types/form';
4
+ export interface UseValidationOptions {
5
+ fields: Ref<FieldSchema[]>;
6
+ values: Ref<Record<string, unknown>>;
7
+ settings?: FormSettings;
8
+ }
9
+ export interface UseValidationReturn {
10
+ errors: Ref<Record<string, string[]>>;
11
+ validateField: (name: string, ctx: FormContext) => Promise<string[]>;
12
+ validateAll: (ctx: FormContext) => Promise<Record<string, string[]>>;
13
+ clearFieldErrors: (name: string) => void;
14
+ clearAllErrors: () => void;
15
+ }
16
+ export declare function useValidation(options: UseValidationOptions): UseValidationReturn;
17
+ //# sourceMappingURL=useValidation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useValidation.d.ts","sourceRoot":"","sources":["../../src/core/useValidation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAkB,MAAM,iBAAiB,CAAC;AAEjF,OAAO,EAAE,KAAK,GAAG,EAAO,MAAM,KAAK,CAAC;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AA6FjD,MAAM,WAAW,oBAAoB;IACjC,MAAM,EAAE,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;IAC3B,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACrC,QAAQ,CAAC,EAAE,YAAY,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAmB;IAChC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IACtC,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACrE,WAAW,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IACrE,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,cAAc,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,mBAAmB,CA+GhF"}