wcs-core 2.10.0 → 2.12.1
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/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{popper-5777994b.js → popper-8cf375ec.js} +130 -71
- package/dist/cjs/wcs-accordion-content.cjs.entry.js +19 -0
- package/dist/cjs/wcs-accordion-header.cjs.entry.js +16 -0
- package/dist/cjs/wcs-accordion-panel.cjs.entry.js +31 -0
- package/dist/cjs/wcs-accordion.cjs.entry.js +36 -0
- package/dist/cjs/wcs-button.cjs.entry.js +1 -1
- package/dist/cjs/wcs-com-nav-category.cjs.entry.js +1 -1
- package/dist/cjs/wcs-com-nav-submenu.cjs.entry.js +2 -2
- package/dist/cjs/wcs-com-nav.cjs.entry.js +24 -2
- package/dist/cjs/wcs-dropdown.cjs.entry.js +4 -2
- package/dist/cjs/wcs-galactic-menu.cjs.entry.js +1 -1
- package/dist/cjs/wcs-horizontal-stepper.cjs.entry.js +13 -10
- package/dist/cjs/wcs-mat-icon.cjs.entry.js +1 -1
- package/dist/cjs/wcs-modal.cjs.entry.js +6 -2
- package/dist/cjs/wcs-select_2.cjs.entry.js +2790 -2577
- package/dist/cjs/wcs-tooltip.cjs.entry.js +11 -4
- package/dist/cjs/wcs.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/accordion/accordion.js +38 -0
- package/dist/collection/components/accordion-content/accordion-content.css +4 -0
- package/dist/collection/components/accordion-content/accordion-content.js +15 -0
- package/dist/collection/components/accordion-header/accordion-header.js +9 -0
- package/dist/collection/components/accordion-panel/accordion-panel.css +35 -0
- package/dist/collection/components/accordion-panel/accordion-panel.js +89 -0
- package/dist/collection/components/button/button.css +12 -4
- package/dist/collection/components/com-nav/com-nav.css +68 -10
- package/dist/collection/components/com-nav/com-nav.js +34 -5
- package/dist/collection/components/com-nav-category/com-nav-category.css +70 -45
- package/dist/collection/components/com-nav-submenu/com-nav-submenu.css +123 -72
- package/dist/collection/components/com-nav-submenu/com-nav-submenu.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +3 -1
- package/dist/collection/components/horizontal-stepper/horizontal-stepper.js +14 -11
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/mat-icon/mat-icon.css +3 -1
- package/dist/collection/components/modal/modal.css +16 -29
- package/dist/collection/components/modal/modal.js +25 -4
- package/dist/collection/components/select/select.js +2 -0
- package/dist/collection/components/tooltip/tooltip.js +28 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{popper-5f42e560.js → popper-548df79b.js} +130 -71
- package/dist/esm/wcs-accordion-content.entry.js +15 -0
- package/dist/esm/wcs-accordion-header.entry.js +12 -0
- package/dist/esm/wcs-accordion-panel.entry.js +27 -0
- package/dist/esm/wcs-accordion.entry.js +32 -0
- package/dist/esm/wcs-button.entry.js +1 -1
- package/dist/esm/wcs-com-nav-category.entry.js +1 -1
- package/dist/esm/wcs-com-nav-submenu.entry.js +2 -2
- package/dist/esm/wcs-com-nav.entry.js +25 -3
- package/dist/esm/wcs-dropdown.entry.js +4 -2
- package/dist/esm/wcs-galactic-menu.entry.js +1 -1
- package/dist/esm/wcs-horizontal-stepper.entry.js +13 -10
- package/dist/esm/wcs-mat-icon.entry.js +1 -1
- package/dist/esm/wcs-modal.entry.js +6 -2
- package/dist/esm/wcs-select_2.entry.js +2790 -2577
- package/dist/esm/wcs-tooltip.entry.js +11 -4
- package/dist/esm/wcs.js +1 -1
- package/dist/types/components/accordion/accordion.d.ts +12 -0
- package/dist/types/components/accordion-content/accordion-content.d.ts +3 -0
- package/dist/types/components/accordion-header/accordion-header.d.ts +3 -0
- package/dist/types/components/accordion-panel/accordion-panel.d.ts +8 -0
- package/dist/types/components/com-nav/com-nav.d.ts +7 -0
- package/dist/types/components/input/input-interface.d.ts +1 -1
- package/dist/types/components/modal/modal.d.ts +4 -0
- package/dist/types/components/tooltip/tooltip.d.ts +12 -0
- package/dist/types/components.d.ts +72 -0
- package/dist/wcs/p-055c20de.entry.js +1 -0
- package/dist/wcs/p-0bb5f03a.entry.js +1 -0
- package/dist/wcs/p-19e6600c.entry.js +15 -0
- package/dist/wcs/p-2507b398.entry.js +1 -0
- package/dist/wcs/p-4f15e5f6.entry.js +1 -0
- package/dist/wcs/{p-ecbe5165.entry.js → p-600d4d99.entry.js} +2 -2
- package/dist/wcs/{p-22813c8e.entry.js → p-66e74651.entry.js} +1 -1
- package/dist/wcs/p-706d195a.entry.js +1 -0
- package/dist/wcs/{p-4e9e226d.entry.js → p-b69840d6.entry.js} +1 -1
- package/dist/wcs/p-c295cfca.entry.js +1 -0
- package/dist/wcs/p-cf77e1d9.entry.js +1 -0
- package/dist/wcs/p-d45c7c63.entry.js +1 -0
- package/dist/wcs/p-df5baf36.entry.js +1 -0
- package/dist/wcs/p-e4fdcd1f.js +1 -0
- package/dist/wcs/{p-ff6d0dfd.entry.js → p-f00ef24c.entry.js} +1 -1
- package/dist/wcs/p-f43213f5.entry.js +1 -0
- package/dist/wcs/wcs.esm.js +1 -1
- package/package.json +9 -5
- package/CHANGELOG.md +0 -278
- package/dist/wcs/p-1f5aed36.entry.js +0 -1
- package/dist/wcs/p-7c26f650.entry.js +0 -1
- package/dist/wcs/p-8864a491.entry.js +0 -1
- package/dist/wcs/p-94a31f64.entry.js +0 -1
- package/dist/wcs/p-b5ffbea8.entry.js +0 -1
- package/dist/wcs/p-c7d6d3e1.entry.js +0 -15
- package/dist/wcs/p-d3c9a644.js +0 -1
- package/dist/wcs/p-db68379f.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{r as n,h as t,H as e,g as o}from"./p-f46e6c3c.js";import{a as i,c as r}from"./p-
|
|
1
|
+
import{r as n,h as t,H as e,g as o}from"./p-f46e6c3c.js";import{a as i,c as r}from"./p-e4fdcd1f.js";
|
|
2
2
|
/**!
|
|
3
3
|
* tippy.js v6.3.7
|
|
4
4
|
* (c) 2017-2021 atomiks
|
|
5
5
|
* MIT License
|
|
6
|
-
*/var u={passive:!0,capture:!0},a=function(){return document.body};function c(n,t,e){if(Array.isArray(n)){var o=n[t];return null==o?Array.isArray(e)?e[t]:e:o}return n}function f(n,t){var e={}.toString.call(n);return 0===e.indexOf("[object")&&e.indexOf(t+"]")>-1}function s(n,t){return"function"==typeof n?n.apply(void 0,t):n}function d(n,t){return 0===t?n:function(o){clearTimeout(e),e=setTimeout((function(){n(o)}),t)};var e}function p(n){return[].concat(n)}function l(n,t){-1===n.indexOf(t)&&n.push(t)}function v(n){return[].slice.call(n)}function m(n){return Object.keys(n).reduce((function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t}),{})}function h(){return document.createElement("div")}function b(n){return["Element","Fragment"].some((function(t){return f(n,t)}))}function y(n,t){n.forEach((function(n){n&&(n.style.transitionDuration=t+"ms")}))}function g(n,t){n.forEach((function(n){n&&n.setAttribute("data-state",t)}))}function w(n,t,e){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){n[o](t,e)}))}function O(n,t){for(var e=t;e;){var o;if(n.contains(e))return!0;e=null==e.getRootNode||null==(o=e.getRootNode())?void 0:o.host}return!1}var j={isTouch:!1},T=0;function x(){j.isTouch||(j.isTouch=!0,window.performance&&document.addEventListener("mousemove",k))}function k(){var n=performance.now();n-T<20&&(j.isTouch=!1,document.removeEventListener("mousemove",k)),T=n}function C(){var n,t=document.activeElement;(n=t)&&n._tippy&&n._tippy.reference===n&&t.blur&&!t._tippy.state.isVisible&&t.blur()}var A=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),P=Object.assign({appendTo:a,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),S=Object.keys(P);function U(n){var t=(n.plugins||[]).reduce((function(t,e){var o,i=e.name;return i&&(t[i]=void 0!==n[i]?n[i]:null!=(o=P[i])?o:e.defaultValue),t}),{});return Object.assign({},n,t)}function H(n,t){var e=Object.assign({},t,{content:s(t.content,[n])},t.ignoreAttributes?{}:function(n,t){return(t?Object.keys(U(Object.assign({},P,{plugins:t}))):S).reduce((function(t,e){var o=(n.getAttribute("data-tippy-"+e)||"").trim();if(!o)return t;if("content"===e)t[e]=o;else try{t[e]=JSON.parse(o)}catch(n){t[e]=o}return t}),{})}(n,t.plugins));return e.aria=Object.assign({},P.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?t.interactive:e.aria.expanded,content:"auto"===e.aria.content?t.interactive?null:"describedby":e.aria.content},e}function W(n,t){n.innerHTML=t}function B(n){var t=h();return!0===n?t.className="tippy-arrow":(t.className="tippy-svg-arrow",b(n)?t.appendChild(n):W(t,n)),t}function E(n,t){b(t.content)?(W(n,""),n.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?W(n,t.content):n.textContent=t.content)}function F(n){var t=n.firstElementChild,e=v(t.children);return{box:t,content:e.find((function(n){return n.classList.contains("tippy-content")})),arrow:e.find((function(n){return n.classList.contains("tippy-arrow")||n.classList.contains("tippy-svg-arrow")})),backdrop:e.find((function(n){return n.classList.contains("tippy-backdrop")}))}}function M(n){var t=h(),e=h();e.className="tippy-box",e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var o=h();function i(e,o){var i=F(t),r=i.box,u=i.content,a=i.arrow;o.theme?r.setAttribute("data-theme",o.theme):r.removeAttribute("data-theme"),"string"==typeof o.animation?r.setAttribute("data-animation",o.animation):r.removeAttribute("data-animation"),o.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?r.setAttribute("role",o.role):r.removeAttribute("role"),e.content===o.content&&e.allowHTML===o.allowHTML||E(u,n.props),o.arrow?a?e.arrow!==o.arrow&&(r.removeChild(a),r.appendChild(B(o.arrow))):r.appendChild(B(o.arrow)):a&&r.removeChild(a)}return o.className="tippy-content",o.setAttribute("data-state","hidden"),E(o,n.props),t.appendChild(e),e.appendChild(o),i(n.props,n.props),{popper:t,onUpdate:i}}M.$$tippy=!0;var D=1,L=[],R=[];function q(n,t){var e,o,i,b,T,x,k,C,S=H(n,Object.assign({},P,U(m(t)))),W=!1,B=!1,E=!1,M=!1,q=[],I=d(gn,S.interactiveDebounce),N=D++,$=(C=S.plugins).filter((function(n,t){return C.indexOf(n)===t})),z={id:N,reference:n,popper:h(),popperInstance:null,props:S,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:$,clearDelayTimeouts:function(){clearTimeout(e),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(!z.state.isDestroyed){rn("onBeforeUpdate",[z,t]),bn();var e=z.props,o=H(n,Object.assign({},e,m(t),{ignoreAttributes:!0}));z.props=o,hn(),e.interactiveDebounce!==o.interactiveDebounce&&(cn(),I=d(gn,o.interactiveDebounce)),e.triggerTarget&&!o.triggerTarget?p(e.triggerTarget).forEach((function(n){n.removeAttribute("aria-expanded")})):o.triggerTarget&&n.removeAttribute("aria-expanded"),an(),on(),_&&_(e,o),z.popperInstance&&(Tn(),kn().forEach((function(n){requestAnimationFrame(n._tippy.popperInstance.forceUpdate)}))),rn("onAfterUpdate",[z,t])}},setContent:function(n){z.setProps({content:n})},show:function(){var n=z.state.isVisible,t=z.state.isDestroyed,e=!z.state.isEnabled,o=j.isTouch&&!z.props.touch,i=c(z.props.duration,0,P.duration);if(!(n||t||e||o||Z().hasAttribute("disabled")||(rn("onShow",[z],!1),!1===z.props.onShow(z)))){if(z.state.isVisible=!0,Y()&&(V.style.visibility="visible"),on(),pn(),z.state.isMounted||(V.style.transition="none"),Y()){var r=tn();y([r.box,r.content],0)}var u,f,d;x=function(){var n;if(z.state.isVisible&&!M){if(M=!0,V.style.transition=z.props.moveTransition,Y()&&z.props.animation){var t=tn(),e=t.box,o=t.content;y([e,o],i),g([e,o],"visible")}un(),an(),l(R,z),null==(n=z.popperInstance)||n.forceUpdate(),rn("onMount",[z]),z.props.animation&&Y()&&function(n){vn(n,(function(){z.state.isShown=!0,rn("onShown",[z])}))}(i)}},f=z.props.appendTo,d=Z(),(u=z.props.interactive&&f===a||"parent"===f?d.parentNode:s(f,[d])).contains(V)||u.appendChild(V),z.state.isMounted=!0,Tn()}},hide:function(){var n=!z.state.isVisible,t=z.state.isDestroyed,e=!z.state.isEnabled,o=c(z.props.duration,1,P.duration);if(!(n||t||e)&&(rn("onHide",[z],!1),!1!==z.props.onHide(z))){if(z.state.isVisible=!1,z.state.isShown=!1,M=!1,W=!1,Y()&&(V.style.visibility="hidden"),cn(),ln(),on(!0),Y()){var i=tn(),r=i.box,u=i.content;z.props.animation&&(y([r,u],o),g([r,u],"hidden"))}un(),an(),z.props.animation?Y()&&function(n,t){vn(n,(function(){!z.state.isVisible&&V.parentNode&&V.parentNode.contains(V)&&t()}))}(o,z.unmount):z.unmount()}},hideWithInteractivity:function(n){nn().addEventListener("mousemove",I),l(L,I),I(n)},enable:function(){z.state.isEnabled=!0},disable:function(){z.hide(),z.state.isEnabled=!1},unmount:function(){z.state.isVisible&&z.hide(),z.state.isMounted&&(xn(),kn().forEach((function(n){n._tippy.unmount()})),V.parentNode&&V.parentNode.removeChild(V),R=R.filter((function(n){return n!==z})),z.state.isMounted=!1,rn("onHidden",[z]))},destroy:function(){z.state.isDestroyed||(z.clearDelayTimeouts(),z.unmount(),bn(),delete n._tippy,z.state.isDestroyed=!0,rn("onDestroy",[z]))}};if(!S.render)return z;var J=S.render(z),V=J.popper,_=J.onUpdate;V.setAttribute("data-tippy-root",""),V.id="tippy-"+z.id,z.popper=V,n._tippy=z,V._tippy=z;var G=$.map((function(n){return n.fn(z)})),K=n.hasAttribute("aria-expanded");return hn(),an(),on(),rn("onCreate",[z]),S.showOnCreate&&Cn(),V.addEventListener("mouseenter",(function(){z.props.interactive&&z.state.isVisible&&z.clearDelayTimeouts()})),V.addEventListener("mouseleave",(function(){z.props.interactive&&z.props.trigger.indexOf("mouseenter")>=0&&nn().addEventListener("mousemove",I)})),z;function Q(){var n=z.props.touch;return Array.isArray(n)?n:[n,0]}function X(){return"hold"===Q()[0]}function Y(){var n;return!(null==(n=z.props.render)||!n.$$tippy)}function Z(){return k||n}function nn(){var n,t,e=Z().parentNode;return e&&null!=(t=p(e)[0])&&null!=(n=t.ownerDocument)&&n.body?t.ownerDocument:document}function tn(){return F(V)}function en(n){return z.state.isMounted&&!z.state.isVisible||j.isTouch||b&&"focus"===b.type?0:c(z.props.delay,n?0:1,P.delay)}function on(n){void 0===n&&(n=!1),V.style.pointerEvents=z.props.interactive&&!n?"":"none",V.style.zIndex=""+z.props.zIndex}function rn(n,t,e){var o;void 0===e&&(e=!0),G.forEach((function(e){e[n]&&e[n].apply(e,t)})),e&&(o=z.props)[n].apply(o,t)}function un(){var t=z.props.aria;if(t.content){var e="aria-"+t.content,o=V.id;p(z.props.triggerTarget||n).forEach((function(n){var t=n.getAttribute(e);if(z.state.isVisible)n.setAttribute(e,t?t+" "+o:o);else{var i=t&&t.replace(o,"").trim();i?n.setAttribute(e,i):n.removeAttribute(e)}}))}}function an(){!K&&z.props.aria.expanded&&p(z.props.triggerTarget||n).forEach((function(n){z.props.interactive?n.setAttribute("aria-expanded",z.state.isVisible&&n===Z()?"true":"false"):n.removeAttribute("aria-expanded")}))}function cn(){nn().removeEventListener("mousemove",I),L=L.filter((function(n){return n!==I}))}function fn(t){if(!j.isTouch||!E&&"mousedown"!==t.type){var e=t.composedPath&&t.composedPath()[0]||t.target;if(!z.props.interactive||!O(V,e)){if(p(z.props.triggerTarget||n).some((function(n){return O(n,e)}))){if(j.isTouch)return;if(z.state.isVisible&&z.props.trigger.indexOf("click")>=0)return}else rn("onClickOutside",[z,t]);!0===z.props.hideOnClick&&(z.clearDelayTimeouts(),z.hide(),B=!0,setTimeout((function(){B=!1})),z.state.isMounted||ln())}}}function sn(){E=!0}function dn(){E=!1}function pn(){var n=nn();n.addEventListener("mousedown",fn,!0),n.addEventListener("touchend",fn,u),n.addEventListener("touchstart",dn,u),n.addEventListener("touchmove",sn,u)}function ln(){var n=nn();n.removeEventListener("mousedown",fn,!0),n.removeEventListener("touchend",fn,u),n.removeEventListener("touchstart",dn,u),n.removeEventListener("touchmove",sn,u)}function vn(n,t){var e=tn().box;function o(n){n.target===e&&(w(e,"remove",o),t())}if(0===n)return t();w(e,"remove",T),w(e,"add",o),T=o}function mn(t,e,o){void 0===o&&(o=!1),p(z.props.triggerTarget||n).forEach((function(n){n.addEventListener(t,e,o),q.push({node:n,eventType:t,handler:e,options:o})}))}function hn(){var n;X()&&(mn("touchstart",yn,{passive:!0}),mn("touchend",wn,{passive:!0})),(n=z.props.trigger,n.split(/\s+/).filter(Boolean)).forEach((function(n){if("manual"!==n)switch(mn(n,yn),n){case"mouseenter":mn("mouseleave",wn);break;case"focus":mn(A?"focusout":"blur",On);break;case"focusin":mn("focusout",On)}}))}function bn(){q.forEach((function(n){n.node.removeEventListener(n.eventType,n.handler,n.options)})),q=[]}function yn(n){var t,e=!1;if(z.state.isEnabled&&!jn(n)&&!B){var o="focus"===(null==(t=b)?void 0:t.type);b=n,k=n.currentTarget,an(),!z.state.isVisible&&f(n,"MouseEvent")&&L.forEach((function(t){return t(n)})),"click"===n.type&&(z.props.trigger.indexOf("mouseenter")<0||W)&&!1!==z.props.hideOnClick&&z.state.isVisible?e=!0:Cn(n),"click"===n.type&&(W=!e),e&&!o&&An(n)}}function gn(n){var t=n.target,e=Z().contains(t)||V.contains(t);"mousemove"===n.type&&e||function(n,t){var e=t.clientX,o=t.clientY;return n.every((function(n){var t=n.popperRect,i=n.popperState,r=n.props.interactiveBorder,u=i.placement.split("-")[0],a=i.modifiersData.offset;return!a||t.top-o+("bottom"===u?a.top.y:0)>r||o-t.bottom-("top"===u?a.bottom.y:0)>r||t.left-e+("right"===u?a.left.x:0)>r||e-t.right-("left"===u?a.right.x:0)>r}))}(kn().concat(V).map((function(n){var t,e=null==(t=n._tippy.popperInstance)?void 0:t.state;return e?{popperRect:n.getBoundingClientRect(),popperState:e,props:S}:null})).filter(Boolean),n)&&(cn(),An(n))}function wn(n){jn(n)||z.props.trigger.indexOf("click")>=0&&W||(z.props.interactive?z.hideWithInteractivity(n):An(n))}function On(n){z.props.trigger.indexOf("focusin")<0&&n.target!==Z()||z.props.interactive&&n.relatedTarget&&V.contains(n.relatedTarget)||An(n)}function jn(n){return!!j.isTouch&&X()!==n.type.indexOf("touch")>=0}function Tn(){xn();var t=z.props,e=t.popperOptions,o=t.placement,i=t.offset,u=t.getReferenceClientRect,a=t.moveTransition,c=Y()?F(V).arrow:null,f=u?{getBoundingClientRect:u,contextElement:u.contextElement||Z()}:n,s=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(n){var t=n.state;if(Y()){var e=tn().box;["placement","reference-hidden","escaped"].forEach((function(n){"placement"===n?e.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+n]?e.setAttribute("data-"+n,""):e.removeAttribute("data-"+n)})),t.attributes.popper={}}}}];Y()&&c&&s.push({name:"arrow",options:{element:c,padding:3}}),s.push.apply(s,(null==e?void 0:e.modifiers)||[]),z.popperInstance=r(f,V,Object.assign({},e,{placement:o,onFirstUpdate:x,modifiers:s}))}function xn(){z.popperInstance&&(z.popperInstance.destroy(),z.popperInstance=null)}function kn(){return v(V.querySelectorAll("[data-tippy-root]"))}function Cn(n){z.clearDelayTimeouts(),n&&rn("onTrigger",[z,n]),pn();var t=en(!0),o=Q(),i=o[1];j.isTouch&&"hold"===o[0]&&i&&(t=i),t?e=setTimeout((function(){z.show()}),t):z.show()}function An(n){if(z.clearDelayTimeouts(),rn("onUntrigger",[z,n]),z.state.isVisible){if(!(z.props.trigger.indexOf("mouseenter")>=0&&z.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(n.type)>=0&&W)){var t=en(!1);t?o=setTimeout((function(){z.state.isVisible&&z.hide()}),t):i=requestAnimationFrame((function(){z.hide()}))}}else ln()}}function I(n,t){void 0===t&&(t={});var e=P.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",x,u),window.addEventListener("blur",C);var o,i=Object.assign({},t,{plugins:e}),r=(o=n,b(o)?[o]:function(n){return f(n,"NodeList")}(o)?v(o):Array.isArray(o)?o:v(document.querySelectorAll(o))).reduce((function(n,t){var e=t&&q(t,i);return e&&n.push(e),n}),[]);return b(n)?r[0]:r}I.defaultProps=P,I.setDefaultProps=function(n){Object.keys(n).forEach((function(t){P[t]=n[t]}))},I.currentInput=j,Object.assign({},i,{effect:function(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow)}}),I.setDefaultProps({render:M});let N=class{constructor(t){n(this,t),this.position="bottom",this.interactive=!1,this.maxWidth=350,this.delay=0,this.duration=[300,250],this.trigger="mouseenter focus",this.theme="wcs"}componentWillLoad(){this.tippyInstance=I(document.getElementById(this.for),{theme:this.theme,allowHTML:!0,content:this.el.innerHTML,maxWidth:this.maxWidth,placement:this.position,delay:this.delay,duration:this.duration,interactive:this.interactive,trigger:this.trigger})}updateProps(){this.tippyInstance.setProps({interactive:this.interactive,placement:this.position,maxWidth:this.maxWidth,theme:this.theme,delay:this.delay,duration:this.duration,trigger:this.trigger})}updateTippyContent(){this.tippyInstance.setProps({content:this.el.innerHTML})}async hide(){this.tippyInstance.hide()}async show(){this.tippyInstance.show()}async disable(){this.tippyInstance.disable()}async enable(){this.tippyInstance.enable()}disconnectedCallback(){this.tippyInstance.destroy()}render(){return t(e,null,t("slot",{onSlotchange:()=>this.updateTippyContent()}))}get el(){return o(this)}static get watchers(){return{interactive:["updateProps"],position:["updateProps"],maxWidth:["updateProps"],theme:["updateProps"],delay:["updateProps"],duration:["updateProps"],trigger:["updateProps"]}}};N.style=":host{display:none}";export{N as wcs_tooltip}
|
|
6
|
+
*/var u={passive:!0,capture:!0},a=function(){return document.body};function c(n,t,e){if(Array.isArray(n)){var o=n[t];return null==o?Array.isArray(e)?e[t]:e:o}return n}function f(n,t){var e={}.toString.call(n);return 0===e.indexOf("[object")&&e.indexOf(t+"]")>-1}function s(n,t){return"function"==typeof n?n.apply(void 0,t):n}function d(n,t){return 0===t?n:function(o){clearTimeout(e),e=setTimeout((function(){n(o)}),t)};var e}function p(n){return[].concat(n)}function l(n,t){-1===n.indexOf(t)&&n.push(t)}function v(n){return[].slice.call(n)}function m(n){return Object.keys(n).reduce((function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t}),{})}function h(){return document.createElement("div")}function b(n){return["Element","Fragment"].some((function(t){return f(n,t)}))}function y(n,t){n.forEach((function(n){n&&(n.style.transitionDuration=t+"ms")}))}function g(n,t){n.forEach((function(n){n&&n.setAttribute("data-state",t)}))}function w(n,t,e){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){n[o](t,e)}))}function O(n,t){for(var e=t;e;){var o;if(n.contains(e))return!0;e=null==e.getRootNode||null==(o=e.getRootNode())?void 0:o.host}return!1}var T={isTouch:!1},j=0;function x(){T.isTouch||(T.isTouch=!0,window.performance&&document.addEventListener("mousemove",k))}function k(){var n=performance.now();n-j<20&&(T.isTouch=!1,document.removeEventListener("mousemove",k)),j=n}function C(){var n,t=document.activeElement;(n=t)&&n._tippy&&n._tippy.reference===n&&t.blur&&!t._tippy.state.isVisible&&t.blur()}var A=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),P=Object.assign({appendTo:a,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),S=Object.keys(P);function U(n){var t=(n.plugins||[]).reduce((function(t,e){var o,i=e.name;return i&&(t[i]=void 0!==n[i]?n[i]:null!=(o=P[i])?o:e.defaultValue),t}),{});return Object.assign({},n,t)}function F(n,t){var e=Object.assign({},t,{content:s(t.content,[n])},t.ignoreAttributes?{}:function(n,t){return(t?Object.keys(U(Object.assign({},P,{plugins:t}))):S).reduce((function(t,e){var o=(n.getAttribute("data-tippy-"+e)||"").trim();if(!o)return t;if("content"===e)t[e]=o;else try{t[e]=JSON.parse(o)}catch(n){t[e]=o}return t}),{})}(n,t.plugins));return e.aria=Object.assign({},P.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?t.interactive:e.aria.expanded,content:"auto"===e.aria.content?t.interactive?null:"describedby":e.aria.content},e}function H(n,t){n.innerHTML=t}function W(n){var t=h();return!0===n?t.className="tippy-arrow":(t.className="tippy-svg-arrow",b(n)?t.appendChild(n):H(t,n)),t}function B(n,t){b(t.content)?(H(n,""),n.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?H(n,t.content):n.textContent=t.content)}function E(n){var t=n.firstElementChild,e=v(t.children);return{box:t,content:e.find((function(n){return n.classList.contains("tippy-content")})),arrow:e.find((function(n){return n.classList.contains("tippy-arrow")||n.classList.contains("tippy-svg-arrow")})),backdrop:e.find((function(n){return n.classList.contains("tippy-backdrop")}))}}function M(n){var t=h(),e=h();e.className="tippy-box",e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var o=h();function i(e,o){var i=E(t),r=i.box,u=i.content,a=i.arrow;o.theme?r.setAttribute("data-theme",o.theme):r.removeAttribute("data-theme"),"string"==typeof o.animation?r.setAttribute("data-animation",o.animation):r.removeAttribute("data-animation"),o.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?r.setAttribute("role",o.role):r.removeAttribute("role"),e.content===o.content&&e.allowHTML===o.allowHTML||B(u,n.props),o.arrow?a?e.arrow!==o.arrow&&(r.removeChild(a),r.appendChild(W(o.arrow))):r.appendChild(W(o.arrow)):a&&r.removeChild(a)}return o.className="tippy-content",o.setAttribute("data-state","hidden"),B(o,n.props),t.appendChild(e),e.appendChild(o),i(n.props,n.props),{popper:t,onUpdate:i}}M.$$tippy=!0;var D=1,L=[],R=[];function q(n,t){var e,o,i,b,j,x,k,C,S=F(n,Object.assign({},P,U(m(t)))),H=!1,W=!1,B=!1,M=!1,q=[],I=d(gn,S.interactiveDebounce),N=D++,$=(C=S.plugins).filter((function(n,t){return C.indexOf(n)===t})),z={id:N,reference:n,popper:h(),popperInstance:null,props:S,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:$,clearDelayTimeouts:function(){clearTimeout(e),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(!z.state.isDestroyed){rn("onBeforeUpdate",[z,t]),bn();var e=z.props,o=F(n,Object.assign({},e,m(t),{ignoreAttributes:!0}));z.props=o,hn(),e.interactiveDebounce!==o.interactiveDebounce&&(cn(),I=d(gn,o.interactiveDebounce)),e.triggerTarget&&!o.triggerTarget?p(e.triggerTarget).forEach((function(n){n.removeAttribute("aria-expanded")})):o.triggerTarget&&n.removeAttribute("aria-expanded"),an(),on(),_&&_(e,o),z.popperInstance&&(jn(),kn().forEach((function(n){requestAnimationFrame(n._tippy.popperInstance.forceUpdate)}))),rn("onAfterUpdate",[z,t])}},setContent:function(n){z.setProps({content:n})},show:function(){var n=z.state.isVisible,t=z.state.isDestroyed,e=!z.state.isEnabled,o=T.isTouch&&!z.props.touch,i=c(z.props.duration,0,P.duration);if(!(n||t||e||o||Z().hasAttribute("disabled")||(rn("onShow",[z],!1),!1===z.props.onShow(z)))){if(z.state.isVisible=!0,Y()&&(V.style.visibility="visible"),on(),pn(),z.state.isMounted||(V.style.transition="none"),Y()){var r=tn();y([r.box,r.content],0)}var u,f,d;x=function(){var n;if(z.state.isVisible&&!M){if(M=!0,V.style.transition=z.props.moveTransition,Y()&&z.props.animation){var t=tn(),e=t.box,o=t.content;y([e,o],i),g([e,o],"visible")}un(),an(),l(R,z),null==(n=z.popperInstance)||n.forceUpdate(),rn("onMount",[z]),z.props.animation&&Y()&&function(n){vn(n,(function(){z.state.isShown=!0,rn("onShown",[z])}))}(i)}},f=z.props.appendTo,d=Z(),(u=z.props.interactive&&f===a||"parent"===f?d.parentNode:s(f,[d])).contains(V)||u.appendChild(V),z.state.isMounted=!0,jn()}},hide:function(){var n=!z.state.isVisible,t=z.state.isDestroyed,e=!z.state.isEnabled,o=c(z.props.duration,1,P.duration);if(!(n||t||e)&&(rn("onHide",[z],!1),!1!==z.props.onHide(z))){if(z.state.isVisible=!1,z.state.isShown=!1,M=!1,H=!1,Y()&&(V.style.visibility="hidden"),cn(),ln(),on(!0),Y()){var i=tn(),r=i.box,u=i.content;z.props.animation&&(y([r,u],o),g([r,u],"hidden"))}un(),an(),z.props.animation?Y()&&function(n,t){vn(n,(function(){!z.state.isVisible&&V.parentNode&&V.parentNode.contains(V)&&t()}))}(o,z.unmount):z.unmount()}},hideWithInteractivity:function(n){nn().addEventListener("mousemove",I),l(L,I),I(n)},enable:function(){z.state.isEnabled=!0},disable:function(){z.hide(),z.state.isEnabled=!1},unmount:function(){z.state.isVisible&&z.hide(),z.state.isMounted&&(xn(),kn().forEach((function(n){n._tippy.unmount()})),V.parentNode&&V.parentNode.removeChild(V),R=R.filter((function(n){return n!==z})),z.state.isMounted=!1,rn("onHidden",[z]))},destroy:function(){z.state.isDestroyed||(z.clearDelayTimeouts(),z.unmount(),bn(),delete n._tippy,z.state.isDestroyed=!0,rn("onDestroy",[z]))}};if(!S.render)return z;var J=S.render(z),V=J.popper,_=J.onUpdate;V.setAttribute("data-tippy-root",""),V.id="tippy-"+z.id,z.popper=V,n._tippy=z,V._tippy=z;var G=$.map((function(n){return n.fn(z)})),K=n.hasAttribute("aria-expanded");return hn(),an(),on(),rn("onCreate",[z]),S.showOnCreate&&Cn(),V.addEventListener("mouseenter",(function(){z.props.interactive&&z.state.isVisible&&z.clearDelayTimeouts()})),V.addEventListener("mouseleave",(function(){z.props.interactive&&z.props.trigger.indexOf("mouseenter")>=0&&nn().addEventListener("mousemove",I)})),z;function Q(){var n=z.props.touch;return Array.isArray(n)?n:[n,0]}function X(){return"hold"===Q()[0]}function Y(){var n;return!(null==(n=z.props.render)||!n.$$tippy)}function Z(){return k||n}function nn(){var n,t,e=Z().parentNode;return e&&null!=(t=p(e)[0])&&null!=(n=t.ownerDocument)&&n.body?t.ownerDocument:document}function tn(){return E(V)}function en(n){return z.state.isMounted&&!z.state.isVisible||T.isTouch||b&&"focus"===b.type?0:c(z.props.delay,n?0:1,P.delay)}function on(n){void 0===n&&(n=!1),V.style.pointerEvents=z.props.interactive&&!n?"":"none",V.style.zIndex=""+z.props.zIndex}function rn(n,t,e){var o;void 0===e&&(e=!0),G.forEach((function(e){e[n]&&e[n].apply(e,t)})),e&&(o=z.props)[n].apply(o,t)}function un(){var t=z.props.aria;if(t.content){var e="aria-"+t.content,o=V.id;p(z.props.triggerTarget||n).forEach((function(n){var t=n.getAttribute(e);if(z.state.isVisible)n.setAttribute(e,t?t+" "+o:o);else{var i=t&&t.replace(o,"").trim();i?n.setAttribute(e,i):n.removeAttribute(e)}}))}}function an(){!K&&z.props.aria.expanded&&p(z.props.triggerTarget||n).forEach((function(n){z.props.interactive?n.setAttribute("aria-expanded",z.state.isVisible&&n===Z()?"true":"false"):n.removeAttribute("aria-expanded")}))}function cn(){nn().removeEventListener("mousemove",I),L=L.filter((function(n){return n!==I}))}function fn(t){if(!T.isTouch||!B&&"mousedown"!==t.type){var e=t.composedPath&&t.composedPath()[0]||t.target;if(!z.props.interactive||!O(V,e)){if(p(z.props.triggerTarget||n).some((function(n){return O(n,e)}))){if(T.isTouch)return;if(z.state.isVisible&&z.props.trigger.indexOf("click")>=0)return}else rn("onClickOutside",[z,t]);!0===z.props.hideOnClick&&(z.clearDelayTimeouts(),z.hide(),W=!0,setTimeout((function(){W=!1})),z.state.isMounted||ln())}}}function sn(){B=!0}function dn(){B=!1}function pn(){var n=nn();n.addEventListener("mousedown",fn,!0),n.addEventListener("touchend",fn,u),n.addEventListener("touchstart",dn,u),n.addEventListener("touchmove",sn,u)}function ln(){var n=nn();n.removeEventListener("mousedown",fn,!0),n.removeEventListener("touchend",fn,u),n.removeEventListener("touchstart",dn,u),n.removeEventListener("touchmove",sn,u)}function vn(n,t){var e=tn().box;function o(n){n.target===e&&(w(e,"remove",o),t())}if(0===n)return t();w(e,"remove",j),w(e,"add",o),j=o}function mn(t,e,o){void 0===o&&(o=!1),p(z.props.triggerTarget||n).forEach((function(n){n.addEventListener(t,e,o),q.push({node:n,eventType:t,handler:e,options:o})}))}function hn(){var n;X()&&(mn("touchstart",yn,{passive:!0}),mn("touchend",wn,{passive:!0})),(n=z.props.trigger,n.split(/\s+/).filter(Boolean)).forEach((function(n){if("manual"!==n)switch(mn(n,yn),n){case"mouseenter":mn("mouseleave",wn);break;case"focus":mn(A?"focusout":"blur",On);break;case"focusin":mn("focusout",On)}}))}function bn(){q.forEach((function(n){n.node.removeEventListener(n.eventType,n.handler,n.options)})),q=[]}function yn(n){var t,e=!1;if(z.state.isEnabled&&!Tn(n)&&!W){var o="focus"===(null==(t=b)?void 0:t.type);b=n,k=n.currentTarget,an(),!z.state.isVisible&&f(n,"MouseEvent")&&L.forEach((function(t){return t(n)})),"click"===n.type&&(z.props.trigger.indexOf("mouseenter")<0||H)&&!1!==z.props.hideOnClick&&z.state.isVisible?e=!0:Cn(n),"click"===n.type&&(H=!e),e&&!o&&An(n)}}function gn(n){var t=n.target,e=Z().contains(t)||V.contains(t);"mousemove"===n.type&&e||function(n,t){var e=t.clientX,o=t.clientY;return n.every((function(n){var t=n.popperRect,i=n.popperState,r=n.props.interactiveBorder,u=i.placement.split("-")[0],a=i.modifiersData.offset;return!a||t.top-o+("bottom"===u?a.top.y:0)>r||o-t.bottom-("top"===u?a.bottom.y:0)>r||t.left-e+("right"===u?a.left.x:0)>r||e-t.right-("left"===u?a.right.x:0)>r}))}(kn().concat(V).map((function(n){var t,e=null==(t=n._tippy.popperInstance)?void 0:t.state;return e?{popperRect:n.getBoundingClientRect(),popperState:e,props:S}:null})).filter(Boolean),n)&&(cn(),An(n))}function wn(n){Tn(n)||z.props.trigger.indexOf("click")>=0&&H||(z.props.interactive?z.hideWithInteractivity(n):An(n))}function On(n){z.props.trigger.indexOf("focusin")<0&&n.target!==Z()||z.props.interactive&&n.relatedTarget&&V.contains(n.relatedTarget)||An(n)}function Tn(n){return!!T.isTouch&&X()!==n.type.indexOf("touch")>=0}function jn(){xn();var t=z.props,e=t.popperOptions,o=t.placement,i=t.offset,u=t.getReferenceClientRect,a=t.moveTransition,c=Y()?E(V).arrow:null,f=u?{getBoundingClientRect:u,contextElement:u.contextElement||Z()}:n,s=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(n){var t=n.state;if(Y()){var e=tn().box;["placement","reference-hidden","escaped"].forEach((function(n){"placement"===n?e.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+n]?e.setAttribute("data-"+n,""):e.removeAttribute("data-"+n)})),t.attributes.popper={}}}}];Y()&&c&&s.push({name:"arrow",options:{element:c,padding:3}}),s.push.apply(s,(null==e?void 0:e.modifiers)||[]),z.popperInstance=r(f,V,Object.assign({},e,{placement:o,onFirstUpdate:x,modifiers:s}))}function xn(){z.popperInstance&&(z.popperInstance.destroy(),z.popperInstance=null)}function kn(){return v(V.querySelectorAll("[data-tippy-root]"))}function Cn(n){z.clearDelayTimeouts(),n&&rn("onTrigger",[z,n]),pn();var t=en(!0),o=Q(),i=o[1];T.isTouch&&"hold"===o[0]&&i&&(t=i),t?e=setTimeout((function(){z.show()}),t):z.show()}function An(n){if(z.clearDelayTimeouts(),rn("onUntrigger",[z,n]),z.state.isVisible){if(!(z.props.trigger.indexOf("mouseenter")>=0&&z.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(n.type)>=0&&H)){var t=en(!1);t?o=setTimeout((function(){z.state.isVisible&&z.hide()}),t):i=requestAnimationFrame((function(){z.hide()}))}}else ln()}}function I(n,t){void 0===t&&(t={});var e=P.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",x,u),window.addEventListener("blur",C);var o,i=Object.assign({},t,{plugins:e}),r=(o=n,b(o)?[o]:function(n){return f(n,"NodeList")}(o)?v(o):Array.isArray(o)?o:v(document.querySelectorAll(o))).reduce((function(n,t){var e=t&&q(t,i);return e&&n.push(e),n}),[]);return b(n)?r[0]:r}I.defaultProps=P,I.setDefaultProps=function(n){Object.keys(n).forEach((function(t){P[t]=n[t]}))},I.currentInput=T,Object.assign({},i,{effect:function(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow)}}),I.setDefaultProps({render:M});let N=class{constructor(t){n(this,t),this.position="bottom",this.interactive=!1,this.maxWidth=350,this.delay=0,this.duration=[300,250],this.trigger="mouseenter focus",this.theme="wcs"}componentWillLoad(){this.tippyInstance=I(document.getElementById(this.for),{theme:this.theme,allowHTML:!0,content:this.getTooltipContentFromPropAndSlot(),maxWidth:this.maxWidth,placement:this.position,delay:this.delay,duration:this.duration,interactive:this.interactive,trigger:this.trigger})}getTooltipContentFromPropAndSlot(){return this.content?this.content+this.el.innerHTML:this.el.innerHTML}updateProps(){this.tippyInstance.setProps({interactive:this.interactive,placement:this.position,maxWidth:this.maxWidth,theme:this.theme,delay:this.delay,duration:this.duration,trigger:this.trigger})}updateTippyContent(){this.tippyInstance.setProps({content:this.getTooltipContentFromPropAndSlot()})}async hide(){this.tippyInstance.hide()}async show(){this.tippyInstance.show()}async disable(){this.tippyInstance.disable()}async enable(){this.tippyInstance.enable()}disconnectedCallback(){this.tippyInstance.destroy()}render(){return t(e,null,t("slot",{onSlotchange:()=>this.updateTippyContent()}))}get el(){return o(this)}static get watchers(){return{interactive:["updateProps"],position:["updateProps"],maxWidth:["updateProps"],theme:["updateProps"],delay:["updateProps"],duration:["updateProps"],trigger:["updateProps"],content:["updateTippyContent"]}}};N.style=":host{display:none}";export{N as wcs_tooltip}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,H as e}from"./p-f46e6c3c.js";let i=class{constructor(s){t(this,s),this.size="m",this.family="filled"}componentWillLoad(){this.onFamilyChange()}componentDidLoad(){this.appendMaterialStylesheet()}appendMaterialStylesheet(){let t=document.querySelector(`link[href="${this.familyFile}"]`);t||(t=document.createElement("link"),t.setAttribute("rel","stylesheet"),t.setAttribute("href",this.familyFile),document.head.appendChild(t))}onFamilyChange(){switch(this.familyFile="https://fonts.googleapis.com/icon?family=",this.family){case"filled":this.familyFile+="Material+Icons",this.familyClass="material-icons";break;case"outlined":this.familyFile+="Material+Icons+Outlined",this.familyClass="material-icons-outlined";break;case"twotone":this.familyFile+="Material+Icons+Two+Tone",this.familyClass="material-icons-two-tone";break;case"rounded":this.familyFile+="Material+Icons+Round",this.familyClass="material-icons-round";break;case"sharp":this.familyFile+="Material+Icons+Sharp",this.familyClass="material-icons-sharp"}this.appendMaterialStylesheet()}render(){return s(e,null,s("link",{rel:"stylesheet",type:"text/css",href:this.familyFile}),s("i",{class:this.familyClass+" size-"+this.size},this.icon))}static get watchers(){return{family:["onFamilyChange"]}}};i.style=":host{display:
|
|
1
|
+
import{r as t,h as s,H as e}from"./p-f46e6c3c.js";let i=class{constructor(s){t(this,s),this.size="m",this.family="filled"}componentWillLoad(){this.onFamilyChange()}componentDidLoad(){this.appendMaterialStylesheet()}appendMaterialStylesheet(){let t=document.querySelector(`link[href="${this.familyFile}"]`);t||(t=document.createElement("link"),t.setAttribute("rel","stylesheet"),t.setAttribute("href",this.familyFile),document.head.appendChild(t))}onFamilyChange(){switch(this.familyFile="https://fonts.googleapis.com/icon?family=",this.family){case"filled":this.familyFile+="Material+Icons",this.familyClass="material-icons";break;case"outlined":this.familyFile+="Material+Icons+Outlined",this.familyClass="material-icons-outlined";break;case"twotone":this.familyFile+="Material+Icons+Two+Tone",this.familyClass="material-icons-two-tone";break;case"rounded":this.familyFile+="Material+Icons+Round",this.familyClass="material-icons-round";break;case"sharp":this.familyFile+="Material+Icons+Sharp",this.familyClass="material-icons-sharp"}this.appendMaterialStylesheet()}render(){return s(e,null,s("link",{rel:"stylesheet",type:"text/css",href:this.familyFile}),s("i",{class:this.familyClass+" size-"+this.size},this.icon))}static get watchers(){return{family:["onFamilyChange"]}}};i.style=":host{display:flex;flex-direction:column;justify-content:center}:host .size-s{font-size:18px}:host .size-m{font-size:24px}:host .size-l{font-size:36px}:host .size-xl{font-size:48px}";export{i as wcs_mat_icon}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as s,H as e}from"./p-f46e6c3c.js";let o=class{constructor(s){r(this,s)}render(){return s(e,{slot:"header"},s("slot",null))}};export{o as wcs_accordion_header}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o,H as e,g as i}from"./p-f46e6c3c.js";import{a as r}from"./p-cf4d7a83.js";import{c as a}from"./p-
|
|
1
|
+
import{r as t,h as o,H as e,g as i}from"./p-f46e6c3c.js";import{a as r}from"./p-cf4d7a83.js";import{c as a}from"./p-e4fdcd1f.js";let n=class{constructor(o){t(this,o),this.showPopoverMenu=!1}componentDidLoad(){this.menu=this.el.shadowRoot.getElementById("toggle-menu-icon"),this.tooltip=this.el.shadowRoot.getElementById("menu"),this.popper=a(this.menu,this.tooltip,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,8]}}]})}onWindowClickEvent(t){r(t,this.tooltip)||r(t,this.menu)||this.showPopoverMenu&&this.toogleMenu()}toogleMenu(){this.showPopoverMenu=!this.showPopoverMenu}componentDidRender(){this.popper&&this.popper.update()}render(){return o(e,null,o("span",null,this.text),o("wcs-mat-icon",{id:"toggle-menu-icon",icon:"more_horiz",size:"m",onClick:()=>{this.toogleMenu()}}),o("span",{id:"menu","data-show":this.showPopoverMenu},o("div",{id:"arrow","data-popper-arrow":!0}),o("slot",null)))}get el(){return i(this)}};n.style='#menu{background-color:var(--wcs-gray);color:white;display:none;padding:var(--wcs-padding)}#menu[data-show]{display:block;z-index:9999}#menu[data-popper-placement^=top]>#arrow{bottom:-4px}#menu[data-popper-placement^=bottom]>#arrow{top:-4px}#menu[data-popper-placement^=left]>#arrow{right:-4px}#menu[data-popper-placement^=right]>#arrow{left:-4px}:host{display:flex;align-items:center;height:32px;padding-left:var(--wcs-padding);background-color:var(--wcs-gray-light)}#toggle-menu-icon{cursor:pointer;padding:0 var(--wcs-padding);user-select:none}#arrow,#arrow::before{position:absolute;width:8px;height:8px;background:inherit}#arrow{visibility:hidden}#arrow::before{visibility:visible;content:"";transform:rotate(45deg)}';export{n as wcs_galactic_menu}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as s,H as n}from"./p-f46e6c3c.js";import{S as o}from"./p-7219c04b.js";let a=class{constructor(s){e(this,s),this.wcsOpenChange=t(this,"wcsOpenChange",7),this.open=!1}openChange(e){this.wcsOpenChange.emit(e)}async close(){this.open=!1}render(){return s(n,null,s("div",{class:"header",onClick:()=>this.open=!this.open},s("slot",{name:"header"}),s("div",{class:"header-action"},s("span",null,this.open?"Fermez":"Ouvrez"),s(o,{up:this.open}))),s("div",{class:"content"},s("slot",{name:"content"})))}static get watchers(){return{open:["openChange"]}}};a.style=":host{display:flex;flex-direction:column;cursor:pointer;margin-bottom:16px}:host .header{display:flex;align-items:center;justify-content:space-between;padding:14px 24px;border-radius:7px;font-weight:500;font-size:16px;color:var(--wcs-primary);background-color:var(--wcs-light)}:host .header-action{display:flex;align-items:center;user-select:none}:host .header-action .arrow{fill:var(--wcs-primary)}:host .content{display:none}:host([open]){margin-bottom:0}:host([open]) .content{display:block}";export{a as wcs_accordion_panel}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as c,H as r}from"./p-f46e6c3c.js";let t=class{constructor(c){s(this,c)}render(){return c(r,{slot:"content"},c("slot",null))}};t.style=":host{margin:calc(3 * var(--wcs-base-margin));display:block}";export{t as wcs_accordion_content}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as t,H as r,g as e}from"./p-f46e6c3c.js";let l=class{constructor(t){s(this,t),this.accordionPanels=[]}componentWillLoad(){this.accordionPanels=this.getAllAccordionPanelsFromHostElement()}wcsOpenChangeHandler(s){s.detail&&this.closeAllAccordionsExcept(s.target)}render(){return t(r,null,t("slot",null))}getAllAccordionPanelsFromHostElement(){return Array.from(this.el.children).filter((s=>"WCS-ACCORDION-PANEL"===s.tagName))}closeAllAccordionsExcept(s){this.accordionPanels.filter((t=>t!==s)).forEach((s=>s.close()))}get el(){return e(this)}};export{l as wcs_accordion}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t,r as s,c as i,H as e,g as a}from"./p-f46e6c3c.js";const r=({step:s,checkOnComplete:i,complete:e,passed:a,active:r,first:o,disable:l,onClick:c})=>t("div",{class:"graphic-step","data-first":o},o?null:t("wcs-progress-bar",{value:a?100:0}),t("wcs-button",{style:{backgroundColor:"white"},shape:"round",onClick:()=>c(s),mode:!r&&!e||s.disable?"stroked":"plain",disabled:l},n(s.button,i,e,r))),n=(s,i,e,a)=>{if(i&&e&&!a)return t("wcs-mat-icon",{size:"m",icon:"done",family:"outlined"});switch(s.kind){case"Icon":return t("wcs-mat-icon",{size:"m",icon:s.iconName,family:s.family?s.family:"outlined"});case"Text":return s.text}};let o=class{constructor(t){s(this,t),this.wcsHorizontalStepClick=i(this,"wcsHorizontalStepClick",7),this.currentStep=0,this.mode="nonLinear",this.buttonMode="stroked"}componentWillLoad(){if(this.internalCurrentStep=this.currentStep,this.steps.length<1)throw new Error("You must add at least one step")}onCurrentStepChange(t,s){if(void 0!==this.internalCurrentStep){const i=Math.abs(s-t);if(this.el.style.setProperty("--wcs-progress-bar-animation-duration",375/i+"ms"),t!==s)for(let e=0;e<i;e++)setTimeout((()=>{this.internalCurrentStep-=s-t>0?1:-1,e===i-1&&this.el.style.removeProperty("--wcs-progress-bar-animation-duration")}),e*(375/i))}}async previous(){this.navigateToIndex(this.internalCurrentStep-1,"backward")}async next(){this.navigateToIndex(this.internalCurrentStep+1,"forward")}navigateToIndex(t,s){var i,e;t>=0&&t<=this.steps.length-1&&((null===(i=this.steps[t])||void 0===i?void 0:i.complete)||(null===(e=this.steps[t])||void 0===e?void 0:e.disable)?this.navigateToIndex(t+("forward"===s?1:-1),s):this.currentStep=t)}render(){return t(e,null,t("div",{class:"steps"},this.steps.map(((s,i)=>t(r,{step:s,passed:i<=this.internalCurrentStep,checkOnComplete:this.checkOnComplete,complete:this.isComplete(s,i),active:i===this.internalCurrentStep,first:0===i,disable:this.isDisable(s,i),onClick:t=>this.wcsHorizontalStepClick.emit({step:t,index:i})})))),this.renderLabels())}isComplete(t,s){return s<=this.internalCurrentStep||t.complete}renderLabels(){return this.steps.map((t=>t.text)).every((t=>!t))?null:t("div",{class:"label-container"},this.steps.map(((s,i)=>t("div",{"data-first":0===i,"data-current":i===this.internalCurrentStep&&!s.disable,"data-disable":this.isDisable(s,i),"data-last":i===this.steps.length-1},t("span",null,s.text)))))}isDisable(t,s){return t.disable||"linear"===this.mode&&!this.isNextPossibleStep(s)&&this.internalCurrentStep<s}isNextPossibleStep(t){var s;return 0===t||((null===(s=this.steps[t-1])||void 0===s?void 0:s.disable)||this.previousStepIsCompleteAndNotActive(t)?this.isNextPossibleStep(t-1):this.internalCurrentStep===t-1)}previousStepIsCompleteAndNotActive(t){var s;return(null===(s=this.steps[t-1])||void 0===s?void 0:s.complete)&&t-1!==this.internalCurrentStep}get el(){return a(this)}static get watchers(){return{currentStep:["onCurrentStepChange"]}}};o.style=":host{display:block}:host .steps{display:flex;flex-direction:row;flex:1}:host .graphic-step{display:flex;flex-direction:row;flex:1;align-items:center}:host .graphic-step[data-first]{flex:0}:host wcs-progress-bar{--wcs-internal-progress-bar-border-radius:0;flex:1;margin:0 -1px}:host .label-container{justify-content:space-between;display:flex;flex-direction:row;margin-top:var(--wcs-base-margin)}:host .label-container>*{width:100%;text-align:center;flex:1;color:var(--wcs-text-medium);font-weight:500}:host .label-container>*[data-disable]{color:var(--wcs-text-light)}:host .label-container>*[data-current]{color:var(--wcs-primary)}:host .label-container>div[data-first]{margin-left:20px;text-align:left;flex:0.5}:host .label-container>div[data-first]>span{margin-left:-20px}:host .label-container>div[data-last]{margin-right:20px;text-align:right;flex:0.5}:host .label-container>div[data-last]>span{margin-right:-20px}";export{o as wcs_horizontal_stepper}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t="top",n="bottom",e="right",r="left",o=[t,n,e,r],i=o.reduce((function(t,n){return t.concat([n+"-start",n+"-end"])}),[]),a=[].concat(o,["auto"]).reduce((function(t,n){return t.concat([n,n+"-start",n+"-end"])}),[]),u=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function f(t){return t?(t.nodeName||"").toLowerCase():null}function c(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function p(t){return t instanceof c(t).Element||t instanceof Element}function d(t){return t instanceof c(t).HTMLElement||t instanceof HTMLElement}function s(t){return"undefined"!=typeof ShadowRoot&&(t instanceof c(t).ShadowRoot||t instanceof ShadowRoot)}const l={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var n=t.state;Object.keys(n.elements).forEach((function(t){var e=n.styles[t]||{},r=n.attributes[t]||{},o=n.elements[t];d(o)&&f(o)&&(Object.assign(o.style,e),Object.keys(r).forEach((function(t){var n=r[t];!1===n?o.removeAttribute(t):o.setAttribute(t,!0===n?"":n)})))}))},effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach((function(t){var r=n.elements[t],o=n.attributes[t]||{},i=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((function(t,n){return t[n]="",t}),{});d(r)&&f(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]};function v(t){return t.split("-")[0]}var b=Math.max,h=Math.min,y=Math.round;function m(t,n){void 0===n&&(n=!1);var e=t.getBoundingClientRect(),r=1,o=1;if(d(t)&&n){var i=t.offsetHeight,a=t.offsetWidth;a>0&&(r=y(e.width)/a||1),i>0&&(o=y(e.height)/i||1)}return{width:e.width/r,height:e.height/o,top:e.top/o,right:e.right/r,bottom:e.bottom/o,left:e.left/r,x:e.left/r,y:e.top/o}}function x(t){var n=m(t),e=t.offsetWidth,r=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:r}}function w(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&s(e)){var r=n;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function O(t){return c(t).getComputedStyle(t)}function g(t){return["table","td","th"].indexOf(f(t))>=0}function j(t){return((p(t)?t.ownerDocument:t.document)||window.document).documentElement}function M(t){return"html"===f(t)?t:t.assignedSlot||t.parentNode||(s(t)?t.host:null)||j(t)}function k(t){return d(t)&&"fixed"!==O(t).position?t.offsetParent:null}function E(t){for(var n=c(t),e=k(t);e&&g(e)&&"static"===O(e).position;)e=k(e);return e&&("html"===f(e)||"body"===f(e)&&"static"===O(e).position)?n:e||function(t){var n=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&d(t)&&"fixed"===O(t).position)return null;var e=M(t);for(s(e)&&(e=e.host);d(e)&&["html","body"].indexOf(f(e))<0;){var r=O(e);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||n&&"filter"===r.willChange||n&&r.filter&&"none"!==r.filter)return e;e=e.parentNode}return null}(t)||n}function q(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function A(t,n,e){return b(t,h(n,e))}function B(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function P(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}function R(t){return t.split("-")[1]}var S={top:"auto",right:"auto",bottom:"auto",left:"auto"};function W(o){var i,a=o.popper,u=o.popperRect,f=o.placement,p=o.variation,d=o.offsets,s=o.position,l=o.gpuAcceleration,v=o.adaptive,b=o.roundOffsets,h=o.isFixed,m=d.x,x=void 0===m?0:m,w=d.y,g=void 0===w?0:w,M="function"==typeof b?b({x,y:g}):{x,y:g};x=M.x,g=M.y;var k=d.hasOwnProperty("x"),q=d.hasOwnProperty("y"),A=r,B=t,P=window;if(v){var R=E(a),W="clientHeight",L="clientWidth";R===c(a)&&"static"!==O(R=j(a)).position&&"absolute"===s&&(W="scrollHeight",L="scrollWidth"),R=R,(f===t||(f===r||f===e)&&"end"===p)&&(B=n,g-=(h&&R===P&&P.visualViewport?P.visualViewport.height:R[W])-u.height,g*=l?1:-1),f!==r&&(f!==t&&f!==n||"end"!==p)||(A=e,x-=(h&&R===P&&P.visualViewport?P.visualViewport.width:R[L])-u.width,x*=l?1:-1)}var T,H=Object.assign({position:s},v&&S),I=!0===b?function(t){var n=t.y,e=window.devicePixelRatio||1;return{x:y(t.x*e)/e||0,y:y(n*e)/e||0}}({x,y:g}):{x,y:g};return x=I.x,g=I.y,Object.assign({},H,l?((T={})[B]=q?"0":"",T[A]=k?"0":"",T.transform=(P.devicePixelRatio||1)<=1?"translate("+x+"px, "+g+"px)":"translate3d("+x+"px, "+g+"px, 0)",T):((i={})[B]=q?g+"px":"",i[A]=k?x+"px":"",i.transform="",i))}var L={passive:!0},T={left:"right",right:"left",bottom:"top",top:"bottom"};function H(t){return t.replace(/left|right|bottom|top/g,(function(t){return T[t]}))}var I={start:"end",end:"start"};function z(t){return t.replace(/start|end/g,(function(t){return I[t]}))}function C(t){var n=c(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function D(t){return m(j(t)).left+C(t).scrollLeft}function F(t){var n=O(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function U(t){return["html","body","#document"].indexOf(f(t))>=0?t.ownerDocument.body:d(t)&&F(t)?t:U(M(t))}function V(t,n){var e;void 0===n&&(n=[]);var r=U(t),o=r===(null==(e=t.ownerDocument)?void 0:e.body),i=c(r),a=o?[i].concat(i.visualViewport||[],F(r)?r:[]):r,u=n.concat(a);return o?u:u.concat(V(M(a)))}function _(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function G(t,n){return"viewport"===n?_(function(t){var n=c(t),e=j(t),r=n.visualViewport,o=e.clientWidth,i=e.clientHeight,a=0,u=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,u=r.offsetTop)),{width:o,height:i,x:a+D(t),y:u}}(t)):p(n)?function(t){var n=m(t);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(n):_(function(t){var n,e=j(t),r=C(t),o=null==(n=t.ownerDocument)?void 0:n.body,i=b(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=b(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+D(t),f=-r.scrollTop;return"rtl"===O(o||e).direction&&(u+=b(e.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:f}}(j(t)))}function J(o){var i,a=o.reference,u=o.element,f=o.placement,c=f?v(f):null,p=f?R(f):null,d=a.x+a.width/2-u.width/2,s=a.y+a.height/2-u.height/2;switch(c){case t:i={x:d,y:a.y-u.height};break;case n:i={x:d,y:a.y+a.height};break;case e:i={x:a.x+a.width,y:s};break;case r:i={x:a.x-u.width,y:s};break;default:i={x:a.x,y:a.y}}var l=c?q(c):null;if(null!=l){var b="y"===l?"height":"width";switch(p){case"start":i[l]=i[l]-(a[b]/2-u[b]/2);break;case"end":i[l]=i[l]+(a[b]/2-u[b]/2)}}return i}function K(r,i){void 0===i&&(i={});var a=i.placement,u=void 0===a?r.placement:a,c=i.boundary,s=void 0===c?"clippingParents":c,l=i.rootBoundary,v=void 0===l?"viewport":l,y=i.elementContext,x=void 0===y?"popper":y,g=i.altBoundary,k=void 0!==g&&g,q=i.padding,A=void 0===q?0:q,R=B("number"!=typeof A?A:P(A,o)),S=r.rects.popper,W=r.elements[k?"popper"===x?"reference":"popper":x],L=function(t,n,e){var r="clippingParents"===n?function(t){var n=V(M(t)),e=["absolute","fixed"].indexOf(O(t).position)>=0&&d(t)?E(t):t;return p(e)?n.filter((function(t){return p(t)&&w(t,e)&&"body"!==f(t)})):[]}(t):[].concat(n),o=[].concat(r,[e]),i=o.reduce((function(n,e){var r=G(t,e);return n.top=b(r.top,n.top),n.right=h(r.right,n.right),n.bottom=h(r.bottom,n.bottom),n.left=b(r.left,n.left),n}),G(t,o[0]));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}(p(W)?W:W.contextElement||j(r.elements.popper),s,v),T=m(r.elements.reference),H=J({reference:T,element:S,strategy:"absolute",placement:u}),I=_(Object.assign({},S,H)),z="popper"===x?I:T,C={top:L.top-z.top+R.top,bottom:z.bottom-L.bottom+R.bottom,left:L.left-z.left+R.left,right:z.right-L.right+R.right},D=r.modifiersData.offset;if("popper"===x&&D){var F=D[u];Object.keys(C).forEach((function(r){var o=[e,n].indexOf(r)>=0?1:-1,i=[t,n].indexOf(r)>=0?"y":"x";C[r]+=F[i]*o}))}return C}function N(t,n){void 0===n&&(n={});var e=n.boundary,r=n.rootBoundary,u=n.padding,f=n.flipVariations,c=n.allowedAutoPlacements,p=void 0===c?a:c,d=R(n.placement),s=d?f?i:i.filter((function(t){return R(t)===d})):o,l=s.filter((function(t){return p.indexOf(t)>=0}));0===l.length&&(l=s);var b=l.reduce((function(n,o){return n[o]=K(t,{placement:o,boundary:e,rootBoundary:r,padding:u})[v(o)],n}),{});return Object.keys(b).sort((function(t,n){return b[t]-b[n]}))}function Q(t,n,e){return void 0===e&&(e={x:0,y:0}),{top:t.top-n.height-e.y,right:t.right-n.width+e.x,bottom:t.bottom-n.height+e.y,left:t.left-n.width-e.x}}function X(o){return[t,e,n,r].some((function(t){return o[t]>=0}))}function Y(t,n,e){void 0===e&&(e=!1);var r,o,i=d(n),a=d(n)&&function(t){var n=t.getBoundingClientRect(),e=y(n.width)/t.offsetWidth||1,r=y(n.height)/t.offsetHeight||1;return 1!==e||1!==r}(n),u=j(n),p=m(t,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&(("body"!==f(n)||F(u))&&(s=(r=n)!==c(r)&&d(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:C(r)),d(n)?((l=m(n,!0)).x+=n.clientLeft,l.y+=n.clientTop):u&&(l.x=D(u))),{x:p.left+s.scrollLeft-l.x,y:p.top+s.scrollTop-l.y,width:p.width,height:p.height}}function Z(t){var n=new Map,e=new Set,r=[];function o(t){e.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!e.has(t)){var r=n.get(t);r&&o(r)}})),r.push(t)}return t.forEach((function(t){n.set(t.name,t)})),t.forEach((function(t){e.has(t.name)||o(t)})),r}var $={placement:"bottom",modifiers:[],strategy:"absolute"};function tt(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function nt(t){void 0===t&&(t={});var n=t.defaultModifiers,e=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?$:r;return function(t,n,r){void 0===r&&(r=o);var i,a,f={placement:"bottom",orderedModifiers:[],options:Object.assign({},$,o),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},c=[],d=!1,s={state:f,setOptions:function(r){var i="function"==typeof r?r(f.options):r;l(),f.options=Object.assign({},o,f.options,i),f.scrollParents={reference:p(t)?V(t):t.contextElement?V(t.contextElement):[],popper:V(n)};var a,d,v=function(t){var n=Z(t);return u.reduce((function(t,e){return t.concat(n.filter((function(t){return t.phase===e})))}),[])}((a=[].concat(e,f.options.modifiers),d=a.reduce((function(t,n){var e=t[n.name];return t[n.name]=e?Object.assign({},e,n,{options:Object.assign({},e.options,n.options),data:Object.assign({},e.data,n.data)}):n,t}),{}),Object.keys(d).map((function(t){return d[t]}))));return f.orderedModifiers=v.filter((function(t){return t.enabled})),f.orderedModifiers.forEach((function(t){var n=t.options,e=t.effect;if("function"==typeof e){var r=e({state:f,name:t.name,instance:s,options:void 0===n?{}:n});c.push(r||function(){})}})),s.update()},forceUpdate:function(){if(!d){var t=f.elements,n=t.reference,e=t.popper;if(tt(n,e)){f.rects={reference:Y(n,E(e),"fixed"===f.options.strategy),popper:x(e)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach((function(t){return f.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<f.orderedModifiers.length;r++)if(!0!==f.reset){var o=f.orderedModifiers[r],i=o.fn,a=o.options;"function"==typeof i&&(f=i({state:f,options:void 0===a?{}:a,name:o.name,instance:s})||f)}else f.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(t){s.forceUpdate(),t(f)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(i())}))}))),a}),destroy:function(){l(),d=!0}};if(!tt(t,n))return s;function l(){c.forEach((function(t){return t()})),c=[]}return s.setOptions(r).then((function(t){!d&&r.onFirstUpdate&&r.onFirstUpdate(t)})),s}}var et=nt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,e=t.instance,r=t.options,o=r.scroll,i=void 0===o||o,a=r.resize,u=void 0===a||a,f=c(n.elements.popper),p=[].concat(n.scrollParents.reference,n.scrollParents.popper);return i&&p.forEach((function(t){t.addEventListener("scroll",e.update,L)})),u&&f.addEventListener("resize",e.update,L),function(){i&&p.forEach((function(t){t.removeEventListener("scroll",e.update,L)})),u&&f.removeEventListener("resize",e.update,L)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state;n.modifiersData[t.name]=J({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var n=t.state,e=t.options,r=e.gpuAcceleration,o=void 0===r||r,i=e.adaptive,a=void 0===i||i,u=e.roundOffsets,f=void 0===u||u,c={placement:v(n.placement),variation:R(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,W(Object.assign({},c,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:a,roundOffsets:f})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,W(Object.assign({},c,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},l,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(n){var o=n.state,i=n.name,u=n.options.offset,f=void 0===u?[0,0]:u,c=a.reduce((function(n,i){return n[i]=function(n,o,i){var a=v(n),u=[r,t].indexOf(a)>=0?-1:1,f="function"==typeof i?i(Object.assign({},o,{placement:n})):i,c=f[0],p=f[1];return c=c||0,p=(p||0)*u,[r,e].indexOf(a)>=0?{x:p,y:c}:{x:c,y:p}}(i,o.rects,f),n}),{}),p=c[o.placement],d=p.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=p.x,o.modifiersData.popperOffsets.y+=d),o.modifiersData[i]=c}},{name:"flip",enabled:!0,phase:"main",fn:function(o){var i=o.state,a=o.options,u=o.name;if(!i.modifiersData[u]._skip){for(var f=a.mainAxis,c=void 0===f||f,p=a.altAxis,d=void 0===p||p,s=a.fallbackPlacements,l=a.padding,b=a.boundary,h=a.rootBoundary,y=a.altBoundary,m=a.flipVariations,x=void 0===m||m,w=a.allowedAutoPlacements,O=i.options.placement,g=v(O),j=s||(g!==O&&x?function(t){if("auto"===v(t))return[];var n=H(t);return[z(t),n,z(n)]}(O):[H(O)]),M=[O].concat(j).reduce((function(t,n){return t.concat("auto"===v(n)?N(i,{placement:n,boundary:b,rootBoundary:h,padding:l,flipVariations:x,allowedAutoPlacements:w}):n)}),[]),k=i.rects.reference,E=i.rects.popper,q=new Map,A=!0,B=M[0],P=0;P<M.length;P++){var S=M[P],W=v(S),L="start"===R(S),T=[t,n].indexOf(W)>=0,I=T?"width":"height",C=K(i,{placement:S,boundary:b,rootBoundary:h,altBoundary:y,padding:l}),D=T?L?e:r:L?n:t;k[I]>E[I]&&(D=H(D));var F=H(D),U=[];if(c&&U.push(C[W]<=0),d&&U.push(C[D]<=0,C[F]<=0),U.every((function(t){return t}))){B=S,A=!1;break}q.set(S,U)}if(A)for(var V=function(t){var n=M.find((function(n){var e=q.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return B=n,"break"},_=x?3:1;_>0&&"break"!==V(_);_--);i.placement!==B&&(i.modifiersData[u]._skip=!0,i.placement=B,i.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(o){var i=o.state,a=o.options,u=o.name,f=a.mainAxis,c=void 0===f||f,p=a.altAxis,d=void 0!==p&&p,s=a.tether,l=void 0===s||s,y=a.tetherOffset,m=void 0===y?0:y,w=K(i,{boundary:a.boundary,rootBoundary:a.rootBoundary,padding:a.padding,altBoundary:a.altBoundary}),O=v(i.placement),g=R(i.placement),j=!g,M=q(O),k="x"===M?"y":"x",B=i.modifiersData.popperOffsets,P=i.rects.reference,S=i.rects.popper,W="function"==typeof m?m(Object.assign({},i.rects,{placement:i.placement})):m,L="number"==typeof W?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),T=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,H={x:0,y:0};if(B){if(c){var I,z="y"===M?t:r,C="y"===M?n:e,D="y"===M?"height":"width",F=B[M],U=F+w[z],V=F-w[C],_=l?-S[D]/2:0,G="start"===g?P[D]:S[D],J="start"===g?-S[D]:-P[D],N=i.elements.arrow,Q=l&&N?x(N):{width:0,height:0},X=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Y=X[z],Z=X[C],$=A(0,P[D],Q[D]),tt=j?P[D]/2-_-$-Y-L.mainAxis:G-$-Y-L.mainAxis,nt=j?-P[D]/2+_+$+Z+L.mainAxis:J+$+Z+L.mainAxis,et=i.elements.arrow&&E(i.elements.arrow),rt=null!=(I=null==T?void 0:T[M])?I:0,ot=F+nt-rt,it=A(l?h(U,F+tt-rt-(et?"y"===M?et.clientTop||0:et.clientLeft||0:0)):U,F,l?b(V,ot):V);B[M]=it,H[M]=it-F}if(d){var at,ut=B[k],ft="y"===k?"height":"width",ct=ut+w["x"===M?t:r],pt=ut-w["x"===M?n:e],dt=-1!==[t,r].indexOf(O),st=null!=(at=null==T?void 0:T[k])?at:0,lt=dt?ct:ut-P[ft]-S[ft]-st+L.altAxis,vt=dt?ut+P[ft]+S[ft]-st-L.altAxis:pt,bt=l&&dt?function(t,n,e){var r=A(t,n,e);return r>e?e:r}(lt,ut,vt):A(l?lt:ct,ut,l?vt:pt);B[k]=bt,H[k]=bt-ut}i.modifiersData[u]=H}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(i){var a,u=i.state,f=i.name,c=i.options,p=u.elements.arrow,d=u.modifiersData.popperOffsets,s=v(u.placement),l=q(s),b=[r,e].indexOf(s)>=0?"height":"width";if(p&&d){var h=function(t,n){return B("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:P(t,o))}(c.padding,u),y=x(p),m="y"===l?t:r,w="y"===l?n:e,O=u.rects.reference[b]+u.rects.reference[l]-d[l]-u.rects.popper[b],g=d[l]-u.rects.reference[l],j=E(p),M=j?"y"===l?j.clientHeight||0:j.clientWidth||0:0,k=M/2-y[b]/2+(O/2-g/2),R=A(h[m],k,M-y[b]-h[w]);u.modifiersData[f]=((a={})[l]=R,a.centerOffset=R-k,a)}},effect:function(t){var n=t.state,e=t.options.element,r=void 0===e?"[data-popper-arrow]":e;null!=r&&("string"!=typeof r||(r=n.elements.popper.querySelector(r)))&&w(n.elements.popper,r)&&(n.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var n=t.state,e=t.name,r=n.rects.reference,o=n.rects.popper,i=n.modifiersData.preventOverflow,a=K(n,{elementContext:"reference"}),u=K(n,{altBoundary:!0}),f=Q(a,r),c=Q(u,o,i),p=X(f),d=X(c);n.modifiersData[e]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:d},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":d})}}]});export{l as a,et as c}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as r,g as t}from"./p-f46e6c3c.js";import{h as i}from"./p-cf4d7a83.js";import{M as a}from"./p-16dfbae8.js";let o=class{constructor(r){e(this,r),this.type="button",this.disabled=!1,this.ripple=!0,this.shape="normal",this.mode="plain"}onClick(e){if(this.disabled&&e.stopImmediatePropagation(),"button"!==this.type&&i(this.el)){const r=this.el.closest("form");if(r){e.preventDefault();const t=window.document.createElement("button");t.type=this.type,t.style.display="none",r.appendChild(t),t.click(),t.remove()}}}componentDidLoad(){this.mdcRipple=new a(this.el.shadowRoot.querySelector(".wcs-inner-button"))}enabledRippleEffect(){this.mdcRipple.disabled=!1}disabledRippleEffect(){this.mdcRipple.disabled=!0}onRippleChange(){this.ripple?this.enabledRippleEffect():this.disabledRippleEffect()}render(){return r(void 0!==this.href?"a":"button",Object.assign({},void 0!==this.href?{href:this.href,role:"button"}:{type:this.type},{class:"wcs-inner-button"},!0===this.disabled?{disabled:!0}:null),r("slot",null))}get el(){return t(this)}static get watchers(){return{ripple:["onRippleChange"]}}};o.style='@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}:host{display:inline-block;--wcs-button-padding:calc(var(--wcs-padding) / 2) var(--wcs-padding);--wcs-button-color:var(--wcs-contrast, var(--wcs-white, white));--wcs-button-background-color:var(--wcs-base, var(--wcs-primary, #0088CE));--wcs-button-ripple-color:var(--wcs-contrast, var(--wcs-white, white));--wcs-button-border-radius:var(--wcs-border-radius);--wcs-button-border-color:var(--wcs-base)}:host([mode=clear]){--wcs-button-border-color:transparent}:host([mode=clear]) .wcs-inner-button{box-shadow:none}:host([mode=clear]),:host([mode=stroked]){--wcs-button-color:var(--wcs-base);--wcs-button-background-color:transparent}:host([mode=clear]) .wcs-inner-button::before,:host([mode=clear]) .wcs-inner-button::after,:host([mode=stroked]) .wcs-inner-button::before,:host([mode=stroked]) .wcs-inner-button::after{--wcs-button-ripple-color:var(--wcs-base)}:host([shape=small]){--wcs-button-padding:2px 16px}:host([shape=round]){--wcs-button-padding:0;--wcs-button-border-radius:50%}:host([shape=round]) .wcs-inner-button{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px}:host([shape=square]){--wcs-button-padding:0}:host([shape=square]) .wcs-inner-button{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px}:host([shape=normal]){--wcs-button-padding:calc(var(--wcs-padding) / 2 + 1px) calc(var(--wcs-padding))}:host([mode=stroked]) .wcs-inner-button{box-shadow:inset 0 0 0 1px var(--wcs-button-border-color)}:host([disabled]){--wcs-button-color:var(--wcs-text-disabled);--wcs-button-background-color:var(--wcs-light)}:host([disabled]) .wcs-inner-button{--wcs-button-border-color:var(--wcs-light);opacity:1;cursor:default;pointer-events:none}:host([disabled]):host([mode=clear]),:host([disabled]):host([disabled]){--wcs-button-background-color:transparent}.wcs-inner-button{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;display:flex;align-content:center;font-family:var(--wcs-font-sans-serif);background-color:var(--wcs-button-background-color);color:var(--wcs-button-color);padding:var(--wcs-button-padding);border-radius:var(--wcs-button-border-radius);border:none;overflow:hidden;outline:0;text-transform:none;margin:0;cursor:pointer;font-weight:500;text-align:center;white-space:nowrap;vertical-align:middle;user-select:none;font-size:1rem;line-height:1.5;transition:color 175ms ease-in-out, background-color 175ms ease-in-out, box-shadow 175ms cubic-bezier(0.4, 0, 0.2, 1)}.wcs-inner-button::before,.wcs-inner-button::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.wcs-inner-button::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.wcs-inner-button::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.wcs-inner-button.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.wcs-inner-button.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.wcs-inner-button.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.wcs-inner-button.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.wcs-inner-button.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.wcs-inner-button::before,.wcs-inner-button::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.wcs-inner-button.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.wcs-inner-button:hover::before,.wcs-inner-button.mdc-ripple-surface--hover::before{opacity:0.1;opacity:var(--mdc-ripple-hover-opacity, 0.1)}.wcs-inner-button.mdc-ripple-upgraded--background-focused::before,.wcs-inner-button:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.wcs-inner-button:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.wcs-inner-button:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.3;opacity:var(--mdc-ripple-press-opacity, 0.3)}.wcs-inner-button.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.3)}.wcs-inner-button::before,.wcs-inner-button::after{background-color:white;background-color:var(--mdc-ripple-color, white)}.wcs-inner-button::before,.wcs-inner-button::after{background-color:var(--wcs-button-ripple-color)}.wcs-inner-button:focus{box-shadow:0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12), 0 1px 3px 0 rgba(0, 0, 0, 0.2)}.wcs-inner-button:hover{box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2)}a{text-decoration:none}button::-moz-focus-inner,a::-moz-focus-inner{border:0}';export{o as wcs_button}
|
|
1
|
+
import{r as e,h as r,g as t}from"./p-f46e6c3c.js";import{h as i}from"./p-cf4d7a83.js";import{M as o}from"./p-16dfbae8.js";let a=class{constructor(r){e(this,r),this.type="button",this.disabled=!1,this.ripple=!0,this.shape="normal",this.mode="plain"}onClick(e){if(this.disabled&&e.stopImmediatePropagation(),"button"!==this.type&&i(this.el)){const r=this.el.closest("form");if(r){e.preventDefault();const t=window.document.createElement("button");t.type=this.type,t.style.display="none",r.appendChild(t),t.click(),t.remove()}}}componentDidLoad(){this.mdcRipple=new o(this.el.shadowRoot.querySelector(".wcs-inner-button"))}enabledRippleEffect(){this.mdcRipple.disabled=!1}disabledRippleEffect(){this.mdcRipple.disabled=!0}onRippleChange(){this.ripple?this.enabledRippleEffect():this.disabledRippleEffect()}render(){return r(void 0!==this.href?"a":"button",Object.assign({},void 0!==this.href?{href:this.href,role:"button"}:{type:this.type},{class:"wcs-inner-button"},!0===this.disabled?{disabled:!0}:null),r("slot",null))}get el(){return t(this)}static get watchers(){return{ripple:["onRippleChange"]}}};a.style='@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}:host{display:inline-block;--wcs-button-padding:calc(var(--wcs-padding) / 2) var(--wcs-padding);--wcs-button-color:var(--wcs-contrast, var(--wcs-white, white));--wcs-button-background-color:var(--wcs-base, var(--wcs-primary, #0088CE));--wcs-button-ripple-color:var(--wcs-contrast, var(--wcs-white, white));--wcs-button-border-radius:var(--wcs-border-radius);--wcs-button-border-color:var(--wcs-base)}:host([mode=clear]){--wcs-button-border-color:transparent}:host([mode=clear]) .wcs-inner-button{box-shadow:none}:host([mode=clear]),:host([mode=stroked]){--wcs-button-color:var(--wcs-base);--wcs-button-background-color:transparent}:host([mode=clear]) .wcs-inner-button::before,:host([mode=clear]) .wcs-inner-button::after,:host([mode=stroked]) .wcs-inner-button::before,:host([mode=stroked]) .wcs-inner-button::after{--wcs-button-ripple-color:var(--wcs-base)}:host([shape=small]){--wcs-button-padding:2px 16px}:host([shape=small]) .wcs-inner-button{min-width:var(--wcs-button-min-width, unset);min-height:var(--wcs-button-min-height, unset)}:host([shape=round]){--wcs-button-padding:0;--wcs-button-border-radius:50%}:host([shape=round]) .wcs-inner-button{display:inline-flex;align-items:center;justify-content:center;min-width:var(--wcs-button-min-width, 42px);min-height:var(--wcs-button-min-height, 42px)}:host([shape=square]){--wcs-button-padding:0}:host([shape=square]) .wcs-inner-button{display:inline-flex;align-items:center;justify-content:center;min-width:var(--wcs-button-min-width, 42px);min-height:var(--wcs-button-min-height, 42px)}:host([shape=normal]){--wcs-button-padding:calc(var(--wcs-padding) / 2 + 1px) calc(var(--wcs-padding))}:host([shape=normal]) .wcs-inner-button{min-width:var(--wcs-button-min-width, unset);min-height:var(--wcs-button-min-height, unset)}:host([mode=stroked]) .wcs-inner-button{box-shadow:inset 0 0 0 1px var(--wcs-button-border-color)}:host([disabled]){--wcs-button-color:var(--wcs-text-disabled);--wcs-button-background-color:var(--wcs-light)}:host([disabled]) .wcs-inner-button{--wcs-button-border-color:var(--wcs-light);opacity:1;cursor:default;pointer-events:none}:host([disabled]):host([mode=clear]),:host([disabled]):host([disabled]){--wcs-button-background-color:transparent}.wcs-inner-button{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;display:flex;align-content:center;font-family:var(--wcs-font-sans-serif);background-color:var(--wcs-button-background-color);color:var(--wcs-button-color);padding:var(--wcs-button-padding);border-radius:var(--wcs-button-border-radius);border:none;overflow:hidden;outline:0;text-transform:none;margin:0;cursor:pointer;font-weight:500;text-align:center;white-space:nowrap;vertical-align:middle;user-select:none;font-size:1rem;line-height:1.5;transition:color 175ms ease-in-out, background-color 175ms ease-in-out, box-shadow 175ms cubic-bezier(0.4, 0, 0.2, 1)}.wcs-inner-button::before,.wcs-inner-button::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.wcs-inner-button::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.wcs-inner-button::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.wcs-inner-button.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.wcs-inner-button.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.wcs-inner-button.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.wcs-inner-button.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.wcs-inner-button.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.wcs-inner-button::before,.wcs-inner-button::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.wcs-inner-button.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.wcs-inner-button:hover::before,.wcs-inner-button.mdc-ripple-surface--hover::before{opacity:0.1;opacity:var(--mdc-ripple-hover-opacity, 0.1)}.wcs-inner-button.mdc-ripple-upgraded--background-focused::before,.wcs-inner-button:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.wcs-inner-button:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.wcs-inner-button:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.3;opacity:var(--mdc-ripple-press-opacity, 0.3)}.wcs-inner-button.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.3)}.wcs-inner-button::before,.wcs-inner-button::after{background-color:white;background-color:var(--mdc-ripple-color, white)}.wcs-inner-button::before,.wcs-inner-button::after{background-color:var(--wcs-button-ripple-color)}.wcs-inner-button:focus{box-shadow:0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12), 0 1px 3px 0 rgba(0, 0, 0, 0.2)}.wcs-inner-button:hover{box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2)}a{text-decoration:none}button::-moz-focus-inner,a::-moz-focus-inner{border:0}';export{a as wcs_button}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as o,H as s,g as i}from"./p-f46e6c3c.js";import{S as r}from"./p-7219c04b.js";import{c as e}from"./p-cf4d7a83.js";import{c as p}from"./p-e4fdcd1f.js";let a=class{constructor(o){t(this,o),this.noArrow=!1,this.mode="stroked",this.shape="normal",this.disabled=!1,this.placement="bottom-end",this.expanded=!1}placementChange(){this.popper.setOptions(Object.assign(Object.assign({},this.popper.state.options),{placement:this.placement})).then((()=>this.popper.update()))}componentDidLoad(){const t=this.el.shadowRoot.querySelector("wcs-button"),o=t.shadowRoot.querySelector("button");this.buttonTextColor=window.getComputedStyle(o).color;const s=this.el.shadowRoot.querySelector(".popover");this.popper=p(t,s,{placement:this.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),this.noArrow||(this.el.shadowRoot.querySelector(".arrow").style.fill=this.buttonTextColor),this.fixForFirefoxBelow63()}fixForFirefoxBelow63(){const t=this.el.querySelectorAll("wcs-dropdown-item"),o=this.el.querySelector(".container");t.length>0&&o&&t.forEach((t=>{this.el.removeChild(t),o.appendChild(t)}))}onButtonClick(t){this.expanded=!this.expanded}onWindowClickEvent(t){const o=e(t,this.el);this.expanded&&!o&&(this.expanded=!1)}dropdownItemClick(t){this.expanded=!1}componentDidRender(){this.popper&&this.popper.update(),this.noArrow||(this.el.shadowRoot.querySelector(".arrow").style.fill=this.buttonTextColor)}render(){return o(s,null,o("wcs-button",{mode:this.mode,shape:this.shape,disabled:this.disabled,onClick:t=>this.onButtonClick(t)},o("div",{class:"wcs-button-content-wrapper"},o("slot",{name:"placeholder"}),this.noArrow?null:o(r,{up:this.expanded}))),o("div",{class:(this.expanded?"show ":"")+"popover"},o("div",{id:"arrow","data-popper-arrow":!0}),o("div",{class:"container"},o("slot",{name:"item"}))))}get el(){return i(this)}static get watchers(){return{placement:["placementChange"]}}};a.style=':host{display:flex}wcs-button{--wcs-button-padding:8px 10px 8px 16px !important}:host([no-arrow]) wcs-button{--wcs-button-padding:8px 16px 8px 16px !important}:host([shape=small]) wcs-button{--wcs-button-padding:2px 10px 2px 16px !important}:host([shape=small][no-arrow]) wcs-button{--wcs-button-padding:2px 16px 2px 16px !important}.wcs-button-content-wrapper{display:flex}.popover{display:none;border:1px solid #d7d7d7;border-radius:var(--wcs-border-radius);background-color:var(--wcs-white);z-index:9999}.show{display:block}.container{border-radius:inherit;overflow:hidden;padding:calc(var(--wcs-padding) / 2) 0;background-color:var(--wcs-white)}#arrow,#arrow::before{position:absolute;width:8px;height:8px;background:inherit;border:solid 1px #d7d7d7}#arrow{visibility:hidden;z-index:-1}#arrow::before{visibility:visible;content:"";transform:rotate(45deg)}.popover[data-popper-placement^=top]>#arrow{bottom:-5px}.popover[data-popper-placement^=bottom]>#arrow{top:-6px}.popover[data-popper-placement^=left]>#arrow{right:-4px}.popover[data-popper-placement^=right]>#arrow{left:-6px}';export{a as wcs_dropdown}
|
package/dist/wcs/wcs.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as c}from"./p-f46e6c3c.js";(()=>{const c=import.meta.url,o={};return""!==c&&(o.resourcesUrl=new URL(".",c).href),e(o)})().then((e=>c([["p-fb1577b5",[[1,"wcs-editable-field",{type:[1],label:[1],readonly:[4],value:[1032],validateFn:[16],formatFn:[16],errorMsg:[1,"error-msg"],currentState:[32],isError:[32]},[[8,"click","onWindowClickEvent"]]]]],["p-a92d369e",[[1,"wcs-grid",{serverMode:[4,"server-mode"],data:[16],loading:[4],selectionConfig:[1,"selection-config"],selectedItems:[8,"selected-items"],wcsGridPaginationId:[1,"wcs-grid-pagination-id"],rowIdPath:[1,"row-id-path"],columns:[32],paginationEl:[32],rows:[32]},[[0,"wcsHiddenChange","onHiddenColumnChange"],[0,"wcsSortChange","sortChangeEventHandler"],[0,"wcsGridPaginationChange","paginationChangeEventHandler"],[8,"wcsGridPaginationChange","paginationChangeEventHandlerOutside"]]]]],["p-214236db",[[1,"wcs-grid-pagination",{availablePageSizes:[16],currentPage:[2,"current-page"],pageSize:[2,"page-size"],itemsCount:[2,"items-count"],pageCount:[2,"page-count"]}]]],["p-
|
|
1
|
+
import{p as e,b as c}from"./p-f46e6c3c.js";(()=>{const c=import.meta.url,o={};return""!==c&&(o.resourcesUrl=new URL(".",c).href),e(o)})().then((e=>c([["p-fb1577b5",[[1,"wcs-editable-field",{type:[1],label:[1],readonly:[4],value:[1032],validateFn:[16],formatFn:[16],errorMsg:[1,"error-msg"],currentState:[32],isError:[32]},[[8,"click","onWindowClickEvent"]]]]],["p-a92d369e",[[1,"wcs-grid",{serverMode:[4,"server-mode"],data:[16],loading:[4],selectionConfig:[1,"selection-config"],selectedItems:[8,"selected-items"],wcsGridPaginationId:[1,"wcs-grid-pagination-id"],rowIdPath:[1,"row-id-path"],columns:[32],paginationEl:[32],rows:[32]},[[0,"wcsHiddenChange","onHiddenColumnChange"],[0,"wcsSortChange","sortChangeEventHandler"],[0,"wcsGridPaginationChange","paginationChangeEventHandler"],[8,"wcsGridPaginationChange","paginationChangeEventHandlerOutside"]]]]],["p-214236db",[[1,"wcs-grid-pagination",{availablePageSizes:[16],currentPage:[2,"current-page"],pageSize:[2,"page-size"],itemsCount:[2,"items-count"],pageCount:[2,"page-count"]}]]],["p-df5baf36",[[1,"wcs-horizontal-stepper",{currentStep:[1026,"current-step"],steps:[16],mode:[1],checkOnComplete:[4,"check-on-complete"],buttonMode:[32],internalCurrentStep:[32],previous:[64],next:[64]}]]],["p-2507b398",[[4,"wcs-modal",{withoutBackdrop:[516,"without-backdrop"],show:[516],showCloseButton:[516,"show-close-button"],size:[1],hideActions:[516,"hide-actions"]},[[4,"keydown","onKeyDown"]]]]],["p-f43213f5",[[1,"wcs-dropdown",{noArrow:[4,"no-arrow"],mode:[1],shape:[1],disabled:[4],placement:[1],expanded:[32]},[[8,"click","onWindowClickEvent"],[0,"wcsDropdownItemClick","dropdownItemClick"]]]]],["p-b69840d6",[[1,"wcs-galactic-menu",{text:[1],showPopoverMenu:[32]},[[8,"click","onWindowClickEvent"]]]]],["p-a978c1e3",[[1,"wcs-input",{fireFocusEvents:[4,"fire-focus-events"],accept:[1],autocapitalize:[1],autocomplete:[1],autocorrect:[1],autofocus:[4],clearInput:[4,"clear-input"],clearOnEdit:[4,"clear-on-edit"],debounce:[2],prefixLabel:[1,"prefix-label"],suffixLabel:[1,"suffix-label"],disabled:[4],enterkeyhint:[1],icon:[1],inputmode:[1],max:[1],maxlength:[2],min:[1],minlength:[2],multiple:[4],name:[1],pattern:[1],placeholder:[1],readonly:[4],required:[4],spellcheck:[4],state:[513],step:[1],size:[2],type:[1],value:[1032],hasFocus:[32],setFocus:[64],setBlur:[64],getInputElement:[64]}]]],["p-384068f7",[[1,"wcs-textarea",{fireFocusEvents:[4,"fire-focus-events"],autocapitalize:[1],autofocus:[4],clearOnEdit:[1028,"clear-on-edit"],debounce:[2],disabled:[4],icon:[1],inputmode:[1],enterkeyhint:[1],maxlength:[2],minlength:[2],name:[1],placeholder:[1],readonly:[4],required:[4],spellcheck:[4],state:[513],cols:[2],rows:[2],wrap:[1],autoGrow:[4,"auto-grow"],value:[1025],hasFocus:[32],fitContent:[64],setFocus:[64],setBlur:[64],getInputElement:[64]}]]],["p-d45c7c63",[[1,"wcs-accordion",null,[[0,"wcsOpenChange","wcsOpenChangeHandler"]]]]],["p-cf77e1d9",[[1,"wcs-accordion-content"]]],["p-706d195a",[[1,"wcs-accordion-header"]]],["p-c295cfca",[[1,"wcs-accordion-panel",{open:[1540],close:[64]}]]],["p-474d6601",[[1,"wcs-action-bar",{gutter:[4],hasTabs:[32]}]]],["p-b7184d59",[[1,"wcs-app"]]],["p-9ba52bc4",[[1,"wcs-badge",{shape:[1],color:[1]}]]],["p-f9944bde",[[1,"wcs-card",{mode:[1537]}]]],["p-e0163de8",[[1,"wcs-card-body"]]],["p-0bb5f03a",[[1,"wcs-com-nav",{appName:[1,"app-name"],mobileMenuOpen:[32],currentActiveSizing:[32]}]]],["p-055c20de",[[1,"wcs-com-nav-category",{label:[1],categoryOpen:[32],close:[64],open:[64]},[[8,"click","onWindowClickEvent"],[8,"wcsCategoryOpened","onSubmenuOpened"]]]]],["p-4f15e5f6",[[1,"wcs-com-nav-submenu",{label:[1],panelTitle:[1,"panel-title"],panelDescription:[1,"panel-description"],menuOpen:[32],close:[64],open:[64]},[[8,"click","onWindowClickEvent"],[8,"wcsSubmenuOpened","onSubmenuOpened"],[0,"wcsCategoryItemClicked","wcsCategoryItemClickedHandler"]]]]],["p-fa173947",[[1,"wcs-divider"]]],["p-bbf1ef42",[[1,"wcs-dropdown-divider"]]],["p-41037455",[[1,"wcs-dropdown-header"]]],["p-1dce7e63",[[4,"wcs-dropdown-item",null,[[1,"mousedown","onMouseDown"]]]]],["p-60b51967",[[1,"wcs-field"]]],["p-26b5c0a3",[[1,"wcs-field-content"]]],["p-dc817204",[[1,"wcs-field-label"]]],["p-e9ce507c",[[1,"wcs-footer"]]],["p-e4236d32",[[1,"wcs-galactic",{text:[1],show:[32]}]]],["p-f430a227",[[1,"wcs-grid-column",{path:[1],name:[1],sort:[4],sortFn:[16],formatter:[16],sortOrder:[1025,"sort-order"],width:[1],customCells:[4,"custom-cells"],hidden:[4]}]]],["p-688fea65",[[1,"wcs-grid-custom-cell",{columnId:[1,"column-id"],rowId:[8,"row-id"]}]]],["p-dbbc3f58",[[1,"wcs-header"]]],["p-979dfd78",[[1,"wcs-hint",{small:[1540]}]]],["p-65c5ccc5",[[0,"wcs-icon",{icon:[1],size:[1]}]]],["p-600a9cc0",[[1,"wcs-label",{required:[516]}]]],["p-2e6265dc",[[1,"wcs-list-item",{activated:[1028]}]]],["p-a1ee1551",[[1,"wcs-list-item-properties"]]],["p-716d5921",[[1,"wcs-list-item-property"]]],["p-febe9ccc",[[1,"wcs-nav"]]],["p-e43358e4",[[4,"wcs-nav-item",{text:[513],href:[513]}]]],["p-55fdc284",[[1,"wcs-progress-radial",{size:[2],showLabel:[4,"show-label"],value:[2]}]]],["p-f96bb0bf",[[1,"wcs-radio-group",{value:[8],name:[520],mode:[513]},[[0,"wcsRadioClick","selectedOptionChanged"]]]]],["p-7206e492",[[1,"wcs-switch",{name:[1],checked:[516],labelAlignment:[513,"label-alignment"],disabled:[4]}]]],["p-5b35b232",[[1,"wcs-tab",{header:[513],itemKey:[8,"item-key"]}]]],["p-03b2e238",[[1,"wcs-tabs",{align:[513],selectedIndex:[2,"selected-index"],selectedKey:[8,"selected-key"],headersOnly:[4,"headers-only"],gutter:[4],headers:[32],currentActiveTabIndex:[32]},[[0,"tabLoaded","onTabLoaded"]]]]],["p-600d4d99",[[1,"wcs-tooltip",{for:[1],position:[513],interactive:[4],maxWidth:[8,"max-width"],delay:[2],duration:[2],trigger:[1],theme:[1],content:[1],hide:[64],show:[64],disable:[64],enable:[64]}]]],["p-8137f075",[[1,"wcs-progress-bar",{small:[4],showLabel:[4,"show-label"],value:[2]}]]],["p-9619f77a",[[1,"wcs-radio",{mode:[513],value:[1544],label:[1537],checked:[1540],disabled:[1028]}]]],["p-19e6600c",[[4,"wcs-select-option",{disabled:[1540],selected:[1540],value:[8],chipColor:[1,"chip-color"],chipBackgroundColor:[1,"chip-background-color"],multiple:[1540]},[[1,"mousedown","onMouseDown"]]],[1,"wcs-select",{value:[1032],placeholder:[1537],disabled:[1028],multiple:[516],chips:[516],name:[1],compareWith:[16],expanded:[32],hasLoaded:[32],displayText:[32],focused:[32],overlayDirection:[32],open:[64],close:[64]},[[1,"mousedown","onMouseDown"],[8,"click","onWindowClickEvent"],[0,"wcsSelectOptionClick","selectedOptionChanged"]]]]],["p-bcf381a2",[[1,"wcs-error"],[1,"wcs-form-field",{isError:[1540,"is-error"],hasPrefix:[32],hasSuffix:[32],spiedElement:[32]}]]],["p-91a2de07",[[1,"wcs-spinner",{mode:[513]}]]],["p-f00ef24c",[[1,"wcs-button",{type:[1025],href:[1],disabled:[516],ripple:[4],shape:[513],mode:[513]},[[0,"click","onClick"]]]]],["p-8c8740e3",[[1,"wcs-checkbox",{name:[1],indeterminate:[1540],checked:[1540],labelAlignment:[1537,"label-alignment"],disabled:[4]}]]],["p-66e74651",[[1,"wcs-mat-icon",{icon:[1],size:[1],family:[1],familyFile:[32],familyClass:[32]}]]]],e)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wcs-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.1",
|
|
4
4
|
"description": "Web components SNCF",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"build-storybook": "build-storybook -s ./dist/wcs,./src/assets/fonts"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@angular/cli": "^10.1.1",
|
|
31
30
|
"@babel/core": "^7.16.0",
|
|
31
|
+
"@ionic/eslint-config": "^0.3.0",
|
|
32
32
|
"@material/ripple": "13.0.0",
|
|
33
33
|
"@stencil/angular-output-target": "^0.4.0",
|
|
34
34
|
"@stencil/core": "2.13.0",
|
|
@@ -42,9 +42,12 @@
|
|
|
42
42
|
"@types/glob": "^7.1.3",
|
|
43
43
|
"@types/jest": "26.0.7",
|
|
44
44
|
"@types/puppeteer": "^3.0.1",
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^5.18.0",
|
|
46
|
+
"@typescript-eslint/parser": "^5.18.0",
|
|
45
47
|
"babel-loader": "^8.2.3",
|
|
46
48
|
"chokidar": "^3.4.1",
|
|
47
49
|
"concurrently": "^5.2.0",
|
|
50
|
+
"eslint": "^8.12.0",
|
|
48
51
|
"glob": "^7.1.6",
|
|
49
52
|
"highlight.js": "^10.1.2",
|
|
50
53
|
"jest": "^26.1.0",
|
|
@@ -56,8 +59,6 @@
|
|
|
56
59
|
"rollup": "^2.23.0",
|
|
57
60
|
"rollup-plugin-typescript": "^1.0.1",
|
|
58
61
|
"tslib": "^2.0.0",
|
|
59
|
-
"tslint": "^6.1.2",
|
|
60
|
-
"tslint-ionic-rules": "^0.0.21",
|
|
61
62
|
"typescript": "~3.9.7",
|
|
62
63
|
"webpack-watch-files-plugin": "^1.2.0"
|
|
63
64
|
},
|
|
@@ -75,5 +76,8 @@
|
|
|
75
76
|
},
|
|
76
77
|
"author": "SNCF",
|
|
77
78
|
"private": false,
|
|
78
|
-
"license": "MIT"
|
|
79
|
+
"license": "MIT",
|
|
80
|
+
"eslintConfig": {
|
|
81
|
+
"extends": "@ionic/eslint-config/recommended"
|
|
82
|
+
}
|
|
79
83
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
|
|
6
|
-
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## Unreleased
|
|
9
|
-
|
|
10
|
-
### Added
|
|
11
|
-
|
|
12
|
-
for new features.
|
|
13
|
-
|
|
14
|
-
### Changed
|
|
15
|
-
|
|
16
|
-
for changes in existing functionality.
|
|
17
|
-
|
|
18
|
-
### Deprecated
|
|
19
|
-
|
|
20
|
-
for soon-to-be removed features.
|
|
21
|
-
|
|
22
|
-
### Removed
|
|
23
|
-
|
|
24
|
-
for now removed features.
|
|
25
|
-
|
|
26
|
-
### Fixed
|
|
27
|
-
|
|
28
|
-
for any bug fixes.
|
|
29
|
-
|
|
30
|
-
### Security
|
|
31
|
-
|
|
32
|
-
in case of vulnerabilities.
|
|
33
|
-
|
|
34
|
-
## [2.10.0] - 2022-02-04
|
|
35
|
-
|
|
36
|
-
### Added
|
|
37
|
-
|
|
38
|
-
- **formly**: add styling support for `form-field` child elements
|
|
39
|
-
|
|
40
|
-
### Fixed
|
|
41
|
-
|
|
42
|
-
- **form-field**: fix random infinite loop when wcs-label is considered as form field input
|
|
43
|
-
|
|
44
|
-
## [2.9.0] - 2022-02-03
|
|
45
|
-
|
|
46
|
-
### Added
|
|
47
|
-
|
|
48
|
-
- **modal**: add size param
|
|
49
|
-
|
|
50
|
-
### Changed
|
|
51
|
-
|
|
52
|
-
- **radio-group**: change radio group height to 40px to fit button size when attribute `mode="option"`
|
|
53
|
-
- **formly**: change `formlySelectOptions` pipe to `wcsFormlyOptions` pipe in `select` and `radio` formly component in order to add any
|
|
54
|
-
options in templateOptions. In this case we add the `class` option to add css class for select option and radio.
|
|
55
|
-
|
|
56
|
-
### Fixed
|
|
57
|
-
|
|
58
|
-
- **grid-column**: event `wcsSortChange` was trigger twice
|
|
59
|
-
- **stenciljs**: upgrade compiler version to 2.13.0
|
|
60
|
-
|
|
61
|
-
## [2.8.0] - 2022-01-27
|
|
62
|
-
|
|
63
|
-
### Added
|
|
64
|
-
|
|
65
|
-
- **radio-group**: add `horizontal` mode
|
|
66
|
-
- **wcs-formly**: add the `tooltip` property in templateOptions, it adds a tooltip to the corresponding field's label
|
|
67
|
-
- **form-field**: add a tooltip example in documentation using `wcs-mat-icon` and `wcs-tooltip`
|
|
68
|
-
|
|
69
|
-
### Changed
|
|
70
|
-
|
|
71
|
-
- **tooltip:** redesign of the tooltip and migrate to tippy.js library. the API of the previous versions remain
|
|
72
|
-
compatible with the new API which has only added new attributes / methods.
|
|
73
|
-
- ⚠ **modal:** change `backdrop` property in `withoutBackdrop` wich is false by default (inversion of the condition)
|
|
74
|
-
|
|
75
|
-
## [2.7.0] - 2021-12-14
|
|
76
|
-
|
|
77
|
-
### Added
|
|
78
|
-
|
|
79
|
-
- **dropdown**: add overlay placement attribute
|
|
80
|
-
- **dropdown**: add no-arrow attribute to hide the arrow in dropdown button
|
|
81
|
-
- **angular/formly**: add disabled attribute support for field template options
|
|
82
|
-
- **switch**: add disabled attribute
|
|
83
|
-
- **input**: add `prefixLabel` and `suffixLabel` attributes
|
|
84
|
-
|
|
85
|
-
### Changed
|
|
86
|
-
|
|
87
|
-
- **dropdown**: use PopperJS for dropdown overlay positioning
|
|
88
|
-
- **form-field**: change `display: inline-flex` to `display: flex`
|
|
89
|
-
|
|
90
|
-
### Fixed
|
|
91
|
-
|
|
92
|
-
- **dropdown**: Fix disabled attribute that did not work
|
|
93
|
-
- **dropdown**: Dropdown overlay closes when click on another dropdown instance
|
|
94
|
-
- **grid**: initial sort order attribute
|
|
95
|
-
- **input**: add disabled styles
|
|
96
|
-
- **switch**: display label if present
|
|
97
|
-
- **radio** **checkbox**: fix disabled attribute
|
|
98
|
-
|
|
99
|
-
## [2.6.0] - 2021-11-24
|
|
100
|
-
|
|
101
|
-
### Added
|
|
102
|
-
|
|
103
|
-
- **grid**: add support for custom cell rendering with slot (`wcs-grid-custom-cell`)
|
|
104
|
-
- **grid**: add support to hide columns
|
|
105
|
-
- **doc**: migrate existing documentation to storybook
|
|
106
|
-
|
|
107
|
-
### Changed
|
|
108
|
-
|
|
109
|
-
- **stencil**: migrate to v2.10.x
|
|
110
|
-
|
|
111
|
-
### Fixed
|
|
112
|
-
|
|
113
|
-
- **Communication Navbar**: close navbar when user click on a link (`a`) slotted element in submenu and category
|
|
114
|
-
|
|
115
|
-
### Removed
|
|
116
|
-
|
|
117
|
-
- **angular schematics**: remove Angular schematics support (`ng add wcs` is no longer supported)
|
|
118
|
-
|
|
119
|
-
## [2.5.1]
|
|
120
|
-
|
|
121
|
-
### Fixed
|
|
122
|
-
|
|
123
|
-
- `wcs-angular`: update component proxies to support angular v12 strict
|
|
124
|
-
template (https://github.com/ionic-team/stencil-ds-output-targets/issues/155)
|
|
125
|
-
|
|
126
|
-
## [2.5.0]
|
|
127
|
-
|
|
128
|
-
### Added
|
|
129
|
-
|
|
130
|
-
- `action-bar`: add support for tabs
|
|
131
|
-
- `wcs-angular`: add automatic generation of proxy components
|
|
132
|
-
|
|
133
|
-
### Changed
|
|
134
|
-
|
|
135
|
-
- `tabs`: match SNCF Design System specifications and add support for headers only mode, add support for gutter
|
|
136
|
-
|
|
137
|
-
### Fixed
|
|
138
|
-
|
|
139
|
-
- `textarea`: rename component class to match component selector
|
|
140
|
-
|
|
141
|
-
## [2.4.0]
|
|
142
|
-
|
|
143
|
-
### Added
|
|
144
|
-
|
|
145
|
-
- `horizontal-stepper`: Add horizontal stepper component
|
|
146
|
-
- `progress-bar`: Add a CSS variable to change the duration of animations and the border radius
|
|
147
|
-
- `galactic`: Add galactic navigation bar
|
|
148
|
-
- `galactic-menu`: Add menu component for the galactic navigation bar
|
|
149
|
-
- `com-nav` : Add communication navbar and subcomponents (`submenu`, `category`)
|
|
150
|
-
- `footer`: Add footer component
|
|
151
|
-
|
|
152
|
-
### Fixed
|
|
153
|
-
|
|
154
|
-
-`mat-icon`: change display block to flex for host element
|
|
155
|
-
|
|
156
|
-
## [2.3.0]
|
|
157
|
-
|
|
158
|
-
### Added
|
|
159
|
-
|
|
160
|
-
- `select`: Added method to compare options with selected options (by default : deep comparison between object)
|
|
161
|
-
|
|
162
|
-
### Fixed
|
|
163
|
-
|
|
164
|
-
- `editable-field`: fix the display of null values, array values (for multiple select) and error states on input and
|
|
165
|
-
textarea
|
|
166
|
-
|
|
167
|
-
## [2.2.0]
|
|
168
|
-
|
|
169
|
-
### Added
|
|
170
|
-
|
|
171
|
-
- `wcs-select`: Added support for the chips attribute to display multi selected values in chips mode
|
|
172
|
-
- `textarea`: Added a method to force the textarea to adopt the content size
|
|
173
|
-
|
|
174
|
-
### Fixed
|
|
175
|
-
|
|
176
|
-
- `editable-field`: Fix bad display in fields with several lines of text.
|
|
177
|
-
- `editable-field`: Fix textarea autogrow behaviour
|
|
178
|
-
- `wcs-tooltip`: Id starting by a number is not a valid CCS selector (it has to be escaped). It's a problem if an
|
|
179
|
-
application use a tooltip on an element with an id starting by a number. We fix this without using CSS selector to
|
|
180
|
-
find the element.
|
|
181
|
-
|
|
182
|
-
## [2.1.0]
|
|
183
|
-
|
|
184
|
-
### Added
|
|
185
|
-
|
|
186
|
-
- `wcs-editable-field`: Added support for the readonly attribute
|
|
187
|
-
|
|
188
|
-
## [2.0.1]
|
|
189
|
-
|
|
190
|
-
### Fixed
|
|
191
|
-
|
|
192
|
-
- `wcs-form-field`: Following the update of the form field, an error was thrown if the slotted component was not in a
|
|
193
|
-
fixed list of supported components. This was a problem for some applications that wrapped the components or created
|
|
194
|
-
components on their side. This error has been removed, and a warning has been added.
|
|
195
|
-
|
|
196
|
-
## [2.0.0]
|
|
197
|
-
|
|
198
|
-
### Breaking changes
|
|
199
|
-
|
|
200
|
-
- if you use form-field, the native components "input" and "textarea" are no longer supported. You have to migrate to
|
|
201
|
-
the new components `wcs-input` and `wcs-textarea` (they share the same API as the native ones).
|
|
202
|
-
- `wcs-field-header` component has been renamed to `wcs-field-label`.
|
|
203
|
-
|
|
204
|
-
### Added
|
|
205
|
-
|
|
206
|
-
- wcs-editable-field : new component for inline data editing. for the moment the component supports the following
|
|
207
|
-
components
|
|
208
|
-
- wcs-input
|
|
209
|
-
- wcs-text-area
|
|
210
|
-
- wcs-select
|
|
211
|
-
- wcs-input
|
|
212
|
-
- wcs-textarea
|
|
213
|
-
|
|
214
|
-
## [0.0.3 - 0.0.6]
|
|
215
|
-
|
|
216
|
-
### Fixed
|
|
217
|
-
|
|
218
|
-
- Compatibility for firefox < 63
|
|
219
|
-
- Tab
|
|
220
|
-
- Select
|
|
221
|
-
|
|
222
|
-
## [0.0.2]
|
|
223
|
-
|
|
224
|
-
### Changed
|
|
225
|
-
|
|
226
|
-
- Upgraded to stencil 1.0
|
|
227
|
-
|
|
228
|
-
## [0.0.1]
|
|
229
|
-
|
|
230
|
-
### Added
|
|
231
|
-
|
|
232
|
-
- Components
|
|
233
|
-
- App shell
|
|
234
|
-
- Header
|
|
235
|
-
- Sidebar
|
|
236
|
-
- Badge
|
|
237
|
-
- Button
|
|
238
|
-
- Card
|
|
239
|
-
- Card body
|
|
240
|
-
- Checkbox
|
|
241
|
-
- Icon
|
|
242
|
-
- Progress bar
|
|
243
|
-
- Progress radial
|
|
244
|
-
- Select
|
|
245
|
-
- Tabs
|
|
246
|
-
- Tooltip
|
|
247
|
-
- Styling
|
|
248
|
-
- A few CSS variables
|
|
249
|
-
- Examples
|
|
250
|
-
- Angular
|
|
251
|
-
- React (Not yet working)
|
|
252
|
-
- Vue
|
|
253
|
-
|
|
254
|
-
## Changelog template
|
|
255
|
-
|
|
256
|
-
### Added
|
|
257
|
-
|
|
258
|
-
for new features.
|
|
259
|
-
|
|
260
|
-
### Changed
|
|
261
|
-
|
|
262
|
-
for changes in existing functionality.
|
|
263
|
-
|
|
264
|
-
### Deprecated
|
|
265
|
-
|
|
266
|
-
for soon-to-be removed features.
|
|
267
|
-
|
|
268
|
-
### Removed
|
|
269
|
-
|
|
270
|
-
for now removed features.
|
|
271
|
-
|
|
272
|
-
### Fixed
|
|
273
|
-
|
|
274
|
-
for any bug fixes.
|
|
275
|
-
|
|
276
|
-
### Security
|
|
277
|
-
|
|
278
|
-
in case of vulnerabilities.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as o,H as i,g as n}from"./p-f46e6c3c.js";let s=class{constructor(o){t(this,o),this.wcsCategoryOpened=e(this,"wcsCategoryOpened",7),this.wcsCategoryItemClicked=e(this,"wcsCategoryItemClicked",7),this.categoryOpen=!1}onWindowClickEvent(t){this.categoryOpen&&(this.categoryOpen=!1)}onSubmenuOpened(t){t.detail.categoryElement!==this.el&&(this.categoryOpen=!1)}async close(){this.categoryOpen=!1}async open(){this.categoryOpen=!0}onClick(t){t.stopPropagation(),this.wcsCategoryOpened.emit({categoryElement:this.el})}handleItemClick(t){"A"===t.target.tagName&&(this.close(),this.wcsCategoryItemClicked.emit(t))}render(){return o(i,{onClick:t=>this.onClick(t)},o("div",{class:"label-container","data-open":this.categoryOpen,onClick:()=>this.categoryOpen=!this.categoryOpen},o("span",{class:"label"},this.label)),o("div",{class:"item-container","data-open":this.categoryOpen,onClick:t=>this.handleItemClick(t)},o("slot",null)))}get el(){return n(this)}};s.style=':host{display:block}:host .item-container:not([data-open]){display:none}:host .label:after{font-family:icons;padding-left:var(--wcs-base-margin);font-size:0.6rem;content:"\\f107";line-height:1;box-sizing:border-box}:host .label-container{cursor:pointer;user-select:none;display:flex;align-items:center}:host .label-container[data-open]:after{position:absolute;left:calc(50% + var(--wcs-com-content-max-width) / 8 - 0.5625rem);z-index:2;display:block;width:1.125rem;height:1.125rem;content:"";background-color:var(--wcs-primary);transform:rotate(45deg)}:host .item-container[data-open]{position:absolute;left:calc(50% + var(--wcs-com-content-max-width) / 8);top:0;right:0;padding:50px 0 50px 50px;background-blend-mode:multiply;background-color:rgba(0, 0, 0, 0.15);box-sizing:border-box;height:100%;display:flex;flex-direction:column;align-items:start}:host .item-container[data-open] ::slotted(a:not(:first-child)){margin-top:24px}:host .item-container[data-open] ::slotted(a):after{font-family:icons;padding-left:var(--wcs-base-margin);font-size:0.6rem;content:"\\f107";line-height:1;box-sizing:border-box}:host .item-container[data-open] ::slotted(a){cursor:pointer;text-decoration:none;font-size:16px;color:var(--wcs-white)}';export{s as wcs_com_nav_category}
|