@sme.up/ketchup 11.0.0-SNAPSHOT-20250411125317 → 11.0.0-SNAPSHOT-20250415141853

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 (92) hide show
  1. package/dist/cjs/ketchup.cjs.js +1 -1
  2. package/dist/cjs/kup-accordion.cjs.entry.js +236 -27
  3. package/dist/cjs/kup-autocomplete_29.cjs.entry.js +38 -26
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/assets/accordion.js +24 -23
  6. package/dist/collection/assets/dashboard.js +3 -9
  7. package/dist/collection/components/kup-accordion/kup-accordion-declarations.js +6 -1
  8. package/dist/collection/components/kup-accordion/kup-accordion.css +10 -2
  9. package/dist/collection/components/kup-accordion/kup-accordion.js +442 -40
  10. package/dist/collection/components/kup-data-table/kup-data-table.js +31 -23
  11. package/dist/collection/components/kup-tab-bar/kup-tab-bar-declarations.js +4 -0
  12. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +4 -4
  13. package/dist/components/index.js +1 -1
  14. package/dist/components/kup-accordion.js +242 -29
  15. package/dist/components/kup-activity-timeline.js +2 -2
  16. package/dist/components/kup-autocomplete.js +1 -1
  17. package/dist/components/kup-badge.js +1 -1
  18. package/dist/components/kup-box.js +1 -1
  19. package/dist/components/kup-button-list.js +1 -1
  20. package/dist/components/kup-button.js +1 -1
  21. package/dist/components/kup-calendar.js +2 -2
  22. package/dist/components/kup-card-list.js +3 -3
  23. package/dist/components/kup-card.js +1 -1
  24. package/dist/components/kup-cell.js +2 -2
  25. package/dist/components/kup-chart.js +1 -1
  26. package/dist/components/kup-checkbox.js +1 -1
  27. package/dist/components/kup-chip.js +1 -1
  28. package/dist/components/kup-color-picker.js +1 -1
  29. package/dist/components/kup-combobox.js +1 -1
  30. package/dist/components/kup-dashboard.js +2 -2
  31. package/dist/components/kup-data-table.js +1 -1
  32. package/dist/components/kup-date-picker.js +1 -1
  33. package/dist/components/kup-dialog.js +1 -1
  34. package/dist/components/kup-drawer.js +2 -2
  35. package/dist/components/kup-dropdown-button.js +1 -1
  36. package/dist/components/kup-echart.js +1 -1
  37. package/dist/components/kup-editor.js +1 -1
  38. package/dist/components/kup-family-tree.js +3 -3
  39. package/dist/components/kup-file-upload.js +1 -1
  40. package/dist/components/kup-form.js +1 -1
  41. package/dist/components/kup-gauge.js +1 -1
  42. package/dist/components/kup-grid.js +1 -1
  43. package/dist/components/kup-htm.js +2 -2
  44. package/dist/components/kup-iframe.js +2 -2
  45. package/dist/components/kup-image-list.js +2 -2
  46. package/dist/components/kup-image.js +1 -1
  47. package/dist/components/kup-input-panel.js +3 -3
  48. package/dist/components/kup-lazy.js +2 -2
  49. package/dist/components/kup-list.js +1 -1
  50. package/dist/components/kup-magic-box.js +4 -4
  51. package/dist/components/kup-nav-bar.js +2 -2
  52. package/dist/components/kup-numeric-picker.js +2 -2
  53. package/dist/components/kup-object-field.js +2 -2
  54. package/dist/components/kup-pdf.js +2 -2
  55. package/dist/components/kup-planner.js +2 -2
  56. package/dist/components/kup-probe.js +2 -2
  57. package/dist/components/kup-progress-bar.js +1 -1
  58. package/dist/components/kup-qlik.js +2 -2
  59. package/dist/components/kup-radio.js +1 -1
  60. package/dist/components/kup-rating.js +1 -1
  61. package/dist/components/kup-snackbar.js +2 -2
  62. package/dist/components/kup-spinner.js +1 -1
  63. package/dist/components/kup-switch.js +1 -1
  64. package/dist/components/kup-tab-bar.js +1 -1
  65. package/dist/components/kup-text-field.js +1 -1
  66. package/dist/components/kup-time-picker.js +1 -1
  67. package/dist/components/kup-toolbar.js +1 -1
  68. package/dist/components/kup-tree.js +1 -1
  69. package/dist/components/kup-txt.js +2 -2
  70. package/dist/components/kup-typography-list.js +2 -2
  71. package/dist/components/kup-typography.js +2 -2
  72. package/dist/components/{p-73922583.js → p-04bdcde6.js} +1 -1
  73. package/dist/components/{p-f4cbdb5d.js → p-7eb8f56e.js} +2 -2
  74. package/dist/components/{p-c50f899f.js → p-889cc2bc.js} +1896 -1879
  75. package/dist/components/{p-76ce24eb.js → p-93971a82.js} +2 -2
  76. package/dist/components/{p-2d17a388.js → p-b1517896.js} +2 -2
  77. package/dist/components/{p-9cadb89a.js → p-b57e2956.js} +2 -2
  78. package/dist/esm/ketchup.js +1 -1
  79. package/dist/esm/kup-accordion.entry.js +237 -28
  80. package/dist/esm/kup-autocomplete_29.entry.js +38 -26
  81. package/dist/esm/loader.js +1 -1
  82. package/dist/ketchup/ketchup.esm.js +1 -1
  83. package/dist/ketchup/p-3ea91f6e.entry.js +9 -0
  84. package/dist/ketchup/p-527998c8.entry.js +1 -0
  85. package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +14 -7
  86. package/dist/types/components/kup-accordion/kup-accordion.d.ts +67 -6
  87. package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +6 -1
  88. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +1 -1
  89. package/dist/types/components.d.ts +61 -12
  90. package/package.json +1 -1
  91. package/dist/ketchup/p-c832734a.entry.js +0 -1
  92. package/dist/ketchup/p-e9f77e3a.entry.js +0 -9
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
2
- import { k as kupManagerInstance, a as KupComponentSizing, g as getProps, s as setProps, d as KupThemeColorValues, b as KupThemeIconValues } from './kup-manager-a3f8ee8f.js';
2
+ import { k as kupManagerInstance, a as KupComponentSizing, g as getProps, s as setProps, b as KupThemeIconValues, d as KupThemeColorValues, c as KupDynamicPositionPlacement } from './kup-manager-a3f8ee8f.js';
3
3
  import { F as FImage } from './f-image-a2ecd7c3.js';
