ku4web-components 6.4.80 → 6.4.81

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 (280) 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-aaf4fec9.js +6 -0
  5. package/dist/cjs/dom-14886762.js +75 -0
  6. package/dist/cjs/index-652a3cbf.js +14 -0
  7. package/dist/cjs/index-8e9e8864.js +3093 -0
  8. package/dist/cjs/{index-1e13241e.js → index-a9159bd6.js} +1 -1
  9. package/dist/cjs/index-c904eb3a.js +10 -0
  10. package/dist/cjs/{index-da3ed39d.js → index-f78c109e.js} +1 -1
  11. package/dist/cjs/ku4-carousel-controls.cjs.entry.js +10 -4
  12. package/dist/cjs/ku4-carousel-slide.cjs.entry.js +1 -1
  13. package/dist/cjs/ku4-carousel.cjs.entry.js +3 -3
  14. package/dist/cjs/ku4-col.cjs.entry.js +1 -1
  15. package/dist/cjs/ku4-drawer.cjs.entry.js +1 -1
  16. package/dist/cjs/ku4-feature.cjs.entry.js +2 -2
  17. package/dist/cjs/ku4-focus-trap.cjs.entry.js +26 -26
  18. package/dist/cjs/ku4-form.cjs.entry.js +3 -3
  19. package/dist/cjs/ku4-grid.cjs.entry.js +1 -1
  20. package/dist/cjs/ku4-label.cjs.entry.js +2 -2
  21. package/dist/cjs/ku4-mask.cjs.entry.js +2 -2
  22. package/dist/cjs/ku4-modal.cjs.entry.js +3 -3
  23. package/dist/cjs/ku4-panel.cjs.entry.js +1 -1
  24. package/dist/cjs/ku4-preview.cjs.entry.js +43 -14
  25. package/dist/cjs/ku4-tab-list.cjs.entry.js +4 -4
  26. package/dist/cjs/ku4-tab-panel.cjs.entry.js +3 -3
  27. package/dist/cjs/ku4-tab.cjs.entry.js +3 -3
  28. package/dist/cjs/ku4-table.cjs.entry.js +1 -1
  29. package/dist/cjs/ku4-tooltip.cjs.entry.js +2 -2
  30. package/dist/cjs/ku4-validation.cjs.entry.js +2 -2
  31. package/dist/cjs/ku4web-components.cjs.js +103 -8
  32. package/dist/cjs/loader.cjs.js +19 -3
  33. package/dist/cjs/{shadow-css-8940f82d.js → shadow-css-c44ea13a.js} +1 -1
  34. package/dist/cjs/{uid-d6942c42.js → uid-97baaecc.js} +1 -1
  35. package/dist/cjs/uid-eb3bec28.js +11 -0
  36. package/dist/collection/capabilities/a11y/aria.js +26 -0
  37. package/dist/collection/capabilities/angular/index.js +24 -0
  38. package/dist/collection/capabilities/decorators/deprecated.js +20 -0
  39. package/dist/collection/capabilities/decorators/index.js +3 -0
  40. package/dist/collection/capabilities/decorators/memoize.js +7 -0
  41. package/dist/collection/capabilities/dom/isFocusable.js +7 -0
  42. package/dist/collection/capabilities/dom/queryFocusable.js +2 -0
  43. package/dist/collection/capabilities/identity/uid.js +6 -0
  44. package/dist/collection/capabilities/mask/index.js +5 -0
  45. package/dist/collection/capabilities/mask/patterns/date.js +40 -0
  46. package/dist/collection/capabilities/mask/patterns/index.js +7 -0
  47. package/dist/collection/capabilities/react/index.js +25 -0
  48. package/dist/collection/capabilities/testing/html.js +14 -0
  49. package/dist/collection/capabilities/testing/styles.js +14 -0
  50. package/dist/collection/capabilities/vue/index.js +28 -0
  51. package/dist/collection/capabilities/vue3/index.js +26 -0
  52. package/dist/collection/collection-manifest.json +31 -0
  53. package/dist/collection/components/ku4-carousel/ku4-carousel.css +221 -0
  54. package/dist/collection/components/ku4-carousel/ku4-carousel.js +362 -0
  55. package/dist/collection/components/ku4-carousel-controls/ku4-carousel-controls.css +32 -0
  56. package/dist/collection/components/ku4-carousel-controls/ku4-carousel-controls.js +112 -0
  57. package/dist/collection/components/ku4-carousel-slide/ku4-carousel-slide.css +3 -0
  58. package/dist/collection/components/ku4-carousel-slide/ku4-carousel-slide.js +159 -0
  59. package/dist/collection/components/ku4-col/ku4-col.css +601 -0
  60. package/dist/collection/components/ku4-col/ku4-col.js +288 -0
  61. package/dist/collection/components/ku4-drawer/ku4-drawer.css +56 -0
  62. package/dist/collection/components/ku4-drawer/ku4-drawer.js +163 -0
  63. package/dist/collection/components/ku4-feature/ku4-feature.js +70 -0
  64. package/dist/collection/components/ku4-focus-trap/ku4-focus-trap.css +3 -0
  65. package/dist/collection/components/ku4-focus-trap/ku4-focus-trap.js +441 -0
  66. package/dist/collection/components/ku4-form/ku4-form.js +225 -0
  67. package/dist/collection/components/ku4-grid/ku4-grid.css +751 -0
  68. package/dist/collection/components/ku4-grid/ku4-grid.js +408 -0
  69. package/dist/collection/components/ku4-label/ku4-label.css +36 -0
  70. package/dist/collection/components/ku4-label/ku4-label.js +115 -0
  71. package/dist/collection/components/ku4-mask/ku4-mask.css +3 -0
  72. package/dist/collection/components/ku4-mask/ku4-mask.js +458 -0
  73. package/dist/collection/components/ku4-modal/ku4-modal.css +85 -0
  74. package/dist/collection/components/ku4-modal/ku4-modal.js +208 -0
  75. package/dist/collection/components/ku4-panel/ku4-panel.css +14 -0
  76. package/dist/collection/components/ku4-panel/ku4-panel.js +119 -0
  77. package/dist/collection/components/ku4-preview/ku4-preview.css +23 -0
  78. package/dist/collection/components/ku4-preview/ku4-preview.js +266 -0
  79. package/dist/collection/components/ku4-tab/ku4-tab.css +82 -0
  80. package/dist/collection/components/ku4-tab/ku4-tab.js +191 -0
  81. package/dist/collection/components/ku4-tab-list/ku4-tab-list.css +6 -0
  82. package/dist/collection/components/ku4-tab-list/ku4-tab-list.js +118 -0
  83. package/dist/collection/components/ku4-tab-panel/ku4-tab-panel.css +26 -0
  84. package/dist/collection/components/ku4-tab-panel/ku4-tab-panel.js +166 -0
  85. package/dist/collection/components/ku4-table/ku4-table.css +116 -0
  86. package/dist/collection/components/ku4-table/ku4-table.js +120 -0
  87. package/dist/collection/components/ku4-tooltip/ku4-tooltip.css +56 -0
  88. package/dist/collection/components/ku4-tooltip/ku4-tooltip.js +274 -0
  89. package/dist/collection/components/ku4-validation/ku4-validation.css +19 -0
  90. package/dist/collection/components/ku4-validation/ku4-validation.js +364 -0
  91. package/dist/collection/components/ku4-validation/validate.js +14 -0
  92. package/dist/collection/index.js +1 -0
  93. package/dist/collection/security.js +27 -0
  94. package/dist/esm/app-globals-0f993ce5.js +3 -0
  95. package/dist/esm/css-shim-091f949f.js +4 -0
  96. package/dist/esm/dom-a385e381.js +73 -0
  97. package/dist/esm/{index-9e3af5f4.js → index-26cde78a.js} +1 -1
  98. package/dist/esm/index-3e1e5aa3.js +3 -0
  99. package/dist/esm/index-516c5188.js +3057 -0
  100. package/dist/esm/index-7ff6e718.js +3 -0
  101. package/dist/esm/{index-20c3926d.js → index-bdb0771a.js} +1 -1
  102. package/dist/esm/ku4-carousel-controls.entry.js +10 -4
  103. package/dist/esm/ku4-carousel-slide.entry.js +1 -1
  104. package/dist/esm/ku4-carousel.entry.js +3 -3
  105. package/dist/esm/ku4-col.entry.js +1 -1
  106. package/dist/esm/ku4-drawer.entry.js +1 -1
  107. package/dist/esm/ku4-feature.entry.js +2 -2
  108. package/dist/esm/ku4-focus-trap.entry.js +3 -3
  109. package/dist/esm/ku4-form.entry.js +3 -3
  110. package/dist/esm/ku4-grid.entry.js +1 -1
  111. package/dist/esm/ku4-label.entry.js +2 -2
  112. package/dist/esm/ku4-mask.entry.js +2 -2
  113. package/dist/esm/ku4-modal.entry.js +3 -3
  114. package/dist/esm/ku4-panel.entry.js +1 -1
  115. package/dist/esm/ku4-preview.entry.js +34 -5
  116. package/dist/esm/ku4-tab-list.entry.js +4 -4
  117. package/dist/esm/ku4-tab-panel.entry.js +3 -3
  118. package/dist/esm/ku4-tab.entry.js +3 -3
  119. package/dist/esm/ku4-table.entry.js +1 -1
  120. package/dist/esm/ku4-tooltip.entry.js +2 -2
  121. package/dist/esm/ku4-validation.entry.js +2 -2
  122. package/dist/esm/ku4web-components.js +103 -8
  123. package/dist/esm/loader.js +19 -3
  124. package/dist/esm/{shadow-css-5d2d01ce.js → shadow-css-ef431969.js} +1 -1
  125. package/dist/esm/{uid-15f8c937.js → uid-1ec3509b.js} +1 -1
  126. package/dist/esm/uid-9dbd7ad0.js +9 -0
  127. package/dist/esm-es5/{index-9e3af5f4.js → index-26cde78a.js} +1 -1
  128. package/dist/esm-es5/{index-20c3926d.js → index-bdb0771a.js} +1 -1
  129. package/dist/esm-es5/ku4-carousel-controls.entry.js +1 -1
  130. package/dist/esm-es5/ku4-carousel-slide.entry.js +1 -1
  131. package/dist/esm-es5/ku4-carousel.entry.js +1 -1
  132. package/dist/esm-es5/ku4-col.entry.js +1 -1
  133. package/dist/esm-es5/ku4-drawer.entry.js +1 -1
  134. package/dist/esm-es5/ku4-feature.entry.js +1 -1
  135. package/dist/esm-es5/ku4-focus-trap.entry.js +1 -1
  136. package/dist/esm-es5/ku4-form.entry.js +1 -1
  137. package/dist/esm-es5/ku4-grid.entry.js +1 -1
  138. package/dist/esm-es5/ku4-label.entry.js +1 -1
  139. package/dist/esm-es5/ku4-mask.entry.js +1 -1
  140. package/dist/esm-es5/ku4-modal.entry.js +1 -1
  141. package/dist/esm-es5/ku4-panel.entry.js +1 -1
  142. package/dist/esm-es5/ku4-preview.entry.js +1 -1
  143. package/dist/esm-es5/ku4-tab-list.entry.js +1 -1
  144. package/dist/esm-es5/ku4-tab-panel.entry.js +1 -1
  145. package/dist/esm-es5/ku4-tab.entry.js +1 -1
  146. package/dist/esm-es5/ku4-table.entry.js +1 -1
  147. package/dist/esm-es5/ku4-tooltip.entry.js +1 -1
  148. package/dist/esm-es5/ku4-validation.entry.js +1 -1
  149. package/dist/esm-es5/ku4web-components.js +1 -1
  150. package/dist/esm-es5/loader.js +1 -1
  151. package/dist/esm-es5/{shadow-css-5d2d01ce.js → shadow-css-ef431969.js} +0 -0
  152. package/dist/esm-es5/uid-1ec3509b.js +1 -0
  153. package/dist/index.js +1 -1
  154. package/dist/ku4web-components/app-globals-0f993ce5.js +3 -0
  155. package/dist/ku4web-components/app-globals-497eb362.system.js +1 -0
  156. package/dist/ku4web-components/css-shim-091f949f.js +4 -0
  157. package/dist/ku4web-components/css-shim-c5bffe6b.system.js +1 -0
  158. package/dist/ku4web-components/dom-99eb7b76.system.js +21 -0
  159. package/dist/ku4web-components/dom-a385e381.js +73 -0
  160. package/dist/ku4web-components/index-380cbe3a.system.js +1 -0
  161. package/dist/ku4web-components/index-3e1e5aa3.js +3 -0
  162. package/dist/ku4web-components/index-516c5188.js +3057 -0
  163. package/dist/ku4web-components/index-7d482e8a.system.js +1 -0
  164. package/dist/ku4web-components/index-7ff6e718.js +3 -0
  165. package/dist/ku4web-components/index-fd0c89d0.system.js +1 -0
  166. package/dist/ku4web-components/index.esm.js +1 -0
  167. package/dist/ku4web-components/index.system.js +1 -0
  168. package/dist/ku4web-components/ku4-carousel-controls.entry.js +89 -0
  169. package/dist/ku4web-components/ku4-carousel-controls.system.entry.js +1 -0
  170. package/dist/ku4web-components/ku4-carousel-slide.entry.js +47 -0
  171. package/dist/ku4web-components/ku4-carousel-slide.system.entry.js +1 -0
  172. package/dist/ku4web-components/ku4-carousel.entry.js +168 -0
  173. package/dist/ku4web-components/ku4-carousel.system.entry.js +1 -0
  174. package/dist/ku4web-components/ku4-col.entry.js +75 -0
  175. package/dist/ku4web-components/ku4-col.system.entry.js +1 -0
  176. package/dist/ku4web-components/ku4-drawer.entry.js +35 -0
  177. package/dist/ku4web-components/ku4-drawer.system.entry.js +1 -0
  178. package/dist/ku4web-components/ku4-feature.entry.js +29 -0
  179. package/dist/ku4web-components/ku4-feature.system.entry.js +1 -0
  180. package/dist/ku4web-components/ku4-focus-trap.entry.js +323 -0
  181. package/dist/ku4web-components/ku4-focus-trap.system.entry.js +1 -0
  182. package/dist/ku4web-components/ku4-form.entry.js +112 -0
  183. package/dist/ku4web-components/ku4-form.system.entry.js +1 -0
  184. package/dist/ku4web-components/ku4-grid.entry.js +108 -0
  185. package/dist/ku4web-components/ku4-grid.system.entry.js +1 -0
  186. package/dist/ku4web-components/ku4-label.entry.js +70 -0
  187. package/dist/ku4web-components/ku4-label.system.entry.js +1 -0
  188. package/dist/ku4web-components/ku4-mask.entry.js +342 -0
  189. package/dist/ku4web-components/ku4-mask.system.entry.js +1 -0
  190. package/dist/ku4web-components/ku4-modal.entry.js +75 -0
  191. package/dist/ku4web-components/ku4-modal.system.entry.js +1 -0
  192. package/dist/ku4web-components/ku4-panel.entry.js +49 -0
  193. package/dist/ku4web-components/ku4-panel.system.entry.js +1 -0
  194. package/dist/ku4web-components/ku4-preview.entry.js +128 -0
  195. package/dist/ku4web-components/ku4-preview.system.entry.js +1 -0
  196. package/dist/ku4web-components/ku4-tab-list.entry.js +76 -0
  197. package/dist/ku4web-components/ku4-tab-list.system.entry.js +1 -0
  198. package/dist/ku4web-components/ku4-tab-panel.entry.js +72 -0
  199. package/dist/ku4web-components/ku4-tab-panel.system.entry.js +1 -0
  200. package/dist/ku4web-components/ku4-tab.entry.js +63 -0
  201. package/dist/ku4web-components/ku4-tab.system.entry.js +1 -0
  202. package/dist/ku4web-components/ku4-table.entry.js +79 -0
  203. package/dist/ku4web-components/ku4-table.system.entry.js +1 -0
  204. package/dist/ku4web-components/ku4-tooltip.entry.js +120 -0
  205. package/dist/ku4web-components/ku4-tooltip.system.entry.js +1 -0
  206. package/dist/ku4web-components/ku4-validation.entry.js +162 -0
  207. package/dist/ku4web-components/ku4-validation.system.entry.js +1 -0
  208. package/dist/ku4web-components/ku4web-components.css +299 -1
  209. package/dist/ku4web-components/ku4web-components.esm.js +129 -1
  210. package/dist/ku4web-components/ku4web-components.js +1 -1
  211. package/dist/ku4web-components/ku4web-components.system.js +1 -0
  212. package/dist/ku4web-components/p-019be0a7.entry.js +1 -0
  213. package/dist/ku4web-components/{p-8f480cb5.system.entry.js → p-01ae9e4c.system.entry.js} +1 -1
  214. package/dist/ku4web-components/{p-02e342f7.system.entry.js → p-03d6fb35.system.entry.js} +1 -1
  215. package/dist/ku4web-components/{p-3c182b2f.entry.js → p-0c05c4ad.entry.js} +1 -1
  216. package/dist/ku4web-components/{p-04948520.system.entry.js → p-0cc659d9.system.entry.js} +1 -1
  217. package/dist/ku4web-components/{p-2aac6c90.js → p-0ded083e.js} +1 -1
  218. package/dist/ku4web-components/{p-761b2cbc.system.entry.js → p-0e222607.system.entry.js} +1 -1
  219. package/dist/ku4web-components/p-17d548db.js +1 -0
  220. package/dist/ku4web-components/{p-c1068ffa.js → p-189cde73.js} +1 -1
  221. package/dist/ku4web-components/{p-2f2d74dc.system.entry.js → p-2300b0b7.system.entry.js} +1 -1
  222. package/dist/ku4web-components/{p-8faad87d.entry.js → p-25ca27d4.entry.js} +1 -1
  223. package/dist/ku4web-components/{p-f1cc1b2d.entry.js → p-2a6d5089.entry.js} +1 -1
  224. package/dist/ku4web-components/{p-9c0d71af.system.entry.js → p-341081d6.system.entry.js} +1 -1
  225. package/dist/ku4web-components/{p-e4ff1c36.entry.js → p-55d15007.entry.js} +1 -1
  226. package/dist/ku4web-components/{p-d6ec34c3.entry.js → p-57ec7c89.entry.js} +1 -1
  227. package/dist/ku4web-components/{p-15ee8b8e.system.entry.js → p-5d6cf40f.system.entry.js} +1 -1
  228. package/dist/ku4web-components/{p-01debe28.system.entry.js → p-5eb48119.system.entry.js} +1 -1
  229. package/dist/ku4web-components/{p-67adc5b1.system.entry.js → p-64bcfdeb.system.entry.js} +1 -1
  230. package/dist/ku4web-components/{p-71d57b8b.system.js → p-6bf18c7c.system.js} +0 -0
  231. package/dist/ku4web-components/{p-0eb73a0f.system.entry.js → p-6c5699e3.system.entry.js} +1 -1
  232. package/dist/ku4web-components/{p-840704e4.entry.js → p-6d63d17d.entry.js} +1 -1
  233. package/dist/ku4web-components/{p-f06bf0ae.entry.js → p-6f47f245.entry.js} +1 -1
  234. package/dist/ku4web-components/{p-b4488a7d.system.entry.js → p-75161edb.system.entry.js} +1 -1
  235. package/dist/ku4web-components/{p-0e010c10.system.entry.js → p-801fab11.system.entry.js} +1 -1
  236. package/dist/ku4web-components/{p-0f8708f8.entry.js → p-8c0cb5c1.entry.js} +1 -1
  237. package/dist/ku4web-components/{p-2edd35f8.system.entry.js → p-92bc6bf1.system.entry.js} +1 -1
  238. package/dist/ku4web-components/{p-7273db60.entry.js → p-94dd5fad.entry.js} +1 -1
  239. package/dist/ku4web-components/{p-660ebd19.entry.js → p-993123b6.entry.js} +1 -1
  240. package/dist/ku4web-components/{p-c50540ec.system.entry.js → p-9f1bc248.system.entry.js} +1 -1
  241. package/dist/ku4web-components/{p-f6455ab3.js → p-b10887b2.js} +0 -0
  242. package/dist/ku4web-components/{p-a5c7f5f7.system.entry.js → p-b3bdc458.system.entry.js} +1 -1
  243. package/dist/ku4web-components/{p-d360c64a.entry.js → p-b60c60e4.entry.js} +1 -1
  244. package/dist/ku4web-components/{p-0785fc39.system.js → p-c3293202.system.js} +1 -1
  245. package/dist/ku4web-components/{p-7a47027b.entry.js → p-c459bbb7.entry.js} +1 -1
  246. package/dist/ku4web-components/{p-90c37394.entry.js → p-c62c66be.entry.js} +1 -1
  247. package/dist/ku4web-components/{p-c19fd841.entry.js → p-c646a177.entry.js} +1 -1
  248. package/dist/ku4web-components/{p-8e2fca0b.system.entry.js → p-ca547c71.system.entry.js} +1 -1
  249. package/dist/ku4web-components/{p-ce6eddc3.system.entry.js → p-d6f80a73.system.entry.js} +1 -1
  250. package/dist/ku4web-components/p-db3040f3.system.js +1 -0
  251. package/dist/ku4web-components/{p-19a8c0f6.system.entry.js → p-db493d59.system.entry.js} +1 -1
  252. package/dist/ku4web-components/{p-77f1853c.entry.js → p-dc35b1af.entry.js} +1 -1
  253. package/dist/ku4web-components/p-deb02b56.entry.js +1 -0
  254. package/dist/ku4web-components/{p-3874127d.entry.js → p-df1544c7.entry.js} +1 -1
  255. package/dist/ku4web-components/{p-22eed87f.entry.js → p-e10de631.entry.js} +1 -1
  256. package/dist/ku4web-components/{p-8d9eb18b.system.entry.js → p-e29d66a7.system.entry.js} +1 -1
  257. package/dist/ku4web-components/{p-f0b1c07c.system.js → p-e2ae0504.system.js} +1 -1
  258. package/dist/ku4web-components/p-e641f14e.system.js +1 -0
  259. package/dist/ku4web-components/{p-adddaeef.entry.js → p-e6937d21.entry.js} +1 -1
  260. package/dist/ku4web-components/{p-232787a5.system.entry.js → p-f0e309a9.system.entry.js} +1 -1
  261. package/dist/ku4web-components/shadow-css-27708fdd.system.js +13 -0
  262. package/dist/ku4web-components/shadow-css-ef431969.js +388 -0
  263. package/dist/ku4web-components/uid-9dbd7ad0.js +9 -0
  264. package/dist/ku4web-components/uid-fb867945.system.js +1 -0
  265. package/dist/types/components/ku4-carousel-controls/ku4-carousel-controls.d.ts +1 -0
  266. package/dist/types/components/ku4-carousel-slide/ku4-carousel-slide.d.ts +6 -0
  267. package/dist/types/components.d.ts +8 -0
  268. package/package.json +15 -15
  269. package/react/index.js +1 -1
  270. package/react/index.mjs +1 -1
  271. package/vue/index.js +1 -1
  272. package/vue/index.mjs +1 -1
  273. package/vue3/index.js +1 -1
  274. package/vue3/index.mjs +1 -1
  275. package/dist/esm-es5/uid-15f8c937.js +0 -1
  276. package/dist/ku4web-components/p-b590da20.entry.js +0 -1
  277. package/dist/ku4web-components/p-be7890a1.system.js +0 -1
  278. package/dist/ku4web-components/p-cbbb4b1b.js +0 -1
  279. package/dist/ku4web-components/p-eb58b04b.system.js +0 -1
  280. package/dist/ku4web-components/p-eb6882c8.entry.js +0 -1
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1e13241e.js');
6
- const index$1 = require('./index-a530dbc9.js');
7
- const uid = require('./uid-d6942c42.js');
8
- require('./index-da3ed39d.js');
5
+ const index = require('./index-8e9e8864.js');
6
+ const index$1 = require('./index-c904eb3a.js');
7
+ const uid = require('./uid-eb3bec28.js');
8
+ require('./index-652a3cbf.js');
9
9
 
