@hantera/design-system 20250514.0.0-develop.1 → 20250602.0.0-develop.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.
Files changed (2) hide show
  1. package/dist/entry.d.ts +404 -130
  2. package/package.json +1 -1
package/dist/entry.d.ts CHANGED
@@ -17,6 +17,7 @@ import { nextTick } from 'vue';
17
17
  import { OnCleanup } from '@vue/reactivity';
18
18
  import { Plugin as Plugin_2 } from 'vue';
19
19
  import { PublicProps } from 'vue';
20
+ import { Ref } from 'vue';
20
21
  import { ShallowUnwrapRef } from 'vue';
21
22
  import { Slot } from 'vue';
22
23
  import { VNodeProps } from 'vue';
@@ -24,20 +25,14 @@ import { WatchOptions } from 'vue';
24
25
  import { WatchStopHandle } from 'vue';
25
26
 
26
27
  declare const __VLS_component: DefineComponent< {
27
- label: string;
28
- onClick?: any;
28
+ label?: string;
29
29
  disabled?: boolean;
30
- primary?: boolean;
31
- }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
32
- click: () => any;
33
- }, string, PublicProps, Readonly<{
34
- label: string;
35
- onClick?: any;
30
+ buttonStyle?: "primary" | "warning" | "danger" | "silent";
31
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
32
+ label?: string;
36
33
  disabled?: boolean;
37
- primary?: boolean;
38
- }> & Readonly<{
39
- onClick?: (() => any) | undefined;
40
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
34
+ buttonStyle?: "primary" | "warning" | "danger" | "silent";
35
+ }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
41
36
 
42
37
  declare const __VLS_component_10: DefineComponent< {
43
38
  loading: boolean;
@@ -46,17 +41,42 @@ loading: boolean;
46
41
  }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
47
42
 
