@sme.up/ketchup 11.0.0-SNAPSHOT-20241018090121 → 11.0.0-SNAPSHOT-20241021083542

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +8 -6
  2. package/dist/cjs/kup-autocomplete_27.cjs.entry.js.map +1 -1
  3. package/dist/cjs/kup-input-panel.cjs.entry.js +23 -14
  4. package/dist/cjs/kup-input-panel.cjs.entry.js.map +1 -1
  5. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +4 -3
  6. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js.map +1 -1
  7. package/dist/collection/components/kup-combobox/kup-combobox.js +4 -3
  8. package/dist/collection/components/kup-combobox/kup-combobox.js.map +1 -1
  9. package/dist/collection/components/kup-input-panel/kup-input-panel.js +23 -14
  10. package/dist/collection/components/kup-input-panel/kup-input-panel.js.map +1 -1
  11. package/dist/components/kup-autocomplete2.js +8 -6
  12. package/dist/components/kup-autocomplete2.js.map +1 -1
  13. package/dist/components/kup-input-panel.js +23 -14
  14. package/dist/components/kup-input-panel.js.map +1 -1
  15. package/dist/esm/kup-autocomplete_27.entry.js +8 -6
  16. package/dist/esm/kup-autocomplete_27.entry.js.map +1 -1
  17. package/dist/esm/kup-input-panel.entry.js +23 -14
  18. package/dist/esm/kup-input-panel.entry.js.map +1 -1
  19. package/dist/ketchup/ketchup.esm.js +1 -1
  20. package/dist/ketchup/p-3cf9525e.entry.js +2 -0
  21. package/dist/ketchup/p-3cf9525e.entry.js.map +1 -0
  22. package/dist/ketchup/p-e75fac6f.entry.js +9 -0
  23. package/dist/ketchup/p-e75fac6f.entry.js.map +1 -0
  24. package/package.json +1 -1
  25. package/dist/ketchup/p-40b3c165.entry.js +0 -9
  26. package/dist/ketchup/p-40b3c165.entry.js.map +0 -1
  27. package/dist/ketchup/p-8aa58b0f.entry.js +0 -2
  28. package/dist/ketchup/p-8aa58b0f.entry.js.map +0 -1
@@ -471,7 +471,7 @@ const KupAutocomplete = class {
471
471
  };
472
472
  const fullHeight = this.rootElement.classList.contains('kup-full-height');
473
473
  const fullWidth = this.rootElement.classList.contains('kup-full-width');
