@wisemen/vue-core-design-system 1.18.0 → 1.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.js +56 -48
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -858,7 +858,7 @@ Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoo
|
|
|
858
858
|
dark:text-warning-200
|
|
859
859
|
`},color:`warning`,variant:`translucent`}],slots:{base:`
|
|
860
860
|
inline-flex min-w-fit items-center justify-center rounded-full border
|
|
861
|
-
`,label:`font-medium`},variants:{size:{lg:{base:`h-5 min-w-5 px-xxs`,label:`text-xs`},md:{base:`h-4 min-w-4 px-xxs`,label:`text-[0.625rem]`}},color:{blue:{},brand:{},error:{},gray:{},pink:{},purple:{},success:{},warning:{}},variant:{outline:{base:`bg-transparent`},solid:{},translucent:{}}}}),RE=[`aria-label`],zE=(0,f.defineComponent)({__name:`NumberBadge`,props:{ariaLabel:{default:null},color:{default:`gray`},size:{default:`md`},value:{},variant:{default:`translucent`}},setup(e){let t=e,n=(0,f.computed)(()=>LE({color:t.color,size:t.size,variant:t.variant}));return(e,r)=>((0,f.openBlock)(),(0,f.createElementBlock)(`span`,{class:(0,f.normalizeClass)(n.value.base()),"aria-label":t.ariaLabel??void 0,role:`status`},[(0,f.createVNode)((0,f.unref)(U),{text:t.value,class:(0,f.normalizeClass)(n.value.label())},null,8,[`text`,`class`])],10,RE))}}),BE=(0,f.defineComponent)({__name:`TabsItemContent`,props:{isLabelHidden:{type:Boolean,default:!1},config:{default:null},count:{default:null},icon:{default:void 0},label:{}},setup(e){let t=e,n=(0,f.computed)(()=>t.config?.left==null?t.icon==null?{type:`none`}:{icon:t.icon,type:`icon`}:t.config.left),r=(0,f.computed)(()=>t.config?.indicator==null?t.count==null?{type:`none`}:{type:`count`,value:t.count}:t.config.indicator);return(e,i)=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,null,[n.value.type===`icon`?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(n.value.icon),{key:0,class:`size-4 shrink-0`})):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)((0,f.unref)(U),{text:t.label,class:(0,f.normalizeClass)([{"sr-only":t.isLabelHidden},`text-xs`])},null,8,[`text`,`class`]),r.value.type===`count`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(zE),{key:1,value:r.value.value.toString(),size:`md`},null,8,[`value`])):r.value.type===`dot`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Po),{key:2,color:r.value.color??`error`,size:`sm`},null,8,[`color`])):(0,f.createCommentVNode)(``,!0)],64))}}),VE=(0,f.defineComponent)({__name:`TabsItem`,props:{isLabelHidden:{type:Boolean},config:{default:null},count:{default:null},disabledReason:{default:null},icon:{default:void 0},label:{},value:{},isDisabled:{type:Boolean,default:!1}},setup(e){let t=e,n=NE();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(W),{"is-disabled":t.disabledReason==null,label:t.disabledReason},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.TabsTrigger),{value:t.value,disabled:t.isDisabled,class:(0,f.normalizeClass)((0,f.unref)(n).variants.value.item())},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(BE,{config:t.config,count:t.count,icon:t.icon,"is-label-hidden":t.isLabelHidden,label:t.label},null,8,[`config`,`count`,`icon`,`is-label-hidden`,`label`])]),_:1},8,[`value`,`disabled`,`class`])]),_:1})]),_:1},8,[`is-disabled`,`label`]))}}),HE=(0,f.defineComponent)({__name:`TabsIndicator`,setup(e){let{variants:t}=NE();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.TabsIndicator),{class:(0,f.normalizeClass)((0,f.unref)(t).indicator())},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)((0,f.unref)(t).indicatorInner())},null,2)]),_:1},8,[`class`]))}}),UE=[`aria-label`],WE=[`data-orientation`],GE=[`aria-label`],KE=(0,f.defineComponent)({__name:`TabsList`,setup(e){let t=(0,g.useI18n)(),n=(0,f.ref)(null),{hasHorizontalOverflow:r,hasReachedHorizontalEnd:i,isScrolledHorizontally:a,orientation:o,scrollToLeft:s,scrollToRight:c,setScrollContainerRef:l,variants:u}=NE();return(0,f.onMounted)(()=>{if(n.value===null)throw Error(`scrollContainerRef is null`);l(n.value)}),(e,l)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)((0,f.unref)(u).base())},[(0,f.unref)(a)&&(0,f.unref)(r)&&(0,f.unref)(o)===`horizontal`?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:0,class:(0,f.normalizeClass)([(0,f.unref)(u).scrollEdge(),`left-0 justify-start bg-linear-to-r from-50%`])},[(0,f.createElementVNode)(`button`,{"aria-label":(0,f.unref)(t).t(`component.tabs.scroll_left`),class:(0,f.normalizeClass)((0,f.unref)(u).scrollButton()),tabindex:`-1`,type:`button`,onClick:l[0]||=(...e)=>(0,f.unref)(s)&&(0,f.unref)(s)(...e)},[(0,f.createVNode)((0,f.unref)(ln),{class:`size-3`})],10,UE)],2)):(0,f.createCommentVNode)(``,!0),(0,f.createElementVNode)(`div`,{ref_key:`scrollContainerRef`,ref:n,class:(0,f.normalizeClass)((0,f.unref)(u).scrollContainer()),"data-orientation":(0,f.unref)(o)},[(0,f.createVNode)((0,f.unref)(h.TabsList),{class:(0,f.normalizeClass)((0,f.unref)(u).list())},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`),(0,f.createVNode)(HE)]),_:3},8,[`class`])],10,WE),!(0,f.unref)(i)&&(0,f.unref)(r)&&(0,f.unref)(o)===`horizontal`?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:1,class:(0,f.normalizeClass)([(0,f.unref)(u).scrollEdge(),`right-0 justify-end bg-linear-to-l from-50%`])},[(0,f.createElementVNode)(`button`,{"aria-label":(0,f.unref)(t).t(`component.tabs.scroll_right`),class:(0,f.normalizeClass)((0,f.unref)(u).scrollButton()),tabindex:`-1`,type:`button`,onClick:l[1]||=(...e)=>(0,f.unref)(c)&&(0,f.unref)(c)(...e)},[(0,f.createVNode)((0,f.unref)(pn),{class:`size-3`})],10,GE)],2)):(0,f.createCommentVNode)(``,!0)],2))}}),qE=(0,f.defineComponent)({__name:`TabsRouterLink`,props:{isFullWidth:{type:Boolean,default:!1},orientation:{default:`horizontal`},underlineTabsHorizontalListPadding:{default:`none`},variant:{default:`underline`}},setup(e){let t=e;t.underlineTabsHorizontalListPadding!==`none`&&t.variant!==`underline`&&console.warn("[TabsRouterLink] `underlineTabsHorizontalListPadding` only applies to the `underline` variant.");let n=(0,y.useRoute)(),r=(0,y.useRouter)(),i=(0,f.computed)(()=>n.name);function a(e){e!==i.value&&r.replace({name:e})}let{hasHorizontalOverflow:o,hasReachedHorizontalEnd:s,isScrolledHorizontally:c,scrollToActiveTab:l,scrollToLeft:u,scrollToRight:d,setScrollContainerRef:p}=jE({activeValue:i}),m=(0,f.computed)(()=>PE({isFullWidth:t.isFullWidth,underlineTabsHorizontalListPadding:t.underlineTabsHorizontalListPadding,variant:t.variant}));return(0,f.onMounted)(()=>{l()}),ME({activeValue:i,...Xr(t),hasHorizontalOverflow:o,hasReachedHorizontalEnd:s,isScrolledHorizontally:c,scrollToLeft:u,scrollToRight:d,setScrollContainerRef:p,variants:m}),(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.TabsRoot),{"model-value":i.value,orientation:t.orientation,"onUpdate:modelValue":a},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(KE,null,{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`model-value`,`orientation`]))}}),JE=(0,f.defineComponent)({__name:`TabsRouterLinkContent`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,role:`tabpanel`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(y.RouterView))]),_:1}))}}),YE=(0,f.defineComponent)({__name:`TabsRouterLinkItem`,props:{isLabelHidden:{type:Boolean},config:{default:null},count:{default:null},disabledReason:{default:null},icon:{default:void 0},label:{},to:{},isDisabled:{type:Boolean,default:!1}},setup(e){let t=e,n=NE().variants,r=(0,y.useRouter)(),i=(0,f.computed)(()=>r.resolve(t.to).name);return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(W),{"is-disabled":t.disabledReason==null,label:t.disabledReason},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,null,[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.TabsTrigger),{value:i.value,disabled:t.isDisabled,"as-child":!0,class:(0,f.normalizeClass)((0,f.unref)(n).item())},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(y.RouterLink),{to:t.to,replace:!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(BE,{config:t.config,count:t.count,icon:t.icon,"is-label-hidden":t.isLabelHidden,label:t.label},null,8,[`config`,`count`,`icon`,`is-label-hidden`,`label`])]),_:1},8,[`to`])]),_:1},8,[`value`,`disabled`,`class`])]),_:1})])]),_:1},8,[`is-disabled`,`label`]))}}),XE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneTabs`,props:{modelValue:{required:!0},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let t=(0,f.useModel)(e,`modelValue`);return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(FE),{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,"is-full-width":!0,variant:`underline`,"underline-tabs-horizontal-list-padding":`lg`,class:`flex flex-1 flex-col overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`]))}}),ZE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneTabsContent`,props:{asChild:{type:Boolean,default:!0},value:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(IE),{"as-child":t.asChild,value:t.value,tabindex:t.asChild?void 0:-1},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Iy),{tabindex:`0`,class:`flex flex-1 flex-col`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`as-child`,`value`,`tabindex`]))}}),QE={class:`sticky top-0 z-10 bg-primary`},$E=(0,f.defineComponent)({__name:`DashboardPageDetailPaneTabsList`,setup(e){let{hasTabs:t}=rE();return(0,f.onMounted)(()=>{t.value=!0}),(0,f.onBeforeUnmount)(()=>{t.value=!1}),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,QE,[(0,f.createVNode)((0,f.unref)(KE),null,{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]))}}),eD=(0,f.defineComponent)({__name:`DashboardPageDetailPaneToggle`,setup(e){let{isOpen:t,toggle:n}=hE(),r=(0,g.useI18n)(),i=(0,p.createAction)({id:`toggle-detail-pane`,name:()=>r.t(`action.global.toggle_detail_pane.name`),execute:()=>{n()},group:(0,p.useActionGroup)().navigation,icon:()=>t.value?$n:Vn,keyboardShortcut:{key:`I`,mod:!0},keywords:r.t(`action.global.toggle_detail_pane.keywords`).split(` `)}),a=(0,f.computed)(()=>t.value?r.t(`component.dashboard_page_detail_pane_toggle.collapse`):r.t(`component.dashboard_page_detail_pane_toggle.expand`));return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(W,{label:a.value,"keyboard-shortcut":(0,f.unref)(i).keyboardShortcut},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Cs,{"is-current-context-only":!1,action:(0,f.unref)(i),"group-priority":(0,f.unref)(p.GroupPriority).NAVIGATION},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Z),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.Toggle),{"model-value":(0,f.unref)(t),"data-state":(0,f.unref)(t)?`open`:`closed`,"aria-label":a.value,class:`group/toggle -mr-xxs flex size-6 items-center justify-center rounded-sm duration-150 hover:bg-secondary-hover`},{default:(0,f.withCtx)(()=>[...n[0]||=[(0,f.createElementVNode)(`div`,{class:`flex h-3 w-3.5 justify-end rounded-[0.1875rem] border border-fg-tertiary p-[0.09375rem] duration-150 group-data-[state=open]/toggle:border-fg-tertiary dark:group-data-[state=open]/toggle:border-fg-secondary`},[(0,f.createElementVNode)(`div`,{class:`h-full w-0.5 rounded-[1px] bg-fg-tertiary duration-150 group-data-[state=open]/toggle:w-1 group-data-[state=open]/toggle:bg-fg-tertiary dark:group-data-[state=open]/toggle:bg-fg-secondary`})],-1)]]),_:1},8,[`model-value`,`data-state`,`aria-label`])]),_:1})]),_:1},8,[`action`,`group-priority`])]),_:1},8,[`label`,`keyboard-shortcut`]))}}),tD=(0,f.defineComponent)({__name:`DashboardPageHeaderActions`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(I,{gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),nD={class:`border-b border-secondary`},rD={class:`flex h-11 items-center`},iD={key:0,class:`flex h-11 items-center border-t border-secondary`},aD=(0,f.defineComponent)({__name:`DashboardPageHeader`,setup(e){let t=(0,f.useSlots)(),n=(0,m.useBreakpoints)({lg:1024}).smaller(`lg`),r=(0,f.computed)(()=>!!t[`action-right`]);return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`header`,nD,[(0,f.createElementVNode)(`div`,rD,[(0,f.createVNode)(qT,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{justify:`between`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{gap:`none`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`action-left`)]),_:3}),(0,f.renderSlot)(e.$slots,`action-center`),(0,f.createVNode)(I,{gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.unref)(n)?(0,f.createCommentVNode)(``,!0):(0,f.renderSlot)(e.$slots,`action-right`,{key:0}),(0,f.createVNode)(tD,null,{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`master-actions`)]),_:3})]),_:3})]),_:3})]),_:3})]),(0,f.unref)(n)&&r.value?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,iD,[(0,f.createVNode)(qT,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{justify:`end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`action-right`)]),_:3})]),_:3})]),_:3})])):(0,f.createCommentVNode)(``,!0)]))}}),oD=(0,f.defineComponent)({__name:`DashboardPageHeaderMasterActionButton`,props:{icon:{},label:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(X,{icon:t.icon,label:t.label,variant:`tertiary`},null,8,[`icon`,`label`]))}});function sD({maxDate:e,minDate:t,modelValue:n}){let r=J(),i=(0,f.computed)(()=>r.dateLocale.value??navigator.language),a=n.value??S.Temporal.Now.plainDateISO(),o=(0,f.shallowRef)(new x.CalendarDate(a.year,a.month,a.day));function s(e){o.value=e}(0,f.watch)(n,e=>{e!==null&&(o.value=new x.CalendarDate(e.year,e.month,e.day))});function c(e){return new x.CalendarDate(e.year,e.month,e.day)}function l(e){return S.Temporal.PlainDate.from({day:e.day,month:e.month,year:e.year})}let u=(0,f.computed)({get:()=>{if(n.value!==null)return c(n.value)},set:e=>{e==null?n.value=null:n.value=l(e)}}),d=(0,f.computed)(()=>{if(t.value!=null)return c(t.value)});return{plainDateToCalendarDate:c,calendarPlaceholder:o,calendarValue:u,locale:i,maxDateValue:(0,f.computed)(()=>{if(e.value!=null)return c(e.value)}),minDateValue:d,setPlaceholder:s}}var cD=V({slots:{field:`flex h-full flex-1 items-center px-sm`,literal:`text-placeholder select-none`,segment:`
|
|
861
|
+
`,label:`font-medium`},variants:{size:{lg:{base:`h-5 min-w-5 px-xxs`,label:`text-xs`},md:{base:`h-4 min-w-4 px-xxs`,label:`text-[0.625rem]`}},color:{blue:{},brand:{},error:{},gray:{},pink:{},purple:{},success:{},warning:{}},variant:{outline:{base:`bg-transparent`},solid:{},translucent:{}}}}),RE=[`aria-label`],zE=(0,f.defineComponent)({__name:`NumberBadge`,props:{ariaLabel:{default:null},color:{default:`gray`},size:{default:`md`},value:{},variant:{default:`translucent`}},setup(e){let t=e,n=(0,f.computed)(()=>LE({color:t.color,size:t.size,variant:t.variant}));return(e,r)=>((0,f.openBlock)(),(0,f.createElementBlock)(`span`,{class:(0,f.normalizeClass)(n.value.base()),"aria-label":t.ariaLabel??void 0,role:`status`},[(0,f.createVNode)((0,f.unref)(U),{text:t.value,class:(0,f.normalizeClass)(n.value.label())},null,8,[`text`,`class`])],10,RE))}}),BE=(0,f.defineComponent)({__name:`TabsItemContent`,props:{isLabelHidden:{type:Boolean,default:!1},config:{default:null},count:{default:null},icon:{default:void 0},label:{}},setup(e){let t=e,n=(0,f.computed)(()=>t.config?.left==null?t.icon==null?{type:`none`}:{icon:t.icon,type:`icon`}:t.config.left),r=(0,f.computed)(()=>t.config?.indicator==null?t.count==null?{type:`none`}:{type:`count`,value:t.count}:t.config.indicator);return(e,i)=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,null,[n.value.type===`icon`?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(n.value.icon),{key:0,class:`size-4 shrink-0`})):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)((0,f.unref)(U),{text:t.label,class:(0,f.normalizeClass)([{"sr-only":t.isLabelHidden},`text-xs`])},null,8,[`text`,`class`]),r.value.type===`count`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(zE),{key:1,value:r.value.value.toString(),size:`md`},null,8,[`value`])):r.value.type===`dot`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Po),{key:2,color:r.value.color??`error`,size:`sm`},null,8,[`color`])):(0,f.createCommentVNode)(``,!0)],64))}}),VE=(0,f.defineComponent)({__name:`TabsItem`,props:{isLabelHidden:{type:Boolean},config:{default:null},count:{default:null},disabledReason:{default:null},icon:{default:void 0},label:{},value:{},isDisabled:{type:Boolean,default:!1}},setup(e){let t=e,n=NE();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(W),{"is-disabled":t.disabledReason==null,label:t.disabledReason},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.TabsTrigger),{value:t.value,disabled:t.isDisabled,class:(0,f.normalizeClass)((0,f.unref)(n).variants.value.item())},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(BE,{config:t.config,count:t.count,icon:t.icon,"is-label-hidden":t.isLabelHidden,label:t.label},null,8,[`config`,`count`,`icon`,`is-label-hidden`,`label`])]),_:1},8,[`value`,`disabled`,`class`])]),_:1})]),_:1},8,[`is-disabled`,`label`]))}}),HE=(0,f.defineComponent)({__name:`TabsIndicator`,setup(e){let{variants:t}=NE();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.TabsIndicator),{class:(0,f.normalizeClass)((0,f.unref)(t).indicator())},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)((0,f.unref)(t).indicatorInner())},null,2)]),_:1},8,[`class`]))}}),UE=[`aria-label`],WE=[`data-orientation`],GE=[`aria-label`],KE=(0,f.defineComponent)({__name:`TabsList`,setup(e){let t=(0,g.useI18n)(),n=(0,f.ref)(null),{hasHorizontalOverflow:r,hasReachedHorizontalEnd:i,isScrolledHorizontally:a,orientation:o,scrollToLeft:s,scrollToRight:c,setScrollContainerRef:l,variants:u}=NE();return(0,f.onMounted)(()=>{if(n.value===null)throw Error(`scrollContainerRef is null`);l(n.value)}),(e,l)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)((0,f.unref)(u).base())},[(0,f.unref)(a)&&(0,f.unref)(r)&&(0,f.unref)(o)===`horizontal`?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:0,class:(0,f.normalizeClass)([(0,f.unref)(u).scrollEdge(),`left-0 justify-start bg-linear-to-r from-50%`])},[(0,f.createElementVNode)(`button`,{"aria-label":(0,f.unref)(t).t(`component.tabs.scroll_left`),class:(0,f.normalizeClass)((0,f.unref)(u).scrollButton()),tabindex:`-1`,type:`button`,onClick:l[0]||=(...e)=>(0,f.unref)(s)&&(0,f.unref)(s)(...e)},[(0,f.createVNode)((0,f.unref)(ln),{class:`size-3`})],10,UE)],2)):(0,f.createCommentVNode)(``,!0),(0,f.createElementVNode)(`div`,{ref_key:`scrollContainerRef`,ref:n,class:(0,f.normalizeClass)((0,f.unref)(u).scrollContainer()),"data-orientation":(0,f.unref)(o)},[(0,f.createVNode)((0,f.unref)(h.TabsList),{class:(0,f.normalizeClass)((0,f.unref)(u).list())},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`),(0,f.createVNode)(HE)]),_:3},8,[`class`])],10,WE),!(0,f.unref)(i)&&(0,f.unref)(r)&&(0,f.unref)(o)===`horizontal`?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:1,class:(0,f.normalizeClass)([(0,f.unref)(u).scrollEdge(),`right-0 justify-end bg-linear-to-l from-50%`])},[(0,f.createElementVNode)(`button`,{"aria-label":(0,f.unref)(t).t(`component.tabs.scroll_right`),class:(0,f.normalizeClass)((0,f.unref)(u).scrollButton()),tabindex:`-1`,type:`button`,onClick:l[1]||=(...e)=>(0,f.unref)(c)&&(0,f.unref)(c)(...e)},[(0,f.createVNode)((0,f.unref)(pn),{class:`size-3`})],10,GE)],2)):(0,f.createCommentVNode)(``,!0)],2))}}),qE=(0,f.defineComponent)({__name:`TabsRouterLink`,props:{isFullWidth:{type:Boolean,default:!1},orientation:{default:`horizontal`},underlineTabsHorizontalListPadding:{default:`none`},variant:{default:`underline`}},setup(e){let t=e;t.underlineTabsHorizontalListPadding!==`none`&&t.variant!==`underline`&&console.warn("[TabsRouterLink] `underlineTabsHorizontalListPadding` only applies to the `underline` variant.");let n=(0,y.useRoute)(),r=(0,y.useRouter)(),i=(0,f.computed)(()=>n.name);function a(e){e!==i.value&&r.replace({name:e})}let{hasHorizontalOverflow:o,hasReachedHorizontalEnd:s,isScrolledHorizontally:c,scrollToActiveTab:l,scrollToLeft:u,scrollToRight:d,setScrollContainerRef:p}=jE({activeValue:i}),m=(0,f.computed)(()=>PE({isFullWidth:t.isFullWidth,underlineTabsHorizontalListPadding:t.underlineTabsHorizontalListPadding,variant:t.variant}));return(0,f.onMounted)(()=>{l()}),ME({activeValue:i,...Xr(t),hasHorizontalOverflow:o,hasReachedHorizontalEnd:s,isScrolledHorizontally:c,scrollToLeft:u,scrollToRight:d,setScrollContainerRef:p,variants:m}),(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.TabsRoot),{"model-value":i.value,orientation:t.orientation,"onUpdate:modelValue":a},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(KE,null,{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`model-value`,`orientation`]))}}),JE=(0,f.defineComponent)({__name:`TabsRouterLinkContent`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,role:`tabpanel`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(y.RouterView))]),_:1}))}}),YE=(0,f.defineComponent)({__name:`TabsRouterLinkItem`,props:{isLabelHidden:{type:Boolean},config:{default:null},count:{default:null},disabledReason:{default:null},icon:{default:void 0},label:{},to:{},isDisabled:{type:Boolean,default:!1}},setup(e){let t=e,n=NE().variants,r=(0,y.useRouter)(),i=(0,f.computed)(()=>r.resolve(t.to).name);return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(W),{"is-disabled":t.disabledReason==null,label:t.disabledReason},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,null,[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.TabsTrigger),{value:i.value,disabled:t.isDisabled,"as-child":!0,class:(0,f.normalizeClass)((0,f.unref)(n).item())},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(y.RouterLink),{to:t.to,replace:!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(BE,{config:t.config,count:t.count,icon:t.icon,"is-label-hidden":t.isLabelHidden,label:t.label},null,8,[`config`,`count`,`icon`,`is-label-hidden`,`label`])]),_:1},8,[`to`])]),_:1},8,[`value`,`disabled`,`class`])]),_:1})])]),_:1},8,[`is-disabled`,`label`]))}}),XE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneTabs`,props:{modelValue:{required:!0},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let t=(0,f.useModel)(e,`modelValue`);return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(FE),{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,"is-full-width":!0,variant:`underline`,"underline-tabs-horizontal-list-padding":`lg`,class:`flex flex-1 flex-col overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`]))}}),ZE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneTabsContent`,props:{asChild:{type:Boolean,default:!0},value:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(IE),{"as-child":t.asChild,value:t.value,tabindex:t.asChild?void 0:-1},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Iy),{tabindex:`0`,class:`flex flex-1 flex-col`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`as-child`,`value`,`tabindex`]))}}),QE={class:`sticky top-0 z-10 bg-primary`},$E=(0,f.defineComponent)({__name:`DashboardPageDetailPaneTabsList`,setup(e){let{hasTabs:t}=rE();return(0,f.onMounted)(()=>{t.value=!0}),(0,f.onBeforeUnmount)(()=>{t.value=!1}),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,QE,[(0,f.createVNode)((0,f.unref)(KE),null,{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]))}}),eD=(0,f.defineComponent)({__name:`DashboardPageDetailPaneToggle`,setup(e){let{isOpen:t,toggle:n}=hE(),r=(0,g.useI18n)(),i=(0,p.createAction)({id:`toggle-detail-pane`,name:()=>r.t(`action.global.toggle_detail_pane.name`),execute:()=>{n()},group:(0,p.useActionGroup)().navigation,icon:()=>t.value?$n:Vn,keyboardShortcut:{key:`I`,mod:!0},keywords:r.t(`action.global.toggle_detail_pane.keywords`).split(` `)}),a=(0,f.computed)(()=>t.value?r.t(`component.dashboard_page_detail_pane_toggle.collapse`):r.t(`component.dashboard_page_detail_pane_toggle.expand`));return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(W,{label:a.value,"keyboard-shortcut":(0,f.unref)(i).keyboardShortcut},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Cs,{"is-current-context-only":!1,action:(0,f.unref)(i),"group-priority":(0,f.unref)(p.GroupPriority).NAVIGATION},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Z),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.Toggle),{"model-value":(0,f.unref)(t),"data-state":(0,f.unref)(t)?`open`:`closed`,"aria-label":a.value,class:`group/toggle -mr-xxs flex size-6 items-center justify-center rounded-sm duration-150 hover:bg-secondary-hover`},{default:(0,f.withCtx)(()=>[...n[0]||=[(0,f.createElementVNode)(`div`,{class:`flex h-3 w-3.5 justify-end rounded-[0.1875rem] border border-fg-tertiary p-[0.09375rem] duration-150 group-data-[state=open]/toggle:border-fg-tertiary dark:group-data-[state=open]/toggle:border-fg-secondary`},[(0,f.createElementVNode)(`div`,{class:`h-full w-0.5 rounded-[1px] bg-fg-tertiary duration-150 group-data-[state=open]/toggle:w-1 group-data-[state=open]/toggle:bg-fg-tertiary dark:group-data-[state=open]/toggle:bg-fg-secondary`})],-1)]]),_:1},8,[`model-value`,`data-state`,`aria-label`])]),_:1})]),_:1},8,[`action`,`group-priority`])]),_:1},8,[`label`,`keyboard-shortcut`]))}}),tD=(0,f.defineComponent)({__name:`DashboardPageHeaderActions`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(I,{gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),nD={class:`border-b border-secondary`},rD={class:`flex h-11 items-center`},iD={key:0,class:`flex h-11 items-center border-t border-secondary`},aD=(0,f.defineComponent)({__name:`DashboardPageHeader`,setup(e){let t=(0,f.useSlots)(),n=(0,m.useBreakpoints)({lg:1024}).smaller(`lg`),r=(0,f.computed)(()=>!!t[`action-right`]);return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`header`,nD,[(0,f.createElementVNode)(`div`,rD,[(0,f.createVNode)(qT,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{justify:`between`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{gap:`none`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`action-left`)]),_:3}),(0,f.renderSlot)(e.$slots,`action-center`),(0,f.createVNode)(I,{gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.unref)(n)?(0,f.createCommentVNode)(``,!0):(0,f.renderSlot)(e.$slots,`action-right`,{key:0}),(0,f.createVNode)(tD,null,{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`master-actions`)]),_:3})]),_:3})]),_:3})]),_:3})]),(0,f.unref)(n)&&r.value?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,iD,[(0,f.createVNode)(qT,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{justify:`end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`action-right`)]),_:3})]),_:3})]),_:3})])):(0,f.createCommentVNode)(``,!0)]))}}),oD=(0,f.defineComponent)({__name:`DashboardPageHeaderMasterActionButton`,props:{icon:{},label:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(X,{icon:t.icon,label:t.label,variant:`tertiary`},null,8,[`icon`,`label`]))}});function sD({maxDate:e,minDate:t,modelValue:n}){let r=J(),i=(0,f.computed)(()=>r.dateLocale.value??navigator.language);function a(n){return t.value!==null&&S.Temporal.PlainDate.compare(n,t.value)<0?t.value:e.value!==null&&S.Temporal.PlainDate.compare(n,e.value)>0?e.value:n}let o=a(n.value??S.Temporal.Now.plainDateISO()),s=(0,f.shallowRef)(new x.CalendarDate(o.year,o.month,o.day));function c(e){s.value=e}(0,f.watch)(n,e=>{e!==null&&(s.value=new x.CalendarDate(e.year,e.month,e.day))});function l(e){return new x.CalendarDate(e.year,e.month,e.day)}function u(e){return S.Temporal.PlainDate.from({day:e.day,month:e.month,year:e.year})}let d=(0,f.computed)({get:()=>{if(n.value!==null)return l(n.value)},set:e=>{e==null?n.value=null:n.value=u(e)}}),p=(0,f.computed)(()=>{if(t.value!=null)return l(t.value)});return{plainDateToCalendarDate:l,calendarPlaceholder:s,calendarValue:d,locale:i,maxDateValue:(0,f.computed)(()=>{if(e.value!=null)return l(e.value)}),minDateValue:p,setPlaceholder:c}}var cD=V({slots:{field:`flex h-full flex-1 items-center px-sm`,literal:`text-placeholder select-none`,segment:`
|
|
862
862
|
rounded-xs px-xxs text-primary tabular-nums caret-transparent outline-none
|
|
863
863
|
group-data-disabled/field-wrapper:pointer-events-none
|
|
864
864
|
hover:bg-secondary-hover hover:text-primary
|
|
@@ -945,7 +945,7 @@ Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoo
|
|
|
945
945
|
outline-none
|
|
946
946
|
disabled:cursor-not-allowed disabled:text-disabled
|
|
947
947
|
data-placeholder:text-placeholder
|
|
948
|
-
`},variants:{size:{md:{trigger:`gap-sm px-md`},sm:{trigger:`gap-xxs px-sm`}}}}),xD=1;function SD(e){try{if(typeof Intl>`u`||Intl.Locale===void 0)return xD;let t=new Intl.Locale(e);if(typeof t.getWeekInfo!=`function`)return xD;let{firstDay:n}=t.getWeekInfo();return n<1||n>7?xD:n===7?0:n}catch{return xD}}var CD=(0,f.defineComponent)({inheritAttrs:!1,__name:`DateField`,props:(0,f.mergeModels)((0,f.mergeDefaults)({maxDate:{},minDate:{},isPickerHidden:{type:Boolean},getDayConfig:{type:Function},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isErrorMessageHidden:{type:Boolean},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{}},{...ry,...iy,...ay,maxDate:null,minDate:null,isPickerHidden:!1,size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,f.useModel)(e,`modelValue`),r=(0,g.useI18n)(),i=t.id??(0,f.useId)(),a=(0,f.useAttrs)(),{isError:o,ariaDescribedBy:s,ariaInvalid:c}=ty(i,t),l=(0,f.ref)(!1),{calendarPlaceholder:u,calendarValue:d,locale:p,maxDateValue:m,minDateValue:_,setPlaceholder:v}=sD({maxDate:(0,f.toRef)(t,`maxDate`),minDate:(0,f.toRef)(t,`minDate`),modelValue:n}),y=(0,f.computed)(()=>cD({size:t.size}));return uD({datePickerStyle:(0,f.computed)(()=>bD({size:t.size})),placeholder:u,setPlaceholder:v,onClose:()=>{l.value=!1}}),(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(Ay,{"error-message":t.errorMessage,"is-disabled":t.isDisabled,"is-required":t.isRequired,"disabled-reason":t.disabledReason,hint:t.hint,label:t.label,class:(0,f.normalizeClass)(t.class),style:(0,f.normalizeStyle)(t.style),for:(0,f.unref)(i),"help-text":t.helpText,"hide-error-message":t.hideErrorMessage,"is-error-message-hidden":t.isErrorMessageHidden,"is-label-hidden":t.isLabelHidden},{"label-left":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-right`)]),default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerRoot),{id:(0,f.unref)(i),modelValue:(0,f.unref)(d),"onUpdate:modelValue":n[0]||=e=>(0,f.isRef)(d)?d.value=e:null,open:l.value,"onUpdate:open":n[1]||=e=>l.value=e,placeholder:(0,f.unref)(u),"onUpdate:placeholder":n[2]||=e=>(0,f.isRef)(u)?u.value=e:null,"week-starts-on":(0,f.unref)(SD)((0,f.unref)(p)),disabled:t.isDisabled,"max-value":(0,f.unref)(m),"min-value":(0,f.unref)(_),readonly:t.isReadonly,required:t.isRequired,locale:(0,f.unref)(p)},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Sy,{"is-disabled":t.isDisabled,"is-error":(0,f.unref)(o),"is-loading":t.isLoading,"is-readonly":t.isReadonly,size:t.size},(0,f.createSlots)({default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerField),(0,f.mergeProps)({id:(0,f.unref)(i)},(0,f.unref)(a),{"aria-describedby":(0,f.unref)(s),"aria-invalid":(0,f.unref)(c),"aria-required":t.isRequired||void 0,class:y.value.field()}),{default:(0,f.withCtx)(({segments:e})=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e,({part:e,value:t})=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:e},[e===`literal`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DatePickerInput),{key:1,part:e,class:(0,f.normalizeClass)(y.value.literal())},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DatePickerInput),{key:0,part:e,class:(0,f.normalizeClass)(y.value.segment()),"data-field-wrapper":``},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`]))],64))),128))]),_:1},16,[`id`,`aria-describedby`,`aria-invalid`,`aria-required`,`class`])]),_:2},[t.isPickerHidden?void 0:{name:`right`,fn:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerTrigger),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{"is-disabled":t.isDisabled||t.isReadonly,"is-tooltip-disabled":!0,icon:(0,f.unref)(Xt),label:(0,f.unref)(r).t(`component.date_picker.open`),class:(0,f.normalizeClass)({"mr-xs":t.size===`md`,"mr-xxs":t.size===`sm`}),size:`xs`,type:`button`,variant:`tertiary`},null,8,[`is-disabled`,`icon`,`label`,`class`])]),_:1})]),key:`0`}]),1032,[`is-disabled`,`is-error`,`is-loading`,`is-readonly`,`size`]),(0,f.createVNode)(ei,{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerContent),{"side-offset":8,"collision-padding":10,"data-animation":`popover-default`,class:`z-50 origin-(--reka-popover-content-transform-origin) will-change-[transform,opacity]`,align:`end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerCalendar),{class:`flex flex-col gap-lg overflow-hidden rounded-2xl border border-secondary bg-primary px-xl py-lg shadow-lg`,"weekday-format":`short`},{default:(0,f.withCtx)(({weekDays:e,grid:n})=>[(0,f.createVNode)(yD),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(n,n=>((0,f.openBlock)(),(0,f.createBlock)(pD,{key:n.value.toString(),"get-day-config":t.getDayConfig,month:n,"week-days":e},null,8,[`get-day-config`,`month`,`week-days`]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,[`id`,`modelValue`,`open`,`placeholder`,`week-starts-on`,`disabled`,`max-value`,`min-value`,`readonly`,`required`,`locale`])]),_:3},8,[`error-message`,`is-disabled`,`is-required`,`disabled-reason`,`hint`,`label`,`class`,`style`,`for`,`help-text`,`hide-error-message`,`is-error-message-hidden`,`is-label-hidden`]))}}),wD=(0,f.defineComponent)({inheritAttrs:!1,__name:`DatePicker`,props:(0,f.mergeModels)({maxDate:{default:null},minDate:{default:null},hasFixedWeeks:{type:Boolean,default:!1},fixedWeeks:{type:Boolean},getDayConfig:{},size:{default:`md`}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,f.useAttrs)(),r=(0,f.useModel)(e,`modelValue`),{calendarPlaceholder:i,calendarValue:a,locale:o,maxDateValue:s,minDateValue:c,setPlaceholder:l}=sD({maxDate:(0,f.toRef)(t,`maxDate`),minDate:(0,f.toRef)(t,`minDate`),modelValue:r}),u=(0,f.computed)(()=>t.hasFixedWeeks||t.fixedWeeks===!0);return uD({datePickerStyle:(0,f.computed)(()=>bD({size:t.size})),placeholder:i,setPlaceholder:l}),(e,r)=>((0,f.openBlock)(),(0,f.createBlock)(ei,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerRoot),(0,f.mergeProps)((0,f.unref)(n),{modelValue:(0,f.unref)(a),"onUpdate:modelValue":r[0]||=e=>(0,f.isRef)(a)?a.value=e:null,placeholder:(0,f.unref)(i),"onUpdate:placeholder":r[1]||=e=>(0,f.isRef)(i)?i.value=e:null,"week-starts-on":(0,f.unref)(SD)((0,f.unref)(o)),"max-value":(0,f.unref)(s),"min-value":(0,f.unref)(c),locale:(0,f.unref)(o),"fixed-weeks":u.value}),{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerCalendar),{"fixed-weeks":!1,class:`flex flex-col gap-lg overflow-hidden bg-primary p-2xl px-3xl`,"weekday-format":`short`},{default:(0,f.withCtx)(({weekDays:e,grid:n})=>[(0,f.createVNode)(yD),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(n,n=>((0,f.openBlock)(),(0,f.createBlock)(pD,{key:n.value.toString(),"get-day-config":t.getDayConfig,month:n,"week-days":e},null,8,[`get-day-config`,`month`,`week-days`]))),128))]),_:1})]),_:1},16,[`modelValue`,`placeholder`,`week-starts-on`,`max-value`,`min-value`,`locale`,`fixed-weeks`])]),_:1}))}});function TD({maxDate:e,minDate:t,modelValue:n}){let r=J(),i=(0,f.computed)(()=>r.dateLocale.value??navigator.language),a=(0,f.ref)(!1),o=(0,m.useBreakpoints)({md:768}).smaller(`md`),
|
|
948
|
+
`},variants:{size:{md:{trigger:`gap-sm px-md`},sm:{trigger:`gap-xxs px-sm`}}}}),xD=1;function SD(e){try{if(typeof Intl>`u`||Intl.Locale===void 0)return xD;let t=new Intl.Locale(e);if(typeof t.getWeekInfo!=`function`)return xD;let{firstDay:n}=t.getWeekInfo();return n<1||n>7?xD:n===7?0:n}catch{return xD}}var CD=(0,f.defineComponent)({inheritAttrs:!1,__name:`DateField`,props:(0,f.mergeModels)((0,f.mergeDefaults)({maxDate:{},minDate:{},isPickerHidden:{type:Boolean},getDayConfig:{type:Function},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isErrorMessageHidden:{type:Boolean},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{}},{...ry,...iy,...ay,maxDate:null,minDate:null,isPickerHidden:!1,size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,f.useModel)(e,`modelValue`),r=(0,g.useI18n)(),i=t.id??(0,f.useId)(),a=(0,f.useAttrs)(),{isError:o,ariaDescribedBy:s,ariaInvalid:c}=ty(i,t),l=(0,f.ref)(!1),{calendarPlaceholder:u,calendarValue:d,locale:p,maxDateValue:m,minDateValue:_,setPlaceholder:v}=sD({maxDate:(0,f.toRef)(t,`maxDate`),minDate:(0,f.toRef)(t,`minDate`),modelValue:n}),y=(0,f.computed)(()=>cD({size:t.size}));return uD({datePickerStyle:(0,f.computed)(()=>bD({size:t.size})),placeholder:u,setPlaceholder:v,onClose:()=>{l.value=!1}}),(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(Ay,{"error-message":t.errorMessage,"is-disabled":t.isDisabled,"is-required":t.isRequired,"disabled-reason":t.disabledReason,hint:t.hint,label:t.label,class:(0,f.normalizeClass)(t.class),style:(0,f.normalizeStyle)(t.style),for:(0,f.unref)(i),"help-text":t.helpText,"hide-error-message":t.hideErrorMessage,"is-error-message-hidden":t.isErrorMessageHidden,"is-label-hidden":t.isLabelHidden},{"label-left":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-right`)]),default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerRoot),{id:(0,f.unref)(i),modelValue:(0,f.unref)(d),"onUpdate:modelValue":n[0]||=e=>(0,f.isRef)(d)?d.value=e:null,open:l.value,"onUpdate:open":n[1]||=e=>l.value=e,placeholder:(0,f.unref)(u),"onUpdate:placeholder":n[2]||=e=>(0,f.isRef)(u)?u.value=e:null,"week-starts-on":(0,f.unref)(SD)((0,f.unref)(p)),disabled:t.isDisabled,"max-value":(0,f.unref)(m),"min-value":(0,f.unref)(_),readonly:t.isReadonly,required:t.isRequired,locale:(0,f.unref)(p)},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Sy,{"is-disabled":t.isDisabled,"is-error":(0,f.unref)(o),"is-loading":t.isLoading,"is-readonly":t.isReadonly,size:t.size},(0,f.createSlots)({default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerField),(0,f.mergeProps)({id:(0,f.unref)(i)},(0,f.unref)(a),{"aria-describedby":(0,f.unref)(s),"aria-invalid":(0,f.unref)(c),"aria-required":t.isRequired||void 0,class:y.value.field()}),{default:(0,f.withCtx)(({segments:e})=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e,({part:e,value:t})=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:e},[e===`literal`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DatePickerInput),{key:1,part:e,class:(0,f.normalizeClass)(y.value.literal())},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DatePickerInput),{key:0,part:e,class:(0,f.normalizeClass)(y.value.segment()),"data-field-wrapper":``},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`]))],64))),128))]),_:1},16,[`id`,`aria-describedby`,`aria-invalid`,`aria-required`,`class`])]),_:2},[t.isPickerHidden?void 0:{name:`right`,fn:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerTrigger),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{"is-disabled":t.isDisabled||t.isReadonly,"is-tooltip-disabled":!0,icon:(0,f.unref)(Xt),label:(0,f.unref)(r).t(`component.date_picker.open`),class:(0,f.normalizeClass)({"mr-xs":t.size===`md`,"mr-xxs":t.size===`sm`}),size:`xs`,type:`button`,variant:`tertiary`},null,8,[`is-disabled`,`icon`,`label`,`class`])]),_:1})]),key:`0`}]),1032,[`is-disabled`,`is-error`,`is-loading`,`is-readonly`,`size`]),(0,f.createVNode)(ei,{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerContent),{"side-offset":8,"collision-padding":10,"data-animation":`popover-default`,class:`z-50 origin-(--reka-popover-content-transform-origin) will-change-[transform,opacity]`,align:`end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerCalendar),{class:`flex flex-col gap-lg overflow-hidden rounded-2xl border border-secondary bg-primary px-xl py-lg shadow-lg`,"weekday-format":`short`},{default:(0,f.withCtx)(({weekDays:e,grid:n})=>[(0,f.createVNode)(yD),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(n,n=>((0,f.openBlock)(),(0,f.createBlock)(pD,{key:n.value.toString(),"get-day-config":t.getDayConfig,month:n,"week-days":e},null,8,[`get-day-config`,`month`,`week-days`]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,[`id`,`modelValue`,`open`,`placeholder`,`week-starts-on`,`disabled`,`max-value`,`min-value`,`readonly`,`required`,`locale`])]),_:3},8,[`error-message`,`is-disabled`,`is-required`,`disabled-reason`,`hint`,`label`,`class`,`style`,`for`,`help-text`,`hide-error-message`,`is-error-message-hidden`,`is-label-hidden`]))}}),wD=(0,f.defineComponent)({inheritAttrs:!1,__name:`DatePicker`,props:(0,f.mergeModels)({maxDate:{default:null},minDate:{default:null},hasFixedWeeks:{type:Boolean,default:!1},fixedWeeks:{type:Boolean},getDayConfig:{},size:{default:`md`}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,f.useAttrs)(),r=(0,f.useModel)(e,`modelValue`),{calendarPlaceholder:i,calendarValue:a,locale:o,maxDateValue:s,minDateValue:c,setPlaceholder:l}=sD({maxDate:(0,f.toRef)(t,`maxDate`),minDate:(0,f.toRef)(t,`minDate`),modelValue:r}),u=(0,f.computed)(()=>t.hasFixedWeeks||t.fixedWeeks===!0);return uD({datePickerStyle:(0,f.computed)(()=>bD({size:t.size})),placeholder:i,setPlaceholder:l}),(e,r)=>((0,f.openBlock)(),(0,f.createBlock)(ei,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerRoot),(0,f.mergeProps)((0,f.unref)(n),{modelValue:(0,f.unref)(a),"onUpdate:modelValue":r[0]||=e=>(0,f.isRef)(a)?a.value=e:null,placeholder:(0,f.unref)(i),"onUpdate:placeholder":r[1]||=e=>(0,f.isRef)(i)?i.value=e:null,"week-starts-on":(0,f.unref)(SD)((0,f.unref)(o)),"max-value":(0,f.unref)(s),"min-value":(0,f.unref)(c),locale:(0,f.unref)(o),"fixed-weeks":u.value}),{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerCalendar),{"fixed-weeks":!1,class:`flex flex-col gap-lg overflow-hidden bg-primary p-2xl px-3xl`,"weekday-format":`short`},{default:(0,f.withCtx)(({weekDays:e,grid:n})=>[(0,f.createVNode)(yD),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(n,n=>((0,f.openBlock)(),(0,f.createBlock)(pD,{key:n.value.toString(),"get-day-config":t.getDayConfig,month:n,"week-days":e},null,8,[`get-day-config`,`month`,`week-days`]))),128))]),_:1})]),_:1},16,[`modelValue`,`placeholder`,`week-starts-on`,`max-value`,`min-value`,`locale`,`fixed-weeks`])]),_:1}))}});function TD({maxDate:e,minDate:t,modelValue:n}){let r=J(),i=(0,f.computed)(()=>r.dateLocale.value??navigator.language),a=(0,f.ref)(!1),o=(0,m.useBreakpoints)({md:768}).smaller(`md`);function s(n){return t.value!==null&&S.Temporal.PlainDate.compare(n,t.value)<0?t.value:e.value!==null&&S.Temporal.PlainDate.compare(n,e.value)>0?e.value:n}let c=S.Temporal.Now.plainDateISO(),l=s(n.value.from??c),u=(0,f.shallowRef)(new x.CalendarDate(l.year,l.month,1)),d=(0,f.shallowRef)({end:n.value?.until==null?void 0:g(n.value.until),start:n.value?.from==null?void 0:g(n.value.from)});function p(e){if(e.start!=null&&e.end!=null&&e.start.compare(e.end)>0){a.value=!0;return}a.value=!1,d.value=e}function h(e){u.value=e}function g(e){return new x.CalendarDate(e.year,e.month,e.day)}function _(e){return S.Temporal.PlainDate.from({day:e.day,month:e.month,year:e.year})}(0,f.watch)(d,e=>{e.start!=null&&e.end!=null?n.value={from:_(e.start),until:_(e.end)}:e.start==null&&e.end==null&&(n.value={from:null,until:null})},{deep:!0});function v(e){e===null?d.value={end:void 0,start:void 0}:d.value={end:g(e.until),start:g(e.from)}}function y(){let e=n.value?.from==null?void 0:g(n.value.from),t=n.value?.until==null?void 0:g(n.value.until),r=e==null?d.value.start!=null:d.value.start==null||e.compare(d.value.start)!==0,i=t==null?d.value.end!=null:d.value.end==null||t.compare(d.value.end)!==0;!r&&!i||(d.value={end:t,start:e})}(0,f.watch)(n,y);let b=(0,f.computed)(()=>{if(t.value!=null)return g(t.value)});return{isInvalidRange:a,isSingleMonth:o,calendarPlaceholder:u,draftValue:d,locale:i,maxDateValue:(0,f.computed)(()=>{if(e.value!=null)return g(e.value)}),minDateValue:b,setPlaceholder:h,setPreset:v,syncDraftFromModel:y,onDraftValueUpdate:p}}var[ED,DD]=F(`dateRangeFieldContext`),OD=V({slots:{field:`ml-sm flex h-full min-w-0 flex-1 items-center`,literal:`text-placeholder select-none`,segment:`
|
|
949
949
|
rounded-sm text-primary tabular-nums caret-transparent outline-none
|
|
950
950
|
group-data-disabled/field-wrapper:pointer-events-none
|
|
951
951
|
hover:bg-secondary-hover hover:text-primary
|
package/dist/index.js
CHANGED
|
@@ -30358,43 +30358,47 @@ var [ej, tj] = K("tabsContext"), nj = pu({
|
|
|
30358
30358
|
//#endregion
|
|
30359
30359
|
//#region src/composables/datePicker.composable.ts
|
|
30360
30360
|
function kj({ maxDate: e, minDate: t, modelValue: n }) {
|
|
30361
|
-
let r = v_(), i = o(() => r.dateLocale.value ?? navigator.language)
|
|
30362
|
-
function
|
|
30363
|
-
|
|
30361
|
+
let r = v_(), i = o(() => r.dateLocale.value ?? navigator.language);
|
|
30362
|
+
function a(n) {
|
|
30363
|
+
return t.value !== null && Kr.PlainDate.compare(n, t.value) < 0 ? t.value : e.value !== null && Kr.PlainDate.compare(n, e.value) > 0 ? e.value : n;
|
|
30364
|
+
}
|
|
30365
|
+
let s = a(n.value ?? Kr.Now.plainDateISO()), c = ie(new Ur(s.year, s.month, s.day));
|
|
30366
|
+
function l(e) {
|
|
30367
|
+
c.value = e;
|
|
30364
30368
|
}
|
|
30365
30369
|
V(n, (e) => {
|
|
30366
|
-
e !== null && (
|
|
30370
|
+
e !== null && (c.value = new Ur(e.year, e.month, e.day));
|
|
30367
30371
|
});
|
|
30368
|
-
function
|
|
30372
|
+
function u(e) {
|
|
30369
30373
|
return new Ur(e.year, e.month, e.day);
|
|
30370
30374
|
}
|
|
30371
|
-
function
|
|
30375
|
+
function d(e) {
|
|
30372
30376
|
return Kr.PlainDate.from({
|
|
30373
30377
|
day: e.day,
|
|
30374
30378
|
month: e.month,
|
|
30375
30379
|
year: e.year
|
|
30376
30380
|
});
|
|
30377
30381
|
}
|
|
30378
|
-
let
|
|
30382
|
+
let f = o({
|
|
30379
30383
|
get: () => {
|
|
30380
|
-
if (n.value !== null) return
|
|
30384
|
+
if (n.value !== null) return u(n.value);
|
|
30381
30385
|
},
|
|
30382
30386
|
set: (e) => {
|
|
30383
|
-
e == null ? n.value = null : n.value =
|
|
30387
|
+
e == null ? n.value = null : n.value = d(e);
|
|
30384
30388
|
}
|
|
30385
|
-
}),
|
|
30386
|
-
if (t.value != null) return
|
|
30389
|
+
}), p = o(() => {
|
|
30390
|
+
if (t.value != null) return u(t.value);
|
|
30387
30391
|
});
|
|
30388
30392
|
return {
|
|
30389
|
-
plainDateToCalendarDate:
|
|
30390
|
-
calendarPlaceholder:
|
|
30391
|
-
calendarValue:
|
|
30393
|
+
plainDateToCalendarDate: u,
|
|
30394
|
+
calendarPlaceholder: c,
|
|
30395
|
+
calendarValue: f,
|
|
30392
30396
|
locale: i,
|
|
30393
30397
|
maxDateValue: o(() => {
|
|
30394
|
-
if (e.value != null) return
|
|
30398
|
+
if (e.value != null) return u(e.value);
|
|
30395
30399
|
}),
|
|
30396
|
-
minDateValue:
|
|
30397
|
-
setPlaceholder:
|
|
30400
|
+
minDateValue: p,
|
|
30401
|
+
setPlaceholder: l
|
|
30398
30402
|
};
|
|
30399
30403
|
}
|
|
30400
30404
|
//#endregion
|
|
@@ -31036,73 +31040,77 @@ var Gj = /* @__PURE__ */ h({
|
|
|
31036
31040
|
//#endregion
|
|
31037
31041
|
//#region src/composables/dateRangePicker.composable.ts
|
|
31038
31042
|
function qj({ maxDate: e, minDate: t, modelValue: n }) {
|
|
31039
|
-
let r = v_(), i = o(() => r.dateLocale.value ?? navigator.language), a = M(!1), s = Le({ md: 768 }).smaller("md")
|
|
31040
|
-
|
|
31041
|
-
|
|
31043
|
+
let r = v_(), i = o(() => r.dateLocale.value ?? navigator.language), a = M(!1), s = Le({ md: 768 }).smaller("md");
|
|
31044
|
+
function c(n) {
|
|
31045
|
+
return t.value !== null && Kr.PlainDate.compare(n, t.value) < 0 ? t.value : e.value !== null && Kr.PlainDate.compare(n, e.value) > 0 ? e.value : n;
|
|
31046
|
+
}
|
|
31047
|
+
let l = Kr.Now.plainDateISO(), u = c(n.value.from ?? l), d = ie(new Ur(u.year, u.month, 1)), f = ie({
|
|
31048
|
+
end: n.value?.until == null ? void 0 : h(n.value.until),
|
|
31049
|
+
start: n.value?.from == null ? void 0 : h(n.value.from)
|
|
31042
31050
|
});
|
|
31043
|
-
function
|
|
31051
|
+
function p(e) {
|
|
31044
31052
|
if (e.start != null && e.end != null && e.start.compare(e.end) > 0) {
|
|
31045
31053
|
a.value = !0;
|
|
31046
31054
|
return;
|
|
31047
31055
|
}
|
|
31048
|
-
a.value = !1,
|
|
31049
|
-
}
|
|
31050
|
-
function p(e) {
|
|
31051
|
-
u.value = e;
|
|
31056
|
+
a.value = !1, f.value = e;
|
|
31052
31057
|
}
|
|
31053
31058
|
function m(e) {
|
|
31054
|
-
|
|
31059
|
+
d.value = e;
|
|
31055
31060
|
}
|
|
31056
31061
|
function h(e) {
|
|
31062
|
+
return new Ur(e.year, e.month, e.day);
|
|
31063
|
+
}
|
|
31064
|
+
function g(e) {
|
|
31057
31065
|
return Kr.PlainDate.from({
|
|
31058
31066
|
day: e.day,
|
|
31059
31067
|
month: e.month,
|
|
31060
31068
|
year: e.year
|
|
31061
31069
|
});
|
|
31062
31070
|
}
|
|
31063
|
-
V(
|
|
31071
|
+
V(f, (e) => {
|
|
31064
31072
|
e.start != null && e.end != null ? n.value = {
|
|
31065
|
-
from:
|
|
31066
|
-
until:
|
|
31073
|
+
from: g(e.start),
|
|
31074
|
+
until: g(e.end)
|
|
31067
31075
|
} : e.start == null && e.end == null && (n.value = {
|
|
31068
31076
|
from: null,
|
|
31069
31077
|
until: null
|
|
31070
31078
|
});
|
|
31071
31079
|
}, { deep: !0 });
|
|
31072
|
-
function
|
|
31073
|
-
e === null ?
|
|
31080
|
+
function _(e) {
|
|
31081
|
+
e === null ? f.value = {
|
|
31074
31082
|
end: void 0,
|
|
31075
31083
|
start: void 0
|
|
31076
|
-
} :
|
|
31077
|
-
end:
|
|
31078
|
-
start:
|
|
31084
|
+
} : f.value = {
|
|
31085
|
+
end: h(e.until),
|
|
31086
|
+
start: h(e.from)
|
|
31079
31087
|
};
|
|
31080
31088
|
}
|
|
31081
|
-
function
|
|
31082
|
-
let e = n.value?.from == null ? void 0 :
|
|
31083
|
-
!r && !i || (
|
|
31089
|
+
function v() {
|
|
31090
|
+
let e = n.value?.from == null ? void 0 : h(n.value.from), t = n.value?.until == null ? void 0 : h(n.value.until), r = e == null ? f.value.start != null : f.value.start == null || e.compare(f.value.start) !== 0, i = t == null ? f.value.end != null : f.value.end == null || t.compare(f.value.end) !== 0;
|
|
31091
|
+
!r && !i || (f.value = {
|
|
31084
31092
|
end: t,
|
|
31085
31093
|
start: e
|
|
31086
31094
|
});
|
|
31087
31095
|
}
|
|
31088
|
-
V(n,
|
|
31089
|
-
let
|
|
31090
|
-
if (t.value != null) return
|
|
31096
|
+
V(n, v);
|
|
31097
|
+
let y = o(() => {
|
|
31098
|
+
if (t.value != null) return h(t.value);
|
|
31091
31099
|
});
|
|
31092
31100
|
return {
|
|
31093
31101
|
isInvalidRange: a,
|
|
31094
31102
|
isSingleMonth: s,
|
|
31095
|
-
calendarPlaceholder:
|
|
31096
|
-
draftValue:
|
|
31103
|
+
calendarPlaceholder: d,
|
|
31104
|
+
draftValue: f,
|
|
31097
31105
|
locale: i,
|
|
31098
31106
|
maxDateValue: o(() => {
|
|
31099
|
-
if (e.value != null) return
|
|
31107
|
+
if (e.value != null) return h(e.value);
|
|
31100
31108
|
}),
|
|
31101
|
-
minDateValue:
|
|
31102
|
-
setPlaceholder:
|
|
31103
|
-
setPreset:
|
|
31104
|
-
syncDraftFromModel:
|
|
31105
|
-
onDraftValueUpdate:
|
|
31109
|
+
minDateValue: y,
|
|
31110
|
+
setPlaceholder: m,
|
|
31111
|
+
setPreset: _,
|
|
31112
|
+
syncDraftFromModel: v,
|
|
31113
|
+
onDraftValueUpdate: p
|
|
31106
31114
|
};
|
|
31107
31115
|
}
|
|
31108
31116
|
//#endregion
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "1.18.
|
|
7
|
+
"version": "1.18.1",
|
|
8
8
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"vue-router": "^4.6.4",
|
|
49
49
|
"vue-sonner": "2.0.9",
|
|
50
50
|
"zod": "4.3.5",
|
|
51
|
-
"@wisemen/vue-core-
|
|
51
|
+
"@wisemen/vue-core-dates": "^1.1.0",
|
|
52
52
|
"formango": "^3.2.5",
|
|
53
|
-
"@wisemen/vue-core-
|
|
53
|
+
"@wisemen/vue-core-actions": "^0.2.2"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@tailwindcss/vite": "4.1.18",
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"vue-component-meta": "3.2.6",
|
|
66
66
|
"vue-component-type-helpers": "3.3.0",
|
|
67
67
|
"vue-sonner": "2.0.9",
|
|
68
|
-
"@wisemen/vue-core-
|
|
68
|
+
"@wisemen/vue-core-icons": "0.0.3",
|
|
69
69
|
"@wisemen/vue-core-utils": "0.1.1",
|
|
70
70
|
"@wisemen/vue-core-dates": "1.1.0",
|
|
71
|
-
"@wisemen/vue-core-
|
|
71
|
+
"@wisemen/vue-core-api-utils": "2.0.5"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@chromatic-com/storybook": "5.0.2",
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
"zod": "4.3.5",
|
|
105
105
|
"@wisemen/eslint-config-vue": "2.1.4",
|
|
106
106
|
"@wisemen/vue-core-actions": "0.2.2",
|
|
107
|
-
"@wisemen/vue-core-dates": "1.1.0",
|
|
108
107
|
"@wisemen/vue-core-tailwind-config": "0.1.2",
|
|
108
|
+
"@wisemen/vue-core-dates": "1.1.0",
|
|
109
109
|
"formango": "3.2.5"
|
|
110
110
|
},
|
|
111
111
|
"scripts": {
|