ku4web-components 6.4.69 → 6.4.74

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 (212) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/css-shim-3bfdba4f.js +6 -0
  3. package/dist/cjs/dom-8ac1ad03.js +75 -0
  4. package/dist/cjs/index-51b7a610.js +14 -0
  5. package/dist/cjs/index-6d979ba1.js +10 -0
  6. package/dist/cjs/index-a015c727.js +3067 -0
  7. package/dist/cjs/{index-e2a47c3c.js → index-c25cf44f.js} +1 -1
  8. package/dist/cjs/ku4-carousel-controls.cjs.entry.js +2 -2
  9. package/dist/cjs/ku4-carousel-slide.cjs.entry.js +1 -1
  10. package/dist/cjs/ku4-carousel.cjs.entry.js +4 -4
  11. package/dist/cjs/ku4-col.cjs.entry.js +1 -1
  12. package/dist/cjs/ku4-drawer.cjs.entry.js +1 -1
  13. package/dist/cjs/ku4-feature.cjs.entry.js +2 -2
  14. package/dist/cjs/ku4-focus-trap.cjs.entry.js +26 -26
  15. package/dist/cjs/ku4-form.cjs.entry.js +3 -3
  16. package/dist/cjs/ku4-grid.cjs.entry.js +1 -1
  17. package/dist/cjs/ku4-label.cjs.entry.js +2 -2
  18. package/dist/cjs/ku4-mask.cjs.entry.js +2 -2
  19. package/dist/cjs/ku4-modal.cjs.entry.js +3 -3
  20. package/dist/cjs/ku4-panel.cjs.entry.js +1 -1
  21. package/dist/cjs/ku4-preview.cjs.entry.js +43 -14
  22. package/dist/cjs/ku4-tab-list.cjs.entry.js +6 -6
  23. package/dist/cjs/ku4-tab-panel.cjs.entry.js +3 -3
  24. package/dist/cjs/ku4-tab.cjs.entry.js +3 -3
  25. package/dist/cjs/ku4-table.cjs.entry.js +1 -1
  26. package/dist/cjs/ku4-tooltip.cjs.entry.js +2 -2
  27. package/dist/cjs/ku4-validation.cjs.entry.js +2 -2
  28. package/dist/cjs/ku4web-components.cjs.js +98 -7
  29. package/dist/cjs/loader.cjs.js +18 -2
  30. package/dist/cjs/uid-3dd31175.js +11 -0
  31. package/dist/collection/capabilities/a11y/aria.js +26 -0
  32. package/dist/collection/capabilities/angular/index.js +24 -0
  33. package/dist/collection/capabilities/decorators/deprecated.js +20 -0
  34. package/dist/collection/capabilities/decorators/index.js +3 -0
  35. package/dist/collection/capabilities/decorators/memoize.js +7 -0
  36. package/dist/collection/capabilities/dom/isFocusable.js +7 -0
  37. package/dist/collection/capabilities/dom/queryFocusable.js +2 -0
  38. package/dist/collection/capabilities/identity/uid.js +6 -0
  39. package/dist/collection/capabilities/mask/index.js +5 -0
  40. package/dist/collection/capabilities/mask/patterns/date.js +40 -0
  41. package/dist/collection/capabilities/mask/patterns/index.js +7 -0
  42. package/dist/collection/capabilities/react/index.js +25 -0
  43. package/dist/collection/capabilities/testing/html.js +14 -0
  44. package/dist/collection/capabilities/testing/styles.js +14 -0
  45. package/dist/collection/capabilities/vue/index.js +28 -0
  46. package/dist/collection/capabilities/vue3/index.js +26 -0
  47. package/dist/collection/collection-manifest.json +31 -0
  48. package/dist/collection/components/ku4-carousel/ku4-carousel.css +221 -0
  49. package/dist/collection/components/ku4-carousel/ku4-carousel.js +360 -0
  50. package/dist/collection/components/ku4-carousel-controls/ku4-carousel-controls.css +32 -0
  51. package/dist/collection/components/ku4-carousel-controls/ku4-carousel-controls.js +106 -0
  52. package/dist/collection/components/ku4-carousel-slide/ku4-carousel-slide.css +3 -0
  53. package/dist/collection/components/ku4-carousel-slide/ku4-carousel-slide.js +140 -0
  54. package/dist/collection/components/ku4-col/ku4-col.css +601 -0
  55. package/dist/collection/components/ku4-col/ku4-col.js +288 -0
  56. package/dist/collection/components/ku4-drawer/ku4-drawer.css +56 -0
  57. package/dist/collection/components/ku4-drawer/ku4-drawer.js +163 -0
  58. package/dist/collection/components/ku4-feature/ku4-feature.js +70 -0
  59. package/dist/collection/components/ku4-focus-trap/ku4-focus-trap.css +3 -0
  60. package/dist/collection/components/ku4-focus-trap/ku4-focus-trap.js +441 -0
  61. package/dist/collection/components/ku4-form/ku4-form.js +202 -0
  62. package/dist/collection/components/ku4-grid/ku4-grid.css +751 -0
  63. package/dist/collection/components/ku4-grid/ku4-grid.js +408 -0
  64. package/dist/collection/components/ku4-label/ku4-label.css +36 -0
  65. package/dist/collection/components/ku4-label/ku4-label.js +115 -0
  66. package/dist/collection/components/ku4-mask/ku4-mask.css +3 -0
  67. package/dist/collection/components/ku4-mask/ku4-mask.js +437 -0
  68. package/dist/collection/components/ku4-modal/ku4-modal.css +85 -0
  69. package/dist/collection/components/ku4-modal/ku4-modal.js +186 -0
  70. package/dist/collection/components/ku4-panel/ku4-panel.css +14 -0
  71. package/dist/collection/components/ku4-panel/ku4-panel.js +119 -0
  72. package/dist/collection/components/ku4-preview/ku4-preview.css +23 -0
  73. package/dist/collection/components/ku4-preview/ku4-preview.js +266 -0
  74. package/dist/collection/components/ku4-tab/ku4-tab.css +82 -0
  75. package/dist/collection/components/ku4-tab/ku4-tab.js +191 -0
  76. package/dist/collection/components/ku4-tab-list/ku4-tab-list.css +6 -0
  77. package/dist/collection/components/ku4-tab-list/ku4-tab-list.js +118 -0
  78. package/dist/collection/components/ku4-tab-panel/ku4-tab-panel.css +26 -0
  79. package/dist/collection/components/ku4-tab-panel/ku4-tab-panel.js +166 -0
  80. package/dist/collection/components/ku4-table/ku4-table.css +116 -0
  81. package/dist/collection/components/ku4-table/ku4-table.js +120 -0
  82. package/dist/collection/components/ku4-tooltip/ku4-tooltip.css +56 -0
  83. package/dist/collection/components/ku4-tooltip/ku4-tooltip.js +274 -0
  84. package/dist/collection/components/ku4-validation/ku4-validation.css +19 -0
  85. package/dist/collection/components/ku4-validation/ku4-validation.js +364 -0
  86. package/dist/collection/components/ku4-validation/validate.js +14 -0
  87. package/dist/collection/index.js +1 -0
  88. package/dist/collection/security.js +27 -0
  89. package/dist/esm/app-globals-0f993ce5.js +3 -0
  90. package/dist/esm/css-shim-20dbffa5.js +4 -0
  91. package/dist/esm/dom-c5ed0ba5.js +73 -0
  92. package/dist/esm/{index-a39e08fb.js → index-12aee218.js} +1 -1
  93. package/dist/esm/index-40000e6d.js +3 -0
  94. package/dist/esm/index-80439f22.js +3031 -0
  95. package/dist/esm/index-89916128.js +3 -0
  96. package/dist/esm/ku4-carousel-controls.entry.js +2 -2
  97. package/dist/esm/ku4-carousel-slide.entry.js +1 -1
  98. package/dist/esm/ku4-carousel.entry.js +4 -4
  99. package/dist/esm/ku4-col.entry.js +1 -1
  100. package/dist/esm/ku4-drawer.entry.js +1 -1
  101. package/dist/esm/ku4-feature.entry.js +2 -2
  102. package/dist/esm/ku4-focus-trap.entry.js +3 -3
  103. package/dist/esm/ku4-form.entry.js +3 -3
  104. package/dist/esm/ku4-grid.entry.js +1 -1
  105. package/dist/esm/ku4-label.entry.js +2 -2
  106. package/dist/esm/ku4-mask.entry.js +2 -2
  107. package/dist/esm/ku4-modal.entry.js +3 -3
  108. package/dist/esm/ku4-panel.entry.js +1 -1
  109. package/dist/esm/ku4-preview.entry.js +35 -6
  110. package/dist/esm/ku4-tab-list.entry.js +6 -6
  111. package/dist/esm/ku4-tab-panel.entry.js +3 -3
  112. package/dist/esm/ku4-tab.entry.js +3 -3
  113. package/dist/esm/ku4-table.entry.js +1 -1
  114. package/dist/esm/ku4-tooltip.entry.js +2 -2
  115. package/dist/esm/ku4-validation.entry.js +2 -2
  116. package/dist/esm/ku4web-components.js +98 -7
  117. package/dist/esm/loader.js +18 -2
  118. package/dist/esm/uid-5355229f.js +9 -0
  119. package/dist/esm-es5/{index-a39e08fb.js → index-12aee218.js} +1 -1
  120. package/dist/esm-es5/ku4-carousel.entry.js +1 -1
  121. package/dist/esm-es5/ku4-focus-trap.entry.js +1 -1
  122. package/dist/esm-es5/ku4-form.entry.js +1 -1
  123. package/dist/esm-es5/ku4-modal.entry.js +1 -1
  124. package/dist/esm-es5/ku4-preview.entry.js +1 -1
  125. package/dist/esm-es5/ku4-tab-list.entry.js +1 -1
  126. package/dist/esm-es5/ku4web-components.js +1 -1
  127. package/dist/esm-es5/loader.js +1 -1
  128. package/dist/index.js +1 -1
  129. package/dist/ku4web-components/app-globals-0f993ce5.js +3 -0
  130. package/dist/ku4web-components/app-globals-497eb362.system.js +1 -0
  131. package/dist/ku4web-components/css-shim-20dbffa5.js +4 -0
  132. package/dist/ku4web-components/css-shim-856c55de.system.js +1 -0
  133. package/dist/ku4web-components/dom-938307ec.system.js +21 -0
  134. package/dist/ku4web-components/dom-c5ed0ba5.js +73 -0
  135. package/dist/ku4web-components/index-3127d7f7.system.js +1 -0
  136. package/dist/ku4web-components/index-40000e6d.js +3 -0
  137. package/dist/ku4web-components/index-79de9846.system.js +1 -0
  138. package/dist/ku4web-components/index-80439f22.js +3031 -0
  139. package/dist/ku4web-components/index-89916128.js +3 -0
  140. package/dist/ku4web-components/index-c39e9986.system.js +1 -0
  141. package/dist/ku4web-components/index.esm.js +1 -0
  142. package/dist/ku4web-components/index.system.js +1 -0
  143. package/dist/ku4web-components/ku4-carousel-controls.entry.js +83 -0
  144. package/dist/ku4web-components/ku4-carousel-controls.system.entry.js +1 -0
  145. package/dist/ku4web-components/ku4-carousel-slide.entry.js +47 -0
  146. package/dist/ku4web-components/ku4-carousel-slide.system.entry.js +1 -0
  147. package/dist/ku4web-components/ku4-carousel.entry.js +166 -0
  148. package/dist/ku4web-components/ku4-carousel.system.entry.js +1 -0
  149. package/dist/ku4web-components/ku4-col.entry.js +75 -0
  150. package/dist/ku4web-components/ku4-col.system.entry.js +1 -0
  151. package/dist/ku4web-components/ku4-drawer.entry.js +35 -0
  152. package/dist/ku4web-components/ku4-drawer.system.entry.js +1 -0
  153. package/dist/ku4web-components/ku4-feature.entry.js +29 -0
  154. package/dist/ku4web-components/ku4-feature.system.entry.js +1 -0
  155. package/dist/ku4web-components/ku4-focus-trap.entry.js +323 -0
  156. package/dist/ku4web-components/ku4-focus-trap.system.entry.js +1 -0
  157. package/dist/ku4web-components/ku4-form.entry.js +105 -0
  158. package/dist/ku4web-components/ku4-form.system.entry.js +1 -0
  159. package/dist/ku4web-components/ku4-grid.entry.js +108 -0
  160. package/dist/ku4web-components/ku4-grid.system.entry.js +1 -0
  161. package/dist/ku4web-components/ku4-label.entry.js +70 -0
  162. package/dist/ku4web-components/ku4-label.system.entry.js +1 -0
  163. package/dist/ku4web-components/ku4-mask.entry.js +321 -0
  164. package/dist/ku4web-components/ku4-mask.system.entry.js +1 -0
  165. package/dist/ku4web-components/ku4-modal.entry.js +71 -0
  166. package/dist/ku4web-components/ku4-modal.system.entry.js +1 -0
  167. package/dist/ku4web-components/ku4-panel.entry.js +49 -0
  168. package/dist/ku4web-components/ku4-panel.system.entry.js +1 -0
  169. package/dist/ku4web-components/ku4-preview.entry.js +128 -0
  170. package/dist/ku4web-components/ku4-preview.system.entry.js +1 -0
  171. package/dist/ku4web-components/ku4-tab-list.entry.js +76 -0
  172. package/dist/ku4web-components/ku4-tab-list.system.entry.js +1 -0
  173. package/dist/ku4web-components/ku4-tab-panel.entry.js +72 -0
  174. package/dist/ku4web-components/ku4-tab-panel.system.entry.js +1 -0
  175. package/dist/ku4web-components/ku4-tab.entry.js +63 -0
  176. package/dist/ku4web-components/ku4-tab.system.entry.js +1 -0
  177. package/dist/ku4web-components/ku4-table.entry.js +79 -0
  178. package/dist/ku4web-components/ku4-table.system.entry.js +1 -0
  179. package/dist/ku4web-components/ku4-tooltip.entry.js +120 -0
  180. package/dist/ku4web-components/ku4-tooltip.system.entry.js +1 -0
  181. package/dist/ku4web-components/ku4-validation.entry.js +162 -0
  182. package/dist/ku4web-components/ku4-validation.system.entry.js +1 -0
  183. package/dist/ku4web-components/ku4web-components.css +299 -1
  184. package/dist/ku4web-components/ku4web-components.esm.js +125 -1
  185. package/dist/ku4web-components/ku4web-components.js +1 -1
  186. package/dist/ku4web-components/ku4web-components.system.js +1 -0
  187. package/dist/ku4web-components/p-0e3f81f0.system.entry.js +1 -0
  188. package/dist/ku4web-components/p-2c017d37.system.js +1 -1
  189. package/dist/ku4web-components/{p-85ce378f.system.entry.js → p-2d668be8.system.entry.js} +1 -1
  190. package/dist/ku4web-components/{p-ebc796ca.entry.js → p-34e1be7b.entry.js} +1 -1
  191. package/dist/ku4web-components/{p-b313124a.entry.js → p-38a24a64.entry.js} +1 -1
  192. package/dist/ku4web-components/{p-08ec498e.js → p-3d59c1fe.js} +1 -1
  193. package/dist/ku4web-components/p-4b272a58.entry.js +1 -0
  194. package/dist/ku4web-components/{p-e1964f6b.system.entry.js → p-5cab8007.system.entry.js} +1 -1
  195. package/dist/ku4web-components/{p-43683726.system.entry.js → p-6f236a8a.system.entry.js} +1 -1
  196. package/dist/ku4web-components/{p-31fd55e7.system.entry.js → p-73d78335.system.entry.js} +1 -1
  197. package/dist/ku4web-components/{p-52147373.system.js → p-86284ed4.system.js} +1 -1
  198. package/dist/ku4web-components/{p-479439e6.entry.js → p-90a37025.entry.js} +1 -1
  199. package/dist/ku4web-components/{p-54c18ac5.system.entry.js → p-9b46e89b.system.entry.js} +1 -1
  200. package/dist/ku4web-components/{p-6e505024.entry.js → p-a2805805.entry.js} +1 -1
  201. package/dist/ku4web-components/p-f311c0be.entry.js +1 -0
  202. package/dist/ku4web-components/shadow-css-8c625855.js +388 -0
  203. package/dist/ku4web-components/shadow-css-d573707f.system.js +13 -0
  204. package/dist/ku4web-components/uid-5355229f.js +9 -0
  205. package/dist/ku4web-components/uid-93975202.system.js +1 -0
  206. package/dist/types/components/ku4-preview/ku4-preview.d.ts +5 -0
  207. package/dist/types/components/ku4-tab-list/ku4-tab-list.d.ts +2 -2
  208. package/dist/types/components.d.ts +8 -0
  209. package/package.json +20 -20
  210. package/dist/ku4web-components/p-05a75a47.entry.js +0 -1
  211. package/dist/ku4web-components/p-b625e0a4.entry.js +0 -1
  212. package/dist/ku4web-components/p-fd02ffa2.system.entry.js +0 -1
