@sme.up/ketchup 6.6.0 → 6.7.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 (192) hide show
  1. package/README.md +7 -1
  2. package/dist/cjs/{f-button-a531feb2.js → f-button-bf76ab95.js} +2 -2
  3. package/dist/cjs/{f-cell-75cb7933.js → f-cell-b7a1524a.js} +21 -21
  4. package/dist/cjs/{f-checkbox-cd977193.js → f-checkbox-1097ca5d.js} +1 -1
  5. package/dist/cjs/{f-chip-9508a2e4.js → f-chip-a5e100b1.js} +3 -3
  6. package/dist/cjs/{f-image-c21cc616.js → f-image-d80a2749.js} +2 -2
  7. package/dist/cjs/{f-paginator-utils-2b72d7e8.js → f-paginator-utils-c70812fe.js} +3 -3
  8. package/dist/cjs/{f-text-field-a5b2bd0e.js → f-text-field-48b8bb16.js} +2 -2
  9. package/dist/cjs/{index-31125378.js → index-ffdb46f6.js} +423 -252
  10. package/dist/cjs/ketchup.cjs.js +3 -3
  11. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  12. package/dist/cjs/kup-autocomplete_25.cjs.entry.js +206 -57
  13. package/dist/cjs/kup-box.cjs.entry.js +11 -10
  14. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  15. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  16. package/dist/cjs/kup-dash-list.cjs.entry.js +2 -2
  17. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  18. package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
  19. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-echart.cjs.entry.js +2 -2
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
  22. package/dist/cjs/kup-form.cjs.entry.js +8 -8
  23. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
  25. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  27. package/dist/cjs/{kup-manager-8e67afec.js → kup-manager-0e38bf48.js} +16 -6
  28. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  30. package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  33. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  34. package/dist/cjs/loader.cjs.js +3 -3
  35. package/dist/collection/assets/box.js +9 -6
  36. package/dist/collection/collection-manifest.json +3 -3
  37. package/dist/collection/components/kup-accordion/kup-accordion.js +239 -234
  38. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +545 -530
  39. package/dist/collection/components/kup-badge/kup-badge.js +176 -170
  40. package/dist/collection/components/kup-box/kup-box.js +889 -907
  41. package/dist/collection/components/kup-button/kup-button.js +379 -370
  42. package/dist/collection/components/kup-button-list/kup-button-list.js +251 -240
  43. package/dist/collection/components/kup-calendar/kup-calendar.js +301 -300
  44. package/dist/collection/components/kup-card/box/kup-card-box.js +7 -24
  45. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +14 -28
  46. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +6 -19
  47. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
  48. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +9 -44
  49. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +2 -21
  50. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +6 -33
  51. package/dist/collection/components/kup-card/kup-card-helper.js +3 -8
  52. package/dist/collection/components/kup-card/kup-card.css +40 -0
  53. package/dist/collection/components/kup-card/kup-card.js +348 -340
  54. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +68 -81
  55. package/dist/collection/components/kup-card/standard/kup-card-standard.js +98 -278
  56. package/dist/collection/components/kup-cell/kup-cell.js +221 -216
  57. package/dist/collection/components/kup-chart/kup-chart.js +547 -537
  58. package/dist/collection/components/kup-checkbox/kup-checkbox.js +275 -266
  59. package/dist/collection/components/kup-chip/kup-chip.js +240 -231
  60. package/dist/collection/components/kup-color-picker/kup-color-picker.js +274 -264
  61. package/dist/collection/components/kup-combobox/kup-combobox.js +457 -440
  62. package/dist/collection/components/kup-dash/kup-dash.js +110 -158
  63. package/dist/collection/components/kup-dash-list/kup-dash-list.js +210 -213
  64. package/dist/collection/components/kup-dashboard/kup-dashboard.js +196 -203
  65. package/dist/collection/components/kup-data-table/kup-data-table.js +1917 -1830
  66. package/dist/collection/components/kup-date-picker/kup-date-picker.js +408 -394
  67. package/dist/collection/components/kup-drawer/kup-drawer.js +244 -236
  68. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +474 -464
  69. package/dist/collection/components/kup-echart/kup-echart.js +436 -423
  70. package/dist/collection/components/kup-family-tree/kup-family-tree.js +408 -421
  71. package/dist/collection/components/kup-form/kup-form.js +223 -225
  72. package/dist/collection/components/kup-gauge/kup-gauge.js +445 -445
  73. package/dist/collection/components/kup-grid/kup-grid.js +156 -153
  74. package/dist/collection/components/kup-iframe/kup-iframe.js +181 -173
  75. package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +9 -3
  76. package/dist/collection/components/kup-image/kup-image.js +300 -295
  77. package/dist/collection/components/kup-image-list/kup-image-list.js +292 -285
  78. package/dist/collection/components/kup-lazy/kup-lazy.js +253 -253
  79. package/dist/collection/components/kup-list/kup-list.js +541 -504
  80. package/dist/collection/components/kup-magic-box/kup-magic-box.js +145 -145
  81. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +190 -184
  82. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +490 -478
  83. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +254 -242
  84. package/dist/collection/components/kup-probe/kup-probe.js +87 -83
  85. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +237 -241
  86. package/dist/collection/components/kup-qlik/kup-qlik.js +178 -170
  87. package/dist/collection/components/kup-radio/kup-radio.js +258 -255
  88. package/dist/collection/components/kup-rating/kup-rating.js +208 -197
  89. package/dist/collection/components/kup-snackbar/kup-snackbar.js +249 -246
  90. package/dist/collection/components/kup-spinner/kup-spinner.js +274 -269
  91. package/dist/collection/components/kup-switch/kup-switch.js +255 -246
  92. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +265 -224
  93. package/dist/collection/components/kup-text-field/kup-text-field.js +814 -805
  94. package/dist/collection/components/kup-time-picker/kup-time-picker.js +464 -450
  95. package/dist/collection/components/kup-tree/kup-tree-faker.js +3 -2
  96. package/dist/collection/components/kup-tree/kup-tree.js +1068 -1076
  97. package/dist/collection/f-components/f-button/f-button.js +11 -20
  98. package/dist/collection/f-components/f-cell/f-cell.js +19 -21
  99. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -9
  100. package/dist/collection/f-components/f-chip/f-chip.js +18 -31
  101. package/dist/collection/f-components/f-image/f-image.js +1 -3
  102. package/dist/collection/f-components/f-paginator/f-paginator.js +1 -6
  103. package/dist/collection/f-components/f-switch/f-switch.js +1 -8
  104. package/dist/collection/f-components/f-text-field/f-text-field.js +18 -40
  105. package/dist/collection/managers/kup-debug/kup-debug.js +10 -5
  106. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +25 -10
  107. package/dist/collection/managers/kup-toolbar/kup-toolbar.js +10 -5
  108. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +10 -5
  109. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +0 -21
  110. package/dist/esm/{f-button-15719ec1.js → f-button-e79f7594.js} +2 -2
  111. package/dist/esm/{f-cell-692c37bf.js → f-cell-9400374e.js} +21 -21
  112. package/dist/esm/{f-checkbox-e06cf07b.js → f-checkbox-b721178e.js} +1 -1
  113. package/dist/esm/{f-chip-abab04bf.js → f-chip-bf740287.js} +3 -3
  114. package/dist/esm/{f-image-98783644.js → f-image-ab3dc8cb.js} +2 -2
  115. package/dist/esm/{f-paginator-utils-d12ee737.js → f-paginator-utils-6909e43b.js} +3 -3
  116. package/dist/esm/{f-text-field-282025dd.js → f-text-field-4841dfea.js} +2 -2
  117. package/dist/esm/{index-e41330a5.js → index-a2197376.js} +423 -252
  118. package/dist/esm/ketchup.js +3 -3
  119. package/dist/esm/kup-accordion.entry.js +3 -3
  120. package/dist/esm/kup-autocomplete_25.entry.js +206 -57
  121. package/dist/esm/kup-box.entry.js +11 -10
  122. package/dist/esm/kup-calendar.entry.js +5 -5
  123. package/dist/esm/kup-cell.entry.js +7 -7
  124. package/dist/esm/kup-dash-list.entry.js +2 -2
  125. package/dist/esm/kup-dash_2.entry.js +2 -2
  126. package/dist/esm/kup-dashboard.entry.js +6 -6
  127. package/dist/esm/kup-drawer.entry.js +2 -2
  128. package/dist/esm/kup-echart.entry.js +2 -2
  129. package/dist/esm/kup-family-tree.entry.js +4 -4
  130. package/dist/esm/kup-form.entry.js +8 -8
  131. package/dist/esm/kup-iframe.entry.js +2 -2
  132. package/dist/esm/kup-image-list.entry.js +8 -8
  133. package/dist/esm/kup-lazy.entry.js +2 -2
  134. package/dist/esm/kup-magic-box.entry.js +3 -3
  135. package/dist/esm/{kup-manager-abbae73e.js → kup-manager-c54e6df5.js} +16 -6
  136. package/dist/esm/kup-nav-bar.entry.js +2 -2
  137. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  138. package/dist/esm/kup-photo-frame.entry.js +2 -2
  139. package/dist/esm/kup-probe.entry.js +2 -2
  140. package/dist/esm/kup-qlik.entry.js +2 -2
  141. package/dist/esm/kup-snackbar.entry.js +4 -4
  142. package/dist/esm/loader.js +3 -3
  143. package/dist/esm/polyfills/css-shim.js +1 -1
  144. package/dist/ketchup/ketchup.esm.js +1 -1
  145. package/dist/ketchup/{p-5933aa02.entry.js → p-182b869e.entry.js} +1 -1
  146. package/dist/ketchup/{p-c05f2638.js → p-1dfd2a51.js} +1 -1
  147. package/dist/ketchup/{p-62f3ec78.entry.js → p-1f5c7f21.entry.js} +1 -1
  148. package/dist/ketchup/p-22ec1ba0.entry.js +9 -0
  149. package/dist/ketchup/{p-5552f156.js → p-23cd5a68.js} +1 -1
  150. package/dist/ketchup/{p-62421bcf.js → p-25bf0cb6.js} +1 -1
  151. package/dist/ketchup/{p-6946b614.entry.js → p-260ff835.entry.js} +1 -1
  152. package/dist/ketchup/{p-ccef2553.entry.js → p-2e184b57.entry.js} +1 -1
  153. package/dist/ketchup/{p-eeadd688.entry.js → p-30a63b85.entry.js} +1 -1
  154. package/dist/ketchup/{p-3760a159.entry.js → p-313e376b.entry.js} +1 -1
  155. package/dist/ketchup/{p-7e16265d.entry.js → p-41620707.entry.js} +1 -1
  156. package/dist/ketchup/{p-5ea2a1ff.entry.js → p-4a0ccf18.entry.js} +1 -1
  157. package/dist/ketchup/{p-6f3040fb.js → p-4f0d3062.js} +1 -1
  158. package/dist/ketchup/p-4fdb684f.js +2 -0
  159. package/dist/ketchup/{p-27538d6f.entry.js → p-53d3ae80.entry.js} +1 -1
  160. package/dist/ketchup/{p-20221a50.js → p-5bea2971.js} +1 -1
  161. package/dist/ketchup/{p-1ef5d16d.entry.js → p-60fa0ccf.entry.js} +1 -1
  162. package/dist/ketchup/p-6333388c.js +1 -0
  163. package/dist/ketchup/{p-725c6268.entry.js → p-6bd57787.entry.js} +1 -1
  164. package/dist/ketchup/p-758d03f4.entry.js +1 -0
  165. package/dist/ketchup/{p-9419919c.entry.js → p-7e7b6127.entry.js} +1 -1
  166. package/dist/ketchup/p-8386e3db.entry.js +1 -0
  167. package/dist/ketchup/{p-a4a30e0e.entry.js → p-859163c2.entry.js} +1 -1
  168. package/dist/ketchup/{p-a450d60a.entry.js → p-8e1fa7a8.entry.js} +1 -1
  169. package/dist/ketchup/{p-29d72040.entry.js → p-90860d9e.entry.js} +1 -1
  170. package/dist/ketchup/{p-d8af7ba6.entry.js → p-b7fdc7aa.entry.js} +1 -1
  171. package/dist/ketchup/{p-7d37ea62.entry.js → p-bffaef6e.entry.js} +1 -1
  172. package/dist/ketchup/{p-3e74e1ed.js → p-c35c5e05.js} +1 -1
  173. package/dist/ketchup/{p-e6ebdb80.js → p-e1d0ea71.js} +1 -1
  174. package/dist/ketchup/{p-fd930a34.entry.js → p-f9d5e553.entry.js} +1 -1
  175. package/dist/ketchup/{p-f6409c42.entry.js → p-fb4d772a.entry.js} +1 -1
  176. package/dist/loader/package.json +1 -0
  177. package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -0
  178. package/dist/types/components/kup-card/scalable/kup-card-scalable.d.ts +6 -0
  179. package/dist/types/components/kup-data-table/kup-data-table.d.ts +15 -1
  180. package/dist/types/components/kup-list/kup-list.d.ts +5 -0
  181. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +5 -0
  182. package/dist/types/components.d.ts +23 -0
  183. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +1 -0
  184. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +2 -1
  185. package/dist/types/stencil-public-runtime.d.ts +15 -4
  186. package/package.json +1 -1
  187. package/CHANGELOG.md +0 -5
  188. package/dist/ketchup/p-1d2dea0a.entry.js +0 -1
  189. package/dist/ketchup/p-680a8cb4.entry.js +0 -9
  190. package/dist/ketchup/p-b0b3989b.js +0 -2
  191. package/dist/ketchup/p-d7a92197.entry.js +0 -1
  192. package/dist/ketchup/p-e07a10fb.js +0 -1
