@everymatrix/general-input 1.22.2 → 1.22.10
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/checkbox-group-input_10.cjs.entry.js +54 -26
- package/dist/cjs/index.cjs.js +16 -0
- package/dist/cjs/toggle-checkbox-input.cjs.entry.js +1 -1
- package/dist/collection/components/checkbox-group-input/checkbox-group-input.css +5 -5
- package/dist/collection/components/checkbox-input/checkbox-input.css +5 -5
- package/dist/collection/components/date-input/date-input.css +18 -18
- package/dist/collection/components/email-input/email-input.css +20 -20
- package/dist/collection/components/number-input/number-input.css +18 -18
- package/dist/collection/components/password-input/password-input.css +24 -24
- package/dist/collection/components/radio-input/radio-input.css +4 -4
- package/dist/collection/components/select-input/select-input.css +16 -17
- package/dist/collection/components/tel-input/tel-input.css +19 -21
- package/dist/collection/components/text-input/text-input.css +20 -21
- package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.css +5 -5
- package/dist/collection/index.js +16 -0
- package/dist/components/active-mixin.js +1 -1
- package/dist/components/checkbox-group-input2.js +14 -8
- package/dist/components/checkbox-input2.js +1 -1
- package/dist/components/date-input2.js +2 -2
- package/dist/components/email-input2.js +1 -1
- package/dist/components/field-mixin.js +3 -3
- package/dist/components/general-input2.js +1 -1
- package/dist/components/index.js +17 -0
- package/dist/components/input-field-shared-styles.js +1 -1
- package/dist/components/number-input2.js +1 -1
- package/dist/components/password-input2.js +2 -2
- package/dist/components/radio-input2.js +1 -1
- package/dist/components/select-input2.js +1 -1
- package/dist/components/tel-input2.js +1 -1
- package/dist/components/text-input2.js +1 -1
- package/dist/components/vaadin-button.js +1 -1
- package/dist/components/vaadin-combo-box.js +31 -9
- package/dist/components/virtual-keyboard-controller.js +1 -1
- package/dist/esm/checkbox-group-input_10.entry.js +54 -26
- package/dist/esm/index.js +16 -1
- package/dist/esm/toggle-checkbox-input.entry.js +1 -1
- package/dist/general-input/general-input.esm.js +1 -1
- package/dist/general-input/index.esm.js +1 -0
- package/dist/general-input/{p-bcde6ed8.entry.js → p-1a8dc278.entry.js} +82 -82
- package/dist/general-input/p-d6a5269a.entry.js +1 -0
- package/package.json +1 -11
- package/dist/general-input/p-916a1319.entry.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { t as translate, a as tooltipIconSvg } from './tooltipIcon.js';
|
|
3
3
|
|
|
4
|
-
const numberInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:\"Roboto\";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color
|
|
4
|
+
const numberInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:\"Roboto\";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emfe-w-color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.number__label--required::after{content:\"*\";font-family:inherit;color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}";
|
|
5
5
|
|
|
6
6
|
const NumberInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { t as translate, a as tooltipIconSvg } from './tooltipIcon.js';
|
|
3
3
|
import { i as inputFieldShared, c as InputControlMixin, d as inputFieldShared$1 } from './input-field-shared-styles.js';
|
|
4
|
-
import { r as registerStyles,
|
|
4
|
+
import { r as registerStyles, c as InputController, e as LabelledInputController, h as html, T as TooltipController, f as defineCustomElement$1, g as ThemableMixin, E as ElementMixin, P as PolymerElement, i, G as SlotController } from './field-mixin.js';
|
|
5
5
|
import { b as button, B as Button } from './vaadin-button.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -786,7 +786,7 @@ class PasswordField extends TextField {
|
|
|
786
786
|
|
|
787
787
|
defineCustomElement$1(PasswordField);
|
|
788
788
|
|
|
789
|
-
const passwordInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.password{font-family:\"Roboto\";font-style:normal}.password__wrapper{position:relative;width:100%}.password__wrapper--autofilled{pointer-events:none}.password__wrapper--autofilled .password__label{color
|
|
789
|
+
const passwordInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.password{font-family:\"Roboto\";font-style:normal}.password__wrapper{position:relative;width:100%}.password__wrapper--autofilled{pointer-events:none}.password__wrapper--autofilled .password__label{color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.password__wrapper--autofilled .password__input::part(input-field){color:var(--emfe-w-color-black, #000000)}.password__wrapper--flex{display:flex;gap:5px}.password__wrapper--relative{position:relative}.password__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.password__label--required::after{content:\"*\";font-family:inherit;color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));margin-left:2px}.password__input{width:inherit;border:none;margin-bottom:5px}.password__input[focused]::part(input-field){outline-color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C))}.password__input[invalid]::part(input-field){border-color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C))}.password__input::part(input-field){border-radius:5px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);background-color:transparent;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px;position:relative}.password__input>input:placeholder-shown{color:var(--emfe-w-color-gray-150, #828282)}.password__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.password__complexity{position:relative;padding:10px;display:flex;flex-direction:column;gap:20px;justify-content:center;margin-top:20px;font-weight:300;background:var(--emfe-w-color-white, #FFFFFF);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;height:150px;border:1px solid #B0B0B0}.password__complexity--strength{display:flex;justify-content:space-evenly}.password__complexity--strength meter::-webkit-meter-optimum-value{background:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C))}.password__complexity--strength meter::-moz-meter-bar{background:#B0B0B0}.password__complexity--hidden{display:none}.password__complexity--text-bold{font-weight:500}.password__complexity--checkbox{margin-right:5px}.password__complexity:after{content:\"\";position:absolute;width:25px;height:25px;border-top:1px solid var(--emfe-w-color-gray-150, #828282);border-right:0 solid var(--emfe-w-color-gray-150, #828282);border-left:1px solid var(--emfe-w-color-gray-150, #828282);border-bottom:0 solid var(--emfe-w-color-gray-150, #828282);bottom:92%;left:50%;margin-left:-25px;transform:rotate(45deg);margin-top:-25px;background-color:var(--emfe-w-color-white, #FFFFFF)}.password__tooltip-icon{width:16px;height:auto}.password__tooltip{position:absolute;top:0;left:20px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-150, #828282);color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.password__tooltip.visible{opacity:1}";
|
|
790
790
|
|
|
791
791
|
const PasswordInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
792
792
|
constructor() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { t as translate, a as tooltipIconSvg } from './tooltipIcon.js';
|
|
3
3
|
|
|
4
|
-
const radioInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color
|
|
4
|
+
const radioInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}";
|
|
5
5
|
|
|
6
6
|
const RadioInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
@@ -3,7 +3,7 @@ import { t as translate, a as tooltipIconSvg } from './tooltipIcon.js';
|
|
|
3
3
|
import './input-field-shared-styles.js';
|
|
4
4
|
import './vaadin-combo-box.js';
|
|
5
5
|
|
|
6
|
-
const selectInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.select{font-family:\"Roboto\";font-style:normal}.select__wrapper{position:relative;width:100%}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color
|
|
6
|
+
const selectInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.select{font-family:\"Roboto\";font-style:normal}.select__wrapper{position:relative;width:100%}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emfe-w-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(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.select__label--required::after{content:\"*\";font-family:inherit;color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]::part(input-field){border-color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C))}.select__input[invalid]::part(input-field){border:1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emfe-w-color-black, #000000)}.select__input vaadin-month-calendar::part(selected date){background-color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.select__input::part(input-field){border-radius:5px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);background-color:transparent;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-registration-typography, var(--emfe-w-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}";
|
|
7
7
|
|
|
8
8
|
const SelectInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
@@ -3,7 +3,7 @@ import { t as translate, a as tooltipIconSvg } from './tooltipIcon.js';
|
|
|
3
3
|
import './input-field-shared-styles.js';
|
|
4
4
|
import './vaadin-combo-box.js';
|
|
5
5
|
|
|
6
|
-
const telInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:\"Roboto\";font-style:normal}.tel__wrapper{position:relative;width:100%}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color
|
|
6
|
+
const telInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:\"Roboto\";font-style:normal}.tel__wrapper{position:relative;width:100%}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emfe-w-color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:stretch;border-radius:4px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.tel__wrapper--flex:focus-within{outline-color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C))}.tel__wrapper--flex--invalid{border:1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.tel__label--required::after{content:\"*\";font-family:inherit;color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));margin-left:2px}.tel__prefix{width:120px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){border-radius:0 5px 5px 0;background-color:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px}.tel__input{font-family:inherit;border-radius:5px;width:100%;height:44px;color:var(--emfe-w-color-black, #000000);background-color:transparent;border:none;padding:10px 20px;width:inherit;position:relative;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}";
|
|
7
7
|
|
|
8
8
|
const TelInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { t as translate, a as tooltipIconSvg } from './tooltipIcon.js';
|
|
3
3
|
|
|
4
|
-
const textInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:\"Roboto\";font-style:normal}.text__wrapper{position:relative;width:100%}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color
|
|
4
|
+
const textInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:\"Roboto\";font-style:normal}.text__wrapper{position:relative;width:100%}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emfe-w-color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.text__label--required::after{content:\"*\";font-family:inherit;color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));margin-left:2px}.text__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.text__input:focus{outline-color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C))}.text__input--invalid{border:1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.text__input::placeholder{color:var(--emfe-w-color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}";
|
|
5
5
|
|
|
6
6
|
const TextInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i, r as registerStyles, Q as TabindexMixin,
|
|
1
|
+
import { i, r as registerStyles, Q as TabindexMixin, l as FocusMixin, E as ElementMixin, g as ThemableMixin, H as ControllerMixin, P as PolymerElement, T as TooltipController, f as defineCustomElement, h as html } from './field-mixin.js';
|
|
2
2
|
import { A as ActiveMixin } from './active-mixin.js';
|
|
3
3
|
|
|
4
4
|
const button = i`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i, r as registerStyles,
|
|
1
|
+
import { i, r as registerStyles, f as defineCustomElement, h as html, g as ThemableMixin, n as DirMixin, P as PolymerElement, m as microTask, R as idlePeriod, U as animationFrame, W as flush, o as Debouncer, X as enqueueDebouncer, t as timeOut, p as generateUniqueId, H as ControllerMixin, V as ValidateMixin, l as FocusMixin, K as KeyboardMixin, I as InputMixin, a as DisabledMixin, N as isElementFocused, c as InputController, e as LabelledInputController, T as TooltipController, E as ElementMixin } from './field-mixin.js';
|
|
2
2
|
import { c as overlay, d as menuOverlayCore, P as PositionMixin, O as OverlayMixin, o as overlayStyles, b as OverlayClassMixin, V as VirtualKeyboardController } from './virtual-keyboard-controller.js';
|
|
3
3
|
import { i as inputFieldShared, e as isSafari, I as InputConstraintsMixin, f as isTouch, c as InputControlMixin, d as inputFieldShared$1 } from './input-field-shared-styles.js';
|
|
4
4
|
|
|
@@ -1566,7 +1566,9 @@ class IronListAdapter {
|
|
|
1566
1566
|
this.__preventElementUpdates = false;
|
|
1567
1567
|
} else {
|
|
1568
1568
|
// Already initialized, just update _virtualCount
|
|
1569
|
+
this._updateScrollerSize();
|
|
1569
1570
|
this._virtualCount = this.items.length;
|
|
1571
|
+
this._render();
|
|
1570
1572
|
}
|
|
1571
1573
|
|
|
1572
1574
|
// When reducing size while invisible, iron-list does not update items, so
|
|
@@ -3115,6 +3117,14 @@ const ComboBoxMixin = (subclass) =>
|
|
|
3115
3117
|
observer: '_toggleElementChanged',
|
|
3116
3118
|
},
|
|
3117
3119
|
|
|
3120
|
+
/**
|
|
3121
|
+
* Set of items to be rendered in the dropdown.
|
|
3122
|
+
* @protected
|
|
3123
|
+
*/
|
|
3124
|
+
_dropdownItems: {
|
|
3125
|
+
type: Array,
|
|
3126
|
+
},
|
|
3127
|
+
|
|
3118
3128
|
/** @private */
|
|
3119
3129
|
_closeOnBlurIsPrevented: Boolean,
|
|
3120
3130
|
|
|
@@ -3132,8 +3142,8 @@ const ComboBoxMixin = (subclass) =>
|
|
|
3132
3142
|
static get observers() {
|
|
3133
3143
|
return [
|
|
3134
3144
|
'_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)',
|
|
3135
|
-
'_openedOrItemsChanged(opened,
|
|
3136
|
-
'_updateScroller(_scroller,
|
|
3145
|
+
'_openedOrItemsChanged(opened, _dropdownItems, loading)',
|
|
3146
|
+
'_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, theme)',
|
|
3137
3147
|
];
|
|
3138
3148
|
}
|
|
3139
3149
|
|
|
@@ -3372,7 +3382,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
3372
3382
|
this.dispatchEvent(new CustomEvent('vaadin-combo-box-dropdown-opened', { bubbles: true, composed: true }));
|
|
3373
3383
|
|
|
3374
3384
|
this._onOpened();
|
|
3375
|
-
} else if (wasOpened && this.
|
|
3385
|
+
} else if (wasOpened && this._dropdownItems && this._dropdownItems.length) {
|
|
3376
3386
|
this.close();
|
|
3377
3387
|
|
|
3378
3388
|
this.dispatchEvent(new CustomEvent('vaadin-combo-box-dropdown-closed', { bubbles: true, composed: true }));
|
|
@@ -3562,7 +3572,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
3562
3572
|
/** @private */
|
|
3563
3573
|
_onArrowDown() {
|
|
3564
3574
|
if (this.opened) {
|
|
3565
|
-
const items = this.
|
|
3575
|
+
const items = this._dropdownItems;
|
|
3566
3576
|
if (items) {
|
|
3567
3577
|
this._focusedIndex = Math.min(items.length - 1, this._focusedIndex + 1);
|
|
3568
3578
|
this._prefillFocusedItemLabel();
|
|
@@ -3578,7 +3588,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
3578
3588
|
if (this._focusedIndex > -1) {
|
|
3579
3589
|
this._focusedIndex = Math.max(0, this._focusedIndex - 1);
|
|
3580
3590
|
} else {
|
|
3581
|
-
const items = this.
|
|
3591
|
+
const items = this._dropdownItems;
|
|
3582
3592
|
if (items) {
|
|
3583
3593
|
this._focusedIndex = items.length - 1;
|
|
3584
3594
|
}
|
|
@@ -3593,7 +3603,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
3593
3603
|
/** @private */
|
|
3594
3604
|
_prefillFocusedItemLabel() {
|
|
3595
3605
|
if (this._focusedIndex > -1) {
|
|
3596
|
-
const focusedItem = this.
|
|
3606
|
+
const focusedItem = this._dropdownItems[this._focusedIndex];
|
|
3597
3607
|
this._inputElementValue = this._getItemLabel(focusedItem);
|
|
3598
3608
|
this._markAllSelectionRange();
|
|
3599
3609
|
}
|
|
@@ -3766,7 +3776,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
3766
3776
|
/** @private */
|
|
3767
3777
|
_commitValue() {
|
|
3768
3778
|
if (this._focusedIndex > -1) {
|
|
3769
|
-
const focusedItem = this.
|
|
3779
|
+
const focusedItem = this._dropdownItems[this._focusedIndex];
|
|
3770
3780
|
if (this.selectedItem !== focusedItem) {
|
|
3771
3781
|
this.selectedItem = focusedItem;
|
|
3772
3782
|
}
|
|
@@ -3781,7 +3791,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
3781
3791
|
}
|
|
3782
3792
|
} else {
|
|
3783
3793
|
// Try to find an item which label matches the input value.
|
|
3784
|
-
const items = [this.selectedItem, ...(this.
|
|
3794
|
+
const items = [this.selectedItem, ...(this._dropdownItems || [])];
|
|
3785
3795
|
const itemMatchingInputValue = items[this.__getItemIndexByLabel(items, this._inputElementValue)];
|
|
3786
3796
|
|
|
3787
3797
|
if (
|
|
@@ -3996,6 +4006,8 @@ const ComboBoxMixin = (subclass) =>
|
|
|
3996
4006
|
|
|
3997
4007
|
/** @private */
|
|
3998
4008
|
_filteredItemsChanged(filteredItems, oldFilteredItems) {
|
|
4009
|
+
this._setDropdownItems(filteredItems);
|
|
4010
|
+
|
|
3999
4011
|
// Store the currently focused item if any. The focused index preserves
|
|
4000
4012
|
// in the case when more filtered items are loading but it is reset
|
|
4001
4013
|
// when the user types in a filter query.
|
|
@@ -4056,6 +4068,16 @@ const ComboBoxMixin = (subclass) =>
|
|
|
4056
4068
|
}
|
|
4057
4069
|
}
|
|
4058
4070
|
|
|
4071
|
+
/**
|
|
4072
|
+
* Provide items to be rendered in the dropdown.
|
|
4073
|
+
* Override this method to show custom items.
|
|
4074
|
+
*
|
|
4075
|
+
* @protected
|
|
4076
|
+
*/
|
|
4077
|
+
_setDropdownItems(items) {
|
|
4078
|
+
this._dropdownItems = items;
|
|
4079
|
+
}
|
|
4080
|
+
|
|
4059
4081
|
/** @private */
|
|
4060
4082
|
_getItemElements() {
|
|
4061
4083
|
return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i, r as registerStyles,
|
|
1
|
+
import { i, r as registerStyles, J as getDeepActiveElement, M as getFocusableElements, N as isElementFocused, H as ControllerMixin, O as getAncestorRootNodes } from './field-mixin.js';
|
|
2
2
|
import { b as isIOS } from './input-field-shared-styles.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -42,7 +42,7 @@ class Lumo extends HTMLElement {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
static get version() {
|
|
45
|
-
return '24.2.
|
|
45
|
+
return '24.2.5';
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -9227,7 +9227,7 @@ const registered = new Set();
|
|
|
9227
9227
|
const ElementMixin = (superClass) =>
|
|
9228
9228
|
class VaadinElementMixin extends DirMixin(superClass) {
|
|
9229
9229
|
static get version() {
|
|
9230
|
-
return '24.2.
|
|
9230
|
+
return '24.2.5';
|
|
9231
9231
|
}
|
|
9232
9232
|
|
|
9233
9233
|
/** @protected */
|
|
@@ -12117,12 +12117,6 @@ const CheckedMixin = dedupingMixin(
|
|
|
12117
12117
|
const input = event.target;
|
|
12118
12118
|
|
|
12119
12119
|
this._toggleChecked(input.checked);
|
|
12120
|
-
|
|
12121
|
-
// Clicking the checkbox or radio-button in Safari
|
|
12122
|
-
// does not make it focused, so we do it manually.
|
|
12123
|
-
if (!isElementFocused(input)) {
|
|
12124
|
-
input.focus();
|
|
12125
|
-
}
|
|
12126
12120
|
}
|
|
12127
12121
|
|
|
12128
12122
|
/** @protected */
|
|
@@ -12666,6 +12660,18 @@ const CheckboxMixin = (superclass) =>
|
|
|
12666
12660
|
type: String,
|
|
12667
12661
|
value: '',
|
|
12668
12662
|
},
|
|
12663
|
+
|
|
12664
|
+
/**
|
|
12665
|
+
* Indicates whether the element can be focused and where it participates in sequential keyboard navigation.
|
|
12666
|
+
*
|
|
12667
|
+
* @override
|
|
12668
|
+
* @protected
|
|
12669
|
+
*/
|
|
12670
|
+
tabindex: {
|
|
12671
|
+
type: Number,
|
|
12672
|
+
value: 0,
|
|
12673
|
+
reflectToAttribute: true,
|
|
12674
|
+
},
|
|
12669
12675
|
};
|
|
12670
12676
|
}
|
|
12671
12677
|
|
|
@@ -14321,7 +14327,7 @@ class CheckboxGroup extends FieldMixin(FocusMixin(DisabledMixin(ElementMixin(The
|
|
|
14321
14327
|
|
|
14322
14328
|
defineCustomElement(CheckboxGroup);
|
|
14323
14329
|
|
|
14324
|
-
const checkboxGroupInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkboxgroup{font-family:\"Roboto\";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color
|
|
14330
|
+
const checkboxGroupInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkboxgroup{font-family:\"Roboto\";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));line-height:14px}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkboxgroup__tooltip.visible{opacity:1}";
|
|
14325
14331
|
|
|
14326
14332
|
const CheckboxGroupInput = class {
|
|
14327
14333
|
constructor(hostRef) {
|
|
@@ -14434,7 +14440,7 @@ const CheckboxGroupInput = class {
|
|
|
14434
14440
|
};
|
|
14435
14441
|
CheckboxGroupInput.style = checkboxGroupInputCss;
|
|
14436
14442
|
|
|
14437
|
-
const checkboxInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:\"Roboto\";font-style:normal}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--flex{display:flex;gap:5px}.checkbox__wrapper--relative{position:relative}.checkbox__input{transform:scale(1.307, 1.307);margin-left:2px}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color
|
|
14443
|
+
const checkboxInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:\"Roboto\";font-style:normal}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--flex{display:flex;gap:5px}.checkbox__wrapper--relative{position:relative}.checkbox__input{transform:scale(1.307, 1.307);margin-left:2px}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));line-height:14px}.checkbox__label-text{font-size:16px}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}";
|
|
14438
14444
|
|
|
14439
14445
|
const CheckboxInput = class {
|
|
14440
14446
|
constructor(hostRef) {
|
|
@@ -29607,7 +29613,7 @@ function isBefore(dirtyDate, dirtyDateToCompare) {
|
|
|
29607
29613
|
return date.getTime() < dateToCompare.getTime();
|
|
29608
29614
|
}
|
|
29609
29615
|
|
|
29610
|
-
const dateInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:\"Roboto\";font-style:normal}.date__wrapper{position:relative;width:100%;padding-top:26px}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color
|
|
29616
|
+
const dateInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:\"Roboto\";font-style:normal}.date__wrapper{position:relative;width:100%;padding-top:26px}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));position:absolute;top:0;left:0}.date__label--required::after{content:\"*\";font-family:inherit;color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));margin-left:2px}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){outline-color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C))}.date__input[invalid]::part(input-field){border-color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.date__input::part(input-field){font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000b3}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.date__tooltip.visible{opacity:1}";
|
|
29611
29617
|
|
|
29612
29618
|
const DateInput = class {
|
|
29613
29619
|
constructor(hostRef) {
|
|
@@ -29737,7 +29743,7 @@ const DateInput = class {
|
|
|
29737
29743
|
};
|
|
29738
29744
|
DateInput.style = dateInputCss;
|
|
29739
29745
|
|
|
29740
|
-
const emailInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:\"Roboto\";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--autofilled{pointer-events:none}.email__wrapper--autofilled .email__label{color
|
|
29746
|
+
const emailInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:\"Roboto\";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--autofilled{pointer-events:none}.email__wrapper--autofilled .email__label{color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.email__wrapper--autofilled .email__input{color:var(--emfe-w-color-black, #000000)}.email__wrapper--flex{display:flex;gap:5px}.email__wrapper--relative{position:relative}.email__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.email__label--required::after{content:\"*\";font-family:inherit;color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));margin-left:2px}.email__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative}.email__input:focus{outline-color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C))}.email__input--invalid{border:1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.email__input::placeholder{color:var(--emfe-w-color-gray-150, #828282)}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.email__tooltip-icon{width:16px;height:auto}.email__tooltip{position:absolute;top:0;left:20px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.email__tooltip.visible{opacity:1}";
|
|
29741
29747
|
|
|
29742
29748
|
const EmailInput = class {
|
|
29743
29749
|
constructor(hostRef) {
|
|
@@ -29873,7 +29879,7 @@ const EmailInput = class {
|
|
|
29873
29879
|
};
|
|
29874
29880
|
EmailInput.style = emailInputCss;
|
|
29875
29881
|
|
|
29876
|
-
const numberInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:\"Roboto\";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color
|
|
29882
|
+
const numberInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:\"Roboto\";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emfe-w-color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.number__label--required::after{content:\"*\";font-family:inherit;color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}";
|
|
29877
29883
|
|
|
29878
29884
|
const NumberInput = class {
|
|
29879
29885
|
constructor(hostRef) {
|
|
@@ -30779,7 +30785,7 @@ class PasswordField extends TextField {
|
|
|
30779
30785
|
|
|
30780
30786
|
defineCustomElement(PasswordField);
|
|
30781
30787
|
|
|
30782
|
-
const passwordInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.password{font-family:\"Roboto\";font-style:normal}.password__wrapper{position:relative;width:100%}.password__wrapper--autofilled{pointer-events:none}.password__wrapper--autofilled .password__label{color
|
|
30788
|
+
const passwordInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.password{font-family:\"Roboto\";font-style:normal}.password__wrapper{position:relative;width:100%}.password__wrapper--autofilled{pointer-events:none}.password__wrapper--autofilled .password__label{color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.password__wrapper--autofilled .password__input::part(input-field){color:var(--emfe-w-color-black, #000000)}.password__wrapper--flex{display:flex;gap:5px}.password__wrapper--relative{position:relative}.password__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.password__label--required::after{content:\"*\";font-family:inherit;color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));margin-left:2px}.password__input{width:inherit;border:none;margin-bottom:5px}.password__input[focused]::part(input-field){outline-color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C))}.password__input[invalid]::part(input-field){border-color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C))}.password__input::part(input-field){border-radius:5px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);background-color:transparent;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px;position:relative}.password__input>input:placeholder-shown{color:var(--emfe-w-color-gray-150, #828282)}.password__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.password__complexity{position:relative;padding:10px;display:flex;flex-direction:column;gap:20px;justify-content:center;margin-top:20px;font-weight:300;background:var(--emfe-w-color-white, #FFFFFF);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;height:150px;border:1px solid #B0B0B0}.password__complexity--strength{display:flex;justify-content:space-evenly}.password__complexity--strength meter::-webkit-meter-optimum-value{background:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C))}.password__complexity--strength meter::-moz-meter-bar{background:#B0B0B0}.password__complexity--hidden{display:none}.password__complexity--text-bold{font-weight:500}.password__complexity--checkbox{margin-right:5px}.password__complexity:after{content:\"\";position:absolute;width:25px;height:25px;border-top:1px solid var(--emfe-w-color-gray-150, #828282);border-right:0 solid var(--emfe-w-color-gray-150, #828282);border-left:1px solid var(--emfe-w-color-gray-150, #828282);border-bottom:0 solid var(--emfe-w-color-gray-150, #828282);bottom:92%;left:50%;margin-left:-25px;transform:rotate(45deg);margin-top:-25px;background-color:var(--emfe-w-color-white, #FFFFFF)}.password__tooltip-icon{width:16px;height:auto}.password__tooltip{position:absolute;top:0;left:20px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-150, #828282);color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.password__tooltip.visible{opacity:1}";
|
|
30783
30789
|
|
|
30784
30790
|
const PasswordInput = class {
|
|
30785
30791
|
constructor(hostRef) {
|
|
@@ -30997,7 +31003,7 @@ const PasswordInput = class {
|
|
|
30997
31003
|
};
|
|
30998
31004
|
PasswordInput.style = passwordInputCss;
|
|
30999
31005
|
|
|
31000
|
-
const radioInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color
|
|
31006
|
+
const radioInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}";
|
|
31001
31007
|
|
|
31002
31008
|
const RadioInput = class {
|
|
31003
31009
|
constructor(hostRef) {
|
|
@@ -32643,7 +32649,9 @@ class IronListAdapter {
|
|
|
32643
32649
|
this.__preventElementUpdates = false;
|
|
32644
32650
|
} else {
|
|
32645
32651
|
// Already initialized, just update _virtualCount
|
|
32652
|
+
this._updateScrollerSize();
|
|
32646
32653
|
this._virtualCount = this.items.length;
|
|
32654
|
+
this._render();
|
|
32647
32655
|
}
|
|
32648
32656
|
|
|
32649
32657
|
// When reducing size while invisible, iron-list does not update items, so
|
|
@@ -34192,6 +34200,14 @@ const ComboBoxMixin = (subclass) =>
|
|
|
34192
34200
|
observer: '_toggleElementChanged',
|
|
34193
34201
|
},
|
|
34194
34202
|
|
|
34203
|
+
/**
|
|
34204
|
+
* Set of items to be rendered in the dropdown.
|
|
34205
|
+
* @protected
|
|
34206
|
+
*/
|
|
34207
|
+
_dropdownItems: {
|
|
34208
|
+
type: Array,
|
|
34209
|
+
},
|
|
34210
|
+
|
|
34195
34211
|
/** @private */
|
|
34196
34212
|
_closeOnBlurIsPrevented: Boolean,
|
|
34197
34213
|
|
|
@@ -34209,8 +34225,8 @@ const ComboBoxMixin = (subclass) =>
|
|
|
34209
34225
|
static get observers() {
|
|
34210
34226
|
return [
|
|
34211
34227
|
'_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)',
|
|
34212
|
-
'_openedOrItemsChanged(opened,
|
|
34213
|
-
'_updateScroller(_scroller,
|
|
34228
|
+
'_openedOrItemsChanged(opened, _dropdownItems, loading)',
|
|
34229
|
+
'_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, theme)',
|
|
34214
34230
|
];
|
|
34215
34231
|
}
|
|
34216
34232
|
|
|
@@ -34449,7 +34465,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
34449
34465
|
this.dispatchEvent(new CustomEvent('vaadin-combo-box-dropdown-opened', { bubbles: true, composed: true }));
|
|
34450
34466
|
|
|
34451
34467
|
this._onOpened();
|
|
34452
|
-
} else if (wasOpened && this.
|
|
34468
|
+
} else if (wasOpened && this._dropdownItems && this._dropdownItems.length) {
|
|
34453
34469
|
this.close();
|
|
34454
34470
|
|
|
34455
34471
|
this.dispatchEvent(new CustomEvent('vaadin-combo-box-dropdown-closed', { bubbles: true, composed: true }));
|
|
@@ -34639,7 +34655,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
34639
34655
|
/** @private */
|
|
34640
34656
|
_onArrowDown() {
|
|
34641
34657
|
if (this.opened) {
|
|
34642
|
-
const items = this.
|
|
34658
|
+
const items = this._dropdownItems;
|
|
34643
34659
|
if (items) {
|
|
34644
34660
|
this._focusedIndex = Math.min(items.length - 1, this._focusedIndex + 1);
|
|
34645
34661
|
this._prefillFocusedItemLabel();
|
|
@@ -34655,7 +34671,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
34655
34671
|
if (this._focusedIndex > -1) {
|
|
34656
34672
|
this._focusedIndex = Math.max(0, this._focusedIndex - 1);
|
|
34657
34673
|
} else {
|
|
34658
|
-
const items = this.
|
|
34674
|
+
const items = this._dropdownItems;
|
|
34659
34675
|
if (items) {
|
|
34660
34676
|
this._focusedIndex = items.length - 1;
|
|
34661
34677
|
}
|
|
@@ -34670,7 +34686,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
34670
34686
|
/** @private */
|
|
34671
34687
|
_prefillFocusedItemLabel() {
|
|
34672
34688
|
if (this._focusedIndex > -1) {
|
|
34673
|
-
const focusedItem = this.
|
|
34689
|
+
const focusedItem = this._dropdownItems[this._focusedIndex];
|
|
34674
34690
|
this._inputElementValue = this._getItemLabel(focusedItem);
|
|
34675
34691
|
this._markAllSelectionRange();
|
|
34676
34692
|
}
|
|
@@ -34843,7 +34859,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
34843
34859
|
/** @private */
|
|
34844
34860
|
_commitValue() {
|
|
34845
34861
|
if (this._focusedIndex > -1) {
|
|
34846
|
-
const focusedItem = this.
|
|
34862
|
+
const focusedItem = this._dropdownItems[this._focusedIndex];
|
|
34847
34863
|
if (this.selectedItem !== focusedItem) {
|
|
34848
34864
|
this.selectedItem = focusedItem;
|
|
34849
34865
|
}
|
|
@@ -34858,7 +34874,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
34858
34874
|
}
|
|
34859
34875
|
} else {
|
|
34860
34876
|
// Try to find an item which label matches the input value.
|
|
34861
|
-
const items = [this.selectedItem, ...(this.
|
|
34877
|
+
const items = [this.selectedItem, ...(this._dropdownItems || [])];
|
|
34862
34878
|
const itemMatchingInputValue = items[this.__getItemIndexByLabel(items, this._inputElementValue)];
|
|
34863
34879
|
|
|
34864
34880
|
if (
|
|
@@ -35073,6 +35089,8 @@ const ComboBoxMixin = (subclass) =>
|
|
|
35073
35089
|
|
|
35074
35090
|
/** @private */
|
|
35075
35091
|
_filteredItemsChanged(filteredItems, oldFilteredItems) {
|
|
35092
|
+
this._setDropdownItems(filteredItems);
|
|
35093
|
+
|
|
35076
35094
|
// Store the currently focused item if any. The focused index preserves
|
|
35077
35095
|
// in the case when more filtered items are loading but it is reset
|
|
35078
35096
|
// when the user types in a filter query.
|
|
@@ -35133,6 +35151,16 @@ const ComboBoxMixin = (subclass) =>
|
|
|
35133
35151
|
}
|
|
35134
35152
|
}
|
|
35135
35153
|
|
|
35154
|
+
/**
|
|
35155
|
+
* Provide items to be rendered in the dropdown.
|
|
35156
|
+
* Override this method to show custom items.
|
|
35157
|
+
*
|
|
35158
|
+
* @protected
|
|
35159
|
+
*/
|
|
35160
|
+
_setDropdownItems(items) {
|
|
35161
|
+
this._dropdownItems = items;
|
|
35162
|
+
}
|
|
35163
|
+
|
|
35136
35164
|
/** @private */
|
|
35137
35165
|
_getItemElements() {
|
|
35138
35166
|
return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`));
|
|
@@ -35566,7 +35594,7 @@ class ComboBox extends ComboBoxDataProviderMixin(
|
|
|
35566
35594
|
|
|
35567
35595
|
defineCustomElement(ComboBox);
|
|
35568
35596
|
|
|
35569
|
-
const selectInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.select{font-family:\"Roboto\";font-style:normal}.select__wrapper{position:relative;width:100%}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color
|
|
35597
|
+
const selectInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.select{font-family:\"Roboto\";font-style:normal}.select__wrapper{position:relative;width:100%}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emfe-w-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(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.select__label--required::after{content:\"*\";font-family:inherit;color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]::part(input-field){border-color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C))}.select__input[invalid]::part(input-field){border:1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emfe-w-color-black, #000000)}.select__input vaadin-month-calendar::part(selected date){background-color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.select__input::part(input-field){border-radius:5px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);background-color:transparent;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-registration-typography, var(--emfe-w-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}";
|
|
35570
35598
|
|
|
35571
35599
|
const SelectInput = class {
|
|
35572
35600
|
constructor(hostRef) {
|
|
@@ -35703,7 +35731,7 @@ const SelectInput = class {
|
|
|
35703
35731
|
};
|
|
35704
35732
|
SelectInput.style = selectInputCss;
|
|
35705
35733
|
|
|
35706
|
-
const telInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:\"Roboto\";font-style:normal}.tel__wrapper{position:relative;width:100%}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color
|
|
35734
|
+
const telInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:\"Roboto\";font-style:normal}.tel__wrapper{position:relative;width:100%}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emfe-w-color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:stretch;border-radius:4px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.tel__wrapper--flex:focus-within{outline-color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C))}.tel__wrapper--flex--invalid{border:1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.tel__label--required::after{content:\"*\";font-family:inherit;color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));margin-left:2px}.tel__prefix{width:120px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){border-radius:0 5px 5px 0;background-color:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px}.tel__input{font-family:inherit;border-radius:5px;width:100%;height:44px;color:var(--emfe-w-color-black, #000000);background-color:transparent;border:none;padding:10px 20px;width:inherit;position:relative;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}";
|
|
35707
35735
|
|
|
35708
35736
|
const TelInput = class {
|
|
35709
35737
|
constructor(hostRef) {
|
|
@@ -35862,7 +35890,7 @@ const TelInput = class {
|
|
|
35862
35890
|
};
|
|
35863
35891
|
TelInput.style = telInputCss;
|
|
35864
35892
|
|
|
35865
|
-
const textInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:\"Roboto\";font-style:normal}.text__wrapper{position:relative;width:100%}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color
|
|
35893
|
+
const textInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:\"Roboto\";font-style:normal}.text__wrapper{position:relative;width:100%}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emfe-w-color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000))}.text__label--required::after{content:\"*\";font-family:inherit;color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));margin-left:2px}.text__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.text__input:focus{outline-color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C))}.text__input--invalid{border:1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.text__input::placeholder{color:var(--emfe-w-color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}";
|
|
35866
35894
|
|
|
35867
35895
|
const TextInput = class {
|
|
35868
35896
|
constructor(hostRef) {
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
function safeDecorator(fn) {
|
|
2
|
+
// eslint-disable-next-line func-names
|
|
3
|
+
return function (...args) {
|
|
4
|
+
try {
|
|
5
|
+
return fn.apply(this, args);
|
|
6
|
+
}
|
|
7
|
+
catch (error) {
|
|
8
|
+
if (error instanceof DOMException &&
|
|
9
|
+
error.message.includes('has already been used with this registry') || error.message.includes('Cannot define multiple custom elements with the same tag name')) {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
throw error;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
customElements.define = safeDecorator(customElements.define);
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h } from './index-db76d5b5.js'
|
|
|
2
2
|
import { t as translate } from './locale.utils-95ea2605.js';
|
|
3
3
|
import { t as tooltipIconSvg } from './tooltipIcon-99c1c7b7.js';
|
|
4
4
|
|
|
5
|
-
const toggleCheckboxInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:\"Roboto\";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color
|
|
5
|
+
const toggleCheckboxInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:\"Roboto\";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));line-height:14px}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}";
|
|
6
6
|
|
|
7
7
|
const ToggleCheckboxInput = class {
|
|
8
8
|
constructor(hostRef) {
|