@descope/web-components-ui 3.12.1 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/cjs/index.cjs.js +4121 -2426
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +3165 -1468
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/umd/6618.js +591 -0
  6. package/dist/umd/{7387.js.LICENSE.txt → 6618.js.LICENSE.txt} +6 -0
  7. package/dist/umd/6618.js.map +1 -0
  8. package/dist/umd/8350.js +2 -0
  9. package/dist/umd/8350.js.map +1 -0
  10. package/dist/umd/9265.js +2 -0
  11. package/dist/umd/9265.js.map +1 -0
  12. package/dist/umd/DescopeDev.js +1 -1
  13. package/dist/umd/DescopeDev.js.map +1 -1
  14. package/dist/umd/descope-date-field-descope-calendar-index-js.js +449 -1
  15. package/dist/umd/descope-date-field-descope-calendar-index-js.js.map +1 -1
  16. package/dist/umd/descope-date-field-index-js.js +1 -1
  17. package/dist/umd/descope-date-field-index-js.js.map +1 -1
  18. package/dist/umd/descope-email-field-index-js.js +2 -2
  19. package/dist/umd/descope-email-field-index-js.js.map +1 -1
  20. package/dist/umd/descope-hybrid-field-index-js.js +1 -1
  21. package/dist/umd/descope-hybrid-field-index-js.js.map +1 -1
  22. package/dist/umd/descope-month-day-field-picker.js +114 -0
  23. package/dist/umd/descope-month-day-field-picker.js.LICENSE.txt +11 -0
  24. package/dist/umd/descope-month-day-field-picker.js.map +1 -0
  25. package/dist/umd/descope-month-day-field.js +2 -0
  26. package/dist/umd/descope-month-day-field.js.map +1 -0
  27. package/dist/umd/descope-new-password-index-js.js +1 -1
  28. package/dist/umd/descope-new-password-index-js.js.map +1 -1
  29. package/dist/umd/descope-number-field-index-js.js +1 -1
  30. package/dist/umd/descope-number-field-index-js.js.map +1 -1
  31. package/dist/umd/descope-passcode-index-js.js +1 -1
  32. package/dist/umd/descope-passcode-index-js.js.map +1 -1
  33. package/dist/umd/descope-radio-group-index-js.js +1 -1
  34. package/dist/umd/descope-radio-group-index-js.js.map +1 -1
  35. package/dist/umd/descope-security-questions-setup-index-js.js +1 -1
  36. package/dist/umd/descope-security-questions-setup-index-js.js.map +1 -1
  37. package/dist/umd/descope-security-questions-verify-index-js.js +1 -1
  38. package/dist/umd/descope-security-questions-verify-index-js.js.map +1 -1
  39. package/dist/umd/descope-text-field.js +38 -0
  40. package/dist/umd/descope-text-field.js.map +1 -0
  41. package/dist/umd/index.js +1 -1
  42. package/dist/umd/index.js.map +1 -1
  43. package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
  44. package/dist/umd/mapping-fields-descope-mappings-field-index-js.js.map +1 -1
  45. package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
  46. package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js.map +1 -1
  47. package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
  48. package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js.map +1 -1
  49. package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
  50. package/dist/umd/phone-fields-descope-phone-field-index-js.js.map +1 -1
  51. package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +1 -1
  52. package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js.map +1 -1
  53. package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +1 -1
  54. package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js.map +1 -1
  55. package/package.json +39 -36
  56. package/src/components/descope-date-field/DateFieldClass.js +1 -1
  57. package/src/components/descope-date-field/index.js +1 -1
  58. package/src/components/descope-email-field/EmailFieldClass.js +1 -1
  59. package/src/components/descope-new-password/index.js +1 -1
  60. package/src/components/descope-number-field/NumberFieldClass.js +1 -1
  61. package/src/components/descope-passcode/PasscodeClass.js +1 -1
  62. package/src/components/descope-passcode/index.js +1 -1
  63. package/src/components/descope-radio-group/RadioGroupClass.js +1 -1
  64. package/src/components/descope-security-questions-setup/SecurityQuestionsSetupClass.js +1 -1
  65. package/src/components/descope-security-questions-setup/index.js +1 -1
  66. package/src/components/descope-security-questions-verify/SecurityQuestionsVerifyClass.js +1 -1
  67. package/src/components/descope-security-questions-verify/index.js +1 -1
  68. package/src/components/mapping-fields/descope-mappings-field/index.js +1 -1
  69. package/src/components/mapping-fields/descope-saml-group-mappings/index.js +1 -1
  70. package/src/components/phone-fields/descope-phone-field/PhoneFieldClass.js +1 -1
  71. package/src/components/phone-fields/descope-phone-field/descope-phone-field-internal/index.js +1 -1
  72. package/src/components/phone-fields/descope-phone-field/index.js +1 -1
  73. package/src/components/phone-fields/descope-phone-input-box-field/PhoneFieldInputBoxClass.js +1 -1
  74. package/src/components/phone-fields/descope-phone-input-box-field/descope-phone-input-box-internal/index.js +1 -1
  75. package/src/components/phone-fields/descope-phone-input-box-field/index.js +1 -1
  76. package/src/index.cjs.js +2 -2
  77. package/src/index.js +0 -1
  78. package/src/theme/components/index.js +5 -1
  79. package/stories/descope-text-field.stories.js +1 -1
  80. package/dist/umd/3685.js +0 -2
  81. package/dist/umd/3685.js.map +0 -1
  82. package/dist/umd/4518.js +0 -450
  83. package/dist/umd/4518.js.map +0 -1
  84. package/dist/umd/7387.js +0 -144
  85. package/dist/umd/7387.js.map +0 -1
  86. package/dist/umd/descope-text-field-index-js.js +0 -38
  87. package/dist/umd/descope-text-field-index-js.js.map +0 -1
  88. package/src/components/descope-text-field/TextFieldClass.js +0 -142
  89. package/src/components/descope-text-field/index.js +0 -9
  90. package/src/components/descope-text-field/textFieldMappings.js +0 -169
  91. package/src/theme/components/textField.js +0 -71
  92. /package/dist/umd/{4518.js.LICENSE.txt → descope-date-field-descope-calendar-index-js.js.LICENSE.txt} +0 -0
  93. /package/dist/umd/{descope-text-field-index-js.js.LICENSE.txt → descope-text-field.js.LICENSE.txt} +0 -0
