@comercti/vue-components 0.10.0 → 0.11.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/index.d.ts CHANGED
@@ -30,6 +30,9 @@ striped: boolean;
30
30
  orderByServer: boolean;
31
31
  expandLine: boolean;
32
32
  compact: boolean;
33
+ loading: boolean;
34
+ loadingType: "spinner" | "semi-circle" | "dots";
35
+ truncated: boolean;
33
36
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
34
37
  rootRef: HTMLDivElement;
35
38
  }, HTMLDivElement>;
@@ -49,6 +52,7 @@ onBackToHome?: (value: boolean) => any;
49
52
  onLogout?: (value: boolean) => any;
50
53
  }>, {
51
54
  itemsMenu: ItensMenu_2[];
55
+ itemsSearch: ItensMenu_2[];
52
56
  itemsMenuMyService: ItensMenu_2[];
53
57
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
54
58
 
@@ -113,6 +117,7 @@ click: (event: MouseEvent) => any;
113
117
  }, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
114
118
  onClick?: (event: MouseEvent) => any;
115
119
  }>, {
120
+ size: "xxs" | "xs" | "sm" | "md" | "lg" | "xl";
116
121
  type: "button" | "submit" | "a";
117
122
  disabled: boolean;
118
123
  variant: tipoVariante;
@@ -127,10 +132,10 @@ close: (value: boolean) => any;
127
132
  }, string, PublicProps, Readonly<__VLS_Props_26> & Readonly<{
128
133
  onClose?: (value: boolean) => any;
129
134
  }>, {
135
+ background: "white" | "green";
130
136
  rounded: boolean;
131
- isOpen: boolean;
132
- background: "1" | "2";
133
137
  position: "top" | "bottom";
138
+ isOpen: boolean;
134
139
  showIcon: boolean;
135
140
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
136
141
 
@@ -139,8 +144,8 @@ close: (value: boolean) => any;
139
144
  }, string, PublicProps, Readonly<__VLS_Props_27> & Readonly<{
140
145
  onClose?: (value: boolean) => any;
141
146
  }>, {
142
- isOpen: boolean;
143
147
  background: "1" | "2";
148
+ isOpen: boolean;
144
149
  closeOutside: boolean;
145
150
  showCloseButton: boolean;
146
151
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -174,11 +179,8 @@ clear: () => any;
174
179
  onSubmit?: () => any;
175
180
  onClear?: () => any;
176
181
  }>, {
177
- color: string;
178
182
  title: string;
179
183
  variant: "dropdown" | "collapse";
180
- backgroundColor: string;
181
- titleColor: string;
182
184
  disabledSubmit: boolean;
183
185
  disabledClear: boolean;
184
186
  showClearButton: boolean;
@@ -201,28 +203,29 @@ change: (value: boolean | CustomEvent<any>) => any;
201
203
  "onUpdate:modelValue"?: (value: boolean | CustomEvent<any>) => any;
202
204
  onChange?: (value: boolean | CustomEvent<any>) => any;
203
205
  }>, {
206
+ invalid: boolean;
204
207
  disabled: boolean;
205
208
  modelValue: boolean;
206
- invalid: boolean;
207
209
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
208
210
  rootRef: HTMLDivElement;
209
211
  }, any>;
210
212
 
211
213
  declare const __VLS_component_4: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
212
- "update:modelValue": (value: Date | CustomEvent<any>) => any;
213
- "update:start": (value: Date | CustomEvent<any>) => any;
214
- "update:end": (value: Date | CustomEvent<any>) => any;
214
+ "update:modelValue": (value: string | number | Date | CustomEvent<any>) => any;
215
+ "update:start": (value: string | number | Date | CustomEvent<any>) => any;
216
+ "update:end": (value: string | number | Date | CustomEvent<any>) => any;
215
217
  }, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{
216
- "onUpdate:modelValue"?: (value: Date | CustomEvent<any>) => any;
217
- "onUpdate:start"?: (value: Date | CustomEvent<any>) => any;
218
- "onUpdate:end"?: (value: Date | CustomEvent<any>) => any;
218
+ "onUpdate:modelValue"?: (value: string | number | Date | CustomEvent<any>) => any;
219
+ "onUpdate:start"?: (value: string | number | Date | CustomEvent<any>) => any;
220
+ "onUpdate:end"?: (value: string | number | Date | CustomEvent<any>) => any;
219
221
  }>, {
220
- disabled: boolean;
221
222
  invalid: boolean;
223
+ disabled: boolean;
222
224
  range: boolean;
223
225
  rounded: boolean;
224
226
  noAlertIcon: boolean;
225
227
  modal: boolean;
228
+ format: FormatDate;
226
229
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
227
230
  rootRef: HTMLDivElement;
228
231
  }, any>;
