@sme.up/ketchup 11.0.0-SNAPSHOT-20250410104333 → 11.0.0-SNAPSHOT-20250414143939

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 (98) 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 +7 -3
  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-image/assets/svg/bullseye-arrow.svg +1 -0
  11. package/dist/collection/components/kup-image/assets/svg/email-stacked.svg +1 -0
  12. package/dist/collection/components/kup-image/assets/svg/filter-off.svg +1 -0
  13. package/dist/collection/components/kup-image/assets/svg/status.svg +9 -0
  14. package/dist/collection/components/kup-tab-bar/kup-tab-bar-declarations.js +4 -0
  15. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +4 -4
  16. package/dist/components/index.js +1 -1
  17. package/dist/components/kup-accordion.js +242 -29
  18. package/dist/components/kup-activity-timeline.js +2 -2
  19. package/dist/components/kup-autocomplete.js +1 -1
  20. package/dist/components/kup-badge.js +1 -1
  21. package/dist/components/kup-box.js +1 -1
  22. package/dist/components/kup-button-list.js +1 -1
  23. package/dist/components/kup-button.js +1 -1
  24. package/dist/components/kup-calendar.js +2 -2
  25. package/dist/components/kup-card-list.js +3 -3
  26. package/dist/components/kup-card.js +1 -1
  27. package/dist/components/kup-cell.js +2 -2
  28. package/dist/components/kup-chart.js +1 -1
  29. package/dist/components/kup-checkbox.js +1 -1
  30. package/dist/components/kup-chip.js +1 -1
  31. package/dist/components/kup-color-picker.js +1 -1
  32. package/dist/components/kup-combobox.js +1 -1
  33. package/dist/components/kup-dashboard.js +2 -2
  34. package/dist/components/kup-data-table.js +1 -1
  35. package/dist/components/kup-date-picker.js +1 -1
  36. package/dist/components/kup-dialog.js +1 -1
  37. package/dist/components/kup-drawer.js +2 -2
  38. package/dist/components/kup-dropdown-button.js +1 -1
  39. package/dist/components/kup-echart.js +1 -1
  40. package/dist/components/kup-editor.js +1 -1
  41. package/dist/components/kup-family-tree.js +3 -3
  42. package/dist/components/kup-file-upload.js +1 -1
  43. package/dist/components/kup-form.js +1 -1
  44. package/dist/components/kup-gauge.js +1 -1
  45. package/dist/components/kup-grid.js +1 -1
  46. package/dist/components/kup-htm.js +2 -2
  47. package/dist/components/kup-iframe.js +2 -2
  48. package/dist/components/kup-image-list.js +2 -2
  49. package/dist/components/kup-image.js +1 -1
  50. package/dist/components/kup-input-panel.js +3 -3
  51. package/dist/components/kup-lazy.js +2 -2
  52. package/dist/components/kup-list.js +1 -1
  53. package/dist/components/kup-magic-box.js +4 -4
  54. package/dist/components/kup-nav-bar.js +2 -2
  55. package/dist/components/kup-numeric-picker.js +2 -2
  56. package/dist/components/kup-object-field.js +2 -2
  57. package/dist/components/kup-pdf.js +2 -2
  58. package/dist/components/kup-planner.js +2 -2
  59. package/dist/components/kup-probe.js +2 -2
  60. package/dist/components/kup-progress-bar.js +1 -1
  61. package/dist/components/kup-qlik.js +2 -2
  62. package/dist/components/kup-radio.js +1 -1
  63. package/dist/components/kup-rating.js +1 -1
  64. package/dist/components/kup-snackbar.js +2 -2
  65. package/dist/components/kup-spinner.js +1 -1
  66. package/dist/components/kup-switch.js +1 -1
  67. package/dist/components/kup-tab-bar.js +1 -1
  68. package/dist/components/kup-text-field.js +1 -1
  69. package/dist/components/kup-time-picker.js +1 -1
  70. package/dist/components/kup-toolbar.js +1 -1
  71. package/dist/components/kup-tree.js +1 -1
  72. package/dist/components/kup-txt.js +2 -2
  73. package/dist/components/kup-typography-list.js +2 -2
  74. package/dist/components/kup-typography.js +2 -2
  75. package/dist/components/{p-73922583.js → p-04bdcde6.js} +1 -1
  76. package/dist/components/{p-9cadb89a.js → p-154aa772.js} +2 -2
  77. package/dist/components/{p-2d17a388.js → p-9604d7b8.js} +2 -2
  78. package/dist/components/{p-f4cbdb5d.js → p-d814a4cb.js} +2 -2
  79. package/dist/components/{p-76ce24eb.js → p-e22a9cfc.js} +2 -2
  80. package/dist/components/{p-c50f899f.js → p-ece73808.js} +1868 -1859
  81. package/dist/esm/ketchup.js +1 -1
  82. package/dist/esm/kup-accordion.entry.js +237 -28
  83. package/dist/esm/kup-autocomplete_29.entry.js +7 -3
  84. package/dist/esm/loader.js +1 -1
  85. package/dist/ketchup/assets/svg/bullseye-arrow.svg +1 -0
  86. package/dist/ketchup/assets/svg/email-stacked.svg +1 -0
  87. package/dist/ketchup/assets/svg/filter-off.svg +1 -0
  88. package/dist/ketchup/assets/svg/status.svg +9 -0
  89. package/dist/ketchup/ketchup.esm.js +1 -1
  90. package/dist/ketchup/p-527998c8.entry.js +1 -0
  91. package/dist/ketchup/{p-e9f77e3a.entry.js → p-b2a5caf8.entry.js} +1 -1
  92. package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +14 -7
  93. package/dist/types/components/kup-accordion/kup-accordion.d.ts +67 -6
  94. package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +6 -1
  95. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +1 -1
  96. package/dist/types/components.d.ts +61 -12
  97. package/package.json +1 -1
  98. package/dist/ketchup/p-c832734a.entry.js +0 -1
