@volo/ngx-lepton-x.core 4.3.6 → 5.0.0-rc.2

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() {
@@ -1735,9 +1837,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
1735
1837
  }]
1736
1838
  }] });
1737
1839
 
1840
+ const DEFAULT_FOOTER_DATA = {
1841
+ brandName: 'Lepton Theme',
1842
+ brandUrl: 'https://leptontheme.com/',
1843
+ authorName: 'Volosoft',
1844
+ authorUrl: 'https://volosoft.com/',
1845
+ links: [
1846
+ { text: 'About', link: '' },
1847
+ { text: 'Privacy', link: '' },
1848
+ { text: 'Contact', link: '' }
1849
+ ]
1850
+ };
1738
1851
  class FooterLinksService {
1739
1852
  constructor() {
1740
- this.store = new DataStore({});
1853
+ this.store = new DataStore(DEFAULT_FOOTER_DATA);
1741
1854
  this.footerInfo$ = this.store.sliceState((state) => state);
1742
1855
  }
1743
1856
  setFooterInfo(links) {
@@ -1757,13 +1870,14 @@ class FooterComponent {
1757
1870
  constructor() {
1758
1871
  this.service = inject(FooterLinksService);
1759
1872
  this.footerValues$ = this.service.footerInfo$;
1873
+ this.currentYear = new Date().getFullYear();
1760
1874
  }
1761
1875
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1762
- 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" }] }); }
1876
+ 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" }] }); }
1763
1877
  }
1764
1878
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: FooterComponent, decorators: [{
1765
1879
  type: Component,
1766
- 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" }]
1880
+ 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" }]
1767
1881
  }] });
1768
1882
 
1769
1883
  class LpxFooterModule {
@@ -1909,173 +2023,189 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
1909
2023
  }]
1910
2024
  }] });
1911
2025
 
2026
+ const LPX_SSR_FLAG = makeStateKey('SSR_FLAG');
2027
+ const LPX_APP_STARTED_WITH_SSR = new InjectionToken('LPX_APP_STARTED_WITH_SSR', {
2028
+ providedIn: 'root',
2029
+ factory: () => {
2030
+ const platformId = inject(PLATFORM_ID);
2031
+ const cookieService = inject(LpxCookieStorageService);
2032
+ if (!isPlatformBrowser(platformId))
2033
+ return true;
2034
+ const ts = inject(TransferState);
2035
+ const ssrEnabled = cookieService.getItem('ssr-init');
2036
+ // Remove the cookie after reading its value because it's only needed once
2037
+ cookieService.removeItem('ssr-init');
2038
+ return ts.get(LPX_SSR_FLAG, false) || ssrEnabled === 'true';
2039
+ },
2040
+ });
2041
+
1912
2042
  class BreadcrumbPanelDirective {
1913
- constructor(template) {
1914
- this.template = template;
2043
+ constructor() {
2044
+ this.template = inject(TemplateRef);
1915
2045
  }
1916
- 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 }); }
2046
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BreadcrumbPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1917
2047
  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 }); }
1918
2048
  }
1919
2049
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BreadcrumbPanelDirective, decorators: [{
1920
2050
  type: Directive,
1921
2051
  args: [{ selector: 'ng-template[lpx-breadcrumb-panel]' }]
1922
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2052
+ }] });
1923
2053
 
1924
2054
  class ContentPanelDirective {
1925
- constructor(template) {
1926
- this.template = template;
2055
+ constructor() {
2056
+ this.template = inject(TemplateRef);
1927
2057
  }
1928
- 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 }); }
2058
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ContentPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1929
2059
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: ContentPanelDirective, isStandalone: true, selector: "ng-template[lpx-content]", ngImport: i0 }); }
1930
2060
  }
1931
2061
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ContentPanelDirective, decorators: [{
1932
2062
  type: Directive,
1933
2063
  args: [{ selector: 'ng-template[lpx-content]' }]
1934
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2064
+ }] });
1935
2065
 
1936
2066
  class CurrentUserImagePanelDirective {
1937
- constructor(template) {
1938
- this.template = template;
2067
+ constructor() {
2068
+ this.template = inject(TemplateRef);
1939
2069
  }
1940
- 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 }); }
2070
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CurrentUserImagePanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1941
2071
  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 }); }
1942
2072
  }
1943
2073
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CurrentUserImagePanelDirective, decorators: [{
1944
2074
  type: Directive,
1945
2075
  args: [{ selector: 'ng-template[lpx-current-user-image-panel]' }]
1946
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2076
+ }] });
1947
2077
 
1948
2078
  class CurrentUserPanelDirective {
1949
- constructor(template) {
1950
- this.template = template;
2079
+ constructor() {
2080
+ this.template = inject(TemplateRef);
1951
2081
  }
1952
- 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 }); }
2082
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CurrentUserPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1953
2083
  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 }); }
1954
2084
  }
1955
2085
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CurrentUserPanelDirective, decorators: [{
1956
2086
  type: Directive,
1957
2087
  args: [{ selector: 'ng-template[lpx-current-user-panel]' }]
1958
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2088
+ }] });
1959
2089
 
1960
2090
  class FooterPanelDirective {
1961
- constructor(template) {
1962
- this.template = template;
2091
+ constructor() {
2092
+ this.template = inject(TemplateRef);
1963
2093
  }
1964
- 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 }); }
2094
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: FooterPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1965
2095
  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 }); }
1966
2096
  }
1967
2097
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: FooterPanelDirective, decorators: [{
1968
2098
  type: Directive,
1969
2099
  args: [{ selector: 'ng-template[lpx-footer-panel]' }]
1970
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2100
+ }] });
1971
2101
 
