@lukfel/ng-scaffold 21.0.7 → 21.1.1
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/styles/_variables.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--transition: 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
3
3
|
|
|
4
|
-
--loading-overlay-z-index:
|
|
4
|
+
--loading-overlay-z-index: 1001;
|
|
5
5
|
|
|
6
6
|
--header-z-index: 100;
|
|
7
7
|
--header-height: 64px;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
--header-input-max-width: 480px;
|
|
13
13
|
--header-input-border-radius: 28px;
|
|
14
14
|
--header-menu-button-max-width: 144px;
|
|
15
|
+
--header-menu-img-size: 48px;
|
|
15
16
|
|
|
16
17
|
--navbar-z-index: 99;
|
|
17
18
|
--navbar-height: 72px;
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
|
|
27
28
|
--drawer-width: 208px;
|
|
28
29
|
--drawer-z-index: 97;
|
|
30
|
+
--drawer-z-index-mobile: 100;
|
|
29
31
|
|
|
30
32
|
--footer-height: 100px;
|
|
31
33
|
--footer-logo-size: 96px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, OnInit, OnDestroy, ElementRef, EventEmitter, AfterViewInit, ModuleWithProviders, TemplateRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { InjectionToken, OnInit, OnDestroy, ElementRef, EventEmitter, AfterViewInit, ModuleWithProviders, TemplateRef, OnChanges, SimpleChanges, Type } from '@angular/core';
|
|
3
3
|
import * as i22 from '@angular/cdk/portal';
|
|
4
|
-
import { ComponentPortal, TemplatePortal
|
|
4
|
+
import { ComponentType, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
|
|
5
5
|
import * as i11$1 from '@angular/platform-browser';
|
|
6
6
|
import * as i12$1 from '@angular/router';
|
|
7
7
|
import * as i1$1 from '@angular/common';
|
|
@@ -39,6 +39,7 @@ import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/c
|
|
|
39
39
|
|
|
40
40
|
interface MenuButton extends Button {
|
|
41
41
|
menuButtons?: Button[];
|
|
42
|
+
imgIcon?: string;
|
|
42
43
|
}
|
|
43
44
|
interface Button {
|
|
44
45
|
id: string;
|
|
@@ -86,8 +87,9 @@ interface FloatingButtonConfig {
|
|
|
86
87
|
matIcon?: string;
|
|
87
88
|
svgIcon?: string;
|
|
88
89
|
tooltip?: string;
|
|
89
|
-
horizontalPosition?: '
|
|
90
|
+
horizontalPosition?: 'center' | 'right';
|
|
90
91
|
autoHide?: boolean;
|
|
92
|
+
sticky?: boolean;
|
|
91
93
|
cssClass?: string;
|
|
92
94
|
}
|
|
93
95
|
|
|
@@ -126,7 +128,8 @@ interface HeaderConfig {
|
|
|
126
128
|
interface HeaderResponsiveConfig {
|
|
127
129
|
enable?: boolean;
|
|
128
130
|
matIcon?: string;
|
|
129
|
-
|
|
131
|
+
svgIcon?: string;
|
|
132
|
+
label?: string;
|
|
130
133
|
excludeButtonIds?: string[];
|
|
131
134
|
}
|
|
132
135
|
interface HeaderInputConfig {
|
|
@@ -181,10 +184,16 @@ interface ListHeaderItem {
|
|
|
181
184
|
sortToken?: string;
|
|
182
185
|
}
|
|
183
186
|
|
|
187
|
+
interface LoadingOverlayConfig {
|
|
188
|
+
gradient?: boolean;
|
|
189
|
+
customComponent?: ComponentType<any>;
|
|
190
|
+
cssClass?: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
184
193
|
interface NavbarConfig {
|
|
185
194
|
enable?: boolean;
|
|
186
195
|
showAllLabels?: boolean;
|
|
187
|
-
|
|
196
|
+
buttons?: Button[];
|
|
188
197
|
cssClass?: string;
|
|
189
198
|
}
|
|
190
199
|
|
|
@@ -201,6 +210,7 @@ interface ScaffoldConfig {
|
|
|
201
210
|
loading?: boolean;
|
|
202
211
|
scrollPositionRestoration?: boolean;
|
|
203
212
|
anchorScrolling?: boolean;
|
|
213
|
+
loadingOverlayConfig?: LoadingOverlayConfig;
|
|
204
214
|
headerConfig?: HeaderConfig;
|
|
205
215
|
navbarConfig?: NavbarConfig;
|
|
206
216
|
drawerConfig?: DrawerConfig;
|
|
@@ -225,6 +235,7 @@ declare class ScaffoldComponent implements OnInit, OnDestroy {
|
|
|
225
235
|
private scaffoldService;
|
|
226
236
|
private breakpointService;
|
|
227
237
|
private routerService;
|
|
238
|
+
private overlayService;
|
|
228
239
|
private logger;
|
|
229
240
|
private route;
|
|
230
241
|
private document;
|
|
@@ -269,7 +280,12 @@ declare class ScaffoldComponent implements OnInit, OnDestroy {
|
|
|
269
280
|
static ɵcmp: i0.ɵɵComponentDeclaration<ScaffoldComponent, "lf-scaffold", never, {}, { "headerButtonClickEvent": "headerButtonClickEvent"; "headerInputSubmitEvent": "headerInputSubmitEvent"; "headerInputChangeEvent": "headerInputChangeEvent"; "navbarButtonClickEvent": "navbarButtonClickEvent"; "floatingButtonClickEvent": "floatingButtonClickEvent"; "bottomBarButtonClickEvent": "bottomBarButtonClickEvent"; }, never, ["[drawerContent]", "*"], false, never>;
|
|
270
281
|
}
|
|
271
282
|
|
|
272
|
-
declare class LoadingOverlayComponent {
|
|
283
|
+
declare class LoadingOverlayComponent implements OnInit {
|
|
284
|
+
libraryConfig: ScaffoldLibraryConfig | null;
|
|
285
|
+
private scaffoldService;
|
|
286
|
+
portal: ComponentPortal<any> | null;
|
|
287
|
+
loadingOverlayConfig: LoadingOverlayConfig | null;
|
|
288
|
+
ngOnInit(): void;
|
|
273
289
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingOverlayComponent, never>;
|
|
274
290
|
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingOverlayComponent, "lf-loading-overlay", never, {}, {}, never, never, false, never>;
|
|
275
291
|
}
|
|
@@ -407,23 +423,15 @@ declare class InputComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
407
423
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "lf-input", never, { "inputConfig": { "alias": "inputConfig"; "required": false; }; "isMobile": { "alias": "isMobile"; "required": false; }; }, { "inputSubmitEvent": "inputSubmitEvent"; "inputChangeEvent": "inputChangeEvent"; "inputPrefixActionEvent": "inputPrefixActionEvent"; }, never, never, true, never>;
|
|
408
424
|
}
|
|
409
425
|
|
|
410
|
-
declare class IconComponent {
|
|
411
|
-
libraryConfig: ScaffoldLibraryConfig | null;
|
|
412
|
-
matIcon: string | undefined;
|
|
413
|
-
svgIcon: string | undefined;
|
|
414
|
-
verticalAlign: 'top' | 'middle' | 'bottom' | null;
|
|
415
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
416
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "lf-icon", never, { "matIcon": { "alias": "matIcon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "verticalAlign": { "alias": "verticalAlign"; "required": false; }; }, {}, never, never, true, never>;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
426
|
declare class ScaffoldModule {
|
|
420
427
|
static forRoot(config?: ScaffoldLibraryConfig): ModuleWithProviders<ScaffoldModule>;
|
|
421
428
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScaffoldModule, never>;
|
|
422
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScaffoldModule, [typeof ScaffoldComponent, typeof LoadingOverlayComponent, typeof HeaderComponent, typeof NavbarComponent, typeof DrawerComponent, typeof FooterComponent, typeof ContentTitleCardComponent, typeof FloatingButtonComponent, typeof ConfirmDialogComponent, typeof BottomBarComponent], [typeof i11$1.BrowserModule, typeof i12$1.RouterModule, typeof SharedModule, typeof InputComponent
|
|
429
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScaffoldModule, [typeof ScaffoldComponent, typeof LoadingOverlayComponent, typeof HeaderComponent, typeof NavbarComponent, typeof DrawerComponent, typeof FooterComponent, typeof ContentTitleCardComponent, typeof FloatingButtonComponent, typeof ConfirmDialogComponent, typeof BottomBarComponent], [typeof i11$1.BrowserModule, typeof i12$1.RouterModule, typeof SharedModule, typeof InputComponent], [typeof ScaffoldComponent]>;
|
|
423
430
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScaffoldModule>;
|
|
424
431
|
}
|
|
425
432
|
|
|
426
433
|
declare class PlaceholderComponent {
|
|
434
|
+
libraryConfig: ScaffoldLibraryConfig | null;
|
|
427
435
|
placeholderConfig: PlaceholderConfig;
|
|
428
436
|
buttonClickEvent: EventEmitter<void>;
|
|
429
437
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderComponent, never>;
|
|
@@ -431,6 +439,7 @@ declare class PlaceholderComponent {
|
|
|
431
439
|
}
|
|
432
440
|
|
|
433
441
|
declare class FileUploadComponent {
|
|
442
|
+
libraryConfig: ScaffoldLibraryConfig | null;
|
|
434
443
|
private logger;
|
|
435
444
|
fileElement: ElementRef;
|
|
436
445
|
color: 'primary' | 'accent' | 'warn';
|
|
@@ -471,6 +480,7 @@ declare class ListItemTitleDirective {
|
|
|
471
480
|
}
|
|
472
481
|
|
|
473
482
|
declare class ListComponent implements OnInit, OnChanges {
|
|
483
|
+
libraryConfig: ScaffoldLibraryConfig | null;
|
|
474
484
|
avatarTemplate?: ListItemAvatarDirective;
|
|
475
485
|
titleTemplate?: ListItemTitleDirective;
|
|
476
486
|
subtitleTemplate?: ListItemSubtitleDirective;
|
|
@@ -535,7 +545,7 @@ declare class DialogService {
|
|
|
535
545
|
* @param config of the dialog
|
|
536
546
|
* @returns an asynchronous any response
|
|
537
547
|
*/
|
|
538
|
-
openCustomDialog(templateRef:
|
|
548
|
+
openCustomDialog<T>(templateRef: Type<T>, config: MatDialogConfig): Promise<any>;
|
|
539
549
|
/**
|
|
540
550
|
* Opens a simple pre-made confirm dialog
|
|
541
551
|
*
|
|
@@ -635,6 +645,15 @@ declare class Logger {
|
|
|
635
645
|
static ɵprov: i0.ɵɵInjectableDeclaration<Logger>;
|
|
636
646
|
}
|
|
637
647
|
|
|
648
|
+
declare class OverlayService {
|
|
649
|
+
private overlay;
|
|
650
|
+
private overlayRef;
|
|
651
|
+
open<T>(component: ComponentType<T>): void;
|
|
652
|
+
close(): void;
|
|
653
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OverlayService, never>;
|
|
654
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OverlayService>;
|
|
655
|
+
}
|
|
656
|
+
|
|
638
657
|
declare class RouterService {
|
|
639
658
|
private router;
|
|
640
659
|
private platformId;
|
|
@@ -689,6 +708,8 @@ declare class SeoService {
|
|
|
689
708
|
private metaTags;
|
|
690
709
|
private document;
|
|
691
710
|
private logger;
|
|
711
|
+
private _config$;
|
|
712
|
+
get config$(): Observable<SeoConfig | null>;
|
|
692
713
|
/**
|
|
693
714
|
* Pass a configuration to set meta tags such as title, description and image for search results and social media
|
|
694
715
|
*
|
|
@@ -749,5 +770,5 @@ declare class ScaffoldLoadingInterceptor implements HttpInterceptor {
|
|
|
749
770
|
static ɵprov: i0.ɵɵInjectableDeclaration<ScaffoldLoadingInterceptor>;
|
|
750
771
|
}
|
|
751
772
|
|
|
752
|
-
export { BreakpointService, CONFIG, DialogService, FileUploadComponent, ListComponent, ListItemAvatarDirective, ListItemButtonsDirective, ListItemSubtitleDirective, ListItemTitleDirective, LocalStorageService, Logger, PlaceholderComponent, RouterService, ScaffoldComponent, ScaffoldLoadingInterceptor, ScaffoldModule, ScaffoldService, SeoService, SnackbarService, ThemeService };
|
|
753
|
-
export type { BottomBarConfig, Button, ConfirmDialogConfig, ContentTitleCardConfig, DrawerConfig, FloatingButtonConfig, FooterConfig, HeaderConfig, HeaderInputConfig, HeaderResponsiveConfig, ListConfig, ListHeader, ListItem, MenuButton, NavbarConfig, NavigationLink, PlaceholderConfig, ScaffoldConfig, ScaffoldLibraryConfig, SeoConfig };
|
|
773
|
+
export { BreakpointService, CONFIG, DialogService, FileUploadComponent, ListComponent, ListItemAvatarDirective, ListItemButtonsDirective, ListItemSubtitleDirective, ListItemTitleDirective, LocalStorageService, Logger, OverlayService, PlaceholderComponent, RouterService, ScaffoldComponent, ScaffoldLoadingInterceptor, ScaffoldModule, ScaffoldService, SeoService, SnackbarService, ThemeService };
|
|
774
|
+
export type { BottomBarConfig, Button, ConfirmDialogConfig, ContentTitleCardConfig, DrawerConfig, FloatingButtonConfig, FooterConfig, HeaderConfig, HeaderInputConfig, HeaderResponsiveConfig, ListConfig, ListHeader, ListItem, LoadingOverlayConfig, MenuButton, NavbarConfig, NavigationLink, PlaceholderConfig, ScaffoldConfig, ScaffoldLibraryConfig, SeoConfig };
|