@@ -1,3 +1,20 @@
1
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
+ if (kind === "m")
3
+ throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f)
5
+ throw new TypeError("Private accessor was defined without a setter");
6
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
7
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
8
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
9
+ };
10
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11
+ if (kind === "a" && !f)
12
+ throw new TypeError("Private accessor was defined without a getter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
14
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
15
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
16
+ };
17
+ var _KupAccordion_clickCbDropCard, _KupAccordion_dropDownActionCardAnchor;
1
18
  import { forceUpdate, h, Host, } from "@stencil/core";
2
19
  import { MDCRipple } from "@material/ripple";
3
20
  import { KupComponentSizing, } from "../../types/GenericTypes";
@@ -7,24 +24,79 @@ import { KupAccordionProps, } from "./kup-accordion-declarations";
7
24
  import { FImage } from "../../f-components/f-image/f-image";
8
25
  import { componentWrapperId } from "../../variables/GenericVariables";
9
26
  import { KupThemeColorValues, KupThemeIconValues, } from "../../managers/kup-theme/kup-theme-declarations";
27
+ import { KupDynamicPositionPlacement, } from "../../managers/kup-dynamic-position/kup-dynamic-position-declarations";
10
28
  export class KupAccordion {
11
29
  constructor() {
12
30
  /*-------------------------------------------------*/
13
31
  /* I n t e r n a l V a r i a b l e s */
14
32
  /*-------------------------------------------------*/
33
+ this.toolbarState = [];
34
+ this.infoState = [];
15
35
  /**
16
36
  * Instance of the KupManager class.
17
37
  */
18
38
  this.kupManager = kupManagerInstance();
39
+ _KupAccordion_clickCbDropCard.set(this, null);
19
40
  /**
20
41
  * Instance of the KupManager class.
21
42
  */
22
43
  this.slotsNames = [];
44
+ _KupAccordion_dropDownActionCardAnchor.set(this, null);
23
45
  this.selectedItems = [];
24
46
  this.customStyle = '';
25
47
  this.data = null;
48
+ this.infoIcon = false;
26
49
  this.ripple = false;
50
+ this.toolbar = false;
27
51
  this.sizing = KupComponentSizing.SMALL;
52
+ this.toolbarCallback = undefined;
53
+ this.infoCallback = undefined;
54
+ }
55
+ onKupBlur(node) {
56
+ this.kupBlur.emit({
57
+ comp: this,
58
+ id: this.rootElement.id,
59
+ node: node,
60
+ });
61
+ }
62
+ onKupClick(i, node) {
63
+ this.data[i].contentVisible = !this.data[i].contentVisible;
64
+ this.updateSelectedItems();
65
+ this.kupClick.emit({
66
+ comp: this,
67
+ id: this.rootElement.id,
68
+ node: node,
69
+ });
70
+ }
71
+ onKupIconClick(el) {
72
+ if (!el) {
73
+ this.kupManager.debug.logMessage(this, 'onKupIconClick: Element is null');
74
+ return;
75
+ }
76
+ __classPrivateFieldSet(this, _KupAccordion_dropDownActionCardAnchor, el, "f");
77
+ this.createDropDownToolbarList();
78
+ }
79
+ onKupInfoIconClick(el) {
80
+ if (!el) {
81
+ this.kupManager.debug.logMessage(this, 'onKupIconClick: Element is null');
82
+ return;
83
+ }
84
+ __classPrivateFieldSet(this, _KupAccordion_dropDownActionCardAnchor, el, "f");
85
+ this.createDropDownInfoList();
86
+ }
87
+ onKupFocus(node) {
88
+ this.kupFocus.emit({
89
+ comp: this,
90
+ id: this.rootElement.id,
91
+ node: node,
92
+ });
93
+ }
94
+ onKupToolbarItemClick(e) {
95
+ this.kupToolbarItemClick.emit({
96
+ comp: this,
97
+ id: this.rootElement.id,
98
+ node: e.detail.selected,
99
+ });
28
100
  }
29
101
  /*-------------------------------------------------*/
30
102
  /* W a t c h e r s */
@@ -48,9 +120,9 @@ export class KupAccordion {
48
120
  */
49
121
  async collapseAll() {
50
122
  const ids = [];
51
- for (let i = 0; i < this.data.columns.length; i++) {
52
- const column = this.data.columns[i];
53
- const itemName = column.name;
123
+ for (let i = 0; i < this.data.length; i++) {
124
+ const node = this.data[i];
125
+ const itemName = node.id;
54
126
  if (!this.isItemExpandible(itemName) &&
55
127
  this.isItemSelected(itemName)) {
56
128
  ids.push(itemName);
@@ -63,9 +135,9 @@ export class KupAccordion {
63
135
  */
64
136
  async expandAll() {
65
137
  const ids = [];
66
- for (let i = 0; i < this.data.columns.length; i++) {
67
- const column = this.data.columns[i];
68
- const itemName = column.name;
138
+ for (let i = 0; i < this.data.length; i++) {
139
+ const node = this.data[i];
140
+ const itemName = node.id;
69
141
  if (this.isItemExpandible(itemName)) {
70
142
  ids.push(itemName);
71
143
  }
@@ -97,27 +169,34 @@ export class KupAccordion {
97
169
  * This method activates or deactivates an item
98
170
  * @param {string} itemName - Name of the item.
99
171
  */
100
- async toggleItem(itemName) {
101
- const isItemExpandible = this.isItemExpandible(itemName);
172
+ async toggleItem(node) {
102
173
  const ids = [...this.selectedItems];
103
- if (ids.includes(itemName)) {
104
- ids.splice(ids.indexOf(itemName), 1);
174
+ if (ids.includes(node.id)) {
175
+ ids.splice(ids.indexOf(node.id), 1);
105
176
  }
106
177
  else {
107
- ids.push(itemName);
178
+ ids.push(node.id);
108
179
  }
109
180
  this.selectedItems = ids;
110
- if (!isItemExpandible) {
111
- this.kupAccordionItemSelected.emit({
112
- comp: this,
113
- id: this.rootElement.id,
114
- itemName: itemName,
115
- });
116
- }
181
+ this.kupClick.emit({
182
+ comp: this,
183
+ id: this.rootElement.id,
184
+ node: node,
185
+ });
117
186
  }
118
187
  /*-------------------------------------------------*/
119
188
  /* P r i v a t e M e t h o d s */
120
189
  /*-------------------------------------------------*/
190
+ updateSelectedItems() {
191
+ const ids = [];
192
+ for (let i = 0; i < this.data.length; i++) {
193
+ const node = this.data[i];
194
+ if (node.contentVisible) {
195
+ ids.push(node.id);
196
+ }
197
+ }
198
+ this.selectedItems = ids;
199
+ }
121
200
  isItemExpandible(itemName) {
122
201
  return this.slotsNames.includes(itemName);
123
202
  }
@@ -125,6 +204,7 @@ export class KupAccordion {
125
204
  return this.selectedItems.includes(itemName);
126
205
  }
127
206
  renderItems() {
207
+ var _a, _b;
128
208
  const items = [];
129
209
  const slots = Array.prototype.slice.call(this.rootElement.children, 0);
130
210
  this.slotsNames = [];
@@ -132,9 +212,9 @@ export class KupAccordion {
132
212
  const slot = slots[index];
133
213
  this.slotsNames.push(slot.slot);
134
214
  }
135
- for (let i = 0; i < this.data.columns.length; i++) {
136
- const column = this.data.columns[i];
137
- const itemName = column.name;
215
+ for (let i = 0; i < this.data.length; i++) {
216
+ const node = this.data[i];
217
+ const itemName = node.id;
138
218
  const isItemSelected = this.isItemSelected(itemName);
139
219
  const isItemExpandible = this.isItemExpandible(itemName);
140
220
  const itemHeaderClass = {
@@ -150,10 +230,128 @@ export class KupAccordion {
150
230
  ? true
151
231
  : false,
152
232
  };
153
- 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 }))));
233
+ const wrapper = (h("div", { class: "accordion-rigtbuttons" }, this.infoIcon && (h(FImage, { resource: "info_outline", sizeX: "16px", sizeY: "16px", onClick: async (event) => {
234
+ event.stopPropagation();
235
+ const el = event.currentTarget;
236
+ const data = await this.infoCallback();
237
+ this.infoState = data;
238
+ if (this.infoState.length > 0) {
239
+ this.onKupInfoIconClick(el);
240
+ }
241
+ else {
242
+ this.kupManager.debug.logMessage(this, 'InfoIcon data is empty, not opening dropdown.');
243
+ }
244
+ }, wrapperClass: "tab__iconToolbar iconInfo" })), this.toolbar && (h(FImage, { resource: "more_vert", sizeX: "16px", sizeY: "16px", onClick: async (event) => {
245
+ event.stopPropagation();
246
+ const el = event.currentTarget;
247
+ const data = await this.toolbarCallback();
248
+ this.toolbarState = data;
249
+ if (this.toolbarState.length > 0) {
250
+ this.onKupIconClick(el);
251
+ }
252
+ else {
253
+ this.kupManager.debug.logMessage(this, 'Toolbar data is empty, not opening dropdown.');
254
+ }
255
+ }, wrapperClass: "tab__iconToolbar iconToolbar" })), isItemExpandible ? (h("div", { class: `accordion-item__dropdown kup-icon ${KupThemeIconValues.DROPDOWN.replace('--', '')}` })) : null));
256
+ 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),
257
+ // onClick={() => this.onKupClick(i, node)}
258
+ 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 }))));
154
259
  }
155
260
  return items;
156
261
  }
262
+ closeRowToolbarList() {
263
+ if (this.toolbarList) {
264
+ this.kupManager.dynamicPosition.stop(this.toolbarList);
265
+ this.kupManager.removeClickCallback(__classPrivateFieldGet(this, _KupAccordion_clickCbDropCard, "f"));
266
+ this.toolbarList.remove();
267
+ this.kupManager.dynamicPosition.unregister([this.toolbarList]);
268
+ this.toolbarList = null;
269
+ }
270
+ }
271
+ /**
272
+ * Create dropdown list for toolbar
273
+ */
274
+ createDropDownToolbarList() {
275
+ if (!__classPrivateFieldGet(this, _KupAccordion_dropDownActionCardAnchor, "f")) {
276
+ this.kupManager.debug.logMessage(this, 'createDropDownToolbarList: Anchor is null!');
277
+ return;
278
+ }
279
+ if (this.toolbarList) {
280
+ this.closeRowToolbarList();
281
+ }
282
+ if (this.toolbarState.length === 0) {
283
+ this.kupManager.debug.logMessage(this, 'No toolbar state available.');
284
+ return;
285
+ }
286
+ const listEl = document.createElement('kup-toolbar');
287
+ listEl.data = this.toolbarState;
288
+ listEl.addEventListener('kup-toolbar-click', (e) => {
289
+ this.onKupToolbarItemClick(e);
290
+ setTimeout(() => {
291
+ this.closeRowToolbarList();
292
+ }, 0);
293
+ });
294
+ this.toolbarList = listEl;
295
+ __classPrivateFieldSet(this, _KupAccordion_clickCbDropCard, {
296
+ cb: () => {
297
+ this.closeRowToolbarList();
298
+ },
299
+ el: this.toolbarList,
300
+ }, "f");
301
+ this.kupManager.addClickCallback(__classPrivateFieldGet(this, _KupAccordion_clickCbDropCard, "f"), true);
302
+ this.rootElement.shadowRoot.appendChild(this.toolbarList);
303
+ requestAnimationFrame(() => {
304
+ if (!__classPrivateFieldGet(this, _KupAccordion_dropDownActionCardAnchor, "f")) {
305
+ this.kupManager.debug.logMessage(this, 'DropDown anchor is still null after delay!');
306
+ return;
307
+ }
308
+ this.kupManager.dynamicPosition.register(this.toolbarList, __classPrivateFieldGet(this, _KupAccordion_dropDownActionCardAnchor, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
309
+ this.kupManager.dynamicPosition.start(this.toolbarList);
310
+ });
311
+ }
312
+ /**
313
+ * Create dropdown list for tab info icon
314
+ */
315
+ createDropDownInfoList() {
316
+ if (!__classPrivateFieldGet(this, _KupAccordion_dropDownActionCardAnchor, "f")) {
317
+ this.kupManager.debug.logMessage(this, 'createDropDownToolbarList: Anchor is null!');
318
+ return;
319
+ }
320
+ if (this.infoList) {
321
+ this.closeInfoDataList();
322
+ }
323
+ if (this.infoState.length === 0) {
324
+ this.kupManager.debug.logMessage(this, 'No toolbar state available.');
325
+ return;
326
+ }
327
+ const listEl = document.createElement('kup-list');
328
+ listEl.data = this.infoState;
329
+ this.infoList = listEl;
330
+ __classPrivateFieldSet(this, _KupAccordion_clickCbDropCard, {
331
+ cb: () => {
332
+ this.closeInfoDataList();
333
+ },
334
+ el: this.infoList,
335
+ }, "f");
336
+ this.kupManager.addClickCallback(__classPrivateFieldGet(this, _KupAccordion_clickCbDropCard, "f"), true);
337
+ this.rootElement.shadowRoot.appendChild(this.infoList);
338
+ requestAnimationFrame(() => {
339
+ this.kupManager.dynamicPosition.register(this.infoList, __classPrivateFieldGet(this, _KupAccordion_dropDownActionCardAnchor, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
340
+ this.kupManager.dynamicPosition.start(this.infoList);
341
+ });
342
+ }
343
+ /**
344
+ * Destroy dropdown list for tab info icon
345
+ */
346
+ closeInfoDataList() {
347
+ if (this.infoList) {
348
+ this.kupManager.dynamicPosition.stop(this.infoList);
349
+ this.kupManager.removeClickCallback(__classPrivateFieldGet(this, _KupAccordion_clickCbDropCard, "f"));
350
+ this.infoList.remove();
351
+ this.kupManager.dynamicPosition.unregister([this.infoList]);
352
+ this.infoList = null;
353
+ }
354
+ }
157
355
  /*-------------------------------------------------*/
158
356
  /* L i f e c y c l e H o o k s */
159
357
  /*-------------------------------------------------*/
@@ -162,6 +360,7 @@ export class KupAccordion {
162
360
  this.kupManager.theme.register(this);
163
361
  }
164
362
  componentDidLoad() {
363
+ this.updateSelectedItems();
165
364
  this.applyRipple();
166
365
  this.kupManager.debug.logLoad(this, true);
167
366
  }
@@ -181,8 +380,8 @@ export class KupAccordion {
181
380
  this.kupManager.debug.logRender(this, true);
182
381
  }
183
382
  render() {
184
- const content = this.data && this.data.columns ? this.renderItems() : null;
185
- 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))));
383
+ const content = this.data && this.data.length ? this.renderItems() : null;
384
+ 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))));
186
385
  }
