@sme.up/ketchup 6.3.0 → 6.4.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 (128) hide show
  1. package/dist/cjs/{f-button-94cb5f35.js → f-button-826a470e.js} +3 -3
  2. package/dist/cjs/{f-cell-76830a0d.js → f-cell-2d5bcf0c.js} +5 -5
  3. package/dist/cjs/{f-chip-68d45fd3.js → f-chip-2fd3363e.js} +2 -2
  4. package/dist/cjs/{f-image-0e71df7e.js → f-image-0f17d599.js} +1 -1
  5. package/dist/cjs/{f-paginator-utils-46689c0a.js → f-paginator-utils-946b579d.js} +3 -3
  6. package/dist/cjs/{f-text-field-b4229cef.js → f-text-field-d243e4d8.js} +4 -2
  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_25.cjs.entry.js +21 -12
  10. package/dist/cjs/kup-box.cjs.entry.js +12 -10
  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 +28 -18
  18. package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
  19. package/dist/cjs/kup-form.cjs.entry.js +16 -8
  20. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  21. package/dist/cjs/kup-image-list.cjs.entry.js +6 -6
  22. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  23. package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
  24. package/dist/cjs/{kup-manager-7c514a30.js → kup-manager-a8eecc60.js} +28 -15
  25. package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
  26. package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
  27. package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
  28. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  29. package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
  30. package/dist/cjs/kup-snackbar.cjs.entry.js +3 -3
  31. package/dist/cjs/loader.cjs.js +1 -1
  32. package/dist/collection/assets/form.js +41 -0
  33. package/dist/collection/components/kup-box/kup-box.js +5 -3
  34. package/dist/collection/components/kup-button/kup-button-declarations.js +1 -0
  35. package/dist/collection/components/kup-button/kup-button.js +27 -0
  36. package/dist/collection/components/kup-data-table/kup-data-table.js +3 -1
  37. package/dist/collection/components/kup-echart/kup-echart.js +27 -17
  38. package/dist/collection/components/kup-form/kup-form-declarations.js +1 -0
  39. package/dist/collection/components/kup-form/kup-form.css +8 -0
  40. package/dist/collection/components/kup-form/kup-form.js +31 -2
  41. package/dist/collection/components/kup-image/assets/svg/azure.svg +1 -0
  42. package/dist/collection/components/kup-lazy/kup-lazy.css +8 -2
  43. package/dist/collection/components/kup-progress-bar/kup-progress-bar.css +1 -0
  44. package/dist/collection/f-components/f-button/f-button.js +2 -2
  45. package/dist/collection/f-components/f-cell/f-cell.js +1 -1
  46. package/dist/collection/f-components/f-text-field/f-text-field.js +3 -1
  47. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +7 -6
  48. package/dist/collection/managers/kup-data/kup-data.js +7 -9
  49. package/dist/collection/managers/kup-dates/kup-dates.js +14 -0
  50. package/dist/collection/utils/filters/filters-rows.js +1 -1
  51. package/dist/collection/utils/filters/filters-tree-items.js +3 -3
  52. package/dist/esm/{f-button-cd948e50.js → f-button-2d0a5f21.js} +3 -3
  53. package/dist/esm/{f-cell-474dd282.js → f-cell-ee7d7b5c.js} +5 -5
  54. package/dist/esm/{f-chip-d6f2eb94.js → f-chip-0d29f91f.js} +2 -2
  55. package/dist/esm/{f-image-914a03ef.js → f-image-ab131d59.js} +1 -1
  56. package/dist/esm/{f-paginator-utils-a4a52732.js → f-paginator-utils-aa52af0f.js} +3 -3
  57. package/dist/esm/{f-text-field-76341fe3.js → f-text-field-0729b19f.js} +4 -2
  58. package/dist/esm/ketchup.js +1 -1
  59. package/dist/esm/kup-accordion.entry.js +2 -2
  60. package/dist/esm/kup-autocomplete_25.entry.js +21 -12
  61. package/dist/esm/kup-box.entry.js +12 -10
  62. package/dist/esm/kup-calendar.entry.js +4 -4
  63. package/dist/esm/kup-cell.entry.js +5 -5
  64. package/dist/esm/kup-dash-list.entry.js +1 -1
  65. package/dist/esm/kup-dash_2.entry.js +1 -1
  66. package/dist/esm/kup-dashboard.entry.js +4 -4
  67. package/dist/esm/kup-drawer.entry.js +1 -1
  68. package/dist/esm/kup-echart.entry.js +28 -18
  69. package/dist/esm/kup-family-tree.entry.js +3 -3
  70. package/dist/esm/kup-form.entry.js +16 -8
  71. package/dist/esm/kup-iframe.entry.js +1 -1
  72. package/dist/esm/kup-image-list.entry.js +6 -6
  73. package/dist/esm/kup-lazy.entry.js +2 -2
  74. package/dist/esm/kup-magic-box.entry.js +2 -2
  75. package/dist/esm/{kup-manager-86f440c7.js → kup-manager-13b4f989.js} +28 -15
  76. package/dist/esm/kup-nav-bar.entry.js +1 -1
  77. package/dist/esm/kup-numeric-picker.entry.js +2 -2
  78. package/dist/esm/kup-photo-frame.entry.js +1 -1
  79. package/dist/esm/kup-probe.entry.js +1 -1
  80. package/dist/esm/kup-qlik.entry.js +1 -1
  81. package/dist/esm/kup-snackbar.entry.js +3 -3
  82. package/dist/esm/loader.js +1 -1
  83. package/dist/ketchup/assets/svg/azure.svg +1 -0
  84. package/dist/ketchup/ketchup.esm.js +1 -1
  85. package/dist/ketchup/p-0986ad5d.js +1 -0
  86. package/dist/ketchup/{p-389fd0bf.js → p-0cf10db0.js} +1 -1
  87. package/dist/ketchup/{p-151f7c17.entry.js → p-13666119.entry.js} +1 -1
  88. package/dist/ketchup/{p-066f344a.entry.js → p-18b68e86.entry.js} +1 -1
  89. package/dist/ketchup/{p-2f4e6c50.entry.js → p-28d514d0.entry.js} +1 -1
  90. package/dist/ketchup/{p-8b55b786.entry.js → p-2ffdbee1.entry.js} +1 -1
  91. package/dist/ketchup/{p-853a5178.entry.js → p-3dcfffbe.entry.js} +1 -1
  92. package/dist/ketchup/{p-cee76b14.entry.js → p-3fe35411.entry.js} +1 -1
  93. package/dist/ketchup/{p-cfaea29b.entry.js → p-5f51009b.entry.js} +1 -1
  94. package/dist/ketchup/{p-77aff9c1.entry.js → p-816f0938.entry.js} +1 -1
  95. package/dist/ketchup/{p-bc306a53.entry.js → p-83c214d7.entry.js} +1 -1
  96. package/dist/ketchup/{p-df8e6a4d.entry.js → p-84957bbf.entry.js} +1 -1
  97. package/dist/ketchup/{p-359fd90d.entry.js → p-86795579.entry.js} +1 -1
  98. package/dist/ketchup/{p-00e1133d.entry.js → p-8f85b8bb.entry.js} +2 -2
  99. package/dist/ketchup/{p-0c6e0647.entry.js → p-982d3e3a.entry.js} +1 -1
  100. package/dist/ketchup/{p-7cfdf53c.entry.js → p-adcfcd4f.entry.js} +2 -2
  101. package/dist/ketchup/{p-cd4fc3fb.js → p-b705be3b.js} +1 -1
  102. package/dist/ketchup/{p-21ea11cb.js → p-b8c921ee.js} +1 -1
  103. package/dist/ketchup/{p-8673bd4e.js → p-bfe88b03.js} +1 -1
  104. package/dist/ketchup/{p-d2f51e7b.entry.js → p-d7091875.entry.js} +1 -1
  105. package/dist/ketchup/{p-95f5834b.entry.js → p-d8656956.entry.js} +1 -1
  106. package/dist/ketchup/p-dc69549c.entry.js +1 -0
  107. package/dist/ketchup/{p-e9a1ba04.entry.js → p-e01fa411.entry.js} +1 -1
  108. package/dist/ketchup/{p-b3b65a61.entry.js → p-e0f659c9.entry.js} +1 -1
  109. package/dist/ketchup/{p-e60a1170.entry.js → p-e1d82570.entry.js} +1 -1
  110. package/dist/ketchup/p-e21c744a.js +1 -0
  111. package/dist/ketchup/{p-1e9c03b0.entry.js → p-e5a9d60a.entry.js} +1 -1
  112. package/dist/ketchup/p-f50cbed9.js +1 -0
  113. package/dist/ketchup/{p-c3783b77.entry.js → p-fa9f161a.entry.js} +1 -1
  114. package/dist/types/components/kup-box/kup-box-declarations.d.ts +1 -0
  115. package/dist/types/components/kup-button/kup-button-declarations.d.ts +1 -0
  116. package/dist/types/components/kup-button/kup-button.d.ts +5 -0
  117. package/dist/types/components/kup-form/kup-form-declarations.d.ts +1 -0
  118. package/dist/types/components/kup-form/kup-form.d.ts +5 -0
  119. package/dist/types/components.d.ts +20 -0
  120. package/dist/types/f-components/f-button/f-button-declarations.d.ts +1 -0
  121. package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +2 -2
  122. package/dist/types/managers/kup-data/kup-data.d.ts +1 -0
  123. package/dist/types/utils/filters/filters-tree-items.d.ts +1 -1
  124. package/package.json +1 -1
  125. package/dist/ketchup/p-3586f59c.js +0 -1
  126. package/dist/ketchup/p-a2c595c4.js +0 -1
  127. package/dist/ketchup/p-ae91f27e.entry.js +0 -1
  128. package/dist/ketchup/p-af664379.js +0 -1
