@everymatrix/bonus-elevate-powerups 0.5.75 → 0.5.77

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.
@@ -9,8 +9,8 @@ const DEFAULT_LANGUAGE$1 = 'en';
9
9
  const SUPPORTED_LANGUAGES = ['pt-br', 'en', 'es-mx', 'hu', 'hr'];
10
10
  const TRANSLATIONS$1 = {
11
11
  "en": {
12
- "firstPage": '|<',
13
- "lastPage": '>|',
12
+ "firstPage": '<<',
13
+ "lastPage": '>>',
14
14
  "prePage": '<',
15
15
  "nextPage": '>',
16
16
  "pageOfTotal": '{start}-{end} of {total}',
@@ -14390,7 +14390,7 @@ const RadioInput = class {
14390
14390
  };
14391
14391
  RadioInput.style = RadioInputStyle0;
14392
14392
 
14393
- const selectInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:\"Roboto\";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:\"*\";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}";
14393
+ const selectInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:\"Roboto\";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:var(--emw--display-opt, flex);gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:\"*\";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative;background-color:var(--emw--color-opt-background)}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:var(--emw--radius-circle, 4px);background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}";
14394
14394
  const SelectInputStyle0 = selectInputCss;
14395
14395
 
14396
14396
  const SelectInput = class {
@@ -14414,6 +14414,38 @@ const SelectInput = class {
14414
14414
  this.errorMessage = this.setErrorMessage();
14415
14415
  this.emitValueHandler(true);
14416
14416
  };
14417
+ this.handleComboInputFocusout = (event) => {
14418
+ var _a, _b;
14419
+ if (!this.isComboOpen() || event.relatedTarget)
14420
+ return;
14421
+ event.stopImmediatePropagation();
14422
+ // A full match is highlighted: closing commits it, like Enter does.
14423
+ if (this.getHighlightedIndex() > -1) {
14424
+ (_b = (_a = this.vaadinCombo).close) === null || _b === void 0 ? void 0 : _b.call(_a);
14425
+ }
14426
+ };
14427
+ this.handleComboInputKeydown = (event) => {
14428
+ var _a;
14429
+ if (event.key !== 'Enter' || event.isComposing || !this.isComboOpen())
14430
+ return;
14431
+ if (this.getHighlightedIndex() > -1)
14432
+ return;
14433
+ event.preventDefault();
14434
+ event.stopImmediatePropagation();
14435
+ (_a = this.blurGuardInput) === null || _a === void 0 ? void 0 : _a.blur();
14436
+ };
14437
+ this.handleComboOpenedChanged = (event) => {
14438
+ var _a;
14439
+ if (event.detail.value || document.activeElement === this.blurGuardInput)
14440
+ return;
14441
+ const combo = event.currentTarget;
14442
+ (_a = combo.validate) === null || _a === void 0 ? void 0 : _a.call(combo);
14443
+ this.touched = true;
14444
+ this.value = (combo === null || combo === void 0 ? void 0 : combo.value) || '';
14445
+ this.isValid = this.setValidity();
14446
+ this.errorMessage = this.setErrorMessage();
14447
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
14448
+ };
14417
14449
  this.handleBlur = (event) => {
14418
14450
  const field = event.currentTarget;
14419
14451
  if (field.opened)
@@ -14552,6 +14584,33 @@ const SelectInput = class {
14552
14584
  });
14553
14585
  });
14554
14586
  }
