@mgdis/mg-components 6.9.0 → 6.10.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/events.utils-D5SAtkpQ.js +28 -0
- package/dist/cjs/events.utils-D5SAtkpQ.js.map +1 -0
- package/dist/cjs/index-CATFkm3O.js +4 -0
- package/dist/cjs/{index-CTU2m-sy.js → index-CL_COdxv.js} +20 -6
- package/dist/cjs/{index-CTU2m-sy.js.map → index-CL_COdxv.js.map} +1 -1
- package/dist/cjs/index.es-DaPqByCe.js +250 -0
- package/dist/cjs/index.es-DaPqByCe.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mg-action-more_37.cjs.entry.js +1929 -1913
- package/dist/cjs/mg-action-more_37.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-alert.cjs.entry.js +7 -7
- package/dist/cjs/mg-components.cjs.js +1 -1
- package/dist/cjs/mg-input-combobox.cjs.entry.js +774 -0
- package/dist/cjs/mg-input-combobox.cjs.entry.js.map +1 -0
- package/dist/cjs/mg-input-combobox.entry.cjs.js.map +1 -0
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +16 -14
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-input-rich-text-editor.entry.cjs.js.map +1 -1
- package/dist/cjs/mg-loader.cjs.entry.js +5 -5
- package/dist/cjs/mg-progress.cjs.entry.js +11 -11
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/atoms/mg-button/mg-button.js +3 -2
- package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js +0 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js.map +1 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +38 -68
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf.js +2 -0
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +1443 -0
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +2 -2
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/editor.scss +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +3 -3
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +1 -1
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +2 -2
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js.map +1 -1
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +3 -3
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js.map +1 -1
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +2 -2
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -1
- package/dist/collection/components/molecules/mg-alert/mg-alert.js +1 -1
- package/dist/collection/components/molecules/mg-details/mg-details.js +1 -1
- package/dist/collection/components/molecules/mg-form/mg-form.js +1 -1
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +1 -1
- package/dist/collection/components/molecules/mg-loader/mg-loader.js +1 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js +2 -2
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +2 -2
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +3 -3
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +53 -129
- package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
- package/dist/collection/components/molecules/mg-progress/mg-progress.js +1 -1
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -1
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +6 -5
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js.map +1 -1
- package/dist/collection/locales/en/messages.json +8 -1
- package/dist/collection/locales/fr/messages.json +8 -1
- package/dist/collection/utils/behaviors.utils.js +3 -3
- package/dist/collection/utils/behaviors.utils.js.map +1 -1
- package/dist/collection/utils/events.utils.js +22 -0
- package/dist/collection/utils/events.utils.js.map +1 -0
- package/dist/components/events.utils.js +26 -0
- package/dist/components/events.utils.js.map +1 -0
- package/dist/components/index.es.js +129 -36
- package/dist/components/index.es.js.map +1 -1
- package/dist/components/index2.js +18 -4
- package/dist/components/index2.js.map +1 -1
- package/dist/components/mg-action-more.js +8 -8
- package/dist/components/mg-action-more.js.map +1 -1
- package/dist/components/mg-alert.js +6 -6
- package/dist/components/mg-badge2.js +6 -6
- package/dist/components/mg-button2.js +9 -8
- package/dist/components/mg-button2.js.map +1 -1
- package/dist/components/mg-character-left2.js +4 -4
- package/dist/components/mg-details.js +4 -4
- package/dist/components/mg-details.js.map +1 -1
- package/dist/components/mg-form.js +8 -8
- package/dist/components/mg-icon2.js +6 -6
- package/dist/components/mg-illustrated-message.js +6 -6
- package/dist/components/mg-input-checkbox.js +9 -9
- package/dist/components/mg-input-combobox.d.ts +11 -0
- package/dist/components/mg-input-combobox.js +897 -0
- package/dist/components/mg-input-combobox.js.map +1 -0
- package/dist/components/mg-input-date.js +18 -18
- package/dist/components/mg-input-date.js.map +1 -1
- package/dist/components/mg-input-numeric.js +16 -16
- package/dist/components/mg-input-numeric.js.map +1 -1
- package/dist/components/mg-input-password.js +5 -5
- package/dist/components/mg-input-password.js.map +1 -1
- package/dist/components/mg-input-radio.js +8 -8
- package/dist/components/mg-input-rich-text-editor.js +15 -13
- package/dist/components/mg-input-rich-text-editor.js.map +1 -1
- package/dist/components/mg-input-select2.js +9 -9
- package/dist/components/mg-input-select2.js.map +1 -1
- package/dist/components/mg-input-text2.js +11 -11
- package/dist/components/mg-input-text2.js.map +1 -1
- package/dist/components/mg-input-textarea.js +9 -9
- package/dist/components/mg-input-textarea.js.map +1 -1
- package/dist/components/mg-input-title2.js +4 -4
- package/dist/components/mg-input-toggle.js +7 -7
- package/dist/components/mg-input2.js +8 -8
- package/dist/components/mg-item-more2.js +12 -12
- package/dist/components/mg-item-more2.js.map +1 -1
- package/dist/components/mg-loader.js +1 -70
- package/dist/components/mg-loader.js.map +1 -1
- package/dist/components/mg-loader2.js +75 -0
- package/dist/components/mg-loader2.js.map +1 -0
- package/dist/components/mg-menu-item2.js +13 -13
- package/dist/components/mg-menu-item2.js.map +1 -1
- package/dist/components/mg-message2.js +6 -6
- package/dist/components/mg-modal.js +10 -10
- package/dist/components/mg-pagination2.js +9 -9
- package/dist/components/mg-panel.js +10 -10
- package/dist/components/mg-popover-content2.js +5 -5
- package/dist/components/mg-popover-content2.js.map +1 -1
- package/dist/components/mg-popover2.js +54 -128
- package/dist/components/mg-popover2.js.map +1 -1
- package/dist/components/mg-progress.js +11 -11
- package/dist/components/mg-skip-links.js +3 -3
- package/dist/components/mg-table.js +6 -6
- package/dist/components/mg-tabs.js +18 -17
- package/dist/components/mg-tabs.js.map +1 -1
- package/dist/components/mg-tag.js +4 -4
- package/dist/components/mg-tooltip-content2.js +1 -1
- package/dist/components/mg-tooltip-content2.js.map +1 -1
- package/dist/components/mg-tooltip2.js +42 -71
- package/dist/components/mg-tooltip2.js.map +1 -1
- package/dist/components/popper.js +1793 -0
- package/dist/components/popper.js.map +1 -0
- package/dist/esm/events.utils-yMGqY8YG.js +26 -0
- package/dist/esm/events.utils-yMGqY8YG.js.map +1 -0
- package/dist/esm/index-CAuxALt5.js +4 -0
- package/dist/esm/{index-SQlkEaXW.js → index-DALWFL9i.js} +20 -6
- package/dist/esm/{index-SQlkEaXW.js.map → index-DALWFL9i.js.map} +1 -1
- package/dist/esm/index.es-hNwGkhG6.js +223 -0
- package/dist/esm/index.es-hNwGkhG6.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mg-action-more_37.entry.js +1930 -1914
- package/dist/esm/mg-action-more_37.entry.js.map +1 -1
- package/dist/esm/mg-alert.entry.js +7 -7
- package/dist/esm/mg-components.js +1 -1
- package/dist/esm/mg-input-combobox.entry.js +772 -0
- package/dist/esm/mg-input-combobox.entry.js.map +1 -0
- package/dist/esm/mg-input-rich-text-editor.entry.js +17 -15
- package/dist/esm/mg-input-rich-text-editor.entry.js.map +1 -1
- package/dist/esm/{mg-input.conf-BtkqaBXm.js → mg-input.conf-CNgv8hc5.js} +3 -3
- package/dist/esm/{mg-input.conf-BtkqaBXm.js.map → mg-input.conf-CNgv8hc5.js.map} +1 -1
- package/dist/esm/mg-loader.entry.js +5 -5
- package/dist/esm/mg-progress.entry.js +11 -11
- package/dist/mg-components/locales/en/messages.json +8 -1
- package/dist/mg-components/locales/fr/messages.json +8 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/mg-input-combobox.entry.esm.js.map +1 -0
- package/dist/mg-components/mg-input-rich-text-editor.entry.esm.js.map +1 -1
- package/dist/mg-components/p-352cfc01.entry.js +2 -0
- package/dist/mg-components/{p-680948e3.entry.js.map → p-352cfc01.entry.js.map} +1 -1
- package/dist/mg-components/p-68f7de47.entry.js +2 -0
- package/dist/mg-components/p-68f7de47.entry.js.map +1 -0
- package/dist/mg-components/p-CNgv8hc5.js +2 -0
- package/dist/mg-components/{p-BtkqaBXm.js.map → p-CNgv8hc5.js.map} +1 -1
- package/dist/mg-components/p-Cg3R_y_o.js +2 -0
- package/dist/mg-components/{p-CqGbLOnN.js.map → p-Cg3R_y_o.js.map} +1 -1
- package/dist/mg-components/p-a52a168c.entry.js +2 -0
- package/dist/mg-components/{p-9acc6504.entry.js.map → p-a52a168c.entry.js.map} +1 -1
- package/dist/mg-components/{p-583b3769.entry.js → p-bf5de898.entry.js} +2 -2
- package/dist/mg-components/p-dcefa0b0.entry.js +2 -0
- package/dist/mg-components/p-dcefa0b0.entry.js.map +1 -0
- package/dist/mg-components/{p-650d6986.entry.js → p-e33557f9.entry.js} +3 -3
- package/dist/mg-components/p-e33557f9.entry.js.map +1 -0
- package/dist/mg-components/p-hNwGkhG6.js +2 -0
- package/dist/mg-components/p-hNwGkhG6.js.map +1 -0
- package/dist/mg-components/p-yMGqY8YG.js +2 -0
- package/dist/mg-components/p-yMGqY8YG.js.map +1 -0
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.conf.d.ts +0 -6
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +6 -7
- package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf.d.ts +24 -0
- package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.d.ts +340 -0
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +9 -27
- package/dist/types/components.d.ts +253 -10
- package/dist/types/utils/events.utils.d.ts +4 -0
- package/ide/intellij/web-types.json +400 -1
- package/ide/vscode/html-custom-data.json +332 -0
- package/package.json +15 -15
- package/dist/cjs/index.es-jXqiN1uw.js +0 -152
- package/dist/cjs/index.es-jXqiN1uw.js.map +0 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.conf.js +0 -2
- package/dist/collection/components/molecules/mg-popover/mg-popover.conf.js.map +0 -1
- package/dist/collection/utils/floating-ui.utils.js +0 -30
- package/dist/collection/utils/floating-ui.utils.js.map +0 -1
- package/dist/components/floating-ui.utils.js +0 -1677
- package/dist/components/floating-ui.utils.js.map +0 -1
- package/dist/esm/index.es-DDBtzymI.js +0 -130
- package/dist/esm/index.es-DDBtzymI.js.map +0 -1
- package/dist/mg-components/p-650d6986.entry.js.map +0 -1
- package/dist/mg-components/p-680948e3.entry.js +0 -2
- package/dist/mg-components/p-9acc6504.entry.js +0 -2
- package/dist/mg-components/p-BtkqaBXm.js +0 -2
- package/dist/mg-components/p-CqGbLOnN.js +0 -2
- package/dist/mg-components/p-DDBtzymI.js +0 -2
- package/dist/mg-components/p-DDBtzymI.js.map +0 -1
- package/dist/mg-components/p-c0fb6f62.entry.js +0 -2
- package/dist/mg-components/p-c0fb6f62.entry.js.map +0 -1
- package/dist/types/components/molecules/mg-popover/mg-popover.conf.d.ts +0 -6
- package/dist/types/utils/floating-ui.utils.d.ts +0 -20
- /package/dist/mg-components/{p-583b3769.entry.js.map → p-bf5de898.entry.js.map} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=Object.defineProperty;var e=t=>{throw TypeError(t)};var s=(e,s,r)=>s in e?t(e,s,{enumerable:true,configurable:true,writable:true,value:r}):e[s]=r;var r=(t,e,r)=>s(t,typeof e!="symbol"?e+"":e,r),i=(t,s,r)=>s.has(t)||e("Cannot "+r);var n=(t,e,s)=>(i(t,e,"read from private field"),s?s.call(t):e.get(t)),a=(t,s,r)=>s.has(t)?e("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,r),o=(t,e,s,r)=>(i(t,e,"write to private field"),e.set(t,s),s);const u=(t="",e=10)=>{const s=new Uint8Array(e);crypto.getRandomValues(s);const r=Array.from(s).map((t=>t.toString(16).padStart(2,"0"))).join("").slice(0,e);return t!==""?`${t}-${r}`:r},h=t=>v(t)&&/^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/.exec(t)!==null;class l{constructor(t=[]){r(this,"classes");r(this,"add",(t=>{this.has(t)||this.classes.push(t)}));r(this,"delete",(t=>{const e=this.classes.indexOf(t);e>-1&&this.classes.splice(e,1)}));r(this,"has",(t=>this.classes.includes(t)));r(this,"join",(()=>this.classes.join(" ")));this.classes=t}}const c=t=>Array.isArray(t)&&t.every((t=>typeof t=="string")),f=(t,e)=>e.includes(t==null?void 0:t.tagName.toLowerCase()),m='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button',p=t=>{const e=y(t),s=g(t);return[t,...e,...s]},y=(t,e=[])=>{if(t.self!==t.top)try{const s=t.parent;return s?(e.push(s),y(s,e)):e}catch(t){return console.error("Different hosts between iframes:",t),e}return e},g=(t,e=[])=>{if(t.frames.length>0)for(const s of Array.from(t.frames))e.push(s),g(s,e);return e},v=t=>typeof t=="string"&&t.trim()!=="",b=t=>typeof t=="object"?JSON.stringify(t):`${t}`,d=t=>typeof t=="number"&&!Number.isNaN(t),w=t=>typeof t=="string"?t.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g,""):t,x=async t=>{if(t)return t()},O=t=>typeof t=="object"&&!Array.isArray(t)&&t!==null,I=(t,e,s)=>{const r=".";if(!O(t)||typeof e!="string")return s;const[i,...n]=e.split(r);return n.length?I(t[i],n.join(r)):t[i]},N={FIRST:"first",NEXT:"next",PREVIOUS:"previous",LAST:"last"},S=10;class D{constructor(t){r(this,"items",[]);r(this,"total");r(this,"top",S);r(this,"next");r(this,"baseIndex",1);r(this,"getIndexFromCursor",((t="first",e)=>{if(!Array.isArray(this.items)||!this.items.length)return null;const s=this.items.length-this.baseIndex;let r=0,i=0;if(["previous","next"].includes(t)&&e){const t=this.items.findIndex((t=>JSON.stringify(t)===JSON.stringify(e)));if(t===-1)return 0;i=t}return t==="first"?r=0:t==="last"?r=s:t==="previous"?r=JSON.stringify(this.items[i])===JSON.stringify(this.items[0])?s:i-this.baseIndex:t==="next"&&(r=JSON.stringify(this.items[i])===JSON.stringify(this.items[s])?0:i+this.baseIndex),r}));if(O(t))Array.isArray(t.items)&&(this.items=t.items),typeof t.top=="number"&&(this.top=t.top),this.total=typeof t.total=="number"?t.total:this.items.length,this.next=t.next;else throw new Error("Page - init must match IPage type.")}}var A,F,J;class k{constructor(t,e){r(this,"items",[]);a(this,A,S);a(this,F);a(this,J);r(this,"getPage",((t=0,e)=>{const s=typeof e=="function"?this.items.filter(e):this.items;let r;return n(this,F)?r=n(this,F):s.length>t+n(this,A)&&(r=()=>this.getPage(t+n(this,A),e)),new D({items:s.slice(t,t+n(this,A)),total:n(this,J),top:n(this,A),next:r})}));Array.isArray(t)&&(this.items=t),e&&(["string","function"].includes(typeof e.next)||O(e.next)&&URL.canParse(e.next))&&o(this,F,e.next),typeof(e==null?void 0:e.top)=="number"&&o(this,A,e.top),typeof(e==null?void 0:e.total)=="number"&&o(this,J,e.total)}}A=new WeakMap,F=new WeakMap,J=new WeakMap;var E=Object.defineProperty,j=(t,e)=>{for(var s in e)E(t,s,{get:e[s],enumerable:true})},P={};j(P,{err:()=>$,map:()=>C,ok:()=>T,unwrap:()=>U,unwrapErr:()=>W});var T=t=>({isOk:true,isErr:false,value:t}),$=t=>({isOk:false,isErr:true,value:t});function C(t,e){if(t.isOk){const s=e(t.value);return s instanceof Promise?s.then((t=>T(t))):T(s)}if(t.isErr){const e=t.value;return $(e)}throw"should never get here"}var U=t=>{if(t.isOk)return t.value;throw t.value},W=t=>{if(t.isErr)return t.value;throw t.value};const z=t=>{const e={value:"2023",pattern:"yyyy"},s={value:"12",pattern:"mm"},r={value:"24",pattern:"dd"};return B([e.value,s.value,r.value].join("-"),t,{timeZone:"UTC"}).replace(e.value,e.pattern).replace(s.value,s.pattern).replace(r.value,r.pattern)},M=t=>t.toISOString().split("T")[0],R=(t,e,s)=>{const r=t.closest("[lang]"),i=Intl.NumberFormat.supportedLocalesOf(r==null?void 0:r.lang),n=i.length>0&&typeof i[0]=="string"?i[0]:navigator.language||s,a=n.split("-").shift();return Object.keys(e).length===0?{locale:n,messages:{lang:s}}:{locale:n,messages:e[a]||e[s]||{lang:s}}},L=(t,e,s)=>new Intl.NumberFormat(e,{style:"currency",currency:s}).format(t),V=(t,e,s=0)=>new Intl.NumberFormat(e,{minimumFractionDigits:s}).format(Number(t)),X=(t,e,s=0)=>new Intl.NumberFormat(e,{style:"percent",minimumFractionDigits:s,maximumFractionDigits:s}).format(t),Z=(t,e,s,r="short",i=0)=>new Intl.NumberFormat(e,{style:"unit",unit:s,unitDisplay:r,minimumFractionDigits:i,maximumFractionDigits:i}).format(t),q=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/,B=(t,e,s)=>typeof t!="string"||t===""||!q.test(t)?"":new Intl.DateTimeFormat(e,s).format(new Date(t)),G=(t,e)=>s=>R(s,t,e);export{G as $,I as B,q as C,h as D,D as G,l as H,p as J,d as K,B as P,x as Q,N as V,b as X,w as Y,u as Z,v as a,f as b,M as c,m as d,k as e,L as f,Z as g,z as l,O as n,X as p,c as q,V as u};
|
|
2
|
+
//# sourceMappingURL=p-hNwGkhG6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"p-hNwGkhG6.js","sources":["../stencil-helpers/dist/index.es.js"],"sourcesContent":["var De = Object.defineProperty;\nvar ce = (e) => {\n throw TypeError(e);\n};\nvar He = (e, t, r) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;\nvar d = (e, t, r) => He(e, typeof t != \"symbol\" ? t + \"\" : t, r), fe = (e, t, r) => t.has(e) || ce(\"Cannot \" + r);\nvar v = (e, t, r) => (fe(e, t, \"read from private field\"), r ? r.call(e) : t.get(e)), k = (e, t, r) => t.has(e) ? ce(\"Cannot add the same private member more than once\") : t instanceof WeakSet ? t.add(e) : t.set(e, r), U = (e, t, r, s) => (fe(e, t, \"write to private field\"), s ? s.call(e, r) : t.set(e, r), r);\nconst Zt = (e = \"\", t = 10) => {\n const r = new Uint8Array(t);\n crypto.getRandomValues(r);\n const s = Array.from(r).map((n) => n.toString(16).padStart(2, \"0\")).join(\"\").slice(0, t);\n return e !== \"\" ? `${e}-${s}` : s;\n}, Dt = (e) => qe(e) && /^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/.exec(e) !== null;\nclass Ht {\n constructor(t = []) {\n /**\n * Available classes\n */\n d(this, \"classes\");\n /**\n * Add class\n * @param className - class name to add\n */\n d(this, \"add\", (t) => {\n this.has(t) || this.classes.push(t);\n });\n /**\n * Delete class\n * @param className - class name to delete\n */\n d(this, \"delete\", (t) => {\n const r = this.classes.indexOf(t);\n r > -1 && this.classes.splice(r, 1);\n });\n /**\n * Check if class exist in list\n * @param className - class name to check\n * @returns class name is in the list\n */\n d(this, \"has\", (t) => this.classes.includes(t));\n /**\n * Join classes seperated by spaces\n * @returns joined values\n */\n d(this, \"join\", () => this.classes.join(\" \"));\n this.classes = t;\n }\n}\nconst qt = (e) => Array.isArray(e) && e.every((t) => typeof t == \"string\"), Bt = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), Gt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]), [identifier], mg-button', Jt = (e) => {\n const t = _e(e), r = be(e);\n return [e, ...t, ...r];\n}, _e = (e, t = []) => {\n if (e.self !== e.top)\n try {\n const r = e.parent;\n return r ? (t.push(r), _e(r, t)) : t;\n } catch (r) {\n return console.error(\"Different hosts between iframes:\", r), t;\n }\n return t;\n}, be = (e, t = []) => {\n if (e.frames.length > 0)\n for (const r of Array.from(e.frames))\n t.push(r), be(r, t);\n return t;\n}, qe = (e) => typeof e == \"string\" && e.trim() !== \"\", Xt = (e) => typeof e == \"object\" ? JSON.stringify(e) : `${e}`, Kt = (e) => typeof e == \"number\" && !Number.isNaN(e), Yt = (e) => typeof e == \"string\" ? e.toLocaleLowerCase().normalize(\"NFD\").replaceAll(/[\\u0300-\\u036f]/g, \"\") : e, Qt = async (e) => {\n if (e) return e();\n}, ne = (e) => typeof e == \"object\" && !Array.isArray(e) && e !== null, Be = (e, t, r) => {\n const s = \".\";\n if (!ne(e) || typeof t != \"string\")\n return r;\n const [n, ...i] = t.split(s);\n return i.length ? Be(e[n], i.join(s)) : e[n];\n}, Vt = {\n FIRST: \"first\",\n NEXT: \"next\",\n PREVIOUS: \"previous\",\n LAST: \"last\"\n}, ve = 10;\nclass Ge {\n constructor(t) {\n /**\n * Define items\n */\n d(this, \"items\", []);\n /**\n * Define total\n */\n d(this, \"total\");\n /**\n * Define top\n */\n d(this, \"top\", ve);\n /**\n * Define next\n */\n d(this, \"next\");\n /**\n * Define base index\n */\n d(this, \"baseIndex\", 1);\n /**\n * Get index of items from cursor\n * @param cursor - cursor to find\n * @param oldItem - previous item\n * @returns item index\n */\n d(this, \"getIndexFromCursor\", (t = \"first\", r) => {\n if (!Array.isArray(this.items) || !this.items.length) return null;\n const n = this.items.length - this.baseIndex;\n let i = 0, o = 0;\n if ([\"previous\", \"next\"].includes(t) && r) {\n const f = this.items.findIndex((c) => JSON.stringify(c) === JSON.stringify(r));\n if (f === -1) return 0;\n o = f;\n }\n return t === \"first\" ? i = 0 : t === \"last\" ? i = n : t === \"previous\" ? i = JSON.stringify(this.items[o]) === JSON.stringify(this.items[0]) ? n : o - this.baseIndex : t === \"next\" && (i = JSON.stringify(this.items[o]) === JSON.stringify(this.items[n]) ? 0 : o + this.baseIndex), i;\n });\n if (ne(t))\n Array.isArray(t.items) && (this.items = t.items), typeof t.top == \"number\" && (this.top = t.top), this.total = typeof t.total == \"number\" ? t.total : this.items.length, this.next = t.next;\n else\n throw new Error(\"Page - init must match IPage type.\");\n }\n}\nvar O, N, C;\nclass er {\n constructor(t, r) {\n /**\n * Define paginated items\n */\n d(this, \"items\", []);\n /* Privates */\n k(this, O, ve);\n k(this, N);\n k(this, C);\n /**\n * Get page\n * @param offset - pagiantion offset\n * @param filter - filter methode\n * @returns formated page\n */\n d(this, \"getPage\", (t = 0, r) => {\n const s = typeof r == \"function\" ? this.items.filter(r) : this.items;\n let n;\n return v(this, N) ? n = v(this, N) : s.length > t + v(this, O) && (n = () => this.getPage(t + v(this, O), r)), new Ge({\n items: s.slice(t, t + v(this, O)),\n total: v(this, C),\n top: v(this, O),\n next: n\n });\n });\n Array.isArray(t) && (this.items = t), r && ([\"string\", \"function\"].includes(typeof r.next) || ne(r.next) && URL.canParse(r.next)) && U(this, N, r.next), typeof (r == null ? void 0 : r.top) == \"number\" && U(this, O, r.top), typeof (r == null ? void 0 : r.total) == \"number\" && U(this, C, r.total);\n }\n}\nO = new WeakMap(), N = new WeakMap(), C = new WeakMap();\nvar K = {\n updatable: !0,\n slotRelocation: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n experimentalSlotFixes: !1\n}, Je = Object.defineProperty, Xe = (e, t) => {\n for (var r in t)\n Je(e, r, { get: t[r], enumerable: !0 });\n}, Ke = \"http://www.w3.org/2000/svg\", Ye = \"http://www.w3.org/1999/xhtml\", ue = (e, t) => t in e, pe = \"http://www.w3.org/1999/xlink\", A = typeof window < \"u\" ? window : {}, z = {\n $flags$: 0,\n $resourcesUrl$: \"\",\n jmp: (e) => e(),\n raf: (e) => requestAnimationFrame(e),\n ael: (e, t, r, s) => e.addEventListener(t, r, s),\n rel: (e, t, r, s) => e.removeEventListener(t, r, s),\n ce: (e, t) => new CustomEvent(e, t)\n}, Qe = (e) => e != null && e !== void 0, we = (e) => (e = typeof e, e === \"object\" || e === \"function\"), Ve = {};\nXe(Ve, {\n err: () => me,\n map: () => et,\n ok: () => Q,\n unwrap: () => tt,\n unwrapErr: () => rt\n});\nvar Q = (e) => ({\n isOk: !0,\n isErr: !1,\n value: e\n}), me = (e) => ({\n isOk: !1,\n isErr: !0,\n value: e\n});\nfunction et(e, t) {\n if (e.isOk) {\n const r = t(e.value);\n return r instanceof Promise ? r.then((s) => Q(s)) : Q(r);\n }\n if (e.isErr) {\n const r = e.value;\n return me(r);\n }\n throw \"should never get here\";\n}\nvar tt = (e) => {\n if (e.isOk)\n return e.value;\n throw e.value;\n}, rt = (e) => {\n if (e.isErr)\n return e.value;\n throw e.value;\n}, xe = (e) => {\n const t = $e(e, \"childNodes\");\n e.tagName && e.tagName.includes(\"-\") && e[\"s-cr\"] && e.tagName !== \"SLOT-FB\" && Ee(t, e.tagName).forEach((s) => {\n s.nodeType === 1 && s.tagName === \"SLOT-FB\" && (nt(s, ie(s), !1).length ? s.hidden = !0 : s.hidden = !1);\n });\n let r = 0;\n for (r = 0; r < t.length; r++) {\n const s = t[r];\n s.nodeType === 1 && $e(s, \"childNodes\").length && xe(s);\n }\n}, st = (e) => {\n const t = [];\n for (let r = 0; r < e.length; r++) {\n const s = e[r][\"s-nr\"] || void 0;\n s && s.isConnected && t.push(s);\n }\n return t;\n};\nfunction Ee(e, t, r) {\n let s = 0, n = [], i;\n for (; s < e.length; s++)\n i = e[s], i[\"s-sr\"] && (!t || i[\"s-hn\"] === t) && r === void 0 && n.push(i), n = [...n, ...Ee(i.childNodes, t, r)];\n return n;\n}\nvar nt = (e, t, r = !0) => {\n const s = [];\n (r && e[\"s-sr\"] || !e[\"s-sr\"]) && s.push(e);\n let n = e;\n for (; n = n.nextSibling; )\n ie(n) === t && (r || !n[\"s-sr\"]) && s.push(n);\n return s;\n}, ge = (e, t) => e.nodeType === 1 ? e.getAttribute(\"slot\") === null && t === \"\" || e.getAttribute(\"slot\") === t : e[\"s-sn\"] === t ? !0 : t === \"\", ie = (e) => typeof e[\"s-sn\"] == \"string\" ? e[\"s-sn\"] : e.nodeType === 1 && e.getAttribute(\"slot\") || void 0;\nfunction it(e) {\n if (e.assignedElements || e.assignedNodes || !e[\"s-sr\"]) return;\n const t = (r) => (function(s) {\n const n = [], i = this[\"s-sn\"];\n s != null && s.flatten && console.error(`\n Flattening is not supported for Stencil non-shadow slots. \n You can use \\`.childNodes\\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `);\n const o = this[\"s-cr\"].parentElement;\n return (o.__childNodes ? o.childNodes : st(o.childNodes)).forEach((c) => {\n i === ie(c) && n.push(c);\n }), r ? n.filter(\n (c) => c.nodeType === 1\n /* ElementNode */\n ) : n;\n }).bind(e);\n e.assignedElements = t(!0), e.assignedNodes = t(!1);\n}\nfunction $e(e, t) {\n if (\"__\" + t in e) {\n const r = e[\"__\" + t];\n return typeof r != \"function\" ? r : r.bind(e);\n } else\n return typeof e[t] != \"function\" ? e[t] : e[t].bind(e);\n}\nvar ot = (e, t, ...r) => {\n let s = null, n = null, i = null, o = !1, f = !1;\n const c = [], l = (a) => {\n for (let g = 0; g < a.length; g++)\n s = a[g], Array.isArray(s) ? l(s) : s != null && typeof s != \"boolean\" && ((o = !we(s)) && (s = String(s)), o && f ? c[c.length - 1].$text$ += s : c.push(o ? V(null, s) : s), f = o);\n };\n l(r);\n const p = V(e, null);\n return p.$attrs$ = t, c.length > 0 && (p.$children$ = c), p.$key$ = n, p.$name$ = i, p;\n}, V = (e, t) => {\n const r = {\n $flags$: 0,\n $tag$: e,\n $text$: t,\n $elm$: null,\n $children$: null\n };\n return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;\n}, at = {}, lt = (e) => e && e.$tag$ === at, de = (e, t, r, s, n, i, o) => {\n if (r === s)\n return;\n let f = ue(e, t), c = t.toLowerCase();\n if (t === \"class\") {\n const l = e.classList, p = he(r);\n let a = he(s);\n l.remove(...p.filter((g) => g && !a.includes(g))), l.add(...a.filter((g) => g && !p.includes(g)));\n } else if (t === \"style\") {\n for (const l in r)\n (!s || s[l] == null) && (l.includes(\"-\") ? e.style.removeProperty(l) : e.style[l] = \"\");\n for (const l in s)\n (!r || s[l] !== r[l]) && (l.includes(\"-\") ? e.style.setProperty(l, s[l]) : e.style[l] = s[l]);\n } else if (t !== \"key\") if (t === \"ref\")\n s && s(e);\n else if (!e.__lookupSetter__(t) && t[0] === \"o\" && t[1] === \"n\") {\n if (t[2] === \"-\" ? t = t.slice(3) : ue(A, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {\n const l = t.endsWith(Se);\n t = t.replace(ft, \"\"), r && z.rel(e, t, r, l), s && z.ael(e, t, s, l);\n }\n } else {\n const l = we(s);\n if ((f || l && s !== null) && !n)\n try {\n if (e.tagName.includes(\"-\"))\n e[t] !== s && (e[t] = s);\n else {\n const a = s ?? \"\";\n t === \"list\" ? f = !1 : (r == null || e[t] != a) && (typeof e.__lookupSetter__(t) == \"function\" ? e[t] = a : e.setAttribute(t, a));\n }\n } catch {\n }\n let p = !1;\n c !== (c = c.replace(/^xlink\\:?/, \"\")) && (t = c, p = !0), s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === \"\") && (p ? e.removeAttributeNS(pe, t) : e.removeAttribute(t)) : (!f || i & 4 || n) && !l && e.nodeType === 1 && (s = s === !0 ? \"\" : s, p ? e.setAttributeNS(pe, t, s) : e.setAttribute(t, s));\n }\n}, ct = /\\s/, he = (e) => (typeof e == \"object\" && e && \"baseVal\" in e && (e = e.baseVal), !e || typeof e != \"string\" ? [] : e.split(ct)), Se = \"Capture\", ft = new RegExp(Se + \"$\"), ee = (e, t, r, s) => {\n const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = e && e.$attrs$ || {}, o = t.$attrs$ || {};\n for (const f of ye(Object.keys(i)))\n f in o || de(\n n,\n f,\n i[f],\n void 0,\n r,\n t.$flags$\n );\n for (const f of ye(Object.keys(o)))\n de(\n n,\n f,\n i[f],\n o[f],\n r,\n t.$flags$\n );\n};\nfunction ye(e) {\n return e.includes(\"ref\") ? (\n // we need to sort these to ensure that `'ref'` is the last attr\n [...e.filter((t) => t !== \"ref\"), \"ref\"]\n ) : (\n // no need to sort, return the original array\n e\n );\n}\nvar Z, q, L, te = !1, B = !1, oe = !1, b = !1, G = (e, t, r) => {\n var s;\n const n = t.$children$[r];\n let i = 0, o, f, c;\n if (te || (oe = !0, n.$tag$ === \"slot\" && (n.$flags$ |= n.$children$ ? (\n // slot element has fallback content\n // still create an element that \"mocks\" the slot element\n 2\n ) : (\n // slot element does not have fallback content\n // create an html comment we'll use to always reference\n // where actual slot content should sit next to\n 1\n ))), n.$text$ !== null)\n o = n.$elm$ = A.document.createTextNode(n.$text$);\n else if (n.$flags$ & 1)\n o = n.$elm$ = A.document.createTextNode(\"\"), ee(null, n, b);\n else {\n if (b || (b = n.$tag$ === \"svg\"), !A.document)\n throw new Error(\n \"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.\"\n );\n if (o = n.$elm$ = A.document.createElementNS(\n b ? Ke : Ye,\n !te && K.slotRelocation && n.$flags$ & 2 ? \"slot-fb\" : n.$tag$\n ), b && n.$tag$ === \"foreignObject\" && (b = !1), ee(null, n, b), Qe(Z) && o[\"s-si\"] !== Z && o.classList.add(o[\"s-si\"] = Z), n.$children$)\n for (i = 0; i < n.$children$.length; ++i)\n f = G(e, n, i), f && o.appendChild(f);\n n.$tag$ === \"svg\" ? b = !1 : o.tagName === \"foreignObject\" && (b = !0);\n }\n return o[\"s-hn\"] = L, n.$flags$ & 3 && (o[\"s-sr\"] = !0, o[\"s-cr\"] = q, o[\"s-sn\"] = n.$name$ || \"\", o[\"s-rf\"] = (s = n.$attrs$) == null ? void 0 : s.ref, it(o), c = e && e.$children$ && e.$children$[r], c && c.$tag$ === n.$tag$ && e.$elm$ && M(e.$elm$, !1), ke(q, o, t.$elm$, e == null ? void 0 : e.$elm$)), o;\n}, M = (e, t) => {\n z.$flags$ |= 1;\n const r = Array.from(e.__childNodes || e.childNodes);\n e[\"s-sr\"] && K.experimentalSlotFixes;\n for (let s = r.length - 1; s >= 0; s--) {\n const n = r[s];\n n[\"s-hn\"] !== L && n[\"s-ol\"] && (T(F(n).parentNode, n, F(n)), n[\"s-ol\"].remove(), n[\"s-ol\"] = void 0, n[\"s-sh\"] = void 0, oe = !0), t && M(n, t);\n }\n z.$flags$ &= -2;\n}, Oe = (e, t, r, s, n, i) => {\n let o = e[\"s-cr\"] && e[\"s-cr\"].parentNode || e, f;\n for (o.shadowRoot && o.tagName === L && (o = o.shadowRoot); n <= i; ++n)\n s[n] && (f = G(null, r, n), f && (s[n].$elm$ = f, T(o, f, F(t))));\n}, Ae = (e, t, r) => {\n for (let s = t; s <= r; ++s) {\n const n = e[s];\n if (n) {\n const i = n.$elm$;\n Te(n), i && (B = !0, i[\"s-ol\"] ? i[\"s-ol\"].remove() : M(i, !0), i.remove());\n }\n }\n}, ut = (e, t, r, s, n = !1) => {\n let i = 0, o = 0, f = 0, c = 0, l = t.length - 1, p = t[0], a = t[l], g = s.length - 1, u = s[0], $ = s[g], _, w;\n for (; i <= l && o <= g; )\n if (p == null)\n p = t[++i];\n else if (a == null)\n a = t[--l];\n else if (u == null)\n u = s[++o];\n else if ($ == null)\n $ = s[--g];\n else if (W(p, u, n))\n R(p, u, n), p = t[++i], u = s[++o];\n else if (W(a, $, n))\n R(a, $, n), a = t[--l], $ = s[--g];\n else if (W(p, $, n))\n (p.$tag$ === \"slot\" || $.$tag$ === \"slot\") && M(p.$elm$.parentNode, !1), R(p, $, n), T(e, p.$elm$, a.$elm$.nextSibling), p = t[++i], $ = s[--g];\n else if (W(a, u, n))\n (p.$tag$ === \"slot\" || $.$tag$ === \"slot\") && M(a.$elm$.parentNode, !1), R(a, u, n), T(e, a.$elm$, p.$elm$), a = t[--l], u = s[++o];\n else {\n for (f = -1, c = i; c <= l; ++c)\n if (t[c] && t[c].$key$ !== null && t[c].$key$ === u.$key$) {\n f = c;\n break;\n }\n f >= 0 ? (w = t[f], w.$tag$ !== u.$tag$ ? _ = G(t && t[o], r, f) : (R(w, u, n), t[f] = void 0, _ = w.$elm$), u = s[++o]) : (_ = G(t && t[o], r, o), u = s[++o]), _ && T(\n F(p.$elm$).parentNode,\n _,\n F(p.$elm$)\n );\n }\n i > l ? Oe(\n e,\n s[g + 1] == null ? null : s[g + 1].$elm$,\n r,\n s,\n o,\n g\n ) : o > g && Ae(t, i, l);\n}, W = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === \"slot\" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, F = (e) => e && e[\"s-ol\"] || e, R = (e, t, r = !1) => {\n const s = t.$elm$ = e.$elm$, n = e.$children$, i = t.$children$, o = t.$tag$, f = t.$text$;\n let c;\n f === null ? (b = o === \"svg\" ? !0 : o === \"foreignObject\" ? !1 : b, ee(e, t, b), n !== null && i !== null ? ut(s, n, t, i, r) : i !== null ? (e.$text$ !== null && (s.textContent = \"\"), Oe(s, null, t, i, 0, i.length - 1)) : (\n // don't do this on initial render as it can cause non-hydrated content to be removed\n !r && K.updatable && n !== null && Ae(n, 0, n.length - 1)\n ), b && o === \"svg\" && (b = !1)) : (c = s[\"s-cr\"]) ? c.parentNode.textContent = f : e.$text$ !== f && (s.data = f);\n}, x = [], je = (e) => {\n let t, r, s;\n const n = e.__childNodes || e.childNodes;\n for (const i of n) {\n if (i[\"s-sr\"] && (t = i[\"s-cr\"]) && t.parentNode) {\n r = t.parentNode.__childNodes || t.parentNode.childNodes;\n const o = i[\"s-sn\"];\n for (s = r.length - 1; s >= 0; s--)\n if (t = r[s], !t[\"s-cn\"] && !t[\"s-nr\"] && t[\"s-hn\"] !== i[\"s-hn\"])\n if (ge(t, o)) {\n let f = x.find((c) => c.$nodeToRelocate$ === t);\n B = !0, t[\"s-sn\"] = t[\"s-sn\"] || o, f ? (f.$nodeToRelocate$[\"s-sh\"] = i[\"s-hn\"], f.$slotRefNode$ = i) : (t[\"s-sh\"] = i[\"s-hn\"], x.push({\n $slotRefNode$: i,\n $nodeToRelocate$: t\n })), t[\"s-sr\"] && x.map((c) => {\n ge(c.$nodeToRelocate$, t[\"s-sn\"]) && (f = x.find((l) => l.$nodeToRelocate$ === t), f && !c.$slotRefNode$ && (c.$slotRefNode$ = f.$slotRefNode$));\n });\n } else x.some((f) => f.$nodeToRelocate$ === t) || x.push({\n $nodeToRelocate$: t\n });\n }\n i.nodeType === 1 && je(i);\n }\n}, Te = (e) => {\n e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(Te);\n}, T = (e, t, r) => (typeof t[\"s-sn\"] == \"string\" && t[\"s-sr\"] && t[\"s-cr\"] && ke(t[\"s-cr\"], t, e, t.parentElement), e == null ? void 0 : e.insertBefore(t, r));\nfunction ke(e, t, r, s) {\n var n, i;\n let o;\n if (e && typeof t[\"s-sn\"] == \"string\" && t[\"s-sr\"] && e.parentNode && e.parentNode[\"s-sc\"] && (o = t[\"s-si\"] || e.parentNode[\"s-sc\"])) {\n const f = t[\"s-sn\"], c = t[\"s-hn\"];\n if ((n = r.classList) == null || n.add(o + \"-s\"), s && ((i = s.classList) != null && i.contains(o + \"-s\"))) {\n let l = (s.__childNodes || s.childNodes)[0], p = !1;\n for (; l; ) {\n if (l[\"s-sn\"] !== f && l[\"s-hn\"] === c && l[\"s-sr\"]) {\n p = !0;\n break;\n }\n l = l.nextSibling;\n }\n p || s.classList.remove(o + \"-s\");\n }\n }\n}\nvar pt = (e, t, r = !1) => {\n var s, n, i, o, f;\n const c = e.$hostElement$, l = e.$cmpMeta$, p = e.$vnode$ || V(null, null), a = lt(t) ? t : ot(null, null, t);\n if (L = c.tagName, l.$attrsToReflect$ && (a.$attrs$ = a.$attrs$ || {}, l.$attrsToReflect$.map(\n ([g, u]) => a.$attrs$[u] = c[g]\n )), r && a.$attrs$)\n for (const g of Object.keys(a.$attrs$))\n c.hasAttribute(g) && ![\"key\", \"ref\", \"style\", \"class\"].includes(g) && (a.$attrs$[g] = c[g]);\n a.$tag$ = null, a.$flags$ |= 4, e.$vnode$ = a, a.$elm$ = p.$elm$ = c.shadowRoot || c, Z = c[\"s-sc\"], te = !!(l.$flags$ & 1) && !(l.$flags$ & 128), q = c[\"s-cr\"], B = !1, R(p, a, r);\n {\n if (z.$flags$ |= 1, oe) {\n je(a.$elm$);\n for (const g of x) {\n const u = g.$nodeToRelocate$;\n if (!u[\"s-ol\"] && A.document) {\n const $ = A.document.createTextNode(\"\");\n $[\"s-nr\"] = u, T(u.parentNode, u[\"s-ol\"] = $, u);\n }\n }\n for (const g of x) {\n const u = g.$nodeToRelocate$, $ = g.$slotRefNode$;\n if ($) {\n const _ = $.parentNode;\n let w = $.nextSibling;\n {\n let y = (s = u[\"s-ol\"]) == null ? void 0 : s.previousSibling;\n for (; y; ) {\n let h = (n = y[\"s-nr\"]) != null ? n : null;\n if (h && h[\"s-sn\"] === u[\"s-sn\"] && _ === (h.__parentNode || h.parentNode)) {\n for (h = h.nextSibling; h === u || h != null && h[\"s-sr\"]; )\n h = h == null ? void 0 : h.nextSibling;\n if (!h || !h[\"s-nr\"]) {\n w = h;\n break;\n }\n }\n y = y.previousSibling;\n }\n }\n const P = u.__parentNode || u.parentNode, S = u.__nextSibling || u.nextSibling;\n (!w && _ !== P || S !== w) && u !== w && (!u[\"s-hn\"] && u[\"s-ol\"] && (u[\"s-hn\"] = u[\"s-ol\"].parentNode.nodeName), T(_, u, w), u.nodeType === 1 && u.tagName !== \"SLOT-FB\" && (u.hidden = (i = u[\"s-ih\"]) != null ? i : !1)), u && typeof $[\"s-rf\"] == \"function\" && $[\"s-rf\"]($);\n } else\n u.nodeType === 1 && (r && (u[\"s-ih\"] = (o = u.hidden) != null ? o : !1), u.hidden = !0);\n }\n }\n B && xe(a.$elm$), z.$flags$ &= -2, x.length = 0;\n }\n if (K.experimentalScopedSlotChanges && l.$flags$ & 2) {\n const g = a.$elm$.__childNodes || a.$elm$.childNodes;\n for (const u of g)\n u[\"s-hn\"] !== L && !u[\"s-sh\"] && (r && u[\"s-ih\"] == null && (u[\"s-ih\"] = (f = u.hidden) != null ? f : !1), u.hidden = !0);\n }\n q = void 0;\n};\nconst D = {\n content_wrap: 0,\n ignore: [],\n ignore_with: \"_!i-£___£%_\",\n strict: !1,\n tab_size: 2,\n tag_wrap: 0,\n tag_wrap_width: 80,\n trim: []\n}, E = \"__!i-£___£%__\", m = \"!i-£___£%_\", Re = [\n \"area\",\n \"base\",\n \"br\",\n \"col\",\n \"embed\",\n \"hr\",\n \"img\",\n \"input\",\n \"link\",\n \"meta\",\n \"param\",\n \"source\",\n \"track\",\n \"wbr\"\n], ae = (e) => /<(?:[A-Za-z]+[A-Za-z0-9]*)(?:\\s+.*?)*?\\/{0,1}>/.test(e) || /<(?<Element>(?:[A-Za-z]+[A-Za-z0-9]*:)?(?:[A-Za-z]+[A-Za-z0-9]*))(?:\\s+.*?)*?>(?:.|\\n)*?<\\/{1}\\k<Element>>/.test(e) || /<(?<Element>(?:[a-z][a-z0-9._]*:)?[a-z][a-z0-9._]*-[a-z0-9._-]+)(?:\\s+.*?)*?>(?:.|\\n)*?<\\/{1}\\k<Element>>/.test(e), Ne = (e, t) => {\n if (!e || !t)\n throw new Error(\"Both 'current' and 'updates' must be passed-in to mergeObjects()\");\n let r;\n if (Array.isArray(e))\n r = structuredClone(e).concat(t);\n else if (typeof e == \"object\") {\n r = { ...e };\n for (let s of Object.keys(t))\n typeof t[s] != \"object\" ? r[s] = t[s] : r[s] = Ne(r[s] || {}, t[s]);\n }\n return r;\n}, gt = (e, t) => Ne(structuredClone(e), t), $t = (e) => (e = e.replace(/<[\\w:\\-]+([^>]*[^\\/])>/g, (t, r) => t.replace(r, (s) => s.replace(/\\n/g, m + \"nl!\").replace(/\\r/g, m + \"cr!\").replace(/\\s/g, m + \"ws!\"))), e), dt = (e) => e.replace(/\\n/g, E + \"nl!\").replace(/\\r/g, E + \"cr!\").replace(/\\s/g, E + \"ws!\"), ht = (e) => {\n const t = /\\s*<([a-zA-Z0-9:-]+)[^>]*>\\n\\s*<\\/\\1>(?=\\n[ ]*[^\\n]*__!i-£___£%__[^\\n]*\\n)(\\n[ ]*\\S[^\\n]*\\n)|<([a-zA-Z0-9:-]+)[^>]*>(?=\\n[ ]*[^\\n]*__!i-£___£%__[^\\n]*\\n)(\\n[ ]*\\S[^\\n]*\\n\\s*)<\\/\\3>/g;\n return e.replace(t, (r, s, n, i, o) => {\n const f = n || o;\n if (!f)\n return r;\n const c = f.replace(/\\n/g, E + \"nl!\").replace(/\\r/g, E + \"cr!\").replace(/\\s/g, E + \"ws!\");\n return r.replace(f, c);\n });\n}, yt = (e) => {\n const t = /<([A-Za-z][A-Za-z0-9]*|[a-z][a-z0-9._]*-[a-z0-9._-]+)((?:\\s+[A-Za-z0-9_-]+=\"[^\"]*\"|\\s*[a-z]*)*)>/g;\n return e = e.replace(t, (r, s, n) => r.replace(n, (i) => i.replace(/</g, m + \"lt!\").replace(/>/g, m + \"gt!\"))), e;\n}, _t = (e, t) => {\n const r = t.ignore, s = t.ignore_with;\n for (let n = 0; n < r.length; n++) {\n const i = new RegExp(`<${r[n]}[^>]*>((.|\n)*?)</${r[n]}>`, \"g\");\n e = e.replace(i, (o, f) => o.replace(f, (c) => c.replace(/</g, \"-\" + s + \"lt-\").replace(/>/g, \"-\" + s + \"gt-\").replace(/\\n/g, \"-\" + s + \"nl-\").replace(/\\r/g, \"-\" + s + \"cr-\").replace(/\\s/g, \"-\" + s + \"ws-\")));\n }\n return e;\n}, bt = (e, t) => {\n for (let r = 0; r < t.length; r++) {\n const s = new RegExp(`(<${t[r]}[^>]*>)\\\\s+`, \"g\"), n = new RegExp(`\\\\s+(</${t[r]}>)`, \"g\");\n e = e.replace(s, \"$1\").replace(n, \"$1\");\n }\n return e;\n}, vt = (e) => (e = e.replace(/<[\\w:\\-]+([^>]*[^\\/])>/g, (t, r) => t.replace(r, (s) => s.replace(new RegExp(m + \"nl!\", \"g\"), `\n`).replace(new RegExp(m + \"cr!\", \"g\"), \"\\r\").replace(new RegExp(m + \"ws!\", \"g\"), \" \"))), e), wt = (e) => (e = e.replace(/.*__!i-£___£%__[a-z]{2}!.*/g, (t) => t.replace(/__!i-£___£%__[a-z]{2}!/g, (r) => r.replace(new RegExp(E + \"nl!\", \"g\"), `\n`).replace(new RegExp(E + \"cr!\", \"g\"), \"\\r\").replace(new RegExp(E + \"ws!\", \"g\"), \" \"))), e), mt = (e) => (e = e.replace(/<[\\w:\\-]+([^>]*)>/g, (t, r) => t.replace(r, (s) => s.replace(new RegExp(m + \"lt!\", \"g\"), \"<\").replace(new RegExp(m + \"gt!\", \"g\"), \">\"))), e), xt = (e, t) => {\n const r = t.ignore, s = t.ignore_with;\n for (let n = 0; n < r.length; n++) {\n const i = new RegExp(`<${r[n]}[^>]*>((.|\n)*?)</${r[n]}>`, \"g\");\n e = e.replace(i, (o, f) => o.replace(f, (c) => c.replace(new RegExp(\"-\" + s + \"lt-\", \"g\"), \"<\").replace(new RegExp(\"-\" + s + \"gt-\", \"g\"), \">\").replace(new RegExp(\"-\" + s + \"nl-\", \"g\"), `\n`).replace(new RegExp(\"-\" + s + \"cr-\", \"g\"), \"\\r\").replace(new RegExp(\"-\" + s + \"ws-\", \"g\"), \" \")));\n }\n return e;\n}, Et = (e) => {\n var s, n;\n if (typeof e != \"object\") throw new Error(\"Config must be an object.\");\n if (!(Object.hasOwn(e, \"content_wrap\") || Object.hasOwn(e, \"ignore\") || Object.hasOwn(e, \"ignore_with\") || Object.hasOwn(e, \"strict\") || Object.hasOwn(e, \"tab_size\") || Object.hasOwn(e, \"tag_wrap\") || Object.hasOwn(e, \"tag_wrap_width\") || Object.hasOwn(e, \"trim\"))) return D;\n let r = e.tab_size;\n if (r) {\n if (typeof r != \"number\") throw new Error(`tab_size must be a number, not ${typeof e.tab_size}.`);\n if (!Number.isSafeInteger(r)) throw new Error(`Tab size ${r} is not safe. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger for more info.`);\n if (r = Math.floor(r), r < 1 || r > 16) throw new Error(\"Tab size out of range. Expecting 1 to 16.\");\n e.tab_size = r;\n }\n if (Object.hasOwn(e, \"content_wrap\") && typeof e.content_wrap != \"number\")\n throw new Error(`content_wrap config must be a number, not ${typeof e.tag_wrap_width}.`);\n if (Object.hasOwn(e, \"ignore\") && (!Array.isArray(e.ignore) || !((s = e.ignore) != null && s.every((i) => typeof i == \"string\"))))\n throw new Error(\"Ignore config must be an array of strings.\");\n if (Object.hasOwn(e, \"ignore_with\") && typeof e.ignore_with != \"string\")\n throw new Error(`Ignore_with config must be a string, not ${typeof e.ignore_with}.`);\n if (Object.hasOwn(e, \"strict\") && typeof e.strict != \"boolean\")\n throw new Error(`Strict config must be a boolean, not ${typeof e.strict}.`);\n if (Object.hasOwn(e, \"tag_wrap\") && typeof e.tag_wrap == \"boolean\" && (console.warn(\"tag_wrap as a boolean is deprecated, and will not be supported in v0.9.0+. Use `tag_wrap: <number>` instead; where <number> is the max character width acceptable before wrapping attributes.\"), e.tag_wrap_width ? e.tag_wrap = e.tag_wrap_width : e.tag_wrap = D.tag_wrap_width), Object.hasOwn(e, \"tag_wrap\") && typeof e.tag_wrap != \"number\")\n throw new Error(`tag_wrap config must be a number, not ${typeof e.tag_wrap}.`);\n if (Object.hasOwn(e, \"tag_wrap_width\") && console.warn(\"tag_wrap_width is deprecated, and will not be supported in v0.9.0+. Use `tag_wrap: <number>` instead; where <number> is the max character width acceptable before wrapping attributes.\"), Object.hasOwn(e, \"tag_wrap_width\") && typeof e.tag_wrap_width != \"number\")\n throw new Error(`tag_wrap_width config must be a number, not ${typeof e.tag_wrap_width}.`);\n if (Object.hasOwn(e, \"trim\") && (!Array.isArray(e.trim) || !((n = e.trim) != null && n.every((i) => typeof i == \"string\"))))\n throw new Error(\"Trim config must be an array of strings.\");\n return gt(D, e);\n}, St = (e, t, r) => {\n const s = e.trim().split(/\\s+/);\n if (s.length === 0 || s.length === 1 && s[0] === \"\")\n return \"\";\n const n = [];\n let i = \"\";\n const o = r;\n s.forEach((c) => {\n if (c === \"\") return;\n if (c.length >= t) {\n i !== \"\" && n.push(n.length === 0 ? r + i : o + i), n.push(n.length === 0 ? r + c : o + c), i = \"\";\n return;\n }\n const l = i === \"\" ? c : i + \" \" + c;\n l.length <= t ? i = l : (i !== \"\" && n.push(n.length === 0 ? r + i : o + i), i = c);\n }), i !== \"\" && n.push(n.length === 0 ? r + i : o + i);\n const f = n.join(`\n`);\n return dt(f);\n}, Ot = (e, t = !0) => t && !ae(e) ? e : e.replace(/<([a-zA-Z\\-0-9:]+)[^>]*>/g, (r, s) => Re.indexOf(s) > -1 ? `${r.substring(0, r.length - 1)} />`.replace(/\\/\\s\\//g, \"/\") : r.replace(/[\\s]?\\/>/g, `></${s}>`)), At = (e, t = !1) => (e = e.replace(/<textarea[^>]*>((.|\\n)*?)<\\/textarea>/g, (r, s) => r.replace(s, (n) => n.replace(/</g, \"<\").replace(/>/g, \">\").replace(/\"/g, \""\").replace(/'/g, \"'\").replace(/\\n/g, \" \").replace(/\\r/g, \" \").replace(/\\s/g, \" \"))), t && (e = e.replace(/<textarea[^>]*>((.|\\n)*?)<\\/textarea>/g, (r, s) => (r = r.replace(s, (n) => n.replace(/\\n|\\t/g, \"\").replace(/[a-z]+=\"\\s*\"/ig, \"\").replace(/>\\s+</g, \"><\").replace(/\\s+/g, \" \")), r = r.replace(/\\s+/g, \" \").replace(/\\s>/g, \">\").replace(/>\\s/g, \">\").replace(/\\s</g, \"<\").replace(/class=[\"']\\s/g, (n) => n.replace(/\\s/g, \"\")).replace(/(class=.*)\\s([\"'])/g, \"$1$2\"), r))), e), jt = (e, t = !0) => (t && !ae(e) || (e = At(e), e = e.replace(/\\n|\\t/g, \"\"), e = e.replace(/>\\s+</g, \"><\"), e = e.replace(/ {2,}/g, \" \"), e = e.replace(/ >/g, \">\"), e = e.replace(/ </g, \"<\"), e = e.replace(/> /g, \">\"), e = e.replace(/<\\s*\\//g, \"</\"), e = e.replace(/ = /g, \"=\"), e = e.replace(\n /([a-zA-Z0-9_-]+)=(['\"])(.*?)\\2/g,\n (r, s, n, i) => {\n const o = i.trim();\n return `${s}=${n}${o}${n}`;\n }\n), e = e.trim()), e);\nlet H, re;\nconst I = {\n line: []\n}, Tt = (e) => {\n I.line = [];\n let t = -1;\n const r = /(<[^>]+>)|([^<]+)/g;\n return e = e.replace(r, (s, n, i) => (n ? I.line.push({ type: \"tag\", value: s }) : i && i.trim().length > 0 && I.line.push({ type: \"text\", value: s }), t++, `\n[#-# : ${t} : ${s} : #-#]\n`)), e;\n}, kt = (e) => (e = Ot(e, !1), re.length > 0 && (e = bt(e, re)), e = jt(e, !1), e = Tt(e), e), Rt = (e, t) => {\n const r = \" \".repeat(t.tab_size), s = t.tag_wrap, n = t.content_wrap;\n let i = \"\";\n const o = [], f = /<[A-Za-z]+\\b[^>]*(?:.|\\n)*?\\/?>/g, c = /\\s{1}[A-Za-z-]+(?:=\".*?\")?/g;\n I.line.forEach((p, a) => {\n let g = p.value, u = 0;\n const $ = I.line[a - 1], _ = ($ == null ? void 0 : $.value) ?? \"\";\n i += \"0\", a === 0 && u++, g.trim().startsWith(\"</\") && u++, _.trim().startsWith(\"<!doctype\") && u++, _.trim().startsWith(\"<!--\") && u++, _.trim().endsWith(\"/>\") && u++, _.trim().startsWith(\"</\") && u++, ($ == null ? void 0 : $.type) === \"text\" && u++;\n const P = Math.max(0, i.length - u);\n i = i.substring(0, P);\n const S = r.repeat(P);\n if (H && g.trim().startsWith(\"<!--\"))\n return;\n let y = g;\n if (p.type === \"text\" && n > 0 && y.length >= n)\n y = St(y, n, S);\n else if (s > 0 && y.length > s && f.test(y)) {\n f.lastIndex = 0, c.lastIndex = 0;\n const h = y.split(c).filter(Boolean);\n if (h.length >= 2) {\n const Le = y.matchAll(c), Me = S + r;\n let Y = S + h[0] + `\n`;\n for (const We of Le) {\n const Ze = We[0].trim();\n Y += Me + Ze + `\n`;\n }\n const le = h[0].match(/<([A-Za-z_:-]+)/), Fe = le ? le[1] : \"\", Ce = Re.includes(Fe), Pe = h[1].trim(), Ue = S + (H && Ce ? \" \" : \"\");\n Y += Ue + Pe, y = Y;\n } else\n y = S + y;\n } else\n y = S + y;\n o.push(y);\n });\n let l = o.join(`\n`);\n return s > 0 && (l = $t(l)), n > 0 && /\\n[ ]*[^\\n]*__!i-£___£%__[^\\n]*\\n/.test(l) && (l = ht(l)), l = l.replace(\n /<(?<Element>.+).*>[^<]*?[^><\\/\\s][^<]*?<\\/{1}\\k<Element>|<script[^>]*>\\s+<\\/script>|<(\\w+)>\\s+<\\/(\\w+)|<(?:([\\w:\\._-]+)|([\\w:\\._-]+)[^>]*[^\\/])>\\s+<\\/([\\w:\\._-]+)>/g,\n (p) => p.replace(/\\n|\\t|\\s{2,}/g, \"\")\n ), n > 0 && (l = wt(l)), s > 0 && (l = vt(l)), H && (l = l.replace(/\\s\\/>|\\/>/g, \">\")), l.startsWith(`\n`) && (l = l.substring(1)), l.endsWith(`\n`) && (l = l.substring(0, l.length - 1)), l;\n}, Nt = (e, t) => {\n if (!ae(e)) return e;\n const r = t ? Et(t) : D;\n H = r.strict;\n const s = r.ignore.length > 0;\n return re = r.trim, s && (e = _t(e, r)), e = yt(e), e = kt(e), e = Rt(e, r), e = mt(e), s && (e = xt(e, r)), e;\n}, zt = (e, t, r) => {\n [null, void 0, \"\", !1].includes(r) || [\"innerHTML\", \"style\", \"\"].includes(t) || e.setAttribute(t, [\"object\", \"function\"].includes(typeof r) ? \"⚠️ Property must be set through a script or a framework-specific syntax.\" : r);\n}, ze = (e, t, r, s, n) => {\n if (t && typeof t == \"string\") {\n const i = document.createElement(t);\n Object.keys(r || {}).forEach((o) => {\n zt(i, o, r[o]);\n }), s == null || s.forEach((o) => {\n ze(i, o.$tag$, o.$attrs$, o.$children$, o.$text$);\n }), r != null && r.innerHTML && (i.innerHTML = r.innerHTML), e.appendChild(i);\n }\n n && (e.innerHTML = n);\n}, tr = (e, t, r = []) => {\n const s = {};\n if (typeof e != \"object\")\n throw new Error(\"filterArgs - args isn't an object.\");\n for (const n in e)\n if (!r.includes(n)) {\n const i = e[n], o = n.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n (!t || !Object.keys(t).includes(n) || t[n] !== i) && (s[o] = i);\n }\n return s;\n}, rr = (e, t) => {\n var s, n;\n const r = document.getElementById(\"storybook-root\");\n if (r !== null)\n return (n = document.querySelector(\"[lang]\")) == null || n.setAttribute(\"lang\", ((s = t.globals) == null ? void 0 : s.locale) || \"en\"), pt(\n {\n $cmpMeta$: {\n $flags$: 0,\n $tagName$: r.tagName\n },\n $hostElement$: r\n },\n e(t)\n ), r.children[r.children.length - 1];\n}, sr = ({ $tag$: e, $attrs$: t, $children$: r, $text$: s }) => {\n const n = document.createElement(\"div\");\n return ze(n, e, t, r, s), Nt(n.innerHTML, {\n tag_wrap: 40,\n content_wrap: 120\n }).replace(/=\"true\"/g, \"\");\n}, J = (e, t) => {\n if (!t)\n return;\n const r = t.split(\"/\");\n return `${e}${r.slice(2, r.length - 1).join(\"-\")}--docs`;\n};\nvar j, X;\nclass nr {\n constructor(t) {\n /**\n * JsonDocs\n */\n d(this, \"jsonDoc\");\n /**\n * Get component data from the jsonDoc\n * @param tagName - tag name we want to get the data from\n * @returns component data\n */\n k(this, j, (t) => this.jsonDoc.components.find((r) => r.tag === t));\n /**\n * Get the control for the given prop\n * Based on https://storybook.js.org/docs/api/arg-types#controltype\n * @param prop - prop to get control for\n * @returns control type and options if applicable\n */\n k(this, X, (t) => {\n const r = t.type.replace(/\"([^\"]+)\"/g, \"$1\").replace(/\\s/g, \"\").replace(/\\(.*?\\)/g, (s) => s.replace(/\\|/g, \" OR \")).split(\"|\").map((s) => s.trim().replace(/ OR /g, \"|\"));\n return t.type === \"string\" ? { control: { type: \"text\" } } : t.type === \"number\" ? { control: { type: \"number\" } } : t.type === \"boolean\" ? { control: { type: \"boolean\" } } : t.type.startsWith(\"{\") && t.type.endsWith(\"}\") ? { control: { type: \"object\" } } : r.length > 1 ? r.includes(\"string\") ? { control: { type: \"text\" } } : r.every((s) => s == null ? void 0 : s.includes(\"[]\")) ? { control: { type: \"object\" } } : (r.unshift(void 0), { control: { type: \"select\" }, options: r }) : { control: { type: \"object\" } };\n });\n /**\n * Extract component arg types from the component data\n * @param tagName - tag name we want to extract the arg types from\n * @returns component arg types\n */\n d(this, \"extractArgTypes\", (t) => {\n const r = v(this, j).call(this, t), s = r == null ? void 0 : r.props.reduce((p, a) => {\n const { control: g, options: u } = v(this, X).call(this, a);\n return {\n ...p,\n [a.name]: {\n name: a.attr || a.name,\n description: a.docs,\n type: { required: a.required },\n table: {\n category: \"props\",\n type: { summary: a.type },\n defaultValue: { summary: a.default }\n },\n control: g,\n options: u\n }\n };\n }, {}), n = r == null ? void 0 : r.events.reduce(\n (p, a) => ({\n ...p,\n [a.event]: {\n name: a.event,\n description: a.docs,\n table: {\n category: \"events\",\n type: { summary: a.detail }\n }\n }\n }),\n {}\n ), i = r == null ? void 0 : r.methods.reduce(\n (p, a) => ({\n ...p,\n [a.name]: {\n name: a.name,\n description: a.docs,\n table: {\n category: \"methods\",\n type: { summary: a.signature }\n }\n }\n }),\n {}\n ), o = r == null ? void 0 : r.slots.reduce(\n (p, a) => ({\n ...p,\n [a.name]: {\n name: a.name !== \"\" ? a.name : \"default\",\n // default slot are unnamed\n description: a.docs,\n table: {\n category: \"slots\",\n type: { summary: void 0 }\n }\n }\n }),\n {}\n ), f = r == null ? void 0 : r.styles.reduce(\n (p, a) => ({\n ...p,\n [a.name]: {\n name: a.name,\n description: a.docs,\n table: {\n category: \"custom properties\",\n type: { summary: void 0 }\n }\n }\n }),\n {}\n ), c = r == null ? void 0 : r.dependencies.reduce((p, a) => {\n const g = v(this, j).call(this, a);\n return g ? {\n ...p,\n [a]: {\n name: a,\n description: `<a href=\"./?path=/docs/${J(\"\", g == null ? void 0 : g.filePath)}\">View Component Documentation</a>`,\n table: {\n category: \"depends on\",\n type: { summary: void 0 }\n }\n }\n } : p;\n }, {}), l = r == null ? void 0 : r.dependents.reduce((p, a) => {\n const g = v(this, j).call(this, a);\n return g ? {\n ...p,\n [a]: {\n name: a,\n description: `<a href=\"./?path=/docs/${J(\"\", g == null ? void 0 : g.filePath)}\">View Component Documentation</a>`,\n table: {\n category: \"used by\",\n type: { summary: void 0 }\n }\n }\n } : p;\n }, {});\n return {\n ...s,\n ...n,\n ...i,\n ...o,\n ...f,\n ...c,\n ...l\n };\n });\n /**\n * Extract component description from the component data\n * @param tagName - tag name we want to extract the description from\n * @returns component description\n */\n d(this, \"extractComponentDescription\", (t) => {\n const r = v(this, j).call(this, t);\n return (r == null ? void 0 : r.readme) || (r == null ? void 0 : r.docs);\n });\n this.jsonDoc = t;\n }\n}\nj = new WeakMap(), X = new WeakMap();\nconst It = (e, t) => {\n if (t)\n return `${e}${t}`;\n}, Ie = (e) => {\n let t = e.overview ? `${e.overview}\n\n` : \"\";\n const r = e.props.filter(({ attr: n }) => n !== void 0);\n r.length && (t += `Attributes:\n`, t += r.map(({ attr: n, docs: i }) => `- \\`${n}\\`: ${i}\n`).join(\"\"), t += `\n`);\n const s = e.props.filter(({ attr: n }) => n === void 0);\n return s.length && (t += `Properties:\n`, t += s.map(({ name: n, docs: i }) => `- \\`${n}\\`: ${i}\n`).join(\"\"), t += `\n`), e.methods.length && (t += `Methods:\n`, t += e.methods.map(({ name: n, docs: i }) => `- \\`${n}\\`: ${i}\n`).join(\"\"), t += `\n`), e.events.length && (t += `Events:\n`, t += e.events.map(({ event: n, docs: i }) => `- \\`${n}\\`: ${i}\n`).join(\"\"), t += `\n`), e.listeners.length && (t += `Listeners:\n`, t += e.listeners.map(({ event: n }) => `- \\`${n}\\`\n`).join(\"\"), t += `\n`), e.slots.length && (t += `Slots:\n`, t += e.slots.map(({ name: n, docs: i }) => `- \\`${n}\\`: ${i}\n`).join(\"\"), t += `\n`), t;\n}, se = (e) => `${e.docs}\n\nType: \\`${e.type}\\``, ir = (e, t, r, s) => ({\n $schema: \"https://json.schemastore.org/web-types\",\n name: e,\n version: t,\n \"description-markup\": \"markdown\",\n contributions: {\n html: {\n elements: r.components.map((n) => {\n const i = J(s, n.filePath);\n return {\n name: n.tag,\n description: Ie(n),\n \"doc-url\": i,\n attributes: n.props.filter((o) => o.attr).map((o) => ({\n name: o.attr,\n description: se(o),\n \"doc-url\": i,\n value: {\n type: o.type,\n default: o.default,\n required: o.required\n }\n })),\n js: {\n properties: n.props.map((o) => ({\n name: o.name,\n description: se(o),\n \"doc-url\": i,\n value: {\n type: o.type,\n default: o.default,\n required: o.required\n }\n })),\n events: n.events.map((o) => ({\n name: o.event,\n description: o.docs\n }))\n },\n css: {\n properties: n.styles.map((o) => ({\n name: o.name,\n description: o.docs\n }))\n }\n };\n })\n }\n }\n}), Lt = (e, t, r) => [\n { name: \"Storybook\", url: J(e, r) },\n { name: \"Sources\", url: It(t, r) }\n], Mt = (e) => {\n if (!e.values.some(({ value: t }) => t === void 0))\n return e.values.map(({ value: t }) => ({ name: t }));\n}, or = (e, t, r) => ({\n version: 1.1,\n tags: e.components.map((s) => {\n const n = Lt(t, r, s.filePath);\n return {\n name: s.tag,\n description: Ie(s),\n attributes: s.props.map((i) => ({\n name: i.attr || i.name,\n description: se(i),\n values: Mt(i),\n references: n\n })),\n references: n\n };\n }),\n globalAttributes: [],\n valueSets: []\n}), ar = (e) => ({\n version: 1.1,\n properties: e.components.flatMap(\n (t) => t.styles.map((r) => ({\n name: r.name,\n description: r.docs\n }))\n )\n}), lr = (e) => {\n const t = { value: \"2023\", pattern: \"yyyy\" }, r = { value: \"12\", pattern: \"mm\" }, s = { value: \"24\", pattern: \"dd\" };\n return Pt([t.value, r.value, s.value].join(\"-\"), e, { timeZone: \"UTC\" }).replace(t.value, t.pattern).replace(r.value, r.pattern).replace(s.value, s.pattern);\n}, cr = (e) => e.toISOString().split(\"T\")[0], Ft = (e, t, r) => {\n const s = e.closest(\"[lang]\"), n = Intl.NumberFormat.supportedLocalesOf(s == null ? void 0 : s.lang), i = n.length > 0 && typeof n[0] == \"string\" ? n[0] : navigator.language || r, o = i.split(\"-\").shift();\n return Object.keys(t).length === 0 ? {\n locale: i,\n messages: { lang: r }\n } : {\n locale: i,\n messages: t[o] || t[r] || { lang: r }\n };\n}, fr = (e, t, r) => new Intl.NumberFormat(t, { style: \"currency\", currency: r }).format(e), ur = (e, t, r = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: r }).format(Number(e)), pr = (e, t, r = 0) => new Intl.NumberFormat(t, {\n style: \"percent\",\n minimumFractionDigits: r,\n maximumFractionDigits: r\n}).format(e), gr = (e, t, r, s = \"short\", n = 0) => new Intl.NumberFormat(t, {\n style: \"unit\",\n unit: r,\n unitDisplay: s,\n minimumFractionDigits: n,\n maximumFractionDigits: n\n}).format(e), Ct = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/, Pt = (e, t, r) => typeof e != \"string\" || e === \"\" || !Ct.test(e) ? \"\" : new Intl.DateTimeFormat(t, r).format(new Date(e)), $r = (e, t) => (r) => Ft(r, e, t), dr = ({ disconnect: e, observe: t, takeRecords: r }) => {\n class s {\n constructor(i) {\n /**\n *\n */\n d(this, \"disconnect\", e);\n /**\n *\n */\n d(this, \"observe\", t);\n /**\n *\n */\n d(this, \"takeRecords\", r);\n /**\n *\n */\n d(this, \"cb\");\n this.cb = i;\n }\n }\n return [window, global].forEach((n) => {\n Object.defineProperty(n, \"MutationObserver\", {\n writable: !0,\n configurable: !0,\n value: s\n });\n }), s;\n}, hr = ({ disconnect: e, observe: t }) => {\n class r {\n constructor(n) {\n /**\n *\n */\n d(this, \"disconnect\", e);\n /**\n *\n */\n d(this, \"observe\", t);\n /**\n *\n */\n d(this, \"unobserve\");\n /**\n *\n */\n d(this, \"cb\");\n this.cb = n;\n }\n }\n return [window, global].forEach((s) => {\n Object.defineProperty(s, \"ResizeObserver\", {\n writable: !0,\n configurable: !0,\n value: r\n });\n }), r;\n};\nclass Ut extends Event {\n constructor() {\n super(...arguments);\n /**\n *\n */\n d(this, \"detail\");\n }\n // eslint-disable-line @typescript-eslint/no-explicit-any\n}\nconst yr = () => {\n class e extends Ut {\n }\n return [window, global].forEach((t) => {\n Object.defineProperty(t, \"SubmitEvent\", {\n writable: !0,\n configurable: !0,\n value: e\n });\n }), e;\n}, _r = (e) => {\n const t = (r) => (setTimeout(r, 1), e(), 0);\n return [window, global].forEach((r) => {\n Object.defineProperty(r, \"requestAnimationFrame\", {\n writable: !0,\n configurable: !0,\n value: t\n });\n }), t;\n};\nexport {\n Ht as ClassList,\n Vt as Cursor,\n Ge as Page,\n er as Paginate,\n nr as StorybookPreview,\n qt as allItemsAreString,\n Yt as cleanString,\n Zt as createID,\n Ct as dateRegExp,\n cr as dateToString,\n $r as defineLocales,\n tr as filterArgs,\n Gt as focusableElements,\n lr as getLocaleDatePattern,\n Be as getObjectValueFromKey,\n _e as getParentWindows,\n sr as getStoryHTML,\n J as getStorybookUrl,\n Jt as getWindows,\n ne as isObject,\n Bt as isTagName,\n Kt as isValidNumber,\n qe as isValidString,\n Dt as isValideID,\n fr as localeCurrency,\n Pt as localeDate,\n ur as localeNumber,\n pr as localePercent,\n gr as localeUnit,\n Qt as nextTick,\n _r as setUpRequestAnimationFrameMock,\n dr as setupMutationObserverMock,\n hr as setupResizeObserverMock,\n yr as setupSubmitEventMock,\n rr as stencilWrapper,\n Xt as toString,\n ar as vsCodeCssGenerator,\n or as vsCodeGenerator,\n ir as webTypesGenerator\n};\n//# sourceMappingURL=index.es.js.map\n"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,MAAM,CAAC,cAAc;AAC9B,IAAI,EAAE,GAAG,CAAC,CAAC,KAAK;AAChB,EAAE,MAAM,SAAS,CAAC,CAAC,CAAC;AACpB,CAAC;AACD,IAAI,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,IAAE,EAAE,YAAY,EAAE,IAAE,EAAE,QAAQ,EAAE,IAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AAChH,IAAI,CAAC,GAAG,CAAC,CAAC,E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C,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE;AAC7E,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,IAAI,EAAE,CAAC;AACT,EAAE,WAAW,EAAE,CAAC;AAChB,EAAE,qBAAqB,EAAE,CAAC;AAC1B,EAAE,qBAAqB,EAAE;AACzB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,+CAA+C,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,QAAQ,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const E={TAB:"Tab",ENTER:"Enter",DOWN:"Down",UP:"Up",LEFT:"Left",RIGHT:"Right",ARROWDOWN:"ArrowDown",ARROWUP:"ArrowUp",ARROWRIGHT:"ArrowRight",ARROWLEFT:"ArrowLeft",HOME:"Home",END:"End",ESC:"Esc",ESCAPE:"Escape",NUMPADENTER:"NumpadEnter",SPACE:"Space"};export{E as K};
|
|
2
|
+
//# sourceMappingURL=p-yMGqY8YG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"p-yMGqY8YG.js","sources":["src/utils/events.utils.ts"],"sourcesContent":["/**\n * Keyboard keys\n */\nexport const Keys: Record<string, KeyboardEvent['key']> = {\n TAB: 'Tab',\n ENTER: 'Enter',\n DOWN: 'Down',\n UP: 'Up',\n LEFT: 'Left',\n RIGHT: 'Right',\n ARROWDOWN: 'ArrowDown',\n ARROWUP: 'ArrowUp',\n ARROWRIGHT: 'ArrowRight',\n ARROWLEFT: 'ArrowLeft',\n HOME: 'Home',\n END: 'End',\n ESC: 'Esc',\n ESCAPE: 'Escape',\n NUMPADENTER: 'NumpadEnter',\n SPACE: 'Space',\n};\n"],"names":[],"mappings":"AAAA;;AAEG;AACU,MAAA,IAAI,GAAyC;AACxD,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,EAAE,EAAE,IAAI;AACR,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,UAAU,EAAE,YAAY;AACxB,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,WAAW,EAAE,aAAa;AAC1B,IAAA,KAAK,EAAE,OAAO;;;;;"}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import { type ExtendedPlacement, placements } from '../../../utils/floating-ui.utils';
|
|
2
|
-
export * from '../../../utils/floating-ui.utils';
|
|
3
1
|
export type GuardType = 'focus' | 'hoverTooltip' | 'hoverTooltiped' | 'disableOnClick';
|
|
4
2
|
export declare const Guard: Record<string, GuardType>;
|
|
5
|
-
/**
|
|
6
|
-
* Placement type from placements
|
|
7
|
-
*/
|
|
8
|
-
export type TooltipPlacementType = ExtendedPlacement & (typeof placements)[number];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Placement } from '@popperjs/core';
|
|
2
2
|
/**
|
|
3
3
|
* @slot - Element that will display the tooltip
|
|
4
4
|
*/
|
|
@@ -6,7 +6,7 @@ export declare class MgTooltip {
|
|
|
6
6
|
/************
|
|
7
7
|
* Internal *
|
|
8
8
|
************/
|
|
9
|
-
private
|
|
9
|
+
private popper;
|
|
10
10
|
private mgTooltipContent;
|
|
11
11
|
private tooltipedElement;
|
|
12
12
|
private windows;
|
|
@@ -33,8 +33,7 @@ export declare class MgTooltip {
|
|
|
33
33
|
/**
|
|
34
34
|
* Tooltip placement
|
|
35
35
|
*/
|
|
36
|
-
placement:
|
|
37
|
-
watchPlacement(newValue: any): void;
|
|
36
|
+
placement: Placement;
|
|
38
37
|
/**
|
|
39
38
|
* Display tooltip
|
|
40
39
|
*/
|
|
@@ -86,10 +85,10 @@ export declare class MgTooltip {
|
|
|
86
85
|
*/
|
|
87
86
|
private setMgButtonWrapper;
|
|
88
87
|
/**
|
|
89
|
-
* Set
|
|
90
|
-
* @param strategy -
|
|
88
|
+
* Set popper instance
|
|
89
|
+
* @param strategy - popper strategy to apply on instance
|
|
91
90
|
*/
|
|
92
|
-
private
|
|
91
|
+
private setPopper;
|
|
93
92
|
/**
|
|
94
93
|
* Define selected element to become tooltip selector and init listeners
|
|
95
94
|
* @param element - tooltiped element
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { CursorType } from '@mgdis/stencil-helpers';
|
|
2
|
+
/**
|
|
3
|
+
* Define action type
|
|
4
|
+
*/
|
|
5
|
+
export type ActionType = {
|
|
6
|
+
name: 'scroll' | 'load-data' | 'load-more';
|
|
7
|
+
cursor?: CursorType;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Define request mapping type
|
|
11
|
+
*/
|
|
12
|
+
export type RequestMappingType = {
|
|
13
|
+
filter: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Define response mapping type
|
|
17
|
+
*/
|
|
18
|
+
export type ResponseMappingType = {
|
|
19
|
+
total: string;
|
|
20
|
+
items: string;
|
|
21
|
+
next: string;
|
|
22
|
+
itemTitle: string;
|
|
23
|
+
itemValue: string;
|
|
24
|
+
};
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
+
import { ClassList, Paginate } from '@mgdis/stencil-helpers';
|
|
3
|
+
import { type RequestMappingType, type ResponseMappingType } from './mg-input-combobox.conf';
|
|
4
|
+
import { type TooltipPosition, type Width } from '../mg-input/mg-input.conf';
|
|
5
|
+
import type { Option } from '../../../../types';
|
|
6
|
+
export declare class MgInputCombobox {
|
|
7
|
+
/************
|
|
8
|
+
* Internal *
|
|
9
|
+
************/
|
|
10
|
+
private readonly classFocus;
|
|
11
|
+
private input;
|
|
12
|
+
private loadMoreElement;
|
|
13
|
+
private popoverId;
|
|
14
|
+
private messages;
|
|
15
|
+
private hasDisplayedError;
|
|
16
|
+
private handlerInProgress;
|
|
17
|
+
private loadingAction;
|
|
18
|
+
private page;
|
|
19
|
+
/**************
|
|
20
|
+
* Decorators *
|
|
21
|
+
**************/
|
|
22
|
+
/**
|
|
23
|
+
* Get component DOM element
|
|
24
|
+
*/
|
|
25
|
+
element: HTMLMgInputComboboxElement;
|
|
26
|
+
/**
|
|
27
|
+
* Define component value
|
|
28
|
+
*/
|
|
29
|
+
value: string | Option;
|
|
30
|
+
watchValue(newValue: MgInputCombobox['value']): void;
|
|
31
|
+
/**
|
|
32
|
+
* Define components items
|
|
33
|
+
*/
|
|
34
|
+
items: (string | Option)[];
|
|
35
|
+
watchItems(newValue: MgInputCombobox['items']): void;
|
|
36
|
+
/**
|
|
37
|
+
* Define items label
|
|
38
|
+
* Include short description. Required for accessibility.
|
|
39
|
+
* @example
|
|
40
|
+
* ```
|
|
41
|
+
* Countries
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
itemsLabel: string;
|
|
45
|
+
/**
|
|
46
|
+
* Identifier is used for the element ID (id is a reserved prop in Stencil.js)
|
|
47
|
+
*/
|
|
48
|
+
identifier: string;
|
|
49
|
+
watchIdentifier(newValue: MgInputCombobox['identifier']): void;
|
|
50
|
+
/**
|
|
51
|
+
* Input name
|
|
52
|
+
* If not set the value equals the identifier
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Input label
|
|
57
|
+
*/
|
|
58
|
+
label: string;
|
|
59
|
+
/**
|
|
60
|
+
* Define if label is displayed on top
|
|
61
|
+
*/
|
|
62
|
+
labelOnTop: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Define if label is visible
|
|
65
|
+
*/
|
|
66
|
+
labelHide: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Define input placeholder.
|
|
69
|
+
* It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help combobox.
|
|
70
|
+
*/
|
|
71
|
+
placeholder?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Define if input is required
|
|
74
|
+
*/
|
|
75
|
+
required: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Define if input is readonly
|
|
78
|
+
*/
|
|
79
|
+
readonly: boolean;
|
|
80
|
+
watchReadonly(newValue: MgInputCombobox['readonly']): void;
|
|
81
|
+
/**
|
|
82
|
+
* Define if input is disabled
|
|
83
|
+
*/
|
|
84
|
+
disabled: boolean;
|
|
85
|
+
watchValidityChange(newValue: boolean, _oldValue: boolean, prop: string): void;
|
|
86
|
+
watchDisabled(newValue: MgInputCombobox['disabled']): void;
|
|
87
|
+
/**
|
|
88
|
+
* Define input width
|
|
89
|
+
*/
|
|
90
|
+
mgWidth: Width;
|
|
91
|
+
watchMgWidth(newValue: MgInputCombobox['mgWidth']): void;
|
|
92
|
+
/**
|
|
93
|
+
* Add a tooltip message next to the input
|
|
94
|
+
*/
|
|
95
|
+
tooltip?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Define tooltip position
|
|
98
|
+
*/
|
|
99
|
+
tooltipPosition: TooltipPosition;
|
|
100
|
+
/**
|
|
101
|
+
* Add a help text under the input, usually expected data format and example
|
|
102
|
+
*/
|
|
103
|
+
helpText?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Define API url to fetch
|
|
106
|
+
* @example
|
|
107
|
+
* ```
|
|
108
|
+
* {
|
|
109
|
+
* url: "http://myapi.com?$select='href,name'&my-custom-param='my-custom-value'", // url to fetch
|
|
110
|
+
* }
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
fetchurl?: string | URL;
|
|
114
|
+
watchFetchUrl(newValue: MgInputCombobox['fetchurl']): void;
|
|
115
|
+
/**
|
|
116
|
+
* Define fetch options object
|
|
117
|
+
* Require `fetchurl` prop to be defined otherwith it will be ignored if defined
|
|
118
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/RequestInit}
|
|
119
|
+
* @example JSON headers:
|
|
120
|
+
* ```json
|
|
121
|
+
* {
|
|
122
|
+
* "headers": {
|
|
123
|
+
* "authorization": "my-token"
|
|
124
|
+
* }
|
|
125
|
+
* }
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
fetchoptions?: RequestInit;
|
|
129
|
+
watchFetchOptions(newValue: MgInputCombobox['fetchoptions']): void;
|
|
130
|
+
/**
|
|
131
|
+
* Define fetch request mappings.
|
|
132
|
+
* Required with `fetchurl`
|
|
133
|
+
* @example
|
|
134
|
+
* ```
|
|
135
|
+
* {
|
|
136
|
+
* request: {
|
|
137
|
+
* filter: 'name', // `filter` key
|
|
138
|
+
* },
|
|
139
|
+
* response: {
|
|
140
|
+
* total: 'body.data.total', // response object mapping to get `total` value
|
|
141
|
+
* items: 'body.data.results' // response object mapping to get `items` value
|
|
142
|
+
* next: 'body.next' // response object mapping to get `next` items
|
|
143
|
+
* itemTitle: 'name', // item property to map on item['title']
|
|
144
|
+
* itemValue: 'href', // item property to map on item['value']
|
|
145
|
+
* }
|
|
146
|
+
* }
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
fetchmappings?: {
|
|
150
|
+
request: RequestMappingType;
|
|
151
|
+
response: ResponseMappingType;
|
|
152
|
+
};
|
|
153
|
+
watchFetchMappings(newValue: MgInputCombobox['fetchmappings']): void;
|
|
154
|
+
/**
|
|
155
|
+
* Define input valid state
|
|
156
|
+
*/
|
|
157
|
+
valid: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Define input invalid state
|
|
160
|
+
*/
|
|
161
|
+
invalid: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Define if items are loading
|
|
164
|
+
*/
|
|
165
|
+
isLoading: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* Formated items for display
|
|
168
|
+
*/
|
|
169
|
+
options: Paginate<Option>;
|
|
170
|
+
watchOptions(newValue: Paginate<Option>): void;
|
|
171
|
+
/**
|
|
172
|
+
* Active option
|
|
173
|
+
*/
|
|
174
|
+
option: Option;
|
|
175
|
+
/**
|
|
176
|
+
* Option filter
|
|
177
|
+
*/
|
|
178
|
+
filter: string;
|
|
179
|
+
watchFilter(newValue: MgInputCombobox['filter']): void;
|
|
180
|
+
/**
|
|
181
|
+
* Component classes
|
|
182
|
+
*/
|
|
183
|
+
classCollection: ClassList;
|
|
184
|
+
/**
|
|
185
|
+
* Error message to display
|
|
186
|
+
*/
|
|
187
|
+
errorMessage: string;
|
|
188
|
+
/**
|
|
189
|
+
* Popover display state
|
|
190
|
+
*/
|
|
191
|
+
popoverDisplay: boolean;
|
|
192
|
+
watchPopoverDisplay(newValue: MgInputCombobox['popoverDisplay']): void;
|
|
193
|
+
/**
|
|
194
|
+
* Emited event when value change
|
|
195
|
+
*/
|
|
196
|
+
valueChange: EventEmitter<HTMLMgInputComboboxElement['value']>;
|
|
197
|
+
/**
|
|
198
|
+
* Emited event when filter change
|
|
199
|
+
*/
|
|
200
|
+
filterChange: EventEmitter<string>;
|
|
201
|
+
/**
|
|
202
|
+
* Emited event when `load-more` is called
|
|
203
|
+
*/
|
|
204
|
+
loadMore: EventEmitter<void>;
|
|
205
|
+
/**
|
|
206
|
+
* Emited event when checking validity
|
|
207
|
+
*/
|
|
208
|
+
inputValid: EventEmitter<HTMLMgInputComboboxElement['valid']>;
|
|
209
|
+
/**
|
|
210
|
+
* Public method to play input focus
|
|
211
|
+
*/
|
|
212
|
+
setFocus(): Promise<void>;
|
|
213
|
+
/**
|
|
214
|
+
* Display input error if it exists.
|
|
215
|
+
*/
|
|
216
|
+
displayError(): Promise<void>;
|
|
217
|
+
/**
|
|
218
|
+
* Set an error and display a custom error message.
|
|
219
|
+
* This method can be used to set the component's error state from its concombobox by passing a boolean value to the `valid` parameter.
|
|
220
|
+
* It must be paired with an error message to display for the given concombobox.
|
|
221
|
+
* When used to set validity to `false`, you should use this method again to reset the validity to `true`.
|
|
222
|
+
* @param valid - value indicating the validity
|
|
223
|
+
* @param errorMessage - the error message to display
|
|
224
|
+
*/
|
|
225
|
+
setError(valid: MgInputCombobox['valid'], errorMessage: string): Promise<void>;
|
|
226
|
+
/**
|
|
227
|
+
* Reset value, validity and error state
|
|
228
|
+
*/
|
|
229
|
+
reset(): Promise<void>;
|
|
230
|
+
/**
|
|
231
|
+
* Handle `click` event on option
|
|
232
|
+
* @param event - option element click event
|
|
233
|
+
*/
|
|
234
|
+
private handleOptionClick;
|
|
235
|
+
/**
|
|
236
|
+
* Handle `click` event on reset button
|
|
237
|
+
* @param event - click event
|
|
238
|
+
*/
|
|
239
|
+
private handleResetButton;
|
|
240
|
+
/**
|
|
241
|
+
* Handle `display-change` event on mg-popover
|
|
242
|
+
*/
|
|
243
|
+
private handlePopoverDisplay;
|
|
244
|
+
/**
|
|
245
|
+
* Handle input event
|
|
246
|
+
*/
|
|
247
|
+
private handleFilterInput;
|
|
248
|
+
/**
|
|
249
|
+
* Handle `blur` event
|
|
250
|
+
*/
|
|
251
|
+
private handleFilterBlur;
|
|
252
|
+
/**
|
|
253
|
+
* Handle `focus` event
|
|
254
|
+
*/
|
|
255
|
+
private handleFilterFocus;
|
|
256
|
+
/**
|
|
257
|
+
* Handle load-more <mg-button> `click`
|
|
258
|
+
*/
|
|
259
|
+
private handleLoadMoreButton;
|
|
260
|
+
/**
|
|
261
|
+
* Handle `keypress` event
|
|
262
|
+
* @param event - keyboard event
|
|
263
|
+
*/
|
|
264
|
+
private handleFilterKeydown;
|
|
265
|
+
/**
|
|
266
|
+
* Scroll to next option from cursor
|
|
267
|
+
* @param index - targeted option index to scroll into
|
|
268
|
+
*/
|
|
269
|
+
private scrollToIndex;
|
|
270
|
+
/**
|
|
271
|
+
* Is option the current value
|
|
272
|
+
* @param option - option to match with
|
|
273
|
+
* @returns true if option is the current value
|
|
274
|
+
*/
|
|
275
|
+
private isCurrentOption;
|
|
276
|
+
/**
|
|
277
|
+
* Set value prop
|
|
278
|
+
* @param newValue - slected option item
|
|
279
|
+
*/
|
|
280
|
+
private setValue;
|
|
281
|
+
/**
|
|
282
|
+
* get value prop title
|
|
283
|
+
* @returns value title
|
|
284
|
+
*/
|
|
285
|
+
private getValueTitle;
|
|
286
|
+
/**
|
|
287
|
+
* Method to set validity values
|
|
288
|
+
* @param newValue - valid new value
|
|
289
|
+
*/
|
|
290
|
+
private setValidity;
|
|
291
|
+
/**
|
|
292
|
+
* Check if input is valid
|
|
293
|
+
*/
|
|
294
|
+
private checkValidity;
|
|
295
|
+
/**
|
|
296
|
+
* Set input error message
|
|
297
|
+
* @param errorMessage - errorMessage override
|
|
298
|
+
*/
|
|
299
|
+
private setErrorMessage;
|
|
300
|
+
/**
|
|
301
|
+
* Get filtered options from `filter` input value
|
|
302
|
+
* @returns filtered options
|
|
303
|
+
*/
|
|
304
|
+
private optionsFilter;
|
|
305
|
+
/**
|
|
306
|
+
* Loading wrapper with a given action
|
|
307
|
+
* @param action - wrapped loading action
|
|
308
|
+
* @returns promisified action
|
|
309
|
+
*/
|
|
310
|
+
private loadingWrapper;
|
|
311
|
+
/**
|
|
312
|
+
* Go to next page
|
|
313
|
+
* @returns promise
|
|
314
|
+
*/
|
|
315
|
+
private goToNextPage;
|
|
316
|
+
/**
|
|
317
|
+
* Go to next page
|
|
318
|
+
* @returns promise
|
|
319
|
+
*/
|
|
320
|
+
private updatePage;
|
|
321
|
+
/**
|
|
322
|
+
* Fetch request
|
|
323
|
+
* @param url - to fetch
|
|
324
|
+
* @returns new page from url
|
|
325
|
+
*/
|
|
326
|
+
private getOptions;
|
|
327
|
+
/*************
|
|
328
|
+
* Lifecycle *
|
|
329
|
+
*************/
|
|
330
|
+
/**
|
|
331
|
+
* Check if component props are well configured on init
|
|
332
|
+
* @returns timeout
|
|
333
|
+
*/
|
|
334
|
+
componentWillLoad(): ReturnType<typeof setTimeout>;
|
|
335
|
+
/**
|
|
336
|
+
* Render
|
|
337
|
+
* @returns HTML Element
|
|
338
|
+
*/
|
|
339
|
+
render(): HTMLElement;
|
|
340
|
+
}
|