@json-editor/json-editor 2.9.1 → 2.10.1
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 +23 -0
- package/README.md +52 -1
- package/dist/jsoneditor.js +1 -1
- package/dist/jsoneditor.js.LICENSE.txt +1 -1
- package/dist/nonmin/jsoneditor.js +462 -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 +76 -8
- 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 +32 -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 +186 -0
- package/tests/codeceptjs/core_test.js +35 -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-disable-fields.html +69 -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/keep_only_existing_values.html +80 -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.1"
|
|
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,14 @@ 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.
|
|
6237
|
+
if (_this.keep_only_existing_values) {
|
|
6238
|
+
currentValue = (0,_utilities_js__WEBPACK_IMPORTED_MODULE_32__.overwriteExistingProperties)(editor.getValue(), currentValue);
|
|
6239
|
+
}
|
|
6240
|
+
if (_this.keep_values || _this["if"]) editor.setValue(currentValue, true);
|
|
6210
6241
|
editor.container.style.display = '';
|
|
6211
|
-
} else
|
|
6242
|
+
} else {
|
|
6243
|
+
editor.container.style.display = 'none';
|
|
6244
|
+
}
|
|
6212
6245
|
});
|
|
6213
6246
|
this.refreshValue();
|
|
6214
6247
|
this.refreshHeaderText();
|
|
@@ -6262,6 +6295,9 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6262
6295
|
this.keep_values = true;
|
|
6263
6296
|
if (typeof this.jsoneditor.options.keep_oneof_values !== 'undefined') this.keep_values = this.jsoneditor.options.keep_oneof_values;
|
|
6264
6297
|
if (typeof this.options.keep_oneof_values !== 'undefined') this.keep_values = this.options.keep_oneof_values;
|
|
6298
|
+
this.keep_only_existing_values = false;
|
|
6299
|
+
if (typeof this.jsoneditor.options.keep_only_existing_values !== 'undefined') this.keep_only_existing_values = this.jsoneditor.options.keep_only_existing_values;
|
|
6300
|
+
if (typeof this.options.keep_only_existing_values !== 'undefined') this.keep_only_existing_values = this.options.keep_only_existing_values;
|
|
6265
6301
|
if (this.schema.oneOf) {
|
|
6266
6302
|
this.oneOf = true;
|
|
6267
6303
|
this.types = this.schema.oneOf;
|
|
@@ -6270,6 +6306,30 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6270
6306
|
this.anyOf = true;
|
|
6271
6307
|
this.types = this.schema.anyOf;
|
|
6272
6308
|
delete this.schema.anyOf;
|
|
6309
|
+
} else if (this.schema["if"]) {
|
|
6310
|
+
this["if"] = true;
|
|
6311
|
+
this.ifSchema = JSON.parse(JSON.stringify(this.schema["if"]));
|
|
6312
|
+
this.thenSchema = {
|
|
6313
|
+
title: 'then'
|
|
6314
|
+
};
|
|
6315
|
+
this.elseSchema = {
|
|
6316
|
+
title: 'else'
|
|
6317
|
+
};
|
|
6318
|
+
this.types = [];
|
|
6319
|
+
if (this.schema.then) {
|
|
6320
|
+
(0,_utilities_js__WEBPACK_IMPORTED_MODULE_32__.mergeDeep)(this.thenSchema, this.schema, this.schema.then);
|
|
6321
|
+
}
|
|
6322
|
+
if (this.schema["else"]) {
|
|
6323
|
+
(0,_utilities_js__WEBPACK_IMPORTED_MODULE_32__.mergeDeep)(this.elseSchema, this.schema, this.schema["else"]);
|
|
6324
|
+
}
|
|
6325
|
+
this.types.push(this.thenSchema);
|
|
6326
|
+
this.types.push(this.elseSchema);
|
|
6327
|
+
this.types.forEach(function (schema) {
|
|
6328
|
+
delete schema["if"];
|
|
6329
|
+
delete schema.then;
|
|
6330
|
+
delete schema["else"];
|
|
6331
|
+
});
|
|
6332
|
+
delete this.schema["if"];
|
|
6273
6333
|
} else {
|
|
6274
6334
|
if (!this.schema.type || this.schema.type === 'any') {
|
|
6275
6335
|
this.types = ['string', 'number', 'integer', 'boolean', 'object', 'array', 'null'];
|
|
@@ -6301,9 +6361,11 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6301
6361
|
var _this3 = this;
|
|
6302
6362
|
var container = this.container;
|
|
6303
6363
|
this.header = this.label = this.theme.getFormInputLabel(this.getTitle(), this.isRequired());
|
|
6304
|
-
this.container.appendChild(this.header);
|
|
6305
6364
|
this.switcher = this.theme.getSwitcher(this.display_text);
|
|
6306
|
-
|
|
6365
|
+
if (!this["if"]) {
|
|
6366
|
+
this.container.appendChild(this.header);
|
|
6367
|
+
container.appendChild(this.switcher);
|
|
6368
|
+
}
|
|
6307
6369
|
this.switcher.addEventListener('change', function (e) {
|
|
6308
6370
|
e.preventDefault();
|
|
6309
6371
|
e.stopPropagation();
|
|
@@ -6333,6 +6395,9 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6333
6395
|
}
|
|
6334
6396
|
_this3.validators[i] = new _validator_js__WEBPACK_IMPORTED_MODULE_31__.Validator(_this3.jsoneditor, schema, validatorOptions, _this3.defaults);
|
|
6335
6397
|
});
|
|
6398
|
+
this.jsoneditor.on('change', function () {
|
|
6399
|
+
_this3.switchIf();
|
|
6400
|
+
});
|
|
6336
6401
|
this.switchEditor(0);
|
|
6337
6402
|
}
|
|
6338
6403
|
}, {
|
|
@@ -6357,6 +6422,24 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6357
6422
|
value: function refreshValue() {
|
|
6358
6423
|
this.value = this.editors[this.type].getValue();
|
|
6359
6424
|
}
|
|
6425
|
+
}, {
|
|
6426
|
+
key: "switchIf",
|
|
6427
|
+
value: function switchIf() {
|
|
6428
|
+
if (this.ifSchema && this.value) {
|
|
6429
|
+
var type = this.getIfType(this.value);
|
|
6430
|
+
if (this.lastType !== type) {
|
|
6431
|
+
this.switchEditor(type);
|
|
6432
|
+
this.editors[this.type].setValue(this.value, true);
|
|
6433
|
+
}
|
|
6434
|
+
this.switcher.value = this.display_text[this.type];
|
|
6435
|
+
}
|
|
6436
|
+
}
|
|
6437
|
+
}, {
|
|
6438
|
+
key: "getIfType",
|
|
6439
|
+
value: function getIfType(value) {
|
|
6440
|
+
var errors = this.jsoneditor.validator._validateSchema(this.ifSchema, value);
|
|
6441
|
+
return errors.length === 0 ? 0 : 1;
|
|
6442
|
+
}
|
|
6360
6443
|
}, {
|
|
6361
6444
|
key: "setValue",
|
|
6362
6445
|
value: function setValue(val, initial) {
|
|
@@ -6405,6 +6488,9 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6405
6488
|
finalI = fitTestVal.i;
|
|
6406
6489
|
}
|
|
6407
6490
|
}
|
|
6491
|
+
if (this["if"]) {
|
|
6492
|
+
finalI = this.getIfType(val);
|
|
6493
|
+
}
|
|
6408
6494
|
if (finalI === null) {
|
|
6409
6495
|
finalI = this.type;
|
|
6410
6496
|
}
|
|
@@ -6413,6 +6499,7 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6413
6499
|
var typeChanged = this.type !== prevType;
|
|
6414
6500
|
if (typeChanged) {
|
|
6415
6501
|
this.switchEditor(this.type);
|
|
6502
|
+
this.editors[this.type].setValue(val, initial);
|
|
6416
6503
|
}
|
|
6417
6504
|
if (typeof val !== 'undefined') {
|
|
6418
6505
|
this.editors[this.type].setValue(val, initial);
|
|
@@ -8182,7 +8269,6 @@ var ObjectEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
8182
8269
|
var _this9 = this;
|
|
8183
8270
|
var labelText;
|
|
8184
8271
|
var checkbox = this.theme.getCheckbox();
|
|
8185
|
-
checkbox.style.width = 'auto';
|
|
8186
8272
|
if (this.schema.properties[key] && this.schema.properties[key].title) {
|
|
8187
8273
|
labelText = this.schema.properties[key].title;
|
|
8188
8274
|
} else {
|
|
@@ -12512,6 +12598,112 @@ var AbstractIconLib = /*#__PURE__*/function () {
|
|
|
12512
12598
|
|
|
12513
12599
|
/***/ }),
|
|
12514
12600
|
|
|
12601
|
+
/***/ "./src/iconlibs/bootstrap.js":
|
|
12602
|
+
/*!***********************************!*\
|
|
12603
|
+
!*** ./src/iconlibs/bootstrap.js ***!
|
|
12604
|
+
\***********************************/
|
|
12605
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12606
|
+
|
|
12607
|
+
"use strict";
|
|
12608
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12609
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12610
|
+
/* harmony export */ "bootstrapIconlib": () => (/* binding */ bootstrapIconlib)
|
|
12611
|
+
/* harmony export */ });
|
|
12612
|
+
/* 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");
|
|
12613
|
+
/* 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__);
|
|
12614
|
+
/* 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");
|
|
12615
|
+
/* 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__);
|
|
12616
|
+
/* 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");
|
|
12617
|
+
/* 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__);
|
|
12618
|
+
/* 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");
|
|
12619
|
+
/* 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__);
|
|
12620
|
+
/* 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");
|
|
12621
|
+
/* 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__);
|
|
12622
|
+
/* 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");
|
|
12623
|
+
/* 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__);
|
|
12624
|
+
/* 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");
|
|
12625
|
+
/* 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__);
|
|
12626
|
+
/* 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");
|
|
12627
|
+
/* 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__);
|
|
12628
|
+
/* 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");
|
|
12629
|
+
/* 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__);
|
|
12630
|
+
/* 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");
|
|
12631
|
+
/* 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__);
|
|
12632
|
+
/* 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");
|
|
12633
|
+
/* 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__);
|
|
12634
|
+
/* 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");
|
|
12635
|
+
/* 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__);
|
|
12636
|
+
/* 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");
|
|
12637
|
+
/* 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__);
|
|
12638
|
+
/* 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");
|
|
12639
|
+
/* 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__);
|
|
12640
|
+
/* 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");
|
|
12641
|
+
/* 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__);
|
|
12642
|
+
/* 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");
|
|
12643
|
+
/* 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__);
|
|
12644
|
+
/* harmony import */ var _iconlib_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../iconlib.js */ "./src/iconlib.js");
|
|
12645
|
+
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); }
|
|
12646
|
+
|
|
12647
|
+
|
|
12648
|
+
|
|
12649
|
+
|
|
12650
|
+
|
|
12651
|
+
|
|
12652
|
+
|
|
12653
|
+
|
|
12654
|
+
|
|
12655
|
+
|
|
12656
|
+
|
|
12657
|
+
|
|
12658
|
+
|
|
12659
|
+
|
|
12660
|
+
|
|
12661
|
+
|
|
12662
|
+
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); } }
|
|
12663
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
12664
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
12665
|
+
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); }
|
|
12666
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12667
|
+
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); }
|
|
12668
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12669
|
+
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); }; }
|
|
12670
|
+
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); }
|
|
12671
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12672
|
+
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; } }
|
|
12673
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12674
|
+
|
|
12675
|
+
var iconPrefix = 'bi bi-';
|
|
12676
|
+
var mapping = {
|
|
12677
|
+
collapse: 'chevron-down',
|
|
12678
|
+
expand: 'chevron-right',
|
|
12679
|
+
"delete": 'trash',
|
|
12680
|
+
edit: 'pencil',
|
|
12681
|
+
add: 'plus',
|
|
12682
|
+
subtract: 'dash',
|
|
12683
|
+
cancel: 'x-circle',
|
|
12684
|
+
save: 'save',
|
|
12685
|
+
moveup: 'arrow-up',
|
|
12686
|
+
moveright: 'arrow-right',
|
|
12687
|
+
movedown: 'arrow-down',
|
|
12688
|
+
moveleft: 'arrow-left',
|
|
12689
|
+
copy: 'clipboard',
|
|
12690
|
+
clear: 'x-circle',
|
|
12691
|
+
time: 'clock',
|
|
12692
|
+
calendar: 'calendar',
|
|
12693
|
+
edit_properties: 'list-ul'
|
|
12694
|
+
};
|
|
12695
|
+
var bootstrapIconlib = /*#__PURE__*/function (_AbstractIconLib) {
|
|
12696
|
+
_inherits(bootstrapIconlib, _AbstractIconLib);
|
|
12697
|
+
var _super = _createSuper(bootstrapIconlib);
|
|
12698
|
+
function bootstrapIconlib() {
|
|
12699
|
+
_classCallCheck(this, bootstrapIconlib);
|
|
12700
|
+
return _super.call(this, iconPrefix, mapping);
|
|
12701
|
+
}
|
|
12702
|
+
return _createClass(bootstrapIconlib);
|
|
12703
|
+
}(_iconlib_js__WEBPACK_IMPORTED_MODULE_16__.AbstractIconLib);
|
|
12704
|
+
|
|
12705
|
+
/***/ }),
|
|
12706
|
+
|
|
12515
12707
|
/***/ "./src/iconlibs/bootstrap3.js":
|
|
12516
12708
|
/*!************************************!*\
|
|
12517
12709
|
!*** ./src/iconlibs/bootstrap3.js ***!
|
|
@@ -12954,6 +13146,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12954
13146
|
/* harmony import */ var _jqueryui_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./jqueryui.js */ "./src/iconlibs/jqueryui.js");
|
|
12955
13147
|
/* harmony import */ var _openiconic_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./openiconic.js */ "./src/iconlibs/openiconic.js");
|
|
12956
13148
|
/* harmony import */ var _spectre_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./spectre.js */ "./src/iconlibs/spectre.js");
|
|
13149
|
+
/* harmony import */ var _bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./bootstrap */ "./src/iconlibs/bootstrap.js");
|
|
12957
13150
|
// import { bootstrap2Iconlib } from './bootstrap2.js'
|
|
12958
13151
|
|
|
12959
13152
|
|
|
@@ -12965,8 +13158,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12965
13158
|
// import { materialiconsIconlib } from './materialicons.js'
|
|
12966
13159
|
|
|
12967
13160
|
|
|
13161
|
+
|
|
12968
13162
|
var iconlibs = {
|
|
12969
13163
|
// bootstrap2: bootstrap2Iconlib,
|
|
13164
|
+
bootstrap: _bootstrap__WEBPACK_IMPORTED_MODULE_7__.bootstrapIconlib,
|
|
12970
13165
|
bootstrap3: _bootstrap3_js__WEBPACK_IMPORTED_MODULE_0__.bootstrap3Iconlib,
|
|
12971
13166
|
fontawesome3: _fontawesome3_js__WEBPACK_IMPORTED_MODULE_1__.fontawesome3Iconlib,
|
|
12972
13167
|
fontawesome4: _fontawesome4_js__WEBPACK_IMPORTED_MODULE_2__.fontawesome4Iconlib,
|
|
@@ -13412,6 +13607,11 @@ var oneOf = function oneOf(schema) {
|
|
|
13412
13607
|
return (schema.oneOf || schema.anyOf) && 'multiple';
|
|
13413
13608
|
};
|
|
13414
13609
|
|
|
13610
|
+
/* Use the multiple editor for schemas with `if` set */
|
|
13611
|
+
var ifThenElse = function ifThenElse(schema) {
|
|
13612
|
+
return schema["if"] && 'multiple';
|
|
13613
|
+
};
|
|
13614
|
+
|
|
13415
13615
|
/* Specialized editor for date, time and datetime-local formats */
|
|
13416
13616
|
var date = function date(schema) {
|
|
13417
13617
|
return ['string', 'integer'].includes(schema.type) && ['date', 'time', 'datetime-local'].includes(schema.format) && 'datetime';
|
|
@@ -13462,7 +13662,7 @@ var xhtml = function xhtml(schema) {
|
|
|
13462
13662
|
};
|
|
13463
13663
|
|
|
13464
13664
|
/* 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'];
|
|
13665
|
+
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
13666
|
var ace = function ace(schema) {
|
|
13467
13667
|
return schema.type === 'string' && aceModes.includes(schema.format) && 'ace';
|
|
13468
13668
|
};
|
|
@@ -13474,7 +13674,7 @@ var colorPicker = function colorPicker(schema) {
|
|
|
13474
13674
|
};
|
|
13475
13675
|
|
|
13476
13676
|
/* 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];
|
|
13677
|
+
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
13678
|
|
|
13479
13679
|
/***/ }),
|
|
13480
13680
|
|
|
@@ -13812,7 +14012,9 @@ var SchemaLoader = /*#__PURE__*/function () {
|
|
|
13812
14012
|
// If local ref
|
|
13813
14013
|
if (refWithPointerSplit.length === 2 && !this.refs_with_info[_schema.$ref]) {
|
|
13814
14014
|
var sub = this.expandRecursivePointer(this.schema, refWithPointerSplit[1]);
|
|
13815
|
-
|
|
14015
|
+
var expandedSchema = this.extendSchemas(_schema, this.expandSchema(sub));
|
|
14016
|
+
delete expandedSchema.$ref;
|
|
14017
|
+
return expandedSchema;
|
|
13816
14018
|
}
|
|
13817
14019
|
var refObj = refWithPointerSplit.length > 2 ? this.refs_with_info['#' + refWithPointerSplit[1]] : this.refs_with_info[_schema.$ref];
|
|
13818
14020
|
delete _schema.$ref;
|
|
@@ -15697,6 +15899,23 @@ barebonesTheme.rules = _barebones_css_js__WEBPACK_IMPORTED_MODULE_17__["default"
|
|
|
15697
15899
|
|
|
15698
15900
|
/***/ }),
|
|
15699
15901
|
|
|
15902
|
+
/***/ "./src/themes/bootstrap3.css.js":
|
|
15903
|
+
/*!**************************************!*\
|
|
15904
|
+
!*** ./src/themes/bootstrap3.css.js ***!
|
|
15905
|
+
\**************************************/
|
|
15906
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15907
|
+
|
|
15908
|
+
"use strict";
|
|
15909
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15910
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15911
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15912
|
+
/* harmony export */ });
|
|
15913
|
+
/* eslint-disable */
|
|
15914
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({});
|
|
15915
|
+
/* eslint-enable */
|
|
15916
|
+
|
|
15917
|
+
/***/ }),
|
|
15918
|
+
|
|
15700
15919
|
/***/ "./src/themes/bootstrap3.js":
|
|
15701
15920
|
/*!**********************************!*\
|
|
15702
15921
|
!*** ./src/themes/bootstrap3.js ***!
|
|
@@ -15747,8 +15966,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15747
15966
|
/* 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
15967
|
/* 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
15968
|
/* 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__);
|
|
15969
|
+
/* harmony import */ var _bootstrap3_css_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./bootstrap3.css.js */ "./src/themes/bootstrap3.css.js");
|
|
15752
15970
|
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
15971
|
|
|
15754
15972
|
|
|
@@ -16106,7 +16324,7 @@ var bootstrap3Theme = /*#__PURE__*/function (_AbstractTheme) {
|
|
|
16106
16324
|
}(_theme_js__WEBPACK_IMPORTED_MODULE_19__.AbstractTheme);
|
|
16107
16325
|
|
|
16108
16326
|
/* Custom stylesheet rules. format: "selector" : "CSS rules" */
|
|
16109
|
-
bootstrap3Theme.rules =
|
|
16327
|
+
bootstrap3Theme.rules = _bootstrap3_css_js__WEBPACK_IMPORTED_MODULE_20__["default"];
|
|
16110
16328
|
|
|
16111
16329
|
/***/ }),
|
|
16112
16330
|
|
|
@@ -19503,7 +19721,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19503
19721
|
/* harmony export */ "hasOwnProperty": () => (/* binding */ hasOwnProperty),
|
|
19504
19722
|
/* harmony export */ "isInteger": () => (/* binding */ isInteger),
|
|
19505
19723
|
/* harmony export */ "isNumber": () => (/* binding */ isNumber),
|
|
19724
|
+
/* harmony export */ "isObject": () => (/* binding */ isObject),
|
|
19506
19725
|
/* harmony export */ "isPlainObject": () => (/* binding */ isPlainObject),
|
|
19726
|
+
/* harmony export */ "mergeDeep": () => (/* binding */ mergeDeep),
|
|
19727
|
+
/* harmony export */ "overwriteExistingProperties": () => (/* binding */ overwriteExistingProperties),
|
|
19507
19728
|
/* harmony export */ "trigger": () => (/* binding */ trigger)
|
|
19508
19729
|
/* harmony export */ });
|
|
19509
19730
|
/* 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 +19753,39 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19532
19753
|
/* 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
19754
|
/* 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
19755
|
/* 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
|
|
19756
|
+
/* 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");
|
|
19757
|
+
/* 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__);
|
|
19758
|
+
/* 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");
|
|
19759
|
+
/* 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__);
|
|
19760
|
+
/* 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");
|
|
19761
|
+
/* 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__);
|
|
19762
|
+
/* 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");
|
|
19763
|
+
/* 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__);
|
|
19764
|
+
/* 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");
|
|
19765
|
+
/* 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__);
|
|
19766
|
+
/* 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");
|
|
19767
|
+
/* 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__);
|
|
19768
|
+
/* 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");
|
|
19769
|
+
/* 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__);
|
|
19770
|
+
/* 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");
|
|
19771
|
+
/* 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__);
|
|
19772
|
+
/* 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");
|
|
19773
|
+
/* 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__);
|
|
19774
|
+
/* 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");
|
|
19775
|
+
/* 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__);
|
|
19776
|
+
/* 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");
|
|
19777
|
+
/* 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__);
|
|
19778
|
+
/* 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");
|
|
19779
|
+
/* 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__);
|
|
19780
|
+
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; }
|
|
19781
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
19782
|
+
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); }
|
|
19783
|
+
|
|
19784
|
+
|
|
19785
|
+
|
|
19786
|
+
|
|
19787
|
+
|
|
19788
|
+
|
|
19547
19789
|
|
|
19548
19790
|
|
|
19549
19791
|
|
|
@@ -19663,6 +19905,35 @@ function generateUUID() {
|
|
|
19663
19905
|
return (c === 'x' ? r : r & 0x3 | 0x8).toString(16);
|
|
19664
19906
|
});
|
|
19665
19907
|
}
|
|
19908
|
+
function isObject(item) {
|
|
19909
|
+
return item && _typeof(item) === 'object' && !Array.isArray(item);
|
|
19910
|
+
}
|
|
19911
|
+
function mergeDeep(target) {
|
|
19912
|
+
for (var _len2 = arguments.length, sources = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
19913
|
+
sources[_key2 - 1] = arguments[_key2];
|
|
19914
|
+
}
|
|
19915
|
+
if (!sources.length) return target;
|
|
19916
|
+
var source = sources.shift();
|
|
19917
|
+
if (isObject(target) && isObject(source)) {
|
|
19918
|
+
for (var key in source) {
|
|
19919
|
+
if (isObject(source[key])) {
|
|
19920
|
+
if (!target[key]) Object.assign(target, _defineProperty({}, key, {}));
|
|
19921
|
+
mergeDeep(target[key], source[key]);
|
|
19922
|
+
} else {
|
|
19923
|
+
Object.assign(target, _defineProperty({}, key, source[key]));
|
|
19924
|
+
}
|
|
19925
|
+
}
|
|
19926
|
+
}
|
|
19927
|
+
return mergeDeep.apply(void 0, [target].concat(sources));
|
|
19928
|
+
}
|
|
19929
|
+
function overwriteExistingProperties(obj1, obj2) {
|
|
19930
|
+
Object.keys(obj2).forEach(function (key) {
|
|
19931
|
+
if (key in obj1) {
|
|
19932
|
+
obj1[key] = obj2[key];
|
|
19933
|
+
}
|
|
19934
|
+
});
|
|
19935
|
+
return obj1;
|
|
19936
|
+
}
|
|
19666
19937
|
|
|
19667
19938
|
/***/ }),
|
|
19668
19939
|
|
|
@@ -19677,30 +19948,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19677
19948
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19678
19949
|
/* harmony export */ "Validator": () => (/* binding */ Validator)
|
|
19679
19950
|
/* 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
|
|
19951
|
+
/* 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");
|
|
19952
|
+
/* 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__);
|
|
19953
|
+
/* 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");
|
|
19954
|
+
/* 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__);
|
|
19955
|
+
/* 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");
|
|
19956
|
+
/* 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__);
|
|
19957
|
+
/* 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");
|
|
19958
|
+
/* 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__);
|
|
19959
|
+
/* 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");
|
|
19960
|
+
/* 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__);
|
|
19961
|
+
/* 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");
|
|
19962
|
+
/* 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__);
|
|
19963
|
+
/* 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");
|
|
19964
|
+
/* 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__);
|
|
19965
|
+
/* 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");
|
|
19966
|
+
/* 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__);
|
|
19967
|
+
/* 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");
|
|
19968
|
+
/* 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__);
|
|
19969
|
+
/* 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");
|
|
19970
|
+
/* 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__);
|
|
19971
|
+
/* 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");
|
|
19972
|
+
/* 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__);
|
|
19973
|
+
/* 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");
|
|
19974
|
+
/* 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
19975
|
/* 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
19976
|
/* 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
19977
|
/* 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 +20030,13 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
19759
20030
|
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
20031
|
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
20032
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20033
|
+
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
20034
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
19763
20035
|
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
20036
|
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
20037
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
19766
20038
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
19767
20039
|
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
20040
|
|
|
19770
20041
|
|
|
19771
20042
|
|
|
@@ -19819,6 +20090,83 @@ var Validator = /*#__PURE__*/function () {
|
|
|
19819
20090
|
this.translateProperty = this.jsoneditor.translateProperty || defaults.translateProperty;
|
|
19820
20091
|
this.defaults = defaults;
|
|
19821
20092
|
this._validateSubSchema = {
|
|
20093
|
+
dependentSchemas: function dependentSchemas(schema, value, path) {
|
|
20094
|
+
var _this = this;
|
|
20095
|
+
var errors = [];
|
|
20096
|
+
Object.keys(schema.dependentSchemas).forEach(function (key) {
|
|
20097
|
+
if (typeof value[key] !== 'undefined') {
|
|
20098
|
+
var dependentSchema = schema.dependentSchemas[key];
|
|
20099
|
+
var tmpErrors = _this._validateSchema(dependentSchema, value, path);
|
|
20100
|
+
errors = [].concat(_toConsumableArray(errors), _toConsumableArray(tmpErrors));
|
|
20101
|
+
}
|
|
20102
|
+
});
|
|
20103
|
+
return errors;
|
|
20104
|
+
},
|
|
20105
|
+
contains: function contains(schema, value, path) {
|
|
20106
|
+
var _this2 = this;
|
|
20107
|
+
var errors = [];
|
|
20108
|
+
var counter = 0;
|
|
20109
|
+
value.forEach(function (item) {
|
|
20110
|
+
var containsErrors = _this2._validateSchema(schema.contains, item, path);
|
|
20111
|
+
if (containsErrors.length === 0) {
|
|
20112
|
+
counter++;
|
|
20113
|
+
}
|
|
20114
|
+
});
|
|
20115
|
+
var containsInvalid = counter === 0;
|
|
20116
|
+
if (typeof schema.minContains !== 'undefined') {
|
|
20117
|
+
var minContainsInvalid = counter < schema.minContains;
|
|
20118
|
+
if (minContainsInvalid) {
|
|
20119
|
+
errors.push({
|
|
20120
|
+
message: this.translate('error_minContains', [counter, schema.minContains], schema),
|
|
20121
|
+
path: path
|
|
20122
|
+
});
|
|
20123
|
+
}
|
|
20124
|
+
} else {
|
|
20125
|
+
if (containsInvalid) {
|
|
20126
|
+
errors.push({
|
|
20127
|
+
message: this.translate('error_contains', null, schema),
|
|
20128
|
+
path: path
|
|
20129
|
+
});
|
|
20130
|
+
}
|
|
20131
|
+
}
|
|
20132
|
+
if (typeof schema.maxContains !== 'undefined') {
|
|
20133
|
+
var maxContainsInvalid = counter > schema.maxContains;
|
|
20134
|
+
if (maxContainsInvalid) {
|
|
20135
|
+
errors.push({
|
|
20136
|
+
message: this.translate('error_maxContains', [counter, schema.maxContains], schema),
|
|
20137
|
+
path: path
|
|
20138
|
+
});
|
|
20139
|
+
}
|
|
20140
|
+
}
|
|
20141
|
+
return errors;
|
|
20142
|
+
},
|
|
20143
|
+
"if": function _if(schema, value, path) {
|
|
20144
|
+
if (typeof schema.then === 'undefined' && typeof schema["else"] === 'undefined') {
|
|
20145
|
+
return [];
|
|
20146
|
+
}
|
|
20147
|
+
var ifErrors = this._validateSchema(schema["if"], value, path);
|
|
20148
|
+
var thenErrors = [];
|
|
20149
|
+
var elseErrors = [];
|
|
20150
|
+
if (typeof schema.then !== 'undefined') {
|
|
20151
|
+
thenErrors = this._validateSchema(schema.then, value, path);
|
|
20152
|
+
}
|
|
20153
|
+
if (typeof schema["else"] !== 'undefined') {
|
|
20154
|
+
elseErrors = this._validateSchema(schema["else"], value, path);
|
|
20155
|
+
}
|
|
20156
|
+
if (schema["if"] === true) {
|
|
20157
|
+
return thenErrors;
|
|
20158
|
+
}
|
|
20159
|
+
if (schema["if"] === false) {
|
|
20160
|
+
return elseErrors;
|
|
20161
|
+
}
|
|
20162
|
+
if (ifErrors.length === 0) {
|
|
20163
|
+
return thenErrors;
|
|
20164
|
+
}
|
|
20165
|
+
if (ifErrors.length > 0) {
|
|
20166
|
+
return elseErrors;
|
|
20167
|
+
}
|
|
20168
|
+
return [];
|
|
20169
|
+
},
|
|
19822
20170
|
"const": function _const(schema, value, path) {
|
|
19823
20171
|
var valid = JSON.stringify(schema["const"]) === JSON.stringify(value) && !(Array.isArray(value) || _typeof(value) === 'object');
|
|
19824
20172
|
if (!valid) {
|
|
@@ -19845,25 +20193,25 @@ var Validator = /*#__PURE__*/function () {
|
|
|
19845
20193
|
return [];
|
|
19846
20194
|
},
|
|
19847
20195
|
"extends": function _extends(schema, value, path) {
|
|
19848
|
-
var
|
|
20196
|
+
var _this3 = this;
|
|
19849
20197
|
var validate = function validate(errors, e) {
|
|
19850
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20198
|
+
errors.push.apply(errors, _toConsumableArray(_this3._validateSchema(e, value, path)));
|
|
19851
20199
|
return errors;
|
|
19852
20200
|
};
|
|
19853
20201
|
return schema["extends"].reduce(validate, []);
|
|
19854
20202
|
},
|
|
19855
20203
|
allOf: function allOf(schema, value, path) {
|
|
19856
|
-
var
|
|
20204
|
+
var _this4 = this;
|
|
19857
20205
|
var validate = function validate(errors, e) {
|
|
19858
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20206
|
+
errors.push.apply(errors, _toConsumableArray(_this4._validateSchema(e, value, path)));
|
|
19859
20207
|
return errors;
|
|
19860
20208
|
};
|
|
19861
20209
|
return schema.allOf.reduce(validate, []);
|
|
19862
20210
|
},
|
|
19863
20211
|
anyOf: function anyOf(schema, value, path) {
|
|
19864
|
-
var
|
|
20212
|
+
var _this5 = this;
|
|
19865
20213
|
var valid = schema.anyOf.some(function (e) {
|
|
19866
|
-
return !
|
|
20214
|
+
return !_this5._validateSchema(e, value, path).length;
|
|
19867
20215
|
});
|
|
19868
20216
|
if (!valid) {
|
|
19869
20217
|
return [{
|
|
@@ -19875,12 +20223,12 @@ var Validator = /*#__PURE__*/function () {
|
|
|
19875
20223
|
return [];
|
|
19876
20224
|
},
|
|
19877
20225
|
oneOf: function oneOf(schema, value, path) {
|
|
19878
|
-
var
|
|
20226
|
+
var _this6 = this;
|
|
19879
20227
|
var valid = 0;
|
|
19880
20228
|
var oneofErrors = [];
|
|
19881
20229
|
schema.oneOf.forEach(function (o, i) {
|
|
19882
20230
|
/* Set the error paths to be path.oneOf[i].rest.of.path */
|
|
19883
|
-
var tmp =
|
|
20231
|
+
var tmp = _this6._validateSchema(o, value, path);
|
|
19884
20232
|
if (!tmp.length) {
|
|
19885
20233
|
valid++;
|
|
19886
20234
|
}
|
|
@@ -19911,11 +20259,11 @@ var Validator = /*#__PURE__*/function () {
|
|
|
19911
20259
|
return [];
|
|
19912
20260
|
},
|
|
19913
20261
|
type: function type(schema, value, path) {
|
|
19914
|
-
var
|
|
20262
|
+
var _this7 = this;
|
|
19915
20263
|
/* Union type */
|
|
19916
20264
|
if (Array.isArray(schema.type)) {
|
|
19917
20265
|
var valid = schema.type.some(function (e) {
|
|
19918
|
-
return
|
|
20266
|
+
return _this7._checkType(e, value);
|
|
19919
20267
|
});
|
|
19920
20268
|
if (!valid) {
|
|
19921
20269
|
return [{
|
|
@@ -19947,11 +20295,11 @@ var Validator = /*#__PURE__*/function () {
|
|
|
19947
20295
|
return [];
|
|
19948
20296
|
},
|
|
19949
20297
|
disallow: function disallow(schema, value, path) {
|
|
19950
|
-
var
|
|
20298
|
+
var _this8 = this;
|
|
19951
20299
|
/* Union type */
|
|
19952
20300
|
if (Array.isArray(schema.disallow)) {
|
|
19953
20301
|
var invalid = schema.disallow.some(function (e) {
|
|
19954
|
-
return
|
|
20302
|
+
return _this8._checkType(e, value);
|
|
19955
20303
|
});
|
|
19956
20304
|
if (invalid) {
|
|
19957
20305
|
return [{
|
|
@@ -20056,7 +20404,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20056
20404
|
};
|
|
20057
20405
|
this._validateArraySubSchema = {
|
|
20058
20406
|
items: function items(schema, value, path) {
|
|
20059
|
-
var
|
|
20407
|
+
var _this9 = this;
|
|
20060
20408
|
var errors = [];
|
|
20061
20409
|
if (Array.isArray(schema.items)) {
|
|
20062
20410
|
for (var i = 0; i < value.length; i++) {
|
|
@@ -20088,7 +20436,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20088
20436
|
} else {
|
|
20089
20437
|
/* Each item in the array must validate against the schema */
|
|
20090
20438
|
value.forEach(function (e, i) {
|
|
20091
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20439
|
+
errors.push.apply(errors, _toConsumableArray(_this9._validateSchema(schema.items, e, "".concat(path, ".").concat(i))));
|
|
20092
20440
|
});
|
|
20093
20441
|
}
|
|
20094
20442
|
return errors;
|
|
@@ -20151,38 +20499,38 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20151
20499
|
return [];
|
|
20152
20500
|
},
|
|
20153
20501
|
required: function required(schema, value, path) {
|
|
20154
|
-
var
|
|
20502
|
+
var _this10 = this;
|
|
20155
20503
|
var errors = [];
|
|
20156
20504
|
if (Array.isArray(schema.required)) {
|
|
20157
20505
|
schema.required.forEach(function (e) {
|
|
20158
20506
|
if (typeof value[e] !== 'undefined') return;
|
|
20159
|
-
var editor =
|
|
20507
|
+
var editor = _this10.jsoneditor.getEditor("".concat(path, ".").concat(e));
|
|
20160
20508
|
if (editor && editor.dependenciesFulfilled === false) return;
|
|
20161
20509
|
/* Ignore required error if editor is of type "button" or "info" */
|
|
20162
20510
|
if (editor && ['button', 'info'].includes(editor.schema.format || editor.schema.type)) return;
|
|
20163
20511
|
errors.push({
|
|
20164
20512
|
path: path,
|
|
20165
20513
|
property: 'required',
|
|
20166
|
-
message:
|
|
20514
|
+
message: _this10.translate('error_required', [schema && schema.properties && schema.properties[e] && schema.properties[e].title ? schema.properties[e].title : e], schema)
|
|
20167
20515
|
});
|
|
20168
20516
|
});
|
|
20169
20517
|
}
|
|
20170
20518
|
return errors;
|
|
20171
20519
|
},
|
|
20172
20520
|
properties: function properties(schema, value, path, validatedProperties) {
|
|
20173
|
-
var
|
|
20521
|
+
var _this11 = this;
|
|
20174
20522
|
var errors = [];
|
|
20175
20523
|
Object.entries(schema.properties).forEach(function (_ref) {
|
|
20176
20524
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
20177
20525
|
key = _ref2[0],
|
|
20178
20526
|
prop = _ref2[1];
|
|
20179
20527
|
validatedProperties[key] = true;
|
|
20180
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20528
|
+
errors.push.apply(errors, _toConsumableArray(_this11._validateSchema(prop, value[key], "".concat(path, ".").concat(key))));
|
|
20181
20529
|
});
|
|
20182
20530
|
return errors;
|
|
20183
20531
|
},
|
|
20184
20532
|
patternProperties: function patternProperties(schema, value, path, validatedProperties) {
|
|
20185
|
-
var
|
|
20533
|
+
var _this12 = this;
|
|
20186
20534
|
var errors = [];
|
|
20187
20535
|
Object.entries(schema.patternProperties).forEach(function (_ref3) {
|
|
20188
20536
|
var _ref4 = _slicedToArray(_ref3, 2),
|
|
@@ -20196,7 +20544,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20196
20544
|
v = _ref6[1];
|
|
20197
20545
|
if (regex.test(j)) {
|
|
20198
20546
|
validatedProperties[j] = true;
|
|
20199
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20547
|
+
errors.push.apply(errors, _toConsumableArray(_this12._validateSchema(prop, v, "".concat(path, ".").concat(j))));
|
|
20200
20548
|
}
|
|
20201
20549
|
});
|
|
20202
20550
|
});
|
|
@@ -20205,7 +20553,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20205
20553
|
};
|
|
20206
20554
|
this._validateObjectSubSchema2 = {
|
|
20207
20555
|
propertyNames: function propertyNames(schema, value, path, validatedProperties) {
|
|
20208
|
-
var
|
|
20556
|
+
var _this13 = this;
|
|
20209
20557
|
var errors = [];
|
|
20210
20558
|
var keys = Object.keys(value);
|
|
20211
20559
|
var k = null;
|
|
@@ -20221,7 +20569,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20221
20569
|
errors.push({
|
|
20222
20570
|
path: path,
|
|
20223
20571
|
property: 'propertyNames',
|
|
20224
|
-
message:
|
|
20572
|
+
message: _this13.translate('error_property_names_false', [k], schema)
|
|
20225
20573
|
});
|
|
20226
20574
|
return "break";
|
|
20227
20575
|
}
|
|
@@ -20278,14 +20626,14 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20278
20626
|
errors.push({
|
|
20279
20627
|
path: path,
|
|
20280
20628
|
property: 'propertyNames',
|
|
20281
|
-
message:
|
|
20629
|
+
message: _this13.translate('error_property_names_unsupported', [j], schema)
|
|
20282
20630
|
});
|
|
20283
20631
|
return false;
|
|
20284
20632
|
}
|
|
20285
20633
|
errors.push({
|
|
20286
20634
|
path: path,
|
|
20287
20635
|
property: 'propertyNames',
|
|
20288
|
-
message:
|
|
20636
|
+
message: _this13.translate(msg, [k], schema)
|
|
20289
20637
|
});
|
|
20290
20638
|
return false;
|
|
20291
20639
|
});
|
|
@@ -20324,7 +20672,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20324
20672
|
return errors;
|
|
20325
20673
|
},
|
|
20326
20674
|
dependencies: function dependencies(schema, value, path) {
|
|
20327
|
-
var
|
|
20675
|
+
var _this14 = this;
|
|
20328
20676
|
var errors = [];
|
|
20329
20677
|
Object.entries(schema.dependencies).forEach(function (_ref9) {
|
|
20330
20678
|
var _ref10 = _slicedToArray(_ref9, 2),
|
|
@@ -20340,13 +20688,13 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20340
20688
|
errors.push({
|
|
20341
20689
|
path: path,
|
|
20342
20690
|
property: 'dependencies',
|
|
20343
|
-
message:
|
|
20691
|
+
message: _this14.translate('error_dependency', [d], schema)
|
|
20344
20692
|
});
|
|
20345
20693
|
}
|
|
20346
20694
|
});
|
|
20347
20695
|
/* Schema dependency */
|
|
20348
20696
|
} else {
|
|
20349
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20697
|
+
errors.push.apply(errors, _toConsumableArray(_this14._validateSchema(dep, value, path)));
|
|
20350
20698
|
}
|
|
20351
20699
|
});
|
|
20352
20700
|
return errors;
|
|
@@ -20419,7 +20767,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20419
20767
|
}, {
|
|
20420
20768
|
key: "_validateSchema",
|
|
20421
20769
|
value: function _validateSchema(schema, value, path) {
|
|
20422
|
-
var
|
|
20770
|
+
var _this15 = this;
|
|
20423
20771
|
var errors = [];
|
|
20424
20772
|
path = path || this.jsoneditor.root.formname;
|
|
20425
20773
|
|
|
@@ -20434,8 +20782,8 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20434
20782
|
return this._validateV3Required(schema, value, path);
|
|
20435
20783
|
}
|
|
20436
20784
|
Object.keys(schema).forEach(function (key) {
|
|
20437
|
-
if (
|
|
20438
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20785
|
+
if (_this15._validateSubSchema[key]) {
|
|
20786
|
+
errors.push.apply(errors, _toConsumableArray(_this15._validateSubSchema[key].call(_this15, schema, value, path)));
|
|
20439
20787
|
}
|
|
20440
20788
|
});
|
|
20441
20789
|
|
|
@@ -20446,8 +20794,8 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20446
20794
|
if (schema.links) {
|
|
20447
20795
|
schema.links.forEach(function (s, m) {
|
|
20448
20796
|
if (s.rel && s.rel.toLowerCase() === 'describedby') {
|
|
20449
|
-
schema =
|
|
20450
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20797
|
+
schema = _this15._expandSchemaLink(schema, m);
|
|
20798
|
+
errors.push.apply(errors, _toConsumableArray(_this15._validateSchema(schema, value, path, _this15.translate)));
|
|
20451
20799
|
}
|
|
20452
20800
|
});
|
|
20453
20801
|
}
|
|
@@ -20493,7 +20841,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20493
20841
|
}, {
|
|
20494
20842
|
key: "_validateByValueType",
|
|
20495
20843
|
value: function _validateByValueType(schema, value, path) {
|
|
20496
|
-
var
|
|
20844
|
+
var _this16 = this;
|
|
20497
20845
|
var errors = [];
|
|
20498
20846
|
if (value === null) return errors;
|
|
20499
20847
|
/* Number Specific Validation */
|
|
@@ -20502,8 +20850,8 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20502
20850
|
/* `maximum` */
|
|
20503
20851
|
/* `minimum` */
|
|
20504
20852
|
Object.keys(schema).forEach(function (key) {
|
|
20505
|
-
if (
|
|
20506
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20853
|
+
if (_this16._validateNumberSubSchema[key]) {
|
|
20854
|
+
errors.push.apply(errors, _toConsumableArray(_this16._validateNumberSubSchema[key].call(_this16, schema, value, path)));
|
|
20507
20855
|
}
|
|
20508
20856
|
});
|
|
20509
20857
|
/* String specific validation */
|
|
@@ -20512,8 +20860,8 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20512
20860
|
/* `minLength` */
|
|
20513
20861
|
/* `pattern` */
|
|
20514
20862
|
Object.keys(schema).forEach(function (key) {
|
|
20515
|
-
if (
|
|
20516
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20863
|
+
if (_this16._validateStringSubSchema[key]) {
|
|
20864
|
+
errors.push.apply(errors, _toConsumableArray(_this16._validateStringSubSchema[key].call(_this16, schema, value, path)));
|
|
20517
20865
|
}
|
|
20518
20866
|
});
|
|
20519
20867
|
/* Array specific validation */
|
|
@@ -20523,8 +20871,8 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20523
20871
|
/* `minItems`
|
|
20524
20872
|
/* `uniqueItems` */
|
|
20525
20873
|
Object.keys(schema).forEach(function (key) {
|
|
20526
|
-
if (
|
|
20527
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20874
|
+
if (_this16._validateArraySubSchema[key]) {
|
|
20875
|
+
errors.push.apply(errors, _toConsumableArray(_this16._validateArraySubSchema[key].call(_this16, schema, value, path)));
|
|
20528
20876
|
}
|
|
20529
20877
|
});
|
|
20530
20878
|
/* Object specific validation */
|
|
@@ -20536,8 +20884,8 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20536
20884
|
/* `properties`
|
|
20537
20885
|
/* `patternProperties` */
|
|
20538
20886
|
Object.keys(schema).forEach(function (key) {
|
|
20539
|
-
if (
|
|
20540
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20887
|
+
if (_this16._validateObjectSubSchema[key]) {
|
|
20888
|
+
errors.push.apply(errors, _toConsumableArray(_this16._validateObjectSubSchema[key].call(_this16, schema, value, path, validatedProperties)));
|
|
20541
20889
|
}
|
|
20542
20890
|
});
|
|
20543
20891
|
|
|
@@ -20549,8 +20897,8 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20549
20897
|
/* `additionalProperties` */
|
|
20550
20898
|
/* `dependencies` */
|
|
20551
20899
|
Object.keys(schema).forEach(function (key) {
|
|
20552
|
-
if (typeof
|
|
20553
|
-
errors.push.apply(errors, _toConsumableArray(
|
|
20900
|
+
if (typeof _this16._validateObjectSubSchema2[key] !== 'undefined') {
|
|
20901
|
+
errors.push.apply(errors, _toConsumableArray(_this16._validateObjectSubSchema2[key].call(_this16, schema, value, path, validatedProperties)));
|
|
20554
20902
|
}
|
|
20555
20903
|
});
|
|
20556
20904
|
}
|
|
@@ -20594,7 +20942,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20594
20942
|
}, {
|
|
20595
20943
|
key: "_validateDateTimeSubSchema",
|
|
20596
20944
|
value: function _validateDateTimeSubSchema(schema, value, path) {
|
|
20597
|
-
var
|
|
20945
|
+
var _this17 = this;
|
|
20598
20946
|
var _validateInteger = function _validateInteger(schema, value, path) {
|
|
20599
20947
|
/* The value is a timestamp */
|
|
20600
20948
|
if (value * 1 < 1) {
|
|
@@ -20602,14 +20950,14 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20602
20950
|
return [{
|
|
20603
20951
|
path: path,
|
|
20604
20952
|
property: 'format',
|
|
20605
|
-
message:
|
|
20953
|
+
message: _this17.translate('error_invalid_epoch', null, schema)
|
|
20606
20954
|
}];
|
|
20607
20955
|
} else if (value !== Math.abs(parseInt(value))) {
|
|
20608
20956
|
/* not much to check for, so we assume value is ok if it's a positive number */
|
|
20609
20957
|
return [{
|
|
20610
20958
|
path: path,
|
|
20611
20959
|
property: 'format',
|
|
20612
|
-
message:
|
|
20960
|
+
message: _this17.translate("error_".concat(schema.format.replace(/-/g, '_')), [dateFormat], schema)
|
|
20613
20961
|
}];
|
|
20614
20962
|
}
|
|
20615
20963
|
return [];
|
|
@@ -20637,7 +20985,7 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20637
20985
|
return [{
|
|
20638
20986
|
path: path,
|
|
20639
20987
|
property: 'format',
|
|
20640
|
-
message:
|
|
20988
|
+
message: _this17.translate("error_".concat(editor.format.replace(/-/g, '_')), [errorDateFormat], schema)
|
|
20641
20989
|
}];
|
|
20642
20990
|
}
|
|
20643
20991
|
}
|
|
@@ -20675,12 +21023,12 @@ var Validator = /*#__PURE__*/function () {
|
|
|
20675
21023
|
}, {
|
|
20676
21024
|
key: "_validateCustomValidator",
|
|
20677
21025
|
value: function _validateCustomValidator(schema, value, path) {
|
|
20678
|
-
var
|
|
21026
|
+
var _this18 = this;
|
|
20679
21027
|
var errors = [];
|
|
20680
21028
|
/* Internal validators using the custom validator format */
|
|
20681
21029
|
errors.push.apply(errors, _toConsumableArray(_validators_ip_validator_js__WEBPACK_IMPORTED_MODULE_36__.ipValidator.call(this, schema, value, path, this.translate)));
|
|
20682
21030
|
var validate = function validate(validator) {
|
|
20683
|
-
errors.push.apply(errors, _toConsumableArray(validator.call(
|
|
21031
|
+
errors.push.apply(errors, _toConsumableArray(validator.call(_this18, schema, value, path)));
|
|
20684
21032
|
};
|
|
20685
21033
|
/* Custom type validation (global) */
|
|
20686
21034
|
this.defaults.custom_validators.forEach(validate);
|
|
@@ -29405,16 +29753,6 @@ __webpack_require__(/*! ../modules/web.set-interval */ "./node_modules/core-js/m
|
|
|
29405
29753
|
__webpack_require__(/*! ../modules/web.set-timeout */ "./node_modules/core-js/modules/web.set-timeout.js");
|
|
29406
29754
|
|
|
29407
29755
|
|
|
29408
|
-
/***/ }),
|
|
29409
|
-
|
|
29410
|
-
/***/ "./src/themes/bootstrap3.css":
|
|
29411
|
-
/*!***********************************!*\
|
|
29412
|
-
!*** ./src/themes/bootstrap3.css ***!
|
|
29413
|
-
\***********************************/
|
|
29414
|
-
/***/ (() => {
|
|
29415
|
-
|
|
29416
|
-
|
|
29417
|
-
|
|
29418
29756
|
/***/ })
|
|
29419
29757
|
|
|
29420
29758
|
/******/ });
|