@aerogel/core 0.1.1-next.7fce7b4ce55cfb9c329a7746f571015aedc8e3bd → 0.1.1-next.97f5cf5c97f16ab8a0ef63b82aaab049a0f9e15b

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.
@@ -3,6 +3,7 @@ import { AllowedComponentProps } from 'vue';
3
3
  import { App as App_2 } from 'vue';
4
4
  import { AsTag } from 'reka-ui';
5
5
  import { ClassValue } from 'clsx';
6
+ import { closeModal } from '@noeldemartin/vue-modals';
6
7
  import { Component } from 'vue';
7
8
  import { ComponentCustomProperties } from 'vue';
8
9
  import { ComponentCustomProps } from 'vue';
@@ -15,6 +16,7 @@ import { ComputedGetter } from 'vue';
15
16
  import { ComputedOptions } from 'vue';
16
17
  import { ComputedRef } from 'vue';
17
18
  import { Constructor } from '@noeldemartin/utils';
19
+ import { createModal } from '@noeldemartin/vue-modals';
18
20
  import { cva } from 'class-variance-authority';
19
21
  import { DebuggerEvent } from 'vue';
20
22
  import { DeepReadonly } from 'vue';
@@ -38,6 +40,7 @@ import { GlobalComponents } from 'vue';
38
40
  import { GlobalDirectives } from 'vue';
39
41
  import { HTMLAttributes } from 'vue';
40
42
  import { InjectionKey } from 'vue';
43
+ import { injectModal } from '@noeldemartin/vue-modals';
41
44
  import { JSError } from '@noeldemartin/utils';
42
45
  import { LabelProps } from 'reka-ui';
43
46
  import { Listeners } from '@noeldemartin/utils';
@@ -45,6 +48,10 @@ import { ListenersManager } from '@noeldemartin/utils';
45
48
  import { MagicObject } from '@noeldemartin/utils';
46
49
  import { MaybeRef } from 'vue';
47
50
  import { MethodOptions } from 'vue';
51
+ import { ModalComponent } from '@noeldemartin/vue-modals';
52
+ import { ModalController } from '@noeldemartin/vue-modals';
53
+ import { modals } from '@noeldemartin/vue-modals';
54
+ import { ModalsPortal } from '@noeldemartin/vue-modals';
48
55
  import { nextTick } from 'vue';
49
56
  import { Nullable } from '@noeldemartin/utils';
50
57
  import { OnCleanup } from '@vue/reactivity';
@@ -58,11 +65,11 @@ import { Ref } from 'vue';
58
65
  import { SelectContentProps } from 'reka-ui';
59
66
  import { SelectItemProps } from 'reka-ui';
60
67
  import { ShallowUnwrapRef } from 'vue';
68
+ import { showModal } from '@noeldemartin/vue-modals';
61
69
  import { Slot } from 'vue';
62
70
  import { StateTree } from 'pinia';
63
71
  import { Store } from 'pinia';
64
72
  import { UnwrapNestedRefs } from 'vue';
65
- import { useModal } from '@noeldemartin/vue-modals';
66
73
  import { VNode } from 'vue';
67
74
  import { VNodeProps } from 'vue';
68
75
  import { WatchOptions } from 'vue';
@@ -1247,6 +1254,8 @@ export declare const Checkbox: __VLS_WithTemplateSlots_18<typeof __VLS_component
1247
1254
 
1248
1255
  export declare function classes(...inputs: ClassValue[]): string;
1249
1256
 
