@volo/ngx-lepton-x.core 4.3.4 → 5.0.0-rc.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.
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Input, Directive, NgModule, InjectionToken, Inject, Injectable, DOCUMENT, provideAppInitializer, inject, Optional, SkipSelf, makeEnvironmentProviders, ViewEncapsulation, Component, input, ElementRef, EventEmitter, HostListener, Output, Pipe, Injector, signal, computed, PLATFORM_ID, TemplateRef, ContentChild, SecurityContext } from '@angular/core';
3
- import { CommonModule, Location, NgClass, NgTemplateOutlet, AsyncPipe, NgComponentOutlet, isPlatformBrowser } from '@angular/common';
2
+ import { inject, ViewContainerRef, TemplateRef, Input, Directive, NgModule, InjectionToken, Injectable, DOCUMENT, provideAppInitializer, PLATFORM_ID, ChangeDetectorRef, REQUEST, makeEnvironmentProviders, ViewEncapsulation, Component, input, ElementRef, EventEmitter, HostListener, Output, Pipe, Injector, signal, computed, ContentChild, SecurityContext, makeStateKey, TransferState } from '@angular/core';
3
+ import { CommonModule, isPlatformBrowser, DOCUMENT as DOCUMENT$1, Location, NgClass, NgTemplateOutlet, AsyncPipe, NgComponentOutlet } from '@angular/common';
4
4
  import { of, from, Observable, EMPTY, BehaviorSubject, Subject, fromEvent, Subscription, combineLatest, map as map$1 } from 'rxjs';
5
5
  import { Router, NavigationEnd, RouterLink, RouterModule } from '@angular/router';
6
6
  import { map, distinctUntilChanged, filter, take, switchMap, distinctUntilKeyChanged, startWith, tap } from 'rxjs/operators';
@@ -11,15 +11,15 @@ import { FormsModule } from '@angular/forms';
11
11
  import { DomSanitizer } from '@angular/platform-browser';
12
12
 
13
13
  class LpxVisibleDirective {
14
+ constructor() {
15
+ this.viewContainerRef = inject(ViewContainerRef);
16
+ this.templateRef = inject(TemplateRef);
17
+ this.condition$ = of(false);
18
+ }
14
19
  set lpxVisible(value) {
15
20
  this.condition$ = checkType(value);
16
21
  this.subscribeToCondition();
17
22
  }
18
- constructor(viewContainerRef, templateRef) {
19
- this.viewContainerRef = viewContainerRef;
20
- this.templateRef = templateRef;
21
- this.condition$ = of(false);
22
- }
23
23
  ngOnInit() {
24
24
  this.updateVisibility();
25
25
  }
@@ -40,7 +40,7 @@ class LpxVisibleDirective {
40
40
  }
41
41
  this.viewContainerRef.createEmbeddedView(this.templateRef);
42
42
  }
43
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LpxVisibleDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
43
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LpxVisibleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
44
44
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: LpxVisibleDirective, isStandalone: true, selector: "[lpxVisible]", inputs: { lpxVisible: "lpxVisible" }, ngImport: i0 }); }
45
45
  }
46
46
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LpxVisibleDirective, decorators: [{
@@ -49,7 +49,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
49
49
  selector: '[lpxVisible]',
50
50
  standalone: true,
51
51
  }]
52
- }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }], propDecorators: { lpxVisible: [{
52
+ }], propDecorators: { lpxVisible: [{
53
53
  type: Input,
54
54
  args: ['lpxVisible']
55
55
  }] } });
@@ -135,8 +135,8 @@ class LanguageService {
135
135
  get selectedLanguage() {
136
136
  return this.store.state.selectedLanguage;
137
137
  }
138
- constructor(languages) {
139
- this.languages = languages;
138
+ constructor() {
139
+ this.languages = inject(LPX_LANGUAGE);
140
140
  this.store = new DataStore({ languages: [] });
141
141
  this.id = 'languages';
142
142
  this.convertLanguageToNavbarItem = (languages) => {
@@ -180,7 +180,7 @@ class LanguageService {
180
180
  selectedLanguage: lang,
181
181
  });
182
182
  }
183
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LanguageService, deps: [{ token: LPX_LANGUAGE }], target: i0.ɵɵFactoryTarget.Injectable }); }
183
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LanguageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
184
184
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LanguageService, providedIn: 'root' }); }
185
185
  }
186
186
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LanguageService, decorators: [{
@@ -188,19 +188,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
188
188
  args: [{
189
189
  providedIn: 'root',
190
190
  }]
191
- }], ctorParameters: () => [{ type: undefined, decorators: [{
192
- type: Inject,
193
- args: [LPX_LANGUAGE]
194
- }] }] });
191
+ }], ctorParameters: () => [] });
195
192
 
196
193
  const LPX_INITIAL_STYLES = new InjectionToken('LPX_INITIAL_STYLES_TOKEN');
197
194
  const LPX_STYLE_FINAL = new InjectionToken('LPX_STYLE_FINAL_TOKEN');
198
195
  const LPX_LAYOUT_STYLE_FINAL = new InjectionToken('LPX_LAYOUT_STYLE_FINALIZE_TOKEN');
199
196
 
200
197
  class StyleService {
201
- constructor(initialStyles, document) {
202
- this.initialStyles = initialStyles;
203
- this.document = document;
198
+ constructor() {
199
+ this.initialStyles = inject(LPX_STYLE_FINAL);
200
+ this.document = inject(DOCUMENT);
204
201
  this.lastInjectedStyle = null;
205
202
  this.initialized$ = new BehaviorSubject(false);
206
203
  }
@@ -248,7 +245,7 @@ class StyleService {
248
245
  }
249
246
  }
250
247
  createLinkElem(style, direction, resolve) {
251
- const linkElem = document.createElement('link');
248
+ const linkElem = this.document.createElement('link');
252
249
  linkElem.rel = 'stylesheet';
253
250
  linkElem.id = style.bundleName;
254
251
  linkElem.href = `${style.bundleName}${direction === 'rtl' ? '.rtl' : ''}.css`;
@@ -257,7 +254,7 @@ class StyleService {
257
254
  };
258
255
  return linkElem;
259
256
  }
260
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: StyleService, deps: [{ token: LPX_STYLE_FINAL }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
257
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: StyleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
261
258
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: StyleService, providedIn: 'root' }); }
262
259
  }
