@sme.up/ketchup 8.3.1 → 8.3.3

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 (238) hide show
  1. package/dist/cjs/{f-button-d073c79d.js → f-button-7687085a.js} +3 -3
  2. package/dist/cjs/{f-cell-b7ddd6b3.js → f-cell-37ef6f00.js} +7 -7
  3. package/dist/cjs/{f-checkbox-aa34efd5.js → f-checkbox-758d1d34.js} +1 -1
  4. package/dist/cjs/{f-chip-e51596be.js → f-chip-cf59bdb3.js} +3 -3
  5. package/dist/cjs/{f-image-fb2721a7.js → f-image-1245b0cf.js} +2 -2
  6. package/dist/cjs/{f-paginator-utils-5bce6819.js → f-paginator-utils-b1af2a8f.js} +4 -4
  7. package/dist/cjs/{f-text-field-acb225f3.js → f-text-field-9c745112.js} +2 -2
  8. package/dist/cjs/{f-text-field-mdc-d38d80b5.js → f-text-field-mdc-b1fa6fd6.js} +1 -1
  9. package/dist/cjs/{index-dd9f2b9b.js → index-eac07680.js} +4 -8
  10. package/dist/cjs/ketchup.cjs.js +3 -6
  11. package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
  12. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +15 -15
  13. package/dist/cjs/kup-box.cjs.entry.js +13 -13
  14. package/dist/cjs/kup-calendar.cjs.entry.js +15 -9
  15. package/dist/cjs/kup-cell.cjs.entry.js +8 -8
  16. package/dist/cjs/kup-dash-list.cjs.entry.js +2 -2
  17. package/dist/cjs/kup-dash_2.cjs.entry.js +3 -3
  18. package/dist/cjs/kup-dashboard.cjs.entry.js +10 -10
  19. package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
  20. package/dist/cjs/kup-echart.cjs.entry.js +27 -15
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +6 -6
  22. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  23. package/dist/cjs/kup-image-list.cjs.entry.js +11 -11
  24. package/dist/cjs/kup-lazy.cjs.entry.js +3 -3
  25. package/dist/cjs/kup-magic-box.cjs.entry.js +5 -5
  26. package/dist/cjs/{kup-manager-39f99670.js → kup-manager-38caaef3.js} +1 -1
  27. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  28. package/dist/cjs/kup-numeric-picker.cjs.entry.js +6 -6
  29. package/dist/cjs/kup-photo-frame.cjs.entry.js +3 -3
  30. package/dist/cjs/kup-planner.cjs.entry.js +26 -18
  31. package/dist/cjs/kup-probe.cjs.entry.js +3 -3
  32. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  33. package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
  34. package/dist/cjs/loader.cjs.js +3 -12
  35. package/dist/collection/assets/echart.js +168 -90
  36. package/dist/collection/assets/planner.js +0 -2
  37. package/dist/collection/collection-manifest.json +50 -50
  38. package/dist/collection/components/kup-accordion/kup-accordion.js +28 -18
  39. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +47 -29
  40. package/dist/collection/components/kup-badge/kup-badge.js +21 -14
  41. package/dist/collection/components/kup-box/kup-box.js +62 -41
  42. package/dist/collection/components/kup-button/kup-button.js +26 -17
  43. package/dist/collection/components/kup-button-list/kup-button-list.e2e.js +1 -1
  44. package/dist/collection/components/kup-button-list/kup-button-list.js +24 -16
  45. package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +2 -1
  46. package/dist/collection/components/kup-calendar/kup-calendar.css +13 -0
  47. package/dist/collection/components/kup-calendar/kup-calendar.js +73 -35
  48. package/dist/collection/components/kup-card/box/kup-card-box.js +3 -3
  49. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +7 -7
  50. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +6 -6
  51. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +5 -5
  52. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +4 -4
  53. package/dist/collection/components/kup-card/built-in/kup-card-message-box.js +4 -4
  54. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +2 -2
  55. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +5 -5
  56. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +5 -5
  57. package/dist/collection/components/kup-card/free/kup-card-free.js +2 -2
  58. package/dist/collection/components/kup-card/kup-card-helper.js +5 -5
  59. package/dist/collection/components/kup-card/kup-card.js +42 -30
  60. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +4 -4
  61. package/dist/collection/components/kup-card/standard/kup-card-standard.js +9 -9
  62. package/dist/collection/components/kup-cell/kup-cell.js +27 -18
  63. package/dist/collection/components/kup-chart/kup-chart-builder.js +5 -5
  64. package/dist/collection/components/kup-chart/kup-chart.js +47 -28
  65. package/dist/collection/components/kup-checkbox/kup-checkbox.js +22 -14
  66. package/dist/collection/components/kup-chip/kup-chip.js +32 -20
  67. package/dist/collection/components/kup-color-picker/kup-color-picker.js +30 -20
  68. package/dist/collection/components/kup-combobox/kup-combobox.js +47 -29
  69. package/dist/collection/components/kup-dash/kup-dash.js +2 -2
  70. package/dist/collection/components/kup-dash-list/kup-dash-list.js +11 -7
  71. package/dist/collection/components/kup-dashboard/kup-dashboard.js +26 -19
  72. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +4 -4
  73. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  74. package/dist/collection/components/kup-data-table/kup-data-table.js +178 -106
  75. package/dist/collection/components/kup-date-picker/kup-date-picker.js +42 -26
  76. package/dist/collection/components/kup-dialog/kup-dialog.js +30 -18
  77. package/dist/collection/components/kup-drawer/kup-drawer.e2e.js +1 -1
  78. package/dist/collection/components/kup-drawer/kup-drawer.js +29 -17
  79. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +42 -26
  80. package/dist/collection/components/kup-echart/kup-echart.js +64 -37
  81. package/dist/collection/components/kup-family-tree/kup-family-tree.js +42 -26
  82. package/dist/collection/components/kup-form/kup-form.js +32 -21
  83. package/dist/collection/components/kup-gauge/kup-gauge.js +18 -13
  84. package/dist/collection/components/kup-grid/kup-grid.js +16 -11
  85. package/dist/collection/components/kup-iframe/kup-iframe.js +21 -13
  86. package/dist/collection/components/kup-image/canvas/kup-image-canvas-declarations.js +1 -1
  87. package/dist/collection/components/kup-image/canvas/kup-image-canvas-helper.js +1 -1
  88. package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +2 -2
  89. package/dist/collection/components/kup-image/kup-image.js +27 -18
  90. package/dist/collection/components/kup-image-list/kup-image-list.js +35 -24
  91. package/dist/collection/components/kup-lazy/kup-lazy.js +25 -15
  92. package/dist/collection/components/kup-list/kup-list-helper.js +1 -1
  93. package/dist/collection/components/kup-list/kup-list.js +45 -27
  94. package/dist/collection/components/kup-magic-box/kup-magic-box.js +23 -17
  95. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +23 -14
  96. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +40 -24
  97. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +23 -14
  98. package/dist/collection/components/kup-planner/kup-planner-helper.js +3 -3
  99. package/dist/collection/components/kup-planner/kup-planner.css +277 -277
  100. package/dist/collection/components/kup-planner/kup-planner.js +51 -33
  101. package/dist/collection/components/kup-probe/kup-probe.js +7 -5
  102. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +15 -10
  103. package/dist/collection/components/kup-qlik/kup-qlik.js +8 -5
  104. package/dist/collection/components/kup-radio/kup-radio.js +23 -14
  105. package/dist/collection/components/kup-rating/kup-rating.js +17 -11
  106. package/dist/collection/components/kup-snackbar/kup-snackbar.js +26 -16
  107. package/dist/collection/components/kup-spinner/kup-spinner.js +17 -11
  108. package/dist/collection/components/kup-state/mock-store.js +1 -1
  109. package/dist/collection/components/kup-switch/kup-switch.js +22 -14
  110. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +31 -20
  111. package/dist/collection/components/kup-text-field/kup-text-field.js +40 -24
  112. package/dist/collection/components/kup-time-picker/kup-time-picker.js +47 -29
  113. package/dist/collection/components/kup-tree/kup-tree.js +104 -63
  114. package/dist/collection/f-components/f-button/f-button.js +3 -3
  115. package/dist/collection/f-components/f-cell/f-cell-declarations.js +1 -1
  116. package/dist/collection/f-components/f-cell/f-cell.js +13 -13
  117. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -1
  118. package/dist/collection/f-components/f-chip/f-chip.js +5 -5
  119. package/dist/collection/f-components/f-image/f-image.js +3 -3
  120. package/dist/collection/f-components/f-paginator/f-paginator.js +5 -5
  121. package/dist/collection/f-components/f-switch/f-switch.js +1 -1
  122. package/dist/collection/f-components/f-text-field/f-text-field-mdc.js +2 -2
  123. package/dist/collection/f-components/f-text-field/f-text-field.js +2 -2
  124. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +4 -4
  125. package/dist/collection/managers/kup-data/kup-data-column-helper.js +3 -3
  126. package/dist/collection/managers/kup-data/kup-data.js +8 -8
  127. package/dist/collection/managers/kup-dates/kup-dates.js +11 -11
  128. package/dist/collection/managers/kup-debug/kup-debug.js +3 -3
  129. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +2 -2
  130. package/dist/collection/managers/kup-interact/kup-interact.js +2 -2
  131. package/dist/collection/managers/kup-language/kup-language.js +3 -3
  132. package/dist/collection/managers/kup-manager/kup-manager.js +20 -20
  133. package/dist/collection/managers/kup-math/kup-math-helper.js +1 -1
  134. package/dist/collection/managers/kup-math/kup-math.js +11 -11
  135. package/dist/collection/managers/kup-objects/kup-objects.js +1 -1
  136. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +1 -1
  137. package/dist/collection/managers/kup-search/kup-search.js +2 -2
  138. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -1
  139. package/dist/collection/managers/kup-theme/kup-theme.js +15 -15
  140. package/dist/collection/managers/kup-toolbar/kup-toolbar.js +1 -1
  141. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +1 -1
  142. package/dist/collection/utils/cell-utils.js +1 -1
  143. package/dist/collection/utils/filters/filters-column-menu.js +3 -3
  144. package/dist/collection/utils/filters/filters-rows.js +6 -6
  145. package/dist/collection/utils/filters/filters-tree-items.js +4 -4
  146. package/dist/collection/utils/filters/filters.js +3 -3
  147. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +12 -12
  148. package/dist/collection/utils/utils.js +1 -1
  149. package/dist/components/kup-autocomplete2.js +3 -3
  150. package/dist/components/kup-calendar.js +9 -2
  151. package/dist/components/kup-echart2.js +24 -12
  152. package/dist/components/kup-planner.js +20 -12
  153. package/dist/esm/{f-button-38ee97e6.js → f-button-e54ce8d5.js} +3 -3
  154. package/dist/esm/{f-cell-763793f8.js → f-cell-4149a05d.js} +7 -7
  155. package/dist/esm/{f-checkbox-11b32f83.js → f-checkbox-7b113dd8.js} +1 -1
  156. package/dist/esm/{f-chip-010179a2.js → f-chip-c3c86f7b.js} +3 -3
  157. package/dist/esm/{f-image-77ac3ca0.js → f-image-adceee49.js} +2 -2
  158. package/dist/esm/{f-paginator-utils-32b2c046.js → f-paginator-utils-e559dac8.js} +4 -4
  159. package/dist/esm/{f-text-field-8a683258.js → f-text-field-aa4497a8.js} +2 -2
  160. package/dist/esm/{f-text-field-mdc-a1b4a919.js → f-text-field-mdc-32a1ffd9.js} +1 -1
  161. package/dist/esm/{index-b45996ce.js → index-d413187a.js} +4 -8
  162. package/dist/esm/ketchup.js +4 -7
  163. package/dist/esm/kup-accordion.entry.js +5 -5
  164. package/dist/esm/kup-autocomplete_27.entry.js +15 -15
  165. package/dist/esm/kup-box.entry.js +13 -13
  166. package/dist/esm/kup-calendar.entry.js +15 -9
  167. package/dist/esm/kup-cell.entry.js +8 -8
  168. package/dist/esm/kup-dash-list.entry.js +2 -2
  169. package/dist/esm/kup-dash_2.entry.js +3 -3
  170. package/dist/esm/kup-dashboard.entry.js +10 -10
  171. package/dist/esm/kup-drawer.entry.js +3 -3
  172. package/dist/esm/kup-echart.entry.js +27 -15
  173. package/dist/esm/kup-family-tree.entry.js +6 -6
  174. package/dist/esm/kup-iframe.entry.js +2 -2
  175. package/dist/esm/kup-image-list.entry.js +11 -11
  176. package/dist/esm/kup-lazy.entry.js +3 -3
  177. package/dist/esm/kup-magic-box.entry.js +5 -5
  178. package/dist/esm/{kup-manager-e2f7edf1.js → kup-manager-a4153fb2.js} +1 -1
  179. package/dist/esm/kup-nav-bar.entry.js +3 -3
  180. package/dist/esm/kup-numeric-picker.entry.js +6 -6
  181. package/dist/esm/kup-photo-frame.entry.js +3 -3
  182. package/dist/esm/kup-planner.entry.js +26 -18
  183. package/dist/esm/kup-probe.entry.js +3 -3
  184. package/dist/esm/kup-qlik.entry.js +2 -2
  185. package/dist/esm/kup-snackbar.entry.js +6 -6
  186. package/dist/esm/loader.js +4 -13
  187. package/dist/ketchup/ketchup.esm.js +1 -1
  188. package/dist/ketchup/{p-9fe8bcf4.entry.js → p-0848391f.entry.js} +1 -1
  189. package/dist/ketchup/{p-5d7b542c.entry.js → p-23d54fb2.entry.js} +1 -1
  190. package/dist/ketchup/{p-e0e4e3e2.entry.js → p-25d45dc9.entry.js} +1 -1
  191. package/dist/ketchup/{p-eb42d212.entry.js → p-2739b7ac.entry.js} +1 -1
  192. package/dist/ketchup/{p-46ad61d1.entry.js → p-283ca113.entry.js} +1 -1
  193. package/dist/ketchup/{p-5b1ae769.js → p-2f0798d3.js} +1 -1
  194. package/dist/ketchup/{p-07e56ef4.entry.js → p-3081ed82.entry.js} +1 -1
  195. package/dist/ketchup/{p-f3c25aae.entry.js → p-384137d7.entry.js} +2 -2
  196. package/dist/ketchup/{p-3a64fbe0.entry.js → p-3972b97c.entry.js} +1 -1
  197. package/dist/ketchup/{p-dd183d2f.entry.js → p-3bbcae45.entry.js} +1 -1
  198. package/dist/ketchup/{p-bab43d3f.entry.js → p-3c44e838.entry.js} +1 -1
  199. package/dist/ketchup/{p-e96d0d28.entry.js → p-3d671241.entry.js} +1 -1
  200. package/dist/ketchup/{p-be933dfa.entry.js → p-44b5c573.entry.js} +1 -1
  201. package/dist/ketchup/{p-fe8c8e11.js → p-47752f3b.js} +1 -1
  202. package/dist/ketchup/{p-40312367.entry.js → p-5ce0e645.entry.js} +1 -1
  203. package/dist/ketchup/{p-d938d1cd.js → p-698442ed.js} +1 -1
  204. package/dist/ketchup/{p-fb03f2f5.js → p-6d9ffb32.js} +1 -1
  205. package/dist/ketchup/{p-90576709.js → p-7360a410.js} +1 -1
  206. package/dist/ketchup/{p-86a3a9ef.entry.js → p-b415fe84.entry.js} +1 -1
  207. package/dist/ketchup/{p-166356dc.entry.js → p-b623c774.entry.js} +1 -1
  208. package/dist/ketchup/p-b8fcbcc9.entry.js +1 -0
  209. package/dist/ketchup/{p-3fe1eada.entry.js → p-be864593.entry.js} +2 -2
  210. package/dist/ketchup/{p-4cb43c62.entry.js → p-c0878519.entry.js} +1 -1
  211. package/dist/ketchup/{p-f520b898.entry.js → p-c39ddeae.entry.js} +1 -1
  212. package/dist/ketchup/{p-79f78bdc.js → p-d680bdde.js} +1 -1
  213. package/dist/ketchup/p-d817be2a.js +1 -0
  214. package/dist/ketchup/{p-2751c4ba.js → p-e76b646c.js} +1 -1
  215. package/dist/ketchup/{p-6814b44c.entry.js → p-e917200c.entry.js} +2 -2
  216. package/dist/ketchup/{p-7c9ca424.entry.js → p-eec864dd.entry.js} +1 -1
  217. package/dist/ketchup/{p-d942bfd3.entry.js → p-f3c8c1da.entry.js} +1 -1
  218. package/dist/ketchup/p-f79d544a.js +1 -0
  219. package/dist/ketchup/{p-3da7e4c6.js → p-fd75d5bf.js} +1 -1
  220. package/dist/loader/index.d.ts +1 -1
  221. package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +2 -1
  222. package/dist/types/components/kup-calendar/kup-calendar.d.ts +5 -0
  223. package/dist/types/components.d.ts +10 -0
  224. package/dist/types/stencil-public-runtime.d.ts +1 -1
  225. package/package.json +5 -5
  226. package/dist/esm/polyfills/css-shim.js +0 -1
  227. package/dist/ketchup/p-0e961148.js +0 -1
  228. package/dist/ketchup/p-2866e08c.entry.js +0 -1
  229. package/dist/ketchup/p-5443df89.js +0 -1
  230. /package/dist/cjs/{GenericVariables-9cd88034.js → GenericVariables-1d52ba57.js} +0 -0
  231. /package/dist/cjs/{component-2c7ddef7.js → component-24811409.js} +0 -0
  232. /package/dist/cjs/{f-button-declarations-76b4fb4c.js → f-button-declarations-3fd791a8.js} +0 -0
  233. /package/dist/esm/{GenericVariables-6dfdd433.js → GenericVariables-d8d0541e.js} +0 -0
  234. /package/dist/esm/{component-e86c51ea.js → component-cc25b031.js} +0 -0
  235. /package/dist/esm/{f-button-declarations-fd4965d1.js → f-button-declarations-8a009df1.js} +0 -0
  236. /package/dist/ketchup/{p-6507e9eb.js → p-124f3f42.js} +0 -0
  237. /package/dist/ketchup/{p-ad2e21d2.js → p-635bb4b3.js} +0 -0
  238. /package/dist/ketchup/{p-0fd98ab4.js → p-b00f3575.js} +0 -0
