@wavemaker/app-ng-runtime 11.4.1-next.141648 → 11.4.1-next.141649
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.
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +11 -11
- app-ng-runtime/runtime/base/esm2020/components/base-spa-page.component.mjs +13 -13
- app-ng-runtime/runtime/base/fesm2015/index.mjs +11 -11
- app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/fesm2020/index.mjs +11 -11
- app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
|
@@ -1701,15 +1701,15 @@ class BaseSpaPageComponent extends FragmentMonitor {
|
|
|
1701
1701
|
}
|
|
1702
1702
|
init() {
|
|
1703
1703
|
muteWatchers();
|
|
1704
|
-
this.App =
|
|
1705
|
-
this.route =
|
|
1706
|
-
this.appManager =
|
|
1707
|
-
this.navigationService =
|
|
1708
|
-
this.scriptLoaderService =
|
|
1709
|
-
this.i18nService =
|
|
1710
|
-
this.router =
|
|
1711
|
-
this.Viewport =
|
|
1712
|
-
this.layoutDirective =
|
|
1704
|
+
this.App = inject(App);
|
|
1705
|
+
this.route = inject(ActivatedRoute);
|
|
1706
|
+
this.appManager = inject(AppManagerService);
|
|
1707
|
+
this.navigationService = inject(AbstractNavigationService);
|
|
1708
|
+
this.scriptLoaderService = inject(ScriptLoaderService);
|
|
1709
|
+
this.i18nService = inject(AbstractI18nService);
|
|
1710
|
+
this.router = inject(Router);
|
|
1711
|
+
this.Viewport = inject(Viewport);
|
|
1712
|
+
this.layoutDirective = inject(LayoutDirective);
|
|
1713
1713
|
// register functions for binding evaluation
|
|
1714
1714
|
this.registerExpressions();
|
|
1715
1715
|
this.initUserScript();
|
|
@@ -1731,7 +1731,7 @@ class BaseSpaPageComponent extends FragmentMonitor {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
initUserScript() {
|
|
1733
1733
|
try {
|
|
1734
|
-
this.evalUserScript(this, this.App,
|
|
1734
|
+
this.evalUserScript(this, this.App, inject(UtilsService));
|
|
1735
1735
|
}
|
|
1736
1736
|
catch (e) {
|
|
1737
1737
|
console.error(`Error in evaluating page (${this.pageName}) script\n`, e);
|
|
@@ -1748,7 +1748,7 @@ class BaseSpaPageComponent extends FragmentMonitor {
|
|
|
1748
1748
|
this.appLocale = this.i18nService.getAppLocale();
|
|
1749
1749
|
}
|
|
1750
1750
|
initVariables() {
|
|
1751
|
-
const variablesService =
|
|
1751
|
+
const variablesService = inject(VariablesService);
|
|
1752
1752
|
// get variables and actions instances for the page
|
|
1753
1753
|
const variableCollection = variablesService.register(this.pageName, this.getVariables(), this);
|
|
1754
1754
|
// create namespace for Variables nad Actions on page/partial, which inherits the Variables and Actions from App instance
|