@comercti/react-components-hmg 0.23.31 → 0.23.34

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
@@ -217,7 +217,9 @@ declare const __VLS_component_28: DefineComponent<__VLS_Props_35, {}, {}, {}, {}
217
217
  }, string, PublicProps, Readonly<__VLS_Props_35> & Readonly<{
218
218
  "onToggle-collapse"?: (value: ICollapse[]) => any;
219
219
  }>, {
220
- items: Array<Record<string, unknown>>;
220
+ invalid: number[];
221
+ disabled: IFields;
222
+ items: Array<unknown>;
221
223
  variant: "accordion" | "card" | "minimal" | "compact";
222
224
  openTheFirst: boolean;
223
225
  allOpen: boolean;
@@ -279,17 +281,23 @@ dropdownRef: HTMLDivElement[];
279
281
 
280
282
  declare const __VLS_component_7: DefineComponent<IDropzone, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
281
283
  "update:modelValue": (file: FileItem | File | FileItem[]) => any;
284
+ delete: (files: FileItem | File | FileItem[]) => any;
282
285
  updateFiles: (file: FileItem[]) => any;
283
286
  }, string, PublicProps, Readonly<IDropzone> & Readonly<{
284
287
  "onUpdate:modelValue"?: (file: FileItem | File | FileItem[]) => any;
288
+ onDelete?: (files: FileItem | File | FileItem[]) => any;
285
289
  onUpdateFiles?: (file: FileItem[]) => any;
286
290
  }>, {
291
+ invalid: boolean;
287
292
  disabled: boolean;
293
+ reserveSpaceFeedback: boolean;
288
294
  file: FileItem | null;
289
295
  rounded: "md" | "lg" | "xl";
290
296
  compact: boolean;
291
- variant: "primary" | "secondary";
297
+ variant: "primary" | "secondary" | "tertiary";
292
298
  clear: boolean;
299
+ errorLabel: string;
300
+ successLabel: string;
293
301
  accept: string[];
294
302
  multiple: boolean;
295
303
  maxFile: number;
@@ -299,8 +307,9 @@ customMessage: string[];
299
307
  simulateProgress: boolean;
300
308
  showProgressBar: boolean;
301
309
  sendRemovedFile: boolean;
302
- errorLabel: string;
303
- successLabel: string;
310
+ tertiaryVariantTitle: string;
311
+ showUploadedFile: boolean;
312
+ showRemoveButton: boolean;
304
313
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
305
314
  inputFile: HTMLInputElement;
306
315
  }, HTMLDivElement>;
