@sme.up/ketchup 6.6.0 → 6.8.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 (211) hide show
  1. package/README.md +7 -1
  2. package/dist/cjs/{f-button-a531feb2.js → f-button-229c63fd.js} +2 -2
  3. package/dist/cjs/{f-cell-75cb7933.js → f-cell-dd006395.js} +22 -22
  4. package/dist/cjs/{f-checkbox-cd977193.js → f-checkbox-1097ca5d.js} +1 -1
  5. package/dist/cjs/{f-chip-9508a2e4.js → f-chip-f2c369fd.js} +3 -3
  6. package/dist/cjs/{f-image-c21cc616.js → f-image-847a6ddf.js} +2 -2
  7. package/dist/cjs/{f-paginator-utils-2b72d7e8.js → f-paginator-utils-cedc4b3e.js} +3 -3
  8. package/dist/cjs/{f-text-field-a5b2bd0e.js → f-text-field-fe85187d.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 +7 -30
  12. package/dist/cjs/{kup-autocomplete_25.cjs.entry.js → kup-autocomplete_26.cjs.entry.js} +3925 -4288
  13. package/dist/cjs/kup-box.cjs.entry.js +33 -113
  14. package/dist/cjs/kup-calendar.cjs.entry.js +10 -34
  15. package/dist/cjs/kup-cell.cjs.entry.js +10 -29
  16. package/dist/cjs/kup-dash-list.cjs.entry.js +10 -9
  17. package/dist/cjs/kup-dash_2.cjs.entry.js +7 -35
  18. package/dist/cjs/kup-dashboard.cjs.entry.js +10 -32
  19. package/dist/cjs/kup-drawer.cjs.entry.js +4 -19
  20. package/dist/cjs/kup-echart.cjs.entry.js +16 -77
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +12 -48
  22. package/dist/cjs/kup-iframe.cjs.entry.js +5 -17
  23. package/dist/cjs/kup-image-list.cjs.entry.js +16 -34
  24. package/dist/cjs/kup-lazy.cjs.entry.js +10 -37
  25. package/dist/cjs/kup-magic-box.cjs.entry.js +6 -25
  26. package/dist/cjs/{kup-manager-8e67afec.js → kup-manager-c53468cd.js} +82 -7
  27. package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -16
  28. package/dist/cjs/kup-numeric-picker.cjs.entry.js +14 -57
  29. package/dist/cjs/kup-photo-frame.cjs.entry.js +9 -31
  30. package/dist/cjs/kup-probe.cjs.entry.js +13 -33
  31. package/dist/cjs/kup-qlik.cjs.entry.js +6 -60
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +7 -38
  33. package/dist/cjs/loader.cjs.js +3 -3
  34. package/dist/collection/assets/box.js +9 -6
  35. package/dist/collection/collection-manifest.json +3 -3
  36. package/dist/collection/components/kup-accordion/kup-accordion.js +243 -261
  37. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +560 -594
  38. package/dist/collection/components/kup-badge/kup-badge.js +179 -189
  39. package/dist/collection/components/kup-box/kup-box.js +911 -1010
  40. package/dist/collection/components/kup-button/kup-button.js +382 -428
  41. package/dist/collection/components/kup-button-list/kup-button-list.js +254 -278
  42. package/dist/collection/components/kup-calendar/kup-calendar.js +306 -329
  43. package/dist/collection/components/kup-card/box/kup-card-box.js +10 -24
  44. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +10 -2
  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-form.js +11 -0
  49. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +9 -44
  50. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +2 -21
  51. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +6 -33
  52. package/dist/collection/components/kup-card/kup-card-helper.js +3 -8
  53. package/dist/collection/components/kup-card/kup-card.css +118 -12
  54. package/dist/collection/components/kup-card/kup-card.js +394 -385
  55. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +68 -81
  56. package/dist/collection/components/kup-card/standard/kup-card-standard.js +98 -278
  57. package/dist/collection/components/kup-cell/kup-cell.js +224 -238
  58. package/dist/collection/components/kup-chart/kup-chart.js +562 -586
  59. package/dist/collection/components/kup-checkbox/kup-checkbox.js +278 -304
  60. package/dist/collection/components/kup-chip/kup-chip.js +243 -250
  61. package/dist/collection/components/kup-color-picker/kup-color-picker.js +278 -299
  62. package/dist/collection/components/kup-combobox/kup-combobox.js +467 -482
  63. package/dist/collection/components/kup-dash/kup-dash.js +112 -172
  64. package/dist/collection/components/kup-dash-list/kup-dash-list.js +218 -220
  65. package/dist/collection/components/kup-dashboard/kup-dashboard.js +200 -229
  66. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +2 -0
  67. package/dist/collection/components/kup-data-table/kup-data-table.css +9 -0
  68. package/dist/collection/components/kup-data-table/kup-data-table.js +4700 -4452
  69. package/dist/collection/components/kup-date-picker/kup-date-picker.js +415 -429
  70. package/dist/collection/components/kup-drawer/kup-drawer.js +246 -253
  71. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +486 -527
  72. package/dist/collection/components/kup-echart/kup-echart.js +450 -498
  73. package/dist/collection/components/kup-family-tree/kup-family-tree.js +416 -465
  74. package/dist/collection/components/kup-form/kup-form.js +226 -248
  75. package/dist/collection/components/kup-gauge/kup-gauge.js +460 -521
  76. package/dist/collection/components/kup-grid/kup-grid.js +159 -172
  77. package/dist/collection/components/kup-iframe/kup-iframe.js +184 -188
  78. package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +9 -3
  79. package/dist/collection/components/kup-image/kup-image.js +305 -340
  80. package/dist/collection/components/kup-image-list/kup-image-list.js +300 -311
  81. package/dist/collection/components/kup-lazy/kup-lazy.js +261 -288
  82. package/dist/collection/components/kup-list/kup-list.js +546 -572
  83. package/dist/collection/components/kup-magic-box/kup-magic-box.js +148 -167
  84. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +192 -198
  85. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +501 -532
  86. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +261 -271
  87. package/dist/collection/components/kup-probe/kup-probe.js +98 -114
  88. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +240 -276
  89. package/dist/collection/components/kup-qlik/kup-qlik.js +182 -228
  90. package/dist/collection/components/kup-radio/kup-radio.js +261 -289
  91. package/dist/collection/components/kup-rating/kup-rating.js +212 -224
  92. package/dist/collection/components/kup-snackbar/kup-snackbar.js +252 -280
  93. package/dist/collection/components/kup-spinner/kup-spinner.js +277 -308
  94. package/dist/collection/components/kup-switch/kup-switch.js +258 -280
  95. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +268 -247
  96. package/dist/collection/components/kup-text-field/kup-text-field.js +816 -920
  97. package/dist/collection/components/kup-time-picker/kup-time-picker.js +472 -493
  98. package/dist/collection/components/kup-tree/kup-tree-faker.js +3 -2
  99. package/dist/collection/components/kup-tree/kup-tree.js +1107 -1205
  100. package/dist/collection/f-components/f-button/f-button.js +11 -20
  101. package/dist/collection/f-components/f-cell/f-cell.js +20 -22
  102. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -9
  103. package/dist/collection/f-components/f-chip/f-chip.js +18 -31
  104. package/dist/collection/f-components/f-image/f-image.js +1 -3
  105. package/dist/collection/f-components/f-paginator/f-paginator.js +1 -6
  106. package/dist/collection/f-components/f-switch/f-switch.js +1 -8
  107. package/dist/collection/f-components/f-text-field/f-text-field.js +18 -40
  108. package/dist/collection/managers/kup-debug/kup-debug.js +10 -5
  109. package/dist/collection/managers/kup-language/kup-language-declarations.js +6 -0
  110. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +25 -10
  111. package/dist/collection/managers/kup-toolbar/kup-toolbar.js +10 -5
  112. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +10 -5
  113. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +0 -21
  114. package/dist/esm/{f-button-15719ec1.js → f-button-d1aba968.js} +2 -2
  115. package/dist/esm/{f-cell-692c37bf.js → f-cell-646406bb.js} +22 -22
  116. package/dist/esm/{f-checkbox-e06cf07b.js → f-checkbox-b721178e.js} +1 -1
  117. package/dist/esm/{f-chip-abab04bf.js → f-chip-d94e9e81.js} +3 -3
  118. package/dist/esm/{f-image-98783644.js → f-image-57c88302.js} +2 -2
  119. package/dist/esm/{f-paginator-utils-d12ee737.js → f-paginator-utils-2c865e9a.js} +3 -3
  120. package/dist/esm/{f-text-field-282025dd.js → f-text-field-b0a1fea6.js} +2 -2
  121. package/dist/esm/{index-e41330a5.js → index-a2197376.js} +423 -252
  122. package/dist/esm/ketchup.js +3 -3
  123. package/dist/esm/kup-accordion.entry.js +7 -30
  124. package/dist/esm/{kup-autocomplete_25.entry.js → kup-autocomplete_26.entry.js} +3925 -4289
  125. package/dist/esm/kup-box.entry.js +33 -113
  126. package/dist/esm/kup-calendar.entry.js +10 -34
  127. package/dist/esm/kup-cell.entry.js +10 -29
  128. package/dist/esm/kup-dash-list.entry.js +10 -9
  129. package/dist/esm/kup-dash_2.entry.js +7 -35
  130. package/dist/esm/kup-dashboard.entry.js +10 -32
  131. package/dist/esm/kup-drawer.entry.js +4 -19
  132. package/dist/esm/kup-echart.entry.js +16 -77
  133. package/dist/esm/kup-family-tree.entry.js +12 -48
  134. package/dist/esm/kup-iframe.entry.js +5 -17
  135. package/dist/esm/kup-image-list.entry.js +16 -34
  136. package/dist/esm/kup-lazy.entry.js +10 -37
  137. package/dist/esm/kup-magic-box.entry.js +6 -25
  138. package/dist/esm/{kup-manager-abbae73e.js → kup-manager-c0fbb180.js} +83 -8
  139. package/dist/esm/kup-nav-bar.entry.js +4 -16
  140. package/dist/esm/kup-numeric-picker.entry.js +14 -57
  141. package/dist/esm/kup-photo-frame.entry.js +9 -31
  142. package/dist/esm/kup-probe.entry.js +13 -33
  143. package/dist/esm/kup-qlik.entry.js +6 -60
  144. package/dist/esm/kup-snackbar.entry.js +7 -38
  145. package/dist/esm/loader.js +3 -3
  146. package/dist/esm/polyfills/css-shim.js +1 -1
  147. package/dist/ketchup/ketchup.esm.js +1 -1
  148. package/dist/ketchup/{p-eeadd688.entry.js → p-1914969e.entry.js} +1 -1
  149. package/dist/ketchup/{p-5552f156.js → p-23cd5a68.js} +1 -1
  150. package/dist/ketchup/{p-a4a30e0e.entry.js → p-250118e3.entry.js} +1 -1
  151. package/dist/ketchup/{p-ccef2553.entry.js → p-30766296.entry.js} +1 -1
  152. package/dist/ketchup/{p-5933aa02.entry.js → p-351cecba.entry.js} +1 -1
  153. package/dist/ketchup/p-35e16ea2.entry.js +1 -0
  154. package/dist/ketchup/{p-e6ebdb80.js → p-395675b8.js} +1 -1
  155. package/dist/ketchup/p-3cf97e3a.js +1 -0
  156. package/dist/ketchup/p-4fdb684f.js +2 -0
  157. package/dist/ketchup/{p-9419919c.entry.js → p-596bdc10.entry.js} +1 -1
  158. package/dist/ketchup/{p-6f3040fb.js → p-61ff1761.js} +1 -1
  159. package/dist/ketchup/p-72d4fa26.entry.js +1 -0
  160. package/dist/ketchup/{p-fd930a34.entry.js → p-738685f9.entry.js} +1 -1
  161. package/dist/ketchup/{p-f6409c42.entry.js → p-7c8c5444.entry.js} +1 -1
  162. package/dist/ketchup/p-86154e2b.js +1 -0
  163. package/dist/ketchup/{p-7e16265d.entry.js → p-9214ef33.entry.js} +1 -1
  164. package/dist/ketchup/{p-62f3ec78.entry.js → p-980ed953.entry.js} +1 -1
  165. package/dist/ketchup/p-991bd70d.entry.js +1 -0
  166. package/dist/ketchup/{p-7d37ea62.entry.js → p-a1fe329f.entry.js} +1 -1
  167. package/dist/ketchup/p-a740352c.js +30 -0
  168. package/dist/ketchup/{p-62421bcf.js → p-a992cf87.js} +1 -1
  169. package/dist/ketchup/{p-3760a159.entry.js → p-b1da1ba7.entry.js} +2 -2
  170. package/dist/ketchup/{p-5ea2a1ff.entry.js → p-cee3635a.entry.js} +1 -1
  171. package/dist/ketchup/p-d05ed931.entry.js +9 -0
  172. package/dist/ketchup/{p-a450d60a.entry.js → p-d422151a.entry.js} +2 -2
  173. package/dist/ketchup/p-e6f19333.entry.js +1 -0
  174. package/dist/ketchup/{p-1ef5d16d.entry.js → p-eb10958a.entry.js} +1 -1
  175. package/dist/ketchup/{p-20221a50.js → p-ecac6269.js} +1 -1
  176. package/dist/ketchup/p-f43b445e.entry.js +1 -0
  177. package/dist/ketchup/{p-725c6268.entry.js → p-fa37e92e.entry.js} +1 -1
  178. package/dist/loader/package.json +1 -0
  179. package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -0
  180. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +7 -2
  181. package/dist/types/components/kup-card/built-in/kup-card-form.d.ts +3 -0
  182. package/dist/types/components/kup-card/kup-card-declarations.d.ts +11 -1
  183. package/dist/types/components/kup-card/kup-card.d.ts +5 -0
  184. package/dist/types/components/kup-card/scalable/kup-card-scalable.d.ts +6 -0
  185. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +9 -0
  186. package/dist/types/components/kup-data-table/kup-data-table.d.ts +54 -201
  187. package/dist/types/components/kup-list/kup-list.d.ts +5 -0
  188. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +5 -0
  189. package/dist/types/components/kup-tree/kup-tree.d.ts +0 -1
  190. package/dist/types/components.d.ts +78 -2
  191. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
  192. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +7 -1
  193. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +1 -0
  194. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +2 -1
  195. package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +1 -0
  196. package/dist/types/stencil-public-runtime.d.ts +20 -4
  197. package/package.json +2 -2
  198. package/CHANGELOG.md +0 -5
  199. package/dist/cjs/kup-form.cjs.entry.js +0 -486
  200. package/dist/esm/kup-form.entry.js +0 -482
  201. package/dist/ketchup/p-1d2dea0a.entry.js +0 -1
  202. package/dist/ketchup/p-27538d6f.entry.js +0 -1
  203. package/dist/ketchup/p-29d72040.entry.js +0 -1
  204. package/dist/ketchup/p-3e74e1ed.js +0 -1
  205. package/dist/ketchup/p-680a8cb4.entry.js +0 -9
  206. package/dist/ketchup/p-6946b614.entry.js +0 -1
  207. package/dist/ketchup/p-b0b3989b.js +0 -2
  208. package/dist/ketchup/p-c05f2638.js +0 -30
  209. package/dist/ketchup/p-d7a92197.entry.js +0 -1
  210. package/dist/ketchup/p-d8af7ba6.entry.js +0 -1
  211. 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';
@@ -23,91 +28,28 @@ export class KupList {
23
28
  constructor() {
24
29
  _KupList_instances.add(this);
25
30
  /*-------------------------------------------------*/
26
- /* S t a t e s */
31
+ /* I n t e r n a l V a r i a b l e s */
27
32
  /*-------------------------------------------------*/
28
33
  /**
29
- * The focused list item.
30
- * @default null
34
+ * Instance of the KupManager class.
31
35
  */
36
+ _KupList_kupManager.set(this, kupManagerInstance());
37
+ _KupList_radios.set(this, []);
38
+ _KupList_listItems.set(this, []);
32
39
  this.focused = null;
33
- /**
34
- * The selected list items.
35
- * @default []
36
- */
37
40
  this.selected = [];
38
- /*-------------------------------------------------*/
39
- /* P r o p s */
40
- /*-------------------------------------------------*/
41
- /**
42
- * Custom style of the component.
43
- * @default ""
44
- * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
45
- */
46
41
  this.customStyle = '';
47
- /**
48
- * The data of the list.
49
- * @default []
50
- */
51
42
  this.data = [];
52
- /**
53
- * Selects how the items must display their label and how they can be filtered for.
54
- * @default ItemsDisplayMode.DESCRIPTION
55
- */
56
43
  this.displayMode = ItemsDisplayMode.DESCRIPTION;
57
- /**
58
- * Keeps string for filtering elements when filter mode is active
59
- * @default ''
60
- */
61
44
  this.filter = '';
62
- /**
63
- * Hides rows' text, ideally to display a list of icons only.
64
- * @default false
65
- */
66
45
  this.hideText = false;
67
- /**
68
- * Defines whether the list is a menu or not.
69
- * @default false
70
- */
71
46
  this.isMenu = false;
72
- /**
73
- * When true, enables items' navigation through arrow keys.
74
- * @default true
75
- */
76
47
  this.keyboardNavigation = true;
77
- /**
78
- * Sets the status of the menu, when false it's hidden otherwise it's visible.
79
- * @default false
80
- */
81
48
  this.menuVisible = false;
82
- /**
83
- * Defines the type of selection. Values accepted: listbox, radiogroup or group.
84
- * @default KupListRole.LISTBOX
85
- */
86
49
  this.roleType = KupListRole.LISTBOX;
87
- /**
88
- * Defines whether items are selectable or not.
89
- * @default true
90
- */
91
50
  this.selectable = true;
92
- /**
93
- * Displays the icons associated to each row when set to true.
94
- * @default false
95
- */
96
51
  this.showIcons = false;
97
- /**
98
- * The list elements descriptions will be arranged in two lines.
99
- * @default false
100
- */
101
52
  this.twoLine = false;
102
- /*-------------------------------------------------*/
103
- /* I n t e r n a l V a r i a b l e s */
104
- /*-------------------------------------------------*/
105
- /**
106
- * Instance of the KupManager class.
107
- */
108
- _KupList_kupManager.set(this, kupManagerInstance());
109
- _KupList_radios.set(this, []);
110
- _KupList_listItems.set(this, []);
111
53
  }
112
54
  onKupBlur() {
113
55
  this.kupBlur.emit({
@@ -149,9 +91,6 @@ export class KupList {
149
91
  }
150
92
  }
151
93
  /*-------------------------------------------------*/
152
- /* W a t c h e r s */
153
- /*-------------------------------------------------*/
154
- /*-------------------------------------------------*/
155
94
  /* P u b l i c M e t h o d s */
156
95
  /*-------------------------------------------------*/
157
96
  /**
@@ -208,6 +147,19 @@ export class KupList {
208
147
  async getProps(descriptions) {
209
148
  return getProps(this, KupListProps, descriptions);
210
149
  }
150
+ /**
151
+ * Returns the selected node.
152
+ * @returns {Promise<KupListNode>} Selected node.
153
+ */
154
+ async getSelectedNode() {
155
+ const nodes = [];
156
+ this.data.forEach((node) => {
157
+ if (this.selected.includes(node.id)) {
158
+ nodes.push(node);
159
+ }
160
+ });
161
+ return nodes;
162
+ }
211
163
  /**
212
164
  * This method is used to trigger a new render of the component.
213
165
  */
@@ -291,511 +243,545 @@ export class KupList {
291
243
  }
292
244
  __classPrivateFieldSet(this, _KupList_radios, [], "f");
293
245
  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++))))));
