raise-common-lib 0.0.48 → 0.0.50
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/bundles/raise-common-lib.umd.js +76 -32
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +1 -1
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/form/drawer-form/drawer-form.component.js +22 -1
- package/esm2015/lib/layout/drawer/index.component.js +37 -24
- package/esm2015/lib/service/drawer.service.js +1 -1
- package/esm2015/lib/service/keep-alive.service.js +4 -7
- package/esm5/lib/form/drawer-form/drawer-form.component.js +29 -1
- package/esm5/lib/layout/drawer/index.component.js +46 -27
- package/esm5/lib/service/drawer.service.js +1 -1
- package/esm5/lib/service/keep-alive.service.js +4 -7
- package/fesm2015/raise-common-lib.js +60 -29
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +76 -32
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/form/drawer-form/drawer-form.component.d.ts +1 -0
- package/lib/layout/drawer/index.component.d.ts +12 -4
- package/lib/service/drawer.service.d.ts +1 -0
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
|
@@ -35,6 +35,7 @@ export declare class DrawerFormComponent implements OnInit, OnChanges, AfterView
|
|
|
35
35
|
ngAfterViewInit(): void;
|
|
36
36
|
customTemplateRender(containers: QueryList<ViewContainerRef>): void;
|
|
37
37
|
customSectionRender(containers: QueryList<ViewContainerRef>): void;
|
|
38
|
+
checkFormChange(previous: Record<string, any>, current: Record<string, any>): void;
|
|
38
39
|
formatForm(sections: SectionItem[]): void;
|
|
39
40
|
updateForm(value: any, field: FieldItem): void;
|
|
40
41
|
formItemValidator(field: FieldItem, isAuto?: boolean): boolean;
|
|
@@ -1,26 +1,34 @@
|
|
|
1
|
-
import { ComponentFactoryResolver, ElementRef } from "@angular/core";
|
|
1
|
+
import { ComponentFactoryResolver, ComponentRef, ElementRef } from "@angular/core";
|
|
2
2
|
import { BehaviorSubject } from "rxjs";
|
|
3
3
|
import { DrawerConfig, DrawerService } from "../../service/drawer.service";
|
|
4
|
+
declare type DrawerComponentCache = {
|
|
5
|
+
ref: ComponentRef<any>;
|
|
6
|
+
config: DrawerConfig;
|
|
7
|
+
toolbarEl: HTMLElement;
|
|
8
|
+
headerEl: HTMLElement;
|
|
9
|
+
};
|
|
4
10
|
export declare class DrawerComponent {
|
|
5
11
|
private resolver;
|
|
6
12
|
private service;
|
|
7
13
|
element: ElementRef<HTMLDivElement>;
|
|
8
14
|
toolbar: ElementRef<HTMLDivElement>;
|
|
15
|
+
header: ElementRef<HTMLDivElement>;
|
|
9
16
|
private container;
|
|
10
17
|
config: DrawerConfig;
|
|
11
18
|
useTransition: "yes" | "no";
|
|
12
19
|
$isOpened: BehaviorSubject<boolean>;
|
|
13
|
-
showToolbarContainer: boolean;
|
|
14
20
|
private componentRefMap;
|
|
15
21
|
constructor(resolver: ComponentFactoryResolver, service: DrawerService);
|
|
16
22
|
private createDynamicComponent;
|
|
17
23
|
private destroyDynamicComponent;
|
|
18
24
|
private setComponentData;
|
|
19
|
-
private
|
|
20
|
-
private
|
|
25
|
+
private getSlotElement;
|
|
26
|
+
private setSlotElement;
|
|
27
|
+
setCache(cache: DrawerComponentCache): void;
|
|
21
28
|
show<T>(component: new (...args: any[]) => T, config: DrawerConfig, data: Record<string, any>): T;
|
|
22
29
|
hide(): void;
|
|
23
30
|
back(): void;
|
|
24
31
|
deleteCache(cacheKey: string): void;
|
|
25
32
|
onRouteChange(): void;
|
|
26
33
|
}
|
|
34
|
+
export {};
|