@sneat/core 0.26.0 → 0.26.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.
@@ -27,10 +27,10 @@ export class SneatSelectAllOnFocusDirective {
27
27
  }
28
28
  }
29
29
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SneatSelectAllOnFocusDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
31
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: SneatSelectAllOnFocusDirective, isStandalone: true, selector: "[sneatSelectAllOnFocus]", host: { listeners: { "focus": "selectAll($event.target)" } }, ngImport: i0 }); }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SneatSelectAllOnFocusDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
31
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: SneatSelectAllOnFocusDirective, isStandalone: true, selector: "[sneatSelectAllOnFocus]", host: { listeners: { "focus": "selectAll($event.target)" } }, ngImport: i0 }); }
32
32
  }
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SneatSelectAllOnFocusDirective, decorators: [{
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SneatSelectAllOnFocusDirective, decorators: [{
34
34
  type: Directive,
35
35
  args: [{
36
36
  selector: '[sneatSelectAllOnFocus]',
@@ -19,10 +19,10 @@ export class RoutingState {
19
19
  hasHistory() {
20
20
  return this.history.length > 1;
21
21
  }
22
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: RoutingState, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
23
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: RoutingState, providedIn: 'root' }); }
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: RoutingState, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
23
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: RoutingState, providedIn: 'root' }); }
24
24
  }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: RoutingState, decorators: [{
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: RoutingState, decorators: [{
26
26
  type: Injectable,
27
27
  args: [{ providedIn: 'root' }]
28
28
  }], ctorParameters: () => [] });
@@ -96,10 +96,10 @@ export class NgModulePreloaderService {
96
96
  // ms,
97
97
  // );
98
98
  }
