@c3labsbr/vuetify-elements 1.2.5 → 1.3.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 (108) hide show
  1. package/dist/components/atoms/CInput/CInput.vue.d.ts +336 -0
  2. package/dist/components/atoms/CInput/CInput.vue.d.ts.map +1 -0
  3. package/dist/components/atoms/CInput/CInputNumber.vue.d.ts +266 -0
  4. package/dist/components/atoms/CInput/CInputNumber.vue.d.ts.map +1 -0
  5. package/dist/components/atoms/CInput/CInputSelect.vue.d.ts +335 -0
  6. package/dist/components/atoms/CInput/CInputSelect.vue.d.ts.map +1 -0
  7. package/dist/components/atoms/CInput/CInputText.vue.d.ts +266 -0
  8. package/dist/components/atoms/CInput/CInputText.vue.d.ts.map +1 -0
  9. package/dist/components/atoms/CInput/props.d.ts +181 -0
  10. package/dist/components/atoms/CInput/props.d.ts.map +1 -0
  11. package/dist/components/atoms/CInput/select-props.d.ts +53 -0
  12. package/dist/components/atoms/CInput/select-props.d.ts.map +1 -0
  13. package/dist/components/atoms/CircularLoading.vue.d.ts +3 -0
  14. package/dist/components/atoms/CircularLoading.vue.d.ts.map +1 -0
  15. package/dist/components/atoms/FormCardTitle.vue.d.ts +15 -0
  16. package/dist/components/atoms/FormCardTitle.vue.d.ts.map +1 -0
  17. package/dist/components/molecules/ActionBtn.vue.d.ts +24 -1
  18. package/dist/components/molecules/ActionBtn.vue.d.ts.map +1 -1
  19. package/dist/components/molecules/AdjustColumnsDialog.vue.d.ts +3 -3
  20. package/dist/components/molecules/AdjustColumnsDialog.vue.d.ts.map +1 -1
  21. package/dist/components/molecules/FormTitle.vue.d.ts +34 -0
  22. package/dist/components/molecules/FormTitle.vue.d.ts.map +1 -0
  23. package/dist/components/organisms/FormActionsButtons.vue.d.ts +24 -0
  24. package/dist/components/organisms/FormActionsButtons.vue.d.ts.map +1 -0
  25. package/dist/components/organisms/FormButtonOptionsField.vue.d.ts +20 -0
  26. package/dist/components/organisms/FormButtonOptionsField.vue.d.ts.map +1 -0
  27. package/dist/components/organisms/FormFields.vue.d.ts +47 -0
  28. package/dist/components/organisms/FormFields.vue.d.ts.map +1 -0
  29. package/dist/components/organisms/GenericHeaderActions.vue.d.ts +1 -1
  30. package/dist/components/organisms/GenericHeaderActions.vue.d.ts.map +1 -1
  31. package/dist/components/organisms/GenericItemActions.vue.d.ts +1 -1
  32. package/dist/components/organisms/GenericItemActions.vue.d.ts.map +1 -1
  33. package/dist/components/organisms/GenericTableHeader.vue.d.ts +4 -3
  34. package/dist/components/organisms/GenericTableHeader.vue.d.ts.map +1 -1
  35. package/dist/components/organisms/GenericTablePagination.vue.d.ts +3 -3
  36. package/dist/components/organisms/GenericTablePagination.vue.d.ts.map +1 -1
  37. package/dist/components/organisms/TableCell.vue.d.ts +1 -1
  38. package/dist/components/organisms/TableCell.vue.d.ts.map +1 -1
  39. package/dist/components/organisms/TableColumnActionsMenu.vue.d.ts +28 -0
  40. package/dist/components/organisms/TableColumnActionsMenu.vue.d.ts.map +1 -0
  41. package/dist/components/organisms/TableColumnFilterMenu.vue.d.ts +1 -1
  42. package/dist/components/organisms/TableColumnFilterMenu.vue.d.ts.map +1 -1
  43. package/dist/components/organisms/TableHeader.vue.d.ts +9 -4
  44. package/dist/components/organisms/TableHeader.vue.d.ts.map +1 -1
  45. package/dist/components/organisms/__tests__/GenericDataTable.spec.d.ts +2 -0
  46. package/dist/components/organisms/__tests__/GenericDataTable.spec.d.ts.map +1 -0
  47. package/dist/components/organisms/__tests__/GenericHeaderActions.spec.d.ts.map +1 -0
  48. package/dist/components/organisms/__tests__/GenericItemActions.spec.d.ts.map +1 -0
  49. package/dist/components/organisms/__tests__/GenericTableHeader.spec.d.ts.map +1 -0
  50. package/dist/components/templates/GenericForm.vue.d.ts +159 -0
  51. package/dist/components/templates/GenericForm.vue.d.ts.map +1 -0
  52. package/dist/components/templates/GenericFormFlat.vue.d.ts +149 -0
  53. package/dist/components/templates/GenericFormFlat.vue.d.ts.map +1 -0
  54. package/dist/components/templates/GenericTable.vue.d.ts +8 -7
  55. package/dist/components/templates/GenericTable.vue.d.ts.map +1 -1
  56. package/dist/components/templates/form-props.d.ts +102 -0
  57. package/dist/components/templates/form-props.d.ts.map +1 -0
  58. package/dist/composables/useAutoTableResize.d.ts +24 -0
  59. package/dist/composables/useAutoTableResize.d.ts.map +1 -0
  60. package/dist/helpers/__tests__/currency-formatters.spec.d.ts +2 -0
  61. package/dist/helpers/__tests__/currency-formatters.spec.d.ts.map +1 -0
  62. package/dist/helpers/__tests__/format-hour.spec.d.ts +2 -0
  63. package/dist/helpers/__tests__/format-hour.spec.d.ts.map +1 -0
  64. package/dist/helpers/__tests__/formatters.spec.d.ts.map +1 -0
  65. package/dist/helpers/__tests__/masks.spec.d.ts.map +1 -0
  66. package/dist/helpers/currency-formatters.d.ts +31 -0
  67. package/dist/helpers/currency-formatters.d.ts.map +1 -0
  68. package/dist/helpers/exceptions.d.ts +6 -0
  69. package/dist/helpers/exceptions.d.ts.map +1 -0
  70. package/dist/helpers/format-hour.d.ts +2 -0
  71. package/dist/helpers/format-hour.d.ts.map +1 -0
  72. package/dist/helpers/formatters.d.ts +22 -35
  73. package/dist/helpers/formatters.d.ts.map +1 -1
  74. package/dist/helpers/masks.d.ts.map +1 -1
  75. package/dist/helpers/string-utils.d.ts +7 -0
  76. package/dist/helpers/string-utils.d.ts.map +1 -0
  77. package/dist/helpers/toastify.d.ts +17 -0
  78. package/dist/helpers/toastify.d.ts.map +1 -0
  79. package/dist/helpers/useFieldHelpers.d.ts +11 -0
  80. package/dist/helpers/useFieldHelpers.d.ts.map +1 -0
  81. package/dist/index.d.ts +4 -1
  82. package/dist/index.d.ts.map +1 -1
  83. package/dist/infra/i18n/en_us/words.json.d.ts +8 -1
  84. package/dist/infra/i18n/interfaces.d.ts +7 -0
  85. package/dist/infra/i18n/interfaces.d.ts.map +1 -1
  86. package/dist/infra/i18n/pt_br/words.json.d.ts +8 -1
  87. package/dist/interfaces/genericForm.d.ts +72 -0
  88. package/dist/interfaces/genericForm.d.ts.map +1 -0
  89. package/dist/interfaces/{app.d.ts → genericTable.d.ts} +3 -1
  90. package/dist/interfaces/genericTable.d.ts.map +1 -0
  91. package/dist/plugin.d.ts.map +1 -1
  92. package/dist/utils/export.d.ts +1 -1
  93. package/dist/utils/export.d.ts.map +1 -1
  94. package/dist/vuetify-elements.cjs.js +4 -4
  95. package/dist/vuetify-elements.css +1 -1
  96. package/dist/vuetify-elements.es.js +5766 -4522
  97. package/package.json +8 -3
  98. package/dist/components/organisms/GenericHeaderActions.spec.d.ts.map +0 -1
  99. package/dist/components/organisms/GenericItemActions.spec.d.ts.map +0 -1
  100. package/dist/components/organisms/GenericTableHeader.spec.d.ts.map +0 -1
  101. package/dist/helpers/formatters.spec.d.ts.map +0 -1
  102. package/dist/helpers/masks.spec.d.ts.map +0 -1
  103. package/dist/interfaces/app.d.ts.map +0 -1
  104. /package/dist/components/organisms/{GenericHeaderActions.spec.d.ts → __tests__/GenericHeaderActions.spec.d.ts} +0 -0
  105. /package/dist/components/organisms/{GenericItemActions.spec.d.ts → __tests__/GenericItemActions.spec.d.ts} +0 -0
  106. /package/dist/components/organisms/{GenericTableHeader.spec.d.ts → __tests__/GenericTableHeader.spec.d.ts} +0 -0
  107. /package/dist/helpers/{formatters.spec.d.ts → __tests__/formatters.spec.d.ts} +0 -0
  108. /package/dist/helpers/{masks.spec.d.ts → __tests__/masks.spec.d.ts} +0 -0