10
10
  const ku4TabListCss = ":host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}";
11
11
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1e13241e.js');
6
- const uid = require('./uid-d6942c42.js');
7
- require('./index-da3ed39d.js');
5
+ const index = require('./index-8e9e8864.js');
6
+ const uid = require('./uid-eb3bec28.js');
7
+ require('./index-652a3cbf.js');
8
8
 
9
9
  const ku4TabPanelCss = ":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:auto}@media only screen and (min-width: 768px){:host{display:none;border-top:1px solid #ccc;border-bottom:1px solid #ccc;max-height:initial !important;-webkit-transition:none;transition:none;-ms-flex-order:2;order:2}:host([selected]){display:block;max-height:initial !important;-webkit-transition:none;transition:none}}";
10
10
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1e13241e.js');
6
- const uid = require('./uid-d6942c42.js');
7
- require('./index-da3ed39d.js');
5
+ const index = require('./index-8e9e8864.js');
6
+ const uid = require('./uid-eb3bec28.js');
7
+ require('./index-652a3cbf.js');
8
8
 
9
9
  const ku4TabCss = "button{margin:0;padding:0;border:none;background:transparent;-webkit-appearance:none}:host{position:relative;display:block;width:100%;padding:20px 30px;background-color:#eee;text-align:center;color:#aaa;cursor:pointer}:host(:focus){background-color:#eee;color:#666;z-index:2}:host(:hover){background-color:#eee;color:#666}:host(:active){background-color:#fff;color:#333}:host([selected]){border-top:1px solid #ccc;border-bottom:1px solid #ccc;background-color:#fff;color:#444}button{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}@media only screen and (min-width: 768px){:host{width:auto;border-top:1px solid #ccc;border-right:1px solid #ccc;border-top-left-radius:4px;border-top-right-radius:4px;background-color:#eee}:host(:first-of-type){border-left:1px solid #ccc}:host([selected]){padding-bottom:1px;border-top:1px solid #ccc;border-bottom:none}:host([selected]):after{content:\" \";position:absolute;display:block;left:0;bottom:-1px;width:100%;height:1px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:inherit}}";
