@sme.up/ketchup 6.9.0-SNAPSHOT → 7.0.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 (112) hide show
  1. package/dist/cjs/{f-button-e48df7ac.js → f-button-293afb08.js} +1 -1
  2. package/dist/cjs/{f-cell-73b2fd86.js → f-cell-06b323ca.js} +11 -8
  3. package/dist/cjs/{f-chip-1d499dc9.js → f-chip-1c944c07.js} +2 -2
  4. package/dist/cjs/{f-image-9be73458.js → f-image-bfb4e4c9.js} +1 -1
  5. package/dist/cjs/{f-paginator-utils-b1f44f04.js → f-paginator-utils-c9560cfd.js} +2 -2
  6. package/dist/cjs/{f-text-field-43439612.js → f-text-field-e99c5a26.js} +1 -1
  7. package/dist/cjs/ketchup.cjs.js +1 -1
  8. package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
  9. package/dist/cjs/kup-autocomplete_26.cjs.entry.js +164 -21
  10. package/dist/cjs/kup-box.cjs.entry.js +7 -7
  11. package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
  12. package/dist/cjs/kup-cell.cjs.entry.js +5 -5
  13. package/dist/cjs/kup-dash-list.cjs.entry.js +1 -1
  14. package/dist/cjs/kup-dash_2.cjs.entry.js +1 -1
  15. package/dist/cjs/kup-dashboard.cjs.entry.js +4 -4
  16. package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
  17. package/dist/cjs/kup-echart.cjs.entry.js +1 -1
  18. package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
  19. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  20. package/dist/cjs/kup-image-list.cjs.entry.js +6 -6
  21. package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
  22. package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
  23. package/dist/cjs/{kup-manager-58ba55f4.js → kup-manager-1e882e61.js} +3 -1
  24. package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
  25. package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
  27. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  28. package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
  29. package/dist/cjs/kup-snackbar.cjs.entry.js +3 -3
  30. package/dist/cjs/loader.cjs.js +1 -1
  31. package/dist/collection/assets/card.js +9 -2
  32. package/dist/collection/assets/data-table.js +48 -1
  33. package/dist/collection/components/kup-card/box/kup-card-box.js +114 -5
  34. package/dist/collection/components/kup-card/kup-card.css +171 -21
  35. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  36. package/dist/collection/components/kup-data-table/kup-data-table.js +10 -3
  37. package/dist/collection/components/kup-form/kup-form-declarations.js +3 -0
  38. package/dist/collection/components/kup-form/kup-form.js +56 -3
  39. package/dist/collection/f-components/f-cell/f-cell-declarations.js +2 -0
  40. package/dist/collection/f-components/f-cell/f-cell.js +7 -4
  41. package/dist/components/kup-autocomplete2.js +169 -19
  42. package/dist/esm/{f-button-b902ad65.js → f-button-4aad092d.js} +1 -1
  43. package/dist/esm/{f-cell-b11d0d5d.js → f-cell-43ca8ab5.js} +11 -8
  44. package/dist/esm/{f-chip-6b8cd306.js → f-chip-94851217.js} +2 -2
  45. package/dist/esm/{f-image-983805af.js → f-image-48a4b032.js} +1 -1
  46. package/dist/esm/{f-paginator-utils-b22bec1f.js → f-paginator-utils-fe00f75c.js} +2 -2
  47. package/dist/esm/{f-text-field-3f9a7ba7.js → f-text-field-b6f9ce84.js} +1 -1
  48. package/dist/esm/ketchup.js +1 -1
  49. package/dist/esm/kup-accordion.entry.js +2 -2
  50. package/dist/esm/kup-autocomplete_26.entry.js +164 -21
  51. package/dist/esm/kup-box.entry.js +7 -7
  52. package/dist/esm/kup-calendar.entry.js +4 -4
  53. package/dist/esm/kup-cell.entry.js +5 -5
  54. package/dist/esm/kup-dash-list.entry.js +1 -1
  55. package/dist/esm/kup-dash_2.entry.js +1 -1
  56. package/dist/esm/kup-dashboard.entry.js +4 -4
  57. package/dist/esm/kup-drawer.entry.js +1 -1
  58. package/dist/esm/kup-echart.entry.js +1 -1
  59. package/dist/esm/kup-family-tree.entry.js +3 -3
  60. package/dist/esm/kup-iframe.entry.js +1 -1
  61. package/dist/esm/kup-image-list.entry.js +6 -6
  62. package/dist/esm/kup-lazy.entry.js +1 -1
  63. package/dist/esm/kup-magic-box.entry.js +2 -2
  64. package/dist/esm/{kup-manager-a1976c1f.js → kup-manager-07c9ba13.js} +3 -1
  65. package/dist/esm/kup-nav-bar.entry.js +1 -1
  66. package/dist/esm/kup-numeric-picker.entry.js +2 -2
  67. package/dist/esm/kup-photo-frame.entry.js +1 -1
  68. package/dist/esm/kup-probe.entry.js +1 -1
  69. package/dist/esm/kup-qlik.entry.js +1 -1
  70. package/dist/esm/kup-snackbar.entry.js +3 -3
  71. package/dist/esm/loader.js +1 -1
  72. package/dist/ketchup/ketchup.esm.js +1 -1
  73. package/dist/ketchup/{p-5c6798dc.entry.js → p-02be3dd2.entry.js} +1 -1
  74. package/dist/ketchup/{p-ca723973.entry.js → p-10281712.entry.js} +1 -1
  75. package/dist/ketchup/{p-fc1f1a63.entry.js → p-122f51a0.entry.js} +1 -1
  76. package/dist/ketchup/{p-b2bb0feb.entry.js → p-14aec9c8.entry.js} +1 -1
  77. package/dist/ketchup/{p-751a87a6.js → p-200c76a8.js} +1 -1
  78. package/dist/ketchup/{p-a4c30e9a.entry.js → p-23f50851.entry.js} +1 -1
  79. package/dist/ketchup/{p-bb172702.entry.js → p-2935f22d.entry.js} +1 -1
  80. package/dist/ketchup/{p-b8de542a.entry.js → p-33429412.entry.js} +1 -1
  81. package/dist/ketchup/{p-8bed854e.entry.js → p-3a55568c.entry.js} +1 -1
  82. package/dist/ketchup/{p-0e34943f.entry.js → p-4c92f0a4.entry.js} +1 -1
  83. package/dist/ketchup/{p-1df3f4b3.js → p-5781af8a.js} +1 -1
  84. package/dist/ketchup/{p-6686f614.entry.js → p-5f7da18e.entry.js} +1 -1
  85. package/dist/ketchup/{p-913d78b8.entry.js → p-69a9af60.entry.js} +1 -1
  86. package/dist/ketchup/{p-1f1c3e90.entry.js → p-7134b172.entry.js} +1 -1
  87. package/dist/ketchup/{p-fe4d6234.entry.js → p-772f4bb7.entry.js} +1 -1
  88. package/dist/ketchup/{p-2f274bd1.entry.js → p-79936744.entry.js} +1 -1
  89. package/dist/ketchup/{p-34fb0757.js → p-86e4bfad.js} +1 -1
  90. package/dist/ketchup/p-8f8b5a08.entry.js +9 -0
  91. package/dist/ketchup/{p-c1d3332f.entry.js → p-94e3b109.entry.js} +1 -1
  92. package/dist/ketchup/{p-43d52a62.js → p-984a05ff.js} +1 -1
  93. package/dist/ketchup/{p-7d223413.entry.js → p-9f759d8d.entry.js} +1 -1
  94. package/dist/ketchup/{p-6154123c.entry.js → p-ab6c66f7.entry.js} +1 -1
  95. package/dist/ketchup/{p-9003c78d.entry.js → p-be7748e6.entry.js} +1 -1
  96. package/dist/ketchup/{p-59a78bb2.js → p-c1a5ed6b.js} +1 -1
  97. package/dist/ketchup/p-e3b85cae.js +1 -0
  98. package/dist/ketchup/p-e8666a6d.js +1 -0
  99. package/dist/ketchup/{p-ca42bab6.entry.js → p-eab86c09.entry.js} +1 -1
  100. package/dist/ketchup/{p-67c86b4a.entry.js → p-ec2d1c8c.entry.js} +1 -1
  101. package/dist/types/adoptedStyleSheet-shim.d.ts +3 -3
  102. package/dist/types/components/kup-box/kup-box-declarations.d.ts +9 -9
  103. package/dist/types/components/kup-card/box/kup-card-box.d.ts +24 -0
  104. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
  105. package/dist/types/components/kup-form/kup-form-declarations.d.ts +4 -1
  106. package/dist/types/components/kup-form/kup-form.d.ts +11 -1
  107. package/dist/types/components.d.ts +21 -1
  108. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +2 -1
  109. package/package.json +1 -1
  110. package/dist/ketchup/p-5d4503ff.entry.js +0 -9
  111. package/dist/ketchup/p-657eb6db.js +0 -1
  112. package/dist/ketchup/p-f08ba5cd.js +0 -1
