@json-editor/json-editor 2.9.1 → 2.10.0
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/CHANGELOG.md +18 -0
- package/README.md +47 -1
- package/dist/jsoneditor.js +1 -1
- package/dist/jsoneditor.js.LICENSE.txt +1 -1
- package/dist/nonmin/jsoneditor.js +445 -124
- package/dist/nonmin/jsoneditor.js.map +1 -1
- package/docs/css_integration.html +17 -15
- package/docs/custom-editor.html +92 -0
- package/docs/index.html +4 -1
- package/docs/meta_schema.json +426 -398
- package/package.json +1 -1
- package/src/defaults.js +15 -1
- package/src/editor.js +23 -6
- package/src/editors/multiple.js +64 -7
- package/src/editors/object.js +0 -1
- package/src/iconlibs/bootstrap.js +28 -0
- package/src/iconlibs/index.js +2 -0
- package/src/resolvers.js +5 -2
- package/src/schemaloader.js +3 -1
- package/src/themes/bootstrap3.js +1 -1
- package/src/utilities.js +22 -0
- package/src/validator.js +93 -0
- package/tests/codeceptjs/constrains/contains_test.js +36 -0
- package/tests/codeceptjs/constrains/dependentSchemas_test.js +15 -0
- package/tests/codeceptjs/constrains/if-then-else_test.js +143 -0
- package/tests/codeceptjs/core_test.js +27 -27
- package/tests/codeceptjs/editors/advanced_test.js +11 -10
- package/tests/codeceptjs/editors/array_any_of_test.js +35 -35
- package/tests/codeceptjs/editors/array_test.js +757 -767
- package/tests/codeceptjs/editors/autocomplete_test.js +1 -3
- package/tests/codeceptjs/editors/button_test.js +25 -24
- package/tests/codeceptjs/editors/checkbox_test.js +17 -16
- package/tests/codeceptjs/editors/colorpicker_test.js +18 -16
- package/tests/codeceptjs/editors/datetime_test.js +7 -7
- package/tests/codeceptjs/editors/inheritance_test.js +7 -8
- package/tests/codeceptjs/editors/integer_test.js +71 -72
- package/tests/codeceptjs/editors/jodit_test.js +16 -17
- package/tests/codeceptjs/editors/multiselect_test.js +5 -5
- package/tests/codeceptjs/editors/number_test.js +64 -65
- package/tests/codeceptjs/editors/object_test.js +39 -13
- package/tests/codeceptjs/editors/option-no_default_values_test.js +4 -4
- package/tests/codeceptjs/editors/programmatic-changes_test.js +2 -3
- package/tests/codeceptjs/editors/range_test.js +1 -3
- package/tests/codeceptjs/editors/select_test.js +3 -5
- package/tests/codeceptjs/editors/stepper_test.js +5 -7
- package/tests/codeceptjs/editors/string_test.js +8 -8
- package/tests/codeceptjs/editors/table-confirm-delete_test.js +7 -9
- package/tests/codeceptjs/editors/uuid_test.js +10 -10
- package/tests/codeceptjs/editors/validation_test.js +1 -1
- package/tests/codeceptjs/{editors/issues → issues}/issue-gh-1133_test.js +1 -3
- package/tests/codeceptjs/issues/issue-gh-1158-2_test.js +10 -0
- package/tests/codeceptjs/{editors/issues → issues}/issue-gh-1158_test.js +0 -2
- package/tests/codeceptjs/issues/issue-gh-1164_test.js +10 -0
- package/tests/codeceptjs/issues/issue-gh-1211_test.js +17 -0
- package/tests/codeceptjs/{editors/issues → issues}/issue-gh-1257_test.js +2 -4
- package/tests/codeceptjs/issues/issue-gh-1338_test.js +16 -0
- package/tests/codeceptjs/issues/issue-gh-1347_test.js +8 -0
- package/tests/codeceptjs/issues/issue-gh-795_test.js +13 -0
- package/tests/codeceptjs/issues/issue-gh-810_test.js +52 -0
- package/tests/codeceptjs/issues/issue-gh-812_test.js +25 -0
- package/tests/codeceptjs/meta-schema_test.js +10 -10
- package/tests/codeceptjs/schemaloader_test.js +7 -7
- package/tests/codeceptjs/themes_test.js +31 -0
- package/tests/pages/autocomplete.html +1 -0
- package/tests/pages/contains.html +38 -0
- package/tests/pages/dependentSchemas.html +52 -0
- package/tests/pages/if-else.html +57 -0
- package/tests/pages/if-then-else-allOf.html +117 -0
- package/tests/pages/if-then-else.html +64 -0
- package/tests/pages/if-then.html +57 -0
- package/tests/pages/issues/issue-gh-1158-2.html +189 -0
- package/tests/pages/issues/issue-gh-1165.html +63 -0
- package/tests/pages/issues/issue-gh-1165.json +8 -0
- package/tests/pages/issues/issue-gh-1211.html +1022 -0
- package/tests/pages/issues/issue-gh-1338.html +74 -0
- package/tests/pages/issues/issue-gh-1347.html +142 -0
- package/tests/pages/issues/issue-gh-795.html +58 -0
- package/tests/pages/issues/issue-gh-810.html +149 -0
- package/tests/pages/maxContains.html +39 -0
- package/tests/pages/meta-schema.html +28 -0
- package/tests/pages/meta_schema.json +426 -398
- package/tests/pages/minContains.html +39 -0
- package/tests/pages/option-dependencies.html +106 -0
- package/tests/pages/themes.html +3 -1
- package/tests/unit/core.spec.js +2 -5
- package/tests/codeceptjs/editors/issues/issue-gh-1164_test.js +0 -12
- package/tests/codeceptjs/editors/issues/issue-gh-812_test.js +0 -32
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* * @name JSON Editor
|
|
4
4
|
* * @description JSON Schema Based Editor
|
|
5
5
|
* * This library is the continuation of jdorn's great work (see also https://github.com/jdorn/json-editor/issues/800)
|
|
6
|
-
* * @version "2.
|
|
6
|
+
* * @version "2.10.0"
|
|
7
7
|
* * @author Jeremy Dorn
|
|
8
8
|
* * @see https://github.com/jdorn/json-editor/
|
|
9
9
|
* * @see https://github.com/json-editor/json-editor
|
|
@@ -198,6 +198,20 @@ languages.en = {
|
|
|
198
198
|
* @variables This key takes one variable: The maximum character count
|
|
199
199
|
*/
|
|
200
200
|
error_maxLength: 'Value must be at most {{0}} characters long',
|
|
201
|
+
/**
|
|
202
|
+
* When no array items validates the contains schema
|
|
203
|
+
*/
|
|
204
|
+
error_contains: 'No items match contains',
|
|
205
|
+
/**
|
|
206
|
+
* When an array have too few items that validate agaist contains schema
|
|
207
|
+
* @variables This key takes two variable: The valid items count and the minContains value
|
|
208
|
+
*/
|
|
209
|
+
error_minContains: 'Contains match count {{0}} is less than minimum contains count of {{1}}',
|
|
210
|
+
/**
|
|
211
|
+
* When an array have too many items that validate agaist contains schema
|
|
212
|
+
* @variables This key takes two variable: The valid items count and the maxContains value
|
|
213
|
+
*/
|
|
214
|
+
error_maxContains: 'Contains match count {{0}} exceeds maximum contains count of {{1}}',
|
|
201
215
|
/**
|
|
202
216
|
* When a value does not have enough characters
|
|
203
217
|
* @variables This key takes one variable: The minimum character count
|
|
@@ -442,7 +456,7 @@ languages.en = {
|
|
|
442
456
|
/**
|
|
443
457
|
* Warning when deleting a node
|
|
444
458
|
*/
|
|
445
|
-
button_delete_node_warning: 'Are you sure you want to remove this
|
|
459
|
+
button_delete_node_warning: 'Are you sure you want to remove this item?'
|
|
446
460
|
};
|
|
447
461
|
|
|
448
462
|
/* Default per-editor options */
|
|
@@ -539,14 +553,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
539
553
|
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
540
554
|
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ "./node_modules/core-js/modules/es.object.keys.js");
|
|
541
555
|
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
542
|
-
/* harmony import */ var
|
|
543
|
-
/* harmony import */ var
|
|
544
|
-
/* harmony import */ var
|
|
545
|
-
/* harmony import */ var
|
|
546
|
-
/* harmony import */ var
|
|
547
|
-
/* harmony import */ var
|
|
548
|
-
/* harmony import */ var
|
|
549
|
-
/* harmony import */ var
|
|
556
|
+
/* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.string.starts-with.js */ "./node_modules/core-js/modules/es.string.starts-with.js");
|
|
557
|
+
/* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
558
|
+
/* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.is-array.js */ "./node_modules/core-js/modules/es.array.is-array.js");
|
|
559
|
+
/* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
560
|
+
/* harmony import */ var core_js_modules_es_array_some_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.some.js */ "./node_modules/core-js/modules/es.array.some.js");
|
|
561
|
+
/* harmony import */ var core_js_modules_es_array_some_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_some_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
562
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
|
|
563
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
550
564
|
/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
|
|
551
565
|
/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
552
566
|
/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");
|
|
@@ -732,9 +746,15 @@ var AbstractEditor = /*#__PURE__*/function () {
|
|
|
732
746
|
return;
|
|
733
747
|
}
|
|
734
748
|
Object.keys(deps).forEach(function (dependency) {
|
|
735
|
-
var path
|
|
736
|
-
|
|
737
|
-
|
|
749
|
+
var path;
|
|
750
|
+
var isFullPath = dependency.startsWith(_this.jsoneditor.root.path);
|
|
751
|
+
if (isFullPath) {
|
|
752
|
+
path = dependency;
|
|
753
|
+
} else {
|
|
754
|
+
path = _this.path.split('.');
|
|
755
|
+
path[path.length - 1] = dependency;
|
|
756
|
+
path = path.join('.');
|
|
757
|
+
}
|
|
738
758
|
_this.jsoneditor.watch(path, function () {
|
|
739
759
|
_this.evaluateDependencies();
|
|
740
760
|
});
|
|
@@ -752,13 +772,20 @@ var AbstractEditor = /*#__PURE__*/function () {
|
|
|
752
772
|
if (!deps) {
|
|
753
773
|
return;
|
|
754
774
|
}
|
|
775
|
+
|
|
755
776
|
// Assume true and set to false if any unmet dependencies are found
|
|
756
777
|
var previousStatus = this.dependenciesFulfilled;
|
|
757
778
|
this.dependenciesFulfilled = true;
|
|
758
779
|
Object.keys(deps).forEach(function (dependency) {
|
|
759
|
-
var path
|
|
760
|
-
|
|
761
|
-
|
|
780
|
+
var path;
|
|
781
|
+
var isFullPath = dependency.startsWith(_this2.jsoneditor.root.path);
|
|
782
|
+
if (isFullPath) {
|
|
783
|
+
path = dependency;
|
|
784
|
+
} else {
|
|
785
|
+
path = _this2.path.split('.');
|
|
786
|
+
path[path.length - 1] = dependency;
|
|
787
|
+
path = path.join('.');
|
|
788
|
+
}
|
|
762
789
|
var choices = deps[dependency];
|
|
763
790
|
_this2.checkDependency(path, choices);
|
|
764
791
|
});
|
|
@@ -6197,6 +6224,7 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6197
6224
|
key: "switchEditor",
|
|
6198
6225
|
value: function switchEditor(i) {
|
|
6199
6226
|
var _this = this;
|
|
6227
|
+
this.lastType = this.type;
|
|
6200
6228
|
if (!this.editors[i]) {
|
|
6201
6229
|
this.buildChildEditor(i);
|
|
6202
6230
|
}
|
|
@@ -6206,9 +6234,11 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6206
6234
|
this.editors.forEach(function (editor, type) {
|
|
6207
6235
|
if (!editor) return;
|
|
6208
6236
|
if (_this.type === type) {
|
|
6209
|
-
if (_this.keep_values) editor.setValue(currentValue, true);
|
|
6237
|
+
if (_this.keep_values || _this["if"]) editor.setValue(currentValue, true);
|
|
6210
6238
|
editor.container.style.display = '';
|
|
6211
|
-
} else
|
|
6239
|
+
} else {
|
|
6240
|
+
editor.container.style.display = 'none';
|
|
6241
|
+
}
|
|
6212
6242
|
});
|
|
6213
6243
|
this.refreshValue();
|
|
6214
6244
|
this.refreshHeaderText();
|
|
@@ -6270,6 +6300,30 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6270
6300
|
this.anyOf = true;
|
|
6271
6301
|
this.types = this.schema.anyOf;
|
|
6272
6302
|
delete this.schema.anyOf;
|
|
6303
|
+
} else if (this.schema["if"]) {
|
|
6304
|
+
this["if"] = true;
|
|
6305
|
+
this.ifSchema = JSON.parse(JSON.stringify(this.schema["if"]));
|
|
6306
|
+
this.thenSchema = {
|
|
6307
|
+
title: 'then'
|
|
6308
|
+
};
|
|
6309
|
+
this.elseSchema = {
|
|
6310
|
+
title: 'else'
|
|
6311
|
+
};
|
|
6312
|
+
this.types = [];
|
|
6313
|
+
if (this.schema.then) {
|
|
6314
|
+
(0,_utilities_js__WEBPACK_IMPORTED_MODULE_32__.mergeDeep)(this.thenSchema, this.schema, this.schema.then);
|
|
6315
|
+
}
|
|
6316
|
+
if (this.schema["else"]) {
|
|
6317
|
+
(0,_utilities_js__WEBPACK_IMPORTED_MODULE_32__.mergeDeep)(this.elseSchema, this.schema, this.schema["else"]);
|
|
6318
|
+
}
|
|
6319
|
+
this.types.push(this.thenSchema);
|
|
6320
|
+
this.types.push(this.elseSchema);
|
|
6321
|
+
this.types.forEach(function (schema) {
|
|
6322
|
+
delete schema["if"];
|
|
6323
|
+
delete schema.then;
|
|
6324
|
+
delete schema["else"];
|
|
6325
|
+
});
|
|
6326
|
+
delete this.schema["if"];
|
|
6273
6327
|
} else {
|
|
6274
6328
|
if (!this.schema.type || this.schema.type === 'any') {
|
|
6275
6329
|
this.types = ['string', 'number', 'integer', 'boolean', 'object', 'array', 'null'];
|
|
@@ -6301,9 +6355,11 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6301
6355
|
var _this3 = this;
|
|
6302
6356
|
var container = this.container;
|
|
6303
6357
|
this.header = this.label = this.theme.getFormInputLabel(this.getTitle(), this.isRequired());
|
|
6304
|
-
this.container.appendChild(this.header);
|
|
6305
6358
|
this.switcher = this.theme.getSwitcher(this.display_text);
|
|
6306
|
-
|
|
6359
|
+
if (!this["if"]) {
|
|
6360
|
+
this.container.appendChild(this.header);
|
|
6361
|
+
container.appendChild(this.switcher);
|
|
6362
|
+
}
|
|
6307
6363
|
this.switcher.addEventListener('change', function (e) {
|
|
6308
6364
|
e.preventDefault();
|
|
6309
6365
|
e.stopPropagation();
|
|
@@ -6342,6 +6398,7 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6342
6398
|
this.refreshValue();
|
|
6343
6399
|
this.refreshHeaderText();
|
|
6344
6400
|
}
|
|
6401
|
+
this.switchIf();
|
|
6345
6402
|
_get(_getPrototypeOf(MultipleEditor.prototype), "onChildEditorChange", this).call(this);
|
|
6346
6403
|
}
|
|
6347
6404
|
}, {
|
|
@@ -6357,6 +6414,24 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6357
6414
|
value: function refreshValue() {
|
|
6358
6415
|
this.value = this.editors[this.type].getValue();
|
|
6359
6416
|
}
|
|
6417
|
+
}, {
|
|
6418
|
+
key: "switchIf",
|
|
6419
|
+
value: function switchIf() {
|
|
6420
|
+
if (this.ifSchema && this.value) {
|
|
6421
|
+
var type = this.getIfType(this.value);
|
|
6422
|
+
if (this.lastType !== type) {
|
|
6423
|
+
this.switchEditor(type);
|
|
6424
|
+
this.editors[this.type].setValue(this.value, true);
|
|
6425
|
+
}
|
|
6426
|
+
this.switcher.value = this.display_text[this.type];
|
|
6427
|
+
}
|
|
6428
|
+
}
|
|
6429
|
+
}, {
|
|
6430
|
+
key: "getIfType",
|
|
6431
|
+
value: function getIfType(value) {
|
|
6432
|
+
var errors = this.jsoneditor.validator._validateSchema(this.ifSchema, value);
|
|
6433
|
+
return errors.length === 0 ? 0 : 1;
|
|
6434
|
+
}
|
|
6360
6435
|
}, {
|
|
6361
6436
|
key: "setValue",
|
|
6362
6437
|
value: function setValue(val, initial) {
|
|
@@ -6405,6 +6480,9 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6405
6480
|
finalI = fitTestVal.i;
|
|
6406
6481
|
}
|
|
6407
6482
|
}
|
|
6483
|
+
if (this["if"]) {
|
|
6484
|
+
finalI = this.getIfType(val);
|
|
6485
|
+
}
|
|
6408
6486
|
if (finalI === null) {
|
|
6409
6487
|
finalI = this.type;
|
|
6410
6488
|
}
|
|
@@ -6413,6 +6491,7 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6413
6491
|
var typeChanged = this.type !== prevType;
|
|
6414
6492
|
if (typeChanged) {
|
|
6415
6493
|
this.switchEditor(this.type);
|
|
6494
|
+
this.editors[this.type].setValue(val, initial);
|
|
6416
6495
|
}
|
|
6417
6496
|
if (typeof val !== 'undefined') {
|
|
6418
6497
|
this.editors[this.type].setValue(val, initial);
|
|
@@ -8182,7 +8261,6 @@ var ObjectEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
8182
8261
|
var _this9 = this;
|
|
8183
8262
|
var labelText;
|
|
8184
8263
|
var checkbox = this.theme.getCheckbox();
|
|
8185
|
-
checkbox.style.width = 'auto';
|
|
8186
8264
|
if (this.schema.properties[key] && this.schema.properties[key].title) {
|
|
8187
8265
|
labelText = this.schema.properties[key].title;
|
|
8188
8266
|
} else {
|
|
@@ -12512,6 +12590,112 @@ var AbstractIconLib = /*#__PURE__*/function () {
|
|
|
12512
12590
|
|
|
12513
12591
|
/***/ }),
|
|
12514
12592
|
|
|
12593
|
+
/***/ "./src/iconlibs/bootstrap.js":
|
|
12594
|
+
/*!***********************************!*\
|
|
12595
|
+
!*** ./src/iconlibs/bootstrap.js ***!
|
|
12596
|
+
\***********************************/
|
|
12597
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12598
|
+
|
|
12599
|
+
"use strict";
|
|
12600
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12601
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12602
|
+
/* harmony export */ "bootstrapIconlib": () => (/* binding */ bootstrapIconlib)
|
|
12603
|
+
/* harmony export */ });
|
|
12604
|
+
/* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ "./node_modules/core-js/modules/es.object.set-prototype-of.js");
|
|
12605
|
+
/* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
12606
|
+
/* harmony import */ var core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.function.bind.js */ "./node_modules/core-js/modules/es.function.bind.js");
|
|
12607
|
+
/* harmony import */ var core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
12608
|
+
/* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ "./node_modules/core-js/modules/es.object.get-prototype-of.js");
|
|
12609
|
+
/* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
12610
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
|
|
12611
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
12612
|
+
/* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.reflect.construct.js */ "./node_modules/core-js/modules/es.reflect.construct.js");
|
|
12613
|
+
/* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
12614
|
+
/* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.create.js */ "./node_modules/core-js/modules/es.object.create.js");
|
|
12615
|
+
/* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
12616
|
+
/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js");
|
|
12617
|
+
/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
12618
|
+
/* harmony import */ var core_js_modules_es_symbol_to_primitive_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ "./node_modules/core-js/modules/es.symbol.to-primitive.js");
|
|
12619
|
+
/* harmony import */ var core_js_modules_es_symbol_to_primitive_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_to_primitive_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
12620
|
+
/* harmony import */ var core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ "./node_modules/core-js/modules/es.date.to-primitive.js");
|
|
12621
|
+
/* harmony import */ var core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
12622
|
+
/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
|
|
12623
|
+
/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
12624
|
+
/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");
|
|
12625
|
+
/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
12626
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");
|
|
12627
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
12628
|
+
/* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ "./node_modules/core-js/modules/es.symbol.iterator.js");
|
|
12629
|
+
/* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
12630
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
|
|
12631
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
12632
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
|
|
12633
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
12634
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
|
|
12635
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
12636
|
+
/* harmony import */ var _iconlib_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../iconlib.js */ "./src/iconlib.js");
|
|
12637
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12638
|
+
|
|
12639
|
+
|
|
12640
|
+
|
|
12641
|
+
|
|
12642
|
+
|
|
12643
|
+
|
|
12644
|
+
|
|
12645
|
+
|
|
12646
|
+
|
|
12647
|
+
|
|
12648
|
+
|
|
12649
|
+
|
|
12650
|
+
|
|
12651
|
+
|
|
12652
|
+
|
|
12653
|
+
|
|
12654
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12655
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
12656
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
12657
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
12658
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12659
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12660
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12661
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12662
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
12663
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12664
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12665
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12666
|
+
|
|
12667
|
+
var iconPrefix = 'bi bi-';
|
|
12668
|
+
var mapping = {
|
|
12669
|
+
collapse: 'chevron-down',
|
|
12670
|
+
expand: 'chevron-right',
|
|
12671
|
+
"delete": 'trash',
|
|
12672
|
+
edit: 'pencil',
|
|
12673
|
+
add: 'plus',
|
|
12674
|
+
subtract: 'dash',
|
|
12675
|
+
cancel: 'x-circle',
|
|
12676
|
+
save: 'save',
|
|
12677
|
+
moveup: 'arrow-up',
|
|
12678
|
+
moveright: 'arrow-right',
|
|
12679
|
+
movedown: 'arrow-down',
|
|
12680
|
+
moveleft: 'arrow-left',
|
|
12681
|
+
copy: 'clipboard',
|
|
12682
|
+
clear: 'x-circle',
|
|
12683
|
+
time: 'clock',
|
|
12684
|
+
calendar: 'calendar',
|
|
12685
|
+
edit_properties: 'list-ul'
|
|
12686
|
+
};
|
|
12687
|
+
var bootstrapIconlib = /*#__PURE__*/function (_AbstractIconLib) {
|
|
12688
|
+
_inherits(bootstrapIconlib, _AbstractIconLib);
|
|
12689
|
+
var _super = _createSuper(bootstrapIconlib);
|
|
12690
|
+
function bootstrapIconlib() {
|
|
12691
|
+
_classCallCheck(this, bootstrapIconlib);
|
|
12692
|
+
return _super.call(this, iconPrefix, mapping);
|
|
12693
|
+
}
|
|
12694
|
+
return _createClass(bootstrapIconlib);
|
|
12695
|
+
}(_iconlib_js__WEBPACK_IMPORTED_MODULE_16__.AbstractIconLib);
|
|
12696
|
+
|
|
12697
|
+
/***/ }),
|
|
12698
|
+
|
|
12515
12699
|
/***/ "./src/iconlibs/bootstrap3.js":
|
|
12516
12700
|
/*!************************************!*\
|
|
12517
12701
|
!*** ./src/iconlibs/bootstrap3.js ***!
|
|
@@ -12954,6 +13138,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12954
13138
|
/* harmony import */ var _jqueryui_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./jqueryui.js */ "./src/iconlibs/jqueryui.js");
|
|
12955
13139
|
/* harmony import */ var _openiconic_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./openiconic.js */ "./src/iconlibs/openiconic.js");
|
|
12956
13140
|
/* harmony import */ var _spectre_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./spectre.js */ "./src/iconlibs/spectre.js");
|
|
13141
|
+
/* harmony import */ var _bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./bootstrap */ "./src/iconlibs/bootstrap.js");
|
|
12957
13142
|
// import { bootstrap2Iconlib } from './bootstrap2.js'
|
|
12958
13143
|
|
|
12959
13144
|
|
|
@@ -12965,8 +13150,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12965
13150
|
// import { materialiconsIconlib } from './materialicons.js'
|
|
12966
13151
|
|
|
12967
13152
|
|
|
13153
|
+
|
|
12968
13154
|
var iconlibs = {
|
|
12969
13155
|
// bootstrap2: bootstrap2Iconlib,
|
|
13156
|
+
bootstrap: _bootstrap__WEBPACK_IMPORTED_MODULE_7__.bootstrapIconlib,
|
|
12970
13157
|
bootstrap3: _bootstrap3_js__WEBPACK_IMPORTED_MODULE_0__.bootstrap3Iconlib,
|
|
12971
13158
|
fontawesome3: _fontawesome3_js__WEBPACK_IMPORTED_MODULE_1__.fontawesome3Iconlib,
|
|
12972
13159
|
fontawesome4: _fontawesome4_js__WEBPACK_IMPORTED_MODULE_2__.fontawesome4Iconlib,
|
|
@@ -13412,6 +13599,11 @@ var oneOf = function oneOf(schema) {
|
|
|
13412
13599
|
return (schema.oneOf || schema.anyOf) && 'multiple';
|
|
13413
13600
|
};
|
|
13414
13601
|
|
|
13602
|
+
/* Use the multiple editor for schemas with `if` set */
|
|
13603
|
+
var ifThenElse = function ifThenElse(schema) {
|
|
13604
|
+
return schema["if"] && 'multiple';
|
|
13605
|
+
};
|
|
13606
|
+
|
|
13415
13607
|
/* Specialized editor for date, time and datetime-local formats */
|
|
13416
13608
|
var date = function date(schema) {
|
|
13417
13609
|
return ['string', 'integer'].includes(schema.type) && ['date', 'time', 'datetime-local'].includes(schema.format) && 'datetime';
|
|
@@ -13462,7 +13654,7 @@ var xhtml = function xhtml(schema) {
|
|
|
13462
13654
|
};
|
|
13463
13655
|
|
|
13464
13656
|
/* Use the ace editor for schemas with format equals any of ace editor modes */
|
|
13465
|
-
var aceModes = ['actionscript', 'batchfile', 'c', 'c++', 'cpp', 'coffee', 'csharp', 'css', 'dart', 'django', 'ejs', 'erlang', 'golang', 'groovy', 'handlebars', 'haskell', 'haxe', 'html', 'ini', 'jade', 'java', 'javascript', 'json', 'less', 'lisp', 'lua', 'makefile', 'matlab', 'mysql', 'objectivec', 'pascal', 'perl', 'pgsql', 'php', 'python', 'r', 'ruby', 'sass', 'scala', 'scss', 'smarty', 'sql', 'sqlserver', 'stylus', 'svg', 'twig', 'vbscript', 'xml', 'yaml'];
|
|
13657
|
+
var aceModes = ['actionscript', 'batchfile', 'c', 'c++', 'cpp', 'coffee', 'csharp', 'css', 'dart', 'django', 'ejs', 'erlang', 'golang', 'groovy', 'handlebars', 'haskell', 'haxe', 'html', 'ini', 'jade', 'java', 'javascript', 'json', 'less', 'lisp', 'lua', 'makefile', 'matlab', 'mysql', 'objectivec', 'pascal', 'perl', 'pgsql', 'php', 'python', 'r', 'ruby', 'sass', 'scala', 'scss', 'sh', 'smarty', 'sql', 'sqlserver', 'stylus', 'svg', 'twig', 'vbscript', 'xml', 'yaml'];
|
|
13466
13658
|
var ace = function ace(schema) {
|
|
13467
13659
|
return schema.type === 'string' && aceModes.includes(schema.format) && 'ace';
|
|
13468
13660
|
};
|
|
@@ -13474,7 +13666,7 @@ var colorPicker = function colorPicker(schema) {
|
|
|
13474
13666
|
};
|
|
13475
13667
|
|
|
13476
13668
|
/* Export resolvers in order of discovery, first to last */
|
|
13477
|
-
var resolvers = [colorPicker, ip, ace, xhtml, markdown, jodit, autoComplete, uuid, info, button, stepper, describeBy, starratings, date, oneOf, arraysOfStrings, enumeratedProperties, enumSource, table, upload, base64, any, _boolean, signature, primitive, object, defaultResolver];
|
|
13669
|
+
var resolvers = [colorPicker, ip, ace, xhtml, markdown, jodit, autoComplete, uuid, info, button, stepper, describeBy, starratings, date, oneOf, ifThenElse, arraysOfStrings, enumeratedProperties, enumSource, table, upload, base64, any, _boolean, signature, primitive, object, defaultResolver];
|
|
13478
13670
|
|
|
13479
13671
|
/***/ }),
|
|
13480
13672
|
|
|
@@ -13812,7 +14004,9 @@ var SchemaLoader = /*#__PURE__*/function () {
|
|
|
13812
14004
|
// If local ref
|
|
13813
14005
|
if (refWithPointerSplit.length === 2 && !this.refs_with_info[_schema.$ref]) {
|
|
13814
14006
|
var sub = this.expandRecursivePointer(this.schema, refWithPointerSplit[1]);
|
|
13815
|
-
|
|
14007
|
+
var expandedSchema = this.extendSchemas(_schema, this.expandSchema(sub));
|
|
14008
|
+
delete expandedSchema.$ref;
|
|
14009
|
+
return expandedSchema;
|
|
13816
14010
|
}
|
|
13817
14011
|
var refObj = refWithPointerSplit.length > 2 ? this.refs_with_info['#' + refWithPointerSplit[1]] : this.refs_with_info[_schema.$ref];
|
|
13818
14012
|
delete _schema.$ref;
|
|
@@ -15697,6 +15891,23 @@ barebonesTheme.rules = _barebones_css_js__WEBPACK_IMPORTED_MODULE_17__["default"
|
|
|
15697
15891
|
|
|
15698
15892
|
/***/ }),
|
|
15699
15893
|
|
|
15894
|
+
/***/ "./src/themes/bootstrap3.css.js":
|
|
15895
|
+
/*!**************************************!*\
|
|
15896
|
+
!*** ./src/themes/bootstrap3.css.js ***!
|
|
15897
|
+
\**************************************/
|
|
15898
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15899
|
+
|
|
15900
|
+
"use strict";
|
|
15901
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15902
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15903
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15904
|
+
/* harmony export */ });
|
|
15905
|
+
/* eslint-disable */
|
|
15906
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({});
|
|
15907
|
+
/* eslint-enable */
|
|
15908
|
+
|
|
15909
|
+
/***/ }),
|
|
15910
|
+
|
|
15700
15911
|
/***/ "./src/themes/bootstrap3.js":
|
|
15701
15912
|
/*!**********************************!*\
|
|
15702
15913
|
!*** ./src/themes/bootstrap3.js ***!
|
|
@@ -15747,8 +15958,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15747
15958
|
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
|
|
15748
15959
|
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
15749
15960
|
/* harmony import */ var _theme_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../theme.js */ "./src/theme.js");
|
|
15750
|
-
/* harmony import */ var
|
|
15751
|
-
/* harmony import */ var _bootstrap3_css__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_bootstrap3_css__WEBPACK_IMPORTED_MODULE_20__);
|
|
15961
|
+
/* harmony import */ var _bootstrap3_css_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./bootstrap3.css.js */ "./src/themes/bootstrap3.css.js");
|
|
15752
15962
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
15753
15963
|
|
|
15754
15964
|
|
|
@@ -16106,7 +16316,7 @@ var bootstrap3Theme = /*#__PURE__*/function (_AbstractTheme) {
|
|
|
16106
16316
|
}(_theme_js__WEBPACK_IMPORTED_MODULE_19__.AbstractTheme);
|
|
16107
16317
|
|
|
16108
16318
|
/* Custom stylesheet rules. format: "selector" : "CSS rules" */
|
|
16109
|
-
bootstrap3Theme.rules =
|
|
16319
|
+
bootstrap3Theme.rules = _bootstrap3_css_js__WEBPACK_IMPORTED_MODULE_20__["default"];
|
|
16110
16320
|
|
|
16111
16321
|
/***/ }),
|
|
16112
16322
|
|
|
@@ -19503,7 +19713,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19503
19713
|
/* harmony export */ "hasOwnProperty": () => (/* binding */ hasOwnProperty),
|
|
19504
19714
|
/* harmony export */ "isInteger": () => (/* binding */ isInteger),
|
|
19505
19715
|
/* harmony export */ "isNumber": () => (/* binding */ isNumber),
|
|
19716
|
+
/* harmony export */ "isObject": () => (/* binding */ isObject),
|
|
19506
19717
|
/* harmony export */ "isPlainObject": () => (/* binding */ isPlainObject),
|
|
19718
|
+
/* harmony export */ "mergeDeep": () => (/* binding */ mergeDeep),
|
|
19507
19719
|
/* harmony export */ "trigger": () => (/* binding */ trigger)
|
|
19508
19720
|
/* harmony export */ });
|
|
19509
19721
|
/* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.is-array.js */ "./node_modules/core-js/modules/es.array.is-array.js");
|
|
@@ -19532,18 +19744,39 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19532
19744
|
/* harmony import */ var core_js_modules_es_parse_int_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_parse_int_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
19533
19745
|
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");
|
|
19534
19746
|
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
19535
|
-
/* harmony import */ var
|
|
19536
|
-
/* harmony import */ var
|
|
19537
|
-
/* harmony import */ var
|
|
19538
|
-
/* harmony import */ var
|
|
19539
|
-
/* harmony import */ var
|
|
19540
|
-
/* harmony import */ var
|
|
19541
|
-
/* harmony import */ var
|
|
19542
|
-
/* harmony import */ var
|
|
19543
|
-
/* harmony import */ var
|
|
19544
|
-
/* harmony import */ var
|
|
19545
|
-
/* harmony import */ var
|
|
19546
|
-
/* harmony import */ var
|
|
19747
|
+
/* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.object.assign.js */ "./node_modules/core-js/modules/es.object.assign.js");
|
|
19748
|
+
/* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
19749
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
|
|
19750
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
19751
|
+
/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
|
|
19752
|
+
/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
19753
|
+
/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");
|
|
19754
|
+
/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_16__);
|
|
19755
|
+
/* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ "./node_modules/core-js/modules/es.symbol.iterator.js");
|
|
19756
|
+
/* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
19757
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
|
|
19758
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
19759
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
|
|
19760
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
19761
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
|
|
19762
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
19763
|
+
/* harmony import */ var core_js_modules_es_symbol_to_primitive_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ "./node_modules/core-js/modules/es.symbol.to-primitive.js");
|
|
19764
|
+
/* harmony import */ var core_js_modules_es_symbol_to_primitive_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_to_primitive_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
19765
|
+
/* harmony import */ var core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ "./node_modules/core-js/modules/es.date.to-primitive.js");
|
|
19766
|
+
/* harmony import */ var core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_22__);
|
|
19767
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");
|
|
19768
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_23__);
|
|
19769
|
+
/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js");
|
|
19770
|
+
/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_24__);
|
|
19771
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19772
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
19773
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
19774
|
+
|
|
19775
|
+
|
|
19776
|
+
|
|
19777
|
+
|
|
19778
|
+
|
|
19779
|
+
|
|
19547
19780
|
|
|
19548
19781
|
|
|
19549
19782
|
|
|
@@ -19663,6 +19896,27 @@ function generateUUID() {
|
|
|
19663
19896
|
return (c === 'x' ? r : r & 0x3 | 0x8).toString(16);
|
|
19664
19897
|
});
|
|
19665
19898
|
}
|
|
19899
|
+
function isObject(item) {
|
|
19900
|
+
return item && _typeof(item) === 'object' && !Array.isArray(item);
|
|
19901
|
+
}
|
|
19902
|
+
function mergeDeep(target) {
|
|
19903
|
+
for (var _len2 = arguments.length, sources = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
19904
|
+
sources[_key2 - 1] = arguments[_key2];
|
|
19905
|
+
}
|
|
19906
|
+
if (!sources.length) return target;
|
|
19907
|
+
var source = sources.shift();
|
|
19908
|
+
if (isObject(target) && isObject(source)) {
|
|
19909
|
+
for (var key in source) {
|
|
19910
|
+
if (isObject(source[key])) {
|
|
19911
|
+
if (!target[key]) Object.assign(target, _defineProperty({}, key, {}));
|
|
19912
|
+
mergeDeep(target[key], source[key]);
|
|
19913
|
+
} else {
|
|
19914
|
+
Object.assign(target, _defineProperty({}, key, source[key]));
|
|
19915
|
+
}
|
|
19916
|
+
}
|
|
19917
|
+
}
|
|
19918
|
+
return mergeDeep.apply(void 0, [target].concat(sources));
|
|
19919
|
+
}
|
|
19666
19920
|
|
|
19667
19921
|
/***/ }),
|
|
19668
19922
|
|
|
@@ -19677,30 +19931,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19677
19931
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19678
19932
|
/* harmony export */ "Validator": () => (/* binding */ Validator)
|
|
19679
19933
|
/* harmony export */ });
|
|
19680
|
-
/* harmony import */ var
|
|
19681
|
-
/* harmony import */ var
|
|
19682
|
-
/* harmony import */ var
|
|
19683
|
-
/* harmony import */ var
|
|
19684
|
-
/* harmony import */ var
|
|
19685
|
-
/* harmony import */ var
|
|
19686
|
-
/* harmony import */ var
|
|
19687
|
-
/* harmony import */ var
|
|
19688
|
-
/* harmony import */ var
|
|
19689
|
-
/* harmony import */ var
|
|
19690
|
-
/* harmony import */ var
|
|
19691
|
-
/* harmony import */ var
|
|
19692
|
-
/* harmony import */ var
|
|
19693
|
-
/* harmony import */ var
|
|
19694
|
-
/* harmony import */ var
|
|
19695
|
-
/* harmony import */ var
|
|
19696
|
-
/* harmony import */ var
|
|
19697
|
-
/* harmony import */ var
|
|
19698
|
-
/* harmony import */ var
|
|
19699
|
-
/* harmony import */ var
|
|
19700
|
-
/* harmony import */ var
|
|
19701
|
-
/* harmony import */ var
|
|
19702
|
-
/* harmony import */ var
|
|
19703
|
-
/* harmony import */ var
|
|
19934
|
+
/* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.for-each.js */ "./node_modules/core-js/modules/es.array.for-each.js");
|
|
19935
|
+
/* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
19936
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
|
|
19937
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
19938
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");
|
|
19939
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
19940
|
+
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ "./node_modules/core-js/modules/es.object.keys.js");
|
|
19941
|
+
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
19942
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
|
|
19943
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
19944
|
+
/* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.is-array.js */ "./node_modules/core-js/modules/es.array.is-array.js");
|
|
19945
|
+
/* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
19946
|
+
/* harmony import */ var core_js_modules_es_array_some_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.some.js */ "./node_modules/core-js/modules/es.array.some.js");
|
|
19947
|
+
/* harmony import */ var core_js_modules_es_array_some_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_some_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
19948
|
+
/* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.array.reduce.js */ "./node_modules/core-js/modules/es.array.reduce.js");
|
|
19949
|
+
/* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
19950
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");
|
|
19951
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
19952
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");
|
|
19953
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
19954
|
+
/* harmony import */ var core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.regexp.constructor.js */ "./node_modules/core-js/modules/es.regexp.constructor.js");
|
|
19955
|
+
/* harmony import */ var core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
19956
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ "./node_modules/core-js/modules/es.regexp.to-string.js");
|
|
19957
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
19704
19958
|
/* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.object.entries.js */ "./node_modules/core-js/modules/es.object.entries.js");
|
|
19705
19959
|
/* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
19706
19960
|
/* harmony import */ var core_js_modules_es_array_every_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.array.every.js */ "./node_modules/core-js/modules/es.array.every.js");
|
|
@@ -19759,13 +20013,13 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
19759
20013
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19760
20014
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
19761
20015
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20016
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
19762
20017
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
19763
20018
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19764
20019
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
19765
20020
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
19766
20021
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
19767
20022
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
19768
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
19769
20023
|
|
|
19770
20024
|
|
|
19771
20025
|
|
|
@@ -19819,6 +20073,83 @@ var Validator = /*#__PURE__*/function () {
|
|
|
19819
20073
|
this.translateProperty = this.jsoneditor.translateProperty || defaults.translateProperty;
|
|
19820
20074
|
this.defaults = defaults;
|
|
19821
20075
|
this._validateSubSchema = {
|
|
20076
|
+
dependentSchemas: function dependentSchemas(schema, value, path) {
|
|
20077
|
+
var _this = this;
|
|
20078
|
+
var errors = [];
|
|
20079
|
+
Object.keys(schema.dependentSchemas).forEach(function (key) {
|
|
20080
|
+
if (typeof value[key] !== 'undefined') {
|
|
20081
|
+
var dependentSchema = schema.dependentSchemas[key];
|
|
20082
|
+
var tmpErrors = _this._validateSchema(dependentSchema, value, path);
|
|
20083
|
+
errors = [].concat(_toConsumableArray(errors), _toConsumableArray(tmpErrors));
|
|
20084
|
+
}
|
|
20085
|
+
});
|
|
20086
|
+
return errors;
|
|
20087
|
+
},
|
|
20088
|
+
contains: function contains(schema, value, path) {
|
|
20089
|
+
var _this2 = this;
|
|
20090
|
+
var errors = [];
|
|
20091
|
+
var counter = 0;
|
|
20092
|
+
value.forEach(function (item) {
|
|
20093
|
+
var containsErrors = _this2._validateSchema(schema.contains, item, path);
|
|
20094
|
+
if (containsErrors.length === 0) {
|
|
20095
|
+
counter++;
|
|
20096
|
+
}
|
|
20097
|
+
});
|
|
20098
|
+
var containsInvalid = counter === 0;
|
|
20099
|
+
if (typeof schema.minContains !== 'undefined') {
|
|
20100
|
+
var minContainsInvalid = counter < schema.minContains;
|
|
20101
|
+
if (minContainsInvalid) {
|
|
20102
|
+
errors.push({
|
|
20103
|
+
message: this.translate('error_minContains', [counter, schema.minContains], schema),
|
|
20104
|
+
path: path
|
|
20105
|
+
});
|
|
20106
|
+
}
|
|
20107
|
+
} else {
|
|
20108
|
+
if (containsInvalid) {
|
|
20109
|
+
errors.push({
|
|
20110
|
+
message: this.translate('error_contains', null, schema),
|
|
20111
|
+
path: path
|
|
20112
|
+
});
|
|
20113
|
+
}
|
|
20114
|
+
}
|
|
20115
|
+
if (typeof schema.maxContains !== 'undefined') {
|
|
20116
|
+
var maxContainsInvalid = counter > schema.maxContains;
|
|
20117
|
+
if (maxContainsInvalid) {
|
|
20118
|
+
errors.push({
|
|
20119
|
+
message: this.translate('error_maxContains', [counter, schema.maxContains], schema),
|
|
20120
|
+
path: path
|
|
20121
|
+
});
|
|
20122
|
+
}
|
|
20123
|
+
}
|
|
20124
|
+
return errors;
|
|
20125
|
+
},
|
|
20126
|
+
"if": function _if(schema, value, path) {
|
|
20127
|
+
if (typeof schema.then === 'undefined' && typeof schema["else"] === 'undefined') {
|
|
20128
|
+
return [];
|
|
20129
|
+
}
|
|
20130
|
+
var ifErrors = this._validateSchema(schema["if"], value, path);
|
|
20131
|
+
var thenErrors = [];
|
|
20132
|
+
var elseErrors = [];
|
|
20133
|
+
if (typeof schema.then !== 'undefined') {
|
|
20134
|
+
thenErrors = this._validateSchema(schema.then, value, path);
|
|
20135
|
+
}
|
|
20136
|
+
if (typeof schema["else"] !== 'undefined') {
|
|
20137
|
+
elseErrors = this._validateSchema(schema["else"], value, path);
|
|
20138
|
+
}
|
|
20139
|
+
if (schema["if"] === true) {
|
|
20140
|
+
return thenErrors;
|
|
20141
|
+
}
|
|
20142
|
+
if (schema["if"] === false) {
|
|
20143
|
+
return elseErrors;
|
|
20144
|
+
}
|
|
20145
|
+
if (ifErrors.length === 0) {
|
|
20146
|
+
return thenErrors;
|
|
20147
|
+
}
|
|
20148
|
+
if (ifErrors.length > 0) {
|
|
20149
|
+
return elseErrors;
|
|
20150
|
+
}
|
|
20151
|
+
return [];
|
|
20152
|
+
},
|
|
19822
20153
|
"const": function _const(schema, value, path) {
|
|
19823
20154
|
var valid = JSON.stringify(schema["const"]) === JSON.stringify(value) && !(Array.isArray(value) || _typeof(value) === 'object');
|
|
19824
20155
|
if (!valid) {
|
|
@@ -19845,25 +20176,25 @@ var Validator = /*#__PURE__*/function () {
|
|
|
19845
20176
|
return [];
|
|
19846
20177
|
},
|
|
19847
20178
|
"extends": function _extends(schema, value, path) {
|
|
19848
|
-
var
|
|
20179
|
+
var _this3 = this;
|
|
19849
20180
|
var validate = function validate(errors, e) {
|
|
19850
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20181
|
+
errors.push.apply(errors, _toConsumableArray(_this3._validateSchema(e, value, path)));
|
|
19851
20182
|
return errors;
|
|
19852
20183
|
};
|
|
19853
20184
|
return schema["extends"].reduce(validate, []);
|
|
19854
20185
|
},
|
|
19855
20186
|
allOf: function allOf(schema, value, path) {
|
|
19856
|
-
var
|
|
20187
|
+
var _this4 = this;
|
|
19857
20188
|
var validate = function validate(errors, e) {
|
|
19858
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20189
|
+
errors.push.apply(errors, _toConsumableArray(_this4._validateSchema(e, value, path)));
|
|
19859
20190
|
return errors;
|
|
19860
20191
|
};
|
|
19861
20192
|
return schema.allOf.reduce(validate, []);
|
|
19862
20193
|
},
|
|
19863
20194
|
anyOf: function anyOf(schema, value, path) {
|
|
19864
|
-
var
|
|
20195
|
+
var _this5 = this;
|
|
19865
20196
|
var valid = schema.anyOf.some(function (e) {
|
|
19866
|
-
return !
|
|
20197
|
+
return !_this5._validateSchema(e, value, path).length;
|
|
19867
20198
|
});
|
|
19868
20199
|
if (!valid) {
|
|
19869
20200
|
return [{
|
|
@@ -19875,12 +20206,12 @@ var Validator = /*#__PURE__*/function () {
|
|
|
19875
20206
|
return [];
|
|
19876
20207
|
},
|
|
19877
20208
|
oneOf: function oneOf(schema, value, path) {
|
|
19878
|
-
var
|
|
20209
|
+
var _this6 = this;
|
|
19879
20210
|
var valid = 0;
|
|
19880
20211
|
var oneofErrors = [];
|
|
19881
20212
|
schema.oneOf.forEach(function (o, i) {
|
|
19882
20213
|
/* Set the error paths to be path.oneOf[i].rest.of.path */
|
|
19883
|
-
var tmp =
|
|
20214
|
+
var tmp = _this6._validateSchema(o, value, path);
|
|
19884
20215
|
if (!tmp.length) {
|
|
19885
20216
|
valid++;
|
|
19886
20217
|
}
|
|
@@ -19911,11 +20242,11 @@ var Validator = /*#__PURE__*/function () {
|
|
|
19911
20242
|
return [];
|
|
19912
20243
|
},
|
|
19913
20244
|
type: function type(schema, value, path) {
|
|
19914
|
-
var
|
|
20245
|
+
var _this7 = this;
|
|
19915
20246
|
/* Union type */
|
|
19916
20247
|
if (Array.isArray(schema.type)) {
|
|
19917
20248
|
var valid = schema.type.some(function (e) {
|
|
19918
|
-
return
|
|
20249
|
+
return _this7._checkType(e, value);
|
|
19919
20250
|
});
|
|
19920
20251
|
if (!valid) {
|
|
19921
20252
|
return [{
|
|
@@ -19947,11 +20278,11 @@ var Validator = /*#__PURE__*/function () {
|
|
|
19947
20278
|
return [];
|
|
19948
20279
|
},
|
|
19949
20280
|
disallow: function disallow(schema, value, path) {
|
|
19950
|
-
var
|
|
20281
|
+
var _this8 = this;
|
|
19951
20282
|
/* Union type */
|
|
19952
20283
|
if (Array.isArray(schema.disallow)) {
|
|
19953
20284
|
var invalid = schema.disallow.some(function (e) {
|
|
19954
|
-
return
|
|
20285
|
+
return _this8._checkType(e, value);
|
|
19955
20286
|
});
|
|
19956
20287
|
if (invalid) {
|
|
19957
20288
|
return [{
|
|
@@ -20056,7 +20387,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20056
20387
|
};
|
|
20057
20388
|
this._validateArraySubSchema = {
|
|
20058
20389
|
items: function items(schema, value, path) {
|
|
20059
|
-
var
|
|
20390
|
+
var _this9 = this;
|
|
20060
20391
|
var errors = [];
|
|
20061
20392
|
if (Array.isArray(schema.items)) {
|
|
20062
20393
|
for (var i = 0; i < value.length; i++) {
|
|
@@ -20088,7 +20419,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20088
20419
|
} else {
|
|
20089
20420
|
/* Each item in the array must validate against the schema */
|
|
20090
20421
|
value.forEach(function (e, i) {
|
|
20091
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20422
|
+
errors.push.apply(errors, _toConsumableArray(_this9._validateSchema(schema.items, e, "".concat(path, ".").concat(i))));
|
|
20092
20423
|
});
|
|
20093
20424
|
}
|
|
20094
20425
|
return errors;
|
|
@@ -20151,38 +20482,38 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20151
20482
|
return [];
|
|
20152
20483
|
},
|
|
20153
20484
|
required: function required(schema, value, path) {
|
|
20154
|
-
var
|
|
20485
|
+
var _this10 = this;
|
|
20155
20486
|
var errors = [];
|
|
20156
20487
|
if (Array.isArray(schema.required)) {
|
|
20157
20488
|
schema.required.forEach(function (e) {
|
|
20158
20489
|
if (typeof value[e] !== 'undefined') return;
|
|
20159
|
-
var editor =
|
|
20490
|
+
var editor = _this10.jsoneditor.getEditor("".concat(path, ".").concat(e));
|
|
20160
20491
|
if (editor && editor.dependenciesFulfilled === false) return;
|
|
20161
20492
|
/* Ignore required error if editor is of type "button" or "info" */
|
|
20162
20493
|
if (editor && ['button', 'info'].includes(editor.schema.format || editor.schema.type)) return;
|
|
20163
20494
|
errors.push({
|
|
20164
20495
|
path: path,
|
|
20165
20496
|
property: 'required',
|
|
20166
|
-
message:
|
|
20497
|
+
message: _this10.translate('error_required', [schema && schema.properties && schema.properties[e] && schema.properties[e].title ? schema.properties[e].title : e], schema)
|
|
20167
20498
|
});
|
|
20168
20499
|
});
|
|
20169
20500
|
}
|
|
20170
20501
|
return errors;
|
|
20171
20502
|
},
|
|
20172
20503
|
properties: function properties(schema, value, path, validatedProperties) {
|
|
20173
|
-
var
|
|
20504
|
+
var _this11 = this;
|
|
20174
20505
|
var errors = [];
|
|
20175
20506
|
Object.entries(schema.properties).forEach(function (_ref) {
|
|
20176
20507
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
20177
20508
|
key = _ref2[0],
|
|
20178
20509
|
prop = _ref2[1];
|
|
20179
20510
|
validatedProperties[key] = true;
|
|
20180
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20511
|
+
errors.push.apply(errors, _toConsumableArray(_this11._validateSchema(prop, value[key], "".concat(path, ".").concat(key))));
|
|
20181
20512
|
});
|
|
20182
20513
|
return errors;
|
|
20183
20514
|
},
|
|
20184
20515
|
patternProperties: function patternProperties(schema, value, path, validatedProperties) {
|
|
20185
|
-
var
|
|
20516
|
+
var _this12 = this;
|
|
20186
20517
|
var errors = [];
|
|
20187
20518
|
Object.entries(schema.patternProperties).forEach(function (_ref3) {
|
|
20188
20519
|
var _ref4 = _slicedToArray(_ref3, 2),
|
|
@@ -20196,7 +20527,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20196
20527
|
v = _ref6[1];
|
|
20197
20528
|
if (regex.test(j)) {
|
|
20198
20529
|
validatedProperties[j] = true;
|
|
20199
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20530
|
+
errors.push.apply(errors, _toConsumableArray(_this12._validateSchema(prop, v, "".concat(path, ".").concat(j))));
|
|
20200
20531
|
}
|
|
20201
20532
|
});
|
|
20202
20533
|
});
|
|
@@ -20205,7 +20536,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20205
20536
|
};
|
|
20206
20537
|
this._validateObjectSubSchema2 = {
|
|
20207
20538
|
propertyNames: function propertyNames(schema, value, path, validatedProperties) {
|
|
20208
|
-
var
|
|
20539
|
+
var _this13 = this;
|
|
20209
20540
|
var errors = [];
|
|
20210
20541
|
var keys = Object.keys(value);
|
|
20211
20542
|
var k = null;
|
|
@@ -20221,7 +20552,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20221
20552
|
errors.push({
|
|
20222
20553
|
path: path,
|
|
20223
20554
|
property: 'propertyNames',
|
|
20224
|
-
message:
|
|
20555
|
+
message: _this13.translate('error_property_names_false', [k], schema)
|
|
20225
20556
|
});
|
|
20226
20557
|
return "break";
|
|
20227
20558
|
}
|
|
@@ -20278,14 +20609,14 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20278
20609
|
errors.push({
|
|
20279
20610
|
path: path,
|
|
20280
20611
|
property: 'propertyNames',
|
|
20281
|
-
message:
|
|
20612
|
+
message: _this13.translate('error_property_names_unsupported', [j], schema)
|
|
20282
20613
|
});
|
|
20283
20614
|
return false;
|
|
20284
20615
|
}
|
|
20285
20616
|
errors.push({
|
|
20286
20617
|
path: path,
|
|
20287
20618
|
property: 'propertyNames',
|
|
20288
|
-
message:
|
|
20619
|
+
message: _this13.translate(msg, [k], schema)
|
|
20289
20620
|
});
|
|
20290
20621
|
return false;
|
|
20291
20622
|
});
|
|
@@ -20324,7 +20655,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20324
20655
|
return errors;
|
|
20325
20656
|
},
|
|
20326
20657
|
dependencies: function dependencies(schema, value, path) {
|
|
20327
|
-
var
|
|
20658
|
+
var _this14 = this;
|
|
20328
20659
|
var errors = [];
|
|
20329
20660
|
Object.entries(schema.dependencies).forEach(function (_ref9) {
|
|
20330
20661
|
var _ref10 = _slicedToArray(_ref9, 2),
|
|
@@ -20340,13 +20671,13 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20340
20671
|
errors.push({
|
|
20341
20672
|
path: path,
|
|
20342
20673
|
property: 'dependencies',
|
|
20343
|
-
message:
|
|
20674
|
+
message: _this14.translate('error_dependency', [d], schema)
|
|
20344
20675
|
});
|
|
20345
20676
|
}
|
|
20346
20677
|
});
|
|
20347
20678
|
/* Schema dependency */
|
|
20348
20679
|
} else {
|
|
20349
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20680
|
+
errors.push.apply(errors, _toConsumableArray(_this14._validateSchema(dep, value, path)));
|
|
20350
20681
|
}
|
|
20351
20682
|
});
|
|
20352
20683
|
return errors;
|
|
@@ -20419,7 +20750,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20419
20750
|
}, {
|
|
20420
20751
|
key: "_validateSchema",
|
|
20421
20752
|
value: function _validateSchema(schema, value, path) {
|
|
20422
|
-
var
|
|
20753
|
+
var _this15 = this;
|
|
20423
20754
|
var errors = [];
|
|
20424
20755
|
path = path || this.jsoneditor.root.formname;
|
|
20425
20756
|
|
|
@@ -20434,8 +20765,8 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20434
20765
|
return this._validateV3Required(schema, value, path);
|
|
20435
20766
|
}
|
|
20436
20767
|
Object.keys(schema).forEach(function (key) {
|
|
20437
|
-
if (
|
|
20438
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20768
|
+
if (_this15._validateSubSchema[key]) {
|
|
20769
|
+
errors.push.apply(errors, _toConsumableArray(_this15._validateSubSchema[key].call(_this15, schema, value, path)));
|
|
20439
20770
|
}
|
|
20440
20771
|
});
|
|
20441
20772
|
|
|
@@ -20446,8 +20777,8 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20446
20777
|
if (schema.links) {
|
|
20447
20778
|
schema.links.forEach(function (s, m) {
|
|
20448
20779
|
if (s.rel && s.rel.toLowerCase() === 'describedby') {
|
|
20449
|
-
schema =
|
|
20450
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20780
|
+
schema = _this15._expandSchemaLink(schema, m);
|
|
20781
|
+
errors.push.apply(errors, _toConsumableArray(_this15._validateSchema(schema, value, path, _this15.translate)));
|
|
20451
20782
|
}
|
|
20452
20783
|
});
|
|
20453
20784
|
}
|
|
@@ -20493,7 +20824,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20493
20824
|
}, {
|
|
20494
20825
|
key: "_validateByValueType",
|
|
20495
20826
|
value: function _validateByValueType(schema, value, path) {
|
|
20496
|
-
var
|
|
20827
|
+
var _this16 = this;
|
|
20497
20828
|
var errors = [];
|
|
20498
20829
|
if (value === null) return errors;
|
|
20499
20830
|
/* Number Specific Validation */
|
|
@@ -20502,8 +20833,8 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20502
20833
|
/* `maximum` */
|
|
20503
20834
|
/* `minimum` */
|
|
20504
20835
|
Object.keys(schema).forEach(function (key) {
|
|
20505
|
-
if (
|
|
20506
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20836
|
+
if (_this16._validateNumberSubSchema[key]) {
|
|
20837
|
+
errors.push.apply(errors, _toConsumableArray(_this16._validateNumberSubSchema[key].call(_this16, schema, value, path)));
|
|
20507
20838
|
}
|
|
20508
20839
|
});
|
|
20509
20840
|
/* String specific validation */
|
|
@@ -20512,8 +20843,8 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20512
20843
|
/* `minLength` */
|
|
20513
20844
|
/* `pattern` */
|
|
20514
20845
|
Object.keys(schema).forEach(function (key) {
|
|
20515
|
-
if (
|
|
20516
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20846
|
+
if (_this16._validateStringSubSchema[key]) {
|
|
20847
|
+
errors.push.apply(errors, _toConsumableArray(_this16._validateStringSubSchema[key].call(_this16, schema, value, path)));
|
|
20517
20848
|
}
|
|
20518
20849
|
});
|
|
20519
20850
|
/* Array specific validation */
|
|
@@ -20523,8 +20854,8 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20523
20854
|
/* `minItems`
|
|
20524
20855
|
/* `uniqueItems` */
|
|
20525
20856
|
Object.keys(schema).forEach(function (key) {
|
|
20526
|
-
if (
|
|
20527
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20857
|
+
if (_this16._validateArraySubSchema[key]) {
|
|
20858
|
+
errors.push.apply(errors, _toConsumableArray(_this16._validateArraySubSchema[key].call(_this16, schema, value, path)));
|
|
20528
20859
|
}
|
|
20529
20860
|
});
|
|
20530
20861
|
/* Object specific validation */
|
|
@@ -20536,8 +20867,8 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20536
20867
|
/* `properties`
|
|
20537
20868
|
/* `patternProperties` */
|
|
20538
20869
|
Object.keys(schema).forEach(function (key) {
|
|
20539
|
-
if (
|
|
20540
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20870
|
+
if (_this16._validateObjectSubSchema[key]) {
|
|
20871
|
+
errors.push.apply(errors, _toConsumableArray(_this16._validateObjectSubSchema[key].call(_this16, schema, value, path, validatedProperties)));
|
|
20541
20872
|
}
|
|
20542
20873
|
});
|
|
20543
20874
|
|
|
@@ -20549,8 +20880,8 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20549
20880
|
/* `additionalProperties` */
|
|
20550
20881
|
/* `dependencies` */
|
|
20551
20882
|
Object.keys(schema).forEach(function (key) {
|
|
20552
|
-
if (typeof
|
|
20553
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20883
|
+
if (typeof _this16._validateObjectSubSchema2[key] !== 'undefined') {
|
|
20884
|
+
errors.push.apply(errors, _toConsumableArray(_this16._validateObjectSubSchema2[key].call(_this16, schema, value, path, validatedProperties)));
|
|
20554
20885
|
}
|
|
20555
20886
|
});
|
|
20556
20887
|
}
|
|
@@ -20594,7 +20925,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20594
20925
|
}, {
|
|
20595
20926
|
key: "_validateDateTimeSubSchema",
|
|
20596
20927
|
value: function _validateDateTimeSubSchema(schema, value, path) {
|
|
20597
|
-
var
|
|
20928
|
+
var _this17 = this;
|
|
20598
20929
|
var _validateInteger = function _validateInteger(schema, value, path) {
|
|
20599
20930
|
/* The value is a timestamp */
|
|
20600
20931
|
if (value * 1 < 1) {
|
|
@@ -20602,14 +20933,14 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20602
20933
|
return [{
|
|
20603
20934
|
path: path,
|
|
20604
20935
|
property: 'format',
|
|
20605
|
-
message:
|
|
20936
|
+
message: _this17.translate('error_invalid_epoch', null, schema)
|
|
20606
20937
|
}];
|
|
20607
20938
|
} else if (value !== Math.abs(parseInt(value))) {
|
|
20608
20939
|
/* not much to check for, so we assume value is ok if it's a positive number */
|
|
20609
20940
|
return [{
|
|
20610
20941
|
path: path,
|
|
20611
20942
|
property: 'format',
|
|
20612
|
-
message:
|
|
20943
|
+
message: _this17.translate("error_".concat(schema.format.replace(/-/g, '_')), [dateFormat], schema)
|
|
20613
20944
|
}];
|
|
20614
20945
|
}
|
|
20615
20946
|
return [];
|
|
@@ -20637,7 +20968,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20637
20968
|
return [{
|
|
20638
20969
|
path: path,
|
|
20639
20970
|
property: 'format',
|
|
20640
|
-
message:
|
|
20971
|
+
message: _this17.translate("error_".concat(editor.format.replace(/-/g, '_')), [errorDateFormat], schema)
|
|
20641
20972
|
}];
|
|
20642
20973
|
}
|
|
20643
20974
|
}
|
|
@@ -20675,12 +21006,12 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20675
21006
|
}, {
|
|
20676
21007
|
key: "_validateCustomValidator",
|
|
20677
21008
|
value: function _validateCustomValidator(schema, value, path) {
|
|
20678
|
-
var
|
|
21009
|
+
var _this18 = this;
|
|
20679
21010
|
var errors = [];
|
|
20680
21011
|
/* Internal validators using the custom validator format */
|
|
20681
21012
|
errors.push.apply(errors, _toConsumableArray(_validators_ip_validator_js__WEBPACK_IMPORTED_MODULE_36__.ipValidator.call(this, schema, value, path, this.translate)));
|
|
20682
21013
|
var validate = function validate(validator) {
|
|
20683
|
-
errors.push.apply(errors, _toConsumableArray(validator.call(
|
|
21014
|
+
errors.push.apply(errors, _toConsumableArray(validator.call(_this18, schema, value, path)));
|
|
20684
21015
|
};
|
|
20685
21016
|
/* Custom type validation (global) */
|
|
20686
21017
|
this.defaults.custom_validators.forEach(validate);
|
|
@@ -29405,16 +29736,6 @@ __webpack_require__(/*! ../modules/web.set-interval */ "./node_modules/core-js/m
|
|
|
29405
29736
|
__webpack_require__(/*! ../modules/web.set-timeout */ "./node_modules/core-js/modules/web.set-timeout.js");
|
|
29406
29737
|
|
|
29407
29738
|
|
|
29408
|
-
/***/ }),
|
|
29409
|
-
|
|
29410
|
-
/***/ "./src/themes/bootstrap3.css":
|
|
29411
|
-
/*!***********************************!*\
|
|
29412
|
-
!*** ./src/themes/bootstrap3.css ***!
|
|
29413
|
-
\***********************************/
|
|
29414
|
-
/***/ (() => {
|
|
29415
|
-
|
|
29416
|
-
|
|
29417
|
-
|
|
29418
29739
|
/***/ })
|
|
29419
29740
|
|
|
29420
29741
|
/******/ });
|