@@ -0,0 +1,591 @@
1
+ /*! For license information please see 6618.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[3620,4550,5691,6028,6477,6618],{89389(t,e,o){o.d(e,{$:()=>_});var r=o(13256),i=o(55774),s=o(82901),a=o(72562),n=o(81488),l=o(87550);const d=o(51450).AH`
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 h=o(84467),c=o(53149),u=o(36176);const p=t=>class extends((0,h.e)((0,u.l)((0,c.y)(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.SF)("vaadin-button",d,{moduleId:"vaadin-button-styles"});class _ extends(p((0,a.q)((0,l.cp)((0,i.w)(r.Pu))))){static get is(){return"vaadin-button"}static get template(){return r.qy`
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 n.I(this),this.addController(this._tooltipController)}}(0,s.X)(_)},93555(t,e,o){o.d(e,{x:()=>i}),o(64511),o(42068),o(9433),o(3241),o(83315);var r=o(87550);const i=r.AH`
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.SF)("vaadin-button",i,{moduleId:"lumo-button"})},83799(t,e,o){o(93555),o(89389)},1632(t,e,o){o(52915),o(54886),o(27397),o(25244);var r=o(47642),i=o(87550);const s=i.AH`
339
+ :host {
340
+ outline: none;
341
+ }
342
+
343
+ [part='toggle-button']::before {
344
+ content: var(--lumo-icons-dropdown);
345
+ }
346
+ `;(0,i.SF)("vaadin-combo-box",[r.k,s],{moduleId:"lumo-combo-box"}),o(86689);var a=o(13256),n=o(82901),l=o(23927),d=o(79769);class h extends((0,d.y)((0,i.cp)((0,l.v)(a.Pu)))){static get template(){return a.qy`
347
+ <style>
348
+ :host {
349
+ display: block;
350
+ }
351
+
352
+ :host([hidden]) {
353
+ display: none;
354
+ }
355
+ </style>
356
+ <span part="checkmark" aria-hidden="true"></span>
357
+ <div part="content">
358
+ <slot></slot>
359
+ </div>
360
+ `}static get is(){return"vaadin-combo-box-item"}}(0,n.X)(h);var c=o(58069),u=o(5072),p=o(32888);const _=i.AH`
361
+ #overlay {
362
+ width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
363
+ }
364
+
365
+ [part='content'] {
366
+ display: flex;
367
+ flex-direction: column;
368
+ height: 100%;
369
+ }
370
+ `;(0,i.SF)("vaadin-combo-box-overlay",[u.B,_],{moduleId:"vaadin-combo-box-overlay-styles"});class v extends((0,p.p)((0,c.c)((0,l.v)((0,i.cp)(a.Pu))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return a.qy`
371
+ <div id="backdrop" part="backdrop" hidden></div>
372
+ <div part="overlay" id="overlay">
373
+ <div part="loader"></div>
374
+ <div part="content" id="content"><slot></slot></div>
375
+ </div>
376
+ `}}(0,n.X)(v);var m=o(70616);class g extends((0,m.N)(a.Pu)){static get is(){return"vaadin-combo-box-scroller"}static get template(){return a.qy`
377
+ <style>
378
+ :host {
379
+ display: block;
380
+ min-height: 1px;
381
+ overflow: auto;
382
+
383
+ /* Fixes item background from getting on top of scrollbars on Safari */
384
+ transform: translate3d(0, 0, 0);
385
+
386
+ /* Enable momentum scrolling on iOS */
387
+ -webkit-overflow-scrolling: touch;
388
+
389
+ /* Fixes scrollbar disappearing when 'Show scroll bars: Always' enabled in Safari */
390
+ box-shadow: 0 0 0 white;
391
+ }
392
+
393
+ #selector {
394
+ border-width: var(--_vaadin-combo-box-items-container-border-width);
395
+ border-style: var(--_vaadin-combo-box-items-container-border-style);
396
+ border-color: var(--_vaadin-combo-box-items-container-border-color, transparent);
397
+ position: relative;
398
+ }
399
+ </style>
400
+ <div id="selector">
401
+ <slot></slot>
402
+ </div>
403
+ `}}(0,n.X)(g);var b=o(72562),y=o(81488),f=o(44218),x=o(18330),C=o(37720),w=o(83304);const T=t=>class extends((0,w.U)(t)){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};var k=o(86314),O=o(11402),E=o(65909);(0,i.SF)("vaadin-combo-box",k.k,{moduleId:"vaadin-combo-box-styles"});class $ extends((0,O.K)((0,E.x)(T((0,f.R)((0,i.cp)((0,b.q)(a.Pu))))))){static get is(){return"vaadin-combo-box"}static get template(){return a.qy`
404
+ <style>
405
+ :host([opened]) {
406
+ pointer-events: auto;
407
+ }
408
+ </style>
409
+
410
+ <div class="vaadin-combo-box-container">
411
+ <div part="label">
412
+ <slot name="label"></slot>
413
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
414
+ </div>
415
+
416
+ <vaadin-input-container
417
+ part="input-field"
418
+ readonly="[[readonly]]"
419
+ disabled="[[disabled]]"
420
+ invalid="[[invalid]]"
421
+ theme$="[[_theme]]"
422
+ >
423
+ <slot name="prefix" slot="prefix"></slot>
424
+ <slot name="input"></slot>
425
+ <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
426
+ <div id="toggleButton" part="toggle-button" slot="suffix" aria-hidden="true"></div>
427
+ </vaadin-input-container>
428
+
429
+ <div part="helper-text">
430
+ <slot name="helper"></slot>
431
+ </div>
432
+
433
+ <div part="error-message">
434
+ <slot name="error-message"></slot>
435
+ </div>
436
+ </div>
437
+
438
+ <vaadin-combo-box-overlay
439
+ id="overlay"
440
+ opened="[[_overlayOpened]]"
441
+ loading$="[[loading]]"
442
+ theme$="[[_theme]]"
443
+ position-target="[[_positionTarget]]"
444
+ no-vertical-overlap
445
+ restore-focus-node="[[inputElement]]"
446
+ ></vaadin-combo-box-overlay>
447
+
448
+ <slot name="tooltip"></slot>
449
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new x.f(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t})),this.addController(new C.q(this.inputElement,this._labelController)),this._tooltipController=new y.I(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.X)($)},37436(t,e,o){o.d(e,{a:()=>i});var r=o(44218);const i=t=>class extends((0,r.R)(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()}}},20428(t,e,o){var r=o(51450),i=o(30025),s=o(82901),a=o(23927);const n=new WeakMap;var l=o(85725);const d={},h=/([A-Z])/gu;function c(t){return d[t]||(d[t]=t.replace(h,"-$1").toLowerCase()),d[t]}function u(t){return t[0].toUpperCase()+t.substring(1)}function p(t){const[e,o]=t.split("(");return{method:e,observerProps:o.replace(")","").split(",").map(t=>t.trim())}}function _(t,e){return Object.prototype.hasOwnProperty.call(t,e)||(t[e]=new Map(t[e])),t[e]}const v=(m=t=>class extends t{static createProperty(t,e){[String,Boolean,Number,Array].includes(e)&&(e={type:e}),e.reflectToAttribute&&(e.reflect=!0),super.createProperty(t,e)}static getOrCreateMap(t){return _(this,t)}static finalize(){if(super.finalize(),Array.isArray(this.observers)){const t=this.getOrCreateMap("__complexObservers");this.observers.forEach(e=>{const{method:o,observerProps:r}=p(e);t.set(o,r)})}}static addCheckedInitializer(t){super.addInitializer(e=>{e instanceof this&&t(e)})}static getPropertyDescriptor(t,e,o){const r=super.getPropertyDescriptor(t,e,o);let i=r;if(o.sync&&(i={get:r.get,set(r){const i=this[t];this[e]=r,this.requestUpdate(t,i,o),this.hasUpdated&&this.performUpdate()},configurable:!0,enumerable:!0}),o.readOnly){const e=r.set;this.addCheckedInitializer(r=>{r[`_set${u(t)}`]=function(t){e.call(r,t),o.sync&&this.performUpdate()}}),i={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in o&&this.addCheckedInitializer(e=>{const r="function"==typeof o.value?o.value.call(e):o.value;o.readOnly?e[`_set${u(t)}`](r):e[t]=r}),o.observer){const e=o.observer;this.getOrCreateMap("__observers").set(t,e),this.addCheckedInitializer(t=>{t[e]||console.warn(`observer method ${e} not defined`)})}if(o.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){const t=this.__notifyProps;this.__notifyProps=new Set(t)}}else this.__notifyProps=new Set;this.__notifyProps.add(t)}if(o.computed){const e=`__assignComputed${t}`,r=p(o.computed);this.prototype[e]=function(...e){this[t]=this[r.method](...e)},this.getOrCreateMap("__complexObservers").set(e,r.observerProps)}return o.attribute||(o.attribute=c(t)),i}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t})}ready(){}updated(t){this.constructor.__observers&&this.__runObservers(t,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(t,this.constructor.__complexObservers),this.__dynamicObservers&&this.__runComplexObservers(t,this.__dynamicObservers),this.constructor.__notifyProps&&this.__runNotifyProps(t,this.constructor.__notifyProps),this.__isReadyInvoked||(this.__isReadyInvoked=!0,this.ready())}_createMethodObserver(t){const e=_(this,"__dynamicObservers"),{method:o,observerProps:r}=p(t);e.set(o,r)}__runComplexObservers(t,e){e.forEach((e,o)=>{e.some(e=>t.has(e))&&(this[o]?this[o](...e.map(t=>this[t])):console.warn(`observer method ${o} not defined`))})}__runObservers(t,e){t.forEach((t,o)=>{const r=e.get(o);void 0!==r&&this[r]&&this[r](this[o],t)})}__runNotifyProps(t,e){t.forEach((t,o)=>{e.has(o)&&this.dispatchEvent(new CustomEvent(`${c(o)}-changed`,{detail:{value:this[o]}}))})}_get(t,e){return(0,l.J)(t,e)}_set(t,e,o){(0,l.h)(t,e,o)}},t=>{if(function(t,e){let o=e;for(;o;){if(n.get(o)===t)return!0;o=Object.getPrototypeOf(o)}return!1}(m,t))return t;const e=m(t);return n.set(e,m),e});var m,g=o(5072),b=o(87550),y=o(58069),f=o(81481);const x=t=>class extends((0,f.t)((0,y.c)(t))){static get properties(){return{position:{type:String,reflectToAttribute:!0}}}get _tagNamePrefix(){return"vaadin-popover"}requestContentUpdate(){if(super.requestContentUpdate(),this.positionTarget&&this.owner){const t=getComputedStyle(this.owner);["top","bottom","start","end"].forEach(e=>{this.style.setProperty(`--${this._tagNamePrefix}-offset-${e}`,t.getPropertyValue(`--${this._tagNamePrefix}-offset-${e}`))})}}_updatePosition(){if(super._updatePosition(),this.positionTarget&&this.opened){if(this.removeAttribute("arrow-centered"),"bottom"===this.position||"top"===this.position){const t=this.positionTarget.getBoundingClientRect(),e=this.$.overlay.getBoundingClientRect(),o=t.width/2-e.width/2;if(this.style.left){const t=e.left+o;t>0&&(this.style.left=`${t}px`,this.setAttribute("arrow-centered",""))}if(this.style.right){const t=parseFloat(this.style.right)+o;t>0&&(this.style.right=`${t}px`,this.setAttribute("arrow-centered",""))}}if("start"===this.position||"end"===this.position){const t=this.positionTarget.getBoundingClientRect(),e=this.$.overlay.getBoundingClientRect(),o=t.height/2-e.height/2;this.style.top=`${e.top+o}px`}}}};class C extends(x((0,a.v)((0,b.cp)(v(r.WF))))){static get is(){return"vaadin-popover-overlay"}static get styles(){return[g.B,r.AH`
450
+ :host {
451
+ --_vaadin-popover-content-width: auto;
452
+ --_vaadin-popover-content-height: auto;
453
+ }
454
+
455
+ :host([modeless][with-backdrop]) [part='backdrop'] {
456
+ pointer-events: none;
457
+ }
458
+
459
+ :host([position^='top'][top-aligned]) [part='overlay'],
460
+ :host([position^='bottom'][top-aligned]) [part='overlay'] {
461
+ margin-top: var(--vaadin-popover-offset-top, 0);
462
+ }
463
+
464
+ [part='overlay'] {
465
+ position: relative;
466
+ overflow: visible;
467
+ max-height: 100%;
468
+ }
469
+
470
+ [part='content'] {
471
+ overflow: auto;
472
+ box-sizing: border-box;
473
+ max-height: 100%;
474
+ width: var(--_vaadin-popover-content-width);
475
+ height: var(--_vaadin-popover-content-height);
476
+ }
477
+
478
+ /* Increase the area of the popover so the pointer can go from the target directly to it. */
479
+ [part='overlay']::before {
480
+ position: absolute;
481
+ content: '';
482
+ inset-block: calc(var(--vaadin-popover-offset-top, 0) * -1) calc(var(--vaadin-popover-offset-bottom, 0) * -1);
483
+ inset-inline: calc(var(--vaadin-popover-offset-start, 0) * -1) calc(var(--vaadin-popover-offset-end, 0) * -1);
484
+ z-index: -1;
485
+ pointer-events: auto;
486
+ }
487
+
488
+ :host([position^='top'][bottom-aligned]) [part='overlay'],
489
+ :host([position^='bottom'][bottom-aligned]) [part='overlay'] {
490
+ margin-bottom: var(--vaadin-popover-offset-bottom, 0);
491
+ }
492
+
493
+ :host([position^='start'][start-aligned]) [part='overlay'],
494
+ :host([position^='end'][start-aligned]) [part='overlay'] {
495
+ margin-inline-start: var(--vaadin-popover-offset-start, 0);
496
+ }
497
+
498
+ :host([position^='start'][end-aligned]) [part='overlay'],
499
+ :host([position^='end'][end-aligned]) [part='overlay'] {
500
+ margin-inline-end: var(--vaadin-popover-offset-end, 0);
501
+ }
502
+
503
+ [part='arrow'] {
504
+ display: none;
505
+ position: absolute;
506
+ height: 0;
507
+ width: 0;
508
+ }
509
+
510
+ :host([theme~='arrow']) [part='arrow'] {
511
+ display: block;
512
+ }
513
+ `]}render(){return r.qy`
514
+ <div id="backdrop" part="backdrop" hidden ?hidden="${!this.withBackdrop}"></div>
515
+ <div part="overlay" id="overlay" tabindex="0">
516
+ <div part="arrow"></div>
517
+ <div part="content" id="content"><slot></slot></div>
518
+ </div>
519
+ `}_shouldCloseOnOutsideClick(t){return(!this.owner.__hasTrigger("focus")||!(0,i.Qj)(this))&&super._shouldCloseOnOutsideClick(t)}}(0,s.X)(C);var w=o(55670);const T=t=>t??w.s6;var k=o(72562),O=o(55341),E=o(11707),$=o(69168),D=o(75365),F=o(62804),I=o(76685);const S=t=>class extends t{static get properties(){return{for:{type:String,observer:"__forChanged"},target:{type:Object,observer:"__targetChanged"}}}connectedCallback(){super.connectedCallback(),this.target&&this._addTargetListeners(this.target)}disconnectedCallback(){super.disconnectedCallback(),this.target&&this._removeTargetListeners(this.target)}__forChanged(t){t&&(this.__setTargetByIdDebouncer=I.aq.debounce(this.__setTargetByIdDebouncer,F._3,()=>this.__setTargetById(t)))}__setTargetById(t){if(!this.isConnected)return;const e=this.getRootNode().getElementById(t);e?this.target=e:console.warn(`No element with id="${t}" set via "for" property found on the page.`)}__targetChanged(t,e){e&&this._removeTargetListeners(e),t&&this._addTargetListeners(t)}_addTargetListeners(t){}_removeTargetListeners(t){}},P=500;let z=P,A=P,L=P;class B{constructor(t){this.host=t}get isClosing(){return null!=this.__closeTimeout}get __focusDelay(){const t=this.host;return null!=t.focusDelay&&t.focusDelay>=0?t.focusDelay:z}get __hoverDelay(){const t=this.host;return null!=t.hoverDelay&&t.hoverDelay>=0?t.hoverDelay:A}get __hideDelay(){const t=this.host;return null!=t.hideDelay&&t.hideDelay>=0?t.hideDelay:L}open(t={immediate:!1}){const{immediate:e,trigger:o}=t,r="hover"===o&&this.__hoverDelay>0,i="focus"===o&&this.__focusDelay>0;e||!r&&!i||this.__closeTimeout?this.__showPopover():this.__scheduleOpen(o)}close(t){!t&&this.__hideDelay>0?this.__scheduleClose():(this.__abortClose(),this.__setOpened(!1)),this.__abortOpen()}__setOpened(t){this.host.opened=t}__showPopover(){this.__abortClose(),this.__setOpened(!0)}__abortClose(){this.__closeTimeout&&(clearTimeout(this.__closeTimeout),this.__closeTimeout=null)}__abortOpen(){this.__openTimeout&&(clearTimeout(this.__openTimeout),this.__openTimeout=null)}__scheduleClose(){this.__closeTimeout=setTimeout(()=>{this.__closeTimeout=null,this.__setOpened(!1)},this.__hideDelay)}__scheduleOpen(t){this.__abortOpen();const e="focus"===t?this.__focusDelay:this.__hoverDelay;this.__openTimeout=setTimeout(()=>{this.__openTimeout=null,this.__showPopover()},e)}}class N extends((t=>class extends t{static get properties(){return{position:{type:String},_position:{type:String,value:"bottom"},__effectivePosition:{type:String,computed:"__computePosition(position, _position)"}}}__computeHorizontalAlign(t){return["top-end","bottom-end","start-top","start","start-bottom"].includes(t)?"end":"start"}__computeNoHorizontalOverlap(t){return["start-top","start","start-bottom","end-top","end","end-bottom"].includes(t)}__computeNoVerticalOverlap(t){return["top-start","top-end","top","bottom-start","bottom","bottom-end"].includes(t)}__computeVerticalAlign(t){return["top-start","top-end","top","start-bottom","end-bottom"].includes(t)?"bottom":"top"}__computePosition(t,e){return t||e}})(S((0,O.i)((0,D._)((0,k.q)(v(r.WF))))))){static get is(){return"vaadin-popover"}static get styles(){return r.AH`
520
+ :host {
521
+ display: none !important;
522
+ }
523
+ `}static get properties(){return{accessibleName:{type:String},accessibleNameRef:{type:String},autofocus:{type:Boolean},contentHeight:{type:String},contentWidth:{type:String},focusDelay:{type:Number},hideDelay:{type:Number},hoverDelay:{type:Number},opened:{type:Boolean,value:!1,notify:!0,observer:"__openedChanged"},overlayRole:{type:String,value:"dialog"},renderer:{type:Object},modal:{type:Boolean,value:!1},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},trigger:{type:Array,value:()=>["click"]},withBackdrop:{type:Boolean,value:!1},__shouldRestoreFocus:{type:Boolean,value:!1,sync:!0},__overlayId:{type:String}}}static get observers(){return["__updateContentHeight(contentHeight, _overlayElement)","__updateContentWidth(contentWidth, _overlayElement)","__openedOrTargetChanged(opened, target)","__overlayRoleOrTargetChanged(overlayRole, target)"]}static setDefaultFocusDelay(t){z=null!=t&&t>=0?t:P}static setDefaultHideDelay(t){L=null!=t&&t>=0?t:P}static setDefaultHoverDelay(t){A=null!=t&&t>=0?t:P}constructor(){super(),this.__overlayId=`vaadin-popover-${(0,E.I)()}`,this.__onGlobalClick=this.__onGlobalClick.bind(this),this.__onGlobalKeyDown=this.__onGlobalKeyDown.bind(this),this.__onTargetClick=this.__onTargetClick.bind(this),this.__onTargetFocusIn=this.__onTargetFocusIn.bind(this),this.__onTargetFocusOut=this.__onTargetFocusOut.bind(this),this.__onTargetMouseEnter=this.__onTargetMouseEnter.bind(this),this.__onTargetMouseLeave=this.__onTargetMouseLeave.bind(this),this._openedStateController=new B(this)}render(){const t=this.__effectivePosition;return r.qy`
524
+ <vaadin-popover-overlay
525
+ id="${this.__overlayId}"
526
+ role="${this.overlayRole}"
527
+ aria-label="${T(this.accessibleName)}"
528
+ aria-labelledby="${T(this.accessibleNameRef)}"
529
+ .renderer="${this.renderer}"
530
+ .owner="${this}"
531
+ theme="${T(this._theme)}"
532
+ .positionTarget="${this.target}"
533
+ .position="${t}"
534
+ .opened="${this.opened}"
535
+ .modeless="${!this.modal}"
536
+ .focusTrap="${this.modal}"
537
+ .withBackdrop="${this.withBackdrop}"
538
+ ?no-horizontal-overlap="${this.__computeNoHorizontalOverlap(t)}"
539
+ ?no-vertical-overlap="${this.__computeNoVerticalOverlap(t)}"
540
+ .horizontalAlign="${this.__computeHorizontalAlign(t)}"
541
+ .verticalAlign="${this.__computeVerticalAlign(t)}"
542
+ @mousedown="${this.__onOverlayMouseDown}"
543
+ @mouseenter="${this.__onOverlayMouseEnter}"
544
+ @mouseleave="${this.__onOverlayMouseLeave}"
545
+ @focusin="${this.__onOverlayFocusIn}"
546
+ @focusout="${this.__onOverlayFocusOut}"
547
+ @opened-changed="${this.__onOpenedChanged}"
548
+ .restoreFocusOnClose="${this.__shouldRestoreFocus}"
549
+ .restoreFocusNode="${this.target}"
550
+ @vaadin-overlay-escape-press="${this.__onEscapePress}"
551
+ @vaadin-overlay-outside-click="${this.__onOutsideClick}"
552
+ @vaadin-overlay-open="${this.__onOverlayOpened}"
553
+ @vaadin-overlay-closed="${this.__onOverlayClosed}"
554
+ ></vaadin-popover-overlay>
555
+ `}requestContentUpdate(){this.renderer&&this._overlayElement&&this._overlayElement.requestContentUpdate()}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-popover-overlay")}connectedCallback(){super.connectedCallback(),document.documentElement.addEventListener("click",this.__onGlobalClick,!0)}disconnectedCallback(){super.disconnectedCallback(),document.documentElement.removeEventListener("click",this.__onGlobalClick,!0),this._openedStateController.close(!0)}_addTargetListeners(t){t.addEventListener("click",this.__onTargetClick),t.addEventListener("mouseenter",this.__onTargetMouseEnter),t.addEventListener("mouseleave",this.__onTargetMouseLeave),t.addEventListener("focusin",this.__onTargetFocusIn),t.addEventListener("focusout",this.__onTargetFocusOut)}_removeTargetListeners(t){t.removeEventListener("click",this.__onTargetClick),t.removeEventListener("mouseenter",this.__onTargetMouseEnter),t.removeEventListener("mouseleave",this.__onTargetMouseLeave),t.removeEventListener("focusin",this.__onTargetFocusIn),t.removeEventListener("focusout",this.__onTargetFocusOut)}__openedChanged(t,e){t?document.addEventListener("keydown",this.__onGlobalKeyDown,!0):e&&document.removeEventListener("keydown",this.__onGlobalKeyDown,!0)}__openedOrTargetChanged(t,e){e&&(e.setAttribute("aria-expanded",t?"true":"false"),t?e.setAttribute("aria-controls",this.__overlayId):e.removeAttribute("aria-controls"))}__overlayRoleOrTargetChanged(t,e){if(this.__oldTarget&&this.__oldTarget.removeAttribute("aria-haspopup"),e){const o="dialog"===t||"alertdialog"===t;e.setAttribute("aria-haspopup",o?"dialog":"true"),this.__oldTarget=e}}__onGlobalClick(t){!this.opened||this.__isManual||this.modal||t.composedPath().some(t=>t===this._overlayElement||t===this.target)||this.noCloseOnOutsideClick||!(0,$.$)(this._overlayElement)||this._openedStateController.close(!0)}__onTargetClick(){this.__hasTrigger("click")&&(this.opened||(this.__shouldRestoreFocus=!0),this.opened?this._openedStateController.close(!0):this._openedStateController.open({immediate:!0}))}__onGlobalKeyDown(t){this.modal||("Escape"===t.key&&!this.noCloseOnEsc&&this.opened&&!this.__isManual&&(0,$.$)(this._overlayElement)&&(t.stopPropagation(),this._openedStateController.close(!0)),"Tab"===t.key&&(t.shiftKey?this.__onGlobalShiftTab(t):this.__onGlobalTab(t)))}__onGlobalTab(t){const e=this._overlayElement.$.overlay;if(this.target&&(0,i.Qj)(this.target))return t.preventDefault(),void e.focus();const o=this.__getLastFocusable(e);if(o&&(0,i.Qj)(o)){const o=this.__getNextBodyFocusable(this.target);if(o&&o!==e)return t.preventDefault(),void o.focus()}const r=(0,i.dw)();this.__getNextBodyFocusable(r)===e&&o&&o.focus()}__onGlobalShiftTab(t){const e=this._overlayElement.$.overlay;if(this.target&&(0,i.Qj)(this.target)&&this.__shouldRestoreFocus)return void(this.__shouldRestoreFocus=!1);if(this.target&&(0,i.Qj)(e))return t.preventDefault(),void this.target.focus();const o=this.__getNextBodyFocusable(this.target);if(o&&(0,i.Qj)(o)){const o=this.__getLastFocusable(e);o&&(t.preventDefault(),o.focus())}}__getNextBodyFocusable(t){const e=(0,i.iq)(document.body),o=e.findIndex(e=>e===t);return e[o+1]}__getLastFocusable(t){return(0,i.iq)(t).pop()}__onTargetFocusIn(){if(this.__focusInside=!0,this.__hasTrigger("focus")){if(this.__hasTrigger("click")&&!(0,i.aJ)())return;this.__shouldRestoreFocus||(this.__shouldRestoreFocus=!0,this._openedStateController.open({trigger:"focus"}))}}__onTargetFocusOut(t){(0,$.$)(this._overlayElement)&&(this.__hasTrigger("focus")&&this.__mouseDownInside||this._overlayElement.contains(t.relatedTarget)||this.__handleFocusout())}__onTargetMouseEnter(){this.__hoverInside=!0,this.__hasTrigger("hover")&&!this.opened&&(this.modal&&(this.target.style.pointerEvents="auto"),this._openedStateController.open({trigger:"hover"}))}__onTargetMouseLeave(t){this._overlayElement.opened&&!(0,$.$)(this._overlayElement)||this._overlayElement.contains(t.relatedTarget)||this.__handleMouseLeave()}__onOverlayFocusIn(){this.__focusInside=!0,(this.__hasTrigger("focus")||this.__hasTrigger("click"))&&(this.__shouldRestoreFocus=!0)}__onOverlayFocusOut(t){(0,$.$)(this._overlayElement)&&(this.__hasTrigger("focus")&&this.__mouseDownInside||t.relatedTarget===this.target||this._overlayElement.contains(t.relatedTarget)||this.__handleFocusout())}__onOverlayMouseDown(){this.__hasTrigger("focus")&&(this.__mouseDownInside=!0,document.addEventListener("mouseup",()=>{this.__mouseDownInside=!1},{once:!0}))}__onOverlayMouseEnter(){this.__hoverInside=!0,this.__hasTrigger("hover")&&this._openedStateController.isClosing&&this._openedStateController.open({immediate:!0})}__onOverlayMouseLeave(t){(0,$.$)(this._overlayElement)&&t.relatedTarget!==this.target&&this.__handleMouseLeave()}__handleFocusout(){this.__focusInside=!1,this.__hasTrigger("hover")&&this.__hoverInside||this.__hasTrigger("focus")&&this._openedStateController.close(!0)}__handleMouseLeave(){this.__hoverInside=!1,this.__hasTrigger("focus")&&this.__focusInside||this.__hasTrigger("hover")&&this._openedStateController.close()}__onOpenedChanged(t){this.opened=t.detail.value}__onOverlayOpened(){this.autofocus&&!this.modal&&this._overlayElement.$.overlay.focus()}__onOverlayClosed(){this.__shouldRestoreFocus&&setTimeout(()=>{this.__shouldRestoreFocus=!1}),this.modal&&this.target.style.pointerEvents&&(this.target.style.pointerEvents=""),this.dispatchEvent(new CustomEvent("closed"))}__onEscapePress(t){(this.noCloseOnEsc||this.__isManual)&&t.preventDefault()}__onOutsideClick(t){(this.noCloseOnOutsideClick||this.__isManual)&&t.preventDefault()}__hasTrigger(t){return Array.isArray(this.trigger)&&this.trigger.includes(t)}get __isManual(){return null==this.trigger||Array.isArray(this.trigger)&&0===this.trigger.length}__updateDimension(t,e,o){const r=`--_vaadin-popover-content-${e}`;o?t.style.setProperty(r,o):t.style.removeProperty(r)}__updateContentHeight(t,e){e&&this.__updateDimension(e,"height",t)}__updateContentWidth(t,e){e&&this.__updateDimension(e,"width",t)}}(0,s.X)(N)},27136(t,e,o){o.d(e,{A:()=>p}),o(86689);var r=o(13256),i=o(82901),s=o(72562),a=o(81488),n=o(86314),l=o(87550),d=o(18330),h=o(37436),c=o(37720);const u=t=>class extends((0,h.a)(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.f(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t})),this.addController(new c.q(this.inputElement,this._labelController))}};(0,l.SF)("vaadin-text-field",n.k,{moduleId:"vaadin-text-field-styles"});class p extends(u((0,l.cp)((0,s.q)(r.Pu)))){static get is(){return"vaadin-text-field"}static get template(){return r.qy`
556
+ <style>
557
+ [part='input-field'] {
558
+ flex-grow: 0;
559
+ }
560
+ </style>
561
+
562
+ <div class="vaadin-field-container">
563
+ <div part="label">
564
+ <slot name="label"></slot>
565
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
566
+ </div>
567
+
568
+ <vaadin-input-container
569
+ part="input-field"
570
+ readonly="[[readonly]]"
571
+ disabled="[[disabled]]"
572
+ invalid="[[invalid]]"
573
+ theme$="[[_theme]]"
574
+ >
575
+ <slot name="prefix" slot="prefix"></slot>
576
+ <slot name="input"></slot>
577
+ <slot name="suffix" slot="suffix"></slot>
578
+ <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
579
+ </vaadin-input-container>
580
+
581
+ <div part="helper-text">
582
+ <slot name="helper"></slot>
583
+ </div>
584
+
585
+ <div part="error-message">
586
+ <slot name="error-message"></slot>
587
+ </div>
588
+ </div>
589
+ <slot name="tooltip"></slot>
590
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new a.I(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}(0,i.X)(p)},52733(t,e,o){o(27397);var r=o(47642);(0,o(87550).SF)("vaadin-text-field",r.k,{moduleId:"lumo-text-field-styles"}),o(27136)},11284(t,e,o){o(52733),o(27136)}}]);
591
+ //# sourceMappingURL=6618.js.map
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+
1
7
  /**
2
8
  * @license
3
9
  * Copyright (c) 2017 - 2023 Vaadin Ltd.