stable

Clone or download

Read-only

refactor: Decrease usage of cumbersome library "tlp"

Instead of importing stuff from "tlp": * Use "@tuleap/tlp-dropdown" * Use "@tuleap/tlp-popovers" * Use "@tuleap/tlp-modal" Remaining usages of "tlp" (there doesn't seem to be a corresponding independant libraries for those): * import type { Select2Plugin } from "tlp"; * import type { DatePickerInstance } from "tlp"; * import { datePicker } from "tlp"; No functional changes. Part of story #28273: create OnlyOffice documents Change-Id: I0b7c5e9177b4d012dc61f6d4944361fdb54b022c

Modified Files

Name
M plugins/document/package.json +2 −0 Go to diff View file
M plugins/document/pnpm-lock.yaml +4 −0 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/Criteria/SearchInformationPopover.test.ts +1 −1 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/Criteria/SearchInformationPopover.vue +2 −2 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/OngoingUploadModal.test.ts +3 −3 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/OngoingUploadModal.vue +2 −2 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchItemModals.test.ts +11 −0 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/SearchItemDropdown.test.ts +22 −9 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/SearchItemDropdown.vue +6 −2 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/__snapshots__/SearchItemDropdown.test.ts.snap +0 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/DragNDrop/ErrorModal.vue +2 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/Delete/ModalConfirmDeletion.test.ts +12 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/Delete/ModalConfirmDeletion.vue +2 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DownloadFolderAsZip/ModalArchiveSizeWarning.test.ts +28 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DownloadFolderAsZip/ModalArchiveSizeWarning.vue +2 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DownloadFolderAsZip/ModalMaxArchiveSizeThresholdExceeded.test.ts +27 −5 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DownloadFolderAsZip/ModalMaxArchiveSizeThresholdExceeded.vue +2 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DropDownButton.test.ts +4 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DropDownButton.vue +3 −3 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewDocument/FileCreationModal.test.ts +3 −5 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewDocument/FileCreationModal.vue +2 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewFolderModal.test.js +2 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewFolderModal.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewItemDropdown.test.ts +4 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewItemDropdown.vue +2 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewItemModal.test.js +2 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewItemModal.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewItemSubmenu.vue +2 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewVersion/CreateNewVersionEmbeddedFileModal.test.js +2 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewVersion/CreateNewVersionEmbeddedFileModal.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewVersion/CreateNewVersionEmptyModal.test.js +2 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewVersion/CreateNewVersionEmptyModal.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewVersion/CreateNewVersionFileModal.test.js +2 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewVersion/CreateNewVersionFileModal.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewVersion/CreateNewVersionLinkModal.test.js +2 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewVersion/CreateNewVersionLinkModal.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewVersion/CreateNewVersionWikiModal.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewVersion/FileVersionChangelogModal.test.js +2 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewVersion/FileVersionChangelogModal.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewVersion/NewVersionEmptyDropdown.test.ts +4 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewVersion/NewVersionEmptyDropdown.vue +2 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewVersion/NewVersionEmptySubmenu.vue +2 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/UpdateProperties/UpdateFolderPropertiesModal.test.js +2 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/UpdateProperties/UpdateFolderPropertiesModal.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/UpdateProperties/UpdatePropertiesModal.test.js +2 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/UpdateProperties/UpdatePropertiesModal.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/Error/GlobalErrorModal.test.ts +25 −14 Go to diff View file
M plugins/document/scripts/document/components/Folder/Error/GlobalErrorModal.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/FilesUploads/FilesUploadsManager.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/FolderHeader.test.js +8 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/Permissions/PermissionsUpdateModal.test.js +2 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/Permissions/PermissionsUpdateModal.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Versions/HistoryVersionsContentRow.test.ts +11 −0 Go to diff View file
M plugins/document/scripts/document/components/Versions/HistoryVersionsContentRowForEmbeddedFile.test.ts +11 −0 Go to diff View file
A plugins/document/scripts/document/components/__mocks__/@tuleap/tlp-dropdown.ts +24 −0 Go to diff View file
A plugins/document/scripts/document/components/__mocks__/@tuleap/tlp-modal.ts +25 −0 Go to diff View file
A plugins/document/scripts/document/components/__mocks__/@tuleap/tlp-popovers.ts +22 −0 Go to diff View file