@comercti/react-components-hmg 0.32.12 → 0.33.3
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 +3750 -3587
- package/comerc-style-guide.umd.js +40 -34
- package/index.d.ts +35 -2
- package/package.json +30 -30
package/index.d.ts
CHANGED
|
@@ -9,14 +9,24 @@ import { VNode } from 'vue';
|
|
|
9
9
|
|
|
10
10
|
declare const __VLS_component: DefineComponent<DataTableProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
11
11
|
"update:modelValue": (value: Record<string, any>[]) => any;
|
|
12
|
+
input: (value: string) => any;
|
|
12
13
|
updateSelected: (value: Record<string, any>[]) => any;
|
|
14
|
+
"update:modelValueEditable": (value: {
|
|
15
|
+
field: string;
|
|
16
|
+
value: string | boolean | number;
|
|
17
|
+
}) => any;
|
|
13
18
|
orderBy: (value: {
|
|
14
19
|
key: string;
|
|
15
20
|
order: "asc" | "desc";
|
|
16
21
|
}) => any;
|
|
17
22
|
}, string, PublicProps, Readonly<DataTableProps> & Readonly<{
|
|
18
23
|
"onUpdate:modelValue"?: (value: Record<string, any>[]) => any;
|
|
24
|
+
onInput?: (value: string) => any;
|
|
19
25
|
onUpdateSelected?: (value: Record<string, any>[]) => any;
|
|
26
|
+
"onUpdate:modelValueEditable"?: (value: {
|
|
27
|
+
field: string;
|
|
28
|
+
value: string | boolean | number;
|
|
29
|
+
}) => any;
|
|
20
30
|
onOrderBy?: (value: {
|
|
21
31
|
key: string;
|
|
22
32
|
order: "asc" | "desc";
|
|
@@ -34,11 +44,14 @@ loading: boolean;
|
|
|
34
44
|
loadingType: "spinner" | "semi-circle" | "dots";
|
|
35
45
|
truncated: boolean;
|
|
36
46
|
copyable: boolean;
|
|
47
|
+
editable: boolean;
|
|
37
48
|
editColumnStyle: {
|
|
38
49
|
fields: string[];
|
|
39
50
|
style?: Record<string, string>;
|
|
40
51
|
class?: string;
|
|
41
52
|
};
|
|
53
|
+
backgroundPagination: "transparent" | `#${string}` | `rgb(${string})` | `rgba(${string})`;
|
|
54
|
+
backgroundTitle: "transparent" | `#${string}` | `rgb(${string})` | `rgba(${string})`;
|
|
42
55
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
43
56
|
rootRef: HTMLDivElement;
|
|
44
57
|
}, HTMLDivElement>;
|
|
@@ -329,12 +342,12 @@ valorSemMascara: Ref<string | number, string | number>;
|
|
|
329
342
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
330
343
|
"update:modelValue": (value: string | number | CustomEvent<any>) => any;
|
|
331
344
|
change: (value: string | number | CustomEvent<any>) => any;
|
|
332
|
-
input: (value:
|
|
345
|
+
input: (value: Event) => any;
|
|
333
346
|
blur: (value: string | number | CustomEvent<any>) => any;
|
|
334
347
|
}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{
|
|
335
348
|
"onUpdate:modelValue"?: (value: string | number | CustomEvent<any>) => any;
|
|
336
349
|
onChange?: (value: string | number | CustomEvent<any>) => any;
|
|
337
|
-
onInput?: (value:
|
|
350
|
+
onInput?: (value: Event) => any;
|
|
338
351
|
onBlur?: (value: string | number | CustomEvent<any>) => any;
|
|
339
352
|
}>, {
|
|
340
353
|
invalid: boolean;
|
|
@@ -1818,6 +1831,8 @@ declare interface Coluna {
|
|
|
1818
1831
|
value: string;
|
|
1819
1832
|
}
|
|
1820
1833
|
|
|
1834
|
+
declare type CSSColor = HexColor | RgbColor | RgbaColor | 'transparent';
|
|
1835
|
+
|
|
1821
1836
|
declare type DataTableProps = {
|
|
1822
1837
|
/** Array utilizado no header da tabela
|
|
1823
1838
|
*
|
|
@@ -1859,12 +1874,18 @@ declare type DataTableProps = {
|
|
|
1859
1874
|
paginationStyle?: string;
|
|
1860
1875
|
/** Habilita a funcionalidade de copiar o conteúdo da célula ao clicar */
|
|
1861
1876
|
copyable?: boolean;
|
|
1877
|
+
/** Habilita a funcionalidade de editar o conteúdo da célula ao clicar */
|
|
1878
|
+
editable?: boolean;
|
|
1862
1879
|
/** Configurações para estilizar colunas editáveis */
|
|
1863
1880
|
editColumnStyle?: {
|
|
1864
1881
|
fields: string[];
|
|
1865
1882
|
style?: Record<string, string>;
|
|
1866
1883
|
class?: string;
|
|
1867
1884
|
};
|
|
1885
|
+
/** Define o estilo de fundo do slot de paginação */
|
|
1886
|
+
backgroundPagination?: CSSColor;
|
|
1887
|
+
/** Define o estilo de fundo da area superior da tabela */
|
|
1888
|
+
backgroundTitle?: CSSColor;
|
|
1868
1889
|
};
|
|
1869
1890
|
|
|
1870
1891
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -2180,8 +2201,14 @@ declare type Header = {
|
|
|
2180
2201
|
value: string | ((item: Record<string, unknown>) => string);
|
|
2181
2202
|
sortable?: boolean;
|
|
2182
2203
|
width?: string;
|
|
2204
|
+
editableField?: {
|
|
2205
|
+
type: InputType | 'boolean';
|
|
2206
|
+
mask?: string | string[];
|
|
2207
|
+
};
|
|
2183
2208
|
};
|
|
2184
2209
|
|
|
2210
|
+
declare type HexColor = `#${string}`;
|
|
2211
|
+
|
|
2185
2212
|
declare interface IBreadcrumbsProps {
|
|
2186
2213
|
/** Define o ponto de partida do breadcrumbs */
|
|
2187
2214
|
home: string;
|
|
@@ -2274,6 +2301,8 @@ declare interface IItems {
|
|
|
2274
2301
|
showDescription?: boolean;
|
|
2275
2302
|
}
|
|
2276
2303
|
|
|
2304
|
+
declare type InputType = 'number' | 'search' | 'time' | 'text' | 'password' | 'email' | 'tel' | 'url' | 'date' | 'datetime-local';
|
|
2305
|
+
|
|
2277
2306
|
declare type IProgressStepsProps = {
|
|
2278
2307
|
/** Define os itens que serão exibidos */
|
|
2279
2308
|
items: IItems[];
|
|
@@ -2409,6 +2438,10 @@ declare interface Props_2 {
|
|
|
2409
2438
|
|
|
2410
2439
|
export declare const removeCeToast: (id: number) => void;
|
|
2411
2440
|
|
|
2441
|
+
declare type RgbaColor = `rgba(${string})`;
|
|
2442
|
+
|
|
2443
|
+
declare type RgbColor = `rgb(${string})`;
|
|
2444
|
+
|
|
2412
2445
|
declare interface SelectOption {
|
|
2413
2446
|
label?: string;
|
|
2414
2447
|
value?: string | number | boolean | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comercti/react-components-hmg",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.3",
|
|
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
|
{
|