@sme.up/ketchup 6.0.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/dist/cjs/{cell-utils-a78d6fac.js → cell-utils-fe64a28c.js} +2 -2
  2. package/dist/cjs/{f-button-ac179257.js → f-button-5b69d882.js} +4 -4
  3. package/dist/cjs/f-cell-3a740c48.js +418 -0
  4. package/dist/cjs/f-checkbox-57443ca3.js +29 -0
  5. package/dist/cjs/{f-chip-b00897d7.js → f-chip-02e83f82.js} +3 -3
  6. package/dist/cjs/{f-image-89f25556.js → f-image-2a61ece2.js} +2 -2
  7. package/dist/cjs/{f-paginator-utils-8fa501b3.js → f-paginator-utils-09126bdd.js} +5 -5
  8. package/dist/cjs/{f-text-field-e1e45ade.js → f-text-field-9ee20a67.js} +3 -3
  9. package/dist/cjs/{index-eb556444.js → index-06b131ea.js} +6 -4
  10. package/dist/cjs/ketchup.cjs.js +3 -3
  11. package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
  12. package/dist/cjs/kup-autocomplete_25.cjs.entry.js +209 -193
  13. package/dist/cjs/kup-box.cjs.entry.js +1306 -0
  14. package/dist/cjs/kup-calendar.cjs.entry.js +7 -7
  15. package/dist/cjs/kup-cell.cjs.entry.js +10 -9
  16. package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
  17. package/dist/cjs/kup-dash_2.cjs.entry.js +4 -7
  18. package/dist/cjs/{kup-form-editor.cjs.entry.js → kup-dashboard.cjs.entry.js} +123 -148
  19. package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
  20. package/dist/cjs/{kup-box_2.cjs.entry.js → kup-echart.cjs.entry.js} +53 -1338
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +410 -0
  22. package/dist/cjs/kup-form.cjs.entry.js +480 -0
  23. package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
  24. package/dist/cjs/kup-image-list.cjs.entry.js +73 -11
  25. package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
  26. package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
  27. package/dist/cjs/{kup-manager-7a941909.js → kup-manager-02acbb37.js} +407 -7
  28. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  29. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  30. package/dist/cjs/kup-photo-frame.cjs.entry.js +5 -5
  31. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  33. package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
  34. package/dist/cjs/loader.cjs.js +3 -3
  35. package/dist/cjs/{utils-6287d878.js → utils-4b208b48.js} +1 -1
  36. package/dist/collection/assets/dashboard.js +113 -0
  37. package/dist/collection/assets/data-table.js +15 -0
  38. package/dist/collection/assets/family-tree.js +2437 -0
  39. package/dist/collection/assets/form.js +433 -0
  40. package/dist/collection/assets/grid.js +17 -0
  41. package/dist/collection/assets/index.js +14 -6
  42. package/dist/collection/collection-manifest.json +4 -3
  43. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +135 -129
  44. package/dist/collection/components/kup-box/kup-box.js +13 -2
  45. package/dist/collection/components/kup-button/kup-button.js +1 -0
  46. package/dist/collection/components/kup-combobox/kup-combobox.js +16 -13
  47. package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +10 -0
  48. package/dist/collection/components/{kup-form-editor/kup-form-editor.css → kup-dashboard/kup-dashboard.css} +7 -6
  49. package/dist/collection/components/{kup-form-editor/kup-form-editor.js → kup-dashboard/kup-dashboard.js} +148 -149
  50. package/dist/collection/components/kup-data-table/kup-data-table.js +7 -6
  51. package/dist/collection/components/kup-drawer/kup-drawer.css +5 -8
  52. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +1 -0
  53. package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +12 -0
  54. package/dist/collection/components/kup-family-tree/kup-family-tree.css +101 -0
  55. package/dist/collection/components/kup-family-tree/kup-family-tree.js +666 -0
  56. package/dist/collection/components/kup-form/kup-form-declarations.js +25 -0
  57. package/dist/collection/components/kup-form/kup-form.css +99 -0
  58. package/dist/collection/components/kup-form/kup-form.js +647 -0
  59. package/dist/collection/components/kup-grid/kup-grid.js +1 -4
  60. package/dist/collection/components/kup-image-list/kup-image-list-state.js +9 -0
  61. package/dist/collection/components/kup-image-list/kup-image-list.css +0 -6
  62. package/dist/collection/components/kup-image-list/kup-image-list.js +113 -1
  63. package/dist/collection/components/kup-lazy/kup-lazy.css +13 -6
  64. package/dist/collection/components/kup-list/kup-list-helper.js +9 -3
  65. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +13 -3
  66. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +1 -1
  67. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +3 -0
  68. package/dist/collection/components/kup-text-field/kup-text-field.js +27 -0
  69. package/dist/collection/components/kup-time-picker/kup-time-picker.js +0 -6
  70. package/dist/collection/components/kup-tree/kup-tree.js +10 -4
  71. package/dist/collection/f-components/f-button/f-button.js +2 -2
  72. package/dist/collection/f-components/f-cell/f-cell-declarations.js +5 -1
  73. package/dist/collection/f-components/f-cell/f-cell.js +34 -114
  74. package/dist/collection/f-components/f-text-field/f-text-field.js +1 -1
  75. package/dist/collection/managers/kup-data/kup-data-node-helper.js +69 -0
  76. package/dist/collection/managers/kup-data/kup-data.js +109 -1
  77. package/dist/collection/managers/kup-language/kup-language-declarations.js +11 -0
  78. package/dist/collection/managers/kup-objects/kup-objects.js +10 -0
  79. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +20 -3
  80. package/dist/collection/types/GenericTypes.js +3 -2
  81. package/dist/esm/{cell-utils-964da6b5.js → cell-utils-cb5d4149.js} +2 -2
  82. package/dist/esm/{f-button-871a544b.js → f-button-fd44ef70.js} +4 -4
  83. package/dist/esm/{f-cell-521ef17a.js → f-cell-7b159a22.js} +48 -283
  84. package/dist/esm/f-checkbox-c51c4a75.js +27 -0
  85. package/dist/esm/{f-chip-1dda722f.js → f-chip-c2e4c522.js} +3 -3
  86. package/dist/esm/{f-image-c468d8ae.js → f-image-2ab4b9aa.js} +2 -2
  87. package/dist/esm/{f-paginator-utils-7dff8ff0.js → f-paginator-utils-ef537d82.js} +5 -5
  88. package/dist/esm/{f-text-field-d6c61c73.js → f-text-field-41c575eb.js} +3 -3
  89. package/dist/esm/{index-baeab1ac.js → index-ad6ab214.js} +6 -4
  90. package/dist/esm/ketchup.js +3 -3
  91. package/dist/esm/kup-accordion.entry.js +4 -4
  92. package/dist/esm/kup-autocomplete_25.entry.js +199 -183
  93. package/dist/esm/kup-box.entry.js +1302 -0
  94. package/dist/esm/kup-calendar.entry.js +7 -7
  95. package/dist/esm/kup-cell.entry.js +9 -8
  96. package/dist/esm/kup-dash-list.entry.js +4 -4
  97. package/dist/esm/kup-dash_2.entry.js +4 -7
  98. package/dist/esm/{kup-form-editor.entry.js → kup-dashboard.entry.js} +123 -148
  99. package/dist/esm/kup-drawer.entry.js +4 -4
  100. package/dist/esm/{kup-box_2.entry.js → kup-echart.entry.js} +54 -1338
  101. package/dist/esm/kup-family-tree.entry.js +406 -0
  102. package/dist/esm/kup-form.entry.js +476 -0
  103. package/dist/esm/kup-iframe.entry.js +3 -3
  104. package/dist/esm/kup-image-list.entry.js +72 -10
  105. package/dist/esm/kup-lazy.entry.js +4 -4
  106. package/dist/esm/kup-magic-box.entry.js +4 -4
  107. package/dist/esm/{kup-manager-58b075b4.js → kup-manager-22a475e6.js} +404 -8
  108. package/dist/esm/kup-nav-bar.entry.js +3 -3
  109. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  110. package/dist/esm/kup-photo-frame.entry.js +5 -5
  111. package/dist/esm/kup-probe.entry.js +2 -2
  112. package/dist/esm/kup-qlik.entry.js +2 -2
  113. package/dist/esm/kup-snackbar.entry.js +5 -5
  114. package/dist/esm/loader.js +3 -3
  115. package/dist/esm/{utils-d7e4b3c2.js → utils-2c1f4122.js} +1 -1
  116. package/dist/ketchup/ketchup.esm.js +1 -1
  117. package/dist/ketchup/p-06c6cc68.js +1 -0
  118. package/dist/ketchup/{p-3c11e615.entry.js → p-0dacd4bc.entry.js} +1 -1
  119. package/dist/ketchup/{p-fac1a08b.entry.js → p-1959f835.entry.js} +1 -1
  120. package/dist/ketchup/p-1c44dc62.entry.js +1 -0
  121. package/dist/ketchup/{p-f09f2f98.entry.js → p-264b1b19.entry.js} +1 -1
  122. package/dist/ketchup/p-38d7584e.js +1 -0
  123. package/dist/ketchup/{p-f71a1675.entry.js → p-42080355.entry.js} +1 -1
  124. package/dist/ketchup/p-4bc9f98b.entry.js +1 -0
  125. package/dist/ketchup/p-578583db.entry.js +1 -0
  126. package/dist/ketchup/p-5866d507.entry.js +1 -0
  127. package/dist/ketchup/p-61059e9d.entry.js +9 -0
  128. package/dist/ketchup/{p-a615a92b.entry.js → p-664be494.entry.js} +1 -1
  129. package/dist/ketchup/{p-d2ee56dd.entry.js → p-67cd575d.entry.js} +1 -1
  130. package/dist/ketchup/{p-e0035c58.js → p-682a367a.js} +1 -1
  131. package/dist/ketchup/p-6ccf7eb2.entry.js +1 -0
  132. package/dist/ketchup/p-7230ab97.entry.js +1 -0
  133. package/dist/ketchup/p-752b4cef.entry.js +1 -0
  134. package/dist/ketchup/{p-954cc340.entry.js → p-7de3e7ac.entry.js} +1 -1
  135. package/dist/ketchup/p-928c5c36.js +1 -0
  136. package/dist/ketchup/{p-6dff70f8.entry.js → p-9b36497d.entry.js} +1 -1
  137. package/dist/ketchup/{p-99e0d768.entry.js → p-b982d137.entry.js} +1 -1
  138. package/dist/ketchup/{p-8cdf61a4.js → p-c0219e5e.js} +1 -1
  139. package/dist/ketchup/p-c55fd0a7.entry.js +1 -0
  140. package/dist/ketchup/p-cd5cfa7c.js +1 -0
  141. package/dist/ketchup/p-d154b3a0.entry.js +1 -0
  142. package/dist/ketchup/p-d2affb6f.entry.js +27 -0
  143. package/dist/ketchup/p-d3b542b3.js +2 -0
  144. package/dist/ketchup/{p-7454cb92.js → p-d6c12c6c.js} +1 -1
  145. package/dist/ketchup/p-da0eab60.entry.js +1 -0
  146. package/dist/ketchup/{p-7eff4eee.js → p-dc62a30f.js} +1 -1
  147. package/dist/ketchup/p-e9366aaf.entry.js +39 -0
  148. package/dist/ketchup/{p-44ec4f03.js → p-edae3076.js} +1 -1
  149. package/dist/ketchup/p-fc2b1229.js +30 -0
  150. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +1 -16
  151. package/dist/types/components/{kup-form-editor/kup-form-editor-declarations.d.ts → kup-dashboard/kup-dashboard-declarations.d.ts} +9 -27
  152. package/dist/types/components/{kup-form-editor/kup-form-editor.d.ts → kup-dashboard/kup-dashboard.d.ts} +12 -9
  153. package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +33 -0
  154. package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +61 -0
  155. package/dist/types/components/kup-form/kup-form-declarations.d.ts +60 -0
  156. package/dist/types/components/kup-form/kup-form.d.ts +63 -0
  157. package/dist/types/components/kup-image-list/kup-image-list-state.d.ts +6 -0
  158. package/dist/types/components/kup-image-list/kup-image-list.d.ts +17 -0
  159. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +3 -0
  160. package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
  161. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +0 -6
  162. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +2 -0
  163. package/dist/types/components.d.ts +460 -241
  164. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +4 -1
  165. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
  166. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +8 -0
  167. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +15 -1
  168. package/dist/types/managers/kup-data/kup-data.d.ts +7 -1
  169. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +11 -1
  170. package/dist/types/managers/kup-objects/kup-objects.d.ts +6 -0
  171. package/dist/types/types/GenericTypes.d.ts +3 -2
  172. package/package.json +2 -2
  173. package/dist/cjs/f-cell-69294bca.js +0 -653
  174. package/dist/cjs/kup-field.cjs.entry.js +0 -241
  175. package/dist/collection/assets/form-editor.js +0 -338
  176. package/dist/collection/components/kup-field/kup-field-declarations.js +0 -15
  177. package/dist/collection/components/kup-field/kup-field.css +0 -48
  178. package/dist/collection/components/kup-field/kup-field.js +0 -514
  179. package/dist/collection/components/kup-form-editor/kup-form-editor-declarations.js +0 -23
  180. package/dist/esm/kup-field.entry.js +0 -237
  181. package/dist/ketchup/p-1ae66cc5.js +0 -1
  182. package/dist/ketchup/p-34b74425.js +0 -1
  183. package/dist/ketchup/p-4ffbc3ff.js +0 -1
  184. package/dist/ketchup/p-5264a3e6.entry.js +0 -1
  185. package/dist/ketchup/p-65974e48.entry.js +0 -1
  186. package/dist/ketchup/p-65b46587.entry.js +0 -40
  187. package/dist/ketchup/p-80968627.entry.js +0 -1
  188. package/dist/ketchup/p-a0f6e25c.entry.js +0 -1
  189. package/dist/ketchup/p-aca0e54b.js +0 -30
  190. package/dist/ketchup/p-b8939a8b.entry.js +0 -1
  191. package/dist/ketchup/p-bfc3bac7.js +0 -1
  192. package/dist/ketchup/p-c5ce8951.entry.js +0 -1
  193. package/dist/ketchup/p-cad1e097.entry.js +0 -9
  194. package/dist/ketchup/p-db71436b.entry.js +0 -27
  195. package/dist/ketchup/p-e1039cf2.entry.js +0 -1
  196. package/dist/ketchup/p-ea10176c.entry.js +0 -1
  197. package/dist/types/components/kup-field/kup-field-declarations.d.ts +0 -25
  198. package/dist/types/components/kup-field/kup-field.d.ts +0 -90