@@ -1,42 +1,29 @@
1
- export declare const isToday: (date: Date) => boolean;
2
- export declare const avatarText: (value: string) => string;
3
- export declare const formatDateToYearMonthDay: (date: string | Date) => string;
4
1
  /**
5
- * Format and return date in Humanize format
6
- * Intl docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/format
7
- * Intl Constructor: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat
8
- * @param {string} value date to format
9
- * @param {Intl.DateTimeFormatOptions} formatting Intl object to format with
2
+ * Format a Brazilian phone number.
3
+ * @param phone - Phone number, with or without formatting.
4
+ * @returns Formatted phone number in the pattern (XX) XXXXX-XXXX or (XX) XXXX-XXXX.
10
5
  */
11
- export declare const formatDate: (value: string) => string;
12
- export declare const formatDateNotString: (date: string | Date) => string;
13
- export declare function parseLocalDate(dateStr: string): Date | string;
14
6
  export declare const formatPhone: (phone: string) => string;
7
+ /**
8
+ * Mask a NCM string to the format 0000.00.00
9
+ * @param ncm - The NCM string to be masked
10
+ * @returns The masked NCM string in the format 0000.00.00
11
+ */
15
12
  export declare const maskNCM: (ncm: string) => string;
16
13
  /**
17
- * Return short human friendly month representation of date
18
- * Can also convert date to only time if date is of today (Better UX)
19
- * @param {string} value date to format
20
- * @param {boolean} toTimeForCurrentDay Shall convert to time if day is today/current
14
+ * Mask a CNPJ string to the format 00.000.000/0000-00
15
+ * @param cnpj - The CNPJ string to be masked
16
+ * @returns The masked CNPJ string in the format 00.000.000/0000-00
17
+ */
18
+ export declare const maskCnpj: (cnpj: string) => string;
19
+ /** Mask a CPF string to the format 000.000.000-00
20
+ * @param cpf - The CPF string to be masked
21
+ * @returns The masked CPF string in the format 000.000.000-00
22
+ */
23
+ export declare const maskCpf: (cpf: string) => string;
24
+ /** Mask a CEP string to the format 00000-000
25
+ * @param cep - The CEP string to be masked
26
+ * @returns The masked CEP string in the format 00000-000
21
27
  */
