|
| 1 | +## API Report File for "ng-dynamic-component" |
| 2 | + |
| 3 | +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). |
| 4 | +
|
| 5 | +```ts |
| 6 | + |
| 7 | +import { ChangeDetectorRef } from '@angular/core'; |
| 8 | +import { ComponentFactoryResolver } from '@angular/core'; |
| 9 | +import { ComponentRef } from '@angular/core'; |
| 10 | +import { DoCheck } from '@angular/core'; |
| 11 | +import { ElementRef } from '@angular/core'; |
| 12 | +import { EnvironmentInjector } from '@angular/core'; |
| 13 | +import { EventEmitter } from '@angular/core'; |
| 14 | +import * as i0 from '@angular/core'; |
| 15 | +import * as i3 from '@angular/common'; |
| 16 | +import { InjectionToken } from '@angular/core'; |
| 17 | +import { Injector } from '@angular/core'; |
| 18 | +import { IterableDiffers } from '@angular/core'; |
| 19 | +import { KeyValueDiffers } from '@angular/core'; |
| 20 | +import { NgComponentOutlet } from '@angular/common'; |
| 21 | +import { NgModuleRef } from '@angular/core'; |
| 22 | +import { OnChanges } from '@angular/core'; |
| 23 | +import { OnDestroy } from '@angular/core'; |
| 24 | +import { Renderer2 } from '@angular/core'; |
| 25 | +import { SimpleChanges } from '@angular/core'; |
| 26 | +import { StaticProvider } from '@angular/core'; |
| 27 | +import { Type } from '@angular/core'; |
| 28 | +import { ViewContainerRef } from '@angular/core'; |
| 29 | +import { ViewRef } from '@angular/core'; |
| 30 | + |
| 31 | +// @public (undocumented) |
| 32 | +export type AnyFunction = (...args: unknown[]) => unknown; |
| 33 | + |
| 34 | +// @public (undocumented) |
| 35 | +export interface AttributesMap { |
| 36 | + // (undocumented) |
| 37 | + [key: string]: string; |
| 38 | +} |
| 39 | + |
| 40 | +// @public (undocumented) |
| 41 | +export class ComponentOutletInjectorDirective implements DynamicComponentInjector { |
| 42 | + constructor(componentOutlet: NgComponentOutlet); |
| 43 | + // (undocumented) |
| 44 | + get componentRef(): ComponentRef<unknown>; |
| 45 | + // (undocumented) |
| 46 | + static ɵdir: i0.ɵɵDirectiveDeclaration<ComponentOutletInjectorDirective, "[ngComponentOutlet]", ["ndcComponentOutletInjector"], {}, {}, never, never, false>; |
| 47 | + // (undocumented) |
| 48 | + static ɵfac: i0.ɵɵFactoryDeclaration<ComponentOutletInjectorDirective, [{ host: true; }]>; |
| 49 | +} |
| 50 | + |
| 51 | +// @public (undocumented) |
| 52 | +export class ComponentOutletInjectorModule { |
| 53 | + // (undocumented) |
| 54 | + static ɵfac: i0.ɵɵFactoryDeclaration<ComponentOutletInjectorModule, never>; |
| 55 | + // (undocumented) |
| 56 | + static ɵinj: i0.ɵɵInjectorDeclaration<ComponentOutletInjectorModule>; |
| 57 | + // Warning: (ae-forgotten-export) The symbol "i1" needs to be exported by the entry point public-api.d.ts |
| 58 | + // Warning: (ae-forgotten-export) The symbol "i2" needs to be exported by the entry point public-api.d.ts |
| 59 | + // |
| 60 | + // (undocumented) |
| 61 | + static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentOutletInjectorModule, [typeof i1.ComponentOutletInjectorDirective, typeof i2.ComponentOutletIoDirective], [typeof i3.CommonModule], [typeof i1.ComponentOutletInjectorDirective, typeof i2.ComponentOutletIoDirective]>; |
| 62 | +} |
| 63 | + |
| 64 | +// @public (undocumented) |
| 65 | +export class ComponentOutletIoDirective implements DoCheck { |
| 66 | + constructor(ioService: IoService); |
| 67 | + // (undocumented) |
| 68 | + ngComponentOutletNdcDynamicInputs?: InputsType | null; |
| 69 | + // (undocumented) |
| 70 | + ngComponentOutletNdcDynamicOutputs?: OutputsType | null; |
| 71 | + // (undocumented) |
| 72 | + ngDoCheck(): void; |
| 73 | + // (undocumented) |
| 74 | + static ɵdir: i0.ɵɵDirectiveDeclaration<ComponentOutletIoDirective, "[ngComponentOutletNdcDynamicInputs],[ngComponentOutletNdcDynamicOutputs]", ["ndcDynamicIo"], { "ngComponentOutletNdcDynamicInputs": "ngComponentOutletNdcDynamicInputs"; "ngComponentOutletNdcDynamicOutputs": "ngComponentOutletNdcDynamicOutputs"; }, {}, never, never, false>; |
| 75 | + // (undocumented) |
| 76 | + static ɵfac: i0.ɵɵFactoryDeclaration<ComponentOutletIoDirective, never>; |
| 77 | +} |
| 78 | + |
| 79 | +// @public (undocumented) |
| 80 | +export function defaultEventArgumentFactory(): string; |
| 81 | + |
| 82 | +// @public (undocumented) |
| 83 | +export interface DirectiveRef<T> { |
| 84 | + // (undocumented) |
| 85 | + changeDetectorRef: ChangeDetectorRef; |
| 86 | + // (undocumented) |
| 87 | + hostComponent: unknown; |
| 88 | + // (undocumented) |
| 89 | + hostView: ViewRef; |
| 90 | + // (undocumented) |
| 91 | + injector: Injector; |
| 92 | + // (undocumented) |
| 93 | + instance: T; |
| 94 | + // (undocumented) |
| 95 | + location: ElementRef; |
| 96 | + // (undocumented) |
| 97 | + onDestroy: (callback: Function) => void; |
| 98 | + // (undocumented) |
| 99 | + type: Type<T>; |
| 100 | +} |
| 101 | + |
| 102 | +// @public (undocumented) |
| 103 | +export class DynamicAttributesDirective implements DoCheck { |
| 104 | + constructor(renderer: Renderer2, differs: KeyValueDiffers, componentInjector?: DynamicComponentInjector | undefined); |
| 105 | + // (undocumented) |
| 106 | + ndcDynamicAttributes?: AttributesMap | null; |
| 107 | + // (undocumented) |
| 108 | + ngComponentOutletNdcDynamicAttributes?: AttributesMap | null; |
| 109 | + // (undocumented) |
| 110 | + ngDoCheck(): void; |
| 111 | + // (undocumented) |
| 112 | + removeAttribute(name: string, namespace?: string): void; |
| 113 | + // (undocumented) |
| 114 | + setAttribute(name: string, value: string, namespace?: string): void; |
| 115 | + // (undocumented) |
| 116 | + static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicAttributesDirective, "[ndcDynamicAttributes],[ngComponentOutletNdcDynamicAttributes]", ["ndcDynamicAttributes"], { "ndcDynamicAttributes": "ndcDynamicAttributes"; "ngComponentOutletNdcDynamicAttributes": "ngComponentOutletNdcDynamicAttributes"; }, {}, never, never, false>; |
| 117 | + // (undocumented) |
| 118 | + static ɵfac: i0.ɵɵFactoryDeclaration<DynamicAttributesDirective, [null, null, { optional: true; }]>; |
| 119 | +} |
| 120 | + |
| 121 | +// @public (undocumented) |
| 122 | +export class DynamicAttributesModule { |
| 123 | + // (undocumented) |
| 124 | + static ɵfac: i0.ɵɵFactoryDeclaration<DynamicAttributesModule, never>; |
| 125 | + // (undocumented) |
| 126 | + static ɵinj: i0.ɵɵInjectorDeclaration<DynamicAttributesModule>; |
| 127 | + // Warning: (ae-forgotten-export) The symbol "i1_4" needs to be exported by the entry point public-api.d.ts |
| 128 | + // Warning: (ae-forgotten-export) The symbol "i3_3" needs to be exported by the entry point public-api.d.ts |
| 129 | + // |
| 130 | + // (undocumented) |
| 131 | + static ɵmod: i0.ɵɵNgModuleDeclaration<DynamicAttributesModule, [typeof i1_4.DynamicAttributesDirective], [typeof i3.CommonModule], [typeof i1_4.DynamicAttributesDirective, typeof i3_3.ComponentOutletInjectorModule]>; |
| 132 | +} |
| 133 | + |
| 134 | +// @public (undocumented) |
| 135 | +export class DynamicComponent<C = unknown> implements OnChanges, DynamicComponentInjector { |
| 136 | + constructor(vcr: ViewContainerRef); |
| 137 | + // (undocumented) |
| 138 | + componentRef: ComponentRef<C> | null; |
| 139 | + // (undocumented) |
| 140 | + createDynamicComponent(): void; |
| 141 | + // (undocumented) |
| 142 | + ndcDynamicComponent?: Type<C> | null; |
| 143 | + // (undocumented) |
| 144 | + ndcDynamicContent?: Node[][]; |
| 145 | + // (undocumented) |
| 146 | + ndcDynamicCreated: EventEmitter<ComponentRef<C>>; |
| 147 | + // (undocumented) |
| 148 | + ndcDynamicEnvironmentInjector?: EnvironmentInjector | NgModuleRef<unknown>; |
| 149 | + // (undocumented) |
| 150 | + ndcDynamicInjector?: Injector | null; |
| 151 | + // (undocumented) |
| 152 | + ndcDynamicNgModuleRef?: NgModuleRef<unknown>; |
| 153 | + // (undocumented) |
| 154 | + ndcDynamicProviders?: StaticProvider[] | null; |
| 155 | + // (undocumented) |
| 156 | + ngOnChanges(changes: SimpleChanges): void; |
| 157 | + // (undocumented) |
| 158 | + static ɵcmp: i0.ɵɵComponentDeclaration<DynamicComponent<any>, "ndc-dynamic", never, { "ndcDynamicComponent": "ndcDynamicComponent"; "ndcDynamicInjector": "ndcDynamicInjector"; "ndcDynamicProviders": "ndcDynamicProviders"; "ndcDynamicContent": "ndcDynamicContent"; "ndcDynamicNgModuleRef": "ndcDynamicNgModuleRef"; "ndcDynamicEnvironmentInjector": "ndcDynamicEnvironmentInjector"; }, { "ndcDynamicCreated": "ndcDynamicCreated"; }, never, never, false>; |
| 159 | + // (undocumented) |
| 160 | + static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponent<any>, never>; |
| 161 | +} |
| 162 | + |
| 163 | +// @public (undocumented) |
| 164 | +export interface DynamicComponentInjector { |
| 165 | + // (undocumented) |
| 166 | + componentRef: ComponentRef<unknown> | null; |
| 167 | +} |
| 168 | + |
| 169 | +// @public (undocumented) |
| 170 | +export const DynamicComponentInjectorToken: InjectionToken<DynamicComponentInjector>; |
| 171 | + |
| 172 | +// @public (undocumented) |
| 173 | +export interface DynamicDirectiveDef<T> { |
| 174 | + // (undocumented) |
| 175 | + inputs?: InputsType; |
| 176 | + // (undocumented) |
| 177 | + outputs?: OutputsType; |
| 178 | + // (undocumented) |
| 179 | + type: Type<T>; |
| 180 | +} |
| 181 | + |
| 182 | +// @public (undocumented) |
| 183 | +export function dynamicDirectiveDef<T>(type: Type<T>, inputs?: InputsType, outputs?: OutputsType): DynamicDirectiveDef<T>; |
| 184 | + |
| 185 | +// @public |
| 186 | +export class DynamicDirectivesDirective implements OnDestroy, DoCheck { |
| 187 | + constructor(injector: Injector, iterableDiffers: IterableDiffers, ioFactoryService: IoFactoryService, reflectService: ReflectService, componentInjector?: DynamicComponentInjector | undefined); |
| 188 | + // (undocumented) |
| 189 | + ndcDynamicDirectives?: DynamicDirectiveDef<unknown>[] | null; |
| 190 | + // (undocumented) |
| 191 | + ndcDynamicDirectivesCreated: EventEmitter<DirectiveRef<unknown>[]>; |
| 192 | + // (undocumented) |
| 193 | + ngComponentOutletNdcDynamicDirectives?: DynamicDirectiveDef<unknown>[] | null; |
| 194 | + // (undocumented) |
| 195 | + ngDoCheck(): void; |
| 196 | + // (undocumented) |
| 197 | + ngOnDestroy(): void; |
| 198 | + // (undocumented) |
| 199 | + static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicDirectivesDirective, "[ndcDynamicDirectives],[ngComponentOutletNdcDynamicDirectives]", never, { "ndcDynamicDirectives": "ndcDynamicDirectives"; "ngComponentOutletNdcDynamicDirectives": "ngComponentOutletNdcDynamicDirectives"; }, { "ndcDynamicDirectivesCreated": "ndcDynamicDirectivesCreated"; }, never, never, false>; |
| 200 | + // (undocumented) |
| 201 | + static ɵfac: i0.ɵɵFactoryDeclaration<DynamicDirectivesDirective, [null, null, null, null, { optional: true; }]>; |
| 202 | +} |
| 203 | + |
| 204 | +// @public (undocumented) |
| 205 | +export class DynamicDirectivesModule { |
| 206 | + // (undocumented) |
| 207 | + static ɵfac: i0.ɵɵFactoryDeclaration<DynamicDirectivesModule, never>; |
| 208 | + // (undocumented) |
| 209 | + static ɵinj: i0.ɵɵInjectorDeclaration<DynamicDirectivesModule>; |
| 210 | + // Warning: (ae-forgotten-export) The symbol "i1_5" needs to be exported by the entry point public-api.d.ts |
| 211 | + // |
| 212 | + // (undocumented) |
| 213 | + static ɵmod: i0.ɵɵNgModuleDeclaration<DynamicDirectivesModule, [typeof i1_5.DynamicDirectivesDirective], [typeof i3.CommonModule], [typeof i1_5.DynamicDirectivesDirective, typeof i3_3.ComponentOutletInjectorModule]>; |
| 214 | +} |
| 215 | + |
| 216 | +// @public (undocumented) |
| 217 | +export class DynamicIoDirective implements DoCheck { |
| 218 | + constructor(ioService: IoService); |
| 219 | + // (undocumented) |
| 220 | + ndcDynamicInputs?: InputsType | null; |
| 221 | + // (undocumented) |
| 222 | + ndcDynamicOutputs?: OutputsType | null; |
| 223 | + // (undocumented) |
| 224 | + ngDoCheck(): void; |
| 225 | + // (undocumented) |
| 226 | + static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicIoDirective, "[ndcDynamicInputs],[ndcDynamicOutputs]", ["ndcDynamicIo"], { "ndcDynamicInputs": "ndcDynamicInputs"; "ndcDynamicOutputs": "ndcDynamicOutputs"; }, {}, never, never, false>; |
| 227 | + // (undocumented) |
| 228 | + static ɵfac: i0.ɵɵFactoryDeclaration<DynamicIoDirective, never>; |
| 229 | +} |
| 230 | + |
| 231 | +// @public (undocumented) |
| 232 | +export class DynamicIoModule { |
| 233 | + // (undocumented) |
| 234 | + static ɵfac: i0.ɵɵFactoryDeclaration<DynamicIoModule, never>; |
| 235 | + // (undocumented) |
| 236 | + static ɵinj: i0.ɵɵInjectorDeclaration<DynamicIoModule>; |
| 237 | + // Warning: (ae-forgotten-export) The symbol "i1_3" needs to be exported by the entry point public-api.d.ts |
| 238 | + // |
| 239 | + // (undocumented) |
| 240 | + static ɵmod: i0.ɵɵNgModuleDeclaration<DynamicIoModule, [typeof i1_3.DynamicIoDirective], [typeof i3.CommonModule], [typeof i1_3.DynamicIoDirective, typeof i3_3.ComponentOutletInjectorModule]>; |
| 241 | +} |
| 242 | + |
| 243 | +// @public (undocumented) |
| 244 | +export class DynamicModule { |
| 245 | + // (undocumented) |
| 246 | + static ɵfac: i0.ɵɵFactoryDeclaration<DynamicModule, never>; |
| 247 | + // (undocumented) |
| 248 | + static ɵinj: i0.ɵɵInjectorDeclaration<DynamicModule>; |
| 249 | + // Warning: (ae-forgotten-export) The symbol "i1_2" needs to be exported by the entry point public-api.d.ts |
| 250 | + // Warning: (ae-forgotten-export) The symbol "i3_2" needs to be exported by the entry point public-api.d.ts |
| 251 | + // |
| 252 | + // (undocumented) |
| 253 | + static ɵmod: i0.ɵɵNgModuleDeclaration<DynamicModule, [typeof i1_2.DynamicComponent], [typeof i3.CommonModule, typeof i3_2.DynamicIoModule], [typeof i1_2.DynamicComponent, typeof i3_2.DynamicIoModule]>; |
| 254 | +} |
| 255 | + |
| 256 | +// @public @deprecated (undocumented) |
| 257 | +export const EventArgumentToken: InjectionToken<string>; |
| 258 | + |
| 259 | +// @public (undocumented) |
| 260 | +export type EventHandler<T = unknown> = (event: T) => unknown; |
| 261 | + |
| 262 | +// @public (undocumented) |
| 263 | +export interface InputsType { |
| 264 | + // (undocumented) |
| 265 | + [k: string]: unknown; |
| 266 | +} |
| 267 | + |
| 268 | +// @public (undocumented) |
| 269 | +export const IoEventArgumentToken: InjectionToken<string>; |
| 270 | + |
| 271 | +// @public (undocumented) |
| 272 | +export class IoFactoryService { |
| 273 | + constructor(injector: Injector); |
| 274 | + // (undocumented) |
| 275 | + create(componentInjector: DynamicComponentInjector, ioOptions?: IoServiceOptions & IoFactoryServiceOptions): IoService; |
| 276 | + // (undocumented) |
| 277 | + static ɵfac: i0.ɵɵFactoryDeclaration<IoFactoryService, never>; |
| 278 | + // (undocumented) |
| 279 | + static ɵprov: i0.ɵɵInjectableDeclaration<IoFactoryService>; |
| 280 | +} |
| 281 | + |
| 282 | +// @public (undocumented) |
| 283 | +export interface IoFactoryServiceOptions { |
| 284 | + // (undocumented) |
| 285 | + injector?: Injector; |
| 286 | +} |
| 287 | + |
| 288 | +// @public (undocumented) |
| 289 | +export class IoService implements OnDestroy { |
| 290 | + constructor(injector: Injector, differs: KeyValueDiffers, cfr: ComponentFactoryResolver, options: IoServiceOptions, compInjector: DynamicComponentInjector, eventArgument: string, cdr: ChangeDetectorRef, eventContextProvider: StaticProvider); |
| 291 | + // (undocumented) |
| 292 | + ngOnDestroy(): void; |
| 293 | + update(inputs?: InputsType | null, outputs?: OutputsType | null): void; |
| 294 | + // (undocumented) |
| 295 | + static ɵfac: i0.ɵɵFactoryDeclaration<IoService, [null, null, null, null, null, null, null, { optional: true; }]>; |
| 296 | + // (undocumented) |
| 297 | + static ɵprov: i0.ɵɵInjectableDeclaration<IoService>; |
| 298 | +} |
| 299 | + |
| 300 | +// @public (undocumented) |
| 301 | +export class IoServiceOptions { |
| 302 | + // (undocumented) |
| 303 | + trackOutputChanges: boolean; |
| 304 | + // (undocumented) |
| 305 | + static ɵfac: i0.ɵɵFactoryDeclaration<IoServiceOptions, never>; |
| 306 | + // (undocumented) |
| 307 | + static ɵprov: i0.ɵɵInjectableDeclaration<IoServiceOptions>; |
| 308 | +} |
| 309 | + |
| 310 | +// @public (undocumented) |
| 311 | +export type OutputExpression = EventHandler | OutputWithArgs; |
| 312 | + |
| 313 | +// @public (undocumented) |
| 314 | +export interface OutputsType { |
| 315 | + // (undocumented) |
| 316 | + [k: string]: OutputExpression | undefined; |
| 317 | +} |
| 318 | + |
| 319 | +// @public (undocumented) |
| 320 | +export interface OutputWithArgs { |
| 321 | + // (undocumented) |
| 322 | + args?: unknown[]; |
| 323 | + // (undocumented) |
| 324 | + handler: AnyFunction; |
| 325 | +} |
| 326 | + |
| 327 | +// @public |
| 328 | +export interface ReflectApi { |
| 329 | + // (undocumented) |
| 330 | + getMetadata(type: string, obj: unknown): unknown[]; |
| 331 | +} |
| 332 | + |
| 333 | +// @public (undocumented) |
| 334 | +export const ReflectRef: InjectionToken<ReflectApi>; |
| 335 | + |
| 336 | +// @public (undocumented) |
| 337 | +export class ReflectService { |
| 338 | + constructor(reflect: ReflectApi); |
| 339 | + // (undocumented) |
| 340 | + getCtorParamTypes(ctor: Type<unknown>): unknown[]; |
| 341 | + // (undocumented) |
| 342 | + static ɵfac: i0.ɵɵFactoryDeclaration<ReflectService, never>; |
| 343 | + // (undocumented) |
| 344 | + static ɵprov: i0.ɵɵInjectableDeclaration<ReflectService>; |
| 345 | +} |
| 346 | + |
| 347 | +// (No @packageDocumentation comment for this package) |
| 348 | + |
| 349 | +``` |
0 commit comments