@wavemaker/app-ng-runtime 11.9.0-next.27458 → 11.9.0-next.27464
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/build-task/bundles/index.umd.js +4 -4
- app-ng-runtime/build-task/esm2022/basic/default/label/label.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/picture/picture.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/containers/tile/tile.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/data/form/form-field/form-field.build.mjs +2 -2
- app-ng-runtime/build-task/fesm2022/index.mjs +4 -4
- app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/carousel/bundles/index.umd.js +1 -1
- app-ng-runtime/components/advanced/carousel/esm2022/carousel.animator.mjs +2 -2
- app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs +1 -1
- app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/default/bundles/index.umd.js +1 -1
- app-ng-runtime/components/basic/default/esm2022/label/label.props.mjs +1 -2
- app-ng-runtime/components/basic/default/esm2022/picture/picture.directive.mjs +2 -2
- app-ng-runtime/components/basic/default/esm2022/picture/picture.props.mjs +2 -1
- app-ng-runtime/components/basic/default/fesm2022/index.mjs +1 -1
- app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/default/picture/picture.directive.d.ts +2 -1
- app-ng-runtime/components/containers/accordion/bundles/index.umd.js +3 -3
- app-ng-runtime/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +4 -4
- app-ng-runtime/components/containers/accordion/fesm2022/index.mjs +3 -3
- app-ng-runtime/components/containers/accordion/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +25 -19
- app-ng-runtime/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +14 -9
- app-ng-runtime/components/input/default/esm2022/radioset/radioset.component.mjs +13 -12
- app-ng-runtime/components/input/default/fesm2022/index.mjs +25 -19
- app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +5 -4
- app-ng-runtime/components/navigation/menu/esm2022/menu.component.mjs +6 -5
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +5 -4
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/popover/bundles/index.umd.js +2 -2
- app-ng-runtime/components/navigation/popover/esm2022/popover.component.mjs +3 -3
- app-ng-runtime/components/navigation/popover/fesm2022/index.mjs +2 -2
- app-ng-runtime/components/navigation/popover/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/popover/popover.component.d.ts +2 -0
- app-ng-runtime/core/bundles/index.umd.js +5 -5
- app-ng-runtime/core/esm2022/utils/build-utils.mjs +6 -6
- app-ng-runtime/core/fesm2022/index.mjs +5 -5
- app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +3 -2
- app-ng-runtime/runtime/base/esm2022/guards/can-deactivate-page.guard.mjs +4 -3
- app-ng-runtime/runtime/base/fesm2022/index.mjs +3 -2
- app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/guards/can-deactivate-page.guard.d.ts +2 -1
app-ng-runtime/package.json
CHANGED
|
@@ -4108,15 +4108,16 @@
|
|
|
4108
4108
|
here component is pagewrapper so adding custom implementation for route change
|
|
4109
4109
|
*/
|
|
4110
4110
|
class CanDeactivatePageGuard {
|
|
4111
|
-
canDeactivate(component) {
|
|
4111
|
+
canDeactivate(component, currentRoute, currentState, nextState) {
|
|
4112
4112
|
function invokeCompDeactivate() {
|
|
4113
4113
|
let retVal;
|
|
4114
|
+
const nextRoute = nextState ? nextState.url : undefined;
|
|
4114
4115
|
// Calling onBeforePageLeave method present at page level
|
|
4115
4116
|
retVal = this.app.activePage && this.app.activePage.onBeforePageLeave();
|
|
4116
4117
|
// Calling onBeforePageLeave method present at app level only if page level method return true
|
|
4117
4118
|
// or if there is no page level method
|
|
4118
4119
|
if (retVal !== false) {
|
|
4119
|
-
retVal = (this.app.onBeforePageLeave || i1.noop)(this.app.activePageName, this.app.activePage);
|
|
4120
|
+
retVal = (this.app.onBeforePageLeave || i1.noop)(this.app.activePageName, this.app.activePage, nextRoute);
|
|
4120
4121
|
}
|
|
4121
4122
|
return retVal === undefined ? true : retVal;
|
|
4122
4123
|
}
|
|
@@ -8,15 +8,16 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
here component is pagewrapper so adding custom implementation for route change
|
|
9
9
|
*/
|
|
10
10
|
export class CanDeactivatePageGuard {
|
|
11
|
-
canDeactivate(component) {
|
|
11
|
+
canDeactivate(component, currentRoute, currentState, nextState) {
|
|
12
12
|
function invokeCompDeactivate() {
|
|
13
13
|
let retVal;
|
|
14
|
+
const nextRoute = nextState ? nextState.url : undefined;
|
|
14
15
|
// Calling onBeforePageLeave method present at page level
|
|
15
16
|
retVal = this.app.activePage && this.app.activePage.onBeforePageLeave();
|
|
16
17
|
// Calling onBeforePageLeave method present at app level only if page level method return true
|
|
17
18
|
// or if there is no page level method
|
|
18
19
|
if (retVal !== false) {
|
|
19
|
-
retVal = (this.app.onBeforePageLeave || noop)(this.app.activePageName, this.app.activePage);
|
|
20
|
+
retVal = (this.app.onBeforePageLeave || noop)(this.app.activePageName, this.app.activePage, nextRoute);
|
|
20
21
|
}
|
|
21
22
|
return retVal === undefined ? true : retVal;
|
|
22
23
|
}
|
|
@@ -39,4 +40,4 @@ export class CanDeactivateNgPageGuard {
|
|
|
39
40
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CanDeactivateNgPageGuard, [{
|
|
40
41
|
type: Injectable
|
|
41
42
|
}], null, null); })();
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,
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biAgICB9XG59XG4iXX0=
|
|
@@ -4166,15 +4166,16 @@ class DynamicComponentRefProviderService {
|
|
|
4166
4166
|
here component is pagewrapper so adding custom implementation for route change
|
|
4167
4167
|
*/
|
|
4168
4168
|
class CanDeactivatePageGuard {
|
|
4169
|
-
canDeactivate(component) {
|
|
4169
|
+
canDeactivate(component, currentRoute, currentState, nextState) {
|
|
4170
4170
|
function invokeCompDeactivate() {
|
|
4171
4171
|
let retVal;
|
|
4172
|
+
const nextRoute = nextState ? nextState.url : undefined;
|
|
4172
4173
|
// Calling onBeforePageLeave method present at page level
|
|
4173
4174
|
retVal = this.app.activePage && this.app.activePage.onBeforePageLeave();
|
|
4174
4175
|
// Calling onBeforePageLeave method present at app level only if page level method return true
|
|
4175
4176
|
// or if there is no page level method
|
|
4176
4177
|
if (retVal !== false) {
|
|
4177
|
-
retVal = (this.app.onBeforePageLeave || noop$1)(this.app.activePageName, this.app.activePage);
|
|
4178
|
+
retVal = (this.app.onBeforePageLeave || noop$1)(this.app.activePageName, this.app.activePage, nextRoute);
|
|
4178
4179
|
}
|
|
4179
4180
|
return retVal === undefined ? true : retVal;
|
|
4180
4181
|
}
|