@comercti/react-components-hmg 0.0.50 → 0.2.2
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 +25 -25
- package/comerc-style-guide.es.js +1518 -1426
- package/comerc-style-guide.umd.js +28 -28
- package/index.d.ts +42 -21
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,16 +9,20 @@ import { PublicProps } from 'vue';
|
|
|
9
9
|
import { Ref } from 'vue';
|
|
10
10
|
import { VNode } from 'vue';
|
|
11
11
|
|
|
12
|
-
declare const __VLS_component: DefineComponent<
|
|
12
|
+
declare const __VLS_component: DefineComponent<DataTableProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
13
13
|
"update:modelValue": (value: Record<string, any>[]) => any;
|
|
14
14
|
updateSelected: (value: Record<string, any>[]) => any;
|
|
15
|
-
|
|
15
|
+
orderBy: (value: string) => any;
|
|
16
|
+
}, string, PublicProps, Readonly<DataTableProps> & Readonly<{
|
|
16
17
|
"onUpdate:modelValue"?: (value: Record<string, any>[]) => any;
|
|
17
18
|
onUpdateSelected?: (value: Record<string, any>[]) => any;
|
|
19
|
+
onOrderBy?: (value: string) => any;
|
|
18
20
|
}>, {
|
|
19
21
|
search: boolean;
|
|
20
|
-
striped: boolean;
|
|
21
22
|
selectable: boolean;
|
|
23
|
+
striped: boolean;
|
|
24
|
+
orderByServer: boolean;
|
|
25
|
+
expandLine: boolean;
|
|
22
26
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
23
27
|
rootRef: HTMLDivElement;
|
|
24
28
|
}, HTMLDivElement>;
|
|
@@ -142,7 +146,6 @@ onClick?: (event: MouseEvent) => any;
|
|
|
142
146
|
disabled: boolean;
|
|
143
147
|
block: boolean;
|
|
144
148
|
type: "button" | "submit" | "a";
|
|
145
|
-
size: "small" | "medium" | "large";
|
|
146
149
|
rounded: "small" | "medium" | "large";
|
|
147
150
|
variant: tipoVariante;
|
|
148
151
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
@@ -584,8 +587,10 @@ declare type __VLS_Props_26 = {
|
|
|
584
587
|
declare type __VLS_Props_27 = {
|
|
585
588
|
/** Define o tipo de spinner */
|
|
586
589
|
type: 'spinner' | 'semi-circle' | 'dots';
|
|
587
|
-
/** Define se o
|
|
588
|
-
showLoading
|
|
590
|
+
/** Define se o loading deve ser exibido ou não */
|
|
591
|
+
showLoading?: boolean;
|
|
592
|
+
/** Define a cor do background */
|
|
593
|
+
background?: 'smoky' | 'transparent';
|
|
589
594
|
};
|
|
590
595
|
|
|
591
596
|
declare type __VLS_Props_28 = {
|
|
@@ -621,8 +626,6 @@ declare type __VLS_Props_29 = {
|
|
|
621
626
|
declare type __VLS_Props_3 = {
|
|
622
627
|
/** Tipo do button (`attrs:to` ou `attrs:href` podem sobrepor essa regra) */
|
|
623
628
|
type?: 'button' | 'submit' | 'a';
|
|
624
|
-
/** Tamanho do button */
|
|
625
|
-
size?: 'small' | 'medium' | 'large';
|
|
626
629
|
/** Variante de cores do button */
|
|
627
630
|
variant?: tipoVariante;
|
|
628
631
|
/** Arredondamento do button */
|
|
@@ -785,6 +788,12 @@ declare function __VLS_template(): {
|
|
|
785
788
|
} & {
|
|
786
789
|
/**Slot usado para exibir botões de ação */
|
|
787
790
|
groupButton?: (scope: {}) => VNode[];
|
|
791
|
+
/** Adiciona conteúdo na direta da tabela */
|
|
792
|
+
addToRight?: (scope: {}) => VNode[];
|
|
793
|
+
/**Slot usado para exibir o conteúdo expandido da tabela */
|
|
794
|
+
expandedRow?: (scope: {
|
|
795
|
+
item: Record<string, any>;
|
|
796
|
+
}) => VNode[];
|
|
788
797
|
}>> & {
|
|
789
798
|
[key: string]: (props: {
|
|
790
799
|
item: Record<string, any>;
|
|
@@ -798,6 +807,12 @@ declare function __VLS_template(): {
|
|
|
798
807
|
} & {
|
|
799
808
|
/**Slot usado para exibir botões de ação */
|
|
800
809
|
groupButton?: (scope: {}) => VNode[];
|
|
810
|
+
/** Adiciona conteúdo na direta da tabela */
|
|
811
|
+
addToRight?: (scope: {}) => VNode[];
|
|
812
|
+
/**Slot usado para exibir o conteúdo expandido da tabela */
|
|
813
|
+
expandedRow?: (scope: {
|
|
814
|
+
item: Record<string, any>;
|
|
815
|
+
}) => VNode[];
|
|
801
816
|
};
|
|
802
817
|
refs: {
|
|
803
818
|
rootRef: HTMLDivElement;
|
|
@@ -826,18 +841,18 @@ declare function __VLS_template_11(): {
|
|
|
826
841
|
attrs: Partial<{}>;
|
|
827
842
|
slots: Readonly<{
|
|
828
843
|
/** Adiciona conteúdo na direta do menu */
|
|
829
|
-
addToRight?: (scope: {}) =>
|
|
844
|
+
addToRight?: (scope: {}) => VNode[];
|
|
830
845
|
/** Adiciona imagem no menu */
|
|
831
|
-
addImg?: (scope: {}) =>
|
|
846
|
+
addImg?: (scope: {}) => VNode[];
|
|
832
847
|
/** Adiciona conteúdo no menu */
|
|
833
|
-
addContent?: (scope: {}) =>
|
|
848
|
+
addContent?: (scope: {}) => VNode[];
|
|
834
849
|
}> & {
|
|
835
850
|
/** Adiciona conteúdo na direta do menu */
|
|
836
|
-
addToRight?: (scope: {}) =>
|
|
851
|
+
addToRight?: (scope: {}) => VNode[];
|
|
837
852
|
/** Adiciona imagem no menu */
|
|
838
|
-
addImg?: (scope: {}) =>
|
|
853
|
+
addImg?: (scope: {}) => VNode[];
|
|
839
854
|
/** Adiciona conteúdo no menu */
|
|
840
|
-
addContent?: (scope: {}) =>
|
|
855
|
+
addContent?: (scope: {}) => VNode[];
|
|
841
856
|
};
|
|
842
857
|
refs: {};
|
|
843
858
|
rootEl: any;
|
|
@@ -1420,7 +1435,9 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
|
1420
1435
|
};
|
|
1421
1436
|
};
|
|
1422
1437
|
|
|
1423
|
-
export declare const
|
|
1438
|
+
export declare const activateCeLoading: () => void;
|
|
1439
|
+
|
|
1440
|
+
export declare const addCeToast: (title: string, message: string, type: "success" | "error" | "warn" | "info", duration?: number, data?: IData | null) => void;
|
|
1424
1441
|
|
|
1425
1442
|
export declare const CeAutocomplete: default_2.ComponentType<typeof _default_5>;
|
|
1426
1443
|
|
|
@@ -1539,11 +1556,6 @@ export declare const CeToggle: default_2.ComponentType<typeof _default_19>;
|
|
|
1539
1556
|
|
|
1540
1557
|
export declare const CeTooltip: default_2.ComponentType<typeof _default_35>;
|
|
1541
1558
|
|
|
1542
|
-
declare interface DataTableDefault extends DataTableProps {
|
|
1543
|
-
/** Ativa a opção de colorir linha sim linha não na tabela */
|
|
1544
|
-
striped?: boolean;
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1547
1559
|
declare type DataTableProps = {
|
|
1548
1560
|
/** Array utilizado no header da tabela */
|
|
1549
1561
|
headers: Header[];
|
|
@@ -1553,6 +1565,12 @@ declare type DataTableProps = {
|
|
|
1553
1565
|
search?: boolean;
|
|
1554
1566
|
/** Array de objetos que serão exibidos na tabela */
|
|
1555
1567
|
items: Record<string, any>[];
|
|
1568
|
+
/** Ativa a opção de colorir linha sim linha não na tabela */
|
|
1569
|
+
striped?: boolean;
|
|
1570
|
+
/** Define que a ordenação será feita junto ao backend */
|
|
1571
|
+
orderByServer?: boolean;
|
|
1572
|
+
/**Permitir a expansão da linha */
|
|
1573
|
+
expandLine?: boolean;
|
|
1556
1574
|
};
|
|
1557
1575
|
|
|
1558
1576
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1726,6 +1744,7 @@ declare const _default_35: __VLS_WithTemplateSlots_20<typeof __VLS_component_20,
|
|
|
1726
1744
|
|
|
1727
1745
|
declare const _default_36: DefineComponent<__VLS_Props_27, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_27> & Readonly<{}>, {
|
|
1728
1746
|
type: "spinner" | "semi-circle" | "dots";
|
|
1747
|
+
background: "smoky" | "transparent";
|
|
1729
1748
|
showLoading: boolean;
|
|
1730
1749
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1731
1750
|
|
|
@@ -1787,6 +1806,8 @@ totalPage: number;
|
|
|
1787
1806
|
|
|
1788
1807
|
declare const _default_9: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
1789
1808
|
|
|
1809
|
+
export declare const disableCeLoading: () => void;
|
|
1810
|
+
|
|
1790
1811
|
declare interface FileItem {
|
|
1791
1812
|
file: File;
|
|
1792
1813
|
progress: number;
|
|
@@ -1913,7 +1934,7 @@ declare type PaginationProps = {
|
|
|
1913
1934
|
currentPage: number;
|
|
1914
1935
|
};
|
|
1915
1936
|
|
|
1916
|
-
export declare const
|
|
1937
|
+
export declare const removeCeToast: (id: number) => void;
|
|
1917
1938
|
|
|
1918
1939
|
declare interface SelectOption {
|
|
1919
1940
|
label?: string;
|