@kirbydesign/designsystem 8.5.2-duplicated-modal-controller.0 → 8.5.2-duplicated-modal-controller.1
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/esm2020/modal/modal/services/modal.controller.mjs +4 -3
- package/esm2020/modal/modal-navigation.service.mjs +4 -1
- package/fesm2015/kirbydesign-designsystem-modal.mjs +6 -3
- package/fesm2015/kirbydesign-designsystem-modal.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-modal.mjs +6 -3
- package/fesm2020/kirbydesign-designsystem-modal.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -21,12 +21,15 @@ import { EmptyStateModule } from '@kirbydesign/designsystem/empty-state';
|
|
|
21
21
|
import * as i3$1 from '@kirbydesign/designsystem/helpers';
|
|
22
22
|
import { DesignTokenHelper, KirbyAnimation } from '@kirbydesign/designsystem/helpers';
|
|
23
23
|
|
|
24
|
+
let counter$1 = 0;
|
|
24
25
|
class ModalNavigationService {
|
|
25
26
|
constructor(router, route, location) {
|
|
26
27
|
this.router = router;
|
|
27
28
|
this.route = route;
|
|
28
29
|
this.location = location;
|
|
29
30
|
this.navigationEndListener$ = this.router.events.pipe(filter((event) => event instanceof NavigationEnd));
|
|
31
|
+
counter$1++;
|
|
32
|
+
console.log(`ModalNavigationService.constructor - instance: [${counter$1}]`);
|
|
30
33
|
}
|
|
31
34
|
isModalRoute(url) {
|
|
32
35
|
return url.includes('(modal:');
|
|
@@ -1592,9 +1595,10 @@ class ModalController {
|
|
|
1592
1595
|
}
|
|
1593
1596
|
}
|
|
1594
1597
|
/** @nocollapse */ ModalController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ModalController, deps: [{ token: ModalHelper }, { token: ActionSheetHelper }, { token: AlertHelper }, { token: ModalNavigationService }, { token: ROUTES, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1595
|
-
/** @nocollapse */ ModalController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ModalController });
|
|
1598
|
+
/** @nocollapse */ ModalController.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ModalController, providedIn: 'root' });
|
|
1596
1599
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ModalController, decorators: [{
|
|
1597
|
-
type: Injectable
|
|
1600
|
+
type: Injectable,
|
|
1601
|
+
args: [{ providedIn: 'root' }]
|
|
1598
1602
|
}], ctorParameters: function () { return [{ type: ModalHelper }, { type: ActionSheetHelper }, { type: AlertHelper }, { type: ModalNavigationService }, { type: undefined, decorators: [{
|
|
1599
1603
|
type: Optional
|
|
1600
1604
|
}, {
|
|
@@ -1634,4 +1638,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
1634
1638
|
|
|
1635
1639
|
export { ActionSheetComponent, ActionSheetHelper, AlertComponent, AlertHelper, COMPONENT_PROPS, DrawerSupplementaryAction, Modal, ModalCompactWrapperComponent, ModalController, ModalElementComponent, ModalElementType, ModalElementsAdvertiser, ModalFooterComponent, ModalHelper, ModalNavigationService, ModalWrapperComponent };
|
|
1636
1640
|
//# sourceMappingURL=kirbydesign-designsystem-modal.mjs.map
|
|
1637
|
-
//# sourceMappingURL=kirbydesign-designsystem-modal.mjs.map
|