raise-common-lib 0.0.179 → 0.0.180
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/raise-common-lib.umd.js +17 -8
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +1 -1
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/layout/drawer/index.component.js +18 -8
- package/esm5/lib/layout/drawer/index.component.js +19 -10
- package/fesm2015/raise-common-lib.js +16 -6
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +17 -8
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/layout/drawer/index.component.d.ts +4 -3
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
|
@@ -3737,9 +3737,10 @@ if (false) {
|
|
|
3737
3737
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3738
3738
|
*/
|
|
3739
3739
|
var DrawerComponent = /** @class */ (function () {
|
|
3740
|
-
function DrawerComponent(resolver, service) {
|
|
3740
|
+
function DrawerComponent(resolver, service, ref) {
|
|
3741
3741
|
this.resolver = resolver;
|
|
3742
3742
|
this.service = service;
|
|
3743
|
+
this.ref = ref;
|
|
3743
3744
|
this.config = DefaultDrawerConfig;
|
|
3744
3745
|
this.useAnimation = "yes";
|
|
3745
3746
|
this.isOpened = false;
|
|
@@ -3968,19 +3969,20 @@ var DrawerComponent = /** @class */ (function () {
|
|
|
3968
3969
|
};
|
|
3969
3970
|
/**
|
|
3970
3971
|
* @param {?} isOpen
|
|
3971
|
-
* @param {?=}
|
|
3972
|
+
* @param {?=} useAnimation
|
|
3972
3973
|
* @return {?}
|
|
3973
3974
|
*/
|
|
3974
3975
|
DrawerComponent.prototype.toggleOpenStatus = /**
|
|
3975
3976
|
* @param {?} isOpen
|
|
3976
|
-
* @param {?=}
|
|
3977
|
+
* @param {?=} useAnimation
|
|
3977
3978
|
* @return {?}
|
|
3978
3979
|
*/
|
|
3979
|
-
function (isOpen,
|
|
3980
|
-
if (
|
|
3980
|
+
function (isOpen, useAnimation) {
|
|
3981
|
+
if (useAnimation === void 0) { useAnimation = false; }
|
|
3981
3982
|
this.isOpened = isOpen;
|
|
3982
|
-
this.useAnimation =
|
|
3983
|
-
this.hiddenDrawer = !isOpen && !
|
|
3983
|
+
this.useAnimation = useAnimation ? "yes" : "no";
|
|
3984
|
+
this.hiddenDrawer = !isOpen && !useAnimation;
|
|
3985
|
+
this.ref.markForCheck();
|
|
3984
3986
|
};
|
|
3985
3987
|
/**
|
|
3986
3988
|
* @return {?}
|
|
@@ -3991,6 +3993,7 @@ var DrawerComponent = /** @class */ (function () {
|
|
|
3991
3993
|
function () {
|
|
3992
3994
|
if (!this.isOpened) {
|
|
3993
3995
|
this.hiddenDrawer = true;
|
|
3996
|
+
this.ref.markForCheck();
|
|
3994
3997
|
}
|
|
3995
3998
|
};
|
|
3996
3999
|
DrawerComponent.decorators = [
|
|
@@ -4003,7 +4006,8 @@ var DrawerComponent = /** @class */ (function () {
|
|
|
4003
4006
|
/** @nocollapse */
|
|
4004
4007
|
DrawerComponent.ctorParameters = function () { return [
|
|
4005
4008
|
{ type: ComponentFactoryResolver },
|
|
4006
|
-
{ type: DrawerService }
|
|
4009
|
+
{ type: DrawerService },
|
|
4010
|
+
{ type: ChangeDetectorRef }
|
|
4007
4011
|
]; };
|
|
4008
4012
|
DrawerComponent.propDecorators = {
|
|
4009
4013
|
element: [{ type: ViewChild, args: ["element", { static: false },] }],
|
|
@@ -4063,6 +4067,11 @@ if (false) {
|
|
|
4063
4067
|
* @private
|
|
4064
4068
|
*/
|
|
4065
4069
|
DrawerComponent.prototype.service;
|
|
4070
|
+
/**
|
|
4071
|
+
* @type {?}
|
|
4072
|
+
* @private
|
|
4073
|
+
*/
|
|
4074
|
+
DrawerComponent.prototype.ref;
|
|
4066
4075
|
}
|
|
4067
4076
|
|
|
4068
4077
|
/**
|