1972
2102
  class LanguagePanelDirective {
1973
- constructor(template) {
1974
- this.template = template;
2103
+ constructor() {
2104
+ this.template = inject(TemplateRef);
1975
2105
  }
1976
- 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 }); }
2106
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LanguagePanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1977
2107
  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 }); }
1978
2108
  }
1979
2109
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LanguagePanelDirective, decorators: [{
1980
2110
  type: Directive,
1981
2111
  args: [{ selector: 'ng-template[lpx-language-panel]', }]
1982
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2112
+ }] });
1983
2113
 
1984
2114
  class MobileNavbarPanelDirective {
1985
- constructor(template) {
1986
- this.template = template;
2115
+ constructor() {
2116
+ this.template = inject(TemplateRef);
1987
2117
  }
1988
- 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 }); }
2118
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: MobileNavbarPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1989
2119
  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 }); }
1990
2120
  }
1991
2121
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: MobileNavbarPanelDirective, decorators: [{
1992
2122
  type: Directive,
1993
2123
  args: [{ selector: 'ng-template[lpx-mobile-navbar-panel]', }]
1994
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2124
+ }] });
1995
2125
 
1996
2126
  class MobileNavbarSettingsPanelDirective {
1997
- constructor(template) {
1998
- this.template = template;
2127
+ constructor() {
2128
+ this.template = inject(TemplateRef);
1999
2129
  }
2000
- 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 }); }
2130
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: MobileNavbarSettingsPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2001
2131
  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 }); }
2002
2132
  }
2003
2133
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: MobileNavbarSettingsPanelDirective, decorators: [{
2004
2134
  type: Directive,
2005
2135
  args: [{ selector: 'ng-template[lpx-mobile-navbar-settings-panel]', }]
2006
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2136
+ }] });
2007
2137
 
2008
2138
  class MobileNavbarProfilePanelDirective {
2009
- constructor(template) {
2010
- this.template = template;
2139
+ constructor() {
2140
+ this.template = inject(TemplateRef);
2011
2141
  }
2012
- 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 }); }
2142
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: MobileNavbarProfilePanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2013
2143
  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 }); }
2014
2144
  }
2015
2145
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: MobileNavbarProfilePanelDirective, decorators: [{
2016
2146
  type: Directive,
2017
2147
  args: [{ selector: 'ng-template[lpx-mobile-navbar-profile-panel]', }]
2018
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2148
+ }] });
2019
2149
 
2020
2150
  class NavbarPanelDirective {
2021
- constructor(template) {
2022
- this.template = template;
2151
+ constructor() {
2152
+ this.template = inject(TemplateRef);
2023
2153
  }
2024
- 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 }); }
2154
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NavbarPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2025
2155
  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 }); }
2026
2156
  }
2027
2157
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NavbarPanelDirective, decorators: [{
2028
2158
  type: Directive,
2029
2159
  args: [{ selector: 'ng-template[lpx-navbar-panel]', }]
2030
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2160
+ }] });
2031
2161
 
2032
2162
  class NavitemPanelDirective {
2033
- constructor(template) {
2034
- this.template = template;
2163
+ constructor() {
2164
+ this.template = inject(TemplateRef);
2035
2165
  }
2036
- 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 }); }
2166
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NavitemPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2037
2167
  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 }); }
2038
2168
  }
2039
2169
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NavitemPanelDirective, decorators: [{
2040
2170
  type: Directive,
2041
2171
  args: [{ selector: 'ng-template[lpx-navitem-panel]', }]
2042
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2172
+ }] });
2043
2173
 
2044
2174
  class ToolbarPanelDirective {
2045
- constructor(template) {
2046
- this.template = template;
2175
+ constructor() {
2176
+ this.template = inject(TemplateRef);
2047
2177
  }
2048
- 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 }); }
2178
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ToolbarPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2049
2179
  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 }); }
2050
2180
  }
2051
2181
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ToolbarPanelDirective, decorators: [{
2052
2182
  type: Directive,
2053
2183
  args: [{ selector: 'ng-template[lpx-toolbar-panel]', }]
2054
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2184
+ }] });
2055
2185
 
2056
2186
  class TopNavbarPanelDirective {
2057
- constructor(template) {
2058
- this.template = template;
2187
+ constructor() {
2188
+ this.template = inject(TemplateRef);
2059
2189
  }
2060
- 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 }); }
2190
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: TopNavbarPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2061
2191
  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 }); }
2062
2192
  }
2063
2193
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: TopNavbarPanelDirective, decorators: [{
2064
2194
  type: Directive,
2065
2195
  args: [{ selector: 'ng-template[lpx-top-navbar-panel]', }]
2066
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2196
+ }] });
2067
2197
 
2068
2198
  class SettingsPanelDirective {
2069
- constructor(template) {
2070
- this.template = template;
2199
+ constructor() {
2200
+ this.template = inject(TemplateRef);
2071
2201
  }
2072
- 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 }); }
2202
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: SettingsPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2073
2203
  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 }); }
2074
2204
  }
2075
2205
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: SettingsPanelDirective, decorators: [{
2076
2206
  type: Directive,
2077
2207
  args: [{ selector: 'ng-template[lpx-settings-panel]', }]
2078
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
2208
+ }] });
2079
2209
 
2080
2210
  const declarationsAndExports = [
2081
2211
  BreadcrumbPanelDirective,
@@ -2177,5 +2307,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
2177
2307
  * Generated bundle index. Do not edit.
2178
2308
  */
2179
2309
 
2180
- 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 };
2310
+ 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 };
2181
2311
  //# sourceMappingURL=volo-ngx-lepton-x.core.mjs.map