@@ -443,7 +452,7 @@ declare type __VLS_Props_13 = {
443
452
  /** ID única do input */
444
453
  id?: string;
445
454
  /** Valor do input para two-way binding (v-model) */
446
- modelValue: string;
455
+ modelValue?: string;
447
456
  /** Define a quantidade de dígitos do código */
448
457
  length: number;
449
458
  /** Define se o input deve ser desabilitado */
@@ -766,12 +775,14 @@ declare type __VLS_Props_34 = {
766
775
  };
767
776
 
768
777
  declare type __VLS_Props_35 = {
769
- items: Array<Record<string, unknown>>;
778
+ items: Array<unknown>;
770
779
  openTheFirst?: boolean;
771
780
  allOpen?: boolean;
772
781
  variant: 'accordion' | 'card' | 'minimal' | 'compact';
773
782
  direction?: 'row' | 'column';
774
783
  closeCollapse?: number | null;
784
+ disabled?: IFields;
785
+ invalid?: number[];
775
786
  };
776
787
 
777
788
  declare type __VLS_Props_4 = {
@@ -838,6 +849,8 @@ declare type __VLS_Props_7 = {
838
849
  indeterminate?: boolean;
839
850
  /** Se o checkbox deve reservar espaço para feedback de erro */
840
851
  reserveSpaceFeedback?: boolean;
852
+ /** Desabilita o clique no checkbox */
853
+ clickDisabled?: boolean;
841
854
  };
842
855
 
843
856
  declare type __VLS_Props_8 = {
@@ -1262,9 +1275,11 @@ declare function __VLS_template_28(): {
1262
1275
  }) => VNode[];
1263
1276
  header?: (props: {
1264
1277
  item: Record<string, any>;
1278
+ index: number;
1265
1279
  }) => VNode[];
1266
1280
  content?: (props: {
1267
1281
  item: Record<string, any>;
1282
+ index: number;
1268
1283
  }) => VNode[];
1269
1284
  }> & {
1270
1285
  [key: string]: (props: {
@@ -1272,9 +1287,11 @@ declare function __VLS_template_28(): {
1272
1287
  }) => VNode[];
1273
1288
  header?: (props: {
1274
1289
  item: Record<string, any>;
1290
+ index: number;
1275
1291
  }) => VNode[];
1276
1292
  content?: (props: {
1277
1293
  item: Record<string, any>;
1294
+ index: number;
1278
1295
  }) => VNode[];
1279
1296
  };
1280
1297
  refs: {};
@@ -1401,6 +1418,8 @@ declare function __VLS_template_9(): {
1401
1418
  selection?: (props: {
1402
1419
  value?: CeSelectFieldProps["modelValue"];
1403
1420
  }) => VNode[];
1421
+ /** Slot para customizar a exibição da label do select */
1422
+ 'content-label'?: () => VNode[];
1404
1423
  }> & {
1405
1424
  /** Slot para adicionar conteúdo antes das opções */
1406
1425
  'prepend-item'?: () => VNode[];
@@ -1414,6 +1433,8 @@ declare function __VLS_template_9(): {
1414
1433
  selection?: (props: {
1415
1434
  value?: CeSelectFieldProps["modelValue"];
1416
1435
  }) => VNode[];
1436
+ /** Slot para customizar a exibição da label do select */
1437
+ 'content-label'?: () => VNode[];
1417
1438
  };
1418
1439
  refs: {
1419
1440
  rootRef: HTMLDivElement;
@@ -1854,6 +1875,7 @@ disabled: boolean;
1854
1875
  block: boolean;
1855
1876
  indeterminate: boolean;
1856
1877
  reserveSpaceFeedback: boolean;
1878
+ clickDisabled: boolean;
1857
1879
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
1858
1880
  inputRef: HTMLInputElement;
1859
1881
  }, any>;
@@ -1927,8 +1949,10 @@ contoured: boolean;
1927
1949
 
1928
1950
  declare const _default_22: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1929
1951
  "update:modelValue": (valor: string) => any;
1952
+ change: (valor: string) => any;
1930
1953
  }, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{
1931
1954
  "onUpdate:modelValue"?: (valor: string) => any;
1955
+ onChange?: (valor: string) => any;
1932
1956
  }>, {
1933
1957
  invalid: boolean;
1934
1958
  disabled: boolean;
@@ -2109,6 +2133,9 @@ declare interface FileItem {
2109
2133
  file: File;
2110
2134
  progress: number;
2111
2135
  status: 'uploading' | 'success' | 'error';
2136
+ message?: string;
2137
+ errorLabel?: string;
2138
+ successLabel?: string;
2112
2139
  }
2113
2140
 
2114
2141
  declare type FormatDate = 'yyyy-MM-dd' | 'dd/MM/yyyy' | 'timestamp' | 'iso' | 'string';
@@ -2137,6 +2164,7 @@ declare interface IBreadcrumbsProps {
2137
2164
  declare interface ICollapse {
2138
2165
  index: number;
2139
2166
  value: boolean;
2167
+ item: unknown;
2140
2168
  }
2141
2169
 
2142
2170
  declare interface IData<T = unknown> {
@@ -2163,7 +2191,7 @@ declare interface IDropzone {
2163
2191
  /** limpa a lista de arquivos */
2164
2192
  clear?: boolean;
2165
2193
  /** Variante do componente */
2166
- variant?: 'primary' | 'secondary';
2194
+ variant?: 'primary' | 'secondary' | 'tertiary';
2167
2195
  /** Simula o progresso do upload */
2168
2196
  simulateProgress?: boolean;
2169
2197
  /** Exibe ou oculta a barra de progresso */
@@ -2180,6 +2208,27 @@ declare interface IDropzone {
2180
2208
  rounded?: 'md' | 'lg' | 'xl';
2181
2209
  /** Prop utilizada para atualizar o progresso quando simulateProgress é false */
2182
2210
  file?: FileItem | null;
2211
+ /** Título da variante terciária */
2212
+ tertiaryVariantTitle?: string;
2213
+ /** Texto de ajuda */
2214
+ hint?: string;
2215
+ /** Texto para ser um erro */
2216
+ invalidFeedback?: string;
2217
+ /** Aciona manualmente o estado de erro */
2218
+ invalid?: boolean;
2219
+ /** Se o input deve reservar espaço para feedback de erro */
2220
+ reserveSpaceFeedback?: boolean;
2221
+ /** Se deve mostrar o arquivo enviado */
2222
+ showUploadedFile?: boolean;
2223
+ /** Nome do arquivo para ser removido */
2224
+ removableFileName?: string;
2225
+ /** Exibi o botão de remover arquivo */
2226
+ showRemoveButton?: boolean;
2227
+ }
2228
+
2229
+ declare interface IFields {
2230
+ field: string;
2231
+ value: string | number | boolean;
2183
2232
  }
2184
2233
 
2185
2234
  declare interface IItems {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comercti/react-components-hmg",
3
- "version": "0.23.31",
3
+ "version": "0.23.34",
4
4
  "types": "index.d.ts",
5
5
  "type": "module",
6
6
  "license": "private",