@limetech/lime-elements 36.1.0-next.9 → 36.1.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 (277) hide show
  1. package/dist/cjs/{checkbox.template-b6c6562c.js → checkbox.template-ac867c17.js} +1 -1
  2. package/dist/cjs/{index-2a28697b.js → index-287e25e0.js} +424 -246
  3. package/dist/cjs/lime-elements.cjs.js +3 -3
  4. package/dist/cjs/limel-badge.cjs.entry.js +2 -1
  5. package/dist/cjs/limel-banner.cjs.entry.js +3 -1
  6. package/dist/cjs/limel-button-group.cjs.entry.js +3 -8
  7. package/dist/cjs/{limel-button.cjs.entry.js → limel-button_2.cjs.entry.js} +117 -21
  8. package/dist/cjs/limel-checkbox.cjs.entry.js +10 -26
  9. package/dist/cjs/limel-chip-set.cjs.entry.js +21 -52
  10. package/dist/cjs/{limel-linear-progress.cjs.entry.js → limel-circular-progress_2.cjs.entry.js} +34 -7
  11. package/dist/cjs/limel-code-editor.cjs.entry.js +110 -97
  12. package/dist/cjs/limel-collapsible-section.cjs.entry.js +4 -5
  13. package/dist/cjs/limel-color-picker-palette.cjs.entry.js +5 -1
  14. package/dist/cjs/limel-color-picker.cjs.entry.js +8 -2
  15. package/dist/cjs/limel-config.cjs.entry.js +2 -1
  16. package/dist/cjs/limel-date-picker.cjs.entry.js +15 -33
  17. package/dist/cjs/limel-dialog.cjs.entry.js +4 -12
  18. package/dist/cjs/limel-dock-button.cjs.entry.js +5 -15
  19. package/dist/cjs/limel-dock.cjs.entry.js +8 -40
  20. package/dist/cjs/limel-file.cjs.entry.js +10 -24
  21. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +149 -48
  22. package/dist/cjs/limel-flex-container.cjs.entry.js +1 -13
  23. package/dist/cjs/limel-form.cjs.entry.js +327 -326
  24. package/dist/cjs/limel-grid.cjs.entry.js +1 -1
  25. package/dist/cjs/limel-header.cjs.entry.js +5 -1
  26. package/dist/cjs/limel-icon-button.cjs.entry.js +3 -8
  27. package/dist/cjs/limel-icon.cjs.entry.js +4 -1
  28. package/dist/cjs/limel-info-tile.cjs.entry.js +95 -0
  29. package/dist/cjs/limel-input-field.cjs.entry.js +27 -60
  30. package/dist/cjs/limel-list_2.cjs.entry.js +10 -21
  31. package/dist/cjs/limel-menu-list.cjs.entry.js +7 -14
  32. package/dist/cjs/limel-picker.cjs.entry.js +14 -39
  33. package/dist/cjs/limel-popover_4.cjs.entry.js +13 -12
  34. package/dist/cjs/limel-portal.cjs.entry.js +63 -73
  35. package/dist/cjs/limel-progress-flow-item.cjs.entry.js +4 -13
  36. package/dist/cjs/limel-progress-flow.cjs.entry.js +4 -20
  37. package/dist/cjs/limel-select.cjs.entry.js +19 -31
  38. package/dist/cjs/limel-shortcut.cjs.entry.js +52 -0
  39. package/dist/cjs/limel-slider.cjs.entry.js +12 -33
  40. package/dist/cjs/limel-snackbar.cjs.entry.js +7 -5
  41. package/dist/cjs/limel-spinner.cjs.entry.js +1 -7
  42. package/dist/cjs/limel-split-button.cjs.entry.js +35 -0
  43. package/dist/cjs/limel-switch.cjs.entry.js +6 -19
  44. package/dist/cjs/limel-tab-bar.cjs.entry.js +2 -5
  45. package/dist/cjs/limel-tab-panel.cjs.entry.js +2 -5
  46. package/dist/cjs/limel-table.cjs.entry.js +16 -28
  47. package/dist/cjs/loader.cjs.js +3 -3
  48. package/dist/cjs/{translations-5a8d7f6c.js → translations-ca7279bc.js} +6 -0
  49. package/dist/collection/collection-manifest.json +5 -2
  50. package/dist/collection/components/badge/badge.js +35 -26
  51. package/dist/collection/components/banner/banner.js +88 -83
  52. package/dist/collection/components/button/button.css +4 -1
  53. package/dist/collection/components/button/button.js +148 -160
  54. package/dist/collection/components/button-group/button-group.js +81 -79
  55. package/dist/collection/components/checkbox/checkbox.js +172 -176
  56. package/dist/collection/components/checkbox/checkbox.template.js +15 -23
  57. package/dist/collection/components/chip-set/chip-set.js +486 -528
  58. package/dist/collection/components/circular-progress/circular-progress.css +27 -5
  59. package/dist/collection/components/circular-progress/circular-progress.js +129 -113
  60. package/dist/collection/components/code-editor/code-editor.js +178 -182
  61. package/dist/collection/components/collapsible-section/collapsible-section.js +120 -124
  62. package/dist/collection/components/color-picker/color-picker-palette.js +102 -92
  63. package/dist/collection/components/color-picker/color-picker.js +143 -131
  64. package/dist/collection/components/config/config.js +21 -17
  65. package/dist/collection/components/date-picker/date-picker.js +254 -261
  66. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +591 -166
  67. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +150 -143
  68. package/dist/collection/components/date-picker/pickers/QuarterPicker.js +1 -3
  69. package/dist/collection/components/dialog/dialog.css +7 -1
  70. package/dist/collection/components/dialog/dialog.js +134 -142
  71. package/dist/collection/components/dock/dock-button/dock-button.js +138 -141
  72. package/dist/collection/components/dock/dock.js +204 -233
  73. package/dist/collection/components/file/file.js +187 -191
  74. package/dist/collection/components/flex-container/flex-container.js +96 -102
  75. package/dist/collection/components/form/form.js +158 -150
  76. package/dist/collection/components/form/widgets/code-editor.js +2 -0
  77. package/dist/collection/components/grid/grid.js +11 -7
  78. package/dist/collection/components/header/header.js +89 -87
  79. package/dist/collection/components/icon/icon.js +79 -66
  80. package/dist/collection/components/icon-button/icon-button.js +85 -85
  81. package/dist/collection/components/info-tile/info-tile.css +310 -0
  82. package/dist/collection/components/info-tile/info-tile.js +294 -0
  83. package/dist/collection/components/info-tile/info-tile.types.js +1 -0
  84. package/dist/collection/components/input-field/input-field.css +3 -0
  85. package/dist/collection/components/input-field/input-field.js +482 -523
  86. package/dist/collection/components/linear-progress/linear-progress.js +57 -61
  87. package/dist/collection/components/list/list-renderer.js +3 -12
  88. package/dist/collection/components/list/list.css +11 -116
  89. package/dist/collection/components/list/list.js +167 -166
  90. package/dist/collection/components/list/radio-button/radio-button.template.js +2 -8
  91. package/dist/collection/components/menu/menu.js +183 -195
  92. package/dist/collection/components/menu-list/menu-list-renderer.js +2 -9
  93. package/dist/collection/components/menu-list/menu-list.css +11 -116
  94. package/dist/collection/components/menu-list/menu-list.js +149 -146
  95. package/dist/collection/components/menu-surface/menu-surface.js +69 -64
  96. package/dist/collection/components/picker/picker.js +412 -427
  97. package/dist/collection/components/popover/popover.js +79 -74
  98. package/dist/collection/components/popover-surface/popover-surface.js +34 -25
  99. package/dist/collection/components/portal/portal.js +145 -158
  100. package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.js +90 -94
  101. package/dist/collection/components/progress-flow/progress-flow.js +93 -101
  102. package/dist/collection/components/select/select.css +8 -7
  103. package/dist/collection/components/select/select.js +206 -211
  104. package/dist/collection/components/select/select.template.js +17 -26
  105. package/dist/collection/components/shortcut/shortcut.css +91 -0
  106. package/dist/collection/components/shortcut/shortcut.js +161 -0
  107. package/dist/collection/components/slider/slider.js +233 -264
  108. package/dist/collection/components/snackbar/snackbar.js +175 -169
  109. package/dist/collection/components/spinner/spinner.js +56 -85
  110. package/dist/collection/components/split-button/split-button.css +84 -0
  111. package/dist/collection/components/split-button/split-button.js +176 -0
  112. package/dist/collection/components/switch/switch.js +117 -129
  113. package/dist/collection/components/tab-bar/tab-bar.js +87 -92
  114. package/dist/collection/components/tab-panel/tab-panel.js +64 -61
  115. package/dist/collection/components/table/table.js +447 -457
  116. package/dist/collection/components/tooltip/tooltip-content.js +70 -61
  117. package/dist/collection/components/tooltip/tooltip.js +96 -91
  118. package/dist/collection/global/shared-types/link.types.js +1 -0
  119. package/dist/collection/style/internal/z-index.scss +0 -5
  120. package/dist/collection/translations/da.js +1 -0
  121. package/dist/collection/translations/en.js +1 -0
  122. package/dist/collection/translations/fi.js +1 -0
  123. package/dist/collection/translations/nl.js +1 -0
  124. package/dist/collection/translations/no.js +1 -0
  125. package/dist/collection/translations/sv.js +1 -0
  126. package/dist/esm/{checkbox.template-2f1bbc98.js → checkbox.template-fc7fcd06.js} +1 -1
  127. package/dist/esm/{index-11cd0b60.js → index-cdfd351d.js} +424 -246
  128. package/dist/esm/lime-elements.js +3 -3
  129. package/dist/esm/limel-badge.entry.js +2 -1
  130. package/dist/esm/limel-banner.entry.js +3 -1
  131. package/dist/esm/limel-button-group.entry.js +3 -8
  132. package/dist/esm/{limel-button.entry.js → limel-button_2.entry.js} +117 -22
  133. package/dist/esm/limel-checkbox.entry.js +10 -26
  134. package/dist/esm/limel-chip-set.entry.js +21 -52
  135. package/dist/esm/{limel-linear-progress.entry.js → limel-circular-progress_2.entry.js} +34 -8
  136. package/dist/esm/limel-code-editor.entry.js +110 -97
  137. package/dist/esm/limel-collapsible-section.entry.js +4 -5
  138. package/dist/esm/limel-color-picker-palette.entry.js +5 -1
  139. package/dist/esm/limel-color-picker.entry.js +8 -2
  140. package/dist/esm/limel-config.entry.js +2 -1
  141. package/dist/esm/limel-date-picker.entry.js +15 -33
  142. package/dist/esm/limel-dialog.entry.js +4 -12
  143. package/dist/esm/limel-dock-button.entry.js +5 -15
  144. package/dist/esm/limel-dock.entry.js +8 -40
  145. package/dist/esm/limel-file.entry.js +10 -24
  146. package/dist/esm/limel-flatpickr-adapter.entry.js +149 -48
  147. package/dist/esm/limel-flex-container.entry.js +1 -13
  148. package/dist/esm/limel-form.entry.js +327 -326
  149. package/dist/esm/limel-grid.entry.js +1 -1
  150. package/dist/esm/limel-header.entry.js +5 -1
  151. package/dist/esm/limel-icon-button.entry.js +3 -8
  152. package/dist/esm/limel-icon.entry.js +4 -1
  153. package/dist/esm/limel-info-tile.entry.js +91 -0
  154. package/dist/esm/limel-input-field.entry.js +27 -60
  155. package/dist/esm/limel-list_2.entry.js +10 -21
  156. package/dist/esm/limel-menu-list.entry.js +7 -14
  157. package/dist/esm/limel-picker.entry.js +14 -39
  158. package/dist/esm/limel-popover_4.entry.js +13 -12
  159. package/dist/esm/limel-portal.entry.js +63 -73
  160. package/dist/esm/limel-progress-flow-item.entry.js +4 -13
  161. package/dist/esm/limel-progress-flow.entry.js +4 -20
  162. package/dist/esm/limel-select.entry.js +19 -31
  163. package/dist/esm/limel-shortcut.entry.js +48 -0
  164. package/dist/esm/limel-slider.entry.js +12 -33
  165. package/dist/esm/limel-snackbar.entry.js +7 -5
  166. package/dist/esm/limel-spinner.entry.js +1 -7
  167. package/dist/esm/limel-split-button.entry.js +31 -0
  168. package/dist/esm/limel-switch.entry.js +6 -19
  169. package/dist/esm/limel-tab-bar.entry.js +2 -5
  170. package/dist/esm/limel-tab-panel.entry.js +2 -5
  171. package/dist/esm/limel-table.entry.js +16 -28
  172. package/dist/esm/loader.js +3 -3
  173. package/dist/esm/polyfills/css-shim.js +1 -1
  174. package/dist/esm/{translations-682e905e.js → translations-0d0ee941.js} +6 -0
  175. package/dist/lime-elements/lime-elements.esm.js +1 -1
  176. package/dist/lime-elements/p-059e0a64.entry.js +1 -0
  177. package/dist/lime-elements/{p-440454ed.entry.js → p-06f2f6b4.entry.js} +1 -1
  178. package/dist/lime-elements/p-12a7453b.entry.js +73 -0
  179. package/dist/lime-elements/p-1386d86d.entry.js +82 -0
  180. package/dist/lime-elements/p-15c2eb16.entry.js +1 -0
  181. package/dist/lime-elements/{p-c80acfb2.entry.js → p-15ca0d70.entry.js} +4 -4
  182. package/dist/lime-elements/{p-ed65468d.entry.js → p-16eb9071.entry.js} +1 -1
  183. package/dist/lime-elements/{p-1ede893b.js → p-1af8258b.js} +1 -1
  184. package/dist/lime-elements/{p-71efe2ca.entry.js → p-21058db5.entry.js} +4 -3
  185. package/dist/lime-elements/p-246862ec.js +1 -0
  186. package/dist/lime-elements/p-36a3b897.entry.js +1 -0
  187. package/dist/lime-elements/p-4eda8b67.entry.js +82 -0
  188. package/dist/lime-elements/{p-9af0704c.entry.js → p-4fb4e89b.entry.js} +1 -1
  189. package/dist/lime-elements/p-4fc38050.entry.js +1 -0
  190. package/dist/lime-elements/{p-a5af84a7.entry.js → p-5338663b.entry.js} +1 -1
  191. package/dist/lime-elements/p-5ce60a32.entry.js +126 -0
  192. package/dist/lime-elements/p-5f13035a.entry.js +1 -0
  193. package/dist/lime-elements/p-5f29f099.entry.js +16 -0
  194. package/dist/lime-elements/p-600464a9.entry.js +1 -0
  195. package/dist/lime-elements/p-6534e16a.entry.js +1 -0
  196. package/dist/lime-elements/p-6a4a5ddd.entry.js +1 -0
  197. package/dist/lime-elements/p-6c38b505.entry.js +1 -0
  198. package/dist/lime-elements/p-75d01713.entry.js +1 -0
  199. package/dist/lime-elements/p-768b7cbb.entry.js +1 -0
  200. package/dist/lime-elements/{p-6e7809a6.entry.js → p-82cd7bb6.entry.js} +1 -1
  201. package/dist/lime-elements/p-84a137a7.entry.js +1 -0
  202. package/dist/lime-elements/{p-aa66620a.entry.js → p-8ab597a8.entry.js} +2 -2
  203. package/dist/lime-elements/{p-8827628d.entry.js → p-8fb83e83.entry.js} +2 -2
  204. package/dist/lime-elements/p-90961075.entry.js +1 -0
  205. package/dist/lime-elements/p-9984b31c.entry.js +1 -0
  206. package/dist/lime-elements/p-9bd76629.entry.js +59 -0
  207. package/dist/lime-elements/p-9ea8dd5c.entry.js +1 -0
  208. package/dist/lime-elements/p-cad7cda1.entry.js +16 -0
  209. package/dist/lime-elements/{p-104c89e8.entry.js → p-cfaa685f.entry.js} +1 -1
  210. package/dist/lime-elements/{p-94899019.entry.js → p-d1187867.entry.js} +1 -1
  211. package/dist/lime-elements/p-d4e788e1.js +2 -0
  212. package/dist/lime-elements/p-d512656b.entry.js +1 -0
  213. package/dist/lime-elements/p-d8e5a9ee.entry.js +1 -0
  214. package/dist/lime-elements/p-de161bb5.entry.js +1 -0
  215. package/dist/lime-elements/p-e4bca82b.entry.js +1 -0
  216. package/dist/lime-elements/p-e6f84d68.entry.js +1 -0
  217. package/dist/lime-elements/{p-c15da26d.entry.js → p-e7bb664f.entry.js} +1 -1
  218. package/dist/lime-elements/p-e88f7922.entry.js +1 -0
  219. package/dist/lime-elements/p-ec4c075d.entry.js +1 -0
  220. package/dist/lime-elements/p-f1ed857b.entry.js +37 -0
  221. package/dist/lime-elements/p-f33cfcb8.entry.js +11 -0
  222. package/dist/lime-elements/style/internal/z-index.scss +0 -5
  223. package/dist/loader/package.json +1 -0
  224. package/dist/types/components/circular-progress/circular-progress.d.ts +5 -0
  225. package/dist/types/components/dock/dock.d.ts +0 -1
  226. package/dist/types/components/info-tile/info-tile.d.ts +87 -0
  227. package/dist/types/components/info-tile/info-tile.types.d.ts +23 -0
  228. package/dist/types/components/picker/picker.d.ts +2 -2
  229. package/dist/types/components/shortcut/shortcut.d.ts +42 -0
  230. package/dist/types/components/split-button/split-button.d.ts +46 -0
  231. package/dist/types/components.d.ts +403 -67
  232. package/dist/types/global/shared-types/link.types.d.ts +25 -0
  233. package/dist/types/interface.d.ts +2 -0
  234. package/dist/types/stencil-public-runtime.d.ts +20 -4
  235. package/dist/types/translations/da.d.ts +1 -0
  236. package/dist/types/translations/en.d.ts +1 -0
  237. package/dist/types/translations/fi.d.ts +1 -0
  238. package/dist/types/translations/nl.d.ts +1 -0
  239. package/dist/types/translations/no.d.ts +1 -0
  240. package/dist/types/translations/sv.d.ts +1 -0
  241. package/package.json +21 -20
  242. package/dist/cjs/limel-circular-progress.cjs.entry.js +0 -44
  243. package/dist/cjs/limel-menu.cjs.entry.js +0 -137
  244. package/dist/esm/limel-circular-progress.entry.js +0 -40
  245. package/dist/esm/limel-menu.entry.js +0 -133
  246. package/dist/lime-elements/p-009de50e.entry.js +0 -1
  247. package/dist/lime-elements/p-19f72dab.entry.js +0 -1
  248. package/dist/lime-elements/p-2639edf9.entry.js +0 -73
  249. package/dist/lime-elements/p-2fc4f4ff.entry.js +0 -1
  250. package/dist/lime-elements/p-3b0c9885.entry.js +0 -37
  251. package/dist/lime-elements/p-3bf54a4c.js +0 -1
  252. package/dist/lime-elements/p-3cf4aae0.entry.js +0 -1
  253. package/dist/lime-elements/p-3f388717.entry.js +0 -11
  254. package/dist/lime-elements/p-41e902ac.entry.js +0 -126
  255. package/dist/lime-elements/p-4dc07252.entry.js +0 -82
  256. package/dist/lime-elements/p-53e01330.entry.js +0 -1
  257. package/dist/lime-elements/p-5ef52589.entry.js +0 -1
  258. package/dist/lime-elements/p-629862f4.entry.js +0 -1
  259. package/dist/lime-elements/p-63e25a0a.entry.js +0 -1
  260. package/dist/lime-elements/p-6b1bc80f.entry.js +0 -1
  261. package/dist/lime-elements/p-93cd2268.entry.js +0 -1
  262. package/dist/lime-elements/p-95f275ab.entry.js +0 -1
  263. package/dist/lime-elements/p-9917f042.entry.js +0 -16
  264. package/dist/lime-elements/p-995bbd2a.entry.js +0 -1
  265. package/dist/lime-elements/p-a465084b.entry.js +0 -82
  266. package/dist/lime-elements/p-b0046fcd.entry.js +0 -1
  267. package/dist/lime-elements/p-b0e54dc2.entry.js +0 -1
  268. package/dist/lime-elements/p-b4de3380.entry.js +0 -1
  269. package/dist/lime-elements/p-c59cbd68.entry.js +0 -1
  270. package/dist/lime-elements/p-d74fa89e.entry.js +0 -1
  271. package/dist/lime-elements/p-e98d76e8.entry.js +0 -59
  272. package/dist/lime-elements/p-e9a95b8f.js +0 -1
  273. package/dist/lime-elements/p-eec907ac.entry.js +0 -1
  274. package/dist/lime-elements/p-f0c9dadd.entry.js +0 -1
  275. package/dist/lime-elements/p-f0e872b6.entry.js +0 -16
  276. package/dist/lime-elements/p-f41567a1.entry.js +0 -1
  277. package/dist/lime-elements/p-f5df4d4f.entry.js +0 -1
