@c3labsbr/vuetify-elements 1.16.2 → 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 +34 -0
- package/dist/components/atoms/CInput/CInput.vue.d.ts +16 -16
- package/dist/components/atoms/CInput/CInputNumber.vue.d.ts +1783 -1923
- package/dist/components/atoms/CInput/CInputNumber.vue.d.ts.map +1 -1
- package/dist/components/atoms/CInput/CInputSelect.vue.d.ts +1990 -3256
- package/dist/components/atoms/CInput/CInputSelect.vue.d.ts.map +1 -1
- package/dist/components/atoms/CInput/CInputText.vue.d.ts +16 -16
- package/dist/components/atoms/CInput/CMaskInput.vue.d.ts +16 -16
- 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/GenericDataTable.vue.d.ts +23 -13
- package/dist/components/organisms/GenericDataTable.vue.d.ts.map +1 -1
- package/dist/components/organisms/GenericTablePagination.vue.d.ts.map +1 -1
- package/dist/components/organisms/TableColumnMenu.vue.d.ts +23 -0
- package/dist/components/organisms/TableColumnMenu.vue.d.ts.map +1 -0
- package/dist/components/organisms/TableHeader.vue.d.ts +11 -2
- package/dist/components/organisms/TableHeader.vue.d.ts.map +1 -1
- package/dist/components/organisms/TableHeaderContextMenu.vue.d.ts +18 -0
- package/dist/components/organisms/TableHeaderContextMenu.vue.d.ts.map +1 -0
- 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/organisms/__tests__/TableColumnMenu.spec.d.ts +2 -0
- package/dist/components/organisms/__tests__/TableColumnMenu.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/GenericTable.vue.d.ts +14 -1
- package/dist/components/templates/GenericTable.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/__tests__/GenericTable.spec.d.ts +2 -0
- package/dist/components/templates/__tests__/GenericTable.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__/column-filters.spec.d.ts +2 -0
- package/dist/helpers/__tests__/column-filters.spec.d.ts.map +1 -0
- 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__/headers.spec.d.ts +2 -0
- package/dist/helpers/__tests__/headers.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/column-filters.d.ts +18 -0
- package/dist/helpers/column-filters.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/helpers/headers.d.ts +4 -0
- package/dist/helpers/headers.d.ts.map +1 -0
- package/dist/index-4K5vF4Qp.js +57910 -0
- package/dist/index-_vxQgiDi.cjs +114 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/{index.es-Awb9H3-j.cjs → index.es-C5sq0zxh.cjs} +1 -1
- package/dist/{index.es-D79CRK6w.js → index.es-Dl_-1FM5.js} +1 -1
- package/dist/infra/i18n/en_us/words.json.d.ts +12 -1
- package/dist/infra/i18n/interfaces.d.ts +11 -0
- package/dist/infra/i18n/interfaces.d.ts.map +1 -1
- package/dist/infra/i18n/pt_br/words.json.d.ts +12 -1
- package/dist/interfaces/genericForm.d.ts +6 -2
- package/dist/interfaces/genericForm.d.ts.map +1 -1
- package/dist/interfaces/genericTable.d.ts +18 -0
- package/dist/interfaces/genericTable.d.ts.map +1 -1
- package/dist/plugin.d.ts +2 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/purify.es-B0KlbA1O.js +1520 -0
- package/dist/purify.es-Bzi2ApXt.cjs +3 -0
- package/dist/utils/cell-text.d.ts +2 -0
- package/dist/utils/cell-text.d.ts.map +1 -0
- package/dist/utils/t.d.ts +1 -0
- package/dist/utils/t.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 +30 -15
- package/package.json +9 -5
- package/dist/index-B8BHvXMN.cjs +0 -110
- package/dist/index-BKkCcn3r.js +0 -50744
- package/dist/purify.es-BrrCv_hE.js +0 -864
- package/dist/purify.es-DCvfCVUO.cjs +0 -3
|
@@ -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":"column-filters.spec.d.ts","sourceRoot":"","sources":["../../../src/helpers/__tests__/column-filters.spec.ts"],"names":[],"mappings":""}
|
|
@@ -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":"headers.spec.d.ts","sourceRoot":"","sources":["../../../src/helpers/__tests__/headers.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,18 @@
|
|
|
1
|
+
import { IColumnFilter, IColumnValue, IHeader } from '../interfaces/genericTable';
|
|
2
|
+
export declare const columnFilterKey: (header: IHeader) => string;
|
|
3
|
+
export declare const columnSortKey: (header: IHeader) => string;
|
|
4
|
+
export declare const isColumnFilterable: (header: IHeader) => boolean;
|
|
5
|
+
export type CellTextResolver = (header: IHeader, item: any) => string | undefined;
|
|
6
|
+
export declare const vnodeText: (node: unknown) => string;
|
|
7
|
+
export declare const resolveCellText: (header: IHeader, item: any, textOf?: CellTextResolver) => string;
|
|
8
|
+
export declare const distinctColumnValues: (items: any[], header: IHeader, search?: string, textOf?: CellTextResolver) => IColumnValue[];
|
|
9
|
+
export declare const applyColumnFilters: (items: any[], headers: IHeader[], filters: IColumnFilter[], textOf?: CellTextResolver) => any[];
|
|
10
|
+
export declare const setColumnFilter: (filters: IColumnFilter[], field: string, next: {
|
|
11
|
+
text?: string;
|
|
12
|
+
selected?: string[];
|
|
13
|
+
}) => IColumnFilter[];
|
|
14
|
+
export declare const clearColumnFilter: (filters: IColumnFilter[], field: string) => IColumnFilter[];
|
|
15
|
+
export declare const buildColumnFilterParams: (filters: IColumnFilter[], options?: {
|
|
16
|
+
inStyle?: "repeat" | "comma";
|
|
17
|
+
}) => Array<[string, string]>;
|
|
18
|
+
//# sourceMappingURL=column-filters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-filters.d.ts","sourceRoot":"","sources":["../../src/helpers/column-filters.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,OAAO,EACR,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,eAAe,GAAI,QAAQ,OAAO,KAAG,MACO,CAAC;AAE1D,eAAO,MAAM,aAAa,GAAI,QAAQ,OAAO,KAAG,MAC4B,CAAC;AAE7E,eAAO,MAAM,kBAAkB,GAAI,QAAQ,OAAO,KAAG,OACM,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,MAAM,GAAG,SAAS,CAAC;AAElF,eAAO,MAAM,SAAS,GAAI,MAAM,OAAO,KAAG,MASzC,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,QAAQ,OAAO,EACf,MAAM,GAAG,EACT,SAAS,gBAAgB,KACxB,MAgBF,CAAC;AAQF,eAAO,MAAM,oBAAoB,GAC/B,OAAO,GAAG,EAAE,EACZ,QAAQ,OAAO,EACf,eAAW,EACX,SAAS,gBAAgB,KACxB,YAAY,EAYd,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,OAAO,GAAG,EAAE,EACZ,SAAS,OAAO,EAAE,EAClB,SAAS,aAAa,EAAE,EACxB,SAAS,gBAAgB,KACxB,GAAG,EAYL,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,SAAS,aAAa,EAAE,EACxB,OAAO,MAAM,EACb,MAAM;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,KAC3C,aAAa,EAOf,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,SAAS,aAAa,EAAE,EACxB,OAAO,MAAM,KACZ,aAAa,EAA8C,CAAC;AAE/D,eAAO,MAAM,uBAAuB,GAClC,SAAS,aAAa,EAAE,EACxB,UAAS;IAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;CAAO,KAC7C,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAgBxB,CAAC"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IHeader } from '../interfaces/genericTable';
|
|
2
|
+
export declare const moveHeader: (headers: IHeader[], value: string, direction: "left" | "right") => void;
|
|
3
|
+
export declare const reorderHeader: (headers: IHeader[], fromValue: string, toValue: string) => void;
|
|
4
|
+
//# sourceMappingURL=headers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../src/helpers/headers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAWrD,eAAO,MAAM,UAAU,GACrB,SAAS,OAAO,EAAE,EAClB,OAAO,MAAM,EACb,WAAW,MAAM,GAAG,OAAO,KAC1B,IAYF,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,SAAS,OAAO,EAAE,EAClB,WAAW,MAAM,EACjB,SAAS,MAAM,KACd,IASF,CAAC"}
|