From d78a44c32b0a7183fda5898cd76df581c02a9209 Mon Sep 17 00:00:00 2001 From: Ansul Agrawal Date: Fri, 15 Nov 2024 15:53:06 +0530 Subject: [PATCH] Added Logo --- package.json | 1 + public/banner.png | Bin 0 -> 9861 bytes public/logo.png | Bin 0 -> 19718 bytes src/examples/app.jsx | 81 ++++++- src/examples/assets/banner.png | Bin 0 -> 9861 bytes src/examples/assets/logo.png | Bin 0 -> 19718 bytes src/examples/assets/npm.svg | 4 + src/examples/components/Fallback.jsx | 16 ++ src/examples/components/Header.jsx | 29 +++ src/examples/components/Landing.jsx | 25 ++ src/examples/components/ResourceItem.jsx | 10 + src/examples/components/ResourceList.jsx | 17 ++ src/examples/components/Slider.jsx | 21 ++ src/examples/components/SourceCode.jsx | 16 ++ src/examples/components/TaskItem.jsx | 10 + src/examples/components/TaskList.jsx | 17 ++ src/examples/css/style.css | 164 ++++++++++++++ src/examples/helpers/DnDTypes.js | 2 + src/{ => examples}/index.html | 4 +- src/examples/index.jsx | 3 + src/examples/pages/Add-More/class-based.jsx | 197 ++++++++++++++++ .../pages/Add-More/functional-based.jsx | 198 ++++++++++++++++ src/examples/pages/Add-More/index.jsx | 20 ++ src/examples/pages/Basic/class-based.jsx | 179 +++++++++++++++ src/examples/pages/Basic/index.jsx | 18 ++ .../pages/Custom-Time/class-based.jsx | 184 +++++++++++++++ src/examples/pages/Custom-Time/index.jsx | 20 ++ .../pages/Drag-And-Drop/class-based.jsx | 209 +++++++++++++++++ .../pages/Drag-And-Drop/functional-based.jsx | 213 ++++++++++++++++++ src/examples/pages/Drag-And-Drop/index.jsx | 20 ++ src/examples/pages/Home.jsx | 26 +++ src/examples/pages/Read-Only/class-based.jsx | 95 ++++++++ src/examples/pages/Read-Only/index.jsx | 18 ++ webpack.config.js | 4 +- 34 files changed, 1815 insertions(+), 6 deletions(-) create mode 100644 public/banner.png create mode 100644 public/logo.png create mode 100644 src/examples/assets/banner.png create mode 100644 src/examples/assets/logo.png create mode 100644 src/examples/assets/npm.svg create mode 100644 src/examples/components/Fallback.jsx create mode 100644 src/examples/components/Header.jsx create mode 100644 src/examples/components/Landing.jsx create mode 100644 src/examples/components/ResourceItem.jsx create mode 100644 src/examples/components/ResourceList.jsx create mode 100644 src/examples/components/Slider.jsx create mode 100644 src/examples/components/SourceCode.jsx create mode 100644 src/examples/components/TaskItem.jsx create mode 100644 src/examples/components/TaskList.jsx create mode 100644 src/examples/css/style.css create mode 100644 src/examples/helpers/DnDTypes.js rename src/{ => examples}/index.html (97%) create mode 100644 src/examples/pages/Add-More/class-based.jsx create mode 100644 src/examples/pages/Add-More/functional-based.jsx create mode 100644 src/examples/pages/Add-More/index.jsx create mode 100644 src/examples/pages/Basic/class-based.jsx create mode 100644 src/examples/pages/Basic/index.jsx create mode 100644 src/examples/pages/Custom-Time/class-based.jsx create mode 100644 src/examples/pages/Custom-Time/index.jsx create mode 100644 src/examples/pages/Drag-And-Drop/class-based.jsx create mode 100644 src/examples/pages/Drag-And-Drop/functional-based.jsx create mode 100644 src/examples/pages/Drag-And-Drop/index.jsx create mode 100644 src/examples/pages/Home.jsx create mode 100644 src/examples/pages/Read-Only/class-based.jsx create mode 100644 src/examples/pages/Read-Only/index.jsx diff --git a/package.json b/package.json index 5a009b8..44af0f9 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ }, "scripts": { "dev": "webpack serve --open", + "build": "webpack --mode production", "build:lib": "node scripts/build.js", "clean": "npx rimraf dist", "lint": "eslint ./src", diff --git a/public/banner.png b/public/banner.png new file mode 100644 index 0000000000000000000000000000000000000000..0aeea405a3b5d75468ae692335ea7418f6b30ca2 GIT binary patch literal 9861 zcmb`tbyQSu{69D%2#A1$Agv%J3`i;sN+Ttuq#_LtNOy~rbTebHJeBUW-qa$5!pk#hJf!e}~~# znn#tC&z5y-s#`?0FFr&z{LXB^HOSMOT||)RKnr|`qO2eugzX;PwLprvXvhyDWktwq z{Cy$w*2~kfmvs*5ot>Sx3CS35b82MWj);gTFs!vJP|p-C@I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}~ z&%7`xD}8oYIoMEf3zRlB*X??ikN;}zqrjN*!@f684M{e{2;;WJd`tNgqX71}+!X+u z8FoN$LwIl+cT-~s!Y3D^XXZIaAYj#Vcid+J1y1J#N|zHSkBpv@08{w}H`3Xj{khwh zIVR0IX5x|UiAgq)2a3xpiVlPoyEr8CN)q-vb$x$%?ln!H!$pjnb{BsB+_m!jd58u6 z>))Vv+W--AS@mUcgHA*l{eA}KeT&+rz-N7GQI561pZx*y9?ZrT;ExF0+{KQ$;n7t7 zGeUH;kB3+hFQd38E8Vr@AdPVwnn8~lKLg+0E>35>A6jsD4%k@{&Mf5}u8}R?#VzxT zIDtYo5bWTt)ZyYG)Hek!z!Lw)w z_l`Lz@;f`+(Y#0nnecL7(WR_#)ou2BkFAVv-Fd(kcrQ;{Z35w#8l}$o#7P!}7B4v} zhKe;&Puy0M&I5$SWU^ssiwkPu4}|P2s^Y@@iT~%k?-3*Z|8pbOwa{Z3t}1i35BHGK RVCxt}ML|Qp^6Bf~{{s*bSOfq7 literal 0 HcmV?d00001 diff --git a/public/logo.png b/public/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..485be64e5271fa9bf81be22e7b275c0508d7ed1f GIT binary patch literal 19718 zcmd3Og;!Nu)UTp|l!zc8AmE|9M5Lu8ML|HiOF%%RLmEN4LqtjG4ru}D5~LfEkPhj3 zbKmd1_aD45o@3nM;Nm%FpS9PT^H*~RJy(>*!zRPNa^(u1tc;}cl`Cj^SFT)TyMY1! z=V3j%9Q<|lt+KTEmBK!XzwpC#GqI;)SFV(VuyYAO(~e1Vs3woSZ|g$etJ+*bt^R@yCcOohbYrkf_cDD7DcC=bK}0H zvWED9haQb_XM_Lx>DjWAlkla`Qjd!%|8h@a;_TsG_1ctKUvi?EX^-}@ZlPdeyF3B> ziKL0@z6=Ts4D7gy+W>zBQv8?;Mt&6g|K!I`A>GoaVm0o^rJBY1-kNpJB?8XdUj*JR zg>Pq8brCf0ve9BFG$yAGUh0lE{vtR1E zNbRqUK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RI(vKeguoD5${Q^|=C@o*#%@at=tt7^Qdle$XG8zi0t9-2~ zcsh%Q3Z~xZWW8I}MWk4wpi?127N^9C>S5$L2N9bAWfTCRO@oo*G|U{Rni`i>zKi|I z{OPa*Gm#1V3ZwR$6%bq0Dc;E9ih`Cnh!g%5d3w$*g4VAISPj;Gi_alIlvQ+adA9fL z{2F3IPm|qB_vF^lhx#K>Ca968-{d3UNi}Lqhx#xNgA+ug5`pZZRhhnlrlk6f<^ySg zee1L+J3_z!e2+~JAqSBMt)QC{TNQjy`>8^ADMubKf(0<-I1-`~ypR@#F(lq` z3Ga?1-nH!?vXk3 z?(}t`lzAF(B!N$o@R$+gksf#Ft)$ba5!%FSGoy_J>`LE%0jlLXe+nhPgA#?>eGjlM zB0`vQIszHL72aX-IQb{AVpzpWpfrb=6}0wwz=2f29FZ+*B`t!vO61ueolrR$WdL-D zd%e-8dUupcsU229vd{@mbJ~o@p$=l~hi$==fUefw3u^XjEdb*)@8sX#^sB84z()lZZORSE#OR35jSwl z5pY*|APcZIa|Q0cbzo17XsH5jRPE!v1e|HR{Wa;K2I!z1(DXI%pqvw&zyOSS0PLTE zj)lnrj!|X-mnv56xd9xqeR}Oe>iK!Gp!($bV=Z7~gKr0LFNDf=pchquX{t!`3D0j} zr|t@H6yqvzaP}&2qfzOEGT?axv7mh}{ilJ0s_*R1Oj7OE1MXD5dQhxs4KNkFOa@vC sn$iXW%Z}m`pi{hPe|ndp*I)T4HXh}bw>d8Z&n{!|boFyt=akR{0H9Wip8x;= literal 0 HcmV?d00001 diff --git a/src/examples/app.jsx b/src/examples/app.jsx index 828cfdc..57e9c62 100644 --- a/src/examples/app.jsx +++ b/src/examples/app.jsx @@ -1,7 +1,84 @@ -import React from 'react'; +import { Result } from 'antd'; +import React, { lazy, Suspense } from 'react'; +import { createBrowserRouter, RouterProvider } from 'react-router-dom'; +import Fallback from './components/Fallback'; +import Landing from './components/Landing'; +import './css/style.css'; + +const Home = lazy(() => import('./pages/Home')); +const Basic = lazy(() => import('./pages/Basic')); +const ReadOnly = lazy(() => import('./pages/Read-Only')); +const AddMore = lazy(() => import('./pages/Add-More')); +const DragAndDrop = lazy(() => import('./pages/Drag-And-Drop')); +const CustomTime = lazy(() => import('./pages/Custom-Time')); function App() { - return
App
; + const router = createBrowserRouter([ + { + path: '/', + element: , + children: [ + { + path: '/', + element: ( + }> + + + ), + }, + { + path: '/basic', + element: ( + }> + + + ), + }, + { + path: '/read-only', + element: ( + }> + + + ), + }, + { + path: '/add-more', + element: ( + }> + + + ), + }, + { + path: '/drag-and-drop', + element: ( + }> + + + ), + }, + { + path: '/custom-time', + element: ( + }> + + + ), + }, + { + path: '*', + element: , + }, + ], + }, + { + path: '*', + element: , + }, + ]); + + return ; } export default App; diff --git a/src/examples/assets/banner.png b/src/examples/assets/banner.png new file mode 100644 index 0000000000000000000000000000000000000000..0aeea405a3b5d75468ae692335ea7418f6b30ca2 GIT binary patch literal 9861 zcmb`tbyQSu{69D%2#A1$Agv%J3`i;sN+Ttuq#_LtNOy~rbTebHJeBUW-qa$5!pk#hJf!e}~~# znn#tC&z5y-s#`?0FFr&z{LXB^HOSMOT||)RKnr|`qO2eugzX;PwLprvXvhyDWktwq z{Cy$w*2~kfmvs*5ot>Sx3CS35b82MWj);gTFs!vJP|p-C@IBc*m-&g`5z9hLLc@D| zZLEsc=V&u|A|W9`zBfYzvv!Atg&!ezH{XJ~%h}nveD3#0BVuCWq@-kuJ9jKa>_>Y} zcTxN&h3d1JT>}PK@ z#B0^s>AlAe+@GG$4GqOVVb?8?C!WSDia;8jsip9u6T&;=?mt7~!}8(%vQ!je?(1ou zCz#aw8yt~Hi~Y^UEoW}0m6a9qu}Tx;>yNR%%{FEfo~*Y;S^4PvPFISJ2j5qE#Jz*A8EPR@J1_qh}F~omx_46 z26=>+KmoaX?SEA`Z=^OHV6e*0uC6)5OVM}#9>AIp^eb1;b?=NSr~-c~P;qKdU%zo{ zHiNle`m7u~f#4t8HTe2kj)Io9L&PZ&-4(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w z_l`Lz@;f`+(Y#0nnecL7(WR_#)ou2BkFAVv-Fd(kcrQ;{Z35w#8l}$o#7P!}7B4v} zhKe;&Puy0M&I5$SWU^ssiwkPu4}|P2s^Y@@iT~%k?-3*Z|8pbOwa{Z3t}1i35BHGK RVCxt}ML|Qp^6Bf~{{s*bSOfq7 literal 0 HcmV?d00001 diff --git a/src/examples/assets/logo.png b/src/examples/assets/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..485be64e5271fa9bf81be22e7b275c0508d7ed1f GIT binary patch literal 19718 zcmd3Og;!Nu)UTp|l!zc8AmE|9M5Lu8ML|HiOF%%RLmEN4LqtjG4ru}D5~LfEkPhj3 zbKmd1_aD45o@3nM;Nm%FpS9PT^H*~RJy(>*!zRPNa^(u1tc;}cl`Cj^SFT)TyMY1! z=V3j%9Q<|lt+KTEmBK!XzwpC#GqI;)SFV(VuyYAO(~e1Vs3woSZ|g$etJ+*bt^R@yCcOohbYrkf_cDD7DcC=bK}0H zvWED9haQb_XM_Lx>DjWAlkla`Qjd!%|8h@a;_TsG_1ctKUvi?EX^-}@ZlPdeyF3B> ziKL0@z6=Ts4D7gy+W>zBQv8?;Mt&6g|K!I`A>GoaVm0o^rJBY1-kNpJB?8XdUj*JR zg>Pq8brCf0ve9BFG$yAGUh0lE{vtR1E zNbRqUKFgGe6hDY~am!ZtbiHi#?0B!VU3+yXXLzp3S2a(qz!)D^zv9sn%Z;~7JxZ}G zFK;q$`&_+-k$tkimdEn4u!GVL4Q*zr_ai2SbCW*~$E9%Ee|par~Z8=Yx)u+wva2JLRWwU$O?~bk&S&-uitM3Y)6- z-Zf6AO>KEJj+KduJgZ2ZpEab`bLa^Q-a&UHB_-7ix9@mG(nxoy9WC{LE^^$OVdE|J zjol*YYi%?a6D!hTlJ;rNl9MtgM*zl{P z?m)_$f_<`=k5kz5#@{HSP#^UE-|b#xL*64P)UHlb{4By&k@0$_P6Kv{hjLjPO}J3n zlQ0S<-qJz7S@(1ShgDi$%YWei*VJ)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#Ft)$ba5!%FSGoy_J>`LE%0jlLXe+nhPgA#?>eGjlM zB0`vQIszHL72aX-IQb{AVpzpWpfrb=6}0wwz=2f29FZ+*B`t!vO61ueolrR$WdL-D zd%e-8dUupcsU229vd{@mbJ~o@p$=l~hi$==fUefw3u^XjEdb*)@8sX#^sB84z()lZZORSE#OR35jSwl z5pY*|APcZIa|Q0cbzo17XsH5jRPE!v1e|HR{Wa;K2I!z1(DXI%pqvw&zyOSS0PLTE zj)lnrj!|X-mnv56xd9xqeR}Oe>iK!Gp!($bV=Z7~gKr0LFNDf=pchquX{t!`3D0j} zr|t@H6yqvzaP}&2qfzOEGT?axv7mh}{ilJ0s_*R1Oj7OE1MXD5dQhxs4KNkFOa@vC sn$iXW%Z}m`pi{hPe|ndp*I)T4HXh}bw>d8Z&n{!|boFyt=akR{0H9Wip8x;= literal 0 HcmV?d00001 diff --git a/src/examples/assets/npm.svg b/src/examples/assets/npm.svg new file mode 100644 index 0000000..6f57583 --- /dev/null +++ b/src/examples/assets/npm.svg @@ -0,0 +1,4 @@ + + + diff --git a/src/examples/components/Fallback.jsx b/src/examples/components/Fallback.jsx new file mode 100644 index 0000000..eed75be --- /dev/null +++ b/src/examples/components/Fallback.jsx @@ -0,0 +1,16 @@ +import React from 'react'; +import { Spin } from 'antd'; +import { LoadingOutlined } from '@ant-design/icons'; + +const antIcon = ; + +function Fallback() { + return ( +
+ +