263
260
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: StyleService, decorators: [{
@@ -265,13 +262,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
265
262
  args: [{
266
263
  providedIn: 'root',
267
264
  }]
268
- }], ctorParameters: () => [{ type: undefined, decorators: [{
269
- type: Inject,
270
- args: [LPX_STYLE_FINAL]
271
- }] }, { type: Document, decorators: [{
272
- type: Inject,
273
- args: [DOCUMENT]
274
- }] }] });
265
+ }] });
275
266
 
276
267
  function createStyleFactory(handler) {
277
268
  return handler || ((defaultValue) => defaultValue);
@@ -298,13 +289,18 @@ function createDirectionProvider(listenDirection) {
298
289
  function listenDirectionChange() {
299
290
  const languageService = inject(LanguageService);
300
291
  const styleService = inject(StyleService);
292
+ const doc = inject(DOCUMENT);
293
+ const platformId = inject(PLATFORM_ID);
294
+ if (!isPlatformBrowser(platformId)) {
295
+ return Promise.resolve();
296
+ }
301
297
  return new Promise((resolve) => {
302
298
  styleService.initialized$
303
299
  .pipe(filter(Boolean), take(1), switchMap(() => languageService.languageChange$), distinctUntilKeyChanged('isRTL'))
304
300
  .subscribe(async (lang) => {
305
301
  const direction = lang?.isRTL ? 'rtl' : 'ltr';
306
- const documentElement = document.documentElement;
307
- if (documentElement.dir !== direction) {
302
+ const documentElement = (doc?.documentElement || {});
303
+ if (documentElement && documentElement.dir !== direction) {
308
304
  documentElement.dir = direction;
309
305
  }
310
306
  await styleService.reloadInitialStyles(direction);
@@ -318,18 +314,19 @@ const RESPONSIVE_BREAKPOINTS = new InjectionToken('RESPONSIVE_BREAKPOINTS');
318
314
  const WINDOW = new InjectionToken('WINDOW');
319
315
 
320
316
  class ResponsiveService {
321
- constructor(providedBreakpoints, window) {
322
- this.providedBreakpoints = providedBreakpoints;
323
- this.window = window;
317
+ constructor() {
318
+ this.providedBreakpoints = inject(RESPONSIVE_BREAKPOINTS);
319
+ this.window = inject(WINDOW);
320
+ this.platformId = inject(PLATFORM_ID);
324
321
  this.defaultBreakpoint = {
325
322
  name: "all" /* ResponsiveTokens.all */,
326
323
  width: 0,
327
324
  };
328
325
  this.breakpoints = this.buildBreakpoints(this.providedBreakpoints);
329
- this.getCurrentSize = () => ({
326
+ this.getCurrentSize = () => isPlatformBrowser(this.platformId) ? ({
330
327
  height: this.window.innerHeight,
331
328
  width: this.window.innerWidth,
332
- });
329
+ }) : ({ height: 0, width: 0 });
333
330
  this.mapSizeToBreakpoint = ({ width } = this.getCurrentSize()) => {
334
331
  return this.breakpoints.find((s) => width >= s.width);
335
332
  };
@@ -340,6 +337,8 @@ class ResponsiveService {
340
337
  this.setupListener();
341
338
  }
342
339
  setupListener() {
340
+ if (!isPlatformBrowser(this.platformId))
341
+ return;
343
342
  this.currentResolution$ = fromEvent(this.window, 'resize')
344
343
  .pipe(map(this.getCurrentSize))
345
344
  .pipe(startWith(this.getCurrentSize()));
@@ -372,7 +371,7 @@ class ResponsiveService {
372
371
  }
373
372
  return false;
374
373
  }
375
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ResponsiveService, deps: [{ token: RESPONSIVE_BREAKPOINTS }, { token: WINDOW }], target: i0.ɵɵFactoryTarget.Injectable }); }
374
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ResponsiveService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
376
375
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ResponsiveService, providedIn: 'root' }); }
377
376
  }
378
377
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ResponsiveService, decorators: [{
@@ -380,20 +379,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
380
379
  args: [{
381
380
  providedIn: 'root',
382
381
  }]
383
- }], ctorParameters: () => [{ type: undefined, decorators: [{
384
- type: Inject,
385
- args: [RESPONSIVE_BREAKPOINTS]
386
- }] }, { type: undefined, decorators: [{
387
- type: Inject,
388
- args: [WINDOW]
389
- }] }] });
382
+ }], ctorParameters: () => [] });
390
383
 
391
384
  class ResponsiveDirective {
392
- constructor(templateRef, viewContainer, service, parentCdr) {
393
- this.templateRef = templateRef;
394
- this.viewContainer = viewContainer;
395
- this.service = service;
396
- this.parentCdr = parentCdr;
385
+ constructor() {
386
+ this.templateRef = inject(TemplateRef);
387
+ this.viewContainer = inject(ViewContainerRef);
388
+ this.service = inject(ResponsiveService);
389
+ this.parentCdr = inject(ChangeDetectorRef, { optional: true, skipSelf: true });
397
390
  this.hasRendered = false;
398
391
  this.sub = new Subscription();
399
392
  this.render = (shouldRender) => {
@@ -416,17 +409,13 @@ class ResponsiveDirective {
416
409
  ngOnDestroy() {
417
410
  this.sub.unsubscribe();
418
411
  }
419
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ResponsiveDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: ResponsiveService }, { token: i0.ChangeDetectorRef, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive }); }
412
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ResponsiveDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
420
413
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: ResponsiveDirective, isStandalone: true, selector: "[lpxResponsive]", inputs: { query: ["lpxResponsive", "query"] }, ngImport: i0 }); }
421
414
  }