@@ -1,1292 +1,8 @@
1
- import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement, a as getAssetPath } from './index-baeab1ac.js';
2
- import { k as kupManagerInstance, h as KupLanguageGeneric, a as KupThemeIconValues, c as KupDebugCategory, y as KupPointerEventTypes, B as KupDragEffect, C as kupDraggableCellAttr, D as KupDropEventTypes, v as KupLanguageSearch, J as SortMode, b as KupThemeColorValues, j as KupDataNewColumnTypes } from './kup-manager-58b075b4.js';
3
- import { g as getColumnByName } from './cell-utils-964da6b5.js';
4
- import { f as filterRows, p as paginateRows, s as sortRows, h as pageChange, r as rowsPerPageChange, k as FPaginatorMode, e as FPaginator } from './f-paginator-utils-7dff8ff0.js';
5
- import { i as identify, g as getProps, s as setProps } from './utils-d7e4b3c2.js';
6
- import { F as FImage } from './f-image-c468d8ae.js';
7
- import { a as FChip } from './f-chip-1dda722f.js';
1
+ import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement, a as getAssetPath } from './index-ad6ab214.js';
2
+ import { k as kupManagerInstance, c as KupDebugCategory, b as KupThemeColorValues, j as KupDataNewColumnTypes } from './kup-manager-22a475e6.js';
3
+ import { g as getProps, s as setProps } from './utils-2c1f4122.js';
8
4
  import { c as componentWrapperId } from './GenericVariables-665de00a.js';
