@sme.up/ketchup 11.0.5 → 11.0.7

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 (229) hide show
  1. package/dist/cjs/{f-cell-d7ac8d4e.js → f-cell-eed32cd7.js} +4 -4
  2. package/dist/cjs/{f-chip-e8b709c3.js → f-chip-ec543689.js} +1 -1
  3. package/dist/cjs/{f-object-field-3ab19cc3.js → f-object-field-1ddaee2d.js} +2 -2
  4. package/dist/cjs/{f-paginator-utils-f9c65479.js → f-paginator-utils-f0d22b06.js} +1 -1
  5. package/dist/cjs/{f-text-field-e8ac044b.js → f-text-field-4d4fa492.js} +1 -1
  6. package/dist/cjs/index.cjs.js +2 -2
  7. package/dist/cjs/ketchup.cjs.js +1 -1
  8. package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
  9. package/dist/cjs/kup-activity-timeline.cjs.entry.js +3 -3
  10. package/dist/cjs/kup-autocomplete_30.cjs.entry.js +123 -28
  11. package/dist/cjs/kup-box.cjs.entry.js +16 -13
  12. package/dist/cjs/kup-calendar.cjs.entry.js +3 -3
  13. package/dist/cjs/kup-card-list.cjs.entry.js +2 -2
  14. package/dist/cjs/kup-cell.cjs.entry.js +6 -6
  15. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +1 -1
  16. package/dist/cjs/kup-dashboard.cjs.entry.js +3 -3
  17. package/dist/cjs/{kup-data-table-helper-02b0fb46.js → kup-data-table-helper-9a9ad503.js} +2 -2
  18. package/dist/cjs/{kup-dates-84f0bc78.js → kup-dates-594b0f91.js} +1 -1
  19. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-echart.cjs.entry.js +2 -2
  21. package/dist/cjs/kup-editor.cjs.entry.js +2 -2
  22. package/dist/cjs/kup-family-tree.cjs.entry.js +2 -2
  23. package/dist/cjs/kup-gantt_10.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-grid.cjs.entry.js +2 -2
  25. package/dist/cjs/kup-htm.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  27. package/dist/cjs/kup-input-panel.cjs.entry.js +14 -10
  28. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
  30. package/dist/cjs/{kup-manager-518e11f4.js → kup-manager-8787fc42.js} +174 -20
  31. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  33. package/dist/cjs/kup-object-field.cjs.entry.js +4 -4
  34. package/dist/cjs/{kup-planner-renderer-helper-7123c277.js → kup-planner-renderer-helper-a2e9a62c.js} +1 -1
  35. package/dist/cjs/kup-planner-renderer.cjs.entry.js +2 -2
  36. package/dist/cjs/kup-planner.cjs.entry.js +3 -3
  37. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  38. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  39. package/dist/cjs/kup-snackbar.cjs.entry.js +2 -2
  40. package/dist/cjs/kup-txt.cjs.entry.js +2 -2
  41. package/dist/cjs/kup-typography-list.cjs.entry.js +2 -2
  42. package/dist/cjs/kup-typography.cjs.entry.js +2 -2
  43. package/dist/cjs/loader.cjs.js +1 -1
  44. package/dist/collection/components/kup-box/kup-box.js +8 -5
  45. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +20 -5
  46. package/dist/collection/components/kup-card/kup-card.css +4 -0
  47. package/dist/collection/components/kup-card/kup-card.js +6 -0
  48. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
  49. package/dist/collection/components/kup-data-table/kup-data-table.js +109 -14
  50. package/dist/collection/components/kup-input-panel/kup-input-panel.js +8 -4
  51. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +4 -4
  52. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +5 -5
  53. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +35 -12
  54. package/dist/collection/managers/kup-language/kup-language-declarations.js +1 -0
  55. package/dist/collection/managers/kup-theme/kup-theme.js +129 -7
  56. package/dist/components/index.js +1 -1
  57. package/dist/components/kup-accordion.js +2 -2
  58. package/dist/components/kup-activity-timeline.js +2 -2
  59. package/dist/components/kup-autocomplete.js +1 -1
  60. package/dist/components/kup-badge.js +1 -1
  61. package/dist/components/kup-box.js +1 -1
  62. package/dist/components/kup-button-list.js +1 -1
  63. package/dist/components/kup-button.js +1 -1
  64. package/dist/components/kup-calendar.js +3 -3
  65. package/dist/components/kup-card-list.js +3 -3
  66. package/dist/components/kup-card.js +1 -1
  67. package/dist/components/kup-cell.js +2 -2
  68. package/dist/components/kup-chart.js +1 -1
  69. package/dist/components/kup-checkbox.js +1 -1
  70. package/dist/components/kup-chip.js +1 -1
  71. package/dist/components/kup-color-picker.js +1 -1
  72. package/dist/components/kup-combobox.js +1 -1
  73. package/dist/components/kup-custom-task-list-table.js +1 -1
  74. package/dist/components/kup-dashboard.js +2 -2
  75. package/dist/components/kup-data-table.js +1 -1
  76. package/dist/components/kup-date-picker.js +1 -1
  77. package/dist/components/kup-dialog.js +1 -1
  78. package/dist/components/kup-drawer.js +2 -2
  79. package/dist/components/kup-dropdown-button.js +1 -1
  80. package/dist/components/kup-echart.js +1 -1
  81. package/dist/components/kup-editor.js +1 -1
  82. package/dist/components/kup-family-tree.js +3 -3
  83. package/dist/components/kup-file-upload.js +1 -1
  84. package/dist/components/kup-form.js +1 -1
  85. package/dist/components/kup-gantt.js +1 -1
  86. package/dist/components/kup-gauge.js +1 -1
  87. package/dist/components/kup-grid.js +1 -1
  88. package/dist/components/kup-htm.js +2 -2
  89. package/dist/components/kup-iframe.js +2 -2
  90. package/dist/components/kup-image-list.js +1 -1
  91. package/dist/components/kup-image.js +1 -1
  92. package/dist/components/kup-input-panel.js +11 -7
  93. package/dist/components/kup-lazy.js +2 -2
  94. package/dist/components/kup-list.js +1 -1
  95. package/dist/components/kup-magic-box.js +4 -4
  96. package/dist/components/kup-nav-bar.js +2 -2
  97. package/dist/components/kup-numeric-picker.js +2 -2
  98. package/dist/components/kup-object-field.js +2 -2
  99. package/dist/components/kup-planner-renderer.js +1 -1
  100. package/dist/components/kup-planner.js +6 -6
  101. package/dist/components/kup-probe.js +2 -2
  102. package/dist/components/kup-progress-bar.js +1 -1
  103. package/dist/components/kup-qlik.js +2 -2
  104. package/dist/components/kup-radio.js +1 -1
  105. package/dist/components/kup-rating.js +1 -1
  106. package/dist/components/kup-snackbar.js +2 -2
  107. package/dist/components/kup-spinner.js +1 -1
  108. package/dist/components/kup-switch.js +1 -1
  109. package/dist/components/kup-tab-bar.js +1 -1
  110. package/dist/components/kup-task-list.js +1 -1
  111. package/dist/components/kup-text-field.js +1 -1
  112. package/dist/components/kup-time-picker.js +1 -1
  113. package/dist/components/kup-toolbar.js +1 -1
  114. package/dist/components/kup-tree.js +1 -1
  115. package/dist/components/kup-txt.js +2 -2
  116. package/dist/components/kup-typography-list.js +2 -2
  117. package/dist/components/kup-typography.js +2 -2
  118. package/dist/components/{p-4e14ce99.js → p-362d7a44.js} +175 -21
  119. package/dist/components/{p-3cae4730.js → p-5f1a69e4.js} +2 -2
  120. package/dist/components/{p-bc63c612.js → p-6e16d432.js} +1 -1
  121. package/dist/components/{p-3a2aa794.js → p-9e6dfc20.js} +2 -2
  122. package/dist/components/{p-3c28a421.js → p-a30c0106.js} +119 -23
  123. package/dist/components/{p-571ebd17.js → p-b85372ba.js} +2 -2
  124. package/dist/components/{p-253bbc27.js → p-e67d1f0e.js} +4 -4
  125. package/dist/components/{p-b23df37b.js → p-ea482528.js} +1 -1
  126. package/dist/components/{p-d2c85296.js → p-f1766ad7.js} +2 -2
  127. package/dist/components/{p-7b004e12.js → p-fc3df00a.js} +2 -2
  128. package/dist/components/{p-2ae1b3af.js → p-fcdae215.js} +10 -7
  129. package/dist/esm/{f-cell-ef478d3f.js → f-cell-bd79ffef.js} +4 -4
  130. package/dist/esm/{f-chip-25b200ab.js → f-chip-c22107de.js} +1 -1
  131. package/dist/esm/{f-object-field-8306fe8f.js → f-object-field-90dfb903.js} +2 -2
  132. package/dist/esm/{f-paginator-utils-53de6f1c.js → f-paginator-utils-38b51762.js} +1 -1
  133. package/dist/esm/{f-text-field-465cc102.js → f-text-field-31ad8f7f.js} +1 -1
  134. package/dist/esm/index.js +2 -2
  135. package/dist/esm/ketchup.js +1 -1
  136. package/dist/esm/kup-accordion.entry.js +2 -2
  137. package/dist/esm/kup-activity-timeline.entry.js +3 -3
  138. package/dist/esm/kup-autocomplete_30.entry.js +123 -28
  139. package/dist/esm/kup-box.entry.js +16 -13
  140. package/dist/esm/kup-calendar.entry.js +3 -3
  141. package/dist/esm/kup-card-list.entry.js +2 -2
  142. package/dist/esm/kup-cell.entry.js +6 -6
  143. package/dist/esm/kup-custom-task-list-header_4.entry.js +1 -1
  144. package/dist/esm/kup-dashboard.entry.js +3 -3
  145. package/dist/esm/{kup-data-table-helper-399ccea6.js → kup-data-table-helper-3a60f39d.js} +2 -2
  146. package/dist/esm/{kup-dates-992086f1.js → kup-dates-c38ee99a.js} +1 -1
  147. package/dist/esm/kup-drawer.entry.js +2 -2
  148. package/dist/esm/kup-echart.entry.js +2 -2
  149. package/dist/esm/kup-editor.entry.js +2 -2
  150. package/dist/esm/kup-family-tree.entry.js +2 -2
  151. package/dist/esm/kup-gantt_10.entry.js +2 -2
  152. package/dist/esm/kup-grid.entry.js +2 -2
  153. package/dist/esm/kup-htm.entry.js +2 -2
  154. package/dist/esm/kup-iframe.entry.js +2 -2
  155. package/dist/esm/kup-input-panel.entry.js +14 -10
  156. package/dist/esm/kup-lazy.entry.js +2 -2
  157. package/dist/esm/kup-magic-box.entry.js +2 -2
  158. package/dist/esm/{kup-manager-bc57ec34.js → kup-manager-35960eb2.js} +175 -21
  159. package/dist/esm/kup-nav-bar.entry.js +2 -2
  160. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  161. package/dist/esm/kup-object-field.entry.js +4 -4
  162. package/dist/esm/{kup-planner-renderer-helper-9db7a491.js → kup-planner-renderer-helper-836d9912.js} +1 -1
  163. package/dist/esm/kup-planner-renderer.entry.js +2 -2
  164. package/dist/esm/kup-planner.entry.js +3 -3
  165. package/dist/esm/kup-probe.entry.js +2 -2
  166. package/dist/esm/kup-qlik.entry.js +2 -2
  167. package/dist/esm/kup-snackbar.entry.js +2 -2
  168. package/dist/esm/kup-txt.entry.js +2 -2
  169. package/dist/esm/kup-typography-list.entry.js +2 -2
  170. package/dist/esm/kup-typography.entry.js +2 -2
  171. package/dist/esm/loader.js +1 -1
  172. package/dist/ketchup/index.esm.js +1 -1
  173. package/dist/ketchup/ketchup.esm.js +1 -1
  174. package/dist/ketchup/p-067b5430.entry.js +1 -0
  175. package/dist/ketchup/{p-301fafb0.entry.js → p-08ac13a7.entry.js} +1 -1
  176. package/dist/ketchup/{p-e85f1e78.entry.js → p-13e4d5ef.entry.js} +1 -1
  177. package/dist/ketchup/{p-26e0046e.js → p-1ad40fd0.js} +1 -1
  178. package/dist/ketchup/{p-5fa26942.entry.js → p-21cb6f39.entry.js} +1 -1
  179. package/dist/ketchup/{p-50a341fc.entry.js → p-2d954ca8.entry.js} +1 -1
  180. package/dist/ketchup/p-37c3d27d.js +1 -0
  181. package/dist/ketchup/{p-31a050c6.entry.js → p-3b4d57f5.entry.js} +1 -1
  182. package/dist/ketchup/p-4019d630.js +1 -0
  183. package/dist/ketchup/{p-1f5b1df4.entry.js → p-541d469a.entry.js} +1 -1
  184. package/dist/ketchup/{p-6bc44966.entry.js → p-55e69e9f.entry.js} +1 -1
  185. package/dist/ketchup/{p-85a956cd.js → p-5f82173c.js} +1 -1
  186. package/dist/ketchup/{p-070a0dac.js → p-68dc4ed1.js} +1 -1
  187. package/dist/ketchup/{p-302502d4.entry.js → p-6d3521d6.entry.js} +1 -1
  188. package/dist/ketchup/{p-90f5363e.entry.js → p-6dd48c60.entry.js} +1 -1
  189. package/dist/ketchup/{p-8213526b.entry.js → p-707dff2c.entry.js} +1 -1
  190. package/dist/ketchup/{p-2847ac2b.entry.js → p-751b23b7.entry.js} +1 -1
  191. package/dist/ketchup/{p-8222d46d.entry.js → p-76c2f184.entry.js} +1 -1
  192. package/dist/ketchup/{p-35d6f606.entry.js → p-77117b3a.entry.js} +1 -1
  193. package/dist/ketchup/p-7e0fb905.entry.js +1 -0
  194. package/dist/ketchup/{p-2018e835.entry.js → p-857c601b.entry.js} +1 -1
  195. package/dist/ketchup/{p-552622f5.entry.js → p-939094ef.entry.js} +1 -1
  196. package/dist/ketchup/{p-211d8935.entry.js → p-99761543.entry.js} +1 -1
  197. package/dist/ketchup/{p-e77460f4.js → p-9ae814eb.js} +1 -1
  198. package/dist/ketchup/p-9f5d650a.js +21 -0
  199. package/dist/ketchup/p-a44780fb.entry.js +1 -0
  200. package/dist/ketchup/p-a841aef5.entry.js +1 -0
  201. package/dist/ketchup/p-a8714314.entry.js +8 -0
  202. package/dist/ketchup/{p-56180822.entry.js → p-ab6b96ab.entry.js} +1 -1
  203. package/dist/ketchup/{p-2e6e1479.entry.js → p-b1197adf.entry.js} +1 -1
  204. package/dist/ketchup/{p-5183215e.entry.js → p-b6a5e87c.entry.js} +1 -1
  205. package/dist/ketchup/{p-c907474c.entry.js → p-bbd702fd.entry.js} +1 -1
  206. package/dist/ketchup/{p-ebcf1f74.js → p-c2367aee.js} +1 -1
  207. package/dist/ketchup/{p-e7ccceeb.entry.js → p-c31f37f9.entry.js} +1 -1
  208. package/dist/ketchup/{p-cbea5a29.entry.js → p-c838a17e.entry.js} +1 -1
  209. package/dist/ketchup/{p-bdbbfb48.js → p-d0b30d6a.js} +1 -1
  210. package/dist/ketchup/{p-daacc004.entry.js → p-d66086d5.entry.js} +1 -1
  211. package/dist/ketchup/{p-f96390e2.entry.js → p-d90c27c1.entry.js} +1 -1
  212. package/dist/ketchup/{p-0b5f3245.entry.js → p-df0207be.entry.js} +1 -1
  213. package/dist/ketchup/p-fa177711.entry.js +1 -0
  214. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +2 -1
  215. package/dist/types/components/kup-data-table/kup-data-table.d.ts +7 -0
  216. package/dist/types/components.d.ts +8 -0
  217. package/dist/types/managers/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +2 -0
  218. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +1 -0
  219. package/dist/types/managers/kup-theme/kup-theme.d.ts +17 -0
  220. package/package.json +1 -4
  221. package/dist/ketchup/p-10a3d9cb.js +0 -21
  222. package/dist/ketchup/p-48b91894.entry.js +0 -1
  223. package/dist/ketchup/p-80d8f092.entry.js +0 -1
  224. package/dist/ketchup/p-a78c9d39.js +0 -1
  225. package/dist/ketchup/p-bbf06c90.entry.js +0 -1
  226. package/dist/ketchup/p-c24e94cb.js +0 -1
  227. package/dist/ketchup/p-ebe27d32.entry.js +0 -1
  228. package/dist/ketchup/p-ef780739.entry.js +0 -8
  229. package/dist/ketchup/p-f9767f0a.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const kupDates = require('./kup-dates-84f0bc78.js');