422
415
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ResponsiveDirective, decorators: [{
423
416
  type: Directive,
424
417
  args: [{ selector: '[lpxResponsive]' }]
425
- }], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: ResponsiveService }, { type: i0.ChangeDetectorRef, decorators: [{
426
- type: Optional
427
- }, {
428
- type: SkipSelf
429
- }] }], propDecorators: { query: [{
418
+ }], propDecorators: { query: [{
430
419
  type: Input,
431
420
  args: ['lpxResponsive']
432
421
  }] } });
@@ -591,16 +580,16 @@ function isArray(obj) {
591
580
  }
592
581
 
593
582
  class LpxThemeTranslateService {
594
- constructor(translateValues, translateService) {
595
- this.translateValues = translateValues;
596
- this.translateService = translateService;
583
+ constructor() {
584
+ this.translateValues = inject(LPX_TRANSLATE_TOKEN, { optional: true });
585
+ this.translateService = inject(LPX_TRANSLATE_SERVICE_TOKEN);
597
586
  this._content = flatArrayDeepToObject(this.translateValues);
598
587
  }
599
588
  // TODO: PROVIDE API : Implement args
600
589
  translate$(key, ...args) {
601
590
  return this.translateService.get$(key, this._content[key]);
602
591
  }
603
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LpxThemeTranslateService, deps: [{ token: LPX_TRANSLATE_TOKEN, optional: true }, { token: LPX_TRANSLATE_SERVICE_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable }); }
592
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LpxThemeTranslateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
604
593
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LpxThemeTranslateService, providedIn: 'root' }); }
605
594
  }
606
595
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LpxThemeTranslateService, decorators: [{
@@ -608,15 +597,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
608
597
  args: [{
609
598
  providedIn: 'root',
610
599
  }]
611
- }], ctorParameters: () => [{ type: Array, decorators: [{
612
- type: Optional
613
- }, {
614
- type: Inject,
615
- args: [LPX_TRANSLATE_TOKEN]
616
- }] }, { type: undefined, decorators: [{
617
- type: Inject,
618
- args: [LPX_TRANSLATE_SERVICE_TOKEN]
619
- }] }] });
600
+ }] });
620
601
 
621
602
  class DefaultTranslateService {
622
603
  get$(key, defaultValue) {
@@ -641,19 +622,19 @@ const LPX_TRANSLATE_PROVIDERS = [
641
622
  ];
642
623
 
643
624
  class DefaultAuthService {
644
- constructor(userProfileService) {
645
- this.userProfileService = userProfileService;
625
+ constructor() {
626
+ this.userProfileService = inject(UserProfileService);
646
627
  this.isUserExists$ = this.userProfileService.user$.pipe(map((user) => !!user && Object.keys(user).length > 0));
647
628
  }
648
629
  navigateToLogin() {
649
630
  return;
650
631
  }
651
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: DefaultAuthService, deps: [{ token: UserProfileService }], target: i0.ɵɵFactoryTarget.Injectable }); }
632
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: DefaultAuthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
652
633
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: DefaultAuthService }); }
653
634
  }
654
635
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: DefaultAuthService, decorators: [{
655
636
  type: Injectable
656
- }], ctorParameters: () => [{ type: UserProfileService }] });
637
+ }] });
657
638
 
658
639
  const LPX_AUTH_SERVICE_TOKEN = new InjectionToken('LPX_AUTH_SERVICE_TOKEN');
659
640
 
@@ -663,24 +644,32 @@ const LPX_AUTH_SERVICE_PROVIDER = {
663
644
  };
664
645
 
665
646
  class LpxLocalStorageService {
666
- constructor() { }
647
+ constructor() {
648
+ this.platformId = inject(PLATFORM_ID);
649
+ }
650
+ get isBrowser() {
651
+ return isPlatformBrowser(this.platformId);
652
+ }
667
653
  get length() {
668
- return localStorage.length;
654
+ return this.isBrowser ? localStorage.length : 0;
669
655
  }
670
656
  clear() {
671
- localStorage.clear();
657
+ if (this.isBrowser)
658
+ localStorage.clear();
672
659
  }
673
660
  getItem(key) {
674
- return localStorage.getItem(key);
661
+ return this.isBrowser ? localStorage.getItem(key) : null;
675
662
  }
676
663
  key(index) {
677
- return localStorage.key(index);
664
+ return this.isBrowser ? localStorage.key(index) : null;
678
665
  }
679
666
  removeItem(key) {
680
- localStorage.removeItem(key);
667
+ if (this.isBrowser)
668
+ localStorage.removeItem(key);
681
669
  }
682
670
  setItem(key, value) {
683
- localStorage.setItem(key, value);
671
+ if (this.isBrowser)
672
+ localStorage.setItem(key, value);
684
673
  }
685
674
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LpxLocalStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
686
675
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LpxLocalStorageService, providedIn: 'root' }); }
@@ -690,7 +679,105 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
690
679
  args: [{
691
680
  providedIn: 'root'
692
681
  }]
