@wgalleti/primevue-components 0.3.7 → 0.4.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.
@@ -8,6 +8,8 @@ type __VLS_Props = {
8
8
  saving: boolean;
9
9
  disabled?: boolean;
10
10
  width?: string;
11
+ /** Nº de colunas do grid do form (repassado ao WFormRenderer; default 2). */
12
+ formColumns?: number;
11
13
  };
12
14
  declare function __VLS_template(): {
13
15
  attrs: Partial<{}>;
@@ -34,6 +36,7 @@ declare function __VLS_template(): {
34
36
  readonly formData: Record<string, unknown>;
35
37
  readonly isEditing: boolean;
36
38
  readonly disabled?: boolean | undefined;
39
+ readonly columns?: number | undefined;
37
40
  readonly "onUpdate:field"?: ((field: string, value: unknown) => any) | undefined;
38
41
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
39
42
  $attrs: {
@@ -55,6 +58,7 @@ declare function __VLS_template(): {
55
58
  formData: Record<string, unknown>;
56
59
  isEditing: boolean;
57
60
  disabled?: boolean;
61
+ columns?: number;
58
62
  }> & Readonly<{
59
63
  "onUpdate:field"?: ((field: string, value: unknown) => any) | undefined;
60
64
  }>, {
@@ -64,6 +68,7 @@ declare function __VLS_template(): {
64
68
  "update:field": (field: string, value: unknown) => any;
65
69
  }, string, {
66
70
  disabled: boolean;
71
+ columns: number;
67
72
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
68
73
  beforeCreate?: (() => void) | (() => void)[];
69
74
  created?: (() => void) | (() => void)[];
@@ -86,14 +91,16 @@ declare function __VLS_template(): {
86
91
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
87
92
  } & Readonly<{
88
93
  disabled: boolean;
94
+ columns: number;
89
95
  }> & Omit<Readonly<{
90
96
  fields: FieldDef[];
91
97
  formData: Record<string, unknown>;
92
98
  isEditing: boolean;
93
99
  disabled?: boolean;
100
+ columns?: number;
94
101
  }> & Readonly<{
95
102
  "onUpdate:field"?: ((field: string, value: unknown) => any) | undefined;
96
- }>, "disabled" | "validateAll" | "clearErrors"> & import('vue').ShallowUnwrapRef<{
103
+ }>, ("disabled" | "columns") | "validateAll" | "clearErrors"> & import('vue').ShallowUnwrapRef<{
97
104
  validateAll: () => string[];
98
105
  clearErrors: () => void;
99
106
  }> & {} & import('vue').ComponentCustomProperties & {} & {
@@ -122,6 +129,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
122
129
  }>, {
123
130
  disabled: boolean;
124
131
  width: string;
132
+ formColumns: number;
125
133
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
126
134
  rendererRef: ({
127
135
  $: import('vue').ComponentInternalInstance;
@@ -131,6 +139,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
131
139
  readonly formData: Record<string, unknown>;
132
140
  readonly isEditing: boolean;
133
141
  readonly disabled?: boolean | undefined;
142
+ readonly columns?: number | undefined;
134
143
  readonly "onUpdate:field"?: ((field: string, value: unknown) => any) | undefined;
135
144
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
136
145
  $attrs: {
@@ -152,6 +161,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
152
161
  formData: Record<string, unknown>;
153
162
  isEditing: boolean;
154
163
  disabled?: boolean;
164
+ columns?: number;
155
165
  }> & Readonly<{
156
166
  "onUpdate:field"?: ((field: string, value: unknown) => any) | undefined;
157
167
  }>, {
@@ -161,6 +171,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
161
171
  "update:field": (field: string, value: unknown) => any;
162
172
  }, string, {
163
173
  disabled: boolean;
174
+ columns: number;
164
175
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
165
176
  beforeCreate?: (() => void) | (() => void)[];
166
177
  created?: (() => void) | (() => void)[];
@@ -183,14 +194,16 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
183
194
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
184
195
  } & Readonly<{
185
196
  disabled: boolean;
197
+ columns: number;
186
198
  }> & Omit<Readonly<{
187
199
  fields: FieldDef[];
188
200
  formData: Record<string, unknown>;
189
201
  isEditing: boolean;
190
202
  disabled?: boolean;
203
+ columns?: number;
191
204
  }> & Readonly<{
192
205
  "onUpdate:field"?: ((field: string, value: unknown) => any) | undefined;
193
- }>, "disabled" | "validateAll" | "clearErrors"> & import('vue').ShallowUnwrapRef<{
206
+ }>, ("disabled" | "columns") | "validateAll" | "clearErrors"> & import('vue').ShallowUnwrapRef<{
194
207
  validateAll: () => string[];
195
208
  clearErrors: () => void;
196
209
  }> & {} & import('vue').ComponentCustomProperties & {} & {
@@ -6,6 +6,9 @@ type __VLS_Props = {
6
6
  showSearch?: boolean;
7
7
  showHeader?: boolean;
8
8
  dialogWidth?: string;
9
+ /** Nº de colunas do grid do form dialog (default: `formColumns` da config
10
+ * do useCrudManager, senão 2). */
11
+ formColumns?: number;
9
12
  autoInit?: boolean;
10
13
  showKpi?: boolean;
11
14
  kpiIcon?: string;
@@ -17,6 +20,7 @@ type __VLS_Props = {
17
20
  cardFields?: number;
18
21
  actionRail?: boolean;
19
22
  contextMenu?: boolean;
23
+ showPrint?: boolean;
20
24
  exportCsv?: boolean;
21
25
  csvFilename?: string;
22
26
  csvScope?: 'all' | 'page';
@@ -99,6 +103,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
99
103
  defaultView: "table" | "cards";
100
104
  cardFields: number;
101
105
  actionRail: boolean;
106
+ showPrint: boolean;
102
107
  exportCsv: boolean;
103
108
  csvFilename: string;
104
109
  csvScope: "all" | "page";
@@ -4,6 +4,9 @@ type __VLS_Props = {
4
4
  formData: Record<string, unknown>;
5
5
  isEditing: boolean;
6
6
  disabled?: boolean;
7
+ /** Nº de colunas do grid (default 2). Campos ocupam frações via `colSpan`;
8
+ * grupos podem sobrepor via `fieldGroup.columns`. */
9
+ columns?: number;
7
10
  };
8
11
  declare function validateAll(): string[];
9
12
  declare function clearErrors(): void;
@@ -31,6 +34,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
31
34
  "onUpdate:field"?: ((field: string, value: unknown) => any) | undefined;
32
35
  }>, {
33
36
  disabled: boolean;
37
+ columns: number;
34
38
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
35
39
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
40
  export default _default;