@c3labsbr/vuetify-elements 1.17.0 → 1.18.1
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.
- package/README.md +16 -0
- package/dist/components/molecules/ColorPaletteField.vue.d.ts +17 -0
- package/dist/components/molecules/ColorPaletteField.vue.d.ts.map +1 -0
- package/dist/components/molecules/DateTimePicker.vue.d.ts +141 -0
- package/dist/components/molecules/DateTimePicker.vue.d.ts.map +1 -0
- package/dist/components/molecules/HourField.vue.d.ts +20 -0
- package/dist/components/molecules/HourField.vue.d.ts.map +1 -0
- package/dist/components/molecules/RemoteMultipleSearchField.vue.d.ts +31 -0
- package/dist/components/molecules/RemoteMultipleSearchField.vue.d.ts.map +1 -0
- package/dist/components/molecules/RemoteSearchField.vue.d.ts +37 -0
- package/dist/components/molecules/RemoteSearchField.vue.d.ts.map +1 -0
- package/dist/components/molecules/SearchAutocomplete.vue.d.ts +1 -1
- package/dist/components/molecules/SearchAutocomplete.vue.d.ts.map +1 -1
- package/dist/components/molecules/__tests__/DateTimePicker.spec.d.ts +2 -0
- package/dist/components/molecules/__tests__/DateTimePicker.spec.d.ts.map +1 -0
- package/dist/components/molecules/__tests__/FormFieldComponents.spec.d.ts +2 -0
- package/dist/components/molecules/__tests__/FormFieldComponents.spec.d.ts.map +1 -0
- package/dist/components/molecules/__tests__/RemoteSearchField.spec.d.ts +2 -0
- package/dist/components/molecules/__tests__/RemoteSearchField.spec.d.ts.map +1 -0
- package/dist/components/organisms/FormFields.vue.d.ts +2 -0
- package/dist/components/organisms/FormFields.vue.d.ts.map +1 -1
- package/dist/components/organisms/__tests__/FormFields.spec.d.ts +2 -0
- package/dist/components/organisms/__tests__/FormFields.spec.d.ts.map +1 -0
- package/dist/components/templates/GenericForm.vue.d.ts +69 -3
- package/dist/components/templates/GenericForm.vue.d.ts.map +1 -1
- package/dist/components/templates/GenericFormFlat.vue.d.ts +51 -1
- package/dist/components/templates/GenericFormFlat.vue.d.ts.map +1 -1
- package/dist/components/templates/__tests__/GenericForm.spec.d.ts +2 -0
- package/dist/components/templates/__tests__/GenericForm.spec.d.ts.map +1 -0
- package/dist/components/templates/__tests__/GenericFormFlat.spec.d.ts +2 -0
- package/dist/components/templates/__tests__/GenericFormFlat.spec.d.ts.map +1 -0
- package/dist/components/templates/form-props.d.ts +36 -0
- package/dist/components/templates/form-props.d.ts.map +1 -1
- package/dist/composables/useAsyncAutocomplete.d.ts +1 -1
- package/dist/composables/useAsyncAutocomplete.d.ts.map +1 -1
- package/dist/helpers/__tests__/form-masks.spec.d.ts +2 -0
- package/dist/helpers/__tests__/form-masks.spec.d.ts.map +1 -0
- package/dist/helpers/__tests__/useFieldHelpers.spec.d.ts +2 -0
- package/dist/helpers/__tests__/useFieldHelpers.spec.d.ts.map +1 -0
- package/dist/helpers/form-masks.d.ts +11 -0
- package/dist/helpers/form-masks.d.ts.map +1 -0
- package/dist/index-4K5vF4Qp.js +57910 -0
- package/dist/index-_vxQgiDi.cjs +114 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/{index.es-B0B2fTi5.cjs → index.es-C5sq0zxh.cjs} +1 -1
- package/dist/{index.es-ZSH4xvYT.js → index.es-Dl_-1FM5.js} +1 -1
- package/dist/interfaces/genericForm.d.ts +6 -2
- package/dist/interfaces/genericForm.d.ts.map +1 -1
- package/dist/vuetify-elements.cjs.js +1 -1
- package/dist/vuetify-elements.css +1 -1
- package/dist/vuetify-elements.es.js +28 -21
- package/package.json +6 -2
- package/dist/index-CB-foSPY.cjs +0 -110
- 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
|
|
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,
|
|
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,CAAC,CAAC,EAAE,CAAC;IACxC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,
|
|
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,CAAC,CAAC,EAAE,CAAC;IACxC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;IACvE,YAAY,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;IAC5B,aAAa,EAAE,QAAQ,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC,CAAC;IACvB,QAAQ,CAAC,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 @@
|
|
|
1
|
+
{"version":3,"file":"form-masks.spec.d.ts","sourceRoot":"","sources":["../../../src/helpers/__tests__/form-masks.spec.ts"],"names":[],"mappings":""}
|
|
@@ -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"}
|