@sme.up/ketchup 6.6.0 → 6.7.0

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 (192) hide show
  1. package/README.md +7 -1
  2. package/dist/cjs/{f-button-a531feb2.js → f-button-bf76ab95.js} +2 -2
  3. package/dist/cjs/{f-cell-75cb7933.js → f-cell-b7a1524a.js} +21 -21
  4. package/dist/cjs/{f-checkbox-cd977193.js → f-checkbox-1097ca5d.js} +1 -1
  5. package/dist/cjs/{f-chip-9508a2e4.js → f-chip-a5e100b1.js} +3 -3
  6. package/dist/cjs/{f-image-c21cc616.js → f-image-d80a2749.js} +2 -2
  7. package/dist/cjs/{f-paginator-utils-2b72d7e8.js → f-paginator-utils-c70812fe.js} +3 -3
  8. package/dist/cjs/{f-text-field-a5b2bd0e.js → f-text-field-48b8bb16.js} +2 -2
  9. package/dist/cjs/{index-31125378.js → index-ffdb46f6.js} +423 -252
  10. package/dist/cjs/ketchup.cjs.js +3 -3
  11. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  12. package/dist/cjs/kup-autocomplete_25.cjs.entry.js +206 -57
  13. package/dist/cjs/kup-box.cjs.entry.js +11 -10
  14. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  15. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  16. package/dist/cjs/kup-dash-list.cjs.entry.js +2 -2
  17. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  18. package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
  19. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-echart.cjs.entry.js +2 -2
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
  22. package/dist/cjs/kup-form.cjs.entry.js +8 -8
  23. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
  25. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  27. package/dist/cjs/{kup-manager-8e67afec.js → kup-manager-0e38bf48.js} +16 -6
  28. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  30. package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  33. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  34. package/dist/cjs/loader.cjs.js +3 -3
  35. package/dist/collection/assets/box.js +9 -6
  36. package/dist/collection/collection-manifest.json +3 -3
  37. package/dist/collection/components/kup-accordion/kup-accordion.js +239 -234
  38. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +545 -530
  39. package/dist/collection/components/kup-badge/kup-badge.js +176 -170
  40. package/dist/collection/components/kup-box/kup-box.js +889 -907
  41. package/dist/collection/components/kup-button/kup-button.js +379 -370
  42. package/dist/collection/components/kup-button-list/kup-button-list.js +251 -240
  43. package/dist/collection/components/kup-calendar/kup-calendar.js +301 -300
  44. package/dist/collection/components/kup-card/box/kup-card-box.js +7 -24
  45. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +14 -28
  46. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +6 -19
  47. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
  48. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +9 -44
  49. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +2 -21
  50. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +6 -33
  51. package/dist/collection/components/kup-card/kup-card-helper.js +3 -8
  52. package/dist/collection/components/kup-card/kup-card.css +40 -0
  53. package/dist/collection/components/kup-card/kup-card.js +348 -340
  54. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +68 -81
  55. package/dist/collection/components/kup-card/standard/kup-card-standard.js +98 -278
  56. package/dist/collection/components/kup-cell/kup-cell.js +221 -216
  57. package/dist/collection/components/kup-chart/kup-chart.js +547 -537
  58. package/dist/collection/components/kup-checkbox/kup-checkbox.js +275 -266
  59. package/dist/collection/components/kup-chip/kup-chip.js +240 -231
  60. package/dist/collection/components/kup-color-picker/kup-color-picker.js +274 -264
  61. package/dist/collection/components/kup-combobox/kup-combobox.js +457 -440
  62. package/dist/collection/components/kup-dash/kup-dash.js +110 -158
  63. package/dist/collection/components/kup-dash-list/kup-dash-list.js +210 -213
  64. package/dist/collection/components/kup-dashboard/kup-dashboard.js +196 -203
  65. package/dist/collection/components/kup-data-table/kup-data-table.js +1917 -1830
  66. package/dist/collection/components/kup-date-picker/kup-date-picker.js +408 -394
  67. package/dist/collection/components/kup-drawer/kup-drawer.js +244 -236
  68. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +474 -464
  69. package/dist/collection/components/kup-echart/kup-echart.js +436 -423
  70. package/dist/collection/components/kup-family-tree/kup-family-tree.js +408 -421
  71. package/dist/collection/components/kup-form/kup-form.js +223 -225
  72. package/dist/collection/components/kup-gauge/kup-gauge.js +445 -445
  73. package/dist/collection/components/kup-grid/kup-grid.js +156 -153
  74. package/dist/collection/components/kup-iframe/kup-iframe.js +181 -173
  75. package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +9 -3
  76. package/dist/collection/components/kup-image/kup-image.js +300 -295
  77. package/dist/collection/components/kup-image-list/kup-image-list.js +292 -285
  78. package/dist/collection/components/kup-lazy/kup-lazy.js +253 -253
  79. package/dist/collection/components/kup-list/kup-list.js +541 -504
  80. package/dist/collection/components/kup-magic-box/kup-magic-box.js +145 -145
  81. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +190 -184
  82. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +490 -478
  83. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +254 -242
  84. package/dist/collection/components/kup-probe/kup-probe.js +87 -83
  85. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +237 -241
  86. package/dist/collection/components/kup-qlik/kup-qlik.js +178 -170
  87. package/dist/collection/components/kup-radio/kup-radio.js +258 -255
  88. package/dist/collection/components/kup-rating/kup-rating.js +208 -197
  89. package/dist/collection/components/kup-snackbar/kup-snackbar.js +249 -246
  90. package/dist/collection/components/kup-spinner/kup-spinner.js +274 -269
  91. package/dist/collection/components/kup-switch/kup-switch.js +255 -246
  92. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +265 -224
  93. package/dist/collection/components/kup-text-field/kup-text-field.js +814 -805
  94. package/dist/collection/components/kup-time-picker/kup-time-picker.js +464 -450
  95. package/dist/collection/components/kup-tree/kup-tree-faker.js +3 -2
  96. package/dist/collection/components/kup-tree/kup-tree.js +1068 -1076
  97. package/dist/collection/f-components/f-button/f-button.js +11 -20
  98. package/dist/collection/f-components/f-cell/f-cell.js +19 -21
  99. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -9
  100. package/dist/collection/f-components/f-chip/f-chip.js +18 -31
  101. package/dist/collection/f-components/f-image/f-image.js +1 -3
  102. package/dist/collection/f-components/f-paginator/f-paginator.js +1 -6
  103. package/dist/collection/f-components/f-switch/f-switch.js +1 -8
  104. package/dist/collection/f-components/f-text-field/f-text-field.js +18 -40
  105. package/dist/collection/managers/kup-debug/kup-debug.js +10 -5
  106. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +25 -10
  107. package/dist/collection/managers/kup-toolbar/kup-toolbar.js +10 -5
  108. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +10 -5
  109. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +0 -21
  110. package/dist/esm/{f-button-15719ec1.js → f-button-e79f7594.js} +2 -2
  111. package/dist/esm/{f-cell-692c37bf.js → f-cell-9400374e.js} +21 -21
  112. package/dist/esm/{f-checkbox-e06cf07b.js → f-checkbox-b721178e.js} +1 -1
  113. package/dist/esm/{f-chip-abab04bf.js → f-chip-bf740287.js} +3 -3
  114. package/dist/esm/{f-image-98783644.js → f-image-ab3dc8cb.js} +2 -2
  115. package/dist/esm/{f-paginator-utils-d12ee737.js → f-paginator-utils-6909e43b.js} +3 -3
  116. package/dist/esm/{f-text-field-282025dd.js → f-text-field-4841dfea.js} +2 -2
  117. package/dist/esm/{index-e41330a5.js → index-a2197376.js} +423 -252
  118. package/dist/esm/ketchup.js +3 -3
  119. package/dist/esm/kup-accordion.entry.js +3 -3
  120. package/dist/esm/kup-autocomplete_25.entry.js +206 -57
  121. package/dist/esm/kup-box.entry.js +11 -10
  122. package/dist/esm/kup-calendar.entry.js +5 -5
  123. package/dist/esm/kup-cell.entry.js +7 -7
  124. package/dist/esm/kup-dash-list.entry.js +2 -2
  125. package/dist/esm/kup-dash_2.entry.js +2 -2
  126. package/dist/esm/kup-dashboard.entry.js +6 -6
  127. package/dist/esm/kup-drawer.entry.js +2 -2
  128. package/dist/esm/kup-echart.entry.js +2 -2
  129. package/dist/esm/kup-family-tree.entry.js +4 -4
  130. package/dist/esm/kup-form.entry.js +8 -8
  131. package/dist/esm/kup-iframe.entry.js +2 -2
  132. package/dist/esm/kup-image-list.entry.js +8 -8
  133. package/dist/esm/kup-lazy.entry.js +2 -2
  134. package/dist/esm/kup-magic-box.entry.js +3 -3
  135. package/dist/esm/{kup-manager-abbae73e.js → kup-manager-c54e6df5.js} +16 -6
  136. package/dist/esm/kup-nav-bar.entry.js +2 -2
  137. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  138. package/dist/esm/kup-photo-frame.entry.js +2 -2
  139. package/dist/esm/kup-probe.entry.js +2 -2
  140. package/dist/esm/kup-qlik.entry.js +2 -2
  141. package/dist/esm/kup-snackbar.entry.js +4 -4
  142. package/dist/esm/loader.js +3 -3
  143. package/dist/esm/polyfills/css-shim.js +1 -1
  144. package/dist/ketchup/ketchup.esm.js +1 -1
  145. package/dist/ketchup/{p-5933aa02.entry.js → p-182b869e.entry.js} +1 -1
  146. package/dist/ketchup/{p-c05f2638.js → p-1dfd2a51.js} +1 -1
  147. package/dist/ketchup/{p-62f3ec78.entry.js → p-1f5c7f21.entry.js} +1 -1
  148. package/dist/ketchup/p-22ec1ba0.entry.js +9 -0
  149. package/dist/ketchup/{p-5552f156.js → p-23cd5a68.js} +1 -1
  150. package/dist/ketchup/{p-62421bcf.js → p-25bf0cb6.js} +1 -1
  151. package/dist/ketchup/{p-6946b614.entry.js → p-260ff835.entry.js} +1 -1
  152. package/dist/ketchup/{p-ccef2553.entry.js → p-2e184b57.entry.js} +1 -1
  153. package/dist/ketchup/{p-eeadd688.entry.js → p-30a63b85.entry.js} +1 -1
  154. package/dist/ketchup/{p-3760a159.entry.js → p-313e376b.entry.js} +1 -1
  155. package/dist/ketchup/{p-7e16265d.entry.js → p-41620707.entry.js} +1 -1
  156. package/dist/ketchup/{p-5ea2a1ff.entry.js → p-4a0ccf18.entry.js} +1 -1
  157. package/dist/ketchup/{p-6f3040fb.js → p-4f0d3062.js} +1 -1
  158. package/dist/ketchup/p-4fdb684f.js +2 -0
  159. package/dist/ketchup/{p-27538d6f.entry.js → p-53d3ae80.entry.js} +1 -1
  160. package/dist/ketchup/{p-20221a50.js → p-5bea2971.js} +1 -1
  161. package/dist/ketchup/{p-1ef5d16d.entry.js → p-60fa0ccf.entry.js} +1 -1
  162. package/dist/ketchup/p-6333388c.js +1 -0
  163. package/dist/ketchup/{p-725c6268.entry.js → p-6bd57787.entry.js} +1 -1
  164. package/dist/ketchup/p-758d03f4.entry.js +1 -0
  165. package/dist/ketchup/{p-9419919c.entry.js → p-7e7b6127.entry.js} +1 -1
  166. package/dist/ketchup/p-8386e3db.entry.js +1 -0
  167. package/dist/ketchup/{p-a4a30e0e.entry.js → p-859163c2.entry.js} +1 -1
  168. package/dist/ketchup/{p-a450d60a.entry.js → p-8e1fa7a8.entry.js} +1 -1
  169. package/dist/ketchup/{p-29d72040.entry.js → p-90860d9e.entry.js} +1 -1
  170. package/dist/ketchup/{p-d8af7ba6.entry.js → p-b7fdc7aa.entry.js} +1 -1
  171. package/dist/ketchup/{p-7d37ea62.entry.js → p-bffaef6e.entry.js} +1 -1
  172. package/dist/ketchup/{p-3e74e1ed.js → p-c35c5e05.js} +1 -1
  173. package/dist/ketchup/{p-e6ebdb80.js → p-e1d0ea71.js} +1 -1
  174. package/dist/ketchup/{p-fd930a34.entry.js → p-f9d5e553.entry.js} +1 -1
  175. package/dist/ketchup/{p-f6409c42.entry.js → p-fb4d772a.entry.js} +1 -1
  176. package/dist/loader/package.json +1 -0
  177. package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -0
  178. package/dist/types/components/kup-card/scalable/kup-card-scalable.d.ts +6 -0
  179. package/dist/types/components/kup-data-table/kup-data-table.d.ts +15 -1
  180. package/dist/types/components/kup-list/kup-list.d.ts +5 -0
  181. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +5 -0
  182. package/dist/types/components.d.ts +23 -0
  183. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +1 -0
  184. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +2 -1
  185. package/dist/types/stencil-public-runtime.d.ts +15 -4
  186. package/package.json +1 -1
  187. package/CHANGELOG.md +0 -5
  188. package/dist/ketchup/p-1d2dea0a.entry.js +0 -1
  189. package/dist/ketchup/p-680a8cb4.entry.js +0 -9
  190. package/dist/ketchup/p-b0b3989b.js +0 -2
  191. package/dist/ketchup/p-d7a92197.entry.js +0 -1
  192. package/dist/ketchup/p-e07a10fb.js +0 -1
