@aerogel/core 0.0.0-next.b85327579d32f21c6a9fa21142f0165cdd320d7e → 0.0.0-next.d824b40e5d06757cd9f47c9f771d916185df4f05

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/aerogel-core.cjs.js +1 -1
  2. package/dist/aerogel-core.cjs.js.map +1 -1
  3. package/dist/aerogel-core.d.ts +355 -59
  4. package/dist/aerogel-core.esm.js +1 -1
  5. package/dist/aerogel-core.esm.js.map +1 -1
  6. package/dist/virtual.d.ts +11 -0
  7. package/noeldemartin.config.js +4 -1
  8. package/package.json +3 -3
  9. package/src/bootstrap/index.ts +2 -1
  10. package/src/components/AGAppModals.vue +15 -0
  11. package/src/components/AGAppOverlays.vue +5 -7
  12. package/src/components/AGAppSnackbars.vue +13 -0
  13. package/src/components/basic/AGErrorMessage.vue +16 -0
  14. package/src/components/basic/AGLink.vue +9 -0
  15. package/src/components/basic/AGMarkdown.vue +7 -6
  16. package/src/components/basic/index.ts +3 -1
  17. package/src/components/constants.ts +8 -0
  18. package/src/components/forms/AGButton.vue +25 -15
  19. package/src/components/headless/forms/AGHeadlessButton.vue +4 -3
  20. package/src/components/headless/index.ts +1 -0
  21. package/src/components/headless/snackbars/AGHeadlessSnackbar.vue +10 -0
  22. package/src/components/headless/snackbars/index.ts +25 -0
  23. package/src/components/index.ts +2 -0
  24. package/src/components/modals/AGAlertModal.vue +0 -1
  25. package/src/components/modals/AGConfirmModal.vue +1 -1
  26. package/src/components/modals/AGErrorReportModal.ts +20 -0
  27. package/src/components/modals/AGErrorReportModal.vue +62 -0
  28. package/src/components/modals/AGErrorReportModalButtons.vue +109 -0
  29. package/src/components/modals/AGErrorReportModalTitle.vue +25 -0
  30. package/src/components/modals/AGModal.vue +3 -2
  31. package/src/components/modals/AGModalTitle.vue +9 -0
  32. package/src/components/modals/index.ts +17 -2
  33. package/src/components/snackbars/AGSnackbar.vue +42 -0
  34. package/src/components/snackbars/index.ts +3 -0
  35. package/src/directives/index.ts +16 -3
  36. package/src/errors/Errors.ts +60 -9
  37. package/src/errors/index.ts +39 -1
  38. package/src/forms/Form.ts +3 -3
  39. package/src/lang/Lang.ts +1 -1
  40. package/src/main.ts +0 -2
  41. package/src/plugins/Plugin.ts +1 -0
  42. package/src/plugins/index.ts +19 -0
  43. package/src/services/App.state.ts +8 -3
  44. package/src/services/App.ts +5 -2
  45. package/src/services/Service.ts +7 -2
  46. package/src/services/index.ts +6 -3
  47. package/src/types/virtual.d.ts +11 -0
  48. package/src/ui/UI.state.ts +10 -1
  49. package/src/ui/UI.ts +37 -8
  50. package/src/ui/index.ts +4 -0
  51. package/src/utils/markdown.ts +11 -2
  52. package/src/utils/vue.ts +2 -0
  53. package/tsconfig.json +1 -0
  54. package/vite.config.ts +2 -1
  55. package/src/globals.ts +0 -6
@@ -10,6 +10,7 @@ import { DefineComponent } from 'vue';
10
10
  import type { Directive } from 'vue';
11
11
  import { ExtractPropTypes } from 'vue';
12
12
  import { Facade } from '@noeldemartin/utils';
13
+ import type { GetClosureArgs } from '@noeldemartin/utils';
13
14
  import type { InjectionKey } from 'vue';
14
15
  import type { JSError } from '@noeldemartin/utils';
15
16
  import { MagicObject } from '@noeldemartin/utils';
@@ -68,36 +69,23 @@ export declare const AGAppOverlays: DefineComponent< {}, (_ctx: any, _cache:
68
69
  }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
69
70
 