693
- }], ctorParameters: () => [] });
682
+ }] });
683
+
684
+ class LpxCookieStorageService {
685
+ constructor() {
686
+ this.platformId = inject(PLATFORM_ID);
687
+ this.document = inject(DOCUMENT$1);
688
+ this.request = inject(REQUEST);
689
+ }
690
+ get length() {
691
+ return isPlatformBrowser(this.platformId) ? this.keys().length : this.getCookiesFromRequest()?.size ?? 0;
692
+ }
693
+ clear() {
694
+ if (!isPlatformBrowser(this.platformId))
695
+ return;
696
+ this.keys().forEach(k => this.removeItem(k));
697
+ }
698
+ getItem(key) {
699
+ if (!isPlatformBrowser(this.platformId)) {
700
+ return this.getCookiesFromRequest()?.get(key) ?? null;
701
+ }
702
+ const name = key + '=';
703
+ const parts = (this.document.cookie || '').split('; ');
704
+ for (const p of parts) {
705
+ if (p.startsWith(name)) {
706
+ return decodeURIComponent(p.slice(name.length));
707
+ }
708
+ }
709
+ return null;
710
+ }
711
+ key(index) {
712
+ if (!isPlatformBrowser(this.platformId))
713
+ return null;
714
+ return this.keys()[index] ?? null;
715
+ }
716
+ removeItem(key) {
717
+ if (!isPlatformBrowser(this.platformId))
718
+ return;
719
+ this.setCookie(key, '', { 'max-age': -1, path: '/' });
720
+ }
721
+ setItem(key, value) {
722
+ if (!isPlatformBrowser(this.platformId))
723
+ return;
724
+ this.setCookie(key, encodeURIComponent(value), {
725
+ path: '/',
726
+ sameSite: 'Lax',
727
+ secure: true,
728
+ });
729
+ }
730
+ setItemWithExpiry(key, value, seconds) {
731
+ if (!isPlatformBrowser(this.platformId))
732
+ return;
733
+ this.setCookie(key, encodeURIComponent(value), {
734
+ path: '/',
735
+ sameSite: 'Lax',
736
+ secure: true,
737
+ 'max-age': Math.max(0, Math.floor(seconds)),
738
+ });
739
+ }
740
+ keys() {
741
+ const raw = (this.document.cookie || '').split('; ').filter(Boolean);
742
+ return raw
743
+ .map(c => decodeURIComponent(c.split('=')[0]));
744
+ }
745
+ setCookie(name, value, opts) {
746
+ let s = `${name}=${value}`;
747
+ if (opts.path)
748
+ s += `; Path=${opts.path}`;
749
+ if (opts.domain)
750
+ s += `; Domain=${opts.domain}`;
751
+ if (opts.sameSite)
752
+ s += `; SameSite=${opts.sameSite}`;
753
+ if (opts.secure)
754
+ s += `; Secure`;
755
+ if (opts.expires)
756
+ s += `; Expires=${opts.expires.toUTCString()}`;
757
+ if (typeof opts['max-age'] === 'number')
758
+ s += `; Max-Age=${opts['max-age']}`;
759
+ this.document.cookie = s;
760
+ }
761
+ getCookiesFromRequest() {
762
+ const cookies = new Map();
763
+ const cookieHeader = this.request?.headers.get('cookie') ?? '';
764
+ for (const part of cookieHeader.split(';')) {
765
+ const i = part.indexOf('=');
766
+ if (i > -1) {
767
+ const k = part.slice(0, i).trim();
768
+ const v = decodeURIComponent(part.slice(i + 1).trim());
769
+ cookies.set(k, v);
770
+ }
771
+ }
772
+ return cookies;
773
+ }
774
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LpxCookieStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
775
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LpxCookieStorageService, providedIn: 'root' }); }
776
+ }
777
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LpxCookieStorageService, decorators: [{
778
+ type: Injectable,
779
+ args: [{ providedIn: 'root' }]
780
+ }] });
694
781
 
695
782
  class RoutesService {
696
783
  constructor() {
@@ -724,7 +811,16 @@ function loadInitialStyles() {
724
811
  }
725
812
 
726
813
  function createWindowProvider(windowObj) {
727
- return { provide: WINDOW, useValue: windowObj || window };
814
+ return { provide: WINDOW, useFactory: () => {
815
+ if (windowObj) {
816
+ return windowObj;
817
+ }
818
+ else {
819
+ const platformId = inject(PLATFORM_ID);
820
+ return isPlatformBrowser(platformId) ? window : undefined;
821
+ }
822
+ }
823
+ };
728
824
  }
729
825
 
730
826
  const LOGO_URL_TOKEN = new InjectionToken('LOGO_URL_TOKEN');
@@ -740,6 +836,9 @@ function makeLpxLogoFeature(kind, providers) {
740
836
  ɵproviders: providers,
741
837
  };
742
838
  }
839
+ /***
840
+ * @deprecated please use the same `withEnvironmentOptions()` **function** that is imported from `@abp/ng.theme.shared` instead.
841
+ */
743
842
  function withEnvironmentOptions(options = {}) {
744
843
  const { name, logoUrl } = options.application || {};
745
844
  return makeLpxLogoFeature(LpxLogoFeatureKind.Options, [
@@ -753,6 +852,9 @@ function withEnvironmentOptions(options = {}) {
753
852
  },
754
853
  ]);
755
854
  }
855
+ /***
856
+ * @deprecated please use the same`provideLogo()` **function** that is imported from `@abp/ng.theme.shared` instead.
857
+ */
756
858
  function provideLogo(...features) {
757
859
  const providers = [];
758
860
  features.forEach(({ ɵproviders }) => providers.push(...ɵproviders));
@@ -1297,16 +1399,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
1297
1399
  }] });
1298
1400
 
1299
1401
  class LogoPanelDirective {
1300
- constructor(template) {
1301
- this.template = template;
1402
+ constructor() {
1403
+ this.template = inject(TemplateRef);
1302
1404
  }
1303
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LogoPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1405
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LogoPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1304
1406
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: LogoPanelDirective, isStandalone: true, selector: "ng-template[lpx-logo-panel]", ngImport: i0 }); }
1305
1407
  }