10
10
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1e13241e.js');
5
+ const index = require('./index-8e9e8864.js');
6
6
 
7
7
  const ku4TableCss = "ku4-table{position:relative;display:block}@media only screen and (min-width: 1px) and (max-width: 767px){@supports (display: contents){ku4-table[stack-xs=column] table{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}ku4-table[stack-xs=column] thead,ku4-table[stack-xs=column] tbody,ku4-table[stack-xs=column] tfoot,ku4-table[stack-xs=column] tr{display:contents}ku4-table[stack-xs=column] thead .ku4-head-header{display:none}ku4-table[stack-xs=column] tbody th,ku4-table[stack-xs=column] tfoot th{position:absolute;display:block;width:0;height:0;margin:0;padding:0;line-height:0;font-size:0}ku4-table[stack-xs=column] tbody td,ku4-table[stack-xs=column] tfoot td{display:-ms-flexbox;display:flex}ku4-table[stack-xs=column] tbody td:before,ku4-table[stack-xs=column] tfoot td:before{content:attr(data-ku4-row-header)}}ku4-table[stack-xs=row] table{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}ku4-table[stack-xs=row] thead th,ku4-table[stack-xs=row] thead td{display:none}ku4-table[stack-xs=row] thead,ku4-table[stack-xs=row] tbody,ku4-table[stack-xs=row] tfoot,ku4-table[stack-xs=row] tr,ku4-table[stack-xs=row] th,ku4-table[stack-xs=row] td{display:block}ku4-table[stack-xs=row] tbody td:before,ku4-table[stack-xs=row] tfoot td:before{content:attr(data-ku4-column-header)}}@media only screen and (min-width: 768px) and (max-width: 991px){@supports (display: contents){ku4-table[stack-sm=column] table{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}ku4-table[stack-sm=column] thead,ku4-table[stack-sm=column] tbody,ku4-table[stack-sm=column] tfoot,ku4-table[stack-sm=column] tr{display:contents}ku4-table[stack-sm=column] thead .ku4-head-header{display:none}ku4-table[stack-sm=column] tbody th,ku4-table[stack-sm=column] tfoot th{position:absolute;display:block;width:0;height:0;margin:0;padding:0;line-height:0;font-size:0}ku4-table[stack-sm=column] tbody td,ku4-table[stack-sm=column] tfoot td{display:-ms-flexbox;display:flex}ku4-table[stack-sm=column] tbody td:before,ku4-table[stack-sm=column] tfoot td:before{content:attr(data-ku4-row-header)}}ku4-table[stack-sm=row] table{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}ku4-table[stack-sm=row] thead th,ku4-table[stack-sm=row] thead td{display:none}ku4-table[stack-sm=row] thead,ku4-table[stack-sm=row] tbody,ku4-table[stack-sm=row] tfoot,ku4-table[stack-sm=row] tr,ku4-table[stack-sm=row] th,ku4-table[stack-sm=row] td{display:block}ku4-table[stack-sm=row] tbody td:before,ku4-table[stack-sm=row] tfoot td:before{content:attr(data-ku4-column-header)}}";
