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 @@
1
+ import{r as o,c as t,h as a,H as r,g as e}from"./p-fbb5312d.js";import{L as i,Y as n,c as s}from"./p-c1068ffa.js";import{S as u}from"./p-3d59c1fe.js";let c=class{constructor(a){o(this,a),this.didSlide=t(this,"slide",7),this.swipeTolerance=44,this.auto=!1,this.noSwipe=!1,this.delay=8e3,this.interval=new i(this.delay).onInterval((()=>{this.host.isConnected?this.display("next"):this.disconnectedCallback()})),this.handleMouse=this.handleMouse.bind(this)}async next(){return this.hasSlides?(await this.pause(),this.display("next")):this}async previous(){return this.hasSlides?(await this.pause(),this.display("prev")):this}async slideTo(o){if(await this.pause(),!(o===this.currentSlideNumber||o<1||this.rolodex.length<o)){const t=o-this.currentSlideNumber,a=t<0?"prev":"next";let r=Math.abs(t);for(;0<--r;)await n(10).then((()=>this.rolodex[a]));this.display(a)}}async pause(){this.interval.clear()}async play(){const{auto:o,interval:t}=this;o&&t.start()}get hasSlides(){return this.rolodex&&this.rolodex.length>1}get currentSlideNumber(){const{rolodex:o}=this;return o&&(o.isEmpty?0:o.index+1)}display(o){const{previous:t,current:a}=this.slideState,r=this.rolodex[o];return t&&t.deactivate(),a.slideOut(o),r.slideIn(o),this.slideState={previous:a,current:r},this.didSlide.emit(this.currentSlideNumber),this}handleMouse(o){this.host.contains(o.relatedTarget)||this.play()}componentWillLoad(){let o;this.noSwipe||(this.swipe=new u(this.host,this.swipeTolerance).onLeft((()=>this.next())).onRight((()=>this.previous())));try{o=this.host.querySelectorAll(":scope > ku4-carousel-slide")}catch(t){o=[].slice.call(this.host.querySelectorAll("ku4-carousel-slide")).reduce(((o,t)=>(t.parentNode===this.host&&o.push(t),o)),[])}this.rolodex=new s(o),this.rolodex.current&&this.rolodex.current.activate&&this.rolodex.current.activate(),this.slideState={current:this.rolodex.current},this.auto&&(this.host.addEventListener("mouseout",this.handleMouse),this.play())}connectedCallback(){this.swipe&&this.swipe.destroy(),this.host.removeEventListener("mouseout",this.handleMouse),this.interval.clear()}disconnectedCallback(){this.swipe&&this.swipe.destroy(),this.host.removeEventListener("mouseout",this.handleMouse),this.interval.clear()}render(){const{hasSlides:o,currentSlideNumber:t=1}=this;return a(r,{"aria-roledescription":"carousel",current:t},o&&a("section",{class:"controls"},a("button",{type:"button",class:"prev",onClick:()=>this.previous(),"aria-label":"previous slide"}),a("button",{type:"button",class:"next",onClick:()=>this.next(),"aria-label":"next slide"})),a("section",{class:"slide-container","aria-live":"polite"},a("slot",null)),o&&a("section",{class:"pages"},a("span",{class:"pages-text"},`${t} of ${this.rolodex.length}`)))}get host(){return e(this)}};c.style="@-webkit-keyframes ku4-carousel-enter-left{0%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@keyframes ku4-carousel-enter-left{0%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@-webkit-keyframes ku4-carousel-enter-right{0%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@keyframes ku4-carousel-enter-right{0%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@-webkit-keyframes ku4-carousel-exit-left{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}}@keyframes ku4-carousel-exit-left{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}}@-webkit-keyframes ku4-carousel-exit-right{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}}@keyframes ku4-carousel-exit-right{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;overflow:hidden;background-color:var(--ku4-carousel-background-color, #fff)}.slide-container{position:relative;width:100%;height:100%;overflow:hidden}.controls .next,.controls .prev{position:absolute;display:var(--ku4-carousel-controls-display, block);top:var(--ku4-carousel-controls-top, 0);border:var(--ku4-carousel-controls-border, none);background-color:var(--ku4-carousel-controls-background-color, #fff);font-family:var(--ku4-carousel-controls-font-family, Helvetica, Arial, sans-serif);font-weight:var(--ku4-carousel-controls-font-weight, 400);font-size:var(--ku4-carousel-controls-font-size, 8px);line-height:var(--ku4-carousel-controls-line-height, 12px);opacity:var(--ku4-carousel-controls-opacity, 0.2);z-index:var(--ku4-carousel-controls-z-index, 2)}.controls .next:focus,.controls .prev:focus{background-color:var(--ku4-carousel-controls-focus-background-color, transparent);outline:var(--ku4-carousel-controls-focus-outline, none);opacity:var(--ku4-carousel-controls-focus-opacity, 0.2)}.controls .next:hover,.controls .prev:hover{background-color:var(--ku4-carousel-controls-hover-background-color, transparent);opacity:var(--ku4-carousel-controls-hover-opacity, 1)}.controls .next{right:0;width:var(--ku4-carousel-controls-next-width, 40px);height:var(--ku4-carousel-controls-next-height, 100%);background-image:var(--ku4-carousel-controls-next-background-image);background-repeat:var(--ku4-carousel-controls-next-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-background-size, 100% 100%)}.controls .next:focus{background-image:var(--ku4-carousel-controls-next-focus-background-image);background-repeat:var(--ku4-carousel-controls-next-focus-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-focus-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-focus-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-focus-background-size, 100% 100%)}.controls .next:hover{background-image:var(--ku4-carousel-controls-next-hover-background-image);background-repeat:var(--ku4-carousel-controls-next-hover-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-hover-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-hover-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-hover-background-size, 100% 100%)}.controls .prev{left:0;width:var(--ku4-carousel-controls-next-width, 40px);height:var(--ku4-carousel-controls-next-height, 100%);background-image:var(--ku4-carousel-controls-previous-background-image);background-repeat:var(--ku4-carousel-controls-previous-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-background-size, 100% 100%)}.controls .prev:focus{background-image:var(--ku4-carousel-controls-previous-focus-background-image);background-repeat:var(--ku4-carousel-controls-previous-focus-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-focus-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-focus-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-focus-background-size, 100% 100%)}.controls .prev:hover{background-image:var(--ku4-carousel-controls-previous-hover-background-image);background-repeat:var(--ku4-carousel-controls-previous-hover-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-hover-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-hover-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-hover-background-size, 100% 100%)}.pages{position:absolute;display:var(--ku4-carousel-pages-display, block);top:var(--ku4-carousel-pages-top, auto);bottom:var(--ku4-carousel-pages-bottom, 4px);width:var(--ku4-carousel-pages-width, auto);height:var(--ku4-carousel-pages-height, 20px);background-color:var(--ku4-carousel-pages-background-color, transparent);opacity:var(--ku4-carousel-pages-opacity, 0.5);text-align:center;z-index:3}.pages-text{display:inline-block;padding:var(--ku4-carousel-pages-text-padding, 4px);font-family:var(--ku4-carousel-pages-text-font-family, Helvetica, Arial, sans-serif);font-weight:var(--ku4-carousel-pages-text-font-weight, 600);font-size:var(--ku4-carousel-pages-text-font-size, 14px);line-height:var(--ku4-carousel-pages-text-line-height, 16px);color:var(--ku4-carousel-pages-text-color, #aaa)}::slotted(*){position:absolute;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;top:0;left:-100%;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(.inactive){position:absolute;height:100%;left:0}::slotted(.inactive.prev){-webkit-animation-name:var(--ku4-carousel-animation-inactive-previous-name, ku4-carousel-exit-right);animation-name:var(--ku4-carousel-animation-inactive-previous-name, ku4-carousel-exit-right);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function);animation-timing-function:var(--ku4-carousel-animation-timing-function);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.inactive.next){-webkit-animation-name:var(--ku4-carousel-animation-inactive-next-name, ku4-carousel-exit-left);animation-name:var(--ku4-carousel-animation-inactive-next-name, ku4-carousel-exit-left);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function);animation-timing-function:var(--ku4-carousel-animation-timing-function);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.active){position:relative;top:0;left:0;width:auto;height:100%;z-index:1}::slotted(.active.prev){-webkit-animation-name:var(--ku4-carousel-animation-active-previous-name, ku4-carousel-enter-left);animation-name:var(--ku4-carousel-animation-active-previous-name, ku4-carousel-enter-left);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.active.next){-webkit-animation-name:var(--ku4-carousel-animation-active-next-name, ku4-carousel-enter-right);animation-name:var(--ku4-carousel-animation-active-next-name, ku4-carousel-enter-right);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (hover: hover){.controls:hover{background-color:var(--ku4-carousel-controls-focus-background-color, #fff)}}";export{c as ku4_carousel}
@@ -0,0 +1,388 @@
1
+ /*
2
+ Stencil Client Platform v2.13.0 | MIT Licensed | https://stenciljs.com
3
+ */
4
+ /**
5
+ * @license
6
+ * Copyright Google Inc. All Rights Reserved.
7
+ *
8
+ * Use of this source code is governed by an MIT-style license that can be
9
+ * found in the LICENSE file at https://angular.io/license
10
+ *
11
+ * This file is a port of shadowCSS from webcomponents.js to TypeScript.
12
+ * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
13
+ * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
14
+ */
15
+ const safeSelector = (selector) => {
16
+ const placeholders = [];
17
+ let index = 0;
18
+ let content;
19
+ // Replaces attribute selectors with placeholders.
20
+ // The WS in [attr="va lue"] would otherwise be interpreted as a selector separator.
21
+ selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
22
+ const replaceBy = `__ph-${index}__`;
23
+ placeholders.push(keep);
24
+ index++;
25
+ return replaceBy;
26
+ });
27
+ // Replaces the expression in `:nth-child(2n + 1)` with a placeholder.
28
+ // WS and "+" would otherwise be interpreted as selector separators.
29
+ content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
30
+ const replaceBy = `__ph-${index}__`;
31
+ placeholders.push(exp);
32
+ index++;
33
+ return pseudo + replaceBy;
34
+ });
35
+ const ss = {
36
+ content,
37
+ placeholders,
38
+ };
39
+ return ss;
40
+ };
41
+ const restoreSafeSelector = (placeholders, content) => {
42
+ return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
43
+ };
44
+ const _polyfillHost = '-shadowcsshost';
45
+ const _polyfillSlotted = '-shadowcssslotted';
46
+ // note: :host-context pre-processed to -shadowcsshostcontext.
47
+ const _polyfillHostContext = '-shadowcsscontext';
48
+ const _parenSuffix = ')(?:\\((' + '(?:\\([^)(]*\\)|[^)(]*)+?' + ')\\))?([^,{]*)';
49
+ const _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');
50
+ const _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');
51
+ const _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');
52
+ const _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';
53
+ const _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
54
+ const _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
55
+ const _selectorReSuffix = '([>\\s~+[.,{:][\\s\\S]*)?$';
56
+ const _polyfillHostRe = /-shadowcsshost/gim;
57
+ const _colonHostRe = /:host/gim;
58
+ const _colonSlottedRe = /::slotted/gim;
59
+ const _colonHostContextRe = /:host-context/gim;
60
+ const _commentRe = /\/\*\s*[\s\S]*?\*\//g;
61
+ const stripComments = (input) => {
62
+ return input.replace(_commentRe, '');
63
+ };
64
+ const _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
65
+ const extractCommentsWithHash = (input) => {
66
+ return input.match(_commentWithHashRe) || [];
67
+ };
68
+ const _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
69
+ const _curlyRe = /([{}])/g;
70
+ const _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
71
+ const OPEN_CURLY = '{';
72
+ const CLOSE_CURLY = '}';
73
+ const BLOCK_PLACEHOLDER = '%BLOCK%';
74
+ const processRules = (input, ruleCallback) => {
75
+ const inputWithEscapedBlocks = escapeBlocks(input);
76
+ let nextBlockIndex = 0;
77
+ return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
78
+ const selector = m[2];
79
+ let content = '';
80
+ let suffix = m[4];
81
+ let contentPrefix = '';
82
+ if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {
83
+ content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
84
+ suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
85
+ contentPrefix = '{';
86
+ }
87
+ const cssRule = {
88
+ selector,
89
+ content,
90
+ };
91
+ const rule = ruleCallback(cssRule);
92
+ return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
93
+ });
94
+ };
95
+ const escapeBlocks = (input) => {
96
+ const inputParts = input.split(_curlyRe);
97
+ const resultParts = [];
98
+ const escapedBlocks = [];
99
+ let bracketCount = 0;
100
+ let currentBlockParts = [];
101
+ for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
102
+ const part = inputParts[partIndex];
103
+ if (part === CLOSE_CURLY) {
104
+ bracketCount--;
105
+ }
106
+ if (bracketCount > 0) {
107
+ currentBlockParts.push(part);
108
+ }
109
+ else {
110
+ if (currentBlockParts.length > 0) {
111
+ escapedBlocks.push(currentBlockParts.join(''));
112
+ resultParts.push(BLOCK_PLACEHOLDER);
113
+ currentBlockParts = [];
114
+ }
115
+ resultParts.push(part);
116
+ }
117
+ if (part === OPEN_CURLY) {
118
+ bracketCount++;
119
+ }
120
+ }
121
+ if (currentBlockParts.length > 0) {
122
+ escapedBlocks.push(currentBlockParts.join(''));
123
+ resultParts.push(BLOCK_PLACEHOLDER);
124
+ }
125
+ const strEscapedBlocks = {
126
+ escapedString: resultParts.join(''),
127
+ blocks: escapedBlocks,
128
+ };
129
+ return strEscapedBlocks;
130
+ };
131
+ const insertPolyfillHostInCssText = (selector) => {
132
+ selector = selector
133
+ .replace(_colonHostContextRe, _polyfillHostContext)
134
+ .replace(_colonHostRe, _polyfillHost)
135
+ .replace(_colonSlottedRe, _polyfillSlotted);
136
+ return selector;
137
+ };
138
+ const convertColonRule = (cssText, regExp, partReplacer) => {
139
+ // m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule
140
+ return cssText.replace(regExp, (...m) => {
141
+ if (m[2]) {
142
+ const parts = m[2].split(',');
143
+ const r = [];
144
+ for (let i = 0; i < parts.length; i++) {
145
+ const p = parts[i].trim();
146
+ if (!p)
147
+ break;
148
+ r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
149
+ }
150
+ return r.join(',');
151
+ }
152
+ else {
153
+ return _polyfillHostNoCombinator + m[3];
154
+ }
155
+ });
156
+ };
157
+ const colonHostPartReplacer = (host, part, suffix) => {
158
+ return host + part.replace(_polyfillHost, '') + suffix;
159
+ };
160
+ const convertColonHost = (cssText) => {
161
+ return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
162
+ };
163
+ const colonHostContextPartReplacer = (host, part, suffix) => {
164
+ if (part.indexOf(_polyfillHost) > -1) {
165
+ return colonHostPartReplacer(host, part, suffix);
166
+ }
167
+ else {
168
+ return host + part + suffix + ', ' + part + ' ' + host + suffix;
169
+ }
170
+ };
171
+ const convertColonSlotted = (cssText, slotScopeId) => {
172
+ const slotClass = '.' + slotScopeId + ' > ';
173
+ const selectors = [];
174
+ cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
175
+ if (m[2]) {
176
+ const compound = m[2].trim();
177
+ const suffix = m[3];
178
+ const slottedSelector = slotClass + compound + suffix;
179
+ let prefixSelector = '';
180
+ for (let i = m[4] - 1; i >= 0; i--) {
181
+ const char = m[5][i];
182
+ if (char === '}' || char === ',') {
183
+ break;
184
+ }
185
+ prefixSelector = char + prefixSelector;
186
+ }
187
+ const orgSelector = prefixSelector + slottedSelector;
188
+ const addedSelector = `${prefixSelector.trimRight()}${slottedSelector.trim()}`;
189
+ if (orgSelector.trim() !== addedSelector.trim()) {
190
+ const updatedSelector = `${addedSelector}, ${orgSelector}`;
191
+ selectors.push({
192
+ orgSelector,
193
+ updatedSelector,
194
+ });
195
+ }
196
+ return slottedSelector;
197
+ }
198
+ else {
199
+ return _polyfillHostNoCombinator + m[3];
200
+ }
201
+ });
202
+ return {
203
+ selectors,
204
+ cssText,
205
+ };
206
+ };
207
+ const convertColonHostContext = (cssText) => {
208
+ return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
209
+ };
210
+ const convertShadowDOMSelectors = (cssText) => {
211
+ return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);
212
+ };
213
+ const makeScopeMatcher = (scopeSelector) => {
214
+ const lre = /\[/g;
215
+ const rre = /\]/g;
216
+ scopeSelector = scopeSelector.replace(lre, '\\[').replace(rre, '\\]');
217
+ return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');
218
+ };
219
+ const selectorNeedsScoping = (selector, scopeSelector) => {
220
+ const re = makeScopeMatcher(scopeSelector);
221
+ return !re.test(selector);
222
+ };
223
+ const injectScopingSelector = (selector, scopingSelector) => {
224
+ return selector.replace(_selectorPartsRe, (_, before = '', _colonGroup, colon = '', after = '') => {
225
+ return before + scopingSelector + colon + after;
226
+ });
227
+ };
228
+ const applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {
229
+ // In Android browser, the lastIndex is not reset when the regex is used in String.replace()
230
+ _polyfillHostRe.lastIndex = 0;
231
+ if (_polyfillHostRe.test(selector)) {
232
+ const replaceBy = `.${hostSelector}`;
233
+ return selector
234
+ .replace(_polyfillHostNoCombinatorRe, (_, selector) => injectScopingSelector(selector, replaceBy))
235
+ .replace(_polyfillHostRe, replaceBy + ' ');
236
+ }
237
+ return scopeSelector + ' ' + selector;
238
+ };
239
+ const applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {
240
+ const isRe = /\[is=([^\]]*)\]/g;
241
+ scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);
242
+ const className = '.' + scopeSelector;
243
+ const _scopeSelectorPart = (p) => {
244
+ let scopedP = p.trim();
245
+ if (!scopedP) {
246
+ return '';
247
+ }
248
+ if (p.indexOf(_polyfillHostNoCombinator) > -1) {
249
+ scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);
250
+ }
251
+ else {
252
+ // remove :host since it should be unnecessary
253
+ const t = p.replace(_polyfillHostRe, '');
254
+ if (t.length > 0) {
255
+ scopedP = injectScopingSelector(t, className);
256
+ }
257
+ }
258
+ return scopedP;
259
+ };
260
+ const safeContent = safeSelector(selector);
261
+ selector = safeContent.content;
262
+ let scopedSelector = '';
263
+ let startIndex = 0;
264
+ let res;
265
+ const sep = /( |>|\+|~(?!=))\s*/g;
266
+ // If a selector appears before :host it should not be shimmed as it
267
+ // matches on ancestor elements and not on elements in the host's shadow
268
+ // `:host-context(div)` is transformed to
269
+ // `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`
270
+ // the `div` is not part of the component in the 2nd selectors and should not be scoped.
271
+ // Historically `component-tag:host` was matching the component so we also want to preserve
272
+ // this behavior to avoid breaking legacy apps (it should not match).
273
+ // The behavior should be:
274
+ // - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)
275
+ // - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a
276
+ // `:host-context(tag)`)
277
+ const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
278
+ // Only scope parts after the first `-shadowcsshost-no-combinator` when it is present
279
+ let shouldScope = !hasHost;
280
+ while ((res = sep.exec(selector)) !== null) {
281
+ const separator = res[1];
282
+ const part = selector.slice(startIndex, res.index).trim();
283
+ shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
284
+ const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;
285
+ scopedSelector += `${scopedPart} ${separator} `;
286
+ startIndex = sep.lastIndex;
287
+ }
288
+ const part = selector.substring(startIndex);
289
+ shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
290
+ scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
291
+ // replace the placeholders with their original values
292
+ return restoreSafeSelector(safeContent.placeholders, scopedSelector);
293
+ };
294
+ const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
295
+ return selector
296
+ .split(',')
297
+ .map((shallowPart) => {
298
+ if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {
299
+ return shallowPart.trim();
300
+ }
301
+ if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
302
+ return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
303
+ }
304
+ else {
305
+ return shallowPart.trim();
306
+ }
307
+ })
308
+ .join(', ');
309
+ };
310
+ const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
311
+ return processRules(cssText, (rule) => {
312
+ let selector = rule.selector;
313
+ let content = rule.content;
314
+ if (rule.selector[0] !== '@') {
315
+ selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
316
+ }
317
+ else if (rule.selector.startsWith('@media') ||
318
+ rule.selector.startsWith('@supports') ||
319
+ rule.selector.startsWith('@page') ||
320
+ rule.selector.startsWith('@document')) {
321
+ content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
322
+ }
323
+ const cssRule = {
324
+ selector: selector.replace(/\s{2,}/g, ' ').trim(),
325
+ content,
326
+ };
327
+ return cssRule;
328
+ });
329
+ };
330
+ const scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {
331
+ cssText = insertPolyfillHostInCssText(cssText);
332
+ cssText = convertColonHost(cssText);
333
+ cssText = convertColonHostContext(cssText);
334
+ const slotted = convertColonSlotted(cssText, slotScopeId);
335
+ cssText = slotted.cssText;
336
+ cssText = convertShadowDOMSelectors(cssText);
337
+ if (scopeId) {
338
+ cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
339
+ }
340
+ cssText = cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
341
+ cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, ' $1 ');
342
+ return {
343
+ cssText: cssText.trim(),
344
+ slottedSelectors: slotted.selectors,
345
+ };
346
+ };
347
+ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
348
+ const hostScopeId = scopeId + '-h';
349
+ const slotScopeId = scopeId + '-s';
350
+ const commentsWithHash = extractCommentsWithHash(cssText);
351
+ cssText = stripComments(cssText);
352
+ const orgSelectors = [];
353
+ if (commentOriginalSelector) {
354
+ const processCommentedSelector = (rule) => {
355
+ const placeholder = `/*!@___${orgSelectors.length}___*/`;
356
+ const comment = `/*!@${rule.selector}*/`;
357
+ orgSelectors.push({ placeholder, comment });
358
+ rule.selector = placeholder + rule.selector;
359
+ return rule;
360
+ };
361
+ cssText = processRules(cssText, (rule) => {
362
+ if (rule.selector[0] !== '@') {
363
+ return processCommentedSelector(rule);
364
+ }
365
+ else if (rule.selector.startsWith('@media') ||
366
+ rule.selector.startsWith('@supports') ||
367
+ rule.selector.startsWith('@page') ||
368
+ rule.selector.startsWith('@document')) {
369
+ rule.content = processRules(rule.content, processCommentedSelector);
370
+ return rule;
371
+ }
372
+ return rule;
373
+ });
374
+ }
375
+ const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
376
+ cssText = [scoped.cssText, ...commentsWithHash].join('\n');
377
+ if (commentOriginalSelector) {
378
+ orgSelectors.forEach(({ placeholder, comment }) => {
379
+ cssText = cssText.replace(placeholder, comment);
380
+ });
381
+ }
382
+ scoped.slottedSelectors.forEach((slottedSelector) => {
383
+ cssText = cssText.replace(slottedSelector.orgSelector, slottedSelector.updatedSelector);
384
+ });
385
+ return cssText;
386
+ };
387
+
388
+ export { scopeCss };
@@ -0,0 +1,13 @@
1
+ var __spreadArray=this&&this.__spreadArray||function(r,e){for(var t=0,n=e.length,a=r.length;t<n;t++,a++)r[a]=e[t];return r};System.register([],(function(r){"use strict";return{execute:function(){
2
+ /**
3
+ * @license
4
+ * Copyright Google Inc. All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.io/license
8
+ *
9
+ * This file is a port of shadowCSS from webcomponents.js to TypeScript.
10
+ * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
11
+ * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
12
+ */
13
+ var e=function(r){var e=[];var t=0;var n;r=r.replace(/(\[[^\]]*\])/g,(function(r,n){var a="__ph-"+t+"__";e.push(n);t++;return a}));n=r.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(function(r,n,a){var s="__ph-"+t+"__";e.push(a);t++;return n+s}));var a={content:n,placeholders:e};return a};var t=function(r,e){return e.replace(/__ph-(\d+)__/g,(function(e,t){return r[+t]}))};var n="-shadowcsshost";var a="-shadowcssslotted";var s="-shadowcsscontext";var o=")(?:\\(("+"(?:\\([^)(]*\\)|[^)(]*)+?"+")\\))?([^,{]*)";var c=new RegExp("("+n+o,"gim");var i=new RegExp("("+s+o,"gim");var v=new RegExp("("+a+o,"gim");var u=n+"-no-combinator";var l=/-shadowcsshost-no-combinator([^\s]*)/;var f=[/::shadow/g,/::content/g];var p="([>\\s~+[.,{:][\\s\\S]*)?$";var h=/-shadowcsshost/gim;var g=/:host/gim;var d=/::slotted/gim;var m=/:host-context/gim;var _=/\/\*\s*[\s\S]*?\*\//g;var x=function(r){return r.replace(_,"")};var w=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;var S=function(r){return r.match(w)||[]};var b=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;var W=/([{}])/g;var O=/(^.*?[^\\])??((:+)(.*)|$)/;var j="{";var E="}";var R="%BLOCK%";var k=function(r,e){var t=y(r);var n=0;return t.escapedString.replace(b,(function(){var r=[];for(var a=0;a<arguments.length;a++){r[a]=arguments[a]}var s=r[2];var o="";var c=r[4];var i="";if(c&&c.startsWith("{"+R)){o=t.blocks[n++];c=c.substring(R.length+1);i="{"}var v={selector:s,content:o};var u=e(v);return""+r[1]+u.selector+r[3]+i+u.content+c}))};var y=function(r){var e=r.split(W);var t=[];var n=[];var a=0;var s=[];for(var o=0;o<e.length;o++){var c=e[o];if(c===E){a--}if(a>0){s.push(c)}else{if(s.length>0){n.push(s.join(""));t.push(R);s=[]}t.push(c)}if(c===j){a++}}if(s.length>0){n.push(s.join(""));t.push(R)}var i={escapedString:t.join(""),blocks:n};return i};var T=function(r){r=r.replace(m,s).replace(g,n).replace(d,a);return r};var A=function(r,e,t){return r.replace(e,(function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}if(r[2]){var n=r[2].split(",");var a=[];for(var s=0;s<n.length;s++){var o=n[s].trim();if(!o)break;a.push(t(u,o,r[3]))}return a.join(",")}else{return u+r[3]}}))};var C=function(r,e,t){return r+e.replace(n,"")+t};var L=function(r){return A(r,c,C)};var $=function(r,e,t){if(e.indexOf(n)>-1){return C(r,e,t)}else{return r+e+t+", "+e+" "+r+t}};var B=function(r,e){var t="."+e+" > ";var n=[];r=r.replace(v,(function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}if(r[2]){var a=r[2].trim();var s=r[3];var o=t+a+s;var c="";for(var i=r[4]-1;i>=0;i--){var v=r[5][i];if(v==="}"||v===","){break}c=v+c}var l=c+o;var f=""+c.trimRight()+o.trim();if(l.trim()!==f.trim()){var p=f+", "+l;n.push({orgSelector:l,updatedSelector:p})}return o}else{return u+r[3]}}));return{selectors:n,cssText:r}};var I=function(r){return A(r,i,$)};var K=function(r){return f.reduce((function(r,e){return r.replace(e," ")}),r)};var M=function(r){var e=/\[/g;var t=/\]/g;r=r.replace(e,"\\[").replace(t,"\\]");return new RegExp("^("+r+")"+p,"m")};var U=function(r,e){var t=M(e);return!t.test(r)};var q=function(r,e){return r.replace(O,(function(r,t,n,a,s){if(t===void 0){t=""}if(a===void 0){a=""}if(s===void 0){s=""}return t+e+a+s}))};var z=function(r,e,t){h.lastIndex=0;if(h.test(r)){var n="."+t;return r.replace(l,(function(r,e){return q(e,n)})).replace(h,n+" ")}return e+" "+r};var D=function(r,n,a){var s=/\[is=([^\]]*)\]/g;n=n.replace(s,(function(r){var e=[];for(var t=1;t<arguments.length;t++){e[t-1]=arguments[t]}return e[0]}));var o="."+n;var c=function(r){var e=r.trim();if(!e){return""}if(r.indexOf(u)>-1){e=z(r,n,a)}else{var t=r.replace(h,"");if(t.length>0){e=q(t,o)}}return e};var i=e(r);r=i.content;var v="";var l=0;var f;var p=/( |>|\+|~(?!=))\s*/g;var g=r.indexOf(u)>-1;var d=!g;while((f=p.exec(r))!==null){var m=f[1];var _=r.slice(l,f.index).trim();d=d||_.indexOf(u)>-1;var x=d?c(_):_;v+=x+" "+m+" ";l=p.lastIndex}var w=r.substring(l);d=d||w.indexOf(u)>-1;v+=d?c(w):w;return t(i.placeholders,v)};var F=function(r,e,t,n){return r.split(",").map((function(r){if(n&&r.indexOf("."+n)>-1){return r.trim()}if(U(r,e)){return D(r,e,t).trim()}else{return r.trim()}})).join(", ")};var G=function(r,e,t,n,a){return k(r,(function(r){var a=r.selector;var s=r.content;if(r.selector[0]!=="@"){a=F(r.selector,e,t,n)}else if(r.selector.startsWith("@media")||r.selector.startsWith("@supports")||r.selector.startsWith("@page")||r.selector.startsWith("@document")){s=G(r.content,e,t,n)}var o={selector:a.replace(/\s{2,}/g," ").trim(),content:s};return o}))};var H=function(r,e,t,n,a){r=T(r);r=L(r);r=I(r);var s=B(r,n);r=s.cssText;r=K(r);if(e){r=G(r,e,t,n)}r=r.replace(/-shadowcsshost-no-combinator/g,"."+t);r=r.replace(/>\s*\*\s+([^{, ]+)/gm," $1 ");return{cssText:r.trim(),slottedSelectors:s.selectors}};var J=r("scopeCss",(function(r,e,t){var n=e+"-h";var a=e+"-s";var s=S(r);r=x(r);var o=[];if(t){var c=function(r){var e="/*!@___"+o.length+"___*/";var t="/*!@"+r.selector+"*/";o.push({placeholder:e,comment:t});r.selector=e+r.selector;return r};r=k(r,(function(r){if(r.selector[0]!=="@"){return c(r)}else if(r.selector.startsWith("@media")||r.selector.startsWith("@supports")||r.selector.startsWith("@page")||r.selector.startsWith("@document")){r.content=k(r.content,c);return r}return r}))}var i=H(r,e,n,a);r=__spreadArray([i.cssText],s).join("\n");if(t){o.forEach((function(e){var t=e.placeholder,n=e.comment;r=r.replace(t,n)}))}i.slottedSelectors.forEach((function(e){r=r.replace(e.orgSelector,e.updatedSelector)}));return r}))}}}));
@@ -0,0 +1,9 @@
1
+ import { R } from './index-89916128.js';
2
+
3
+ const uid = () => {
4
+ // @ts-ignore
5
+ let value;
6
+ return (() => { value = R.uid(); })();
7
+ };
8
+
9
+ export { uid as u };
@@ -0,0 +1 @@
1
+ System.register(["./index-3127d7f7.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.R}],execute:function(){var n=t("u",(function(){var t;return function(){t=e.uid()}()}))}}}));
@@ -12,6 +12,11 @@ export declare class Ku4Preview {
12
12
  * The default image src
13
13
  */
14
14
  readonly src: string;
15
+ /**
16
+ * An alternate fallback src for when src does not load.
17
+ * Useful when this component is used e.g. as a profile image
18
+ */
19
+ readonly altsrc: string;
15
20
  /**
16
21
  * EXIF orientation. This will override
17
22
  * any set capture value. (optional)
@@ -4,10 +4,10 @@
4
4
  export declare class Ku4TabList {
5
5
  private tabs;
6
6
  private host;
7
- handleHpTabClick({ target }: {
7
+ handleTabClick({ target }: {
8
8
  target: any;
9
9
  }): void;
10
- handleHpTabKeyUp({ target, detail: e }: {
10
+ handleTabKeyUp({ target, detail: e }: {
11
11
  target: any;
12
12
  detail: any;
13
13
  }): void;
@@ -362,6 +362,10 @@ export namespace Components {
362
362
  * Alt text
363
363
  */
364
364
  "alt": string;
365
+ /**
366
+ * An alternate fallback src for when src does not load. Useful when this component is used e.g. as a profile image
367
+ */
368
+ "altsrc": string;
365
369
  /**
366
370
  * Force a 'portrait' or 'landscape' capture orientation. This is unlikely necessary, but useful for those who want to implement specific custom capture orientation logic. (optional)
367
371
  */
@@ -960,6 +964,10 @@ declare namespace LocalJSX {
960
964
  * Alt text
961
965
  */
962
966
  "alt"?: string;
967
+ /**
968
+ * An alternate fallback src for when src does not load. Useful when this component is used e.g. as a profile image
969
+ */
970
+ "altsrc"?: string;
963
971
  /**
964
972
  * Force a 'portrait' or 'landscape' capture orientation. This is unlikely necessary, but useful for those who want to implement specific custom capture orientation logic. (optional)
965
973
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ku4web-components",
3
- "version": "6.4.69",
3
+ "version": "6.4.74",
4
4
  "description": "kodmunki™ Web Components",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.js",
@@ -54,26 +54,26 @@
54
54
  "stencil:test"
55
55
  ],
56
56
  "devDependencies": {
57
- "@babel/core": "^7.16.12",
58
- "@jest/core": "^27.4.7",
57
+ "@babel/core": "^7.17.0",
58
+ "@jest/core": "^27.5.0",
59
59
  "@rollup/plugin-babel": "^5.3.0",
60
60
  "@rollup/plugin-commonjs": "^21.0.1",
61
61
  "@rollup/plugin-node-resolve": "^13.1.3",
62
62
  "@stencil/core": "^2.13.0",
63
63
  "@stencil/eslint-plugin": "^0.4.0",
64
64
  "@stencil/sass": "^1.4.0",
65
- "@storybook/addon-actions": "^6.4.17",
66
- "@storybook/addon-docs": "^6.4.17",
65
+ "@storybook/addon-actions": "^6.4.18",
66
+ "@storybook/addon-docs": "^6.4.18",
67
67
  "@storybook/addon-google-analytics": "^6.1.21",
68
68
  "@storybook/addon-knobs": "^6.1.21",
69
- "@storybook/addon-links": "^6.4.17",
70
- "@storybook/addon-storyshots": "^6.4.17",
71
- "@storybook/addon-viewport": "^6.4.17",
72
- "@storybook/addons": "^6.4.17",
73
- "@storybook/react": "^6.4.17",
74
- "@storybook/theming": "^6.4.17",
75
- "@storybook/web-components": "^6.4.17",
76
- "@types/node": "^17.0.13",
69
+ "@storybook/addon-links": "^6.4.18",
70
+ "@storybook/addon-storyshots": "^6.4.18",
71
+ "@storybook/addon-viewport": "^6.4.18",
72
+ "@storybook/addons": "^6.4.18",
73
+ "@storybook/react": "^6.4.18",
74
+ "@storybook/theming": "^6.4.18",
75
+ "@storybook/web-components": "^6.4.18",
76
+ "@types/node": "^17.0.15",
77
77
  "@types/puppeteer": "^5.4.3",
78
78
  "@typescript-eslint/eslint-plugin": "^5.10.2",
79
79
  "@typescript-eslint/parser": "^5.10.2",
@@ -81,25 +81,25 @@
81
81
  "babel-loader": "^8.2.1",
82
82
  "bufferutil": "^4.0.3",
83
83
  "canvas": "^2.9.0",
84
- "core-js": "^3.20.3",
84
+ "core-js": "^3.21.0",
85
85
  "css-loader": "^5.1.3",
86
86
  "eslint": "^8.8.0",
87
87
  "eslint-plugin-react": "^7.21.5",
88
88
  "fibers": "^5.0.1",
89
89
  "html-to-react": "^1.4.8",
90
- "jest": "^27.4.7",
91
- "jest-cli": "^27.4.7",
90
+ "jest": "^27.5.0",
91
+ "jest-cli": "^27.5.0",
92
92
  "ku4es-kernel": "^8.3.16",
93
93
  "ku4es-ui-data": "^3.1.7",
94
- "ku4es-ui-kernel": "^8.0.5",
94
+ "ku4es-ui-kernel": "^8.0.6",
95
95
  "lit-html": "^2.1.2",
96
96
  "node-sass": "^5.0.0",
97
97
  "pre-commit": "^1.2.2",
98
- "puppeteer": "^13.1.3",
99
- "rollup": "^2.66.1",
98
+ "puppeteer": "^13.2.0",
99
+ "rollup": "^2.67.1",
100
100
  "rollup-plugin-cleanup": "^3.2.1",
101
101
  "rollup-plugin-terser": "^7.0.2",
102
- "sass": "^1.49.0",
102
+ "sass": "^1.49.7",
103
103
  "sass-loader": "^10.2.1",
104
104
  "style-loader": "^2.0.0",
105
105
  "ts-dedent": "^2.0.0",
@@ -1 +0,0 @@
1
- import{r as o,c as t,h as a,H as r,g as e}from"./p-fbb5312d.js";import{L as i,c as n}from"./p-c1068ffa.js";import{S as s}from"./p-08ec498e.js";let u=class{constructor(a){o(this,a),this.didSlide=t(this,"slide",7),this.swipeTolerance=44,this.auto=!1,this.noSwipe=!1,this.delay=8e3,this.interval=new i(this.delay).onInterval((()=>{this.host.isConnected?this.display("next"):this.disconnectedCallback()})),this.handleMouse=this.handleMouse.bind(this)}async next(){return this.hasSlides?(await this.pause(),this.display("next")):this}async previous(){return this.hasSlides?(await this.pause(),this.display("prev")):this}async slideTo(o){if(await this.pause(),!(o===this.currentSlideNumber||o<1||this.rolodex.length<o)){const t=o-this.currentSlideNumber,a=t<0?"prev":"next";let r=Math.abs(t);for(;0<--r;)window.requestAnimationFrame((()=>this.rolodex[a]));this.display(a)}}async pause(){this.interval.clear()}async play(){const{auto:o,interval:t}=this;o&&t.start()}get hasSlides(){return this.rolodex&&this.rolodex.length>1}get currentSlideNumber(){const{rolodex:o}=this;return o&&(o.isEmpty?0:o.index+1)}display(o){const{previous:t,current:a}=this.slideState,r=this.rolodex[o];return t&&t.deactivate(),a.slideOut(o),r.slideIn(o),this.slideState={previous:a,current:r},this.didSlide.emit(this.currentSlideNumber),this}handleMouse(o){this.host.contains(o.relatedTarget)||this.play()}componentWillLoad(){let o;this.noSwipe||(this.swipe=new s(this.host,this.swipeTolerance).onLeft((()=>this.next())).onRight((()=>this.previous())));try{o=this.host.querySelectorAll(":scope > ku4-carousel-slide")}catch(t){o=[].slice.call(this.host.querySelectorAll("ku4-carousel-slide")).reduce(((o,t)=>(t.parentNode===this.host&&o.push(t),o)),[])}this.rolodex=new n(o),this.rolodex.current&&this.rolodex.current.activate&&this.rolodex.current.activate(),this.slideState={current:this.rolodex.current},this.auto&&(this.host.addEventListener("mouseout",this.handleMouse),this.play())}connectedCallback(){this.swipe&&this.swipe.destroy(),this.host.removeEventListener("mouseout",this.handleMouse),this.interval.clear()}disconnectedCallback(){this.swipe&&this.swipe.destroy(),this.host.removeEventListener("mouseout",this.handleMouse),this.interval.clear()}render(){const{hasSlides:o,currentSlideNumber:t=1}=this;return a(r,{"aria-roledescription":"carousel",current:t},o&&a("section",{class:"controls"},a("button",{type:"button",class:"prev",onClick:()=>this.previous(),"aria-label":"previous slide"}),a("button",{type:"button",class:"next",onClick:()=>this.next(),"aria-label":"next slide"})),a("section",{class:"slide-container","aria-live":"polite"},a("slot",null)),o&&a("section",{class:"pages"},a("span",{class:"pages-text"},`${t} of ${this.rolodex.length}`)))}get host(){return e(this)}};u.style="@-webkit-keyframes ku4-carousel-enter-left{0%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@keyframes ku4-carousel-enter-left{0%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@-webkit-keyframes ku4-carousel-enter-right{0%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@keyframes ku4-carousel-enter-right{0%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@-webkit-keyframes ku4-carousel-exit-left{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}}@keyframes ku4-carousel-exit-left{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}}@-webkit-keyframes ku4-carousel-exit-right{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}}@keyframes ku4-carousel-exit-right{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;overflow:hidden;background-color:var(--ku4-carousel-background-color, #fff)}.slide-container{position:relative;width:100%;height:100%;overflow:hidden}.controls .next,.controls .prev{position:absolute;display:var(--ku4-carousel-controls-display, block);top:var(--ku4-carousel-controls-top, 0);border:var(--ku4-carousel-controls-border, none);background-color:var(--ku4-carousel-controls-background-color, #fff);font-family:var(--ku4-carousel-controls-font-family, Helvetica, Arial, sans-serif);font-weight:var(--ku4-carousel-controls-font-weight, 400);font-size:var(--ku4-carousel-controls-font-size, 8px);line-height:var(--ku4-carousel-controls-line-height, 12px);opacity:var(--ku4-carousel-controls-opacity, 0.2);z-index:var(--ku4-carousel-controls-z-index, 2)}.controls .next:focus,.controls .prev:focus{background-color:var(--ku4-carousel-controls-focus-background-color, transparent);outline:var(--ku4-carousel-controls-focus-outline, none);opacity:var(--ku4-carousel-controls-focus-opacity, 0.2)}.controls .next:hover,.controls .prev:hover{background-color:var(--ku4-carousel-controls-hover-background-color, transparent);opacity:var(--ku4-carousel-controls-hover-opacity, 1)}.controls .next{right:0;width:var(--ku4-carousel-controls-next-width, 40px);height:var(--ku4-carousel-controls-next-height, 100%);background-image:var(--ku4-carousel-controls-next-background-image);background-repeat:var(--ku4-carousel-controls-next-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-background-size, 100% 100%)}.controls .next:focus{background-image:var(--ku4-carousel-controls-next-focus-background-image);background-repeat:var(--ku4-carousel-controls-next-focus-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-focus-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-focus-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-focus-background-size, 100% 100%)}.controls .next:hover{background-image:var(--ku4-carousel-controls-next-hover-background-image);background-repeat:var(--ku4-carousel-controls-next-hover-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-hover-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-hover-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-hover-background-size, 100% 100%)}.controls .prev{left:0;width:var(--ku4-carousel-controls-next-width, 40px);height:var(--ku4-carousel-controls-next-height, 100%);background-image:var(--ku4-carousel-controls-previous-background-image);background-repeat:var(--ku4-carousel-controls-previous-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-background-size, 100% 100%)}.controls .prev:focus{background-image:var(--ku4-carousel-controls-previous-focus-background-image);background-repeat:var(--ku4-carousel-controls-previous-focus-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-focus-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-focus-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-focus-background-size, 100% 100%)}.controls .prev:hover{background-image:var(--ku4-carousel-controls-previous-hover-background-image);background-repeat:var(--ku4-carousel-controls-previous-hover-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-hover-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-hover-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-hover-background-size, 100% 100%)}.pages{position:absolute;display:var(--ku4-carousel-pages-display, block);top:var(--ku4-carousel-pages-top, auto);bottom:var(--ku4-carousel-pages-bottom, 4px);width:var(--ku4-carousel-pages-width, auto);height:var(--ku4-carousel-pages-height, 20px);background-color:var(--ku4-carousel-pages-background-color, transparent);opacity:var(--ku4-carousel-pages-opacity, 0.5);text-align:center;z-index:3}.pages-text{display:inline-block;padding:var(--ku4-carousel-pages-text-padding, 4px);font-family:var(--ku4-carousel-pages-text-font-family, Helvetica, Arial, sans-serif);font-weight:var(--ku4-carousel-pages-text-font-weight, 600);font-size:var(--ku4-carousel-pages-text-font-size, 14px);line-height:var(--ku4-carousel-pages-text-line-height, 16px);color:var(--ku4-carousel-pages-text-color, #aaa)}::slotted(*){position:absolute;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;top:0;left:-100%;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(.inactive){position:absolute;height:100%;left:0}::slotted(.inactive.prev){-webkit-animation-name:var(--ku4-carousel-animation-inactive-previous-name, ku4-carousel-exit-right);animation-name:var(--ku4-carousel-animation-inactive-previous-name, ku4-carousel-exit-right);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function);animation-timing-function:var(--ku4-carousel-animation-timing-function);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.inactive.next){-webkit-animation-name:var(--ku4-carousel-animation-inactive-next-name, ku4-carousel-exit-left);animation-name:var(--ku4-carousel-animation-inactive-next-name, ku4-carousel-exit-left);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function);animation-timing-function:var(--ku4-carousel-animation-timing-function);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.active){position:relative;top:0;left:0;width:auto;height:100%;z-index:1}::slotted(.active.prev){-webkit-animation-name:var(--ku4-carousel-animation-active-previous-name, ku4-carousel-enter-left);animation-name:var(--ku4-carousel-animation-active-previous-name, ku4-carousel-enter-left);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.active.next){-webkit-animation-name:var(--ku4-carousel-animation-active-next-name, ku4-carousel-enter-right);animation-name:var(--ku4-carousel-animation-active-next-name, ku4-carousel-enter-right);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (hover: hover){.controls:hover{background-color:var(--ku4-carousel-controls-focus-background-color, #fff)}}";export{u as ku4_carousel}
@@ -1 +0,0 @@
1
- import{r as t,h as s,H as e,g as r}from"./p-fbb5312d.js";import{K as i}from"./p-08ec498e.js";import{u as a}from"./p-cbbb4b1b.js";import"./p-c1068ffa.js";let o=class{constructor(s){t(this,s)}handleHpTabClick({target:t}){this.tabs.includes(t)&&this.open(t)}handleHpTabKeyUp({target:t,detail:s}){this.tabs.includes(t)&&(i.left.didFire(s)&&this.open(this.previous(t)),i.right.didFire(s)&&this.open(this.next(t)))}async open(t){return this.reset().select(t)}select(t){return t.select(),this}deselect(t){return t.deselect(),this}reset(){return this.tabs.forEach((t=>this.deselect(t))),this}previous(t){const{tabs:s,tabs:{length:e}}=this,r=s.indexOf(t)-1;return s[r>-1?r:e-1]}next(t){const{tabs:s,tabs:{length:e}}=this,r=s.indexOf(t)+1;return s[r<e?r:0]}componentDidRender(){const t=[],s=[];[].slice.call(this.host.children).forEach((e=>{"KU4-TAB"===e.tagName&&t.push(e),"KU4-TAB-PANEL"===e.tagName&&s.push(e)})),this.tabs=t,this.tabs.forEach(((t,e)=>t.connect(s[e])))}render(){return s(e,{id:this.host.id||a(),role:"tablist","aria-owns":this.host.id||a()},s("slot",null))}get host(){return r(this)}};o.style=":host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}";export{o as ku4_tab_list}