@sneat/core 0.26.0 → 0.26.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.
- package/esm2022/lib/directives/sneat-select-all-on-focus.directive.js +3 -3
- package/esm2022/lib/nav/routing-state.js +3 -3
- package/esm2022/lib/services/ng-module-preloader.service.js +3 -3
- package/esm2022/lib/services/sneat-nav.service.js +4 -4
- package/esm2022/lib/services/sneat-nav.service.js.map +1 -1
- package/esm2022/lib/services/top-menu.service.js +3 -3
- package/esm2022/lib/team-type.js +6 -2
- package/esm2022/lib/team-type.js.map +1 -1
- package/package.json +8 -7
- package/tsconfig.lib.prod.tsbuildinfo +1 -1
|
@@ -27,10 +27,10 @@ export class SneatSelectAllOnFocusDirective {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
31
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
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: "
|
|
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: "
|
|
23
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
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: "
|
|
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: "
|
|
100
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
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: "
|
|
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
|
|
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: "
|
|
33
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
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: "
|
|
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,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAEL,aAAa,EACb,MAAM,GAEP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
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: "
|
|
17
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
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: "
|
|
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/esm2022/lib/team-type.js
CHANGED
|
@@ -14,8 +14,12 @@ const concreteSpaceTypes = new Set([
|
|
|
14
14
|
'realtor',
|
|
15
15
|
'sport_club',
|
|
16
16
|
'cohabit',
|
|
17
|
-
//
|
|
18
|
-
|
|
17
|
+
// Backend types this set was missing (decision 0006): a space/club URL
|
|
18
|
+
// segment must parse as its real type. community-center is retired — a
|
|
19
|
+
// centre registers as company.
|
|
20
|
+
'club',
|
|
21
|
+
'space',
|
|
22
|
+
'spot',
|
|
19
23
|
]);
|
|
20
24
|
/** Returns whether a value is a concrete space type accepted at an external boundary. */
|
|
21
25
|
export function isSpaceType(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team-type.js","sourceRoot":"","sources":["../../../../../libs/core/src/lib/team-type.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC;AACxC,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAC;AAC5C,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAEtC,2EAA2E;AAC3E,iFAAiF;AACjF,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAgC;IAChE,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,SAAS;IACT,MAAM;IACN,QAAQ;IACR,UAAU;IACV,SAAS;IACT,YAAY;IACZ,SAAS;IACT,
|
|
1
|
+
{"version":3,"file":"team-type.js","sourceRoot":"","sources":["../../../../../libs/core/src/lib/team-type.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC;AACxC,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAC;AAC5C,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAEtC,2EAA2E;AAC3E,iFAAiF;AACjF,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAgC;IAChE,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,SAAS;IACT,MAAM;IACN,QAAQ;IACR,UAAU;IACV,SAAS;IACT,YAAY;IACZ,SAAS;IACT,uEAAuE;IACvE,uEAAuE;IACvE,+BAA+B;IAC/B,MAAM;IACN,OAAO;IACP,MAAM;CACP,CAAC,CAAC;AAEH,yFAAyF;AACzF,MAAM,UAAU,WAAW,CACzB,KAAc;IAEd,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,kBAAkB,CAAC,GAAG,CAAC,KAAsC,CAAC,CAC/D,CAAC;AACJ,CAAC;AAED,gEAAgE;AAChE,MAAM,UAAU,cAAc,CAAC,KAAc;IAC3C,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAChD,CAAC","sourcesContent":["import { SpaceType } from '@sneat/core-public';\n\nexport type { SpaceType } from '@sneat/core-public';\n\nexport const SpaceTypeFamily = 'family';\nexport const SpaceTypePersonal = 'personal';\nexport const SpaceTypeGroup = 'group';\n\n// A restricted-visibility space type may be introduced later if a real use\n// case arises; it was intentionally left out to avoid confusion with 'personal'.\nconst concreteSpaceTypes = new Set<Exclude<SpaceType, 'unknown'>>([\n SpaceTypeFamily,\n SpaceTypePersonal,\n SpaceTypeGroup,\n 'company',\n 'team',\n 'parish',\n 'educator',\n 'realtor',\n 'sport_club',\n 'cohabit',\n // Backend types this set was missing (decision 0006): a space/club URL\n // segment must parse as its real type. community-center is retired — a\n // centre registers as company.\n 'club',\n 'space',\n 'spot',\n]);\n\n/** Returns whether a value is a concrete space type accepted at an external boundary. */\nexport function isSpaceType(\n value: unknown,\n): value is Exclude<SpaceType, 'unknown'> {\n return (\n typeof value === 'string' &&\n concreteSpaceTypes.has(value as Exclude<SpaceType, 'unknown'>)\n );\n}\n\n/** Parses a concrete space type from untyped external input. */\nexport function parseSpaceType(value: unknown): Exclude<SpaceType, 'unknown'> | undefined {\n return isSpaceType(value) ? value : undefined;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sneat/core",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@angular/animations": ">=
|
|
9
|
-
"@angular/common": ">=
|
|
10
|
-
"@angular/core": ">=
|
|
11
|
-
"@angular/router": ">=
|
|
12
|
-
"@ionic/angular": ">=
|
|
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
|
}
|