-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions-28777f47.js
2 lines (2 loc) · 5.71 KB
/
options-28777f47.js
1
2
import{j as n}from"./jsx-runtime-51f16834.js";import{P as u,s as p,T as m,t as h,C as f}from"./index-3fa2e9d3.js";const s=e=>{var t,o,a,i,l,r;return n(u,{store:p,children:n(m,{children:n("div",{className:h("stk-core h-full w-full",(a=(o=(t=e.styles)==null?void 0:t.core)==null?void 0:o.container)==null?void 0:a.className),style:(r=(l=(i=e.styles)==null?void 0:i.core)==null?void 0:l.container)==null?void 0:r.properties,children:n(f,{...e})})})})},g=s;try{s.displayName="SeatToolkit",s.__docgenInfo={description:"",displayName:"SeatToolkit",props:{mode:{defaultValue:null,description:"",name:"mode",required:!0,type:{name:"enum",value:[{value:'"designer"'},{value:'"user"'}]}},seatSelectionMode:{defaultValue:null,description:'Only applicable in user mode. If set to "chain", user can select multiple seats in a row without pressing ctrl and needs to reclick a selected seat to deselect it.',name:"seatSelectionMode",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"chain"'}]}},events:{defaultValue:null,description:"",name:"events",required:!1,type:{name:"IEvents"}},data:{defaultValue:null,description:"",name:"data",required:!1,type:{name:"ISTKData"}},styles:{defaultValue:null,description:"",name:"styles",required:!1,type:{name:"IStyles"}},options:{defaultValue:null,description:"",name:"options",required:!1,type:{name:"{ showGridSwitch?: boolean; showSeatLabels?: boolean; showZoomControls?: boolean; showVisibilityControls?: boolean; showReloadButton?: boolean; exportButtonText?: string; operationTriggerIcon?: FC<...>; ... 8 more ...; shapes?: { ...; }; }"}},plugins:{defaultValue:null,description:"",name:"plugins",required:!1,type:{name:"IPlugins"}}}}}catch{}try{src.displayName="src",src.__docgenInfo={description:"",displayName:"src",props:{mode:{defaultValue:null,description:"",name:"mode",required:!0,type:{name:"enum",value:[{value:'"designer"'},{value:'"user"'}]}},seatSelectionMode:{defaultValue:null,description:'Only applicable in user mode. If set to "chain", user can select multiple seats in a row without pressing ctrl and needs to reclick a selected seat to deselect it.',name:"seatSelectionMode",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"chain"'}]}},events:{defaultValue:null,description:"",name:"events",required:!1,type:{name:"IEvents"}},data:{defaultValue:null,description:"",name:"data",required:!1,type:{name:"ISTKData"}},styles:{defaultValue:null,description:"",name:"styles",required:!1,type:{name:"IStyles"}},options:{defaultValue:null,description:"",name:"options",required:!1,type:{name:"{ showGridSwitch?: boolean; showSeatLabels?: boolean; showZoomControls?: boolean; showVisibilityControls?: boolean; showReloadButton?: boolean; exportButtonText?: string; operationTriggerIcon?: FC<...>; ... 8 more ...; shapes?: { ...; }; }"}},plugins:{defaultValue:null,description:"",name:"plugins",required:!1,type:{name:"IPlugins"}}}}}catch{}const d=e=>e.reduce((t,o)=>(t[o]={table:{disable:!0}},t),{}),c=(e,t)=>Object.keys(e).reduce((o,a)=>(o[`${t}${a}`]=e[a],o),{});var y=(e=>(e.DESIGNER="designer",e.USER="user",e))(y||{});const S={parameters:{layout:"fullscreen"},tags:["autodocs"],argTypes:{...d(["options"]),...c({showGridSwitch:{control:"boolean",description:"Show or hide the grid switch",defaultValue:{summary:!0}},showSeatLabels:{control:"boolean",description:"Show or hide the seat labels",defaultValue:{summary:!0}},showZoomControls:{control:"boolean",description:"Show or hide the zoom controls",defaultValue:{summary:!0}},showVisibilityControls:{control:"boolean",description:"Show or hide the visibility controls",defaultValue:{summary:!0}},showReloadButton:{control:"boolean",description:"Show or hide the reload button",defaultValue:{summary:!1}},exportButtonText:{control:"text",description:"Custom text for the export button",defaultValue:{summary:"Export"}},operationTriggerIcon:{control:"function",description:"React component to use in place of the operation trigger icon"},seatIcon:{control:"function",description:"React component to use as a seat icon"},selectedSeatIcon:{control:"function",description:"React component to use as a selected seat icon"},maxSeatSelectionCount:{control:"number",description:"Maximum number of seats that can be selected. Only applicable in user mode. Defaults to infinity."},maxImageSize:{control:"number",description:"Maximum size of an image which can be added to the workspace in bytes"},locationInputPlaceholder:{control:"text",description:"Placeholder text for the location input"},disableCategoryDelete:{control:"boolean",description:"Disable category deletion",defaultValue:{summary:!1}},disableCategoryDeleteIfReserved:{control:"boolean",description:"Disable category deletion if there are reserved seats falling under the category",defaultValue:{summary:!1}},disableSectionDelete:{control:"boolean",description:"Disable section deletion",defaultValue:{summary:!1}}},"options."),...d(["events"]),...c({onSeatClick:{description:"Fired when a seat is clicked"},onFreeSeatClick:{description:"Fired when a free seat is clicked"},onSeatHover:{description:"Fired when a seat is hovered over"},onSeatLeave:{description:"Fired when a seat is no longer hovered over"},onSeatSelectionChange:{description:"Fired when the selected seats change. Only applicable in user mode."},onMaxSeatSelectionCountReached:{description:"Fired when the user tries to select more seats than the maxSeatSelectionCount"},onWorkspaceHover:{description:"Fired when the workspace is hovered over"},onWorkspaceLoad:{description:"Fired when the workspace is loaded"},onSectionClick:{description:"Fired when a section is clicked"},onExport:{description:"Fired when the export button is clicked"},onReload:{description:"Fired when the reload button is clicked"}},"events.")}};export{g as S,y as a,S as o};
//# sourceMappingURL=options-28777f47.js.map