@sumaris-net/ngx-components 1.23.51 → 1.23.52
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 +6 -6
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/shared/observables.js +7 -7
- package/fesm2015/sumaris-net.ngx-components.js +6 -6
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -1043,11 +1043,11 @@
|
|
|
1043
1043
|
function filterFalse(obs, opts) {
|
|
1044
1044
|
return obs.pipe(operators.filter(function (v) { return v === false; }));
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function decorateWithTakeUntil(obs, opts) {
|
|
1047
1047
|
// Set take until notifier
|
|
1048
1048
|
var takeUntil$ = (opts === null || opts === void 0 ? void 0 : opts.stop) || ((opts === null || opts === void 0 ? void 0 : opts.timeout) && rxjs.timer(opts.timeout));
|
|
1049
1049
|
if (!takeUntil$)
|
|
1050
|
-
return obs;
|
|
1050
|
+
return obs; // Skip
|
|
1051
1051
|
// When stop, throw an error (useful when used with a toPromise())
|
|
1052
1052
|
if (opts.stopError) {
|
|
1053
1053
|
var error_1;
|
|
@@ -1068,15 +1068,15 @@
|
|
|
1068
1068
|
.pipe(operators.takeUntil(takeUntil$));
|
|
1069
1069
|
}
|
|
1070
1070
|
function firstNotNil(obs, opts) {
|
|
1071
|
-
return
|
|
1071
|
+
return decorateWithTakeUntil(obs.pipe(operators.first(isNotNil)), opts);
|
|
1072
1072
|
}
|
|
1073
1073
|
function firstTrue(obs, opts) {
|
|
1074
|
-
return
|
|
1074
|
+
return decorateWithTakeUntil(obs.pipe(operators.first(function (v) { return v === true; }), operators.map(function (_) { }) // Convert to void
|
|
1075
1075
|
), opts);
|
|
1076
1076
|
}
|
|
1077
1077
|
function firstFalse(obs, opts) {
|
|
1078
|
-
return
|
|
1079
|
-
);
|
|
1078
|
+
return decorateWithTakeUntil(obs.pipe(operators.first(function (v) { return v === false; }), operators.map(function (_) { }) // Convert to void
|
|
1079
|
+
), opts);
|
|
1080
1080
|
}
|
|
1081
1081
|
function firstTruePromise(obs, opts) {
|
|
1082
1082
|
return firstTrue(obs, Object.assign({ stopError: true }, opts)).toPromise();
|