187
386
  disconnectedCallback() {
188
387
  this.kupManager.theme.unregister(this);
@@ -229,13 +428,13 @@ export class KupAccordion {
229
428
  "type": "unknown",
230
429
  "mutable": false,
231
430
  "complexType": {
232
- "original": "KupAccordionData",
233
- "resolved": "KupAccordionData",
431
+ "original": "KupAccordionNode[]",
432
+ "resolved": "KupAccordionNode[]",
234
433
  "references": {
235
- "KupAccordionData": {
434
+ "KupAccordionNode": {
236
435
  "location": "import",
237
436
  "path": "./kup-accordion-declarations",
238
- "id": "src/components/kup-accordion/kup-accordion-declarations.ts::KupAccordionData"
437
+ "id": "src/components/kup-accordion/kup-accordion-declarations.ts::KupAccordionNode"
239
438
  }
240
439
  }
241
440
  },
@@ -250,6 +449,27 @@ export class KupAccordion {
250
449
  },
251
450
  "defaultValue": "null"
252
451
  },
452
+ "infoIcon": {
453
+ "type": "boolean",
454
+ "mutable": false,
455
+ "complexType": {
456
+ "original": "boolean",
457
+ "resolved": "boolean",
458
+ "references": {}
459
+ },
460
+ "required": false,
461
+ "optional": false,
462
+ "docs": {
463
+ "tags": [{
464
+ "name": "default",
465
+ "text": "false"
466
+ }],
467
+ "text": "When true, it will show the info activation icon."
468
+ },
469
+ "attribute": "info-icon",
470
+ "reflect": false,
471
+ "defaultValue": "false"
472
+ },
253
473
  "ripple": {
254
474
  "type": "boolean",
255
475
  "mutable": false,
@@ -271,6 +491,27 @@ export class KupAccordion {
271
491
  "reflect": false,
272
492
  "defaultValue": "false"
273
493
  },
494
+ "toolbar": {
495
+ "type": "boolean",
496
+ "mutable": false,
497
+ "complexType": {
498
+ "original": "boolean",
499
+ "resolved": "boolean",
500
+ "references": {}
501
+ },
502
+ "required": false,
503
+ "optional": false,
504
+ "docs": {
505
+ "tags": [{
506
+ "name": "default",
507
+ "text": "false"
508
+ }],
509
+ "text": "When true, it will show the toolbar activation icon."
510
+ },
511
+ "attribute": "toolbar",
512
+ "reflect": false,
513
+ "defaultValue": "false"
514
+ },
274
515
  "sizing": {
275
516
  "type": "string",
276
517
  "mutable": false,
@@ -292,11 +533,61 @@ export class KupAccordion {
292
533
  "name": "default",
293
534
  "text": "KupComponentSizing.SMALL"
294
535
  }],
295
- "text": "Sets the type of the button"
536
+ "text": "Sets the type of the component sizing"
296
537
  },
297
538
  "attribute": "sizing",
298
539
  "reflect": false,
299
540
  "defaultValue": "KupComponentSizing.SMALL"
541
+ },
542
+ "toolbarCallback": {
543
+ "type": "unknown",
544
+ "mutable": false,
545
+ "complexType": {
546
+ "original": "() => Promise<KupDataNode[]>",
547
+ "resolved": "() => Promise<KupDataNode[]>",
548
+ "references": {
549
+ "Promise": {
550
+ "location": "global",
551
+ "id": "global::Promise"
552
+ },
553
+ "KupDataNode": {
554
+ "location": "import",
555
+ "path": "../../managers/kup-data/kup-data-declarations",
556
+ "id": "src/managers/kup-data/kup-data-declarations.ts::KupDataNode"
557
+ }
558
+ }
559
+ },
560
+ "required": false,
561
+ "optional": false,
562
+ "docs": {
563
+ "tags": [],
564
+ "text": ""
565
+ }
566
+ },
567
+ "infoCallback": {
568
+ "type": "unknown",
569
+ "mutable": false,
570
+ "complexType": {
571
+ "original": "() => Promise<KupDataNode[]>",
572
+ "resolved": "() => Promise<KupDataNode[]>",
573
+ "references": {
574
+ "Promise": {
575
+ "location": "global",
576
+ "id": "global::Promise"
577
+ },
578
+ "KupDataNode": {
579
+ "location": "import",
580
+ "path": "../../managers/kup-data/kup-data-declarations",
581
+ "id": "src/managers/kup-data/kup-data-declarations.ts::KupDataNode"
582
+ }
583
+ }
584
+ },
585
+ "required": false,
586
+ "optional": false,
587
+ "docs": {
588
+ "tags": [],
589
+ "text": ""
590
+ }
300
591
  }
301
592
  };