@@ -1,16 +1,21 @@
1
1
  var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
2
+ if (kind === "a" && !f)
3
+ throw new TypeError("Private accessor was defined without a getter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
5
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
6
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
7
  };
6
8
  var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7
- if (kind === "m") throw new TypeError("Private method is not writable");
8
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
9
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
9
+ if (kind === "m")
10
+ throw new TypeError("Private method is not writable");
11
+ if (kind === "a" && !f)
12
+ throw new TypeError("Private accessor was defined without a setter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
14
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
10
15
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
16
  };
12
17
  var _KupList_instances, _KupList_kupManager, _KupList_radios, _KupList_listItems, _KupList_handleSelection, _KupList_isNested, _KupList_renderListItem, _KupList_getIconTag, _KupList_isMultiSelection, _KupList_isCheckBoxRule, _KupList_isRadioButtonRule, _KupList_isListBoxRule, _KupList_checkRoleType, _KupList_itemCompliant;
13
- import { Component, Element, Event, forceUpdate, h, Host, Listen, Method, Prop, State, } from '@stencil/core';
18
+ import { forceUpdate, h, Host, } from '@stencil/core';
14
19
  import { KupListProps, KupListRole, } from './kup-list-declarations';
15
20
  import { ItemsDisplayMode } from './kup-list-declarations';
