@c3labsbr/vuetify-elements 1.17.0 → 1.18.2

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 (55) hide show
  1. package/README.md +16 -0
  2. package/dist/components/molecules/ColorPaletteField.vue.d.ts +17 -0
  3. package/dist/components/molecules/ColorPaletteField.vue.d.ts.map +1 -0
  4. package/dist/components/molecules/DateTimePicker.vue.d.ts +141 -0
  5. package/dist/components/molecules/DateTimePicker.vue.d.ts.map +1 -0
  6. package/dist/components/molecules/HourField.vue.d.ts +20 -0
  7. package/dist/components/molecules/HourField.vue.d.ts.map +1 -0
  8. package/dist/components/molecules/RemoteMultipleSearchField.vue.d.ts +31 -0
  9. package/dist/components/molecules/RemoteMultipleSearchField.vue.d.ts.map +1 -0
  10. package/dist/components/molecules/RemoteSearchField.vue.d.ts +37 -0
  11. package/dist/components/molecules/RemoteSearchField.vue.d.ts.map +1 -0
  12. package/dist/components/molecules/SearchAutocomplete.vue.d.ts +1 -1
  13. package/dist/components/molecules/SearchAutocomplete.vue.d.ts.map +1 -1
  14. package/dist/components/molecules/__tests__/DateTimePicker.spec.d.ts +2 -0
  15. package/dist/components/molecules/__tests__/DateTimePicker.spec.d.ts.map +1 -0
  16. package/dist/components/molecules/__tests__/FormFieldComponents.spec.d.ts +2 -0
  17. package/dist/components/molecules/__tests__/FormFieldComponents.spec.d.ts.map +1 -0
  18. package/dist/components/molecules/__tests__/RemoteSearchField.spec.d.ts +2 -0
  19. package/dist/components/molecules/__tests__/RemoteSearchField.spec.d.ts.map +1 -0
  20. package/dist/components/organisms/FormFields.vue.d.ts +2 -0
  21. package/dist/components/organisms/FormFields.vue.d.ts.map +1 -1
  22. package/dist/components/organisms/__tests__/FormFields.spec.d.ts +2 -0
  23. package/dist/components/organisms/__tests__/FormFields.spec.d.ts.map +1 -0
  24. package/dist/components/templates/GenericForm.vue.d.ts +69 -3
  25. package/dist/components/templates/GenericForm.vue.d.ts.map +1 -1
  26. package/dist/components/templates/GenericFormFlat.vue.d.ts +51 -1
  27. package/dist/components/templates/GenericFormFlat.vue.d.ts.map +1 -1
  28. package/dist/components/templates/__tests__/GenericForm.spec.d.ts +2 -0
  29. package/dist/components/templates/__tests__/GenericForm.spec.d.ts.map +1 -0
  30. package/dist/components/templates/__tests__/GenericFormFlat.spec.d.ts +2 -0
  31. package/dist/components/templates/__tests__/GenericFormFlat.spec.d.ts.map +1 -0
  32. package/dist/components/templates/form-props.d.ts +36 -0
  33. package/dist/components/templates/form-props.d.ts.map +1 -1
  34. package/dist/composables/useAsyncAutocomplete.d.ts +1 -1
  35. package/dist/composables/useAsyncAutocomplete.d.ts.map +1 -1
  36. package/dist/helpers/__tests__/form-masks.spec.d.ts +2 -0
  37. package/dist/helpers/__tests__/form-masks.spec.d.ts.map +1 -0
  38. package/dist/helpers/__tests__/useFieldHelpers.spec.d.ts +2 -0
  39. package/dist/helpers/__tests__/useFieldHelpers.spec.d.ts.map +1 -0
  40. package/dist/helpers/form-masks.d.ts +11 -0
  41. package/dist/helpers/form-masks.d.ts.map +1 -0
  42. package/dist/index-InambORc.js +57912 -0
  43. package/dist/index-pD3wKtLv.cjs +114 -0
  44. package/dist/index.d.ts +7 -0
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/{index.es-ZSH4xvYT.js → index.es-DMddIcpM.js} +1 -1
  47. package/dist/{index.es-B0B2fTi5.cjs → index.es-DvZE8ua2.cjs} +1 -1
  48. package/dist/interfaces/genericForm.d.ts +6 -2
  49. package/dist/interfaces/genericForm.d.ts.map +1 -1
  50. package/dist/vuetify-elements.cjs.js +1 -1
  51. package/dist/vuetify-elements.css +1 -1
  52. package/dist/vuetify-elements.es.js +28 -21
  53. package/package.json +6 -2
  54. package/dist/index-CB-foSPY.cjs +0 -110
  55. package/dist/index-DRwKjJD6.js +0 -51439
@@ -1,3 +1,4 @@
1
+ import { PropType } from 'vue';
1
2
  import { IField } from './../../interfaces/genericForm';
