@aventusjs/cli 0.0.25 → 0.0.26

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.
@@ -11,12 +11,12 @@ type ProcessConfig = {
11
11
  handleErrors: (msg: string, errors: Aventus.GenericError[]) => void;
12
12
  };
13
13
 
14
- namespace Toast {
14
+ namespace Toast {
15
15
  /**
16
16
  * Defines the possible positions where a toast notification can appear on the screen.
17
17
  */
18
18
  type ToastPosition = 'bottom' | 'top' | 'bottom left' | 'top left' | 'bottom right' | 'top right';
19
- }
19
+ }
20
20
 
21
21
  /**
22
22
  * Renders a circular progress indicator using SVG. It allows customization of the progress value and the thickness of the circle stroke.
@@ -27,19 +27,19 @@ class ProgressCircle extends Aventus.WebComponent implements Aventus.DefaultComp
27
27
  */
28
28
  @Property((target: ProgressCircle) => {
29
29
  target.render();
30
- })
30
+ })
31
31
  value: number;
32
32
  /**
33
33
  * Defines the thickness of the progress circle's stroke. Changes to this property trigger the render() method.
34
34
  */
35
35
  @Property((target: ProgressCircle) => {
36
36
  target.render();
37
- })
37
+ })
38
38
  stroke_width: number;
39
39
  /**
40
40
  * Reference to the HTML element within the component's template where the SVG will be rendered.
41
41
  */
42
- @ViewElement()
42
+ @ViewElement()
43
43
  protected containerEl: HTMLDivElement;
44
44
  /**
45
45
  * Reference to the dynamically created SVG element.
@@ -67,7 +67,7 @@ class ProgressCircle extends Aventus.WebComponent implements Aventus.DefaultComp
67
67
  protected postCreation(): void;
68
68
  }
69
69
 
70
- namespace Navigation {
70
+ namespace Navigation {
71
71
  /**
72
72
  * Configuration options for a page component.
73
73
  */
@@ -81,7 +81,7 @@ interface PageConfig {
81
81
  /** Define if the page should be destroyed when the page will be hidden. */
82
82
  destroy?: boolean;
83
83
  }
84
- }
84
+ }
85
85
 
86
86
  /**
87
87
  * Manages the state and history of routes within an Aventus application.
@@ -93,21 +93,21 @@ class RouterStateManager extends Aventus.StateManager {
93
93
  static getInstance(): RouterStateManager;
94
94
  }
95
95
 
96
- namespace Navigation {
96
+ namespace Navigation {
97
97
  /**
98
98
  * Provides declarative navigation within an Aventus application. It functions similarly to an HTML tag but integrates with the application's router for client-side routing, applying an "active" class based on the current route/state.
99
99
  */
100
- @Deprecated()
100
+ @Deprecated()
101
101
  class RouterLink extends Aventus.WebComponent implements Aventus.DefaultComponent {
102
102
  /**
103
103
  * Specifies the internal route state path to navigate to.
104
104
  */
105
- @Attribute()
105
+ @Attribute()
106
106
  state?: string;
107
107
  /**
108
108
  * If set, defines a custom pattern to determine when the link should be considered "active", overriding the default behavior of matching state.
109
109
  */
110
- @Attribute()
110
+ @Attribute()
111
111
  active_state?: string;
112
112
  /**
113
113
  * Callback triggered when the active state of the link changes.
@@ -130,9 +130,9 @@ class RouterLink extends Aventus.WebComponent implements Aventus.DefaultComponen
130
130
  */
131
131
  protected postCreation(): void;
132
132
  }
133
- }
133
+ }
134
134
 
135
- namespace Navigation {
135
+ namespace Navigation {
136
136
  /**
137
137
  * Provides declarative navigation within an Aventus application. It functions similarly to an HTML tag but integrates with the application's router for client-side routing, applying an "active" class based on the current route.
138
138
  */
@@ -140,12 +140,12 @@ class Link extends Aventus.WebComponent implements Aventus.DefaultComponent {
140
140
  /**
141
141
  * Specifies the internal route path to navigate to.
142
142
  */
143
- @Attribute()
143
+ @Attribute()
144
144
  to?: string;
145
145
  /**
146
146
  * If set, defines a custom pattern to determine when the link should be considered "active", overriding the default behavior of matching to.
147
147
  */
148
- @Attribute()
148
+ @Attribute()
149
149
  active_pattern?: string;
150
150
  /**
151
151
  * Callback triggered when the active state of the link changes.
@@ -168,9 +168,9 @@ class Link extends Aventus.WebComponent implements Aventus.DefaultComponent {
168
168
  */
169
169
  protected postCreation(): void;
170
170
  }
171
- }
171
+ }
172
172
 
173
- namespace Navigation {
173
+ namespace Navigation {
174
174
  /**
175
175
  * Options for defining an asynchronously loaded route.
176
176
  */
@@ -179,9 +179,9 @@ type RouteAsyncOption = {
179
179
  scriptUrl: string;
180
180
  render: () => new () => Aventus.Navigation.Page;
181
181
  };
182
- }
182
+ }
183
183
 
184
- namespace Modal {
184
+ namespace Modal {
185
185
  /**
186
186
  * Defines configuration options for a modal dialog.
187
187
  */
@@ -199,7 +199,7 @@ interface ModalOptions<T = any> {
199
199
  */
200
200
  rejectValue?: T | null;
201
201
  }
202
- }
202
+ }
203
203
 
204
204
  /**
205
205
  * Tracks touch or pointer events to calculate movement, delta, and velocity.
@@ -252,7 +252,7 @@ class Tracker {
252
252
  private getPosition;
253
253
  }
254
254
 
255
- namespace Layout {
255
+ namespace Layout {
256
256
  /**
257
257
  * A fundamental building block for creating flexible and responsive layouts. It acts as a container for Col components, arranging them horizontally, and is configured to work with CSS Container Queries.
258
258
  */
@@ -262,9 +262,9 @@ class Row extends Aventus.WebComponent implements Aventus.DefaultComponent {
262
262
  */
263
263
  constructor();
264
264
  }
265
- }
265
+ }
266
266
 
267
- namespace Lib {
267
+ namespace Lib {
268
268
  /**
269
269
  * Enumerates special keys that can be used in keyboard shortcuts.
270
270
  */
@@ -288,9 +288,9 @@ enum SpecialTouch {
288
288
  ArrowDown = 16,
289
289
  Enter = 17
290
290
  }
291
- }
291
+ }
292
292
 
293
- namespace Lib {
293
+ namespace Lib {
294
294
  /**
295
295
  * Configuration options for subscribing to keyboard shortcuts.
296
296
  */
@@ -298,7 +298,7 @@ interface ShortcutManagerOptions {
298
298
  replaceTemp?: boolean;
299
299
  preventDefault?: boolean;
300
300
  }
301
- }
301
+ }
302
302
 
303
303
  /**
304
304
  * Provides a simple web component to toggle the visibility of content, often with a collapsing/expanding animation driven by CSS.
@@ -307,16 +307,16 @@ class Collapse extends Aventus.WebComponent implements Aventus.DefaultComponent
307
307
  /**
308
308
  * Controls the collapsed/expanded state of the component. When true, the content is visible; when false, it's hidden.
309
309
  */
310
- @Attribute()
310
+ @Attribute()
311
311
  open: boolean;
312
312
  /**
313
313
  * When true, disables the collapsing/expanding animation.
314
314
  */
315
- @Attribute()
315
+ @Attribute()
316
316
  no_animation: boolean;
317
- @Attribute()
317
+ @Attribute()
318
318
  horizontal: boolean;
319
- @Attribute()
319
+ @Attribute()
320
320
  reverse: boolean;
321
321
  /**
322
322
  * Dispatches a new event when a CSS transition ends, allowing parent components or external listeners to react.
@@ -328,7 +328,7 @@ class Collapse extends Aventus.WebComponent implements Aventus.DefaultComponent
328
328
  protected toggleOpen(): void;
329
329
  }
330
330
 
331
- namespace Layout {
331
+ namespace Layout {
332
332
  /**
333
333
  * Defines configuration options for the Col component.
334
334
  */
