@comercti/vue-components 0.15.0 → 0.20.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>;
@@ -231,20 +232,20 @@ rootRef: HTMLDivElement;
231
232
  }, any>;
232
233
 
233
234
  declare const __VLS_component_5: DefineComponent<__VLS_Props_8, {
234
- /** focus input */
235
235
  focus: () => void;
236
+ valorSemMascara: Ref<string | number, string | number>;
236
237
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
237
238
  "update:modelValue": (value: string | number | CustomEvent<any>) => any;
238
239
  input: (value: string | number | CustomEvent<any>) => any;
239
- blur: (value: Event) => any;
240
+ blur: (value: string | number | CustomEvent<any>) => any;
240
241
  change: (value: string | number | CustomEvent<any>) => any;
241
242
  }, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
242
243
  "onUpdate:modelValue"?: (value: string | number | CustomEvent<any>) => any;
243
244
  onInput?: (value: string | number | CustomEvent<any>) => any;
244
- onBlur?: (value: Event) => any;
245
+ onBlur?: (value: string | number | CustomEvent<any>) => any;
245
246
  onChange?: (value: string | number | CustomEvent<any>) => any;
246
247
  }>, {
247
- type: "text" | "password" | "email" | "number" | "tel" | "url" | "search" | "date" | "time";
248
+ type: "text" | "password" | "email" | "number" | "tel" | "url" | "search" | "date" | "time" | "datetime-local";
248
249
  invalid: boolean;
249
250
  disabled: boolean;
250
251
  reserveSpaceFeedback: boolean;
@@ -336,6 +337,8 @@ declare type __VLS_Props_10 = {
336
337
  maxFileSize?: number;
337
338
  /** habilita a opção de selecionar múltiplos arquivos */
338
339
  selectAll?: boolean;
340
+ /** Mensagem personalizada de tipos de arquivos */
341
+ customMessage?: string[];
339
342
  /** limpa a lista de arquivos */
340
343
  clear: boolean;
341
344
  };
@@ -460,6 +463,8 @@ declare type __VLS_Props_16 = {
460
463
  isSearch?: boolean;
461
464
  /** Se true inicializa o menu aberto */
462
465
  isOpen?: boolean;
466
+ /** Título do menu */
467
+ title?: string;
463
468
  };
464
469
 
465
470
  declare type __VLS_Props_17 = {
@@ -763,11 +768,11 @@ declare type __VLS_Props_8 = {
763
768
  /** Valor do input para two-way binding (v-model) */
764
769
  modelValue?: string | number | null;
765
770
  /** Tipo do input (text, password, email, etc) */
766
- type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time';
771
+ type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time' | 'datetime-local';
767
772
  /** ID única do input */
768
773
  id?: string;
769
- /** Máscara do input (cpf, cnpj, cel, tel, date, cep) */
770
- mask?: 'cpf' | 'cnpj' | 'cel' | 'tel' | 'cep';
774
+ /** Máscara do input (Exemplo de formato esperado: ###.###.###-##)*/
775
+ mask?: string | string[];
771
776
  /** Texto do placeholder do input */
772
777
  placeholder?: string;
773
778
  /** Texto da label exibida acima do input */
@@ -1578,7 +1583,10 @@ multiple: boolean;
1578
1583
  maxFile: number;
1579
1584
  maxFileSize: number;
1580
1585
  selectAll: boolean;
1581
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1586
+ customMessage: string[];
1587
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
1588
+ inputFile: HTMLInputElement;
1589
+ }, HTMLDivElement>;
1582
1590
 
1583
1591
  export declare const CeFilterGroup: __VLS_WithTemplateSlots_24<typeof __VLS_component_24, __VLS_TemplateResult_24["slots"]>;
1584
1592
 
@@ -1624,6 +1632,7 @@ toggleMenu: (clicado: boolean) => any;
1624
1632
  onRedirect?: (item: SubMenu | ItensMenu_2) => any;
1625
1633
  onToggleMenu?: (clicado: boolean) => any;
1626
1634
  }>, {
1635
+ title: string;
1627
1636
  itemsSearch: ItensMenu_2[];
1628
1637
  isHome: boolean;
1629
1638
  isSearch: boolean;
@@ -1770,7 +1779,17 @@ declare interface Coluna {
1770
1779
  }
1771
1780
 
1772
1781
  declare type DataTableProps = {
1773
- /** Array utilizado no header da tabela */
1782
+ /** Array utilizado no header da tabela
1783
+ *
1784
+ * text: string
1785
+ *
1786
+ * value: string | ((item: Record<string, unknown>) => string)
1787
+ *
1788
+ * sortable?: boolean
1789
+ *
1790
+ * width?: string
1791
+ *
1792
+ */
1774
1793
  headers: Header[];
1775
1794
  /** Ativa a opção de selecinar os conteúdos da tabela */
1776
1795
  selectable?: boolean;
@@ -1792,6 +1811,10 @@ declare type DataTableProps = {
1792
1811
  loadingType?: 'spinner' | 'semi-circle' | 'dots';
1793
1812
  /** Define se o texto das células será truncado */
1794
1813
  truncated?: boolean;
1814
+ /** String com as diretivas tailwind a serem aplicadas ao slot pagination */
1815
+ paginationStyle?: string;
1816
+ /** Habilita a funcionalidade de copiar o conteúdo da célula ao clicar nela */
1817
+ copyable?: boolean;
1795
1818
  };
1796
1819
 
1797
1820
  export declare const disableCeLoading: () => void;
@@ -1817,6 +1840,7 @@ declare type Header = {
1817
1840
  text: string;
1818
1841
  value: string | ((item: Record<string, unknown>) => string);
1819
1842
  sortable?: boolean;
1843
+ width?: string;
1820
1844
  };
1821
1845
 
1822
1846
  declare interface IBreadcrumbsProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comercti/vue-components",
3
- "version": "0.15.0",
3
+ "version": "0.20.0",
4
4
  "types": "index.d.ts",
5
5
  "type": "module",
6
6
  "license": "private",
@@ -13,6 +13,7 @@
13
13
  "@wdns/vue-code-block": "^2.3.5",
14
14
  "date-fns": "^4.1.0",
15
15
  "highlight.js": "^11.11.1",
16
+ "maska": "^3.2.0",
16
17
  "prismjs": "^1.30.0",
17
18
  "react": "^17.0.2",
18
19
  "react-dom": "^17.0.2",