@@ -1 +1 @@
1
- import{r as t,f as s,h as i,H as e,g as h}from"./p-b0b3989b.js";import{I as o,k as n,g as r,s as l,R as a,j as c}from"./p-21ea11cb.js";import{c as d}from"./p-97e8ea42.js";import{F as p}from"./p-3586f59c.js";import"./p-5552f156.js";import"./p-8673bd4e.js";import"./p-389fd0bf.js";import"./p-cd4fc3fb.js";var m;!function(t){t.customStyle="Custom style of the component.",t.data="The data of the cell.",t.density="The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.",t.dragEnabled="When set to true, the component is draggable."}(m||(m={}));const f=class{constructor(s){t(this,s),this.customStyle="",this.data=null,this.density=o.NONE,this.dragEnabled=!1,this.kupManager=n()}async addCssClasses(t){if(this.data.cssClass||(this.data.cssClass=""),t)for(let s=0;s<t.length;s++){const i=t[s];this.data.cssClass.indexOf(i)<0&&(this.data.cssClass+=` ${i}`)}this.refresh()}async getProps(t){return r(this,m,t)}async refresh(){s(this)}async removeCssClasses(t){if(this.data.cssClass){if(t)for(let s=0;s<t.length;s++){const i=t[s];this.data.cssClass.indexOf(i)>0&&(this.data.cssClass=this.data.cssClass.replace(new RegExp(i,"g"),""))}this.refresh()}}async setProps(t){l(this,m,t)}didRenderInteractables(){if(this.dragEnabled){const t=()=>({cell:this.data,column:this.generateColumn(),id:this.rootElement.id,multiple:!1,row:this.generateRow()});this.kupManager.interact.draggable(this.rootElement.shadowRoot.querySelector("#"+d),{cursorChecker:()=>null},{callback:t},a.BADGE)}}generateColumn(){return{name:this.data&&this.data.obj&&this.data.obj.t?this.data.obj.t+";"+this.data.obj.p:"KUPCELL",title:this.data&&this.data.obj&&this.data.obj.t?this.data.obj.t+";"+this.data.obj.p:this.kupManager.language.translate(c.EMPTY_OBJECT)}}generateRow(){const t=this.generateColumn(),s={cells:{}};return s.cells[t.name]=this.data,s}componentWillLoad(){this.kupManager.dates.register(this),this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.didRenderInteractables(),this.kupManager.debug.logRender(this,!0)}render(){const t={cell:this.data,column:this.generateColumn(),component:this,density:this.density,editable:this.data.isEditable,renderKup:!0,row:this.generateRow()};return i(e,null,i("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),i("div",{id:d},i(p,Object.assign({},t))))}disconnectedCallback(){this.kupManager.dates.unregister(this),this.kupManager.language.unregister(this),this.kupManager.theme.unregister(this)}get rootElement(){return h(this)}};f.style=":host{display:block;height:100%;width:100%}#kup-component{height:100%;width:100%}";export{f as kup_cell}
1
+ import{r as t,f as s,h as i,H as e,g as h}from"./p-b0b3989b.js";import{I as o,k as n,g as r,s as l,R as a,j as c}from"./p-b8c921ee.js";import{c as d}from"./p-97e8ea42.js";import{F as p}from"./p-0986ad5d.js";import"./p-5552f156.js";import"./p-bfe88b03.js";import"./p-0cf10db0.js";import"./p-b705be3b.js";var m;!function(t){t.customStyle="Custom style of the component.",t.data="The data of the cell.",t.density="The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.",t.dragEnabled="When set to true, the component is draggable."}(m||(m={}));const u=class{constructor(s){t(this,s),this.customStyle="",this.data=null,this.density=o.NONE,this.dragEnabled=!1,this.kupManager=n()}async addCssClasses(t){if(this.data.cssClass||(this.data.cssClass=""),t)for(let s=0;s<t.length;s++){const i=t[s];this.data.cssClass.indexOf(i)<0&&(this.data.cssClass+=` ${i}`)}this.refresh()}async getProps(t){return r(this,m,t)}async refresh(){s(this)}async removeCssClasses(t){if(this.data.cssClass){if(t)for(let s=0;s<t.length;s++){const i=t[s];this.data.cssClass.indexOf(i)>0&&(this.data.cssClass=this.data.cssClass.replace(new RegExp(i,"g"),""))}this.refresh()}}async setProps(t){l(this,m,t)}didRenderInteractables(){if(this.dragEnabled){const t=()=>({cell:this.data,column:this.generateColumn(),id:this.rootElement.id,multiple:!1,row:this.generateRow()});this.kupManager.interact.draggable(this.rootElement.shadowRoot.querySelector("#"+d),{cursorChecker:()=>null},{callback:t},a.BADGE)}}generateColumn(){return{name:this.data&&this.data.obj&&this.data.obj.t?this.data.obj.t+";"+this.data.obj.p:"KUPCELL",title:this.data&&this.data.obj&&this.data.obj.t?this.data.obj.t+";"+this.data.obj.p:this.kupManager.language.translate(c.EMPTY_OBJECT)}}generateRow(){const t=this.generateColumn(),s={cells:{}};return s.cells[t.name]=this.data,s}componentWillLoad(){this.kupManager.dates.register(this),this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.didRenderInteractables(),this.kupManager.debug.logRender(this,!0)}render(){const t={cell:this.data,column:this.generateColumn(),component:this,density:this.density,editable:this.data.isEditable,renderKup:!0,row:this.generateRow()};return i(e,null,i("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),i("div",{id:d},i(p,Object.assign({},t))))}disconnectedCallback(){this.kupManager.dates.unregister(this),this.kupManager.language.unregister(this),this.kupManager.theme.unregister(this)}get rootElement(){return h(this)}};u.style=":host{display:block;height:100%;width:100%}#kup-component{height:100%;width:100%}";export{u as kup_cell}