4
4
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
5
5
  import { M as MDCRipple } from './component-a35bc7f1.js';
@@ -12,33 +12,114 @@ import './kup-dates-da19044e.js';
12
12
  var KupAccordionProps;
13
13
  (function (KupAccordionProps) {
14
14
  KupAccordionProps["customStyle"] = "Custom style of the component. For more information: https://smeup.github.io/ketchup/#/customization";
15
- KupAccordionProps["data"] = "Data of the accordion.";
15
+ KupAccordionProps["data"] = "List of elements.";
16
+ KupAccordionProps["infoIcon"] = "When true, it will show the info activation icon";
16
17
  KupAccordionProps["ripple"] = "When enabled displays Material's ripple effect on item headers.";
18
+ KupAccordionProps["toolbar"] = "When true, it will show the toolbar activation icon";
19
+ KupAccordionProps["sizing"] = "Sets the type of the component sizing.";
20
+ KupAccordionProps["toolbarCallback"] = "Callback to be called when the toolbar icon is clicked";
21
+ KupAccordionProps["infoCallback"] = "Callback to be called when the info icon is clicked";
17
22
  })(KupAccordionProps || (KupAccordionProps = {}));
18
23
 
19
- const kupAccordionCss = ".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}:host{--kup_accordion_border_top_color:var(\n --kup-accordion-border-top-color,\n var(--kup-border-subtle)\n );--kup_accordion_item_small_height:var(\n --kup-accordion-item-small-height,\n 32px\n );--kup_accordion_item_medium_height:var(\n --kup-accordion-item-medium-height,\n 40px\n );--kup_accordion_item_outline_color_active:var(\n --kup-accordion-item-outline-color-focus,\n var(--kup-border-interactive)\n );--kup_accordion_item_large_height:var(\n --kup-accordion-item-medium-height,\n 48px\n );--kup_accordion_header_background_color:var(\n --kup-accordion-header-background-color,\n var(--kup-layer-0)\n );--kup_accordion_header_background_color_hover:var(\n --kup-accordion-header-background-color-hover,\n var(--kup-layer-0-hover)\n );--kup_accordion_header_padding:var(\n --kup-accordion-header-padding,\n var(--kup-space-05)\n );--kup_accordion_dropdown_icon_color:var(\n --kup-accordio-dropdown-icon-color,\n var(--kup-text-primary)\n );--kup_accordion_transition:var(--kup-accordion-transition, 80ms);display:block;font-family:var(--kup_accordion_font_family);font-size:var(--kup_accordion_font_size)}.accordion{border-radius:var(--kup_accordion_border_radius);display:flex;flex-wrap:wrap;flex-direction:column;width:100%}.accordion-item{border-top:1px solid var(--kup_accordion_border_top_color);box-sizing:border-box;width:100%}.accordion-item--visible{display:block}.accordion-item:is(:last-of-type){border-bottom:1px solid var(--kup_accordion_border_top_color)}.accordion-item__header{height:var(--kup_accordion_item_medium_height);align-items:center;border:none;box-sizing:border-box;color:var(--kup_accordion_text_color);cursor:pointer;display:flex;line-height:1.75em;outline:none;padding:var(--kup_accordion_padding);text-align:left;transition:background-color var(--kup_accordion_transition), color var(--kup_accordion_transition);width:100%;outline:2px solid transparent;outline-offset:-2px;padding-left:16px;padding-right:16px}.accordion-item__header:focus{outline:2px solid var(--kup_accordion_item_outline_color_active)}.accordion-item__header.accordion-item--small{height:var(--kup_accordion_item_small_height)}.accordion-item__header.accordion-item--large{height:var(--kup_accordion_item_large_height)}.accordion-item__header:hover:not(.accordion-item__header--selected){background-color:var(--kup_accordion_header_background_color_hover)}.accordion-item__header:focus(.accordion-item__header--selected){outline:2px solid var(--kup_accordion_item_outline_color_active)}.accordion-item__header--expanded{background-color:var(--kup_accordion_background_color)}.accordion-item__header--expanded .accordion-item__dropdown{transform:rotate(-180deg)}.accordion-item__text{margin-right:0.5em;overflow:hidden;text-overflow:ellipsis;white-space:pre}.accordion-item__text--highlighted{color:var(--kup_accordion_text_on_primary_color);background-color:var(--kup_accordion_primary_color)}.accordion-item__icon{margin-left:0;margin-right:0.5em}.accordion-item__dropdown{background-color:var(--kup_accordion_dropdown_icon_color);height:1.5em;margin-left:auto;margin-right:0;min-width:1.5em;width:1.5em;transition:transform var(--kup_accordion_transition)}.accordion-item__content{padding-left:16px;padding-top:8px;padding-bottom:24px;padding-right:80px;animation:fade-in 0.25s ease-out;display:none;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}.accordion-item__content--selected{display:block}.mdc-ripple-surface{--mdc-ripple-fg-opacity:0.24}.mdc-ripple-surface:before,.mdc-ripple-surface:after{background-color:var(--kup_accordion_primary_color)}.kup-icon.kup-dropdown-icon{-webkit-mask:var(--kup-dropdown-icon);mask:var(--kup-dropdown-icon)}:host(.kup-borderless){--kup-accordion-border:none}:host(.kup-full-height){height:100%}:host(.kup-full-width){width:100%}:host(.kup-danger){--kup-accordion-primary-color:var(--kup-danger-color-60);--kup-accordion-primary-color-rgb:var(--kup-danger-color-60-rgb);--kup-accordion-text-on-primary-color:white}:host(.kup-info){--kup-accordion-primary-color:var(--kup-info-50-color);--kup-accordion-primary-color-rgb:var(--kup-info-color-50-rgb);--kup-accordion-text-on-primary-color:white}:host(.kup-secondary){--kup-accordion-primary-color:var(--kup-secondary-color);--kup-accordion-primary-color-rgb:var(--kup-secondary-color-rgb);--kup-accordion-text-on-primary-color:var(--kup-text-on-secondary-color)}:host(.kup-success){--kup-accordion-primary-color:var(--kup-success-color-40);--kup-accordion-primary-color-rgb:var(--kup-success-color-40-rgb);--kup-accordion-text-on-primary-color:white}:host(.kup-warning){--kup-accordion-primary-color:var(--kup-warning-color-50);--kup-accordion-primary-color-rgb:var(--kup-warning-color-50-rgb);--kup-accordion-text-on-primary-color:white}";
24
+ const kupAccordionCss = ".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}:host{--kup_accordion_border_top_color:var(\n --kup-accordion-border-top-color,\n var(--kup-border-subtle)\n );--kup_accordion_item_small_height:var(\n --kup-accordion-item-small-height,\n 32px\n );--kup_accordion_item_medium_height:var(\n --kup-accordion-item-medium-height,\n 40px\n );--kup_accordion_item_outline_color_active:var(\n --kup-accordion-item-outline-color-focus,\n var(--kup-border-interactive)\n );--kup_accordion_item_large_height:var(\n --kup-accordion-item-medium-height,\n 48px\n );--kup_accordion_header_background_color:var(\n --kup-accordion-header-background-color,\n var(--kup-layer-0)\n );--kup_accordion_header_background_color_hover:var(\n --kup-accordion-header-background-color-hover,\n var(--kup-layer-0-hover)\n );--kup_accordion_header_padding:var(\n --kup-accordion-header-padding,\n var(--kup-space-05)\n );--kup_accordion_dropdown_icon_color:var(\n --kup-accordio-dropdown-icon-color,\n var(--kup-text-primary)\n );--kup_accordion_transition:var(--kup-accordion-transition, 80ms);display:block;font-family:var(--kup_accordion_font_family);font-size:var(--kup_accordion_font_size)}.accordion{border-radius:var(--kup_accordion_border_radius);display:flex;flex-wrap:wrap;flex-direction:column;width:100%}.accordion-item{border-top:1px solid var(--kup_accordion_border_top_color);box-sizing:border-box;width:100%}.accordion-item--visible{display:block}.accordion-item:is(:last-of-type){border-bottom:1px solid var(--kup_accordion_border_top_color)}.accordion-item__header{height:var(--kup_accordion_item_medium_height);align-items:center;border:none;box-sizing:border-box;color:var(--kup_accordion_text_color);cursor:pointer;display:flex;line-height:1.75em;outline:none;padding:var(--kup_accordion_padding);text-align:left;transition:background-color var(--kup_accordion_transition), color var(--kup_accordion_transition);width:100%;outline:2px solid transparent;outline-offset:-2px;padding-left:16px;padding-right:16px;gap:var(--kup-space-03)}.accordion-item__header:focus{outline:2px solid var(--kup_accordion_item_outline_color_active)}.accordion-item__header.accordion-item--small{height:var(--kup_accordion_item_small_height)}.accordion-item__header.accordion-item--large{height:var(--kup_accordion_item_large_height)}.accordion-item__header:hover:not(.accordion-item__header--selected){background-color:var(--kup_accordion_header_background_color_hover)}.accordion-item__header:focus(.accordion-item__header--selected){outline:2px solid var(--kup_accordion_item_outline_color_active)}.accordion-item__header--expanded{background-color:var(--kup_accordion_background_color)}.accordion-item__header--expanded .accordion-item__dropdown{transform:rotate(-180deg)}.accordion-item__header .f-image{margin:0}.accordion-item__header .accordion-rigtbuttons{margin-left:auto;margin-right:0;display:flex;gap:var(--kup-space-03)}.accordion-item__text{margin-right:0.5em;overflow:hidden;text-overflow:ellipsis;white-space:pre}.accordion-item__text--highlighted{color:var(--kup_accordion_text_on_primary_color);background-color:var(--kup_accordion_primary_color)}.accordion-item__icon{margin-left:0;margin-right:0.5em}.accordion-item__dropdown{background-color:var(--kup_accordion_dropdown_icon_color);height:1.5em;min-width:1.5em;width:1.5em;transition:transform var(--kup_accordion_transition)}.accordion-item__content{padding-left:16px;padding-top:8px;padding-bottom:24px;padding-right:80px;animation:fade-in 0.25s ease-out;display:none;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}.accordion-item__content--selected{display:block}.mdc-ripple-surface{--mdc-ripple-fg-opacity:0.24}.mdc-ripple-surface:before,.mdc-ripple-surface:after{background-color:var(--kup_accordion_primary_color)}.kup-icon.kup-dropdown-icon{-webkit-mask:var(--kup-dropdown-icon);mask:var(--kup-dropdown-icon)}:host(.kup-borderless){--kup-accordion-border:none}:host(.kup-full-height){height:100%}:host(.kup-full-width){width:100%}:host(.kup-danger){--kup-accordion-primary-color:var(--kup-danger-color-60);--kup-accordion-primary-color-rgb:var(--kup-danger-color-60-rgb);--kup-accordion-text-on-primary-color:white}:host(.kup-info){--kup-accordion-primary-color:var(--kup-info-50-color);--kup-accordion-primary-color-rgb:var(--kup-info-color-50-rgb);--kup-accordion-text-on-primary-color:white}:host(.kup-secondary){--kup-accordion-primary-color:var(--kup-secondary-color);--kup-accordion-primary-color-rgb:var(--kup-secondary-color-rgb);--kup-accordion-text-on-primary-color:var(--kup-text-on-secondary-color)}:host(.kup-success){--kup-accordion-primary-color:var(--kup-success-color-40);--kup-accordion-primary-color-rgb:var(--kup-success-color-40-rgb);--kup-accordion-text-on-primary-color:white}:host(.kup-warning){--kup-accordion-primary-color:var(--kup-warning-color-50);--kup-accordion-primary-color-rgb:var(--kup-warning-color-50-rgb);--kup-accordion-text-on-primary-color:white}";
20
25
  const KupAccordionStyle0 = kupAccordionCss;
