@comercti/react-components-hmg 0.3.10 → 0.6.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.
- package/comerc-style-guide.cjs.js +3 -3
- package/comerc-style-guide.es.js +1446 -1456
- package/comerc-style-guide.umd.js +6 -6
- package/index.d.ts +21 -10
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { ComponentProvideOptions } from 'vue';
|
|
|
3
3
|
import { default as default_2 } from 'react';
|
|
4
4
|
import { DefineComponent } from 'vue';
|
|
5
5
|
import { IData } from './toast/interfaces';
|
|
6
|
+
import { ItemsSelection as ItemsSelection_2 } from './interfaces';
|
|
6
7
|
import { ItensMenu } from '../../../../../../../../../src/components/menu/interfaces';
|
|
7
8
|
import { IVariants as IVariants_2 } from './interfaces';
|
|
8
9
|
import { PublicProps } from 'vue';
|
|
@@ -12,11 +13,17 @@ import { VNode } from 'vue';
|
|
|
12
13
|
declare const __VLS_component: DefineComponent<DataTableProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
13
14
|
"update:modelValue": (value: Record<string, any>[]) => any;
|
|
14
15
|
updateSelected: (value: Record<string, any>[]) => any;
|
|
15
|
-
orderBy: (value:
|
|
16
|
+
orderBy: (value: {
|
|
17
|
+
key: string;
|
|
18
|
+
order: "asc" | "desc";
|
|
19
|
+
}) => any;
|
|
16
20
|
}, string, PublicProps, Readonly<DataTableProps> & Readonly<{
|
|
17
21
|
"onUpdate:modelValue"?: (value: Record<string, any>[]) => any;
|
|
18
22
|
onUpdateSelected?: (value: Record<string, any>[]) => any;
|
|
19
|
-
onOrderBy?: (value:
|
|
23
|
+
onOrderBy?: (value: {
|
|
24
|
+
key: string;
|
|
25
|
+
order: "asc" | "desc";
|
|
26
|
+
}) => any;
|
|
20
27
|
}>, {
|
|
21
28
|
search: boolean;
|
|
22
29
|
selectable: boolean;
|
|
@@ -239,6 +246,8 @@ onRedirect?: (item: ItensMenu_2) => any;
|
|
|
239
246
|
}>, {
|
|
240
247
|
type: "menu" | "selection";
|
|
241
248
|
variant: "outlined" | "text";
|
|
249
|
+
itemsMenu: ItensMenu_2[];
|
|
250
|
+
itemsSelection: ItemsSelection_2[];
|
|
242
251
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
243
252
|
dropdownRef: HTMLDivElement;
|
|
244
253
|
}, HTMLDivElement>;
|
|
@@ -274,14 +283,14 @@ focus: () => void;
|
|
|
274
283
|
/** Abre/Fecha dropdown do select */
|
|
275
284
|
click: () => void;
|
|
276
285
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
277
|
-
"update:modelValue": (value: string |
|
|
278
|
-
change: (value: string |
|
|
286
|
+
"update:modelValue": (value: string | number | boolean | (string | number | boolean)[] | CustomEvent<any>) => any;
|
|
287
|
+
change: (value: string | number | boolean | (string | number | boolean)[] | CustomEvent<any>) => any;
|
|
279
288
|
inputSearch: (value: string) => any;
|
|
280
289
|
openDropdown: () => any;
|
|
281
290
|
closeDropdown: () => any;
|
|
282
291
|
}, string, PublicProps, Readonly<CeSelectFieldProps> & Readonly<{
|
|
283
|
-
"onUpdate:modelValue"?: (value: string |
|
|
284
|
-
onChange?: (value: string |
|
|
292
|
+
"onUpdate:modelValue"?: (value: string | number | boolean | (string | number | boolean)[] | CustomEvent<any>) => any;
|
|
293
|
+
onChange?: (value: string | number | boolean | (string | number | boolean)[] | CustomEvent<any>) => any;
|
|
285
294
|
onInputSearch?: (value: string) => any;
|
|
286
295
|
onOpenDropdown?: () => any;
|
|
287
296
|
onCloseDropdown?: () => any;
|
|
@@ -1179,8 +1188,10 @@ declare function __VLS_template_5(): {
|
|
|
1179
1188
|
declare function __VLS_template_6(): {
|
|
1180
1189
|
attrs: Partial<{}>;
|
|
1181
1190
|
slots: Readonly<{
|
|
1191
|
+
/** Slot para o conteúdo do button */
|
|
1182
1192
|
default: () => VNode[];
|
|
1183
1193
|
}> & {
|
|
1194
|
+
/** Slot para o conteúdo do button */
|
|
1184
1195
|
default: () => VNode[];
|
|
1185
1196
|
};
|
|
1186
1197
|
refs: {
|
|
@@ -1555,7 +1566,7 @@ export declare const CeSelect: default_2.ComponentType<typeof _default_18>;
|
|
|
1555
1566
|
|
|
1556
1567
|
declare interface CeSelectFieldProps {
|
|
1557
1568
|
/** Valor do select para two-way binding (v-model) */
|
|
1558
|
-
modelValue?: string | string
|
|
1569
|
+
modelValue?: string | number | boolean | Array<string | number | boolean> | null;
|
|
1559
1570
|
/** ID única do select */
|
|
1560
1571
|
id?: string;
|
|
1561
1572
|
/** Estrutura para adicionar o select */
|
|
@@ -1734,11 +1745,11 @@ size: number | string;
|
|
|
1734
1745
|
declare const _default_25: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
1735
1746
|
|
|
1736
1747
|
declare const _default_26: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1737
|
-
toggleMenu: (clicado: boolean) => any;
|
|
1738
1748
|
redirect: (item: SubMenu | ItensMenu_2) => any;
|
|
1749
|
+
toggleMenu: (clicado: boolean) => any;
|
|
1739
1750
|
}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{
|
|
1740
|
-
onToggleMenu?: (clicado: boolean) => any;
|
|
1741
1751
|
onRedirect?: (item: SubMenu | ItensMenu_2) => any;
|
|
1752
|
+
onToggleMenu?: (clicado: boolean) => any;
|
|
1742
1753
|
}>, {
|
|
1743
1754
|
isHome: boolean;
|
|
1744
1755
|
isSearch: boolean;
|
|
@@ -2003,7 +2014,7 @@ export declare const removeCeToast: (id: number) => void;
|
|
|
2003
2014
|
|
|
2004
2015
|
declare interface SelectOption {
|
|
2005
2016
|
label?: string;
|
|
2006
|
-
value?: string | null;
|
|
2017
|
+
value?: string | number | boolean | null;
|
|
2007
2018
|
disabled?: boolean;
|
|
2008
2019
|
header?: string;
|
|
2009
2020
|
}
|