@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.
- package/README.md +7 -1
- package/dist/cjs/{f-button-a531feb2.js → f-button-229c63fd.js} +2 -2
- package/dist/cjs/{f-cell-75cb7933.js → f-cell-dd006395.js} +22 -22
- package/dist/cjs/{f-checkbox-cd977193.js → f-checkbox-1097ca5d.js} +1 -1
- package/dist/cjs/{f-chip-9508a2e4.js → f-chip-f2c369fd.js} +3 -3
- package/dist/cjs/{f-image-c21cc616.js → f-image-847a6ddf.js} +2 -2
- package/dist/cjs/{f-paginator-utils-2b72d7e8.js → f-paginator-utils-cedc4b3e.js} +3 -3
- package/dist/cjs/{f-text-field-a5b2bd0e.js → f-text-field-fe85187d.js} +2 -2
- package/dist/cjs/{index-31125378.js → index-ffdb46f6.js} +423 -252
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +7 -30
- package/dist/cjs/{kup-autocomplete_25.cjs.entry.js → kup-autocomplete_26.cjs.entry.js} +3925 -4288
- package/dist/cjs/kup-box.cjs.entry.js +33 -113
- package/dist/cjs/kup-calendar.cjs.entry.js +10 -34
- package/dist/cjs/kup-cell.cjs.entry.js +10 -29
- package/dist/cjs/kup-dash-list.cjs.entry.js +10 -9
- package/dist/cjs/kup-dash_2.cjs.entry.js +7 -35
- package/dist/cjs/kup-dashboard.cjs.entry.js +10 -32
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -19
- package/dist/cjs/kup-echart.cjs.entry.js +16 -77
- package/dist/cjs/kup-family-tree.cjs.entry.js +12 -48
- package/dist/cjs/kup-iframe.cjs.entry.js +5 -17
- package/dist/cjs/kup-image-list.cjs.entry.js +16 -34
- package/dist/cjs/kup-lazy.cjs.entry.js +10 -37
- package/dist/cjs/kup-magic-box.cjs.entry.js +6 -25
- package/dist/cjs/{kup-manager-8e67afec.js → kup-manager-c53468cd.js} +82 -7
- package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -16
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +14 -57
- package/dist/cjs/kup-photo-frame.cjs.entry.js +9 -31
- package/dist/cjs/kup-probe.cjs.entry.js +13 -33
- package/dist/cjs/kup-qlik.cjs.entry.js +6 -60
- package/dist/cjs/kup-snackbar.cjs.entry.js +7 -38
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/assets/box.js +9 -6
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/kup-accordion/kup-accordion.js +243 -261
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +560 -594
- package/dist/collection/components/kup-badge/kup-badge.js +179 -189
- package/dist/collection/components/kup-box/kup-box.js +911 -1010
- package/dist/collection/components/kup-button/kup-button.js +382 -428
- package/dist/collection/components/kup-button-list/kup-button-list.js +254 -278
- package/dist/collection/components/kup-calendar/kup-calendar.js +306 -329
- package/dist/collection/components/kup-card/box/kup-card-box.js +10 -24
- package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +10 -2
- package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +14 -28
- package/dist/collection/components/kup-card/built-in/kup-card-clock.js +6 -19
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
- package/dist/collection/components/kup-card/built-in/kup-card-form.js +11 -0
- package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +9 -44
- package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +2 -21
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +6 -33
- package/dist/collection/components/kup-card/kup-card-helper.js +3 -8
- package/dist/collection/components/kup-card/kup-card.css +118 -12
- package/dist/collection/components/kup-card/kup-card.js +394 -385
- package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +68 -81
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +98 -278
- package/dist/collection/components/kup-cell/kup-cell.js +224 -238
- package/dist/collection/components/kup-chart/kup-chart.js +562 -586
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +278 -304
- package/dist/collection/components/kup-chip/kup-chip.js +243 -250
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +278 -299
- package/dist/collection/components/kup-combobox/kup-combobox.js +467 -482
- package/dist/collection/components/kup-dash/kup-dash.js +112 -172
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +218 -220
- package/dist/collection/components/kup-dashboard/kup-dashboard.js +200 -229
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +2 -0
- package/dist/collection/components/kup-data-table/kup-data-table.css +9 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +4700 -4452
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +415 -429
- package/dist/collection/components/kup-drawer/kup-drawer.js +246 -253
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +486 -527
- package/dist/collection/components/kup-echart/kup-echart.js +450 -498
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +416 -465
- package/dist/collection/components/kup-form/kup-form.js +226 -248
- package/dist/collection/components/kup-gauge/kup-gauge.js +460 -521
- package/dist/collection/components/kup-grid/kup-grid.js +159 -172
- package/dist/collection/components/kup-iframe/kup-iframe.js +184 -188
- package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +9 -3
- package/dist/collection/components/kup-image/kup-image.js +305 -340
- package/dist/collection/components/kup-image-list/kup-image-list.js +300 -311
- package/dist/collection/components/kup-lazy/kup-lazy.js +261 -288
- package/dist/collection/components/kup-list/kup-list.js +546 -572
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +148 -167
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +192 -198
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +501 -532
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +261 -271
- package/dist/collection/components/kup-probe/kup-probe.js +98 -114
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +240 -276
- package/dist/collection/components/kup-qlik/kup-qlik.js +182 -228
- package/dist/collection/components/kup-radio/kup-radio.js +261 -289
- package/dist/collection/components/kup-rating/kup-rating.js +212 -224
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +252 -280
- package/dist/collection/components/kup-spinner/kup-spinner.js +277 -308
- package/dist/collection/components/kup-switch/kup-switch.js +258 -280
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +268 -247
- package/dist/collection/components/kup-text-field/kup-text-field.js +816 -920
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +472 -493
- package/dist/collection/components/kup-tree/kup-tree-faker.js +3 -2
- package/dist/collection/components/kup-tree/kup-tree.js +1107 -1205
- package/dist/collection/f-components/f-button/f-button.js +11 -20
- package/dist/collection/f-components/f-cell/f-cell.js +20 -22
- package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -9
- package/dist/collection/f-components/f-chip/f-chip.js +18 -31
- package/dist/collection/f-components/f-image/f-image.js +1 -3
- package/dist/collection/f-components/f-paginator/f-paginator.js +1 -6
- package/dist/collection/f-components/f-switch/f-switch.js +1 -8
- package/dist/collection/f-components/f-text-field/f-text-field.js +18 -40
- package/dist/collection/managers/kup-debug/kup-debug.js +10 -5
- package/dist/collection/managers/kup-language/kup-language-declarations.js +6 -0
- package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +25 -10
- package/dist/collection/managers/kup-toolbar/kup-toolbar.js +10 -5
- package/dist/collection/managers/kup-tooltip/kup-tooltip.js +10 -5
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +0 -21
- package/dist/esm/{f-button-15719ec1.js → f-button-d1aba968.js} +2 -2
- package/dist/esm/{f-cell-692c37bf.js → f-cell-646406bb.js} +22 -22
- package/dist/esm/{f-checkbox-e06cf07b.js → f-checkbox-b721178e.js} +1 -1
- package/dist/esm/{f-chip-abab04bf.js → f-chip-d94e9e81.js} +3 -3
- package/dist/esm/{f-image-98783644.js → f-image-57c88302.js} +2 -2
- package/dist/esm/{f-paginator-utils-d12ee737.js → f-paginator-utils-2c865e9a.js} +3 -3
- package/dist/esm/{f-text-field-282025dd.js → f-text-field-b0a1fea6.js} +2 -2
- package/dist/esm/{index-e41330a5.js → index-a2197376.js} +423 -252
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +7 -30
- package/dist/esm/{kup-autocomplete_25.entry.js → kup-autocomplete_26.entry.js} +3925 -4289
- package/dist/esm/kup-box.entry.js +33 -113
- package/dist/esm/kup-calendar.entry.js +10 -34
- package/dist/esm/kup-cell.entry.js +10 -29
- package/dist/esm/kup-dash-list.entry.js +10 -9
- package/dist/esm/kup-dash_2.entry.js +7 -35
- package/dist/esm/kup-dashboard.entry.js +10 -32
- package/dist/esm/kup-drawer.entry.js +4 -19
- package/dist/esm/kup-echart.entry.js +16 -77
- package/dist/esm/kup-family-tree.entry.js +12 -48
- package/dist/esm/kup-iframe.entry.js +5 -17
- package/dist/esm/kup-image-list.entry.js +16 -34
- package/dist/esm/kup-lazy.entry.js +10 -37
- package/dist/esm/kup-magic-box.entry.js +6 -25
- package/dist/esm/{kup-manager-abbae73e.js → kup-manager-c0fbb180.js} +83 -8
- package/dist/esm/kup-nav-bar.entry.js +4 -16
- package/dist/esm/kup-numeric-picker.entry.js +14 -57
- package/dist/esm/kup-photo-frame.entry.js +9 -31
- package/dist/esm/kup-probe.entry.js +13 -33
- package/dist/esm/kup-qlik.entry.js +6 -60
- package/dist/esm/kup-snackbar.entry.js +7 -38
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-eeadd688.entry.js → p-1914969e.entry.js} +1 -1
- package/dist/ketchup/{p-5552f156.js → p-23cd5a68.js} +1 -1
- package/dist/ketchup/{p-a4a30e0e.entry.js → p-250118e3.entry.js} +1 -1
- package/dist/ketchup/{p-ccef2553.entry.js → p-30766296.entry.js} +1 -1
- package/dist/ketchup/{p-5933aa02.entry.js → p-351cecba.entry.js} +1 -1
- package/dist/ketchup/p-35e16ea2.entry.js +1 -0
- package/dist/ketchup/{p-e6ebdb80.js → p-395675b8.js} +1 -1
- package/dist/ketchup/p-3cf97e3a.js +1 -0
- package/dist/ketchup/p-4fdb684f.js +2 -0
- package/dist/ketchup/{p-9419919c.entry.js → p-596bdc10.entry.js} +1 -1
- package/dist/ketchup/{p-6f3040fb.js → p-61ff1761.js} +1 -1
- package/dist/ketchup/p-72d4fa26.entry.js +1 -0
- package/dist/ketchup/{p-fd930a34.entry.js → p-738685f9.entry.js} +1 -1
- package/dist/ketchup/{p-f6409c42.entry.js → p-7c8c5444.entry.js} +1 -1
- package/dist/ketchup/p-86154e2b.js +1 -0
- package/dist/ketchup/{p-7e16265d.entry.js → p-9214ef33.entry.js} +1 -1
- package/dist/ketchup/{p-62f3ec78.entry.js → p-980ed953.entry.js} +1 -1
- package/dist/ketchup/p-991bd70d.entry.js +1 -0
- package/dist/ketchup/{p-7d37ea62.entry.js → p-a1fe329f.entry.js} +1 -1
- package/dist/ketchup/p-a740352c.js +30 -0
- package/dist/ketchup/{p-62421bcf.js → p-a992cf87.js} +1 -1
- package/dist/ketchup/{p-3760a159.entry.js → p-b1da1ba7.entry.js} +2 -2
- package/dist/ketchup/{p-5ea2a1ff.entry.js → p-cee3635a.entry.js} +1 -1
- package/dist/ketchup/p-d05ed931.entry.js +9 -0
- package/dist/ketchup/{p-a450d60a.entry.js → p-d422151a.entry.js} +2 -2
- package/dist/ketchup/p-e6f19333.entry.js +1 -0
- package/dist/ketchup/{p-1ef5d16d.entry.js → p-eb10958a.entry.js} +1 -1
- package/dist/ketchup/{p-20221a50.js → p-ecac6269.js} +1 -1
- package/dist/ketchup/p-f43b445e.entry.js +1 -0
- package/dist/ketchup/{p-725c6268.entry.js → p-fa37e92e.entry.js} +1 -1
- package/dist/loader/package.json +1 -0
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -0
- package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +7 -2
- package/dist/types/components/kup-card/built-in/kup-card-form.d.ts +3 -0
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +11 -1
- package/dist/types/components/kup-card/kup-card.d.ts +5 -0
- package/dist/types/components/kup-card/scalable/kup-card-scalable.d.ts +6 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +9 -0
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +54 -201
- package/dist/types/components/kup-list/kup-list.d.ts +5 -0
- package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +5 -0
- package/dist/types/components/kup-tree/kup-tree.d.ts +0 -1
- package/dist/types/components.d.ts +78 -2
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +7 -1
- package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +1 -0
- package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +2 -1
- package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +20 -4
- package/package.json +2 -2
- package/CHANGELOG.md +0 -5
- package/dist/cjs/kup-form.cjs.entry.js +0 -486
- package/dist/esm/kup-form.entry.js +0 -482
- package/dist/ketchup/p-1d2dea0a.entry.js +0 -1
- package/dist/ketchup/p-27538d6f.entry.js +0 -1
- package/dist/ketchup/p-29d72040.entry.js +0 -1
- package/dist/ketchup/p-3e74e1ed.js +0 -1
- package/dist/ketchup/p-680a8cb4.entry.js +0 -9
- package/dist/ketchup/p-6946b614.entry.js +0 -1
- package/dist/ketchup/p-b0b3989b.js +0 -2
- package/dist/ketchup/p-c05f2638.js +0 -30
- package/dist/ketchup/p-d7a92197.entry.js +0 -1
- package/dist/ketchup/p-d8af7ba6.entry.js +0 -1
- 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)
|
|
3
|
-
|
|
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")
|
|
8
|
-
|
|
9
|
-
if (
|
|
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 {
|
|
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
|
-
/*
|
|
31
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
27
32
|
/*-------------------------------------------------*/
|
|
28
33
|
/**
|
|
29
|
-
*
|
|
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
|
-
|
|
296
|
-
|
|
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() {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
"
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
"
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
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
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
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
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
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
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
static get states() {
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
"
|
|
594
|
-
"
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
"
|
|
600
|
-
"
|
|
601
|
-
|
|
602
|
-
|
|
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
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
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
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
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() {
|
|
648
|
-
|
|
649
|
-
"
|
|
650
|
-
"
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
"
|
|
654
|
-
"
|
|
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
|
-
"
|
|
657
|
-
"location": "import",
|
|
658
|
-
"path": "./kup-list-declarations"
|
|
659
|
-
}
|
|
621
|
+
"return": "Promise<void>"
|
|
660
622
|
},
|
|
661
|
-
"
|
|
623
|
+
"docs": {
|
|
624
|
+
"text": "Focuses the next element of the list.",
|
|
625
|
+
"tags": []
|
|
626
|
+
}
|
|
662
627
|
},
|
|
663
|
-
"
|
|
664
|
-
"
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
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
|
-
"
|
|
677
|
-
"location": "import",
|
|
678
|
-
"path": "./kup-list-declarations"
|
|
679
|
-
}
|
|
641
|
+
"return": "Promise<void>"
|
|
680
642
|
},
|
|
681
|
-
"
|
|
643
|
+
"docs": {
|
|
644
|
+
"text": "Focuses the previous element of the list.",
|
|
645
|
+
"tags": []
|
|
646
|
+
}
|
|
682
647
|
},
|
|
683
|
-
"
|
|
684
|
-
"
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
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
|
-
"
|
|
703
|
-
"location": "import",
|
|
704
|
-
"path": "../../types/GenericTypes"
|
|
705
|
-
}
|
|
667
|
+
"return": "Promise<GenericObject>"
|
|
706
668
|
},
|
|
707
|
-
"
|
|
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
|
-
"
|
|
710
|
-
"
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
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
|
-
"
|
|
695
|
+
"docs": {
|
|
696
|
+
"text": "Returns the selected node.",
|
|
697
|
+
"tags": [{
|
|
698
|
+
"name": "returns",
|
|
699
|
+
"text": "Selected node."
|
|
700
|
+
}]
|
|
701
|
+
}
|
|
730
702
|
},
|
|
731
|
-
"
|
|
732
|
-
"
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
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
|
-
"
|
|
714
|
+
"docs": {
|
|
715
|
+
"text": "This method is used to trigger a new render of the component.",
|
|
716
|
+
"tags": []
|
|
717
|
+
}
|
|
752
718
|
},
|
|
753
|
-
"
|
|
754
|
-
"
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
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
|
-
"
|
|
776
|
-
"location": "import",
|
|
777
|
-
"path": "../../types/GenericTypes"
|
|
778
|
-
}
|
|
734
|
+
"return": "Promise<void>"
|
|
779
735
|
},
|
|
780
|
-
"
|
|
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
|
-
"
|
|
783
|
-
"
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
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() {
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
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
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
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');
|