1257
+ export { closeModal }
1258
+
1250
1259
  export declare type ComponentPropDefinitions<T> = {
1251
1260
  [K in keyof T]: {
1252
1261
  type?: PropType<T[K]>;
@@ -1318,6 +1327,8 @@ export declare interface ConfirmOptionsWithCheckboxes<T extends ConfirmModalChec
1318
1327
  checkboxes?: T;
1319
1328
  }
1320
1329
 
1330
+ export { createModal }
1331
+
1321
1332
  export declare type CVAConfig<T> = NonNullable<GetClosureArgs<typeof cva<T>>[1]>;
1322
1333
 
1323
1334
  export declare type CVAProps<T> = NonNullable<GetClosureArgs<GetClosureResult<typeof cva<T>>>[0]>;
@@ -1649,6 +1660,10 @@ export declare type GetFormFieldValue<TType, TValueType = unknown> = TType exten
1649
1660
 
1650
1661
  export declare function getMarkdownRouter(): MarkdownRouter | null;
1651
1662
 
1663
+ export { GetModalProps }
1664
+
1665
+ export { GetModalResponse }
1666
+
1652
1667
  export declare function getPiniaStore(): Pinia;
1653
1668
 
1654
1669
  export declare interface HasSelectOptionLabel {
@@ -1772,6 +1787,8 @@ export declare const HeadlessSwitch: <T extends boolean = boolean>(__VLS_props:
1772
1787
 
1773
1788
  export declare const HeadlessToast: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
1774
1789
 
1790
+ export { injectModal }
1791
+
1775
1792
  export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
1776
1793
 
1777
1794
  export declare function injectReactive<T extends object>(key: InjectionKey<T> | string): UnwrapNestedRefs<T> | undefined;
@@ -2010,8 +2027,12 @@ export declare const Modal: <T = void>(__VLS_props: NonNullable<Awaited<typeof _
2010
2027
  __ctx?: Awaited<typeof __VLS_setup>;
2011
2028
  };
2012
2029
 
2030
+ export { ModalComponent }
2031
+
2013
2032
  export declare type ModalContentInstance = Nullable<InstanceType<typeof DialogContent>>;
2014
2033
 
2034
+ export { ModalController }
2035
+
2015
2036
  export declare interface ModalEmits<Result = never> {
2016
2037
  (event: 'close', payload: Result): void;
2017
2038
  }
@@ -2028,12 +2049,16 @@ export declare interface ModalProps {
2028
2049
  descriptionHidden?: boolean;
2029
2050
  }
2030
2051
 
2052
+ export { modals }
2053
+
2031
2054
  export declare interface ModalSlots<Result = never> {
2032
2055
  default(props: {
2033
2056
  close(result?: Result): Promise<void>;
2034
2057
  }): unknown;
2035
2058
  }
2036
2059
 
2060
+ export { ModalsPortal }
2061
+
2037
2062
  export declare function numberInput(defaultValue?: number, options?: {
2038
2063
  rules?: string;
2039
2064
  }): FormFieldDefinition<'number'>;
@@ -2264,6 +2289,8 @@ export declare const Setting: __VLS_WithTemplateSlots_30<typeof __VLS_component_
2264
2289
 
2265
2290
  export declare const SettingsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2266
2291
 
2292
+ export { showModal }
2293
+
2267
2294
  export declare const StartupCrash: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
2268
2295
 
2269
2296
  export declare type StateWatchers<TService extends Service, TState extends ServiceState> = {
@@ -2501,7 +2528,12 @@ export declare function useLoadingModal(props: LoadingModalProps): {
2501
2528
  showProgress: ComputedRef<boolean>;
2502
2529
  };
2503
2530
 
2504
- export { useModal }
2531
+ export declare function useModal<T = never>(): {
2532
+ close(result?: T): Promise<void>;
2533
+ id: ComputedRef<string>;
2534
+ visible: ComputedRef<boolean>;
2535
+ child: ComputedRef<ModalController<never> | null>;
2536
+ };
2505
2537
 
2506
2538
  export declare function usePromptModal(props: PromptModalProps): {
2507
2539
  form: FormController< {
@@ -2540,22 +2572,22 @@ export { }
2540
2572
 
2541
2573
 
2542
2574
  declare module '@aerogel/core' {
2543
- interface AerogelOptions {
2544
- directives?: Record<string, Directive>;
2575
+ interface EventsPayload {
2576
+ 'application-ready': void;
2577
+ 'application-mounted': void;
2545
2578
  }
2546
2579
  }
2547
2580
 
2548
2581
 
2549
- declare module 'vue' {
2550
- interface ComponentCustomDirectives extends AerogelDirectives {
2582
+ declare module '@aerogel/core' {
2583
+ interface AerogelOptions {
2584
+ directives?: Record<string, Directive>;
2551
2585
  }
2552
2586
  }
2553
2587
 
2554
2588
 
2555
- declare module '@aerogel/core' {
2556
- interface EventsPayload {
2557
- 'application-ready': void;
2558
- 'application-mounted': void;
2589
+ declare module 'vue' {
2590
+ interface ComponentCustomDirectives extends AerogelDirectives {
2559
2591
  }
2560
2592
  }
2561
2593