@comercti/vue-components 0.7.0 → 0.9.0
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 +27 -27
- package/comerc-style-guide.es.js +2017 -1924
- package/comerc-style-guide.umd.js +28 -28
- package/index.d.ts +40 -18
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ selectable: boolean;
|
|
|
29
29
|
striped: boolean;
|
|
30
30
|
orderByServer: boolean;
|
|
31
31
|
expandLine: boolean;
|
|
32
|
+
compact: boolean;
|
|
32
33
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
33
34
|
rootRef: HTMLDivElement;
|
|
34
35
|
}, HTMLDivElement>;
|
|
@@ -101,7 +102,7 @@ type: "inline" | "centralized" | "highlighted";
|
|
|
101
102
|
|
|
102
103
|
declare const __VLS_component_19: DefineComponent<__VLS_Props_24, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_24> & Readonly<{}>, {
|
|
103
104
|
openMenu: boolean;
|
|
104
|
-
layout: "default" | "base";
|
|
105
|
+
layout: "default" | "base" | "minimal";
|
|
105
106
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
106
107
|
|
|
107
108
|
declare const __VLS_component_2: DefineComponent<__VLS_Props_4, {
|
|
@@ -180,6 +181,7 @@ backgroundColor: string;
|
|
|
180
181
|
titleColor: string;
|
|
181
182
|
disabledSubmit: boolean;
|
|
182
183
|
disabledClear: boolean;
|
|
184
|
+
showClearButton: boolean;
|
|
183
185
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
184
186
|
menuRef: HTMLDivElement;
|
|
185
187
|
}, HTMLDivElement>;
|
|
@@ -242,6 +244,7 @@ onBlur?: (value: Event) => any;
|
|
|
242
244
|
type: "text" | "password" | "email" | "number" | "tel" | "url" | "search" | "date";
|
|
243
245
|
disabled: boolean;
|
|
244
246
|
invalid: boolean;
|
|
247
|
+
reserveSpaceFeedback: boolean;
|
|
245
248
|
rounded: boolean;
|
|
246
249
|
noAlertIcon: boolean;
|
|
247
250
|
readonly: boolean;
|
|
@@ -251,21 +254,18 @@ inputRef: HTMLInputElement;
|
|
|
251
254
|
}, any>;
|
|
252
255
|
|
|
253
256
|
declare const __VLS_component_6: DefineComponent<DropdownProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
254
|
-
"update:modelValue": (value: IReturn | Coluna[]) => any;
|
|
255
257
|
selected: (value: Coluna[]) => any;
|
|
256
258
|
redirect: (item: ItensMenu_2) => any;
|
|
257
259
|
}, string, PublicProps, Readonly<DropdownProps> & Readonly<{
|
|
258
|
-
"onUpdate:modelValue"?: (value: IReturn | Coluna[]) => any;
|
|
259
260
|
onSelected?: (value: Coluna[]) => any;
|
|
260
261
|
onRedirect?: (item: ItensMenu_2) => any;
|
|
261
262
|
}>, {
|
|
262
263
|
type: "menu" | "selection";
|
|
263
|
-
variant: "outlined" | "text";
|
|
264
264
|
itemsMenu: ItensMenu_2[];
|
|
265
265
|
itemsSelection: ItemsSelection_2[];
|
|
266
266
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
267
267
|
dropdownRef: HTMLDivElement;
|
|
268
|
-
},
|
|
268
|
+
}, any>;
|
|
269
269
|
|
|
270
270
|
declare const __VLS_component_7: DefineComponent<CeSelectFieldProps, {
|
|
271
271
|
/** Focus select */
|
|
@@ -338,7 +338,7 @@ declare type __VLS_Props_10 = {
|
|
|
338
338
|
|
|
339
339
|
declare type __VLS_Props_11 = {
|
|
340
340
|
/** Valor do radio para two-way binding (v-model) */
|
|
341
|
-
modelValue?: ModelValueType_2;
|
|
341
|
+
modelValue?: ModelValueType_2 | null;
|
|
342
342
|
/** ID única do radio */
|
|
343
343
|
id?: string;
|
|
344
344
|
/** Estrutura para adicionar o radio */
|
|
@@ -508,6 +508,8 @@ declare type __VLS_Props_2 = {
|
|
|
508
508
|
disabled?: boolean;
|
|
509
509
|
/** Define a direção do texto */
|
|
510
510
|
textDirection?: 'left' | 'right';
|
|
511
|
+
/** Define o valor selecionado */
|
|
512
|
+
modelValue: number;
|
|
511
513
|
};
|
|
512
514
|
|
|
513
515
|
declare type __VLS_Props_20 = {
|
|
@@ -536,7 +538,7 @@ declare type __VLS_Props_24 = {
|
|
|
536
538
|
/** Indica se o menu abriu */
|
|
537
539
|
openMenu?: boolean;
|
|
538
540
|
/** Defini o tipo de layout a ser usado */
|
|
539
|
-
layout: 'default' | 'base';
|
|
541
|
+
layout: 'default' | 'base' | 'minimal';
|
|
540
542
|
};
|
|
541
543
|
|
|
542
544
|
declare type __VLS_Props_25 = {
|
|
@@ -645,6 +647,8 @@ declare type __VLS_Props_32 = {
|
|
|
645
647
|
disabledSubmit?: boolean;
|
|
646
648
|
/**Desabilita o botão de limpar */
|
|
647
649
|
disabledClear?: boolean;
|
|
650
|
+
/** Define se o botão de limpar será exibido */
|
|
651
|
+
showClearButton?: boolean;
|
|
648
652
|
};
|
|
649
653
|
|
|
650
654
|
declare type __VLS_Props_33 = {
|
|
@@ -677,7 +681,7 @@ declare type __VLS_Props_4 = {
|
|
|
677
681
|
|
|
678
682
|
declare type __VLS_Props_5 = {
|
|
679
683
|
/** Valor do checkbox para two-way binding (v-model) */
|
|
680
|
-
modelValue?: ModelValueType;
|
|
684
|
+
modelValue?: ModelValueType | null;
|
|
681
685
|
/** ID única do checkbox */
|
|
682
686
|
id?: string;
|
|
683
687
|
/** Valor a ser definido quando checkbox estiver marcado */
|
|
@@ -698,6 +702,8 @@ declare type __VLS_Props_5 = {
|
|
|
698
702
|
block?: boolean;
|
|
699
703
|
/** Controla o estado visual indeterminate */
|
|
700
704
|
indeterminate?: boolean;
|
|
705
|
+
/** Se o checkbox deve reservar espaço para feedback de erro */
|
|
706
|
+
reserveSpaceFeedback?: boolean;
|
|
701
707
|
};
|
|
702
708
|
|
|
703
709
|
declare type __VLS_Props_6 = {
|
|
@@ -745,7 +751,7 @@ declare type __VLS_Props_7 = {
|
|
|
745
751
|
|
|
746
752
|
declare type __VLS_Props_8 = {
|
|
747
753
|
/** Valor do input para two-way binding (v-model) */
|
|
748
|
-
modelValue?: string | number;
|
|
754
|
+
modelValue?: string | number | null;
|
|
749
755
|
/** Tipo do input (text, password, email, etc) */
|
|
750
756
|
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date';
|
|
751
757
|
/** ID única do input */
|
|
@@ -770,6 +776,8 @@ declare type __VLS_Props_8 = {
|
|
|
770
776
|
noAlertIcon?: boolean;
|
|
771
777
|
/** Desativa a edição do input */
|
|
772
778
|
readonly?: boolean;
|
|
779
|
+
/** Se o input deve reservar espaço para feedback de erro */
|
|
780
|
+
reserveSpaceFeedback?: boolean;
|
|
773
781
|
};
|
|
774
782
|
|
|
775
783
|
declare type __VLS_Props_9 = {
|
|
@@ -990,6 +998,14 @@ declare function __VLS_template_19(): {
|
|
|
990
998
|
content?: () => VNode[];
|
|
991
999
|
/** Adicione conteúdo no footer */
|
|
992
1000
|
footer?: () => VNode[];
|
|
1001
|
+
/** Adicione conteúdo no nav */
|
|
1002
|
+
nav?: () => VNode[];
|
|
1003
|
+
/** Adicione conteúdo no dividers */
|
|
1004
|
+
dividers?: () => VNode[];
|
|
1005
|
+
/** Adicione conteúdo no filter */
|
|
1006
|
+
filter?: () => VNode[];
|
|
1007
|
+
/** Adicione conteúdo na tabela */
|
|
1008
|
+
table?: () => VNode[];
|
|
993
1009
|
}> & {
|
|
994
1010
|
/** Adicione conteúdo no header */
|
|
995
1011
|
header?: () => VNode[];
|
|
@@ -999,6 +1015,14 @@ declare function __VLS_template_19(): {
|
|
|
999
1015
|
content?: () => VNode[];
|
|
1000
1016
|
/** Adicione conteúdo no footer */
|
|
1001
1017
|
footer?: () => VNode[];
|
|
1018
|
+
/** Adicione conteúdo no nav */
|
|
1019
|
+
nav?: () => VNode[];
|
|
1020
|
+
/** Adicione conteúdo no dividers */
|
|
1021
|
+
dividers?: () => VNode[];
|
|
1022
|
+
/** Adicione conteúdo no filter */
|
|
1023
|
+
filter?: () => VNode[];
|
|
1024
|
+
/** Adicione conteúdo na tabela */
|
|
1025
|
+
table?: () => VNode[];
|
|
1002
1026
|
};
|
|
1003
1027
|
refs: {};
|
|
1004
1028
|
rootEl: any;
|
|
@@ -1183,7 +1207,7 @@ declare function __VLS_template_6(): {
|
|
|
1183
1207
|
refs: {
|
|
1184
1208
|
dropdownRef: HTMLDivElement;
|
|
1185
1209
|
};
|
|
1186
|
-
rootEl:
|
|
1210
|
+
rootEl: any;
|
|
1187
1211
|
};
|
|
1188
1212
|
|
|
1189
1213
|
declare function __VLS_template_7(): {
|
|
@@ -1509,6 +1533,7 @@ falseValue: string | number | boolean;
|
|
|
1509
1533
|
invalid: boolean;
|
|
1510
1534
|
block: boolean;
|
|
1511
1535
|
indeterminate: boolean;
|
|
1536
|
+
reserveSpaceFeedback: boolean;
|
|
1512
1537
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
1513
1538
|
inputRef: HTMLInputElement;
|
|
1514
1539
|
}, any>;
|
|
@@ -1602,6 +1627,7 @@ onPaginate?: (value: number) => any;
|
|
|
1602
1627
|
}>, {
|
|
1603
1628
|
totalPages: number;
|
|
1604
1629
|
currentPage: number;
|
|
1630
|
+
itemsPerPage: number;
|
|
1605
1631
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1606
1632
|
|
|
1607
1633
|
export declare const CeProgressIndicator: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -1727,6 +1753,8 @@ declare type DataTableProps = {
|
|
|
1727
1753
|
orderByServer?: boolean;
|
|
1728
1754
|
/**Permitir a expansão da linha */
|
|
1729
1755
|
expandLine?: boolean;
|
|
1756
|
+
/** Define o estilo compacto da tabela */
|
|
1757
|
+
compact?: boolean;
|
|
1730
1758
|
};
|
|
1731
1759
|
|
|
1732
1760
|
export declare const disableCeLoading: () => void;
|
|
@@ -1736,8 +1764,6 @@ declare interface DropdownProps {
|
|
|
1736
1764
|
itemsMenu?: ItensMenu[];
|
|
1737
1765
|
/** Define os itens do dropdown tipo seleção */
|
|
1738
1766
|
itemsSelection?: ItemsSelection[];
|
|
1739
|
-
/** Define a variante do dropdown */
|
|
1740
|
-
variant?: 'outlined' | 'text';
|
|
1741
1767
|
/** Define o tipo do dropdown */
|
|
1742
1768
|
type?: 'menu' | 'selection';
|
|
1743
1769
|
}
|
|
@@ -1784,12 +1810,6 @@ declare type IProgressStepsProps = {
|
|
|
1784
1810
|
items: IItems[];
|
|
1785
1811
|
};
|
|
1786
1812
|
|
|
1787
|
-
declare interface IReturn {
|
|
1788
|
-
text: string;
|
|
1789
|
-
path?: string;
|
|
1790
|
-
options?: unknown;
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
1813
|
export declare const isMobile: Ref<boolean, boolean>;
|
|
1794
1814
|
|
|
1795
1815
|
declare interface ISocialMedia {
|
|
@@ -1874,6 +1894,8 @@ declare type PaginationProps = {
|
|
|
1874
1894
|
totalPages: number;
|
|
1875
1895
|
/** Página atual */
|
|
1876
1896
|
currentPage: number;
|
|
1897
|
+
/** Itens por página */
|
|
1898
|
+
itemsPerPage: number;
|
|
1877
1899
|
};
|
|
1878
1900
|
|
|
1879
1901
|
export declare const removeCeToast: (id: number) => void;
|