@comercti/react-components-hmg 0.0.50 → 0.2.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 +25 -25
- package/comerc-style-guide.es.js +1742 -1654
- package/comerc-style-guide.umd.js +28 -28
- package/index.d.ts +39 -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,8 @@ 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;
|
|
589
592
|
};
|
|
590
593
|
|
|
591
594
|
declare type __VLS_Props_28 = {
|
|
@@ -621,8 +624,6 @@ declare type __VLS_Props_29 = {
|
|
|
621
624
|
declare type __VLS_Props_3 = {
|
|
622
625
|
/** Tipo do button (`attrs:to` ou `attrs:href` podem sobrepor essa regra) */
|
|
623
626
|
type?: 'button' | 'submit' | 'a';
|
|
624
|
-
/** Tamanho do button */
|
|
625
|
-
size?: 'small' | 'medium' | 'large';
|
|
626
627
|
/** Variante de cores do button */
|
|
627
628
|
variant?: tipoVariante;
|
|
628
629
|
/** Arredondamento do button */
|
|
@@ -785,6 +786,12 @@ declare function __VLS_template(): {
|
|
|
785
786
|
} & {
|
|
786
787
|
/**Slot usado para exibir botões de ação */
|
|
787
788
|
groupButton?: (scope: {}) => VNode[];
|
|
789
|
+
/** Adiciona conteúdo na direta da tabela */
|
|
790
|
+
addToRight?: (scope: {}) => VNode[];
|
|
791
|
+
/**Slot usado para exibir o conteúdo expandido da tabela */
|
|
792
|
+
expandedRow?: (scope: {
|
|
793
|
+
item: Record<string, any>;
|
|
794
|
+
}) => VNode[];
|
|
788
795
|
}>> & {
|
|
789
796
|
[key: string]: (props: {
|
|
790
797
|
item: Record<string, any>;
|
|
@@ -798,6 +805,12 @@ declare function __VLS_template(): {
|
|
|
798
805
|
} & {
|
|
799
806
|
/**Slot usado para exibir botões de ação */
|
|
800
807
|
groupButton?: (scope: {}) => VNode[];
|
|
808
|
+
/** Adiciona conteúdo na direta da tabela */
|
|
809
|
+
addToRight?: (scope: {}) => VNode[];
|
|
810
|
+
/**Slot usado para exibir o conteúdo expandido da tabela */
|
|
811
|
+
expandedRow?: (scope: {
|
|
812
|
+
item: Record<string, any>;
|
|
813
|
+
}) => VNode[];
|
|
801
814
|
};
|
|
802
815
|
refs: {
|
|
803
816
|
rootRef: HTMLDivElement;
|
|
@@ -826,18 +839,18 @@ declare function __VLS_template_11(): {
|
|
|
826
839
|
attrs: Partial<{}>;
|
|
827
840
|
slots: Readonly<{
|
|
828
841
|
/** Adiciona conteúdo na direta do menu */
|
|
829
|
-
addToRight?: (scope: {}) =>
|
|
842
|
+
addToRight?: (scope: {}) => VNode[];
|
|
830
843
|
/** Adiciona imagem no menu */
|
|
831
|
-
addImg?: (scope: {}) =>
|
|
844
|
+
addImg?: (scope: {}) => VNode[];
|
|
832
845
|
/** Adiciona conteúdo no menu */
|
|
833
|
-
addContent?: (scope: {}) =>
|
|
846
|
+
addContent?: (scope: {}) => VNode[];
|
|
834
847
|
}> & {
|
|
835
848
|
/** Adiciona conteúdo na direta do menu */
|
|
836
|
-
addToRight?: (scope: {}) =>
|
|
849
|
+
addToRight?: (scope: {}) => VNode[];
|
|
837
850
|
/** Adiciona imagem no menu */
|
|
838
|
-
addImg?: (scope: {}) =>
|
|
851
|
+
addImg?: (scope: {}) => VNode[];
|
|
839
852
|
/** Adiciona conteúdo no menu */
|
|
840
|
-
addContent?: (scope: {}) =>
|
|
853
|
+
addContent?: (scope: {}) => VNode[];
|
|
841
854
|
};
|
|
842
855
|
refs: {};
|
|
843
856
|
rootEl: any;
|
|
@@ -1420,7 +1433,9 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
|
1420
1433
|
};
|
|
1421
1434
|
};
|
|
1422
1435
|
|
|
1423
|
-
export declare const
|
|
1436
|
+
export declare const activateCeLoading: () => void;
|
|
1437
|
+
|
|
1438
|
+
export declare const addCeToast: (title: string, message: string, type: "success" | "error" | "warn" | "info", duration?: number, data?: IData | null) => void;
|
|
1424
1439
|
|
|
1425
1440
|
export declare const CeAutocomplete: default_2.ComponentType<typeof _default_5>;
|
|
1426
1441
|
|
|
@@ -1539,11 +1554,6 @@ export declare const CeToggle: default_2.ComponentType<typeof _default_19>;
|
|
|
1539
1554
|
|
|
1540
1555
|
export declare const CeTooltip: default_2.ComponentType<typeof _default_35>;
|
|
1541
1556
|
|
|
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
1557
|
declare type DataTableProps = {
|
|
1548
1558
|
/** Array utilizado no header da tabela */
|
|
1549
1559
|
headers: Header[];
|
|
@@ -1553,6 +1563,12 @@ declare type DataTableProps = {
|
|
|
1553
1563
|
search?: boolean;
|
|
1554
1564
|
/** Array de objetos que serão exibidos na tabela */
|
|
1555
1565
|
items: Record<string, any>[];
|
|
1566
|
+
/** Ativa a opção de colorir linha sim linha não na tabela */
|
|
1567
|
+
striped?: boolean;
|
|
1568
|
+
/** Define que a ordenação será feita junto ao backend */
|
|
1569
|
+
orderByServer?: boolean;
|
|
1570
|
+
/**Permitir a expansão da linha */
|
|
1571
|
+
expandLine?: boolean;
|
|
1556
1572
|
};
|
|
1557
1573
|
|
|
1558
1574
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1787,6 +1803,8 @@ totalPage: number;
|
|
|
1787
1803
|
|
|
1788
1804
|
declare const _default_9: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
1789
1805
|
|
|
1806
|
+
export declare const disableCeLoading: () => void;
|
|
1807
|
+
|
|
1790
1808
|
declare interface FileItem {
|
|
1791
1809
|
file: File;
|
|
1792
1810
|
progress: number;
|
|
@@ -1913,7 +1931,7 @@ declare type PaginationProps = {
|
|
|
1913
1931
|
currentPage: number;
|
|
1914
1932
|
};
|
|
1915
1933
|
|
|
1916
|
-
export declare const
|
|
1934
|
+
export declare const removeCeToast: (id: number) => void;
|
|
1917
1935
|
|
|
1918
1936
|
declare interface SelectOption {
|
|
1919
1937
|
label?: string;
|