@@ -338,9 +338,9 @@ interface ColOptions {
338
338
  */
339
339
  use_container?: boolean;
340
340
  }
341
- }
341
+ }
342
342
 
343
- namespace Layout {
343
+ namespace Layout {
344
344
  /**
345
345
  * A foundational element for creating responsive grid layouts. Its behavior (sizing, offsetting, centering) is driven by CSS rules applied based on its attributes.
346
346
  */
@@ -348,8 +348,8 @@ class Col extends Aventus.WebComponent implements Aventus.DefaultComponent {
348
348
  /**
349
349
  * Static property indicating the default use_container value for all Col instances.
350
350
  */
351
- @Attribute()
352
- @StoryValue(false)
351
+ @Attribute()
352
+ @StoryValue(false)
353
353
  private static use_container;
354
354
  /**
355
355
  * Allows global configuration of Col components.
@@ -358,106 +358,106 @@ class Col extends Aventus.WebComponent implements Aventus.DefaultComponent {
358
358
  /**
359
359
  * Indicates if the column should act as a container. Can be configured globally or overridden per instance.
360
360
  */
361
- @Attribute()
362
- @StoryValue(false)
361
+ @Attribute()
362
+ @StoryValue(false)
363
363
  use_container: boolean;
364
364
  /**
365
365
  * Defines the column's width.
366
366
  */
367
- @Attribute()
367
+ @Attribute()
368
368
  size: number;
369
369
  /**
370
370
  * Defines the column's width for extra small screens.
371
371
  */
372
- @Attribute()
372
+ @Attribute()
373
373
  size_xs: number;
374
374
  /**
375
375
  * Defines the column's width for small screens.
376
376
  */
377
- @Attribute()
377
+ @Attribute()
378
378
  size_sm: number;
379
379
  /**
380
380
  * Defines the column's width for medium screens.
381
381
  */
382
- @Attribute()
382
+ @Attribute()
383
383
  size_md: number;
384
384
  /**
385
385
  * Defines the column's width for large screens.
386
386
  */
387
- @Attribute()
387
+ @Attribute()
388
388
  size_lg: number;
389
389
  /**
390
390
  * Defines the column's width for extra large screens.
391
391
  */
392
- @Attribute()
392
+ @Attribute()
393
393
  size_xl: number;
394
394
  /**
395
395
  * Defines the column's left offset.
396
396
  */
397
- @Attribute()
397
+ @Attribute()
398
398
  offset: number;
399
399
  /**
400
400
  * Defines the column's left offset for extra small screens.
401
401
  */
402
- @Attribute()
402
+ @Attribute()
403
403
  offset_xs: number;
404
404
  /**
405
405
  * Defines the column's left offset for small screens.
406
406
  */
407
- @Attribute()
407
+ @Attribute()
408
408
  offset_sm: number;
409
409
  /**
410
410
  * Defines the column's left offset for medium screens.
411
411
  */
412
- @Attribute()
412
+ @Attribute()
413
413
  offset_md: number;
414
414
  /**
415
415
  * Defines the column's left offset for large screens.
416
416
  */
417
- @Attribute()
417
+ @Attribute()
418
418
  offset_lg: number;
419
419
  /**
420
420
  * Defines the column's left offset for extra large screens.
421
421
  */
422
- @Attribute()
422
+ @Attribute()
423
423
  offset_xl: number;
424
424
  /**
425
425
  * Defines the column's right offset.
426
426
  */
427
- @Attribute()
427
+ @Attribute()
428
428
  offset_right: number;
429
429
  /**
430
430
  * Defines the column's right offset for extra small screens.
431
431
  */
432
- @Attribute()
432
+ @Attribute()
433
433
  offset_right_xs: number;
434
434
  /**
435
435
  * Defines the column's right offset for small screens.
436
436
  */
437
- @Attribute()
437
+ @Attribute()
438
438
  offset_right_sm: number;
439
439
  /**
440
440
  * Defines the column's right offset for medium screens.
441
441
  */
442
- @Attribute()
442
+ @Attribute()
443
443
  offset_right_md: number;
444
444
  /**
445
445
  * Defines the column's right offset for large screens.
446
446
  */
447
- @Attribute()
447
+ @Attribute()
448
448
  offset_right_lg: number;
449
449
  /**
450
450
  * Defines the column's right offset for extra large screens.
451
451
  */
452
- @Attribute()
452
+ @Attribute()
453
453
  offset_right_xl: number;
454
454
  /**
455
455
  * When true, centers the content within the column.
456
456
  */
457
- @Attribute()
457
+ @Attribute()
458
458
  center: boolean;
459
459
  }
460
- }
460
+ }
461
461
 
462
462
  /**
463
463
  * A sophisticated image display component that handles responsive sizing, different content modes (stretch, contains, cover), and asynchronous loading of both raster images and SVG files. It ensures images are displayed correctly within their container, even with dynamic resizing.
@@ -466,14 +466,14 @@ class Img extends Aventus.WebComponent implements Aventus.DefaultComponent {
466
466
  /**
467
467
  * If true, the image will be loaded and cached as a base64 string.
468
468
  */
469
- @Attribute()
469
+ @Attribute()
470
470
  cache: boolean;
471
471
  /**
472
472
  * The URL of the image to display. Changes to this property trigger onSrcChanged().
473
473
  */
474
474
  @Property((target: Img) => {
475
475
  target.onSrcChanged();
476
- })
476
+ })
477
477
  src?: string;
478
478
  /**
479
479
  * Determines how the image content should fit within its container. - 'stretch': Stretches the image to fill the container. - 'contains': Scales the image to fit within the container while preserving its aspect ratio. - 'cover': Scales the image to cover the entire container while preserving its aspect ratio.
@@ -482,17 +482,17 @@ class Img extends Aventus.WebComponent implements Aventus.DefaultComponent {
482
482
  if(target.src != "") {
483
483
  target.calculateSize();
484
484
  }
485
- })
485
+ })
486
486
  mode: 'stretch' | 'contains' | 'cover';
487
487
  /**
488
488
  * Reference to the HTMLImageElement within the component's template, used for raster images.
489
489
  */
490
- @ViewElement()
490
+ @ViewElement()
491
491
  protected imgEl: HTMLImageElement;
492
492
  /**
493
493
  * Reference to the HTMLDivElement within the component's template, used for SVG content.
494
494
  */
495
- @ViewElement()
495
+ @ViewElement()
496
496
  protected svgEl: HTMLDivElement;
497
497
  /**
498
498
  * A flag to prevent redundant size calculations during calculateSize.
@@ -528,22 +528,22 @@ class Img extends Aventus.WebComponent implements Aventus.DefaultComponent {
528
528
  protected postCreation(): void;
529
529
  }
530
530
 
531
- namespace Form {
531
+ namespace Form {
532
532
  /**
533
533
  * Checks if a given class is a subclass of another class.
534
534
  */
535
535
  function isSubclassOf(subClass: Function, superClass: Function): boolean;
536
- }
536
+ }
537
537
 
538
- namespace Form {
538
+ namespace Form {
539
539
  type LastParameter<T extends any> = T extends (...args: any) => any ? Aventus.Last<Parameters<T>> : never;
540
- }
540
+ }
541
541
 
542
- namespace Form {
542
+ namespace Form {
543
543
  type ObjectParameter<T extends any> = T extends (...args: any) => any ? Aventus.Last<Parameters<T>> extends Object ? Aventus.Last<Parameters<T>> : never : never;
544
- }
544
+ }
545
545
 
546
- namespace Form {
546
+ namespace Form {
547
547
  /**
548
548
  * Represents the internal structure of a single form field or part, including its value, validation rules, and associated elements.
549
549
  */
@@ -570,53 +570,53 @@ interface InternalFormPart<T = any> {
570
570
  test: () => Promise<boolean>;
571
571
  handler: Aventus.Form.FormHandler<any>;
572
572
  }
573
- }
573
+ }
574
574
 
575
- namespace Form {
575
+ namespace Form {
576
576
  type IsUnion<T, U = T> = T extends U ? [U] extends [T] ? false : true : never;
577
- }
577
+ }
578
578
 