302
593
  }
@@ -307,23 +598,128 @@ export class KupAccordion {
307
598
  }
308
599
  static get events() {
309
600
  return [{
310
- "method": "kupAccordionItemSelected",
311
- "name": "kup-accordion-itemselected",
601
+ "method": "kupBlur",
602
+ "name": "kup-accordion-blur",
603
+ "bubbles": true,
604
+ "cancelable": false,
605
+ "composed": true,
606
+ "docs": {
607
+ "tags": [],
608
+ "text": "Triggered when the accordion loses focus."
609
+ },
610
+ "complexType": {
611
+ "original": "KupAccordionEventPayload",
612
+ "resolved": "KupAccordionEventPayload",
613
+ "references": {
614
+ "KupAccordionEventPayload": {
615
+ "location": "import",
616
+ "path": "./kup-accordion-declarations",
617
+ "id": "src/components/kup-accordion/kup-accordion-declarations.ts::KupAccordionEventPayload"
618
+ }
619
+ }
620
+ }
621
+ }, {
622
+ "method": "kupClick",
623
+ "name": "kup-accordion-click",
624
+ "bubbles": true,
625
+ "cancelable": false,
626
+ "composed": true,
627
+ "docs": {
628
+ "tags": [],
629
+ "text": "Triggered when an item is selected."
630
+ },
631
+ "complexType": {
632
+ "original": "KupAccordionEventPayload",
633
+ "resolved": "KupAccordionEventPayload",
634
+ "references": {
635
+ "KupAccordionEventPayload": {
636
+ "location": "import",
637
+ "path": "./kup-accordion-declarations",
638
+ "id": "src/components/kup-accordion/kup-accordion-declarations.ts::KupAccordionEventPayload"
639
+ }
640
+ }
641
+ }
642
+ }, {
643
+ "method": "kupIconClick",
644
+ "name": "kup-accordion-iconclick",
645
+ "bubbles": true,
646
+ "cancelable": false,
647
+ "composed": true,
648
+ "docs": {
649
+ "tags": [],
650
+ "text": "Triggered when the icon inside accordion is clicked."
651
+ },
652
+ "complexType": {
653
+ "original": "KupAccordionEventPayload",
654
+ "resolved": "KupAccordionEventPayload",
655
+ "references": {
656
+ "KupAccordionEventPayload": {
657
+ "location": "import",
658
+ "path": "./kup-accordion-declarations",
659
+ "id": "src/components/kup-accordion/kup-accordion-declarations.ts::KupAccordionEventPayload"
660
+ }
661
+ }
662
+ }
663
+ }, {
664
+ "method": "kupInfoIconClick",
665
+ "name": "kup-accordion-infoiconclick",
666
+ "bubbles": true,
667
+ "cancelable": false,
668
+ "composed": true,
669
+ "docs": {
670
+ "tags": [],
671
+ "text": "Triggered when the icon inside accordion is clicked."
672
+ },
673
+ "complexType": {
674
+ "original": "KupAccordionEventPayload",
675
+ "resolved": "KupAccordionEventPayload",
676
+ "references": {
677
+ "KupAccordionEventPayload": {
678
+ "location": "import",
679
+ "path": "./kup-accordion-declarations",
680
+ "id": "src/components/kup-accordion/kup-accordion-declarations.ts::KupAccordionEventPayload"
681
+ }
682
+ }
683
+ }
684
+ }, {
685
+ "method": "kupFocus",
686
+ "name": "kup-accordion-focus",
687
+ "bubbles": true,
688
+ "cancelable": false,
689
+ "composed": true,
690
+ "docs": {
691
+ "tags": [],
692
+ "text": "Triggered when the accordion is focused."
693
+ },
694
+ "complexType": {
695
+ "original": "KupAccordionEventPayload",
696
+ "resolved": "KupAccordionEventPayload",
697
+ "references": {
698
+ "KupAccordionEventPayload": {
699
+ "location": "import",
700
+ "path": "./kup-accordion-declarations",
701
+ "id": "src/components/kup-accordion/kup-accordion-declarations.ts::KupAccordionEventPayload"
702
+ }
703
+ }
704
+ }
705
+ }, {
706
+ "method": "kupToolbarItemClick",
707
+ "name": "kup-accordion-toolbaritemclick",
312
708
  "bubbles": true,
313
709
  "cancelable": false,
314
710
  "composed": true,
315
711
  "docs": {
316
712
  "tags": [],
317
- "text": "Fired when an item is selected."
713
+ "text": "Triggered when a list item is clicked."
318
714
  },
319
715
  "complexType": {
320
- "original": "KupAccordionItemSelectedEventPayload",
321
- "resolved": "KupAccordionItemSelectedEventPayload",
716
+ "original": "KupAccordionEventPayload",
717
+ "resolved": "KupAccordionEventPayload",
322
718
  "references": {
323
- "KupAccordionItemSelectedEventPayload": {
719
+ "KupAccordionEventPayload": {
324
720
  "location": "import",
325
721
  "path": "./kup-accordion-declarations",
326
- "id": "src/components/kup-accordion/kup-accordion-declarations.ts::KupAccordionItemSelectedEventPayload"
722
+ "id": "src/components/kup-accordion/kup-accordion-declarations.ts::KupAccordionEventPayload"
327
723
  }
328
724
  }
329
725
  }
@@ -445,16 +841,21 @@ export class KupAccordion {
445
841
  },
446
842
  "toggleItem": {
447
843
  "complexType": {
448
- "signature": "(itemName: string) => Promise<void>",
844
+ "signature": "(node: KupAccordionNode) => Promise<void>",
449
845
  "parameters": [{
450
- "name": "itemName",
451
- "type": "string",
452
- "docs": "- Name of the item."
846
+ "name": "node",
847
+ "type": "KupAccordionNode",
848
+ "docs": ""
453
849
  }],
454
850
  "references": {
455
851
  "Promise": {
456
852
  "location": "global",
457
853
  "id": "global::Promise"
854
+ },
855
+ "KupAccordionNode": {
856
+ "location": "import",
857
+ "path": "./kup-accordion-declarations",
858
+ "id": "src/components/kup-accordion/kup-accordion-declarations.ts::KupAccordionNode"
458
859
  }
459
860
  },
460
861
  "return": "Promise<void>"
@@ -477,3 +878,4 @@ export class KupAccordion {
477
878
  }];
478
879
  }
479
880
  }
881
+ _KupAccordion_clickCbDropCard = new WeakMap(), _KupAccordion_dropDownActionCardAnchor = new WeakMap();
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,10.84 21.79,9.69 21.39,8.61L19.79,10.21C19.93,10.8 20,11.4 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.6,4 13.2,4.07 13.79,4.21L15.4,2.6C14.31,2.21 13.16,2 12,2M19,2L15,6V7.5L12.45,10.05C12.3,10 12.15,10 12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12C14,11.85 14,11.7 13.95,11.55L16.5,9H18L22,5H19V2M12,6A6,6 0 0,0 6,12A6,6 0 0,0 12,18A6,6 0 0,0 18,12H16A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8V6Z" /></svg>
@@ -0,0 +1 @@
1
+ <ns0:svg xmlns:ns0="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="#1f1f1f"><ns0:path d="M220-240q-24 0-42-18.5T160-300v-480q0-24 18-42t42-18h640q24 0 42 18t18 42v480q0 23-18 41.5T860-240H220Zm320-200L220-706v406h640v-406L540-440Zm0-79 315-261H225l315 261ZM100-120q-24 0-42-18.5T40-180v-559h60v559h720v60H100Zm760-586v-74H220v74-74h640v74Z" /></ns0:svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.39 1.73L1.11 3L9.5 11.37L9.97 12H10V17.87C9.96 18.16 10.06 18.47 10.29 18.7L12.3 20.71C12.69 21.1 13.32 21.1 13.71 20.71C13.94 20.5 14.04 20.18 14 19.88V15.89L20.84 22.73L22.11 21.46L14 13.35L9.41 8.76L4.15 3.5L2.39 1.73M6.21 3L14.54 11.34L19.79 4.62C20.13 4.19 20.05 3.56 19.62 3.22C19.43 3.08 19.22 3 19 3H6.21Z" /></svg>