9
- import { b as FCell } from './f-cell-521ef17a.js';
10
- import './f-button-871a544b.js';
11
- import './f-button-declarations-b1b4cac4.js';
12
- import './f-text-field-d6c61c73.js';
13
-
14
- /**
15
- * Props of the kup-box component.
16
- * Used to export every prop in an object.
17
- */
18
- var KupBoxProps;
19
- (function (KupBoxProps) {
20
- KupBoxProps["cardData"] = "Data of the card linked to the box when the latter's layout must be a premade template.";
21
- KupBoxProps["columns"] = "Number of columns.";
22
- KupBoxProps["customStyle"] = "Custom style of the component.";
23
- KupBoxProps["data"] = "Actual data of the box.";
24
- KupBoxProps["dragEnabled"] = "Enable dragging.";
25
- KupBoxProps["dropEnabled"] = "Enable dropping.";
26
- KupBoxProps["dropOnSection"] = "Drop can be done in section.";
27
- KupBoxProps["enableRowActions"] = "If enabled, a button to load / display the row actions will be displayed on the right of every box.";
28
- KupBoxProps["globalFilter"] = "When set to true it activates the global filter.";
29
- KupBoxProps["globalFilterValue"] = "The value of the global filter.";
30
- KupBoxProps["kanban"] = "Displays the boxlist as a Kanban.";
31
- KupBoxProps["layout"] = "How the field will be displayed. If not present, a default one will be created.";
32
- KupBoxProps["multiSelection"] = "Enable multi selection.";
33
- KupBoxProps["pageSelected"] = "Current page number.";
34
- KupBoxProps["pageSize"] = "Number of boxes per page.";
35
- KupBoxProps["pagination"] = "Enables pagination.";
36
- KupBoxProps["rowsPerPage"] = "Number of current rows per page.";
37
- KupBoxProps["scrollOnHover"] = "Activates the scroll on hover function.";
38
- KupBoxProps["selectBox"] = "Automatically selects the box at the specified index.";
39
- KupBoxProps["selectedRowsState"] = "Multiple selection.";
40
- KupBoxProps["showSelection"] = "If enabled, highlights the selected box/boxes.";
41
- KupBoxProps["sortBy"] = "If sorting is enabled, specifies which column to sort.";
42
- KupBoxProps["sortEnabled"] = "Enable sorting.";
43
- KupBoxProps["stateId"] = "";
44
- KupBoxProps["store"] = "";
45
- KupBoxProps["swipeDisabled"] = "Disable swipe.";
46
- })(KupBoxProps || (KupBoxProps = {}));
47
-
48
- class KupBoxState {
49
- constructor() {
50
- this.globalFilterValue = '';
51
- this.sortBy = '';
52
- this.selectedRowsState = '';
53
- this.pageSelected = 1;
54
- this.rowsPerPage = 0;
55
- this.load = false;
56
- }
57
- /*Add attribute*/
58
- toDebugString() {
59
- // TODO
60
- return 'box state';
61
- }
62
- }
63
-
64
- const kupBoxCss = ":host{--kup_box_background_color:var(\n --kup-box-background-color,\n var(--kup-background-color)\n );--kup_box_color:var(--kup-box-color, var(--kup-text-color));--kup_box_font_family:var(--kup-box-font-family, var(--kup-font-family));--kup_box_font_size:var(--kup-box-font-size, var(--kup-font-size));--kup_box_grid_gap:var(--kup-box-grid-gap, 1em);--kup_box_hover_box_shadow:var(\n --kup-box-hover-box-shadow,\n 0px 0px 7.5px 0px rgba(128, 128, 128, 0.5)\n );--kup_box_primary_color_rgb:var(\n --kup-box-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_box_transition:var(--kup-box-transition, 0.25s);display:block;font-family:var(--kup_box_font_family);font-size:var(--kup_box_font_size)}.box-component{background:var(--kup_box_background_color);transition:border var(--kup_box_transition) ease}.box-component[kup-drag-over]{position:relative;border:3px dashed var(--kup-border-color)}#box-container{display:grid;grid-gap:var(--kup_box_grid_gap);color:var(--kup_box_color);overflow:auto}#box-container.is-kanban .kanban-section{overflow:auto}#box-container.is-kanban .box-wrapper{padding-top:1em}#box-container.is-kanban .box-wrapper .box{overflow:auto}#box-container *{box-sizing:border-box}#box-container .box-wrapper{display:flex;align-items:center}#box-container .box-wrapper .box{flex-grow:1;cursor:pointer;position:relative;display:flex;transition:background-color var(--kup_box_transition) ease, box-shadow var(--kup_box_transition) ease, border var(--kup_box_transition) ease}#box-container .box-wrapper .box.draggable{touch-action:none;user-select:none}#box-container .box-wrapper .box.column{flex-direction:column}#box-container .box-wrapper .box:hover{box-shadow:var(--kup_box_hover_box_shadow)}#box-container .box-wrapper .box.selected{background-color:rgba(var(--kup_box_primary_color_rgb), 0.175)}#box-container .box-wrapper .box.selected .box-section.titled>h3{background-color:transparent}#box-container .box-wrapper .box[kup-draggable]{opacity:0.5}#box-container .box-wrapper .box[kup-drag-over]{border:3px dashed var(--kup-border-color);position:relative;z-index:2}#box-container .box-wrapper .box .box-section{display:flex;flex-direction:row;flex:1 1 1%;flex-wrap:wrap}#box-container .box-wrapper .box .box-section.column{flex-direction:column;justify-content:center;flex-wrap:unset}#box-container .box-wrapper .box .box-section.column>.box-section{flex:0 0 auto}#box-container .box-wrapper .box .box-section.grid{display:grid}#box-container .box-wrapper .box .box-section .box-object{min-height:16px}#box-container .box-wrapper .box .box-section .box-object img{height:auto}#box-container .box-wrapper .box .box-section.collapse-section .header{border-top:1px solid var(--kup-border-color);color:rgba(var(--kup-text-color-rgb), 0.75);display:flex;justify-content:space-around;width:100%}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content{margin:0.5em;display:flex;align-items:center}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content .f-image{transition:transform 0.15s}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content .f-image.toggled{transform:rotate(-180deg)}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content .kup-icon.kup-dropdown-icon{margin:0;-webkit-mask:var(--kup-dropdown-icon);mask:var(--kup-dropdown-icon)}#box-container .box-wrapper .box .box-section.collapse-section .content{display:none;width:100%}#box-container .box-wrapper .box .box-section.collapse-section.open .content{display:block}#box-container .box-wrapper .box .box-section.titled{border:1px solid var(--kup-border-color);padding-top:5px;position:relative;margin:10px}#box-container .box-wrapper .box .box-section.titled>h3{background:var(--kup-background-color);font-size:calc(var(--kup-font-size) * 1.15);position:absolute;margin:0px;padding:0 8px;top:-11px;left:5px;transition:background-color 0.25s ease}#box-container .box-wrapper .box .box-selection{position:absolute;top:0.5em;right:0.5em;z-index:1}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler{position:relative;width:24px;height:24px;margin-left:3px}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler svg{cursor:pointer;opacity:0;fill:var(--kup-text-color);transition:opacity 500ms ease-out}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu{background:var(--kup-background-color);border:1px solid var(--kup-border-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);position:absolute;top:0;right:24px;display:none;z-index:10}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu ul{list-style-type:none;margin:0;padding:0}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu ul>li{cursor:pointer;white-space:nowrap;padding:0 12px;display:flex;align-items:center;line-height:30px}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu ul>li:not(:last-child){border-bottom:1px solid var(--kup-border-color)}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu.open{display:block}#box-container .box-wrapper:hover .row-actions-wrapper .row-actions-toggler svg{opacity:1}#sort-panel,#global-filter{margin-bottom:1em}:host(.kup-center-aligned) #kup-component .box-section{text-align:center}:host(.kup-center-aligned) #kup-component .box-section .f-cell{justify-content:center;margin:auto;text-align:center}:host(.kup-center-aligned) #kup-component .box-section .f-cell .f-cell__content{justify-content:center;margin:auto;text-align:center}:host(.kup-center-aligned) #kup-component .box-section .f-cell img{margin:auto}:host(.kup-right-aligned) #kup-component .box-section{text-align:right}:host(.kup-right-aligned) #kup-component .box-section .f-cell{justify-content:flex-end;margin-left:auto;margin-right:0;text-align:right}:host(.kup-right-aligned) #kup-component .box-section .f-cell .f-cell__content{justify-content:flex-end;margin-left:auto;margin-right:0;text-align:right}:host(.kup-right-aligned) #kup-component .box-section .f-cell img{margin-left:auto;margin-right:0}:host(.kup-top-aligned) #box-container .box-wrapper .box .box-section .column{justify-content:flex-start}:host(.kup-bottom-aligned) #box-container .box-wrapper .box .box-section .column{justify-content:flex-end}:host(:not(.kup-borderless)) .box{border:1px solid var(--kup-border-color)}:host(.kup-flat-on-hover) #box-container .box-wrapper .box:hover{box-shadow:none}:host(.kup-shaped) .box{border-radius:10px}:host(.kup-round) .box{border-radius:25px}:host(.kup-dashed-sections) .box-section{border:2px dashed var(--kup-text-color)}:host(:not(.kup-paddingless)) #box-container .box{padding:3px}:host(:not(.kup-paddingless)) #box-container .box .box-section .box-object{padding:1px 4px}:host(:not(.kup-paddingless)) #box-container .box .box-section.last-child{margin:3px 4px}:host(.kup-danger){--kup-box-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-box-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-box-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-box-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-box-primary-color-rgb:var(--kup-warning-color-rgb)}";
65
-
66
- const KupBox = class {
67
- constructor(hostRef) {
68
- registerInstance(this, hostRef);
69
- this.kupBoxClick = createEvent(this, "kup-box-click", 6);
70
- this.kupBoxSelected = createEvent(this, "kup-box-selected", 6);
71
- this.kupAutoBoxSelect = createEvent(this, "kup-box-autoselect", 6);
72
- this.kupRowActionMenuClick = createEvent(this, "kup-box-rowactionmenuclick", 6);
73
- this.kupRowActionClick = createEvent(this, "kup-box-rowactionclick", 6);
74
- this.kupDidLoad = createEvent(this, "kup-box-didload", 6);
75
- this.kupDidUnload = createEvent(this, "kup-box-didunload", 6);
76
- this.kupBoxContextMenu = createEvent(this, "kup-box-contextmenu", 6);
77
- /*-------------------------------------------------*/
78
- /* S t a t e s */
79
- /*-------------------------------------------------*/
80
- this.collapsedSection = {};
81
- this.selectedRows = [];
82
- this.currentPage = 1;
83
- this.currentRowsPerPage = 10;
84
- this.state = new KupBoxState();
85
- /*-------------------------------------------------*/
86
- /* P r o p s */
87
- /*-------------------------------------------------*/
88
- /**
89
- * Data of the card linked to the box when the latter's layout must be a premade template.
90
- * @default null
91
- */
92
- this.cardData = null;
93
- /**
94
- * Number of columns
95
- * @default 1
96
- */
97
- this.columns = 1;
98
- /**
99
- * Custom style of the component.
100
- * @default ""
101
- * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
102
- */
103
- this.customStyle = '';
104
- /**
105
- * Actual data of the box.
106
- * @default null
107
- */
108
- this.data = null;
109
- /**
110
- * Enable dragging
111
- * @default false
112
- */
113
- this.dragEnabled = false;
114
- /**
115
- * Enable dropping
116
- * @default false
117
- */
118
- this.dropEnabled = false;
119
- /**
120
- * Drop can be done in section
121
- * @default false
122
- */
123
- this.dropOnSection = false;
124
- /**
125
- * When set to true, editable cells will be rendered using input components.
126
- * @default false
127
- */
128
- this.editableData = false;
129
- /**
130
- * If enabled, a button to load / display the row actions
131
- * will be displayed on the right of every box
132
- * @default false
133
- */
134
- this.enableRowActions = false;
135
- /**
136
- * When set to true it activates the global filter.
137
- * @default false
138
- */
139
- this.globalFilter = false;
140
- /**
141
- * The value of the global filter.
142
- * @default ""
143
- */
144
- this.globalFilterValue = '';
145
- /**
146
- * Displays the boxlist as a Kanban.
147
- * @default null
148
- */
149
- this.kanban = null;
150
- /**
151
- * Enable multi selection
152
- * @default false
153
- */
154
- this.multiSelection = false;
155
- /**
156
- * Current page number
157
- * @default 1
158
- */
159
- this.pageSelected = 1;
160
- /**
161
- * Number of boxes per page
162
- * @default 10
163
- */
164
- this.pageSize = 10;
165
- /**
166
- * Enables pagination
167
- * @default false
168
- */
169
- this.pagination = false;
170
- /**
171
- * Activates the scroll on hover function.
172
- * @default false
173
- */
174
- this.scrollOnHover = false;
175
- /**
176
- * If enabled, highlights the selected box/boxes
177
- * @default true
178
- */
179
- this.showSelection = true;
180
- /**
181
- * Enable sorting
182
- * @default false
183
- */
184
- this.sortEnabled = false;
185
- this.stateId = '';
186
- /**
187
- * Disable swipe
188
- * @default false
189
- */
190
- this.swipeDisabled = false;
191
- /*-------------------------------------------------*/
192
- /* I n t e r n a l V a r i a b l e s */
193
- /*-------------------------------------------------*/
194
- /**
195
- * Instance of the KupManager class.
196
- */
197
- this.kupManager = kupManagerInstance();
198
- this.visibleColumns = [];
199
- this.rows = [];
200
- this.filteredRows = [];
201
- this.sectionRef = null;
202
- this.rowsRefs = [];
203
- this.hold = false;
204
- this.interactableDrag = [];
205
- this.interactableDrop = [];
206
- this.interactableTouch = [];
207
- }
208
- initWithPersistedState() {
209
- if (this.store && this.stateId) {
210
- const state = this.store.getState(this.stateId);
211
- if (state != null) {
212
- this.kupManager.debug.logMessage(this, 'Initialize with state for stateId ' +
213
- this.stateId +
214
- ': ' +
215
- state);
216
- // *** PROPS ***
217
- this.sortBy = this.state.sortBy;
218
- this.globalFilterValue = this.state.globalFilterValue;
219
- this.selectedRowsState = this.state.selectedRowsState;
220
- this.pageSelected = this.state.pageSelected;
221
- this.rowsPerPage = this.state.rowsPerPage;
222
- }
223
- }
224
- }
225
- persistState() {
226
- if (this.store && this.stateId) {
227
- let somethingChanged = false;
228
- if (!this.kupManager.objects.deepEqual(this.state.sortBy, this.sortBy)) {
229
- this.state.sortBy = this.sortBy;
230
- somethingChanged = true;
231
- }
232
- if (!this.kupManager.objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
233
- this.state.globalFilterValue = this.globalFilterValue;
234
- somethingChanged = true;
235
- }
236
- if (!this.kupManager.objects.deepEqual(this.state.pageSelected, this.currentPage)) {
237
- this.state.pageSelected = this.currentPage;
238
- somethingChanged = true;
239
- }
240
- if (!this.kupManager.objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
241
- this.state.rowsPerPage = this.currentRowsPerPage;
242
- somethingChanged = true;
243
- }
244
- const selectedRowsState = this.selectedRows.reduce((accumulator, row, currentIndex) => {
245
- const prefix = currentIndex > 0 ? ';' : '';
246
- return accumulator + prefix + row.id;
247
- }, '');
248
- if (!this.kupManager.objects.deepEqual(this.state.selectedRowsState, selectedRowsState)) {
249
- this.state.selectedRowsState = selectedRowsState;
250
- somethingChanged = true;
251
- }
252
- if (!this.state.load) {
253
- this.state.load = true;
254
- return;
255
- }
256
- if (somethingChanged) {
257
- this.kupManager.debug.logMessage(this, 'Persisting state for stateId ' +
258
- this.stateId +
259
- ': ' +
260
- this.state);
261
- this.store.persistState(this.stateId, this.state);
262
- }
263
- }
264
- }
265
- /*-------------------------------------------------*/
266
- /* W a t c h e r s */
267
- /*-------------------------------------------------*/
268
- rowsPerPageHandler(newValue) {
269
- this.currentRowsPerPage = newValue;
270
- }
271
- recalculateRows() {
272
- this.initRows();
273
- }
274
- onDataChanged() {
275
- identify(this.getRows());
276
- this.initVisibleColumns();
277
- this.initRows();
278
- this.checkLayout();
279
- }
280
- onLayoutChanged() {
281
- this.checkLayout();
282
- }
283
- onSelectBoxChanged() {
284
- this.handleAutomaticBoxSelection();
285
- }
286
- /*-------------------------------------------------*/
287
- /* P u b l i c M e t h o d s */
288
- /*-------------------------------------------------*/
289
- /**
290
- * Used to retrieve component's props values.
291
- * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
292
- * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
293
- */
294
- async getProps(descriptions) {
295
- return getProps(this, KupBoxProps, descriptions);
296
- }
297
- async loadRowActions(row, actions) {
298
- row.actions = actions;
299
- // show menu
300
- this.rowActionMenuOpened = row;
301
- }
302
- /**
303
- * This method is used to trigger a new render of the component.
304
- */
305
- async refresh() {
306
- forceUpdate(this);
307
- }
308
- /**
309
- * Sets the props to the component.
310
- * @param {GenericObject} props - Object containing props that will be set to the component.
311
- */
312
- async setProps(props) {
313
- setProps(this, KupBoxProps, props);
314
- }
315
- /*-------------------------------------------------*/
316
- /* P r i v a t e M e t h o d s */
317
- /*-------------------------------------------------*/
318
- getColumns() {
319
- return this.data && this.data.columns
320
- ? this.data.columns
321
- : [{ title: '', name: '', size: undefined }];
322
- }
323
- initVisibleColumns() {
324
- this.visibleColumns = this.getColumns().filter((column) => {
325
- if (column.hasOwnProperty('visible')) {
326
- return column.visible;
327
- }
328
- return true;
329
- });
330
- }
331
- getRows() {
332
- return this.data && this.data.rows ? this.data.rows : [];
333
- }
334
- initRows() {
335
- this.filteredRows = this.getRows();
336
- if (this.globalFilter && this.globalFilterValue) {
337
- // filtering rows
338
- this.filteredRows = filterRows(this.filteredRows, null, this.globalFilterValue, this.visibleColumns);
339
- }
340
- this.rows = this.sortRows(this.filteredRows);
341
- if (this.pagination) {
342
- this.rows = paginateRows(this.rows, this.currentPage, this.currentRowsPerPage, false);
343
- }
344
- }
345
- sortRows(rows) {
346
- let sortedRows = rows;
347
- if (this.sortBy) {
348
- // create 'fake' sortObject
349
- const sortObject = {
350
- column: this.sortBy,
351
- sortMode: SortMode.A,
352
- };
353
- sortedRows = sortRows(sortedRows, [sortObject]);
354
- }
355
- return sortedRows;
356
- }
357
- checkScrollOnHover() {
358
- if (!this.kupManager.scrollOnHover.isRegistered(this.boxContainer)) {
359
- if (this.scrollOnHover) {
360
- this.kupManager.scrollOnHover.register(this.boxContainer);
361
- }
362
- }
363
- else {
364
- if (!this.scrollOnHover) {
365
- this.kupManager.scrollOnHover.unregister(this.boxContainer);
366
- }
367
- }
368
- }
369
- checkLayout() {
370
- // check if there is a layout.
371
- // if not, create a default layout
372
- if (this.layout) {
373
- this.boxLayout = this.layout;
374
- return;
375
- }
376
- // only one section, containing all visible fields
377
- const section = {
378
- horizontal: false,
379
- sections: [],
380
- };
381
- // adding box objects to section
382
- const visibleColumns = this.visibleColumns;
383
- let size = visibleColumns.length;
384
- let content = [];
385
- let cnt = 0;
386
- while (size-- > 0) {
387
- content.push({
388
- column: visibleColumns[cnt++].name,
389
- });
390
- }
391
- section.content = content;
392
- // creating a new layout
393
- this.boxLayout = {
394
- sections: [section],
395
- };
396
- }
397
- onSortChange(e) {
398
- let column = getColumnByName(this.visibleColumns, e.detail.value);
399
- this.sortBy = column.name;
400
- }
401
- onGlobalFilterChange({ detail }) {
402
- let value = '';
403
- if (detail && detail.value) {
404
- value = detail.value;
405
- }
406
- this.globalFilterValue = value;
407
- }
408
- isSectionExpanded(row, section) {
409
- if (!row.id || !section.id) {
410
- return false;
411
- }
412
- return (this.collapsedSection[section.id] &&
413
- this.collapsedSection[section.id][row.id]);
414
- }
415
- handleAutomaticBoxSelection() {
416
- if (this.selectBox &&
417
- this.selectBox > 0 &&
418
- this.selectBox <= this.data.rows.length) {
419
- this.selectedRows = [];
420
- for (let boxRow of this.data.rows) {
421
- if (boxRow.id === (this.selectBox - 1).toString()) {
422
- this.selectedRows.push(boxRow);
423
- break;
424
- }
425
- }
426
- this.kupAutoBoxSelect.emit({
427
- comp: this,
428
- id: this.rootElement.id,
429
- row: this.selectedRows[0],
430
- });
431
- }
432
- }
433
- getEventDetails(el, e) {
434
- let boxObject = null;
435
- let cell = null;
436
- let row = null;
437
- let column = null;
438
- if (el) {
439
- boxObject =
440
- el.closest('.box-object') || el.querySelector('.box-object');
441
- }
442
- if (boxObject) {
443
- cell = boxObject['data-cell'];
444
- row = boxObject['data-row'];
445
- column = getColumnByName(this.visibleColumns, boxObject.dataset.column);
446
- }
447
- return {
448
- boxObject: boxObject ? boxObject : null,
449
- column: column ? column : null,
450
- cell: cell ? cell : null,
451
- originalEvent: e,
452
- row: row ? row : null,
453
- };
454
- }
455
- contextMenuHandler(e) {
456
- const details = this.getEventDetails(e.target, e);
457
- return details;
458
- }
459
- /**
460
- * Checks if the element is the svg that opens the "row actions menu"
461
- * @param element the element to check
462
- */
463
- checkIfElementIsActionMenuIcon(element) {
464
- if (element.tagName && element.parentElement) {
465
- return (element.tagName === 'svg' &&
466
- element.parentElement.classList.contains('row-actions-toggler'));
467
- }
468
- return false;
469
- }
470
- // event listeners
471
- onBoxClick({ target }, row) {
472
- if (!(target instanceof HTMLElement)) {
473
- return;
474
- }
475
- // searching parent
476
- let element = target;
477
- let classList = element.classList;
478
- while (!classList.contains('box-object') &&
479
- !classList.contains('box-section') &&
480
- !classList.contains('box')) {
481
- element = element.parentElement;
482
- if (element === null) {
483
- break;
484
- }
485
- classList = element.classList;
486
- }
487
- // evaluating column
488
- let column = null;
489
- if (classList.contains('box-object')) {
490
- column = element.dataset.column;
491
- }
492
- this.kupBoxClick.emit({
493
- comp: this,
494
- id: this.rootElement.id,
495
- row,
496
- column,
497
- });
498
- // selecting box
499
- if (this.multiSelection) {
500
- // triggering multi selection
501
- this.onSelectionCheckChange(row);
502
- }
503
- else {
504
- this.selectedRows = [row];
505
- }
506
- }
507
- onSelectionCheckChange(row) {
508
- var index = -1;
509
- for (let i = 0; i < this.selectedRows.length; i++) {
510
- const select = this.selectedRows[i];
511
- if (select.id === row.id) {
512
- index = i;
513
- break;
514
- }
515
- }
516
- if (index >= 0) {
517
- // remove row
518
- this.selectedRows.splice(index, 1);
519
- this.selectedRows = [...this.selectedRows];
520
- }
521
- else {
522
- // add row
523
- this.selectedRows = [...this.selectedRows, row];
524
- }
525
- this.kupBoxSelected.emit({
526
- comp: this,
527
- id: this.rootElement.id,
528
- rows: this.selectedRows,
529
- });
530
- }
531
- toggleSectionExpand(row, section) {
532
- // check if section / row has id
533
- if (!section.id) {
534
- // error
535
- console.error('cannot expand / collapse a section withoun an ID');
536
- return;
537
- }
538
- if (!row.id) {
539
- // error
540
- console.error('cannot expand / collapse a section of a row without ad id');
541
- return;
542
- }
543
- // check if section already in collapsedSection
544
- if (!this.collapsedSection[section.id]) {
545
- // adding element and row, setting it to expanded
546
- this.collapsedSection[section.id] = {};
547
- this.collapsedSection[section.id][row.id] = true;
548
- }
549
- else {
550
- const s = this.collapsedSection[section.id];
551
- if (!s[row.id]) {
552
- s[row.id] = true;
553
- }
554
- else {
555
- s[row.id] = !s[row.id];
556
- }
557
- }
558
- // triggering rendering
559
- this.collapsedSection = Object.assign({}, this.collapsedSection);
560
- }
561
- onRowAction(row) {
562
- if (!row) {
563
- return;
564
- }
565
- if (row === this.rowActionMenuOpened) {
566
- // closing menu
567
- this.rowActionMenuOpened = null;
568
- return;
569
- }
570
- if (row.actions) {
571
- // actions already loaded -> show menu
572
- this.rowActionMenuOpened = row;
573
- }
574
- else {
575
- // no actions -> triggering event
576
- this.kupRowActionMenuClick.emit({
577
- comp: this,
578
- id: this.rootElement.id,
579
- row,
580
- });
581
- }
582
- }
583
- onRowActionClick(row, action, index) {
584
- this.kupRowActionClick.emit({
585
- comp: this,
586
- id: this.rootElement.id,
587
- row,
588
- action,
589
- index,
590
- });
591
- }
592
- /**
593
- * see onDocumentClick in kup-combo
594
- */
595
- clickFunction(event) {
596
- try {
597
- const targets = event.composedPath();
598
- for (let target of targets) {
599
- if (this.checkIfElementIsActionMenuIcon(target)) {
600
- return;
601
- }
602
- }
603
- }
604
- catch (err) {
605
- if (this.checkIfElementIsActionMenuIcon(event.target)) {
606
- return;
607
- }
608
- }
609
- this.rowActionMenuOpened = null;
610
- }
611
- handlePageChange(pageNumber) {
612
- const newPage = pageChange(pageNumber, this.filteredRows.length, this.currentRowsPerPage);
613
- if (newPage) {
614
- this.currentPage = newPage;
615
- }
616
- }
617
- handleRowsPerPageChange(rowsNumber) {
618
- const newRows = rowsPerPageChange(rowsNumber, this.filteredRows.length);
619
- if (newRows) {
620
- this.currentRowsPerPage = newRows;
621
- this.adjustPaginator();
622
- }
623
- }
624
- adjustPaginator() {
625
- const numberOfRows = this.rows.length;
626
- // check if current page is valid
627
- const numberOfPages = Math.ceil(numberOfRows / this.currentRowsPerPage);
628
- if (this.currentPage > numberOfPages) {
629
- // reset page
630
- this.currentPage = 1;
631
- }
632
- }
633
- // render methods
634
- renderSectionAsCard(row) {
635
- let skipPush = false;
636
- let cardData = {
637
- button: [],
638
- image: [],
639
- progressbar: [],
640
- text: [],
641
- };
642
- //First cycle sets specific binds between cardIDs and cells
643
- for (var key in row.cells) {
644
- if (row.cells.hasOwnProperty(key)) {
645
- var cell = row.cells[key];
646
- if (cell.cardID !== undefined) {
647
- switch (cell.obj.p) {
648
- case 'BTN':
649
- do {
650
- cardData.button.push({});
651
- } while (cardData.button.length < cell.cardID);
652
- cardData.button[cell.cardID] = {
653
- label: cell.value,
654
- };
655
- break;
656
- case 'IMG':
657
- do {
658
- cardData.image.push({});
659
- } while (cardData.image.length < cell.cardID);
660
- cardData.image[cell.cardID] = {
661
- resource: cell.value,
662
- };
663
- break;
664
- case 'PGB':
665
- do {
666
- cardData.progressbar.push({});
667
- } while (cardData.progressbar.length < cell.cardID);
668
- cardData.progressbar[cell.cardID] = {
669
- value: cell.value,
670
- };
671
- break;
672
- default:
673
- do {
674
- cardData.text.push('');
675
- } while (cardData.text.length < cell.cardID);
676
- cardData.text[cell.cardID] = cell.value;
677
- break;
678
- }
679
- }
680
- }
681
- }
682
- //Second cycle sets leftover binds automatically
683
- for (var key in row.cells) {
684
- if (row.cells.hasOwnProperty(key)) {
685
- var cell = row.cells[key];
686
- if (cell.cardID === undefined) {
687
- skipPush = false;
688
- switch (cell.obj.p) {
689
- case 'BTN':
690
- for (let index = 0; index < cardData.button.length; index++) {
691
- //If there are empty elements, the first one will be used
692
- if (cardData.button[index] === {}) {
693
- cardData.button[index] = {
694
- label: cell.value,
695
- };
696
- skipPush = true;
697
- break;
698
- }
699
- }
700
- //Otherwise a new element will be pushed
701
- if (!skipPush) {
702
- cardData.button.push({
703
- label: cell.value,
704
- });
705
- }
706
- break;
707
- case 'IMG':
708
- for (let index = 0; index < cardData.image.length; index++) {
709
- //If there are empty elements, the first one will be used
710
- if (cardData.image[index] === {}) {
711
- cardData.image[index] = {
712
- resource: cell.value,
713
- };
714
- skipPush = true;
715
- break;
716
- }
717
- }
718
- //Otherwise a new element will be pushed
719
- if (!skipPush) {
720
- cardData.image.push({
721
- resource: cell.value,
722
- });
723
- }
724
- break;
725
- case 'PGB':
726
- for (let index = 0; index < cardData.progressbar.length; index++) {
727
- //If there are empty elements, the first one will be used
728
- if (cardData.progressbar[index] === {}) {
729
- cardData.progressbar[index] = {
730
- value: cell.value,
731
- };
732
- skipPush = true;
733
- break;
734
- }
735
- }
736
- //Otherwise a new element will be pushed
737
- if (!skipPush) {
738
- cardData.progressbar.push({
739
- value: cell.value,
740
- });
741
- }
742
- break;
743
- default:
744
- for (let index = 0; index < cardData.text.length; index++) {
745
- //If there are empty elements, the first one will be used
746
- if (cardData.text[index] === '') {
747
- cardData.text[index] = cell.value;
748
- skipPush = true;
749
- break;
750
- }
751
- }
752
- //Otherwise a new element will be pushed
753
- if (!skipPush) {
754
- cardData.text.push(cell.value);
755
- }
756
- break;
757
- }
758
- }
759
- }
760
- }
761
- return h("kup-card", Object.assign({ data: cardData }, this.cardData));
762
- }
763
- renderRow(row) {
764
- const visibleColumns = [...this.visibleColumns];
765
- let boxContent = null;
766
- // if layout in row, use that one
767
- let rowLayout = row.layout;
768
- if (!rowLayout) {
769
- // otherwise, use 'default' layout
770
- rowLayout = this.boxLayout;
771
- }
772
- let horizontal = false;
773
- if (rowLayout) {
774
- if (rowLayout.horizontal) {
775
- horizontal = true;
776
- }
777
- const sections = rowLayout.sections;
778
- let size = sections.length;
779
- let cnt = 0;
780
- if (size > 0) {
781
- boxContent = [];
782
- }
783
- // create fake parent section
784
- const parent = {
785
- horizontal: horizontal,
786
- };
787
- while (size-- > 0) {
788
- if (this.cardData !== null &&
789
- this.cardData !== undefined &&
790
- typeof this.cardData === 'object') {
791
- boxContent.push(this.renderSectionAsCard(row));
792
- }
793
- else {
794
- boxContent.push(this.renderSection(sections[cnt++], parent, row, visibleColumns));
795
- }
796
- }
797
- }
798
- var isSelected = false;
799
- for (let select of this.selectedRows) {
800
- if (select.id === row.id) {
801
- isSelected = true;
802
- }
803
- }
804
- let multiSel = null;
805
- if (this.multiSelection) {
806
- multiSel = (h("div", { class: "box-selection" }, h("kup-checkbox", { checked: isSelected })));
807
- }
808
- let rowObject = null;
809
- if (this.enableRowActions && !this.swipeDisabled) {
810
- const menuClass = {
811
- 'row-action-menu': true,
812
- open: row === this.rowActionMenuOpened,
813
- };
814
- let rowActionMenuContent = null;
815
- if (row.actions) {
816
- const actionItems = row.actions.map((item, index) => {
817
- const iconClass = `icon ${item.icon}`;
818
- return (h("li", { tabindex: "0", onClick: () => this.onRowActionClick(row, item, index) }, h("div", { class: iconClass }), h("div", { class: "text" }, item.text)));
819
- });
820
- rowActionMenuContent = h("ul", null, actionItems);
821
- }
822
- rowObject = (h("div", { class: "row-actions-wrapper" }, h("div", { class: "row-actions-toggler" }, h("svg", { version: "1.1", width: "24", height: "24", viewBox: "0 0 24 24", onClick: () => this.onRowAction(row) }, h("path", { d: "M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z" })), h("div", { class: menuClass }, rowActionMenuContent))));
823
- }
824
- let badges = null;
825
- if (row.badgeData && row.badgeData.length > 0) {
826
- badges = row.badgeData.map((badge) => (h("kup-badge", { text: badge.text, class: badge['className']
827
- ? `centered ${badge['className']}`
828
- : 'centered', imageData: badge.imageData })));
829
- }
830
- const boxClass = {
831
- box: true,
832
- draggable: this.dragEnabled,
833
- selected: this.showSelection && isSelected,
834
- column: !horizontal,
835
- };
836
- return (h("div", { class: "box-wrapper" }, h("div", { class: boxClass, onClick: (e) => this.onBoxClick(e, row), ref: (el) => this.rowsRefs.push(el) }, multiSel, boxContent, badges), rowObject));
837
- }
838
- renderSection(section, parent, row, visibleColumns) {
839
- let sectionContent = null;
840
- if (section.sections && section.sections.length > 0) {
841
- // rendering child
842
- const sections = section.sections;
843
- let size = sections.length;
844
- let cnt = 0;
845
- if (size > 0) {
846
- sectionContent = [];
847
- }
848
- while (size-- > 0) {
849
- sectionContent.push(this.renderSection(sections[cnt++], section, row, visibleColumns));
850
- }
851
- }
852
- else if (section.content) {
853
- // rendering box objects
854
- const content = section.content;
855
- let size = content.length;
856
- let cnt = 0;
857
- if (size > 0) {
858
- sectionContent = [];
859
- }
860
- while (size-- > 0) {
861
- sectionContent.push(this.renderBoxObject({
862
- boxObject: content[cnt++],
863
- row,
864
- visibleColumns,
865
- }, true));
866
- }
867
- }
868
- else if (visibleColumns.length > 0) {
869
- const column = visibleColumns[0];
870
- sectionContent = this.renderBoxObject({
871
- boxObject: { column: column.name },
872
- row,
873
- visibleColumns,
874
- });
875
- }
876
- const sectionExpanded = this.isSectionExpanded(row, section);
877
- const isGrid = !!section.columns;
878
- const sectionClass = {
879
- 'box-section': true,
880
- open: sectionExpanded,
881
- column: !isGrid && !section.horizontal,
882
- grid: isGrid,
883
- titled: !!section.title,
884
- 'last-child': !section.sections || section.sections.length === 0,
885
- };
886
- const sectionStyle = section.style || {};
887
- if (section.dim && parent) {
888
- sectionStyle.flex = `0 0 ${section.dim}`;
889
- if (parent.horizontal) {
890
- sectionStyle.maxWidth = section.dim;
891
- }
892
- else {
893
- sectionStyle.maxHeight = section.dim;
894
- }
895
- }
896
- if (isGrid) {
897
- sectionStyle['grid-template-columns'] = `repeat(${section.columns}, 1fr)`;
898
- }
899
- let sectionContainer = null;
900
- if (section.collapsible) {
901
- sectionClass['collapse-section'] = true;
902
- const contentClass = {
903
- content: true,
904
- };
905
- // TODO I18N
906
- let headerTitle = '';
907
- if (section.title) {
908
- headerTitle = section.title;
909
- }
910
- else if (sectionExpanded) {
911
- headerTitle = this.kupManager.language.translate(KupLanguageGeneric.COLLAPSE);
912
- }
913
- else {
914
- headerTitle = this.kupManager.language.translate(KupLanguageGeneric.EXPAND);
915
- }
916
- sectionContainer = (h("div", { class: sectionClass, style: sectionStyle }, h("div", { class: contentClass }, sectionContent), h("div", { class: "header", role: "button", onClick: (e) => {
917
- e.stopPropagation();
918
- this.toggleSectionExpand(row, section);
919
- } }, h("div", { class: "header-content" }, h("span", null, headerTitle), h(FImage, { resource: `${KupThemeIconValues.DROPDOWN}`, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: sectionExpanded ? 'toggled' : '' })))));
920
- }
921
- else {
922
- const title = section.title ? h("h3", null, section.title) : null;
923
- sectionContainer = (h("div", { class: sectionClass, style: sectionStyle }, title, sectionContent));
924
- }
925
- return sectionContainer;
926
- }
927
- renderBoxObject({ boxObject, row, visibleColumns, }, fromSection) {
928
- const classObj = {
929
- 'box-object': true,
930
- };
931
- const boStyle = {};
932
- let column = null;
933
- let index = -1;
934
- for (let i = 0; i < visibleColumns.length; i++) {
935
- const c = visibleColumns[i];
936
- if (c.name === boxObject.column) {
937
- index = i;
938
- break;
939
- }
940
- }
941
- if (index >= 0) {
942
- column = visibleColumns[index];
943
- visibleColumns.splice(index, 1);
944
- }
945
- else if (fromSection) {
946
- column = this.data.columns.find((x) => x.name === boxObject.column);
947
- }
948
- const cell = row.cells[boxObject.column];
949
- let title = undefined;
950
- if (cell && !this.kupManager.objects.isEmptyKupObj(cell.obj)) {
951
- classObj['is-obj'] = true;
952
- if (this.kupManager.debug.isDebug()) {
953
- title =
954
- cell.obj.t + '; ' + cell.obj.p + '; ' + cell.obj.k + ';';
955
- }
956
- }
957
- const cellProps = {
958
- cell: cell,
959
- column: column,
960
- component: this,
961
- editable: this.editableData,
962
- renderKup: true,
963
- row: row,
964
- setSizes: true,
965
- shape: boxObject.shape,
966
- };
967
- return (h("div", { "data-cell": cell, "data-row": row, "data-column": boxObject.column, class: classObj, style: boStyle, title: title }, cell && column ? (h(FCell, Object.assign({}, cellProps))) : (h("span", null, boxObject.value))));
968
- }
969
- /**
970
- * Prepares the kanban sections by sorting the boxlist's data.
971
- * @returns {{jsx: VNode[], style: { [index: string]: string }}} jsx contains the virtual nodes of the Kanban sections, style contains the grid CSS settings.
972
- */
973
- kanbanMode() {
974
- // Testing whether there are columns to group by
975
- if (!this.kanban.columns || this.kanban.columns.length === 0) {
976
- this.kupManager.debug.logMessage(this, 'No columns to group by detected.', KupDebugCategory.ERROR);
977
- return {
978
- jsx: (h("p", { id: "empty-data-message" }, this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA))),
979
- style: { 'grid-template-columns': `repeat(1, 1fr)` },
980
- };
981
- }
982
- const kanbanSections = [];
983
- // Creating empty sections from prop-defined labels
984
- if (this.kanban.labels) {
985
- for (let index = 0; index < this.kanban.labels.length; index++) {
986
- const key = this.kanban.labels[index];
987
- kanbanSections.push({ labels: key, nodes: [] });
988
- }
989
- }
990
- // Browsing all rows
991
- for (let index = 0; index < this.rows.length; index++) {
992
- let key = [];
993
- // Creating the key for the current row
994
- for (let j = 0; j < this.kanban.columns.length; j++) {
995
- try {
996
- key.push(this.rows[index].cells[this.kanban.columns[j]].value);
997
- }
998
- catch (error) {
999
- this.kupManager.debug.logMessage(this, error, KupDebugCategory.WARNING);
1000
- }
1001
- }
1002
- const check = {
1003
- found: false,
1004
- index: null,
1005
- };
1006
- // Browsing key array to search whether the current key exists or not
1007
- for (let j = 0; j < kanbanSections.length; j++) {
1008
- let sortingKey = kanbanSections[j].labels;
1009
- let found = true;
1010
- for (let i = 0; i < sortingKey.length; i++) {
1011
- if (key[i] !== sortingKey[i]) {
1012
- found = false;
1013
- break;
1014
- }
1015
- }
1016
- if (found) {
1017
- check.found = true;
1018
- check.index = j;
1019
- break;
1020
- }
1021
- }
1022
- // If current key exists, box will be pushed into the existing array of virtual nodes
1023
- if (check.found) {
1024
- kanbanSections[check.index].nodes.push(this.renderRow(this.rows[index]));
1025
- }
1026
- else {
1027
- // Otherwise, a new section will be defined starting with just the current virtal node
1028
- kanbanSections.push({
1029
- labels: key,
1030
- nodes: [this.renderRow(this.rows[index])],
1031
- });
1032
- }
1033
- }
1034
- // Once the arrays are set, they need to be emptied into columns
1035
- const kanbanJSX = [];
1036
- for (let index = 0; index < kanbanSections.length; index++) {
1037
- const sortingKey = kanbanSections[index].labels;
1038
- const props = {
1039
- data: [],
1040
- };
1041
- for (let index = 0; index < sortingKey.length; index++) {
1042
- props.data.push({
1043
- value: sortingKey[index],
1044
- id: sortingKey[index],
1045
- });
1046
- }
1047
- kanbanJSX.push(h("div", { class: "kanban-section" }, h(FChip, Object.assign({}, props)), kanbanSections[index].nodes));
1048
- }
1049
- return {
1050
- jsx: kanbanJSX,
1051
- style: {
1052
- 'grid-template-columns': this.kanban.size
1053
- ? `repeat(${Object.keys(kanbanSections).length}, ${this.kanban.size})`
1054
- : `repeat(${Object.keys(kanbanSections).length}, 1fr)`,
1055
- },
1056
- };
1057
- }
1058
- didLoadInteractables() {
1059
- this.interactableTouch.push(this.boxContainer);
1060
- const tapCb = (e) => {
1061
- if (this.hold) {
1062
- this.hold = false;
1063
- return;
1064
- }
1065
- switch (e.button) {
1066
- case 2:
1067
- this.kupBoxContextMenu.emit({
1068
- comp: this,
1069
- id: this.rootElement.id,
1070
- details: this.contextMenuHandler(e),
1071
- });
1072
- break;
1073
- }
1074
- };
1075
- const holdCb = (e) => {
1076
- if (e.pointerType === 'pen' || e.pointerType === 'touch') {
1077
- this.hold = true;
1078
- this.kupBoxContextMenu.emit({
1079
- comp: this,
1080
- id: this.rootElement.id,
1081
- details: this.contextMenuHandler(e),
1082
- });
1083
- }
1084
- };
1085
- this.kupManager.interact.on(this.boxContainer, KupPointerEventTypes.TAP, tapCb);
1086
- this.kupManager.interact.on(this.boxContainer, KupPointerEventTypes.HOLD, holdCb);
1087
- }
1088
- didRenderInteractables() {
1089
- if (this.dragEnabled) {
1090
- for (let index = 0; index < this.rowsRefs.length; index++) {
1091
- const row = this.rowsRefs[index];
1092
- const dataCb = () => {
1093
- const cellEl = this.rootElement.shadowRoot.querySelector('.box-object:hover');
1094
- return {
1095
- cell: cellEl['data-cell'],
1096
- column: getColumnByName(this.visibleColumns, cellEl.dataset.column),
1097
- id: this.rootElement.id,
1098
- multiple: this.multiSelection,
1099
- row: cellEl['data-row'],
1100
- selectedRows: this.selectedRows,
1101
- };
1102
- };
1103
- if (row && !this.interactableDrag.includes(row)) {
1104
- this.interactableDrag.push(row);
1105
- this.kupManager.interact.draggable(row, {
1106
- allowFrom: '.box-object',
1107
- cursorChecker() {
1108
- return null;
1109
- },
1110
- }, {
1111
- callback: dataCb,
1112
- }, KupDragEffect.BADGE);
1113
- }
1114
- }
1115
- }
1116
- if (this.dropEnabled) {
1117
- const dataCb = () => {
1118
- const receivingDetails = this.getEventDetails(this.rootElement.shadowRoot.querySelector('.box:hover'));
1119
- return {
1120
- cell: receivingDetails.cell,
1121
- column: receivingDetails.column,
1122
- id: this.rootElement.id,
1123
- row: receivingDetails.row,
1124
- };
1125
- };
1126
- if (!this.interactableDrop.includes(this.sectionRef)) {
1127
- this.interactableDrop.push(this.sectionRef);
1128
- this.kupManager.interact.dropzone(this.sectionRef, {
1129
- accept: `[${kupDraggableCellAttr}]`,
1130
- }, {
1131
- dispatcher: this.rootElement,
1132
- type: KupDropEventTypes.BOX,
1133
- });
1134
- }
1135
- for (let index = 0; index < this.rowsRefs.length; index++) {
1136
- const row = this.rowsRefs[index];
1137
- if (row && !this.interactableDrop.includes(row)) {
1138
- this.interactableDrop.push(row);
1139
- this.kupManager.interact.dropzone(row, {
1140
- accept: `[${kupDraggableCellAttr}]`,
1141
- }, {
1142
- callback: dataCb,
1143
- dispatcher: this.rootElement,
1144
- type: KupDropEventTypes.BOX,
1145
- });
1146
- }
1147
- }
1148
- }
1149
- }
1150
- /*-------------------------------------------------*/
1151
- /* L i f e c y c l e H o o k s */
1152
- /*-------------------------------------------------*/
1153
- componentWillLoad() {
1154
- this.kupManager.debug.logLoad(this, false);
1155
- if (this.rowsPerPage) {
1156
- this.currentRowsPerPage = this.rowsPerPage;
1157
- }
1158
- else if (this.pageSize) {
1159
- this.currentRowsPerPage = this.pageSize;
1160
- }
1161
- if (this.data &&
1162
- this.data.rows &&
1163
- this.currentRowsPerPage > this.data.rows.length) {
1164
- this.currentRowsPerPage = this.data.rows.length;
1165
- }
1166
- this.kupManager.language.register(this);
1167
- this.kupManager.theme.register(this);
1168
- this.onDataChanged();
1169
- this.adjustPaginator();
1170
- }
1171
- componentDidLoad() {
1172
- this.handleAutomaticBoxSelection();
1173
- // When component is created, then the listener is set. @See clickFunction for more details
1174
- document.addEventListener('click', this.clickFunction.bind(this));
1175
- this.currentPage = this.pageSelected;
1176
- if (this.multiSelection && this.selectedRowsState) {
1177
- this.selectedRows = [];
1178
- let selectedIds = this.selectedRowsState.split(';');
1179
- this.selectedRows = this.data.rows.filter((r) => {
1180
- return selectedIds.indexOf(r.id) >= 0;
1181
- });
1182
- }
1183
- this.didLoadInteractables();
1184
- this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
1185
- this.kupManager.debug.logLoad(this, true);
1186
- }
1187
- componentWillRender() {
1188
- this.kupManager.debug.logRender(this, false);
1189
- }
1190
- componentDidRender() {
1191
- this.checkScrollOnHover();
1192
- this.persistState();
1193
- this.didRenderInteractables();
1194
- this.kupManager.debug.logRender(this, true);
1195
- }
1196
- render() {
1197
- const isKanban = !!(typeof this.kanban === 'object' && this.kanban !== null);
1198
- let sortPanel = null;
1199
- if (this.sortEnabled) {
1200
- // creating items
1201
- const visibleColumnsItems = this.visibleColumns.map((column) => {
1202
- const item = {
1203
- value: column.title,
1204
- id: column.name,
1205
- selected: column.name === this.sortBy,
1206
- };
1207
- return item;
1208
- });
1209
- const items = [{ value: '', id: '' }, ...visibleColumnsItems];
1210
- let textfieldData = {
1211
- label: this.kupManager.language.translate(KupLanguageGeneric.SORT_BY),
1212
- trailingIcon: true,
1213
- };
1214
- let listData = {
1215
- data: items,
1216
- selectable: true,
1217
- };
1218
- let data = {
1219
- 'kup-text-field': textfieldData,
1220
- 'kup-list': listData,
1221
- };
1222
- sortPanel = (h("div", { id: "sort-panel" }, h("kup-combobox", { data: data, initialValue: this.sortBy, "onkup-combobox-itemclick": (e) => this.onSortChange(e) })));
1223
- }
1224
- let filterPanel = null;
1225
- if (this.globalFilter) {
1226
- filterPanel = (h("div", { id: "global-filter" }, h("kup-text-field", { fullWidth: true, label: this.kupManager.language.translate(KupLanguageSearch.SEARCH), icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
1227
- window.clearTimeout(this.globalFilterTimeout);
1228
- this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
1229
- } })));
1230
- }
1231
- let paginator = null;
1232
- if (this.pagination) {
1233
- paginator = (h(FPaginator, { id: top ? 'top-paginator' : 'bottom-paginator', currentPage: this.currentPage, max: this.filteredRows.length, mode: FPaginatorMode.SIMPLE, perPage: this.currentRowsPerPage
1234
- ? this.currentRowsPerPage
1235
- : this.pageSize, onPageChange: (e) => this.handlePageChange(e.detail.value), onRowsChange: (e) => this.handleRowsPerPageChange(e.detail.value) }));
1236
- }
1237
- let boxContent = null;
1238
- let containerStyle = {};
1239
- if (this.rows.length === 0) {
1240
- boxContent = (h("p", { id: "empty-data-message" }, this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA)));
1241
- containerStyle = { 'grid-template-columns': `repeat(1, 1fr)` };
1242
- }
1243
- else if (isKanban) {
1244
- const kanban = this.kanbanMode();
1245
- boxContent = kanban.jsx;
1246
- containerStyle = kanban.style;
1247
- }
1248
- else {
1249
- containerStyle = {
1250
- 'grid-template-columns': `repeat(${this.columns}, 1fr)`,
1251
- };
1252
- const rows = this.rows;
1253
- let size = rows.length;
1254
- let cnt = 0;
1255
- boxContent = [];
1256
- while (size-- > 0) {
1257
- boxContent.push(this.renderRow(rows[cnt++]));
1258
- }
1259
- }
1260
- return (h(Host, null, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, h("div", { class: 'box-component', ref: (el) => (this.sectionRef = el) }, sortPanel, filterPanel, paginator, h("div", { class: isKanban ? 'is-kanban' : '', id: 'box-container', style: containerStyle, onContextMenu: (e) => {
1261
- e.preventDefault();
1262
- }, ref: (el) => (this.boxContainer =
1263
- el) }, boxContent)))));
1264
- }
1265
- disconnectedCallback() {
1266
- this.kupManager.interact.unregister(this.interactableDrag.concat(this.interactableDrop));
1267
- this.kupManager.language.unregister(this);
1268
- this.kupManager.theme.unregister(this);
1269
- if (this.scrollOnHover) {
1270
- this.kupManager.scrollOnHover.unregister(this.boxContainer);
1271
- }
1272
- // When component is destroyed, then the listener is removed. @See clickFunction for more details
1273
- document.removeEventListener('click', this.clickFunction.bind(this));
1274
- this.kupDidUnload.emit({ comp: this, id: this.rootElement.id });
1275
- }
1276
- get rootElement() { return getElement(this); }
1277
- static get watchers() { return {
1278
- "pageSize": ["rowsPerPageHandler", "recalculateRows"],
1279
- "globalFilterValue": ["recalculateRows"],
1280
- "sortBy": ["recalculateRows"],
1281
- "pagination": ["recalculateRows"],
1282
- "currentPage": ["recalculateRows"],
1283
- "currentRowsPerPage": ["recalculateRows"],
1284
- "data": ["onDataChanged"],
1285
- "layout": ["onLayoutChanged"],
1286
- "selectBox": ["onSelectBoxChanged"]
1287
- }; }
1288
- };
1289
- KupBox.style = kupBoxCss;
5
+ import { g as getColumnByName } from './cell-utils-cb5d4149.js';
1290
6
 