3
+ const kupDates = require('./kup-dates-594b0f91.js');
4
4
  const index = require('./index-c7d441d8.js');
5
5
 
6
6
  /**
@@ -292,6 +292,7 @@ exports.KupLanguageRow = void 0;
292
292
  (function (KupLanguageRow) {
293
293
  KupLanguageRow["DETAIL"] = "rowDetail";
294
294
  KupLanguageRow["EDITABLE_KEY"] = "rowEditableKey";
295
+ KupLanguageRow["ERRORS_IN_ROWS"] = "rowErrorsInRows";
295
296
  KupLanguageRow["KEY"] = "rowKey";
296
297
  KupLanguageRow["NEXT"] = "rowNext";
297
298
  KupLanguageRow["PREVIOUS"] = "rowPrevious";
@@ -1157,10 +1158,22 @@ class KupDynamicPosition {
1157
1158
  * @param {KupDynamicPositionElement[]} elements - Elements to remove from the managed elements set.
1158
1159
  */
1159
1160
  unregister(elements) {
1161
+ var _a;
1160
1162
  if (this.managedElements) {
1161
1163
  for (let index = 0; index < elements.length; index++) {
1162
- this.removeRepositionListeners(elements[index]);
1163
- this.managedElements.delete(elements[index]);
1164
+ const el = elements[index];
1165
+ this.removeRepositionListeners(el);
1166
+ this.managedElements.delete(el);
1167
+ // If the element was detached (moved to the global container),
1168
+ // remove it from the container to avoid orphaned DOM nodes.
1169
+ if (((_a = el === null || el === void 0 ? void 0 : el.kupDynamicPosition) === null || _a === void 0 ? void 0 : _a.detach) && el.parentElement === this.container) {
1170
+ this.container.removeChild(el);
1171
+ }
1172
+ // Sever all object references (originalPath, anchor, etc.)
1173
+ // so the GC can collect detached ancestor nodes.
1174
+ if (el) {
1175
+ el.kupDynamicPosition = null;
1176
+ }
1164
1177
  }
1165
1178
  }
1166
1179
  }
