@comercti/react-components-hmg 0.8.21 → 0.8.23

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,7 @@ selectable: boolean;
30
30
  striped: boolean;
31
31
  orderByServer: boolean;
32
32
  expandLine: boolean;
33
+ compact: boolean;
33
34
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
34
35
  rootRef: HTMLDivElement;
35
36
  }, HTMLDivElement>;
@@ -114,6 +115,7 @@ backgroundColor: string;
114
115
  titleColor: string;
115
116
  disabledSubmit: boolean;
116
117
  disabledClear: boolean;
118
+ showClearButton: boolean;
117
119
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
118
120
  menuRef: HTMLDivElement;
119
121
  }, HTMLDivElement>;
@@ -197,7 +199,7 @@ type: "inline" | "centralized" | "highlighted";
197
199
 
198
200
  declare const __VLS_component_26: DefineComponent<__VLS_Props_33, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_33> & Readonly<{}>, {
199
201
  openMenu: boolean;
200
- layout: "default" | "base";
202
+ layout: "default" | "base" | "minimal";
201
203
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
202
204
 
203
205
  declare const __VLS_component_3: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -236,21 +238,18 @@ rootRef: HTMLDivElement;
236
238
  }, any>;
237
239
 
238
240
  declare const __VLS_component_6: DefineComponent<DropdownProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
239
- "update:modelValue": (value: ItensMenu_2 | IReturn | Coluna[]) => any;
240
241
  selected: (value: Coluna[]) => any;
241
242
  redirect: (item: ItensMenu_2) => any;
242
243
  }, string, PublicProps, Readonly<DropdownProps> & Readonly<{
243
- "onUpdate:modelValue"?: (value: ItensMenu_2 | IReturn | Coluna[]) => any;
244
244
  onSelected?: (value: Coluna[]) => any;
245
245
  onRedirect?: (item: ItensMenu_2) => any;
246
246
  }>, {
247
247
  type: "menu" | "selection";
248
- variant: "outlined" | "text";
249
248
  itemsMenu: ItensMenu_2[];
250
249
  itemsSelection: ItemsSelection_2[];
251
250
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
252
251
  dropdownRef: HTMLDivElement;
253
- }, HTMLDivElement>;
252
+ }, any>;
254
253
 