579
- namespace Form {
579
+ namespace Form {
580
580
  type FilterPrefix<T> = T extends `getPrefix` ? never : T;
581
- }
581
+ }
582
582
 
583
- namespace Form {
583
+ namespace Form {
584
584
  /**
585
585
  * Represents the internal structure of a form, mapping field names to their internal form parts.
586
586
  */
587
587
  type InternalForm<T> = {
588
588
  [K in keyof T]?: Aventus.Form.InternalFormPart<T[K]>;
589
589
  };
590
- }
590
+ }
591
591
 
592
- namespace Form {
592
+ namespace Form {
593
593
  type OmitClass<T> = Exclude<{
594
594
  [K in keyof T]: T[K] extends Function ? never : K;
595
595
  }[keyof T], "$type" | "className" | "namespace">;
596
- }
596
+ }
597
597
 
598
- namespace Form {
598
+ namespace Form {
599
599
  /**
600
600
  * Represents a type that can either be a successful result or an error.
601
601
  */
602
602
  type WithError<X> = [X] extends [void] ? Aventus.VoidWithError : Aventus.ResultWithError<X>;
603
- }
603
+ }
604
604
 
605
- namespace Form {
605
+ namespace Form {
606
606
  /**
607
607
  * Extracts the successful result type from a WithError type.
608
608
  */
609
609
  type ExtractError<X> = [X] extends [Aventus.ResultWithError<infer Y>] ? Y : [X] extends [Aventus.VoidWithError] ? void : X;
610
- }
610
+ }
611
611
 
612
- namespace Form {
612
+ namespace Form {
613
613
  /**
614
614
  * Represents a constructor type, with an option to allow abstract classes.
615
615
  */
616
616
  type Constructor<T, AllowAbstract extends boolean = false> = AllowAbstract extends false ? new (...args: any[]) => T : abstract new (...args: any[]) => T;
617
- }
617
+ }
618
618
 
619
- namespace Toast {
619
+ namespace Toast {
620
620
  /**
621
621
  * Configuration options for the ToastManager.
622
622
  */
@@ -628,9 +628,9 @@ type ToastManagerOptions = {
628
628
  heightLimitPercent: number;
629
629
  gap: number;
630
630
  };
631
- }
631
+ }
632
632
 
633
- namespace Navigation {
633
+ namespace Navigation {
634
634
  /**
635
635
  * Configuration options for the Router component.
636
636
  */
@@ -638,9 +638,9 @@ type RouterOptions = {
638
638
  page404?: Aventus.Form.Constructor<Aventus.Navigation.Page>;
639
639
  destroyPage?: boolean;
640
640
  };
641
- }
641
+ }
642
642
 
643
- namespace Layout.Tabs {
643
+ namespace Layout.Tabs {
644
644
  /**
645
645
  * Abstract web component that serves as a container for a tabbed interface. It manages the loading, rendering, and activation of Tab content components and their corresponding TabHeader components.
646
646
  */
@@ -649,12 +649,12 @@ abstract class Tabs<T extends Aventus.Layout.Tabs.Tab, U extends Aventus.Layout.
649
649
  /**
650
650
  * Reference to the HTML element where the TabHeader components will be rendered.
651
651
  */
652
- @ViewElement()
652
+ @ViewElement()
653
653
  protected headerEl: HTMLDivElement;
654
654
  /**
655
655
  * Reference to the HTML element where the Tab content components will be rendered.
656
656
  */
657
- @ViewElement()
657
+ @ViewElement()
658
658
  protected bodyEl: HTMLDivElement;
659
659
  /**
660
660
  * Stores a reference to the currently active TabHeader component.
@@ -670,7 +670,7 @@ abstract class Tabs<T extends Aventus.Layout.Tabs.Tab, U extends Aventus.Layout.
670
670
  * Asynchronously discovers child Tab components within its slot. For each Tab, it instantiates a TabHeader (defined by defineTabHeader()), initializes it, and appends it to headerEl. It also determines the initial active tab.
671
671
  */
672
672
  protected loadTabs(): any;
673
- @BindThis()
673
+ @BindThis()
674
674
  protected reloadFromSlot(): any;
675
675
  /**
676
676
  * Sets a specific tab as active. It can accept a TabHeader instance, an index (number), or a tab identifier (string). It deactivates the previously active tab and activates the new one, managing their active and selected attributes and display styles.
@@ -685,32 +685,32 @@ abstract class Tabs<T extends Aventus.Layout.Tabs.Tab, U extends Aventus.Layout.
685
685
  */
686
686
  protected postCreation(): void;
687
687
  }
688
- }
688
+ }
689
689
 
690
- namespace Form {
690
+ namespace Form {
691
691
  /**
692
692
  * Represents the result of form validation.
693
693
  * It can be a string, a boolean, undefined, or a promise of these types.
694
694
  */
695
695
  type FormValidateResult = Aventus.Asyncable<string | string[] | boolean | undefined>;
696
- }
696
+ }
697
697
 
698
- namespace Form {
698
+ namespace Form {
699
699
  /**
700
700
  * Represents a global validation function for a form field.
701
701
  */
702
702
  type FormValidate = (field: string, value: unknown) => Aventus.Form.FormValidateResult;
703
- }
703
+ }
704
704
 
705
- namespace Form {
705
+ namespace Form {
706
706
  /**
707
707
  * Represents a validation function for a value of type T.
708
708
  * The function takes a value of type T or undefined and returns a FormValidateResult.
709
709
  */
710
710
  type FormPartValidate<T> = (value: T | undefined, name: string, globalValidation: () => Promise<void>) => Aventus.Form.FormValidateResult;
711
- }
711
+ }
712
712
 
713
- namespace Form {
713
+ namespace Form {
714
714
  /**
715
715
  * Abstract base class for creating custom form validators.
716
716
  */
@@ -737,12 +737,12 @@ abstract class Validator<T> {
737
737
  /**
738
738
  * Abstract method to be implemented by subclasses for custom validation logic.
739
739
  */
740
- @BindThis()
740
+ @BindThis()
741
741
  abstract validate(value: T | undefined, name: string, globalValidation: () => Promise<void>): Aventus.Form.FormValidateResult;
742
742
  }
743
- }
743
+ }
744
744
 
745
- namespace Form.Validators {
745
+ namespace Form.Validators {
746
746
  /**
747
747
  * Validator for checking if a field has a value.
748
748
  */
@@ -757,9 +757,9 @@ class Required extends Aventus.Form.Validator<any> {
757
757
  */
758
758
  validate(value: any | undefined, name: string, globalValidation: () => Promise<void>): string | boolean;
759
759
  }
760
- }
760
+ }
761
761
 
762
- namespace Form.Validators {
762
+ namespace Form.Validators {
763
763
  /**
764
764
  * Validator for checking if a string is a valid email address.
765
765
  */
@@ -774,23 +774,23 @@ class Email extends Aventus.Form.Validator<string> {
774
774
  */
775
775
  validate(value: string | undefined, name: string, globalValidation: () => Promise<void>): boolean | string;
776
776
  }
777
- }
777
+ }
778
778
 
779
- namespace Form {
779
+ namespace Form {
780
780
  /**
781
781
  * Represents a list of validation functions or validators for a form part.
782
782
  */
783
783
  type FormPartValidateList<T> = Aventus.Form.FormPartValidate<T> | Aventus.Form.Constructor<Aventus.Form.Validator<T>> | Aventus.Form.Validator<T> | (Aventus.Form.Constructor<Aventus.Form.Validator<T>> | Aventus.Form.Validator<T>)[];
784
- }
784
+ }
785
785
 
786
- namespace Form {
786
+ namespace Form {
787
787
  /**
788
788
  * Represents a function that handles form submission, returning an asynchronous result with potential errors.
789
789
  */
790
790
  type SubmitFunction<T, X> = Aventus.Asyncable<Aventus.Form.WithError<X>> | ((body: T) => Aventus.Asyncable<Aventus.Form.WithError<X>>);
791
- }
791
+ }
792
792
 
