novo-elements 6.1.0 → 6.1.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/bundles/novo-elements.umd.js +20 -7
- package/bundles/novo-elements.umd.js.map +1 -1
- package/bundles/novo-elements.umd.min.js +1 -1
- package/bundles/novo-elements.umd.min.js.map +1 -1
- package/elements/data-table/data-table.component.scss +1 -1
- package/esm2015/src/elements/aside/aside-ref.js +10 -4
- package/esm2015/src/elements/aside/aside.service.js +2 -2
- package/esm2015/src/elements/date-picker/DatePickerInput.js +5 -2
- package/esm2015/src/elements/modal/modal-ref.js +1 -1
- package/esm2015/src/novo-elements.providers.js +1 -3
- package/esm2015/src/services/security/Security.js +4 -2
- package/fesm2015/novo-elements.js +16 -7
- package/fesm2015/novo-elements.js.map +1 -1
- package/package.json +1 -1
- package/schematics/package.json +1 -1
- package/src/elements/aside/aside-ref.d.ts +6 -4
- package/src/elements/aside/aside.service.d.ts +3 -2
- package/src/elements/modal/modal-ref.d.ts +5 -5
- package/src/elements/modal/modal.service.d.ts +1 -1
|
@@ -24269,20 +24269,29 @@
|
|
|
24269
24269
|
this.overlayRef = overlayRef;
|
|
24270
24270
|
this._beforeClose = new rxjs.Subject();
|
|
24271
24271
|
this._afterClosed = new rxjs.Subject();
|
|
24272
|
+
this.isClosed = false;
|
|
24272
24273
|
}
|
|
24274
|
+
Object.defineProperty(NovoAsideRef.prototype, "onClosed", {
|
|
24275
|
+
// Gets a promise that is resolved when the dialog is closed.
|
|
24276
|
+
get: function () {
|
|
24277
|
+
return this._afterClosed.toPromise();
|
|
24278
|
+
},
|
|
24279
|
+
enumerable: false,
|
|
24280
|
+
configurable: true
|
|
24281
|
+
});
|
|
24273
24282
|
NovoAsideRef.prototype.afterClosed = function () {
|
|
24274
24283
|
return this._afterClosed.asObservable();
|
|
24275
24284
|
};
|
|
24276
24285
|
NovoAsideRef.prototype.beforeClose = function () {
|
|
24277
24286
|
return this._beforeClose.asObservable();
|
|
24278
24287
|
};
|
|
24279
|
-
NovoAsideRef.prototype.close = function () {
|
|
24288
|
+
NovoAsideRef.prototype.close = function (result) {
|
|
24280
24289
|
var _this = this;
|
|
24281
24290
|
// Listen for animation 'start' events
|
|
24282
24291
|
this.componentInstance.animationStateChanged
|
|
24283
24292
|
.pipe(operators.filter(function (event) { return event.phaseName === 'start'; }), operators.take(1))
|
|
24284
24293
|
.subscribe(function () {
|
|
24285
|
-
_this._beforeClose.next();
|
|
24294
|
+
_this._beforeClose.next(result);
|
|
24286
24295
|
_this._beforeClose.complete();
|
|
24287
24296
|
_this.overlayRef.detachBackdrop();
|
|
24288
24297
|
});
|
|
@@ -24290,8 +24299,9 @@
|
|
|
24290
24299
|
this.componentInstance.animationStateChanged
|
|
24291
24300
|
.pipe(operators.filter(function (event) { return event.phaseName === 'done' && event.toState === 'leave'; }), operators.take(1))
|
|
24292
24301
|
.subscribe(function () {
|
|
24302
|
+
_this.isClosed = true;
|
|
24293
24303
|
_this.overlayRef.dispose();
|
|
24294
|
-
_this._afterClosed.next();
|
|
24304
|
+
_this._afterClosed.next(result);
|
|
24295
24305
|
_this._afterClosed.complete();
|
|
24296
24306
|
// Make sure to also clear the reference to the
|
|
24297
24307
|
// component instance to avoid memory leaks
|
|
@@ -24368,7 +24378,7 @@
|
|
|
24368
24378
|
// Pass the instance of the overlay component to the remote control
|
|
24369
24379
|
asideRef.componentInstance = overlayComponent;
|
|
24370
24380
|
overlayRef.backdropClick().subscribe(function () { return asideRef.close(); });
|
|
24371
|
-
return
|
|
24381
|
+
return asideRef;
|
|
24372
24382
|
};
|
|
24373
24383
|
NovoAsideService.prototype.createOverlay = function (config) {
|
|
24374
24384
|
return this.overlay.create(config);
|
|
@@ -37370,7 +37380,10 @@
|
|
|
37370
37380
|
};
|
|
37371
37381
|
NovoDatePickerInputElement.prototype._setCalendarValue = function (value) {
|
|
37372
37382
|
if (value instanceof Date && this.value instanceof Date) {
|
|
37373
|
-
|
|
37383
|
+
var newDate = new Date(value);
|
|
37384
|
+
newDate.setHours(0, 0, 0, 0);
|
|
37385
|
+
this.value = newDate;
|
|
37386
|
+
return;
|
|
37374
37387
|
}
|
|
37375
37388
|
this.value = value;
|
|
37376
37389
|
};
|
|
@@ -41256,8 +41269,9 @@
|
|
|
41256
41269
|
};
|
|
41257
41270
|
return Security;
|
|
41258
41271
|
}());
|
|
41272
|
+
Security.ɵprov = i0.ɵɵdefineInjectable({ factory: function Security_Factory() { return new Security(); }, token: Security, providedIn: "root" });
|
|
41259
41273
|
Security.decorators = [
|
|
41260
|
-
{ type: i0.Injectable }
|
|
41274
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
41261
41275
|
];
|
|
41262
41276
|
|
|
41263
41277
|
var LocalStorageService = /** @class */ (function () {
|
|
@@ -54610,7 +54624,6 @@
|
|
|
54610
54624
|
{ provide: OptionsService, useClass: OptionsService },
|
|
54611
54625
|
FieldInteractionApi,
|
|
54612
54626
|
DateFormatService,
|
|
54613
|
-
Security,
|
|
54614
54627
|
NovoTemplateService,
|
|
54615
54628
|
];
|
|
54616
54629
|
var NovoElementProviders = /** @class */ (function () {
|