@c8y/ngx-components 1011.0.32 → 1011.0.34
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/bundles/c8y-ngx-components-upgrade.umd.js +6 -5
- package/bundles/c8y-ngx-components-upgrade.umd.js.map +1 -1
- package/bundles/c8y-ngx-components-upgrade.umd.min.js +1 -1
- package/bundles/c8y-ngx-components-upgrade.umd.min.js.map +1 -1
- package/bundles/c8y-ngx-components.umd.js +57 -19
- package/bundles/c8y-ngx-components.umd.js.map +1 -1
- package/bundles/c8y-ngx-components.umd.min.js +1 -1
- package/bundles/c8y-ngx-components.umd.min.js.map +1 -1
- package/c8y-ngx-components.metadata.json +1 -1
- package/core/action-bar/action-bar.component.d.ts +22 -6
- package/core/common/outlet.directive.d.ts +7 -0
- package/esm2015/core/action-bar/action-bar.component.js +41 -15
- package/esm2015/core/bootstrap/bootstrap.component.js +2 -2
- package/esm2015/core/common/outlet.directive.js +19 -2
- package/esm2015/upgrade/action-bar.factory.js +6 -2
- package/esm2015/upgrade/bridge.service.js +2 -5
- package/fesm2015/c8y-ngx-components-upgrade.js +5 -5
- package/fesm2015/c8y-ngx-components-upgrade.js.map +1 -1
- package/fesm2015/c8y-ngx-components.js +57 -16
- package/fesm2015/c8y-ngx-components.js.map +1 -1
- package/package.json +2 -2
- package/upgrade/action-bar.factory.d.ts +1 -0
- package/upgrade/c8y-ngx-components-upgrade.metadata.json +1 -1
|
@@ -518,10 +518,7 @@
|
|
|
518
518
|
$routeParams: params
|
|
519
519
|
});
|
|
520
520
|
// make sure showIf result is a promise with boolean result:
|
|
521
|
-
return _this.injector
|
|
522
|
-
.get('$q')
|
|
523
|
-
.when(showIfResult)
|
|
524
|
-
.then(Boolean);
|
|
521
|
+
return _this.injector.get('$q').when(showIfResult).then(Boolean);
|
|
525
522
|
}
|
|
526
523
|
: undefined
|
|
527
524
|
}
|
|
@@ -790,9 +787,13 @@
|
|
|
790
787
|
function Ng1ActionBarFactoryService(bridge) {
|
|
791
788
|
this.bridge = bridge;
|
|
792
789
|
this.routeChanges$ = bridge.$routeChanges;
|
|
790
|
+
this.$ng1RouteChangeSuccess = bridge.$ng1RouteChangeSuccess;
|
|
793
791
|
}
|
|
794
792
|
Ng1ActionBarFactoryService.prototype.get = function () {
|
|
795
|
-
|
|
793
|
+
var _this = this;
|
|
794
|
+
return this.routeChanges$.pipe(operators.switchMap(function (e) {
|
|
795
|
+
return _this.bridge.getActionBarItems();
|
|
796
|
+
}));
|
|
796
797
|
};
|
|
797
798
|
return Ng1ActionBarFactoryService;
|
|
798
799
|
}());
|