70
71
  export declare const AGButton: DefineComponent< {
71
- clear: {
72
- type: PropType<boolean>;
72
+ color: {
73
+ type: PropType<"primary" | "secondary" | "danger" | "clear">;
73
74
  validator?(value: unknown): boolean;
74
75
  } & {
75
- default: boolean | (() => boolean) | null;
76
- };
77
- secondary: {
78
- type: PropType<boolean>;
79
- validator?(value: unknown): boolean;
80
- } & {
81
- default: boolean | (() => boolean) | null;
76
+ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
82
77
  };
83
78
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
84
79
  [key: string]: any;
85
80
  }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
86
- clear: {
87
- type: PropType<boolean>;
81
+ color: {
82
+ type: PropType<"primary" | "secondary" | "danger" | "clear">;
88
83
  validator?(value: unknown): boolean;
89
84
  } & {
90
- default: boolean | (() => boolean) | null;
91
- };
92
- secondary: {
93
- type: PropType<boolean>;
94
- validator?(value: unknown): boolean;
95
- } & {
96
- default: boolean | (() => boolean) | null;
85
+ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
97
86
  };
98
87
  }>>, {
99
- clear: boolean;
100
- secondary: boolean;
88
+ color: "primary" | "secondary" | "danger" | "clear";
101
89
  }, {}>;
102
90
 
103
91
  export declare const AGCheckbox: DefineComponent< {
@@ -152,6 +140,87 @@ required: true;
152
140
  title: string | null;
153
141
  }, {}>;
154
142
 
143
+ export declare const AGErrorMessage: DefineComponent< {
144
+ error: {
145
+ type: PropType<unknown>;
146
+ validator?(value: unknown): boolean;
147
+ } & {
148
+ required: true;
149
+ };
150
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
151
+ [key: string]: any;
152
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
153
+ error: {
154
+ type: PropType<unknown>;
155
+ validator?(value: unknown): boolean;
156
+ } & {
157
+ required: true;
158
+ };
159
+ }>>, {}, {}>;
160
+
161
+ export declare const AGErrorReportModalButtons: DefineComponent< {
162
+ report: {
163
+ type: PropType<ErrorReport>;
164
+ validator?(value: unknown): boolean;
165
+ } & {
166
+ required: true;
167
+ };
168
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
169
+ [key: string]: any;
170
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
171
+ report: {
172
+ type: PropType<ErrorReport>;
173
+ validator?(value: unknown): boolean;
174
+ } & {
175
+ required: true;
176
+ };
177
+ }>>, {}, {}>;
178
+
179
+ export declare const AGErrorReportModalTitle: DefineComponent< {
180
+ report: {
181
+ type: PropType<ErrorReport>;
182
+ validator?(value: unknown): boolean;
183
+ } & {
184
+ required: true;
185
+ };
186
+ currentReport: {
187
+ type: PropType<number | null>;
188
+ validator?(value: unknown): boolean;
189
+ } & {
190
+ default: number | (() => number | null) | null;
191
+ };
192
+ totalReports: {
193
+ type: PropType<number | null>;
194
+ validator?(value: unknown): boolean;
195
+ } & {
196
+ default: number | (() => number | null) | null;
197
+ };
198
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
199
+ [key: string]: any;
200
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
201
+ report: {
202
+ type: PropType<ErrorReport>;
203
+ validator?(value: unknown): boolean;
204
+ } & {
205
+ required: true;
206
+ };
207
+ currentReport: {
208
+ type: PropType<number | null>;
209
+ validator?(value: unknown): boolean;
210
+ } & {
211
+ default: number | (() => number | null) | null;
212
+ };
213
+ totalReports: {
214
+ type: PropType<number | null>;
215
+ validator?(value: unknown): boolean;
216
+ } & {
217
+ default: number | (() => number | null) | null;
218
+ };
219
+ }>>, {
220
+ currentReport: number | null;
221
+ totalReports: number | null;
222
+ }, {}>;
223
+
155
224
  export declare const AGForm: DefineComponent< {
156
225
  form: {
157
226
  type: PropType<Form<FormFieldDefinitions> | null>;
@@ -175,6 +244,12 @@ form: Form<FormFieldDefinitions> | null;
175
244
  }, {}>;
176
245
 
177
246
  export declare const AGHeadlessButton: DefineComponent< {
247
+ href: {
248
+ type: PropType<string | null>;
249
+ validator?(value: unknown): boolean;
250
+ } & {
251
+ default: string | (() => string | null) | null;
252
+ };
178
253
  url: {
179
254
  type: PropType<string | null>;
180
255
  validator?(value: unknown): boolean;
@@ -208,6 +283,12 @@ default: boolean | (() => boolean) | null;
208
283
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
209
284
  [key: string]: any;
210
285
  }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
286
+ href: {
287
+ type: PropType<string | null>;
288
+ validator?(value: unknown): boolean;
289
+ } & {
290
+ default: string | (() => string | null) | null;
291
+ };
211
292
  url: {
212
293
  type: PropType<string | null>;
213
294
  validator?(value: unknown): boolean;
@@ -239,6 +320,7 @@ validator?(value: unknown): boolean;
239
320
  default: boolean | (() => boolean) | null;
240
321
  };
241
322
  }>>, {
323
+ href: string | null;
242
324
  url: string | null;
243
325
  route: string | null;
244
326
  routeParams: {};
@@ -366,6 +448,10 @@ default: string | (() => string) | null;
366
448
  as: string;
367
449
  }, {}>;
368
450
 
451
+ export declare const AGHeadlessSnackbar: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
452
+ [key: string]: any;
453
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
454
+
369
455
  export declare const AGInput: DefineComponent< {
370
456
  name: {
371
457
  type: PropType<string | null>;
@@ -386,6 +472,10 @@ default: string | (() => string | null) | null;
386
472
  name: string | null;
387
473
  }, {}>;
388
474
 
475
+ export declare const AGLink: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
476
+ [key: string]: any;
477
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
478
+
389
479
  export declare const AGLoadingModal: DefineComponent< {
390
480
  message: {
391
481
  type: PropType<string | null>;
@@ -408,74 +498,74 @@ message: string | null;
408
498
 
409
499
  export declare const AGMarkdown: DefineComponent< {
410
500
  as: {
411
- type: PropType<string>;
501
+ type: PropType<string | null>;
412
502
  validator?(value: unknown): boolean;
413
503
  } & {
414
- default: string | (() => string) | null;
504
+ default: string | (() => string | null) | null;
415
505
  };
416
- langKey: {
417
- type: PropType<string | null>;
506
+ inline: {
507
+ type: PropType<boolean>;
418
508
  validator?(value: unknown): boolean;
419
509
  } & {
420
- default: string | (() => string | null) | null;
510
+ default: boolean | (() => boolean) | null;
421
511
  };
422
- text: {
512
+ langKey: {
423
513
  type: PropType<string | null>;
424
514
  validator?(value: unknown): boolean;
425
515
  } & {
426
516
  default: string | (() => string | null) | null;
427
517
  };
428
- inline: {
429
- type: PropType<boolean>;
518
+ langParams: {
519
+ type: PropType<Record<string, unknown> | null>;
430
520
  validator?(value: unknown): boolean;
431
521
  } & {
432
- default: boolean | (() => boolean) | null;
522
+ default: Record<string, unknown> | (() => Record<string, unknown> | null) | null;
433
523
  };
434
- raw: {
435
- type: PropType<boolean>;
524
+ text: {
525
+ type: PropType<string | null>;
436
526
  validator?(value: unknown): boolean;
437
527
  } & {
438
- default: boolean | (() => boolean) | null;
528
+ default: string | (() => string | null) | null;
439
529
  };
440
530
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
441
531
  [key: string]: any;
442
532
  }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
443
533
  as: {
444
- type: PropType<string>;
534
+ type: PropType<string | null>;
445
535
  validator?(value: unknown): boolean;
446
536
  } & {
447
- default: string | (() => string) | null;
537
+ default: string | (() => string | null) | null;
448
538
  };
449
- langKey: {
450
- type: PropType<string | null>;
539
+ inline: {
540
+ type: PropType<boolean>;
451
541
  validator?(value: unknown): boolean;
452
542
  } & {
453
- default: string | (() => string | null) | null;
543
+ default: boolean | (() => boolean) | null;
454
544
  };
455
- text: {
545
+ langKey: {
456
546
  type: PropType<string | null>;
457
547
  validator?(value: unknown): boolean;
458
548
  } & {
459
549
  default: string | (() => string | null) | null;
460
550
  };
461
- inline: {
462
- type: PropType<boolean>;
551
+ langParams: {
552
+ type: PropType<Record<string, unknown> | null>;
463
553
  validator?(value: unknown): boolean;
464
554
  } & {
465
- default: boolean | (() => boolean) | null;
555
+ default: Record<string, unknown> | (() => Record<string, unknown> | null) | null;
466
556
  };
467
- raw: {
468
- type: PropType<boolean>;
557
+ text: {
558
+ type: PropType<string | null>;
469
559
  validator?(value: unknown): boolean;
470
560
  } & {
471
- default: boolean | (() => boolean) | null;
561
+ default: string | (() => string | null) | null;
472
562
  };
473
563
  }>>, {
474
- as: string;
564
+ as: string | null;
565
+ inline: boolean;
475
566
  langKey: string | null;
567
+ langParams: Record<string, unknown> | null;
476
568
  text: string | null;
477
- inline: boolean;
478
- raw: boolean;
479
569
  }, {}>;
480
570
 
481
571
  export declare const AGModal: DefineComponent< {
@@ -528,9 +618,71 @@ required: true;
528
618
  };
529
619
  }>>, {}, {}>;
530
620
 
621
+ export declare const AGModalTitle: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
622
+ [key: string]: any;
623
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
624
+
625
+ export declare const AGSnackbar: DefineComponent< {
626
+ id: {
627
+ type: PropType<string>;
628
+ validator?(value: unknown): boolean;
629
+ } & {
630
+ required: true;
631
+ };
632
+ message: {
633
+ type: PropType<string>;
634
+ validator?(value: unknown): boolean;
635
+ } & {
636
+ required: true;
637
+ };
638
+ actions: {
639
+ type: PropType<SnackbarAction[]>;
640
+ validator?(value: unknown): boolean;
641
+ } & {
642
+ default: SnackbarAction[] | (() => SnackbarAction[]) | null;
643
+ };
644
+ color: {
645
+ type: PropType<"secondary" | "danger">;
646
+ validator?(value: unknown): boolean;
647
+ } & {
648
+ default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
649
+ };
650
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
651
+ [key: string]: any;
652
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
653
+ id: {
654
+ type: PropType<string>;
655
+ validator?(value: unknown): boolean;
656
+ } & {
657
+ required: true;
658
+ };
659
+ message: {
660
+ type: PropType<string>;
661
+ validator?(value: unknown): boolean;
662
+ } & {
663
+ required: true;
664
+ };
665
+ actions: {
666
+ type: PropType<SnackbarAction[]>;
667
+ validator?(value: unknown): boolean;
668
+ } & {
669
+ default: SnackbarAction[] | (() => SnackbarAction[]) | null;
670
+ };
671
+ color: {
672
+ type: PropType<"secondary" | "danger">;
673
+ validator?(value: unknown): boolean;
674
+ } & {
675
+ default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
676
+ };
677
+ }>>, {
678
+ actions: SnackbarAction[];
679
+ color: "secondary" | "danger";
680
+ }, {}>;
681
+
531
682
  export declare const App: Facade<AppService, Constructor<AppService>>;
532
683
 
533
684
  export declare class AppService extends _default_2 {
685
+ plugin<T extends Plugin_2 = Plugin_2>(name: string): T | null;
534
686
  protected boot(): Promise<void>;
535
687
  }
536
688
 
@@ -549,6 +701,17 @@ export declare function bootServices(app: App_2, services: Record<string, Servic
549
701
 
550
702
  export declare function bootstrapApplication(rootComponent: Component, options?: AerogelOptions): Promise<void>;
551
703
 
704
+ export declare type Color = (typeof Colors)[keyof typeof Colors];
705
+
706
+ export declare const Colors: {
707
+ readonly Primary: "primary";
708
+ readonly Secondary: "secondary";
709
+ readonly Danger: "danger";
710
+ readonly Clear: "clear";
711
+ };
712
+
713
+ export declare type ComponentProps = Record<string, unknown>;
714
+
552
715
  export declare function componentRef<T>(): Ref<UnwrapNestedRefs<T> | undefined>;
553
716
 
554
717
  export declare type ComputedStateDefinition<TState extends ServiceState, TComputedState extends ServiceState> = {
@@ -564,19 +727,51 @@ startupErrors: ErrorReport[];
564
727
  hasErrors: boolean;
565
728
  hasNewErrors: boolean;
566
729
  hasStartupErrors: boolean;
567
- }> & Constructor<Service<DefaultServiceState, {}, Partial<DefaultServiceState>>> & Service;
730
+ }> & Constructor<Service< {
731
+ logs: ErrorReportLog[];
732
+ startupErrors: ErrorReport[];
733
+ }, {
734
+ hasErrors: boolean;
735
+ hasNewErrors: boolean;
736
+ hasStartupErrors: boolean;
737
+ }, Partial<{
738
+ logs: ErrorReportLog[];
739
+ startupErrors: ErrorReport[];
740
+ }>>>;
568
741
 
569
742
  declare const _default_2: Constructor< {
743
+ plugins: Record<string, Plugin_2>;
570
744
  environment: "production" | "development" | "testing";
745
+ sourceUrl: string | undefined;
571
746
  isMounted: boolean;
572
747
  }> & Constructor< {
573
- isDevelopment: boolean;
574
- isTesting: boolean;
575
- }> & Constructor<Service<DefaultServiceState, {}, Partial<DefaultServiceState>>> & Service;
748
+ development: boolean;
749
+ testing: boolean;
750
+ }> & Constructor<Service< {
751
+ plugins: Record<string, Plugin_2>;
752
+ environment: "production" | "development" | "testing";
753
+ sourceUrl: string | undefined;
754
+ isMounted: boolean;
755
+ }, {
756
+ development: boolean;
757
+ testing: boolean;
758
+ }, Partial<{
759
+ plugins: Record<string, Plugin_2>;
760
+ environment: "production" | "development" | "testing";
761
+ sourceUrl: string | undefined;
762
+ isMounted: boolean;
763
+ }>>>;
576
764
 
577
765
  declare const _default_3: Constructor< {
578
766
  modals: Modal<unknown>[];
579
- }> & Constructor< {}> & Constructor<Service<DefaultServiceState, {}, Partial<DefaultServiceState>>> & Service;
767
+ snackbars: Snackbar[];
768
+ }> & Constructor< {}> & Constructor<Service< {
769
+ modals: Modal<unknown>[];
770
+ snackbars: Snackbar[];
771
+ }, {}, Partial<{
772
+ modals: Modal<unknown>[];
773
+ snackbars: Snackbar[];
774
+ }>>>;
580
775
 
581
776
  export declare type DefaultServices = typeof defaultServices;
582
777
 
@@ -601,6 +796,8 @@ export declare function defineServiceState<State extends ServiceState = ServiceS
601
796
 
602
797
  export declare function enumProp<Enum extends Record<string, unknown>>(enumeration: Enum, defaultValue?: Enum[keyof Enum]): OptionalProp<Enum[keyof Enum]>;
603
798
 
799
+ export declare type ErrorHandler = (error: ErrorSource) => boolean;
800
+
604
801
  export declare interface ErrorReport {
605
802
  title: string;
606
803
  description?: string;
@@ -614,6 +811,15 @@ export declare interface ErrorReportLog {
614
811
  date: Date;
615
812
  }
616
813
 
814
+ export declare const errorReportModalProps: {
815
+ reports: {
816
+ type: PropType<ErrorReport[]>;
817
+ validator?(value: unknown): boolean;
818
+ } & {
819
+ required: true;
820
+ };
821
+ };
822
+
617
823
  export declare const Errors: Facade<ErrorsService, Constructor<ErrorsService>>;
618
824
 
619
825
  export declare type ErrorSource = string | Error | JSError | unknown;
@@ -627,6 +833,7 @@ declare class ErrorsService extends _default {
627
833
  report(error: ErrorSource, message?: string): Promise<void>;
628
834
  see(report: ErrorReport): void;
629
835
  seeAll(): void;
836
+ getErrorMessage(error: ErrorSource): string;
630
837
  private logError;
631
838
  private createErrorReport;
632
839
  private createStartupErrorReport;
@@ -678,7 +885,10 @@ declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> e
678
885
  setFieldValue<T extends keyof Fields>(field: T, value: FormData_2<Fields>[T]): void;
679
886
  getFieldValue<T extends keyof Fields>(field: T): GetFormFieldValue<Fields[T]['type']>;
680
887
  validate(): boolean;
681
- reset(): void;
888
+ reset(options?: {
889
+ keepData?: boolean;
890
+ keepErrors?: boolean;
891
+ }): void;
682
892
  submit(): boolean;
683
893
  protected __get(property: string): unknown;
684
894
  protected __set(property: string, value: unknown): void;
@@ -716,6 +926,14 @@ export declare const FormFieldTypes: {
716
926
 
717
927
  export declare type GetFormFieldValue<TType> = TType extends typeof FormFieldTypes.String ? string : TType extends typeof FormFieldTypes.Number ? number : TType extends typeof FormFieldTypes.Boolean ? boolean : never;
718
928
 
929
+ export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
930
+ id: string;
931
+ description: string;
932
+ iconComponent: Component;
933
+ url?: string;
934
+ handler?(): void;
935
+ }
936
+
719
937
  export declare interface IAGHeadlessInput {
720
938
  id: string;
721
939
  value: ComputedRef<string | number | boolean | null>;
@@ -731,12 +949,23 @@ export declare interface IAGModal {
731
949
  close(): Promise<void>;
732
950
  }
733
951
 
952
+ export declare interface IAGModalContext {
953
+ modal: Ref<Modal>;
954
+ childIndex: Ref<number>;
955
+ }
956
+
957
+ export declare interface IAGModalDefaultSlotProps {
958
+ close(result?: unknown): Promise<void>;
959
+ }
960
+
734
961
  export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
735
962
 
736
963
  export declare function injectReactive<T extends object>(key: InjectionKey<T> | string): UnwrapNestedRefs<T> | undefined;
737
964
 
738
965
  export declare function injectReactiveOrFail<T extends object>(key: InjectionKey<T> | string, errorMessage?: string): UnwrapNestedRefs<T>;
739
966
 
967
+ export declare function installPlugins(plugins: Plugin_2[], ...args: GetClosureArgs<Plugin_2['install']>): Promise<void>;
968
+
740
969
  export declare const Lang: Facade<LangService, Constructor<LangService>>;
741
970
 
742
971
  export declare interface LangProvider {
@@ -788,6 +1017,7 @@ declare type OptionalProp<T> = BaseProp<T> & {
788
1017
  };
789
1018
 
790
1019
  declare interface Plugin_2 {
1020
+ name?: string;
791
1021
  install(app: App_2, options: AerogelOptions): void | Promise<void>;
792
1022
  }
793
1023
  export { Plugin_2 as Plugin }
@@ -836,6 +1066,7 @@ export declare class Service<State extends ServiceState = DefaultServiceState, C
836
1066
  protected getInitialState(): State;
837
1067
  protected getComputedStateDefinition(): ComputedStateDefinition<State, ComputedState>;
838
1068
  protected serializePersistedState(state: Partial<State>): Partial<State>;
1069
+ protected frameworkBoot(): Promise<void>;
839
1070
  protected boot(): Promise<void>;
840
1071
  protected restorePersistedState(): void;
841
1072
  }
@@ -859,6 +1090,60 @@ declare const services_3: {
859
1090
 
860
1091
  export declare type ServiceState = Record<string, any>;
861
1092
 
1093
+ declare interface ShowSnackbarOptions {
1094
+ component?: Component;
1095
+ color?: SnackbarColor;
1096
+ actions?: SnackbarAction[];
1097
+ }
1098
+
1099
+ declare interface Snackbar {
1100
+ id: string;
1101
+ component: Component;
1102
+ properties: Record<string, unknown>;
1103
+ }
1104
+
1105
+ export declare interface SnackbarAction {
1106
+ text: string;
1107
+ dismiss?: boolean;
1108
+ handler?(): unknown;
1109
+ }
1110
+
1111
+ export declare type SnackbarColor = (typeof SnackbarColors)[keyof typeof SnackbarColors];
1112
+
1113
+ export declare const SnackbarColors: Omit<{
1114
+ readonly Primary: "primary";
1115
+ readonly Secondary: "secondary";
1116
+ readonly Danger: "danger";
1117
+ readonly Clear: "clear";
1118
+ }, "Primary" | "Clear">;
1119
+
1120
+ export declare const snackbarProps: {
1121
+ id: {
1122
+ type: PropType<string>;
1123
+ validator?(value: unknown): boolean;
1124
+ } & {
1125
+ required: true;
1126
+ };
1127
+ message: {
1128
+ type: PropType<string>;
1129
+ validator?(value: unknown): boolean;
1130
+ } & {
1131
+ required: true;
1132
+ };
1133
+ actions: {
1134
+ type: PropType<SnackbarAction[]>;
1135
+ validator?(value: unknown): boolean;
1136
+ } & {
1137
+ default: SnackbarAction[] | (() => SnackbarAction[]) | null;
1138
+ };
1139
+ color: {
1140
+ type: PropType<"secondary" | "danger">;
1141
+ validator?(value: unknown): boolean;
1142
+ } & {
1143
+ default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
1144
+ };
1145
+ };
1146
+
862
1147
  export declare function stringInput(defaultValue?: string): FormFieldDefinition<typeof FormFieldTypes.String>;
863
1148
 
864
1149
  export declare function stringProp(): OptionalProp<string | null>;
@@ -879,23 +1164,27 @@ export declare type UIComponent = ObjectValues<typeof UIComponents>;
879
1164
  export declare const UIComponents: {
880
1165
  readonly AlertModal: "alert-modal";
881
1166
  readonly ConfirmModal: "confirm-modal";
1167
+ readonly ErrorReportModal: "error-report-modal";
882
1168
  readonly LoadingModal: "loading-modal";
1169
+ readonly Snackbar: "snackbar";
883
1170
  };
884
1171
 
885
1172
  declare class UIService extends _default_3 {
886
1173
  private modalCallbacks;
887
1174
  private components;
1175
+ requireComponent(name: UIComponent): Component;
888
1176
  alert(message: string): void;
889
1177
  alert(title: string, message: string): void;
890
1178
  confirm(message: string): Promise<boolean>;
891
1179
  confirm(title: string, message: string): Promise<boolean>;
892
1180
  loading<T>(operation: Promise<T>): Promise<T>;
893
1181
  loading<T>(message: string, operation: Promise<T>): Promise<T>;
1182
+ showSnackbar(message: string, options?: ShowSnackbarOptions): void;
1183
+ hideSnackbar(id: string): void;
894
1184
  registerComponent(name: UIComponent, component: Component): void;
895
1185
  openModal<TModalComponent extends ModalComponent>(component: TModalComponent, properties?: ModalProperties<TModalComponent>): Promise<Modal<ModalResult<TModalComponent>>>;
896
1186
  closeModal(id: string, result?: unknown): Promise<void>;
897
1187
  protected boot(): Promise<void>;
898
- private requireComponent;
899
1188
  private watchModalEvents;
900
1189
  }
901
1190
 
@@ -903,6 +1192,8 @@ export declare type UIServices = typeof services_3;
903
1192
 
904
1193
  export declare type UnknownEvent<T> = T extends keyof EventsPayload ? never : T;
905
1194
 
1195
+ export declare function useErrorReportModalProps(): typeof errorReportModalProps;
1196
+
906
1197
  export declare function useEvent<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): void;
907
1198
 
908
1199
  export declare function useEvent<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): void;
@@ -913,14 +1204,19 @@ export declare function useForm<const T extends FormFieldDefinitions>(fields: T)
913
1204
 
914
1205
  export declare function useInputAttrs(): [ComputedRef<{}>, ComputedRef<unknown>];
915
1206
 
1207
+ export declare function useSnackbarProps(): typeof snackbarProps;
1208
+
916
1209
  export { }
917
1210
 
918
- export interface Services extends ErrorsServices {}
1211
+ interface AerogelOptions {
1212
+ directives?: Record<string, Directive>;
1213
+ }
919
1214
 
920
- declare global {
921
- export const __AG_BASE_PATH: string | undefined;
922
- export const __AG_ENV: 'production' | 'development' | 'testing';
923
- }
1215
+ interface AerogelOptions {
1216
+ handleError?(error: ErrorSource): boolean;
1217
+ }
1218
+
1219
+ export interface Services extends ErrorsServices {}
924
1220
 
925
1221
  export interface Services extends LangServices {}
926
1222