246
+ 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
247
+ .filter((item) => __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_itemCompliant).call(this, item))
248
+ .map((item) => __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_renderListItem).call(this, item, index++))))));
300
249
  }
301
250
  disconnectedCallback() {
302
251
  __classPrivateFieldGet(this, _KupList_kupManager, "f").theme.unregister(this);
303
252
  }
304
253
  static get is() { return "kup-list"; }
305
254
  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"
255
+ static get originalStyleUrls() {
256
+ return {
257
+ "$": ["kup-list.scss"]
258
+ };
259
+ }
260
+ static get styleUrls() {
261
+ return {
262
+ "$": ["kup-list.css"]
263
+ };
264
+ }
265
+ static get properties() {
266
+ return {
267
+ "customStyle": {
268
+ "type": "string",
269
+ "mutable": false,
270
+ "complexType": {
271
+ "original": "string",
272
+ "resolved": "string",
273
+ "references": {}
274
+ },
275
+ "required": false,
276
+ "optional": false,
277
+ "docs": {
278
+ "tags": [{
279
+ "name": "default",
280
+ "text": "\"\""
281
+ }, {
282
+ "name": "see",
283
+ "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
284
+ }],
285
+ "text": "Custom style of the component."
286
+ },
287
+ "attribute": "custom-style",
288
+ "reflect": false,
289
+ "defaultValue": "''"
290
+ },
291
+ "data": {
292
+ "type": "unknown",
293
+ "mutable": true,
294
+ "complexType": {
295
+ "original": "KupListNode[]",
296
+ "resolved": "KupListNode[]",
297
+ "references": {
298
+ "KupListNode": {
299
+ "location": "import",
300
+ "path": "./kup-list-declarations"
301
+ }
347
302
  }
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"
303
+ },
304
+ "required": false,
305
+ "optional": false,
306
+ "docs": {
307
+ "tags": [{
308
+ "name": "default",
309
+ "text": "[]"
310
+ }],
311
+ "text": "The data of the list."
312
+ },
313
+ "defaultValue": "[]"
314
+ },
315
+ "displayMode": {
316
+ "type": "string",
317
+ "mutable": false,
318
+ "complexType": {
319
+ "original": "ItemsDisplayMode",
320
+ "resolved": "ItemsDisplayMode.CODE | ItemsDisplayMode.DESCRIPTION | ItemsDisplayMode.DESCRIPTION_AND_CODE",
321
+ "references": {
322
+ "ItemsDisplayMode": {
323
+ "location": "import",
324
+ "path": "./kup-list-declarations"
325
+ }
371
326
  }
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"
327
+ },
328
+ "required": false,
329
+ "optional": false,
330
+ "docs": {
331
+ "tags": [{
332
+ "name": "default",
333
+ "text": "ItemsDisplayMode.DESCRIPTION"
334
+ }],
335
+ "text": "Selects how the items must display their label and how they can be filtered for."
336
+ },
337
+ "attribute": "display-mode",
338
+ "reflect": false,
339
+ "defaultValue": "ItemsDisplayMode.DESCRIPTION"
340
+ },
341
+ "filter": {
342
+ "type": "string",
343
+ "mutable": true,
344
+ "complexType": {
345
+ "original": "string",
346
+ "resolved": "string",
347
+ "references": {}
348
+ },
349
+ "required": false,
350
+ "optional": false,
351
+ "docs": {
352
+ "tags": [{
353
+ "name": "default",
354
+ "text": "''"
355
+ }],
356
+ "text": "Keeps string for filtering elements when filter mode is active"
357
+ },
358
+ "attribute": "filter",
359
+ "reflect": false,
360
+ "defaultValue": "''"
361
+ },
362
+ "hideText": {
363
+ "type": "boolean",
364
+ "mutable": false,
365
+ "complexType": {
366
+ "original": "boolean",
367
+ "resolved": "boolean",
368
+ "references": {}
369
+ },
370
+ "required": false,
371
+ "optional": false,
372
+ "docs": {
373
+ "tags": [{
374
+ "name": "default",
375
+ "text": "false"
376
+ }],
377
+ "text": "Hides rows' text, ideally to display a list of icons only."
378
+ },
379
+ "attribute": "hide-text",
380
+ "reflect": false,
381
+ "defaultValue": "false"
382
+ },
383
+ "isMenu": {
384
+ "type": "boolean",
385
+ "mutable": false,
386
+ "complexType": {
387
+ "original": "boolean",
388
+ "resolved": "boolean",
389
+ "references": {}
390
+ },
391
+ "required": false,
392
+ "optional": false,
393
+ "docs": {
394
+ "tags": [{
395
+ "name": "default",
396
+ "text": "false"
397
+ }],
398
+ "text": "Defines whether the list is a menu or not."
399
+ },
400
+ "attribute": "is-menu",
401
+ "reflect": false,
402
+ "defaultValue": "false"
403
+ },
404
+ "keyboardNavigation": {
405
+ "type": "boolean",
406
+ "mutable": false,
407
+ "complexType": {
408
+ "original": "boolean",
409
+ "resolved": "boolean",
410
+ "references": {}
411
+ },
412
+ "required": false,
413
+ "optional": false,
414
+ "docs": {
415
+ "tags": [{
416
+ "name": "default",
417
+ "text": "true"
418
+ }],
419
+ "text": "When true, enables items' navigation through arrow keys."
420
+ },
421
+ "attribute": "keyboard-navigation",
422
+ "reflect": false,
423
+ "defaultValue": "true"
424
+ },
425
+ "menuVisible": {
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": "Sets the status of the menu, when false it's hidden otherwise it's visible."
441
+ },
442
+ "attribute": "menu-visible",
443
+ "reflect": false,
444
+ "defaultValue": "false"
445
+ },
446
+ "roleType": {
447
+ "type": "string",
448
+ "mutable": true,
449
+ "complexType": {
450
+ "original": "KupListRole",
451
+ "resolved": "KupListRole.GROUP | KupListRole.LISTBOX | KupListRole.RADIOGROUP",
452
+ "references": {
453
+ "KupListRole": {
454
+ "location": "import",
455
+ "path": "./kup-list-declarations"
456
+ }
502
457
  }
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"
458
+ },
459
+ "required": false,
460
+ "optional": true,
461
+ "docs": {
462
+ "tags": [{
463
+ "name": "default",
464
+ "text": "KupListRole.LISTBOX"
465
+ }],
466
+ "text": "Defines the type of selection. Values accepted: listbox, radiogroup or group."
467
+ },
468
+ "attribute": "role-type",
469
+ "reflect": false,
470
+ "defaultValue": "KupListRole.LISTBOX"
471
+ },
472
+ "selectable": {
473
+ "type": "boolean",
474
+ "mutable": false,
475
+ "complexType": {
476
+ "original": "boolean",
477
+ "resolved": "boolean",
478
+ "references": {}
479
+ },
480
+ "required": false,
481
+ "optional": false,
482
+ "docs": {
483
+ "tags": [{
484
+ "name": "default",
485
+ "text": "true"
486
+ }],
487
+ "text": "Defines whether items are selectable or not."
488
+ },
489
+ "attribute": "selectable",
490
+ "reflect": false,
491
+ "defaultValue": "true"
492
+ },
493
+ "showIcons": {
494
+ "type": "boolean",
495
+ "mutable": false,
496
+ "complexType": {
497
+ "original": "boolean",
498
+ "resolved": "boolean",
499
+ "references": {}
500
+ },
501
+ "required": false,
502
+ "optional": false,
503
+ "docs": {
504
+ "tags": [{
505
+ "name": "default",
506
+ "text": "false"
507
+ }],
508
+ "text": "Displays the icons associated to each row when set to true."
509
+ },
510
+ "attribute": "show-icons",
511
+ "reflect": false,
512
+ "defaultValue": "false"
513
+ },
514
+ "twoLine": {
515
+ "type": "boolean",
516
+ "mutable": false,
517
+ "complexType": {
518
+ "original": "boolean",
519
+ "resolved": "boolean",
520
+ "references": {}
521
+ },
522
+ "required": false,
523
+ "optional": false,
524
+ "docs": {
525
+ "tags": [{
526
+ "name": "default",
527
+ "text": "false"
528
+ }],
529
+ "text": "The list elements descriptions will be arranged in two lines."
530
+ },
531
+ "attribute": "two-line",
532
+ "reflect": false,
533
+ "defaultValue": "false"
534
+ }
535
+ };
536
+ }
537
+ static get states() {
538
+ return {
539
+ "focused": {},
540
+ "selected": {}
541
+ };
542
+ }
543
+ static get events() {
544
+ return [{
545
+ "method": "kupBlur",
546
+ "name": "kup-list-blur",
547
+ "bubbles": true,
548
+ "cancelable": false,
549
+ "composed": true,
550
+ "docs": {
551
+ "tags": [],
552
+ "text": ""
553
+ },
554
+ "complexType": {
555
+ "original": "KupEventPayload",
556
+ "resolved": "KupEventPayload",
557
+ "references": {
558
+ "KupEventPayload": {
559
+ "location": "import",
560
+ "path": "../../types/GenericTypes"
561
+ }
603
562
  }
604
563
  }
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"
564
+ }, {
565
+ "method": "kupFocus",
566
+ "name": "kup-list-focus",
567
+ "bubbles": true,
568
+ "cancelable": false,
569
+ "composed": true,
570
+ "docs": {
571
+ "tags": [],
572
+ "text": ""
573
+ },
574
+ "complexType": {
575
+ "original": "KupEventPayload",
576
+ "resolved": "KupEventPayload",
577
+ "references": {
578
+ "KupEventPayload": {
579
+ "location": "import",
580
+ "path": "../../types/GenericTypes"
581
+ }
623
582
  }
624
583
  }
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"
584
+ }, {
585
+ "method": "kupClick",
586
+ "name": "kup-list-click",
587
+ "bubbles": true,
588
+ "cancelable": false,
589
+ "composed": true,
590
+ "docs": {
591
+ "tags": [],
592
+ "text": ""
593
+ },
594
+ "complexType": {
595
+ "original": "KupListEventPayload",
596
+ "resolved": "KupListEventPayload",
597
+ "references": {
598
+ "KupListEventPayload": {
599
+ "location": "import",
600
+ "path": "./kup-list-declarations"
601
+ }
643
602
  }
644
603
  }
645
- }
646
- }]; }
647
- static get methods() { return {
648
- "focusNext": {
649
- "complexType": {
650
- "signature": "() => Promise<void>",
651
- "parameters": [],
652
- "references": {
653
- "Promise": {
654
- "location": "global"
604
+ }];
605
+ }
606
+ static get methods() {
607
+ return {
608
+ "focusNext": {
609
+ "complexType": {
610
+ "signature": "() => Promise<void>",
611
+ "parameters": [],
612
+ "references": {
613
+ "Promise": {
614
+ "location": "global"
615
+ },
616
+ "KupListNode": {
617
+ "location": "import",
618
+ "path": "./kup-list-declarations"
619
+ }
655
620
  },
656
- "KupListNode": {
657
- "location": "import",
658
- "path": "./kup-list-declarations"
659
- }
621
+ "return": "Promise<void>"
660
622
  },
661
- "return": "Promise<void>"
623
+ "docs": {
624
+ "text": "Focuses the next element of the list.",
625
+ "tags": []
626
+ }
662
627
  },
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"
628
+ "focusPrevious": {
629
+ "complexType": {
630
+ "signature": "() => Promise<void>",
631
+ "parameters": [],
632
+ "references": {
633
+ "Promise": {
634
+ "location": "global"
635
+ },
636
+ "KupListNode": {
637
+ "location": "import",
638
+ "path": "./kup-list-declarations"
639
+ }
675
640
  },
676
- "KupListNode": {
677
- "location": "import",
678
- "path": "./kup-list-declarations"
679
- }
641
+ "return": "Promise<void>"
680
642
  },
681
- "return": "Promise<void>"
643
+ "docs": {
644
+ "text": "Focuses the previous element of the list.",
645
+ "tags": []
646
+ }
682
647
  },
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"
648
+ "getProps": {
649
+ "complexType": {
650
+ "signature": "(descriptions?: boolean) => Promise<GenericObject>",
651
+ "parameters": [{
652
+ "tags": [{
653
+ "name": "param",
654
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
655
+ }],
656
+ "text": "- When provided and true, the result will be the list of props with their description."
657
+ }],
658
+ "references": {
659
+ "Promise": {
660
+ "location": "global"
661
+ },
662
+ "GenericObject": {
663
+ "location": "import",
664
+ "path": "../../types/GenericTypes"
665
+ }
701
666
  },
702
- "GenericObject": {
703
- "location": "import",
704
- "path": "../../types/GenericTypes"
705
- }
667
+ "return": "Promise<GenericObject>"
706
668
  },
707
- "return": "Promise<GenericObject>"
669
+ "docs": {
670
+ "text": "Used to retrieve component's props values.",
671
+ "tags": [{
672
+ "name": "param",
673
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
674
+ }, {
675
+ "name": "returns",
676
+ "text": "List of props as object, each key will be a prop."
677
+ }]
678
+ }
708
679
  },
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
- }
680
+ "getSelectedNode": {
681
+ "complexType": {
682
+ "signature": "() => Promise<KupListNode[]>",
683
+ "parameters": [],
684
+ "references": {
685
+ "Promise": {
686
+ "location": "global"
687
+ },
688
+ "KupListNode": {
689
+ "location": "import",
690
+ "path": "./kup-list-declarations"
691
+ }
692
+ },
693
+ "return": "Promise<KupListNode[]>"
728
694
  },
729
- "return": "Promise<void>"
695
+ "docs": {
696
+ "text": "Returns the selected node.",
697
+ "tags": [{
698
+ "name": "returns",
699
+ "text": "Selected node."
700
+ }]
701
+ }
730
702
  },
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
- }
703
+ "refresh": {
704
+ "complexType": {
705
+ "signature": "() => Promise<void>",
706
+ "parameters": [],
707
+ "references": {
708
+ "Promise": {
709
+ "location": "global"
710
+ }
711
+ },
712
+ "return": "Promise<void>"
750
713
  },
751
- "return": "Promise<void>"
714
+ "docs": {
715
+ "text": "This method is used to trigger a new render of the component.",
716
+ "tags": []
717
+ }
752
718
  },
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"
719
+ "select": {
720
+ "complexType": {
721
+ "signature": "(index?: number) => Promise<void>",
722
+ "parameters": [{
723
+ "tags": [{
724
+ "name": "param",
725
+ "text": "index - Based zero index of the item that must be selected, when not provided the list will attempt to select the focused element."
726
+ }],
727
+ "text": "- Based zero index of the item that must be selected, when not provided the list will attempt to select the focused element."
728
+ }],
729
+ "references": {
730
+ "Promise": {
731
+ "location": "global"
732
+ }
774
733
  },
775
- "GenericObject": {
776
- "location": "import",
777
- "path": "../../types/GenericTypes"
778
- }
734
+ "return": "Promise<void>"
779
735
  },
780
- "return": "Promise<void>"
736
+ "docs": {
737
+ "text": "Calls handleSelection internal method to select the given item.",
738
+ "tags": [{
739
+ "name": "param",
740
+ "text": "index - Based zero index of the item that must be selected, when not provided the list will attempt to select the focused element."
741
+ }]
742
+ }
781
743
  },
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
- }]
744
+ "setProps": {
745
+ "complexType": {
746
+ "signature": "(props: GenericObject) => Promise<void>",
747
+ "parameters": [{
748
+ "tags": [{
749
+ "name": "param",
750
+ "text": "props - Object containing props that will be set to the component."
751
+ }],
752
+ "text": "- Object containing props that will be set to the component."
753
+ }],
754
+ "references": {
755
+ "Promise": {
756
+ "location": "global"
757
+ },
758
+ "GenericObject": {
759
+ "location": "import",
760
+ "path": "../../types/GenericTypes"
761
+ }
762
+ },
763
+ "return": "Promise<void>"
764
+ },
765
+ "docs": {
766
+ "text": "Sets the props to the component.",
767
+ "tags": [{
768
+ "name": "param",
769
+ "text": "props - Object containing props that will be set to the component."
770
+ }]
771
+ }
788
772
  }
789
- }
790
- }; }
773
+ };
774
+ }
791
775
  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