@@ -1,11 +1,11 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-11cd0b60.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-cdfd351d.js';
2
2
  import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-5ec8f9b7.js';
3
3
 
4
4
  var codemirror = createCommonjsModule(function (module, exports) {
5
5
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
6
- // Distributed under an MIT license: https://codemirror.net/LICENSE
6
+ // Distributed under an MIT license: https://codemirror.net/5/LICENSE
7
7
 
8
- // This is CodeMirror (https://codemirror.net), a code editor
8
+ // This is CodeMirror (https://codemirror.net/5), a code editor
9
9
  // implemented in JavaScript on top of the browser's DOM.
10
10
  //
11
11
  // You can find some technical background for some of the code below
@@ -27,7 +27,8 @@ var codemirror = createCommonjsModule(function (module, exports) {
27
27
  var ie_version = ie && (ie_upto10 ? document.documentMode || 6 : +(edge || ie_11up)[1]);
28
28
  var webkit = !edge && /WebKit\//.test(userAgent);
29
29
  var qtwebkit = webkit && /Qt\/\d+\.\d+/.test(userAgent);
30
- var chrome = !edge && /Chrome\//.test(userAgent);
30
+ var chrome = !edge && /Chrome\/(\d+)/.exec(userAgent);
31
+ var chrome_version = chrome && +chrome[1];
31
32
  var presto = /Opera\//.test(userAgent);
32
33
  var safari = /Apple Computer/.test(navigator.vendor);
33
34
  var mac_geMountainLion = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(userAgent);
@@ -112,15 +113,15 @@ var codemirror = createCommonjsModule(function (module, exports) {
112
113
  } while (child = child.parentNode)
113
114
  }
114
115
 
115
- function activeElt() {
116
+ function activeElt(doc) {
116
117
  // IE and Edge may throw an "Unspecified Error" when accessing document.activeElement.
117
118
  // IE < 10 will throw when accessed while the page is loading or in an iframe.
118
119
  // IE > 9 and Edge will throw when accessed in an iframe if document.body is unavailable.
119
120
  var activeElement;
120
121
  try {
121
- activeElement = document.activeElement;
122
+ activeElement = doc.activeElement;
122
123
  } catch(e) {
123
- activeElement = document.body || null;
124
+ activeElement = doc.body || null;
124
125
  }
125
126
  while (activeElement && activeElement.shadowRoot && activeElement.shadowRoot.activeElement)
126
127
  { activeElement = activeElement.shadowRoot.activeElement; }
@@ -144,6 +145,10 @@ var codemirror = createCommonjsModule(function (module, exports) {
144
145
  else if (ie) // Suppress mysterious IE10 errors
145
146
  { selectInput = function(node) { try { node.select(); } catch(_e) {} }; }
146
147
 
148
+ function doc(cm) { return cm.display.wrapper.ownerDocument }
149
+
150
+ function win(cm) { return doc(cm).defaultView }
151
+
147
152
  function bind(f) {
148
153
  var args = Array.prototype.slice.call(arguments, 1);
149
154
  return function(){return f.apply(null, args)}
@@ -2573,16 +2578,16 @@ var codemirror = createCommonjsModule(function (module, exports) {
2573
2578
  cm.display.lineNumChars = null;
2574
2579
  }
2575
2580
 
2576
- function pageScrollX() {
2581
+ function pageScrollX(doc) {
2577
2582
  // Work around https://bugs.chromium.org/p/chromium/issues/detail?id=489206
2578
2583
  // which causes page_Offset and bounding client rects to use
2579
2584
  // different reference viewports and invalidate our calculations.
2580
- if (chrome && android) { return -(document.body.getBoundingClientRect().left - parseInt(getComputedStyle(document.body).marginLeft)) }
2581
- return window.pageXOffset || (document.documentElement || document.body).scrollLeft
2585
+ if (chrome && android) { return -(doc.body.getBoundingClientRect().left - parseInt(getComputedStyle(doc.body).marginLeft)) }
2586
+ return doc.defaultView.pageXOffset || (doc.documentElement || doc.body).scrollLeft
2582
2587
  }
2583
- function pageScrollY() {
2584
- if (chrome && android) { return -(document.body.getBoundingClientRect().top - parseInt(getComputedStyle(document.body).marginTop)) }
2585
- return window.pageYOffset || (document.documentElement || document.body).scrollTop
2588
+ function pageScrollY(doc) {
2589
+ if (chrome && android) { return -(doc.body.getBoundingClientRect().top - parseInt(getComputedStyle(doc.body).marginTop)) }
2590
+ return doc.defaultView.pageYOffset || (doc.documentElement || doc.body).scrollTop
2586
2591
  }
2587
2592
 
2588
2593
  function widgetTopHeight(lineObj) {
@@ -2610,8 +2615,8 @@ var codemirror = createCommonjsModule(function (module, exports) {
2610
2615
  else { yOff -= cm.display.viewOffset; }
2611
2616
  if (context == "page" || context == "window") {
2612
2617
  var lOff = cm.display.lineSpace.getBoundingClientRect();
2613
- yOff += lOff.top + (context == "window" ? 0 : pageScrollY());
2614
- var xOff = lOff.left + (context == "window" ? 0 : pageScrollX());
2618
+ yOff += lOff.top + (context == "window" ? 0 : pageScrollY(doc(cm)));
2619
+ var xOff = lOff.left + (context == "window" ? 0 : pageScrollX(doc(cm)));
2615
2620
  rect.left += xOff; rect.right += xOff;
2616
2621
  }
2617
2622
  rect.top += yOff; rect.bottom += yOff;
@@ -2625,8 +2630,8 @@ var codemirror = createCommonjsModule(function (module, exports) {
2625
2630
  var left = coords.left, top = coords.top;
2626
2631
  // First move into "page" coordinate system
2627
2632
  if (context == "page") {
2628
- left -= pageScrollX();
2629
- top -= pageScrollY();
2633
+ left -= pageScrollX(doc(cm));
2634
+ top -= pageScrollY(doc(cm));
2630
2635
  } else if (context == "local" || !context) {
2631
2636
  var localBox = cm.display.sizer.getBoundingClientRect();
2632
2637
  left += localBox.left;
@@ -3442,8 +3447,9 @@ var codemirror = createCommonjsModule(function (module, exports) {
3442
3447
  if (signalDOMEvent(cm, "scrollCursorIntoView")) { return }
3443
3448
 
3444
3449
  var display = cm.display, box = display.sizer.getBoundingClientRect(), doScroll = null;
3450
+ var doc = display.wrapper.ownerDocument;
3445
3451
  if (rect.top + box.top < 0) { doScroll = true; }
3446
- else if (rect.bottom + box.top > (window.innerHeight || document.documentElement.clientHeight)) { doScroll = false; }
3452
+ else if (rect.bottom + box.top > (doc.defaultView.innerHeight || doc.documentElement.clientHeight)) { doScroll = false; }
3447
3453
  if (doScroll != null && !phantom) {
3448
3454
  var scrollNode = elt("div", "\u200b", null, ("position: absolute;\n top: " + (rect.top - display.viewOffset - paddingTop(cm.display)) + "px;\n height: " + (rect.bottom - rect.top + scrollGap(cm) + display.barHeight) + "px;\n left: " + (rect.left) + "px; width: " + (Math.max(2, rect.right - rect.left)) + "px;"));
3449
3455
  cm.display.lineSpace.appendChild(scrollNode);
@@ -3697,13 +3703,13 @@ var codemirror = createCommonjsModule(function (module, exports) {
3697
3703
  NativeScrollbars.prototype.zeroWidthHack = function () {
3698
3704
  var w = mac && !mac_geMountainLion ? "12px" : "18px";
3699
3705
  this.horiz.style.height = this.vert.style.width = w;
3700
- this.horiz.style.pointerEvents = this.vert.style.pointerEvents = "none";
3706
+ this.horiz.style.visibility = this.vert.style.visibility = "hidden";
3701
3707
  this.disableHoriz = new Delayed;
3702
3708
  this.disableVert = new Delayed;
3703
3709
  };
3704
3710
 
3705
3711
  NativeScrollbars.prototype.enableZeroWidthBar = function (bar, delay, type) {
3706
- bar.style.pointerEvents = "auto";
3712
+ bar.style.visibility = "";
3707
3713
  function maybeDisable() {
3708
3714
  // To find out whether the scrollbar is still visible, we
3709
3715
  // check whether the element under the pixel in the bottom
@@ -3714,7 +3720,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
3714
3720
  var box = bar.getBoundingClientRect();
3715
3721
  var elt = type == "vert" ? document.elementFromPoint(box.right - 1, (box.top + box.bottom) / 2)
3716
3722
  : document.elementFromPoint((box.right + box.left) / 2, box.bottom - 1);
3717
- if (elt != bar) { bar.style.pointerEvents = "none"; }
3723
+ if (elt != bar) { bar.style.visibility = "hidden"; }
3718
3724
  else { delay.set(1000, maybeDisable); }
3719
3725
  }
3720
3726
  delay.set(1000, maybeDisable);
@@ -3895,7 +3901,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
3895
3901
  cm.display.maxLineChanged = false;
3896
3902
  }
3897
3903
 
3898
- var takeFocus = op.focus && op.focus == activeElt();
3904
+ var takeFocus = op.focus && op.focus == activeElt(doc(cm));
3899
3905
  if (op.preparedSelection)
3900
3906
  { cm.display.input.showSelection(op.preparedSelection, takeFocus); }
3901
3907
  if (op.updatedDisplay || op.startHeight != cm.doc.height)
@@ -4072,11 +4078,11 @@ var codemirror = createCommonjsModule(function (module, exports) {
4072
4078
 
4073
4079
  function selectionSnapshot(cm) {
4074
4080
  if (cm.hasFocus()) { return null }
4075
- var active = activeElt();
4081
+ var active = activeElt(doc(cm));
4076
4082
  if (!active || !contains(cm.display.lineDiv, active)) { return null }
4077
4083
  var result = {activeElt: active};
4078
4084
  if (window.getSelection) {
4079
- var sel = window.getSelection();
4085
+ var sel = win(cm).getSelection();
4080
4086
  if (sel.anchorNode && sel.extend && contains(cm.display.lineDiv, sel.anchorNode)) {
4081
4087
  result.anchorNode = sel.anchorNode;
4082
4088
  result.anchorOffset = sel.anchorOffset;
@@ -4088,11 +4094,12 @@ var codemirror = createCommonjsModule(function (module, exports) {
4088
4094
  }
4089
4095
 
4090
4096
  function restoreSelection(snapshot) {
4091
- if (!snapshot || !snapshot.activeElt || snapshot.activeElt == activeElt()) { return }
4097
+ if (!snapshot || !snapshot.activeElt || snapshot.activeElt == activeElt(snapshot.activeElt.ownerDocument)) { return }
4092
4098
  snapshot.activeElt.focus();
4093
4099
  if (!/^(INPUT|TEXTAREA)$/.test(snapshot.activeElt.nodeName) &&
4094
4100
  snapshot.anchorNode && contains(document.body, snapshot.anchorNode) && contains(document.body, snapshot.focusNode)) {
4095
- var sel = window.getSelection(), range = document.createRange();
4101
+ var doc = snapshot.activeElt.ownerDocument;
4102
+ var sel = doc.defaultView.getSelection(), range = doc.createRange();
4096
4103
  range.setEnd(snapshot.anchorNode, snapshot.anchorOffset);
4097
4104
  range.collapse(false);
4098
4105
  sel.removeAllRanges();
@@ -4409,6 +4416,8 @@ var codemirror = createCommonjsModule(function (module, exports) {
4409
4416
  d.scroller.setAttribute("tabIndex", "-1");
4410
4417
  // The element in which the editor lives.
4411
4418
  d.wrapper = elt("div", [d.scrollbarFiller, d.gutterFiller, d.scroller], "CodeMirror");
4419
+ // See #6982. FIXME remove when this has been fixed for a while in Chrome
4420
+ if (chrome && chrome_version >= 105) { d.wrapper.style.clipPath = "inset(0px)"; }
4412
4421
 
4413
4422
  // This attribute is respected by automatic translation systems such as Google Translate,
4414
4423
  // and may also be respected by tools used by human translators.
@@ -4510,6 +4519,17 @@ var codemirror = createCommonjsModule(function (module, exports) {
4510
4519
  }
4511
4520
 
4512
4521
  function onScrollWheel(cm, e) {
4522
+ // On Chrome 102, viewport updates somehow stop wheel-based
4523
+ // scrolling. Turning off pointer events during the scroll seems
4524
+ // to avoid the issue.
4525
+ if (chrome && chrome_version == 102) {
4526
+ if (cm.display.chromeScrollHack == null) { cm.display.sizer.style.pointerEvents = "none"; }
4527
+ else { clearTimeout(cm.display.chromeScrollHack); }
4528
+ cm.display.chromeScrollHack = setTimeout(function () {
4529
+ cm.display.chromeScrollHack = null;
4530
+ cm.display.sizer.style.pointerEvents = "";
4531
+ }, 100);
4532
+ }
4513
4533
  var delta = wheelEventDelta(e), dx = delta.x, dy = delta.y;
4514
4534
  var pixelsPerUnit = wheelPixelsPerUnit;
4515
4535
  if (e.deltaMode === 0) {
@@ -5193,7 +5213,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
5193
5213
  var range = sel.ranges[i];
5194
5214
  var old = sel.ranges.length == doc.sel.ranges.length && doc.sel.ranges[i];
5195
5215
  var newAnchor = skipAtomic(doc, range.anchor, old && old.anchor, bias, mayClear);
5196
- var newHead = skipAtomic(doc, range.head, old && old.head, bias, mayClear);
5216
+ var newHead = range.head == range.anchor ? newAnchor : skipAtomic(doc, range.head, old && old.head, bias, mayClear);
5197
5217
  if (out || newAnchor != range.anchor || newHead != range.head) {
5198
5218
  if (!out) { out = sel.ranges.slice(0, i); }
5199
5219
  out[i] = new Range(newAnchor, newHead);
@@ -7245,7 +7265,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
7245
7265
  function onKeyDown(e) {
7246
7266
  var cm = this;
7247
7267
  if (e.target && e.target != cm.display.input.getField()) { return }
7248
- cm.curOp.focus = activeElt();
7268
+ cm.curOp.focus = activeElt(doc(cm));
7249
7269
  if (signalDOMEvent(cm, e)) { return }
7250
7270
  // IE does strange things with escape.
7251
7271
  if (ie && ie_version < 11 && e.keyCode == 27) { e.returnValue = false; }
@@ -7352,7 +7372,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
7352
7372
  }
7353
7373
  if (clickInGutter(cm, e)) { return }
7354
7374
  var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : "single";
7355
- window.focus();
7375
+ win(cm).focus();
7356
7376
 
7357
7377
  // #3261: make sure, that we're not starting a second selection
7358
7378
  if (button == 1 && cm.state.selectingText)
@@ -7407,7 +7427,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
7407
7427
 
7408
7428
  function leftButtonDown(cm, pos, repeat, event) {
7409
7429
  if (ie) { setTimeout(bind(ensureFocus, cm), 0); }
7410
- else { cm.curOp.focus = activeElt(); }
7430
+ else { cm.curOp.focus = activeElt(doc(cm)); }
7411
7431
 
7412
7432
  var behavior = configureMouse(cm, repeat, event);
7413
7433
 
@@ -7477,19 +7497,19 @@ var codemirror = createCommonjsModule(function (module, exports) {
7477
7497
  // Normal selection, as opposed to text dragging.
7478
7498
  function leftButtonSelect(cm, event, start, behavior) {
7479
7499
  if (ie) { delayBlurEvent(cm); }
7480
- var display = cm.display, doc = cm.doc;
7500
+ var display = cm.display, doc$1 = cm.doc;
7481
7501
  e_preventDefault(event);
7482
7502
 
7483
- var ourRange, ourIndex, startSel = doc.sel, ranges = startSel.ranges;
7503
+ var ourRange, ourIndex, startSel = doc$1.sel, ranges = startSel.ranges;
7484
7504
  if (behavior.addNew && !behavior.extend) {
7485
- ourIndex = doc.sel.contains(start);
7505
+ ourIndex = doc$1.sel.contains(start);
7486
7506
  if (ourIndex > -1)
7487
7507
  { ourRange = ranges[ourIndex]; }
7488
7508
  else
7489
7509
  { ourRange = new Range(start, start); }
7490
7510
  } else {
7491
- ourRange = doc.sel.primary();
7492
- ourIndex = doc.sel.primIndex;
7511
+ ourRange = doc$1.sel.primary();
7512
+ ourIndex = doc$1.sel.primIndex;
7493
7513
  }
7494
7514
 
7495
7515
  if (behavior.unit == "rectangle") {
@@ -7506,18 +7526,18 @@ var codemirror = createCommonjsModule(function (module, exports) {
7506
7526
 
7507
7527
  if (!behavior.addNew) {
7508
7528
  ourIndex = 0;
7509
- setSelection(doc, new Selection([ourRange], 0), sel_mouse);
7510
- startSel = doc.sel;
7529
+ setSelection(doc$1, new Selection([ourRange], 0), sel_mouse);
7530
+ startSel = doc$1.sel;
7511
7531
  } else if (ourIndex == -1) {
7512
7532
  ourIndex = ranges.length;
7513
- setSelection(doc, normalizeSelection(cm, ranges.concat([ourRange]), ourIndex),
7533
+ setSelection(doc$1, normalizeSelection(cm, ranges.concat([ourRange]), ourIndex),
7514
7534
  {scroll: false, origin: "*mouse"});
7515
7535
  } else if (ranges.length > 1 && ranges[ourIndex].empty() && behavior.unit == "char" && !behavior.extend) {
7516
- setSelection(doc, normalizeSelection(cm, ranges.slice(0, ourIndex).concat(ranges.slice(ourIndex + 1)), 0),
7536
+ setSelection(doc$1, normalizeSelection(cm, ranges.slice(0, ourIndex).concat(ranges.slice(ourIndex + 1)), 0),
7517
7537
  {scroll: false, origin: "*mouse"});
7518
- startSel = doc.sel;
7538
+ startSel = doc$1.sel;
7519
7539
  } else {
7520
- replaceOneSelection(doc, ourIndex, ourRange, sel_mouse);
7540
+ replaceOneSelection(doc$1, ourIndex, ourRange, sel_mouse);
7521
7541
  }
7522
7542
 
7523
7543
  var lastPos = start;
@@ -7527,19 +7547,19 @@ var codemirror = createCommonjsModule(function (module, exports) {
7527
7547
 
7528
7548
  if (behavior.unit == "rectangle") {
7529
7549
  var ranges = [], tabSize = cm.options.tabSize;
7530
- var startCol = countColumn(getLine(doc, start.line).text, start.ch, tabSize);
7531
- var posCol = countColumn(getLine(doc, pos.line).text, pos.ch, tabSize);
7550
+ var startCol = countColumn(getLine(doc$1, start.line).text, start.ch, tabSize);
7551
+ var posCol = countColumn(getLine(doc$1, pos.line).text, pos.ch, tabSize);
7532
7552
  var left = Math.min(startCol, posCol), right = Math.max(startCol, posCol);
7533
7553
  for (var line = Math.min(start.line, pos.line), end = Math.min(cm.lastLine(), Math.max(start.line, pos.line));
7534
7554
  line <= end; line++) {
7535
- var text = getLine(doc, line).text, leftPos = findColumn(text, left, tabSize);
7555
+ var text = getLine(doc$1, line).text, leftPos = findColumn(text, left, tabSize);
7536
7556
  if (left == right)
7537
7557
  { ranges.push(new Range(Pos(line, leftPos), Pos(line, leftPos))); }
7538
7558
  else if (text.length > leftPos)
7539
7559
  { ranges.push(new Range(Pos(line, leftPos), Pos(line, findColumn(text, right, tabSize)))); }
7540
7560
  }
7541
7561
  if (!ranges.length) { ranges.push(new Range(start, start)); }
7542
- setSelection(doc, normalizeSelection(cm, startSel.ranges.slice(0, ourIndex).concat(ranges), ourIndex),
7562
+ setSelection(doc$1, normalizeSelection(cm, startSel.ranges.slice(0, ourIndex).concat(ranges), ourIndex),
7543
7563
  {origin: "*mouse", scroll: false});
7544
7564
  cm.scrollIntoView(pos);
7545
7565
  } else {
@@ -7554,8 +7574,8 @@ var codemirror = createCommonjsModule(function (module, exports) {
7554
7574
  anchor = maxPos(oldRange.to(), range.head);
7555
7575
  }
7556
7576
  var ranges$1 = startSel.ranges.slice(0);
7557
- ranges$1[ourIndex] = bidiSimplify(cm, new Range(clipPos(doc, anchor), head));
7558
- setSelection(doc, normalizeSelection(cm, ranges$1, ourIndex), sel_mouse);
7577
+ ranges$1[ourIndex] = bidiSimplify(cm, new Range(clipPos(doc$1, anchor), head));
7578
+ setSelection(doc$1, normalizeSelection(cm, ranges$1, ourIndex), sel_mouse);
7559
7579
  }
7560
7580
  }
7561
7581
 
@@ -7571,9 +7591,9 @@ var codemirror = createCommonjsModule(function (module, exports) {
7571
7591
  var cur = posFromMouse(cm, e, true, behavior.unit == "rectangle");
7572
7592
  if (!cur) { return }
7573
7593
  if (cmp(cur, lastPos) != 0) {
7574
- cm.curOp.focus = activeElt();
7594
+ cm.curOp.focus = activeElt(doc(cm));
7575
7595
  extendTo(cur);
7576
- var visible = visibleLines(display, doc);
7596
+ var visible = visibleLines(display, doc$1);
7577
7597
  if (cur.line >= visible.to || cur.line < visible.from)
7578
7598
  { setTimeout(operation(cm, function () {if (counter == curCount) { extend(e); }}), 150); }
7579
7599
  } else {
@@ -7598,7 +7618,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
7598
7618
  }
7599
7619
  off(display.wrapper.ownerDocument, "mousemove", move);
7600
7620
  off(display.wrapper.ownerDocument, "mouseup", up);
7601
- doc.history.lastSelOrigin = null;
7621
+ doc$1.history.lastSelOrigin = null;
7602
7622
  }
7603
7623
 
7604
7624
  var move = operation(cm, function (e) {
@@ -7755,7 +7775,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
7755
7775
  for (var i = newBreaks.length - 1; i >= 0; i--)
7756
7776
  { replaceRange(cm.doc, val, newBreaks[i], Pos(newBreaks[i].line, newBreaks[i].ch + val.length)); }
7757
7777
  });
7758
- option("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g, function (cm, val, old) {
7778
+ option("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g, function (cm, val, old) {
7759
7779
  cm.state.specialChars = new RegExp(val.source + (val.test("\t") ? "" : "|\t"), "g");
7760
7780
  if (old != Init) { cm.refresh(); }
7761
7781
  });
@@ -8198,7 +8218,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
8198
8218
  var pasted = e.clipboardData && e.clipboardData.getData("Text");
8199
8219
  if (pasted) {
8200
8220
  e.preventDefault();
8201
- if (!cm.isReadOnly() && !cm.options.disableInput)
8221
+ if (!cm.isReadOnly() && !cm.options.disableInput && cm.hasFocus())
8202
8222
  { runInOp(cm, function () { return applyTextInput(cm, pasted, 0, null, "paste"); }); }
8203
8223
  return true
8204
8224
  }
@@ -8275,7 +8295,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
8275
8295
 
8276
8296
  CodeMirror.prototype = {
8277
8297
  constructor: CodeMirror,
8278
- focus: function(){window.focus(); this.display.input.focus();},
8298
+ focus: function(){win(this).focus(); this.display.input.focus();},
8279
8299
 
8280
8300
  setOption: function(option, value) {
8281
8301
  var options = this.options, old = options[option];
@@ -8599,7 +8619,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
8599
8619
 
8600
8620
  signal(this, "overwriteToggle", this, this.state.overwrite);
8601
8621
  },
8602
- hasFocus: function() { return this.display.input.getField() == activeElt() },
8622
+ hasFocus: function() { return this.display.input.getField() == activeElt(doc(this)) },
8603
8623
  isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },
8604
8624
 
8605
8625
  scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),
@@ -8780,7 +8800,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
8780
8800
  function findPosV(cm, pos, dir, unit) {
8781
8801
  var doc = cm.doc, x = pos.left, y;
8782
8802
  if (unit == "page") {
8783
- var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);
8803
+ var pageSize = Math.min(cm.display.wrapper.clientHeight, win(cm).innerHeight || doc(cm).documentElement.clientHeight);
8784
8804
  var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);
8785
8805
  y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;
8786
8806
 
@@ -8880,7 +8900,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
8880
8900
  var kludge = hiddenTextarea(), te = kludge.firstChild;
8881
8901
  cm.display.lineSpace.insertBefore(kludge, cm.display.lineSpace.firstChild);
8882
8902
  te.value = lastCopied.text.join("\n");
8883
- var hadFocus = activeElt();
8903
+ var hadFocus = activeElt(div.ownerDocument);
8884
8904
  selectInput(te);
8885
8905
  setTimeout(function () {
8886
8906
  cm.display.lineSpace.removeChild(kludge);
@@ -8903,7 +8923,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
8903
8923
 
8904
8924
  ContentEditableInput.prototype.prepareSelection = function () {
8905
8925
  var result = prepareSelection(this.cm, false);
8906
- result.focus = activeElt() == this.div;
8926
+ result.focus = activeElt(this.div.ownerDocument) == this.div;
8907
8927
  return result
8908
8928
  };
8909
8929
 
@@ -8999,7 +9019,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
8999
9019
 
9000
9020
  ContentEditableInput.prototype.focus = function () {
9001
9021
  if (this.cm.options.readOnly != "nocursor") {
9002
- if (!this.selectionInEditor() || activeElt() != this.div)
9022
+ if (!this.selectionInEditor() || activeElt(this.div.ownerDocument) != this.div)
9003
9023
  { this.showSelection(this.prepareSelection(), true); }
9004
9024
  this.div.focus();
9005
9025
  }
@@ -9351,6 +9371,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
9351
9371
  // Used to work around IE issue with selection being forgotten when focus moves away from textarea
9352
9372
  this.hasSelection = false;
9353
9373
  this.composing = null;
9374
+ this.resetting = false;
9354
9375
  };
9355
9376
 
9356
9377
  TextareaInput.prototype.init = function (display) {
@@ -9483,8 +9504,9 @@ var codemirror = createCommonjsModule(function (module, exports) {
9483
9504
  // Reset the input to correspond to the selection (or to be empty,
9484
9505
  // when not typing and nothing is selected)
9485
9506
  TextareaInput.prototype.reset = function (typing) {
9486
- if (this.contextMenuPending || this.composing) { return }
9507
+ if (this.contextMenuPending || this.composing && typing) { return }
9487
9508
  var cm = this.cm;
9509
+ this.resetting = true;
9488
9510
  if (cm.somethingSelected()) {
9489
9511
  this.prevInput = "";
9490
9512
  var content = cm.getSelection();
@@ -9495,6 +9517,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
9495
9517
  this.prevInput = this.textarea.value = "";
9496
9518
  if (ie && ie_version >= 9) { this.hasSelection = null; }
9497
9519
  }
9520
+ this.resetting = false;
9498
9521
  };
9499
9522
 
9500
9523
  TextareaInput.prototype.getField = function () { return this.textarea };
@@ -9502,7 +9525,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
9502
9525
  TextareaInput.prototype.supportsTouch = function () { return false };
9503
9526
 
9504
9527
  TextareaInput.prototype.focus = function () {
9505
- if (this.cm.options.readOnly != "nocursor" && (!mobile || activeElt() != this.textarea)) {
9528
+ if (this.cm.options.readOnly != "nocursor" && (!mobile || activeElt(this.textarea.ownerDocument) != this.textarea)) {
9506
9529
  try { this.textarea.focus(); }
9507
9530
  catch (e) {} // IE8 will throw if the textarea is display: none or not in DOM
9508
9531
  }
@@ -9556,7 +9579,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
9556
9579
  // possible when it is clear that nothing happened. hasSelection
9557
9580
  // will be the case when there is a lot of text in the textarea,
9558
9581
  // in which case reading its value would be expensive.
9559
- if (this.contextMenuPending || !cm.state.focused ||
9582
+ if (this.contextMenuPending || this.resetting || !cm.state.focused ||
9560
9583
  (hasSelection(input) && !prevInput && !this.composing) ||
9561
9584
  cm.isReadOnly() || cm.options.disableInput || cm.state.keySeq)
9562
9585
  { return false }
@@ -9625,9 +9648,9 @@ var codemirror = createCommonjsModule(function (module, exports) {
9625
9648
  input.wrapper.style.cssText = "position: static";
9626
9649
  te.style.cssText = "position: absolute; width: 30px; height: 30px;\n top: " + (e.clientY - wrapperBox.top - 5) + "px; left: " + (e.clientX - wrapperBox.left - 5) + "px;\n z-index: 1000; background: " + (ie ? "rgba(255, 255, 255, .05)" : "transparent") + ";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";
9627
9650
  var oldScrollY;
9628
- if (webkit) { oldScrollY = window.scrollY; } // Work around Chrome issue (#2712)
9651
+ if (webkit) { oldScrollY = te.ownerDocument.defaultView.scrollY; } // Work around Chrome issue (#2712)
9629
9652
  display.input.focus();
9630
- if (webkit) { window.scrollTo(null, oldScrollY); }
9653
+ if (webkit) { te.ownerDocument.defaultView.scrollTo(null, oldScrollY); }
9631
9654
  display.input.reset();
9632
9655
  // Adds "Select all" to context menu in FF
9633
9656
  if (!cm.somethingSelected()) { te.value = input.prevInput = " "; }
@@ -9709,7 +9732,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
9709
9732
  // Set autofocus to true if this textarea is focused, or if it has
9710
9733
  // autofocus and no other element is focused.
9711
9734
  if (options.autofocus == null) {
9712
- var hasFocus = activeElt();
9735
+ var hasFocus = activeElt(textarea.ownerDocument);
9713
9736
  options.autofocus = hasFocus == textarea ||
9714
9737
  textarea.getAttribute("autofocus") != null && hasFocus == document.body;
9715
9738
  }
@@ -9843,7 +9866,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
9843
9866
 
9844
9867
  addLegacyProps(CodeMirror);
9845
9868
 
9846
- CodeMirror.version = "5.65.3";
9869
+ CodeMirror.version = "5.65.9";
9847
9870
 
9848
9871
  return CodeMirror;
9849
9872
 
@@ -9852,7 +9875,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
9852
9875
 
9853
9876
  createCommonjsModule(function (module, exports) {
9854
9877
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
9855
- // Distributed under an MIT license: https://codemirror.net/LICENSE
9878
+ // Distributed under an MIT license: https://codemirror.net/5/LICENSE
9856
9879
 
9857
9880
  (function(mod) {
9858
9881
  mod(codemirror);
@@ -10808,7 +10831,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript
10808
10831
 
10809
10832
  createCommonjsModule(function (module, exports) {
10810
10833
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
10811
- // Distributed under an MIT license: https://codemirror.net/LICENSE
10834
+ // Distributed under an MIT license: https://codemirror.net/5/LICENSE
10812
10835
 
10813
10836
  (function(mod) {
10814
10837
  mod(codemirror);
@@ -10877,7 +10900,7 @@ createCommonjsModule(function (module, exports) {
10877
10900
 
10878
10901
  createCommonjsModule(function (module, exports) {
10879
10902
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
10880
- // Distributed under an MIT license: https://codemirror.net/LICENSE
10903
+ // Distributed under an MIT license: https://codemirror.net/5/LICENSE
10881
10904
 
10882
10905
  (function(mod) {
10883
10906
  mod(codemirror);
@@ -11035,7 +11058,7 @@ createCommonjsModule(function (module, exports) {
11035
11058
 
11036
11059
  createCommonjsModule(function (module, exports) {
11037
11060
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
11038
- // Distributed under an MIT license: https://codemirror.net/LICENSE
11061
+ // Distributed under an MIT license: https://codemirror.net/5/LICENSE
11039
11062
 
11040
11063
  (function(mod) {
11041
11064
  mod(codemirror);
@@ -11323,7 +11346,7 @@ createCommonjsModule(function (module, exports) {
11323
11346
 
11324
11347
  createCommonjsModule(function (module, exports) {
11325
11348
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
11326
- // Distributed under an MIT license: https://codemirror.net/LICENSE
11349
+ // Distributed under an MIT license: https://codemirror.net/5/LICENSE
11327
11350
 
11328
11351
  // Depends on jsonlint.js from https://github.com/zaach/jsonlint
11329
11352
 
@@ -11360,7 +11383,7 @@ CodeMirror.registerHelper("lint", "json", function(text) {
11360
11383
 
11361
11384
  var foldcode = createCommonjsModule(function (module, exports) {
11362
11385
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
11363
- // Distributed under an MIT license: https://codemirror.net/LICENSE
11386
+ // Distributed under an MIT license: https://codemirror.net/5/LICENSE
11364
11387
 
11365
11388
  (function(mod) {
11366
11389
  mod(codemirror);
@@ -11516,7 +11539,7 @@ var foldcode = createCommonjsModule(function (module, exports) {
11516
11539
 
11517
11540
  createCommonjsModule(function (module, exports) {
11518
11541
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
11519
- // Distributed under an MIT license: https://codemirror.net/LICENSE
11542
+ // Distributed under an MIT license: https://codemirror.net/5/LICENSE
11520
11543
 
11521
11544
  (function(mod) {
11522
11545
  mod(codemirror, foldcode);
@@ -11532,6 +11555,7 @@ createCommonjsModule(function (module, exports) {
11532
11555
  cm.off("fold", onFold);
11533
11556
  cm.off("unfold", onFold);
11534
11557
  cm.off("swapDoc", onChange);
11558
+ cm.off("optionChange", optionChange);
11535
11559
  }
11536
11560
  if (val) {
11537
11561
  cm.state.foldGutter = new State(parseOptions(val));
@@ -11542,6 +11566,7 @@ createCommonjsModule(function (module, exports) {
11542
11566
  cm.on("fold", onFold);
11543
11567
  cm.on("unfold", onFold);
11544
11568
  cm.on("swapDoc", onChange);
11569
+ cm.on("optionChange", optionChange);
11545
11570
  }
11546
11571
  });
11547
11572
 
@@ -11631,6 +11656,10 @@ createCommonjsModule(function (module, exports) {
11631
11656
  else cm.foldCode(Pos(line, 0), opts);
11632
11657
  }
11633
11658
 
11659
+ function optionChange(cm, option) {
11660
+ if (option == "mode") onChange(cm);
11661
+ }
11662
+
11634
11663
  function onChange(cm) {
11635
11664
  var state = cm.state.foldGutter;
11636
11665
  if (!state) return;
@@ -11676,7 +11705,7 @@ createCommonjsModule(function (module, exports) {
11676
11705
 
11677
11706
  createCommonjsModule(function (module, exports) {
11678
11707
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
11679
- // Distributed under an MIT license: https://codemirror.net/LICENSE
11708
+ // Distributed under an MIT license: https://codemirror.net/5/LICENSE
11680
11709
 
11681
11710
  (function(mod) {
11682
11711
  mod(codemirror);
@@ -12588,30 +12617,6 @@ const CodeEditor = class {
12588
12617
  constructor(hostRef) {
12589
12618
  registerInstance(this, hostRef);
12590
12619
  this.change = createEvent(this, "change", 7);
12591
- /**
12592
- * The code to be rendered
12593
- */
12594
- this.value = '';
12595
- /**
12596
- * Disables editing of the editor content
12597
- */
12598
- this.readonly = false;
12599
- /**
12600
- * Displays line numbers in the editor
12601
- */
12602
- this.lineNumbers = false;
12603
- /**
12604
- * Allows the user to fold code
12605
- */
12606
- this.fold = false;
12607
- /**
12608
- * Enables linting of JSON content
12609
- */
12610
- this.lint = false;
12611
- /**
12612
- * Select color scheme for the editor
12613
- */
12614
- this.colorScheme = 'auto';
12615
12620
  this.handleChangeDarkMode = () => {
12616
12621
  if (this.colorScheme !== 'auto') {
12617
12622
  return;
@@ -12627,6 +12632,14 @@ const CodeEditor = class {
12627
12632
  }
12628
12633
  this.editor.refresh();
12629
12634
  };
12635
+ this.value = '';
12636
+ this.language = undefined;
12637
+ this.readonly = false;
12638
+ this.lineNumbers = false;
12639
+ this.fold = false;
12640
+ this.lint = false;
12641
+ this.colorScheme = 'auto';
12642
+ this.random = undefined;
12630
12643
  }
12631
12644
  connectedCallback() {
12632
12645
  this.observer = new ResizeObserver(this.handleResize);
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-11cd0b60.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-cdfd351d.js';
2
2
  import { d as dispatchResizeEvent } from './dispatch-resize-event-cd1d230c.js';
3
3
  import { E as ENTER, a as ENTER_KEY_CODE } from './keycodes-9f971b46.js';
4
4
 
@@ -10,10 +10,6 @@ const CollapsibleSection = class {
10
10
  this.open = createEvent(this, "open", 7);
11
11
  this.close = createEvent(this, "close", 7);
12
12
  this.action = createEvent(this, "action", 7);
13
- /**
14
- * `true` if the section is expanded, `false` if collapsed.
15
- */
16
- this.isOpen = false;
17
13
  this.onClick = () => {
18
14
  this.handleInteraction();
19
15
  };
@@ -49,6 +45,9 @@ const CollapsibleSection = class {
49
45
  event.stopPropagation();
50
46
  this.action.emit(action);
51
47
  };
48
+ this.isOpen = false;
49
+ this.header = undefined;
50
+ this.actions = undefined;
52
51
  }
53
52
  render() {
54
53
  return (h("section", { class: `${this.isOpen ? 'open' : ''}` }, h("header", { class: "section__header", onClick: this.onClick, onKeyDown: this.handleKeyDown, tabindex: "0" }, h("div", { class: "section__header__expand-icon" }, h("div", { class: "expand-icon__line" }), h("div", { class: "expand-icon__line" }), h("div", { class: "expand-icon__line" }), h("div", { class: "expand-icon__line" })), h("h2", { class: "section__header__title mdc-typography mdc-typography--headline2" }, this.header), h("div", { class: "section__header__divider-line" }), this.renderActions()), h("div", { class: "section__body" }, h("slot", null))));
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-11cd0b60.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-cdfd351d.js';
2
2
 
3
3
  const colors = [
4
4
  'red',
@@ -59,6 +59,10 @@ const Palette = class {
59
59
  event.stopPropagation();
60
60
  this.change.emit(value);
61
61
  };
62
+ this.value = undefined;
63
+ this.label = undefined;
64
+ this.helperText = undefined;
65
+ this.required = undefined;
62
66
  }
63
67
  render() {
64
68
  const background = this.value ? { '--background': this.value } : {};