@@ -1,2 +0,0 @@
1
- let e,t,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},i={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},r=e=>Promise.resolve(e),c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),a=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=f(e,n),r=u(t,s),c=p(n);i.ael(o,l,r,c),(t.o=t.o||[]).push((()=>i.rel(o,l,r,c)))}))},u=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){le(e)}},f=(e,t)=>4&t?o:e,p=e=>0!=(2&e),d="http://www.w3.org/1999/xlink",h=new WeakMap,m=e=>"sc-"+e.p,y={},$=e=>"object"==(e=typeof e)||"function"===e,w=(e,t,...n)=>{let l=null,s=null,o=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!$(l))&&(l+=""),o&&i?r[r.length-1].h+=l:r.push(o?b(null,l):l),i=o)};if(c(n),t){t.key&&(s=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,v);const a=b(e,null);return a.m=t,r.length>0&&(a.$=r),a.g=s,a},b=(e,t)=>({t:0,v:e,h:t,j:null,$:null,m:null,g:null}),g={},v={forEach:(e,t)=>e.map(j).forEach(t),map:(e,t)=>e.map(j).map(t).map(k)},j=e=>({vattrs:e.m,vchildren:e.$,vkey:e.g,vname:e.k,vtag:e.v,vtext:e.h}),k=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),w(e.vtag,t,...e.vchildren||[])}const t=b(e.vtag,e.vtext);return t.m=e.vattrs,t.$=e.vchildren,t.g=e.vkey,t.k=e.vname,t},S=(e,t,n,l,o,r)=>{if(n!==l){let c=ne(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,s=M(n),o=M(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(c||"o"!==t[0]||"n"!==t[1]){const s=$(l);if((c||s&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const s=null==l?"":l;"list"===t?c=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}let i=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,i=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(i?e.removeAttributeNS(d,t):e.removeAttribute(t)):(!c||4&r||o)&&!s&&(l=!0===l?"":l,i?e.setAttributeNS(d,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):ne(s,a)?a.slice(2):a[2]+t.slice(3),n&&i.rel(e,t,n,!1),l&&i.ael(e,t,l,!1)}},O=/\s/,M=e=>e?e.split(O):[],x=(e,t,n,l)=>{const s=11===t.j.nodeType&&t.j.host?t.j.host:t.j,o=e&&e.m||y,i=t.m||y;for(l in o)l in i||S(s,l,o[l],void 0,n,t.t);for(l in i)S(s,l,o[l],i[l],n,t.t)},C=(t,l,s)=>{const i=l.$[s];let r,c,a=0;if(null!==i.h)r=i.j=o.createTextNode(i.h);else{if(n||(n="svg"===i.v),r=i.j=o.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.v),n&&"foreignObject"===i.v&&(n=!1),x(null,i,n),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),i.$)for(a=0;a<i.$.length;++a)c=C(t,i,a),c&&r.appendChild(c);"svg"===i.v?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},L=(e,n,l,s,o,i)=>{let r,c=e;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);o<=i;++o)s[o]&&(r=C(null,l,o),r&&(s[o].j=r,c.insertBefore(r,n)))},P=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.j,W(l),s.remove())},R=(e,t)=>e.v===t.v&&e.g===t.g,U=(e,t)=>{const l=t.j=e.j,s=e.$,o=t.$,i=t.v,r=t.h;null===r?(n="svg"===i||"foreignObject"!==i&&n,"slot"===i||x(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o,i=0,r=0,c=0,a=0,u=t.length-1,f=t[0],p=t[u],d=l.length-1,h=l[0],m=l[d];for(;i<=u&&r<=d;)if(null==f)f=t[++i];else if(null==p)p=t[--u];else if(null==h)h=l[++r];else if(null==m)m=l[--d];else if(R(f,h))U(f,h),f=t[++i],h=l[++r];else if(R(p,m))U(p,m),p=t[--u],m=l[--d];else if(R(f,m))U(f,m),e.insertBefore(f.j,p.j.nextSibling),f=t[++i],m=l[--d];else if(R(p,h))U(p,h),e.insertBefore(p.j,f.j),p=t[--u],h=l[++r];else{for(c=-1,a=i;a<=u;++a)if(t[a]&&null!==t[a].g&&t[a].g===h.g){c=a;break}c>=0?(o=t[c],o.v!==h.v?s=C(t&&t[r],n,c):(U(o,h),t[c]=void 0,s=o.j),h=l[++r]):(s=C(t&&t[r],n,r),h=l[++r]),s&&f.j.parentNode.insertBefore(s,f.j)}i>u?L(e,null==l[d+1]?null:l[d+1].j,n,l,r,d):r>d&&P(t,i,u)})(l,s,t,o):null!==o?(null!==e.h&&(l.textContent=""),L(l,null,t,o,0,o.length-1)):null!==s&&P(s,0,s.length-1),n&&"svg"===i&&(n=!1)):e.h!==r&&(l.data=r)},W=e=>{e.m&&e.m.ref&&e.m.ref(null),e.$&&e.$.map(W)},E=e=>Z(e).S,D=(e,t,n)=>{const l=E(e);return{emit:e=>N(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},N=(e,t,n)=>{const l=i.ce(t,n);return e.dispatchEvent(l),l},T=(e,t)=>{t&&!e.O&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.O=t)))},A=(e,t)=>{if(e.t|=16,!(4&e.t))return T(e,e.M),de((()=>F(e,t)));e.t|=512},F=(e,t)=>{const n=e.i;let l;return t?(e.t|=256,e.u&&(e.u.map((([e,t])=>B(n,e,t))),e.u=null),l=B(n,"componentWillLoad")):l=B(n,"componentWillUpdate"),l=G(l,(()=>B(n,"componentWillRender"))),G(l,(()=>H(e,n,t)))},H=async(e,t,n)=>{const l=e.S,s=l["s-rc"];n&&(e=>{const t=e.C,n=e.S,l=t.t,s=((e,t)=>{let n=m(t);const l=ie.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=h.get(e=e.head||e);s||h.set(e,s=new Set),s.has(n)||(t=o.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);q(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>V(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},q=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.S,o=n.C,i=n.L||b(null,null),r=(e=>e&&e.v===g)(l)?l:w(null,null,l);t=s.tagName,o.P&&(r.m=r.m||{},o.P.map((([e,t])=>r.m[t]=s[e]))),r.v=null,r.t|=4,n.L=r,r.j=i.j=s.shadowRoot||s,e=s["s-sc"],U(i,r)})(n,l)}catch(e){le(e,n.S)}return null},V=e=>{const t=e.S,n=e.i,l=e.M;B(n,"componentDidRender"),64&e.t?B(n,"componentDidUpdate"):(e.t|=64,I(t),B(n,"componentDidLoad"),e.R(t),l||z()),e.U(t),e.O&&(e.O(),e.O=void 0),512&e.t&&pe((()=>A(e,!1))),e.t&=-517},_=e=>{{const t=Z(e),n=t.S.isConnected;return n&&2==(18&t.t)&&A(t,!1),n}},z=()=>{I(o.documentElement),pe((()=>N(s,"appload",{detail:{namespace:"ketchup"}})))},B=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){le(e)}},G=(e,t)=>e&&e.then?e.then(t):t(),I=e=>e.classList.add("hydrated"),J=(e,t,n)=>{if(t.W){e.watchers&&(t.D=e.watchers);const l=Object.entries(t.W),s=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(s,e,{get(){return((e,t)=>Z(this).N.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=Z(e),o=s.S,i=s.N.get(t),r=s.t,c=s.i;if(n=((e,t)=>null==e||$(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.W[t][0]),(!(8&r)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(s.N.set(t,n),c)){if(l.D&&128&r){const e=l.D[t];e&&e.map((e=>{try{c[e](n,i,t)}catch(e){le(e,o)}}))}2==(18&r)&&A(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(s,e,{value(...t){const n=Z(this);return n.T.then((()=>n.i[e](...t)))}})})),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,l){i.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const s=l[1]||e;return n.set(s,e),512&l[0]&&t.P.push([e,s]),s}))}}return e},K=(e,t={})=>{const n=[],l=t.exclude||[],r=s.customElements,u=o.head,f=u.querySelector("meta[charset]"),p=o.createElement("style"),d=[];let h,y=!0;Object.assign(i,t),i.l=new URL(t.resourcesUrl||"./",o.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],p:t[1],W:t[2],A:t[3]};s.W=t[2],s.A=t[3],s.P=[],s.D={};const o=s.p,u=class extends HTMLElement{constructor(e){super(e),te(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),y?d.push(this):i.jmp((()=>(e=>{if(0==(1&i.t)){const t=Z(e),n=t.C,l=()=>{};if(1&t.t)a(e,t,n.A);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){T(t,t.M=n);break}}n.W&&Object.entries(n.W).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=oe(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.D=s.watchers,J(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){le(e)}t.t&=-9,t.t|=128,e()}if(s.style){let e=s.style;const t=m(n);if(!ie.has(t)){const l=()=>{};((e,t,n)=>{let l=ie.get(e);c&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,ie.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.M,i=()=>A(t,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){i.jmp((()=>(()=>{if(0==(1&i.t)){const e=Z(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),B(t,"disconnectedCallback")}})()))}componentOnReady(){return Z(this).F}};s.H=e[0],l.includes(o)||r.get(o)||(n.push(o),r.define(o,J(u,s,1)))}))})),p.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",p.setAttribute("data-styles",""),u.insertBefore(p,f?f.nextSibling:u.firstChild),y=!1,d.length?d.map((e=>e.connectedCallback())):i.jmp((()=>h=setTimeout(z,30)))},Q=e=>{const t=new URL(e,i.l);return t.origin!==s.location.origin?t.href:t.pathname},X=e=>i.l=e,Y=new WeakMap,Z=e=>Y.get(e),ee=(e,t)=>Y.set(t.i=e,t),te=(e,t)=>{const n={t:0,S:e,C:t,N:new Map};return n.T=new Promise((e=>n.U=e)),n.F=new Promise((e=>n.R=e)),e["s-p"]=[],e["s-rc"]=[],a(e,n,t.A),Y.set(e,n)},ne=(e,t)=>t in e,le=(e,t)=>(0,console.error)(e,t),se=new Map,oe=e=>{const t=e.p.replace(/-/g,"_"),n=e.H,l=se.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(se.set(n,e),e[t])),le)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},ie=new Map,re=[],ce=[],ae=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&i.t?pe(fe):i.raf(fe))},ue=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){le(e)}e.length=0},fe=()=>{ue(re),ue(ce),(l=re.length>0)&&i.raf(fe)},pe=e=>r().then(e),de=ae(ce,!0);export{g as H,Q as a,K as b,D as c,_ as f,E as g,w as h,r as p,ee as r,X as s}
@@ -1 +0,0 @@
1
- import{r as t,c as i,f as s,h as e,H as o,g as h}from"./p-b0b3989b.js";import{k as n,g as r,s as a,c}from"./p-c05f2638.js";var d;!function(t){t.buttonData="Props of the button (when isButton is set to true).",t.isButton="The component will be rendered as a button, which opens the link associated to the iframe in another tab when clicked.",t.src="The address the iframe should be referencing to."}(d||(d={}));const p=class{constructor(s){t(this,s),this.kupIframeError=i(this,"kup-iframe-error",6),this.kupIframeLoad=i(this,"kup-iframe-load",6),this.buttonData={},this.isButton=!1,this.src=void 0,this.kupManager=n()}onKupIframeError(){this.kupIframeError.emit({comp:this,id:this.rootElement.id})}onKupIframeLoad(){this.kupIframeLoad.emit({comp:this,id:this.rootElement.id})}async getProps(t){return r(this,d,t)}async refresh(){s(this)}async setProps(t){a(this,d,t)}openInNew(){window.open(this.src,"_blank")}componentWillLoad(){this.kupManager.debug.logLoad(this,!1)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){if(null!=this.src&&""!==this.src)return this.buttonData.icon||(this.buttonData.icon="open_in_new"),this.buttonData.label||(this.buttonData.label="Open in new tab"),this.isButton?e(o,{"is-button":!0},e("kup-button",Object.assign({},this.buttonData,{"onkup-button-click":()=>this.openInNew()}))):e(o,{"is-iframe":!0},e("iframe",{onError:this.onKupIframeError.bind(this),onLoad:this.onKupIframeLoad.bind(this),src:this.src}));this.kupManager.debug.logMessage(this,"Resource undefined, not rendering!",c.WARNING)}get rootElement(){return h(this)}};p.style="iframe{box-sizing:border-box;height:100%;width:100%}:host([is-iframe]){box-sizing:border-box;display:block;height:100%;width:100%}";export{p as kup_iframe}
@@ -1 +0,0 @@
1
- import{ak as e,al as c,b as t,am as a,an as s,ao as n,ah as l,ap as i,aq as r,ae as u,ar as o}from"./p-c05f2638.js";import{h as p}from"./p-b0b3989b.js";import{F as b}from"./p-5552f156.js";import{F as k}from"./p-6f3040fb.js";import{F as d}from"./p-20221a50.js";import{a as h}from"./p-e6ebdb80.js";const f=e=>p("div",Object.assign({class:`f-switch ${e.danger?"kup-danger":""} ${e.info?"kup-info":""} ${e.secondary?"kup-secondary":""} ${e.success?"kup-success":""} ${e.warning?"kup-warning":""} ${e.wrapperClass?e.wrapperClass:""}`},e.dataSet,{id:e.id,title:e.title}),p("div",{class:"form-field "+(e.leadingLabel?"form-field--align-end":"")},p("div",{class:`switch ${e.checked?"switch--checked":""} ${e.disabled?"switch--disabled":""}`},p("div",{class:"switch__track"}),p("div",{class:"switch__thumb-underlay"},p("div",{class:"switch__thumb"},p("input",{type:"checkbox",class:"switch__native-control",role:"switch",checked:e.checked,disabled:e.disabled,value:e.checked?"on":"off",onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus})))),p("label",{onClick:e.onChange},e.label))),m=document.documentElement,j=(n,r)=>{const j=n.cell,O=n.column,_=n.row,x=n.shape?n.shape:j.shape?j.shape:O.shape?O.shape:null,$=!m.ketchup.objects.isEmptyKupObj(j.obj),y=!(!j.isEditable||!n.editable),C=n.previousValue!==j.value?j.value:"",z=m.ketchup.data.cell.getType(j,x),F=Object.assign({},j.data);let V=j.cssClass?j.cssClass:O.cssClass?O.cssClass:"";const H={"f-cell":!0,[i.OBJ]:!!$,[z+"-cell"]:!0,[n.wrapperClass]:!!n.wrapperClass,[n.density]:!(!n.density||z===a.BAR),[V]:!!V};let I=C;y&&e.includes(z)?I=function(e,c,t,s,n){switch(e){case a.AUTOCOMPLETE:return p("kup-autocomplete",Object.assign({initialValue:t.value},t.data,{class:g(n)?"kup-full-width":"","onkup-autocomplete-change":c=>v(c,n,e,o.UPDATE),"onkup-autocomplete-input":c=>v(c,n,e,o.INPUT),"onkup-autocomplete-iconclick":c=>v(c,n,e,o.ICON_CLICK)}));case a.CHECKBOX:return w(n)&&(c[i.C_CENTERED]=!0),p(b,Object.assign({},t.data,{onChange:c=>v(c,n,e,o.UPDATE)}));case a.COLOR_PICKER:return p("kup-color-picker",Object.assign({initialValue:t.value},t.data,{class:g(n)?"kup-full-width":"",disabled:!1,"onkup-colorpicker-change":c=>v(c,n,e,o.UPDATE)}));case a.COMBOBOX:return p("kup-combobox",Object.assign({initialValue:t.value},t.data,{class:g(n)?"kup-full-width":"","onkup-combobox-change":c=>v(c,n,e,o.UPDATE),"onkup-combobox-input":c=>v(c,n,e,o.INPUT),"onkup-combobox-iconclick":c=>v(c,n,e,o.ICON_CLICK)}));case a.DATE:return p("kup-date-picker",Object.assign({initialValue:t.value},t.data,{class:g(n)?"kup-full-width":"","onkup-datepicker-change":c=>v(c,n,e,o.UPDATE),"onkup-datepicker-input":c=>v(c,n,e,o.INPUT)}));case a.RATING:return p("kup-rating",Object.assign({},t.data,{disabled:!1,"onkup-rating-click":c=>v(c,n,e,o.UPDATE)}));case a.SWITCH:return p(f,Object.assign({},t.data,{disabled:!1,onChange:c=>v(c,n,e,o.UPDATE)}));case a.TIME:return p("kup-time-picker",Object.assign({initialValue:t.value},t.data,{class:g(n)?"kup-full-width":"","onkup-timepicker-change":c=>v(c,n,e,o.UPDATE),"onkup-timepicker-input":c=>v(c,n,e,o.INPUT)}));case a.NUMBER:c[i.C_RIGHT_ALIGNED]=!0;case a.STRING:return p(k,Object.assign({inputType:e===a.NUMBER?"number":null,fullWidth:!!g(n)},t.data,{icon:t.icon?t.icon:s.icon?s.icon:null,value:e===a.NUMBER?l(t.value).toString():t.value,onChange:c=>v(c,n,e,o.UPDATE),onInput:c=>v(c,n,e,o.INPUT),onIconClick:c=>v(c,n,e,o.ICON_CLICK)}))}}(z,H,j,O,n):j.data&&c.includes(z)?(n.setSizes&&function(e,c,t){switch(e){case a.BAR:c.sizeY||(c.sizeY="26px");break;case a.BUTTON:let e="";c.label&&(e="36px"),t.style?t.style.height||(t.style.minHeight=e):t.style={minHeight:e};break;case a.CHART:c.sizeX||(c.sizeX="100%"),c.sizeY||(c.sizeY="100%");break;case a.CHIP:case a.RADIO:t.style?t.style.height||(t.style.minHeight="40px"):t.style={minHeight:"40px"}}}(z,F,j),I=n.renderKup?function(e,c,t,s,n,r,u){switch(e){case a.BAR:return t.data?p("div",{style:{height:t.sizeY,width:"100%"}},p(d,Object.assign({},t))):p("kup-image",Object.assign({},t));case a.BUTTON:return w(u)&&(c[i.C_CENTERED]=!0),p("kup-button",Object.assign({},t,{"onkup-button-click":c=>v(c,u,e,o.CLICK)}));case a.BUTTON_LIST:return w(u)&&(c[i.C_CENTERED]=!0),t["data-storage"]={cell:s,row:n,column:r},p("kup-button-list",Object.assign({},t));case a.CHART:return w(u)&&(c[i.C_CENTERED]=!0),p("kup-chart",Object.assign({},t));case a.CHIP:return p(h,Object.assign({},t));case a.COLOR_PICKER:return p("kup-color-picker",Object.assign({},t,{class:g(u)?"kup-full-width":"",disabled:!0}));case a.GAUGE:return p("kup-gauge",Object.assign({value:l(s.value),"width-component":"280px"},t));case a.KNOB:case a.PROGRESS_BAR:return p("kup-progress-bar",Object.assign({},t));case a.RADIO:return w(u)&&(c[i.C_CENTERED]=!0),t.disabled=n.readOnly,p("kup-radio",Object.assign({},t));case a.RATING:return p("kup-rating",Object.assign({},t,{disabled:!0}))}}(z,H,F,j,_,O,n):p("span",{class:"cell-"+z+" placeholder"})):(n.setSizes&&function(e,c,t,n){switch(e){case a.CHECKBOX:case a.ICON:c.sizeX||(c.sizeX="18px"),c.sizeY||(c.sizeY="18px"),t.style?t.style.height||(t.style.minHeight=c.sizeY):t.style={minHeight:c.sizeY};break;case a.IMAGE:n.component.rootElement.tagName===s.BOX?(c.sizeY||(c.sizeY="auto"),void 0===c.fit&&(c.fit=!0)):c.sizeX||(c.sizeX="auto"),c.sizeY||(c.sizeY="64px")}}(z,F,j,n),I=function(e,c,t,s,n,r,o){switch(e){case a.AUTOCOMPLETE:case a.COMBOBOX:case a.DATE:case a.DATETIME:case a.TIME:if(t&&""!=t){const e=u(r,n);return p("div",{class:"f-cell__text"},e)}return t;case a.CHECKBOX:return w(o)&&(s[i.C_CENTERED]=!0),p(d,{resource:c.checked?"check_box":"check_box_outline_blank",sizeX:"18px",sizeY:"18px"});case a.EDITOR:return p("div",{innerHTML:n.value});case a.ICON:case a.IMAGE:return w(o)&&(s[i.C_CENTERED]=!0),c.badgeData&&(s[i.C_PADDED]=!0),p(d,Object.assign({},c));case a.LINK:return p("a",{href:t,target:"_blank"},n.value);case a.NUMBER:if(t&&""!=t){const e=l(n.value),c=u(r,n);return e<0&&(s[i.TEXT_DANGER]=!0),w(o)&&(s[i.C_RIGHT_ALIGNED]=!0),p("div",{class:"f-cell__text"},c)}return p("div",{class:"f-cell__text"},t);case a.SWITCH:return w(o)&&(s[i.C_CENTERED]=!0),c.disabled=!0,p(f,Object.assign({},c));default:return p("div",{class:"f-cell__text"},t)}}(z,F,I,H,j,O,n));let T=null;!y&&(O.icon||j.icon)&&I&&(T=p(d,Object.assign({},{color:`rgba(var(${t.TEXT}-rgb), 0.375)`,resource:j.icon?j.icon:O.icon,sizeX:"1.25em",sizeY:"1.25em",wrapperClass:"obj-icon"})));let X=null;m.ketchup.debug.isDebug()&&$?X=j.obj.t+"; "+j.obj.p+"; "+j.obj.k+";":null!=j.title&&""!=j.title.trim()&&(X=j.title);let Y=null;if(j.info){const e=Object.assign({},j.info);e.color||(e.color=`var(${t.INFO})`),e.icon||(e.icon="info"),Y=p(d,Object.assign({},{color:e.color,resource:e.icon,sizeX:"1.25em",sizeY:"1.25em",title:e.message?e.message:"",wrapperClass:"cell-info"}))}return p("div",{class:H,"kup-get-cell-props":()=>n,style:j.style},p("div",{class:"f-cell__content",style:j.styleContent,title:X},r&&r.length>0?r:[n.indents,Y,T,I]))};function v(e,c,t,s){const n=c.cell,l=c.column,i=c.component,r=c.row;let p="INPUT"===e.target.tagName?e.target.value:e.detail.value;if(s===o.UPDATE){switch(t){case a.AUTOCOMPLETE:case a.COMBOBOX:case a.DATE:case a.TIME:n.data&&(n.data.initialValue=p);break;case a.CHECKBOX:case a.SWITCH:p="on"===p?"0":"1",n.data&&(n.data.checked="0"!==p)}n.obj&&(n.obj.k=p.toString()),n.value=p.toString(),n.displayedValue=null,n.displayedValue=u(l,n)}if(i&&i.rootElement){const c=new CustomEvent(s,{bubbles:!0,cancelable:!0,composed:!0,detail:{comp:i,id:i.rootElement.id,cell:n,column:l,event:e,row:r,type:t}});i.rootElement.dispatchEvent(c);try{i.refresh()}catch(e){}}}function w(e){var c;return r.includes(null===(c=e.component)||void 0===c?void 0:c.rootElement.tagName)}function g(e){var c;return n.includes(null===(c=e.component)||void 0===c?void 0:c.rootElement.tagName)}export{j as F,f as a}