@posiwise/shared-components 0.0.130 → 0.0.132
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/esm2022/lib/demo-cards/demo-cards.component.mjs +18 -14
- package/esm2022/lib/lazy-loading.service.mjs +111 -0
- package/esm2022/lib/permission-tree/permission-tree.component.mjs +2 -2
- package/esm2022/lib/resource-header/resource-header.component.mjs +22 -17
- package/esm2022/lib/shared-components.module.mjs +5 -3
- package/fesm2022/posiwise-shared-components.mjs +178 -53
- package/fesm2022/posiwise-shared-components.mjs.map +1 -1
- package/lib/demo-cards/demo-cards.component.d.ts +3 -1
- package/lib/lazy-loading.service.d.ts +55 -0
- package/lib/resource-header/resource-header.component.d.ts +3 -1
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { Injector, OnInit, TemplateRef } from '@angular/core';
|
|
|
2
2
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
3
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
4
4
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
5
|
+
import { AuthService } from '@posiwise/common-services';
|
|
5
6
|
import { User } from '@posiwise/common-utilities';
|
|
6
7
|
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
7
8
|
import { CustomUploaderComponent } from '../custom-uploader/custom-uploader.component';
|
|
@@ -9,6 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
9
10
|
export declare class DemoCardsComponent extends AppBaseComponent implements OnInit {
|
|
10
11
|
private readonly sanitizer;
|
|
11
12
|
private readonly modalService;
|
|
13
|
+
private readonly authService;
|
|
12
14
|
private readonly adminService;
|
|
13
15
|
bookingLinks: any;
|
|
14
16
|
editingBookingLinks: any[];
|
|
@@ -17,7 +19,7 @@ export declare class DemoCardsComponent extends AppBaseComponent implements OnIn
|
|
|
17
19
|
userLoggedIn: boolean;
|
|
18
20
|
user: User;
|
|
19
21
|
editBookLinksModal: TemplateRef<CustomUploaderComponent>;
|
|
20
|
-
constructor(sanitizer: DomSanitizer, modalService: NgbModal, adminService: AdminService, injector: Injector);
|
|
22
|
+
constructor(sanitizer: DomSanitizer, modalService: NgbModal, authService: AuthService, adminService: AdminService, injector: Injector);
|
|
21
23
|
ngOnInit(): void;
|
|
22
24
|
openEditBookLinks(modal: any): void;
|
|
23
25
|
addBookingLink(): void;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LazyLoadingService {
|
|
5
|
+
/**
|
|
6
|
+
* Lazy load the Image Cropper component
|
|
7
|
+
*/
|
|
8
|
+
loadImageCropper(): Observable<Type<any>>;
|
|
9
|
+
/**
|
|
10
|
+
* Lazy load the Date Range Picker component
|
|
11
|
+
*/
|
|
12
|
+
loadDateRangePicker(): Observable<Type<any>>;
|
|
13
|
+
/**
|
|
14
|
+
* Lazy load the Date Range Picker module
|
|
15
|
+
*/
|
|
16
|
+
loadDateRangePickerModule(): Observable<any>;
|
|
17
|
+
/**
|
|
18
|
+
* Lazy load the Image Cropper module
|
|
19
|
+
*/
|
|
20
|
+
loadImageCropperModule(): Observable<any>;
|
|
21
|
+
/**
|
|
22
|
+
* Lazy load PrimeNG components with static imports to avoid webpack warnings
|
|
23
|
+
*/
|
|
24
|
+
loadPrimeNGComponent(componentName: string): Observable<Type<any>>;
|
|
25
|
+
/**
|
|
26
|
+
* Lazy load Quill Editor
|
|
27
|
+
*/
|
|
28
|
+
loadQuillEditor(): Observable<any>;
|
|
29
|
+
/**
|
|
30
|
+
* Lazy load Emoji Picker
|
|
31
|
+
*/
|
|
32
|
+
loadEmojiPicker(): Observable<any>;
|
|
33
|
+
/**
|
|
34
|
+
* Lazy load FontAwesome
|
|
35
|
+
*/
|
|
36
|
+
loadFontAwesome(): Observable<any>;
|
|
37
|
+
/**
|
|
38
|
+
* Lazy load Sentry (using the correct package)
|
|
39
|
+
*/
|
|
40
|
+
loadSentry(): Observable<any>;
|
|
41
|
+
/**
|
|
42
|
+
* Lazy load Heavy Utilities (Lodash, Crypto-js, Moment)
|
|
43
|
+
*/
|
|
44
|
+
loadHeavyUtils(): Observable<any>;
|
|
45
|
+
/**
|
|
46
|
+
* Lazy load Crypto Utils
|
|
47
|
+
*/
|
|
48
|
+
loadCryptoUtils(): Observable<any>;
|
|
49
|
+
/**
|
|
50
|
+
* Lazy load Moment
|
|
51
|
+
*/
|
|
52
|
+
loadMoment(): Observable<any>;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LazyLoadingService, never>;
|
|
54
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LazyLoadingService>;
|
|
55
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ElementRef, Injector, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
3
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
|
+
import { AuthService } from '@posiwise/common-services';
|
|
4
5
|
import { User } from '@posiwise/common-utilities';
|
|
5
6
|
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
6
7
|
import { CustomUploaderComponent } from '../custom-uploader/custom-uploader.component';
|
|
@@ -8,6 +9,7 @@ import * as i0 from "@angular/core";
|
|
|
8
9
|
export declare class ResourceHeaderComponent extends AppBaseComponent implements OnInit {
|
|
9
10
|
private readonly document;
|
|
10
11
|
private readonly adminService;
|
|
12
|
+
private readonly authService;
|
|
11
13
|
private readonly modalService;
|
|
12
14
|
navbarCollapse: ElementRef;
|
|
13
15
|
editNavbarModal: TemplateRef<CustomUploaderComponent>;
|
|
@@ -26,7 +28,7 @@ export declare class ResourceHeaderComponent extends AppBaseComponent implements
|
|
|
26
28
|
userLoggedIn: boolean;
|
|
27
29
|
user: User;
|
|
28
30
|
scrollTimeout: any;
|
|
29
|
-
constructor(injector: Injector, document: Document, adminService: AdminService, modalService: NgbModal);
|
|
31
|
+
constructor(injector: Injector, document: Document, adminService: AdminService, authService: AuthService, modalService: NgbModal);
|
|
30
32
|
ngOnInit(): void;
|
|
31
33
|
openLogoEditModal(): void;
|
|
32
34
|
onSaveLogo(event: any): void;
|