@descope/web-components-ui 1.0.384 → 1.0.386

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. package/dist/cjs/index.cjs.js +1 -0
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1 -0
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/umd/1033.js +2 -0
  6. package/dist/umd/{9423.js → 1053.js} +15 -15
  7. package/dist/umd/1414.js +352 -0
  8. package/dist/umd/{9314.js → 1437.js} +10 -10
  9. package/dist/umd/1672.js +1 -0
  10. package/dist/umd/{3830.js → 2566.js} +2 -2
  11. package/dist/umd/{7856.js → 2838.js} +2 -2
  12. package/dist/umd/286.js +148 -0
  13. package/dist/umd/{5135.js → 2919.js} +8 -8
  14. package/dist/umd/3222.js +282 -0
  15. package/dist/umd/{7056.js → 351.js} +10 -10
  16. package/dist/umd/3607.js +2 -0
  17. package/dist/umd/3711.js +123 -0
  18. package/dist/umd/4619.js +1 -0
  19. package/dist/umd/{3951.js → 4834.js} +8 -8
  20. package/dist/umd/{1612.js → 5026.js} +7 -7
  21. package/dist/umd/{7284.js → 5086.js} +8 -8
  22. package/dist/umd/{8191.js → 5273.js} +6 -6
  23. package/dist/umd/5412.js +109 -0
  24. package/dist/umd/{4024.js → 5443.js} +7 -7
  25. package/dist/umd/5459.js +1 -0
  26. package/dist/umd/{6594.js → 6418.js} +2 -2
  27. package/dist/umd/{1438.js → 6474.js} +16 -16
  28. package/dist/umd/650.js +1 -0
  29. package/dist/umd/6637.js +73 -0
  30. package/dist/umd/6726.js +148 -0
  31. package/dist/umd/{63.js → 7212.js} +9 -9
  32. package/dist/umd/{9562.js → 7407.js} +7 -7
  33. package/dist/umd/{7541.js → 7607.js} +11 -11
  34. package/dist/umd/{4052.js → 7824.js} +7 -7
  35. package/dist/umd/{4525.js → 8162.js} +3 -3
  36. package/dist/umd/8164.js +319 -0
  37. package/dist/umd/{5977.js → 8980.js} +10 -10
  38. package/dist/umd/{8137.js → 9167.js} +10 -10
  39. package/dist/umd/{5778.js → 9632.js} +10 -10
  40. package/dist/umd/9878.js +1 -0
  41. package/dist/umd/9895.js +17 -0
  42. package/dist/umd/DescopeDev.js +1 -1
  43. package/dist/umd/boolean-fields-descope-boolean-field-internal-index-js.js +1 -1
  44. package/dist/umd/boolean-fields-descope-checkbox-index-js.js +1 -1
  45. package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +1 -1
  46. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -1
  47. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-internal-index-js.js +1 -1
  48. package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -1
  49. package/dist/umd/button-selection-group-fields-descope-button-selection-group-internal-index-js.js +1 -1
  50. package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
  51. package/dist/umd/descope-apps-list-index-js.js +1 -1
  52. package/dist/umd/descope-avatar-index-js.js +1 -1
  53. package/dist/umd/descope-badge-index-js.js +1 -1
  54. package/dist/umd/descope-button-index-js.js +6 -6
  55. package/dist/umd/descope-code-snippet-index-js.js +1 -1
  56. package/dist/umd/descope-combo-box-index-js.js +7 -7
  57. package/dist/umd/descope-container-index-js.js +1 -1
  58. package/dist/umd/descope-date-field-descope-calendar-index-js.js +1 -1
  59. package/dist/umd/descope-date-field-index-js.js +1 -1
  60. package/dist/umd/descope-divider-index-js.js +1 -1
  61. package/dist/umd/descope-email-field-index-js.js +4 -4
  62. package/dist/umd/descope-enriched-text-index-js.js +1 -1
  63. package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js +4 -4
  64. package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js +4 -4
  65. package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js +1 -1
  66. package/dist/umd/descope-grid-descope-grid-text-column-index-js.js +4 -4
  67. package/dist/umd/descope-grid-index-js.js +1 -1
  68. package/dist/umd/descope-icon-index-js.js +1 -1
  69. package/dist/umd/descope-image-index-js.js +1 -1
  70. package/dist/umd/descope-link-index-js.js +1 -1
  71. package/dist/umd/descope-list-index-js.js +1 -1
  72. package/dist/umd/descope-loader-linear-index-js.js +1 -1
  73. package/dist/umd/descope-loader-radial-index-js.js +1 -1
  74. package/dist/umd/descope-logo-index-js.js +1 -1
  75. package/dist/umd/descope-modal-index-js.js +1 -1
  76. package/dist/umd/descope-multi-select-combo-box-index-js.js +1 -1
  77. package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
  78. package/dist/umd/descope-new-password-index-js.js +1 -1
  79. package/dist/umd/descope-notification-descope-notification-card-index-js.js +1 -1
  80. package/dist/umd/descope-notification-index-js.js +1 -1
  81. package/dist/umd/descope-notp-image-index-js.js +1 -1
  82. package/dist/umd/descope-number-field-index-js.js +1 -1
  83. package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js +1 -1
  84. package/dist/umd/descope-passcode-index-js.js +1 -1
  85. package/dist/umd/descope-password-index-js.js +1 -1
  86. package/dist/umd/descope-policy-validation-index-js.js +1 -1
  87. package/dist/umd/descope-radio-group-index-js.js +1 -1
  88. package/dist/umd/descope-recaptcha-index-js.js +1 -1
  89. package/dist/umd/descope-text-area-index-js.js +1 -1
  90. package/dist/umd/descope-text-field-index-js.js +2 -2
  91. package/dist/umd/descope-text-index-js.js +1 -1
  92. package/dist/umd/descope-totp-image-index-js.js +1 -1
  93. package/dist/umd/descope-upload-file-index-js.js +1 -1
  94. package/dist/umd/descope-user-attribute-index-js.js +1 -1
  95. package/dist/umd/descope-user-auth-method-index-js.js +1 -1
  96. package/dist/umd/index.js +1 -1
  97. package/dist/umd/mapping-fields-descope-mappings-field-descope-mapping-item-index-js.js +1 -1
  98. package/dist/umd/mapping-fields-descope-mappings-field-descope-mappings-field-internal-index-js.js +1 -1
  99. package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
  100. package/dist/umd/mapping-fields-descope-saml-group-mappings-descope-saml-group-mappings-internal-index-js.js +1 -1
  101. package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
  102. package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
  103. package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
  104. package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +2 -2
  105. package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +1 -1
  106. package/package.json +1 -1
  107. package/dist/umd/1224.js +0 -2
  108. package/dist/umd/2773.js +0 -148
  109. package/dist/umd/3227.js +0 -17
  110. package/dist/umd/3966.js +0 -319
  111. package/dist/umd/4392.js +0 -1
  112. package/dist/umd/4569.js +0 -1
  113. package/dist/umd/4978.js +0 -1
  114. package/dist/umd/5517.js +0 -2
  115. package/dist/umd/5806.js +0 -109
  116. package/dist/umd/5910.js +0 -1
  117. package/dist/umd/602.js +0 -282
  118. package/dist/umd/637.js +0 -1
  119. package/dist/umd/6770.js +0 -148
  120. package/dist/umd/7911.js +0 -73
  121. package/dist/umd/8060.js +0 -352
  122. package/dist/umd/8655.js +0 -123
  123. /package/dist/umd/{1224.js.LICENSE.txt → 1033.js.LICENSE.txt} +0 -0
  124. /package/dist/umd/{9423.js.LICENSE.txt → 1053.js.LICENSE.txt} +0 -0
  125. /package/dist/umd/{8060.js.LICENSE.txt → 1414.js.LICENSE.txt} +0 -0
  126. /package/dist/umd/{1612.js.LICENSE.txt → 1437.js.LICENSE.txt} +0 -0
  127. /package/dist/umd/{3830.js.LICENSE.txt → 2566.js.LICENSE.txt} +0 -0
  128. /package/dist/umd/{7856.js.LICENSE.txt → 2838.js.LICENSE.txt} +0 -0
  129. /package/dist/umd/{4024.js.LICENSE.txt → 286.js.LICENSE.txt} +0 -0
  130. /package/dist/umd/{5135.js.LICENSE.txt → 2919.js.LICENSE.txt} +0 -0
  131. /package/dist/umd/{3227.js.LICENSE.txt → 3222.js.LICENSE.txt} +0 -0
  132. /package/dist/umd/{4052.js.LICENSE.txt → 351.js.LICENSE.txt} +0 -0
  133. /package/dist/umd/{5517.js.LICENSE.txt → 3607.js.LICENSE.txt} +0 -0
  134. /package/dist/umd/{8655.js.LICENSE.txt → 3711.js.LICENSE.txt} +0 -0
  135. /package/dist/umd/{3951.js.LICENSE.txt → 4834.js.LICENSE.txt} +0 -0
  136. /package/dist/umd/{4525.js.LICENSE.txt → 5026.js.LICENSE.txt} +0 -0
  137. /package/dist/umd/{6770.js.LICENSE.txt → 5086.js.LICENSE.txt} +0 -0
  138. /package/dist/umd/{7056.js.LICENSE.txt → 5273.js.LICENSE.txt} +0 -0
  139. /package/dist/umd/{5806.js.LICENSE.txt → 5412.js.LICENSE.txt} +0 -0
  140. /package/dist/umd/{7284.js.LICENSE.txt → 5443.js.LICENSE.txt} +0 -0
  141. /package/dist/umd/{6594.js.LICENSE.txt → 6418.js.LICENSE.txt} +0 -0
  142. /package/dist/umd/{1438.js.LICENSE.txt → 6474.js.LICENSE.txt} +0 -0
  143. /package/dist/umd/{7911.js.LICENSE.txt → 6637.js.LICENSE.txt} +0 -0
  144. /package/dist/umd/{2773.js.LICENSE.txt → 6726.js.LICENSE.txt} +0 -0
  145. /package/dist/umd/{63.js.LICENSE.txt → 7212.js.LICENSE.txt} +0 -0
  146. /package/dist/umd/{8191.js.LICENSE.txt → 7407.js.LICENSE.txt} +0 -0
  147. /package/dist/umd/{7541.js.LICENSE.txt → 7607.js.LICENSE.txt} +0 -0
  148. /package/dist/umd/{9314.js.LICENSE.txt → 7824.js.LICENSE.txt} +0 -0
  149. /package/dist/umd/{9562.js.LICENSE.txt → 8162.js.LICENSE.txt} +0 -0
  150. /package/dist/umd/{3966.js.LICENSE.txt → 8164.js.LICENSE.txt} +0 -0
  151. /package/dist/umd/{5977.js.LICENSE.txt → 8980.js.LICENSE.txt} +0 -0
  152. /package/dist/umd/{8137.js.LICENSE.txt → 9167.js.LICENSE.txt} +0 -0
  153. /package/dist/umd/{5778.js.LICENSE.txt → 9632.js.LICENSE.txt} +0 -0
  154. /package/dist/umd/{602.js.LICENSE.txt → 9895.js.LICENSE.txt} +0 -0