22
- export declare const formatDateToMonthShort: (value: string, toTimeForCurrentDay?: boolean) => string;
23
- export declare const prefixWithPlus: (value: number) => string | number;
24
- export declare function maskCnpj(cnpj: string): string;
25
- export declare function maskCuit(cuit: string): string;
26
- export declare function maskNuc(nuc: string): string;
27
- export declare function maskCpf(cpf: string): string;
28
- export declare function maskCep(cep: string): string;
29
- export declare function formatCurrency(value: string | number): string;
30
- export declare function formatBrl(value: string | number): string;
31
- export declare function formatBrlToInput(value: string | number): string;
32
- export declare function formatBrlToInputFiveHouses(value: string | number): string;
33
- export declare function formatKg(value: string): string;
34
- export declare function formatWeight(value: string): string;
35
- export declare function formatHour(value: string): string;
36
- export declare function parseFormattedValue(value: string): number;
37
- export declare function parseFormattedValueWithFiveHouses(value: string): number;
38
- export declare function formatToBrazilian(valueString: string): string;
39
- export declare function formatLicensePlate(licensePlate: string): string;
40
- export declare const formatStringToDate: (date: string) => Date;
41
- export declare const formatDateToConditionalYear: (isoString: Date | string) => string;
28
+ export declare const maskCep: (cep: string) => string;
42
29
  //# sourceMappingURL=formatters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../src/helpers/formatters.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,GAAI,MAAM,IAAI,YAQjC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,WAKvC,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,MAAM,MAAM,GAAG,IAAI,WAM3D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,WAUvC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,GAAG,IAAI,WAQtD,CAAC;AAEF,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAI7D;AAED,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,MAgB3C,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,KAAK,MAAM,KAAG,MAQrC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,MAAM,EACb,6BAA0B,WAS3B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,oBACX,CAAC;AAElC,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,UAWpC;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,UAYpC;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,UAQlC;AA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ET;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAI,KAAK,MAAM,KAAG,MAM9B,CAAC;AAET;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAI,KAAK,MAAM,KAAG,MACuB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"masks.d.ts","sourceRoot":"","sources":["../../src/helpers/masks.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,GAAG,SAAS,EAAE,OAAO,GAAG,QAK3D,CAAC"}