- }]; }
776
+ static get listeners() {
777
+ return [{
778
+ "name": "keydown",
779
+ "method": "listenKeydown",
780
+ "target": undefined,
781
+ "capture": false,
782
+ "passive": false
783
+ }];
784
+ }
799
785
  }
800
786
  _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_listItems = new WeakMap(), _KupList_instances = new WeakSet(), _KupList_handleSelection = function _KupList_handleSelection(index) {
801
787
  if (index !== null && index !== undefined && !isNaN(index)) {
@@ -876,9 +862,7 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
876
862
  }
877
863
  let innerSpanTag = [
878
864
  imageTag,
879
- h("span", { class: "list-item__text" },
880
- primaryTextTag,
881
- secTextTag),
865
+ h("span", { class: "list-item__text" }, primaryTextTag, secTextTag),
882
866
  ];
883
867
  if (__classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isRadioButtonRule).call(this)) {
884
868
  roleAttr = 'radio';
@@ -894,13 +878,9 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
894
878
  display: 'none',
895
879
  };
896
880
  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) })),
881
+ 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
882
  imageTag,
901
- h("label", { class: "list-item__text", htmlFor: this.rootElement.id + '_' + index },
902
- primaryTextTag,
903
- secTextTag),
883
+ h("label", { class: "list-item__text", htmlFor: this.rootElement.id + '_' + index }, primaryTextTag, secTextTag),
904
884
  ];
