@dnncommunity/dnn-elements 0.14.1 → 0.15.0-beta.11

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 (404) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +24 -24
  3. package/dist/cjs/{debounce-1de79bc7.js → debounce-901e1f0c.js} +18 -18
  4. package/dist/cjs/{debounce-1de79bc7.js.map → debounce-901e1f0c.js.map} +1 -1
  5. package/dist/cjs/{dnn-button_16.cjs.entry.js → dnn-button_17.cjs.entry.js} +2024 -1710
  6. package/dist/cjs/dnn-button_17.cjs.entry.js.map +1 -0
  7. package/dist/cjs/dnn.cjs.js +5 -113
  8. package/dist/cjs/dnn.cjs.js.map +1 -1
  9. package/dist/cjs/{index-7505bd72.js → index-514ef6dd.js} +32 -2
  10. package/dist/cjs/index-514ef6dd.js.map +1 -0
  11. package/dist/cjs/index.cjs.js +41 -41
  12. package/dist/cjs/loader.cjs.js +3 -19
  13. package/dist/cjs/loader.cjs.js.map +1 -1
  14. package/dist/collection/collection-manifest.json +3 -2
  15. package/dist/collection/components/dnn-button/dnn-button.js +275 -271
  16. package/dist/collection/components/dnn-button/dnn-button.js.map +1 -1
  17. package/dist/collection/components/dnn-button/dnn-button.stories.js +72 -0
  18. package/dist/collection/components/dnn-button/dnn-button.stories.js.map +1 -0
  19. package/dist/collection/components/dnn-checkbox/dnn-checkbox.css +6 -0
  20. package/dist/collection/components/dnn-checkbox/dnn-checkbox.js +151 -139
  21. package/dist/collection/components/dnn-checkbox/dnn-checkbox.js.map +1 -1
  22. package/dist/collection/components/dnn-checkbox/dnn-checkbox.stories.js +39 -0
  23. package/dist/collection/components/dnn-checkbox/dnn-checkbox.stories.js.map +1 -0
  24. package/dist/collection/components/dnn-chevron/dnn-chevron.js +106 -106
  25. package/dist/collection/components/dnn-chevron/dnn-chevron.js.map +1 -1
  26. package/dist/collection/components/dnn-chevron/dnn-chevron.stories.js +38 -0
  27. package/dist/collection/components/dnn-chevron/dnn-chevron.stories.js.map +1 -0
  28. package/dist/collection/components/dnn-collapsible/dnn-collapsible.js +145 -142
  29. package/dist/collection/components/dnn-collapsible/dnn-collapsible.js.map +1 -1
  30. package/dist/collection/components/dnn-collapsible/dnn-collapsible.stories.js +39 -0
  31. package/dist/collection/components/dnn-collapsible/dnn-collapsible.stories.js.map +1 -0
  32. package/dist/collection/components/dnn-color-picker/dnn-color-picker.js +433 -433
  33. package/dist/collection/components/dnn-color-picker/dnn-color-picker.stories.js +33 -0
  34. package/dist/collection/components/dnn-color-picker/dnn-color-picker.stories.js.map +1 -0
  35. package/dist/collection/components/dnn-dropzone/dnn-dropzone.js +265 -265
  36. package/dist/collection/components/dnn-dropzone/dnn-dropzone.js.map +1 -1
  37. package/dist/collection/components/dnn-dropzone/dnn-dropzone.stories.js +48 -0
  38. package/dist/collection/components/dnn-dropzone/dnn-dropzone.stories.js.map +1 -0
  39. package/dist/collection/components/dnn-image-cropper/CornerType.js +8 -8
  40. package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.js +522 -522
  41. package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.js.map +1 -1
  42. package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.stories.js +60 -0
  43. package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.stories.js.map +1 -0
  44. package/dist/collection/components/dnn-modal/dnn-modal.js +190 -172
  45. package/dist/collection/components/dnn-modal/dnn-modal.js.map +1 -1
  46. package/dist/collection/components/dnn-modal/dnn-modal.stories.js +47 -0
  47. package/dist/collection/components/dnn-modal/dnn-modal.stories.js.map +1 -0
  48. package/dist/collection/components/dnn-permissions-grid/dnn-permissions-grid.css +83 -0
  49. package/dist/collection/components/dnn-permissions-grid/dnn-permissions-grid.js +531 -0
  50. package/dist/collection/components/dnn-permissions-grid/dnn-permissions-grid.js.map +1 -0
  51. package/dist/collection/components/dnn-permissions-grid/dnn-permissions-grid.stories.js +273 -0
  52. package/dist/collection/components/dnn-permissions-grid/dnn-permissions-grid.stories.js.map +1 -0
  53. package/dist/collection/components/dnn-permissions-grid/localization-interface.js +3 -0
  54. package/dist/collection/components/dnn-permissions-grid/localization-interface.js.map +1 -0
  55. package/dist/collection/components/dnn-permissions-grid/permissions-interface.js +3 -0
  56. package/dist/collection/components/dnn-permissions-grid/permissions-interface.js.map +1 -0
  57. package/dist/collection/components/dnn-permissions-grid/role-group-interface.js +2 -0
  58. package/dist/collection/components/dnn-permissions-grid/role-group-interface.js.map +1 -0
  59. package/dist/collection/components/dnn-permissions-grid/role-interface.js +2 -0
  60. package/dist/collection/components/dnn-permissions-grid/role-interface.js.map +1 -0
  61. package/dist/collection/components/dnn-permissions-grid/searched-user-interface.js +2 -0
  62. package/dist/collection/components/dnn-permissions-grid/searched-user-interface.js.map +1 -0
  63. package/dist/collection/components/dnn-searchbox/dnn-searchbox.js +136 -136
  64. package/dist/collection/components/dnn-searchbox/dnn-searchbox.js.map +1 -1
  65. package/dist/collection/components/dnn-searchbox/dnn-searchbox.stories.js +26 -0
  66. package/dist/collection/components/dnn-searchbox/dnn-searchbox.stories.js.map +1 -0
  67. package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.css +6 -3
  68. package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.js +80 -80
  69. package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.js.map +1 -1
  70. package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.stories.js +58 -0
  71. package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.stories.js.map +1 -0
  72. package/dist/collection/components/dnn-tab/dnn-tab.js +83 -83
  73. package/dist/collection/components/dnn-tab/dnn-tab.stories.js +25 -0
  74. package/dist/collection/components/dnn-tab/dnn-tab.stories.js.map +1 -0
  75. package/dist/collection/components/dnn-tabs/dnn-tabs.js +54 -54
  76. package/dist/collection/components/dnn-tabs/dnn-tabs.stories.js +48 -0
  77. package/dist/collection/components/dnn-tabs/dnn-tabs.stories.js.map +1 -0
  78. package/dist/collection/components/dnn-toggle/dnn-toggle.css +1 -1
  79. package/dist/collection/components/dnn-toggle/dnn-toggle.js +93 -93
  80. package/dist/collection/components/dnn-toggle/dnn-toggle.js.map +1 -1
  81. package/dist/collection/components/dnn-toggle/dnn-toggle.stories.js +53 -0
  82. package/dist/collection/components/dnn-toggle/dnn-toggle.stories.js.map +1 -0
  83. package/dist/collection/components/dnn-toggle/toggle-interface.js +1 -1
  84. package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.js +130 -126
  85. package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.js.map +1 -1
  86. package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.stories.js +36 -0
  87. package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.stories.js.map +1 -0
  88. package/dist/collection/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.css +6 -7
  89. package/dist/collection/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.js +133 -131
  90. package/dist/collection/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.js.map +1 -1
  91. package/dist/collection/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.stories.js +60 -0
  92. package/dist/collection/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.stories.js.map +1 -0
  93. package/dist/collection/components/dnn-vertical-splitview/dnn-vertical-splitview.css +4 -2
  94. package/dist/collection/components/dnn-vertical-splitview/dnn-vertical-splitview.js +233 -233
  95. package/dist/collection/components/dnn-vertical-splitview/dnn-vertical-splitview.js.map +1 -1
  96. package/dist/collection/components/dnn-vertical-splitview/dnn-vertical-splitview.stories.js +75 -0
  97. package/dist/collection/components/dnn-vertical-splitview/dnn-vertical-splitview.stories.js.map +1 -0
  98. package/dist/collection/index.js +2 -2
  99. package/dist/collection/index.js.map +1 -1
  100. package/dist/collection/utilities/colorInfo.js +190 -190
  101. package/dist/collection/utilities/debounce.js +18 -18
  102. package/dist/collection/utilities/dnnServicesFramework.js +41 -41
  103. package/dist/collection/utilities/mouseUtilities.js +19 -19
  104. package/dist/dnn/dnn.esm.js +1 -126
  105. package/dist/dnn/dnn.esm.js.map +1 -1
  106. package/dist/dnn/dnn.js +1 -1
  107. package/dist/dnn/index.esm.js +1 -46
  108. package/dist/dnn/index.esm.js.map +1 -1
  109. package/dist/dnn/{p-646cfb1b.system.js → p-1e26a4e1.system.js} +1 -1
  110. package/dist/dnn/{debounce-eef81bf7.system.js.map → p-1e26a4e1.system.js.map} +0 -0
  111. package/dist/dnn/p-31dc68a7.system.entry.js +11 -0
  112. package/dist/dnn/p-31dc68a7.system.entry.js.map +1 -0
  113. package/dist/dnn/p-5bcf3629.system.js +2 -0
  114. package/dist/dnn/p-5bcf3629.system.js.map +1 -0
  115. package/dist/dnn/{p-fb637662.system.js → p-78561bb1.system.js} +2 -2
  116. package/dist/dnn/{p-fb637662.system.js.map → p-78561bb1.system.js.map} +0 -0
  117. package/dist/dnn/p-7ffdbed1.js +2 -0
  118. package/dist/dnn/p-7ffdbed1.js.map +1 -0
  119. package/dist/dnn/{p-0e94f5ee.js → p-9b8731a9.js} +1 -1
  120. package/dist/dnn/{p-0e94f5ee.js.map → p-9b8731a9.js.map} +0 -0
  121. package/dist/dnn/p-b8064287.system.js +2 -0
  122. package/dist/dnn/p-b8064287.system.js.map +1 -0
  123. package/dist/dnn/p-c222c8b7.entry.js +11 -0
  124. package/dist/dnn/p-c222c8b7.entry.js.map +1 -0
  125. package/dist/esm/{debounce-06f55268.js → debounce-6be67abd.js} +18 -18
  126. package/dist/{dnn/debounce-06f55268.js.map → esm/debounce-6be67abd.js.map} +1 -1
  127. package/dist/esm/{dnn-button_16.entry.js → dnn-button_17.entry.js} +2024 -1711
  128. package/dist/esm/dnn-button_17.entry.js.map +1 -0
  129. package/dist/esm/dnn.js +5 -113
  130. package/dist/esm/dnn.js.map +1 -1
  131. package/dist/esm/{index-cdbad319.js → index-59e0950f.js} +32 -2
  132. package/dist/esm/index-59e0950f.js.map +1 -0
  133. package/dist/esm/index.js +41 -41
  134. package/dist/esm/loader.js +3 -19
  135. package/dist/esm/loader.js.map +1 -1
  136. package/dist/esm/polyfills/core-js.js +0 -0
  137. package/dist/esm/polyfills/css-shim.js +1 -1
  138. package/dist/esm/polyfills/dom.js +0 -0
  139. package/dist/esm/polyfills/es5-html-element.js +0 -0
  140. package/dist/esm/polyfills/index.js +0 -0
  141. package/dist/esm/polyfills/system.js +0 -0
  142. package/dist/esm-es5/{debounce-06f55268.js → debounce-6be67abd.js} +1 -1
  143. package/dist/esm-es5/{debounce-06f55268.js.map → debounce-6be67abd.js.map} +0 -0
  144. package/dist/esm-es5/dnn-button_17.entry.js +11 -0
  145. package/dist/esm-es5/dnn-button_17.entry.js.map +1 -0
  146. package/dist/esm-es5/dnn.js +1 -1
  147. package/dist/esm-es5/dnn.js.map +1 -1
  148. package/dist/esm-es5/index-59e0950f.js +2 -0
  149. package/dist/esm-es5/index-59e0950f.js.map +1 -0
  150. package/dist/esm-es5/index.js +1 -1
  151. package/dist/esm-es5/loader.js +1 -1
  152. package/dist/esm-es5/loader.js.map +1 -1
  153. package/dist/index.js +1 -1
  154. package/dist/types/components/dnn-button/dnn-button.d.ts +56 -55
  155. package/dist/types/components/dnn-button/dnn-button.stories.d.ts +4 -0
  156. package/dist/types/components/dnn-checkbox/dnn-checkbox.d.ts +20 -16
  157. package/dist/types/components/dnn-checkbox/dnn-checkbox.stories.d.ts +4 -0
  158. package/dist/types/components/dnn-chevron/dnn-chevron.d.ts +13 -13
  159. package/dist/types/components/dnn-chevron/dnn-chevron.stories.d.ts +4 -0
  160. package/dist/types/components/dnn-collapsible/dnn-collapsible.d.ts +19 -18
  161. package/dist/types/components/dnn-collapsible/dnn-collapsible.stories.d.ts +4 -0
  162. package/dist/types/components/dnn-color-picker/dnn-color-picker.d.ts +46 -46
  163. package/dist/types/components/dnn-color-picker/dnn-color-picker.stories.d.ts +4 -0
  164. package/dist/types/components/dnn-dropzone/dnn-dropzone.d.ts +45 -45
  165. package/dist/types/components/dnn-dropzone/dnn-dropzone.stories.d.ts +4 -0
  166. package/dist/types/components/dnn-image-cropper/CornerType.d.ts +6 -6
  167. package/dist/types/components/dnn-image-cropper/dnn-image-cropper.d.ts +61 -61
  168. package/dist/types/components/dnn-image-cropper/dnn-image-cropper.stories.d.ts +4 -0
  169. package/dist/types/components/dnn-modal/dnn-modal.d.ts +38 -35
  170. package/dist/types/components/dnn-modal/dnn-modal.stories.d.ts +4 -0
  171. package/dist/types/components/dnn-permissions-grid/dnn-permissions-grid.d.ts +47 -0
  172. package/dist/types/components/dnn-permissions-grid/dnn-permissions-grid.stories.d.ts +4 -0
  173. package/dist/types/components/dnn-permissions-grid/localization-interface.d.ts +11 -0
  174. package/dist/types/components/dnn-permissions-grid/permissions-interface.d.ts +26 -0
  175. package/dist/types/components/dnn-permissions-grid/role-group-interface.d.ts +6 -0
  176. package/dist/types/components/dnn-permissions-grid/role-interface.d.ts +6 -0
  177. package/dist/types/components/dnn-permissions-grid/searched-user-interface.d.ts +4 -0
  178. package/dist/types/components/dnn-searchbox/dnn-searchbox.d.ts +22 -22
  179. package/dist/types/components/dnn-searchbox/dnn-searchbox.stories.d.ts +4 -0
  180. package/dist/types/components/dnn-sort-icon/dnn-sort-icon.d.ts +9 -9
  181. package/dist/types/components/dnn-sort-icon/dnn-sort-icon.stories.d.ts +4 -0
  182. package/dist/types/components/dnn-tab/dnn-tab.d.ts +11 -11
  183. package/dist/types/components/dnn-tab/dnn-tab.stories.d.ts +4 -0
  184. package/dist/types/components/dnn-tabs/dnn-tabs.d.ts +11 -11
  185. package/dist/types/components/dnn-tabs/dnn-tabs.stories.d.ts +4 -0
  186. package/dist/types/components/dnn-toggle/dnn-toggle.d.ts +13 -13
  187. package/dist/types/components/dnn-toggle/dnn-toggle.stories.d.ts +4 -0
  188. package/dist/types/components/dnn-toggle/toggle-interface.d.ts +3 -3
  189. package/dist/types/components/dnn-treeview-item/dnn-treeview-item.d.ts +28 -24
  190. package/dist/types/components/dnn-treeview-item/dnn-treeview-item.stories.d.ts +4 -0
  191. package/dist/types/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.d.ts +16 -16
  192. package/dist/types/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.stories.d.ts +4 -0
  193. package/dist/types/components/dnn-vertical-splitview/dnn-vertical-splitview.d.ts +28 -28
  194. package/dist/types/components/dnn-vertical-splitview/dnn-vertical-splitview.stories.d.ts +4 -0
  195. package/dist/types/components.d.ts +108 -34
  196. package/dist/types/global.d.ts +1 -0
  197. package/dist/types/index.d.ts +3 -3
  198. package/dist/types/utilities/colorInfo.d.ts +52 -52
  199. package/dist/types/utilities/debounce.d.ts +5 -5
  200. package/dist/types/utilities/dnnServicesFramework.d.ts +19 -19
  201. package/dist/types/utilities/mouseUtilities.d.ts +4 -4
  202. package/package.json +63 -48
  203. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  204. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  205. package/dist/cjs/css-shim-3bfdba4f.js +0 -8
  206. package/dist/cjs/css-shim-3bfdba4f.js.map +0 -1
  207. package/dist/cjs/dnn-button.cjs.entry.js +0 -88
  208. package/dist/cjs/dnn-button.cjs.entry.js.map +0 -1
  209. package/dist/cjs/dnn-button_16.cjs.entry.js.map +0 -1
  210. package/dist/cjs/dnn-checkbox.cjs.entry.js +0 -58
  211. package/dist/cjs/dnn-checkbox.cjs.entry.js.map +0 -1
  212. package/dist/cjs/dnn-chevron.cjs.entry.js +0 -34
  213. package/dist/cjs/dnn-chevron.cjs.entry.js.map +0 -1
  214. package/dist/cjs/dnn-collapsible.cjs.entry.js +0 -66
  215. package/dist/cjs/dnn-collapsible.cjs.entry.js.map +0 -1
  216. package/dist/cjs/dnn-color-picker.cjs.entry.js +0 -508
  217. package/dist/cjs/dnn-color-picker.cjs.entry.js.map +0 -1
  218. package/dist/cjs/dnn-dropzone.cjs.entry.js +0 -153
  219. package/dist/cjs/dnn-dropzone.cjs.entry.js.map +0 -1
  220. package/dist/cjs/dnn-image-cropper.cjs.entry.js +0 -408
  221. package/dist/cjs/dnn-image-cropper.cjs.entry.js.map +0 -1
  222. package/dist/cjs/dnn-modal.cjs.entry.js +0 -62
  223. package/dist/cjs/dnn-modal.cjs.entry.js.map +0 -1
  224. package/dist/cjs/dnn-searchbox.cjs.entry.js +0 -66
  225. package/dist/cjs/dnn-searchbox.cjs.entry.js.map +0 -1
  226. package/dist/cjs/dnn-sort-icon.cjs.entry.js +0 -43
  227. package/dist/cjs/dnn-sort-icon.cjs.entry.js.map +0 -1
  228. package/dist/cjs/dnn-tab.cjs.entry.js +0 -31
  229. package/dist/cjs/dnn-tab.cjs.entry.js.map +0 -1
  230. package/dist/cjs/dnn-tabs.cjs.entry.js +0 -52
  231. package/dist/cjs/dnn-tabs.cjs.entry.js.map +0 -1
  232. package/dist/cjs/dnn-toggle.cjs.entry.js +0 -37
  233. package/dist/cjs/dnn-toggle.cjs.entry.js.map +0 -1
  234. package/dist/cjs/dnn-treeview-item.cjs.entry.js +0 -68
  235. package/dist/cjs/dnn-treeview-item.cjs.entry.js.map +0 -1
  236. package/dist/cjs/dnn-vertical-overflow-menu.cjs.entry.js +0 -122
  237. package/dist/cjs/dnn-vertical-overflow-menu.cjs.entry.js.map +0 -1
  238. package/dist/cjs/dnn-vertical-splitview.cjs.entry.js +0 -133
  239. package/dist/cjs/dnn-vertical-splitview.cjs.entry.js.map +0 -1
  240. package/dist/cjs/dom-8ac1ad03.js +0 -77
  241. package/dist/cjs/dom-8ac1ad03.js.map +0 -1
  242. package/dist/cjs/index-7505bd72.js.map +0 -1
  243. package/dist/cjs/index-aff4d89a.js +0 -3069
  244. package/dist/cjs/index-aff4d89a.js.map +0 -1
  245. package/dist/cjs/mouseUtilities-75be531a.js +0 -25
  246. package/dist/cjs/mouseUtilities-75be531a.js.map +0 -1
  247. package/dist/cjs/shadow-css-41d9783d.js +0 -392
  248. package/dist/cjs/shadow-css-41d9783d.js.map +0 -1
  249. package/dist/dnn/app-globals-0f993ce5.js +0 -5
  250. package/dist/dnn/app-globals-0f993ce5.js.map +0 -1
  251. package/dist/dnn/app-globals-497eb362.system.js +0 -2
  252. package/dist/dnn/app-globals-497eb362.system.js.map +0 -1
  253. package/dist/dnn/css-shim-20dbffa5.js +0 -6
  254. package/dist/dnn/css-shim-20dbffa5.js.map +0 -1
  255. package/dist/dnn/css-shim-856c55de.system.js +0 -2
  256. package/dist/dnn/css-shim-856c55de.system.js.map +0 -1
  257. package/dist/dnn/debounce-06f55268.js +0 -22
  258. package/dist/dnn/debounce-eef81bf7.system.js +0 -2
  259. package/dist/dnn/dnn-button.entry.js +0 -84
  260. package/dist/dnn/dnn-button.entry.js.map +0 -1
  261. package/dist/dnn/dnn-button.system.entry.js +0 -2
  262. package/dist/dnn/dnn-button.system.entry.js.map +0 -1
  263. package/dist/dnn/dnn-checkbox.entry.js +0 -54
  264. package/dist/dnn/dnn-checkbox.entry.js.map +0 -1
  265. package/dist/dnn/dnn-checkbox.system.entry.js +0 -2
  266. package/dist/dnn/dnn-checkbox.system.entry.js.map +0 -1
  267. package/dist/dnn/dnn-chevron.entry.js +0 -30
  268. package/dist/dnn/dnn-chevron.entry.js.map +0 -1
  269. package/dist/dnn/dnn-chevron.system.entry.js +0 -2
  270. package/dist/dnn/dnn-chevron.system.entry.js.map +0 -1
  271. package/dist/dnn/dnn-collapsible.entry.js +0 -62
  272. package/dist/dnn/dnn-collapsible.entry.js.map +0 -1
  273. package/dist/dnn/dnn-collapsible.system.entry.js +0 -2
  274. package/dist/dnn/dnn-collapsible.system.entry.js.map +0 -1
  275. package/dist/dnn/dnn-color-picker.entry.js +0 -504
  276. package/dist/dnn/dnn-color-picker.entry.js.map +0 -1
  277. package/dist/dnn/dnn-color-picker.system.entry.js +0 -12
  278. package/dist/dnn/dnn-color-picker.system.entry.js.map +0 -1
  279. package/dist/dnn/dnn-dropzone.entry.js +0 -149
  280. package/dist/dnn/dnn-dropzone.entry.js.map +0 -1
  281. package/dist/dnn/dnn-dropzone.system.entry.js +0 -2
  282. package/dist/dnn/dnn-dropzone.system.entry.js.map +0 -1
  283. package/dist/dnn/dnn-image-cropper.entry.js +0 -404
  284. package/dist/dnn/dnn-image-cropper.entry.js.map +0 -1
  285. package/dist/dnn/dnn-image-cropper.system.entry.js +0 -2
  286. package/dist/dnn/dnn-image-cropper.system.entry.js.map +0 -1
  287. package/dist/dnn/dnn-modal.entry.js +0 -58
  288. package/dist/dnn/dnn-modal.entry.js.map +0 -1
  289. package/dist/dnn/dnn-modal.system.entry.js +0 -2
  290. package/dist/dnn/dnn-modal.system.entry.js.map +0 -1
  291. package/dist/dnn/dnn-searchbox.entry.js +0 -62
  292. package/dist/dnn/dnn-searchbox.entry.js.map +0 -1
  293. package/dist/dnn/dnn-searchbox.system.entry.js +0 -2
  294. package/dist/dnn/dnn-searchbox.system.entry.js.map +0 -1
  295. package/dist/dnn/dnn-sort-icon.entry.js +0 -39
  296. package/dist/dnn/dnn-sort-icon.entry.js.map +0 -1
  297. package/dist/dnn/dnn-sort-icon.system.entry.js +0 -2
  298. package/dist/dnn/dnn-sort-icon.system.entry.js.map +0 -1
  299. package/dist/dnn/dnn-tab.entry.js +0 -27
  300. package/dist/dnn/dnn-tab.entry.js.map +0 -1
  301. package/dist/dnn/dnn-tab.system.entry.js +0 -2
  302. package/dist/dnn/dnn-tab.system.entry.js.map +0 -1
  303. package/dist/dnn/dnn-tabs.entry.js +0 -48
  304. package/dist/dnn/dnn-tabs.entry.js.map +0 -1
  305. package/dist/dnn/dnn-tabs.system.entry.js +0 -2
  306. package/dist/dnn/dnn-tabs.system.entry.js.map +0 -1
  307. package/dist/dnn/dnn-toggle.entry.js +0 -33
  308. package/dist/dnn/dnn-toggle.entry.js.map +0 -1
  309. package/dist/dnn/dnn-toggle.system.entry.js +0 -2
  310. package/dist/dnn/dnn-toggle.system.entry.js.map +0 -1
  311. package/dist/dnn/dnn-treeview-item.entry.js +0 -64
  312. package/dist/dnn/dnn-treeview-item.entry.js.map +0 -1
  313. package/dist/dnn/dnn-treeview-item.system.entry.js +0 -2
  314. package/dist/dnn/dnn-treeview-item.system.entry.js.map +0 -1
  315. package/dist/dnn/dnn-vertical-overflow-menu.entry.js +0 -118
  316. package/dist/dnn/dnn-vertical-overflow-menu.entry.js.map +0 -1
  317. package/dist/dnn/dnn-vertical-overflow-menu.system.entry.js +0 -2
  318. package/dist/dnn/dnn-vertical-overflow-menu.system.entry.js.map +0 -1
  319. package/dist/dnn/dnn-vertical-splitview.entry.js +0 -129
  320. package/dist/dnn/dnn-vertical-splitview.entry.js.map +0 -1
  321. package/dist/dnn/dnn-vertical-splitview.system.entry.js +0 -2
  322. package/dist/dnn/dnn-vertical-splitview.system.entry.js.map +0 -1
  323. package/dist/dnn/dnn.system.js +0 -2
  324. package/dist/dnn/dnn.system.js.map +0 -1
  325. package/dist/dnn/dom-938307ec.system.js +0 -22
  326. package/dist/dnn/dom-938307ec.system.js.map +0 -1
  327. package/dist/dnn/dom-c5ed0ba5.js +0 -75
  328. package/dist/dnn/dom-c5ed0ba5.js.map +0 -1
  329. package/dist/dnn/index-a3a55419.system.js +0 -2
  330. package/dist/dnn/index-a3a55419.system.js.map +0 -1
  331. package/dist/dnn/index-b5a28c1d.js +0 -3033
  332. package/dist/dnn/index-b5a28c1d.js.map +0 -1
  333. package/dist/dnn/index.system.js +0 -2
  334. package/dist/dnn/index.system.js.map +0 -1
  335. package/dist/dnn/mouseUtilities-817973b4.js +0 -23
  336. package/dist/dnn/mouseUtilities-817973b4.js.map +0 -1
  337. package/dist/dnn/mouseUtilities-e7e4e78f.system.js +0 -2
  338. package/dist/dnn/mouseUtilities-e7e4e78f.system.js.map +0 -1
  339. package/dist/dnn/p-058ba146.system.js +0 -2
  340. package/dist/dnn/p-058ba146.system.js.map +0 -1
  341. package/dist/dnn/p-45ce2139.js +0 -2
  342. package/dist/dnn/p-45ce2139.js.map +0 -1
  343. package/dist/dnn/p-646cfb1b.system.js.map +0 -1
  344. package/dist/dnn/p-755d047d.system.entry.js +0 -11
  345. package/dist/dnn/p-755d047d.system.entry.js.map +0 -1
  346. package/dist/dnn/p-8ec1f3a8.entry.js +0 -11
  347. package/dist/dnn/p-8ec1f3a8.entry.js.map +0 -1
  348. package/dist/dnn/p-f91193e2.system.js +0 -2
  349. package/dist/dnn/p-f91193e2.system.js.map +0 -1
  350. package/dist/dnn/shadow-css-8c625855.js +0 -390
  351. package/dist/dnn/shadow-css-8c625855.js.map +0 -1
  352. package/dist/dnn/shadow-css-d573707f.system.js +0 -14
  353. package/dist/dnn/shadow-css-d573707f.system.js.map +0 -1
  354. package/dist/esm/app-globals-0f993ce5.js +0 -5
  355. package/dist/esm/app-globals-0f993ce5.js.map +0 -1
  356. package/dist/esm/css-shim-20dbffa5.js +0 -6
  357. package/dist/esm/css-shim-20dbffa5.js.map +0 -1
  358. package/dist/esm/debounce-06f55268.js.map +0 -1
  359. package/dist/esm/dnn-button.entry.js +0 -84
  360. package/dist/esm/dnn-button.entry.js.map +0 -1
  361. package/dist/esm/dnn-button_16.entry.js.map +0 -1
  362. package/dist/esm/dnn-checkbox.entry.js +0 -54
  363. package/dist/esm/dnn-checkbox.entry.js.map +0 -1
  364. package/dist/esm/dnn-chevron.entry.js +0 -30
  365. package/dist/esm/dnn-chevron.entry.js.map +0 -1
  366. package/dist/esm/dnn-collapsible.entry.js +0 -62
  367. package/dist/esm/dnn-collapsible.entry.js.map +0 -1
  368. package/dist/esm/dnn-color-picker.entry.js +0 -504
  369. package/dist/esm/dnn-color-picker.entry.js.map +0 -1
  370. package/dist/esm/dnn-dropzone.entry.js +0 -149
  371. package/dist/esm/dnn-dropzone.entry.js.map +0 -1
  372. package/dist/esm/dnn-image-cropper.entry.js +0 -404
  373. package/dist/esm/dnn-image-cropper.entry.js.map +0 -1
  374. package/dist/esm/dnn-modal.entry.js +0 -58
  375. package/dist/esm/dnn-modal.entry.js.map +0 -1
  376. package/dist/esm/dnn-searchbox.entry.js +0 -62
  377. package/dist/esm/dnn-searchbox.entry.js.map +0 -1
  378. package/dist/esm/dnn-sort-icon.entry.js +0 -39
  379. package/dist/esm/dnn-sort-icon.entry.js.map +0 -1
  380. package/dist/esm/dnn-tab.entry.js +0 -27
  381. package/dist/esm/dnn-tab.entry.js.map +0 -1
  382. package/dist/esm/dnn-tabs.entry.js +0 -48
  383. package/dist/esm/dnn-tabs.entry.js.map +0 -1
  384. package/dist/esm/dnn-toggle.entry.js +0 -33
  385. package/dist/esm/dnn-toggle.entry.js.map +0 -1
  386. package/dist/esm/dnn-treeview-item.entry.js +0 -64
  387. package/dist/esm/dnn-treeview-item.entry.js.map +0 -1
  388. package/dist/esm/dnn-vertical-overflow-menu.entry.js +0 -118
  389. package/dist/esm/dnn-vertical-overflow-menu.entry.js.map +0 -1
  390. package/dist/esm/dnn-vertical-splitview.entry.js +0 -129
  391. package/dist/esm/dnn-vertical-splitview.entry.js.map +0 -1
  392. package/dist/esm/dom-c5ed0ba5.js +0 -75
  393. package/dist/esm/dom-c5ed0ba5.js.map +0 -1
  394. package/dist/esm/index-b5a28c1d.js +0 -3033
  395. package/dist/esm/index-b5a28c1d.js.map +0 -1
  396. package/dist/esm/index-cdbad319.js.map +0 -1
  397. package/dist/esm/mouseUtilities-817973b4.js +0 -23
  398. package/dist/esm/mouseUtilities-817973b4.js.map +0 -1
  399. package/dist/esm/shadow-css-8c625855.js +0 -390
  400. package/dist/esm/shadow-css-8c625855.js.map +0 -1
  401. package/dist/esm-es5/dnn-button_16.entry.js +0 -11
  402. package/dist/esm-es5/dnn-button_16.entry.js.map +0 -1
  403. package/dist/esm-es5/index-cdbad319.js +0 -2
  404. package/dist/esm-es5/index-cdbad319.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["src/components/dnn-treeview-item/dnn-treeview-item.scss?tag=dnn-treeview-item&encapsulation=shadow","src/components/dnn-treeview-item/dnn-treeview-item.tsx"],"names":["dnnTreeviewItemCss","DnnTreeviewItem","exports","class_1","hostRef","this","expanded","hasChildren","prototype","watchExpanded","expander","classList","add","collapsible","remove","componentDidLoad","_this","requestAnimationFrame","child","childElement","children","count","assignedElements","length","setTimeout","toggleCollapse","userExpanded","emit","userCollapsed","render","h","Host","class","ref","el","onClick","xmlns","height","viewBox","width","fill","d","name"],"mappings":"sKAAA,IAAMA,EAAqB,46BCOdC,EAAeC,EAAA,oBAAA,WAL5B,SAAAC,EAAAC,qGAYwCC,KAAAC,SAAoB,MASjDD,KAAAE,YAAuB,MAIhCJ,EAAAK,UAAAC,cAAA,SAAcH,GACZ,GAAIA,EAAU,CACZD,KAAKK,SAASC,UAAUC,IAAI,YAC5BP,KAAKQ,YAAYP,SAAW,KAC5B,OAGFD,KAAKK,SAASC,UAAUG,OAAO,YAC/BT,KAAKQ,YAAYP,SAAW,OAO9BH,EAAAK,UAAAO,iBAAA,WAAA,IAAAC,EAAAX,KACEY,uBAAsB,WACpB,IAAMC,EAAQF,EAAKG,aAAaC,SAAS,GACzC,IAAMC,EAAQH,EAAMI,mBAAmBC,OACvC,GAAIF,EAAQ,EAAE,CACZL,EAAKT,YAAc,KAErB,GAAIS,EAAKV,SAAS,CAChBU,EAAKN,SAASC,UAAUC,IAAI,YAC5BI,EAAKH,YAAYP,SAAW,MAC5BkB,YAAW,WACTR,EAAKH,YAAYP,SAAW,OAC3B,UAKDH,EAAAK,UAAAiB,eAAA,WACNpB,KAAKC,UAAYD,KAAKC,SACtB,GAAID,KAAKC,SAAS,CAChBD,KAAKK,SAASC,UAAUC,IAAI,YAC5BP,KAAKqB,aAAaC,OAClB,OAGFtB,KAAKK,SAASC,UAAUG,OAAO,YAC/BT,KAAKuB,cAAcD,QAGrBxB,EAAAK,UAAAqB,OAAA,WAAA,IAAAb,EAAAX,KACE,OACEyB,EAACC,EAAI,KACHD,EAAA,MAAA,CAAKE,MAAM,WAAWC,IAAK,SAAAC,GAAM,OAAAlB,EAAKN,SAAWwB,IAC9C7B,KAAKE,aACJuB,EAAA,SAAA,CACEK,QAAS,WAAM,OAAAnB,EAAKS,mBAEpBK,EAAA,MAAA,CAAKM,MAAM,6BAA6BC,OAAO,OAAOC,QAAQ,YAAYC,MAAM,OAAOC,KAAK,WAAUV,EAAA,OAAA,CAAMW,EAAE,uBAAsBX,EAAA,OAAA,CAAMW,EAAE,mBAAmBD,KAAK,YAI1KV,EAAA,MAAA,CAAKE,MAAM,QACTF,EAAA,MAAA,CAAKE,MAAM,aACTF,EAAA,OAAA,OAEFA,EAAA,kBAAA,CAAiBG,IAAK,SAAAC,GAAM,OAAAlB,EAAKH,YAAcqB,GAAI5B,SAAUD,KAAKC,UAChEwB,EAAA,MAAA,CAAKG,IAAK,SAAAC,GAAM,OAAAlB,EAAKG,aAAee,IAClCJ,EAAA,OAAA,CAAMY,KAAK,mQAlFG","sourcesContent":[":host {\r\n display: flex;\r\n overflow: visible;\r\n}\r\n.expander{\r\n width: 24px;\r\n height: 24px;\r\n button{\r\n transition: all 150ms ease-in-out;\r\n background-color:transparent;\r\n border: none;\r\n padding: 0;\r\n margin: 0;\r\n height: 1em;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n cursor: pointer;\r\n position: relative;\r\n top: 2px;\r\n svg{\r\n :first-child{\r\n transition: all 150ms ease-in-out;\r\n fill: white;\r\n stroke: black\r\n }\r\n }\r\n }\r\n &.expanded{\r\n button{\r\n transform: rotate(45deg);\r\n svg{\r\n :first-child{\r\n fill: black;\r\n stroke: black;\r\n }\r\n }\r\n }\r\n }\r\n}\r\ndiv.item{\r\n .item-slot{\r\n display: flex;\r\n align-items: center;\r\n gap: 0.25em;\r\n min-height: 24px;\r\n }\r\n div.children{\r\n overflow: hidden;\r\n height:0;\r\n transition: all 150ms ease-in-out;\r\n }\r\n}","import { Component, Host, h, Prop, State, Element, Event, EventEmitter, Watch } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'dnn-treeview-item',\r\n styleUrl: 'dnn-treeview-item.scss',\r\n shadow: true,\r\n})\r\nexport class DnnTreeviewItem {\r\n \r\n private expander!: HTMLDivElement;\r\n\r\n @Element() el!: HTMLDnnTreeviewItemElement;\r\n \r\n /** Defines if the current node is expanded. */\r\n @Prop({mutable: true, reflect: true}) expanded: boolean = false;\r\n\r\n /** Fires when the user expands a node. */\r\n @Event({bubbles: false}) userExpanded: EventEmitter<void>;\r\n\r\n /** Fires when the user collapses a node. */\r\n @Event({bubbles: false}) userCollapsed: EventEmitter<void>;\r\n\r\n /** Manages state for whether or not item has children. */\r\n @State() hasChildren: boolean = false;\r\n\r\n /** Watch expanded Prop */\r\n @Watch('expanded')\r\n watchExpanded(expanded: boolean) {\r\n if (expanded) {\r\n this.expander.classList.add(\"expanded\");\r\n this.collapsible.expanded = true;\r\n return;\r\n }\r\n \r\n this.expander.classList.remove(\"expanded\");\r\n this.collapsible.expanded = false;\r\n }\r\n \r\n \r\n private childElement!: HTMLDivElement;\r\n private collapsible!: HTMLDnnCollapsibleElement;\r\n\r\n componentDidLoad() {\r\n requestAnimationFrame(() => {\r\n const child = this.childElement.children[0] as HTMLSlotElement;\r\n const count = child.assignedElements().length\r\n if (count > 0){\r\n this.hasChildren = true;\r\n }\r\n if (this.expanded){\r\n this.expander.classList.add(\"expanded\");\r\n this.collapsible.expanded = false;\r\n setTimeout(() => {\r\n this.collapsible.expanded = true;\r\n }, 300);\r\n }\r\n });\r\n }\r\n\r\n private toggleCollapse(): void {\r\n this.expanded = !this.expanded;\r\n if (this.expanded){\r\n this.expander.classList.add(\"expanded\");\r\n this.userExpanded.emit();\r\n return;\r\n }\r\n\r\n this.expander.classList.remove(\"expanded\");\r\n this.userCollapsed.emit();\r\n }\r\n\r\n render() {\r\n return (\r\n <Host>\r\n <div class=\"expander\" ref={el => this.expander = el}>\r\n {this.hasChildren &&\r\n <button\r\n onClick={() => this.toggleCollapse()}\r\n >\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\" fill=\"#000000\"><path d=\"M10 17l5-5-5-5v10z\"/><path d=\"M0 24V0h24v24H0z\" fill=\"none\"/></svg>\r\n </button>\r\n }\r\n </div>\r\n <div class=\"item\">\r\n <div class=\"item-slot\">\r\n <slot></slot>\r\n </div>\r\n <dnn-collapsible ref={el => this.collapsible = el} expanded={this.expanded}>\r\n <div ref={el => this.childElement = el}>\r\n <slot name=\"children\"></slot>\r\n </div>\r\n </dnn-collapsible>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n\r\nexport interface ExpandedToggledEvent{\r\n state: \"expanded\" | \"collapsed\";\r\n height: number;\r\n}"]}