16
21
  import { getIdOfItemByDisplayMode } from './kup-list-helper';
@@ -149,9 +154,6 @@ export class KupList {
149
154
  }
150
155
  }
151
156
  /*-------------------------------------------------*/
152
- /* W a t c h e r s */
153
- /*-------------------------------------------------*/
154
- /*-------------------------------------------------*/
155
157
  /* P u b l i c M e t h o d s */
156
158
  /*-------------------------------------------------*/
157
159
  /**
@@ -208,6 +210,19 @@ export class KupList {
208
210
  async getProps(descriptions) {
209
211
  return getProps(this, KupListProps, descriptions);
210
212
  }
213
+ /**
214
+ * Returns the selected node.
215
+ * @returns {Promise<KupListNode>} Selected node.
216
+ */
217
+ async getSelectedNode() {
218
+ const nodes = [];
219
+ this.data.forEach((node) => {
220
+ if (this.selected.includes(node.id)) {
221
+ nodes.push(node);
222
+ }
223
+ });
224
+ return nodes;
225
+ }
211
226
  /**
212
227
  * This method is used to trigger a new render of the component.
213
228
  */
@@ -291,511 +306,545 @@ export class KupList {
291
306
  }
292
307
  __classPrivateFieldSet(this, _KupList_radios, [], "f");
293
308
  let index = 0;
294
- return (h(Host, null,
295
- h("style", null, __classPrivateFieldGet(this, _KupList_kupManager, "f").theme.setKupStyle(this.rootElement)),
296
- h("div", { id: "kup-component", class: wrapperClass },
297
- h("ul", { class: componentClass, role: roleAttr, "aria-multiselectable": ariaMultiSelectable }, this.data
298
- .filter((item) => __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_itemCompliant).call(this, item))
299
- .map((item) => __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_renderListItem).call(this, item, index++))))));
309
+ return (h(Host, null, h("style", null, __classPrivateFieldGet(this, _KupList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: "kup-component", class: wrapperClass }, h("ul", { class: componentClass, role: roleAttr, "aria-multiselectable": ariaMultiSelectable }, this.data
310
+ .filter((item) => __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_itemCompliant).call(this, item))
311
+ .map((item) => __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_renderListItem).call(this, item, index++))))));
300
312
  }
301
313
  disconnectedCallback() {
302
314
  __classPrivateFieldGet(this, _KupList_kupManager, "f").theme.unregister(this);
303
315
  }
304
316
  static get is() { return "kup-list"; }
305
317
  static get encapsulation() { return "shadow"; }
