@sme.up/ketchup 9.4.0 → 9.5.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 (118) hide show
  1. package/dist/cjs/{f-button-4bef0f8e.js → f-button-033ed6d4.js} +1 -1
  2. package/dist/cjs/{f-cell-5e0a400e.js → f-cell-ef276797.js} +5 -5
  3. package/dist/cjs/{f-chip-9159b2a5.js → f-chip-d4e26a2b.js} +2 -2
  4. package/dist/cjs/{f-image-b9074ea8.js → f-image-33be7baf.js} +1 -1
  5. package/dist/cjs/{f-paginator-utils-bfa0fa70.js → f-paginator-utils-5a18cc19.js} +2 -2
  6. package/dist/cjs/{f-text-field-bd197af7.js → f-text-field-f03e97f8.js} +1 -1
  7. package/dist/cjs/index.cjs.js +1 -1
  8. package/dist/cjs/ketchup.cjs.js +1 -1
  9. package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
  10. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +18 -9
  11. package/dist/cjs/kup-box.cjs.entry.js +7 -7
  12. package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
  13. package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
  14. package/dist/cjs/kup-cell.cjs.entry.js +6 -6
  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-grid.cjs.entry.js +1 -1
  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 +1 -1
  23. package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
  24. package/dist/cjs/{kup-manager-5106d5c6.js → kup-manager-f90f1b6d.js} +124 -0
  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-openai-interface.cjs.entry.js +146 -0
  28. package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
  29. package/dist/cjs/kup-planner.cjs.entry.js +2 -2
  30. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  31. package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +3 -3
  33. package/dist/cjs/loader.cjs.js +1 -1
  34. package/dist/collection/collection-manifest.json +1 -0
  35. package/dist/collection/components/kup-data-table/kup-data-table.js +11 -2
  36. package/dist/collection/components/kup-image/assets/svg/open-ai.svg +1 -0
  37. package/dist/collection/components/kup-openai-interface/kup-openai-interface-declarations.js +11 -0
  38. package/dist/collection/components/kup-openai-interface/kup-openai-interface.css +64 -0
  39. package/dist/collection/components/kup-openai-interface/kup-openai-interface.js +340 -0
  40. package/dist/collection/managers/kup-manager/kup-manager.js +124 -0
  41. package/dist/components/kup-autocomplete2.js +11 -2
  42. package/dist/components/kup-manager.js +124 -0
  43. package/dist/components/kup-openai-interface.d.ts +11 -0
  44. package/dist/components/kup-openai-interface.js +301 -0
  45. package/dist/esm/{f-button-4d7a0b09.js → f-button-ccde4447.js} +1 -1
  46. package/dist/esm/{f-cell-0bf956b8.js → f-cell-2ad41d52.js} +5 -5
  47. package/dist/esm/{f-chip-91249dc2.js → f-chip-3df1c255.js} +2 -2
  48. package/dist/esm/{f-image-d666df65.js → f-image-5434b351.js} +1 -1
  49. package/dist/esm/{f-paginator-utils-b5be40ee.js → f-paginator-utils-b90cdd2b.js} +2 -2
  50. package/dist/esm/{f-text-field-00a4d490.js → f-text-field-f0b81f8b.js} +1 -1
  51. package/dist/esm/index.js +1 -1
  52. package/dist/esm/ketchup.js +1 -1
  53. package/dist/esm/kup-accordion.entry.js +2 -2
  54. package/dist/esm/kup-autocomplete_27.entry.js +18 -9
  55. package/dist/esm/kup-box.entry.js +7 -7
  56. package/dist/esm/kup-calendar.entry.js +4 -4
  57. package/dist/esm/kup-card-list.entry.js +1 -1
  58. package/dist/esm/kup-cell.entry.js +6 -6
  59. package/dist/esm/kup-dashboard.entry.js +4 -4
  60. package/dist/esm/kup-drawer.entry.js +1 -1
  61. package/dist/esm/kup-echart.entry.js +1 -1
  62. package/dist/esm/kup-family-tree.entry.js +3 -3
  63. package/dist/esm/kup-grid.entry.js +1 -1
  64. package/dist/esm/kup-iframe.entry.js +1 -1
  65. package/dist/esm/kup-image-list.entry.js +6 -6
  66. package/dist/esm/kup-lazy.entry.js +1 -1
  67. package/dist/esm/kup-magic-box.entry.js +2 -2
  68. package/dist/esm/{kup-manager-7f0372fb.js → kup-manager-e33d8d8c.js} +124 -0
  69. package/dist/esm/kup-nav-bar.entry.js +1 -1
  70. package/dist/esm/kup-numeric-picker.entry.js +2 -2
  71. package/dist/esm/kup-openai-interface.entry.js +142 -0
  72. package/dist/esm/kup-photo-frame.entry.js +1 -1
  73. package/dist/esm/kup-planner.entry.js +2 -2
  74. package/dist/esm/kup-probe.entry.js +1 -1
  75. package/dist/esm/kup-qlik.entry.js +1 -1
  76. package/dist/esm/kup-snackbar.entry.js +3 -3
  77. package/dist/esm/loader.js +1 -1
  78. package/dist/ketchup/assets/svg/open-ai.svg +1 -0
  79. package/dist/ketchup/index.esm.js +1 -1
  80. package/dist/ketchup/ketchup.esm.js +1 -1
  81. package/dist/ketchup/{p-491c3cd0.entry.js → p-01aaf3e4.entry.js} +1 -1
  82. package/dist/ketchup/{p-378bbbcf.js → p-11e7be94.js} +1 -1
  83. package/dist/ketchup/{p-1180f9e0.entry.js → p-190d0bc5.entry.js} +1 -1
  84. package/dist/ketchup/{p-9fdd98be.entry.js → p-1a594e06.entry.js} +1 -1
  85. package/dist/ketchup/{p-bbc121a2.entry.js → p-1dbfcab5.entry.js} +1 -1
  86. package/dist/ketchup/{p-e4657f9b.entry.js → p-23e4caa1.entry.js} +2 -2
  87. package/dist/ketchup/p-2681d3a2.entry.js +1 -0
  88. package/dist/ketchup/{p-d5a9924b.entry.js → p-269a1dfe.entry.js} +1 -1
  89. package/dist/ketchup/{p-3ba32190.entry.js → p-2940b559.entry.js} +1 -1
  90. package/dist/ketchup/{p-91ee68b1.js → p-39ba3355.js} +1 -1
  91. package/dist/ketchup/{p-f0b3d110.entry.js → p-4725191c.entry.js} +1 -1
  92. package/dist/ketchup/{p-8e04781a.js → p-4afe8662.js} +1 -1
  93. package/dist/ketchup/{p-e8f5b996.entry.js → p-58798e2d.entry.js} +1 -1
  94. package/dist/ketchup/{p-1ecff2b9.entry.js → p-5b3d8636.entry.js} +1 -1
  95. package/dist/ketchup/{p-613ef7fa.entry.js → p-5fa089cd.entry.js} +1 -1
  96. package/dist/ketchup/{p-8c835b19.entry.js → p-645d881d.entry.js} +1 -1
  97. package/dist/ketchup/{p-466d3604.entry.js → p-6a8fcb02.entry.js} +1 -1
  98. package/dist/ketchup/p-6f108540.entry.js +1 -0
  99. package/dist/ketchup/{p-19be646f.entry.js → p-788da2d9.entry.js} +1 -1
  100. package/dist/ketchup/{p-31a3eb96.entry.js → p-7e5d8532.entry.js} +1 -1
  101. package/dist/ketchup/{p-1e77ddec.js → p-95b31ede.js} +1 -1
  102. package/dist/ketchup/{p-28dcc98b.js → p-9df95b9f.js} +1 -1
  103. package/dist/ketchup/{p-96678597.entry.js → p-a5229d3d.entry.js} +1 -1
  104. package/dist/ketchup/{p-f5b5b35d.entry.js → p-b104afb6.entry.js} +1 -1
  105. package/dist/ketchup/{p-abdbd35e.entry.js → p-b857aab2.entry.js} +1 -1
  106. package/dist/ketchup/{p-b51b1000.entry.js → p-c0c65349.entry.js} +1 -1
  107. package/dist/ketchup/{p-01401fba.entry.js → p-ddd25869.entry.js} +1 -1
  108. package/dist/ketchup/p-eea1ee1b.js +1 -0
  109. package/dist/ketchup/{p-6d51125a.js → p-f0e4e190.js} +1 -1
  110. package/dist/ketchup/{p-16c23ab7.entry.js → p-f81d7218.entry.js} +1 -1
  111. package/dist/types/components/kup-openai-interface/kup-openai-interface-declarations.d.ts +10 -0
  112. package/dist/types/components/kup-openai-interface/kup-openai-interface.d.ts +59 -0
  113. package/dist/types/components.d.ts +86 -0
  114. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +15 -0
  115. package/dist/types/managers/kup-manager/kup-manager.d.ts +17 -1
  116. package/package.json +1 -1
  117. package/dist/ketchup/p-bfa85d01.js +0 -1
  118. package/dist/ketchup/p-d6aa3b78.entry.js +0 -1