255
254
  declare const __VLS_component_7: DefineComponent<__VLS_Props_11, {
256
255
  /** focus input */
@@ -341,7 +340,7 @@ declare type __VLS_Props_10 = {
341
340
 
342
341
  declare type __VLS_Props_11 = {
343
342
  /** Valor do input para two-way binding (v-model) */
344
- modelValue?: string | number;
343
+ modelValue?: string | number | null;
345
344
  /** Tipo do input (text, password, email, etc) */
346
345
  type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date';
347
346
  /** ID única do input */
@@ -370,7 +369,7 @@ declare type __VLS_Props_11 = {
370
369
 
371
370
  declare type __VLS_Props_12 = {
372
371
  /** Valor do radio para two-way binding (v-model) */
373
- modelValue?: ModelValueType_2;
372
+ modelValue?: ModelValueType_2 | null;
374
373
  /** ID única do radio */
375
374
  id?: string;
376
375
  /** Estrutura para adicionar o radio */
@@ -519,6 +518,8 @@ declare type __VLS_Props_2 = {
519
518
  disabled?: boolean;
520
519
  /** Define a direção do texto */
521
520
  textDirection?: 'left' | 'right';
521
+ /** Define o valor selecionado */
522
+ modelValue: number;
522
523
  };
523
524
 
524
525
  declare type __VLS_Props_20 = {
@@ -564,6 +565,8 @@ declare type __VLS_Props_22 = {
564
565
  disabledSubmit?: boolean;
565
566
  /**Desabilita o botão de limpar */
566
567
  disabledClear?: boolean;
568
+ /** Define se o botão de limpar será exibido */
569
+ showClearButton?: boolean;
567
570
  };
568
571
 
569
572
  declare type __VLS_Props_23 = {
@@ -681,7 +684,7 @@ declare type __VLS_Props_33 = {
681
684
  /** Indica se o menu abriu */
682
685
  openMenu?: boolean;
683
686
  /** Defini o tipo de layout a ser usado */
684
- layout: 'default' | 'base';
687
+ layout: 'default' | 'base' | 'minimal';
685
688
  };
686
689
 
687
690
  declare type __VLS_Props_34 = {
@@ -731,7 +734,7 @@ declare type __VLS_Props_6 = {
731
734
 
732
735
  declare type __VLS_Props_7 = {
733
736
  /** Valor do checkbox para two-way binding (v-model) */
734
- modelValue?: ModelValueType;
737
+ modelValue?: ModelValueType | null;
735
738
  /** ID única do checkbox */
736
739
  id?: string;
737
740
  /** Valor a ser definido quando checkbox estiver marcado */
@@ -1116,6 +1119,14 @@ declare function __VLS_template_26(): {
1116
1119
  content?: () => VNode[];
1117
1120
  /** Adicione conteúdo no footer */
1118
1121
  footer?: () => VNode[];
1122
+ /** Adicione conteúdo no nav */
1123
+ nav?: () => VNode[];
1124
+ /** Adicione conteúdo no dividers */
1125
+ dividers?: () => VNode[];
1126
+ /** Adicione conteúdo no filter */
1127
+ filter?: () => VNode[];
1128
+ /** Adicione conteúdo na tabela */
1129
+ table?: () => VNode[];
1119
1130
  }> & {
1120
1131
  /** Adicione conteúdo no header */
1121
1132
  header?: () => VNode[];
@@ -1125,6 +1136,14 @@ declare function __VLS_template_26(): {
1125
1136
  content?: () => VNode[];
1126
1137
  /** Adicione conteúdo no footer */
1127
1138
  footer?: () => VNode[];
1139
+ /** Adicione conteúdo no nav */
1140
+ nav?: () => VNode[];
1141
+ /** Adicione conteúdo no dividers */
1142
+ dividers?: () => VNode[];
1143
+ /** Adicione conteúdo no filter */
1144
+ filter?: () => VNode[];
1145
+ /** Adicione conteúdo na tabela */
1146
+ table?: () => VNode[];
1128
1147
  };
1129
1148
  refs: {};
1130
1149
  rootEl: any;
@@ -1197,7 +1216,7 @@ declare function __VLS_template_6(): {
1197
1216
  refs: {
1198
1217
  dropdownRef: HTMLDivElement;
1199
1218
  };
1200
- rootEl: HTMLDivElement;
1219
+ rootEl: any;
1201
1220
  };
1202
1221
 
1203
1222
  declare function __VLS_template_7(): {
@@ -1625,6 +1644,8 @@ declare type DataTableProps = {
1625
1644
  orderByServer?: boolean;
1626
1645
  /**Permitir a expansão da linha */
1627
1646
  expandLine?: boolean;
1647
+ /** Define o estilo compacto da tabela */
1648
+ compact?: boolean;
1628
1649
  };
1629
1650
 
1630
1651
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1716,6 +1737,7 @@ onPaginate?: (value: number) => any;
1716
1737
  }>, {
1717
1738
  totalPages: number;
1718
1739
  currentPage: number;
1740
+ itemsPerPage: number;
1719
1741
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1720
1742
 
1721
1743
  declare const _default_20: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -1870,8 +1892,6 @@ declare interface DropdownProps {
1870
1892
  itemsMenu?: ItensMenu[];
1871
1893
  /** Define os itens do dropdown tipo seleção */
1872
1894
  itemsSelection?: ItemsSelection[];
1873
- /** Define a variante do dropdown */
1874
- variant?: 'outlined' | 'text';
1875
1895
  /** Define o tipo do dropdown */
1876
1896
  type?: 'menu' | 'selection';
1877
1897
  }
@@ -1918,12 +1938,6 @@ declare type IProgressStepsProps = {
1918
1938
  items: IItems[];
1919
1939
  };
1920
1940
 
1921
- declare interface IReturn {
1922
- text: string;
1923
- path?: string;
1924
- options?: unknown;
1925
- }
1926
-
1927
1941
  export declare const isMobile: Ref<boolean, boolean>;
1928
1942
 
1929
1943
  declare interface ISocialMedia {
@@ -2008,6 +2022,8 @@ declare type PaginationProps = {
2008
2022
  totalPages: number;
2009
2023
  /** Página atual */
2010
2024
  currentPage: number;
2025
+ /** Itens por página */
2026
+ itemsPerPage: number;
2011
2027
  };
2012
2028
 
2013
2029
  export declare const removeCeToast: (id: number) => void;
@@ -2064,17 +2080,6 @@ data: IData | null;
2064
2080
  export { }
2065
2081
 
2066
2082
 
2067
- declare module 'vue' {
2068
- interface GlobalComponents {
2069
- 'ce-pagination': typeof PaginationComponent;
2070
- 'ce-progress-indicator': typeof ProgressIndicatorComponent;
2071
- 'ce-progress-steps': typeof ProgressStepsComponent;
2072
- 'ce-data-table': typeof DataTableComponent;
2073
- 'ce-items-per-page': typeof ItemsPerPageComponent;
2074
- }
2075
- }
2076
-
2077
-
2078
2083
  declare module 'vue' {
2079
2084
  interface GlobalComponents {
2080
2085
  'ce-autocomplete': typeof AutocompleteComponent;
@@ -2118,9 +2123,13 @@ declare module 'vue' {
2118
2123
 
2119
2124
  declare module 'vue' {
2120
2125
  interface GlobalComponents {
2121
- 'ce-avatar': typeof AvatarComponent;
2122
- 'ce-filter-group': typeof FilterGroupComponent;
2123
- 'ce-badge': typeof BadgeComponent;
2126
+ 'ce-card': typeof CardComponent;
2127
+ 'ce-card-header': typeof CardHeaderComponent;
2128
+ 'ce-card-text': typeof CardTextComponent;
2129
+ 'ce-content-divider': typeof ContentDividerComponent;
2130
+ 'ce-footer': typeof FooterComponent;
2131
+ 'ce-layout': typeof LayoutComponent;
2132
+ 'ce-section-footer': typeof SectionFooterComponent;
2124
2133
  }
2125
2134
  }
2126
2135
 
@@ -2138,12 +2147,19 @@ declare module 'vue' {
2138
2147
 
2139
2148
  declare module 'vue' {
2140
2149
  interface GlobalComponents {
2141
- 'ce-card': typeof CardComponent;
2142
- 'ce-card-header': typeof CardHeaderComponent;
2143
- 'ce-card-text': typeof CardTextComponent;
2144
- 'ce-content-divider': typeof ContentDividerComponent;
2145
- 'ce-footer': typeof FooterComponent;
2146
- 'ce-layout': typeof LayoutComponent;
2147
- 'ce-section-footer': typeof SectionFooterComponent;
2150
+ 'ce-pagination': typeof PaginationComponent;
2151
+ 'ce-progress-indicator': typeof ProgressIndicatorComponent;
2152
+ 'ce-progress-steps': typeof ProgressStepsComponent;
2153
+ 'ce-data-table': typeof DataTableComponent;
2154
+ 'ce-items-per-page': typeof ItemsPerPageComponent;
2155
+ }
2156
+ }
2157
+
2158
+
2159
+ declare module 'vue' {
2160
+ interface GlobalComponents {
2161
+ 'ce-avatar': typeof AvatarComponent;
2162
+ 'ce-filter-group': typeof FilterGroupComponent;
2163
+ 'ce-badge': typeof BadgeComponent;
2148
2164
  }
2149
2165
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comercti/react-components-hmg",
3
- "version": "0.8.21",
3
+ "version": "0.8.23",
4
4
  "types": "index.d.ts",
5
5
  "type": "module",
6
6
  "license": "private",