2
3
  export interface IInitialData {
3
4
  [key: string]: any;
@@ -103,6 +104,41 @@ export declare const formProps: {
103
104
  required: boolean;
104
105
  default: boolean;
105
106
  };
107
+ /**
108
+ * 'live' disables the submit button until the form is valid (default);
109
+ * 'submit' validates the rules when the user submits
110
+ */
111
+ validationMode: {
112
+ type: PropType<"live" | "submit">;
113
+ required: boolean;
114
+ default: string;
115
+ };
116
+ /**
117
+ * Blocks the submit action and disables the submit button
118
+ */
119
+ disableSubmit: {
120
+ type: BooleanConstructor;
121
+ required: boolean;
122
+ default: boolean;
123
+ };
124
+ /**
125
+ * 'native' renders searchAutocomplete with a plain autocomplete (default);
126
+ * 'remote' renders the menu based remote search fields
127
+ */
128
+ searchMode: {
129
+ type: PropType<"native" | "remote">;
130
+ required: boolean;
131
+ default: string;
132
+ };
133
+ /**
134
+ * 'unmasked' keeps the digits only (default); 'masked' keeps the masked
135
+ * text in the field value and in the submitted payload
136
+ */
137
+ maskMode: {
138
+ type: PropType<"unmasked" | "masked">;
139
+ required: boolean;
140
+ default: string;
141
+ };
106
142
  };
107
143
  };
108
144
  //# sourceMappingURL=form-props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-props.d.ts","sourceRoot":"","sources":["../../../src/components/templates/form-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAExD,MAAM,WAAW,YAAY;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,eAAO,MAAM,SAAS;;;;;;;QAOlB;;WAEG;;kBAEc,MAAM,MAAM,EAAE;;;;QAI/B;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;;WAGG;;kBAEe,MAAM,YAAY;;;;QAIpC;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;WAEG;;;;;;;;;;;QAWH;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;WAEG;;;;;;;CAON,CAAC"}
1
+ {"version":3,"file":"form-props.d.ts","sourceRoot":"","sources":["../../../src/components/templates/form-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAExD,MAAM,WAAW,YAAY;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,eAAO,MAAM,SAAS;;;;;;;QAOlB;;WAEG;;kBAEc,MAAM,MAAM,EAAE;;;;QAI/B;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;;WAGG;;kBAEe,MAAM,YAAY;;;;QAIpC;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;WAEG;;;;;;;;;;;QAWH;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;;WAGG;;kBAEe,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC;;;;QAI7C;;WAEG;;;;;;QAMH;;;WAGG;;kBAEe,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC;;;;QAI/C;;;WAGG;;kBAEe,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC;;;;;CAKpD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { ModelRef, Ref } from 'vue';
2
2
  interface UseAsyncAutocompleteOptions<T, V> {
3
- searchFunction?: (query: string, context?: unknown) => Promise<T[]>;
3
+ searchFunction?: (query: string, ...args: any[]) => Promise<T[]> | T[];
4
4
  initialItems: ModelRef<T[]>;
5
5
  selectedValue: ModelRef<V | V[] | null>;
6
6
  itemValueKey?: keyof T;
@@ -1 +1 @@
1
- {"version":3,"file":"useAsyncAutocomplete.d.ts","sourceRoot":"","sources":["../../src/composables/useAsyncAutocomplete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,QAAQ,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAGpE,UAAU,2BAA2B,CAA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AAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;CACrB;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,EACzC,cAAc,EACd,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,YAAkB,EAClB,OAAO,EACP,OAAO,GACR,EAAE,2BAA2B,CAAC,CAAC,EAAE,CAAC,CAAC;;;;;EAoEnC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=form-masks.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-masks.spec.d.ts","sourceRoot":"","sources":["../../../src/helpers/__tests__/form-masks.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=useFieldHelpers.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFieldHelpers.spec.d.ts","sourceRoot":"","sources":["../../../src/helpers/__tests__/useFieldHelpers.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { IField } from '../interfaces/genericForm';
2
+ /**
3
+ * Apply a field mask the way the forms that keep the masked text in the
4
+ * model (`maskMode="masked"`) expect it.
5
+ *
6
+ * @param type - The field `maskType`
7
+ * @param value - The raw or already masked value
8
+ * @returns The masked value, or the value itself when there is no matching mask
9
+ */
10
+ export declare const applyFormMask: (type: IField["maskType"] | undefined, value: any) => any;
11
+ //# sourceMappingURL=form-masks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-masks.d.ts","sourceRoot":"","sources":["../../src/helpers/form-masks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAuDxD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,CAAC,UAAU,CAAC,GAAG,SAAS,EAAE,OAAO,GAAG,KAAG,GA+BhF,CAAC"}