ezfw-core 1.0.10 → 1.0.11

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.
Files changed (2) hide show
  1. package/core/ez.ts +3 -1
  2. package/package.json +1 -1
package/core/ez.ts CHANGED
@@ -59,6 +59,7 @@ export interface EzFramework {
59
59
  grid?: { query: typeof EzGridQuery };
60
60
  moment: typeof moment;
61
61
 
62
+ ready: Promise<void>;
62
63
  _initModules(): Promise<void>;
63
64
  /**
64
65
  * Define a component in the Ez framework
@@ -250,6 +251,7 @@ const ez: EzFramework = {
250
251
  _services: null,
251
252
  _eventBus: null,
252
253
  moment: moment,
254
+ ready: null as unknown as Promise<void>,
253
255
 
254
256
  async _initModules(): Promise<void> {
255
257
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -604,7 +606,7 @@ const ez: EzFramework = {
604
606
  };
605
607
 
606
608
  // Initialize framework
607
- (async () => {
609
+ ez.ready = (async () => {
608
610
  await ez._initModules();
609
611
  ez._initTheme();
610
612
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ezfw-core",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Ez Framework - A declarative component framework for building modern web applications",
5
5
  "type": "module",
6
6
  "main": "./core/ez.ts",