905
885
  }
906
886
  else if (__classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isCheckBoxRule).call(this)) {
@@ -911,13 +891,9 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
911
891
  display: 'none',
912
892
  };
913
893
  innerSpanTag = [
914
- h("span", { class: "list-item__graphic" },
915
- h("input", { type: "checkbox", style: trickForMDC }),
916
- h(FCheckbox, { checked: checkedAttr })),
894
+ h("span", { class: "list-item__graphic" }, h("input", { type: "checkbox", style: trickForMDC }), h(FCheckbox, { checked: checkedAttr })),
917
895
  imageTag,
918
- h("label", { class: "list-item__text", htmlFor: this.rootElement.id + '_' + index },
919
- primaryTextTag,
920
- secTextTag),
896
+ h("label", { class: "list-item__text", htmlFor: this.rootElement.id + '_' + index }, primaryTextTag, secTextTag),
921
897
  ];
922
898
  }
923
899
  const vNodes = [];
@@ -937,14 +913,12 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
937
913
  e.stopPropagation();
938
914
  this.onKupClick(index);
939
915
  }
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));
916
+ : () => this.onKupClick(index) }, innerSpanTag, nestedList
917
+ ? [
918
+ h(FImage, { resource: "chevron-right", sizeX: "1.5em", sizeY: "1.5em", wrapperClass: "list-item__expand-icon" }),
919
+ nestedList,
920
+ ]
921
+ : null));
948
922
  return vNodes;
949
923
  }, _KupList_getIconTag = function _KupList_getIconTag(icon) {
950
924
  const large = this.rootElement.classList.contains('kup-large');