@@ -1,118 +0,0 @@
1
- import { r as registerInstance, h, f as Host, g as getElement } from './index-b5a28c1d.js';
2
-
3
- const dnnVerticalOverflowMenuCss = ":host{display:block;--background-color:var(--dnn-color-primary-contrast, white);--foreground-color:var(--dnn-color-primary, blue);--text-color:#222}.menu-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;background-color:var(--background-color);color:var(--text-color)}.menu-container .menu{margin:0.5em;display:-ms-flexbox;display:flex;gap:1em;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;white-space:nowrap;width:100%}.menu-container .overflow{margin-left:auto;position:relative}.menu-container .overflow button{cursor:pointer;padding:0;margin:0;background-color:transparent;border:none}.menu-container .overflow button svg{fill:var(--foreground-color)}.menu-container .overflow .dropdown{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;white-space:nowrap;right:0;-webkit-transition:100ms ease-in-out;transition:100ms ease-in-out;height:0;overflow:hidden}.menu-container .overflow .dropdown.visible{padding:1em;gap:0.5em;background-color:var(--background-color);-webkit-box-shadow:2px 2px 4px rgba(0, 0, 0, 0.7);box-shadow:2px 2px 4px rgba(0, 0, 0, 0.7)}";
4
-
5
- let DnnVerticalOverflowMenu = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.showDropdownButton = false;
9
- this.showDropdownMenu = false;
10
- this.previousMenuWidth = 0;
11
- }
12
- componentDidRender() {
13
- requestAnimationFrame(() => {
14
- this.moveItemsToDropDownIfNecessery();
15
- this.resizeObserver = new ResizeObserver(entries => {
16
- for (let entry of entries) {
17
- if (entry.contentRect.width < this.previousMenuWidth) {
18
- this.moveItemsToDropDownIfNecessery();
19
- }
20
- if (this.previousMenuWidth > 0 && entry.contentRect.width > this.previousMenuWidth) {
21
- this.moveItemsToMenuIfPossible();
22
- }
23
- this.previousMenuWidth = entry.contentRect.width;
24
- }
25
- });
26
- this.resizeObserver.observe(this.element);
27
- });
28
- }
29
- moveItemsToDropDownIfNecessery() {
30
- const menuItems = Array.from(this.menu.querySelector("slot").assignedElements());
31
- const availableWidth = this.menu.getBoundingClientRect().width;
32
- let neededWidth = parseFloat(getComputedStyle(this.element).fontSize) * 2;
33
- menuItems.forEach(item => neededWidth += this.getFullWidth(item));
34
- neededWidth += (menuItems.length - 1) * parseFloat(getComputedStyle(this.element).fontSize);
35
- if (neededWidth > availableWidth) {
36
- this.showDropdownButton = true;
37
- var lastItem = menuItems[menuItems.length - 1];
38
- if (this.dropdown == undefined) {
39
- return;
40
- }
41
- lastItem.slot = "dropdown";
42
- this.moveItemsToDropDownIfNecessery();
43
- }
44
- }
45
- moveItemsToMenuIfPossible() {
46
- if (this.dropdown == undefined || !this.dropdown.hasChildNodes()) {
47
- return;
48
- }
49
- const menuItems = Array.from(this.menu.querySelector("slot").assignedElements());
50
- const availableWidth = this.menu.getBoundingClientRect().width;
51
- let neededWidth = parseFloat(getComputedStyle(this.element).fontSize) * 2;
52
- neededWidth += (menuItems.length - 1) * parseFloat(getComputedStyle(this.element).fontSize);
53
- menuItems.forEach(item => neededWidth += this.getFullWidth(item));
54
- const firstItem = this.dropdown.querySelector("slot").assignedElements()[0];
55
- if (firstItem != undefined) {
56
- neededWidth += this.getFullWidth(firstItem);
57
- }
58
- if (neededWidth < availableWidth) {
59
- if (firstItem != undefined) {
60
- firstItem.slot = "";
61
- }
62
- if (firstItem == undefined) {
63
- this.dropdown.classList.remove("visible");
64
- this.showDropdownMenu = false;
65
- this.showDropdownButton = false;
66
- }
67
- }
68
- }
69
- getFullWidth(item) {
70
- var width = item.getBoundingClientRect().width;
71
- var styles = getComputedStyle(item);
72
- width += parseFloat(styles.marginLeft);
73
- width += parseFloat(styles.marginRight);
74
- width += parseFloat(styles.paddingLeft);
75
- width += parseFloat(styles.paddingRight);
76
- return width;
77
- }
78
- toggleOverflowMenu() {
79
- this.showDropdownMenu = !this.showDropdownMenu;
80
- if (this.showDropdownMenu) {
81
- this.dropdown.classList.add("visible");
82
- let contentHeight = 0;
83
- const items = Array.from(this.dropdown.querySelector("slot").assignedElements());
84
- items.forEach(item => contentHeight += item.getBoundingClientRect().height);
85
- var emHeight = parseFloat(getComputedStyle(this.dropdown).fontSize) * 0.5;
86
- var additionalHeight = emHeight * (this.dropdown.children.length - 1);
87
- contentHeight += additionalHeight;
88
- this.dropdown.style.height = `${contentHeight}px`;
89
- const dismissMenu = (e) => {
90
- const buttonRect = this.button.getBoundingClientRect();
91
- if (e.clientX < buttonRect.left ||
92
- e.clientX > buttonRect.right ||
93
- e.clientY < buttonRect.top ||
94
- e.clientY > buttonRect.bottom) {
95
- this.toggleOverflowMenu();
96
- }
97
- document.removeEventListener("click", dismissMenu);
98
- };
99
- setTimeout(() => {
100
- document.addEventListener("click", dismissMenu, false);
101
- }, 100);
102
- }
103
- else {
104
- this.dropdown.classList.remove("visible");
105
- this.dropdown.style.height = "0px";
106
- }
107
- }
108
- render() {
109
- return (h(Host, null, h("div", { class: "menu-container" }, h("div", { class: "menu", ref: el => this.menu = el }, h("slot", null)), this.showDropdownButton &&
110
- h("div", { class: "overflow" }, h("button", { ref: el => this.button = el, class: "icon", onClick: () => this.toggleOverflowMenu() }, h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, h("path", { d: "M0 0h24v24H0z", fill: "none" }), h("path", { d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" }))), h("div", { class: "dropdown", ref: el => this.dropdown = el }, h("slot", { name: "dropdown" }))))));
111
- }
112
- get element() { return getElement(this); }
113
- };
114
- DnnVerticalOverflowMenu.style = dnnVerticalOverflowMenuCss;
115
-
116
- export { DnnVerticalOverflowMenu as dnn_vertical_overflow_menu };
117
-
118
- //# sourceMappingURL=dnn-vertical-overflow-menu.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"dnn-vertical-overflow-menu.entry.esm.js","mappings":";;AAAA,MAAM,0BAA0B,GAAG,itCAAitC;;ICOvuC,uBAAuB;EALpC;;IASW,uBAAkB,GAAG,KAAK,CAAC;IAC3B,qBAAgB,GAAG,KAAK,CAAC;IAM1B,sBAAiB,GAAG,CAAC,CAAC;GAiI/B;EA/HC,kBAAkB;IAChB,qBAAqB,CAAC;MACpB,IAAI,CAAC,8BAA8B,EAAE,CAAC;MACtC,IAAI,CAAC,cAAc,GAAG,IAAI,cAAc,CAAC,OAAO;QAC9C,KAAK,IAAI,KAAK,IAAI,OAAO,EAAC;UACxB,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,GAAG,IAAI,CAAC,iBAAiB,EAAC;YACnD,IAAI,CAAC,8BAA8B,EAAE,CAAA;WACtC;UACD,IAAI,IAAI,CAAC,iBAAiB,GAAG,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,GAAG,IAAI,CAAC,iBAAiB,EAAC;YACjF,IAAI,CAAC,yBAAyB,EAAE,CAAC;WAClC;UACD,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC;SAClD;OACF,CAAC,CAAC;MACH,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAC3C,CAAC,CAAC;GACJ;EAEO,8BAA8B;IACpC,MAAM,SAAS,GA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ACD,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;OACtD,CAAC;MACF,UAAU,CAAC;QACT,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;OACxD,EAAE,GAAG,CAAC,CAAC;KACT;SACG;MACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;MAC1C,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC;KACpC;GACF;EAED,MAAM;IACJ,QACE,EAAC,IAAI,QACH,WAAK,KAAK,EAAC,gBAAgB,IACzB,WAAK,KAAK,EAAC,MAAM,EAAC,GAAG,EAAE,EAAE,IAAI,IAAI,CAAC,IAAI,GAAG,EAAE,IACzC,eAAa,CACT,EACH,IAAI,CAAC,kBAAkB;MACtB,WAAK,KAAK,EAAC,UAAU,IACnB,cACE,GAAG,EAAE,EAAE,IAAI,IAAI,CAAC,MAAM,GAAG,EAAE,EAC3B,KAAK,EAAC,MAAM,EACZ,OAAO,EAAE,MAAM,IAAI,CAAC,kBAAkB,EAAE,IACxC,WAAK,KAAK,EAAC,4BAA4B,EAAC,MAAM,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,MAAM,EAAC,IAAI,EAAC,SAAS,IAAC,YAAM,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAE,EAAA,YAAM,CAAC,EAAC,mJAAmJ,GAAE,CAAM,CACvS,EACT,WAAK,KAAK,EAAC,UAAU,EAAC,GAAG,EAAE,EAAE,IAAI,IAAI,CAAC,QAAQ,GAAG,EAAE,IACjD,YAAM,IAAI,EAAC,UAAU,GAAQ,CACzB,CACF,CAEJ,CACH,EACP;GACH;;;;;;;","names":[],"sources":["./src/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.scss?tag=dnn-vertical-overflow-menu&encapsulation=shadow","./src/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.tsx"],"sourcesContent":[":host {\r\n display: block;\r\n\r\n /** Defines the menu background color. */\r\n --background-color: var(--dnn-color-primary-contrast, white);\r\n\r\n /** A color that contrasts well over the background color. */\r\n --foreground-color: var(--dnn-color-primary, blue);\r\n\r\n /** The color of the text. */\r\n --text-color: #222;\r\n}\r\n\r\n.menu-container{\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n background-color: var(--background-color);\r\n color: var(--text-color);\r\n .menu{\r\n margin: 0.5em;\r\n display: flex;\r\n gap: 1em;\r\n justify-content: flex-start;\r\n align-items: center;\r\n white-space: nowrap;\r\n width: 100%;\r\n }\r\n .overflow {\r\n margin-left: auto;\r\n position: relative;\r\n button{\r\n cursor: pointer;\r\n svg{\r\n fill: var(--foreground-color);\r\n }\r\n padding: 0;\r\n margin: 0;\r\n background-color: transparent;\r\n border: none;\r\n }\r\n .dropdown{\r\n position:absolute;\r\n display: flex;\r\n flex-direction: column;\r\n white-space: nowrap;\r\n right: 0;\r\n transition: 100ms ease-in-out;\r\n height: 0;\r\n overflow: hidden;\r\n &.visible{\r\n padding: 1em;\r\n gap: 0.5em;\r\n background-color: var(--background-color);\r\n box-shadow: 2px 2px 4px rgba(0,0,0,0.7);\r\n }\r\n }\r\n }\r\n}\r\n","import { Component, Element, Host, h, State } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'dnn-vertical-overflow-menu',\r\n styleUrl: 'dnn-vertical-overflow-menu.scss',\r\n shadow: true,\r\n})\r\nexport class DnnVerticalOverflowMenu {\r\n\r\n @Element() element!: HTMLDnnVerticalOverflowMenuElement;\r\n \r\n @State() showDropdownButton = false;\r\n @State() showDropdownMenu = false;\r\n\r\n private menu!: HTMLDivElement;\r\n private dropdown: HTMLDivElement;\r\n private resizeObserver: ResizeObserver;\r\n private button!: HTMLButtonElement;\r\n private previousMenuWidth = 0;\r\n\r\n componentDidRender() {\r\n requestAnimationFrame(() => {\r\n this.moveItemsToDropDownIfNecessery();\r\n this.resizeObserver = new ResizeObserver(entries => {\r\n for (let entry of entries){\r\n if (entry.contentRect.width < this.previousMenuWidth){\r\n this.moveItemsToDropDownIfNecessery()\r\n }\r\n if (this.previousMenuWidth > 0 && entry.contentRect.width > this.previousMenuWidth){\r\n this.moveItemsToMenuIfPossible();\r\n }\r\n this.previousMenuWidth = entry.contentRect.width;\r\n }\r\n });\r\n this.resizeObserver.observe(this.element);\r\n });\r\n }\r\n\r\n private moveItemsToDropDownIfNecessery(){\r\n const menuItems = Array.from(this.menu.querySelector(\"slot\").assignedElements());\r\n const availableWidth = this.menu.getBoundingClientRect().width;\r\n let neededWidth = parseFloat(getComputedStyle(this.element).fontSize)*2;\r\n menuItems.forEach(item => neededWidth += this.getFullWidth(item));\r\n neededWidth += (menuItems.length - 1) * parseFloat(getComputedStyle(this.element).fontSize);\r\n if (neededWidth > availableWidth){\r\n this.showDropdownButton = true;\r\n var lastItem = menuItems[menuItems.length -1];\r\n if (this.dropdown == undefined){\r\n return;\r\n }\r\n lastItem.slot = \"dropdown\";\r\n this.moveItemsToDropDownIfNecessery();\r\n }\r\n }\r\n \r\n private moveItemsToMenuIfPossible(){\r\n if (this.dropdown == undefined || !this.dropdown.hasChildNodes()){\r\n return;\r\n }\r\n const menuItems = Array.from(this.menu.querySelector(\"slot\").assignedElements());\r\n const availableWidth = this.menu.getBoundingClientRect().width;\r\n let neededWidth = parseFloat(getComputedStyle(this.element).fontSize)*2;\r\n neededWidth += (menuItems.length - 1) * parseFloat(getComputedStyle(this.element).fontSize);\r\n menuItems.forEach(item => neededWidth += this.getFullWidth(item));\r\n const firstItem = this.dropdown.querySelector(\"slot\").assignedElements()[0];\r\n if (firstItem != undefined){\r\n neededWidth += this.getFullWidth(firstItem);\r\n }\r\n\r\n if (neededWidth < availableWidth){\r\n if (firstItem != undefined){\r\n firstItem.slot = \"\";\r\n }\r\n if(firstItem == undefined){\r\n this.dropdown.classList.remove(\"visible\");\r\n this.showDropdownMenu = false;\r\n this.showDropdownButton = false;\r\n }\r\n } \r\n }\r\n\r\n private getFullWidth(item: Element) {\r\n var width = item.getBoundingClientRect().width;\r\n var styles = getComputedStyle(item);\r\n width += parseFloat(styles.marginLeft);\r\n width += parseFloat(styles.marginRight);\r\n width += parseFloat(styles.paddingLeft);\r\n width += parseFloat(styles.paddingRight);\r\n return width;\r\n }\r\n\r\n private toggleOverflowMenu(): void {\r\n this.showDropdownMenu = !this.showDropdownMenu;\r\n if (this.showDropdownMenu){\r\n this.dropdown.classList.add(\"visible\");\r\n let contentHeight = 0;\r\n const items = Array.from(this.dropdown.querySelector(\"slot\").assignedElements());\r\n items.forEach(item => contentHeight += item.getBoundingClientRect().height);\r\n var emHeight = parseFloat(getComputedStyle(this.dropdown).fontSize) * 0.5;\r\n var additionalHeight = emHeight * (this.dropdown.children.length - 1);\r\n contentHeight += additionalHeight;\r\n this.dropdown.style.height = `${contentHeight}px`;\r\n const dismissMenu = (e: MouseEvent) => {\r\n const buttonRect = this.button.getBoundingClientRect();\r\n if (\r\n e.clientX < buttonRect.left ||\r\n e.clientX > buttonRect.right ||\r\n e.clientY < buttonRect.top ||\r\n e.clientY > buttonRect.bottom){\r\n this.toggleOverflowMenu();\r\n }\r\n document.removeEventListener(\"click\", dismissMenu);\r\n };\r\n setTimeout(() => {\r\n document.addEventListener(\"click\", dismissMenu, false);\r\n }, 100);\r\n }\r\n else{\r\n this.dropdown.classList.remove(\"visible\");\r\n this.dropdown.style.height = \"0px\";\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <Host>\r\n <div class=\"menu-container\">\r\n <div class=\"menu\" ref={el => this.menu = el}>\r\n <slot></slot>\r\n </div>\r\n {this.showDropdownButton &&\r\n <div class=\"overflow\">\r\n <button\r\n ref={el => this.button = el}\r\n class=\"icon\"\r\n onClick={() => this.toggleOverflowMenu()}>\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\" fill=\"#000000\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z\"/></svg>\r\n </button>\r\n <div class=\"dropdown\" ref={el => this.dropdown = el}>\r\n <slot name=\"dropdown\"></slot>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
@@ -1,2 +0,0 @@
1
- System.register(["./index-a3a55419.system.js"],(function(e){"use strict";var t,o,n,r;return{setters:[function(e){t=e.r;o=e.h;n=e.f;r=e.g}],execute:function(){var i=":host{display:block;--background-color:var(--dnn-color-primary-contrast, white);--foreground-color:var(--dnn-color-primary, blue);--text-color:#222}.menu-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;background-color:var(--background-color);color:var(--text-color)}.menu-container .menu{margin:0.5em;display:-ms-flexbox;display:flex;gap:1em;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;white-space:nowrap;width:100%}.menu-container .overflow{margin-left:auto;position:relative}.menu-container .overflow button{cursor:pointer;padding:0;margin:0;background-color:transparent;border:none}.menu-container .overflow button svg{fill:var(--foreground-color)}.menu-container .overflow .dropdown{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;white-space:nowrap;right:0;-webkit-transition:100ms ease-in-out;transition:100ms ease-in-out;height:0;overflow:hidden}.menu-container .overflow .dropdown.visible{padding:1em;gap:0.5em;background-color:var(--background-color);-webkit-box-shadow:2px 2px 4px rgba(0, 0, 0, 0.7);box-shadow:2px 2px 4px rgba(0, 0, 0, 0.7)}";var s=e("dnn_vertical_overflow_menu",function(){function e(e){t(this,e);this.showDropdownButton=false;this.showDropdownMenu=false;this.previousMenuWidth=0}e.prototype.componentDidRender=function(){var e=this;requestAnimationFrame((function(){e.moveItemsToDropDownIfNecessery();e.resizeObserver=new ResizeObserver((function(t){for(var o=0,n=t;o<n.length;o++){var r=n[o];if(r.contentRect.width<e.previousMenuWidth){e.moveItemsToDropDownIfNecessery()}if(e.previousMenuWidth>0&&r.contentRect.width>e.previousMenuWidth){e.moveItemsToMenuIfPossible()}e.previousMenuWidth=r.contentRect.width}}));e.resizeObserver.observe(e.element)}))};e.prototype.moveItemsToDropDownIfNecessery=function(){var e=this;var t=Array.from(this.menu.querySelector("slot").assignedElements());var o=this.menu.getBoundingClientRect().width;var n=parseFloat(getComputedStyle(this.element).fontSize)*2;t.forEach((function(t){return n+=e.getFullWidth(t)}));n+=(t.length-1)*parseFloat(getComputedStyle(this.element).fontSize);if(n>o){this.showDropdownButton=true;var r=t[t.length-1];if(this.dropdown==undefined){return}r.slot="dropdown";this.moveItemsToDropDownIfNecessery()}};e.prototype.moveItemsToMenuIfPossible=function(){var e=this;if(this.dropdown==undefined||!this.dropdown.hasChildNodes()){return}var t=Array.from(this.menu.querySelector("slot").assignedElements());var o=this.menu.getBoundingClientRect().width;var n=parseFloat(getComputedStyle(this.element).fontSize)*2;n+=(t.length-1)*parseFloat(getComputedStyle(this.element).fontSize);t.forEach((function(t){return n+=e.getFullWidth(t)}));var r=this.dropdown.querySelector("slot").assignedElements()[0];if(r!=undefined){n+=this.getFullWidth(r)}if(n<o){if(r!=undefined){r.slot=""}if(r==undefined){this.dropdown.classList.remove("visible");this.showDropdownMenu=false;this.showDropdownButton=false}}};e.prototype.getFullWidth=function(e){var t=e.getBoundingClientRect().width;var o=getComputedStyle(e);t+=parseFloat(o.marginLeft);t+=parseFloat(o.marginRight);t+=parseFloat(o.paddingLeft);t+=parseFloat(o.paddingRight);return t};e.prototype.toggleOverflowMenu=function(){var e=this;this.showDropdownMenu=!this.showDropdownMenu;if(this.showDropdownMenu){this.dropdown.classList.add("visible");var t=0;var o=Array.from(this.dropdown.querySelector("slot").assignedElements());o.forEach((function(e){return t+=e.getBoundingClientRect().height}));var n=parseFloat(getComputedStyle(this.dropdown).fontSize)*.5;var r=n*(this.dropdown.children.length-1);t+=r;this.dropdown.style.height=t+"px";var i=function(t){var o=e.button.getBoundingClientRect();if(t.clientX<o.left||t.clientX>o.right||t.clientY<o.top||t.clientY>o.bottom){e.toggleOverflowMenu()}document.removeEventListener("click",i)};setTimeout((function(){document.addEventListener("click",i,false)}),100)}else{this.dropdown.classList.remove("visible");this.dropdown.style.height="0px"}};e.prototype.render=function(){var e=this;return o(n,null,o("div",{class:"menu-container"},o("div",{class:"menu",ref:function(t){return e.menu=t}},o("slot",null)),this.showDropdownButton&&o("div",{class:"overflow"},o("button",{ref:function(t){return e.button=t},class:"icon",onClick:function(){return e.toggleOverflowMenu()}},o("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#000000"},o("path",{d:"M0 0h24v24H0z",fill:"none"}),o("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))),o("div",{class:"dropdown",ref:function(t){return e.dropdown=t}},o("slot",{name:"dropdown"})))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());s.style=i}}}));
2
- //# sourceMappingURL=dnn-vertical-overflow-menu.system.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["src/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.scss?tag=dnn-vertical-overflow-menu&encapsulation=shadow","src/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.tsx"],"names":["dnnVerticalOverflowMenuCss","DnnVerticalOverflowMenu","exports","class_1","hostRef","this","showDropdownButton","showDropdownMenu","previousMenuWidth","prototype","componentDidRender","_this","requestAnimationFrame","moveItemsToDropDownIfNecessery","resizeObserver","ResizeObserver","entries","_i","entries_1","length","entry","contentRect","width","moveItemsToMenuIfPossible","observe","element","menuItems","Array","from","menu","querySelector","assignedElements","availableWidth","getBoundingClientRect","neededWidth","parseFloat","getComputedStyle","fontSize","forEach","item","getFullWidth","lastItem","dropdown","undefined","slot","hasChildNodes","firstItem","classList","remove","styles","marginLeft","marginRight","paddingLeft","paddingRight","toggleOverflowMenu","add","contentHeight_1","items","height","emHeight","additionalHeight","children","style","dismissMenu_1","e","buttonRect","button","clientX","left","right","clientY","top","bottom","document","removeEventListener","setTimeout","addEventListener","render","h","Host","class","ref","el","onClick","xmlns","viewBox","fill","d","name"],"mappings":"8JAAA,IAAMA,EAA6B,stCCOtBC,EAAuBC,EAAA,6BAAA,WALpC,SAAAC,EAAAC,aASWC,KAAAC,mBAAqB,MACrBD,KAAAE,iBAAmB,MAMpBF,KAAAG,kBAAoB,EAE5BL,EAAAM,UAAAC,mBAAA,WAAA,IAAAC,EAAAN,KACEO,uBAAsB,WACpBD,EAAKE,iCACLF,EAAKG,eAAiB,IAAIC,gBAAe,SAAAC,GACvC,IAAkB,IAAAC,EAAA,EAAAC,EAAAF,EAAAC,EAAAC,EAAAC,OAAAF,IAAQ,CAArB,IAAIG,EAAKF,EAAAD,GACZ,GAAIG,EAAMC,YAAYC,MAAQX,EAAKH,kBAAkB,CACnDG,EAAKE,iCAEP,GAAIF,EAAKH,kBAAoB,GAAKY,EAAMC,YAAYC,MAAQX,EAAKH,kBAAkB,CACjFG,EAAKY,4BAEPZ,EAAKH,kBAAoBY,EAAMC,YAAYC,UAG/CX,EAAKG,eAAeU,QAAQb,EAAKc,aAI7BtB,EAAAM,UAAAI,+BAAA,WAAA,IAAAF,EAAAN,KACN,IAAMqB,EAAYC,MAAMC,KAAKvB,KAAKwB,KAAKC,cAAc,QAAQC,oBAC7D,IAAMC,EAAiB3B,KAAKwB,KAAKI,wBAAwBX,MACzD,IAAIY,EAAcC,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YACTF,EAAA,SAAA,CACEG,IAAK,SAAAC,GAAM,OAAAvE,EAAKuD,OAASgB,GACzBF,MAAM,OACNG,QAAS,WAAM,OAAAxE,EAAK2C,uBACpBwB,EAAA,MAAA,CAAKM,MAAM,6BAA6B1B,OAAO,OAAO2B,QAAQ,YAAY/D,MAAM,OAAOgE,KAAK,WAAUR,EAAA,OAAA,CAAMS,EAAE,gBAAgBD,KAAK,SAAQR,EAAA,OAAA,CAAMS,EAAE,wJAErJT,EAAA,MAAA,CAAKE,MAAM,WAAWC,IAAK,SAAAC,GAAM,OAAAvE,EAAK+B,SAAWwC,IAC/CJ,EAAA,OAAA,CAAMU,KAAK,4IApIO","sourcesContent":[":host {\r\n display: block;\r\n\r\n /** Defines the menu background color. */\r\n --background-color: var(--dnn-color-primary-contrast, white);\r\n\r\n /** A color that contrasts well over the background color. */\r\n --foreground-color: var(--dnn-color-primary, blue);\r\n\r\n /** The color of the text. */\r\n --text-color: #222;\r\n}\r\n\r\n.menu-container{\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n background-color: var(--background-color);\r\n color: var(--text-color);\r\n .menu{\r\n margin: 0.5em;\r\n display: flex;\r\n gap: 1em;\r\n justify-content: flex-start;\r\n align-items: center;\r\n white-space: nowrap;\r\n width: 100%;\r\n }\r\n .overflow {\r\n margin-left: auto;\r\n position: relative;\r\n button{\r\n cursor: pointer;\r\n svg{\r\n fill: var(--foreground-color);\r\n }\r\n padding: 0;\r\n margin: 0;\r\n background-color: transparent;\r\n border: none;\r\n }\r\n .dropdown{\r\n position:absolute;\r\n display: flex;\r\n flex-direction: column;\r\n white-space: nowrap;\r\n right: 0;\r\n transition: 100ms ease-in-out;\r\n height: 0;\r\n overflow: hidden;\r\n &.visible{\r\n padding: 1em;\r\n gap: 0.5em;\r\n background-color: var(--background-color);\r\n box-shadow: 2px 2px 4px rgba(0,0,0,0.7);\r\n }\r\n }\r\n }\r\n}\r\n","import { Component, Element, Host, h, State } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'dnn-vertical-overflow-menu',\r\n styleUrl: 'dnn-vertical-overflow-menu.scss',\r\n shadow: true,\r\n})\r\nexport class DnnVerticalOverflowMenu {\r\n\r\n @Element() element!: HTMLDnnVerticalOverflowMenuElement;\r\n \r\n @State() showDropdownButton = false;\r\n @State() showDropdownMenu = false;\r\n\r\n private menu!: HTMLDivElement;\r\n private dropdown: HTMLDivElement;\r\n private resizeObserver: ResizeObserver;\r\n private button!: HTMLButtonElement;\r\n private previousMenuWidth = 0;\r\n\r\n componentDidRender() {\r\n requestAnimationFrame(() => {\r\n this.moveItemsToDropDownIfNecessery();\r\n this.resizeObserver = new ResizeObserver(entries => {\r\n for (let entry of entries){\r\n if (entry.contentRect.width < this.previousMenuWidth){\r\n this.moveItemsToDropDownIfNecessery()\r\n }\r\n if (this.previousMenuWidth > 0 && entry.contentRect.width > this.previousMenuWidth){\r\n this.moveItemsToMenuIfPossible();\r\n }\r\n this.previousMenuWidth = entry.contentRect.width;\r\n }\r\n });\r\n this.resizeObserver.observe(this.element);\r\n });\r\n }\r\n\r\n private moveItemsToDropDownIfNecessery(){\r\n const menuItems = Array.from(this.menu.querySelector(\"slot\").assignedElements());\r\n const availableWidth = this.menu.getBoundingClientRect().width;\r\n let neededWidth = parseFloat(getComputedStyle(this.element).fontSize)*2;\r\n menuItems.forEach(item => neededWidth += this.getFullWidth(item));\r\n neededWidth += (menuItems.length - 1) * parseFloat(getComputedStyle(this.element).fontSize);\r\n if (neededWidth > availableWidth){\r\n this.showDropdownButton = true;\r\n var lastItem = menuItems[menuItems.length -1];\r\n if (this.dropdown == undefined){\r\n return;\r\n }\r\n lastItem.slot = \"dropdown\";\r\n this.moveItemsToDropDownIfNecessery();\r\n }\r\n }\r\n \r\n private moveItemsToMenuIfPossible(){\r\n if (this.dropdown == undefined || !this.dropdown.hasChildNodes()){\r\n return;\r\n }\r\n const menuItems = Array.from(this.menu.querySelector(\"slot\").assignedElements());\r\n const availableWidth = this.menu.getBoundingClientRect().width;\r\n let neededWidth = parseFloat(getComputedStyle(this.element).fontSize)*2;\r\n neededWidth += (menuItems.length - 1) * parseFloat(getComputedStyle(this.element).fontSize);\r\n menuItems.forEach(item => neededWidth += this.getFullWidth(item));\r\n const firstItem = this.dropdown.querySelector(\"slot\").assignedElements()[0];\r\n if (firstItem != undefined){\r\n neededWidth += this.getFullWidth(firstItem);\r\n }\r\n\r\n if (neededWidth < availableWidth){\r\n if (firstItem != undefined){\r\n firstItem.slot = \"\";\r\n }\r\n if(firstItem == undefined){\r\n this.dropdown.classList.remove(\"visible\");\r\n this.showDropdownMenu = false;\r\n this.showDropdownButton = false;\r\n }\r\n } \r\n }\r\n\r\n private getFullWidth(item: Element) {\r\n var width = item.getBoundingClientRect().width;\r\n var styles = getComputedStyle(item);\r\n width += parseFloat(styles.marginLeft);\r\n width += parseFloat(styles.marginRight);\r\n width += parseFloat(styles.paddingLeft);\r\n width += parseFloat(styles.paddingRight);\r\n return width;\r\n }\r\n\r\n private toggleOverflowMenu(): void {\r\n this.showDropdownMenu = !this.showDropdownMenu;\r\n if (this.showDropdownMenu){\r\n this.dropdown.classList.add(\"visible\");\r\n let contentHeight = 0;\r\n const items = Array.from(this.dropdown.querySelector(\"slot\").assignedElements());\r\n items.forEach(item => contentHeight += item.getBoundingClientRect().height);\r\n var emHeight = parseFloat(getComputedStyle(this.dropdown).fontSize) * 0.5;\r\n var additionalHeight = emHeight * (this.dropdown.children.length - 1);\r\n contentHeight += additionalHeight;\r\n this.dropdown.style.height = `${contentHeight}px`;\r\n const dismissMenu = (e: MouseEvent) => {\r\n const buttonRect = this.button.getBoundingClientRect();\r\n if (\r\n e.clientX < buttonRect.left ||\r\n e.clientX > buttonRect.right ||\r\n e.clientY < buttonRect.top ||\r\n e.clientY > buttonRect.bottom){\r\n this.toggleOverflowMenu();\r\n }\r\n document.removeEventListener(\"click\", dismissMenu);\r\n };\r\n setTimeout(() => {\r\n document.addEventListener(\"click\", dismissMenu, false);\r\n }, 100);\r\n }\r\n else{\r\n this.dropdown.classList.remove(\"visible\");\r\n this.dropdown.style.height = \"0px\";\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <Host>\r\n <div class=\"menu-container\">\r\n <div class=\"menu\" ref={el => this.menu = el}>\r\n <slot></slot>\r\n </div>\r\n {this.showDropdownButton &&\r\n <div class=\"overflow\">\r\n <button\r\n ref={el => this.button = el}\r\n class=\"icon\"\r\n onClick={() => this.toggleOverflowMenu()}>\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\" fill=\"#000000\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z\"/></svg>\r\n </button>\r\n <div class=\"dropdown\" ref={el => this.dropdown = el}>\r\n <slot name=\"dropdown\"></slot>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
@@ -1,129 +0,0 @@
1
- import { r as registerInstance, e as createEvent, h, f as Host, g as getElement } from './index-b5a28c1d.js';
2
- import { g as getMovementFromEvent } from './mouseUtilities-817973b4.js';
3
-
4
- const dnnVerticalSplitviewCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;margin:0 auto;position:relative;--left-pane-background-color:transparent;--right-pane-background-color:transparent}button{border:none;margin:0;padding:0;cursor:ew-resize;position:absolute;height:100%;background-color:transparent}button.transition{-webkit-transition:all 300ms ease-in-out;transition:all 300ms ease-in-out}.pane{overflow-y:auto}.pane.transition{-webkit-transition:all 300ms ease-in-out;transition:all 300ms ease-in-out}.pane.left{background-color:var(--left-pane-background-color)}.pane.right{background-color:var(--right-pane-background-color);-ms-flex-positive:1;flex-grow:1}";
5
-
6
- let DnnVerticalSplitview = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.widthChanged = createEvent(this, "widthChanged", 7);
10
- /** The width of the splitter area. */
11
- this.splitterWidth = 16;
12
- /** The percentage position of the splitter in the container. */
13
- this.splitWidthPercentage = 30;
14
- this.leftWidth = 0;
15
- this.rightWidth = 0;
16
- }
17
- /** Sets the width percentage of the divider */
18
- async setSplitWidthPercentage(newWidth) {
19
- const panes = this.element.shadowRoot.querySelectorAll(".pane");
20
- requestAnimationFrame(() => {
21
- panes.forEach(pane => pane.classList.add("transition"));
22
- this.splitter.classList.add("transition");
23
- requestAnimationFrame(() => {
24
- const fullWidth = this.element.getBoundingClientRect().width;
25
- let newLeft = fullWidth * newWidth / 100;
26
- if (newLeft < 0) {
27
- newLeft = 0;
28
- }
29
- if (newLeft > fullWidth) {
30
- newLeft = fullWidth;
31
- }
32
- this.leftWidth = newLeft;
33
- this.rightWidth = fullWidth - newLeft;
34
- setTimeout(() => {
35
- panes.forEach(pane => pane.classList.remove("transition"));
36
- this.splitter.classList.remove("transition");
37
- }, 300);
38
- });
39
- });
40
- }
41
- /** Gets the current divider position percentage. */
42
- async getSplitWidthPercentage() {
43
- const fullWidth = this.element.getBoundingClientRect().width;
44
- return this.leftWidth / fullWidth;
45
- }
46
- componentDidLoad() {
47
- requestAnimationFrame(() => {
48
- this.resizeObserver = new ResizeObserver(() => {
49
- const fullWidth = this.element.getBoundingClientRect().width;
50
- this.leftWidth = fullWidth * this.splitWidthPercentage / 100;
51
- this.rightWidth = fullWidth - this.leftWidth;
52
- this.widthChanged.emit(this.splitWidthPercentage);
53
- });
54
- this.resizeObserver.observe(this.element);
55
- });
56
- }
57
- handleMouseDown(event) {
58
- event.preventDefault();
59
- const handleDrag = (ev) => {
60
- requestAnimationFrame(() => {
61
- let fullWidth = this.element.getBoundingClientRect().width;
62
- let { movementX } = getMovementFromEvent(ev, this.previousTouch);
63
- let newLeft = this.leftWidth + movementX;
64
- if (newLeft < 0) {
65
- newLeft = 0;
66
- }
67
- if (newLeft > fullWidth) {
68
- newLeft = fullWidth;
69
- }
70
- this.leftWidth = newLeft;
71
- this.rightWidth = fullWidth - newLeft;
72
- this.splitWidthPercentage = this.leftWidth / fullWidth * 100;
73
- });
74
- };
75
- const handleDragFinished = () => {
76
- document.removeEventListener("mousemove", handleDrag);
77
- document.removeEventListener("touchmove", handleDrag);
78
- const fullWidth = this.element.getBoundingClientRect().width;
79
- const newPercentage = this.leftWidth / fullWidth * 100;
80
- this.widthChanged.emit(newPercentage);
81
- };
82
- document.addEventListener("mouseup", handleDragFinished);
83
- document.addEventListener("touchend", handleDragFinished);
84
- document.addEventListener("mousemove", handleDrag);
85
- document.addEventListener("touchmove", handleDrag);
86
- }
87
- handleKeyDown(e) {
88
- let movementX = 0;
89
- switch (e.key) {
90
- case "ArrowLeft":
91
- movementX = -10;
92
- break;
93
- case "ArrowRight":
94
- movementX = 10;
95
- break;
96
- default:
97
- return;
98
- }
99
- if (e.shiftKey) {
100
- movementX = movementX * 10;
101
- }
102
- const fullWidth = this.element.getBoundingClientRect().width;
103
- let newLeft = this.leftWidth + movementX;
104
- if (newLeft < 0) {
105
- newLeft = 0;
106
- }
107
- if (newLeft > fullWidth) {
108
- newLeft = fullWidth;
109
- }
110
- this.leftWidth = newLeft;
111
- this.rightWidth = fullWidth - this.leftWidth;
112
- }
113
- render() {
114
- return (h(Host, null, h("div", { class: "left pane", style: {
115
- width: `${this.leftWidth}px`,
116
- } }, h("slot", { name: "left" })), h("button", { onMouseDown: e => this.handleMouseDown(e), onTouchStart: e => this.handleMouseDown(e), onKeyDown: e => this.handleKeyDown(e), ref: el => this.splitter = el, style: {
117
- minWidth: `${this.splitterWidth.toString()}px`,
118
- left: `${this.leftWidth - 2}px`,
119
- } }, h("slot", null)), h("div", { class: "right pane", style: {
120
- width: `${this.rightWidth}px`,
121
- } }, h("slot", { name: "right" }))));
122
- }
123
- get element() { return getElement(this); }
124
- };
125
- DnnVerticalSplitview.style = dnnVerticalSplitviewCss;
126
-
127
- export { DnnVerticalSplitview as dnn_vertical_splitview };
128
-
129
- //# sourceMappingURL=dnn-vertical-splitview.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"dnn-vertical-splitview.entry.esm.js","mappings":";;;AAAA,MAAM,uBAAuB,GAAG,oqBAAoqB;;ICavrB,oBAAoB;EALjC;;;;IAQU,kBAAa,GAAG,EAAE,CAAC;;IAGJ,yBAAoB,GAAG,EAAE,CAAC;IA0CxC,cAAS,GAAG,CAAC,CAAC;IACd,eAAU,GAAG,CAAC,CAAC;GA0GzB;;EA7IC,MAAM,uBAAuB,CAAC,QAAgB;IAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAChE,qBAAqB,CAAC;MACpB,KAAK,CAAC,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;MACxD,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;MAC1C,qBAAqB,CAAC;QACpB,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAC,KAAK,CAAC;QAC7D,IAAI,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,GAAG,CAAC;QACzC,IAAI,OAAO,GAAG,CAAC,EAAC;UACd,OAAO,GAAG,CAAC,CAAC;SACb;QACD,IAAI,OAAO,GAAG,SAAS,EAAC;UACtB,OAAO,GAAG,SAAS,CAAC;SACrB;QACD,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;QACtC,UAAU,CAAC;UACT,KAAK,CAAC,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;UAC3D,IAAI,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splitview&encapsulation=shadow","./src/components/dnn-vertical-splitview/dnn-vertical-splitview.tsx"],"sourcesContent":[":host {\r\n display: flex;\r\n align-items: stretch;\r\n margin: 0 auto;\r\n position: relative;\r\n\r\n /** @prop --left-pane-background-color: Allows customizing the left pane background-color */\r\n --left-pane-background-color: transparent;\r\n\r\n /** @prop --right-pane-background-color: Allows customizing the right pane background-color */\r\n --right-pane-background-color: transparent;\r\n}\r\n\r\nbutton{\r\n border: none;\r\n margin:0;\r\n padding:0;\r\n cursor: ew-resize;\r\n position: absolute;\r\n height: 100%;\r\n background-color: transparent;\r\n &.transition{\r\n transition: all 300ms ease-in-out;\r\n }\r\n}\r\n\r\n\r\n.pane{\r\n overflow-y: auto;\r\n &.transition{\r\n transition: all 300ms ease-in-out;\r\n }\r\n &.left{\r\n background-color: var(--left-pane-background-color);\r\n }\r\n &.right{\r\n background-color: var(--right-pane-background-color);\r\n flex-grow: 1;\r\n }\r\n}","import { Component, Host, h, Prop, Element, State, Method, Event, EventEmitter } from '@stencil/core';\r\nimport { getMovementFromEvent } from \"../../utilities/mouseUtilities\";\r\n\r\n/**\r\n * @slot default - The split divider control you want to use.\r\n * @slot left - The content of the left pane.\r\n * @slot right - The content of the right pane.\r\n */\r\n@Component({\r\n tag: 'dnn-vertical-splitview',\r\n styleUrl: 'dnn-vertical-splitview.scss',\r\n shadow: true,\r\n})\r\nexport class DnnVerticalSplitview {\r\n\r\n /** The width of the splitter area. */\r\n @Prop() splitterWidth = 16;\r\n\r\n /** The percentage position of the splitter in the container. */\r\n @Prop({mutable: true}) splitWidthPercentage = 30;\r\n \r\n private splitter!: HTMLButtonElement;\r\n\r\n private resizeObserver: ResizeObserver;\r\n\r\n /** Sets the width percentage of the divider */\r\n @Method()\r\n async setSplitWidthPercentage(newWidth: number) {\r\n const panes = this.element.shadowRoot.querySelectorAll(\".pane\");\r\n requestAnimationFrame(() => {\r\n panes.forEach(pane => pane.classList.add(\"transition\"));\r\n this.splitter.classList.add(\"transition\");\r\n requestAnimationFrame(() => {\r\n const fullWidth = this.element.getBoundingClientRect().width;\r\n let newLeft = fullWidth * newWidth / 100;\r\n if (newLeft < 0){\r\n newLeft = 0;\r\n }\r\n if (newLeft > fullWidth){\r\n newLeft = fullWidth;\r\n }\r\n this.leftWidth = newLeft;\r\n this.rightWidth = fullWidth - newLeft;\r\n setTimeout(() => {\r\n panes.forEach(pane => pane.classList.remove(\"transition\"));\r\n this.splitter.classList.remove(\"transition\");\r\n }, 300);\r\n });\r\n });\r\n }\r\n\r\n /** Gets the current divider position percentage. */\r\n @Method()\r\n async getSplitWidthPercentage(){\r\n const fullWidth = this.element.getBoundingClientRect().width;\r\n return this.leftWidth / fullWidth;\r\n }\r\n\r\n /** Fires when the width of the divider changes. */\r\n @Event() widthChanged: EventEmitter<number>;\r\n\r\n @State() leftWidth = 0;\r\n @State() rightWidth = 0;\r\n\r\n @Element() element : HTMLDnnVerticalSplitviewElement;\r\n \r\n componentDidLoad() {\r\n requestAnimationFrame(() => {\r\n this.resizeObserver = new ResizeObserver(() => {\r\n const fullWidth = this.element.getBoundingClientRect().width;\r\n this.leftWidth = fullWidth * this.splitWidthPercentage / 100;\r\n this.rightWidth = fullWidth - this.leftWidth;\r\n this.widthChanged.emit(this.splitWidthPercentage);\r\n });\r\n this.resizeObserver.observe(this.element);\r\n });\r\n }\r\n \r\n private previousTouch: Touch;\r\n\r\n private handleMouseDown(event: MouseEvent | TouchEvent) {\r\n event.preventDefault();\r\n const handleDrag = (ev: MouseEvent | TouchEvent) => {\r\n requestAnimationFrame(() => {\r\n let fullWidth = this.element.getBoundingClientRect().width;\r\n let {movementX} = getMovementFromEvent(ev, this.previousTouch);\r\n let newLeft = this.leftWidth + movementX;\r\n if (newLeft < 0){\r\n newLeft = 0;\r\n }\r\n if (newLeft > fullWidth){\r\n newLeft = fullWidth;\r\n }\r\n this.leftWidth = newLeft;\r\n this.rightWidth = fullWidth - newLeft;\r\n this.splitWidthPercentage = this.leftWidth / fullWidth * 100;\r\n });\r\n }\r\n const handleDragFinished = () => {\r\n document.removeEventListener(\"mousemove\", handleDrag);\r\n document.removeEventListener(\"touchmove\", handleDrag);\r\n const fullWidth = this.element.getBoundingClientRect().width;\r\n const newPercentage = this.leftWidth / fullWidth * 100;\r\n this.widthChanged.emit(newPercentage);\r\n };\r\n document.addEventListener(\"mouseup\", handleDragFinished);\r\n document.addEventListener(\"touchend\", handleDragFinished);\r\n document.addEventListener(\"mousemove\", handleDrag);\r\n document.addEventListener(\"touchmove\", handleDrag);\r\n }\r\n\r\n private handleKeyDown(e: KeyboardEvent): void {\r\n let movementX = 0;\r\n switch (e.key) {\r\n case \"ArrowLeft\":\r\n movementX = -10;\r\n break;\r\n case \"ArrowRight\":\r\n movementX = 10;\r\n break;\r\n default:\r\n return;\r\n }\r\n if (e.shiftKey){\r\n movementX = movementX * 10;\r\n }\r\n const fullWidth = this.element.getBoundingClientRect().width;\r\n let newLeft = this.leftWidth + movementX;\r\n if (newLeft < 0){\r\n newLeft = 0;\r\n }\r\n if (newLeft > fullWidth){\r\n newLeft = fullWidth;\r\n }\r\n this.leftWidth = newLeft;\r\n this.rightWidth = fullWidth - this.leftWidth;\r\n }\r\n\r\n render() {\r\n return (\r\n <Host>\r\n <div class=\"left pane\" style={{\r\n width: `${this.leftWidth}px`,\r\n }}>\r\n <slot name=\"left\"></slot>\r\n </div>\r\n <button\r\n onMouseDown={e => this.handleMouseDown(e)}\r\n onTouchStart={e => this.handleMouseDown(e)}\r\n onKeyDown={e => this.handleKeyDown(e)}\r\n ref={el => this.splitter = el}\r\n style={{\r\n minWidth: `${this.splitterWidth.toString()}px`,\r\n left: `${this.leftWidth - 2}px`,\r\n }}\r\n >\r\n <slot></slot>\r\n </button>\r\n <div\r\n class=\"right pane\"\r\n style={{\r\n width: `${this.rightWidth}px`,\r\n }}>\r\n <slot name=\"right\"></slot>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
@@ -1,2 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(i.next(t))}catch(t){o(t)}}function s(t){try{u(i["throw"](t))}catch(t){o(t)}}function u(t){t.done?n(t.value):r(t.value).then(a,s)}u((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return u([t,e])}}function u(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./index-a3a55419.system.js","./mouseUtilities-e7e4e78f.system.js"],(function(t){"use strict";var e,n,i,r,o,a;return{setters:[function(t){e=t.r;n=t.e;i=t.h;r=t.f;o=t.g},function(t){a=t.g}],execute:function(){var s=":host{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;margin:0 auto;position:relative;--left-pane-background-color:transparent;--right-pane-background-color:transparent}button{border:none;margin:0;padding:0;cursor:ew-resize;position:absolute;height:100%;background-color:transparent}button.transition{-webkit-transition:all 300ms ease-in-out;transition:all 300ms ease-in-out}.pane{overflow-y:auto}.pane.transition{-webkit-transition:all 300ms ease-in-out;transition:all 300ms ease-in-out}.pane.left{background-color:var(--left-pane-background-color)}.pane.right{background-color:var(--right-pane-background-color);-ms-flex-positive:1;flex-grow:1}";var u=t("dnn_vertical_splitview",function(){function t(t){e(this,t);this.widthChanged=n(this,"widthChanged",7);this.splitterWidth=16;this.splitWidthPercentage=30;this.leftWidth=0;this.rightWidth=0}t.prototype.setSplitWidthPercentage=function(t){return __awaiter(this,void 0,void 0,(function(){var e;var n=this;return __generator(this,(function(i){e=this.element.shadowRoot.querySelectorAll(".pane");requestAnimationFrame((function(){e.forEach((function(t){return t.classList.add("transition")}));n.splitter.classList.add("transition");requestAnimationFrame((function(){var i=n.element.getBoundingClientRect().width;var r=i*t/100;if(r<0){r=0}if(r>i){r=i}n.leftWidth=r;n.rightWidth=i-r;setTimeout((function(){e.forEach((function(t){return t.classList.remove("transition")}));n.splitter.classList.remove("transition")}),300)}))}));return[2]}))}))};t.prototype.getSplitWidthPercentage=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.element.getBoundingClientRect().width;return[2,this.leftWidth/t]}))}))};t.prototype.componentDidLoad=function(){var t=this;requestAnimationFrame((function(){t.resizeObserver=new ResizeObserver((function(){var e=t.element.getBoundingClientRect().width;t.leftWidth=e*t.splitWidthPercentage/100;t.rightWidth=e-t.leftWidth;t.widthChanged.emit(t.splitWidthPercentage)}));t.resizeObserver.observe(t.element)}))};t.prototype.handleMouseDown=function(t){var e=this;t.preventDefault();var n=function(t){requestAnimationFrame((function(){var n=e.element.getBoundingClientRect().width;var i=a(t,e.previousTouch).movementX;var r=e.leftWidth+i;if(r<0){r=0}if(r>n){r=n}e.leftWidth=r;e.rightWidth=n-r;e.splitWidthPercentage=e.leftWidth/n*100}))};var i=function(){document.removeEventListener("mousemove",n);document.removeEventListener("touchmove",n);var t=e.element.getBoundingClientRect().width;var i=e.leftWidth/t*100;e.widthChanged.emit(i)};document.addEventListener("mouseup",i);document.addEventListener("touchend",i);document.addEventListener("mousemove",n);document.addEventListener("touchmove",n)};t.prototype.handleKeyDown=function(t){var e=0;switch(t.key){case"ArrowLeft":e=-10;break;case"ArrowRight":e=10;break;default:return}if(t.shiftKey){e=e*10}var n=this.element.getBoundingClientRect().width;var i=this.leftWidth+e;if(i<0){i=0}if(i>n){i=n}this.leftWidth=i;this.rightWidth=n-this.leftWidth};t.prototype.render=function(){var t=this;return i(r,null,i("div",{class:"left pane",style:{width:this.leftWidth+"px"}},i("slot",{name:"left"})),i("button",{onMouseDown:function(e){return t.handleMouseDown(e)},onTouchStart:function(e){return t.handleMouseDown(e)},onKeyDown:function(e){return t.handleKeyDown(e)},ref:function(e){return t.splitter=e},style:{minWidth:this.splitterWidth.toString()+"px",left:this.leftWidth-2+"px"}},i("slot",null)),i("div",{class:"right pane",style:{width:this.rightWidth+"px"}},i("slot",{name:"right"})))};Object.defineProperty(t.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());u.style=s}}}));
2
- //# sourceMappingURL=dnn-vertical-splitview.system.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["src/components/dnn-vertical-splitview/dnn-vertical-splitview.scss?tag=dnn-vertical-splitview&encapsulation=shadow","src/components/dnn-vertical-splitview/dnn-vertical-splitview.tsx"],"names":["dnnVerticalSplitviewCss","DnnVerticalSplitview","exports","class_1","hostRef","this","splitterWidth","splitWidthPercentage","leftWidth","rightWidth","prototype","setSplitWidthPercentage","newWidth","panes","element","shadowRoot","querySelectorAll","requestAnimationFrame","forEach","pane","classList","add","_this","splitter","fullWidth","getBoundingClientRect","width","newLeft","setTimeout","remove","getSplitWidthPercentage","componentDidLoad","resizeObserver","ResizeObserver","widthChanged","emit","observe","handleMouseDown","event","preventDefault","handleDrag","ev","movementX","getMovementFromEvent","previousTouch","handleDragFinished","document","removeEventListener","newPercentage","addEventListener","handleKeyDown","e","key","shiftKey","render","h","Host","class","style","name","onMouseDown","onTouchStart","onKeyDown","ref","el","minWidth","toString","left"],"mappings":"0pDAAA,IAAMA,EAA0B,yqBCanBC,EAAoBC,EAAA,yBAAA,WALjC,SAAAC,EAAAC,wDAQUC,KAAAC,cAAgB,GAGDD,KAAAE,qBAAuB,GA0CrCF,KAAAG,UAAY,EACZH,KAAAI,WAAa,EAnChBN,EAAAO,UAAAC,wBAAN,SAA8BC,yGACtBC,EAAQR,KAAKS,QAAQC,WAAWC,iBAAiB,SACvDC,uBAAsB,WACpBJ,EAAMK,SAAQ,SAAAC,GAAQ,OAAAA,EAAKC,UAAUC,IAAI,iBACzCC,EAAKC,SAASH,UAAUC,IAAI,cAC5BJ,uBAAsB,WACpB,IAAMO,EAAYF,EAAKR,QAAQW,wBAAwBC,MACvD,IAAIC,EAAUH,EAAYZ,EAAW,IACrC,GAAIe,EAAU,EAAE,CACdA,EAAU,EAEZ,GAAIA,EAAUH,EAAU,CACtBG,EAAUH,EAEZF,EAAKd,UAAYmB,EACjBL,EAAKb,WAAae,EAAYG,EAC9BC,YAAW,WACTf,EAAMK,SAAQ,SAAAC,GAAQ,OAAAA,EAAKC,UAAUS,OAAO,iBAC5CP,EAAKC,SAASH,UAAUS,OAAO,gBAC9B,4BAOH1B,EAAAO,UAAAoB,wBAAN,sGACQN,EAAYnB,KAAKS,QAAQW,wBAAwBC,MACvD,MAAA,CAAA,EAAOrB,KAAKG,UAAYgB,UAW1BrB,EAAAO,UAAAqB,iBAAA,WAAA,IAAAT,EAAAjB,KACEY,uBAAsB,WACpBK,EAAKU,eAAiB,IAAIC,gBAAe,WACvC,IAAMT,EAAYF,EAAKR,QAAQW,wBAAwBC,MACvDJ,EAAKd,UAAYgB,EAAYF,EAAKf,qBAAuB,IACzDe,EAAKb,WAAae,EAAYF,EAAKd,UACnCc,EAAKY,aAAaC,KAAKb,EAAKf,yBAE9Be,EAAK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A,IAAAhC,EAAAjB,KACE,OACEkD,EAACC,EAAI,KACDD,EAAA,MAAA,CAAKE,MAAM,YAAYC,MAAO,CAC1BhC,MAAUrB,KAAKG,UAAS,OAE1B+C,EAAA,OAAA,CAAMI,KAAK,UAEbJ,EAAA,SAAA,CACEK,YAAa,SAAAT,GAAK,OAAA7B,EAAKe,gBAAgBc,IACvCU,aAAc,SAAAV,GAAK,OAAA7B,EAAKe,gBAAgBc,IACxCW,UAAW,SAAAX,GAAK,OAAA7B,EAAK4B,cAAcC,IACnCY,IAAK,SAAAC,GAAM,OAAA1C,EAAKC,SAAWyC,GAC3BN,MAAO,CACLO,SAAa5D,KAAKC,cAAc4D,WAAU,KAC1CC,KAAS9D,KAAKG,UAAY,EAAC,OAG7B+C,EAAA,OAAA,OAEFA,EAAA,MAAA,CACEE,MAAM,aACNC,MAAO,CACLhC,MAAUrB,KAAKI,WAAU,OAE3B8C,EAAA,OAAA,CAAMI,KAAK,uIAtJU","sourcesContent":[":host {\r\n display: flex;\r\n align-items: stretch;\r\n margin: 0 auto;\r\n position: relative;\r\n\r\n /** @prop --left-pane-background-color: Allows customizing the left pane background-color */\r\n --left-pane-background-color: transparent;\r\n\r\n /** @prop --right-pane-background-color: Allows customizing the right pane background-color */\r\n --right-pane-background-color: transparent;\r\n}\r\n\r\nbutton{\r\n border: none;\r\n margin:0;\r\n padding:0;\r\n cursor: ew-resize;\r\n position: absolute;\r\n height: 100%;\r\n background-color: transparent;\r\n &.transition{\r\n transition: all 300ms ease-in-out;\r\n }\r\n}\r\n\r\n\r\n.pane{\r\n overflow-y: auto;\r\n &.transition{\r\n transition: all 300ms ease-in-out;\r\n }\r\n &.left{\r\n background-color: var(--left-pane-background-color);\r\n }\r\n &.right{\r\n background-color: var(--right-pane-background-color);\r\n flex-grow: 1;\r\n }\r\n}","import { Component, Host, h, Prop, Element, State, Method, Event, EventEmitter } from '@stencil/core';\r\nimport { getMovementFromEvent } from \"../../utilities/mouseUtilities\";\r\n\r\n/**\r\n * @slot default - The split divider control you want to use.\r\n * @slot left - The content of the left pane.\r\n * @slot right - The content of the right pane.\r\n */\r\n@Component({\r\n tag: 'dnn-vertical-splitview',\r\n styleUrl: 'dnn-vertical-splitview.scss',\r\n shadow: true,\r\n})\r\nexport class DnnVerticalSplitview {\r\n\r\n /** The width of the splitter area. */\r\n @Prop() splitterWidth = 16;\r\n\r\n /** The percentage position of the splitter in the container. */\r\n @Prop({mutable: true}) splitWidthPercentage = 30;\r\n \r\n private splitter!: HTMLButtonElement;\r\n\r\n private resizeObserver: ResizeObserver;\r\n\r\n /** Sets the width percentage of the divider */\r\n @Method()\r\n async setSplitWidthPercentage(newWidth: number) {\r\n const panes = this.element.shadowRoot.querySelectorAll(\".pane\");\r\n requestAnimationFrame(() => {\r\n panes.forEach(pane => pane.classList.add(\"transition\"));\r\n this.splitter.classList.add(\"transition\");\r\n requestAnimationFrame(() => {\r\n const fullWidth = this.element.getBoundingClientRect().width;\r\n let newLeft = fullWidth * newWidth / 100;\r\n if (newLeft < 0){\r\n newLeft = 0;\r\n }\r\n if (newLeft > fullWidth){\r\n newLeft = fullWidth;\r\n }\r\n this.leftWidth = newLeft;\r\n this.rightWidth = fullWidth - newLeft;\r\n setTimeout(() => {\r\n panes.forEach(pane => pane.classList.remove(\"transition\"));\r\n this.splitter.classList.remove(\"transition\");\r\n }, 300);\r\n });\r\n });\r\n }\r\n\r\n /** Gets the current divider position percentage. */\r\n @Method()\r\n async getSplitWidthPercentage(){\r\n const fullWidth = this.element.getBoundingClientRect().width;\r\n return this.leftWidth / fullWidth;\r\n }\r\n\r\n /** Fires when the width of the divider changes. */\r\n @Event() widthChanged: EventEmitter<number>;\r\n\r\n @State() leftWidth = 0;\r\n @State() rightWidth = 0;\r\n\r\n @Element() element : HTMLDnnVerticalSplitviewElement;\r\n \r\n componentDidLoad() {\r\n requestAnimationFrame(() => {\r\n this.resizeObserver = new ResizeObserver(() => {\r\n const fullWidth = this.element.getBoundingClientRect().width;\r\n this.leftWidth = fullWidth * this.splitWidthPercentage / 100;\r\n this.rightWidth = fullWidth - this.leftWidth;\r\n this.widthChanged.emit(this.splitWidthPercentage);\r\n });\r\n this.resizeObserver.observe(this.element);\r\n });\r\n }\r\n \r\n private previousTouch: Touch;\r\n\r\n private handleMouseDown(event: MouseEvent | TouchEvent) {\r\n event.preventDefault();\r\n const handleDrag = (ev: MouseEvent | TouchEvent) => {\r\n requestAnimationFrame(() => {\r\n let fullWidth = this.element.getBoundingClientRect().width;\r\n let {movementX} = getMovementFromEvent(ev, this.previousTouch);\r\n let newLeft = this.leftWidth + movementX;\r\n if (newLeft < 0){\r\n newLeft = 0;\r\n }\r\n if (newLeft > fullWidth){\r\n newLeft = fullWidth;\r\n }\r\n this.leftWidth = newLeft;\r\n this.rightWidth = fullWidth - newLeft;\r\n this.splitWidthPercentage = this.leftWidth / fullWidth * 100;\r\n });\r\n }\r\n const handleDragFinished = () => {\r\n document.removeEventListener(\"mousemove\", handleDrag);\r\n document.removeEventListener(\"touchmove\", handleDrag);\r\n const fullWidth = this.element.getBoundingClientRect().width;\r\n const newPercentage = this.leftWidth / fullWidth * 100;\r\n this.widthChanged.emit(newPercentage);\r\n };\r\n document.addEventListener(\"mouseup\", handleDragFinished);\r\n document.addEventListener(\"touchend\", handleDragFinished);\r\n document.addEventListener(\"mousemove\", handleDrag);\r\n document.addEventListener(\"touchmove\", handleDrag);\r\n }\r\n\r\n private handleKeyDown(e: KeyboardEvent): void {\r\n let movementX = 0;\r\n switch (e.key) {\r\n case \"ArrowLeft\":\r\n movementX = -10;\r\n break;\r\n case \"ArrowRight\":\r\n movementX = 10;\r\n break;\r\n default:\r\n return;\r\n }\r\n if (e.shiftKey){\r\n movementX = movementX * 10;\r\n }\r\n const fullWidth = this.element.getBoundingClientRect().width;\r\n let newLeft = this.leftWidth + movementX;\r\n if (newLeft < 0){\r\n newLeft = 0;\r\n }\r\n if (newLeft > fullWidth){\r\n newLeft = fullWidth;\r\n }\r\n this.leftWidth = newLeft;\r\n this.rightWidth = fullWidth - this.leftWidth;\r\n }\r\n\r\n render() {\r\n return (\r\n <Host>\r\n <div class=\"left pane\" style={{\r\n width: `${this.leftWidth}px`,\r\n }}>\r\n <slot name=\"left\"></slot>\r\n </div>\r\n <button\r\n onMouseDown={e => this.handleMouseDown(e)}\r\n onTouchStart={e => this.handleMouseDown(e)}\r\n onKeyDown={e => this.handleKeyDown(e)}\r\n ref={el => this.splitter = el}\r\n style={{\r\n minWidth: `${this.splitterWidth.toString()}px`,\r\n left: `${this.leftWidth - 2}px`,\r\n }}\r\n >\r\n <slot></slot>\r\n </button>\r\n <div\r\n class=\"right pane\"\r\n style={{\r\n width: `${this.rightWidth}px`,\r\n }}>\r\n <slot name=\"right\"></slot>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
@@ -1,2 +0,0 @@
1
- System.register(["./index-a3a55419.system.js","./app-globals-497eb362.system.js"],(function(e,t){"use strict";var n,r,i,s,o,a,c,d,l,m;return{setters:[function(e){n=e.B;r=e.c;i=e.p;s=e.w;o=e.H;a=e.d;c=e.N;d=e.a;l=e.b},function(e){m=e.g}],execute:function(){var e=function(e){return"__sc_import_"+e.replace(/\s|-/g,"_")};var p=function(){if(n.isDev&&!n.isTesting){r("Running in development mode.")}if(n.cssVarShim){i.$cssShim$=s.__cssshim}if(n.cloneNodeFix){h(o.prototype)}if(n.profile&&!performance.mark){performance.mark=performance.measure=function(){};performance.getEntriesByName=function(){return[]}}var e=n.scriptDataOpts||n.safari10||n.dynamicImportShim?Array.from(a.querySelectorAll("script")).find((function(e){return new RegExp("/"+c+"(\\.esm)?\\.js($|\\?|#)").test(e.src)||e.getAttribute("data-stencil-namespace")===c})):null;var l=t.meta.url;var m=n.scriptDataOpts?e["data-opts"]||{}:{};if(n.safari10&&"onbeforeload"in e&&!history.scrollRestoration){return{then:function(){}}}if(!n.safari10&&l!==""){m.resourcesUrl=new URL(".",l).href}else if(n.dynamicImportShim||n.safari10){m.resourcesUrl=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,s.location.href)).href;if(n.dynamicImportShim){u(m.resourcesUrl,e)}if(n.dynamicImportShim&&!s.customElements){return t.import("./dom-938307ec.system.js").then((function(){return m}))}}return d(m)};var u=function(t,n){var r=e(c);try{s[r]=new Function("w","return import(w);//"+Math.random())}catch(e){var i=new Map;s[r]=function(e){var o=new URL(e,t).href;var c=i.get(o);if(!c){var d=a.createElement("script");d.type="module";d.crossOrigin=n.crossOrigin;d.src=URL.createObjectURL(new Blob(["import * as m from '"+o+"'; window."+r+".m = m;"],{type:"application/javascript"}));c=new Promise((function(e){d.onload=function(){e(s[r].m);d.remove()}}));i.set(o,c);a.head.appendChild(d)}return c}}};var h=function(e){var t=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return t.call(this,e)}var n=t.call(this,false);var r=this.childNodes;if(e){for(var i=0;i<r.length;i++){if(r[i].nodeType!==2){n.appendChild(r[i].cloneNode(true))}}}return n}};p().then((function(e){m();return l([["dnn-image-cropper.system",[[1,"dnn-image-cropper",{width:[2],height:[2],resx:[16],quality:[2],preventUndersized:[4,"prevent-undersized"],view:[32]}]]],["dnn-treeview-item.system",[[1,"dnn-treeview-item",{expanded:[1540],hasChildren:[32]}]]],["dnn-checkbox.system",[[1,"dnn-checkbox",{checked:[1028],useIntermediate:[4,"use-intermediate"],value:[1]}]]],["dnn-chevron.system",[[1,"dnn-chevron",{expandText:[1,"expand-text"],collapseText:[1,"collapse-text"],expanded:[1540]}]]],["dnn-color-picker.system",[[1,"dnn-color-picker",{color:[1],colorBoxHeight:[1,"color-box-height"],currentColor:[32],rgbDisplay:[32],hslDisplay:[32],hexDisplay:[32]}]]],["dnn-searchbox.system",[[1,"dnn-searchbox",{placeholder:[1],debounced:[4],query:[1025]}]]],["dnn-sort-icon.system",[[1,"dnn-sort-icon",{sortDirection:[1,"sort-direction"]}]]],["dnn-tab.system",[[1,"dnn-tab",{tabTitle:[1,"tab-title"],visible:[32],show:[64],hide:[64]}]]],["dnn-tabs.system",[[1,"dnn-tabs",{tabTitles:[32],selectedTabTitle:[32]}]]],["dnn-toggle.system",[[1,"dnn-toggle",{checked:[1028],disabled:[4]}]]],["dnn-vertical-overflow-menu.system",[[1,"dnn-vertical-overflow-menu",{showDropdownButton:[32],showDropdownMenu:[32]}]]],["dnn-vertical-splitview.system",[[1,"dnn-vertical-splitview",{splitterWidth:[2,"splitter-width"],splitWidthPercentage:[1026,"split-width-percentage"],leftWidth:[32],rightWidth:[32],setSplitWidthPercentage:[64],getSplitWidthPercentage:[64]}]]],["dnn-button.system",[[1,"dnn-button",{type:[1],reversed:[4],size:[1],confirm:[4],confirmYesText:[1,"confirm-yes-text"],confirmNoText:[1,"confirm-no-text"],confirmMessage:[1,"confirm-message"],disabled:[4],modalVisible:[32]}]]],["dnn-collapsible.system",[[1,"dnn-collapsible",{expanded:[516],transitionDuration:[2,"transition-duration"],updateSize:[64]},[[0,"dnnCollapsibleHeightChanged","handleHeightChanged"]]]]],["dnn-dropzone.system",[[1,"dnn-dropzone",{resx:[16],allowedExtensions:[16],allowCameraMode:[4,"allow-camera-mode"],captureQuality:[2,"capture-quality"],canTakeSnapshots:[32],takingPicture:[32]}]]],["dnn-modal.system",[[1,"dnn-modal",{backdropDismiss:[4,"backdrop-dismiss"],closeText:[1,"close-text"],showCloseButton:[4,"show-close-button"],visible:[32],show:[64],hide:[64]}]]]],e)}))}}}));
2
- //# sourceMappingURL=dnn.system.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"names":["getDynamicImportFunction","namespace","replace","patchBrowser","BUILD","isDev","isTesting","consoleDevInfo","cssVarShim","plt","$cssShim$","win","__cssshim","cloneNodeFix","patchCloneNodeFix","H","prototype","profile","performance","mark","measure","getEntriesByName","scriptElm","scriptDataOpts","safari10","dynamicImportShim","Array","from","doc","querySelectorAll","find","s","RegExp","NAMESPACE","test","src","getAttribute","importMeta","module","meta","url","opts","history","scrollRestoration","then","resourcesUrl","URL","href","location","patchDynamicImport","customElements","import","promiseResolve","base","orgScriptElm","importFunctionName","Function","Math","random","e","moduleMap_1","Map","mod","get","script_1","createElement","type","crossOrigin","createObjectURL","Blob","Promise","resolve","onload","m","remove","set","head","appendChild","HTMLElementPrototype","nativeCloneNodeFn","cloneNode","deep","this","nodeName","call","clonedNode","srcChildNodes","childNodes","i","length","nodeType","options","globalScripts","bootstrapLazy","width","height","resx","quality","preventUndersized","view","expanded","hasChildren","checked","useIntermediate","value","expandText","collapseText","color","colorBoxHeight","currentColor","rgbDisplay","hslDisplay","hexDisplay","placeholder","debounced","query","sortDirection","tabTitle","visible","show","hide","tabTitles","selectedTabTitle","disabled","showDropdownButton","showDropdownMenu","splitterWidth","splitWidthPercentage","leftWidth","rightWidth","setSplitWidthPercentage","getSplitWidthPercentage","reversed","size","confirm","confirmYesText","confirmNoText","confirmMessage","modalVisible","transitionDuration","updateSize","allowedExtensions","allowCameraMode","captureQuality","canTakeSnapshots","takingPicture","backdropDismiss","closeText","showCloseButton"],"mappings":"gQAKA,IAAMA,EAA2B,SAACC,GAAc,MAAA,eAAeA,EAAUC,QAAQ,QAAS,MAC1F,IAAMC,EAAe,WAEjB,GAAIC,EAAMC,QAAUD,EAAME,UAAW,CACjCC,EAAe,gCAEnB,GAAIH,EAAMI,WAAY,CAElBC,EAAIC,UAAYC,EAAIC,UAExB,GAAIR,EAAMS,aAAc,CAEpBC,EAAkBC,EAAEC,WAExB,GAAIZ,EAAMa,UAAYC,YAAYC,KAAM,CAEpCD,YAAYC,KAAOD,YAAYE,QAAU,aAGzCF,YAAYG,iBAAmB,WAAM,MAAA,IAGzC,IAAMC,EAAYlB,EAAMmB,gBAAkBnB,EAAMoB,UAAYpB,EAAMqB,kBAC5DC,MAAMC,KAAKC,EAAIC,iBAAiB,WAAWC,MAAK,SAACC,GAAM,OAAA,IAAIC,OAAO,IAAKC,EAAS,2BAA2BC,KAAKH,EAA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BAAAC,eAAA,CAAA,EAAA,mBAAAC,iBAAA,CAAA,IAAAC,cAAA,CAAA,QAAA,CAAA,mBAAA,CAAA,CAAA,EAAA,YAAA,CAAAC,gBAAA,CAAA,EAAA,oBAAAC,UAAA,CAAA,EAAA,cAAAC,gBAAA,CAAA,EAAA,qBAAA9B,QAAA,CAAA,IAAAC,KAAA,CAAA,IAAAC,KAAA,CAAA,SAAA7B","sourcesContent":["/*\n Stencil Client Patch Browser v2.13.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cssVarShim) {\n // shim css vars\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","import { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"]}
@@ -1,22 +0,0 @@
1
- System.register([],(function(){"use strict";return{execute:function(){(function(){var t=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function e(e){var n=t.has(e);e=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(e);return!n&&e}function n(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function o(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function i(t,e,n){n=void 0===n?new Set:n;for(var r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var a=r;e(a);var c=a.localName;if("link"===c&&"import"===a.getAttribute("rel")){r=a.import;if(r instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)i(r,e,n);r=o(t,a);continue}else if("template"===c){r=o(t,a);continue}if(a=a.__CE_shadowRoot)for(a=a.firstChild;a;a=a.nextSibling)i(a,e,n)}r=r.firstChild?r.firstChild:o(t,r)}}function r(t,e,n){t[e]=n}function a(){this.a=new Map;this.g=new Map;this.c=[];this.f=[];this.b=!1}function c(t,e,n){t.a.set(e,n);t.g.set(n.constructorFunction,n)}function l(t,e){t.b=!0;t.c.push(e)}function s(t,e){t.b=!0;t.f.push(e)}function u(t,e){t.b&&i(e,(function(e){return f(t,e)}))}function f(t,e){if(t.b&&!e.__CE_patched){e.__CE_patched=!0;for(var n=0;n<t.c.length;n++)t.c[n](e);for(n=0;n<t.f.length;n++)t.f[n](e)}}function p(t,e){var n=[];i(e,(function(t){return n.push(t)}));for(e=0;e<n.length;e++){var o=n[e];1===o.__CE_state?t.connectedCallback(o):m(t,o)}}function h(t,e){var n=[];i(e,(function(t){return n.push(t)}));for(e=0;e<n.length;e++){var o=n[e];1===o.__CE_state&&t.disconnectedCallback(o)}}function d(t,e,n){n=void 0===n?{}:n;var o=n.u||new Set,r=n.i||function(e){return m(t,e)},a=[];i(e,(function(e){if("link"===e.localName&&"import"===e.getAttribute("rel")){var n=e.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0);n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:e.addEventListener("load",(function(){var n=e.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var i=new Set(o);i.delete(n);d(t,n,{u:i,i:r})}}))}else a.push(e)}),o);if(t.b)for(e=0;e<a.length;e++)f(t,a[e]);for(e=0;e<a.length;e++)r(a[e])}function m(t,e){if(void 0===e.__CE_state){var o=e.ownerDocument;if(o.defaultView||o.__CE_isImportDocument&&o.__CE_hasRegistry)if(o=t.a.get(e.localName)){o.constructionStack.push(e);var i=o.constructorFunction;try{try{if(new i!==e)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{o.constructionStack.pop()}}catch(t){throw e.__CE_state=2,t}e.__CE_state=1;e.__CE_definition=o;if(o.attributeChangedCallback)for(o=o.observedAttributes,i=0;i<o.length;i++){var r=o[i],a=e.getAttribute(r);null!==a&&t.attributeChangedCallback(e,r,null,a,null)}n(e)&&t.connectedCallback(e)}}}a.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)};a.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)};a.prototype.attributeChangedCallback=function(t,e,n,o,i){var r=t.__CE_definition;r.attributeChangedCallback&&-1<r.observedAttributes.indexOf(e)&&r.attributeChangedCallback.call(t,e,n,o,i)};function y(t){var e=document;this.c=t;this.a=e;this.b=void 0;d(this.c,this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function b(t){t.b&&t.b.disconnect()}y.prototype.f=function(t){var e=this.a.readyState;"interactive"!==e&&"complete"!==e||b(this);for(e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)d(this.c,n[o])};function v(){var t=this;this.b=this.a=void 0;this.c=new Promise((function(e){t.b=e;t.a&&e(t.a)}))}function g(t){if(t.a)throw Error("Already resolved.");t.a=void 0;t.b&&t.b(void 0)}function w(t){this.c=!1;this.a=t;this.j=new Map;this.f=function(t){return t()};this.b=!1;this.g=[];this.o=new y(t)}w.prototype.l=function(t,n){var o=this;if(!(n instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!e(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.a.get(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var i=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=n.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var a=i("connectedCallback");var l=i("disconnectedCallback");var s=i("adoptedCallback");var u=i("attributeChangedCallback");var f=n.observedAttributes||[]}catch(t){return}finally{this.c=!1}n={localName:t,constructorFunction:n,connectedCallback:a,disconnectedCallback:l,adoptedCallback:s,attributeChangedCallback:u,observedAttributes:f,constructionStack:[]};c(this.a,t,n);this.g.push(n);this.b||(this.b=!0,this.f((function(){return E(o)})))};w.prototype.i=function(t){d(this.a,t)};function E(t){if(!1!==t.b){t.b=!1;for(var e=t.g,n=[],o=new Map,i=0;i<e.length;i++)o.set(e[i].localName,[]);d(t.a,document,{i:function(e){if(void 0===e.__CE_state){var i=e.localName,r=o.get(i);r?r.push(e):t.a.a.get(i)&&n.push(e)}}});for(i=0;i<n.length;i++)m(t.a,n[i]);for(;0<e.length;){var r=e.shift();i=r.localName;r=o.get(r.localName);for(var a=0;a<r.length;a++)m(t.a,r[a]);(i=t.j.get(i))&&g(i)}}}w.prototype.get=function(t){if(t=this.a.a.get(t))return t.constructorFunction};w.prototype.m=function(t){if(!e(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var n=this.j.get(t);if(n)return n.c;n=new v;this.j.set(t,n);this.a.a.get(t)&&!this.g.some((function(e){return e.localName===t}))&&g(n);return n.c};w.prototype.s=function(t){b(this.o);var e=this.f;this.f=function(n){return t((function(){return e(n)}))}};window.CustomElementRegistry=w;w.prototype.define=w.prototype.l;w.prototype.upgrade=w.prototype.i;w.prototype.get=w.prototype.get;w.prototype.whenDefined=w.prototype.m;w.prototype.polyfillWrapFlushCallback=w.prototype.s;var _=window.Document.prototype.createElement,C=window.Document.prototype.createElementNS,N=window.Document.prototype.importNode,S=window.Document.prototype.prepend,T=window.Document.prototype.append,D=window.DocumentFragment.prototype.prepend,k=window.DocumentFragment.prototype.append,A=window.Node.prototype.cloneNode,O=window.Node.prototype.appendChild,j=window.Node.prototype.insertBefore,L=window.Node.prototype.removeChild,M=window.Node.prototype.replaceChild,x=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),H=window.Element.prototype.attachShadow,R=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),P=window.Element.prototype.getAttribute,F=window.Element.prototype.setAttribute,I=window.Element.prototype.removeAttribute,z=window.Element.prototype.getAttributeNS,U=window.Element.prototype.setAttributeNS,W=window.Element.prototype.removeAttributeNS,q=window.Element.prototype.insertAdjacentElement,B=window.Element.prototype.insertAdjacentHTML,$=window.Element.prototype.prepend,V=window.Element.prototype.append,X=window.Element.prototype.before,G=window.Element.prototype.after,J=window.Element.prototype.replaceWith,K=window.Element.prototype.remove,Q=window.HTMLElement,Y=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Z=window.HTMLElement.prototype.insertAdjacentElement,tt=window.HTMLElement.prototype.insertAdjacentHTML;var et=new function(){};function nt(){var t=st;window.HTMLElement=function(){function e(){var e=this.constructor,n=t.g.get(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(0===o.length)return o=_.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,f(t,o),o;n=o.length-1;var i=o[n];if(i===et)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");o[n]=et;Object.setPrototypeOf(i,e.prototype);f(t,i);return i}e.prototype=Q.prototype;Object.defineProperty(e.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:e});return e}()}function ot(t,e,o){function i(e){return function(o){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];r=[];for(var a=[],c=0;c<i.length;c++){var l=i[c];l instanceof Element&&n(l)&&a.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}e.apply(this,i);for(i=0;i<a.length;i++)h(t,a[i]);if(n(this))for(i=0;i<r.length;i++)a=r[i],a instanceof Element&&p(t,a)}}void 0!==o.h&&(e.prepend=i(o.h));void 0!==o.append&&(e.append=i(o.append))}function it(){var t=st;r(Document.prototype,"createElement",(function(e){if(this.__CE_hasRegistry){var n=t.a.get(e);if(n)return new n.constructorFunction}e=_.call(this,e);f(t,e);return e}));r(Document.prototype,"importNode",(function(e,n){e=N.call(this,e,!!n);this.__CE_hasRegistry?d(t,e):u(t,e);return e}));r(Document.prototype,"createElementNS",(function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.a.get(n);if(o)return new o.constructorFunction}e=C.call(this,e,n);f(t,e);return e}));ot(t,Document.prototype,{h:S,append:T})}function rt(){function t(t,o){Object.defineProperty(t,"textContent",{enumerable:o.enumerable,configurable:!0,get:o.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)o.set.call(this,t);else{var i=void 0;if(this.firstChild){var r=this.childNodes,a=r.length;if(0<a&&n(this)){i=Array(a);for(var c=0;c<a;c++)i[c]=r[c]}}o.set.call(this,t);if(i)for(t=0;t<i.length;t++)h(e,i[t])}}})}var e=st;r(Node.prototype,"insertBefore",(function(t,o){if(t instanceof DocumentFragment){var i=Array.prototype.slice.apply(t.childNodes);t=j.call(this,t,o);if(n(this))for(o=0;o<i.length;o++)p(e,i[o]);return t}i=n(t);o=j.call(this,t,o);i&&h(e,t);n(this)&&p(e,t);return o}));r(Node.prototype,"appendChild",(function(t){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);t=O.call(this,t);if(n(this))for(var i=0;i<o.length;i++)p(e,o[i]);return t}o=n(t);i=O.call(this,t);o&&h(e,t);n(this)&&p(e,t);return i}));r(Node.prototype,"cloneNode",(function(t){t=A.call(this,!!t);this.ownerDocument.__CE_hasRegistry?d(e,t):u(e,t);return t}));r(Node.prototype,"removeChild",(function(t){var o=n(t),i=L.call(this,t);o&&h(e,t);return i}));r(Node.prototype,"replaceChild",(function(t,o){if(t instanceof DocumentFragment){var i=Array.prototype.slice.apply(t.childNodes);t=M.call(this,t,o);if(n(this))for(h(e,o),o=0;o<i.length;o++)p(e,i[o]);return t}i=n(t);var r=M.call(this,t,o),a=n(this);a&&h(e,o);i&&h(e,t);a&&p(e,t);return r}));x&&x.get?t(Node.prototype,x):l(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++){var n=this.childNodes[e];n.nodeType!==Node.COMMENT_NODE&&t.push(n.textContent)}return t.join("")},set:function(t){for(;this.firstChild;)L.call(this,this.firstChild);null!=t&&""!==t&&O.call(this,document.createTextNode(t))}})}))}function at(t){function e(e){return function(o){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];r=[];for(var a=[],c=0;c<i.length;c++){var l=i[c];l instanceof Element&&n(l)&&a.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}e.apply(this,i);for(i=0;i<a.length;i++)h(t,a[i]);if(n(this))for(i=0;i<r.length;i++)a=r[i],a instanceof Element&&p(t,a)}}var o=Element.prototype;void 0!==X&&(o.before=e(X));void 0!==X&&(o.after=e(G));void 0!==J&&r(o,"replaceWith",(function(e){for(var o=[],i=0;i<arguments.length;++i)o[i]=arguments[i];i=[];for(var r=[],a=0;a<o.length;a++){var c=o[a];c instanceof Element&&n(c)&&r.push(c);if(c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)i.push(c);else i.push(c)}a=n(this);J.apply(this,o);for(o=0;o<r.length;o++)h(t,r[o]);if(a)for(h(t,this),o=0;o<i.length;o++)r=i[o],r instanceof Element&&p(t,r)}));void 0!==K&&r(o,"remove",(function(){var e=n(this);K.call(this);e&&h(t,this)}))}function ct(){function t(t,e){Object.defineProperty(t,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){var o=this,r=void 0;n(this)&&(r=[],i(this,(function(t){t!==o&&r.push(t)})));e.set.call(this,t);if(r)for(var c=0;c<r.length;c++){var l=r[c];1===l.__CE_state&&a.disconnectedCallback(l)}this.ownerDocument.__CE_hasRegistry?d(a,this):u(a,this);return t}})}function e(t,e){r(t,"insertAdjacentElement",(function(t,o){var i=n(o);t=e.call(this,t,o);i&&h(a,o);n(t)&&p(a,o);return t}))}function o(t,e){function n(t,e){for(var n=[];t!==e;t=t.nextSibling)n.push(t);for(e=0;e<n.length;e++)d(a,n[e])}r(t,"insertAdjacentHTML",(function(t,o){t=t.toLowerCase();if("beforebegin"===t){var i=this.previousSibling;e.call(this,t,o);n(i||this.parentNode.firstChild,this)}else if("afterbegin"===t)i=this.firstChild,e.call(this,t,o),n(this.firstChild,i);else if("beforeend"===t)i=this.lastChild,e.call(this,t,o),n(i||this.firstChild,null);else if("afterend"===t)i=this.nextSibling,e.call(this,t,o),n(this.nextSibling,i);else throw new SyntaxError("The value provided ("+String(t)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.")}))}var a=st;H&&r(Element.prototype,"attachShadow",(function(t){t=H.call(this,t);var e=a;if(e.b&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.c.length;n++)e.c[n](t)}return this.__CE_shadowRoot=t}));R&&R.get?t(Element.prototype,R):Y&&Y.get?t(HTMLElement.prototype,Y):s(a,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return A.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName,n=e?this.content:this,o=C.call(document,this.namespaceURI,this.localName);for(o.innerHTML=t;0<n.childNodes.length;)L.call(n,n.childNodes[0]);for(t=e?o.content:o;0<t.childNodes.length;)O.call(n,t.childNodes[0])}})}));r(Element.prototype,"setAttribute",(function(t,e){if(1!==this.__CE_state)return F.call(this,t,e);var n=P.call(this,t);F.call(this,t,e);e=P.call(this,t);a.attributeChangedCallback(this,t,n,e,null)}));r(Element.prototype,"setAttributeNS",(function(t,e,n){if(1!==this.__CE_state)return U.call(this,t,e,n);var o=z.call(this,t,e);U.call(this,t,e,n);n=z.call(this,t,e);a.attributeChangedCallback(this,e,o,n,t)}));r(Element.prototype,"removeAttribute",(function(t){if(1!==this.__CE_state)return I.call(this,t);var e=P.call(this,t);I.call(this,t);null!==e&&a.attributeChangedCallback(this,t,e,null,null)}));r(Element.prototype,"removeAttributeNS",(function(t,e){if(1!==this.__CE_state)return W.call(this,t,e);var n=z.call(this,t,e);W.call(this,t,e);var o=z.call(this,t,e);n!==o&&a.attributeChangedCallback(this,e,n,o,t)}));Z?e(HTMLElement.prototype,Z):q?e(Element.prototype,q):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");tt?o(HTMLElement.prototype,tt):B?o(Element.prototype,B):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");ot(a,Element.prototype,{h:$,append:V});at(a)}var lt=window.customElements;if(!lt||lt.forcePolyfill||"function"!=typeof lt.define||"function"!=typeof lt.get){var st=new a;nt();it();ot(st,DocumentFragment.prototype,{h:D,append:k});rt();ct();document.__CE_hasRegistry=!0;var ut=new w(st);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:ut})}}).call(self);"string"!==typeof document.baseURI&&Object.defineProperty(Document.prototype,"baseURI",{enumerable:!0,configurable:!0,get:function(){var t=document.querySelector("base");return t&&t.href?t.href:document.URL}});"function"!==typeof window.CustomEvent&&(window.CustomEvent=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail);return n},window.CustomEvent.prototype=window.Event.prototype);(function(t,e,n){t.composedPath||(t.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;this.path.push(e,n);return this.path})})(Event.prototype,document,window);
2
- /*!
3
- Element.closest and Element.matches
4
- https://github.com/jonathantneal/closest
5
- Creative Commons Zero v1.0 Universal
6
- */(function(t){"function"!==typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(t){t=(this.document||this.ownerDocument).querySelectorAll(t);for(var e=0;t[e]&&t[e]!==this;)++e;return!!t[e]});"function"!==typeof t.closest&&(t.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null})})(window.Element.prototype);
7
- /*!
8
- Element.getRootNode()
9
- */(function(t){function e(t){t=n(t);return t&&11===t.nodeType?e(t.host):t}function n(t){return t&&t.parentNode?n(t.parentNode):t}"function"!==typeof t.getRootNode&&(t.getRootNode=function(t){return t&&t.composed?e(this):n(this)})})(Element.prototype);
10
- /*!
11
- Element.isConnected()
12
- */(function(t){"isConnected"in t||Object.defineProperty(t,"isConnected",{configurable:!0,enumerable:!0,get:function(){var t=this.getRootNode({composed:!0});return t&&9===t.nodeType}})})(Element.prototype);
13
- /*!
14
- Element.remove()
15
- */(function(t){t.forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);
16
- /*!
17
- Element.classList
18
- */!function(t){"classList"in t||Object.defineProperty(t,"classList",{get:function(){var t=this,e=(t.getAttribute("class")||"").replace(/^\s+|\s$/g,"").split(/\s+/g);function n(){e.length>0?t.setAttribute("class",e.join(" ")):t.removeAttribute("class")}return""===e[0]&&e.splice(0,1),e.toggle=function(t,o){void 0!==o?o?e.add(t):e.remove(t):-1!==e.indexOf(t)?e.splice(e.indexOf(t),1):e.push(t),n()},e.add=function(){for(var t=[].slice.call(arguments),o=0,i=t.length;o<i;o++)-1===e.indexOf(t[o])&&e.push(t[o]);n()},e.remove=function(){for(var t=[].slice.call(arguments),o=0,i=t.length;o<i;o++)-1!==e.indexOf(t[o])&&e.splice(e.indexOf(t[o]),1);n()},e.item=function(t){return e[t]},e.contains=function(t){return-1!==e.indexOf(t)},e.replace=function(t,o){-1!==e.indexOf(t)&&e.splice(e.indexOf(t),1,o),n()},e.value=t.getAttribute("class")||"",e}})}(Element.prototype);
19
- /*!
20
- DOMTokenList
21
- */(function(t){try{document.body.classList.add()}catch(o){var e=t.add,n=t.remove;t.add=function(){for(var t=0;t<arguments.length;t++)e.call(this,arguments[t])};t.remove=function(){for(var t=0;t<arguments.length;t++)n.call(this,arguments[t])}}})(DOMTokenList.prototype)}}}));
22
- //# sourceMappingURL=dom-938307ec.system.js.map