Please wait while the component is being loaded.

+
+ ); +} + +export default Fallback; diff --git a/src/examples/components/Header.jsx b/src/examples/components/Header.jsx new file mode 100644 index 0000000..45d9d84 --- /dev/null +++ b/src/examples/components/Header.jsx @@ -0,0 +1,29 @@ +import { GithubOutlined } from '@ant-design/icons'; +import { Col, Row } from 'antd'; +import React from 'react'; +import { Link } from 'react-router-dom'; + +import logo from '../assets/logo.png'; +import npm from '../assets/npm.svg'; + +function Header() { + return ( + + + + Logo + + + + + npm-logo + + + + + + + ); +} + +export default Header; diff --git a/src/examples/components/Landing.jsx b/src/examples/components/Landing.jsx new file mode 100644 index 0000000..5a58bf2 --- /dev/null +++ b/src/examples/components/Landing.jsx @@ -0,0 +1,25 @@ +import React from 'react'; +import { Layout } from 'antd'; +import { Outlet } from 'react-router-dom'; +import Header from './Header'; +import Slider from './Slider'; + +function Landing() { + return ( + + +
+ + + + + + + + + + + ); +} + +export default Landing; diff --git a/src/examples/components/ResourceItem.jsx b/src/examples/components/ResourceItem.jsx new file mode 100644 index 0000000..84ebeef --- /dev/null +++ b/src/examples/components/ResourceItem.jsx @@ -0,0 +1,10 @@ +/* eslint-disable */ +import React from 'react'; + +function ResourceItem({ resource, isDragging, connectDragSource, connectDragPreview }) { + const dragContent =
  • {resource.name}
  • ; + + return isDragging ? null :
    {connectDragPreview(connectDragSource(dragContent))}
    ; +} + +export default ResourceItem; diff --git a/src/examples/components/ResourceList.jsx b/src/examples/components/ResourceList.jsx new file mode 100644 index 0000000..5913f40 --- /dev/null +++ b/src/examples/components/ResourceList.jsx @@ -0,0 +1,17 @@ +/* eslint-disable */ +import React from 'react'; + +function ResourceList({ schedulerData, newEvent, resourceDndSource }) { + const DnDResourceItem = resourceDndSource.getDragSource(); + const resources = schedulerData.resources; + + return ( +
      + {resources.map(resource => ( + + ))} +
    + ); +} + +export default ResourceList; diff --git a/src/examples/components/Slider.jsx b/src/examples/components/Slider.jsx new file mode 100644 index 0000000..fa7141d --- /dev/null +++ b/src/examples/components/Slider.jsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { Menu } from 'antd'; +import { useLocation, useNavigate } from 'react-router-dom'; + +const items = [ + { label: 'Home', key: 'home', path: '/' }, + { label: 'Basic', key: 'basic', path: '/basic' }, + { label: 'Read Only', key: 'read-only', path: '/read-only' }, + { label: 'Add More', key: 'add-more', path: '/add-more' }, + { label: 'Drag and Drop', key: 'drag-and-drop', path: '/drag-and-drop' }, + { label: 'Custom Time', key: 'custom-time', path: '/custom-time' }, +]; + +function Slider() { + const navigate = useNavigate(); + const { pathname } = useLocation(); + const activePath = pathname?.split('/')[1] || 'home'; + return ({ ...i, onClick: () => navigate(i.path) }))} />; +} + +export default Slider; diff --git a/src/examples/components/SourceCode.jsx b/src/examples/components/SourceCode.jsx new file mode 100644 index 0000000..d54e9aa --- /dev/null +++ b/src/examples/components/SourceCode.jsx @@ -0,0 +1,16 @@ +/* eslint-disable */ +import React from 'react'; +import { Link } from 'react-router-dom'; +import { Row } from 'antd'; + +function SourceCode({ value }) { + return ( + + + </> Source Code + + + ); +} + +export default SourceCode; diff --git a/src/examples/components/TaskItem.jsx b/src/examples/components/TaskItem.jsx new file mode 100644 index 0000000..47e50c7 --- /dev/null +++ b/src/examples/components/TaskItem.jsx @@ -0,0 +1,10 @@ +/* eslint-disable */ +import React from 'react'; + +function TaskItem({ task, isDragging, connectDragSource, connectDragPreview }) { + const dragContent =
  • {task.name}
  • ; + + return isDragging ? null : <>{connectDragPreview(connectDragSource(dragContent))}; +} + +export default TaskItem; diff --git a/src/examples/components/TaskList.jsx b/src/examples/components/TaskList.jsx new file mode 100644 index 0000000..a22c8cb --- /dev/null +++ b/src/examples/components/TaskList.jsx @@ -0,0 +1,17 @@ +/* eslint-disable */ +import React from 'react'; + +function TaskList({ schedulerData, newEvent, taskDndSource }) { + const DnDTaskItem = taskDndSource.getDragSource(); + const tasks = schedulerData.eventGroups; + + return ( +
      + {tasks?.map(task => ( + + ))} +
    + ); +} + +export default TaskList; diff --git a/src/examples/css/style.css b/src/examples/css/style.css new file mode 100644 index 0000000..41e59f5 --- /dev/null +++ b/src/examples/css/style.css @@ -0,0 +1,164 @@ +/* Default Styling */ + +@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap'); + +body { + margin: 0px; + font-family: 'Roboto', sans-serif; + font-size: 16px; + max-height: 100vh; + overflow: hidden; +} + +.m-0{ + margin: 0px; +} + +header { + text-align: center; + margin-bottom: 40px; +} + +.ant-layout-has-sider { + margin-bottom: 2px; +} + +.main-layout { + max-height: 100vh; + height: 100vh; + width: 100vw; + max-width: 100vw; + overflow: hidden; +} +.main-header { + background-color: #fff; + position: static !important; + margin-bottom: 0px; +} + +.main-content { + margin: 10px; + max-width: 100%; +} + +.ant-layout-header { + padding-inline: 30px; +} + +h1.header-title { + margin: 0px; + font-size: 2rem; + margin-bottom: 20px; +} + +.main_description { + .ant-typography { + font-weight: 500; + font-size: 1.25rem; + } +} + +.ant-layout-content { + height: 100%; + overflow: auto; +} + +::-webkit-scrollbar { + width: 0; + height: 0; +} + +::-webkit-scrollbar-track { + background-color: #f1f1f1; +} + +::-webkit-scrollbar-track:hover { + background-color: #eaeaea; +} + +::-webkit-scrollbar-thumb { + background-color: #888; +} + +::-webkit-scrollbar-thumb:hover { + background-color: #555; +} + +/* Header */ +.header-wrapper { + max-height: 64px; + overflow: hidden; +} + +.logo_img { + height: 60px; + cursor: pointer; +} + +.github-icon, +.npm-icon { + color: black; +} +.github-icon:hover { + color: gray; +} + +.github-icon svg, +.npm-icon img { + width: 35px; + height: 35px; +} + +.npm-icon { + margin-right: 20px; +} + +.title { + margin-bottom: 16px; + font-size: 32px; + font-weight: 700; +} + +.paragraph { + margin-bottom: 24px; + font-size: 18px; +} + +.button { + margin-top: 24px; +} + +section { + margin-bottom: 40px; +} + +ul { + list-style-type: disc; + margin-left: 24px; + margin-bottom: 16px; + font-size: 16px; +} + +ol { + list-style-type: decimal; + margin-left: 24px; + margin-bottom: 16px; + font-size: 16px; +} + +.pre { + background-color: #f7f7f7; + padding: 16px; + border-radius: 4px; +} + +.code { + font-family: monospace; +} + +/* Home page */ +.home-page { + max-width: 50vw; + margin: 0 auto; + padding: 10px 40px; +} diff --git a/src/examples/helpers/DnDTypes.js b/src/examples/helpers/DnDTypes.js new file mode 100644 index 0000000..5af8309 --- /dev/null +++ b/src/examples/helpers/DnDTypes.js @@ -0,0 +1,2 @@ +/* eslint-disable */ +export const DnDTypes = { TASK: 'task', RESOURCE: 'resource' }; diff --git a/src/index.html b/src/examples/index.html similarity index 97% rename from src/index.html rename to src/examples/index.html index 2e7bbea..a13c3b2 100644 --- a/src/index.html +++ b/src/examples/index.html @@ -29,7 +29,7 @@ Unlock the potential of your React projects with react-big-schedule and revolutionize the way you handle scheduling and resource planning." /> - + @@ -43,7 +43,7 @@ Enhance productivity and streamline your workflow with this React-based solution, designed to optimize time management and simplify calendar-based operations. Perfect for applications requiring advanced scheduling capabilities, react-big-schedule offers a seamless and intuitive experience for managing appointments, resource allocation, and time slots. Unlock the potential of your React projects with react-big-schedule and revolutionize the way you handle scheduling and resource planning." /> - +
    diff --git a/src/examples/index.jsx b/src/examples/index.jsx index b20bbf8..055f8c9 100644 --- a/src/examples/index.jsx +++ b/src/examples/index.jsx @@ -2,4 +2,7 @@ import React from 'react'; import { createRoot } from 'react-dom/client'; import App from './app'; +// Library Style +import '../css/style.css'; + createRoot(document.getElementById('root')).render(); diff --git a/src/examples/pages/Add-More/class-based.jsx b/src/examples/pages/Add-More/class-based.jsx new file mode 100644 index 0000000..0433605 --- /dev/null +++ b/src/examples/pages/Add-More/class-based.jsx @@ -0,0 +1,197 @@ +/* eslint-disable */ +import React, { Component } from 'react'; +import { Scheduler, SchedulerData, ViewType, AddMorePopover, DemoData, wrapperFun } from '../../../index'; + +class AddMore extends Component { + constructor(props) { + super(props); + + const schedulerData = new SchedulerData('2022-12-18', ViewType.Week, false, false, { + besidesWidth: 350, + dayMaxEvents: 2, + weekMaxEvents: 4, + monthMaxEvents: 4, + quarterMaxEvents: 4, + yearMaxEvents: 4, + }); + schedulerData.localeDayjs.locale('en'); + schedulerData.setResources(DemoData.resources); + schedulerData.setEvents(DemoData.events); + this.state = { + viewModel: schedulerData, + headerItem: undefined, + left: 0, + top: 0, + height: 0, + }; + } + + render() { + const { viewModel } = this.state; + + let popover =
    ; + if (this.state.headerItem !== undefined) { + popover = ( + + ); + } + + return ( +
    + + {popover} +
    + ); + } + + prevClick = schedulerData => { + schedulerData.prev(); + schedulerData.setEvents(DemoData.events); + this.setState({ + viewModel: schedulerData, + }); + }; + + nextClick = schedulerData => { + schedulerData.next(); + schedulerData.setEvents(DemoData.events); + this.setState({ + viewModel: schedulerData, + }); + }; + + onViewChange = (schedulerData, view) => { + schedulerData.setViewType(view.viewType, view.showAgenda, view.isEventPerspective); + schedulerData.setEvents(DemoData.events); + this.setState({ + viewModel: schedulerData, + }); + }; + + onSelectDate = (schedulerData, date) => { + schedulerData.setDate(date); + schedulerData.setEvents(DemoData.events); + this.setState({ + viewModel: schedulerData, + }); + }; + + eventClicked = (schedulerData, event) => { + alert(`You just clicked an event: {id: ${event.id}, title: ${event.title}}`); + }; + + ops1 = (schedulerData, event) => { + alert(`You just executed ops1 to event: {id: ${event.id}, title: ${event.title}}`); + }; + + ops2 = (schedulerData, event) => { + alert(`You just executed ops2 to event: {id: ${event.id}, title: ${event.title}}`); + }; + + newEvent = (schedulerData, slotId = '', slotName = '', start = '', end = '', type = '', item = '') => { + if (confirm(`Do you want to create a new event? {slotId: ${slotId}, slotName: ${slotName}, start: ${start}, end: ${end}, type: ${type}, item: ${item}}`)) { + let newFreshId = 0; + schedulerData.events.forEach(item => { + if (item.id >= newFreshId) newFreshId = item.id + 1; + }); + + let newEvent = { + id: newFreshId, + title: 'New event you just created', + start: start, + end: end, + resourceId: slotId, + bgColor: 'purple', + }; + schedulerData.addEvent(newEvent); + this.setState({ + viewModel: schedulerData, + }); + } + }; + + updateEventStart = (schedulerData, event, newStart) => { + if (confirm(`Do you want to adjust the start of the event? {eventId: ${event.id}, eventTitle: ${event.title}, newStart: ${newStart}}`)) { + schedulerData.updateEventStart(event, newStart); + } + this.setState({ + viewModel: schedulerData, + }); + }; + + updateEventEnd = (schedulerData, event, newEnd) => { + if (confirm(`Do you want to adjust the end of the event? {eventId: ${event.id}, eventTitle: ${event.title}, newEnd: ${newEnd}}`)) { + schedulerData.updateEventEnd(event, newEnd); + } + this.setState({ + viewModel: schedulerData, + }); + }; + + moveEvent = (schedulerData, event, slotId, slotName, start, end) => { + if ( + confirm( + `Do you want to move the event? {eventId: ${event.id}, eventTitle: ${event.title}, newSlotId: ${slotId}, newSlotName: ${slotName}, newStart: ${start}, newEnd: ${end}` + ) + ) { + schedulerData.moveEvent(event, slotId, slotName, start, end); + this.setState({ + viewModel: schedulerData, + }); + } + }; + + onSetAddMoreState = newState => { + if (newState === undefined) { + this.setState({ + headerItem: undefined, + left: 0, + top: 0, + height: 0, + }); + } else { + this.setState({ + ...newState, + }); + } + }; + + toggleExpandFunc = (schedulerData, slotId) => { + schedulerData.toggleExpandStatus(slotId); + this.setState({ + viewModel: schedulerData, + }); + }; +} + +export default wrapperFun(AddMore); diff --git a/src/examples/pages/Add-More/functional-based.jsx b/src/examples/pages/Add-More/functional-based.jsx new file mode 100644 index 0000000..6b86056 --- /dev/null +++ b/src/examples/pages/Add-More/functional-based.jsx @@ -0,0 +1,198 @@ +import React, { useEffect, useReducer, useState } from 'react'; +import { Scheduler, SchedulerData, ViewType, AddMorePopover, DemoData, wrapperFun } from '../../../index'; + +let schedulerData; + +const initialState = { + showScheduler: false, + viewModel: {}, +}; + +function reducer(state, action) { + switch (action.type) { + case 'INITIALIZE': + return { showScheduler: true, viewModel: action.payload }; + case 'UPDATE_SCHEDULER': + return { ...state, viewModel: action.payload }; + default: + return state; + } +} + +function AddMore() { + const [state, dispatch] = useReducer(reducer, initialState); + + const [popoverState, setPopoverState] = useState({ + headerItem: undefined, + left: 0, + top: 0, + height: 0, + }); + + useEffect(() => { + schedulerData = new SchedulerData('2022-12-18', ViewType.Week, false, false, { + besidesWidth: 350, + dayMaxEvents: 2, + weekMaxEvents: 4, + monthMaxEvents: 4, + quarterMaxEvents: 4, + yearMaxEvents: 4, + }); + schedulerData.localeDayjs.locale('en'); + schedulerData.setResources(DemoData.resources); + schedulerData.setEvents(DemoData.events); + + dispatch({ type: 'INITIALIZE', payload: schedulerData }); + }, []); + + const prevClick = schedulerData => { + schedulerData.prev(); + schedulerData.setEvents(DemoData.events); + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + }; + + const nextClick = schedulerData => { + schedulerData.next(); + schedulerData.setEvents(DemoData.events); + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + }; + + const onViewChange = (schedulerData, view) => { + schedulerData.setViewType(view.viewType, view.showAgenda, view.isEventPerspective); + schedulerData.setEvents(DemoData.events); + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + }; + + const onSelectDate = (schedulerData, date) => { + schedulerData.setDate(date); + schedulerData.setEvents(DemoData.events); + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + }; + + const eventClicked = (schedulerData, event) => { + alert(`You just clicked an event: {id: ${event.id}, title: ${event.title}}`); + }; + + const ops1 = (schedulerData, event) => { + alert(`You just executed ops1 to event: {id: ${event.id}, title: ${event.title}}`); + }; + + const ops2 = (schedulerData, event) => { + alert(`You just executed ops2 to event: {id: ${event.id}, title: ${event.title}}`); + }; + + const newEvent = (schedulerData, slotId, slotName, start, end, type, item) => { + if (confirm(`Do you want to create a new event? {slotId: ${slotId}, slotName: ${slotName}, start: ${start}, end: ${end}, type: ${type}, item: ${item}}`)) { + let newFreshId = 0; + schedulerData.events.forEach(item => { + if (item.id >= newFreshId) newFreshId = item.id + 1; + }); + + let newEvent = { + id: newFreshId, + title: 'New event you just created', + start: start, + end: end, + resourceId: slotId, + bgColor: 'purple', + }; + schedulerData.addEvent(newEvent); + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + } + }; + + const updateEventStart = (schedulerData, event, newStart) => { + if (confirm(`Do you want to adjust the start of the event? {eventId: ${event.id}, eventTitle: ${event.title}, newStart: ${newStart}}`)) { + schedulerData.updateEventStart(event, newStart); + } + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + }; + + const updateEventEnd = (schedulerData, event, newEnd) => { + if (confirm(`Do you want to adjust the end of the event? {eventId: ${event.id}, eventTitle: ${event.title}, newEnd: ${newEnd}}`)) { + schedulerData.updateEventEnd(event, newEnd); + } + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + }; + + const moveEvent = (schedulerData, event, slotId, slotName, start, end) => { + if ( + confirm( + `Do you want to move the event? {eventId: ${event.id}, eventTitle: ${event.title}, newSlotId: ${slotId}, newSlotName: ${slotName}, newStart: ${start}, newEnd: ${end}` + ) + ) { + schedulerData.moveEvent(event, slotId, slotName, start, end); + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + } + }; + + const onSetAddMoreState = newState => { + if (newState === undefined) { + setPopoverState({ + headerItem: undefined, + left: 0, + top: 0, + height: 0, + }); + } else { + setPopoverState({ + ...newState, + }); + } + }; + + const toggleExpandFunc = (schedulerData, slotId) => { + schedulerData.toggleExpandStatus(slotId); + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + }; + + let popover =
    ; + if (popoverState.headerItem !== undefined) { + popover = ( + + ); + } + + return ( + <> + {state.showScheduler && ( +
    + + {popover} +
    + )} + + ); +} + +export default wrapperFun(AddMore); diff --git a/src/examples/pages/Add-More/index.jsx b/src/examples/pages/Add-More/index.jsx new file mode 100644 index 0000000..eb67bd8 --- /dev/null +++ b/src/examples/pages/Add-More/index.jsx @@ -0,0 +1,20 @@ +import { Row, Typography } from 'antd'; +import React from 'react'; +import ClassBased from './class-based'; +import SourceCode from '../../components/SourceCode'; + +function Basic() { + return ( + <> + + + Add More Example + + + + + + ); +} + +export default Basic; diff --git a/src/examples/pages/Basic/class-based.jsx b/src/examples/pages/Basic/class-based.jsx new file mode 100644 index 0000000..4e69bef --- /dev/null +++ b/src/examples/pages/Basic/class-based.jsx @@ -0,0 +1,179 @@ +/* eslint-disable */ +import * as antdLocale from 'antd/locale/pt_BR'; +import * as dayjsLocale from 'dayjs/locale/pt-br'; +import React, { Component } from 'react'; + +import { DemoData, Scheduler, SchedulerData, ViewType, wrapperFun } from '../../../index'; + +class Basic extends Component { + constructor(props) { + super(props); + + const schedulerData = new SchedulerData('2022-12-22', ViewType.Week, false, false, { + besidesWidth: 300, + dayMaxEvents: 99, + weekMaxEvents: 9669, + monthMaxEvents: 9669, + quarterMaxEvents: 6599, + yearMaxEvents: 9956, + customMaxEvents: 9965, + eventItemPopoverTrigger: 'click', + schedulerContentHeight: '100%', + }); + + schedulerData.setSchedulerLocale(dayjsLocale); + schedulerData.setCalendarPopoverLocale(antdLocale); + schedulerData.setResources(DemoData.resources); + schedulerData.setEvents(DemoData.events); + this.state = { + viewModel: schedulerData, + }; + } + + render() { + const { viewModel } = this.state; + return ( + + ); + } + + prevClick = schedulerData => { + schedulerData.prev(); + schedulerData.setEvents(DemoData.events); + this.setState({ viewModel: schedulerData }); + }; + + nextClick = schedulerData => { + schedulerData.next(); + schedulerData.setEvents(DemoData.events); + this.setState({ viewModel: schedulerData }); + }; + + onViewChange = (schedulerData, view) => { + const start = new Date(); + schedulerData.setViewType(view.viewType, view.showAgenda, view.isEventPerspective); + schedulerData.setEvents(DemoData.events); + this.setState({ viewModel: schedulerData }); + function secondsBetween(date1, date2) { + const diff = Math.abs(date1.getTime() - date2.getTime()); + return diff / 1000; + } + + console.log('Elapsed seconds: ' + secondsBetween(start, new Date())); + }; + + onSelectDate = (schedulerData, date) => { + schedulerData.setDate(date); + schedulerData.setEvents(DemoData.events); + this.setState({ + viewModel: schedulerData, + }); + }; + + eventClicked = (schedulerData, event) => { + alert(`You just clicked an event: {id: ${event.id}, title: ${event.title}}`); + }; + + ops1 = (schedulerData, event) => { + alert(`You just executed ops1 to event: {id: ${event.id}, title: ${event.title}}`); + }; + + ops2 = (schedulerData, event) => { + alert(`You just executed ops2 to event: {id: ${event.id}, title: ${event.title}}`); + }; + + newEvent = (schedulerData, slotId, slotName, start, end, type, item) => { + if (confirm(`Do you want to create a new event? {slotId: ${slotId}, slotName: ${slotName}, start: ${start}, end: ${end}, type: ${type}, item: ${item}}`)) { + let newFreshId = 0; + schedulerData.events.forEach(item => { + if (item.id >= newFreshId) newFreshId = item.id + 1; + }); + + let newEvent = { + id: newFreshId, + title: 'New event you just created', + start: start, + end: end, + resourceId: slotId, + bgColor: 'purple', + }; + schedulerData.addEvent(newEvent); + this.setState({ viewModel: schedulerData }); + } + }; + + updateEventStart = (schedulerData, event, newStart) => { + if (confirm(`Do you want to adjust the start of the event? {eventId: ${event.id}, eventTitle: ${event.title}, newStart: ${newStart}}`)) { + schedulerData.updateEventStart(event, newStart); + } + this.setState({ viewModel: schedulerData }); + }; + + updateEventEnd = (schedulerData, event, newEnd) => { + if (confirm(`Do you want to adjust the end of the event? {eventId: ${event.id}, eventTitle: ${event.title}, newEnd: ${newEnd}}`)) { + schedulerData.updateEventEnd(event, newEnd); + } + this.setState({ viewModel: schedulerData }); + }; + + moveEvent = (schedulerData, event, slotId, slotName, start, end) => { + if ( + confirm( + `Do you want to move the event? {eventId: ${event.id}, eventTitle: ${event.title}, newSlotId: ${slotId}, newSlotName: ${slotName}, newStart: ${start}, newEnd: ${end}` + ) + ) { + schedulerData.moveEvent(event, slotId, slotName, start, end); + this.setState({ viewModel: schedulerData }); + } + }; + + onScrollRight = (schedulerData, schedulerContent, maxScrollLeft) => { + if (schedulerData.ViewTypes === ViewType.Day) { + schedulerData.next(); + schedulerData.setEvents(DemoData.events); + this.setState({ viewModel: schedulerData }); + + schedulerContent.scrollLeft = maxScrollLeft - 10; + } + }; + + onScrollLeft = (schedulerData, schedulerContent) => { + if (schedulerData.ViewTypes === ViewType.Day) { + schedulerData.prev(); + schedulerData.setEvents(DemoData.events); + this.setState({ viewModel: schedulerData }); + + schedulerContent.scrollLeft = 10; + } + }; + + onScrollTop = () => console.log('onScrollTop'); + + onScrollBottom = () => console.log('onScrollBottom'); + + toggleExpandFunc = (schedulerData, slotId) => { + schedulerData.toggleExpandStatus(slotId); + this.setState({ viewModel: schedulerData }); + }; +} + +export default wrapperFun(Basic); \ No newline at end of file diff --git a/src/examples/pages/Basic/index.jsx b/src/examples/pages/Basic/index.jsx new file mode 100644 index 0000000..c7fb357 --- /dev/null +++ b/src/examples/pages/Basic/index.jsx @@ -0,0 +1,18 @@ +import { Row, Typography } from 'antd'; +import React from 'react'; +import ClassBased from './class-based'; +import SourceCode from '../../components/SourceCode'; + +function Basic() { + return ( + <> + + Basic Example + + + + + ); +} + +export default Basic; diff --git a/src/examples/pages/Custom-Time/class-based.jsx b/src/examples/pages/Custom-Time/class-based.jsx new file mode 100644 index 0000000..dde0628 --- /dev/null +++ b/src/examples/pages/Custom-Time/class-based.jsx @@ -0,0 +1,184 @@ +/* eslint-disable */ +import * as antdLocale from 'antd/locale/pt_BR'; +import * as dayjsLocale from 'dayjs/locale/pt-br'; +import React, { Component } from 'react'; + +import { DemoData, Scheduler, SchedulerData, ViewType, wrapperFun } from '../../../index'; + +class CustomTime extends Component { + constructor(props) { + super(props); + + const schedulerData = new SchedulerData( + '2022-12-22', + ViewType.Day, + false, + false, + { + besidesWidth: 300, + dayMaxEvents: 99, + dayStartFrom: 8, + dayStopTo: 18, + customMaxEvents: 9965, + eventItemPopoverTrigger: 'click', + schedulerContentHeight: '100%', + views: [], + }, + ); + + schedulerData.setSchedulerLocale(dayjsLocale); + schedulerData.setCalendarPopoverLocale(antdLocale); + schedulerData.setResources(DemoData.resources); + schedulerData.setEvents(DemoData.events); + this.state = { + viewModel: schedulerData, + }; + } + + render() { + const { viewModel } = this.state; + return ( + + ); + } + + prevClick = schedulerData => { + schedulerData.prev(); + schedulerData.setEvents(DemoData.events); + this.setState({ viewModel: schedulerData }); + }; + + nextClick = schedulerData => { + schedulerData.next(); + schedulerData.setEvents(DemoData.events); + this.setState({ viewModel: schedulerData }); + }; + + onViewChange = (schedulerData, view) => { + const start = new Date(); + schedulerData.setViewType(view.viewType, view.showAgenda, view.isEventPerspective); + schedulerData.setEvents(DemoData.events); + this.setState({ viewModel: schedulerData }); + function secondsBetween(date1, date2) { + const diff = Math.abs(date1.getTime() - date2.getTime()); + return diff / 1000; + } + + console.log('Elapsed seconds: ' + secondsBetween(start, new Date())); + }; + + onSelectDate = (schedulerData, date) => { + schedulerData.setDate(date); + schedulerData.setEvents(DemoData.events); + this.setState({ + viewModel: schedulerData, + }); + }; + + eventClicked = (schedulerData, event) => { + alert(`You just clicked an event: {id: ${event.id}, title: ${event.title}}`); + }; + + ops1 = (schedulerData, event) => { + alert(`You just executed ops1 to event: {id: ${event.id}, title: ${event.title}}`); + }; + + ops2 = (schedulerData, event) => { + alert(`You just executed ops2 to event: {id: ${event.id}, title: ${event.title}}`); + }; + + newEvent = (schedulerData, slotId, slotName, start, end, type, item) => { + if (confirm(`Do you want to create a new event? {slotId: ${slotId}, slotName: ${slotName}, start: ${start}, end: ${end}, type: ${type}, item: ${item}}`)) { + let newFreshId = 0; + schedulerData.events.forEach(item => { + if (item.id >= newFreshId) newFreshId = item.id + 1; + }); + + let newEvent = { + id: newFreshId, + title: 'New event you just created', + start: start, + end: end, + resourceId: slotId, + bgColor: 'purple', + }; + schedulerData.addEvent(newEvent); + this.setState({ viewModel: schedulerData }); + } + }; + + updateEventStart = (schedulerData, event, newStart) => { + if (confirm(`Do you want to adjust the start of the event? {eventId: ${event.id}, eventTitle: ${event.title}, newStart: ${newStart}}`)) { + schedulerData.updateEventStart(event, newStart); + } + this.setState({ viewModel: schedulerData }); + }; + + updateEventEnd = (schedulerData, event, newEnd) => { + if (confirm(`Do you want to adjust the end of the event? {eventId: ${event.id}, eventTitle: ${event.title}, newEnd: ${newEnd}}`)) { + schedulerData.updateEventEnd(event, newEnd); + } + this.setState({ viewModel: schedulerData }); + }; + + moveEvent = (schedulerData, event, slotId, slotName, start, end) => { + if ( + confirm( + `Do you want to move the event? {eventId: ${event.id}, eventTitle: ${event.title}, newSlotId: ${slotId}, newSlotName: ${slotName}, newStart: ${start}, newEnd: ${end}` + ) + ) { + schedulerData.moveEvent(event, slotId, slotName, start, end); + this.setState({ viewModel: schedulerData }); + } + }; + + onScrollRight = (schedulerData, schedulerContent, maxScrollLeft) => { + if (schedulerData.ViewTypes === ViewType.Day) { + schedulerData.next(); + schedulerData.setEvents(DemoData.events); + this.setState({ viewModel: schedulerData }); + + schedulerContent.scrollLeft = maxScrollLeft - 10; + } + }; + + onScrollLeft = (schedulerData, schedulerContent) => { + if (schedulerData.ViewTypes === ViewType.Day) { + schedulerData.prev(); + schedulerData.setEvents(DemoData.events); + this.setState({ viewModel: schedulerData }); + + schedulerContent.scrollLeft = 10; + } + }; + + onScrollTop = () => console.log('onScrollTop'); + + onScrollBottom = () => console.log('onScrollBottom'); + + toggleExpandFunc = (schedulerData, slotId) => { + schedulerData.toggleExpandStatus(slotId); + this.setState({ viewModel: schedulerData }); + }; +} + +export default wrapperFun(CustomTime); diff --git a/src/examples/pages/Custom-Time/index.jsx b/src/examples/pages/Custom-Time/index.jsx new file mode 100644 index 0000000..bf7cb02 --- /dev/null +++ b/src/examples/pages/Custom-Time/index.jsx @@ -0,0 +1,20 @@ +import { Row, Typography } from 'antd'; +import React from 'react'; +import ClassBased from './class-based'; +import SourceCode from '../../components/SourceCode'; + +function CustomTime() { + return ( + <> + + + Custom Time Example + + + + + + ); +} + +export default CustomTime; diff --git a/src/examples/pages/Drag-And-Drop/class-based.jsx b/src/examples/pages/Drag-And-Drop/class-based.jsx new file mode 100644 index 0000000..496ff88 --- /dev/null +++ b/src/examples/pages/Drag-And-Drop/class-based.jsx @@ -0,0 +1,209 @@ +/* eslint-disable */ +import { Col, Row, Typography } from 'antd'; +import React, { Component } from 'react'; +import { DemoData, DnDSource, Scheduler, SchedulerData, ViewType, wrapperFun } from '../../../index'; +import ResourceItem from '../../components/ResourceItem'; +import ResourceList from '../../components/ResourceList'; +import TaskItem from '../../components/TaskItem'; +import TaskList from '../../components/TaskList'; +import { DnDTypes } from '../../helpers/DnDTypes'; + +class DragAndDrop extends Component { + constructor(props) { + super(props); + + const schedulerData = new SchedulerData('2022-12-18', ViewType.Month, false, false, { + schedulerMaxHeight: 500, + besidesWidth: window.innerWidth <= 1600 ? 400 : 500, + views: [ + { viewName: 'Agenda View', viewType: ViewType.Month, showAgenda: true, isEventPerspective: false }, + { viewName: 'Resource View', viewType: ViewType.Month, showAgenda: false, isEventPerspective: false }, + { viewName: 'Task View', viewType: ViewType.Month, showAgenda: false, isEventPerspective: true }, + ], + }); + schedulerData.localeDayjs.locale('en'); + schedulerData.setResources(DemoData.resources); + schedulerData.setEvents(DemoData.eventsForTaskView); + this.state = { + viewModel: schedulerData, + taskDndSource: new DnDSource(props => props.task, TaskItem, true, DnDTypes.TASK), + resourceDndSource: new DnDSource(props => props.resource, ResourceItem, true, DnDTypes.RESOURCE), + }; + } + + render() { + const { viewModel, taskDndSource, resourceDndSource } = this.state; + + return ( +
    + + + {viewModel.isEventPerspective + ? 'Drag a resource from outside and drop to the resource view.' + : 'Drag a task from outside and drop to the resource view'} + + + + + + + + {viewModel.isEventPerspective ? ( + + ) : ( + + )} + + +
    + ); + } + + prevClick = schedulerData => { + schedulerData.prev(); + schedulerData.setEvents(DemoData.eventsForTaskView); + this.setState({ + viewModel: schedulerData, + }); + }; + + nextClick = schedulerData => { + schedulerData.next(); + schedulerData.setEvents(DemoData.eventsForTaskView); + this.setState({ + viewModel: schedulerData, + }); + }; + + onViewChange = (schedulerData, view) => { + schedulerData.setViewType(view.viewType, view.showAgenda, view.isEventPerspective); + schedulerData.config.creatable = !view.isEventPerspective; + schedulerData.setEvents(DemoData.eventsForTaskView); + this.setState({ + viewModel: schedulerData, + }); + }; + + onSelectDate = (schedulerData, date) => { + schedulerData.setDate(date); + schedulerData.setEvents(DemoData.eventsForTaskView); + this.setState({ + viewModel: schedulerData, + }); + }; + + eventClicked = (schedulerData, event) => { + alert(`You just clicked an event: {id: ${event.id}, title: ${event.title}}`); + }; + + ops1 = (schedulerData, event) => { + alert(`You just executed ops1 to event: {id: ${event.id}, title: ${event.title}}`); + }; + + ops2 = (schedulerData, event) => { + alert(`You just executed ops2 to event: {id: ${event.id}, title: ${event.title}}`); + }; + + newEvent = (schedulerData, slotId, slotName, start, end, type, item) => { + if (confirm(`Do you want to create a new event? {slotId: ${slotId}, slotName: ${slotName}, start: ${start}, end: ${end}, type: ${type}, item: ${item}}`)) { + let newFreshId = 0; + schedulerData.events.forEach(item => { + if (item.id >= newFreshId) newFreshId = item.id + 1; + }); + + let newEvent = { + id: newFreshId, + title: 'New event you just created', + start, + end, + resourceId: slotId, + bgColor: 'purple', + }; + + if (type === DnDTypes.RESOURCE) { + newEvent = { + ...newEvent, + groupId: slotId, + groupName: slotName, + resourceId: item.id, + }; + } else if (type === DnDTypes.TASK) { + newEvent = { + ...newEvent, + groupId: item.id, + groupName: item.name, + }; + } + + schedulerData.addEvent(newEvent); + this.setState({ + viewModel: schedulerData, + }); + } + }; + + updateEventStart = (schedulerData, event, newStart) => { + if (confirm(`Do you want to adjust the start of the event? {eventId: ${event.id}, eventTitle: ${event.title}, newStart: ${newStart}}`)) { + schedulerData.updateEventStart(event, newStart); + } + this.setState({ + viewModel: schedulerData, + }); + }; + + updateEventEnd = (schedulerData, event, newEnd) => { + if (confirm(`Do you want to adjust the end of the event? {eventId: ${event.id}, eventTitle: ${event.title}, newEnd: ${newEnd}}`)) { + schedulerData.updateEventEnd(event, newEnd); + } + this.setState({ + viewModel: schedulerData, + }); + }; + + moveEvent = (schedulerData, event, slotId, slotName, start, end) => { + if ( + confirm( + `Do you want to move the event? {eventId: ${event.id}, eventTitle: ${event.title}, newSlotId: ${slotId}, newSlotName: ${slotName}, newStart: ${start}, newEnd: ${end}`, + ) + ) { + schedulerData.moveEvent(event, slotId, slotName, start, end); + this.setState({ + viewModel: schedulerData, + }); + } + }; + + movingEvent = (schedulerData, slotId, slotName, newStart, newEnd, action, type, item) => { + console.log('moving event', schedulerData, slotId, slotName, newStart, newEnd, action, type, item); + }; + + subtitleGetter = (schedulerData, event) => (schedulerData.isEventPerspective ? schedulerData.getResourceById(event.resourceId).name : event.groupName); + + toggleExpandFunc = (schedulerData, slotId) => { + schedulerData.toggleExpandStatus(slotId); + this.setState({ + viewModel: schedulerData, + }); + }; +} + +export default wrapperFun(DragAndDrop); diff --git a/src/examples/pages/Drag-And-Drop/functional-based.jsx b/src/examples/pages/Drag-And-Drop/functional-based.jsx new file mode 100644 index 0000000..06b564f --- /dev/null +++ b/src/examples/pages/Drag-And-Drop/functional-based.jsx @@ -0,0 +1,213 @@ +import { Col, Row, Typography } from 'antd'; +import React, { useEffect, useReducer, useState } from 'react'; +import { DemoData, DnDSource, Scheduler, SchedulerData, ViewType, wrapperFun } from '../../../index'; +import ResourceItem from '../../components/ResourceItem'; +import ResourceList from '../../components/ResourceList'; +import TaskItem from '../../components/TaskItem'; +import TaskList from '../../components/TaskList'; +import { DnDTypes } from '../../helpers/DnDTypes'; + +const initialState = { + showScheduler: false, + viewModel: {}, +}; + +function reducer(state, action) { + switch (action.type) { + case 'INITIALIZE': + return { showScheduler: true, viewModel: action.payload }; + case 'UPDATE_SCHEDULER': + return { ...state, viewModel: action.payload }; + default: + return state; + } +} + +let schedulerData; +function DragAndDrop() { + const [state, dispatch] = useReducer(reducer, initialState); + const [taskDndSource, setTaskDndSource] = useState(new DnDSource(props => props.task, TaskItem, true, DnDTypes.TASK)); + const [resourceDndSource, setResourceDndSource] = useState(new DnDSource(props => props.resource, ResourceItem, true, DnDTypes.RESOURCE)); + + useEffect(() => { + schedulerData = new SchedulerData('2022-12-18', ViewType.Month, false, false, { + schedulerMaxHeight: 500, + besidesWidth: window.innerWidth <= 1600 ? 400 : 500, + views: [ + { viewName: 'Agenda View', viewType: ViewType.Month, showAgenda: true, isEventPerspective: false }, + { viewName: 'Resource View', viewType: ViewType.Month, showAgenda: false, isEventPerspective: false }, + { viewName: 'Task View', viewType: ViewType.Month, showAgenda: false, isEventPerspective: true }, + ], + }); + schedulerData.localeDayjs.locale('en'); + schedulerData.setResources(DemoData.resources); + schedulerData.setEvents(DemoData.eventsForTaskView); + + dispatch({ type: 'INITIALIZE', payload: schedulerData }); + setTaskDndSource(new DnDSource(props => props.task, TaskItem, true, DnDTypes.TASK)); + setResourceDndSource(new DnDSource(props => props.resource, ResourceItem, true, DnDTypes.RESOURCE)); + + return () => { + schedulerData = null; + }; + }, []); + + const prevClick = schedulerData => { + schedulerData.prev(); + schedulerData.setEvents(DemoData.eventsForTaskView); + this.setState({ viewModel: schedulerData }); + }; + + const nextClick = schedulerData => { + schedulerData.next(); + schedulerData.setEvents(DemoData.eventsForTaskView); + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + }; + + const onViewChange = (schedulerData, view) => { + schedulerData.setViewType(view.viewType, view.showAgenda, view.isEventPerspective); + schedulerData.config.creatable = !view.isEventPerspective; + schedulerData.setEvents(DemoData.eventsForTaskView); + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + }; + + const onSelectDate = (schedulerData, date) => { + schedulerData.setDate(date); + schedulerData.setEvents(DemoData.eventsForTaskView); + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + }; + + const eventClicked = (schedulerData, event) => { + alert(`You just clicked an event: {id: ${event.id}, title: ${event.title}}`); + }; + + const ops1 = (schedulerData, event) => { + alert(`You just executed ops1 to event: {id: ${event.id}, title: ${event.title}}`); + }; + + const ops2 = (schedulerData, event) => { + alert(`You just executed ops2 to event: {id: ${event.id}, title: ${event.title}}`); + }; + + const newEvent = (schedulerData, slotId, slotName, start, end, type, item) => { + if (confirm(`Do you want to create a new event? {slotId: ${slotId}, slotName: ${slotName}, start: ${start}, end: ${end}, type: ${type}, item: ${item}}`)) { + let newFreshId = 0; + schedulerData.events.forEach(item => { + if (item.id >= newFreshId) newFreshId = item.id + 1; + }); + + let newEvent = { + id: newFreshId, + title: 'New event you just created', + start: start, + end: end, + resourceId: slotId, + bgColor: 'purple', + }; + + if (type === DnDTypes.RESOURCE) { + newEvent = { + ...newEvent, + groupId: slotId, + groupName: slotName, + resourceId: item.id, + }; + } else if (type === DnDTypes.TASK) { + newEvent = { + ...newEvent, + groupId: item.id, + groupName: item.name, + }; + } + + schedulerData.addEvent(newEvent); + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + } + }; + + const updateEventStart = (schedulerData, event, newStart) => { + if (confirm(`Do you want to adjust the start of the event? {eventId: ${event.id}, eventTitle: ${event.title}, newStart: ${newStart}}`)) { + schedulerData.updateEventStart(event, newStart); + } + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + }; + + const updateEventEnd = (schedulerData, event, newEnd) => { + if (confirm(`Do you want to adjust the end of the event? {eventId: ${event.id}, eventTitle: ${event.title}, newEnd: ${newEnd}}`)) { + schedulerData.updateEventEnd(event, newEnd); + } + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + }; + + const moveEvent = (schedulerData, event, slotId, slotName, start, end) => { + if ( + confirm( + `Do you want to move the event? {eventId: ${event.id}, eventTitle: ${event.title}, newSlotId: ${slotId}, newSlotName: ${slotName}, newStart: ${start}, newEnd: ${end}` + ) + ) { + schedulerData.moveEvent(event, slotId, slotName, start, end); + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + } + }; + + const movingEvent = (schedulerData, slotId, slotName, newStart, newEnd, action, type, item) => { + console.log('moving event', schedulerData, slotId, slotName, newStart, newEnd, action, type, item); + }; + + const subtitleGetter = (schedulerData, event) => { + return schedulerData.isEventPerspective ? schedulerData.getResourceById(event.resourceId).name : event.groupName; + }; + + const toggleExpandFunc = (schedulerData, slotId) => { + schedulerData.toggleExpandStatus(slotId); + dispatch({ type: 'UPDATE_SCHEDULER', payload: schedulerData }); + }; + + return ( + <> + {state.showScheduler && ( + <> + + + {state.showScheduler && + (state.viewModel?.isEventPerspective ? 'Drag a resource from outside and drop to the resource view.' : 'Drag a task from outside and drop to the resource view')} + + + + + + + + {state.viewModel.isEventPerspective ? ( + + ) : ( + + )} + + + + )} + + ); +} + +export default wrapperFun(DragAndDrop); diff --git a/src/examples/pages/Drag-And-Drop/index.jsx b/src/examples/pages/Drag-And-Drop/index.jsx new file mode 100644 index 0000000..4cc03b5 --- /dev/null +++ b/src/examples/pages/Drag-And-Drop/index.jsx @@ -0,0 +1,20 @@ +import { Row, Typography } from 'antd'; +import React from 'react'; +import ClassBased from './class-based'; +import SourceCode from '../../components/SourceCode'; + +function Basic() { + return ( + <> + + + Drag and Drop Example + + + + + + ); +} + +export default Basic; diff --git a/src/examples/pages/Home.jsx b/src/examples/pages/Home.jsx new file mode 100644 index 0000000..461fb7e --- /dev/null +++ b/src/examples/pages/Home.jsx @@ -0,0 +1,26 @@ +import React from 'react'; +import { Typography, Button } from 'antd'; +import { useNavigate } from 'react-router-dom'; + +const { Title, Paragraph } = Typography; + +function Home() { + const navigate = useNavigate(); + return ( +
    +
    + React Big Schedule + + React Big Schedule is a powerful and intuitive scheduler and resource planning solution built with React. Seamlessly integrate this modern, browser-compatible component + into your applications to effectively manage time, appointments, and resources. With drag-and-drop functionality, interactive UI, and granular views, React Big Schedule + empowers you to effortlessly schedule and allocate resources with precision. + + +
    +
    + ); +} + +export default Home; diff --git a/src/examples/pages/Read-Only/class-based.jsx b/src/examples/pages/Read-Only/class-based.jsx new file mode 100644 index 0000000..d2aa9e9 --- /dev/null +++ b/src/examples/pages/Read-Only/class-based.jsx @@ -0,0 +1,95 @@ +/* eslint-disable */ + +import React, { Component } from 'react'; + +import { Scheduler, SchedulerData, ViewType, DemoData, wrapperFun } from '../../../index'; + +class Readonly extends Component { + constructor(props) { + super(props); + + const schedulerData = new SchedulerData('2022-12-22', ViewType.Week, false, false, { + besidesWidth: 350, + startResizable: false, + endResizable: false, + movable: false, + creatable: false, + }); + schedulerData.localeDayjs.locale('en'); + schedulerData.setResources(DemoData.resources); + schedulerData.setEvents(DemoData.events); + this.state = { + viewModel: schedulerData, + }; + } + + render() { + const { viewModel } = this.state; + return ( + + ); + } + + prevClick = schedulerData => { + schedulerData.prev(); + schedulerData.setEvents(DemoData.events); + this.setState({ + viewModel: schedulerData, + }); + }; + + nextClick = schedulerData => { + schedulerData.next(); + schedulerData.setEvents(DemoData.events); + this.setState({ + viewModel: schedulerData, + }); + }; + + onViewChange = (schedulerData, view) => { + schedulerData.setViewType(view.viewType, view.showAgenda, view.isEventPerspective); + schedulerData.setEvents(DemoData.events); + this.setState({ + viewModel: schedulerData, + }); + }; + + onSelectDate = (schedulerData, date) => { + schedulerData.setDate(date); + schedulerData.setEvents(DemoData.events); + this.setState({ + viewModel: schedulerData, + }); + }; + + eventClicked = (schedulerData, event) => { + alert(`You just clicked an event: {id: ${event.id}, title: ${event.title}}`); + }; + + ops1 = (schedulerData, event) => { + alert(`You just executed ops1 to event: {id: ${event.id}, title: ${event.title}}`); + }; + + ops2 = (schedulerData, event) => { + alert(`You just executed ops2 to event: {id: ${event.id}, title: ${event.title}}`); + }; + + toggleExpandFunc = (schedulerData, slotId) => { + schedulerData.toggleExpandStatus(slotId); + this.setState({ viewModel: schedulerData }); + }; +} + +export default wrapperFun(Readonly); diff --git a/src/examples/pages/Read-Only/index.jsx b/src/examples/pages/Read-Only/index.jsx new file mode 100644 index 0000000..8d6cb04 --- /dev/null +++ b/src/examples/pages/Read-Only/index.jsx @@ -0,0 +1,18 @@ +import { Row, Typography } from 'antd'; +import React from 'react'; +import ClassBased from './class-based'; +import SourceCode from '../../components/SourceCode'; + +function Basic() { + return ( + <> + + Read Only Example + + + + + ); +} + +export default Basic; diff --git a/webpack.config.js b/webpack.config.js index 960420d..6e97bb7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -42,8 +42,8 @@ module.exports = { }, plugins: [ new HtmlWebpackPlugin({ - template: './src/index.html', - // favicon: './src/assets/banner.png', + template: './src/examples/index.html', + favicon: './src/examples/assets/banner.png', }), new ESLintPlugin({ emitError: true,