@comercti/vue-components 0.21.0 → 0.22.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
@@ -33,6 +33,7 @@ compact: boolean;
33
33
  loading: boolean;
34
34
  loadingType: "spinner" | "semi-circle" | "dots";
35
35
  truncated: boolean;
36
+ copyable: boolean;
36
37
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
37
38
  rootRef: HTMLDivElement;
38
39
  }, HTMLDivElement>;
@@ -128,8 +129,21 @@ buttonRef: unknown;
128
129
  }, any>;
129
130
 
130
131
  declare const __VLS_component_20: DefineComponent<__VLS_Props_26, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
131
- close: (value: boolean) => any;
132
+ "toggle-collapse": (value: ICollapse[]) => any;
132
133
  }, string, PublicProps, Readonly<__VLS_Props_26> & Readonly<{
134
+ "onToggle-collapse"?: (value: ICollapse[]) => any;
135
+ }>, {
136
+ variant: "accordion" | "card" | "minimal" | "compact";
137
+ items: Array<Record<string, unknown>>;
138
+ openTheFirst: boolean;
139
+ allOpen: boolean;
140
+ direction: "row" | "column";
141
+ closeCollapse: number | null;
142
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
143
+
144
+ declare const __VLS_component_21: DefineComponent<__VLS_Props_27, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
145
+ close: (value: boolean) => any;
146
+ }, string, PublicProps, Readonly<__VLS_Props_27> & Readonly<{
133
147
  onClose?: (value: boolean) => any;
134
148
  }>, {
135
149
  background: "white" | "green";
@@ -139,9 +153,9 @@ isOpen: boolean;
139
153
  showIcon: boolean;
140
154
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
141
155
 
142
- declare const __VLS_component_21: DefineComponent<__VLS_Props_27, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
156
+ declare const __VLS_component_22: DefineComponent<__VLS_Props_28, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
143
157
  close: (value: boolean) => any;
144
- }, string, PublicProps, Readonly<__VLS_Props_27> & Readonly<{
158
+ }, string, PublicProps, Readonly<__VLS_Props_28> & Readonly<{
145
159
  onClose?: (value: boolean) => any;
146
160
  }>, {
147
161
  background: "1" | "2";
@@ -150,7 +164,7 @@ closeOutside: boolean;
150
164
  showCloseButton: boolean;
151
165
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
152
166
 
153
- declare const __VLS_component_22: DefineComponent<__VLS_Props_28, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_28> & Readonly<{}>, {
167
+ declare const __VLS_component_23: DefineComponent<__VLS_Props_29, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_29> & Readonly<{}>, {
154
168
  focus: boolean;
155
169
  location: "top" | "bottom" | "left" | "right";
156
170
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -158,11 +172,11 @@ activatorRef: HTMLDivElement;
158
172
  tooltipRef: HTMLDivElement;
159
173
  }, any>;
160
174
 
161
- declare const __VLS_component_23: DefineComponent<__VLS_Props_31, {
175
+ declare const __VLS_component_24: DefineComponent<__VLS_Props_32, {
162
176
  rootRef: Ref<HTMLElement, HTMLElement>;
163
177
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
164
178
  click: (event: MouseEvent) => any;
165
- }, string, PublicProps, Readonly<__VLS_Props_31> & Readonly<{
179
+ }, string, PublicProps, Readonly<__VLS_Props_32> & Readonly<{
166
180
  onClick?: (event: MouseEvent) => any;
167
181
  }>, {
168
182
  size: "small" | "medium" | "large" | number;
@@ -175,10 +189,10 @@ badgeOffsetBottom: number;
175
189
  rootRef: HTMLDivElement;
176
190
  }, any>;
177
191
 
178
- declare const __VLS_component_24: DefineComponent<__VLS_Props_32, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
192
+ declare const __VLS_component_25: DefineComponent<__VLS_Props_33, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
179
193
  submit: () => any;
180
194
  clear: () => any;
181
- }, string, PublicProps, Readonly<__VLS_Props_32> & Readonly<{
195
+ }, string, PublicProps, Readonly<__VLS_Props_33> & Readonly<{
182
196
  onSubmit?: () => any;
183
197
  onClear?: () => any;
184
198
  }>, {
@@ -191,7 +205,7 @@ showClearButton: boolean;
191
205
  menuRef: HTMLDivElement;
192
206
  }, HTMLDivElement>;
193
207
 
194
- declare const __VLS_component_25: DefineComponent<__VLS_Props_33, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_33> & Readonly<{}>, {
208
+ declare const __VLS_component_26: DefineComponent<__VLS_Props_34, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_34> & Readonly<{}>, {
195
209
  size: "sm" | "md" | "lg";
196
210
  color: "primary" | "secondary" | "success" | "danger" | "warning";
197
211
  variant: "solid" | "outline" | "ghost";
@@ -517,17 +531,11 @@ declare type __VLS_Props_19 = {
517
531
  };
518
532
 
519
533
  declare type __VLS_Props_2 = {
520
- /** Define o label do componente */
521
534
  label: string;
522
- /** Define os valores exibidos no select */
523
535
  options: number[];
524
- /** Desabilita o componente */
525
536
  disabled?: boolean;
526
- /** Define a direção do texto */
527
537
  textDirection?: 'left' | 'right';
528
- /** Define o valor selecionado */
529
538
  modelValue: number;
530
- /**Define a posição de abertura das opções */
531
539
  position?: 'top' | 'bottom';
532
540
  };
533
541
 
@@ -569,6 +577,15 @@ declare type __VLS_Props_25 = {
569
577
  };
570
578
 
571
579
  declare type __VLS_Props_26 = {
580
+ items: Array<Record<string, unknown>>;
581
+ openTheFirst?: boolean;
582
+ allOpen?: boolean;
583
+ variant: 'accordion' | 'card' | 'minimal' | 'compact';
584
+ direction?: 'row' | 'column';
585
+ closeCollapse?: number | null;
586
+ };
587
+
588
+ declare type __VLS_Props_27 = {
572
589
  /** Define a posição em que o banner aparece */
573
590
  position?: 'top' | 'bottom';
574
591
  /** Define se o banner abre ou fecha */
@@ -581,7 +598,7 @@ declare type __VLS_Props_26 = {
581
598
  showIcon?: boolean;
582
599
  };
583
600
 
584
- declare type __VLS_Props_27 = {
601
+ declare type __VLS_Props_28 = {
585
602
  /** Define se o modal abre ou fecha */
586
603
  isOpen: boolean;
587
604
  /** Define a cor do background */
@@ -592,21 +609,12 @@ declare type __VLS_Props_27 = {
592
609
  showCloseButton?: boolean;
593
610
  };
594
611
 
595
- declare type __VLS_Props_28 = {
612
+ declare type __VLS_Props_29 = {
596
613
  text: string;
597
614
  location?: 'top' | 'bottom' | 'left' | 'right';
598
615
  focus?: boolean;
599
616
  };
600
617
 
601
- declare type __VLS_Props_29 = {
602
- /** Define o tipo de spinner */
603
- type: 'spinner' | 'semi-circle' | 'dots';
604
- /** Define se o loading deve ser exibido ou não */
605
- showLoading?: boolean;
606
- /** Define a cor do background */
607
- background?: 'smoky' | 'transparent';
608
- };
609
-
610
618
  declare type __VLS_Props_3 = {
611
619
  /** Array de string com as opções do menu */
612
620
  items: string[];
@@ -617,6 +625,15 @@ declare type __VLS_Props_3 = {
617
625
  };
618
626
 
619
627
  declare type __VLS_Props_30 = {
628
+ /** Define o tipo de spinner */
629
+ type: 'spinner' | 'semi-circle' | 'dots';
630
+ /** Define se o loading deve ser exibido ou não */
631
+ showLoading?: boolean;
632
+ /** Define a cor do background */
633
+ background?: 'smoky' | 'transparent';
634
+ };
635
+
636
+ declare type __VLS_Props_31 = {
620
637
  /** SVG bruto (como string) */
621
638
  name: string;
622
639
  /** Tamanho do ícone */
@@ -627,7 +644,7 @@ declare type __VLS_Props_30 = {
627
644
  fill?: string;
628
645
  };
629
646
 
630
- declare type __VLS_Props_31 = {
647
+ declare type __VLS_Props_32 = {
631
648
  /** Especifica o caminho para a imagem */
632
649
  src?: string;
633
650
  /** Especifica um texto alternativo para a imagem, se por algum motivo ela não puder ser exibida */
@@ -646,7 +663,7 @@ declare type __VLS_Props_31 = {
646
663
  disabled?: boolean;
647
664
  };
648
665
 
649
- declare type __VLS_Props_32 = {
666
+ declare type __VLS_Props_33 = {
650
667
  /** Define o tipo do filtro */
651
668
  variant?: 'dropdown' | 'collapse';
652
669
  /** Define o título do filtro */
@@ -661,7 +678,7 @@ declare type __VLS_Props_32 = {
661
678
  showClearButton?: boolean;
662
679
  };
663
680
 
664
- declare type __VLS_Props_33 = {
681
+ declare type __VLS_Props_34 = {
665
682
  /** Variante de estilo do badge */
666
683
  variant?: 'solid' | 'outline' | 'ghost';
667
684
  /** Cor do badge */
@@ -814,6 +831,8 @@ declare function __VLS_template(): {
814
831
  slots: Readonly<NonNullable<{
815
832
  [key: string]: (props: {
816
833
  item: Record<string, any>;
834
+ indexItem: number;
835
+ indexHeader: number;
817
836
  }) => VNode[];
818
837
  } & {
819
838
  /**Slot usado para exibir a paginação da tabela */
@@ -833,6 +852,8 @@ declare function __VLS_template(): {
833
852
  }>> & {
834
853
  [key: string]: (props: {
835
854
  item: Record<string, any>;
855
+ indexItem: number;
856
+ indexHeader: number;
836
857
  }) => VNode[];
837
858
  } & {
838
859
  /**Slot usado para exibir a paginação da tabela */
@@ -1060,6 +1081,33 @@ declare function __VLS_template_2(): {
1060
1081
  };
1061
1082
 
1062
1083
  declare function __VLS_template_20(): {
1084
+ attrs: Partial<{}>;
1085
+ slots: Readonly<{
1086
+ [key: string]: (props: {
1087
+ item: Record<string, any>;
1088
+ }) => VNode[];
1089
+ header?: (props: {
1090
+ item: Record<string, any>;
1091
+ }) => VNode[];
1092
+ content?: (props: {
1093
+ item: Record<string, any>;
1094
+ }) => VNode[];
1095
+ }> & {
1096
+ [key: string]: (props: {
1097
+ item: Record<string, any>;
1098
+ }) => VNode[];
1099
+ header?: (props: {
1100
+ item: Record<string, any>;
1101
+ }) => VNode[];
1102
+ content?: (props: {
1103
+ item: Record<string, any>;
1104
+ }) => VNode[];
1105
+ };
1106
+ refs: {};
1107
+ rootEl: HTMLDivElement;
1108
+ };
1109
+
1110
+ declare function __VLS_template_21(): {
1063
1111
  attrs: Partial<{}>;
1064
1112
  slots: Readonly<{
1065
1113
  /** Slot para o icone do banner */
@@ -1076,7 +1124,7 @@ declare function __VLS_template_20(): {
1076
1124
  rootEl: any;
1077
1125
  };
1078
1126
 
1079
- declare function __VLS_template_21(): {
1127
+ declare function __VLS_template_22(): {
1080
1128
  attrs: Partial<{}>;
1081
1129
  slots: {
1082
1130
  default?(_: {}): any;
@@ -1085,7 +1133,7 @@ declare function __VLS_template_21(): {
1085
1133
  rootEl: any;
1086
1134
  };
1087
1135
 
1088
- declare function __VLS_template_22(): {
1136
+ declare function __VLS_template_23(): {
1089
1137
  attrs: Partial<{}>;
1090
1138
  slots: {
1091
1139
  activator?(_: {}): any;
@@ -1097,7 +1145,7 @@ declare function __VLS_template_22(): {
1097
1145
  rootEl: any;
1098
1146
  };
1099
1147
 
1100
- declare function __VLS_template_23(): {
1148
+ declare function __VLS_template_24(): {
1101
1149
  attrs: Partial<{}>;
1102
1150
  slots: Readonly<{
1103
1151
  /** Adicione conteúdo no slot do Avatar */
@@ -1116,7 +1164,7 @@ declare function __VLS_template_23(): {
1116
1164
  rootEl: any;
1117
1165
  };
1118
1166
 
1119
- declare function __VLS_template_24(): {
1167
+ declare function __VLS_template_25(): {
1120
1168
  attrs: Partial<{}>;
1121
1169
  slots: Readonly<{
1122
1170
  /** Slot para o conteúdo do filtro */
@@ -1131,7 +1179,7 @@ declare function __VLS_template_24(): {
1131
1179
  rootEl: HTMLDivElement;
1132
1180
  };
1133
1181
 
1134
- declare function __VLS_template_25(): {
1182
+ declare function __VLS_template_26(): {
1135
1183
  attrs: Partial<{}>;
1136
1184
  slots: Readonly<{
1137
1185
  /** Adicione conteúdo dentro do badge */
@@ -1328,6 +1376,8 @@ declare type __VLS_TemplateResult_24 = ReturnType<typeof __VLS_template_24>;
1328
1376
 
1329
1377
  declare type __VLS_TemplateResult_25 = ReturnType<typeof __VLS_template_25>;
1330
1378
 
1379
+ declare type __VLS_TemplateResult_26 = ReturnType<typeof __VLS_template_26>;
1380
+
1331
1381
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
1332
1382
 
1333
1383
  declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
@@ -1450,6 +1500,12 @@ declare type __VLS_WithTemplateSlots_25<T, S> = T & {
1450
1500
  };
1451
1501
  };
1452
1502
 
1503
+ declare type __VLS_WithTemplateSlots_26<T, S> = T & {
1504
+ new (): {
1505
+ $slots: S;
1506
+ };
1507
+ };
1508
+
1453
1509
  declare type __VLS_WithTemplateSlots_3<T, S> = T & {
1454
1510
  new (): {
1455
1511
  $slots: S;
@@ -1508,11 +1564,11 @@ onClearFilter?: () => any;
1508
1564
  "onInput:focus"?: () => any;
1509
1565
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1510
1566
 
1511
- export declare const CeAvatar: __VLS_WithTemplateSlots_23<typeof __VLS_component_23, __VLS_TemplateResult_23["slots"]>;
1567
+ export declare const CeAvatar: __VLS_WithTemplateSlots_24<typeof __VLS_component_24, __VLS_TemplateResult_24["slots"]>;
1512
1568
 
1513
- export declare const CeBadge: __VLS_WithTemplateSlots_25<typeof __VLS_component_25, __VLS_TemplateResult_25["slots"]>;
1569
+ export declare const CeBadge: __VLS_WithTemplateSlots_26<typeof __VLS_component_26, __VLS_TemplateResult_26["slots"]>;
1514
1570
 
1515
- export declare const CeBanners: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
1571
+ export declare const CeBanners: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
1516
1572
 
1517
1573
  export declare const CeBreadcrumbs: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
1518
1574
 
@@ -1557,6 +1613,8 @@ export declare const CeCheckboxGroup: __VLS_WithTemplateSlots_3<typeof __VLS_com
1557
1613
 
1558
1614
  export declare const CeCol: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
1559
1615
 
1616
+ export declare const CeCollapse: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
1617
+
1560
1618
  export declare const CeContainer: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
1561
1619
 
1562
1620
  export declare const CeContentDivider: __VLS_WithTemplateSlots_18<typeof __VLS_component_18, __VLS_TemplateResult_18["slots"]>;
@@ -1586,7 +1644,7 @@ customMessage: string[];
1586
1644
  inputFile: HTMLInputElement;
1587
1645
  }, HTMLDivElement>;
1588
1646
 
1589
- export declare const CeFilterGroup: __VLS_WithTemplateSlots_24<typeof __VLS_component_24, __VLS_TemplateResult_24["slots"]>;
1647
+ export declare const CeFilterGroup: __VLS_WithTemplateSlots_25<typeof __VLS_component_25, __VLS_TemplateResult_25["slots"]>;
1590
1648
 
1591
1649
  export declare const CeFooter: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1592
1650
  redirect: (valor?: string) => any;
@@ -1611,11 +1669,13 @@ textDirection: "left" | "right";
1611
1669
  position: "top" | "bottom";
1612
1670
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
1613
1671
  menuRef: HTMLDivElement;
1614
- }, HTMLDivElement>;
1672
+ referenceRef: HTMLButtonElement;
1673
+ dropdownRef: HTMLUListElement;
1674
+ }, any>;
1615
1675
 
1616
1676
  export declare const CeLayout: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
1617
1677
 
1618
- export declare const CeLoading: DefineComponent<__VLS_Props_29, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_29> & Readonly<{}>, {
1678
+ export declare const CeLoading: DefineComponent<__VLS_Props_30, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_30> & Readonly<{}>, {
1619
1679
  type: "spinner" | "semi-circle" | "dots";
1620
1680
  background: "smoky" | "transparent";
1621
1681
  showLoading: boolean;
@@ -1637,7 +1697,7 @@ isSearch: boolean;
1637
1697
  isOpen: boolean;
1638
1698
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1639
1699
 
1640
- export declare const CeModal: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
1700
+ export declare const CeModal: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
1641
1701
 
1642
1702
  export declare const CePagination: DefineComponent<PaginationProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1643
1703
  paginate: (value: number) => any;
@@ -1721,7 +1781,7 @@ maxValue: number;
1721
1781
  showValue: boolean;
1722
1782
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
1723
1783
 
1724
- export declare const CeSvgIcon: DefineComponent<__VLS_Props_30, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_30> & Readonly<{}>, {
1784
+ export declare const CeSvgIcon: DefineComponent<__VLS_Props_31, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_31> & Readonly<{}>, {
1725
1785
  size: number | string;
1726
1786
  color: string;
1727
1787
  fill: string;
@@ -1769,7 +1829,7 @@ disabled: boolean;
1769
1829
  contoured: boolean;
1770
1830
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1771
1831
 
1772
- export declare const CeTooltip: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
1832
+ export declare const CeTooltip: __VLS_WithTemplateSlots_23<typeof __VLS_component_23, __VLS_TemplateResult_23["slots"]>;
1773
1833
 
1774
1834
  declare interface Coluna {
1775
1835
  text: string;
@@ -1811,6 +1871,8 @@ declare type DataTableProps = {
1811
1871
  truncated?: boolean;
1812
1872
  /** String com as diretivas tailwind a serem aplicadas ao slot pagination */
1813
1873
  paginationStyle?: string;
1874
+ /** Habilita a funcionalidade de copiar o conteúdo da célula ao clicar */
1875
+ copyable?: boolean;
1814
1876
  };
1815
1877
 
1816
1878
  export declare const disableCeLoading: () => void;
@@ -1853,6 +1915,11 @@ declare interface IBreadcrumbsProps {
1853
1915
  variant?: 'primary' | 'secondary' | 'text';
1854
1916
  }
1855
1917
 
1918
+ declare interface ICollapse {
1919
+ index: number;
1920
+ value: boolean;
1921
+ }
1922
+
1856
1923
  declare interface IData_2<T = unknown> {
1857
1924
  [key: string]: T;
1858
1925
  }
@@ -2120,5 +2187,6 @@ declare module 'vue' {
2120
2187
  'ce-footer': typeof FooterComponent;
2121
2188
  'ce-layout': typeof LayoutComponent;
2122
2189
  'ce-section-footer': typeof SectionFooterComponent;
2190
+ 'ce-collapse': typeof CollapseComponent;
2123
2191
  }
2124
2192
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comercti/vue-components",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "types": "index.d.ts",
5
5
  "type": "module",
6
6
  "license": "private",