8
8
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1e13241e.js');
6
- const index$1 = require('./index-da3ed39d.js');
5
+ const index = require('./index-8e9e8864.js');
6
+ const index$1 = require('./index-652a3cbf.js');
7
7
 
8
8
  const ku4TooltipCss = ":host{position:fixed;display:none;opacity:0;z-index:2;background-color:#fff;border:solid 1px #ccc}:host([visible]){display:block;opacity:1;-webkit-transition:opacity 0.4s;transition:opacity 0.4s}:host .arrow{position:absolute;width:var(--ku4-tooltip-arrow-size, 14px);height:var(--ku4-tooltip-arrow-size, 14px);background-color:inherit;-webkit-transform:rotate(45deg);transform:rotate(45deg);border:inherit;-webkit-box-shadow:var(--ku4-tooltip-arrow-box-shadow, none);box-shadow:var(--ku4-tooltip-arrow-box-shadow, none)}:host .content{position:relative}:host([top]) .arrow{top:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));left:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));border-top:none !important;border-left:none !important}:host([left]) .arrow{top:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));left:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-left:none !important;border-bottom:none !important}:host([bottom]) .arrow{left:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));bottom:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-bottom:none !important;border-right:none !important}:host([right]) .arrow{top:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));right:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-top:none !important;border-right:none !important}";
9
9
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1e13241e.js');
6
- const index$1 = require('./index-da3ed39d.js');
5
+ const index = require('./index-8e9e8864.js');
6
+ const index$1 = require('./index-652a3cbf.js');
7
7
 
8
8
  /**
9
9
  * Business logic for form validation:
@@ -1,17 +1,44 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-1e13241e.js');
3
+ const index = require('./index-8e9e8864.js');
4
+ const appGlobals = require('./app-globals-3a1e7e63.js');
4
5
 
5
6
  /*
6
- Stencil Client Patch Browser v2.14.1 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Patch Browser v2.14.2 | MIT Licensed | https://stenciljs.com
7
8
  */
9
+ const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
8
10
  const patchBrowser = () => {
11
+ // NOTE!! This fn cannot use async/await!
12
+ if (index.BUILD.isDev && !index.BUILD.isTesting) {
13
+ index.consoleDevInfo('Running in development mode.');
14
+ }
15
+ if (index.BUILD.cssVarShim) {
16
+ // shim css vars
17
+ index.plt.$cssShim$ = index.win.__cssshim;
18
+ }
19
+ if (index.BUILD.cloneNodeFix) {
20
+ // opted-in to polyfill cloneNode() for slot polyfilled components
21
+ patchCloneNodeFix(index.H.prototype);
22
+ }
23
+ if (index.BUILD.profile && !performance.mark) {
24
+ // not all browsers support performance.mark/measure (Safari 10)
25
+ // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,
26
+ // simply stub the implementations out.
27
+ // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)
28
+ // @ts-ignore
29
+ performance.mark = performance.measure = () => {
30
+ /*noop*/
31
+ };
32
+ performance.getEntriesByName = () => [];
33
+ }
9
34
  // @ts-ignore
10
- const scriptElm = Array.from(index.doc.querySelectorAll('script')).find((s) => new RegExp(`\/${index.NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
35
+ const scriptElm = index.BUILD.scriptDataOpts || index.BUILD.safari10 || index.BUILD.dynamicImportShim
36
+ ? Array.from(index.doc.querySelectorAll('script')).find((s) => new RegExp(`\/${index.NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
11
37
  s.getAttribute('data-stencil-namespace') === index.NAMESPACE)
12
- ;
13
- const opts = {};
14
- if ('onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
38
+ : null;
39
+ const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ku4web-components.cjs.js', document.baseURI).href));
40
+ const opts = index.BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};
41
+ if (index.BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
15
42
  // Safari < v11 support: This IF is true if it's Safari below v11.
16
43
  // This fn cannot use async/await since Safari didn't support it until v11,
17
44
  // however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
@@ -25,12 +52,80 @@ const patchBrowser = () => {
25
52
  },
26
53
  };
27
54
  }
28
- {
55
+ if (!index.BUILD.safari10 && importMeta !== '') {
56
+ opts.resourcesUrl = new URL('.', importMeta).href;
57
+ }
58
+ else if (index.BUILD.dynamicImportShim || index.BUILD.safari10) {
29
59
  opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, index.win.location.href)).href;
60
+ if (index.BUILD.dynamicImportShim) {
61
+ patchDynamicImport(opts.resourcesUrl, scriptElm);
62
+ }
63
+ if (index.BUILD.dynamicImportShim && !index.win.customElements) {
64
+ // module support, but no custom elements support (Old Edge)
65
+ // @ts-ignore
66
+ return Promise.resolve().then(function () { return require(/* webpackChunkName: "polyfills-dom" */ './dom-14886762.js'); }).then(() => opts);
67
+ }
30
68
  }
31
69
  return index.promiseResolve(opts);
32
70
  };
