@knitify/vue 0.0.9 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +86 -0
  2. package/dist/index.es.js +2586 -175
  3. package/dist/index.umd.js +1 -1
  4. package/dist/types/components/Accordion/KAccordion.vue.d.ts +11 -0
  5. package/dist/types/components/Accordion/KAccordionItem.vue.d.ts +22 -0
  6. package/dist/types/components/Accordion/keys.d.ts +2 -0
  7. package/dist/types/components/Accordion/types.d.ts +37 -0
  8. package/dist/types/components/Alert/KAlert.vue.d.ts +11 -0
  9. package/dist/types/components/Alert/types.d.ts +18 -0
  10. package/dist/types/components/Avatar/KAvatar.vue.d.ts +11 -0
  11. package/dist/types/components/Avatar/KAvatarGroup.vue.d.ts +11 -0
  12. package/dist/types/components/Avatar/types.d.ts +42 -0
  13. package/dist/types/components/Breadcrumb/KBreadcrumb.vue.d.ts +11 -0
  14. package/dist/types/components/Breadcrumb/KBreadcrumbItem.vue.d.ts +11 -0
  15. package/dist/types/components/Breadcrumb/types.d.ts +23 -0
  16. package/dist/types/components/Button/types.d.ts +15 -4
  17. package/dist/types/components/Calendar/KCalendar.vue.d.ts +34 -0
  18. package/dist/types/components/Calendar/types.d.ts +26 -0
  19. package/dist/types/components/Card/KCard.vue.d.ts +11 -0
  20. package/dist/types/components/Card/types.d.ts +26 -0
  21. package/dist/types/components/Chat/KChat.vue.d.ts +14 -0
  22. package/dist/types/components/Chat/KChatMessage.vue.d.ts +11 -0
  23. package/dist/types/components/Chat/KChatMessages.vue.d.ts +11 -0
  24. package/dist/types/components/Chat/KChatPrompt.vue.d.ts +30 -0
  25. package/dist/types/components/Chat/KChatShimmer.vue.d.ts +11 -0
  26. package/dist/types/components/Chat/keys.d.ts +2 -0
  27. package/dist/types/components/Chat/types.d.ts +50 -0
  28. package/dist/types/components/Checkbox/KCheckbox.vue.d.ts +20 -0
  29. package/dist/types/components/Checkbox/types.d.ts +23 -0
  30. package/dist/types/components/Collapse/KCollapse.vue.d.ts +32 -0
  31. package/dist/types/components/Collapse/types.d.ts +32 -0
  32. package/dist/types/components/Collapse/useCollapseSync.d.ts +29 -0
  33. package/dist/types/components/Drawer/KDrawer.vue.d.ts +34 -0
  34. package/dist/types/components/Drawer/types.d.ts +54 -0
  35. package/dist/types/components/Dropdown/KDropdown.vue.d.ts +28 -0
  36. package/dist/types/components/Dropdown/KDropdownItem.vue.d.ts +13 -0
  37. package/dist/types/components/Dropdown/KDropdownMenu.vue.d.ts +13 -0
  38. package/dist/types/components/Dropdown/types.d.ts +34 -0
  39. package/dist/types/components/FileTree/KFileTree.vue.d.ts +34 -0
  40. package/dist/types/components/FileTree/KFileTreeNode.vue.d.ts +20 -0
  41. package/dist/types/components/FileTree/types.d.ts +39 -0
  42. package/dist/types/components/Grid/KGrid.vue.d.ts +11 -0
  43. package/dist/types/components/Grid/KGridColumn.vue.d.ts +11 -0
  44. package/dist/types/components/Grid/KGridRow.vue.d.ts +19 -0
  45. package/dist/types/components/Grid/types.d.ts +41 -0
  46. package/dist/types/components/Grid/useGrid.d.ts +8 -0
  47. package/dist/types/components/Icon/types.d.ts +1 -1
  48. package/dist/types/components/Input/KInput.vue.d.ts +3 -1
  49. package/dist/types/components/Input/types.d.ts +8 -0
  50. package/dist/types/components/MenuList/KMenuList.vue.d.ts +11 -0
  51. package/dist/types/components/MenuList/KMenuListItem.vue.d.ts +11 -0
  52. package/dist/types/components/MenuList/types.d.ts +20 -0
  53. package/dist/types/components/Modal/KModal.vue.d.ts +36 -0
  54. package/dist/types/components/Modal/types.d.ts +57 -0
  55. package/dist/types/components/NotificationList/KNotificationList.vue.d.ts +11 -0
  56. package/dist/types/components/NotificationList/KNotificationListItem.vue.d.ts +11 -0
  57. package/dist/types/components/NotificationList/types.d.ts +36 -0
  58. package/dist/types/components/Popover/KPopover.vue.d.ts +28 -0
  59. package/dist/types/components/Popover/types.d.ts +24 -0
  60. package/dist/types/components/Popover/useOverlaySync.d.ts +35 -0
  61. package/dist/types/components/Progress/KProgress.vue.d.ts +11 -0
  62. package/dist/types/components/Progress/types.d.ts +19 -0
  63. package/dist/types/components/Radio/KRadio.vue.d.ts +20 -0
  64. package/dist/types/components/Radio/types.d.ts +20 -0
  65. package/dist/types/components/Select/KSelect.vue.d.ts +22 -0
  66. package/dist/types/components/Select/types.d.ts +30 -0
  67. package/dist/types/components/Table/KTable.vue.d.ts +11 -0
  68. package/dist/types/components/Table/types.d.ts +16 -0
  69. package/dist/types/components/Tabs/KTab.vue.d.ts +13 -0
  70. package/dist/types/components/Tabs/KTabPanel.vue.d.ts +13 -0
  71. package/dist/types/components/Tabs/KTabs.vue.d.ts +25 -0
  72. package/dist/types/components/Tabs/types.d.ts +35 -0
  73. package/dist/types/components/Toast/types.d.ts +20 -0
  74. package/dist/types/components/Toast/useToast.d.ts +20 -0
  75. package/dist/types/components/Toggle/KToggle.vue.d.ts +20 -0
  76. package/dist/types/components/Toggle/types.d.ts +8 -0
  77. package/dist/types/components/Tooltip/KTooltip.vue.d.ts +45 -0
  78. package/dist/types/components/Tooltip/types.d.ts +18 -0
  79. package/dist/types/components/Workspace/KWorkspace.vue.d.ts +30 -0
  80. package/dist/types/components/Workspace/types.d.ts +29 -0
  81. package/dist/types/components/index.d.ts +44 -0
  82. package/dist/types/components/types.d.ts +27 -0
  83. package/dist/types/types.d.ts +1 -0
  84. package/package.json +9 -5
  85. package/dist/types/stories/KBadge.stories.d.ts +0 -104
  86. package/dist/types/stories/KButton.stories.d.ts +0 -117
  87. package/dist/types/stories/KContainer.stories.d.ts +0 -84
  88. package/dist/types/stories/KInput.stories.d.ts +0 -172
  89. package/dist/types/stories/KNavbar.stories.d.ts +0 -67
  90. package/dist/types/stories/KNavbarMenu.stories.d.ts +0 -99
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- (function(l,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],e):(l=typeof globalThis<"u"?globalThis:l||self,e(l["knitify-vue"]={},l.Vue,l.vueRouter))})(this,(function(l,e,f){"use strict";function u(t){return t.charAt(0).toUpperCase()+t.slice(1)}const B=e.defineComponent({__name:"KButton",props:{disabled:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1},href:{},outline:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},to:{},type:{default:"button"},variant:{}},setup(t){const{href:a,navigate:o}=f.useLink({to:e.computed(()=>t.to??"/")}),r=e.computed(()=>t.to||t.href?"a":"button"),s=e.computed(()=>{if(t.to)return a.value;if(t.href)return t.href}),d=e.computed(()=>["KButton",t.variant?t.ghost?`KButton--ghost${u(t.variant)}`:t.outline?`KButton--outline${u(t.variant)}`:`KButton--${t.variant}`:null,!t.variant&&t.outline&&"KButton--outline",!t.variant&&t.ghost&&"KButton--ghost",t.rounded&&"KButton--rounded",t.expanded&&"KButton--expanded"]);function n(c){t.to&&o(c)}return(c,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{href:s.value,type:r.value==="button"?t.type:void 0,disabled:r.value==="button"?t.disabled:void 0,class:e.normalizeClass(d.value),onClick:n},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["href","type","disabled","class"]))}}),C=e.defineComponent({__name:"KContainer",props:{glassy:{type:Boolean}},setup(t){return(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["KContainer",t.glassy&&"KContainer--glassy"])},[e.renderSlot(a.$slots,"default")],2))}}),g={class:"KIcon",title:"icon",role:"img"},h=["href"],K=e.defineComponent({__name:"KIcon",props:{href:{default:""}},setup(t){return(a,o)=>(e.openBlock(),e.createElementBlock("svg",g,[e.createElementVNode("use",{href:`#${t.href.replace(/^#/,"")}`},null,8,h)]))}}),k={key:0,class:"KInput-addon"},N=["disabled","placeholder","type"],$={key:1,class:"KInput-addon"},p=e.defineComponent({__name:"KInput",props:e.mergeModels({disabled:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1},placeholder:{},rounded:{type:Boolean,default:!1},sunken:{type:Boolean,default:!1},transparent:{type:Boolean,default:!1},type:{default:"text"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const a=e.useModel(t,"modelValue"),o=e.useSlots(),r=e.computed(()=>["KInput",t.disabled&&"KInput--disabled",t.ghost&&"KInput--ghost",t.rounded&&"KInput--rounded",t.sunken&&"KInput--sunken",t.transparent&&"KInput--transparent"]);return(s,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(r.value)},[o.prefix?(e.openBlock(),e.createElementBlock("div",k,[e.renderSlot(s.$slots,"prefix")])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=n=>a.value=n),disabled:t.disabled,placeholder:t.placeholder,type:t.type},null,8,N),[[e.vModelDynamic,a.value]]),o.suffix?(e.openBlock(),e.createElementBlock("div",$,[e.renderSlot(s.$slots,"suffix")])):e.createCommentVNode("",!0)],2))}}),V=e.defineComponent({__name:"KBadge",props:{pill:{type:Boolean},size:{},subtle:{type:Boolean},variant:{}},setup(t){return(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["KBadge",t.pill&&"KBadge--pill",t.size&&`KBadge--${t.size}`,t.subtle&&"KBadge--subtle",t.variant&&`KBadge--${t.variant}`])},[e.renderSlot(a.$slots,"default")],2))}}),z={class:"KNavbar-menu"},S=["href","onClick"],E={key:0,class:e.normalizeClass(["KNavbar-caret","KCollapse-toggle"]),"data-kt-collapse-toggle":""},m=e.defineComponent({__name:"KNavbarMenu",props:{items:{default:()=>[]}},setup(t){const a=e.computed(()=>t.items.filter(({hidden:o})=>!o));return(o,r)=>{const s=e.resolveComponent("KIcon"),d=e.resolveComponent("KNavbarMenu",!0);return e.openBlock(),e.createElementBlock("ul",z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(n,c)=>e.renderSlot(o.$slots,"item",{key:`navbar-menu-item-${c}`,item:n},()=>[e.createVNode(e.unref(f.RouterLink),{to:n.route??"/",custom:""},{default:e.withCtx(({isActive:i,href:x,navigate:M})=>[e.createElementVNode("li",{class:e.normalizeClass(["KNavbar-item","KCollapse is-collapsed",i&&"KNavbar-item-is-active"]),"data-kt-collapse":""},[e.createElementVNode("a",{class:e.normalizeClass(["KNavbar-link"]),href:n.route?x:void 0,onClick:e.withModifiers(j=>n.route?M():n.onClick?.(),["prevent"])},[e.createElementVNode("span",{class:e.normalizeClass(["KNavbar-icon",n.iconClass])},[e.createVNode(s,{href:n.icon},null,8,["href"])],2),n.badge?(e.openBlock(),e.createBlock(V,{key:0,class:e.normalizeClass(["KNavbar-badge",n.badgeClass]),pill:"",size:"sm",variant:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.badge),1)]),_:2},1032,["class"])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(["KNavbar-text",n.textClass])},e.toDisplayString(n.text),3)],8,S),n.children?(e.openBlock(),e.createElementBlock("span",E,[e.createVNode(s,{href:"#caretUp"})])):e.createCommentVNode("",!0),n.children?(e.openBlock(),e.createBlock(d,{key:1,items:n.children,class:"KCollapse-content","data-kt-collapse-content":""},null,8,["items"])):e.createCommentVNode("",!0)],2)]),_:2},1032,["to"])])),128))])}}}),b=e.defineComponent({__name:"KNavbar",props:e.mergeModels({items:{},bodyClass:{type:[Boolean,null,String,Object,Array]},brandClass:{type:[Boolean,null,String,Object,Array]},fixed:{type:Boolean,default:!1},footerClass:{type:[Boolean,null,String,Object,Array]},hideToggle:{type:Boolean},innerClass:{type:[Boolean,null,String,Object,Array]},toggleClass:{type:[Boolean,null,String,Object,Array]}},{expanded:{type:Boolean,default:!1},expandedModifiers:{}}),emits:e.mergeModels(["toggle"],["update:expanded"]),setup(t,{emit:a}){const o=e.useModel(t,"expanded"),r=a,s=e.useSlots(),d=()=>{o.value=!o.value,r("toggle",o.value)};return(n,c)=>{const i=e.resolveComponent("KIcon");return e.openBlock(),e.createElementBlock("aside",{class:e.normalizeClass(["KNavbar",o.value&&"KNavbar-is-expanded",t.fixed&&"KNavbar-is-fixed"])},[e.createElementVNode("div",{class:e.normalizeClass(["KNavbar-inner",t.innerClass])},[s.brand?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["KNavbar-brand",t.brandClass])},[e.renderSlot(n.$slots,"brand")],2)):e.createCommentVNode("",!0),e.createElementVNode("nav",{class:e.normalizeClass(["KNavbar-body",t.bodyClass])},[e.renderSlot(n.$slots,"default",{},()=>[e.createVNode(m,{items:t.items},null,8,["items"])])],2),s.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["KNavbar-footer",t.footerClass])},[e.renderSlot(n.$slots,"footer")],2)):e.createCommentVNode("",!0)],2),t.hideToggle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(["KNavbar-toggle",t.toggleClass]),onClick:d},[e.createVNode(i,{href:"#caretLeft"})],2))],2)}}}),y=Object.freeze(Object.defineProperty({__proto__:null,KButton:B,KContainer:C,KIcon:K,KInput:p,KNavbar:b,KNavbarMenu:m},Symbol.toStringTag,{value:"Module"})),I={install(t){for(const a in y)t.component(a,y[a])}};l.KButton=B,l.KContainer=C,l.KIcon=K,l.KInput=p,l.KNavbar=b,l.KNavbarMenu=m,l.default=I,Object.defineProperties(l,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
1
+ (function(u,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@knitify/core"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@knitify/core","vue-router"],e):(u=typeof globalThis<"u"?globalThis:u||self,e(u["knitify-vue"]={},u.Vue,u.Knitify,u.vueRouter))})(this,(function(u,e,w,A){"use strict";const L=Symbol("KAccordionGroup"),x=Symbol("KChatBusy"),G=e.defineComponent({__name:"KAccordion",props:{exclusive:{type:Boolean,default:!1},group:{},ghost:{type:Boolean,default:!1}},setup(t){const o=e.useId(),l=e.computed(()=>t.group?t.group:t.exclusive?`accordion-${o}`:void 0);e.provide(L,l);const a=e.computed(()=>["KAccordion",t.ghost&&"KAccordion--ghost"]);return(s,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.renderSlot(s.$slots,"default")],2))}}),Ie=["collapse","collapsed","expand","expanded"];function F({direction:t,element:o,expanded:l,horizontal:a,onEvent:s}){let n,d=!1;function r(){return!n&&o.value&&(n=new w.modules.Collapse(o.value,{horizontal:a?.()??!1,direction:t?.()??"right"})),n}e.watch(()=>[a?.(),t?.()],()=>{n=void 0}),e.watch(l,c=>{if(c===d)return;const h=r();h&&(d=c,c?h.expand():h.collapse())},{flush:"post"});const m=Ie.map(c=>{const h=g=>{g.target===o.value&&(c==="expand"&&(d=!0,l.value=!0),c==="collapse"&&(d=!1,l.value=!1),s?.(c))};return[`kt.${c}`,h]});return e.watch(o,(c,h,g)=>{if(n=void 0,!!c){for(const[y,i]of m)c.addEventListener(y,i);d=l.value,c.classList.remove("is-active","is-expanded","is-collapsed"),c.classList.add(...l.value?["is-active","is-expanded"]:["is-collapsed"]),g(()=>{for(const[y,i]of m)c.removeEventListener(y,i)})}},{flush:"post",immediate:!0}),e.onBeforeUnmount(()=>{n=void 0}),{collapse:()=>{l.value=!1},expand:()=>{l.value=!0},toggle:()=>{l.value=!l.value}}}const je=["data-kt-collapse-group"],Oe={class:"KCollapse-toggle","data-kt-collapse-toggle":""},Re=["aria-expanded"],Pe={class:"KAccordion-title",role:"heading","aria-level":"3"},Ge={class:"KAccordion-icon"},Fe={class:"KIcon","aria-hidden":"true"},Ue=["href"],He={class:"KAccordion-content KCollapse-content","data-kt-collapse-content":"",role:"region"},We={class:"KAccordion-body"},U=e.defineComponent({__name:"KAccordionItem",props:e.mergeModels({expanded:{type:Boolean},icon:{default:"#arrowDropRight"},title:{}},{expanded:{type:Boolean,default:!1},expandedModifiers:{}}),emits:["update:expanded"],setup(t,{expose:o}){const l=e.useModel(t,"expanded"),a=e.inject(L,void 0),s=e.useTemplateRef("root"),{toggle:n}=F({element:s,expanded:l}),d=e.computed(()=>a?.value);return o({toggle:n}),(r,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:s,class:"KAccordion-item KCollapse","data-kt-collapse":"","data-kt-collapse-group":d.value},[e.createElementVNode("div",Oe,[e.createElementVNode("div",{class:"KAccordion-button",role:"button",tabindex:"0","aria-expanded":l.value,onKeydown:[m[0]||(m[0]=e.withKeys(e.withModifiers((...c)=>e.unref(n)&&e.unref(n)(...c),["prevent"]),["enter"])),m[1]||(m[1]=e.withKeys(e.withModifiers((...c)=>e.unref(n)&&e.unref(n)(...c),["prevent"]),["space"]))]},[e.createElementVNode("div",Pe,[e.renderSlot(r.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])]),e.createElementVNode("div",Ge,[(e.openBlock(),e.createElementBlock("svg",Fe,[e.createElementVNode("use",{href:t.icon},null,8,Ue)]))])],40,Re)]),e.createElementVNode("div",He,[e.createElementVNode("div",We,[e.renderSlot(r.$slots,"default")])])],8,je))}}),qe={key:0,class:"KAlert-title"},H=e.defineComponent({__name:"KAlert",props:{title:{},variant:{}},setup(t){const o=e.useSlots(),l=e.computed(()=>["KAlert",t.variant&&`KAlert--${t.variant}`]),a=e.computed(()=>!!(o.title||t.title));return(s,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value),role:"alert"},[a.value?(e.openBlock(),e.createElementBlock("h4",qe,[e.renderSlot(s.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default")],2))}}),Ye=["src","alt"],Je={key:1,class:"KIcon KAvatar-icon","aria-hidden":"true"},Xe=["href"],Ze=["aria-label","role"],Qe="#user",W=e.defineComponent({__name:"KAvatar",props:{alt:{default:""},icon:{type:[Boolean,String],default:!1},overflow:{type:Boolean,default:!1},size:{},src:{},status:{type:[Boolean,String]},statusLabel:{},variant:{}},setup(t){const o=e.computed(()=>["KAvatar",t.variant&&`KAvatar--${t.variant}`,t.size&&t.size!=="md"&&`KAvatar--${t.size}`,t.overflow&&"KAvatar--overflow"]),l=e.computed(()=>typeof t.icon=="string"?t.icon:t.icon?Qe:void 0),a=e.computed(()=>!t.src&&!!l.value),s=e.computed(()=>!t.src&&!a.value),n=e.computed(()=>t.status===!0||typeof t.status=="string"),d=e.computed(()=>["KAvatar-status",typeof t.status=="string"&&`is-${t.status}`]);return(r,m)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(o.value)},[t.src?(e.openBlock(),e.createElementBlock("img",{key:0,class:"KAvatar-image",src:t.src,alt:t.alt},null,8,Ye)):a.value?(e.openBlock(),e.createElementBlock("svg",Je,[e.createElementVNode("use",{href:l.value},null,8,Xe)])):e.createCommentVNode("",!0),s.value?e.renderSlot(r.$slots,"default",{key:2}):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(d.value),"aria-label":t.statusLabel,role:t.statusLabel?"img":void 0},null,10,Ze)):e.createCommentVNode("",!0)],2))}}),q=e.defineComponent({__name:"KAvatarGroup",props:{diagonal:{type:Boolean,default:!1},size:{}},setup(t){const o=e.computed(()=>["KAvatarGroup",t.diagonal&&"KAvatarGroup--diagonal",t.size&&t.size!=="md"&&`KAvatarGroup--${t.size}`]);return(l,a)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(o.value)},[e.renderSlot(l.$slots,"default")],2))}}),I=e.defineComponent({__name:"KBadge",props:{pill:{type:Boolean},size:{},subtle:{type:Boolean},variant:{}},setup(t){return(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["KBadge",t.pill&&"KBadge--pill",t.size&&`KBadge--${t.size}`,t.subtle&&"KBadge--subtle",t.variant&&`KBadge--${t.variant}`])},[e.renderSlot(o.$slots,"default")],2))}}),ve=["aria-label"],Y=e.defineComponent({__name:"KBreadcrumb",props:{ariaLabel:{default:"breadcrumb"},divider:{}},setup(t){const o=e.computed(()=>t.divider?{"--kt-breadcrumb-divider":`"${t.divider}"`}:void 0);return(l,a)=>(e.openBlock(),e.createElementBlock("nav",{"aria-label":t.ariaLabel},[e.createElementVNode("ol",{class:"KBreadcrumb",style:e.normalizeStyle(o.value)},[e.renderSlot(l.$slots,"default")],4)],8,ve))}}),_e=["aria-current"],et=["href"],J=e.defineComponent({__name:"KBreadcrumbItem",props:{active:{type:Boolean,default:()=>{}},href:{},to:{}},setup(t){const o=A.useLink({to:e.computed(()=>t.to??"/")}),l=e.computed(()=>t.active??(t.to?o.isActive.value:!1)),a=e.computed(()=>t.to?o.href.value:t.href),s=e.computed(()=>["KBreadcrumb-item",l.value&&"KBreadcrumb-is-active"]);function n(d){t.to&&(d.preventDefault(),o.navigate(d))}return(d,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(s.value),"aria-current":l.value?"page":void 0},[!l.value&&a.value?(e.openBlock(),e.createElementBlock("a",{key:0,href:a.value,onClick:n},[e.renderSlot(d.$slots,"default")],8,et)):e.renderSlot(d.$slots,"default",{key:1})],10,_e))}});function X(t){return t.charAt(0).toUpperCase()+t.slice(1)}const j=e.defineComponent({__name:"KButton",props:{disabled:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},href:{},icon:{type:Boolean,default:!1},iconCircular:{type:Boolean,default:!1},minimal:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},size:{},to:{},type:{default:"button"},utility:{type:Boolean,default:!1},variant:{}},setup(t){const o=["warning"],l=["warning","affirm"],{href:a,navigate:s}=A.useLink({to:e.computed(()=>t.to??"/")}),n=e.computed(()=>t.to||t.href?"a":"button"),d=e.computed(()=>{if(t.to)return a.value;if(t.href)return t.href}),r=e.computed(()=>t.variant?t.utility&&!o.includes(t.variant)?`KButton--utility${X(t.variant)}`:t.minimal&&!l.includes(t.variant)?`KButton--minimal${X(t.variant)}`:`KButton--${t.variant}`:t.utility?"KButton--utility":t.minimal?"KButton--minimal":t.secondary?"KButton--secondary":null),m=e.computed(()=>["KButton",r.value,t.size&&t.size!=="md"&&`KButton--${t.size}`,t.icon&&"KButton--icon",t.iconCircular&&"KButton--iconCircular",t.rounded&&"KButton--rounded",t.expanded&&"KButton--expanded",t.selected&&"KButton--selected"]);function c(h){t.to&&s(h)}return(h,g)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value),{href:d.value,type:n.value==="button"?t.type:void 0,disabled:n.value==="button"?t.disabled:void 0,class:e.normalizeClass(m.value),onClick:c},{default:e.withCtx(()=>[e.renderSlot(h.$slots,"default")]),_:3},8,["href","type","disabled","class"]))}}),Z=e.defineComponent({__name:"KCalendar",props:e.mergeModels({disabledDates:{},firstDay:{default:0},locale:{default:"en-US"},maxDate:{},minDate:{},mode:{default:"single"}},{modelValue:{default:null},modelModifiers:{},range:{default:null},rangeModifiers:{}}),emits:e.mergeModels(["clear","navigate","rangestart"],["update:modelValue","update:range"]),setup(t,{expose:o,emit:l}){const a=e.useModel(t,"modelValue"),s=e.useModel(t,"range"),n=l,d=e.useTemplateRef("root");let r,m=null,c=null;const h=f=>f?`${f.start.getTime()}-${f.end.getTime()}`:null,g=f=>f.target===d.value;function y(f){if(!g(f))return;const b=f.detail;b&&(m=b.date.getTime(),a.value=b.date)}function i(f){if(!g(f))return;const b=f.detail;b&&(c=h(b),s.value={start:b.start,end:b.end})}function K(f){if(!g(f))return;const b=f.detail;b&&n("rangestart",b.date)}function $(f){if(!g(f))return;const b=f.detail;b&&n("navigate",b.year,b.month)}function C(f){g(f)&&(m=null,c=null,a.value=null,s.value=null,n("clear"))}const S=[["kt.calendar.select",y],["kt.calendar.rangeselect",i],["kt.calendar.rangestart",K],["kt.calendar.navigate",$],["kt.calendar.clear",C]];function N(f){r?.destroy(),r=new w.modules.Calendar(f,{disabledDates:t.disabledDates,firstDay:t.firstDay,locale:t.locale,maxDate:t.maxDate,minDate:t.minDate,mode:t.mode}),t.mode==="range"&&s.value?(c=h(s.value),r.setRange(s.value.start,s.value.end)):t.mode==="single"&&a.value&&(m=a.value.getTime(),r.setDate(a.value))}return e.watch(d,(f,b,B)=>{if(f){for(const[k,p]of S)f.addEventListener(k,p);N(f),B(()=>{for(const[k,p]of S)f.removeEventListener(k,p)})}},{flush:"post",immediate:!0}),e.watch(()=>[t.mode,t.locale,t.firstDay,t.minDate,t.maxDate,t.disabledDates],()=>{d.value&&N(d.value)},{deep:!0}),e.watch(a,f=>{(f?.getTime()??null)!==m&&(m=f?.getTime()??null,f?r?.setDate(f):r?.clearSelection())}),e.watch(s,f=>{h(f)!==c&&(c=h(f),f?r?.setRange(f.start,f.end):r?.clearSelection())}),e.onBeforeUnmount(()=>{r?.destroy(),r=void 0}),o({clear:()=>r?.clearSelection(),navigateTo:(f,b)=>r?.navigateTo(f,b),next:()=>r?.next(),prev:()=>r?.prev()}),(f,b)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:d,class:"KCalendar","data-kt-calendar":""},null,512))}}),tt={key:0,class:"KCard-title"},Q=e.defineComponent({__name:"KCard",props:{accented:{type:Boolean,default:!1},bodyClass:{type:[Boolean,null,String,Object,Array]},borderless:{type:Boolean,default:!1},footerClass:{type:[Boolean,null,String,Object,Array]},flush:{type:Boolean,default:!1},headerClass:{type:[Boolean,null,String,Object,Array]},hoverable:{type:Boolean,default:!1},lifted:{type:Boolean,default:!1},sunken:{type:Boolean,default:!1},title:{}},setup(t){const o=e.useSlots(),l=e.computed(()=>["KCard",t.accented&&"KCard--accented",t.borderless&&"KCard--borderless",t.flush&&"KCard--flush",t.hoverable&&"KCard--hoverable",t.lifted&&"KCard--lifted",t.sunken&&"KCard--sunken"]),a=e.computed(()=>!!(o.title||t.title)),s=e.computed(()=>!!(o.header||a.value));return(n,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["KCard-header",t.headerClass])},[e.renderSlot(n.$slots,"header",{},()=>[a.value?(e.openBlock(),e.createElementBlock("h3",tt,[e.renderSlot(n.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["KCard-body",t.bodyClass])},[e.renderSlot(n.$slots,"default")],2),o.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["KCard-footer",t.footerClass])},[e.renderSlot(n.$slots,"footer")],2)):e.createCommentVNode("",!0)],2))}}),at={key:0,class:"KChat-footer"},lt=48,v=e.defineComponent({__name:"KChat",props:{ai:{type:Boolean,default:!1},autoscroll:{type:Boolean,default:!0},busy:{type:Boolean,default:!1},height:{}},setup(t,{expose:o}){const l=e.useSlots();e.provide(x,e.toRef(()=>t.busy));const a=e.useTemplateRef("body");let s,n=!0;const d=e.computed(()=>t.height?{"--kt-chat-height":t.height}:void 0);function r(){const c=a.value;c&&(c.scrollTop=c.scrollHeight)}function m(){const c=a.value;c&&(n=c.scrollHeight-c.scrollTop-c.clientHeight<=lt)}return e.onMounted(()=>{const c=a.value;c&&(r(),t.autoscroll&&(c.addEventListener("scroll",m,{passive:!0}),s=new MutationObserver(()=>{n&&r()}),s.observe(c,{childList:!0,subtree:!0})))}),e.onUnmounted(()=>{s?.disconnect()}),o({scrollToBottom:r}),(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["KChat",t.ai&&"KChat--ai"]),style:e.normalizeStyle(d.value)},[e.createElementVNode("div",{ref_key:"body",ref:a,class:"KChat-body"},[e.renderSlot(c.$slots,"default")],512),l.footer?(e.openBlock(),e.createElementBlock("div",at,[e.renderSlot(c.$slots,"footer")])):e.createCommentVNode("",!0)],6))}}),ot={key:0,class:"KChat-time"},nt={class:"KChat-bubble"},_=e.defineComponent({__name:"KChatMessage",props:{sender:{type:Boolean,default:!1},time:{}},setup(t){const o=e.useSlots(),l=e.computed(()=>!!(t.time||o.time));return(a,s)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["KChat-message",t.sender&&"is-sender"])},[l.value?(e.openBlock(),e.createElementBlock("span",ot,[e.renderSlot(a.$slots,"time",{},()=>[e.createTextVNode(e.toDisplayString(t.time),1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",nt,[e.renderSlot(a.$slots,"default")])],2))}}),st={class:"KChat-messages"},ee=e.defineComponent({__name:"KChatMessages",setup(t){return(o,l)=>(e.openBlock(),e.createElementBlock("ul",st,[e.renderSlot(o.$slots,"default")]))}}),rt={key:0,class:"KInput-addon"},dt=["disabled","placeholder","readonly","rows"],ct=["disabled","placeholder","readonly","type"],it={key:3,class:"KInput-addon"},O=e.defineComponent({inheritAttrs:!1,__name:"KInput",props:e.mergeModels({addonBordered:{type:Boolean,default:!1},autosize:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1},maxRows:{default:5},placeholder:{},readonly:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},rows:{},sunken:{type:Boolean,default:!1},textarea:{type:Boolean,default:!1},transparent:{type:Boolean,default:!1},type:{default:"text"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:o}){const l=e.useModel(t,"modelValue"),a=e.useSlots(),s=e.useAttrs(),n=e.computed(()=>t.textarea||t.autosize),d=e.useTemplateRef("field"),r=e.computed(()=>["KInput",t.addonBordered&&"KInput--addonBordered",t.autosize&&"KInput--autosize",t.disabled&&"KInput--disabled",t.ghost&&"KInput--ghost",t.rounded&&"KInput--rounded",t.sunken&&"KInput--sunken",t.transparent&&"KInput--transparent"]),m=e.computed(()=>{const{class:g,style:y,...i}=s;return i}),c=e.computed(()=>t.autosize?{"data-kt-input-autosize":"","data-kt-input-max-rows":t.maxRows}:{});async function h(){await e.nextTick(),d.value?.dispatchEvent(new Event("input",{bubbles:!0}))}return e.watch(()=>l.value,()=>{t.autosize&&h()}),e.onMounted(()=>{t.autosize&&l.value&&h()}),o({field:d}),(g,y)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:[r.value,e.unref(s).class],style:e.unref(s).style},c.value),[a.prefix?(e.openBlock(),e.createElementBlock("div",rt,[e.renderSlot(g.$slots,"prefix")])):e.createCommentVNode("",!0),n.value?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",e.mergeProps({key:1,ref_key:"field",ref:d,"onUpdate:modelValue":y[0]||(y[0]=i=>l.value=i)},m.value,{disabled:t.disabled,placeholder:t.placeholder,readonly:t.readonly,rows:t.autosize?1:t.rows}),null,16,dt)),[[e.vModelText,l.value]]):e.withDirectives((e.openBlock(),e.createElementBlock("input",e.mergeProps({key:2,"onUpdate:modelValue":y[1]||(y[1]=i=>l.value=i)},m.value,{disabled:t.disabled,placeholder:t.placeholder,readonly:t.readonly,type:t.type}),null,16,ct)),[[e.vModelDynamic,l.value]]),a.suffix?(e.openBlock(),e.createElementBlock("div",it,[e.renderSlot(g.$slots,"suffix")])):e.createCommentVNode("",!0)],16))}}),mt={key:0,class:"KIcon",viewBox:"0 0 16 16","aria-hidden":"true"},ft={key:1,class:"KIcon","aria-hidden":"true"},te=e.defineComponent({__name:"KChatPrompt",props:e.mergeModels({busy:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},maxRows:{default:5},newlineOnEnter:{type:Boolean,default:!1},placeholder:{default:"Write a message"}},{modelValue:{default:""},modelModifiers:{}}),emits:e.mergeModels(["stop","submit"],["update:modelValue"]),setup(t,{emit:o}){const l=e.useModel(t,"modelValue"),a=t,s=o,n=e.inject(x,void 0),d=e.computed(()=>a.busy??n?.value??!1),r=e.computed(()=>!l.value.trim()),m=e.computed(()=>a.disabled||!d.value&&r.value);function c(){if(d.value){s("stop");return}r.value||s("submit",l.value)}function h(g){a.newlineOnEnter||g.isComposing||(g.preventDefault(),c())}return(g,y)=>(e.openBlock(),e.createElementBlock("form",{class:"KChat-prompt",onSubmit:e.withModifiers(c,["prevent"])},[e.createVNode(O,{modelValue:l.value,"onUpdate:modelValue":y[0]||(y[0]=i=>l.value=i),autosize:"",rounded:"",disabled:a.disabled||d.value,"max-rows":a.maxRows,placeholder:a.placeholder,onKeydown:e.withKeys(e.withModifiers(h,["exact"]),["enter"])},null,8,["modelValue","disabled","max-rows","placeholder","onKeydown"]),e.renderSlot(g.$slots,"send",{busy:d.value,disabled:m.value},()=>[e.createVNode(j,{"icon-circular":"",type:"submit",disabled:m.value,"aria-label":d.value?"Stop":"Send"},{default:e.withCtx(()=>[d.value?(e.openBlock(),e.createElementBlock("svg",mt,[...y[1]||(y[1]=[e.createElementVNode("rect",{x:"4",y:"4",width:"8",height:"8",rx:"1.5",fill:"currentColor"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",ft,[...y[2]||(y[2]=[e.createElementVNode("use",{href:"#arrowRight"},null,-1)])]))]),_:1},8,["disabled","aria-label"])])],32))}}),ut={class:"KChat-shimmer",role:"status"},ht={class:"KChat-shimmerStack"},ae=e.defineComponent({__name:"KChatShimmer",props:{interval:{default:2e3},text:{default:"Thinking…"},texts:{}},setup(t){const o=e.useSlots(),l=e.ref(0);let a;const s=e.computed(()=>!!(t.texts&&t.texts.length>1)&&!o.default),n=e.computed(()=>t.texts&&t.texts.length?t.texts[l.value%t.texts.length]:t.text);function d(){a&&(clearInterval(a),a=void 0)}function r(){d(),s.value&&(l.value=0,a=setInterval(()=>{l.value+=1},t.interval))}return e.watch([()=>t.texts?.join(" "),()=>t.interval],r,{immediate:!0}),e.onUnmounted(d),(m,c)=>(e.openBlock(),e.createElementBlock("li",ut,[e.createElementVNode("span",ht,[e.createVNode(e.Transition,{name:"KChat-shimmerText"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("span",{key:l.value,class:"KChat-shimmerText"},[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.value),1)])]))]),_:3})])]))}}),bt=["checked","disabled","value"],kt={key:0,class:"KCheckbox-label"},le=e.defineComponent({inheritAttrs:!1,__name:"KCheckbox",props:e.mergeModels({disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},label:{},value:{}},{modelValue:{type:[Boolean,Array],default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),l=e.useSlots(),a=e.useAttrs(),s=e.useTemplateRef("input"),n=e.computed(()=>Array.isArray(o.value)),d=e.computed(()=>n.value?o.value.includes(t.value):!!o.value),r=e.computed(()=>["KCheckbox",t.disabled&&"KCheckbox--disabled"]),m=e.computed(()=>{const{class:g,style:y,...i}=a;return i});function c(g){const y=g.target.checked;if(!n.value){o.value=y;return}const i=o.value;o.value=y?[...i,t.value]:i.filter(K=>K!==t.value)}function h(){s.value&&(s.value.indeterminate=t.indeterminate)}return e.watch(()=>t.indeterminate,h),e.onMounted(h),(g,y)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([r.value,e.unref(a).class]),style:e.normalizeStyle(e.unref(a).style)},[e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:s,class:"KCheckbox-input",type:"checkbox"},m.value,{checked:d.value,disabled:t.disabled,value:t.value,onChange:c}),null,16,bt),y[0]||(y[0]=e.createElementVNode("span",{class:"KCheckbox-box"},null,-1)),l.default||t.label?(e.openBlock(),e.createElementBlock("span",kt,[e.renderSlot(g.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])])):e.createCommentVNode("",!0)],6))}}),yt={class:"KCollapse-content","data-kt-collapse-content":""},oe=e.defineComponent({__name:"KCollapse",props:e.mergeModels({direction:{default:"right"},horizontal:{type:Boolean,default:!1},tag:{default:"div"}},{expanded:{type:Boolean,default:!1},expandedModifiers:{}}),emits:e.mergeModels(["collapse","collapsed","expand","expanded"],["update:expanded"]),setup(t,{expose:o,emit:l}){const a=e.useModel(t,"expanded"),s=l,n=e.useTemplateRef("root"),{toggle:d}=F({direction:()=>t.direction,element:n,expanded:a,horizontal:()=>t.horizontal,onEvent:r=>s(r)});return o({toggle:d,expand:()=>a.value=!0,collapse:()=>a.value=!1}),(r,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{ref_key:"root",ref:n,class:"KCollapse","data-kt-collapse":"","data-kt-collapse-horizontal":t.horizontal?t.direction==="left"?"left":"true":void 0},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"toggle",{toggle:e.unref(d),expanded:a.value}),e.createElementVNode("div",yt,[e.renderSlot(r.$slots,"default")])]),_:3},8,["data-kt-collapse-horizontal"]))}}),ne=e.defineComponent({__name:"KContainer",props:{glassy:{type:Boolean}},setup(t){return(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["KContainer",t.glassy&&"KContainer--glassy"])},[e.renderSlot(o.$slots,"default")],2))}}),gt=["data-kt-drawer-id","data-kt-drawer-static-backdrop"],Bt=["aria-labelledby"],Ct=["id"],se=e.defineComponent({__name:"KDrawer",props:e.mergeModels({bodyClass:{type:[Boolean,null,String,Object,Array]},closable:{type:Boolean,default:!0},contained:{type:Boolean,default:!1},edge:{default:"right"},focus:{type:Boolean,default:!0},footerClass:{type:[Boolean,null,String,Object,Array]},headerClass:{type:[Boolean,null,String,Object,Array]},id:{},keyboard:{type:Boolean,default:!0},noBackdrop:{type:Boolean,default:!1},panelClass:{type:[Boolean,null,String,Object,Array]},size:{},staticBackdrop:{type:Boolean,default:!1},teleport:{type:Boolean,default:()=>{}},title:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e.mergeModels(["hide","hidden","show","shown"],["update:open"]),setup(t,{expose:o,emit:l}){const a=e.useModel(t,"open"),s=l,n=e.useSlots(),d=e.useTemplateRef("root");let r,m=!1;const c=e.useId(),h=e.computed(()=>t.id??c),g=e.computed(()=>`${h.value}-title`),y=e.computed(()=>t.teleport??!t.contained),i=e.computed(()=>!!(t.title||n.title)),K=e.computed(()=>!!(n.header||i.value||t.closable)),$=e.computed(()=>["KDrawer",t.edge==="left"&&"KDrawer--left",t.size&&t.size!=="md"&&`KDrawer--${t.size}`,t.contained&&"KDrawer--contained",t.noBackdrop&&"KDrawer--noBackdrop"]);function C(){return!r&&d.value&&(r=new w.modules.Drawer(d.value,{focus:t.focus,keyboard:t.keyboard,staticBackdrop:t.staticBackdrop})),r}e.watch(()=>[t.focus,t.keyboard,t.staticBackdrop],()=>{r=void 0}),e.watch(a,B=>{if(B===m)return;const k=C();k&&(m=B,B?k.show():k.hide())},{flush:"post"});const S=B=>B.target===d.value,N={"kt.drawer.show":B=>{S(B)&&(m=!0,a.value=!0,s("show"))},"kt.drawer.shown":B=>{S(B)&&s("shown")},"kt.drawer.hide":B=>{S(B)&&(m=!1,a.value=!1,s("hide"))},"kt.drawer.hidden":B=>{S(B)&&s("hidden")}};e.watch(d,(B,k,p)=>{if(r=void 0,!!B){for(const[E,V]of Object.entries(N))B.addEventListener(E,V);B.setAttribute("aria-hidden","true"),a.value&&C()?.show(),p(()=>{for(const[E,V]of Object.entries(N))B.removeEventListener(E,V)})}},{flush:"post",immediate:!0});function f(B){t.keyboard||B.key!=="Escape"||d.value?.classList.contains("is-active")&&B.stopPropagation()}e.onMounted(()=>document.addEventListener("keydown",f,!0)),e.onBeforeUnmount(()=>{d.value?.classList.contains("is-active")&&document.body.classList.remove("is-drawer-active"),document.removeEventListener("keydown",f,!0)});function b(){a.value=!1}return o({show:()=>a.value=!0,hide:b,toggle:()=>a.value=!a.value}),(B,k)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body",disabled:!y.value},[e.createElementVNode("div",{ref_key:"root",ref:d,class:e.normalizeClass($.value),"data-kt-drawer-id":h.value,"data-kt-drawer-static-backdrop":t.staticBackdrop?"true":"false","data-kt-drawer":"",tabindex:"-1"},[e.createElementVNode("div",{class:e.normalizeClass(["KDrawer-panel",t.panelClass]),"aria-labelledby":i.value?g.value:void 0,"data-kt-drawer-panel":"",role:"dialog"},[K.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["KDrawer-header",t.headerClass])},[e.renderSlot(B.$slots,"header",{},()=>[i.value?(e.openBlock(),e.createElementBlock("h5",{key:0,id:g.value,class:"KDrawer-title"},[e.renderSlot(B.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])],8,Ct)):e.createCommentVNode("",!0),t.closable?(e.openBlock(),e.createElementBlock("button",{key:1,class:"KDrawer-close",type:"button","aria-label":"Close",onClick:e.withModifiers(b,["stop"])},[e.renderSlot(B.$slots,"close",{},()=>[k[0]||(k[0]=e.createTextVNode("✕",-1))])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["KDrawer-body",t.bodyClass])},[e.renderSlot(B.$slots,"default")],2),n.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["KDrawer-footer",t.footerClass])},[e.renderSlot(B.$slots,"footer")],2)):e.createCommentVNode("",!0)],10,Bt)],10,gt)],8,["disabled"]))}});function re({create:t,element:o,onEvent:l,open:a}){let s,n=!1;function d(){return!s&&o.value&&(s=t(o.value)),s}e.watch(a,c=>{if(c===n)return;const h=d();h&&(n=c,c?h.show():h.hide())},{flush:"post"});function r(c){return h=>{h.target===o.value&&(n=c==="shown",a.value=n,l?.(c))}}const m=[["kt.shown",r("shown")],["kt.hidden",r("hidden")]];return e.watch(o,(c,h,g)=>{if(s=void 0,!!c){for(const[y,i]of m)c.addEventListener(y,i);a.value&&(d()?.show(),n=!0),g(()=>{for(const[y,i]of m)c.removeEventListener(y,i)})}},{flush:"post",immediate:!0}),e.onBeforeUnmount(()=>{n&&s?.hide(),s=void 0}),{hide:()=>{a.value=!1},show:()=>{a.value=!0},toggle:()=>{a.value=!a.value}}}const Kt=["data-kt-dropdown-placement"],de=e.defineComponent({__name:"KDropdown",props:e.mergeModels({inline:{type:Boolean,default:!1},menuClass:{type:[Boolean,null,String,Object,Array]},placement:{default:"bottom-start"},toggleClass:{type:[Boolean,null,String,Object,Array]}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e.mergeModels(["hidden","shown"],["update:open"]),setup(t,{expose:o,emit:l}){const a=e.useModel(t,"open"),s=l,n=e.useTemplateRef("root"),{toggle:d}=re({create:m=>new w.modules.Dropdown(m,{placement:t.placement}),element:n,open:a,onEvent:m=>s(m)}),r=e.computed(()=>["KDropdown",t.inline&&"KDropdown--inline"]);return o({toggle:d,show:()=>a.value=!0,hide:()=>a.value=!1}),(m,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:n,class:e.normalizeClass(r.value),"data-kt-dropdown":"","data-kt-dropdown-placement":t.placement},[e.createElementVNode("span",{class:e.normalizeClass(["KDropdown-toggle",t.toggleClass]),"data-kt-dropdown-toggle":""},[e.renderSlot(m.$slots,"toggle",{open:a.value,toggle:e.unref(d)})],2),e.renderSlot(m.$slots,"default")],10,Kt))}}),pt={key:0,class:"KDropdown-text"},ce=e.defineComponent({__name:"KDropdownItem",props:{active:{type:Boolean,default:!1},parent:{type:Boolean,default:!1},text:{type:Boolean,default:!1}},setup(t){const o=e.computed(()=>["KDropdown-item",t.active&&"is-active",t.parent&&"is-parent"]);return(l,a)=>t.text?(e.openBlock(),e.createElementBlock("div",pt,[e.renderSlot(l.$slots,"default")])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(o.value),"data-kt-dropdown-item":""},[e.renderSlot(l.$slots,"default")],2))}}),$t={key:0,class:"KDropdown-submenu","data-kt-dropdown-submenu":""},St={key:1,class:"KDropdown-menu","data-kt-dropdown-menu":""},ie=e.defineComponent({__name:"KDropdownMenu",props:{submenu:{type:Boolean,default:!1}},setup(t){return(o,l)=>t.submenu?(e.openBlock(),e.createElementBlock("div",$t,[e.renderSlot(o.$slots,"default")])):(e.openBlock(),e.createElementBlock("div",St,[e.renderSlot(o.$slots,"default")]))}}),wt={class:"KFileTree-node",role:"none","data-kt-file-tree-node":""},Et=["data-kftree-id","tabindex","aria-expanded","data-kt-file-tree-lazy"],Nt={class:"KFileTree-caret","data-kt-file-tree-caret":"","aria-hidden":"true"},Vt={key:0,class:"KIcon","aria-hidden":"true"},Tt=["href"],zt={class:"KFileTree-icon","aria-hidden":"true"},Mt={key:0,class:"KIcon","aria-hidden":"true"},At=["href"],Lt={class:"KFileTree-label"},xt={key:0,class:"KFileTree-group",role:"group","data-kt-file-tree-group":""},Dt=e.defineComponent({__name:"KFileTreeNode",props:{caretIcon:{default:"#caretRight"},node:{},tabbable:{type:Boolean,default:!1}},setup(t){const o=e.useSlots(),l=e.computed(()=>t.node.id??t.node.label),a=e.computed(()=>Array.isArray(t.node.children)||!!t.node.lazy);return(s,n)=>{const d=e.resolveComponent("KFileTreeNode",!0);return e.openBlock(),e.createElementBlock("li",wt,[e.createElementVNode("a",{class:"KFileTree-row",role:"treeitem",href:"#","data-kftree-id":l.value,tabindex:t.tabbable?0:-1,"aria-expanded":a.value?t.node.expanded===!0:void 0,"data-kt-file-tree-row":"","data-kt-file-tree-lazy":t.node.lazy?"":void 0},[e.createElementVNode("span",Nt,[a.value?(e.openBlock(),e.createElementBlock("svg",Vt,[e.createElementVNode("use",{href:t.caretIcon},null,8,Tt)])):e.createCommentVNode("",!0)]),e.renderSlot(s.$slots,"label",{node:t.node},()=>[e.createElementVNode("span",zt,[t.node.icon?(e.openBlock(),e.createElementBlock("svg",Mt,[e.createElementVNode("use",{href:t.node.icon},null,8,At)])):e.createCommentVNode("",!0)]),e.createElementVNode("span",Lt,e.toDisplayString(t.node.label),1)])],8,Et),t.node.children?(e.openBlock(),e.createElementBlock("ul",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(r,m)=>(e.openBlock(),e.createBlock(d,{key:r.id??`${r.label}-${m}`,"caret-icon":t.caretIcon,node:r},e.createSlots({_:2},[o.label?{name:"label",fn:e.withCtx(c=>[e.renderSlot(s.$slots,"label",e.mergeProps({ref_for:!0},c))]),key:"0"}:void 0]),1032,["caret-icon","node"]))),128))])):e.createCommentVNode("",!0)])}}}),It=["data-kt-file-tree-activation"],T="data-kftree-id",me=e.defineComponent({__name:"KFileTree",props:e.mergeModels({activation:{default:"row"},caretIcon:{default:"#caretRight"},nodes:{default:()=>[]}},{selected:{default:null},selectedModifiers:{},expanded:{default:()=>[]},expandedModifiers:{}}),emits:e.mergeModels(["collapse","expand","load","select"],["update:selected","update:expanded"]),setup(t,{expose:o,emit:l}){const a=e.useModel(t,"selected"),s=e.useModel(t,"expanded"),n=l,d=e.useSlots(),r=e.useTemplateRef("root");let m,c=null,h=new Set;function g(){return!m&&r.value&&(m=new w.modules.FileTree(r.value,{activation:t.activation})),m}function y(f){return!f||f.closest("[data-kt-file-tree]")!==r.value?null:f.getAttribute(T)}function i(f){return r.value?.querySelector(`[${T}="${CSS.escape(f)}"]`)??null}function K(f){const b=y(f.target.closest(`[${T}]`));b&&(c=b,a.value=b,n("select",b))}function $(f){const b=y(f.target.closest(`[${T}]`));!b||h.has(b)||(h.add(b),s.value=[...s.value,b],n("expand",b))}function C(f){const b=y(f.target.closest(`[${T}]`));!b||!h.has(b)||(h.delete(b),s.value=s.value.filter(B=>B!==b),n("collapse",b))}function S(f){const b=y(f.target.closest(`[${T}]`));b&&n("load",b)}const N=[["kt.filetree.select",K],["kt.filetree.expand",$],["kt.filetree.collapse",C],["kt.filetree.load",S]];return e.watch(r,(f,b,B)=>{if(m=void 0,!f)return;for(const[p,E]of N)f.addEventListener(p,E);const k=g();h=new Set(s.value);for(const p of s.value){const E=i(p);E&&!k?.isExpanded(E)&&k?.expand(E)}if(a.value){const p=i(a.value);p&&(c=a.value,k?.select(p))}B(()=>{for(const[p,E]of N)f.removeEventListener(p,E)})},{flush:"post",immediate:!0}),e.watch(a,f=>{if(f!==c&&(c=f,f)){const b=i(f);b&&g()?.select(b)}}),e.watch(s,f=>{const b=new Set(f),B=g();if(B){for(const k of b)if(!h.has(k)){const p=i(k);p&&B.expand(p)}for(const k of h)if(!b.has(k)){const p=i(k);p&&B.collapse(p)}h=b}},{deep:!0}),e.onBeforeUnmount(()=>{m=void 0}),o({collapseAll:()=>g()?.collapseAll(),expandAll:()=>g()?.expandAll()}),(f,b)=>(e.openBlock(),e.createElementBlock("ul",{ref_key:"root",ref:r,class:"KFileTree",role:"tree","data-kt-file-tree":"","data-kt-file-tree-activation":t.activation},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.nodes,(B,k)=>(e.openBlock(),e.createBlock(Dt,{key:B.id??`${B.label}-${k}`,"caret-icon":t.caretIcon,node:B,tabbable:k===0},e.createSlots({_:2},[d.label?{name:"label",fn:e.withCtx(p=>[e.renderSlot(f.$slots,"label",e.mergeProps({ref_for:!0},p))]),key:"0"}:void 0]),1032,["caret-icon","node","tabbable"]))),128))],8,It))}});function fe(t,o){return o===void 0?[]:typeof o=="number"?[`is-${t}-${o}`]:Object.entries(o).map(([l,a])=>l==="base"?`is-${t}-${a}`:`is-${t}-${l}-${a}`)}function ue(t,o,l){return[t!==void 0&&`is-gap-${t}`,o!==void 0&&`is-row-gap-${o}`,l!==void 0&&`is-col-gap-${l}`]}const jt=12,he=e.defineComponent({__name:"KGrid",props:{gap:{},colGap:{},rowGap:{},align:{},cols:{},justify:{},rows:{}},setup(t){const o=e.computed(()=>t.cols!==void 0&&t.cols>=1&&t.cols<=jt),l=e.computed(()=>["KGrid",o.value&&`is-cols-${t.cols}`,...ue(t.gap,t.rowGap,t.colGap),t.align&&`is-align-${t.align}`,t.justify&&`is-justify-${t.justify}`]),a=e.computed(()=>{const s={};return t.cols!==void 0&&!o.value&&(s["--kt-grid-columns"]=String(Math.max(1,Math.floor(t.cols)))),t.rows!==void 0&&(s["--kt-grid-rows"]=String(t.rows)),Object.keys(s).length?s:void 0});return(s,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value),style:e.normalizeStyle(a.value)},[e.renderSlot(s.$slots,"default")],6))}}),be=e.defineComponent({__name:"KGridColumn",props:{alignSelf:{},justifySelf:{},row:{},start:{},span:{}},setup(t){const o=e.computed(()=>["KGrid-column",...fe("column",t.span),...fe("start",t.start),t.row!==void 0&&`is-row-${t.row}`,t.alignSelf&&`is-align-self-${t.alignSelf}`,t.justifySelf&&`is-justify-self-${t.justifySelf}`]);return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value)},[e.renderSlot(l.$slots,"default")],2))}}),ke=e.defineComponent({__name:"KGridRow",props:{gap:{},colGap:{},rowGap:{}},setup(t){const o=e.computed(()=>["KGrid-row",...ue(t.gap,t.rowGap,t.colGap)]);return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value)},[e.renderSlot(l.$slots,"default")],2))}}),Ot={class:"KIcon",title:"icon",role:"img"},Rt=["href"],z=e.defineComponent({__name:"KIcon",props:{href:{default:""}},setup(t){return(o,l)=>(e.openBlock(),e.createElementBlock("svg",Ot,[e.createElementVNode("use",{href:`#${t.href.replace(/^#/,"")}`},null,8,Rt)]))}}),Pt=["aria-label"],Gt={class:"KMenuList"},Ft={key:1,class:"KMenuList"},ye=e.defineComponent({__name:"KMenuList",props:{ariaLabel:{}},setup(t){return(o,l)=>t.ariaLabel?(e.openBlock(),e.createElementBlock("nav",{key:0,"aria-label":t.ariaLabel},[e.createElementVNode("ul",Gt,[e.renderSlot(o.$slots,"default")])],8,Pt)):(e.openBlock(),e.createElementBlock("ul",Ft,[e.renderSlot(o.$slots,"default")]))}}),Ut={class:"KMenuList-item"},ge=e.defineComponent({__name:"KMenuListItem",props:{active:{type:Boolean,default:()=>{}},disabled:{type:Boolean,default:!1},href:{},to:{}},setup(t){const o=A.useLink({to:e.computed(()=>t.to??"/")}),l=e.computed(()=>t.to||t.href?"a":"button"),a=e.computed(()=>t.to?o.href.value:t.href),s=e.computed(()=>t.active??(t.to?o.isActive.value:!1)),n=e.computed(()=>["KMenuList-link",s.value&&"is-active",t.disabled&&l.value==="a"&&"is-disabled"]);function d(r){if(t.disabled){r.preventDefault();return}t.to&&(r.preventDefault(),o.navigate(r))}return(r,m)=>(e.openBlock(),e.createElementBlock("li",Ut,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{class:e.normalizeClass(n.value),href:l.value==="a"?a.value:void 0,type:l.value==="button"?"button":void 0,disabled:l.value==="button"?t.disabled:void 0,"aria-disabled":l.value==="a"&&t.disabled?"true":void 0,"aria-current":s.value?"page":void 0,onClick:d},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},8,["class","href","type","disabled","aria-disabled","aria-current"]))]))}}),Ht=["data-kt-modal-id","data-kt-modal-static-backdrop"],Wt=["aria-label","aria-labelledby"],qt=["id"],Be=e.defineComponent({__name:"KModal",props:e.mergeModels({bodyClass:{type:[Boolean,null,String,Object,Array]},centered:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},containerClass:{type:[Boolean,null,String,Object,Array]},dialogClass:{type:[Boolean,null,String,Object,Array]},dialogLabel:{},focus:{type:Boolean,default:!0},footerClass:{type:[Boolean,null,String,Object,Array]},fullscreen:{type:Boolean,default:!1},headerClass:{type:[Boolean,null,String,Object,Array]},id:{},keyboard:{type:Boolean,default:!0},mainClass:{type:[Boolean,null,String,Object,Array]},scrollable:{type:Boolean,default:!1},sidebarClass:{type:[Boolean,null,String,Object,Array]},size:{},staticBackdrop:{type:Boolean,default:!1},title:{},teleport:{type:Boolean,default:!0}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e.mergeModels(["hide","hidden","show","shown"],["update:open"]),setup(t,{expose:o,emit:l}){const a=e.useModel(t,"open"),s=l,n=e.useSlots(),d=e.useTemplateRef("root");let r,m=!1;const c=e.useId(),h=e.computed(()=>t.id??c),g=e.computed(()=>`${h.value}-title`),y=e.computed(()=>!!(t.title||n.title)),i=e.computed(()=>!!(n.header||y.value||t.closable)),K=e.computed(()=>["KModal",t.centered&&"KModal--centered",t.scrollable&&"KModal--scrollable",t.size&&`KModal--${t.size}`,t.fullscreen&&"KModal--fullscreen"]);function $(){return!r&&d.value&&(r=new w.modules.Modal(d.value,{focus:t.focus,keyboard:t.keyboard,staticBackdrop:t.staticBackdrop})),r}e.watch(()=>[t.focus,t.keyboard,t.staticBackdrop],()=>{r=void 0}),e.watch(a,k=>{if(k===m)return;const p=$();p&&(m=k,k?p.show():p.hide())},{flush:"post"});const C=k=>k.target===d.value,S={"kt.modal.show":k=>{C(k)&&(m=!0,a.value=!0,s("show"))},"kt.modal.shown":k=>{C(k)&&s("shown")},"kt.modal.hide":k=>{C(k)&&(m=!1,a.value=!1,s("hide"))},"kt.modal.hidden":k=>{C(k)&&s("hidden")}};e.watch(d,(k,p,E)=>{if(r=void 0,!!k){for(const[V,P]of Object.entries(S))k.addEventListener(V,P);k.setAttribute("aria-hidden","true"),a.value&&$()?.show(),E(()=>{for(const[V,P]of Object.entries(S))k.removeEventListener(V,P)})}},{flush:"post",immediate:!0});function N(k){t.keyboard||k.key!=="Escape"||d.value?.classList.contains("is-active")&&k.stopPropagation()}e.onMounted(()=>document.addEventListener("keydown",N,!0)),e.onBeforeUnmount(()=>{d.value?.classList.contains("is-active")&&document.body.classList.remove("is-modal-active"),document.removeEventListener("keydown",N,!0)});function f(){a.value=!0}function b(){a.value=!1}function B(){a.value=!a.value}return o({show:f,hide:b,toggle:B}),(k,p)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body",disabled:!t.teleport},[e.createElementVNode("div",{ref_key:"root",ref:d,class:e.normalizeClass(K.value),"data-kt-modal-id":h.value,"data-kt-modal-static-backdrop":t.staticBackdrop?"true":"false","data-kt-modal":"",tabindex:"-1"},[e.createElementVNode("div",{class:e.normalizeClass(["KModal-container",t.containerClass])},[e.createElementVNode("div",{class:e.normalizeClass(["KModal-dialog",t.dialogClass]),"aria-label":t.dialogLabel,"aria-labelledby":!t.dialogLabel&&y.value?g.value:void 0,"data-kt-modal-dialog":"",role:"dialog"},[i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["KModal-header",t.headerClass])},[e.renderSlot(k.$slots,"header",{},()=>[y.value?(e.openBlock(),e.createElementBlock("h5",{key:0,id:g.value,class:"KModal-title"},[e.renderSlot(k.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])],8,qt)):e.createCommentVNode("",!0),t.closable?(e.openBlock(),e.createElementBlock("button",{key:1,class:"KModal-close",type:"button","aria-label":"Close",onClick:e.withModifiers(b,["stop"])},[e.renderSlot(k.$slots,"close",{},()=>[p[0]||(p[0]=e.createTextVNode("✕",-1))])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),n.sidebar?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["KModal-main",t.mainClass])},[e.createElementVNode("aside",{class:e.normalizeClass(["KModal-sidebar",t.sidebarClass])},[e.renderSlot(k.$slots,"sidebar")],2),e.createElementVNode("div",{class:e.normalizeClass(["KModal-body",t.bodyClass])},[e.renderSlot(k.$slots,"default")],2)],2)):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["KModal-body",t.bodyClass])},[e.renderSlot(k.$slots,"default")],2)),n.footer?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["KModal-footer",t.footerClass])},[e.renderSlot(k.$slots,"footer")],2)):e.createCommentVNode("",!0)],10,Wt)],2)],10,Ht)],8,["disabled"]))}}),Yt={class:"KNavbar-menu"},Jt=["href","onClick"],Xt={key:0,class:e.normalizeClass(["KNavbar-caret","KCollapse-toggle"]),"data-kt-collapse-toggle":""},R=e.defineComponent({__name:"KNavbarMenu",props:{items:{default:()=>[]}},setup(t){const o=e.computed(()=>t.items.filter(({hidden:l})=>!l));return(l,a)=>{const s=e.resolveComponent("KNavbarMenu",!0);return e.openBlock(),e.createElementBlock("ul",Yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(n,d)=>e.renderSlot(l.$slots,"item",{key:`navbar-menu-item-${d}`,item:n},()=>[e.createVNode(e.unref(A.RouterLink),{to:n.route??"/",custom:""},{default:e.withCtx(({isActive:r,href:m,navigate:c})=>[e.createElementVNode("li",{class:e.normalizeClass(["KNavbar-item","KCollapse is-collapsed",r&&"KNavbar-item-is-active"]),"data-kt-collapse":""},[e.createElementVNode("a",{class:e.normalizeClass(["KNavbar-link"]),href:n.route?m:void 0,onClick:e.withModifiers(h=>n.route?c():n.onClick?.(),["prevent"])},[e.createElementVNode("span",{class:e.normalizeClass(["KNavbar-icon",n.iconClass])},[e.createVNode(z,{href:n.icon},null,8,["href"])],2),n.badge?(e.openBlock(),e.createBlock(I,{key:0,class:e.normalizeClass(["KNavbar-badge",n.badgeClass]),pill:"",size:"sm",variant:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.badge),1)]),_:2},1032,["class"])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(["KNavbar-text",n.textClass])},e.toDisplayString(n.text),3)],8,Jt),n.children?(e.openBlock(),e.createElementBlock("span",Xt,[e.createVNode(z,{href:"#caretUp"})])):e.createCommentVNode("",!0),n.children?(e.openBlock(),e.createBlock(s,{key:1,items:n.children,class:"KCollapse-content","data-kt-collapse-content":""},null,8,["items"])):e.createCommentVNode("",!0)],2)]),_:2},1032,["to"])])),128))])}}}),Ce=e.defineComponent({__name:"KNavbar",props:e.mergeModels({items:{},bodyClass:{type:[Boolean,null,String,Object,Array]},brandClass:{type:[Boolean,null,String,Object,Array]},fixed:{type:Boolean,default:!1},footerClass:{type:[Boolean,null,String,Object,Array]},hideToggle:{type:Boolean},innerClass:{type:[Boolean,null,String,Object,Array]},toggleClass:{type:[Boolean,null,String,Object,Array]}},{expanded:{type:Boolean,default:!1},expandedModifiers:{}}),emits:e.mergeModels(["toggle"],["update:expanded"]),setup(t,{emit:o}){const l=e.useModel(t,"expanded"),a=o,s=e.useSlots(),n=()=>{l.value=!l.value,a("toggle",l.value)};return(d,r)=>(e.openBlock(),e.createElementBlock("aside",{class:e.normalizeClass(["KNavbar",l.value&&"KNavbar-is-expanded",t.fixed&&"KNavbar-is-fixed"])},[e.createElementVNode("div",{class:e.normalizeClass(["KNavbar-inner",t.innerClass])},[s.brand?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["KNavbar-brand",t.brandClass])},[e.renderSlot(d.$slots,"brand")],2)):e.createCommentVNode("",!0),e.createElementVNode("nav",{class:e.normalizeClass(["KNavbar-body",t.bodyClass])},[e.renderSlot(d.$slots,"default",{},()=>[e.createVNode(R,{items:t.items},null,8,["items"])])],2),s.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["KNavbar-footer",t.footerClass])},[e.renderSlot(d.$slots,"footer")],2)):e.createCommentVNode("",!0)],2),t.hideToggle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(["KNavbar-toggle",t.toggleClass]),onClick:n},[e.createVNode(z,{href:"#caretLeft"})],2))],2))}}),Zt=["aria-label"],Ke=e.defineComponent({__name:"KNotificationList",props:{ariaLabel:{}},setup(t){return(o,l)=>(e.openBlock(),e.createElementBlock("ul",{class:"KNotificationList","aria-label":t.ariaLabel},[e.renderSlot(o.$slots,"default")],8,Zt))}}),Qt={key:0,class:"KNotificationList-media"},vt={class:"KNotificationList-content"},_t={key:1,class:"KNotificationList-time"},ea={key:2,class:"KNotificationList-actions"},pe=e.defineComponent({__name:"KNotificationListItem",props:{hovered:{type:Boolean,default:!1},time:{},unread:{type:Boolean,default:!1},unreadLabel:{}},setup(t){const o=e.useSlots(),l=e.computed(()=>["KNotificationList-item",t.unread&&"is-active",t.hovered&&"is-hovered"]),a={position:"absolute",width:"1px",height:"1px",overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",whiteSpace:"nowrap"},s=e.computed(()=>!!(o.time||t.time));return(n,d)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(l.value)},[o.media?(e.openBlock(),e.createElementBlock("div",Qt,[e.renderSlot(n.$slots,"media")])):e.createCommentVNode("",!0),e.createElementVNode("div",vt,[t.unread&&t.unreadLabel?(e.openBlock(),e.createElementBlock("span",{key:0,style:a},e.toDisplayString(t.unreadLabel),1)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default")]),s.value?(e.openBlock(),e.createElementBlock("div",_t,[e.renderSlot(n.$slots,"time",{},()=>[e.createTextVNode(e.toDisplayString(t.time),1)])])):e.createCommentVNode("",!0),o.actions?(e.openBlock(),e.createElementBlock("div",ea,[e.renderSlot(n.$slots,"actions")])):e.createCommentVNode("",!0)],2))}}),ta=["data-kt-popover-placement"],$e=e.defineComponent({__name:"KPopover",props:e.mergeModels({contentClass:{type:[Boolean,null,String,Object,Array]},placement:{default:"bottom-start"},toggleClass:{type:[Boolean,null,String,Object,Array]}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e.mergeModels(["hidden","shown"],["update:open"]),setup(t,{expose:o,emit:l}){const a=e.useModel(t,"open"),s=l,n=e.useTemplateRef("root"),{toggle:d}=re({create:r=>new w.modules.Popover(r,{placement:t.placement}),element:n,open:a,onEvent:r=>s(r)});return o({toggle:d,show:()=>a.value=!0,hide:()=>a.value=!1}),(r,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:n,class:"KPopover","data-kt-popover":"","data-kt-popover-placement":t.placement},[e.createElementVNode("span",{class:e.normalizeClass(["KPopover-toggle",t.toggleClass]),"data-kt-popover-toggle":""},[e.renderSlot(r.$slots,"toggle",{open:a.value,toggle:e.unref(d)})],2),e.createElementVNode("div",{class:e.normalizeClass(["KPopover-content",t.contentClass]),"data-kt-popover-content":""},[e.renderSlot(r.$slots,"default")],2)],8,ta))}}),aa=["aria-valuenow","aria-valuemax"],la=["viewBox"],oa={key:1,class:"KProgress-fill"},na={class:"KProgress-label"},Se=e.defineComponent({__name:"KProgress",props:{label:{},max:{default:100},rounded:{type:Boolean,default:!1},shape:{default:"linear"},size:{},value:{default:0}},setup(t){const o=e.computed(()=>t.shape==="circular"||t.shape==="semiCircular"),l=e.computed(()=>!Number.isFinite(t.max)||t.max<=0?0:Math.min(100,Math.max(0,t.value/t.max*100))),a=e.computed(()=>t.label??`${Math.round(l.value)}%`),s=e.computed(()=>["KProgress",t.shape!=="linear"&&`KProgress--${t.shape}`,t.rounded&&"KProgress--rounded",t.size&&t.size!=="md"&&`KProgress--${t.size}`]),n=e.computed(()=>t.shape==="semiCircular"?"0 0 36 20":"0 0 36 36");return(d,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),style:e.normalizeStyle({"--kt-progress-value":l.value}),"aria-valuenow":t.value,"aria-valuemin":0,"aria-valuemax":t.max,role:"progressbar"},[o.value?(e.openBlock(),e.createElementBlock("svg",{key:0,class:"KProgress-svg",viewBox:n.value,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...r[0]||(r[0]=[e.createElementVNode("circle",{class:"KProgress-track",cx:"18",cy:"18",r:"15.9"},null,-1),e.createElementVNode("circle",{class:"KProgress-fill",cx:"18",cy:"18",r:"15.9"},null,-1)])],8,la)):(e.openBlock(),e.createElementBlock("div",oa)),e.createElementVNode("span",na,[e.renderSlot(d.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(a.value),1)])])],14,aa))}}),sa=["checked","disabled","name"],ra={key:0,class:"KRadio-label"},we=e.defineComponent({inheritAttrs:!1,__name:"KRadio",props:e.mergeModels({disabled:{type:Boolean,default:!1},label:{},name:{},value:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),l=e.useSlots(),a=e.useAttrs(),s=e.computed(()=>o.value===t.value),n=e.computed(()=>["KRadio",t.disabled&&"KRadio--disabled"]),d=e.computed(()=>{const{class:m,style:c,...h}=a;return h});function r(){o.value=t.value}return(m,c)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([n.value,e.unref(a).class]),style:e.normalizeStyle(e.unref(a).style)},[e.createElementVNode("input",e.mergeProps({class:"KRadio-input",type:"radio"},d.value,{checked:s.value,disabled:t.disabled,name:t.name,onChange:r}),null,16,sa),c[0]||(c[0]=e.createElementVNode("span",{class:"KRadio-box"},null,-1)),l.default||t.label?(e.openBlock(),e.createElementBlock("span",ra,[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])])):e.createCommentVNode("",!0)],6))}}),da=["disabled"],ca={class:"KSelect-caret KIcon","aria-hidden":"true"},ia=["href"],ma=["data-kt-select-value"],Ee=e.defineComponent({__name:"KSelect",props:e.mergeModels({disabled:{type:Boolean,default:!1},icon:{default:"#caretDown"},inline:{type:Boolean,default:!1},menuClass:{type:[Boolean,null,String,Object,Array]},options:{default:()=>[]},placeholder:{default:"Select an option"},toggleClass:{type:[Boolean,null,String,Object,Array]}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:o}){const l=e.useModel(t,"modelValue"),a=o,s=e.useTemplateRef("root");let n,d;const r=e.computed(()=>t.options.map(i=>typeof i=="string"?{label:i,value:i}:i)),m=e.computed(()=>r.value.find(i=>i.value===l.value)?.label);function c(){return!n&&s.value&&(n=new w.modules.Select(s.value)),n}function h(i){const K=s.value;if(!K||i===void 0)return;const $=K.querySelector(`[data-kt-select-item][data-kt-select-value="${CSS.escape(i)}"]`);$&&(d=i,c()?.selectItem($))}function g(i){if(i.target!==s.value)return;const K=c()?.getValue()??void 0;K!==void 0&&(d=K,l.value=K,a("change",K))}e.watch(l,i=>{i!==d&&h(i)},{flush:"post"}),e.watch(s,(i,K,$)=>{n=void 0,i&&(i.addEventListener("kt.select.change",g),l.value!==void 0&&h(l.value),$(()=>i.removeEventListener("kt.select.change",g)))},{flush:"post",immediate:!0});const y=e.computed(()=>["KSelect",t.inline&&"KSelect--inline",t.disabled&&"KSelect--disabled",t.disabled&&"is-disabled"]);return(i,K)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:s,class:e.normalizeClass(y.value),"data-kt-select":""},[e.createElementVNode("button",{class:e.normalizeClass(["KSelect-toggle",t.toggleClass]),type:"button","data-kt-select-toggle":"",disabled:t.disabled},[e.createElementVNode("span",{class:e.normalizeClass(["KSelect-label",!m.value&&"is-placeholder"]),"data-kt-select-label":""},e.toDisplayString(m.value??t.placeholder),3),(e.openBlock(),e.createElementBlock("svg",ca,[e.createElementVNode("use",{href:t.icon},null,8,ia)]))],10,da),e.createElementVNode("div",{class:e.normalizeClass(["KSelect-menu",t.menuClass]),"data-kt-select-menu":""},[e.renderSlot(i.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,$=>(e.openBlock(),e.createElementBlock("div",{key:$.value,class:"KSelect-item","data-kt-select-item":"","data-kt-select-value":$.value},e.toDisplayString($.label),9,ma))),128))])],2)],2))}}),D=Symbol("KTabs"),fa=["data-ktab-name","data-kt-tabs-tab","data-kt-tabs-target","aria-controls","disabled"],Ne=e.defineComponent({__name:"KTab",props:{disabled:{type:Boolean,default:!1},name:{}},setup(t){const o=e.inject(D,void 0),l=e.computed(()=>o?.panelId(t.name));return(a,s)=>(e.openBlock(),e.createElementBlock("button",{class:"KTabs-tab",type:"button",role:"tab","data-ktab-name":t.name,"data-kt-tabs-tab":t.disabled?void 0:"","data-kt-tabs-target":l.value,"aria-controls":l.value,disabled:t.disabled},[e.renderSlot(a.$slots,"default")],8,fa))}}),Ve=e.defineComponent({__name:"KTable",props:{borderless:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},size:{},striped:{type:Boolean,default:!1}},setup(t){const o=e.computed(()=>["KTable",t.borderless&&"KTable--borderless",t.hoverable&&"KTable--hoverable",t.striped&&"KTable--striped",t.size&&t.size!=="md"&&`KTable--${t.size}`]);return(l,a)=>(e.openBlock(),e.createElementBlock("table",{class:e.normalizeClass(o.value)},[e.renderSlot(l.$slots,"default")],2))}}),ua=["id"],Te=e.defineComponent({__name:"KTabPanel",props:{name:{}},setup(t){const o=e.inject(D,void 0),l=e.computed(()=>o?.panelId(t.name));return(a,s)=>(e.openBlock(),e.createElementBlock("div",{id:l.value,class:"KTabs-panel",role:"tabpanel","data-kt-tabs-panel":""},[e.renderSlot(a.$slots,"default")],8,ua))}}),ha=["aria-label"],ba={class:"KTabs-content"},M="data-ktab-name",ze=e.defineComponent({__name:"KTabs",props:e.mergeModels({ariaLabel:{default:"Tabs"},variant:{}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["shown"],["update:modelValue"]),setup(t,{expose:o,emit:l}){const a=e.useModel(t,"modelValue"),s=l,n=e.useId(),d=e.useTemplateRef("root");let r;const m=i=>`${n}-${i.replace(/[^A-Za-z0-9_]/g,K=>`-${K.charCodeAt(0).toString(16)}-`)}`;e.provide(D,{active:e.computed(()=>a.value),panelId:m});const c=`[${M}][data-kt-tabs-tab]`;function h(i){return d.value?.querySelector(`[${M}="${CSS.escape(i)}"][data-kt-tabs-tab]`)??null}function g(i){const K=h(i);K&&(r=i,new w.modules.Tabs(K).show(K))}function y(i){if(i.target!==d.value)return;const $=d.value?.querySelector(`[${M}].is-active`)?.getAttribute(M)??void 0;$&&(r=$,a.value=$,s("shown",$))}return e.watch(a,i=>{!i||i===r||g(i)},{flush:"post"}),e.watch(d,(i,K,$)=>{if(!i)return;i.addEventListener("kt.tabs.shown",y);const C=a.value??i.querySelector(c)?.getAttribute(M)??void 0;C&&(a.value=C,g(C)),$(()=>i.removeEventListener("kt.tabs.shown",y))},{flush:"post",immediate:!0}),o({show:i=>a.value=i}),(i,K)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:d,"data-kt-tabs":""},[e.createElementVNode("div",{class:e.normalizeClass(["KTabs",t.variant&&`KTabs--${t.variant}`]),role:"tablist","aria-label":t.ariaLabel},[e.renderSlot(i.$slots,"tabs")],10,ha),e.createElementVNode("div",ba,[e.renderSlot(i.$slots,"default")])],512))}}),ka=["disabled"],ya={key:0,class:"KToggle-label"},Me=e.defineComponent({inheritAttrs:!1,__name:"KToggle",props:e.mergeModels({disabled:{type:Boolean,default:!1},label:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),l=e.useSlots(),a=e.useAttrs(),s=e.computed(()=>["KToggle",t.disabled&&"KToggle--disabled"]),n=e.computed(()=>{const{class:d,style:r,...m}=a;return m});return(d,r)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([s.value,e.unref(a).class]),style:e.normalizeStyle(e.unref(a).style)},[e.withDirectives(e.createElementVNode("input",e.mergeProps({"onUpdate:modelValue":r[0]||(r[0]=m=>o.value=m),class:"KToggle-input",type:"checkbox"},n.value,{disabled:t.disabled}),null,16,ka),[[e.vModelCheckbox,o.value]]),r[1]||(r[1]=e.createElementVNode("span",{class:"KToggle-track"},[e.createElementVNode("span",{class:"KToggle-thumb"})],-1)),l.default||t.label?(e.openBlock(),e.createElementBlock("span",ya,[e.renderSlot(d.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])])):e.createCommentVNode("",!0)],6))}}),Ae=e.defineComponent({name:"KTooltip",props:{delay:{type:Number,required:!1},label:{type:String,required:!0},placement:{type:String,required:!1}},setup(t,{slots:o}){return()=>{const l=o.default?.()??[],a={"data-kt-tooltip":t.label};t.placement&&(a["data-kt-tooltip-placement"]=t.placement),t.delay!==void 0&&(a["data-kt-tooltip-delay"]=String(t.delay));const s=l.filter(n=>typeof n=="object"&&n!==null&&"type"in n);return s.length===1?e.cloneVNode(s[0],a):e.h("span",{...a,style:{display:"contents"}},l)}}}),ga=["data-kt-collapse-horizontal"],Ba=["data-kt-collapse-content"],Le=e.defineComponent({__name:"KWorkspace",props:e.mergeModels({bodyClass:{type:[Boolean,null,String,Object,Array]},bodyContentClass:{type:[Boolean,null,String,Object,Array]},bodySidebarClass:{type:[Boolean,null,String,Object,Array]},bodySidebarSide:{default:"left"},collapsible:{type:Boolean,default:!1},footerClass:{type:[Boolean,null,String,Object,Array]},height:{},mainClass:{type:[Boolean,null,String,Object,Array]},side:{default:"left"},sidebarBodyClass:{type:[Boolean,null,String,Object,Array]},sidebarClass:{type:[Boolean,null,String,Object,Array]},sidebarInnerClass:{type:[Boolean,null,String,Object,Array]},topbarClass:{type:[Boolean,null,String,Object,Array]}},{expanded:{type:Boolean,default:!0},expandedModifiers:{}}),emits:e.mergeModels(["toggle"],["update:expanded"]),setup(t,{expose:o,emit:l}){const a=e.useModel(t,"expanded"),s=l,n=e.useSlots(),d=e.useTemplateRef("sidebar");let r;const m=["is-active","is-collapsed","is-collapsing","is-expanded","is-expanding"],c=e.computed(()=>!!(n.sidebar||n.sidebarHeader||n.sidebarFooter)),h=e.computed(()=>t.height?{"--kt-workspace-height":t.height}:void 0);function g(){return!r&&d.value&&(r=new w.modules.Collapse(d.value,{horizontal:!0,direction:t.side==="right"?"left":"right"})),r}function y(){const C=d.value;C&&(C.classList.remove(...m),a.value?C.classList.add("is-active","is-expanded"):C.classList.add("is-collapsed"))}e.watch(d,()=>{r=void 0,t.collapsible&&y()},{flush:"post",immediate:!0}),e.watch(()=>t.collapsible,C=>{r=void 0,C?y():d.value?.classList.remove(...m)},{flush:"post"}),e.watch(()=>a.value,C=>{if(!t.collapsible)return;const S=g();S&&(C?S.expand():S.collapse())});function i(){a.value=!a.value,s("toggle",a.value)}function K(){a.value||i()}function $(){a.value&&i()}return o({toggle:i,expand:K,collapse:$}),(C,S)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["KWorkspace",t.side==="right"&&"is-side-right"]),style:e.normalizeStyle(h.value)},[c.value?(e.openBlock(),e.createElementBlock("aside",{key:0,ref_key:"sidebar",ref:d,class:e.normalizeClass(["KWorkspace-sidebar",t.collapsible&&"KCollapse",t.sidebarClass]),"data-kt-collapse-horizontal":t.collapsible?t.side==="right"?"left":"true":void 0},[e.createElementVNode("div",{class:e.normalizeClass(["KWorkspace-sidebarInner",t.collapsible&&"KCollapse-content",t.sidebarInnerClass]),"data-kt-collapse-content":t.collapsible?"":void 0},[e.renderSlot(C.$slots,"sidebarHeader"),n.sidebar?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["KWorkspace-sidebarBody",t.sidebarBodyClass])},[e.renderSlot(C.$slots,"sidebar")],2)):e.createCommentVNode("",!0),e.renderSlot(C.$slots,"sidebarFooter")],10,Ba)],10,ga)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["KWorkspace-main",t.mainClass])},[n.topbar?(e.openBlock(),e.createElementBlock("header",{key:0,class:e.normalizeClass(["KWorkspace-topbar",t.topbarClass])},[e.renderSlot(C.$slots,"topbar")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["KWorkspace-body",t.bodySidebarSide==="right"&&"is-side-right",t.bodyClass])},[n.bodySidebar?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(["KWorkspace-bodySidebar",t.bodySidebarClass])},[e.renderSlot(C.$slots,"bodySidebar")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["KWorkspace-bodyContent",t.bodyContentClass])},[e.renderSlot(C.$slots,"default")],2)],2),n.footer?(e.openBlock(),e.createElementBlock("footer",{key:1,class:e.normalizeClass(["KWorkspace-footer",t.footerClass])},[e.renderSlot(C.$slots,"footer")],2)):e.createCommentVNode("",!0)],2)],6))}});function xe(t={}){return{closeAll(o){w.modules.Toast.prototype.closeAll.call(w.modules.Toast.prototype,o)},show(o){const l=new w.modules.Toast({...t,...o});return{close:()=>l.close(),pause:()=>l.pauseTimer(),resume:()=>l.resumeTimer()}}}}const De=Object.freeze(Object.defineProperty({__proto__:null,KAccordion:G,KAccordionItem:U,KAlert:H,KAvatar:W,KAvatarGroup:q,KBadge:I,KBreadcrumb:Y,KBreadcrumbItem:J,KButton:j,KCalendar:Z,KCard:Q,KChat:v,KChatMessage:_,KChatMessages:ee,KChatPrompt:te,KChatShimmer:ae,KCheckbox:le,KCollapse:oe,KContainer:ne,KDrawer:se,KDropdown:de,KDropdownItem:ce,KDropdownMenu:ie,KFileTree:me,KGrid:he,KGridColumn:be,KGridRow:ke,KIcon:z,KInput:O,KMenuList:ye,KMenuListItem:ge,KModal:Be,KNavbar:Ce,KNavbarMenu:R,KNotificationList:Ke,KNotificationListItem:pe,KPopover:$e,KProgress:Se,KRadio:we,KSelect:Ee,KTab:Ne,KTabPanel:Te,KTable:Ve,KTabs:ze,KToggle:Me,KTooltip:Ae,KWorkspace:Le,accordionGroupKey:L,chatBusyKey:x,useToast:xe},Symbol.toStringTag,{value:"Module"})),Ca={install(t){for(const o in De)t.component(o,De[o])}};u.KAccordion=G,u.KAccordionItem=U,u.KAlert=H,u.KAvatar=W,u.KAvatarGroup=q,u.KBadge=I,u.KBreadcrumb=Y,u.KBreadcrumbItem=J,u.KButton=j,u.KCalendar=Z,u.KCard=Q,u.KChat=v,u.KChatMessage=_,u.KChatMessages=ee,u.KChatPrompt=te,u.KChatShimmer=ae,u.KCheckbox=le,u.KCollapse=oe,u.KContainer=ne,u.KDrawer=se,u.KDropdown=de,u.KDropdownItem=ce,u.KDropdownMenu=ie,u.KFileTree=me,u.KGrid=he,u.KGridColumn=be,u.KGridRow=ke,u.KIcon=z,u.KInput=O,u.KMenuList=ye,u.KMenuListItem=ge,u.KModal=Be,u.KNavbar=Ce,u.KNavbarMenu=R,u.KNotificationList=Ke,u.KNotificationListItem=pe,u.KPopover=$e,u.KProgress=Se,u.KRadio=we,u.KSelect=Ee,u.KTab=Ne,u.KTabPanel=Te,u.KTable=Ve,u.KTabs=ze,u.KToggle=Me,u.KTooltip=Ae,u.KWorkspace=Le,u.accordionGroupKey=L,u.chatBusyKey=x,u.default=Ca,u.tabsKey=D,u.useToast=xe,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
@@ -0,0 +1,11 @@
1
+ import type { KAccordionProps, KAccordionSlots } from './types';
2
+ type __VLS_Slots = KAccordionSlots;
3
+ declare const __VLS_base: import("vue").DefineComponent<KAccordionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KAccordionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ type __VLS_WithSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };
@@ -0,0 +1,22 @@
1
+ import type { KAccordionItemProps, KAccordionItemSlots } from './types';
2
+ type __VLS_Props = KAccordionItemProps;
3
+ type __VLS_Slots = KAccordionItemSlots;
4
+ type __VLS_ModelProps = {
5
+ 'expanded'?: boolean;
6
+ };
7
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
9
+ toggle: () => void;
10
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ "update:expanded": (value: boolean) => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
+ "onUpdate:expanded"?: ((value: boolean) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,2 @@
1
+ import type { ComputedRef, InjectionKey } from 'vue';
2
+ export declare const accordionGroupKey: InjectionKey<ComputedRef<string | undefined>>;
@@ -0,0 +1,37 @@
1
+ export type KAccordionProps = {
2
+ /**
3
+ * One pane open at a time. The group name is generated, so two accordions
4
+ * both marked exclusive never interfere with each other.
5
+ *
6
+ * Prefer this to `group` unless panes in *different* accordions need to close
7
+ * one another.
8
+ */
9
+ exclusive?: boolean;
10
+ /**
11
+ * Explicit shared name, for making panes across separate accordions mutually
12
+ * exclusive. Core resolves it with a document-wide query, so the name is
13
+ * page-global — anything else carrying it will be collapsed too. `exclusive`
14
+ * avoids that; reach for this only when the cross-instance behaviour is what
15
+ * you want.
16
+ *
17
+ * Takes precedence over `exclusive`. With neither, every pane is independent.
18
+ */
19
+ group?: string;
20
+ /** Drops the item dividers. */
21
+ ghost?: boolean;
22
+ };
23
+ export type KAccordionItemProps = {
24
+ /** Open on first render. */
25
+ expanded?: boolean;
26
+ /** Sprite href for the chevron. */
27
+ icon?: string;
28
+ /** Heading text. The `title` slot overrides it. */
29
+ title?: string;
30
+ };
31
+ export type KAccordionSlots = {
32
+ default?(): any;
33
+ };
34
+ export type KAccordionItemSlots = {
35
+ default?(): any;
36
+ title?(): any;
37
+ };
@@ -0,0 +1,11 @@
1
+ import type { KAlertProps, KAlertSlots } from './types';
2
+ type __VLS_Slots = KAlertSlots;
3
+ declare const __VLS_base: import("vue").DefineComponent<KAlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KAlertProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ type __VLS_WithSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };
@@ -0,0 +1,18 @@
1
+ import { Intent } from '../../types';
2
+ /**
3
+ * Core ships no `--edged` modifier — the one in its docs helper does not exist
4
+ * in the stylesheet — so there is deliberately no `edged` prop here.
5
+ *
6
+ * Anchors inside the message need `class="KAlert-link"` to pick up the alert's
7
+ * text colour. That stays the consumer's job: the slot content is arbitrary,
8
+ * so the wrapper has nothing to attach it to.
9
+ */
10
+ export type KAlertProps = {
11
+ /** Bold label above the message. The `title` slot overrides it. */
12
+ title?: string;
13
+ variant?: Intent;
14
+ };
15
+ export type KAlertSlots = {
16
+ default?(): any;
17
+ title?(): any;
18
+ };
@@ -0,0 +1,11 @@
1
+ import type { KAvatarProps, KAvatarSlots } from './types';
2
+ type __VLS_Slots = KAvatarSlots;
3
+ declare const __VLS_base: import("vue").DefineComponent<KAvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KAvatarProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ type __VLS_WithSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };
@@ -0,0 +1,11 @@
1
+ import type { KAvatarGroupProps, KAvatarGroupSlots } from './types';
2
+ type __VLS_Slots = KAvatarGroupSlots;
3
+ declare const __VLS_base: import("vue").DefineComponent<KAvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KAvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ type __VLS_WithSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };
@@ -0,0 +1,42 @@
1
+ import { Intent } from '../../types';
2
+ export type KAvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
+ export type KAvatarProps = {
4
+ /** Alt text for `src`. Empty by default, which hides a decorative photo. */
5
+ alt?: string;
6
+ /**
7
+ * Placeholder glyph, used when there is no `src`. `true` is core's `#user`;
8
+ * a string is any other sprite href.
9
+ */
10
+ icon?: boolean | string;
11
+ /** The muted "+3" tile that closes a truncated group. */
12
+ overflow?: boolean;
13
+ size?: KAvatarSize;
14
+ src?: string;
15
+ /**
16
+ * Presence dot. Absent or `false` renders none, `true` the grey offline dot,
17
+ * and an intent colours it.
18
+ */
19
+ status?: boolean | Intent;
20
+ /**
21
+ * Accessible name for the status dot. Colour is the only channel the dot
22
+ * uses, so give it one wherever the state carries meaning.
23
+ */
24
+ statusLabel?: string;
25
+ variant?: Intent;
26
+ };
27
+ export type KAvatarSlots = {
28
+ default?(): any;
29
+ };
30
+ export type KAvatarGroupProps = {
31
+ /**
32
+ * Two avatars on a diagonal inside one avatar's footprint. Only the first
33
+ * two children are positioned — a third is not supported, so use an
34
+ * overflow tile instead.
35
+ */
36
+ diagonal?: boolean;
37
+ /** On a diagonal group the size belongs here, not on the children. */
38
+ size?: KAvatarSize;
39
+ };
40
+ export type KAvatarGroupSlots = {
41
+ default?(): any;
42
+ };
@@ -0,0 +1,11 @@
1
+ import type { KBreadcrumbProps, KBreadcrumbSlots } from './types';
2
+ type __VLS_Slots = KBreadcrumbSlots;
3
+ declare const __VLS_base: import("vue").DefineComponent<KBreadcrumbProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KBreadcrumbProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ type __VLS_WithSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };
@@ -0,0 +1,11 @@
1
+ import type { KBreadcrumbItemProps, KBreadcrumbSlots } from './types';
2
+ type __VLS_Slots = KBreadcrumbSlots;
3
+ declare const __VLS_base: import("vue").DefineComponent<KBreadcrumbItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KBreadcrumbItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ type __VLS_WithSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };
@@ -0,0 +1,23 @@
1
+ import type { RouteLocationRaw } from 'vue-router';
2
+ export type KBreadcrumbProps = {
3
+ /** Names the navigation landmark. */
4
+ ariaLabel?: string;
5
+ /** Separator between crumbs. Core's default is a double angle quote. */
6
+ divider?: string;
7
+ };
8
+ export type KBreadcrumbItemProps = {
9
+ /**
10
+ * The current page. Renders as plain text rather than a link, and carries
11
+ * `aria-current="page"`.
12
+ *
13
+ * Note this maps to core's `KBreadcrumb-is-active`, not the `is-active`
14
+ * state class every other module uses.
15
+ */
16
+ active?: boolean;
17
+ href?: string;
18
+ /** Router destination. Takes precedence over `href`. */
19
+ to?: RouteLocationRaw;
20
+ };
21
+ export type KBreadcrumbSlots = {
22
+ default?(): any;
23
+ };
@@ -1,16 +1,27 @@
1
1
  import type { RouteLocationRaw } from 'vue-router';
2
- import type { Variant } from '../../types';
2
+ import type { Intent } from '../../types';
3
3
  export type KButtonType = 'button' | 'submit' | 'reset';
4
+ export type KButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
5
  export type KButtonProps = {
5
6
  disabled?: boolean;
6
7
  expanded?: boolean;
7
- ghost?: boolean;
8
8
  href?: string;
9
- outline?: boolean;
9
+ icon?: boolean;
10
+ iconCircular?: boolean;
11
+ minimal?: boolean;
10
12
  rounded?: boolean;
13
+ secondary?: boolean;
14
+ selected?: boolean;
15
+ size?: KButtonSize;
11
16
  to?: RouteLocationRaw;
12
17
  type?: KButtonType;
13
- variant?: Variant;
18
+ utility?: boolean;
19
+ /**
20
+ * Semantic color. Core ships no `utilityWarning`, `minimalWarning` or
21
+ * `minimalAffirm` modifier, so those combinations render as the solid
22
+ * fill for that intent.
23
+ */
24
+ variant?: Intent;
14
25
  };
15
26
  export type KButtonSlots = {
16
27
  default?(): any;
@@ -0,0 +1,34 @@
1
+ import type { KCalendarProps, KCalendarRange, KCalendarSlots } from './types';
2
+ type __VLS_Props = KCalendarProps;
3
+ type __VLS_Slots = KCalendarSlots;
4
+ type __VLS_ModelProps = {
5
+ modelValue?: Date | null;
6
+ 'range'?: KCalendarRange | null;
7
+ };
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
10
+ clear: () => void | undefined;
11
+ navigateTo: (year: number, month: number) => void | undefined;
12
+ next: () => void | undefined;
13
+ prev: () => void | undefined;
14
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ navigate: (year: number, month: number) => any;
16
+ clear: () => any;
17
+ rangestart: (date: Date) => any;
18
+ "update:modelValue": (value: Date | null) => any;
19
+ "update:range": (value: KCalendarRange | null) => any;
20
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
+ onNavigate?: ((year: number, month: number) => any) | undefined;
22
+ onClear?: (() => any) | undefined;
23
+ onRangestart?: ((date: Date) => any) | undefined;
24
+ "onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
25
+ "onUpdate:range"?: ((value: KCalendarRange | null) => any) | undefined;
26
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,26 @@
1
+ export type KCalendarMode = 'single' | 'range';
2
+ export type KCalendarRange = {
3
+ end: Date;
4
+ start: Date;
5
+ };
6
+ export type KCalendarProps = {
7
+ /** Dates that cannot be picked. */
8
+ disabledDates?: Date[];
9
+ /** `0` is Sunday, `1` is Monday. */
10
+ firstDay?: 0 | 1;
11
+ /** BCP 47 tag driving the month and weekday names. */
12
+ locale?: string;
13
+ maxDate?: Date;
14
+ minDate?: Date;
15
+ mode?: KCalendarMode;
16
+ };
17
+ export type KCalendarEmits = {
18
+ clear: [];
19
+ navigate: [year: number, month: number];
20
+ rangestart: [date: Date];
21
+ };
22
+ /**
23
+ * No slots: core renders the whole calendar into its container with
24
+ * `innerHTML`, so anything Vue put inside would be wiped on the first paint.
25
+ */
26
+ export type KCalendarSlots = Record<string, never>;
@@ -0,0 +1,11 @@
1
+ import type { KCardProps, KCardSlots } from './types';
2
+ type __VLS_Slots = KCardSlots;
3
+ declare const __VLS_base: import("vue").DefineComponent<KCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KCardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ type __VLS_WithSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };
@@ -0,0 +1,26 @@
1
+ import { ClassValue } from 'vue';
2
+ export type KCardProps = {
3
+ /** Adds the accent bar. */
4
+ accented?: boolean;
5
+ bodyClass?: ClassValue;
6
+ /** Drops the border and the header and footer rules. */
7
+ borderless?: boolean;
8
+ footerClass?: ClassValue;
9
+ /** Removes the header and footer padding, so their content sits flush. */
10
+ flush?: boolean;
11
+ headerClass?: ClassValue;
12
+ /** Raises the card on hover. */
13
+ hoverable?: boolean;
14
+ /** Sits the card on a shadow rather than a border. */
15
+ lifted?: boolean;
16
+ /** Recesses the card into the surface behind it. */
17
+ sunken?: boolean;
18
+ /** Heading inside the header. The `title` slot overrides it. */
19
+ title?: string;
20
+ };
21
+ export type KCardSlots = {
22
+ default?(): any;
23
+ footer?(): any;
24
+ header?(): any;
25
+ title?(): any;
26
+ };
@@ -0,0 +1,14 @@
1
+ import type { KChatProps, KChatSlots } from './types';
2
+ type __VLS_Slots = KChatSlots;
3
+ declare function scrollToBottom(): void;
4
+ declare const __VLS_base: import("vue").DefineComponent<KChatProps, {
5
+ scrollToBottom: typeof scrollToBottom;
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KChatProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
10
+ type __VLS_WithSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };
@@ -0,0 +1,11 @@
1
+ import type { KChatMessageProps, KChatMessageSlots } from './types';
2
+ type __VLS_Slots = KChatMessageSlots;
3
+ declare const __VLS_base: import("vue").DefineComponent<KChatMessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KChatMessageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ type __VLS_WithSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };
@@ -0,0 +1,11 @@
1
+ import type { KChatMessagesSlots } from './types';
2
+ type __VLS_Slots = KChatMessagesSlots;
3
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ type __VLS_WithSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };