@sme.up/ketchup 11.0.0-SNAPSHOT-20251125104152 → 11.0.0-SNAPSHOT-20251201090245

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 (222) hide show
  1. package/dist/cjs/{f-cell-15f0e3d8.js → f-cell-06f41e1b.js} +10 -10
  2. package/dist/cjs/{f-chip-1f1a9829.js → f-chip-8d18d91d.js} +9 -9
  3. package/dist/cjs/{f-object-field-7264b902.js → f-object-field-a7aad942.js} +2 -2
  4. package/dist/cjs/{f-paginator-utils-0b88eb98.js → f-paginator-utils-f3034c12.js} +5 -5
  5. package/dist/cjs/{f-text-field-2f9c646d.js → f-text-field-9a401ac4.js} +4 -2
  6. package/dist/cjs/index.cjs.js +1 -1
  7. package/dist/cjs/ketchup.cjs.js +1 -1
  8. package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
  9. package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
  10. package/dist/cjs/kup-autocomplete_30.cjs.entry.js +53 -67
  11. package/dist/cjs/kup-box.cjs.entry.js +7 -7
  12. package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
  13. package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
  14. package/dist/cjs/kup-cell.cjs.entry.js +5 -5
  15. package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
  16. package/dist/cjs/{kup-data-table-helper-292af776.js → kup-data-table-helper-8a30bc54.js} +1 -1
  17. package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
  18. package/dist/cjs/kup-echart.cjs.entry.js +1 -1
  19. package/dist/cjs/kup-editor.cjs.entry.js +1 -1
  20. package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
  21. package/dist/cjs/kup-grid.cjs.entry.js +1 -1
  22. package/dist/cjs/kup-htm.cjs.entry.js +1 -1
  23. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  24. package/dist/cjs/kup-input-panel.cjs.entry.js +10 -10
  25. package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
  26. package/dist/cjs/kup-magic-box.cjs.entry.js +1 -1
  27. package/dist/cjs/{kup-manager-af4de85d.js → kup-manager-51844a7d.js} +5 -5
  28. package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
  29. package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
  30. package/dist/cjs/kup-object-field.cjs.entry.js +3 -3
  31. package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
  32. package/dist/cjs/kup-planner.cjs.entry.js +2 -2
  33. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  34. package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
  35. package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
  36. package/dist/cjs/kup-txt.cjs.entry.js +1 -1
  37. package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
  38. package/dist/cjs/kup-typography.cjs.entry.js +1 -1
  39. package/dist/cjs/loader.cjs.js +1 -1
  40. package/dist/collection/assets/card.js +2 -2
  41. package/dist/collection/assets/data-table.js +3 -3
  42. package/dist/collection/assets/form.js +2 -2
  43. package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -1
  44. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +11 -11
  45. package/dist/collection/components/kup-chip/kup-chip-declarations.js +1 -1
  46. package/dist/collection/components/kup-chip/kup-chip.js +6 -6
  47. package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +2 -1
  48. package/dist/collection/components/kup-combobox/kup-combobox.js +11 -11
  49. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button-declarations.js +1 -1
  50. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +5 -5
  51. package/dist/collection/components/kup-input-panel/kup-input-panel.js +5 -5
  52. package/dist/collection/components/kup-list/kup-list-helper.js +5 -5
  53. package/dist/collection/components/kup-list/kup-list.js +5 -5
  54. package/dist/collection/components/kup-tree/kup-tree.js +18 -34
  55. package/dist/collection/f-components/f-cell/f-cell.js +4 -4
  56. package/dist/collection/f-components/f-chip/f-chip.js +3 -3
  57. package/dist/collection/f-components/f-paginator/f-paginator.js +3 -3
  58. package/dist/collection/f-components/f-text-field/f-text-field.js +3 -1
  59. package/dist/collection/utils/cell-utils.js +5 -5
  60. package/dist/components/index.js +1 -1
  61. package/dist/components/kup-accordion.js +2 -2
  62. package/dist/components/kup-activity-timeline.js +2 -2
  63. package/dist/components/kup-autocomplete.js +1 -1
  64. package/dist/components/kup-badge.js +1 -1
  65. package/dist/components/kup-box.js +1 -1
  66. package/dist/components/kup-button-list.js +1 -1
  67. package/dist/components/kup-button.js +1 -1
  68. package/dist/components/kup-calendar.js +2 -2
  69. package/dist/components/kup-card-list.js +3 -3
  70. package/dist/components/kup-card.js +1 -1
  71. package/dist/components/kup-cell.js +2 -2
  72. package/dist/components/kup-chart.js +1 -1
  73. package/dist/components/kup-checkbox.js +1 -1
  74. package/dist/components/kup-chip.js +1 -1
  75. package/dist/components/kup-color-picker.js +1 -1
  76. package/dist/components/kup-combobox.js +1 -1
  77. package/dist/components/kup-dashboard.js +2 -2
  78. package/dist/components/kup-data-table.js +1 -1
  79. package/dist/components/kup-date-picker.js +1 -1
  80. package/dist/components/kup-dialog.js +1 -1
  81. package/dist/components/kup-drawer.js +2 -2
  82. package/dist/components/kup-dropdown-button.js +1 -1
  83. package/dist/components/kup-echart.js +1 -1
  84. package/dist/components/kup-editor.js +1 -1
  85. package/dist/components/kup-family-tree.js +3 -3
  86. package/dist/components/kup-file-upload.js +1 -1
  87. package/dist/components/kup-form.js +1 -1
  88. package/dist/components/kup-gauge.js +1 -1
  89. package/dist/components/kup-grid.js +1 -1
  90. package/dist/components/kup-htm.js +2 -2
  91. package/dist/components/kup-iframe.js +2 -2
  92. package/dist/components/kup-image-list.js +1 -1
  93. package/dist/components/kup-image.js +1 -1
  94. package/dist/components/kup-input-panel.js +8 -8
  95. package/dist/components/kup-lazy.js +2 -2
  96. package/dist/components/kup-list.js +1 -1
  97. package/dist/components/kup-magic-box.js +4 -4
  98. package/dist/components/kup-nav-bar.js +2 -2
  99. package/dist/components/kup-numeric-picker.js +2 -2
  100. package/dist/components/kup-object-field.js +2 -2
  101. package/dist/components/kup-pdf.js +2 -2
  102. package/dist/components/kup-planner.js +2 -2
  103. package/dist/components/kup-probe.js +2 -2
  104. package/dist/components/kup-progress-bar.js +1 -1
  105. package/dist/components/kup-qlik.js +2 -2
  106. package/dist/components/kup-radio.js +1 -1
  107. package/dist/components/kup-rating.js +1 -1
  108. package/dist/components/kup-snackbar.js +2 -2
  109. package/dist/components/kup-spinner.js +1 -1
  110. package/dist/components/kup-switch.js +1 -1
  111. package/dist/components/kup-tab-bar.js +1 -1
  112. package/dist/components/kup-text-field.js +1 -1
  113. package/dist/components/kup-time-picker.js +1 -1
  114. package/dist/components/kup-toolbar.js +1 -1
  115. package/dist/components/kup-tree.js +1 -1
  116. package/dist/components/kup-txt.js +2 -2
  117. package/dist/components/kup-typography-list.js +2 -2
  118. package/dist/components/kup-typography.js +2 -2
  119. package/dist/components/{p-849d8012.js → p-4db73c8a.js} +2 -2
  120. package/dist/components/{p-c1e159c2.js → p-55bb63e7.js} +2 -2
  121. package/dist/components/{p-0497ebe5.js → p-5a3d0bf2.js} +5 -5
  122. package/dist/components/{p-fe2a2d3e.js → p-6a5184f4.js} +2 -2
  123. package/dist/components/{p-107d75ba.js → p-f4d62101.js} +76 -88
  124. package/dist/components/{p-1470a155.js → p-fa6a4926.js} +2 -2
  125. package/dist/esm/{f-cell-1b003ccd.js → f-cell-b2681485.js} +10 -10
  126. package/dist/esm/{f-chip-2b1b3544.js → f-chip-ccc3f97c.js} +9 -9
  127. package/dist/esm/{f-object-field-a234558f.js → f-object-field-96b40820.js} +2 -2
  128. package/dist/esm/{f-paginator-utils-7f69eaa3.js → f-paginator-utils-e99efbfb.js} +5 -5
  129. package/dist/esm/{f-text-field-4ef83a74.js → f-text-field-2898964c.js} +4 -2
  130. package/dist/esm/index.js +1 -1
  131. package/dist/esm/ketchup.js +1 -1
  132. package/dist/esm/kup-accordion.entry.js +1 -1
  133. package/dist/esm/kup-activity-timeline.entry.js +2 -2
  134. package/dist/esm/kup-autocomplete_30.entry.js +53 -67
  135. package/dist/esm/kup-box.entry.js +7 -7
  136. package/dist/esm/kup-calendar.entry.js +2 -2
  137. package/dist/esm/kup-card-list.entry.js +1 -1
  138. package/dist/esm/kup-cell.entry.js +5 -5
  139. package/dist/esm/kup-dashboard.entry.js +2 -2
  140. package/dist/esm/{kup-data-table-helper-3832776d.js → kup-data-table-helper-54809d36.js} +1 -1
  141. package/dist/esm/kup-drawer.entry.js +1 -1
  142. package/dist/esm/kup-echart.entry.js +1 -1
  143. package/dist/esm/kup-editor.entry.js +1 -1
  144. package/dist/esm/kup-family-tree.entry.js +1 -1
  145. package/dist/esm/kup-grid.entry.js +1 -1
  146. package/dist/esm/kup-htm.entry.js +1 -1
  147. package/dist/esm/kup-iframe.entry.js +1 -1
  148. package/dist/esm/kup-input-panel.entry.js +10 -10
  149. package/dist/esm/kup-lazy.entry.js +1 -1
  150. package/dist/esm/kup-magic-box.entry.js +1 -1
  151. package/dist/esm/{kup-manager-53906723.js → kup-manager-cafa84f3.js} +5 -5
  152. package/dist/esm/kup-nav-bar.entry.js +1 -1
  153. package/dist/esm/kup-numeric-picker.entry.js +2 -2
  154. package/dist/esm/kup-object-field.entry.js +3 -3
  155. package/dist/esm/kup-pdf.entry.js +1 -1
  156. package/dist/esm/kup-planner.entry.js +2 -2
  157. package/dist/esm/kup-probe.entry.js +1 -1
  158. package/dist/esm/kup-qlik.entry.js +1 -1
  159. package/dist/esm/kup-snackbar.entry.js +1 -1
  160. package/dist/esm/kup-txt.entry.js +1 -1
  161. package/dist/esm/kup-typography-list.entry.js +1 -1
  162. package/dist/esm/kup-typography.entry.js +1 -1
  163. package/dist/esm/loader.js +1 -1
  164. package/dist/ketchup/index.esm.js +1 -1
  165. package/dist/ketchup/ketchup.esm.js +1 -1
  166. package/dist/ketchup/{p-339d7438.entry.js → p-02378652.entry.js} +1 -1
  167. package/dist/ketchup/{p-ae382c78.entry.js → p-08761e63.entry.js} +1 -1
  168. package/dist/ketchup/p-0ef5545c.entry.js +1 -0
  169. package/dist/ketchup/{p-d6bf9d14.js → p-131d02e5.js} +1 -1
  170. package/dist/ketchup/{p-7f6a52f1.entry.js → p-1508f846.entry.js} +1 -1
  171. package/dist/ketchup/{p-10367f2b.entry.js → p-152ed137.entry.js} +1 -1
  172. package/dist/ketchup/{p-bdfc5fcf.entry.js → p-1fded783.entry.js} +1 -1
  173. package/dist/ketchup/{p-ceda8fa4.entry.js → p-308028ef.entry.js} +1 -1
  174. package/dist/ketchup/{p-9f2abfd6.entry.js → p-3fcb121a.entry.js} +1 -1
  175. package/dist/ketchup/{p-8b5ab195.js → p-49dfe632.js} +1 -1
  176. package/dist/ketchup/{p-ba6b283e.entry.js → p-4b8e41b8.entry.js} +1 -1
  177. package/dist/ketchup/{p-a9994a05.entry.js → p-53d3b004.entry.js} +1 -1
  178. package/dist/ketchup/p-5434838f.js +1 -0
  179. package/dist/ketchup/{p-b6519054.entry.js → p-5f03e966.entry.js} +1 -1
  180. package/dist/ketchup/p-64c95c83.js +1 -0
  181. package/dist/ketchup/{p-77fc5eaf.entry.js → p-6a4a0d38.entry.js} +1 -1
  182. package/dist/ketchup/p-6ecb98ae.entry.js +8 -0
  183. package/dist/ketchup/{p-ae4fd0eb.entry.js → p-76cf473a.entry.js} +1 -1
  184. package/dist/ketchup/{p-6f0eaff3.entry.js → p-8974efec.entry.js} +1 -1
  185. package/dist/ketchup/{p-b1256195.entry.js → p-89dabd6e.entry.js} +1 -1
  186. package/dist/ketchup/{p-21dc5934.entry.js → p-8ed38785.entry.js} +1 -1
  187. package/dist/ketchup/p-9600ce9a.js +1 -0
  188. package/dist/ketchup/{p-3e905afa.entry.js → p-98496351.entry.js} +1 -1
  189. package/dist/ketchup/{p-feba5a53.entry.js → p-9c686dd5.entry.js} +1 -1
  190. package/dist/ketchup/{p-bf0510af.entry.js → p-9f9605c9.entry.js} +1 -1
  191. package/dist/ketchup/{p-774c3c21.entry.js → p-a91a64dd.entry.js} +1 -1
  192. package/dist/ketchup/{p-09337603.entry.js → p-abef591a.entry.js} +1 -1
  193. package/dist/ketchup/{p-8e2c19a6.entry.js → p-b97a2fae.entry.js} +1 -1
  194. package/dist/ketchup/{p-5a82356a.entry.js → p-b9d044dd.entry.js} +1 -1
  195. package/dist/ketchup/{p-0967bb61.entry.js → p-bda08688.entry.js} +1 -1
  196. package/dist/ketchup/{p-b961eebf.entry.js → p-d218199c.entry.js} +1 -1
  197. package/dist/ketchup/{p-af914cdf.js → p-d66832f6.js} +1 -1
  198. package/dist/ketchup/p-e59fd0c5.js +1 -0
  199. package/dist/ketchup/{p-84cfb459.entry.js → p-e9f5949f.entry.js} +1 -1
  200. package/dist/ketchup/{p-17fe09b5.entry.js → p-f890d822.entry.js} +1 -1
  201. package/dist/ketchup/{p-01d7a61a.entry.js → p-fda8a7b9.entry.js} +1 -1
  202. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +2 -1
  203. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +2 -2
  204. package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +1 -1
  205. package/dist/types/components/kup-chip/kup-chip.d.ts +1 -1
  206. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +2 -1
  207. package/dist/types/components/kup-combobox/kup-combobox.d.ts +2 -2
  208. package/dist/types/components/kup-dropdown-button/kup-dropdown-button-declarations.d.ts +1 -1
  209. package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -1
  210. package/dist/types/components/kup-list/kup-list-helper.d.ts +2 -2
  211. package/dist/types/components/kup-list/kup-list.d.ts +1 -1
  212. package/dist/types/components/kup-tree/kup-tree.d.ts +1 -1
  213. package/dist/types/components.d.ts +66 -66
  214. package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +1 -1
  215. package/dist/types/utils/cell-utils.d.ts +1 -1
  216. package/package.json +1 -1
  217. package/dist/ketchup/p-22e5d270.js +0 -1
  218. package/dist/ketchup/p-65240069.js +0 -1
  219. package/dist/ketchup/p-7537f52f.entry.js +0 -1
  220. package/dist/ketchup/p-7e2316a5.js +0 -1
  221. package/dist/ketchup/p-7e2d6bff.entry.js +0 -8
  222. package/dist/ketchup/p-ec727684.js +0 -1
