@plone/volto 18.0.0-alpha.42 → 18.0.0-alpha.44
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/CHANGELOG.md +111 -0
- package/dist/android-chrome-192x192.png +0 -0
- package/dist/android-chrome-512x512.png +0 -0
- package/dist/apple-touch-icon.png +0 -0
- package/dist/assets/Add-CA4YI1L9.js +1 -0
- package/dist/assets/AddRule-D3FXfjP2.js +1 -0
- package/dist/assets/AddonsControlpanel-BVvov68i.js +1 -0
- package/dist/assets/Aliases-CTeg6p2o.js +1 -0
- package/dist/assets/Aliases-CiYzFinq.js +1 -0
- package/dist/assets/AlignWidget-DOdVMFPI.js +1 -0
- package/dist/assets/ArrayWidget-BrkmZ5dw.js +2 -0
- package/dist/assets/BlockDataForm-B3mthY8C.js +1 -0
- package/dist/assets/BlocksForm-B4Z6BgXT.js +2 -0
- package/dist/assets/BlocksToolbar-QLlNn733.js +1 -0
- package/dist/assets/ButtonsWidget-DEMy855M.js +1 -0
- package/dist/assets/ByDayField-jAVQ7XPH.js +1 -0
- package/dist/assets/ChangePassword-6aoonCrF.js +1 -0
- package/dist/assets/CheckboxWidget-IMR_-sRq.js +1 -0
- package/dist/assets/ColorPickerWidget-Dejm2B0T.js +1 -0
- package/dist/assets/CommentEditModal-Dsgav7Iq.js +1 -0
- package/dist/assets/Comments-Bef0xvDU.js +1 -0
- package/dist/assets/ConfigureRule-DXI9YD9P.js +1 -0
- package/dist/assets/Confirm-DFyDHvrF.js +1 -0
- package/dist/assets/ContactForm-CQVq5Emz.js +1 -0
- package/dist/assets/ContentType-DiwmXeXW.js +1 -0
- package/dist/assets/ContentTypeLayout-DM4zSiq_.js +1 -0
- package/dist/assets/ContentTypeSchema-DiQYp2-x.js +1 -0
- package/dist/assets/ContentTypes-DNvhsL2E.js +1 -0
- package/dist/assets/Contents-HiCShUFN.js +2 -0
- package/dist/assets/ContentsBreadcrumbs-C8wbasB3.js +1 -0
- package/dist/assets/ContentsIndexHeader-DWLUzSSN.js +1 -0
- package/dist/assets/ContentsItem-lDg0F8jy.js +1 -0
- package/dist/assets/ContentsPropertiesModal-xyVS8Pm9.js +1 -0
- package/dist/assets/ContentsRenameModal-CR9og1vu.js +1 -0
- package/dist/assets/ContentsTagsModal-sm2mz3cz.js +1 -0
- package/dist/assets/ContentsUploadModal-DAvSG2iz.js +5 -0
- package/dist/assets/ContentsWorkflowModal-B1faSBIm.js +1 -0
- package/dist/assets/Controlpanel-rIBVAK5V.js +1 -0
- package/dist/assets/Controlpanels-yqRsYca2.js +1 -0
- package/dist/assets/CreateTranslation-BovC3sNf.js +1 -0
- package/dist/assets/DatabaseInformation-BhfKGQdR.js +1 -0
- package/dist/assets/DatetimeWidget-BdaHrXzK.css +1 -0
- package/dist/assets/DatetimeWidget-CGRn8MDB.js +2 -0
- package/dist/assets/Delete-Bf_oGO3l.js +1 -0
- package/dist/assets/Diff-BOq2GAEN.js +2 -0
- package/dist/assets/DiffField-URJH7cyl.js +42 -0
- package/dist/assets/Divider-I-Vkru5f.js +1 -0
- package/dist/assets/DragDropList-DGGG9KzJ.js +1 -0
- package/dist/assets/DynamicRowHeightList-DTGQZVrT.js +2 -0
- package/dist/assets/Edit-DjR75Yke.js +1 -0
- package/dist/assets/EditRule-BBvjH707.js +1 -0
- package/dist/assets/EmailWidget-Bq_6HMhS.js +1 -0
- package/dist/assets/Error-DgGrUrdR.js +1 -0
- package/dist/assets/EventDatesInfo-BBanEDzq.js +2 -0
- package/dist/assets/EventView-B5GwqNQP.js +2 -0
- package/dist/assets/Field-BivWUJ1M.js +1 -0
- package/dist/assets/FileWidget-Cbu5QwYg.js +2 -0
- package/dist/assets/Form-ZI0Zshdh.js +1 -0
- package/dist/assets/FormattedRelativeDate-BDqnftFO.js +1 -0
- package/dist/assets/GroupsControlpanel-DVw7gRP-.js +1 -0
- package/dist/assets/History-eh7QSqQ3.js +1 -0
- package/dist/assets/IdWidget-BdcHR4jR.js +1 -0
- package/dist/assets/ImageSizeWidget-C44x9fO8.js +1 -0
- package/dist/assets/InlineForm-DQFfCjzF.js +1 -0
- package/dist/assets/InternalUrlWidget-BJ2TlHvv.js +1 -0
- package/dist/assets/LinksToItem-OcO6d56I.js +1 -0
- package/dist/assets/Login-BwMJ6f50.js +1 -0
- package/dist/assets/Logout-BUHwA4DE.js +1 -0
- package/dist/assets/ManageTranslations-ChQ7vL2i.js +1 -0
- package/dist/assets/ModalForm-CvvXZSkU.js +1 -0
- package/dist/assets/ModerateComments-1Ov7biDm.js +1 -0
- package/dist/assets/MonthOfTheYearField-CM70wuIb.js +1 -0
- package/dist/assets/NumberWidget-DABMHQm5.js +1 -0
- package/dist/assets/ObjectBrowserWidget-Bh4JpoWw.js +1 -0
- package/dist/assets/ObjectListWidget-DznYu5qo.js +2 -0
- package/dist/assets/ObjectWidget-BBA-_l7E.js +1 -0
- package/dist/assets/Occurences-BzxgwsYx.js +1 -0
- package/dist/assets/Order-BtyRvLNH.js +5 -0
- package/dist/assets/Pagination-CJSyS-v5.js +1 -0
- package/dist/assets/PasswordReset-COH0dZIO.js +1 -0
- package/dist/assets/PasswordWidget-DoHmi1Qa.js +1 -0
- package/dist/assets/PersonalInformation-BnghqH8c.js +1 -0
- package/dist/assets/Poppins-Bold-devanagari-x1FzP7sX.woff2 +0 -0
- package/dist/assets/Poppins-Bold-latin-Qrb0O0WB.woff2 +0 -0
- package/dist/assets/Poppins-Bold-latinext-j1no4XVB.woff2 +0 -0
- package/dist/assets/Poppins-BoldItalic-devanagari-BcxLru-s.woff2 +0 -0
- package/dist/assets/Poppins-BoldItalic-latin-RKf6esGj.woff2 +0 -0
- package/dist/assets/Poppins-BoldItalic-latinext-Dydr-NSJ.woff2 +0 -0
- package/dist/assets/Poppins-Light-devanagari-BtHqo3Vt.woff2 +0 -0
- package/dist/assets/Poppins-Light-latin-Dku2WoCh.woff2 +0 -0
- package/dist/assets/Poppins-Light-latinext-Dp0S20ci.woff2 +0 -0
- package/dist/assets/Poppins-Regular-devanagari-DXhQFdtL.woff2 +0 -0
- package/dist/assets/Poppins-Regular-latin-cpxAROuN.woff2 +0 -0
- package/dist/assets/Poppins-Regular-latinext-CZnfsGfc.woff2 +0 -0
- package/dist/assets/Poppins-RegularItalic-devanagari-BO6sGsOT.woff2 +0 -0
- package/dist/assets/Poppins-RegularItalic-latin-B4GYq972.woff2 +0 -0
- package/dist/assets/Poppins-RegularItalic-latinext-CfukeBgr.woff2 +0 -0
- package/dist/assets/Poppins-Semibold-devanagari-CedCftIp.woff2 +0 -0
- package/dist/assets/Poppins-Semibold-latin-C8OXljZJ.woff2 +0 -0
- package/dist/assets/Poppins-Semibold-latinext-CkbSfFoM.woff2 +0 -0
- package/dist/assets/QuerySortOnWidget-souad4DL.js +2 -0
- package/dist/assets/QueryWidget-qk9RayXO.js +2 -0
- package/dist/assets/QuerystringWidget-DH5jhTLr.js +1 -0
- package/dist/assets/RecurrenceWidget-DnuZQPcL.js +2 -0
- package/dist/assets/ReferenceWidget-B4Ut0GeE.js +1 -0
- package/dist/assets/Register-CZJ_qhM8.js +1 -0
- package/dist/assets/RegistryImageWidget-CdL-rOKh.js +2 -0
- package/dist/assets/Relations-BwmDXEO-.js +1 -0
- package/dist/assets/RenderGroups-CEJGSsLf.js +1 -0
- package/dist/assets/RenderUsers--9m7uN_M.js +1 -0
- package/dist/assets/RequestPasswordReset-ClwvyAVg.js +1 -0
- package/dist/assets/Rules-CmCkDhXN.js +1 -0
- package/dist/assets/Rules-NXbkDTgW.js +1 -0
- package/dist/assets/SchemaWidget-B0c4tT_v.js +5 -0
- package/dist/assets/Search-CspR83YZ.js +1 -0
- package/dist/assets/SelectAutoComplete-D6sNEX-d.js +2 -0
- package/dist/assets/SelectMetadataField-Bp04JyaC.js +2 -0
- package/dist/assets/SelectUtils-BBksmIZO.js +1 -0
- package/dist/assets/SelectWidget-7oSuJ3oC.js +2 -0
- package/dist/assets/Sharing-BD2SWQfE.js +1 -0
- package/dist/assets/Sidebar-DgSrLVjY.js +1 -0
- package/dist/assets/Sitemap-YzTuoH0K.js +1 -0
- package/dist/assets/TextWidget-DuuGzOfb.js +1 -0
- package/dist/assets/TextareaWidget-Dy-lG0rT.js +1 -0
- package/dist/assets/TokenWidget-DPBxq9gC.js +2 -0
- package/dist/assets/Toolbar-DRQzi_9w.js +2 -0
- package/dist/assets/TranslationObject-looZSaOd.js +1 -0
- package/dist/assets/UndoControlpanel-DskOWXtR.js +1 -0
- package/dist/assets/UndoToolbar-d2m9s_d7.js +1 -0
- package/dist/assets/UpgradeControlPanel-D25islCR.js +1 -0
- package/dist/assets/UrlWidget-DVyURufw.js +1 -0
- package/dist/assets/User-CGkBaCm_.js +1 -0
- package/dist/assets/UserGroupMembershipControlPanel-GG_7FkTb.js +1 -0
- package/dist/assets/UsersControlpanel-baYxuzjn.js +1 -0
- package/dist/assets/VersionOverview-A7mgPMUR.js +1 -0
- package/dist/assets/VocabularyTermsWidget-M-5KcHUD.js +2 -0
- package/dist/assets/WeekdayOfTheMonthField-Cjj_8dDR.js +1 -0
- package/dist/assets/WysiwygWidget-GxnNCpDG.js +1 -0
- package/dist/assets/add-user-CTbv3TmR.js +1 -0
- package/dist/assets/aliases-C-VS65Iw.js +1 -0
- package/dist/assets/ca-DPz_x4tN.js +1 -0
- package/dist/assets/cut-ZxaZMyVt.js +1 -0
- package/dist/assets/de-CEfDIAIe.js +1 -0
- package/dist/assets/drag-CfL-m2gM.js +1 -0
- package/dist/assets/en-UGAeOB73.js +1 -0
- package/dist/assets/es-bTR5ZO7p.js +1 -0
- package/dist/assets/eu-ClGcMWvo.js +1 -0
- package/dist/assets/fi-Cb9XYMls.js +1 -0
- package/dist/assets/fr-paTim4vs.js +1 -0
- package/dist/assets/groups-pKq-wbS4.js +1 -0
- package/dist/assets/hi-wfjyKWJi.js +1 -0
- package/dist/assets/history-YklEZVTU.js +1 -0
- package/dist/assets/icons-BvLvFD6l.ttf +0 -0
- package/dist/assets/icons-DEAbt7RB.woff +0 -0
- package/dist/assets/icons-DtZ6carP.eot +0 -0
- package/dist/assets/icons-hSdpWXN3.svg +320 -0
- package/dist/assets/image-gallery-DpLmJ-rt.js +1 -0
- package/dist/assets/index-B0HjVmtS.js +2 -0
- package/dist/assets/index-B21wqIU_.js +1 -0
- package/dist/assets/index-C2wVBtsx.js +690 -0
- package/dist/assets/index-CVdJPLUb.js +3 -0
- package/dist/assets/index-CYKeo7yW.js +28 -0
- package/dist/assets/index-D27Aat_y.css +346 -0
- package/dist/assets/index-D6aBCFDE.js +1 -0
- package/dist/assets/index-DLUMPle8.js +1 -0
- package/dist/assets/it-DefHMwCV.js +1 -0
- package/dist/assets/ja-ChtpWCYw.js +1 -0
- package/dist/assets/memoize-one.esm-CcMeOnPo.js +1 -0
- package/dist/assets/messages-BK-H1zLr.js +1 -0
- package/dist/assets/nl-SQksV7ER.js +1 -0
- package/dist/assets/objectWithoutProperties-xAH_kqrN.js +1 -0
- package/dist/assets/paste-BecFEOpX.js +1 -0
- package/dist/assets/plone-CrIeS8BF.js +1 -0
- package/dist/assets/prism-markup-DpNACz_g.js +1 -0
- package/dist/assets/pt-aWkeVAjQ.js +1 -0
- package/dist/assets/pt_BR-77wXUzSL.js +1 -0
- package/dist/assets/react-beautiful-dnd.esm-DJMwJ8Si.js +61 -0
- package/dist/assets/react-lifecycles-compat.es-AfN2QaV3.js +9 -0
- package/dist/assets/react-select.esm-Bw9Tks6S.js +1 -0
- package/dist/assets/react-select.esm-DqdZW0cZ.js +1 -0
- package/dist/assets/react-select.esm-Dv_YRvYk.js +1 -0
- package/dist/assets/relations-D2Yk2g8d.js +1 -0
- package/dist/assets/ro-DAOiSqwr.js +1 -0
- package/dist/assets/rruleset-Qg0TbHC_.js +7 -0
- package/dist/assets/rules-C-4EoouS.js +1 -0
- package/dist/assets/save-A8XnzzXZ.js +1 -0
- package/dist/assets/sidebar-Dbvn11Db.js +1 -0
- package/dist/assets/stateManager-845a3300.esm-BhBFYHat.js +4 -0
- package/dist/assets/translations-u5Qaabj8.js +1 -0
- package/dist/assets/undo-BK07_7QN.js +1 -0
- package/dist/assets/useClient-BrFMIo4b.js +1 -0
- package/dist/assets/users-BouhAiNc.js +1 -0
- package/dist/assets/vocabularies-x3dq3N13.js +1 -0
- package/dist/assets/workflow-B0qjcbVe.js +1 -0
- package/dist/assets/zh_CN-eXXUKVGT.js +1 -0
- package/dist/client/.vite/ssr-manifest.json +44443 -0
- package/dist/client/android-chrome-192x192.png +0 -0
- package/dist/client/android-chrome-512x512.png +0 -0
- package/dist/client/apple-touch-icon.png +0 -0
- package/dist/client/assets/Add-CUwRE6eq.js +1 -0
- package/dist/client/assets/AddRule-DSFiKef1.js +1 -0
- package/dist/client/assets/AddonsControlpanel-C6Q8GWZM.js +1 -0
- package/dist/client/assets/Aliases-BqlvnmTi.js +1 -0
- package/dist/client/assets/Aliases-FQ5jo7iQ.js +1 -0
- package/dist/client/assets/AlignWidget-CCQ8VpM1.js +1 -0
- package/dist/client/assets/ArrayWidget-CX0k9WCr.js +2 -0
- package/dist/client/assets/BlockDataForm-DvgCpCxy.js +1 -0
- package/dist/client/assets/BlocksForm-CTDjl09L.js +2 -0
- package/dist/client/assets/BlocksToolbar-Tq18mPLi.js +1 -0
- package/dist/client/assets/ButtonsWidget-uO96wErC.js +1 -0
- package/dist/client/assets/ByDayField-BZ3N4ASQ.js +1 -0
- package/dist/client/assets/ChangePassword-CMuaFMBI.js +1 -0
- package/dist/client/assets/CheckboxWidget-Cdn9sM5i.js +1 -0
- package/dist/client/assets/ColorPickerWidget-CbZGSU8b.js +1 -0
- package/dist/client/assets/CommentEditModal-DpnUn4Z5.js +1 -0
- package/dist/client/assets/Comments-CjKXklVx.js +1 -0
- package/dist/client/assets/ConfigureRule-BRQ38Aew.js +1 -0
- package/dist/client/assets/Confirm-CzWNQ0bN.js +1 -0
- package/dist/client/assets/ContactForm-BOqiQ2no.js +1 -0
- package/dist/client/assets/ContentType-BU-FjS9z.js +1 -0
- package/dist/client/assets/ContentTypeLayout-hu7U-BZZ.js +1 -0
- package/dist/client/assets/ContentTypeSchema-C9Xy-aJp.js +1 -0
- package/dist/client/assets/ContentTypes-Bx_fdzPJ.js +1 -0
- package/dist/client/assets/Contents-vyxUuwEK.js +2 -0
- package/dist/client/assets/ContentsBreadcrumbs-CbQV41BN.js +1 -0
- package/dist/client/assets/ContentsIndexHeader-CaMIsaVK.js +1 -0
- package/dist/client/assets/ContentsItem-Cfmgtdnx.js +1 -0
- package/dist/client/assets/ContentsPropertiesModal-Bd_4FSuU.js +1 -0
- package/dist/client/assets/ContentsRenameModal-O1gT1OXP.js +1 -0
- package/dist/client/assets/ContentsTagsModal-B5Uikj5H.js +1 -0
- package/dist/client/assets/ContentsUploadModal-CGqKr7JY.js +5 -0
- package/dist/client/assets/ContentsWorkflowModal-DzztHiMB.js +1 -0
- package/dist/client/assets/Controlpanel-wPS99xKY.js +1 -0
- package/dist/client/assets/Controlpanels-Cck4ENpb.js +1 -0
- package/dist/client/assets/CreateTranslation-YNXafB67.js +1 -0
- package/dist/client/assets/DatabaseInformation-Bs7bp6nk.js +1 -0
- package/dist/client/assets/DatetimeWidget-BPaVyGfj.js +2 -0
- package/dist/client/assets/DatetimeWidget-BdaHrXzK.css +1 -0
- package/dist/client/assets/Delete-3SPCpAWI.js +1 -0
- package/dist/client/assets/Diff-DdohRcsu.js +2 -0
- package/dist/client/assets/DiffField-D-LH2k2t.js +42 -0
- package/dist/client/assets/Divider-D6HRmbj6.js +1 -0
- package/dist/client/assets/DragDropList-D0TZ7goF.js +1 -0
- package/dist/client/assets/DynamicRowHeightList-Cs_ETNBZ.js +2 -0
- package/dist/client/assets/Edit-BHoEOCyM.js +1 -0
- package/dist/client/assets/EditRule-xqs30O6J.js +1 -0
- package/dist/client/assets/EmailWidget-BRSh3Mta.js +1 -0
- package/dist/client/assets/Error-Bnmu371u.js +1 -0
- package/dist/client/assets/EventDatesInfo-DuFJvWM9.js +2 -0
- package/dist/client/assets/EventView-D_JA03il.js +2 -0
- package/dist/client/assets/Field-B4SWqX3L.js +1 -0
- package/dist/client/assets/FileWidget-DfpYuSPY.js +2 -0
- package/dist/client/assets/Form-71MDgstP.js +1 -0
- package/dist/client/assets/FormattedRelativeDate-Bz7UlQwo.js +1 -0
- package/dist/client/assets/GroupsControlpanel-BKTIV66v.js +1 -0
- package/dist/client/assets/History-Din4KG5Q.js +1 -0
- package/dist/client/assets/IdWidget-DsfSWcqq.js +1 -0
- package/dist/client/assets/ImageSizeWidget-CcXetpRz.js +1 -0
- package/dist/client/assets/InlineForm-BalXKbf0.js +1 -0
- package/dist/client/assets/InternalUrlWidget-D7fPqZu7.js +1 -0
- package/dist/client/assets/LinksToItem-DkQpScDl.js +1 -0
- package/dist/client/assets/Login-PW4fNYgr.js +1 -0
- package/dist/client/assets/Logout-DBFMoCVd.js +1 -0
- package/dist/client/assets/ManageTranslations-BItOeQO4.js +1 -0
- package/dist/client/assets/ModalForm-Df5NZdmP.js +1 -0
- package/dist/client/assets/ModerateComments-N15vSOfs.js +1 -0
- package/dist/client/assets/MonthOfTheYearField-i_Zcrkjw.js +1 -0
- package/dist/client/assets/NumberWidget-CL1krBh5.js +1 -0
- package/dist/client/assets/ObjectBrowserWidget-DRPqyiFh.js +1 -0
- package/dist/client/assets/ObjectListWidget-BhiLosyZ.js +2 -0
- package/dist/client/assets/ObjectWidget-DEEZZbak.js +1 -0
- package/dist/client/assets/Occurences-BZzoeqNF.js +1 -0
- package/dist/client/assets/Order-BYtwjfSa.js +5 -0
- package/dist/client/assets/Pagination-BESLtXMZ.js +1 -0
- package/dist/client/assets/PasswordReset-DiSjCl9C.js +1 -0
- package/dist/client/assets/PasswordWidget-IYXgux5Y.js +1 -0
- package/dist/client/assets/PersonalInformation-Dx_D-a-X.js +1 -0
- package/dist/client/assets/Poppins-Bold-devanagari-x1FzP7sX.woff2 +0 -0
- package/dist/client/assets/Poppins-Bold-latin-Qrb0O0WB.woff2 +0 -0
- package/dist/client/assets/Poppins-Bold-latinext-j1no4XVB.woff2 +0 -0
- package/dist/client/assets/Poppins-BoldItalic-devanagari-BcxLru-s.woff2 +0 -0
- package/dist/client/assets/Poppins-BoldItalic-latin-RKf6esGj.woff2 +0 -0
- package/dist/client/assets/Poppins-BoldItalic-latinext-Dydr-NSJ.woff2 +0 -0
- package/dist/client/assets/Poppins-Light-devanagari-BtHqo3Vt.woff2 +0 -0
- package/dist/client/assets/Poppins-Light-latin-Dku2WoCh.woff2 +0 -0
- package/dist/client/assets/Poppins-Light-latinext-Dp0S20ci.woff2 +0 -0
- package/dist/client/assets/Poppins-Regular-devanagari-DXhQFdtL.woff2 +0 -0
- package/dist/client/assets/Poppins-Regular-latin-cpxAROuN.woff2 +0 -0
- package/dist/client/assets/Poppins-Regular-latinext-CZnfsGfc.woff2 +0 -0
- package/dist/client/assets/Poppins-RegularItalic-devanagari-BO6sGsOT.woff2 +0 -0
- package/dist/client/assets/Poppins-RegularItalic-latin-B4GYq972.woff2 +0 -0
- package/dist/client/assets/Poppins-RegularItalic-latinext-CfukeBgr.woff2 +0 -0
- package/dist/client/assets/Poppins-Semibold-devanagari-CedCftIp.woff2 +0 -0
- package/dist/client/assets/Poppins-Semibold-latin-C8OXljZJ.woff2 +0 -0
- package/dist/client/assets/Poppins-Semibold-latinext-CkbSfFoM.woff2 +0 -0
- package/dist/client/assets/QuerySortOnWidget-DYk7Tb1j.js +2 -0
- package/dist/client/assets/QueryWidget-hV1ixqpQ.js +2 -0
- package/dist/client/assets/QuerystringWidget-CIAF2GzY.js +1 -0
- package/dist/client/assets/RecurrenceWidget-BQeiEr0q.js +2 -0
- package/dist/client/assets/ReferenceWidget-DlWSWesX.js +1 -0
- package/dist/client/assets/Register-BC37zowD.js +1 -0
- package/dist/client/assets/RegistryImageWidget-C9HNFTF3.js +2 -0
- package/dist/client/assets/Relations-LLr95Dit.js +1 -0
- package/dist/client/assets/RenderGroups-Cp2wNEW5.js +1 -0
- package/dist/client/assets/RenderUsers-DoZyA8Fg.js +1 -0
- package/dist/client/assets/RequestPasswordReset-I3mmzPqO.js +1 -0
- package/dist/client/assets/Rules-BDUIGSJQ.js +1 -0
- package/dist/client/assets/Rules-CFPICqnM.js +1 -0
- package/dist/client/assets/SchemaWidget-BZHoA4gu.js +5 -0
- package/dist/client/assets/Search-Dn2aeBTL.js +1 -0
- package/dist/client/assets/SelectAutoComplete-cD2YuhbD.js +2 -0
- package/dist/client/assets/SelectMetadataField-B8dXJ3tz.js +2 -0
- package/dist/client/assets/SelectUtils-DlDXMB8W.js +1 -0
- package/dist/client/assets/SelectWidget-C21VwFjR.js +2 -0
- package/dist/client/assets/Sharing-jzxg0esF.js +1 -0
- package/dist/client/assets/Sidebar-HHWPAF1-.js +1 -0
- package/dist/client/assets/Sitemap-DH_8LhFG.js +1 -0
- package/dist/client/assets/TextWidget-1NA5G8H3.js +1 -0
- package/dist/client/assets/TextareaWidget-D8wRZrM-.js +1 -0
- package/dist/client/assets/TokenWidget-DXRZ2TGd.js +2 -0
- package/dist/client/assets/Toolbar-hcuCtPhN.js +2 -0
- package/dist/client/assets/TranslationObject-B39zMKOs.js +1 -0
- package/dist/client/assets/UndoControlpanel-Dn57qiRw.js +1 -0
- package/dist/client/assets/UndoToolbar-OcDVcNUK.js +1 -0
- package/dist/client/assets/UpgradeControlPanel-Dq9CHVWL.js +1 -0
- package/dist/client/assets/UrlWidget-CyoQZy_y.js +1 -0
- package/dist/client/assets/User-DYAlCOsc.js +1 -0
- package/dist/client/assets/UserGroupMembershipControlPanel-ClDiBW73.js +1 -0
- package/dist/client/assets/UsersControlpanel-CSg45VuW.js +1 -0
- package/dist/client/assets/VersionOverview-BbnLCVXo.js +1 -0
- package/dist/client/assets/VocabularyTermsWidget-CldBc7SS.js +2 -0
- package/dist/client/assets/WeekdayOfTheMonthField-CzfnMD-p.js +1 -0
- package/dist/client/assets/WysiwygWidget-IO58Z5Hp.js +1 -0
- package/dist/client/assets/add-user-C_fRj14n.js +1 -0
- package/dist/client/assets/aliases-DQ8WKfto.js +1 -0
- package/dist/client/assets/ca-DPz_x4tN.js +1 -0
- package/dist/client/assets/ca2-DPz_x4tN.js +1 -0
- package/dist/client/assets/cut-ZxaZMyVt.js +1 -0
- package/dist/client/assets/de-CEfDIAIe.js +1 -0
- package/dist/client/assets/drag-CfL-m2gM.js +1 -0
- package/dist/client/assets/en-UGAeOB73.js +1 -0
- package/dist/client/assets/es-bTR5ZO7p.js +1 -0
- package/dist/client/assets/eu-ClGcMWvo.js +1 -0
- package/dist/client/assets/fi-Cb9XYMls.js +1 -0
- package/dist/client/assets/fr-paTim4vs.js +1 -0
- package/dist/client/assets/groups-DDbRmAiS.js +1 -0
- package/dist/client/assets/hi-wfjyKWJi.js +1 -0
- package/dist/client/assets/history-BE3e3tJX.js +1 -0
- package/dist/client/assets/icons-BvLvFD6l.ttf +0 -0
- package/dist/client/assets/icons-DEAbt7RB.woff +0 -0
- package/dist/client/assets/icons-DtZ6carP.eot +0 -0
- package/dist/client/assets/icons-hSdpWXN3.svg +320 -0
- package/dist/client/assets/image-gallery-BQRpobkJ.js +1 -0
- package/dist/client/assets/index-BHHbVxOw.js +1 -0
- package/dist/client/assets/index-BkdKjjmJ.js +3 -0
- package/dist/client/assets/index-C8dkivrQ.js +1 -0
- package/dist/client/assets/index-D1_AVXIm.js +1 -0
- package/dist/client/assets/index-D27Aat_y.css +346 -0
- package/dist/client/assets/index-Dfhzd_0Q.js +28 -0
- package/dist/client/assets/index-DjC7ygxP.js +2 -0
- package/dist/client/assets/index-R10CHN0W.js +299 -0
- package/dist/client/assets/it-DefHMwCV.js +1 -0
- package/dist/client/assets/ja-ChtpWCYw.js +1 -0
- package/dist/client/assets/memoize-one.esm-CcMeOnPo.js +1 -0
- package/dist/client/assets/messages-D53aTvyU.js +1 -0
- package/dist/client/assets/nl-SQksV7ER.js +1 -0
- package/dist/client/assets/objectWithoutProperties-DJfFCfi7.js +1 -0
- package/dist/client/assets/paste-BecFEOpX.js +1 -0
- package/dist/client/assets/plone-CrIeS8BF.js +1 -0
- package/dist/client/assets/prism-markup-DpNACz_g.js +1 -0
- package/dist/client/assets/pt-aWkeVAjQ.js +1 -0
- package/dist/client/assets/pt_BR-77wXUzSL.js +1 -0
- package/dist/client/assets/react-beautiful-dnd.esm-kgQsny0G.js +61 -0
- package/dist/client/assets/react-lifecycles-compat.es-AfN2QaV3.js +9 -0
- package/dist/client/assets/react-select.esm-B_zbeWFZ.js +1 -0
- package/dist/client/assets/react-select.esm-C5HgAv8T.js +1 -0
- package/dist/client/assets/react-select.esm-D6SOKyar.js +1 -0
- package/dist/client/assets/relations-C8He-c7q.js +1 -0
- package/dist/client/assets/ro-DAOiSqwr.js +1 -0
- package/dist/client/assets/rruleset-B-gU6Vu6.js +7 -0
- package/dist/client/assets/rules-gMbfzj9b.js +1 -0
- package/dist/client/assets/save-A8XnzzXZ.js +1 -0
- package/dist/client/assets/sidebar-Cg9xJ3Wn.js +1 -0
- package/dist/client/assets/stateManager-845a3300.esm-FHbDYpjV.js +4 -0
- package/dist/client/assets/translations-Ch2bqGLg.js +1 -0
- package/dist/client/assets/undo-BK07_7QN.js +1 -0
- package/dist/client/assets/useClient-BEoxUiuE.js +1 -0
- package/dist/client/assets/users-D9kPg8yt.js +1 -0
- package/dist/client/assets/vocabularies-DlvvsO0O.js +1 -0
- package/dist/client/assets/workflow-CHtwvb_4.js +1 -0
- package/dist/client/assets/zh_CN-eXXUKVGT.js +1 -0
- package/dist/client/favicon-16x16.png +0 -0
- package/dist/client/favicon-32x32.png +0 -0
- package/dist/client/favicon.ico +0 -0
- package/dist/client/icon.svg +13 -0
- package/dist/client/index.html +14 -0
- package/dist/client/index.html.spa +34 -0
- package/dist/client/robots.txt +2 -0
- package/dist/client/site.webmanifest +19 -0
- package/dist/favicon-16x16.png +0 -0
- package/dist/favicon-32x32.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/icon.svg +13 -0
- package/dist/index.html +14 -0
- package/dist/index.html.spa +34 -0
- package/dist/robots.txt +2 -0
- package/dist/server/android-chrome-192x192.png +0 -0
- package/dist/server/android-chrome-512x512.png +0 -0
- package/dist/server/apple-touch-icon.png +0 -0
- package/dist/server/assets/Add-CsJoCji4.js +507 -0
- package/dist/server/assets/AddRule-cE7fxqDi.js +392 -0
- package/dist/server/assets/AddonsControlpanel-W-JmCCQZ.js +555 -0
- package/dist/server/assets/Aliases-CDNyL3r1.js +399 -0
- package/dist/server/assets/Aliases-tMadX250.js +568 -0
- package/dist/server/assets/AlignWidget-BAMFIDm-.js +125 -0
- package/dist/server/assets/ArrayWidget-CgfS8hDH.js +363 -0
- package/dist/server/assets/BlockDataForm-zfD1scIv.js +92 -0
- package/dist/server/assets/BlocksForm-DW5cAojg.js +752 -0
- package/dist/server/assets/BlocksToolbar-B9n_ff9E.js +277 -0
- package/dist/server/assets/ButtonsWidget-BoUEtgpa.js +97 -0
- package/dist/server/assets/ByDayField-C6SuyhPy.js +118 -0
- package/dist/server/assets/ChangePassword-K3-cTffr.js +217 -0
- package/dist/server/assets/CheckboxWidget-C2UdwJnU.js +108 -0
- package/dist/server/assets/ColorPickerWidget-C3Fs64WC.js +72 -0
- package/dist/server/assets/CommentEditModal-CJIT5LNs.js +144 -0
- package/dist/server/assets/Comments-BYGPCvYn.js +416 -0
- package/dist/server/assets/ConfigureRule-DJaR8x5h.js +1338 -0
- package/dist/server/assets/ContactForm-D2pQPuAd.js +246 -0
- package/dist/server/assets/ContentType-BHuuMMOP.js +318 -0
- package/dist/server/assets/ContentTypeLayout-4t4HDZ3j.js +547 -0
- package/dist/server/assets/ContentTypeSchema-BV_tFkff.js +383 -0
- package/dist/server/assets/ContentTypes-C40JO5N_.js +567 -0
- package/dist/server/assets/Contents-BOn6l3S9.js +2364 -0
- package/dist/server/assets/ContentsBreadcrumbs-Dtyd6Hr0.js +153 -0
- package/dist/server/assets/ContentsIndexHeader-DxJAuKwb.js +97 -0
- package/dist/server/assets/ContentsItem-bD7oEcmI.js +446 -0
- package/dist/server/assets/ContentsPropertiesModal-q9wA0Aal.js +231 -0
- package/dist/server/assets/ContentsRenameModal-Bk9lIkwt.js +181 -0
- package/dist/server/assets/ContentsTagsModal-C-gTZFmZ.js +168 -0
- package/dist/server/assets/ContentsUploadModal-DiUUlQ5S.js +340 -0
- package/dist/server/assets/ContentsWorkflowModal-CAc4f94G.js +177 -0
- package/dist/server/assets/Controlpanel-HK3BGM-X.js +310 -0
- package/dist/server/assets/Controlpanels-DyXD6DdO.js +310 -0
- package/dist/server/assets/CreateTranslation-DG5LTQTQ.js +112 -0
- package/dist/server/assets/DatabaseInformation-ChVnavys.js +241 -0
- package/dist/server/assets/DatetimeWidget-CHdttszV.js +271 -0
- package/dist/server/assets/Delete-Cx_tWSDi.js +188 -0
- package/dist/server/assets/Diff-Ddx1DMp8.js +415 -0
- package/dist/server/assets/DiffField-BcZUPjLc.js +195 -0
- package/dist/server/assets/DragDropList-CiuXlWfI.js +164 -0
- package/dist/server/assets/DynamicRowHeightList-BomAJzxz.js +60 -0
- package/dist/server/assets/Edit-DAIHguhl.js +669 -0
- package/dist/server/assets/EditRule-lTwgcp6X.js +423 -0
- package/dist/server/assets/EmailWidget-DPCyfiXg.js +129 -0
- package/dist/server/assets/Error-MJ-ObF_2.js +21 -0
- package/dist/server/assets/EventDatesInfo-CtX7N3Lc.js +171 -0
- package/dist/server/assets/EventView-r4SE_kC7.js +275 -0
- package/dist/server/assets/Field-kKcQmlbv.js +184 -0
- package/dist/server/assets/FileWidget-B3jY_tIe.js +205 -0
- package/dist/server/assets/Form-BqwUy8yR.js +959 -0
- package/dist/server/assets/FormattedRelativeDate-eSbRd-qW.js +48 -0
- package/dist/server/assets/GroupsControlpanel-DjZK6zeD.js +697 -0
- package/dist/server/assets/History-CGuT0Gxk.js +373 -0
- package/dist/server/assets/IdWidget-DbyITK61.js +217 -0
- package/dist/server/assets/ImageSizeWidget-DKY4NccJ.js +136 -0
- package/dist/server/assets/InlineForm-D45kJH2i.js +283 -0
- package/dist/server/assets/InternalUrlWidget-B6sRTbIQ.js +192 -0
- package/dist/server/assets/LinksToItem-6uMHi4JH.js +280 -0
- package/dist/server/assets/Login-BnWfiyxk.js +275 -0
- package/dist/server/assets/Logout-DDzsV2_q.js +115 -0
- package/dist/server/assets/ManageTranslations-DBpk3SPh.js +316 -0
- package/dist/server/assets/ModalForm-BFUz4-5h.js +343 -0
- package/dist/server/assets/ModerateComments-BSWE6DLB.js +332 -0
- package/dist/server/assets/MonthOfTheYearField-BKVtfnMh.js +110 -0
- package/dist/server/assets/NumberWidget-D2oZIOtl.js +129 -0
- package/dist/server/assets/ObjectBrowserWidget-DwTYxap2.js +420 -0
- package/dist/server/assets/ObjectListWidget-DddssDcY.js +258 -0
- package/dist/server/assets/ObjectWidget-DAbu4vKd.js +160 -0
- package/dist/server/assets/Occurences-Zl3kp-s8.js +223 -0
- package/dist/server/assets/Order-DYralO8T.js +586 -0
- package/dist/server/assets/Pagination-DhaW_lzc.js +98 -0
- package/dist/server/assets/PasswordReset-XB45O1K2.js +336 -0
- package/dist/server/assets/PasswordWidget-CvKRkTK-.js +131 -0
- package/dist/server/assets/PersonalInformation--cOokZv2.js +78 -0
- package/dist/server/assets/QuerySortOnWidget-BSGAZOfo.js +136 -0
- package/dist/server/assets/QueryWidget-D8pt9fPj.js +492 -0
- package/dist/server/assets/QuerystringWidget-4LGKA9EF.js +176 -0
- package/dist/server/assets/RecurrenceWidget-DmaZUmHT.js +1426 -0
- package/dist/server/assets/ReferenceWidget-BYkwGmcC.js +236 -0
- package/dist/server/assets/Register-DCPdPToE.js +185 -0
- package/dist/server/assets/RegistryImageWidget-Clx3uX9X.js +189 -0
- package/dist/server/assets/Relations-HXFX3OhR.js +1092 -0
- package/dist/server/assets/RenderGroups-15rVe2q0.js +134 -0
- package/dist/server/assets/RenderUsers-DQoVtZTV.js +254 -0
- package/dist/server/assets/RequestPasswordReset-DoEfaZxv.js +203 -0
- package/dist/server/assets/Rules-C368LdtM.js +557 -0
- package/dist/server/assets/Rules-DEEwiG_G.js +456 -0
- package/dist/server/assets/SchemaWidget-42TNEpHs.js +1392 -0
- package/dist/server/assets/Search-Cj9Vf745.js +417 -0
- package/dist/server/assets/SelectAutoComplete-QN8lOuc8.js +279 -0
- package/dist/server/assets/SelectMetadataField-CVmZ9snw.js +184 -0
- package/dist/server/assets/SelectUtils-CfKnO3Pp.js +72 -0
- package/dist/server/assets/SelectWidget-EYyEok6L.js +317 -0
- package/dist/server/assets/Sharing-lbff3IeO.js +579 -0
- package/dist/server/assets/Sidebar-DuoR_j80.js +246 -0
- package/dist/server/assets/Sitemap-DyY1fP-7.js +164 -0
- package/dist/server/assets/TextWidget-BhMn8hi_.js +156 -0
- package/dist/server/assets/TextareaWidget-BD3faCaG.js +125 -0
- package/dist/server/assets/TokenWidget-BzMjib_o.js +244 -0
- package/dist/server/assets/Toolbar-DVsVq7NQ.js +1695 -0
- package/dist/server/assets/TranslationObject-Cu7Oz0D_.js +120 -0
- package/dist/server/assets/UndoControlpanel-CfSOfvIf.js +690 -0
- package/dist/server/assets/UndoToolbar-DIbEtI6_.js +226 -0
- package/dist/server/assets/UpgradeControlPanel-DqSvBsKg.js +397 -0
- package/dist/server/assets/UrlWidget-C0_i8u8y.js +194 -0
- package/dist/server/assets/User-CeYa32LY.js +21 -0
- package/dist/server/assets/UserGroupMembershipControlPanel-GJ1xAI2H.js +635 -0
- package/dist/server/assets/UsersControlpanel-D_FsBPMW.js +752 -0
- package/dist/server/assets/VersionOverview-CKK4Mh4X.js +577 -0
- package/dist/server/assets/VocabularyTermsWidget-CErDWtRU.js +311 -0
- package/dist/server/assets/WeekdayOfTheMonthField-Cr_GRGfk.js +97 -0
- package/dist/server/assets/WysiwygWidget-lCJy28BX.js +71 -0
- package/dist/server/assets/add-user-OjrbLPze.js +15 -0
- package/dist/server/assets/aliases-C1e1Zo30.js +36 -0
- package/dist/server/assets/ca-DyGhRQw8.js +1582 -0
- package/dist/server/assets/ca2-BGpXXCA_.js +1582 -0
- package/dist/server/assets/cut-BEOWxek2.js +6 -0
- package/dist/server/assets/de-C9Bn7Rn5.js +1605 -0
- package/dist/server/assets/drag-DY7wFRIh.js +4 -0
- package/dist/server/assets/en-BmNu-gsU.js +1605 -0
- package/dist/server/assets/es-XH30tkMP.js +1582 -0
- package/dist/server/assets/eu-VsSby9_e.js +1582 -0
- package/dist/server/assets/fi-BRqySjmD.js +1582 -0
- package/dist/server/assets/fr-DWx9W4gK.js +1582 -0
- package/dist/server/assets/groups-DlLziArH.js +57 -0
- package/dist/server/assets/hi-CJ8Pz8K_.js +1582 -0
- package/dist/server/assets/history-Di4xw5JV.js +24 -0
- package/dist/server/assets/index-7OxxMyWS.js +61 -0
- package/dist/server/assets/it-Db41lwPq.js +1582 -0
- package/dist/server/assets/ja-sRZcO51F.js +1582 -0
- package/dist/server/assets/messages-Daz-GFAC.js +9 -0
- package/dist/server/assets/nl-CH7F8zGZ.js +1582 -0
- package/dist/server/assets/paste-CtDNO5f5.js +4 -0
- package/dist/server/assets/plone-DmfQ132L.js +4 -0
- package/dist/server/assets/pt-BWnCu7AF.js +1582 -0
- package/dist/server/assets/pt_BR-D2d5lTnr.js +1582 -0
- package/dist/server/assets/relations-DpP4v3e7.js +63 -0
- package/dist/server/assets/ro-BlUnfGvL.js +1582 -0
- package/dist/server/assets/rules-BR_HXhIG.js +261 -0
- package/dist/server/assets/save-C0BIu8AK.js +4 -0
- package/dist/server/assets/sidebar-BGq8uRxG.js +23 -0
- package/dist/server/assets/translations-DicXGvqf.js +39 -0
- package/dist/server/assets/undo-lQM6Vhc7.js +4 -0
- package/dist/server/assets/useClient-_7WynRVZ.js +11 -0
- package/dist/server/assets/users-BY0qskQF.js +112 -0
- package/dist/server/assets/vocabularies-C3rWoW1K.js +90 -0
- package/dist/server/assets/zh_CN-Cy1xbPRJ.js +1582 -0
- package/dist/server/entry-server.js +32003 -0
- package/dist/server/favicon-16x16.png +0 -0
- package/dist/server/favicon-32x32.png +0 -0
- package/dist/server/favicon.ico +0 -0
- package/dist/server/icon.svg +13 -0
- package/dist/server/index.html.spa +34 -0
- package/dist/server/robots.txt +2 -0
- package/dist/server/site.webmanifest +19 -0
- package/dist/site.webmanifest +19 -0
- package/locales/ca/LC_MESSAGES/volto.po +13 -12
- package/locales/ca.json +1 -1
- package/locales/ca2.json +1 -0
- package/locales/de/LC_MESSAGES/volto.po +14 -13
- package/locales/de.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +13 -12
- package/locales/en.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +14 -13
- package/locales/es.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +14 -13
- package/locales/eu.json +1 -1
- package/locales/fi/LC_MESSAGES/volto.po +14 -13
- package/locales/fi.json +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +14 -13
- package/locales/fr.json +1 -1
- package/locales/hi/LC_MESSAGES/volto.po +14 -13
- package/locales/hi.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +50 -49
- package/locales/it.json +1 -1
- package/locales/ja/LC_MESSAGES/volto.po +13 -12
- package/locales/ja.json +1 -1
- package/locales/nl/LC_MESSAGES/volto.po +13 -12
- package/locales/nl.json +1 -1
- package/locales/pt/LC_MESSAGES/volto.po +13 -12
- package/locales/pt.json +1 -1
- package/locales/pt_BR/LC_MESSAGES/volto.po +79 -78
- package/locales/pt_BR.json +1 -1
- package/locales/ro/LC_MESSAGES/volto.po +13 -12
- package/locales/ro.json +1 -1
- package/locales/volto.pot +14 -13
- package/locales/zh_CN/LC_MESSAGES/volto.po +14 -13
- package/locales/zh_CN.json +1 -1
- package/package.json +3 -3
- package/razzle.config.js +1 -1
- package/src/components/manage/Actions/Actions.stories.jsx +138 -0
- package/src/components/manage/Add/Add.jsx +7 -4
- package/src/components/manage/BlockChooser/BlockChooser.jsx +9 -1
- package/src/components/manage/BlockChooser/BlockChooser.test.jsx +4 -0
- package/src/components/manage/Blocks/Block/Edit.jsx +24 -8
- package/src/components/manage/Blocks/Block/EditBlockWrapper.jsx +24 -2
- package/src/components/manage/Blocks/Block/Order/Item.jsx +3 -1
- package/src/components/manage/Blocks/Grid/View.jsx +3 -0
- package/src/components/manage/Blocks/LeadImage/Edit.jsx +74 -126
- package/src/components/manage/Blocks/Search/components/CheckboxFacet.jsx +1 -0
- package/src/components/manage/Blocks/Search/components/SortOn.jsx +82 -55
- package/src/components/manage/Blocks/Search/widgets/SelectMetadataField.jsx +107 -176
- package/src/components/manage/Blocks/Teaser/DefaultBody.jsx +15 -8
- package/src/components/manage/Blocks/ToC/Edit.jsx +36 -29
- package/src/components/manage/Blocks/Video/Edit.jsx +105 -172
- package/src/components/manage/Blocks/Video/Edit.stories.jsx +57 -0
- package/src/components/manage/Contents/Contents.jsx +3 -0
- package/src/components/manage/Contents/ContentsBreadcrumbs.stories.jsx +46 -0
- package/src/components/manage/Contents/ContentsPropertiesModal.jsx +85 -52
- package/src/components/manage/Contents/ContentsUploadModal.jsx +230 -323
- package/src/components/manage/Contents/ContentsUploadModal.stories.jsx +56 -0
- package/src/components/manage/Controlpanels/AddonsControlpanel.jsx +323 -441
- package/src/components/manage/Controlpanels/Aliases.jsx +452 -580
- package/src/components/manage/Controlpanels/Aliases.stories.jsx +74 -0
- package/src/components/manage/Controlpanels/Controlpanel.jsx +41 -2
- package/src/components/manage/Controlpanels/Controlpanel.test.jsx +55 -24
- package/src/components/manage/Controlpanels/DatabaseInformation.jsx +162 -229
- package/src/components/manage/Controlpanels/Groups/RenderGroups.jsx +74 -122
- package/src/components/manage/Diff/DiffField.jsx +167 -39
- package/src/components/manage/Display/Display.jsx +92 -148
- package/src/components/manage/Display/Display.stories.jsx +46 -0
- package/src/components/manage/Edit/Edit.jsx +2 -4
- package/src/components/manage/Form/Form.jsx +31 -22
- package/src/components/manage/Preferences/ChangePassword.jsx +94 -172
- package/src/components/manage/Preferences/ChangePassword.stories.jsx +41 -0
- package/src/components/manage/Preferences/PersonalInformation.jsx +50 -115
- package/src/components/manage/Preferences/PersonalPreferences.jsx +46 -100
- package/src/components/manage/Preferences/PersonalPreferences.stories.jsx +48 -0
- package/src/components/manage/Sidebar/SidebarPopup.jsx +9 -1
- package/src/components/manage/Toast/Toast.jsx +2 -2
- package/src/components/manage/Toolbar/More.jsx +308 -399
- package/src/components/manage/Widgets/ArrayWidget.jsx +1 -0
- package/src/components/manage/Widgets/DatetimeWidget.jsx +121 -175
- package/src/components/manage/Widgets/FormFieldWrapper.jsx +23 -3
- package/src/components/manage/Widgets/ReferenceWidget.jsx +134 -210
- package/src/components/manage/Widgets/SelectWidget.jsx +1 -0
- package/src/components/manage/Widgets/TokenWidget.jsx +1 -0
- package/src/components/theme/Register/Register.jsx +70 -142
- package/src/components/theme/Register/Register.stories.jsx +49 -0
- package/src/components/theme/Tags/Tags.jsx +19 -10
- package/src/components/theme/Tags/Tags.test.jsx +9 -11
- package/src/components/theme/View/AlbumView.jsx +122 -167
- package/src/components/theme/View/LinkView.jsx +4 -0
- package/src/components/theme/View/LinkView.test.jsx +2 -0
- package/src/components/theme/View/View.jsx +0 -6
- package/src/config/ControlPanels.js +49 -43
- package/src/config/NonContentRoutesPublic.jsx +15 -0
- package/src/config/config.test.js +1 -0
- package/src/config/index.js +18 -0
- package/src/config/slots.js +12 -0
- package/src/helpers/Blocks/Blocks.js +13 -8
- package/src/helpers/Blocks/Blocks.test.js +15 -0
- package/src/helpers/Blocks/cloneBlocks.ts +1 -1
- package/src/helpers/FormValidation/FormValidation.jsx +19 -2
- package/src/helpers/FormValidation/validators.ts +1 -1
- package/src/helpers/Url/Url.js +4 -1
- package/src/helpers/Url/Url.test.js +32 -5
- package/src/helpers/Url/urlRegex.js +1 -1
- package/src/helpers/index.js +2 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/user/useUser.js +23 -0
- package/src/middleware/api.js +4 -2
- package/src/middleware/index.js +1 -0
- package/src/middleware/userSessionReset.js +46 -0
- package/src/store.js +2 -0
- package/test-setup-config.jsx +5 -0
- package/theme/themes/pastanaga/collections/form.overrides +1 -0
- package/theme/themes/pastanaga/collections/table.overrides +6 -1
- package/theme/themes/pastanaga/extras/blocks.less +6 -0
- package/theme/themes/pastanaga/extras/main.less +3 -2
- package/theme/themes/pastanaga/extras/toolbar.less +14 -2
- package/theme/themes/pastanaga/extras/widgets.less +12 -0
- package/theme/themes/pastanaga/modules/accordion.variables +3 -3
- package/types/components/manage/Actions/Actions.stories.d.ts +8 -0
- package/types/components/manage/Blocks/LeadImage/Edit.d.ts +14 -5
- package/types/components/manage/Blocks/Search/widgets/SelectMetadataField.d.ts +0 -5
- package/types/components/manage/Blocks/ToC/Edit.d.ts +1 -6
- package/types/components/manage/Blocks/Video/Edit.d.ts +1 -1
- package/types/components/manage/Blocks/Video/Edit.stories.d.ts +8 -0
- package/types/components/manage/Contents/ContentsBreadcrumbs.stories.d.ts +8 -0
- package/types/components/manage/Contents/ContentsUploadModal.d.ts +14 -2
- package/types/components/manage/Contents/ContentsUploadModal.stories.d.ts +8 -0
- package/types/components/manage/Contents/index.d.ts +1 -1
- package/types/components/manage/Controlpanels/AddonsControlpanel.d.ts +2 -2
- package/types/components/manage/Controlpanels/Aliases.d.ts +2 -2
- package/types/components/manage/Controlpanels/Aliases.stories.d.ts +8 -0
- package/types/components/manage/Controlpanels/DatabaseInformation.d.ts +2 -2
- package/types/components/manage/Controlpanels/Groups/RenderGroups.d.ts +10 -5
- package/types/components/manage/Controlpanels/index.d.ts +4 -4
- package/types/components/manage/Display/Display.stories.d.ts +8 -0
- package/types/components/manage/Preferences/ChangePassword.d.ts +2 -2
- package/types/components/manage/Preferences/ChangePassword.stories.d.ts +8 -0
- package/types/components/manage/Preferences/PersonalInformation.d.ts +7 -2
- package/types/components/manage/Preferences/PersonalPreferences.d.ts +5 -1
- package/types/components/manage/Preferences/PersonalPreferences.stories.d.ts +8 -0
- package/types/components/manage/Toolbar/More.d.ts +8 -5
- package/types/components/manage/Widgets/DatetimeWidget.d.ts +0 -85
- package/types/components/manage/Widgets/DatetimeWidget.stories.d.ts +0 -1
- package/types/components/manage/Widgets/ReferenceWidget.d.ts +27 -2
- package/types/components/manage/Widgets/index.d.ts +1 -1
- package/types/components/theme/Register/Register.d.ts +2 -2
- package/types/components/theme/Register/Register.stories.d.ts +9 -0
- package/types/components/theme/Tags/Tags.d.ts +15 -7
- package/types/components/theme/View/AlbumView.d.ts +3 -17
- package/types/config/ControlPanels.d.ts +8 -0
- package/types/config/NonContentRoutesPublic.d.ts +1 -0
- package/types/config/Widgets.d.ts +1 -1
- package/types/config/slots.d.ts +21 -0
- package/types/helpers/Blocks/Blocks.d.ts +7 -1
- package/types/helpers/FormValidation/FormValidation.d.ts +1 -0
- package/types/helpers/index.d.ts +2 -2
- package/types/hooks/index.d.ts +1 -0
- package/types/hooks/user/useUser.d.ts +2 -0
- package/types/middleware/index.d.ts +1 -0
- package/types/middleware/userSessionReset.d.ts +5 -0
- package/vite-plugins/volto.js +30 -0
|
@@ -0,0 +1,1092 @@
|
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React__default, { useEffect, useState } from "react";
|
|
3
|
+
import { uniqBy, find, capitalize } from "lodash-es";
|
|
4
|
+
import { useDispatch, useSelector } from "react-redux";
|
|
5
|
+
import { createPortal } from "react-dom";
|
|
6
|
+
import { useHistory } from "react-router";
|
|
7
|
+
import { useLocation, Link } from "react-router-dom";
|
|
8
|
+
import { useIntl, FormattedMessage } from "react-intl";
|
|
9
|
+
import { Checkbox, Message, Divider, Segment, Table, Tab, Form as Form$1, Header, Dropdown, Input, Button, Popup } from "semantic-ui-react";
|
|
10
|
+
import { bR as REBUILD_RELATIONS, bS as useDeepCompareEffect, aP as searchContent, bT as resetSearchContent, N as UniversalLink, aw as messages, T as Toast, bU as ConditionalLink, f as flattenToAppURL, X as withObjectBrowser, I as Icon, k as clearSVG, bV as navTreeSVG, C as listActions, H as HelmetExport, bI as getParentUrl, o as backSVG } from "../entry-server.js";
|
|
11
|
+
import { T as Toolbar } from "./Toolbar-DVsVq7NQ.js";
|
|
12
|
+
import { compose } from "redux";
|
|
13
|
+
import { toast } from "react-toastify";
|
|
14
|
+
import { q as queryRelations, c as createRelations, d as deleteRelations, g as getRelationStats } from "./relations-DpP4v3e7.js";
|
|
15
|
+
import "classnames";
|
|
16
|
+
import "moment";
|
|
17
|
+
import "prop-types";
|
|
18
|
+
import "react-router-hash-link";
|
|
19
|
+
import "tlds";
|
|
20
|
+
import "prepend-http";
|
|
21
|
+
import "lodash-move";
|
|
22
|
+
import "react-dom/server";
|
|
23
|
+
import "react-transition-group";
|
|
24
|
+
import "promise-file-reader";
|
|
25
|
+
import "uuid";
|
|
26
|
+
import "pretty-bytes";
|
|
27
|
+
import "react-side-effect";
|
|
28
|
+
import "github-slugger";
|
|
29
|
+
import "slate";
|
|
30
|
+
import "hoist-non-react-statics";
|
|
31
|
+
import "query-string";
|
|
32
|
+
import "slate-react";
|
|
33
|
+
import "prettier/standalone";
|
|
34
|
+
import "prettier/parser-html";
|
|
35
|
+
import "prismjs/components/prism-core.js";
|
|
36
|
+
import "react-animate-height";
|
|
37
|
+
import "react-popper";
|
|
38
|
+
import "react-sortable-hoc";
|
|
39
|
+
import "react-dates/initialize.js";
|
|
40
|
+
import "react-anchor-link-smooth-scroll";
|
|
41
|
+
import "jwt-decode";
|
|
42
|
+
import "react-router-config";
|
|
43
|
+
import "react-fast-compare";
|
|
44
|
+
import "object-assign";
|
|
45
|
+
import "lodash-es/split.js";
|
|
46
|
+
import "lodash-es/join.js";
|
|
47
|
+
import "lodash-es/trim.js";
|
|
48
|
+
import "react-cookie";
|
|
49
|
+
import "react-intl-redux";
|
|
50
|
+
import "universal-cookie";
|
|
51
|
+
import "slate-hyperscript";
|
|
52
|
+
import "is-hotkey";
|
|
53
|
+
import "react-dropzone";
|
|
54
|
+
import "react-intersection-observer";
|
|
55
|
+
import "is-url";
|
|
56
|
+
import "lodash-es/isUndefined.js";
|
|
57
|
+
import "lodash-es/isString.js";
|
|
58
|
+
import "redux-mock-store";
|
|
59
|
+
import "serialize-javascript";
|
|
60
|
+
import "superagent";
|
|
61
|
+
import "connected-react-router";
|
|
62
|
+
import "react-beautiful-dnd";
|
|
63
|
+
import "detect-browser";
|
|
64
|
+
import "locale";
|
|
65
|
+
import "history";
|
|
66
|
+
import "redux-thunk";
|
|
67
|
+
import "redux-localstorage-simple";
|
|
68
|
+
import "debug";
|
|
69
|
+
import "express";
|
|
70
|
+
import "http-proxy-middleware";
|
|
71
|
+
import "./users-BY0qskQF.js";
|
|
72
|
+
import "./User-CeYa32LY.js";
|
|
73
|
+
import "./PersonalInformation--cOokZv2.js";
|
|
74
|
+
function rebuildRelations(flush = false) {
|
|
75
|
+
let path = "/@relations/rebuild";
|
|
76
|
+
const data = flush === true ? { flush: 1 } : {};
|
|
77
|
+
return {
|
|
78
|
+
type: REBUILD_RELATIONS,
|
|
79
|
+
request: {
|
|
80
|
+
op: "post",
|
|
81
|
+
path,
|
|
82
|
+
data
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
const RelationsListing = ({
|
|
87
|
+
relationtype,
|
|
88
|
+
query_source,
|
|
89
|
+
query_target,
|
|
90
|
+
potential_sources_path,
|
|
91
|
+
potential_targets_path
|
|
92
|
+
// target_filter,
|
|
93
|
+
}) => {
|
|
94
|
+
const intl = useIntl();
|
|
95
|
+
const dispatch = useDispatch();
|
|
96
|
+
const MAX = 40;
|
|
97
|
+
const MAX_RELATIONS = 1e3;
|
|
98
|
+
const stats = useSelector((state) => {
|
|
99
|
+
var _a, _b;
|
|
100
|
+
return ((_b = (_a = state.relations) == null ? void 0 : _a.stats) == null ? void 0 : _b.data) || null;
|
|
101
|
+
});
|
|
102
|
+
let relations = useSelector(
|
|
103
|
+
(state) => {
|
|
104
|
+
var _a, _b, _c, _d;
|
|
105
|
+
return ((_d = (_c = (_b = (_a = state.relations) == null ? void 0 : _a.relations) == null ? void 0 : _b.data) == null ? void 0 : _c[relationtype]) == null ? void 0 : _d.items) || [];
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
let potential_targets_objects = useSelector(
|
|
109
|
+
(state) => {
|
|
110
|
+
var _a;
|
|
111
|
+
return ((_a = state.search.subrequests.potential_targets) == null ? void 0 : _a.items) || [];
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
let potential_sources_objects = useSelector(
|
|
115
|
+
(state) => {
|
|
116
|
+
var _a;
|
|
117
|
+
return ((_a = state.search.subrequests.potential_sources) == null ? void 0 : _a.items) || [];
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
const staticCatalogVocabularyQuery = useSelector(
|
|
121
|
+
(state) => {
|
|
122
|
+
var _a, _b, _c, _d;
|
|
123
|
+
return ((_d = (_c = (_b = (_a = state.relations) == null ? void 0 : _a.relations) == null ? void 0 : _b.data) == null ? void 0 : _c[relationtype]) == null ? void 0 : _d.staticCatalogVocabularyQuery) || {};
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
const editable = useSelector(
|
|
127
|
+
(state) => {
|
|
128
|
+
var _a, _b, _c, _d;
|
|
129
|
+
return ((_d = (_c = (_b = (_a = state.relations) == null ? void 0 : _a.relations) == null ? void 0 : _b.data) == null ? void 0 : _c[relationtype]) == null ? void 0 : _d.readonly) !== true;
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
let relationMatrix = {};
|
|
133
|
+
relations.map((tpl) => {
|
|
134
|
+
if (relationMatrix[tpl.source.UID]) {
|
|
135
|
+
relationMatrix[tpl.source.UID].targets.push(tpl.target);
|
|
136
|
+
} else {
|
|
137
|
+
relationMatrix[tpl.source.UID] = {
|
|
138
|
+
source: tpl.source,
|
|
139
|
+
targets: [tpl.target]
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
return relationMatrix;
|
|
143
|
+
});
|
|
144
|
+
let matrix_options = relations.map((relation) => ({
|
|
145
|
+
value: relation.target.UID,
|
|
146
|
+
label: relation.target.title,
|
|
147
|
+
url: relation.target["@id"],
|
|
148
|
+
review_state: relation.target.review_state,
|
|
149
|
+
uid: relation.target.UID
|
|
150
|
+
}));
|
|
151
|
+
matrix_options = uniqBy(matrix_options, function(el) {
|
|
152
|
+
return el.value;
|
|
153
|
+
});
|
|
154
|
+
const potential_targets = potential_targets_objects.map((obj) => ({
|
|
155
|
+
value: obj.UID,
|
|
156
|
+
label: obj.title,
|
|
157
|
+
url: obj["@id"],
|
|
158
|
+
review_state: obj.review_state,
|
|
159
|
+
uid: obj.UID
|
|
160
|
+
}));
|
|
161
|
+
matrix_options = query_source === "" && query_target === "" && potential_sources_path !== "" && potential_targets_path !== "" ? potential_targets : [...matrix_options, ...potential_targets];
|
|
162
|
+
matrix_options = uniqBy(matrix_options, function(el) {
|
|
163
|
+
return el.value;
|
|
164
|
+
});
|
|
165
|
+
matrix_options.sort(function(a, b) {
|
|
166
|
+
var labelA = a.label.toUpperCase();
|
|
167
|
+
var labelB = b.label.toUpperCase();
|
|
168
|
+
if (labelA < labelB) {
|
|
169
|
+
return -1;
|
|
170
|
+
}
|
|
171
|
+
if (labelA > labelB) {
|
|
172
|
+
return 1;
|
|
173
|
+
}
|
|
174
|
+
return 0;
|
|
175
|
+
});
|
|
176
|
+
let items = Object.keys(relationMatrix).map((key) => ({
|
|
177
|
+
value: key,
|
|
178
|
+
label: relationMatrix[key].source.title,
|
|
179
|
+
targets: relationMatrix[key].targets.map((el) => el.UID),
|
|
180
|
+
url: relationMatrix[key].source["@id"],
|
|
181
|
+
review_state: relationMatrix[key].source.review_state
|
|
182
|
+
}));
|
|
183
|
+
const potential_sources = potential_sources_objects.map((obj) => {
|
|
184
|
+
var _a, _b;
|
|
185
|
+
return {
|
|
186
|
+
value: obj.UID,
|
|
187
|
+
label: obj.title,
|
|
188
|
+
targets: ((_b = (_a = relationMatrix[obj.UID]) == null ? void 0 : _a.targets) == null ? void 0 : _b.map((el) => el.UID)) || [],
|
|
189
|
+
url: obj["@id"],
|
|
190
|
+
review_state: obj.review_state
|
|
191
|
+
};
|
|
192
|
+
});
|
|
193
|
+
items = query_source === "" && query_target === "" && potential_sources_path !== "" && potential_targets_path !== "" ? potential_sources : [...items, ...potential_sources];
|
|
194
|
+
items = uniqBy(items, function(el) {
|
|
195
|
+
return el.value;
|
|
196
|
+
});
|
|
197
|
+
items.sort(function(a, b) {
|
|
198
|
+
var labelA = a.label.toUpperCase();
|
|
199
|
+
var labelB = b.label.toUpperCase();
|
|
200
|
+
if (labelA < labelB) {
|
|
201
|
+
return -1;
|
|
202
|
+
}
|
|
203
|
+
if (labelA > labelB) {
|
|
204
|
+
return 1;
|
|
205
|
+
}
|
|
206
|
+
return 0;
|
|
207
|
+
});
|
|
208
|
+
useEffect(() => {
|
|
209
|
+
if ((stats == null ? void 0 : stats.stats[relationtype]) <= MAX_RELATIONS) {
|
|
210
|
+
dispatch(queryRelations(relationtype));
|
|
211
|
+
} else {
|
|
212
|
+
dispatch(
|
|
213
|
+
queryRelations(
|
|
214
|
+
relationtype,
|
|
215
|
+
false,
|
|
216
|
+
null,
|
|
217
|
+
null,
|
|
218
|
+
null,
|
|
219
|
+
query_source ? query_source.startsWith("/") ? query_source : `${query_source}*` : null,
|
|
220
|
+
query_target ? query_target.startsWith("/") ? query_target : `${query_target}*` : null
|
|
221
|
+
)
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
}, [dispatch, stats, relationtype, query_source, query_target]);
|
|
225
|
+
useDeepCompareEffect(() => {
|
|
226
|
+
if (potential_targets_path !== "/" && potential_targets_path !== "") {
|
|
227
|
+
dispatch(
|
|
228
|
+
searchContent(
|
|
229
|
+
potential_targets_path,
|
|
230
|
+
{
|
|
231
|
+
SearchableText: query_target,
|
|
232
|
+
metadata_fields: ["UID"],
|
|
233
|
+
sort_on: "sortable_title",
|
|
234
|
+
...staticCatalogVocabularyQuery
|
|
235
|
+
},
|
|
236
|
+
"potential_targets"
|
|
237
|
+
)
|
|
238
|
+
);
|
|
239
|
+
} else {
|
|
240
|
+
dispatch(resetSearchContent("potential_targets"));
|
|
241
|
+
}
|
|
242
|
+
if (potential_sources_path !== "/" && potential_sources_path !== "") {
|
|
243
|
+
dispatch(
|
|
244
|
+
searchContent(
|
|
245
|
+
potential_sources_path,
|
|
246
|
+
{
|
|
247
|
+
SearchableText: query_source,
|
|
248
|
+
metadata_fields: ["UID"],
|
|
249
|
+
sort_on: "sortable_title"
|
|
250
|
+
// No need to restrict here. ...staticCatalogVocabularyQuery,
|
|
251
|
+
},
|
|
252
|
+
"potential_sources"
|
|
253
|
+
)
|
|
254
|
+
);
|
|
255
|
+
} else {
|
|
256
|
+
dispatch(resetSearchContent("potential_sources"));
|
|
257
|
+
}
|
|
258
|
+
}, [
|
|
259
|
+
dispatch,
|
|
260
|
+
potential_targets_path,
|
|
261
|
+
potential_sources_path,
|
|
262
|
+
staticCatalogVocabularyQuery,
|
|
263
|
+
query_source,
|
|
264
|
+
query_target
|
|
265
|
+
]);
|
|
266
|
+
function fetchRelations() {
|
|
267
|
+
dispatch(
|
|
268
|
+
queryRelations(
|
|
269
|
+
relationtype,
|
|
270
|
+
false,
|
|
271
|
+
null,
|
|
272
|
+
null,
|
|
273
|
+
null,
|
|
274
|
+
query_source ? query_source.startsWith("/") ? query_source : `${query_source}*` : null,
|
|
275
|
+
query_target ? query_target.startsWith("/") ? query_target : `${query_target}*` : null
|
|
276
|
+
)
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
const onSelectOptionHandler = (relation, selectedvalue, checked) => {
|
|
280
|
+
let source = selectedvalue.y;
|
|
281
|
+
let target = selectedvalue.x;
|
|
282
|
+
const relation_data = [
|
|
283
|
+
{
|
|
284
|
+
source,
|
|
285
|
+
target,
|
|
286
|
+
relation
|
|
287
|
+
}
|
|
288
|
+
];
|
|
289
|
+
dispatch(
|
|
290
|
+
checked ? createRelations(relation_data) : deleteRelations(relation_data)
|
|
291
|
+
).then((resp) => {
|
|
292
|
+
fetchRelations();
|
|
293
|
+
}).then(() => {
|
|
294
|
+
toast.success(
|
|
295
|
+
/* @__PURE__ */ jsx(
|
|
296
|
+
Toast,
|
|
297
|
+
{
|
|
298
|
+
success: true,
|
|
299
|
+
title: intl.formatMessage(messages.success),
|
|
300
|
+
content: intl.formatMessage(messages.relationsUpdated)
|
|
301
|
+
}
|
|
302
|
+
)
|
|
303
|
+
);
|
|
304
|
+
});
|
|
305
|
+
};
|
|
306
|
+
const onSelectAllHandler = (target, items_ids, checked) => {
|
|
307
|
+
let relation_data = [];
|
|
308
|
+
items_ids.forEach((el) => {
|
|
309
|
+
relation_data.push({
|
|
310
|
+
source: el,
|
|
311
|
+
target,
|
|
312
|
+
relation: relationtype
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
dispatch(
|
|
316
|
+
checked ? createRelations(relation_data) : deleteRelations(relation_data)
|
|
317
|
+
).then((resp) => {
|
|
318
|
+
fetchRelations();
|
|
319
|
+
}).then(() => {
|
|
320
|
+
toast.success(
|
|
321
|
+
/* @__PURE__ */ jsx(
|
|
322
|
+
Toast,
|
|
323
|
+
{
|
|
324
|
+
success: true,
|
|
325
|
+
title: intl.formatMessage(messages.success),
|
|
326
|
+
content: intl.formatMessage(messages.relationsUpdated)
|
|
327
|
+
}
|
|
328
|
+
)
|
|
329
|
+
);
|
|
330
|
+
});
|
|
331
|
+
};
|
|
332
|
+
return /* @__PURE__ */ jsx(Fragment, { children: matrix_options.length <= MAX && items.length <= MAX & matrix_options.length > 0 && items.length > 0 ? /* @__PURE__ */ jsxs("div", { className: "administration_matrix", children: [
|
|
333
|
+
/* @__PURE__ */ jsxs("div", { className: "label-options", children: [
|
|
334
|
+
/* @__PURE__ */ jsxs("div", { className: "target-labels", children: [
|
|
335
|
+
/* @__PURE__ */ jsx("div", {}),
|
|
336
|
+
/* @__PURE__ */ jsx("div", { children: matrix_options == null ? void 0 : matrix_options.map((matrix_option) => /* @__PURE__ */ jsx(
|
|
337
|
+
"div",
|
|
338
|
+
{
|
|
339
|
+
className: "label-options-label inclined",
|
|
340
|
+
id: `label-options-label-${matrix_option.value}`,
|
|
341
|
+
children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
342
|
+
UniversalLink,
|
|
343
|
+
{
|
|
344
|
+
href: matrix_option.url,
|
|
345
|
+
className: matrix_option.review_state !== "published" ? "not-published" : "",
|
|
346
|
+
target: "_blank",
|
|
347
|
+
children: /* @__PURE__ */ jsx("span", { className: "label", title: matrix_option.label, children: matrix_option.label.length > 30 ? matrix_option.label.slice(0, 27) + "..." : matrix_option.label })
|
|
348
|
+
}
|
|
349
|
+
) })
|
|
350
|
+
},
|
|
351
|
+
matrix_option.value
|
|
352
|
+
)) })
|
|
353
|
+
] }),
|
|
354
|
+
/* @__PURE__ */ jsx("div", { className: "listing-row selectall", children: /* @__PURE__ */ jsxs("div", { className: "listing-item", children: [
|
|
355
|
+
/* @__PURE__ */ jsx("div", {}),
|
|
356
|
+
/* @__PURE__ */ jsx("div", { className: "matrix_options", children: !(relationtype === "isReferencing" || relationtype === "iterate-working-copy" || !editable) ? matrix_options == null ? void 0 : matrix_options.map((matrix_option) => /* @__PURE__ */ jsx(
|
|
357
|
+
"div",
|
|
358
|
+
{
|
|
359
|
+
title: intl.formatMessage(
|
|
360
|
+
messages.createOrDeleteRelationsToTarget
|
|
361
|
+
) + ` '${matrix_option.label}'`,
|
|
362
|
+
children: /* @__PURE__ */ jsx(
|
|
363
|
+
Checkbox,
|
|
364
|
+
{
|
|
365
|
+
className: "toggle-target",
|
|
366
|
+
defaultChecked: false,
|
|
367
|
+
onChange: (event, { checked }) => onSelectAllHandler(
|
|
368
|
+
matrix_option.value,
|
|
369
|
+
items.map((el) => el.value),
|
|
370
|
+
checked
|
|
371
|
+
)
|
|
372
|
+
}
|
|
373
|
+
)
|
|
374
|
+
},
|
|
375
|
+
matrix_option.value
|
|
376
|
+
)) : /* @__PURE__ */ jsx(
|
|
377
|
+
FormattedMessage,
|
|
378
|
+
{
|
|
379
|
+
id: "Read only for this type of relation.",
|
|
380
|
+
defaultMessage: "Read only for this type of relation."
|
|
381
|
+
}
|
|
382
|
+
) })
|
|
383
|
+
] }) }, "selectall")
|
|
384
|
+
] }),
|
|
385
|
+
/* @__PURE__ */ jsx("div", { className: "items", children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
386
|
+
!editable && /* @__PURE__ */ jsx(Message, { warning: true, children: /* @__PURE__ */ jsx(
|
|
387
|
+
FormattedMessage,
|
|
388
|
+
{
|
|
389
|
+
id: "Relations are editable with plone.api >= 2.0.3.",
|
|
390
|
+
defaultMessage: "Relations are editable with plone.api >= 2.0.3."
|
|
391
|
+
}
|
|
392
|
+
) }),
|
|
393
|
+
items.map((item) => /* @__PURE__ */ jsx(
|
|
394
|
+
"div",
|
|
395
|
+
{
|
|
396
|
+
className: "listing-row",
|
|
397
|
+
id: `source-row-${item.value}`,
|
|
398
|
+
children: /* @__PURE__ */ jsxs("div", { className: "listing-item", children: [
|
|
399
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("span", { title: item.label, className: "item-title", children: /* @__PURE__ */ jsx(
|
|
400
|
+
UniversalLink,
|
|
401
|
+
{
|
|
402
|
+
href: item.url,
|
|
403
|
+
className: item.review_state !== "published" ? "not-published" : "",
|
|
404
|
+
target: "_blank",
|
|
405
|
+
children: item.label.length > 25 ? item.label.slice(0, 22) + "..." : item.label
|
|
406
|
+
}
|
|
407
|
+
) }) }),
|
|
408
|
+
/* @__PURE__ */ jsx("div", { className: "matrix_options", children: matrix_options == null ? void 0 : matrix_options.map((matrix_option) => /* @__PURE__ */ jsx(React__default.Fragment, { children: /* @__PURE__ */ jsx(
|
|
409
|
+
Checkbox,
|
|
410
|
+
{
|
|
411
|
+
className: `checkbox_${matrix_option.value}`,
|
|
412
|
+
title: matrix_option.title,
|
|
413
|
+
disabled: relationtype === "isReferencing" || relationtype === "iterate-working-copy" || !editable,
|
|
414
|
+
checked: item.targets.includes(matrix_option.value),
|
|
415
|
+
onChange: (event, { checked }) => {
|
|
416
|
+
onSelectOptionHandler(
|
|
417
|
+
relationtype,
|
|
418
|
+
{ x: matrix_option.value, y: item.value },
|
|
419
|
+
checked
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
matrix_option.value
|
|
424
|
+
) }, matrix_option.value)) })
|
|
425
|
+
] }, item["@id"])
|
|
426
|
+
},
|
|
427
|
+
item.id
|
|
428
|
+
))
|
|
429
|
+
] }) }, "items")
|
|
430
|
+
] }) : /* @__PURE__ */ jsx("div", { className: "administration_matrix", children: matrix_options.length > MAX || items.length > MAX ? /* @__PURE__ */ jsx(
|
|
431
|
+
FormattedMessage,
|
|
432
|
+
{
|
|
433
|
+
id: "narrowDownRelations",
|
|
434
|
+
defaultMessage: "Found {sources} sources and {targets} targets. Narrow down to {max}!",
|
|
435
|
+
values: {
|
|
436
|
+
sources: items.length,
|
|
437
|
+
targets: matrix_options.length,
|
|
438
|
+
max: MAX
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
) : query_source || query_target ? /* @__PURE__ */ jsx("div", { children: intl.formatMessage(messages.norelationfound) }) : /* @__PURE__ */ jsx("div", { children: intl.formatMessage(messages.toomanyrelationsfound) }) }) });
|
|
442
|
+
};
|
|
443
|
+
const BrokenRelations = () => {
|
|
444
|
+
const dispatch = useDispatch();
|
|
445
|
+
const brokenRelationStats = useSelector(
|
|
446
|
+
(state) => {
|
|
447
|
+
var _a, _b, _c;
|
|
448
|
+
return ((_c = (_b = (_a = state.relations) == null ? void 0 : _a.stats) == null ? void 0 : _b.data) == null ? void 0 : _c.broken) || {};
|
|
449
|
+
}
|
|
450
|
+
);
|
|
451
|
+
const brokenRelations = useSelector(
|
|
452
|
+
(state) => {
|
|
453
|
+
var _a, _b, _c;
|
|
454
|
+
return (_c = (_b = (_a = state.relations) == null ? void 0 : _a.subrequests) == null ? void 0 : _b.broken) == null ? void 0 : _c.data;
|
|
455
|
+
}
|
|
456
|
+
);
|
|
457
|
+
useEffect(() => {
|
|
458
|
+
dispatch(queryRelations(null, true, "broken"));
|
|
459
|
+
}, [dispatch]);
|
|
460
|
+
return brokenRelations && Object.keys(brokenRelations).length > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
461
|
+
/* @__PURE__ */ jsx(Divider, { section: true, hidden: true }),
|
|
462
|
+
/* @__PURE__ */ jsxs(Segment, { children: [
|
|
463
|
+
/* @__PURE__ */ jsx("h3", { children: /* @__PURE__ */ jsx(
|
|
464
|
+
FormattedMessage,
|
|
465
|
+
{
|
|
466
|
+
id: "Broken relations",
|
|
467
|
+
defaultMessage: "Broken relations"
|
|
468
|
+
}
|
|
469
|
+
) }),
|
|
470
|
+
Object.keys(brokenRelations).map((relationname) => /* @__PURE__ */ jsxs("div", { children: [
|
|
471
|
+
/* @__PURE__ */ jsx(Divider, { section: true, hidden: true }),
|
|
472
|
+
/* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(
|
|
473
|
+
FormattedMessage,
|
|
474
|
+
{
|
|
475
|
+
id: "countBrokenRelations",
|
|
476
|
+
defaultMessage: "{countofrelation} broken {countofrelation, plural, one {relation} other {relations}} of type {typeofrelation}",
|
|
477
|
+
values: {
|
|
478
|
+
countofrelation: brokenRelationStats[relationname],
|
|
479
|
+
typeofrelation: relationname
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
) }),
|
|
483
|
+
/* @__PURE__ */ jsxs(Table, { compact: "very", children: [
|
|
484
|
+
/* @__PURE__ */ jsx(Table.Header, { children: /* @__PURE__ */ jsxs(Table.Row, { children: [
|
|
485
|
+
/* @__PURE__ */ jsx(Table.HeaderCell, { width: 6, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Source", defaultMessage: "Source" }) }),
|
|
486
|
+
/* @__PURE__ */ jsx(Table.HeaderCell, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Target", defaultMessage: "Target" }) })
|
|
487
|
+
] }) }),
|
|
488
|
+
/* @__PURE__ */ jsx(Table.Body, { children: uniqBy(brokenRelations[relationname].items, function(el) {
|
|
489
|
+
return el.toString();
|
|
490
|
+
}).map((el, index) => /* @__PURE__ */ jsxs(Table.Row, { children: [
|
|
491
|
+
/* @__PURE__ */ jsx(Table.Cell, { children: /* @__PURE__ */ jsx(
|
|
492
|
+
ConditionalLink,
|
|
493
|
+
{
|
|
494
|
+
to: `${el[0]}/edit`,
|
|
495
|
+
openLinkInNewTab: true,
|
|
496
|
+
condition: el[0].includes("http"),
|
|
497
|
+
children: flattenToAppURL(el[0])
|
|
498
|
+
}
|
|
499
|
+
) }),
|
|
500
|
+
/* @__PURE__ */ jsx(Table.Cell, { children: /* @__PURE__ */ jsx(
|
|
501
|
+
ConditionalLink,
|
|
502
|
+
{
|
|
503
|
+
to: `${el[1]}/edit`,
|
|
504
|
+
openLinkInNewTab: true,
|
|
505
|
+
condition: el[1].includes("http"),
|
|
506
|
+
children: flattenToAppURL(el[1])
|
|
507
|
+
}
|
|
508
|
+
) })
|
|
509
|
+
] }, index)) })
|
|
510
|
+
] })
|
|
511
|
+
] }, relationname))
|
|
512
|
+
] })
|
|
513
|
+
] }) : null;
|
|
514
|
+
};
|
|
515
|
+
const helpSVG = { "attributes": { "xmlns": "http://www.w3.org/2000/svg", "width": "36", "height": "36", "viewBox": "0 0 36 36" }, "content": '<g fill-rule="evenodd"><path d="M19.5,24 C19.5,24.828 18.828,25.5 18,25.5 C17.172,25.5 16.5,24.828 16.5,24 C16.5,23.172 17.172,22.5 18,22.5 C18.828,22.5 19.5,23.172 19.5,24"/><path d="M18,5 C10.832,5 5,10.832 5,18 C5,25.168 10.832,31 18,31 C25.168,31 31,25.168 31,18 C31,10.832 25.168,5 18,5 M18,33 C9.729,33 3,26.271 3,18 C3,9.729 9.729,3 18,3 C26.271,3 33,9.729 33,18 C33,26.271 26.271,33 18,33"/><path d="M19,20 L17,20 C17,17.456 19.437,16.166 19.54,16.112 C19.558,16.104 21,15.334 21,14 C21,12.346 19.654,11 18,11 C16.346,11 15,12.346 15,14 L13,14 C13,11.243 15.243,9 18,9 C20.757,9 23,11.243 23,14 C23,16.572 20.556,17.84 20.452,17.893 C20.45,17.894 19,18.682 19,20"/></g>' };
|
|
516
|
+
const RelationsMatrix = (props) => {
|
|
517
|
+
const intl = useIntl();
|
|
518
|
+
const dispatch = useDispatch();
|
|
519
|
+
const [query_source, setQuery_source] = useState("");
|
|
520
|
+
const [query_target, setQuery_target] = useState("");
|
|
521
|
+
const [potential_targets_path, setPotential_targets_path] = useState("");
|
|
522
|
+
const [potential_sources_path, setPotential_sources_path] = useState("");
|
|
523
|
+
const [relationtype, setRelationtype] = useState(void 0);
|
|
524
|
+
const actions = useSelector((state) => {
|
|
525
|
+
var _a;
|
|
526
|
+
return ((_a = state.actions) == null ? void 0 : _a.actions) ?? {};
|
|
527
|
+
});
|
|
528
|
+
const can_fix_relations = find(actions.user, {
|
|
529
|
+
id: "plone_setup"
|
|
530
|
+
});
|
|
531
|
+
const relationtypes = useSelector(
|
|
532
|
+
(state) => {
|
|
533
|
+
var _a, _b, _c;
|
|
534
|
+
return (_c = (_b = (_a = state.relations) == null ? void 0 : _a.stats) == null ? void 0 : _b.data) == null ? void 0 : _c.stats;
|
|
535
|
+
}
|
|
536
|
+
);
|
|
537
|
+
const relationsListError = useSelector(
|
|
538
|
+
(state) => {
|
|
539
|
+
var _a, _b, _c, _d, _e;
|
|
540
|
+
return (_e = (_d = (_c = (_b = (_a = state.relations) == null ? void 0 : _a.stats) == null ? void 0 : _b.error) == null ? void 0 : _c.response) == null ? void 0 : _d.body) == null ? void 0 : _e.error;
|
|
541
|
+
}
|
|
542
|
+
);
|
|
543
|
+
const brokenRelations = useSelector(
|
|
544
|
+
(state) => {
|
|
545
|
+
var _a, _b, _c;
|
|
546
|
+
return (_c = (_b = (_a = state.relations) == null ? void 0 : _a.stats) == null ? void 0 : _b.data) == null ? void 0 : _c.broken;
|
|
547
|
+
}
|
|
548
|
+
);
|
|
549
|
+
let filter_options = useSelector((state) => state.groups.filter_groups);
|
|
550
|
+
if (filter_options) {
|
|
551
|
+
filter_options = filter_options.map((group) => ({
|
|
552
|
+
value: group.id,
|
|
553
|
+
label: group.title || group.id
|
|
554
|
+
}));
|
|
555
|
+
filter_options.sort(function(a, b) {
|
|
556
|
+
var labelA = a.label.toUpperCase();
|
|
557
|
+
var labelB = b.label.toUpperCase();
|
|
558
|
+
if (labelA < labelB) {
|
|
559
|
+
return -1;
|
|
560
|
+
}
|
|
561
|
+
if (labelA > labelB) {
|
|
562
|
+
return 1;
|
|
563
|
+
}
|
|
564
|
+
return 0;
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
useEffect(() => {
|
|
568
|
+
dispatch(getRelationStats());
|
|
569
|
+
}, [dispatch]);
|
|
570
|
+
const onReset = (event) => {
|
|
571
|
+
let element = event.target.querySelector("input");
|
|
572
|
+
element.value = "";
|
|
573
|
+
element.focus();
|
|
574
|
+
let searchtype = element.name;
|
|
575
|
+
switch (searchtype) {
|
|
576
|
+
case "SearchY":
|
|
577
|
+
setQuery_source("");
|
|
578
|
+
break;
|
|
579
|
+
case "SearchX":
|
|
580
|
+
setQuery_target("");
|
|
581
|
+
break;
|
|
582
|
+
case "showPotentialTargets":
|
|
583
|
+
setPotential_targets_path("/");
|
|
584
|
+
break;
|
|
585
|
+
case "showPotentialSources":
|
|
586
|
+
setPotential_sources_path("/");
|
|
587
|
+
break;
|
|
588
|
+
}
|
|
589
|
+
};
|
|
590
|
+
const onChangeSearchYs = (event) => {
|
|
591
|
+
if (event.target.value.length > 1) {
|
|
592
|
+
setQuery_source(event.target.value);
|
|
593
|
+
} else {
|
|
594
|
+
setQuery_source("");
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
const onChangeSearchXs = (event) => {
|
|
598
|
+
if (event.target.value.length > 1) {
|
|
599
|
+
setQuery_target(event.target.value);
|
|
600
|
+
} else {
|
|
601
|
+
setQuery_source("");
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
const onChangeRelation = (event, { value }) => {
|
|
605
|
+
setRelationtype(value);
|
|
606
|
+
};
|
|
607
|
+
const onChangeShowPotentialSources = (_value) => {
|
|
608
|
+
let newValue = _value;
|
|
609
|
+
setPotential_sources_path(newValue);
|
|
610
|
+
};
|
|
611
|
+
const onChangeShowPotentialTargets = (_value) => {
|
|
612
|
+
let newValue = _value;
|
|
613
|
+
setPotential_targets_path(newValue);
|
|
614
|
+
};
|
|
615
|
+
const rebuildRelationsHandler = (flush = false) => {
|
|
616
|
+
dispatch(rebuildRelations(flush)).then(() => {
|
|
617
|
+
dispatch(getRelationStats());
|
|
618
|
+
dispatch(queryRelations(null, true, "broken"));
|
|
619
|
+
}).then(() => {
|
|
620
|
+
toast.success(
|
|
621
|
+
/* @__PURE__ */ jsx(
|
|
622
|
+
Toast,
|
|
623
|
+
{
|
|
624
|
+
success: true,
|
|
625
|
+
title: intl.formatMessage(messages.success),
|
|
626
|
+
content: "Relations updated"
|
|
627
|
+
}
|
|
628
|
+
)
|
|
629
|
+
);
|
|
630
|
+
}).catch((error) => {
|
|
631
|
+
const shadowedError = JSON.parse(error.response.text);
|
|
632
|
+
toast.error(
|
|
633
|
+
/* @__PURE__ */ jsx(
|
|
634
|
+
Toast,
|
|
635
|
+
{
|
|
636
|
+
error: true,
|
|
637
|
+
title: shadowedError.error.type,
|
|
638
|
+
content: shadowedError.error.message
|
|
639
|
+
}
|
|
640
|
+
)
|
|
641
|
+
);
|
|
642
|
+
});
|
|
643
|
+
};
|
|
644
|
+
const clear_potential_sources_path = () => {
|
|
645
|
+
setPotential_sources_path("");
|
|
646
|
+
};
|
|
647
|
+
const clear_potential_targets_path = () => {
|
|
648
|
+
setPotential_targets_path("");
|
|
649
|
+
};
|
|
650
|
+
const panes = [
|
|
651
|
+
{
|
|
652
|
+
menuItem: intl.formatMessage(messages.inspectRelations),
|
|
653
|
+
pane: /* @__PURE__ */ jsx(Tab.Pane, { attached: true, children: relationtypes ? /* @__PURE__ */ jsxs("div", { className: "controlpanel_matrix", children: [
|
|
654
|
+
/* @__PURE__ */ jsxs("div", { className: "controlpanel_select_relation", children: [
|
|
655
|
+
/* @__PURE__ */ jsx(Divider, { hidden: true }),
|
|
656
|
+
/* @__PURE__ */ jsx(Form$1, { className: "select_relation", children: /* @__PURE__ */ jsx(Form$1.Field, { children: /* @__PURE__ */ jsx(Header, { as: "h3", children: /* @__PURE__ */ jsxs(Header.Content, { children: [
|
|
657
|
+
/* @__PURE__ */ jsx(
|
|
658
|
+
FormattedMessage,
|
|
659
|
+
{
|
|
660
|
+
id: "Relation name",
|
|
661
|
+
defaultMessage: "Relation"
|
|
662
|
+
}
|
|
663
|
+
),
|
|
664
|
+
" ",
|
|
665
|
+
/* @__PURE__ */ jsx(
|
|
666
|
+
Dropdown,
|
|
667
|
+
{
|
|
668
|
+
placeholder: relationtype || intl.formatMessage(messages.selectRelation),
|
|
669
|
+
children: /* @__PURE__ */ jsx(Dropdown.Menu, { children: Object.keys(relationtypes).map((relationtype2) => /* @__PURE__ */ jsx(
|
|
670
|
+
Dropdown.Item,
|
|
671
|
+
{
|
|
672
|
+
onClick: onChangeRelation,
|
|
673
|
+
value: relationtype2,
|
|
674
|
+
className: `select-relation-${relationtype2}`,
|
|
675
|
+
children: `${relationtype2} (${relationtypes[relationtype2]})`
|
|
676
|
+
},
|
|
677
|
+
relationtype2
|
|
678
|
+
)) })
|
|
679
|
+
}
|
|
680
|
+
)
|
|
681
|
+
] }) }) }) })
|
|
682
|
+
] }),
|
|
683
|
+
relationtype ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
684
|
+
/* @__PURE__ */ jsxs("div", { className: "controlpanel_search_wrapper", children: [
|
|
685
|
+
/* @__PURE__ */ jsxs("div", { className: "controlpanel_search_y", children: [
|
|
686
|
+
/* @__PURE__ */ jsx(Header, { as: "h4", children: /* @__PURE__ */ jsx(Header.Content, { children: /* @__PURE__ */ jsx(
|
|
687
|
+
FormattedMessage,
|
|
688
|
+
{
|
|
689
|
+
id: "Source",
|
|
690
|
+
defaultMessage: "Source"
|
|
691
|
+
}
|
|
692
|
+
) }) }),
|
|
693
|
+
/* @__PURE__ */ jsx(Form$1, { className: "search_y", onSubmit: onReset, children: /* @__PURE__ */ jsxs(Form$1.Field, { children: [
|
|
694
|
+
/* @__PURE__ */ jsx(
|
|
695
|
+
Input,
|
|
696
|
+
{
|
|
697
|
+
name: "SearchY",
|
|
698
|
+
placeholder: intl.formatMessage(
|
|
699
|
+
messages.searchRelationSource
|
|
700
|
+
),
|
|
701
|
+
onChange: onChangeSearchYs,
|
|
702
|
+
id: "y-search-input"
|
|
703
|
+
}
|
|
704
|
+
),
|
|
705
|
+
/* @__PURE__ */ jsx(Button.Group, { children: /* @__PURE__ */ jsx(
|
|
706
|
+
Button,
|
|
707
|
+
{
|
|
708
|
+
basic: true,
|
|
709
|
+
className: "cancel",
|
|
710
|
+
"aria-label": "cancel",
|
|
711
|
+
onClick: (e) => {
|
|
712
|
+
e.preventDefault();
|
|
713
|
+
e.stopPropagation();
|
|
714
|
+
document.querySelector(
|
|
715
|
+
'input[name="SearchY"]'
|
|
716
|
+
).value = "";
|
|
717
|
+
setQuery_source("");
|
|
718
|
+
},
|
|
719
|
+
children: /* @__PURE__ */ jsx(Icon, { name: clearSVG, size: "24px" })
|
|
720
|
+
}
|
|
721
|
+
) })
|
|
722
|
+
] }) }),
|
|
723
|
+
/* @__PURE__ */ jsxs(
|
|
724
|
+
Form$1,
|
|
725
|
+
{
|
|
726
|
+
className: "add_potential_sources",
|
|
727
|
+
onSubmit: onReset,
|
|
728
|
+
children: [
|
|
729
|
+
/* @__PURE__ */ jsxs(Form$1.Field, { children: [
|
|
730
|
+
/* @__PURE__ */ jsx(
|
|
731
|
+
Input,
|
|
732
|
+
{
|
|
733
|
+
name: "showPotentialSources",
|
|
734
|
+
type: "url",
|
|
735
|
+
value: potential_sources_path,
|
|
736
|
+
placeholder: intl.formatMessage(
|
|
737
|
+
messages.addPotentialSourcesPath
|
|
738
|
+
),
|
|
739
|
+
onChange: ({ target }) => onChangeShowPotentialSources(target.value),
|
|
740
|
+
id: "potential-sources-path-input"
|
|
741
|
+
}
|
|
742
|
+
),
|
|
743
|
+
(potential_sources_path == null ? void 0 : potential_sources_path.length) > 0 ? /* @__PURE__ */ jsx(Button.Group, { children: /* @__PURE__ */ jsx(
|
|
744
|
+
Button,
|
|
745
|
+
{
|
|
746
|
+
basic: true,
|
|
747
|
+
className: "cancel",
|
|
748
|
+
"aria-label": "clearUrlBrowser",
|
|
749
|
+
onClick: (e) => {
|
|
750
|
+
e.preventDefault();
|
|
751
|
+
e.stopPropagation();
|
|
752
|
+
clear_potential_sources_path();
|
|
753
|
+
},
|
|
754
|
+
children: /* @__PURE__ */ jsx(Icon, { name: clearSVG, size: "24px" })
|
|
755
|
+
}
|
|
756
|
+
) }) : /* @__PURE__ */ jsx(Button.Group, { children: /* @__PURE__ */ jsx(
|
|
757
|
+
Button,
|
|
758
|
+
{
|
|
759
|
+
basic: true,
|
|
760
|
+
icon: true,
|
|
761
|
+
"aria-label": "openUrlBrowser",
|
|
762
|
+
onClick: (e) => {
|
|
763
|
+
e.preventDefault();
|
|
764
|
+
e.stopPropagation();
|
|
765
|
+
props.openObjectBrowser({
|
|
766
|
+
mode: "link",
|
|
767
|
+
overlay: true,
|
|
768
|
+
onSelectItem: (url) => {
|
|
769
|
+
onChangeShowPotentialSources(url);
|
|
770
|
+
}
|
|
771
|
+
});
|
|
772
|
+
},
|
|
773
|
+
children: /* @__PURE__ */ jsx(Icon, { name: navTreeSVG, size: "24px" })
|
|
774
|
+
}
|
|
775
|
+
) })
|
|
776
|
+
] }),
|
|
777
|
+
/* @__PURE__ */ jsx(
|
|
778
|
+
FormattedMessage,
|
|
779
|
+
{
|
|
780
|
+
id: "Show potential sources. Not only objects that are source of some relation.",
|
|
781
|
+
defaultMessage: "Show potential sources. Not only objects that are source of some relation."
|
|
782
|
+
}
|
|
783
|
+
)
|
|
784
|
+
]
|
|
785
|
+
}
|
|
786
|
+
)
|
|
787
|
+
] }),
|
|
788
|
+
/* @__PURE__ */ jsxs("div", { className: "controlpanel_search_x", children: [
|
|
789
|
+
/* @__PURE__ */ jsxs(Form$1, { className: "search_x", onSubmit: onReset, children: [
|
|
790
|
+
/* @__PURE__ */ jsx(Header, { as: "h4", children: /* @__PURE__ */ jsx(Header.Content, { children: /* @__PURE__ */ jsx(
|
|
791
|
+
FormattedMessage,
|
|
792
|
+
{
|
|
793
|
+
id: "Target",
|
|
794
|
+
defaultMessage: "Target"
|
|
795
|
+
}
|
|
796
|
+
) }) }),
|
|
797
|
+
/* @__PURE__ */ jsxs(Form$1.Field, { children: [
|
|
798
|
+
/* @__PURE__ */ jsx(
|
|
799
|
+
Input,
|
|
800
|
+
{
|
|
801
|
+
name: "SearchX",
|
|
802
|
+
placeholder: intl.formatMessage(
|
|
803
|
+
messages.searchRelationTarget
|
|
804
|
+
),
|
|
805
|
+
onChange: onChangeSearchXs,
|
|
806
|
+
id: "x-search-input"
|
|
807
|
+
}
|
|
808
|
+
),
|
|
809
|
+
/* @__PURE__ */ jsx(Button.Group, { children: /* @__PURE__ */ jsx(
|
|
810
|
+
Button,
|
|
811
|
+
{
|
|
812
|
+
basic: true,
|
|
813
|
+
className: "cancel",
|
|
814
|
+
"aria-label": "cancel",
|
|
815
|
+
onClick: (e) => {
|
|
816
|
+
e.preventDefault();
|
|
817
|
+
e.stopPropagation();
|
|
818
|
+
document.querySelector(
|
|
819
|
+
'input[name="SearchX"]'
|
|
820
|
+
).value = "";
|
|
821
|
+
setQuery_target("");
|
|
822
|
+
},
|
|
823
|
+
children: /* @__PURE__ */ jsx(Icon, { name: clearSVG, size: "24px" })
|
|
824
|
+
}
|
|
825
|
+
) })
|
|
826
|
+
] })
|
|
827
|
+
] }),
|
|
828
|
+
/* @__PURE__ */ jsxs(
|
|
829
|
+
Form$1,
|
|
830
|
+
{
|
|
831
|
+
className: "add_potential_targets",
|
|
832
|
+
onSubmit: onReset,
|
|
833
|
+
children: [
|
|
834
|
+
/* @__PURE__ */ jsxs(Form$1.Field, { children: [
|
|
835
|
+
/* @__PURE__ */ jsx(
|
|
836
|
+
Input,
|
|
837
|
+
{
|
|
838
|
+
name: "showPotentialTargets",
|
|
839
|
+
type: "url",
|
|
840
|
+
value: potential_targets_path,
|
|
841
|
+
placeholder: intl.formatMessage(
|
|
842
|
+
messages.addPotentialTargetsPath
|
|
843
|
+
),
|
|
844
|
+
onChange: ({ target }) => onChangeShowPotentialTargets(target.value),
|
|
845
|
+
id: "potential-targets-path-input"
|
|
846
|
+
}
|
|
847
|
+
),
|
|
848
|
+
(potential_targets_path == null ? void 0 : potential_targets_path.length) > 0 ? /* @__PURE__ */ jsx(Button.Group, { children: /* @__PURE__ */ jsx(
|
|
849
|
+
Button,
|
|
850
|
+
{
|
|
851
|
+
basic: true,
|
|
852
|
+
className: "cancel",
|
|
853
|
+
"aria-label": "clearUrlBrowser",
|
|
854
|
+
onClick: (e) => {
|
|
855
|
+
e.preventDefault();
|
|
856
|
+
e.stopPropagation();
|
|
857
|
+
clear_potential_targets_path();
|
|
858
|
+
},
|
|
859
|
+
children: /* @__PURE__ */ jsx(Icon, { name: clearSVG, size: "24px" })
|
|
860
|
+
}
|
|
861
|
+
) }) : /* @__PURE__ */ jsx(Button.Group, { children: /* @__PURE__ */ jsx(
|
|
862
|
+
Button,
|
|
863
|
+
{
|
|
864
|
+
basic: true,
|
|
865
|
+
icon: true,
|
|
866
|
+
"aria-label": "openUrlBrowser",
|
|
867
|
+
onClick: (e) => {
|
|
868
|
+
e.preventDefault();
|
|
869
|
+
e.stopPropagation();
|
|
870
|
+
props.openObjectBrowser({
|
|
871
|
+
mode: "link",
|
|
872
|
+
overlay: true,
|
|
873
|
+
onSelectItem: (url) => {
|
|
874
|
+
onChangeShowPotentialTargets(url);
|
|
875
|
+
}
|
|
876
|
+
});
|
|
877
|
+
},
|
|
878
|
+
children: /* @__PURE__ */ jsx(Icon, { name: navTreeSVG, size: "24px" })
|
|
879
|
+
}
|
|
880
|
+
) })
|
|
881
|
+
] }),
|
|
882
|
+
/* @__PURE__ */ jsxs("div", { className: "foo", children: [
|
|
883
|
+
/* @__PURE__ */ jsx(
|
|
884
|
+
FormattedMessage,
|
|
885
|
+
{
|
|
886
|
+
id: "Show potential targets. Not only objects that are target of some relation.",
|
|
887
|
+
defaultMessage: "Show potential targets. Not only objects that are target of some relation."
|
|
888
|
+
}
|
|
889
|
+
),
|
|
890
|
+
" ",
|
|
891
|
+
/* @__PURE__ */ jsxs(
|
|
892
|
+
Popup,
|
|
893
|
+
{
|
|
894
|
+
trigger: /* @__PURE__ */ jsx(
|
|
895
|
+
"a",
|
|
896
|
+
{
|
|
897
|
+
href: "https://6.docs.plone.org/volto/development/widget.html#widget-relation-field-label",
|
|
898
|
+
target: "_blank",
|
|
899
|
+
rel: "noopener noreferrer",
|
|
900
|
+
children: /* @__PURE__ */ jsx(Icon, { name: helpSVG, size: "16px" })
|
|
901
|
+
}
|
|
902
|
+
),
|
|
903
|
+
children: [
|
|
904
|
+
/* @__PURE__ */ jsx(Popup.Header, { children: "Respect constraints" }),
|
|
905
|
+
/* @__PURE__ */ jsx(Popup.Content, { children: /* @__PURE__ */ jsx("div", { children: "See docs.plone.org on how to respect constraints." }) })
|
|
906
|
+
]
|
|
907
|
+
}
|
|
908
|
+
)
|
|
909
|
+
] })
|
|
910
|
+
]
|
|
911
|
+
}
|
|
912
|
+
)
|
|
913
|
+
] })
|
|
914
|
+
] }),
|
|
915
|
+
/* @__PURE__ */ jsx("div", { className: "controlpanel_listing_wrapper", children: /* @__PURE__ */ jsx(
|
|
916
|
+
RelationsListing,
|
|
917
|
+
{
|
|
918
|
+
relationtype,
|
|
919
|
+
query_source,
|
|
920
|
+
query_target,
|
|
921
|
+
potential_targets_path,
|
|
922
|
+
potential_sources_path
|
|
923
|
+
}
|
|
924
|
+
) })
|
|
925
|
+
] }) : null
|
|
926
|
+
] }) : /* @__PURE__ */ jsxs("p", { children: [
|
|
927
|
+
/* @__PURE__ */ jsx("b", { children: relationsListError == null ? void 0 : relationsListError.type }),
|
|
928
|
+
" ",
|
|
929
|
+
relationsListError == null ? void 0 : relationsListError.message
|
|
930
|
+
] }) }, "fix")
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
menuItem: intl.formatMessage(messages.fixRelations),
|
|
934
|
+
pane: /* @__PURE__ */ jsx(Tab.Pane, { attached: true, children: /* @__PURE__ */ jsxs("div", { children: [
|
|
935
|
+
!(brokenRelations && Object.keys(brokenRelations).length > 0) && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
936
|
+
FormattedMessage,
|
|
937
|
+
{
|
|
938
|
+
id: "No broken relations found.",
|
|
939
|
+
defaultMessage: "No broken relations found."
|
|
940
|
+
}
|
|
941
|
+
) }),
|
|
942
|
+
can_fix_relations ? /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
943
|
+
/* @__PURE__ */ jsx(Divider, { hidden: true }),
|
|
944
|
+
/* @__PURE__ */ jsx("h2", { children: capitalize(intl.formatMessage(messages.rebuildRelations)) }),
|
|
945
|
+
/* @__PURE__ */ jsx(Button.Group, { children: /* @__PURE__ */ jsx(
|
|
946
|
+
Button,
|
|
947
|
+
{
|
|
948
|
+
primary: true,
|
|
949
|
+
onClick: () => rebuildRelationsHandler(false),
|
|
950
|
+
content: intl.formatMessage(messages.rebuildRelations),
|
|
951
|
+
"aria-label": intl.formatMessage(messages.rebuildRelations)
|
|
952
|
+
}
|
|
953
|
+
) }),
|
|
954
|
+
/* @__PURE__ */ jsx(Divider, { hidden: true }),
|
|
955
|
+
/* @__PURE__ */ jsx("h2", { children: capitalize(
|
|
956
|
+
intl.formatMessage(messages.flushAndRebuildRelations)
|
|
957
|
+
) }),
|
|
958
|
+
/* @__PURE__ */ jsx(
|
|
959
|
+
"div",
|
|
960
|
+
{
|
|
961
|
+
dangerouslySetInnerHTML: {
|
|
962
|
+
__html: intl.formatMessage(
|
|
963
|
+
messages.flushAndRebuildRelationsHints
|
|
964
|
+
)
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
),
|
|
968
|
+
/* @__PURE__ */ jsx(Divider, { hidden: true }),
|
|
969
|
+
/* @__PURE__ */ jsx(Button.Group, { children: /* @__PURE__ */ jsx(
|
|
970
|
+
Button,
|
|
971
|
+
{
|
|
972
|
+
secondary: true,
|
|
973
|
+
color: "red",
|
|
974
|
+
onClick: () => rebuildRelationsHandler(true),
|
|
975
|
+
content: intl.formatMessage(
|
|
976
|
+
messages.flushAndRebuildRelations
|
|
977
|
+
),
|
|
978
|
+
"aria-label": intl.formatMessage(
|
|
979
|
+
messages.flushAndRebuildRelations
|
|
980
|
+
)
|
|
981
|
+
}
|
|
982
|
+
) })
|
|
983
|
+
] }) : null,
|
|
984
|
+
/* @__PURE__ */ jsx(BrokenRelations, {})
|
|
985
|
+
] }) }, "rebuild")
|
|
986
|
+
}
|
|
987
|
+
];
|
|
988
|
+
return /* @__PURE__ */ jsx(
|
|
989
|
+
Tab,
|
|
990
|
+
{
|
|
991
|
+
panes,
|
|
992
|
+
renderActiveOnly: false,
|
|
993
|
+
menu: { secondary: true, pointing: true, attached: true, tabular: true }
|
|
994
|
+
}
|
|
995
|
+
);
|
|
996
|
+
};
|
|
997
|
+
const RelationsMatrix$1 = compose(withObjectBrowser)(RelationsMatrix);
|
|
998
|
+
const RelationsControlPanel = () => {
|
|
999
|
+
const intl = useIntl();
|
|
1000
|
+
const history = useHistory();
|
|
1001
|
+
const location = useLocation();
|
|
1002
|
+
const dispatch = useDispatch();
|
|
1003
|
+
const [isClient, setIsClient] = useState(false);
|
|
1004
|
+
useEffect(() => {
|
|
1005
|
+
setIsClient(true);
|
|
1006
|
+
}, []);
|
|
1007
|
+
const brokenRelations = useSelector(
|
|
1008
|
+
(state) => {
|
|
1009
|
+
var _a, _b, _c;
|
|
1010
|
+
return (_c = (_b = (_a = state.relations) == null ? void 0 : _a.stats) == null ? void 0 : _b.data) == null ? void 0 : _c.broken;
|
|
1011
|
+
}
|
|
1012
|
+
);
|
|
1013
|
+
const relations_stats = useSelector((state) => {
|
|
1014
|
+
var _a, _b;
|
|
1015
|
+
return (_b = (_a = state.relations) == null ? void 0 : _a.stats) == null ? void 0 : _b.data;
|
|
1016
|
+
});
|
|
1017
|
+
const actions = useSelector((state) => {
|
|
1018
|
+
var _a;
|
|
1019
|
+
return ((_a = state.actions) == null ? void 0 : _a.actions) ?? {};
|
|
1020
|
+
});
|
|
1021
|
+
const can_edit = find(actions.object, {
|
|
1022
|
+
id: "edit"
|
|
1023
|
+
});
|
|
1024
|
+
useEffect(() => {
|
|
1025
|
+
dispatch(listActions("/"));
|
|
1026
|
+
}, [dispatch]);
|
|
1027
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1028
|
+
/* @__PURE__ */ jsxs("div", { className: "relations-control-panel", children: [
|
|
1029
|
+
/* @__PURE__ */ jsx(HelmetExport, { title: intl.formatMessage(messages.relations) }),
|
|
1030
|
+
can_edit ? /* @__PURE__ */ jsxs(Segment.Group, { raised: true, children: [
|
|
1031
|
+
/* @__PURE__ */ jsxs(Segment, { className: "primary", children: [
|
|
1032
|
+
brokenRelations && Object.keys(brokenRelations).length > 0 ? /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
1033
|
+
/* @__PURE__ */ jsx(Message, { warning: true, children: /* @__PURE__ */ jsx(
|
|
1034
|
+
FormattedMessage,
|
|
1035
|
+
{
|
|
1036
|
+
id: "Some relations are broken. Please fix.",
|
|
1037
|
+
defaultMessage: "Some relations are broken. Please fix."
|
|
1038
|
+
}
|
|
1039
|
+
) }),
|
|
1040
|
+
/* @__PURE__ */ jsx(Divider, { hidden: true })
|
|
1041
|
+
] }) : null,
|
|
1042
|
+
/* @__PURE__ */ jsx("h1", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Relations", defaultMessage: "Relations" }) }),
|
|
1043
|
+
(relations_stats == null ? void 0 : relations_stats.error) ? /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
1044
|
+
/* @__PURE__ */ jsx(Divider, { hidden: true }),
|
|
1045
|
+
/* @__PURE__ */ jsx(Message, { warning: true, children: /* @__PURE__ */ jsx(
|
|
1046
|
+
FormattedMessage,
|
|
1047
|
+
{
|
|
1048
|
+
id: "Please upgrade to plone.restapi >= 8.39.0.",
|
|
1049
|
+
defaultMessage: "Please upgrade to plone.restapi >= 8.39.0."
|
|
1050
|
+
}
|
|
1051
|
+
) })
|
|
1052
|
+
] }) : null
|
|
1053
|
+
] }),
|
|
1054
|
+
/* @__PURE__ */ jsx(Segment, { children: /* @__PURE__ */ jsx(RelationsMatrix$1, {}) })
|
|
1055
|
+
] }) : /* @__PURE__ */ jsx(Segment.Group, { children: /* @__PURE__ */ jsxs(Segment, { children: [
|
|
1056
|
+
/* @__PURE__ */ jsx(FormattedMessage, { id: "Relations", defaultMessage: "Relations" }),
|
|
1057
|
+
/* @__PURE__ */ jsx(Divider, { hidden: true }),
|
|
1058
|
+
/* @__PURE__ */ jsx(
|
|
1059
|
+
FormattedMessage,
|
|
1060
|
+
{
|
|
1061
|
+
id: "You have not the required permission for this control panel.",
|
|
1062
|
+
defaultMessage: "You have not the required permission for this control panel."
|
|
1063
|
+
}
|
|
1064
|
+
)
|
|
1065
|
+
] }) })
|
|
1066
|
+
] }),
|
|
1067
|
+
isClient && createPortal(
|
|
1068
|
+
/* @__PURE__ */ jsx(
|
|
1069
|
+
Toolbar,
|
|
1070
|
+
{
|
|
1071
|
+
pathname: location.pathname,
|
|
1072
|
+
hideDefaultViewButtons: true,
|
|
1073
|
+
inner: /* @__PURE__ */ jsx(
|
|
1074
|
+
Link,
|
|
1075
|
+
{
|
|
1076
|
+
className: "item",
|
|
1077
|
+
to: "#",
|
|
1078
|
+
onClick: () => {
|
|
1079
|
+
history.push(getParentUrl(location.pathname));
|
|
1080
|
+
},
|
|
1081
|
+
children: /* @__PURE__ */ jsx(Icon, { name: backSVG, className: "contents circled", size: "30px" })
|
|
1082
|
+
}
|
|
1083
|
+
)
|
|
1084
|
+
}
|
|
1085
|
+
),
|
|
1086
|
+
document.getElementById("toolbar")
|
|
1087
|
+
)
|
|
1088
|
+
] });
|
|
1089
|
+
};
|
|
1090
|
+
export {
|
|
1091
|
+
RelationsControlPanel as default
|
|
1092
|
+
};
|