@comercti/vue-components-hmg 0.32.13 → 0.33.4
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/comerc-style-guide.cjs.js +39 -33
- package/comerc-style-guide.es.js +3571 -3414
- package/comerc-style-guide.umd.js +40 -34
- package/index.d.ts +23 -4
- package/package.json +30 -30
package/index.d.ts
CHANGED
|
@@ -8,14 +8,24 @@ import { VNode } from 'vue';
|
|
|
8
8
|
|
|
9
9
|
declare const __VLS_component: DefineComponent<DataTableProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
10
10
|
"update:modelValue": (value: Record<string, any>[]) => any;
|
|
11
|
+
input: (value: string) => any;
|
|
11
12
|
updateSelected: (value: Record<string, any>[]) => any;
|
|
13
|
+
"update:modelValueEditable": (value: {
|
|
14
|
+
field: string;
|
|
15
|
+
value: string | boolean | number;
|
|
16
|
+
}) => any;
|
|
12
17
|
orderBy: (value: {
|
|
13
18
|
key: string;
|
|
14
19
|
order: "asc" | "desc";
|
|
15
20
|
}) => any;
|
|
16
21
|
}, string, PublicProps, Readonly<DataTableProps> & Readonly<{
|
|
17
22
|
"onUpdate:modelValue"?: (value: Record<string, any>[]) => any;
|
|
23
|
+
onInput?: (value: string) => any;
|
|
18
24
|
onUpdateSelected?: (value: Record<string, any>[]) => any;
|
|
25
|
+
"onUpdate:modelValueEditable"?: (value: {
|
|
26
|
+
field: string;
|
|
27
|
+
value: string | boolean | number;
|
|
28
|
+
}) => any;
|
|
19
29
|
onOrderBy?: (value: {
|
|
20
30
|
key: string;
|
|
21
31
|
order: "asc" | "desc";
|
|
@@ -33,6 +43,7 @@ loading: boolean;
|
|
|
33
43
|
loadingType: "spinner" | "semi-circle" | "dots";
|
|
34
44
|
truncated: boolean;
|
|
35
45
|
copyable: boolean;
|
|
46
|
+
editable: boolean;
|
|
36
47
|
editColumnStyle: {
|
|
37
48
|
fields: string[];
|
|
38
49
|
style?: Record<string, string>;
|
|
@@ -276,12 +287,12 @@ focus: () => void;
|
|
|
276
287
|
valorSemMascara: Ref<string | number, string | number>;
|
|
277
288
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
278
289
|
"update:modelValue": (value: string | number | CustomEvent<any>) => any;
|
|
279
|
-
input: (value:
|
|
290
|
+
input: (value: Event) => any;
|
|
280
291
|
blur: (value: string | number | CustomEvent<any>) => any;
|
|
281
292
|
change: (value: string | number | CustomEvent<any>) => any;
|
|
282
293
|
}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
|
|
283
294
|
"onUpdate:modelValue"?: (value: string | number | CustomEvent<any>) => any;
|
|
284
|
-
onInput?: (value:
|
|
295
|
+
onInput?: (value: Event) => any;
|
|
285
296
|
onBlur?: (value: string | number | CustomEvent<any>) => any;
|
|
286
297
|
onChange?: (value: string | number | CustomEvent<any>) => any;
|
|
287
298
|
}>, {
|
|
@@ -356,15 +367,15 @@ click: () => void;
|
|
|
356
367
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
357
368
|
"update:modelValue": (value: string | number | boolean | (string | number | boolean)[] | CustomEvent<any>) => any;
|
|
358
369
|
change: (value: string | number | boolean | (string | number | boolean)[] | CustomEvent<any>) => any;
|
|
359
|
-
inputSearch: (value: string) => any;
|
|
360
370
|
openDropdown: () => any;
|
|
361
371
|
closeDropdown: () => any;
|
|
372
|
+
inputSearch: (value: string) => any;
|
|
362
373
|
}, string, PublicProps, Readonly<CeSelectFieldProps> & Readonly<{
|
|
363
374
|
"onUpdate:modelValue"?: (value: string | number | boolean | (string | number | boolean)[] | CustomEvent<any>) => any;
|
|
364
375
|
onChange?: (value: string | number | boolean | (string | number | boolean)[] | CustomEvent<any>) => any;
|
|
365
|
-
onInputSearch?: (value: string) => any;
|
|
366
376
|
onOpenDropdown?: () => any;
|
|
367
377
|
onCloseDropdown?: () => any;
|
|
378
|
+
onInputSearch?: (value: string) => any;
|
|
368
379
|
}>, {
|
|
369
380
|
search: boolean;
|
|
370
381
|
invalid: boolean;
|
|
@@ -2044,6 +2055,8 @@ declare type DataTableProps = {
|
|
|
2044
2055
|
paginationStyle?: string;
|
|
2045
2056
|
/** Habilita a funcionalidade de copiar o conteúdo da célula ao clicar */
|
|
2046
2057
|
copyable?: boolean;
|
|
2058
|
+
/** Habilita a funcionalidade de editar o conteúdo da célula ao clicar */
|
|
2059
|
+
editable?: boolean;
|
|
2047
2060
|
/** Configurações para estilizar colunas editáveis */
|
|
2048
2061
|
editColumnStyle?: {
|
|
2049
2062
|
fields: string[];
|
|
@@ -2087,6 +2100,10 @@ declare type Header = {
|
|
|
2087
2100
|
value: string | ((item: Record<string, unknown>) => string);
|
|
2088
2101
|
sortable?: boolean;
|
|
2089
2102
|
width?: string;
|
|
2103
|
+
editableField?: {
|
|
2104
|
+
type: InputType | 'boolean';
|
|
2105
|
+
mask?: string | string[];
|
|
2106
|
+
};
|
|
2090
2107
|
};
|
|
2091
2108
|
|
|
2092
2109
|
declare type HexColor = `#${string}`;
|
|
@@ -2183,6 +2200,8 @@ declare interface IItems {
|
|
|
2183
2200
|
showDescription?: boolean;
|
|
2184
2201
|
}
|
|
2185
2202
|
|
|
2203
|
+
declare type InputType = 'number' | 'search' | 'time' | 'text' | 'password' | 'email' | 'tel' | 'url' | 'date' | 'datetime-local';
|
|
2204
|
+
|
|
2186
2205
|
declare type IProgressStepsProps = {
|
|
2187
2206
|
/** Define os itens que serão exibidos */
|
|
2188
2207
|
items: IItems[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comercti/vue-components-hmg",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.4",
|
|
4
4
|
"types": "index.d.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "private",
|
|
@@ -19,64 +19,64 @@
|
|
|
19
19
|
"prismjs": "^1.30.0",
|
|
20
20
|
"react": "^17.0.2",
|
|
21
21
|
"react-dom": "^17.0.2",
|
|
22
|
-
"veaury": "^2.6.
|
|
23
|
-
"vitest-sonar-reporter": "^2.0.
|
|
24
|
-
"vue": "^3.5.
|
|
22
|
+
"veaury": "^2.6.3",
|
|
23
|
+
"vitest-sonar-reporter": "^2.0.4",
|
|
24
|
+
"vue": "^3.5.29"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"vue": ">=3.2.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@fontsource/exo-2": "^5.
|
|
31
|
-
"@storybook/addon-actions": "^8.
|
|
30
|
+
"@fontsource/exo-2": "^5.2.8",
|
|
31
|
+
"@storybook/addon-actions": "^8.6.18",
|
|
32
32
|
"@storybook/addon-essentials": "8.5.5",
|
|
33
33
|
"@storybook/addon-interactions": "8.5.5",
|
|
34
34
|
"@storybook/addon-onboarding": "8.5.5",
|
|
35
35
|
"@storybook/addon-postcss": "^2.0.0",
|
|
36
|
-
"@storybook/addon-viewport": "^8.
|
|
36
|
+
"@storybook/addon-viewport": "^8.6.18",
|
|
37
37
|
"@storybook/addons": "^7.6.17",
|
|
38
38
|
"@storybook/blocks": "8.5.5",
|
|
39
|
-
"@storybook/manager-api": "^8.
|
|
39
|
+
"@storybook/manager-api": "^8.6.14",
|
|
40
40
|
"@storybook/test": "8.5.5",
|
|
41
|
-
"@storybook/theming": "^8.
|
|
41
|
+
"@storybook/theming": "^8.6.14",
|
|
42
42
|
"@storybook/vue3": "8.5.5",
|
|
43
43
|
"@storybook/vue3-vite": "8.5.5",
|
|
44
|
-
"@tsconfig/node22": "^22.0.
|
|
44
|
+
"@tsconfig/node22": "^22.0.5",
|
|
45
45
|
"@types/jsdom": "^21.1.7",
|
|
46
|
-
"@types/node": "^22.
|
|
47
|
-
"@types/react": "^17.0.
|
|
46
|
+
"@types/node": "^22.19.15",
|
|
47
|
+
"@types/react": "^17.0.91",
|
|
48
48
|
"@types/react-dom": "^17.0.26",
|
|
49
|
-
"@vitejs/plugin-react": "^4.
|
|
50
|
-
"@vitejs/plugin-vue": "^5.2.
|
|
51
|
-
"@vitejs/plugin-vue-jsx": "^4.
|
|
49
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
50
|
+
"@vitejs/plugin-vue": "^5.2.4",
|
|
51
|
+
"@vitejs/plugin-vue-jsx": "^4.2.0",
|
|
52
52
|
"@vitest/coverage-v8": "3.0.5",
|
|
53
53
|
"@vitest/eslint-plugin": "1.1.25",
|
|
54
54
|
"@vitest/ui": "3.0.5",
|
|
55
55
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
56
|
-
"@vue/eslint-config-typescript": "^14.
|
|
56
|
+
"@vue/eslint-config-typescript": "^14.7.0",
|
|
57
57
|
"@vue/test-utils": "^2.4.6",
|
|
58
58
|
"@vue/tsconfig": "^0.7.0",
|
|
59
|
-
"autoprefixer": "^10.4.
|
|
60
|
-
"eslint": "^9.
|
|
61
|
-
"eslint-plugin-storybook": "^0.11.
|
|
62
|
-
"eslint-plugin-vue": "^9.
|
|
63
|
-
"jiti": "^2.
|
|
64
|
-
"jsdom": "^26.
|
|
59
|
+
"autoprefixer": "^10.4.27",
|
|
60
|
+
"eslint": "^9.39.3",
|
|
61
|
+
"eslint-plugin-storybook": "^0.11.6",
|
|
62
|
+
"eslint-plugin-vue": "^9.33.0",
|
|
63
|
+
"jiti": "^2.6.1",
|
|
64
|
+
"jsdom": "^26.1.0",
|
|
65
65
|
"npm-run-all2": "^7.0.2",
|
|
66
|
-
"postcss": "^8.5.
|
|
67
|
-
"prettier": "^3.
|
|
66
|
+
"postcss": "^8.5.8",
|
|
67
|
+
"prettier": "^3.8.1",
|
|
68
68
|
"storybook": "8.5.5",
|
|
69
69
|
"storybook-addon-vue-mdx": "^1.0.6",
|
|
70
70
|
"storybook-dark-mode": "^4.0.2",
|
|
71
|
-
"tailwindcss": "^3.4.
|
|
71
|
+
"tailwindcss": "^3.4.19",
|
|
72
72
|
"typescript": "~5.7.3",
|
|
73
|
-
"vite": "^6.1
|
|
73
|
+
"vite": "^6.4.1",
|
|
74
74
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
75
|
-
"vite-plugin-dts": "^4.5.
|
|
76
|
-
"vite-plugin-vue-devtools": "^7.7.
|
|
77
|
-
"vitest": "^3.
|
|
75
|
+
"vite-plugin-dts": "^4.5.4",
|
|
76
|
+
"vite-plugin-vue-devtools": "^7.7.9",
|
|
77
|
+
"vitest": "^3.2.4",
|
|
78
78
|
"vue-loader": "^17.4.2",
|
|
79
|
-
"vue-tsc": "^2.2.
|
|
79
|
+
"vue-tsc": "^2.2.12"
|
|
80
80
|
},
|
|
81
81
|
"contributors": [
|
|
82
82
|
{
|