474
- return (index.h(index.Host, { key: '28638ab8423ee6f83a07d87237c824e4acff76c5', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$8(this, _KupAutocomplete_elStyle, "f") }, index.h("style", { key: '55ca9795eab45be7b321657d8d234bc2f37594ca' }, __classPrivateFieldGet$8(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '6f89c245ddbd8320c5386a7d03717e2a765f247e', id: GenericVariables.componentWrapperId, style: __classPrivateFieldGet$8(this, _KupAutocomplete_elStyle, "f") }, index.h(fTextField.FTextField, Object.assign({ key: '498afd4398e617248540a172f985a27c825bb94b' }, props, { icon: this.showDropDownIcon
474
+ return (index.h(index.Host, { key: '80b769eb42de13ab997f21834e8654a935baa656', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$8(this, _KupAutocomplete_elStyle, "f") }, index.h("style", { key: '2d2685971f354aa45b995bc059cbc4c64c9fcca6' }, __classPrivateFieldGet$8(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '746a0f1b28445dd123b9a1b13ca17b51ecf31654', id: GenericVariables.componentWrapperId, style: __classPrivateFieldGet$8(this, _KupAutocomplete_elStyle, "f") }, index.h(fTextField.FTextField, Object.assign({ key: 'a8280c78136a37e52c3161e8112ea686974ad8d7' }, props, { icon: this.showDropDownIcon
475
475
  ? kupManager$1.KupThemeIconValues.DROPDOWN
476
476
  : 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: () => {
477
477
  window.clearTimeout(__classPrivateFieldGet$8(this, _KupAutocomplete_inputTimeout, "f"));
@@ -488,13 +488,14 @@ const KupAutocomplete = class {
488
488
  get rootElement() { return index.getElement(this); }
489
489
  };
490
490
  _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) {
491
+ var _a, _b;
491
492
  if (forceOpen != true &&
492
493
  __classPrivateFieldGet$8(this, _KupAutocomplete_textfieldEl, "f").value.length < this.minimumChars) {
493
494
  __classPrivateFieldGet$8(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
494
495
  return false;
495
496
  }
496
- const hasError = this.error.trim().length > 0;
497
- const hasAlert = this.alert.trim().length > 0;
497
+ const hasError = ((_a = this.error) === null || _a === void 0 ? void 0 : _a.trim().length) > 0;
498
+ const hasAlert = ((_b = this.alert) === null || _b === void 0 ? void 0 : _b.trim().length) > 0;
498
499
  const topOffset = hasError || hasAlert ? -20 : 0;
499
500
  __classPrivateFieldGet$8(this, _KupAutocomplete_textfieldWrapper, "f").classList.add('toggled');
500
501
  __classPrivateFieldGet$8(this, _KupAutocomplete_listEl, "f").menuVisible = true;
@@ -7705,7 +7706,7 @@ const KupCombobox = class {
7705
7706
  };
7706
7707
  const fullHeight = this.rootElement.classList.contains('kup-full-height');
7707
7708
  const fullWidth = this.rootElement.classList.contains('kup-full-width');
7708
- return (index.h(index.Host, { key: '311adfa03e31d667b5691c4531d0406daaaf0905', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$6(this, _KupCombobox_elStyle, "f") }, index.h("style", { key: '7169ed993e329479764f0da7fefe93504f773987' }, __classPrivateFieldGet$6(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '2272409a12755754ee293a8f576861abcdd23439', id: GenericVariables.componentWrapperId, style: __classPrivateFieldGet$6(this, _KupCombobox_elStyle, "f") }, index.h(fTextField.FTextField, Object.assign({ key: '5ca4d7672f4216ae6e39788f68e4aaeef047a88b' }, props, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, trailingIcon: true, icon: this.showDropDownIcon
7709
+ return (index.h(index.Host, { key: 'de007180b154c7ae618be30c4cc7be6f64a4322c', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$6(this, _KupCombobox_elStyle, "f") }, index.h("style", { key: 'de3eef86b2f543754b9ec52a28abebbb01182509' }, __classPrivateFieldGet$6(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '39bacb8762a7d4697f841b0620bca6a1cc3e2002', id: GenericVariables.componentWrapperId, style: __classPrivateFieldGet$6(this, _KupCombobox_elStyle, "f") }, index.h(fTextField.FTextField, Object.assign({ key: '6ebe27626e839be8d249fafdfbe4d6ee6618fece' }, props, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, trailingIcon: true, icon: this.showDropDownIcon
7709
7710
  ? kupManager$1.KupThemeIconValues.DROPDOWN
7710
7711
  : 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)));
7711
7712
  }
@@ -7722,12 +7723,13 @@ const KupCombobox = class {
7722
7723
  }; }
7723
7724
  };
7724
7725
  _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() {
7726
+ var _a, _b;
7725
7727
  if (__classPrivateFieldGet$6(this, _KupCombobox_instances, "m", _KupCombobox_isListOpened).call(this)) {
7726
7728
  return;
7727
7729
  }
7728
7730
  // Manage list open while helperline is displayed
7729
- const hasError = this.error.trim().length > 0;
7730
- const hasAlert = this.alert.trim().length > 0;
7731
+ const hasError = ((_a = this.error) === null || _a === void 0 ? void 0 : _a.trim().length) > 0;
7732
+ const hasAlert = ((_b = this.alert) === null || _b === void 0 ? void 0 : _b.trim().length) > 0;
7731
7733
  const topOffset = hasError || hasAlert ? -20 : 0;
7732
7734
  __classPrivateFieldGet$6(this, _KupCombobox_textfieldWrapper, "f").classList.add('toggled');
7733
7735
  __classPrivateFieldGet$6(this, _KupCombobox_listEl, "f").menuVisible = true;