@sme.up/ketchup 3.0.0-SNAPSHOT → 3.0.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 (86) hide show
  1. package/dist/cjs/{drag-and-drop-bbbf419d.js → drag-and-drop-4787ff6f.js} +1 -1
  2. package/dist/cjs/{f-button-929bbaa5.js → f-button-8812fb28.js} +2 -2
  3. package/dist/cjs/{f-image-9221e56e.js → f-image-a2211186.js} +1 -1
  4. package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
  5. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +24 -18
  6. package/dist/cjs/kup-box_2.cjs.entry.js +5 -5
  7. package/dist/cjs/kup-bpmn.cjs.entry.js +1 -1
  8. package/dist/cjs/kup-calendar.cjs.entry.js +1 -1
  9. package/dist/cjs/kup-dash_2.cjs.entry.js +1 -1
  10. package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
  11. package/dist/cjs/kup-editor.cjs.entry.js +1 -1
  12. package/dist/cjs/kup-field.cjs.entry.js +1 -1
  13. package/dist/cjs/kup-grid.cjs.entry.js +1 -1
  14. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  15. package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
  16. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  17. package/dist/cjs/{kup-manager-bf580cf7.js → kup-manager-03ea9815.js} +39 -30
  18. package/dist/cjs/kup-modal_2.cjs.entry.js +1 -1
  19. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  20. package/dist/cjs/{kup-paginator-declarations-25c881ab.js → kup-paginator-declarations-8029e07e.js} +3 -3
  21. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  22. package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
  23. package/dist/collection/assets/data-table-performance.js +64 -919
  24. package/dist/collection/assets/data-table.js +44 -0
  25. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -1
  26. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  27. package/dist/collection/components/kup-data-table/kup-data-table.css +7 -0
  28. package/dist/collection/components/kup-data-table/kup-data-table.js +18 -10
  29. package/dist/collection/utils/kup-debug/kup-debug.js +17 -7
  30. package/dist/collection/utils/kup-dynamic-position/kup-dynamic-position.js +5 -3
  31. package/dist/collection/utils/kup-manager/kup-manager.js +2 -8
  32. package/dist/collection/utils/kup-scroll-on-hover/kup-scroll-on-hover.js +14 -11
  33. package/dist/esm/{drag-and-drop-cc72ec41.js → drag-and-drop-e88a00a2.js} +1 -1
  34. package/dist/esm/{f-button-f7a21749.js → f-button-52db5f1b.js} +2 -2
  35. package/dist/esm/{f-image-0f1d37f3.js → f-image-9dbc901f.js} +1 -1
  36. package/dist/esm/kup-accordion.entry.js +2 -2
  37. package/dist/esm/kup-autocomplete_27.entry.js +24 -18
  38. package/dist/esm/kup-box_2.entry.js +5 -5
  39. package/dist/esm/kup-bpmn.entry.js +1 -1
  40. package/dist/esm/kup-calendar.entry.js +1 -1
  41. package/dist/esm/kup-dash_2.entry.js +1 -1
  42. package/dist/esm/kup-drawer.entry.js +1 -1
  43. package/dist/esm/kup-editor.entry.js +1 -1
  44. package/dist/esm/kup-field.entry.js +1 -1
  45. package/dist/esm/kup-grid.entry.js +1 -1
  46. package/dist/esm/kup-iframe.entry.js +1 -1
  47. package/dist/esm/kup-lazy.entry.js +1 -1
  48. package/dist/esm/kup-magic-box.entry.js +3 -3
  49. package/dist/esm/{kup-manager-f3bbd16f.js → kup-manager-5a812e97.js} +39 -30
  50. package/dist/esm/kup-modal_2.entry.js +1 -1
  51. package/dist/esm/kup-nav-bar.entry.js +3 -3
  52. package/dist/esm/{kup-paginator-declarations-4c512743.js → kup-paginator-declarations-4253e2a2.js} +3 -3
  53. package/dist/esm/kup-probe.entry.js +1 -1
  54. package/dist/esm/kup-qlik.entry.js +1 -1
  55. package/dist/ketchup/ketchup.esm.js +1 -1
  56. package/dist/ketchup/{p-9a63d358.entry.js → p-12c796d1.entry.js} +1 -1
  57. package/dist/ketchup/{p-4ceff81e.entry.js → p-144d078b.entry.js} +1 -1
  58. package/dist/ketchup/{p-8cd0e70c.js → p-21b4005f.js} +1 -1
  59. package/dist/ketchup/{p-5919b78a.entry.js → p-29c79da9.entry.js} +1 -1
  60. package/dist/ketchup/{p-4fa707a0.entry.js → p-48c65b8d.entry.js} +1 -1
  61. package/dist/ketchup/{p-e3d99a3f.entry.js → p-6da2b313.entry.js} +1 -1
  62. package/dist/ketchup/{p-78784608.js → p-706474f3.js} +1 -1
  63. package/dist/ketchup/{p-078691de.entry.js → p-73e65ff4.entry.js} +1 -1
  64. package/dist/ketchup/{p-29b9f6c1.entry.js → p-7a01dbbb.entry.js} +1 -1
  65. package/dist/ketchup/{p-7806e2d7.entry.js → p-844c424b.entry.js} +1 -1
  66. package/dist/ketchup/{p-6352cbc7.js → p-a643165c.js} +1 -1
  67. package/dist/ketchup/{p-e2cf131d.entry.js → p-bfbc6b8c.entry.js} +2 -2
  68. package/dist/ketchup/{p-b780967f.entry.js → p-bfd42c64.entry.js} +1 -1
  69. package/dist/ketchup/{p-e573dadb.entry.js → p-c23b501e.entry.js} +1 -1
  70. package/dist/ketchup/{p-abc7addd.entry.js → p-cd009fed.entry.js} +1 -1
  71. package/dist/ketchup/{p-3efe8512.entry.js → p-cffa93f1.entry.js} +1 -1
  72. package/dist/ketchup/{p-ad230690.entry.js → p-dcd13c1f.entry.js} +1 -1
  73. package/dist/ketchup/{p-b2c51c48.entry.js → p-dfbfad81.entry.js} +1 -1
  74. package/dist/ketchup/{p-f0b640c3.entry.js → p-e2458e49.entry.js} +1 -1
  75. package/dist/ketchup/p-ecf7ddf4.js +1 -0
  76. package/dist/ketchup/{p-fafee99d.entry.js → p-f0fae900.entry.js} +1 -1
  77. package/dist/ketchup/{p-785a37e5.js → p-fda4b1a0.js} +1 -1
  78. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -1
  79. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
  80. package/dist/types/components/kup-data-table/kup-data-table.d.ts +2 -0
  81. package/dist/types/utils/kup-debug/kup-debug.d.ts +5 -3
  82. package/dist/types/utils/kup-dynamic-position/kup-dynamic-position.d.ts +2 -2
  83. package/dist/types/utils/kup-manager/kup-manager-declarations.d.ts +0 -7
  84. package/dist/types/utils/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +1 -0
  85. package/package.json +1 -1
  86. package/dist/ketchup/p-75bac26c.js +0 -1
