@stemy/ngx-dynamic-form 10.2.20 → 10.2.24
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/stemy-ngx-dynamic-form.umd.js +14 -32
- package/bundles/stemy-ngx-dynamic-form.umd.js.map +1 -1
- package/bundles/stemy-ngx-dynamic-form.umd.min.js +1 -1
- package/bundles/stemy-ngx-dynamic-form.umd.min.js.map +1 -1
- package/esm2015/ngx-dynamic-form/services/dynamic-form.service.js +3 -4
- package/fesm2015/stemy-ngx-dynamic-form.js +2 -3
- package/fesm2015/stemy-ngx-dynamic-form.js.map +1 -1
- package/package.json +4 -4
|
@@ -189,8 +189,6 @@
|
|
|
189
189
|
return extendStatics(d, b);
|
|
190
190
|
};
|
|
191
191
|
function __extends(d, b) {
|
|
192
|
-
if (typeof b !== "function" && b !== null)
|
|
193
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
194
192
|
extendStatics(d, b);
|
|
195
193
|
function __() { this.constructor = d; }
|
|
196
194
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -376,13 +374,11 @@
|
|
|
376
374
|
}
|
|
377
375
|
return ar;
|
|
378
376
|
}
|
|
379
|
-
/** @deprecated */
|
|
380
377
|
function __spread() {
|
|
381
378
|
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
382
379
|
ar = ar.concat(__read(arguments[i]));
|
|
383
380
|
return ar;
|
|
384
381
|
}
|
|
385
|
-
/** @deprecated */
|
|
386
382
|
function __spreadArrays() {
|
|
387
383
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
388
384
|
s += arguments[i].length;
|
|
@@ -391,17 +387,7 @@
|
|
|
391
387
|
r[k] = a[j];
|
|
392
388
|
return r;
|
|
393
389
|
}
|
|
394
|
-
|
|
395
|
-
if (pack || arguments.length === 2)
|
|
396
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
397
|
-
if (ar || !(i in from)) {
|
|
398
|
-
if (!ar)
|
|
399
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
400
|
-
ar[i] = from[i];
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
404
|
-
}
|
|
390
|
+
;
|
|
405
391
|
function __await(v) {
|
|
406
392
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
407
393
|
}
|
|
@@ -466,21 +452,18 @@
|
|
|
466
452
|
function __importDefault(mod) {
|
|
467
453
|
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
468
454
|
}
|
|
469
|
-
function __classPrivateFieldGet(receiver,
|
|
470
|
-
if (
|
|
471
|
-
throw new TypeError("
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
455
|
+
function __classPrivateFieldGet(receiver, privateMap) {
|
|
456
|
+
if (!privateMap.has(receiver)) {
|
|
457
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
458
|
+
}
|
|
459
|
+
return privateMap.get(receiver);
|
|
475
460
|
}
|
|
476
|
-
function __classPrivateFieldSet(receiver,
|
|
477
|
-
if (
|
|
478
|
-
throw new TypeError("
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
483
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
461
|
+
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
462
|
+
if (!privateMap.has(receiver)) {
|
|
463
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
464
|
+
}
|
|
465
|
+
privateMap.set(receiver, value);
|
|
466
|
+
return value;
|
|
484
467
|
}
|
|
485
468
|
|
|
486
469
|
var FormSubject = /** @class */ (function (_super) {
|
|
@@ -616,7 +599,7 @@
|
|
|
616
599
|
});
|
|
617
600
|
};
|
|
618
601
|
DynamicFormService.prototype.serializeRecursive = function (formModel, formGroup) {
|
|
619
|
-
var _a;
|
|
602
|
+
var _a, _b;
|
|
620
603
|
return __awaiter(this, void 0, void 0, function () {
|
|
621
604
|
var result, _c, _d, _i, i, subModel, subControl, serializer, _e, _f, length, subArray, resArray, i_1, itemModel, _g, _h, _j, _k;
|
|
622
605
|
return __generator(this, function (_l) {
|
|
@@ -675,8 +658,7 @@
|
|
|
675
658
|
case 10:
|
|
676
659
|
if (subModel instanceof core.DynamicInputModel && !ngxUtils.ObjectUtils.isNullOrUndefined(subControl.value)) {
|
|
677
660
|
result[subModel.id] = subModel.inputType == "number"
|
|
678
|
-
? parseFloat(("" + subControl.value || "0").replace(/,/gi, "."))
|
|
679
|
-
: subControl.value;
|
|
661
|
+
? (_b = parseFloat(("" + subControl.value || "0").replace(/,/gi, "."))) !== null && _b !== void 0 ? _b : null : subControl.value;
|
|
680
662
|
return [3 /*break*/, 11];
|
|
681
663
|
}
|
|
682
664
|
result[subModel.id] = subControl.value;
|