@sme.up/ketchup 5.0.0 → 5.1.1

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 (196) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/{cell-utils-720be0c8.js → cell-utils-5b16c180.js} +4 -4
  3. package/dist/cjs/{f-button-dbf3cd3a.js → f-button-3b9f32af.js} +2 -2
  4. package/dist/cjs/{f-cell-93d984ad.js → f-cell-c6ad973a.js} +6 -6
  5. package/dist/cjs/{f-chip-438213eb.js → f-chip-bed86c4a.js} +3 -3
  6. package/dist/cjs/{f-image-21865ab7.js → f-image-08a3d340.js} +2 -2
  7. package/dist/cjs/{index-ab119fad.js → index-8d7bb3be.js} +4 -1
  8. package/dist/cjs/ketchup.cjs.js +3 -3
  9. package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
  10. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +412 -353
  11. package/dist/cjs/kup-calendar.cjs.entry.js +8 -8
  12. package/dist/cjs/kup-cell.cjs.entry.js +8 -8
  13. package/dist/cjs/kup-dash-list.cjs.entry.js +5 -5
  14. package/dist/cjs/kup-dash_2.cjs.entry.js +5 -5
  15. package/dist/cjs/kup-drawer.cjs.entry.js +8 -5
  16. package/dist/cjs/kup-echart.cjs.entry.js +210 -60
  17. package/dist/cjs/kup-field.cjs.entry.js +3 -3
  18. package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
  19. package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
  20. package/dist/cjs/kup-magic-box.cjs.entry.js +7 -7
  21. package/dist/cjs/{kup-manager-09c0c1fc.js → kup-manager-4227f0a2.js} +2804 -2598
  22. package/dist/cjs/kup-nav-bar.cjs.entry.js +6 -6
  23. package/dist/cjs/kup-photo-frame.cjs.entry.js +179 -0
  24. package/dist/cjs/kup-probe.cjs.entry.js +3 -3
  25. package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
  26. package/dist/cjs/kup-snackbar.cjs.entry.js +7 -7
  27. package/dist/cjs/loader.cjs.js +3 -3
  28. package/dist/cjs/{utils-a60ab5fa.js → utils-b9df398c.js} +4 -38
  29. package/dist/collection/assets/card.js +30 -30
  30. package/dist/collection/assets/data-table.js +24 -30
  31. package/dist/collection/assets/echart.js +481 -0
  32. package/dist/collection/assets/index.js +79 -79
  33. package/dist/collection/assets/kupdata.js +29 -41
  34. package/dist/collection/assets/list.js +6 -6
  35. package/dist/collection/assets/nav-bar.js +4 -4
  36. package/dist/collection/assets/probe.js +18 -18
  37. package/dist/collection/collection-manifest.json +2 -1
  38. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +5 -5
  39. package/dist/collection/components/kup-box/kup-box.js +9 -9
  40. package/dist/collection/components/kup-button-list/kup-button-list.js +4 -4
  41. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
  42. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +21 -22
  43. package/dist/collection/components/kup-card/kup-card.js +1 -2
  44. package/dist/collection/components/kup-chip/kup-chip.js +4 -4
  45. package/dist/collection/components/kup-combobox/kup-combobox.js +6 -6
  46. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +0 -2
  47. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +31 -32
  48. package/dist/collection/components/kup-data-table/kup-data-table.js +124 -164
  49. package/dist/collection/components/kup-drawer/kup-drawer.js +4 -1
  50. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +3 -3
  51. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +14 -14
  52. package/dist/collection/components/kup-echart/kup-echart-declarations.js +3 -0
  53. package/dist/collection/components/kup-echart/kup-echart.js +246 -58
  54. package/dist/collection/components/kup-image/assets/svg/instagram.svg +1 -0
  55. package/dist/collection/components/kup-image/assets/svg/pinterest.svg +1 -0
  56. package/dist/collection/components/kup-image/assets/svg/reddit.svg +1 -0
  57. package/dist/collection/components/kup-list/kup-list-helper.js +26 -26
  58. package/dist/collection/components/kup-list/kup-list.css +35 -3
  59. package/dist/collection/components/kup-list/kup-list.js +52 -44
  60. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
  61. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +2 -2
  62. package/dist/collection/components/kup-photo-frame/kup-photo-frame-declarations.js +10 -0
  63. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +70 -0
  64. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +382 -0
  65. package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -0
  66. package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +1 -1
  67. package/dist/collection/components/kup-time-picker/kup-time-picker.js +10 -10
  68. package/dist/collection/components/kup-tree/kup-tree.js +100 -51
  69. package/dist/collection/f-components/f-paginator/f-paginator.js +6 -6
  70. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +2 -2
  71. package/dist/collection/managers/kup-data/kup-data-column-helper.js +27 -3
  72. package/dist/collection/managers/kup-data/kup-data-declarations.js +2 -1
  73. package/dist/collection/managers/kup-data/kup-data-node-helper.js +1 -1
  74. package/dist/collection/managers/kup-data/kup-data-row-helper.js +2 -2
  75. package/dist/collection/managers/kup-data/kup-data.js +337 -155
  76. package/dist/collection/managers/kup-dates/kup-dates.js +2 -2
  77. package/dist/collection/managers/kup-debug/kup-debug.js +6 -6
  78. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +1 -1
  79. package/dist/collection/managers/kup-language/kup-language.js +2 -2
  80. package/dist/collection/managers/kup-manager/kup-manager.js +13 -0
  81. package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
  82. package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
  83. package/dist/collection/managers/kup-math/kup-math.js +151 -0
  84. package/dist/collection/managers/kup-objects/kup-objects.js +48 -1
  85. package/dist/collection/managers/kup-theme/kup-theme.js +2 -2
  86. package/dist/collection/utils/cell-utils.js +2 -3
  87. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +1 -1
  88. package/dist/collection/utils/utils.js +3 -74
  89. package/dist/esm/{cell-utils-b80ccb8c.js → cell-utils-69f75e2e.js} +4 -4
  90. package/dist/esm/{f-button-9e835467.js → f-button-7e7607d8.js} +2 -2
  91. package/dist/esm/{f-cell-f8bb2e04.js → f-cell-e4d83c27.js} +6 -6
  92. package/dist/esm/{f-chip-953c6915.js → f-chip-51dfefaf.js} +3 -3
  93. package/dist/esm/{f-image-78c5265e.js → f-image-de331954.js} +2 -2
  94. package/dist/esm/{index-78f3699d.js → index-aeec9835.js} +4 -1
  95. package/dist/esm/ketchup.js +3 -3
  96. package/dist/esm/kup-accordion.entry.js +5 -5
  97. package/dist/esm/kup-autocomplete_27.entry.js +412 -353
  98. package/dist/esm/kup-calendar.entry.js +8 -8
  99. package/dist/esm/kup-cell.entry.js +8 -8
  100. package/dist/esm/kup-dash-list.entry.js +5 -5
  101. package/dist/esm/kup-dash_2.entry.js +5 -5
  102. package/dist/esm/kup-drawer.entry.js +8 -5
  103. package/dist/esm/kup-echart.entry.js +210 -60
  104. package/dist/esm/kup-field.entry.js +3 -3
  105. package/dist/esm/kup-iframe.entry.js +4 -4
  106. package/dist/esm/kup-lazy.entry.js +4 -4
  107. package/dist/esm/kup-magic-box.entry.js +7 -7
  108. package/dist/esm/{kup-manager-bba62291.js → kup-manager-0ab94726.js} +2805 -2598
  109. package/dist/esm/kup-nav-bar.entry.js +6 -6
  110. package/dist/esm/kup-photo-frame.entry.js +175 -0
  111. package/dist/esm/kup-probe.entry.js +3 -3
  112. package/dist/esm/kup-qlik.entry.js +3 -3
  113. package/dist/esm/kup-snackbar.entry.js +7 -7
  114. package/dist/esm/loader.js +3 -3
  115. package/dist/esm/{utils-d1569956.js → utils-35c7a90d.js} +5 -37
  116. package/dist/ketchup/assets/svg/instagram.svg +1 -0
  117. package/dist/ketchup/assets/svg/pinterest.svg +1 -0
  118. package/dist/ketchup/assets/svg/reddit.svg +1 -0
  119. package/dist/ketchup/ketchup.esm.js +1 -1
  120. package/dist/ketchup/p-0751aaf6.entry.js +1 -0
  121. package/dist/ketchup/p-10c8d755.js +1 -0
  122. package/dist/ketchup/{p-aa27f9f7.entry.js → p-24df4f29.entry.js} +2 -2
  123. package/dist/ketchup/{p-29800a2e.js → p-2d4f19f4.js} +1 -1
  124. package/dist/ketchup/p-33073f4a.js +1 -0
  125. package/dist/ketchup/p-3445be1e.entry.js +1 -0
  126. package/dist/ketchup/p-3813281b.entry.js +1 -0
  127. package/dist/ketchup/p-4081f5f7.entry.js +1 -0
  128. package/dist/ketchup/p-47b57d97.js +1 -0
  129. package/dist/ketchup/p-5186885c.entry.js +1 -0
  130. package/dist/ketchup/{p-f993f813.js → p-5d190cf5.js} +1 -1
  131. package/dist/ketchup/p-67c64257.entry.js +1 -0
  132. package/dist/ketchup/p-68fc1428.entry.js +1 -0
  133. package/dist/ketchup/p-8be1337b.js +1 -0
  134. package/dist/ketchup/p-8f735633.entry.js +1 -0
  135. package/dist/ketchup/p-96101f09.entry.js +39 -0
  136. package/dist/ketchup/p-9bcda66f.entry.js +1 -0
  137. package/dist/ketchup/p-b5e1dbfa.entry.js +1 -0
  138. package/dist/ketchup/{p-ebf4cf56.js → p-c314b1e6.js} +1 -1
  139. package/dist/ketchup/p-d7af8156.entry.js +1 -0
  140. package/dist/ketchup/p-dbe87a3f.entry.js +143 -0
  141. package/dist/ketchup/p-ee33cbe9.js +9 -0
  142. package/dist/ketchup/p-f250d42b.entry.js +1 -0
  143. package/dist/ketchup/p-f9c41e20.entry.js +1 -0
  144. package/dist/ketchup/p-fea316ab.entry.js +1 -0
  145. package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +2 -1
  146. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +0 -2
  147. package/dist/types/components/kup-data-table/kup-data-table.d.ts +8 -15
  148. package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -1
  149. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +3 -0
  150. package/dist/types/components/kup-echart/kup-echart.d.ts +12 -1
  151. package/dist/types/components/kup-list/kup-list-declarations.d.ts +3 -7
  152. package/dist/types/components/kup-list/kup-list-helper.d.ts +6 -6
  153. package/dist/types/components/kup-list/kup-list.d.ts +2 -2
  154. package/dist/types/components/kup-photo-frame/kup-photo-frame-declarations.d.ts +9 -0
  155. package/dist/types/components/kup-photo-frame/kup-photo-frame.d.ts +61 -0
  156. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -1
  157. package/dist/types/components/kup-tree/kup-tree.d.ts +1 -1
  158. package/dist/types/components.d.ts +110 -28
  159. package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +9 -1
  160. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +4 -25
  161. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +1 -1
  162. package/dist/types/managers/kup-data/kup-data.d.ts +63 -27
  163. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +11 -0
  164. package/dist/types/managers/kup-manager/kup-manager.d.ts +2 -0
  165. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
  166. package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
  167. package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
  168. package/dist/types/managers/kup-objects/kup-objects.d.ts +22 -0
  169. package/dist/types/utils/utils.d.ts +0 -18
  170. package/package.json +2 -2
  171. package/dist/collection/managers/kup-data/kup-data-dataset-helper.js +0 -262
  172. package/dist/collection/managers/kup-data/kup-data-helper.js +0 -61
  173. package/dist/collection/utils/state-utils.js +0 -9
  174. package/dist/ketchup/p-0032a782.entry.js +0 -1
  175. package/dist/ketchup/p-18c4d083.entry.js +0 -1
  176. package/dist/ketchup/p-199c972e.entry.js +0 -1
  177. package/dist/ketchup/p-34aa8d8a.entry.js +0 -1
  178. package/dist/ketchup/p-542279e9.entry.js +0 -1
  179. package/dist/ketchup/p-5b26a7a8.entry.js +0 -39
  180. package/dist/ketchup/p-5c97e7ab.js +0 -1
  181. package/dist/ketchup/p-6817ca85.entry.js +0 -1
  182. package/dist/ketchup/p-76e674ca.entry.js +0 -1
  183. package/dist/ketchup/p-78aa6f1b.js +0 -1
  184. package/dist/ketchup/p-842b66aa.entry.js +0 -1
  185. package/dist/ketchup/p-894981c0.entry.js +0 -143
  186. package/dist/ketchup/p-8ac2fa75.entry.js +0 -1
  187. package/dist/ketchup/p-907c9e11.entry.js +0 -1
  188. package/dist/ketchup/p-9ae9149b.entry.js +0 -1
  189. package/dist/ketchup/p-b0d1bdd8.js +0 -9
  190. package/dist/ketchup/p-e1e4c951.entry.js +0 -1
  191. package/dist/ketchup/p-eba369d9.entry.js +0 -1
  192. package/dist/ketchup/p-ed0b8666.js +0 -1
  193. package/dist/ketchup/p-fa540f82.js +0 -1
  194. package/dist/types/managers/kup-data/kup-data-dataset-helper.d.ts +0 -42
  195. package/dist/types/managers/kup-data/kup-data-helper.d.ts +0 -11
  196. package/dist/types/utils/state-utils.d.ts +0 -1