@@ -1 +1 @@
1
- import{r,c as a,f as o,h as t,H as n,d as i}from"./p-cd9a4274.js";import{k as s,g as p,s as e}from"./p-91ee68b1.js";import{c as b}from"./p-635bb4b3.js";import"./p-c23731ca.js";const l="nav-bar";var v,u;!function(r){r.customStyle="Custom style of the component.",r.image="Image displayed by the nav bar, uses the kup-image component's props.",r.label="Text displayed by the nav bar.",r.showMenuButton="When true, the menu button will be displayed on the left of the nav bar.",r.styling="Defines the style of the nav bar"}(v||(v={})),function(r){r.SHORT="short",r.STANDARD="standard"}(u||(u={}));const c=class{constructor(o){r(this,o),this.kupNavbarReady=a(this,"kup-navbar-ready",6),this.kupNavbarResize=a(this,"kup-navbar-resize",6),this.kupManager=s(),this.customStyle="",this.styling=u.STANDARD}async getProps(r){return p(this,v,r)}async refresh(){o(this)}async resizeCallback(){window.clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((()=>{this.kupNavbarResize.emit({comp:this,id:this.rootElement.id})}),300)}async setProps(r){e(this,v,r)}content(){const r=Array.prototype.slice.call(this.rootElement.children,0),a=[],o=[];for(let n=0;n<r.length;n++)"left"===r[n].slot?a.push(t("slot",{name:"left"})):o.push(t("slot",{name:"right"}));return[a.length?t("section",{class:`${l}__section ${l}__section--align-start`},a):null,o.length?t("section",{class:`${l}__section ${l}__section--align-end`,role:"toolbar"},o):null]}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.kupNavbarReady.emit({comp:this,id:this.rootElement.id}),this.kupManager.resize.observe(this.rootElement),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){return t(n,{class:"header"},t("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),t("div",{id:b},t("header",{class:`${l} ${l}--${this.styling.toLowerCase()} `},t("div",{class:`${l}__row`},this.content()))))}disconnectedCallback(){this.kupManager.language.unregister(this),this.kupManager.resize.unobserve(this.rootElement),this.kupManager.theme.unregister(this)}get rootElement(){return i(this)}};c.style=":host{--kup_navbar_box_shadow:var(\n --kup-navbar-box-shadow,\n 0 2px 4px -1px rgba(128, 128, 128, 0.2),\n 0 4px 5px 0 rgba(128, 128, 128, 0.14),\n 0 1px 10px 0 rgba(128, 128, 128, 0.12)\n );--kup_navbar_padding:var(--kup-navbar-padding, 8px 12px);--kup_navbar_position:var(--kup-navbar-position, fixed);--kup_navbar_short_border_radius:var(\n --kup-navbar-short-border-radius,\n 0px 0px 24px\n );--kup_navbar_short_box_shadow:var(\n --kup-navbar-short-box-shadow,\n rgba(128, 128, 128, 0.2) 0px 2px 4px -1px,\n rgba(128, 128, 128, 0.14) 0px 4px 5px 0px,\n rgba(128, 128, 128, 0.12) 0px 1px 10px 0px\n );--kup_navbar_short_width:var(--kup-navbar-short-width, 9em);--kup_navbar_transition:var(--kup-navbar-transition, 250ms);--kup_navbar_width:var(--kup-navbar-width, 100%);box-sizing:border-box;font-size:var(--kup-font-size);left:0;position:var(--kup_navbar_position);top:0;transition:all var(--kup_navbar_transition);width:var(--kup_navbar_width);z-index:var(--kup-navbar-zindex)}#kup-component{width:var(--kup_navbar_width)}.nav-bar{background-color:var(--kup-navbar-background-color);box-shadow:var(--kup_navbar_box_shadow);box-sizing:border-box;color:var(--kup-navbar-color);display:flex;flex-direction:column;justify-content:space-between;width:var(--kup_navbar_width)}.nav-bar--short{border-radius:var(--kup_navbar_short_border_radius);box-shadow:var(--kup_navbar_short_box_shadow);width:var(--kup_navbar_short_width)}.nav-bar--short .nav-bar__section{padding:0 0.5em}.nav-bar--short section{overflow:hidden}.nav-bar ::slotted(*){--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);--kup-switch-label-color:var(--kup-navbar-color);--kup-switch-primary-color:var(--kup-navbar-color);--kup-switch-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-textfield-color:var(--kup-navbar-color);--kup-textfield-color-rgb:var(--kup-navbar-color-rgb);--kup-tree-color:var(--kup-navbar-color);--kup-tree-color-rgb:var(--kup-navbar-color-rgb);color:var(--kup-navbar-color);fill:var(--kup-navbar-color);margin:0}.nav-bar__row{box-sizing:border-box;display:flex;height:var(--kup-navbar-height);position:relative;width:var(--kup_navbar_width)}.nav-bar__section{align-items:center;display:inline-flex;flex:1 1 auto;min-width:0;padding:var(--kup_navbar_padding)}.nav-bar__section--align-start{flex-shrink:5;justify-content:flex-start;order:-1}.nav-bar__section--align-end{justify-content:flex-end;order:1;overflow:hidden}::slotted(*){--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);--kup-switch-label-color:var(--kup-navbar-color);--kup-switch-primary-color:var(--kup-navbar-color);--kup-switch-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-textfield-color:var(--kup-navbar-color);--kup-textfield-color-rgb:var(--kup-navbar-color-rgb);--kup-textfield-primary-color:var(--kup-navbar-color);--kup-textfield-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-tree-color:var(--kup-navbar-color);--kup-tree-color-rgb:var(--kup-navbar-color-rgb);color:var(--kup-navbar-color);fill:var(--kup-navbar-color);margin:0}";export{c as kup_nav_bar}
1
+ import{r,c as a,f as o,h as t,H as n,d as i}from"./p-cd9a4274.js";import{k as s,g as p,s as e}from"./p-39ba3355.js";import{c as b}from"./p-635bb4b3.js";import"./p-c23731ca.js";const l="nav-bar";var v,u;!function(r){r.customStyle="Custom style of the component.",r.image="Image displayed by the nav bar, uses the kup-image component's props.",r.label="Text displayed by the nav bar.",r.showMenuButton="When true, the menu button will be displayed on the left of the nav bar.",r.styling="Defines the style of the nav bar"}(v||(v={})),function(r){r.SHORT="short",r.STANDARD="standard"}(u||(u={}));const c=class{constructor(o){r(this,o),this.kupNavbarReady=a(this,"kup-navbar-ready",6),this.kupNavbarResize=a(this,"kup-navbar-resize",6),this.kupManager=s(),this.customStyle="",this.styling=u.STANDARD}async getProps(r){return p(this,v,r)}async refresh(){o(this)}async resizeCallback(){window.clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((()=>{this.kupNavbarResize.emit({comp:this,id:this.rootElement.id})}),300)}async setProps(r){e(this,v,r)}content(){const r=Array.prototype.slice.call(this.rootElement.children,0),a=[],o=[];for(let n=0;n<r.length;n++)"left"===r[n].slot?a.push(t("slot",{name:"left"})):o.push(t("slot",{name:"right"}));return[a.length?t("section",{class:`${l}__section ${l}__section--align-start`},a):null,o.length?t("section",{class:`${l}__section ${l}__section--align-end`,role:"toolbar"},o):null]}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.kupNavbarReady.emit({comp:this,id:this.rootElement.id}),this.kupManager.resize.observe(this.rootElement),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){return t(n,{class:"header"},t("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),t("div",{id:b},t("header",{class:`${l} ${l}--${this.styling.toLowerCase()} `},t("div",{class:`${l}__row`},this.content()))))}disconnectedCallback(){this.kupManager.language.unregister(this),this.kupManager.resize.unobserve(this.rootElement),this.kupManager.theme.unregister(this)}get rootElement(){return i(this)}};c.style=":host{--kup_navbar_box_shadow:var(\n --kup-navbar-box-shadow,\n 0 2px 4px -1px rgba(128, 128, 128, 0.2),\n 0 4px 5px 0 rgba(128, 128, 128, 0.14),\n 0 1px 10px 0 rgba(128, 128, 128, 0.12)\n );--kup_navbar_padding:var(--kup-navbar-padding, 8px 12px);--kup_navbar_position:var(--kup-navbar-position, fixed);--kup_navbar_short_border_radius:var(\n --kup-navbar-short-border-radius,\n 0px 0px 24px\n );--kup_navbar_short_box_shadow:var(\n --kup-navbar-short-box-shadow,\n rgba(128, 128, 128, 0.2) 0px 2px 4px -1px,\n rgba(128, 128, 128, 0.14) 0px 4px 5px 0px,\n rgba(128, 128, 128, 0.12) 0px 1px 10px 0px\n );--kup_navbar_short_width:var(--kup-navbar-short-width, 9em);--kup_navbar_transition:var(--kup-navbar-transition, 250ms);--kup_navbar_width:var(--kup-navbar-width, 100%);box-sizing:border-box;font-size:var(--kup-font-size);left:0;position:var(--kup_navbar_position);top:0;transition:all var(--kup_navbar_transition);width:var(--kup_navbar_width);z-index:var(--kup-navbar-zindex)}#kup-component{width:var(--kup_navbar_width)}.nav-bar{background-color:var(--kup-navbar-background-color);box-shadow:var(--kup_navbar_box_shadow);box-sizing:border-box;color:var(--kup-navbar-color);display:flex;flex-direction:column;justify-content:space-between;width:var(--kup_navbar_width)}.nav-bar--short{border-radius:var(--kup_navbar_short_border_radius);box-shadow:var(--kup_navbar_short_box_shadow);width:var(--kup_navbar_short_width)}.nav-bar--short .nav-bar__section{padding:0 0.5em}.nav-bar--short section{overflow:hidden}.nav-bar ::slotted(*){--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);--kup-switch-label-color:var(--kup-navbar-color);--kup-switch-primary-color:var(--kup-navbar-color);--kup-switch-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-textfield-color:var(--kup-navbar-color);--kup-textfield-color-rgb:var(--kup-navbar-color-rgb);--kup-tree-color:var(--kup-navbar-color);--kup-tree-color-rgb:var(--kup-navbar-color-rgb);color:var(--kup-navbar-color);fill:var(--kup-navbar-color);margin:0}.nav-bar__row{box-sizing:border-box;display:flex;height:var(--kup-navbar-height);position:relative;width:var(--kup_navbar_width)}.nav-bar__section{align-items:center;display:inline-flex;flex:1 1 auto;min-width:0;padding:var(--kup_navbar_padding)}.nav-bar__section--align-start{flex-shrink:5;justify-content:flex-start;order:-1}.nav-bar__section--align-end{justify-content:flex-end;order:1;overflow:hidden}::slotted(*){--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);--kup-switch-label-color:var(--kup-navbar-color);--kup-switch-primary-color:var(--kup-navbar-color);--kup-switch-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-textfield-color:var(--kup-navbar-color);--kup-textfield-color-rgb:var(--kup-navbar-color-rgb);--kup-textfield-primary-color:var(--kup-navbar-color);--kup-textfield-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-tree-color:var(--kup-navbar-color);--kup-tree-color-rgb:var(--kup-navbar-color-rgb);color:var(--kup-navbar-color);fill:var(--kup-navbar-color);margin:0}";export{c as kup_nav_bar}
@@ -1 +1 @@
1
- import{r as t,c as s,f as e,h as i,H as a,d as c}from"./p-cd9a4274.js";import{k as r,g as o,s as h,r as l,ac as n}from"./p-91ee68b1.js";import{c as d}from"./p-635bb4b3.js";import"./p-c23731ca.js";var u;!function(t){t.columnsNumber="Sets the number of columns.",t.customStyle="Custom style of the component.",t.data="Actual data of the component.",t.decvalueCol="Sets the decimal value column.",t.descrCol="Sets the description column.",t.fullWidth="Sets whether the component occupies all available width.",t.horizontal="Sets whether the cards are placed horizontally or not.",t.iconCol="Sets the icon column.",t.iconcolorCol="Sets the icon color column.",t.intvalueCol="Sets the integer value column.",t.isClickable="Sets whether a single card is clickable or not.",t.layoutCol="Sets the layout column.",t.measureCol="Sets the unit of measure column.",t.textcolorCol="Sets the text color column.",t.valueCol="Sets the value column.",t.valuecolorCol="Sets the value color column."}(u||(u={}));var m,p=function(t,s,e,i){if("a"===e&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof s?t!==s||!i:!s.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?i:"a"===e?i.call(t):i?i.value:s.get(t)};const k=class{constructor(e){t(this,e),this.kupCardListClickEvent=s(this,"kup-cardlist-click",7),m.set(this,r()),this.columnsNumber=1,this.customStyle="",this.data=null,this.fullWidth=!0,this.horizontal=!1,this.descrCol="",this.iconCol="",this.valueCol="",this.measureCol="",this.intvalueCol="",this.decvalueCol="",this.textcolorCol="",this.valuecolorCol="",this.iconcolorCol="",this.layoutCol="",this.isClickable=!1}async getProps(t){return o(this,u,t)}async refresh(){e(this)}async setProps(t){h(this,u,t)}componentWillLoad(){p(this,m,"f").debug.logLoad(this,!1),p(this,m,"f").theme.register(this)}componentDidLoad(){p(this,m,"f").debug.logLoad(this,!0)}componentDidRender(){p(this,m,"f").debug.logRender(this,!0)}render(){if(!this.data||!this.data.columns||!this.data.columns.length)return;const t=[];let s,e,c,r,o,h,u,k,_,b;for(let t=0;t<this.data.columns.length;t++){const i=this.data.columns[t];if(i.name)switch(i.name){case this.decvalueCol:s=i;break;case this.descrCol:e=i;break;case this.iconCol:c=i;break;case this.iconcolorCol:r=i;break;case this.intvalueCol:o=i;break;case this.layoutCol:h=i;break;case this.measureCol:u=i;break;case this.textcolorCol:k=i;break;case this.valueCol:_=i;break;case this.valuecolorCol:b=i}}for(let a=0;a<this.data.rows.length;a++){const d=this.data.rows[a],f={color:[],image:[],text:[]},g=h&&d.cells[h.name].value?parseInt(d.cells[h.name].value):1,w=i("kup-card",{class:this.isClickable?"is-clickable":"",customStyle:"#kup-component, .scalable-card { min-height: var(--kup_cardlist_cardsminheight) }",data:f,layoutFamily:l.SCALABLE,layoutNumber:g,key:a,"onKup-card-click":()=>{this.isClickable&&this.kupCardListClickEvent.emit({comp:this,id:this.rootElement.id,index:a,row:d})},slot:a.toString()}),x=(t,s,e)=>{if(t){const i=d.cells[t.name];if(i){const a=i.value;switch(s){case"color":f[s][e]=p(this,m,"f").theme.colorCheck(a).hexColor;break;case"image":f[s][e]={resource:a};break;default:f[s][e]=n(t,i)}}}};switch(g){case 1:x(k,"color",0),x(b,"color",1),x(e,"text",0),x(_,"text",1);break;case 2:x(r,"color",0),x(b,"color",1),x(c,"image",0),x(o,"text",0),x(s,"text",1),x(u,"text",2);break;case 3:x(b,"color",0),x(k,"color",1),x(_,"text",0),x(e,"text",1);break;case 4:x(r,"color",0),x(b,"color",1),x(k,"color",2),x(c,"image",0),x(o,"text",0),x(s,"text",1),x(u,"text",2),x(e,"text",3);break;case 5:x(r,"color",0),x(k,"color",1),x(b,"color",2),x(c,"image",0),x(e,"text",0),x(_,"text",1);break;case 6:case 7:case 8:x(r,"color",0),x(b,"color",1),x(k,"color",2),x(c,"image",0),x(_,"text",0),x(e,"text",1)}t.push(w)}return i(a,null,i("style",null,p(this,m,"f").theme.setKupStyle(this.rootElement)),i("div",{id:d},i("kup-grid",{class:(this.fullWidth?"kup-full-width":"")+" scalable-cards",columns:this.columnsNumber,singleLine:this.horizontal},t)))}disconnectedCallback(){p(this,m,"f").theme.unregister(this)}get rootElement(){return c(this)}};m=new WeakMap,k.style=":host{--kup_cardlist_cards_max_height:var(--kup-cardlist-cards-max-height, unset);--kup_cardlist_cards_min_height:var(--kup-cardlist-cards-min-height, unset);--kup_cardlist_cards_max_width:var(--kup-cardlist-cards-max-width, unset);--kup_cardlist_cards_min_width:var(--kup-cardlist-cards-min-width, unset);display:block;height:100%;width:100%}#kup-component{height:100%;width:100%}kup-card{max-height:var(--kup_cardlist_cards_max_height);min-height:var(--kup_cardlist_cards_min_height);max-width:var(--kup_cardlist_cards_max_width);min-width:var(--kup_cardlist_cards_min_width)}kup-card.is-clickable{cursor:pointer}kup-grid{--kup-grid-padding:0}";export{k as kup_card_list}
1
+ import{r as t,c as s,f as e,h as i,H as a,d as c}from"./p-cd9a4274.js";import{k as r,g as o,s as h,r as l,ac as n}from"./p-39ba3355.js";import{c as d}from"./p-635bb4b3.js";import"./p-c23731ca.js";var u;!function(t){t.columnsNumber="Sets the number of columns.",t.customStyle="Custom style of the component.",t.data="Actual data of the component.",t.decvalueCol="Sets the decimal value column.",t.descrCol="Sets the description column.",t.fullWidth="Sets whether the component occupies all available width.",t.horizontal="Sets whether the cards are placed horizontally or not.",t.iconCol="Sets the icon column.",t.iconcolorCol="Sets the icon color column.",t.intvalueCol="Sets the integer value column.",t.isClickable="Sets whether a single card is clickable or not.",t.layoutCol="Sets the layout column.",t.measureCol="Sets the unit of measure column.",t.textcolorCol="Sets the text color column.",t.valueCol="Sets the value column.",t.valuecolorCol="Sets the value color column."}(u||(u={}));var m,p=function(t,s,e,i){if("a"===e&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof s?t!==s||!i:!s.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?i:"a"===e?i.call(t):i?i.value:s.get(t)};const k=class{constructor(e){t(this,e),this.kupCardListClickEvent=s(this,"kup-cardlist-click",7),m.set(this,r()),this.columnsNumber=1,this.customStyle="",this.data=null,this.fullWidth=!0,this.horizontal=!1,this.descrCol="",this.iconCol="",this.valueCol="",this.measureCol="",this.intvalueCol="",this.decvalueCol="",this.textcolorCol="",this.valuecolorCol="",this.iconcolorCol="",this.layoutCol="",this.isClickable=!1}async getProps(t){return o(this,u,t)}async refresh(){e(this)}async setProps(t){h(this,u,t)}componentWillLoad(){p(this,m,"f").debug.logLoad(this,!1),p(this,m,"f").theme.register(this)}componentDidLoad(){p(this,m,"f").debug.logLoad(this,!0)}componentDidRender(){p(this,m,"f").debug.logRender(this,!0)}render(){if(!this.data||!this.data.columns||!this.data.columns.length)return;const t=[];let s,e,c,r,o,h,u,k,_,b;for(let t=0;t<this.data.columns.length;t++){const i=this.data.columns[t];if(i.name)switch(i.name){case this.decvalueCol:s=i;break;case this.descrCol:e=i;break;case this.iconCol:c=i;break;case this.iconcolorCol:r=i;break;case this.intvalueCol:o=i;break;case this.layoutCol:h=i;break;case this.measureCol:u=i;break;case this.textcolorCol:k=i;break;case this.valueCol:_=i;break;case this.valuecolorCol:b=i}}for(let a=0;a<this.data.rows.length;a++){const d=this.data.rows[a],f={color:[],image:[],text:[]},g=h&&d.cells[h.name].value?parseInt(d.cells[h.name].value):1,w=i("kup-card",{class:this.isClickable?"is-clickable":"",customStyle:"#kup-component, .scalable-card { min-height: var(--kup_cardlist_cardsminheight) }",data:f,layoutFamily:l.SCALABLE,layoutNumber:g,key:a,"onKup-card-click":()=>{this.isClickable&&this.kupCardListClickEvent.emit({comp:this,id:this.rootElement.id,index:a,row:d})},slot:a.toString()}),x=(t,s,e)=>{if(t){const i=d.cells[t.name];if(i){const a=i.value;switch(s){case"color":f[s][e]=p(this,m,"f").theme.colorCheck(a).hexColor;break;case"image":f[s][e]={resource:a};break;default:f[s][e]=n(t,i)}}}};switch(g){case 1:x(k,"color",0),x(b,"color",1),x(e,"text",0),x(_,"text",1);break;case 2:x(r,"color",0),x(b,"color",1),x(c,"image",0),x(o,"text",0),x(s,"text",1),x(u,"text",2);break;case 3:x(b,"color",0),x(k,"color",1),x(_,"text",0),x(e,"text",1);break;case 4:x(r,"color",0),x(b,"color",1),x(k,"color",2),x(c,"image",0),x(o,"text",0),x(s,"text",1),x(u,"text",2),x(e,"text",3);break;case 5:x(r,"color",0),x(k,"color",1),x(b,"color",2),x(c,"image",0),x(e,"text",0),x(_,"text",1);break;case 6:case 7:case 8:x(r,"color",0),x(b,"color",1),x(k,"color",2),x(c,"image",0),x(_,"text",0),x(e,"text",1)}t.push(w)}return i(a,null,i("style",null,p(this,m,"f").theme.setKupStyle(this.rootElement)),i("div",{id:d},i("kup-grid",{class:(this.fullWidth?"kup-full-width":"")+" scalable-cards",columns:this.columnsNumber,singleLine:this.horizontal},t)))}disconnectedCallback(){p(this,m,"f").theme.unregister(this)}get rootElement(){return c(this)}};m=new WeakMap,k.style=":host{--kup_cardlist_cards_max_height:var(--kup-cardlist-cards-max-height, unset);--kup_cardlist_cards_min_height:var(--kup-cardlist-cards-min-height, unset);--kup_cardlist_cards_max_width:var(--kup-cardlist-cards-max-width, unset);--kup_cardlist_cards_min_width:var(--kup-cardlist-cards-min-width, unset);display:block;height:100%;width:100%}#kup-component{height:100%;width:100%}kup-card{max-height:var(--kup_cardlist_cards_max_height);min-height:var(--kup_cardlist_cards_min_height);max-width:var(--kup_cardlist_cards_max_width);min-width:var(--kup_cardlist_cards_min_width)}kup-card.is-clickable{cursor:pointer}kup-grid{--kup-grid-padding:0}";export{k as kup_card_list}