21
26
 
27
+ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
28
+ if (kind === "m")
29
+ throw new TypeError("Private method is not writable");
30
+ if (kind === "a" && !f)
31
+ throw new TypeError("Private accessor was defined without a setter");
32
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
33
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
34
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
35
+ };
36
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
37
+ if (kind === "a" && !f)
38
+ throw new TypeError("Private accessor was defined without a getter");
39
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
40
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
41
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
42
+ };
43
+ var _KupAccordion_clickCbDropCard, _KupAccordion_dropDownActionCardAnchor;
22
44
  const KupAccordion = class {
23
45
  constructor(hostRef) {
24
46
  registerInstance(this, hostRef);
25
- this.kupAccordionItemSelected = createEvent(this, "kup-accordion-itemselected", 6);
47
+ this.kupBlur = createEvent(this, "kup-accordion-blur", 6);
48
+ this.kupClick = createEvent(this, "kup-accordion-click", 6);
49
+ this.kupIconClick = createEvent(this, "kup-accordion-iconclick", 6);
50
+ this.kupInfoIconClick = createEvent(this, "kup-accordion-infoiconclick", 6);
51
+ this.kupFocus = createEvent(this, "kup-accordion-focus", 6);
52
+ this.kupToolbarItemClick = createEvent(this, "kup-accordion-toolbaritemclick", 6);
26
53
  /*-------------------------------------------------*/
27
54
  /* I n t e r n a l V a r i a b l e s */
28
55
  /*-------------------------------------------------*/
56
+ this.toolbarState = [];
57
+ this.infoState = [];
29
58
  /**
30
59
  * Instance of the KupManager class.
31
60
  */
32
61
  this.kupManager = kupManagerInstance();
62
+ _KupAccordion_clickCbDropCard.set(this, null);
33
63
  /**
34
64
  * Instance of the KupManager class.
35
65
  */
36
66
  this.slotsNames = [];
67
+ _KupAccordion_dropDownActionCardAnchor.set(this, null);
37
68
  this.selectedItems = [];
38
69
  this.customStyle = '';
39
70
  this.data = null;
71
+ this.infoIcon = false;
40
72
  this.ripple = false;
73
+ this.toolbar = false;
41
74
  this.sizing = KupComponentSizing.SMALL;
75
+ this.toolbarCallback = undefined;
76
+ this.infoCallback = undefined;
77
+ }
78
+ onKupBlur(node) {
79
+ this.kupBlur.emit({
80
+ comp: this,
81
+ id: this.rootElement.id,
82
+ node: node,
83
+ });
84
+ }
85
+ onKupClick(i, node) {
86
+ this.data[i].contentVisible = !this.data[i].contentVisible;
87
+ this.updateSelectedItems();
88
+ this.kupClick.emit({
89
+ comp: this,
90
+ id: this.rootElement.id,
91
+ node: node,
92
+ });
93
+ }
94
+ onKupIconClick(el) {
95
+ if (!el) {
96
+ this.kupManager.debug.logMessage(this, 'onKupIconClick: Element is null');
97
+ return;
98
+ }
99
+ __classPrivateFieldSet(this, _KupAccordion_dropDownActionCardAnchor, el, "f");
100
+ this.createDropDownToolbarList();
101
+ }
102
+ onKupInfoIconClick(el) {
103
+ if (!el) {
104
+ this.kupManager.debug.logMessage(this, 'onKupIconClick: Element is null');
105
+ return;
106
+ }
107
+ __classPrivateFieldSet(this, _KupAccordion_dropDownActionCardAnchor, el, "f");
108
+ this.createDropDownInfoList();
109
+ }
110
+ onKupFocus(node) {
111
+ this.kupFocus.emit({
112
+ comp: this,
113
+ id: this.rootElement.id,
114
+ node: node,
115
+ });
116
+ }
117
+ onKupToolbarItemClick(e) {
118
+ this.kupToolbarItemClick.emit({
119
+ comp: this,
120
+ id: this.rootElement.id,
121
+ node: e.detail.selected,
122
+ });
42
123
  }
43
124
  /*-------------------------------------------------*/
44
125
  /* W a t c h e r s */
@@ -62,9 +143,9 @@ const KupAccordion = class {
62
143
  */
63
144
  async collapseAll() {
64
145
  const ids = [];
65
- for (let i = 0; i < this.data.columns.length; i++) {
66
- const column = this.data.columns[i];
67
- const itemName = column.name;
146
+ for (let i = 0; i < this.data.length; i++) {
147
+ const node = this.data[i];
148
+ const itemName = node.id;
68
149
  if (!this.isItemExpandible(itemName) &&
69
150
  this.isItemSelected(itemName)) {
70
151
  ids.push(itemName);
@@ -77,9 +158,9 @@ const KupAccordion = class {
77
158
  */
78
159
  async expandAll() {
79
160
  const ids = [];
80
- for (let i = 0; i < this.data.columns.length; i++) {
81
- const column = this.data.columns[i];
82
- const itemName = column.name;
161
+ for (let i = 0; i < this.data.length; i++) {
162
+ const node = this.data[i];
163
+ const itemName = node.id;
83
164
  if (this.isItemExpandible(itemName)) {
84
165
  ids.push(itemName);
85
166
  }
@@ -111,27 +192,34 @@ const KupAccordion = class {
111
192
  * This method activates or deactivates an item
112
193
  * @param {string} itemName - Name of the item.
113
194
  */
114
- async toggleItem(itemName) {
115
- const isItemExpandible = this.isItemExpandible(itemName);
195
+ async toggleItem(node) {
116
196
  const ids = [...this.selectedItems];
117
- if (ids.includes(itemName)) {
118
- ids.splice(ids.indexOf(itemName), 1);
197
+ if (ids.includes(node.id)) {
198
+ ids.splice(ids.indexOf(node.id), 1);
119
199
  }
120
200
  else {
121
- ids.push(itemName);
201
+ ids.push(node.id);
122
202
  }
123
203
  this.selectedItems = ids;
124
- if (!isItemExpandible) {
125
- this.kupAccordionItemSelected.emit({
126
- comp: this,
127
- id: this.rootElement.id,
128
- itemName: itemName,
129
- });
130
- }
204
+ this.kupClick.emit({
205
+ comp: this,
206
+ id: this.rootElement.id,
207
+ node: node,
208
+ });
131
209
  }
132
210
  /*-------------------------------------------------*/
133
211
  /* P r i v a t e M e t h o d s */
134
212
  /*-------------------------------------------------*/
213
+ updateSelectedItems() {
214
+ const ids = [];
215
+ for (let i = 0; i < this.data.length; i++) {
216
+ const node = this.data[i];
217
+ if (node.contentVisible) {
218
+ ids.push(node.id);
219
+ }
220
+ }
221
+ this.selectedItems = ids;
222
+ }
135
223
  isItemExpandible(itemName) {
136
224
  return this.slotsNames.includes(itemName);
137
225
  }
@@ -139,6 +227,7 @@ const KupAccordion = class {
139
227
  return this.selectedItems.includes(itemName);
140
228
  }
141
229
  renderItems() {
230
+ var _a, _b;
142
231
  const items = [];
143
232
  const slots = Array.prototype.slice.call(this.rootElement.children, 0);
144
233
  this.slotsNames = [];
@@ -146,9 +235,9 @@ const KupAccordion = class {
146
235
  const slot = slots[index];
147
236
  this.slotsNames.push(slot.slot);
148
237
  }
149
- for (let i = 0; i < this.data.columns.length; i++) {
150
- const column = this.data.columns[i];
151
- const itemName = column.name;
238
+ for (let i = 0; i < this.data.length; i++) {
239
+ const node = this.data[i];
240
+ const itemName = node.id;
152
241
  const isItemSelected = this.isItemSelected(itemName);
153
242
  const isItemExpandible = this.isItemExpandible(itemName);
154
243
  const itemHeaderClass = {
@@ -164,10 +253,128 @@ const KupAccordion = class {
164
253
  ? true
165
254
  : false,
166
255
  };
167
- items.push(h("div", { class: "accordion-item" }, h("div", { tabindex: "1", title: column.title, class: itemHeaderClass, onClick: () => this.toggleItem(itemName) }, column.icon ? (h(FImage, { color: `var(${KupThemeColorValues.ICON})`, resource: column.icon, sizeX: "1.5em", sizeY: "1.5em", wrapperClass: "accordion-item__icon" })) : null, h("span", { class: "accordion-item__text" }, column.title), isItemExpandible ? (h("span", { class: `accordion-item__dropdown kup-icon ${KupThemeIconValues.DROPDOWN.replace('--', '')}` })) : null), h("div", { class: itemContentClass }, h("slot", { name: column.name }))));
256
+ const wrapper = (h("div", { class: "accordion-rigtbuttons" }, this.infoIcon && (h(FImage, { resource: "info_outline", sizeX: "16px", sizeY: "16px", onClick: async (event) => {
257
+ event.stopPropagation();
258
+ const el = event.currentTarget;
259
+ const data = await this.infoCallback();
260
+ this.infoState = data;
261
+ if (this.infoState.length > 0) {
262
+ this.onKupInfoIconClick(el);
263
+ }
264
+ else {
265
+ this.kupManager.debug.logMessage(this, 'InfoIcon data is empty, not opening dropdown.');
266
+ }
267
+ }, wrapperClass: "tab__iconToolbar iconInfo" })), this.toolbar && (h(FImage, { resource: "more_vert", sizeX: "16px", sizeY: "16px", onClick: async (event) => {
268
+ event.stopPropagation();
269
+ const el = event.currentTarget;
270
+ const data = await this.toolbarCallback();
271
+ this.toolbarState = data;
272
+ if (this.toolbarState.length > 0) {
273
+ this.onKupIconClick(el);
274
+ }
275
+ else {
276
+ this.kupManager.debug.logMessage(this, 'Toolbar data is empty, not opening dropdown.');
277
+ }
278
+ }, wrapperClass: "tab__iconToolbar iconToolbar" })), isItemExpandible ? (h("div", { class: `accordion-item__dropdown kup-icon ${KupThemeIconValues.DROPDOWN.replace('--', '')}` })) : null));
279
+ items.push(h("div", { class: "accordion-item" }, h("div", { tabindex: i, title: (_a = node.title) !== null && _a !== void 0 ? _a : null, class: itemHeaderClass, onClick: () => this.toggleItem(node), onBlur: () => this.onKupBlur(node),
280
+ // onClick={() => this.onKupClick(i, node)}
281
+ onFocus: () => this.onKupFocus(node) }, node.icon ? (h(FImage, { color: `var(${KupThemeColorValues.PRIMARY})`, resource: node.icon, placeholderResource: node.placeholderIcon, sizeX: "1.5em", sizeY: "1.5em", wrapperClass: "accordion-item__icon" })) : null, node.value ? (h("span", { class: "accordion-item__text" }, (_b = node.value) !== null && _b !== void 0 ? _b : '')) : null, wrapper), h("div", { class: itemContentClass }, h("slot", { name: node.id }))));
168
282
  }
169
283
  return items;
170
284
  }
285
+ closeRowToolbarList() {
286
+ if (this.toolbarList) {
287
+ this.kupManager.dynamicPosition.stop(this.toolbarList);
288
+ this.kupManager.removeClickCallback(__classPrivateFieldGet(this, _KupAccordion_clickCbDropCard, "f"));
289
+ this.toolbarList.remove();
290
+ this.kupManager.dynamicPosition.unregister([this.toolbarList]);
291
+ this.toolbarList = null;
292
+ }
293
+ }
294
+ /**
295
+ * Create dropdown list for toolbar
296
+ */
297
+ createDropDownToolbarList() {
298
+ if (!__classPrivateFieldGet(this, _KupAccordion_dropDownActionCardAnchor, "f")) {
299
+ this.kupManager.debug.logMessage(this, 'createDropDownToolbarList: Anchor is null!');
300
+ return;
301
+ }
302
+ if (this.toolbarList) {
303
+ this.closeRowToolbarList();
304
+ }
305
+ if (this.toolbarState.length === 0) {
306
+ this.kupManager.debug.logMessage(this, 'No toolbar state available.');
307
+ return;
308
+ }
309
+ const listEl = document.createElement('kup-toolbar');
310
+ listEl.data = this.toolbarState;
311
+ listEl.addEventListener('kup-toolbar-click', (e) => {
312
+ this.onKupToolbarItemClick(e);
313
+ setTimeout(() => {
314
+ this.closeRowToolbarList();
315
+ }, 0);
316
+ });
317
+ this.toolbarList = listEl;
318
+ __classPrivateFieldSet(this, _KupAccordion_clickCbDropCard, {
319
+ cb: () => {
320
+ this.closeRowToolbarList();
321
+ },
322
+ el: this.toolbarList,
323
+ }, "f");
324
+ this.kupManager.addClickCallback(__classPrivateFieldGet(this, _KupAccordion_clickCbDropCard, "f"), true);
325
+ this.rootElement.shadowRoot.appendChild(this.toolbarList);
326
+ requestAnimationFrame(() => {
327
+ if (!__classPrivateFieldGet(this, _KupAccordion_dropDownActionCardAnchor, "f")) {
328
+ this.kupManager.debug.logMessage(this, 'DropDown anchor is still null after delay!');
329
+ return;
330
+ }
331
+ this.kupManager.dynamicPosition.register(this.toolbarList, __classPrivateFieldGet(this, _KupAccordion_dropDownActionCardAnchor, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
332
+ this.kupManager.dynamicPosition.start(this.toolbarList);
333
+ });
334
+ }
335
+ /**
336
+ * Create dropdown list for tab info icon
337
+ */
338
+ createDropDownInfoList() {
339
+ if (!__classPrivateFieldGet(this, _KupAccordion_dropDownActionCardAnchor, "f")) {
340
+ this.kupManager.debug.logMessage(this, 'createDropDownToolbarList: Anchor is null!');
341
+ return;
342
+ }
343
+ if (this.infoList) {
344
+ this.closeInfoDataList();
345
+ }
346
+ if (this.infoState.length === 0) {
347
+ this.kupManager.debug.logMessage(this, 'No toolbar state available.');
348
+ return;
349
+ }
350
+ const listEl = document.createElement('kup-list');
351
+ listEl.data = this.infoState;
352
+ this.infoList = listEl;
353
+ __classPrivateFieldSet(this, _KupAccordion_clickCbDropCard, {
354
+ cb: () => {
355
+ this.closeInfoDataList();
356
+ },
357
+ el: this.infoList,
358
+ }, "f");
359
+ this.kupManager.addClickCallback(__classPrivateFieldGet(this, _KupAccordion_clickCbDropCard, "f"), true);
360
+ this.rootElement.shadowRoot.appendChild(this.infoList);
361
+ requestAnimationFrame(() => {
362
+ this.kupManager.dynamicPosition.register(this.infoList, __classPrivateFieldGet(this, _KupAccordion_dropDownActionCardAnchor, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
363
+ this.kupManager.dynamicPosition.start(this.infoList);
364
+ });
365
+ }
366
+ /**
367
+ * Destroy dropdown list for tab info icon
368
+ */
369
+ closeInfoDataList() {
370
+ if (this.infoList) {
371
+ this.kupManager.dynamicPosition.stop(this.infoList);
372
+ this.kupManager.removeClickCallback(__classPrivateFieldGet(this, _KupAccordion_clickCbDropCard, "f"));
373
+ this.infoList.remove();
374
+ this.kupManager.dynamicPosition.unregister([this.infoList]);
375
+ this.infoList = null;
376
+ }
377
+ }
171
378
  /*-------------------------------------------------*/
172
379
  /* L i f e c y c l e H o o k s */
173
380
  /*-------------------------------------------------*/
@@ -176,6 +383,7 @@ const KupAccordion = class {
176
383
  this.kupManager.theme.register(this);
177
384
  }
178
385
  componentDidLoad() {
386
+ this.updateSelectedItems();
179
387
  this.applyRipple();
180
388
  this.kupManager.debug.logLoad(this, true);
181
389
  }
@@ -195,8 +403,8 @@ const KupAccordion = class {
195
403
  this.kupManager.debug.logRender(this, true);
196
404
  }
197
405
  render() {
198
- const content = this.data && this.data.columns ? this.renderItems() : null;
199
- return (h(Host, { key: 'e833d2f12eaadc0a52bbfa292e29c92e3a7d737c' }, h("style", { key: '93b4315cd2a0f9834ec9f4cf70c0c2cf6baf91cb' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: 'a9cbd70c8e08f1b00cdee843c8b34540e49a7541', id: componentWrapperId }, h("div", { key: '9ddf2bd8d16f97c3004948e31dcd2bb17ee155b6', class: "accordion" }, content))));
406
+ const content = this.data && this.data.length ? this.renderItems() : null;
407
+ return (h(Host, { key: '1eab0235eab32cfa1132d4f918b56e2788f10e3e' }, h("style", { key: '5562ce0c27752221054bfe75c5bc0fa73483c551' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '8023ab06eb1040fd72788e4e94f8cf520da31a12', id: componentWrapperId }, h("div", { key: '8cfc0ba359969c76ff2dab13ed3c80f3e03e5828', class: "accordion" }, content))));
200
408
  }
201
409
  disconnectedCallback() {
202
410
  this.kupManager.theme.unregister(this);
@@ -206,6 +414,7 @@ const KupAccordion = class {
206
414
  "ripple": ["applyRipple"]
207
415
  }; }
208
416
  };
417
+ _KupAccordion_clickCbDropCard = new WeakMap(), _KupAccordion_dropDownActionCardAnchor = new WeakMap();
209
418
  KupAccordion.style = KupAccordionStyle0;
210
419
 
211
420
  export { KupAccordion as kup_accordion };
@@ -9223,16 +9223,9 @@ const KupDataTable = class {
9223
9223
  * @param {KupDataColumn} column - Column to hide.
9224
9224
  */
9225
9225
  async hideColumn(column) {
9226
- var _a;
9227
9226
  __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").data.column.hide(this.data, [column.name]);
9228
- if ((_a = this.visibleColumns) === null || _a === void 0 ? void 0 : _a.length) {
9229
- this.visibleColumns = this.visibleColumns.filter((colName) => colName != column.name);
9230
- }
9231
- else {
9232
- this.visibleColumns = this.data.columns
9233
- .filter((col) => col.name != column.name && col.visible)
9234
- .map((col) => col.name);
9235
- }
9227
+ this.visibleColumns = this.getVisibleColumns().map((col) => col.name);
9228
+ this.visibleColumns = this.visibleColumns.filter((colName) => colName != column.name);
9236
9229
  this.kupColumnRemove.emit({
9237
9230
  comp: this,
9238
9231
  id: this.rootElement.id,
@@ -9319,6 +9312,23 @@ const KupDataTable = class {
9319
9312
  */
9320
9313
  async newColumn(type, options) {
9321
9314
  const result = __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").data.column.new(this.data, type, options);
9315
+ this.visibleColumns = this.getVisibleColumns().map((col) => col.name);
9316
+ if (typeof result !== 'string') {
9317
+ if (this.visibleColumns.findIndex((c) => c === result.name) < 0) {
9318
+ __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'New column [' +
9319
+ result.name +
9320
+ '] not present in visibleColumns!', KupDebugCategory.WARNING);
9321
+ const previousColumnIndex = this.visibleColumns.findIndex((c) => c == options.columns[1]);
9322
+ if (previousColumnIndex >= 0) {
9323
+ __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'New column [' +
9324
+ result.name +
9325
+ '] added in visibleColumns at index [' +
9326
+ (previousColumnIndex + 1) +
9327
+ ']!', KupDebugCategory.WARNING);
9328
+ this.visibleColumns.splice(previousColumnIndex + 1, 0, result.name);
9329
+ }
9330
+ }
9331
+ }
9322
9332
  this.refresh();
9323
9333
  return result;
9324
9334
  }
@@ -10030,7 +10040,7 @@ const KupDataTable = class {
10030
10040
  __classPrivateFieldSet$3(this, _KupDataTable_sizedColumns, __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
10031
10041
  let rows = null;
10032
10042
  if (__classPrivateFieldGet$7(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
10033
- rows = (h("tr", { key: 'a109c26f03243692c99a25a1eea25453b1c74e2e', ref: (el) => __classPrivateFieldGet$7(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: 'e6491cf3a87bda2b61ab2e3966fbd45cfd0300a8', colSpan: __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
10043
+ rows = (h("tr", { key: '95eed1b957f7ffb295c775f134fd0f21e785b2c2', ref: (el) => __classPrivateFieldGet$7(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: 'de4621dcb62b4fef44efbcd60f24d393d28c17c0', colSpan: __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
10034
10044
  }
10035
10045
  else {
10036
10046
  rows = [];
@@ -10095,7 +10105,7 @@ const KupDataTable = class {
10095
10105
  for (let i = 0; i < chipsData.length; i++) {
10096
10106
  props.onIconClick.push(() => __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
10097
10107
  }
10098
- groupChips = h(FChip, Object.assign({ key: '994486aa00508cc9dcc5fa90077ed03a624e5869' }, props));
10108
+ groupChips = h(FChip, Object.assign({ key: '2057846e925b1cb43848ab567b53ea062a3bd393' }, props));
10099
10109
  }
10100
10110
  }
10101
10111
  const tableClass = {
@@ -10127,7 +10137,7 @@ const KupDataTable = class {
10127
10137
  if (this.headerIsPersistent &&
10128
10138
  this.tableHeight === undefined &&
10129
10139
  this.tableWidth === undefined) {
10130
- stickyEl = (h("sticky-header", { key: 'dc954425f33cee9ec4e421b296cc682a3a7a50f8', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: '92b5290552da8cad020933881448f23a90613398' }, h("tr-sticky", { key: 'dc89f168bacfe6fe8a7fbfb3340d3c778fa814d1' }, stickyHeader))));
10140
+ stickyEl = (h("sticky-header", { key: 'c7e308ac460a20aaf536f06a45cd5a6789d41b4b', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: '11de7f3d2a0c2a29c12da43c44f507b9820c481a' }, h("tr-sticky", { key: '66b0d997918b27c6fe2967b5089522efc5580185' }, stickyHeader))));
10131
10141
  }
10132
10142
  let belowClass = 'below-wrapper';
10133
10143
  if (!!this.tableHeight || !!this.tableWidth) {
@@ -10173,7 +10183,7 @@ const KupDataTable = class {
10173
10183
  const useGlobalFilter = !this.legacyLook &&
10174
10184
  (this.globalFilter ||
10175
10185
  this.getRows().length > __classPrivateFieldGet$7(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
10176
- const compCreated = (h(Host, { key: 'c666846d684579a5add73e5a7ef9d7dde3cadf81', "onKup-drop": (e) => {
10186
+ const compCreated = (h(Host, { key: 'c0d6dc62580a5f75b52a253b14417d84c0da1915', "onKup-drop": (e) => {
10177
10187
  this.kupDataTableDrop.emit(e.detail);
10178
10188
  }, "onKup-cell-input": (e) => {
10179
10189
  autoselectOnAction(e);
@@ -10188,11 +10198,11 @@ const KupDataTable = class {
10188
10198
  this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
10189
10199
  }, "onKup-objectfield-selectedmenuitem": (e) => {
10190
10200
  this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
10191
- } }, h("style", { key: 'a1399a34ead8fb8cad66b57c77c7ae7421040bfd' }, __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, h("div", { key: '9850db333ad3684835003c25eaf60e806c9f9a5d', id: componentWrapperId, class: wrapClass }, h("div", { key: 'e27fc200f0c1a28e91adf386dc316d1610b353fc', class: "group-wrapper" }, groupChips), h("div", { key: '387a46341b05a7d89feb8cd56809eaed5bde631e', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
10201
+ } }, h("style", { key: '29c51b30d2b4310567d30f1f12b571e305773e4b' }, __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, h("div", { key: 'a64f8e36a8c4e1605c04292ca6bb7efca758476b', id: componentWrapperId, class: wrapClass }, h("div", { key: '406d2c32793ce6c0e6d9c73ed6714b49ed5fe88b', class: "group-wrapper" }, groupChips), h("div", { key: '747aae1583a41ba9f4a5a7f2cdaabd61a68f60b5', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
10192
10202
  const t = event.target;
10193
10203
  window.clearTimeout(__classPrivateFieldGet$7(this, _KupDataTable_globalFilterTimeout, "f"));
10194
10204
  __classPrivateFieldSet$3(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
10195
- } }))) : null, h("div", { key: '05c0fc7fa6d7e8d6e5ccf5b5ef0ab80ef2c14fb0', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
10205
+ } }))) : null, h("div", { key: '9966a4c8e86f9a8313c2cd2d8f3e777a2c13e40e', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
10196
10206
  this.selectedRows.length > 0 ? (h(FButton, { icon: "save", onClick: () => {
10197
10207
  this.kupSave.emit({
10198
10208
  comp: this,
@@ -10242,9 +10252,9 @@ const KupDataTable = class {
10242
10252
  this.data.rows.unshift(row);
10243
10253
  await this.refresh(true);
10244
10254
  }
10245
- }, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '21beaa04b56c5f553a604ce725f1873f0fe2264e', class: "droparea", ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
10255
+ }, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '0ce9fd68ef4ffea7700333f61de3a13005097a55', class: "droparea", ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
10246
10256
  ? __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
10247
- : null), h("div", { key: 'f444f55b6ac34b18f0816503ff3f211e7ccfac62', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
10257
+ : null), h("div", { key: '88ce6e0c234395fd470f7ac2a5f9a0918ba56ef7', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
10248
10258
  ? [
10249
10259
  h("div", { class: "settings-trigger", onClick: () => {
10250
10260
  __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
@@ -10253,7 +10263,7 @@ const KupDataTable = class {
10253
10263
  } }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
10254
10264
  this.renderCustomizePanel(),
10255
10265
  ]
10256
- : null, h("table", { key: '56d61544a52854bb46b7b151b038a93ad3c2dcd1', class: tableClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet$7(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
10266
+ : null, h("table", { key: '057cf233daad29db1969b00ea756e7cbd718bc41', class: tableClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet$7(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
10257
10267
  ev.stopPropagation();
10258
10268
  }, onPointerDown: (e) => {
10259
10269
  __classPrivateFieldSet$3(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
@@ -10261,7 +10271,7 @@ const KupDataTable = class {
10261
10271
  __classPrivateFieldSet$3(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
10262
10272
  }, onContextMenu: (e) => {
10263
10273
  e.preventDefault();
10264
- } }, h("thead", { key: '54d271abddddca052867731081bf3078bfb8960c', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: '061e099d373ad7dc8841b6ca48e4b532b36c5ea0' }, header)), h("tbody", { key: 'e7f1310493d586c53b80cfe9c3296efb1808a724' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
10274
+ } }, h("thead", { key: '1adb805159eee68c69ebffcac19cd86e23d875d4', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: 'bbde00b6aecb2dd6418d203de9bf31a6c4967c4d' }, header)), h("tbody", { key: 'ae64233d16c02725b80a180eb1742044bd2ba5b4' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
10265
10275
  __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
10266
10276
  return compCreated;
10267
10277
  }
@@ -12299,10 +12309,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
12299
12309
  this.visibleColumns.splice(rIdx, 0, sortedName);
12300
12310
  }
12301
12311
  else {
12302
- // // Adds the sorted column to visibleColumns to preserve the current column order.
12303
- this.visibleColumns = this.data.columns
12304
- .filter((col) => col.visible)
12305
- .map((col) => col.name);
12312
+ // Adds the sorted column to visibleColumns to preserve the current column order.
12313
+ this.visibleColumns = this.getVisibleColumns().map((c) => c.name);
12306
12314
  }
12307
12315
  }, _KupDataTable_moveSortedColumns = function _KupDataTable_moveSortedColumns(columns, receivingColumnIndex, sortedColumnIndex) {
12308
12316
  const remove = columns.splice(sortedColumnIndex, 1);
@@ -17540,9 +17548,13 @@ var KupTabBarProps;
17540
17548
  (function (KupTabBarProps) {
17541
17549
  KupTabBarProps["customStyle"] = "Custom style of the component.";
17542
17550
  KupTabBarProps["data"] = "List of elements.";
17551
+ KupTabBarProps["dense"] = "When true, the component will be more compact.";
17552
+ KupTabBarProps["infoIcon"] = "Icon to be shown in the info button";
17543
17553
  KupTabBarProps["ripple"] = "When enabled displays Material's ripple effect on item headers.";
17544
17554
  KupTabBarProps["toolbar"] = "when true, it will show the toolbar activation icon";
17545
17555
  KupTabBarProps["variant"] = "Variant of the component. It is either flat or contained";
17556
+ KupTabBarProps["toolbarCallback"] = "Callback to be called when the toolbar icon is clicked";
17557
+ KupTabBarProps["infoCallback"] = "Callback to be called when the info icon is clicked";
17546
17558
  })(KupTabBarProps || (KupTabBarProps = {}));
17547
17559
  /**
17548
17560
  * Styling options for the f-button component.
@@ -17585,7 +17597,7 @@ const KupTabBar = class {
17585
17597
  this.kupIconClick = createEvent(this, "kup-tabbar-iconclick", 6);
17586
17598
  this.kupInfoIconClick = createEvent(this, "kup-tabbar-infoiconclick", 6);
17587
17599
  this.kupFocus = createEvent(this, "kup-tabbar-focus", 6);
17588
- this.kupItemClick = createEvent(this, "kup-tabbar-itemclick", 6);
17600
+ this.kupToolbarItemClick = createEvent(this, "kup-tabbar-toolbaritemclick", 6);
17589
17601
  /*-------------------------------------------------*/
17590
17602
  /* I n t e r n a l V a r i a b l e s */
17591
17603
  /*-------------------------------------------------*/
@@ -17658,7 +17670,7 @@ const KupTabBar = class {
17658
17670
  });
17659
17671
  }
17660
17672
  onKupToolbarItemClick(e) {
17661
- this.kupItemClick.emit({
17673
+ this.kupToolbarItemClick.emit({
17662
17674
  comp: this,
17663
17675
  id: this.rootElement.id,
17664
17676
  value: this.value,
@@ -17872,7 +17884,7 @@ const KupTabBar = class {
17872
17884
  'kup-dense': this.dense,
17873
17885
  'kup-danger': node.danger,
17874
17886
  };
17875
- const tabEl = (h("f-button", { class: tabClass, role: "tab", "aria-selected": this.data[i].active ? true : false, tabIndex: i, title: node.title ? node.title : null, onBlur: () => this.onKupBlur(i, node), onClick: () => this.onKupClick(i, node), onFocus: () => this.onKupFocus(i, node) }, h("span", { class: "tab__content" }, node.icon ? (h(FImage, { color: `var(${KupThemeColorValues.PRIMARY})`, resource: node.icon, placeholderResource: node.placeholderIcon, wrapperClass: "tab__icon" })) : null, node.value ? (h("span", { class: "tab__text-label" }, this.data[i].value)) : null), this.infoIcon && (h(FImage, { resource: "info_outline", sizeX: "16px", sizeY: "16px", onClick: async (event) => {
17887
+ const tabEl = (h("f-button", { class: tabClass, role: "tab", "aria-selected": node.active ? true : false, tabIndex: i, title: node.title ? node.title : null, onBlur: () => this.onKupBlur(i, node), onClick: () => this.onKupClick(i, node), onFocus: () => this.onKupFocus(i, node) }, h("span", { class: "tab__content" }, node.icon ? (h(FImage, { color: `var(${KupThemeColorValues.PRIMARY})`, resource: node.icon, placeholderResource: node.placeholderIcon, wrapperClass: "tab__icon" })) : null, node.value ? (h("span", { class: "tab__text-label" }, node.value)) : null), this.infoIcon && (h(FImage, { resource: "info_outline", sizeX: "16px", sizeY: "16px", onClick: async (event) => {
17876
17888
  event.stopPropagation();
17877
17889
  const el = event.currentTarget;
17878
17890
  const data = await this.infoCallback();