@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.
Files changed (101) hide show
  1. package/README.md +34 -0
  2. package/dist/components/atoms/CInput/CInput.vue.d.ts +16 -16
  3. package/dist/components/atoms/CInput/CInputNumber.vue.d.ts +1783 -1923
  4. package/dist/components/atoms/CInput/CInputNumber.vue.d.ts.map +1 -1
  5. package/dist/components/atoms/CInput/CInputSelect.vue.d.ts +1990 -3256
  6. package/dist/components/atoms/CInput/CInputSelect.vue.d.ts.map +1 -1
  7. package/dist/components/atoms/CInput/CInputText.vue.d.ts +16 -16
  8. package/dist/components/atoms/CInput/CMaskInput.vue.d.ts +16 -16
  9. package/dist/components/molecules/ColorPaletteField.vue.d.ts +17 -0
  10. package/dist/components/molecules/ColorPaletteField.vue.d.ts.map +1 -0
  11. package/dist/components/molecules/DateTimePicker.vue.d.ts +141 -0
  12. package/dist/components/molecules/DateTimePicker.vue.d.ts.map +1 -0
  13. package/dist/components/molecules/HourField.vue.d.ts +20 -0
  14. package/dist/components/molecules/HourField.vue.d.ts.map +1 -0
  15. package/dist/components/molecules/RemoteMultipleSearchField.vue.d.ts +31 -0
  16. package/dist/components/molecules/RemoteMultipleSearchField.vue.d.ts.map +1 -0
  17. package/dist/components/molecules/RemoteSearchField.vue.d.ts +37 -0
  18. package/dist/components/molecules/RemoteSearchField.vue.d.ts.map +1 -0
  19. package/dist/components/molecules/SearchAutocomplete.vue.d.ts +1 -1
  20. package/dist/components/molecules/SearchAutocomplete.vue.d.ts.map +1 -1
  21. package/dist/components/molecules/__tests__/DateTimePicker.spec.d.ts +2 -0
  22. package/dist/components/molecules/__tests__/DateTimePicker.spec.d.ts.map +1 -0
  23. package/dist/components/molecules/__tests__/FormFieldComponents.spec.d.ts +2 -0
  24. package/dist/components/molecules/__tests__/FormFieldComponents.spec.d.ts.map +1 -0
  25. package/dist/components/molecules/__tests__/RemoteSearchField.spec.d.ts +2 -0
  26. package/dist/components/molecules/__tests__/RemoteSearchField.spec.d.ts.map +1 -0
  27. package/dist/components/organisms/FormFields.vue.d.ts +2 -0
  28. package/dist/components/organisms/FormFields.vue.d.ts.map +1 -1
  29. package/dist/components/organisms/GenericDataTable.vue.d.ts +23 -13
  30. package/dist/components/organisms/GenericDataTable.vue.d.ts.map +1 -1
  31. package/dist/components/organisms/GenericTablePagination.vue.d.ts.map +1 -1
  32. package/dist/components/organisms/TableColumnMenu.vue.d.ts +23 -0
  33. package/dist/components/organisms/TableColumnMenu.vue.d.ts.map +1 -0
  34. package/dist/components/organisms/TableHeader.vue.d.ts +11 -2
  35. package/dist/components/organisms/TableHeader.vue.d.ts.map +1 -1
  36. package/dist/components/organisms/TableHeaderContextMenu.vue.d.ts +18 -0
  37. package/dist/components/organisms/TableHeaderContextMenu.vue.d.ts.map +1 -0
  38. package/dist/components/organisms/__tests__/FormFields.spec.d.ts +2 -0
  39. package/dist/components/organisms/__tests__/FormFields.spec.d.ts.map +1 -0
  40. package/dist/components/organisms/__tests__/TableColumnMenu.spec.d.ts +2 -0
  41. package/dist/components/organisms/__tests__/TableColumnMenu.spec.d.ts.map +1 -0
  42. package/dist/components/templates/GenericForm.vue.d.ts +69 -3
  43. package/dist/components/templates/GenericForm.vue.d.ts.map +1 -1
  44. package/dist/components/templates/GenericFormFlat.vue.d.ts +51 -1
  45. package/dist/components/templates/GenericFormFlat.vue.d.ts.map +1 -1
  46. package/dist/components/templates/GenericTable.vue.d.ts +14 -1
  47. package/dist/components/templates/GenericTable.vue.d.ts.map +1 -1
  48. package/dist/components/templates/__tests__/GenericForm.spec.d.ts +2 -0
  49. package/dist/components/templates/__tests__/GenericForm.spec.d.ts.map +1 -0
  50. package/dist/components/templates/__tests__/GenericFormFlat.spec.d.ts +2 -0
  51. package/dist/components/templates/__tests__/GenericFormFlat.spec.d.ts.map +1 -0
  52. package/dist/components/templates/__tests__/GenericTable.spec.d.ts +2 -0
  53. package/dist/components/templates/__tests__/GenericTable.spec.d.ts.map +1 -0
  54. package/dist/components/templates/form-props.d.ts +36 -0
  55. package/dist/components/templates/form-props.d.ts.map +1 -1
  56. package/dist/composables/useAsyncAutocomplete.d.ts +1 -1
  57. package/dist/composables/useAsyncAutocomplete.d.ts.map +1 -1
  58. package/dist/helpers/__tests__/column-filters.spec.d.ts +2 -0
  59. package/dist/helpers/__tests__/column-filters.spec.d.ts.map +1 -0
  60. package/dist/helpers/__tests__/form-masks.spec.d.ts +2 -0
  61. package/dist/helpers/__tests__/form-masks.spec.d.ts.map +1 -0
  62. package/dist/helpers/__tests__/headers.spec.d.ts +2 -0
  63. package/dist/helpers/__tests__/headers.spec.d.ts.map +1 -0
  64. package/dist/helpers/__tests__/useFieldHelpers.spec.d.ts +2 -0
  65. package/dist/helpers/__tests__/useFieldHelpers.spec.d.ts.map +1 -0
  66. package/dist/helpers/column-filters.d.ts +18 -0
  67. package/dist/helpers/column-filters.d.ts.map +1 -0
  68. package/dist/helpers/form-masks.d.ts +11 -0
  69. package/dist/helpers/form-masks.d.ts.map +1 -0
  70. package/dist/helpers/headers.d.ts +4 -0
  71. package/dist/helpers/headers.d.ts.map +1 -0
  72. package/dist/index-4K5vF4Qp.js +57910 -0
  73. package/dist/index-_vxQgiDi.cjs +114 -0
  74. package/dist/index.d.ts +8 -0
  75. package/dist/index.d.ts.map +1 -1
  76. package/dist/{index.es-Awb9H3-j.cjs → index.es-C5sq0zxh.cjs} +1 -1
  77. package/dist/{index.es-D79CRK6w.js → index.es-Dl_-1FM5.js} +1 -1
  78. package/dist/infra/i18n/en_us/words.json.d.ts +12 -1
  79. package/dist/infra/i18n/interfaces.d.ts +11 -0
  80. package/dist/infra/i18n/interfaces.d.ts.map +1 -1
  81. package/dist/infra/i18n/pt_br/words.json.d.ts +12 -1
  82. package/dist/interfaces/genericForm.d.ts +6 -2
  83. package/dist/interfaces/genericForm.d.ts.map +1 -1
  84. package/dist/interfaces/genericTable.d.ts +18 -0
  85. package/dist/interfaces/genericTable.d.ts.map +1 -1
  86. package/dist/plugin.d.ts +2 -0
  87. package/dist/plugin.d.ts.map +1 -1
  88. package/dist/purify.es-B0KlbA1O.js +1520 -0
  89. package/dist/purify.es-Bzi2ApXt.cjs +3 -0
  90. package/dist/utils/cell-text.d.ts +2 -0
  91. package/dist/utils/cell-text.d.ts.map +1 -0
  92. package/dist/utils/t.d.ts +1 -0
  93. package/dist/utils/t.d.ts.map +1 -1
  94. package/dist/vuetify-elements.cjs.js +1 -1
  95. package/dist/vuetify-elements.css +1 -1
  96. package/dist/vuetify-elements.es.js +30 -15
  97. package/package.json +9 -5
  98. package/dist/index-B8BHvXMN.cjs +0 -110
  99. package/dist/index-BKkCcn3r.js +0 -50744
  100. package/dist/purify.es-BrrCv_hE.js +0 -864
  101. 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, 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,CAAC,CAAC,EAAE,CAAC;IACxC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IACpE,YAAY,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;IAC5B,aAAa,EAAE,QAAQ,CAAC,CAAC,GAAG,CAAC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,EACZ,YAAkB,EAClB,OAAO,EACP,OAAO,GACR,EAAE,2BAA2B,CAAC,CAAC,EAAE,CAAC,CAAC;;;;;EAoEnC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=column-filters.spec.d.ts.map
@@ -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,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=headers.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"headers.spec.d.ts","sourceRoot":"","sources":["../../../src/helpers/__tests__/headers.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,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"}