1306
1408
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LogoPanelDirective, decorators: [{
1307
1409
  type: Directive,
1308
1410
  args: [{ selector: 'ng-template[lpx-logo-panel]' }]
1309
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
1411
+ }] });
1310
1412
 
1311
1413
  class TranslatePipe {
1312
1414
  constructor() {
@@ -1713,9 +1815,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
1713
1815
  }]
1714
1816
  }] });
1715
1817
 
1818
+ const DEFAULT_FOOTER_DATA = {
1819
+ brandName: 'Lepton Theme',
1820
+ brandUrl: 'https://leptontheme.com/',
1821
+ authorName: 'Volosoft',
1822
+ authorUrl: 'https://volosoft.com/',
1823
+ links: [
1824
+ { text: 'About', link: '' },
1825
+ { text: 'Privacy', link: '' },
1826
+ { text: 'Contact', link: '' }
1827
+ ]
1828
+ };
1716
1829
  class FooterLinksService {
1717
1830
  constructor() {
1718
- this.store = new DataStore({});
1831
+ this.store = new DataStore(DEFAULT_FOOTER_DATA);
1719
1832
  this.footerInfo$ = this.store.sliceState((state) => state);
1720
1833
  }
1721
1834
  setFooterInfo(links) {
@@ -1735,13 +1848,14 @@ class FooterComponent {
1735
1848
  constructor() {
1736
1849
  this.service = inject(FooterLinksService);
1737
1850
  this.footerValues$ = this.service.footerInfo$;
1851
+ this.currentYear = new Date().getFullYear();
1738
1852
  }
1739
1853
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1740
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.7", type: FooterComponent, isStandalone: true, selector: "lpx-footer", ngImport: i0, template: "@if (footerValues$ | async; as footerValues) {\r\n <div class=\"lpx-footbar\">\r\n <div class=\"lpx-footbar-copyright\">\r\n @if (footerValues.descUrl) {\r\n <a [routerLink]=\"[footerValues.descUrl]\"> {{ footerValues.desc }}</a>\r\n } @else {\r\n <a> {{ footerValues.desc }}</a>\r\n }\r\n </div>\r\n <div class=\"lpx-footbar-solo-links\">\r\n @for (footerLink of footerValues.footerLinks; track $index) {\r\n @if (footerLink) {\r\n <a [routerLink]=\"[footerLink.link]\">{{ footerLink.text }}</a>\r\n }\r\n }\r\n </div>\r\n </div>\r\n}\r\n", dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: AsyncPipe, name: "async" }] }); }
1854
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.7", type: FooterComponent, isStandalone: true, selector: "lpx-footer", ngImport: i0, template: "@if (footerValues$ | async; as footerValues) {\r\n <div class=\"lpx-footbar\">\r\n <div class=\"lpx-footbar-copyright\">\r\n @if (footerValues.brandUrl) {\r\n <span>{{ currentYear }}\u00A9 </span>\r\n <a [href]=\"[footerValues.brandUrl]\" target=\"_blank\"> {{ footerValues.brandName }} </a>\r\n <span>by</span>\r\n }\r\n @if (footerValues.authorUrl) {\r\n <a [href]=\"[footerValues.authorUrl]\" target=\"_blank\"> {{ footerValues.authorName }}</a>\r\n }\r\n </div>\r\n <div class=\"lpx-footbar-solo-links\">\r\n @for (footerLink of footerValues.links; track $index) {\r\n @if (footerLink) {\r\n <a [href]=\"[footerLink.link]\" >{{ footerLink.text }}</a>\r\n }\r\n }\r\n </div>\r\n </div>\r\n}\r\n", dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }] }); }
1741
1855
  }
1742
1856
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: FooterComponent, decorators: [{
1743
1857
  type: Component,
1744
- args: [{ selector: 'lpx-footer', imports: [RouterLink, AsyncPipe], template: "@if (footerValues$ | async; as footerValues) {\r\n <div class=\"lpx-footbar\">\r\n <div class=\"lpx-footbar-copyright\">\r\n @if (footerValues.descUrl) {\r\n <a [routerLink]=\"[footerValues.descUrl]\"> {{ footerValues.desc }}</a>\r\n } @else {\r\n <a> {{ footerValues.desc }}</a>\r\n }\r\n </div>\r\n <div class=\"lpx-footbar-solo-links\">\r\n @for (footerLink of footerValues.footerLinks; track $index) {\r\n @if (footerLink) {\r\n <a [routerLink]=\"[footerLink.link]\">{{ footerLink.text }}</a>\r\n }\r\n }\r\n </div>\r\n </div>\r\n}\r\n" }]
1858
+ args: [{ selector: 'lpx-footer', imports: [AsyncPipe], template: "@if (footerValues$ | async; as footerValues) {\r\n <div class=\"lpx-footbar\">\r\n <div class=\"lpx-footbar-copyright\">\r\n @if (footerValues.brandUrl) {\r\n <span>{{ currentYear }}\u00A9 </span>\r\n <a [href]=\"[footerValues.brandUrl]\" target=\"_blank\"> {{ footerValues.brandName }} </a>\r\n <span>by</span>\r\n }\r\n @if (footerValues.authorUrl) {\r\n <a [href]=\"[footerValues.authorUrl]\" target=\"_blank\"> {{ footerValues.authorName }}</a>\r\n }\r\n </div>\r\n <div class=\"lpx-footbar-solo-links\">\r\n @for (footerLink of footerValues.links; track $index) {\r\n @if (footerLink) {\r\n <a [href]=\"[footerLink.link]\" >{{ footerLink.text }}</a>\r\n }\r\n }\r\n </div>\r\n </div>\r\n}\r\n" }]
1745
1859
  }] });
1746
1860
 
1747
1861
  class LpxFooterModule {
@@ -1887,173 +2001,189 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
1887
2001
  }]
1888
2002
  }] });
1889
2003
 
