@sme.up/ketchup 7.1.1 → 7.3.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 (227) hide show
  1. package/dist/cjs/{f-button-40953600.js → f-button-5856cd74.js} +2 -2
  2. package/dist/cjs/{f-cell-e603ae4f.js → f-cell-9d7a9e97.js} +59 -6
  3. package/dist/cjs/{f-checkbox-1097ca5d.js → f-checkbox-1148e791.js} +1 -1
  4. package/dist/cjs/{f-chip-01efabde.js → f-chip-675ed121.js} +6 -4
  5. package/dist/cjs/{f-image-f741cb4c.js → f-image-48facc89.js} +2 -2
  6. package/dist/cjs/{f-paginator-utils-35a6a848.js → f-paginator-utils-0c1227f6.js} +3 -3
  7. package/dist/cjs/{f-text-field-60a2f24c.js → f-text-field-3d8e7417.js} +2 -2
  8. package/dist/cjs/{index-ffdb46f6.js → index-1f177abc.js} +120 -2
  9. package/dist/cjs/ketchup.cjs.js +10 -3
  10. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  11. package/dist/cjs/{kup-autocomplete_26.cjs.entry.js → kup-autocomplete_27.cjs.entry.js} +1066 -898
  12. package/dist/cjs/kup-box.cjs.entry.js +9 -9
  13. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  14. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  15. package/dist/cjs/kup-dash-list.cjs.entry.js +8 -5
  16. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  17. package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
  18. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  19. package/dist/cjs/kup-echart.cjs.entry.js +89 -16
  20. package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
  21. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  22. package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
  23. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  25. package/dist/cjs/{kup-manager-6f05ebe1.js → kup-manager-22bb9699.js} +61 -17
  26. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  27. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  28. package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  30. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  32. package/dist/cjs/loader.cjs.js +4 -3
  33. package/dist/collection/assets/card.js +10 -0
  34. package/dist/collection/assets/data-table.js +44 -0
  35. package/dist/collection/assets/dialog.js +0 -0
  36. package/dist/collection/assets/echart.js +146 -0
  37. package/dist/collection/assets/index.js +4 -0
  38. package/dist/collection/collection-manifest.json +3 -2
  39. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +4 -1
  40. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +3 -3
  41. package/dist/collection/components/kup-card/built-in/kup-card-message-box.js +10 -0
  42. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +12 -0
  43. package/dist/collection/components/kup-card/kup-card.css +12 -23
  44. package/dist/collection/components/kup-card/kup-card.js +1 -40
  45. package/dist/collection/components/kup-chip/kup-chip-declarations.js +2 -0
  46. package/dist/collection/components/kup-chip/kup-chip.js +122 -4
  47. package/dist/collection/components/kup-combobox/kup-combobox.js +4 -2
  48. package/dist/collection/components/kup-dash-list/kup-dash-list.js +6 -3
  49. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  50. package/dist/collection/components/kup-data-table/kup-data-table.js +12 -23
  51. package/dist/collection/components/kup-dialog/kup-dialog-declarations.js +14 -0
  52. package/dist/collection/components/kup-dialog/kup-dialog.css +65 -0
  53. package/dist/collection/components/kup-dialog/kup-dialog.js +467 -0
  54. package/dist/collection/components/kup-echart/kup-echart-declarations.js +1 -0
  55. package/dist/collection/components/kup-echart/kup-echart.js +86 -14
  56. package/dist/collection/components/kup-form/kup-form.js +24 -0
  57. package/dist/collection/components/kup-list/kup-list-helper.js +6 -4
  58. package/dist/collection/components/kup-list/kup-list.js +0 -6
  59. package/dist/collection/f-components/f-cell/f-cell-declarations.js +7 -0
  60. package/dist/collection/f-components/f-cell/f-cell.js +17 -0
  61. package/dist/collection/f-components/f-chip/f-chip.js +3 -1
  62. package/dist/collection/managers/kup-data/kup-data.js +4 -0
  63. package/dist/collection/managers/kup-interact/kup-interact.js +33 -1
  64. package/dist/collection/managers/kup-manager/kup-manager.js +3 -4
  65. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -0
  66. package/dist/collection/types/GenericTypes.js +1 -0
  67. package/dist/components/index.d.ts +9 -50
  68. package/dist/components/index.js +1 -48
  69. package/dist/components/kup-accordion.js +18 -13
  70. package/dist/components/kup-autocomplete.js +1 -1
  71. package/dist/components/kup-autocomplete2.js +2802 -2492
  72. package/dist/components/kup-badge.js +1 -1
  73. package/dist/components/kup-box2.js +18 -13
  74. package/dist/components/kup-button-list.js +1 -1
  75. package/dist/components/kup-button.js +1 -1
  76. package/dist/components/kup-calendar.js +18 -13
  77. package/dist/components/kup-card.js +1 -1
  78. package/dist/components/kup-cell.js +18 -13
  79. package/dist/components/kup-chart.js +1 -1
  80. package/dist/components/kup-checkbox.js +1 -1
  81. package/dist/components/kup-chip.js +1 -1
  82. package/dist/components/kup-color-picker.js +1 -1
  83. package/dist/components/kup-combobox.js +1 -1
  84. package/dist/components/kup-dash-list.js +26 -18
  85. package/dist/components/kup-dash2.js +18 -13
  86. package/dist/components/kup-dashboard.js +18 -13
  87. package/dist/components/kup-data-table.js +1 -1
  88. package/dist/components/kup-date-picker.js +1 -1
  89. package/dist/components/kup-dialog.d.ts +11 -0
  90. package/dist/components/kup-dialog.js +6 -0
  91. package/dist/components/kup-drawer.js +18 -13
  92. package/dist/components/kup-dropdown-button.js +1 -1
  93. package/dist/components/kup-echart2.js +105 -27
  94. package/dist/components/kup-family-tree.js +20 -15
  95. package/dist/components/kup-form.js +1 -1
  96. package/dist/components/kup-gauge.js +1 -1
  97. package/dist/components/kup-grid2.js +18 -13
  98. package/dist/components/kup-iframe.js +18 -13
  99. package/dist/components/kup-image-list.js +18 -13
  100. package/dist/components/kup-image.js +1 -1
  101. package/dist/components/kup-lazy.js +18 -13
  102. package/dist/components/kup-list.js +1 -1
  103. package/dist/components/kup-magic-box.js +20 -15
  104. package/dist/components/kup-nav-bar.js +18 -13
  105. package/dist/components/kup-numeric-picker.js +18 -13
  106. package/dist/components/kup-photo-frame.js +18 -13
  107. package/dist/components/kup-probe.js +18 -13
  108. package/dist/components/kup-progress-bar.js +1 -1
  109. package/dist/components/kup-qlik.js +18 -13
  110. package/dist/components/kup-radio.js +1 -1
  111. package/dist/components/kup-rating.js +1 -1
  112. package/dist/components/kup-snackbar.js +18 -13
  113. package/dist/components/kup-spinner.js +1 -1
  114. package/dist/components/kup-switch.js +1 -1
  115. package/dist/components/kup-tab-bar.js +1 -1
  116. package/dist/components/kup-text-field.js +1 -1
  117. package/dist/components/kup-time-picker.js +1 -1
  118. package/dist/components/kup-tree.js +1 -1
  119. package/dist/esm/{f-button-9aec1bc5.js → f-button-eedbdba1.js} +2 -2
  120. package/dist/esm/{f-cell-556937d0.js → f-cell-90a418d2.js} +60 -7
  121. package/dist/esm/{f-checkbox-b721178e.js → f-checkbox-9b3f5f5b.js} +1 -1
  122. package/dist/esm/{f-chip-677db32a.js → f-chip-45e7b3f6.js} +6 -4
  123. package/dist/esm/{f-image-52bb5950.js → f-image-3026f0fe.js} +2 -2
  124. package/dist/esm/{f-paginator-utils-d472e336.js → f-paginator-utils-6369da7c.js} +3 -3
  125. package/dist/esm/{f-text-field-88f92118.js → f-text-field-3b70a6f0.js} +2 -2
  126. package/dist/esm/{index-a2197376.js → index-8bd38435.js} +120 -3
  127. package/dist/esm/ketchup.js +7 -3
  128. package/dist/esm/kup-accordion.entry.js +3 -3
  129. package/dist/esm/{kup-autocomplete_26.entry.js → kup-autocomplete_27.entry.js} +1047 -880
  130. package/dist/esm/kup-box.entry.js +9 -9
  131. package/dist/esm/kup-calendar.entry.js +5 -5
  132. package/dist/esm/kup-cell.entry.js +7 -7
  133. package/dist/esm/kup-dash-list.entry.js +8 -5
  134. package/dist/esm/kup-dash_2.entry.js +2 -2
  135. package/dist/esm/kup-dashboard.entry.js +6 -6
  136. package/dist/esm/kup-drawer.entry.js +2 -2
  137. package/dist/esm/kup-echart.entry.js +89 -16
  138. package/dist/esm/kup-family-tree.entry.js +4 -4
  139. package/dist/esm/kup-iframe.entry.js +2 -2
  140. package/dist/esm/kup-image-list.entry.js +8 -8
  141. package/dist/esm/kup-lazy.entry.js +2 -2
  142. package/dist/esm/kup-magic-box.entry.js +3 -3
  143. package/dist/esm/{kup-manager-12e99c22.js → kup-manager-cad802b1.js} +62 -18
  144. package/dist/esm/kup-nav-bar.entry.js +2 -2
  145. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  146. package/dist/esm/kup-photo-frame.entry.js +2 -2
  147. package/dist/esm/kup-probe.entry.js +2 -2
  148. package/dist/esm/kup-qlik.entry.js +2 -2
  149. package/dist/esm/kup-snackbar.entry.js +4 -4
  150. package/dist/esm/loader.js +4 -3
  151. package/dist/esm/polyfills/css-shim.js +1 -1
  152. package/dist/ketchup/ketchup.esm.js +1 -1
  153. package/dist/ketchup/{p-60609877.entry.js → p-138ac8b9.entry.js} +1 -1
  154. package/dist/ketchup/{p-94290b09.entry.js → p-1ad48de4.entry.js} +1 -1
  155. package/dist/ketchup/{p-053824eb.entry.js → p-1cd45a72.entry.js} +1 -1
  156. package/dist/ketchup/{p-ad3e7b2b.entry.js → p-2217be0a.entry.js} +1 -1
  157. package/dist/ketchup/{p-e094ebb8.entry.js → p-23288eed.entry.js} +1 -1
  158. package/dist/ketchup/p-263b2c73.entry.js +1 -0
  159. package/dist/ketchup/{p-c59e6bc7.entry.js → p-2d8b5bba.entry.js} +1 -1
  160. package/dist/ketchup/p-32dc31ad.js +1 -0
  161. package/dist/ketchup/p-4505a48d.js +1 -0
  162. package/dist/ketchup/p-4e68f629.entry.js +1 -0
  163. package/dist/ketchup/p-5a1387bf.entry.js +9 -0
  164. package/dist/ketchup/p-70a0bc02.entry.js +1 -0
  165. package/dist/ketchup/p-73becdb8.entry.js +1 -0
  166. package/dist/ketchup/p-78b093e3.entry.js +39 -0
  167. package/dist/ketchup/p-79b0730b.js +1 -1
  168. package/dist/ketchup/{p-9570ebfa.js → p-7bd28eac.js} +1 -1
  169. package/dist/ketchup/{p-ce1da4a8.entry.js → p-97afbd71.entry.js} +1 -1
  170. package/dist/ketchup/p-9dcfbb1e.js +2 -0
  171. package/dist/ketchup/p-9f1184cd.entry.js +27 -0
  172. package/dist/ketchup/{p-23cd5a68.js → p-9f9b6656.js} +1 -1
  173. package/dist/ketchup/{p-4f7302a9.js → p-a1adab40.js} +1 -1
  174. package/dist/ketchup/p-a7ae0b4d.js +1 -0
  175. package/dist/ketchup/{p-88adddcf.entry.js → p-a89f0884.entry.js} +1 -1
  176. package/dist/ketchup/{p-25617855.js → p-ae3e0d31.js} +1 -1
  177. package/dist/ketchup/{p-ac33139e.entry.js → p-b0675bce.entry.js} +1 -1
  178. package/dist/ketchup/{p-485883cb.entry.js → p-b1da7902.entry.js} +1 -1
  179. package/dist/ketchup/p-b63a5a44.js +30 -0
  180. package/dist/ketchup/{p-f44aba79.entry.js → p-bb6921bc.entry.js} +1 -1
  181. package/dist/ketchup/{p-3a7a05a7.entry.js → p-c1d8fd43.entry.js} +1 -1
  182. package/dist/ketchup/p-d0f4457e.entry.js +1 -0
  183. package/dist/ketchup/p-fe34fa6e.entry.js +1 -0
  184. package/dist/loader/index.d.ts +9 -0
  185. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +4 -2
  186. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +1 -1
  187. package/dist/types/components/kup-card/built-in/{kup-card-form.d.ts → kup-card-message-box.d.ts} +1 -1
  188. package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +6 -0
  189. package/dist/types/components/kup-card/kup-card-declarations.d.ts +6 -8
  190. package/dist/types/components/kup-card/kup-card.d.ts +0 -5
  191. package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +5 -0
  192. package/dist/types/components/kup-chip/kup-chip.d.ts +16 -1
  193. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -1
  194. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
  195. package/dist/types/components/kup-dialog/kup-dialog-declarations.d.ts +26 -0
  196. package/dist/types/components/kup-dialog/kup-dialog.d.ts +77 -0
  197. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +2 -1
  198. package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +1 -1
  199. package/dist/types/components/kup-form/kup-form.d.ts +6 -1
  200. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -1
  201. package/dist/types/components.d.ts +193 -11
  202. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +4 -0
  203. package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +1 -0
  204. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +2 -1
  205. package/dist/types/managers/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -1
  206. package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +2 -2
  207. package/dist/types/managers/kup-interact/kup-interact.d.ts +11 -0
  208. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +1 -1
  209. package/dist/types/stencil-public-runtime.d.ts +71 -15
  210. package/dist/types/types/GenericTypes.d.ts +1 -0
  211. package/dist/types/utils/filters/filters-declarations.d.ts +2 -0
  212. package/package.json +2 -2
  213. package/dist/collection/components/kup-card/built-in/kup-card-form.js +0 -11
  214. package/dist/ketchup/p-1c371df3.entry.js +0 -39
  215. package/dist/ketchup/p-278188bf.js +0 -1
  216. package/dist/ketchup/p-4021d751.entry.js +0 -1
  217. package/dist/ketchup/p-4fdb684f.js +0 -2
  218. package/dist/ketchup/p-52f19c4f.entry.js +0 -1
  219. package/dist/ketchup/p-5483f20e.js +0 -30
  220. package/dist/ketchup/p-584369be.entry.js +0 -1
  221. package/dist/ketchup/p-6a6c3e69.entry.js +0 -27
  222. package/dist/ketchup/p-751b5708.js +0 -1
  223. package/dist/ketchup/p-775e0d34.entry.js +0 -1
  224. package/dist/ketchup/p-7e013c24.entry.js +0 -1
  225. package/dist/ketchup/p-85c7a3a4.js +0 -1
  226. package/dist/ketchup/p-a3c849ae.entry.js +0 -9
  227. package/dist/ketchup/p-e0135ce0.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as i,f as s,h as e,H as o,g as h}from"./p-4fdb684f.js";import{k as n,g as r,s as a,c as d}from"./p-5483f20e.js";var c;!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."}(c||(c={}));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.kupManager=n(),this.buttonData={},this.isButton=!1,this.src=void 0}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,c,t)}async refresh(){s(this)}async setProps(t){a(this,c,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!",d.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