793
- namespace Form {
793
+ namespace Form {
794
794
  /**
795
795
  * Configuration options for a FormHandler instance, including validation rules, error handling, and submission behavior.
796
796
  */
@@ -816,9 +816,9 @@ type FormHandlerConfig<T, R = any> = {
816
816
  /** Define the submit function to use. */
817
817
  submit?: Aventus.Form.SubmitFunction<T, R>;
818
818
  };
819
- }
819
+ }
820
820
 
821
- namespace Form {
821
+ namespace Form {
822
822
  /**
823
823
  * Defines the structure and behavior of a single part within a form schema.
824
824
  */
@@ -832,9 +832,9 @@ interface FormPart<T = any> {
832
832
  */
833
833
  validateOnChange?: boolean;
834
834
  }
835
- }
835
+ }
836
836
 
837
- namespace Form {
837
+ namespace Form {
838
838
  /**
839
839
  * Defines the schema for an entire form, specifying the structure and validation for each field.
840
840
  */
@@ -843,36 +843,36 @@ type FormSchema<T> = {
843
843
  } & {
844
844
  [K in Aventus.Form.OmitClass<T> as undefined extends T[K] ? K : never]?: Aventus.Form.FormPart<K> | Aventus.Form.FormPartValidateList<K>;
845
845
  };
846
- }
846
+ }
847
847
 
848
- namespace Form {
848
+ namespace Form {
849
849
  type MethodName<Ctrl extends Aventus.HttpRoute> = Aventus.Form.FilterPrefix<keyof Ctrl>;
850
- }
850
+ }
851
851
 
852
- namespace Form {
852
+ namespace Form {
853
853
  type MethodResult<Ctrl extends Aventus.HttpRoute, M extends Aventus.Form.MethodName<Ctrl> = Aventus.Form.MethodName<Ctrl>> = Ctrl[M] extends (...args: any) => any ? ReturnType<Ctrl[M]> : any;
854
- }
854
+ }
855
855
 
856
- namespace Form {
856
+ namespace Form {
857
857
  type MethodNameExist<Ctrl extends Aventus.HttpRoute> = Aventus.Form.IsUnion<Aventus.Form.MethodName<Ctrl>> extends true ? never : Aventus.Form.MethodName<Ctrl>;
858
- }
858
+ }
859
859
 
860
- namespace Form {
860
+ namespace Form {
861
861
  type MethodBody<Ctrl extends Aventus.HttpRoute, M extends Aventus.Form.MethodName<Ctrl> = Aventus.Form.MethodName<Ctrl>, Key extends (keyof Aventus.Form.ObjectParameter<Ctrl[M]> | '') = ''> = Key extends '' ? Aventus.Form.LastParameter<Ctrl[M]> : Aventus.Form.LastParameter<Ctrl[M]>[Key];
862
- }
862
+ }
863
863
 
864
- namespace Form {
864
+ namespace Form {
865
865
  type MethodResultParsed<Ctrl extends Aventus.HttpRoute, M extends Aventus.Form.MethodName<Ctrl> = Aventus.Form.MethodName<Ctrl>> = Aventus.Form.ExtractError<Awaited<Aventus.Form.MethodResult<Ctrl, M>>>;
866
- }
866
+ }
867
867
 
868
- namespace Form {
868
+ namespace Form {
869
869
  type FormHandlerControllerConfig<T extends Aventus.HttpRoute, M extends Aventus.Form.MethodName<T> = Aventus.Form.MethodName<T>, Key extends (keyof Aventus.Form.ObjectParameter<T[M]> | '') = ''> = Omit<Omit<Aventus.Form.FormHandlerConfig<Aventus.Form.MethodBody<T, M, Key>>, 'onSuccess'>, 'submit'> & {
870
870
  onSuccess?: (result: Aventus.Form.MethodResultParsed<T, M>) => Aventus.Asyncable<void>;
871
871
  submit?: T[M];
872
872
  };
873
- }
873
+ }
874
874
 
875
- namespace Form {
875
+ namespace Form {
876
876
  /**
877
877
  * Defines the contract for individual form elements.
878
878
  */
@@ -882,13 +882,13 @@ interface IFormElement<T = any> {
882
882
  onChange: Aventus.Callback<(value: T) => void>;
883
883
  formPart?: Aventus.Form.InternalFormPart<T>;
884
884
  }
885
- }
885
+ }
886
886
 
887
- namespace Form {
887
+ namespace Form {
888
888
  /**
889
889
  * Abstract base class for all individual form input elements in the Aventus framework. It provides core functionality for value management, validation, error display, and integration with the parent Form component.
890
890
  */
891
- @Storybook()
891
+ @Storybook()
892
892
  abstract class FormElement<T> extends Aventus.WebComponent implements Aventus.DefaultComponent, Aventus.Form.IFormElement<T> {
893
893
  /**
894
894
  * Indicates that this web component can be associated with a form.
@@ -897,26 +897,26 @@ abstract class FormElement<T> extends Aventus.WebComponent implements Aventus.De
897
897
  /**
898
898
  * Reflects whether the element currently has validation errors.
899
899
  */
900
- @Attribute()
900
+ @Attribute()
901
901
  protected has_errors: boolean;
902
902
  /**
903
903
  * Indicates whether the form element is disabled. This is a property that can be reflected from a disabled state of the form.
904
904
  */
905
- @Property()
905
+ @Property()
906
906
  disabled: boolean;
907
907
  /**
908
908
  * The current value of the form element. Changes to this property trigger onValueChange().
909
909
  */
910
910
  @Watch((target: FormElement<T>) => {
911
911
  target.onValueChange(target.value);
912
- })
912
+ })
913
913
  value: T | undefined;
914
914
  /**
915
915
  * List of error messages for the current form element. Changes to this property trigger onErrorsChange().
916
916
  */
917
917
  @Watch((target: FormElement<T>) => {
918
918
  target.onErrorsChange();
919
- })
919
+ })
920
920
  errors: string[];
921
921
  /**
922
922
  * Internal reference to the element's part within the overall form handler.
@@ -925,9 +925,9 @@ abstract class FormElement<T> extends Aventus.WebComponent implements Aventus.De
925
925
  /**
926
926
  * Gets or sets the element's part within the overall form handler. Setting this property will unlink and relink the form part.
927
927
  */
928
- @Injectable()
928
+ @Injectable()
929
929
  get form(): Aventus.Form.InternalFormPart<T> | undefined;
930
- @Injectable()
930
+ @Injectable()
931
931
  set form(value: Aventus.Form.InternalFormPart<T> | undefined);
932
932
  /**
933
933
  * Provides access to the form internals of the custom element, used for interacting with form validity state and setting form values.
@@ -952,7 +952,7 @@ abstract class FormElement<T> extends Aventus.WebComponent implements Aventus.De
952
952
  /**
953
953
  * Refreshes the element's value and clears its errors based on the state of the associated form part.
954
954
  */
955
- @BindThis()
955
+ @BindThis()
956
956
  protected refreshValueFromForm(): void;
957
957
  /**
958
958
  * Unregisters the element from its associated form part and removes event listeners.
@@ -965,7 +965,7 @@ abstract class FormElement<T> extends Aventus.WebComponent implements Aventus.De
965
965
  /**
966
966
  * Handles validation results from the parent form, combining its own validation errors.
967
967
  */
968
- @BindThis()
968
+ @BindThis()
969
969
  onFormValidation(errors: string[]): Promise<string[]>;
970
970
  /**
971
971
  * Triggers the element's custom validation or delegates to the form's validation if linked.
@@ -1016,9 +1016,9 @@ abstract class FormElement<T> extends Aventus.WebComponent implements Aventus.De
1016
1016
  */
1017
1017
  protected postDestruction(): void;
1018
1018
  }
1019
- }
1019
+ }
1020
1020
 
1021
- namespace Form {
1021
+ namespace Form {
1022
1022
  /**
1023
1023
  * Defines the contract for classes that can act as a form handler.
1024
1024
  */
@@ -1027,9 +1027,9 @@ interface IForm {
1027
1027
  registerSubmit(element: Aventus.Form.ButtonElement): Aventus.Form.IForm;
1028
1028
  requestSubmit(): Aventus.Asyncable<void>;
1029
1029
  }
1030
- }
1030
+ }
1031
1031
 
