ku4web-components 6.4.34 → 6.4.38

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 (278) hide show
  1. package/dist/cjs/{index-fabdc7d0.js → index-38fe0039.js} +1 -1
  2. package/dist/cjs/ku4-carousel-controls.cjs.entry.js +3 -3
  3. package/dist/cjs/ku4-carousel-slide.cjs.entry.js +2 -2
  4. package/dist/cjs/ku4-carousel.cjs.entry.js +15 -9
  5. package/dist/cjs/ku4-col.cjs.entry.js +2 -2
  6. package/dist/cjs/ku4-drawer.cjs.entry.js +2 -2
  7. package/dist/cjs/ku4-feature.cjs.entry.js +3 -3
  8. package/dist/cjs/ku4-focus-trap.cjs.entry.js +27 -27
  9. package/dist/cjs/ku4-form.cjs.entry.js +4 -4
  10. package/dist/cjs/ku4-grid.cjs.entry.js +2 -2
  11. package/dist/cjs/ku4-label.cjs.entry.js +3 -3
  12. package/dist/cjs/ku4-mask.cjs.entry.js +3 -3
  13. package/dist/cjs/ku4-modal.cjs.entry.js +4 -4
  14. package/dist/cjs/ku4-panel.cjs.entry.js +2 -2
  15. package/dist/cjs/ku4-preview.cjs.entry.js +15 -44
  16. package/dist/cjs/ku4-tab-list.cjs.entry.js +5 -5
  17. package/dist/cjs/ku4-tab-panel.cjs.entry.js +4 -4
  18. package/dist/cjs/ku4-tab.cjs.entry.js +4 -4
  19. package/dist/cjs/ku4-table.cjs.entry.js +2 -2
  20. package/dist/cjs/ku4-tooltip.cjs.entry.js +3 -3
  21. package/dist/cjs/ku4-validation.cjs.entry.js +4 -4
  22. package/dist/cjs/ku4web-components.cjs.js +8 -99
  23. package/dist/cjs/loader.cjs.js +3 -19
  24. package/dist/cjs/{shadow-css-4bfd7bfa.js → shadow-css-d8ee70b1.js} +1 -1
  25. package/dist/esm/{index-d14f31b2.js → index-52020db7.js} +1 -1
  26. package/dist/esm/ku4-carousel-controls.entry.js +3 -3
  27. package/dist/esm/ku4-carousel-slide.entry.js +2 -2
  28. package/dist/esm/ku4-carousel.entry.js +15 -9
  29. package/dist/esm/ku4-col.entry.js +2 -2
  30. package/dist/esm/ku4-drawer.entry.js +2 -2
  31. package/dist/esm/ku4-feature.entry.js +3 -3
  32. package/dist/esm/ku4-focus-trap.entry.js +4 -4
  33. package/dist/esm/ku4-form.entry.js +4 -4
  34. package/dist/esm/ku4-grid.entry.js +2 -2
  35. package/dist/esm/ku4-label.entry.js +3 -3
  36. package/dist/esm/ku4-mask.entry.js +3 -3
  37. package/dist/esm/ku4-modal.entry.js +4 -4
  38. package/dist/esm/ku4-panel.entry.js +2 -2
  39. package/dist/esm/ku4-preview.entry.js +6 -35
  40. package/dist/esm/ku4-tab-list.entry.js +5 -5
  41. package/dist/esm/ku4-tab-panel.entry.js +4 -4
  42. package/dist/esm/ku4-tab.entry.js +4 -4
  43. package/dist/esm/ku4-table.entry.js +2 -2
  44. package/dist/esm/ku4-tooltip.entry.js +3 -3
  45. package/dist/esm/ku4-validation.entry.js +4 -4
  46. package/dist/esm/ku4web-components.js +8 -99
  47. package/dist/esm/loader.js +3 -19
  48. package/dist/{ku4web-components/shadow-css-bc14d9fd.js → esm/shadow-css-c1fdfa9f.js} +1 -1
  49. package/dist/esm-es5/{index-d14f31b2.js → index-52020db7.js} +1 -1
  50. package/dist/esm-es5/ku4-carousel-controls.entry.js +1 -1
  51. package/dist/esm-es5/ku4-carousel-slide.entry.js +1 -1
  52. package/dist/esm-es5/ku4-carousel.entry.js +1 -1
  53. package/dist/esm-es5/ku4-col.entry.js +1 -1
  54. package/dist/esm-es5/ku4-drawer.entry.js +1 -1
  55. package/dist/esm-es5/ku4-feature.entry.js +1 -1
  56. package/dist/esm-es5/ku4-focus-trap.entry.js +1 -1
  57. package/dist/esm-es5/ku4-form.entry.js +1 -1
  58. package/dist/esm-es5/ku4-grid.entry.js +1 -1
  59. package/dist/esm-es5/ku4-label.entry.js +1 -1
  60. package/dist/esm-es5/ku4-mask.entry.js +1 -1
  61. package/dist/esm-es5/ku4-modal.entry.js +1 -1
  62. package/dist/esm-es5/ku4-panel.entry.js +1 -1
  63. package/dist/esm-es5/ku4-preview.entry.js +1 -1
  64. package/dist/esm-es5/ku4-tab-list.entry.js +1 -1
  65. package/dist/esm-es5/ku4-tab-panel.entry.js +1 -1
  66. package/dist/esm-es5/ku4-tab.entry.js +1 -1
  67. package/dist/esm-es5/ku4-table.entry.js +1 -1
  68. package/dist/esm-es5/ku4-tooltip.entry.js +1 -1
  69. package/dist/esm-es5/ku4-validation.entry.js +1 -1
  70. package/dist/esm-es5/ku4web-components.js +1 -1
  71. package/dist/esm-es5/loader.js +1 -1
  72. package/dist/esm-es5/{shadow-css-bc14d9fd.js → shadow-css-c1fdfa9f.js} +0 -0
  73. package/dist/index.js +1 -1
  74. package/dist/ku4web-components/index.esm.js +0 -1
  75. package/dist/ku4web-components/ku4web-components.css +1 -283
  76. package/dist/ku4web-components/ku4web-components.esm.js +1 -125
  77. package/dist/ku4web-components/ku4web-components.js +1 -1
  78. package/dist/ku4web-components/{p-967f8f4b.system.entry.js → p-19147286.system.entry.js} +1 -1
  79. package/dist/ku4web-components/p-1fb8966a.entry.js +1 -0
  80. package/dist/ku4web-components/{p-c72b3ced.system.entry.js → p-2bbea5f3.system.entry.js} +1 -1
  81. package/dist/ku4web-components/p-4986dc9a.entry.js +1 -0
  82. package/dist/ku4web-components/{p-176273d5.system.js → p-4de687d8.system.js} +1 -1
  83. package/dist/ku4web-components/p-5848719e.system.js +1 -0
  84. package/dist/ku4web-components/p-5ad4d525.entry.js +1 -0
  85. package/dist/ku4web-components/{p-e0558b2b.system.entry.js → p-60512677.system.entry.js} +1 -1
  86. package/dist/ku4web-components/{p-cb0f32a7.js → p-670d415c.js} +1 -1
  87. package/dist/ku4web-components/{p-c3c31235.system.entry.js → p-67b90b07.system.entry.js} +1 -1
  88. package/dist/ku4web-components/{p-435478fa.system.entry.js → p-6a6ebdd6.system.entry.js} +1 -1
  89. package/dist/ku4web-components/p-6f56d780.entry.js +1 -0
  90. package/dist/ku4web-components/p-7587e933.entry.js +1 -0
  91. package/dist/ku4web-components/{p-3ad57422.system.entry.js → p-769237d3.system.entry.js} +1 -1
  92. package/dist/ku4web-components/p-7a5e62fd.entry.js +1 -0
  93. package/dist/ku4web-components/{p-46d73124.system.entry.js → p-8645d86f.system.entry.js} +1 -1
  94. package/dist/ku4web-components/{p-cb6b67f2.entry.js → p-867d74d6.entry.js} +1 -1
  95. package/dist/ku4web-components/p-911a6cc5.entry.js +1 -0
  96. package/dist/ku4web-components/{p-7bbd50d6.system.entry.js → p-93417cb8.system.entry.js} +1 -1
  97. package/dist/ku4web-components/p-98548901.system.entry.js +1 -0
  98. package/dist/ku4web-components/{p-44f9a1a9.system.entry.js → p-9b9fb5a2.system.entry.js} +1 -1
  99. package/dist/ku4web-components/p-9e2c3988.entry.js +1 -0
  100. package/dist/ku4web-components/{p-64f6379d.system.entry.js → p-ac86618a.system.entry.js} +1 -1
  101. package/dist/ku4web-components/p-af5d8c77.system.entry.js +1 -0
  102. package/dist/ku4web-components/p-b2db2c0b.entry.js +1 -0
  103. package/dist/ku4web-components/p-b9cf48d6.entry.js +1 -0
  104. package/dist/ku4web-components/p-bfd8c04e.entry.js +1 -0
  105. package/dist/ku4web-components/p-c11d7118.entry.js +1 -0
  106. package/dist/ku4web-components/p-c194ee9c.entry.js +1 -0
  107. package/dist/ku4web-components/{p-c2285d3c.system.entry.js → p-c48ff8d2.system.entry.js} +1 -1
  108. package/dist/ku4web-components/p-cdaa80f7.entry.js +1 -0
  109. package/dist/ku4web-components/{ku4-col.entry.js → p-d0579e6f.entry.js} +1 -75
  110. package/dist/ku4web-components/p-d248862c.entry.js +1 -0
  111. package/dist/ku4web-components/{p-9f159c4b.system.entry.js → p-d312c8ae.system.entry.js} +1 -1
  112. package/dist/ku4web-components/{p-110de527.system.entry.js → p-d3dad5b5.system.entry.js} +1 -1
  113. package/dist/ku4web-components/{p-d3379ca9.system.entry.js → p-dda45242.system.entry.js} +1 -1
  114. package/dist/ku4web-components/p-e63f2453.entry.js +1 -0
  115. package/dist/ku4web-components/{p-4e89d6bc.system.entry.js → p-e89bc35d.system.entry.js} +1 -1
  116. package/dist/ku4web-components/{p-308941a0.system.entry.js → p-e9c1a470.system.entry.js} +1 -1
  117. package/dist/ku4web-components/p-ebc49910.entry.js +1 -0
  118. package/dist/ku4web-components/{p-a025c941.system.js → p-f4d979bb.system.js} +0 -0
  119. package/dist/ku4web-components/{p-3fb7c6ff.js → p-f566887e.js} +0 -0
  120. package/dist/ku4web-components/{p-7a3a3b7f.system.entry.js → p-faef0a79.system.entry.js} +1 -1
  121. package/dist/ku4web-components/p-fbba3322.entry.js +1 -0
  122. package/dist/ku4web-components/{p-d8836783.system.entry.js → p-ff4c04f5.system.entry.js} +1 -1
  123. package/dist/types/components/ku4-carousel/ku4-carousel.d.ts +4 -0
  124. package/dist/types/components/ku4-validation/ku4-validation.d.ts +5 -0
  125. package/dist/types/components.d.ts +16 -0
  126. package/loader/index.d.ts +0 -1
  127. package/package.json +1 -1
  128. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  129. package/dist/cjs/css-shim-a6998297.js +0 -6
  130. package/dist/cjs/dom-66f79778.js +0 -75
  131. package/dist/cjs/index-51b7a610.js +0 -14
  132. package/dist/cjs/index-c52d450b.js +0 -10
  133. package/dist/cjs/index-ff13b651.js +0 -3046
  134. package/dist/cjs/uid-3dd31175.js +0 -11
  135. package/dist/collection/capabilities/a11y/aria.js +0 -26
  136. package/dist/collection/capabilities/angular/index.js +0 -24
  137. package/dist/collection/capabilities/decorators/deprecated.js +0 -20
  138. package/dist/collection/capabilities/decorators/index.js +0 -3
  139. package/dist/collection/capabilities/decorators/memoize.js +0 -7
  140. package/dist/collection/capabilities/dom/isFocusable.js +0 -7
  141. package/dist/collection/capabilities/dom/queryFocusable.js +0 -2
  142. package/dist/collection/capabilities/identity/uid.js +0 -6
  143. package/dist/collection/capabilities/mask/index.js +0 -5
  144. package/dist/collection/capabilities/mask/patterns/date.js +0 -40
  145. package/dist/collection/capabilities/mask/patterns/index.js +0 -7
  146. package/dist/collection/capabilities/react/index.js +0 -25
  147. package/dist/collection/capabilities/testing/html.js +0 -14
  148. package/dist/collection/capabilities/testing/styles.js +0 -14
  149. package/dist/collection/capabilities/vue/index.js +0 -28
  150. package/dist/collection/capabilities/vue3/index.js +0 -26
  151. package/dist/collection/collection-manifest.json +0 -31
  152. package/dist/collection/components/ku4-carousel/ku4-carousel.css +0 -215
  153. package/dist/collection/components/ku4-carousel/ku4-carousel.js +0 -335
  154. package/dist/collection/components/ku4-carousel-controls/ku4-carousel-controls.css +0 -32
  155. package/dist/collection/components/ku4-carousel-controls/ku4-carousel-controls.js +0 -93
  156. package/dist/collection/components/ku4-carousel-slide/ku4-carousel-slide.css +0 -3
  157. package/dist/collection/components/ku4-carousel-slide/ku4-carousel-slide.js +0 -140
  158. package/dist/collection/components/ku4-col/ku4-col.css +0 -601
  159. package/dist/collection/components/ku4-col/ku4-col.js +0 -288
  160. package/dist/collection/components/ku4-drawer/ku4-drawer.css +0 -56
  161. package/dist/collection/components/ku4-drawer/ku4-drawer.js +0 -163
  162. package/dist/collection/components/ku4-feature/ku4-feature.js +0 -70
  163. package/dist/collection/components/ku4-focus-trap/ku4-focus-trap.css +0 -3
  164. package/dist/collection/components/ku4-focus-trap/ku4-focus-trap.js +0 -441
  165. package/dist/collection/components/ku4-form/ku4-form.js +0 -194
  166. package/dist/collection/components/ku4-grid/ku4-grid.css +0 -751
  167. package/dist/collection/components/ku4-grid/ku4-grid.js +0 -408
  168. package/dist/collection/components/ku4-label/ku4-label.css +0 -36
  169. package/dist/collection/components/ku4-label/ku4-label.js +0 -115
  170. package/dist/collection/components/ku4-mask/ku4-mask.css +0 -3
  171. package/dist/collection/components/ku4-mask/ku4-mask.js +0 -427
  172. package/dist/collection/components/ku4-modal/ku4-modal.css +0 -85
  173. package/dist/collection/components/ku4-modal/ku4-modal.js +0 -186
  174. package/dist/collection/components/ku4-panel/ku4-panel.css +0 -14
  175. package/dist/collection/components/ku4-panel/ku4-panel.js +0 -119
  176. package/dist/collection/components/ku4-preview/ku4-preview.css +0 -23
  177. package/dist/collection/components/ku4-preview/ku4-preview.js +0 -249
  178. package/dist/collection/components/ku4-tab/ku4-tab.css +0 -82
  179. package/dist/collection/components/ku4-tab/ku4-tab.js +0 -191
  180. package/dist/collection/components/ku4-tab-list/ku4-tab-list.css +0 -6
  181. package/dist/collection/components/ku4-tab-list/ku4-tab-list.js +0 -118
  182. package/dist/collection/components/ku4-tab-panel/ku4-tab-panel.css +0 -26
  183. package/dist/collection/components/ku4-tab-panel/ku4-tab-panel.js +0 -166
  184. package/dist/collection/components/ku4-table/ku4-table.css +0 -116
  185. package/dist/collection/components/ku4-table/ku4-table.js +0 -120
  186. package/dist/collection/components/ku4-tooltip/ku4-tooltip.css +0 -56
  187. package/dist/collection/components/ku4-tooltip/ku4-tooltip.js +0 -274
  188. package/dist/collection/components/ku4-validation/ku4-validation.css +0 -7
  189. package/dist/collection/components/ku4-validation/ku4-validation.js +0 -309
  190. package/dist/collection/components/ku4-validation/validate.js +0 -14
  191. package/dist/collection/index.js +0 -1
  192. package/dist/collection/security.js +0 -27
  193. package/dist/esm/app-globals-0f993ce5.js +0 -3
  194. package/dist/esm/css-shim-a64b8820.js +0 -4
  195. package/dist/esm/dom-d08ba8aa.js +0 -73
  196. package/dist/esm/index-4693d116.js +0 -3
  197. package/dist/esm/index-88e7b9d4.js +0 -3010
  198. package/dist/esm/index-89916128.js +0 -3
  199. package/dist/esm/shadow-css-bc14d9fd.js +0 -389
  200. package/dist/esm/uid-5355229f.js +0 -9
  201. package/dist/ku4web-components/app-globals-0f993ce5.js +0 -3
  202. package/dist/ku4web-components/app-globals-497eb362.system.js +0 -1
  203. package/dist/ku4web-components/css-shim-00dc76e5.system.js +0 -1
  204. package/dist/ku4web-components/css-shim-a64b8820.js +0 -4
  205. package/dist/ku4web-components/dom-59f9ee66.system.js +0 -21
  206. package/dist/ku4web-components/dom-d08ba8aa.js +0 -73
  207. package/dist/ku4web-components/index-3127d7f7.system.js +0 -1
  208. package/dist/ku4web-components/index-4693d116.js +0 -3
  209. package/dist/ku4web-components/index-7624f416.system.js +0 -1
  210. package/dist/ku4web-components/index-88e7b9d4.js +0 -3010
  211. package/dist/ku4web-components/index-89916128.js +0 -3
  212. package/dist/ku4web-components/index-aea7f048.system.js +0 -1
  213. package/dist/ku4web-components/index.system.js +0 -1
  214. package/dist/ku4web-components/ku4-carousel-controls.entry.js +0 -70
  215. package/dist/ku4web-components/ku4-carousel-controls.system.entry.js +0 -1
  216. package/dist/ku4web-components/ku4-carousel-slide.entry.js +0 -47
  217. package/dist/ku4web-components/ku4-carousel-slide.system.entry.js +0 -1
  218. package/dist/ku4web-components/ku4-carousel.entry.js +0 -159
  219. package/dist/ku4web-components/ku4-carousel.system.entry.js +0 -1
  220. package/dist/ku4web-components/ku4-col.system.entry.js +0 -1
  221. package/dist/ku4web-components/ku4-drawer.entry.js +0 -35
  222. package/dist/ku4web-components/ku4-drawer.system.entry.js +0 -1
  223. package/dist/ku4web-components/ku4-feature.entry.js +0 -29
  224. package/dist/ku4web-components/ku4-feature.system.entry.js +0 -1
  225. package/dist/ku4web-components/ku4-focus-trap.entry.js +0 -323
  226. package/dist/ku4web-components/ku4-focus-trap.system.entry.js +0 -1
  227. package/dist/ku4web-components/ku4-form.entry.js +0 -97
  228. package/dist/ku4web-components/ku4-form.system.entry.js +0 -1
  229. package/dist/ku4web-components/ku4-grid.entry.js +0 -108
  230. package/dist/ku4web-components/ku4-grid.system.entry.js +0 -1
  231. package/dist/ku4web-components/ku4-label.entry.js +0 -70
  232. package/dist/ku4web-components/ku4-label.system.entry.js +0 -1
  233. package/dist/ku4web-components/ku4-mask.entry.js +0 -311
  234. package/dist/ku4web-components/ku4-mask.system.entry.js +0 -1
  235. package/dist/ku4web-components/ku4-modal.entry.js +0 -71
  236. package/dist/ku4web-components/ku4-modal.system.entry.js +0 -1
  237. package/dist/ku4web-components/ku4-panel.entry.js +0 -49
  238. package/dist/ku4web-components/ku4-panel.system.entry.js +0 -1
  239. package/dist/ku4web-components/ku4-preview.entry.js +0 -128
  240. package/dist/ku4web-components/ku4-preview.system.entry.js +0 -1
  241. package/dist/ku4web-components/ku4-tab-list.entry.js +0 -76
  242. package/dist/ku4web-components/ku4-tab-list.system.entry.js +0 -1
  243. package/dist/ku4web-components/ku4-tab-panel.entry.js +0 -72
  244. package/dist/ku4web-components/ku4-tab-panel.system.entry.js +0 -1
  245. package/dist/ku4web-components/ku4-tab.entry.js +0 -63
  246. package/dist/ku4web-components/ku4-tab.system.entry.js +0 -1
  247. package/dist/ku4web-components/ku4-table.entry.js +0 -79
  248. package/dist/ku4web-components/ku4-table.system.entry.js +0 -1
  249. package/dist/ku4web-components/ku4-tooltip.entry.js +0 -120
  250. package/dist/ku4web-components/ku4-tooltip.system.entry.js +0 -1
  251. package/dist/ku4web-components/ku4-validation.entry.js +0 -158
  252. package/dist/ku4web-components/ku4-validation.system.entry.js +0 -1
  253. package/dist/ku4web-components/ku4web-components.system.js +0 -1
  254. package/dist/ku4web-components/p-026e04d8.entry.js +0 -1
  255. package/dist/ku4web-components/p-0a7ce92f.entry.js +0 -1
  256. package/dist/ku4web-components/p-10a643bb.system.js +0 -1
  257. package/dist/ku4web-components/p-288c6e27.entry.js +0 -1
  258. package/dist/ku4web-components/p-417f04e9.entry.js +0 -1
  259. package/dist/ku4web-components/p-4c117404.entry.js +0 -1
  260. package/dist/ku4web-components/p-5299172c.entry.js +0 -1
  261. package/dist/ku4web-components/p-6b080fd7.entry.js +0 -1
  262. package/dist/ku4web-components/p-731d15d8.entry.js +0 -1
  263. package/dist/ku4web-components/p-7760e8b4.entry.js +0 -1
  264. package/dist/ku4web-components/p-7764c6f2.entry.js +0 -1
  265. package/dist/ku4web-components/p-7ffb5116.entry.js +0 -1
  266. package/dist/ku4web-components/p-8063491d.entry.js +0 -1
  267. package/dist/ku4web-components/p-8b7e72eb.entry.js +0 -1
  268. package/dist/ku4web-components/p-92ddb4be.entry.js +0 -1
  269. package/dist/ku4web-components/p-c7dc83c3.entry.js +0 -1
  270. package/dist/ku4web-components/p-cb142835.system.entry.js +0 -1
  271. package/dist/ku4web-components/p-cb746d07.entry.js +0 -1
  272. package/dist/ku4web-components/p-da065955.entry.js +0 -1
  273. package/dist/ku4web-components/p-e7698568.system.entry.js +0 -1
  274. package/dist/ku4web-components/p-e8367ca4.entry.js +0 -1
  275. package/dist/ku4web-components/p-fb68de75.entry.js +0 -1
  276. package/dist/ku4web-components/shadow-css-c015bba2.system.js +0 -13
  277. package/dist/ku4web-components/uid-5355229f.js +0 -9
  278. package/dist/ku4web-components/uid-93975202.system.js +0 -1
