@comercti/react-components-hmg 0.8.20 → 0.8.21
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 +2422 -2511
- package/comerc-style-guide.umd.js +29 -29
- package/index.d.ts +39 -55
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -30,7 +30,6 @@ selectable: boolean;
|
|
|
30
30
|
striped: boolean;
|
|
31
31
|
orderByServer: boolean;
|
|
32
32
|
expandLine: boolean;
|
|
33
|
-
compact: boolean;
|
|
34
33
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
35
34
|
rootRef: HTMLDivElement;
|
|
36
35
|
}, HTMLDivElement>;
|
|
@@ -115,7 +114,6 @@ backgroundColor: string;
|
|
|
115
114
|
titleColor: string;
|
|
116
115
|
disabledSubmit: boolean;
|
|
117
116
|
disabledClear: boolean;
|
|
118
|
-
showClearButton: boolean;
|
|
119
117
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
120
118
|
menuRef: HTMLDivElement;
|
|
121
119
|
}, HTMLDivElement>;
|
|
@@ -199,7 +197,7 @@ type: "inline" | "centralized" | "highlighted";
|
|
|
199
197
|
|
|
200
198
|
declare const __VLS_component_26: DefineComponent<__VLS_Props_33, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_33> & Readonly<{}>, {
|
|
201
199
|
openMenu: boolean;
|
|
202
|
-
layout: "default" | "base"
|
|
200
|
+
layout: "default" | "base";
|
|
203
201
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
204
202
|
|
|
205
203
|
declare const __VLS_component_3: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -238,18 +236,21 @@ rootRef: HTMLDivElement;
|
|
|
238
236
|
}, any>;
|
|
239
237
|
|
|
240
238
|
declare const __VLS_component_6: DefineComponent<DropdownProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
239
|
+
"update:modelValue": (value: ItensMenu_2 | IReturn | Coluna[]) => any;
|
|
241
240
|
selected: (value: Coluna[]) => any;
|
|
242
241
|
redirect: (item: ItensMenu_2) => any;
|
|
243
242
|
}, 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";
|
|
248
249
|
itemsMenu: ItensMenu_2[];
|
|
249
250
|
itemsSelection: ItemsSelection_2[];
|
|
250
251
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
251
252
|
dropdownRef: HTMLDivElement;
|
|
252
|
-
},
|
|
253
|
+
}, HTMLDivElement>;
|
|
253
254
|
|
|
254
255
|
declare const __VLS_component_7: DefineComponent<__VLS_Props_11, {
|
|
255
256
|
/** focus input */
|
|
@@ -340,7 +341,7 @@ declare type __VLS_Props_10 = {
|
|
|
340
341
|
|
|
341
342
|
declare type __VLS_Props_11 = {
|
|
342
343
|
/** Valor do input para two-way binding (v-model) */
|
|
343
|
-
modelValue?: string | number
|
|
344
|
+
modelValue?: string | number;
|
|
344
345
|
/** Tipo do input (text, password, email, etc) */
|
|
345
346
|
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date';
|
|
346
347
|
/** ID única do input */
|
|
@@ -369,7 +370,7 @@ declare type __VLS_Props_11 = {
|
|
|
369
370
|
|
|
370
371
|
declare type __VLS_Props_12 = {
|
|
371
372
|
/** Valor do radio para two-way binding (v-model) */
|
|
372
|
-
modelValue?: ModelValueType_2
|
|
373
|
+
modelValue?: ModelValueType_2;
|
|
373
374
|
/** ID única do radio */
|
|
374
375
|
id?: string;
|
|
375
376
|
/** Estrutura para adicionar o radio */
|
|
@@ -518,8 +519,6 @@ declare type __VLS_Props_2 = {
|
|
|
518
519
|
disabled?: boolean;
|
|
519
520
|
/** Define a direção do texto */
|
|
520
521
|
textDirection?: 'left' | 'right';
|
|
521
|
-
/** Define o valor selecionado */
|
|
522
|
-
modelValue: number;
|
|
523
522
|
};
|
|
524
523
|
|
|
525
524
|
declare type __VLS_Props_20 = {
|
|
@@ -565,8 +564,6 @@ declare type __VLS_Props_22 = {
|
|
|
565
564
|
disabledSubmit?: boolean;
|
|
566
565
|
/**Desabilita o botão de limpar */
|
|
567
566
|
disabledClear?: boolean;
|
|
568
|
-
/** Define se o botão de limpar será exibido */
|
|
569
|
-
showClearButton?: boolean;
|
|
570
567
|
};
|
|
571
568
|
|
|
572
569
|
declare type __VLS_Props_23 = {
|
|
@@ -684,7 +681,7 @@ declare type __VLS_Props_33 = {
|
|
|
684
681
|
/** Indica se o menu abriu */
|
|
685
682
|
openMenu?: boolean;
|
|
686
683
|
/** Defini o tipo de layout a ser usado */
|
|
687
|
-
layout: 'default' | 'base'
|
|
684
|
+
layout: 'default' | 'base';
|
|
688
685
|
};
|
|
689
686
|
|
|
690
687
|
declare type __VLS_Props_34 = {
|
|
@@ -734,7 +731,7 @@ declare type __VLS_Props_6 = {
|
|
|
734
731
|
|
|
735
732
|
declare type __VLS_Props_7 = {
|
|
736
733
|
/** Valor do checkbox para two-way binding (v-model) */
|
|
737
|
-
modelValue?: ModelValueType
|
|
734
|
+
modelValue?: ModelValueType;
|
|
738
735
|
/** ID única do checkbox */
|
|
739
736
|
id?: string;
|
|
740
737
|
/** Valor a ser definido quando checkbox estiver marcado */
|
|
@@ -1119,14 +1116,6 @@ declare function __VLS_template_26(): {
|
|
|
1119
1116
|
content?: () => VNode[];
|
|
1120
1117
|
/** Adicione conteúdo no footer */
|
|
1121
1118
|
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[];
|
|
1130
1119
|
}> & {
|
|
1131
1120
|
/** Adicione conteúdo no header */
|
|
1132
1121
|
header?: () => VNode[];
|
|
@@ -1136,14 +1125,6 @@ declare function __VLS_template_26(): {
|
|
|
1136
1125
|
content?: () => VNode[];
|
|
1137
1126
|
/** Adicione conteúdo no footer */
|
|
1138
1127
|
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[];
|
|
1147
1128
|
};
|
|
1148
1129
|
refs: {};
|
|
1149
1130
|
rootEl: any;
|
|
@@ -1216,7 +1197,7 @@ declare function __VLS_template_6(): {
|
|
|
1216
1197
|
refs: {
|
|
1217
1198
|
dropdownRef: HTMLDivElement;
|
|
1218
1199
|
};
|
|
1219
|
-
rootEl:
|
|
1200
|
+
rootEl: HTMLDivElement;
|
|
1220
1201
|
};
|
|
1221
1202
|
|
|
1222
1203
|
declare function __VLS_template_7(): {
|
|
@@ -1644,8 +1625,6 @@ declare type DataTableProps = {
|
|
|
1644
1625
|
orderByServer?: boolean;
|
|
1645
1626
|
/**Permitir a expansão da linha */
|
|
1646
1627
|
expandLine?: boolean;
|
|
1647
|
-
/** Define o estilo compacto da tabela */
|
|
1648
|
-
compact?: boolean;
|
|
1649
1628
|
};
|
|
1650
1629
|
|
|
1651
1630
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1737,7 +1716,6 @@ onPaginate?: (value: number) => any;
|
|
|
1737
1716
|
}>, {
|
|
1738
1717
|
totalPages: number;
|
|
1739
1718
|
currentPage: number;
|
|
1740
|
-
itemsPerPage: number;
|
|
1741
1719
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1742
1720
|
|
|
1743
1721
|
declare const _default_20: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -1892,6 +1870,8 @@ declare interface DropdownProps {
|
|
|
1892
1870
|
itemsMenu?: ItensMenu[];
|
|
1893
1871
|
/** Define os itens do dropdown tipo seleção */
|
|
1894
1872
|
itemsSelection?: ItemsSelection[];
|
|
1873
|
+
/** Define a variante do dropdown */
|
|
1874
|
+
variant?: 'outlined' | 'text';
|
|
1895
1875
|
/** Define o tipo do dropdown */
|
|
1896
1876
|
type?: 'menu' | 'selection';
|
|
1897
1877
|
}
|
|
@@ -1938,6 +1918,12 @@ declare type IProgressStepsProps = {
|
|
|
1938
1918
|
items: IItems[];
|
|
1939
1919
|
};
|
|
1940
1920
|
|
|
1921
|
+
declare interface IReturn {
|
|
1922
|
+
text: string;
|
|
1923
|
+
path?: string;
|
|
1924
|
+
options?: unknown;
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1941
1927
|
export declare const isMobile: Ref<boolean, boolean>;
|
|
1942
1928
|
|
|
1943
1929
|
declare interface ISocialMedia {
|
|
@@ -2022,8 +2008,6 @@ declare type PaginationProps = {
|
|
|
2022
2008
|
totalPages: number;
|
|
2023
2009
|
/** Página atual */
|
|
2024
2010
|
currentPage: number;
|
|
2025
|
-
/** Itens por página */
|
|
2026
|
-
itemsPerPage: number;
|
|
2027
2011
|
};
|
|
2028
2012
|
|
|
2029
2013
|
export declare const removeCeToast: (id: number) => void;
|
|
@@ -2080,6 +2064,17 @@ data: IData | null;
|
|
|
2080
2064
|
export { }
|
|
2081
2065
|
|
|
2082
2066
|
|
|
2067
|
+
declare module 'vue' {
|
|
2068
|
+
interface GlobalComponents {
|
|
2069
|
+
'ce-pagination': typeof PaginationComponent;
|
|
2070
|
+
'ce-progress-indicator': typeof ProgressIndicatorComponent;
|
|
2071
|
+
'ce-progress-steps': typeof ProgressStepsComponent;
|
|
2072
|
+
'ce-data-table': typeof DataTableComponent;
|
|
2073
|
+
'ce-items-per-page': typeof ItemsPerPageComponent;
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2077
|
+
|
|
2083
2078
|
declare module 'vue' {
|
|
2084
2079
|
interface GlobalComponents {
|
|
2085
2080
|
'ce-autocomplete': typeof AutocompleteComponent;
|
|
@@ -2123,13 +2118,9 @@ declare module 'vue' {
|
|
|
2123
2118
|
|
|
2124
2119
|
declare module 'vue' {
|
|
2125
2120
|
interface GlobalComponents {
|
|
2126
|
-
'ce-
|
|
2127
|
-
'ce-
|
|
2128
|
-
'ce-
|
|
2129
|
-
'ce-content-divider': typeof ContentDividerComponent;
|
|
2130
|
-
'ce-footer': typeof FooterComponent;
|
|
2131
|
-
'ce-layout': typeof LayoutComponent;
|
|
2132
|
-
'ce-section-footer': typeof SectionFooterComponent;
|
|
2121
|
+
'ce-avatar': typeof AvatarComponent;
|
|
2122
|
+
'ce-filter-group': typeof FilterGroupComponent;
|
|
2123
|
+
'ce-badge': typeof BadgeComponent;
|
|
2133
2124
|
}
|
|
2134
2125
|
}
|
|
2135
2126
|
|
|
@@ -2147,19 +2138,12 @@ declare module 'vue' {
|
|
|
2147
2138
|
|
|
2148
2139
|
declare module 'vue' {
|
|
2149
2140
|
interface GlobalComponents {
|
|
2150
|
-
'ce-
|
|
2151
|
-
'ce-
|
|
2152
|
-
'ce-
|
|
2153
|
-
'ce-
|
|
2154
|
-
'ce-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
declare module 'vue' {
|
|
2160
|
-
interface GlobalComponents {
|
|
2161
|
-
'ce-avatar': typeof AvatarComponent;
|
|
2162
|
-
'ce-filter-group': typeof FilterGroupComponent;
|
|
2163
|
-
'ce-badge': typeof BadgeComponent;
|
|
2141
|
+
'ce-card': typeof CardComponent;
|
|
2142
|
+
'ce-card-header': typeof CardHeaderComponent;
|
|
2143
|
+
'ce-card-text': typeof CardTextComponent;
|
|
2144
|
+
'ce-content-divider': typeof ContentDividerComponent;
|
|
2145
|
+
'ce-footer': typeof FooterComponent;
|
|
2146
|
+
'ce-layout': typeof LayoutComponent;
|
|
2147
|
+
'ce-section-footer': typeof SectionFooterComponent;
|
|
2164
2148
|
}
|
|
2165
2149
|
}
|