@json-editor/json-editor 2.14.0 → 2.14.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 +10 -0
- package/dist/jsoneditor.js +1 -1
- package/dist/jsoneditor.js.LICENSE.txt +1 -1
- package/dist/nonmin/jsoneditor.js +68 -53
- package/dist/nonmin/jsoneditor.js.map +1 -1
- package/package.json +1 -1
- package/src/editor.js +1 -1
- package/src/editors/array.js +7 -1
- package/src/editors/multiple.js +7 -1
- package/src/editors/radio.js +4 -0
- package/src/editors/string.js +3 -1
- package/src/themes/bootstrap3.js +0 -9
- package/tests/codeceptjs/issues/issue-gh-1171_test.js +11 -0
- package/tests/codeceptjs/issues/issue-gh-1272_test.js +21 -0
- package/tests/codeceptjs/issues/issue-gh-1485_test.js +13 -0
- package/tests/codeceptjs/issues/issue-gh-1491_test.js +9 -0
- package/tests/pages/issues/issue-gh-1171.html +39 -0
- package/tests/pages/issues/issue-gh-1272.html +167 -0
- package/tests/pages/issues/issue-gh-1466.html +63 -0
- package/tests/pages/issues/issue-gh-1485.html +59 -0
- package/tests/pages/issues/issue-gh-1491.html +59 -0
|
@@ -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.14.
|
|
6
|
+
* * @version "2.14.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
|
|
@@ -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.14.
|
|
6
|
+
* * @version "2.14.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
|
|
@@ -1183,7 +1183,7 @@ var AbstractEditor = /*#__PURE__*/function () {
|
|
|
1183
1183
|
});
|
|
1184
1184
|
|
|
1185
1185
|
// object properties
|
|
1186
|
-
if (Object.keys(this.editors).length) {
|
|
1186
|
+
if (this.editors && Object.keys(this.editors).length) {
|
|
1187
1187
|
vars.properties = {};
|
|
1188
1188
|
Object.keys(this.editors).forEach(function (key) {
|
|
1189
1189
|
var editor = _this7.editors[key];
|
|
@@ -2035,7 +2035,7 @@ var ArrayEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
2035
2035
|
key: "empty",
|
|
2036
2036
|
value: function empty(hard) {
|
|
2037
2037
|
var _this3 = this;
|
|
2038
|
-
if (
|
|
2038
|
+
if (this.rows === null) return;
|
|
2039
2039
|
this.rows.forEach(function (row, i) {
|
|
2040
2040
|
if (hard) {
|
|
2041
2041
|
if (_this3.checkParent(row.tab)) row.tab.parentNode.removeChild(row.tab);
|
|
@@ -2044,6 +2044,12 @@ var ArrayEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
2044
2044
|
}
|
|
2045
2045
|
_this3.rows[i] = null;
|
|
2046
2046
|
});
|
|
2047
|
+
if (hard) {
|
|
2048
|
+
for (var j = this.rows.length; j < this.row_cache.length; j++) {
|
|
2049
|
+
this.destroyRow(this.row_cache[j], true);
|
|
2050
|
+
this.row_cache[j] = null;
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2047
2053
|
this.rows = [];
|
|
2048
2054
|
if (hard) this.row_cache = [];
|
|
2049
2055
|
}
|
|
@@ -6343,7 +6349,9 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6343
6349
|
}, {
|
|
6344
6350
|
key: "buildChildEditor",
|
|
6345
6351
|
value: function buildChildEditor(i) {
|
|
6346
|
-
var
|
|
6352
|
+
var _schema,
|
|
6353
|
+
_schema$options,
|
|
6354
|
+
_this2 = this;
|
|
6347
6355
|
var type = this.types[i];
|
|
6348
6356
|
var holder = this.theme.getChildEditorHolder();
|
|
6349
6357
|
this.editor_holder.appendChild(holder);
|
|
@@ -6360,6 +6368,9 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6360
6368
|
schema.required = this.schema.required.concat(type.required);
|
|
6361
6369
|
}
|
|
6362
6370
|
}
|
|
6371
|
+
if ((_schema = schema) !== null && _schema !== void 0 && (_schema$options = _schema.options) !== null && _schema$options !== void 0 && _schema$options.dependencies) {
|
|
6372
|
+
delete schema.options.dependencies;
|
|
6373
|
+
}
|
|
6363
6374
|
var editor = this.jsoneditor.getEditorClass(schema);
|
|
6364
6375
|
this.editors[i] = this.jsoneditor.createEditor(editor, {
|
|
6365
6376
|
jsoneditor: this.jsoneditor,
|
|
@@ -6372,7 +6383,9 @@ var MultipleEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
6372
6383
|
this.editors[i].preBuild();
|
|
6373
6384
|
this.editors[i].build();
|
|
6374
6385
|
this.editors[i].postBuild();
|
|
6375
|
-
if (this.editors[i].header)
|
|
6386
|
+
if (this.editors[i].header) {
|
|
6387
|
+
this.theme.visuallyHidden(this.editors[i].header);
|
|
6388
|
+
}
|
|
6376
6389
|
this.editors[i].option = this.switcher_options[i];
|
|
6377
6390
|
holder.addEventListener('change_header_text', function () {
|
|
6378
6391
|
_this2.refreshHeaderText();
|
|
@@ -8843,43 +8856,47 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8843
8856
|
/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
8844
8857
|
/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");
|
|
8845
8858
|
/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
8846
|
-
/* harmony import */ var
|
|
8847
|
-
/* harmony import */ var
|
|
8848
|
-
/* harmony import */ var
|
|
8849
|
-
/* harmony import */ var
|
|
8850
|
-
/* harmony import */ var
|
|
8851
|
-
/* harmony import */ var
|
|
8852
|
-
/* harmony import */ var
|
|
8853
|
-
/* harmony import */ var
|
|
8854
|
-
/* harmony import */ var
|
|
8855
|
-
/* harmony import */ var
|
|
8856
|
-
/* harmony import */ var
|
|
8857
|
-
/* harmony import */ var
|
|
8858
|
-
/* harmony import */ var
|
|
8859
|
-
/* harmony import */ var
|
|
8860
|
-
/* harmony import */ var
|
|
8861
|
-
/* harmony import */ var
|
|
8862
|
-
/* harmony import */ var
|
|
8863
|
-
/* harmony import */ var
|
|
8864
|
-
/* harmony import */ var
|
|
8865
|
-
/* harmony import */ var
|
|
8866
|
-
/* harmony import */ var
|
|
8867
|
-
/* harmony import */ var
|
|
8868
|
-
/* harmony import */ var
|
|
8869
|
-
/* harmony import */ var
|
|
8870
|
-
/* harmony import */ var
|
|
8871
|
-
/* harmony import */ var
|
|
8872
|
-
/* harmony import */ var
|
|
8873
|
-
/* harmony import */ var
|
|
8874
|
-
/* harmony import */ var
|
|
8875
|
-
/* harmony import */ var
|
|
8876
|
-
/* harmony import */ var
|
|
8877
|
-
/* harmony import */ var
|
|
8878
|
-
/* harmony import */ var
|
|
8879
|
-
/* harmony import */ var
|
|
8880
|
-
/* harmony import */ var
|
|
8881
|
-
/* harmony import */ var
|
|
8882
|
-
/* harmony import */ var
|
|
8859
|
+
/* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.for-each.js */ "./node_modules/core-js/modules/es.array.for-each.js");
|
|
8860
|
+
/* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
8861
|
+
/* 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");
|
|
8862
|
+
/* 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__);
|
|
8863
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");
|
|
8864
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
8865
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
|
|
8866
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
8867
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");
|
|
8868
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
8869
|
+
/* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ "./node_modules/core-js/modules/es.object.set-prototype-of.js");
|
|
8870
|
+
/* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
8871
|
+
/* harmony import */ var core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.function.bind.js */ "./node_modules/core-js/modules/es.function.bind.js");
|
|
8872
|
+
/* harmony import */ var core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
8873
|
+
/* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ "./node_modules/core-js/modules/es.object.get-prototype-of.js");
|
|
8874
|
+
/* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
8875
|
+
/* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.reflect.construct.js */ "./node_modules/core-js/modules/es.reflect.construct.js");
|
|
8876
|
+
/* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
8877
|
+
/* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.object.create.js */ "./node_modules/core-js/modules/es.object.create.js");
|
|
8878
|
+
/* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
8879
|
+
/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js");
|
|
8880
|
+
/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
8881
|
+
/* harmony import */ var core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.reflect.get.js */ "./node_modules/core-js/modules/es.reflect.get.js");
|
|
8882
|
+
/* harmony import */ var core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
8883
|
+
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js");
|
|
8884
|
+
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
8885
|
+
/* harmony import */ var core_js_modules_es_symbol_to_primitive_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ "./node_modules/core-js/modules/es.symbol.to-primitive.js");
|
|
8886
|
+
/* harmony import */ var core_js_modules_es_symbol_to_primitive_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_to_primitive_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
8887
|
+
/* harmony import */ var core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ "./node_modules/core-js/modules/es.date.to-primitive.js");
|
|
8888
|
+
/* harmony import */ var core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_16__);
|
|
8889
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");
|
|
8890
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
8891
|
+
/* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ "./node_modules/core-js/modules/es.symbol.iterator.js");
|
|
8892
|
+
/* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
8893
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
|
|
8894
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
8895
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
|
|
8896
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
8897
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
|
|
8898
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
8899
|
+
/* harmony import */ var _select_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./select.js */ "./src/editors/select.js");
|
|
8883
8900
|
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); }
|
|
8884
8901
|
|
|
8885
8902
|
|
|
@@ -8899,6 +8916,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8899
8916
|
|
|
8900
8917
|
|
|
8901
8918
|
|
|
8919
|
+
|
|
8920
|
+
|
|
8902
8921
|
|
|
8903
8922
|
|
|
8904
8923
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -8942,6 +8961,9 @@ var RadioEditor = /*#__PURE__*/function (_SelectEditor) {
|
|
|
8942
8961
|
var radioInputEventhandler = function radioInputEventhandler(e) {
|
|
8943
8962
|
_this.setValue(e.currentTarget.value);
|
|
8944
8963
|
_this.onChange(true);
|
|
8964
|
+
_this.radioGroup.forEach(function (radio) {
|
|
8965
|
+
radio.checked = radio.value === _this.getValue();
|
|
8966
|
+
});
|
|
8945
8967
|
};
|
|
8946
8968
|
for (var i = 0; i < this.enum_values.length; i++) {
|
|
8947
8969
|
/* form radio elements */
|
|
@@ -9035,7 +9057,7 @@ var RadioEditor = /*#__PURE__*/function (_SelectEditor) {
|
|
|
9035
9057
|
}
|
|
9036
9058
|
}]);
|
|
9037
9059
|
return RadioEditor;
|
|
9038
|
-
}(
|
|
9060
|
+
}(_select_js__WEBPACK_IMPORTED_MODULE_22__.SelectEditor);
|
|
9039
9061
|
|
|
9040
9062
|
/***/ }),
|
|
9041
9063
|
|
|
@@ -11100,7 +11122,9 @@ var StringEditor = /*#__PURE__*/function (_AbstractEditor) {
|
|
|
11100
11122
|
if (this.adjust_height) this.adjust_height(this.input);
|
|
11101
11123
|
|
|
11102
11124
|
/* Bubble this setValue to parents if the value changed */
|
|
11103
|
-
|
|
11125
|
+
if (!fromTemplate) {
|
|
11126
|
+
this.onChange(changed);
|
|
11127
|
+
}
|
|
11104
11128
|
|
|
11105
11129
|
/* Return object with changed state and sanitized value for use in editors that extend this */
|
|
11106
11130
|
return {
|
|
@@ -16306,11 +16330,6 @@ var bootstrap3Theme = /*#__PURE__*/function (_AbstractTheme) {
|
|
|
16306
16330
|
if (this.closest(input, '.compact')) {
|
|
16307
16331
|
input.controlgroup.style.marginBottom = 0;
|
|
16308
16332
|
}
|
|
16309
|
-
if (this.queuedInputErrorText) {
|
|
16310
|
-
var text = this.queuedInputErrorText;
|
|
16311
|
-
delete this.queuedInputErrorText;
|
|
16312
|
-
this.addInputError(input, text);
|
|
16313
|
-
}
|
|
16314
16333
|
|
|
16315
16334
|
/* TODO: use bootstrap slider */
|
|
16316
16335
|
}
|
|
@@ -16486,7 +16505,6 @@ var bootstrap3Theme = /*#__PURE__*/function (_AbstractTheme) {
|
|
|
16486
16505
|
key: "addInputError",
|
|
16487
16506
|
value: function addInputError(input, text) {
|
|
16488
16507
|
if (!input.controlgroup) {
|
|
16489
|
-
this.queuedInputErrorText = text;
|
|
16490
16508
|
return;
|
|
16491
16509
|
}
|
|
16492
16510
|
input.controlgroup.classList.add('has-error');
|
|
@@ -16503,9 +16521,6 @@ var bootstrap3Theme = /*#__PURE__*/function (_AbstractTheme) {
|
|
|
16503
16521
|
}, {
|
|
16504
16522
|
key: "removeInputError",
|
|
16505
16523
|
value: function removeInputError(input) {
|
|
16506
|
-
if (!input.controlgroup) {
|
|
16507
|
-
delete this.queuedInputErrorText;
|
|
16508
|
-
}
|
|
16509
16524
|
if (!input.errmsg) return;
|
|
16510
16525
|
input.errmsg.style.display = 'none';
|
|
16511
16526
|
input.controlgroup.classList.remove('has-error');
|