@@ -233,17 +236,17 @@ focus: () => void;
233
236
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
234
237
  "update:modelValue": (value: string | number | CustomEvent<any>) => any;
235
238
  input: (value: string | number | CustomEvent<any>) => any;
236
- change: (value: string | number | CustomEvent<any>) => any;
237
239
  blur: (value: Event) => any;
240
+ change: (value: string | number | CustomEvent<any>) => any;
238
241
  }, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
239
242
  "onUpdate:modelValue"?: (value: string | number | CustomEvent<any>) => any;
240
243
  onInput?: (value: string | number | CustomEvent<any>) => any;
241
- onChange?: (value: string | number | CustomEvent<any>) => any;
242
244
  onBlur?: (value: Event) => any;
245
+ onChange?: (value: string | number | CustomEvent<any>) => any;
243
246
  }>, {
244
247
  type: "text" | "password" | "email" | "number" | "tel" | "url" | "search" | "date";
245
- disabled: boolean;
246
248
  invalid: boolean;
249
+ disabled: boolean;
247
250
  reserveSpaceFeedback: boolean;
248
251
  rounded: boolean;
249
252
  noAlertIcon: boolean;
@@ -286,8 +289,9 @@ onOpenDropdown?: () => any;
286
289
  onCloseDropdown?: () => any;
287
290
  }>, {
288
291
  search: boolean;
289
- disabled: boolean;
290
292
  invalid: boolean;
293
+ disabled: boolean;
294
+ reserveSpaceFeedback: boolean;
291
295
  multiple: boolean;
292
296
  closeChip: boolean;
293
297
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -353,6 +357,8 @@ declare type __VLS_Props_11 = {
353
357
  disabled?: boolean;
354
358
  /** Abrange toda a largura de um elemento para o radio */
355
359
  block?: boolean;
360
+ /** Exibe os radios em uma linha */
361
+ row?: boolean;
356
362
  };
357
363
 
358
364
  declare type __VLS_Props_12 = {
@@ -363,7 +369,7 @@ declare type __VLS_Props_12 = {
363
369
  /** Define o contorno do toggle */
364
370
  contoured?: boolean;
365
371
  /** Idenficador do toggle */
366
- id: string;
372
+ id?: string;
367
373
  /** Informa que está invalido */
368
374
  invalid?: boolean;
369
375
  /** Label do toggle */
@@ -446,6 +452,8 @@ declare type __VLS_Props_15 = {
446
452
  declare type __VLS_Props_16 = {
447
453
  /** Array de opções do menu */
448
454
  items: ItensMenu_2[];
455
+ /** Array de opções de pesquisa do menu */
456
+ itemsSearch?: ItensMenu_2[];
449
457
  /** Define se o menu está na home */
450
458
  isHome?: boolean;
451
459
  /** Define se o input de pesquisa será exibido */
@@ -465,6 +473,8 @@ declare type __VLS_Props_17 = {
465
473
  name?: string;
466
474
  /** Email do usuário */
467
475
  email?: string;
476
+ /** Array de opções de pesquisa do menu */
477
+ itemsSearch?: ItensMenu_2[];
468
478
  };
469
479
 
470
480
  declare type __VLS_Props_18 = {
@@ -510,6 +520,8 @@ declare type __VLS_Props_2 = {
510
520
  textDirection?: 'left' | 'right';
511
521
  /** Define o valor selecionado */
512
522
  modelValue: number;
523
+ /**Define a posição de abertura das opções */
524
+ position?: 'top' | 'bottom';
513
525
  };
514
526
 
515
527
  declare type __VLS_Props_20 = {
@@ -555,7 +567,7 @@ declare type __VLS_Props_26 = {
555
567
  /** Define se o banner abre ou fecha */
556
568
  isOpen: boolean;
557
569
  /** Define a cor do background */
558
- background?: '1' | '2';
570
+ background?: 'white' | 'green';
559
571
  /** Define o border radius do banner */
560
572
  rounded?: boolean;
561
573
  /** Define se o icone aparece */
@@ -633,14 +645,8 @@ declare type __VLS_Props_31 = {
633
645
  declare type __VLS_Props_32 = {
634
646
  /** Define o tipo do filtro */
635
647
  variant?: 'dropdown' | 'collapse';
636
- /** Define a cor do texto e do ícone */
637
- color?: string;
638
- /** Define a cor do background */
639
- backgroundColor?: string;
640
648
  /** Define o título do filtro */
641
649
  title: string;
642
- /** Define a cor do título do filtro */
643
- titleColor?: string;
644
650
  /** Define o texto do botão */
645
651
  text: string;
646
652
  /**Desabilita o botão de submit */
@@ -667,6 +673,8 @@ declare type __VLS_Props_33 = {
667
673
  declare type __VLS_Props_4 = {
668
674
  /** Tipo do button (`attrs:to` ou `attrs:href` podem sobrepor essa regra) */
669
675
  type?: 'button' | 'submit' | 'a';
676
+ /** Tamanho do button */
677
+ size?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
670
678
  /** Variante de cores do button */
671
679
  variant?: tipoVariante;
672
680
  /** Arredondamento do button */
@@ -722,7 +730,7 @@ declare type __VLS_Props_6 = {
722
730
  };
723
731
 
724
732
  declare type __VLS_Props_7 = {
725
- modelValue?: Date | string | null;
733
+ modelValue?: Date | string | null | number;
726
734
  start?: Date | string | null;
727
735
  end?: Date | string | null;
728
736
  /** Habilita range */
@@ -747,6 +755,8 @@ declare type __VLS_Props_7 = {
747
755
  rounded?: boolean;
748
756
  /** Desativa o sinalizador do input (quando não usa `slots['append-inner']`) */
749
757
  noAlertIcon?: boolean;
758
+ /** Define o formato da data retornada */
759
+ format?: FormatDate;
750
760
  };
751
761
 
752
762
  declare type __VLS_Props_8 = {
@@ -1527,10 +1537,10 @@ change: (value: ModelValueType | CustomEvent<any>) => any;
1527
1537
  "onUpdate:modelValue"?: (value: ModelValueType | CustomEvent<any>) => any;
1528
1538
  onChange?: (value: ModelValueType | CustomEvent<any>) => any;
1529
1539
  }>, {
1540
+ invalid: boolean;
1530
1541
  disabled: boolean;
1531
1542
  trueValue: string | number | boolean;
1532
1543
  falseValue: string | number | boolean;
1533
- invalid: boolean;
1534
1544
  block: boolean;
1535
1545
  indeterminate: boolean;
1536
1546
  reserveSpaceFeedback: boolean;
@@ -1560,12 +1570,12 @@ updateFiles: (file: FileItem[]) => any;
1560
1570
  onUpdateFiles?: (file: FileItem[]) => any;
1561
1571
  }>, {
1562
1572
  disabled: boolean;
1573
+ clear: boolean;
1563
1574
  accept: string[];
1564
1575
  multiple: boolean;
1565
1576
  maxFile: number;
1566
1577
  maxFileSize: number;
1567
1578
  selectAll: boolean;
1568
- clear: boolean;
1569
1579
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1570
1580
 
1571
1581
  export declare const CeFilterGroup: __VLS_WithTemplateSlots_24<typeof __VLS_component_24, __VLS_TemplateResult_24["slots"]>;
@@ -1575,8 +1585,8 @@ redirect: (valor?: string) => any;
1575
1585
  }, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{
1576
1586
  onRedirect?: (valor?: string) => any;
1577
1587
  }>, {
1578
- variant: "1" | "2" | "3" | "4" | "5";
1579
1588
  background: "white" | "green";
1589
+ variant: "1" | "2" | "3" | "4" | "5";
1580
1590
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1581
1591
 
1582
1592
  export declare const CeInput: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
@@ -1590,6 +1600,7 @@ onUpdatePerPage?: (value: number) => any;
1590
1600
  }>, {
1591
1601
  disabled: boolean;
1592
1602
  textDirection: "left" | "right";
1603
+ position: "top" | "bottom";
1593
1604
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
1594
1605
  menuRef: HTMLDivElement;
1595
1606
  }, HTMLDivElement>;
@@ -1611,6 +1622,7 @@ toggleMenu: (clicado: boolean) => any;
1611
1622
  onRedirect?: (item: SubMenu | ItensMenu_2) => any;
1612
1623
  onToggleMenu?: (clicado: boolean) => any;
1613
1624
  }>, {
1625
+ itemsSearch: ItensMenu_2[];
1614
1626
  isHome: boolean;
1615
1627
  isSearch: boolean;
1616
1628
  isOpen: boolean;
@@ -1644,9 +1656,10 @@ change: (value: CustomEvent<any> | ModelValueType_2) => any;
1644
1656
  "onUpdate:modelValue"?: (value: CustomEvent<any> | ModelValueType_2) => any;
1645
1657
  onChange?: (value: CustomEvent<any> | ModelValueType_2) => any;
1646
1658
  }>, {
1647
- disabled: boolean;
1648
1659
  invalid: boolean;
1660
+ disabled: boolean;
1649
1661
  block: boolean;
1662
+ row: boolean;
1650
1663
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1651
1664
 
1652
1665
  export declare const CeRow: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
@@ -1680,6 +1693,8 @@ declare interface CeSelectFieldProps {
1680
1693
  search?: boolean;
1681
1694
  /** Ativa botão de remover chip value */
1682
1695
  closeChip?: boolean;
1696
+ /** Se o select deve reservar espaço para feedback de erro */
1697
+ reserveSpaceFeedback?: boolean;
1683
1698
  }
1684
1699
 
1685
1700
  export declare const CeSlider: DefineComponent<SliderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -1726,10 +1741,10 @@ change: (value: boolean | CustomEvent<any>) => any;
1726
1741
  "onUpdate:modelValue"?: (value: boolean) => any;
1727
1742
  onChange?: (value: boolean | CustomEvent<any>) => any;
1728
1743
  }>, {
1729
- disabled: boolean;
1730
1744
  invalid: boolean;
1745
+ disabled: boolean;
1731
1746
  contoured: boolean;
1732
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1747
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1733
1748
 
1734
1749
  export declare const CeTooltip: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
1735
1750
 
@@ -1755,6 +1770,12 @@ declare type DataTableProps = {
1755
1770
  expandLine?: boolean;
1756
1771
  /** Define o estilo compacto da tabela */
1757
1772
  compact?: boolean;
1773
+ /** Exibi o loading na tabela */
1774
+ loading?: boolean;
1775
+ /** tipo do loading na tabela */
1776
+ loadingType?: 'spinner' | 'semi-circle' | 'dots';
1777
+ /** Define se o texto das células será truncado */
1778
+ truncated?: boolean;
1758
1779
  };
1759
1780
 
1760
1781
  export declare const disableCeLoading: () => void;
@@ -1774,6 +1795,8 @@ declare interface FileItem {
1774
1795
  status: string;
1775
1796
  }
1776
1797
 
1798
+ declare type FormatDate = 'yyyy-MM-dd' | 'dd/MM/yyyy' | 'timestamp' | 'iso' | 'string';
1799
+
1777
1800
  declare type Header = {
1778
1801
  text: string;
1779
1802
  value: string | ((item: Record<string, unknown>) => string);
@@ -1850,7 +1873,7 @@ declare interface ItemsSelection {
1850
1873
  }
1851
1874
 
1852
1875
  declare interface ItensMenu_2 {
1853
- text: string;
1876
+ text?: string;
1854
1877
  path?: string;
1855
1878
  icon?: string;
1856
1879
  description?: string;
@@ -1880,7 +1903,7 @@ declare interface IVariants {
1880
1903
 
1881
1904
  declare type ModelValueType = string | number | boolean | (string | number | boolean)[];
1882
1905
 
1883
- declare type ModelValueType_2 = string | number;
1906
+ declare type ModelValueType_2 = string | number | boolean;
1884
1907
 
1885
1908
  declare interface optsRadio {
1886
1909
  label?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comercti/vue-components",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "types": "index.d.ts",
5
5
  "type": "module",
6
6
  "license": "private",
@@ -11,6 +11,7 @@
11
11
  "description": "",
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",
@@ -30,6 +31,7 @@
30
31
  "@storybook/addon-onboarding": "8.5.5",
31
32
  "@storybook/addon-postcss": "^2.0.0",
32
33
  "@storybook/addon-viewport": "^8.5.5",
34
+ "@storybook/addons": "^7.6.17",
33
35
  "@storybook/blocks": "8.5.5",
34
36
  "@storybook/manager-api": "^8.5.5",
35
37
  "@storybook/test": "8.5.5",
@@ -62,6 +64,7 @@
62
64
  "prettier": "^3.5.1",
63
65
  "storybook": "8.5.5",
64
66
  "storybook-addon-vue-mdx": "^1.0.6",
67
+ "storybook-dark-mode": "^4.0.2",
65
68
  "tailwindcss": "^3.4.17",
66
69
  "typescript": "~5.7.3",
67
70
  "vite": "^6.1.0",