@@ -1339,27 +1352,38 @@ class KupDynamicPosition {
1339
1352
  window.addEventListener('resize', repositionListener);
1340
1353
  window.addEventListener('scroll', repositionListener);
1341
1354
  if ((_a = el === null || el === void 0 ? void 0 : el.kupDynamicPosition) === null || _a === void 0 ? void 0 : _a.anchor) {
1355
+ const scrollTargets = [];
1342
1356
  let container = this.getAnchorContainer(el);
1343
- this.updateEventListenerOnAncestors(container, (el) => {
1344
- if (this.isScrollable(el)) {
1345
- el.addEventListener('scroll', repositionListener);
1357
+ this.updateEventListenerOnAncestors(container, (ancestor) => {
1358
+ if (this.isScrollable(ancestor)) {
1359
+ ancestor.addEventListener('scroll', repositionListener);
1360
+ scrollTargets.push(ancestor);
1346
1361
  }
1347
1362
  });
1363
+ // Store which ancestors received scroll listeners for reliable cleanup.
1364
+ if (el.kupDynamicPosition) {
1365
+ el.kupDynamicPosition.scrollListenerTargets = scrollTargets;
1366
+ }
1348
1367
  }
1349
1368
  el._repositionListener = repositionListener;
1350
1369
  }
1351
1370
  removeRepositionListeners(el) {
1352
1371
  var _a;
1353
1372
  const repositionListener = el._repositionListener;
1373
+ if (!repositionListener) {
1374
+ return;
1375
+ }
1354
1376
  window.removeEventListener('resize', repositionListener);
1355
1377
  window.removeEventListener('scroll', repositionListener);
1356
- if ((_a = el === null || el === void 0 ? void 0 : el.kupDynamicPosition) === null || _a === void 0 ? void 0 : _a.anchor) {
1357
- let container = this.getAnchorContainer(el);
1358
- this.updateEventListenerOnAncestors(container, (el) => {
1359
- if (this.isScrollable(el)) {
1360
- el.removeEventListener('scroll', repositionListener);
1361
- }
1362
- });
1378
+ // Use the stored list of scroll targets for reliable removal:
1379
+ // re-evaluating isScrollable during teardown is unreliable because
1380
+ // computed styles may have changed, causing listeners to leak.
1381
+ const scrollTargets = (_a = el === null || el === void 0 ? void 0 : el.kupDynamicPosition) === null || _a === void 0 ? void 0 : _a.scrollListenerTargets;
1382
+ if (scrollTargets === null || scrollTargets === void 0 ? void 0 : scrollTargets.length) {
1383
+ for (const target of scrollTargets) {
1384
+ target.removeEventListener('scroll', repositionListener);
1385
+ }
1386
+ el.kupDynamicPosition.scrollListenerTargets = [];
1363
1387
  }
1364
1388
  delete el._repositionListener;
1365
1389
  }
@@ -2000,6 +2024,7 @@ const chinese = {
2000
2024
  pageTotal: "总页数",
2001
2025
  rowDetail: "行详细信息",
2002
2026
  rowEditableKey: "可编辑的记录键",
2027
+ rowErrorsInRows: "修改的行中存在错误",
2003
2028
  rowKey: "记录键",
2004
2029
  rowNext: "下一行",
2005
2030
  rowPrevious: "上一行",
@@ -2127,6 +2152,7 @@ const english = {
2127
2152
  pageTotal: "Total",
2128
2153
  rowDetail: "Row detail",
2129
2154
  rowEditableKey: "Editable record key",
2155
+ rowErrorsInRows: "There are errors in the modified rows",
2130
2156
  rowKey: "Record key",
2131
2157
  rowNext: "Next row",
2132
2158
  rowPrevious: "Previous row",
@@ -2264,6 +2290,7 @@ const french = {
2264
2290
  pageTotal: "Pages totales",
2265
2291
  rowDetail: "Détail de la ligne",
2266
2292
  rowEditableKey: "Clé d'enregistrement modifiable",
2293
+ rowErrorsInRows: "Des erreurs sont présentes dans les lignes modifiées",
2267
2294
  rowKey: "Clé d'enregistrement",
2268
2295
  rowNext: "Ligne suivante",
2269
2296
  rowPrevious: "Ligne précédente",
@@ -2391,6 +2418,7 @@ const italian = {
2391
2418
  pageTotal: "Totale",
2392
2419
  rowDetail: "Dettaglio riga",
2393
2420
  rowEditableKey: "Chiave record editabile",
2421
+ rowErrorsInRows: "Sono presenti errori nelle righe modificate",
2394
2422
  rowKey: "Chiave record",
2395
2423
  rowNext: "Riga successiva",
2396
2424
  rowPrevious: "Riga precedente",
@@ -2542,6 +2570,7 @@ const polish = {
2542
2570
  pageTotal: "Wszystkie strony",
2543
2571
  rowDetail: "Szczegóły rzędu",
2544
2572
  rowEditableKey: "Edytowalny klucz nagrywania",
2573
+ rowErrorsInRows: "W zmodyfikowanych wierszach występują błędy",
2545
2574
  rowKey: "Klucz nagrywania",
2546
2575
  rowNext: "Następny rząd",
2547
2576
  rowPrevious: "Poprzedni wiersz",
@@ -2668,6 +2697,7 @@ const russian = {
2668
2697
  pageTotal: "Всего страниц",
2669
2698
  rowDetail: "Детали строки",
2670
2699
  rowEditableKey: "Редактируемый ключ записи",
2700
+ rowErrorsInRows: "В изменённых строках есть ошибки",
2671
2701
  rowKey: "Ключ записи",
2672
2702
  rowNext: "Следующая строка",
2673
2703
  rowPrevious: "Предыдущая строка",
@@ -2794,6 +2824,7 @@ const spanish = {
2794
2824
  pageTotal: "Paginas totales",
2795
2825
  rowDetail: "Detalle de fila",
2796
2826
  rowEditableKey: "Clave de registro editable",
2827
+ rowErrorsInRows: "Hay errores en las filas modificadas",
2797
2828
  rowKey: "Grabar clave",
2798
2829
  rowNext: "Siguiente fila",
2799
2830
  rowPrevious: "Fila anterior",
@@ -7014,6 +7045,66 @@ class KupTheme {
7014
7045
  * Initializes KupTheme.
7015
7046
  */
7016
7047
  constructor(list, name) {
7048
+ this.supportsConstructable = typeof window !== 'undefined' &&
7049
+ typeof window.CSSStyleSheet !== 'undefined' &&
7050
+ 'adoptedStyleSheets' in Document.prototype &&
7051
+ 'adoptedStyleSheets' in ShadowRoot.prototype;
7052
+ this.adoptedStyleSheetsTargets = new Set([
7053
+ 'KUP-AUTOCOMPLETE',
7054
+ 'KUP-ACCORDION',
7055
+ 'KUP-ACTIVITY-TIMELINE',
7056
+ 'KUP-BADGE',
7057
+ 'KUP-BUTTON',
7058
+ 'KUP-BUTTON-LIST',
7059
+ 'KUP-BOX',
7060
+ 'KUP-CARD',
7061
+ 'KUP-CARD-LIST',
7062
+ 'KUP-CALENDAR',
7063
+ 'KUP-CHIP',
7064
+ 'KUP-CHECKBOX',
7065
+ 'KUP-CHART',
7066
+ 'KUP-COLOR-PICKER',
7067
+ 'KUP-COMBOBOX',
7068
+ 'KUP-DASHBOARD',
7069
+ 'KUP-DATA-TABLE',
7070
+ 'KUP-DATE-PICKER',
7071
+ 'KUP-DIALOG',
7072
+ 'KUP-DROPDOWN-BUTTON',
7073
+ 'KUP-DRAWER',
7074
+ 'KUP-ECHART',
7075
+ 'KUP-FILE-UPLOAD',
7076
+ 'KUP-FAMILY-TREE',
7077
+ 'KUP-FORM',
7078
+ 'KUP-GAUGE',
7079
+ 'KUP-GRID',
7080
+ 'KUP-HTM',
7081
+ 'KUP-IMAGE',
7082
+ 'KUP-IMAGE-LIST',
7083
+ 'KUP-INPUT-PANEL',
7084
+ 'KUP-LAZY',
7085
+ 'KUP-LIST',
7086
+ 'KUP-MAGIC-BOX',
7087
+ 'KUP-NAV-BAR',
7088
+ 'KUP-NUMERIC-PICKER',
7089
+ 'KUP-OBJECT-FIELD',
7090
+ 'KUP-PLANNER',
7091
+ 'KUP-PROGRESS-BAR',
7092
+ 'KUP-PROBE',
7093
+ 'KUP-RATING',
7094
+ 'KUP-RADIO',
7095
+ 'KUP-SNACKBAR',
7096
+ 'KUP-SPINNER',
7097
+ 'KUP-SWITCH',
7098
+ 'KUP-TAB-BAR',
7099
+ 'KUP-TEXT-FIELD',
7100
+ 'KUP-TIME-PICKER',
7101
+ 'KUP-TOOLBAR',
7102
+ 'KUP-TREE',
7103
+ 'KUP-TXT',
7104
+ 'KUP-TYPOGRAPHY',
7105
+ 'KUP-TYPOGRAPHY-LIST',
7106
+ ]);
7107
+ this.sharedSheets = new Map();
7017
7108
  this.cssVars = {};
7018
7109
  this.list = list ? list : themes;
7019
7110
  this.managedComponents = new Set();
@@ -7097,6 +7188,28 @@ class KupTheme {
7097
7188
  }
7098
7189
  });
7099
7190
  }
7191
+ /**
7192
+ * Updates Constructable StyleSheets stored in cache.
7193
+ */
7194
+ updateSharedSheets() {
7195
+ if (!this.supportsConstructable) {
7196
+ return;
7197
+ }
7198
+ this.sharedSheets.forEach((sheet, tagName) => {
7199
+ sheet.replaceSync(this.getSharedStyle(tagName));
7200
+ });
7201
+ }
7202
+ hasManagedComponentForTag(tagName) {
7203
+ for (const comp of this.managedComponents) {
7204
+ const compTagName = comp.tagName;
7205
+ if (compTagName === tagName &&
7206
+ this.adoptedStyleSheetsTargets.has(compTagName) &&
7207
+ comp.isConnected) {
7208
+ return true;
7209
+ }
7210
+ }
7211
+ return false;
7212
+ }
7100
7213
  /**
7101
7214
  * Sets the theme using this.name or the function's argument.
7102
7215
  * @param {string} name - When present, this theme will be set.
@@ -7123,6 +7236,7 @@ class KupTheme {
7123
7236
  this.icons() +
7124
7237
  '}' +
7125
7238
  kupThemeApplicationCss$1;
7239
+ this.updateSharedSheets();
7126
7240
  this.customStyle();
7127
7241
  document.documentElement.setAttribute('kup-theme', this.name);
7128
7242
  document.dispatchEvent(new CustomEvent('kup-theme-change'));
@@ -7152,6 +7266,7 @@ class KupTheme {
7152
7266
  this.cssVariables() +
7153
7267
  this.icons() +
7154
7268
  '}';
7269
+ this.updateSharedSheets();
7155
7270
  this.customStyle();
7156
7271
  dom$c.ketchup.debug.logMessage('kup-theme', 'Theme ' + dom$c.getAttribute('kup-theme') + ' refreshed.');
7157
7272
  document.dispatchEvent(new CustomEvent('kup-theme-refresh'));
@@ -7175,24 +7290,29 @@ class KupTheme {
7175
7290
  if (this.managedComponents) {
7176
7291
  this.managedComponents.delete(comp.rootElement ? comp.rootElement : comp);
7177
7292
  }
7293
+ if (this.supportsConstructable) {
7294
+ const tagName = comp.tagName;
7295
+ if (!this.hasManagedComponentForTag(tagName)) {
7296
+ this.sharedSheets.delete(tagName);
7297
+ }
7298
+ }
7178
7299
  }
7179
7300
  /**
7180
7301
  * Combines global (style every component should have), theme's and component's customStyles, returning the result.
7181
7302
  * @param comp - The component calling this function.
7182
7303
  * @returns {string} Combined customStyle.
7183
7304
  */
7184
- setKupStyle(comp) {
7305
+ /**
7306
+ * Helper to get the shared style (components common styles, global and component overrides, F-components styles).
7307
+ */
7308
+ getSharedStyle(tagName) {
7185
7309
  const styles = this.list[this.name].customStyles;
7186
- const tagName = comp.tagName;
7187
7310
  let completeStyle = kupThemeComponentCss$1;
7188
7311
  if (styles && styles[masterCustomStyle]) {
7189
7312
  completeStyle += styles[masterCustomStyle];
7190
7313
  }
7191
- if (styles && styles[comp.tagName]) {
7192
- completeStyle += ' ' + styles[comp.tagName];
7193
- }
7194
- if (comp.customStyle) {
7195
- completeStyle += ' ' + comp.customStyle;
7314
+ if (styles && styles[tagName]) {
7315
+ completeStyle += ' ' + styles[tagName];
7196
7316
  }
7197
7317
  if (tagName) {
7198
7318
  if (fButtonUsers.includes(tagName)) {
@@ -7241,6 +7361,39 @@ class KupTheme {
7241
7361
  completeStyle += fObjectFieldCss$1;
7242
7362
  }
7243
7363
  }
7364
+ return completeStyle;
7365
+ }
7366
+ /**
7367
+ * Combines global (style every component should have), theme's and component's customStyles, returning the result.
7368
+ * @param comp - The component calling this function.
7369
+ * @returns {string} Combined customStyle.
7370
+ */
7371
+ setKupStyle(comp) {
7372
+ const tagName = comp.tagName;
7373
+ const hasAdoptedSupport = this.supportsConstructable &&
7374
+ this.adoptedStyleSheetsTargets.has(tagName);
7375
+ if (hasAdoptedSupport) {
7376
+ const shadowRoot = comp.shadowRoot;
7377
+ if (shadowRoot) {
7378
+ let sheet = this.sharedSheets.get(tagName);
7379
+ if (!sheet) {
7380
+ sheet = new CSSStyleSheet();
7381
+ sheet.replaceSync(this.getSharedStyle(tagName));
7382
+ this.sharedSheets.set(tagName, sheet);
7383
+ }
7384
+ if (!shadowRoot.adoptedStyleSheets.includes(sheet)) {
7385
+ shadowRoot.adoptedStyleSheets = [
7386
+ ...shadowRoot.adoptedStyleSheets,
7387
+ sheet,
7388
+ ];
7389
+ }
7390
+ }
7391
+ return comp.customStyle ? comp.customStyle : null;
7392
+ }
7393
+ let completeStyle = this.getSharedStyle(tagName);
7394
+ if (comp.customStyle) {
7395
+ completeStyle += ' ' + comp.customStyle;
7396
+ }
7244
7397
  return completeStyle ? completeStyle : null;
7245
7398
  }
7246
7399
  /**
@@ -8119,6 +8272,7 @@ exports.KupDataTableProps = void 0;
8119
8272
  KupDataTableProps["updatableData"] = "When set to true, editable cells will be rendered using input components and update button will appair below the matrix";
8120
8273
  KupDataTableProps["updateOnClick"] = "When set to true, editable checkbox will call update";
8121
8274
  KupDataTableProps["visibleColumns"] = "Defines the columns that are visible in the table";
8275
+ KupDataTableProps["showMessage"] = "Callback invoked to display an error message (e.g. errors on hidden columns). When provided, the default built-in dialog is not shown.";
8122
8276
  })(exports.KupDataTableProps || (exports.KupDataTableProps = {}));
8123
8277
  exports.SortMode = void 0;
8124
8278
  (function (SortMode) {
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c7d441d8.js');
6
- const kupManager = require('./kup-manager-518e11f4.js');
6
+ const kupManager = require('./kup-manager-8787fc42.js');
7
7
  const GenericVariables = require('./GenericVariables-1d52ba57.js');
8
- require('./kup-dates-84f0bc78.js');
8
+ require('./kup-dates-594b0f91.js');
9
9
 
10
10
  const navbarClass = 'nav-bar';
11
11
  /**
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c7d441d8.js');
6
- const kupManager = require('./kup-manager-518e11f4.js');
6
+ const kupManager = require('./kup-manager-8787fc42.js');
7
7
  const GenericVariables = require('./GenericVariables-1d52ba57.js');
8
- const fTextField = require('./f-text-field-e8ac044b.js');
8
+ const fTextField = require('./f-text-field-4d4fa492.js');
9
9
  const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
10
- require('./kup-dates-84f0bc78.js');
10
+ require('./kup-dates-594b0f91.js');
11
11
  require('./f-image-5a33fd05.js');
12
12
  require('./component-a6dd6c14.js');
13
13
 
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c7d441d8.js');
6
- const fObjectField = require('./f-object-field-3ab19cc3.js');
7
- const kupManager = require('./kup-manager-518e11f4.js');
6
+ const fObjectField = require('./f-object-field-1ddaee2d.js');
7
+ const kupManager = require('./kup-manager-8787fc42.js');
8
8
  const GenericVariables = require('./GenericVariables-1d52ba57.js');
9
9
  require('./f-button-9aca7812.js');
10
10
  require('./f-button-declarations-76ef9f87.js');
11
11
  require('./f-image-5a33fd05.js');
12
- require('./f-text-field-e8ac044b.js');
13
- require('./kup-dates-84f0bc78.js');
12
+ require('./f-text-field-4d4fa492.js');
13
+ require('./kup-dates-594b0f91.js');
14
14
 
15
15
  /**
16
16
  * Props of the kup-object-field component.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const kupDates = require('./kup-dates-84f0bc78.js');
3
+ const kupDates = require('./kup-dates-594b0f91.js');
4
4
 
5
5
  const columnWidthForTimeUnit = (timeUnit) => {
6
6
  switch (timeUnit) {
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c7d441d8.js');
6
- const kupPlannerRendererHelper = require('./kup-planner-renderer-helper-7123c277.js');
6
+ const kupPlannerRendererHelper = require('./kup-planner-renderer-helper-a2e9a62c.js');
7
7
  const kupPlannerDeclarations = require('./kup-planner-declarations-7291d01c.js');
8
- const kupDates = require('./kup-dates-84f0bc78.js');
8
+ const kupDates = require('./kup-dates-594b0f91.js');
9
9
  const kupPlannerTimeFormatter = require('./kup-planner-time-formatter-b7dca3ea.js');
10
10
 
11
11
  const CustomTooltipHOC = () => {
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c7d441d8.js');
6
- const kupManager$1 = require('./kup-manager-518e11f4.js');
6
+ const kupManager$1 = require('./kup-manager-8787fc42.js');
7
7
  const kupPlannerDeclarations = require('./kup-planner-declarations-7291d01c.js');
8
8
  const GenericVariables = require('./GenericVariables-1d52ba57.js');
9
- const fTextField = require('./f-text-field-e8ac044b.js');
9
+ const fTextField = require('./f-text-field-4d4fa492.js');
10
10
  const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
11
- require('./kup-dates-84f0bc78.js');
11
+ require('./kup-dates-594b0f91.js');
12
12
  require('./f-image-5a33fd05.js');
13
13
  require('./component-a6dd6c14.js');
14
14
 
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c7d441d8.js');
6
- const kupManager = require('./kup-manager-518e11f4.js');
6
+ const kupManager = require('./kup-manager-8787fc42.js');
7
7
  const GenericVariables = require('./GenericVariables-1d52ba57.js');
8
- require('./kup-dates-84f0bc78.js');
8
+ require('./kup-dates-594b0f91.js');
9
9
 
10
10
  const KupProbe = class {
11
11
  constructor(hostRef) {
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c7d441d8.js');
6
- const kupManager = require('./kup-manager-518e11f4.js');
7
- require('./kup-dates-84f0bc78.js');
6
+ const kupManager = require('./kup-manager-8787fc42.js');
7
+ require('./kup-dates-594b0f91.js');
8
8
 
9
9
  const kupQlikCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.kup-qlik-container-fluid{width:100%}.kup-qlik-container{width:100%}@media (min-width: 576px){.kup-qlik-container{width:576px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 768px){.kup-qlik-container{width:768px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 992px){.kup-qlik-container{width:992px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 1200px){.kup-qlik-container{width:1200px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}.kup-qlik-row{display:flex;display:ms-flexbox;flex-wrap:wrap;-ms-flex-wrap:wrap;margin-bottom:5px}.kup-qlik-row .size-M{height:var(--lyo_obj-height)}.kup-qlik-row .size-S{height:calc(var(--lyo_obj-height) / 2)}.kup-qlik-row .size-XS{height:calc(var(--lyo_obj-height) / 3)}.kup-qlik-row .size-L{height:calc(var(--lyo_obj-height) * 2)}.kup-qlik-row .size-XL{height:calc(var(--lyo_obj-height) * 3)}.kup-qlik-row .bordered{border:1px solid var(--kup-border-subtle, #969696)}.kup-qlik-row .width-1{width:8.3333%}.kup-qlik-row .width-2{width:16.6666%}.kup-qlik-row .width-3{width:25%}.kup-qlik-row .width-4{width:33.3333%}.kup-qlik-row .width-5{width:41.6666%}.kup-qlik-row .width-6{width:50%}.kup-qlik-row .width-7{width:58.3333%}.kup-qlik-row .width-8{width:66.6666%}.kup-qlik-row .width-9{width:75%}.kup-qlik-row .width-10{width:83.3333%}.kup-qlik-row .width-11{width:91.6666%}.kup-qlik-row .width-12{width:100%}";
10
10
  const KupQlikStyle0 = kupQlikCss;
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c7d441d8.js');
6
- const kupManager = require('./kup-manager-518e11f4.js');
6
+ const kupManager = require('./kup-manager-8787fc42.js');
7
7
  const GenericVariables = require('./GenericVariables-1d52ba57.js');
8
8
  const fButton = require('./f-button-9aca7812.js');
9
- require('./kup-dates-84f0bc78.js');
9
+ require('./kup-dates-594b0f91.js');
10
10
  require('./f-button-declarations-76ef9f87.js');
11
11
  require('./f-image-5a33fd05.js');
12
12
 
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c7d441d8.js');
6
- const kupManager = require('./kup-manager-518e11f4.js');
6
+ const kupManager = require('./kup-manager-8787fc42.js');
7
7
  const GenericVariables = require('./GenericVariables-1d52ba57.js');
8
- require('./kup-dates-84f0bc78.js');
8
+ require('./kup-dates-594b0f91.js');
9
9
 
10
10
  /**
11
11
  * Props of the kup-txt component.
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c7d441d8.js');
6
- const kupManager = require('./kup-manager-518e11f4.js');
6
+ const kupManager = require('./kup-manager-8787fc42.js');
7
7
  const fTypography = require('./f-typography-85d8238a.js');
8
8
  const GenericVariables = require('./GenericVariables-1d52ba57.js');
9
- require('./kup-dates-84f0bc78.js');
9
+ require('./kup-dates-594b0f91.js');
10
10
 
11
11
  /**
12
12
  * Props of the kup-typography component.
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c7d441d8.js');
6
- const kupManager = require('./kup-manager-518e11f4.js');
6
+ const kupManager = require('./kup-manager-8787fc42.js');
7
7
  const fTypography = require('./f-typography-85d8238a.js');
8
8
  const GenericVariables = require('./GenericVariables-1d52ba57.js');
9
9
  const fImage = require('./f-image-5a33fd05.js');
10
- require('./kup-dates-84f0bc78.js');
10
+ require('./kup-dates-594b0f91.js');
11
11
 
12
12
  /**
13
13
  * Props of the kup-typography component.