@json-editor/json-editor 1.4.0-beta.0 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (435) hide show
  1. package/.claude/settings.local.json +8 -0
  2. package/.env +2 -0
  3. package/.env-dist +2 -0
  4. package/.eslintrc +10 -0
  5. package/.github/PULL_REQUEST_TEMPLATE.md +9 -0
  6. package/.github/workflows/build.yml +70 -0
  7. package/.travis.yml +62 -16
  8. package/CHANGELOG.md +483 -113
  9. package/CONTRIBUTING.md +43 -4
  10. package/Makefile +26 -0
  11. package/README.md +632 -121
  12. package/README_ADDON.md +577 -0
  13. package/UPGRADING.md +46 -0
  14. package/build/CssToJson.js +55 -0
  15. package/codecept.conf.js +35 -0
  16. package/config/.eslintrc +7 -0
  17. package/config/codeceptjs_helpers.js +146 -0
  18. package/config/helpers.js +10 -0
  19. package/config/karma.conf.js +89 -0
  20. package/config/readme.md +31 -0
  21. package/config/webpack.common.js +71 -0
  22. package/config/webpack.dev.js +15 -0
  23. package/config/webpack.nonmin.js +19 -0
  24. package/config/webpack.prod.js +24 -0
  25. package/dist/jsoneditor.js +2 -11550
  26. package/dist/jsoneditor.js.LICENSE.txt +15 -0
  27. package/dist/nonmin/jsoneditor.js +31392 -0
  28. package/dist/nonmin/jsoneditor.js.map +1 -0
  29. package/docs/basic.html +2 -2
  30. package/docs/basic_person.json +2 -1
  31. package/docs/choices.html +86 -0
  32. package/docs/cleave.html +11 -19
  33. package/docs/colorpicker.html +194 -0
  34. package/docs/css_integration.html +56 -54
  35. package/docs/custom-editor.html +92 -0
  36. package/docs/datetime.html +48 -21
  37. package/docs/describedby.html +42 -35
  38. package/docs/enumsource.html +67 -0
  39. package/docs/form-submission.html +162 -0
  40. package/docs/imask.html +192 -0
  41. package/docs/index.html +600 -582
  42. package/docs/materialize_css.html +1 -1
  43. package/docs/meta-schema.html +793 -0
  44. package/docs/meta_schema.json +446 -400
  45. package/docs/polyfills/assign.js +29 -0
  46. package/docs/radio.html +9 -17
  47. package/docs/recursive.html +15 -17
  48. package/docs/scripts/ajv-validator.js +8695 -0
  49. package/docs/select2.html +15 -9
  50. package/docs/selectize.html +11 -9
  51. package/docs/signature.html +12 -11
  52. package/docs/starrating.html +5 -17
  53. package/docs/upload.html +33 -23
  54. package/docs/uuid.html +70 -0
  55. package/docs/wysiwyg.html +14 -7
  56. package/jasmine.json +11 -0
  57. package/package.json +74 -25
  58. package/release-notes.md +90 -0
  59. package/src/core.js +411 -611
  60. package/src/defaults.js +381 -327
  61. package/src/editor.js +733 -544
  62. package/src/editors/ace.js +90 -0
  63. package/src/editors/array/choices.js +104 -0
  64. package/src/editors/array/select2.js +112 -0
  65. package/src/editors/array/selectize.js +107 -130
  66. package/src/editors/array.css +9 -0
  67. package/src/editors/array.css.js +3 -0
  68. package/src/editors/array.js +812 -695
  69. package/src/editors/autocomplete.js +59 -0
  70. package/src/editors/base64.js +148 -129
  71. package/src/editors/button.js +104 -0
  72. package/src/editors/checkbox.js +111 -76
  73. package/src/editors/choices.css +3 -0
  74. package/src/editors/choices.css.js +3 -0
  75. package/src/editors/choices.js +71 -0
  76. package/src/editors/colorpicker.js +105 -0
  77. package/src/editors/datetime.js +93 -79
  78. package/src/editors/describedby.js +141 -125
  79. package/src/editors/enum.js +131 -116
  80. package/src/editors/hidden.js +100 -86
  81. package/src/editors/index.js +81 -0
  82. package/src/editors/info.js +28 -0
  83. package/src/editors/integer.js +21 -8
  84. package/src/editors/ip.js +36 -0
  85. package/src/editors/jodit.js +66 -0
  86. package/src/editors/multiple.js +380 -241
  87. package/src/editors/multiselect.js +207 -207
  88. package/src/editors/null.js +15 -11
  89. package/src/editors/number.js +39 -30
  90. package/src/editors/object.css +41 -0
  91. package/src/editors/object.css.js +3 -0
  92. package/src/editors/object.js +1190 -1068
  93. package/src/editors/radio.js +117 -101
  94. package/src/editors/sceditor.js +74 -0
  95. package/src/editors/select.js +318 -342
  96. package/src/editors/select2.js +112 -0
  97. package/src/editors/selectize.js +89 -338
  98. package/src/editors/signature.js +100 -104
  99. package/src/editors/simplemde.js +103 -0
  100. package/src/{styles → editors}/starrating.css +11 -2
  101. package/src/editors/starrating.css.js +3 -0
  102. package/src/editors/starrating.js +126 -95
  103. package/src/editors/stepper.js +27 -0
  104. package/src/editors/string.js +352 -426
  105. package/src/editors/table.js +486 -410
  106. package/src/editors/upload.js +297 -131
  107. package/src/editors/uuid.js +49 -0
  108. package/src/iconlib.js +22 -27
  109. package/src/iconlibs/bootstrap.js +28 -0
  110. package/src/iconlibs/bootstrap2.js +28 -17
  111. package/src/iconlibs/bootstrap3.js +28 -17
  112. package/src/iconlibs/fontawesome3.js +28 -17
  113. package/src/iconlibs/fontawesome4.js +28 -18
  114. package/src/iconlibs/fontawesome5.js +28 -18
  115. package/src/iconlibs/foundation2.js +24 -17
  116. package/src/iconlibs/foundation3.js +28 -17
  117. package/src/iconlibs/index.js +27 -0
  118. package/src/iconlibs/jqueryui.js +28 -17
  119. package/src/iconlibs/materialicons.js +49 -44
  120. package/src/iconlibs/openiconic.js +28 -0
  121. package/src/iconlibs/spectre.js +28 -0
  122. package/src/resolvers.js +135 -0
  123. package/src/schemaloader.js +639 -0
  124. package/src/style.css +157 -0
  125. package/src/style.css.js +3 -0
  126. package/src/templates/default.js +46 -51
  127. package/src/templates/ejs.js +8 -10
  128. package/src/templates/handlebars.js +1 -3
  129. package/src/templates/hogan.js +7 -9
  130. package/src/templates/index.js +21 -0
  131. package/src/templates/lodash.js +6 -8
  132. package/src/templates/markup.js +6 -8
  133. package/src/templates/mustache.js +6 -8
  134. package/src/templates/swig.js +1 -3
  135. package/src/templates/underscore.js +6 -8
  136. package/src/theme.js +717 -433
  137. package/src/themes/barebones.css +35 -0
  138. package/src/themes/barebones.css.js +3 -0
  139. package/src/themes/barebones.js +31 -0
  140. package/src/themes/bootstrap2.js +302 -265
  141. package/src/themes/bootstrap3.css +53 -0
  142. package/src/themes/bootstrap3.css.js +3 -0
  143. package/src/themes/bootstrap3.js +355 -262
  144. package/src/themes/bootstrap4.css +89 -0
  145. package/src/themes/bootstrap4.css.js +3 -0
  146. package/src/themes/bootstrap4.js +743 -237
  147. package/src/themes/bootstrap5.css +97 -0
  148. package/src/themes/bootstrap5.css.js +3 -0
  149. package/src/themes/bootstrap5.js +687 -0
  150. package/src/themes/foundation.js +535 -472
  151. package/src/themes/html.css +60 -0
  152. package/src/themes/html.css.js +3 -0
  153. package/src/themes/html.js +69 -82
  154. package/src/themes/index.js +29 -0
  155. package/src/themes/jqueryui.js +181 -167
  156. package/src/themes/materialize.js +263 -292
  157. package/src/themes/spectre.css +208 -0
  158. package/src/themes/spectre.css.js +3 -0
  159. package/src/themes/spectre.js +443 -0
  160. package/src/themes/tailwind.css +303 -0
  161. package/src/themes/tailwind.css.js +3 -0
  162. package/src/themes/tailwind.js +469 -0
  163. package/src/utilities.js +127 -68
  164. package/src/validator.js +909 -565
  165. package/src/validators/ip-validator.js +51 -0
  166. package/tests/Dockerfile +3 -0
  167. package/tests/README.md +25 -5
  168. package/tests/codeceptjs/codecept.json +9 -2
  169. package/tests/codeceptjs/constrains/contains_test.js +37 -0
  170. package/tests/codeceptjs/constrains/dependentRequired_test.js +33 -0
  171. package/tests/codeceptjs/constrains/dependentSchemas_test.js +16 -0
  172. package/tests/codeceptjs/constrains/if-then-else_test.js +186 -0
  173. package/tests/codeceptjs/core_test.js +534 -63
  174. package/tests/codeceptjs/editors/advanced_test.js +12 -9
  175. package/tests/codeceptjs/editors/array_any_of_test.js +50 -0
  176. package/tests/codeceptjs/editors/array_test.js +923 -657
  177. package/tests/codeceptjs/editors/autocomplete_test.js +15 -0
  178. package/tests/codeceptjs/editors/button_test.js +50 -0
  179. package/tests/codeceptjs/editors/checkbox_test.js +21 -6
  180. package/tests/codeceptjs/editors/colorpicker_test.js +29 -0
  181. package/tests/codeceptjs/editors/datetime_test.js +33 -0
  182. package/tests/codeceptjs/editors/inheritance_test.js +10 -0
  183. package/tests/codeceptjs/editors/integer_test.js +82 -64
  184. package/tests/codeceptjs/editors/jodit_test.js +23 -0
  185. package/tests/codeceptjs/editors/multiple_test.js +27 -0
  186. package/tests/codeceptjs/editors/multiselect_test.js +6 -7
  187. package/tests/codeceptjs/editors/number_test.js +75 -60
  188. package/tests/codeceptjs/editors/object_test.js +322 -80
  189. package/tests/codeceptjs/editors/option-no_default_values_test.js +42 -0
  190. package/tests/codeceptjs/editors/programmatic-changes_test.js +20 -0
  191. package/tests/codeceptjs/editors/purify_test.js +26 -0
  192. package/tests/codeceptjs/editors/radio_test.js +9 -0
  193. package/tests/codeceptjs/editors/range_test.js +10 -0
  194. package/tests/codeceptjs/editors/rating_test.js +10 -10
  195. package/tests/codeceptjs/editors/select_test.js +47 -18
  196. package/tests/codeceptjs/editors/starrating_test.js +15 -0
  197. package/tests/codeceptjs/editors/stepper_test.js +37 -0
  198. package/tests/codeceptjs/editors/string_test.js +107 -91
  199. package/tests/codeceptjs/editors/table-confirm-delete_test.js +60 -54
  200. package/tests/codeceptjs/editors/tabs_test.js +15 -11
  201. package/tests/codeceptjs/editors/uuid_test.js +48 -0
  202. package/tests/codeceptjs/editors/validation_test.js +13 -9
  203. package/tests/codeceptjs/issues/issue-gh-1133_test.js +9 -0
  204. package/tests/codeceptjs/issues/issue-gh-1158-2_test.js +10 -0
  205. package/tests/codeceptjs/issues/issue-gh-1158_test.js +8 -0
  206. package/tests/codeceptjs/issues/issue-gh-1164_test.js +9 -0
  207. package/tests/codeceptjs/issues/issue-gh-1171_test.js +11 -0
  208. package/tests/codeceptjs/issues/issue-gh-1211_test.js +17 -0
  209. package/tests/codeceptjs/issues/issue-gh-1257_test.js +11 -0
  210. package/tests/codeceptjs/issues/issue-gh-1272_test.js +21 -0
  211. package/tests/codeceptjs/issues/issue-gh-1330_test.js +8 -0
  212. package/tests/codeceptjs/issues/issue-gh-1338_test.js +18 -0
  213. package/tests/codeceptjs/issues/issue-gh-1347_test.js +8 -0
  214. package/tests/codeceptjs/issues/issue-gh-1364_test.js +13 -0
  215. package/tests/codeceptjs/issues/issue-gh-1367_test.js +11 -0
  216. package/tests/codeceptjs/issues/issue-gh-1383_test.js +9 -0
  217. package/tests/codeceptjs/issues/issue-gh-1384_test.js +9 -0
  218. package/tests/codeceptjs/issues/issue-gh-1410_test.js +13 -0
  219. package/tests/codeceptjs/issues/issue-gh-1422_test.js +9 -0
  220. package/tests/codeceptjs/issues/issue-gh-1431_test.js +12 -0
  221. package/tests/codeceptjs/issues/issue-gh-1439_test.js +12 -0
  222. package/tests/codeceptjs/issues/issue-gh-1452_test.js +10 -0
  223. package/tests/codeceptjs/issues/issue-gh-1453_test.js +18 -0
  224. package/tests/codeceptjs/issues/issue-gh-1461_test.js +14 -0
  225. package/tests/codeceptjs/issues/issue-gh-1463_test.js +9 -0
  226. package/tests/codeceptjs/issues/issue-gh-1471_test.js +17 -0
  227. package/tests/codeceptjs/issues/issue-gh-1485_test.js +13 -0
  228. package/tests/codeceptjs/issues/issue-gh-1491_test.js +9 -0
  229. package/tests/codeceptjs/issues/issue-gh-1525_test.js +9 -0
  230. package/tests/codeceptjs/issues/issue-gh-1536_test.js +12 -0
  231. package/tests/codeceptjs/issues/issue-gh-1538_test.js +10 -0
  232. package/tests/codeceptjs/issues/issue-gh-1541_test.js +8 -0
  233. package/tests/codeceptjs/issues/issue-gh-1559_test.js +15 -0
  234. package/tests/codeceptjs/issues/issue-gh-1562_test.js +12 -0
  235. package/tests/codeceptjs/issues/issue-gh-1586_test.js +15 -0
  236. package/tests/codeceptjs/issues/issue-gh-1636_test.js +9 -0
  237. package/tests/codeceptjs/issues/issue-gh-795_test.js +13 -0
  238. package/tests/codeceptjs/issues/issue-gh-810_test.js +52 -0
  239. package/tests/codeceptjs/issues/issue-gh-812_test.js +25 -0
  240. package/tests/codeceptjs/meta-schema_test.js +85 -0
  241. package/tests/codeceptjs/schemaloader_test.js +14 -0
  242. package/tests/codeceptjs/steps.d.ts +13 -0
  243. package/tests/codeceptjs/steps_file.js +4 -4
  244. package/tests/codeceptjs/test-config.js +3 -0
  245. package/tests/codeceptjs/themes_test.js +564 -0
  246. package/tests/docker-compose-local.yml +5 -0
  247. package/tests/docker-compose.yml +11 -19
  248. package/tests/fixtures/basic_person.json +2 -1
  249. package/tests/fixtures/definitions.json +22 -0
  250. package/tests/fixtures/nested_object.json +26 -0
  251. package/tests/fixtures/properties.json +20 -0
  252. package/tests/fixtures/some_types.json +32 -0
  253. package/tests/fixtures/validation.json +1347 -0
  254. package/tests/pages/_demo.html +475 -0
  255. package/tests/pages/advanced.html +1 -1
  256. package/tests/pages/anyof-2.html +91 -0
  257. package/tests/pages/anyof.html +82 -0
  258. package/tests/pages/array-anyof.html +145 -0
  259. package/tests/pages/array-checkboxes-infotext.html +55 -0
  260. package/tests/pages/array-checkboxes.html +5 -2
  261. package/tests/pages/array-choices.html +48 -0
  262. package/tests/pages/array-events-table.html +70 -0
  263. package/tests/pages/array-events.html +75 -0
  264. package/tests/pages/array-header-template.html +60 -0
  265. package/tests/pages/array-integers.html +5 -2
  266. package/tests/pages/array-multiselects.html +5 -2
  267. package/tests/pages/array-nested-arrays.html +5 -2
  268. package/tests/pages/array-numbers.html +5 -2
  269. package/tests/pages/array-objects.html +5 -2
  270. package/tests/pages/array-ratings.html +5 -2
  271. package/tests/pages/array-selectize-create.html +63 -0
  272. package/tests/pages/array-selectize.html +10 -8
  273. package/tests/pages/array-selects.html +5 -2
  274. package/tests/pages/array-strings.html +5 -2
  275. package/tests/pages/array-table-responsive.html +66 -0
  276. package/tests/pages/array-unique-items-sort.html +81 -0
  277. package/tests/pages/array.html +5 -2
  278. package/tests/pages/assets/autocomplete.css +1 -0
  279. package/tests/pages/assets/autocomplete.min.js +1 -0
  280. package/tests/pages/assets/pages.css +130 -0
  281. package/tests/pages/autocomplete.html +72 -0
  282. package/tests/pages/button-callbacks.html +79 -0
  283. package/tests/pages/button-icons.html +39 -0
  284. package/tests/pages/button_state_mode_1.html +35 -0
  285. package/tests/pages/button_state_mode_2.html +36 -0
  286. package/tests/pages/checkbox-labels.html +116 -0
  287. package/tests/pages/colorpicker-no-3rd-party.html +45 -0
  288. package/tests/pages/colorpicker-use-vanilla-picker.html +52 -0
  289. package/tests/pages/container-attributes.html +51 -0
  290. package/tests/pages/contains.html +39 -0
  291. package/tests/pages/core.html +14 -7
  292. package/tests/pages/datetime.html +78 -0
  293. package/tests/pages/dependentRequired.html +72 -0
  294. package/tests/pages/dependentSchemas.html +53 -0
  295. package/tests/pages/disable-button-in-object-editors.html +57 -0
  296. package/tests/pages/editor-show-validation-errors.html +54 -0
  297. package/tests/pages/enforce-const.html +168 -0
  298. package/tests/pages/error-messages.html +48 -0
  299. package/tests/pages/form-name.html +111 -0
  300. package/tests/pages/grid-strict.html +10 -13
  301. package/tests/pages/grid.html +4 -7
  302. package/tests/pages/if-else.html +58 -0
  303. package/tests/pages/if-then-else-allOf.html +118 -0
  304. package/tests/pages/if-then-else-disable-fields.html +70 -0
  305. package/tests/pages/if-then-else.html +65 -0
  306. package/tests/pages/if-then.html +58 -0
  307. package/tests/pages/inheritance.html +80 -0
  308. package/tests/pages/integer.html +17 -10
  309. package/tests/pages/issues/_template.html +50 -0
  310. package/tests/pages/issues/issue-gh-1133.html +64 -0
  311. package/tests/pages/issues/issue-gh-1158-2.html +189 -0
  312. package/tests/pages/issues/issue-gh-1158.html +50 -0
  313. package/tests/pages/issues/issue-gh-1164.html +71 -0
  314. package/tests/pages/issues/issue-gh-1165.html +63 -0
  315. package/tests/pages/issues/issue-gh-1165.json +8 -0
  316. package/tests/pages/issues/issue-gh-1171.html +39 -0
  317. package/tests/pages/issues/issue-gh-1211.html +1022 -0
  318. package/tests/pages/issues/issue-gh-1233-failing.html +46 -0
  319. package/tests/pages/issues/issue-gh-1233-passing.html +49 -0
  320. package/tests/pages/issues/issue-gh-1257.html +77 -0
  321. package/tests/pages/issues/issue-gh-1272.html +167 -0
  322. package/tests/pages/issues/issue-gh-1330.html +52 -0
  323. package/tests/pages/issues/issue-gh-1338.html +74 -0
  324. package/tests/pages/issues/issue-gh-1347.html +142 -0
  325. package/tests/pages/issues/issue-gh-1364.html +64 -0
  326. package/tests/pages/issues/issue-gh-1367.html +49 -0
  327. package/tests/pages/issues/issue-gh-1383.html +31 -0
  328. package/tests/pages/issues/issue-gh-1383.json +14 -0
  329. package/tests/pages/issues/issue-gh-1384.html +31 -0
  330. package/tests/pages/issues/issue-gh-1384.json +36 -0
  331. package/tests/pages/issues/issue-gh-1410.html +57 -0
  332. package/tests/pages/issues/issue-gh-1422.html +68 -0
  333. package/tests/pages/issues/issue-gh-1431.html +49 -0
  334. package/tests/pages/issues/issue-gh-1439.html +69 -0
  335. package/tests/pages/issues/issue-gh-1452.html +98 -0
  336. package/tests/pages/issues/issue-gh-1453.html +45 -0
  337. package/tests/pages/issues/issue-gh-1461.html +55 -0
  338. package/tests/pages/issues/issue-gh-1463.html +41 -0
  339. package/tests/pages/issues/issue-gh-1466.html +63 -0
  340. package/tests/pages/issues/issue-gh-1471.html +49 -0
  341. package/tests/pages/issues/issue-gh-1485.html +59 -0
  342. package/tests/pages/issues/issue-gh-1491.html +59 -0
  343. package/tests/pages/issues/issue-gh-1525.html +62 -0
  344. package/tests/pages/issues/issue-gh-1536.html +55 -0
  345. package/tests/pages/issues/issue-gh-1538.html +56 -0
  346. package/tests/pages/issues/issue-gh-1541.html +51 -0
  347. package/tests/pages/issues/issue-gh-1541.json +9 -0
  348. package/tests/pages/issues/issue-gh-1559.html +68 -0
  349. package/tests/pages/issues/issue-gh-1562.html +170 -0
  350. package/tests/pages/issues/issue-gh-1586.html +48 -0
  351. package/tests/pages/issues/issue-gh-1636.html +52 -0
  352. package/tests/pages/issues/issue-gh-795.html +58 -0
  353. package/tests/pages/issues/issue-gh-810.html +149 -0
  354. package/tests/pages/issues/issue-gh-812.html +113 -0
  355. package/tests/pages/issues/issue-gh-823-meta-schema.html +35 -0
  356. package/tests/pages/issues/issue-gh-848.html +81 -0
  357. package/tests/pages/keep_only_existing_values.html +81 -0
  358. package/tests/pages/load-events.html +61 -0
  359. package/tests/pages/maxContains.html +40 -0
  360. package/tests/pages/meta-schema.html +793 -0
  361. package/tests/pages/meta_schema.json +740 -0
  362. package/tests/pages/minContains.html +40 -0
  363. package/tests/pages/number.html +53 -6
  364. package/tests/pages/object-case-sensitive-property-search-false.html +42 -0
  365. package/tests/pages/object-case-sensitive-property-search-true.html +42 -0
  366. package/tests/pages/object-no-additional-properties.html +68 -0
  367. package/tests/pages/object-no-duplicated-id.html +70 -0
  368. package/tests/pages/object-required-properties.html +56 -20
  369. package/tests/pages/object-show-opt-in.html +111 -0
  370. package/tests/pages/object-with-dependencies-array.html +58 -0
  371. package/tests/pages/object-with-dependencies.html +62 -0
  372. package/tests/pages/object.html +5 -3
  373. package/tests/pages/oneof-2.html +91 -0
  374. package/tests/pages/oneof.html +105 -0
  375. package/tests/pages/opt-in-widget.html +134 -0
  376. package/tests/pages/option-dependencies.html +107 -0
  377. package/tests/pages/option-no_default_values.html +60 -0
  378. package/tests/pages/per-editor-options.html +44 -0
  379. package/tests/pages/placeholder-options.html +57 -0
  380. package/tests/pages/programmatic-changes.html +121 -0
  381. package/tests/pages/prompt-paste-max-length-reached.html +51 -0
  382. package/tests/pages/purify.html +66 -0
  383. package/tests/pages/range.html +62 -0
  384. package/tests/pages/read-only.html +60 -8
  385. package/tests/pages/ready.html +44 -0
  386. package/tests/pages/references.html +168 -0
  387. package/tests/pages/remove-false-properties.html +85 -0
  388. package/tests/pages/select-values.html +91 -0
  389. package/tests/pages/select.html +4 -3
  390. package/tests/pages/show-validation-errors.html +73 -0
  391. package/tests/pages/starrating.html +86 -0
  392. package/tests/pages/stepper-manual.html +59 -0
  393. package/tests/pages/stepper.html +61 -0
  394. package/tests/pages/string-ace-editor.html +7 -3
  395. package/tests/pages/string-cleave.html +48 -0
  396. package/tests/pages/string-custom-attributes.html +9 -6
  397. package/tests/pages/string-formats.html +54 -0
  398. package/tests/pages/string-formats2.html +59 -0
  399. package/tests/pages/{array-move-events.html → string-jodit-editor.html} +21 -29
  400. package/tests/pages/string-sceditor.html +9 -7
  401. package/tests/pages/string-simplemde-editor.html +83 -0
  402. package/tests/pages/switcher-option.html +69 -0
  403. package/tests/pages/table.html +4 -2
  404. package/tests/pages/tabs.html +1 -1
  405. package/tests/pages/themes.html +517 -0
  406. package/tests/pages/title-hidden.html +75 -0
  407. package/tests/pages/translate-property.html +248 -0
  408. package/tests/pages/urn.html +98 -0
  409. package/tests/pages/use-name-attributes.html +207 -0
  410. package/tests/pages/uuid.html +113 -0
  411. package/tests/pages/validation-messages.json +705 -0
  412. package/tests/pages/validation.html +20 -730
  413. package/tests/unit/.eslintrc +8 -0
  414. package/tests/unit/core.spec.js +320 -0
  415. package/tests/unit/defaults.spec.js +40 -0
  416. package/tests/unit/editor.spec.js +172 -0
  417. package/tests/unit/editors/array.spec.js +87 -0
  418. package/tests/unit/editors/object.spec.js +81 -0
  419. package/tests/unit/editors/table.spec.js +93 -0
  420. package/tests/unit/readme.md +35 -0
  421. package/tests/unit/schemaloader.spec.js +576 -0
  422. package/tests/unit/validator.spec.js +104 -0
  423. package/tests/unit/validators/ip-validator.spec.js +62 -0
  424. package/Gruntfile.js +0 -228
  425. package/dist/css/jsoneditor.min.css +0 -1
  426. package/dist/jsoneditor.js.map +0 -1
  427. package/dist/jsoneditor.min.js +0 -19
  428. package/dist/jsoneditor.min.js.map +0 -1
  429. package/src/class.js +0 -68
  430. package/src/editors/rating.js +0 -152
  431. package/src/ie9.js +0 -51
  432. package/src/intro.js +0 -23
  433. package/src/jquery.js +0 -64
  434. package/src/outro.js +0 -2
  435. package/src/themes/jsoneditor.barebones-theme.js +0 -60
