@osovitny/anatoly 2.14.54 → 2.14.56
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/lib/ui/components/base/base-edit.component.mjs +1 -4
- package/esm2020/lib/ui/components/base/base.component.mjs +8 -5
- package/esm2020/lib/ui/components/base/base.dialog.mjs +13 -5
- package/fesm2015/osovitny-anatoly.mjs +18 -10
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +18 -10
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/ui/components/base/base-edit.component.d.ts +0 -1
- package/lib/ui/components/base/base.component.d.ts +2 -1
- package/lib/ui/components/base/base.dialog.d.ts +5 -2
- package/package.json +1 -1
|
@@ -2635,11 +2635,14 @@ class BaseComponent {
|
|
|
2635
2635
|
this.dataLoaded = false;
|
|
2636
2636
|
this.dataFound = false;
|
|
2637
2637
|
}
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2638
|
+
getEntityId() {
|
|
2639
|
+
return this.getValueByNameInQS("id");
|
|
2640
|
+
}
|
|
2641
|
+
getValueByNameInQS(name) {
|
|
2642
|
+
let value = Utils.getValueByNameInQS(name);
|
|
2643
|
+
if (typeof value === "undefined" || value == "")
|
|
2641
2644
|
return null;
|
|
2642
|
-
return
|
|
2645
|
+
return value;
|
|
2643
2646
|
}
|
|
2644
2647
|
ngOnDestroy() {
|
|
2645
2648
|
this.subs.unsubscribe();
|
|
@@ -2678,9 +2681,6 @@ class BaseEditComponent extends BaseComponent {
|
|
|
2678
2681
|
let id = Utils.getValueByNameInQS("id");
|
|
2679
2682
|
return typeof id === "undefined" || id == "";
|
|
2680
2683
|
}
|
|
2681
|
-
getEntityId() {
|
|
2682
|
-
return this.getQSId();
|
|
2683
|
-
}
|
|
2684
2684
|
isControlValid(name, frmGroup = null) {
|
|
2685
2685
|
return !this.isControlInvalid(name, frmGroup);
|
|
2686
2686
|
}
|
|
@@ -3372,6 +3372,7 @@ class BaseDialog extends BaseEditComponent {
|
|
|
3372
3372
|
constructor() {
|
|
3373
3373
|
super();
|
|
3374
3374
|
this._opened = false;
|
|
3375
|
+
this.closed = new EventEmitter();
|
|
3375
3376
|
}
|
|
3376
3377
|
get opened() {
|
|
3377
3378
|
return this._opened;
|
|
@@ -3379,18 +3380,25 @@ class BaseDialog extends BaseEditComponent {
|
|
|
3379
3380
|
open() {
|
|
3380
3381
|
this._opened = true;
|
|
3381
3382
|
}
|
|
3382
|
-
close() {
|
|
3383
|
+
close(result = null) {
|
|
3384
|
+
this._opened = false;
|
|
3385
|
+
this.closed.emit(result);
|
|
3386
|
+
}
|
|
3387
|
+
cancel() {
|
|
3383
3388
|
this._opened = false;
|
|
3389
|
+
this.closed.emit(-1);
|
|
3384
3390
|
}
|
|
3385
3391
|
}
|
|
3386
3392
|
BaseDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3387
|
-
BaseDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BaseDialog, selector: "ng-component", inputs: { opened: "opened" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
3393
|
+
BaseDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BaseDialog, selector: "ng-component", inputs: { opened: "opened" }, outputs: { closed: "closed" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
3388
3394
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseDialog, decorators: [{
|
|
3389
3395
|
type: Component,
|
|
3390
3396
|
args: [{
|
|
3391
3397
|
template: ''
|
|
3392
3398
|
}]
|
|
3393
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
3399
|
+
}], ctorParameters: function () { return []; }, propDecorators: { closed: [{
|
|
3400
|
+
type: Output
|
|
3401
|
+
}], opened: [{
|
|
3394
3402
|
type: Input
|
|
3395
3403
|
}] } });
|
|
3396
3404
|
|