1032
- namespace Form {
1032
+ namespace Form {
1033
1033
  /**
1034
1034
  * Base class for form button elements, handling submission logic and integration with the Aventus form system.
1035
1035
  */
@@ -1041,7 +1041,7 @@ abstract class ButtonElement extends Aventus.WebComponent implements Aventus.Def
1041
1041
  /**
1042
1042
  * Defines the behavior of the button. - 'button': A generic button with no default behavior. - 'submit': Submits the form data. - 'reset': Resets the form to its initial state. - 'menu': A button that opens a menu.
1043
1043
  */
1044
- @Property()
1044
+ @Property()
1045
1045
  type: 'button' | 'submit' | 'reset' | 'menu';
1046
1046
  /**
1047
1047
  * Provides access to the form internals of the custom element.
@@ -1065,9 +1065,9 @@ abstract class ButtonElement extends Aventus.WebComponent implements Aventus.Def
1065
1065
  */
1066
1066
  protected postCreation(): void;
1067
1067
  }
1068
- }
1068
+ }
1069
1069
 
1070
- namespace Form {
1070
+ namespace Form {
1071
1071
  /**
1072
1072
  * Core web component for managing forms, including data handling, validation, and submission. It acts as an orchestrator for child form elements and can integrate with backend API routes.
1073
1073
  */
@@ -1101,12 +1101,12 @@ class Form<T extends any = any, R = any> extends Aventus.WebComponent implements
1101
1101
  /**
1102
1102
  * The injected FormHandler instance managing form data, validation, and submission logic.
1103
1103
  */
1104
- @Injectable()
1104
+ @Injectable()
1105
1105
  form?: Aventus.Form.FormHandler<any, R>;
1106
1106
  /**
1107
1107
  * An injected function for custom submission handling.
1108
1108
  */
1109
- @Injectable()
1109
+ @Injectable()
1110
1110
  request?: Aventus.Form.SubmitFunction<T, R>;
1111
1111
  /**
1112
1112
  * An array of FormElement instances currently registered with this form.
@@ -1123,7 +1123,7 @@ class Form<T extends any = any, R = any> extends Aventus.WebComponent implements
1123
1123
  /**
1124
1124
  * Handles keyboard events, specifically triggering form submission when the "Enter" key is pressed.
1125
1125
  */
1126
- @BindThis()
1126
+ @BindThis()
1127
1127
  protected checkEnter(e: KeyboardEvent): void;
1128
1128
  /**
1129
1129
  * Registers a FormElement instance with this form. It ensures only the latest registered element has the 'keyup' event listener for "Enter" key.
@@ -1138,9 +1138,9 @@ class Form<T extends any = any, R = any> extends Aventus.WebComponent implements
1138
1138
  */
1139
1139
  requestSubmit(): Promise<void>;
1140
1140
  }
1141
- }
1141
+ }
1142
1142
 
1143
- namespace Form {
1143
+ namespace Form {
1144
1144
  /**
1145
1145
  * Provides core logic for handling forms, including data management, validation, and submission.
1146
1146
  */
@@ -1148,12 +1148,12 @@ class FormHandler<T, R = any> {
1148
1148
  /**
1149
1149
  * Global configuration settings for FormHandler instances.
1150
1150
  */
1151
- @Internal()
1151
+ @Internal()
1152
1152
  private static _globalConfig?;
1153
1153
  /**
1154
1154
  * List of constructors for elements that implement IForm.
1155
1155
  */
1156
- @Internal()
1156
+ @Internal()
1157
1157
  private static _IFormElements;
1158
1158
  /**
1159
1159
  * Internal watcher instance for tracking form data changes.
@@ -1273,9 +1273,9 @@ class FormHandler<T, R = any> {
1273
1273
  */
1274
1274
  reset(): void;
1275
1275
  }
1276
- }
1276
+ }
1277
1277
 
1278
- namespace Form {
1278
+ namespace Form {
1279
1279
  /**
1280
1280
  * Extends FormHandler to integrate with Aventus HttpRoute controllers for form submissions.
1281
1281
  */
@@ -1308,9 +1308,9 @@ class FormHandlerController<T extends Aventus.HttpRoute, M extends Aventus.Form.
1308
1308
  private constructor();
1309
1309
  protected transformToSend(item: Aventus.Form.MethodBody<T, M, Key>): Aventus.Form.MethodBody<T, M, Key>;
1310
1310
  }
1311
- }
1311
+ }
1312
1312
 
1313
- namespace Lib {
1313
+ namespace Lib {
1314
1314
  /**
1315
1315
  * Manages global keyboard shortcuts, allowing subscription and unsubscription for custom key combinations.
1316
1316
  */
@@ -1376,9 +1376,9 @@ class ShortcutManager {
1376
1376
  */
1377
1377
  private static uninit;
1378
1378
  }
1379
- }
1379
+ }
1380
1380
 
1381
- namespace Layout {
1381
+ namespace Layout {
1382
1382
  /**
1383
1383
  * Provides a comprehensive visual grid system and guide management for UI development. Features include configurable grid lines, rulers, draggable guides with magnetic snapping, and persistent storage for guide positions.
1384
1384
  */
@@ -1390,61 +1390,61 @@ class GridHelper extends Aventus.WebComponent implements Aventus.DefaultComponen
1390
1390
  target.rulerLeftEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
1391
1391
  target.rulerTopEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
1392
1392
  target.lockEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
1393
- })
1393
+ })
1394
1394
  unit: 'px' | 'rem' | 'cm' | 'mm' | 'in';
1395
1395
  /**
1396
1396
  * The number of columns in the grid. If 0, col_width is used.
1397
1397
  */
1398
- @Property()
1398
+ @Property()
1399
1399
  nb_col: number;
1400
1400
  /**
1401
1401
  * The number of rows in the grid. If 0, row_height is used.
1402
1402
  */
1403
1403
  @Property((target: GridHelper) => {
1404
1404
 
1405
- })
1405
+ })
1406
1406
  nb_row: number;
1407
1407
  /**
1408
1408
  * The width of each column. Used if nb_col is 0.
1409
1409
  */
1410
- @Property()
1410
+ @Property()
1411
1411
  col_width: number;
1412
1412
  /**
1413
1413
  * The height of each row. Used if nb_row is 0.
1414
1414
  */
1415
1415
  @Property((target: GridHelper) => {
1416
1416
 
1417
- })
1417
+ })
1418
1418
  row_height: number;
1419
1419
  /**
1420
1420
  * Whether to display the rulers.
1421
1421
  */
1422
- @Attribute()
1422
+ @Attribute()
1423
1423
  show_rulers: boolean;
1424
1424
  /**
1425
1425
  * Whether to display the grid lines.
1426
1426
  */
1427
- @Attribute()
1427
+ @Attribute()
1428
1428
  show_grid: boolean;
1429
1429
  /**
1430
1430
  * Whether to display the rulers.
1431
1431
  */
1432
- @Attribute()
1432
+ @Attribute()
1433
1433
  show_ruler: boolean;
1434
1434
  /**
1435
1435
  * Whether to display the draggable guides.
1436
1436
  */
1437
- @Attribute()
1437
+ @Attribute()
1438
1438
  show_guides: boolean;
1439
1439
  /**
1440
1440
  * If true, guides cannot be dragged or created.
1441
1441
  */
1442
- @Attribute()
1442
+ @Attribute()
1443
1443
  lock: boolean;
1444
1444
  /**
1445
1445
  * Overall visibility of the GridHelper component.
1446
1446
  */
1447
- @Attribute()
1447
+ @Attribute()
1448
1448
  visible: boolean;
1449
1449
  /**
1450
1450
  * The size (thickness) of the rulers in the specified unit.
@@ -1453,67 +1453,67 @@ class GridHelper extends Aventus.WebComponent implements Aventus.DefaultComponen
1453
1453
  target.rulerLeftEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
1454
1454
  target.rulerTopEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
1455
1455
  target.lockEl.style.setProperty("--ruler-size", target.ruler_size + target.unit);
1456
- })
1456
+ })
1457
1457
  ruler_size: number;
1458
1458
  /**
1459
1459
  * The base step size for grid lines and guide snapping in the specified unit.
1460
1460
  */