@@ -0,0 +1,108 @@
1
+ import { r as registerInstance, h, f as Host } from './index-80439f22.js';
2
+
3
+ const ku4GridCss = ":host{position:relative;display:block;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}@media only screen and (min-width: 1px){:host(.columns-xs-1){display:grid;grid-template-columns:repeat(auto-fill, minmax(100%, auto));margin-bottom:0}:host(.columns-xs-2){display:grid;grid-template-columns:repeat(auto-fill, minmax(50%, auto));margin-bottom:0}:host(.columns-xs-3){display:grid;grid-template-columns:repeat(auto-fill, minmax(33.3333333333%, auto));margin-bottom:0}:host(.columns-xs-4){display:grid;grid-template-columns:repeat(auto-fill, minmax(25%, auto));margin-bottom:0}:host(.columns-xs-5){display:grid;grid-template-columns:repeat(auto-fill, minmax(20%, auto));margin-bottom:0}:host(.columns-xs-6){display:grid;grid-template-columns:repeat(auto-fill, minmax(16.6666666667%, auto));margin-bottom:0}:host(.columns-xs-7){display:grid;grid-template-columns:repeat(auto-fill, minmax(14.2857142857%, auto));margin-bottom:0}:host(.columns-xs-8){display:grid;grid-template-columns:repeat(auto-fill, minmax(12.5%, auto));margin-bottom:0}:host(.columns-xs-9){display:grid;grid-template-columns:repeat(auto-fill, minmax(11.1111111111%, auto));margin-bottom:0}:host(.columns-xs-10){display:grid;grid-template-columns:repeat(auto-fill, minmax(10%, auto));margin-bottom:0}:host(.columns-xs-11){display:grid;grid-template-columns:repeat(auto-fill, minmax(9.0909090909%, auto));margin-bottom:0}:host(.columns-xs-12){display:grid;grid-template-columns:repeat(auto-fill, minmax(8.3333333333%, auto));margin-bottom:0}:host(.columns-xs-13){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.6923076923%, auto));margin-bottom:0}:host(.columns-xs-14){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.1428571429%, auto));margin-bottom:0}:host(.columns-xs-15){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.6666666667%, auto));margin-bottom:0}:host(.columns-xs-16){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.25%, auto));margin-bottom:0}:host(.offset-left-xs-0){padding-left:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-left-xs-1){padding-left:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-left-xs-2){padding-left:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-left-xs-3){padding-left:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-left-xs-4){padding-left:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-left-xs-5){padding-left:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-right-xs-0){padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-right-xs-1){padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-right-xs-2){padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-right-xs-3){padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-right-xs-4){padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-right-xs-5){padding-right:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-xs-0){padding-left:calc(((100% + 8.33px) / 12) * 0);padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-xs-1){padding-left:calc(((100% + 8.33px) / 12) * 1);padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-xs-2){padding-left:calc(((100% + 8.33px) / 12) * 2);padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-xs-3){padding-left:calc(((100% + 8.33px) / 12) * 3);padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-xs-4){padding-left:calc(((100% + 8.33px) / 12) * 4);padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-xs-5){padding-left:calc(((100% + 8.33px) / 12) * 5);padding-right:calc(((100% + 8.33px) / 12) * 5)}:host{margin-bottom:calc(-1 * var(--ku4-grid-row-gutter-xs, 6px))}:host::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-xs, 6px)}:host ::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-xs, 6px)}}@media only screen and (min-width: 768px){:host(.columns-sm-1){display:grid;grid-template-columns:repeat(auto-fill, minmax(100%, auto));margin-bottom:0}:host(.columns-sm-2){display:grid;grid-template-columns:repeat(auto-fill, minmax(50%, auto));margin-bottom:0}:host(.columns-sm-3){display:grid;grid-template-columns:repeat(auto-fill, minmax(33.3333333333%, auto));margin-bottom:0}:host(.columns-sm-4){display:grid;grid-template-columns:repeat(auto-fill, minmax(25%, auto));margin-bottom:0}:host(.columns-sm-5){display:grid;grid-template-columns:repeat(auto-fill, minmax(20%, auto));margin-bottom:0}:host(.columns-sm-6){display:grid;grid-template-columns:repeat(auto-fill, minmax(16.6666666667%, auto));margin-bottom:0}:host(.columns-sm-7){display:grid;grid-template-columns:repeat(auto-fill, minmax(14.2857142857%, auto));margin-bottom:0}:host(.columns-sm-8){display:grid;grid-template-columns:repeat(auto-fill, minmax(12.5%, auto));margin-bottom:0}:host(.columns-sm-9){display:grid;grid-template-columns:repeat(auto-fill, minmax(11.1111111111%, auto));margin-bottom:0}:host(.columns-sm-10){display:grid;grid-template-columns:repeat(auto-fill, minmax(10%, auto));margin-bottom:0}:host(.columns-sm-11){display:grid;grid-template-columns:repeat(auto-fill, minmax(9.0909090909%, auto));margin-bottom:0}:host(.columns-sm-12){display:grid;grid-template-columns:repeat(auto-fill, minmax(8.3333333333%, auto));margin-bottom:0}:host(.columns-sm-13){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.6923076923%, auto));margin-bottom:0}:host(.columns-sm-14){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.1428571429%, auto));margin-bottom:0}:host(.columns-sm-15){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.6666666667%, auto));margin-bottom:0}:host(.columns-sm-16){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.25%, auto));margin-bottom:0}:host(.offset-left-sm-0){padding-left:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-left-sm-1){padding-left:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-left-sm-2){padding-left:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-left-sm-3){padding-left:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-left-sm-4){padding-left:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-left-sm-5){padding-left:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-right-sm-0){padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-right-sm-1){padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-right-sm-2){padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-right-sm-3){padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-right-sm-4){padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-right-sm-5){padding-right:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-sm-0){padding-left:calc(((100% + 8.33px) / 12) * 0);padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-sm-1){padding-left:calc(((100% + 8.33px) / 12) * 1);padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-sm-2){padding-left:calc(((100% + 8.33px) / 12) * 2);padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-sm-3){padding-left:calc(((100% + 8.33px) / 12) * 3);padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-sm-4){padding-left:calc(((100% + 8.33px) / 12) * 4);padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-sm-5){padding-left:calc(((100% + 8.33px) / 12) * 5);padding-right:calc(((100% + 8.33px) / 12) * 5)}:host{margin-bottom:calc(-1 * var(--ku4-grid-row-gutter-sm, 10px))}:host::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-sm, 10px)}:host ::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-sm, 10px)}}@media only screen and (min-width: 992px){:host(.columns-md-1){display:grid;grid-template-columns:repeat(auto-fill, minmax(100%, auto));margin-bottom:0}:host(.columns-md-2){display:grid;grid-template-columns:repeat(auto-fill, minmax(50%, auto));margin-bottom:0}:host(.columns-md-3){display:grid;grid-template-columns:repeat(auto-fill, minmax(33.3333333333%, auto));margin-bottom:0}:host(.columns-md-4){display:grid;grid-template-columns:repeat(auto-fill, minmax(25%, auto));margin-bottom:0}:host(.columns-md-5){display:grid;grid-template-columns:repeat(auto-fill, minmax(20%, auto));margin-bottom:0}:host(.columns-md-6){display:grid;grid-template-columns:repeat(auto-fill, minmax(16.6666666667%, auto));margin-bottom:0}:host(.columns-md-7){display:grid;grid-template-columns:repeat(auto-fill, minmax(14.2857142857%, auto));margin-bottom:0}:host(.columns-md-8){display:grid;grid-template-columns:repeat(auto-fill, minmax(12.5%, auto));margin-bottom:0}:host(.columns-md-9){display:grid;grid-template-columns:repeat(auto-fill, minmax(11.1111111111%, auto));margin-bottom:0}:host(.columns-md-10){display:grid;grid-template-columns:repeat(auto-fill, minmax(10%, auto));margin-bottom:0}:host(.columns-md-11){display:grid;grid-template-columns:repeat(auto-fill, minmax(9.0909090909%, auto));margin-bottom:0}:host(.columns-md-12){display:grid;grid-template-columns:repeat(auto-fill, minmax(8.3333333333%, auto));margin-bottom:0}:host(.columns-md-13){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.6923076923%, auto));margin-bottom:0}:host(.columns-md-14){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.1428571429%, auto));margin-bottom:0}:host(.columns-md-15){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.6666666667%, auto));margin-bottom:0}:host(.columns-md-16){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.25%, auto));margin-bottom:0}:host(.offset-left-md-0){padding-left:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-left-md-1){padding-left:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-left-md-2){padding-left:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-left-md-3){padding-left:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-left-md-4){padding-left:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-left-md-5){padding-left:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-right-md-0){padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-right-md-1){padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-right-md-2){padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-right-md-3){padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-right-md-4){padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-right-md-5){padding-right:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-md-0){padding-left:calc(((100% + 8.33px) / 12) * 0);padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-md-1){padding-left:calc(((100% + 8.33px) / 12) * 1);padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-md-2){padding-left:calc(((100% + 8.33px) / 12) * 2);padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-md-3){padding-left:calc(((100% + 8.33px) / 12) * 3);padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-md-4){padding-left:calc(((100% + 8.33px) / 12) * 4);padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-md-5){padding-left:calc(((100% + 8.33px) / 12) * 5);padding-right:calc(((100% + 8.33px) / 12) * 5)}:host{margin-bottom:calc(-1 * var(--ku4-grid-row-gutter-md, 12px))}:host::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-md, 12px)}:host ::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-md, 12px)}}@media only screen and (min-width: 1200px){:host(.columns-lg-1){display:grid;grid-template-columns:repeat(auto-fill, minmax(100%, auto));margin-bottom:0}:host(.columns-lg-2){display:grid;grid-template-columns:repeat(auto-fill, minmax(50%, auto));margin-bottom:0}:host(.columns-lg-3){display:grid;grid-template-columns:repeat(auto-fill, minmax(33.3333333333%, auto));margin-bottom:0}:host(.columns-lg-4){display:grid;grid-template-columns:repeat(auto-fill, minmax(25%, auto));margin-bottom:0}:host(.columns-lg-5){display:grid;grid-template-columns:repeat(auto-fill, minmax(20%, auto));margin-bottom:0}:host(.columns-lg-6){display:grid;grid-template-columns:repeat(auto-fill, minmax(16.6666666667%, auto));margin-bottom:0}:host(.columns-lg-7){display:grid;grid-template-columns:repeat(auto-fill, minmax(14.2857142857%, auto));margin-bottom:0}:host(.columns-lg-8){display:grid;grid-template-columns:repeat(auto-fill, minmax(12.5%, auto));margin-bottom:0}:host(.columns-lg-9){display:grid;grid-template-columns:repeat(auto-fill, minmax(11.1111111111%, auto));margin-bottom:0}:host(.columns-lg-10){display:grid;grid-template-columns:repeat(auto-fill, minmax(10%, auto));margin-bottom:0}:host(.columns-lg-11){display:grid;grid-template-columns:repeat(auto-fill, minmax(9.0909090909%, auto));margin-bottom:0}:host(.columns-lg-12){display:grid;grid-template-columns:repeat(auto-fill, minmax(8.3333333333%, auto));margin-bottom:0}:host(.columns-lg-13){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.6923076923%, auto));margin-bottom:0}:host(.columns-lg-14){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.1428571429%, auto));margin-bottom:0}:host(.columns-lg-15){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.6666666667%, auto));margin-bottom:0}:host(.columns-lg-16){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.25%, auto));margin-bottom:0}:host(.offset-left-lg-0){padding-left:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-left-lg-1){padding-left:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-left-lg-2){padding-left:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-left-lg-3){padding-left:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-left-lg-4){padding-left:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-left-lg-5){padding-left:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-right-lg-0){padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-right-lg-1){padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-right-lg-2){padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-right-lg-3){padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-right-lg-4){padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-right-lg-5){padding-right:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-lg-0){padding-left:calc(((100% + 8.33px) / 12) * 0);padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-lg-1){padding-left:calc(((100% + 8.33px) / 12) * 1);padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-lg-2){padding-left:calc(((100% + 8.33px) / 12) * 2);padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-lg-3){padding-left:calc(((100% + 8.33px) / 12) * 3);padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-lg-4){padding-left:calc(((100% + 8.33px) / 12) * 4);padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-lg-5){padding-left:calc(((100% + 8.33px) / 12) * 5);padding-right:calc(((100% + 8.33px) / 12) * 5)}:host{margin-bottom:calc(-1 * var(--ku4-grid-row-gutter-lg, 16px))}:host::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-lg, 16px)}:host ::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-lg, 16px)}}::slotted(*){margin-left:var(--ku4-grid-column-gutter, 15px);margin-right:var(--ku4-grid-column-gutter, 15px)}";
4
+
5
+ let Ku4Grid = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ //<editor-fold desc="columns">
9
+ /**
10
+ * Number of columns to render at extra-small (optional).
11
+ */
12
+ this.columnsXs = 1;
13
+ //</editor-fold>
14
+ //<editor-fold desc="offset-left">
15
+ /**
16
+ * Number of columns to offset left at extra-small (optional).
17
+ */
18
+ this.offsetLeftXs = 0;
19
+ //</editor-fold>
20
+ //<editor-fold desc="offset-right">
21
+ /**
22
+ * Number of columns to offset right (optional).
23
+ */
24
+ this.offsetRight = 0;
25
+ //</editor-fold>
26
+ //<editor-fold desc="offset">
27
+ /**
28
+ * Number of columns to offset left and right at extra-small (optional).
29
+ */
30
+ this.offsetXs = 0;
31
+ }
32
+ //</editor-fold>
33
+ get columnClass() {
34
+ const { columnsXs, columnsSm, columnsMd, columnsLg } = this;
35
+ const value = [];
36
+ if (columnsXs && !Number.isNaN(columnsXs)) {
37
+ value.push(`columns-xs-${columnsXs}`);
38
+ }
39
+ if (columnsSm && !Number.isNaN(columnsSm)) {
40
+ value.push(`columns-sm-${columnsSm}`);
41
+ }
42
+ if (columnsMd && !Number.isNaN(columnsMd)) {
43
+ value.push(`columns-md-${columnsMd}`);
44
+ }
45
+ if (columnsLg && !Number.isNaN(columnsLg)) {
46
+ value.push(`columns-lg-${columnsLg}`);
47
+ }
48
+ return value.join(' ');
49
+ }
50
+ get offsetLeftClass() {
51
+ const { offsetLeftXs, offsetLeftSm, offsetLeftMd, offsetLeftLg } = this;
52
+ const value = [];
53
+ if (offsetLeftXs && !Number.isNaN(offsetLeftXs)) {
54
+ value.push(`offset-left-xs-${offsetLeftXs}`);
55
+ }
56
+ if (offsetLeftSm && !Number.isNaN(offsetLeftSm)) {
57
+ value.push(`offset-left-sm-${offsetLeftSm}`);
58
+ }
59
+ if (offsetLeftMd && !Number.isNaN(offsetLeftMd)) {
60
+ value.push(`offset-left-md-${offsetLeftMd}`);
61
+ }
62
+ if (offsetLeftLg && !Number.isNaN(offsetLeftLg)) {
63
+ value.push(`offset-left-lg-${offsetLeftLg}`);
64
+ }
65
+ return value.join(' ');
66
+ }
67
+ get offsetRightClass() {
68
+ const { offsetRightXs, offsetRightSm, offsetRightMd, offsetRightLg } = this;
69
+ const value = [];
70
+ if (offsetRightXs && !Number.isNaN(offsetRightXs)) {
71
+ value.push(`offset-right-xs-${offsetRightXs}`);
72
+ }
73
+ if (offsetRightSm && !Number.isNaN(offsetRightSm)) {
74
+ value.push(`offset-right-sm-${offsetRightSm}`);
75
+ }
76
+ if (offsetRightMd && !Number.isNaN(offsetRightMd)) {
77
+ value.push(`offset-right-md-${offsetRightMd}`);
78
+ }
79
+ if (offsetRightLg && !Number.isNaN(offsetRightLg)) {
80
+ value.push(`offset-right-lg-${offsetRightLg}`);
81
+ }
82
+ return value.join(' ');
83
+ }
84
+ get offsetClass() {
85
+ const { offsetXs, offsetSm, offsetMd, offsetLg } = this;
86
+ const value = [];
87
+ if (offsetXs && !Number.isNaN(offsetXs)) {
88
+ value.push(`offset-xs-${offsetXs}`);
89
+ }
90
+ if (offsetSm && !Number.isNaN(offsetSm)) {
91
+ value.push(`offset-sm-${offsetSm}`);
92
+ }
93
+ if (offsetMd && !Number.isNaN(offsetMd)) {
94
+ value.push(`offset-md-${offsetMd}`);
95
+ }
96
+ if (offsetLg && !Number.isNaN(offsetLg)) {
97
+ value.push(`offset-lg-${offsetLg}`);
98
+ }
99
+ return value.join(' ');
100
+ }
101
+ render() {
102
+ const { columnClass, offsetClass, offsetLeftClass, offsetRightClass, } = this;
103
+ return (h(Host, { class: `${columnClass} ${offsetLeftClass} ${offsetRightClass} ${offsetClass}` }, h("slot", null)));
104
+ }
105
+ };
106
+ Ku4Grid.style = ku4GridCss;
107
+
108
+ export { Ku4Grid as ku4_grid };
@@ -0,0 +1 @@
1
+ System.register(["./index-79de9846.system.js"],(function(t){"use strict";var o,a,i;return{setters:[function(t){o=t.r;a=t.h;i=t.f}],execute:function(){var l=":host{position:relative;display:block;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}@media only screen and (min-width: 1px){:host(.columns-xs-1){display:grid;grid-template-columns:repeat(auto-fill, minmax(100%, auto));margin-bottom:0}:host(.columns-xs-2){display:grid;grid-template-columns:repeat(auto-fill, minmax(50%, auto));margin-bottom:0}:host(.columns-xs-3){display:grid;grid-template-columns:repeat(auto-fill, minmax(33.3333333333%, auto));margin-bottom:0}:host(.columns-xs-4){display:grid;grid-template-columns:repeat(auto-fill, minmax(25%, auto));margin-bottom:0}:host(.columns-xs-5){display:grid;grid-template-columns:repeat(auto-fill, minmax(20%, auto));margin-bottom:0}:host(.columns-xs-6){display:grid;grid-template-columns:repeat(auto-fill, minmax(16.6666666667%, auto));margin-bottom:0}:host(.columns-xs-7){display:grid;grid-template-columns:repeat(auto-fill, minmax(14.2857142857%, auto));margin-bottom:0}:host(.columns-xs-8){display:grid;grid-template-columns:repeat(auto-fill, minmax(12.5%, auto));margin-bottom:0}:host(.columns-xs-9){display:grid;grid-template-columns:repeat(auto-fill, minmax(11.1111111111%, auto));margin-bottom:0}:host(.columns-xs-10){display:grid;grid-template-columns:repeat(auto-fill, minmax(10%, auto));margin-bottom:0}:host(.columns-xs-11){display:grid;grid-template-columns:repeat(auto-fill, minmax(9.0909090909%, auto));margin-bottom:0}:host(.columns-xs-12){display:grid;grid-template-columns:repeat(auto-fill, minmax(8.3333333333%, auto));margin-bottom:0}:host(.columns-xs-13){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.6923076923%, auto));margin-bottom:0}:host(.columns-xs-14){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.1428571429%, auto));margin-bottom:0}:host(.columns-xs-15){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.6666666667%, auto));margin-bottom:0}:host(.columns-xs-16){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.25%, auto));margin-bottom:0}:host(.offset-left-xs-0){padding-left:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-left-xs-1){padding-left:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-left-xs-2){padding-left:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-left-xs-3){padding-left:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-left-xs-4){padding-left:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-left-xs-5){padding-left:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-right-xs-0){padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-right-xs-1){padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-right-xs-2){padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-right-xs-3){padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-right-xs-4){padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-right-xs-5){padding-right:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-xs-0){padding-left:calc(((100% + 8.33px) / 12) * 0);padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-xs-1){padding-left:calc(((100% + 8.33px) / 12) * 1);padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-xs-2){padding-left:calc(((100% + 8.33px) / 12) * 2);padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-xs-3){padding-left:calc(((100% + 8.33px) / 12) * 3);padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-xs-4){padding-left:calc(((100% + 8.33px) / 12) * 4);padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-xs-5){padding-left:calc(((100% + 8.33px) / 12) * 5);padding-right:calc(((100% + 8.33px) / 12) * 5)}:host{margin-bottom:calc(-1 * var(--ku4-grid-row-gutter-xs, 6px))}:host::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-xs, 6px)}:host ::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-xs, 6px)}}@media only screen and (min-width: 768px){:host(.columns-sm-1){display:grid;grid-template-columns:repeat(auto-fill, minmax(100%, auto));margin-bottom:0}:host(.columns-sm-2){display:grid;grid-template-columns:repeat(auto-fill, minmax(50%, auto));margin-bottom:0}:host(.columns-sm-3){display:grid;grid-template-columns:repeat(auto-fill, minmax(33.3333333333%, auto));margin-bottom:0}:host(.columns-sm-4){display:grid;grid-template-columns:repeat(auto-fill, minmax(25%, auto));margin-bottom:0}:host(.columns-sm-5){display:grid;grid-template-columns:repeat(auto-fill, minmax(20%, auto));margin-bottom:0}:host(.columns-sm-6){display:grid;grid-template-columns:repeat(auto-fill, minmax(16.6666666667%, auto));margin-bottom:0}:host(.columns-sm-7){display:grid;grid-template-columns:repeat(auto-fill, minmax(14.2857142857%, auto));margin-bottom:0}:host(.columns-sm-8){display:grid;grid-template-columns:repeat(auto-fill, minmax(12.5%, auto));margin-bottom:0}:host(.columns-sm-9){display:grid;grid-template-columns:repeat(auto-fill, minmax(11.1111111111%, auto));margin-bottom:0}:host(.columns-sm-10){display:grid;grid-template-columns:repeat(auto-fill, minmax(10%, auto));margin-bottom:0}:host(.columns-sm-11){display:grid;grid-template-columns:repeat(auto-fill, minmax(9.0909090909%, auto));margin-bottom:0}:host(.columns-sm-12){display:grid;grid-template-columns:repeat(auto-fill, minmax(8.3333333333%, auto));margin-bottom:0}:host(.columns-sm-13){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.6923076923%, auto));margin-bottom:0}:host(.columns-sm-14){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.1428571429%, auto));margin-bottom:0}:host(.columns-sm-15){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.6666666667%, auto));margin-bottom:0}:host(.columns-sm-16){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.25%, auto));margin-bottom:0}:host(.offset-left-sm-0){padding-left:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-left-sm-1){padding-left:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-left-sm-2){padding-left:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-left-sm-3){padding-left:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-left-sm-4){padding-left:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-left-sm-5){padding-left:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-right-sm-0){padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-right-sm-1){padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-right-sm-2){padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-right-sm-3){padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-right-sm-4){padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-right-sm-5){padding-right:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-sm-0){padding-left:calc(((100% + 8.33px) / 12) * 0);padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-sm-1){padding-left:calc(((100% + 8.33px) / 12) * 1);padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-sm-2){padding-left:calc(((100% + 8.33px) / 12) * 2);padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-sm-3){padding-left:calc(((100% + 8.33px) / 12) * 3);padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-sm-4){padding-left:calc(((100% + 8.33px) / 12) * 4);padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-sm-5){padding-left:calc(((100% + 8.33px) / 12) * 5);padding-right:calc(((100% + 8.33px) / 12) * 5)}:host{margin-bottom:calc(-1 * var(--ku4-grid-row-gutter-sm, 10px))}:host::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-sm, 10px)}:host ::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-sm, 10px)}}@media only screen and (min-width: 992px){:host(.columns-md-1){display:grid;grid-template-columns:repeat(auto-fill, minmax(100%, auto));margin-bottom:0}:host(.columns-md-2){display:grid;grid-template-columns:repeat(auto-fill, minmax(50%, auto));margin-bottom:0}:host(.columns-md-3){display:grid;grid-template-columns:repeat(auto-fill, minmax(33.3333333333%, auto));margin-bottom:0}:host(.columns-md-4){display:grid;grid-template-columns:repeat(auto-fill, minmax(25%, auto));margin-bottom:0}:host(.columns-md-5){display:grid;grid-template-columns:repeat(auto-fill, minmax(20%, auto));margin-bottom:0}:host(.columns-md-6){display:grid;grid-template-columns:repeat(auto-fill, minmax(16.6666666667%, auto));margin-bottom:0}:host(.columns-md-7){display:grid;grid-template-columns:repeat(auto-fill, minmax(14.2857142857%, auto));margin-bottom:0}:host(.columns-md-8){display:grid;grid-template-columns:repeat(auto-fill, minmax(12.5%, auto));margin-bottom:0}:host(.columns-md-9){display:grid;grid-template-columns:repeat(auto-fill, minmax(11.1111111111%, auto));margin-bottom:0}:host(.columns-md-10){display:grid;grid-template-columns:repeat(auto-fill, minmax(10%, auto));margin-bottom:0}:host(.columns-md-11){display:grid;grid-template-columns:repeat(auto-fill, minmax(9.0909090909%, auto));margin-bottom:0}:host(.columns-md-12){display:grid;grid-template-columns:repeat(auto-fill, minmax(8.3333333333%, auto));margin-bottom:0}:host(.columns-md-13){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.6923076923%, auto));margin-bottom:0}:host(.columns-md-14){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.1428571429%, auto));margin-bottom:0}:host(.columns-md-15){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.6666666667%, auto));margin-bottom:0}:host(.columns-md-16){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.25%, auto));margin-bottom:0}:host(.offset-left-md-0){padding-left:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-left-md-1){padding-left:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-left-md-2){padding-left:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-left-md-3){padding-left:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-left-md-4){padding-left:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-left-md-5){padding-left:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-right-md-0){padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-right-md-1){padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-right-md-2){padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-right-md-3){padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-right-md-4){padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-right-md-5){padding-right:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-md-0){padding-left:calc(((100% + 8.33px) / 12) * 0);padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-md-1){padding-left:calc(((100% + 8.33px) / 12) * 1);padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-md-2){padding-left:calc(((100% + 8.33px) / 12) * 2);padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-md-3){padding-left:calc(((100% + 8.33px) / 12) * 3);padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-md-4){padding-left:calc(((100% + 8.33px) / 12) * 4);padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-md-5){padding-left:calc(((100% + 8.33px) / 12) * 5);padding-right:calc(((100% + 8.33px) / 12) * 5)}:host{margin-bottom:calc(-1 * var(--ku4-grid-row-gutter-md, 12px))}:host::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-md, 12px)}:host ::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-md, 12px)}}@media only screen and (min-width: 1200px){:host(.columns-lg-1){display:grid;grid-template-columns:repeat(auto-fill, minmax(100%, auto));margin-bottom:0}:host(.columns-lg-2){display:grid;grid-template-columns:repeat(auto-fill, minmax(50%, auto));margin-bottom:0}:host(.columns-lg-3){display:grid;grid-template-columns:repeat(auto-fill, minmax(33.3333333333%, auto));margin-bottom:0}:host(.columns-lg-4){display:grid;grid-template-columns:repeat(auto-fill, minmax(25%, auto));margin-bottom:0}:host(.columns-lg-5){display:grid;grid-template-columns:repeat(auto-fill, minmax(20%, auto));margin-bottom:0}:host(.columns-lg-6){display:grid;grid-template-columns:repeat(auto-fill, minmax(16.6666666667%, auto));margin-bottom:0}:host(.columns-lg-7){display:grid;grid-template-columns:repeat(auto-fill, minmax(14.2857142857%, auto));margin-bottom:0}:host(.columns-lg-8){display:grid;grid-template-columns:repeat(auto-fill, minmax(12.5%, auto));margin-bottom:0}:host(.columns-lg-9){display:grid;grid-template-columns:repeat(auto-fill, minmax(11.1111111111%, auto));margin-bottom:0}:host(.columns-lg-10){display:grid;grid-template-columns:repeat(auto-fill, minmax(10%, auto));margin-bottom:0}:host(.columns-lg-11){display:grid;grid-template-columns:repeat(auto-fill, minmax(9.0909090909%, auto));margin-bottom:0}:host(.columns-lg-12){display:grid;grid-template-columns:repeat(auto-fill, minmax(8.3333333333%, auto));margin-bottom:0}:host(.columns-lg-13){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.6923076923%, auto));margin-bottom:0}:host(.columns-lg-14){display:grid;grid-template-columns:repeat(auto-fill, minmax(7.1428571429%, auto));margin-bottom:0}:host(.columns-lg-15){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.6666666667%, auto));margin-bottom:0}:host(.columns-lg-16){display:grid;grid-template-columns:repeat(auto-fill, minmax(6.25%, auto));margin-bottom:0}:host(.offset-left-lg-0){padding-left:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-left-lg-1){padding-left:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-left-lg-2){padding-left:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-left-lg-3){padding-left:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-left-lg-4){padding-left:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-left-lg-5){padding-left:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-right-lg-0){padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-right-lg-1){padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-right-lg-2){padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-right-lg-3){padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-right-lg-4){padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-right-lg-5){padding-right:calc(((100% + 8.33px) / 12) * 5)}:host(.offset-lg-0){padding-left:calc(((100% + 8.33px) / 12) * 0);padding-right:calc(((100% + 8.33px) / 12) * 0)}:host(.offset-lg-1){padding-left:calc(((100% + 8.33px) / 12) * 1);padding-right:calc(((100% + 8.33px) / 12) * 1)}:host(.offset-lg-2){padding-left:calc(((100% + 8.33px) / 12) * 2);padding-right:calc(((100% + 8.33px) / 12) * 2)}:host(.offset-lg-3){padding-left:calc(((100% + 8.33px) / 12) * 3);padding-right:calc(((100% + 8.33px) / 12) * 3)}:host(.offset-lg-4){padding-left:calc(((100% + 8.33px) / 12) * 4);padding-right:calc(((100% + 8.33px) / 12) * 4)}:host(.offset-lg-5){padding-left:calc(((100% + 8.33px) / 12) * 5);padding-right:calc(((100% + 8.33px) / 12) * 5)}:host{margin-bottom:calc(-1 * var(--ku4-grid-row-gutter-lg, 16px))}:host::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-lg, 16px)}:host ::slotted(*){margin-bottom:var(--ku4-grid-row-gutter-lg, 16px)}}::slotted(*){margin-left:var(--ku4-grid-column-gutter, 15px);margin-right:var(--ku4-grid-column-gutter, 15px)}";var s=t("ku4_grid",function(){function t(t){o(this,t);this.columnsXs=1;this.offsetLeftXs=0;this.offsetRight=0;this.offsetXs=0}Object.defineProperty(t.prototype,"columnClass",{get:function(){var t=this,o=t.columnsXs,a=t.columnsSm,i=t.columnsMd,l=t.columnsLg;var s=[];if(o&&!Number.isNaN(o)){s.push("columns-xs-"+o)}if(a&&!Number.isNaN(a)){s.push("columns-sm-"+a)}if(i&&!Number.isNaN(i)){s.push("columns-md-"+i)}if(l&&!Number.isNaN(l)){s.push("columns-lg-"+l)}return s.join(" ")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"offsetLeftClass",{get:function(){var t=this,o=t.offsetLeftXs,a=t.offsetLeftSm,i=t.offsetLeftMd,l=t.offsetLeftLg;var s=[];if(o&&!Number.isNaN(o)){s.push("offset-left-xs-"+o)}if(a&&!Number.isNaN(a)){s.push("offset-left-sm-"+a)}if(i&&!Number.isNaN(i)){s.push("offset-left-md-"+i)}if(l&&!Number.isNaN(l)){s.push("offset-left-lg-"+l)}return s.join(" ")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"offsetRightClass",{get:function(){var t=this,o=t.offsetRightXs,a=t.offsetRightSm,i=t.offsetRightMd,l=t.offsetRightLg;var s=[];if(o&&!Number.isNaN(o)){s.push("offset-right-xs-"+o)}if(a&&!Number.isNaN(a)){s.push("offset-right-sm-"+a)}if(i&&!Number.isNaN(i)){s.push("offset-right-md-"+i)}if(l&&!Number.isNaN(l)){s.push("offset-right-lg-"+l)}return s.join(" ")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"offsetClass",{get:function(){var t=this,o=t.offsetXs,a=t.offsetSm,i=t.offsetMd,l=t.offsetLg;var s=[];if(o&&!Number.isNaN(o)){s.push("offset-xs-"+o)}if(a&&!Number.isNaN(a)){s.push("offset-sm-"+a)}if(i&&!Number.isNaN(i)){s.push("offset-md-"+i)}if(l&&!Number.isNaN(l)){s.push("offset-lg-"+l)}return s.join(" ")},enumerable:false,configurable:true});t.prototype.render=function(){var t=this,o=t.columnClass,l=t.offsetClass,s=t.offsetLeftClass,m=t.offsetRightClass;return a(i,{class:o+" "+s+" "+m+" "+l},a("slot",null))};return t}());s.style=l}}}));
@@ -0,0 +1,70 @@
1
+ import { r as registerInstance, h, f as Host, g as getElement } from './index-80439f22.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:var(--ku4-label-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
+ let 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 };
@@ -0,0 +1 @@
1
+ System.register(["./index-79de9846.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:var(--ku4-label-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}}}));
@@ -0,0 +1,321 @@
1
+ import { r as registerInstance, h } from './index-80439f22.js';
2
+ import { a, Y, t } from './index-89916128.js';
3
+
4
+ const ku4MaskCss = ":host{display:none}";
5
+
6
+ let 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.handleBlur = this.handleBlur.bind(this);
51
+ this.handleKeyDown = this.handleKeyDown.bind(this);
52
+ this.handleInput = this.handleInput.bind(this);
53
+ this.handleTouchStart = this.handleTouchStart.bind(this);
54
+ this.init();
55
+ }
56
+ init() {
57
+ this.chars = this.char && new RegExp(this.char);
58
+ this.banned = this.ban && new RegExp(this.ban);
59
+ const pattern = this.pattern.replace(/[\s\n]/gm, '');
60
+ this.patterns = pattern.substr(1).split(pattern[0]).map((v) => {
61
+ try {
62
+ return v && new RegExp(v) || null;
63
+ }
64
+ catch (e) {
65
+ /**
66
+ * TODO: Remove try/catch when Safari supports lookbehinds.
67
+ * Safari does not support lookbehinds and blows up everything
68
+ * because of this. This try catch allows all masking behaviour
69
+ * to continue to work except for patterns that include lookbehinds.
70
+ */
71
+ }
72
+ });
73
+ this.charIndexes = this.template.split('')
74
+ .reduce((acc, char, i) => {
75
+ if (this.chars.test(char)) {
76
+ acc.push(i);
77
+ }
78
+ return acc;
79
+ }, []);
80
+ this.reverseCharIndexes = [...this.charIndexes].reverse();
81
+ return this;
82
+ }
83
+ templateHandler(newTemplate, oldTemplate) {
84
+ const { input, previousCharIndex, previousValue, currentValue, value, char } = this;
85
+ const previousLength = a.unmask(previousValue, oldTemplate, char).length;
86
+ const currentLength = a.unmask(currentValue, oldTemplate, char).length;
87
+ const nextIndex = previousLength < currentLength ? previousCharIndex + 1 : previousCharIndex;
88
+ this.init().value = a.mask(a.unmask(value, oldTemplate, char), newTemplate, char);
89
+ input.setSelectionRange(nextIndex, nextIndex);
90
+ }
91
+ charHandler(newChar, oldChar) {
92
+ const { value, template } = this;
93
+ this.init().value = a.mask(a.unmask(value, template, oldChar), template, newChar);
94
+ }
95
+ get previousCharIndex() {
96
+ return this.reverseCharIndexes.find(i => this.selectionStart > i) || this.charIndexes[0];
97
+ }
98
+ get value() {
99
+ return this.currentValue;
100
+ }
101
+ set value(value) {
102
+ const { chars, hidden, input } = this;
103
+ const indexOfChar = value.search(chars);
104
+ this.currentValue = value;
105
+ input.value = hidden && indexOfChar > -1 ? value.substring(0, indexOfChar) : value;
106
+ }
107
+ handleTouchStart() {
108
+ this.touchStart = true;
109
+ }
110
+ handleFocus() {
111
+ // Abort if the browser is IE11
112
+ // @ts-ignore - Leveraging documentMode to determine unsupported browser
113
+ if (window.document.documentMode) {
114
+ return;
115
+ }
116
+ const { input, template, char, chars, touchStart } = this;
117
+ this.value = a.mask(a.unmask(this.value, template, char), template, char);
118
+ Y(0).then(() => {
119
+ const index = input.value.search(chars);
120
+ const selection = index < 0 ? input.value.length : index;
121
+ this.input.setSelectionRange(index < 0 && !touchStart ? 0 : selection, selection);
122
+ this.touchStart = false;
123
+ });
124
+ }
125
+ handleBlur() {
126
+ const { template, char } = this;
127
+ if (t.isEmpty(a.unmask(this.value, template, char))) {
128
+ this.value = '';
129
+ }
130
+ }
131
+ handleKeyDown(e) {
132
+ // Abort if the browser is IE11
133
+ // @ts-ignore - Leveraging documentMode to determine unsupported browser
134
+ if (window.document.documentMode) {
135
+ return;
136
+ }
137
+ const { banned, hidden, template, char } = this;
138
+ if (e.key &&
139
+ e.key.length === 1 &&
140
+ banned &&
141
+ (banned.test(e.key) &&
142
+ !(e.altKey || e.ctrlKey || e.metaKey))) {
143
+ e.preventDefault();
144
+ }
145
+ this.previousValue = hidden ? a.mask(a.unmask(e.target.value, template, char), template, char) : e.target.value;
146
+ this.selectionStart = e.target.selectionStart;
147
+ this.selectionEnd = e.target.selectionEnd;
148
+ }
149
+ handleInput(e) {
150
+ // Abort if the browser is IE11
151
+ // @ts-ignore - Leveraging documentMode to determine unsupported browser
152
+ if (window.document.documentMode) {
153
+ return;
154
+ }
155
+ const { input, template, char, chars, previousValue, banned, selectionStart, selectionEnd, previousCharIndex, patterns, charIndexes, reverseCharIndexes } = this;
156
+ if (!chars.test(this.previousValue) &&
157
+ e.inputType !== 'insertFromPaste' &&
158
+ e.inputType !== 'deleteContentBackward' &&
159
+ e.inputType !== 'deleteContentForward' &&
160
+ e.inputType !== 'deleteByCut' &&
161
+ selectionStart === selectionEnd) {
162
+ this.value = previousValue;
163
+ return;
164
+ }
165
+ if (e.inputType === 'insertFromPaste') {
166
+ try {
167
+ navigator.clipboard.readText()
168
+ .then((rawData) => {
169
+ const data = rawData.replace(new RegExp(banned, 'g'), '');
170
+ if (t.isNullOrEmpty(data)) {
171
+ this.value = previousValue;
172
+ input.setSelectionRange(selectionStart, selectionStart);
173
+ return;
174
+ }
175
+ if (!banned || !banned.test(data)) {
176
+ let nextValue = previousValue;
177
+ if (selectionStart < selectionEnd) {
178
+ const startValue = reverseCharIndexes.find(v => v <= selectionStart - 1);
179
+ const endValue = reverseCharIndexes.find(v => v <= selectionEnd - 1);
180
+ const startInsertIndex = charIndexes.findIndex(v => v === startValue);
181
+ const endInsertIndex = charIndexes.findIndex(v => v === endValue);
182
+ const unmasked = a.unmask(previousValue, template, char);
183
+ const newValue = unmasked.substring(0, startInsertIndex + 1) + unmasked.substring(endInsertIndex + 1, previousValue.length);
184
+ nextValue = a.mask(newValue, template, char);
185
+ }
186
+ const charIndex = charIndexes.find(v => v >= selectionStart);
187
+ const insertIndex = charIndexes.findIndex(v => v === charIndex);
188
+ const unmasked = a.unmask(nextValue, template, char);
189
+ nextValue = unmasked.substring(0, insertIndex) + data + unmasked.substring(insertIndex, previousValue.length);
190
+ this.value = a.mask(nextValue, template, char);
191
+ const index = charIndexes[insertIndex + data.length] || this.value.search(chars) || this.value.length;
192
+ input.setSelectionRange(index, index);
193
+ }
194
+ });
195
+ this.value = previousValue;
196
+ input.setSelectionRange(selectionStart, selectionStart);
197
+ return;
198
+ }
199
+ catch (e) {
200
+ this.value = previousValue;
201
+ input.setSelectionRange(selectionStart, selectionStart);
202
+ return;
203
+ }
204
+ }
205
+ if (e.inputType === 'deleteContentBackward' || e.inputType === 'deleteByCut') {
206
+ const startValue = reverseCharIndexes.find(v => v <= selectionStart - 1);
207
+ const endValue = reverseCharIndexes.find(v => v <= selectionEnd - 1);
208
+ const startInsertIndex = charIndexes.findIndex(v => v === startValue);
209
+ const endInsertIndex = charIndexes.findIndex(v => v === endValue);
210
+ const unmasked = a.unmask(previousValue, template, char);
211
+ if (startInsertIndex < endInsertIndex) {
212
+ const newValue = unmasked.substring(0, startInsertIndex + 1) + unmasked.substring(endInsertIndex + 1, previousValue.length);
213
+ this.value = a.mask(newValue, template, char);
214
+ newValue && startInsertIndex > -1
215
+ ? input.setSelectionRange(previousCharIndex + 1, previousCharIndex + 1)
216
+ : input.setSelectionRange(previousCharIndex, previousCharIndex);
217
+ }
218
+ else {
219
+ const newValue = unmasked.substring(0, startInsertIndex) + unmasked.substring(endInsertIndex + 1, previousValue.length);
220
+ this.value = a.mask(newValue, template, char);
221
+ input.setSelectionRange(previousCharIndex, previousCharIndex);
222
+ }
223
+ return;
224
+ }
225
+ if (e.inputType === 'deleteContentForward') {
226
+ const charIndex = charIndexes.find(v => v >= selectionStart);
227
+ const insertIndex = charIndexes.findIndex(v => v === charIndex);
228
+ const unmasked = a.unmask(previousValue, template, char);
229
+ const newValue = unmasked.substring(0, insertIndex) + unmasked.substring(insertIndex + 1, previousValue.length);
230
+ this.value = a.mask(newValue, template, char);
231
+ input.setSelectionRange(selectionStart, selectionStart);
232
+ return;
233
+ }
234
+ //Abort if auxiliary key is pressed.
235
+ if (e.altKey || e.ctrlKey || e.metaKey) {
236
+ return;
237
+ }
238
+ //Abort if disallowed character
239
+ if (!e.data) {
240
+ this.value = previousValue;
241
+ input.setSelectionRange(selectionStart, selectionStart);
242
+ return;
243
+ }
244
+ //Append
245
+ if (chars.test(previousValue.charAt(selectionStart)) ||
246
+ selectionStart === template.length) {
247
+ const unmasked = a.unmask(previousValue, template, char);
248
+ this.value = a.mask(unmasked + e.data, template, char);
249
+ const charIndex = this.value.search(chars);
250
+ const index = charIndex < 0 ? template.length : charIndex;
251
+ input.setSelectionRange(index, index);
252
+ const patternIndex = charIndexes.findIndex(v => v >= index);
253
+ const validationIndex = patternIndex < 0 ? charIndexes.length - 1 : patternIndex - 1;
254
+ this.validate(e.data, patterns[validationIndex]);
255
+ }
256
+ //Insert
257
+ else {
258
+ let nextValue = previousValue;
259
+ if (selectionStart < selectionEnd) {
260
+ const startValue = reverseCharIndexes.find(v => v <= selectionStart - 1);
261
+ const endValue = reverseCharIndexes.find(v => v <= selectionEnd - 1);
262
+ const startInsertIndex = charIndexes.findIndex(v => v === startValue);
263
+ const endInsertIndex = charIndexes.findIndex(v => v === endValue);
264
+ const unmasked = a.unmask(previousValue, template, char);
265
+ const newValue = unmasked.substring(0, startInsertIndex + 1) + unmasked.substring(endInsertIndex + 1, previousValue.length);
266
+ nextValue = a.mask(newValue, template, char);
267
+ }
268
+ const charIndex = charIndexes.find(v => v >= selectionStart);
269
+ const insertIndex = charIndexes.findIndex(v => v === charIndex);
270
+ const unmasked = a.unmask(nextValue, template, char);
271
+ nextValue = unmasked.substring(0, insertIndex) + e.data + unmasked.substring(insertIndex, previousValue.length);
272
+ const index = charIndexes.find(v => v > charIndex);
273
+ this.value = a.mask(nextValue, template, char);
274
+ input.setSelectionRange(index, index);
275
+ const patternIndex = charIndexes.findIndex(v => v >= index);
276
+ const validationIndex = patternIndex < 0 ? charIndexes.length - 1 : patternIndex - 1;
277
+ this.validate(e.data, patterns[validationIndex]);
278
+ }
279
+ }
280
+ validate(data, pattern) {
281
+ const { previousValue, input, value, selectionStart } = this;
282
+ if (t.exists(pattern) &&
283
+ !(pattern.test(data) || (/\(\?[!<=]/.test(pattern.toString()) && pattern.test(value)))) {
284
+ this.value = previousValue;
285
+ input.setSelectionRange(selectionStart, selectionStart);
286
+ }
287
+ }
288
+ componentWillLoad() {
289
+ this.input = document.getElementById(this.for);
290
+ if (t.exists(this.input)) {
291
+ this.input.addEventListener('focus', this.handleFocus);
292
+ this.input.addEventListener('blur', this.handleBlur);
293
+ this.input.addEventListener('keydown', this.handleKeyDown);
294
+ this.input.addEventListener('input', this.handleInput);
295
+ this.input.addEventListener('touchstart', this.handleTouchStart, { passive: true });
296
+ }
297
+ else {
298
+ // eslint-disable-next-line no-console
299
+ console.error('ku4-mask must have a valid `for` referencing target field `id`.');
300
+ }
301
+ }
302
+ disconnectedCallback() {
303
+ if (this.input && this.input.removeEventListener) {
304
+ this.input.removeEventListener('focus', this.handleFocus);
305
+ this.input.removeEventListener('blur', this.handleBlur);
306
+ this.input.removeEventListener('keydown', this.handleKeyDown);
307
+ this.input.removeEventListener('input', this.handleInput);
308
+ this.input.removeEventListener('touchstart', this.handleTouchStart);
309
+ }
310
+ }
311
+ render() {
312
+ return h("slot", null);
313
+ }
314
+ static get watchers() { return {
315
+ "template": ["templateHandler"],
316
+ "char": ["charHandler"]
317
+ }; }
318
+ };
319
+ Ku4Mask.style = ku4MaskCss;
320
+
321
+ export { Ku4Mask as ku4_mask };
@@ -0,0 +1 @@
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-79de9846.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.handleBlur=this.handleBlur.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 d=r.unmask(u,e,o).length;var c=l<d?a+1:a;this.init().value=r.mask(r.unmask(h,e,o),t,o);i.setSelectionRange(c,c)};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.handleBlur=function(){var t=this,e=t.template,n=t.char;if(a.isEmpty(r.unmask(this.value,e,n))){this.value=""}};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,d=n.selectionStart,c=n.selectionEnd,v=n.previousCharIndex,p=n.patterns,f=n.charIndexes,g=n.reverseCharIndexes;if(!h.test(this.previousValue)&&t.inputType!=="insertFromPaste"&&t.inputType!=="deleteContentBackward"&&t.inputType!=="deleteContentForward"&&t.inputType!=="deleteByCut"&&d===c){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(d,d);return}if(!l||!l.test(n)){var v=o;if(d<c){var p=g.find((function(t){return t<=d-1}));var m=g.find((function(t){return t<=c-1}));var y=f.findIndex((function(t){return t===p}));var b=f.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=f.find((function(t){return t>=d}));var I=f.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=f[I+n.length]||e.value.search(h)||e.value.length;i.setSelectionRange(E,E)}}));this.value=o;i.setSelectionRange(d,d);return}catch(t){this.value=o;i.setSelectionRange(d,d);return}}if(t.inputType==="deleteContentBackward"||t.inputType==="deleteByCut"){var m=g.find((function(t){return t<=d-1}));var y=g.find((function(t){return t<=c-1}));var b=f.findIndex((function(t){return t===m}));var k=f.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=f.find((function(t){return t>=d}));var w=f.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(d,d);return}if(t.altKey||t.ctrlKey||t.metaKey){return}if(!t.data){this.value=o;i.setSelectionRange(d,d);return}if(h.test(o.charAt(d))||d===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=f.findIndex((function(t){return t>=R}));var T=C<0?f.length-1:C-1;this.validate(t.data,p[T])}else{var L=o;if(d<c){var K=g.find((function(t){return t<=d-1}));var B=g.find((function(t){return t<=c-1}));var b=f.findIndex((function(t){return t===K}));var k=f.findIndex((function(t){return t===B}));var V=r.unmask(o,s,u);var S=V.substring(0,b+1)+V.substring(k+1,o.length);L=r.mask(S,s,u)}var F=f.find((function(t){return t>=d}));var w=f.findIndex((function(t){return t===F}));var x=r.unmask(L,s,u);L=x.substring(0,w)+t.data+x.substring(w,o.length);var _=f.find((function(t){return t>F}));this.value=r.mask(L,s,u);i.setSelectionRange(_,_);var C=f.findIndex((function(t){return t>=_}));var T=C<0?f.length-1:C-1;this.validate(t.data,p[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("blur",this.handleBlur);this.input.addEventListener("keydown",this.handleKeyDown);this.input.addEventListener("input",this.handleInput);this.input.addEventListener("touchstart",this.handleTouchStart,{passive:true})}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("blur",this.handleBlur);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}}}));