14587
+ isComboOpen() {
14588
+ var _a;
14589
+ return !!((_a = this.vaadinCombo) === null || _a === void 0 ? void 0 : _a.opened);
14590
+ }
14591
+ // _focusedIndex is vaadin's private highlighted-item index (-1 = none); it may change in future vaadin versions.
14592
+ getHighlightedIndex() {
14593
+ var _a, _b;
14594
+ return (_b = (_a = this.vaadinCombo) === null || _a === void 0 ? void 0 : _a._focusedIndex) !== null && _b !== void 0 ? _b : -1;
14595
+ }
14596
+ attachBlurGuard(el) {
14597
+ const input = el === null || el === void 0 ? void 0 : el.inputElement;
14598
+ if (!input || input === this.blurGuardInput)
14599
+ return;
14600
+ this.detachBlurGuard();
14601
+ input.addEventListener('focusout', this.handleComboInputFocusout);
14602
+ input.addEventListener('keydown', this.handleComboInputKeydown);
14603
+ this.blurGuardInput = input;
14604
+ }
14605
+ detachBlurGuard() {
14606
+ var _a, _b;
14607
+ (_a = this.blurGuardInput) === null || _a === void 0 ? void 0 : _a.removeEventListener('focusout', this.handleComboInputFocusout);
14608
+ (_b = this.blurGuardInput) === null || _b === void 0 ? void 0 : _b.removeEventListener('keydown', this.handleComboInputKeydown);
14609
+ this.blurGuardInput = undefined;
14610
+ }
14611
+ disconnectedCallback() {
14612
+ this.detachBlurGuard();
14613
+ }
14555
14614
  setValidity() {
14556
14615
  var _a;
14557
14616
  if ((_a = this.validation) === null || _a === void 0 ? void 0 : _a.mandatory) {
@@ -14577,10 +14636,10 @@ const SelectInput = class {
14577
14636
  if (this.touched) {
14578
14637
  invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
14579
14638
  }
14580
- return index.h("div", { key: 'eb6c9d7d85546159d44d06a0635f173263edd7d1', class: `select__wrapper ${this.autofilled ? 'select__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '0fd71c528870966fdb23049b1806a267e9e6ca5c', class: 'select__wrapper--flex' }, index.h("label", { key: '44aeb4e50ab2f79df06741ff07ac03131c987447', class: 'select__label', htmlFor: `${this.name}__input` }, this.displayName, index.h("span", { key: '796a83aeadd480a571b6bae035a46138d7b10b24', class: this.validation.mandatory ? 'select__label--required' : '' })), index.h("div", { key: '6d7b2d785c6b0bdd05c7444f563b21cedf26ff7c', class: 'select__wrapper--relative' }, this.tooltip &&
14581
- index.h("img", { key: 'f33e43a9d42e8b8d1cf136374505eeaedcbede26', class: 'select__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), this.isComboBox ? index.h("vaadin-combo-box", { name: this.name, id: `${this.name}__input`, class: `select__input ${invalidClass} ${this.autofilled ? 'select__input--autofilled' : ''}`, "item-label-path": "label", "item-value-path": "value", ref: (el) => this.vaadinCombo = el, readOnly: this.autofilled, required: (_a = this.validation) === null || _a === void 0 ? void 0 : _a.mandatory, value: this.value, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleComboChange, onBlur: this.handleBlur })
14639
+ return index.h("div", { key: '5cfd3a0d2630a31ee8fccfe35672238086e17600', class: `select__wrapper ${this.autofilled ? 'select__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '3dfae7aa91098a88fe6bd5ae88d7159dce4314b4', class: 'select__wrapper--flex' }, index.h("label", { key: '9255ee7c839659607dc100a61bc5f4d0041caaa2', class: 'select__label', htmlFor: `${this.name}__input` }, this.displayName, index.h("span", { key: '99f8b6de1b652bf8ac99ad8316797b92ac1c3d95', class: this.validation.mandatory ? 'select__label--required' : '' })), index.h("div", { key: '8f43647f1caace501b465d305d34be9393f1c7e3', class: 'select__wrapper--relative' }, this.tooltip &&
14640
+ index.h("img", { key: '8f504f912fcb52fd0aab8435dfe6461b08a33c99', class: 'select__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), this.isComboBox ? index.h("vaadin-combo-box", { name: this.name, id: `${this.name}__input`, class: `select__input ${invalidClass} ${this.autofilled ? 'select__input--autofilled' : ''}`, "item-label-path": "label", "item-value-path": "value", ref: (el) => this.vaadinCombo = el, onFocusin: () => this.attachBlurGuard(this.vaadinCombo), "onOpened-changed": this.handleComboOpenedChanged, readOnly: this.autofilled, required: (_a = this.validation) === null || _a === void 0 ? void 0 : _a.mandatory, value: this.value, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleComboChange, onBlur: this.handleBlur })
14582
14641
  :
14583
- index.h("vaadin-select", { name: this.name, popover: false, id: `${this.name}__input`, class: `select__input ${invalidClass} ${this.autofilled ? 'select__input--autofilled' : ''}`, "item-label-path": "label", "item-value-path": "value", ref: (el) => this.vaadinCombo = el, readOnly: this.autofilled, required: (_b = this.validation) === null || _b === void 0 ? void 0 : _b.mandatory, value: this.value, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleSelectChange, "no-vertical-overlap": true, noVerticalOverlap: true }), index.h("small", { key: '261b3c4abc9b360e6b937d851f8bfc810280a8c6', class: 'select__error-message' }, this.errorMessage));
14642
+ index.h("vaadin-select", { name: this.name, popover: false, id: `${this.name}__input`, class: `select__input ${invalidClass} ${this.autofilled ? 'select__input--autofilled' : ''}`, "item-label-path": "label", "item-value-path": "value", ref: (el) => this.vaadinCombo = el, readOnly: this.autofilled, required: (_b = this.validation) === null || _b === void 0 ? void 0 : _b.mandatory, value: this.value, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleSelectChange, "no-vertical-overlap": true, noVerticalOverlap: true }), index.h("small", { key: '90de512d3b2f59a4b9083ed7cb0c5c7278268f2e', class: 'select__error-message' }, this.errorMessage));
14584
14643
  }
14585
14644
  static get watchers() { return {
14586
14645
  "clientStyling": ["handleClientStylingChange"],
@@ -6,8 +6,8 @@ const DEFAULT_LANGUAGE$1 = 'en';
6
6
  const SUPPORTED_LANGUAGES = ['pt-br', 'en', 'es-mx', 'hu', 'hr'];
7
7
  const TRANSLATIONS$1 = {
8
8
  "en": {
9
- "firstPage": '|<',
10
- "lastPage": '>|',
9
+ "firstPage": '<<',
10
+ "lastPage": '>>',
11
11
  "prePage": '<',
12
12
  "nextPage": '>',
13
13
  "pageOfTotal": '{start}-{end} of {total}',
@@ -14387,7 +14387,7 @@ const RadioInput = class {
14387
14387
  };
14388
14388
  RadioInput.style = RadioInputStyle0;
14389
14389
 
14390
- const selectInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:\"Roboto\";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:\"*\";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}";
14390
+ const selectInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:\"Roboto\";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:var(--emw--display-opt, flex);gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:\"*\";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative;background-color:var(--emw--color-opt-background)}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:var(--emw--radius-circle, 4px);background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}";
14391
14391
  const SelectInputStyle0 = selectInputCss;
14392
14392
 
14393
14393
  const SelectInput = class {
@@ -14411,6 +14411,38 @@ const SelectInput = class {
14411
14411
  this.errorMessage = this.setErrorMessage();
14412
14412
  this.emitValueHandler(true);
14413
14413
  };
14414
+ this.handleComboInputFocusout = (event) => {
14415
+ var _a, _b;
14416
+ if (!this.isComboOpen() || event.relatedTarget)
14417
+ return;
14418
+ event.stopImmediatePropagation();
14419
+ // A full match is highlighted: closing commits it, like Enter does.
14420
+ if (this.getHighlightedIndex() > -1) {
14421
+ (_b = (_a = this.vaadinCombo).close) === null || _b === void 0 ? void 0 : _b.call(_a);
14422
+ }
14423
+ };
14424
+ this.handleComboInputKeydown = (event) => {
14425
+ var _a;
14426
+ if (event.key !== 'Enter' || event.isComposing || !this.isComboOpen())
14427
+ return;
14428
+ if (this.getHighlightedIndex() > -1)
14429
+ return;
14430
+ event.preventDefault();
14431
+ event.stopImmediatePropagation();
14432
+ (_a = this.blurGuardInput) === null || _a === void 0 ? void 0 : _a.blur();
14433
+ };
14434
+ this.handleComboOpenedChanged = (event) => {
14435
+ var _a;
14436
+ if (event.detail.value || document.activeElement === this.blurGuardInput)
14437
+ return;
14438
+ const combo = event.currentTarget;
14439
+ (_a = combo.validate) === null || _a === void 0 ? void 0 : _a.call(combo);
14440
+ this.touched = true;
14441
+ this.value = (combo === null || combo === void 0 ? void 0 : combo.value) || '';
14442
+ this.isValid = this.setValidity();
14443
+ this.errorMessage = this.setErrorMessage();
14444
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
14445
+ };
14414
14446
  this.handleBlur = (event) => {
14415
14447
  const field = event.currentTarget;
14416
14448
  if (field.opened)
@@ -14549,6 +14581,33 @@ const SelectInput = class {
14549
14581
  });
14550
14582
  });
14551
14583
  }
14584
+ isComboOpen() {
14585
+ var _a;
14586
+ return !!((_a = this.vaadinCombo) === null || _a === void 0 ? void 0 : _a.opened);
14587
+ }
14588
+ // _focusedIndex is vaadin's private highlighted-item index (-1 = none); it may change in future vaadin versions.
14589
+ getHighlightedIndex() {
14590
+ var _a, _b;
14591
+ return (_b = (_a = this.vaadinCombo) === null || _a === void 0 ? void 0 : _a._focusedIndex) !== null && _b !== void 0 ? _b : -1;
14592
+ }
14593
+ attachBlurGuard(el) {
14594
+ const input = el === null || el === void 0 ? void 0 : el.inputElement;
14595
+ if (!input || input === this.blurGuardInput)
14596
+ return;
14597
+ this.detachBlurGuard();
14598
+ input.addEventListener('focusout', this.handleComboInputFocusout);
14599
+ input.addEventListener('keydown', this.handleComboInputKeydown);
14600
+ this.blurGuardInput = input;
14601
+ }
14602
+ detachBlurGuard() {
14603
+ var _a, _b;
14604
+ (_a = this.blurGuardInput) === null || _a === void 0 ? void 0 : _a.removeEventListener('focusout', this.handleComboInputFocusout);
14605
+ (_b = this.blurGuardInput) === null || _b === void 0 ? void 0 : _b.removeEventListener('keydown', this.handleComboInputKeydown);
14606
+ this.blurGuardInput = undefined;
14607
+ }
14608
+ disconnectedCallback() {
14609
+ this.detachBlurGuard();
14610
+ }
14552
14611
  setValidity() {
14553
14612
  var _a;
14554
14613
  if ((_a = this.validation) === null || _a === void 0 ? void 0 : _a.mandatory) {
@@ -14574,10 +14633,10 @@ const SelectInput = class {
14574
14633
  if (this.touched) {
14575
14634
  invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
14576
14635
  }
14577
- return h("div", { key: 'eb6c9d7d85546159d44d06a0635f173263edd7d1', class: `select__wrapper ${this.autofilled ? 'select__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: '0fd71c528870966fdb23049b1806a267e9e6ca5c', class: 'select__wrapper--flex' }, h("label", { key: '44aeb4e50ab2f79df06741ff07ac03131c987447', class: 'select__label', htmlFor: `${this.name}__input` }, this.displayName, h("span", { key: '796a83aeadd480a571b6bae035a46138d7b10b24', class: this.validation.mandatory ? 'select__label--required' : '' })), h("div", { key: '6d7b2d785c6b0bdd05c7444f563b21cedf26ff7c', class: 'select__wrapper--relative' }, this.tooltip &&
14578
- h("img", { key: 'f33e43a9d42e8b8d1cf136374505eeaedcbede26', class: 'select__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), this.isComboBox ? h("vaadin-combo-box", { name: this.name, id: `${this.name}__input`, class: `select__input ${invalidClass} ${this.autofilled ? 'select__input--autofilled' : ''}`, "item-label-path": "label", "item-value-path": "value", ref: (el) => this.vaadinCombo = el, readOnly: this.autofilled, required: (_a = this.validation) === null || _a === void 0 ? void 0 : _a.mandatory, value: this.value, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleComboChange, onBlur: this.handleBlur })
14636
+ return h("div", { key: '5cfd3a0d2630a31ee8fccfe35672238086e17600', class: `select__wrapper ${this.autofilled ? 'select__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: '3dfae7aa91098a88fe6bd5ae88d7159dce4314b4', class: 'select__wrapper--flex' }, h("label", { key: '9255ee7c839659607dc100a61bc5f4d0041caaa2', class: 'select__label', htmlFor: `${this.name}__input` }, this.displayName, h("span", { key: '99f8b6de1b652bf8ac99ad8316797b92ac1c3d95', class: this.validation.mandatory ? 'select__label--required' : '' })), h("div", { key: '8f43647f1caace501b465d305d34be9393f1c7e3', class: 'select__wrapper--relative' }, this.tooltip &&
14637
+ h("img", { key: '8f504f912fcb52fd0aab8435dfe6461b08a33c99', class: 'select__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), this.isComboBox ? h("vaadin-combo-box", { name: this.name, id: `${this.name}__input`, class: `select__input ${invalidClass} ${this.autofilled ? 'select__input--autofilled' : ''}`, "item-label-path": "label", "item-value-path": "value", ref: (el) => this.vaadinCombo = el, onFocusin: () => this.attachBlurGuard(this.vaadinCombo), "onOpened-changed": this.handleComboOpenedChanged, readOnly: this.autofilled, required: (_a = this.validation) === null || _a === void 0 ? void 0 : _a.mandatory, value: this.value, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleComboChange, onBlur: this.handleBlur })
14579
14638
  :
14580
- h("vaadin-select", { name: this.name, popover: false, id: `${this.name}__input`, class: `select__input ${invalidClass} ${this.autofilled ? 'select__input--autofilled' : ''}`, "item-label-path": "label", "item-value-path": "value", ref: (el) => this.vaadinCombo = el, readOnly: this.autofilled, required: (_b = this.validation) === null || _b === void 0 ? void 0 : _b.mandatory, value: this.value, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleSelectChange, "no-vertical-overlap": true, noVerticalOverlap: true }), h("small", { key: '261b3c4abc9b360e6b937d851f8bfc810280a8c6', class: 'select__error-message' }, this.errorMessage));
14639
+ h("vaadin-select", { name: this.name, popover: false, id: `${this.name}__input`, class: `select__input ${invalidClass} ${this.autofilled ? 'select__input--autofilled' : ''}`, "item-label-path": "label", "item-value-path": "value", ref: (el) => this.vaadinCombo = el, readOnly: this.autofilled, required: (_b = this.validation) === null || _b === void 0 ? void 0 : _b.mandatory, value: this.value, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleSelectChange, "no-vertical-overlap": true, noVerticalOverlap: true }), h("small", { key: '90de512d3b2f59a4b9083ed7cb0c5c7278268f2e', class: 'select__error-message' }, this.errorMessage));
14581
14640
  }
14582
14641
  static get watchers() { return {
14583
14642
  "clientStyling": ["handleClientStylingChange"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/bonus-elevate-powerups",
3
- "version": "0.5.75",
3
+ "version": "0.5.77",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",