@@ -0,0 +1 @@
1
+ import{h as e}from"./p-710d0a7d.js";import{I as t,az as a,t as l,a as n,b as r}from"./p-d66832f6.js";import{F as s}from"./p-ff735e62.js";import{a as o}from"./p-e3062c19.js";var i;!function(e){e.SIMPLE="simple",e.FULL="full"}(i||(i={}));const c=document.documentElement,u=u=>{u.perPage||(u.perPage=1e3),u.perPage>u.max&&(u.perPage=u.max);const f=Math.ceil(u.max/u.perPage),m=function(e,t){const a=[];for(let l=1;l<=t;l++){const t=l==e.currentPage;a.push({id:l.toString(),selected:t,value:l.toString()})}return a}(u,f),b=function(e){const t=[],a=Math.min(e.max,e.maxRowsPerPage);let l=e.perPage;if(0===l)return t;for(;l<a;){const a=l==e.perPage;t.push({id:l.toString(),selected:a,value:l.toString()}),l*=2}const n=a==e.perPage;return t.push({id:a.toString(),selected:n,value:a.toString()}),t}(u),g={"kup-list":{data:m,DescrMode:t.CODE},"kup-text-field":{label:c.ketchup.language.translate(a.PAGE),helper:c.ketchup.language.translate(a.TOTAL)+`: ${f}`,helperWhenFocused:!0,inputType:"number",max:f,min:1,size:5}},h={"kup-list":{data:b,DescrMode:t.CODE},"kup-text-field":{label:c.ketchup.language.translate(l.ROWS)+" / "+c.ketchup.language.translate(a.PAGE),helper:c.ketchup.language.translate(l.TOTAL)+`: ${u.max}`,helperWhenFocused:!0,inputType:"number",max:u.max,min:1,size:5}};return e("div",Object.assign({class:`f-paginator ${u.mode?u.mode:""} ${u.wrapperClass?u.wrapperClass:""}`},u.dataSet,{id:u.id,title:u.title}),u.onLoadMore?e(s,{icon:"plus",onClick:u.onLoadMore,label:c.ketchup.language.translate(r.LOAD_MORE),sizing:n.SMALL,styling:o.FLAT,wrapperClass:"load-more-button kup-neutral"}):null,e("kup-combobox",{class:"rows-selector",data:h,DescrMode:t.CODE,initialValue:u.perPage.toString(),initialValueDecode:u.perPage.toString(),"onkup-combobox-change":u.onRowsChange}),e("div",{class:"page-wrapper"},e("div",{class:"page-selector-wrapper"},e("kup-combobox",{class:"page-selector",data:g,DescrMode:t.CODE,initialValue:u.currentPage.toString(),initialValueDecode:u.currentPage.toString(),"onkup-combobox-change":u.onPageChange}),u.showMaxPages?e("div",{class:"max-page-wrapper"},e("label",{htmlFor:"page-selector"},"/ "+f)):null),e("div",{class:"arrow-wrapper"},u.mode!==i.SIMPLE?e(s,{icon:"chevron_left",disabled:d(u),onClick:u.onPrevPage,sizing:n.SMALL,styling:o.FLAT,wrapperClass:"kup-neutral prev-page"}):null,u.mode!==i.SIMPLE?e(s,{icon:"chevron_right",disabled:p(u),onClick:u.onNextPage,sizing:n.SMALL,styling:o.FLAT,wrapperClass:"kup-neutral next-page"}):null)))};function p(e){return e.currentPage*e.perPage>=e.max}function d(e){return 1==e.currentPage}const f=document.documentElement;function m(e,t,a){if(f.ketchup.math.isNumber(e)){const l=Math.ceil(t/a);let n=e;return n>l&&(n=l),n<1&&(n=1),n}return null}function b(e,t){if(f.ketchup.math.isNumber(e)){let a=e;return a>t&&(a=t),a<1&&(a=1),a}return null}export{u as F,m as p,b as r}
@@ -1 +1 @@
1
- import{r as i,h as t,d as e}from"./p-710d0a7d.js";import{k as o}from"./p-af914cdf.js";import"./p-36edcc02.js";const n=class{constructor(t){i(this,t),this.kupManager=o(),this.config=void 0,this.qlik=void 0,this.appid="",this.app=!1,this.grid=[],this.debug=!1,this.fluid=!1,this.bordered=!1,this.defobjsize="400px",this.divlist=[]}getObjects(i){let t;return new Promise((e=>{i.rows.forEach((i=>{i.columns.forEach((i=>{t=!1,i.noSelections&&(t=i.noSelections),this.app.getObject(i.obj,i.obj,{noInteraction:!1,noSelections:t})}))})),e(!0)}))}doSelection(i){return new Promise((t=>{i.selections&&i.selections.forEach((i=>{this.app.field(i.field).selectValues(i.values,!1,!0)})),t(!0)}))}setRender(i){return new Promise((e=>{this.divlist=[],i.rows.forEach((i=>{let e=[];i.columns.forEach((i=>{let o="qvobject ";this.bordered&&(o+="bordered "),o=o+"width-"+i.colDim+" size-"+i.size,e.push(t("div",""!=i.obj?{id:i.obj,class:o}:{class:o}))})),this.divlist.push(t("div",{class:"kup-qlik-row"},e))})),e(!0)}))}componentWillLoad(){this.kupManager.debug.logLoad(this,!1)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1),this.setRender(this.grid)}render(){let i=null,e=null;return i=this.fluid?{"kup-qlik-container-fluid":!0}:{"kup-qlik-container":!0},e={"--lyo_obj-height":this.defobjsize},t("div",{key:"7c33b47b57d39d5b899980e6e57e5150ea14ee6b",class:i,style:e},this.divlist)}componentDidRender(){this.debug&&console.log("Grid",this.grid),this.qlik&&(""==this.appid||this.app?this.debug&&console.log("App already open:",this.app):this.app=this.qlik.openApp(this.appid,this.config),this.app&&this.getObjects(this.grid).then((()=>{this.doSelection(this.grid)}))),this.kupManager.debug.logRender(this,!0)}get rootElement(){return e(this)}};n.style=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.kup-qlik-container-fluid{width:100%}.kup-qlik-container{width:100%}@media (min-width: 576px){.kup-qlik-container{width:576px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 768px){.kup-qlik-container{width:768px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 992px){.kup-qlik-container{width:992px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 1200px){.kup-qlik-container{width:1200px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}.kup-qlik-row{display:flex;display:ms-flexbox;flex-wrap:wrap;-ms-flex-wrap:wrap;margin-bottom:5px}.kup-qlik-row .size-M{height:var(--lyo_obj-height)}.kup-qlik-row .size-S{height:calc(var(--lyo_obj-height) / 2)}.kup-qlik-row .size-XS{height:calc(var(--lyo_obj-height) / 3)}.kup-qlik-row .size-L{height:calc(var(--lyo_obj-height) * 2)}.kup-qlik-row .size-XL{height:calc(var(--lyo_obj-height) * 3)}.kup-qlik-row .bordered{border:1px solid var(--kup-border-subtle, #969696)}.kup-qlik-row .width-1{width:8.3333%}.kup-qlik-row .width-2{width:16.6666%}.kup-qlik-row .width-3{width:25%}.kup-qlik-row .width-4{width:33.3333%}.kup-qlik-row .width-5{width:41.6666%}.kup-qlik-row .width-6{width:50%}.kup-qlik-row .width-7{width:58.3333%}.kup-qlik-row .width-8{width:66.6666%}.kup-qlik-row .width-9{width:75%}.kup-qlik-row .width-10{width:83.3333%}.kup-qlik-row .width-11{width:91.6666%}.kup-qlik-row .width-12{width:100%}";export{n as kup_qlik}
1
+ import{r as i,h as t,d as e}from"./p-710d0a7d.js";import{k as o}from"./p-d66832f6.js";import"./p-36edcc02.js";const n=class{constructor(t){i(this,t),this.kupManager=o(),this.config=void 0,this.qlik=void 0,this.appid="",this.app=!1,this.grid=[],this.debug=!1,this.fluid=!1,this.bordered=!1,this.defobjsize="400px",this.divlist=[]}getObjects(i){let t;return new Promise((e=>{i.rows.forEach((i=>{i.columns.forEach((i=>{t=!1,i.noSelections&&(t=i.noSelections),this.app.getObject(i.obj,i.obj,{noInteraction:!1,noSelections:t})}))})),e(!0)}))}doSelection(i){return new Promise((t=>{i.selections&&i.selections.forEach((i=>{this.app.field(i.field).selectValues(i.values,!1,!0)})),t(!0)}))}setRender(i){return new Promise((e=>{this.divlist=[],i.rows.forEach((i=>{let e=[];i.columns.forEach((i=>{let o="qvobject ";this.bordered&&(o+="bordered "),o=o+"width-"+i.colDim+" size-"+i.size,e.push(t("div",""!=i.obj?{id:i.obj,class:o}:{class:o}))})),this.divlist.push(t("div",{class:"kup-qlik-row"},e))})),e(!0)}))}componentWillLoad(){this.kupManager.debug.logLoad(this,!1)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1),this.setRender(this.grid)}render(){let i=null,e=null;return i=this.fluid?{"kup-qlik-container-fluid":!0}:{"kup-qlik-container":!0},e={"--lyo_obj-height":this.defobjsize},t("div",{key:"7c33b47b57d39d5b899980e6e57e5150ea14ee6b",class:i,style:e},this.divlist)}componentDidRender(){this.debug&&console.log("Grid",this.grid),this.qlik&&(""==this.appid||this.app?this.debug&&console.log("App already open:",this.app):this.app=this.qlik.openApp(this.appid,this.config),this.app&&this.getObjects(this.grid).then((()=>{this.doSelection(this.grid)}))),this.kupManager.debug.logRender(this,!0)}get rootElement(){return e(this)}};n.style=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.kup-qlik-container-fluid{width:100%}.kup-qlik-container{width:100%}@media (min-width: 576px){.kup-qlik-container{width:576px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 768px){.kup-qlik-container{width:768px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 992px){.kup-qlik-container{width:992px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 1200px){.kup-qlik-container{width:1200px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}.kup-qlik-row{display:flex;display:ms-flexbox;flex-wrap:wrap;-ms-flex-wrap:wrap;margin-bottom:5px}.kup-qlik-row .size-M{height:var(--lyo_obj-height)}.kup-qlik-row .size-S{height:calc(var(--lyo_obj-height) / 2)}.kup-qlik-row .size-XS{height:calc(var(--lyo_obj-height) / 3)}.kup-qlik-row .size-L{height:calc(var(--lyo_obj-height) * 2)}.kup-qlik-row .size-XL{height:calc(var(--lyo_obj-height) * 3)}.kup-qlik-row .bordered{border:1px solid var(--kup-border-subtle, #969696)}.kup-qlik-row .width-1{width:8.3333%}.kup-qlik-row .width-2{width:16.6666%}.kup-qlik-row .width-3{width:25%}.kup-qlik-row .width-4{width:33.3333%}.kup-qlik-row .width-5{width:41.6666%}.kup-qlik-row .width-6{width:50%}.kup-qlik-row .width-7{width:58.3333%}.kup-qlik-row .width-8{width:66.6666%}.kup-qlik-row .width-9{width:75%}.kup-qlik-row .width-10{width:83.3333%}.kup-qlik-row .width-11{width:91.6666%}.kup-qlik-row .width-12{width:100%}";export{n as kup_qlik}