@sme.up/ketchup 10.4.6 → 10.4.8

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 (193) hide show
  1. package/dist/cjs/{f-cell-808c80f4.js → f-cell-452d8a39.js} +8 -8
  2. package/dist/cjs/{f-chip-ad2e88cd.js → f-chip-973b22de.js} +1 -1
  3. package/dist/cjs/{f-object-field-a2060085.js → f-object-field-43d986c5.js} +2 -2
  4. package/dist/cjs/{f-paginator-utils-ae22f3de.js → f-paginator-utils-bc66522f.js} +1 -1
  5. package/dist/cjs/{f-text-field-582fa181.js → f-text-field-cc70132b.js} +1 -1
  6. package/dist/cjs/index.cjs.js +1 -1
  7. package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
  8. package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
  9. package/dist/cjs/kup-autocomplete_30.cjs.entry.js +69 -58
  10. package/dist/cjs/kup-box.cjs.entry.js +7 -7
  11. package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
  12. package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
  13. package/dist/cjs/kup-cell.cjs.entry.js +5 -5
  14. package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
  15. package/dist/cjs/{kup-data-table-helper-a1c73939.js → kup-data-table-helper-c04ab7a9.js} +11 -12
  16. package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
  17. package/dist/cjs/kup-echart.cjs.entry.js +22 -13
  18. package/dist/cjs/kup-editor.cjs.entry.js +1 -1
  19. package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
  20. package/dist/cjs/kup-grid.cjs.entry.js +1 -1
  21. package/dist/cjs/kup-htm.cjs.entry.js +1 -1
  22. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  23. package/dist/cjs/kup-input-panel.cjs.entry.js +14 -11
  24. package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
  25. package/dist/cjs/kup-magic-box.cjs.entry.js +1 -1
  26. package/dist/cjs/{kup-manager-5faed2fc.js → kup-manager-2e0a7a26.js} +16 -11
  27. package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
  28. package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-object-field.cjs.entry.js +3 -3
  30. package/dist/cjs/kup-planner.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  32. package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
  33. package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
  34. package/dist/cjs/kup-txt.cjs.entry.js +1 -1
  35. package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
  36. package/dist/cjs/kup-typography.cjs.entry.js +1 -1
  37. package/dist/collection/components/kup-data-table/kup-data-table.js +62 -51
  38. package/dist/collection/components/kup-echart/kup-echart.js +21 -12
  39. package/dist/collection/components/kup-input-panel/kup-input-panel-utils.js +3 -2
  40. package/dist/collection/components/kup-input-panel/kup-input-panel.js +6 -4
  41. package/dist/collection/f-components/f-cell/f-cell.js +2 -2
  42. package/dist/collection/f-components/f-label/f-label.js +2 -2
  43. package/dist/collection/managers/kup-data/kup-data-column-helper.js +1 -1
  44. package/dist/collection/managers/kup-data/kup-data.js +15 -10
  45. package/dist/collection/utils/filters/filters-column-menu.js +10 -11
  46. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +1 -1
  47. package/dist/components/index.js +1 -1
  48. package/dist/components/kup-accordion.js +2 -2
  49. package/dist/components/kup-activity-timeline.js +2 -2
  50. package/dist/components/kup-autocomplete.js +1 -1
  51. package/dist/components/kup-badge.js +1 -1
  52. package/dist/components/kup-box.js +1 -1
  53. package/dist/components/kup-button-list.js +1 -1
  54. package/dist/components/kup-button.js +1 -1
  55. package/dist/components/kup-calendar.js +2 -2
  56. package/dist/components/kup-card-list.js +3 -3
  57. package/dist/components/kup-card.js +1 -1
  58. package/dist/components/kup-cell.js +2 -2
  59. package/dist/components/kup-chart.js +1 -1
  60. package/dist/components/kup-checkbox.js +1 -1
  61. package/dist/components/kup-chip.js +1 -1
  62. package/dist/components/kup-color-picker.js +1 -1
  63. package/dist/components/kup-combobox.js +1 -1
  64. package/dist/components/kup-dashboard.js +2 -2
  65. package/dist/components/kup-data-table.js +1 -1
  66. package/dist/components/kup-date-picker.js +1 -1
  67. package/dist/components/kup-dialog.js +1 -1
  68. package/dist/components/kup-drawer.js +2 -2
  69. package/dist/components/kup-dropdown-button.js +1 -1
  70. package/dist/components/kup-echart.js +1 -1
  71. package/dist/components/kup-editor.js +1 -1
  72. package/dist/components/kup-family-tree.js +3 -3
  73. package/dist/components/kup-file-upload.js +1 -1
  74. package/dist/components/kup-form.js +1 -1
  75. package/dist/components/kup-gauge.js +1 -1
  76. package/dist/components/kup-grid.js +1 -1
  77. package/dist/components/kup-htm.js +2 -2
  78. package/dist/components/kup-iframe.js +2 -2
  79. package/dist/components/kup-image-list.js +1 -1
  80. package/dist/components/kup-image.js +1 -1
  81. package/dist/components/kup-input-panel.js +12 -9
  82. package/dist/components/kup-lazy.js +2 -2
  83. package/dist/components/kup-list.js +1 -1
  84. package/dist/components/kup-magic-box.js +4 -4
  85. package/dist/components/kup-nav-bar.js +2 -2
  86. package/dist/components/kup-numeric-picker.js +2 -2
  87. package/dist/components/kup-object-field.js +2 -2
  88. package/dist/components/kup-planner.js +2 -2
  89. package/dist/components/kup-probe.js +2 -2
  90. package/dist/components/kup-progress-bar.js +1 -1
  91. package/dist/components/kup-qlik.js +2 -2
  92. package/dist/components/kup-radio.js +1 -1
  93. package/dist/components/kup-rating.js +1 -1
  94. package/dist/components/kup-snackbar.js +2 -2
  95. package/dist/components/kup-spinner.js +1 -1
  96. package/dist/components/kup-switch.js +1 -1
  97. package/dist/components/kup-tab-bar.js +1 -1
  98. package/dist/components/kup-text-field.js +1 -1
  99. package/dist/components/kup-time-picker.js +1 -1
  100. package/dist/components/kup-toolbar.js +1 -1
  101. package/dist/components/kup-tree.js +1 -1
  102. package/dist/components/kup-txt.js +2 -2
  103. package/dist/components/kup-typography-list.js +2 -2
  104. package/dist/components/kup-typography.js +2 -2
  105. package/dist/components/{p-a42dc353.js → p-64e94968.js} +16 -11
  106. package/dist/components/{p-f5bdb9ff.js → p-69425921.js} +2 -2
  107. package/dist/components/{p-1886497b.js → p-6d5f0117.js} +23 -14
  108. package/dist/components/{p-0df26926.js → p-8359b10a.js} +78 -68
  109. package/dist/components/{p-d8819a35.js → p-bddae662.js} +2 -2
  110. package/dist/components/{p-a2bac767.js → p-fa3c07b8.js} +2 -2
  111. package/dist/esm/{f-cell-d224dc3a.js → f-cell-9353dd77.js} +8 -8
  112. package/dist/esm/{f-chip-a2d07acb.js → f-chip-f9277fd9.js} +1 -1
  113. package/dist/esm/{f-object-field-bc0b6f80.js → f-object-field-e797f627.js} +2 -2
  114. package/dist/esm/{f-paginator-utils-8c3d7b88.js → f-paginator-utils-29fcddb4.js} +1 -1
  115. package/dist/esm/{f-text-field-0f550594.js → f-text-field-f2cd4df1.js} +1 -1
  116. package/dist/esm/index.js +1 -1
  117. package/dist/esm/kup-accordion.entry.js +1 -1
  118. package/dist/esm/kup-activity-timeline.entry.js +2 -2
  119. package/dist/esm/kup-autocomplete_30.entry.js +69 -58
  120. package/dist/esm/kup-box.entry.js +7 -7
  121. package/dist/esm/kup-calendar.entry.js +2 -2
  122. package/dist/esm/kup-card-list.entry.js +1 -1
  123. package/dist/esm/kup-cell.entry.js +5 -5
  124. package/dist/esm/kup-dashboard.entry.js +2 -2
  125. package/dist/esm/{kup-data-table-helper-3f3bb266.js → kup-data-table-helper-4c4da1ec.js} +11 -12
  126. package/dist/esm/kup-drawer.entry.js +1 -1
  127. package/dist/esm/kup-echart.entry.js +22 -13
  128. package/dist/esm/kup-editor.entry.js +1 -1
  129. package/dist/esm/kup-family-tree.entry.js +1 -1
  130. package/dist/esm/kup-grid.entry.js +1 -1
  131. package/dist/esm/kup-htm.entry.js +1 -1
  132. package/dist/esm/kup-iframe.entry.js +1 -1
  133. package/dist/esm/kup-input-panel.entry.js +14 -11
  134. package/dist/esm/kup-lazy.entry.js +1 -1
  135. package/dist/esm/kup-magic-box.entry.js +1 -1
  136. package/dist/esm/{kup-manager-232be463.js → kup-manager-75b947f4.js} +16 -11
  137. package/dist/esm/kup-nav-bar.entry.js +1 -1
  138. package/dist/esm/kup-numeric-picker.entry.js +2 -2
  139. package/dist/esm/kup-object-field.entry.js +3 -3
  140. package/dist/esm/kup-planner.entry.js +2 -2
  141. package/dist/esm/kup-probe.entry.js +1 -1
  142. package/dist/esm/kup-qlik.entry.js +1 -1
  143. package/dist/esm/kup-snackbar.entry.js +1 -1
  144. package/dist/esm/kup-txt.entry.js +1 -1
  145. package/dist/esm/kup-typography-list.entry.js +1 -1
  146. package/dist/esm/kup-typography.entry.js +1 -1
  147. package/dist/ketchup/index.esm.js +1 -1
  148. package/dist/ketchup/ketchup.esm.js +1 -1
  149. package/dist/ketchup/{p-40d9b650.entry.js → p-04d4d4bb.entry.js} +1 -1
  150. package/dist/ketchup/{p-96bef43d.js → p-0829e7c5.js} +1 -1
  151. package/dist/ketchup/{p-5d6f2048.entry.js → p-0a962ac8.entry.js} +1 -1
  152. package/dist/ketchup/p-174fe9ca.entry.js +1 -0
  153. package/dist/ketchup/{p-a84998d8.entry.js → p-1fac1a59.entry.js} +1 -1
  154. package/dist/ketchup/p-3fa60abf.entry.js +1 -0
  155. package/dist/ketchup/{p-6622b9dd.js → p-459f5369.js} +1 -1
  156. package/dist/ketchup/{p-498e38ec.entry.js → p-613028b3.entry.js} +1 -1
  157. package/dist/ketchup/{p-8ab45e3d.entry.js → p-679ce9d9.entry.js} +1 -1
  158. package/dist/ketchup/{p-2ea8982a.entry.js → p-71705280.entry.js} +1 -1
  159. package/dist/ketchup/p-75a8afbe.entry.js +8 -0
  160. package/dist/ketchup/{p-8ac64a64.entry.js → p-76679ede.entry.js} +1 -1
  161. package/dist/ketchup/{p-106ef861.entry.js → p-7c3619bb.entry.js} +1 -1
  162. package/dist/ketchup/{p-88e822d6.entry.js → p-84ddf341.entry.js} +1 -1
  163. package/dist/ketchup/{p-bc2604ea.entry.js → p-856f4922.entry.js} +1 -1
  164. package/dist/ketchup/{p-9510d04c.entry.js → p-950f09bd.entry.js} +1 -1
  165. package/dist/ketchup/{p-5b05f037.entry.js → p-96ae851c.entry.js} +1 -1
  166. package/dist/ketchup/{p-855d7a7c.entry.js → p-9957f141.entry.js} +1 -1
  167. package/dist/ketchup/{p-e049f7d8.entry.js → p-9bf6f42d.entry.js} +1 -1
  168. package/dist/ketchup/{p-7d05209d.entry.js → p-9ee7e62f.entry.js} +1 -1
  169. package/dist/ketchup/{p-d53275b8.entry.js → p-ac579cc8.entry.js} +1 -1
  170. package/dist/ketchup/{p-5bb7d7b3.entry.js → p-b52908a9.entry.js} +1 -1
  171. package/dist/ketchup/{p-e032f052.entry.js → p-b6c1dc95.entry.js} +1 -1
  172. package/dist/ketchup/{p-c6acc505.entry.js → p-b82e6d26.entry.js} +1 -1
  173. package/dist/ketchup/{p-5f41ae01.entry.js → p-b894c2a3.entry.js} +1 -1
  174. package/dist/ketchup/{p-ce92a1d6.entry.js → p-bc2b81c7.entry.js} +2 -2
  175. package/dist/ketchup/{p-4e86911e.entry.js → p-c3efe25a.entry.js} +1 -1
  176. package/dist/ketchup/{p-0c4fdac4.js → p-c49cb8be.js} +1 -1
  177. package/dist/ketchup/{p-6f00f1a3.js → p-d230c26d.js} +1 -1
  178. package/dist/ketchup/p-d4dac70d.js +1 -0
  179. package/dist/ketchup/{p-6b2e3868.entry.js → p-db38289c.entry.js} +1 -1
  180. package/dist/ketchup/{p-ca31b7ee.entry.js → p-e703e6c1.entry.js} +1 -1
  181. package/dist/ketchup/{p-e155cbac.js → p-e7fbf76f.js} +1 -1
  182. package/dist/ketchup/{p-549a999c.entry.js → p-f51a8f12.entry.js} +1 -1
  183. package/dist/ketchup/p-f81ec6f8.js +1 -0
  184. package/dist/types/components/kup-data-table/kup-data-table.d.ts +13 -0
  185. package/dist/types/components/kup-input-panel/kup-input-panel-utils.d.ts +1 -1
  186. package/dist/types/f-components/f-label/f-label-declarations.d.ts +2 -1
  187. package/dist/types/managers/kup-data/kup-data.d.ts +5 -5
  188. package/package.json +1 -1
  189. package/dist/ketchup/p-b4b9fd65.entry.js +0 -1
  190. package/dist/ketchup/p-b7abe6a2.entry.js +0 -1
  191. package/dist/ketchup/p-c284a18d.js +0 -1
  192. package/dist/ketchup/p-de3514d6.js +0 -1
  193. package/dist/ketchup/p-edfd42e9.entry.js +0 -8