71
+ const patchDynamicImport = (base, orgScriptElm) => {
72
+ const importFunctionName = getDynamicImportFunction(index.NAMESPACE);
73
+ try {
74
+ // test if this browser supports dynamic imports
75
+ // There is a caching issue in V8, that breaks using import() in Function
76
+ // By generating a random string, we can workaround it
77
+ // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
78
+ index.win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
79
+ }
80
+ catch (e) {
81
+ // this shim is specifically for browsers that do support "esm" imports
82
+ // however, they do NOT support "dynamic" imports
83
+ // basically this code is for old Edge, v18 and below
84
+ const moduleMap = new Map();
85
+ index.win[importFunctionName] = (src) => {
86
+ const url = new URL(src, base).href;
87
+ let mod = moduleMap.get(url);
88
+ if (!mod) {
89
+ const script = index.doc.createElement('script');
90
+ script.type = 'module';
91
+ script.crossOrigin = orgScriptElm.crossOrigin;
92
+ script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
93
+ type: 'application/javascript',
94
+ }));
95
+ mod = new Promise((resolve) => {
96
+ script.onload = () => {
97
+ resolve(index.win[importFunctionName].m);
98
+ script.remove();
99
+ };
100
+ });
101
+ moduleMap.set(url, mod);
102
+ index.doc.head.appendChild(script);
103
+ }
104
+ return mod;
105
+ };
106
+ }
107
+ };
108
+ const patchCloneNodeFix = (HTMLElementPrototype) => {
109
+ const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
110
+ HTMLElementPrototype.cloneNode = function (deep) {
111
+ if (this.nodeName === 'TEMPLATE') {
112
+ return nativeCloneNodeFn.call(this, deep);
113
+ }
114
+ const clonedNode = nativeCloneNodeFn.call(this, false);
115
+ const srcChildNodes = this.childNodes;
116
+ if (deep) {
117
+ for (let i = 0; i < srcChildNodes.length; i++) {
118
+ // Node.ATTRIBUTE_NODE === 2, and checking because IE11
119
+ if (srcChildNodes[i].nodeType !== 2) {
120
+ clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
121
+ }
122
+ }
123
+ }
124
+ return clonedNode;
125
+ };
126
+ };
33
127
 