+ import{r as t,c as i,f as s,h as e,H as o,g as h}from"./p-9dcfbb1e.js";import{k as n,g as r,s as a,c as d}from"./p-b63a5a44.js";var c;!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."}(c||(c={}));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.kupManager=n(),this.buttonData={},this.isButton=!1,this.src=void 0}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,c,t)}async refresh(){s(this)}async setProps(t){a(this,c,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!",d.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 +1 @@
1
- import{r as t,c as n,h as i,g as a,f as e,H as l}from"./p-4fdb684f.js";import{k as s,g as o,s as d,c as r}from"./p-5483f20e.js";import{c}from"./p-97e8ea42.js";const u=class{constructor(i){t(this,i),this.dashClick=n(this,"kup-dash-click",6),this.kupManager=s(),this.active=!1,this.fontsize="",this.layout="1",this.index=0}onDshClickHandler(){this.dashClick.emit({id:this.index})}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(){let t=null;switch(this.layout){case"2":t=i("div",null,i("div",{class:"icon"},i("slot",{name:"icon"})),i("div",{class:"value-int"},i("slot",{name:"value-int"})),i("div",{class:"value-dec"},i("slot",{name:"value-dec"})),i("div",{class:"unit"},i("slot",{name:"unit"})));break;case"3":t=i("div",null,i("div",{class:"value"},i("slot",{name:"value"})),i("div",{class:"descr"},i("slot",{name:"descr"})));break;case"4":t=i("div",null,i("div",{class:"icon"},i("slot",{name:"icon"})),i("div",{class:"value-and-unit"},i("div",{class:"value-int"},i("slot",{name:"value-int"})),i("div",{class:"value-dec"},i("slot",{name:"value-dec"})),i("div",{class:"unit"},i("slot",{name:"unit"}))),i("div",null),i("div",{class:"descr"},i("slot",{name:"descr"})));break;case"5":t=i("div",null,i("div",null,i("div",{class:"descr"},i("slot",{name:"descr"})),i("div",{class:"value"},i("slot",{name:"value"}))),i("div",{class:"icon"},i("slot",{name:"icon"})));break;case"6":t=i("div",null,i("div",{class:"icon"},i("slot",{name:"icon"})),i("div",null,i("div",{class:"value"},i("slot",{name:"value"})),i("div",{class:"descr"},i("slot",{name:"descr"}))));break;case"7":t=i("div",null,i("div",null,i("div",{class:"value"},i("slot",{name:"value"})),i("div",{class:"descr"},i("slot",{name:"descr"}))),i("div",{class:"icon"},i("slot",{name:"icon"})));break;case"8":t=i("div",null,i("div",{class:"icon"},i("slot",{name:"icon"})),i("div",{class:"value"},i("slot",{name:"value"})),i("div",{class:"descr"},i("slot",{name:"descr"})));break;default:t=i("div",null,i("div",{class:"descr"},i("slot",{name:"descr"})),i("div",{class:"value"},i("slot",{name:"value"})))}return i("div",{id:"dash",class:this.active?"with-dyn":"",style:{fontSize:this.fontsize},onClick:()=>this.onDshClickHandler()},i("div",{id:"content",class:`layout-${this.layout} `},t))}get rootElement(){return a(this)}};var g;u.style="#dash{color:var(--kup-text-color);font-size:2vw;display:flex;align-items:center;justify-content:center;position:relative;text-align:center;position:relative;word-break:normal}#dash.with-dyn{cursor:pointer}#dash #content .icon{margin:auto;font-size:90%}#dash #content.layout-1,#dash #content.layout-3{text-align:center}#dash #content.layout-1 .descr,#dash #content.layout-3 .descr{font-size:70%;width:100%}#dash #content.layout-1 .value,#dash #content.layout-3 .value{font-size:220%}#dash #content.layout-2>div{display:flex}#dash #content.layout-2>div .icon{margin:auto;font-size:150%;margin-right:5%}#dash #content.layout-2>div .value-int{font-size:250%}#dash #content.layout-2>div .value-dec,#dash #content.layout-2>div .unit{font-size:130%;margin-top:auto;margin-bottom:7%}#dash #content.layout-2>div .value-dec{margin-left:2%}#dash #content.layout-2>div .unit{margin-left:4%}#dash #content.layout-4>div{display:grid;grid-template-columns:2fr 5fr}#dash #content.layout-4>div .icon{margin:auto;font-size:150%;margin-right:5%}#dash #content.layout-4>div .value-and-unit{display:flex}#dash #content.layout-4>div .value-and-unit .value-int{font-size:250%}#dash #content.layout-4>div .value-and-unit .value-dec,#dash #content.layout-4>div .value-and-unit .unit{font-size:130%;margin-top:auto;margin-bottom:7%}#dash #content.layout-4>div .value-and-unit .value-dec{margin-left:2%}#dash #content.layout-4>div .value-and-unit .unit{margin-left:4%}#dash #content.layout-4>div .descr{margin-left:4%;text-align:left;font-size:80%;width:100%;min-width:max-content}#dash #content.layout-5>div,#dash #content.layout-7>div{display:flex}#dash #content.layout-5>div .icon,#dash #content.layout-7>div .icon{font-size:150%;margin:auto;margin-left:10%}#dash #content.layout-5>div .value,#dash #content.layout-7>div .value{font-size:200%}#dash #content.layout-5>div .descr,#dash #content.layout-7>div .descr{text-align:right;font-size:65%;width:100%;min-width:max-content}#dash #content.layout-6>div{display:flex;justify-content:space-between}#dash #content.layout-6>div .icon{font-size:150%;margin-right:10%}#dash #content.layout-6>div .value{font-size:220%;text-align:right}#dash #content.layout-6>div .descr{font-size:80%;text-align:right;width:100%;min-width:max-content}#dash #content.layout-8>div{display:flex;align-items:center}#dash #content.layout-8>div .icon{margin-right:4%;font-size:75%}#dash #content.layout-8>div .value{margin:0 10%;font-size:250%}#dash #content.layout-8>div .descr{font-size:60%;text-align:left}",function(t){t.columns="The number of columns displayed by the grid, the default behavior is 12.",t.customStyle="Custom style of the component. For more information: https://ketchup.smeup.com/ketchup-showcase/#/customization",t.singleLine="When set to true, forces the content on a single line."}(g||(g={}));const p=class{constructor(n){t(this,n),this.kupManager=s(),this.columns=12,this.customStyle="",this.singleLine=!1}async getProps(t){return o(this,g,t)}async refresh(){e(this)}async setProps(t){d(this,g,t)}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){const t=this.rootElement.children;if(!t||0===t.length)return void this.kupManager.debug.logMessage(this,"Missing slots, not rendering!",r.WARNING);const n=[];for(let a=0;a<t.length;a++){let e=null;if(this.singleLine)e=i("slot",{name:`${a}`});else{const n=t[a].span||t[a].getAttribute("span")||1;e=i("div",{class:`layout-grid__cell layout-grid__cell--span-${n}`},i("slot",{name:`${a}`}))}n.push(e)}const a={};return this.columns&&12!==this.columns&&(a["--kup_grid_columns"]=this.columns),i(l,{style:a},i("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),i("div",{id:c},i("div",{class:this.singleLine?"flex-layout":"layout-grid"},i("div",{class:this.singleLine?"flex-layout__inner":"layout-grid__inner"},n))))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return a(this)}};p.style=":host{--kup_grid_font_size:var(--kup-grid-font-size, var(--kup-font-size));--kup_grid_gap:var(--kup-grid-gap, 24px);--kup_grid_gap_mobile:var(--kup-grid-gap-mobile, 16px);--kup_grid_padding:var(--kup-grid-padding, 24px);font-size:var(--kup_grid_font_size);height:100%;width:100%}#kup-component{height:100%;width:100%}.layout-grid{box-sizing:border-box;margin:0px auto;padding:var(--kup_grid_padding)}.layout-grid .layout-grid__inner{display:grid;margin:0px;grid-gap:var(--kup_grid_gap);grid-template-columns:repeat(var(--kup_grid_columns, 12), minmax(0px, 1fr))}.layout-grid .layout-grid__inner .layout-grid__cell{box-sizing:border-box;display:flex;justify-content:center;margin:0px;width:auto}.layout-grid__cell--span-1{grid-column-end:span 1}.layout-grid__cell--span-2{grid-column-end:span 2}.layout-grid__cell--span-3{grid-column-end:span 3}.layout-grid__cell--span-4{grid-column-end:span 4}.layout-grid__cell--span-5{grid-column-end:span 5}.layout-grid__cell--span-6{grid-column-end:span 6}.layout-grid__cell--span-7{grid-column-end:span 7}.layout-grid__cell--span-8{grid-column-end:span 8}.layout-grid__cell--span-9{grid-column-end:span 9}.layout-grid__cell--span-10{grid-column-end:span 10}.layout-grid__cell--span-11{grid-column-end:span 11}.layout-grid__cell--span-12{grid-column-end:span 12}.layout-grid__cell--span-13{grid-column-end:span 13}.layout-grid__cell--span-14{grid-column-end:span 14}.layout-grid__cell--span-15{grid-column-end:span 15}.layout-grid__cell--span-16{grid-column-end:span 16}.layout-grid__cell--span-17{grid-column-end:span 17}.layout-grid__cell--span-18{grid-column-end:span 18}.layout-grid__cell--span-19{grid-column-end:span 19}.layout-grid__cell--span-20{grid-column-end:span 20}.layout-grid__cell--span-21{grid-column-end:span 21}.layout-grid__cell--span-22{grid-column-end:span 22}.layout-grid__cell--span-23{grid-column-end:span 23}.layout-grid__cell--span-24{grid-column-end:span 24}.flex-layout,.flex-layout__inner{height:100%;align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap}.flex-layout__inner{width:auto}.flex-layout__inner *{display:block;margin:0 1.5em}.flex-layout__inner .flex-layout__cell{display:flex}.flex-layout__inner .flex-layout__cell *{justify-content:center;margin:auto}@media (min-width: 600px) and (max-width: 839px){.layout-grid .layout-grid__inner{display:grid;margin:0px;grid-gap:var(--kup_grid_gap_mobile);grid-template-columns:repeat(var(--kup_grid_columns, 8), minmax(0px, 1fr))}}@media (max-width: 599px){.layout-grid .layout-grid__inner{display:grid;margin:0px;grid-gap:var(--kup_grid_gap_mobile);grid-template-columns:repeat(var(--kup_grid_columns, 4), minmax(0px, 1fr))}}:host(.kup-full-width) .flex-layout__inner{width:100%}:host(.kup-full-width) .flex-layout__inner *{margin:auto}";export{u as kup_dash,p as kup_grid}
1
+ import{r as t,c as n,h as i,g as a,f as e,H as l}from"./p-9dcfbb1e.js";import{k as s,g as o,s as d,c as r}from"./p-b63a5a44.js";import{c}from"./p-97e8ea42.js";const u=class{constructor(i){t(this,i),this.dashClick=n(this,"kup-dash-click",6),this.kupManager=s(),this.active=!1,this.fontsize="",this.layout="1",this.index=0}onDshClickHandler(){this.dashClick.emit({id:this.index})}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(){let t=null;switch(this.layout){case"2":t=i("div",null,i("div",{class:"icon"},i("slot",{name:"icon"})),i("div",{class:"value-int"},i("slot",{name:"value-int"})),i("div",{class:"value-dec"},i("slot",{name:"value-dec"})),i("div",{class:"unit"},i("slot",{name:"unit"})));break;case"3":t=i("div",null,i("div",{class:"value"},i("slot",{name:"value"})),i("div",{class:"descr"},i("slot",{name:"descr"})));break;case"4":t=i("div",null,i("div",{class:"icon"},i("slot",{name:"icon"})),i("div",{class:"value-and-unit"},i("div",{class:"value-int"},i("slot",{name:"value-int"})),i("div",{class:"value-dec"},i("slot",{name:"value-dec"})),i("div",{class:"unit"},i("slot",{name:"unit"}))),i("div",null),i("div",{class:"descr"},i("slot",{name:"descr"})));break;case"5":t=i("div",null,i("div",null,i("div",{class:"descr"},i("slot",{name:"descr"})),i("div",{class:"value"},i("slot",{name:"value"}))),i("div",{class:"icon"},i("slot",{name:"icon"})));break;case"6":t=i("div",null,i("div",{class:"icon"},i("slot",{name:"icon"})),i("div",null,i("div",{class:"value"},i("slot",{name:"value"})),i("div",{class:"descr"},i("slot",{name:"descr"}))));break;case"7":t=i("div",null,i("div",null,i("div",{class:"value"},i("slot",{name:"value"})),i("div",{class:"descr"},i("slot",{name:"descr"}))),i("div",{class:"icon"},i("slot",{name:"icon"})));break;case"8":t=i("div",null,i("div",{class:"icon"},i("slot",{name:"icon"})),i("div",{class:"value"},i("slot",{name:"value"})),i("div",{class:"descr"},i("slot",{name:"descr"})));break;default:t=i("div",null,i("div",{class:"descr"},i("slot",{name:"descr"})),i("div",{class:"value"},i("slot",{name:"value"})))}return i("div",{id:"dash",class:this.active?"with-dyn":"",style:{fontSize:this.fontsize},onClick:()=>this.onDshClickHandler()},i("div",{id:"content",class:`layout-${this.layout} `},t))}get rootElement(){return a(this)}};var g;u.style="#dash{color:var(--kup-text-color);font-size:2vw;display:flex;align-items:center;justify-content:center;position:relative;text-align:center;position:relative;word-break:normal}#dash.with-dyn{cursor:pointer}#dash #content .icon{margin:auto;font-size:90%}#dash #content.layout-1,#dash #content.layout-3{text-align:center}#dash #content.layout-1 .descr,#dash #content.layout-3 .descr{font-size:70%;width:100%}#dash #content.layout-1 .value,#dash #content.layout-3 .value{font-size:220%}#dash #content.layout-2>div{display:flex}#dash #content.layout-2>div .icon{margin:auto;font-size:150%;margin-right:5%}#dash #content.layout-2>div .value-int{font-size:250%}#dash #content.layout-2>div .value-dec,#dash #content.layout-2>div .unit{font-size:130%;margin-top:auto;margin-bottom:7%}#dash #content.layout-2>div .value-dec{margin-left:2%}#dash #content.layout-2>div .unit{margin-left:4%}#dash #content.layout-4>div{display:grid;grid-template-columns:2fr 5fr}#dash #content.layout-4>div .icon{margin:auto;font-size:150%;margin-right:5%}#dash #content.layout-4>div .value-and-unit{display:flex}#dash #content.layout-4>div .value-and-unit .value-int{font-size:250%}#dash #content.layout-4>div .value-and-unit .value-dec,#dash #content.layout-4>div .value-and-unit .unit{font-size:130%;margin-top:auto;margin-bottom:7%}#dash #content.layout-4>div .value-and-unit .value-dec{margin-left:2%}#dash #content.layout-4>div .value-and-unit .unit{margin-left:4%}#dash #content.layout-4>div .descr{margin-left:4%;text-align:left;font-size:80%;width:100%;min-width:max-content}#dash #content.layout-5>div,#dash #content.layout-7>div{display:flex}#dash #content.layout-5>div .icon,#dash #content.layout-7>div .icon{font-size:150%;margin:auto;margin-left:10%}#dash #content.layout-5>div .value,#dash #content.layout-7>div .value{font-size:200%}#dash #content.layout-5>div .descr,#dash #content.layout-7>div .descr{text-align:right;font-size:65%;width:100%;min-width:max-content}#dash #content.layout-6>div{display:flex;justify-content:space-between}#dash #content.layout-6>div .icon{font-size:150%;margin-right:10%}#dash #content.layout-6>div .value{font-size:220%;text-align:right}#dash #content.layout-6>div .descr{font-size:80%;text-align:right;width:100%;min-width:max-content}#dash #content.layout-8>div{display:flex;align-items:center}#dash #content.layout-8>div .icon{margin-right:4%;font-size:75%}#dash #content.layout-8>div .value{margin:0 10%;font-size:250%}#dash #content.layout-8>div .descr{font-size:60%;text-align:left}",function(t){t.columns="The number of columns displayed by the grid, the default behavior is 12.",t.customStyle="Custom style of the component. For more information: https://ketchup.smeup.com/ketchup-showcase/#/customization",t.singleLine="When set to true, forces the content on a single line."}(g||(g={}));const p=class{constructor(n){t(this,n),this.kupManager=s(),this.columns=12,this.customStyle="",this.singleLine=!1}async getProps(t){return o(this,g,t)}async refresh(){e(this)}async setProps(t){d(this,g,t)}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){const t=this.rootElement.children;if(!t||0===t.length)return void this.kupManager.debug.logMessage(this,"Missing slots, not rendering!",r.WARNING);const n=[];for(let a=0;a<t.length;a++){let e=null;if(this.singleLine)e=i("slot",{name:`${a}`});else{const n=t[a].span||t[a].getAttribute("span")||1;e=i("div",{class:`layout-grid__cell layout-grid__cell--span-${n}`},i("slot",{name:`${a}`}))}n.push(e)}const a={};return this.columns&&12!==this.columns&&(a["--kup_grid_columns"]=this.columns),i(l,{style:a},i("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),i("div",{id:c},i("div",{class:this.singleLine?"flex-layout":"layout-grid"},i("div",{class:this.singleLine?"flex-layout__inner":"layout-grid__inner"},n))))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return a(this)}};p.style=":host{--kup_grid_font_size:var(--kup-grid-font-size, var(--kup-font-size));--kup_grid_gap:var(--kup-grid-gap, 24px);--kup_grid_gap_mobile:var(--kup-grid-gap-mobile, 16px);--kup_grid_padding:var(--kup-grid-padding, 24px);font-size:var(--kup_grid_font_size);height:100%;width:100%}#kup-component{height:100%;width:100%}.layout-grid{box-sizing:border-box;margin:0px auto;padding:var(--kup_grid_padding)}.layout-grid .layout-grid__inner{display:grid;margin:0px;grid-gap:var(--kup_grid_gap);grid-template-columns:repeat(var(--kup_grid_columns, 12), minmax(0px, 1fr))}.layout-grid .layout-grid__inner .layout-grid__cell{box-sizing:border-box;display:flex;justify-content:center;margin:0px;width:auto}.layout-grid__cell--span-1{grid-column-end:span 1}.layout-grid__cell--span-2{grid-column-end:span 2}.layout-grid__cell--span-3{grid-column-end:span 3}.layout-grid__cell--span-4{grid-column-end:span 4}.layout-grid__cell--span-5{grid-column-end:span 5}.layout-grid__cell--span-6{grid-column-end:span 6}.layout-grid__cell--span-7{grid-column-end:span 7}.layout-grid__cell--span-8{grid-column-end:span 8}.layout-grid__cell--span-9{grid-column-end:span 9}.layout-grid__cell--span-10{grid-column-end:span 10}.layout-grid__cell--span-11{grid-column-end:span 11}.layout-grid__cell--span-12{grid-column-end:span 12}.layout-grid__cell--span-13{grid-column-end:span 13}.layout-grid__cell--span-14{grid-column-end:span 14}.layout-grid__cell--span-15{grid-column-end:span 15}.layout-grid__cell--span-16{grid-column-end:span 16}.layout-grid__cell--span-17{grid-column-end:span 17}.layout-grid__cell--span-18{grid-column-end:span 18}.layout-grid__cell--span-19{grid-column-end:span 19}.layout-grid__cell--span-20{grid-column-end:span 20}.layout-grid__cell--span-21{grid-column-end:span 21}.layout-grid__cell--span-22{grid-column-end:span 22}.layout-grid__cell--span-23{grid-column-end:span 23}.layout-grid__cell--span-24{grid-column-end:span 24}.flex-layout,.flex-layout__inner{height:100%;align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap}.flex-layout__inner{width:auto}.flex-layout__inner *{display:block;margin:0 1.5em}.flex-layout__inner .flex-layout__cell{display:flex}.flex-layout__inner .flex-layout__cell *{justify-content:center;margin:auto}@media (min-width: 600px) and (max-width: 839px){.layout-grid .layout-grid__inner{display:grid;margin:0px;grid-gap:var(--kup_grid_gap_mobile);grid-template-columns:repeat(var(--kup_grid_columns, 8), minmax(0px, 1fr))}}@media (max-width: 599px){.layout-grid .layout-grid__inner{display:grid;margin:0px;grid-gap:var(--kup_grid_gap_mobile);grid-template-columns:repeat(var(--kup_grid_columns, 4), minmax(0px, 1fr))}}:host(.kup-full-width) .flex-layout__inner{width:100%}:host(.kup-full-width) .flex-layout__inner *{margin:auto}";export{u as kup_dash,p as kup_grid}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,f as i,h,H as s,g as a}from"./p-9dcfbb1e.js";import{k as o,g as n,s as l}from"./p-b63a5a44.js";import{c as p}from"./p-97e8ea42.js";var r,c;!function(t){t.componentName="Sets the tag name of the component to be lazy loaded.",t.customStyle="Custom style of the component.",t.data="Sets the data of the component to be lazy loaded.",t.showPlaceholder="Displays an animated SVG placeholder until the component is loaded."}(r||(r={})),function(t){t.VIEWPORT="viewport",t.PROPS="props",t.BOTH="both"}(c||(c={}));const d=class{constructor(i){t(this,i),this.kupLazyLoaded=e(this,"kup-lazy-loaded",6),this.intObserver=null,this.kupManager=o(),this.lazyComponent=null,this.lazyComponentLoaded=!1,this.isInViewport=!1,this.componentName=null,this.customStyle="",this.data=null,this.renderMode=c.BOTH,this.showPlaceholder=!0}async getProps(t){return n(this,r,t)}async getComponent(){return this.lazyComponent}async refresh(){i(this)}async setProps(t){l(this,r,t)}setObserver(){this.intObserver=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(this.kupManager.debug.logMessage(this,"kup-lazy entering the viewport, rendering "+this.componentName+"."),this.isInViewport=!0,this.intObserver.unobserve(this.rootElement))}))}),{threshold:.25})}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this),this.setObserver()}componentDidLoad(){this.intObserver.observe(this.rootElement),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.lazyComponent&&!this.lazyComponentLoaded&&(this.lazyComponentLoaded=!0,this.kupLazyLoaded.emit({comp:this,id:this.rootElement.id})),this.kupManager.debug.logRender(this,!0)}render(){let t,e,i=this.componentName;switch(this.componentName){case"kup-button":e=h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},h("path",{d:"M42 6H6c-2.2 0-4 1.8-4 4v28c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4V10c0-2.2-1.8-4-4-4zm0 32H6v-6h36v6z"}));break;case"kup-card":default:e=h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},h("path",{d:"M44 26H28v-4h16v4zm0-12H28v4h16v-4zM28 34h16v-4H28v4zm-4-16v12c0 2.2-1.8 4-4 4H8c-2.2 0-4-1.8-4-4V18c0-2.2 1.8-4 4-4h12c2.2 0 4 1.8 4 4zm-3 12l-4.5-6-3.5 4.51-2.5-3.01L7 30h14z"}));break;case"kup-checkbox":e=h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},h("path",{d:"M38 10v28H10V10h28m0-4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4z"}));break;case"kup-chart":e=h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",viewBox:"0 0 24 24"},h("path",{d:"M22,21H2V3H4V19H6V10H10V19H12V6H16V19H18V14H22V21Z"}));break;case"kup-data-table":e=h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",viewBox:"0 0 24 24"},h("path",{d:"M4,3H20A2,2 0 0,1 22,5V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V5A2,2 0 0,1 4,3M4,7V10H8V7H4M10,7V10H14V7H10M20,10V7H16V10H20M4,12V15H8V12H4M4,20H8V17H4V20M10,12V15H14V12H10M10,20H14V17H10V20M20,20V17H16V20H20M20,12H16V15H20V12Z"}));break;case"kup-image":e=h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},h("path",{d:"M42 38V10c0-2.21-1.79-4-4-4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4zM17 27l5 6.01L29 24l9 12H10l7-9z"}));break;case"kup-progress-bar":e=h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},h("path",{d:"M39 19c-2.05 0-3.81 1.23-4.58 3h-5.84c-.77-1.77-2.53-3-4.58-3s-3.81 1.23-4.58 3h-5.84c-.77-1.77-2.53-3-4.58-3-2.77 0-5 2.23-5 5s2.23 5 5 5c2.05 0 3.81-1.23 4.58-3h5.84c.77 1.77 2.53 3 4.58 3s3.81-1.23 4.58-3h5.84c.77 1.77 2.53 3 4.58 3 2.77 0 5-2.23 5-5s-2.23-5-5-5z"}));break;case"kup-radio":e=h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},h("path",{d:"M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}))}return this.renderMode===c.VIEWPORT&&this.isInViewport||this.renderMode===c.PROPS&&this.data||this.renderMode===c.BOTH&&this.data&&this.isInViewport?(t=h(this.componentName,Object.assign({},this.data,{ref:t=>this.lazyComponent=t})),i+=" kup-loaded"):this.showPlaceholder&&(t=e,i+=" kup-to-be-loaded"),h(s,{class:i},h("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),h("div",{id:p},t))}disconnectedCallback(){var t;this.kupManager.theme.unregister(this),null===(t=this.intObserver)||void 0===t||t.unobserve(this.rootElement)}get rootElement(){return a(this)}};d.style=":host{--kup_lazy_animation_time:var(--kup-lazy-animation-time, 2s);--kup_lazy_hor_alignment:var(--kup-lazy-hor-alignment, center);--kup_lazy_placeholder_color:var(\n --kup-lazy-placeholder-color,\n var(--kup-icon-color)\n );--kup_lazy_height:var(--kup-lazy-height, 100%);--kup_lazy_ver_alignment:var(--kup-lazy-ver-alignment, center);--kup_lazy_width:var(--kup-lazy-width, 100%);display:block;height:var(--kup_lazy_height);width:var(--kup_lazy_width);position:relative}#kup-component{align-items:var(--kup_lazy_ver_alignment);display:flex;justify-content:var(--kup_lazy_hor_alignment);height:var(--kup_lazy_height);width:var(--kup_lazy_width)}#kup-component>*{height:var(--kup_lazy_height)}#kup-component kup-data-table{min-width:100%}.kup-loaded,.kup-to-be-loaded{height:var(--kup_lazy_height);width:var(--kup_lazy_width)}svg{fill:var(--kup_lazy_placeholder_color);animation:shine ease var(--kup_lazy_animation_time) infinite}@keyframes shine{0%{opacity:0.4}50%{opacity:0.8}100%{opacity:0.4}}:host(.kup-bottom-aligned){--kup-lazy-ver-alignment:flex-end}:host(.kup-left-aligned){--kup-lazy-hor-alignment:flex-start}:host(.kup-right-aligned){--kup-lazy-hor-alignment:flex-end}:host(.kup-top-aligned){--kup-lazy-ver-alignment:flex-start}:host(.kup-to-be-loaded) #kup-component{position:absolute}:host(.kup-to-be-loaded) #kup-component>*{margin:auto}";export{d as kup_lazy}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,f as i,h as o,H as a,g as n}from"./p-9dcfbb1e.js";import{k as e,g as r,s as c}from"./p-b63a5a44.js";import{c as l}from"./p-97e8ea42.js";import{F as p}from"./p-a1adab40.js";import"./p-6c77a36c.js";import"./p-a7ae0b4d.js";const h="snackbar";var u;!function(t){t.actionButton="Set of FButton props to set the action button.",t.closeButton="When true, the hide button will be displayed.",t.customStyle="Custom style of the component.",t.text="Sets the textual content of the snackbar.",t.timeout="Defaults at null, when set the snackbar will automatically disappear after the specified amount of milliseconds."}(u||(u={}));const b=class{constructor(i){t(this,i),this.kupActionClick=s(this,"kup-snackbar-actionclick",6),this.kupManager=e(),this.visible=!1,this.actionButton=null,this.closeButton=!0,this.customStyle="",this.text="",this.timeout=null}onKupActionClick(){this.hide(),this.kupActionClick.emit({comp:this,id:this.rootElement.id})}async getProps(t){return r(this,u,t)}async hide(){this.visible=!1}async refresh(){i(this)}async setProps(t){c(this,u,t)}async show(){this.visible=!0}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.timeout&&this.visible&&setTimeout((()=>{this.hide()}),this.timeout),this.kupManager.debug.logRender(this,!0)}render(){return o(a,{"kup-visible":this.visible},o("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),o("div",{id:l},o("div",{class:h},o("div",{class:`${h}__text`},this.text),this.actionButton||this.closeButton?o("div",{class:`${h}__buttons`},this.actionButton?o("div",{class:`${h}__action`},o(p,Object.assign({},this.actionButton,{onClick:()=>this.onKupActionClick()}))):null,this.closeButton?o("div",{class:`${h}__close`},o(p,{icon:"close",onClick:()=>this.hide()})):null):null)))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return n(this)}};b.style=":host{animation:snackbar-show 125ms;bottom:0;box-sizing:border-box;display:block;left:0;outline:none;pointer-events:none;position:fixed;transition:opacity 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, -webkit-transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms;width:100%;z-index:calc(var(--kup-navbar-zindex) + 1)}:host(:not([kup-visible])){display:none}#kup-component{display:flex;justify-content:center;height:100%;padding:8px;width:100%}.snackbar{align-items:center;background:var(--kup-navbar-background-color);border-radius:5px;box-shadow:var(--kup-box-shadow);color:var(--kup-navbar-color);display:flex;justify-content:flex-start;max-width:672px;min-height:48px;min-width:344px}.snackbar__text{padding:14px 16px;pointer-events:all;white-space:nowrap}.snackbar__buttons{--kup-button-primary-color:var(--kup-navbar-color);--kup-button-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-button-primary-color-h:var(--kup-navbar-color-h);--kup-button-primary-color-s:var(--kup-navbar-color-s);--kup-button-primary-color-l:var(--kup-navbar-color-l);align-items:center;display:flex;justify-content:flex-end;margin-right:8px;pointer-events:all;width:100%}.snackbar__close{--kup-button-font-size:11px;margin-left:8px;pointer-events:all}@keyframes snackbar-show{from{transform:scale(0.5);opacity:0}to{transform:scale(1);opacity:1}}:host(.kup-top){bottom:unset;top:var(--kup-navbar-height, 0)}";export{b as kup_snackbar}
@@ -10,3 +10,12 @@ export interface CustomElementsDefineOptions {
10
10
  }
11
11
  export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
12
12
  export declare function applyPolyfills(): Promise<void>;
13
+
14
+ /**
15
+ * Used to specify a nonce value that corresponds with an application's CSP.
16
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
17
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
18
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
19
+ * will result in the same behavior.
20
+ */
21
+ export declare function setNonce(nonce: string): void;
@@ -1,4 +1,5 @@
1
1
  import { KupEventPayload } from '../../types/GenericTypes';
2
+ import { KupListNode } from '../kup-list/kup-list-declarations';
2
3
  /**
3
4
  * Props of the kup-autocomplete component.
4
5
  * Used to export every prop in an object.
@@ -25,8 +26,9 @@ export declare enum KupAutocompleteDisplayMode {
25
26
  DESCRIPTION_AND_CODE = "both"
26
27
  }
27
28
  export interface KupAutocompleteEventPayload extends KupEventPayload {
28
- value: any;
29
- inputValue: any;
29
+ value: string;
30
+ inputValue: string;
31
+ node?: KupListNode;
30
32
  }
31
33
  export interface KupAutocompleteIconClickEventPayload extends KupAutocompleteEventPayload {
32
34
  open: boolean;
@@ -32,7 +32,7 @@ export declare function create4(component: KupCard): VNode;
32
32
  */
33
33
  export declare function create5(component: KupCard): VNode;
34
34
  /**
35
- * 6th built-in layout, form with submit button.
35
+ * 6th built-in layout, message box with confirm and cancel buttons.
36
36
  * @param {KupCard} component - Card component.
37
37
  * @returns {VNode} 6th built-in layout virtual node.
38
38
  */
@@ -1,3 +1,3 @@
1
1
  import { VNode } from '../../../stencil-public-runtime';
2
2
  import { KupCard } from '../kup-card';
3
- export declare function prepareForm(component: KupCard): VNode[];
3
+ export declare function prepareMessageBox(component: KupCard): VNode[];
@@ -36,3 +36,9 @@ export declare function create5(component: KupCard): VNode;
36
36
  * @returns {VNode} 1st standard layout virtual node.
37
37
  */
38
38
  export declare function create6(component: KupCard): VNode;
39
+ /**
40
+ * 7th dialog card layout, a raw slot.
41
+ * @param {KupCard} component - Card component.
42
+ * @returns {VNode} 1st standard layout virtual node.
43
+ */
44
+ export declare function create7(component: KupCard): VNode;
@@ -3,7 +3,6 @@ import { KupObj } from '../../managers/kup-objects/kup-objects-declarations';
3
3
  import { SourceEvent } from '../kup-date-picker/kup-date-picker-declarations';
4
4
  import Picker from 'vanilla-picker';
5
5
  import { KupDataColumn, KupDataDataset } from '../../managers/kup-data/kup-data-declarations';
6
- import { KupFormData } from '../kup-form/kup-form-declarations';
7
6
  /**
8
7
  * Props of the kup-card component.
9
8
  * Used to export every prop in an object.
@@ -54,13 +53,12 @@ export interface KupCardBuiltInClockOptions {
54
53
  secondsActive?: boolean;
55
54
  }
56
55
  /**
57
- * Options of the built-in form.
56
+ * Options of the built-in message box.
58
57
  */
59
- export interface KupCardFormOptions {
60
- form: KupFormData;
61
- errors: boolean;
62
- cancelCb?: () => void;
63
- submitCb?: () => void;
58
+ export interface KupCardBuiltInMessageBoxOptions {
59
+ cancelCb?: (e: MouseEvent) => unknown;
60
+ confirmCb?: (e: MouseEvent) => unknown;
61
+ text?: string;
64
62
  }
65
63
  /**
66
64
  * Options of the built-in column drop menu.
@@ -155,7 +153,7 @@ export interface KupCardData {
155
153
  image?: GenericObject[];
156
154
  list?: GenericObject[];
157
155
  object?: KupObj[];
158
- options?: KupCardBuiltInCalendarOptions | KupCardBuiltInClockOptions | KupCardColumnDropMenuOptions | KupCardColorPickerOptions | KupCardBuiltInNumericOptions | KupCardFormOptions;
156
+ options?: KupCardBuiltInCalendarOptions | KupCardBuiltInClockOptions | KupCardColumnDropMenuOptions | KupCardColorPickerOptions | KupCardBuiltInNumericOptions | KupCardBuiltInMessageBoxOptions;
159
157
  progressbar?: GenericObject[];
160
158
  switch?: GenericObject[];
161
159
  tabbar?: GenericObject[];
@@ -39,11 +39,6 @@ export declare class KupCard {
39
39
  * @default false
40
40
  */
41
41
  menuVisible: boolean;
42
- /**
43
- * Sets the card as modal window
44
- * @default false
45
- */
46
- showModal: boolean;
47
42
  /**
48
43
  * The width of the card, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.).
49
44
  * @default "100%"
@@ -7,6 +7,8 @@ import { KupEventPayload } from '../../types/GenericTypes';
7
7
  export declare enum KupChipProps {
8
8
  customStyle = "Custom style of the component.",
9
9
  data = "List of elements.",
10
+ displayId = "When enabled, the chip's text will display both the id and the value.",
11
+ enableInput = "When enabled, it's possible to add items to the chip's dataset through an input slot (kup-autocomplete, kup-combobox, kup-text-field).",
10
12
  type = "The type of chip. Available types: input, filter, choice or empty for default."
11
13
  }
12
14
  export interface KupChipNode extends KupDataNode {
@@ -15,3 +17,6 @@ export interface KupChipNode extends KupDataNode {
15
17
  export interface KupChipEventPayload extends KupEventPayload {
16
18
  chip: KupChipNode;
17
19
  }
20
+ export interface KupChipChangeEventPayload extends KupEventPayload {
21
+ stringifiedValues: string;
22
+ }
@@ -1,9 +1,10 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { FChipType } from '../../f-components/f-chip/f-chip-declarations';
3
- import { KupChipEventPayload, KupChipNode } from './kup-chip-declarations';
3
+ import { KupChipChangeEventPayload, KupChipEventPayload, KupChipNode } from './kup-chip-declarations';
4
4
  import { GenericObject } from '../../types/GenericTypes';
5
5
  import { KupDataDataset } from '../../managers/kup-data/kup-data-declarations';
6
6
  export declare class KupChip {
7
+ #private;
7
8
  /**
8
9
  * References the root HTML element of the component (<kup-chip>).
9
10
  */
@@ -19,6 +20,16 @@ export declare class KupChip {
19
20
  * @default []
20
21
  */
21
22
  data: KupChipNode[];
23
+ /**
24
+ * When enabled, the chip's text will display both the id and the value.
25
+ * @default false
26
+ */
27
+ displayId: boolean;
28
+ /**
29
+ * When enabled, it's possible to add items to the chip's dataset through an input slot (kup-autocomplete, kup-combobox, kup-text-field).
30
+ * @default false
31
+ */
32
+ enableInput: boolean;
22
33
  /**
23
34
  * The type of chip. Available types: input, filter, choice or empty for default.
24
35
  * @default FChipType.STANDARD
@@ -32,6 +43,10 @@ export declare class KupChip {
32
43
  * Triggered when a chip loses focus.
33
44
  */
34
45
  kupBlur: EventEmitter<KupChipEventPayload>;
46
+ /**
47
+ * Triggered when the chip dataset changes.
48
+ */
49
+ kupChange: EventEmitter<KupChipChangeEventPayload>;
35
50
  /**
36
51
  * Triggered when a chip is clicked.
37
52
  */
@@ -103,7 +103,7 @@ export declare enum SortMode {
103
103
  A = "A",
104
104
  D = "D"
105
105
  }
106
- export declare type KupDataTableInsertMode = 'form' | 'row' | '';
106
+ export type KupDataTableInsertMode = 'form' | 'row' | '';
107
107
  export interface TotalsMap {
108
108
  [index: string]: TotalMode;
109
109
  }
@@ -6,8 +6,8 @@ export declare class KupDataTableState implements KupState {
6
6
  expandGroups: boolean;
7
7
  groupLabelDisplay: GroupLabelDisplayMode;
8
8
  density: string;
9
- enableSortableColumns: boolean;
10
9
  enableExtraColumns: boolean;
10
+ enableSortableColumns: boolean;
11
11
  forceOneLine: boolean;
12
12
  globalFilter: boolean;
13
13
  globalFilterValue: string;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Props of the kup-dialog component.
3
+ * Used to export every prop in an object.
4
+ */
5
+ export declare enum KupDialogProps {
6
+ autoCenter = "Auto centers the dialog relatively to the viewport.",
7
+ customStyle = "Custom style of the component.",
8
+ header = "Header options.",
9
+ modal = "Set of options to display the dialog as a modal.",
10
+ resizable = "Sets whether the dialog is resizable or not.",
11
+ sizeX = "The width of the dialog, defaults to auto. Accepts any valid CSS format (px, %, vw, etc.).",
12
+ sizeY = "The height of the dialog, defaults to auto. Accepts any valid CSS format (px, %, vh, etc.)."
13
+ }
14
+ export interface KupDialogAutoCenter {
15
+ onReady?: boolean;
16
+ }
17
+ export interface KupDialogHeader {
18
+ icons?: KupDialogIcons;
19
+ title?: string;
20
+ }
21
+ export interface KupDialogIcons {
22
+ close?: boolean;
23
+ }
24
+ export interface KupDialogModal {
25
+ closeOnBackdropClick?: boolean;
26
+ }
@@ -0,0 +1,77 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
3
+ import { KupDialogAutoCenter, KupDialogHeader, KupDialogModal } from './kup-dialog-declarations';
4
+ export declare class KupDialog {
5
+ #private;
6
+ /**
7
+ * References the root HTML element of the component (<kup-dialog>).
8
+ */
9
+ rootElement: HTMLElement;
10
+ /**
11
+ * Auto centers the dialog relatively to the viewport.
12
+ * @default "{ onReady: true }"
13
+ */
14
+ autoCenter: KupDialogAutoCenter;
15
+ /**
16
+ * Custom style of the component.
17
+ * @default ""
18
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
19
+ */
20
+ customStyle: string;
21
+ /**
22
+ * Header options.
23
+ * @default "{ icons: { close: true } }"
24
+ */
25
+ header: KupDialogHeader;
26
+ /**
27
+ * Set of options to display the dialog as a modal.
28
+ * @default "{ closeOnBackdropClick: true }"
29
+ */
30
+ modal: KupDialogModal;
31
+ /**
32
+ * Sets whether the dialog is resizable or not.
33
+ * @default "true"
34
+ */
35
+ resizable: boolean;
36
+ /**
37
+ * The width of the dialog, defaults to auto. Accepts any valid CSS format (px, %, vw, etc.).
38
+ * @default "auto"
39
+ */
40
+ sizeX: string;
41
+ /**
42
+ * The height of the card, defaults to auto. Accepts any valid CSS format (px, %, vh, etc.).
43
+ * @default "auto"
44
+ */
45
+ sizeY: string;
46
+ kupClose: EventEmitter<KupEventPayload>;
47
+ kupReady: EventEmitter<KupEventPayload>;
48
+ /**
49
+ * Closes the dialog detaching it from the DOM.
50
+ */
51
+ close(): Promise<void>;
52
+ /**
53
+ * Used to retrieve component's props values.
54
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
55
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
56
+ */
57
+ getProps(descriptions?: boolean): Promise<GenericObject>;
58
+ /**
59
+ * Places the dialog at the center of the screen.
60
+ */
61
+ recalcPosition(): Promise<void>;
62
+ /**
63
+ * This method is used to trigger a new render of the component.
64
+ */
65
+ refresh(): Promise<void>;
66
+ /**
67
+ * Sets the props to the component.
68
+ * @param {GenericObject} props - Object containing props that will be set to the component.
69
+ */
70
+ setProps(props: GenericObject): Promise<void>;
71
+ componentWillLoad(): void;
72
+ componentDidLoad(): void;
73
+ componentWillRender(): void;
74
+ componentDidRender(): void;
75
+ render(): any;
76
+ disconnectedCallback(): void;
77
+ }
@@ -48,7 +48,8 @@ export declare enum KupEchartTypes {
48
48
  LINE = "Line",
49
49
  MAP = "Map",
50
50
  PIE = "Pie",
51
- SCATTER = "Scatter"
51
+ SCATTER = "Scatter",
52
+ FUNNEL = "Funnel"
52
53
  }
53
54
  export interface KupEchartClickEventPayload extends KupEventPayload {
54
55
  column: KupDataColumn;
@@ -19,7 +19,7 @@ export interface KupFamilyTreeData {
19
19
  columns: KupDataColumn[];
20
20
  rows: KupFamilyTreeNode[];
21
21
  }
22
- export declare type KupFamilyTreeLayout = KupBoxLayout | number;
22
+ export type KupFamilyTreeLayout = KupBoxLayout | number;
23
23
  export interface KupFamilyTreeNode extends KupDataNode {
24
24
  children?: KupFamilyTreeNode[];
25
25
  isStaff?: boolean;
@@ -1,5 +1,6 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
1
2
  import { KupFormLayout, KupFormData, KupFormLabelPlacement } from './kup-form-declarations';
2
- import { GenericObject } from '../../types/GenericTypes';
3
+ import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
3
4
  export declare class KupForm {
4
5
  /**
5
6
  * References the root HTML element of the component (<kup-form>).
@@ -62,6 +63,10 @@ export declare class KupForm {
62
63
  * @param {GenericObject} props - Object containing props that will be set to the component.
63
64
  */
64
65
  setProps(props: GenericObject): Promise<void>;
66
+ /**
67
+ * When component load is complete
68
+ */
69
+ kupReady: EventEmitter<KupEventPayload>;
65
70
  private getColumns;
66
71
  private initVisibleColumns;
67
72
  private getRows;
@@ -40,7 +40,7 @@ export interface KupTreeNode extends KupDataNode {
40
40
  style?: GenericMap;
41
41
  visible?: boolean;
42
42
  }
43
- export declare type TreeNodePath = number[];
43
+ export type TreeNodePath = number[];
44
44
  /**
45
45
  * The name of the constant used by the tree component to identify the main tree in column menu
46
46
  * @constant