valtech-components 4.0.201 → 4.0.203
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/components/molecules/load-more/load-more.component.mjs +11 -7
- package/esm2022/lib/components/organisms/organization-view/organization-view.component.mjs +4 -1
- package/esm2022/lib/components/organisms/switch-org-modal/switch-org-modal.component.mjs +3 -3
- package/esm2022/lib/services/auth/org-switch.service.mjs +11 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +25 -9
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/organization-view/organization-view.component.d.ts +1 -0
- package/lib/services/auth/org-switch.service.d.ts +9 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { AuthService } from './auth.service';
|
|
3
|
+
import { Organization } from '../org/types';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Event emitted when the active organization changes.
|
|
@@ -89,6 +90,7 @@ export declare class OrgSwitchService {
|
|
|
89
90
|
private auth;
|
|
90
91
|
private readonly _switching;
|
|
91
92
|
private readonly _orgChanged;
|
|
93
|
+
private readonly _orgDataUpdated;
|
|
92
94
|
/**
|
|
93
95
|
* `true` while a switch is in flight. UI should disable interactions
|
|
94
96
|
* with org-scoped data and show a loading indicator.
|
|
@@ -102,6 +104,13 @@ export declare class OrgSwitchService {
|
|
|
102
104
|
* see the updated Firebase user / activeOrg claim.
|
|
103
105
|
*/
|
|
104
106
|
readonly orgChanged$: Observable<OrgChangedEvent>;
|
|
107
|
+
/**
|
|
108
|
+
* Fires when org data (name, logoUrl, etc.) changes without a full org switch.
|
|
109
|
+
* Subscribe in the app shell to keep the header org avatar up to date.
|
|
110
|
+
*/
|
|
111
|
+
readonly orgDataUpdated$: Observable<Organization>;
|
|
112
|
+
/** Notify subscribers that the active org's data was updated. */
|
|
113
|
+
notifyOrgDataUpdated(org: Organization): void;
|
|
105
114
|
constructor(auth: AuthService);
|
|
106
115
|
/**
|
|
107
116
|
* Switch the user's active organization.
|
package/lib/version.d.ts
CHANGED