@comercti/vue-components-hmg 0.40.1 → 0.40.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/index.d.ts CHANGED
@@ -34,20 +34,16 @@ order: "asc" | "desc";
34
34
  search: boolean;
35
35
  selectable: boolean;
36
36
  singleSelect: boolean;
37
- initialSelectedRows: Record<string, unknown>[];
37
+ compact: boolean;
38
+ editColumnStyle: EditColumnStyle;
38
39
  striped: boolean;
40
+ truncated: boolean;
41
+ copyable: boolean;
42
+ initialSelectedRows: Record<string, unknown>[];
39
43
  orderByServer: boolean;
40
44
  expandLine: boolean;
41
- compact: boolean;
42
45
  loading: boolean;
43
46
  loadingType: "spinner" | "semi-circle" | "dots";
44
- truncated: boolean;
45
- copyable: boolean;
46
- editColumnStyle: {
47
- fields: string[];
48
- style?: Record<string, string>;
49
- class?: string;
50
- };
51
47
  backgroundPagination: "transparent" | `#${string}` | `rgb(${string})` | `rgba(${string})`;
52
48
  backgroundTitle: "transparent" | `#${string}` | `rgb(${string})` | `rgba(${string})`;
53
49
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -365,14 +361,14 @@ focus: () => void;
365
361
  /** Abre/Fecha dropdown do select */
366
362
  click: () => void;
367
363
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
368
- "update:modelValue": (value: string | number | boolean | (string | number | boolean)[] | CustomEvent<any>) => any;
369
- change: (value: string | number | boolean | (string | number | boolean)[] | CustomEvent<any>) => any;
364
+ "update:modelValue": (value: string | number | boolean | CustomEvent<any> | (string | number | boolean)[]) => any;
365
+ change: (value: string | number | boolean | CustomEvent<any> | (string | number | boolean)[]) => any;
370
366
  inputSearch: (value: string) => any;
371
367
  openDropdown: () => any;
372
368
  closeDropdown: () => any;
373
369
  }, string, PublicProps, Readonly<CeSelectFieldProps> & Readonly<{
374
- "onUpdate:modelValue"?: (value: string | number | boolean | (string | number | boolean)[] | CustomEvent<any>) => any;
375
- onChange?: (value: string | number | boolean | (string | number | boolean)[] | CustomEvent<any>) => any;
370
+ "onUpdate:modelValue"?: (value: string | number | boolean | CustomEvent<any> | (string | number | boolean)[]) => any;
371
+ onChange?: (value: string | number | boolean | CustomEvent<any> | (string | number | boolean)[]) => any;
376
372
  onInputSearch?: (value: string) => any;
377
373
  onOpenDropdown?: () => any;
378
374
  onCloseDropdown?: () => any;
@@ -927,8 +923,8 @@ declare function __VLS_template(): {
927
923
  slots: Readonly<NonNullable<{
928
924
  [key: string]: (props: {
929
925
  item: Record<string, any>;
930
- indexItem: number;
931
- indexHeader: number;
926
+ indexItem?: number;
927
+ indexHeader?: number;
932
928
  }) => VNode[];
933
929
  } & {
934
930
  /**Slot usado para exibir a paginação da tabela */
@@ -948,8 +944,8 @@ declare function __VLS_template(): {
948
944
  }>> & {
949
945
  [key: string]: (props: {
950
946
  item: Record<string, any>;
951
- indexItem: number;
952
- indexHeader: number;
947
+ indexItem?: number;
948
+ indexHeader?: number;
953
949
  }) => VNode[];
954
950
  } & {
955
951
  /**Slot usado para exibir a paginação da tabela */
@@ -1760,11 +1756,11 @@ export declare const CeCheckbox: DefineComponent<__VLS_Props_6, {
1760
1756
  /** Focus checkbox input */
1761
1757
  focus: () => void;
1762
1758
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1763
- "update:modelValue": (value: ModelValueType | CustomEvent<any>) => any;
1764
- change: (value: ModelValueType | CustomEvent<any>) => any;
1759
+ "update:modelValue": (value: CustomEvent<any> | ModelValueType) => any;
1760
+ change: (value: CustomEvent<any> | ModelValueType) => any;
1765
1761
  }, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
1766
- "onUpdate:modelValue"?: (value: ModelValueType | CustomEvent<any>) => any;
1767
- onChange?: (value: ModelValueType | CustomEvent<any>) => any;
1762
+ "onUpdate:modelValue"?: (value: CustomEvent<any> | ModelValueType) => any;
1763
+ onChange?: (value: CustomEvent<any> | ModelValueType) => any;
1768
1764
  }>, {
1769
1765
  invalid: boolean;
1770
1766
  disabled: boolean;
@@ -2068,11 +2064,7 @@ declare type DataTableProps = {
2068
2064
  /** Habilita a funcionalidade de copiar o conteúdo da célula ao clicar */
2069
2065
  copyable?: boolean;
2070
2066
  /** Configurações para estilizar colunas editáveis */
2071
- editColumnStyle?: {
2072
- fields: string[];
2073
- style?: Record<string, string>;
2074
- class?: string;
2075
- };
2067
+ editColumnStyle?: EditColumnStyle;
2076
2068
  /** Define o estilo de fundo do slot de paginação */
2077
2069
  backgroundPagination?: CSSColor;
2078
2070
  /** Define o estilo de fundo da area superior da tabela */
@@ -2094,6 +2086,12 @@ declare interface DropdownProps {
2094
2086
  allowRedirect?: boolean;
2095
2087
  }
2096
2088
 
2089
+ declare type EditColumnStyle = {
2090
+ fields: string[];
2091
+ style?: Record<string, string>;
2092
+ class?: string;
2093
+ };
2094
+
2097
2095
  declare interface FileItem {
2098
2096
  file: File;
2099
2097
  progress: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comercti/vue-components-hmg",
3
- "version": "0.40.1",
3
+ "version": "0.40.2",
4
4
  "types": "index.d.ts",
5
5
  "type": "module",
6
6
  "license": "private",