1
+ {"version":3,"file":"masks.d.ts","sourceRoot":"","sources":["../../src/helpers/masks.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,GAAG,SAAS,EAAE,OAAO,GAAG,QACrB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Remove all non numeric characters from a given string
3
+ * @param {string} value - The input string to be processed
4
+ * @returns {string} - A string containing only numeric characters
5
+ */
6
+ export declare const onlyNumbers: (value: string) => string;
7
+ //# sourceMappingURL=string-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string-utils.d.ts","sourceRoot":"","sources":["../../src/helpers/string-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,MAAkC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { ToastPosition, ToastTheme, ToastType } from 'vue3-toastify';
2
+ /**
3
+ * Displays a toast notification with specified options.
4
+ *
5
+ * @param {string} message - The message to be displayed in the toast notification. It can contain HTML.
6
+ * @param {'success'|'error'|'info'|'warning'} type - The type of the toast notification. Defaults to 'default'.
7
+ * @param {number} time - The duration (in milliseconds) for which the toast should be visible.
8
+ * @param {'top-left'|'top-center'|'top-right'|'bottom-left'|'bottom-center'|'bottom-right'} position - The position of the toast notification on the screen. Defaults to 'top-right'.
9
+ * @param {'auto'|'light'|'dark'|'colored'} theme - The theme of the toast notification. Defaults to 'auto'.
10
+ * @param {boolean} bar - Determines if the progress bar should be visible. Defaults to false.
11
+ *
12
+ * @example
13
+ * showMessage('This is a success message', 'success', 3000, 'top-right', 'light', true);
14
+ */
15
+ declare function showMessage(message: string, type: ToastType, time?: number, position?: ToastPosition, theme?: ToastTheme, bar?: boolean): Promise<void>;
16
+ export { showMessage };
17
+ //# sourceMappingURL=toastify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toastify.d.ts","sourceRoot":"","sources":["../../src/helpers/toastify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE5E;;;;;;;;;;;;GAYG;AACH,iBAAe,WAAW,CACxB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,SAAS,EACf,IAAI,CAAC,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,aAAa,EACxB,KAAK,CAAC,EAAE,UAAU,EAClB,GAAG,CAAC,EAAE,OAAO,iBAWd;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { IField } from '../interfaces/genericForm';
2
+ export declare const shouldShowField: (field: IField) => boolean;
3
+ export declare const validateField: (field: IField, value: any) => string | true;
4
+ /**
5
+ * Compute the number of columns that a field should occupy in a 12-column grid.
6
+ *
7
+ * @param field - IField object corresponding the column field
8
+ * @returns Number of columns (minimum 2)
9
+ */
10
+ export declare const getFieldCols: (field: IField) => number;
11
+ //# sourceMappingURL=useFieldHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFieldHelpers.d.ts","sourceRoot":"","sources":["../../src/helpers/useFieldHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAExD,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,KAAG,OAK/C,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,EAAE,OAAO,GAAG,KAAG,MAAM,GAAG,IAOlE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,KAAG,MAe5C,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  export { default as ActionBtn } from './components/molecules/ActionBtn.vue';
2
2
  export { default as GenericTable } from './components/templates/GenericTable.vue';
3
- export * from './interfaces/app';
3
+ export { default as GenericForm } from './components/templates/GenericForm.vue';
4
+ export { default as GenericFormFlat } from './components/templates/GenericFormFlat.vue';
5
+ export * from './interfaces/genericTable';
6
+ export * from './interfaces/genericForm';
4
7
  export { default as VuetifyElements } from './plugin';
5
8
  export { default } from './plugin';
6
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAClF,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,4CAA4C,CAAC;AACxF,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
@@ -7,6 +7,7 @@ declare const _default: {
7
7
  "delete": "Delete",
8
8
  "deleted": "Deleted",
9
9
  "cancel": "Cancel",
10
+ "save": "Save",
10
11
  "ok": "OK",
11
12
  "this": "This",
12
13
  "was_deleted": "was deleted.",
@@ -15,7 +16,13 @@ declare const _default: {
15
16
  "errorGettingHeaderValue": "Error getting item value for header",
16
17
  "filterFnNotDefined": "Filter function not defined. Please provide a filterFn in the component props.",
17
18
  "filterColumn": "Filter column",
18
- "filterBy": "Filter by..."
19
+ "filterBy": "Filter by...",
20
+ "classify": "Classify",
21
+ "hideColumn": "Hide column",
22
+ "moveLeft": "Move left",
23
+ "moveRight": "Move right",
24
+ "all": "All",
25
+ "unexpectedError": "Unexpected error. Please, try again or contact the support team."
19
26
  }
20
27
  }
21
28
  ;
@@ -6,6 +6,7 @@ export interface MessageKeys {
6
6
  delete: string;
7
7
  deleted: string;
8
8
  cancel: string;
9
+ save: string;
9
10
  ok: string;
10
11
  this: string;
11
12
  was_deleted: string;
@@ -15,6 +16,12 @@ export interface MessageKeys {
15
16
  filterFnNotDefined: string;
16
17
  filterColumn: string;
17
18
  filterBy: string;
19
+ classify: string;
20
+ hideColumn: string;
21
+ moveLeft: string;
22
+ moveRight: string;
23
+ all: string;
24
+ unexpectedError: string;
18
25
  }
19
26
  export interface LibMessages {
20
27
  'vuetify-elements': MessageKeys;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/infra/i18n/interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MA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AAE,WAAW,CAAC;CACjC;AAED,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC"}
@@ -7,6 +7,7 @@ declare const _default: {
7
7
  "delete": "Excluir",
8
8
  "deleted": "Excluído",
9
9
  "cancel": "Cancelar",
10
+ "save": "Salvar",
10
11
  "ok": "OK",
11
12
  "this": "Esse",
12
13
  "was_deleted": "foi deletado.",
@@ -15,7 +16,13 @@ declare const _default: {
15
16
  "errorGettingHeaderValue": "Erro ao obter o valor do item para o cabeçalho",
16
17
  "filterFnNotDefined": "Função de filtro não definida. Por favor, forneça uma filterFn nas propriedades do componente.",
17
18
  "filterColumn": "Filtrar coluna",
18
- "filterBy": "Filtrar por..."
19
+ "filterBy": "Filtrar por...",
20
+ "classify": "Classificar",
21
+ "hideColumn": "Esconder coluna",
22
+ "moveLeft": "Mover para esquerda",
23
+ "moveRight": "Mover para direita",
24
+ "all": "Todos",
25
+ "unexpectedError": "Ocorreu um erro inesperado. Por favor, tente novamente ou contate o suporte."
19
26
  }
20
27
  }
21
28
  ;
@@ -0,0 +1,72 @@
1
+ import { Component } from 'vue';
2
+ type FieldOption = {
3
+ text: string;
4
+ icon?: string;
5
+ value?: any;
6
+ };
7
+ type ISecondField = Omit<IField, 'secondField'>;
8
+ export type IField = {
9
+ label: string;
10
+ model: string;
11
+ value?: any;
12
+ additionalValue?: any;
13
+ type: 'number' | 'select' | 'text' | 'file' | 'info' | string;
14
+ md?: number;
15
+ cols?: number;
16
+ placeholder?: string;
17
+ error?: string;
18
+ rules?: any | ((v: any) => true | string)[];
19
+ items?: any[];
20
+ maxLength?: number;
21
+ minLength?: number;
22
+ maxNumber?: number;
23
+ minNumber?: number;
24
+ autofocus?: boolean;
25
+ itemTitle?: string;
26
+ itemValue?: string;
27
+ maskType?: 'cpf' | 'cnpj' | 'phone' | 'brl' | 'hour' | 'cep' | 'weight' | 'brlfivehouses' | 'ncm' | null;
28
+ search?: string | null;
29
+ noDataText?: string;
30
+ options?: FieldOption[];
31
+ condition?: ((v: any) => boolean)[];
32
+ disabled?: boolean | any;
33
+ showPassword?: boolean;
34
+ chips?: boolean;
35
+ slotItem?: Component;
36
+ prependInnerIcon?: string;
37
+ defaultColors?: string[];
38
+ prefix?: string;
39
+ suffix?: string;
40
+ multiple?: boolean;
41
+ itemComponent?: Component;
42
+ searchFunction?: Function;
43
+ count?: number;
44
+ hasCountBtn?: boolean;
45
+ secondField?: ISecondField;
46
+ component?: Component;
47
+ inputs?: IField[];
48
+ filterByAgreement?: boolean;
49
+ getMaskType?: () => 'cpf' | 'cnpj' | 'phone' | 'brl' | 'hour' | 'cep' | 'weight' | 'brlfivehouses' | 'ncm' | null;
50
+ show?: boolean;
51
+ returnObject?: boolean;
52
+ info?: any;
53
+ secondSearchParam?: any;
54
+ removeFunction?: Function;
55
+ action?: Function;
56
+ allowedDates?: any[];
57
+ prependComponent?: Component;
58
+ prependClickFunction?: Function;
59
+ disabledOnlyField?: boolean;
60
+ createComponent?: Component;
61
+ createData?: any;
62
+ config?: any;
63
+ allDay?: boolean;
64
+ minDate?: Date | string;
65
+ onChange?: (event: Event, model: any, step: any) => void;
66
+ exclude?: Function;
67
+ description?: string;
68
+ modelProp?: any;
69
+ notClearOnUnmounted?: boolean;
70
+ };
71
+ export {};
72
+ //# sourceMappingURL=genericForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"genericForm.d.ts","sourceRoot":"","sources":["../../src/interfaces/genericForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAEhC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,CAAC;AAEF,KAAK,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAEhD,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,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AE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IACzD,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { JSXComponent } from 'vuetify';
1
2
  export interface IPagination {
2
3
  page: number;
3
4
  pageSize: number;
@@ -25,5 +26,6 @@ export type FilterType = {
25
26
  field: string;
26
27
  value: string;
27
28
  };
29
+ export type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
28
30
  export type IEditFn = (id: string, field: string, value: any) => void;
29
- //# sourceMappingURL=app.d.ts.map
31
+ //# sourceMappingURL=genericTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"genericTable.d.ts","sourceRoot":"","sources":["../../src/interfaces/genericTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CAC1B;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,KAAK,OAAO,GAAG,MAAM,CAAC,CAAC;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,EAAE,GAC5C,YAAY,CAAC;AAEjB,MAAM,MAAM,OAAO,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAIrC,OAAO,EAAE,UAAU,EAAe,MAAM,yBAAyB,CAAC;AAIlE,UAAU,aAAa;IACrB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;;iBAGc,GAAG,YAAY,aAAa;;AAD3C,wBAgBE"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAIrC,OAAO,EAAE,UAAU,EAAe,MAAM,yBAAyB,CAAC;AAMlE,UAAU,aAAa;IACrB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;;iBAGc,GAAG,YAAY,aAAa;;AAD3C,wBAkBE"}
@@ -1,3 +1,3 @@
1
- import { IHeader } from '../interfaces/app';
1
+ import { IHeader } from '../interfaces/genericTable';
2
2
  export declare function handleExport(type: string, data: any[], headers: IHeader[]): void;
3
3
  //# sourceMappingURL=export.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/utils/export.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAuI5C,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,QAMzE"}
1
+ {"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/utils/export.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAuIrD,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,QAMzE"}