@sumaris-net/ngx-components 1.20.35 → 1.20.38
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/sumaris-net.ngx-components.umd.js +30 -11
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/account/account.js +2 -2
- package/esm2015/src/app/core/auth/form/form-auth.js +4 -2
- package/esm2015/src/app/core/form/editor.class.js +7 -1
- package/esm2015/src/app/core/form/entity-editor-modal.class.js +1 -1
- package/esm2015/src/app/core/form/entity-editor.class.js +1 -1
- package/esm2015/src/app/core/form/form.class.js +4 -2
- package/esm2015/src/app/core/services/local-settings.service.js +2 -2
- package/esm2015/src/app/shared/observables.js +4 -5
- package/esm2015/src/app/shared/pipes/form.pipes.js +3 -3
- package/fesm2015/sumaris-net.ngx-components.js +18 -9
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/auth/form/form-auth.d.ts +1 -1
- package/src/app/core/form/editor.class.d.ts +14 -1
- package/src/app/core/form/entity-editor.class.d.ts +6 -2
- package/src/app/core/form/form.class.d.ts +1 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -1092,14 +1092,13 @@
|
|
|
1092
1092
|
}
|
|
1093
1093
|
function waitForTrue(observable, opts) {
|
|
1094
1094
|
return __awaiter(this, void 0, void 0, function () {
|
|
1095
|
-
var
|
|
1095
|
+
var $timeout;
|
|
1096
1096
|
return __generator(this, function (_a) {
|
|
1097
|
-
firstTrueObservable = firstTrue(observable);
|
|
1098
1097
|
// Timeout (+ dueTime)
|
|
1099
1098
|
if (opts && opts.timeout > 0) {
|
|
1100
1099
|
$timeout = rxjs.timer(opts.timeout);
|
|
1101
1100
|
return [2 /*return*/, rxjs.merge(rxjs.timer(opts.dueTime || 0)
|
|
1102
|
-
.pipe(operators.switchMap(function () { return
|
|
1101
|
+
.pipe(operators.switchMap(function () { return firstTrue(observable); }), operators.takeUntil($timeout)), $timeout
|
|
1103
1102
|
.pipe(operators.map(function () {
|
|
1104
1103
|
throw new Error("Timeout ready() - after " + opts.timeout + "ms");
|
|
1105
1104
|
})))
|
|
@@ -1108,10 +1107,10 @@
|
|
|
1108
1107
|
// dueTime (without timeout)
|
|
1109
1108
|
if (opts && opts.dueTime > 0) {
|
|
1110
1109
|
return [2 /*return*/, rxjs.timer(opts.dueTime)
|
|
1111
|
-
.pipe(operators.switchMap(function () { return
|
|
1110
|
+
.pipe(operators.switchMap(function () { return firstTrue(observable); }))
|
|
1112
1111
|
.toPromise()];
|
|
1113
1112
|
}
|
|
1114
|
-
return [2 /*return*/,
|
|
1113
|
+
return [2 /*return*/, firstTrue(observable).toPromise()];
|
|
1115
1114
|
});
|
|
1116
1115
|
});
|
|
1117
1116
|
}
|
|
@@ -4751,7 +4750,7 @@
|
|
|
4751
4750
|
function FormGetControlPipe() {
|
|
4752
4751
|
}
|
|
4753
4752
|
FormGetControlPipe.prototype.transform = function (form, path) {
|
|
4754
|
-
return (form && path && form.get(path) || form);
|
|
4753
|
+
return (form && isNotNil(path) && form.get(path) || form);
|
|
4755
4754
|
};
|
|
4756
4755
|
return FormGetControlPipe;
|
|
4757
4756
|
}());
|
|
@@ -12024,7 +12023,7 @@
|
|
|
12024
12023
|
Object.defineProperty(LocalSettingsService.prototype, "usageMode", {
|
|
12025
12024
|
get: function () {
|
|
12026
12025
|
var _a;
|
|
12027
|
-
if (isNil((_a = this._data) === null || _a === void 0 ? void 0 : _a.
|
|
12026
|
+
if (isNil((_a = this._data) === null || _a === void 0 ? void 0 : _a.usageMode)) {
|
|
12028
12027
|
console.warn("[settings] Accessing to property 'usageMode' BEFORE service started! Please use ready()");
|
|
12029
12028
|
return isCordova(window) ? 'FIELD' : 'DESK';
|
|
12030
12029
|
}
|
|
@@ -20082,7 +20081,12 @@
|
|
|
20082
20081
|
this._$loading.unsubscribe();
|
|
20083
20082
|
};
|
|
20084
20083
|
AppForm.prototype.cancel = function () {
|
|
20085
|
-
this
|
|
20084
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
20085
|
+
return __generator(this, function (_b) {
|
|
20086
|
+
this.onCancel.emit();
|
|
20087
|
+
return [2 /*return*/];
|
|
20088
|
+
});
|
|
20089
|
+
});
|
|
20086
20090
|
};
|
|
20087
20091
|
/**
|
|
20088
20092
|
*
|
|
@@ -21522,7 +21526,12 @@
|
|
|
21522
21526
|
}
|
|
21523
21527
|
};
|
|
21524
21528
|
AuthForm.prototype.cancel = function () {
|
|
21525
|
-
this
|
|
21529
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
21530
|
+
return __generator(this, function (_a) {
|
|
21531
|
+
this.onCancel.emit();
|
|
21532
|
+
return [2 /*return*/];
|
|
21533
|
+
});
|
|
21534
|
+
});
|
|
21526
21535
|
};
|
|
21527
21536
|
AuthForm.prototype.doSubmit = function (event) {
|
|
21528
21537
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -22541,8 +22550,12 @@
|
|
|
22541
22550
|
});
|
|
22542
22551
|
return __awaiter(this, void 0, void 0, function () {
|
|
22543
22552
|
return __generator(this, function (_c) {
|
|
22544
|
-
|
|
22545
|
-
|
|
22553
|
+
switch (_c.label) {
|
|
22554
|
+
case 0: return [4 /*yield*/, _super.cancel.call(this)];
|
|
22555
|
+
case 1:
|
|
22556
|
+
_c.sent();
|
|
22557
|
+
return [2 /*return*/];
|
|
22558
|
+
}
|
|
22546
22559
|
});
|
|
22547
22560
|
});
|
|
22548
22561
|
};
|
|
@@ -28151,6 +28164,8 @@
|
|
|
28151
28164
|
AppEditor.prototype.ready = function (opts) {
|
|
28152
28165
|
return __awaiter(this, void 0, void 0, function () {
|
|
28153
28166
|
return __generator(this, function (_b) {
|
|
28167
|
+
if (this._$ready.value)
|
|
28168
|
+
return [2 /*return*/];
|
|
28154
28169
|
return [2 /*return*/, waitForTrue(this._$ready, opts)];
|
|
28155
28170
|
});
|
|
28156
28171
|
});
|
|
@@ -28507,6 +28522,10 @@
|
|
|
28507
28522
|
this.markForCheck();
|
|
28508
28523
|
}
|
|
28509
28524
|
};
|
|
28525
|
+
AppTabEditor.prototype.realignInkBar = function () {
|
|
28526
|
+
var _a;
|
|
28527
|
+
(_a = this.tabGroup) === null || _a === void 0 ? void 0 : _a.realignInkBar();
|
|
28528
|
+
};
|
|
28510
28529
|
AppTabEditor.prototype.onTabChange = function (event, queryTabIndexParamName) {
|
|
28511
28530
|
queryTabIndexParamName = queryTabIndexParamName || this.queryTabIndexParamName;
|
|
28512
28531
|
if (!queryTabIndexParamName || !this.route)
|