@ghentcdh/ui 1.1.1 → 3.0.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.
Files changed (55) hide show
  1. package/ControlWrapper-DejmeYzV.js +1 -0
  2. package/ControlWrapper-DqO2d36v.js +152 -0
  3. package/Markdown-DcpBYoNe.js +1 -0
  4. package/Markdown-Dj1gzJJq.js +59 -0
  5. package/button/Btn.properties.d.ts +6 -2
  6. package/button/btn.vue.d.ts +15 -5
  7. package/const/colors.d.ts +2 -1
  8. package/drawer/drawer.properties.d.ts +4 -0
  9. package/drawer/drawer.vue.d.ts +9 -0
  10. package/filter/filter.vue.d.ts +1 -1
  11. package/form/Checkbox.properties.d.ts +14 -1
  12. package/form/Checkbox.vue.d.ts +41 -8
  13. package/form/Input.properties.d.ts +18 -1
  14. package/form/Input.vue.d.ts +50 -8
  15. package/form/InputNumber.properties.d.ts +14 -1
  16. package/form/InputNumber.vue.d.ts +41 -8
  17. package/form/Textarea.properties.d.ts +26 -1
  18. package/form/Textarea.vue.d.ts +68 -8
  19. package/form/core/ControlWrapper.properties.d.ts +54 -1
  20. package/form/core/ControlWrapper.vue.d.ts +42 -8
  21. package/form/core/properties.d.ts +2 -16
  22. package/form/core/styles.d.ts +1 -1
  23. package/form/core/utils/style.d.ts +3 -3
  24. package/form/index.d.ts +273 -1
  25. package/form/select/AutoComplete.properties.d.ts +27 -2
  26. package/form/select/AutoComplete.vue.d.ts +75 -15
  27. package/form/select/ListResults.properties.d.ts +7 -1
  28. package/form/select/ListResults.vue.d.ts +12 -3
  29. package/form/select/MultiSelect.vue.d.ts +73 -13
  30. package/form/select/SelectComponent.vue.d.ts +61 -10
  31. package/form/select/SelectWrapper.properties.d.ts +57 -9
  32. package/form/select/SelectWrapper.vue.d.ts +99 -17
  33. package/form/text/Markdown.vue.d.ts +41 -8
  34. package/form/text/MarkdownComponent.properties.d.ts +14 -1
  35. package/form/text/MarkdownFallback.vue.d.ts +267 -0
  36. package/icons/icon-list.d.ts +3 -1
  37. package/index.css +3 -1
  38. package/index.d.ts +1 -0
  39. package/index.js +2 -2
  40. package/index.mjs +2318 -2359
  41. package/modal/modal.vue.d.ts +1 -0
  42. package/package.json +26 -16
  43. package/table/cells/text.cell.vue.d.ts +1 -1
  44. package/table/column.model.d.ts +6 -0
  45. package/table/header/sort.header.properties.d.ts +1 -1
  46. package/table/header/sort.header.vue.d.ts +2 -2
  47. package/table/index.d.ts +2 -0
  48. package/table/pagination.component.properties.d.ts +5 -0
  49. package/table/pagination.component.vue.d.ts +9 -0
  50. package/table/table.component.properties.d.ts +4 -0
  51. package/table/table.component.vue.d.ts +9 -0
  52. package/table/table.model.d.ts +4 -1
  53. package/testing.js +1 -1
  54. package/testing.mjs +338 -419
  55. package/test-utils/withSetup.d.ts +0 -4
