raise-common-lib 0.0.178 → 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 +20 -9
- 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/form/confirm-select/index.component.js +4 -2
- package/esm2015/lib/layout/drawer/index.component.js +18 -8
- package/esm5/lib/form/confirm-select/index.component.js +4 -2
- package/esm5/lib/layout/drawer/index.component.js +19 -10
- package/fesm2015/raise-common-lib.js +19 -7
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +20 -9
- 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
|
@@ -3929,9 +3929,10 @@
|
|
|
3929
3929
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3930
3930
|
*/
|
|
3931
3931
|
var DrawerComponent = /** @class */ (function () {
|
|
3932
|
-
function DrawerComponent(resolver, service) {
|
|
3932
|
+
function DrawerComponent(resolver, service, ref) {
|
|
3933
3933
|
this.resolver = resolver;
|
|
3934
3934
|
this.service = service;
|
|
3935
|
+
this.ref = ref;
|
|
3935
3936
|
this.config = DefaultDrawerConfig;
|
|
3936
3937
|
this.useAnimation = "yes";
|
|
3937
3938
|
this.isOpened = false;
|
|
@@ -4160,19 +4161,20 @@
|
|
|
4160
4161
|
};
|
|
4161
4162
|
/**
|
|
4162
4163
|
* @param {?} isOpen
|
|
4163
|
-
* @param {?=}
|
|
4164
|
+
* @param {?=} useAnimation
|
|
4164
4165
|
* @return {?}
|
|
4165
4166
|
*/
|
|
4166
4167
|
DrawerComponent.prototype.toggleOpenStatus = /**
|
|
4167
4168
|
* @param {?} isOpen
|
|
4168
|
-
* @param {?=}
|
|
4169
|
+
* @param {?=} useAnimation
|
|
4169
4170
|
* @return {?}
|
|
4170
4171
|
*/
|
|
4171
|
-
function (isOpen,
|
|
4172
|
-
if (
|
|
4172
|
+
function (isOpen, useAnimation) {
|
|
4173
|
+
if (useAnimation === void 0) { useAnimation = false; }
|
|
4173
4174
|
this.isOpened = isOpen;
|
|
4174
|
-
this.useAnimation =
|
|
4175
|
-
this.hiddenDrawer = !isOpen && !
|
|
4175
|
+
this.useAnimation = useAnimation ? "yes" : "no";
|
|
4176
|
+
this.hiddenDrawer = !isOpen && !useAnimation;
|
|
4177
|
+
this.ref.markForCheck();
|
|
4176
4178
|
};
|
|
4177
4179
|
/**
|
|
4178
4180
|
* @return {?}
|
|
@@ -4183,6 +4185,7 @@
|
|
|
4183
4185
|
function () {
|
|
4184
4186
|
if (!this.isOpened) {
|
|
4185
4187
|
this.hiddenDrawer = true;
|
|
4188
|
+
this.ref.markForCheck();
|
|
4186
4189
|
}
|
|
4187
4190
|
};
|
|
4188
4191
|
DrawerComponent.decorators = [
|
|
@@ -4195,7 +4198,8 @@
|
|
|
4195
4198
|
/** @nocollapse */
|
|
4196
4199
|
DrawerComponent.ctorParameters = function () { return [
|
|
4197
4200
|
{ type: core.ComponentFactoryResolver },
|
|
4198
|
-
{ type: DrawerService }
|
|
4201
|
+
{ type: DrawerService },
|
|
4202
|
+
{ type: core.ChangeDetectorRef }
|
|
4199
4203
|
]; };
|
|
4200
4204
|
DrawerComponent.propDecorators = {
|
|
4201
4205
|
element: [{ type: core.ViewChild, args: ["element", { static: false },] }],
|
|
@@ -4255,6 +4259,11 @@
|
|
|
4255
4259
|
* @private
|
|
4256
4260
|
*/
|
|
4257
4261
|
DrawerComponent.prototype.service;
|
|
4262
|
+
/**
|
|
4263
|
+
* @type {?}
|
|
4264
|
+
* @private
|
|
4265
|
+
*/
|
|
4266
|
+
DrawerComponent.prototype.ref;
|
|
4258
4267
|
}
|
|
4259
4268
|
|
|
4260
4269
|
/**
|
|
@@ -23472,7 +23481,9 @@
|
|
|
23472
23481
|
*/
|
|
23473
23482
|
function () {
|
|
23474
23483
|
this.selectedItems = JSON.parse(JSON.stringify(this.value || []));
|
|
23475
|
-
this.comfirmSelect
|
|
23484
|
+
if (this.comfirmSelect) {
|
|
23485
|
+
this.comfirmSelect.value = this.selectedItems;
|
|
23486
|
+
}
|
|
23476
23487
|
};
|
|
23477
23488
|
/**
|
|
23478
23489
|
* @return {?}
|