@carbon/web-components 2.46.0-rc.0 → 2.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +161 -2
- package/dist/accordion.min.js +2 -2
- package/dist/ai-label.min.js +2 -2
- package/dist/ai-skeleton.min.js +2 -2
- package/dist/badge-indicator.min.js +2 -2
- package/dist/breadcrumb.min.js +2 -2
- package/dist/{button-B6EupeKC.js → button-3n7S6dfU.js} +2 -2
- package/dist/{button-skeleton-D6LHVMUE.js → button-skeleton-DE9AxBek.js} +2 -2
- package/dist/button.min.js +2 -2
- package/dist/chat-button.min.js +2 -2
- package/dist/{checkbox-BRtJQKoe.js → checkbox-CFU6bnOa.js} +2 -2
- package/dist/checkbox.min.js +2 -2
- package/dist/{class-map-BWqhpJ_w.js → class-map-BLvVLLRH.js} +2 -2
- package/dist/code-snippet.min.js +2 -2
- package/dist/combo-box.min.js +2 -2
- package/dist/combo-button.min.js +2 -2
- package/dist/contained-list.min.js +70 -0
- package/dist/{content-switcher-item-DIYS21Yi.js → content-switcher-item-CXc-BbRX.js} +2 -2
- package/dist/content-switcher.min.js +2 -2
- package/dist/copy-button.min.js +2 -2
- package/dist/data-table.min.js +2 -2
- package/dist/date-picker.min.js +2 -2
- package/dist/{dropdown-item-C7ZY_dPq.js → dropdown-item-CSXYY4Up.js} +2 -2
- package/dist/dropdown.min.js +2 -2
- package/dist/feature-flags.min.js +2 -2
- package/dist/file-uploader.min.js +2 -2
- package/dist/floating-menu.min.js +2 -2
- package/dist/fluid-number-input.min.js +2 -2
- package/dist/fluid-search.min.js +2 -2
- package/dist/fluid-select.min.js +2 -2
- package/dist/fluid-text-input.min.js +2 -2
- package/dist/fluid-textarea.min.js +2 -2
- package/dist/{focus-WTypVo8z.js → focus-DCv16lgz.js} +2 -2
- package/dist/{form-CLWWjdmR.js → form-D0wM2t2A.js} +2 -2
- package/dist/form-group.min.js +2 -2
- package/dist/form.min.js +2 -2
- package/dist/grid.min.js +2 -2
- package/dist/heading.min.js +2 -2
- package/dist/{host-listener-C7ueKaHY.js → host-listener-maKckXVl.js} +2 -2
- package/dist/icon-button.min.js +2 -2
- package/dist/icon-indicator.min.js +2 -2
- package/dist/{icon-loader-BgBdF7Wh.js → icon-loader-BiaaiIZd.js} +2 -2
- package/dist/{icon-loader-utils-D_SIVhid.js → icon-loader-utils-Dw7YsY3n.js} +2 -2
- package/dist/icon.min.js +2 -2
- package/dist/{if-defined-BYeCDsXc.js → if-defined-B342gMhK.js} +2 -2
- package/dist/{if-non-empty-BoVz_wi3.js → if-non-empty-BXM4sQkm.js} +2 -2
- package/dist/inline-loading.min.js +2 -2
- package/dist/layer.min.js +2 -2
- package/dist/link.min.js +2 -2
- package/dist/list.min.js +2 -2
- package/dist/{loading-icon-CbiTnx6j.js → loading-icon-9dSwtpx9.js} +2 -2
- package/dist/loading.min.js +2 -2
- package/dist/menu-button.min.js +2 -2
- package/dist/menu.min.js +2 -2
- package/dist/modal.min.js +2 -2
- package/dist/multi-select.min.js +2 -2
- package/dist/notification.min.js +2 -2
- package/dist/number-input.min.js +2 -2
- package/dist/overflow-menu.min.js +2 -2
- package/dist/page-header.min.js +2 -2
- package/dist/pagination.min.js +2 -2
- package/dist/password-input.min.js +2 -2
- package/dist/popover.min.js +2 -2
- package/dist/progress-bar.min.js +2 -2
- package/dist/progress-indicator.min.js +2 -2
- package/dist/{property-aSSmOXUc.js → property-D8KHfsO7.js} +2 -2
- package/dist/{query-assigned-elements-CJtBgeNL.js → query-assigned-elements-CuK851Xm.js} +2 -2
- package/dist/radio-button.min.js +2 -2
- package/dist/{search-B8WI5QCQ.js → search-BpfBrZ_q.js} +2 -2
- package/dist/search.min.js +2 -2
- package/dist/{select-C6FRldb_.js → select-Bu-C3DEh.js} +2 -2
- package/dist/{select-item-BCADBcm5.js → select-item-CY7ZCgDO.js} +2 -2
- package/dist/{select-skeleton-4DzWsfn6.js → select-skeleton-Bj1W9rv-.js} +2 -2
- package/dist/select.min.js +2 -2
- package/dist/shape-indicator.min.js +2 -2
- package/dist/side-panel.min.js +2 -2
- package/dist/skeleton-icon.min.js +2 -2
- package/dist/skeleton-placeholder.min.js +2 -2
- package/dist/skeleton-text.min.js +2 -2
- package/dist/skip-to-content.min.js +2 -2
- package/dist/slider.min.js +185 -99
- package/dist/slug.min.js +2 -2
- package/dist/stack.min.js +2 -2
- package/dist/{state-3rJ0MPt3.js → state-DVnprZ3A.js} +2 -2
- package/dist/structured-list.min.js +2 -2
- package/dist/tabs.min.js +2 -2
- package/dist/tag.min.js +2 -2
- package/dist/tearsheet.min.js +2 -2
- package/dist/{text-input-CflHOip-.js → text-input-CMLDDQcE.js} +2 -2
- package/dist/text-input.min.js +2 -2
- package/dist/textarea.min.js +2 -2
- package/dist/tile.min.js +2 -2
- package/dist/time-picker.min.js +2 -2
- package/dist/toggle-tip.min.js +2 -2
- package/dist/toggle.min.js +2 -2
- package/dist/{tooltip-content-GYKS4_SW.js → tooltip-content-eYgOs_c2.js} +2 -2
- package/dist/tooltip.min.js +2 -2
- package/dist/tree-view.min.js +2 -2
- package/dist/ui-shell.min.js +2 -2
- package/dist/{unsafe-html-CHvZXpC2.js → unsafe-html-SGvBIOsG.js} +2 -2
- package/es/components/contained-list/contained-list-description.d.ts +18 -0
- package/es/components/contained-list/contained-list-description.js +38 -0
- package/es/components/contained-list/contained-list-description.js.map +1 -0
- package/es/components/contained-list/contained-list-item.d.ts +43 -0
- package/es/components/contained-list/contained-list-item.js +135 -0
- package/es/components/contained-list/contained-list-item.js.map +1 -0
- package/es/components/contained-list/contained-list.d.ts +37 -0
- package/es/components/contained-list/contained-list.js +95 -0
- package/es/components/contained-list/contained-list.js.map +1 -0
- package/es/components/contained-list/contained-list.scss.js +13 -0
- package/es/components/contained-list/contained-list.scss.js.map +1 -0
- package/es/components/contained-list/index.d.ts +9 -0
- package/es/components/contained-list/index.js +11 -0
- package/es/components/contained-list/index.js.map +1 -0
- package/es/components/search/search.scss.js +1 -1
- package/es/components/slider/slider-input.js +14 -18
- package/es/components/slider/slider-input.js.map +1 -1
- package/es/components/slider/slider.d.ts +7 -0
- package/es/components/slider/slider.js +226 -83
- package/es/components/slider/slider.js.map +1 -1
- package/es/components/slider/slider.scss.js +1 -1
- package/es-custom/components/contained-list/contained-list-description.d.ts +18 -0
- package/es-custom/components/contained-list/contained-list-description.js +38 -0
- package/es-custom/components/contained-list/contained-list-description.js.map +1 -0
- package/es-custom/components/contained-list/contained-list-item.d.ts +43 -0
- package/es-custom/components/contained-list/contained-list-item.js +135 -0
- package/es-custom/components/contained-list/contained-list-item.js.map +1 -0
- package/es-custom/components/contained-list/contained-list.d.ts +37 -0
- package/es-custom/components/contained-list/contained-list.js +95 -0
- package/es-custom/components/contained-list/contained-list.js.map +1 -0
- package/es-custom/components/contained-list/contained-list.scss.js +13 -0
- package/es-custom/components/contained-list/contained-list.scss.js.map +1 -0
- package/es-custom/components/contained-list/index.d.ts +9 -0
- package/es-custom/components/contained-list/index.js +11 -0
- package/es-custom/components/contained-list/index.js.map +1 -0
- package/es-custom/components/search/search.scss.js +1 -1
- package/es-custom/components/slider/slider-input.js +14 -18
- package/es-custom/components/slider/slider-input.js.map +1 -1
- package/es-custom/components/slider/slider.d.ts +7 -0
- package/es-custom/components/slider/slider.js +226 -83
- package/es-custom/components/slider/slider.js.map +1 -1
- package/es-custom/components/slider/slider.scss.js +1 -1
- package/lib/components/contained-list/contained-list-description.d.ts +18 -0
- package/lib/components/contained-list/contained-list-item.d.ts +43 -0
- package/lib/components/contained-list/contained-list.d.ts +37 -0
- package/lib/components/contained-list/index.d.ts +9 -0
- package/lib/components/slider/slider.d.ts +7 -0
- package/package.json +5 -5
- package/scss/components/contained-list/contained-list.scss +48 -0
- package/scss/components/search/search.scss +6 -0
- package/scss/components/slider/slider.scss +33 -5
- package/telemetry.yml +7 -1
- package/dist/{16-BT5sXO15.js → 16-BXPirV4t.js} +1 -1
- package/dist/{16-B6C_xKn2.js → 16-BcPXq4VE.js} +1 -1
- package/dist/{16-DVuMOaoL.js → 16-BiojhJb6.js} +1 -1
- package/dist/{16-DYRVrmHV.js → 16-BirbARgt.js} +1 -1
- package/dist/{16-DkjjxfhG.js → 16-CCrV-EKs.js} +1 -1
- package/dist/{16-C66wniDo.js → 16-CNObEOvs.js} +1 -1
- package/dist/{16-DsqlCz5e.js → 16-CsHohlYG.js} +1 -1
- package/dist/{16-CCuMFg-_.js → 16-D9rqeJJl.js} +1 -1
- package/dist/{16-BEal2V76.js → 16-DEZ8LNs3.js} +1 -1
- package/dist/{16-De5FrWrf.js → 16-DThcsE9v.js} +1 -1
- package/dist/{16-DS87A5wI.js → 16-T0hLy__N.js} +1 -1
- package/dist/{16-Cl7tP9gJ.js → 16-mUGLFymm.js} +1 -1
- package/dist/{20-M8uN1-3k.js → 20-BSzLZNRY.js} +1 -1
- package/dist/{20-CyyHLwAd.js → 20-ZHgmfbqd.js} +1 -1
- package/dist/{carbon-element-pT2WqooF.js → carbon-element-tFMTVffV.js} +1 -1
- package/dist/{collection-helpers-Gmd3UWpm.js → collection-helpers-C8K_t6zj.js} +1 -1
- package/dist/{consume-CGHIe8Yq.js → consume-DNv3sWri.js} +1 -1
- package/dist/{defs-C0oAwtU_.js → defs-CcLNpvSO.js} +1 -1
- package/dist/{directive-DfnquK5o.js → directive-CwpJ03IP.js} +1 -1
- package/dist/{floating-controller-DcT4xouq.js → floating-controller-ClaZwDaj.js} +1 -1
- package/dist/{host-listener-Dro6eKXH.js → host-listener-BFnrKETa.js} +1 -1
- package/dist/{lit-element-C8iTMOf2.js → lit-element-W7dQy3wx.js} +1 -1
- package/dist/{on-DgqcjrHg.js → on-Bh72-1o0.js} +1 -1
- package/dist/{query-C0ITLV7N.js → query-DZZk85FD.js} +1 -1
- package/dist/{radio-group-manager-Ds3A_uvs.js → radio-group-manager-BbeUxJeN.js} +1 -1
- package/dist/{settings-C6nB0wqh.js → settings-CVGvqY8T.js} +1 -1
- package/dist/{shared-enums-BbVHHvKz.js → shared-enums-D2BNx9-N.js} +1 -1
- package/dist/{validity-Dc6JTKVG.js → validity-CzCNnEZK.js} +1 -1
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
* https://www.npmjs.com/package/lit-html
|
|
22
22
|
* https://www.npmjs.com/package/lit-element
|
|
23
23
|
* https://www.npmjs.com/package/@lit/reactive-element
|
|
24
|
-
* https://www.npmjs.com/package/@floating-ui/core
|
|
25
24
|
* https://www.npmjs.com/package/@floating-ui/utils
|
|
25
|
+
* https://www.npmjs.com/package/@floating-ui/core
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
const t=["top","right","bottom","left"],e=Math.min,n=Math.max,o=Math.round,i=Math.floor,r=t=>({x:t,y:t}),l={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function a(t,o,i){return n(t,e(o,i))}function c(t,e){return"function"==typeof t?t(e):t}function f(t){return t.split("-")[0]}function u(t){return t.split("-")[1]}function d(t){return"y"===t?"height":"width"}function h(t){return["top","bottom"].includes(f(t))?"y":"x"}function p(t){return"x"===h(t)?"y":"x"}function m(t){return t.replace(/start|end/g,(t=>s[t]))}function g(t){return t.replace(/left|right|bottom|top/g,(t=>l[t]))}function y(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function w(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function b(t,e,n){let{reference:o,floating:i}=t;const r=h(e),l=p(e),s=d(l),a=f(e),c="y"===r,m=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,y=o[s]/2-i[s]/2;let w;switch(a){case"top":w={x:m,y:o.y-i.height};break;case"bottom":w={x:m,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:g};break;case"left":w={x:o.x-i.width,y:g};break;default:w={x:o.x,y:o.y}}switch(u(e)){case"start":w[l]-=y*(n&&c?-1:1);break;case"end":w[l]+=y*(n&&c?-1:1)}return w}async function x(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:s,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=c(e,t),m=y(p),g=s[h?"floating"===d?"reference":"floating":d],b=w(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:f,rootBoundary:u,strategy:a})),x="floating"===d?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,v=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),R=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},L=w(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:v,strategy:a}):x);return{top:(b.top-L.top+m.top)/R.y,bottom:(L.bottom-b.bottom+m.bottom)/R.y,left:(b.left-L.left+m.left)/R.x,right:(L.right-b.right+m.right)/R.x}}function v(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function R(e){return t.some((t=>e[t]>=0))}function L(){return"undefined"!=typeof window}function T(t){return D(t)?(t.nodeName||"").toLowerCase():"#document"}function A(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function E(t){var e;return null==(e=(D(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function D(t){return!!L()&&(t instanceof Node||t instanceof A(t).Node)}function P(t){return!!L()&&(t instanceof Element||t instanceof A(t).Element)}function k(t){return!!L()&&(t instanceof HTMLElement||t instanceof A(t).HTMLElement)}function S(t){return!(!L()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof A(t).ShadowRoot)}function O(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=V(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function C(t){return["table","td","th"].includes(T(t))}function F(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function H(t){const e=W(),n=P(t)?V(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!n[t]&&"none"!==n[t]))||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function W(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function B(t){return["html","body","#document"].includes(T(t))}function V(t){return A(t).getComputedStyle(t)}function M(t){return P(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function N(t){if("html"===T(t))return t;const e=t.assignedSlot||t.parentNode||S(t)&&t.host||E(t);return S(e)?e.host:e}function $(t){const e=N(t);return B(e)?t.ownerDocument?t.ownerDocument.body:t.body:k(e)&&O(e)?e:$(e)}function z(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=$(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=A(i);if(r){const t=I(l);return e.concat(l,l.visualViewport||[],O(i)?i:[],t&&n?z(t):[])}return e.concat(i,z(i,[],n))}function I(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function j(t){const e=V(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=k(t),l=r?t.offsetWidth:n,s=r?t.offsetHeight:i,a=o(n)!==l||o(i)!==s;return a&&(n=l,i=s),{width:n,height:i,$:a}}function q(t){return P(t)?t:t.contextElement}function U(t){const e=q(t);if(!k(e))return r(1);const n=e.getBoundingClientRect(),{width:i,height:l,$:s}=j(e);let a=(s?o(n.width):n.width)/i,c=(s?o(n.height):n.height)/l;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}const X=r(0);function Y(t){const e=A(t);return W()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:X}function _(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),l=q(t);let s=r(1);e&&(o?P(o)&&(s=U(o)):s=U(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==A(t))&&e}(l,n,o)?Y(l):r(0);let c=(i.left+a.x)/s.x,f=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(l){const t=A(l),e=o&&P(o)?A(o):o;let n=t,i=I(n);for(;i&&o&&e!==n;){const t=U(i),e=i.getBoundingClientRect(),o=V(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,f*=t.y,u*=t.x,d*=t.y,c+=r,f+=l,n=A(i),i=I(n)}}return w({width:u,height:d,x:c,y:f})}function G(t,e){const n=M(t).scrollLeft;return e?e.left+n:_(E(t)).left+n}function J(t,e,n){void 0===n&&(n=!1);const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-(n?0:G(t,o)),y:o.top+e.scrollTop}}function K(t,e,o){let i;if("viewport"===e)i=function(t,e){const n=A(t),o=E(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,a=0;if(i){r=i.width,l=i.height;const t=W();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,a=i.offsetTop)}return{width:r,height:l,x:s,y:a}}(t,o);else if("document"===e)i=function(t){const e=E(t),o=M(t),i=t.ownerDocument.body,r=n(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),l=n(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+G(t);const a=-o.scrollTop;return"rtl"===V(i).direction&&(s+=n(e.clientWidth,i.clientWidth)-r),{width:r,height:l,x:s,y:a}}(E(t));else if(P(e))i=function(t,e){const n=_(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,l=k(t)?U(t):r(1);return{width:t.clientWidth*l.x,height:t.clientHeight*l.y,x:i*l.x,y:o*l.y}}(e,o);else{const n=Y(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return w(i)}function Q(t,e){const n=N(t);return!(n===e||!P(n)||B(n))&&("fixed"===V(n).position||Q(n,e))}function Z(t,e,n){const o=k(e),i=E(e),l="fixed"===n,s=_(t,!0,l,e);let a={scrollLeft:0,scrollTop:0};const c=r(0);if(o||!o&&!l)if(("body"!==T(e)||O(i))&&(a=M(e)),o){const t=_(e,!0,l,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=G(i));const f=!i||o||l?r(0):J(i,a);return{x:s.left+a.scrollLeft-c.x-f.x,y:s.top+a.scrollTop-c.y-f.y,width:s.width,height:s.height}}function tt(t){return"static"===V(t).position}function et(t,e){if(!k(t)||"fixed"===V(t).position)return null;if(e)return e(t);let n=t.offsetParent;return E(t)===n&&(n=n.ownerDocument.body),n}function nt(t,e){const n=A(t);if(F(t))return n;if(!k(t)){let e=N(t);for(;e&&!B(e);){if(P(e)&&!tt(e))return e;e=N(e)}return n}let o=et(t,e);for(;o&&C(o)&&tt(o);)o=et(o,e);return o&&B(o)&&tt(o)&&!H(o)?n:o||function(t){let e=N(t);for(;k(e)&&!B(e);){if(H(e))return e;if(F(e))return null;e=N(e)}return null}(t)||n}const ot={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const l="fixed"===i,s=E(o),a=!!e&&F(e.floating);if(o===s||a&&l)return n;let c={scrollLeft:0,scrollTop:0},f=r(1);const u=r(0),d=k(o);if((d||!d&&!l)&&(("body"!==T(o)||O(s))&&(c=M(o)),k(o))){const t=_(o);f=U(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}const h=!s||d||l?r(0):J(s,c,!0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+u.x+h.x,y:n.y*f.y-c.scrollTop*f.y+u.y+h.y}},getDocumentElement:E,getClippingRect:function(t){let{element:o,boundary:i,rootBoundary:r,strategy:l}=t;const s=[..."clippingAncestors"===i?F(o)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=z(t,[],!1).filter((t=>P(t)&&"body"!==T(t))),i=null;const r="fixed"===V(t).position;let l=r?N(t):t;for(;P(l)&&!B(l);){const e=V(l),n=H(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||O(l)&&!n&&Q(t,l))?o=o.filter((t=>t!==l)):i=e,l=N(l)}return e.set(t,o),o}(o,this._c):[].concat(i),r],a=s[0],c=s.reduce(((t,i)=>{const r=K(o,i,l);return t.top=n(r.top,t.top),t.right=e(r.right,t.right),t.bottom=e(r.bottom,t.bottom),t.left=n(r.left,t.left),t}),K(o,a,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:nt,getElementRects:async function(t){const e=this.getOffsetParent||nt,n=this.getDimensions,o=await n(t.floating);return{reference:Z(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=j(t);return{width:e,height:n}},getScale:U,isElement:P,isRTL:function(t){return"rtl"===V(t).direction}};function it(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function rt(t,o,r,l){void 0===l&&(l={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:u=!1}=l,d=q(t),h=s||a?[...d?z(d):[],...z(o)]:[];h.forEach((t=>{s&&t.addEventListener("scroll",r,{passive:!0}),a&&t.addEventListener("resize",r)}));const p=d&&f?function(t,o){let r,l=null;const s=E(t);function a(){var t;clearTimeout(r),null==(t=l)||t.disconnect(),l=null}return function c(f,u){void 0===f&&(f=!1),void 0===u&&(u=1),a();const d=t.getBoundingClientRect(),{left:h,top:p,width:m,height:g}=d;if(f||o(),!m||!g)return;const y={rootMargin:-i(p)+"px "+-i(s.clientWidth-(h+m))+"px "+-i(s.clientHeight-(p+g))+"px "+-i(h)+"px",threshold:n(0,e(1,u))||1};let w=!0;function b(e){const n=e[0].intersectionRatio;if(n!==u){if(!w)return c();n?c(!1,n):r=setTimeout((()=>{c(!1,1e-7)}),1e3)}1!==n||it(d,t.getBoundingClientRect())||c(),w=!1}try{l=new IntersectionObserver(b,{...y,root:s.ownerDocument})}catch(t){l=new IntersectionObserver(b,y)}l.observe(t)}(!0),a}(d,r):null;let m,g=-1,y=null;c&&(y=new ResizeObserver((t=>{let[e]=t;e&&e.target===d&&y&&(y.unobserve(o),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=y)||t.observe(o)}))),r()})),d&&!u&&y.observe(d),y.observe(o));let w=u?_(t):null;return u&&function e(){const n=_(t);w&&!it(w,n)&&r();w=n,m=requestAnimationFrame(e)}(),r(),()=>{var t;h.forEach((t=>{s&&t.removeEventListener("scroll",r),a&&t.removeEventListener("resize",r)})),null==p||p(),null==(t=y)||t.disconnect(),y=null,u&&cancelAnimationFrame(m)}}const lt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:l,middlewareData:s}=e,a=await async function(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),l=f(n),s=u(n),a="y"===h(n),d=["left","top"].includes(l)?-1:1,p=r&&a?-1:1,m=c(e,t);let{mainAxis:g,crossAxis:y,alignmentAxis:w}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return s&&"number"==typeof w&&(y="end"===s?-1*w:w),a?{x:y*p,y:g*d}:{x:g*d,y:y*p}}(e,t);return l===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:i+a.x,y:r+a.y,data:{...a,placement:l}}}}},st=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:s,platform:a,elements:y}=e,{mainAxis:w=!0,crossAxis:b=!0,fallbackPlacements:v,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:T=!0,...A}=c(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const E=f(i),D=h(s),P=f(s)===s,k=await(null==a.isRTL?void 0:a.isRTL(y.floating)),S=v||(P||!T?[g(s)]:function(t){const e=g(t);return[m(t),e,m(e)]}(s)),O="none"!==L;!v&&O&&S.push(...function(t,e,n,o){const i=u(t);let r=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}(f(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(m)))),r}(s,T,L,k));const C=[s,...S],F=await x(e,A),H=[];let W=(null==(o=r.flip)?void 0:o.overflows)||[];if(w&&H.push(F[E]),b){const t=function(t,e,n){void 0===n&&(n=!1);const o=u(t),i=p(t),r=d(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=g(l)),[l,g(l)]}(i,l,k);H.push(F[t[0]],F[t[1]])}if(W=[...W,{placement:i,overflows:H}],!H.every((t=>t<=0))){var B,V;const t=((null==(B=r.flip)?void 0:B.index)||0)+1,e=C[t];if(e)return{data:{index:t,overflows:W},reset:{placement:e}};let n=null==(V=W.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:V.placement;if(!n)switch(R){case"bestFit":{var M;const t=null==(M=W.filter((t=>{if(O){const e=h(t.placement);return e===D||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:M[0];t&&(n=t);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},at=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(o){const{placement:i,rects:r,platform:l,elements:s}=o,{apply:a=()=>{},...d}=c(t,o),p=await x(o,d),m=f(i),g=u(i),y="y"===h(i),{width:w,height:b}=r.floating;let v,R;"top"===m||"bottom"===m?(v=m,R=g===(await(null==l.isRTL?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(R=m,v="end"===g?"top":"bottom");const L=b-p.top-p.bottom,T=w-p.left-p.right,A=e(b-p[v],L),E=e(w-p[R],T),D=!o.middlewareData.shift;let P=A,k=E;if(y?k=g||D?e(E,T):T:P=g||D?e(A,L):L,D&&!g){const t=n(p.left,0),e=n(p.right,0),o=n(p.top,0),i=n(p.bottom,0);y?k=w-2*(0!==t||0!==e?t+e:n(p.left,p.right)):P=b-2*(0!==o||0!==i?o+i:n(p.top,p.bottom))}await a({...o,availableWidth:k,availableHeight:P});const S=await l.getDimensions(s.floating);return w!==S.width||b!==S.height?{reset:{rects:!0}}:{}}}},ct=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=c(t,e);switch(o){case"referenceHidden":{const t=v(await x(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:R(t)}}}case"escaped":{const t=v(await x(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:R(t)}}}default:return{}}}}},ft=t=>({name:"arrow",options:t,async fn(n){const{x:o,y:i,placement:r,rects:l,platform:s,elements:f,middlewareData:h}=n,{element:m,padding:g=0}=c(t,n)||{};if(null==m)return{};const w=y(g),b={x:o,y:i},x=p(r),v=d(x),R=await s.getDimensions(m),L="y"===x,T=L?"top":"left",A=L?"bottom":"right",E=L?"clientHeight":"clientWidth",D=l.reference[v]+l.reference[x]-b[x]-l.floating[v],P=b[x]-l.reference[x],k=await(null==s.getOffsetParent?void 0:s.getOffsetParent(m));let S=k?k[E]:0;S&&await(null==s.isElement?void 0:s.isElement(k))||(S=f.floating[E]||l.floating[v]);const O=D/2-P/2,C=S/2-R[v]/2-1,F=e(w[T],C),H=e(w[A],C),W=F,B=S-R[v]-H,V=S/2-R[v]/2+O,M=a(W,V,B),N=!h.arrow&&null!=u(r)&&V!==M&&l.reference[v]/2-(V<W?F:H)-R[v]/2<0,$=N?V<W?V-W:V-B:0;return{[x]:b[x]+$,data:{[x]:M,centerOffset:V-M-$,...N&&{alignmentOffset:$}},reset:N}}}),ut=(t,e,n)=>{const o=new Map,i={platform:ot,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,s=r.filter(Boolean),a=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=b(c,o,a),d=o,h={},p=0;for(let n=0;n<s.length;n++){const{name:r,fn:m}=s[n],{x:g,y:y,data:w,reset:x}=await m({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:c,platform:l,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=y?y:u,h={...h,[r]:{...h[r],...w}},x&&p<=50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):x.rects),({x:f,y:u}=b(c,d,a))),n=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:h}})(t,e,{...i,platform:r})};class dt{constructor(t){this.updatePlacement=()=>{this.computePlacement()},this.host=t,t.addController(this)}async setPlacement(t=this.options){this.options=t;const{trigger:e,target:n}=t;this.cleanup=rt(e,n,this.updatePlacement)}async computePlacement(){var t,e,n;const{arrowElement:o,alignment:i,caret:r,trigger:l,target:s,styleElement:a,matchWidth:c,open:f,alignmentAxisOffset:u,autoAlignBoundary:d,isTabTip:h}=this.options,p=null!=a?a:s;if(!p)return;let m;switch(i){case"top-left":m="top-start";break;case"top-right":m="top-end";break;case"bottom-left":m="bottom-start";break;case"bottom-right":m="bottom-end";break;case"left-bottom":m="left-end";break;case"left-top":m="left-start";break;case"right-bottom":m="right-end";break;case"right-top":m="right-start";break;default:m=i}const g=getComputedStyle(p),y=h?0:null!==(t=(t=>{const e=parseFloat(t);return t.trim().endsWith("rem")?16*e:e})(g.getPropertyValue("--cds-popover-offset").trim()))&&void 0!==t?t:10,w=[lt(r&&!h?{alignmentAxis:u,mainAxis:y}:0),st({fallbackPlacements:h?m.includes("bottom")?["bottom-start","bottom-end","top-start","top-end"]:["top-start","top-end","bottom-start","bottom-end"]:m.includes("bottom")?["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"]:["top","top-start","top-end","left","left-start","left-end","right","right-start","right-end","bottom","bottom-start","bottom-end"],fallbackStrategy:"initialPlacement",fallbackAxisSideDirection:"start",boundary:d}),...!c||"bottom"!==m&&"top"!==m?[at({apply({elements:t}){t.floating.style.removeProperty("width")}})]:[at({apply({rects:t,elements:e}){e.floating.style.width=`${t.reference.width}px`}})],...r&&o?[ft({element:o,padding:15})]:[],ct()];if(f){const{x:t,y:i,placement:r,middlewareData:s,strategy:a}=await ut(l,p,{strategy:"fixed",middleware:w,placement:m});if(p.setAttribute("align",r),p.style.left=`${t}px`,p.style.top=`${i}px`,p.style.position=`${a}`,p.style.visibility=(null===(e=s.hide)||void 0===e?void 0:e.referenceHidden)?"hidden":"visible",o){const{x:t,y:e}=s.arrow,n={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]];o.style.left=null!=t?`${t}px`:"",o.style.top=null!=e?`${e}px`:"",o.style.right="",o.style.bottom="",o.style[n]=-o.offsetWidth/2+"px"}"CDS-AI-LABEL"!==this.host.tagName&&"CDS-SLUG"!==this.host.tagName||null===(n=this.host)||void 0===n||n.setAttribute("alignment",r)}}hostUpdated(){var t;this.host.hasAttribute("open")||(null===(t=this.cleanup)||void 0===t||t.call(this),this.cleanup=void 0)}hostDisconnected(){var t;null===(t=this.cleanup)||void 0===t||t.call(this),this.cleanup=void 0}}export{dt as F};
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
* https://www.npmjs.com/package/lit-html
|
|
22
22
|
* https://www.npmjs.com/package/lit-element
|
|
23
23
|
* https://www.npmjs.com/package/@lit/reactive-element
|
|
24
|
-
* https://www.npmjs.com/package/@floating-ui/core
|
|
25
24
|
* https://www.npmjs.com/package/@floating-ui/utils
|
|
25
|
+
* https://www.npmjs.com/package/@floating-ui/core
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
const t=(t,e,o,s)=>{const n=o._hostListeners;if(!n)throw new Error("The method `@HostListener()` is defined on has to be of a class that has `HostListerMixin`.");n[s]||(n[s]={}),n[s][t]={options:e}},e=(e,o)=>(s,n)=>void 0!==n?t(e,o,s.constructor,n):((e,o,s)=>{const{kind:n,key:i,placement:r}=s;if(!("method"===n&&"prototype"===r||"field"===n&&"own"===r))throw new Error("`@HostListener()` must be defined on instance methods, but you may have defined it on static, field, etc.");return Object.assign(Object.assign({},s),{finisher(s){t(e,o,s,i)}})})(e,o,s);export{e as H};
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
* https://www.npmjs.com/package/lit-html
|
|
22
22
|
* https://www.npmjs.com/package/lit-element
|
|
23
23
|
* https://www.npmjs.com/package/@lit/reactive-element
|
|
24
|
-
* https://www.npmjs.com/package/@floating-ui/core
|
|
25
24
|
* https://www.npmjs.com/package/@floating-ui/utils
|
|
25
|
+
* https://www.npmjs.com/package/@floating-ui/core
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
function t(t,e,s,i){var r,n=arguments.length,o=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,s,i);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(o=(n<3?r(o):n>3?r(e,s,o):r(e,s))||o);return n>3&&o&&Object.defineProperty(e,s,o),o}"function"==typeof SuppressedError&&SuppressedError;
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
* https://www.npmjs.com/package/lit-html
|
|
22
22
|
* https://www.npmjs.com/package/lit-element
|
|
23
23
|
* https://www.npmjs.com/package/@lit/reactive-element
|
|
24
|
-
* https://www.npmjs.com/package/@floating-ui/core
|
|
25
24
|
* https://www.npmjs.com/package/@floating-ui/utils
|
|
25
|
+
* https://www.npmjs.com/package/@floating-ui/core
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
function e(e,...n){return e.addEventListener(...n),{release:()=>(e.removeEventListener(...n),null)}}export{e as o};
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
* https://www.npmjs.com/package/lit-html
|
|
22
22
|
* https://www.npmjs.com/package/lit-element
|
|
23
23
|
* https://www.npmjs.com/package/@lit/reactive-element
|
|
24
|
-
* https://www.npmjs.com/package/@floating-ui/core
|
|
25
24
|
* https://www.npmjs.com/package/@floating-ui/utils
|
|
25
|
+
* https://www.npmjs.com/package/@floating-ui/core
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
* https://www.npmjs.com/package/lit-html
|
|
22
22
|
* https://www.npmjs.com/package/lit-element
|
|
23
23
|
* https://www.npmjs.com/package/@lit/reactive-element
|
|
24
|
-
* https://www.npmjs.com/package/@floating-ui/core
|
|
25
24
|
* https://www.npmjs.com/package/@floating-ui/utils
|
|
25
|
+
* https://www.npmjs.com/package/@floating-ui/core
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
var e;!function(e){e[e.BACKWARD=-1]="BACKWARD",e[e.FORWARD=1]="FORWARD"}(e||(e={}));class t{constructor(e){this._groups={},this.constructor._instances.set(e,this)}shouldBeFocusable(e){if(e.checked)return!0;const{name:t}=e,s=this._groups[t];if(s&&Array.from(s).some((e=>e.checked)))return!1;return!s||1===s.size||this.getSortedGroup(e)[0]===e}getSortedGroup(e){const t=this._groups[e.name];return t&&Array.from(t).sort(((e,t)=>{const s=e.compareDocumentPosition(t);return s&Node.DOCUMENT_POSITION_FOLLOWING||s&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:s&Node.DOCUMENT_POSITION_PRECEDING||s&Node.DOCUMENT_POSITION_CONTAINS?1:0}))}add(e){const{name:t}=e;if(t){const s=this._groups;s[t]||(s[t]=new Set),s[t].add(e)}return this}delete(e,t=e.name){const s=this._groups[t];return!!s&&s.delete(e)}select(e,t){const s=this._groups[e.name];if(s){if(e.disabled)return;e.checked=!t||!0,e.tabIndex=0,e.focus(),s.forEach((s=>{e!==s&&(s.checked=t||!1,s.tabIndex=-1)}))}}navigate(e,t){const s=this.getSortedGroup(e),r=s.length;let n=s.indexOf(e);for(let e=0;e<r;e++){n=(n+t+r)%r;const e=s[n];if(!e.disabled)return e}return e}static get(e){return this._instances.get(e)||new t(e)}}t._instances=new WeakMap;export{e as N,t as R};
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
* https://www.npmjs.com/package/lit-html
|
|
22
22
|
* https://www.npmjs.com/package/lit-element
|
|
23
23
|
* https://www.npmjs.com/package/@lit/reactive-element
|
|
24
|
-
* https://www.npmjs.com/package/@floating-ui/core
|
|
25
24
|
* https://www.npmjs.com/package/@floating-ui/utils
|
|
25
|
+
* https://www.npmjs.com/package/@floating-ui/core
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
const n="cds",e=`\n a[href]:not(#start-sentinel, #end-sentinel), area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true],\n ${n}-accordion-item,\n ${n}-actionable-notification-button,\n ${n}-ai-label,\n ${n}-button,\n ${n}-breadcrumb-link,\n ${n}-checkbox,\n ${n}-code-snippet,\n ${n}-combo-box,\n ${n}-content-switcher-item,\n ${n}-copy-button,\n ${n}-table-header-row,\n ${n}-table-row,\n ${n}-table-toolbar-search,\n ${n}-date-picker-input,\n ${n}-dropdown,\n ${n}-icon-button,\n ${n}-input,\n ${n}-link,\n ${n}-number-input,\n ${n}-modal,\n ${n}-modal-close-button,\n ${n}-modal-footer-button,\n ${n}-multi-select,\n ${n}-inline-notification,\n ${n}-toast-notification,\n ${n}-overflow-menu,\n ${n}-overflow-menu-item,\n ${n}-page-sizes-select,\n ${n}-pages-select,\n ${n}-progress-step,\n ${n}-radio-button,\n ${n}-search,\n ${n}-slider,\n ${n}-slider-input,\n ${n}-structured-list,\n ${n}-tab,\n ${n}-filter-tag,\n ${n}-textarea,\n ${n}-text-input,\n ${n}-clickable-tile,\n ${n}-expandable-tile,\n ${n}-radio-tile,\n ${n}-selectable-tile,\n ${n}-toggle,\n ${n}-tooltip,\n ${n}-tooltip-definition,\n ${n}-tooltip-icon,\n ${n}-header-menu,\n ${n}-header-menu-button,\n ${n}-header-menu-item,\n ${n}-header-name,\n ${n}-header-nav-item,\n ${n}-side-nav-link,\n ${n}-side-nav-menu,\n ${n}-side-nav-menu-item,\n ${n}-slug\n`;export{n as p,e as s};
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
* https://www.npmjs.com/package/lit-html
|
|
22
22
|
* https://www.npmjs.com/package/lit-element
|
|
23
23
|
* https://www.npmjs.com/package/@lit/reactive-element
|
|
24
|
-
* https://www.npmjs.com/package/@floating-ui/core
|
|
25
24
|
* https://www.npmjs.com/package/@floating-ui/utils
|
|
25
|
+
* https://www.npmjs.com/package/@floating-ui/core
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
var t;!function(t){t.REGULAR="",t.LIGHT="light"}(t||(t={}));export{t as F};
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
* https://www.npmjs.com/package/lit-html
|
|
22
22
|
* https://www.npmjs.com/package/lit-element
|
|
23
23
|
* https://www.npmjs.com/package/@lit/reactive-element
|
|
24
|
-
* https://www.npmjs.com/package/@floating-ui/core
|
|
25
24
|
* https://www.npmjs.com/package/@floating-ui/utils
|
|
25
|
+
* https://www.npmjs.com/package/@floating-ui/core
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
var i;!function(i){i.NO_ERROR="",i.ERROR_REQUIRED="required"}(i||(i={}));const t=t=>class extends t{_getValidityMessage(t){return{[i.NO_ERROR]:"",[i.ERROR_REQUIRED]:this.requiredValidityMessage}[t]}_testValidity(){const{required:t,value:e}=this;return t&&!e?i.ERROR_REQUIRED:i.NO_ERROR}checkValidity(){const t=this._testValidity();return t!==i.NO_ERROR?(this.dispatchEvent(new CustomEvent("invalid",{bubbles:!1,cancelable:!0,composed:!1}))&&(this.invalid=!0,this.validityMessage=this._getValidityMessage(t)),!1):(this.invalid=!1,this.validityMessage="",!0)}setCustomValidity(i){this.invalid=Boolean(i),this.validityMessage=i}};export{t as V};
|