@@ -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-8be1337b.js";import{k as r}from"./p-ee33cbe9.js";import{g as e,s as c}from"./p-10c8d755.js";import{c as l}from"./p-97e8ea42.js";import{F as p}from"./p-5d190cf5.js";import"./p-6c77a36c.js";import"./p-47b57d97.js";var h;!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."}(h||(h={}));const u=class{constructor(i){t(this,i),this.kupActionClick=s(this,"kup-snackbar-actionclick",6),this.visible=!1,this.actionButton=null,this.closeButton=!0,this.customStyle="",this.text="",this.timeout=null,this.kupManager=r()}onKupActionClick(){this.hide(),this.kupActionClick.emit({comp:this,id:this.rootElement.id})}async getProps(t){return e(this,h,t)}async hide(){this.visible=!1}async refresh(){i(this)}async setProps(t){c(this,h,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:"snackbar"},o("div",{class:"snackbar__text"},this.text),this.actionButton||this.closeButton?o("div",{class:"snackbar__buttons"},this.actionButton?o("div",{class:"snackbar__action"},o(p,Object.assign({},this.actionButton,{onClick:()=>this.onKupActionClick()}))):null,this.closeButton?o("div",{class:"snackbar__close"},o(p,{icon:"close",onClick:()=>this.hide()})):null):null)))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return n(this)}};u.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{u as kup_snackbar}
@@ -0,0 +1 @@
1
+ import{r,c as o,f as t,h as e,H as a,g as i}from"./p-8be1337b.js";import{k as s}from"./p-ee33cbe9.js";import{g as p,s as n}from"./p-10c8d755.js";import{c as d}from"./p-97e8ea42.js";var c;!function(r){r.customStyle="Custom style of the component.",r.opened="Defaults at false. When set to true, the drawer appears."}(c||(c={}));const u=class{constructor(t){r(this,t),this.kupDrawerClose=o(this,"kup-drawer-close",6),this.kupDrawerOpen=o(this,"kup-drawer-open",6),this.kupDrawerReady=o(this,"kup-drawer-ready",6),this.opened=!1,this.customStyle="",this.kupManager=s()}async close(){this.opened=!1,this.kupDrawerClose.emit({comp:this,id:this.rootElement.id})}async getProps(r){return p(this,c,r)}async isOpened(){return this.opened}async open(){this.opened=!0,this.kupDrawerOpen.emit({comp:this,id:this.rootElement.id})}async refresh(){t(this)}async setProps(r){n(this,c,r)}async toggle(){this.opened?this.close():this.open()}content(){const r=[],o=Array.prototype.slice.call(this.rootElement.children,0),t=[];for(let t=0;t<o.length;t++)r.push(e("slot",null));return t.push(e("div",{class:"drawer__content"},r)),t}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this)}componentDidLoad(){this.kupDrawerReady.emit({comp:this,id:this.rootElement.id}),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){return e(a,{"kup-opened":this.opened},e("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),e("div",{class:"backdrop",onPointerDown:r=>{r.stopPropagation(),this.close()}}),e("div",{id:d},e("div",{class:"drawer"},this.content())))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return i(this)}};u.style=":host{--kup_drawer_backdrop:var(--kup-drawer-backdrop, rgba(0, 0, 0, 0.32));--kup_drawer_box_shadow:var(\n --kup-drawer-box-shadow,\n 0 8px 10px -5px rgba(0, 0, 0, 0.2),\n 0 16px 24px 2px rgba(0, 0, 0, 0.14),\n 0 6px 30px 5px rgba(0, 0, 0, 0.12)\n );--kup_drawer_permanent_border:var(\n --kup-drawer-permanent-border,\n 1px solid var(--kup-border-color)\n );--kup_drawer_slide_transition:var(--kup-drawer-slide-transition, 750ms);--kup_drawer_transition:var(--kup-drawer-transition, 250ms);box-shadow:var(--kup_drawer_box_shadow);display:block;font-size:var(--kup-font-size);height:100vh;left:calc(var(--kup-drawer-width) * -1);position:fixed;top:0;transition:left var(--kup_drawer_slide_transition) cubic-bezier(0.4, 0, 0.2, 1), right var(--kup_drawer_slide_transition) cubic-bezier(0.4, 0, 0.2, 1);width:var(--kup-drawer-width);z-index:var(--kup-drawer-zindex)}#kup-component{height:100%;width:100%}.backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--kup_drawer_backdrop);opacity:0;pointer-events:none;transition:opacity var(--kup_drawer_transition) ease-in;z-index:var(--kup-drawer-zindex)}.drawer{height:100%;position:fixed;width:var(--kup-drawer-width);z-index:calc(var(--kup-drawer-zindex) + 1)}.drawer__content{background-color:var(--kup-drawer-background-color);box-sizing:border-box;height:100%;overflow-y:auto;width:100%}.drawer ::slotted(*){--kup-button-primary-color:var(--kup-drawer-color);--kup-button-primary-color-rgb:var(--kup-drawer-color-rgb);--kup-button-primary-color-h:var(--kup-drawer-color-h);--kup-button-primary-color-s:var(--kup-drawer-color-s);--kup-button-primary-color-l:var(--kup-drawer-color-l);--kup-switch-label-color:var(--kup-drawer-color);--kup-switch-primary-color:var(--kup-drawer-color);--kup-switch-primary-color-rgb:var(--kup-drawer-color-rgb);--kup-textfield-color:var(--kup-drawer-color);--kup-textfield-color-rgb:var(--kup-drawer-color-rgb);--kup-textfield-primary-color:var(--kup-drawer-color);--kup-textfield-primary-color-rgb:var(--kup-drawer-color-rgb);--kup-tree-color:var(--kup-drawer-color);--kup-tree-color-rgb:var(--kup-drawer-color-rgb);--kup-tree-icon-color:var(--kup-drawer-color);color:var(--kup-drawer-color);fill:var(--kup-drawer-color)}:host([kup-opened]){left:0}:host([kup-opened]) .backdrop{opacity:1;pointer-events:all}:host(.kup-right){left:unset;right:-100%}:host([kup-opened].kup-right){right:0}:host(.kup-permanent){box-shadow:unset;transition:all 250ms}:host(.kup-permanent) .backdrop{display:none}:host(.kup-permanent) .drawer{position:relative}:host(.kup-permanent) .drawer__content{border-right:var(--kup_drawer_permanent_border)}";export{u as kup_drawer}
@@ -0,0 +1 @@
1
+ import{r as o,c as r,f as c,h as i,H as a,g as n}from"./p-8be1337b.js";import{k as t,b as e,a as d}from"./p-ee33cbe9.js";import{g as p,s}from"./p-10c8d755.js";import{F as l}from"./p-47b57d97.js";import{c as u}from"./p-97e8ea42.js";import{M as _}from"./p-8c44c3b9.js";import"./p-a0b1d769.js";var k;!function(o){o.customStyle="Custom style of the component. For more information: https://ketchup.smeup.com/ketchup-showcase/#/customization",o.data="Data of the accordion.",o.ripple="When enabled displays Material's ripple effect on item headers."}(k||(k={}));const h=class{constructor(c){o(this,c),this.kupAccordionItemSelected=r(this,"kup-accordion-itemselected",6),this.selectedItems=[],this.customStyle="",this.data=null,this.ripple=!0,this.kupManager=t(),this.slotsNames=[]}applyRipple(){const o=this.rootElement.shadowRoot;if(o&&this.ripple){const r=o.querySelectorAll(".mdc-ripple-surface:not(.mdc-ripple-upgraded)");if(r)for(let o=0;o<r.length;o++)_.attachTo(r[o])}}async collapseAll(){const o=[];for(let r=0;r<this.data.columns.length;r++){const c=this.data.columns[r].name;!this.isItemExpandible(c)&&this.isItemSelected(c)&&o.push(c)}this.selectedItems=o}async expandAll(){const o=[];for(let r=0;r<this.data.columns.length;r++){const c=this.data.columns[r].name;this.isItemExpandible(c)&&o.push(c)}this.selectedItems=o}async getProps(o){return p(this,k,o)}async refresh(){c(this)}async setProps(o){s(this,k,o)}async toggleItem(o){const r=this.isItemExpandible(o),c=[...this.selectedItems];c.includes(o)?c.splice(c.indexOf(o),1):c.push(o),this.selectedItems=c,r||this.kupAccordionItemSelected.emit({comp:this,id:this.rootElement.id,itemName:o})}isItemExpandible(o){return this.slotsNames.includes(o)}isItemSelected(o){return this.selectedItems.includes(o)}renderItems(){const o=[],r=Array.prototype.slice.call(this.rootElement.children,0);this.slotsNames=[];for(let o=0;o<r.length;o++)this.slotsNames.push(r[o].slot);for(let r=0;r<this.data.columns.length;r++){const c=this.data.columns[r],a=c.name,n=this.isItemSelected(a),t=this.isItemExpandible(a),p={"accordion-item__content":!0,"accordion-item__content--selected":!!n};o.push(i("div",{class:"accordion-item"},i("div",{title:c.title,class:{"accordion-item__header":!0,"accordion-item__header--selected":!(t||!n),"accordion-item__header--expanded":!(!t||!n),"mdc-ripple-surface":!!this.ripple},onClick:()=>this.toggleItem(a)},c.icon?i(l,{color:`var(${e.ICON})`,resource:c.icon,sizeX:"1.5em",sizeY:"1.5em",wrapperClass:"accordion-item__icon"}):null,i("span",{class:"accordion-item__text"},c.title),t?i("span",{class:`accordion-item__dropdown kup-icon ${d.DROPDOWN.replace("--","")}`}):null),i("div",{class:p},i("slot",{name:c.name}))))}return o}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this)}componentDidLoad(){this.applyRipple(),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){const o=this.rootElement.shadowRoot;if(o){const r=o.querySelectorAll(".mdc-ripple-surface");if(r)for(let o=0;o<r.length;o++)_.attachTo(r[o])}this.kupManager.debug.logRender(this,!0)}render(){const o=this.data&&this.data.columns?this.renderItems():null;return i(a,null,i("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),i("div",{id:u},i("div",{class:"accordion"},o)))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return n(this)}static get watchers(){return{ripple:["applyRipple"]}}};h.style=":host{--kup_accordion_background_color:var(\n --kup-accordion-background-color,\n var(--kup-background-color)\n );--kup_accordion_border:var(\n --kup-accordion-border,\n 1px solid var(--kup-border-color)\n );--kup_accordion_border_radius:var(--kup-accordion-border-radius, 4px);--kup-accordion_dropdown_icon_color:var(\n --kup-accordion-dropdown-icon-color,\n var(--kup-icon-color)\n );--kup_accordion_font_family:var(\n --kup-accordion-font-family,\n var(--kup-font-family)\n );--kup_accordion_font_size:var(\n --kup-accordion-font-size,\n var(--kup-font-size)\n );--kup_accordion_hover_background_color:var(\n --kup-accordion-hover-background-color,\n var(--kup-hover-background-color)\n );--kup_accordion_hover_color:var(\n --kup-accordion-hover-color,\n var(--kup-hover-color)\n );--kup_accordion_padding:var(--kup-accordion-padding, 1em 1.5em);--kup_accordion_primary_color:var(\n --kup-accordion-primary-color,\n var(--kup-primary-color)\n );--kup_accordion_primary_color_rgb:var(\n --kup-accordion-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_accordion_text_color:var(\n --kup-accordion-text-color,\n var(--kup-text-color)\n );--kup_accordion_text_on_primary_color:var(\n --kup-accordion-text-on-primary-color,\n var(--kup-text-on-primary-color)\n );--kup_accordion_transition:var(--kup-accordion-transition, 80ms);display:block;font-family:var(--kup_accordion_font_family);font-size:var(--kup_accordion_font_size)}.accordion{background-color:var(--kup_accordion_background_color);border-bottom:var(--kup_accordion_border);border-radius:var(--kup_accordion_border_radius);border-top:var(--kup_accordion_border);display:flex;flex-wrap:wrap;flex-direction:column;width:100%}.accordion-item{border-left:var(--kup_accordion_border);border-right:var(--kup_accordion_border);box-sizing:border-box;width:100%}.accordion-item--visible{display:block}.accordion-item:not(:first-of-type){border-top:var(--kup_accordion_border)}.accordion-item__header{align-items:center;border:none;box-sizing:border-box;color:var(--kup_accordion_text_color);cursor:pointer;display:flex;line-height:1.75em;outline:none;padding:var(--kup_accordion_padding);text-align:left;transition:background-color var(--kup_accordion_transition), color var(--kup_accordion_transition);width:100%}.accordion-item__header:hover:not(.accordion-item__header--selected){color:var(--kup_accordion_hover_color);background-color:var(--kup_accordion_hover_background_color)}.accordion-item__header--expanded{color:var(--kup_accordion_hover_color);background-color:var(--kup_accordion_hover_background_color)}.accordion-item__header--expanded .accordion-item__dropdown{transform:rotate(-180deg)}.accordion-item__header--selected{background-color:rgba(var(--kup_accordion_primary_color_rgb), 0.175)}.accordion-item__text{margin-right:0.5em;overflow:hidden;text-overflow:ellipsis;white-space:pre}.accordion-item__text--highlighted{color:var(--kup_accordion_text_on_primary_color);background-color:var(--kup_accordion_primary_color)}.accordion-item__icon{margin-left:0;margin-right:0.5em}.accordion-item__dropdown{background-color:var(--kup-accordion_dropdown_icon_color);height:1.5em;margin-left:auto;margin-right:0;min-width:1.5em;width:1.5em;transition:transform var(--kup_accordion_transition)}.accordion-item__content{animation:fade-in 0.25s ease-out;display:none}.accordion-item__content--selected{display:block}.mdc-ripple-surface{--mdc-ripple-fg-opacity:0.24}.mdc-ripple-surface:before,.mdc-ripple-surface:after{background-color:var(--kup_accordion_primary_color)}.kup-icon.kup-dropdown-icon{-webkit-mask:var(--kup-dropdown-icon);mask:var(--kup-dropdown-icon)}:host(.kup-borderless){--kup-accordion-border:none}:host(.kup-full-height){height:100%}:host(.kup-full-width){width:100%}:host(.kup-danger){--kup-accordion-primary-color:var(--kup-danger-color);--kup-accordion-primary-color-rgb:var(--kup-danger-color-rgb);--kup-accordion-text-on-primary-color:white}:host(.kup-info){--kup-accordion-primary-color:var(--kup-info-color);--kup-accordion-primary-color-rgb:var(--kup-info-color-rgb);--kup-accordion-text-on-primary-color:white}:host(.kup-secondary){--kup-accordion-primary-color:var(--kup-secondary-color);--kup-accordion-primary-color-rgb:var(--kup-secondary-color-rgb);--kup-accordion-text-on-primary-color:var(--kup-text-on-secondary-color)}:host(.kup-success){--kup-accordion-primary-color:var(--kup-success-color);--kup-accordion-primary-color-rgb:var(--kup-success-color-rgb);--kup-accordion-text-on-primary-color:white}:host(.kup-warning){--kup-accordion-primary-color:var(--kup-warning-color);--kup-accordion-primary-color-rgb:var(--kup-warning-color-rgb);--kup-accordion-text-on-primary-color:white}";export{h as kup_accordion}
@@ -1,4 +1,5 @@
1
1
  import { KupDataNode } from '../../managers/kup-data/kup-data-declarations';
2
+ import { KupObj } from '../../managers/kup-objects/kup-objects-declarations';
2
3
  import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
3
4
  /**
4
5
  * Props of the kup-button-list component.
@@ -19,5 +20,5 @@ export interface KupButtonListNode extends KupDataNode {
19
20
  export interface KupButtonListClickEventPayload extends KupEventPayload {
20
21
  index: string;
21
22
  subIndex: string;
22
- obj: any;
23
+ obj: KupObj;
23
24
  }
@@ -43,8 +43,6 @@ export declare enum KupDataTableProps {
43
43
  rowActions = "Sets the actions of the rows.",
44
44
  rowsPerPage = "Sets the number of rows per page to display.",
45
45
  scrollOnHover = "Activates the scroll on hover function.",
46
- selectRow = "Selects the row at the specified rendered rows prosition (base 1).",
47
- selectRowsById = "Semicolon separated rows id to select.",
48
46
  showCustomization = "If set to true, displays the button to open the customization panel.",
49
47
  showFilters = "When set to true enables the column filters.",
50
48
  showFooter = "When set to true shows the footer.",
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import { GroupLabelDisplayMode, GroupObject, LoadMoreMode, PaginatorPos, ShowGrid, SortObject, TotalsMap, SelectionMode, KupDatatableAutoRowSelectEventPayload, KupDatatableRowSelectedEventPayload, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableRowActionClickEventPayload, KupDatatableLoadMoreClickEventPayload, KupDatatableColumnRemoveEventPayload, KupDatatableColumnMoveEventPayload, KupDataTableDataset, KupDataTableRow } from './kup-data-table-declarations';
2
+ import { GroupLabelDisplayMode, GroupObject, LoadMoreMode, PaginatorPos, ShowGrid, SortObject, TotalsMap, SelectionMode, KupDatatableRowSelectedEventPayload, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableRowActionClickEventPayload, KupDatatableLoadMoreClickEventPayload, KupDatatableColumnRemoveEventPayload, KupDatatableColumnMoveEventPayload, KupDataTableDataset, KupDataTableRow } from './kup-data-table-declarations';
3
3
  import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
4
4
  import { KupDataTableState } from './kup-data-table-state';
5
5
  import { KupStore } from '../kup-state/kup-store';
@@ -178,14 +178,6 @@ export declare class KupDataTable {
178
178
  * Set the type of the rows selection.
179
179
  */
180
180
  selection: SelectionMode;
181
- /**
182
- * Selects the row at the specified rendered rows prosition (base 1).
183
- */
184
- selectRow: number;
185
- /**
186
- * Semicolon separated rows id to select.
187
- */
188
- selectRowsById: string;
189
181
  /**
190
182
  * If set to true, displays the button to open the customization panel.
191
183
  */
@@ -281,6 +273,7 @@ export declare class KupDataTable {
281
273
  recalculateRowsAndUndoSelections(): void;
282
274
  controlFixedRowsColumns(): void;
283
275
  recalculateData(): void;
276
+ private initialized;
284
277
  private rows;
285
278
  private rowsLength;
286
279
  private paginatedRows;
@@ -360,10 +353,6 @@ export declare class KupDataTable {
360
353
  * When rows selections reset
361
354
  */
362
355
  kupResetSelectedRows: EventEmitter<KupEventPayload>;
363
- /**
364
- * When a row is auto selected via selectRow prop
365
- */
366
- kupAutoRowSelect: EventEmitter<KupDatatableAutoRowSelectEventPayload>;
367
356
  /**
368
357
  * When a row is selected
369
358
  */
@@ -415,6 +404,10 @@ export declare class KupDataTable {
415
404
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
416
405
  */
417
406
  getProps(descriptions?: boolean): Promise<GenericObject>;
407
+ /**
408
+ * This method will get the selected rows of the component.
409
+ */
410
+ getSelectedRows(): Promise<Array<KupDataTableRow>>;
418
411
  /**
419
412
  * Hides the given column.
420
413
  * @param {KupDataColumn} column - Column to hide.
@@ -453,10 +446,10 @@ export declare class KupDataTable {
453
446
  setProps(props: GenericObject): Promise<void>;
454
447
  /**
455
448
  * This method will set the selected rows of the component.
456
- * @param {string} rowsById - String containing the ids separated by ";".
449
+ * @param {string|number[]} rowsIdentifiers - Array of ids (dataset) or indexes (rendered rows).
457
450
  * @param {boolean} emitEvent - The event will always be emitted unless emitEvent is set to false.
458
451
  */
459
- setSelectedRows(rowsById: string, emitEvent?: boolean): Promise<void>;
452
+ setSelectedRows(rowsIdentifiers: string[] | number[], emitEvent?: boolean): Promise<void>;
460
453
  private closeDropCard;
461
454
  private createDropCard;
462
455
  private calculateData;
@@ -8,7 +8,7 @@ export declare class KupDropdownButton {
8
8
  * References the root HTML element of the component (<kup-dropdown-button>).
9
9
  */
10
10
  rootElement: HTMLElement;
11
- value: string;
11
+ id: string;
12
12
  /**
13
13
  * Custom style of the component.
14
14
  * @default ""
@@ -7,6 +7,8 @@ import { KupEventPayload } from '../../types/GenericTypes';
7
7
  export declare enum KupEchartProps {
8
8
  axis = "Sets the axis of the chart.",
9
9
  chartTitle = "Title of the graph.",
10
+ colors = "Overrides theme's colors.",
11
+ consistencyCheck = "When true, performs checks in order to properly initialize props which could be missing (i.e.: axis). For performances purposes, this prop will run only once when the component is initially created.",
10
12
  customStyle = "Custom style of the component.",
11
13
  data = "The actual data of the chart.",
12
14
  legend = "Sets the position of the legend. Supported values: bottom, left, right, top. Keep in mind that legend types are tied to chart types, some combinations might not work.",
@@ -27,6 +29,7 @@ export interface KupEchartTitle {
27
29
  export declare enum KupEchartLegendPlacement {
28
30
  BOTTOM = "bottom",
29
31
  LEFT = "left",
32
+ HIDDEN = "hidden",
30
33
  RIGHT = "right",
31
34
  TOP = "top"
32
35
  }
@@ -15,6 +15,17 @@ export declare class KupEchart {
15
15
  * @default ""
16
16
  */
17
17
  axis: string;
18
+ /**
19
+ * Overrides theme's colors.
20
+ * @default []
21
+ */
22
+ colors: string[];
23
+ /**
24
+ * When true, performs checks in order to properly initialize props which could be missing (i.e.: axis).
25
+ * For performances purposes, this prop will run only once when the component is initially created.
26
+ * @default false
27
+ */
28
+ consistencyCheck: boolean;
18
29
  /**
19
30
  * Title of the graph.
20
31
  * @default null
@@ -32,7 +43,7 @@ export declare class KupEchart {
32
43
  */
33
44
  data: KupDataDataset;
34
45
  /**
35
- * Sets the position of the legend. Supported values: bottom, left, right, top. Keep in mind that legend types are tied to chart types, some combinations might not work.
46
+ * Sets the position of the legend. Supported values: bottom, left, right, top, hidden. Keep in mind that legend types are tied to chart types, some combinations might not work.
36
47
  * @default KupEchartLegendPlacement.RIGHT
37
48
  */
38
49
  legend: KupEchartLegendPlacement;
@@ -1,6 +1,6 @@
1
1
  import { KupEventPayload } from '../../types/GenericTypes';
2
2
  import { ValueDisplayedValue as vdv } from '../../utils/filters/filters-declarations';
3
- import { KupObj } from '../../managers/kup-objects/kup-objects-declarations';
3
+ import { KupDataNode } from '../../managers/kup-data/kup-data-declarations';
4
4
  /**
5
5
  * Props of the kup-list component.
6
6
  * Used to export every prop in an object.
@@ -22,11 +22,7 @@ export declare enum KupListProps {
22
22
  /**
23
23
  * Data structure of a single list item.
24
24
  */
25
- export interface KupListData {
26
- obj?: KupObj;
27
- text: string;
28
- value: string;
29
- icon?: string;
25
+ export interface KupListNode extends KupDataNode {
30
26
  secondaryText?: string;
31
27
  selected?: boolean;
32
28
  separator?: boolean;
@@ -48,5 +44,5 @@ export declare enum ItemsDisplayMode {
48
44
  DESCRIPTION_AND_CODE = "both"
49
45
  }
50
46
  export interface KupListEventPayload extends KupEventPayload {
51
- selected: KupListData;
47
+ selected: KupListNode;
52
48
  }
@@ -1,6 +1,6 @@
1
- import { ItemsDisplayMode, KupListData, ValueDisplayedValue } from './kup-list-declarations';
2
- export declare function getValueOfItemByDisplayMode(item: KupListData, mode: ItemsDisplayMode, separator: string): string;
3
- export declare function consistencyCheck(valueIn: string, listData: Object, listEl: any, selectMode: ItemsDisplayMode, displayMode: ItemsDisplayMode, e?: CustomEvent): ValueDisplayedValue;
4
- export declare function getFirstItemSelected(listData: Object): KupListData;
5
- export declare function getItemByValue(listData: Object, value: string, setSelected: boolean): KupListData;
6
- export declare function getItemByDisplayMode(listData: Object, value: string, displayMode: ItemsDisplayMode, setSelected: boolean): KupListData;
1
+ import { ItemsDisplayMode, KupListNode, ValueDisplayedValue } from './kup-list-declarations';
2
+ export declare function getIdOfItemByDisplayMode(item: KupListNode, mode: ItemsDisplayMode, separator: string): string;
3
+ export declare function consistencyCheck(idIn: string, listData: Object, listEl: any, selectMode: ItemsDisplayMode, displayMode: ItemsDisplayMode, e?: CustomEvent): ValueDisplayedValue;
4
+ export declare function getFirstItemSelected(listData: Object): KupListNode;
5
+ export declare function getItemById(listData: Object, id: string, setSelected: boolean): KupListNode;
6
+ export declare function getItemByDisplayMode(listData: Object, id: string, displayMode: ItemsDisplayMode, setSelected: boolean): KupListNode;
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import { KupListData, KupListEventPayload, KupListRole } from './kup-list-declarations';
2
+ import { KupListNode, KupListEventPayload, KupListRole } from './kup-list-declarations';
3
3
  import { ItemsDisplayMode } from './kup-list-declarations';
4
4
  import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
5
5
  export declare class KupList {
@@ -28,7 +28,7 @@ export declare class KupList {
28
28
  * The data of the list.
29
29
  * @default []
30
30
  */
31
- data: KupListData[];
31
+ data: KupListNode[];
32
32
  /**
33
33
  * Selects how the items must display their label and how they can be filtered for.
34
34
  * @default ItemsDisplayMode.DESCRIPTION
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Props of the kup-photo-frame component.
3
+ * Used to export every prop in an object.
4
+ */
5
+ export declare enum KupPhotoFrameProps {
6
+ customStyle = "Custom style of the component.",
7
+ placeholderAttrs = "Html attributes of the picture before the component enters the viewport.",
8
+ resourceAttrs = "Html attributes of the picture after the component enters the viewport."
9
+ }
@@ -0,0 +1,61 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
3
+ export declare class KupPhotoFrame {
4
+ #private;
5
+ /**
6
+ * References the root HTML element of the component (<kup-photo-frame>).
7
+ */
8
+ rootElement: HTMLElement;
9
+ isInViewport: boolean;
10
+ /**
11
+ * Custom style of the component.
12
+ * @default ""
13
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
14
+ */
15
+ customStyle: string;
16
+ /**
17
+ * Html attributes of the picture before the component enters the viewport.
18
+ * @default {}
19
+ */
20
+ placeholderAttrs: GenericObject;
21
+ /**
22
+ * Html attributes of the picture after the component enters the viewport.
23
+ * @default {}
24
+ */
25
+ resourceAttrs: GenericObject;
26
+ /**
27
+ * Percentage of the component dimensions entering the viewport (0.1 => 1).
28
+ * @default 0.25
29
+ */
30
+ threshold: number;
31
+ /**
32
+ * Triggered when the placeholder is loaded.
33
+ */
34
+ kupPhotoFramePlaceholderLoad: EventEmitter<KupEventPayload>;
35
+ /**
36
+ * Triggered when the resource is loaded.
37
+ */
38
+ kupPhotoFrameResourceLoad: EventEmitter<KupEventPayload>;
39
+ /**
40
+ * Used to retrieve component's props values.
41
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
42
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
43
+ */
44
+ getProps(descriptions?: boolean): Promise<GenericObject>;
45
+ /**
46
+ * This method is used to trigger a new render of the component.
47
+ */
48
+ refresh(): Promise<void>;
49
+ /**
50
+ * Sets the props to the component.
51
+ * @param {GenericObject} props - Object containing props that will be set to the component.
52
+ */
53
+ setProps(props: GenericObject): Promise<void>;
54
+ setObserver(): void;
55
+ componentWillLoad(): void;
56
+ componentDidLoad(): void;
57
+ componentWillRender(): void;
58
+ componentDidRender(): void;
59
+ render(): any;
60
+ disconnectedCallback(): void;
61
+ }
@@ -62,7 +62,7 @@ export interface KupTreeEventHandlerDetails {
62
62
  row: KupDataRow;
63
63
  td: HTMLElement;
64
64
  th: HTMLElement;
65
- tr: HTMLTableRowElement;
65
+ tr: HTMLElement;
66
66
  }
67
67
  export declare enum KupTreeExpansionMode {
68
68
  DROPDOWN = "dropdown",
@@ -183,7 +183,6 @@ export declare class KupTree {
183
183
  */
184
184
  private columnMenuCard;
185
185
  private treeWrapperRef;
186
- private selectedColumn;
187
186
  private clickTimeout;
188
187
  private globalFilterTimeout;
189
188
  private footer;
@@ -315,6 +314,7 @@ export declare class KupTree {
315
314
  private contextMenuHandler;
316
315
  hdlTreeNodeClick(e: MouseEvent, treeNodeData: KupTreeNode, treeNodePath: string, auto: boolean): void;
317
316
  hdlTreeNodeExpanderClick(treeNodeData: KupTreeNode, treeNodePath: string, ctrlKey: boolean): void;
317
+ private getEventPath;
318
318
  private hasTotals;
319
319
  private handleChildren;
320
320
  /**
@@ -7,7 +7,7 @@
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { KupAccordionData, KupAccordionItemSelectedEventPayload } from "./components/kup-accordion/kup-accordion-declarations";
9
9
  import { GenericObject, KupEventPayload } from "./types/GenericTypes";
10
- import { ItemsDisplayMode, KupListData, KupListEventPayload, KupListRole } from "./components/kup-list/kup-list-declarations";
10
+ import { ItemsDisplayMode, KupListEventPayload, KupListNode, KupListRole } from "./components/kup-list/kup-list-declarations";
11
11
  import { KupAutocompleteEventPayload, KupAutocompleteIconClickEventPayload } from "./components/kup-autocomplete/kup-autocomplete-declarations";
12
12
  import { KupBoxAutoSelectEventPayload, KupBoxClickEventPayload, KupBoxContextMenuEventPayload, KupBoxData, KupBoxKanban, KupBoxLayout, KupBoxRow, KupBoxRowActionClickEventPayload, KupBoxSelectedEventPayload } from "./components/kup-box/kup-box-declarations";
13
13
  import { KupStore } from "./components/kup-state/kup-store";
@@ -24,7 +24,7 @@ import { KupChipEventPayload, KupChipNode } from "./components/kup-chip/kup-chip
24
24
  import { FChipType } from "./f-components/f-chip/f-chip-declarations";
25
25
  import { KupColorPickerEventPayload } from "./components/kup-color-picker/kup-color-picker-declarations";
26
26
  import { KupComboboxEventPayload, KupComboboxIconClickEventPayload } from "./components/kup-combobox/kup-combobox-declarations";
27
- import { GroupLabelDisplayMode, GroupObject, KupDatatableAutoRowSelectEventPayload, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableColumnMoveEventPayload, KupDatatableColumnRemoveEventPayload, KupDataTableDataset, KupDatatableLoadMoreClickEventPayload, KupDatatableRowActionClickEventPayload, KupDatatableRowSelectedEventPayload, LoadMoreMode, PaginatorPos, SelectionMode, ShowGrid, SortObject, TotalsMap } from "./components/kup-data-table/kup-data-table-declarations";
27
+ import { GroupLabelDisplayMode, GroupObject, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableColumnMoveEventPayload, KupDatatableColumnRemoveEventPayload, KupDataTableDataset, KupDatatableLoadMoreClickEventPayload, KupDataTableRow, KupDatatableRowActionClickEventPayload, KupDatatableRowSelectedEventPayload, LoadMoreMode, PaginatorPos, SelectionMode, ShowGrid, SortObject, TotalsMap } from "./components/kup-data-table/kup-data-table-declarations";
28
28
  import { GenericFilter, KupGlobalFilterMode } from "./utils/filters/filters-declarations";
29
29
  import { KupDatePickerEventPayload } from "./components/kup-date-picker/kup-date-picker-declarations";
30
30
  import { KupDropdownButtonEventPayload } from "./components/kup-dropdown-button/kup-dropdown-button-declarations";
@@ -1102,6 +1102,10 @@ export namespace Components {
1102
1102
  * @returns List of props as object, each key will be a prop.
1103
1103
  */
1104
1104
  "getProps": (descriptions?: boolean) => Promise<GenericObject>;
1105
+ /**
1106
+ * This method will get the selected rows of the component.
1107
+ */
1108
+ "getSelectedRows": () => Promise<Array<KupDataTableRow>>;
1105
1109
  /**
1106
1110
  * When set to true it activates the global filter.
1107
1111
  */
@@ -1204,14 +1208,6 @@ export namespace Components {
1204
1208
  * Activates the scroll on hover function.
1205
1209
  */
1206
1210
  "scrollOnHover": boolean;
1207
- /**
1208
- * Selects the row at the specified rendered rows prosition (base 1).
1209
- */
1210
- "selectRow": number;
1211
- /**
1212
- * Semicolon separated rows id to select.
1213
- */
1214
- "selectRowsById": string;
1215
1211
  /**
1216
1212
  * Set the type of the rows selection.
1217
1213
  */
@@ -1229,10 +1225,10 @@ export namespace Components {
1229
1225
  "setProps": (props: GenericObject) => Promise<void>;
1230
1226
  /**
1231
1227
  * This method will set the selected rows of the component.
1232
- * @param rowsById - String containing the ids separated by ";".
1228
+ * @param rowsIdentifiers - Array of ids (dataset) or indexes (rendered rows).
1233
1229
  * @param emitEvent - The event will always be emitted unless emitEvent is set to false.
1234
1230
  */
1235
- "setSelectedRows": (rowsById: string, emitEvent?: boolean) => Promise<void>;
1231
+ "setSelectedRows": (rowsIdentifiers: string[] | number[], emitEvent?: boolean) => Promise<void>;
1236
1232
  /**
1237
1233
  * If set to true, displays the button to open the customization panel.
1238
1234
  */
@@ -1493,6 +1489,16 @@ export namespace Components {
1493
1489
  * @default null
1494
1490
  */
1495
1491
  "chartTitle": KupEchartTitle;
1492
+ /**
1493
+ * Overrides theme's colors.
1494
+ * @default []
1495
+ */
1496
+ "colors": string[];
1497
+ /**
1498
+ * When true, performs checks in order to properly initialize props which could be missing (i.e.: axis). For performances purposes, this prop will run only once when the component is initially created.
1499
+ * @default false
1500
+ */
1501
+ "consistencyCheck": boolean;
1496
1502
  /**
1497
1503
  * Custom style of the component.
1498
1504
  * @default ""
@@ -1511,7 +1517,7 @@ export namespace Components {
1511
1517
  */
1512
1518
  "getProps": (descriptions?: boolean) => Promise<GenericObject>;
1513
1519
  /**
1514
- * Sets the position of the legend. Supported values: bottom, left, right, top. Keep in mind that legend types are tied to chart types, some combinations might not work.
1520
+ * Sets the position of the legend. Supported values: bottom, left, right, top, hidden. Keep in mind that legend types are tied to chart types, some combinations might not work.
1515
1521
  * @default KupEchartLegendPlacement.RIGHT
1516
1522
  */
1517
1523
  "legend": KupEchartLegendPlacement;
@@ -1906,7 +1912,7 @@ export namespace Components {
1906
1912
  * The data of the list.
1907
1913
  * @default []
1908
1914
  */
1909
- "data": KupListData[];
1915
+ "data": KupListNode[];
1910
1916
  /**
1911
1917
  * Selects how the items must display their label and how they can be filtered for.
1912
1918
  * @default ItemsDisplayMode.DESCRIPTION
@@ -2046,6 +2052,44 @@ export namespace Components {
2046
2052
  */
2047
2053
  "styling": KupNavBarStyling;
2048
2054
  }
2055
+ interface KupPhotoFrame {
2056
+ /**
2057
+ * Custom style of the component.
2058
+ * @default ""
2059
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
2060
+ */
2061
+ "customStyle": string;
2062
+ /**
2063
+ * Used to retrieve component's props values.
2064
+ * @param descriptions - When provided and true, the result will be the list of props with their description.
2065
+ * @returns List of props as object, each key will be a prop.
2066
+ */
2067
+ "getProps": (descriptions?: boolean) => Promise<GenericObject>;
2068
+ /**
2069
+ * Html attributes of the picture before the component enters the viewport.
2070
+ * @default {}
2071
+ */
2072
+ "placeholderAttrs": GenericObject;
2073
+ /**
2074
+ * This method is used to trigger a new render of the component.
2075
+ */
2076
+ "refresh": () => Promise<void>;
2077
+ /**
2078
+ * Html attributes of the picture after the component enters the viewport.
2079
+ * @default {}
2080
+ */
2081
+ "resourceAttrs": GenericObject;
2082
+ /**
2083
+ * Sets the props to the component.
2084
+ * @param props - Object containing props that will be set to the component.
2085
+ */
2086
+ "setProps": (props: GenericObject) => Promise<void>;
2087
+ /**
2088
+ * Percentage of the component dimensions entering the viewport (0.1 => 1).
2089
+ * @default 0.25
2090
+ */
2091
+ "threshold": number;
2092
+ }
2049
2093
  interface KupProbe {
2050
2094
  /**
2051
2095
  * Custom style of the component.
@@ -3063,6 +3107,12 @@ declare global {
3063
3107
  prototype: HTMLKupNavBarElement;
3064
3108
  new (): HTMLKupNavBarElement;
3065
3109
  };
3110
+ interface HTMLKupPhotoFrameElement extends Components.KupPhotoFrame, HTMLStencilElement {
3111
+ }
3112
+ var HTMLKupPhotoFrameElement: {
3113
+ prototype: HTMLKupPhotoFrameElement;
3114
+ new (): HTMLKupPhotoFrameElement;
3115
+ };
3066
3116
  interface HTMLKupProbeElement extends Components.KupProbe, HTMLStencilElement {
3067
3117
  }
3068
3118
  var HTMLKupProbeElement: {
@@ -3172,6 +3222,7 @@ declare global {
3172
3222
  "kup-list": HTMLKupListElement;
3173
3223
  "kup-magic-box": HTMLKupMagicBoxElement;
3174
3224
  "kup-nav-bar": HTMLKupNavBarElement;
3225
+ "kup-photo-frame": HTMLKupPhotoFrameElement;
3175
3226
  "kup-probe": HTMLKupProbeElement;
3176
3227
  "kup-progress-bar": HTMLKupProgressBarElement;
3177
3228
  "kup-qlik": HTMLKupQlikElement;
@@ -4116,10 +4167,6 @@ declare namespace LocalJSX {
4116
4167
  * @see loadMoreLimit
4117
4168
  */
4118
4169
  "loadMoreStep"?: number;
4119
- /**
4120
- * When a row is auto selected via selectRow prop
4121
- */
4122
- "onKup-datatable-autorowselect"?: (event: CustomEvent<KupDatatableAutoRowSelectEventPayload>) => void;
4123
4170
  /**
4124
4171
  * Generic click event on data table.
4125
4172
  */
@@ -4193,14 +4240,6 @@ declare namespace LocalJSX {
4193
4240
  * Activates the scroll on hover function.
4194
4241
  */
4195
4242
  "scrollOnHover"?: boolean;
4196
- /**
4197
- * Selects the row at the specified rendered rows prosition (base 1).
4198
- */
4199
- "selectRow"?: number;
4200
- /**
4201
- * Semicolon separated rows id to select.
4202
- */
4203
- "selectRowsById"?: string;
4204
4243
  /**
4205
4244
  * Set the type of the rows selection.
4206
4245
  */
@@ -4427,6 +4466,16 @@ declare namespace LocalJSX {
4427
4466
  * @default null
4428
4467
  */
4429
4468
  "chartTitle"?: KupEchartTitle;
4469
+ /**
4470
+ * Overrides theme's colors.
4471
+ * @default []
4472
+ */
4473
+ "colors"?: string[];
4474
+ /**
4475
+ * When true, performs checks in order to properly initialize props which could be missing (i.e.: axis). For performances purposes, this prop will run only once when the component is initially created.
4476
+ * @default false
4477
+ */
4478
+ "consistencyCheck"?: boolean;
4430
4479
  /**
4431
4480
  * Custom style of the component.
4432
4481
  * @default ""
@@ -4439,7 +4488,7 @@ declare namespace LocalJSX {
4439
4488
  */
4440
4489
  "data"?: KupDataDataset;
4441
4490
  /**
4442
- * Sets the position of the legend. Supported values: bottom, left, right, top. Keep in mind that legend types are tied to chart types, some combinations might not work.
4491
+ * Sets the position of the legend. Supported values: bottom, left, right, top, hidden. Keep in mind that legend types are tied to chart types, some combinations might not work.
4443
4492
  * @default KupEchartLegendPlacement.RIGHT
4444
4493
  */
4445
4494
  "legend"?: KupEchartLegendPlacement;
@@ -4741,7 +4790,7 @@ declare namespace LocalJSX {
4741
4790
  * The data of the list.
4742
4791
  * @default []
4743
4792
  */
4744
- "data"?: KupListData[];
4793
+ "data"?: KupListNode[];
4745
4794
  /**
4746
4795
  * Selects how the items must display their label and how they can be filtered for.
4747
4796
  * @default ItemsDisplayMode.DESCRIPTION
@@ -4830,6 +4879,37 @@ declare namespace LocalJSX {
4830
4879
  */
4831
4880
  "styling"?: KupNavBarStyling;
4832
4881
  }
4882
+ interface KupPhotoFrame {
4883
+ /**
4884
+ * Custom style of the component.
4885
+ * @default ""
4886
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
4887
+ */
4888
+ "customStyle"?: string;
4889
+ /**
4890
+ * Triggered when the placeholder is loaded.
4891
+ */
4892
+ "onKup-photoframe-placeholderload"?: (event: CustomEvent<KupEventPayload>) => void;
4893
+ /**
4894
+ * Triggered when the resource is loaded.
4895
+ */
4896
+ "onKup-photoframe-resourceload"?: (event: CustomEvent<KupEventPayload>) => void;
4897
+ /**
4898
+ * Html attributes of the picture before the component enters the viewport.
4899
+ * @default {}
4900
+ */
4901
+ "placeholderAttrs"?: GenericObject;
4902
+ /**
4903
+ * Html attributes of the picture after the component enters the viewport.
4904
+ * @default {}
4905
+ */
4906
+ "resourceAttrs"?: GenericObject;
4907
+ /**
4908
+ * Percentage of the component dimensions entering the viewport (0.1 => 1).
4909
+ * @default 0.25
4910
+ */
4911
+ "threshold"?: number;
4912
+ }
4833
4913
  interface KupProbe {
4834
4914
  /**
4835
4915
  * Custom style of the component.
@@ -5601,6 +5681,7 @@ declare namespace LocalJSX {
5601
5681
  "kup-list": KupList;
5602
5682
  "kup-magic-box": KupMagicBox;
5603
5683
  "kup-nav-bar": KupNavBar;
5684
+ "kup-photo-frame": KupPhotoFrame;
5604
5685
  "kup-probe": KupProbe;
5605
5686
  "kup-progress-bar": KupProgressBar;
5606
5687
  "kup-qlik": KupQlik;
@@ -5650,6 +5731,7 @@ declare module "@stencil/core" {
5650
5731
  "kup-list": LocalJSX.KupList & JSXBase.HTMLAttributes<HTMLKupListElement>;
5651
5732
  "kup-magic-box": LocalJSX.KupMagicBox & JSXBase.HTMLAttributes<HTMLKupMagicBoxElement>;
5652
5733
  "kup-nav-bar": LocalJSX.KupNavBar & JSXBase.HTMLAttributes<HTMLKupNavBarElement>;
5734
+ "kup-photo-frame": LocalJSX.KupPhotoFrame & JSXBase.HTMLAttributes<HTMLKupPhotoFrameElement>;
5653
5735
  "kup-probe": LocalJSX.KupProbe & JSXBase.HTMLAttributes<HTMLKupProbeElement>;
5654
5736
  "kup-progress-bar": LocalJSX.KupProgressBar & JSXBase.HTMLAttributes<HTMLKupProgressBarElement>;
5655
5737
  "kup-qlik": LocalJSX.KupQlik & JSXBase.HTMLAttributes<HTMLKupQlikElement>;
@@ -20,7 +20,15 @@ export declare function hideColumns(dataset: KupDataDataset | KupDataColumn[], c
20
20
  * @param {KupDataNewColumnOptions} options - Options used by the submethods to create the column.
21
21
  * @returns {string | Column} Returns the new column created or a string containing the error message (if something went wrong).
22
22
  */
23
- export declare function newColumn(dataset: KupDataDataset, type: KupDataNewColumnTypes, options?: KupDataNewColumnOptions): string | KupDataColumn;
23
+ export declare function newColumn(dataset: KupDataDataset, type: KupDataNewColumnTypes, options: KupDataNewColumnOptions): string | KupDataColumn;
24
+ /**
25
+ * Creates a duplicate of the specified column.
26
+ * @param {KupDataDataset} dataset - Input dataset.
27
+ * @param {string[]} column2duplicate - Name of the column to duplicate (the first occurrence of the array will be used).
28
+ * @param {KupDataColumn} newColumn - Column created.
29
+ * @returns {KupDataColumn} Resulting column.
30
+ */
31
+ export declare function newColumnFromDuplication(dataset: KupDataDataset, column2duplicate: string[], newColumn: KupDataColumn): KupDataColumn;
24
32
  /**
25
33
  * Takes the columns to merge and creates a new column with their cells. The merged columns will then be removed.
26
34
  * @param {KupDataDataset} dataset - Input dataset.