@@ -1 +1 @@
1
- import{r as i,c as t,f as e,h as a,H as s,g as r}from"./p-4fdb684f.js";import{k as o,g as n,s as l,l as p,d as m}from"./p-1df3f4b3.js";import{c}from"./p-97e8ea42.js";import{F as h}from"./p-f08ba5cd.js";import{F as g}from"./p-751a87a6.js";import{F as _}from"./p-6c77a36c.js";import{F as u}from"./p-657eb6db.js";import{M as d}from"./p-81605f08.js";import"./p-23cd5a68.js";import"./p-59a78bb2.js";import"./p-34fb0757.js";import"./p-79b0730b.js";var f;!function(i){i.customStyle="Custom style of the component.",i.data="Actual data of the component",i.ripple="When enabled displays Material's ripple effect on clicked items."}(f||(f={}));class b{constructor(){this.load=!1}toDebugString(){return"image-list state"}}var k,v,w,y,x,j,C,M=function(i,t,e,a){if("a"===e&&!a)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?i!==t||!a:!t.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?a:"a"===e?a.call(i):a?a.value:t.get(i)};const W=class{constructor(e){i(this,e),this.kupClick=t(this,"kup-imagelist-click",6),this.kupContextMenu=t(this,"kup-imagelist-contextmenu",6),this.kupDblClick=t(this,"kup-imagelist-dblclick",6),k.add(this),this.state=new b,this.kupManager=o(),v.set(this,[]),w.set(this,o()),y.set(this,{icon:"arrow_back",onClick:()=>{this.currentNode=M(this,w,"f").data.node.getParent(this.data,this.currentNode),this.currentNode||(this.navigationBarToggled=!1)},styling:_.FLAT,wrapperClass:"navigation-bar__back"}),x.set(this,{icon:"arrow_upward",onClick:()=>{this.currentNode=null,this.navigationBarToggled=!1},styling:_.FLAT,wrapperClass:"navigation-bar__top"}),this.currentNode=null,this.navigationBarToggled=!1,this.customStyle="",this.data=[],this.ripple=!0,this.selectedNode=[],this.stateId="",this.store=void 0}initWithPersistedState(){if(this.store&&this.stateId){const i=this.store.getState(this.stateId);null!=i&&(this.currentNode=this.kupManager.data.node.findByStrTreeNodePath(this.data,i.selectedTreeNodePath))}}persistState(){if(this.store&&this.stateId){let i=!1,t=this.currentNode?this.currentNode.id:"";if(this.kupManager.objects.deepEqual(this.state.selectedTreeNodePath,t)||(this.state.selectedTreeNodePath=t,i=!0),!this.state.load)return void(this.state.load=!0);i&&this.store.persistState(this.stateId,this.state)}}onKupClick(i){i.children&&i.children.length>0&&(this.currentNode=i),this.kupClick.emit({comp:this,id:this.rootElement.id,node:i})}onKupContextMenu(i,t){i.preventDefault(),this.kupContextMenu.emit({comp:this,id:this.rootElement.id,node:t})}onKupDblClick(i){for(let i=0;i<M(this,v,"f").length;i++)clearTimeout(M(this,v,"f")[i]);(function(i,t,e,a,s){if("m"===a)throw new TypeError("Private method is not writable");if("a"===a&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?i!==t||!s:!t.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===a?s.call(i,e):s?s.value=e:t.set(i,e)})(this,v,[],"f"),this.kupDblClick.emit({comp:this,id:this.rootElement.id,node:i})}selectNode(i){i&&0!=i.length&&(this.currentNode=this.kupManager.data.node.find(this.data,i))}async getProps(i){return n(this,f,i)}async refresh(){e(this)}async setProps(i){l(this,f,i)}componentWillLoad(){M(this,w,"f").debug.logLoad(this,!1),M(this,w,"f").language.register(this),M(this,w,"f").theme.register(this)}componentDidLoad(){M(this,w,"f").debug.logLoad(this,!0)}componentWillRender(){M(this,w,"f").debug.logRender(this,!1)}componentDidRender(){const i=this.rootElement.shadowRoot;if(i&&this.ripple){const t=i.querySelectorAll(".mdc-ripple-surface:not(.mdc-ripple-upgraded)");if(t)for(let i=0;i<t.length;i++)d.attachTo(t[i])}this.persistState(),M(this,w,"f").debug.logRender(this,!0)}render(){const i=!!this.currentNode;return a(s,null,a("style",null,M(this,w,"f").theme.setKupStyle(this.rootElement)),a("div",{id:c},a("div",{class:"navigation-bar"},i?a("div",{class:"navigation-bar__wrapper "+(this.navigationBarToggled?"navigation-bar__wrapper--active":"")},a("div",{class:"navigation-bar__title",onClick:()=>{this.navigationBarToggled=!this.navigationBarToggled}},a(h,{fit:!0,resource:this.currentNode.icon,sizeX:"1.25em",sizeY:"1.25em",wrapperClass:"navigation-bar__title__image"}),a("div",{class:"navigation-bar__title__label"},this.currentNode.value)),a(g,Object.assign({},M(this,y,"f"),{label:M(this,w,"f").language.translate(p.BACK)})),a(g,Object.assign({},M(this,x,"f"),{label:M(this,w,"f").language.translate(p.TOP)}))):null),a("div",{class:"image-list"},...M(this,k,"m",C).call(this))))}disconnectedCallback(){M(this,w,"f").language.unregister(this),M(this,w,"f").theme.unregister(this)}get rootElement(){return r(this)}static get watchers(){return{selectedNode:["selectNode"]}}};v=new WeakMap,w=new WeakMap,y=new WeakMap,x=new WeakMap,k=new WeakSet,j=function(i){const t=a(h,Object.assign({},{fit:!0,resource:i.icon,title:i.title,wrapperClass:"image-list__image"})),e=a("div",{class:"image-list__label"},i.value);return a(u,{cell:{value:i.value,icon:i.icon,obj:i.obj},column:{name:"IMAGE",title:"Image"},component:this,density:m.NONE,row:Object.assign({},i)},a("div",{class:"image-list__wrapper"},t,e))},C=function(){const i=[],t=this.currentNode?this.currentNode.children:this.data;for(let e=0;t&&e<t.length;e++){const s=t[e],r=a("div",{onClick:()=>{M(this,v,"f").push(setTimeout((()=>this.onKupClick(s)),300))},onContextMenu:i=>this.onKupContextMenu(i,s),onDblClick:()=>this.onKupDblClick(s),class:{"image-list__item":!0,"mdc-ripple-surface":!!this.ripple}},M(this,k,"m",j).call(this,s));i.push(r)}return i},W.style=":host{--kup_imagelist_background_color:var(\n --kup-imagelist-background-color,\n transparent\n );--kup_imagelist_columns:var(--kup-imagelist-columns, 4);--kup_imagelist_grid_gap:var(--kup-imagelist-grid-gap, 0.5em);--kup_imagelist_image_margin:var(--kup-imagelist-image-margin, 1em auto);--kup_imagelist_image_min_height:var(--kup-imagelist-image-min-height, 64px);--kup_imagelist_item_border_radius:var(\n --kup-imagelist-item-border-radius,\n 8px\n );--kup_imagelist_item_height:var(--kup-imagelist-item-height, auto);--kup_imagelist_item_padding:var(--kup-imagelist-item-padding, 0);--kup_imagelist_item_width:var(--kup-imagelist-item-width, auto);--kup_imagelist_label_margin:var(\n --kup-imagelist-label-margin,\n 0 auto 1em auto\n );--kup_imagelist_navbar_background_color:var(\n --kup-imagelist-navbar-background-color,\n transparent\n );--kup_imagelist_primary_color:var(\n --kup-imagelist-primary-color,\n var(--kup-primary-color)\n );--kup_imagelist_primary_color_rgb:var(\n --kup-imagelist-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_imagelist_text_color:var(\n --kup-imagelist-text-color,\n var(--kup-text-color)\n );display:block}.navigation-bar{align-items:center;background-color:var(--kup_imagelist_navbar_background_color);display:flex;justify-content:center}.navigation-bar__wrapper{align-items:center;display:flex;flex-wrap:wrap;justify-content:center;max-width:100%;position:relative}.navigation-bar__wrapper--active .navigation-bar__title{background-color:rgba(var(--kup_imagelist_primary_color_rgb), 0.15);color:var(--kup_imagelist_primary_color)}.navigation-bar__back,.navigation-bar__top{--kup-button-primary-color-rgb:0}.navigation-bar__title{border-radius:16px;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;padding:0.75em 1em;user-select:none;transition:background-color 125ms, color 125ms;width:100%}.navigation-bar__title__image.f-image{margin:0}.navigation-bar__title__label{font-size:1.2em;font-weight:bold;letter-spacing:0.12em;overflow:hidden;padding:0 0.5em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.image-list{background-color:var(--kup_imagelist_background_color);display:grid;grid-gap:var(--kup_imagelist_grid_gap);grid-template-columns:repeat(var(--kup_imagelist_columns, 4), minmax(0px, 1fr));margin-top:1em;width:100%}.image-list .f-cell{height:100%;width:100%}.image-list__item{border-radius:var(--kup_imagelist_item_border_radius);cursor:pointer;height:var(--kup_imagelist_item_height);padding:var(--kup_imagelist_item_padding);width:var(--kup_imagelist_item_width)}.image-list__image.f-image{margin:var(--kup_imagelist_image_margin)}.image-list__image.f-image .f-image__icon{min-height:var(--kup_imagelist_image_min_height)}.image-list__label{color:var(--kup_imagelist_text_color);letter-spacing:0.12em;margin:var(--kup_imagelist_label_margin);overflow:hidden;text-align:center;text-overflow:ellipsis}.image-list .mdc-ripple-surface{--mdc-ripple-fg-opacity:0.24}.image-list .mdc-ripple-surface:before,.image-list .mdc-ripple-surface:after{background-color:var(--kup_imagelist_primary_color)}:host(.kup-full-height){height:100%}:host(.kup-full-width){width:100%}:host(.kup-horizontal) .image-list{display:flex}:host(.kup-auto-grid) .image-list{display:flex;flex-wrap:wrap;justify-content:center}";export{W as kup_image_list}
1
+ import{r as i,c as t,f as e,h as a,H as s,g as r}from"./p-4fdb684f.js";import{k as o,g as n,s as l,l as p,d as m}from"./p-5781af8a.js";import{c}from"./p-97e8ea42.js";import{F as h}from"./p-e3b85cae.js";import{F as g}from"./p-200c76a8.js";import{F as _}from"./p-6c77a36c.js";import{F as u}from"./p-e8666a6d.js";import{M as d}from"./p-81605f08.js";import"./p-23cd5a68.js";import"./p-c1a5ed6b.js";import"./p-86e4bfad.js";import"./p-79b0730b.js";var f;!function(i){i.customStyle="Custom style of the component.",i.data="Actual data of the component",i.ripple="When enabled displays Material's ripple effect on clicked items."}(f||(f={}));class k{constructor(){this.load=!1}toDebugString(){return"image-list state"}}var b,v,w,y,x,j,C,M=function(i,t,e,a){if("a"===e&&!a)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?i!==t||!a:!t.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?a:"a"===e?a.call(i):a?a.value:t.get(i)};const W=class{constructor(e){i(this,e),this.kupClick=t(this,"kup-imagelist-click",6),this.kupContextMenu=t(this,"kup-imagelist-contextmenu",6),this.kupDblClick=t(this,"kup-imagelist-dblclick",6),b.add(this),this.state=new k,this.kupManager=o(),v.set(this,[]),w.set(this,o()),y.set(this,{icon:"arrow_back",onClick:()=>{this.currentNode=M(this,w,"f").data.node.getParent(this.data,this.currentNode),this.currentNode||(this.navigationBarToggled=!1)},styling:_.FLAT,wrapperClass:"navigation-bar__back"}),x.set(this,{icon:"arrow_upward",onClick:()=>{this.currentNode=null,this.navigationBarToggled=!1},styling:_.FLAT,wrapperClass:"navigation-bar__top"}),this.currentNode=null,this.navigationBarToggled=!1,this.customStyle="",this.data=[],this.ripple=!0,this.selectedNode=[],this.stateId="",this.store=void 0}initWithPersistedState(){if(this.store&&this.stateId){const i=this.store.getState(this.stateId);null!=i&&(this.currentNode=this.kupManager.data.node.findByStrTreeNodePath(this.data,i.selectedTreeNodePath))}}persistState(){if(this.store&&this.stateId){let i=!1,t=this.currentNode?this.currentNode.id:"";if(this.kupManager.objects.deepEqual(this.state.selectedTreeNodePath,t)||(this.state.selectedTreeNodePath=t,i=!0),!this.state.load)return void(this.state.load=!0);i&&this.store.persistState(this.stateId,this.state)}}onKupClick(i){i.children&&i.children.length>0&&(this.currentNode=i),this.kupClick.emit({comp:this,id:this.rootElement.id,node:i})}onKupContextMenu(i,t){i.preventDefault(),this.kupContextMenu.emit({comp:this,id:this.rootElement.id,node:t})}onKupDblClick(i){for(let i=0;i<M(this,v,"f").length;i++)clearTimeout(M(this,v,"f")[i]);(function(i,t,e,a,s){if("m"===a)throw new TypeError("Private method is not writable");if("a"===a&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?i!==t||!s:!t.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===a?s.call(i,e):s?s.value=e:t.set(i,e)})(this,v,[],"f"),this.kupDblClick.emit({comp:this,id:this.rootElement.id,node:i})}selectNode(i){i&&0!=i.length&&(this.currentNode=this.kupManager.data.node.find(this.data,i))}async getProps(i){return n(this,f,i)}async refresh(){e(this)}async setProps(i){l(this,f,i)}componentWillLoad(){M(this,w,"f").debug.logLoad(this,!1),M(this,w,"f").language.register(this),M(this,w,"f").theme.register(this)}componentDidLoad(){M(this,w,"f").debug.logLoad(this,!0)}componentWillRender(){M(this,w,"f").debug.logRender(this,!1)}componentDidRender(){const i=this.rootElement.shadowRoot;if(i&&this.ripple){const t=i.querySelectorAll(".mdc-ripple-surface:not(.mdc-ripple-upgraded)");if(t)for(let i=0;i<t.length;i++)d.attachTo(t[i])}this.persistState(),M(this,w,"f").debug.logRender(this,!0)}render(){const i=!!this.currentNode;return a(s,null,a("style",null,M(this,w,"f").theme.setKupStyle(this.rootElement)),a("div",{id:c},a("div",{class:"navigation-bar"},i?a("div",{class:"navigation-bar__wrapper "+(this.navigationBarToggled?"navigation-bar__wrapper--active":"")},a("div",{class:"navigation-bar__title",onClick:()=>{this.navigationBarToggled=!this.navigationBarToggled}},a(h,{fit:!0,resource:this.currentNode.icon,sizeX:"1.25em",sizeY:"1.25em",wrapperClass:"navigation-bar__title__image"}),a("div",{class:"navigation-bar__title__label"},this.currentNode.value)),a(g,Object.assign({},M(this,y,"f"),{label:M(this,w,"f").language.translate(p.BACK)})),a(g,Object.assign({},M(this,x,"f"),{label:M(this,w,"f").language.translate(p.TOP)}))):null),a("div",{class:"image-list"},...M(this,b,"m",C).call(this))))}disconnectedCallback(){M(this,w,"f").language.unregister(this),M(this,w,"f").theme.unregister(this)}get rootElement(){return r(this)}static get watchers(){return{selectedNode:["selectNode"]}}};v=new WeakMap,w=new WeakMap,y=new WeakMap,x=new WeakMap,b=new WeakSet,j=function(i){const t=a(h,Object.assign({},{fit:!0,resource:i.icon,title:i.title,wrapperClass:"image-list__image"})),e=a("div",{class:"image-list__label"},i.value);return a(u,{cell:{value:i.value,icon:i.icon,obj:i.obj},column:{name:"IMAGE",title:"Image"},component:this,density:m.NONE,row:Object.assign({},i)},a("div",{class:"image-list__wrapper"},t,e))},C=function(){const i=[],t=this.currentNode?this.currentNode.children:this.data;for(let e=0;t&&e<t.length;e++){const s=t[e],r=a("div",{onClick:()=>{M(this,v,"f").push(setTimeout((()=>this.onKupClick(s)),300))},onContextMenu:i=>this.onKupContextMenu(i,s),onDblClick:()=>this.onKupDblClick(s),class:{"image-list__item":!0,"mdc-ripple-surface":!!this.ripple}},M(this,b,"m",j).call(this,s));i.push(r)}return i},W.style=":host{--kup_imagelist_background_color:var(\n --kup-imagelist-background-color,\n transparent\n );--kup_imagelist_columns:var(--kup-imagelist-columns, 4);--kup_imagelist_grid_gap:var(--kup-imagelist-grid-gap, 0.5em);--kup_imagelist_image_margin:var(--kup-imagelist-image-margin, 1em auto);--kup_imagelist_image_min_height:var(--kup-imagelist-image-min-height, 64px);--kup_imagelist_item_border_radius:var(\n --kup-imagelist-item-border-radius,\n 8px\n );--kup_imagelist_item_height:var(--kup-imagelist-item-height, auto);--kup_imagelist_item_padding:var(--kup-imagelist-item-padding, 0);--kup_imagelist_item_width:var(--kup-imagelist-item-width, auto);--kup_imagelist_label_margin:var(\n --kup-imagelist-label-margin,\n 0 auto 1em auto\n );--kup_imagelist_navbar_background_color:var(\n --kup-imagelist-navbar-background-color,\n transparent\n );--kup_imagelist_primary_color:var(\n --kup-imagelist-primary-color,\n var(--kup-primary-color)\n );--kup_imagelist_primary_color_rgb:var(\n --kup-imagelist-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_imagelist_text_color:var(\n --kup-imagelist-text-color,\n var(--kup-text-color)\n );display:block}.navigation-bar{align-items:center;background-color:var(--kup_imagelist_navbar_background_color);display:flex;justify-content:center}.navigation-bar__wrapper{align-items:center;display:flex;flex-wrap:wrap;justify-content:center;max-width:100%;position:relative}.navigation-bar__wrapper--active .navigation-bar__title{background-color:rgba(var(--kup_imagelist_primary_color_rgb), 0.15);color:var(--kup_imagelist_primary_color)}.navigation-bar__back,.navigation-bar__top{--kup-button-primary-color-rgb:0}.navigation-bar__title{border-radius:16px;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;padding:0.75em 1em;user-select:none;transition:background-color 125ms, color 125ms;width:100%}.navigation-bar__title__image.f-image{margin:0}.navigation-bar__title__label{font-size:1.2em;font-weight:bold;letter-spacing:0.12em;overflow:hidden;padding:0 0.5em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.image-list{background-color:var(--kup_imagelist_background_color);display:grid;grid-gap:var(--kup_imagelist_grid_gap);grid-template-columns:repeat(var(--kup_imagelist_columns, 4), minmax(0px, 1fr));margin-top:1em;width:100%}.image-list .f-cell{height:100%;width:100%}.image-list__item{border-radius:var(--kup_imagelist_item_border_radius);cursor:pointer;height:var(--kup_imagelist_item_height);padding:var(--kup_imagelist_item_padding);width:var(--kup_imagelist_item_width)}.image-list__image.f-image{margin:var(--kup_imagelist_image_margin)}.image-list__image.f-image .f-image__icon{min-height:var(--kup_imagelist_image_min_height)}.image-list__label{color:var(--kup_imagelist_text_color);letter-spacing:0.12em;margin:var(--kup_imagelist_label_margin);overflow:hidden;text-align:center;text-overflow:ellipsis}.image-list .mdc-ripple-surface{--mdc-ripple-fg-opacity:0.24}.image-list .mdc-ripple-surface:before,.image-list .mdc-ripple-surface:after{background-color:var(--kup_imagelist_primary_color)}:host(.kup-full-height){height:100%}:host(.kup-full-width){width:100%}:host(.kup-horizontal) .image-list{display:flex}:host(.kup-auto-grid) .image-list{display:flex;flex-wrap:wrap;justify-content:center}";export{W as kup_image_list}
@@ -1,4 +1,4 @@
1
- // This shim is used to inform the TS compiler of the presence of the adoptedStyleSheets object on the shadow root object.
2
- declare interface ShadowRoot {
3
- adoptedStyleSheets: CSSStyleSheet[];
1
+ // This shim is used to inform the TS compiler of the presence of the adoptedStyleSheets object on the shadow root object.
2
+ declare interface ShadowRoot {
3
+ adoptedStyleSheets: CSSStyleSheet[];
4
4
  }
@@ -48,22 +48,22 @@ export interface KupBoxRow extends KupDataRow {
48
48
  }
49
49
  export interface KupBoxLayout {
50
50
  horizontal?: boolean;
51
- sections?: Section[];
51
+ sections?: KupBoxSection[];
52
52
  }
53
- export interface Section {
54
- id?: string;
55
- horizontal?: boolean;
53
+ export interface KupBoxSection {
54
+ collapsible?: boolean;
55
+ columns?: number;
56
+ content?: KupBoxObject[];
56
57
  dim?: string;
57
- sections?: Section[];
58
- content?: BoxObject[];
58
+ horizontal?: boolean;
59
+ id?: string;
60
+ sections?: KupBoxSection[];
59
61
  style?: {
60
62
  [index: string]: string;
61
63
  };
62
- collapsible?: boolean;
63
- columns?: number;
64
64
  title?: string;
65
65
  }
66
- export interface BoxObject {
66
+ export interface KupBoxObject {
67
67
  column?: string;
68
68
  value?: string;
69
69
  shape?: FCellShapes;
@@ -24,3 +24,27 @@ export declare function create3(component: KupCard): VNode;
24
24
  * @returns {VNode} 4th box layout virtual node.
25
25
  */
26
26
  export declare function create4(component: KupCard): VNode;
27
+ /**
28
+ * 5th box card layout, image on the left and rows of text.
29
+ * @param {KupCard} component - Card component.
30
+ * @returns {VNode} 5th box layout virtual node.
31
+ */
32
+ export declare function create5(component: KupCard): VNode;
33
+ /**
34
+ * 6th box card layout, image on the left and vertical list of text.
35
+ * @param {KupCard} component - Card component.
36
+ * @returns {VNode} 6th box layout virtual node.
37
+ */
38
+ export declare function create6(component: KupCard): VNode;
39
+ /**
40
+ * 7th box card layout, image above and rows of text.
41
+ * @param {KupCard} component - Card component.
42
+ * @returns {VNode} 7th box layout virtual node.
43
+ */
44
+ export declare function create7(component: KupCard): VNode;
45
+ /**
46
+ * 8th box card layout, image above and vertical list of text.
47
+ * @param {KupCard} component - Card component.
48
+ * @returns {VNode} 8th box layout virtual node.
49
+ */
50
+ export declare function create8(component: KupCard): VNode;
@@ -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;
@@ -8,7 +8,9 @@ export declare enum KupFormProps {
8
8
  customStyle = "Custom style of the component.",
9
9
  data = "Actual data of the form.",
10
10
  hiddenSubmitButton = "Creates a hidden submit button in order to submit the form with enter.",
11
- layout = "How the form will arrange its content."
11
+ labelPlacement = "Sets the label placement for 'all' fields in form",
12
+ layout = "How the form will arrange its content.",
13
+ submitCb = "Sets the callback function on submit form"
12
14
  }
13
15
  export interface KupFormData {
14
16
  columns?: KupDataColumn[];
@@ -56,6 +58,7 @@ export declare enum KupFormLabelPlacement {
56
58
  LEFT = "left",
57
59
  HIDDEN = "hidden",
58
60
  PLACEHOLDER = "placeholder",
61
+ WATERMARK = "watermark",
59
62
  RIGHT = "right",
60
63
  TOP = "top"
61
64
  }
@@ -1,4 +1,4 @@
1
- import { KupFormLayout, KupFormData } from './kup-form-declarations';
1
+ import { KupFormLayout, KupFormData, KupFormLabelPlacement } from './kup-form-declarations';
2
2
  import { GenericObject } from '../../types/GenericTypes';
3
3
  export declare class KupForm {
4
4
  /**
@@ -21,11 +21,21 @@ export declare class KupForm {
21
21
  * @default false
22
22
  */
23
23
  hiddenSubmitButton: boolean;
24
+ /**
25
+ * Sets the label placement for 'all' fields in form
26
+ * @default KupFormLabelPlacement.LEFT
27
+ */
28
+ labelPlacement: KupFormLabelPlacement;
24
29
  /**
25
30
  * How the form will arrange its content.
26
31
  * @default null
27
32
  */
28
33
  layout: KupFormLayout;
34
+ /**
35
+ * Sets the callback function on submit form
36
+ * @default null
37
+ */
38
+ submitCb: (e: SubmitEvent) => unknown;
29
39
  private kupManager;
30
40
  private formLayout;
31
41
  private visibleColumns;
@@ -33,7 +33,7 @@ import { KupEchartClickEventPayload, KupEchartLegendPlacement, KupEchartMaps, Ku
33
33
  import { GeoJSON } from "geojson";
34
34
  import { XAXisComponentOption, YAXisComponentOption } from "echarts";
35
35
  import { KupFamilyTreeData, KupFamilyTreeEventPayload, KupFamilyTreeLayout, KupFamilyTreeNode } from "./components/kup-family-tree/kup-family-tree-declarations";
36
- import { KupFormData, KupFormLayout } from "./components/kup-form/kup-form-declarations";
36
+ import { KupFormData, KupFormLabelPlacement, KupFormLayout } from "./components/kup-form/kup-form-declarations";
37
37
  import { KupBadge } from "./components/kup-badge/kup-badge";
38
38
  import { FImageData } from "./f-components/f-image/f-image-declarations";
39
39
  import { KupImageClickEventPayload } from "./components/kup-image/kup-image-declarations";
@@ -1712,6 +1712,11 @@ export namespace Components {
1712
1712
  * @default false
1713
1713
  */
1714
1714
  "hiddenSubmitButton": boolean;
1715
+ /**
1716
+ * Sets the label placement for 'all' fields in form
1717
+ * @default KupFormLabelPlacement.LEFT
1718
+ */
1719
+ "labelPlacement": KupFormLabelPlacement;
1715
1720
  /**
1716
1721
  * How the form will arrange its content.
1717
1722
  * @default null
@@ -1732,6 +1737,11 @@ export namespace Components {
1732
1737
  * @param props - Object containing props that will be set to the component.
1733
1738
  */
1734
1739
  "setProps": (props: GenericObject) => Promise<void>;
1740
+ /**
1741
+ * Sets the callback function on submit form
1742
+ * @default null
1743
+ */
1744
+ "submitCb": (e: SubmitEvent) => unknown;
1735
1745
  }
1736
1746
  interface KupGauge {
1737
1747
  /**
@@ -4948,11 +4958,21 @@ declare namespace LocalJSX {
4948
4958
  * @default false
4949
4959
  */
4950
4960
  "hiddenSubmitButton"?: boolean;
4961
+ /**
4962
+ * Sets the label placement for 'all' fields in form
4963
+ * @default KupFormLabelPlacement.LEFT
4964
+ */
4965
+ "labelPlacement"?: KupFormLabelPlacement;
4951
4966
  /**
4952
4967
  * How the form will arrange its content.
4953
4968
  * @default null
4954
4969
  */
4955
4970
  "layout"?: KupFormLayout;
4971
+ /**
4972
+ * Sets the callback function on submit form
4973
+ * @default null
4974
+ */
4975
+ "submitCb"?: (e: SubmitEvent) => unknown;
4956
4976
  }
4957
4977
  interface KupGauge {
4958
4978
  /**
@@ -34,6 +34,7 @@ export declare enum FCellEvents {
34
34
  CLICK = "kup-cell-click",
35
35
  ICON_CLICK = "kup-cell-iconclick",
36
36
  INPUT = "kup-cell-input",
37
+ KEYUP = "kup-cell-keyup",
37
38
  UPDATE = "kup-cell-update"
38
39
  }
39
40
  /**
@@ -151,7 +152,7 @@ export declare const kupTypes: FCellTypes[];
151
152
  export interface FCellEventPayload extends KupEventPayload {
152
153
  cell: KupDataCell;
153
154
  column: KupDataColumn;
154
- event: CustomEvent | InputEvent | MouseEvent;
155
+ event: CustomEvent | InputEvent | MouseEvent | KeyboardEvent;
155
156
  row: KupDataRow;
156
157
  type: FCellTypes;
157
158
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sme.up/ketchup",
3
- "version": "6.9.0-SNAPSHOT",
3
+ "version": "7.0.0",
4
4
  "keywords": [
5
5
  "smeup",
6
6
  "KetchUP",