2004
+ const LPX_SSR_FLAG = makeStateKey('SSR_FLAG');
2005
+ const LPX_APP_STARTED_WITH_SSR = new InjectionToken('LPX_APP_STARTED_WITH_SSR', {
2006
+ providedIn: 'root',
2007
+ factory: () => {
2008
+ const platformId = inject(PLATFORM_ID);
2009
+ const cookieService = inject(LpxCookieStorageService);
2010
+ if (!isPlatformBrowser(platformId))
2011
+ return true;
2012
+ const ts = inject(TransferState);
2013
+ const ssrEnabled = cookieService.getItem('ssr-init');
2014
+ // Remove the cookie after reading its value because it's only needed once
2015
+ cookieService.removeItem('ssr-init');
2016
+ return ts.get(LPX_SSR_FLAG, false) || ssrEnabled === 'true';
2017
+ },
2018
+ });
2019
+
1890
2020
  class BreadcrumbPanelDirective {
1891
- constructor(template) {
1892
- this.template = template;
2021
+ constructor() {
2022
+ this.template = inject(TemplateRef);
1893
2023
  }
1894
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BreadcrumbPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2024
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BreadcrumbPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1895
2025
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: BreadcrumbPanelDirective, isStandalone: true, selector: "ng-template[lpx-breadcrumb-panel]", ngImport: i0 }); }
1896
2026
  }
1897
2027
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BreadcrumbPanelDirective, decorators: [{
1898
2028
  type: Directive,
1899
2029
  args: [{ selector: 'ng-template[lpx-breadcrumb-panel]' }]
1900
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2030
+ }] });
1901
2031
 
1902
2032
  class ContentPanelDirective {
1903
- constructor(template) {
1904
- this.template = template;
2033
+ constructor() {
2034
+ this.template = inject(TemplateRef);
1905
2035
  }
1906
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ContentPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2036
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ContentPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1907
2037
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: ContentPanelDirective, isStandalone: true, selector: "ng-template[lpx-content]", ngImport: i0 }); }
1908
2038
  }
1909
2039
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ContentPanelDirective, decorators: [{
1910
2040
  type: Directive,
1911
2041
  args: [{ selector: 'ng-template[lpx-content]' }]
1912
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2042
+ }] });
1913
2043
 
1914
2044
  class CurrentUserImagePanelDirective {
1915
- constructor(template) {
1916
- this.template = template;
2045
+ constructor() {
2046
+ this.template = inject(TemplateRef);
1917
2047
  }
1918
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CurrentUserImagePanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2048
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CurrentUserImagePanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1919
2049
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: CurrentUserImagePanelDirective, isStandalone: true, selector: "ng-template[lpx-current-user-image-panel]", ngImport: i0 }); }
1920
2050
  }
1921
2051
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CurrentUserImagePanelDirective, decorators: [{
1922
2052
  type: Directive,
1923
2053
  args: [{ selector: 'ng-template[lpx-current-user-image-panel]' }]
1924
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2054
+ }] });
1925
2055
 
1926
2056
  class CurrentUserPanelDirective {
1927
- constructor(template) {
1928
- this.template = template;
2057
+ constructor() {
2058
+ this.template = inject(TemplateRef);
1929
2059
  }
1930
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CurrentUserPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2060
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CurrentUserPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1931
2061
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: CurrentUserPanelDirective, isStandalone: true, selector: "ng-template[lpx-current-user-panel]", ngImport: i0 }); }
1932
2062
  }
1933
2063
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CurrentUserPanelDirective, decorators: [{
1934
2064
  type: Directive,
1935
2065
  args: [{ selector: 'ng-template[lpx-current-user-panel]' }]
1936
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2066
+ }] });
1937
2067
 
1938
2068
  class FooterPanelDirective {
1939
- constructor(template) {
1940
- this.template = template;
2069
+ constructor() {
2070
+ this.template = inject(TemplateRef);
1941
2071
  }
1942
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: FooterPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2072
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: FooterPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1943
2073
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: FooterPanelDirective, isStandalone: true, selector: "ng-template[lpx-footer-panel]", ngImport: i0 }); }
1944
2074
  }
1945
2075
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: FooterPanelDirective, decorators: [{
1946
2076
  type: Directive,
1947
2077
  args: [{ selector: 'ng-template[lpx-footer-panel]' }]
1948
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2078
+ }] });
1949
2079
 
1950
2080
  class LanguagePanelDirective {
1951
- constructor(template) {
1952
- this.template = template;
2081
+ constructor() {
2082
+ this.template = inject(TemplateRef);
1953
2083
  }
1954
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LanguagePanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2084
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LanguagePanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1955
2085
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: LanguagePanelDirective, isStandalone: true, selector: "ng-template[lpx-language-panel]", ngImport: i0 }); }
1956
2086
  }
1957
2087
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LanguagePanelDirective, decorators: [{
1958
2088
  type: Directive,
1959
2089
  args: [{ selector: 'ng-template[lpx-language-panel]', }]
1960
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2090
+ }] });
1961
2091
 
1962
2092
  class MobileNavbarPanelDirective {
1963
- constructor(template) {
1964
- this.template = template;
2093
+ constructor() {
2094
+ this.template = inject(TemplateRef);
1965
2095
  }
1966
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: MobileNavbarPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2096
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: MobileNavbarPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1967
2097
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: MobileNavbarPanelDirective, isStandalone: true, selector: "ng-template[lpx-mobile-navbar-panel]", ngImport: i0 }); }
1968
2098
  }
1969
2099
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: MobileNavbarPanelDirective, decorators: [{
1970
2100
  type: Directive,
1971
2101
  args: [{ selector: 'ng-template[lpx-mobile-navbar-panel]', }]
1972
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2102
+ }] });
1973
2103
 