@@ -8,7 +8,7 @@ export interface CustomElementsDefineOptions {
8
8
  ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
9
9
  rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
10
10
  }
11
- export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
11
+ export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
12
12
  export declare function applyPolyfills(): Promise<void>;
13
13
 
14
14
  /**
@@ -7,7 +7,8 @@ import { KupEventPayload } from '../../types/GenericTypes';
7
7
  export declare enum KupCalendarProps {
8
8
  currentDate = "Sets the date of the calendar. Must be in ISO format (YYYY-MM-DD).",
9
9
  customStyle = "Custom style of the component.",
10
- data = " Actual data of the calendar.",
10
+ data = "Actual data of the calendar.",
11
+ editableEvents = "When true, events are editable.",
11
12
  hideNavigation = "When disabled, the navigation toolbar won't be displayed.",
12
13
  viewType = "Type of the view."
13
14
  }
@@ -27,6 +27,11 @@ export declare class KupCalendar {
27
27
  * @default false
28
28
  */
29
29
  hideNavigation: boolean;
30
+ /**
31
+ * When true, events are editable.
32
+ * @default true
33
+ */
34
+ editableEvents: boolean;
30
35
  /**
31
36
  * Type of the view.
32
37
  * @default KupCalendarViewTypes.MONTH
@@ -549,6 +549,11 @@ export namespace Components {
549
549
  * @default null
550
550
  */
