@wolkabout/commons 0.0.39 → 0.0.40
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/package.json
CHANGED
|
@@ -172,7 +172,6 @@ interface Feature {
|
|
|
172
172
|
app: string;
|
|
173
173
|
name: string;
|
|
174
174
|
icon: SvgIcon;
|
|
175
|
-
order: number;
|
|
176
175
|
entryRoute: string;
|
|
177
176
|
translations: string[];
|
|
178
177
|
permission?: string | string[];
|
|
@@ -187,18 +186,19 @@ interface ExternalFeature {
|
|
|
187
186
|
}
|
|
188
187
|
declare class FeatureRegistry {
|
|
189
188
|
private readonly injector;
|
|
190
|
-
private readonly
|
|
189
|
+
private readonly loadedFeatures;
|
|
191
190
|
private readonly _features$;
|
|
192
|
-
private expectedFeatures;
|
|
193
191
|
/**
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
|
|
192
|
+
* Call when deploying a standalone app or when there are no external modules to load.
|
|
193
|
+
* Immediately emits the currently registered features.
|
|
194
|
+
*/
|
|
195
|
+
noExternalModules(): void;
|
|
196
|
+
/**
|
|
197
|
+
* Call when deploying a host application.
|
|
198
|
+
* Emits the registered features once all external modules loaded (successfully or unsuccessfully).
|
|
197
199
|
*/
|
|
198
|
-
setExpectedFeatures(expectedFeatures: number): void;
|
|
199
200
|
loadExternalFeatures(features: ExternalFeature[]): void;
|
|
200
201
|
registerFeature(feature: Feature): void;
|
|
201
|
-
finalizeLoading(): void;
|
|
202
202
|
get features$(): Observable<Feature[]>;
|
|
203
203
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FeatureRegistry, never>;
|
|
204
204
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FeatureRegistry>;
|