@descope/web-components-ui 1.0.373 → 1.0.375

Sign up to get free protection for your applications and to get access to all the features.
package/dist/umd/7164.js DELETED
@@ -1,148 +0,0 @@
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],{47583:(t,e,o)=>{o(48900),o(53891),o(21578),o(71189);var a=o(83208),i=o(46570);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(13553);var s=o(74241),n=o(52807),l=o(51914),d=o(45115);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(44457),u=o(6196),h=o(43515);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(16557);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(12521),_=o(34463),x=o(73406),f=o(73208),C=o(46729),w=o(39091);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(62743),E=o(99031),S=o(82589);(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)},20422:(t,e,o)=>{o.d(e,{j:()=>i});var a=o(73406);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()}}},18005:(t,e,o)=>{o.d(e,{n:()=>h}),o(13553);var a=o(74241),i=o(52807),r=o(12521),s=o(34463),n=o(62743),l=o(46570),d=o(73208),p=o(20422),c=o(46729);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)},58725:(t,e,o)=>{o(21578);var a=o(83208);(0,o(46570).hC)("vaadin-text-field",a.J,{moduleId:"lumo-text-field-styles"}),o(18005)},79789:(t,e,o)=>{o(58725),o(18005)}}]);