551
551
  "data": KupCalendarData;
552
+ /**
553
+ * When true, events are editable.
554
+ * @default true
555
+ */
556
+ "editableEvents": boolean;
552
557
  /**
553
558
  * Used to retrieve component's props values.
554
559
  * @param descriptions - When provided and true, the result will be the list of props with their description.
@@ -4366,6 +4371,11 @@ declare namespace LocalJSX {
4366
4371
  * @default null
4367
4372
  */
4368
4373
  "data"?: KupCalendarData;
4374
+ /**
4375
+ * When true, events are editable.
4376
+ * @default true
4377
+ */
4378
+ "editableEvents"?: boolean;
4369
4379
  /**
4370
4380
  * When disabled, the navigation toolbar won't be displayed.
4371
4381
  * @default false
@@ -1289,7 +1289,7 @@ export declare namespace JSXBase {
1289
1289
  clipPathUnits?: number | string;
1290
1290
  'clip-rule'?: number | string;
1291
1291
  'color-interpolation'?: number | string;
1292
- 'color-interpolation-filters'?: 'auto' | 's-rGB' | 'linear-rGB' | 'inherit';
1292
+ 'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB';
1293
1293
  'color-profile'?: number | string;
1294
1294
  'color-rendering'?: number | string;
1295
1295
  contentScriptType?: number | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sme.up/ketchup",
3
- "version": "8.3.1",
3
+ "version": "8.3.3",
4
4
  "keywords": [
5
5
  "smeup",
6
6
  "KetchUP",
@@ -48,7 +48,7 @@
48
48
  "@material/form-field": "^14.0.0",
49
49
  "@material/ripple": "^14.0.0",
50
50
  "@material/textfield": "^14.0.0",
51
- "@sme.up/gantt-component": "^1.3.28",
51
+ "@sme.up/gantt-component": "^1.3.30",
52
52
  "d3-shape": "^3.2.0",
53
53
  "dayjs": "^1.11.7",
54
54
  "echarts": "^5.4.2",
@@ -62,9 +62,9 @@
62
62
  "vanilla-picker": "^2.12.1"
63
63
  },
64
64
  "devDependencies": {
65
- "@stencil/core": "^3.3.0",
66
- "@stencil/sass": "^3.0.3",
67
- "@stencil/react-output-target": "0.5.0",
65
+ "@stencil/core": "^4.0.2",
66
+ "@stencil/sass": "^3.0.5",
67
+ "@stencil/react-output-target": "0.5.3",
68
68
  "jest": "^27.4.5",
69
69
  "jest-cli": "^27.4.5",
70
70
  "jest-html-reporter": "^3.7.1",
@@ -1 +0,0 @@
1
- var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},__assign.apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
@@ -1 +0,0 @@
1
- import{h as t,a as e}from"./p-3da7e4c6.js";import{b as s}from"./p-2751c4ba.js";var a;!function(t){t.BAR="bar"}(a||(a={}));const i=i=>{let n,o;i.resource?i.resource.indexOf(".")>-1||i.resource.indexOf("/")>-1||i.resource.indexOf("\\")>-1?(o={"--kup_image_height":i.sizeY?i.sizeY:"auto","--kup_image_width":i.sizeX?i.sizeX:"100%"},n=function(e){return t("img",{onLoad:e.onLoad,src:e.resource})}(i)):(o={"--kup_image_height":i.sizeY?i.sizeY:"100%","--kup_image_width":i.sizeX?i.sizeX:"100%"},n=function(a){const i={"f-image__icon":!0},n={background:a.color?a.color:`var(${s.ICON})`};if(a.resource.indexOf("--kup")>-1){let t=a.resource.replace("--","");i["kup-icon"]=!0,i[t]=!0}else{const t=e(`./assets/svg/${a.resource}.svg`);n.mask=`url('${t}') no-repeat center`,n.webkitMask=`url('${t}') no-repeat center`}return t("div",{class:i,style:n})}(i)):i.data&&(o={"--kup_image_height":i.sizeY?i.sizeY:"100%","--kup_image_width":i.sizeX?i.sizeX:"100%"},n=function(e){const s=[];let i=0;for(let n=0;n<e.length;n++){let o;e[n].shape||(e[n].shape=a.BAR),e[n].color||(e[n].color="transparent"),e[n].height||(e[n].height="100%"),e[n].width||(e[n].width="100%");const r="step-"+n,c="css-step bottom-aligned",l={backgroundColor:e[n].color,left:i+"%",height:e[n].height,width:e[n].width};i+=parseFloat(e[n].width),o=t("span",{id:r,class:c,style:l}),s.push(o)}return t("div",{class:"f-image__css"},s)}(i.data));const r=[];if(i.badgeData)for(let e=0;e<i.badgeData.length;e++)r.push(t("kup-badge",Object.assign({},i.badgeData[e])));return t("div",Object.assign({class:`f-image ${i.wrapperClass?i.wrapperClass:""} ${i.fit?"kup-fit":""}`},i.dataSet,{id:i.id,style:o,title:i.title,onClick:i.onClick}),n,...r)};export{i as F}
@@ -1 +0,0 @@
1
- import{r as t,c as i,f as s,h as e,H as o,g as h}from"./p-3da7e4c6.js";import{k as n,g as r,s as a,c}from"./p-2751c4ba.js";var d;!function(t){t.buttonData="Props of the button (when isButton is set to true).",t.isButton="The component will be rendered as a button, which opens the link associated to the iframe in another tab when clicked.",t.src="The address the iframe should be referencing to."}(d||(d={}));const p=class{constructor(s){t(this,s),this.kupIframeError=i(this,"kup-iframe-error",6),this.kupIframeLoad=i(this,"kup-iframe-load",6),this.kupManager=n(),this.buttonData={},this.isButton=!1,this.src=void 0}onKupIframeError(){this.kupIframeError.emit({comp:this,id:this.rootElement.id})}onKupIframeLoad(){this.kupIframeLoad.emit({comp:this,id:this.rootElement.id})}async getProps(t){return r(this,d,t)}async refresh(){s(this)}async setProps(t){a(this,d,t)}openInNew(){window.open(this.src,"_blank")}componentWillLoad(){this.kupManager.debug.logLoad(this,!1)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){if(null!=this.src&&""!==this.src)return this.buttonData.icon||(this.buttonData.icon="open_in_new"),this.buttonData.label||(this.buttonData.label="Open in new tab"),this.isButton?e(o,{"is-button":!0},e("kup-button",Object.assign({},this.buttonData,{"onkup-button-click":()=>this.openInNew()}))):e(o,{"is-iframe":!0},e("iframe",{onError:this.onKupIframeError.bind(this),onLoad:this.onKupIframeLoad.bind(this),src:this.src}));this.kupManager.debug.logMessage(this,"Resource undefined, not rendering!",c.WARNING)}get rootElement(){return h(this)}};p.style="iframe{box-sizing:border-box;height:100%;width:100%}:host([is-iframe]){box-sizing:border-box;display:block;height:100%;width:100%}";export{p as kup_iframe}
@@ -1 +0,0 @@
1
- import{a9 as e,aa as t,b as c,a6 as s,ab as a,ac as n,ad as i,ae as o,af as l,ag as u}from"./p-2751c4ba.js";import{h as r}from"./p-3da7e4c6.js";import{F as p}from"./p-90576709.js";import{F as d}from"./p-79f78bdc.js";import{F as k}from"./p-0e961148.js";import{F as b,a as h}from"./p-d938d1cd.js";var f,m,w;!function(e){e.customStyle="Custom style of the component.",e.data="The data of the list.",e.displayMode="Selects how the items must display their label and how they can be filtered for.",e.filter="Keeps string for filtering elements when filter mode is active",e.hideText="Hides rows' text, ideally to display a list of icons only.",e.isMenu="Defines whether the list is a menu or not.",e.keyboardNavigation="When true, enables items' navigation through arrow keys.",e.menuVisible="Sets the status of the menu, when false it's hidden otherwise it's visible.",e.roleType="Defines the type of selection. Values accepted: listbox, radiogroup or group.",e.selectable="Defines whether items are selectable or not.",e.showIcons="Displays the icons associated to each row when set to true.",e.twoLine="The list elements descriptions will be arranged in two lines."}(f||(f={})),function(e){e.LISTBOX="listbox",e.RADIOGROUP="radiogroup",e.GROUP="group"}(m||(m={})),function(e){e.CODE="code",e.DESCRIPTION="description",e.DESCRIPTION_AND_CODE="both"}(w||(w={}));const y=e=>r("div",Object.assign({class:`f-switch ${e.danger?"kup-danger":""} ${e.info?"kup-info":""} ${e.secondary?"kup-secondary":""} ${e.success?"kup-success":""} ${e.warning?"kup-warning":""} ${e.wrapperClass?e.wrapperClass:""}`},e.dataSet,{id:e.id,title:e.title}),r("div",{class:"form-field "+(e.leadingLabel?"form-field--align-end":"")},r("div",{class:`switch ${e.checked?"switch--checked":""} ${e.disabled?"switch--disabled":""}`},r("div",{class:"switch__track"}),r("div",{class:"switch__thumb-underlay"},r("div",{class:"switch__thumb"},r("input",{type:"checkbox",class:"switch__native-control",role:"switch",checked:e.checked,disabled:e.disabled,value:e.checked?"on":"off",onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus})))),r("label",{onClick:e.onChange},e.label))),g=document.documentElement,j=(n,o)=>{const f=n.cell,m=n.column,j=n.row,_=n.shape?n.shape:f.shape?f.shape:m.shape?m.shape:null,C=!g.ketchup.objects.isEmptyKupObj(f.obj),I=!(!f.isEditable&&!m.isEditable||!n.editable),$=n.previousValue!==f.value?f.value:"",z=g.ketchup.data.cell.getType(f,_),D=Object.assign({},f.data);let F=f.cssClass?f.cssClass:m.cssClass?m.cssClass:"";const K={"f-cell":!0,[i.OBJ]:!!C,[z+"-cell"]:!0,[n.wrapperClass]:!!n.wrapperClass,[n.density]:!(!n.density||z===s.BAR),[F]:!!F};let V=$;I&&e.includes(z)?V=function(e,t,c,a,n){switch(e){case s.AUTOCOMPLETE:return r("kup-autocomplete",Object.assign({key:a.name+n.row.id,initialValue:c.value},c.data,{class:x(n)?"kup-full-width":"","onkup-autocomplete-change":t=>v(t,n,e,u.UPDATE),"onkup-autocomplete-input":t=>v(t,n,e,u.INPUT),"onkup-autocomplete-iconclick":t=>v(t,n,e,u.ICON_CLICK)}));case s.CHECKBOX:return O(n)&&(t[i.C_CENTERED]=!0),r(p,Object.assign({},c.data,{onChange:t=>v(t,n,e,u.UPDATE)}));case s.CHIP:return r("kup-chip",Object.assign({},c.data,{type:b.INPUT,enableInput:!0,"onKup-chip-change":t=>v(t,n,e,u.UPDATE)}),r("kup-text-field",Object.assign({fullWidth:!0,slot:"field"},c.slotData)));case s.COLOR_PICKER:return r("kup-color-picker",Object.assign({key:a.name+n.row.id,initialValue:c.value},c.data,{class:x(n)?"kup-full-width":"",disabled:!1,"onkup-colorpicker-change":t=>v(t,n,e,u.UPDATE)}));case s.COMBOBOX:return r("kup-combobox",Object.assign({key:a.name+n.row.id,initialValue:c.value},c.data,{class:x(n)?"kup-full-width":"","onkup-combobox-change":t=>v(t,n,e,u.UPDATE),"onkup-combobox-input":t=>v(t,n,e,u.INPUT),"onkup-combobox-iconclick":t=>v(t,n,e,u.ICON_CLICK)}));case s.DATE:return r("kup-date-picker",Object.assign({key:a.name+n.row.id,initialValue:c.value},c.data,{class:x(n)?"kup-full-width":"","onkup-datepicker-change":t=>v(t,n,e,u.UPDATE),"onkup-datepicker-input":t=>v(t,n,e,u.INPUT)}));case s.MULTI_AUTOCOMPLETE:return r("kup-chip",Object.assign({displayId:!0},c.data,{type:b.INPUT,enableInput:!0,"onKup-chip-change":t=>v(t,n,e,u.UPDATE)}),r("kup-autocomplete",Object.assign({class:"kup-full-width",slot:"field",displayMode:w.DESCRIPTION_AND_CODE,selectMode:w.DESCRIPTION_AND_CODE,"onkup-autocomplete-input":t=>v(t,n,e,u.INPUT),"onkup-autocomplete-iconclick":t=>v(t,n,e,u.ICON_CLICK),showDropDownIcon:!1},c.slotData)));case s.MULTI_COMBOBOX:return r("kup-chip",Object.assign({displayId:!0},c.data,{type:b.INPUT,enableInput:!0,"onKup-chip-change":t=>v(t,n,e,u.UPDATE)}),r("kup-combobox",Object.assign({class:"kup-full-width",slot:"field",displayMode:w.DESCRIPTION_AND_CODE,selectMode:w.DESCRIPTION_AND_CODE,"onkup-combobox-input":t=>v(t,n,e,u.INPUT),"onkup-combobox-iconclick":t=>v(t,n,e,u.ICON_CLICK)},c.slotData)));case s.RATING:return r("kup-rating",Object.assign({key:a.name+n.row.id},c.data,{disabled:!1,"onkup-rating-click":t=>v(t,n,e,u.UPDATE)}));case s.SWITCH:return r(y,Object.assign({},c.data,{disabled:!1,onChange:t=>v(t,n,e,u.UPDATE)}));case s.TIME:return r("kup-time-picker",Object.assign({key:a.name+n.row.id,initialValue:c.value},c.data,{class:x(n)?"kup-full-width":"","onkup-timepicker-change":t=>v(t,n,e,u.UPDATE),"onkup-timepicker-input":t=>v(t,n,e,u.INPUT)}));case s.NUMBER:t[i.C_RIGHT_ALIGNED]=!0;case s.LINK:case s.STRING:return r(d,Object.assign({inputType:e===s.NUMBER?"number":null,fullWidth:!!x(n)},c.data,{icon:c.data&&c.data.icon?c.data.icon:c.icon?c.icon:a.icon?a.icon:null,value:e===s.NUMBER&&c.value?g.ketchup.math.numberifySafe(c.value).toString():c.value,onChange:t=>v(t,n,e,u.UPDATE),onInput:t=>v(t,n,e,u.INPUT),onIconClick:t=>v(t,n,e,u.ICON_CLICK)}))}}(z,K,f,m,n):f.data&&t.includes(z)?(n.setSizes&&function(e,t,c){switch(e){case s.BAR:t.sizeY||(t.sizeY="26px");break;case s.BUTTON:let e="";t.label&&(e="36px"),c.style?c.style.height||(c.style.minHeight=e):c.style={minHeight:e};break;case s.CHART:t.sizeX||(t.sizeX="100%"),t.sizeY||(t.sizeY="100%");break;case s.CHIP:case s.RADIO:c.style?c.style.height||(c.style.minHeight="40px"):c.style={minHeight:"40px"}}}(z,D,f),V=n.renderKup?function(e,t,c,a,n,o,l){switch(e){case s.BAR:return c.data?r("div",{style:{height:c.sizeY,width:"100%"}},r(k,Object.assign({},c))):r("kup-image",Object.assign({key:o.name+l.row.id},c));case s.BUTTON:return O(l)&&(t[i.C_CENTERED]=!0),r("kup-button",Object.assign({key:o.name+l.row.id},c,{"onkup-button-click":t=>v(t,l,e,u.CLICK)}));case s.BUTTON_LIST:return O(l)&&(t[i.C_CENTERED]=!0),c["data-storage"]={cell:a,row:n,column:o},r("kup-button-list",Object.assign({key:o.name+l.row.id},c));case s.CHART:return O(l)&&(t[i.C_CENTERED]=!0),r("kup-chart",Object.assign({key:o.name+l.row.id},c));case s.MULTI_AUTOCOMPLETE:case s.MULTI_COMBOBOX:case s.CHIP:return r(h,Object.assign({},c));case s.COLOR_PICKER:return r("kup-color-picker",Object.assign({key:o.name+l.row.id},c,{class:x(l)?"kup-full-width":"",disabled:!0}));case s.GAUGE:return r("kup-gauge",Object.assign({key:o.name+l.row.id,value:g.ketchup.math.numberifySafe(a.value),"width-component":"280px"},c));case s.KNOB:case s.PROGRESS_BAR:return r("kup-progress-bar",Object.assign({key:o.name+l.row.id},c));case s.RADIO:return O(l)&&(t[i.C_CENTERED]=!0),c.disabled=n.readOnly,r("kup-radio",Object.assign({key:o.name+l.row.id},c));case s.RATING:return r("kup-rating",Object.assign({key:o.name+l.row.id},c,{disabled:!0}))}}(z,K,D,f,j,m,n):r("span",{class:"cell-"+z+" placeholder"})):(n.setSizes&&function(e,t,c,n){switch(e){case s.CHECKBOX:case s.ICON:t.sizeX||(t.sizeX="18px"),t.sizeY||(t.sizeY="18px"),c.style?c.style.height||(c.style.minHeight=t.sizeY):c.style={minHeight:t.sizeY};break;case s.IMAGE:n.component.rootElement.tagName===a.BOX?(t.sizeY||(t.sizeY="auto"),void 0===t.fit&&(t.fit=!0)):t.sizeX||(t.sizeX="auto"),t.sizeY||(t.sizeY="64px")}}(z,D,f,n),V=function(e,t,c,a,n,o,u){switch(e){case s.AUTOCOMPLETE:case s.COMBOBOX:case s.DATE:case s.DATETIME:case s.TIME:if(c&&""!=c){const e=l(o,n);return r("div",{class:"f-cell__text"},e)}return c;case s.CHECKBOX:return O(u)&&(a[i.C_CENTERED]=!0),r(k,{resource:t.checked?"check_box":"check_box_outline_blank",sizeX:"18px",sizeY:"18px"});case s.EDITOR:return r("div",{innerHTML:n.value});case s.ICON:case s.IMAGE:return O(u)&&(a[i.C_CENTERED]=!0),t.badgeData&&(a[i.C_PADDED]=!0),r(k,Object.assign({},t));case s.LINK:return r("a",{href:c,target:"_blank"},n.value);case s.NUMBER:if(c&&""!=c){const e=g.ketchup.math.numberifySafe(n.value),t=l(o,n);return e<0&&(a[i.TEXT_DANGER]=!0),O(u)&&(a[i.C_RIGHT_ALIGNED]=!0),r("div",{class:"f-cell__text"},t)}return r("div",{class:"f-cell__text"},c);case s.SWITCH:return O(u)&&(a[i.C_CENTERED]=!0),t.disabled=!0,r(y,Object.assign({},t));default:return r("div",{class:"f-cell__text"},c)}}(z,D,V,K,f,m,n));let H=null;!I&&(m.icon||f.icon)&&V&&(H=r(k,Object.assign({},{color:`rgba(var(${c.TEXT}-rgb), 0.375)`,resource:f.icon?f.icon:m.icon,sizeX:"1.25em",sizeY:"1.25em",wrapperClass:"obj-icon"})));let M=null;g.ketchup.debug.isDebug()&&C?M=f.obj.t+"; "+f.obj.p+"; "+f.obj.k+";":null!=f.title&&""!=f.title.trim()&&(M=f.title);let T=null;if(f.info){const e=Object.assign({},f.info);e.color||(e.color=`var(${c.INFO})`),e.icon||(e.icon="info"),T=r(k,Object.assign({},{color:e.color,resource:e.icon,sizeX:"1.25em",sizeY:"1.25em",title:e.message?e.message:"",wrapperClass:"cell-info"}))}return r("div",{onKeyUp:e=>v(e,n,z,u.KEYUP),class:K,"kup-get-cell-props":()=>n,ref:e=>f.element=e,style:f.style},r("div",{class:"f-cell__content",style:f.styleContent,title:M},o&&o.length>0?o:[n.indents,T,H,V]))};function v(e,t,c,a){const n=t.cell,i=t.column,o=t.component,r=t.row;let p=function(e,t){const c=!("INPUT"!==e.target.tagName);let a=c?e.target.value:e.detail.value;return t===s.NUMBER&&c&&(a=g.ketchup.math.formattedStringToNumberString(a,"")),a}(e,c);if(a===u.UPDATE){switch(c){case s.AUTOCOMPLETE:case s.COMBOBOX:case s.DATE:case s.TIME:n.data&&(n.data.initialValue=p);break;case s.CHECKBOX:case s.SWITCH:p="on"===p?"0":"1",n.data&&(n.data.checked="0"!==p);break;case s.CHIP:case s.MULTI_AUTOCOMPLETE:case s.MULTI_COMBOBOX:p=e.detail.stringifiedValues,n.data&&(n.data.data=e.detail.comp.data)}n.obj&&(n.obj.k=p.toString()),n.value=p.toString(),n.displayedValue=null,n.displayedValue=l(i,n)}if(o&&o.rootElement){const t=new CustomEvent(a,{bubbles:!0,cancelable:!0,composed:!0,detail:{comp:o,id:o.rootElement.id,cell:n,column:i,event:e,row:r,type:c}});if(o.rootElement.dispatchEvent(t),a===u.UPDATE)try{o.refresh()}catch(e){}}}function O(e){var t;return o.includes(null===(t=e.component)||void 0===t?void 0:t.rootElement.tagName)}function x(e){var t;return n.includes(null===(t=e.component)||void 0===t?void 0:t.rootElement.tagName)}export{j as F,w as I,m as K,f as a,y as b}
File without changes
File without changes
File without changes