ku4web-components 6.4.82 → 6.4.85

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 (286) hide show
  1. package/angular/index.js +1 -1
  2. package/angular/index.mjs +1 -1
  3. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  4. package/dist/cjs/css-shim-af499675.js +6 -0
  5. package/dist/cjs/dom-0e8e7262.js +75 -0
  6. package/dist/cjs/index-31267995.js +3093 -0
  7. package/dist/cjs/index-517c4086.js +14 -0
  8. package/dist/cjs/{index-a7b6d98c.js → index-845c56d4.js} +1 -1
  9. package/dist/cjs/index-a80ad36d.js +10 -0
  10. package/dist/cjs/{index-f78c109e.js → index-d1d73823.js} +1 -1
  11. package/dist/cjs/index-d6fca091.js +10 -0
  12. package/dist/cjs/ku4-carousel-controls.cjs.entry.js +6 -6
  13. package/dist/cjs/ku4-carousel-slide.cjs.entry.js +1 -1
  14. package/dist/cjs/ku4-carousel.cjs.entry.js +14 -7
  15. package/dist/cjs/ku4-col.cjs.entry.js +1 -1
  16. package/dist/cjs/ku4-drawer.cjs.entry.js +1 -1
  17. package/dist/cjs/ku4-feature.cjs.entry.js +2 -2
  18. package/dist/cjs/ku4-focus-trap.cjs.entry.js +26 -26
  19. package/dist/cjs/ku4-form.cjs.entry.js +3 -3
  20. package/dist/cjs/ku4-grid.cjs.entry.js +1 -1
  21. package/dist/cjs/ku4-label.cjs.entry.js +2 -2
  22. package/dist/cjs/ku4-mask.cjs.entry.js +2 -2
  23. package/dist/cjs/ku4-modal.cjs.entry.js +3 -3
  24. package/dist/cjs/ku4-panel.cjs.entry.js +1 -1
  25. package/dist/cjs/ku4-preview.cjs.entry.js +43 -14
  26. package/dist/cjs/ku4-tab-list.cjs.entry.js +4 -4
  27. package/dist/cjs/ku4-tab-panel.cjs.entry.js +3 -3
  28. package/dist/cjs/ku4-tab.cjs.entry.js +3 -3
  29. package/dist/cjs/ku4-table.cjs.entry.js +1 -1
  30. package/dist/cjs/ku4-tooltip.cjs.entry.js +2 -2
  31. package/dist/cjs/ku4-validation.cjs.entry.js +2 -2
  32. package/dist/cjs/ku4web-components.cjs.js +103 -8
  33. package/dist/cjs/loader.cjs.js +19 -3
  34. package/dist/cjs/{shadow-css-78860e39.js → shadow-css-546083ef.js} +1 -1
  35. package/dist/cjs/{uid-97baaecc.js → uid-65cb3869.js} +1 -1
  36. package/dist/cjs/uid-8ec2f63e.js +11 -0
  37. package/dist/collection/capabilities/a11y/aria.js +26 -0
  38. package/dist/collection/capabilities/angular/index.js +24 -0
  39. package/dist/collection/capabilities/decorators/deprecated.js +20 -0
  40. package/dist/collection/capabilities/decorators/index.js +3 -0
  41. package/dist/collection/capabilities/decorators/memoize.js +7 -0
  42. package/dist/collection/capabilities/dom/isFocusable.js +7 -0
  43. package/dist/collection/capabilities/dom/queryFocusable.js +2 -0
  44. package/dist/collection/capabilities/identity/uid.js +6 -0
  45. package/dist/collection/capabilities/mask/index.js +5 -0
  46. package/dist/collection/capabilities/mask/patterns/date.js +40 -0
  47. package/dist/collection/capabilities/mask/patterns/index.js +7 -0
  48. package/dist/collection/capabilities/react/index.js +25 -0
  49. package/dist/collection/capabilities/testing/html.js +14 -0
  50. package/dist/collection/capabilities/testing/styles.js +14 -0
  51. package/dist/collection/capabilities/vue/index.js +28 -0
  52. package/dist/collection/capabilities/vue3/index.js +26 -0
  53. package/dist/collection/collection-manifest.json +31 -0
  54. package/dist/collection/components/ku4-carousel/ku4-carousel.css +221 -0
  55. package/dist/collection/components/ku4-carousel/ku4-carousel.js +369 -0
  56. package/dist/collection/components/ku4-carousel-controls/ku4-carousel-controls.css +32 -0
  57. package/dist/collection/components/ku4-carousel-controls/ku4-carousel-controls.js +112 -0
  58. package/dist/collection/components/ku4-carousel-slide/ku4-carousel-slide.css +3 -0
  59. package/dist/collection/components/ku4-carousel-slide/ku4-carousel-slide.js +159 -0
  60. package/dist/collection/components/ku4-col/ku4-col.css +601 -0
  61. package/dist/collection/components/ku4-col/ku4-col.js +288 -0
  62. package/dist/collection/components/ku4-drawer/ku4-drawer.css +56 -0
  63. package/dist/collection/components/ku4-drawer/ku4-drawer.js +163 -0
  64. package/dist/collection/components/ku4-feature/ku4-feature.js +70 -0
  65. package/dist/collection/components/ku4-focus-trap/ku4-focus-trap.css +3 -0
  66. package/dist/collection/components/ku4-focus-trap/ku4-focus-trap.js +441 -0
  67. package/dist/collection/components/ku4-form/ku4-form.js +225 -0
  68. package/dist/collection/components/ku4-grid/ku4-grid.css +751 -0
  69. package/dist/collection/components/ku4-grid/ku4-grid.js +408 -0
  70. package/dist/collection/components/ku4-label/ku4-label.css +36 -0
  71. package/dist/collection/components/ku4-label/ku4-label.js +115 -0
  72. package/dist/collection/components/ku4-mask/ku4-mask.css +3 -0
  73. package/dist/collection/components/ku4-mask/ku4-mask.js +458 -0
  74. package/dist/collection/components/ku4-modal/ku4-modal.css +85 -0
  75. package/dist/collection/components/ku4-modal/ku4-modal.js +208 -0
  76. package/dist/collection/components/ku4-panel/ku4-panel.css +14 -0
  77. package/dist/collection/components/ku4-panel/ku4-panel.js +119 -0
  78. package/dist/collection/components/ku4-preview/ku4-preview.css +23 -0
  79. package/dist/collection/components/ku4-preview/ku4-preview.js +266 -0
  80. package/dist/collection/components/ku4-tab/ku4-tab.css +82 -0
  81. package/dist/collection/components/ku4-tab/ku4-tab.js +191 -0
  82. package/dist/collection/components/ku4-tab-list/ku4-tab-list.css +6 -0
  83. package/dist/collection/components/ku4-tab-list/ku4-tab-list.js +118 -0
  84. package/dist/collection/components/ku4-tab-panel/ku4-tab-panel.css +26 -0
  85. package/dist/collection/components/ku4-tab-panel/ku4-tab-panel.js +166 -0
  86. package/dist/collection/components/ku4-table/ku4-table.css +116 -0
  87. package/dist/collection/components/ku4-table/ku4-table.js +120 -0
  88. package/dist/collection/components/ku4-tooltip/ku4-tooltip.css +56 -0
  89. package/dist/collection/components/ku4-tooltip/ku4-tooltip.js +274 -0
  90. package/dist/collection/components/ku4-validation/ku4-validation.css +19 -0
  91. package/dist/collection/components/ku4-validation/ku4-validation.js +364 -0
  92. package/dist/collection/components/ku4-validation/validate.js +14 -0
  93. package/dist/collection/index.js +1 -0
  94. package/dist/collection/security.js +27 -0
  95. package/dist/esm/app-globals-0f993ce5.js +3 -0
  96. package/dist/esm/css-shim-5697df59.js +4 -0
  97. package/dist/esm/dom-1d32cb7b.js +73 -0
  98. package/dist/esm/index-135dacad.js +3 -0
  99. package/dist/esm/{index-81a98b72.js → index-45c399b0.js} +1 -1
  100. package/dist/esm/{index-bdb0771a.js → index-49940d9d.js} +1 -1
  101. package/dist/esm/index-52b04dce.js +3057 -0
  102. package/dist/esm/index-bbaf160c.js +3 -0
  103. package/dist/esm/index-f13d1b41.js +3 -0
  104. package/dist/esm/ku4-carousel-controls.entry.js +6 -6
  105. package/dist/esm/ku4-carousel-slide.entry.js +1 -1
  106. package/dist/esm/ku4-carousel.entry.js +14 -7
  107. package/dist/esm/ku4-col.entry.js +1 -1
  108. package/dist/esm/ku4-drawer.entry.js +1 -1
  109. package/dist/esm/ku4-feature.entry.js +2 -2
  110. package/dist/esm/ku4-focus-trap.entry.js +3 -3
  111. package/dist/esm/ku4-form.entry.js +3 -3
  112. package/dist/esm/ku4-grid.entry.js +1 -1
  113. package/dist/esm/ku4-label.entry.js +2 -2
  114. package/dist/esm/ku4-mask.entry.js +2 -2
  115. package/dist/esm/ku4-modal.entry.js +3 -3
  116. package/dist/esm/ku4-panel.entry.js +1 -1
  117. package/dist/esm/ku4-preview.entry.js +34 -5
  118. package/dist/esm/ku4-tab-list.entry.js +4 -4
  119. package/dist/esm/ku4-tab-panel.entry.js +3 -3
  120. package/dist/esm/ku4-tab.entry.js +3 -3
  121. package/dist/esm/ku4-table.entry.js +1 -1
  122. package/dist/esm/ku4-tooltip.entry.js +2 -2
  123. package/dist/esm/ku4-validation.entry.js +2 -2
  124. package/dist/esm/ku4web-components.js +103 -8
  125. package/dist/esm/loader.js +19 -3
  126. package/dist/esm/polyfills/css-shim.js +1 -1
  127. package/dist/esm/{shadow-css-4d56fa31.js → shadow-css-dfa0587f.js} +1 -1
  128. package/dist/esm/{uid-1ec3509b.js → uid-18bb1d2b.js} +1 -1
  129. package/dist/esm/uid-a7ff854d.js +9 -0
  130. package/dist/esm-es5/{index-81a98b72.js → index-45c399b0.js} +1 -1
  131. package/dist/esm-es5/{index-bdb0771a.js → index-49940d9d.js} +1 -1
  132. package/dist/esm-es5/{index-316624d1.js → index-bbaf160c.js} +1 -1
  133. package/dist/esm-es5/ku4-carousel-controls.entry.js +1 -1
  134. package/dist/esm-es5/ku4-carousel-slide.entry.js +1 -1
  135. package/dist/esm-es5/ku4-carousel.entry.js +1 -1
  136. package/dist/esm-es5/ku4-col.entry.js +1 -1
  137. package/dist/esm-es5/ku4-drawer.entry.js +1 -1
  138. package/dist/esm-es5/ku4-feature.entry.js +1 -1
  139. package/dist/esm-es5/ku4-focus-trap.entry.js +1 -1
  140. package/dist/esm-es5/ku4-form.entry.js +1 -1
  141. package/dist/esm-es5/ku4-grid.entry.js +1 -1
  142. package/dist/esm-es5/ku4-label.entry.js +1 -1
  143. package/dist/esm-es5/ku4-mask.entry.js +1 -1
  144. package/dist/esm-es5/ku4-modal.entry.js +1 -1
  145. package/dist/esm-es5/ku4-panel.entry.js +1 -1
  146. package/dist/esm-es5/ku4-preview.entry.js +1 -1
  147. package/dist/esm-es5/ku4-tab-list.entry.js +1 -1
  148. package/dist/esm-es5/ku4-tab-panel.entry.js +1 -1
  149. package/dist/esm-es5/ku4-tab.entry.js +1 -1
  150. package/dist/esm-es5/ku4-table.entry.js +1 -1
  151. package/dist/esm-es5/ku4-tooltip.entry.js +1 -1
  152. package/dist/esm-es5/ku4-validation.entry.js +1 -1
  153. package/dist/esm-es5/ku4web-components.js +1 -1
  154. package/dist/esm-es5/loader.js +1 -1
  155. package/dist/esm-es5/{shadow-css-4d56fa31.js → shadow-css-dfa0587f.js} +0 -0
  156. package/dist/esm-es5/uid-18bb1d2b.js +1 -0
  157. package/dist/index.js +1 -1
  158. package/dist/ku4web-components/app-globals-0f993ce5.js +3 -0
  159. package/dist/ku4web-components/app-globals-497eb362.system.js +1 -0
  160. package/dist/ku4web-components/css-shim-2eb8ce1f.system.js +1 -0
  161. package/dist/ku4web-components/css-shim-5697df59.js +4 -0
  162. package/dist/ku4web-components/dom-1d32cb7b.js +73 -0
  163. package/dist/ku4web-components/dom-e6a9d306.system.js +21 -0
  164. package/dist/ku4web-components/index-135dacad.js +3 -0
  165. package/dist/ku4web-components/index-4036ffa2.system.js +1 -0
  166. package/dist/ku4web-components/index-52b04dce.js +3057 -0
  167. package/dist/ku4web-components/index-9bb2580f.system.js +1 -0
  168. package/dist/ku4web-components/index-dcd9a8a7.system.js +1 -0
  169. package/dist/ku4web-components/index-f13d1b41.js +3 -0
  170. package/dist/ku4web-components/index.esm.js +1 -0
  171. package/dist/ku4web-components/index.system.js +1 -0
  172. package/dist/ku4web-components/ku4-carousel-controls.entry.js +89 -0
  173. package/dist/ku4web-components/ku4-carousel-controls.system.entry.js +1 -0
  174. package/dist/ku4web-components/ku4-carousel-slide.entry.js +47 -0
  175. package/dist/ku4web-components/ku4-carousel-slide.system.entry.js +1 -0
  176. package/dist/ku4web-components/ku4-carousel.entry.js +175 -0
  177. package/dist/ku4web-components/ku4-carousel.system.entry.js +1 -0
  178. package/dist/ku4web-components/ku4-col.entry.js +75 -0
  179. package/dist/ku4web-components/ku4-col.system.entry.js +1 -0
  180. package/dist/ku4web-components/ku4-drawer.entry.js +35 -0
  181. package/dist/ku4web-components/ku4-drawer.system.entry.js +1 -0
  182. package/dist/ku4web-components/ku4-feature.entry.js +29 -0
  183. package/dist/ku4web-components/ku4-feature.system.entry.js +1 -0
  184. package/dist/ku4web-components/ku4-focus-trap.entry.js +323 -0
  185. package/dist/ku4web-components/ku4-focus-trap.system.entry.js +1 -0
  186. package/dist/ku4web-components/ku4-form.entry.js +112 -0
  187. package/dist/ku4web-components/ku4-form.system.entry.js +1 -0
  188. package/dist/ku4web-components/ku4-grid.entry.js +108 -0
  189. package/dist/ku4web-components/ku4-grid.system.entry.js +1 -0
  190. package/dist/ku4web-components/ku4-label.entry.js +70 -0
  191. package/dist/ku4web-components/ku4-label.system.entry.js +1 -0
  192. package/dist/ku4web-components/ku4-mask.entry.js +342 -0
  193. package/dist/ku4web-components/ku4-mask.system.entry.js +1 -0
  194. package/dist/ku4web-components/ku4-modal.entry.js +75 -0
  195. package/dist/ku4web-components/ku4-modal.system.entry.js +1 -0
  196. package/dist/ku4web-components/ku4-panel.entry.js +49 -0
  197. package/dist/ku4web-components/ku4-panel.system.entry.js +1 -0
  198. package/dist/ku4web-components/ku4-preview.entry.js +128 -0
  199. package/dist/ku4web-components/ku4-preview.system.entry.js +1 -0
  200. package/dist/ku4web-components/ku4-tab-list.entry.js +76 -0
  201. package/dist/ku4web-components/ku4-tab-list.system.entry.js +1 -0
  202. package/dist/ku4web-components/ku4-tab-panel.entry.js +72 -0
  203. package/dist/ku4web-components/ku4-tab-panel.system.entry.js +1 -0
  204. package/dist/ku4web-components/ku4-tab.entry.js +63 -0
  205. package/dist/ku4web-components/ku4-tab.system.entry.js +1 -0
  206. package/dist/ku4web-components/ku4-table.entry.js +79 -0
  207. package/dist/ku4web-components/ku4-table.system.entry.js +1 -0
  208. package/dist/ku4web-components/ku4-tooltip.entry.js +120 -0
  209. package/dist/ku4web-components/ku4-tooltip.system.entry.js +1 -0
  210. package/dist/ku4web-components/ku4-validation.entry.js +162 -0
  211. package/dist/ku4web-components/ku4-validation.system.entry.js +1 -0
  212. package/dist/ku4web-components/ku4web-components.css +299 -1
  213. package/dist/ku4web-components/ku4web-components.esm.js +129 -1
  214. package/dist/ku4web-components/ku4web-components.js +1 -1
  215. package/dist/ku4web-components/ku4web-components.system.js +1 -0
  216. package/dist/ku4web-components/{p-0adeb8e4.entry.js → p-005353c6.entry.js} +1 -1
  217. package/dist/ku4web-components/{p-66b8247f.entry.js → p-09f09ad6.entry.js} +1 -1
  218. package/dist/ku4web-components/{p-6b9e3523.system.entry.js → p-09f10910.system.entry.js} +1 -1
  219. package/dist/ku4web-components/{p-32e9a8d0.system.entry.js → p-0d156607.system.entry.js} +1 -1
  220. package/dist/ku4web-components/p-0eae47a2.entry.js +1 -0
  221. package/dist/ku4web-components/{p-818caf0f.entry.js → p-1380f375.entry.js} +1 -1
  222. package/dist/ku4web-components/{p-95698618.system.entry.js → p-138904dc.system.entry.js} +1 -1
  223. package/dist/ku4web-components/{p-acb43765.system.entry.js → p-1cdd4c7f.system.entry.js} +1 -1
  224. package/dist/ku4web-components/{p-61214088.entry.js → p-1fbc37de.entry.js} +1 -1
  225. package/dist/ku4web-components/{p-5fcea805.entry.js → p-20d3e65d.entry.js} +1 -1
  226. package/dist/ku4web-components/{p-6cfd9011.system.entry.js → p-24bf4b99.system.entry.js} +1 -1
  227. package/dist/ku4web-components/p-2c059443.js +1 -0
  228. package/dist/ku4web-components/{p-5f9d0077.entry.js → p-38453b51.entry.js} +1 -1
  229. package/dist/ku4web-components/{p-7bfc256a.system.entry.js → p-3b70ff65.system.entry.js} +1 -1
  230. package/dist/ku4web-components/{p-e6b3a708.js → p-42dd73f2.js} +1 -1
  231. package/dist/ku4web-components/{p-136e5a03.system.entry.js → p-4d4d3cc4.system.entry.js} +1 -1
  232. package/dist/ku4web-components/{p-097ba217.entry.js → p-509b8f00.entry.js} +1 -1
  233. package/dist/ku4web-components/{p-073cefec.system.entry.js → p-53605e68.system.entry.js} +1 -1
  234. package/dist/ku4web-components/{p-050f184b.system.entry.js → p-5a60b1d4.system.entry.js} +1 -1
  235. package/dist/ku4web-components/{p-3a0d1ff7.system.entry.js → p-5a6bad52.system.entry.js} +1 -1
  236. package/dist/ku4web-components/{p-a0d0c99e.system.entry.js → p-5c6c6207.system.entry.js} +1 -1
  237. package/dist/ku4web-components/{p-881e100a.js → p-5e796581.js} +0 -0
  238. package/dist/ku4web-components/{p-ba9edd72.js → p-6d2e8227.js} +1 -1
  239. package/dist/ku4web-components/{p-f3fbe1e6.entry.js → p-72219668.entry.js} +1 -1
  240. package/dist/ku4web-components/{p-596beaad.system.entry.js → p-774dbc9e.system.entry.js} +1 -1
  241. package/dist/ku4web-components/{p-96ec7b4f.system.js → p-829fb4ce.system.js} +1 -1
  242. package/dist/ku4web-components/{p-fbf3ad1e.system.js → p-8b2d8a2a.system.js} +0 -0
  243. package/dist/ku4web-components/{p-c3293202.system.js → p-8bf22b59.system.js} +1 -1
  244. package/dist/ku4web-components/p-955c91e2.system.js +1 -0
  245. package/dist/ku4web-components/{p-288482da.system.entry.js → p-9ba0f967.system.entry.js} +1 -1
  246. package/dist/ku4web-components/{p-49275772.entry.js → p-a5f54bc0.entry.js} +1 -1
  247. package/dist/ku4web-components/{p-d848909c.system.entry.js → p-a61f7c42.system.entry.js} +1 -1
  248. package/dist/ku4web-components/{p-1d5a1caf.system.entry.js → p-ac73d0e7.system.entry.js} +1 -1
  249. package/dist/ku4web-components/{p-189cde73.js → p-b4f47084.js} +1 -1
  250. package/dist/ku4web-components/{p-ea4b32de.system.entry.js → p-bd83ef31.system.entry.js} +1 -1
  251. package/dist/ku4web-components/{p-02328d34.system.entry.js → p-c0a165e0.system.entry.js} +1 -1
  252. package/dist/ku4web-components/{p-3f4082d5.entry.js → p-c92e1e4b.entry.js} +1 -1
  253. package/dist/ku4web-components/{p-d8868855.entry.js → p-ccf5f75c.entry.js} +1 -1
  254. package/dist/ku4web-components/{p-0f77bef9.system.js → p-d66b1c43.system.js} +1 -1
  255. package/dist/ku4web-components/{p-a352f533.system.js → p-da75dba2.system.js} +1 -1
  256. package/dist/ku4web-components/{p-cd0d0b40.entry.js → p-dd0d306b.entry.js} +1 -1
  257. package/dist/ku4web-components/{p-52d815ab.system.entry.js → p-e550fd09.system.entry.js} +1 -1
  258. package/dist/ku4web-components/{p-3f2a008c.entry.js → p-e8d5dcce.entry.js} +1 -1
  259. package/dist/ku4web-components/{p-b47bb3d0.entry.js → p-ecf06d64.entry.js} +1 -1
  260. package/dist/ku4web-components/p-edeec4c4.entry.js +1 -0
  261. package/dist/ku4web-components/{p-0ce97586.entry.js → p-edfa2aea.entry.js} +1 -1
  262. package/dist/ku4web-components/{p-8642aef5.entry.js → p-ef0b529f.entry.js} +1 -1
  263. package/dist/ku4web-components/{p-c798faf2.entry.js → p-f2a603c3.entry.js} +1 -1
  264. package/dist/ku4web-components/{p-fc0c3bf4.system.entry.js → p-f6ba4337.system.entry.js} +1 -1
  265. package/dist/ku4web-components/{p-3f147a02.entry.js → p-fd6bcdde.entry.js} +1 -1
  266. package/dist/ku4web-components/{p-524cef27.system.entry.js → p-fdd14ecc.system.entry.js} +1 -1
  267. package/dist/ku4web-components/shadow-css-6a0a96e7.system.js +13 -0
  268. package/dist/ku4web-components/shadow-css-dfa0587f.js +388 -0
  269. package/dist/ku4web-components/uid-3373ce49.system.js +1 -0
  270. package/dist/ku4web-components/uid-a7ff854d.js +9 -0
  271. package/dist/types/components/ku4-carousel/ku4-carousel.d.ts +3 -2
  272. package/dist/types/components.d.ts +2 -2
  273. package/package.json +26 -26
  274. package/react/index.js +1 -1
  275. package/react/index.mjs +1 -1
  276. package/vue/index.js +1 -1
  277. package/vue/index.mjs +1 -1
  278. package/vue3/index.js +1 -1
  279. package/vue3/index.mjs +1 -1
  280. package/dist/cjs/index-a530dbc9.js +0 -10
  281. package/dist/esm/index-316624d1.js +0 -3
  282. package/dist/esm-es5/uid-1ec3509b.js +0 -1
  283. package/dist/ku4web-components/p-17d548db.js +0 -1
  284. package/dist/ku4web-components/p-cd4cdcbb.entry.js +0 -1
  285. package/dist/ku4web-components/p-d17f65a6.entry.js +0 -1
  286. package/dist/ku4web-components/p-db3040f3.system.js +0 -1
