@orbe-agro/client-core 3.3.8 → 3.3.9
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/lib/@ecme/components/shared/DataTable.js +16 -16
- package/dist/lib/@ecme/components/shared/DataTable.js.map +1 -1
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/Board.js +185 -103
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/Board.js.map +1 -1
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardCard.js.map +1 -1
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js +47 -53
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js.map +1 -1
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardColumn.js +52 -34
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardColumn.js.map +1 -1
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardTitle.js +63 -109
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardTitle.js.map +1 -1
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/ScrumBoardHeader.js +30 -30
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/ScrumBoardHeader.js.map +1 -1
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js +240 -119
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/PrecoDia/submenu.precoDia.js +16 -0
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/PrecoDia/submenu.precoDia.js.map +1 -0
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/certidaoDePenhor/{certidaoDePenhor.js → submenu.certidaoDePenhor.js} +1 -1
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/certidaoDePenhor/submenu.certidaoDePenhor.js.map +1 -0
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/compraDeGraos/{submenu.adm.js → submenu.contratoCompraGraos.js} +1 -1
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/compraDeGraos/submenu.contratoCompraGraos.js.map +1 -0
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/vendaDeGraos/{submenu.adm.js → submenu.vendaGraos.js} +1 -1
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/vendaDeGraos/submenu.vendaGraos.js.map +1 -0
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/categoria.submenu.js +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/categoria.submenu.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/formularioBase.submenu.js +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/formularioBase.submenu.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/grupoAtendimento.submenu.js +3 -3
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/grupoAtendimento.submenu.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/processo.submenu.js +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/processo.submenu.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/subcategoria.submenu.js +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/subcategoria.submenu.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/tipoProcesso.submenu.js +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/tipoProcesso.submenu.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/originacao/config/preContrato.submenu.js +3 -3
- package/dist/lib/base/configs/navigation.config/submenu/originacao/config/preContrato.submenu.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/originacao/originacao.submenu.js +7 -5
- package/dist/lib/base/configs/navigation.config/submenu/originacao/originacao.submenu.js.map +1 -1
- package/dist/lib/types/@ecme/components/shared/DataTable.d.ts +1 -0
- package/dist/lib/types/@ecme/views/concepts/projects/ScrumBoard/components/Board.d.ts +32 -0
- package/dist/lib/types/@ecme/views/concepts/projects/ScrumBoard/components/BoardCard.d.ts +0 -2
- package/dist/lib/types/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.d.ts +4 -3
- package/dist/lib/types/@ecme/views/concepts/projects/ScrumBoard/components/BoardColumn.d.ts +2 -0
- package/dist/lib/types/@ecme/views/concepts/projects/ScrumBoard/components/ScrumBoardHeader.d.ts +9 -2
- package/dist/lib/types/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.d.ts +29 -2
- package/dist/lib/types/@ecme/views/concepts/projects/ScrumBoard/types.d.ts +3 -0
- package/dist/lib/types/base/configs/navigation.config/modules.submenu/originacao/PrecoDia/submenu.precoDia.d.ts +3 -0
- package/package.json +1 -1
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/certidaoDePenhor/certidaoDePenhor.js.map +0 -1
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/compraDeGraos/submenu.adm.js.map +0 -1
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/vendaDeGraos/submenu.adm.js.map +0 -1
- /package/dist/lib/types/base/configs/navigation.config/modules.submenu/originacao/certidaoDePenhor/{certidaoDePenhor.d.ts → submenu.certidaoDePenhor.d.ts} +0 -0
- /package/dist/lib/types/base/configs/navigation.config/modules.submenu/originacao/compraDeGraos/{submenu.adm.d.ts → submenu.contratoCompraGraos.d.ts} +0 -0
- /package/dist/lib/types/base/configs/navigation.config/modules.submenu/originacao/vendaDeGraos/{submenu.adm.d.ts → submenu.vendaGraos.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Board.js","sources":["../../../../../../../../lib/@ecme/views/concepts/projects/ScrumBoard/components/Board.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react'\nimport Dialog from '@/components/ui/Dialog'\nimport Spinner from '@/components/ui/Spinner'\nimport AdaptiveCard from '@/components/shared/AdaptiveCard'\nimport reorderDragable from '@/utils/reorderDragable'\nimport BoardColumn from './BoardColumn'\nimport ScrumBoardHeader from './ScrumBoardHeader'\nimport { useScrumBoardStore } from '../store/scrumBoardStore'\nimport sleep from '@/utils/sleep'\nimport reoderArray from '@/utils/reoderArray'\nimport {\n apiGetScrumBoards,\n apiGetProjectMembers,\n} from '@/services/ProjectService'\nimport {\n Droppable,\n DragDropContext,\n DraggableChildrenFn,\n} from '@hello-pangea/dnd'\nimport useSWR from 'swr'\nimport type {\n GetScrumBoardsResponse,\n GetProjectMembersResponse,\n Ticket,\n} from '../types'\nimport type { DropResult } from '@hello-pangea/dnd'\n\nexport type BoardProps = {\n containerHeight?: boolean\n useClone?: DraggableChildrenFn\n isCombineEnabled?: boolean\n withScrollableColumns?: boolean\n}\n\nconst TicketContent = lazy(() => import('./TicketContent'))\nconst AddNewTicketContent = lazy(() => import('./AddNewTicketContent'))\nconst AddNewMemberContent = lazy(() => import('./AddNewMemberContent'))\nconst AddNewColumnContent = lazy(() => import('./AddNewColumnContent'))\n\nconst Board = (props: BoardProps) => {\n const {\n columns,\n ordered,\n boardMembers,\n updateOrdered,\n updateColumns,\n updateBoardMembers,\n updateAllMembers,\n closeDialog,\n resetView,\n dialogView,\n dialogOpen,\n } = useScrumBoardStore()\n\n const {\n containerHeight,\n useClone,\n isCombineEnabled,\n withScrollableColumns,\n } = props\n\n useSWR(\n ['/api/projects/scrum-board'],\n () => apiGetScrumBoards<GetScrumBoardsResponse>(),\n {\n revalidateOnFocus: false,\n revalidateIfStale: false,\n revalidateOnReconnect: false,\n onSuccess: (data) => {\n updateOrdered(Object.keys(data))\n updateColumns(data)\n },\n },\n )\n\n useSWR(\n ['/api/projects/scrum-board/members'],\n () => apiGetProjectMembers<GetProjectMembersResponse>(),\n {\n revalidateOnFocus: false,\n revalidateIfStale: false,\n revalidateOnReconnect: false,\n onSuccess: (data) => {\n updateBoardMembers(data.participantMembers)\n updateAllMembers(data.allMembers)\n },\n },\n )\n\n const onDialogClose = async () => {\n closeDialog()\n await sleep(200)\n resetView()\n }\n\n const onDragEnd = (result: DropResult) => {\n if (result.combine) {\n if (result.type === 'COLUMN') {\n const shallow = [...ordered]\n shallow.splice(result.source.index, 1)\n updateOrdered(shallow)\n return\n }\n\n const column = columns[result.source.droppableId]\n const withQuoteRemoved = [...column]\n withQuoteRemoved.splice(result.source.index, 1)\n const newColumns = {\n ...columns,\n [result.source.droppableId]: withQuoteRemoved,\n }\n updateColumns(newColumns)\n return\n }\n\n if (!result.destination) {\n return\n }\n\n const source = result.source\n const destination = result.destination\n\n if (\n source.droppableId === destination.droppableId &&\n source.index === destination.index\n ) {\n return\n }\n\n if (result.type === 'COLUMN') {\n const newOrdered = reoderArray(\n ordered,\n source.index,\n destination.index,\n )\n updateOrdered(newOrdered)\n return\n }\n\n const data = reorderDragable<Record<string, Ticket[]>>({\n quoteMap: columns,\n source,\n destination,\n })\n\n updateColumns(data.quoteMap)\n }\n\n return (\n <>\n <AdaptiveCard className=\"h-full\" bodyClass=\"h-full flex flex-col\">\n <ScrumBoardHeader boardMembers={boardMembers} />\n <DragDropContext onDragEnd={(result) => onDragEnd(result)}>\n <Droppable\n droppableId=\"board\"\n type=\"COLUMN\"\n direction=\"horizontal\"\n ignoreContainerClipping={containerHeight}\n isCombineEnabled={isCombineEnabled}\n >\n {(provided) => (\n <div\n ref={provided.innerRef}\n className=\"scrumboard flex flex-col flex-auto w-full mb-2\"\n {...provided.droppableProps}\n >\n <div className=\"scrumboard-body flex max-w-full overflow-x-auto h-full mt-4 gap-4\">\n {ordered.map((key, index) => (\n <BoardColumn\n key={key}\n index={index}\n title={key}\n contents={columns[key]}\n isScrollable={withScrollableColumns}\n isCombineEnabled={isCombineEnabled}\n useClone={useClone}\n />\n ))}\n {provided.placeholder}\n </div>\n </div>\n )}\n </Droppable>\n </DragDropContext>\n </AdaptiveCard>\n <Dialog\n isOpen={dialogOpen}\n width={dialogView === 'TICKET' ? 700 : 520}\n closable={dialogView !== 'TICKET'}\n onClose={onDialogClose}\n onRequestClose={onDialogClose}\n >\n <Suspense\n fallback={\n <div className=\"my-4 text-center\">\n <Spinner />\n </div>\n }\n >\n {dialogView === 'TICKET' && (\n <TicketContent onTicketClose={onDialogClose} />\n )}\n {dialogView === 'NEW_TICKET' && <AddNewTicketContent />}\n {dialogView === 'NEW_COLUMN' && <AddNewColumnContent />}\n {dialogView === 'ADD_MEMBER' && <AddNewMemberContent />}\n </Suspense>\n </Dialog>\n </>\n )\n}\n\nexport default Board\n"],"names":["TicketContent","lazy","AddNewTicketContent","AddNewMemberContent","AddNewColumnContent","Board","props","columns","ordered","boardMembers","updateOrdered","updateColumns","updateBoardMembers","updateAllMembers","closeDialog","resetView","dialogView","dialogOpen","useScrumBoardStore","containerHeight","useClone","isCombineEnabled","withScrollableColumns","useSWR","apiGetScrumBoards","data","apiGetProjectMembers","onDialogClose","sleep","onDragEnd","result","shallow","withQuoteRemoved","newColumns","source","destination","newOrdered","reoderArray","reorderDragable","jsxs","Fragment","AdaptiveCard","jsx","ScrumBoardHeader","DragDropContext","Droppable","provided","key","index","BoardColumn","Dialog","Suspense","Spinner"],"mappings":";;;;;;;;;;;;;;;;AAkCA,MAAMA,IAAgBC,EAAK,MAAM,OAAO,oBAAiB,CAAC,GACpDC,IAAsBD,EAAK,MAAM,OAAO,0BAAuB,CAAC,GAChEE,IAAsBF,EAAK,MAAM,OAAO,0BAAuB,CAAC,GAChEG,IAAsBH,EAAK,MAAM,OAAO,0BAAuB,CAAC,GAEhEI,KAAQ,CAACC,MAAsB;AAC3B,QAAA;AAAA,IACF,SAAAC;AAAA,IACA,SAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,eAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,YAAAC;AAAA,MACAC,EAAmB,GAEjB;AAA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;AAAA,gBACAD,EAAS;AAAA,cAAA,EACd,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACJ;AAAA,MAAA,EAGZ,CAAA;AAAA,IAAA,GACJ;AAAA,IACA,gBAAAJ;AAAA,MAACQ;AAAA,MAAA;AAAA,QACG,QAAQjC;AAAA,QACR,OAAOD,MAAe,WAAW,MAAM;AAAA,QACvC,UAAUA,MAAe;AAAA,QACzB,SAASW;AAAA,QACT,gBAAgBA;AAAA,QAEhB,UAAA,gBAAAY;AAAA,UAACY;AAAA,UAAA;AAAA,YACG,UACK,gBAAAT,EAAA,OAAA,EAAI,WAAU,oBACX,UAAA,gBAAAA,EAACU,IAAQ,CAAA,GACb;AAAA,YAGH,UAAA;AAAA,cAAApC,MAAe,YACZ,gBAAA0B,EAAC1C,GAAc,EAAA,eAAe2B,GAAe;AAAA,cAEhDX,MAAe,gBAAgB,gBAAA0B,EAACxC,GAAoB,CAAA,CAAA;AAAA,cACpDc,MAAe,gBAAgB,gBAAA0B,EAACtC,GAAoB,CAAA,CAAA;AAAA,cACpDY,MAAe,gBAAgB,gBAAA0B,EAACvC,GAAoB,CAAA,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACzD;AAAA,IAAA;AAAA,EACJ,GACJ;AAER;"}
|
|
1
|
+
{"version":3,"file":"Board.js","sources":["../../../../../../../../lib/@ecme/views/concepts/projects/ScrumBoard/components/Board.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react'\nimport Dialog from '@/components/ui/Dialog'\nimport Spinner from '@/components/ui/Spinner'\nimport AdaptiveCard from '@/components/shared/AdaptiveCard'\nimport reorderDragable from '@/utils/reorderDragable'\nimport BoardColumn from './BoardColumn'\nimport ScrumBoardHeader from './ScrumBoardHeader'\nimport { useScrumBoardStore } from '../store/scrumBoardStore'\nimport sleep from '@/utils/sleep'\nimport reoderArray from '@/utils/reoderArray'\nimport {\n apiGetScrumBoards,\n apiGetProjectMembers,\n} from '@/services/ProjectService'\nimport {\n Droppable,\n DragDropContext,\n DraggableChildrenFn,\n} from '@hello-pangea/dnd'\nimport useSWR from 'swr'\nimport type {\n GetScrumBoardsResponse,\n GetProjectMembersResponse,\n Ticket,\n Columns,\n} from '../types'\nimport type { DropResult } from '@hello-pangea/dnd'\nimport { FileNotFound } from '@/assets'\n\ntype DialogTipo = 'transferir' | 'aceitar' | 'concluir' | 'cancelar'\n\nexport type BoardProps = {\n noData?: boolean\n containerHeight?: boolean\n useClone?: DraggableChildrenFn\n isCombineEnabled?: boolean\n isDisabledMoveColumn?: boolean\n isDisabledMoveCard?: boolean\n withScrollableColumns?: boolean\n sprintTitle?: string\n projectTitle?: string\n showActions?: boolean\n showHeaderInfo?: boolean\n tasks?: Record<string, Ticket[]>\n columns?: Columns\n ordered?: string[]\n showAssignedTo?: boolean\n showLabels?: boolean\n showDueDate?: boolean\n showDescription?: boolean\n showUserInitiator?: boolean\n showUserResponder?: boolean\n showActionsTicket?: boolean\n showChangeButton?: boolean\n showCloseTicket?: boolean\n showAceitarButton?: boolean\n showConcluirButton?: boolean\n showTransferirButton?: boolean\n showCancelarButton?: boolean\n showEditarButton?: boolean\n descriptionTitle?: string\n dueDateTitle?: string\n userInitiatorTitle?: string\n userResponderTitle?: string\n onOpenDialog?: (tipo: DialogTipo, id: number) => void\n goView?: (id: number) => void\n}\n\nconst TicketContent = lazy(() => import('./TicketContent'))\nconst AddNewTicketContent = lazy(() => import('./AddNewTicketContent'))\nconst AddNewMemberContent = lazy(() => import('./AddNewMemberContent'))\nconst AddNewColumnContent = lazy(() => import('./AddNewColumnContent'))\n\nconst Board = (props: BoardProps) => {\n const {\n columns,\n ordered,\n boardMembers,\n updateOrdered,\n updateColumns,\n updateBoardMembers,\n updateAllMembers,\n closeDialog,\n resetView,\n dialogView,\n dialogOpen,\n } = useScrumBoardStore()\n\n const {\n noData,\n containerHeight,\n useClone,\n isCombineEnabled,\n isDisabledMoveColumn = false,\n isDisabledMoveCard = false,\n withScrollableColumns,\n sprintTitle = 'Sprint 2',\n projectTitle = 'Web App Project',\n showActions = true,\n showHeaderInfo = true,\n showAssignedTo = true,\n showLabels = true,\n showDueDate = true,\n showDescription = true,\n showUserInitiator = true,\n showUserResponder = true,\n showActionsTicket = true,\n showChangeButton = true,\n showCloseTicket = true,\n showAceitarButton = true,\n showConcluirButton = true,\n showTransferirButton = true,\n showCancelarButton = true,\n showEditarButton = true,\n descriptionTitle = 'Descrição: ',\n dueDateTitle = 'Data: ',\n userInitiatorTitle = 'Participante 1: ',\n userResponderTitle = 'Participante 2: ',\n onOpenDialog,\n goView,\n } = props\n\n const currentColumns = props.columns ?? columns\n const currentOrdered = props.ordered ?? ordered\n\n const renderColumns =\n Object.keys(currentColumns).length > 0\n ? Object.keys(currentColumns)\n : (currentOrdered ?? [])\n\n useSWR(\n ['/api/projects/scrum-board'],\n () => apiGetScrumBoards<GetScrumBoardsResponse>(),\n {\n revalidateOnFocus: false,\n revalidateIfStale: false,\n revalidateOnReconnect: false,\n onSuccess: (data) => {\n updateOrdered(Object.keys(data))\n updateColumns(data)\n },\n },\n )\n\n useSWR(\n ['/api/projects/scrum-board/members'],\n () => apiGetProjectMembers<GetProjectMembersResponse>(),\n {\n revalidateOnFocus: false,\n revalidateIfStale: false,\n revalidateOnReconnect: false,\n onSuccess: (data) => {\n updateBoardMembers(data.participantMembers)\n updateAllMembers(data.allMembers)\n },\n },\n )\n\n const onDialogClose = async () => {\n closeDialog()\n await sleep(200)\n resetView()\n }\n\n const onDragEnd = (result: DropResult) => {\n if (result.combine) {\n if (result.type === 'COLUMN') {\n const shallow = [...ordered]\n shallow.splice(result.source.index, 1)\n updateOrdered(shallow)\n return\n }\n\n const column = columns[result.source.droppableId]\n const withQuoteRemoved = [...column]\n withQuoteRemoved.splice(result.source.index, 1)\n const newColumns = {\n ...columns,\n [result.source.droppableId]: withQuoteRemoved,\n }\n updateColumns(newColumns)\n return\n }\n\n if (!result.destination) {\n return\n }\n\n const source = result.source\n const destination = result.destination\n\n if (\n source.droppableId === destination.droppableId &&\n source.index === destination.index\n ) {\n return\n }\n\n if (result.type === 'COLUMN') {\n const newOrdered = reoderArray(\n ordered,\n source.index,\n destination.index,\n )\n updateOrdered(newOrdered)\n return\n }\n\n const data = reorderDragable<Record<string, Ticket[]>>({\n quoteMap: columns,\n source,\n destination,\n })\n\n updateColumns(data.quoteMap)\n }\n\n return (\n <>\n {noData ? (\n <div className=\"flex flex-col items-center gap-4\">\n <FileNotFound />\n <span className=\"font-semibold\">No data found!</span>\n </div>\n ) : (\n <>\n <AdaptiveCard\n className=\"h-full\"\n bodyClass=\"h-full flex flex-col\"\n >\n <ScrumBoardHeader\n boardMembers={boardMembers}\n sprintTitle={sprintTitle}\n projectTitle={projectTitle}\n showActions={showActions}\n showHeaderInfo={showHeaderInfo}\n />\n <DragDropContext\n onDragEnd={(result) => onDragEnd(result)}\n >\n <Droppable\n droppableId=\"board\"\n type=\"COLUMN\"\n direction=\"horizontal\"\n ignoreContainerClipping={containerHeight}\n isCombineEnabled={isCombineEnabled}\n >\n {(provided) => (\n <div\n ref={provided.innerRef}\n className=\"scrumboard flex flex-col flex-auto w-full mb-2\"\n {...provided.droppableProps}\n >\n <div className=\"scrumboard-body flex max-w-full overflow-x-auto h-full mt-4 gap-4\">\n {renderColumns.map((key, index) => (\n <BoardColumn\n key={key}\n index={index}\n title={key}\n contents={\n currentColumns[key]\n }\n isScrollable={\n withScrollableColumns\n }\n isCombineEnabled={\n isCombineEnabled\n }\n isDisabledMoveColumn={\n isDisabledMoveColumn\n }\n isDisabledMoveCard={\n isDisabledMoveCard\n }\n useClone={useClone}\n />\n ))}\n {provided.placeholder}\n </div>\n </div>\n )}\n </Droppable>\n </DragDropContext>\n </AdaptiveCard>\n <Dialog\n isOpen={dialogOpen}\n width={dialogView === 'TICKET' ? 700 : 520}\n closable={dialogView !== 'TICKET'}\n onClose={onDialogClose}\n onRequestClose={onDialogClose}\n >\n <Suspense\n fallback={\n <div className=\"my-4 text-center\">\n <Spinner />\n </div>\n }\n >\n {dialogView === 'TICKET' && (\n <TicketContent\n onTicketClose={onDialogClose}\n showAssignedTo={showAssignedTo}\n showLabels={showLabels}\n showDueDate={showDueDate}\n showDescription={showDescription}\n showUserInitiator={showUserInitiator}\n showUserResponder={showUserResponder}\n showActionsTicket={showActionsTicket}\n showChangeButton={showChangeButton}\n showCloseTicket={showCloseTicket}\n descriptionTitle={descriptionTitle}\n dueDateTitle={dueDateTitle}\n userInitiatorTitle={userInitiatorTitle}\n userResponderTitle={userResponderTitle}\n onOpenDialog={onOpenDialog}\n goView={goView}\n showAceitarButton={showAceitarButton}\n showConcluirButton={showConcluirButton}\n showTransferirButton={showTransferirButton}\n showCancelarButton={showCancelarButton}\n showEditarButton={showEditarButton}\n columns={currentColumns}\n />\n )}\n {dialogView === 'NEW_TICKET' && (\n <AddNewTicketContent />\n )}\n {dialogView === 'NEW_COLUMN' && (\n <AddNewColumnContent />\n )}\n {dialogView === 'ADD_MEMBER' && (\n <AddNewMemberContent />\n )}\n </Suspense>\n </Dialog>\n </>\n )}\n </>\n )\n}\n\nexport default Board\n"],"names":["TicketContent","lazy","AddNewTicketContent","AddNewMemberContent","AddNewColumnContent","Board","props","columns","ordered","boardMembers","updateOrdered","updateColumns","updateBoardMembers","updateAllMembers","closeDialog","resetView","dialogView","dialogOpen","useScrumBoardStore","noData","containerHeight","useClone","isCombineEnabled","isDisabledMoveColumn","isDisabledMoveCard","withScrollableColumns","sprintTitle","projectTitle","showActions","showHeaderInfo","showAssignedTo","showLabels","showDueDate","showDescription","showUserInitiator","showUserResponder","showActionsTicket","showChangeButton","showCloseTicket","showAceitarButton","showConcluirButton","showTransferirButton","showCancelarButton","showEditarButton","descriptionTitle","dueDateTitle","userInitiatorTitle","userResponderTitle","onOpenDialog","goView","currentColumns","currentOrdered","renderColumns","useSWR","apiGetScrumBoards","data","apiGetProjectMembers","onDialogClose","sleep","onDragEnd","result","shallow","withQuoteRemoved","newColumns","source","destination","newOrdered","reoderArray","reorderDragable","jsx","Fragment","jsxs","FileNotFound","AdaptiveCard","ScrumBoardHeader","DragDropContext","Droppable","provided","key","index","BoardColumn","Dialog","Suspense","Spinner"],"mappings":";;;;;;;;;;;;;;;;;;AAoEA,MAAMA,KAAgBC,EAAK,MAAM,OAAO,oBAAiB,CAAC,GACpDC,KAAsBD,EAAK,MAAM,OAAO,0BAAuB,CAAC,GAChEE,KAAsBF,EAAK,MAAM,OAAO,0BAAuB,CAAC,GAChEG,KAAsBH,EAAK,MAAM,OAAO,0BAAuB,CAAC,GAEhEI,KAAQ,CAACC,MAAsB;AAC3B,QAAA;AAAA,IACF,SAAAC;AAAA,IACA,SAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,eAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,YAAAC;AAAA,MACAC,GAAmB,GAEjB;AAAA,IACF,QAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,sBAAAC,IAAuB;AAAA,IACvB,oBAAAC,IAAqB;AAAA,IACrB,uBAAAC;AAAA,IACA,aAAAC,IAAc;AAAA,IACd,cAAAC,IAAe;AAAA,IACf,aAAAC,IAAc;AAAA,IACd,gBAAAC,IAAiB;AAAA,IACjB,gBAAAC,IAAiB;AAAA,IACjB,YAAAC,IAAa;AAAA,IACb,aAAAC,IAAc;AAAA,IACd,iBAAAC,IAAkB;AAAA,IAClB,mBAAAC,IAAoB;AAAA,IACpB,mBAAAC,IAAoB;AAAA,IACpB,mBAAAC,IAAoB;AAAA,IACpB,kBAAAC,IAAmB;AAAA,IACnB,iBAAAC,IAAkB;AAAA,IAClB,mBAAAC,IAAoB;AAAA,IACpB,oBAAAC,IAAqB;AAAA,IACrB,sBAAAC,IAAuB;AAAA,IACvB,oBAAAC,IAAqB;AAAA,IACrB,kBAAAC,IAAmB;AAAA,I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AA,gBAAA;AAAA,kBACG,eAAeyD;AAAA,kBACf,gBAAA3B;AAAA,kBACA,YAAAC;AAAA,kBACA,aAAAC;AAAA,kBACA,iBAAAC;AAAA,kBACA,mBAAAC;AAAA,kBACA,mBAAAC;AAAA,kBACA,mBAAAC;AAAA,kBACA,kBAAAC;AAAA,kBACA,iBAAAC;AAAA,kBACA,kBAAAM;AAAA,kBACA,cAAAC;AAAA,kBACA,oBAAAC;AAAA,kBACA,oBAAAC;AAAA,kBACA,cAAAC;AAAA,kBACA,QAAAC;AAAA,kBACA,mBAAAV;AAAA,kBACA,oBAAAC;AAAA,kBACA,sBAAAC;AAAA,kBACA,oBAAAC;AAAA,kBACA,kBAAAC;AAAA,kBACA,SAASO;AAAA,gBAAA;AAAA,cACb;AAAA,cAEHlC,MAAe,gBACZ,gBAAAqD,EAACnE,IAAoB,CAAA,CAAA;AAAA,cAExBc,MAAe,gBACZ,gBAAAqD,EAACjE,IAAoB,CAAA,CAAA;AAAA,cAExBY,MAAe,gBACZ,gBAAAqD,EAAClE,IAAoB,CAAA,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MAE7B;AAAA,IAAA;AAAA,EACJ,EAAA,CACJ,EAER,CAAA;AAER;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoardCard.js","sources":["../../../../../../../../lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardCard.tsx"],"sourcesContent":["import Card from '@/components/ui/Card'\nimport Tag from '@/components/ui/Tag'\nimport UsersAvatarGroup from '@/components/shared/UsersAvatarGroup'\nimport IconText from '@/components/shared/IconText'\nimport { TbPaperclip, TbMessageCircle } from 'react-icons/tb'\nimport { useScrumBoardStore } from '../store/scrumBoardStore'\nimport { taskLabelColors } from '../utils'\nimport type { Ticket } from '../types'\nimport type { CardProps } from '@/components/ui/Card'\nimport type { Ref } from 'react'\n\ninterface BoardCardProps extends CardProps {\n data: Ticket\n
|
|
1
|
+
{"version":3,"file":"BoardCard.js","sources":["../../../../../../../../lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardCard.tsx"],"sourcesContent":["import Card from '@/components/ui/Card'\nimport Tag from '@/components/ui/Tag'\nimport UsersAvatarGroup from '@/components/shared/UsersAvatarGroup'\nimport IconText from '@/components/shared/IconText'\nimport { TbPaperclip, TbMessageCircle } from 'react-icons/tb'\nimport { useScrumBoardStore } from '../store/scrumBoardStore'\nimport { taskLabelColors } from '../utils'\nimport type { Ticket } from '../types'\nimport type { CardProps } from '@/components/ui/Card'\nimport type { Ref } from 'react'\n\ninterface BoardCardProps extends CardProps {\n data: Ticket\n}\n\nconst BoardCard = (props: BoardCardProps) => {\n const { openDialog, updateDialogView, setSelectedTicketId } =\n useScrumBoardStore()\n\n const { data, ref, ...rest } = props\n\n const { id, name, comments, attachments, members, labels } = data\n\n const onCardClick = () => {\n openDialog()\n updateDialogView('TICKET')\n setSelectedTicketId(id)\n }\n\n return (\n <Card\n ref={ref}\n clickable\n className=\"hover:shadow-lg rounded-lg mb-4 border-0\"\n bodyClass=\"p-4\"\n onClick={() => onCardClick()}\n {...rest}\n >\n <div className=\"mb-2 font-bold heading-text text-base\">{name}</div>\n {labels && labels.length > 0 && (\n <>\n {labels.map((label, index) => (\n <Tag\n key={label + index}\n className={`mr-2 rtl:ml-2 mb-2 ${taskLabelColors[label]}`}\n >\n {label}\n </Tag>\n ))}\n </>\n )}\n <div className=\"flex items-center justify-between mt-3\">\n <UsersAvatarGroup avatarProps={{ size: 25 }} users={members} />\n <div className=\"flex items-center gap-2\">\n {comments && comments.length > 0 && (\n <IconText\n className=\"font-semibold gap-1\"\n icon={<TbMessageCircle className=\"text-base\" />}\n >\n {comments.length}\n </IconText>\n )}\n {attachments && attachments.length > 0 && (\n <IconText\n icon={<TbPaperclip />}\n className=\"text-base gap-1\"\n >\n {attachments.length}\n </IconText>\n )}\n </div>\n </div>\n </Card>\n )\n}\n\nexport default BoardCard\n"],"names":["BoardCard","props","openDialog","updateDialogView","setSelectedTicketId","useScrumBoardStore","data","ref","rest","id","name","comments","attachments","members","labels","onCardClick","jsxs","Card","jsx","label","index","Tag","taskLabelColors","UsersAvatarGroup","IconText","TbMessageCircle","TbPaperclip"],"mappings":";;;;;;;;;;AAeM,MAAAA,IAAY,CAACC,MAA0B;AACzC,QAAM,EAAE,YAAAC,GAAY,kBAAAC,GAAkB,qBAAAC,EAAA,IAClCC,EAAmB,GAEjB,EAAE,MAAAC,GAAM,KAAAC,GAAK,GAAGC,EAAS,IAAAP,GAEzB,EAAE,IAAAQ,GAAI,MAAAC,GAAM,UAAAC,GAAU,aAAAC,GAAa,SAAAC,GAAS,QAAAC,MAAWR,GAEvDS,IAAc,MAAM;AACX,IAAAb,EAAA,GACXC,EAAiB,QAAQ,GACzBC,EAAoBK,CAAE;AAAA,EAC1B;AAGI,SAAA,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,KAAAV;AAAA,MACA,WAAS;AAAA,MACT,WAAU;AAAA,MACV,WAAU;AAAA,MACV,SAAS,MAAMQ,EAAY;AAAA,MAC1B,GAAGP;AAAA,MAEJ,UAAA;AAAA,QAAC,gBAAAU,EAAA,OAAA,EAAI,WAAU,yCAAyC,UAAKR,GAAA;AAAA,QAC5DI,KAAUA,EAAO,SAAS,4BAElB,UAAOA,EAAA,IAAI,CAACK,GAAOC,MAChB,gBAAAF;AAAA,UAACG;AAAA,UAAA;AAAA,YAEG,WAAW,sBAAsBC,EAAgBH,CAAK,CAAC;AAAA,YAEtD,UAAAA;AAAA,UAAA;AAAA,UAHIA,IAAQC;AAAA,QAKpB,CAAA,GACL;AAAA,QAEJ,gBAAAJ,EAAC,OAAI,EAAA,WAAU,0CACX,UAAA;AAAA,UAAA,gBAAAE,EAACK,KAAiB,aAAa,EAAE,MAAM,GAAG,GAAG,OAAOV,GAAS;AAAA,UAC7D,gBAAAG,EAAC,OAAI,EAAA,WAAU,2BACV,UAAA;AAAA,YAAYL,KAAAA,EAAS,SAAS,KAC3B,gBAAAO;AAAA,cAACM;AAAA,cAAA;AAAA,gBACG,WAAU;AAAA,gBACV,MAAM,gBAAAN,EAACO,GAAgB,EAAA,WAAU,YAAY,CAAA;AAAA,gBAE5C,UAASd,EAAA;AAAA,cAAA;AAAA,YACd;AAAA,YAEHC,KAAeA,EAAY,SAAS,KACjC,gBAAAM;AAAA,cAACM;AAAA,cAAA;AAAA,gBACG,wBAAOE,GAAY,EAAA;AAAA,gBACnB,WAAU;AAAA,gBAET,UAAYd,EAAA;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB,EAER,CAAA;AAAA,QAAA,EACJ,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACJ;AAER;"}
|
|
@@ -1,77 +1,71 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { Draggable as
|
|
4
|
-
function
|
|
5
|
-
const { dropProvided:
|
|
6
|
-
return /* @__PURE__ */ e("div", { ref:
|
|
7
|
-
|
|
1
|
+
import { jsx as e, jsxs as C } from "react/jsx-runtime";
|
|
2
|
+
import h from "./BoardCard.js";
|
|
3
|
+
import { Draggable as m, Droppable as D } from "@hello-pangea/dnd";
|
|
4
|
+
function c(l) {
|
|
5
|
+
const { dropProvided: i, contents: r, isDisabledMoveCard: t, ...o } = l;
|
|
6
|
+
return /* @__PURE__ */ e("div", { ref: i.innerRef, className: "board-dropzone h-full", children: /* @__PURE__ */ e("div", { className: "px-5 h-full", children: r == null ? void 0 : r.map((a, d) => /* @__PURE__ */ e(
|
|
7
|
+
m,
|
|
8
8
|
{
|
|
9
|
-
draggableId:
|
|
9
|
+
draggableId: a.id,
|
|
10
10
|
index: d,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
isDragDisabled: t,
|
|
12
|
+
children: (n) => /* @__PURE__ */ e(
|
|
13
|
+
h,
|
|
13
14
|
{
|
|
14
|
-
ref:
|
|
15
|
-
data:
|
|
16
|
-
...
|
|
17
|
-
...
|
|
18
|
-
...
|
|
15
|
+
ref: n.innerRef,
|
|
16
|
+
data: a,
|
|
17
|
+
...o,
|
|
18
|
+
...n.draggableProps,
|
|
19
|
+
...n.dragHandleProps
|
|
19
20
|
}
|
|
20
21
|
)
|
|
21
22
|
},
|
|
22
|
-
|
|
23
|
+
a.id
|
|
23
24
|
)) }) });
|
|
24
25
|
}
|
|
25
|
-
const I = (
|
|
26
|
+
const I = (l) => {
|
|
26
27
|
const {
|
|
27
|
-
ignoreContainerClipping:
|
|
28
|
+
ignoreContainerClipping: i,
|
|
28
29
|
internalScroll: r,
|
|
29
|
-
scrollContainerStyle:
|
|
30
|
-
isDropDisabled:
|
|
31
|
-
isCombineEnabled:
|
|
32
|
-
listId:
|
|
33
|
-
style:
|
|
34
|
-
listType:
|
|
35
|
-
contents:
|
|
36
|
-
useClone:
|
|
37
|
-
} =
|
|
30
|
+
scrollContainerStyle: t,
|
|
31
|
+
isDropDisabled: o,
|
|
32
|
+
isCombineEnabled: a,
|
|
33
|
+
listId: d = "LIST",
|
|
34
|
+
style: n,
|
|
35
|
+
listType: b,
|
|
36
|
+
contents: p,
|
|
37
|
+
useClone: f
|
|
38
|
+
} = l;
|
|
38
39
|
return /* @__PURE__ */ e(
|
|
39
|
-
|
|
40
|
+
D,
|
|
40
41
|
{
|
|
41
|
-
droppableId:
|
|
42
|
-
type:
|
|
43
|
-
ignoreContainerClipping:
|
|
44
|
-
isDropDisabled:
|
|
45
|
-
isCombineEnabled:
|
|
46
|
-
renderClone:
|
|
47
|
-
children: (
|
|
42
|
+
droppableId: d,
|
|
43
|
+
type: b,
|
|
44
|
+
ignoreContainerClipping: i,
|
|
45
|
+
isDropDisabled: o,
|
|
46
|
+
isCombineEnabled: a,
|
|
47
|
+
renderClone: f,
|
|
48
|
+
children: (s) => /* @__PURE__ */ C(
|
|
48
49
|
"div",
|
|
49
50
|
{
|
|
50
|
-
style: c,
|
|
51
51
|
className: "board-wrapper overflow-hidden flex-auto",
|
|
52
|
-
...
|
|
52
|
+
...s.droppableProps,
|
|
53
53
|
children: [
|
|
54
|
-
r ? /* @__PURE__ */ e(
|
|
55
|
-
|
|
54
|
+
r ? /* @__PURE__ */ e("div", { className: "board-scrollContainer", children: /* @__PURE__ */ e(
|
|
55
|
+
c,
|
|
56
56
|
{
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
children: /* @__PURE__ */ e(
|
|
60
|
-
p,
|
|
61
|
-
{
|
|
62
|
-
contents: t,
|
|
63
|
-
dropProvided: n
|
|
64
|
-
}
|
|
65
|
-
)
|
|
57
|
+
contents: p,
|
|
58
|
+
dropProvided: s
|
|
66
59
|
}
|
|
67
|
-
) : /* @__PURE__ */ e(
|
|
68
|
-
|
|
60
|
+
) }) : /* @__PURE__ */ e(
|
|
61
|
+
c,
|
|
69
62
|
{
|
|
70
|
-
contents:
|
|
71
|
-
dropProvided:
|
|
63
|
+
contents: p,
|
|
64
|
+
dropProvided: s,
|
|
65
|
+
isDisabledMoveCard: l.isDisabledMoveCard
|
|
72
66
|
}
|
|
73
67
|
),
|
|
74
|
-
|
|
68
|
+
s.placeholder
|
|
75
69
|
]
|
|
76
70
|
}
|
|
77
71
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoardCardList.js","sources":["../../../../../../../../lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.tsx"],"sourcesContent":["import BoardCard from
|
|
1
|
+
{"version":3,"file":"BoardCardList.js","sources":["../../../../../../../../lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.tsx"],"sourcesContent":["import BoardCard from \"./BoardCard\";\nimport {\n Draggable,\n Droppable,\n DraggableChildrenFn,\n DroppableProvided,\n} from \"@hello-pangea/dnd\";\nimport type { Ticket } from \"../types\";\nimport type { CSSProperties } from \"react\";\n\nexport interface BaseBoardProps {\n contents?: Ticket[]\n useClone?: DraggableChildrenFn\n isCombineEnabled?: boolean\n isDisabledMoveCard?: boolean\n}\n\ninterface BoardCardListProps extends BaseBoardProps {\n ignoreContainerClipping?: boolean\n internalScroll?: boolean\n scrollContainerStyle?: CSSProperties\n isDropDisabled?: boolean\n listId?: string\n style?: CSSProperties\n listType?: string\n className?: string\n}\n\ntype InnerListProps = {\n dropProvided: DroppableProvided\n contents?: Ticket[]\n isDisabledMoveCard?: boolean\n}\n\nfunction InnerList(props: InnerListProps) {\n const { dropProvided, contents, isDisabledMoveCard, ...rest } = props\n\n return (\n <div ref={dropProvided.innerRef} className=\"board-dropzone h-full\">\n <div className=\"px-5 h-full\">\n {contents?.map((item, index) => (\n <Draggable\n key={item.id}\n draggableId={item.id}\n index={index}\n isDragDisabled={isDisabledMoveCard}\n >\n {(dragProvided) => (\n <BoardCard\n ref={dragProvided.innerRef}\n data={item}\n {...rest}\n {...dragProvided.draggableProps}\n {...dragProvided.dragHandleProps}\n />\n )}\n </Draggable>\n ))}\n </div>\n </div>\n )\n}\n\nconst BoardCardList = (props: BoardCardListProps) => {\n const {\n ignoreContainerClipping,\n internalScroll,\n scrollContainerStyle,\n isDropDisabled,\n isCombineEnabled,\n listId = 'LIST',\n style,\n listType,\n contents,\n useClone,\n } = props\n\n return (\n <Droppable\n droppableId={listId}\n type={listType}\n ignoreContainerClipping={ignoreContainerClipping}\n isDropDisabled={isDropDisabled}\n isCombineEnabled={isCombineEnabled}\n renderClone={useClone}\n >\n {(dropProvided) => (\n <div\n className=\"board-wrapper overflow-hidden flex-auto\"\n {...dropProvided.droppableProps}\n >\n {internalScroll ? (\n <div className=\"board-scrollContainer\">\n <InnerList\n contents={contents}\n dropProvided={dropProvided}\n />\n </div>\n ) : (\n <InnerList\n contents={contents}\n dropProvided={dropProvided}\n isDisabledMoveCard={props.isDisabledMoveCard}\n />\n )}\n {dropProvided.placeholder}\n </div>\n )}\n </Droppable>\n )\n}\n\nexport default BoardCardList\n"],"names":["InnerList","props","dropProvided","contents","isDisabledMoveCard","rest","jsx","item","index","Draggable","dragProvided","BoardCard","BoardCardList","ignoreContainerClipping","internalScroll","scrollContainerStyle","isDropDisabled","isCombineEnab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gBAAAR,EAAC,OAAI,EAAA,WAAU,yBACX,UAAA,gBAAAA;AAAA,cAACN;AAAA,cAAA;AAAA,gBACG,UAAAG;AAAA,gBACA,cAAAD;AAAA,cAAA;AAAA,eAER,IAEA,gBAAAI;AAAA,cAACN;AAAA,cAAA;AAAA,gBACG,UAAAG;AAAA,gBACA,cAAAD;AAAA,gBACA,oBAAoBD,EAAM;AAAA,cAAA;AAAA,YAC9B;AAAA,YAEHC,EAAa;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAClB;AAAA,EAER;AAER;"}
|
|
@@ -1,40 +1,58 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Draggable as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
const {
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as e, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import { Draggable as c } from "@hello-pangea/dnd";
|
|
3
|
+
import p from "./BoardTitle.js";
|
|
4
|
+
import x from "./BoardCardList.js";
|
|
5
|
+
const N = (l) => {
|
|
6
|
+
const {
|
|
7
|
+
title: r,
|
|
8
|
+
contents: o,
|
|
9
|
+
index: s,
|
|
10
|
+
isScrollable: i,
|
|
11
|
+
isCombineEnabled: d,
|
|
12
|
+
isDisabledMoveColumn: n,
|
|
13
|
+
isDisabledMoveCard: g,
|
|
14
|
+
useClone: t
|
|
15
|
+
} = l;
|
|
16
|
+
return /* @__PURE__ */ e(
|
|
17
|
+
c,
|
|
9
18
|
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
children:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
19
|
+
draggableId: r,
|
|
20
|
+
index: s,
|
|
21
|
+
isDragDisabled: n,
|
|
22
|
+
children: (a, m) => /* @__PURE__ */ b(
|
|
23
|
+
"div",
|
|
24
|
+
{
|
|
25
|
+
ref: a.innerRef,
|
|
26
|
+
className: "board-column flex flex-col mb-3 min-w-[300px] w-[300px] max-w-[300px] p-0rounded-lg dark:bg-gray-900 bg-gray-50 rounded-2xl ",
|
|
27
|
+
...a.draggableProps,
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ e(
|
|
30
|
+
p,
|
|
31
|
+
{
|
|
32
|
+
title: r,
|
|
33
|
+
dragHandleProps: a.dragHandleProps
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
/* @__PURE__ */ e(
|
|
37
|
+
x,
|
|
38
|
+
{
|
|
39
|
+
listId: r,
|
|
40
|
+
listType: "CONTENT",
|
|
41
|
+
className: m.isDragging ? "is-dragging" : "",
|
|
42
|
+
contents: o,
|
|
43
|
+
internalScroll: i,
|
|
44
|
+
isCombineEnabled: d,
|
|
45
|
+
isDisabledMoveCard: g,
|
|
46
|
+
useClone: t
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
)
|
|
34
52
|
}
|
|
35
|
-
)
|
|
53
|
+
);
|
|
36
54
|
};
|
|
37
55
|
export {
|
|
38
|
-
|
|
56
|
+
N as default
|
|
39
57
|
};
|
|
40
58
|
//# sourceMappingURL=BoardColumn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoardColumn.js","sources":["../../../../../../../../lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardColumn.tsx"],"sourcesContent":["import { Draggable } from '@hello-pangea/dnd'\nimport BoardTitle from './BoardTitle'\nimport BoardCardList, { BaseBoardProps } from './BoardCardList'\n\ninterface BoardColumnProps extends BaseBoardProps {\n title: string\n index: number\n isScrollable?: boolean\n}\n\nconst BoardColumn = (props: BoardColumnProps) => {\n const {
|
|
1
|
+
{"version":3,"file":"BoardColumn.js","sources":["../../../../../../../../lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardColumn.tsx"],"sourcesContent":["import { Draggable } from '@hello-pangea/dnd'\nimport BoardTitle from './BoardTitle'\nimport BoardCardList, { BaseBoardProps } from './BoardCardList'\n\ninterface BoardColumnProps extends BaseBoardProps {\n title: string\n index: number\n isScrollable?: boolean\n isDisabledMoveColumn?: boolean\n isDisabledMoveCard?: boolean\n}\n\nconst BoardColumn = (props: BoardColumnProps) => {\n const {\n title,\n contents,\n index,\n isScrollable,\n isCombineEnabled,\n isDisabledMoveColumn,\n isDisabledMoveCard,\n useClone,\n } = props\n\n return (\n <Draggable\n draggableId={title}\n index={index}\n isDragDisabled={isDisabledMoveColumn}\n >\n {(provided, snapshot) => (\n <div\n ref={provided.innerRef}\n className=\"board-column flex flex-col mb-3 min-w-[300px] w-[300px] max-w-[300px] p-0rounded-lg dark:bg-gray-900 bg-gray-50 rounded-2xl \"\n {...provided.draggableProps}\n >\n <BoardTitle\n title={title}\n dragHandleProps={provided.dragHandleProps}\n />\n <BoardCardList\n listId={title}\n listType=\"CONTENT\"\n className={snapshot.isDragging ? 'is-dragging' : ''}\n contents={contents}\n internalScroll={isScrollable}\n isCombineEnabled={isCombineEnabled}\n isDisabledMoveCard={isDisabledMoveCard}\n useClone={useClone}\n />\n </div>\n )}\n </Draggable>\n )\n}\n\nexport default BoardColumn\n"],"names":["BoardColumn","props","title","contents","index","isScrollable","isCombineEnabled","isDisabledMoveColumn","isDisabledMoveCard","useClone","jsx","Draggable","provided","snapshot","jsxs","BoardTitle","BoardCardList"],"mappings":";;;;AAYM,MAAAA,IAAc,CAACC,MAA4B;AACvC,QAAA;AAAA,IACF,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,cAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,UAAAC;AAAA,EAAA,IACAR;AAGA,SAAA,gBAAAS;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,aAAaT;AAAA,MACb,OAAAE;AAAA,MACA,gBAAgBG;AAAA,MAEf,UAAA,CAACK,GAAUC,MACR,gBAAAC;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,KAAKF,EAAS;AAAA,UACd,WAAU;AAAA,UACT,GAAGA,EAAS;AAAA,UAEb,UAAA;AAAA,YAAA,gBAAAF;AAAA,cAACK;AAAA,cAAA;AAAA,gBACG,OAAAb;AAAA,gBACA,iBAAiBU,EAAS;AAAA,cAAA;AAAA,YAC9B;AAAA,YACA,gBAAAF;AAAA,cAACM;AAAA,cAAA;AAAA,gBACG,QAAQd;AAAA,gBACR,UAAS;AAAA,gBACT,WAAWW,EAAS,aAAa,gBAAgB;AAAA,gBACjD,UAAAV;AAAA,gBACA,gBAAgBE;AAAA,gBAChB,kBAAAC;AAAA,gBACA,oBAAAE;AAAA,gBACA,UAAAC;AAAA,cAAA;AAAA,YAAA;AAAA,UACJ;AAAA,QAAA;AAAA,MAAA;AAAA,IACJ;AAAA,EAER;AAER;"}
|
|
@@ -1,152 +1,106 @@
|
|
|
1
|
-
import { jsx as e, Fragment as D, jsxs as
|
|
1
|
+
import { jsx as e, Fragment as D, jsxs as w } from "react/jsx-runtime";
|
|
2
2
|
import { useState as x } from "react";
|
|
3
3
|
import "../../../../../components/ui/Form/index.js";
|
|
4
4
|
import "../../../../../components/ui/Input/index.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
import q from "../../../../../components/ui/Input/Input.js";
|
|
13
|
-
const V = ({
|
|
5
|
+
import T from "../../../../../components/shared/ConfirmDialog.js";
|
|
6
|
+
import { useScrumBoardStore as y } from "../store/scrumBoardStore.js";
|
|
7
|
+
import { TbCircleXFilled as A } from "react-icons/tb";
|
|
8
|
+
import { useForm as F, Controller as O } from "react-hook-form";
|
|
9
|
+
import { Form as j } from "../../../../../components/ui/Form/Form.js";
|
|
10
|
+
import v from "../../../../../components/ui/Input/Input.js";
|
|
11
|
+
const B = ({
|
|
14
12
|
title: o,
|
|
15
|
-
closeRenameForm:
|
|
13
|
+
closeRenameForm: i,
|
|
16
14
|
columns: t = {},
|
|
17
|
-
ordered:
|
|
18
|
-
onEnter:
|
|
15
|
+
ordered: l,
|
|
16
|
+
onEnter: a
|
|
19
17
|
}) => {
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
23
|
-
|
|
18
|
+
const u = (s) => {
|
|
19
|
+
const n = s.title;
|
|
20
|
+
if (l.some((r) => r === n)) {
|
|
21
|
+
i();
|
|
24
22
|
return;
|
|
25
23
|
}
|
|
26
|
-
const
|
|
27
|
-
delete Object.assign(
|
|
28
|
-
[
|
|
24
|
+
const c = {};
|
|
25
|
+
delete Object.assign(c, t, {
|
|
26
|
+
[n]: t[o]
|
|
29
27
|
})[o];
|
|
30
|
-
const m =
|
|
31
|
-
c
|
|
32
|
-
}, { control:
|
|
28
|
+
const m = l.map((r) => r === o ? n : r);
|
|
29
|
+
a(c, m), i();
|
|
30
|
+
}, { control: f, handleSubmit: p } = F({
|
|
33
31
|
defaultValues: {
|
|
34
32
|
title: o
|
|
35
33
|
}
|
|
36
34
|
});
|
|
37
|
-
return /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(
|
|
38
|
-
|
|
35
|
+
return /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(j, { onSubmit: p(u), children: /* @__PURE__ */ e(
|
|
36
|
+
O,
|
|
39
37
|
{
|
|
40
38
|
name: "title",
|
|
41
|
-
control:
|
|
39
|
+
control: f,
|
|
42
40
|
rules: { required: !0 },
|
|
43
|
-
render: ({ field: s }) => /* @__PURE__ */ e(
|
|
41
|
+
render: ({ field: s }) => /* @__PURE__ */ e(v, { type: "text", autoComplete: "off", ...s })
|
|
44
42
|
}
|
|
45
43
|
) }) });
|
|
46
|
-
},
|
|
47
|
-
const { dragHandleProps:
|
|
48
|
-
columns:
|
|
49
|
-
ordered:
|
|
50
|
-
openDialog:
|
|
51
|
-
updateColumns:
|
|
52
|
-
updateDialogView:
|
|
44
|
+
}, J = (o) => {
|
|
45
|
+
const { dragHandleProps: i, title: t } = o, {
|
|
46
|
+
columns: l,
|
|
47
|
+
ordered: a,
|
|
48
|
+
openDialog: u,
|
|
49
|
+
updateColumns: f,
|
|
50
|
+
updateDialogView: p,
|
|
53
51
|
setSelectedBoard: s,
|
|
54
|
-
updateOrdered:
|
|
55
|
-
} =
|
|
52
|
+
updateOrdered: n
|
|
53
|
+
} = y(), [c, m] = x(!1), [r, b] = x(!1), E = () => {
|
|
56
54
|
m(!0);
|
|
57
|
-
},
|
|
55
|
+
}, g = () => {
|
|
58
56
|
m(!1);
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
}, v = () => {
|
|
66
|
-
const g = c.filter((A) => A !== t), u = {};
|
|
67
|
-
Object.assign(u, i), delete u[t], r(g);
|
|
57
|
+
}, h = () => {
|
|
58
|
+
b(!1);
|
|
59
|
+
}, R = () => {
|
|
60
|
+
b(!0);
|
|
61
|
+
}, N = () => {
|
|
62
|
+
u(), p("NEW_TICKET"), s(t);
|
|
68
63
|
};
|
|
69
|
-
return /* @__PURE__ */
|
|
64
|
+
return /* @__PURE__ */ w(
|
|
70
65
|
"div",
|
|
71
66
|
{
|
|
72
67
|
className: "board-title px-5 py-4 flex justify-between items-center",
|
|
73
|
-
...
|
|
68
|
+
...i,
|
|
74
69
|
children: [
|
|
75
|
-
|
|
70
|
+
c ? /* @__PURE__ */ w(D, { children: [
|
|
76
71
|
/* @__PURE__ */ e(
|
|
77
|
-
|
|
72
|
+
B,
|
|
78
73
|
{
|
|
79
74
|
title: t,
|
|
80
|
-
closeRenameForm:
|
|
81
|
-
columns:
|
|
82
|
-
ordered:
|
|
83
|
-
onEnter: (
|
|
84
|
-
|
|
75
|
+
closeRenameForm: g,
|
|
76
|
+
columns: l,
|
|
77
|
+
ordered: a,
|
|
78
|
+
onEnter: (C, d) => {
|
|
79
|
+
f(C), n(d);
|
|
85
80
|
}
|
|
86
81
|
}
|
|
87
82
|
),
|
|
88
83
|
/* @__PURE__ */ e(
|
|
89
|
-
|
|
84
|
+
A,
|
|
90
85
|
{
|
|
91
86
|
className: "cursor-pointer text-lg",
|
|
92
|
-
onClick:
|
|
87
|
+
onClick: g
|
|
93
88
|
}
|
|
94
89
|
)
|
|
95
|
-
] }) : /* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */ e("h6", { children: t }),
|
|
97
|
-
/* @__PURE__ */ n(
|
|
98
|
-
p,
|
|
99
|
-
{
|
|
100
|
-
placement: "bottom-end",
|
|
101
|
-
renderTitle: /* @__PURE__ */ e(S, {}),
|
|
102
|
-
children: [
|
|
103
|
-
/* @__PURE__ */ n(
|
|
104
|
-
p.Item,
|
|
105
|
-
{
|
|
106
|
-
eventKey: "renameBoard",
|
|
107
|
-
onClick: y,
|
|
108
|
-
children: [
|
|
109
|
-
/* @__PURE__ */ e("span", { className: "text-lg", children: /* @__PURE__ */ e(O, {}) }),
|
|
110
|
-
/* @__PURE__ */ e("span", { children: "Rename" })
|
|
111
|
-
]
|
|
112
|
-
}
|
|
113
|
-
),
|
|
114
|
-
/* @__PURE__ */ n(
|
|
115
|
-
p.Item,
|
|
116
|
-
{
|
|
117
|
-
eventKey: "addTicket",
|
|
118
|
-
onClick: k,
|
|
119
|
-
children: [
|
|
120
|
-
/* @__PURE__ */ e("span", { className: "text-lg", children: /* @__PURE__ */ e(R, {}) }),
|
|
121
|
-
/* @__PURE__ */ e("span", { children: "Add Ticket" })
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
),
|
|
125
|
-
/* @__PURE__ */ n(
|
|
126
|
-
p.Item,
|
|
127
|
-
{
|
|
128
|
-
eventKey: "deleteBoard",
|
|
129
|
-
onClick: B,
|
|
130
|
-
children: [
|
|
131
|
-
/* @__PURE__ */ e("span", { className: "text-lg", children: /* @__PURE__ */ e(j, {}) }),
|
|
132
|
-
/* @__PURE__ */ e("span", { children: "Delete Board" })
|
|
133
|
-
]
|
|
134
|
-
}
|
|
135
|
-
)
|
|
136
|
-
]
|
|
137
|
-
}
|
|
138
|
-
)
|
|
139
|
-
] }),
|
|
90
|
+
] }) : /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e("h6", { children: t }) }),
|
|
140
91
|
/* @__PURE__ */ e(
|
|
141
|
-
|
|
92
|
+
T,
|
|
142
93
|
{
|
|
143
|
-
isOpen:
|
|
94
|
+
isOpen: r,
|
|
144
95
|
type: "danger",
|
|
145
96
|
title: "Delete Board",
|
|
146
|
-
onClose:
|
|
147
|
-
onRequestClose:
|
|
148
|
-
onCancel:
|
|
149
|
-
onConfirm:
|
|
97
|
+
onClose: h,
|
|
98
|
+
onRequestClose: h,
|
|
99
|
+
onCancel: h,
|
|
100
|
+
onConfirm: () => {
|
|
101
|
+
const C = a.filter((S) => S !== t), d = {};
|
|
102
|
+
Object.assign(d, l), delete d[t], n(C);
|
|
103
|
+
},
|
|
150
104
|
children: /* @__PURE__ */ e("p", { children: "Are you sure you want to delete this board? All the tickets under this board will be deleted as well. This action cannot be undone." })
|
|
151
105
|
}
|
|
152
106
|
)
|
|
@@ -155,6 +109,6 @@ const V = ({
|
|
|
155
109
|
);
|
|
156
110
|
};
|
|
157
111
|
export {
|
|
158
|
-
|
|
112
|
+
J as default
|
|
159
113
|
};
|
|
160
114
|
//# sourceMappingURL=BoardTitle.js.map
|