@ship-ui/core 0.18.1 → 0.18.2
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.
package/package.json
CHANGED
package/types/ship-ui-core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ElementRef, QueryList, TemplateRef,
|
|
2
|
+
import { ElementRef, QueryList, TemplateRef, OutputEmitterRef, InputSignal, ComponentRef, EmbeddedViewRef, OutputRefSubscription, Type, AfterViewInit, OnDestroy, AfterContentInit, WritableSignal, InjectionToken } from '@angular/core';
|
|
3
3
|
import { NgModel } from '@angular/forms';
|
|
4
4
|
|
|
5
5
|
type ShipColor = 'primary' | 'accent' | 'warn' | 'error' | 'success' | (string & {});
|
|
@@ -110,15 +110,13 @@ declare class ShipDialog {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
type Exact<T, U> = U extends T ? (keyof U extends keyof T ? U : never) : never;
|
|
113
|
-
type ComponentDataType<T> = T extends TemplateRef<infer C> ? C extends {
|
|
113
|
+
type ComponentDataType<T> = T extends TemplateRef<infer C> ? (C extends {
|
|
114
114
|
$implicit: infer K;
|
|
115
|
-
} ? K :
|
|
115
|
+
} ? K : unknown) & Partial<Omit<C, 'close' | '$implicit'>> extends infer R ? keyof R extends never ? void : R : void : T extends {
|
|
116
116
|
data: InputSignal<infer K>;
|
|
117
|
-
} ? K : void
|
|
117
|
+
} ? K : void;
|
|
118
118
|
type ComponentClosedType<T> = T extends TemplateRef<infer C> ? C extends {
|
|
119
119
|
close: (res?: infer U) => void;
|
|
120
|
-
} ? U : undefined : T extends Type<infer I> ? I extends {
|
|
121
|
-
closed: OutputEmitterRef<infer U>;
|
|
122
120
|
} ? U : undefined : T extends {
|
|
123
121
|
closed: OutputEmitterRef<infer U>;
|
|
124
122
|
} ? U : undefined;
|
|
@@ -143,7 +141,7 @@ declare class ShipDialogService {
|
|
|
143
141
|
insertedTemplateRef: EmbeddedViewRef<unknown> | null;
|
|
144
142
|
closedFieldSub: OutputRefSubscription | null;
|
|
145
143
|
compClosedSub: OutputRefSubscription | null;
|
|
146
|
-
open<
|
|
144
|
+
open<I, K = ComponentDataType<I>, U = ComponentClosedType<I>, _Options extends ShipDialogServiceOptions<K, U> = ShipDialogServiceOptions<K, U>>(componentOrTemplate: Type<I> | (I extends TemplateRef<any> ? I : never), options?: _Options): I extends TemplateRef<any> ? ShipDialogTemplateInstance<I> : ShipDialogInstance<I>;
|
|
147
145
|
ngOnDestroy(): void;
|
|
148
146
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipDialogService, never>;
|
|
149
147
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ShipDialogService>;
|