306
- static get originalStyleUrls() { return {
307
- "$": ["kup-list.scss"]
308
- }; }
309
- static get styleUrls() { return {
310
- "$": ["kup-list.css"]
311
- }; }
312
- static get properties() { return {
313
- "customStyle": {
314
- "type": "string",
315
- "mutable": false,
316
- "complexType": {
317
- "original": "string",
318
- "resolved": "string",
319
- "references": {}
320
- },
321
- "required": false,
322
- "optional": false,
323
- "docs": {
324
- "tags": [{
325
- "name": "default",
326
- "text": "\"\""
327
- }, {
328
- "name": "see",
329
- "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
330
- }],
331
- "text": "Custom style of the component."
332
- },
333
- "attribute": "custom-style",
334
- "reflect": false,
335
- "defaultValue": "''"
336
- },
337
- "data": {
338
- "type": "unknown",
339
- "mutable": true,
340
- "complexType": {
341
- "original": "KupListNode[]",
342
- "resolved": "KupListNode[]",
343
- "references": {
344
- "KupListNode": {
345
- "location": "import",
346
- "path": "./kup-list-declarations"
318
+ static get originalStyleUrls() {
319
+ return {
320
+ "$": ["kup-list.scss"]
321
+ };
322
+ }
323
+ static get styleUrls() {
324
+ return {
325
+ "$": ["kup-list.css"]
326
+ };
327
+ }
328
+ static get properties() {
329
+ return {
330
+ "customStyle": {
331
+ "type": "string",
332
+ "mutable": false,
333
+ "complexType": {
334
+ "original": "string",
335
+ "resolved": "string",
336
+ "references": {}
337
+ },
338
+ "required": false,
339
+ "optional": false,
340
+ "docs": {
341
+ "tags": [{
342
+ "name": "default",
343
+ "text": "\"\""
344
+ }, {
345
+ "name": "see",
346
+ "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
347
+ }],
348
+ "text": "Custom style of the component."
349
+ },
350
+ "attribute": "custom-style",
351
+ "reflect": false,
352
+ "defaultValue": "''"
353
+ },
354
+ "data": {
355
+ "type": "unknown",
356
+ "mutable": true,
357
+ "complexType": {
358
+ "original": "KupListNode[]",
359
+ "resolved": "KupListNode[]",
360
+ "references": {
361
+ "KupListNode": {
362
+ "location": "import",
363
+ "path": "./kup-list-declarations"
364
+ }
347
365
  }
348
- }
349
- },
350
- "required": false,
351
- "optional": false,
352
- "docs": {
353
- "tags": [{
354
- "name": "default",
355
- "text": "[]"
356
- }],
357
- "text": "The data of the list."
358
- },
359
- "defaultValue": "[]"
360
- },
361
- "displayMode": {
362
- "type": "string",
363
- "mutable": false,
364
- "complexType": {
365
- "original": "ItemsDisplayMode",
366
- "resolved": "ItemsDisplayMode.CODE | ItemsDisplayMode.DESCRIPTION | ItemsDisplayMode.DESCRIPTION_AND_CODE",
367
- "references": {
368
- "ItemsDisplayMode": {
369
- "location": "import",
370
- "path": "./kup-list-declarations"
366
+ },
367
+ "required": false,
368
+ "optional": false,
369
+ "docs": {
370
+ "tags": [{
371
+ "name": "default",
372
+ "text": "[]"
373
+ }],
374
+ "text": "The data of the list."
375
+ },
376
+ "defaultValue": "[]"
377
+ },
378
+ "displayMode": {
379
+ "type": "string",
380
+ "mutable": false,
381
+ "complexType": {
382
+ "original": "ItemsDisplayMode",
383
+ "resolved": "ItemsDisplayMode.CODE | ItemsDisplayMode.DESCRIPTION | ItemsDisplayMode.DESCRIPTION_AND_CODE",
384
+ "references": {
385
+ "ItemsDisplayMode": {
386
+ "location": "import",
387
+ "path": "./kup-list-declarations"
388
+ }
371
389
  }
372
- }
373
- },
374
- "required": false,
375
- "optional": false,
376
- "docs": {
377
- "tags": [{
378
- "name": "default",
379
- "text": "ItemsDisplayMode.DESCRIPTION"
380
- }],
381
- "text": "Selects how the items must display their label and how they can be filtered for."
382
- },
383
- "attribute": "display-mode",
384
- "reflect": false,
385
- "defaultValue": "ItemsDisplayMode.DESCRIPTION"
386
- },
387
- "filter": {
388
- "type": "string",
389
- "mutable": true,
390
- "complexType": {
391
- "original": "string",
392
- "resolved": "string",
393
- "references": {}
394
- },
395
- "required": false,
396
- "optional": false,
397
- "docs": {
398
- "tags": [{
399
- "name": "default",
400
- "text": "''"
401
- }],
402
- "text": "Keeps string for filtering elements when filter mode is active"
403
- },
404
- "attribute": "filter",
405
- "reflect": false,
406
- "defaultValue": "''"
407
- },
408
- "hideText": {
409
- "type": "boolean",
410
- "mutable": false,
411
- "complexType": {
412
- "original": "boolean",
413
- "resolved": "boolean",
414
- "references": {}
415
- },
416
- "required": false,
417
- "optional": false,
418
- "docs": {
419
- "tags": [{
420
- "name": "default",
421
- "text": "false"
422
- }],
423
- "text": "Hides rows' text, ideally to display a list of icons only."
424
- },
425
- "attribute": "hide-text",
426
- "reflect": false,
427
- "defaultValue": "false"
428
- },
429
- "isMenu": {
430
- "type": "boolean",
431
- "mutable": false,
432
- "complexType": {
433
- "original": "boolean",
434
- "resolved": "boolean",
435
- "references": {}
436
- },
437
- "required": false,
438
- "optional": false,
439
- "docs": {
440
- "tags": [{
441
- "name": "default",
442
- "text": "false"
443
- }],
444
- "text": "Defines whether the list is a menu or not."
445
- },
446
- "attribute": "is-menu",
447
- "reflect": false,
448
- "defaultValue": "false"
449
- },
450
- "keyboardNavigation": {
451
- "type": "boolean",
452
- "mutable": false,
453
- "complexType": {
454
- "original": "boolean",
455
- "resolved": "boolean",
456
- "references": {}
457
- },
458
- "required": false,
459
- "optional": false,
460
- "docs": {
461
- "tags": [{
462
- "name": "default",
463
- "text": "true"
464
- }],
465
- "text": "When true, enables items' navigation through arrow keys."
466
- },
467
- "attribute": "keyboard-navigation",
468
- "reflect": false,
469
- "defaultValue": "true"
470
- },
471
- "menuVisible": {
472
- "type": "boolean",
473
- "mutable": false,
474
- "complexType": {
475
- "original": "boolean",
476
- "resolved": "boolean",
477
- "references": {}
478
- },
479
- "required": false,
480
- "optional": false,
481
- "docs": {
482
- "tags": [{
483
- "name": "default",
484
- "text": "false"
485
- }],
486
- "text": "Sets the status of the menu, when false it's hidden otherwise it's visible."
487
- },
488
- "attribute": "menu-visible",
489
- "reflect": false,
490
- "defaultValue": "false"
491
- },
492
- "roleType": {
493
- "type": "string",
494
- "mutable": true,
495
- "complexType": {
496
- "original": "KupListRole",
497
- "resolved": "KupListRole.GROUP | KupListRole.LISTBOX | KupListRole.RADIOGROUP",
498
- "references": {
499
- "KupListRole": {
500
- "location": "import",
501
- "path": "./kup-list-declarations"
390
+ },
391
+ "required": false,
392
+ "optional": false,
393
+ "docs": {
394
+ "tags": [{
395
+ "name": "default",
396
+ "text": "ItemsDisplayMode.DESCRIPTION"
397
+ }],
398
+ "text": "Selects how the items must display their label and how they can be filtered for."
399
+ },
400
+ "attribute": "display-mode",
401
+ "reflect": false,
402
+ "defaultValue": "ItemsDisplayMode.DESCRIPTION"
403
+ },
404
+ "filter": {
405
+ "type": "string",
406
+ "mutable": true,
407
+ "complexType": {
408
+ "original": "string",
409
+ "resolved": "string",
410
+ "references": {}
411
+ },
412
+ "required": false,
413
+ "optional": false,
414
+ "docs": {
415
+ "tags": [{
416
+ "name": "default",
417
+ "text": "''"
418
+ }],
419
+ "text": "Keeps string for filtering elements when filter mode is active"
420
+ },
421
+ "attribute": "filter",
422
+ "reflect": false,
423
+ "defaultValue": "''"
424
+ },
425
+ "hideText": {
426
+ "type": "boolean",
427
+ "mutable": false,
428
+ "complexType": {
429
+ "original": "boolean",
430
+ "resolved": "boolean",
431
+ "references": {}
432
+ },
433
+ "required": false,
434
+ "optional": false,
435
+ "docs": {
436
+ "tags": [{
437
+ "name": "default",
438
+ "text": "false"
439
+ }],
440
+ "text": "Hides rows' text, ideally to display a list of icons only."
441
+ },
442
+ "attribute": "hide-text",
443
+ "reflect": false,
444
+ "defaultValue": "false"
445
+ },
446
+ "isMenu": {
447
+ "type": "boolean",
448
+ "mutable": false,
449
+ "complexType": {
450
+ "original": "boolean",
451
+ "resolved": "boolean",
452
+ "references": {}
453
+ },
454
+ "required": false,
455
+ "optional": false,
456
+ "docs": {
457
+ "tags": [{
458
+ "name": "default",
459
+ "text": "false"
460
+ }],
461
+ "text": "Defines whether the list is a menu or not."
462
+ },
463
+ "attribute": "is-menu",
464
+ "reflect": false,
465
+ "defaultValue": "false"
466
+ },
467
+ "keyboardNavigation": {
468
+ "type": "boolean",
469
+ "mutable": false,
470
+ "complexType": {
471
+ "original": "boolean",
472
+ "resolved": "boolean",
473
+ "references": {}
474
+ },
475
+ "required": false,
476
+ "optional": false,
477
+ "docs": {
478
+ "tags": [{
479
+ "name": "default",
480
+ "text": "true"
481
+ }],
482
+ "text": "When true, enables items' navigation through arrow keys."
483
+ },
484
+ "attribute": "keyboard-navigation",
485
+ "reflect": false,
486
+ "defaultValue": "true"
487
+ },
488
+ "menuVisible": {
489
+ "type": "boolean",
490
+ "mutable": false,
491
+ "complexType": {
492
+ "original": "boolean",
493
+ "resolved": "boolean",
494
+ "references": {}
495
+ },
496
+ "required": false,
497
+ "optional": false,
498
+ "docs": {
499
+ "tags": [{
500
+ "name": "default",
501
+ "text": "false"
502
+ }],
503
+ "text": "Sets the status of the menu, when false it's hidden otherwise it's visible."
504
+ },
505
+ "attribute": "menu-visible",
506
+ "reflect": false,
507
+ "defaultValue": "false"
508
+ },
509
+ "roleType": {
510
+ "type": "string",
511
+ "mutable": true,
512
+ "complexType": {
513
+ "original": "KupListRole",
514
+ "resolved": "KupListRole.GROUP | KupListRole.LISTBOX | KupListRole.RADIOGROUP",
515
+ "references": {
516
+ "KupListRole": {
517
+ "location": "import",
518
+ "path": "./kup-list-declarations"
519
+ }
502
520
  }
503
- }
504
- },
505
- "required": false,
506
- "optional": true,
507
- "docs": {
508
- "tags": [{
509
- "name": "default",
510
- "text": "KupListRole.LISTBOX"
511
- }],
512
- "text": "Defines the type of selection. Values accepted: listbox, radiogroup or group."
513
- },
514
- "attribute": "role-type",
515
- "reflect": false,
516
- "defaultValue": "KupListRole.LISTBOX"
517
- },
518
- "selectable": {
519
- "type": "boolean",
520
- "mutable": false,
521
- "complexType": {
522
- "original": "boolean",
523
- "resolved": "boolean",
524
- "references": {}
525
- },
526
- "required": false,
527
- "optional": false,
528
- "docs": {
529
- "tags": [{
530
- "name": "default",
531
- "text": "true"
532
- }],
533
- "text": "Defines whether items are selectable or not."
534
- },
535
- "attribute": "selectable",
536
- "reflect": false,
537
- "defaultValue": "true"
538
- },
539
- "showIcons": {
540
- "type": "boolean",
541
- "mutable": false,
542
- "complexType": {
543
- "original": "boolean",
544
- "resolved": "boolean",
545
- "references": {}
546
- },
547
- "required": false,
548
- "optional": false,
549
- "docs": {
550
- "tags": [{
551
- "name": "default",
552
- "text": "false"
553
- }],
554
- "text": "Displays the icons associated to each row when set to true."
555
- },
556
- "attribute": "show-icons",
557
- "reflect": false,
558
- "defaultValue": "false"
559
- },
560
- "twoLine": {
561
- "type": "boolean",
562
- "mutable": false,
563
- "complexType": {
564
- "original": "boolean",
565
- "resolved": "boolean",
566
- "references": {}
567
- },
568
- "required": false,
569
- "optional": false,
570
- "docs": {
571
- "tags": [{
572
- "name": "default",
573
- "text": "false"
574
- }],
575
- "text": "The list elements descriptions will be arranged in two lines."
576
- },
577
- "attribute": "two-line",
578
- "reflect": false,
579
- "defaultValue": "false"
580
- }
581
- }; }
582
- static get states() { return {
583
- "focused": {},
584
- "selected": {}
585
- }; }
586
- static get events() { return [{
587
- "method": "kupBlur",
588
- "name": "kup-list-blur",
589
- "bubbles": true,
590
- "cancelable": false,
591
- "composed": true,
592
- "docs": {
593
- "tags": [],
594
- "text": ""
595
- },
596
- "complexType": {
597
- "original": "KupEventPayload",
598
- "resolved": "KupEventPayload",
599
- "references": {
600
- "KupEventPayload": {
601
- "location": "import",
602
- "path": "../../types/GenericTypes"
521
+ },
522
+ "required": false,
523
+ "optional": true,
524
+ "docs": {
525
+ "tags": [{
526
+ "name": "default",
527
+ "text": "KupListRole.LISTBOX"
528
+ }],
529
+ "text": "Defines the type of selection. Values accepted: listbox, radiogroup or group."
530
+ },
531
+ "attribute": "role-type",
532
+ "reflect": false,
533
+ "defaultValue": "KupListRole.LISTBOX"
534
+ },
535
+ "selectable": {
536
+ "type": "boolean",
537
+ "mutable": false,
538
+ "complexType": {
539
+ "original": "boolean",
540
+ "resolved": "boolean",
541
+ "references": {}
542
+ },
543
+ "required": false,
544
+ "optional": false,
545
+ "docs": {
546
+ "tags": [{
547
+ "name": "default",
548
+ "text": "true"
549
+ }],
550
+ "text": "Defines whether items are selectable or not."
551
+ },
552
+ "attribute": "selectable",
553
+ "reflect": false,
554
+ "defaultValue": "true"
555
+ },
556
+ "showIcons": {
557
+ "type": "boolean",
558
+ "mutable": false,
559
+ "complexType": {
560
+ "original": "boolean",
561
+ "resolved": "boolean",
562
+ "references": {}
563
+ },
564
+ "required": false,
565
+ "optional": false,
566
+ "docs": {
567
+ "tags": [{
568
+ "name": "default",
569
+ "text": "false"
570
+ }],
571
+ "text": "Displays the icons associated to each row when set to true."
572
+ },
573
+ "attribute": "show-icons",
574
+ "reflect": false,
575
+ "defaultValue": "false"
576
+ },
577
+ "twoLine": {
578
+ "type": "boolean",
579
+ "mutable": false,
580
+ "complexType": {
581
+ "original": "boolean",
582
+ "resolved": "boolean",
583
+ "references": {}
584
+ },
585
+ "required": false,
586
+ "optional": false,
587
+ "docs": {
588
+ "tags": [{
589
+ "name": "default",
590
+ "text": "false"
591
+ }],
592
+ "text": "The list elements descriptions will be arranged in two lines."
593
+ },
594
+ "attribute": "two-line",
595
+ "reflect": false,
596
+ "defaultValue": "false"
597
+ }
598
+ };
599
+ }
600
+ static get states() {
601
+ return {
602
+ "focused": {},
603
+ "selected": {}
604
+ };
605
+ }
606
+ static get events() {
607
+ return [{
608
+ "method": "kupBlur",
609
+ "name": "kup-list-blur",
610
+ "bubbles": true,
611
+ "cancelable": false,
612
+ "composed": true,
613
+ "docs": {
614
+ "tags": [],
615
+ "text": ""
616
+ },
617
+ "complexType": {
618
+ "original": "KupEventPayload",
619
+ "resolved": "KupEventPayload",
620
+ "references": {
621
+ "KupEventPayload": {
622
+ "location": "import",
623
+ "path": "../../types/GenericTypes"
624
+ }
603
625
  }
604
626
  }
605
- }
606
- }, {
607
- "method": "kupFocus",
608
- "name": "kup-list-focus",
609
- "bubbles": true,
610
- "cancelable": false,
611
- "composed": true,
612
- "docs": {
613
- "tags": [],
614
- "text": ""
615
- },
616
- "complexType": {
617
- "original": "KupEventPayload",
618
- "resolved": "KupEventPayload",
619
- "references": {
620
- "KupEventPayload": {
621
- "location": "import",
622
- "path": "../../types/GenericTypes"
627
+ }, {
628
+ "method": "kupFocus",
629
+ "name": "kup-list-focus",
630
+ "bubbles": true,
631
+ "cancelable": false,
632
+ "composed": true,
633
+ "docs": {
634
+ "tags": [],
635
+ "text": ""
636
+ },
637
+ "complexType": {
638
+ "original": "KupEventPayload",
639
+ "resolved": "KupEventPayload",
640
+ "references": {
641
+ "KupEventPayload": {
642
+ "location": "import",
643
+ "path": "../../types/GenericTypes"
644
+ }
623
645
  }
624
646
  }
625
- }
626
- }, {
627
- "method": "kupClick",
628
- "name": "kup-list-click",
629
- "bubbles": true,
630
- "cancelable": false,
631
- "composed": true,
632
- "docs": {
633
- "tags": [],
634
- "text": ""
635
- },
636
- "complexType": {
637
- "original": "KupListEventPayload",
638
- "resolved": "KupListEventPayload",
639
- "references": {
640
- "KupListEventPayload": {
641
- "location": "import",
642
- "path": "./kup-list-declarations"
647
+ }, {
648
+ "method": "kupClick",
649
+ "name": "kup-list-click",
650
+ "bubbles": true,
651
+ "cancelable": false,
652
+ "composed": true,
653
+ "docs": {
654
+ "tags": [],
655
+ "text": ""
656
+ },
657
+ "complexType": {
658
+ "original": "KupListEventPayload",
659
+ "resolved": "KupListEventPayload",
660
+ "references": {
661
+ "KupListEventPayload": {
662
+ "location": "import",
663
+ "path": "./kup-list-declarations"
664
+ }
643
665
  }
644
666
  }
645
- }
646
- }]; }
647
- static get methods() { return {
648
- "focusNext": {
649
- "complexType": {
650
- "signature": "() => Promise<void>",
651
- "parameters": [],
652
- "references": {
653
- "Promise": {
654
- "location": "global"
667
+ }];
668
+ }
669
+ static get methods() {
670
+ return {
671
+ "focusNext": {
672
+ "complexType": {
673
+ "signature": "() => Promise<void>",
674
+ "parameters": [],
675
+ "references": {
676
+ "Promise": {
677
+ "location": "global"
678
+ },
679
+ "KupListNode": {
680
+ "location": "import",
681
+ "path": "./kup-list-declarations"
682
+ }
655
683
  },
656
- "KupListNode": {
657
- "location": "import",
658
- "path": "./kup-list-declarations"
659
- }
684
+ "return": "Promise<void>"
660
685
  },
661
- "return": "Promise<void>"
686
+ "docs": {
687
+ "text": "Focuses the next element of the list.",
688
+ "tags": []
689
+ }
662
690
  },
663
- "docs": {
664
- "text": "Focuses the next element of the list.",
665
- "tags": []
666
- }
667
- },
668
- "focusPrevious": {
669
- "complexType": {
670
- "signature": "() => Promise<void>",
671
- "parameters": [],
672
- "references": {
673
- "Promise": {
674
- "location": "global"
691
+ "focusPrevious": {
692
+ "complexType": {
693
+ "signature": "() => Promise<void>",
694
+ "parameters": [],
695
+ "references": {
696
+ "Promise": {
697
+ "location": "global"
698
+ },
699
+ "KupListNode": {
700
+ "location": "import",
701
+ "path": "./kup-list-declarations"
702
+ }
675
703
  },
676
- "KupListNode": {
677
- "location": "import",
678
- "path": "./kup-list-declarations"
679
- }
704
+ "return": "Promise<void>"
680
705
  },
681
- "return": "Promise<void>"
706
+ "docs": {
707
+ "text": "Focuses the previous element of the list.",
708
+ "tags": []
709
+ }
682
710
  },
683
- "docs": {
684
- "text": "Focuses the previous element of the list.",
685
- "tags": []
686
- }
687
- },
688
- "getProps": {
689
- "complexType": {
690
- "signature": "(descriptions?: boolean) => Promise<GenericObject>",
691
- "parameters": [{
692
- "tags": [{
693
- "name": "param",
694
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
695
- }],
696
- "text": "- When provided and true, the result will be the list of props with their description."
697
- }],
698
- "references": {
699
- "Promise": {
700
- "location": "global"
711
+ "getProps": {
712
+ "complexType": {
713
+ "signature": "(descriptions?: boolean) => Promise<GenericObject>",
714
+ "parameters": [{
715
+ "tags": [{
716
+ "name": "param",
717
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
718
+ }],
719
+ "text": "- When provided and true, the result will be the list of props with their description."
720
+ }],
721
+ "references": {
722
+ "Promise": {
723
+ "location": "global"
724
+ },
725
+ "GenericObject": {
726
+ "location": "import",
727
+ "path": "../../types/GenericTypes"
728
+ }
701
729
  },
702
- "GenericObject": {
703
- "location": "import",
704
- "path": "../../types/GenericTypes"
705
- }
730
+ "return": "Promise<GenericObject>"
706
731
  },
707
- "return": "Promise<GenericObject>"
732
+ "docs": {
733
+ "text": "Used to retrieve component's props values.",
734
+ "tags": [{
735
+ "name": "param",
736
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
737
+ }, {
738
+ "name": "returns",
739
+ "text": "List of props as object, each key will be a prop."
740
+ }]
741
+ }
708
742
  },
709
- "docs": {
710
- "text": "Used to retrieve component's props values.",
711
- "tags": [{
712
- "name": "param",
713
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
714
- }, {
715
- "name": "returns",
716
- "text": "List of props as object, each key will be a prop."
717
- }]
718
- }
719
- },
720
- "refresh": {
721
- "complexType": {
722
- "signature": "() => Promise<void>",
723
- "parameters": [],
724
- "references": {
725
- "Promise": {
726
- "location": "global"
727
- }
743
+ "getSelectedNode": {
744
+ "complexType": {
745
+ "signature": "() => Promise<KupListNode[]>",
746
+ "parameters": [],
747
+ "references": {
748
+ "Promise": {
749
+ "location": "global"
750
+ },
751
+ "KupListNode": {
752
+ "location": "import",
753
+ "path": "./kup-list-declarations"
754
+ }
755
+ },
756
+ "return": "Promise<KupListNode[]>"
728
757
  },
729
- "return": "Promise<void>"
758
+ "docs": {
759
+ "text": "Returns the selected node.",
760
+ "tags": [{
761
+ "name": "returns",
762
+ "text": "Selected node."
763
+ }]
764
+ }
730
765
  },
731
- "docs": {
732
- "text": "This method is used to trigger a new render of the component.",
733
- "tags": []
734
- }
735
- },
736
- "select": {
737
- "complexType": {
738
- "signature": "(index?: number) => Promise<void>",
739
- "parameters": [{
740
- "tags": [{
741
- "name": "param",
742
- "text": "index - Based zero index of the item that must be selected, when not provided the list will attempt to select the focused element."
743
- }],
744
- "text": "- Based zero index of the item that must be selected, when not provided the list will attempt to select the focused element."
745
- }],
746
- "references": {
747
- "Promise": {
748
- "location": "global"
749
- }
766
+ "refresh": {
767
+ "complexType": {
768
+ "signature": "() => Promise<void>",
769
+ "parameters": [],
770
+ "references": {
771
+ "Promise": {
772
+ "location": "global"
773
+ }
774
+ },
775
+ "return": "Promise<void>"
750
776
  },
751
- "return": "Promise<void>"
777
+ "docs": {
778
+ "text": "This method is used to trigger a new render of the component.",
779
+ "tags": []
780
+ }
752
781
  },
753
- "docs": {
754
- "text": "Calls handleSelection internal method to select the given item.",
755
- "tags": [{
756
- "name": "param",
757
- "text": "index - Based zero index of the item that must be selected, when not provided the list will attempt to select the focused element."
758
- }]
759
- }
760
- },
761
- "setProps": {
762
- "complexType": {
763
- "signature": "(props: GenericObject) => Promise<void>",
764
- "parameters": [{
765
- "tags": [{
766
- "name": "param",
767
- "text": "props - Object containing props that will be set to the component."
768
- }],
769
- "text": "- Object containing props that will be set to the component."
770
- }],
771
- "references": {
772
- "Promise": {
773
- "location": "global"
782
+ "select": {
783
+ "complexType": {
784
+ "signature": "(index?: number) => Promise<void>",
785
+ "parameters": [{
786
+ "tags": [{
787
+ "name": "param",
788
+ "text": "index - Based zero index of the item that must be selected, when not provided the list will attempt to select the focused element."
789
+ }],
790
+ "text": "- Based zero index of the item that must be selected, when not provided the list will attempt to select the focused element."
791
+ }],
792
+ "references": {
793
+ "Promise": {
794
+ "location": "global"
795
+ }
774
796
  },
775
- "GenericObject": {
776
- "location": "import",
777
- "path": "../../types/GenericTypes"
778
- }
797
+ "return": "Promise<void>"
779
798
  },
780
- "return": "Promise<void>"
799
+ "docs": {
800
+ "text": "Calls handleSelection internal method to select the given item.",
801
+ "tags": [{
802
+ "name": "param",
803
+ "text": "index - Based zero index of the item that must be selected, when not provided the list will attempt to select the focused element."
804
+ }]
805
+ }
781
806
  },
782
- "docs": {
783
- "text": "Sets the props to the component.",
784
- "tags": [{
785
- "name": "param",
786
- "text": "props - Object containing props that will be set to the component."
787
- }]
807
+ "setProps": {
808
+ "complexType": {
809
+ "signature": "(props: GenericObject) => Promise<void>",
810
+ "parameters": [{
811
+ "tags": [{
812
+ "name": "param",
813
+ "text": "props - Object containing props that will be set to the component."
814
+ }],
815
+ "text": "- Object containing props that will be set to the component."
816
+ }],
817
+ "references": {
818
+ "Promise": {
819
+ "location": "global"
820
+ },
821
+ "GenericObject": {
822
+ "location": "import",
823
+ "path": "../../types/GenericTypes"
824
+ }
825
+ },
826
+ "return": "Promise<void>"
827
+ },
828
+ "docs": {
829
+ "text": "Sets the props to the component.",
830
+ "tags": [{
831
+ "name": "param",
832
+ "text": "props - Object containing props that will be set to the component."
833
+ }]
834
+ }
788
835
  }
789
- }
790
- }; }
836
+ };
837
+ }
791
838
  static get elementRef() { return "rootElement"; }
792
- static get listeners() { return [{
793
- "name": "keydown",
794
- "method": "listenKeydown",
795
- "target": undefined,
796
- "capture": false,
797
- "passive": false
798
- }]; }
839
+ static get listeners() {
840
+ return [{
841
+ "name": "keydown",
842
+ "method": "listenKeydown",
843
+ "target": undefined,
844
+ "capture": false,
845
+ "passive": false
846
+ }];
847
+ }
799
848
  }
800
849
  _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_listItems = new WeakMap(), _KupList_instances = new WeakSet(), _KupList_handleSelection = function _KupList_handleSelection(index) {
801
850
  if (index !== null && index !== undefined && !isNaN(index)) {
@@ -876,9 +925,7 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
876
925
  }
877
926
  let innerSpanTag = [
878
927
  imageTag,
879
- h("span", { class: "list-item__text" },
880
- primaryTextTag,
881
- secTextTag),
928
+ h("span", { class: "list-item__text" }, primaryTextTag, secTextTag),
882
929
  ];
883
930
  if (__classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isRadioButtonRule).call(this)) {
884
931
  roleAttr = 'radio';
@@ -894,13 +941,9 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
894
941
  display: 'none',
895
942
  };
896
943
  innerSpanTag = [
897
- h("span", { class: "list-item__graphic" },
898
- h("input", { type: "radio", style: trickForMDC }),
899
- h("kup-radio", { data: dataTmp, id: this.rootElement.id + '_' + index, ref: (el) => (__classPrivateFieldGet(this, _KupList_radios, "f")[index] = el) })),
944
+ h("span", { class: "list-item__graphic" }, h("input", { type: "radio", style: trickForMDC }), h("kup-radio", { data: dataTmp, id: this.rootElement.id + '_' + index, ref: (el) => (__classPrivateFieldGet(this, _KupList_radios, "f")[index] = el) })),
900
945
  imageTag,
901
- h("label", { class: "list-item__text", htmlFor: this.rootElement.id + '_' + index },
902
- primaryTextTag,
903
- secTextTag),
946
+ h("label", { class: "list-item__text", htmlFor: this.rootElement.id + '_' + index }, primaryTextTag, secTextTag),
904
947
  ];
905
948
  }
906
949
  else if (__classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isCheckBoxRule).call(this)) {
@@ -911,13 +954,9 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
911
954
  display: 'none',
912
955
  };
913
956
  innerSpanTag = [
914
- h("span", { class: "list-item__graphic" },
915
- h("input", { type: "checkbox", style: trickForMDC }),
916
- h(FCheckbox, { checked: checkedAttr })),
957
+ h("span", { class: "list-item__graphic" }, h("input", { type: "checkbox", style: trickForMDC }), h(FCheckbox, { checked: checkedAttr })),
917
958
  imageTag,
918
- h("label", { class: "list-item__text", htmlFor: this.rootElement.id + '_' + index },
919
- primaryTextTag,
920
- secTextTag),
959
+ h("label", { class: "list-item__text", htmlFor: this.rootElement.id + '_' + index }, primaryTextTag, secTextTag),
921
960
  ];
922
961
  }
923
962
  const vNodes = [];
@@ -937,14 +976,12 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
937
976
  e.stopPropagation();
938
977
  this.onKupClick(index);
939
978
  }
940
- : () => this.onKupClick(index) },
941
- innerSpanTag,
942
- nestedList
943
- ? [
944
- h(FImage, { resource: "chevron-right", sizeX: "1.5em", sizeY: "1.5em", wrapperClass: "list-item__expand-icon" }),
945
- nestedList,
946
- ]
947
- : null));
979
+ : () => this.onKupClick(index) }, innerSpanTag, nestedList
980
+ ? [
981
+ h(FImage, { resource: "chevron-right", sizeX: "1.5em", sizeY: "1.5em", wrapperClass: "list-item__expand-icon" }),
982
+ nestedList,
983
+ ]
984
+ : null));
948
985
  return vNodes;
949
986
  }, _KupList_getIconTag = function _KupList_getIconTag(icon) {
950
987
  const large = this.rootElement.classList.contains('kup-large');