@@ -1,6 +1,7 @@
1
1
  declare function __VLS_template(): {
2
2
  attrs: Partial<{}>;
3
3
  slots: {
4
+ 'label-action'?(_: {}): any;
4
5
  default?(_: {}): any;
5
6
  };
6
7
  refs: {};
@@ -10,18 +11,23 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
11
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
11
12
  id: {
12
13
  type: StringConstructor;
14
+ default: undefined;
13
15
  };
14
16
  placeholder: {
15
17
  type: StringConstructor;
18
+ default: undefined;
16
19
  };
17
20
  description: {
18
21
  type: StringConstructor;
22
+ default: undefined;
19
23
  };
20
24
  errors: {
21
25
  type: StringConstructor;
26
+ default: undefined;
22
27
  };
23
28
  label: {
24
29
  type: StringConstructor;
30
+ default: undefined;
25
31
  };
26
32
  visible: {
27
33
  type: BooleanConstructor;
@@ -73,7 +79,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
73
79
  readonly label: "fieldset-legend";
74
80
  readonly error: "";
75
81
  readonly input: "input";
76
- readonly textarea: "input h-32";
82
+ readonly textarea: "textarea h-32";
77
83
  readonly checkbox: "checkbox";
78
84
  readonly select: "input pr-14";
79
85
  readonly description: "form-control--description label text-xs text-gray-500";
@@ -88,21 +94,34 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
88
94
  type: StringConstructor;
89
95
  default: string;
90
96
  };
97
+ size: {
98
+ type: StringConstructor;
99
+ default: undefined;
100
+ };
101
+ hideErrors: {
102
+ type: BooleanConstructor;
103
+ default: boolean;
104
+ };
91
105
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
92
106
  id: {
93
107
  type: StringConstructor;
108
+ default: undefined;
94
109
  };
95
110
  placeholder: {
96
111
  type: StringConstructor;
112
+ default: undefined;
97
113
  };
98
114
  description: {
99
115
  type: StringConstructor;
116
+ default: undefined;
100
117
  };
101
118
  errors: {
102
119
  type: StringConstructor;
120
+ default: undefined;
103
121
  };
104
122
  label: {
105
123
  type: StringConstructor;
124
+ default: undefined;
106
125
  };
107
126
  visible: {
108
127
  type: BooleanConstructor;
@@ -154,7 +173,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
154
173
  readonly label: "fieldset-legend";
155
174
  readonly error: "";
156
175
  readonly input: "input";
157
- readonly textarea: "input h-32";
176
+ readonly textarea: "textarea h-32";
158
177
  readonly checkbox: "checkbox";
159
178
  readonly select: "input pr-14";
160
179
  readonly description: "form-control--description label text-xs text-gray-500";
@@ -169,9 +188,28 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
169
188
  type: StringConstructor;
170
189
  default: string;
171
190
  };
191
+ size: {
192
+ type: StringConstructor;
193
+ default: undefined;
194
+ };
195
+ hideErrors: {
196
+ type: BooleanConstructor;
197
+ default: boolean;
198
+ };
172
199
  }>> & Readonly<{}>, {
200
+ size: string;
201
+ label: string;
173
202
  required: boolean;
203
+ id: string;
204
+ placeholder: string;
174
205
  width: string;
206
+ visible: boolean;
207
+ errors: string;
208
+ isTouched: boolean;
209
+ description: string;
210
+ enabled: boolean;
211
+ isFocused: boolean;
212
+ hideLabel: boolean;
175
213
  styles: {
176
214
  readonly group: {
177
215
  readonly root: "group";
@@ -196,7 +234,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
196
234
  readonly label: "fieldset-legend";
197
235
  readonly error: "";
198
236
  readonly input: "input";
199
- readonly textarea: "input h-32";
237
+ readonly textarea: "textarea h-32";
200
238
  readonly checkbox: "checkbox";
201
239
  readonly select: "input pr-14";
202
240
  readonly description: "form-control--description label text-xs text-gray-500";
@@ -206,11 +244,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
206
244
  readonly item: "w-full";
207
245
  };
208
246
  };
209
- hideLabel: boolean;
210
- isTouched: boolean;
211
- visible: boolean;
212
- enabled: boolean;
213
- isFocused: boolean;
247
+ hideErrors: boolean;
214
248
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLFieldSetElement>;
215
249
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
216
250
  export default _default;
@@ -1,20 +1,6 @@
1
1
  import { Editor } from '@tiptap/vue-3';
2
- import { MyStyles } from './styles';
3
- export type ControlProperties = {
4
- id?: string;
5
- placeholder?: string;
6
- description?: string;
7
- errors?: string;
8
- label?: string;
9
- visible?: boolean;
10
- required?: boolean;
11
- enabled?: boolean;
12
- isFocused?: boolean;
13
- isTouched?: boolean;
14
- hideLabel?: boolean;
15
- styles?: MyStyles;
16
- width: string;
17
- };
2
+ import { ControlWrapperProps } from './ControlWrapper.properties';
3
+ export type ControlProperties = Required<ControlWrapperProps>;
18
4
  export type ToolbarAction = {
19
5
  /** Displayed inside the button (text or HTML, e.g. an icon) */
20
6
  label: string;
@@ -22,7 +22,7 @@ export declare const myStyles: {
22
22
  readonly label: "fieldset-legend";
23
23
  readonly error: "";
24
24
  readonly input: "input";
25
- readonly textarea: "input h-32";
25
+ readonly textarea: "textarea h-32";
26
26
  readonly checkbox: "checkbox";
27
27
  readonly select: "input pr-14";
28
28
  readonly description: "form-control--description label text-xs text-gray-500";
@@ -1,6 +1,6 @@
1
1
  import { ControlProperties } from '../properties';
2
- type ErrorControlProperties = Pick<ControlProperties, 'errors' | 'isTouched'>;
3
- export declare const showErrors: ({ isTouched, errors }: ErrorControlProperties) => boolean;
2
+ type StyleControlProperties = Pick<ControlProperties, 'errors' | 'isTouched' | 'size'>;
3
+ export declare const showErrors: ({ isTouched, errors }: StyleControlProperties) => boolean;
4
4
  export declare const isDescriptionHidden: (visible: boolean, description: string | undefined, isFocused: boolean, showUnfocusedDescription: boolean) => boolean;
5
- export declare const buildInputStyle: (styles: string, properties: ErrorControlProperties) => any;
5
+ export declare const buildInputStyle: (styles: string, properties: StyleControlProperties) => any;
6
6
  export {};
package/form/index.d.ts CHANGED
@@ -1,11 +1,283 @@
1
1
  export { default as SelectComponent } from './select/SelectComponent.vue';
2
2
  export { default as ControlWrapper } from './core/ControlWrapper.vue';
3
+ export * from './core/ControlWrapper.properties';
3
4
  export { default as Autocomplete } from './select/AutoComplete.vue';
4
5
  export { default as MultiSelect } from './select/MultiSelect.vue';
5
6
  export * from './core/styles';
6
7
  export * from './core/utils/style';
7
8
  export * from './core/properties';
8
- export { default as Markdown } from './text/Markdown.vue';
9
+ /**
10
+ * The rich Markdown editor pulls in TipTap, which is an *optional* peer
11
+ * dependency. It is loaded lazily so consumers that never render Markdown do
12
+ * not need TipTap installed. If the import fails (TipTap absent), it degrades
13
+ * to a plain-textarea fallback instead of crashing.
14
+ */
15
+ export declare const Markdown: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
16
+ width: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ minHeight: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ actions: {
25
+ type: import('vue').PropType<import('./text/MarkdownComponent.properties').ToolbarAction[]>;
26
+ default: () => import('./text/MarkdownComponent.properties').ToolbarAction[];
27
+ };
28
+ id: {
29
+ type: StringConstructor;
30
+ default: undefined;
31
+ };
32
+ placeholder: {
33
+ type: StringConstructor;
34
+ default: undefined;
35
+ };
36
+ description: {
37
+ type: StringConstructor;
38
+ default: undefined;
39
+ };
40
+ errors: {
41
+ type: StringConstructor;
42
+ default: undefined;
43
+ };
44
+ label: {
45
+ type: StringConstructor;
46
+ default: undefined;
47
+ };
48
+ visible: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ required: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ enabled: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ isFocused: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ isTouched: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ hideLabel: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
71
+ };
72
+ styles: {
73
+ type: import('vue').PropType<import('./core/styles').MyStyles>;
74
+ default: () => {
75
+ readonly group: {
76
+ readonly root: "group";
77
+ readonly label: "text-primary text-lg font-bold";
78
+ readonly item: "group-item";
79
+ };
80
+ readonly verticalLayout: {
81
+ readonly root: "flex flex-col gap-x-2";
82
+ readonly item: "w-full";
83
+ };
84
+ readonly horizontalLayout: {
85
+ readonly root: "flex flex-row gap-x-2";
86
+ readonly item: "w-full";
87
+ };
88
+ readonly arrayList: {
89
+ readonly root: "fieldset";
90
+ readonly legend: "fieldset-legend text-xl capitalize";
91
+ };
92
+ readonly control: {
93
+ readonly root: "fieldset";
94
+ readonly wrapper: "fieldset";
95
+ readonly label: "fieldset-legend";
96
+ readonly error: "";
97
+ readonly input: "input";
98
+ readonly textarea: "textarea h-32";
99
+ readonly checkbox: "checkbox";
100
+ readonly select: "input pr-14";
101
+ readonly description: "form-control--description label text-xs text-gray-500";
102
+ };
103
+ readonly fixedArrayList: {
104
+ readonly root: "flex flex-row gap-x-2";
105
+ readonly item: "w-full";
106
+ };
107
+ };
108
+ };
109
+ size: {
110
+ type: StringConstructor;
111
+ default: undefined;
112
+ };
113
+ hideErrors: {
114
+ type: BooleanConstructor;
115
+ default: boolean;
116
+ };
117
+ modelValue: {
118
+ type: import('vue').PropType<any>;
119
+ };
120
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
121
+ "update:modelValue": (value: any) => void;
122
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
123
+ width: {
124
+ type: StringConstructor;
125
+ default: string;
126
+ };
127
+ minHeight: {
128
+ type: StringConstructor;
129
+ default: string;
130
+ };
131
+ actions: {
132
+ type: import('vue').PropType<import('./text/MarkdownComponent.properties').ToolbarAction[]>;
133
+ default: () => import('./text/MarkdownComponent.properties').ToolbarAction[];
134
+ };
135
+ id: {
136
+ type: StringConstructor;
137
+ default: undefined;
138
+ };
139
+ placeholder: {
140
+ type: StringConstructor;
141
+ default: undefined;
142
+ };
143
+ description: {
144
+ type: StringConstructor;
145
+ default: undefined;
146
+ };
147
+ errors: {
148
+ type: StringConstructor;
149
+ default: undefined;
150
+ };
151
+ label: {
152
+ type: StringConstructor;
153
+ default: undefined;
154
+ };
155
+ visible: {
156
+ type: BooleanConstructor;
157
+ default: boolean;
158
+ };
159
+ required: {
160
+ type: BooleanConstructor;
161
+ default: boolean;
162
+ };
163
+ enabled: {
164
+ type: BooleanConstructor;
165
+ default: boolean;
166
+ };
167
+ isFocused: {
168
+ type: BooleanConstructor;
169
+ default: boolean;
170
+ };
171
+ isTouched: {
172
+ type: BooleanConstructor;
173
+ default: boolean;
174
+ };
175
+ hideLabel: {
176
+ type: BooleanConstructor;
177
+ default: boolean;
178
+ };
179
+ styles: {
180
+ type: import('vue').PropType<import('./core/styles').MyStyles>;
181
+ default: () => {
182
+ readonly group: {
183
+ readonly root: "group";
184
+ readonly label: "text-primary text-lg font-bold";
185
+ readonly item: "group-item";
186
+ };
187
+ readonly verticalLayout: {
188
+ readonly root: "flex flex-col gap-x-2";
189
+ readonly item: "w-full";
190
+ };
191
+ readonly horizontalLayout: {
192
+ readonly root: "flex flex-row gap-x-2";
193
+ readonly item: "w-full";
194
+ };
195
+ readonly arrayList: {
196
+ readonly root: "fieldset";
197
+ readonly legend: "fieldset-legend text-xl capitalize";
198
+ };
199
+ readonly control: {
200
+ readonly root: "fieldset";
201
+ readonly wrapper: "fieldset";
202
+ readonly label: "fieldset-legend";
203
+ readonly error: "";
204
+ readonly input: "input";
205
+ readonly textarea: "textarea h-32";
206
+ readonly checkbox: "checkbox";
207
+ readonly select: "input pr-14";
208
+ readonly description: "form-control--description label text-xs text-gray-500";
209
+ };
210
+ readonly fixedArrayList: {
211
+ readonly root: "flex flex-row gap-x-2";
212
+ readonly item: "w-full";
213
+ };
214
+ };
215
+ };
216
+ size: {
217
+ type: StringConstructor;
218
+ default: undefined;
219
+ };
220
+ hideErrors: {
221
+ type: BooleanConstructor;
222
+ default: boolean;
223
+ };
224
+ modelValue: {
225
+ type: import('vue').PropType<any>;
226
+ };
227
+ }>> & Readonly<{
228
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
229
+ }>, {
230
+ size: string;
231
+ label: string;
232
+ required: boolean;
233
+ id: string;
234
+ placeholder: string;
235
+ width: string;
236
+ actions: import('./text/MarkdownComponent.properties').ToolbarAction[];
237
+ visible: boolean;
238
+ errors: string;
239
+ isTouched: boolean;
240
+ description: string;
241
+ enabled: boolean;
242
+ isFocused: boolean;
243
+ hideLabel: boolean;
244
+ styles: {
245
+ readonly group: {
246
+ readonly root: "group";
247
+ readonly label: "text-primary text-lg font-bold";
248
+ readonly item: "group-item";
249
+ };
250
+ readonly verticalLayout: {
251
+ readonly root: "flex flex-col gap-x-2";
252
+ readonly item: "w-full";
253
+ };
254
+ readonly horizontalLayout: {
255
+ readonly root: "flex flex-row gap-x-2";
256
+ readonly item: "w-full";
257
+ };
258
+ readonly arrayList: {
259
+ readonly root: "fieldset";
260
+ readonly legend: "fieldset-legend text-xl capitalize";
261
+ };
262
+ readonly control: {
263
+ readonly root: "fieldset";
264
+ readonly wrapper: "fieldset";
265
+ readonly label: "fieldset-legend";
266
+ readonly error: "";
267
+ readonly input: "input";
268
+ readonly textarea: "textarea h-32";
269
+ readonly checkbox: "checkbox";
270
+ readonly select: "input pr-14";
271
+ readonly description: "form-control--description label text-xs text-gray-500";
272
+ };
273
+ readonly fixedArrayList: {
274
+ readonly root: "flex flex-row gap-x-2";
275
+ readonly item: "w-full";
276
+ };
277
+ };
278
+ hideErrors: boolean;
279
+ minHeight: string;
280
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLFieldSetElement>;
9
281
  export { default as Checkbox } from './Checkbox.vue';
10
282
  export { default as Input } from './Input.vue';
11
283
  export { default as InputNumber } from './InputNumber.vue';
@@ -38,12 +38,16 @@ export declare const AutocompleteProperties: {
38
38
  };
39
39
  query: {
40
40
  type: StringConstructor;
41
- default: null;
41
+ default: undefined;
42
42
  };
43
43
  isActive: {
44
44
  type: FunctionConstructor;
45
45
  default: (item: any) => boolean;
46
46
  };
47
+ teleported: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
47
51
  labelKey: {
48
52
  type: StringConstructor;
49
53
  default: string;
@@ -56,20 +60,33 @@ export declare const AutocompleteProperties: {
56
60
  type: BooleanConstructor;
57
61
  default: boolean;
58
62
  };
63
+ clearable: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ value: {
68
+ type: import('vue').PropType<any>;
69
+ default: undefined;
70
+ };
59
71
  id: {
60
72
  type: StringConstructor;
73
+ default: undefined;
61
74
  };
62
75
  placeholder: {
63
76
  type: StringConstructor;
77
+ default: undefined;
64
78
  };
65
79
  description: {
66
80
  type: StringConstructor;
81
+ default: undefined;
67
82
  };
68
83
  errors: {
69
84
  type: StringConstructor;
85
+ default: undefined;
70
86
  };
71
87
  label: {
72
88
  type: StringConstructor;
89
+ default: undefined;
73
90
  };
74
91
  visible: {
75
92
  type: BooleanConstructor;
@@ -121,7 +138,7 @@ export declare const AutocompleteProperties: {
121
138
  readonly label: "fieldset-legend";
122
139
  readonly error: "";
123
140
  readonly input: "input";
124
- readonly textarea: "input h-32";
141
+ readonly textarea: "textarea h-32";
125
142
  readonly checkbox: "checkbox";
126
143
  readonly select: "input pr-14";
127
144
  readonly description: "form-control--description label text-xs text-gray-500";
@@ -136,4 +153,12 @@ export declare const AutocompleteProperties: {
136
153
  type: StringConstructor;
137
154
  default: string;
138
155
  };
156
+ size: {
157
+ type: StringConstructor;
158
+ default: undefined;
159
+ };
160
+ hideErrors: {
161
+ type: BooleanConstructor;
162
+ default: boolean;
163
+ };
139
164
  };