@sneat/space-components 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/avatar/avatar.component.js +10 -10
- package/esm2022/lib/avatar/avatar.component.js.map +1 -1
- package/esm2022/lib/space-base-component.directive.js +20 -12
- package/esm2022/lib/space-base-component.directive.js.map +1 -1
- package/esm2022/lib/space-component-base-params.service.js +3 -3
- package/esm2022/lib/space-item-page-base.component.js +4 -2
- package/esm2022/lib/space-item-page-base.component.js.map +1 -1
- package/esm2022/lib/space-menu/space-menu.component.js +12 -9
- package/esm2022/lib/space-menu/space-menu.component.js.map +1 -1
- package/esm2022/lib/space-page-base-component.service.js +3 -3
- package/esm2022/lib/space-page-title/space-page-title.component.js +19 -16
- package/esm2022/lib/space-page-title/space-page-title.component.js.map +1 -1
- package/esm2022/lib/spaces-card/spaces-card.component.js +40 -16
- package/esm2022/lib/spaces-card/spaces-card.component.js.map +1 -1
- package/esm2022/lib/spaces-list/spaces-list.component.js +17 -20
- package/esm2022/lib/spaces-list/spaces-list.component.js.map +1 -1
- package/esm2022/lib/spaces-menu/spaces-menu.component.js +20 -18
- package/esm2022/lib/spaces-menu/spaces-menu.component.js.map +1 -1
- package/lib/avatar/avatar.component.d.ts +2 -2
- package/lib/space-base-component.directive.d.ts +1 -1
- package/lib/space-page-title/space-page-title.component.d.ts +4 -4
- package/lib/spaces-card/spaces-card.component.d.ts +17 -1
- package/lib/spaces-list/spaces-list.component.d.ts +5 -5
- package/lib/spaces-menu/spaces-menu.component.d.ts +3 -3
- package/package.json +6 -5
- package/tsconfig.lib.prod.tsbuildinfo +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IAvatar } from '@sneat/auth-models';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class AvatarComponent {
|
|
4
|
-
avatar
|
|
4
|
+
readonly avatar: import("@angular/core").InputSignal<IAvatar | undefined>;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "sneat-avatar", never, { "avatar": { "alias": "avatar"; "required": true; }; }, {}, never, never, true, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "sneat-avatar", never, { "avatar": { "alias": "avatar"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, ParamMap } from '@angular/router';
|
|
3
|
-
import { NavController } from '@ionic/angular
|
|
3
|
+
import { NavController } from '@ionic/angular';
|
|
4
4
|
import { ILogger, ISpaceRef, SpaceType } from '@sneat/core';
|
|
5
5
|
import { ISpaceBrief, ISpaceDbo } from '@sneat/dto';
|
|
6
6
|
import { ISpaceContext } from '@sneat/space-models';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ISpaceContext } from '@sneat/space-models';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SpacePageTitleComponent {
|
|
4
|
-
icon
|
|
5
|
-
generalTitle
|
|
4
|
+
readonly icon: import("@angular/core").InputSignal<string | undefined>;
|
|
5
|
+
readonly generalTitle: import("@angular/core").InputSignal<string | undefined>;
|
|
6
6
|
space?: ISpaceContext;
|
|
7
|
-
titlesBySpaceType
|
|
7
|
+
readonly titlesBySpaceType: import("@angular/core").InputSignal<Record<string, string> | undefined>;
|
|
8
8
|
get typeTitle(): string;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpacePageTitleComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpacePageTitleComponent, "sneat-space-page-title", never, { "icon": { "alias": "icon"; "required": false; }; "generalTitle": { "alias": "generalTitle"; "required": false; }; "space": { "alias": "space"; "required": true; }; "titlesBySpaceType": { "alias": "titlesBySpaceType"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpacePageTitleComponent, "sneat-space-page-title", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "generalTitle": { "alias": "generalTitle"; "required": false; "isSignal": true; }; "space": { "alias": "space"; "required": true; }; "titlesBySpaceType": { "alias": "titlesBySpaceType"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
11
|
}
|
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
import { IUserSpaceBrief } from '@sneat/auth-models';
|
|
2
2
|
import { IIdAndBrief } from '@sneat/core';
|
|
3
3
|
import { ISpaceContext } from '@sneat/space-models';
|
|
4
|
+
import { SpaceType } from '@sneat/core';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class SpacesCardComponent {
|
|
7
|
+
/** Card heading — a product names its spaces ("Clubs", "Schools"). */
|
|
8
|
+
title: string;
|
|
9
|
+
/**
|
|
10
|
+
* When set, only spaces of this type are listed. A Sneat account holds
|
|
11
|
+
* spaces from every product (family, work, clubs...), and a product home
|
|
12
|
+
* that lists them all reads as a generic space browser rather than the
|
|
13
|
+
* product — sneat.club wants exactly the `club` spaces.
|
|
14
|
+
*/
|
|
15
|
+
spaceType?: SpaceType;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the card offers its quick-add form. A product whose spaces are
|
|
18
|
+
* created by a registration flow (decision 0006) passes false and offers
|
|
19
|
+
* its own "Register ..." call to action instead.
|
|
20
|
+
*/
|
|
21
|
+
canAdd: boolean;
|
|
6
22
|
private readonly errorLogger;
|
|
7
23
|
private readonly navService;
|
|
8
24
|
private readonly userService;
|
|
@@ -25,5 +41,5 @@ export declare class SpacesCardComponent {
|
|
|
25
41
|
startAddingSpace(): void;
|
|
26
42
|
protected cancelAdd(): void;
|
|
27
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpacesCardComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpacesCardComponent, "sneat-spaces-card", never, {}, {}, never, never, true, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpacesCardComponent, "sneat-spaces-card", never, { "title": { "alias": "title"; "required": false; }; "spaceType": { "alias": "spaceType"; "required": false; }; "canAdd": { "alias": "canAdd"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
45
|
}
|
|
@@ -9,10 +9,10 @@ export declare class SpacesListComponent extends SneatBaseComponent {
|
|
|
9
9
|
private readonly spaceNavService;
|
|
10
10
|
private readonly spaceService;
|
|
11
11
|
private readonly userRequiredFieldsService;
|
|
12
|
-
userID
|
|
13
|
-
spaces
|
|
14
|
-
pathPrefix: string
|
|
15
|
-
allowLeave: boolean
|
|
12
|
+
readonly userID: import("@angular/core").InputSignal<string | undefined>;
|
|
13
|
+
readonly spaces: import("@angular/core").InputSignal<ISpaceContext[] | undefined>;
|
|
14
|
+
readonly pathPrefix: import("@angular/core").InputSignal<string>;
|
|
15
|
+
readonly allowLeave: import("@angular/core").InputSignal<boolean>;
|
|
16
16
|
readonly beforeNavigateToSpace: EventEmitter<ISpaceContext>;
|
|
17
17
|
readonly leftSpace: EventEmitter<ISpaceContext>;
|
|
18
18
|
protected goSpace(event: Event, space: ISpaceContext): boolean;
|
|
@@ -21,5 +21,5 @@ export declare class SpacesListComponent extends SneatBaseComponent {
|
|
|
21
21
|
private createSpace;
|
|
22
22
|
protected leaveSpace(space: ISpaceContext, event?: Event): void;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpacesListComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpacesListComponent, "sneat-spaces-list", never, { "userID": { "alias": "userID"; "required": true; }; "spaces": { "alias": "spaces"; "required": true; }; "pathPrefix": { "alias": "pathPrefix"; "required": false; }; "allowLeave": { "alias": "allowLeave"; "required": false; }; }, { "beforeNavigateToSpace": "beforeNavigateToSpace"; "leftSpace": "leftSpace"; }, never, never, true, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpacesListComponent, "sneat-spaces-list", never, { "userID": { "alias": "userID"; "required": true; "isSignal": true; }; "spaces": { "alias": "spaces"; "required": true; "isSignal": true; }; "pathPrefix": { "alias": "pathPrefix"; "required": false; "isSignal": true; }; "allowLeave": { "alias": "allowLeave"; "required": false; "isSignal": true; }; }, { "beforeNavigateToSpace": "beforeNavigateToSpace"; "leftSpace": "leftSpace"; }, never, never, true, never>;
|
|
25
25
|
}
|
|
@@ -7,8 +7,8 @@ export declare class SpacesMenuComponent extends SneatBaseComponent {
|
|
|
7
7
|
readonly userService: SneatUserService;
|
|
8
8
|
private readonly navController;
|
|
9
9
|
private readonly menuController;
|
|
10
|
-
spacesLabel: string
|
|
11
|
-
pathPrefix: string
|
|
10
|
+
readonly spacesLabel: import("@angular/core").InputSignal<string>;
|
|
11
|
+
readonly pathPrefix: import("@angular/core").InputSignal<string>;
|
|
12
12
|
spaceType?: SpaceType;
|
|
13
13
|
protected readonly $userSpaces: import("@angular/core").WritableSignal<ISpaceContext[] | undefined>;
|
|
14
14
|
protected readonly $userID: import("@angular/core").WritableSignal<string>;
|
|
@@ -18,5 +18,5 @@ export declare class SpacesMenuComponent extends SneatBaseComponent {
|
|
|
18
18
|
constructor();
|
|
19
19
|
protected closeMenu(): void;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpacesMenuComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpacesMenuComponent, "sneat-spaces-menu", never, { "spacesLabel": { "alias": "spacesLabel"; "required": false; }; "pathPrefix": { "alias": "pathPrefix"; "required": false; }; "spaceType": { "alias": "spaceType"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpacesMenuComponent, "sneat-spaces-menu", never, { "spacesLabel": { "alias": "spacesLabel"; "required": false; "isSignal": true; }; "pathPrefix": { "alias": "pathPrefix"; "required": false; "isSignal": true; }; "spaceType": { "alias": "spaceType"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
22
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sneat/space-components",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@angular/common": ">=
|
|
9
|
-
"@angular/core": ">=
|
|
10
|
-
"@ionic/angular": ">=
|
|
8
|
+
"@angular/common": ">=22.0.0 <23.0.0",
|
|
9
|
+
"@angular/core": ">=22.0.0 <23.0.0",
|
|
10
|
+
"@ionic/angular": ">=9.0.0 <10.0.0"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"tslib": "2.8.1"
|
|
@@ -23,5 +23,6 @@
|
|
|
23
23
|
"default": "./esm2022/sneat-space-components.js"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
|
-
"sideEffects": false
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"type": "module"
|
|
27
28
|
}
|