package/dist/umd/6770.js DELETED
@@ -1,148 +0,0 @@
1
- /*! For license information please see 6770.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[6770],{29680:(t,e,i)=>{i.d(e,{F:()=>r});var a=i(91014);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){}}))},20422:(t,e,i)=>{i.d(e,{j:()=>n});var a=i(73406);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()}}},46770:(t,e,i)=>{i(21578),i(51195),i(79098),i(34173);var a=i(83208),n=i(46570);const r=n.iv`
3
- [part='input-field'],
4
- [part='input-field'] ::slotted(textarea) {
5
- height: auto;
6
- box-sizing: border-box;
7
- }
8
-
9
- [part='input-field'] {
10
- /* Equal to the implicit padding in vaadin-text-field */
11
- padding-top: calc((var(--lumo-text-field-size) - 1em * var(--lumo-line-height-s)) / 2);
12
- padding-bottom: calc((var(--lumo-text-field-size) - 1em * var(--lumo-line-height-s)) / 2);
13
- transition: background-color 0.1s;
14
- line-height: var(--lumo-line-height-s);
15
- }
16
-
17
- :host(:not([readonly])) [part='input-field']::after {
18
- display: none;
19
- }
20
-
21
- :host([readonly]) [part='input-field'] {
22
- border: 1px dashed var(--lumo-contrast-30pct);
23
- }
24
-
25
- :host([readonly]) [part='input-field']::after {
26
- border: none;
27
- }
28
-
29
- :host(:hover:not([readonly]):not([focused]):not([invalid])) [part='input-field'] {
30
- background-color: var(--lumo-contrast-20pct);
31
- }
32
-
33
- @media (pointer: coarse) {
34
- :host(:hover:not([readonly]):not([focused]):not([invalid])) [part='input-field'] {
35
- background-color: var(--lumo-contrast-10pct);
36
- }
37
-
38
- :host(:active:not([readonly]):not([focused])) [part='input-field'] {
39
- background-color: var(--lumo-contrast-20pct);
40
- }
41
- }
42
-
43
- [part='input-field'] ::slotted(textarea) {
44
- line-height: inherit;
45
- --_lumo-text-field-overflow-mask-image: none;
46
- }
47
-
48
- /* Vertically align icon prefix/suffix with the first line of text */
49
- [part='input-field'] ::slotted(vaadin-icon) {
50
- margin-top: calc((var(--lumo-icon-size-m) - 1em * var(--lumo-line-height-s)) / -2);
51
- }
52
- `;(0,n.hC)("vaadin-text-area",[a.J,r],{moduleId:"lumo-text-area"}),i(13553);var o=i(3354),s=i(52807),l=i(12521),d=i(34463),p=i(62743),u=i(29680),h=i(20422),c=i(46729),v=i(78591);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
- :host {
54
- animation: 1ms vaadin-text-area-appear;
55
- }
56
-
57
- .vaadin-text-area-container {
58
- flex: auto;
59
- }
60
-
61
- /* The label, helper text and the error message should neither grow nor shrink. */
62
- [part='label'],
63
- [part='helper-text'],
64
- [part='error-message'] {
65
- flex: none;
66
- }
67
-
68
- [part='input-field'] {
69
- flex: auto;
70
- overflow: auto;
71
- -webkit-overflow-scrolling: touch;
72
- }
73
-
74
- ::slotted(textarea) {
75
- -webkit-appearance: none;
76
- -moz-appearance: none;
77
- flex: auto;
78
- overflow: hidden;
79
- width: 100%;
80
- height: 100%;
81
- outline: none;
82
- resize: none;
83
- margin: 0;
84
- padding: 0 0.25em;
85
- border: 0;
86
- border-radius: 0;
87
- min-width: 0;
88
- font: inherit;
89
- font-size: 1em;
90
- line-height: normal;
91
- color: inherit;
92
- background-color: transparent;
93
- /* Disable default invalid style in Firefox */
94
- box-shadow: none;
95
- }
96
-
97
- /* Override styles from <vaadin-input-container> */
98
- [part='input-field'] ::slotted(textarea) {
99
- align-self: stretch;
100
- white-space: pre-wrap;
101
- }
102
-
103
- [part='input-field'] ::slotted(:not(textarea)) {
104
- align-self: flex-start;
105
- }
106
-
107
- /* Workaround https://bugzilla.mozilla.org/show_bug.cgi?id=1739079 */
108
- :host([disabled]) ::slotted(textarea) {
109
- user-select: none;
110
- }
111
-
112
- @keyframes vaadin-text-area-appear {
113
- to {
114
- opacity: 1;
115
- }
116
- }
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
- <div class="vaadin-text-area-container">
119
- <div part="label">
120
- <slot name="label"></slot>
121
- <span part="required-indicator" aria-hidden="true"></span>
122
- </div>
123
-
124
- <vaadin-input-container
125
- part="input-field"
126
- readonly="[[readonly]]"
127
- disabled="[[disabled]]"
128
- invalid="[[invalid]]"
129
- theme$="[[_theme]]"
130
- on-scroll="_onScroll"
131
- >
132
- <slot name="prefix" slot="prefix"></slot>
133
- <slot name="textarea"></slot>
134
- <slot name="suffix" slot="suffix"></slot>
135
- <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
136
- </vaadin-input-container>
137
-
138
- <div part="helper-text">
139
- <slot name="helper"></slot>
140
- </div>
141
-
142
- <div part="error-message">
143
- <slot name="error-message"></slot>
144
- </div>
145
- </div>
146
-
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,s.M)(f)}}]);
package/dist/umd/7911.js DELETED
@@ -1,73 +0,0 @@
1
- /*! For license information please see 7911.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[7911],{29680:(e,t,s)=>{s.d(t,{F:()=>o});var i=s(91014);const n=new ResizeObserver((e=>{setTimeout((()=>{e.forEach((e=>{e.target.resizables?e.target.resizables.forEach((t=>{t._onResize(e.contentRect)})):e.target._onResize(e.contentRect)}))}))})),o=(0,i.o)((e=>class extends e{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),n.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,n.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),n.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),0===t.size&&n.unobserve(e)),this.__parent=null}}_onResize(e){}}))},30048:(e,t,s)=>{s.d(t,{Pe:()=>h,kO:()=>_,jq:()=>u,KE:()=>p});var i=s(9392),n=s(56977);const o=e=>(...t)=>({_$litDirective$:e,values:t});class r{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,s){this._$Ct=e,this._$AM=t,this._$Ci=s}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}var a=s(33692);class c extends r{constructor(e){if(super(e),this.et=a.Ld,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===a.Ld||null==e)return this.vt=void 0,this.et=e;if(e===a.Jb)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;const t=[e];return t.raw=t,this.vt={_$litType$:this.constructor.resultType,strings:t,values:[]}}}c.directiveName="unsafeHTML",c.resultType=1,o(c);class l extends c{}l.directiveName="unsafeSVG",l.resultType=2;const d=o(l);function h(e){let t=i.Ld;if(e){const s=e.cloneNode(!0);s.removeAttribute("id"),t=i.YP`${d(s.outerHTML)}`}return t}function _(e){let t=null==e||""===e?i.Ld:e;return function(e){return(0,n.hN)(e,n.VJ.SVG)||e===i.Ld}(t)||(console.error("[vaadin-icon] Invalid svg passed, please use Lit svg literal."),t=i.Ld),t}function u(e,t){const s=_(e);(0,i.sY)(s,t)}function p(e){return i.YP`${d(e)}`}},13529:(e,t,s)=>{s.d(t,{D:()=>_});var i=s(3354),n=s(52807),o=s(12521),r=s(30048);const a={},c=new Set;function l(e,t){return(e||"").replace(`${t}:`,"")}function d(e){if(e)return e.split(":")[0]||"vaadin"}function h(e,t){e._icons=[...e.querySelectorAll("[id]")].reduce(((e,s)=>(e[l(s.id,t)]=s,e)),{})}class _ extends((0,o.S)(i.H3)){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return c}static getIconset(e){return a[e]}static getIconSvg(e,t){const s=t||d(e),i=this.getIconset(s);if(!e||!i)return{svg:(0,r.Pe)(null)};const n=l(e,s),o=i._icons[n];return{preserveAspectRatio:o?o.getAttribute("preserveAspectRatio"):null,svg:(0,r.Pe)(o),size:i.size,viewBox:o?o.getAttribute("viewBox"):null}}static register(e,t,s){if(!a[e]){const i=document.createElement("vaadin-iconset");i.appendChild(s.content.cloneNode(!0)),a[e]=i,h(i,e),i.size=t,i.name=e,i.__nameChanged(e)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:e}=this;a[e]=this,h(this,e),this.__updateIcons(e)}__updateIcons(e){c.forEach((t=>{e===d(t.icon)&&t._applyIcon()}))}__nameChanged(e,t){t&&(a[e]=a[t],delete a[t]),e&&this.__updateIcons(e)}}(0,n.M)(_)},57911:(e,t,s)=>{s(79098);var i=s(46570);(0,i.hC)("vaadin-icon",i.iv`
3
- :host {
4
- width: var(--lumo-icon-size-m);
5
- height: var(--lumo-icon-size-m);
6
- }
7
- `,{moduleId:"lumo-icon"});var n=s(3354),o=s(16155),r=s(52807),a=s(12521),c=s(24946),l=s(34463),d=s(91014),h=s(29680),_=s(61037);const u=!CSS.supports("container-type: inline-size")||!!_.G6&&!function(){const e=document.createElement("style");e.textContent="\n .vaadin-icon-test-element {\n container-type: size;\n height: 2px;\n visibility: hidden;\n position: fixed;\n }\n\n .vaadin-icon-test-element::before {\n content: '';\n display: block;\n height: 100cqh;\n ";const t=document.createElement("div");t.classList.add("vaadin-icon-test-element"),document.body.append(e,t);const{height:s}=getComputedStyle(t,"::before");return e.remove(),t.remove(),"2px"===s}();u&&(0,i.hC)("vaadin-icon",i.iv`
8
- :host::after,
9
- :host::before {
10
- font-size: var(--_vaadin-font-icon-size);
11
- }
12
- `,"vaadin-icon-font-size-mixin-styles");const p=(0,d.o)((e=>u?class extends((0,h.F)(e)){static get observers(){return["__iconFontSizeMixinfontChanged(iconClass, char, ligature)"]}ready(){super.ready(),this.__updateFontIconSize()}__iconFontSizeMixinfontChanged(e,t,s){this.__updateFontIconSize()}_onResize(){this.__updateFontIconSize()}__updateFontIconSize(){if(this.char||this.iconClass||this.ligature){const{paddingTop:e,paddingBottom:t,height:s}=getComputedStyle(this),i=parseFloat(s)-parseFloat(e)-parseFloat(t);this.style.setProperty("--_vaadin-font-icon-size",`${i}px`)}}}:e));var g=s(30048),v=s(13529);const f=new Map;class b extends((0,i.Tb)((0,a.S)((0,o.k)((0,c.W)(p(n.H3)))))){static get template(){return n.dy`
13
- <style>
14
- :host {
15
- display: inline-flex;
16
- justify-content: center;
17
- align-items: center;
18
- box-sizing: border-box;
19
- vertical-align: middle;
20
- width: 24px;
21
- height: 24px;
22
- fill: currentColor;
23
- container-type: size;
24
- }
25
-
26
- :host::after,
27
- :host::before {
28
- line-height: 1;
29
- font-size: 100cqh;
30
- -webkit-font-smoothing: antialiased;
31
- text-rendering: optimizeLegibility;
32
- -moz-osx-font-smoothing: grayscale;
33
- }
34
-
35
- :host([hidden]) {
36
- display: none !important;
37
- }
38
-
39
- svg {
40
- display: block;
41
- width: 100%;
42
- height: 100%;
43
- }
44
-
45
- :host(:is([icon-class], [font-icon-content])) svg {
46
- display: none;
47
- }
48
-
49
- :host([font-icon-content])::before {
50
- content: attr(font-icon-content);
51
- }
52
- </style>
53
- <svg
54
- version="1.1"
55
- xmlns="http://www.w3.org/2000/svg"
56
- xmlns:xlink="http://www.w3.org/1999/xlink"
57
- viewBox="[[__computeViewBox(size, __viewBox)]]"
58
- preserveAspectRatio="[[__computePAR(__defaultPAR, __preserveAspectRatio)]]"
59
- fill$="[[__fill]]"
60
- stroke$="[[__stroke]]"
61
- stroke-width$="[[__strokeWidth]]"
62
- stroke-linecap$="[[__strokeLinecap]]"
63
- stroke-linejoin$="[[__strokeLinejoin]]"
64
- aria-hidden="true"
65
- >
66
- <g id="svg-group"></g>
67
- <g id="use-group" visibility$="[[__computeVisibility(__useRef, svg)]]">
68
- <use href$="[[__useRef]]" />
69
- </g>
70
- </svg>
71
-
72
- <slot name="tooltip"></slot>
73
- `}static get is(){return"vaadin-icon"}static get properties(){return{icon:{type:String,reflectToAttribute:!0,observer:"__iconChanged"},svg:{type:Object},src:{type:String},symbol:{type:String},iconClass:{type:String,reflectToAttribute:!0},char:{type:String},ligature:{type:String},fontFamily:{type:String,observer:"__fontFamilyChanged"},size:{type:Number,value:24},__defaultPAR:{type:String,value:"xMidYMid meet"},__preserveAspectRatio:String,__useRef:Object,__svgElement:String,__viewBox:String,__fill:String,__stroke:String,__strokeWidth:String,__strokeLinecap:String,__strokeLinejoin:String}}static get observers(){return["__svgChanged(svg, __svgElement)","__fontChanged(iconClass, char, ligature)","__srcChanged(src, symbol)"]}static get observedAttributes(){return[...super.observedAttributes,"class"]}constructor(){super(),this.__fetch=fetch.bind(window)}get slotStyles(){return[`\n ${this.localName}[icon-class] {\n display: inline-flex;\n vertical-align: middle;\n font-size: inherit;\n }\n `]}get __iconClasses(){return this.iconClass?this.iconClass.split(" "):[]}ready(){super.ready(),this.__svgElement=this.shadowRoot.querySelector("#svg-group"),this._tooltipController=new l.f(this),this.addController(this._tooltipController)}connectedCallback(){super.connectedCallback(),v.D.attachedIcons.add(this)}disconnectedCallback(){super.disconnectedCallback(),v.D.attachedIcons.delete(this)}_applyIcon(){const{preserveAspectRatio:e,svg:t,size:s,viewBox:i}=v.D.getIconSvg(this.icon);i&&(this.__viewBox=i),e&&(this.__preserveAspectRatio=e),s&&s!==this.size&&(this.size=s),this.svg=t}__iconChanged(e){e?this._applyIcon():this.svg=(0,g.kO)(null)}async __srcChanged(e,t){if(e)if(this.icon="",e.startsWith("data:")||!t&&!e.includes("#"))try{f.has(e)||f.set(e,this.__fetch(e,{mode:"cors"}).then((e=>{if(!e.ok)throw new Error("Error loading icon");return e.text()})));const s=await f.get(e);b.__domParser||(b.__domParser=new DOMParser);const i=b.__domParser.parseFromString(s,"text/html").querySelector("svg");if(!i)throw new Error(`SVG element not found on path: ${e}`);this.svg=(0,g.KE)(i.innerHTML),t&&(this.__useRef=`#${t}`),this.__viewBox=i.getAttribute("viewBox"),this.__fill=i.getAttribute("fill"),this.__stroke=i.getAttribute("stroke"),this.__strokeWidth=i.getAttribute("stroke-width"),this.__strokeLinecap=i.getAttribute("stroke-linecap"),this.__strokeLinejoin=i.getAttribute("stroke-linejoin")}catch(e){console.error(e),this.svg=null}else{const[s,i]=e.split("#");this.__useRef=`${s}#${t||i}`}else this.svg=null}__svgChanged(e,t){t&&(0,g.jq)(e,t)}__computePAR(e,t){return t||e}__computeVisibility(e){return e?"visible":"hidden"}__computeViewBox(e,t){return t||`0 0 ${e} ${e}`}__fontChanged(e,t,s){this.classList.remove(...this.__addedIconClasses||[]),e&&(this.__addedIconClasses=[...this.__iconClasses],this.classList.add(...this.__addedIconClasses)),t?this.setAttribute("font-icon-content",t.length>1?String.fromCodePoint(parseInt(t,16)):t):s?this.setAttribute("font-icon-content",s):this.removeAttribute("font-icon-content"),(e||t||s)&&!this.icon&&(this.icon="")}attributeChangedCallback(e,t,s){super.attributeChangedCallback(e,t,s),"class"===e&&this.__iconClasses.some((e=>!this.classList.contains(e)))&&this.classList.add(...this.__iconClasses)}__fontFamilyChanged(e){this.style.fontFamily=`'${e}'`}}(0,r.M)(b)},56977:(e,t,s)=>{s.d(t,{VJ:()=>o,hN:()=>r});var i=s(33692);const{D:n}=i._$LH,o={HTML:1,SVG:2},r=(e,t)=>void 0===t?void 0!==e?._$litType$:e?._$litType$===t}}]);
package/dist/umd/8060.js DELETED
@@ -1,352 +0,0 @@
1
- /*! For license information please see 8060.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[8060],{21360:(t,e,o)=>{o.d(e,{W:()=>s});var i=o(91014),n=o(3550);const s=(0,i.o)((t=>class extends t{get _keyboardActive(){return(0,n.LQ)()}ready(){this.addEventListener("focusin",(t=>{this._shouldSetFocus(t)&&this._setFocused(!0)})),this.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}}))},3550:(t,e,o)=>{o.d(e,{GF:()=>h,GO:()=>u,Gf:()=>n,LQ:()=>s,Qw:()=>d});let i=!1;function n(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function s(){return i}function a(t){const e=t.style;if("hidden"===e.visibility||"none"===e.display)return!0;const o=window.getComputedStyle(t);return"hidden"===o.visibility||"none"===o.display}function r(t,e){const o=Math.max(t.tabIndex,0),i=Math.max(e.tabIndex,0);return 0===o||0===i?i>o:o>i}function l(t){const e=t.length;if(e<2)return t;const o=Math.ceil(e/2);return function(t,e){const o=[];for(;t.length>0&&e.length>0;)r(t[0],e[0])?o.push(e.shift()):o.push(t.shift());return o.concat(t,e)}(l(t.slice(0,o)),l(t.slice(o)))}function h(t){return null===t.offsetParent&&0===t.clientWidth&&0===t.clientHeight||a(t)}function d(t){return t.getRootNode().activeElement===t}function _(t,e){if(t.nodeType!==Node.ELEMENT_NODE||a(t))return!1;const o=t,i=function(t){if(!function(t){return!t.matches('[tabindex="-1"]')&&(t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}(o);let n=i>0;i>=0&&e.push(o);let s=[];return s="slot"===o.localName?o.assignedNodes({flatten:!0}):(o.shadowRoot||o).children,[...s].forEach((t=>{n=_(t,e)||n})),n}function u(t){const e=[];return _(t,e)?l(e):e}window.addEventListener("keydown",(()=>{i=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{i=!1}),{capture:!0})},2131:(t,e,o)=>{o(51195),o(29849),o(34173);var i=o(90510),n=o(46570);const s=n.iv`
3
- :host {
4
- --vaadin-tooltip-offset-top: var(--lumo-space-xs);
5
- --vaadin-tooltip-offset-bottom: var(--lumo-space-xs);
6
- --vaadin-tooltip-offset-start: var(--lumo-space-xs);
7
- --vaadin-tooltip-offset-end: var(--lumo-space-xs);
8
- }
9
-
10
- [part='overlay'] {
11
- background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
12
- color: var(--lumo-body-text-color);
13
- font-size: var(--lumo-font-size-xs);
14
- line-height: var(--lumo-line-height-s);
15
- }
16
-
17
- [part='content'] {
18
- padding: var(--lumo-space-xs) var(--lumo-space-s);
19
- }
20
- `;(0,n.hC)("vaadin-tooltip-overlay",[i.I,s],{moduleId:"lumo-tooltip-overlay"});var a=o(3354),r=o(52807),l=o(51914),h=o(6196),d=o(14932),_=o(63373);const u=t=>class extends((0,_.y)((0,d.F)(t))){static get properties(){return{position:{type:String,reflectToAttribute:!0}}}requestContentUpdate(){if(super.requestContentUpdate(),this.toggleAttribute("hidden",""===this.textContent.trim()),this.positionTarget&&this.owner){const t=getComputedStyle(this.owner);["top","bottom","start","end"].forEach((e=>{this.style.setProperty(`--vaadin-tooltip-offset-${e}`,t.getPropertyValue(`--vaadin-tooltip-offset-${e}`))}))}}_updatePosition(){if(super._updatePosition(),this.positionTarget){if("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`)}if(this.style.right){const t=parseFloat(this.style.right)+o;t>0&&(this.style.right=`${t}px`)}}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`}}}},c=n.iv`
21
- :host {
22
- z-index: 1100;
23
- }
24
-
25
- [part='overlay'] {
26
- max-width: 40ch;
27
- }
28
-
29
- :host([position^='top'][top-aligned]) [part='overlay'],
30
- :host([position^='bottom'][top-aligned]) [part='overlay'] {
31
- margin-top: var(--vaadin-tooltip-offset-top, 0);
32
- }
33
-
34
- :host([position^='top'][bottom-aligned]) [part='overlay'],
35
- :host([position^='bottom'][bottom-aligned]) [part='overlay'] {
36
- margin-bottom: var(--vaadin-tooltip-offset-bottom, 0);
37
- }
38
-
39
- :host([position^='start'][start-aligned]) [part='overlay'],
40
- :host([position^='end'][start-aligned]) [part='overlay'] {
41
- margin-inline-start: var(--vaadin-tooltip-offset-start, 0);
42
- }
43
-
44
- :host([position^='start'][end-aligned]) [part='overlay'],
45
- :host([position^='end'][end-aligned]) [part='overlay'] {
46
- margin-inline-end: var(--vaadin-tooltip-offset-end, 0);
47
- }
48
-
49
- @media (forced-colors: active) {
50
- [part='overlay'] {
51
- outline: 1px dashed;
52
- }
53
- }
54
- `;(0,n.hC)("vaadin-tooltip-overlay",[h.r,c],{moduleId:"vaadin-tooltip-overlay-styles"});class p extends(u((0,l.U)((0,n.Tb)(a.H3)))){static get is(){return"vaadin-tooltip-overlay"}static get template(){return a.dy`
55
- <div id="backdrop" part="backdrop" hidden></div>
56
- <div part="overlay" id="overlay">
57
- <div part="content" id="content"><slot></slot></div>
58
- </div>
59
- `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}}(0,r.M)(p);var m=o(16155),v=o(12521),g=o(61462),A=o(3550),b=o(87913),f=o(36139),y=o(63726),x=o(39320),C=o(78591),w=o(73971);const E=500;let T=E,z=E,O=E;const B=new Set;let L=!1,D=null,S=null;class I{constructor(t){this.host=t}get openedProp(){return this.host.manual?"opened":"_autoOpened"}get focusDelay(){const t=this.host;return null!=t.focusDelay&&t.focusDelay>0?t.focusDelay:T}get hoverDelay(){const t=this.host;return null!=t.hoverDelay&&t.hoverDelay>0?t.hoverDelay:z}get hideDelay(){const t=this.host;return null!=t.hideDelay&&t.hideDelay>0?t.hideDelay:O}get isClosing(){return B.has(this.host)}open(t={immediate:!1}){const{immediate:e,hover:o,focus:i}=t,n=o&&this.hoverDelay>0,s=i&&this.focusDelay>0;e||!n&&!s||this.__closeTimeout?this.__showTooltip():this.__warmupTooltip(s)}close(t){!t&&this.hideDelay>0?this.__scheduleClose():(this.__abortClose(),this._setOpened(!1)),this.__abortWarmUp(),L&&(this.__abortCooldown(),this.__scheduleCooldown())}_isOpened(){return this.host[this.openedProp]}_setOpened(t){this.host[this.openedProp]=t}__flushClosingTooltips(){B.forEach((t=>{t._stateController.close(!0),B.delete(t)}))}__showTooltip(){this.__abortClose(),this.__flushClosingTooltips(),this._setOpened(!0),L=!0,this.__abortWarmUp(),this.__abortCooldown()}__warmupTooltip(t){this._isOpened()||(L?this.__showTooltip():this.__scheduleWarmUp(t))}__abortClose(){this.__closeTimeout&&(clearTimeout(this.__closeTimeout),this.__closeTimeout=null)}__abortCooldown(){S&&(clearTimeout(S),S=null)}__abortWarmUp(){D&&(clearTimeout(D),D=null)}__scheduleClose(){this._isOpened()&&(B.add(this.host),this.__closeTimeout=setTimeout((()=>{B.delete(this.host),this.__closeTimeout=null,this._setOpened(!1)}),this.hideDelay))}__scheduleCooldown(){S=setTimeout((()=>{S=null,L=!1}),this.hideDelay)}__scheduleWarmUp(t){const e=t?this.focusDelay:this.hoverDelay;D=setTimeout((()=>{D=null,L=!0,this.__showTooltip()}),e)}}const M=t=>class extends((0,x.u)(t)){static get properties(){return{ariaTarget:{type:Object},context:{type:Object,value:()=>({})},focusDelay:{type:Number},for:{type:String,observer:"__forChanged"},generator:{type:Object},hideDelay:{type:Number},hoverDelay:{type:Number},manual:{type:Boolean,value:!1,sync:!0},opened:{type:Boolean,value:!1,sync:!0},position:{type:String},shouldShow:{type:Object,value:()=>(t,e)=>!0},target:{type:Object,observer:"__targetChanged"},text:{type:String,observer:"__textChanged"},_autoOpened:{type:Boolean,observer:"__autoOpenedChanged",sync:!0},_effectiveAriaTarget:{type:Object,computed:"__computeAriaTarget(ariaTarget, target)",observer:"__effectiveAriaTargetChanged"},__effectivePosition:{type:String,computed:"__computePosition(position, _position)"},__isTargetHidden:{type:Boolean,value:!1},_isConnected:{type:Boolean,sync:!0},_position:{type:String,value:"bottom"},_srLabel:{type:Object},_overlayContent:{type:String}}}static get observers(){return["__generatorChanged(_overlayElement, generator, context)","__updateSrLabelText(_srLabel, _overlayContent)"]}static setDefaultFocusDelay(t){T=null!=t&&t>=0?t:E}static setDefaultHideDelay(t){O=null!=t&&t>=0?t:E}static setDefaultHoverDelay(t){z=null!=t&&t>=0?t:E}constructor(){super(),this._uniqueId=`vaadin-tooltip-${(0,w.l)()}`,this._renderer=this.__tooltipRenderer.bind(this),this.__onFocusin=this.__onFocusin.bind(this),this.__onFocusout=this.__onFocusout.bind(this),this.__onMouseDown=this.__onMouseDown.bind(this),this.__onMouseEnter=this.__onMouseEnter.bind(this),this.__onMouseLeave=this.__onMouseLeave.bind(this),this.__onKeyDown=this.__onKeyDown.bind(this),this.__onOverlayOpen=this.__onOverlayOpen.bind(this),this.__targetVisibilityObserver=new IntersectionObserver((t=>{t.forEach((t=>this.__onTargetVisibilityChange(t.isIntersecting)))}),{threshold:0}),this._stateController=new I(this)}connectedCallback(){super.connectedCallback(),this._isConnected=!0,document.body.addEventListener("vaadin-overlay-open",this.__onOverlayOpen)}disconnectedCallback(){super.disconnectedCallback(),this._autoOpened&&this._stateController.close(!0),this._isConnected=!1,document.body.removeEventListener("vaadin-overlay-open",this.__onOverlayOpen)}ready(){super.ready(),this._srLabelController=new C.n(this,"sr-label","div",{initializer:t=>{t.id=this._uniqueId,t.setAttribute("role","tooltip"),this._srLabel=t}}),this.addController(this._srLabelController)}__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"}__computeOpened(t,e,o,i){return i&&(t?e:o)}__computePosition(t,e){return t||e}__autoOpenedChanged(t,e){t?document.addEventListener("keydown",this.__onKeyDown,!0):e&&document.removeEventListener("keydown",this.__onKeyDown,!0)}__forChanged(t){t&&(this.__setTargetByIdDebouncer=f.dx.debounce(this.__setTargetByIdDebouncer,b.YA,(()=>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}" found to show tooltip.`)}__targetChanged(t,e){e&&(e.removeEventListener("mouseenter",this.__onMouseEnter),e.removeEventListener("mouseleave",this.__onMouseLeave),e.removeEventListener("focusin",this.__onFocusin),e.removeEventListener("focusout",this.__onFocusout),e.removeEventListener("mousedown",this.__onMouseDown),this.__targetVisibilityObserver.unobserve(e)),t&&(t.addEventListener("mouseenter",this.__onMouseEnter),t.addEventListener("mouseleave",this.__onMouseLeave),t.addEventListener("focusin",this.__onFocusin),t.addEventListener("focusout",this.__onFocusout),t.addEventListener("mousedown",this.__onMouseDown),requestAnimationFrame((()=>{this.__targetVisibilityObserver.observe(t)})))}__onFocusin(t){this.manual||(0,A.LQ)()&&(this.target.contains(t.relatedTarget)||this.__isShouldShow()&&(this.__focusInside=!0,this.__isTargetHidden||this.__hoverInside&&this._autoOpened||this._stateController.open({focus:!0})))}__onFocusout(t){this.manual||this.target.contains(t.relatedTarget)||(this.__focusInside=!1,this.__hoverInside||this._stateController.close(!0))}__onKeyDown(t){"Escape"===t.key&&(t.stopPropagation(),this._stateController.close(!0))}__onMouseDown(){this._stateController.close(!0)}__onMouseEnter(){this.manual||this.__isShouldShow()&&(this.__hoverInside||(this.__hoverInside=!0,this.__isTargetHidden||this.__focusInside&&this._autoOpened||this._stateController.open({hover:!0})))}__onMouseLeave(t){t.relatedTarget!==this._overlayElement&&this.__handleMouseLeave()}__onOverlayMouseEnter(){this._stateController.isClosing&&this._stateController.open({immediate:!0})}__onOverlayMouseLeave(t){t.relatedTarget!==this.target&&this.__handleMouseLeave()}__handleMouseLeave(){this.manual||(this.__hoverInside=!1,this.__focusInside||this._stateController.close())}__onOverlayOpen(){this.manual||this._overlayElement.opened&&!this._overlayElement._last&&this._stateController.close(!0)}__onTargetVisibilityChange(t){const e=this.__isTargetHidden;this.__isTargetHidden=!t,e&&t&&(this.__focusInside||this.__hoverInside)?this._stateController.open({immediate:!0}):!t&&this._autoOpened&&this._stateController.close(!0)}__isShouldShow(){return"function"!=typeof this.shouldShow||!0===this.shouldShow(this.target,this.context)}__textChanged(t,e){this._overlayElement&&(t||e)&&this._overlayElement.requestContentUpdate()}__tooltipRenderer(t){t.textContent="function"==typeof this.generator?this.generator(this.context):this.text,this._overlayContent=t.textContent}__computeAriaTarget(t,e){return(Array.isArray(t)?t.some((t=>t&&t.nodeType===Node.ELEMENT_NODE)):t)?t:e}__effectiveAriaTargetChanged(t,e){e&&[e].flat().forEach((t=>{(0,y.x_)(t,"aria-describedby",this._uniqueId)})),t&&[t].flat().forEach((t=>{(0,y.$2)(t,"aria-describedby",this._uniqueId)}))}__generatorChanged(t,e,o){t&&(e===this.__oldTextGenerator&&o===this.__oldContext||t.requestContentUpdate(),this.__oldTextGenerator=e,this.__oldContext=o)}__updateSrLabelText(t,e){t&&(t.textContent=e)}};class k extends(M((0,g.I)((0,v.S)((0,m.k)(a.H3))))){static get is(){return"vaadin-tooltip"}static get template(){return a.dy`
60
- <style>
61
- :host {
62
- display: none;
63
- }
64
- </style>
65
- <vaadin-tooltip-overlay
66
- renderer="[[_renderer]]"
67
- theme$="[[_theme]]"
68
- opened="[[__computeOpened(manual, opened, _autoOpened, _isConnected)]]"
69
- position-target="[[target]]"
70
- position="[[__effectivePosition]]"
71
- no-horizontal-overlap$="[[__computeNoHorizontalOverlap(__effectivePosition)]]"
72
- no-vertical-overlap$="[[__computeNoVerticalOverlap(__effectivePosition)]]"
73
- horizontal-align="[[__computeHorizontalAlign(__effectivePosition)]]"
74
- vertical-align="[[__computeVerticalAlign(__effectivePosition)]]"
75
- on-mouseenter="__onOverlayMouseEnter"
76
- on-mouseleave="__onOverlayMouseLeave"
77
- modeless
78
- ></vaadin-tooltip-overlay>
79
-
80
- <slot name="sr-label"></slot>
81
- `}}(0,r.M)(k),o(79098),o(29416),o(24407);var P=o(32463);const Y=n.iv`
82
- :host {
83
- --vaadin-user-color-0: #df0b92;
84
- --vaadin-user-color-1: #650acc;
85
- --vaadin-user-color-2: #097faa;
86
- --vaadin-user-color-3: #ad6200;
87
- --vaadin-user-color-4: #bf16f3;
88
- --vaadin-user-color-5: #084391;
89
- --vaadin-user-color-6: #078836;
90
- }
91
-
92
- [theme~='dark'] {
93
- --vaadin-user-color-0: #ff66c7;
94
- --vaadin-user-color-1: #9d8aff;
95
- --vaadin-user-color-2: #8aff66;
96
- --vaadin-user-color-3: #ffbd66;
97
- --vaadin-user-color-4: #dc6bff;
98
- --vaadin-user-color-5: #66fffa;
99
- --vaadin-user-color-6: #e6ff66;
100
- }
101
- `;(0,P.K)("user-color-props",Y);const G=document.createElement("style");G.textContent="html { --vaadin-avatar-size: var(--lumo-size-m); }",document.head.appendChild(G),(0,n.hC)("vaadin-avatar",n.iv`
102
- :host {
103
- color: var(--lumo-secondary-text-color);
104
- background-color: var(--lumo-contrast-10pct);
105
- border-radius: 50%;
106
- outline: none;
107
- cursor: default;
108
- user-select: none;
109
- -webkit-tap-highlight-color: transparent;
110
- -webkit-font-smoothing: antialiased;
111
- -moz-osx-font-smoothing: grayscale;
112
- }
113
-
114
- :host([has-color-index]) {
115
- color: var(--lumo-base-color);
116
- }
117
-
118
- :host([focus-ring]) {
119
- border-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
120
- }
121
-
122
- [part='icon'],
123
- [part='abbr'] {
124
- fill: currentColor;
125
- }
126
-
127
- [part='abbr'] {
128
- font-family: var(--lumo-font-family);
129
- font-size: 2.4375em;
130
- font-weight: 500;
131
- }
132
-
133
- :host([theme~='xlarge']) [part='abbr'] {
134
- font-size: 2.5em;
135
- }
136
-
137
- :host([theme~='large']) [part='abbr'] {
138
- font-size: 2.375em;
139
- }
140
-
141
- :host([theme~='small']) [part='abbr'] {
142
- font-size: 2.75em;
143
- }
144
-
145
- :host([theme~='xsmall']) [part='abbr'] {
146
- font-size: 3em;
147
- }
148
-
149
- :host([theme~='xlarge']) {
150
- --vaadin-avatar-size: var(--lumo-size-xl);
151
- }
152
-
153
- :host([theme~='large']) {
154
- --vaadin-avatar-size: var(--lumo-size-l);
155
- }
156
-
157
- :host([theme~='small']) {
158
- --vaadin-avatar-size: var(--lumo-size-s);
159
- }
160
-
161
- :host([theme~='xsmall']) {
162
- --vaadin-avatar-size: var(--lumo-size-xs);
163
- }
164
- `,{moduleId:"lumo-avatar"});const V=document.createElement("template");V.innerHTML="\n <style>\n @font-face {\n font-family: 'vaadin-avatar-icons';\n src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAQAAAsAAAAABnwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUmEY21hcAAAAYgAAABLAAABcOspwa1nbHlmAAAB1AAAAEUAAABMYO4o1WhlYWQAAAIcAAAALgAAADYYaAmGaGhlYQAAAkwAAAAdAAAAJAZsA1VobXR4AAACbAAAAAgAAAAIA+gAAGxvY2EAAAJ0AAAABgAAAAYAJgAAbWF4cAAAAnwAAAAeAAAAIAEOACFuYW1lAAACnAAAAUIAAAKavFDYrHBvc3QAAAPgAAAAHQAAAC52hGZ4eJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGT8wjiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+YmQO+p/FEMUcxDANKMwIkgMADiUMJQB4nGNgYGBlYGBgBmIdIGZhYGAMYWBkAAE/oCgjWJyZgQsszsKgBFbDAhJ/xfj/P4wE8lnAJAMjG8Mo4AGTMlAeOKwgmIERADU0CX0AeJxjYGIAAmYJpkgGHgYRBgZGJT1GEztGIzlGET5GKEuU8YuSpZKSpQuI+LfLv21emz9jHJQPJP7dsUywsEiwBACG8g9CAAAAeJxjYGRgYADicIOnh+P5bb4ycDO/AIow3JZ4rIJMM0swRQIpDgYmEA8AKwgJOwAAeJxjYGRgYA76nwUkXzAAAbMEAyMDKmACAE2GAskAAAAAAAAAA+gAAAAAAAAAJgAAeJxjYGRgYGBiEAViBjCLgYELCBkY/oP5DAAKuwEwAAB4nI2Qu07DMBSG//SGaCWEhMSAGDx1QU0vYyemdmDrUDEhuamTpkriyHEj9RF4B56Bh2Bg5mmY+8d4Qh3qo9jf+c45thQAt/hGgGYFuHN7s1q4YvbHbdKD5w555LmLAZ499+hfPPfxhDfPA/p33hB0rmmG+PDcwg2+PLfpfzx3yL+eu7gPHj33MAxmnvtYB6+eB/SftZTbtBjJWlppRmmki2qlkkMmzZnKGbVWpkp1Iabh5Ex1qQplpFVbsTmKqk5m1sYiNjoXC11YlWValEbvVWTDnbXlfDyOvQ8jnaOGZGyRouCfky63/AyzFBE0fYUVFBIckLnKZTOXda15s+GZulxgihCTC2eXnC3cfFNV7BfY4Mi9eT3BjNYiZh6zRyMnLdxs050xNE3panuaiD7Ezk2VmGPMiP/1h+71/ATcWYAhAAB4nGNgYoAALgbsgImRiZGZgaW0OLWIgQEACl4B2QAAAA==) format('woff');\n font-weight: normal;\n font-style: normal;\n }\n </style>\n",document.head.appendChild(V.content);var N=o(34463),H=o(21360);const F=t=>class extends((0,H.W)(t)){static get properties(){return{img:{type:String,reflectToAttribute:!0,observer:"__imgChanged"},abbr:{type:String,reflectToAttribute:!0},name:{type:String,reflectToAttribute:!0},colorIndex:{type:Number,observer:"__colorIndexChanged"},i18n:{type:Object,value:()=>({anonymous:"anonymous"})},withTooltip:{type:Boolean,value:!1,observer:"__withTooltipChanged"},__imgVisible:Boolean,__iconVisible:Boolean,__abbrVisible:Boolean,__tooltipNode:Object}}static get observers(){return["__imgOrAbbrOrNameChanged(img, abbr, name)","__i18nChanged(i18n)","__tooltipChanged(__tooltipNode, name, abbr)"]}ready(){super.ready(),this.__updateVisibility(),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.name||this.abbr||this.__setTooltip()}__colorIndexChanged(t){if(null!=t){const e=`--vaadin-user-color-${t}`;Boolean(getComputedStyle(document.documentElement).getPropertyValue(e))?(this.setAttribute("has-color-index",""),this.style.setProperty("--vaadin-avatar-user-color",`var(${e})`)):(this.removeAttribute("has-color-index"),console.warn(`The CSS property --vaadin-user-color-${t} is not defined`))}else this.removeAttribute("has-color-index")}__imgChanged(){this.__imgFailedToLoad=!1}__imgOrAbbrOrNameChanged(t,e,o){this.__updateVisibility(),e&&e!==this.__generatedAbbr||(this.abbr=o?this.__generatedAbbr=o.split(" ").map((t=>t.charAt(0))).join(""):void 0)}__tooltipChanged(t,e,o){t&&(o&&o!==this.__generatedAbbr?this.__setTooltip(e?`${e} (${o})`:o):this.__setTooltip(e))}__withTooltipChanged(t,e){if(t){const t=document.createElement("vaadin-tooltip");t.setAttribute("slot","tooltip"),this.appendChild(t),this.__tooltipNode=t}else e&&(this.__tooltipNode.target=null,this.__tooltipNode.remove(),this.__tooltipNode=null)}__i18nChanged(t){t&&t.anonymous&&(this.__oldAnonymous&&this.__tooltipNode&&this.__tooltipNode.text===this.__oldAnonymous&&this.__setTooltip(),this.__oldAnonymous=t.anonymous)}__updateVisibility(){this.__imgVisible=!!this.img&&!this.__imgFailedToLoad,this.__abbrVisible=!this.__imgVisible&&!!this.abbr,this.__iconVisible=!this.__imgVisible&&!this.abbr}__setTooltip(t){const e=this.__tooltipNode;e&&(e.text=t||this.i18n.anonymous)}__onImageLoadError(){this.img&&(console.warn(`<vaadin-avatar> The specified image could not be loaded: ${this.img}`),this.__imgFailedToLoad=!0,this.__updateVisibility())}},R=n.iv`
165
- :host {
166
- display: inline-block;
167
- flex: none;
168
- border-radius: 50%;
169
- overflow: hidden;
170
- height: var(--vaadin-avatar-size, 64px);
171
- width: var(--vaadin-avatar-size, 64px);
172
- border: var(--vaadin-avatar-outline-width) solid transparent;
173
- margin: calc(var(--vaadin-avatar-outline-width) * -1);
174
- background-clip: content-box;
175
- --vaadin-avatar-outline-width: var(--vaadin-focus-ring-width, 2px);
176
- }
177
-
178
- img {
179
- height: 100%;
180
- width: 100%;
181
- object-fit: cover;
182
- }
183
-
184
- [part='icon'] {
185
- font-size: 5.6em;
186
- }
187
-
188
- [part='abbr'] {
189
- font-size: 2.2em;
190
- }
191
-
192
- [part='icon'] > text {
193
- font-family: 'vaadin-avatar-icons';
194
- }
195
-
196
- :host([hidden]) {
197
- display: none !important;
198
- }
199
-
200
- svg[hidden] {
201
- display: none !important;
202
- }
203
-
204
- :host([has-color-index]) {
205
- position: relative;
206
- background-color: var(--vaadin-avatar-user-color);
207
- }
208
-
209
- :host([has-color-index])::before {
210
- position: absolute;
211
- content: '';
212
- inset: 0;
213
- border-radius: inherit;
214
- box-shadow: inset 0 0 0 2px var(--vaadin-avatar-user-color);
215
- }
216
- `;(0,n.hC)("vaadin-avatar",R,{moduleId:"vaadin-avatar-styles"});class j extends(F((0,v.S)((0,n.Tb)((0,m.k)(a.H3))))){static get template(){return a.dy`
217
- <img hidden$="[[!__imgVisible]]" src$="[[img]]" aria-hidden="true" on-error="__onImageLoadError" />
218
- <svg
219
- part="icon"
220
- hidden$="[[!__iconVisible]]"
221
- id="avatar-icon"
222
- viewBox="-50 -50 100 100"
223
- preserveAspectRatio="xMidYMid meet"
224
- aria-hidden="true"
225
- >
226
- <text dy=".35em" text-anchor="middle">&#xea01;</text>
227
- </svg>
228
- <svg
229
- part="abbr"
230
- hidden$="[[!__abbrVisible]]"
231
- id="avatar-abbr"
232
- viewBox="-50 -50 100 100"
233
- preserveAspectRatio="xMidYMid meet"
234
- aria-hidden="true"
235
- >
236
- <text dy=".35em" text-anchor="middle">[[abbr]]</text>
237
- </svg>
238
-
239
- <slot name="tooltip"></slot>
240
- `}static get is(){return"vaadin-avatar"}ready(){super.ready(),this._tooltipController=new N.f(this),this.addController(this._tooltipController)}}(0,r.M)(j)},61037:(t,e,o)=>{o.d(e,{Dt:()=>s,G6:()=>d,T:()=>_,gn:()=>h,i7:()=>a,vU:()=>r});const i=t=>t.test(navigator.userAgent),n=t=>t.test(navigator.platform),s=i(/Android/u),a=i(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),r=i(/Firefox/u),l=n(/^iPad/u)||n(/^Mac/u)&&navigator.maxTouchPoints>1,h=n(/^iPhone/u)||l,d=i(/^((?!chrome|android).)*safari/iu),_=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})()},24946:(t,e,o)=>{o.d(e,{W:()=>s});var i=o(91014);const n=new WeakMap,s=(0,i.o)((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return n.has(t)||n.set(t,new Set),n.get(t)}(t);this.slotStyles.forEach((o=>{e.has(o)||(function(t,e){const o=document.createElement("style");o.textContent=t,e===document?document.head.appendChild(o):e.insertBefore(o,e.firstChild)}(o,t),e.add(o))}))}}))},63373:(t,e,o)=>{o.d(e,{y:()=>r});var i=o(63726);const n={start:"top",end:"bottom"},s={start:"left",end:"right"},a=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),r=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=(0,i.AD)(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,!0)}))}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,a.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,a.observe(e))),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)}))),this.setAttribute("dir",t.direction),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const t=this.positionTarget.getBoundingClientRect(),e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const o=this.__isRTL,i=this.__shouldAlignStartHorizontally(t,o),a=!o&&i||o&&!i;this.style.alignItems=a?"flex-start":"flex-end";const r=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(t,r,this.noVerticalOverlap,n,this,e),h=this.__calculatePositionInOneDimension(t,r,this.noHorizontalOverlap,s,this,i);Object.assign(this.style,l,h),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!a),this.toggleAttribute("start-aligned",a)}__shouldAlignStartHorizontally(t,e){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const i=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign;return this.__shouldAlignStart(t,o,i,this.__margins,n,this.noHorizontalOverlap,s)}__shouldAlignStartVertically(t){const e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),i="top"===this.verticalAlign;return this.__shouldAlignStart(t,e,o,this.__margins,i,this.noVerticalOverlap,n)}__shouldAlignStart(t,e,o,i,n,s,a){const r=o-t[s?a.end:a.start]-i[a.end],l=t[s?a.start:a.end]-i[a.start],h=n?r:l;return n===(h>(n?l:r)||h>e)}__adjustBottomProperty(t,e,o){let i;if(t===e.end){if(e.end===n.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);o>t&&this.__oldViewportHeight&&(i=o-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===s.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);o>t&&this.__oldViewportWidth&&(i=o-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return i}__calculatePositionInOneDimension(t,e,o,i,n,s){const a=s?i.start:i.end,r=s?i.end:i.start,l=parseFloat(n.style[a]||getComputedStyle(n)[a]),h=this.__adjustBottomProperty(a,i,l),d=e[s?i.start:i.end]-t[o===s?i.end:i.start];return{[a]:h?`${h}px`:`${l+d*(s?-1:1)}px`,[r]:""}}}},34173:(t,e,o)=>{o(24407);var i=o(46570),n=o(32463);const s=i.iv`
241
- :host {
242
- /* prettier-ignore */
243
- --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
244
-
245
- /* Font sizes */
246
- --lumo-font-size-xxs: 0.75rem;
247
- --lumo-font-size-xs: 0.8125rem;
248
- --lumo-font-size-s: 0.875rem;
249
- --lumo-font-size-m: 1rem;
250
- --lumo-font-size-l: 1.125rem;
251
- --lumo-font-size-xl: 1.375rem;
252
- --lumo-font-size-xxl: 1.75rem;
253
- --lumo-font-size-xxxl: 2.5rem;
254
-
255
- /* Line heights */
256
- --lumo-line-height-xs: 1.25;
257
- --lumo-line-height-s: 1.375;
258
- --lumo-line-height-m: 1.625;
259
- }
260
- `,a=i.iv`
261
- body,
262
- :host {
263
- font-family: var(--lumo-font-family);
264
- font-size: var(--lumo-font-size-m);
265
- line-height: var(--lumo-line-height-m);
266
- -webkit-text-size-adjust: 100%;
267
- -webkit-font-smoothing: antialiased;
268
- -moz-osx-font-smoothing: grayscale;
269
- }
270
-
271
- small,
272
- [theme~='font-size-s'] {
273
- font-size: var(--lumo-font-size-s);
274
- line-height: var(--lumo-line-height-s);
275
- }
276
-
277
- [theme~='font-size-xs'] {
278
- font-size: var(--lumo-font-size-xs);
279
- line-height: var(--lumo-line-height-xs);
280
- }
281
-
282
- :where(h1, h2, h3, h4, h5, h6) {
283
- font-weight: 600;
284
- line-height: var(--lumo-line-height-xs);
285
- margin-block: 0;
286
- }
287
-
288
- :where(h1) {
289
- font-size: var(--lumo-font-size-xxxl);
290
- }
291
-
292
- :where(h2) {
293
- font-size: var(--lumo-font-size-xxl);
294
- }
295
-
296
- :where(h3) {
297
- font-size: var(--lumo-font-size-xl);
298
- }
299
-
300
- :where(h4) {
301
- font-size: var(--lumo-font-size-l);
302
- }
303
-
304
- :where(h5) {
305
- font-size: var(--lumo-font-size-m);
306
- }
307
-
308
- :where(h6) {
309
- font-size: var(--lumo-font-size-xs);
310
- text-transform: uppercase;
311
- letter-spacing: 0.03em;
312
- }
313
-
314
- p,
315
- blockquote {
316
- margin-top: 0.5em;
317
- margin-bottom: 0.75em;
318
- }
319
-
320
- a {
321
- text-decoration: none;
322
- }
323
-
324
- a:where(:any-link):hover {
325
- text-decoration: underline;
326
- }
327
-
328
- hr {
329
- display: block;
330
- align-self: stretch;
331
- height: 1px;
332
- border: 0;
333
- padding: 0;
334
- margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
335
- background-color: var(--lumo-contrast-10pct);
336
- }
337
-
338
- blockquote {
339
- border-left: 2px solid var(--lumo-contrast-30pct);
340
- }
341
-
342
- b,
343
- strong {
344
- font-weight: 600;
345
- }
346
-
347
- /* RTL specific styles */
348
- blockquote[dir='rtl'] {
349
- border-left: none;
350
- border-right: 2px solid var(--lumo-contrast-30pct);
351
- }
352
- `;(0,i.hC)("",a,{moduleId:"lumo-typography"}),(0,n.K)("typography-props",s)}}]);