package/CHANGELOG.md CHANGED
@@ -1,4 +1,374 @@
1
- ### 1.4.0-beta1
1
+ ### Unreleased
2
+
3
+ ### 2.17.0
4
+
5
+ - fix: generate new uuids when copying item of an array
6
+
7
+ ### 2.16.0
8
+
9
+ - Purify values if DOMPurify is available
10
+
11
+ ### 2.15.3
12
+
13
+ - Added maintenance mode notice to README, CONTRIBUTING.md, and documentation
14
+ - Fixed #1559 and #1621 field dependent on false should now display
15
+ - Fixed form-submission.html example documentation
16
+
17
+ ### 2.15.2
18
+
19
+ - Support drag and drop for array item
20
+ - Updated to docker compose commands
21
+ - Updated to docker compose commands
22
+ - Added schema switcher option
23
+ - Added opt_in_widget option (checkboxes and switches for opt int activators)
24
+ - Added enforce_const option
25
+ - Added enforce_const option
26
+ - ShowErrorMessages method
27
+ - Recursively deactivate non required properties, when adding a new row in an array
28
+ - Fixed error in Playground
29
+ - Fixed simpleMde exception
30
+ - Support drag and drop for array item
31
+
32
+ ### 2.15.1
33
+
34
+ - Fixed #1563 and #1558. Select values not displayed
35
+
36
+ ### 2.15.0
37
+
38
+ - Added option enforce_const
39
+ - Fixed #1525 select2 setValue append new item
40
+ - Added remove_false_properties object option
41
+ - Updated GitHub workflows
42
+ - Added prompt_paste_max_length_reached option
43
+ - Fixed #1512 "dependencies" autocomplete inside array tables cropping
44
+ - Allow for Base64 custom input attributes
45
+ - Added 'add' and 'switch' events
46
+ - Fixed "dependencies" issues
47
+ - Fixed npm audits and packages upgrades
48
+ - Fixed issue #1541 Failure to parse schema with "default"
49
+ - Fixed rating "undefined" value when type of integer
50
+ - Added meta-schema example to the readme
51
+ - Fixed issue #1514 Cannot use more than one class in "class" option for links
52
+ - Fixed info disable/enable
53
+ - Added options: "has_placeholder_option" and "placeholder_option_text"
54
+ - Fixed issue #1498 Dependant fields not created after JSON update at change of the controlling field
55
+ - Added 'copyRow' event
56
+
57
+ ### 2.14.1
58
+
59
+ - Fixed issue #1272 Multiple editor incorrect dependency inheritance
60
+ - Improved Multiple editor accessibility
61
+ - Fixed issue #1485 Infinite loop due to template rendering bug
62
+ - Fixed issue #1171 Radio inputs without names having multiple checking marks
63
+ - Fixed issue #1491 Wrong error messages displayed in some edge scenarios
64
+ - Fixed issue #1466 memory leak in array editor
65
+
66
+ ### 2.14.0
67
+
68
+ - Added new editor option "titleHidden"
69
+ - Integrated "readOnly" for array and object editors
70
+ - Fixed date, time and datetime-local validator
71
+ - Fixed several accessibility issues. Note: Some forms may have new/modified attributes ("aria", "id", "for" and more)
72
+ - Updated "format": "info" editors documentation
73
+
74
+ ### 2.13.2
75
+
76
+ - Fixed early validation with boolean types
77
+ - Refactored copy command using navigator
78
+ - Fixed const validator when validating arrays and objects
79
+ - Fixed issue format buttons disable state
80
+ - Fixed issue #1453 setup buttons in array editor correctly if editor is initially collapsed
81
+ - Fixed issue #1461 setup buttons in array editor correctly if there exists another enum-typed property for which the default value does not equal to the first value
82
+ - Fixed issue #1466 memory leak in array editor
83
+
84
+ ### 2.13.1
85
+
86
+ - Fixed bug in enumTitle for headerTemplates
87
+
88
+ ### 2.13.0
89
+
90
+ - Added feature #1448 enumTitle for headerTemplates
91
+ - Fixed issue #1442 tpe button editors
92
+ - Fixed issue #1433 simplemde editor data sync
93
+ - Added schema validation in playground
94
+ - Fixed tests timing issues
95
+
96
+ ### 2.12.0
97
+
98
+ - Fixed issue #1422: use_default_values: false deletes valid values while true sets invalid default values
99
+ - Added feature: load-events
100
+ - Fixed issue #1410: Schema for "additionalProperties" does not override "no_additional_properties: true"
101
+ - Added feature: table-responsive
102
+ - Fixed readme-broken-link
103
+ - Updated integrity checks in example pages
104
+
105
+ ### 2.11.0
106
+
107
+ - Fixed issue #746 and #645: Selectize with create = true should add items
108
+ - Added case_sensitive_property_search option
109
+ - Added specialized editors for ace (PRQL, Rust, TypeScript, Zig)
110
+ - Fixed bug: items schemas not being expanded on time when using $ref
111
+ - Added tests for schema loader
112
+ - Added docs for if-then-else
113
+ - Updated playground ace editor config
114
+ - Added button_state_mode options
115
+ - Added support for case-insensitive properties search
116
+ - Fixed issue #746 and #645 Selectize with create = true should add Items
117
+ - Added support for case insensitive properties search
118
+ - Added support for dependentRequired constrains
119
+ - Fixed issue #1367: Signature editor not returning base64 data
120
+ - Fixed issue #1237: more coherent ui for Base64 editor
121
+ - Fixed issue #1364: getValue() with dependencies
122
+ - Added new languages: PRQL, Rust, TypeScript and Zig.
123
+
124
+ ### 2.10.1
125
+
126
+ - Added keep_only_existing_values option
127
+ - Fixed if-then-else edge case bug with disabled fields
128
+
129
+ ### 2.10.0
130
+
131
+ - Fixed schema loader bug and added test for relative issues
132
+ - Using multiple for schemas with if-then-else
133
+ - Added support for shell script highlighting
134
+ - Added support for contains, minContains and maxContains constrains
135
+ - Added support for if-then-else constrains
136
+ - Added support for dependentSchemas constrains
137
+ - Added support for absolute paths in dependencies
138
+ - Added support for bootstrap icons
139
+ - Added custom editor example page
140
+ - Added bootstrap 5 theme option in example page
141
+ - Fixed property checkboxes display
142
+ - Updated array delete message
143
+ - Refactored tests with codeceptjs native waitForValue()
144
+ - Fixed bootstrap 3 import warnings
145
+ - Updated autocomplete example with library css
146
+
147
+ ### 2.9.1
148
+
149
+ - Fixed past merge
150
+
151
+ ### 2.9.0
152
+
153
+ - Updated datetime example page
154
+ - Updated packages
155
+ - Fixed issue #1133: default values for each of the oneOf options
156
+ - Upgraded codeceptjs from 2 to 3
157
+ - Fixed npm audit issues
158
+ - Fixed unnecessary Null values included in enums
159
+ - Fixed radio editors not recognising numerical values
160
+
161
+ ### 2.9.0-beta.1
162
+
163
+ - Fixed editors default values bug
164
+ - Fixed typo in example schema
165
+ - Fixed color editors default value bug
166
+ - Improved docs page UI with ACE editor and some spacing
167
+ - Fixed hidden option for upload editor
168
+ - Fixed array editors events and callbacks params
169
+ - Added link to GitHub repo in docs page
170
+ - Fixed typo in code
171
+ - Added test for meta-schema scenario
172
+ - Added test for $ref schema with oneOf/anyOf scenario
173
+ - Added Bootstrap 5 theme
174
+ - Removed !important flags from CSS
175
+ - Added upload translations
176
+ - Updated SCEditor documentation
177
+ - Fixed test waits
178
+ - Fixed per editor Options
179
+ - Fixed bug in tailwind and barebones theme. Append errors to element that exist.
180
+ - Fixed #1194 Event listener removed after destroy
181
+ - Added setContainerAttributes option
182
+ - Fixed select2/selectize cannnot add new option
183
+
184
+ ### 2.9.0-beta.0
185
+
186
+ - Enh #1162 Added cache system for schema loader (chhill-redhat)
187
+ - Added warnings undefined callbacks
188
+
189
+ ### 2.8.0
190
+
191
+ - Added feature: use_name_attributes option
192
+
193
+ ### 2.7.0
194
+
195
+ - Fixed array uniqueItems sorting bug
196
+ - Configurable icons for type button editors
197
+ - Fixed autocomplete options rendering
198
+ - Editor gets .je-ready class when ready
199
+ - Regenerate unique UUID when copying arrays
200
+ - Added infoText for checkbox on "Spectre" and "Bootstrap 3" Themes
201
+ - Added configurable error messages at editor schema level feature
202
+ - Added form submission case study and linked it in the readme
203
+ - Fixed range output value rendering
204
+ - Added automated test for references
205
+ - Added SimpleMDE test page
206
+ - JSON pointers support for definitions
207
+ - Added infoText for multiselect enum
208
+ - Updated packages and fixed npm audits
209
+ - Using latest jquery in docs to resolve vulnerabilities
210
+ - fixed bug in upload editor
211
+ - Updated release-motes.md
212
+ - Added feature: override error messages in schema options
213
+ - fixed arbitrary JSON pointers not returning the schema at the pointer path
214
+ - Add infoText for enums with format `checkbox` (default)
215
+ - updated `jodit` devDependency (jodit markup changes)
216
+
217
+ ### 2.6.1
218
+
219
+ - Fix for #900 to close the properties modal when we click outside modal
220
+ - fix: Rework use of event.path to prevent a ReferenceError in Safari
221
+ - Fix for dependencies when dependency is an array
222
+
223
+ ### 2.6.0
224
+
225
+ - set show_opt_in per object editor
226
+ - stepper manual set init fix
227
+ - don't validate dependant editors when not visible (dependency not fulfilled)
228
+ - hardened tests
229
+ - bootstra3 tabs fix
230
+ - removed datetime from metaschema and readmy (deprecated)
231
+ - not forced required for radios
232
+ - audit fixes
233
+ - pass additional pathDepth parameter to getHeader() to allow themes to render headings hierarchically
234
+ - add Open Iconic iconlib
235
+ - switched CI to Github Actions
236
+ - read-only base64 editors respect enum values when calling setValue()
237
+ - fix bug in validator.fitTest where anyOf schemata were not handled correctly
238
+ - fixes accessibility support for thead that consist of an empty string
239
+ - fix bug in validation where invalid schemata with a good fitTestResult were preferred to valid schemata
240
+
241
+ ### 2.5.4
242
+
243
+ - fixes #997 add accessibility support for string input types
244
+
245
+ ### 2.5.3
246
+
247
+ - fix oneOf and anyOf error messages
248
+ - fix 159 set value
249
+ - Added more read-only tests for #831
250
+ - Update PULL_REQUEST_TEMPLATE.md
251
+ - fixes #922 - translate all buttons; translator no longer throws error
252
+ - fixes #159, #285, #820 - setting array with 0, false, or ""
253
+ - fixes #379 and #923 - strip #fragment from URI so json pointers resolve correctly
254
+ - add Open Iconic iconlib
255
+ - fix for #811 Property names
256
+
257
+ ### 2.5.2
258
+
259
+ - Fixed stepper editor safari bug
260
+ - Added release notes
261
+ - Fixed form_name_root option behaviour
262
+
263
+ ### 2.5.1
264
+
265
+ - Fix for #837 and chekboxes not displaying error messages #843
266
+
267
+ ### 2.5.0
268
+
269
+ - added new stepper editor (with default HTML & Bootstrap 4 Theme)
270
+ - fixed babel transpiling bug
271
+ - updated docs
272
+
273
+ ### 2.4.0
274
+
275
+ - added option `max_depth` used to specify the maximum depth of level's schema that have to be rendered
276
+ - added option `use_default_values` used to specify if default values based on the "type" of the property have to be used
277
+ - when `use_default_values` is false, number and integer fields have undefined value when input is empty
278
+ - when `use_default_values` is false, string fields have undefined value at the beginning. After that user edit the field, empty input is threated as an empty string
279
+ - Fixed using multiple dependencies for an editor. Fix #703
280
+ - Evaluate all dependencies for an editor to determine visibility
281
+ - Fixed meta-schema usage
282
+ - Added `min`, `max` for `dateTime`
283
+
284
+ ### 2.3.0
285
+
286
+ - Removed codeception container, use `codeceptjs` as node-dev module
287
+ - Enabled Bootstrap 3 theme/icons
288
+
289
+ ### 2.2.1-current
290
+
291
+ - AbstractEditor, AbstractTheme, AbstractIconlib had been removed, re-expose them
292
+ - fix static property #724 #723
293
+ - fix option remove_empty_properties #725 #728
294
+
295
+ ### 2.2.0
296
+
297
+ - Removed Class.js in favour Javascript class declaration.
298
+ - Ability to add style rules for editors (i.e. StarratingEditor)
299
+ - Modified build/CSSToJson.js to generate Javascript modules instead of Json files. This is helpful when importing JSONEditor directly as Javascript module without a build step.
300
+ - Unified how styles are loaded for themes and editors,
301
+ - Style rules are stored in class static property ‘rules’
302
+ - Rules are loaded as ESM Module,
303
+ - Generated @ build stage (stylesheet-filename.css.js) or
304
+ - Written manually.
305
+ - Cleaned src/defaults.js and move resolvers to a separate module, src/resolvers.js
306
+ - Cleaned how default themes, iconlibs, editors and templates are imported to JSONEditor
307
+ - Added ability to attache editors and themes style rules to the shadowRoot if the editor is inside a Web Component.
308
+ - Fix of #701 - editors/number.js and editors/integer.js don't change values when validation is failed
309
+ - Fix of #716 - add ignore for allOf to fall in line with existing ignores of anyOf/oneOf for additionalProperties validation
310
+ - Fix of #714 - Checkboxes inside object tables duplicate labels from heading
311
+ - Added copy button to arrays in table format
312
+
313
+ ### 2.1.0
314
+ - fixed vulnerability in "http-server" package (origin/feature/merges-20200227, feature/merges-20200227) - using latest node LTS
315
+ - extract css
316
+ - Add webpack plugin to support theme development
317
+ - css-loader can be omitted
318
+ - Fix some eslint warnings
319
+ - Remove comments from css in production mode (germanbisurgi-master) - updated readme
320
+ - lib loader
321
+ - better interactive page
322
+ - codeceptjs output directory added to npm ignore list
323
+
324
+ ### 2.0.0
325
+ - Fix of #643 - Allow use of themes not compiled directly into the build
326
+ - Removed Themes and IconSets that have not been updated to 2.0 format.
327
+ - Fix of #618 - links are placed AFTER the description. Now places the link BEFORE description (if available) or at bottom of container
328
+ - Changes to Vallilla Colorpicker editor.
329
+ - Added support for 'setValue'
330
+ - Added better enable/disable methods.
331
+ - Removed "onChange" function from list of required options so it can be overidden using schema options.
332
+ - Changed the update method (Otherwise buttons have no meaning). Now updating is done in "onDone" function, except if inline element. Then updating is done using "onChange" function.
333
+ - Fix of #629 - BS4 theme bug where basic tab was placed outside tabs container.
334
+ - Improved IMask support for `Date`, `Number`, `IMask.MaskedEnum`, `IMask.MaskedRange` and regular expression masks. #591
335
+ - Added support for recursive callback options.
336
+ - Fix of #692 - Resolves an issue where modal click detection was not working when the editor is attached inside a shadow DOM by changing the event target to use the path.
337
+
338
+ ### 2.0.0-alpha-1
339
+
340
+ - Added remove_button_labels option.
341
+ - Added Spectre Theme styling for `anyOf`, `oneOf` and `allOf` selectbox.
342
+ - Added filter to remove duplicate error messages. Duplicate error messages are now displayed as single error message with error count. (Duplicate error messages can occur when using `not`, `anyOf`, `oneOf` and `allOf` due to these are **conditions**, not properties.)
343
+ - Added new 2.x Theme "Spectre".
344
+ - Updated Theme "Tailwind" to 2.x format.
345
+ - Added sort option for dynamic enumSource.
346
+ - Added JavaScript callback templating support for enumSource: filter, title and value properties.
347
+ - Fix of #470 - Constant enumSource value specified as array of strings causes a template compilation error.
348
+ - Fix of #467 - child watches parent = infinite recursion.
349
+ - Select and Multiselect now uses requestAnimationFrame when applying special editor code to select field in order to prevent delays.
350
+ - Added missing validation messages and support for options infoText an compact in Multiselect editor.
351
+ - Refactored src/editors/multiselect.js and moved hardcoded support for Select2 into seperate editor files which then extends src/editors/multiselect.js
352
+ - Refactored src/editors/select.js and moved hardcoded support for special editors (Select2 and Selecttize) into seperate editor files which then extends src/editors/select.js
353
+ - Added new WYSIWYG editor [Jodit](https://xdsoft.net/jodit/) as a replacement for SCEditor.
354
+ - Jodit, Ace Editor, SimpleMDE and SCEditor can now be configured using global config options which can be overridden for single properties using schema options.
355
+ - Refactored src/editors/string.js and moved hardcoded support for special editors (Ace Editor, SimpleMDE and SCEditor) into seperate editor files which then extends src/editors/string.js.
356
+ - Fixed #408 - Now upload editor should be working again.
357
+ - Added Array events for table format, tests
358
+ - Fixed #408 - Now upload editor should be working again.
359
+ - Added [Choices.js](https://github.com/jshjohnson/Choices) support for array and select editors.
360
+ - Added 2 new config options: "disable_select2" and "disable_selectize" which can be used to disable select2/selectize on a specific property/field.
361
+ - Removed "rating" editor and updated "starrating" editor to accept/emulate "rating" editor options.
362
+ - Fixed #392 - Now setting checkbox value programmatically will trigger onchange correctly. (src/editors/checkbox.js)
363
+ - Fixed #231 - Now it is possible to use dots in field names (src/editor.js)
364
+ - Added new editor for uuid. If no uuid is supplied (startval), a random generated V4 uuid is created.
365
+ - Added support for compact option in src/objects.js to hide title.
366
+ - Added missing buttons to enable/disable state (src/array.js)
367
+ - Fixed problems with dependencies option not working with Boolean format (src/editor.js).
368
+ - Fixed problem with JSON and collapse buttons setting display: none; on button and not container. (src/object.js) So now compact in combination with hiding the buttons, will remove the "empty gap" in the layout.
369
+
370
+
371
+ ### 1.4.0-beta.0
2
372
 
3
373
  - Updated docs
4
374
  - cleanText function for theme descriptions
@@ -34,8 +404,8 @@
34
404
  ---
35
405
 
36
406
  > TODO: The changelog below is autogenerated and needs manual cleanup
37
-
38
- ### (tag: 1.3.5)
407
+
408
+ ### (tag: 1.3.5)
39
409
  - 1.3.5
40
410
  - array editor editing events triggers (#317)
41
411
  - Update issue_template (#316)
@@ -58,8 +428,8 @@
58
428
  - Fix schemaBase definition
59
429
  - Move schemaBase after all base data type definitions
60
430
  - Added default upload handler (#301)
61
-
62
- ### (tag: 1.3.4)
431
+
432
+ ### (tag: 1.3.4)
63
433
  - 1.3.4
64
434
  - on move event for editors that are moved within an array (and test) (#303)
65
435
  - Add sqlserver editor format.
@@ -70,8 +440,8 @@
70
440
  - Fix of #290
71
441
  (origin/schmunk42-patch-1) - added link to issue template
72
442
  - nonlocal #/definition/<something> refs support
73
-
74
- ### (tag: 1.3.3)
443
+
444
+ ### (tag: 1.3.3)
75
445
  - 1.3.3
76
446
  - Fix of #162 (#282)
77
447
  - Revert "Fix of #277"
@@ -103,16 +473,16 @@
103
473
  - Rename function variable "protected"
104
474
  - Added cleave lib to demo
105
475
  - Updated CDN links
106
-
107
- ### (tag: 1.3.2)
476
+
477
+ ### (tag: 1.3.2)
108
478
  - 1.3.2
109
479
  - fixed string-replace task
110
-
111
- ### (tag: 1.3.1)
480
+
481
+ ### (tag: 1.3.1)
112
482
  - 1.3.1
113
483
  - fixed version bump
114
-
115
- ### (tag: 1.3.0)
484
+
485
+ ### (tag: 1.3.0)
116
486
  - 1.3.0
117
487
  - fixed javascript path
118
488
  - Moved function to editor.js + support for number and select
@@ -146,15 +516,15 @@
146
516
  - Refactoring className into classList (#210)
147
517
  - Fixed bug: when no options are present the base64 editor will not load (#202)
148
518
  - Fix of #140 - pattern of greater than 35 chars doesn't display properly
149
-
150
- ### (tag: 1.2.1)
519
+
520
+ ### (tag: 1.2.1)
151
521
  - 1.2.1
152
522
  - added "Contributing Use-cases" (#199)
153
523
  - Input custom attributes (#200)
154
524
  - added wiki link (#198)
155
525
  - Release 1.2.0 (#197)
156
-
157
- ### (tag: 1.2.0)
526
+
527
+ ### (tag: 1.2.0)
158
528
  - 1.2.0
159
529
  - fixed vulnerability warnings
160
530
  - updated build task (added "src/editors/signature.js" & code formatting) (#196)
@@ -167,21 +537,21 @@
167
537
  - Updated README.md & examples + starrating bugfix (#181)
168
538
  - Pmk65 datetime (#176)
169
539
  - Release (#174)
170
-
171
- ### (tag: 1.1.0)
540
+
541
+ ### (tag: 1.1.0)
172
542
  - 1.1.0
173
543
  - updated lock file
174
544
  - Pmk65 starrating (#173)
175
545
  - Better comply with Bootstrap 4 grid columns spec (#164)
176
546
  - Export as a UMD module (#161)
177
547
  - Release 1.1.0-beta.4 (#153)
178
-
179
- ### (tag: 1.1.0-beta.4)
548
+
549
+ ### (tag: 1.1.0-beta.4)
180
550
  - 1.1.0-beta.4
181
551
  - Fixed array active tabs. Fixed reload image path bug (#152)
182
552
  - Release 1.1.0-beta.3 (#151)
183
-
184
- ### (tag: 1.1.0-beta.3)
553
+
554
+ ### (tag: 1.1.0-beta.3)
185
555
  - 1.1.0-beta.3
186
556
  - fix refresh preview in array of update editors (#150)
187
557
  - Array tests (#147)
@@ -193,8 +563,8 @@
193
563
  - Confirm delete for table editors. Updated confirm messages. Renamed t… (#122)
194
564
  - fix boolean bug + tests (#118)
195
565
  - Release (#115)
196
-
197
- ### (tag: 1.1.0-beta.2)
566
+
567
+ ### (tag: 1.1.0-beta.2)
198
568
  - 1.1.0-beta.2
199
569
  - updated "docker-test" script
200
570
  - prompt before delete + tests + read (#109)
@@ -205,16 +575,16 @@
205
575
  - step support for numbers, integers and numeric ranges (#99)
206
576
  - Ace editor tests (#98)
207
577
  - 1.1.0-beta.1 (#97)
208
-
209
- ### (tag: 1.1.0-beta.1)
578
+
579
+ ### (tag: 1.1.0-beta.1)
210
580
  - 1.1.0-beta.1
211
581
  - Update README.md (#95)
212
582
  - Feature/bump version (#94)
213
583
  - wysiwyg-sceditor tests (#93)
214
584
  - Cleanup (#90)
215
585
  (origin/marc7000-patch-1) - Update README.md
216
-
217
- ### (tag: 1.1.0-beta.0)
586
+
587
+ ### (tag: 1.1.0-beta.0)
218
588
  - 1.1.0-beta.0
219
589
  - Fix missing comma in resources list
220
590
  (origin/feature/docker-test) - fixed npm script "docker-test"
@@ -226,8 +596,8 @@
226
596
  - Update README.md (#60)
227
597
  - checkboxes display validation errors
228
598
  - enum vs default bug fix
229
-
230
- ### (tag: 1.0.0)
599
+
600
+ ### (tag: 1.0.0)
231
601
  - 1.0.0
232
602
  - added version & dockerized test scripts, cleanup
233
603
  - added ".npmrc"
@@ -328,23 +698,23 @@
328
698
  - Replace EpicEditor with SimpleMDE
329
699
  - Added bootstrap 4 theme and option for it in demo.html
330
700
  - Quickfix for Error "Cannot read property 'notifyWatchers' of null"
331
-
332
- ### (tag: v0.7.28)
701
+
702
+ ### (tag: v0.7.28)
333
703
  - Bump version to 0.7.28
334
704
  - Add enum_titles support for multiselect editor. Closes #583 Closes #585
335
705
  - Merge remote-tracking branch 'origin/pr/639' Closes #639
336
706
  - Fix JS error "this.translate is not a function" (issue #637)
337
707
  - Merge remote-tracking branch 'origin/pr/642' Closes #642
338
708
  - fixes certain properties not showing up after delete row then add row
339
-
340
- ### (tag: v0.7.27)
709
+
710
+ ### (tag: v0.7.27)
341
711
  - Bump version to 0.7.27 Closes #605
342
712
  - Merge remote-tracking branch 'origin/pr/605'
343
713
  - make jsoneditor strict mode compliant
344
714
  - Make JSONEditor strict mode compliant
345
715
  - Update grunt, add reference meta schema, preliminary anyOf support, jshint fixes
346
-
347
- ### (tag: v0.7.26)
716
+
717
+ ### (tag: v0.7.26)
348
718
  - Version bump to 0.7.26
349
719
  - Add option to set css classes for hyper schema links.
350
720
  - Fix bugs - error when watch path is an empty array, keep values wasn't working as expected.
@@ -357,8 +727,8 @@
357
727
  - Fixed per feedback on PR
358
728
  - fixed #522; broken check in theme processing
359
729
  - Update docs to remove math.js as a required dependency
360
-
361
- ### (tag: v0.7.25)
730
+
731
+ ### (tag: v0.7.25)
362
732
  - Version bump to 0.7.25
363
733
  - JSLint fixes, documentation updates.
364
734
  - Undo dist file changes.
@@ -371,14 +741,14 @@
371
741
  - Merge remote-tracking branch 'origin/pr/574' Closes #574
372
742
  - Add groovy support for editors
373
743
  - Create jsoneditor.barebones-theme.js
374
-
375
- ### (tag: v0.7.24)
744
+
745
+ ### (tag: v0.7.24)
376
746
  - Version bump to 0.7.24
377
747
  - Enhance regex error to show expected pattern
378
748
  - proposed fix for #388 using math.js
379
749
  - - added translation support for buttons shown by array editors
380
-
381
- ### (tag: v0.7.23)
750
+
751
+ ### (tag: v0.7.23)
382
752
  - Version bump to 0.7.23
383
753
  - Add custom_validators option to set instance-specific custom validators. Fixes #503
384
754
  - Move inline style to themes so it can be overridden. Fixes #509
@@ -390,8 +760,8 @@
390
760
  - Improved Selectize demo
391
761
  - Avoid issue with splitting on commas
392
762
  - Adds Selectize support for array and select editors
393
-
394
- ### (tag: v0.7.22)
763
+
764
+ ### (tag: v0.7.22)
395
765
  - Version bump to 0.7.22
396
766
  - Allow spaces in template variables
397
767
  - Avoid displaying string "undefined" when value is `undefined`
@@ -404,8 +774,8 @@
404
774
  - jshint
405
775
  - optional select option on bool and enumerated properties
406
776
  - Add documentation for `keep_oneof_values` option
407
-
408
- ### (tag: v0.7.21)
777
+
778
+ ### (tag: v0.7.21)
409
779
  - Version bump to 0.7.21
410
780
  - Fix bug with enumSource
411
781
  - Add class to property selector.
@@ -415,15 +785,15 @@
415
785
  - Merge remote-tracking branch 'origin/pr/429'
416
786
  - Remove moot `version` property from bower.json
417
787
  - Update README
418
-
419
- ### (tag: v0.7.20)
788
+
789
+ ### (tag: v0.7.20)
420
790
  - Version bump to 0.7.20
421
791
  - Fix vertical tabs in Foundation 5 theme. Fixes #401
422
792
  - Allow url encoded $ref pointers. Fixes #402
423
793
  - Fix oneOf bug with object length. Fixes #423
424
794
  - Fix grunt watch to work with concat_sourcemap
425
-
426
- ### (tag: v0.7.19)
795
+
796
+ ### (tag: v0.7.19)
427
797
  - Bump version to 0.7.19
428
798
  - Remove "container-{{key}}" class from object property editors. Fixes #419
429
799
  - Drastic speed improvements for default template engine (up to 30x faster). Fixes #418. Alternative approach to #420.
@@ -431,8 +801,8 @@
431
801
  - Generate sourcemap back to the original pre-concatenated files.
432
802
  - No exceptions when adding unconstrained properties. Fixes #409.
433
803
  - Fixed typo in CONTRIBUTING.md
434
-
435
- ### (tag: v0.7.18)
804
+
805
+ ### (tag: v0.7.18)
436
806
  - Version bump to 0.7.18
437
807
  - Add support for additionalProperties schema. Fixes #285 #383
438
808
  - Use window.jQuery instead of '$'. Add select2 multiselect example.
@@ -440,27 +810,27 @@
440
810
  - Add validator context to custom_validators so that for example the this.translate method is usable within custom validators
441
811
  - made IE9 compatible ; also works (sic) in IE8 - reserved keywords - jquery $isplainobject
442
812
  - Allow HTML in Form Input Description
443
-
444
- ### (tag: v0.7.17)
813
+
814
+ ### (tag: v0.7.17)
445
815
  - Version bump to 0.7.17
446
816
  - Add checkbox editor for boolean.
447
817
  - Add html to description
448
818
  - Update README.md
449
819
  - Add type=button attribute to avoid <button> elements being treated as submit controls
450
-
451
- ### (tag: v0.7.16)
820
+
821
+ ### (tag: v0.7.16)
452
822
  - Version bump to 0.7.16
453
823
  - Fix move down button of array editor being show even on the last element
454
824
  - Fixed $ref handling in schema editing
455
825
  - Type check element argument
456
-
457
- ### (tag: v0.7.15)
826
+
827
+ ### (tag: v0.7.15)
458
828
  - Version bump to 0.7.15
459
829
  - Add option `keep_oneof_values`. Set to `false` to stop oneOf properties copying over when switching.
460
830
  - Embed LZString library in demo.html. cdn.rawgit.com was not working reliably.
461
831
  - Fix for when an object has a property named "length". Fixes #328
462
-
463
- ### (tag: v0.7.14)
832
+
833
+ ### (tag: v0.7.14)
464
834
  - Version bump to 0.7.14
465
835
  - Fix table and propertyOrder support. Fixes #316
466
836
  - Add documentation for various editor options.
@@ -471,38 +841,38 @@
471
841
  - Add 'input_width' option for string based editors. Also works within table cells.
472
842
  - Add 'grid_columns' option to explicitly set the width of a field.
473
843
  - Update lz-string script url
474
-
475
- ### (tag: v0.7.13)
844
+
845
+ ### (tag: v0.7.13)
476
846
  - Version bump - 0.7.13
477
847
  - Fixes #276, #277, #278
478
848
  - use correct css class for latest foundation
479
849
  - RequestAnimationFrame callbacks should double check if editor was destroyed meanwhile.
480
-
481
- ### (tag: v0.7.12)
850
+
851
+ ### (tag: v0.7.12)
482
852
  - Fix bug with object properties named "type". Fixes #183 Add setOption method (only works for `show_errors` currently). For #242 Make window.jsoneditor accessible from demo.html to help with debugging.
483
-
484
- ### (tag: v0.7.11)
853
+
854
+ ### (tag: v0.7.11)
485
855
  - Update documentation and version bump to 0.7.11
486
856
  - Fix $extend to exclude prototype properties. Add fix for Firefox's Object.prototype.watch conflict. Fixes #256 Fixes #249
487
-
488
- ### (tag: v0.7.10)
857
+
858
+ ### (tag: v0.7.10)
489
859
  - Version bump to 0.7.10
490
860
  - Add option to remove empty object properties from returned JSON. Fixes #220
491
861
  - Fix array/minItems bug. Fixes #246
492
862
  - Standardize all notify/change/watch calls. Fixes #247 Fixes #248
493
863
  - Properly handle cases when number extremum is 0
494
864
  - Register with npm
495
-
496
- ### (tag: v0.7.9)
865
+
866
+ ### (tag: v0.7.9)
497
867
  - Fix Select2 bugs, enum_titles support for strings, add Select2 example. Fixes #240 Related to #231
498
-
499
- ### (tag: v0.7.8)
868
+
869
+ ### (tag: v0.7.8)
500
870
  - Version bump 0.7.8
501
871
  - Can now override sceditor options on a per-instance basis.
502
872
  - Fix typo in enum editor. Add hide_display option to enum editor.
503
873
  - Typo in filter property
504
-
505
- ### (tag: v0.7.7)
874
+
875
+ ### (tag: v0.7.7)
506
876
  - Version bump to 0.7.7
507
877
  - Fix bug with no_additional_properties and nested arrays. Fixes #229
508
878
  - Improve grid sizing of table and object editors. #224
@@ -530,40 +900,40 @@
530
900
  - Add progress bar for Bootstrap3 theme
531
901
  - Upload file success using configured upload handler
532
902
  - Add upload editor based on base64
533
-
534
- ### (tag: v0.7.6)
903
+
904
+ ### (tag: v0.7.6)
535
905
  - Fix duplicate variable, bump version.
536
906
  - Scopes the editor variable with var
537
907
  - Fixes disabled properties and fixes property order
538
908
  - Fix select2 support by moving initialization from `build` to `postBuild`.
539
-
540
- ### (tag: v0.7.5)
909
+
910
+ ### (tag: v0.7.5)
541
911
  - Add new WYSIWYG example. Version bump.
542
912
  - Change table description format to match array's. Fixes #219
543
913
  - Fix watched fields bug with string enum editor. Fixes #216
544
914
  - Fix bug with the 0 not showing up in UI for integer fields. Fixes #215
545
915
  - Use minLength and maxLength to determine grid columns for string editor. Fixes #212
546
-
547
- ### (tag: v0.7.4)
916
+
917
+ ### (tag: v0.7.4)
548
918
  - Make jshint more strict. Bump version number.
549
919
  - Use proper "cssFloat" property for reserved word float (and CamelCase "marginLeft")
550
920
  - Fix bug with headers not updating properly with oneOf. Fixes #203
551
-
552
- ### (tag: v0.7.3)
921
+
922
+ ### (tag: v0.7.3)
553
923
  - Fix typo in editor. Fixes #205
554
924
  - Update CONTRIBUTING.md
555
925
  - Create CONTRIBUTING.md
556
-
557
- ### (tag: v0.7.2)
926
+
927
+ ### (tag: v0.7.2)
558
928
  - Bump version number to 0.7.2
559
929
  - number sanitizing allows scientific expression
560
930
  - Start array title index at 1. Fixes #167
561
931
  - Fixes #186 Array item form disappears when second to last item is deleted
562
-
563
- ### (tag: v0.7.1)
932
+
933
+ ### (tag: v0.7.1)
564
934
  - Add option for when to show validation errors. Changed default behavior to be on interaction. Fixes #194
565
-
566
- ### (tag: v0.7.0)
935
+
936
+ ### (tag: v0.7.0)
567
937
  - Don't submit a form when clicking a button. Allow JSON editor to be wrapped in form-tags (cherry picked from commit 7e73ccf)
568
938
  - More "CSS skinnability" added class to "row", relates to issue #156 (cherry picked from commit bf2d3dd)
569
939
  - Update demo to reflect my real age :)
@@ -574,67 +944,67 @@
574
944
  - Editor API restructure to enable easier recursive schema support.
575
945
  - Partial support for recursive schemas. A lot of stuff is still broken.
576
946
  - Initial setup of recursive schema support. DOESN'T WORK YET!
577
-
578
- ### (tag: v0.6.19)
947
+
948
+ ### (tag: v0.6.19)
579
949
  - Change validation error message for minLength: 1 to be "Value required". #158
580
950
  - Fix checkbox alignment for Bootstrap 3.2.0
581
951
  - Clean up string translation code. Rename `formatter` to `translate` to reduce naming confusion with the JSON Schema `format` keyword. Fixes #74
582
952
  - Extracted the customization logic to a class that is instantiated in core.js. The instance is passed to the validator and the editors
583
953
  - String customization OK for errors
584
954
  - Extracted all messages from validator.js and added it to default.js associated with keys
585
-
586
- ### (tag: v0.6.18)
955
+
956
+ ### (tag: v0.6.18)
587
957
  - Add ability to set string format via options. #150
588
958
  - update jsoneditor.js/jsoneditor.min.js
589
959
  - put Array.isArray polyfill in ie9.js
590
960
  - use Array.isArray() instead of instanceof Array
591
-
592
- ### (tag: v0.6.17)
961
+
962
+ ### (tag: v0.6.17)
593
963
  - Version bump.
594
964
  - Allow for nested definitions. Fixes #127
595
965
  - Fix collapsed option with array editor. Fixes #148
596
-
597
- ### (tag: v0.6.16)
966
+
967
+ ### (tag: v0.6.16)
598
968
  - Version bump.
599
969
  - skip afterInputReady for temporary string editor
600
970
  - Fix bug with multiselect and edit json button. Fixes #145
601
971
  - Fix typo that was breaking arrays. Fixes #146
602
-
603
- ### (tag: v0.6.15)
972
+
973
+ ### (tag: v0.6.15)
604
974
  - Add options for hiding array controls (add row, delete row, move up/down). Fixes #139 Fix bug with table editor and minItems.
605
975
  - Fix bug when multiselect is used within table editor. Fixes #141
606
976
  - Fix table column ordering with `propertyOrder`. Fixes #143
607
-
608
- ### (tag: v0.6.14)
977
+
978
+ ### (tag: v0.6.14)
609
979
  - Version bump.
610
980
  - Avoid "self" referring to "window"; adjust comment placement
611
981
  - Add file upload editor for base64 strings.
612
982
  - Change demo to use cdn.rawgit for lzstring library
613
983
  - Change demo url to avoid abusing rawgit.com
614
984
  - Fixes json in package.json
615
-
616
- ### (tag: v0.6.13)
985
+
986
+ ### (tag: v0.6.13)
617
987
  - Add propertyOrder support, fix SCEditor, fix validator ready bug.
618
-
619
- ### (tag: v0.6.12)
988
+
989
+ ### (tag: v0.6.12)
620
990
  - Add jshint to grunt build process. Remove CustomEvents check in utilities. Fixes #131 Add support for SCEditor initialization options. Bug fix in Class implementation checking for function toString support.
621
991
  - HTML5 expects meta charset, and FF complains in console without it; should be before title in case special chars used within title
622
-
623
- ### (tag: v0.6.11)
992
+
993
+ ### (tag: v0.6.11)
624
994
  - Add disable_properties option, checkbox version of multiselect editor. Fixes #111 #105 #91
625
-
626
- ### (tag: v0.6.10)
995
+
996
+ ### (tag: v0.6.10)
627
997
  - Fix bug with validate API call.
628
998
  - Fix validation when supplying value to validate()
629
999
  - Update README.md
630
-
631
- ### (tag: v0.6.9)
1000
+
1001
+ ### (tag: v0.6.9)
632
1002
  - Update bower version.
633
1003
  - Fix bugs with error messages not showing up. Fixes #114
634
1004
  - Add new multiselect editor for arrays of enumerated strings. Fixes #91
635
1005
  - Add 'hidden' option to all editors that stops it from being displayed in the UI.
636
-
637
- ### (tag: v0.6)
1006
+
1007
+ ### (tag: v0.6)
638
1008
  - Fix #100
639
1009
  - Add bower.json file. For #101
640
1010
  - Add name attributes to form inputs so JSON Editor can be embedded in an HTML form.