34
128
  patchBrowser().then(options => {
35
- return index.bootstrapLazy([["ku4-carousel.cjs",[[1,"ku4-carousel",{"swipeTolerance":[2,"swipe-tolerance"],"auto":[4],"noSwipe":[4,"no-swipe"],"delay":[2],"slideState":[32],"next":[64],"previous":[64],"slideTo":[64],"pause":[64],"play":[64]}]]],["ku4-carousel-controls.cjs",[[1,"ku4-carousel-controls",{"for":[1]}]]],["ku4-carousel-slide.cjs",[[1,"ku4-carousel-slide",{"active":[32],"classList":[32],"slideIn":[64],"slideOut":[64],"activate":[64],"deactivate":[64]}]]],["ku4-col.cjs",[[1,"ku4-col",{"startXs":[2,"start-xs"],"startSm":[2,"start-sm"],"startMd":[2,"start-md"],"startLg":[2,"start-lg"],"spanXs":[2,"span-xs"],"spanSm":[2,"span-sm"],"spanMd":[2,"span-md"],"spanLg":[2,"span-lg"],"orderXs":[2,"order-xs"],"orderSm":[2,"order-sm"],"orderMd":[2,"order-md"],"orderLg":[2,"order-lg"]}]]],["ku4-drawer.cjs",[[1,"ku4-drawer",{"bottom":[516],"left":[516],"right":[516],"top":[516],"size":[1],"open":[1540],"toggle":[64]}]]],["ku4-feature.cjs",[[1,"ku4-feature",{"on":[4],"policy":[1],"enabled":[32]}]]],["ku4-focus-trap.cjs",[[1,"ku4-focus-trap",{"active":[1540],"include":[1],"exclude":[1],"excludeShadow":[1,"exclude-shadow"],"initial":[1],"return":[1],"activate":[64],"deactivate":[64]}]]],["ku4-form.cjs",[[4,"ku4-form",{"invalid":[1540],"listFieldNames":[64],"validate":[64],"invalidate":[64],"read":[64],"write":[64]}]]],["ku4-grid.cjs",[[1,"ku4-grid",{"columnsXs":[2,"columns-xs"],"columnsSm":[2,"columns-sm"],"columnsMd":[2,"columns-md"],"columnsLg":[2,"columns-lg"],"offsetLeftXs":[2,"offset-left-xs"],"offsetLeftSm":[2,"offset-left-sm"],"offsetLeftMd":[2,"offset-left-md"],"offsetLeftLg":[2,"offset-left-lg"],"offsetRight":[2,"offset-right"],"offsetRightXs":[2,"offset-right-xs"],"offsetRightSm":[2,"offset-right-sm"],"offsetRightMd":[2,"offset-right-md"],"offsetRightLg":[2,"offset-right-lg"],"offsetXs":[2,"offset-xs"],"offsetSm":[2,"offset-sm"],"offsetMd":[2,"offset-md"],"offsetLg":[2,"offset-lg"]}]]],["ku4-label.cjs",[[1,"ku4-label",{"for":[1],"value":[1],"empty":[32]}]]],["ku4-mask.cjs",[[1,"ku4-mask",{"for":[1],"template":[1],"ban":[1],"pattern":[1],"char":[1],"hidden":[4]}]]],["ku4-modal.cjs",[[1,"ku4-modal",{"visible":[1540],"dismissable":[4],"focusTrap":[1,"focus-trap"],"display":[64],"dismiss":[64]},[[8,"keyup","handleKeyUp"]]]]],["ku4-panel.cjs",[[1,"ku4-panel",{"open":[1540],"maxHeight":[32],"toggle":[64],"close":[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["ku4-preview.cjs",[[1,"ku4-preview",{"for":[1],"src":[1],"altsrc":[1],"orientation":[2],"resolutionX":[2,"resolution-x"],"resolutionY":[2,"resolution-y"],"capture":[1],"status":[1537],"alt":[1],"currentSrc":[32],"read":[64]}]]],["ku4-tab.cjs",[[1,"ku4-tab",{"selected":[1540],"panel":[32],"select":[64],"deselect":[64],"connect":[64]},[[0,"click","handleClick"],[0,"keyup","handleKeyUp"]]]]],["ku4-tab-list.cjs",[[1,"ku4-tab-list",{"open":[64]},[[0,"ku4TabClick","handleTabClick"],[0,"ku4TabKeyup","handleTabKeyUp"]]]]],["ku4-tab-panel.cjs",[[1,"ku4-tab-panel",{"selected":[1540],"maxHeight":[32],"tab":[32],"select":[64],"deselect":[64],"connect":[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["ku4-table.cjs",[[4,"ku4-table",{"stackXs":[1537,"stack-xs"],"stackSm":[1537,"stack-sm"]}]]],["ku4-tooltip.cjs",[[1,"ku4-tooltip",{"element":[1],"top":[4],"left":[4],"bottom":[4],"right":[4],"debug":[4],"show":[64],"hide":[64]}]]],["ku4-validation.cjs",[[1,"ku4-validation",{"for":[1],"element":[1],"pattern":[1],"flags":[1],"values":[1],"checked":[4],"method":[1],"invalid":[1540],"disabled":[1540],"hidden":[1540],"isValid":[32],"validate":[64]}]]]], options);
129
+ appGlobals.globalScripts();
130
+ return index.bootstrapLazy([["ku4-carousel.cjs",[[1,"ku4-carousel",{"swipeTolerance":[2,"swipe-tolerance"],"auto":[4],"noSwipe":[4,"no-swipe"],"delay":[2],"slideState":[32],"next":[64],"previous":[64],"slideTo":[64],"pause":[64],"play":[64]}]]],["ku4-carousel-controls.cjs",[[1,"ku4-carousel-controls",{"for":[1]}]]],["ku4-carousel-slide.cjs",[[1,"ku4-carousel-slide",{"name":[8],"active":[32],"classList":[32],"slideIn":[64],"slideOut":[64],"activate":[64],"deactivate":[64]}]]],["ku4-col.cjs",[[1,"ku4-col",{"startXs":[2,"start-xs"],"startSm":[2,"start-sm"],"startMd":[2,"start-md"],"startLg":[2,"start-lg"],"spanXs":[2,"span-xs"],"spanSm":[2,"span-sm"],"spanMd":[2,"span-md"],"spanLg":[2,"span-lg"],"orderXs":[2,"order-xs"],"orderSm":[2,"order-sm"],"orderMd":[2,"order-md"],"orderLg":[2,"order-lg"]}]]],["ku4-drawer.cjs",[[1,"ku4-drawer",{"bottom":[516],"left":[516],"right":[516],"top":[516],"size":[1],"open":[1540],"toggle":[64]}]]],["ku4-feature.cjs",[[1,"ku4-feature",{"on":[4],"policy":[1],"enabled":[32]}]]],["ku4-focus-trap.cjs",[[1,"ku4-focus-trap",{"active":[1540],"include":[1],"exclude":[1],"excludeShadow":[1,"exclude-shadow"],"initial":[1],"return":[1],"activate":[64],"deactivate":[64]}]]],["ku4-form.cjs",[[4,"ku4-form",{"invalid":[1540],"listFieldNames":[64],"validate":[64],"invalidate":[64],"read":[64],"write":[64]}]]],["ku4-grid.cjs",[[1,"ku4-grid",{"columnsXs":[2,"columns-xs"],"columnsSm":[2,"columns-sm"],"columnsMd":[2,"columns-md"],"columnsLg":[2,"columns-lg"],"offsetLeftXs":[2,"offset-left-xs"],"offsetLeftSm":[2,"offset-left-sm"],"offsetLeftMd":[2,"offset-left-md"],"offsetLeftLg":[2,"offset-left-lg"],"offsetRight":[2,"offset-right"],"offsetRightXs":[2,"offset-right-xs"],"offsetRightSm":[2,"offset-right-sm"],"offsetRightMd":[2,"offset-right-md"],"offsetRightLg":[2,"offset-right-lg"],"offsetXs":[2,"offset-xs"],"offsetSm":[2,"offset-sm"],"offsetMd":[2,"offset-md"],"offsetLg":[2,"offset-lg"]}]]],["ku4-label.cjs",[[1,"ku4-label",{"for":[1],"value":[1],"empty":[32]}]]],["ku4-mask.cjs",[[1,"ku4-mask",{"for":[1],"template":[1],"ban":[1],"pattern":[1],"char":[1],"hidden":[4]}]]],["ku4-modal.cjs",[[1,"ku4-modal",{"visible":[1540],"dismissable":[4],"focusTrap":[1,"focus-trap"],"display":[64],"dismiss":[64]},[[8,"keyup","handleKeyUp"]]]]],["ku4-panel.cjs",[[1,"ku4-panel",{"open":[1540],"maxHeight":[32],"toggle":[64],"close":[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["ku4-preview.cjs",[[1,"ku4-preview",{"for":[1],"src":[1],"altsrc":[1],"orientation":[2],"resolutionX":[2,"resolution-x"],"resolutionY":[2,"resolution-y"],"capture":[1],"status":[1537],"alt":[1],"currentSrc":[32],"read":[64]}]]],["ku4-tab.cjs",[[1,"ku4-tab",{"selected":[1540],"panel":[32],"select":[64],"deselect":[64],"connect":[64]},[[0,"click","handleClick"],[0,"keyup","handleKeyUp"]]]]],["ku4-tab-list.cjs",[[1,"ku4-tab-list",{"open":[64]},[[0,"ku4TabClick","handleTabClick"],[0,"ku4TabKeyup","handleTabKeyUp"]]]]],["ku4-tab-panel.cjs",[[1,"ku4-tab-panel",{"selected":[1540],"maxHeight":[32],"tab":[32],"select":[64],"deselect":[64],"connect":[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["ku4-table.cjs",[[4,"ku4-table",{"stackXs":[1537,"stack-xs"],"stackSm":[1537,"stack-sm"]}]]],["ku4-tooltip.cjs",[[1,"ku4-tooltip",{"element":[1],"top":[4],"left":[4],"bottom":[4],"right":[4],"debug":[4],"show":[64],"hide":[64]}]]],["ku4-validation.cjs",[[1,"ku4-validation",{"for":[1],"element":[1],"pattern":[1],"flags":[1],"values":[1],"checked":[4],"method":[1],"invalid":[1540],"disabled":[1540],"hidden":[1540],"isValid":[32],"validate":[64]}]]]], options);
36
131
  });
@@ -2,19 +2,35 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1e13241e.js');
5
+ const index = require('./index-8e9e8864.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
6
7
 
7
8
  /*
8
- Stencil Client Patch Esm v2.14.1 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Esm v2.14.2 | MIT Licensed | https://stenciljs.com
9
10
  */
10
11
  const patchEsm = () => {
12
+ // NOTE!! This fn cannot use async/await!
13
+ // @ts-ignore
14
+ if (index.BUILD.cssVarShim && !(index.CSS && index.CSS.supports && index.CSS.supports('color', 'var(--c)'))) {
15
+ // @ts-ignore
16
+ return Promise.resolve().then(function () { return require(/* webpackChunkName: "polyfills-css-shim" */ './css-shim-aaf4fec9.js'); }).then(() => {
17
+ if ((index.plt.$cssShim$ = index.win.__cssshim)) {
18
+ return index.plt.$cssShim$.i();
19
+ }
20
+ else {
21
+ // for better minification
22
+ return 0;
23
+ }
24
+ });
25
+ }
11
26
  return index.promiseResolve();
12
27
  };
13
28
 
14
29
  const defineCustomElements = (win, options) => {
15
30
  if (typeof window === 'undefined') return Promise.resolve();
16
31
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["ku4-carousel.cjs",[[1,"ku4-carousel",{"swipeTolerance":[2,"swipe-tolerance"],"auto":[4],"noSwipe":[4,"no-swipe"],"delay":[2],"slideState":[32],"next":[64],"previous":[64],"slideTo":[64],"pause":[64],"play":[64]}]]],["ku4-carousel-controls.cjs",[[1,"ku4-carousel-controls",{"for":[1]}]]],["ku4-carousel-slide.cjs",[[1,"ku4-carousel-slide",{"active":[32],"classList":[32],"slideIn":[64],"slideOut":[64],"activate":[64],"deactivate":[64]}]]],["ku4-col.cjs",[[1,"ku4-col",{"startXs":[2,"start-xs"],"startSm":[2,"start-sm"],"startMd":[2,"start-md"],"startLg":[2,"start-lg"],"spanXs":[2,"span-xs"],"spanSm":[2,"span-sm"],"spanMd":[2,"span-md"],"spanLg":[2,"span-lg"],"orderXs":[2,"order-xs"],"orderSm":[2,"order-sm"],"orderMd":[2,"order-md"],"orderLg":[2,"order-lg"]}]]],["ku4-drawer.cjs",[[1,"ku4-drawer",{"bottom":[516],"left":[516],"right":[516],"top":[516],"size":[1],"open":[1540],"toggle":[64]}]]],["ku4-feature.cjs",[[1,"ku4-feature",{"on":[4],"policy":[1],"enabled":[32]}]]],["ku4-focus-trap.cjs",[[1,"ku4-focus-trap",{"active":[1540],"include":[1],"exclude":[1],"excludeShadow":[1,"exclude-shadow"],"initial":[1],"return":[1],"activate":[64],"deactivate":[64]}]]],["ku4-form.cjs",[[4,"ku4-form",{"invalid":[1540],"listFieldNames":[64],"validate":[64],"invalidate":[64],"read":[64],"write":[64]}]]],["ku4-grid.cjs",[[1,"ku4-grid",{"columnsXs":[2,"columns-xs"],"columnsSm":[2,"columns-sm"],"columnsMd":[2,"columns-md"],"columnsLg":[2,"columns-lg"],"offsetLeftXs":[2,"offset-left-xs"],"offsetLeftSm":[2,"offset-left-sm"],"offsetLeftMd":[2,"offset-left-md"],"offsetLeftLg":[2,"offset-left-lg"],"offsetRight":[2,"offset-right"],"offsetRightXs":[2,"offset-right-xs"],"offsetRightSm":[2,"offset-right-sm"],"offsetRightMd":[2,"offset-right-md"],"offsetRightLg":[2,"offset-right-lg"],"offsetXs":[2,"offset-xs"],"offsetSm":[2,"offset-sm"],"offsetMd":[2,"offset-md"],"offsetLg":[2,"offset-lg"]}]]],["ku4-label.cjs",[[1,"ku4-label",{"for":[1],"value":[1],"empty":[32]}]]],["ku4-mask.cjs",[[1,"ku4-mask",{"for":[1],"template":[1],"ban":[1],"pattern":[1],"char":[1],"hidden":[4]}]]],["ku4-modal.cjs",[[1,"ku4-modal",{"visible":[1540],"dismissable":[4],"focusTrap":[1,"focus-trap"],"display":[64],"dismiss":[64]},[[8,"keyup","handleKeyUp"]]]]],["ku4-panel.cjs",[[1,"ku4-panel",{"open":[1540],"maxHeight":[32],"toggle":[64],"close":[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["ku4-preview.cjs",[[1,"ku4-preview",{"for":[1],"src":[1],"altsrc":[1],"orientation":[2],"resolutionX":[2,"resolution-x"],"resolutionY":[2,"resolution-y"],"capture":[1],"status":[1537],"alt":[1],"currentSrc":[32],"read":[64]}]]],["ku4-tab.cjs",[[1,"ku4-tab",{"selected":[1540],"panel":[32],"select":[64],"deselect":[64],"connect":[64]},[[0,"click","handleClick"],[0,"keyup","handleKeyUp"]]]]],["ku4-tab-list.cjs",[[1,"ku4-tab-list",{"open":[64]},[[0,"ku4TabClick","handleTabClick"],[0,"ku4TabKeyup","handleTabKeyUp"]]]]],["ku4-tab-panel.cjs",[[1,"ku4-tab-panel",{"selected":[1540],"maxHeight":[32],"tab":[32],"select":[64],"deselect":[64],"connect":[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["ku4-table.cjs",[[4,"ku4-table",{"stackXs":[1537,"stack-xs"],"stackSm":[1537,"stack-sm"]}]]],["ku4-tooltip.cjs",[[1,"ku4-tooltip",{"element":[1],"top":[4],"left":[4],"bottom":[4],"right":[4],"debug":[4],"show":[64],"hide":[64]}]]],["ku4-validation.cjs",[[1,"ku4-validation",{"for":[1],"element":[1],"pattern":[1],"flags":[1],"values":[1],"checked":[4],"method":[1],"invalid":[1540],"disabled":[1540],"hidden":[1540],"isValid":[32],"validate":[64]}]]]], options);
32
+ appGlobals.globalScripts();
33
+ return index.bootstrapLazy([["ku4-carousel.cjs",[[1,"ku4-carousel",{"swipeTolerance":[2,"swipe-tolerance"],"auto":[4],"noSwipe":[4,"no-swipe"],"delay":[2],"slideState":[32],"next":[64],"previous":[64],"slideTo":[64],"pause":[64],"play":[64]}]]],["ku4-carousel-controls.cjs",[[1,"ku4-carousel-controls",{"for":[1]}]]],["ku4-carousel-slide.cjs",[[1,"ku4-carousel-slide",{"name":[8],"active":[32],"classList":[32],"slideIn":[64],"slideOut":[64],"activate":[64],"deactivate":[64]}]]],["ku4-col.cjs",[[1,"ku4-col",{"startXs":[2,"start-xs"],"startSm":[2,"start-sm"],"startMd":[2,"start-md"],"startLg":[2,"start-lg"],"spanXs":[2,"span-xs"],"spanSm":[2,"span-sm"],"spanMd":[2,"span-md"],"spanLg":[2,"span-lg"],"orderXs":[2,"order-xs"],"orderSm":[2,"order-sm"],"orderMd":[2,"order-md"],"orderLg":[2,"order-lg"]}]]],["ku4-drawer.cjs",[[1,"ku4-drawer",{"bottom":[516],"left":[516],"right":[516],"top":[516],"size":[1],"open":[1540],"toggle":[64]}]]],["ku4-feature.cjs",[[1,"ku4-feature",{"on":[4],"policy":[1],"enabled":[32]}]]],["ku4-focus-trap.cjs",[[1,"ku4-focus-trap",{"active":[1540],"include":[1],"exclude":[1],"excludeShadow":[1,"exclude-shadow"],"initial":[1],"return":[1],"activate":[64],"deactivate":[64]}]]],["ku4-form.cjs",[[4,"ku4-form",{"invalid":[1540],"listFieldNames":[64],"validate":[64],"invalidate":[64],"read":[64],"write":[64]}]]],["ku4-grid.cjs",[[1,"ku4-grid",{"columnsXs":[2,"columns-xs"],"columnsSm":[2,"columns-sm"],"columnsMd":[2,"columns-md"],"columnsLg":[2,"columns-lg"],"offsetLeftXs":[2,"offset-left-xs"],"offsetLeftSm":[2,"offset-left-sm"],"offsetLeftMd":[2,"offset-left-md"],"offsetLeftLg":[2,"offset-left-lg"],"offsetRight":[2,"offset-right"],"offsetRightXs":[2,"offset-right-xs"],"offsetRightSm":[2,"offset-right-sm"],"offsetRightMd":[2,"offset-right-md"],"offsetRightLg":[2,"offset-right-lg"],"offsetXs":[2,"offset-xs"],"offsetSm":[2,"offset-sm"],"offsetMd":[2,"offset-md"],"offsetLg":[2,"offset-lg"]}]]],["ku4-label.cjs",[[1,"ku4-label",{"for":[1],"value":[1],"empty":[32]}]]],["ku4-mask.cjs",[[1,"ku4-mask",{"for":[1],"template":[1],"ban":[1],"pattern":[1],"char":[1],"hidden":[4]}]]],["ku4-modal.cjs",[[1,"ku4-modal",{"visible":[1540],"dismissable":[4],"focusTrap":[1,"focus-trap"],"display":[64],"dismiss":[64]},[[8,"keyup","handleKeyUp"]]]]],["ku4-panel.cjs",[[1,"ku4-panel",{"open":[1540],"maxHeight":[32],"toggle":[64],"close":[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["ku4-preview.cjs",[[1,"ku4-preview",{"for":[1],"src":[1],"altsrc":[1],"orientation":[2],"resolutionX":[2,"resolution-x"],"resolutionY":[2,"resolution-y"],"capture":[1],"status":[1537],"alt":[1],"currentSrc":[32],"read":[64]}]]],["ku4-tab.cjs",[[1,"ku4-tab",{"selected":[1540],"panel":[32],"select":[64],"deselect":[64],"connect":[64]},[[0,"click","handleClick"],[0,"keyup","handleKeyUp"]]]]],["ku4-tab-list.cjs",[[1,"ku4-tab-list",{"open":[64]},[[0,"ku4TabClick","handleTabClick"],[0,"ku4TabKeyup","handleTabKeyUp"]]]]],["ku4-tab-panel.cjs",[[1,"ku4-tab-panel",{"selected":[1540],"maxHeight":[32],"tab":[32],"select":[64],"deselect":[64],"connect":[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["ku4-table.cjs",[[4,"ku4-table",{"stackXs":[1537,"stack-xs"],"stackSm":[1537,"stack-sm"]}]]],["ku4-tooltip.cjs",[[1,"ku4-tooltip",{"element":[1],"top":[4],"left":[4],"bottom":[4],"right":[4],"debug":[4],"show":[64],"hide":[64]}]]],["ku4-validation.cjs",[[1,"ku4-validation",{"for":[1],"element":[1],"pattern":[1],"flags":[1],"values":[1],"checked":[4],"method":[1],"invalid":[1540],"disabled":[1540],"hidden":[1540],"isValid":[32],"validate":[64]}]]]], options);
18
34
  });
19
35
  };
20
36
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  /*
4
- Stencil Client Platform v2.14.1 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Platform v2.14.2 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  /**
7
7
  * @license
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-da3ed39d.js');
3
+ const index = require('./index-f78c109e.js');
4
4
 
5
5
  const uid = () => {
6
6
  return (() => { index.R.uid(); })();
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-652a3cbf.js');
4
+
5
+ const uid = () => {
6
+ // @ts-ignore
7
+ let value;
8
+ return (() => { value = index.R.uid(); })();
9
+ };
10
+
11
+ exports.uid = uid;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Sets aria-hidden attribute for passed elements
3
+ * @param {Array} elements - List of elements to set aria-hidden on
4
+ * @param {boolean} [value] - Optional value for aria-hidden.
5
+ * No value will set to previous value if available.
6
+ */
7
+ export const ariaHidden = (elements, value) => {
8
+ if (!value) {
9
+ // eslint-disable-next-line @stencil/ban-side-effects
10
+ elements.forEach((element) => {
11
+ if (!element.currentAriaHidden) {
12
+ element.removeAttribute('aria-hidden');
13
+ }
14
+ else {
15
+ element.setAttribute('aria-hidden', element.currentAriaHidden);
16
+ }
17
+ });
18
+ }
19
+ else {
20
+ // eslint-disable-next-line @stencil/ban-side-effects
21
+ elements.forEach((element) => {
22
+ element.currentAriaHidden = element.getAttribute('aria-hidden');
23
+ element.setAttribute('aria-hidden', value);
24
+ });
25
+ }
26
+ };
@@ -0,0 +1,24 @@
1
+ import { Assert } from 'ku4es-kernel';
2
+ import {form} from 'ku4es-ui-kernel';
3
+ /**
4
+ * Method to wire a form to pass through the ku4-form validation
5
+ * mechanism before calling the application onSubmit method
6
+ * @param {Node} ref - A ref for the target form
7
+ * @param {function} onSubmit - the function to call on submit
8
+ */
9
+ export const wireForm = (ref, onSubmit) => {
10
+ if(!ref || ref.__ku4wired__) return;
11
+ try {
12
+ const submit = ref.submit;
13
+ ref.submit = async () => {
14
+ const values = form.read(ref);
15
+ const formData = form.readData(ref);
16
+ const cont = await onSubmit(values, formData, ref);
17
+ if(!Assert.isFalse(cont)) submit.call(ref);
18
+ };
19
+ ref.__ku4wired__ = true;
20
+ }
21
+ catch(e) {
22
+ throw new Error('wireForm Error. See https://kodmunki.com/storybook/?path=/docs/form-ku4-form--basic for more information.');
23
+ }
24
+ };
@@ -0,0 +1,20 @@
1
+ import { Assert } from 'ku4es-kernel';
2
+ /**
3
+ * Decorates deprecated members.
4
+ *
5
+ * Note: Due to inherent issues with Stencil `@Component`, classes
6
+ * should be `@Deprecated` at the `render` method.
7
+ *
8
+ * @param {string} [replacement] - Name of target replacement member
9
+ * @param {function} [callback] - Optional callback for Unit Tests.
10
+ */
11
+ export default (label, replacement, callback) => (_target, propertyKey, _descriptor) => {
12
+ const property = propertyKey === 'render' ? '' : `.${propertyKey}`;
13
+ const message = [
14
+ `DEPRECATED: ${label}${property}`,
15
+ '\nUse identified replacement if available.',
16
+ Assert.exists(replacement) ? `\nReplacement: ${replacement}` : '',
17
+ ].join('');
18
+ // eslint-disable-next-line no-console
19
+ (callback || (message => console.warn(message)))(message);
20
+ };
@@ -0,0 +1,3 @@
1
+ import Deprecated from './deprecated';
2
+ import Memoize from './memoize';
3
+ export { Deprecated, Memoize, };
@@ -0,0 +1,7 @@
1
+ export default () => (_target, _propertyKey, descriptor) => ((type) => {
2
+ let value;
3
+ return Object.assign(Object.assign({}, descriptor), { [type](...params) {
4
+ value = value || descriptor[type].call(this, ...params);
5
+ return value;
6
+ } });
7
+ })(descriptor.get ? 'get' : 'value');
@@ -0,0 +1,7 @@
1
+ const focusableTags = ['A', 'BUTTON', 'INPUT', 'SELECT', 'TEXTAREA'];
2
+ export default (element) => {
3
+ const tabindex = element.getAttribute('tabindex');
4
+ return (focusableTags.includes(element.tagName.toUpperCase()) ||
5
+ element.getAttribute('href')) &&
6
+ (!tabindex || isNaN(tabindex) || parseInt(tabindex) > -1);
7
+ };
@@ -0,0 +1,2 @@
1
+ export const queryFocusable = element => [].slice.call(element.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'));
2
+ export const queryTabbable = element => [].slice.call(element.querySelectorAll(':not([tabindex="-1"])'));
@@ -0,0 +1,6 @@
1
+ import { identity } from 'ku4es-kernel';
2
+ export default () => {
3
+ // @ts-ignore
4
+ let value;
5
+ return (() => { value = identity.uid(); })();
6
+ };
@@ -0,0 +1,5 @@
1
+ import * as patterns from './patterns'
2
+
3
+ export {
4
+ patterns
5
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * A pattern to use for ku4-mask when a date pattern is desired.
3
+ * This will only work for mm/dd/yyyy templates. It is advised
4
+ * that this not be edited other than on lines 24+ where the
5
+ * year rules are defined.
6
+ */
7
+
8
+ export const mm_dd = ',[01],(((?<=0)[1-9])|((?<=1)[0-2])),(((?<=(1[0-2]/))[0-3])|((?<=(0[^2]/))[0-3])|((?<=(02/))[0-2])),(((?<=/[0-2])[0-9])|((?<=/3)[01]))'
9
+ export const _1900_2199 = `,[12],(((?<=/../1)9)|((?<=/../2)[01]))`
10
+ export const _1900_2999 = `,[12],(((?<=/../1)9)|((?<=/../2)[0-9]))`
11
+
12
+ /**
13
+ * The following is an expanded for of the expression above.
14
+ * This is done to compress the expression for export. This
15
+ * could be scripted in the future.
16
+ */
17
+ /*
18
+ export default `
19
+ ,
20
+ [01],
21
+ (
22
+ ((?<=0)[1-9])|
23
+ ((?<=1)[0-2])
24
+ ),
25
+ (
26
+ ((?<=(1[0-2]/))[0-3])|
27
+ ((?<=(0[^2]/))[0-3])|
28
+ ((?<=(02/))[0-2])
29
+ ),
30
+ (
31
+ ((?<=/[0-2])[0-9])|
32
+ ((?<=/3)[01])
33
+ ),
34
+ [12],
35
+ (
36
+ ((?<=/../1)9)|
37
+ ((?<=/../2)[01])
38
+ )
39
+ `
40
+ */
@@ -0,0 +1,7 @@
1
+ import { mm_dd, _1900_2199, _1900_2999 } from './date'
2
+
3
+ export {
4
+ mm_dd,
5
+ _1900_2199,
6
+ _1900_2999
7
+ }
@@ -0,0 +1,25 @@
1
+ import { Assert } from 'ku4es-kernel';
2
+ import { form } from 'ku4es-ui-kernel';
3
+
4
+ /**
5
+ * Method to wire a form to pass through the ku4-form validation
6
+ * mechanism before calling the application onSubmit method
7
+ * @param {Node} ref - A React ref for the target form
8
+ * @param {function} onSubmit - the function to call on submit
9
+ */
10
+ export const wireForm = (ref, onSubmit) => {
11
+ if(!ref || ref.__ku4wired__) return;
12
+ try {
13
+ const submit = ref.submit;
14
+ ref.submit = async () => {
15
+ const values = form.read(ref);
16
+ const formData = form.readData(ref);
17
+ const cont = await onSubmit(values, formData, ref);
18
+ if(!Assert.isFalse(cont)) submit.call(ref);
19
+ };
20
+ ref.__ku4wired__ = true;
21
+ }
22
+ catch(e) {
23
+ throw new Error('wireForm Error. See https://kodmunki.com/storybook/?path=/docs/form-ku4-form--basic for more information.');
24
+ }
25
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Removes all extraneous whitespace from an HTML string so that well-formatted HTML
3
+ * can be used without consequence in Stenciljs end-to-end testing \.
4
+ *
5
+ * @param {string} value - a valid html string to 'trim'
6
+ * @returns {string}
7
+ */
8
+ export default value => value
9
+ .replace(/<!--.*?-->/g, '')
10
+ .replace(/[\n\s]+/g, ' ')
11
+ .replace(/[\n\s]>/g, '>')
12
+ .replace(/[\n\s]+</g, '<')
13
+ .replace(/>[\n\s]+/g, '>')
14
+ .trim();
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Returns an object literal of the style property values
3
+ * for the requested selector and property array
4
+ *
5
+ * @param {string} selector - a valid query selector string
6
+ * @param {string[]} properties - an array of valid style property values to return
7
+ * @returns {string}
8
+ */
9
+ export default (selector, properties) => properties.reduce((acc, property) => {
10
+ acc[property] = window
11
+ .getComputedStyle(document.querySelector(selector))
12
+ .getPropertyValue(property);
13
+ return acc;
14
+ }, {});
@@ -0,0 +1,28 @@
1
+ import {Assert} from 'ku4es-kernel';
2
+ import {form} from 'ku4es-ui-kernel';
3
+
4
+ /**
5
+ * Method to wire a form to pass through the ku4-form validation
6
+ * mechanism before calling the application onSubmit method
7
+ * @param {Vue} vm - The Vue instance for the target Vue Component instance
8
+ * that encapsulates ku4-form.
9
+ * @param {string} ref - The ref for this form.
10
+ * @param {function} onSubmit - the function to call on submit
11
+ */
12
+ export const wireForm = (vm, ref, onSubmit) => {
13
+ if(!vm || !vm.$refs || !vm.$refs[ref] || vm.$refs[ref].__ku4wired__) { return; }
14
+ try {
15
+ const _ref = vm.$refs[ref];
16
+ const {submit} = _ref;
17
+ _ref.submit = async () => {
18
+ const values = form.read(ref);
19
+ const formData = form.readData(ref);
20
+ const cont = await onSubmit.call(vm, values, formData, _ref);
21
+ if(!Assert.isFalse(cont)) submit.call(ref);
22
+ };
23
+ _ref.__ku4wired__ = true;
24
+ }
25
+ catch(e) {
26
+ throw new Error('wireForm Error. See https://kodmunki.com/storybook/?path=/docs/form-ku4-form--basic for more information.');
27
+ }
28
+ };
@@ -0,0 +1,26 @@
1
+ import {Assert} from 'ku4es-kernel';
2
+ import {form} from 'ku4es-ui-kernel';
3
+
4
+ /**
5
+ * Method to wire a form to pass through the ku4-form validation
6
+ * mechanism before calling the application onSubmit method
7
+ * @param {string} ref - The ref for this form.
8
+ * @param {function} onSubmit - the function to call on submit
9
+ */
10
+ export const wireForm = (ref, onSubmit) => {
11
+ if(!ref || !ref.value || ref.value.__ku4wired__) { return; }
12
+ try {
13
+ const _ref = ref.value;
14
+ const {submit} = _ref;
15
+ _ref.submit = async () => {
16
+ const values = form.read(ref.value);
17
+ const formData = form.readData(ref.value);
18
+ const cont = await onSubmit(values, formData, _ref);
19
+ if(!Assert.isFalse(cont)) submit.call(ref.value);
20
+ };
21
+ _ref.__ku4wired__ = true;
22
+ }
23
+ catch(e) {
24
+ throw new Error('wireForm Error. See https://kodmunki.com/storybook/?path=/docs/form-ku4-form--basic for more information.');
25
+ }
26
+ };