@@ -1,70 +0,0 @@
1
- import { r as registerInstance, h, f as Host, g as getElement } from './index-88e7b9d4.js';
2
- import { Y, t, R } from './index-89916128.js';
3
-
4
- const ku4LabelCss = ":host{position:relative;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:12px;line-height:14px}::slotted(*){padding:6px;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;font-size:18px;-webkit-appearance:none}label{position:absolute;display:inline;top:var(--ku4-label-top, -6px);left:var(--ku4-label-left, 8px);padding:var(--ku4-label-padding, 0 4px);font-size:inherit;line-height:inherit;background-color:var(--ku4-label-background-color, inherit);color:inherit;z-index:1;white-space:nowrap;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}label.empty{opacity:0;-webkit-transition:all 0.1s ease;transition:all 0.1s ease}";
5
-
6
- const Ku4Label = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.handleFocus = this.handleFocus.bind(this);
10
- this.handleChange = this.handleChange.bind(this);
11
- this.handleInput = this.handleInput.bind(this);
12
- this.handleKeyUp = this.handleKeyUp.bind(this);
13
- this.handleReset = this.handleReset.bind(this);
14
- }
15
- handleFocus() {
16
- Y(100).then(() => { this.empty = t.isNullOrEmpty(this.field.value); });
17
- }
18
- handleChange() {
19
- this.empty = t.isNullOrEmpty(this.field.value);
20
- }
21
- handleInput() {
22
- this.empty = t.isNullOrEmpty(this.field.value);
23
- }
24
- handleKeyUp() {
25
- this.empty = t.isNullOrEmpty(this.field.value);
26
- }
27
- handleReset() {
28
- this.empty = true;
29
- }
30
- componentWillLoad() {
31
- this.field = this.host.querySelector('input, select, textarea');
32
- this.empty = t.isNullOrEmpty(this.field.value);
33
- this.placeholder = this.field.getAttribute('placeholder');
34
- this.field.addEventListener('focus', this.handleFocus);
35
- this.field.addEventListener('change', this.handleChange);
36
- this.field.addEventListener('input', this.handleInput);
37
- this.field.addEventListener('keyup', this.handleKeyUp);
38
- const labelledby = this.field.getAttribute('aria-labelledby');
39
- const id = this.host.getAttribute('id') || R.uid();
40
- this.host.setAttribute('id', id);
41
- if (t.isNullOrEmpty(labelledby)) {
42
- this.field.setAttribute('aria-labelledby', id);
43
- }
44
- if (t.isFunction(this.host.closest)) {
45
- this.form = this.host.closest('form');
46
- if (this.form && this.form.addEventListener) {
47
- this.form.addEventListener('reset', this.handleReset);
48
- }
49
- }
50
- }
51
- disconnectedCallback() {
52
- if (this.field && this.field.removeEventListener) {
53
- this.field.removeEventListener('focus', this.handleFocus);
54
- this.field.removeEventListener('change', this.handleChange);
55
- this.field.removeEventListener('input', this.handleInput);
56
- this.field.removeEventListener('keyup', this.handleKeyUp);
57
- if (this.form && this.form.removeEventListener) {
58
- this.form.removeEventListener('reset', this.handleReset);
59
- }
60
- }
61
- }
62
- render() {
63
- const { empty, value, placeholder } = this;
64
- return (h(Host, null, h("label", { htmlFor: this.for, class: `${empty ? 'empty' : ''}` }, value || placeholder), h("slot", null)));
65
- }
66
- get host() { return getElement(this); }
67
- };
68
- Ku4Label.style = ku4LabelCss;
69
-
70
- export { Ku4Label as ku4_label };
@@ -1 +0,0 @@
1
- System.register(["./index-7624f416.system.js","./index-3127d7f7.system.js"],(function(e){"use strict";var t,i,s,n,l,o,r;return{setters:[function(e){t=e.r;i=e.h;s=e.f;n=e.g},function(e){l=e.Y;o=e.t;r=e.R}],execute:function(){var h=":host{position:relative;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:12px;line-height:14px}::slotted(*){padding:6px;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;font-size:18px;-webkit-appearance:none}label{position:absolute;display:inline;top:var(--ku4-label-top, -6px);left:var(--ku4-label-left, 8px);padding:var(--ku4-label-padding, 0 4px);font-size:inherit;line-height:inherit;background-color:var(--ku4-label-background-color, inherit);color:inherit;z-index:1;white-space:nowrap;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}label.empty{opacity:0;-webkit-transition:all 0.1s ease;transition:all 0.1s ease}";var a=e("ku4_label",function(){function e(e){t(this,e);this.handleFocus=this.handleFocus.bind(this);this.handleChange=this.handleChange.bind(this);this.handleInput=this.handleInput.bind(this);this.handleKeyUp=this.handleKeyUp.bind(this);this.handleReset=this.handleReset.bind(this)}e.prototype.handleFocus=function(){var e=this;l(100).then((function(){e.empty=o.isNullOrEmpty(e.field.value)}))};e.prototype.handleChange=function(){this.empty=o.isNullOrEmpty(this.field.value)};e.prototype.handleInput=function(){this.empty=o.isNullOrEmpty(this.field.value)};e.prototype.handleKeyUp=function(){this.empty=o.isNullOrEmpty(this.field.value)};e.prototype.handleReset=function(){this.empty=true};e.prototype.componentWillLoad=function(){this.field=this.host.querySelector("input, select, textarea");this.empty=o.isNullOrEmpty(this.field.value);this.placeholder=this.field.getAttribute("placeholder");this.field.addEventListener("focus",this.handleFocus);this.field.addEventListener("change",this.handleChange);this.field.addEventListener("input",this.handleInput);this.field.addEventListener("keyup",this.handleKeyUp);var e=this.field.getAttribute("aria-labelledby");var t=this.host.getAttribute("id")||r.uid();this.host.setAttribute("id",t);if(o.isNullOrEmpty(e)){this.field.setAttribute("aria-labelledby",t)}if(o.isFunction(this.host.closest)){this.form=this.host.closest("form");if(this.form&&this.form.addEventListener){this.form.addEventListener("reset",this.handleReset)}}};e.prototype.disconnectedCallback=function(){if(this.field&&this.field.removeEventListener){this.field.removeEventListener("focus",this.handleFocus);this.field.removeEventListener("change",this.handleChange);this.field.removeEventListener("input",this.handleInput);this.field.removeEventListener("keyup",this.handleKeyUp);if(this.form&&this.form.removeEventListener){this.form.removeEventListener("reset",this.handleReset)}}};e.prototype.render=function(){var e=this,t=e.empty,n=e.value,l=e.placeholder;return i(s,null,i("label",{htmlFor:this.for,class:""+(t?"empty":"")},n||l),i("slot",null))};Object.defineProperty(e.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());a.style=h}}}));
@@ -1,311 +0,0 @@
1
- import { r as registerInstance, h } from './index-88e7b9d4.js';
2
- import { a, Y, t } from './index-89916128.js';
3
-
4
- const ku4MaskCss = ":host{display:none}";
5
-
6
- const Ku4Mask = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.charIndexes = [];
10
- this.reverseCharIndexes = [];
11
- this.previousValue = '';
12
- this.currentValue = '';
13
- this.touchStart = false;
14
- /**
15
- * Mask template
16
- */
17
- this.template = '';
18
- /**
19
- * A regex of characters to ban from
20
- * entry. A user will not be able to input
21
- * any character in this set of characters.
22
- * E.g. ban="[()-]" will not allow a user to
23
- * input (, ), or - into the target input.
24
- */
25
- this.ban = '';
26
- /**
27
- * A test pattern for the mask to allow or
28
- * disallow characters at targeted points
29
- * in the input. The pattern is a character
30
- * separated value of regular expressions
31
- * where the first character denotes the
32
- * character separator at each subsequent
33
- * value is a regular expression for the
34
- * character at that indicated index.
35
- * E.g. `pattern=",[345],,,[^abc]"` would mean
36
- * that "," is the separator and that the
37
- * first character must be a 3, 4, or 5, and
38
- * the fourth character cannot be an a, b or c.
39
- */
40
- this.pattern = '';
41
- /**
42
- * Mask Character
43
- */
44
- this.char = '_';
45
- /**
46
- * Hide mask
47
- */
48
- this.hidden = false;
49
- this.handleFocus = this.handleFocus.bind(this);
50
- this.handleKeyDown = this.handleKeyDown.bind(this);
51
- this.handleInput = this.handleInput.bind(this);
52
- this.handleTouchStart = this.handleTouchStart.bind(this);
53
- this.init();
54
- }
55
- init() {
56
- this.chars = this.char && new RegExp(this.char);
57
- this.banned = this.ban && new RegExp(this.ban);
58
- const pattern = this.pattern.replace(/[\s\n]/gm, '');
59
- this.patterns = pattern.substr(1).split(pattern[0]).map((v) => {
60
- try {
61
- return v && new RegExp(v) || null;
62
- }
63
- catch (e) {
64
- /**
65
- * TODO: Remove try/catch when Safari supports lookbehinds.
66
- * Safari does not support lookbehinds and blows up everything
67
- * because of this. This try catch allows all masking behaviour
68
- * to continue to work except for patterns that include lookbehinds.
69
- */
70
- }
71
- });
72
- this.charIndexes = this.template.split('')
73
- .reduce((acc, char, i) => {
74
- if (this.chars.test(char)) {
75
- acc.push(i);
76
- }
77
- return acc;
78
- }, []);
79
- this.reverseCharIndexes = [...this.charIndexes].reverse();
80
- return this;
81
- }
82
- templateHandler(newTemplate, oldTemplate) {
83
- const { input, previousCharIndex, previousValue, currentValue, value, char } = this;
84
- const previousLength = a.unmask(previousValue, oldTemplate, char).length;
85
- const currentLength = a.unmask(currentValue, oldTemplate, char).length;
86
- const nextIndex = previousLength < currentLength ? previousCharIndex + 1 : previousCharIndex;
87
- this.init().value = a.mask(a.unmask(value, oldTemplate, char), newTemplate, char);
88
- input.setSelectionRange(nextIndex, nextIndex);
89
- }
90
- charHandler(newChar, oldChar) {
91
- const { value, template } = this;
92
- this.init().value = a.mask(a.unmask(value, template, oldChar), template, newChar);
93
- }
94
- get previousCharIndex() {
95
- return this.reverseCharIndexes.find(i => this.selectionStart > i) || this.charIndexes[0];
96
- }
97
- get value() {
98
- return this.currentValue;
99
- }
100
- set value(value) {
101
- const { chars, hidden, input } = this;
102
- const indexOfChar = value.search(chars);
103
- this.currentValue = value;
104
- input.value = hidden && indexOfChar > -1 ? value.substring(0, indexOfChar) : value;
105
- }
106
- handleTouchStart() {
107
- this.touchStart = true;
108
- }
109
- handleFocus() {
110
- // Abort if the browser is IE11
111
- // @ts-ignore - Leveraging documentMode to determine unsupported browser
112
- if (window.document.documentMode) {
113
- return;
114
- }
115
- const { input, template, char, chars, touchStart } = this;
116
- this.value = a.mask(a.unmask(this.value, template, char), template, char);
117
- Y(0).then(() => {
118
- const index = input.value.search(chars);
119
- const selection = index < 0 ? input.value.length : index;
120
- this.input.setSelectionRange(index < 0 && !touchStart ? 0 : selection, selection);
121
- this.touchStart = false;
122
- });
123
- }
124
- handleKeyDown(e) {
125
- // Abort if the browser is IE11
126
- // @ts-ignore - Leveraging documentMode to determine unsupported browser
127
- if (window.document.documentMode) {
128
- return;
129
- }
130
- const { banned, hidden, template, char } = this;
131
- if (e.key &&
132
- e.key.length === 1 &&
133
- banned &&
134
- (banned.test(e.key) &&
135
- !(e.altKey || e.ctrlKey || e.metaKey))) {
136
- e.preventDefault();
137
- }
138
- this.previousValue = hidden ? a.mask(a.unmask(e.target.value, template, char), template, char) : e.target.value;
139
- this.selectionStart = e.target.selectionStart;
140
- this.selectionEnd = e.target.selectionEnd;
141
- }
142
- handleInput(e) {
143
- // Abort if the browser is IE11
144
- // @ts-ignore - Leveraging documentMode to determine unsupported browser
145
- if (window.document.documentMode) {
146
- return;
147
- }
148
- const { input, template, char, chars, previousValue, banned, selectionStart, selectionEnd, previousCharIndex, patterns, charIndexes, reverseCharIndexes } = this;
149
- if (!chars.test(this.previousValue) &&
150
- e.inputType !== 'insertFromPaste' &&
151
- e.inputType !== 'deleteContentBackward' &&
152
- e.inputType !== 'deleteContentForward' &&
153
- selectionStart === selectionEnd) {
154
- this.value = previousValue;
155
- return;
156
- }
157
- if (e.inputType === 'insertFromPaste') {
158
- try {
159
- navigator.clipboard.readText()
160
- .then((rawData) => {
161
- const data = rawData.replace(new RegExp(banned, 'g'), '');
162
- if (t.isNullOrEmpty(data)) {
163
- this.value = previousValue;
164
- input.setSelectionRange(selectionStart, selectionStart);
165
- return;
166
- }
167
- if (!banned || !banned.test(data)) {
168
- let nextValue = previousValue;
169
- if (selectionStart < selectionEnd) {
170
- const startValue = reverseCharIndexes.find(v => v <= selectionStart - 1);
171
- const endValue = reverseCharIndexes.find(v => v <= selectionEnd - 1);
172
- const startInsertIndex = charIndexes.findIndex(v => v === startValue);
173
- const endInsertIndex = charIndexes.findIndex(v => v === endValue);
174
- const unmasked = a.unmask(previousValue, template, char);
175
- const newValue = unmasked.substring(0, startInsertIndex + 1) + unmasked.substring(endInsertIndex + 1, previousValue.length);
176
- nextValue = a.mask(newValue, template, char);
177
- }
178
- const charIndex = charIndexes.find(v => v >= selectionStart);
179
- const insertIndex = charIndexes.findIndex(v => v === charIndex);
180
- const unmasked = a.unmask(nextValue, template, char);
181
- nextValue = unmasked.substring(0, insertIndex) + data + unmasked.substring(insertIndex, previousValue.length);
182
- this.value = a.mask(nextValue, template, char);
183
- const index = charIndexes[insertIndex + data.length] || this.value.search(chars) || this.value.length;
184
- input.setSelectionRange(index, index);
185
- }
186
- });
187
- this.value = previousValue;
188
- input.setSelectionRange(selectionStart, selectionStart);
189
- return;
190
- }
191
- catch (e) {
192
- this.value = previousValue;
193
- input.setSelectionRange(selectionStart, selectionStart);
194
- return;
195
- }
196
- }
197
- if (e.inputType === 'deleteContentBackward') {
198
- const startValue = reverseCharIndexes.find(v => v <= selectionStart - 1);
199
- const endValue = reverseCharIndexes.find(v => v <= selectionEnd - 1);
200
- const startInsertIndex = charIndexes.findIndex(v => v === startValue);
201
- const endInsertIndex = charIndexes.findIndex(v => v === endValue);
202
- const unmasked = a.unmask(previousValue, template, char);
203
- if (startInsertIndex < endInsertIndex) {
204
- const newValue = unmasked.substring(0, startInsertIndex + 1) + unmasked.substring(endInsertIndex + 1, previousValue.length);
205
- this.value = a.mask(newValue, template, char);
206
- newValue && startInsertIndex > -1
207
- ? input.setSelectionRange(previousCharIndex + 1, previousCharIndex + 1)
208
- : input.setSelectionRange(previousCharIndex, previousCharIndex);
209
- }
210
- else {
211
- const newValue = unmasked.substring(0, startInsertIndex) + unmasked.substring(endInsertIndex + 1, previousValue.length);
212
- this.value = a.mask(newValue, template, char);
213
- input.setSelectionRange(previousCharIndex, previousCharIndex);
214
- }
215
- return;
216
- }
217
- if (e.inputType === 'deleteContentForward') {
218
- const charIndex = charIndexes.find(v => v >= selectionStart);
219
- const insertIndex = charIndexes.findIndex(v => v === charIndex);
220
- const unmasked = a.unmask(previousValue, template, char);
221
- const newValue = unmasked.substring(0, insertIndex) + unmasked.substring(insertIndex + 1, previousValue.length);
222
- this.value = a.mask(newValue, template, char);
223
- input.setSelectionRange(selectionStart, selectionStart);
224
- return;
225
- }
226
- //Abort if auxiliary key is pressed.
227
- if (e.altKey || e.ctrlKey || e.metaKey) {
228
- return;
229
- }
230
- //Abort if disallowed character
231
- if (!e.data) {
232
- this.value = previousValue;
233
- input.setSelectionRange(selectionStart, selectionStart);
234
- return;
235
- }
236
- //Append
237
- if (chars.test(previousValue.charAt(selectionStart)) ||
238
- selectionStart === template.length) {
239
- const unmasked = a.unmask(previousValue, template, char);
240
- this.value = a.mask(unmasked + e.data, template, char);
241
- const charIndex = this.value.search(chars);
242
- const index = charIndex < 0 ? template.length : charIndex;
243
- input.setSelectionRange(index, index);
244
- const patternIndex = charIndexes.findIndex(v => v >= index);
245
- const validationIndex = patternIndex < 0 ? charIndexes.length - 1 : patternIndex - 1;
246
- this.validate(e.data, patterns[validationIndex]);
247
- }
248
- //Insert
249
- else {
250
- let nextValue = previousValue;
251
- if (selectionStart < selectionEnd) {
252
- const startValue = reverseCharIndexes.find(v => v <= selectionStart - 1);
253
- const endValue = reverseCharIndexes.find(v => v <= selectionEnd - 1);
254
- const startInsertIndex = charIndexes.findIndex(v => v === startValue);
255
- const endInsertIndex = charIndexes.findIndex(v => v === endValue);
256
- const unmasked = a.unmask(previousValue, template, char);
257
- const newValue = unmasked.substring(0, startInsertIndex + 1) + unmasked.substring(endInsertIndex + 1, previousValue.length);
258
- nextValue = a.mask(newValue, template, char);
259
- }
260
- const charIndex = charIndexes.find(v => v >= selectionStart);
261
- const insertIndex = charIndexes.findIndex(v => v === charIndex);
262
- const unmasked = a.unmask(nextValue, template, char);
263
- nextValue = unmasked.substring(0, insertIndex) + e.data + unmasked.substring(insertIndex, previousValue.length);
264
- const index = charIndexes.find(v => v > charIndex);
265
- this.value = a.mask(nextValue, template, char);
266
- input.setSelectionRange(index, index);
267
- const patternIndex = charIndexes.findIndex(v => v >= index);
268
- const validationIndex = patternIndex < 0 ? charIndexes.length - 1 : patternIndex - 1;
269
- this.validate(e.data, patterns[validationIndex]);
270
- }
271
- }
272
- validate(data, pattern) {
273
- const { previousValue, input, value, selectionStart } = this;
274
- if (t.exists(pattern) &&
275
- !(pattern.test(data) || (/\(\?[!<=]/.test(pattern.toString()) && pattern.test(value)))) {
276
- this.value = previousValue;
277
- input.setSelectionRange(selectionStart, selectionStart);
278
- }
279
- }
280
- componentWillLoad() {
281
- this.input = document.getElementById(this.for);
282
- if (t.exists(this.input)) {
283
- this.input.addEventListener('focus', this.handleFocus);
284
- this.input.addEventListener('keydown', this.handleKeyDown);
285
- this.input.addEventListener('input', this.handleInput);
286
- this.input.addEventListener('touchstart', this.handleTouchStart);
287
- }
288
- else {
289
- // eslint-disable-next-line no-console
290
- console.error('ku4-mask must have a valid `for` referencing target field `id`.');
291
- }
292
- }
293
- disconnectedCallback() {
294
- if (this.input && this.input.removeEventListener) {
295
- this.input.removeEventListener('focus', this.handleFocus);
296
- this.input.removeEventListener('keydown', this.handleKeyDown);
297
- this.input.removeEventListener('input', this.handleInput);
298
- this.input.removeEventListener('touchstart', this.handleTouchStart);
299
- }
300
- }
301
- render() {
302
- return h("slot", null);
303
- }
304
- static get watchers() { return {
305
- "template": ["templateHandler"],
306
- "char": ["charHandler"]
307
- }; }
308
- };
309
- Ku4Mask.style = ku4MaskCss;
310
-
311
- export { Ku4Mask as ku4_mask };
@@ -1 +0,0 @@
1
- var __spreadArray=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t};System.register(["./index-7624f416.system.js","./index-3127d7f7.system.js"],(function(t){"use strict";var e,n,r,i,a;return{setters:[function(t){e=t.r;n=t.h},function(t){r=t.a;i=t.Y;a=t.t}],execute:function(){var s=":host{display:none}";var u=t("ku4_mask",function(){function t(t){e(this,t);this.charIndexes=[];this.reverseCharIndexes=[];this.previousValue="";this.currentValue="";this.touchStart=false;this.template="";this.ban="";this.pattern="";this.char="_";this.hidden=false;this.handleFocus=this.handleFocus.bind(this);this.handleKeyDown=this.handleKeyDown.bind(this);this.handleInput=this.handleInput.bind(this);this.handleTouchStart=this.handleTouchStart.bind(this);this.init()}t.prototype.init=function(){var t=this;this.chars=this.char&&new RegExp(this.char);this.banned=this.ban&&new RegExp(this.ban);var e=this.pattern.replace(/[\s\n]/gm,"");this.patterns=e.substr(1).split(e[0]).map((function(t){try{return t&&new RegExp(t)||null}catch(e){}}));this.charIndexes=this.template.split("").reduce((function(e,n,r){if(t.chars.test(n)){e.push(r)}return e}),[]);this.reverseCharIndexes=__spreadArray([],this.charIndexes).reverse();return this};t.prototype.templateHandler=function(t,e){var n=this,i=n.input,a=n.previousCharIndex,s=n.previousValue,u=n.currentValue,h=n.value,o=n.char;var l=r.unmask(s,e,o).length;var c=r.unmask(u,e,o).length;var d=l<c?a+1:a;this.init().value=r.mask(r.unmask(h,e,o),t,o);i.setSelectionRange(d,d)};t.prototype.charHandler=function(t,e){var n=this,i=n.value,a=n.template;this.init().value=r.mask(r.unmask(i,a,e),a,t)};Object.defineProperty(t.prototype,"previousCharIndex",{get:function(){var t=this;return this.reverseCharIndexes.find((function(e){return t.selectionStart>e}))||this.charIndexes[0]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return this.currentValue},set:function(t){var e=this,n=e.chars,r=e.hidden,i=e.input;var a=t.search(n);this.currentValue=t;i.value=r&&a>-1?t.substring(0,a):t},enumerable:false,configurable:true});t.prototype.handleTouchStart=function(){this.touchStart=true};t.prototype.handleFocus=function(){var t=this;if(window.document.documentMode){return}var e=this,n=e.input,a=e.template,s=e.char,u=e.chars,h=e.touchStart;this.value=r.mask(r.unmask(this.value,a,s),a,s);i(0).then((function(){var e=n.value.search(u);var r=e<0?n.value.length:e;t.input.setSelectionRange(e<0&&!h?0:r,r);t.touchStart=false}))};t.prototype.handleKeyDown=function(t){if(window.document.documentMode){return}var e=this,n=e.banned,i=e.hidden,a=e.template,s=e.char;if(t.key&&t.key.length===1&&n&&(n.test(t.key)&&!(t.altKey||t.ctrlKey||t.metaKey))){t.preventDefault()}this.previousValue=i?r.mask(r.unmask(t.target.value,a,s),a,s):t.target.value;this.selectionStart=t.target.selectionStart;this.selectionEnd=t.target.selectionEnd};t.prototype.handleInput=function(t){var e=this;if(window.document.documentMode){return}var n=this,i=n.input,s=n.template,u=n.char,h=n.chars,o=n.previousValue,l=n.banned,c=n.selectionStart,d=n.selectionEnd,v=n.previousCharIndex,f=n.patterns,p=n.charIndexes,g=n.reverseCharIndexes;if(!h.test(this.previousValue)&&t.inputType!=="insertFromPaste"&&t.inputType!=="deleteContentBackward"&&t.inputType!=="deleteContentForward"&&c===d){this.value=o;return}if(t.inputType==="insertFromPaste"){try{navigator.clipboard.readText().then((function(t){var n=t.replace(new RegExp(l,"g"),"");if(a.isNullOrEmpty(n)){e.value=o;i.setSelectionRange(c,c);return}if(!l||!l.test(n)){var v=o;if(c<d){var f=g.find((function(t){return t<=c-1}));var m=g.find((function(t){return t<=d-1}));var y=p.findIndex((function(t){return t===f}));var b=p.findIndex((function(t){return t===m}));var k=r.unmask(o,s,u);var x=k.substring(0,y+1)+k.substring(b+1,o.length);v=r.mask(x,s,u)}var S=p.find((function(t){return t>=c}));var I=p.findIndex((function(t){return t===S}));var w=r.unmask(v,s,u);v=w.substring(0,I)+n+w.substring(I,o.length);e.value=r.mask(v,s,u);var E=p[I+n.length]||e.value.search(h)||e.value.length;i.setSelectionRange(E,E)}}));this.value=o;i.setSelectionRange(c,c);return}catch(t){this.value=o;i.setSelectionRange(c,c);return}}if(t.inputType==="deleteContentBackward"){var m=g.find((function(t){return t<=c-1}));var y=g.find((function(t){return t<=d-1}));var b=p.findIndex((function(t){return t===m}));var k=p.findIndex((function(t){return t===y}));var x=r.unmask(o,s,u);if(b<k){var S=x.substring(0,b+1)+x.substring(k+1,o.length);this.value=r.mask(S,s,u);S&&b>-1?i.setSelectionRange(v+1,v+1):i.setSelectionRange(v,v)}else{var S=x.substring(0,b)+x.substring(k+1,o.length);this.value=r.mask(S,s,u);i.setSelectionRange(v,v)}return}if(t.inputType==="deleteContentForward"){var I=p.find((function(t){return t>=c}));var w=p.findIndex((function(t){return t===I}));var x=r.unmask(o,s,u);var S=x.substring(0,w)+x.substring(w+1,o.length);this.value=r.mask(S,s,u);i.setSelectionRange(c,c);return}if(t.altKey||t.ctrlKey||t.metaKey){return}if(!t.data){this.value=o;i.setSelectionRange(c,c);return}if(h.test(o.charAt(c))||c===s.length){var x=r.unmask(o,s,u);this.value=r.mask(x+t.data,s,u);var E=this.value.search(h);var R=E<0?s.length:E;i.setSelectionRange(R,R);var C=p.findIndex((function(t){return t>=R}));var T=C<0?p.length-1:C-1;this.validate(t.data,f[T])}else{var K=o;if(c<d){var L=g.find((function(t){return t<=c-1}));var V=g.find((function(t){return t<=d-1}));var b=p.findIndex((function(t){return t===L}));var k=p.findIndex((function(t){return t===V}));var F=r.unmask(o,s,u);var S=F.substring(0,b+1)+F.substring(k+1,o.length);K=r.mask(S,s,u)}var _=p.find((function(t){return t>=c}));var w=p.findIndex((function(t){return t===_}));var x=r.unmask(K,s,u);K=x.substring(0,w)+t.data+x.substring(w,o.length);var D=p.find((function(t){return t>_}));this.value=r.mask(K,s,u);i.setSelectionRange(D,D);var C=p.findIndex((function(t){return t>=D}));var T=C<0?p.length-1:C-1;this.validate(t.data,f[T])}};t.prototype.validate=function(t,e){var n=this,r=n.previousValue,i=n.input,s=n.value,u=n.selectionStart;if(a.exists(e)&&!(e.test(t)||/\(\?[!<=]/.test(e.toString())&&e.test(s))){this.value=r;i.setSelectionRange(u,u)}};t.prototype.componentWillLoad=function(){this.input=document.getElementById(this.for);if(a.exists(this.input)){this.input.addEventListener("focus",this.handleFocus);this.input.addEventListener("keydown",this.handleKeyDown);this.input.addEventListener("input",this.handleInput);this.input.addEventListener("touchstart",this.handleTouchStart)}else{console.error("ku4-mask must have a valid `for` referencing target field `id`.")}};t.prototype.disconnectedCallback=function(){if(this.input&&this.input.removeEventListener){this.input.removeEventListener("focus",this.handleFocus);this.input.removeEventListener("keydown",this.handleKeyDown);this.input.removeEventListener("input",this.handleInput);this.input.removeEventListener("touchstart",this.handleTouchStart)}};t.prototype.render=function(){return n("slot",null)};Object.defineProperty(t,"watchers",{get:function(){return{template:["templateHandler"],char:["charHandler"]}},enumerable:false,configurable:true});return t}());u.style=s}}}));
@@ -1,71 +0,0 @@
1
- import { r as registerInstance, e as createEvent, h, f as Host, g as getElement } from './index-88e7b9d4.js';
2
- import { t } from './index-89916128.js';
3
- import { D as Document, K as Key } from './index-4693d116.js';
4
-
5
- const ku4ModalCss = "@-webkit-keyframes ku4-modal-content-enter{0%{-webkit-transform:var(--ku4-modal-content-animation-start-transform, scale(0.5));transform:var(--ku4-modal-content-animation-start-transform, scale(0.5));opacity:var(--ku4-modal-content-animation-start-opacity, 0)}50%{-webkit-transform:var(--ku4-modal-content-animation-mid-transform, scale(1.2));transform:var(--ku4-modal-content-animation-mid-transform, scale(1.2));opacity:var(--ku4-modal-content-animation-mid-opacity, 0.8)}100%{-webkit-transform:var(--ku4-modal-content-animation-end-transform, scale(1));transform:var(--ku4-modal-content-animation-end-transform, scale(1));opacity:var(--ku4-modal-content-animation-end-opacity, 1)}}@keyframes ku4-modal-content-enter{0%{-webkit-transform:var(--ku4-modal-content-animation-start-transform, scale(0.5));transform:var(--ku4-modal-content-animation-start-transform, scale(0.5));opacity:var(--ku4-modal-content-animation-start-opacity, 0)}50%{-webkit-transform:var(--ku4-modal-content-animation-mid-transform, scale(1.2));transform:var(--ku4-modal-content-animation-mid-transform, scale(1.2));opacity:var(--ku4-modal-content-animation-mid-opacity, 0.8)}100%{-webkit-transform:var(--ku4-modal-content-animation-end-transform, scale(1));transform:var(--ku4-modal-content-animation-end-transform, scale(1));opacity:var(--ku4-modal-content-animation-end-opacity, 1)}}@-webkit-keyframes ku4-modal-overlay-enter{0%{-webkit-transform:var(--ku4-modal-overlay-animation-start-transform, none);transform:var(--ku4-modal-overlay-animation-start-transform, none);opacity:var(--ku4-modal-overlay-animation-start-opacity, 0)}50%{-webkit-transform:var(--ku4-modal-overlay-animation-mid-transform, none);transform:var(--ku4-modal-overlay-animation-mid-transform, none);opacity:var(--ku4-modal-overlay-animation-mid-opacity, 0.35)}100%{-webkit-transform:var(--ku4-modal-overlay-animation-end-transform, none);transform:var(--ku4-modal-overlay-animation-end-transform, none);opacity:var(--ku4-modal-overlay-animation-end-opacity, 0.4)}}@keyframes ku4-modal-overlay-enter{0%{-webkit-transform:var(--ku4-modal-overlay-animation-start-transform, none);transform:var(--ku4-modal-overlay-animation-start-transform, none);opacity:var(--ku4-modal-overlay-animation-start-opacity, 0)}50%{-webkit-transform:var(--ku4-modal-overlay-animation-mid-transform, none);transform:var(--ku4-modal-overlay-animation-mid-transform, none);opacity:var(--ku4-modal-overlay-animation-mid-opacity, 0.35)}100%{-webkit-transform:var(--ku4-modal-overlay-animation-end-transform, none);transform:var(--ku4-modal-overlay-animation-end-transform, none);opacity:var(--ku4-modal-overlay-animation-end-opacity, 0.4)}}:host{position:fixed;display:none;top:0;left:0;width:100vw;height:100vh;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background:transparent;overflow:auto;-webkit-transform-style:var(--ku4-modal-transform-style, initial);transform-style:var(--ku4-modal-transform-style, initial)}.ku4-modal-content{position:relative;top:0;left:0}.ku4-modal-overlay{position:fixed;display:-ms-flexbox;display:flex;top:0;left:0;width:100%;height:100%;opacity:0;background:var(--ku4-modal-overlay-background, #000)}:host([visible]){display:-ms-flexbox;display:flex;z-index:var(--ku4-modal-z-index, 5)}:host([visible]) .ku4-modal-content{-webkit-animation-name:ku4-modal-content-enter;animation-name:ku4-modal-content-enter;-webkit-animation-duration:var(--ku4-modal-content-animation-duration, 0.4s);animation-duration:var(--ku4-modal-content-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-modal-content-animation-timing-function, ease);animation-timing-function:var(--ku4-modal-content-animation-timing-function, ease);-webkit-transform:var(--ku4-modal-content-transform, none);transform:var(--ku4-modal-content-transform, none);opacity:var(--ku4-modal-content-opacity, 1);z-index:calc(var(--ku4-modal-z-index, 5) + 1)}:host([visible]) .ku4-modal-overlay{-webkit-animation-name:ku4-modal-overlay-enter;animation-name:ku4-modal-overlay-enter;-webkit-animation-duration:var(--ku4-modal-overlay-animation-duration, 0.4s);animation-duration:var(--ku4-modal-overlay-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-modal-overlay-animation-timing-function, ease);animation-timing-function:var(--ku4-modal-overlay-animation-timing-function, ease);-webkit-transform:var(--ku4-modal-overlay-transform, none);transform:var(--ku4-modal-overlay-transform, none);opacity:var(--ku4-modal-overlay-opacity, 0.4);z-index:calc(var(--ku4-modal-z-index, 5))}:host([visible=false]){display:none}";
6
-
7
- const Ku4Modal = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- this.didDisplay = createEvent(this, "display", 7);
11
- this.didDismiss = createEvent(this, "dismiss", 7);
12
- /**
13
- * Visible when true
14
- */
15
- // eslint-disable-next-line @stencil/strict-mutable
16
- this.visible = false;
17
- }
18
- handleVisibility(value) {
19
- if (value) {
20
- Document.preventScroll();
21
- if (t.exists(this.trap)) {
22
- this.trap.activate();
23
- }
24
- }
25
- else {
26
- Document.resumeScroll();
27
- if (t.exists(this.trap)) {
28
- this.trap.deactivate();
29
- }
30
- }
31
- }
32
- handleKeyUp(e) {
33
- if (this.visible && Key.esc.didFire(e)) {
34
- this.dismiss();
35
- }
36
- }
37
- /**
38
- * Display modal
39
- */
40
- async display() {
41
- this.visible = true;
42
- this.didDisplay.emit(this);
43
- }
44
- /**
45
- * Dismiss modal
46
- */
47
- async dismiss() {
48
- this.visible = false;
49
- this.didDismiss.emit(this);
50
- }
51
- componentDidLoad() {
52
- try {
53
- this.trap = this.host.querySelector('ku4-focus-trap') ||
54
- (document.querySelector(this.focusTrap));
55
- this.handleVisibility(this.visible);
56
- }
57
- catch (e) {
58
- throw new Error(`Cannot connect ku4-focus-trap: ${e.messsage}`);
59
- }
60
- }
61
- render() {
62
- return (h(Host, { role: "dialog", "aria-modal": "true" }, h("section", { class: "ku4-modal-content" }, h("slot", null)), h("section", { class: "ku4-modal-overlay", onClick: () => this.dismiss(), "aria-hidden": "true" })));
63
- }
64
- get host() { return getElement(this); }
65
- static get watchers() { return {
66
- "visible": ["handleVisibility"]
67
- }; }
68
- };
69
- Ku4Modal.style = ku4ModalCss;
70
-
71
- export { Ku4Modal as ku4_modal };
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,a,n,o){function i(t){return t instanceof n?t:new n((function(a){a(t)}))}return new(n||(n=Promise))((function(n,r){function e(t){try{m(o.next(t))}catch(a){r(a)}}function s(t){try{m(o["throw"](t))}catch(a){r(a)}}function m(t){t.done?n(t.value):i(t.value).then(e,s)}m((o=o.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,e;return e={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(e[Symbol.iterator]=function(){return this}),e;function s(t){return function(a){return m([t,a])}}function m(e){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(r=e[0]&2?i["return"]:e[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,e[1])).done)return r;if(i=0,r)e=[e[0]&2,r.value];switch(e[0]){case 0:case 1:r=e;break;case 4:n.label++;return{value:e[1],done:false};case 5:n.label++;i=e[1];e=[0];continue;case 7:e=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(e[0]===6||e[0]===2)){n=0;continue}if(e[0]===3&&(!r||e[1]>r[0]&&e[1]<r[3])){n.label=e[1];break}if(e[0]===6&&n.label<r[1]){n.label=r[1];r=e;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(e);break}if(r[2])n.ops.pop();n.trys.pop();continue}e=a.call(t,n)}catch(s){e=[6,s];i=0}finally{o=r=0}if(e[0]&5)throw e[1];return{value:e[0]?e[1]:void 0,done:true}}};System.register(["./index-7624f416.system.js","./index-3127d7f7.system.js","./index-aea7f048.system.js"],(function(t){"use strict";var a,n,o,i,r,e,s,m;return{setters:[function(t){a=t.r;n=t.e;o=t.h;i=t.f;r=t.g},function(t){e=t.t},function(t){s=t.D;m=t.K}],execute:function(){var l="@-webkit-keyframes ku4-modal-content-enter{0%{-webkit-transform:var(--ku4-modal-content-animation-start-transform, scale(0.5));transform:var(--ku4-modal-content-animation-start-transform, scale(0.5));opacity:var(--ku4-modal-content-animation-start-opacity, 0)}50%{-webkit-transform:var(--ku4-modal-content-animation-mid-transform, scale(1.2));transform:var(--ku4-modal-content-animation-mid-transform, scale(1.2));opacity:var(--ku4-modal-content-animation-mid-opacity, 0.8)}100%{-webkit-transform:var(--ku4-modal-content-animation-end-transform, scale(1));transform:var(--ku4-modal-content-animation-end-transform, scale(1));opacity:var(--ku4-modal-content-animation-end-opacity, 1)}}@keyframes ku4-modal-content-enter{0%{-webkit-transform:var(--ku4-modal-content-animation-start-transform, scale(0.5));transform:var(--ku4-modal-content-animation-start-transform, scale(0.5));opacity:var(--ku4-modal-content-animation-start-opacity, 0)}50%{-webkit-transform:var(--ku4-modal-content-animation-mid-transform, scale(1.2));transform:var(--ku4-modal-content-animation-mid-transform, scale(1.2));opacity:var(--ku4-modal-content-animation-mid-opacity, 0.8)}100%{-webkit-transform:var(--ku4-modal-content-animation-end-transform, scale(1));transform:var(--ku4-modal-content-animation-end-transform, scale(1));opacity:var(--ku4-modal-content-animation-end-opacity, 1)}}@-webkit-keyframes ku4-modal-overlay-enter{0%{-webkit-transform:var(--ku4-modal-overlay-animation-start-transform, none);transform:var(--ku4-modal-overlay-animation-start-transform, none);opacity:var(--ku4-modal-overlay-animation-start-opacity, 0)}50%{-webkit-transform:var(--ku4-modal-overlay-animation-mid-transform, none);transform:var(--ku4-modal-overlay-animation-mid-transform, none);opacity:var(--ku4-modal-overlay-animation-mid-opacity, 0.35)}100%{-webkit-transform:var(--ku4-modal-overlay-animation-end-transform, none);transform:var(--ku4-modal-overlay-animation-end-transform, none);opacity:var(--ku4-modal-overlay-animation-end-opacity, 0.4)}}@keyframes ku4-modal-overlay-enter{0%{-webkit-transform:var(--ku4-modal-overlay-animation-start-transform, none);transform:var(--ku4-modal-overlay-animation-start-transform, none);opacity:var(--ku4-modal-overlay-animation-start-opacity, 0)}50%{-webkit-transform:var(--ku4-modal-overlay-animation-mid-transform, none);transform:var(--ku4-modal-overlay-animation-mid-transform, none);opacity:var(--ku4-modal-overlay-animation-mid-opacity, 0.35)}100%{-webkit-transform:var(--ku4-modal-overlay-animation-end-transform, none);transform:var(--ku4-modal-overlay-animation-end-transform, none);opacity:var(--ku4-modal-overlay-animation-end-opacity, 0.4)}}:host{position:fixed;display:none;top:0;left:0;width:100vw;height:100vh;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background:transparent;overflow:auto;-webkit-transform-style:var(--ku4-modal-transform-style, initial);transform-style:var(--ku4-modal-transform-style, initial)}.ku4-modal-content{position:relative;top:0;left:0}.ku4-modal-overlay{position:fixed;display:-ms-flexbox;display:flex;top:0;left:0;width:100%;height:100%;opacity:0;background:var(--ku4-modal-overlay-background, #000)}:host([visible]){display:-ms-flexbox;display:flex;z-index:var(--ku4-modal-z-index, 5)}:host([visible]) .ku4-modal-content{-webkit-animation-name:ku4-modal-content-enter;animation-name:ku4-modal-content-enter;-webkit-animation-duration:var(--ku4-modal-content-animation-duration, 0.4s);animation-duration:var(--ku4-modal-content-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-modal-content-animation-timing-function, ease);animation-timing-function:var(--ku4-modal-content-animation-timing-function, ease);-webkit-transform:var(--ku4-modal-content-transform, none);transform:var(--ku4-modal-content-transform, none);opacity:var(--ku4-modal-content-opacity, 1);z-index:calc(var(--ku4-modal-z-index, 5) + 1)}:host([visible]) .ku4-modal-overlay{-webkit-animation-name:ku4-modal-overlay-enter;animation-name:ku4-modal-overlay-enter;-webkit-animation-duration:var(--ku4-modal-overlay-animation-duration, 0.4s);animation-duration:var(--ku4-modal-overlay-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-modal-overlay-animation-timing-function, ease);animation-timing-function:var(--ku4-modal-overlay-animation-timing-function, ease);-webkit-transform:var(--ku4-modal-overlay-transform, none);transform:var(--ku4-modal-overlay-transform, none);opacity:var(--ku4-modal-overlay-opacity, 0.4);z-index:calc(var(--ku4-modal-z-index, 5))}:host([visible=false]){display:none}";var u=t("ku4_modal",function(){function t(t){a(this,t);this.didDisplay=n(this,"display",7);this.didDismiss=n(this,"dismiss",7);this.visible=false}t.prototype.handleVisibility=function(t){if(t){s.preventScroll();if(e.exists(this.trap)){this.trap.activate()}}else{s.resumeScroll();if(e.exists(this.trap)){this.trap.deactivate()}}};t.prototype.handleKeyUp=function(t){if(this.visible&&m.esc.didFire(t)){this.dismiss()}};t.prototype.display=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.visible=true;this.didDisplay.emit(this);return[2]}))}))};t.prototype.dismiss=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.visible=false;this.didDismiss.emit(this);return[2]}))}))};t.prototype.componentDidLoad=function(){try{this.trap=this.host.querySelector("ku4-focus-trap")||document.querySelector(this.focusTrap);this.handleVisibility(this.visible)}catch(t){throw new Error("Cannot connect ku4-focus-trap: "+t.messsage)}};t.prototype.render=function(){var t=this;return o(i,{role:"dialog","aria-modal":"true"},o("section",{class:"ku4-modal-content"},o("slot",null)),o("section",{class:"ku4-modal-overlay",onClick:function(){return t.dismiss()},"aria-hidden":"true"}))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{visible:["handleVisibility"]}},enumerable:false,configurable:true});return t}());u.style=l}}}));
@@ -1,49 +0,0 @@
1
- import { r as registerInstance, h, f as Host, g as getElement } from './index-88e7b9d4.js';
2
-
3
- const ku4PanelCss = ":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}";
4
-
5
- const Ku4Panel = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- /**
9
- * Set true to display panel
10
- */
11
- this.open = false;
12
- this.maxHeight = this.open ? 'none' : '0px';
13
- }
14
- openHandler(value) {
15
- if (value) {
16
- this.maxHeight = `${this.host.scrollHeight}px`;
17
- }
18
- else {
19
- this.host.style.maxHeight = `${this.host.scrollHeight}px`;
20
- this.maxHeight = '0px';
21
- }
22
- }
23
- handleTransitionEnd() {
24
- this.maxHeight = this.open ? 'none' : '0px';
25
- }
26
- /**
27
- * Toggle panel state
28
- */
29
- async toggle() {
30
- this.open = !this.open;
31
- }
32
- /**
33
- * Close panel
34
- */
35
- async close() {
36
- this.open = false;
37
- }
38
- render() {
39
- const { open, maxHeight } = this;
40
- return (h(Host, { "aria-hidden": open ? 'false' : 'true', tabIndex: open ? 0 : -1, style: { maxHeight } }, h("slot", null)));
41
- }
42
- get host() { return getElement(this); }
43
- static get watchers() { return {
44
- "open": ["openHandler"]
45
- }; }
46
- };
47
- Ku4Panel.style = ku4PanelCss;
48
-
49
- export { Ku4Panel as ku4_panel };
@@ -1 +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(e){o(e)}}function s(t){try{u(i["throw"](t))}catch(e){o(e)}}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(s){a=[6,s];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-7624f416.system.js"],(function(t){"use strict";var e,n,i,r;return{setters:[function(t){e=t.r;n=t.h;i=t.f;r=t.g}],execute:function(){var o=":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}";var a=t("ku4_panel",function(){function t(t){e(this,t);this.open=false;this.maxHeight=this.open?"none":"0px"}t.prototype.openHandler=function(t){if(t){this.maxHeight=this.host.scrollHeight+"px"}else{this.host.style.maxHeight=this.host.scrollHeight+"px";this.maxHeight="0px"}};t.prototype.handleTransitionEnd=function(){this.maxHeight=this.open?"none":"0px"};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=!this.open;return[2]}))}))};t.prototype.close=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=false;return[2]}))}))};t.prototype.render=function(){var t=this,e=t.open,r=t.maxHeight;return n(i,{"aria-hidden":e?"false":"true",tabIndex:e?0:-1,style:{maxHeight:r}},n("slot",null))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{open:["openHandler"]}},enumerable:false,configurable:true});return t}());a.style=o}}}));