@descope/web-components-ui 1.0.419 → 1.0.420

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 (232) hide show
  1. package/dist/cjs/index.cjs.js +1439 -1353
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +0 -2
  4. package/dist/index.esm.js +1983 -1091
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/umd/1172.js +240 -0
  7. package/dist/umd/{8162.js → 1396.js} +3 -3
  8. package/dist/umd/1402.js +1 -0
  9. package/dist/umd/1484.js +148 -0
  10. package/dist/umd/{5026.js → 189.js} +5 -117
  11. package/dist/umd/{6637.js → 201.js} +5 -5
  12. package/dist/umd/{1053.js → 2159.js} +13 -13
  13. package/dist/umd/2540.js +1 -0
  14. package/dist/umd/2570.js +338 -0
  15. package/dist/umd/2666.js +148 -0
  16. package/dist/umd/3110.js +275 -0
  17. package/dist/umd/{9167.js → 3191.js} +66 -12
  18. package/dist/umd/3437.js +2 -0
  19. package/dist/umd/{6418.js → 3638.js} +2 -2
  20. package/dist/umd/{7212.js → 404.js} +8 -8
  21. package/dist/umd/4114.js +124 -0
  22. package/dist/umd/{7607.js → 4127.js} +9 -9
  23. package/dist/umd/4187.js +2 -0
  24. package/dist/umd/4218.js +129 -0
  25. package/dist/umd/4455.js +422 -0
  26. package/dist/umd/4480.js +1 -1
  27. package/dist/umd/{5086.js → 4554.js} +5 -5
  28. package/dist/umd/{4834.js → 4574.js} +5 -5
  29. package/dist/umd/4619.js +1 -1
  30. package/dist/umd/4902.js +170 -0
  31. package/dist/umd/{5273.js → 507.js} +5 -5
  32. package/dist/umd/5096.js +109 -0
  33. package/dist/umd/5318.js +1 -0
  34. package/dist/umd/5414.js +2 -0
  35. package/dist/umd/5414.js.LICENSE.txt +1 -0
  36. package/dist/umd/{8164.js → 5563.js} +5 -5
  37. package/dist/umd/{7824.js → 7097.js} +5 -117
  38. package/dist/umd/7150.js +2 -0
  39. package/dist/umd/7150.js.LICENSE.txt +485 -0
  40. package/dist/umd/731.js +832 -0
  41. package/dist/umd/742.js +2 -0
  42. package/dist/umd/{351.js → 7979.js} +10 -10
  43. package/dist/umd/8823.js +1 -0
  44. package/dist/umd/{6474.js → 9030.js} +12 -12
  45. package/dist/umd/9243.js +202 -0
  46. package/dist/umd/9243.js.LICENSE.txt +51 -0
  47. package/dist/umd/{5443.js → 9478.js} +5 -117
  48. package/dist/umd/DescopeDev.js +1 -2
  49. package/dist/umd/boolean-fields-descope-checkbox-index-js.js +1 -1
  50. package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +1 -1
  51. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -1
  52. package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -1
  53. package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
  54. package/dist/umd/descope-alert-index-js.js +1 -1
  55. package/dist/umd/descope-apps-list-index-js.js +1 -1
  56. package/dist/umd/descope-avatar.js +1 -0
  57. package/dist/umd/descope-button-index-js.js +4 -116
  58. package/dist/umd/descope-code-snippet-index-js.js +1 -1
  59. package/dist/umd/descope-combo-box-index-js.js +5 -5
  60. package/dist/umd/descope-date-field-descope-calendar-index-js.js +1 -1
  61. package/dist/umd/descope-date-field-index-js.js +1 -1
  62. package/dist/umd/descope-divider-index-js.js +1 -1
  63. package/dist/umd/descope-email-field-index-js.js +4 -4
  64. package/dist/umd/descope-enriched-text-index-js.js +1 -1
  65. package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js +4 -4
  66. package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js +19 -4
  67. package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js.LICENSE.txt +12 -0
  68. package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js +1 -1
  69. package/dist/umd/descope-grid-descope-grid-text-column-index-js.js +4 -4
  70. package/dist/umd/descope-grid-index-js.js +1 -1
  71. package/dist/umd/descope-hybrid-field-index-js.js +3 -3
  72. package/dist/umd/descope-icon-index-js.js +1 -1
  73. package/dist/umd/descope-link-index-js.js +1 -1
  74. package/dist/umd/descope-modal-index-js.js +1 -1
  75. package/dist/umd/descope-multi-select-combo-box-index-js.js +1 -1
  76. package/dist/umd/descope-new-password-index-js.js +1 -1
  77. package/dist/umd/descope-notification-descope-notification-card-index-js.js +1 -1
  78. package/dist/umd/descope-notification-index-js.js +1 -1
  79. package/dist/umd/descope-number-field-index-js.js +1 -1
  80. package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js +1 -1
  81. package/dist/umd/descope-passcode-index-js.js +1 -1
  82. package/dist/umd/descope-password-index-js.js +1 -1
  83. package/dist/umd/descope-radio-group-index-js.js +1 -1
  84. package/dist/umd/descope-scopes-list-index-js.js +1 -1
  85. package/dist/umd/descope-security-questions-setup-index-js.js +1 -1
  86. package/dist/umd/descope-security-questions-verify-index-js.js +2 -2
  87. package/dist/umd/descope-text-area-index-js.js +1 -1
  88. package/dist/umd/descope-text-field-index-js.js +2 -2
  89. package/dist/umd/descope-text.js +1 -0
  90. package/dist/umd/descope-third-party-app-logo-index-js.js +1 -1
  91. package/dist/umd/descope-upload-file-index-js.js +1 -1
  92. package/dist/umd/descope-user-attribute-index-js.js +1 -1
  93. package/dist/umd/descope-user-auth-method-index-js.js +1 -1
  94. package/dist/umd/index.js +1 -1
  95. package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
  96. package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
  97. package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
  98. package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
  99. package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +2 -2
  100. package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +7 -7
  101. package/node_modules/common/.eslintrc.json +18 -0
  102. package/node_modules/common/README.md +7 -0
  103. package/node_modules/common/package.json +34 -0
  104. package/node_modules/common/project.json +7 -0
  105. package/node_modules/common/src/baseClasses/baseClasses/createBaseClass.js +66 -0
  106. package/node_modules/common/src/baseClasses/baseClasses/createBaseInputClass.js +14 -0
  107. package/node_modules/common/src/baseClasses/baseClasses/createCssVarImageClass.js +55 -0
  108. package/node_modules/common/src/baseClasses/index.js +3 -0
  109. package/node_modules/common/src/componentsHelpers/index.js +95 -0
  110. package/node_modules/common/src/componentsMixins/helpers/mixinsHelpers.js +10 -0
  111. package/node_modules/common/src/componentsMixins/index.js +1 -0
  112. package/node_modules/common/src/componentsMixins/mixins/activableMixin.js +14 -0
  113. package/node_modules/common/src/componentsMixins/mixins/changeMixin.js +22 -0
  114. package/node_modules/common/src/componentsMixins/mixins/componentNameValidationMixin.js +23 -0
  115. package/node_modules/common/src/componentsMixins/mixins/componentsContextMixin.js +12 -0
  116. package/node_modules/common/src/componentsMixins/mixins/createDynamicDataMixin.js +100 -0
  117. package/node_modules/common/src/componentsMixins/mixins/createProxy.js +58 -0
  118. package/node_modules/common/src/componentsMixins/mixins/createStyleMixin/helpers.js +106 -0
  119. package/node_modules/common/src/componentsMixins/mixins/createStyleMixin/index.js +167 -0
  120. package/node_modules/common/src/componentsMixins/mixins/draggableMixin.js +62 -0
  121. package/node_modules/common/src/componentsMixins/mixins/externalInputHelpers.js +93 -0
  122. package/node_modules/common/src/componentsMixins/mixins/externalInputMixin.js +170 -0
  123. package/node_modules/common/src/componentsMixins/mixins/hoverableMixin.js +13 -0
  124. package/node_modules/common/src/componentsMixins/mixins/index.js +14 -0
  125. package/node_modules/common/src/componentsMixins/mixins/inputEventsDispatchingMixin.js +76 -0
  126. package/node_modules/common/src/componentsMixins/mixins/inputValidationMixin.js +210 -0
  127. package/node_modules/common/src/componentsMixins/mixins/lifecycleEventsMixin.js +23 -0
  128. package/node_modules/common/src/componentsMixins/mixins/normalizeBooleanAttributesMixin.js +57 -0
  129. package/node_modules/common/src/componentsMixins/mixins/portalMixin.js +112 -0
  130. package/node_modules/common/src/componentsMixins/mixins/proxyInputMixin.js +242 -0
  131. package/node_modules/common/src/constants.js +4 -0
  132. package/node_modules/common/src/icons/errorMessageIconBase64.js +1 -0
  133. package/node_modules/common/src/sbControls.js +302 -0
  134. package/node_modules/common/src/themeHelpers/colorsHelpers.js +94 -0
  135. package/node_modules/common/src/themeHelpers/index.js +176 -0
  136. package/node_modules/common/src/utils/index.js +68 -0
  137. package/node_modules/descope-avatar/e2e/descope-avatar.spec.ts +54 -0
  138. package/node_modules/descope-avatar/package.json +34 -0
  139. package/node_modules/descope-avatar/project.json +7 -0
  140. package/{src/components/descope-avatar → node_modules/descope-avatar/src/component}/AvatarClass.js +4 -4
  141. package/{src/theme/components/avatar.js → node_modules/descope-avatar/src/theme.js} +3 -3
  142. package/node_modules/descope-avatar/stories/avatar.jpeg +0 -0
  143. package/node_modules/descope-avatar/stories/descope-avatar.stories.js +32 -0
  144. package/node_modules/descope-text/e2e/descope-text.spec.ts +35 -0
  145. package/node_modules/descope-text/package.json +31 -0
  146. package/node_modules/descope-text/project.json +7 -0
  147. package/{src/components/descope-text → node_modules/descope-text/src/component}/TextClass.js +4 -4
  148. package/{src/theme/components/text.js → node_modules/descope-text/src/theme.js} +3 -3
  149. package/node_modules/descope-text/stories/descope-text.stories.js +55 -0
  150. package/package.json +52 -43
  151. package/src/components/descope-apps-list/AppsListClass.js +1 -1
  152. package/src/components/descope-apps-list/index.js +2 -2
  153. package/src/components/descope-divider/DividerClass.js +1 -1
  154. package/src/components/descope-divider/index.js +1 -1
  155. package/src/components/descope-link/LinkClass.js +1 -1
  156. package/src/components/descope-link/index.js +1 -1
  157. package/src/components/descope-security-questions-verify/SecurityQuestionsVerifyClass.js +1 -1
  158. package/src/components/descope-security-questions-verify/index.js +1 -1
  159. package/src/components/descope-user-attribute/UserAttributeClass.js +1 -1
  160. package/src/components/descope-user-attribute/index.js +1 -1
  161. package/src/components/descope-user-auth-method/UserAuthMethodClass.js +1 -1
  162. package/src/components/descope-user-auth-method/index.js +1 -1
  163. package/src/components/mapping-fields/descope-mappings-field/MappingsFieldClass.js +1 -1
  164. package/src/components/mapping-fields/descope-mappings-field/index.js +1 -1
  165. package/src/helpers/themeHelpers/index.js +1 -1
  166. package/src/index.cjs.js +2 -2
  167. package/src/index.d.ts +0 -2
  168. package/src/index.js +2 -2
  169. package/src/index.umd.js +3 -1
  170. package/src/mixins/createStyleMixin/index.js +1 -1
  171. package/src/theme/components/alert.js +1 -1
  172. package/src/theme/components/comboBox.js +2 -2
  173. package/src/theme/components/enrichedText.js +1 -1
  174. package/src/theme/components/index.js +2 -2
  175. package/dist/umd/1033.js +0 -2
  176. package/dist/umd/1414.js +0 -352
  177. package/dist/umd/1437.js +0 -422
  178. package/dist/umd/1672.js +0 -1
  179. package/dist/umd/2566.js +0 -2
  180. package/dist/umd/2838.js +0 -2
  181. package/dist/umd/2838.js.LICENSE.txt +0 -1
  182. package/dist/umd/286.js +0 -148
  183. package/dist/umd/2919.js +0 -832
  184. package/dist/umd/3222.js +0 -282
  185. package/dist/umd/3607.js +0 -2
  186. package/dist/umd/3711.js +0 -123
  187. package/dist/umd/5412.js +0 -109
  188. package/dist/umd/650.js +0 -1
  189. package/dist/umd/6726.js +0 -148
  190. package/dist/umd/7407.js +0 -450
  191. package/dist/umd/8980.js +0 -143
  192. package/dist/umd/8980.js.LICENSE.txt +0 -29
  193. package/dist/umd/9632.js +0 -275
  194. package/dist/umd/9878.js +0 -1
  195. package/dist/umd/9895.js +0 -17
  196. package/dist/umd/DescopeDev.js.LICENSE.txt +0 -1
  197. package/dist/umd/bcdfe87ae253c2cf789c9a737f8d8c22.woff +0 -0
  198. package/dist/umd/descope-avatar-index-js.js +0 -1
  199. package/dist/umd/descope-text-index-js.js +0 -1
  200. /package/dist/umd/{1414.js.LICENSE.txt → 1172.js.LICENSE.txt} +0 -0
  201. /package/dist/umd/{1437.js.LICENSE.txt → 1396.js.LICENSE.txt} +0 -0
  202. /package/dist/umd/{6726.js.LICENSE.txt → 1484.js.LICENSE.txt} +0 -0
  203. /package/dist/umd/{286.js.LICENSE.txt → 189.js.LICENSE.txt} +0 -0
  204. /package/dist/umd/{6637.js.LICENSE.txt → 201.js.LICENSE.txt} +0 -0
  205. /package/dist/umd/{1053.js.LICENSE.txt → 2159.js.LICENSE.txt} +0 -0
  206. /package/dist/umd/{351.js.LICENSE.txt → 2570.js.LICENSE.txt} +0 -0
  207. /package/dist/umd/{5026.js.LICENSE.txt → 2666.js.LICENSE.txt} +0 -0
  208. /package/dist/umd/{9632.js.LICENSE.txt → 3110.js.LICENSE.txt} +0 -0
  209. /package/dist/umd/{9167.js.LICENSE.txt → 3191.js.LICENSE.txt} +0 -0
  210. /package/dist/umd/{1033.js.LICENSE.txt → 3437.js.LICENSE.txt} +0 -0
  211. /package/dist/umd/{6418.js.LICENSE.txt → 3638.js.LICENSE.txt} +0 -0
  212. /package/dist/umd/{7212.js.LICENSE.txt → 404.js.LICENSE.txt} +0 -0
  213. /package/dist/umd/{3711.js.LICENSE.txt → 4114.js.LICENSE.txt} +0 -0
  214. /package/dist/umd/{7607.js.LICENSE.txt → 4127.js.LICENSE.txt} +0 -0
  215. /package/dist/umd/{3607.js.LICENSE.txt → 4187.js.LICENSE.txt} +0 -0
  216. /package/dist/umd/{3222.js.LICENSE.txt → 4218.js.LICENSE.txt} +0 -0
  217. /package/dist/umd/{5086.js.LICENSE.txt → 4455.js.LICENSE.txt} +0 -0
  218. /package/dist/umd/{5273.js.LICENSE.txt → 4554.js.LICENSE.txt} +0 -0
  219. /package/dist/umd/{4834.js.LICENSE.txt → 4574.js.LICENSE.txt} +0 -0
  220. /package/dist/umd/{9895.js.LICENSE.txt → 4902.js.LICENSE.txt} +0 -0
  221. /package/dist/umd/{5443.js.LICENSE.txt → 507.js.LICENSE.txt} +0 -0
  222. /package/dist/umd/{5412.js.LICENSE.txt → 5096.js.LICENSE.txt} +0 -0
  223. /package/dist/umd/{8164.js.LICENSE.txt → 5563.js.LICENSE.txt} +0 -0
  224. /package/dist/umd/{7407.js.LICENSE.txt → 7097.js.LICENSE.txt} +0 -0
  225. /package/dist/umd/{2919.js.LICENSE.txt → 731.js.LICENSE.txt} +0 -0
  226. /package/dist/umd/{2566.js.LICENSE.txt → 742.js.LICENSE.txt} +0 -0
  227. /package/dist/umd/{7824.js.LICENSE.txt → 7979.js.LICENSE.txt} +0 -0
  228. /package/dist/umd/{6474.js.LICENSE.txt → 9030.js.LICENSE.txt} +0 -0
  229. /package/dist/umd/{8162.js.LICENSE.txt → 9478.js.LICENSE.txt} +0 -0
  230. /package/{src/helpers → node_modules/common/src}/themeHelpers/componentsThemeManager.js +0 -0
  231. /package/{src/components/descope-avatar → node_modules/descope-avatar/src/component}/index.js +0 -0
  232. /package/{src/components/descope-text → node_modules/descope-text/src/component}/index.js +0 -0