1461
- @Property()
1461
+ @Property()
1462
1462
  step: number;
1463
1463
  /**
1464
1464
  * A larger step size for major grid lines, if different from step.
1465
1465
  */
1466
- @Property()
1466
+ @Property()
1467
1467
  step_big: number;
1468
1468
  /**
1469
1469
  * The magnetic snap distance for guides in the specified unit.
1470
1470
  */
1471
- @Property()
1471
+ @Property()
1472
1472
  magnetic: number;
1473
1473
  /**
1474
1474
  * Reference to the main grid container element.
1475
1475
  */
1476
- @ViewElement()
1476
+ @ViewElement()
1477
1477
  protected gridEl: HTMLDivElement;
1478
1478
  /**
1479
1479
  * Reference to the element containing column grid lines.
1480
1480
  */
1481
- @ViewElement()
1481
+ @ViewElement()
1482
1482
  protected colsEl: HTMLDivElement;
1483
1483
  /**
1484
1484
  * Reference to the element containing row grid lines.
1485
1485
  */
1486
- @ViewElement()
1486
+ @ViewElement()
1487
1487
  protected rowsEl: HTMLDivElement;
1488
1488
  /**
1489
1489
  * Reference to the top ruler element.
1490
1490
  */
1491
- @ViewElement()
1491
+ @ViewElement()
1492
1492
  protected rulerTopEl: HTMLDivElement;
1493
1493
  /**
1494
1494
  * Reference to the left ruler element.
1495
1495
  */
1496
- @ViewElement()
1496
+ @ViewElement()
1497
1497
  protected rulerLeftEl: HTMLDivElement;
1498
1498
  /**
1499
1499
  * Reference to the content area of the top ruler.
1500
1500
  */
1501
- @ViewElement()
1501
+ @ViewElement()
1502
1502
  protected rulerTopContentEl: HTMLDivElement;
1503
1503
  /**
1504
1504
  * Reference to the content area of the left ruler.
1505
1505
  */
1506
- @ViewElement()
1506
+ @ViewElement()
1507
1507
  protected rulerLeftContentEl: HTMLDivElement;
1508
1508
  /**
1509
1509
  * Reference to the element containing the draggable guides.
1510
1510
  */
1511
- @ViewElement()
1511
+ @ViewElement()
1512
1512
  protected guidesEl: HTMLDivElement;
1513
1513
  /**
1514
1514
  * Reference to the lock indicator element.
1515
1515
  */
1516
- @ViewElement()
1516
+ @ViewElement()
1517
1517
  protected lockEl: HTMLDivElement;
1518
1518
  /**
1519
1519
  * Converts a given number from the component's unit to pixels.
@@ -1576,9 +1576,9 @@ class GridHelper extends Aventus.WebComponent implements Aventus.DefaultComponen
1576
1576
  */
1577
1577
  protected postCreation(): void;
1578
1578
  }
1579
- }
1579
+ }
1580
1580
 
1581
- namespace Layout {
1581
+ namespace Layout {
1582
1582
  /**
1583
1583
  * Utility component for providing visual guides (like rulers or snap lines) within a grid layout. It allows users to drag these guides and snap them to a predefined grid, aiding in precise UI alignment.
1584
1584
  */
@@ -1587,17 +1587,17 @@ class GridGuideHelper extends Aventus.WebComponent implements Aventus.DefaultCom
1587
1587
  /**
1588
1588
  * Specifies the orientation of the guide: "x" for vertical, "y" for horizontal.
1589
1589
  */
1590
- @Attribute()
1590
+ @Attribute()
1591
1591
  direction: "y" | "x";
1592
1592
  /**
1593
1593
  * Indicates whether the guide is currently being dragged.
1594
1594
  */
1595
- @Attribute()
1595
+ @Attribute()
1596
1596
  moving: boolean;
1597
1597
  /**
1598
1598
  * Reference to the HTML element within the component's template, likely used to display the guide's current position.
1599
1599
  */
1600
- @ViewElement()
1600
+ @ViewElement()
1601
1601
  protected positionEl: HTMLDivElement;
1602
1602
  /**
1603
1603
  * Reference to the parent GridHelper component, which provides context for grid properties like step and magnetic snap.
@@ -1610,7 +1610,7 @@ class GridGuideHelper extends Aventus.WebComponent implements Aventus.DefaultCom
1610
1610
  /**
1611
1611
  * Callback executed when dragging starts. Sets the moving attribute to true.
1612
1612
  */
1613
- @BindThis()
1613
+ @BindThis()
1614
1614
  onStart(): void;
1615
1615
  /**
1616
1616
  * Calculates a new position for the guide, applying a "magnetic" snapping effect based on the GridHelper's magnetic and step properties.
@@ -1619,24 +1619,24 @@ class GridGuideHelper extends Aventus.WebComponent implements Aventus.DefaultCom
1619
1619
  /**
1620
1620
  * Callback executed during horizontal dragging. Updates the guide's top style and positionEl's left style, applying magnetic snapping and displaying the new value.
1621
1621
  */
1622
- @BindThis()
1622
+ @BindThis()
1623
1623
  onMoveX(e: Aventus.NormalizedEvent): void;
1624
1624
  /**
1625
1625
  * Callback executed during vertical dragging. Updates the guide's left style and positionEl's top style, applying magnetic snapping and displaying the new value.
1626
1626
  */
1627
- @BindThis()
1627
+ @BindThis()
1628
1628
  onMoveY(e: Aventus.NormalizedEvent): void;
1629
1629
  /**
1630
1630
  * Callback executed when dragging stops. Sets moving to false and calls the save() method on the parent container.
1631
1631
  */
1632
- @BindThis()
1632
+ @BindThis()
1633
1633
  onStop(): void;
1634
1634
  /**
1635
1635
  * Lifecycle hook called after the component is created. Initializes DragAndDrop functionality based on the direction and sets up a PressManager for double-press events to remove the guide. It also finds its parent GridHelper if not already set.
1636
1636
  */
1637
1637
  protected postCreation(): void;
1638
1638
  }
1639
- }
1639
+ }
1640
1640
 
1641
1641
  /**
1642
1642
  * Records and manages multiple touch/pointer events for gestures like pinch-to-zoom.
@@ -1727,7 +1727,7 @@ class TouchRecord {
1727
1727
  private _getActiveTracker;
1728
1728
  }
1729
1729
 
1730
- namespace Layout {
1730
+ namespace Layout {
1731
1731
  /**
1732
1732
  * A highly customizable and interactive scroll container web component. It supports advanced features like zooming, pinch-to-zoom, custom scrollbars, auto-hide scrollbars, momentum scrolling, mouse-dragging for scrolling, and auto-scrolling.
1733
1733
  */
@@ -1745,117 +1745,117 @@ class Scrollable extends Aventus.WebComponent implements Aventus.DefaultComponen
1745
1745
  */
1746
1746
  @Property((target: Scrollable) => {
1747
1747
  target.changeZoom();
1748
- })
1748
+ })
1749
1749
  zoom: number;
1750
1750
  /**
1751
1751
  * The minimum allowed zoom level for the content.
1752
1752
  */
1753
- @Attribute()
1753
+ @Attribute()
1754
1754
  min_zoom: number;
1755
1755
  /**
1756
1756
  * The maximum allowed zoom level for the content.
1757
1757
  */
1758
- @Attribute()
1758
+ @Attribute()
1759
1759
  max_zoom: number;
1760
1760
  /**
1761
1761
  * Reflects whether the vertical scrollbar is currently visible.
1762
1762
  */
1763
- @Attribute()
1763
+ @Attribute()
1764
1764
  private y_scroll_visible;
1765
1765
  /**
1766
1766
  * Reflects whether the horizontal scrollbar is currently visible.
1767
1767
  */
1768
- @Attribute()
1768
+ @Attribute()
1769
1769
  private x_scroll_visible;
