@comercti/vue-components-hmg 0.33.8 → 0.40.1

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
@@ -43,7 +43,6 @@ loading: boolean;
43
43
  loadingType: "spinner" | "semi-circle" | "dots";
44
44
  truncated: boolean;
45
45
  copyable: boolean;
46
- editable: boolean;
47
46
  editColumnStyle: {
48
47
  fields: string[];
49
48
  style?: Record<string, string>;
@@ -1409,9 +1408,17 @@ declare function __VLS_template_7(): {
1409
1408
  slots: Readonly<{
1410
1409
  /** Slot para o conteúdo do file upload */
1411
1410
  content: () => VNode[];
1411
+ /** Slot para ações relacionadas a cada arquivo (ex: botões de download, etc) */
1412
+ actions?: (scope: {
1413
+ file: FileItem;
1414
+ }) => VNode[];
1412
1415
  }> & {
1413
1416
  /** Slot para o conteúdo do file upload */
1414
1417
  content: () => VNode[];
1418
+ /** Slot para ações relacionadas a cada arquivo (ex: botões de download, etc) */
1419
+ actions?: (scope: {
1420
+ file: FileItem;
1421
+ }) => VNode[];
1415
1422
  };
1416
1423
  refs: {
1417
1424
  inputFile: HTMLInputElement;
@@ -2026,6 +2033,10 @@ declare type DataTableProps = {
2026
2033
  *
2027
2034
  * width?: string
2028
2035
  *
2036
+ * editableField?: {
2037
+ * type: InputType | 'boolean'
2038
+ * mask?: string | string[]
2039
+ * }
2029
2040
  */
2030
2041
  headers: Header[];
2031
2042
  /** Ativa a opção de selecinar os conteúdos da tabela */
@@ -2056,8 +2067,6 @@ declare type DataTableProps = {
2056
2067
  paginationStyle?: string;
2057
2068
  /** Habilita a funcionalidade de copiar o conteúdo da célula ao clicar */
2058
2069
  copyable?: boolean;
2059
- /** Habilita a funcionalidade de editar o conteúdo da célula ao clicar */
2060
- editable?: boolean;
2061
2070
  /** Configurações para estilizar colunas editáveis */
2062
2071
  editColumnStyle?: {
2063
2072
  fields: string[];
@@ -2101,10 +2110,9 @@ declare type Header = {
2101
2110
  value: string | ((item: Record<string, unknown>) => string);
2102
2111
  sortable?: boolean;
2103
2112
  width?: string;
2104
- editableField?: {
2105
- type: InputType | 'boolean';
2106
- mask?: string | string[];
2107
- };
2113
+ type?: InputType | 'boolean';
2114
+ mask?: string | string[];
2115
+ editableField?: boolean;
2108
2116
  };
2109
2117
 
2110
2118
  declare type HexColor = `#${string}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comercti/vue-components-hmg",
3
- "version": "0.33.8",
3
+ "version": "0.40.1",
4
4
  "types": "index.d.ts",
5
5
  "type": "module",
6
6
  "license": "private",