@@ -1 +0,0 @@
1
- import{E as e,H as t,D as n,aj as l,x as o,z as r,ak as i,al as s,O as a,Q as u,F as c,am as f,an as h,ao as d,ap as b,aq as m,a9 as p}from"./p-6622b9dd.js";import{K as v}from"./p-adadf8b5.js";class w extends e{getTextFilterValue(e={},t){return this._getTextFilterValue(e,t,!1)}getTextFilterValueTmp(e={},t){return this._getTextFilterValue(e,t,!0)}_getTextFilterValue(e={},t,n){let l="";if(null==e)return l;let o=e[t];return null==o||(l=n?o.textFieldTmp:o.textField),l}hasFiltersForColumn(e={},t){return this._hasFiltersForColumn(e,t,!1)}hasFiltersForColumnTmp(e={},t){return this._hasFiltersForColumn(e,t,!0)}_hasFiltersForColumn(e={},t,n){if(!t)return!1;let l=this._getTextFilterValue(e,t.name,n);if(null!=l&&""!=l.trim())return!0;let o=this.getCheckBoxFilterValues(e,t.name);return!(null==o||o.length<1)}getCheckBoxFilterValues(e={},t){let n=[];if(null==e)return n;let l=e[t];return null==l||null==l.checkBoxes||(n=l.checkBoxes),n}addCheckboxFilter(t={},n,l){if(null==t)return;let o=t[n];null==o&&(o={textField:"",textFieldTmp:"",checkBoxes:[]},t[n]=o),null==o.checkBoxes&&(o.checkBoxes=[]),null==l||null==l.value?o.checkBoxes=[]:e.valuesArrayContainsValue(o.checkBoxes,l.value)||(o.checkBoxes[o.checkBoxes.length]=l)}removeCheckboxFilter(e={},t,n){var l;if(!e||null==n||!e[t])return;const o=e[t];o.checkBoxes=null!==(l=o.checkBoxes)&&void 0!==l?l:[],o.checkBoxes=o.checkBoxes.filter((e=>e.value!==n)),0===o.checkBoxes.length&&delete e[t]}isColumnNumeric(e){return this.isObjNumeric(e.obj)}setTextFieldFilterValue(e={},t,n){this._setTextFieldFilterValue(e,t,n,!0)}_setTextFieldFilterValue(e={},t,n,l){if(null==e)return;let o=Object.assign({textField:"",textFieldTmp:"",checkBoxes:[]},e[t]);l?o.textFieldTmp=null!=n?n.trim():n:o.textField=null!=n?n.trim():n,e[t]=o}saveTextualFilters(e={},t){this._setTextFieldFilterValue(e,t,this.getTextFilterValueTmp(e,t),!1)}resetTextualFilters(e={},t){this._setTextFieldFilterValue(e,t,this.getTextFilterValue(e,t),!0)}getFilterValueForTooltip(e={},l){let o=this.getTextFilterValue(e,l.name),r=this.getCheckBoxFilterValues(e,l.name),i="",s=t(o,l.obj,l.decimals);""!=o&&(i=" AND "),i="";let a="";return r.forEach((e=>{a+=i+n(e,l),i=" OR "})),""!=a&&(a="("+a+")",""!=s&&(a=" AND "+a)),a=s+a,a}removeFilter(e={},t){delete e[t]}}var F;!function(e){e.asAccordion="When enabled, the first level of depth will give an accordion look to nodes.",e.columns="The columns of the tree when tree visualization is active.",e.customStyle="Custom style of the component.",e.data="The json data used to populate the tree view: the basic, always visible tree nodes.",e.density="The density of the rows, defaults at 'medium' and can also be set to 'dense' or 'wide'.",e.dynamicExpansionCallback="Function that gets invoked when a new set of nodes must be loaded as children of a node. When useDynamicExpansion is set, the tree component will have two different behaviors depending on the value of this prop. If this prop is set to null, no callback to download data is available: the component will emit an event requiring the parent to load the children of the given node. If this prop is set to have a callback, then the component will automatically make requests to load children of a given node. After the load has been completed, a different event will be fired to alert the parent of the change.",e.enableExtraColumns="Enables adding extra columns.",e.expanded="Flag: the nodes of the whole tree must be already expanded upon loading. Disabled nodes do NOT get expanded.",e.expansionMode="Behavior of nodes' expansion: it can be chosen between expanding a node by clicking on the dropdown icon, or by clicking on the whole node.",e.filters="List of filters set by the user.",e.globalFilter="When set to true it activates the global filter.",e.globalFilterValue="The value of the global filter.",e.globalFilterMode="The mode of the global filter.",e.preventXScroll="Experimental feature: when active, the tree will try to prevent horizontal overflowing elements by setting a width on the content of the table cells. It works only on cells of the main column.",e.removableColumns="Sets the possibility to remove the selected column.",e.ripple="When enabled displays Material's ripple effect on nodes (only when no columns are displayed).",e.scrollOnHover="Activates the scroll on hover function.",e.showColumns="Shows the tree data as a table.",e.showFilters="When set to true enables the column filters.",e.showFooter="When set to true shows the footer.",e.showHeader="Flag: shows the header of the tree when the tree is displayed as a table.",e.showIcons="Shows the icons of the nodes.",e.stateId="",e.store="",e.totals="Defines the current totals options.",e.useDynamicExpansion="When the component must use the dynamic expansion feature to open its nodes, it means that not all the nodes of the tree have been passed inside the data property. Therefore, when expanding a node, the tree must emit an event (or run a given callback) and wait for the child nodes to be downloaded from the server."}(F||(F={}));const x="TREE_COLUMN";var g;!function(e){e.DROPDOWN="dropdown",e.NODE="node"}(g||(g={}));const j=document.documentElement,k=j.ketchup?j.ketchup.objects:new r,O=j.ketchup?j.ketchup.data:new i;class y extends e{isFilterCompliantForCell(e,t,n){return!!e&&this.isFilterCompliantForSimpleValue(e.value,e.obj,t,n)}isFilterCompliantForCellObj(e,t,n){return!!e&&!!e.obj&&this.isFilterCompliantForSimpleValue(e.obj.k,e.obj,t,n)}isRowCompliant(e,t={},n="",l=!1,o=[],r,i){return this.areCellsCompliant(e.cells,t,n,l,o,r,i)}areCellsCompliant(e,t={},n="",r=!1,i=[],s,a){if(r){let t=!0;if(i&&null!=i&&i.length>0){t=!1;let o=this.filterIsNegative(n);for(let s=0;s<i.length;s++){if(!1===i[s].visible&&!a||(null==a?void 0:a.length)>0&&!a.includes(i[s].name))continue;const u=e[i[s].name];if(null==u)continue;t=this.isFilterCompliantForValue(u.value,n,r);let c=l(i[s],u);if(c!=u.value&&(t=t||this.isFilterCompliantForValue(c,n,r)),1==t&&!o)break;if(0==t&&o)break}}if(!t)return!1}return null==s&&(s=new w),!this.hasFilters(t,i,s)||Object.keys(t).every((n=>{const l=e[n],r=o(i,n);if(!l)return!1;let a=s.getTextFilterValue(t,n),u=s.getCheckBoxFilterValues(t,n);const c=this.filterIsNegative(a);let f=""!==a&&this.isFilterCompliantForCell(l,a,!0)||u.some((e=>this.isFilterCompliantForCell(l,e.value)))||u.some((e=>this.isFilterCompliantForCell(l,e.displayedValue)))||!s.hasFiltersForColumn(t,r),h=c;return k.isNumber(l.obj)||k.isDate(l.obj)||k.isTime(l.obj)||k.isTimestamp(l.obj)||(h=""!==a&&this.isFilterCompliantForCellObj(l,a,!0)||u.some((e=>this.isFilterCompliantForCellObj(l,e.value)))||!s.hasFiltersForColumn(t,r)),c?f&&h:f||h}))}hasFilters(e={},t,n){if(null==e)return!1;let l=Object.keys(e);if(null==l||l.length<1)return!1;null==n&&(n=new w);for(let r=0;r<l.length;r++){let i=l[r],s=null;if(s=i===x?{name:x,title:""}:o(t,i),n.hasFiltersForColumn(e,s))return!0}return!1}filterRows(e=[],t={},n="",l=[],o,r){if(!e||null==e)return[];let i=[];const s=!(!n||!l);if(this.hasFilters(t,l,o)||s)for(let a=0;a<e.length;a++){let u=e[a];(u.id&&u.id.indexOf("insert_")>-1||this.isRowCompliant(u,t,n,s,l,o,r))&&(i[i.length]=u)}else i=[...e];return i}getColumnValues(n,l,o,r){let i=new Array;null==r&&(r=new w);let s=r.getTextFilterValueTmp(n.filters,l.name),a=r.getCheckBoxFilterValues(n.filters,l.name);if(null!=l.valuesForFilter&&l.valuesForFilter.length>0)return l.valuesForFilter.forEach((n=>{let o=n;(e.valuesArrayContainsValue(a,o)||""==s||r.isFilterCompliantForSimpleValue(o,l.obj,s))&&i.push({value:o,displayedValue:t(o,l.obj,l.decimals)})})),i;let u=Object.assign({},n.filters);u[l.name]={textField:s,textFieldTmp:s,checkBoxes:[]};let c=this.filterRows(n.getRows(),u,o,n.getVisibleColumns(),r);for(let e=0;e<a.length;e++)i.push(a[e]);return O.cell.getUnivocalValue({rows:c},l,!0)}}const T=document.documentElement;function C(e=[],t=[]){if(!e||0===e.length)return[];if(e[0].group)return function(e=[],t=[]){if(!e||0===e.length)return[];const n=e[0].group.column;let l=function(e="",t=[]){if(!e||!t||0===t.length)return null;for(let n of t)if(n.column===e)return n;return null}(n,t);return l||(l={column:n,sortMode:p.A}),e.sort(((e,t)=>s({obj:e.group.obj,value:e.group.id},{obj:t.group.obj,value:t.group.id},l.sortMode))),e.forEach((e=>{e.group.children=C(e.group.children,t)})),e}(e,t);if(!t||0===t.length)return e;const n=t.length>1;return e.slice(0).sort(((e,l)=>{if(n){for(let n=0;n<t.length;n++){const o=V(e,l,t[n]);if(0!==o)return o}return 0}return V(e,l,t[0])}))}function V(e,t,n){const l=e.cells[n.column],o=t.cells[n.column];return l||o?l?o?s(l,o,n.sortMode):-1:1:0}function M(e=[],t={},n="",l=[],o,r,i){return null==r&&(r=new y),r.filterRows(e,t,n,l,o,i)}function N(e=[],t=[],n=[],r={}){if(!t)return[];if(!n||0===n.length||!e||0===e.length)return t;const i={},s=n.filter((({column:t})=>{for(let{name:n,title:l}of e)if(n===t)return i[n]=l,!0;return!1}));if(0===s.length)return t;const u=[];let c={};return t.forEach((t=>{const n=s[0].column,f=t.cells[n];if(f){const h=o(e,n),d=l(h,f),b=f.value;let m=null;for(let e of u)if(e.group.label===d){m=e;break}null===m&&(m={group:{id:b,parent:null,column:n,columnLabel:i[n],expanded:!1,label:d,children:[],obj:f.obj,totals:{}},cells:{}},u.push(m));for(let n=1;n<s.length;n++){const r=s[n],a=t.cells[r.column];if(a){const t=o(e,r.column),n=l(t,a),s=a.value;let u=null;for(let e=0;e<m.group.children.length;e++){const t=m.group.children[e];if(t.group.label===n){u=t;break}}u||(u={cells:{},group:{id:s,parent:m,column:r.column,columnLabel:i[r.column],children:[],expanded:!1,label:n,totals:{},obj:a.obj}},L(u),m.group.children.push(u)),m=u}}m.group.children.push(t),function(e,t,n,l){if(!e||!t)return;const o=Object.keys(t);0!==o.length&&o.forEach((o=>{const r=n.cells[o];if(r){const n=T.ketchup.objects.isNumber(r.obj),i=t[o];switch(i){case a.COUNT:let t=e.group.totals[o]||0;e.group.totals[o]=++t;let s=e.group.parent;for(;null!=s;){let e=s.group.totals[o]||0;s.group.totals[o]=++e,s=s.group.parent}break;case a.DISTINCT:let u;if(u=n?T.ketchup.math.numberify(T.ketchup.math.numberifySafe(r.value)):r.value,l[e.group.id]){let t=l[e.group.id][o];t?t.push(u):(l[e.group.id][o]=[],l[e.group.id][o].push(u))}else l[e.group.id]={},l[e.group.id][o]=[],l[e.group.id][o].push(u);let c=e.group.parent;for(;null!=c;){if(l[c.group.id]){let e=l[c.group.id][o];e?e.push(u):(l[c.group.id][o]=[],l[c.group.id][o].push(u))}else l[c.group.id]={},l[c.group.id][o]=[],l[c.group.id][o].push(u);c=c.group.parent}break;case a.SUM:case a.AVERAGE:if(n&&r.value){const t=T.ketchup.math.numberify(T.ketchup.math.numberifySafe(r.value));e.group.totals[o]=t+(e.group.totals[o]||0);let n=e.group.parent;for(;null!=n;){const e=T.ketchup.math.numberify(n.group.totals[o]||0);n.group.totals[o]=t+e,n=n.group.parent}}break;case a.MIN:if(n&&r.value){const t=e.group.totals[o],n=T.ketchup.math.numberify(T.ketchup.math.numberifySafe(r.value));e.group.totals[o]=t?Math.min(t,n):n;let l=e.group.parent;for(;null!=l;){const e=l.group.totals[o];l.group.totals[o]=e?Math.min(e,n):n,l=l.group.parent}}else if(r.value&&T.ketchup.objects.isDate(r.obj)&&T.ketchup.dates.isValidFormattedStringDate(r.value)){const t=e.group.totals[o];if(t){let n=[];n.push(u),n.push(T.ketchup.dates.toDayjs(t)),e.group.totals[o]=T.ketchup.dates.format(T.ketchup.dates.min(n),v.ISO_DATE)}else e.group.totals[o]=T.ketchup.dates.format(u,v.ISO_DATE);let n=e.group.parent;for(;null!=n;){const e=n.group.totals[o];if(e){let t=[];t.push(u),t.push(T.ketchup.dates.toDayjs(e)),n.group.totals[o]=T.ketchup.dates.format(T.ketchup.dates.min(t),v.ISO_DATE)}else n.group.totals[o]=T.ketchup.dates.format(u,v.ISO_DATE);n=n.group.parent}}break;case a.MAX:if(n&&r.value){const t=e.group.totals[o],n=T.ketchup.math.numberify(T.ketchup.math.numberifySafe(r.value));e.group.totals[o]=t?Math.max(t,n):n;let l=e.group.parent;for(;null!=l;){const e=l.group.totals[o];l.group.totals[o]=e?Math.max(e,n):n,l=l.group.parent}}else if(r.value&&T.ketchup.objects.isDate(r.obj)&&T.ketchup.dates.isValidFormattedStringDate(r.value)){const t=e.group.totals[o];if(t){let n=[];n.push(u),n.push(T.ketchup.dates.toDayjs(t)),e.group.totals[o]=T.ketchup.dates.format(T.ketchup.dates.max(n),v.ISO_DATE)}else e.group.totals[o]=T.ketchup.dates.format(u,v.ISO_DATE);let n=e.group.parent;for(;null!=n;){const e=n.group.totals[o];if(e){let t=[];t.push(u),t.push(T.ketchup.dates.toDayjs(e)),n.group.totals[o]=T.ketchup.dates.format(T.ketchup.dates.max(t),v.ISO_DATE)}else n.group.totals[o]=T.ketchup.dates.format(u,v.ISO_DATE);n=n.group.parent}}break;default:0!=i.indexOf(a.MATH)&&console.warn(`invalid total mode: ${i}`)}}}))}(m,r,t,c)}})),function(e,t,n){if(!e||!t)return;const l=Object.keys(t);if(0===e.length||!e[0].group||0===l.length)return;let o=l.filter((e=>a.DISTINCT===t[e]));o.length>0&&e.filter((e=>e.group.children.length>0)).forEach((e=>D(e,o,n)))}(u,r,c),W(u,a.AVERAGE,r),W(u,a.MATH,r),u}function W(e,t,n){if(!e||!n)return;const l=Object.keys(n);if(0===e.length||!e[0].group||0===l.length)return;let o;t==a.AVERAGE&&(o=l.filter((e=>a.AVERAGE===n[e]))),t==a.MATH&&(o=l.filter((e=>0==n[e].indexOf(a.MATH)))),o.length>0&&e.filter((e=>e.group.children.length>0)).forEach((e=>E(e,t,o,n)))}function D(e,t,n){const l=e.group.children;0!==l.length&&(l[0].group&&l.forEach((e=>{D(e,t,n)})),t.forEach((t=>{e.group.totals[t]=new Set(n[e.group.id][t]).size})))}function E(e,t,n,l){const o=e.group.children;if(0===o.length)return 0;let r=0;return o[0].group?o.forEach((e=>{r+=E(e,t,n,l)})):r=o.length,n.forEach((n=>{if(t==a.AVERAGE&&(e.group.totals[n]=e.group.totals[n]/r),t==a.MATH){let t=l[n].substring(a.MATH.length);e.group.totals[n]=T.ketchup.math.formulas.custom(t,e.group.totals)}})),r}function A(e,t){if(t){const n=Object.assign(t);return t.forEach((t=>{e.forEach((e=>{if(t.cells){const n=t.cells[e.name];n&&e.obj&&!n.obj&&(n.obj={t:e.obj.t,p:e.obj.p,k:n.value})}}))})),n}}function B(e,t,n){if(T.ketchup.objects.isEmptyJsObject(n)||T.ketchup.objects.isEmptyJsObject(e))return{};const l={},o=[],r=t.reduce(((t,r)=>{if(!e[r.name])return t;const i=e[r.name];return i===a.COUNT?(l[r.name]=n.length.toString(),t):0===i.indexOf(a.MATH)?(o.push([r.name,i]),t):(t.push({totalOperation:i,totalColumn:r,columnValues:n.map((e=>e.cells[r.name].value))}),t)}),[]);return r||o?(null==r||r.forEach((({totalOperation:e,totalColumn:t,columnValues:o})=>{if(T.ketchup.objects.isNumber(t.obj)){if(e===a.SUM)return void(l[t.name]=o.reduce(((e,t)=>e+T.ketchup.math.numberifySafe(t)),0).toString());if(e===a.AVERAGE)return void(l[t.name]=(o.reduce(((e,t)=>e+T.ketchup.math.numberifySafe(t)),0)/n.length).toString());if(e===a.MIN)return void(l[t.name]=Math.min(...o.map((e=>T.ketchup.math.numberifySafe(e)))).toString());if(e===a.MAX)return void(l[t.name]=Math.max(...o.map((e=>T.ketchup.math.numberifySafe(e)))).toString())}if(T.ketchup.objects.isDate(t.obj)){const n=o.filter((e=>T.ketchup.dates.isIsoDate(e))).map((e=>T.ketchup.dates.toDate(e,v.ISO_DATE)));if(!n)return;if(e===a.MIN)return void(l[t.name]=T.ketchup.dates.format(T.ketchup.dates.min(n),v.ISO_DATE));if(e===a.MAX)return void(l[t.name]=T.ketchup.dates.format(T.ketchup.dates.max(n),v.ISO_DATE))}e===a.DISTINCT&&(l[t.name]=new Set(o).size.toString())})),null==o||o.forEach((([e,t])=>{const n=null==t?void 0:t.replace(u(a.MATH,"g"),"");l[e]=T.ketchup.math.formulas.custom(n,function(e){var t;return Object.fromEntries(null===(t=Object.entries(e))||void 0===t?void 0:t.reduce(((e,[t,n])=>(T.ketchup.math.isNumber(n)&&e.push([t,Number(n)]),e)),[]))}(l)).toString()})),l):l}function L(e){if(!e.group)return;let t=e.group.id,n=e.group.parent;for(;null!==n;)t=`${n.group.id};${t}`,n=n.group.parent;e.group.id=t}function S(e,t,n,l){const o=t*n-n,r=o+Number(n);if(0==l)return e.slice(o,r);let i=[];return _(e,i,o,Number(n),0),i}function _(e,t,n,l,o){let r=!1;for(let i=0;i<e.length;i++){let s=e[i],a=R(e[i]);if(null!=s.group&&null!=s.group.children&&s.group.children.length>0){a.group.children=[];let e=_(s.group.children,a.group.children,n,l,o);o=e.ci,r=e.added,1==r&&(t[t.length]=a)}else o>=n&&(t[t.length]=a,r=!0),o++;if(o>=n+l)break}return{ci:o,added:r}}function R(e){return null==e?null:{id:e.id,cells:Object.assign({},e.cells),actions:e.actions?[...e.actions]:null,group:z(e.group),clonedFrom:e,readOnly:e.readOnly,cssClass:e.cssClass}}function q(e){if(null==e)return null;let t=[];for(let n=0;n<e.length;n++)t[t.length]=R(e[n]);return t}function z(e){return null==e?null:{id:e.id,parent:Object.assign({},e.parent),column:e.column,columnLabel:e.columnLabel,expanded:e.expanded,label:e.label,children:q(e.children),obj:Object.assign({},e.obj),totals:Object.assign({},e.totals)}}function I(e,t,n=!1,l=[]){const o={columns:t.columns.filter((e=>e.visible)),rows:[]};for(const r of t.rows){if(l.includes(r.id)){o.rows.push(r);continue}const t={cells:{},id:r.id};for(const n of o.columns){const l=n.name,o=r.cells[l],i=e.rows.find((e=>e.id===r.id)),s=i?i.cells[l]:null;(!s&&o.value||s&&o.value!==s.value)&&(t.cells[l]=o)}(Object.keys(t.cells).length>0||n)&&o.rows.push(t)}return o}function $(e){var t;null===(t=e.rows)||void 0===t||t.forEach((e=>{Object.keys(e.cells).forEach((t=>{var n;let l=e.cells[t];const o=l.value,r=l.decode,i=l.options;l.isEditable=null!==(n=l.isEditable)&&void 0!==n?n:l.editable;const s={[c.AUTOCOMPLETE]:()=>f(o,"",i,l.data),[c.COMBOBOX]:()=>f(o,"",i,l.data),[c.RADIO]:()=>h(o,i),[c.CHECKBOX]:()=>d(o,""),[c.CHIP]:()=>b(o,r),[c.SWITCH]:()=>m(o,""),[c.MULTI_AUTOCOMPLETE]:()=>b(o,r),[c.MULTI_COMBOBOX]:()=>b(o,r)}[l.shape];s&&(l.data=Object.assign(Object.assign({},s()),l.data))}))}))}export{w as F,g as K,y as a,N as b,B as c,$ as d,F as e,M as f,I as g,A as n,S as p,C as s,x as t}
@@ -1 +0,0 @@
1
- import{h as e,F as n}from"./p-710d0a7d.js";import{ar as o,as as a,U as c,ae as t,f as l,ap as i,an as r,am as s,at as u,F as d,aj as p,a as b,au as k,I as v,av as f,aw as m,ax as h,ay as g,az as j,h as O}from"./p-6622b9dd.js";import{F as x}from"./p-14c6efce.js";import{F as w}from"./p-31ae78d1.js";import{F as _,d as y}from"./p-96bef43d.js";import{F as C}from"./p-cce08de3.js";import{F as $}from"./p-0c4fdac4.js";import{F}from"./p-e155cbac.js";var I;!function(e){e.RADIO="radio",e.CHEVRON="chevron"}(I||(I={}));const D=o=>{var a;const c=o.horizontal||"lineDirection"==o.RadLay,t=!!o.columns,l=[],i=o.type||I.RADIO;for(let c=0;c<(null===(a=o.data)||void 0===a?void 0:a.length);c++){const a=o.data[c],t={radio:!0,"radio--checked":!!a.checked,"radio--disabled":!!o.disabled,[`radio--${o.type}`]:!!o.type};l.push(e("div",{class:`form-field \n ${o.leadingLabel?" form-field--align-end":""} ${o.disabled?"radio--disabled":""} ${i===I.CHEVRON?"form--chevron":""}`,onClick:o.onChange?o.onChange.bind(o.onChange,c):null},e("div",{class:t},i===I.RADIO?e("input",{class:"radio__native-control",type:"radio",name:"radio-element",value:a.value,checked:a.checked,disabled:o.disabled,onBlur:o.onBlur,onChange:e=>{o.onChange&&o.onChange(c,e),e.stopPropagation()},onFocus:o.onFocus}):e(n,null,e(C,a.checked?{resource:"check",sizeX:"14px",sizeY:"14px"}:{sizeX:"14px",sizeY:"14px",onClick:e=>{o.onChange&&o.onChange(c,e),e.stopPropagation()}})),i===I.RADIO&&e("div",{class:"radio__background"},e("div",{class:"radio__outer-circle"}),e("div",{class:"radio__inner-circle"}))),e("div",{class:"label-wrapper",onClick:e=>{o.onChange&&o.onChange(c,e),e.stopPropagation()}},i===I.CHEVRON&&e(C,{resource:a.icon,sizeX:"14px",sizeY:"14px"}),e("label",{htmlFor:"radio-element"},a.label?a.label:""),a.shortcutLabel&&e("div",{class:"shortcut"},a.shortcutLabel))))}return e("div",{class:`f-radio radio-wrapper\n ${t?"radio-wrapper-grid":""} ${o.danger?"kup-danger":""} ${o.info?"kup-info":""} ${o.secondary?"kup-secondary":""} ${o.success?"kup-success":""} ${o.warning?"kup-warning":""} ${o.wrapperClass?o.wrapperClass:""} ${c?"kup-horizontal":""}`,style:{"--kup_radio_columns":t?`repeat(${o.columns}, 1fr)`:""}},l)},E=n=>(n.maxValue||(n.maxValue=5),e("div",{class:`f-rating ${n.disabled?"disabled":""} ${n.danger?"kup-danger":""} ${n.info?"kup-info":""} ${n.secondary?"kup-secondary":""} ${n.success?"kup-success":""} ${n.warning?"kup-warning":""} ${n.wrapperClass?n.wrapperClass:""}`},function(n){const o=[];for(let a=1;a<=n.maxValue;a++)o.push(e("span",{class:"rating",onClick:n.onClick?n.onClick.bind(n.onClick,a):null},a<=n.value?"★":"☆"));return o}(n)));var A;!function(e){e.SMALL="small",e.MEDIUM="medium"}(A||(A={}));const B=n=>{n.sizing||(n.sizing=A.MEDIUM),n.sizing.toLowerCase();const o={switch:!0,"switch--checked":n.checked,"switch--disabled":n.disabled,[`switch--${n.sizing}`]:!!n.sizing};return e("div",Object.assign({class:`f-switch ${n.danger?"kup-danger":""} ${n.info?"kup-info":""} ${n.secondary?"kup-secondary":""} ${n.success?"kup-success":""} ${n.warning?"kup-warning":""} ${n.wrapperClass?n.wrapperClass:""}`},n.dataSet,{id:n.id,title:n.title}),e("div",{class:"form-field "+(n.leadingLabel?"form-field--align-end":"")},e("div",{class:o},e("div",{class:"switch__track"}),e("div",{class:"switch__thumb-underlay"},e("div",{class:"switch__thumb"},e("input",{type:"checkbox",class:"switch__native-control",role:"switch",checked:n.checked,disabled:n.disabled,value:n.checked?"on":"off",onBlur:n.onBlur,onChange:n.onChange,onFocus:n.onFocus})))),e("label",{onClick:n.onChange},n.label)))},z={"*BOLD":"font-weight: bold; !important;","*ERROR":"color: white !important; background: red !important;","*UNDERLINE":"text-decoration: underline !important;","*ITALIC":"font-style: italic !important;"};function N(e){let n;switch(e){case"0":n="color: #000000 !important;";break;case"1":n="color: #6C7A89 !important;";break;case"2":n="color: #3A539B !important;";break;case"3":n="color: var(--kup-danger-color-60) !important;";break;case"4":n="color: #C0C0C0 !important;";break;case"5":n="color: #FFFFFF !important;";break;case"6":n="color: var(--kup-success-color-60) !important;";break;case"7":n="color: #9B59B6 !important;";break;default:n=""}return n}function R(e){let n;switch(e){case"1":n="font-weight: bold !important;";break;case"2":n="font-style: italic !important;";break;case"3":n="text-decoration: underline !important;";break;default:n=""}return n}function L(e){let n;switch(e){case"0":n="background: transparent;";break;case"1":n="background: #D5ECF7;";break;case"2":n="background: #59ABE3;";break;case"3":n="background: #446CB3;";break;case"4":n="background: #9B59B6;";break;case"5":n="background: #F1A9A0;";break;case"6":n="background: #E74C3C;";break;case"7":n="background: #CF000F;";break;case"8":n="background: #C0392B;";break;case"9":n="background: #95A5A6;";break;case"A":n="background: #F5D76E;";break;case"B":case"C":n="background: #F7CA18;";break;case"D":n="background: #F39C12;";break;case"E":n="background: #90C695;";break;case"F":n="background: #26A65B;";break;case"G":n="background: #019875;";break;case"H":n="background: #36D7B7;";break;default:n=""}return n}function K(e){let n;switch(e){case"1":n='font-family: "Courier New", Courier, monospace !important;';break;case"2":n='font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif !important;';break;case"3":n="font-family: Arial, Helvetica, sans-serif !important;";break;default:n=""}return n}const M=({text:n,classes:o})=>{const a=function(e){const n=[];let o=null;return function(e,n){const o=/((_G\d{2}[A-Z0-9]\d{2}_|_G\*(BOLD|ERROR|ITALIC|UNDERLINE)_)|_n_)/g;let a,c=0;for(;null!==(a=o.exec(e));)a.index>c&&n.onContent(e.slice(c,a.index)),"_n_"===a[1]?n.onEndTag(a[1]):n.onStartTag(a[2]),c=o.lastIndex;c<e.length&&n.onContent(e.slice(c))}(e,{onStartTag(e){(null==o?void 0:o.tag)&&(o.closed=!0),n.push(o={tag:e,content:""})},onEndTag(e){o?o.tag?(o.closed=!0,o=null):this.onContent(e):n.push(o={content:e})},onContent(e){o?o.content+=e:n.push(o={content:e})}}),o&&o.tag&&(o.closed=!0),n}(n);return e("span",{class:o},a.find((e=>void 0!==e.tag))?function(n){return n.map((n=>{var o,a;const c=function(e){const n=function(e){let n="";if((null==e?void 0:e.match(/\d{2}[A-Z0-9]\d{2}|\*(BOLD|ERROR|ITALIC|UNDERLINE)/))&&(n=z[e],!n)){n="";for(let o=0;o<e.length;o++)switch(o){case 0:n+=N(e.charAt(o));break;case 1:n+=R(e.charAt(o));break;case 2:n+=L(e.charAt(o));break;case 3:n+=K(e.charAt(o))}}return n}(e);return n.split(";").filter((e=>e.trim())).reduce(((e,n)=>{const[o,a]=n.split(":").map((e=>e.trim()));if(o&&a){const n=a.replace(/!important/g,"").trim();e[o.replace(/-([a-z])/g,((e,n)=>n.toUpperCase()))]=n}return e}),{})}(null===(o=n.tag)||void 0===o?void 0:o.replace(/[_]/g,"").slice(1));return n.closed?e("span",{style:c},n.content):e("span",null,`${null!==(a=n.tag)&&void 0!==a?a:""}${n.content}`)}))}(a):n)},T=document.documentElement,V=(n,i)=>{var r,s,k,f,O;const I=n.cell,A=n.column,z=n.row,N=n.shape?n.shape:I.shape?I.shape:A.shape?A.shape:null,R=!T.ketchup.objects.isEmptyKupObj(I.obj);let L=!1;I.hasOwnProperty("isEditable")?L=I.isEditable:A.hasOwnProperty("isEditable")&&(L=A.isEditable),L=L&&n.editable,I.data=null!==(r=X(I,A))&&void 0!==r?r:I.data;const K=n.previousValue!==I.value?I.value:"",V=T.ketchup.data.cell.getType(I,N),G="extra_dense"===n.density?"extra-small":null===(s=I.data)||void 0===s?void 0:s.sizing;let U=I.cssClass?I.cssClass:(null==A?void 0:A.cssClass)?null==A?void 0:A.cssClass:"";const Y={"f-cell":!0,[c.OBJ]:!!R,[V+"-cell"]:!0,[n.wrapperClass]:!!n.wrapperClass,[n.density]:!(!n.density||V===t.BAR),[U]:!!U,"c-input-uppercase":g(I),"c-input-lowercase":j(I),"monospace c-pre":null===(k=I.data)||void 0===k?void 0:k.legacyLook};let W=K;I.data&&0!==Object.keys(I.data).length||function(e,n){function o(e){return e.toUpperCase().startsWith("SHAPE;BAR")}function a(e){return e.toUpperCase().startsWith("SHAPE;")}function c(e){return e.toUpperCase().startsWith("BCOLOR;")}function l(e){return e.toUpperCase().startsWith("HEIGHT;")}function i(e){return e.toUpperCase().startsWith("SEP;")||e.toUpperCase().startsWith("DIV;")||e.toUpperCase().startsWith("ARW;")||e.toUpperCase().startsWith("GRID;")}function r(e){const n={},t=e.split("\\\\"),r=[];for(const e of t){if(e){if(i(e))return null;if(a(e)){if(!o(e))return null;{const o=e.split(";");if(3===o.length){const e=o[2].replace(",",".");isNaN(parseFloat(e))||(n.width=`${e}%`)}}}else if(c(e));else if(l(e)){const o=e.substring(7).replace(",",".");isNaN(parseFloat(o))||(n.height=`${o}%`)}else r.push(s(e,n))}return r.length?r:null}function s(e,n){const o=Object.assign({},n),a=e.split(";");if(a.length>=1){const e=/R(\d+)G(\d+)B(\d+)/.exec(a[0]);if(e){const[,n,a,c]=e;isNaN(parseInt(n,10))||isNaN(parseInt(a,10))||isNaN(parseInt(c,10))||(o.color=`rgb(${parseInt(n)},${parseInt(a)},${parseInt(c)})`)}if(a.length>=2){const e=a[1].replace(",",".");isNaN(parseFloat(e))||(o.width=`${e}%`)}}return o}}n.data={};switch(e){case t.CHECKBOX:case t.SWITCH:n.data.checked="1"===n.value;break;case t.BAR:a(n.value)?(n.data.isCanvas=!0,n.data.resource=n.value):n.data.data=function(e){if(!e)return null;const n=e.split("\\\\AND\\"),o=[];for(const e of n){const n=r(e);if(!n)return null;o.push(...n)}return o}(n.value);break;case t.BUTTON:n.data.label=n.value;break;case t.CHART:Object.assign(n.data,{sizeX:"100px",sizeY:"100px",offlineMode:{value:n.value,shape:"pie"}});break;case t.BUTTON_LIST:case t.CHIP:case t.MULTI_AUTOCOMPLETE:case t.MULTI_COMBOBOX:case t.RADIO:(()=>{var e;const o=null===(e=n.value)||void 0===e?void 0:e.split(";");if(""===(null==o?void 0:o[o.length-1].trim())&&o.pop(),o&&o.length){n.data.data=[];for(let e of o)n.data.data.push({id:e,value:e})}})();break;case t.COLOR_PICKER:n.data.initialValue=n.value;break;case t.GAUGE:case t.KNOB:case t.PROGRESS_BAR:case t.RATING:n.data.value=parseInt(n.value);break;case t.ICON:case t.IMAGE:n.data.resource=n.value}}(V,I);const P=Object.assign(Object.assign(Object.assign(Object.assign({},I.data),(null==I?void 0:I.icon)?{resource:I.icon}:{}),(null==I?void 0:I.placeholderIcon)?{placeholderResource:I.placeholderIcon}:{}),G?{sizing:G}:{});L&&o.includes(V)?(I.data.showMarker=null!==(f=I.tooltip)&&void 0!==f&&f,W=function(n,o,a,l,i){var r,s,u,k,f,m,g,j,O,x,y,C,I,E;switch(n){case t.AUTOCOMPLETE:return e("kup-autocomplete",Object.assign({key:l.name+i.row.id,initialValue:a.value,initialValueDecode:a.decode},a.data,{class:le(i)?"kup-full-width":"","onkup-autocomplete-change":e=>ce(e,i,n,h.UPDATE),"onkup-autocomplete-input":e=>ce(e,i,n,h.INPUT),"onkup-autocomplete-iconclick":e=>ce(e,i,n,h.ICON_CLICK),"onKup-autocomplete-blur":e=>ce(e,i,n,h.BLUR),"onKup-autocomplete-itemclick":e=>ce(e,i,n,h.ITEMCLICK)}));case t.CHECKBOX:return te(i)&&(o[c.C_CENTERED]=!0),a.shape===d.INPUT_CHECKBOX?e("input",{checked:"on"===a.value.toLowerCase()||"1"===a.value,class:"input-checkbox",onChange:e=>ce(e,i,n,h.UPDATE),type:"checkbox",onBlur:e=>ce(e,i,n,h.BLUR)}):e(w,Object.assign({},a.data,{onChange:e=>ce(e,i,n,h.UPDATE),onBlur:e=>ce(e,i,n,h.BLUR)}));case t.CHIP:return e("kup-chip",Object.assign({},a.data,{type:_.INPUT,enableInput:!0,"onKup-chip-change":e=>ce(e,i,n,h.UPDATE)}),e("kup-text-field",Object.assign({fullWidth:!0,slot:"field"},a.slotData,{error:a.data.error,"onKup-textfield-blur":e=>ce(e,i,n,h.BLUR)})));case t.COLOR_PICKER:return e("kup-color-picker",Object.assign({},a.data,{key:l.name+i.row.id,initialValue:a.value.toUpperCase(),class:le(i)?"kup-full-width":"",disabled:!1,"onkup-colorpicker-change":e=>ce(e,i,n,h.UPDATE)}));case t.COMBOBOX:return e("kup-combobox",Object.assign({key:l.name+i.row.id,initialValue:a.value,initialValueDecode:a.decode,ListDescrMode:a.data.ListDescrMode},a.data,{class:le(i)?"kup-full-width":"","onkup-combobox-change":e=>ce(e,i,n,h.UPDATE),"onkup-combobox-input":e=>ce(e,i,n,h.INPUT),"onkup-combobox-iconclick":e=>ce(e,i,n,h.ICON_CLICK),"onKup-combobox-blur":e=>ce(e,i,n,h.BLUR),"onKup-combobox-itemclick":e=>ce(e,i,n,h.ITEMCLICK)}));case t.DATE:return e("kup-date-picker",Object.assign({key:l.name+i.row.id,initialValue:a.value},a.data,{class:le(i)?"kup-full-width":"","onkup-datepicker-change":e=>ce(e,i,n,h.UPDATE),"onkup-datepicker-input":e=>ce(e,i,n,h.INPUT),"onKup-datepicker-blur":e=>ce(e,i,n,h.BLUR),"onkup-datepicker-textfieldsubmit":e=>ce(e,i,n,h.UPDATE)}));case t.EDITOR:const A=e=>{"Enter"!==e.key||e.ctrlKey?("Enter"===e.key&&e.ctrlKey||/^F[1-9]|F1[0-2]$/.test(e.key))&&ce(e,i,n,h.UPDATE):e.stopPropagation()};return e(F,Object.assign({},a.data,{textArea:!0,sizing:b.EXTRA_LARGE,label:l.title,fullWidth:!!le(i),maxLength:a.data.maxLength,value:a.value,onChange:e=>{ce(e,i,n,h.UPDATE)},onInput:e=>{var o,c;null===(c=null===(o=a.data)||void 0===o?void 0:o.onInput)||void 0===c||c.call(o,e),ce(e,i,n,h.INPUT)},onBlur:e=>ce(e,i,n,h.BLUR),onKeyDown:A}));case t.FILE_UPLOAD:return e("kup-file-upload",Object.assign({"onKup-file-upload-change":e=>ce(e,i,n,h.UPDATE)},a.data));case t.MULTI_AUTOCOMPLETE:return e("kup-chip",Object.assign({DescrMode:null!==(r=a.data.DescrMode)&&void 0!==r?r:v.DESCRIPTION},a.data,{label:null!==(u=null===(s=a.slotData)||void 0===s?void 0:s.label)&&void 0!==u?u:"",type:_.INPUT,enableInput:!0,"onKup-chip-change":e=>ce(e,i,n,h.UPDATE)}),e("kup-autocomplete",{class:"kup-full-width",slot:"field",DescrMode:v.CODE_AND_DESC,sizing:b.EXTRA_SMALL,"onKup-autocomplete-blur":e=>ce(e,i,n,h.BLUR),"onkup-autocomplete-input":e=>ce(e,i,n,h.INPUT),"onkup-autocomplete-iconclick":e=>ce(e,i,n,h.ICON_CLICK),data:null===(k=a.slotData)||void 0===k?void 0:k.data,initialValue:null===(f=a.slotData)||void 0===f?void 0:f.initialValue,showDropDownIcon:null===(m=a.slotData)||void 0===m?void 0:m.showDropDownIcon,style:null===(g=a.slotData)||void 0===g?void 0:g.style,disabled:null===(j=a.slotData)||void 0===j?void 0:j.disabled,id:null===(O=a.slotData)||void 0===O?void 0:O.id,error:a.data.error,showMarker:null!==(x=a.tooltip)&&void 0!==x&&x,ListDescrMode:a.data.ListDescrMode}));case t.MULTI_COMBOBOX:return e("kup-chip",Object.assign({DescrMode:null!==(y=a.data.DescrMode)&&void 0!==y?y:v.DESCRIPTION},a.data,{type:_.INPUT,enableInput:!0,"onKup-chip-change":e=>ce(e,i,n,h.UPDATE)}),e("kup-combobox",Object.assign({class:"kup-full-width",slot:"field",DescrMode:v.CODE_AND_DESC,sizing:b.EXTRA_SMALL,"onKup-combobox-blur":e=>ce(e,i,n,h.BLUR),"onkup-combobox-input":e=>ce(e,i,n,h.INPUT),"onkup-combobox-iconclick":e=>ce(e,i,n,h.ICON_CLICK)},a.slotData,{error:a.data.error,showMarker:null!==(C=a.tooltip)&&void 0!==C&&C,ListDescrMode:a.data.ListDescrMode})));case t.RADIO:return e(D,Object.assign({},a.data,{disabled:!1,onChange:(e,o)=>{const c=a.data.data;for(let n=0;n<c.length;n++){c[n].checked=n===e}ce(o,i,n,h.UPDATE)},onBlur:e=>ce(e,i,n,h.BLUR)}));case t.RATING:return e("kup-rating",Object.assign({key:l.name+i.row.id},a.data,{disabled:!1,"onkup-rating-click":e=>ce(e,i,n,h.UPDATE)}));case t.SWITCH:return e(B,Object.assign({},a.data,{disabled:!1,onChange:e=>ce(e,i,n,h.UPDATE),onBlur:e=>ce(e,i,n,h.BLUR)}));case t.TIME:return e("kup-time-picker",Object.assign({key:l.name+i.row.id,initialValue:a.value},a.data,{class:le(i)?"kup-full-width":"","onkup-timepicker-change":e=>ce(e,i,n,h.UPDATE),"onkup-timepicker-input":e=>ce(e,i,n,h.INPUT),"onKup-timepicker-blur":e=>ce(e,i,n,h.BLUR)}));case t.OBJECT:return e($,{cell:a,column:i.column,row:i.row,inputValue:a.value,onChange:e=>ce(e,i,n,h.UPDATE)});case t.NUMBER:o[c.C_RIGHT_ALIGNED]=!0;case t.LINK:case t.MEMO:case t.STRING:const z=e=>ce(e,i,n,h.UPDATE),N=e=>{var o,c;null===(c=null===(o=a.data)||void 0===o?void 0:o.onInput)||void 0===c||c.call(o,e),ce(e,i,n,h.INPUT)},R=e=>{var o,c,l;null===(c=null===(o=a.data)||void 0===o?void 0:o.onKeyDown)||void 0===c||c.call(o,e);const r="MEMO"===a.shape||(null===(l=a.data)||void 0===l?void 0:l.maxLength)>=256||n===t.MEMO,s="Enter"===e.key&&e.ctrlKey;r&&"Enter"===e.key&&!e.ctrlKey?e.stopPropagation():(s||/^F[1-9]|F1[0-2]$/.test(e.key))&&ce(e,i,n,h.UPDATE)},L=n===t.NUMBER?"number":null;if(a.shape===d.INPUT_FIELD){const o=n===t.NUMBER&&a.value?p(l,a):a.value;return e("input",{class:"input-field",onChange:z,onInput:N,onKeyDown:R,type:L,value:o,maxLength:null!==(E=null===(I=l.cellData)||void 0===I?void 0:I.maxLength)&&void 0!==E?E:-1})}{const o=!!a.shape&&a.shape===d.MEMO||!!n&&n===t.MEMO||a.data.maxLength>=256;return e(F,Object.assign({},a.data,{textArea:o,sizing:a.data.sizing?a.data.sizing:o?b.EXTRA_LARGE:b.SMALL,inputType:L,fullWidth:!!le(i),maxLength:n==t.NUMBER&&(i.column.decimals&&i.column.decimals>0||i.column.group)||i.column.integers&&i.column.integers>0?-1:a.data.maxLength,icon:a.data&&a.data.icon?a.data.icon:a.icon?a.icon:l.icon?l.icon:null,decimals:i.column.decimals,integers:i.column.integers,group:i.column.group,value:a.value,label:l.title,onChange:z,onInput:N,onKeyDown:R,onIconClick:e=>ce(e,i,n,h.ICON_CLICK),onBlur:e=>ce(e,i,n,h.BLUR)}))}}}(V,Y,I,A,n)):I.data&&a.includes(V)?(n.setSizes&&function(e,n,o){switch(e){case t.BAR:n.sizeY||(n.sizeY="26px");break;case t.BUTTON:let e="";n.label&&(e="36px"),o.style?o.style.height||(o.style.minHeight=e):o.style={minHeight:e};break;case t.CHART:n.sizeX||(n.sizeX="100%"),n.sizeY||(n.sizeY="100%");break;case t.CHIP:o.style?o.style.height||(o.style.minHeight="18px"):o.style={minHeight:"18px"};break;case t.RADIO:o.style?o.style.height||(o.style.minHeight="40px"):o.style={minHeight:"40px"}}}(V,P,I),W=n.renderKup?function(n,o,a,l,i,r,s){switch(n){case t.BAR:return a.data?e("div",{style:{height:a.sizeY,width:"100%"}},e(C,Object.assign({},a))):e("kup-image",Object.assign({key:r.name+s.row.id,sizeX:"250px"},a));case t.BUTTON:te(s)&&(o[c.C_CENTERED]=!0);const u=Object.assign({label:l.value,icon:l.icon,placeholderIcon:l.placeholderIcon,title:r.title},a);return e(x,Object.assign({},u,{onClick:e=>ce(e,s,n,h.CLICK)}));case t.BUTTON_LIST:return te(s)&&(o[c.C_CENTERED]=!0),a["data-storage"]={cell:l,row:i,column:r},e("kup-button-list",Object.assign({key:r.name+s.row.id},a));case t.CHART:return te(s)&&(o[c.C_CENTERED]=!0),e("kup-chart",Object.assign({key:r.name+s.row.id},a));case t.MULTI_AUTOCOMPLETE:case t.MULTI_COMBOBOX:case t.CHIP:return e(y,Object.assign({},a));case t.COLOR_PICKER:return e("kup-color-picker",Object.assign({key:r.name+s.row.id},a,{class:le(s)?"kup-full-width":"",disabled:!0}));case t.GAUGE:return e("kup-gauge",Object.assign({key:r.name+s.row.id,value:T.ketchup.math.numberifySafe(l.value),"width-component":"280px"},a));case t.KNOB:case t.PROGRESS_BAR:return e("kup-progress-bar",Object.assign({key:r.name+s.row.id},a,{value:T.ketchup.math.numberifySafe(l.value)}));case t.RADIO:return te(s)&&(o[c.C_CENTERED]=!0),a.disabled=i.readOnly,e(D,Object.assign({},a));case t.RATING:return e(E,Object.assign({},a,{disabled:!0}));case t.OBJECT:return e(F,Object.assign({icon:"table"},a,{disabled:!0}))}}(V,Y,P,I,z,A,n):e("span",{class:"cell-"+V+" placeholder"})):(n.setSizes&&function(e,n,o,a){var c;switch(e){case t.CHECKBOX:case t.ICON:n.sizeX||(n.sizeX="18px"),n.sizeY||(n.sizeY="18px"),o.style?o.style.height||(o.style.minHeight=n.sizeY):o.style={minHeight:n.sizeY};break;case t.IMAGE:const e=(null===(c=a.cell)||void 0===c?void 0:c.value)||"",l=e.indexOf(".")>-1||e.indexOf("/")>-1||e.indexOf("\\")>-1;a.component.rootElement.tagName!==u.DATA_TABLE||l||(n.sizeX||n.sizeY?(n.sizeX||(n.sizeX="100%",n.wrapperClass="noWidth"),n.sizeY||(n.sizeY="auto")):(n.sizeX="100%",n.sizeY="64px",n.wrapperClass="noWidth")),a.component.rootElement.tagName===u.BOX?(n.sizeY||(n.sizeY="auto"),void 0===n.fit&&(n.fit=!0)):n.sizeX||(n.sizeX="auto"),n.sizeY||(n.sizeY="64px")}}(V,P,I,n),Y[c.INDICATOR_TOPRIGHT]=null!==(O=I.tooltip)&&void 0!==O&&O,W=function(n,o,a,l,i,r,s){switch(n){case t.AUTOCOMPLETE:case t.COMBOBOX:return a&&""!=a?e("div",{class:"f-cell__text"},m(i,a," - ")):a;case t.DATE:case t.DATETIME:case t.TIME:if(a&&""!=a){const n=p(r,i);return e("div",{class:"f-cell__text"},n)}return a;case t.CHECKBOX:return te(s)&&(l[c.C_CENTERED]=!0),e(C,{resource:o.checked?"check_box":"check_box_outline_blank",sizeX:"18px",sizeY:"18px"});case t.EDITOR:case t.MEMO:return e("div",{innerHTML:i.value});case t.ICON:case t.IMAGE:return te(s)&&(l[c.C_CENTERED]=!0),o.badgeData&&(l[c.C_PADDED]=!0),e(C,Object.assign({},o));case t.LINK:return e("a",{href:a,target:"_blank"},i.value);case t.NUMBER:if(a&&""!=a){const n=T.ketchup.math.numberifySafe(i.value),o=p(r,i);return!Boolean(i.style&&i.style.color)&&n<0&&(l[c.TEXT_DANGER]=!0),te(s)&&(l[c.C_RIGHT_ALIGNED]=!0),e("div",{class:"f-cell__text"},o)}return e("div",{class:"f-cell__text"},a);case t.SWITCH:return te(s)&&(l[c.C_CENTERED]=!0),o.disabled=!0,e(B,Object.assign({},o));case t.LABEL:return e(M,{text:i.value,classes:"f-cell__text"});case t.IMAGE_LIST:const u=i.data.data.find((e=>e.value===i.value))||null;return e("kup-image-list",Object.assign({ripple:!0},i.data,{"onKup-imagelist-click":e=>ce(e,s,n,h.UPDATE),activeNode:u}));default:return e("div",{class:"f-cell__text"},i.data.DescrMode?m(i,a,"-"):a)}}(V,P,W,Y,I,A,n));let Z=null;!L&&(A.icon||I.icon)&&W&&V!=t.BUTTON&&V!=t.BUTTON_LIST&&V!=t.IMAGE&&V!=t.ICON&&(Z=e(C,Object.assign({},{color:`rgba(var(${l.TEXT}-rgb), 0.375)`,resource:I.icon?I.icon:A.icon,placeholderResource:I.placeholderIcon?I.placeholderIcon:A.placeholderIcon,sizeX:"1.25em",sizeY:"1.25em",wrapperClass:"obj-icon"})));let q=null;T.ketchup.debug.isDebug()&&R?q=I.obj.t+"; "+I.obj.p+"; "+I.obj.k+";":null!=I.title&&""!=I.title.trim()&&(q=I.title);let J=null;if(I.info){const n=Object.assign({},I.info);n.color||(n.color=`var(${l.INFO})`),n.icon||(n.icon="info"),J=e(C,Object.assign({},{color:n.color,resource:n.icon,placeholderResource:n.placeholderIcon,sizeX:"1.25em",sizeY:"1.25em",title:n.message?n.message:"",wrapperClass:"cell-info"}))}if(n.component.rootElement.tagName===u.INPUT_PANEL&&I.style){if(I.style.backgroundColor){const e=I.style.backgroundColor;I.style.backgroundColor="",I.style["--kup-textfield-background-color"]=e}if(I.style.color){const e=I.style.color;I.style.color="",I.style["--kup-textfield-color"]=e}}return e("div",{onKeyUp:e=>ce(e,n,V,h.KEYUP),class:Y,"kup-get-cell-props":()=>n,ref:e=>I.element=e,style:I.style},e("div",{class:"f-cell__content",style:I.styleContent,title:q,onMouseEnter:e=>H(e,n,V),onMouseLeave:e=>S(e)},i&&i.length>0?i:[n.indents,J,Z,W]))},H=(e,n,o)=>{var a;if(n.cellActionIcon){const c=e.currentTarget,l=document.createElement("kup-image");l.resource="more_vert",l.sizeX="16px",l.sizeY="16px",l.tabIndex=0,l.className="f-cell__iconfunction "+(o===t.NUMBER?"left":"right"),(null===(a=n.cellActionIcon)||void 0===a?void 0:a.onClick)&&l.addEventListener("click",n.cellActionIcon.onClick),c.appendChild(l)}},S=e=>{const n=e.currentTarget.querySelector("kup-image");n&&n.remove()},X=(e,n)=>{var o;if(!e)return null;const a=e.options,c=(null===(o=e.data)||void 0===o?void 0:o.hasOwnProperty("label"))?e.data.label:n.title,l=e.value,i=T.ketchup.data.cell.getType(e,e.shape),r=new Map([[t.BUTTON_LIST,W.bind(void 0)],[t.STRING,P.bind(void 0)],[t.RADIO,Z.bind(void 0)],[t.AUTOCOMPLETE,q.bind(void 0)],[t.COMBOBOX,q.bind(void 0)],[t.CHECKBOX,Y.bind(void 0)],[t.OBJECT,U.bind(void 0)],[t.CHIP,G.bind(void 0)],[t.FILE_UPLOAD,J.bind(void 0)]]).get(i);return r?r(a,c,l,e):null},G=(e,n,o,a)=>{var c;return(null===(c=a.data)||void 0===c?void 0:c.data)?Object.assign({},a.data):i(a.value,a.decode)},U=(e,n,o,a)=>Object.assign(Object.assign({},a.data),{data:{initialValue:o||"",label:n||"",value:o||""}}),Y=(e,n,o,a)=>Object.assign(Object.assign({},a.data),{checked:"on"===o||"1"===o,label:n}),W=(e,n,o,a)=>({data:[Object.assign(Object.assign({},a.data),{icon:a.icon,placeholderIcon:a.placeholderIcon,value:o})]}),P=(e,n,o,a)=>{var c;return Object.assign(Object.assign(Object.assign({},a.data),{label:n}),(null===(c=a.data)||void 0===c?void 0:c.maxLength)&&{textArea:a.data.maxLength>=256})},Z=(e,n,o,a)=>{var c,t,l;const i=r(o,e);return Object.assign(Object.assign(Object.assign({},a.data),i),{data:Array.from(new Map([...null!==(t=null===(c=a.data)||void 0===c?void 0:c.data)&&void 0!==t?t:[],...null!==(l=i.data)&&void 0!==l?l:[]].map((e=>[e.value,e]))).values())})},q=(e,n,o,a)=>{if(e){const c=s(o,n,[],a.data);return c.data["kup-list"].data=Q(e,o),a.data?Object.assign(Object.assign({},c),a.data):c}},J=(e,n,o,a)=>Object.assign(Object.assign({},a.data),{pathString:o}),Q=(e,n)=>{const o=ae.get(e.type);return o?o(e,n):e.map((e=>({value:e.label,id:e.id,selected:n===e.id})))},ee=(e,n)=>e.children.map((e=>{var o;return{id:e.content.codice,value:e.content.testo,selected:n===e.content.codice,children:(null===(o=e.children)||void 0===o?void 0:o.length)?ee(e,n):[]}})),ne=(e,n)=>e.children.map((e=>{var o;return{id:e.obj.k,value:e.value,selected:n===e.obj.k,children:(null===(o=e.children)||void 0===o?void 0:o.length)?ne(e,n):[]}})),oe=(e,n)=>e.rows.map((e=>{var o;const a=e.fields||e.cells,[c,t]=Object.keys(a);return{id:a[c].value,value:(null===(o=a[t])||void 0===o?void 0:o.value)||a[c].value,selected:n===a[c].value}})),ae=new Map([["SmeupTreeNode",ee.bind(void 0)],["SmeupDataTree",ne.bind(void 0)],["SmeupTable",oe.bind(void 0)],["SmeupDataTable",oe.bind(void 0)]]);function ce(e,n,o,a){var c,l,i,r,s,u,d,b;const k=n.cell,v=n.column,f=n.component,m=n.row;if(a===h.UPDATE){let n=function(e,n){var o;const a=!("INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName);let c=a?e.target.value:e.detail.value;return n===t.CHECKBOX&&a&&(c=e.target.checked?"off":"on"),n===t.DATE&&a&&(c=null===(o=e.detail)||void 0===o?void 0:o.value),n===t.NUMBER&&a&&(c=T.ketchup.math.formattedStringToNumberString(c,"")),c}(e,o);switch(g(k)?n=null==n?void 0:n.toUpperCase():j(k)&&(n=null==n?void 0:n.toLowerCase()),o){case t.AUTOCOMPLETE:k.decode=null===(l=null===(c=e.detail)||void 0===c?void 0:c.node)||void 0===l?void 0:l.value,k.data&&(k.data.initialValue=n,k.data.initialValueDecode=null===(r=null===(i=e.detail)||void 0===i?void 0:i.node)||void 0===r?void 0:r.value);break;case t.COMBOBOX:k.decode=null===(u=null===(s=e.detail)||void 0===s?void 0:s.node)||void 0===u?void 0:u.value;case t.DATE:case t.TIME:k.data&&(k.data.initialValue=n);break;case t.CHECKBOX:case t.SWITCH:n="on"===n.toLowerCase()?"0":"1",k.data&&(k.data.checked="0"!==n);break;case t.RADIO:if(k.data.data){const e=k.data.data.find((e=>e.checked));e&&(n=e.value)}break;case t.CHIP:case t.MULTI_AUTOCOMPLETE:case t.MULTI_COMBOBOX:n=e.detail.stringifiedValues,k.data&&(k.data.data=e.detail.comp.data);break;case t.IMAGE_LIST:const o=e.detail.details.cell.obj;n=(null==o?void 0:o.k)?o.k:e.detail.details.cell.value}k.obj&&(k.obj.k=null==n?void 0:n.toString()),k.value=null==n?void 0:n.toString(),k.displayedValue=null,k.displayedValue=p(v,k)}if(f&&f.rootElement){const n=new CustomEvent(a,{bubbles:!0,cancelable:!0,composed:!0,detail:{comp:f,id:f.rootElement.id,cell:k,column:v,event:e,row:m,type:o,inputValue:(null===(b=null===(d=k.element)||void 0===d?void 0:d.querySelector("input"))||void 0===b?void 0:b.value)||null}});if(f.rootElement.dispatchEvent(n),a===h.UPDATE)try{f.refresh()}catch(e){T.ketchup.debug.logMessage(f,e,O.ERROR)}}}function te(e){var n;return f.includes(null===(n=e.component)||void 0===n?void 0:n.rootElement.tagName)}function le(e){var n;return k.includes(null===(n=e.component)||void 0===n?void 0:n.rootElement.tagName)}export{V as F,D as a,E as b,A as c,B as d,M as e}