1770
1770
  /**
1771
1771
  * Determines if the custom scrollbars will be floating over the content or occupy space.
1772
1772
  */
1773
- @Attribute()
1773
+ @Attribute()
1774
1774
  floating_scroll: boolean;
1775
1775
  /**
1776
1776
  * Determines if horizontal scrolling is allowed.
1777
1777
  */
1778
- @Attribute()
1778
+ @Attribute()
1779
1779
  x_scroll: boolean;
1780
1780
  /**
1781
1781
  * Determines if vertical scrolling is allowed.
1782
1782
  */
1783
- @Attribute()
1783
+ @Attribute()
1784
1784
  y_scroll: boolean;
1785
1785
  /**
1786
1786
  * If true, the custom scrollers will hide when not in use and reappear on interaction.
1787
1787
  */
1788
- @Attribute()
1788
+ @Attribute()
1789
1789
  auto_hide: boolean;
1790
1790
  /**
1791
1791
  * Controls the decay rate of momentum scrolling (value between 0 and 1).
1792
1792
  */
1793
- @Attribute()
1793
+ @Attribute()
1794
1794
  break: number;
1795
1795
  /**
1796
1796
  * If true, disables all user interaction (scrolling, zooming, dragging) with the component.
1797
1797
  */
1798
- @Attribute()
1798
+ @Attribute()
1799
1799
  disable: boolean;
1800
1800
  /**
1801
1801
  * Internal property to prevent user text selection during drag interactions.
1802
1802
  */
1803
- @Attribute()
1803
+ @Attribute()
1804
1804
  private no_user_select;
1805
1805
  /**
1806
1806
  * If true, allows scrolling by dragging with the mouse.
1807
1807
  */
1808
- @Attribute()
1808
+ @Attribute()
1809
1809
  mouse_drag: boolean;
1810
1810
  /**
1811
1811
  * If true, enables pinch-to-zoom functionality for touch devices.
1812
1812
  */
1813
- @Attribute()
1813
+ @Attribute()
1814
1814
  pinch: boolean;
1815
1815
  /**
1816
1816
  * If true, sets the internal content containers to display: flex and flex-direction: column, useful for allowing content to take up remaining space.
1817
1817
  */
1818
- @Attribute()
1818
+ @Attribute()
1819
1819
  flex: boolean;
1820
1820
  /**
1821
1821
  * Reference to the internal DIV element that wraps the actual scrollable content.
1822
1822
  */
1823
- @ViewElement()
1823
+ @ViewElement()
1824
1824
  private contentWrapper;
1825
1825
  /**
1826
1826
  * Reference to the internal DIV element that handles zooming transformations.
1827
1827
  */
1828
- @ViewElement()
1828
+ @ViewElement()
1829
1829
  private contentZoom;
1830
1830
  /**
1831
1831
  * Reference to the main container element of the Scrollable component.
1832
1832
  */
1833
- @ViewElement()
1833
+ @ViewElement()
1834
1834
  private mainContainer;
1835
1835
  /**
1836
1836
  * Reference to an internal DIV element used for adjusting content area based on scrollbar presence.
1837
1837
  */
1838
- @ViewElement()
1838
+ @ViewElement()
1839
1839
  private contentHidder;
1840
1840
  /**
1841
1841
  * Reference to the container element for the vertical scrollbar.
1842
1842
  */
1843
- @ViewElement()
1843
+ @ViewElement()
1844
1844
  private verticalScrollerContainer;
1845
1845
  /**
1846
1846
  * Reference to the draggable element representing the vertical scrollbar thumb.
1847
1847
  */
1848
- @ViewElement()
1848
+ @ViewElement()
1849
1849
  private verticalScroller;
1850
1850
  /**
1851
1851
  * Reference to the container element for the horizontal scrollbar.
1852
1852
  */
1853
- @ViewElement()
1853
+ @ViewElement()
1854
1854
  private horizontalScrollerContainer;
1855
1855
  /**
1856
1856
  * Reference to the draggable element representing the horizontal scrollbar thumb.
1857
1857
  */
1858
- @ViewElement()
1858
+ @ViewElement()
1859
1859
  private horizontalScroller;
1860
1860
  /**
1861
1861
  * An instance of Aventus.ResizeObserver to detect size changes of the component and its content.
@@ -2186,9 +2186,9 @@ class Scrollable extends Aventus.WebComponent implements Aventus.DefaultComponen
2186
2186
  */
2187
2187
  protected postCreation(): void;
2188
2188
  }
2189
- }
2189
+ }
2190
2190
 
2191
- namespace Layout.Tabs {
2191
+ namespace Layout.Tabs {
2192
2192
  /**
2193
2193
  * Abstract base class for the clickable header of an individual tab within a tabbed interface. It manages its active state, links to its corresponding Tab content, and handles user interaction to activate the tab.
2194
2194
  */
@@ -2197,7 +2197,7 @@ abstract class TabHeader<T extends Aventus.Layout.Tabs.Tab> extends Aventus.WebC
2197
2197
  /**
2198
2198
  * Indicates whether this tab header is currently active.
2199
2199
  */
2200
- @Attribute()
2200
+ @Attribute()
2201
2201
  active: boolean;
2202
2202
  /**
2203
2203
  * Internal reference to the associated Tab content component.
@@ -2232,9 +2232,9 @@ abstract class TabHeader<T extends Aventus.Layout.Tabs.Tab> extends Aventus.WebC
2232
2232
  */
2233
2233
  protected postCreation(): void;
2234
2234
  }
2235
- }
2235
+ }
2236
2236
 
2237
- namespace Layout.Tabs {
2237
+ namespace Layout.Tabs {
2238
2238
  /**
2239
2239
  * Abstract base class for individual tab content panels within a tabbed interface. It manages its selected state and maintains a reference to its corresponding tab header.
2240
2240
  */
@@ -2243,23 +2243,23 @@ abstract class Tab extends Aventus.WebComponent implements Aventus.DefaultCompon
2243
2243
  /**
2244
2244
  * Indicates whether this tab is currently active/selected.
2245
2245
  */
2246
- @Attribute()
2246
+ @Attribute()
2247
2247
  selected: boolean;
2248
- @Attribute()
2248
+ @Attribute()
2249
2249
  loaded: boolean;
2250
2250
  /**
2251
2251
  * Reference to the associated TabHeader component. Allows the tab content to interact with its header.
2252
2252
  */
2253
- @InternalProtected()
2253
+ @InternalProtected()
2254
2254
  protected tabHeader?: Aventus.Layout.Tabs.TabHeader<this>;
2255
2255
  /**
2256
2256
  * Abstract method that concrete tab implementations must provide. It should return a unique string identifier for the tab, used to link the tab content with its header.
2257
2257
  */
2258
2258
  abstract identifier(): string;
2259
2259
  }
2260
- }
2260
+ }
2261
2261
 
2262
- namespace Modal {
2262
+ namespace Modal {
2263
2263
  /**
2264
2264
  * Abstract base class for creating various types of modal dialogs or pop-ups. It provides core functionality for showing, closing, and configuring modal behavior, including options for closing with the Escape key or outside clicks.
2265
2265
  */
@@ -2293,12 +2293,12 @@ abstract class ModalElement<T, U extends Aventus.Modal.ModalOptions<T> = Aventus
2293
2293
  */
2294
2294
  @Watch((target: ModalElement<T, U>, action: Aventus.WatchAction, path: string, value: any) => {
2295
2295
  target.onOptionsChanged();
2296
- })
2296
+ })
2297
2297
  protected options: U;
2298
2298
  /**
2299
2299
  * Reference to the internal modal content element within the component's template, used to prevent closing when clicking inside the modal.
2300
2300
  */
2301
- @ViewElement()
2301
+ @ViewElement()
2302
2302
  protected modalEl: HTMLDivElement;
2303
2303
  /**
2304
2304
  * Manages click events on the modal for closing behavior (outside click).
@@ -2331,29 +2331,29 @@ abstract class ModalElement<T, U extends Aventus.Modal.ModalOptions<T> = Aventus
2331
2331
  /**
2332
2332
  * Cleans up event listeners and removes the modal from the DOM.
2333
2333
  */