@@ -1 +1 @@
1
- import{r as t,h as i,H as s,g as e}from"./p-e6b3a708.js";const n=class{constructor(i){t(this,i),this.open=!1,this.maxHeight=this.open?"none":"0px"}openHandler(t){t?this.maxHeight=`${this.host.scrollHeight}px`:(this.host.style.maxHeight=`${this.host.scrollHeight}px`,this.maxHeight="0px")}handleTransitionEnd(){this.maxHeight=this.open?"none":"0px"}async toggle(){this.open=!this.open}async close(){this.open=!1}render(){const{open:t,maxHeight:e}=this;return i(s,{"aria-hidden":t?"false":"true",tabIndex:t?0:-1,style:{maxHeight:e}},i("slot",null))}get host(){return e(this)}static get watchers(){return{open:["openHandler"]}}};n.style=":host{-webkit-backface-visibility:hidden;display:block;width:100%;height:auto;max-height:0;-webkit-transition:max-height 0.4s, padding 0.6s;transition:max-height 0.4s, padding 0.6s;overflow:hidden}:host([open]){padding-top:inherit;padding-bottom:inherit}";export{n as ku4_panel}
1
+ import{r as t,h as i,H as s,g as e}from"./p-42dd73f2.js";const n=class{constructor(i){t(this,i),this.open=!1,this.maxHeight=this.open?"none":"0px"}openHandler(t){t?this.maxHeight=`${this.host.scrollHeight}px`:(this.host.style.maxHeight=`${this.host.scrollHeight}px`,this.maxHeight="0px")}handleTransitionEnd(){this.maxHeight=this.open?"none":"0px"}async toggle(){this.open=!this.open}async close(){this.open=!1}render(){const{open:t,maxHeight:e}=this;return i(s,{"aria-hidden":t?"false":"true",tabIndex:t?0:-1,style:{maxHeight:e}},i("slot",null))}get host(){return e(this)}static get watchers(){return{open:["openHandler"]}}};n.style=":host{-webkit-backface-visibility:hidden;display:block;width:100%;height:auto;max-height:0;-webkit-transition:max-height 0.4s, padding 0.6s;transition:max-height 0.4s, padding 0.6s;overflow:hidden}:host([open]){padding-top:inherit;padding-bottom:inherit}";export{n as ku4_panel}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,a){function s(t){try{u(n.next(t))}catch(e){a(e)}}function o(t){try{u(n["throw"](t))}catch(e){a(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,o)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return u([t,e])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(s[0]===6&&r.label<a[1]){r.label=a[1];a=s;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(s);break}if(a[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(o){s=[6,o];i=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++){if(a||!(n in e)){if(!a)a=Array.prototype.slice.call(e,0,n);a[n]=e[n]}}return t.concat(a||Array.prototype.slice.call(e))};System.register(["./p-96ec7b4f.system.js","./p-c3293202.system.js","./p-a352f533.system.js"],(function(t){"use strict";var e,r,n,i,a,s,o;return{setters:[function(t){e=t.r;r=t.h;n=t.g},function(t){i=t.t;a=t.o},function(t){s=t.E;o=t.K}],execute:function(){var u=function(t,e){if(!e){t.forEach((function(t){if(!t.currentAriaHidden){t.removeAttribute("aria-hidden")}else{t.setAttribute("aria-hidden",t.currentAriaHidden)}}))}else{t.forEach((function(t){t.currentAriaHidden=t.getAttribute("aria-hidden");t.setAttribute("aria-hidden",e)}))}};var l=["A","BUTTON","INPUT","SELECT","TEXTAREA"];var c=function(t){var e=t.getAttribute("tabindex");return(l.includes(t.tagName.toUpperCase())||t.getAttribute("href"))&&(!e||isNaN(e)||parseInt(e)>-1)};var h=function(t){return[].slice.call(t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))};var d=function(t){return[].slice.call(t.querySelectorAll(':not([tabindex="-1"])'))};var f=":host{position:static}";var p=o.tab;var v=o.tab.shift;var m=o.tab.alt;var y=o.tab.alt.shift;var E=t("ku4_focus_trap",function(){function t(t){e(this,t);this.iframes=[];this.active=false;this.handleKeyDown=this.handleKeyDown.bind(this);this.handleKeyUp=this.handleKeyUp.bind(this);this.handleMouse=this.handleMouse.bind(this)}t.prototype.activeHandler=function(t){t?this.handleActivate():this.handleDeactivate()};t.prototype.activate=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.lastActiveElement=t||document.querySelector(this.return||null);this.active=true;return[2]}))}))};t.prototype.deactivate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.active=false;return[2]}))}))};t.prototype.handleActivate=function(){var t=this;this.lastActiveElement=this.lastActiveElement||document.activeElement;if(this.lastActiveElement&&this.lastActiveElement.blur){this.lastActiveElement.blur()}this.addEventListeners(this.elements);u(this.outerElements,true);window.requestAnimationFrame((function(){var e=document.querySelector(t.initial||null)||t.focusableElements[0]||t.trapElements[0];e.blur();e.focus();t.activateTraps()}))};t.prototype.handleDeactivate=function(){this.removeEventListeners(this.elements);this.deactivateTraps();u(this.outerElements);if(this.lastActiveElement&&this.lastActiveElement.focus){this.lastActiveElement.focus()}this.lastActiveElement=null};t.prototype.handleKeyDown=function(t){if(v.didFire(t)||y.didFire(t)){try{if(this.iframes.length>0&&(this.trapElements[1]===t.target||!i.isNull(t.target.getAttribute("ku4-focus-wrap"))||this.iframes.some((function(e){return e.contains(t.target)})))){return}if(this.trapElements[0]===t.target){this.trapElements[1].focus();return s.mute(t)}var e=this.focusableElements.indexOf(t.target)-1;var r=e<0?this.focusableElements.length-1:e;this.focusableElements[r].focus();return s.mute(t)}catch(t){return s.mute(t)}}if(p.didFire(t)||m.didFire(t)){try{if(this.iframes.length>0&&(this.trapElements[0]===t.target||!i.isNull(t.target.getAttribute("ku4-focus-wrap"))||this.iframes.some((function(e){return e.contains(t.target)})))){return}if(this.trapElements[1]===t.target){this.trapElements[0].focus();return s.mute(t)}var e=this.focusableElements.indexOf(t.target)+1;var r=e>=this.focusableElements.length?0:e;this.focusableElements[r].focus();return s.mute(t)}catch(t){return s.mute(t)}}};t.prototype.handleKeyUp=function(t){var e=this.trapElements.indexOf(t.target);if(e===0&&(v.didFire(t)||y.didFire(t))){var r=this.focusableElements[this.focusableElements.length-1]||this.trapElements[1];r.focus();return s.mute(t)}if(e===1&&(p.didFire(t)||m.didFire(t))){var r=this.focusableElements[0]||this.trapElements[0];r.focus();return s.mute(t)}};t.prototype.handleMouse=function(t){if(!this.elements.some((function(e){return e===t.target}))){s.mute(t)}};t.prototype.addEventListeners=function(t){var e=this;t.forEach((function(t){return t.addEventListener("keydown",e.handleKeyDown,{passive:true})}));t.forEach((function(t){return t.addEventListener("keyup",e.handleKeyUp,{passive:true})}));window.addEventListener("click",this.handleMouse,{passive:true});window.addEventListener("mousedown",this.handleMouse,{passive:true});window.addEventListener("mouseup",this.handleMouse,{passive:true});window.addEventListener("touchstart",this.handleMouse,{passive:true})};t.prototype.removeEventListeners=function(t){var e=this;t.forEach((function(t){return t.removeEventListener("keydown",e.handleKeyDown,true)}));t.forEach((function(t){return t.removeEventListener("keyup",e.handleKeyUp,true)}));window.removeEventListener("click",this.handleMouse,true);window.removeEventListener("mousedown",this.handleMouse,true);window.removeEventListener("mouseup",this.handleMouse,true);window.addEventListener("touchstart",this.handleMouse,true)};t.prototype.activateTraps=function(){this.setTraps(0)};t.prototype.deactivateTraps=function(){this.setTraps(-1)};t.prototype.setTraps=function(t){[].slice.call(this.host.querySelectorAll("[ku4-focus-trap], [ku4-focus-wrap]")).forEach((function(e){return e.setAttribute("tabindex",t)}))};t.prototype.wrap=function(t){var e=document.createDocumentFragment();e.appendChild(this.createWrapTag());e.appendChild(t.cloneNode());e.appendChild(this.createWrapTag());t.parentNode.replaceChild(e,t)};t.prototype.createTrapTag=function(){return this.createTag("ku4-focus-trap")};t.prototype.createWrapTag=function(){return this.createTag("ku4-focus-wrap")};t.prototype.createTag=function(t){var e=document.createElement("button");e.setAttribute(t,"");e.setAttribute("tabindex","0");e.setAttribute("aria-hidden","true");e.style.position="static";e.style.display="block";e.style.width="0";e.style.height="0";e.style.margin="0";e.style.padding="0";e.style.border="none";e.style.outline="none";return e};t.prototype.initialize=function(){var t=this;var e=[].slice.call(this.host.querySelectorAll("*"));var r=[].slice.call(document.querySelectorAll(this.include||null)||[]);var n=[].slice.call(document.querySelectorAll(this.exclude)||[]);var s=[];(this.excludeShadow||"").split(",").forEach((function(t){if(i.isNullOrEmpty(t)){return}try{var e=t.trim().replace(/\s/,"|").split("|");var r=document.querySelector(e[0]).shadowRoot.querySelectorAll(e[1]);s=s.concat([].slice.call(r||[]))}catch(n){console.error("Invalid shadow selector",t)}}));this.iframes=[].slice.call(this.host.querySelectorAll("iframe")||[]);this.iframes.forEach((function(e){return t.wrap(e)}));this.elements=a(__spreadArray(__spreadArray([],d(this.host),true),r,true));this.focusableElements=this.elements.reduce((function(e,r){if(c(r)&&!t.trapElements.includes(r)){e.push(r)}return e}),[]);this.outerElements=__spreadArray(__spreadArray(__spreadArray([],h(document.body),true),n,true),s,true).filter((function(n){return!(n===t.host||e.includes(n)||r.includes(n))}))};t.prototype.componentDidLoad=function(){var t=this.createTrapTag();var e=this.createTrapTag();this.trapElements=[t,e];this.host.insertBefore(t,this.host.firstChild);this.host.appendChild(e);this.initialize();if(this.active){this.handleActivate()}else{this.handleDeactivate()}};t.prototype.disconnectedCallback=function(){if(this.active){this.handleDeactivate()}};t.prototype.render=function(){return r("slot",null)};Object.defineProperty(t.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["activeHandler"]}},enumerable:false,configurable:true});return t}());E.style=f}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,a){function s(t){try{u(n.next(t))}catch(e){a(e)}}function o(t){try{u(n["throw"](t))}catch(e){a(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,o)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return u([t,e])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(s[0]===6&&r.label<a[1]){r.label=a[1];a=s;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(s);break}if(a[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(o){s=[6,o];i=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++){if(a||!(n in e)){if(!a)a=Array.prototype.slice.call(e,0,n);a[n]=e[n]}}return t.concat(a||Array.prototype.slice.call(e))};System.register(["./p-829fb4ce.system.js","./p-8bf22b59.system.js","./p-da75dba2.system.js"],(function(t){"use strict";var e,r,n,i,a,s,o;return{setters:[function(t){e=t.r;r=t.h;n=t.g},function(t){i=t.t;a=t.o},function(t){s=t.E;o=t.K}],execute:function(){var u=function(t,e){if(!e){t.forEach((function(t){if(!t.currentAriaHidden){t.removeAttribute("aria-hidden")}else{t.setAttribute("aria-hidden",t.currentAriaHidden)}}))}else{t.forEach((function(t){t.currentAriaHidden=t.getAttribute("aria-hidden");t.setAttribute("aria-hidden",e)}))}};var l=["A","BUTTON","INPUT","SELECT","TEXTAREA"];var c=function(t){var e=t.getAttribute("tabindex");return(l.includes(t.tagName.toUpperCase())||t.getAttribute("href"))&&(!e||isNaN(e)||parseInt(e)>-1)};var h=function(t){return[].slice.call(t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))};var d=function(t){return[].slice.call(t.querySelectorAll(':not([tabindex="-1"])'))};var f=":host{position:static}";var p=o.tab;var v=o.tab.shift;var m=o.tab.alt;var y=o.tab.alt.shift;var E=t("ku4_focus_trap",function(){function t(t){e(this,t);this.iframes=[];this.active=false;this.handleKeyDown=this.handleKeyDown.bind(this);this.handleKeyUp=this.handleKeyUp.bind(this);this.handleMouse=this.handleMouse.bind(this)}t.prototype.activeHandler=function(t){t?this.handleActivate():this.handleDeactivate()};t.prototype.activate=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.lastActiveElement=t||document.querySelector(this.return||null);this.active=true;return[2]}))}))};t.prototype.deactivate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.active=false;return[2]}))}))};t.prototype.handleActivate=function(){var t=this;this.lastActiveElement=this.lastActiveElement||document.activeElement;if(this.lastActiveElement&&this.lastActiveElement.blur){this.lastActiveElement.blur()}this.addEventListeners(this.elements);u(this.outerElements,true);window.requestAnimationFrame((function(){var e=document.querySelector(t.initial||null)||t.focusableElements[0]||t.trapElements[0];e.blur();e.focus();t.activateTraps()}))};t.prototype.handleDeactivate=function(){this.removeEventListeners(this.elements);this.deactivateTraps();u(this.outerElements);if(this.lastActiveElement&&this.lastActiveElement.focus){this.lastActiveElement.focus()}this.lastActiveElement=null};t.prototype.handleKeyDown=function(t){if(v.didFire(t)||y.didFire(t)){try{if(this.iframes.length>0&&(this.trapElements[1]===t.target||!i.isNull(t.target.getAttribute("ku4-focus-wrap"))||this.iframes.some((function(e){return e.contains(t.target)})))){return}if(this.trapElements[0]===t.target){this.trapElements[1].focus();return s.mute(t)}var e=this.focusableElements.indexOf(t.target)-1;var r=e<0?this.focusableElements.length-1:e;this.focusableElements[r].focus();return s.mute(t)}catch(t){return s.mute(t)}}if(p.didFire(t)||m.didFire(t)){try{if(this.iframes.length>0&&(this.trapElements[0]===t.target||!i.isNull(t.target.getAttribute("ku4-focus-wrap"))||this.iframes.some((function(e){return e.contains(t.target)})))){return}if(this.trapElements[1]===t.target){this.trapElements[0].focus();return s.mute(t)}var e=this.focusableElements.indexOf(t.target)+1;var r=e>=this.focusableElements.length?0:e;this.focusableElements[r].focus();return s.mute(t)}catch(t){return s.mute(t)}}};t.prototype.handleKeyUp=function(t){var e=this.trapElements.indexOf(t.target);if(e===0&&(v.didFire(t)||y.didFire(t))){var r=this.focusableElements[this.focusableElements.length-1]||this.trapElements[1];r.focus();return s.mute(t)}if(e===1&&(p.didFire(t)||m.didFire(t))){var r=this.focusableElements[0]||this.trapElements[0];r.focus();return s.mute(t)}};t.prototype.handleMouse=function(t){if(!this.elements.some((function(e){return e===t.target}))){s.mute(t)}};t.prototype.addEventListeners=function(t){var e=this;t.forEach((function(t){return t.addEventListener("keydown",e.handleKeyDown,{passive:true})}));t.forEach((function(t){return t.addEventListener("keyup",e.handleKeyUp,{passive:true})}));window.addEventListener("click",this.handleMouse,{passive:true});window.addEventListener("mousedown",this.handleMouse,{passive:true});window.addEventListener("mouseup",this.handleMouse,{passive:true});window.addEventListener("touchstart",this.handleMouse,{passive:true})};t.prototype.removeEventListeners=function(t){var e=this;t.forEach((function(t){return t.removeEventListener("keydown",e.handleKeyDown,true)}));t.forEach((function(t){return t.removeEventListener("keyup",e.handleKeyUp,true)}));window.removeEventListener("click",this.handleMouse,true);window.removeEventListener("mousedown",this.handleMouse,true);window.removeEventListener("mouseup",this.handleMouse,true);window.addEventListener("touchstart",this.handleMouse,true)};t.prototype.activateTraps=function(){this.setTraps(0)};t.prototype.deactivateTraps=function(){this.setTraps(-1)};t.prototype.setTraps=function(t){[].slice.call(this.host.querySelectorAll("[ku4-focus-trap], [ku4-focus-wrap]")).forEach((function(e){return e.setAttribute("tabindex",t)}))};t.prototype.wrap=function(t){var e=document.createDocumentFragment();e.appendChild(this.createWrapTag());e.appendChild(t.cloneNode());e.appendChild(this.createWrapTag());t.parentNode.replaceChild(e,t)};t.prototype.createTrapTag=function(){return this.createTag("ku4-focus-trap")};t.prototype.createWrapTag=function(){return this.createTag("ku4-focus-wrap")};t.prototype.createTag=function(t){var e=document.createElement("button");e.setAttribute(t,"");e.setAttribute("tabindex","0");e.setAttribute("aria-hidden","true");e.style.position="static";e.style.display="block";e.style.width="0";e.style.height="0";e.style.margin="0";e.style.padding="0";e.style.border="none";e.style.outline="none";return e};t.prototype.initialize=function(){var t=this;var e=[].slice.call(this.host.querySelectorAll("*"));var r=[].slice.call(document.querySelectorAll(this.include||null)||[]);var n=[].slice.call(document.querySelectorAll(this.exclude)||[]);var s=[];(this.excludeShadow||"").split(",").forEach((function(t){if(i.isNullOrEmpty(t)){return}try{var e=t.trim().replace(/\s/,"|").split("|");var r=document.querySelector(e[0]).shadowRoot.querySelectorAll(e[1]);s=s.concat([].slice.call(r||[]))}catch(n){console.error("Invalid shadow selector",t)}}));this.iframes=[].slice.call(this.host.querySelectorAll("iframe")||[]);this.iframes.forEach((function(e){return t.wrap(e)}));this.elements=a(__spreadArray(__spreadArray([],d(this.host),true),r,true));this.focusableElements=this.elements.reduce((function(e,r){if(c(r)&&!t.trapElements.includes(r)){e.push(r)}return e}),[]);this.outerElements=__spreadArray(__spreadArray(__spreadArray([],h(document.body),true),n,true),s,true).filter((function(n){return!(n===t.host||e.includes(n)||r.includes(n))}))};t.prototype.componentDidLoad=function(){var t=this.createTrapTag();var e=this.createTrapTag();this.trapElements=[t,e];this.host.insertBefore(t,this.host.firstChild);this.host.appendChild(e);this.initialize();if(this.active){this.handleActivate()}else{this.handleDeactivate()}};t.prototype.disconnectedCallback=function(){if(this.active){this.handleDeactivate()}};t.prototype.render=function(){return r("slot",null)};Object.defineProperty(t.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["activeHandler"]}},enumerable:false,configurable:true});return t}());E.style=f}}}));
@@ -0,0 +1,13 @@
1
+ var __spreadArray=this&&this.__spreadArray||function(r,t,e){if(e||arguments.length===2)for(var n=0,a=t.length,c;n<a;n++){if(c||!(n in t)){if(!c)c=Array.prototype.slice.call(t,0,n);c[n]=t[n]}}return r.concat(c||Array.prototype.slice.call(t))};System.register([],(function(r){"use strict";return{execute:function(){
2
+ /**
3
+ * @license
4
+ * Copyright Google Inc. All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.io/license
8
+ *
9
+ * This file is a port of shadowCSS from webcomponents.js to TypeScript.
10
+ * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
11
+ * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
12
+ */
13
+ var t=function(r){var t=[];var e=0;var n;r=r.replace(/(\[[^\]]*\])/g,(function(r,n){var a="__ph-".concat(e,"__");t.push(n);e++;return a}));n=r.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(function(r,n,a){var c="__ph-".concat(e,"__");t.push(a);e++;return n+c}));var a={content:n,placeholders:t};return a};var e=function(r,t){return t.replace(/__ph-(\d+)__/g,(function(t,e){return r[+e]}))};var n="-shadowcsshost";var a="-shadowcssslotted";var c="-shadowcsscontext";var o=")(?:\\(("+"(?:\\([^)(]*\\)|[^)(]*)+?"+")\\))?([^,{]*)";var s=new RegExp("("+n+o,"gim");var i=new RegExp("("+c+o,"gim");var v=new RegExp("("+a+o,"gim");var u=n+"-no-combinator";var l=/-shadowcsshost-no-combinator([^\s]*)/;var f=[/::shadow/g,/::content/g];var p="([>\\s~+[.,{:][\\s\\S]*)?$";var h=/-shadowcsshost/gim;var g=/:host/gim;var d=/::slotted/gim;var m=/:host-context/gim;var _=/\/\*\s*[\s\S]*?\*\//g;var x=function(r){return r.replace(_,"")};var w=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;var S=function(r){return r.match(w)||[]};var b=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;var W=/([{}])/g;var y=/(^.*?[^\\])??((:+)(.*)|$)/;var O="{";var j="}";var E="%BLOCK%";var R=function(r,t){var e=A(r);var n=0;return e.escapedString.replace(b,(function(){var r=[];for(var a=0;a<arguments.length;a++){r[a]=arguments[a]}var c=r[2];var o="";var s=r[4];var i="";if(s&&s.startsWith("{"+E)){o=e.blocks[n++];s=s.substring(E.length+1);i="{"}var v={selector:c,content:o};var u=t(v);return"".concat(r[1]).concat(u.selector).concat(r[3]).concat(i).concat(u.content).concat(s)}))};var A=function(r){var t=r.split(W);var e=[];var n=[];var a=0;var c=[];for(var o=0;o<t.length;o++){var s=t[o];if(s===j){a--}if(a>0){c.push(s)}else{if(c.length>0){n.push(c.join(""));e.push(E);c=[]}e.push(s)}if(s===O){a++}}if(c.length>0){n.push(c.join(""));e.push(E)}var i={escapedString:e.join(""),blocks:n};return i};var k=function(r){r=r.replace(m,c).replace(g,n).replace(d,a);return r};var T=function(r,t,e){return r.replace(t,(function(){var r=[];for(var t=0;t<arguments.length;t++){r[t]=arguments[t]}if(r[2]){var n=r[2].split(",");var a=[];for(var c=0;c<n.length;c++){var o=n[c].trim();if(!o)break;a.push(e(u,o,r[3]))}return a.join(",")}else{return u+r[3]}}))};var C=function(r,t,e){return r+t.replace(n,"")+e};var L=function(r){return T(r,s,C)};var $=function(r,t,e){if(t.indexOf(n)>-1){return C(r,t,e)}else{return r+t+e+", "+t+" "+r+e}};var B=function(r,t){var e="."+t+" > ";var n=[];r=r.replace(v,(function(){var r=[];for(var t=0;t<arguments.length;t++){r[t]=arguments[t]}if(r[2]){var a=r[2].trim();var c=r[3];var o=e+a+c;var s="";for(var i=r[4]-1;i>=0;i--){var v=r[5][i];if(v==="}"||v===","){break}s=v+s}var l=s+o;var f="".concat(s.trimRight()).concat(o.trim());if(l.trim()!==f.trim()){var p="".concat(f,", ").concat(l);n.push({orgSelector:l,updatedSelector:p})}return o}else{return u+r[3]}}));return{selectors:n,cssText:r}};var I=function(r){return T(r,i,$)};var K=function(r){return f.reduce((function(r,t){return r.replace(t," ")}),r)};var M=function(r){var t=/\[/g;var e=/\]/g;r=r.replace(t,"\\[").replace(e,"\\]");return new RegExp("^("+r+")"+p,"m")};var U=function(r,t){var e=M(t);return!e.test(r)};var q=function(r,t){return r.replace(y,(function(r,e,n,a,c){if(e===void 0){e=""}if(a===void 0){a=""}if(c===void 0){c=""}return e+t+a+c}))};var z=function(r,t,e){h.lastIndex=0;if(h.test(r)){var n=".".concat(e);return r.replace(l,(function(r,t){return q(t,n)})).replace(h,n+" ")}return t+" "+r};var D=function(r,n,a){var c=/\[is=([^\]]*)\]/g;n=n.replace(c,(function(r){var t=[];for(var e=1;e<arguments.length;e++){t[e-1]=arguments[e]}return t[0]}));var o="."+n;var s=function(r){var t=r.trim();if(!t){return""}if(r.indexOf(u)>-1){t=z(r,n,a)}else{var e=r.replace(h,"");if(e.length>0){t=q(e,o)}}return t};var i=t(r);r=i.content;var v="";var l=0;var f;var p=/( |>|\+|~(?!=))\s*/g;var g=r.indexOf(u)>-1;var d=!g;while((f=p.exec(r))!==null){var m=f[1];var _=r.slice(l,f.index).trim();d=d||_.indexOf(u)>-1;var x=d?s(_):_;v+="".concat(x," ").concat(m," ");l=p.lastIndex}var w=r.substring(l);d=d||w.indexOf(u)>-1;v+=d?s(w):w;return e(i.placeholders,v)};var F=function(r,t,e,n){return r.split(",").map((function(r){if(n&&r.indexOf("."+n)>-1){return r.trim()}if(U(r,t)){return D(r,t,e).trim()}else{return r.trim()}})).join(", ")};var G=function(r,t,e,n,a){return R(r,(function(r){var a=r.selector;var c=r.content;if(r.selector[0]!=="@"){a=F(r.selector,t,e,n)}else if(r.selector.startsWith("@media")||r.selector.startsWith("@supports")||r.selector.startsWith("@page")||r.selector.startsWith("@document")){c=G(r.content,t,e,n)}var o={selector:a.replace(/\s{2,}/g," ").trim(),content:c};return o}))};var H=function(r,t,e,n,a){r=k(r);r=L(r);r=I(r);var c=B(r,n);r=c.cssText;r=K(r);if(t){r=G(r,t,e,n)}r=r.replace(/-shadowcsshost-no-combinator/g,".".concat(e));r=r.replace(/>\s*\*\s+([^{, ]+)/gm," $1 ");return{cssText:r.trim(),slottedSelectors:c.selectors}};var J=r("scopeCss",(function(r,t,e){var n=t+"-h";var a=t+"-s";var c=S(r);r=x(r);var o=[];if(e){var s=function(r){var t="/*!@___".concat(o.length,"___*/");var e="/*!@".concat(r.selector,"*/");o.push({placeholder:t,comment:e});r.selector=t+r.selector;return r};r=R(r,(function(r){if(r.selector[0]!=="@"){return s(r)}else if(r.selector.startsWith("@media")||r.selector.startsWith("@supports")||r.selector.startsWith("@page")||r.selector.startsWith("@document")){r.content=R(r.content,s);return r}return r}))}var i=H(r,t,n,a);r=__spreadArray([i.cssText],c,true).join("\n");if(e){o.forEach((function(t){var e=t.placeholder,n=t.comment;r=r.replace(e,n)}))}i.slottedSelectors.forEach((function(t){r=r.replace(t.orgSelector,t.updatedSelector)}));return r}))}}}));
@@ -0,0 +1,388 @@
1
+ /*
2
+ Stencil Client Platform v2.15.1 | MIT Licensed | https://stenciljs.com
3
+ */
4
+ /**
5
+ * @license
6
+ * Copyright Google Inc. All Rights Reserved.
7
+ *
8
+ * Use of this source code is governed by an MIT-style license that can be
9
+ * found in the LICENSE file at https://angular.io/license
10
+ *
11
+ * This file is a port of shadowCSS from webcomponents.js to TypeScript.
12
+ * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
13
+ * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
14
+ */
15
+ const safeSelector = (selector) => {
16
+ const placeholders = [];
17
+ let index = 0;
18
+ let content;
19
+ // Replaces attribute selectors with placeholders.
20
+ // The WS in [attr="va lue"] would otherwise be interpreted as a selector separator.
21
+ selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
22
+ const replaceBy = `__ph-${index}__`;
23
+ placeholders.push(keep);
24
+ index++;
25
+ return replaceBy;
26
+ });
27
+ // Replaces the expression in `:nth-child(2n + 1)` with a placeholder.
28
+ // WS and "+" would otherwise be interpreted as selector separators.
29
+ content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
30
+ const replaceBy = `__ph-${index}__`;
31
+ placeholders.push(exp);
32
+ index++;
33
+ return pseudo + replaceBy;
34
+ });
35
+ const ss = {
36
+ content,
37
+ placeholders,
38
+ };
39
+ return ss;
40
+ };
41
+ const restoreSafeSelector = (placeholders, content) => {
42
+ return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
43
+ };
44
+ const _polyfillHost = '-shadowcsshost';
45
+ const _polyfillSlotted = '-shadowcssslotted';
46
+ // note: :host-context pre-processed to -shadowcsshostcontext.
47
+ const _polyfillHostContext = '-shadowcsscontext';
48
+ const _parenSuffix = ')(?:\\((' + '(?:\\([^)(]*\\)|[^)(]*)+?' + ')\\))?([^,{]*)';
49
+ const _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');
50
+ const _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');
51
+ const _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');
52
+ const _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';
53
+ const _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
54
+ const _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
55
+ const _selectorReSuffix = '([>\\s~+[.,{:][\\s\\S]*)?$';
56
+ const _polyfillHostRe = /-shadowcsshost/gim;
57
+ const _colonHostRe = /:host/gim;
58
+ const _colonSlottedRe = /::slotted/gim;
59
+ const _colonHostContextRe = /:host-context/gim;
60
+ const _commentRe = /\/\*\s*[\s\S]*?\*\//g;
61
+ const stripComments = (input) => {
62
+ return input.replace(_commentRe, '');
63
+ };
64
+ const _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
65
+ const extractCommentsWithHash = (input) => {
66
+ return input.match(_commentWithHashRe) || [];
67
+ };
68
+ const _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
69
+ const _curlyRe = /([{}])/g;
70
+ const _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
71
+ const OPEN_CURLY = '{';
72
+ const CLOSE_CURLY = '}';
73
+ const BLOCK_PLACEHOLDER = '%BLOCK%';
74
+ const processRules = (input, ruleCallback) => {
75
+ const inputWithEscapedBlocks = escapeBlocks(input);
76
+ let nextBlockIndex = 0;
77
+ return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
78
+ const selector = m[2];
79
+ let content = '';
80
+ let suffix = m[4];
81
+ let contentPrefix = '';
82
+ if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {
83
+ content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
84
+ suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
85
+ contentPrefix = '{';
86
+ }
87
+ const cssRule = {
88
+ selector,
89
+ content,
90
+ };
91
+ const rule = ruleCallback(cssRule);
92
+ return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
93
+ });
94
+ };
95
+ const escapeBlocks = (input) => {
96
+ const inputParts = input.split(_curlyRe);
97
+ const resultParts = [];
98
+ const escapedBlocks = [];
99
+ let bracketCount = 0;
100
+ let currentBlockParts = [];
101
+ for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
102
+ const part = inputParts[partIndex];
103
+ if (part === CLOSE_CURLY) {
104
+ bracketCount--;
105
+ }
106
+ if (bracketCount > 0) {
107
+ currentBlockParts.push(part);
108
+ }
109
+ else {
110
+ if (currentBlockParts.length > 0) {
111
+ escapedBlocks.push(currentBlockParts.join(''));
112
+ resultParts.push(BLOCK_PLACEHOLDER);
113
+ currentBlockParts = [];
114
+ }
115
+ resultParts.push(part);
116
+ }
117
+ if (part === OPEN_CURLY) {
118
+ bracketCount++;
119
+ }
120
+ }
121
+ if (currentBlockParts.length > 0) {
122
+ escapedBlocks.push(currentBlockParts.join(''));
123
+ resultParts.push(BLOCK_PLACEHOLDER);
124
+ }
125
+ const strEscapedBlocks = {
126
+ escapedString: resultParts.join(''),
127
+ blocks: escapedBlocks,
128
+ };
129
+ return strEscapedBlocks;
130
+ };
131
+ const insertPolyfillHostInCssText = (selector) => {
132
+ selector = selector
133
+ .replace(_colonHostContextRe, _polyfillHostContext)
134
+ .replace(_colonHostRe, _polyfillHost)
135
+ .replace(_colonSlottedRe, _polyfillSlotted);
136
+ return selector;
137
+ };
138
+ const convertColonRule = (cssText, regExp, partReplacer) => {
139
+ // m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule
140
+ return cssText.replace(regExp, (...m) => {
141
+ if (m[2]) {
142
+ const parts = m[2].split(',');
143
+ const r = [];
144
+ for (let i = 0; i < parts.length; i++) {
145
+ const p = parts[i].trim();
146
+ if (!p)
147
+ break;
148
+ r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
149
+ }
150
+ return r.join(',');
151
+ }
152
+ else {
153
+ return _polyfillHostNoCombinator + m[3];
154
+ }
155
+ });
156
+ };
157
+ const colonHostPartReplacer = (host, part, suffix) => {
158
+ return host + part.replace(_polyfillHost, '') + suffix;
159
+ };
160
+ const convertColonHost = (cssText) => {
161
+ return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
162
+ };
163
+ const colonHostContextPartReplacer = (host, part, suffix) => {
164
+ if (part.indexOf(_polyfillHost) > -1) {
165
+ return colonHostPartReplacer(host, part, suffix);
166
+ }
167
+ else {
168
+ return host + part + suffix + ', ' + part + ' ' + host + suffix;
169
+ }
170
+ };
171
+ const convertColonSlotted = (cssText, slotScopeId) => {
172
+ const slotClass = '.' + slotScopeId + ' > ';
173
+ const selectors = [];
174
+ cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
175
+ if (m[2]) {
176
+ const compound = m[2].trim();
177
+ const suffix = m[3];
178
+ const slottedSelector = slotClass + compound + suffix;
179
+ let prefixSelector = '';
180
+ for (let i = m[4] - 1; i >= 0; i--) {
181
+ const char = m[5][i];
182
+ if (char === '}' || char === ',') {
183
+ break;
184
+ }
185
+ prefixSelector = char + prefixSelector;
186
+ }
187
+ const orgSelector = prefixSelector + slottedSelector;
188
+ const addedSelector = `${prefixSelector.trimRight()}${slottedSelector.trim()}`;
189
+ if (orgSelector.trim() !== addedSelector.trim()) {
190
+ const updatedSelector = `${addedSelector}, ${orgSelector}`;
191
+ selectors.push({
192
+ orgSelector,
193
+ updatedSelector,
194
+ });
195
+ }
196
+ return slottedSelector;
197
+ }
198
+ else {
199
+ return _polyfillHostNoCombinator + m[3];
200
+ }
201
+ });
202
+ return {
203
+ selectors,
204
+ cssText,
205
+ };
206
+ };
207
+ const convertColonHostContext = (cssText) => {
208
+ return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
209
+ };
210
+ const convertShadowDOMSelectors = (cssText) => {
211
+ return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);
212
+ };
213
+ const makeScopeMatcher = (scopeSelector) => {
214
+ const lre = /\[/g;
215
+ const rre = /\]/g;
216
+ scopeSelector = scopeSelector.replace(lre, '\\[').replace(rre, '\\]');
217
+ return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');
218
+ };
219
+ const selectorNeedsScoping = (selector, scopeSelector) => {
220
+ const re = makeScopeMatcher(scopeSelector);
221
+ return !re.test(selector);
222
+ };
223
+ const injectScopingSelector = (selector, scopingSelector) => {
224
+ return selector.replace(_selectorPartsRe, (_, before = '', _colonGroup, colon = '', after = '') => {
225
+ return before + scopingSelector + colon + after;
226
+ });
227
+ };
228
+ const applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {
229
+ // In Android browser, the lastIndex is not reset when the regex is used in String.replace()
230
+ _polyfillHostRe.lastIndex = 0;
231
+ if (_polyfillHostRe.test(selector)) {
232
+ const replaceBy = `.${hostSelector}`;
233
+ return selector
234
+ .replace(_polyfillHostNoCombinatorRe, (_, selector) => injectScopingSelector(selector, replaceBy))
235
+ .replace(_polyfillHostRe, replaceBy + ' ');
236
+ }
237
+ return scopeSelector + ' ' + selector;
238
+ };
239
+ const applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {
240
+ const isRe = /\[is=([^\]]*)\]/g;
241
+ scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);
242
+ const className = '.' + scopeSelector;
243
+ const _scopeSelectorPart = (p) => {
244
+ let scopedP = p.trim();
245
+ if (!scopedP) {
246
+ return '';
247
+ }
248
+ if (p.indexOf(_polyfillHostNoCombinator) > -1) {
249
+ scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);
250
+ }
251
+ else {
252
+ // remove :host since it should be unnecessary
253
+ const t = p.replace(_polyfillHostRe, '');
254
+ if (t.length > 0) {
255
+ scopedP = injectScopingSelector(t, className);
256
+ }
257
+ }
258
+ return scopedP;
259
+ };
260
+ const safeContent = safeSelector(selector);
261
+ selector = safeContent.content;
262
+ let scopedSelector = '';
263
+ let startIndex = 0;
264
+ let res;
265
+ const sep = /( |>|\+|~(?!=))\s*/g;
266
+ // If a selector appears before :host it should not be shimmed as it
267
+ // matches on ancestor elements and not on elements in the host's shadow
268
+ // `:host-context(div)` is transformed to
269
+ // `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`
270
+ // the `div` is not part of the component in the 2nd selectors and should not be scoped.
271
+ // Historically `component-tag:host` was matching the component so we also want to preserve
272
+ // this behavior to avoid breaking legacy apps (it should not match).
273
+ // The behavior should be:
274
+ // - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)
275
+ // - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a
276
+ // `:host-context(tag)`)
277
+ const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
278
+ // Only scope parts after the first `-shadowcsshost-no-combinator` when it is present
279
+ let shouldScope = !hasHost;
280
+ while ((res = sep.exec(selector)) !== null) {
281
+ const separator = res[1];
282
+ const part = selector.slice(startIndex, res.index).trim();
283
+ shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
284
+ const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;
285
+ scopedSelector += `${scopedPart} ${separator} `;
286
+ startIndex = sep.lastIndex;
287
+ }
288
+ const part = selector.substring(startIndex);
289
+ shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
290
+ scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
291
+ // replace the placeholders with their original values
292
+ return restoreSafeSelector(safeContent.placeholders, scopedSelector);
293
+ };
294
+ const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
295
+ return selector
296
+ .split(',')
297
+ .map((shallowPart) => {
298
+ if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {
299
+ return shallowPart.trim();
300
+ }
301
+ if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
302
+ return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
303
+ }
304
+ else {
305
+ return shallowPart.trim();
306
+ }
307
+ })
308
+ .join(', ');
309
+ };
310
+ const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
311
+ return processRules(cssText, (rule) => {
312
+ let selector = rule.selector;
313
+ let content = rule.content;
314
+ if (rule.selector[0] !== '@') {
315
+ selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
316
+ }
317
+ else if (rule.selector.startsWith('@media') ||
318
+ rule.selector.startsWith('@supports') ||
319
+ rule.selector.startsWith('@page') ||
320
+ rule.selector.startsWith('@document')) {
321
+ content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
322
+ }
323
+ const cssRule = {
324
+ selector: selector.replace(/\s{2,}/g, ' ').trim(),
325
+ content,
326
+ };
327
+ return cssRule;
328
+ });
329
+ };
330
+ const scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {
331
+ cssText = insertPolyfillHostInCssText(cssText);
332
+ cssText = convertColonHost(cssText);
333
+ cssText = convertColonHostContext(cssText);
334
+ const slotted = convertColonSlotted(cssText, slotScopeId);
335
+ cssText = slotted.cssText;
336
+ cssText = convertShadowDOMSelectors(cssText);
337
+ if (scopeId) {
338
+ cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
339
+ }
340
+ cssText = cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
341
+ cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, ' $1 ');
342
+ return {
343
+ cssText: cssText.trim(),
344
+ slottedSelectors: slotted.selectors,
345
+ };
346
+ };
347
+ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
348
+ const hostScopeId = scopeId + '-h';
349
+ const slotScopeId = scopeId + '-s';
350
+ const commentsWithHash = extractCommentsWithHash(cssText);
351
+ cssText = stripComments(cssText);
352
+ const orgSelectors = [];
353
+ if (commentOriginalSelector) {
354
+ const processCommentedSelector = (rule) => {
355
+ const placeholder = `/*!@___${orgSelectors.length}___*/`;
356
+ const comment = `/*!@${rule.selector}*/`;
357
+ orgSelectors.push({ placeholder, comment });
358
+ rule.selector = placeholder + rule.selector;
359
+ return rule;
360
+ };
361
+ cssText = processRules(cssText, (rule) => {
362
+ if (rule.selector[0] !== '@') {
363
+ return processCommentedSelector(rule);
364
+ }
365
+ else if (rule.selector.startsWith('@media') ||
366
+ rule.selector.startsWith('@supports') ||
367
+ rule.selector.startsWith('@page') ||
368
+ rule.selector.startsWith('@document')) {
369
+ rule.content = processRules(rule.content, processCommentedSelector);
370
+ return rule;
371
+ }
372
+ return rule;
373
+ });
374
+ }
375
+ const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
376
+ cssText = [scoped.cssText, ...commentsWithHash].join('\n');
377
+ if (commentOriginalSelector) {
378
+ orgSelectors.forEach(({ placeholder, comment }) => {
379
+ cssText = cssText.replace(placeholder, comment);
380
+ });
381
+ }
382
+ scoped.slottedSelectors.forEach((slottedSelector) => {
383
+ cssText = cssText.replace(slottedSelector.orgSelector, slottedSelector.updatedSelector);
384
+ });
385
+ return cssText;
386
+ };
387
+
388
+ export { scopeCss };
@@ -0,0 +1 @@
1
+ System.register(["./index-dcd9a8a7.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.R}],execute:function(){var n=t("u",(function(){var t;return function(){t=e.uid()}()}))}}}));
@@ -0,0 +1,9 @@
1
+ import { R } from './index-135dacad.js';
2
+
3
+ const uid = () => {
4
+ // @ts-ignore
5
+ let value;
6
+ return (() => { value = R.uid(); })();
7
+ };
8
+
9
+ export { uid as u };
@@ -41,9 +41,9 @@ export declare class Ku4Carousel {
41
41
  previous(): Promise<this>;
42
42
  /**
43
43
  * Slide to the slide number specified.
44
- * @param {number} number - Slide number to slide to.
44
+ * @param {number|string} slide - Slide number or slide name to slide to.
45
45
  */
46
- slideTo(number: any): Promise<void>;
46
+ slideTo(slide: any): Promise<void>;
47
47
  /**
48
48
  * Pause auto slide change
49
49
  */
@@ -52,6 +52,7 @@ export declare class Ku4Carousel {
52
52
  * Start auto slide change
53
53
  */
54
54
  play(): Promise<void>;
55
+ private get slides();
55
56
  private get hasSlides();
56
57
  private get currentSlideNumber();
57
58
  private display;
@@ -37,9 +37,9 @@ export namespace Components {
37
37
  "previous": () => Promise<this>;
38
38
  /**
39
39
  * Slide to the slide number specified.
40
- * @param number - Slide number to slide to.
40
+ * @param slide - Slide number or slide name to slide to.
41
41
  */
42
- "slideTo": (number: any) => Promise<void>;
42
+ "slideTo": (slide: any) => Promise<void>;
43
43
  /**
44
44
  * Sets the distance, in pixels, a touch must travel before activating a swipe.
45
45
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ku4web-components",
3
- "version": "6.4.82",
3
+ "version": "6.4.85",
4
4
  "description": "kodmunki™ Web Components",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.js",
@@ -54,52 +54,52 @@
54
54
  "stencil:test"
55
55
  ],
56
56
  "devDependencies": {
57
- "@babel/core": "^7.17.8",
57
+ "@babel/core": "^7.17.9",
58
58
  "@jest/core": "^27.5.0",
59
59
  "@rollup/plugin-babel": "^5.3.1",
60
- "@rollup/plugin-commonjs": "^21.0.3",
61
- "@rollup/plugin-node-resolve": "^13.1.3",
62
- "@stencil/core": "^2.15.0",
60
+ "@rollup/plugin-commonjs": "^21.1.0",
61
+ "@rollup/plugin-node-resolve": "^13.2.1",
62
+ "@stencil/core": "^2.15.1",
63
63
  "@stencil/eslint-plugin": "^0.4.0",
64
64
  "@stencil/sass": "^1.4.0",
65
- "@storybook/addon-actions": "^6.4.19",
66
- "@storybook/addon-docs": "^6.4.19",
65
+ "@storybook/addon-actions": "^6.4.22",
66
+ "@storybook/addon-docs": "^6.4.22",
67
67
  "@storybook/addon-google-analytics": "^6.1.21",
68
68
  "@storybook/addon-knobs": "^6.1.21",
69
- "@storybook/addon-links": "^6.4.19",
70
- "@storybook/addon-storyshots": "^6.4.19",
71
- "@storybook/addon-viewport": "^6.4.19",
72
- "@storybook/addons": "^6.4.19",
73
- "@storybook/react": "^6.4.19",
74
- "@storybook/theming": "^6.4.19",
75
- "@storybook/web-components": "^6.4.19",
76
- "@types/node": "^17.0.23",
69
+ "@storybook/addon-links": "^6.4.22",
70
+ "@storybook/addon-storyshots": "^6.4.22",
71
+ "@storybook/addon-viewport": "^6.4.22",
72
+ "@storybook/addons": "^6.4.22",
73
+ "@storybook/react": "^6.4.22",
74
+ "@storybook/theming": "^6.4.22",
75
+ "@storybook/web-components": "^6.4.22",
76
+ "@types/node": "^17.0.25",
77
77
  "@types/puppeteer": "^5.4.5",
78
- "@typescript-eslint/eslint-plugin": "^5.17.0",
79
- "@typescript-eslint/parser": "^5.17.0",
78
+ "@typescript-eslint/eslint-plugin": "^5.20.0",
79
+ "@typescript-eslint/parser": "^5.20.0",
80
80
  "acorn": "^8.1.0",
81
- "babel-loader": "^8.2.4",
81
+ "babel-loader": "^8.2.5",
82
82
  "bufferutil": "^4.0.3",
83
83
  "canvas": "^2.9.1",
84
- "core-js": "^3.21.1",
84
+ "core-js": "^3.22.1",
85
85
  "css-loader": "^5.2.7",
86
- "eslint": "^8.12.0",
86
+ "eslint": "^8.13.0",
87
87
  "eslint-plugin-react": "^7.29.4",
88
88
  "fibers": "^5.0.1",
89
89
  "html-to-react": "^1.4.8",
90
90
  "jest": "^27.5.0",
91
91
  "jest-cli": "^27.5.0",
92
- "ku4es-kernel": "^8.4.1",
92
+ "ku4es-kernel": "^8.4.2",
93
93
  "ku4es-ui-data": "^3.1.7",
94
- "ku4es-ui-kernel": "^8.0.7",
95
- "lit-html": "^2.2.1",
94
+ "ku4es-ui-kernel": "^8.1.0",
95
+ "lit-html": "^2.2.2",
96
96
  "node-sass": "^5.0.0",
97
97
  "pre-commit": "^1.2.2",
98
- "puppeteer": "^13.5.1",
99
- "rollup": "^2.70.1",
98
+ "puppeteer": "^10.4.0",
99
+ "rollup": "^2.70.2",
100
100
  "rollup-plugin-cleanup": "^3.2.1",
101
101
  "rollup-plugin-terser": "^7.0.2",
102
- "sass": "^1.49.9",
102
+ "sass": "^1.50.1",
103
103
  "sass-loader": "^10.2.1",
104
104
  "style-loader": "^2.0.0",
105
105
  "ts-dedent": "^2.0.0",