1974
2104
  class MobileNavbarSettingsPanelDirective {
1975
- constructor(template) {
1976
- this.template = template;
2105
+ constructor() {
2106
+ this.template = inject(TemplateRef);
1977
2107
  }
1978
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: MobileNavbarSettingsPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2108
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: MobileNavbarSettingsPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1979
2109
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: MobileNavbarSettingsPanelDirective, isStandalone: true, selector: "ng-template[lpx-mobile-navbar-settings-panel]", ngImport: i0 }); }
1980
2110
  }
1981
2111
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: MobileNavbarSettingsPanelDirective, decorators: [{
1982
2112
  type: Directive,
1983
2113
  args: [{ selector: 'ng-template[lpx-mobile-navbar-settings-panel]', }]
1984
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2114
+ }] });
1985
2115
 
1986
2116
  class MobileNavbarProfilePanelDirective {
1987
- constructor(template) {
1988
- this.template = template;
2117
+ constructor() {
2118
+ this.template = inject(TemplateRef);
1989
2119
  }
1990
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: MobileNavbarProfilePanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2120
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: MobileNavbarProfilePanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1991
2121
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: MobileNavbarProfilePanelDirective, isStandalone: true, selector: "ng-template[lpx-mobile-navbar-profile-panel]", ngImport: i0 }); }
1992
2122
  }
1993
2123
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: MobileNavbarProfilePanelDirective, decorators: [{
1994
2124
  type: Directive,
1995
2125
  args: [{ selector: 'ng-template[lpx-mobile-navbar-profile-panel]', }]
1996
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2126
+ }] });
1997
2127
 
1998
2128
  class NavbarPanelDirective {
1999
- constructor(template) {
2000
- this.template = template;
2129
+ constructor() {
2130
+ this.template = inject(TemplateRef);
2001
2131
  }
2002
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NavbarPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2132
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NavbarPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2003
2133
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: NavbarPanelDirective, isStandalone: true, selector: "ng-template[lpx-navbar-panel]", ngImport: i0 }); }
2004
2134
  }
2005
2135
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NavbarPanelDirective, decorators: [{
2006
2136
  type: Directive,
2007
2137
  args: [{ selector: 'ng-template[lpx-navbar-panel]', }]
2008
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2138
+ }] });
2009
2139
 
2010
2140
  class NavitemPanelDirective {
2011
- constructor(template) {
2012
- this.template = template;
2141
+ constructor() {
2142
+ this.template = inject(TemplateRef);
2013
2143
  }
2014
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NavitemPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2144
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NavitemPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2015
2145
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: NavitemPanelDirective, isStandalone: true, selector: "ng-template[lpx-navitem-panel]", ngImport: i0 }); }
2016
2146
  }
2017
2147
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NavitemPanelDirective, decorators: [{
2018
2148
  type: Directive,
2019
2149
  args: [{ selector: 'ng-template[lpx-navitem-panel]', }]
2020
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2150
+ }] });
2021
2151
 
2022
2152
  class ToolbarPanelDirective {
2023
- constructor(template) {
2024
- this.template = template;
2153
+ constructor() {
2154
+ this.template = inject(TemplateRef);
2025
2155
  }
2026
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ToolbarPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2156
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ToolbarPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2027
2157
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: ToolbarPanelDirective, isStandalone: true, selector: "ng-template[lpx-toolbar-panel]", ngImport: i0 }); }
2028
2158
  }
2029
2159
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ToolbarPanelDirective, decorators: [{
2030
2160
  type: Directive,
2031
2161
  args: [{ selector: 'ng-template[lpx-toolbar-panel]', }]
2032
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2162
+ }] });
2033
2163
 
2034
2164
  class TopNavbarPanelDirective {
2035
- constructor(template) {
2036
- this.template = template;
2165
+ constructor() {
2166
+ this.template = inject(TemplateRef);
2037
2167
  }
2038
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: TopNavbarPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2168
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: TopNavbarPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2039
2169
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: TopNavbarPanelDirective, isStandalone: true, selector: "ng-template[lpx-top-navbar-panel]", ngImport: i0 }); }
2040
2170
  }
2041
2171
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: TopNavbarPanelDirective, decorators: [{
2042
2172
  type: Directive,
2043
2173
  args: [{ selector: 'ng-template[lpx-top-navbar-panel]', }]
2044
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2174
+ }] });
2045
2175
 
2046
2176
  class SettingsPanelDirective {
2047
- constructor(template) {
2048
- this.template = template;
2177
+ constructor() {
2178
+ this.template = inject(TemplateRef);
2049
2179
  }
2050
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: SettingsPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2180
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: SettingsPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2051
2181
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: SettingsPanelDirective, isStandalone: true, selector: "ng-template[lpx-settings-panel]", ngImport: i0 }); }
2052
2182
  }
2053
2183
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: SettingsPanelDirective, decorators: [{
2054
2184
  type: Directive,
2055
2185
  args: [{ selector: 'ng-template[lpx-settings-panel]', }]
2056
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2186
+ }] });
2057
2187
 
