@zealicsolutions/web-ui 1.0.99-beta.54 → 1.0.99-beta.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1580 -1580
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.d.ts +4 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.stories.d.ts +5 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/config/descriptors.d.ts +412 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/config/toolDescriptor/timeline.d.ts +27 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/index.d.ts +4 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/queries/useCalendarDataGridData.d.ts +27 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/renderers/DayCell.d.ts +10 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/renderers/ResourceCell.d.ts +9 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/types.d.ts +94 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/useCalendarDataGridOrganism.d.ts +47 -0
- package/dist/cjs/organisms/DataGrid/DataGridOrganism.list.stories.d.ts +5 -0
- package/dist/cjs/organisms/DataGrid/config/descriptors.d.ts +8 -1
- package/dist/cjs/organisms/DataGrid/config/toolDescriptor/view.d.ts +8 -0
- package/dist/cjs/organisms/DataGrid/hooks/useDataGridColumnsV2.d.ts +20 -0
- package/dist/cjs/organisms/DataGrid/hooks/useDataGridOrganism.d.ts +2 -0
- package/dist/cjs/organisms/DataGrid/types.d.ts +24 -0
- package/dist/cjs/organisms/DataGridListOrganism/DataGridListOrganism.d.ts +4 -0
- package/dist/cjs/organisms/DataGridListOrganism/DataGridListOrganism.stories.d.ts +7 -0
- package/dist/cjs/organisms/DataGridListOrganism/config/descriptors.d.ts +479 -0
- package/dist/cjs/organisms/DataGridListOrganism/config/toolDescriptor/listItemMapping.d.ts +85 -0
- package/dist/cjs/organisms/DataGridListOrganism/config/toolDescriptor/listLayout.d.ts +29 -0
- package/dist/cjs/organisms/DataGridListOrganism/config/toolDescriptor/regions.d.ts +83 -0
- package/dist/cjs/organisms/DataGridListOrganism/index.d.ts +3 -0
- package/dist/cjs/organisms/DataGridListOrganism/types.d.ts +117 -0
- package/dist/cjs/organisms/DataGridListOrganism/useDataGridListOrganism.d.ts +39 -0
- package/dist/cjs/organisms/index.d.ts +2 -0
- package/dist/cjs/organisms/organismConfigurators.d.ts +4 -2
- package/dist/esm/containers/FormStepContainer.js +1 -1
- package/dist/esm/containers/FormStepContainer.js.map +1 -1
- package/dist/esm/contexts/ApiContext/ApiContext.js.map +1 -1
- package/dist/esm/contexts/ApiContext/globalQueries/form/useSubmitForm.js +2 -0
- package/dist/esm/contexts/ApiContext/globalQueries/form/useSubmitForm.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/molecules/BaseMolecule.js +1 -1
- package/dist/esm/molecules/BaseMolecule.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/esm/Button/Button.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/esm/MenuList/MenuList.js +1 -1
- package/dist/esm/node_modules/@mui/material/esm/Popover/Popover.js +1 -1
- package/dist/esm/node_modules/@mui/material/esm/Slide/Slide.js +1 -1
- package/dist/esm/node_modules/date-fns/eachDayOfInterval.mjs.js +2 -0
- package/dist/esm/node_modules/date-fns/eachDayOfInterval.mjs.js.map +1 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.d.ts +4 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.js +2 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.js.map +1 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.stories.d.ts +5 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/config/descriptors.d.ts +412 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/config/descriptors.js +2 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/config/descriptors.js.map +1 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/config/toolDescriptor/timeline.d.ts +27 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/config/toolDescriptor/timeline.js +2 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/config/toolDescriptor/timeline.js.map +1 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/index.d.ts +4 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/queries/useCalendarDataGridData.d.ts +27 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/queries/useCalendarDataGridData.js +2 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/queries/useCalendarDataGridData.js.map +1 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/renderers/DayCell.d.ts +10 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/renderers/DayCell.js +2 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/renderers/DayCell.js.map +1 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/renderers/ResourceCell.d.ts +9 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/renderers/ResourceCell.js +2 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/renderers/ResourceCell.js.map +1 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/types.d.ts +94 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/useCalendarDataGridOrganism.d.ts +47 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/useCalendarDataGridOrganism.js +2 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/useCalendarDataGridOrganism.js.map +1 -0
- package/dist/esm/organisms/DataGrid/DataGridOrganism.js +1 -1
- package/dist/esm/organisms/DataGrid/DataGridOrganism.js.map +1 -1
- package/dist/esm/organisms/DataGrid/DataGridOrganism.list.stories.d.ts +5 -0
- package/dist/esm/organisms/DataGrid/config/descriptors.d.ts +8 -1
- package/dist/esm/organisms/DataGrid/config/descriptors.js +1 -1
- package/dist/esm/organisms/DataGrid/config/descriptors.js.map +1 -1
- package/dist/esm/organisms/DataGrid/config/toolDescriptor/view.d.ts +8 -0
- package/dist/esm/organisms/DataGrid/config/toolDescriptor/view.js +2 -0
- package/dist/esm/organisms/DataGrid/config/toolDescriptor/view.js.map +1 -0
- package/dist/esm/organisms/DataGrid/hooks/useDataGridColumnsV2.d.ts +20 -0
- package/dist/esm/organisms/DataGrid/hooks/useDataGridColumnsV2.js +2 -0
- package/dist/esm/organisms/DataGrid/hooks/useDataGridColumnsV2.js.map +1 -0
- package/dist/esm/organisms/DataGrid/hooks/useDataGridOrganism.d.ts +2 -0
- package/dist/esm/organisms/DataGrid/hooks/useDataGridOrganism.js +1 -1
- package/dist/esm/organisms/DataGrid/hooks/useDataGridOrganism.js.map +1 -1
- package/dist/esm/organisms/DataGrid/types.d.ts +24 -0
- package/dist/esm/organisms/DataGridListOrganism/DataGridListOrganism.d.ts +4 -0
- package/dist/esm/organisms/DataGridListOrganism/DataGridListOrganism.js +2 -0
- package/dist/esm/organisms/DataGridListOrganism/DataGridListOrganism.js.map +1 -0
- package/dist/esm/organisms/DataGridListOrganism/DataGridListOrganism.stories.d.ts +7 -0
- package/dist/esm/organisms/DataGridListOrganism/config/descriptors.d.ts +479 -0
- package/dist/esm/organisms/DataGridListOrganism/config/descriptors.js +2 -0
- package/dist/esm/organisms/DataGridListOrganism/config/descriptors.js.map +1 -0
- package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/listItemMapping.d.ts +85 -0
- package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/listItemMapping.js +2 -0
- package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/listItemMapping.js.map +1 -0
- package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/listLayout.d.ts +29 -0
- package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/listLayout.js +2 -0
- package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/listLayout.js.map +1 -0
- package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/regions.d.ts +83 -0
- package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/regions.js +2 -0
- package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/regions.js.map +1 -0
- package/dist/esm/organisms/DataGridListOrganism/index.d.ts +3 -0
- package/dist/esm/organisms/DataGridListOrganism/types.d.ts +117 -0
- package/dist/esm/organisms/DataGridListOrganism/useDataGridListOrganism.d.ts +39 -0
- package/dist/esm/organisms/DataGridListOrganism/useDataGridListOrganism.js +2 -0
- package/dist/esm/organisms/DataGridListOrganism/useDataGridListOrganism.js.map +1 -0
- package/dist/esm/organisms/index.d.ts +2 -0
- package/dist/esm/organisms/organismConfigurators.d.ts +4 -2
- package/dist/esm/organisms/organismConfigurators.js +1 -1
- package/dist/esm/organisms/organismConfigurators.js.map +1 -1
- package/dist/index.d.ts +1321 -155
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as e from"react";import"../../../../prop-types/index.js";import{clsx as o}from"../../../../clsx/dist/clsx.mjs.js";import t from"../utils/isHostComponent.js";import{getPopoverUtilityClass as r}from"./popoverClasses.js";import n from"../utils/useSlot.js";import{jsx as s}from"react/jsx-runtime";import i from"../styles/styled.js";import p from"../Modal/Modal.js";import a from"../Paper/Paper.js";import{useDefaultProps as l}from"../DefaultPropsProvider/DefaultPropsProvider.js";import c from"
|
|
1
|
+
import*as e from"react";import"../../../../prop-types/index.js";import{clsx as o}from"../../../../clsx/dist/clsx.mjs.js";import t from"../utils/isHostComponent.js";import{getPopoverUtilityClass as r}from"./popoverClasses.js";import n from"../utils/useSlot.js";import{jsx as s}from"react/jsx-runtime";import i from"../styles/styled.js";import p from"../Modal/Modal.js";import a from"../Paper/Paper.js";import{useDefaultProps as l}from"../DefaultPropsProvider/DefaultPropsProvider.js";import c from"../../../utils/esm/ownerDocument/ownerDocument.js";import m from"../../../utils/esm/ownerWindow/ownerWindow.js";import u from"../Grow/Grow.js";import f from"../utils/mergeSlotProps.js";import h from"../../../utils/esm/refType/refType.js";import d from"../../../utils/esm/chainPropTypes/chainPropTypes.js";import x from"../../../utils/esm/HTMLElementType/HTMLElementType.js";import b from"../../../utils/esm/integerPropType/integerPropType.js";import y from"../../../utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js";import v from"../../../utils/esm/composeClasses/composeClasses.js";import{p as T}from"../../../../../_virtual/index5.js";import P from"../../../utils/esm/debounce/debounce.js";function g(e,o){let t=0;return"number"==typeof o?t=o:"center"===o?t=e.height/2:"bottom"===o&&(t=e.height),t}function E(e,o){let t=0;return"number"==typeof o?t=o:"center"===o?t=e.width/2:"right"===o&&(t=e.width),t}function j(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function O(e){return"function"==typeof e?e():e}const w=i(p,{name:"MuiPopover",slot:"Root"})({}),R=i(a,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),k=e.forwardRef(function(i,p){const a=l({props:i,name:"MuiPopover"}),{action:h,anchorEl:d,anchorOrigin:x={vertical:"top",horizontal:"left"},anchorPosition:b,anchorReference:y="anchorEl",children:T,className:k,container:C,elevation:M=8,marginThreshold:N=16,open:z,PaperProps:D={},slots:S={},slotProps:L={},transformOrigin:H={vertical:"top",horizontal:"left"},TransitionComponent:q,transitionDuration:I="auto",TransitionProps:V={},disableScrollLock:_=!1,...W}=a,B=e.useRef(),F={...a,anchorOrigin:x,anchorReference:y,elevation:M,marginThreshold:N,transformOrigin:H,TransitionComponent:q,transitionDuration:I,TransitionProps:V},U=(e=>{const{classes:o}=e;return v({root:["root"],paper:["paper"]},r,o)})(F),$=e.useCallback(()=>{if("anchorPosition"===y)return"production"!==process.env.NODE_ENV&&(b||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),b;const e=O(d),o=e&&1===e.nodeType?e:c(B.current).body,t=o.getBoundingClientRect();if("production"!==process.env.NODE_ENV){const e=o.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}return{top:t.top+g(t,x.vertical),left:t.left+E(t,x.horizontal)}},[d,x.horizontal,x.vertical,b,y]),A=e.useCallback(e=>({vertical:g(e,H.vertical),horizontal:E(e,H.horizontal)}),[H.horizontal,H.vertical]),G=e.useCallback(e=>{const o={width:e.offsetWidth,height:e.offsetHeight},t=A(o);if("none"===y)return{top:null,left:null,transformOrigin:j(t)};const r=$();let n=r.top-t.vertical,s=r.left-t.horizontal;const i=n+o.height,p=s+o.width,a=m(O(d)),l=a.innerHeight-N,c=a.innerWidth-N;if(null!==N&&n<N){const e=n-N;n-=e,t.vertical+=e}else if(null!==N&&i>l){const e=i-l;n-=e,t.vertical+=e}if("production"!==process.env.NODE_ENV&&o.height>l&&o.height&&l&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${o.height-l}px).`,"Please consider adding a `max-height` to improve the user-experience."].join("\n")),null!==N&&s<N){const e=s-N;s-=e,t.horizontal+=e}else if(p>c){const e=p-c;s-=e,t.horizontal+=e}return{top:`${Math.round(n)}px`,left:`${Math.round(s)}px`,transformOrigin:j(t)}},[d,y,$,A,N]),[Y,X]=e.useState(z),J=e.useCallback(()=>{const e=B.current;if(!e)return;const o=G(e);null!==o.top&&e.style.setProperty("top",o.top),null!==o.left&&(e.style.left=o.left),e.style.transformOrigin=o.transformOrigin,X(!0)},[G]);e.useEffect(()=>(_&&window.addEventListener("scroll",J),()=>window.removeEventListener("scroll",J)),[d,_,J]);e.useEffect(()=>{z&&J()}),e.useImperativeHandle(h,()=>z?{updatePosition:()=>{J()}}:null,[z,J]),e.useEffect(()=>{if(!z)return;const e=P(()=>{J()}),o=m(O(d));return o.addEventListener("resize",e),()=>{e.clear(),o.removeEventListener("resize",e)}},[d,z,J]);let K=I;const Q={slots:{transition:q,...S},slotProps:{transition:V,paper:D,...L}},[Z,ee]=n("transition",{elementType:u,externalForwardedProps:Q,ownerState:F,getSlotProps:e=>({...e,onEntering:(o,t)=>{e.onEntering?.(o,t),J()},onExited:o=>{e.onExited?.(o),X(!1)}}),additionalProps:{appear:!0,in:z}});"auto"!==I||Z.muiSupportAuto||(K=void 0);const oe=C||(d?c(O(d)).body:void 0),[te,{slots:re,slotProps:ne,...se}]=n("root",{ref:p,elementType:w,externalForwardedProps:{...Q,...W},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:S.backdrop},slotProps:{backdrop:f("function"==typeof L.backdrop?L.backdrop(F):L.backdrop,{invisible:!0})},container:oe,open:z},ownerState:F,className:o(U.root,k)}),[ie,pe]=n("paper",{ref:B,className:U.paper,elementType:R,externalForwardedProps:Q,shouldForwardComponentProp:!0,additionalProps:{elevation:M,style:Y?void 0:{opacity:0}},ownerState:F});return s(te,{...se,...!t(te)&&{slots:re,slotProps:ne,disableScrollLock:_},children:s(Z,{...ee,timeout:K,children:s(ie,{...pe,children:T})})})});"production"!==process.env.NODE_ENV&&(k.propTypes={action:h,anchorEl:d(T.exports.oneOfType([x,T.exports.func]),e=>{if(e.open&&(!e.anchorReference||"anchorEl"===e.anchorReference)){const o=O(e.anchorEl);if(!o||1!==o.nodeType)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${o}\` instead.`].join("\n"));{const e=o.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}}return null}),anchorOrigin:T.exports.shape({horizontal:T.exports.oneOfType([T.exports.oneOf(["center","left","right"]),T.exports.number]).isRequired,vertical:T.exports.oneOfType([T.exports.oneOf(["bottom","center","top"]),T.exports.number]).isRequired}),anchorPosition:T.exports.shape({left:T.exports.number.isRequired,top:T.exports.number.isRequired}),anchorReference:T.exports.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:T.exports.elementType,BackdropProps:T.exports.object,children:T.exports.node,classes:T.exports.object,className:T.exports.string,container:T.exports.oneOfType([x,T.exports.func]),disableScrollLock:T.exports.bool,elevation:b,marginThreshold:T.exports.number,onClose:T.exports.func,open:T.exports.bool.isRequired,PaperProps:T.exports.shape({component:y}),slotProps:T.exports.shape({backdrop:T.exports.oneOfType([T.exports.func,T.exports.object]),paper:T.exports.oneOfType([T.exports.func,T.exports.object]),root:T.exports.oneOfType([T.exports.func,T.exports.object]),transition:T.exports.oneOfType([T.exports.func,T.exports.object])}),slots:T.exports.shape({backdrop:T.exports.elementType,paper:T.exports.elementType,root:T.exports.elementType,transition:T.exports.elementType}),sx:T.exports.oneOfType([T.exports.arrayOf(T.exports.oneOfType([T.exports.func,T.exports.object,T.exports.bool])),T.exports.func,T.exports.object]),transformOrigin:T.exports.shape({horizontal:T.exports.oneOfType([T.exports.oneOf(["center","left","right"]),T.exports.number]).isRequired,vertical:T.exports.oneOfType([T.exports.oneOf(["bottom","center","top"]),T.exports.number]).isRequired}),TransitionComponent:T.exports.elementType,transitionDuration:T.exports.oneOfType([T.exports.oneOf(["auto"]),T.exports.number,T.exports.shape({appear:T.exports.number,enter:T.exports.number,exit:T.exports.number})]),TransitionProps:T.exports.object});var C=k;export{R as PopoverPaper,w as PopoverRoot,C as default,E as getOffsetLeft,g as getOffsetTop};
|
|
2
2
|
//# sourceMappingURL=Popover.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as e from"react";import"../../../../prop-types/index.js";import"../../../../react-transition-group/esm/CSSTransition.js";import"../../../../react-transition-group/esm/ReplaceTransition.js";import"../../../../react-transition-group/esm/SwitchTransition.js";import"../../../../react-transition-group/esm/TransitionGroup.js";import t from"../../../../react-transition-group/esm/Transition.js";import n from"../styles/useTheme.js";import{jsx as r}from"react/jsx-runtime";import{reflow as o,getTransitionProps as i}from"../transitions/utils.js";import s from"../../../utils/esm/getReactElementRef/getReactElementRef.js";import a from"../../../utils/esm/
|
|
1
|
+
import*as e from"react";import"../../../../prop-types/index.js";import"../../../../react-transition-group/esm/CSSTransition.js";import"../../../../react-transition-group/esm/ReplaceTransition.js";import"../../../../react-transition-group/esm/SwitchTransition.js";import"../../../../react-transition-group/esm/TransitionGroup.js";import t from"../../../../react-transition-group/esm/Transition.js";import n from"../styles/useTheme.js";import{jsx as r}from"react/jsx-runtime";import{reflow as o,getTransitionProps as i}from"../transitions/utils.js";import s from"../../../utils/esm/getReactElementRef/getReactElementRef.js";import a from"../../../utils/esm/debounce/debounce.js";import p from"../../../utils/esm/elementAcceptingRef/elementAcceptingRef.js";import l from"../../../utils/esm/chainPropTypes/chainPropTypes.js";import c from"../../../utils/esm/HTMLElementType/HTMLElementType.js";import m from"../../../utils/esm/useForkRef/useForkRef.js";import u from"../../../utils/esm/ownerWindow/ownerWindow.js";import{p as f}from"../../../../../_virtual/index5.js";function d(e){return"function"==typeof e?e():e}function x(e,t,n){const r=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=u(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const e=i.getComputedStyle(t);s=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let a=0,p=0;if(s&&"none"!==s&&"string"==typeof s){const e=s.split("(")[1].split(")")[0].split(",");a=parseInt(e[4],10),p=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+a-r.left}px)`:`translateX(${i.innerWidth+a-r.left}px)`:"right"===e?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:"up"===e?o?`translateY(${o.bottom+p-r.top}px)`:`translateY(${i.innerHeight+p-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-p}px)`:`translateY(-${r.top+r.height-p}px)`}(e,t,d(n));r&&(t.style.webkitTransform=r,t.style.transform=r)}const g=e.forwardRef(function(p,l){const c=n(),f={enter:c.transitions.easing.easeOut,exit:c.transitions.easing.sharp},d={enter:c.transitions.duration.enteringScreen,exit:c.transitions.duration.leavingScreen},{addEndListener:g,appear:E=!0,children:y,container:h,direction:T="down",easing:b=f,in:w,onEnter:j,onEntered:R,onEntering:v,onExit:k,onExited:C,onExiting:L,style:$,timeout:O=d,TransitionComponent:S=t,...M}=p,I=e.useRef(null),B=m(s(y),I,l),H=e=>t=>{e&&(void 0===t?e(I.current):e(I.current,t))},N=H((e,t)=>{x(T,e,h),o(e),j&&j(e,t)}),P=H((e,t)=>{const n=i({timeout:O,style:$,easing:b},{mode:"enter"});e.style.webkitTransition=c.transitions.create("-webkit-transform",{...n}),e.style.transition=c.transitions.create("transform",{...n}),e.style.webkitTransform="none",e.style.transform="none",v&&v(e,t)}),V=H(R),X=H(L),Y=H(e=>{const t=i({timeout:O,style:$,easing:b},{mode:"exit"});e.style.webkitTransition=c.transitions.create("-webkit-transform",t),e.style.transition=c.transitions.create("transform",t),x(T,e,h),k&&k(e)}),W=H(e=>{e.style.webkitTransition="",e.style.transition="",C&&C(e)}),_=e.useCallback(()=>{I.current&&x(T,I.current,h)},[T,h]);return e.useEffect(()=>{if(w||"down"===T||"right"===T)return;const e=a(()=>{I.current&&x(T,I.current,h)}),t=u(I.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[T,w,h]),e.useEffect(()=>{w||_()},[w,_]),r(S,{nodeRef:I,onEnter:N,onEntered:V,onEntering:P,onExit:Y,onExited:W,onExiting:X,addEndListener:e=>{g&&g(I.current,e)},appear:E,in:w,timeout:O,...M,children:(t,{ownerState:n,...r})=>e.cloneElement(y,{ref:B,style:{visibility:"exited"!==t||w?void 0:"hidden",...$,...y.props.style},...r})})});"production"!==process.env.NODE_ENV&&(g.propTypes={addEndListener:f.exports.func,appear:f.exports.bool,children:p.isRequired,container:l(f.exports.oneOfType([c,f.exports.func]),e=>{if(e.open){const t=d(e.container);if(t&&1===t.nodeType){const e=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom)return new Error(["MUI: The `container` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}else if(!t||"function"!=typeof t.getBoundingClientRect||null!=t.contextElement&&1!==t.contextElement.nodeType)return new Error(["MUI: The `container` prop provided to the component is invalid.","It should be an HTML element instance."].join("\n"))}return null}),direction:f.exports.oneOf(["down","left","right","up"]),easing:f.exports.oneOfType([f.exports.shape({enter:f.exports.string,exit:f.exports.string}),f.exports.string]),in:f.exports.bool,onEnter:f.exports.func,onEntered:f.exports.func,onEntering:f.exports.func,onExit:f.exports.func,onExited:f.exports.func,onExiting:f.exports.func,style:f.exports.object,timeout:f.exports.oneOfType([f.exports.number,f.exports.shape({appear:f.exports.number,enter:f.exports.number,exit:f.exports.number})])});var E=g;export{E as default,x as setTranslateValue};
|
|
2
2
|
//# sourceMappingURL=Slide.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{toDate as t}from"./toDate.mjs.js";function e(e,s){const r=t(e.start),o=t(e.end);let n=+r>+o;const u=n?+r:+o,a=n?o:r;a.setHours(0,0,0,0);let f=s?.step??1;if(!f)return[];f<0&&(f=-f,n=!n);const c=[];for(;+a<=u;)c.push(t(a)),a.setDate(a.getDate()+f),a.setHours(0,0,0,0);return n?c.reverse():c}export{e as default,e as eachDayOfInterval};
|
|
2
|
+
//# sourceMappingURL=eachDayOfInterval.mjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eachDayOfInterval.mjs.js","sources":["../../../../node_modules/date-fns/eachDayOfInterval.mjs"],"sourcesContent":["import { toDate } from \"./toDate.mjs\";\n\n/**\n * The {@link eachDayOfInterval} function options.\n */\n\n/**\n * @name eachDayOfInterval\n * @category Interval Helpers\n * @summary Return the array of dates within the specified time interval.\n *\n * @description\n * Return the array of dates within the specified time interval.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param interval - The interval.\n * @param options - An object with options.\n *\n * @returns The array with starts of days from the day of the interval start to the day of the interval end\n *\n * @example\n * // Each day between 6 October 2014 and 10 October 2014:\n * const result = eachDayOfInterval({\n * start: new Date(2014, 9, 6),\n * end: new Date(2014, 9, 10)\n * })\n * //=> [\n * // Mon Oct 06 2014 00:00:00,\n * // Tue Oct 07 2014 00:00:00,\n * // Wed Oct 08 2014 00:00:00,\n * // Thu Oct 09 2014 00:00:00,\n * // Fri Oct 10 2014 00:00:00\n * // ]\n */\nexport function eachDayOfInterval(interval, options) {\n const startDate = toDate(interval.start);\n const endDate = toDate(interval.end);\n\n let reversed = +startDate > +endDate;\n const endTime = reversed ? +startDate : +endDate;\n const currentDate = reversed ? endDate : startDate;\n currentDate.setHours(0, 0, 0, 0);\n\n let step = options?.step ?? 1;\n if (!step) return [];\n if (step < 0) {\n step = -step;\n reversed = !reversed;\n }\n\n const dates = [];\n\n while (+currentDate <= endTime) {\n dates.push(toDate(currentDate));\n currentDate.setDate(currentDate.getDate() + step);\n currentDate.setHours(0, 0, 0, 0);\n }\n\n return reversed ? dates.reverse() : dates;\n}\n\n// Fallback for modularized imports:\nexport default eachDayOfInterval;\n"],"names":["eachDayOfInterval","interval","options","startDate","toDate","start","endDate","end","reversed","endTime","currentDate","setHours","step","dates","push","setDate","getDate","reverse"],"mappings":"yCAmCO,SAASA,EAAkBC,EAAUC,GAC1C,MAAMC,EAAYC,EAAOH,EAASI,OAC5BC,EAAUF,EAAOH,EAASM,KAEhC,IAAIC,GAAYL,GAAaG,EAC7B,MAAMG,EAAUD,GAAYL,GAAaG,EACnCI,EAAcF,EAAWF,EAAUH,EACzCO,EAAYC,SAAS,EAAG,EAAG,EAAG,GAE9B,IAAIC,EAAOV,GAASU,MAAQ,EAC5B,IAAKA,EAAM,MAAO,GACdA,EAAO,IACTA,GAAQA,EACRJ,GAAYA,GAGd,MAAMK,EAAQ,GAEd,MAAQH,GAAeD,GACrBI,EAAMC,KAAKV,EAAOM,IAClBA,EAAYK,QAAQL,EAAYM,UAAYJ,GAC5CF,EAAYC,SAAS,EAAG,EAAG,EAAG,GAGhC,OAAOH,EAAWK,EAAMI,UAAYJ,CACtC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as o}from"../../node_modules/tslib/tslib.es6.js";import{jsx as e,Fragment as r,jsxs as i}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{IconRenderer as l}from"../../molecules/Icon/IconRenderer.js";import{memo as n,useState as a}from"react";import"../../setup/muiXLicense.js";import{useCalendarDataGridOrganism as d}from"./useCalendarDataGridOrganism.js";import t from"../../node_modules/@mui/material/esm/Typography/Typography.js";import u from"../../node_modules/@mui/material/esm/Box/Box.js";import s from"../../node_modules/@mui/material/esm/ToggleButtonGroup/ToggleButtonGroup.js";import p from"../../node_modules/@mui/material/esm/ToggleButton/ToggleButton.js";import c from"../../node_modules/@mui/material/esm/Button/Button.js";import g from"../../node_modules/@mui/material/esm/IconButton/IconButton.js";import v from"../../node_modules/@mui/material/esm/TextField/TextField.js";import m from"../../node_modules/@mui/material/esm/InputAdornment/InputAdornment.js";import x from"../../node_modules/@mui/material/esm/Popover/Popover.js";import{DataGridPro as h}from"../../node_modules/@mui/x-data-grid-pro/esm/DataGridPro/DataGridPro.js";var b=n(function(n){var b,F,C,f,y,k,w,S,M,T,E,B,A,z,D,R,G,j,I,H,_,N,O,P,W,q,J,L,X,Y,K,Q,U,V,Z,$,oo,eo,ro,io,lo,no,ao,to,uo,so,po,co,go,vo,mo,xo,ho,bo,Fo,Co,fo,yo,ko,wo,So,Mo=n.organism,To=n.onAction;n.emptyState;var Eo=n.errorState,Bo=d({organism:Mo,onAction:To}),Ao=Bo.rows,zo=Bo.total,Do=Bo.isLoading,Ro=Bo.error,Go=Bo.page,jo=Bo.pageSize,Io=Bo.search,Ho=Bo.quickFilters,_o=Bo.density,No=Bo.showSearch,Oo=Bo.filterModel,Po=Bo.densityToggle,Wo=Bo.quickFiltersCfg,qo=Bo.showSearchControl,Jo=Bo.showExport,Lo=Bo.columnsKey,Xo=Bo.apiRef,Yo=Bo.columns,Ko=Bo.columnGroupingModel,Qo=Bo.monthLabel,Uo=Bo.getCellClassName,Vo=Bo.pinnedTop,Zo=Bo.setPage,$o=Bo.setPageSize,oe=Bo.setSearch,ee=Bo.setQuickFilter,re=Bo.setDensity,ie=Bo.setShowSearch,le=Bo.goPrevMonth,ne=Bo.goNextMonth,ae=Bo.goToday,de=Bo.goToMonth,te=Bo.currentMonth,ue=l,se=(null==Mo?void 0:Mo.config)||{},pe=null!==(f=null===(C=null===(F=null===(b=null==se?void 0:se.props)||void 0===b?void 0:b.toolbarContainer)||void 0===F?void 0:F.sx)||void 0===C?void 0:C.controlHeight)&&void 0!==f?f:44,ce=null!==(S=null===(w=null===(k=null===(y=null==se?void 0:se.props)||void 0===y?void 0:y.toolbarContainer)||void 0===k?void 0:k.sx)||void 0===w?void 0:w.searchWidth)&&void 0!==S?S:360,ge=null!==(B=null===(E=null===(T=null===(M=null==se?void 0:se.props)||void 0===M?void 0:M.toolbarContainer)||void 0===T?void 0:T.sx)||void 0===E?void 0:E.marginTop)&&void 0!==B?B:1,ve=null!==(R=null===(D=null===(z=null===(A=null==se?void 0:se.props)||void 0===A?void 0:A.toolbarContainer)||void 0===z?void 0:z.sx)||void 0===D?void 0:D.columnGap)&&void 0!==R?R:1,me=(null===(j=null===(G=null==se?void 0:se.props)||void 0===G?void 0:G.toolbarContainer)||void 0===j?void 0:j.sx)||{},xe=(null===(H=null===(I=null==se?void 0:se.props)||void 0===I?void 0:I.quickFiltersGroup)||void 0===H?void 0:H.sx)||{},he=(null===(N=null===(_=null==se?void 0:se.props)||void 0===_?void 0:_.exportButton)||void 0===N?void 0:N.sx)||{},be=(null===(P=null===(O=null==se?void 0:se.props)||void 0===O?void 0:O.densityToggleContainer)||void 0===P?void 0:P.sx)||{},Fe=(null===(q=null===(W=null==se?void 0:se.props)||void 0===W?void 0:W.dataGridWrapper)||void 0===q?void 0:q.sx)||{},Ce=(null===(J=null==se?void 0:se.toolbar)||void 0===J?void 0:J.searchControl)||{},fe=Yo.map(function(e){return o(o({},e),{resizable:!1})}),ye=a(!1),ke=ye[0],we=ye[1],Se=a(null),Me=Se[0],Te=Se[1],Ee={textTransform:"none",height:pe,lineHeight:1.2,borderRadius:2,px:1.75,py:0,background:"#FFFFFF",border:"1px solid #E2E4EA",boxShadow:"0 2px 6px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04)","&:hover":{background:"#FFFFFF",borderColor:"#D7DAE2",boxShadow:"0 3px 8px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05)"}},Be={lineHeight:0,p:0,width:pe,height:pe,borderRadius:2,background:"#FFFFFF",border:"1px solid #E2E4EA",boxShadow:"0 2px 6px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04)","&:hover":{background:"#FFFFFF",borderColor:"#D7DAE2",boxShadow:"0 3px 8px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05)"}};return Ro?e(r,{children:Eo?Eo(Ro):e(t,o({color:"error"},{children:Ro.message}))}):i(u,{children:[i(u,o({sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:1}},{children:[e(t,o({variant:"h6",sx:{fontWeight:700}},{children:(null==Mo?void 0:Mo.name)||"Time Off Calendar"})),Po&&e(u,o({sx:{background:null!==(L=be.backgroundColor)&&void 0!==L?L:"#F7F5FF",borderRadius:null!==(X=be.borderRadius)&&void 0!==X?X:3,px:1,py:.5,display:"inline-flex",alignItems:"center"}},{children:i(s,o({size:"small",exclusive:!0,value:_o,onChange:function(o,e){e&&re(e)},"aria-label":"table-density",sx:{"& .MuiToggleButton-root":{textTransform:"none",height:pe,px:2,py:0,fontSize:14,lineHeight:1.2,borderRadius:"".concat(null!==(Y=be.borderRadius)&&void 0!==Y?Y:10,"px"),border:"none",color:"#6B7280",background:"transparent"},"& .MuiToggleButton-root + .MuiToggleButton-root":{ml:1},"& .MuiToggleButton-root.Mui-selected":{fontWeight:700,color:null!==(K=be.selectedTextColor)&&void 0!==K?K:"#3F3F46",background:null!==(Q=be.selectedBackgroundColor)&&void 0!==Q?Q:"#FFFFFF",border:"1px solid #E2E4EA",boxShadow:"0 2px 6px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06)"}}},{children:[e(p,o({value:"compact","aria-label":"Compact"},{children:"Compact"})),e(p,o({value:"comfortable","aria-label":"Comfortable"},{children:"Comfortable"}))]}))}))]})),i(u,o({sx:{display:"grid",gridTemplateColumns:"auto 1fr auto",alignItems:"center",mt:ge,columnGap:ve}},{children:[e(u,o({sx:{minWidth:0,overflowX:"auto",pr:1,flexShrink:0}},{children:Wo.length>0&&e(u,o({sx:{display:"inline-flex",alignItems:"center",gap:"".concat(null!==(U=xe.chipGap)&&void 0!==U?U:8,"px"),px:"6px",py:"4px",borderRadius:"8px",background:"#FAFAFF",whiteSpace:"nowrap"}},{children:Wo.map(function(r){var l,n,a,d,t=Ho[r.columnField],u=Array.isArray(t)?t.includes(r.value):t===r.value,s=""===r.value,p=s&&(void 0===t||Array.isArray(t)&&0===t.length),c=(null==r?void 0:r.color)||xe.chipBackgroundColor,g=xe.selectedChipColor||c;return i("button",o({"aria-label":r.label,"aria-pressed":s?p:u,onClick:function(){return ee(r.columnField,r.value)},style:{height:pe,padding:s?"0 14px":"0 12px",border:s||u||p?"1px solid ".concat(null!==(n=null!==(l=xe.chipBorderColor)&&void 0!==l?l:c)&&void 0!==n?n:"#E2E4EA"):"none",borderRadius:null!==(a=xe.chipBorderRadius)&&void 0!==a?a:10,background:s||u||p?u||p?null!=g?g:"#FFFFFF":null!=c?c:"#FFFFFF":"transparent",boxShadow:s&&p||!s&&u?"0 1px 2px rgba(0,0,0,0.06)":void 0,color:u?"#111827":null!==(d=xe.chipTextColor)&&void 0!==d?d:"#6B7280",fontWeight:u||s&&p?700:500,fontSize:13,cursor:"pointer",transition:"transform 80ms ease, box-shadow 120ms ease",display:"inline-flex",alignItems:"center",gap:8},onMouseDown:function(o){var e=o.currentTarget;e.style.transform="translateY(1px)",e.style.boxShadow=s?"0 0 0 rgba(0,0,0,0.0)":e.style.boxShadow},onMouseUp:function(o){o.currentTarget.style.transform="translateY(0)"}},{children:[e(ue,{iconName:"check",size:16}),r.label]}),r.label)})}))})),e(u,o({sx:{display:"flex",alignItems:"center",justifyContent:"center"}},{children:i(u,o({sx:{display:"inline-flex",alignItems:"center",gap:1,px:1}},{children:[e(c,o({"aria-label":"today",size:"small",variant:"text",onClick:ae,sx:Ee},{children:"Today"})),e(g,o({"aria-label":"prev-month",size:"small",onClick:le,sx:Be},{children:e(ue,{iconName:"chevron-left",size:16})})),e(c,o({"aria-label":"open-month-picker",size:"small",variant:"text",onClick:function(o){Te(o.currentTarget),we(!0)},sx:Ee},{children:e(t,o({variant:"body2",sx:{fontWeight:600}},{children:Qo.split(" ")[0]}))})),e(g,o({"aria-label":"next-month",size:"small",onClick:ne,sx:Be},{children:e(ue,{iconName:"chevron-right",size:16})}))]}))})),i(u,o({sx:{display:"inline-flex",alignItems:"center",gap:null!==(V=me.gap)&&void 0!==V?V:1.5,flexShrink:0,justifySelf:"end",background:me.backgroundColor,border:me.borderColor?"1px solid ".concat(me.borderColor):void 0,borderRadius:me.borderRadius}},{children:[qo&&e(u,o({sx:{width:No||Boolean(Io)?"".concat(ce,"px"):"".concat(pe,"px"),transition:"width 250ms ease"}},{children:No||Boolean(Io)?e(v,{"aria-label":"grid-search",size:"small",value:Io,autoFocus:Boolean(Ce.autoFocus),onBlur:function(){Io||ie(!1)},onChange:function(o){return oe(o.target.value)},placeholder:Ce.placeholder||"Search",fullWidth:!0,sx:{"& .MuiInputBase-root":{height:"".concat(pe,"px"),borderRadius:Ce.borderRadius,background:Ce.backgroundColor},"& .MuiOutlinedInput-notchedOutline":{borderColor:Ce.borderColor},"& .MuiOutlinedInput-input":{py:0},"& .MuiInputAdornment-root svg":{transform:"translate(1px, 0.5px)"}},InputProps:{startAdornment:e(m,o({position:"start"},{children:e(ue,{iconName:"search",size:16})}))}}):e(u,o({sx:{width:pe,height:pe}},{children:e(g,o({"aria-label":"open-search",size:"small",onClick:function(){return ie(!0)},sx:{display:"grid",placeItems:"center",lineHeight:0,p:0,width:"100%",height:"100%",borderRadius:2,background:null!==(Z=Ce.backgroundColor)&&void 0!==Z?Z:"#FFFFFF",border:"1px solid ".concat(null!==($=Ce.borderColor)&&void 0!==$?$:"#E2E4EA"),boxShadow:"0 2px 6px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04)",color:"#6C4CF5","& svg":{display:"block",margin:0,transform:"translate(1px, 0.5px)"},"&:hover":{background:null!==(oo=Ce.backgroundColor)&&void 0!==oo?oo:"#FFFFFF",borderColor:null!==(eo=Ce.borderColor)&&void 0!==eo?eo:"#D7DAE2",boxShadow:"0 3px 8px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05)"}}},{children:e(ue,{iconName:"search",size:20})}))}))})),Jo&&e(g,o({"aria-label":"export-csv",size:"small",onClick:function(){var o,e;return null===(e=null===(o=Xo.current)||void 0===o?void 0:o.exportDataAsCsv)||void 0===e?void 0:e.call(o)},sx:{display:"flex",alignItems:"center",justifyContent:"center",lineHeight:0,p:0,width:pe,height:pe,borderRadius:null!==(ro=he.borderRadius)&&void 0!==ro?ro:2,background:null!==(io=he.backgroundColor)&&void 0!==io?io:"#FFFFFF",border:"1px solid ".concat(null!==(lo=he.borderColor)&&void 0!==lo?lo:"#E2E4EA"),boxShadow:"0 2px 6px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04)",color:null!==(no=he.iconColor)&&void 0!==no?no:"#6C4CF5","& svg":{display:"block"},"&:hover":{background:null!==(ao=he.backgroundColor)&&void 0!==ao?ao:"#FFFFFF",borderColor:null!==(to=he.borderColor)&&void 0!==to?to:"#D7DAE2",boxShadow:"0 3px 8px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05)"}}},{children:e(ue,{iconName:"download",size:20})}))]}))]})),i(x,o({open:ke,anchorEl:Me,onClose:function(){return we(!1)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},{children:[e(u,o({sx:{p:2,pb:0}},{children:e(t,o({variant:"h6",sx:{fontWeight:700,mb:1}},{children:Qo}))})),e(u,o({sx:{p:1,pt:.5,display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:.5}},{children:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"].map(function(r,i){return e("button",o({style:{padding:"8px 10px",borderRadius:10,border:"1px solid #E2E4EA",background:i===te.getMonth()?"#F3F0FF":"#FFFFFF",cursor:"pointer"},"aria-current":i===te.getMonth()?"date":void 0,onClick:function(){var o=new Date(te);o.setMonth(i),de(o),we(!1)}},{children:e("span",o({style:{fontWeight:i===te.getMonth()?700:500,color:i===te.getMonth()?"#6C4CF5":"#3F3F46"}},{children:r}))}),r)})}))]})),e(u,o({mt:2,sx:{background:Fe.backgroundColor,border:Fe.borderColor?"1px solid ".concat(Fe.borderColor):void 0,borderRadius:Fe.borderRadius,px:Fe.paddingX,py:Fe.paddingY,boxShadow:"number"==typeof Fe.elevation&&Fe.elevation>0?"0 2px 6px rgba(0,0,0,0.06)":void 0}},{children:e(h,{apiRef:Xo,rows:Ao.map(function(e,r){var i;return o({id:null!==(i=e.id)&&void 0!==i?i:"".concat(r)},e)}),columns:fe,filterModel:Oo,columnGroupingModel:Ko,getCellClassName:Uo,pinnedRows:{top:Vo},pinnedColumns:{left:["name"]},pagination:!0,paginationModel:{page:Go,pageSize:jo},onPaginationModelChange:function(o){Zo(o.page),$o(o.pageSize)},density:"standard",loading:Do,rowCount:zo,paginationMode:"client",disableRowSelectionOnClick:!0,autoHeight:!0,rowHeight:null!==(co=null===(po=null===(so=null===(uo=null==se?void 0:se.props)||void 0===uo?void 0:uo.dataGrid)||void 0===so?void 0:so.sx)||void 0===po?void 0:po.rowHeight)&&void 0!==co?co:36,disableColumnMenu:!0,disableColumnSelector:!0,isCellEditable:function(){return!1},checkboxSelection:!1,sx:{minHeight:320,background:null===(mo=null===(vo=null===(go=null==se?void 0:se.props)||void 0===go?void 0:go.dataGrid)||void 0===vo?void 0:vo.sx)||void 0===mo?void 0:mo.backgroundColor,"& .MuiDataGrid-columnHeaders":{background:null===(bo=null===(ho=null===(xo=null==se?void 0:se.props)||void 0===xo?void 0:xo.dataGrid)||void 0===ho?void 0:ho.sx)||void 0===bo?void 0:bo.headerBackgroundColor,"& .MuiDataGrid-columnHeaderTitle":{fontSize:null===(fo=null===(Co=null===(Fo=null==se?void 0:se.props)||void 0===Fo?void 0:Fo.dataGrid)||void 0===Co?void 0:Co.sx)||void 0===fo?void 0:fo.headerFontSize}},"& .MuiDataGrid-cell":{py:0,px:0},"& .CalDg--dayCell":{padding:0},"& .MuiDataGrid-row:hover":{background:null!==(So=null===(wo=null===(ko=null===(yo=null==se?void 0:se.props)||void 0===yo?void 0:yo.dataGrid)||void 0===ko?void 0:ko.sx)||void 0===wo?void 0:wo.rowHoverColor)&&void 0!==So?So:"rgba(0,0,0,0.03)"},"& .CalDg--today":{background:"rgba(108, 76, 245, 0.06)"},"& .MuiDataGrid-cell:focus, & .MuiDataGrid-cell:focus-within":{outline:"none"}},slotProps:{loadingOverlay:{variant:"linear-progress",noRowsVariant:"skeleton"}}},Lo)}))]})});b.displayName="CalendarDataGridOrganism";export{b as CalendarDataGridOrganism};
|
|
2
|
+
//# sourceMappingURL=CalendarDataGridOrganism.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalendarDataGridOrganism.js","sources":["../../../../../src/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.tsx"],"sourcesContent":[null],"names":["CalendarDataGridOrganism","memo","_a","organism","onAction","emptyState","errorState","_38","useCalendarDataGridOrganism","rows","total","isLoading","error","page","pageSize","search","quickFilters","density","showSearch","filterModel","densityToggle","quickFiltersCfg","showSearchControl","showExport","columnsKey","apiRef","columns","columnGroupingModel","monthLabel","getCellClassName","pinnedTop","setPage","setPageSize","setSearch","setQuickFilter","setDensity","setShowSearch","goPrevMonth","goNextMonth","goToday","goToMonth","currentMonth","Icon","IconRenderer","cfgRoot","config","CONTROL_HEIGHT","_e","_d","_b","props","toolbarContainer","_c","sx","controlHeight","SEARCH_WIDTH","_j","_h","_f","_g","searchWidth","TOOLBAR_MT","_o","_m","_k","_l","marginTop","TOOLBAR_COLUMN_GAP","_s","_r","_p","_q","columnGap","toolbarStyles","_t","quickFiltersStyles","_v","quickFiltersGroup","exportBtnStyles","_x","exportButton","densityStyles","_z","densityToggleContainer","wrapperStyles","_1","dataGridWrapper","searchControlCfg","_3","toolbar","searchControl","columnsLocal","map","c","resizable","_39","useState","monthPickerOpen","setMonthPickerOpen","_40","anchorEl","setAnchorEl","PILL_BTN_SX","textTransform","height","lineHeight","borderRadius","px","py","background","border","boxShadow","borderColor","ICON_PILL_SX","p","width","_jsx","_Fragment","children","Typography","__assign","color","message","_jsxs","Box","display","alignItems","justifyContent","mt","variant","fontWeight","name","_4","backgroundColor","_5","ToggleButtonGroup","size","exclusive","value","onChange","_","v","fontSize","_6","ml","_7","selectedTextColor","_8","selectedBackgroundColor","ToggleButton","gridTemplateColumns","minWidth","overflowX","pr","flexShrink","length","gap","_9","chipGap","whiteSpace","q","current","columnField","active","Array","isArray","includes","isAll","allActive","undefined","baseColor","chipBackgroundColor","selectedColor","selectedChipColor","label","onClick","style","padding","concat","chipBorderColor","chipBorderRadius","chipTextColor","cursor","transition","onMouseDown","e","target","currentTarget","transform","onMouseUp","iconName","Button","IconButton","split","_10","justifySelf","Boolean","TextField","autoFocus","onBlur","placeholder","fullWidth","InputProps","startAdornment","InputAdornment","position","placeItems","_11","_12","margin","_13","_14","exportDataAsCsv","_15","_16","_17","_18","iconColor","_19","_20","Popover","open","onClose","anchorOrigin","vertical","horizontal","transformOrigin","pb","mb","pt","m","idx","getMonth","d","Date","setMonth","paddingX","paddingY","elevation","DataGridPro","r","i","id","pinnedRows","top","pinnedColumns","left","pagination","paginationModel","onPaginationModelChange","loading","rowCount","paginationMode","disableRowSelectionOnClick","autoHeight","rowHeight","_24","_23","_22","dataGrid","disableColumnMenu","disableColumnSelector","isCellEditable","checkboxSelection","minHeight","_27","_26","_25","_30","_29","_28","headerBackgroundColor","_32","_31","_33","headerFontSize","_36","_35","_34","rowHoverColor","_37","outline","slotProps","loadingOverlay","noRowsVariant","displayName"],"mappings":"0rCASa,IAAAA,EAA2BC,EAAoC,SAACC,0JAAEC,GAAQD,EAAAC,SAAEC,GAAQF,EAAAE,SAAYF,EAAAG,eAAEC,GAAUJ,EAAAI,WAC/GC,GAkCFC,EAA4B,CAAEL,YAAUC,SAAQA,KAjChDK,GAAIF,GAAAE,KACJC,GAAKH,GAAAG,MACLC,gBACAC,GAAKL,GAAAK,MACLC,GAAIN,GAAAM,KACJC,GAAQP,GAAAO,SACRC,GAAMR,GAAAQ,OACNC,GAAYT,GAAAS,aACZC,GAAOV,GAAAU,QACPC,iBACAC,GAAWZ,GAAAY,YACXC,GAAab,GAAAa,cACbC,GAAed,GAAAc,gBACfC,GAAiBf,GAAAe,kBACjBC,iBACAC,GAAUjB,GAAAiB,WACVC,GAAMlB,GAAAkB,OACNC,GAAOnB,GAAAmB,QACPC,GAAmBpB,GAAAoB,oBACnBC,GAAUrB,GAAAqB,WACVC,GAAgBtB,GAAAsB,iBAChBC,gBACAC,GAAOxB,GAAAwB,QACPC,GAAWzB,GAAAyB,YACXC,GAAS1B,GAAA0B,UACTC,GAAc3B,GAAA2B,eACdC,GAAU5B,GAAA4B,WACVC,GAAa7B,GAAA6B,cACbC,kBACAC,GAAW/B,GAAA+B,Y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BAAI0N,sBAC1C,mCAAoC,CAAEjI,SAAsC,mBAA5BkI,GAAgB,QAAhBC,GAAArO,gBAAAA,GAASM,aAAO,IAAA+N,QAAA,EAAAA,GAAAd,iCAAU9M,UAAE,IAAA6N,QAAA,EAAAA,GAAEC,iBAElF,sBAAuB,CAAEvK,GAAI,EAAGD,GAAI,GACpC,oBAAqB,CAAEsE,QAAS,GAChC,2BAA4B,CAAEpE,WAA2D,WAAjB,QAA9BuK,GAAwB,QAAxBC,GAAc,QAAdC,GAAA1O,gBAAAA,GAASM,aAAK,IAAAoO,QAAA,EAAAA,GAAEnB,gBAAQ,IAAAkB,QAAA,EAAAA,GAAEhO,UAAI,IAAA+N,QAAA,EAAAA,GAAAG,qBAAiB,IAAAC,GAAAA,GAAA,oBACzF,kBAAmB,CAAE3K,WAAY,4BACjC,8DAA+D,CAAE4K,QAAS,SAE9EC,UAAW,CAAEC,eAAgB,CAAE1J,QAAS,kBAAmB2J,cAAe,cApCrEpQ,SAyCzB,GAEAxB,EAAyB6R,YAAc"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
2
|
+
import { CalendarDataGridOrganism } from './CalendarDataGridOrganism';
|
|
3
|
+
declare const meta: Meta<typeof CalendarDataGridOrganism>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Basic: StoryFn<typeof CalendarDataGridOrganism>;
|
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
export declare const calendarDataGridConfiguratorDescriptor: {
|
|
2
|
+
readonly component: "CalendarDataGridOrganism";
|
|
3
|
+
readonly version: "1.0.0";
|
|
4
|
+
readonly toolGroups: readonly [{
|
|
5
|
+
readonly id: "eventBindings";
|
|
6
|
+
readonly tool: "calendarDataRetrieval";
|
|
7
|
+
readonly titleKey: "config.calendar.group.eventBindings";
|
|
8
|
+
readonly collapsible: true;
|
|
9
|
+
readonly initiallyExpanded: true;
|
|
10
|
+
readonly pathBase: "dataRetrievalConfig.bindings.event";
|
|
11
|
+
readonly toolConfig: {
|
|
12
|
+
readonly targets: readonly [{
|
|
13
|
+
readonly captureName: "id";
|
|
14
|
+
readonly labelKey: "config.calendar.bindings.event.id";
|
|
15
|
+
}, {
|
|
16
|
+
readonly captureName: "title";
|
|
17
|
+
readonly labelKey: "config.calendar.bindings.event.title";
|
|
18
|
+
}, {
|
|
19
|
+
readonly captureName: "description";
|
|
20
|
+
readonly labelKey: "config.calendar.bindings.event.description";
|
|
21
|
+
}, {
|
|
22
|
+
readonly captureName: "startDate";
|
|
23
|
+
readonly labelKey: "config.calendar.bindings.event.startDate";
|
|
24
|
+
}, {
|
|
25
|
+
readonly captureName: "endDate";
|
|
26
|
+
readonly labelKey: "config.calendar.bindings.event.endDate";
|
|
27
|
+
}, {
|
|
28
|
+
readonly captureName: "startTime";
|
|
29
|
+
readonly labelKey: "config.calendar.bindings.event.startTime";
|
|
30
|
+
}, {
|
|
31
|
+
readonly captureName: "endTime";
|
|
32
|
+
readonly labelKey: "config.calendar.bindings.event.endTime";
|
|
33
|
+
}, {
|
|
34
|
+
readonly captureName: "status";
|
|
35
|
+
readonly labelKey: "config.calendar.bindings.event.status";
|
|
36
|
+
}, {
|
|
37
|
+
readonly captureName: "eventType";
|
|
38
|
+
readonly labelKey: "config.calendar.bindings.event.eventType";
|
|
39
|
+
}, {
|
|
40
|
+
readonly captureName: "resourceId";
|
|
41
|
+
readonly labelKey: "config.calendar.bindings.event.resourceId";
|
|
42
|
+
}, {
|
|
43
|
+
readonly captureName: "resourceName";
|
|
44
|
+
readonly labelKey: "config.calendar.bindings.event.resourceName";
|
|
45
|
+
}, {
|
|
46
|
+
readonly captureName: "visibility";
|
|
47
|
+
readonly labelKey: "config.calendar.bindings.event.visibility";
|
|
48
|
+
}, {
|
|
49
|
+
readonly captureName: "color";
|
|
50
|
+
readonly labelKey: "config.calendar.bindings.event.color";
|
|
51
|
+
}, {
|
|
52
|
+
readonly captureName: "isRepeating";
|
|
53
|
+
readonly labelKey: "config.calendar.bindings.event.isRepeating";
|
|
54
|
+
}, {
|
|
55
|
+
readonly captureName: "isRepeatingInterval";
|
|
56
|
+
readonly labelKey: "config.calendar.bindings.event.isRepeatingInterval";
|
|
57
|
+
}, {
|
|
58
|
+
readonly captureName: "isRepeatingExcludedDates";
|
|
59
|
+
readonly labelKey: "config.calendar.bindings.event.isRepeatingExcludedDates";
|
|
60
|
+
}, {
|
|
61
|
+
readonly captureName: "associatedEntityType";
|
|
62
|
+
readonly labelKey: "config.calendar.bindings.event.associatedEntityType";
|
|
63
|
+
}, {
|
|
64
|
+
readonly captureName: "associatedEntityId";
|
|
65
|
+
readonly labelKey: "config.calendar.bindings.event.associatedEntityId";
|
|
66
|
+
}, {
|
|
67
|
+
readonly captureName: "conferencingLink";
|
|
68
|
+
readonly labelKey: "config.calendar.bindings.event.conferencingLink";
|
|
69
|
+
}, {
|
|
70
|
+
readonly captureName: "meta[$index].token";
|
|
71
|
+
readonly labelKey: "config.calendar.bindings.event.meta.token";
|
|
72
|
+
}, {
|
|
73
|
+
readonly captureName: "meta[$index].dataFieldId";
|
|
74
|
+
readonly labelKey: "config.calendar.bindings.event.meta.fieldId";
|
|
75
|
+
}];
|
|
76
|
+
};
|
|
77
|
+
}, {
|
|
78
|
+
readonly id: "resourceBindings";
|
|
79
|
+
readonly tool: "calendarDataRetrieval";
|
|
80
|
+
readonly titleKey: "config.calendar.group.resourceBindings";
|
|
81
|
+
readonly collapsible: true;
|
|
82
|
+
readonly initiallyExpanded: false;
|
|
83
|
+
readonly pathBase: "dataRetrievalConfig.bindings.resource";
|
|
84
|
+
readonly toolConfig: {
|
|
85
|
+
readonly targets: readonly [{
|
|
86
|
+
readonly captureName: "id";
|
|
87
|
+
readonly labelKey: "config.calendar.bindings.resource.id";
|
|
88
|
+
}, {
|
|
89
|
+
readonly captureName: "name";
|
|
90
|
+
readonly labelKey: "config.calendar.bindings.resource.name";
|
|
91
|
+
}, {
|
|
92
|
+
readonly captureName: "accentClass";
|
|
93
|
+
readonly labelKey: "config.calendar.bindings.resource.accentClass";
|
|
94
|
+
}, {
|
|
95
|
+
readonly captureName: "color";
|
|
96
|
+
readonly labelKey: "config.calendar.bindings.resource.color";
|
|
97
|
+
}, {
|
|
98
|
+
readonly captureName: "meta[$index].token";
|
|
99
|
+
readonly labelKey: "config.calendar.bindings.resource.meta.token";
|
|
100
|
+
}, {
|
|
101
|
+
readonly captureName: "meta[$index].dataFieldId";
|
|
102
|
+
readonly labelKey: "config.calendar.bindings.resource.meta.fieldId";
|
|
103
|
+
}];
|
|
104
|
+
};
|
|
105
|
+
}, {
|
|
106
|
+
readonly id: "timeline";
|
|
107
|
+
readonly tool: "custom";
|
|
108
|
+
readonly titleKey: "config.calendarDataGrid.group.timeline";
|
|
109
|
+
readonly collapsible: true;
|
|
110
|
+
readonly initiallyExpanded: true;
|
|
111
|
+
readonly pathBase: "display.timeline";
|
|
112
|
+
readonly fields: readonly [{
|
|
113
|
+
readonly type: "text";
|
|
114
|
+
readonly captureName: "startDate";
|
|
115
|
+
readonly labelKey: "config.calendarDataGrid.timeline.startDate";
|
|
116
|
+
}, {
|
|
117
|
+
readonly type: "text";
|
|
118
|
+
readonly captureName: "endDate";
|
|
119
|
+
readonly labelKey: "config.calendarDataGrid.timeline.endDate";
|
|
120
|
+
}, {
|
|
121
|
+
readonly type: "number";
|
|
122
|
+
readonly captureName: "dayColumnWidth";
|
|
123
|
+
readonly labelKey: "config.calendarDataGrid.timeline.dayWidth";
|
|
124
|
+
readonly defaultValue: 40;
|
|
125
|
+
}, {
|
|
126
|
+
readonly type: "switch";
|
|
127
|
+
readonly captureName: "groupByMonth";
|
|
128
|
+
readonly labelKey: "config.calendarDataGrid.timeline.groupByMonth";
|
|
129
|
+
readonly defaultValue: true;
|
|
130
|
+
}];
|
|
131
|
+
}, {
|
|
132
|
+
readonly id: "toolbar";
|
|
133
|
+
readonly tool: "custom";
|
|
134
|
+
readonly titleKey: "config.datagrid.group.toolbar";
|
|
135
|
+
readonly collapsible: true;
|
|
136
|
+
readonly initiallyExpanded: false;
|
|
137
|
+
readonly pathBase: "toolbar";
|
|
138
|
+
readonly fields: readonly [{
|
|
139
|
+
readonly type: "select";
|
|
140
|
+
readonly captureName: "densityDefault";
|
|
141
|
+
readonly labelKey: "config.datagrid.toolbar.densityDefault";
|
|
142
|
+
readonly defaultValue: "comfortable";
|
|
143
|
+
readonly options: readonly [{
|
|
144
|
+
readonly id: "compact";
|
|
145
|
+
readonly labelKey: "config.datagrid.toolbar.view.compact";
|
|
146
|
+
}, {
|
|
147
|
+
readonly id: "comfortable";
|
|
148
|
+
readonly labelKey: "config.datagrid.toolbar.view.comfortable";
|
|
149
|
+
}];
|
|
150
|
+
}, {
|
|
151
|
+
readonly type: "switch";
|
|
152
|
+
readonly captureName: "densityToggle";
|
|
153
|
+
readonly labelKey: "config.datagrid.toolbar.densityToggle";
|
|
154
|
+
readonly defaultValue: true;
|
|
155
|
+
}, {
|
|
156
|
+
readonly type: "switch";
|
|
157
|
+
readonly captureName: "search";
|
|
158
|
+
readonly labelKey: "config.datagrid.toolbar.search";
|
|
159
|
+
readonly defaultValue: true;
|
|
160
|
+
}, {
|
|
161
|
+
readonly type: "switch";
|
|
162
|
+
readonly captureName: "exportCsv";
|
|
163
|
+
readonly labelKey: "config.datagrid.toolbar.exportCsv";
|
|
164
|
+
readonly defaultValue: true;
|
|
165
|
+
}];
|
|
166
|
+
}, {
|
|
167
|
+
readonly id: "controlsLayout";
|
|
168
|
+
readonly tool: "custom";
|
|
169
|
+
readonly titleKey: "config.datagrid.group.controlsLayout";
|
|
170
|
+
readonly collapsible: true;
|
|
171
|
+
readonly initiallyExpanded: false;
|
|
172
|
+
readonly pathBase: "props.toolbarContainer.sx";
|
|
173
|
+
readonly fields: readonly [{
|
|
174
|
+
readonly type: "number";
|
|
175
|
+
readonly captureName: "controlHeight";
|
|
176
|
+
readonly labelKey: "config.datagrid.controls.height";
|
|
177
|
+
readonly defaultValue: 44;
|
|
178
|
+
}, {
|
|
179
|
+
readonly type: "number";
|
|
180
|
+
readonly captureName: "searchWidth";
|
|
181
|
+
readonly labelKey: "config.datagrid.controls.searchWidth";
|
|
182
|
+
readonly defaultValue: 360;
|
|
183
|
+
}, {
|
|
184
|
+
readonly type: "number";
|
|
185
|
+
readonly captureName: "columnGap";
|
|
186
|
+
readonly labelKey: "config.datagrid.controls.columnGap";
|
|
187
|
+
readonly defaultValue: 1;
|
|
188
|
+
}, {
|
|
189
|
+
readonly type: "number";
|
|
190
|
+
readonly captureName: "marginTop";
|
|
191
|
+
readonly labelKey: "config.datagrid.controls.marginTop";
|
|
192
|
+
readonly defaultValue: 1;
|
|
193
|
+
}];
|
|
194
|
+
}, {
|
|
195
|
+
readonly id: "wrapperStyles";
|
|
196
|
+
readonly tool: "custom";
|
|
197
|
+
readonly titleKey: "config.datagrid.group.wrapperStyles";
|
|
198
|
+
readonly collapsible: true;
|
|
199
|
+
readonly initiallyExpanded: false;
|
|
200
|
+
readonly pathBase: "props.dataGridWrapper.sx";
|
|
201
|
+
readonly fields: readonly [{
|
|
202
|
+
readonly type: "color";
|
|
203
|
+
readonly captureName: "backgroundColor";
|
|
204
|
+
readonly labelKey: "config.datagrid.wrapper.background";
|
|
205
|
+
}, {
|
|
206
|
+
readonly type: "color";
|
|
207
|
+
readonly captureName: "borderColor";
|
|
208
|
+
readonly labelKey: "config.datagrid.wrapper.borderColor";
|
|
209
|
+
}, {
|
|
210
|
+
readonly type: "number";
|
|
211
|
+
readonly captureName: "borderRadius";
|
|
212
|
+
readonly labelKey: "config.datagrid.wrapper.borderRadius";
|
|
213
|
+
readonly defaultValue: 8;
|
|
214
|
+
}, {
|
|
215
|
+
readonly type: "number";
|
|
216
|
+
readonly captureName: "paddingX";
|
|
217
|
+
readonly labelKey: "config.datagrid.wrapper.paddingX";
|
|
218
|
+
readonly defaultValue: 0;
|
|
219
|
+
}, {
|
|
220
|
+
readonly type: "number";
|
|
221
|
+
readonly captureName: "paddingY";
|
|
222
|
+
readonly labelKey: "config.datagrid.wrapper.paddingY";
|
|
223
|
+
readonly defaultValue: 0;
|
|
224
|
+
}, {
|
|
225
|
+
readonly type: "number";
|
|
226
|
+
readonly captureName: "elevation";
|
|
227
|
+
readonly labelKey: "config.datagrid.wrapper.elevation";
|
|
228
|
+
readonly defaultValue: 0;
|
|
229
|
+
}];
|
|
230
|
+
}, {
|
|
231
|
+
readonly id: "toolbarStyles";
|
|
232
|
+
readonly tool: "custom";
|
|
233
|
+
readonly titleKey: "config.datagrid.group.toolbarStyles";
|
|
234
|
+
readonly collapsible: true;
|
|
235
|
+
readonly initiallyExpanded: false;
|
|
236
|
+
readonly pathBase: "props.toolbarContainer.sx";
|
|
237
|
+
readonly fields: readonly [{
|
|
238
|
+
readonly type: "color";
|
|
239
|
+
readonly captureName: "backgroundColor";
|
|
240
|
+
readonly labelKey: "config.datagrid.toolbarStyles.background";
|
|
241
|
+
}, {
|
|
242
|
+
readonly type: "color";
|
|
243
|
+
readonly captureName: "borderColor";
|
|
244
|
+
readonly labelKey: "config.datagrid.toolbarStyles.borderColor";
|
|
245
|
+
}, {
|
|
246
|
+
readonly type: "number";
|
|
247
|
+
readonly captureName: "borderRadius";
|
|
248
|
+
readonly labelKey: "config.datagrid.toolbarStyles.borderRadius";
|
|
249
|
+
readonly defaultValue: 8;
|
|
250
|
+
}, {
|
|
251
|
+
readonly type: "number";
|
|
252
|
+
readonly captureName: "gap";
|
|
253
|
+
readonly labelKey: "config.datagrid.toolbarStyles.gap";
|
|
254
|
+
readonly defaultValue: 1.5;
|
|
255
|
+
}];
|
|
256
|
+
}, {
|
|
257
|
+
readonly id: "quickFilters";
|
|
258
|
+
readonly tool: "dataGridQuickFilters";
|
|
259
|
+
readonly titleKey: "config.datagrid.group.quickFilters";
|
|
260
|
+
readonly collapsible: true;
|
|
261
|
+
readonly initiallyExpanded: false;
|
|
262
|
+
readonly pathBase: "toolbar.quickFilters";
|
|
263
|
+
readonly toolConfig: {
|
|
264
|
+
readonly columnsDependencyPath: "dataRetrievalConfig.columns";
|
|
265
|
+
readonly fields: readonly [{
|
|
266
|
+
readonly type: "text";
|
|
267
|
+
readonly captureName: "label";
|
|
268
|
+
readonly labelKey: "config.datagrid.quickFilters.label";
|
|
269
|
+
}, {
|
|
270
|
+
readonly type: "text";
|
|
271
|
+
readonly captureName: "columnField";
|
|
272
|
+
readonly labelKey: "config.datagrid.quickFilters.columnField";
|
|
273
|
+
}, {
|
|
274
|
+
readonly type: "text";
|
|
275
|
+
readonly captureName: "value";
|
|
276
|
+
readonly labelKey: "config.datagrid.quickFilters.value";
|
|
277
|
+
}, {
|
|
278
|
+
readonly type: "color";
|
|
279
|
+
readonly captureName: "color";
|
|
280
|
+
readonly labelKey: "config.datagrid.quickFilters.color";
|
|
281
|
+
}];
|
|
282
|
+
};
|
|
283
|
+
}, {
|
|
284
|
+
readonly id: "quickFiltersStyles";
|
|
285
|
+
readonly tool: "custom";
|
|
286
|
+
readonly titleKey: "config.datagrid.group.quickFiltersStyles";
|
|
287
|
+
readonly collapsible: true;
|
|
288
|
+
readonly initiallyExpanded: false;
|
|
289
|
+
readonly pathBase: "props.quickFiltersGroup.sx";
|
|
290
|
+
readonly fields: readonly [{
|
|
291
|
+
readonly type: "color";
|
|
292
|
+
readonly captureName: "chipBackgroundColor";
|
|
293
|
+
readonly labelKey: "config.datagrid.quickFilters.chipBackground";
|
|
294
|
+
}, {
|
|
295
|
+
readonly type: "color";
|
|
296
|
+
readonly captureName: "chipTextColor";
|
|
297
|
+
readonly labelKey: "config.datagrid.quickFilters.chipText";
|
|
298
|
+
}, {
|
|
299
|
+
readonly type: "color";
|
|
300
|
+
readonly captureName: "chipBorderColor";
|
|
301
|
+
readonly labelKey: "config.datagrid.quickFilters.chipBorder";
|
|
302
|
+
}, {
|
|
303
|
+
readonly type: "number";
|
|
304
|
+
readonly captureName: "chipBorderRadius";
|
|
305
|
+
readonly labelKey: "config.datagrid.quickFilters.chipBorderRadius";
|
|
306
|
+
readonly defaultValue: 10;
|
|
307
|
+
}, {
|
|
308
|
+
readonly type: "number";
|
|
309
|
+
readonly captureName: "chipGap";
|
|
310
|
+
readonly labelKey: "config.datagrid.quickFilters.chipGap";
|
|
311
|
+
readonly defaultValue: 8;
|
|
312
|
+
}, {
|
|
313
|
+
readonly type: "color";
|
|
314
|
+
readonly captureName: "selectedChipColor";
|
|
315
|
+
readonly labelKey: "config.datagrid.quickFilters.selectedChipColor";
|
|
316
|
+
}];
|
|
317
|
+
}, {
|
|
318
|
+
readonly id: "searchControl";
|
|
319
|
+
readonly tool: "custom";
|
|
320
|
+
readonly titleKey: "config.datagrid.group.searchControl";
|
|
321
|
+
readonly collapsible: true;
|
|
322
|
+
readonly initiallyExpanded: false;
|
|
323
|
+
readonly pathBase: "toolbar.searchControl";
|
|
324
|
+
readonly fields: readonly [{
|
|
325
|
+
readonly type: "text";
|
|
326
|
+
readonly captureName: "placeholder";
|
|
327
|
+
readonly labelKey: "config.datagrid.search.placeholder";
|
|
328
|
+
readonly defaultValue: "Search";
|
|
329
|
+
}, {
|
|
330
|
+
readonly type: "switch";
|
|
331
|
+
readonly captureName: "autoFocus";
|
|
332
|
+
readonly labelKey: "config.datagrid.search.autoFocus";
|
|
333
|
+
readonly defaultValue: false;
|
|
334
|
+
}, {
|
|
335
|
+
readonly type: "number";
|
|
336
|
+
readonly captureName: "borderRadius";
|
|
337
|
+
readonly labelKey: "config.datagrid.search.borderRadius";
|
|
338
|
+
readonly defaultValue: 2;
|
|
339
|
+
}, {
|
|
340
|
+
readonly type: "color";
|
|
341
|
+
readonly captureName: "backgroundColor";
|
|
342
|
+
readonly labelKey: "config.datagrid.search.background";
|
|
343
|
+
}, {
|
|
344
|
+
readonly type: "color";
|
|
345
|
+
readonly captureName: "borderColor";
|
|
346
|
+
readonly labelKey: "config.datagrid.search.borderColor";
|
|
347
|
+
}];
|
|
348
|
+
}, {
|
|
349
|
+
readonly id: "densityToggleStyles";
|
|
350
|
+
readonly tool: "custom";
|
|
351
|
+
readonly titleKey: "config.datagrid.group.densityToggleStyles";
|
|
352
|
+
readonly collapsible: true;
|
|
353
|
+
readonly initiallyExpanded: false;
|
|
354
|
+
readonly pathBase: "props.densityToggleContainer.sx";
|
|
355
|
+
readonly fields: readonly [{
|
|
356
|
+
readonly type: "color";
|
|
357
|
+
readonly captureName: "backgroundColor";
|
|
358
|
+
readonly labelKey: "config.datagrid.density.background";
|
|
359
|
+
}, {
|
|
360
|
+
readonly type: "color";
|
|
361
|
+
readonly captureName: "selectedBackgroundColor";
|
|
362
|
+
readonly labelKey: "config.datagrid.density.selectedBackground";
|
|
363
|
+
}, {
|
|
364
|
+
readonly type: "color";
|
|
365
|
+
readonly captureName: "selectedTextColor";
|
|
366
|
+
readonly labelKey: "config.datagrid.density.selectedTextColor";
|
|
367
|
+
}, {
|
|
368
|
+
readonly type: "number";
|
|
369
|
+
readonly captureName: "borderRadius";
|
|
370
|
+
readonly labelKey: "config.datagrid.density.borderRadius";
|
|
371
|
+
readonly defaultValue: 10;
|
|
372
|
+
}];
|
|
373
|
+
}, {
|
|
374
|
+
readonly id: "exportButtonStyles";
|
|
375
|
+
readonly tool: "custom";
|
|
376
|
+
readonly titleKey: "config.datagrid.group.exportButtonStyles";
|
|
377
|
+
readonly collapsible: true;
|
|
378
|
+
readonly initiallyExpanded: false;
|
|
379
|
+
readonly pathBase: "props.exportButton.sx";
|
|
380
|
+
readonly fields: readonly [{
|
|
381
|
+
readonly type: "color";
|
|
382
|
+
readonly captureName: "backgroundColor";
|
|
383
|
+
readonly labelKey: "config.datagrid.export.background";
|
|
384
|
+
}, {
|
|
385
|
+
readonly type: "color";
|
|
386
|
+
readonly captureName: "borderColor";
|
|
387
|
+
readonly labelKey: "config.datagrid.export.borderColor";
|
|
388
|
+
}, {
|
|
389
|
+
readonly type: "color";
|
|
390
|
+
readonly captureName: "iconColor";
|
|
391
|
+
readonly labelKey: "config.datagrid.export.iconColor";
|
|
392
|
+
}, {
|
|
393
|
+
readonly type: "number";
|
|
394
|
+
readonly captureName: "borderRadius";
|
|
395
|
+
readonly labelKey: "config.datagrid.export.borderRadius";
|
|
396
|
+
readonly defaultValue: 8;
|
|
397
|
+
}];
|
|
398
|
+
}, {
|
|
399
|
+
readonly id: "styles";
|
|
400
|
+
readonly tool: "custom";
|
|
401
|
+
readonly titleKey: "config.datagrid.group.styles";
|
|
402
|
+
readonly collapsible: true;
|
|
403
|
+
readonly initiallyExpanded: false;
|
|
404
|
+
readonly pathBase: "props.dataGrid.sx";
|
|
405
|
+
readonly fields: readonly [{
|
|
406
|
+
readonly type: "color";
|
|
407
|
+
readonly captureName: "backgroundColor";
|
|
408
|
+
readonly labelKey: "config.datagrid.styles.background";
|
|
409
|
+
readonly defaultValue: "#FFFFFF";
|
|
410
|
+
}];
|
|
411
|
+
}];
|
|
412
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{eventBindingsGroup as o}from"../../CalendarOrganism/config/toolDescriptor/eventBindings.js";import{resourceBindingsGroup as r}from"../../CalendarOrganism/config/toolDescriptor/resourceBindings.js";import{controlsLayoutGroup as t}from"../../DataGrid/config/toolDescriptor/controlsLayout.js";import{densityToggleStylesGroup as i}from"../../DataGrid/config/toolDescriptor/densityToggleStyles.js";import{exportButtonStylesGroup as s}from"../../DataGrid/config/toolDescriptor/exportButtonStyles.js";import{quickFiltersGroup as e}from"../../DataGrid/config/toolDescriptor/quickFilters.js";import{quickFiltersStylesGroup as a}from"../../DataGrid/config/toolDescriptor/quickFiltersStyles.js";import{searchControlGroup as p}from"../../DataGrid/config/toolDescriptor/searchControl.js";import{stylesGroup as c}from"../../DataGrid/config/toolDescriptor/styles.js";import{toolbarGroup as l}from"../../DataGrid/config/toolDescriptor/toolbar.js";import{toolbarStylesGroup as m}from"../../DataGrid/config/toolDescriptor/toolbarStyles.js";import{wrapperStylesGroup as n}from"../../DataGrid/config/toolDescriptor/wrapperStyles.js";import{timelineGroup as f}from"./toolDescriptor/timeline.js";var D={component:"CalendarDataGridOrganism",version:"1.0.0",toolGroups:[o,r,f,l,t,n,m,e,a,p,i,s,c]};export{D as calendarDataGridConfiguratorDescriptor};
|
|
2
|
+
//# sourceMappingURL=descriptors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptors.js","sources":["../../../../../../src/organisms/CalendarDataGridOrganism/config/descriptors.ts"],"sourcesContent":[null],"names":["calendarDataGridConfiguratorDescriptor","component","version","toolGroups","eventBindingsGroup","resourceBindingsGroup","timelineGroup","toolbarGroup","controlsLayoutGroup","wrapperStylesGroup","toolbarStylesGroup","quickFiltersGroup","quickFiltersStylesGroup","searchControlGroup","densityToggleStylesGroup","exportButtonStylesGroup","gridStylesGroup"],"mappings":"6pCAca,IAAAA,EAAyC,CAClDC,UAAW,2BACXC,QAAS,QACTC,WAAY,CACRC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC"}
|