@comercti/react-components-hmg 0.10.3 → 0.10.8

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/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>;
@@ -523,6 +526,8 @@ declare type __VLS_Props_2 = {
523
526
  textDirection?: 'left' | 'right';
524
527
  /** Define o valor selecionado */
525
528
  modelValue: number;
529
+ /**Define a posição de abertura das opções */
530
+ position?: 'top' | 'bottom';
526
531
  };
527
532
 
528
533
  declare type __VLS_Props_20 = {
@@ -774,7 +779,7 @@ declare type __VLS_Props_8 = {
774
779
  };
775
780
 
776
781
  declare type __VLS_Props_9 = {
777
- modelValue?: Date | string | null;
782
+ modelValue?: Date | string | null | number;
778
783
  start?: Date | string | null;
779
784
  end?: Date | string | null;
780
785
  /** Habilita range */
@@ -799,6 +804,8 @@ declare type __VLS_Props_9 = {
799
804
  rounded?: boolean;
800
805
  /** Desativa o sinalizador do input (quando não usa `slots['append-inner']`) */
801
806
  noAlertIcon?: boolean;
807
+ /** Define o formato da data retornada */
808
+ format?: FormatDate;
802
809
  };
803
810
 
804
811
  declare function __VLS_template(): {
@@ -1647,6 +1654,10 @@ declare type DataTableProps = {
1647
1654
  expandLine?: boolean;
1648
1655
  /** Define o estilo compacto da tabela */
1649
1656
  compact?: boolean;
1657
+ /** Exibi o loading na tabela */
1658
+ loading?: boolean;
1659
+ /** tipo do loading na tabela */
1660
+ loadingType?: 'spinner' | 'semi-circle' | 'dots';
1650
1661
  };
1651
1662
 
1652
1663
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1815,8 +1826,8 @@ declare const _default_36: __VLS_WithTemplateSlots_21<typeof __VLS_component_21,
1815
1826
 
1816
1827
  declare const _default_37: DefineComponent<__VLS_Props_27, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_27> & Readonly<{}>, {
1817
1828
  type: "spinner" | "semi-circle" | "dots";
1818
- background: "smoky" | "transparent";
1819
1829
  showLoading: boolean;
1830
+ background: "smoky" | "transparent";
1820
1831
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1821
1832
 
1822
1833
  declare const _default_38: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
@@ -1851,6 +1862,7 @@ onUpdatePerPage?: (value: number) => any;
1851
1862
  }>, {
1852
1863
  disabled: boolean;
1853
1864
  textDirection: "left" | "right";
1865
+ position: "top" | "bottom";
1854
1866
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
1855
1867
  menuRef: HTMLDivElement;
1856
1868
  }, HTMLDivElement>;
@@ -1905,6 +1917,8 @@ declare interface FileItem {
1905
1917
  status: string;
1906
1918
  }
1907
1919
 
1920
+ declare type FormatDate = 'yyyy-MM-dd' | 'dd/MM/yyyy' | 'timestamp' | 'iso' | 'string';
1921
+
1908
1922
  declare type Header = {
1909
1923
  text: string;
1910
1924
  value: string | ((item: Record<string, unknown>) => string);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comercti/react-components-hmg",
3
- "version": "0.10.3",
3
+ "version": "0.10.8",
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",