1291
7
  /*! *****************************************************************************
1292
8
  Copyright (c) Microsoft Corporation.
@@ -16090,55 +14806,55 @@ registerShape('bezierCurve', BezierCurve);
16090
14806
  registerShape('arc', Arc);
16091
14807
 
16092
14808
  const graphic = /*#__PURE__*/Object.freeze({
16093
- __proto__: null,
16094
- updateProps: updateProps$1,
16095
- initProps: initProps,
16096
- removeElement: removeElement,
16097
- removeElementWithFadeOut: removeElementWithFadeOut,
16098
- isElementRemoved: isElementRemoved,
16099
- extendShape: extendShape,
16100
- extendPath: extendPath,
16101
- registerShape: registerShape,
16102
- getShapeClass: getShapeClass,
16103
- makePath: makePath,
16104
- makeImage: makeImage,
16105
- mergePath: mergePath,
16106
- resizePath: resizePath,
16107
- subPixelOptimizeLine: subPixelOptimizeLine,
16108
- subPixelOptimizeRect: subPixelOptimizeRect,
16109
- subPixelOptimize: subPixelOptimize,
16110
- getTransform: getTransform$1,
16111
- applyTransform: applyTransform,
16112
- transformDirection: transformDirection,
16113
- groupTransition: groupTransition,
16114
- clipPointsByRect: clipPointsByRect,
16115
- clipRectByRect: clipRectByRect,
16116
- createIcon: createIcon,
16117
- linePolygonIntersect: linePolygonIntersect,
16118
- lineLineIntersect: lineLineIntersect$1,
16119
- setTooltipConfig: setTooltipConfig,
16120
- traverseElements: traverseElements,
16121
- Group: Group$3,
16122
- Image: ZRImage,
16123
- Text: ZRText,
16124
- Circle: Circle,
16125
- Ellipse: Ellipse,
16126
- Sector: Sector,
16127
- Ring: Ring,
16128
- Polygon: Polygon,
16129
- Polyline: Polyline$1,
16130
- Rect: Rect$2,
16131
- Line: Line$1,
16132
- BezierCurve: BezierCurve,
16133
- Arc: Arc,
16134
- IncrementalDisplayable: IncrementalDisplayable,
16135
- CompoundPath: CompoundPath,
16136
- LinearGradient: LinearGradient,
16137
- RadialGradient: RadialGradient,
16138
- BoundingRect: BoundingRect,
16139
- OrientedBoundingRect: OrientedBoundingRect,
16140
- Point: Point,
16141
- Path: Path
14809
+ __proto__: null,
14810
+ updateProps: updateProps$1,
14811
+ initProps: initProps,
14812
+ removeElement: removeElement,
14813
+ removeElementWithFadeOut: removeElementWithFadeOut,
14814
+ isElementRemoved: isElementRemoved,
14815
+ extendShape: extendShape,
14816
+ extendPath: extendPath,
14817
+ registerShape: registerShape,
14818
+ getShapeClass: getShapeClass,
14819
+ makePath: makePath,
14820
+ makeImage: makeImage,
14821
+ mergePath: mergePath,
14822
+ resizePath: resizePath,
14823
+ subPixelOptimizeLine: subPixelOptimizeLine,
14824
+ subPixelOptimizeRect: subPixelOptimizeRect,
14825
+ subPixelOptimize: subPixelOptimize,
14826
+ getTransform: getTransform$1,
14827
+ applyTransform: applyTransform,
14828
+ transformDirection: transformDirection,
14829
+ groupTransition: groupTransition,
14830
+ clipPointsByRect: clipPointsByRect,
14831
+ clipRectByRect: clipRectByRect,
14832
+ createIcon: createIcon,
14833
+ linePolygonIntersect: linePolygonIntersect,
14834
+ lineLineIntersect: lineLineIntersect$1,
14835
+ setTooltipConfig: setTooltipConfig,
14836
+ traverseElements: traverseElements,
14837
+ Group: Group$3,
14838
+ Image: ZRImage,
14839
+ Text: ZRText,
14840
+ Circle: Circle,
14841
+ Ellipse: Ellipse,
14842
+ Sector: Sector,
14843
+ Ring: Ring,
14844
+ Polygon: Polygon,
14845
+ Polyline: Polyline$1,
14846
+ Rect: Rect$2,
14847
+ Line: Line$1,
14848
+ BezierCurve: BezierCurve,
14849
+ Arc: Arc,
14850
+ IncrementalDisplayable: IncrementalDisplayable,
14851
+ CompoundPath: CompoundPath,
14852
+ LinearGradient: LinearGradient,
14853
+ RadialGradient: RadialGradient,
14854
+ BoundingRect: BoundingRect,
14855
+ OrientedBoundingRect: OrientedBoundingRect,
14856
+ Point: Point,
14857
+ Path: Path
16142
14858
  });
16143
14859
 
16144
14860
  var EMPTY_OBJ = {};
@@ -95488,4 +94204,4 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
95488
94204
  };
95489
94205
  KupEchart.style = kupEchartCss;
95490
94206
 
95491
- export { KupBox as kup_box, KupEchart as kup_echart };
94207
+ export { KupEchart as kup_echart };