@comercti/react-components-hmg 0.10.2 → 0.10.7
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 +1872 -1880
- package/comerc-style-guide.umd.js +28 -28
- package/index.d.ts +26 -9
- package/package.json +2 -1
package/index.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ striped: boolean;
|
|
|
31
31
|
orderByServer: boolean;
|
|
32
32
|
expandLine: boolean;
|
|
33
33
|
compact: boolean;
|
|
34
|
+
loading: boolean;
|
|
35
|
+
loadingType: "spinner" | "semi-circle" | "dots";
|
|
34
36
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
35
37
|
rootRef: HTMLDivElement;
|
|
36
38
|
}, HTMLDivElement>;
|
|
@@ -132,8 +134,8 @@ onClose?: (value: boolean) => any;
|
|
|
132
134
|
}>, {
|
|
133
135
|
rounded: boolean;
|
|
134
136
|
background: "white" | "green";
|
|
135
|
-
isOpen: boolean;
|
|
136
137
|
position: "top" | "bottom";
|
|
138
|
+
isOpen: boolean;
|
|
137
139
|
showIcon: boolean;
|
|
138
140
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
139
141
|
|
|
@@ -217,13 +219,13 @@ rootRef: HTMLDivElement;
|
|
|
217
219
|
}, any>;
|
|
218
220
|
|
|
219
221
|
declare const __VLS_component_5: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
220
|
-
"update:modelValue": (value: CustomEvent<any> | Date) => any;
|
|
221
|
-
"update:start": (value: CustomEvent<any> | Date) => any;
|
|
222
|
-
"update:end": (value: CustomEvent<any> | Date) => any;
|
|
222
|
+
"update:modelValue": (value: string | number | CustomEvent<any> | Date) => any;
|
|
223
|
+
"update:start": (value: string | number | CustomEvent<any> | Date) => any;
|
|
224
|
+
"update:end": (value: string | number | CustomEvent<any> | Date) => any;
|
|
223
225
|
}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
|
|
224
|
-
"onUpdate:modelValue"?: (value: CustomEvent<any> | Date) => any;
|
|
225
|
-
"onUpdate:start"?: (value: CustomEvent<any> | Date) => any;
|
|
226
|
-
"onUpdate:end"?: (value: CustomEvent<any> | Date) => any;
|
|
226
|
+
"onUpdate:modelValue"?: (value: string | number | CustomEvent<any> | Date) => any;
|
|
227
|
+
"onUpdate:start"?: (value: string | number | CustomEvent<any> | Date) => any;
|
|
228
|
+
"onUpdate:end"?: (value: string | number | CustomEvent<any> | Date) => any;
|
|
227
229
|
}>, {
|
|
228
230
|
invalid: boolean;
|
|
229
231
|
disabled: boolean;
|
|
@@ -231,6 +233,7 @@ range: boolean;
|
|
|
231
233
|
rounded: boolean;
|
|
232
234
|
noAlertIcon: boolean;
|
|
233
235
|
modal: boolean;
|
|
236
|
+
format: FormatDate;
|
|
234
237
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
235
238
|
rootRef: HTMLDivElement;
|
|
236
239
|
}, any>;
|
|
@@ -385,6 +388,8 @@ declare type __VLS_Props_12 = {
|
|
|
385
388
|
disabled?: boolean;
|
|
386
389
|
/** Abrange toda a largura de um elemento para o radio */
|
|
387
390
|
block?: boolean;
|
|
391
|
+
/** Exibe os radios em uma linha */
|
|
392
|
+
row?: boolean;
|
|
388
393
|
};
|
|
389
394
|
|
|
390
395
|
declare type __VLS_Props_13 = {
|
|
@@ -521,6 +526,8 @@ declare type __VLS_Props_2 = {
|
|
|
521
526
|
textDirection?: 'left' | 'right';
|
|
522
527
|
/** Define o valor selecionado */
|
|
523
528
|
modelValue: number;
|
|
529
|
+
/**Define a posição de abertura das opções */
|
|
530
|
+
position?: 'top' | 'bottom';
|
|
524
531
|
};
|
|
525
532
|
|
|
526
533
|
declare type __VLS_Props_20 = {
|
|
@@ -797,6 +804,8 @@ declare type __VLS_Props_9 = {
|
|
|
797
804
|
rounded?: boolean;
|
|
798
805
|
/** Desativa o sinalizador do input (quando não usa `slots['append-inner']`) */
|
|
799
806
|
noAlertIcon?: boolean;
|
|
807
|
+
/** Define o formato da data retornada */
|
|
808
|
+
format?: FormatDate;
|
|
800
809
|
};
|
|
801
810
|
|
|
802
811
|
declare function __VLS_template(): {
|
|
@@ -1645,6 +1654,10 @@ declare type DataTableProps = {
|
|
|
1645
1654
|
expandLine?: boolean;
|
|
1646
1655
|
/** Define o estilo compacto da tabela */
|
|
1647
1656
|
compact?: boolean;
|
|
1657
|
+
/** Exibi o loading na tabela */
|
|
1658
|
+
loading?: boolean;
|
|
1659
|
+
/** tipo do loading na tabela */
|
|
1660
|
+
loadingType?: 'spinner' | 'semi-circle' | 'dots';
|
|
1648
1661
|
};
|
|
1649
1662
|
|
|
1650
1663
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1709,6 +1722,7 @@ onChange?: (value: CustomEvent<any> | ModelValueType_2) => any;
|
|
|
1709
1722
|
invalid: boolean;
|
|
1710
1723
|
disabled: boolean;
|
|
1711
1724
|
block: boolean;
|
|
1725
|
+
row: boolean;
|
|
1712
1726
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1713
1727
|
|
|
1714
1728
|
declare const _default_18: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
@@ -1812,8 +1826,8 @@ declare const _default_36: __VLS_WithTemplateSlots_21<typeof __VLS_component_21,
|
|
|
1812
1826
|
|
|
1813
1827
|
declare const _default_37: DefineComponent<__VLS_Props_27, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_27> & Readonly<{}>, {
|
|
1814
1828
|
type: "spinner" | "semi-circle" | "dots";
|
|
1815
|
-
background: "smoky" | "transparent";
|
|
1816
1829
|
showLoading: boolean;
|
|
1830
|
+
background: "smoky" | "transparent";
|
|
1817
1831
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1818
1832
|
|
|
1819
1833
|
declare const _default_38: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
|
|
@@ -1848,6 +1862,7 @@ onUpdatePerPage?: (value: number) => any;
|
|
|
1848
1862
|
}>, {
|
|
1849
1863
|
disabled: boolean;
|
|
1850
1864
|
textDirection: "left" | "right";
|
|
1865
|
+
position: "top" | "bottom";
|
|
1851
1866
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1852
1867
|
menuRef: HTMLDivElement;
|
|
1853
1868
|
}, HTMLDivElement>;
|
|
@@ -1902,6 +1917,8 @@ declare interface FileItem {
|
|
|
1902
1917
|
status: string;
|
|
1903
1918
|
}
|
|
1904
1919
|
|
|
1920
|
+
declare type FormatDate = 'yyyy-MM-dd' | 'dd/MM/yyyy' | 'timestamp' | 'iso' | 'string';
|
|
1921
|
+
|
|
1905
1922
|
declare type Header = {
|
|
1906
1923
|
text: string;
|
|
1907
1924
|
value: string | ((item: Record<string, unknown>) => string);
|
|
@@ -2008,7 +2025,7 @@ declare interface IVariants {
|
|
|
2008
2025
|
|
|
2009
2026
|
declare type ModelValueType = string | number | boolean | (string | number | boolean)[];
|
|
2010
2027
|
|
|
2011
|
-
declare type ModelValueType_2 = string | number;
|
|
2028
|
+
declare type ModelValueType_2 = string | number | boolean;
|
|
2012
2029
|
|
|
2013
2030
|
declare interface optsRadio {
|
|
2014
2031
|
label?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comercti/react-components-hmg",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.7",
|
|
4
4
|
"types": "index.d.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "private",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"description": "AVISO: Este pacote está em desenvolvimento e pode sofrer alterações sem aviso prévio. Não utilize em produção. ",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@wdns/vue-code-block": "^2.3.5",
|
|
14
|
+
"date-fns": "^4.1.0",
|
|
14
15
|
"highlight.js": "^11.11.1",
|
|
15
16
|
"prismjs": "^1.30.0",
|
|
16
17
|
"react": "^17.0.2",
|