48
43
  declare const __VLS_component_11: DefineComponent< {
44
+ selectedValues: string[];
45
+ availableSets: DataColumnValuesEnumSet[];
46
+ onAdd?: any;
47
+ onRemove?: any;
48
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
49
+ add: (value: DataColumnValuesEnumValue) => any;
50
+ remove: (value: DataColumnValuesEnumValue) => any;
51
+ }, string, PublicProps, Readonly<{
52
+ selectedValues: string[];
53
+ availableSets: DataColumnValuesEnumSet[];
54
+ onAdd?: any;
55
+ onRemove?: any;
56
+ }> & Readonly<{
57
+ onAdd?: ((value: DataColumnValuesEnumValue) => any) | undefined;
58
+ onRemove?: ((value: DataColumnValuesEnumValue) => any) | undefined;
59
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
60
+
61
+ declare const __VLS_component_12: DefineComponent< {
49
62
  cacheKey: string;
50
63
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
51
64
  cacheKey: string;
52
65
  }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
53
66
 
54
- declare const __VLS_component_12: DefineComponent< {
67
+ declare const __VLS_component_13: DefineComponent< {
68
+ provider: InspectorProvider;
69
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
70
+ provider: InspectorProvider;
71
+ }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
72
+
73
+ declare const __VLS_component_14: DefineComponent< {
55
74
  type: string;
56
75
  data: any;
57
76
  metadata?: Record<string, any>;
58
77
  handleSelector?: string;
59
78
  allowDrag: boolean;
79
+ mode?: "hit" | "closest";
60
80
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
61
81
  dropped: (zone: DropZoneRef) => any;
62
82
  }, string, PublicProps, Readonly<{
@@ -65,15 +85,17 @@ data: any;
65
85
  metadata?: Record<string, any>;
66
86
  handleSelector?: string;
67
87
  allowDrag: boolean;
88
+ mode?: "hit" | "closest";
68
89
  }> & Readonly<{
69
90
  onDropped?: ((zone: DropZoneRef) => any) | undefined;
70
91
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
71
92
 
72
- declare const __VLS_component_13: DefineComponent< {
93
+ declare const __VLS_component_15: DefineComponent< {
73
94
  type: string;
74
95
  data: any;
75
96
  metadata?: Record<string, any>;
76
97
  handleSelector?: string;
98
+ mode?: "hit" | "closest";
77
99
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
78
100
  dropped: (zone: DropZoneRef) => any;
79
101
  dropBefore: (payload: DragPayload) => any;
@@ -83,13 +105,14 @@ type: string;
83
105
  data: any;
84
106
  metadata?: Record<string, any>;
85
107
  handleSelector?: string;
108
+ mode?: "hit" | "closest";
86
109
  }> & Readonly<{
87
110
  onDropped?: ((zone: DropZoneRef) => any) | undefined;
88
111
  onDropBefore?: ((payload: DragPayload) => any) | undefined;
89
112
  onDropAfter?: ((payload: DragPayload) => any) | undefined;
90
113
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
91
114
 
92
- declare const __VLS_component_14: DefineComponent< {
115
+ declare const __VLS_component_16: DefineComponent< {
93
116
  accepts: string | string[];
94
117
  metadata?: Record<string, any>;
95
118
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -101,21 +124,23 @@ metadata?: Record<string, any>;
101
124
  onDrop?: ((payload: DragPayload) => any) | undefined;
102
125
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
103
126
 
104
- declare const __VLS_component_15: DefineComponent< {
127
+ declare const __VLS_component_17: DefineComponent< {
105
128
  target?: DropDownTarget | null;
106
129
  }, {
107
- open: typeof open_4;
130
+ open: typeof open_3;
108
131
  close: typeof close_3;
109
132
  isOpen: typeof isOpen;
110
133
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
111
134
  close: () => any;
135
+ open: () => any;
112
136
  }, string, PublicProps, Readonly<{
113
137
  target?: DropDownTarget | null;
114
138
  }> & Readonly<{
115
139
  onClose?: (() => any) | undefined;
140
+ onOpen?: (() => any) | undefined;
116
141
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
117
142
 
118
- declare const __VLS_component_16: DefineComponent< {
143
+ declare const __VLS_component_18: DefineComponent< {
119
144
  disabled?: boolean;
120
145
  title?: string;
121
146
  onClick?: any;
@@ -129,7 +154,7 @@ onClick?: any;
129
154
  onClick?: ((preventClose: () => void) => any) | undefined;
130
155
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
131
156
 
132
- declare const __VLS_component_17: DefineComponent< {
157
+ declare const __VLS_component_19: DefineComponent< {
133
158
  selected: boolean;
134
159
  closeOnClick?: boolean;
135
160
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -141,13 +166,21 @@ closeOnClick?: boolean;
141
166
  onClick?: (() => any) | undefined;
142
167
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
143
168
 
144
- declare const __VLS_component_18: DefineComponent< {
169
+ declare const __VLS_component_2: DefineComponent< {
170
+ to: string;
171
+ label?: string;
172
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
173
+ to: string;
174
+ label?: string;
175
+ }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
176
+
177
+ declare const __VLS_component_20: DefineComponent< {
145
178
  title?: string;
146
179
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
147
180
  title?: string;
148
181
  }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
149
182
 
150
- declare const __VLS_component_19: DefineComponent< {
183
+ declare const __VLS_component_21: DefineComponent< {
151
184
  modelValue: string | number;
152
185
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
153
186
  "update:modelValue": (value: string | number) => any;
@@ -157,15 +190,7 @@ modelValue: string | number;
157
190
  "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
158
191
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
159
192
 
160
- declare const __VLS_component_2: DefineComponent< {
161
- to: string;
162
- label?: string;
163
- }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
164
- to: string;
165
- label?: string;
166
- }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
167
-
168
- declare const __VLS_component_20: DefineComponent< {
193
+ declare const __VLS_component_22: DefineComponent< {
169
194
  label?: string;
170
195
  count?: number;
171
196
  value: string | number;
@@ -213,9 +238,7 @@ label?: string;
213
238
  contentClass?: string | Record<string, any> | Array<string>;
214
239
  }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
215
240
 
216
- declare const __VLS_component_6: DefineComponent< {}, {
217
- open: typeof open_3;
218
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
241
+ declare const __VLS_component_6: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
219
242
 
220
243
  declare const __VLS_component_7: DefineComponent< {
221
244
  label?: string;
@@ -262,6 +285,8 @@ declare type __VLS_PublicProps_2 = {
262
285
 
263
286
  declare function __VLS_template(): {
264
287
  slots: {
288
+ label?(_: {}): any;
289
+ icon?(_: {}): any;
265
290
  default?(_: {}): any;
266
291
  };
267
292
  refs: {
@@ -272,6 +297,7 @@ declare function __VLS_template(): {
272
297
  $props: {
273
298
  readonly target?: (DropDownTarget | null) | undefined;
274
299
  readonly onClose?: (() => any) | undefined;
300
+ readonly onOpen?: (() => any) | undefined;
275
301
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
276
302
  $attrs: {
277
303
  [x: string]: unknown;
@@ -285,18 +311,20 @@ declare function __VLS_template(): {
285
311
  $root: ComponentPublicInstance | null;
286
312
  $parent: ComponentPublicInstance | null;
287
313
  $host: Element | null;
288
- $emit: (event: "close") => void;
314
+ $emit: ((event: "close") => void) & ((event: "open") => void);
289
315
  $el: any;
290
316
  $options: ComponentOptionsBase<Readonly<{
291
317
  target?: DropDownTarget | null;
292
318
  }> & Readonly<{
293
319
  onClose?: (() => any) | undefined;
320
+ onOpen?: (() => any) | undefined;
294
321
  }>, {
295
322
  open: () => void;
296
323
  close: () => void;
297
324
  isOpen: () => boolean;
298
325
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
299
326
  close: () => any;
327
+ open: () => any;
300
328
  }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
301
329
  beforeCreate?: (() => void) | (() => void)[];
302
330
  created?: (() => void) | (() => void)[];
@@ -321,6 +349,7 @@ declare function __VLS_template(): {
321
349
  target?: DropDownTarget | null;
322
350
  }> & Readonly<{
323
351
  onClose?: (() => any) | undefined;
352
+ onOpen?: (() => any) | undefined;
324
353
  }>, "close" | "open" | "isOpen"> & ShallowUnwrapRef< {
325
354
  open: () => void;
326
355
  close: () => void;
@@ -344,29 +373,98 @@ declare function __VLS_template_10(): {
344
373
 
345
374
  declare function __VLS_template_11(): {
346
375
  slots: {
347
- sidebar?(_: {}): any;
348
- content?(_: {}): any;
376
+ dropdown?(_: {}): any;
377
+ };
378
+ refs: {
379
+ addButton: HTMLButtonElement;
380
+ addDropdown: ({
381
+ $: ComponentInternalInstance;
382
+ $data: {};
383
+ $props: {
384
+ readonly target?: (DropDownTarget | null) | undefined;
385
+ readonly onClose?: (() => any) | undefined;
386
+ readonly onOpen?: (() => any) | undefined;
387
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
388
+ $attrs: {
389
+ [x: string]: unknown;
390
+ };
391
+ $refs: {
392
+ [x: string]: unknown;
393
+ };
394
+ $slots: Readonly<{
395
+ [name: string]: Slot<any> | undefined;
396
+ }>;
397
+ $root: ComponentPublicInstance | null;
398
+ $parent: ComponentPublicInstance | null;
399
+ $host: Element | null;
400
+ $emit: ((event: "close") => void) & ((event: "open") => void);
401
+ $el: any;
402
+ $options: ComponentOptionsBase<Readonly<{
403
+ target?: DropDownTarget | null;
404
+ }> & Readonly<{
405
+ onClose?: (() => any) | undefined;
406
+ onOpen?: (() => any) | undefined;
407
+ }>, {
408
+ open: () => void;
409
+ close: () => void;
410
+ isOpen: () => boolean;
411
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
412
+ close: () => any;
413
+ open: () => any;
414
+ }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
415
+ beforeCreate?: (() => void) | (() => void)[];
416
+ created?: (() => void) | (() => void)[];
417
+ beforeMount?: (() => void) | (() => void)[];
418
+ mounted?: (() => void) | (() => void)[];
419
+ beforeUpdate?: (() => void) | (() => void)[];
420
+ updated?: (() => void) | (() => void)[];
421
+ activated?: (() => void) | (() => void)[];
422
+ deactivated?: (() => void) | (() => void)[];
423
+ beforeDestroy?: (() => void) | (() => void)[];
424
+ beforeUnmount?: (() => void) | (() => void)[];
425
+ destroyed?: (() => void) | (() => void)[];
426
+ unmounted?: (() => void) | (() => void)[];
427
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
428
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
429
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
430
+ };
431
+ $forceUpdate: () => void;
432
+ $nextTick: nextTick;
433
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
434
+ } & Readonly<{}> & Omit<Readonly<{
435
+ target?: DropDownTarget | null;
436
+ }> & Readonly<{
437
+ onClose?: (() => any) | undefined;
438
+ onOpen?: (() => any) | undefined;
439
+ }>, "close" | "open" | "isOpen"> & ShallowUnwrapRef< {
440
+ open: () => void;
441
+ close: () => void;
442
+ isOpen: () => boolean;
443
+ }> & {} & ComponentCustomProperties & {} & {
444
+ $slots: {
445
+ default?(_: {}): any;
446
+ };
447
+ }) | null;
349
448
  };
350
- refs: {};
351
449
  attrs: Partial<{}>;
352
450
  };
353
451
 
354
452
  declare function __VLS_template_12(): {
355
453
  slots: {
356
- default?(_: {}): any;
357
- };
358
- refs: {
359
- draggable: HTMLDivElement;
454
+ sidebar?(_: {}): any;
455
+ content?(_: {}): any;
360
456
  };
457
+ refs: {};
361
458
  attrs: Partial<{}>;
362
459
  };
363
460
 
364
461
  declare function __VLS_template_13(): {
365
462
  slots: {
366
- default?(_: {}): any;
463
+ header?(_: {}): any;
367
464
  };
368
465
  refs: {
369
- draggable: HTMLDivElement;
466
+ layoutElem: HTMLDivElement;
467
+ sidebarElem: HTMLDivElement;
370
468
  };
371
469
  attrs: Partial<{}>;
372
470
  };
@@ -376,7 +474,7 @@ declare function __VLS_template_14(): {
376
474
  default?(_: {}): any;
377
475
  };
378
476
  refs: {
379
- element: HTMLDivElement;
477
+ draggable: HTMLDivElement;
380
478
  };
381
479
  attrs: Partial<{}>;
382
480
  };
@@ -386,7 +484,7 @@ declare function __VLS_template_15(): {
386
484
  default?(_: {}): any;
387
485
  };
388
486
  refs: {
389
- dropdown: HTMLDialogElement;
487
+ draggable: HTMLDivElement;
390
488
  };
391
489
  attrs: Partial<{}>;
392
490
  };
@@ -395,7 +493,9 @@ declare function __VLS_template_16(): {
395
493
  slots: {
396
494
  default?(_: {}): any;
397
495
  };
398
- refs: {};
496
+ refs: {
497
+ element: HTMLDivElement;
498
+ };
399
499
  attrs: Partial<{}>;
400
500
  };
401
501
 
@@ -403,7 +503,9 @@ declare function __VLS_template_17(): {
403
503
  slots: {
404
504
  default?(_: {}): any;
405
505
  };
406
- refs: {};
506
+ refs: {
507
+ dropdown: HTMLDialogElement;
508
+ };
407
509
  attrs: Partial<{}>;
408
510
  };
409
511
 
@@ -417,9 +519,7 @@ declare function __VLS_template_18(): {
417
519
 
418
520
  declare function __VLS_template_19(): {
419
521
  slots: {
420
- actions?(_: {}): any;
421
522
  default?(_: {}): any;
422
- filler?(_: {}): any;
423
523
  };
424
524
  refs: {};
425
525
  attrs: Partial<{}>;
@@ -437,6 +537,24 @@ declare function __VLS_template_2(): {
437
537
  };
438
538
 
439
539
  declare function __VLS_template_20(): {
540
+ slots: {
541
+ default?(_: {}): any;
542
+ };
543
+ refs: {};
544
+ attrs: Partial<{}>;
545
+ };
546
+
547
+ declare function __VLS_template_21(): {
548
+ slots: {
549
+ actions?(_: {}): any;
550
+ default?(_: {}): any;
551
+ filler?(_: {}): any;
552
+ };
553
+ refs: {};
554
+ attrs: Partial<{}>;
555
+ };
556
+
557
+ declare function __VLS_template_22(): {
440
558
  slots: {
441
559
  content?(_: {}): any;
442
560
  default?(_: {}): any;
@@ -448,6 +566,7 @@ declare function __VLS_template_20(): {
448
566
  $props: {
449
567
  readonly target?: (DropDownTarget | null) | undefined;
450
568
  readonly onClose?: (() => any) | undefined;
569
+ readonly onOpen?: (() => any) | undefined;
451
570
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
452
571
  $attrs: {
453
572
  [x: string]: unknown;
@@ -461,18 +580,20 @@ declare function __VLS_template_20(): {
461
580
  $root: ComponentPublicInstance | null;
462
581
  $parent: ComponentPublicInstance | null;
463
582
  $host: Element | null;
464
- $emit: (event: "close") => void;
583
+ $emit: ((event: "close") => void) & ((event: "open") => void);
465
584
  $el: any;
466
585
  $options: ComponentOptionsBase<Readonly<{
467
586
  target?: DropDownTarget | null;
468
587
  }> & Readonly<{
469
588
  onClose?: (() => any) | undefined;
589
+ onOpen?: (() => any) | undefined;
470
590
  }>, {
471
591
  open: () => void;
472
592
  close: () => void;
473
593
  isOpen: () => boolean;
474
594
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
475
595
  close: () => any;
596
+ open: () => any;
476
597
  }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
477
598
  beforeCreate?: (() => void) | (() => void)[];
478
599
  created?: (() => void) | (() => void)[];
@@ -497,6 +618,7 @@ declare function __VLS_template_20(): {
497
618
  target?: DropDownTarget | null;
498
619
  }> & Readonly<{
499
620
  onClose?: (() => any) | undefined;
621
+ onOpen?: (() => any) | undefined;
500
622
  }>, "close" | "open" | "isOpen"> & ShallowUnwrapRef< {
501
623
  open: () => void;
502
624
  close: () => void;
@@ -540,73 +662,7 @@ declare function __VLS_template_6(): {
540
662
  slots: {
541
663
  default?(_: {}): any;
542
664
  };
543
- refs: {
544
- button: HTMLDivElement;
545
- dropdown: ({
546
- $: ComponentInternalInstance;
547
- $data: {};
548
- $props: {
549
- readonly target?: (DropDownTarget | null) | undefined;
550
- readonly onClose?: (() => any) | undefined;
551
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
552
- $attrs: {
553
- [x: string]: unknown;
554
- };
555
- $refs: {
556
- [x: string]: unknown;
557
- };
558
- $slots: Readonly<{
559
- [name: string]: Slot<any> | undefined;
560
- }>;
561
- $root: ComponentPublicInstance | null;
562
- $parent: ComponentPublicInstance | null;
563
- $host: Element | null;
564
- $emit: (event: "close") => void;
565
- $el: any;
566
- $options: ComponentOptionsBase<Readonly<{
567
- target?: DropDownTarget | null;
568
- }> & Readonly<{
569
- onClose?: (() => any) | undefined;
570
- }>, {
571
- open: () => void;
572
- close: () => void;
573
- isOpen: () => boolean;
574
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
575
- close: () => any;
576
- }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
577
- beforeCreate?: (() => void) | (() => void)[];
578
- created?: (() => void) | (() => void)[];
579
- beforeMount?: (() => void) | (() => void)[];
580
- mounted?: (() => void) | (() => void)[];
581
- beforeUpdate?: (() => void) | (() => void)[];
582
- updated?: (() => void) | (() => void)[];
583
- activated?: (() => void) | (() => void)[];
584
- deactivated?: (() => void) | (() => void)[];
585
- beforeDestroy?: (() => void) | (() => void)[];
586
- beforeUnmount?: (() => void) | (() => void)[];
587
- destroyed?: (() => void) | (() => void)[];
588
- unmounted?: (() => void) | (() => void)[];
589
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
590
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
591
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
592
- };
593
- $forceUpdate: () => void;
594
- $nextTick: nextTick;
595
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
596
- } & Readonly<{}> & Omit<Readonly<{
597
- target?: DropDownTarget | null;
598
- }> & Readonly<{
599
- onClose?: (() => any) | undefined;
600
- }>, "close" | "open" | "isOpen"> & ShallowUnwrapRef< {
601
- open: () => void;
602
- close: () => void;
603
- isOpen: () => boolean;
604
- }> & {} & ComponentCustomProperties & {} & {
605
- $slots: {
606
- default?(_: {}): any;
607
- };
608
- }) | null;
609
- };
665
+ refs: {};
610
666
  attrs: Partial<{}>;
611
667
  };
612
668
 
@@ -663,6 +719,10 @@ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
663
719
 
664
720
  declare type __VLS_TemplateResult_20 = ReturnType<typeof __VLS_template_20>;
665
721
 
722
+ declare type __VLS_TemplateResult_21 = ReturnType<typeof __VLS_template_21>;
723
+
724
+ declare type __VLS_TemplateResult_22 = ReturnType<typeof __VLS_template_22>;
725
+
666
726
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
667
727
 
668
728
  declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
@@ -771,6 +831,18 @@ declare type __VLS_WithTemplateSlots_20<T, S> = T & {
771
831
  };
772
832
  };
773
833
 
834
+ declare type __VLS_WithTemplateSlots_21<T, S> = T & {
835
+ new (): {
836
+ $slots: S;
837
+ };
838
+ };
839
+
840
+ declare type __VLS_WithTemplateSlots_22<T, S> = T & {
841
+ new (): {
842
+ $slots: S;
843
+ };
844
+ };
845
+
774
846
  declare type __VLS_WithTemplateSlots_3<T, S> = T & {
775
847
  new (): {
776
848
  $slots: S;
@@ -839,7 +911,153 @@ export declare interface ContextMenuSection extends Array<ContextMenuItem> {
839
911
  key?: string;
840
912
  }
841
913
 
842
- export declare interface ContextMenuSections extends Array<ContextMenuSection> {
914
+ export declare type ContextMenuSections = ContextMenuSection[];
915
+
916
+ export declare interface DataColumn {
917
+ key: string;
918
+ /**
919
+ * The index of this column's value in the DataRow.values
920
+ */
921
+ valueIdx: number;
922
+ label: string;
923
+ canFilter?: boolean;
924
+ canSort?: boolean;
925
+ /**
926
+ * Whether this column is used to sort the records
927
+ */
928
+ sort?: 'asc' | 'desc';
929
+ size?: number;
930
+ filters?: DataColumnFilter[];
931
+ /**
932
+ * Defines the type of values. Determines rendering and which filters are available.
933
+ * @default { type: 'text' }
934
+ */
935
+ values?: DataColumnValues;
936
+ }
937
+
938
+ export declare type DataColumnFilter = DataColumnFilterValue | DataColumnFilterRange;
939
+
940
+ export declare interface DataColumnFilterRange {
941
+ from: any;
942
+ to: any;
943
+ }
944
+
945
+ export declare interface DataColumnFilterValue {
946
+ type: 'all' | 'any' | 'not';
947
+ value: any;
948
+ }
949
+
950
+ export declare interface DataColumnOption {
951
+ /**
952
+ * The key of the column. Used to track if this option is selected, so it must match the key in DataProvider.columns
953
+ */
954
+ key: string;
955
+ label: string;
956
+ }
957
+
958
+ export declare interface DataColumnOptionSet {
959
+ setLabel: string;
960
+ columns: DataColumnOption[];
961
+ }
962
+
963
+ export declare type DataColumnValues = DataColumnValuesText | DataColumnValuesEnum | DataColumnValuesNumber | DataColumnValuesBoolean | DataColumnValuesDateTime;
964
+
965
+ export declare interface DataColumnValuesBoolean {
966
+ type: 'boolean';
967
+ }
968
+
969
+ export declare interface DataColumnValuesDateTime {
970
+ type: 'dateTime';
971
+ min?: Date;
972
+ max?: Date;
973
+ }
974
+
975
+ export declare interface DataColumnValuesEnum {
976
+ type: 'enum';
977
+ isArray: boolean;
978
+ enums: DataColumnValuesEnumSet[];
979
+ }
980
+
981
+ export declare interface DataColumnValuesEnumSet {
982
+ label?: string;
983
+ values: DataColumnValuesEnumValue[];
984
+ }
985
+
986
+ export declare interface DataColumnValuesEnumValue {
987
+ key: string;
988
+ label?: string;
989
+ hue?: number;
990
+ }
991
+
992
+ export declare interface DataColumnValuesNumber {
993
+ type: 'number';
994
+ min?: default_2 | number;
995
+ max?: default_2 | number;
996
+ }
997
+
998
+ export declare interface DataColumnValuesText {
999
+ type: 'text';
1000
+ isArray: boolean;
1001
+ }
1002
+
1003
+ export declare interface DataError {
1004
+ code: string;
1005
+ message: string;
1006
+ }
1007
+
1008
+ export declare interface DataProvider {
1009
+ refresh(): Promise<void>;
1010
+ loadMore(): Promise<void>;
1011
+ errors?: ComputedRef<DataError[] | undefined>;
1012
+ setSort?: (column: DataColumn, direction?: 'asc' | 'desc') => void;
1013
+ setFilters?: (column: DataColumn, filters?: DataColumnFilter[]) => void;
1014
+ /**
1015
+ * If implemented, allows users to configure columns of the table. When a user chose a new column,
1016
+ * addColumn() is called.
1017
+ */
1018
+ columnOptions?: ComputedRef<DataColumnOptionSet[]>;
1019
+ addColumn?: (columnOption: DataColumnOption) => void;
1020
+ removeColumn?: (columnOption: DataColumnOption) => void;
1021
+ setColumnOrder?: (column: DataColumn, newIndex: number) => void;
1022
+ setColumnSize?: (columnKey: string, size?: number) => void;
1023
+ allLoaded: ComputedRef<boolean>;
1024
+ rows: ComputedRef<DataRow[]>;
1025
+ columns: ComputedRef<DataColumn[]>;
1026
+ totalCount?: ComputedRef<{
1027
+ count: number;
1028
+ /**
1029
+ * If the totalCount is capped, a '+' will be rendered after the value
1030
+ */
1031
+ cap?: number;
1032
+ } | undefined>;
1033
+ }
1034
+
1035
+ export declare interface DataRow {
1036
+ key: string;
1037
+ values: any[];
1038
+ }
1039
+
1040
+ export declare const DataTable: DefineComponent< {
1041
+ provider: DataProvider;
1042
+ contextMenuProvider?: DataTableContextMenuProvider;
1043
+ selected?: Set<string>;
1044
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1045
+ "update:selected": (val: Set<string>) => any;
1046
+ defaultAction: () => any;
1047
+ }, string, PublicProps, Readonly<{
1048
+ provider: DataProvider;
1049
+ contextMenuProvider?: DataTableContextMenuProvider;
1050
+ selected?: Set<string>;
1051
+ }> & Readonly<{
1052
+ "onUpdate:selected"?: ((val: Set<string>) => any) | undefined;
1053
+ onDefaultAction?: (() => any) | undefined;
1054
+ }>, {
1055
+ selected: Set<string>;
1056
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1057
+
1058
+ export declare interface DataTableContextMenuProvider {
1059
+ forHeader(column: DataColumn): ContextMenuSections;
1060
+ forRow(row: DataRow): ContextMenuSections;
843
1061
  }
844
1062
 
845
1063
  export declare const DatePicker: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -906,12 +1124,20 @@ export declare interface DecimalInputValue {
906
1124
  declare const _default: Plugin_2<[]>;
907
1125
  export default _default;
908
1126
 
909
- export declare const Draggable: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
1127
+ export declare const Draggable: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
910
1128
 
911
- export declare const DraggableListItem: __VLS_WithTemplateSlots_13<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
1129
+ export declare const DraggableListItem: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
912
1130
 
913
1131
  export declare interface DragPayload {
914
1132
  type: string;
1133
+ /**
1134
+ * 'hit' requires the pointer to enter a drop zone
1135
+ *
1136
+ * 'closest' selects the closest compatible drop zone
1137
+ *
1138
+ * Default value is 'hit'
1139
+ */
1140
+ mode?: 'hit' | 'closest';
915
1141
  data: any;
916
1142
  sourceElement?: HTMLElement | null;
917
1143
  metadata?: Record<string, any>;
@@ -920,15 +1146,15 @@ export declare interface DragPayload {
920
1146
 
921
1147
  export declare const DropdownButton: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
922
1148
 
923
- export declare const DropdownCheckbox: __VLS_WithTemplateSlots_17<typeof __VLS_component_17, __VLS_TemplateResult_17["slots"]>;
1149
+ export declare const DropdownCheckbox: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
924
1150
 
925
1151
  export declare const DropdownDivider: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
926
1152
 
927
- export declare const DropdownGroup: __VLS_WithTemplateSlots_18<typeof __VLS_component_18, __VLS_TemplateResult_18["slots"]>;
1153
+ export declare const DropdownGroup: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
928
1154
 
929
- export declare const DropdownItem: __VLS_WithTemplateSlots_16<typeof __VLS_component_16, __VLS_TemplateResult_16["slots"]>;
1155
+ export declare const DropdownItem: __VLS_WithTemplateSlots_18<typeof __VLS_component_18, __VLS_TemplateResult_18["slots"]>;
930
1156
 
931
- export declare const DropdownMenu: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
1157
+ export declare const DropdownMenu: __VLS_WithTemplateSlots_17<typeof __VLS_component_17, __VLS_TemplateResult_17["slots"]>;
932
1158
 
933
1159
  export declare type DropDownTarget = Element | DropDownTargetPoint;
934
1160
 
@@ -937,7 +1163,7 @@ export declare interface DropDownTargetPoint {
937
1163
  y: number;
938
1164
  }
939
1165
 
940
- export declare const DropZone: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
1166
+ export declare const DropZone: __VLS_WithTemplateSlots_16<typeof __VLS_component_16, __VLS_TemplateResult_16["slots"]>;
941
1167
 
942
1168
  export declare interface DropZoneRef {
943
1169
  accepts: string | string[];
@@ -946,6 +1172,8 @@ export declare interface DropZoneRef {
946
1172
  onDrop?: (payload: DragPayload) => void;
947
1173
  }
948
1174
 
1175
+ export declare const EnumsBar: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
1176
+
949
1177
  export declare const Expandable: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
950
1178
 
951
1179
  export declare const ExternalLink: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
@@ -962,6 +1190,10 @@ declare function focus_5(): void;
962
1190
 
963
1191
  export declare const IconArrow: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
964
1192
 
1193
+ export declare const IconArrows: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1194
+
1195
+ export declare const IconChevron: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1196
+
965
1197
  export declare const IconClose: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
966
1198
 
967
1199
  export declare const IconFilter: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -1010,6 +1242,50 @@ onFocus?: ((value: Event) => any) | undefined;
1010
1242
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1011
1243
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1012
1244
 
1245
+ export declare const InspectorLayout: __VLS_WithTemplateSlots_13<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
1246
+
1247
+ /**
1248
+ * Defines the provider that provides InspectorLayout with content to render
1249
+ */
1250
+ export declare interface InspectorProvider {
1251
+ /**
1252
+ * If set, a state indicator is displayed in the header
1253
+ */
1254
+ state?: {
1255
+ label: string;
1256
+ hue?: number;
1257
+ };
1258
+ /**
1259
+ * If set, adds the title to the header
1260
+ */
1261
+ title?: string;
1262
+ /**
1263
+ * If set, adds the labels to the header
1264
+ */
1265
+ labels?: (string | {
1266
+ label: string;
1267
+ tooltip?: string;
1268
+ })[];
1269
+ /**
1270
+ * An HTML tag name, a Component name or Component class reference to render as summary.
1271
+ */
1272
+ summary: string | object;
1273
+ /**
1274
+ * The currently selected tab. 0 means select first tab which is summary
1275
+ * or first tab depending on viewport size.
1276
+ */
1277
+ selectedTab: Ref<string | number>;
1278
+ tabs: {
1279
+ key: string;
1280
+ label: string;
1281
+ count?: number;
1282
+ /**
1283
+ * An HTML tag name, a Component name or Component class reference to render as tab's content.
1284
+ */
1285
+ component: string | object;
1286
+ }[];
1287
+ }
1288
+
1013
1289
  declare function isOpen(): boolean;
1014
1290
 
1015
1291
  export declare const ListLink: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
@@ -1020,8 +1296,6 @@ declare function open_2(): void;
1020
1296
 
1021
1297
  declare function open_3(): void;
1022
1298
 
1023
- declare function open_4(): void;
1024
-
1025
1299
  declare function openModal(): void;
1026
1300
 
1027
1301
  export declare const Panel: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
@@ -1111,13 +1385,13 @@ declare function setError_3(message?: string): void;
1111
1385
  */
1112
1386
  declare function setError_4(message?: string): void;
1113
1387
 
1114
- export declare const SidebarLayout: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
1388
+ export declare const SidebarLayout: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
1115
1389
 
1116
1390
  export declare const Spinner: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1117
1391
 
1118
- export declare const TabBar: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
1392
+ export declare const TabBar: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
1119
1393
 
1120
- export declare const TabItem: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
1394
+ export declare const TabItem: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
1121
1395
 
1122
1396
  export declare const TextInput: DefineComponent<__VLS_PublicProps, {
1123
1397
  setError: typeof setError;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hantera/design-system",
3
- "version": "20250514.0.0-develop.1",
3
+ "version": "20250602.0.0-develop.1",
4
4
  "types": "./dist/entry.d.ts",
5
5
  "scripts": {
6
6
  "build": "cpx ../../design-system/dist/**/*.d.ts ./dist -C"