@sme.up/ketchup 11.0.0-SNAPSHOT-20250108163941 → 11.0.0-SNAPSHOT-20250108175708
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/dist/cjs/kup-autocomplete_28.cjs.entry.js +67 -52
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +13 -15
- package/dist/collection/components/kup-combobox/kup-combobox.js +10 -15
- package/dist/collection/components/kup-image/assets/svg/logout.svg +1 -0
- package/dist/collection/components/kup-list/kup-list-helper.js +17 -15
- package/dist/collection/components/kup-list/kup-list.js +26 -6
- package/dist/components/kup-accordion.js +1 -1
- package/dist/components/kup-activity-timeline.js +1 -1
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +1 -1
- package/dist/components/kup-card-list.js +2 -2
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +1 -1
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dashboard.js +1 -1
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +1 -1
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-family-tree.js +2 -2
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-htm.js +1 -1
- package/dist/components/kup-iframe.js +1 -1
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +2 -2
- package/dist/components/kup-lazy.js +1 -1
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +3 -3
- package/dist/components/kup-nav-bar.js +1 -1
- package/dist/components/kup-numeric-picker.js +1 -1
- package/dist/components/kup-object-field.js +1 -1
- package/dist/components/kup-pdf.js +1 -1
- package/dist/components/kup-photo-frame.js +1 -1
- package/dist/components/kup-planner.js +1 -1
- package/dist/components/kup-probe.js +1 -1
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +1 -1
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +1 -1
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +1 -1
- package/dist/components/kup-typography-list.js +1 -1
- package/dist/components/kup-typography.js +1 -1
- package/dist/components/{p-0e384530.js → p-1194de8e.js} +1 -1
- package/dist/components/{p-87432d08.js → p-12f8e447.js} +1 -1
- package/dist/components/{p-94fc3c00.js → p-32590bb9.js} +1 -1
- package/dist/components/{p-f1ee3ada.js → p-416c7cc3.js} +66 -51
- package/dist/components/{p-24075bd0.js → p-b5a63eb3.js} +1 -1
- package/dist/esm/kup-autocomplete_28.entry.js +67 -52
- package/dist/ketchup/assets/svg/logout.svg +1 -0
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-c5130e83.entry.js +9 -0
- package/package.json +1 -1
- package/dist/ketchup/p-41830b0d.entry.js +0 -9
|
@@ -41,24 +41,26 @@ var KupAutocompleteProps;
|
|
|
41
41
|
})(KupAutocompleteProps || (KupAutocompleteProps = {}));
|
|
42
42
|
|
|
43
43
|
function getIdOfItemByDisplayMode(item, mode, separator) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
if (mode == kupManager$1.ItemsDisplayMode.DESCRIPTION) {
|
|
48
|
-
return item.value;
|
|
44
|
+
const { id, value } = item;
|
|
45
|
+
if (!id && value) {
|
|
46
|
+
return value;
|
|
49
47
|
}
|
|
50
|
-
if (
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
if (id && !value) {
|
|
49
|
+
return id;
|
|
50
|
+
}
|
|
51
|
+
switch (mode) {
|
|
52
|
+
case kupManager$1.ItemsDisplayMode.CODE:
|
|
53
|
+
return id;
|
|
54
|
+
case kupManager$1.ItemsDisplayMode.DESCRIPTION:
|
|
55
|
+
return value;
|
|
56
|
+
case kupManager$1.ItemsDisplayMode.CODE_AND_DESC:
|
|
57
|
+
case kupManager$1.ItemsDisplayMode.CODE_AND_DESC_ALIAS:
|
|
58
|
+
return id && value ? id + separator + value : id || value;
|
|
59
|
+
case kupManager$1.ItemsDisplayMode.DESC_AND_CODE:
|
|
60
|
+
return value && id ? value + separator + id : value || id;
|
|
61
|
+
default:
|
|
62
|
+
return id;
|
|
55
63
|
}
|
|
56
|
-
if (mode == kupManager$1.ItemsDisplayMode.DESC_AND_CODE) {
|
|
57
|
-
if (item.id || item.value) {
|
|
58
|
-
return item.value + separator + item.id;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return item.id;
|
|
62
64
|
}
|
|
63
65
|
function consistencyCheck(idIn, listData, listEl, selectMode, displayMode, e) {
|
|
64
66
|
const validList = !!(listEl && listData && listData['data']);
|
|
@@ -260,6 +262,7 @@ const KupAutocomplete = class {
|
|
|
260
262
|
node: ret.node,
|
|
261
263
|
});
|
|
262
264
|
}
|
|
265
|
+
__classPrivateFieldGet$9(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
|
|
263
266
|
}
|
|
264
267
|
onKupClick() {
|
|
265
268
|
this.kupClick.emit({
|
|
@@ -480,7 +483,7 @@ const KupAutocomplete = class {
|
|
|
480
483
|
};
|
|
481
484
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
482
485
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
483
|
-
return (index.h(index.Host, { key: '
|
|
486
|
+
return (index.h(index.Host, { key: '9b562dbefd3dcd6546313faa526d3f6df441de58', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$9(this, _KupAutocomplete_elStyle, "f") }, index.h("style", { key: '2399f62d076091ec5b534ab9323a8a7a555e13f5' }, __classPrivateFieldGet$9(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: 'c48befc1b4be5ac9563e980076015d71342ce713', id: GenericVariables.componentWrapperId, style: __classPrivateFieldGet$9(this, _KupAutocomplete_elStyle, "f") }, index.h(fTextField.FTextField, Object.assign({ key: '520b3098ecee40da9c4e9b3b3781d3453d0c907c' }, props, { icon: this.showDropDownIcon
|
|
484
487
|
? kupManager$1.KupThemeIconValues.SEARCH
|
|
485
488
|
: null, trailingIcon: true }, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => {
|
|
486
489
|
window.clearTimeout(__classPrivateFieldGet$9(this, _KupAutocomplete_inputTimeout, "f"));
|
|
@@ -535,24 +538,21 @@ _KupAutocomplete_doConsistencyCheck = new WeakMap(), _KupAutocomplete_elStyle =
|
|
|
535
538
|
__classPrivateFieldGet$9(this, _KupAutocomplete_kupManager, "f").removeClickCallback(__classPrivateFieldGet$9(this, _KupAutocomplete_clickCb, "f"));
|
|
536
539
|
}, _KupAutocomplete_isListOpened = function _KupAutocomplete_isListOpened() {
|
|
537
540
|
return __classPrivateFieldGet$9(this, _KupAutocomplete_listEl, "f").menuVisible == true;
|
|
538
|
-
}, _KupAutocomplete_consistencyCheck = function _KupAutocomplete_consistencyCheck(idIn, idInDecode,
|
|
541
|
+
}, _KupAutocomplete_consistencyCheck = function _KupAutocomplete_consistencyCheck(idIn, idInDecode, eventShouldSetValue) {
|
|
539
542
|
if (!__classPrivateFieldGet$9(this, _KupAutocomplete_doConsistencyCheck, "f")) {
|
|
540
543
|
return;
|
|
541
544
|
}
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
if (setValue) {
|
|
546
|
-
this.value = ret.value;
|
|
547
|
-
this.displayedValue = ret.displayedValue;
|
|
548
|
-
}
|
|
549
|
-
if (__classPrivateFieldGet$9(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
|
|
550
|
-
__classPrivateFieldGet$9(this, _KupAutocomplete_listEl, "f").filter = ret.value;
|
|
551
|
-
}
|
|
545
|
+
if (idIn && idInDecode) {
|
|
546
|
+
this.displayedValue = this.displayedValue =
|
|
547
|
+
getIdOfItemByDisplayMode({ id: idIn, value: idInDecode }, this.displayMode, ' - ');
|
|
552
548
|
}
|
|
553
549
|
else {
|
|
554
|
-
|
|
555
|
-
|
|
550
|
+
__classPrivateFieldSet$5(this, _KupAutocomplete_doConsistencyCheck, false, "f");
|
|
551
|
+
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$9(this, _KupAutocomplete_listEl, "f"), this.selectMode, this.displayMode);
|
|
552
|
+
if ((ret.exists || this.allowInconsistentValues) &&
|
|
553
|
+
eventShouldSetValue) {
|
|
554
|
+
this.value = ret.value;
|
|
555
|
+
this.displayedValue = ret.displayedValue;
|
|
556
556
|
}
|
|
557
557
|
else {
|
|
558
558
|
this.displayedValue = idIn;
|
|
@@ -560,8 +560,8 @@ _KupAutocomplete_doConsistencyCheck = new WeakMap(), _KupAutocomplete_elStyle =
|
|
|
560
560
|
if (__classPrivateFieldGet$9(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
|
|
561
561
|
__classPrivateFieldGet$9(this, _KupAutocomplete_listEl, "f").filter = ret.value;
|
|
562
562
|
}
|
|
563
|
+
return ret;
|
|
563
564
|
}
|
|
564
|
-
return ret;
|
|
565
565
|
}, _KupAutocomplete_prepList = function _KupAutocomplete_prepList() {
|
|
566
566
|
return (index.h("kup-list", Object.assign({ displayMode: this.displayMode }, this.data['kup-list'], { isMenu: true, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet$5(this, _KupAutocomplete_listEl, el, "f")) })));
|
|
567
567
|
};
|
|
@@ -7500,6 +7500,7 @@ const KupCombobox = class {
|
|
|
7500
7500
|
inputValue: __classPrivateFieldGet$7(this, _KupCombobox_textfieldEl, "f").value,
|
|
7501
7501
|
node: ret.node,
|
|
7502
7502
|
});
|
|
7503
|
+
__classPrivateFieldGet$7(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
|
|
7503
7504
|
}
|
|
7504
7505
|
onKupClick() {
|
|
7505
7506
|
this.onKupIconClick();
|
|
@@ -7716,7 +7717,7 @@ const KupCombobox = class {
|
|
|
7716
7717
|
};
|
|
7717
7718
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
7718
7719
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
7719
|
-
return (index.h(index.Host, { key: '
|
|
7720
|
+
return (index.h(index.Host, { key: '80c4c6a95530fc9886496318a1671f13d49815d9', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$7(this, _KupCombobox_elStyle, "f") }, index.h("style", { key: 'e393281cd26940e3c00fa26e5df5ccd82a560471' }, __classPrivateFieldGet$7(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '73e48d76e96587a78c09dc4e5064f1fcc2b2be11', id: GenericVariables.componentWrapperId, style: __classPrivateFieldGet$7(this, _KupCombobox_elStyle, "f") }, index.h(fTextField.FTextField, Object.assign({ key: 'b691de937b991985d7045009e371885fc9c6f7f9' }, props, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, trailingIcon: true, icon: this.showDropDownIcon
|
|
7720
7721
|
? kupManager$1.KupThemeIconValues.DROPDOWN
|
|
7721
7722
|
: null, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupIconClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => this.onKupInput(), onIconClick: () => this.onKupIconClick() }))), __classPrivateFieldGet$7(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)));
|
|
7722
7723
|
}
|
|
@@ -7771,21 +7772,15 @@ _KupCombobox_kupManager = new WeakMap(), _KupCombobox_elStyle = new WeakMap(), _
|
|
|
7771
7772
|
__classPrivateFieldGet$7(this, _KupCombobox_kupManager, "f").removeClickCallback(__classPrivateFieldGet$7(this, _KupCombobox_clickCb, "f"));
|
|
7772
7773
|
}, _KupCombobox_isListOpened = function _KupCombobox_isListOpened() {
|
|
7773
7774
|
return __classPrivateFieldGet$7(this, _KupCombobox_listEl, "f").menuVisible == true;
|
|
7774
|
-
}, _KupCombobox_consistencyCheck = function _KupCombobox_consistencyCheck(idIn, idInDecode,
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
if (setValue) {
|
|
7778
|
-
this.value = ret.value;
|
|
7779
|
-
this.displayedValue = ret.displayedValue;
|
|
7780
|
-
}
|
|
7781
|
-
if (__classPrivateFieldGet$7(this, _KupCombobox_listEl, "f") != null) {
|
|
7782
|
-
__classPrivateFieldGet$7(this, _KupCombobox_listEl, "f").filter = ret.value;
|
|
7783
|
-
}
|
|
7775
|
+
}, _KupCombobox_consistencyCheck = function _KupCombobox_consistencyCheck(idIn, idInDecode, eventShouldSetValue) {
|
|
7776
|
+
if (idIn && idInDecode) {
|
|
7777
|
+
this.displayedValue = getIdOfItemByDisplayMode({ id: idIn, value: idInDecode }, this.displayMode, ' - ');
|
|
7784
7778
|
}
|
|
7785
7779
|
else {
|
|
7786
|
-
this.
|
|
7787
|
-
if (
|
|
7788
|
-
this.
|
|
7780
|
+
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$7(this, _KupCombobox_listEl, "f"), this.selectMode, this.displayMode);
|
|
7781
|
+
if (ret.exists && eventShouldSetValue) {
|
|
7782
|
+
this.value = ret.value;
|
|
7783
|
+
this.displayedValue = ret.displayedValue;
|
|
7789
7784
|
}
|
|
7790
7785
|
else {
|
|
7791
7786
|
this.displayedValue = idIn;
|
|
@@ -7793,8 +7788,8 @@ _KupCombobox_kupManager = new WeakMap(), _KupCombobox_elStyle = new WeakMap(), _
|
|
|
7793
7788
|
if (__classPrivateFieldGet$7(this, _KupCombobox_listEl, "f") != null) {
|
|
7794
7789
|
__classPrivateFieldGet$7(this, _KupCombobox_listEl, "f").filter = ret.value;
|
|
7795
7790
|
}
|
|
7791
|
+
return ret;
|
|
7796
7792
|
}
|
|
7797
|
-
return ret;
|
|
7798
7793
|
}, _KupCombobox_prepList = function _KupCombobox_prepList() {
|
|
7799
7794
|
var _a, _b;
|
|
7800
7795
|
return (index.h("kup-list", Object.assign({}, this.data['kup-list'], { displayMode: this.displayMode, "is-menu": true, showFilter: ((_b = (_a = this.data['kup-list']) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.length) >= 10 ? true : false, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet$4(this, _KupCombobox_listEl, el, "f")) })));
|
|
@@ -15462,7 +15457,7 @@ var __classPrivateFieldSet$1 = (undefined && undefined.__classPrivateFieldSet) |
|
|
|
15462
15457
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15463
15458
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
15464
15459
|
};
|
|
15465
|
-
var _KupList_instances, _KupList_kupManager, _KupList_globalFilterTimeout, _KupList_radios, _KupList_listItems, _KupList_handleSelection, _KupList_isNested, _KupList_renderListItem, _KupList_getIconTag, _KupList_isMultiSelection, _KupList_isCheckBoxRule, _KupList_isRadioButtonRule, _KupList_isListBoxRule, _KupList_checkRoleType, _KupList_itemCompliant, _KupList_createFilterComponent, _KupList_listenKeydown;
|
|
15460
|
+
var _KupList_instances, _KupList_kupManager, _KupList_globalFilterTimeout, _KupList_radios, _KupList_listItems, _KupList_previouslySelectedItemIndex, _KupList_previouslySelectedItemReached, _KupList_handleSelection, _KupList_isNested, _KupList_renderListItem, _KupList_getIconTag, _KupList_isMultiSelection, _KupList_isCheckBoxRule, _KupList_isRadioButtonRule, _KupList_isListBoxRule, _KupList_checkRoleType, _KupList_itemCompliant, _KupList_createFilterComponent, _KupList_listenKeydown;
|
|
15466
15461
|
const KupList = class {
|
|
15467
15462
|
constructor(hostRef) {
|
|
15468
15463
|
index.registerInstance(this, hostRef);
|
|
@@ -15480,8 +15475,10 @@ const KupList = class {
|
|
|
15480
15475
|
_KupList_globalFilterTimeout.set(this, void 0);
|
|
15481
15476
|
_KupList_radios.set(this, []);
|
|
15482
15477
|
_KupList_listItems.set(this, []);
|
|
15478
|
+
_KupList_previouslySelectedItemIndex.set(this, void 0);
|
|
15479
|
+
_KupList_previouslySelectedItemReached.set(this, void 0);
|
|
15483
15480
|
_KupList_listenKeydown.set(this, (e) => {
|
|
15484
|
-
if (this.keyboardNavigation) {
|
|
15481
|
+
if (this.keyboardNavigation && __classPrivateFieldGet$4(this, _KupList_listItems, "f")) {
|
|
15485
15482
|
switch (e.key) {
|
|
15486
15483
|
case 'ArrowDown':
|
|
15487
15484
|
e.preventDefault();
|
|
@@ -15557,7 +15554,15 @@ const KupList = class {
|
|
|
15557
15554
|
if (this.focused > __classPrivateFieldGet$4(this, _KupList_listItems, "f").length - 1) {
|
|
15558
15555
|
this.focused = 0;
|
|
15559
15556
|
}
|
|
15560
|
-
__classPrivateFieldGet$4(this,
|
|
15557
|
+
if (!__classPrivateFieldGet$4(this, _KupList_previouslySelectedItemReached, "f") &&
|
|
15558
|
+
__classPrivateFieldGet$4(this, _KupList_listItems, "f")[__classPrivateFieldGet$4(this, _KupList_previouslySelectedItemIndex, "f")]) {
|
|
15559
|
+
__classPrivateFieldSet$1(this, _KupList_previouslySelectedItemReached, true, "f");
|
|
15560
|
+
this.focused = __classPrivateFieldGet$4(this, _KupList_previouslySelectedItemIndex, "f");
|
|
15561
|
+
__classPrivateFieldGet$4(this, _KupList_listItems, "f")[__classPrivateFieldGet$4(this, _KupList_previouslySelectedItemIndex, "f")].focus();
|
|
15562
|
+
}
|
|
15563
|
+
else if (__classPrivateFieldGet$4(this, _KupList_listItems, "f")[this.focused]) {
|
|
15564
|
+
__classPrivateFieldGet$4(this, _KupList_listItems, "f")[this.focused].focus();
|
|
15565
|
+
}
|
|
15561
15566
|
}
|
|
15562
15567
|
}
|
|
15563
15568
|
/**
|
|
@@ -15582,7 +15587,15 @@ const KupList = class {
|
|
|
15582
15587
|
if (this.focused < 0) {
|
|
15583
15588
|
this.focused = __classPrivateFieldGet$4(this, _KupList_listItems, "f").length - 1;
|
|
15584
15589
|
}
|
|
15585
|
-
__classPrivateFieldGet$4(this,
|
|
15590
|
+
if (!__classPrivateFieldGet$4(this, _KupList_previouslySelectedItemReached, "f") &&
|
|
15591
|
+
__classPrivateFieldGet$4(this, _KupList_listItems, "f")[__classPrivateFieldGet$4(this, _KupList_previouslySelectedItemIndex, "f")]) {
|
|
15592
|
+
__classPrivateFieldSet$1(this, _KupList_previouslySelectedItemReached, true, "f");
|
|
15593
|
+
this.focused = __classPrivateFieldGet$4(this, _KupList_previouslySelectedItemIndex, "f");
|
|
15594
|
+
__classPrivateFieldGet$4(this, _KupList_listItems, "f")[__classPrivateFieldGet$4(this, _KupList_previouslySelectedItemIndex, "f")].focus();
|
|
15595
|
+
}
|
|
15596
|
+
else if (__classPrivateFieldGet$4(this, _KupList_listItems, "f")[this.focused]) {
|
|
15597
|
+
__classPrivateFieldGet$4(this, _KupList_listItems, "f")[this.focused].focus();
|
|
15598
|
+
}
|
|
15586
15599
|
}
|
|
15587
15600
|
}
|
|
15588
15601
|
/**
|
|
@@ -15698,7 +15711,7 @@ const KupList = class {
|
|
|
15698
15711
|
}
|
|
15699
15712
|
__classPrivateFieldSet$1(this, _KupList_radios, [], "f");
|
|
15700
15713
|
let index$1 = 0;
|
|
15701
|
-
return (index.h(index.Host, { key: '
|
|
15714
|
+
return (index.h(index.Host, { key: 'f1606c18dcfa35ad02c3c7941d0065eff6c384f7' }, index.h("style", { key: '7e1103041cd402bd2f8d3adef4bbdf2ffb9a1eb7' }, __classPrivateFieldGet$4(this, _KupList_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '0bcaa0498b13c789f3c8d8e62f28c646a6de65be', id: "kup-component", class: wrapperClass, onKeyDown: __classPrivateFieldGet$4(this, _KupList_listenKeydown, "f") }, this.showFilter ? (index.h("div", { class: filterClass }, __classPrivateFieldGet$4(this, _KupList_instances, "m", _KupList_createFilterComponent).call(this))) : null, index.h("div", { key: '062bca5c883a1f5627760985a7e687c9bbb48ed3', class: listScrollClass }, index.h("ul", { key: '889d0076b199ae805fa9b3dae51c70734efbe0f4', class: componentClass, role: roleAttr, "aria-multiselectable": ariaMultiSelectable }, this.data
|
|
15702
15715
|
.filter((item) => __classPrivateFieldGet$4(this, _KupList_instances, "m", _KupList_itemCompliant).call(this, item))
|
|
15703
15716
|
.map((item) => __classPrivateFieldGet$4(this, _KupList_instances, "m", _KupList_renderListItem).call(this, item, index$1++)))))));
|
|
15704
15717
|
}
|
|
@@ -15707,7 +15720,7 @@ const KupList = class {
|
|
|
15707
15720
|
}
|
|
15708
15721
|
get rootElement() { return index.getElement(this); }
|
|
15709
15722
|
};
|
|
15710
|
-
_KupList_kupManager = new WeakMap(), _KupList_globalFilterTimeout = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_listItems = new WeakMap(), _KupList_listenKeydown = new WeakMap(), _KupList_instances = new WeakSet(), _KupList_handleSelection = function _KupList_handleSelection(index) {
|
|
15723
|
+
_KupList_kupManager = new WeakMap(), _KupList_globalFilterTimeout = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_listItems = new WeakMap(), _KupList_previouslySelectedItemIndex = new WeakMap(), _KupList_previouslySelectedItemReached = new WeakMap(), _KupList_listenKeydown = new WeakMap(), _KupList_instances = new WeakSet(), _KupList_handleSelection = function _KupList_handleSelection(index) {
|
|
15711
15724
|
if (index !== null && index !== undefined && !isNaN(index)) {
|
|
15712
15725
|
const listItems = this.rootElement.shadowRoot.querySelectorAll('.list-item');
|
|
15713
15726
|
const id = listItems[index].dataset.id;
|
|
@@ -15730,6 +15743,8 @@ _KupList_kupManager = new WeakMap(), _KupList_globalFilterTimeout = new WeakMap(
|
|
|
15730
15743
|
const item = this.data[index];
|
|
15731
15744
|
item.selected = this.selected.includes(item.id);
|
|
15732
15745
|
}
|
|
15746
|
+
__classPrivateFieldSet$1(this, _KupList_previouslySelectedItemReached, false, "f");
|
|
15747
|
+
__classPrivateFieldSet$1(this, _KupList_previouslySelectedItemIndex, this.focused, "f");
|
|
15733
15748
|
this.kupClick.emit({
|
|
15734
15749
|
comp: this,
|
|
15735
15750
|
id: this.rootElement.id,
|
|
@@ -90,6 +90,7 @@ export class KupAutocomplete {
|
|
|
90
90
|
node: ret.node,
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
+
__classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
|
|
93
94
|
}
|
|
94
95
|
onKupClick() {
|
|
95
96
|
this.kupClick.emit({
|
|
@@ -310,7 +311,7 @@ export class KupAutocomplete {
|
|
|
310
311
|
};
|
|
311
312
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
312
313
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
313
|
-
return (h(Host, { key: '
|
|
314
|
+
return (h(Host, { key: '9b562dbefd3dcd6546313faa526d3f6df441de58', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet(this, _KupAutocomplete_elStyle, "f") }, h("style", { key: '2399f62d076091ec5b534ab9323a8a7a555e13f5' }, __classPrivateFieldGet(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'c48befc1b4be5ac9563e980076015d71342ce713', id: componentWrapperId, style: __classPrivateFieldGet(this, _KupAutocomplete_elStyle, "f") }, h(FTextField, Object.assign({ key: '520b3098ecee40da9c4e9b3b3781d3453d0c907c' }, props, { icon: this.showDropDownIcon
|
|
314
315
|
? KupThemeIconValues.SEARCH
|
|
315
316
|
: null, trailingIcon: true }, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => {
|
|
316
317
|
window.clearTimeout(__classPrivateFieldGet(this, _KupAutocomplete_inputTimeout, "f"));
|
|
@@ -1197,24 +1198,21 @@ _KupAutocomplete_doConsistencyCheck = new WeakMap(), _KupAutocomplete_elStyle =
|
|
|
1197
1198
|
__classPrivateFieldGet(this, _KupAutocomplete_kupManager, "f").removeClickCallback(__classPrivateFieldGet(this, _KupAutocomplete_clickCb, "f"));
|
|
1198
1199
|
}, _KupAutocomplete_isListOpened = function _KupAutocomplete_isListOpened() {
|
|
1199
1200
|
return __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f").menuVisible == true;
|
|
1200
|
-
}, _KupAutocomplete_consistencyCheck = function _KupAutocomplete_consistencyCheck(idIn, idInDecode,
|
|
1201
|
+
}, _KupAutocomplete_consistencyCheck = function _KupAutocomplete_consistencyCheck(idIn, idInDecode, eventShouldSetValue) {
|
|
1201
1202
|
if (!__classPrivateFieldGet(this, _KupAutocomplete_doConsistencyCheck, "f")) {
|
|
1202
1203
|
return;
|
|
1203
1204
|
}
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
if (setValue) {
|
|
1208
|
-
this.value = ret.value;
|
|
1209
|
-
this.displayedValue = ret.displayedValue;
|
|
1210
|
-
}
|
|
1211
|
-
if (__classPrivateFieldGet(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
|
|
1212
|
-
__classPrivateFieldGet(this, _KupAutocomplete_listEl, "f").filter = ret.value;
|
|
1213
|
-
}
|
|
1205
|
+
if (idIn && idInDecode) {
|
|
1206
|
+
this.displayedValue = this.displayedValue =
|
|
1207
|
+
getIdOfItemByDisplayMode({ id: idIn, value: idInDecode }, this.displayMode, ' - ');
|
|
1214
1208
|
}
|
|
1215
1209
|
else {
|
|
1216
|
-
|
|
1217
|
-
|
|
1210
|
+
__classPrivateFieldSet(this, _KupAutocomplete_doConsistencyCheck, false, "f");
|
|
1211
|
+
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f"), this.selectMode, this.displayMode);
|
|
1212
|
+
if ((ret.exists || this.allowInconsistentValues) &&
|
|
1213
|
+
eventShouldSetValue) {
|
|
1214
|
+
this.value = ret.value;
|
|
1215
|
+
this.displayedValue = ret.displayedValue;
|
|
1218
1216
|
}
|
|
1219
1217
|
else {
|
|
1220
1218
|
this.displayedValue = idIn;
|
|
@@ -1222,8 +1220,8 @@ _KupAutocomplete_doConsistencyCheck = new WeakMap(), _KupAutocomplete_elStyle =
|
|
|
1222
1220
|
if (__classPrivateFieldGet(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
|
|
1223
1221
|
__classPrivateFieldGet(this, _KupAutocomplete_listEl, "f").filter = ret.value;
|
|
1224
1222
|
}
|
|
1223
|
+
return ret;
|
|
1225
1224
|
}
|
|
1226
|
-
return ret;
|
|
1227
1225
|
}, _KupAutocomplete_prepList = function _KupAutocomplete_prepList() {
|
|
1228
1226
|
return (h("kup-list", Object.assign({ displayMode: this.displayMode }, this.data['kup-list'], { isMenu: true, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet(this, _KupAutocomplete_listEl, el, "f")) })));
|
|
1229
1227
|
};
|
|
@@ -79,6 +79,7 @@ export class KupCombobox {
|
|
|
79
79
|
inputValue: __classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").value,
|
|
80
80
|
node: ret.node,
|
|
81
81
|
});
|
|
82
|
+
__classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
|
|
82
83
|
}
|
|
83
84
|
onKupClick() {
|
|
84
85
|
this.onKupIconClick();
|
|
@@ -295,7 +296,7 @@ export class KupCombobox {
|
|
|
295
296
|
};
|
|
296
297
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
297
298
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
298
|
-
return (h(Host, { key: '
|
|
299
|
+
return (h(Host, { key: '80c4c6a95530fc9886496318a1671f13d49815d9', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet(this, _KupCombobox_elStyle, "f") }, h("style", { key: 'e393281cd26940e3c00fa26e5df5ccd82a560471' }, __classPrivateFieldGet(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '73e48d76e96587a78c09dc4e5064f1fcc2b2be11', id: componentWrapperId, style: __classPrivateFieldGet(this, _KupCombobox_elStyle, "f") }, h(FTextField, Object.assign({ key: 'b691de937b991985d7045009e371885fc9c6f7f9' }, props, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, trailingIcon: true, icon: this.showDropDownIcon
|
|
299
300
|
? KupThemeIconValues.DROPDOWN
|
|
300
301
|
: null, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupIconClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => this.onKupInput(), onIconClick: () => this.onKupIconClick() }))), __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)));
|
|
301
302
|
}
|
|
@@ -1082,21 +1083,15 @@ _KupCombobox_kupManager = new WeakMap(), _KupCombobox_elStyle = new WeakMap(), _
|
|
|
1082
1083
|
__classPrivateFieldGet(this, _KupCombobox_kupManager, "f").removeClickCallback(__classPrivateFieldGet(this, _KupCombobox_clickCb, "f"));
|
|
1083
1084
|
}, _KupCombobox_isListOpened = function _KupCombobox_isListOpened() {
|
|
1084
1085
|
return __classPrivateFieldGet(this, _KupCombobox_listEl, "f").menuVisible == true;
|
|
1085
|
-
}, _KupCombobox_consistencyCheck = function _KupCombobox_consistencyCheck(idIn, idInDecode,
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
if (setValue) {
|
|
1089
|
-
this.value = ret.value;
|
|
1090
|
-
this.displayedValue = ret.displayedValue;
|
|
1091
|
-
}
|
|
1092
|
-
if (__classPrivateFieldGet(this, _KupCombobox_listEl, "f") != null) {
|
|
1093
|
-
__classPrivateFieldGet(this, _KupCombobox_listEl, "f").filter = ret.value;
|
|
1094
|
-
}
|
|
1086
|
+
}, _KupCombobox_consistencyCheck = function _KupCombobox_consistencyCheck(idIn, idInDecode, eventShouldSetValue) {
|
|
1087
|
+
if (idIn && idInDecode) {
|
|
1088
|
+
this.displayedValue = getIdOfItemByDisplayMode({ id: idIn, value: idInDecode }, this.displayMode, ' - ');
|
|
1095
1089
|
}
|
|
1096
1090
|
else {
|
|
1097
|
-
this.
|
|
1098
|
-
if (
|
|
1099
|
-
this.
|
|
1091
|
+
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet(this, _KupCombobox_listEl, "f"), this.selectMode, this.displayMode);
|
|
1092
|
+
if (ret.exists && eventShouldSetValue) {
|
|
1093
|
+
this.value = ret.value;
|
|
1094
|
+
this.displayedValue = ret.displayedValue;
|
|
1100
1095
|
}
|
|
1101
1096
|
else {
|
|
1102
1097
|
this.displayedValue = idIn;
|
|
@@ -1104,8 +1099,8 @@ _KupCombobox_kupManager = new WeakMap(), _KupCombobox_elStyle = new WeakMap(), _
|
|
|
1104
1099
|
if (__classPrivateFieldGet(this, _KupCombobox_listEl, "f") != null) {
|
|
1105
1100
|
__classPrivateFieldGet(this, _KupCombobox_listEl, "f").filter = ret.value;
|
|
1106
1101
|
}
|
|
1102
|
+
return ret;
|
|
1107
1103
|
}
|
|
1108
|
-
return ret;
|
|
1109
1104
|
}, _KupCombobox_prepList = function _KupCombobox_prepList() {
|
|
1110
1105
|
var _a, _b;
|
|
1111
1106
|
return (h("kup-list", Object.assign({}, this.data['kup-list'], { displayMode: this.displayMode, "is-menu": true, showFilter: ((_b = (_a = this.data['kup-list']) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.length) >= 10 ? true : false, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet(this, _KupCombobox_listEl, el, "f")) })));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><g><path d="M0,0h24v24H0V0z" fill="none"/></g><g><path d="M17,8l-1.41,1.41L17.17,11H9v2h8.17l-1.58,1.58L17,16l4-4L17,8z M5,5h7V3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h7v-2H5V5z"/></g></svg>
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { ItemsDisplayMode, } from "./kup-list-declarations";
|
|
2
2
|
export function getIdOfItemByDisplayMode(item, mode, separator) {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const { id, value } = item;
|
|
4
|
+
if (!id && value) {
|
|
5
|
+
return value;
|
|
5
6
|
}
|
|
6
|
-
if (
|
|
7
|
-
return
|
|
7
|
+
if (id && !value) {
|
|
8
|
+
return id;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
switch (mode) {
|
|
11
|
+
case ItemsDisplayMode.CODE:
|
|
12
|
+
return id;
|
|
13
|
+
case ItemsDisplayMode.DESCRIPTION:
|
|
14
|
+
return value;
|
|
15
|
+
case ItemsDisplayMode.CODE_AND_DESC:
|
|
16
|
+
case ItemsDisplayMode.CODE_AND_DESC_ALIAS:
|
|
17
|
+
return id && value ? id + separator + value : id || value;
|
|
18
|
+
case ItemsDisplayMode.DESC_AND_CODE:
|
|
19
|
+
return value && id ? value + separator + id : value || id;
|
|
20
|
+
default:
|
|
21
|
+
return id;
|
|
19
22
|
}
|
|
20
|
-
return item.id;
|
|
21
23
|
}
|
|
22
24
|
export function consistencyCheck(idIn, listData, listEl, selectMode, displayMode, e) {
|
|
23
25
|
const validList = !!(listEl && listData && listData['data']);
|
|
@@ -14,7 +14,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
14
14
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15
15
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
16
|
};
|
|
17
|
-
var _KupList_instances, _KupList_kupManager, _KupList_globalFilterTimeout, _KupList_radios, _KupList_listItems, _KupList_handleSelection, _KupList_isNested, _KupList_renderListItem, _KupList_getIconTag, _KupList_isMultiSelection, _KupList_isCheckBoxRule, _KupList_isRadioButtonRule, _KupList_isListBoxRule, _KupList_checkRoleType, _KupList_itemCompliant, _KupList_createFilterComponent, _KupList_listenKeydown;
|
|
17
|
+
var _KupList_instances, _KupList_kupManager, _KupList_globalFilterTimeout, _KupList_radios, _KupList_listItems, _KupList_previouslySelectedItemIndex, _KupList_previouslySelectedItemReached, _KupList_handleSelection, _KupList_isNested, _KupList_renderListItem, _KupList_getIconTag, _KupList_isMultiSelection, _KupList_isCheckBoxRule, _KupList_isRadioButtonRule, _KupList_isListBoxRule, _KupList_checkRoleType, _KupList_itemCompliant, _KupList_createFilterComponent, _KupList_listenKeydown;
|
|
18
18
|
import { forceUpdate, h, Host, } from "@stencil/core";
|
|
19
19
|
import { KupListProps, KupListRole, } from "./kup-list-declarations";
|
|
20
20
|
import { ItemsDisplayMode } from "./kup-list-declarations";
|
|
@@ -38,8 +38,10 @@ export class KupList {
|
|
|
38
38
|
_KupList_globalFilterTimeout.set(this, void 0);
|
|
39
39
|
_KupList_radios.set(this, []);
|
|
40
40
|
_KupList_listItems.set(this, []);
|
|
41
|
+
_KupList_previouslySelectedItemIndex.set(this, void 0);
|
|
42
|
+
_KupList_previouslySelectedItemReached.set(this, void 0);
|
|
41
43
|
_KupList_listenKeydown.set(this, (e) => {
|
|
42
|
-
if (this.keyboardNavigation) {
|
|
44
|
+
if (this.keyboardNavigation && __classPrivateFieldGet(this, _KupList_listItems, "f")) {
|
|
43
45
|
switch (e.key) {
|
|
44
46
|
case 'ArrowDown':
|
|
45
47
|
e.preventDefault();
|
|
@@ -115,7 +117,15 @@ export class KupList {
|
|
|
115
117
|
if (this.focused > __classPrivateFieldGet(this, _KupList_listItems, "f").length - 1) {
|
|
116
118
|
this.focused = 0;
|
|
117
119
|
}
|
|
118
|
-
__classPrivateFieldGet(this,
|
|
120
|
+
if (!__classPrivateFieldGet(this, _KupList_previouslySelectedItemReached, "f") &&
|
|
121
|
+
__classPrivateFieldGet(this, _KupList_listItems, "f")[__classPrivateFieldGet(this, _KupList_previouslySelectedItemIndex, "f")]) {
|
|
122
|
+
__classPrivateFieldSet(this, _KupList_previouslySelectedItemReached, true, "f");
|
|
123
|
+
this.focused = __classPrivateFieldGet(this, _KupList_previouslySelectedItemIndex, "f");
|
|
124
|
+
__classPrivateFieldGet(this, _KupList_listItems, "f")[__classPrivateFieldGet(this, _KupList_previouslySelectedItemIndex, "f")].focus();
|
|
125
|
+
}
|
|
126
|
+
else if (__classPrivateFieldGet(this, _KupList_listItems, "f")[this.focused]) {
|
|
127
|
+
__classPrivateFieldGet(this, _KupList_listItems, "f")[this.focused].focus();
|
|
128
|
+
}
|
|
119
129
|
}
|
|
120
130
|
}
|
|
121
131
|
/**
|
|
@@ -140,7 +150,15 @@ export class KupList {
|
|
|
140
150
|
if (this.focused < 0) {
|
|
141
151
|
this.focused = __classPrivateFieldGet(this, _KupList_listItems, "f").length - 1;
|
|
142
152
|
}
|
|
143
|
-
__classPrivateFieldGet(this,
|
|
153
|
+
if (!__classPrivateFieldGet(this, _KupList_previouslySelectedItemReached, "f") &&
|
|
154
|
+
__classPrivateFieldGet(this, _KupList_listItems, "f")[__classPrivateFieldGet(this, _KupList_previouslySelectedItemIndex, "f")]) {
|
|
155
|
+
__classPrivateFieldSet(this, _KupList_previouslySelectedItemReached, true, "f");
|
|
156
|
+
this.focused = __classPrivateFieldGet(this, _KupList_previouslySelectedItemIndex, "f");
|
|
157
|
+
__classPrivateFieldGet(this, _KupList_listItems, "f")[__classPrivateFieldGet(this, _KupList_previouslySelectedItemIndex, "f")].focus();
|
|
158
|
+
}
|
|
159
|
+
else if (__classPrivateFieldGet(this, _KupList_listItems, "f")[this.focused]) {
|
|
160
|
+
__classPrivateFieldGet(this, _KupList_listItems, "f")[this.focused].focus();
|
|
161
|
+
}
|
|
144
162
|
}
|
|
145
163
|
}
|
|
146
164
|
/**
|
|
@@ -256,7 +274,7 @@ export class KupList {
|
|
|
256
274
|
}
|
|
257
275
|
__classPrivateFieldSet(this, _KupList_radios, [], "f");
|
|
258
276
|
let index = 0;
|
|
259
|
-
return (h(Host, { key: '
|
|
277
|
+
return (h(Host, { key: 'f1606c18dcfa35ad02c3c7941d0065eff6c384f7' }, h("style", { key: '7e1103041cd402bd2f8d3adef4bbdf2ffb9a1eb7' }, __classPrivateFieldGet(this, _KupList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '0bcaa0498b13c789f3c8d8e62f28c646a6de65be', id: "kup-component", class: wrapperClass, onKeyDown: __classPrivateFieldGet(this, _KupList_listenKeydown, "f") }, this.showFilter ? (h("div", { class: filterClass }, __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_createFilterComponent).call(this))) : null, h("div", { key: '062bca5c883a1f5627760985a7e687c9bbb48ed3', class: listScrollClass }, h("ul", { key: '889d0076b199ae805fa9b3dae51c70734efbe0f4', class: componentClass, role: roleAttr, "aria-multiselectable": ariaMultiSelectable }, this.data
|
|
260
278
|
.filter((item) => __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_itemCompliant).call(this, item))
|
|
261
279
|
.map((item) => __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_renderListItem).call(this, item, index++)))))));
|
|
262
280
|
}
|
|
@@ -820,7 +838,7 @@ export class KupList {
|
|
|
820
838
|
}
|
|
821
839
|
static get elementRef() { return "rootElement"; }
|
|
822
840
|
}
|
|
823
|
-
_KupList_kupManager = new WeakMap(), _KupList_globalFilterTimeout = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_listItems = new WeakMap(), _KupList_listenKeydown = new WeakMap(), _KupList_instances = new WeakSet(), _KupList_handleSelection = function _KupList_handleSelection(index) {
|
|
841
|
+
_KupList_kupManager = new WeakMap(), _KupList_globalFilterTimeout = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_listItems = new WeakMap(), _KupList_previouslySelectedItemIndex = new WeakMap(), _KupList_previouslySelectedItemReached = new WeakMap(), _KupList_listenKeydown = new WeakMap(), _KupList_instances = new WeakSet(), _KupList_handleSelection = function _KupList_handleSelection(index) {
|
|
824
842
|
if (index !== null && index !== undefined && !isNaN(index)) {
|
|
825
843
|
const listItems = this.rootElement.shadowRoot.querySelectorAll('.list-item');
|
|
826
844
|
const id = listItems[index].dataset.id;
|
|
@@ -843,6 +861,8 @@ _KupList_kupManager = new WeakMap(), _KupList_globalFilterTimeout = new WeakMap(
|
|
|
843
861
|
const item = this.data[index];
|
|
844
862
|
item.selected = this.selected.includes(item.id);
|
|
845
863
|
}
|
|
864
|
+
__classPrivateFieldSet(this, _KupList_previouslySelectedItemReached, false, "f");
|
|
865
|
+
__classPrivateFieldSet(this, _KupList_previouslySelectedItemIndex, this.focused, "f");
|
|
846
866
|
this.kupClick.emit({
|
|
847
867
|
comp: this,
|
|
848
868
|
id: this.rootElement.id,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h, d as Host } from './p-2e5f2e07.js';
|
|
2
2
|
import { k as kupManagerInstance, a as KupComponentSizing, g as getProps, s as setProps, b as KupThemeColorValues, c as KupThemeIconValues } from './p-c8389c1a.js';
|
|
3
|
-
import { M as MDCRipple, F as FImage, c as componentWrapperId, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s, C as defineCustomElement$t } from './p-
|
|
3
|
+
import { M as MDCRipple, F as FImage, c as componentWrapperId, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s, C as defineCustomElement$t } from './p-416c7cc3.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Props of the kup-accordion component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h, F as Fragment, d as Host } from './p-2e5f2e07.js';
|
|
2
2
|
import { k as kupManagerInstance, g as getProps, s as setProps, u as KupDebugCategory, p as getCellValueForDisplay } from './p-c8389c1a.js';
|
|
3
|
-
import { c as componentWrapperId, D as sortRows, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s, C as defineCustomElement$t, F as FImage } from './p-
|
|
3
|
+
import { c as componentWrapperId, D as sortRows, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s, C as defineCustomElement$t, F as FImage } from './p-416c7cc3.js';
|
|
4
4
|
|
|
5
5
|
var KupActivityTimelineProps;
|
|
6
6
|
(function (KupActivityTimelineProps) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as KupAutocomplete$1, C as defineCustomElement$1 } from './p-
|
|
1
|
+
import { K as KupAutocomplete$1, C as defineCustomElement$1 } from './p-416c7cc3.js';
|
|
2
2
|
|
|
3
3
|
const KupAutocomplete = KupAutocomplete$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H as H$2, c as createEvent, g as getAssetPath, f as forceUpdate, h as h$1, d as Host } from './p-2e5f2e07.js';
|
|
2
2
|
import { k as kupManagerInstance, g as getProps, s as setProps, d as KupLanguageGeneric, H as getColumnByName, u as KupDebugCategory } from './p-c8389c1a.js';
|
|
3
|
-
import { c as componentWrapperId, S as FButton, N as FChip, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s, C as defineCustomElement$t, T as FChipType } from './p-
|
|
3
|
+
import { c as componentWrapperId, S as FButton, N as FChip, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s, C as defineCustomElement$t, T as FChipType } from './p-416c7cc3.js';
|
|
4
4
|
import { b as KupDatesLocales, K as KupDatesFormats } from './p-1581348d.js';
|
|
5
5
|
|
|
6
6
|
var n,l$1,u$1,i$1,t,r$1,o,f$1,e$1,c$1={},s=[],a$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(n,l){for(var u in l)n[u]=l[u];return n}function v$1(n){var l=n.parentNode;l&&l.removeChild(n);}function y(l,u,i){var t,r,o,f={};for(o in u)"key"==o?t=u[o]:"ref"==o?r=u[o]:f[o]=u[o];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===f[o]&&(f[o]=l.defaultProps[o]);return p(l,f,t,r,null)}function p(n,i,t,r,o){var f={type:n,props:i,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++u$1:o};return null==o&&null!=l$1.vnode&&l$1.vnode(f),f}function d(){return {current:null}}function _(n){return n.children}function k$1(n,l,u,i,t){var r;for(r in u)"children"===r||"key"===r||r in l||g$2(n,r,null,u[r],i);for(r in l)t&&"function"!=typeof l[r]||"children"===r||"key"===r||"value"===r||"checked"===r||u[r]===l[r]||g$2(n,r,l[r],u[r],i);}function b$1(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$1.test(l)?u:u+"px";}function g$2(n,l,u,i,t){var r;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||b$1(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||b$1(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])r=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?i||n.addEventListener(l,r?w$2:m$1,r):n.removeEventListener(l,r?w$2:m$1,r);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u));}}function m$1(n){t=!0;try{return this.l[n.type+!1](l$1.event?l$1.event(n):n)}finally{t=!1;}}function w$2(n){t=!0;try{return this.l[n.type+!0](l$1.event?l$1.event(n):n)}finally{t=!1;}}function x$1(n,l){this.props=n,this.context=l;}function A(n,l){if(null==l)return n.__?A(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?A(n):null}function P$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return P$1(n)}}function C$1(n){t?setTimeout(n):f$1(n);}function T$1(n){(!n.__d&&(n.__d=!0)&&r$1.push(n)&&!$$1.__r++||o!==l$1.debounceRendering)&&((o=l$1.debounceRendering)||C$1)($$1);}function $$1(){var n,l,u,i,t,o,f,e;for(r$1.sort(function(n,l){return n.__v.__b-l.__v.__b});n=r$1.shift();)n.__d&&(l=r$1.length,i=void 0,t=void 0,f=(o=(u=n).__v).__e,(e=u.__P)&&(i=[],(t=h({},o)).__v=o.__v+1,M(e,o,t,u.__n,void 0!==e.ownerSVGElement,null!=o.__h?[f]:null,i,null==f?A(o):f,o.__h),N(i,o),o.__e!=f&&P$1(o)),r$1.length>l&&r$1.sort(function(n,l){return n.__v.__b-l.__v.__b}));$$1.__r=0;}function H$1(n,l,u,i,t,r,o,f,e,a){var h,v,y,d,k,b,g,m=i&&i.__k||s,w=m.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(d=u.__k[h]=null==(d=l[h])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?p(null,d,null,null,d):Array.isArray(d)?p(_,{children:d},null,null,null):d.__b>0?p(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=u,d.__b=u.__b+1,null===(y=m[h])||y&&d.key==y.key&&d.type===y.type)m[h]=void 0;else for(v=0;v<w;v++){if((y=m[v])&&d.key==y.key&&d.type===y.type){m[v]=void 0;break}y=null;}M(n,d,y=y||c$1,t,r,o,f,e,a),k=d.__e,(v=d.ref)&&y.ref!=v&&(g||(g=[]),y.ref&&g.push(y.ref,null,d),g.push(v,d.__c||k,d)),null!=k?(null==b&&(b=k),"function"==typeof d.type&&d.__k===y.__k?d.__d=e=I$1(d,e,n):e=z$1(n,d,y,m,k,e),"function"==typeof u.type&&(u.__d=e)):e&&y.__e==e&&e.parentNode!=n&&(e=A(y));}for(u.__e=b,h=w;h--;)null!=m[h]&&("function"==typeof u.type&&null!=m[h].__e&&m[h].__e==u.__d&&(u.__d=L$1(i).nextSibling),q(m[h],m[h]));if(g)for(h=0;h<g.length;h++)S(g[h],g[++h],g[++h]);}function I$1(n,l,u){for(var i,t=n.__k,r=0;t&&r<t.length;r++)(i=t[r])&&(i.__=n,l="function"==typeof i.type?I$1(i,l,u):z$1(u,i,i,t,i.__e,l));return l}function j$2(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){j$2(n,l);}):l.push(n)),l}function z$1(n,l,u,i,t,r){var o,f,e;if(void 0!==l.__d)o=l.__d,l.__d=void 0;else if(null==u||t!=r||null==t.parentNode)n:if(null==r||r.parentNode!==n)n.appendChild(t),o=null;else {for(f=r,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,r),o=r;}return void 0!==o?o:t.nextSibling}function L$1(n){var l,u,i;if(null==n.type||"string"==typeof n.type)return n.__e;if(n.__k)for(l=n.__k.length-1;l>=0;l--)if((u=n.__k[l])&&(i=L$1(u)))return i;return null}function M(n,u,i,t,r,o,f,e,c){var s,a,v,y,p,d,k,b,g,m,w,A,P,C,T,$=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,o=[e]),(s=l$1.__b)&&s(u);try{n:if("function"==typeof $){if(b=u.props,g=(s=$.contextType)&&t[s.__c],m=s?g?g.props.value:s.__:t,i.__c?k=(a=u.__c=i.__c).__=a.__E:("prototype"in $&&$.prototype.render?u.__c=a=new $(b,m):(u.__c=a=new x$1(b,m),a.constructor=$,a.render=B$1),g&&g.sub(a),a.props=b,a.state||(a.state={}),a.context=m,a.__n=t,v=a.__d=!0,a.__h=[],a._sb=[]),null==a.__s&&(a.__s=a.state),null!=$.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=h({},a.__s)),h(a.__s,$.getDerivedStateFromProps(b,a.__s))),y=a.props,p=a.state,a.__v=u,v)null==$.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else {if(null==$.getDerivedStateFromProps&&b!==y&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(b,m),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(b,a.__s,m)||u.__v===i.__v){for(u.__v!==i.__v&&(a.props=b,a.state=a.__s,a.__d=!1),u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),w=0;w<a._sb.length;w++)a.__h.push(a._sb[w]);a._sb=[],a.__h.length&&f.push(a);break n}null!=a.componentWillUpdate&&a.componentWillUpdate(b,a.__s,m),null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(y,p,d);});}if(a.context=m,a.props=b,a.__P=n,A=l$1.__r,P=0,"prototype"in $&&$.prototype.render){for(a.state=a.__s,a.__d=!1,A&&A(u),s=a.render(a.props,a.state,a.context),C=0;C<a._sb.length;C++)a.__h.push(a._sb[C]);a._sb=[];}else do{a.__d=!1,A&&A(u),s=a.render(a.props,a.state,a.context),a.state=a.__s;}while(a.__d&&++P<25);a.state=a.__s,null!=a.getChildContext&&(t=h(h({},t),a.getChildContext())),v||null==a.getSnapshotBeforeUpdate||(d=a.getSnapshotBeforeUpdate(y,p)),T=null!=s&&s.type===_&&null==s.key?s.props.children:s,H$1(n,Array.isArray(T)?T:[T],u,i,t,r,o,f,e,c),a.base=u.__e,u.__h=null,a.__h.length&&f.push(a),k&&(a.__E=a.__=null),a.__e=!1;}else null==o&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=O(i.__e,u,i,t,r,o,f,c);(s=l$1.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=o)&&(u.__e=e,u.__h=!!c,o[o.indexOf(e)]=null),l$1.__e(n,u,i);}}function N(n,u){l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function O(l,u,i,t,r,o,f,e){var s,a,h,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(r=!0),null!=o)for(;_<o.length;_++)if((s=o[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,o[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),o=null,e=!1;}if(null===d)y===p||e&&l.data===p||(l.data=p);else {if(o=o&&n.call(l.childNodes),a=(y=i.props||c$1).dangerouslySetInnerHTML,h=p.dangerouslySetInnerHTML,!e){if(null!=o)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(h||a)&&(h&&(a&&h.__html==a.__html||h.__html===l.innerHTML)||(l.innerHTML=h&&h.__html||""));}if(k$1(l,p,y,r,e),h)u.__k=[];else if(_=u.props.children,H$1(l,Array.isArray(_)?_:[_],u,i,t,r&&"foreignObject"!==d,o,f,o?o[0]:i.__k&&A(i,0),e),null!=o)for(_=o.length;_--;)null!=o[_]&&v$1(o[_]);e||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&g$2(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&g$2(l,"checked",_,y.checked,!1));}return l}function S(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function q(n,u,i){var t,r;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||S(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(r=0;r<t.length;r++)t[r]&&q(t[r],u,i||"function"!=typeof n.type);i||null==n.__e||v$1(n.__e),n.__=n.__e=n.__d=void 0;}function B$1(n,l,u){return this.constructor(n,u)}function D$1(u,i,t){var r,o,f;l$1.__&&l$1.__(u,i),o=(r="function"==typeof t)?null:t&&t.__k||i.__k,f=[],M(i,u=(!r&&t||i).__k=y(_,null,[u]),o||c$1,c$1,void 0!==i.ownerSVGElement,!r&&t?[t]:o?null:i.firstChild?n.call(i.childNodes):null,f,!r&&t?t:o?o.__e:i.firstChild,r),N(f,u);}function G$1(n,l){var u={__c:l="__cC"+e$1++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,T$1(n);});},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=s.slice,l$1={__e:function(n,l,u,i){for(var t,r,o;l=l.__;)if((t=l.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(n)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),o=t.__d),o)return t.__E=t}catch(l){n=l;}throw n}},u$1=0,i$1=function(n){return null!=n&&void 0===n.constructor},t=!1,x$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof n&&(n=n(h({},u),this.props)),n&&h(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),T$1(this));},x$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),T$1(this));},x$1.prototype.render=_,r$1=[],f$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$$1.__r=0,e$1=0;
|