@solcre-org/core-ui 2.11.13 → 2.11.14
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/fesm2022/solcre-org-core-ui.mjs +180 -15
- package/fesm2022/solcre-org-core-ui.mjs.map +1 -1
- package/index.d.ts +67 -33
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { TemplateRef, AfterViewInit, OnDestroy, ElementRef, OnInit, SimpleChanges, OnChanges, Type, ViewContainerRef, RendererFactory2, Signal, InjectionToken, Provider } from '@angular/core';
|
|
2
|
+
import { TemplateRef, AfterViewInit, OnDestroy, ElementRef, OnInit, SimpleChanges, OnChanges, Type, ViewContainerRef, AfterViewChecked, RendererFactory2, Signal, InjectionToken, Provider } from '@angular/core';
|
|
3
3
|
import { ValidatorFn, FormControl, FormGroup } from '@angular/forms';
|
|
4
4
|
import { DataBaseModelInterface } from '@solcre-org/core';
|
|
5
5
|
import { NgSelectComponent } from '@ng-select/ng-select';
|
|
@@ -2268,36 +2268,6 @@ declare class SidebarMobileModalService {
|
|
|
2268
2268
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SidebarMobileModalService>;
|
|
2269
2269
|
}
|
|
2270
2270
|
|
|
2271
|
-
interface SidebarCustomModalConfig {
|
|
2272
|
-
component?: Type<any>;
|
|
2273
|
-
template?: TemplateRef<any>;
|
|
2274
|
-
data?: any;
|
|
2275
|
-
onClose?: () => void;
|
|
2276
|
-
closeOnBackdrop?: boolean;
|
|
2277
|
-
customClass?: string;
|
|
2278
|
-
}
|
|
2279
|
-
|
|
2280
|
-
declare class SidebarCustomModalService {
|
|
2281
|
-
private isOpen;
|
|
2282
|
-
private currentConfig;
|
|
2283
|
-
private componentRef;
|
|
2284
|
-
private viewContainerRef;
|
|
2285
|
-
getIsOpen(): _angular_core.WritableSignal<boolean>;
|
|
2286
|
-
getCurrentConfig(): _angular_core.WritableSignal<SidebarCustomModalConfig | null>;
|
|
2287
|
-
setViewContainerRef(vcr: ViewContainerRef): void;
|
|
2288
|
-
openComponentModal(component: Type<any>, data?: any, config?: Partial<SidebarCustomModalConfig>): void;
|
|
2289
|
-
openTemplateModal(template: TemplateRef<any>, data?: any, config?: Partial<SidebarCustomModalConfig>): void;
|
|
2290
|
-
closeModal(): void;
|
|
2291
|
-
onBackdropClick(): void;
|
|
2292
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarCustomModalService, never>;
|
|
2293
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SidebarCustomModalService>;
|
|
2294
|
-
}
|
|
2295
|
-
|
|
2296
|
-
declare enum SidebarPosition {
|
|
2297
|
-
LEFT = "left",
|
|
2298
|
-
RIGHT = "right"
|
|
2299
|
-
}
|
|
2300
|
-
|
|
2301
2271
|
interface DateFieldConfig {
|
|
2302
2272
|
showCalendarIcon?: boolean;
|
|
2303
2273
|
}
|
|
@@ -2445,6 +2415,15 @@ interface SidebarComponentEvents {
|
|
|
2445
2415
|
subItemClicked?: (subItem: SidebarSubItem) => void;
|
|
2446
2416
|
}
|
|
2447
2417
|
|
|
2418
|
+
interface SidebarCustomModalConfig {
|
|
2419
|
+
component?: Type<any>;
|
|
2420
|
+
template?: TemplateRef<any>;
|
|
2421
|
+
data?: any;
|
|
2422
|
+
closeOnBackdrop?: boolean;
|
|
2423
|
+
customClass?: string;
|
|
2424
|
+
onClose?: () => void;
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2448
2427
|
interface AdditionalPermissionResources {
|
|
2449
2428
|
[key: string]: string;
|
|
2450
2429
|
}
|
|
@@ -2496,6 +2475,55 @@ interface RatingSubmitEvent {
|
|
|
2496
2475
|
endpoint?: string;
|
|
2497
2476
|
}
|
|
2498
2477
|
|
|
2478
|
+
type ComponentLoader = () => Promise<{
|
|
2479
|
+
[key: string]: any;
|
|
2480
|
+
}>;
|
|
2481
|
+
declare class SidebarCustomModalService {
|
|
2482
|
+
private isOpen;
|
|
2483
|
+
private currentConfig;
|
|
2484
|
+
private componentRef;
|
|
2485
|
+
private viewContainerRef;
|
|
2486
|
+
private componentRegistry;
|
|
2487
|
+
openComponent(componentPath: string, data?: any, customClass?: string, onClose?: () => void): Promise<void>;
|
|
2488
|
+
private loadComponentByConvention;
|
|
2489
|
+
private loadComponentByPath;
|
|
2490
|
+
private createModalFromModule;
|
|
2491
|
+
openModal(componentPath: string, data?: any, options?: {
|
|
2492
|
+
customClass?: string;
|
|
2493
|
+
onClose?: () => void;
|
|
2494
|
+
}): Promise<void>;
|
|
2495
|
+
openLazyModal(lazyImport: () => Promise<any>, data?: any, options?: {
|
|
2496
|
+
customClass?: string;
|
|
2497
|
+
onClose?: () => void;
|
|
2498
|
+
}): Promise<void>;
|
|
2499
|
+
openDirectModal(component: Type<any>, data?: any, options?: {
|
|
2500
|
+
customClass?: string;
|
|
2501
|
+
onClose?: () => void;
|
|
2502
|
+
}): void;
|
|
2503
|
+
registerComponent(name: string, loader: ComponentLoader): void;
|
|
2504
|
+
openRegisteredComponent(componentName: string, data?: any, customClass?: string, onClose?: () => void): Promise<void>;
|
|
2505
|
+
getRegisteredComponents(): string[];
|
|
2506
|
+
registerAndOpenComponent(name: string, importPath: string, data?: any, customClass?: string, onClose?: () => void): Promise<void>;
|
|
2507
|
+
getIsOpen(): _angular_core.WritableSignal<boolean>;
|
|
2508
|
+
getCurrentConfig(): _angular_core.WritableSignal<SidebarCustomModalConfig | null>;
|
|
2509
|
+
setViewContainerRef(vcr: ViewContainerRef): void;
|
|
2510
|
+
resetViewContainerRef(): void;
|
|
2511
|
+
openComponentModal(component: Type<any>, data?: any, config?: Partial<SidebarCustomModalConfig>): void;
|
|
2512
|
+
private createComponentWhenReady;
|
|
2513
|
+
createComponentInstance(component: Type<any>, data?: any): void;
|
|
2514
|
+
openTemplateModal(template: TemplateRef<any>, data?: any, config?: Partial<SidebarCustomModalConfig>): void;
|
|
2515
|
+
closeModal(): void;
|
|
2516
|
+
openDynamicComponentModal(importPath: string, componentName: string, data?: any, config?: Partial<SidebarCustomModalConfig>): Promise<void>;
|
|
2517
|
+
onBackdropClick(): void;
|
|
2518
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarCustomModalService, never>;
|
|
2519
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SidebarCustomModalService>;
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
declare enum SidebarPosition {
|
|
2523
|
+
LEFT = "left",
|
|
2524
|
+
RIGHT = "right"
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2499
2527
|
declare class GenericSidebarComponent implements OnInit {
|
|
2500
2528
|
private sidebarService;
|
|
2501
2529
|
private templateRegistry;
|
|
@@ -2555,10 +2583,16 @@ declare class GenericSidebarComponent implements OnInit {
|
|
|
2555
2583
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GenericSidebarComponent, "core-generic-sidebar", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "customTemplate": { "alias": "customTemplate"; "required": false; "isSignal": true; }; }, { "itemClicked": "itemClicked"; "subItemClicked": "subItemClicked"; }, never, never, true, [{ directive: typeof CoreHostDirective; inputs: {}; outputs: {}; }]>;
|
|
2556
2584
|
}
|
|
2557
2585
|
|
|
2558
|
-
declare class SidebarCustomModalComponent implements
|
|
2586
|
+
declare class SidebarCustomModalComponent implements AfterViewInit, AfterViewChecked, OnDestroy {
|
|
2559
2587
|
modalService: SidebarCustomModalService;
|
|
2588
|
+
private cdr;
|
|
2560
2589
|
dynamicComponent: ViewContainerRef;
|
|
2561
|
-
|
|
2590
|
+
private hasInitializedViewContainerRef;
|
|
2591
|
+
private currentModalState;
|
|
2592
|
+
constructor();
|
|
2593
|
+
ngAfterViewInit(): void;
|
|
2594
|
+
ngAfterViewChecked(): void;
|
|
2595
|
+
private setupViewContainerRefIfAvailable;
|
|
2562
2596
|
ngOnDestroy(): void;
|
|
2563
2597
|
getCurrentConfig(): _solcre_org_core_ui.SidebarCustomModalConfig | null;
|
|
2564
2598
|
getModalClasses(): string;
|