99
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NgModulePreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
100
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NgModulePreloaderService, providedIn: 'root' }); }
99
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NgModulePreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
100
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NgModulePreloaderService, providedIn: 'root' }); }
101
101
  }
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NgModulePreloaderService, decorators: [{
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NgModulePreloaderService, decorators: [{
103
103
  type: Injectable,
104
104
  args: [{
105
105
  providedIn: 'root',
@@ -1,7 +1,7 @@
1
1
  import { Location } from '@angular/common';
2
2
  import { Injectable, inject } from '@angular/core';
3
3
  import { NavigationEnd, Router, } from '@angular/router';
4
- import { NavController } from '@ionic/angular/standalone';
4
+ import { NavController } from '@ionic/angular';
5
5
  import * as i0 from "@angular/core";
6
6
  export class SneatNavService {
7
7
  constructor() {
@@ -29,10 +29,10 @@ export class SneatNavService {
29
29
  .catch((err) => console.error('SneatNavService.goBack() - failed to navigate', err));
30
30
  }
31
31
  }
32
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SneatNavService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
33
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SneatNavService, providedIn: 'root' }); }
32
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SneatNavService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
33
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SneatNavService, providedIn: 'root' }); }
34
34
  }
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SneatNavService, decorators: [{
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SneatNavService, decorators: [{
36
36
  type: Injectable,
37
37
  args: [{
38
38
  providedIn: 'root',
@@ -1 +1 @@
1
- {"version":3,"file":"sneat-nav.service.js","sourceRoot":"","sources":["../../../../../../libs/core/src/lib/services/sneat-nav.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU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Injectable, inject } from '@angular/core';\nimport {\n NavigationBehaviorOptions,\n NavigationEnd,\n Router,\n UrlTree,\n} from '@angular/router';\nimport { NavController } from '@ionic/angular/standalone';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class SneatNavService {\n private readonly router = inject(Router);\n private readonly location = inject(Location);\n private readonly navController = inject(NavController);\n\n private previous?: NavigationEnd;\n\n constructor() {\n const router = this.router;\n\n router.events.subscribe((event) => {\n if (event instanceof NavigationEnd) {\n this.previous = event;\n }\n });\n }\n\n goBack(url: string | UrlTree, extras?: NavigationBehaviorOptions): void {\n if (this.previous) {\n this.navController.pop().then((isPopped) => {\n if (!isPopped) {\n this.location.back();\n }\n });\n } else {\n this.router\n .navigateByUrl(url, extras)\n .catch((err) =>\n console.error('SneatNavService.goBack() - failed to navigate', err),\n );\n }\n }\n}\n"]}
1
+ {"version":3,"file":"sneat-nav.service.js","sourceRoot":"","sources":["../../../../../../libs/core/src/lib/services/sneat-nav.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAEL,aAAa,EACb,MAAM,GAEP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;;AAK/C,MAAM,OAAO,eAAe;IAO1B;QANiB,WAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QACxB,aAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC5B,kBAAa,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;QAKrD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAE3B,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE;YAChC,IAAI,KAAK,YAAY,aAAa,EAAE,CAAC;gBACnC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;YACxB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,GAAqB,EAAE,MAAkC;QAC9D,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACzC,IAAI,CAAC,QAAQ,EAAE,CAAC;oBACd,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;gBACvB,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM;iBACR,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC;iBAC1B,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CACb,OAAO,CAAC,KAAK,CAAC,+CAA+C,EAAE,GAAG,CAAC,CACpE,CAAC;QACN,CAAC;IACH,CAAC;8GA/BU,eAAe;kHAAf,eAAe,cAFd,MAAM;;2FAEP,eAAe;kBAH3B,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB","sourcesContent":["import { Location } from '@angular/common';\nimport { Injectable, inject } from '@angular/core';\nimport {\n NavigationBehaviorOptions,\n NavigationEnd,\n Router,\n UrlTree,\n} from '@angular/router';\nimport { NavController } from '@ionic/angular';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class SneatNavService {\n private readonly router = inject(Router);\n private readonly location = inject(Location);\n private readonly navController = inject(NavController);\n\n private previous?: NavigationEnd;\n\n constructor() {\n const router = this.router;\n\n router.events.subscribe((event) => {\n if (event instanceof NavigationEnd) {\n this.previous = event;\n }\n });\n }\n\n goBack(url: string | UrlTree, extras?: NavigationBehaviorOptions): void {\n if (this.previous) {\n this.navController.pop().then((isPopped) => {\n if (!isPopped) {\n this.location.back();\n }\n });\n } else {\n this.router\n .navigateByUrl(url, extras)\n .catch((err) =>\n console.error('SneatNavService.goBack() - failed to navigate', err),\n );\n }\n }\n}\n"]}
@@ -13,10 +13,10 @@ export class TopMenuService {
13
13
  this.$isTopMenuHidden.next(!visible);
14
14
  };
15
15
  }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TopMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
17
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TopMenuService, providedIn: 'root' }); }
16
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TopMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
17
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TopMenuService, providedIn: 'root' }); }
18
18
  }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TopMenuService, decorators: [{
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TopMenuService, decorators: [{
20
20
  type: Injectable,
21
21
  args: [{
22
22
  providedIn: 'root',
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@sneat/core",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "peerDependencies": {
8
- "@angular/animations": ">=21.0.0",
9
- "@angular/common": ">=21.0.0",
10
- "@angular/core": ">=21.0.0",
11
- "@angular/router": ">=21.0.0",
12
- "@ionic/angular": ">=8.0.0",
8
+ "@angular/animations": ">=22.0.0 <23.0.0",
9
+ "@angular/common": ">=22.0.0 <23.0.0",
10
+ "@angular/core": ">=22.0.0 <23.0.0",
11
+ "@angular/router": ">=22.0.0 <23.0.0",
12
+ "@ionic/angular": ">=9.0.0 <10.0.0",
13
13
  "@sneat/core-public": "^0.26.0",
14
14
  "rxjs": ">=7.8.0"
15
15
  },
@@ -27,5 +27,6 @@
27
27
  "default": "./esm2022/sneat-core.js"
28
28
  }
29
29
  },
30
- "sideEffects": false
30
+ "sideEffects": false,
31
+ "type": "module"
31
32
  }