@descope/web-components-ui 1.0.294 → 1.0.296
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.cjs.js +1147 -920
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1141 -913
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/1224.js +1 -1
- package/dist/umd/1438.js +16 -9
- package/dist/umd/1438.js.LICENSE.txt +12 -0
- package/dist/umd/1612.js +338 -0
- package/dist/umd/1621.js +1 -1
- package/dist/umd/2362.js +129 -0
- package/dist/umd/3830.js +2 -0
- package/dist/umd/{3003.js.LICENSE.txt → 3830.js.LICENSE.txt} +12 -0
- package/dist/umd/3951.js +116 -4
- package/dist/umd/3951.js.LICENSE.txt +18 -0
- package/dist/umd/{9211.js → 4024.js} +5 -5
- package/dist/umd/{2775.js → 4028.js} +10 -10
- package/dist/umd/4028.js.LICENSE.txt +23 -0
- package/dist/umd/4052.js +338 -0
- package/dist/umd/4392.js +1 -0
- package/dist/umd/4746.js +124 -0
- package/dist/umd/{6091.js.LICENSE.txt → 4746.js.LICENSE.txt} +6 -0
- package/dist/umd/4978.js +1 -0
- package/dist/umd/{4595.js → 5135.js} +93 -5
- package/dist/umd/{2775.js.LICENSE.txt → 5135.js.LICENSE.txt} +2 -2
- package/dist/umd/5517.js +1 -1
- package/dist/umd/5806.js +4 -4
- package/dist/umd/5910.js +1 -1
- package/dist/umd/63.js +147 -1
- package/dist/umd/63.js.LICENSE.txt +13 -1
- package/dist/umd/6594.js +2 -0
- package/dist/umd/{1940.js.LICENSE.txt → 6594.js.LICENSE.txt} +1 -1
- package/dist/umd/6770.js +4 -4
- package/dist/umd/7056.js +376 -5
- package/dist/umd/7056.js.LICENSE.txt +6 -0
- package/dist/umd/7164.js +148 -0
- package/dist/umd/{2106.js.LICENSE.txt → 7164.js.LICENSE.txt} +1 -7
- package/dist/umd/7531.js +1 -1
- package/dist/umd/7911.js +4 -4
- package/dist/umd/7911.js.LICENSE.txt +6 -0
- package/dist/umd/{3092.js → 8191.js} +40 -5
- package/dist/umd/8866.js +97 -5
- package/dist/umd/8866.js.LICENSE.txt +12 -0
- package/dist/umd/9092.js +440 -12
- package/dist/umd/9092.js.LICENSE.txt +6 -0
- package/dist/umd/{1940.js → 9314.js} +126 -7
- package/dist/umd/9314.js.LICENSE.txt +11 -0
- package/dist/umd/9423.js +608 -0
- package/dist/umd/9423.js.LICENSE.txt +23 -0
- package/dist/umd/9562.js +338 -0
- package/dist/umd/9562.js.LICENSE.txt +11 -0
- package/dist/umd/DescopeDev.js +1 -0
- package/dist/umd/boolean-fields-descope-boolean-field-internal-index-js.js +1 -1
- package/dist/umd/boolean-fields-descope-checkbox-index-js.js +2 -1
- package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +2 -1
- package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-internal-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-internal-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
- package/dist/umd/descope-avatar-index-js.js +1 -1
- package/dist/umd/descope-badge-index-js.js +1 -1
- package/dist/umd/descope-button-index-js.js +338 -1
- package/dist/umd/descope-button-index-js.js.LICENSE.txt +11 -0
- package/dist/umd/descope-combo-box-index-js.js +113 -1
- package/dist/umd/descope-container-index-js.js +1 -1
- package/dist/umd/descope-date-picker-index-js.js +1 -1
- package/dist/umd/descope-divider-index-js.js +1 -1
- package/dist/umd/descope-email-field-index-js.js +54 -1
- package/dist/umd/descope-email-field-index-js.js.LICENSE.txt +11 -0
- package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js +90 -1
- package/dist/umd/{4595.js.LICENSE.txt → descope-grid-descope-grid-custom-column-index-js.js.LICENSE.txt} +6 -0
- package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js +2 -1
- package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js.LICENSE.txt +17 -0
- package/dist/umd/descope-grid-descope-grid-text-column-index-js.js +90 -1
- package/dist/umd/descope-grid-descope-grid-text-column-index-js.js.LICENSE.txt +17 -0
- package/dist/umd/descope-grid-index-js.js +1 -1
- package/dist/umd/descope-image-index-js.js +1 -1
- package/dist/umd/descope-link-index-js.js +1 -1
- package/dist/umd/descope-loader-linear-index-js.js +1 -1
- package/dist/umd/descope-loader-radial-index-js.js +1 -1
- package/dist/umd/descope-logo-index-js.js +1 -1
- package/dist/umd/descope-modal-index-js.js +1 -1
- package/dist/umd/descope-multi-select-combo-box-index-js.js +1 -1
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
- package/dist/umd/descope-new-password-index-js.js +1 -1
- package/dist/umd/descope-notification-descope-notification-card-index-js.js +1 -1
- package/dist/umd/descope-notification-index-js.js +1 -1
- package/dist/umd/descope-notp-image-index-js.js +1 -1
- package/dist/umd/descope-number-field-index-js.js +1 -1
- package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js +1 -1
- package/dist/umd/descope-passcode-index-js.js +37 -1
- package/dist/umd/descope-passcode-index-js.js.LICENSE.txt +11 -0
- package/dist/umd/descope-password-index-js.js +1 -1
- package/dist/umd/descope-policy-validation-index-js.js +1 -1
- package/dist/umd/descope-recaptcha-index-js.js +1 -1
- package/dist/umd/descope-text-area-index-js.js +1 -1
- package/dist/umd/descope-text-field-index-js.js +37 -1
- package/dist/umd/descope-text-field-index-js.js.LICENSE.txt +11 -0
- package/dist/umd/descope-text-index-js.js +1 -1
- package/dist/umd/descope-totp-image-index-js.js +1 -1
- package/dist/umd/descope-upload-file-index-js.js +1 -1
- package/dist/umd/descope-user-attribute-index-js.js +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js +1 -0
- package/dist/umd/index.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-descope-mapping-item-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-descope-mappings-field-internal-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -126
- package/dist/umd/mapping-fields-descope-saml-group-mappings-descope-saml-group-mappings-internal-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +37 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js.LICENSE.txt +11 -0
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +1 -1
- package/package.json +21 -2
- package/src/components/descope-user-attribute/UserAttributeClass.js +13 -0
- package/src/components/descope-user-auth-method/UserAuthMethodClass.js +202 -0
- package/src/components/descope-user-auth-method/green-v.svg +3 -0
- package/src/components/descope-user-auth-method/index.js +9 -0
- package/src/dev/index.js +1 -0
- package/src/index.cjs.js +1 -0
- package/src/index.js +1 -0
- package/src/mixins/normalizeBooleanAttributesMixin.js +1 -1
- package/src/theme/components/index.js +2 -0
- package/src/theme/components/userAuthMethod.js +19 -0
- package/dist/umd/1000.js +0 -1
- package/dist/umd/1037.js +0 -2
- package/dist/umd/1721.js +0 -1
- package/dist/umd/2066.js +0 -2
- package/dist/umd/2106.js +0 -73
- package/dist/umd/2269.js +0 -2
- package/dist/umd/2269.js.LICENSE.txt +0 -5
- package/dist/umd/2481.js +0 -1
- package/dist/umd/262.js +0 -2
- package/dist/umd/262.js.LICENSE.txt +0 -5
- package/dist/umd/3003.js +0 -2
- package/dist/umd/3208.js +0 -2
- package/dist/umd/3208.js.LICENSE.txt +0 -5
- package/dist/umd/322.js +0 -90
- package/dist/umd/322.js.LICENSE.txt +0 -5
- package/dist/umd/3249.js +0 -2
- package/dist/umd/3249.js.LICENSE.txt +0 -5
- package/dist/umd/3373.js +0 -2
- package/dist/umd/3373.js.LICENSE.txt +0 -5
- package/dist/umd/3585.js +0 -1
- package/dist/umd/3878.js +0 -1
- package/dist/umd/4201.js +0 -1
- package/dist/umd/422.js +0 -2
- package/dist/umd/422.js.LICENSE.txt +0 -5
- package/dist/umd/4226.js +0 -114
- package/dist/umd/4447.js +0 -1
- package/dist/umd/4567.js +0 -1
- package/dist/umd/4577.js +0 -1
- package/dist/umd/4803.js +0 -1
- package/dist/umd/4905.js +0 -2
- package/dist/umd/4905.js.LICENSE.txt +0 -5
- package/dist/umd/4946.js +0 -2
- package/dist/umd/4946.js.LICENSE.txt +0 -5
- package/dist/umd/6091.js +0 -124
- package/dist/umd/6606.js +0 -17
- package/dist/umd/6687.js +0 -9
- package/dist/umd/6687.js.LICENSE.txt +0 -5
- package/dist/umd/6977.js +0 -2
- package/dist/umd/6977.js.LICENSE.txt +0 -5
- package/dist/umd/7044.js +0 -1
- package/dist/umd/7583.js +0 -113
- package/dist/umd/8623.js +0 -2
- package/dist/umd/8623.js.LICENSE.txt +0 -5
- package/dist/umd/8725.js +0 -37
- package/dist/umd/9189.js +0 -2
- package/dist/umd/9189.js.LICENSE.txt +0 -5
- package/dist/umd/9211.js.LICENSE.txt +0 -5
- package/dist/umd/9214.js +0 -1
- package/dist/umd/9320.js +0 -2
- package/dist/umd/9320.js.LICENSE.txt +0 -5
- package/dist/umd/9383.js +0 -94
- package/dist/umd/9434.js +0 -1
- package/dist/umd/9437.js +0 -19
- package/dist/umd/9437.js.LICENSE.txt +0 -5
- package/dist/umd/9680.js +0 -2
- package/dist/umd/9680.js.LICENSE.txt +0 -5
- package/dist/umd/9789.js +0 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js.LICENSE.txt +0 -5
- /package/dist/umd/{3092.js.LICENSE.txt → 1612.js.LICENSE.txt} +0 -0
- /package/dist/umd/{6606.js.LICENSE.txt → 2362.js.LICENSE.txt} +0 -0
- /package/dist/umd/{4226.js.LICENSE.txt → 4024.js.LICENSE.txt} +0 -0
- /package/dist/umd/{8725.js.LICENSE.txt → 4052.js.LICENSE.txt} +0 -0
- /package/dist/umd/{9383.js.LICENSE.txt → 8191.js.LICENSE.txt} +0 -0
- /package/dist/umd/{1037.js.LICENSE.txt → boolean-fields-descope-checkbox-index-js.js.LICENSE.txt} +0 -0
- /package/dist/umd/{2066.js.LICENSE.txt → boolean-fields-descope-switch-toggle-index-js.js.LICENSE.txt} +0 -0
- /package/dist/umd/{7583.js.LICENSE.txt → descope-combo-box-index-js.js.LICENSE.txt} +0 -0
@@ -4,6 +4,12 @@
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
5
5
|
*/
|
6
6
|
|
7
|
+
/**
|
8
|
+
* @license
|
9
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
10
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
11
|
+
*/
|
12
|
+
|
7
13
|
/**
|
8
14
|
* @license
|
9
15
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
@@ -1,5 +1,5 @@
|
|
1
|
-
/*! For license information please see
|
2
|
-
"use strict";(self.
|
1
|
+
/*! For license information please see 9314.js.LICENSE.txt */
|
2
|
+
"use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[9314],{3550:(e,t,o)=>{o.d(t,{GF:()=>l,GO:()=>u,Gf:()=>i,LQ:()=>s,Qw:()=>h});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})},1037:(e,t,o)=>{o.d(t,{Dt:()=>s,G6:()=>h,T:()=>c,gn:()=>l,i7:()=>n,vU:()=>a});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}})()},6155:(e,t,o)=>{o.d(t,{k:()=>r});const r=(0,o(1014).o)((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)}}))},2521:(e,t,o)=>{o.d(t,{S:()=>l});var r=o(9387),i=o(7913),s=o(6139),n=o(1914);let a;(0,r.xj)(!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.U)(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.dx.debounce(a,i.t$,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),(0,s.Ex)(a)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}},262:(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,{k:()=>r})},1940:(e,t,o)=>{o(6687),o(9416);var r=o(510),i=o(6570);const s=i.iv`
|
3
3
|
/* Optical centering */
|
4
4
|
:host::before,
|
5
5
|
:host::after {
|
@@ -97,7 +97,7 @@
|
|
97
97
|
transform: scale(1.02);
|
98
98
|
}
|
99
99
|
}
|
100
|
-
`;(0,
|
100
|
+
`;(0,i.hC)("vaadin-dialog-overlay",[r.I,s],{moduleId:"lumo-dialog"});var n=o(4241),a=o(2807),d=o(1914),l=o(6196),h=o(4457);const c=e=>class extends((0,h.F)(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(9392);const p=u.iv`
|
101
101
|
[part='header'],
|
102
102
|
[part='header-content'],
|
103
103
|
[part='footer'] {
|
@@ -175,7 +175,7 @@
|
|
175
175
|
outline: 3px solid !important;
|
176
176
|
}
|
177
177
|
}
|
178
|
-
`,
|
178
|
+
`,v=u.iv`
|
179
179
|
[part='overlay'] {
|
180
180
|
position: relative;
|
181
181
|
overflow: visible;
|
@@ -268,7 +268,7 @@
|
|
268
268
|
left: -4px;
|
269
269
|
cursor: nwse-resize;
|
270
270
|
}
|
271
|
-
`;(0,
|
271
|
+
`;(0,i.hC)("vaadin-dialog-overlay",[l.r,p,v],{moduleId:"vaadin-dialog-overlay-styles"});class m extends(c((0,d.U)((0,i.Tb)(n.H3)))){static get is(){return"vaadin-dialog-overlay"}static get template(){return n.dy`
|
272
272
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
273
273
|
<div part="overlay" id="overlay" tabindex="0">
|
274
274
|
<section id="resizerContainer" class="resizer-container">
|
@@ -280,7 +280,7 @@
|
|
280
280
|
<footer part="footer"><slot name="footer"></slot></footer>
|
281
281
|
</section>
|
282
282
|
</div>
|
283
|
-
`}}(0,
|
283
|
+
`}}(0,a.M)(m);var g=o(2521),f=o(9320),w=o(262),b=o(1462);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(1037);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:_.T},__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()}},k=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 L extends(x(k(E(y((0,f.u)((0,b.I)((0,g.S)(n.H3)))))))){static get template(){return n.dy`
|
284
284
|
<style>
|
285
285
|
:host {
|
286
286
|
display: none !important;
|
@@ -300,4 +300,123 @@
|
|
300
300
|
restore-focus-on-close
|
301
301
|
focus-trap
|
302
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,
|
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.k)(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.M)(L)},3423:(e,t,o)=>{o.d(t,{a:()=>h});var r=o(4241),i=o(2807),s=o(1914),n=o(262),a=o(6570),d=o(4457),l=o(6196);(0,a.hC)("vaadin-overlay",l.r,{moduleId:"vaadin-overlay-styles"});class h extends((0,d.F)((0,a.Tb)((0,s.U)(r.H3)))){static get template(){return r.dy`
|
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.k)(this)}}(0,i.M)(h)},6687:(e,t,o)=>{var r=o(510);(0,o(6570).hC)("vaadin-overlay",r.I,{moduleId:"lumo-vaadin-overlay"}),o(3423)},4173:(e,t,o)=>{o(4407);var r=o(6570),i=o(2463);const s=r.iv`
|
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.iv`
|
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.hC)("",n,{moduleId:"lumo-typography"}),(0,i.K)("typography-props",s)}}]);
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
5
|
+
*/
|
6
|
+
|
7
|
+
/**
|
8
|
+
* @license
|
9
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
10
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
11
|
+
*/
|