@descope/web-components-ui 1.0.294 → 1.0.296
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.cjs.js +1147 -920
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1141 -913
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/1224.js +1 -1
- package/dist/umd/1438.js +16 -9
- package/dist/umd/1438.js.LICENSE.txt +12 -0
- package/dist/umd/1612.js +338 -0
- package/dist/umd/1621.js +1 -1
- package/dist/umd/2362.js +129 -0
- package/dist/umd/3830.js +2 -0
- package/dist/umd/{3003.js.LICENSE.txt → 3830.js.LICENSE.txt} +12 -0
- package/dist/umd/3951.js +116 -4
- package/dist/umd/3951.js.LICENSE.txt +18 -0
- package/dist/umd/{9211.js → 4024.js} +5 -5
- package/dist/umd/{2775.js → 4028.js} +10 -10
- package/dist/umd/4028.js.LICENSE.txt +23 -0
- package/dist/umd/4052.js +338 -0
- package/dist/umd/4392.js +1 -0
- package/dist/umd/4746.js +124 -0
- package/dist/umd/{6091.js.LICENSE.txt → 4746.js.LICENSE.txt} +6 -0
- package/dist/umd/4978.js +1 -0
- package/dist/umd/{4595.js → 5135.js} +93 -5
- package/dist/umd/{2775.js.LICENSE.txt → 5135.js.LICENSE.txt} +2 -2
- package/dist/umd/5517.js +1 -1
- package/dist/umd/5806.js +4 -4
- package/dist/umd/5910.js +1 -1
- package/dist/umd/63.js +147 -1
- package/dist/umd/63.js.LICENSE.txt +13 -1
- package/dist/umd/6594.js +2 -0
- package/dist/umd/{1940.js.LICENSE.txt → 6594.js.LICENSE.txt} +1 -1
- package/dist/umd/6770.js +4 -4
- package/dist/umd/7056.js +376 -5
- package/dist/umd/7056.js.LICENSE.txt +6 -0
- package/dist/umd/7164.js +148 -0
- package/dist/umd/{2106.js.LICENSE.txt → 7164.js.LICENSE.txt} +1 -7
- package/dist/umd/7531.js +1 -1
- package/dist/umd/7911.js +4 -4
- package/dist/umd/7911.js.LICENSE.txt +6 -0
- package/dist/umd/{3092.js → 8191.js} +40 -5
- package/dist/umd/8866.js +97 -5
- package/dist/umd/8866.js.LICENSE.txt +12 -0
- package/dist/umd/9092.js +440 -12
- package/dist/umd/9092.js.LICENSE.txt +6 -0
- package/dist/umd/{1940.js → 9314.js} +126 -7
- package/dist/umd/9314.js.LICENSE.txt +11 -0
- package/dist/umd/9423.js +608 -0
- package/dist/umd/9423.js.LICENSE.txt +23 -0
- package/dist/umd/9562.js +338 -0
- package/dist/umd/9562.js.LICENSE.txt +11 -0
- package/dist/umd/DescopeDev.js +1 -0
- package/dist/umd/boolean-fields-descope-boolean-field-internal-index-js.js +1 -1
- package/dist/umd/boolean-fields-descope-checkbox-index-js.js +2 -1
- package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +2 -1
- package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-internal-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-internal-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
- package/dist/umd/descope-avatar-index-js.js +1 -1
- package/dist/umd/descope-badge-index-js.js +1 -1
- package/dist/umd/descope-button-index-js.js +338 -1
- package/dist/umd/descope-button-index-js.js.LICENSE.txt +11 -0
- package/dist/umd/descope-combo-box-index-js.js +113 -1
- package/dist/umd/descope-container-index-js.js +1 -1
- package/dist/umd/descope-date-picker-index-js.js +1 -1
- package/dist/umd/descope-divider-index-js.js +1 -1
- package/dist/umd/descope-email-field-index-js.js +54 -1
- package/dist/umd/descope-email-field-index-js.js.LICENSE.txt +11 -0
- package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js +90 -1
- package/dist/umd/{4595.js.LICENSE.txt → descope-grid-descope-grid-custom-column-index-js.js.LICENSE.txt} +6 -0
- package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js +2 -1
- package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js.LICENSE.txt +17 -0
- package/dist/umd/descope-grid-descope-grid-text-column-index-js.js +90 -1
- package/dist/umd/descope-grid-descope-grid-text-column-index-js.js.LICENSE.txt +17 -0
- package/dist/umd/descope-grid-index-js.js +1 -1
- package/dist/umd/descope-image-index-js.js +1 -1
- package/dist/umd/descope-link-index-js.js +1 -1
- package/dist/umd/descope-loader-linear-index-js.js +1 -1
- package/dist/umd/descope-loader-radial-index-js.js +1 -1
- package/dist/umd/descope-logo-index-js.js +1 -1
- package/dist/umd/descope-modal-index-js.js +1 -1
- package/dist/umd/descope-multi-select-combo-box-index-js.js +1 -1
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
- package/dist/umd/descope-new-password-index-js.js +1 -1
- package/dist/umd/descope-notification-descope-notification-card-index-js.js +1 -1
- package/dist/umd/descope-notification-index-js.js +1 -1
- package/dist/umd/descope-notp-image-index-js.js +1 -1
- package/dist/umd/descope-number-field-index-js.js +1 -1
- package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js +1 -1
- package/dist/umd/descope-passcode-index-js.js +37 -1
- package/dist/umd/descope-passcode-index-js.js.LICENSE.txt +11 -0
- package/dist/umd/descope-password-index-js.js +1 -1
- package/dist/umd/descope-policy-validation-index-js.js +1 -1
- package/dist/umd/descope-recaptcha-index-js.js +1 -1
- package/dist/umd/descope-text-area-index-js.js +1 -1
- package/dist/umd/descope-text-field-index-js.js +37 -1
- package/dist/umd/descope-text-field-index-js.js.LICENSE.txt +11 -0
- package/dist/umd/descope-text-index-js.js +1 -1
- package/dist/umd/descope-totp-image-index-js.js +1 -1
- package/dist/umd/descope-upload-file-index-js.js +1 -1
- package/dist/umd/descope-user-attribute-index-js.js +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js +1 -0
- package/dist/umd/index.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-descope-mapping-item-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-descope-mappings-field-internal-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -126
- package/dist/umd/mapping-fields-descope-saml-group-mappings-descope-saml-group-mappings-internal-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +37 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js.LICENSE.txt +11 -0
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +1 -1
- package/package.json +21 -2
- package/src/components/descope-user-attribute/UserAttributeClass.js +13 -0
- package/src/components/descope-user-auth-method/UserAuthMethodClass.js +202 -0
- package/src/components/descope-user-auth-method/green-v.svg +3 -0
- package/src/components/descope-user-auth-method/index.js +9 -0
- package/src/dev/index.js +1 -0
- package/src/index.cjs.js +1 -0
- package/src/index.js +1 -0
- package/src/mixins/normalizeBooleanAttributesMixin.js +1 -1
- package/src/theme/components/index.js +2 -0
- package/src/theme/components/userAuthMethod.js +19 -0
- package/dist/umd/1000.js +0 -1
- package/dist/umd/1037.js +0 -2
- package/dist/umd/1721.js +0 -1
- package/dist/umd/2066.js +0 -2
- package/dist/umd/2106.js +0 -73
- package/dist/umd/2269.js +0 -2
- package/dist/umd/2269.js.LICENSE.txt +0 -5
- package/dist/umd/2481.js +0 -1
- package/dist/umd/262.js +0 -2
- package/dist/umd/262.js.LICENSE.txt +0 -5
- package/dist/umd/3003.js +0 -2
- package/dist/umd/3208.js +0 -2
- package/dist/umd/3208.js.LICENSE.txt +0 -5
- package/dist/umd/322.js +0 -90
- package/dist/umd/322.js.LICENSE.txt +0 -5
- package/dist/umd/3249.js +0 -2
- package/dist/umd/3249.js.LICENSE.txt +0 -5
- package/dist/umd/3373.js +0 -2
- package/dist/umd/3373.js.LICENSE.txt +0 -5
- package/dist/umd/3585.js +0 -1
- package/dist/umd/3878.js +0 -1
- package/dist/umd/4201.js +0 -1
- package/dist/umd/422.js +0 -2
- package/dist/umd/422.js.LICENSE.txt +0 -5
- package/dist/umd/4226.js +0 -114
- package/dist/umd/4447.js +0 -1
- package/dist/umd/4567.js +0 -1
- package/dist/umd/4577.js +0 -1
- package/dist/umd/4803.js +0 -1
- package/dist/umd/4905.js +0 -2
- package/dist/umd/4905.js.LICENSE.txt +0 -5
- package/dist/umd/4946.js +0 -2
- package/dist/umd/4946.js.LICENSE.txt +0 -5
- package/dist/umd/6091.js +0 -124
- package/dist/umd/6606.js +0 -17
- package/dist/umd/6687.js +0 -9
- package/dist/umd/6687.js.LICENSE.txt +0 -5
- package/dist/umd/6977.js +0 -2
- package/dist/umd/6977.js.LICENSE.txt +0 -5
- package/dist/umd/7044.js +0 -1
- package/dist/umd/7583.js +0 -113
- package/dist/umd/8623.js +0 -2
- package/dist/umd/8623.js.LICENSE.txt +0 -5
- package/dist/umd/8725.js +0 -37
- package/dist/umd/9189.js +0 -2
- package/dist/umd/9189.js.LICENSE.txt +0 -5
- package/dist/umd/9211.js.LICENSE.txt +0 -5
- package/dist/umd/9214.js +0 -1
- package/dist/umd/9320.js +0 -2
- package/dist/umd/9320.js.LICENSE.txt +0 -5
- package/dist/umd/9383.js +0 -94
- package/dist/umd/9434.js +0 -1
- package/dist/umd/9437.js +0 -19
- package/dist/umd/9437.js.LICENSE.txt +0 -5
- package/dist/umd/9680.js +0 -2
- package/dist/umd/9680.js.LICENSE.txt +0 -5
- package/dist/umd/9789.js +0 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js.LICENSE.txt +0 -5
- /package/dist/umd/{3092.js.LICENSE.txt → 1612.js.LICENSE.txt} +0 -0
- /package/dist/umd/{6606.js.LICENSE.txt → 2362.js.LICENSE.txt} +0 -0
- /package/dist/umd/{4226.js.LICENSE.txt → 4024.js.LICENSE.txt} +0 -0
- /package/dist/umd/{8725.js.LICENSE.txt → 4052.js.LICENSE.txt} +0 -0
- /package/dist/umd/{9383.js.LICENSE.txt → 8191.js.LICENSE.txt} +0 -0
- /package/dist/umd/{1037.js.LICENSE.txt → boolean-fields-descope-checkbox-index-js.js.LICENSE.txt} +0 -0
- /package/dist/umd/{2066.js.LICENSE.txt → boolean-fields-descope-switch-toggle-index-js.js.LICENSE.txt} +0 -0
- /package/dist/umd/{7583.js.LICENSE.txt → descope-combo-box-index-js.js.LICENSE.txt} +0 -0
package/dist/umd/6770.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*! For license information please see 6770.js.LICENSE.txt */
|
2
|
-
"use strict";(self.
|
2
|
+
"use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[6770],{9680:(t,e,i)=>{i.d(e,{F:()=>r});var a=i(1014);const n=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.resizables?t.target.resizables.forEach((e=>{e._onResize(t.contentRect)})):t.target._onResize(t.contentRect)}))}))})),r=(0,a.o)((t=>class extends t{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),n.observe(this),this._observeParent){const t=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;t.resizables||(t.resizables=new Set,n.observe(t)),t.resizables.add(this),this.__parent=t}}disconnectedCallback(){super.disconnectedCallback(),n.unobserve(this);const t=this.__parent;if(this._observeParent&&t){const e=t.resizables;e&&(e.delete(this),0===e.size&&n.unobserve(t)),this.__parent=null}}_onResize(t){}}))},422:(t,e,i)=>{i.d(e,{j:()=>n});var a=i(3406);const n=t=>class extends((0,a.L)(t)){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(t){this.__dataValue=t}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.value&&t.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),t.value=""),this.value&&(t.value=this.value))}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}_onInput(t){super._onInput(t),this.invalid&&this.validate()}_valueChanged(t,e){super._valueChanged(t,e),void 0!==e&&this.invalid&&this.validate()}}},6770:(t,e,i)=>{i(1578),i(1195),i(9098),i(4173);var a=i(7205),n=i(6570);const r=n.iv`
|
3
3
|
[part='input-field'],
|
4
4
|
[part='input-field'] ::slotted(textarea) {
|
5
5
|
height: auto;
|
@@ -49,7 +49,7 @@
|
|
49
49
|
[part='input-field'] ::slotted(vaadin-icon) {
|
50
50
|
margin-top: calc((var(--lumo-icon-size-m) - 1em * var(--lumo-line-height-s)) / -2);
|
51
51
|
}
|
52
|
-
`;(0,
|
52
|
+
`;(0,n.hC)("vaadin-text-area",[a.J,r],{moduleId:"lumo-text-area"}),i(3553);var o=i(4241),s=i(2807),l=i(2521),d=i(4463),p=i(2743),u=i(9680),h=i(422),c=i(6729),v=i(9229);class m extends v.n{constructor(t,e){super(t,"textarea","textarea",{initializer:(t,i)=>{const a=i.getAttribute("value");a&&(t.value=a);const n=i.getAttribute("name");n&&t.setAttribute("name",n),t.id=this.defaultId,"function"==typeof e&&e(t)},useUniqueId:!0})}}const g=t=>class extends((0,u.F)((0,h.j)(t))){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}get clearElement(){return this.$.clearButton}_onResize(){this._updateHeight(),this.__scrollPositionUpdated()}_onScroll(){this.__scrollPositionUpdated()}ready(){super.ready(),this.addController(new m(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new c.v(this.inputElement,this._labelController)),this.addEventListener("animationend",this._onAnimationEnd),this._inputField=this.shadowRoot.querySelector("[part=input-field]"),this._inputField.addEventListener("wheel",(t=>{const e=this._inputField.scrollTop;this._inputField.scrollTop+=t.deltaY,e!==this._inputField.scrollTop&&(t.preventDefault(),this.__scrollPositionUpdated())})),this._updateHeight(),this.__scrollPositionUpdated()}__scrollPositionUpdated(){this._inputField.style.setProperty("--_text-area-vertical-scroll-position","0px"),this._inputField.style.setProperty("--_text-area-vertical-scroll-position",`${this._inputField.scrollTop}px`)}_onAnimationEnd(t){0===t.animationName.indexOf("vaadin-text-area-appear")&&this._updateHeight()}_valueChanged(t,e){super._valueChanged(t,e),this._updateHeight()}_updateHeight(){const t=this.inputElement,e=this._inputField;if(!t||!e)return;const i=e.scrollTop,a=this.value?this.value.length:0;if(this._oldValueLength>=a){const i=getComputedStyle(e).height,a=getComputedStyle(t).width;e.style.display="block",e.style.height=i,t.style.maxWidth=a,t.style.height="auto"}this._oldValueLength=a;const n=t.scrollHeight;n>t.clientHeight&&(t.style.height=`${n}px`),t.style.removeProperty("max-width"),e.style.removeProperty("display"),e.style.removeProperty("height"),e.scrollTop=i}checkValidity(){if(!super.checkValidity())return!1;if(!this.pattern||!this.inputElement.value)return!0;try{const t=this.inputElement.value.match(this.pattern);return!!t&&t[0]===t.input}catch(t){return!0}}},_=i(9392).iv`
|
53
53
|
:host {
|
54
54
|
animation: 1ms vaadin-text-area-appear;
|
55
55
|
}
|
@@ -114,7 +114,7 @@
|
|
114
114
|
opacity: 1;
|
115
115
|
}
|
116
116
|
}
|
117
|
-
`;(0,
|
117
|
+
`;(0,n.hC)("vaadin-text-area",[p.J,_],{moduleId:"vaadin-text-area-styles"});class f extends(g((0,n.Tb)((0,l.S)(o.H3)))){static get is(){return"vaadin-text-area"}static get template(){return o.dy`
|
118
118
|
<div class="vaadin-text-area-container">
|
119
119
|
<div part="label">
|
120
120
|
<slot name="label"></slot>
|
@@ -145,4 +145,4 @@
|
|
145
145
|
</div>
|
146
146
|
|
147
147
|
<slot name="tooltip"></slot>
|
148
|
-
`}ready(){super.ready(),this._tooltipController=new d.f(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}(0,
|
148
|
+
`}ready(){super.ready(),this._tooltipController=new d.f(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}(0,s.M)(f)}}]);
|
package/dist/umd/7056.js
CHANGED
@@ -1,5 +1,341 @@
|
|
1
1
|
/*! For license information please see 7056.js.LICENSE.txt */
|
2
|
-
"use strict";(self.
|
2
|
+
"use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[7056],{7078:(t,e,o)=>{o.d(e,{z:()=>v});var r=o(4241),a=o(6155),i=o(2807),n=o(2521),s=o(4463),l=o(6570);const d=o(9392).iv`
|
3
|
+
:host {
|
4
|
+
display: inline-block;
|
5
|
+
position: relative;
|
6
|
+
outline: none;
|
7
|
+
white-space: nowrap;
|
8
|
+
-webkit-user-select: none;
|
9
|
+
-moz-user-select: none;
|
10
|
+
user-select: none;
|
11
|
+
}
|
12
|
+
|
13
|
+
:host([hidden]) {
|
14
|
+
display: none !important;
|
15
|
+
}
|
16
|
+
|
17
|
+
/* Aligns the button with form fields when placed on the same line.
|
18
|
+
Note, to make it work, the form fields should have the same "::before" pseudo-element. */
|
19
|
+
.vaadin-button-container::before {
|
20
|
+
content: '\\2003';
|
21
|
+
display: inline-block;
|
22
|
+
width: 0;
|
23
|
+
max-height: 100%;
|
24
|
+
}
|
25
|
+
|
26
|
+
.vaadin-button-container {
|
27
|
+
display: inline-flex;
|
28
|
+
align-items: center;
|
29
|
+
justify-content: center;
|
30
|
+
text-align: center;
|
31
|
+
width: 100%;
|
32
|
+
height: 100%;
|
33
|
+
min-height: inherit;
|
34
|
+
text-shadow: inherit;
|
35
|
+
}
|
36
|
+
|
37
|
+
[part='prefix'],
|
38
|
+
[part='suffix'] {
|
39
|
+
flex: none;
|
40
|
+
}
|
41
|
+
|
42
|
+
[part='label'] {
|
43
|
+
white-space: nowrap;
|
44
|
+
overflow: hidden;
|
45
|
+
text-overflow: ellipsis;
|
46
|
+
}
|
47
|
+
|
48
|
+
@media (forced-colors: active) {
|
49
|
+
:host {
|
50
|
+
outline: 1px solid;
|
51
|
+
outline-offset: -1px;
|
52
|
+
}
|
53
|
+
|
54
|
+
:host([focused]) {
|
55
|
+
outline-width: 2px;
|
56
|
+
}
|
57
|
+
|
58
|
+
:host([disabled]) {
|
59
|
+
outline-color: GrayText;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
`;var u=o(1224),h=o(1360),c=o(8298);const p=t=>class extends((0,u.D)((0,c.N)((0,h.W)(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}};(0,l.hC)("vaadin-button",d,{moduleId:"vaadin-button-styles"});class v extends(p((0,n.S)((0,l.Tb)((0,a.k)(r.H3))))){static get is(){return"vaadin-button"}static get template(){return r.dy`
|
63
|
+
<div class="vaadin-button-container">
|
64
|
+
<span part="prefix" aria-hidden="true">
|
65
|
+
<slot name="prefix"></slot>
|
66
|
+
</span>
|
67
|
+
<span part="label">
|
68
|
+
<slot></slot>
|
69
|
+
</span>
|
70
|
+
<span part="suffix" aria-hidden="true">
|
71
|
+
<slot name="suffix"></slot>
|
72
|
+
</span>
|
73
|
+
</div>
|
74
|
+
<slot name="tooltip"></slot>
|
75
|
+
`}ready(){super.ready(),this._tooltipController=new s.f(this),this.addController(this._tooltipController)}}(0,i.M)(v)},4750:(t,e,o)=>{o.d(e,{L:()=>a}),o(1195),o(9098),o(9416),o(9849),o(4173);var r=o(6570);const a=r.iv`
|
76
|
+
:host {
|
77
|
+
/* Sizing */
|
78
|
+
--lumo-button-size: var(--lumo-size-m);
|
79
|
+
min-width: var(--vaadin-button-min-width, calc(var(--_button-size) * 2));
|
80
|
+
height: var(--_button-size);
|
81
|
+
padding: var(--vaadin-button-padding, 0 calc(var(--_button-size) / 3 + var(--lumo-border-radius-m) / 2));
|
82
|
+
margin: var(--vaadin-button-margin, var(--lumo-space-xs) 0);
|
83
|
+
box-sizing: border-box;
|
84
|
+
/* Style */
|
85
|
+
font-family: var(--lumo-font-family);
|
86
|
+
font-size: var(--vaadin-button-font-size, var(--lumo-font-size-m));
|
87
|
+
font-weight: var(--vaadin-button-font-weight, 500);
|
88
|
+
color: var(--_lumo-button-text-color);
|
89
|
+
background: var(--_lumo-button-background);
|
90
|
+
border: var(--vaadin-button-border, none);
|
91
|
+
border-radius: var(--vaadin-button-border-radius, var(--lumo-border-radius-m));
|
92
|
+
cursor: var(--lumo-clickable-cursor);
|
93
|
+
-webkit-tap-highlight-color: transparent;
|
94
|
+
-webkit-font-smoothing: antialiased;
|
95
|
+
-moz-osx-font-smoothing: grayscale;
|
96
|
+
flex-shrink: 0;
|
97
|
+
--_button-size: var(--vaadin-button-height, var(--lumo-button-size));
|
98
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
99
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
100
|
+
/* Used by notification */
|
101
|
+
--_lumo-button-background: var(--vaadin-button-background, var(--lumo-contrast-5pct));
|
102
|
+
--_lumo-button-text-color: var(--vaadin-button-text-color, var(--lumo-primary-text-color));
|
103
|
+
--_lumo-button-primary-background: var(--vaadin-button-primary-background, var(--lumo-primary-color));
|
104
|
+
--_lumo-button-primary-text-color: var(--vaadin-button-primary-text-color, var(--lumo-primary-contrast-color));
|
105
|
+
}
|
106
|
+
|
107
|
+
/* Set only for the internal parts so we don't affect the host vertical alignment */
|
108
|
+
[part='label'],
|
109
|
+
[part='prefix'],
|
110
|
+
[part='suffix'] {
|
111
|
+
line-height: var(--lumo-line-height-xs);
|
112
|
+
}
|
113
|
+
|
114
|
+
[part='label'] {
|
115
|
+
padding: calc(var(--lumo-button-size) / 6) 0;
|
116
|
+
}
|
117
|
+
|
118
|
+
:host([theme~='small']) {
|
119
|
+
font-size: var(--lumo-font-size-s);
|
120
|
+
--lumo-button-size: var(--lumo-size-s);
|
121
|
+
}
|
122
|
+
|
123
|
+
:host([theme~='large']) {
|
124
|
+
font-size: var(--lumo-font-size-l);
|
125
|
+
--lumo-button-size: var(--lumo-size-l);
|
126
|
+
}
|
127
|
+
|
128
|
+
/* For interaction states */
|
129
|
+
:host::before,
|
130
|
+
:host::after {
|
131
|
+
content: '';
|
132
|
+
/* We rely on the host always being relative */
|
133
|
+
position: absolute;
|
134
|
+
z-index: 1;
|
135
|
+
inset: 0;
|
136
|
+
background-color: currentColor;
|
137
|
+
border-radius: inherit;
|
138
|
+
opacity: 0;
|
139
|
+
pointer-events: none;
|
140
|
+
}
|
141
|
+
|
142
|
+
/* Hover */
|
143
|
+
|
144
|
+
@media (any-hover: hover) {
|
145
|
+
:host(:hover)::before {
|
146
|
+
opacity: 0.02;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
/* Active */
|
151
|
+
|
152
|
+
:host::after {
|
153
|
+
transition: opacity 1.4s, transform 0.1s;
|
154
|
+
filter: blur(8px);
|
155
|
+
}
|
156
|
+
|
157
|
+
:host([active])::before {
|
158
|
+
opacity: 0.05;
|
159
|
+
transition-duration: 0s;
|
160
|
+
}
|
161
|
+
|
162
|
+
:host([active])::after {
|
163
|
+
opacity: 0.1;
|
164
|
+
transition-duration: 0s, 0s;
|
165
|
+
transform: scale(0);
|
166
|
+
}
|
167
|
+
|
168
|
+
/* Keyboard focus */
|
169
|
+
|
170
|
+
:host([focus-ring]) {
|
171
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
172
|
+
}
|
173
|
+
|
174
|
+
:host([theme~='primary'][focus-ring]) {
|
175
|
+
box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
|
176
|
+
}
|
177
|
+
|
178
|
+
/* Types (primary, tertiary, tertiary-inline */
|
179
|
+
|
180
|
+
:host([theme~='tertiary']),
|
181
|
+
:host([theme~='tertiary-inline']) {
|
182
|
+
--_background: transparent !important;
|
183
|
+
background: var(--vaadin-button-tertiary-background, var(--_background));
|
184
|
+
min-width: 0;
|
185
|
+
}
|
186
|
+
|
187
|
+
:host([theme~='tertiary']) {
|
188
|
+
border: var(--vaadin-button-tertiary-border, none);
|
189
|
+
color: var(--vaadin-button-tertiary-text-color, var(--lumo-primary-text-color));
|
190
|
+
font-weight: var(--vaadin-button-tertiary-font-weight, 500);
|
191
|
+
padding: var(--vaadin-button-tertiary-padding, 0 calc(var(--_button-size) / 6));
|
192
|
+
}
|
193
|
+
|
194
|
+
:host([theme~='tertiary-inline'])::before {
|
195
|
+
display: none;
|
196
|
+
}
|
197
|
+
|
198
|
+
:host([theme~='tertiary-inline']) {
|
199
|
+
margin: 0;
|
200
|
+
height: auto;
|
201
|
+
padding: 0;
|
202
|
+
line-height: inherit;
|
203
|
+
font-size: inherit;
|
204
|
+
}
|
205
|
+
|
206
|
+
:host([theme~='tertiary-inline']) [part='label'] {
|
207
|
+
padding: 0;
|
208
|
+
overflow: visible;
|
209
|
+
line-height: inherit;
|
210
|
+
}
|
211
|
+
|
212
|
+
:host([theme~='primary']) {
|
213
|
+
background: var(--_lumo-button-primary-background);
|
214
|
+
border: var(--vaadin-button-primary-border, none);
|
215
|
+
color: var(--_lumo-button-primary-text-color);
|
216
|
+
font-weight: var(--vaadin-button-primary-font-weight, 600);
|
217
|
+
min-width: calc(var(--lumo-button-size) * 2.5);
|
218
|
+
}
|
219
|
+
|
220
|
+
:host([theme~='primary'])::before {
|
221
|
+
background-color: black;
|
222
|
+
}
|
223
|
+
|
224
|
+
@media (any-hover: hover) {
|
225
|
+
:host([theme~='primary']:hover)::before {
|
226
|
+
opacity: 0.05;
|
227
|
+
}
|
228
|
+
}
|
229
|
+
|
230
|
+
:host([theme~='primary'][active])::before {
|
231
|
+
opacity: 0.1;
|
232
|
+
}
|
233
|
+
|
234
|
+
:host([theme~='primary'][active])::after {
|
235
|
+
opacity: 0.2;
|
236
|
+
}
|
237
|
+
|
238
|
+
/* Colors (success, error, contrast) */
|
239
|
+
|
240
|
+
:host([theme~='success']) {
|
241
|
+
color: var(--lumo-success-text-color);
|
242
|
+
}
|
243
|
+
|
244
|
+
:host([theme~='success'][theme~='primary']) {
|
245
|
+
background-color: var(--lumo-success-color);
|
246
|
+
color: var(--lumo-success-contrast-color);
|
247
|
+
}
|
248
|
+
|
249
|
+
:host([theme~='error']) {
|
250
|
+
color: var(--lumo-error-text-color);
|
251
|
+
}
|
252
|
+
|
253
|
+
:host([theme~='error'][theme~='primary']) {
|
254
|
+
background-color: var(--lumo-error-color);
|
255
|
+
color: var(--lumo-error-contrast-color);
|
256
|
+
}
|
257
|
+
|
258
|
+
:host([theme~='contrast']) {
|
259
|
+
color: var(--lumo-contrast);
|
260
|
+
}
|
261
|
+
|
262
|
+
:host([theme~='contrast'][theme~='primary']) {
|
263
|
+
background-color: var(--lumo-contrast);
|
264
|
+
color: var(--lumo-base-color);
|
265
|
+
}
|
266
|
+
|
267
|
+
/* Disabled state. Keep selectors after other color variants. */
|
268
|
+
|
269
|
+
:host([disabled]) {
|
270
|
+
pointer-events: none;
|
271
|
+
color: var(--lumo-disabled-text-color);
|
272
|
+
}
|
273
|
+
|
274
|
+
:host([theme~='primary'][disabled]) {
|
275
|
+
background-color: var(--lumo-contrast-30pct);
|
276
|
+
color: var(--lumo-base-color);
|
277
|
+
}
|
278
|
+
|
279
|
+
:host([theme~='primary'][disabled]) [part] {
|
280
|
+
opacity: 0.7;
|
281
|
+
}
|
282
|
+
|
283
|
+
/* Icons */
|
284
|
+
|
285
|
+
[part] ::slotted(vaadin-icon) {
|
286
|
+
display: inline-block;
|
287
|
+
width: var(--lumo-icon-size-m);
|
288
|
+
height: var(--lumo-icon-size-m);
|
289
|
+
}
|
290
|
+
|
291
|
+
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
292
|
+
[part] ::slotted(vaadin-icon[icon^='vaadin:']) {
|
293
|
+
padding: 0.25em;
|
294
|
+
box-sizing: border-box !important;
|
295
|
+
}
|
296
|
+
|
297
|
+
[part='prefix'] {
|
298
|
+
margin-left: -0.25em;
|
299
|
+
margin-right: 0.25em;
|
300
|
+
}
|
301
|
+
|
302
|
+
[part='suffix'] {
|
303
|
+
margin-left: 0.25em;
|
304
|
+
margin-right: -0.25em;
|
305
|
+
}
|
306
|
+
|
307
|
+
/* Icon-only */
|
308
|
+
|
309
|
+
:host([theme~='icon']:not([theme~='tertiary-inline'])) {
|
310
|
+
min-width: var(--lumo-button-size);
|
311
|
+
padding-left: calc(var(--lumo-button-size) / 4);
|
312
|
+
padding-right: calc(var(--lumo-button-size) / 4);
|
313
|
+
}
|
314
|
+
|
315
|
+
:host([theme~='icon']) [part='prefix'],
|
316
|
+
:host([theme~='icon']) [part='suffix'] {
|
317
|
+
margin-left: 0;
|
318
|
+
margin-right: 0;
|
319
|
+
}
|
320
|
+
|
321
|
+
/* RTL specific styles */
|
322
|
+
|
323
|
+
:host([dir='rtl']) [part='prefix'] {
|
324
|
+
margin-left: 0.25em;
|
325
|
+
margin-right: -0.25em;
|
326
|
+
}
|
327
|
+
|
328
|
+
:host([dir='rtl']) [part='suffix'] {
|
329
|
+
margin-left: -0.25em;
|
330
|
+
margin-right: 0.25em;
|
331
|
+
}
|
332
|
+
|
333
|
+
:host([dir='rtl'][theme~='icon']) [part='prefix'],
|
334
|
+
:host([dir='rtl'][theme~='icon']) [part='suffix'] {
|
335
|
+
margin-left: 0;
|
336
|
+
margin-right: 0;
|
337
|
+
}
|
338
|
+
`;(0,r.hC)("vaadin-button",a,{moduleId:"lumo-button"})},3208:(t,e,o)=>{o.d(e,{b:()=>a});var r=o(9229);class a extends r.n{constructor(t,e){super(t,"input","input",{initializer:(t,o)=>{o.value&&(t.value=o.value),o.type&&t.setAttribute("type",o.type),t.id=this.defaultId,"function"==typeof e&&e(t)},useUniqueId:!0})}}},422:(t,e,o)=>{o.d(e,{j:()=>a});var r=o(3406);const a=t=>class extends((0,r.L)(t)){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(t){this.__dataValue=t}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.value&&t.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),t.value=""),this.value&&(t.value=this.value))}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}_onInput(t){super._onInput(t),this.invalid&&this.validate()}_valueChanged(t,e){super._valueChanged(t,e),void 0!==e&&this.invalid&&this.validate()}}},7056:(t,e,o)=>{o(8725);var r=o(4750),a=o(6570);const i=a.iv`
|
3
339
|
:host {
|
4
340
|
position: absolute;
|
5
341
|
right: 0;
|
@@ -12,7 +348,7 @@
|
|
12
348
|
background: transparent;
|
13
349
|
outline: none;
|
14
350
|
}
|
15
|
-
`;(0,
|
351
|
+
`;(0,a.hC)("vaadin-password-field-button",[r.L,i],{moduleId:"lumo-password-field-button"}),o(1735),o(9098),o(9849);var n=o(7205);const s=a.iv`
|
16
352
|
[part='reveal-button']::before {
|
17
353
|
content: var(--lumo-icons-eye);
|
18
354
|
}
|
@@ -30,7 +366,7 @@
|
|
30
366
|
[part='reveal-button'][hidden] {
|
31
367
|
display: none !important;
|
32
368
|
}
|
33
|
-
`;(0,
|
369
|
+
`;(0,a.hC)("vaadin-password-field",[n.J,s],{moduleId:"lumo-password-field"});var l=o(4241),d=o(7078),u=o(2807);class h extends d.z{static get is(){return"vaadin-password-field-button"}static get template(){return l.dy`
|
34
370
|
<style>
|
35
371
|
:host {
|
36
372
|
display: block;
|
@@ -41,8 +377,43 @@
|
|
41
377
|
}
|
42
378
|
</style>
|
43
379
|
<slot name="tooltip"></slot>
|
44
|
-
`}}(0,u.M)(h);var
|
380
|
+
`}}(0,u.M)(h);var c=o(1121),p=o(9229),v=o(8005);const m=c.d`
|
45
381
|
<div part="reveal-button" slot="suffix">
|
46
382
|
<slot name="reveal"></slot>
|
47
383
|
</div>
|
48
|
-
`;let
|
384
|
+
`;let b;class g extends v.n{static get is(){return"vaadin-password-field"}static get template(){if(!b){b=super.template.cloneNode(!0);const t=m.content.querySelector('[part="reveal-button"]');b.content.querySelector('[part="input-field"]').appendChild(t)}return b}static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n.*)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const t=this.localName;return[...super.slotStyles,`\n ${t} [slot="input"]::-ms-reveal {\n display: none;\n }\n `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new p.n(this,"reveal","vaadin-password-field-button",{initializer:t=>{t.disabled=this.disabled,t.addEventListener("click",this.__boundRevealButtonClick),t.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(t){super._onChange(t),this.__lastChange=this.inputElement.value}_shouldSetFocus(t){return t.target===this.inputElement||t.target===this._revealNode}_shouldRemoveFocus(t){return!(t.relatedTarget===this._revealNode||t.relatedTarget===this.inputElement&&t.target===this._revealNode)}_setFocused(t){if(super._setFocused(t),t){const t=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!t)}else this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})))}__updateAriaLabel(t){t.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",t.reveal)}__i18nChanged(t){this.__updateAriaLabel(t.base)}_revealButtonHiddenChanged(t){this._toggleRevealHidden(t)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(t){this._revealNode&&(t?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(t){this._revealNode&&this._revealNode.setAttribute("aria-pressed",t?"true":"false")}_passwordVisibleChanged(t){this._setType(t?"text":"password"),this._updateToggleState(t)}_disabledChanged(t,e){super._disabledChanged(t,e),this._revealNode&&(this._revealNode.disabled=t)}}(0,u.M)(g)},8005:(t,e,o)=>{o.d(e,{n:()=>p}),o(3553);var r=o(4241),a=o(2807),i=o(2521),n=o(4463),s=o(2743),l=o(6570),d=o(3208),u=o(422),h=o(6729);const c=t=>class extends((0,u.j)(t)){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new d.b(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new h.v(this.inputElement,this._labelController))}};(0,l.hC)("vaadin-text-field",s.J,{moduleId:"vaadin-text-field-styles"});class p extends(c((0,l.Tb)((0,i.S)(r.H3)))){static get is(){return"vaadin-text-field"}static get template(){return r.dy`
|
385
|
+
<style>
|
386
|
+
[part='input-field'] {
|
387
|
+
flex-grow: 0;
|
388
|
+
}
|
389
|
+
</style>
|
390
|
+
|
391
|
+
<div class="vaadin-field-container">
|
392
|
+
<div part="label">
|
393
|
+
<slot name="label"></slot>
|
394
|
+
<span part="required-indicator" aria-hidden="true" on-click="focus"></span>
|
395
|
+
</div>
|
396
|
+
|
397
|
+
<vaadin-input-container
|
398
|
+
part="input-field"
|
399
|
+
readonly="[[readonly]]"
|
400
|
+
disabled="[[disabled]]"
|
401
|
+
invalid="[[invalid]]"
|
402
|
+
theme$="[[_theme]]"
|
403
|
+
>
|
404
|
+
<slot name="prefix" slot="prefix"></slot>
|
405
|
+
<slot name="input"></slot>
|
406
|
+
<slot name="suffix" slot="suffix"></slot>
|
407
|
+
<div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
|
408
|
+
</vaadin-input-container>
|
409
|
+
|
410
|
+
<div part="helper-text">
|
411
|
+
<slot name="helper"></slot>
|
412
|
+
</div>
|
413
|
+
|
414
|
+
<div part="error-message">
|
415
|
+
<slot name="error-message"></slot>
|
416
|
+
</div>
|
417
|
+
</div>
|
418
|
+
<slot name="tooltip"></slot>
|
419
|
+
`}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new n.f(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}(0,a.M)(p)},8725:(t,e,o)=>{o(1578);var r=o(7205);(0,o(6570).hC)("vaadin-text-field",r.J,{moduleId:"lumo-text-field-styles"}),o(8005)}}]);
|
package/dist/umd/7164.js
ADDED
@@ -0,0 +1,148 @@
|
|
1
|
+
/*! For license information please see 7164.js.LICENSE.txt */
|
2
|
+
"use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[7164,63],{7583:(t,e,o)=>{o(8900),o(3891),o(1578),o(1735);var a=o(7205),i=o(6570);const r=i.iv`
|
3
|
+
:host {
|
4
|
+
outline: none;
|
5
|
+
}
|
6
|
+
|
7
|
+
[part='toggle-button']::before {
|
8
|
+
content: var(--lumo-icons-dropdown);
|
9
|
+
}
|
10
|
+
`;(0,i.hC)("vaadin-combo-box",[a.J,r],{moduleId:"lumo-combo-box"}),o(3553);var s=o(4241),n=o(2807),l=o(1914),d=o(5115);class p extends((0,d.O)((0,i.Tb)((0,l.U)(s.H3)))){static get template(){return s.dy`
|
11
|
+
<style>
|
12
|
+
:host {
|
13
|
+
display: block;
|
14
|
+
}
|
15
|
+
|
16
|
+
:host([hidden]) {
|
17
|
+
display: none;
|
18
|
+
}
|
19
|
+
</style>
|
20
|
+
<span part="checkmark" aria-hidden="true"></span>
|
21
|
+
<div part="content">
|
22
|
+
<slot></slot>
|
23
|
+
</div>
|
24
|
+
`}static get is(){return"vaadin-combo-box-item"}}(0,n.M)(p);var c=o(4457),u=o(6196),h=o(3515);const v=i.iv`
|
25
|
+
#overlay {
|
26
|
+
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
27
|
+
}
|
28
|
+
|
29
|
+
[part='content'] {
|
30
|
+
display: flex;
|
31
|
+
flex-direction: column;
|
32
|
+
height: 100%;
|
33
|
+
}
|
34
|
+
`;(0,i.hC)("vaadin-combo-box-overlay",[u.r,v],{moduleId:"vaadin-combo-box-overlay-styles"});class m extends((0,h.H)((0,c.F)((0,l.U)((0,i.Tb)(s.H3))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return s.dy`
|
35
|
+
<div id="backdrop" part="backdrop" hidden></div>
|
36
|
+
<div part="overlay" id="overlay">
|
37
|
+
<div part="loader"></div>
|
38
|
+
<div part="content" id="content"><slot></slot></div>
|
39
|
+
</div>
|
40
|
+
`}}(0,n.M)(m);var b=o(1502);class g extends((0,b.t)(s.H3)){static get is(){return"vaadin-combo-box-scroller"}static get template(){return s.dy`
|
41
|
+
<style>
|
42
|
+
:host {
|
43
|
+
display: block;
|
44
|
+
min-height: 1px;
|
45
|
+
overflow: auto;
|
46
|
+
|
47
|
+
/* Fixes item background from getting on top of scrollbars on Safari */
|
48
|
+
transform: translate3d(0, 0, 0);
|
49
|
+
|
50
|
+
/* Enable momentum scrolling on iOS */
|
51
|
+
-webkit-overflow-scrolling: touch;
|
52
|
+
|
53
|
+
/* Fixes scrollbar disappearing when 'Show scroll bars: Always' enabled in Safari */
|
54
|
+
box-shadow: 0 0 0 white;
|
55
|
+
}
|
56
|
+
|
57
|
+
#selector {
|
58
|
+
border-width: var(--_vaadin-combo-box-items-container-border-width);
|
59
|
+
border-style: var(--_vaadin-combo-box-items-container-border-style);
|
60
|
+
border-color: var(--_vaadin-combo-box-items-container-border-color, transparent);
|
61
|
+
position: relative;
|
62
|
+
}
|
63
|
+
</style>
|
64
|
+
<div id="selector">
|
65
|
+
<slot></slot>
|
66
|
+
</div>
|
67
|
+
`}}(0,n.M)(g);var y=o(2521),_=o(4463),x=o(3406),f=o(3208),C=o(6729),w=o(9091);const k=t=>class extends((0,w.t)(t)){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};var T=o(2743),E=o(9031),S=o(2589);(0,i.hC)("vaadin-combo-box",T.J,{moduleId:"vaadin-combo-box-styles"});class A extends((0,E.Y)((0,S.t)(k((0,x.L)((0,i.Tb)((0,y.S)(s.H3))))))){static get is(){return"vaadin-combo-box"}static get template(){return s.dy`
|
68
|
+
<style>
|
69
|
+
:host([opened]) {
|
70
|
+
pointer-events: auto;
|
71
|
+
}
|
72
|
+
</style>
|
73
|
+
|
74
|
+
<div class="vaadin-combo-box-container">
|
75
|
+
<div part="label">
|
76
|
+
<slot name="label"></slot>
|
77
|
+
<span part="required-indicator" aria-hidden="true" on-click="focus"></span>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
<vaadin-input-container
|
81
|
+
part="input-field"
|
82
|
+
readonly="[[readonly]]"
|
83
|
+
disabled="[[disabled]]"
|
84
|
+
invalid="[[invalid]]"
|
85
|
+
theme$="[[_theme]]"
|
86
|
+
>
|
87
|
+
<slot name="prefix" slot="prefix"></slot>
|
88
|
+
<slot name="input"></slot>
|
89
|
+
<div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
|
90
|
+
<div id="toggleButton" part="toggle-button" slot="suffix" aria-hidden="true"></div>
|
91
|
+
</vaadin-input-container>
|
92
|
+
|
93
|
+
<div part="helper-text">
|
94
|
+
<slot name="helper"></slot>
|
95
|
+
</div>
|
96
|
+
|
97
|
+
<div part="error-message">
|
98
|
+
<slot name="error-message"></slot>
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
|
102
|
+
<vaadin-combo-box-overlay
|
103
|
+
id="overlay"
|
104
|
+
opened="[[_overlayOpened]]"
|
105
|
+
loading$="[[loading]]"
|
106
|
+
theme$="[[_theme]]"
|
107
|
+
position-target="[[_positionTarget]]"
|
108
|
+
no-vertical-overlap
|
109
|
+
restore-focus-node="[[inputElement]]"
|
110
|
+
></vaadin-combo-box-overlay>
|
111
|
+
|
112
|
+
<slot name="tooltip"></slot>
|
113
|
+
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new f.b(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new C.v(this.inputElement,this._labelController)),this._tooltipController=new _.f(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}(0,n.M)(A)},422:(t,e,o)=>{o.d(e,{j:()=>i});var a=o(3406);const i=t=>class extends((0,a.L)(t)){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(t){this.__dataValue=t}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.value&&t.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),t.value=""),this.value&&(t.value=this.value))}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}_onInput(t){super._onInput(t),this.invalid&&this.validate()}_valueChanged(t,e){super._valueChanged(t,e),void 0!==e&&this.invalid&&this.validate()}}},8005:(t,e,o)=>{o.d(e,{n:()=>h}),o(3553);var a=o(4241),i=o(2807),r=o(2521),s=o(4463),n=o(2743),l=o(6570),d=o(3208),p=o(422),c=o(6729);const u=t=>class extends((0,p.j)(t)){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new d.b(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new c.v(this.inputElement,this._labelController))}};(0,l.hC)("vaadin-text-field",n.J,{moduleId:"vaadin-text-field-styles"});class h extends(u((0,l.Tb)((0,r.S)(a.H3)))){static get is(){return"vaadin-text-field"}static get template(){return a.dy`
|
114
|
+
<style>
|
115
|
+
[part='input-field'] {
|
116
|
+
flex-grow: 0;
|
117
|
+
}
|
118
|
+
</style>
|
119
|
+
|
120
|
+
<div class="vaadin-field-container">
|
121
|
+
<div part="label">
|
122
|
+
<slot name="label"></slot>
|
123
|
+
<span part="required-indicator" aria-hidden="true" on-click="focus"></span>
|
124
|
+
</div>
|
125
|
+
|
126
|
+
<vaadin-input-container
|
127
|
+
part="input-field"
|
128
|
+
readonly="[[readonly]]"
|
129
|
+
disabled="[[disabled]]"
|
130
|
+
invalid="[[invalid]]"
|
131
|
+
theme$="[[_theme]]"
|
132
|
+
>
|
133
|
+
<slot name="prefix" slot="prefix"></slot>
|
134
|
+
<slot name="input"></slot>
|
135
|
+
<slot name="suffix" slot="suffix"></slot>
|
136
|
+
<div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
|
137
|
+
</vaadin-input-container>
|
138
|
+
|
139
|
+
<div part="helper-text">
|
140
|
+
<slot name="helper"></slot>
|
141
|
+
</div>
|
142
|
+
|
143
|
+
<div part="error-message">
|
144
|
+
<slot name="error-message"></slot>
|
145
|
+
</div>
|
146
|
+
</div>
|
147
|
+
<slot name="tooltip"></slot>
|
148
|
+
`}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new s.f(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}(0,i.M)(h)},8725:(t,e,o)=>{o(1578);var a=o(7205);(0,o(6570).hC)("vaadin-text-field",a.J,{moduleId:"lumo-text-field-styles"}),o(8005)},9789:(t,e,o)=>{o(8725),o(8005)}}]);
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
/**
|
8
8
|
* @license
|
9
|
-
* Copyright (c)
|
9
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
10
10
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
11
11
|
*/
|
12
12
|
|
@@ -15,9 +15,3 @@
|
|
15
15
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
16
16
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
17
17
|
*/
|
18
|
-
|
19
|
-
/**
|
20
|
-
* @license
|
21
|
-
* Copyright 2017 Google LLC
|
22
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
23
|
-
*/
|