2334
- @BindThis()
2334
+ @BindThis()
2335
2335
  protected close(): void;
2336
2336
  /**
2337
2337
  * Closes the modal and resolves its promise with the configured rejectValue.
2338
2338
  */
2339
- @BindThis()
2339
+ @BindThis()
2340
2340
  protected reject(no_close?: boolean): void;
2341
2341
  /**
2342
2342
  * Closes the modal and resolves its promise with a specified response value.
2343
2343
  */
2344
- @BindThis()
2344
+ @BindThis()
2345
2345
  protected resolve(response: T, no_close?: boolean): void;
2346
2346
  }
2347
- }
2347
+ }
2348
2348
 
2349
- namespace Modal {
2349
+ namespace Modal {
2350
2350
  /**
2351
2351
  * A utility type to extract the return type (U) from a ModalElement instance X.
2352
2352
  */
2353
2353
  type ExtractTypeModal<X extends Aventus.Modal.ModalElement<U, Y>, U = any, Y extends Aventus.Modal.ModalOptions = any> = X extends Aventus.Modal.ModalElement<infer U, Y> ? U : never;
2354
- }
2354
+ }
2355
2355
 
2356
- namespace Navigation {
2356
+ namespace Navigation {
2357
2357
  /**
2358
2358
  * Abstract base class for all routable pages within an Aventus application. It provides core functionality for page lifecycle management, visibility control, data loading, and access control.
2359
2359
  */
@@ -2369,7 +2369,7 @@ abstract class Page<Slug extends Aventus.UriParamsValue = {}> extends Aventus.We
2369
2369
  else {
2370
2370
  target.onHide();
2371
2371
  }
2372
- })
2372
+ })
2373
2373
  visible: boolean;
2374
2374
  /**
2375
2375
  * Reference to the parent Router component that manages this page.
@@ -2416,9 +2416,9 @@ abstract class Page<Slug extends Aventus.UriParamsValue = {}> extends Aventus.We
2416
2416
  getSlugs(): Partial<Slug> | undefined;
2417
2417
  getSlugs(path: string): Partial<Slug> | undefined;
2418
2418
  }
2419
- }
2419
+ }
2420
2420
 
2421
- namespace Navigation {
2421
+ namespace Navigation {
2422
2422
  /**
2423
2423
  * A specialized Page component intended to be displayed when a requested route or resource is not found (a "404 Not Found" error).
2424
2424
  */
@@ -2429,9 +2429,9 @@ class Default404 extends Aventus.Navigation.Page implements Aventus.DefaultCompo
2429
2429
  */
2430
2430
  configure(): Aventus.Asyncable<Aventus.Navigation.PageConfig>;
2431
2431
  }
2432
- }
2432
+ }
2433
2433
 
2434
- namespace Navigation {
2434
+ namespace Navigation {
2435
2435
  /**
2436
2436
  * The central navigation mechanism for Aventus applications. It manages application states, loads pages dynamically, handles URL changes, and provides mechanisms for defining routes, showing 404 pages, and controlling page lifecycles.
2437
2437
  */
@@ -2448,7 +2448,7 @@ abstract class Router extends Aventus.WebComponent implements Aventus.DefaultCom
2448
2448
  * Allows global configuration of router options.
2449
2449
  */
2450
2450
  static configure(options: Aventus.Navigation.RouterOptions): void;
2451
- @Attribute()
2451
+ @Attribute()
2452
2452
  initializing: boolean;
2453
2453
  /**
2454
2454
  * Stores a reference to the previously active Page component.
@@ -2457,7 +2457,7 @@ abstract class Router extends Aventus.WebComponent implements Aventus.DefaultCom
2457
2457
  /**
2458
2458
  * Reference to the HTML element within the component's template where page content will be rendered.
2459
2459
  */
2460
- @ViewElement()
2460
+ @ViewElement()
2461
2461
  contentEl: HTMLDivElement;
2462
2462
  /**
2463
2463
  * An object mapping route patterns to their corresponding RouteAsyncOption objects.
@@ -2565,9 +2565,9 @@ abstract class Router extends Aventus.WebComponent implements Aventus.DefaultCom
2565
2565
  */
2566
2566
  protected postCreation(): void;
2567
2567
  }
2568
- }
2568
+ }
2569
2569
 
2570
- namespace Toast {
2570
+ namespace Toast {
2571
2571
  /**
2572
2572
  * Abstract base class for individual toast notifications. It provides core functionality for displaying, timing, and closing toasts, including animation handling and integration with a ToastManager.
2573
2573
  */
@@ -2579,19 +2579,19 @@ abstract class ToastElement<T extends Aventus.Toast.ToastOptions = Aventus.Toast
2579
2579
  /**
2580
2580
  * Defines where the toast should appear on the screen.
2581
2581
  */
2582
- @Attribute()
2583
- @StoryValue('top right')
2582
+ @Attribute()
2583
+ @StoryValue('top right')
2584
2584
  position: Aventus.Toast.ToastPosition;
2585
2585
  /**
2586
2586
  * The duration (in milliseconds) before the toast automatically closes. Use -1 for an infinite timer.
2587
2587
  */
2588
- @Attribute()
2589
- @StoryValue(5000)
2588
+ @Attribute()
2589
+ @StoryValue(5000)
2590
2590
  delay: number;
2591
2591
  /**
2592
2592
  * Reflects whether the toast is currently active/visible.
2593
2593
  */
2594
- @Attribute()
2594
+ @Attribute()
2595
2595
  protected is_active: boolean;
2596
2596
  /**
2597
2597
  * A flag to indicate if show() was called before the component was ready.
@@ -2650,9 +2650,9 @@ abstract class ToastElement<T extends Aventus.Toast.ToastOptions = Aventus.Toast
2650
2650
  */
2651
2651
  protected postCreation(): void;
2652
2652
  }
2653
- }
2653
+ }
2654
2654
 
2655
- namespace Toast {
2655
+ namespace Toast {
2656
2656
  /**
2657
2657
  * Options for configuring an individual toast notification.
2658
2658
  */
@@ -2664,9 +2664,9 @@ type ToastOptions = {
2664
2664
  delay?: number;
2665
2665
  hasTransition?: boolean;
2666
2666
  };
2667
- }
2667
+ }
2668
2668
 
2669
- namespace Toast {
2669
+ namespace Toast {
2670
2670
  /**
2671
2671
  * A web component that manages the display, positioning, and lifecycle of toast notifications. It provides functionality for adding new toasts, configuring default behaviors, and handling toast stacking and removal.
2672
2672
  */
@@ -2682,12 +2682,12 @@ class ToastManager extends Aventus.WebComponent implements Aventus.DefaultCompon
2682
2682
  /**
2683
2683
  * The default position for new toasts if not specified in options.
2684
2684
  */
2685
- @Internal()
2685
+ @Internal()
2686
2686
  private static defaultPosition;
2687
2687
  /**
2688
2688
  * The default delay (in milliseconds) for new toasts if not specified in options.
2689
2689
  */
2690
- @Internal()
2690
+ @Internal()
2691
2691
  private static defaultDelay;
2692
2692
  /**
2693
2693
  * The spacing (in pixels) between multiple toasts in the same position stack.
@@ -2732,7 +2732,7 @@ class ToastManager extends Aventus.WebComponent implements Aventus.DefaultCompon
2732
2732
  /**
2733
2733
  * If true, this ToastManager instance will not be set as the static singleton instance.
2734
2734
  */
2735
- @Attribute()
2735
+ @Attribute()
2736
2736
  not_main: boolean;
2737
2737
  /**
2738
2738
  * Adds a new toast notification to the manager. It handles instantiation, positioning, stacking, and queuing if height limits are exceeded.
@@ -2779,7 +2779,7 @@ class ToastManager extends Aventus.WebComponent implements Aventus.DefaultCompon
2779
2779
  */
2780
2780
  protected postDisconnect(): void;
2781
2781
  }
2782
- }
2782
+ }
2783
2783
 
2784
2784
  /**
2785
2785
  * Utility class for executing asynchronous processes and handling errors.