package/dist/umd/1437.js DELETED
@@ -1,422 +0,0 @@
1
- /*! For license information please see 1437.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[1437],{90075:(e,t,o)=>{o.d(t,{Qj:()=>h,aJ:()=>s,dw:()=>i,iq:()=>u,n8:()=>l});let r=!1;function i(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function s(){return r}function n(e){const t=e.style;if("hidden"===t.visibility||"none"===t.display)return!0;const o=window.getComputedStyle(e);return"hidden"===o.visibility||"none"===o.display}function a(e,t){const o=Math.max(e.tabIndex,0),r=Math.max(t.tabIndex,0);return 0===o||0===r?r>o:o>r}function d(e){const t=e.length;if(t<2)return e;const o=Math.ceil(t/2);return function(e,t){const o=[];for(;e.length>0&&t.length>0;)a(e[0],t[0])?o.push(t.shift()):o.push(e.shift());return o.concat(e,t)}(d(e.slice(0,o)),d(e.slice(o)))}function l(e){return null===e.offsetParent&&0===e.clientWidth&&0===e.clientHeight||n(e)}function h(e){return e.getRootNode().activeElement===e}function c(e,t){if(e.nodeType!==Node.ELEMENT_NODE||n(e))return!1;const o=e,r=function(e){if(!function(e){return!e.matches('[tabindex="-1"]')&&(e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}(e))return-1;const t=e.getAttribute("tabindex")||0;return Number(t)}(o);let i=r>0;r>=0&&t.push(o);let s=[];return s="slot"===o.localName?o.assignedNodes({flatten:!0}):(o.shadowRoot||o).children,[...s].forEach((e=>{i=c(e,t)||i})),i}function u(e){const t=[];return c(e,t)?d(t):t}window.addEventListener("keydown",(()=>{r=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{r=!1}),{capture:!0})},53794:(e,t,o)=>{o.d(t,{CI:()=>c,H8:()=>n,gm:()=>a,m0:()=>s,nr:()=>h,un:()=>l});const r=e=>e.test(navigator.userAgent),i=e=>e.test(navigator.platform),s=r(/Android/u),n=r(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),a=r(/Firefox/u),d=i(/^iPad/u)||i(/^Mac/u)&&navigator.maxTouchPoints>1,l=i(/^iPhone/u)||d,h=r(/^((?!chrome|android).)*safari/iu),c=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})()},988:(e,t,o)=>{o.d(t,{w:()=>r});const r=(0,o(85297).y)((e=>"function"==typeof e.prototype.addController?e:class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((e=>{e.hostConnected&&e.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((e=>{e.hostDisconnected&&e.hostDisconnected()}))}addController(e){this.__controllers.add(e),void 0!==this.$&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}))},31846:(e,t,o)=>{o.d(t,{q:()=>l});var r=o(85251),i=o(81510),s=o(27111),n=o(35717);let a;(0,r.DH)(!1),window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){};const d=new Set,l=e=>class extends((0,n.v)(e)){static finalize(){super.finalize();const{is:e}=this;e&&!d.has(e)&&(window.Vaadin.registrations.push(this),d.add(e),window.Vaadin.developmentModeCallback&&(a=s.aq.debounce(a,i.g8,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),(0,s.Oy)(a)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}},80521:(e,t,o)=>{function r(e){window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(e):e.querySelector("template")&&console.warn(`WARNING: <template> inside <${e.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}o.d(t,{h:()=>r})},99116:(e,t,o)=>{o(12855),o(1159);var r=o(26245),i=o(6052);const s=i.AH`
3
- /* Optical centering */
4
- :host::before,
5
- :host::after {
6
- content: '';
7
- flex-basis: 0;
8
- flex-grow: 1;
9
- }
10
-
11
- :host::after {
12
- flex-grow: 1.1;
13
- }
14
-
15
- [part='overlay'] {
16
- border-radius: var(--lumo-border-radius-l);
17
- box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-xl);
18
- background-image: none;
19
- outline: none;
20
- -webkit-tap-highlight-color: transparent;
21
- }
22
-
23
- [part='content'] {
24
- padding: var(--lumo-space-l);
25
- }
26
-
27
- :host(:is([has-header], [has-title])) [part='header'] + [part='content'] {
28
- padding-top: 0;
29
- }
30
-
31
- [part='header'],
32
- [part='header-content'],
33
- [part='footer'] {
34
- gap: var(--lumo-space-xs) var(--lumo-space-s);
35
- line-height: var(--lumo-line-height-s);
36
- }
37
-
38
- [part='header'] {
39
- padding: var(--lumo-space-m);
40
- background-color: var(--lumo-base-color);
41
- border-radius: var(--lumo-border-radius-l) var(--lumo-border-radius-l) 0 0; /* Needed for Safari */
42
- }
43
-
44
- [part='footer'] {
45
- padding: var(--lumo-space-s) var(--lumo-space-m);
46
- background-color: var(--lumo-contrast-5pct);
47
- border-radius: 0 0 var(--lumo-border-radius-l) var(--lumo-border-radius-l); /* Needed for Safari */
48
- }
49
-
50
- [part='title'] {
51
- font-size: var(--lumo-font-size-xl);
52
- font-weight: 600;
53
- color: var(--lumo-header-text-color);
54
- margin-inline-start: calc(var(--lumo-space-l) - var(--lumo-space-m));
55
- }
56
-
57
- /* No padding */
58
- :host([theme~='no-padding']) [part='content'] {
59
- padding: 0 !important;
60
- }
61
-
62
- @media (min-height: 320px) {
63
- :host([overflow~='top']) [part='header'] {
64
- box-shadow: 0 1px 0 0 var(--lumo-contrast-10pct);
65
- }
66
- }
67
-
68
- /* Animations */
69
-
70
- :host([opening]),
71
- :host([closing]) {
72
- animation: 0.25s lumo-overlay-dummy-animation;
73
- }
74
-
75
- :host([opening]) [part='overlay'] {
76
- animation: 0.12s 0.05s vaadin-dialog-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
77
- }
78
-
79
- @keyframes vaadin-dialog-enter {
80
- 0% {
81
- opacity: 0;
82
- transform: scale(0.95);
83
- }
84
- }
85
-
86
- :host([closing]) [part='overlay'] {
87
- animation: 0.1s 0.03s vaadin-dialog-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
88
- }
89
-
90
- :host([closing]) [part='backdrop'] {
91
- animation-delay: 0.05s;
92
- }
93
-
94
- @keyframes vaadin-dialog-exit {
95
- 100% {
96
- opacity: 0;
97
- transform: scale(1.02);
98
- }
99
- }
100
- `;(0,i.SF)("vaadin-dialog-overlay",[r.L,s],{moduleId:"lumo-dialog"});var n=o(33791),a=o(38735),d=o(35717),l=o(52718),h=o(21380);const c=e=>class extends((0,h.c)(e)){static get properties(){return{headerTitle:{type:String},headerRenderer:{type:Object},footerRenderer:{type:Object}}}static get observers(){return["_headerFooterRendererChange(headerRenderer, footerRenderer, opened)","_headerTitleChanged(headerTitle, opened)"]}ready(){super.ready(),this.__resizeObserver=new ResizeObserver((()=>{this.__updateOverflow()})),this.__resizeObserver.observe(this.$.resizerContainer),this.$.content.addEventListener("scroll",(()=>{this.__updateOverflow()}))}__createContainer(e){const t=document.createElement("div");return t.setAttribute("slot",e),t}__clearContainer(e){e.innerHTML="",delete e._$litPart$}__initContainer(e,t){return e?this.__clearContainer(e):e=this.__createContainer(t),e}_headerFooterRendererChange(e,t,o){const r=this.__oldHeaderRenderer!==e;this.__oldHeaderRenderer=e;const i=this.__oldFooterRenderer!==t;this.__oldFooterRenderer=t;const s=this._oldOpenedFooterHeader!==o;this._oldOpenedFooterHeader=o,this.toggleAttribute("has-header",!!e),this.toggleAttribute("has-footer",!!t),r&&(e?this.headerContainer=this.__initContainer(this.headerContainer,"header-content"):this.headerContainer&&(this.headerContainer.remove(),this.headerContainer=null,this.__updateOverflow())),i&&(t?this.footerContainer=this.__initContainer(this.footerContainer,"footer"):this.footerContainer&&(this.footerContainer.remove(),this.footerContainer=null,this.__updateOverflow())),(e&&(r||s)||t&&(i||s))&&o&&this.requestContentUpdate()}_headerTitleChanged(e,t){this.toggleAttribute("has-title",!!e),t&&(e||this._oldHeaderTitle)&&this.requestContentUpdate(),this._oldHeaderTitle=e}_headerTitleRenderer(){this.headerTitle?(this.headerTitleElement||(this.headerTitleElement=document.createElement("h2"),this.headerTitleElement.setAttribute("slot","title"),this.headerTitleElement.classList.add("draggable")),this.appendChild(this.headerTitleElement),this.headerTitleElement.textContent=this.headerTitle):this.headerTitleElement&&(this.headerTitleElement.remove(),this.headerTitleElement=null)}requestContentUpdate(){super.requestContentUpdate(),this.headerContainer&&(this.headerContainer.parentElement||this.appendChild(this.headerContainer),this.headerRenderer&&this.headerRenderer.call(this.owner,this.headerContainer,this.owner)),this.footerContainer&&(this.footerContainer.parentElement||this.appendChild(this.footerContainer),this.footerRenderer&&this.footerRenderer.call(this.owner,this.footerContainer,this.owner)),this._headerTitleRenderer(),this.__updateOverflow()}setBounds(e){const t=this.$.overlay,o={...e};"absolute"!==t.style.position&&(t.style.position="absolute",this.setAttribute("has-bounds-set","")),Object.keys(o).forEach((e=>{"number"==typeof o[e]&&(o[e]=`${o[e]}px`)})),Object.assign(t.style,o)}getBounds(){const e=this.$.overlay.getBoundingClientRect(),t=this.getBoundingClientRect();return{top:e.top-t.top,left:e.left-t.left,width:e.width,height:e.height}}__updateOverflow(){let e="";if(this.hasAttribute("has-header")||this.hasAttribute("has-footer")||this.headerTitle){const t=this.$.content;t.scrollTop>0&&(e+=" top"),t.scrollTop<t.scrollHeight-t.clientHeight&&(e+=" bottom")}const t=e.trim();t.length>0&&this.getAttribute("overflow")!==t?this.setAttribute("overflow",t):0===t.length&&this.hasAttribute("overflow")&&this.removeAttribute("overflow")}};var u=o(16684);const p=u.AH`
101
- [part='header'],
102
- [part='header-content'],
103
- [part='footer'] {
104
- display: flex;
105
- align-items: center;
106
- flex-wrap: wrap;
107
- flex: none;
108
- pointer-events: none;
109
- z-index: 1;
110
- }
111
-
112
- [part='header'] {
113
- flex-wrap: nowrap;
114
- }
115
-
116
- ::slotted([slot='header-content']),
117
- ::slotted([slot='title']),
118
- ::slotted([slot='footer']) {
119
- display: contents;
120
- pointer-events: auto;
121
- }
122
-
123
- ::slotted([slot='title']) {
124
- font: inherit !important;
125
- overflow-wrap: anywhere;
126
- }
127
-
128
- [part='header-content'] {
129
- flex: 1;
130
- }
131
-
132
- :host([has-title]) [part='header-content'],
133
- [part='footer'] {
134
- justify-content: flex-end;
135
- }
136
-
137
- :host(:not([has-title]):not([has-header])) [part='header'],
138
- :host(:not([has-header])) [part='header-content'],
139
- :host(:not([has-title])) [part='title'],
140
- :host(:not([has-footer])) [part='footer'] {
141
- display: none !important;
142
- }
143
-
144
- :host(:is([has-title], [has-header], [has-footer])) [part='content'] {
145
- height: auto;
146
- }
147
-
148
- @media (min-height: 320px) {
149
- :host(:is([has-title], [has-header], [has-footer])) .resizer-container {
150
- overflow: hidden;
151
- display: flex;
152
- flex-direction: column;
153
- }
154
-
155
- :host(:is([has-title], [has-header], [has-footer])) [part='content'] {
156
- flex: 1;
157
- overflow: auto;
158
- }
159
- }
160
-
161
- /*
162
- NOTE(platosha): Make some min-width to prevent collapsing of the content
163
- taking the parent width, e. g., <vaadin-grid> and such.
164
- */
165
- [part='content'] {
166
- min-width: 12em; /* matches the default <vaadin-text-field> width */
167
- }
168
-
169
- :host([has-bounds-set]) [part='overlay'] {
170
- max-width: none;
171
- }
172
-
173
- @media (forced-colors: active) {
174
- [part='overlay'] {
175
- outline: 3px solid !important;
176
- }
177
- }
178
- `,v=u.AH`
179
- [part='overlay'] {
180
- position: relative;
181
- overflow: visible;
182
- max-height: 100%;
183
- display: flex;
184
- }
185
-
186
- [part='content'] {
187
- box-sizing: border-box;
188
- height: 100%;
189
- }
190
-
191
- .resizer-container {
192
- overflow: auto;
193
- flex-grow: 1;
194
- border-radius: inherit; /* prevent child elements being drawn outside part=overlay */
195
- }
196
-
197
- [part='overlay'][style] .resizer-container {
198
- min-height: 100%;
199
- width: 100%;
200
- }
201
-
202
- :host(:not([resizable])) .resizer {
203
- display: none;
204
- }
205
-
206
- :host([resizable]) [part='title'] {
207
- cursor: move;
208
- -webkit-user-select: none;
209
- user-select: none;
210
- }
211
-
212
- .resizer {
213
- position: absolute;
214
- height: 16px;
215
- width: 16px;
216
- }
217
-
218
- .resizer.edge {
219
- height: 8px;
220
- width: 8px;
221
- inset: -4px;
222
- }
223
-
224
- .resizer.edge.n {
225
- width: auto;
226
- bottom: auto;
227
- cursor: ns-resize;
228
- }
229
-
230
- .resizer.ne {
231
- top: -4px;
232
- right: -4px;
233
- cursor: nesw-resize;
234
- }
235
-
236
- .resizer.edge.e {
237
- height: auto;
238
- left: auto;
239
- cursor: ew-resize;
240
- }
241
-
242
- .resizer.se {
243
- bottom: -4px;
244
- right: -4px;
245
- cursor: nwse-resize;
246
- }
247
-
248
- .resizer.edge.s {
249
- width: auto;
250
- top: auto;
251
- cursor: ns-resize;
252
- }
253
-
254
- .resizer.sw {
255
- bottom: -4px;
256
- left: -4px;
257
- cursor: nesw-resize;
258
- }
259
-
260
- .resizer.edge.w {
261
- height: auto;
262
- right: auto;
263
- cursor: ew-resize;
264
- }
265
-
266
- .resizer.nw {
267
- top: -4px;
268
- left: -4px;
269
- cursor: nwse-resize;
270
- }
271
- `;(0,i.SF)("vaadin-dialog-overlay",[l.B,p,v],{moduleId:"vaadin-dialog-overlay-styles"});class m extends(c((0,d.v)((0,i.cp)(n.Pu)))){static get is(){return"vaadin-dialog-overlay"}static get template(){return n.qy`
272
- <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
273
- <div part="overlay" id="overlay" tabindex="0">
274
- <section id="resizerContainer" class="resizer-container">
275
- <header part="header">
276
- <div part="title"><slot name="title"></slot></div>
277
- <div part="header-content"><slot name="header-content"></slot></div>
278
- </header>
279
- <div part="content" id="content"><slot></slot></div>
280
- <footer part="footer"><slot name="footer"></slot></footer>
281
- </section>
282
- </div>
283
- `}}(0,a.X)(m);var g=o(31846),f=o(55231),w=o(80521),b=o(3843);const y=e=>class extends e{static get properties(){return{opened:{type:Boolean,value:!1,notify:!0},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},modeless:{type:Boolean,value:!1}}}ready(){super.ready();const e=this.$.overlay;e.addEventListener("vaadin-overlay-outside-click",this._handleOutsideClick.bind(this)),e.addEventListener("vaadin-overlay-escape-press",this._handleEscPress.bind(this)),this._overlayElement=e}connectedCallback(){super.connectedCallback(),this.__restoreOpened&&(this.opened=!0)}disconnectedCallback(){super.disconnectedCallback(),setTimeout((()=>{this.isConnected||(this.__restoreOpened=this.opened,this.opened=!1)}))}_onOverlayOpened(e){!1===e.detail.value&&(this.opened=!1)}_handleOutsideClick(e){this.noCloseOnOutsideClick&&e.preventDefault()}_handleEscPress(e){this.noCloseOnEsc&&e.preventDefault()}_bringOverlayToFront(){this.modeless&&this._overlayElement.bringToFront()}};var _=o(53794);function C(e){return e.touches?e.touches[0]:e}function z(e){return e.clientX>=0&&e.clientX<=window.innerWidth&&e.clientY>=0&&e.clientY<=window.innerHeight}const x=e=>class extends e{static get properties(){return{draggable:{type:Boolean,value:!1,reflectToAttribute:!0},_touchDevice:{type:Boolean,value:_.CI},__dragHandleClassName:{type:String}}}async ready(){super.ready(),this._originalBounds={},this._originalMouseCoords={},this._startDrag=this._startDrag.bind(this),this._drag=this._drag.bind(this),this._stopDrag=this._stopDrag.bind(this),await new Promise(requestAnimationFrame),this.$.overlay.$.overlay.addEventListener("mousedown",this._startDrag),this.$.overlay.$.overlay.addEventListener("touchstart",this._startDrag)}_startDrag(e){if(!("touchstart"===e.type&&e.touches.length>1)&&this.draggable&&(0===e.button||e.touches)){const t=this.$.overlay.$.resizerContainer,o=e.target===t,r=e.offsetX>t.clientWidth||e.offsetY>t.clientHeight,i=e.target===this.$.overlay.$.content,s=e.composedPath().some(((e,t)=>{if(!e.classList)return!1;const o=e.classList.contains(this.__dragHandleClassName||"draggable"),r=e.classList.contains("draggable-leaf-only"),i=0===t;return r&&i||o&&(!r||i)}));if(o&&!r||i||s){s||e.preventDefault(),this._originalBounds=this.$.overlay.getBounds();const t=C(e);this._originalMouseCoords={top:t.pageY,left:t.pageX},window.addEventListener("mouseup",this._stopDrag),window.addEventListener("touchend",this._stopDrag),window.addEventListener("mousemove",this._drag),window.addEventListener("touchmove",this._drag),"absolute"!==this.$.overlay.$.overlay.style.position&&this.$.overlay.setBounds(this._originalBounds)}}}_drag(e){const t=C(e);if(z(t)){const e=this._originalBounds.top+(t.pageY-this._originalMouseCoords.top),o=this._originalBounds.left+(t.pageX-this._originalMouseCoords.left);this.$.overlay.setBounds({top:e,left:o})}}_stopDrag(){window.removeEventListener("mouseup",this._stopDrag),window.removeEventListener("touchend",this._stopDrag),window.removeEventListener("mousemove",this._drag),window.removeEventListener("touchmove",this._drag)}},E=e=>class extends e{static get properties(){return{renderer:{type:Object},headerTitle:String,headerRenderer:{type:Object},footerRenderer:{type:Object}}}requestContentUpdate(){this._overlayElement&&this._overlayElement.requestContentUpdate()}},L=e=>class extends e{static get properties(){return{resizable:{type:Boolean,value:!1,reflectToAttribute:!0}}}async ready(){super.ready(),this._originalBounds={},this._originalMouseCoords={},this._resizeListeners={start:{},resize:{},stop:{}},await new Promise(requestAnimationFrame),this._addResizeListeners()}_addResizeListeners(){["n","e","s","w","nw","ne","se","sw"].forEach((e=>{const t=document.createElement("div");this._resizeListeners.start[e]=t=>this._startResize(t,e),this._resizeListeners.resize[e]=t=>this._resize(t,e),this._resizeListeners.stop[e]=()=>this._stopResize(e),1===e.length&&t.classList.add("edge"),t.classList.add("resizer"),t.classList.add(e),t.addEventListener("mousedown",this._resizeListeners.start[e]),t.addEventListener("touchstart",this._resizeListeners.start[e]),this.$.overlay.$.resizerContainer.appendChild(t)}))}_startResize(e,t){if(!("touchstart"===e.type&&e.touches.length>1)&&(0===e.button||e.touches)){e.preventDefault(),this._originalBounds=this.$.overlay.getBounds();const o=C(e);this._originalMouseCoords={top:o.pageY,left:o.pageX},window.addEventListener("mousemove",this._resizeListeners.resize[t]),window.addEventListener("touchmove",this._resizeListeners.resize[t]),window.addEventListener("mouseup",this._resizeListeners.stop[t]),window.addEventListener("touchend",this._resizeListeners.stop[t]),"absolute"!==this.$.overlay.$.overlay.style.position&&this.$.overlay.setBounds(this._originalBounds)}}_resize(e,t){const o=C(e);if(z(o)){const e=40;t.split("").forEach((t=>{switch(t){case"n":{const t=this._originalBounds.height-(o.pageY-this._originalMouseCoords.top),r=this._originalBounds.top+(o.pageY-this._originalMouseCoords.top);t>e&&this.$.overlay.setBounds({top:r,height:t});break}case"e":{const t=this._originalBounds.width+(o.pageX-this._originalMouseCoords.left);t>e&&this.$.overlay.setBounds({width:t});break}case"s":{const t=this._originalBounds.height+(o.pageY-this._originalMouseCoords.top);t>e&&this.$.overlay.setBounds({height:t});break}case"w":{const t=this._originalBounds.width-(o.pageX-this._originalMouseCoords.left),r=this._originalBounds.left+(o.pageX-this._originalMouseCoords.left);t>e&&this.$.overlay.setBounds({left:r,width:t});break}}}))}}_stopResize(e){window.removeEventListener("mousemove",this._resizeListeners.resize[e]),window.removeEventListener("touchmove",this._resizeListeners.resize[e]),window.removeEventListener("mouseup",this._resizeListeners.stop[e]),window.removeEventListener("touchend",this._resizeListeners.stop[e]),this.dispatchEvent(new CustomEvent("resize",{detail:this._getResizeDimensions()}))}_getResizeDimensions(){const e=this.$.overlay.$.resizerContainer.scrollTop,{width:t,height:o}=getComputedStyle(this.$.overlay.$.overlay),r=this.$.overlay.$.content;r.setAttribute("style","position: absolute; top: 0; right: 0; bottom: 0; left: 0; box-sizing: content-box; height: auto;");const{width:i,height:s}=getComputedStyle(r);return r.removeAttribute("style"),this.$.overlay.$.resizerContainer.scrollTop=e,{width:t,height:o,contentWidth:i,contentHeight:s}}};class k extends(x(L(E(y((0,f.i)((0,b._)((0,g.q)(n.Pu)))))))){static get template(){return n.qy`
284
- <style>
285
- :host {
286
- display: none !important;
287
- }
288
- </style>
289
-
290
- <vaadin-dialog-overlay
291
- id="overlay"
292
- header-title="[[headerTitle]]"
293
- on-opened-changed="_onOverlayOpened"
294
- on-mousedown="_bringOverlayToFront"
295
- on-touchstart="_bringOverlayToFront"
296
- theme$="[[_theme]]"
297
- modeless="[[modeless]]"
298
- with-backdrop="[[!modeless]]"
299
- resizable$="[[resizable]]"
300
- restore-focus-on-close
301
- focus-trap
302
- ></vaadin-dialog-overlay>
303
- `}static get is(){return"vaadin-dialog"}static get properties(){return{ariaLabel:{type:String,value:""}}}static get observers(){return["_openedChanged(opened)","_ariaLabelChanged(ariaLabel, headerTitle)","_rendererChanged(renderer, headerRenderer, footerRenderer)"]}ready(){super.ready(),this._overlayElement.setAttribute("role","dialog"),(0,w.h)(this)}_rendererChanged(e,t,o){this.$.overlay.setProperties({owner:this,renderer:e,headerRenderer:t,footerRenderer:o})}_openedChanged(e){this.$.overlay.opened=e}_ariaLabelChanged(e,t){e||t?this.$.overlay.setAttribute("aria-label",e||t):this.$.overlay.removeAttribute("aria-label")}}(0,a.X)(k)},55587:(e,t,o)=>{o.d(t,{h:()=>h});var r=o(33791),i=o(38735),s=o(35717),n=o(80521),a=o(6052),d=o(21380),l=o(52718);(0,a.SF)("vaadin-overlay",l.B,{moduleId:"vaadin-overlay-styles"});class h extends((0,d.c)((0,a.cp)((0,s.v)(r.Pu)))){static get template(){return r.qy`
304
- <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
305
- <div part="overlay" id="overlay" tabindex="0">
306
- <div part="content" id="content">
307
- <slot></slot>
308
- </div>
309
- </div>
310
- `}static get is(){return"vaadin-overlay"}ready(){super.ready(),(0,n.h)(this)}}(0,i.X)(h)},12855:(e,t,o)=>{var r=o(26245);(0,o(6052).SF)("vaadin-overlay",r.L,{moduleId:"lumo-vaadin-overlay"}),o(55587)},41745:(e,t,o)=>{o(56830);var r=o(6052),i=o(35543);const s=r.AH`
311
- :host {
312
- /* prettier-ignore */
313
- --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
314
-
315
- /* Font sizes */
316
- --lumo-font-size-xxs: 0.75rem;
317
- --lumo-font-size-xs: 0.8125rem;
318
- --lumo-font-size-s: 0.875rem;
319
- --lumo-font-size-m: 1rem;
320
- --lumo-font-size-l: 1.125rem;
321
- --lumo-font-size-xl: 1.375rem;
322
- --lumo-font-size-xxl: 1.75rem;
323
- --lumo-font-size-xxxl: 2.5rem;
324
-
325
- /* Line heights */
326
- --lumo-line-height-xs: 1.25;
327
- --lumo-line-height-s: 1.375;
328
- --lumo-line-height-m: 1.625;
329
- }
330
- `,n=r.AH`
331
- body,
332
- :host {
333
- font-family: var(--lumo-font-family);
334
- font-size: var(--lumo-font-size-m);
335
- line-height: var(--lumo-line-height-m);
336
- -webkit-text-size-adjust: 100%;
337
- -webkit-font-smoothing: antialiased;
338
- -moz-osx-font-smoothing: grayscale;
339
- }
340
-
341
- small,
342
- [theme~='font-size-s'] {
343
- font-size: var(--lumo-font-size-s);
344
- line-height: var(--lumo-line-height-s);
345
- }
346
-
347
- [theme~='font-size-xs'] {
348
- font-size: var(--lumo-font-size-xs);
349
- line-height: var(--lumo-line-height-xs);
350
- }
351
-
352
- :where(h1, h2, h3, h4, h5, h6) {
353
- font-weight: 600;
354
- line-height: var(--lumo-line-height-xs);
355
- margin-block: 0;
356
- }
357
-
358
- :where(h1) {
359
- font-size: var(--lumo-font-size-xxxl);
360
- }
361
-
362
- :where(h2) {
363
- font-size: var(--lumo-font-size-xxl);
364
- }
365
-
366
- :where(h3) {
367
- font-size: var(--lumo-font-size-xl);
368
- }
369
-
370
- :where(h4) {
371
- font-size: var(--lumo-font-size-l);
372
- }
373
-
374
- :where(h5) {
375
- font-size: var(--lumo-font-size-m);
376
- }
377
-
378
- :where(h6) {
379
- font-size: var(--lumo-font-size-xs);
380
- text-transform: uppercase;
381
- letter-spacing: 0.03em;
382
- }
383
-
384
- p,
385
- blockquote {
386
- margin-top: 0.5em;
387
- margin-bottom: 0.75em;
388
- }
389
-
390
- a {
391
- text-decoration: none;
392
- }
393
-
394
- a:where(:any-link):hover {
395
- text-decoration: underline;
396
- }
397
-
398
- hr {
399
- display: block;
400
- align-self: stretch;
401
- height: 1px;
402
- border: 0;
403
- padding: 0;
404
- margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
405
- background-color: var(--lumo-contrast-10pct);
406
- }
407
-
408
- blockquote {
409
- border-left: 2px solid var(--lumo-contrast-30pct);
410
- }
411
-
412
- b,
413
- strong {
414
- font-weight: 600;
415
- }
416
-
417
- /* RTL specific styles */
418
- blockquote[dir='rtl'] {
419
- border-left: none;
420
- border-right: 2px solid var(--lumo-contrast-30pct);
421
- }
422
- `;(0,r.SF)("",n,{moduleId:"lumo-typography"}),(0,i.q)("typography-props",s)}}]);