oip-common 0.0.37 → 0.0.38

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/index.d.ts CHANGED
@@ -171,6 +171,8 @@ declare class LayoutService {
171
171
  }
172
172
 
173
173
  declare abstract class BaseModuleComponent<TBackendStoreSettings, TLocalStoreSettings> implements OnInit, OnDestroy {
174
+ private isInitialized;
175
+ private moduleInstanceReloadPromise;
174
176
  /**
175
177
  * Provide access to app settings
176
178
  */
@@ -302,6 +304,12 @@ declare abstract class BaseModuleComponent<TBackendStoreSettings, TLocalStoreSet
302
304
  * @return {Promise<void>} A promise that resolves when the settings are saved. Reject if an error occurs.
303
305
  */
304
306
  saveSettings(settings: TBackendStoreSettings): Promise<void>;
307
+ /**
308
+ * Called whenever the module instance changes, including the first load.
309
+ * Derived components can override this to refresh module-specific data.
310
+ */
311
+ protected onModuleInstanceChange(): Promise<void>;
312
+ private reloadModuleInstance;
305
313
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseModuleComponent<any, any>, never>;
306
314
  static ɵcmp: i0.ɵɵComponentDeclaration<BaseModuleComponent<any, any>, "ng-component", never, {}, {}, never, never, true, never>;
307
315
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oip-common",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "description": "A template for cross-platform web applications based on sakai-ng and primeNG",
5
5
  "main": "index.js",
6
6
  "keywords": [