@sme.up/ketchup 11.0.0-SNAPSHOT-20241018090121 → 11.0.0-SNAPSHOT-20241018133752
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_27.cjs.entry.js +8 -6
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js.map +1 -1
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +4 -3
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js.map +1 -1
- package/dist/collection/components/kup-combobox/kup-combobox.js +4 -3
- package/dist/collection/components/kup-combobox/kup-combobox.js.map +1 -1
- package/dist/components/kup-autocomplete2.js +8 -6
- package/dist/components/kup-autocomplete2.js.map +1 -1
- package/dist/esm/kup-autocomplete_27.entry.js +8 -6
- package/dist/esm/kup-autocomplete_27.entry.js.map +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-e75fac6f.entry.js +9 -0
- package/dist/ketchup/p-e75fac6f.entry.js.map +1 -0
- package/package.json +1 -1
- package/dist/ketchup/p-40b3c165.entry.js +0 -9
- package/dist/ketchup/p-40b3c165.entry.js.map +0 -1
|
@@ -467,7 +467,7 @@ const KupAutocomplete = class {
|
|
|
467
467
|
};
|
|
468
468
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
469
469
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
470
|
-
return (h(Host, { key: '
|
|
470
|
+
return (h(Host, { key: '80b769eb42de13ab997f21834e8654a935baa656', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$8(this, _KupAutocomplete_elStyle, "f") }, h("style", { key: '2d2685971f354aa45b995bc059cbc4c64c9fcca6' }, __classPrivateFieldGet$8(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '746a0f1b28445dd123b9a1b13ca17b51ecf31654', id: componentWrapperId, style: __classPrivateFieldGet$8(this, _KupAutocomplete_elStyle, "f") }, h(FTextField, Object.assign({ key: 'a8280c78136a37e52c3161e8112ea686974ad8d7' }, props, { icon: this.showDropDownIcon
|
|
471
471
|
? KupThemeIconValues.DROPDOWN
|
|
472
472
|
: 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: () => {
|
|
473
473
|
window.clearTimeout(__classPrivateFieldGet$8(this, _KupAutocomplete_inputTimeout, "f"));
|
|
@@ -484,13 +484,14 @@ const KupAutocomplete = class {
|
|
|
484
484
|
get rootElement() { return getElement$1(this); }
|
|
485
485
|
};
|
|
486
486
|
_KupAutocomplete_doConsistencyCheck = new WeakMap(), _KupAutocomplete_elStyle = new WeakMap(), _KupAutocomplete_listEl = new WeakMap(), _KupAutocomplete_kupManager = new WeakMap(), _KupAutocomplete_textfieldWrapper = new WeakMap(), _KupAutocomplete_textfieldEl = new WeakMap(), _KupAutocomplete_clickCb = new WeakMap(), _KupAutocomplete_inputTimeout = new WeakMap(), _KupAutocomplete_instances = new WeakSet(), _KupAutocomplete_openList = function _KupAutocomplete_openList(forceOpen) {
|
|
487
|
+
var _a, _b;
|
|
487
488
|
if (forceOpen != true &&
|
|
488
489
|
__classPrivateFieldGet$8(this, _KupAutocomplete_textfieldEl, "f").value.length < this.minimumChars) {
|
|
489
490
|
__classPrivateFieldGet$8(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
|
|
490
491
|
return false;
|
|
491
492
|
}
|
|
492
|
-
const hasError = this.error.trim().length > 0;
|
|
493
|
-
const hasAlert = this.alert.trim().length > 0;
|
|
493
|
+
const hasError = ((_a = this.error) === null || _a === void 0 ? void 0 : _a.trim().length) > 0;
|
|
494
|
+
const hasAlert = ((_b = this.alert) === null || _b === void 0 ? void 0 : _b.trim().length) > 0;
|
|
494
495
|
const topOffset = hasError || hasAlert ? -20 : 0;
|
|
495
496
|
__classPrivateFieldGet$8(this, _KupAutocomplete_textfieldWrapper, "f").classList.add('toggled');
|
|
496
497
|
__classPrivateFieldGet$8(this, _KupAutocomplete_listEl, "f").menuVisible = true;
|
|
@@ -7701,7 +7702,7 @@ const KupCombobox = class {
|
|
|
7701
7702
|
};
|
|
7702
7703
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
7703
7704
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
7704
|
-
return (h(Host, { key: '
|
|
7705
|
+
return (h(Host, { key: 'de007180b154c7ae618be30c4cc7be6f64a4322c', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$6(this, _KupCombobox_elStyle, "f") }, h("style", { key: 'de3eef86b2f543754b9ec52a28abebbb01182509' }, __classPrivateFieldGet$6(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '39bacb8762a7d4697f841b0620bca6a1cc3e2002', id: componentWrapperId, style: __classPrivateFieldGet$6(this, _KupCombobox_elStyle, "f") }, h(FTextField, Object.assign({ key: '6ebe27626e839be8d249fafdfbe4d6ee6618fece' }, props, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, trailingIcon: true, icon: this.showDropDownIcon
|
|
7705
7706
|
? KupThemeIconValues.DROPDOWN
|
|
7706
7707
|
: null, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => this.onKupInput(), onIconClick: () => this.onKupIconClick() }))), __classPrivateFieldGet$6(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)));
|
|
7707
7708
|
}
|
|
@@ -7718,12 +7719,13 @@ const KupCombobox = class {
|
|
|
7718
7719
|
}; }
|
|
7719
7720
|
};
|
|
7720
7721
|
_KupCombobox_kupManager = new WeakMap(), _KupCombobox_elStyle = new WeakMap(), _KupCombobox_listEl = new WeakMap(), _KupCombobox_textfieldWrapper = new WeakMap(), _KupCombobox_textfieldEl = new WeakMap(), _KupCombobox_clickCb = new WeakMap(), _KupCombobox_instances = new WeakSet(), _KupCombobox_openList = function _KupCombobox_openList() {
|
|
7722
|
+
var _a, _b;
|
|
7721
7723
|
if (__classPrivateFieldGet$6(this, _KupCombobox_instances, "m", _KupCombobox_isListOpened).call(this)) {
|
|
7722
7724
|
return;
|
|
7723
7725
|
}
|
|
7724
7726
|
// Manage list open while helperline is displayed
|
|
7725
|
-
const hasError = this.error.trim().length > 0;
|
|
7726
|
-
const hasAlert = this.alert.trim().length > 0;
|
|
7727
|
+
const hasError = ((_a = this.error) === null || _a === void 0 ? void 0 : _a.trim().length) > 0;
|
|
7728
|
+
const hasAlert = ((_b = this.alert) === null || _b === void 0 ? void 0 : _b.trim().length) > 0;
|
|
7727
7729
|
const topOffset = hasError || hasAlert ? -20 : 0;
|
|
7728
7730
|
__classPrivateFieldGet$6(this, _KupCombobox_textfieldWrapper, "f").classList.add('toggled');
|
|
7729
7731
|
__classPrivateFieldGet$6(this, _KupCombobox_listEl, "f").menuVisible = true;
|