sep-yui 0.0.59 → 0.0.60
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/components/Input/enum/enum.d.ts +16 -0
- package/dist/components/Input/interface/interface.d.ts +8 -0
- package/dist/components/InputNumber/enum/enum.d.ts +8 -0
- package/dist/components/InputNumber/interface/interface.d.ts +6 -0
- package/dist/sep-yui.es.ts +351 -345
- package/dist/sep-yui.umd.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -2
package/dist/sep-yui.umd.ts
CHANGED
@@ -361,7 +361,7 @@
|
|
361
361
|
<g id="menu/write-downs">
|
362
362
|
<path id="Vector" d="M9.33327 12.8888H14.6665M4 6.66667V16.2666C4 17.2622 4 17.7595 4.19376 18.1398C4.3642 18.4743 4.63597 18.747 4.97047 18.9174C5.35039 19.111 5.84797 19.111 6.84166 19.111H17.1587C18.1524 19.111 18.6493 19.111 19.0292 18.9174C19.3637 18.747 19.6358 18.4746 19.8062 18.1401C20 17.7598 20 17.262 20 16.2664L20 9.51089C20 8.51525 20 8.01743 19.8062 7.63715C19.6358 7.30264 19.3631 7.03088 19.0286 6.86044C18.6483 6.66667 18.151 6.66667 17.1554 6.66667H11.9999M4 6.66667H11.9999M4 6.66667C4 5.68484 4.79593 4.88892 5.77776 4.88892H9.04395C9.47878 4.88892 9.69696 4.88892 9.90155 4.93804C10.0829 4.98158 10.2558 5.05359 10.4149 5.15107C10.5942 5.26097 10.7482 5.41498 11.0555 5.72224L11.9999 6.66667" stroke="currentColor" stroke-width="0.888878" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
363
363
|
</g>
|
364
|
-
`}},Symbol.toStringTag,{value:"Module"})),Fa=["width","height","fill","viewBox"],Ua=["innerHTML"],de=s.defineComponent({__name:"Icon",props:{height:{default:24},width:{default:24},name:{},color:{}},setup(r){const l=r,o=s.computed(()=>({color:l.color})),c=C=>C.replace(/-./g,_=>_[1].toUpperCase()),h=s.computed(()=>m1[c(l.name)]);return(C,_)=>{var p,m,b;return s.openBlock(),s.createElementBlock("svg",{class:"icon-yui-kit",width:l.width,height:l.height,style:s.normalizeStyle(o.value),fill:(p=s.unref(m1)[c(l.name)])==null?void 0:p.fill,viewBox:((m=s.unref(m1)[c(l.name)])==null?void 0:m.viewbox)||"0 0 24 24"},[s.createElementVNode("g",{innerHTML:(b=h.value)==null?void 0:b.path},null,8,Ua)],12,Fa)}}});var le=(r=>(r.notification="notification",r.notificationYes="notification-yes",r.help="help",r.moonFill="moon-fill",r.arrowLeft="arrow-left",r.chevronDown="chevron-down",r.chevronUp="chevron-up",r.checkbox="checkbox",r.chevronRight="chevron-right",r.chevronLeft="chevron-left",r.dark="dark",r.exitBig="exit-big",r.exitSmall="exit-small",r.exit="exit",r.exitCircle="exit-circle",r.externalLink="external-link",r.leftBigSmall="left-big-small",r.light="light",r.leftBig="left-big",r.rightSmall="right-small",r.settings="settings",r.settingsDark="settings-dark",r.searchNormal="search-normal",r.search="search",r.filter="filter",r.bgNotContent="bg-not-content",r.document="document",r.baseDetail="base-detail",r.plusSmall="plus-small",r.plus="plus",r.addPlus="add-plus",r.closeVision="close-vision",r.openVision="open-vision",r.trash="trash",r.printer="printer",r.uploadCloud="upload-cloud",r.archive="archive",r.menuClose="menu-close",r.menuOpen="menu-open",r.bookOpen="book-open",r.chartLine="chart-line",r.marriage="marriage",r.baseOfAssemblyUnits="base-of-assembly-units",r.equipmentBase="equipment-base",r.supplierDatabase="supplier-database",r.theDatabaseOfMaterials="the-database-of-materials",r.theBaseOfTheTool="the-base-of-the-tool",r.fileDatabase="file-database",r.baseOfEquipmentAndInventory="base-of-equipment-and-inventory",r.mainPage="main-page",r.shopping="shopping",r.shippingTasks="shipping-tasks",r.warehouse="warehouse",r.production="production",r.wastes="wastes",r.paperClip="paper-clip",r.writeDowns="write-downs",r.theComplaint="the-complaint",r.usersGroup="users-group",r.reports="reports",r.editing="editing",r.shadedArrowDown="shaded-arrow-down",r.shadedArrowRight="shaded-arrow-right",r.shadedArrowLeft="shaded-arrow-left",r.shadedArrowUp="shaded-arrow-up",r.star="star",r.info="info",r.files="files",r.moreHorizontal="more-horizontal",r.fileText="file-text",r.gitPullRequest="git-pull-request",r.folder="folder",r.crossLarge="cross-large",r.crossSmall="cross-small",r.profileIcon="profile-icon",r.profile="profile",r.rightBig="right-big",r.alertTriangle="alert-triangle",r))(le||{});const Ya={class:"bread-crumbs-yui-kit"},Za={key:0},ja=["onClick"],Xa={key:0,class:"fullName-yui-kit"},za=["onClick"],Ga={key:0,class:"fullName-yui-kit"},k1=15,y1=ve(s.defineComponent({__name:"BreadCrumbs",props:{items:{}},emits:["click"],setup(r,{emit:l}){const o=r,c=l,h=s.reactive({items:[],crumbs:s.computed(()=>{const S=o.items.length<4?o.items.length-1:3;let H=[o.items[0],...o.items.slice(-S)];return o.items.length===1&&(H=[o.items[0]]),H.map(x=>(x.isSub=!1,x))}),subCrumbs:s.computed(()=>o.items.slice(1,-3).map(S=>(S.isSub=!0,S))),getClassesLink:s.computed(()=>S=>({"bread-crumbs-yui-kit__link":!0,"disabled-yui-kit":!S.path})),getClassesSpan:s.computed(()=>S=>({"checked-yui-kit":S===h.crumbs.length-1})),fullTitle:s.computed(()=>S=>S.title.length>k1),isShowList:!1}),C=s.computed(()=>({"bread-crumbs-yui-kit__item":!0})),_=s.computed(()=>({crumbs:{"bread-subcrumbs-yui-kit":!0,"scroll-yui-kit":!0,"active-yui-kit":h.isShowList}})),p=(S,H)=>{H!==h.items.length-1&&(S.isSub&&m(),o.items.forEach(({path:x},v)=>{x===S.path&&c("click",{title:S.title,path:S.path,inx:v+1})}))},m=()=>h.isShowList=!h.isShowList,b=S=>S.title.length>k1?S.title.slice(0,k1)+"...":S.title,E=S=>h.items.length>=5&&S===1;return s.onMounted(()=>h.items=h.crumbs.concat(h.subCrumbs)),(S,H)=>(s.openBlock(),s.createElementBlock("ul",Ya,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.items,(x,v)=>(s.openBlock(),s.createElementBlock("li",{class:s.normalizeClass(C.value),key:x.path},[E(v)?(s.openBlock(),s.createElementBlock("div",Za,[s.createElementVNode("span",{class:"bread-crumbs-yui-kit--closed",onClick:m},"..."),s.createElementVNode("ul",{class:s.normalizeClass(_.value.crumbs)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.subCrumbs,(B,F)=>(s.openBlock(),s.createElementBlock("li",{key:B.path,class:s.normalizeClass(C.value)},[s.createElementVNode("span",{onClick:N=>p(B,F)},[s.createTextVNode(s.toDisplayString(b(B)),1),h.fullTitle(x)?(s.openBlock(),s.createElementBlock("span",Xa,s.toDisplayString(B.title),1)):s.createCommentVNode("",!0)],8,ja)],2))),128))],2)])):s.createCommentVNode("",!0),x.isSub?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(h.getClassesLink(x))},[s.createElementVNode("span",{class:s.normalizeClass(h.getClassesSpan(v)),onClick:B=>p(x,v)},[s.createTextVNode(s.toDisplayString(b(x)),1),h.fullTitle(x)?(s.openBlock(),s.createElementBlock("span",Ga,s.toDisplayString(x.title),1)):s.createCommentVNode("",!0)],10,za),v!==h.crumbs.length-1?(s.openBlock(),s.createBlock(de,{key:0,name:s.unref(le).rightSmall},null,8,["name"])):s.createCommentVNode("",!0)],2))],2))),128))]))}}),[["__scopeId","data-v-08d48cdf"]]);var hi=(r=>(r.small="small",r.medium="medium",r.large="large",r))(hi||{}),Ot=(r=>(r.primary="primary",r.outline="outline",r.ghost="ghost",r.secondary="secondary",r))(Ot||{});const qa=["disabled"],Ka=s.defineComponent({__name:"Button",props:{disabled:{type:Boolean,default:!1},size:{default:hi.medium},type:{default:Ot.primary},pill:{type:Boolean,default:!1},backgroundColor:{},color:{default:""}},emits:["click"],setup(r,{emit:l}){const o=r,c=l,h=s.computed(()=>({"button-yui-kit":!0,[o.size]:!0,"disabled-yui-kit":o.disabled,"pill-yui-kit":o.pill,"primary-yui-kit":o.type===Ot.primary,"secondary-yui-kit":o.type===Ot.secondary,"outline-yui-kit":o.type===Ot.outline,"ghost-yui-kit":o.type===Ot.ghost})),C=s.computed(()=>({backgroundColor:o.backgroundColor})),_=s.computed(()=>({color:o.color==="primary"||o.color==="secondary"?"black":o.color})),p=m=>c("click",m);return(m,b)=>(s.openBlock(),s.createElementBlock("button",{class:s.normalizeClass(h.value),disabled:o.disabled,style:s.normalizeStyle(C.value),onClick:p},[m.$slots["left-icon"]?(s.openBlock(),s.createElementBlock("span",{key:0,style:s.normalizeStyle(_.value)},[s.renderSlot(m.$slots,"left-icon",{},void 0,!0)],4)):s.createCommentVNode("",!0),s.renderSlot(m.$slots,"default",{},void 0,!0),m.$slots["right-icon"]?(s.openBlock(),s.createElementBlock("span",{key:1,style:s.normalizeStyle(_.value)},[s.renderSlot(m.$slots,"right-icon",{},void 0,!0)],4)):s.createCommentVNode("",!0)],14,qa))}}),Hn=ve(Ka,[["__scopeId","data-v-b6dc1797"]]),Ja={class:"switch-yui-kit-list"},Qa=["onClick"],lr=ve(s.defineComponent({__name:"Switch",props:{items:{},defaultValue:{},isIcons:{type:Boolean}},emits:["change"],setup(r,{emit:l}){const o=r,c=s.reactive({activeIndex:0}),h=l,C=p=>({"switch-yui-kit-item":!0,"switch-yui-kit-active":c.activeIndex===p}),_=p=>{c.activeIndex=p,h("change",{index:p,value:o.items[p]})};return s.onMounted(()=>{o.defaultValue&&o.items.includes(o.defaultValue)&&(c.activeIndex=o.items.indexOf(o.defaultValue))}),(p,m)=>(s.openBlock(),s.createElementBlock("ul",Ja,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.items,(b,E)=>(s.openBlock(),s.createElementBlock("li",{key:b,class:s.normalizeClass(C(E)),onClick:S=>_(E)},[o.isIcons?(s.openBlock(),s.createBlock(de,{key:0,name:b},null,8,["name"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(b),1)],64))],10,Qa))),128))]))}}),[["__scopeId","data-v-f959af9e"]]);var pi=!1;function ar(r,l,o){return Array.isArray(r)?(r.length=Math.max(r.length,l),r.splice(l,1,o),o):(r[l]=o,o)}function w1(r,l){if(Array.isArray(r)){r.splice(l,1);return}delete r[l]}function gi(r){return s.getCurrentScope()?(s.onScopeDispose(r),!0):!1}function ln(r){return typeof r=="function"?r():s.unref(r)}const Ci={mounted:"mounted",updated:"updated",unmounted:"unmounted"},_i=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ec=Object.prototype.toString,tc=r=>ec.call(r)==="[object Object]",On=()=>{},b1=nc();function nc(){var r,l;return _i&&((r=window==null?void 0:window.navigator)==null?void 0:r.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((l=window==null?void 0:window.navigator)==null?void 0:l.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function rc(...r){if(r.length!==1)return s.toRef(...r);const l=r[0];return typeof l=="function"?s.readonly(s.customRef(()=>({get:l,set:On}))):s.ref(l)}const mi=_i?window:void 0;function Bn(r){var l;const o=ln(r);return(l=o==null?void 0:o.$el)!=null?l:o}function cr(...r){let l,o,c,h;if(typeof r[0]=="string"||Array.isArray(r[0])?([o,c,h]=r,l=mi):[l,o,c,h]=r,!l)return On;Array.isArray(o)||(o=[o]),Array.isArray(c)||(c=[c]);const C=[],_=()=>{C.forEach(E=>E()),C.length=0},p=(E,S,H,x)=>(E.addEventListener(S,H,x),()=>E.removeEventListener(S,H,x)),m=s.watch(()=>[Bn(l),ln(h)],([E,S])=>{if(_(),!E)return;const H=tc(S)?{...S}:S;C.push(...o.flatMap(x=>c.map(v=>p(E,x,v,H))))},{immediate:!0,flush:"post"}),b=()=>{m(),_()};return gi(b),b}let ki=!1;function yi(r,l,o={}){const{window:c=mi,ignore:h=[],capture:C=!0,detectIframe:_=!1}=o;if(!c)return On;b1&&!ki&&(ki=!0,Array.from(c.document.body.children).forEach(x=>x.addEventListener("click",On)),c.document.documentElement.addEventListener("click",On));let p=!0;const m=x=>ln(h).some(v=>{if(typeof v=="string")return Array.from(c.document.querySelectorAll(v)).some(B=>B===x.target||x.composedPath().includes(B));{const B=Bn(v);return B&&(x.target===B||x.composedPath().includes(B))}}),b=x=>{const v=Bn(r);if(!(!v||v===x.target||x.composedPath().includes(v))){if(x.detail===0&&(p=!m(x)),!p){p=!0;return}l(x)}};let E=!1;const S=[cr(c,"click",x=>{E||(E=!0,setTimeout(()=>{E=!1},0),b(x))},{passive:!0,capture:C}),cr(c,"pointerdown",x=>{const v=Bn(r);p=!m(x)&&!!(v&&!x.composedPath().includes(v))},{passive:!0}),_&&cr(c,"blur",x=>{setTimeout(()=>{var v;const B=Bn(r);((v=c.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(B!=null&&B.contains(c.document.activeElement))&&l(x)},0)})].filter(Boolean);return()=>S.forEach(x=>x())}const oc={[Ci.mounted](r,l){const o=!l.modifiers.bubble;if(typeof l.value=="function")r.__onClickOutside_stop=yi(r,l.value,{capture:o});else{const[c,h]=l.value;r.__onClickOutside_stop=yi(r,c,Object.assign({capture:o},h))}},[Ci.unmounted](r){r.__onClickOutside_stop()}};function v1(r){return typeof Window<"u"&&r instanceof Window?r.document.documentElement:typeof Document<"u"&&r instanceof Document?r.documentElement:r}function wi(r){const l=window.getComputedStyle(r);if(l.overflowX==="scroll"||l.overflowY==="scroll"||l.overflowX==="auto"&&r.clientWidth<r.scrollWidth||l.overflowY==="auto"&&r.clientHeight<r.scrollHeight)return!0;{const o=r.parentNode;return!o||o.tagName==="BODY"?!1:wi(o)}}function ic(r){const l=r||window.event,o=l.target;return wi(o)?!1:l.touches.length>1?!0:(l.preventDefault&&l.preventDefault(),!1)}const L1=new WeakMap;function sc(r,l=!1){const o=s.ref(l);let c=null,h="";s.watch(rc(r),p=>{const m=v1(ln(p));if(m){const b=m;if(L1.get(b)||L1.set(b,b.style.overflow),b.style.overflow!=="hidden"&&(h=b.style.overflow),b.style.overflow==="hidden")return o.value=!0;if(o.value)return b.style.overflow="hidden"}},{immediate:!0});const C=()=>{const p=v1(ln(r));!p||o.value||(b1&&(c=cr(p,"touchmove",m=>{ic(m)},{passive:!1})),p.style.overflow="hidden",o.value=!0)},_=()=>{const p=v1(ln(r));!p||!o.value||(b1&&(c==null||c()),p.style.overflow=h,L1.delete(p),o.value=!1)};return gi(_),s.computed({get(){return o.value},set(p){p?C():_()}})}function lc(){let r=!1;const l=s.ref(!1);return(o,c)=>{if(l.value=c.value,r)return;r=!0;const h=sc(o,c.value);s.watch(l,C=>h.value=C)}}lc();/*!
|
364
|
+
`}},Symbol.toStringTag,{value:"Module"})),Fa=["width","height","fill","viewBox"],Ua=["innerHTML"],de=s.defineComponent({__name:"Icon",props:{height:{default:24},width:{default:24},name:{},color:{}},setup(r){const l=r,o=s.computed(()=>({color:l.color})),c=C=>C.replace(/-./g,_=>_[1].toUpperCase()),h=s.computed(()=>m1[c(l.name)]);return(C,_)=>{var p,m,b;return s.openBlock(),s.createElementBlock("svg",{class:"icon-yui-kit",width:l.width,height:l.height,style:s.normalizeStyle(o.value),fill:(p=s.unref(m1)[c(l.name)])==null?void 0:p.fill,viewBox:((m=s.unref(m1)[c(l.name)])==null?void 0:m.viewbox)||"0 0 24 24"},[s.createElementVNode("g",{innerHTML:(b=h.value)==null?void 0:b.path},null,8,Ua)],12,Fa)}}});var le=(r=>(r.notification="notification",r.notificationYes="notification-yes",r.help="help",r.moonFill="moon-fill",r.arrowLeft="arrow-left",r.chevronDown="chevron-down",r.chevronUp="chevron-up",r.checkbox="checkbox",r.chevronRight="chevron-right",r.chevronLeft="chevron-left",r.dark="dark",r.exitBig="exit-big",r.exitSmall="exit-small",r.exit="exit",r.exitCircle="exit-circle",r.externalLink="external-link",r.leftBigSmall="left-big-small",r.light="light",r.leftBig="left-big",r.rightSmall="right-small",r.settings="settings",r.settingsDark="settings-dark",r.searchNormal="search-normal",r.search="search",r.filter="filter",r.bgNotContent="bg-not-content",r.document="document",r.baseDetail="base-detail",r.plusSmall="plus-small",r.plus="plus",r.addPlus="add-plus",r.closeVision="close-vision",r.openVision="open-vision",r.trash="trash",r.printer="printer",r.uploadCloud="upload-cloud",r.archive="archive",r.menuClose="menu-close",r.menuOpen="menu-open",r.bookOpen="book-open",r.chartLine="chart-line",r.marriage="marriage",r.baseOfAssemblyUnits="base-of-assembly-units",r.equipmentBase="equipment-base",r.supplierDatabase="supplier-database",r.theDatabaseOfMaterials="the-database-of-materials",r.theBaseOfTheTool="the-base-of-the-tool",r.fileDatabase="file-database",r.baseOfEquipmentAndInventory="base-of-equipment-and-inventory",r.mainPage="main-page",r.shopping="shopping",r.shippingTasks="shipping-tasks",r.warehouse="warehouse",r.production="production",r.wastes="wastes",r.paperClip="paper-clip",r.writeDowns="write-downs",r.theComplaint="the-complaint",r.usersGroup="users-group",r.reports="reports",r.editing="editing",r.shadedArrowDown="shaded-arrow-down",r.shadedArrowRight="shaded-arrow-right",r.shadedArrowLeft="shaded-arrow-left",r.shadedArrowUp="shaded-arrow-up",r.star="star",r.info="info",r.files="files",r.moreHorizontal="more-horizontal",r.fileText="file-text",r.gitPullRequest="git-pull-request",r.folder="folder",r.crossLarge="cross-large",r.crossSmall="cross-small",r.profileIcon="profile-icon",r.profile="profile",r.rightBig="right-big",r.alertTriangle="alert-triangle",r))(le||{});const Ya={class:"bread-crumbs-yui-kit"},Za={key:0},ja=["onClick"],Xa={key:0,class:"fullName-yui-kit"},za=["onClick"],Ga={key:0,class:"fullName-yui-kit"},k1=15,y1=ve(s.defineComponent({__name:"BreadCrumbs",props:{items:{}},emits:["click"],setup(r,{emit:l}){const o=r,c=l,h=s.reactive({items:[],crumbs:s.computed(()=>{const S=o.items.length<4?o.items.length-1:3;let H=[o.items[0],...o.items.slice(-S)];return o.items.length===1&&(H=[o.items[0]]),H.map(x=>(x.isSub=!1,x))}),subCrumbs:s.computed(()=>o.items.slice(1,-3).map(S=>(S.isSub=!0,S))),getClassesLink:s.computed(()=>S=>({"bread-crumbs-yui-kit__link":!0,"disabled-yui-kit":!S.path})),getClassesSpan:s.computed(()=>S=>({"checked-yui-kit":S===h.crumbs.length-1})),fullTitle:s.computed(()=>S=>S.title.length>k1),isShowList:!1}),C=s.computed(()=>({"bread-crumbs-yui-kit__item":!0})),_=s.computed(()=>({crumbs:{"bread-subcrumbs-yui-kit":!0,"scroll-yui-kit":!0,"active-yui-kit":h.isShowList}})),p=(S,H)=>{H!==h.items.length-1&&(S.isSub&&m(),o.items.forEach(({path:x},v)=>{x===S.path&&c("click",{title:S.title,path:S.path,inx:v+1})}))},m=()=>h.isShowList=!h.isShowList,b=S=>S.title.length>k1?S.title.slice(0,k1)+"...":S.title,E=S=>h.items.length>=5&&S===1;return s.onMounted(()=>h.items=h.crumbs.concat(h.subCrumbs)),(S,H)=>(s.openBlock(),s.createElementBlock("ul",Ya,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.items,(x,v)=>(s.openBlock(),s.createElementBlock("li",{class:s.normalizeClass(C.value),key:x.path},[E(v)?(s.openBlock(),s.createElementBlock("div",Za,[s.createElementVNode("span",{class:"bread-crumbs-yui-kit--closed",onClick:m},"..."),s.createElementVNode("ul",{class:s.normalizeClass(_.value.crumbs)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.subCrumbs,(B,F)=>(s.openBlock(),s.createElementBlock("li",{key:B.path,class:s.normalizeClass(C.value)},[s.createElementVNode("span",{onClick:N=>p(B,F)},[s.createTextVNode(s.toDisplayString(b(B)),1),h.fullTitle(x)?(s.openBlock(),s.createElementBlock("span",Xa,s.toDisplayString(B.title),1)):s.createCommentVNode("",!0)],8,ja)],2))),128))],2)])):s.createCommentVNode("",!0),x.isSub?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(h.getClassesLink(x))},[s.createElementVNode("span",{class:s.normalizeClass(h.getClassesSpan(v)),onClick:B=>p(x,v)},[s.createTextVNode(s.toDisplayString(b(x)),1),h.fullTitle(x)?(s.openBlock(),s.createElementBlock("span",Ga,s.toDisplayString(x.title),1)):s.createCommentVNode("",!0)],10,za),v!==h.crumbs.length-1?(s.openBlock(),s.createBlock(de,{key:0,name:s.unref(le).rightSmall},null,8,["name"])):s.createCommentVNode("",!0)],2))],2))),128))]))}}),[["__scopeId","data-v-08d48cdf"]]);var hi=(r=>(r.small="small",r.medium="medium",r.large="large",r))(hi||{}),Ot=(r=>(r.primary="primary",r.outline="outline",r.ghost="ghost",r.secondary="secondary",r))(Ot||{});const qa=["disabled"],Ka=s.defineComponent({__name:"Button",props:{disabled:{type:Boolean,default:!1},size:{default:hi.medium},type:{default:Ot.primary},pill:{type:Boolean,default:!1},backgroundColor:{},color:{default:""}},emits:["click"],setup(r,{emit:l}){const o=r,c=l,h=s.computed(()=>({"button-yui-kit":!0,[o.size]:!0,"disabled-yui-kit":o.disabled,"pill-yui-kit":o.pill,"primary-yui-kit":o.type===Ot.primary,"secondary-yui-kit":o.type===Ot.secondary,"outline-yui-kit":o.type===Ot.outline,"ghost-yui-kit":o.type===Ot.ghost})),C=s.computed(()=>({backgroundColor:o.backgroundColor})),_=s.computed(()=>({color:o.color==="primary"||o.color==="secondary"?"black":o.color})),p=m=>c("click",m);return(m,b)=>(s.openBlock(),s.createElementBlock("button",{class:s.normalizeClass(h.value),disabled:o.disabled,style:s.normalizeStyle(C.value),onClick:p},[m.$slots["left-icon"]?(s.openBlock(),s.createElementBlock("span",{key:0,style:s.normalizeStyle(_.value)},[s.renderSlot(m.$slots,"left-icon",{},void 0,!0)],4)):s.createCommentVNode("",!0),s.renderSlot(m.$slots,"default",{},void 0,!0),m.$slots["right-icon"]?(s.openBlock(),s.createElementBlock("span",{key:1,style:s.normalizeStyle(_.value)},[s.renderSlot(m.$slots,"right-icon",{},void 0,!0)],4)):s.createCommentVNode("",!0)],14,qa))}}),Hn=ve(Ka,[["__scopeId","data-v-b6dc1797"]]),Ja={class:"switch-yui-kit-list"},Qa=["onClick"],lr=ve(s.defineComponent({__name:"Switch",props:{items:{},defaultValue:{},isIcons:{type:Boolean}},emits:["change"],setup(r,{emit:l}){const o=r,c=s.reactive({activeIndex:0}),h=l,C=p=>({"switch-yui-kit-item":!0,"switch-yui-kit-active":c.activeIndex===p}),_=p=>{c.activeIndex=p,h("change",{index:p,value:o.items[p]})};return s.watch(()=>o.defaultValue,()=>{var p;c.activeIndex=o.defaultValue?(p=o.items)==null?void 0:p.indexOf(o.defaultValue):0}),s.onMounted(()=>{o.defaultValue&&o.items.includes(o.defaultValue)&&(c.activeIndex=o.items.indexOf(o.defaultValue))}),(p,m)=>(s.openBlock(),s.createElementBlock("ul",Ja,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.items,(b,E)=>(s.openBlock(),s.createElementBlock("li",{key:b,class:s.normalizeClass(C(E)),onClick:S=>_(E)},[o.isIcons?(s.openBlock(),s.createBlock(de,{key:0,name:b},null,8,["name"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(b),1)],64))],10,Qa))),128))]))}}),[["__scopeId","data-v-ea9b6d06"]]);var pi=!1;function ar(r,l,o){return Array.isArray(r)?(r.length=Math.max(r.length,l),r.splice(l,1,o),o):(r[l]=o,o)}function w1(r,l){if(Array.isArray(r)){r.splice(l,1);return}delete r[l]}function gi(r){return s.getCurrentScope()?(s.onScopeDispose(r),!0):!1}function ln(r){return typeof r=="function"?r():s.unref(r)}const Ci={mounted:"mounted",updated:"updated",unmounted:"unmounted"},_i=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ec=Object.prototype.toString,tc=r=>ec.call(r)==="[object Object]",On=()=>{},b1=nc();function nc(){var r,l;return _i&&((r=window==null?void 0:window.navigator)==null?void 0:r.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((l=window==null?void 0:window.navigator)==null?void 0:l.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function rc(...r){if(r.length!==1)return s.toRef(...r);const l=r[0];return typeof l=="function"?s.readonly(s.customRef(()=>({get:l,set:On}))):s.ref(l)}const mi=_i?window:void 0;function Bn(r){var l;const o=ln(r);return(l=o==null?void 0:o.$el)!=null?l:o}function cr(...r){let l,o,c,h;if(typeof r[0]=="string"||Array.isArray(r[0])?([o,c,h]=r,l=mi):[l,o,c,h]=r,!l)return On;Array.isArray(o)||(o=[o]),Array.isArray(c)||(c=[c]);const C=[],_=()=>{C.forEach(E=>E()),C.length=0},p=(E,S,H,x)=>(E.addEventListener(S,H,x),()=>E.removeEventListener(S,H,x)),m=s.watch(()=>[Bn(l),ln(h)],([E,S])=>{if(_(),!E)return;const H=tc(S)?{...S}:S;C.push(...o.flatMap(x=>c.map(v=>p(E,x,v,H))))},{immediate:!0,flush:"post"}),b=()=>{m(),_()};return gi(b),b}let ki=!1;function yi(r,l,o={}){const{window:c=mi,ignore:h=[],capture:C=!0,detectIframe:_=!1}=o;if(!c)return On;b1&&!ki&&(ki=!0,Array.from(c.document.body.children).forEach(x=>x.addEventListener("click",On)),c.document.documentElement.addEventListener("click",On));let p=!0;const m=x=>ln(h).some(v=>{if(typeof v=="string")return Array.from(c.document.querySelectorAll(v)).some(B=>B===x.target||x.composedPath().includes(B));{const B=Bn(v);return B&&(x.target===B||x.composedPath().includes(B))}}),b=x=>{const v=Bn(r);if(!(!v||v===x.target||x.composedPath().includes(v))){if(x.detail===0&&(p=!m(x)),!p){p=!0;return}l(x)}};let E=!1;const S=[cr(c,"click",x=>{E||(E=!0,setTimeout(()=>{E=!1},0),b(x))},{passive:!0,capture:C}),cr(c,"pointerdown",x=>{const v=Bn(r);p=!m(x)&&!!(v&&!x.composedPath().includes(v))},{passive:!0}),_&&cr(c,"blur",x=>{setTimeout(()=>{var v;const B=Bn(r);((v=c.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(B!=null&&B.contains(c.document.activeElement))&&l(x)},0)})].filter(Boolean);return()=>S.forEach(x=>x())}const oc={[Ci.mounted](r,l){const o=!l.modifiers.bubble;if(typeof l.value=="function")r.__onClickOutside_stop=yi(r,l.value,{capture:o});else{const[c,h]=l.value;r.__onClickOutside_stop=yi(r,c,Object.assign({capture:o},h))}},[Ci.unmounted](r){r.__onClickOutside_stop()}};function v1(r){return typeof Window<"u"&&r instanceof Window?r.document.documentElement:typeof Document<"u"&&r instanceof Document?r.documentElement:r}function wi(r){const l=window.getComputedStyle(r);if(l.overflowX==="scroll"||l.overflowY==="scroll"||l.overflowX==="auto"&&r.clientWidth<r.scrollWidth||l.overflowY==="auto"&&r.clientHeight<r.scrollHeight)return!0;{const o=r.parentNode;return!o||o.tagName==="BODY"?!1:wi(o)}}function ic(r){const l=r||window.event,o=l.target;return wi(o)?!1:l.touches.length>1?!0:(l.preventDefault&&l.preventDefault(),!1)}const L1=new WeakMap;function sc(r,l=!1){const o=s.ref(l);let c=null,h="";s.watch(rc(r),p=>{const m=v1(ln(p));if(m){const b=m;if(L1.get(b)||L1.set(b,b.style.overflow),b.style.overflow!=="hidden"&&(h=b.style.overflow),b.style.overflow==="hidden")return o.value=!0;if(o.value)return b.style.overflow="hidden"}},{immediate:!0});const C=()=>{const p=v1(ln(r));!p||o.value||(b1&&(c=cr(p,"touchmove",m=>{ic(m)},{passive:!1})),p.style.overflow="hidden",o.value=!0)},_=()=>{const p=v1(ln(r));!p||!o.value||(b1&&(c==null||c()),p.style.overflow=h,L1.delete(p),o.value=!1)};return gi(_),s.computed({get(){return o.value},set(p){p?C():_()}})}function lc(){let r=!1;const l=s.ref(!1);return(o,c)=>{if(l.value=c.value,r)return;r=!0;const h=sc(o,c.value);s.watch(l,C=>h.value=C)}}lc();/*!
|
365
365
|
* perfect-scrollbar v1.5.3
|
366
366
|
* Copyright 2021 Hyunje Jun, MDBootstrap and Contributors
|
367
367
|
* Licensed under MIT
|