@comercti/react-components-hmg 0.8.21 → 0.8.22
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 +29 -29
- package/comerc-style-guide.es.js +2510 -2422
- package/comerc-style-guide.umd.js +29 -29
- package/index.d.ts +34 -18
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ selectable: boolean;
|
|
|
30
30
|
striped: boolean;
|
|
31
31
|
orderByServer: boolean;
|
|
32
32
|
expandLine: boolean;
|
|
33
|
+
compact: boolean;
|
|
33
34
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
34
35
|
rootRef: HTMLDivElement;
|
|
35
36
|
}, HTMLDivElement>;
|
|
@@ -114,6 +115,7 @@ backgroundColor: string;
|
|
|
114
115
|
titleColor: string;
|
|
115
116
|
disabledSubmit: boolean;
|
|
116
117
|
disabledClear: boolean;
|
|
118
|
+
showClearButton: boolean;
|
|
117
119
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
118
120
|
menuRef: HTMLDivElement;
|
|
119
121
|
}, HTMLDivElement>;
|
|
@@ -197,7 +199,7 @@ type: "inline" | "centralized" | "highlighted";
|
|
|
197
199
|
|
|
198
200
|
declare const __VLS_component_26: DefineComponent<__VLS_Props_33, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_33> & Readonly<{}>, {
|
|
199
201
|
openMenu: boolean;
|
|
200
|
-
layout: "default" | "base";
|
|
202
|
+
layout: "default" | "base" | "minimal";
|
|
201
203
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
202
204
|
|
|
203
205
|
declare const __VLS_component_3: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -236,21 +238,18 @@ rootRef: HTMLDivElement;
|
|
|
236
238
|
}, any>;
|
|
237
239
|
|
|
238
240
|
declare const __VLS_component_6: DefineComponent<DropdownProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
239
|
-
"update:modelValue": (value: ItensMenu_2 | IReturn | Coluna[]) => any;
|
|
240
241
|
selected: (value: Coluna[]) => any;
|
|
241
242
|
redirect: (item: ItensMenu_2) => any;
|
|
242
243
|
}, string, PublicProps, Readonly<DropdownProps> & Readonly<{
|
|
243
|
-
"onUpdate:modelValue"?: (value: ItensMenu_2 | IReturn | Coluna[]) => any;
|
|
244
244
|
onSelected?: (value: Coluna[]) => any;
|
|
245
245
|
onRedirect?: (item: ItensMenu_2) => any;
|
|
246
246
|
}>, {
|
|
247
247
|
type: "menu" | "selection";
|
|
248
|
-
variant: "outlined" | "text";
|
|
249
248
|
itemsMenu: ItensMenu_2[];
|
|
250
249
|
itemsSelection: ItemsSelection_2[];
|
|
251
250
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
252
251
|
dropdownRef: HTMLDivElement;
|
|
253
|
-
},
|
|
252
|
+
}, any>;
|
|
254
253
|
|
|
255
254
|
declare const __VLS_component_7: DefineComponent<__VLS_Props_11, {
|
|
256
255
|
/** focus input */
|
|
@@ -341,7 +340,7 @@ declare type __VLS_Props_10 = {
|
|
|
341
340
|
|
|
342
341
|
declare type __VLS_Props_11 = {
|
|
343
342
|
/** Valor do input para two-way binding (v-model) */
|
|
344
|
-
modelValue?: string | number;
|
|
343
|
+
modelValue?: string | number | null;
|
|
345
344
|
/** Tipo do input (text, password, email, etc) */
|
|
346
345
|
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date';
|
|
347
346
|
/** ID única do input */
|
|
@@ -370,7 +369,7 @@ declare type __VLS_Props_11 = {
|
|
|
370
369
|
|
|
371
370
|
declare type __VLS_Props_12 = {
|
|
372
371
|
/** Valor do radio para two-way binding (v-model) */
|
|
373
|
-
modelValue?: ModelValueType_2;
|
|
372
|
+
modelValue?: ModelValueType_2 | null;
|
|
374
373
|
/** ID única do radio */
|
|
375
374
|
id?: string;
|
|
376
375
|
/** Estrutura para adicionar o radio */
|
|
@@ -519,6 +518,8 @@ declare type __VLS_Props_2 = {
|
|
|
519
518
|
disabled?: boolean;
|
|
520
519
|
/** Define a direção do texto */
|
|
521
520
|
textDirection?: 'left' | 'right';
|
|
521
|
+
/** Define o valor selecionado */
|
|
522
|
+
modelValue: number;
|
|
522
523
|
};
|
|
523
524
|
|
|
524
525
|
declare type __VLS_Props_20 = {
|
|
@@ -564,6 +565,8 @@ declare type __VLS_Props_22 = {
|
|
|
564
565
|
disabledSubmit?: boolean;
|
|
565
566
|
/**Desabilita o botão de limpar */
|
|
566
567
|
disabledClear?: boolean;
|
|
568
|
+
/** Define se o botão de limpar será exibido */
|
|
569
|
+
showClearButton?: boolean;
|
|
567
570
|
};
|
|
568
571
|
|
|
569
572
|
declare type __VLS_Props_23 = {
|
|
@@ -681,7 +684,7 @@ declare type __VLS_Props_33 = {
|
|
|
681
684
|
/** Indica se o menu abriu */
|
|
682
685
|
openMenu?: boolean;
|
|
683
686
|
/** Defini o tipo de layout a ser usado */
|
|
684
|
-
layout: 'default' | 'base';
|
|
687
|
+
layout: 'default' | 'base' | 'minimal';
|
|
685
688
|
};
|
|
686
689
|
|
|
687
690
|
declare type __VLS_Props_34 = {
|
|
@@ -731,7 +734,7 @@ declare type __VLS_Props_6 = {
|
|
|
731
734
|
|
|
732
735
|
declare type __VLS_Props_7 = {
|
|
733
736
|
/** Valor do checkbox para two-way binding (v-model) */
|
|
734
|
-
modelValue?: ModelValueType;
|
|
737
|
+
modelValue?: ModelValueType | null;
|
|
735
738
|
/** ID única do checkbox */
|
|
736
739
|
id?: string;
|
|
737
740
|
/** Valor a ser definido quando checkbox estiver marcado */
|
|
@@ -1116,6 +1119,14 @@ declare function __VLS_template_26(): {
|
|
|
1116
1119
|
content?: () => VNode[];
|
|
1117
1120
|
/** Adicione conteúdo no footer */
|
|
1118
1121
|
footer?: () => VNode[];
|
|
1122
|
+
/** Adicione conteúdo no nav */
|
|
1123
|
+
nav?: () => VNode[];
|
|
1124
|
+
/** Adicione conteúdo no dividers */
|
|
1125
|
+
dividers?: () => VNode[];
|
|
1126
|
+
/** Adicione conteúdo no filter */
|
|
1127
|
+
filter?: () => VNode[];
|
|
1128
|
+
/** Adicione conteúdo na tabela */
|
|
1129
|
+
table?: () => VNode[];
|
|
1119
1130
|
}> & {
|
|
1120
1131
|
/** Adicione conteúdo no header */
|
|
1121
1132
|
header?: () => VNode[];
|
|
@@ -1125,6 +1136,14 @@ declare function __VLS_template_26(): {
|
|
|
1125
1136
|
content?: () => VNode[];
|
|
1126
1137
|
/** Adicione conteúdo no footer */
|
|
1127
1138
|
footer?: () => VNode[];
|
|
1139
|
+
/** Adicione conteúdo no nav */
|
|
1140
|
+
nav?: () => VNode[];
|
|
1141
|
+
/** Adicione conteúdo no dividers */
|
|
1142
|
+
dividers?: () => VNode[];
|
|
1143
|
+
/** Adicione conteúdo no filter */
|
|
1144
|
+
filter?: () => VNode[];
|
|
1145
|
+
/** Adicione conteúdo na tabela */
|
|
1146
|
+
table?: () => VNode[];
|
|
1128
1147
|
};
|
|
1129
1148
|
refs: {};
|
|
1130
1149
|
rootEl: any;
|
|
@@ -1197,7 +1216,7 @@ declare function __VLS_template_6(): {
|
|
|
1197
1216
|
refs: {
|
|
1198
1217
|
dropdownRef: HTMLDivElement;
|
|
1199
1218
|
};
|
|
1200
|
-
rootEl:
|
|
1219
|
+
rootEl: any;
|
|
1201
1220
|
};
|
|
1202
1221
|
|
|
1203
1222
|
declare function __VLS_template_7(): {
|
|
@@ -1625,6 +1644,8 @@ declare type DataTableProps = {
|
|
|
1625
1644
|
orderByServer?: boolean;
|
|
1626
1645
|
/**Permitir a expansão da linha */
|
|
1627
1646
|
expandLine?: boolean;
|
|
1647
|
+
/** Define o estilo compacto da tabela */
|
|
1648
|
+
compact?: boolean;
|
|
1628
1649
|
};
|
|
1629
1650
|
|
|
1630
1651
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1716,6 +1737,7 @@ onPaginate?: (value: number) => any;
|
|
|
1716
1737
|
}>, {
|
|
1717
1738
|
totalPages: number;
|
|
1718
1739
|
currentPage: number;
|
|
1740
|
+
itemsPerPage: number;
|
|
1719
1741
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1720
1742
|
|
|
1721
1743
|
declare const _default_20: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -1870,8 +1892,6 @@ declare interface DropdownProps {
|
|
|
1870
1892
|
itemsMenu?: ItensMenu[];
|
|
1871
1893
|
/** Define os itens do dropdown tipo seleção */
|
|
1872
1894
|
itemsSelection?: ItemsSelection[];
|
|
1873
|
-
/** Define a variante do dropdown */
|
|
1874
|
-
variant?: 'outlined' | 'text';
|
|
1875
1895
|
/** Define o tipo do dropdown */
|
|
1876
1896
|
type?: 'menu' | 'selection';
|
|
1877
1897
|
}
|
|
@@ -1918,12 +1938,6 @@ declare type IProgressStepsProps = {
|
|
|
1918
1938
|
items: IItems[];
|
|
1919
1939
|
};
|
|
1920
1940
|
|
|
1921
|
-
declare interface IReturn {
|
|
1922
|
-
text: string;
|
|
1923
|
-
path?: string;
|
|
1924
|
-
options?: unknown;
|
|
1925
|
-
}
|
|
1926
|
-
|
|
1927
1941
|
export declare const isMobile: Ref<boolean, boolean>;
|
|
1928
1942
|
|
|
1929
1943
|
declare interface ISocialMedia {
|
|
@@ -2008,6 +2022,8 @@ declare type PaginationProps = {
|
|
|
2008
2022
|
totalPages: number;
|
|
2009
2023
|
/** Página atual */
|
|
2010
2024
|
currentPage: number;
|
|
2025
|
+
/** Itens por página */
|
|
2026
|
+
itemsPerPage: number;
|
|
2011
2027
|
};
|
|
2012
2028
|
|
|
2013
2029
|
export declare const removeCeToast: (id: number) => void;
|