2058
2188
  const declarationsAndExports = [
2059
2189
  BreadcrumbPanelDirective,
@@ -2155,5 +2285,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
2155
2285
  * Generated bundle index. Do not edit.
2156
2286
  */
2157
2287
 
2158
- export { AvatarComponent, BodyService, BrandLogoComponent, BreadcrumbComponent, BreadcrumbPanelDirective, BreadcrumbRouteListenerService, BreadcrumbService, CONTENT_AFTER_ROUTES, CONTENT_BEFORE_ROUTES, ClickOutsideDirective, ContentPanelDirective, CurrentUserImagePanelDirective, CurrentUserPanelDirective, DataStore, DefaultAuthService, DefaultTranslateService, FooterComponent, FooterLinksService, FooterPanelDirective, ICON_MAP, IconComponent, LEPTON_X_ICON_SET, LOGO_APP_NAME_TOKEN, LOGO_URL_TOKEN, LPX_AUTH_SERVICE_PROVIDER, LPX_AUTH_SERVICE_TOKEN, LPX_INITIAL_STYLES, LPX_LANGUAGE, LPX_LAYOUT_STYLE_FINAL, LPX_MENU_ITEMS, LPX_RESPONSIVE_BREAKPOINTS_DEFAULTS, LPX_STYLE_FINAL, LPX_STYLE_PROVIDERS, LPX_TRANSLATE_PROVIDERS, LPX_TRANSLATE_SERVICE_PROVIDER, LPX_TRANSLATE_SERVICE_TOKEN, LPX_TRANSLATE_TOKEN, LanguagePanelDirective, LanguageService, LanguageTranslateDefaults, LanguageTranslateKeys, LayoutService, Layouts, LogoPanelDirective, LpxAvatarModule, LpxBrandLogoModule, LpxBreadcrumbModule, LpxClickOutsideModule, LpxCoreFeatureKind, LpxCoreModule, LpxFooterModule, LpxIconModule, LpxLanguageModule, LpxLocalStorageService, LpxLogoFeatureKind, LpxNavbarModule, LpxResponsiveModule, LpxThemeTranslateService, LpxTranslateModule, LpxVisibleDirective, MobileNavbarPanelDirective, MobileNavbarProfilePanelDirective, MobileNavbarSettingsPanelDirective, NavbarComponent, NavbarPanelDirective, NavbarRoutesComponent, NavbarRoutesDirective, NavbarService, NavitemPanelDirective, OTHERS_GROUP_KEY, PanelsModule, RESPONSIVE_BREAKPOINTS, ResponsiveDirective, ResponsiveService, RoutesService, SKIP_DEFAULTS, SafeHtmlPipe, SettingsPanelDirective, StyleService, SubNavbarComponent, ToObservableModule, ToObservablePipe, ToolbarPanelDirective, ToolbarService, TopNavbarPanelDirective, TranslatePipe, UserProfileService, WINDOW, createDirectionProvider, createGroupMap, createResponsiveProvider, createStyleFactory, createWindowProvider, exportedDeclarations$1 as exportedDeclarations, flatArrayDeepToObject, getItemsFromGroup, getStream$, isArray, isNullOrUndefined, listenDirectionChange, loadInitialStyles, provideLogo, provideLpxBreadcrumb, provideLpxCore, sortItems, styleLoadFactory, withEnvironmentOptions, withIcon, withLanguage, withLpxCoreOptions, withNavbar, withNavbarChild };
2288
+ export { AvatarComponent, BodyService, BrandLogoComponent, BreadcrumbComponent, BreadcrumbPanelDirective, BreadcrumbRouteListenerService, BreadcrumbService, CONTENT_AFTER_ROUTES, CONTENT_BEFORE_ROUTES, ClickOutsideDirective, ContentPanelDirective, CurrentUserImagePanelDirective, CurrentUserPanelDirective, DataStore, DefaultAuthService, DefaultTranslateService, FooterComponent, FooterLinksService, FooterPanelDirective, ICON_MAP, IconComponent, LEPTON_X_ICON_SET, LPX_APP_STARTED_WITH_SSR, LPX_AUTH_SERVICE_PROVIDER, LPX_AUTH_SERVICE_TOKEN, LPX_INITIAL_STYLES, LPX_LANGUAGE, LPX_LAYOUT_STYLE_FINAL, LPX_MENU_ITEMS, LPX_RESPONSIVE_BREAKPOINTS_DEFAULTS, LPX_SSR_FLAG, LPX_STYLE_FINAL, LPX_STYLE_PROVIDERS, LPX_TRANSLATE_PROVIDERS, LPX_TRANSLATE_SERVICE_PROVIDER, LPX_TRANSLATE_SERVICE_TOKEN, LPX_TRANSLATE_TOKEN, LanguagePanelDirective, LanguageService, LanguageTranslateDefaults, LanguageTranslateKeys, LayoutService, Layouts, LogoPanelDirective, LpxAvatarModule, LpxBrandLogoModule, LpxBreadcrumbModule, LpxClickOutsideModule, LpxCookieStorageService, LpxCoreFeatureKind, LpxCoreModule, LpxFooterModule, LpxIconModule, LpxLanguageModule, LpxLocalStorageService, LpxLogoFeatureKind, LpxNavbarModule, LpxResponsiveModule, LpxThemeTranslateService, LpxTranslateModule, LpxVisibleDirective, MobileNavbarPanelDirective, MobileNavbarProfilePanelDirective, MobileNavbarSettingsPanelDirective, NavbarComponent, NavbarPanelDirective, NavbarRoutesComponent, NavbarRoutesDirective, NavbarService, NavitemPanelDirective, OTHERS_GROUP_KEY, PanelsModule, RESPONSIVE_BREAKPOINTS, ResponsiveDirective, ResponsiveService, RoutesService, SKIP_DEFAULTS, SafeHtmlPipe, SettingsPanelDirective, StyleService, SubNavbarComponent, ToObservableModule, ToObservablePipe, ToolbarPanelDirective, ToolbarService, TopNavbarPanelDirective, TranslatePipe, UserProfileService, WINDOW, createDirectionProvider, createGroupMap, createResponsiveProvider, createStyleFactory, createWindowProvider, exportedDeclarations$1 as exportedDeclarations, flatArrayDeepToObject, getItemsFromGroup, getStream$, isArray, isNullOrUndefined, listenDirectionChange, loadInitialStyles, provideLogo, provideLpxBreadcrumb, provideLpxCore, sortItems, styleLoadFactory, withEnvironmentOptions, withIcon, withLanguage, withLpxCoreOptions, withNavbar, withNavbarChild };
2159
2289
  //# sourceMappingURL=volo-ngx-lepton-x.core.mjs.map