@@ -414,6 +414,50 @@ const mockedRows = [
414
414
  },
415
415
  },
416
416
  },
417
+ {
418
+ cells: {
419
+ FLD1: {
420
+ obj: {
421
+ t: 'CN',
422
+ p: 'COL',
423
+ k: 'CASFRA',
424
+ },
425
+ value: 'CASFRA',
426
+ },
427
+ FLD2: {
428
+ obj: {
429
+ t: 'NR',
430
+ p: '',
431
+ k: '10',
432
+ },
433
+ value: '10',
434
+ },
435
+ FLD3: {
436
+ obj: {
437
+ t: 'NR',
438
+ p: '',
439
+ k: '100000.60',
440
+ },
441
+ value: '100,000.60',
442
+ },
443
+ FLD4: {
444
+ obj: {
445
+ t: 'D8',
446
+ p: '*YYMD',
447
+ k: '20181101',
448
+ },
449
+ value: '2018-11-01',
450
+ },
451
+ FLD5: {
452
+ obj: {
453
+ t: 'NR',
454
+ p: 'P',
455
+ k: '0',
456
+ },
457
+ value: '0.00',
458
+ },
459
+ },
460
+ },
417
461
  {
418
462
  cells: {
419
463
  FLD1: {
@@ -11,8 +11,8 @@ export var KupDataTableProps;
11
11
  KupDataTableProps["dropEnabled"] = "Enables drop.";
12
12
  KupDataTableProps["editableData"] = "When set to true, editable cells will be rendered using input components.";
13
13
  KupDataTableProps["emptyDataLabel"] = "Defines the label to show when the table is empty.";
14
- KupDataTableProps["enableSortableColumns"] = "Enables the sorting of columns by dragging them into different columns.";
15
14
  KupDataTableProps["enableExtraColumns"] = "Enables adding extra columns.";
15
+ KupDataTableProps["enableSortableColumns"] = "Enables the sorting of columns by dragging them into different columns.";
16
16
  KupDataTableProps["expandGroups"] = "Expands groups when set to true.";
17
17
  KupDataTableProps["filters"] = "List of filters set by the user.";
18
18
  KupDataTableProps["fixedColumns"] = "Fixes the given number of columns so that they stay visible when horizontally scrolling the data-table. If grouping is active or the value of the prop is <= 0, this prop will have no effect. Can be combined with fixedRows.";
@@ -5,8 +5,8 @@ export class KupDataTableState {
5
5
  this.expandGroups = false;
6
6
  this.groupLabelDisplay = GroupLabelDisplayMode.BOTH;
7
7
  this.density = 'small';
8
- this.enableSortableColumns = false;
9
8
  this.enableExtraColumns = true;
9
+ this.enableSortableColumns = false;
10
10
  this.forceOneLine = false;
11
11
  this.globalFilter = false;
12
12
  this.globalFilterValue = '';
@@ -3445,6 +3445,10 @@ th.obj:hover span:not(.overlay-action) {
3445
3445
  .f-image--wrapper.cell-info {
3446
3446
  margin: auto 0.5em auto 0.25em;
3447
3447
  }
3448
+ :host([force-one-line]) .f-image--wrapper.cell-info {
3449
+ display: inline-block;
3450
+ vertical-align: sub;
3451
+ }
3448
3452
 
3449
3453
  [kup-dialog] {
3450
3454
  background-color: var(--kup-background-color);
@@ -3787,6 +3791,9 @@ td.purple-bg {
3787
3791
  td.top-right-indicator {
3788
3792
  position: relative !important;
3789
3793
  }
3794
+ td.top-right-indicator.fixed-column, td.top-right-indicator.fixed-row {
3795
+ position: sticky !important;
3796
+ }
3790
3797
  td.top-right-indicator:after {
3791
3798
  content: "";
3792
3799
  border-width: 0 0 0.5em 0.5em;
@@ -305,6 +305,8 @@ export class KupDataTable {
305
305
  this.isRestoringState = false;
306
306
  this.totalMenuCoords = null;
307
307
  this.clickTimeout = [];
308
+ this.rowsRefs = [];
309
+ this.oldWidth = null;
308
310
  /**
309
311
  * Reference to the row detail card.
310
312
  */
@@ -677,7 +679,8 @@ export class KupDataTable {
677
679
  * This method is invoked by KupManager whenever the component changes size.
678
680
  */
679
681
  async resizeCallback() {
680
- if (this.lazyLoadCells) {
682
+ if (this.lazyLoadCells &&
683
+ this.rootElement.clientWidth !== this.oldWidth) {
681
684
  window.clearTimeout(this.resizeTimeout);
682
685
  this.resizeTimeout = window.setTimeout(() => this.refresh(), 300);
683
686
  }
@@ -1008,9 +1011,8 @@ export class KupDataTable {
1008
1011
  this.intObserver = new IntersectionObserver(callback, options);
1009
1012
  }
1010
1013
  didRenderObservers() {
1011
- const rows = this.rootElement.shadowRoot.querySelectorAll('tbody > tr');
1012
1014
  if (this.paginatedRowsLength < this.rowsLength && this.lazyLoadRows) {
1013
- this.intObserver.observe(rows[this.paginatedRowsLength - 1]);
1015
+ this.intObserver.observe(this.rowsRefs[this.paginatedRowsLength - 1]);
1014
1016
  }
1015
1017
  }
1016
1018
  didLoadObservers() {
@@ -1197,8 +1199,6 @@ export class KupDataTable {
1197
1199
  this.customizePanelPosition();
1198
1200
  }
1199
1201
  this.totalMenuPosition();
1200
- // TODO
1201
- // this.groupMenuPosition();
1202
1202
  this.checkScrollOnHover();
1203
1203
  this.didRenderObservers();
1204
1204
  this.hideShowColumnDropArea(false);
@@ -1215,6 +1215,7 @@ export class KupDataTable {
1215
1215
  this.persistState();
1216
1216
  }
1217
1217
  // ***
1218
+ this.oldWidth = this.rootElement.clientWidth;
1218
1219
  this.kupManager.debug.logRender(this, true);
1219
1220
  }
1220
1221
  componentDidLoad() {
@@ -2568,12 +2569,18 @@ export class KupDataTable {
2568
2569
  renderFooter() {
2569
2570
  let extraCells = 0;
2570
2571
  // Composes initial cells if necessary
2572
+ let actionRowCell = null;
2571
2573
  let selectRowCell = null;
2572
2574
  if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
2573
2575
  extraCells++;
2574
2576
  const fixedCellStyle = this.composeFixedCellStyleAndClass(extraCells, 0, extraCells);
2575
2577
  selectRowCell = (h("td", { class: fixedCellStyle ? fixedCellStyle.fixedCellClasses : null, style: fixedCellStyle ? fixedCellStyle.fixedCellStyle : null }));
2576
2578
  }
2579
+ if (this.rowActions) {
2580
+ extraCells++;
2581
+ const fixedCellStyle = this.composeFixedCellStyleAndClass(extraCells, 0, extraCells);
2582
+ actionRowCell = (h("td", { class: fixedCellStyle ? fixedCellStyle.fixedCellClasses : null, style: fixedCellStyle ? fixedCellStyle.fixedCellStyle : null }));
2583
+ }
2577
2584
  // Action cell
2578
2585
  let actionsCell = null;
2579
2586
  if (this.hasRowActions()) {
@@ -2833,11 +2840,11 @@ export class KupDataTable {
2833
2840
  */
2834
2841
  cells.push(h("td", { class: totalClass }, value));
2835
2842
  }
2836
- jsxRows.push(h("tr", { "data-row": row, class: "group group-label" }, grouplabelcell));
2837
- jsxRows.push(h("tr", { "data-row": row, class: "group group-total" }, cells));
2843
+ jsxRows.push(h("tr", { ref: (el) => this.rowsRefs.push(el), "data-row": row, class: "group group-label" }, grouplabelcell));
2844
+ jsxRows.push(h("tr", { ref: (el) => this.rowsRefs.push(el), "data-row": row, class: "group group-total" }, cells));
2838
2845
  }
2839
2846
  else {
2840
- jsxRows.push(h("tr", { "data-row": row, class: "group" },
2847
+ jsxRows.push(h("tr", { ref: (el) => this.rowsRefs.push(el), "data-row": row, class: "group" },
2841
2848
  h("td", { colSpan: this.calculateColspan() },
2842
2849
  h("span", { class: "group-cell-content" },
2843
2850
  indent,
@@ -3089,7 +3096,7 @@ export class KupDataTable {
3089
3096
  const style = {
3090
3097
  '--row-actions': rowActionsCount,
3091
3098
  };
3092
- return (h("tr", Object.assign({ "data-row": row, class: rowClass, style: style }, (this.dragEnabled
3099
+ return (h("tr", Object.assign({ ref: (el) => this.rowsRefs.push(el), "data-row": row, class: rowClass, style: style }, (this.dragEnabled
3093
3100
  ? setKetchupDraggable(dragHandlersRow, {
3094
3101
  [KupDataTableRowDragType]: row,
3095
3102
  'kup-drag-source-element': {}, // I put nothing in there because I overwrite the content inside the onDragStart method
@@ -3886,12 +3893,13 @@ export class KupDataTable {
3886
3893
  } })));
3887
3894
  }
3888
3895
  render() {
3896
+ this.rowsRefs = [];
3889
3897
  this.renderedRows = [];
3890
3898
  let elStyle = undefined;
3891
3899
  this.sizedColumns = this.getSizedColumns();
3892
3900
  let rows = null;
3893
3901
  if (this.paginatedRowsLength === 0) {
3894
- rows = (h("tr", null,
3902
+ rows = (h("tr", { ref: (el) => this.rowsRefs.push(el) },
3895
3903
  h("td", Object.assign({}, (this.dropEnabled
3896
3904
  ? setKetchupDroppable(dropHandlersCell, [KupDataTableRowDragType], this.rootElement, {
3897
3905
  row: null,
@@ -31,6 +31,9 @@ export class KupDebug {
31
31
  _debugWidget.set(this, void 0);
32
32
  this.active = active ? true : false;
33
33
  this.autoPrint = autoprint ? true : false;
34
+ this.container = document.createElement('div');
35
+ this.container.setAttribute('kup-debug', '');
36
+ document.body.appendChild(this.container);
34
37
  this.logLimit = logLimit ? logLimit : 250;
35
38
  this.logs = [];
36
39
  __classPrivateFieldSet(this, _debugWidget, null);
@@ -50,7 +53,7 @@ export class KupDebug {
50
53
  const downloadAnchorNode = document.createElement('a');
51
54
  downloadAnchorNode.setAttribute('href', dataStr);
52
55
  downloadAnchorNode.setAttribute('download', 'kup_props.json');
53
- document.body.appendChild(downloadAnchorNode);
56
+ this.container.appendChild(downloadAnchorNode);
54
57
  downloadAnchorNode.click();
55
58
  downloadAnchorNode.remove();
56
59
  }
@@ -196,7 +199,7 @@ export class KupDebug {
196
199
  debugWidget.sizeX = 'auto';
197
200
  debugWidget.sizeY = 'auto';
198
201
  debugWidget.addEventListener('kup-card-event', (e) => this.handleEvents(e));
199
- document.body.append(debugWidget);
202
+ this.container.append(debugWidget);
200
203
  __classPrivateFieldSet(this, _debugWidget, debugWidget);
201
204
  }
202
205
  /**
@@ -647,17 +650,24 @@ export class KupDebug {
647
650
  }
648
651
  /**
649
652
  * Function used to time the render times of a component.
650
- * @param comp - The component calling this function or a string.
651
- * @param didRender - Must be set to false when called inside a componentWillRender() lifecycle hook and true when called inside componentDidRender().
653
+ * @param {any} comp - The component calling this function or a string.
654
+ * @param {boolean} didRender - Must be set to false when called inside a componentWillRender() lifecycle hook and true when called inside componentDidRender().
655
+ * @param {string} breakpoint - When present, this log is supposedly between a willRender and didRender hook. Used to time single features of the render lifecycle.
652
656
  */
653
- logRender(comp, didRender) {
654
- if (!didRender) {
657
+ logRender(comp, didRender, breakpoint) {
658
+ if (breakpoint) {
659
+ const timeDiff = window.performance.now() - comp.debugInfo.renderStart;
660
+ if (this.isDebug()) {
661
+ this.logMessage(comp, breakpoint + ' took ' + timeDiff + 'ms.');
662
+ }
663
+ }
664
+ else if (!didRender) {
655
665
  comp.debugInfo.renderCount++;
656
666
  comp.debugInfo.renderStart = window.performance.now();
657
667
  }
658
668
  else {
659
669
  comp.debugInfo.renderEnd = window.performance.now();
660
- let timeDiff = comp.debugInfo.renderEnd - comp.debugInfo.renderStart;
670
+ const timeDiff = comp.debugInfo.renderEnd - comp.debugInfo.renderStart;
661
671
  if (this.isDebug()) {
662
672
  this.logMessage(comp, 'Render #' +
663
673
  comp.debugInfo.renderCount +
@@ -9,8 +9,10 @@ export class KupDynamicPosition {
9
9
  /**
10
10
  * Initializes KupDynamicPosition.
11
11
  */
12
- constructor(container) {
13
- this.container = container ? container : 'body';
12
+ constructor() {
13
+ this.container = document.createElement('div');
14
+ this.container.setAttribute('kup-dynamic-position', '');
15
+ document.body.appendChild(this.container);
14
16
  this.managedElements = new Set();
15
17
  }
16
18
  /**
@@ -36,7 +38,7 @@ export class KupDynamicPosition {
36
38
  }
37
39
  if (detach) {
38
40
  el.style.position = 'absolute';
39
- document.querySelector(this.container).appendChild(el);
41
+ this.container.appendChild(el);
40
42
  }
41
43
  else {
42
44
  el.style.position = 'fixed';
@@ -17,11 +17,10 @@ export class KupManager {
17
17
  * Initializes KupManager.
18
18
  */
19
19
  constructor(overrides) {
20
- let debugActive = null, debugAutoprint = null, debugLogLimit = null, dialogZIndex = null, dynamicPositionContainer = null, languageList = null, languageName = null, objectsList = null, scrollOnHoverDelay = null, scrollOnHoverStep = null, themeList = null, themeName = null;
20
+ let debugActive = null, debugAutoprint = null, debugLogLimit = null, dialogZIndex = null, languageList = null, languageName = null, objectsList = null, scrollOnHoverDelay = null, scrollOnHoverStep = null, themeList = null, themeName = null;
21
21
  if (overrides) {
22
22
  const debug = overrides.debug;
23
23
  const dialog = overrides.dialog;
24
- const dynamicPosition = overrides.dynamicPosition;
25
24
  const language = overrides.language;
26
25
  const objects = overrides.objects;
27
26
  const scrollOnHover = overrides.scrollOnHover;
@@ -34,11 +33,6 @@ export class KupManager {
34
33
  if (dialog) {
35
34
  dialogZIndex = dialog.zIndex ? dialog.zIndex : null;
36
35
  }
37
- if (dynamicPosition) {
38
- dynamicPositionContainer = dynamicPosition.container
39
- ? dynamicPosition.container
40
- : null;
41
- }
42
36
  if (language) {
43
37
  languageList = language.list ? language.list : null;
44
38
  languageName = language.name ? language.name : null;
@@ -61,7 +55,7 @@ export class KupManager {
61
55
  }
62
56
  this.debug = new KupDebug(debugActive, debugAutoprint, debugLogLimit);
63
57
  this.dialog = new KupDialog(dialogZIndex);
64
- this.dynamicPosition = new KupDynamicPosition(dynamicPositionContainer);
58
+ this.dynamicPosition = new KupDynamicPosition();
65
59
  this.language = new KupLanguage(languageList, languageName);
66
60
  this.magicBox = null;
67
61
  this.overrides = overrides ? overrides : null;
@@ -44,19 +44,22 @@ export class KupScrollOnHover {
44
44
  __classPrivateFieldSet(this, _rightArrows, []);
45
45
  __classPrivateFieldSet(this, _scrollEvent, (event) => this.updateChildren(event.target));
46
46
  __classPrivateFieldSet(this, _timeout, null);
47
- __classPrivateFieldGet(this, _arrowsContainer).id = 'container-scrolling-arrow';
47
+ __classPrivateFieldGet(this, _arrowsContainer).id = 'kup-scrolling-arrows';
48
48
  for (let index = 1; index < 4; index++) {
49
49
  const arrow = document.createElement('div');
50
- arrow.setAttribute('class', 'left-scrolling-arrow arrow-' + index);
50
+ arrow.setAttribute('class', 'kup-left-scrolling-arrow kup-arrow-' + index);
51
51
  __classPrivateFieldGet(this, _leftArrows).push(arrow);
52
52
  }
53
53
  for (let index = 1; index < 4; index++) {
54
54
  const arrow = document.createElement('div');
55
- arrow.setAttribute('class', 'right-scrolling-arrow arrow-' + index);
55
+ arrow.setAttribute('class', 'kup-right-scrolling-arrow kup-arrow-' + index);
56
56
  __classPrivateFieldGet(this, _rightArrows).push(arrow);
57
57
  }
58
58
  __classPrivateFieldGet(this, _arrowsContainer).append(__classPrivateFieldGet(this, _leftArrows)[2], __classPrivateFieldGet(this, _leftArrows)[1], __classPrivateFieldGet(this, _leftArrows)[0], __classPrivateFieldGet(this, _rightArrows)[0], __classPrivateFieldGet(this, _rightArrows)[1], __classPrivateFieldGet(this, _rightArrows)[2]);
59
- document.body.append(__classPrivateFieldGet(this, _arrowsContainer));
59
+ this.container = document.createElement('div');
60
+ this.container.setAttribute('kup-scroll-on-hover', '');
61
+ this.container.appendChild(__classPrivateFieldGet(this, _arrowsContainer));
62
+ document.body.appendChild(this.container);
60
63
  }
61
64
  /**
62
65
  * Watches the given element in order to trigger the scroll on hover when conditions are met.
@@ -132,10 +135,10 @@ export class KupScrollOnHover {
132
135
  if (direction) {
133
136
  for (let i = 0; i < 3; i++) {
134
137
  if (direction === ScrollOnHoverDirection.LEFT) {
135
- __classPrivateFieldGet(this, _leftArrows)[i].classList.add('activated');
138
+ __classPrivateFieldGet(this, _leftArrows)[i].classList.add('kup-activated');
136
139
  }
137
140
  else {
138
- __classPrivateFieldGet(this, _rightArrows)[i].classList.add('activated');
141
+ __classPrivateFieldGet(this, _rightArrows)[i].classList.add('kup-activated');
139
142
  }
140
143
  }
141
144
  __classPrivateFieldSet(this, _timeout, setTimeout(() => {
@@ -158,12 +161,12 @@ export class KupScrollOnHover {
158
161
  clearTimeout(__classPrivateFieldGet(this, _timeout));
159
162
  __classPrivateFieldSet(this, _timeout, null);
160
163
  for (let i = 0; i < __classPrivateFieldGet(this, _leftArrows).length; i++) {
161
- __classPrivateFieldGet(this, _leftArrows)[i].classList.remove('activated');
162
- __classPrivateFieldGet(this, _leftArrows)[i].classList.remove('animated');
164
+ __classPrivateFieldGet(this, _leftArrows)[i].classList.remove('kup-activated');
165
+ __classPrivateFieldGet(this, _leftArrows)[i].classList.remove('kup-animated');
163
166
  }
164
167
  for (let i = 0; i < __classPrivateFieldGet(this, _rightArrows).length; i++) {
165
- __classPrivateFieldGet(this, _rightArrows)[i].classList.remove('activated');
166
- __classPrivateFieldGet(this, _rightArrows)[i].classList.remove('animated');
168
+ __classPrivateFieldGet(this, _rightArrows)[i].classList.remove('kup-activated');
169
+ __classPrivateFieldGet(this, _rightArrows)[i].classList.remove('kup-animated');
167
170
  }
168
171
  }
169
172
  /**
@@ -213,7 +216,7 @@ export class KupScrollOnHover {
213
216
  el.scrollLeft += this.step;
214
217
  }
215
218
  for (let i = 0; i < arrow.length; i++) {
216
- arrow[i].classList.add('animated');
219
+ arrow[i].classList.add('kup-animated');
217
220
  }
218
221
  __classPrivateFieldSet(this, _rAF, requestAnimationFrame(function () {
219
222
  dom.ketchup.scrollOnHover.run(el, maxScrollLeft, percRight, percLeft, direction);
@@ -11,8 +11,8 @@ var KupDataTableProps;
11
11
  KupDataTableProps["dropEnabled"] = "Enables drop.";
12
12
  KupDataTableProps["editableData"] = "When set to true, editable cells will be rendered using input components.";
13
13
  KupDataTableProps["emptyDataLabel"] = "Defines the label to show when the table is empty.";
14
- KupDataTableProps["enableSortableColumns"] = "Enables the sorting of columns by dragging them into different columns.";
15
14
  KupDataTableProps["enableExtraColumns"] = "Enables adding extra columns.";
15
+ KupDataTableProps["enableSortableColumns"] = "Enables the sorting of columns by dragging them into different columns.";
16
16
  KupDataTableProps["expandGroups"] = "Expands groups when set to true.";
17
17
  KupDataTableProps["filters"] = "List of filters set by the user.";
18
18
  KupDataTableProps["fixedColumns"] = "Fixes the given number of columns so that they stay visible when horizontally scrolling the data-table. If grouping is active or the value of the prop is <= 0, this prop will have no effect. Can be combined with fixedRows.";
@@ -1,7 +1,7 @@
1
1
  import { h } from './index-144be036.js';
2
2
  import { F as FButtonStyling } from './f-button-declarations-fd4965d1.js';
3
- import { F as FImage } from './f-image-0f1d37f3.js';
4
- import { c as KupThemeColorValues } from './kup-manager-f3bbd16f.js';
3
+ import { F as FImage } from './f-image-9dbc901f.js';
4
+ import { c as KupThemeColorValues } from './kup-manager-5a812e97.js';
5
5
 
6
6
  /*-------------------------------------------------*/
7
7
  /* C o m p o n e n t */
@@ -1,5 +1,5 @@
1
1
  import { h, g as getAssetPath } from './index-144be036.js';
2
- import { c as KupThemeColorValues } from './kup-manager-f3bbd16f.js';
2
+ import { c as KupThemeColorValues } from './kup-manager-5a812e97.js';
3
3
 
4
4
  /**
5
5
  * The type of a CSS step in CSS-drawing mode.
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-144be036.js';
2
- import { k as kupManagerInstance, p as KupLanguageSearch, a as KupThemeIconValues } from './kup-manager-f3bbd16f.js';
2
+ import { k as kupManagerInstance, p as KupLanguageSearch, a as KupThemeIconValues } from './kup-manager-5a812e97.js';
3
3
  import { g as getProps, s as setProps } from './utils-b02909d3.js';
4
4
  import { c as componentWrapperId } from './GenericVariables-6dfdd433.js';
5
- import { F as FImage } from './f-image-0f1d37f3.js';
5
+ import { F as FImage } from './f-image-9dbc901f.js';
6
6
  import { K as KupGlobalFilterMode } from './filters-declarations-ae2fd7bd.js';
7
7
  import './kup-objects-c6683955.js';
8
8
  import './_commonjsHelpers-11ca3be1.js';