@coopenomics/desktop 2.2.10 → 2025.5.2
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/.env-example +6 -1
- package/.env-testnet +8 -0
- package/Dockerfile +12 -0
- package/alias-resolver.js +35 -0
- package/extensions/market/install.ts +78 -0
- package/extensions/market-admin/install.ts +42 -0
- package/extensions/participant/install.ts +125 -0
- package/extensions/powerup/install.ts +20 -0
- package/extensions/soviet/install.ts +83 -0
- package/package.json +14 -7
- package/quasar.config.cjs +28 -15
- package/src/app/App.vue +44 -73
- package/src/app/layouts/default.vue +40 -0
- package/src/app/layouts/useDefaultLayoutLogic.ts +59 -0
- package/src/app/providers/router.ts +4 -3
- package/src/app/providers/routes/index.ts +19 -34
- package/src/app/styles/style.css +4 -0
- package/src/boot/init.ts +6 -0
- package/src/boot/sentry.ts +14 -14
- package/src/desktops/index.ts +0 -6
- package/src/entities/Account/model/index.ts +1 -1
- package/src/entities/Agenda/api/index.ts +20 -0
- package/src/entities/Agenda/index.ts +2 -0
- package/src/entities/Agenda/model/index.ts +2 -0
- package/src/entities/Agenda/model/store.ts +36 -0
- package/src/entities/Agenda/model/types.ts +4 -0
- package/src/entities/Branch/model/index.ts +1 -1
- package/src/entities/Desktop/api/index.ts +16 -1
- package/src/entities/Desktop/model/store.ts +112 -106
- package/src/entities/Desktop/model/types.ts +14 -1
- package/src/entities/Document/api/index.ts +24 -0
- package/src/entities/Document/index.ts +2 -0
- package/src/entities/Document/model/store.ts +117 -0
- package/src/entities/Document/model/types.ts +18 -0
- package/src/entities/Meet/api/index.ts +58 -0
- package/src/entities/Meet/index.ts +2 -0
- package/src/entities/Meet/model/store.ts +72 -0
- package/src/entities/Meet/types/index.ts +7 -0
- package/src/entities/Payment/api/index.ts +20 -0
- package/src/entities/Payment/model/index.ts +2 -0
- package/src/entities/Payment/model/store.ts +62 -0
- package/src/entities/Payment/model/types.ts +7 -0
- package/src/entities/Session/model/store.ts +4 -4
- package/src/entities/System/model/store.ts +1 -1
- package/src/entities/User/model/stores.ts +3 -1
- package/src/entities/Wallet/api/index.ts +15 -33
- package/src/entities/Wallet/model/stores.ts +3 -23
- package/src/entities/Wallet/model/types.ts +2 -3
- package/src/env.d.ts +2 -0
- package/src/features/Agreementer/SignAgreementDialog/ui/SignAgreementDialog.vue +1 -1
- package/src/features/Branch/SelectBranch/index.ts +2 -0
- package/src/features/Branch/SelectBranch/ui/SelectBranchOverlay.vue +52 -105
- package/src/features/Decision/CreateProject/ui/CreateProjectFreeDecisionButton.vue +1 -1
- package/src/features/Decision/ParticipantApplication/model/index.ts +38 -0
- package/src/features/FreeDecision/CreateProject/model/index.ts +92 -0
- package/src/features/FreeDecision/CreateProject/ui/CreateProjectFreeDecisionButton.vue +51 -0
- package/src/features/FreeDecision/CreateProject/ui/index.ts +1 -0
- package/src/features/FreeDecision/GenerateDecision/index.ts +1 -0
- package/src/features/FreeDecision/GenerateDecision/model/index.ts +36 -0
- package/src/features/FreeDecision/index.ts +2 -0
- package/src/features/Meet/CloseMeetWithDecision/index.ts +1 -0
- package/src/features/Meet/CloseMeetWithDecision/model/index.ts +92 -0
- package/src/features/Meet/CreateMeet/index.ts +2 -0
- package/src/features/Meet/CreateMeet/model/index.ts +65 -0
- package/src/features/Meet/CreateMeet/ui/CreateMeet.vue +34 -0
- package/src/features/Meet/CreateMeet/ui/CreateMeetForm.vue +136 -0
- package/src/features/Meet/CreateMeet/ui/index.ts +2 -0
- package/src/features/Meet/GenerateAgenda/index.ts +1 -0
- package/src/features/Meet/GenerateAgenda/model/index.ts +18 -0
- package/src/features/Meet/GenerateBallot/index.ts +1 -0
- package/src/features/Meet/GenerateBallot/model/index.ts +18 -0
- package/src/features/Meet/GenerateNotification/index.ts +1 -0
- package/src/features/Meet/GenerateNotification/model/index.ts +18 -0
- package/src/features/Meet/GenerateSovietDecision/index.ts +1 -0
- package/src/features/Meet/GenerateSovietDecision/model/index.ts +48 -0
- package/src/features/Meet/MeetDetailsManagement/index.ts +1 -0
- package/src/features/Meet/MeetDetailsManagement/model/index.ts +121 -0
- package/src/features/Meet/RestartMeet/index.ts +2 -0
- package/src/features/Meet/RestartMeet/model/index.ts +54 -0
- package/src/features/Meet/RestartMeet/ui/RestartMeet.vue +46 -0
- package/src/features/Meet/RestartMeet/ui/RestartMeetForm.vue +92 -0
- package/src/features/Meet/RestartMeet/ui/index.ts +2 -0
- package/src/features/Meet/VoteOnMeet/index.ts +1 -0
- package/src/features/Meet/VoteOnMeet/model/index.ts +18 -0
- package/src/features/Payment/SetStatus/api/index.ts +20 -0
- package/src/features/Payment/SetStatus/index.ts +1 -0
- package/src/features/Payment/SetStatus/model/index.ts +30 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderPaidStatusButton/SetOrderPaidStatusButton.vue +7 -3
- package/src/features/PaymentMethod/AddPaymentMethod/model/index.ts +2 -2
- package/src/features/PaymentMethod/AddPaymentMethod/ui/AddPaymentButton.vue +1 -1
- package/src/features/PaymentMethod/DeletePaymentMethod/model/index.ts +1 -1
- package/src/features/PaymentMethod/DeletePaymentMethod/ui/DeletePaymentMethodButton.vue +3 -1
- package/src/features/Request/CancelRequest/ui/CancelButton.vue +1 -1
- package/src/features/Request/ConfirmRecieveOnRequest/ui/ConfirmRecieveOnRequest.vue +1 -1
- package/src/features/Request/CreateParentOffer/ui/CreateParentOfferForm/CreateParentOfferForm.vue +4 -5
- package/src/features/Request/CreateParentOffer/ui/ImageUploaderWithPreview/ImageUploaderWithPreview.vue +5 -3
- package/src/features/Request/DisputeOnRequest/ui/DisputeOnRequestButton.vue +1 -1
- package/src/features/Request/ModerateRequest/ui/ModerateRequestButton.vue +2 -2
- package/src/features/Request/PublishRequest/ui/PublishRequestButton.vue +1 -1
- package/src/features/Request/RecieveOnRequest/ui/RecieveOnRequestButton.vue +1 -1
- package/src/features/Request/UnpublishRequest/ui/UnpublishRequestButton.vue +1 -1
- package/src/features/Union/AddCooperative/model/index.ts +5 -5
- package/src/features/Union/AddCooperative/ui/AddCooperativeForm.vue +6 -9
- package/src/features/User/AddUser/ui/AddUserDialog/AddUserDialog.vue +4 -4
- package/src/features/User/LoginUser/model/index.ts +3 -7
- package/src/features/User/LoginUser/ui/LoginForm/LoginForm.vue +0 -6
- package/src/features/User/Logout/model/index.ts +2 -1
- package/src/features/Wallet/DepositToWallet/ui/DepositButton/DepositButton.vue +10 -7
- package/src/features/Wallet/WithdrawFromWallet/ui/withdrawButton.vue +7 -6
- package/src/pages/Blank/index.ts +1 -0
- package/src/pages/Contacts/ContactsPage.vue +64 -0
- package/src/{widgets/Cooperative/Contacts → pages/Cooperative/ChangeContacts}/ui/index.ts +0 -1
- package/src/{widgets/Cooperative/Contributions/ui/ChangeContributions.vue → pages/Cooperative/ChangeRegisterPayments/ui/ChangeRegisterPayments.vue} +12 -11
- package/src/pages/Cooperative/ChangeRegisterPayments/ui/index.ts +1 -0
- package/src/pages/Cooperative/ListOfAgenda/index.ts +1 -0
- package/src/pages/Cooperative/ListOfAgenda/ui/ListOfAgendaQuestions.vue +118 -0
- package/src/pages/Cooperative/ListOfAgenda/ui/index.ts +1 -0
- package/src/pages/Cooperative/ListOfDocuments/ListOfDocumentsPage.vue +24 -0
- package/src/pages/Cooperative/ListOfMeets/model/index.ts +1 -0
- package/src/pages/Cooperative/ListOfMeets/model/model.ts +117 -0
- package/src/pages/Cooperative/ListOfMeets/ui/ListOfMeetsPage.vue +90 -0
- package/src/pages/Cooperative/ListOfMeets/ui/index.ts +1 -0
- package/src/pages/Cooperative/ListOfOrders/index.ts +1 -1
- package/src/pages/Cooperative/ListOfOrders/ui/ListOfOrdersPage.vue +0 -4
- package/src/pages/Cooperative/ListOfParticipants/ui/ListOfParticipantsPage.vue +61 -10
- package/src/pages/Cooperative/ListOfParticipants/ui/index.ts +1 -1
- package/src/pages/Cooperative/MeetDetails/ui/MeetDetailsPage.vue +88 -0
- package/src/pages/Cooperative/MeetDetails/ui/index.ts +1 -0
- package/src/pages/Cooperative/MemberBranchList/ui/index.ts +1 -0
- package/src/pages/Cooperative/Payments/index.ts +1 -0
- package/src/pages/Cooperative/Payments/ui/PaymentsPage.vue +7 -0
- package/src/pages/{ExtStore → ExtensionStore}/ExtensionPage/ExtensionPage.vue +51 -24
- package/src/pages/{ExtStore → ExtensionStore}/ExtensionsShowcase/ExtensionsShowcase.vue +2 -2
- package/src/pages/{ExtStore → ExtensionStore}/InstalledExtensions/InstalledExtensions.vue +2 -2
- package/src/pages/Marketplace/OfferPage/ui/OfferPage.vue +1 -1
- package/src/pages/Marketplace/Showcase/ui/ShowcasePage.vue +1 -1
- package/src/pages/Marketplace/SuppliesList/ui/SuppliesListPage.vue +1 -1
- package/src/pages/Marketplace/UserParentOffers/ui/UserParentOffersPage.vue +1 -1
- package/src/pages/Marketplace/UserSuppliesList/ui/UserSuppliesListPage.vue +1 -1
- package/src/pages/PermissionDenied/index.ts +1 -0
- package/src/pages/Registrator/SignUp/EmailInput.vue +4 -3
- package/src/pages/Registrator/SignUp/GenerateAccount.vue +2 -3
- package/src/pages/Registrator/SignUp/PayInitial.vue +1 -1
- package/src/pages/Registrator/SignUp/ReadStatement.vue +2 -2
- package/src/pages/Registrator/SignUp/SelectBranch.vue +2 -2
- package/src/pages/Registrator/SignUp/SignStatement.vue +2 -2
- package/src/pages/Registrator/SignUp/SignUp.vue +5 -12
- package/src/pages/Registrator/SignUp/WaitingRegistration.vue +1 -5
- package/src/pages/Registrator/SignUp/Welcome.vue +6 -3
- package/src/pages/Union/ConnectionAgreement/index.ts +1 -0
- package/src/pages/Union/ListOfCooperatives/ui/UnionPageListOfCooperatives.vue +139 -6
- package/src/pages/User/DocumentsPage/UserDocumentsPage.vue +23 -0
- package/src/pages/User/DocumentsPage/index.ts +1 -0
- package/src/pages/User/PaymentsPage/ui/UserPayments.vue +11 -0
- package/src/pages/User/PaymentsPage/ui/index.ts +1 -0
- package/src/pages/User/ProfilePage/index.ts +1 -0
- package/src/pages/User/ProfilePage/ui/ProfilePage.vue +114 -0
- package/src/pages/User/ProfilePage/ui/index.ts +1 -0
- package/src/pages/User/SettingsPage/ui/index.ts +1 -1
- package/src/pages/User/WalletPage/index.ts +1 -0
- package/src/pages/User/WalletPage/ui/WalletPage.vue +72 -0
- package/src/pages/User/WalletPage/ui/index.ts +1 -0
- package/src/processes/init-app/index.ts +28 -0
- package/src/processes/init-installed-extensions/index.ts +25 -0
- package/src/processes/init-wallet/index.ts +40 -0
- package/src/processes/navigation-guard-setup/index.ts +45 -0
- package/src/processes/process-decisions/index.ts +275 -0
- package/src/processes/select-branch/index.ts +80 -0
- package/src/processes/watch-branch-overlay/index.ts +38 -0
- package/src/processes/watch-desktop-health/index.ts +33 -0
- package/src/shared/api/alerts.ts +2 -6
- package/src/shared/api/axios.ts +5 -5
- package/src/shared/api/client.ts +4 -4
- package/src/shared/api/eosio.ts +2 -2
- package/src/shared/api/indexDB.ts +3 -0
- package/src/shared/api/utils.ts +2 -2
- package/src/shared/config/Environment.ts +68 -0
- package/src/shared/config/index.ts +2 -1
- package/src/shared/hooks/index.ts +2 -0
- package/src/shared/hooks/useAgendaPoints.ts +24 -0
- package/src/shared/hooks/useWindowSize.ts +13 -0
- package/src/shared/lib/composables/useDisplayName.ts +34 -0
- package/src/shared/lib/navigation/index.ts +2 -0
- package/src/shared/lib/navigation/routeUtils.ts +51 -0
- package/src/shared/lib/navigation/useBackButton.ts +63 -0
- package/src/shared/lib/proxy/dicebear-collection.cjs +21 -0
- package/src/shared/lib/proxy/dicebear-core.cjs +20 -0
- package/src/shared/lib/proxy/email-regex.cjs +19 -0
- package/src/shared/lib/utils/dates/validateDateWithinRange.ts +23 -0
- package/src/shared/ui/BaseDocument/BaseDocument.vue +120 -90
- package/src/{components/menu/blockchainStatus.vue → shared/ui/BlockchainStatusBar/BlockchainStatusBar.vue} +1 -0
- package/src/shared/ui/BlockchainStatusBar/index.ts +1 -0
- package/src/shared/ui/CardStyles/index.scss +61 -0
- package/src/shared/ui/ClientOnly/ClientOnly.vue +15 -0
- package/src/shared/ui/ClientOnly/index.ts +1 -0
- package/src/shared/ui/ComplexDocument/ComplexDocument.vue +31 -8
- package/src/shared/ui/CopyableInput/index.ts +1 -0
- package/src/shared/ui/CopyableInput/ui/CopyableInput.vue +62 -0
- package/src/shared/ui/EditableEntrepreneurCard/EditableEntrepreneurCard.vue +9 -8
- package/src/shared/ui/EditableIndividualCard/EditableIndividualCard.vue +10 -10
- package/src/shared/ui/EditableOrganizationCard/EditableOrganizationCard.vue +57 -47
- package/src/shared/ui/Form/Form.vue +3 -1
- package/src/shared/ui/InputStyles/index.scss +29 -0
- package/src/shared/ui/TabStyles/index.scss +53 -0
- package/src/shared/ui/index.ts +1 -0
- package/src/{components/history/AccountEvents.vue → widgets/AccountActions/AccountActionsPage.vue} +2 -2
- package/src/widgets/AccountActions/index.ts +1 -0
- package/src/widgets/BankDetailsCard/ui/BankDetailsCard.vue +2 -2
- package/src/widgets/BranchCard/ui/BranchCard.vue +2 -2
- package/src/widgets/Cooperative/Documents/ListOfDocuments/ui/DocumentCard.vue +48 -0
- package/src/widgets/Cooperative/Documents/ListOfDocuments/ui/DocumentsTable.vue +162 -0
- package/src/widgets/Cooperative/Documents/ListOfDocuments/ui/ListOfDocumentsWidget.vue +77 -120
- package/src/widgets/Cooperative/Documents/ListOfDocuments/ui/index.ts +3 -1
- package/src/widgets/Cooperative/Orders/ListOfOrders/ui/ListOfOrdersWidget.vue +135 -128
- package/src/widgets/Cooperative/Orders/ListOfOrders/ui/OrderCard.vue +74 -0
- package/src/widgets/Cooperative/Orders/ListOfOrders/ui/index.ts +2 -1
- package/src/widgets/Cooperative/Payments/ListOfPayments/ui/ListOfPaymentsWidget.vue +216 -0
- package/src/widgets/Cooperative/Payments/ListOfPayments/ui/PaymentCard.vue +73 -0
- package/src/widgets/Cooperative/Payments/ListOfPayments/ui/index.ts +2 -0
- package/src/widgets/Cooperative/Payments/index.ts +1 -0
- package/src/widgets/Desktop/LeftDrawerMenu/LeftDrawerMenu.vue +3 -2
- package/src/widgets/Desktop/SecondLevelMenuList/SecondLevelMenuList.vue +58 -91
- package/src/widgets/Desktop/WorkspaceMenu/WorkspaceMenu.vue +114 -59
- package/src/widgets/{ExtStore/ExtensionCard → ExtensionCard}/ExtensionCard.vue +12 -7
- package/src/widgets/Header/BackButton/BackButton.vue +25 -0
- package/src/widgets/Header/BackButton/index.ts +1 -0
- package/src/widgets/Header/CommonHeader/CooperativeSettingsHeader.vue +34 -0
- package/src/widgets/Header/CommonHeader/ExtstoreHeader.vue +41 -0
- package/src/widgets/Header/CommonHeader/Header.vue +33 -198
- package/src/widgets/Header/CommonHeader/HeaderStyles.scss +22 -0
- package/src/widgets/Header/CommonHeader/MainHeader.vue +88 -0
- package/src/widgets/Header/CommonHeader/UserSettingsHeader.vue +29 -0
- package/src/widgets/Header/CommonHeader/index.ts +1 -1
- package/src/widgets/Header/SettingsDropdown/SettingsDropdown.vue +0 -6
- package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Base/Base.vue +2 -2
- package/src/widgets/Meets/MeetDetailsActions/MeetDetailsActions.vue +51 -0
- package/src/widgets/Meets/MeetDetailsActions/index.ts +1 -0
- package/src/widgets/Meets/MeetDetailsActions/model.ts +46 -0
- package/src/widgets/Meets/MeetDetailsAgenda/MeetDetailsAgenda.vue +29 -0
- package/src/widgets/Meets/MeetDetailsAgenda/index.ts +1 -0
- package/src/widgets/Meets/MeetDetailsHeader/MeetDetailsHeader.vue +40 -0
- package/src/widgets/Meets/MeetDetailsHeader/index.ts +1 -0
- package/src/widgets/Meets/MeetDetailsVoting/MeetDetailsVoting.vue +77 -0
- package/src/widgets/Meets/MeetDetailsVoting/index.ts +1 -0
- package/src/widgets/Meets/MeetDetailsVoting/model.ts +117 -0
- package/src/widgets/Meets/MeetInfoCard/ui/MeetInfoCard.vue +38 -0
- package/src/widgets/Meets/MeetInfoCard/ui/index.ts +1 -0
- package/src/widgets/Meets/MeetsTable/ui/MeetsTable.vue +118 -0
- package/src/widgets/Meets/MeetsTable/ui/index.ts +1 -0
- package/src/widgets/Participants/index.ts +1 -0
- package/src/widgets/Participants/ui/ParticipantCard.vue +89 -0
- package/src/widgets/Participants/ui/ParticipantDetails.vue +79 -0
- package/src/widgets/Participants/ui/ParticipantsTable.vue +129 -0
- package/src/widgets/Participants/ui/index.ts +4 -0
- package/src/widgets/Questions/index.ts +3 -0
- package/src/widgets/Questions/ui/QuestionCard/QuestionCard.vue +109 -0
- package/src/widgets/Questions/ui/QuestionCard/index.ts +1 -0
- package/src/widgets/Questions/ui/QuestionsTable/QuestionsTable.vue +177 -0
- package/src/widgets/Questions/ui/QuestionsTable/index.ts +1 -0
- package/src/widgets/Questions/ui/VotingButtons/VotingButtons.vue +75 -0
- package/src/widgets/Questions/ui/VotingButtons/index.ts +1 -0
- package/src/widgets/Questions/ui/index.ts +3 -0
- package/src/widgets/RequireAgreements/index.ts +1 -0
- package/src/widgets/User/PaymentMethods/ui/PaymentMethods.vue +81 -85
- package/src-ssr/middlewares/injectEnv.ts +49 -0
- package/tsconfig.json +1 -1
- package/extensions/powerup/boot.ts +0 -17
- package/src/app/providers/card/store.ts +0 -42
- package/src/boot/branch-selector.ts +0 -40
- package/src/boot/init-stores.ts +0 -51
- package/src/boot/navigation-guards.ts +0 -46
- package/src/components/menu/footerMobileMenu.vue +0 -79
- package/src/components/soviet/index.vue +0 -76
- package/src/components/soviet/staff.vue +0 -274
- package/src/desktops/User/index.ts +0 -1
- package/src/desktops/User/model/index.ts +0 -329
- package/src/entities/Menu/model/store.ts +0 -69
- package/src/entities/Menu/model/types.ts +0 -11
- package/src/entities/Menu/ui/index.ts +0 -1
- package/src/entities/Order/api/index.ts +0 -14
- package/src/entities/Order/model/store.ts +0 -87
- package/src/features/Order/SetStatus/api/index.ts +0 -7
- package/src/features/Order/SetStatus/model/index.ts +0 -23
- package/src/pages/Cooperative/Contacts/ui/ContactsPage.vue +0 -7
- package/src/pages/Cooperative/ListOfBranches/ui/index.ts +0 -1
- package/src/pages/Documentor/ListOfDocuments/ListOfDocumentsPage.vue +0 -12
- package/src/pages/Union/Connection/index.ts +0 -1
- package/src/pages/_layouts/blank.vue +0 -24
- package/src/pages/_layouts/default.vue +0 -79
- package/src/types/index.ts +0 -3
- package/src/widgets/Commutator/Commutator.vue +0 -7
- package/src/widgets/Commutator/index.ts +0 -1
- package/src/widgets/Cooperative/Agenda/ListOfQuestions/ui/ListOfQuestions.vue +0 -273
- package/src/widgets/Cooperative/Agenda/ListOfQuestions/ui/index.ts +0 -1
- package/src/widgets/Cooperative/Contacts/ui/Contacts.vue +0 -52
- package/src/widgets/Cooperative/Contributions/ui/index.ts +0 -1
- package/src/widgets/Cooperative/Description/ui/SetDescription.vue +0 -4
- package/src/widgets/Cooperative/Description/ui/index.ts +0 -1
- package/src/widgets/Cooperative/Participants/ListOfParticipants/ui/ListOfParticipantsWidget.vue +0 -186
- package/src/widgets/Cooperative/Participants/ListOfParticipants/ui/index.ts +0 -1
- package/src/widgets/Desktop/SecondLevelMenu/SecondLevelMenu.vue +0 -59
- package/src/widgets/Desktop/SecondLevelMenu/index.ts +0 -1
- package/src/widgets/IndividualCard/ui/IndividualCard.vue +0 -170
- package/src/widgets/IndividualCard/ui/index.ts +0 -1
- package/src/widgets/OrganizationCard/ui/OrganizationCard.vue +0 -44
- package/src/widgets/OrganizationCard/ui/index.ts +0 -1
- package/src/widgets/Union/ListOfCooperatives/ui/UnionListOfCooperatives.vue +0 -136
- package/src/widgets/Union/ListOfCooperatives/ui/index.ts +0 -1
- package/src/entities/{Menu → Document}/model/index.ts +0 -0
- package/src/entities/{Order → Meet}/model/index.ts +0 -0
- package/src/entities/{Order → Payment}/index.ts +0 -0
- package/src/features/{Order/SetStatus → Decision/ParticipantApplication}/index.ts +0 -0
- package/src/{widgets/Request/SupplyOrderRequestCard → features/FreeDecision/CreateProject}/index.ts +0 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderCompletedStatusButton/SetOrderCompletedStatusButton.vue +0 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderCompletedStatusButton/index.ts +0 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderPaidStatusButton/index.ts +0 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderRefundedStatusButton/SetOrderRefundedStatusButton.vue +0 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderRefundedStatusButton/index.ts +0 -0
- package/src/pages/{blank/blank.vue → Blank/BlankPage.vue} +0 -0
- package/src/pages/{Cooperative/Contacts/ui → Contacts}/index.ts +0 -0
- package/src/pages/Cooperative/{Contacts → ChangeContacts}/index.ts +0 -0
- package/src/{widgets/Cooperative/Contacts → pages/Cooperative/ChangeContacts}/ui/ChangeContacts.vue +0 -0
- package/src/pages/Cooperative/{ListOfBranches → ChangeRegisterPayments}/index.ts +0 -0
- package/src/pages/{Documentor → Cooperative}/ListOfDocuments/index.ts +0 -0
- package/src/pages/{Installer → Cooperative/ListOfMeets}/index.ts +0 -0
- package/src/{widgets/Cooperative/Agenda/ListOfQuestions → pages/Cooperative/MeetDetails}/index.ts +0 -0
- package/src/{widgets/Cooperative/Contacts → pages/Cooperative/MemberBranchList}/index.ts +0 -0
- package/src/pages/Cooperative/{ListOfBranches/ui/ListOfBranchesPage.vue → MemberBranchList/ui/MemberBranchListPage.vue} +0 -0
- package/src/pages/{ExtStore → ExtensionStore}/BaseRoute/ExtensionStoreBase.vue +0 -0
- package/src/pages/{ExtStore → ExtensionStore}/BaseRoute/index.ts +0 -0
- package/src/pages/{ExtStore → ExtensionStore}/ExtensionPage/index.ts +0 -0
- package/src/pages/{ExtStore → ExtensionStore}/ExtensionsShowcase/index.ts +0 -0
- package/src/pages/{ExtStore → ExtensionStore}/InstalledExtensions/index.ts +0 -0
- package/src/pages/{_layouts/permissionDenied.vue → PermissionDenied/PermissionDenied.vue} +0 -0
- package/src/pages/Union/{Connection/ConnectionPage.vue → ConnectionAgreement/ConnectionAgreementPage.vue} +0 -0
- package/src/{widgets/Cooperative/Contributions → pages/Union/InstallCooperative}/index.ts +0 -0
- package/src/pages/{Installer → Union/InstallCooperative}/ui/InstallCooperativePage.vue +0 -0
- package/src/pages/{Installer → Union/InstallCooperative}/ui/index.ts +0 -0
- package/src/{widgets/Cooperative/Participants/ListOfParticipants → pages/User/PaymentsPage}/index.ts +0 -0
- package/src/{components/history → widgets/AccountActions}/AccountLink.vue +0 -0
- package/src/{components/history → widgets/AccountActions}/ActionCell.vue +0 -0
- package/src/{components/history → widgets/AccountActions}/DataCell.vue +0 -0
- package/src/widgets/{IndividualCard → Cooperative/Payments/ListOfPayments}/index.ts +0 -0
- package/src/widgets/{ExtStore/ExtensionCard → ExtensionCard}/index.ts +0 -0
- package/src/widgets/{Request → Marketplace}/CreateChildOrderCard/CreateChildOrderCard.vue +0 -0
- package/src/widgets/{Request → Marketplace}/CreateChildOrderCard/index.ts +0 -0
- package/src/widgets/{Request → Marketplace}/RequestCard/RequestCard.vue +0 -0
- package/src/widgets/{Request → Marketplace}/RequestCard/index.ts +0 -0
- package/src/{entities/Menu → widgets/Marketplace/SupplyOrderRequestCard}/index.ts +1 -1
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/model/index.ts +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/model/types.ts +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Base/index.ts +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/EightStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/FifthStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/FirstStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/FourthStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/SecondStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/SeventhStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/SixthStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/ThirdStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/index.ts +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/index.ts +0 -0
- /package/src/widgets/{OrganizationCard → Meets/MeetInfoCard}/index.ts +0 -0
- /package/src/widgets/{Union/ListOfCooperatives → Meets/MeetsTable}/index.ts +0 -0
- /package/src/widgets/{Agreementer/RequireAgreements → RequireAgreements}/ui/RequireAgreements.vue +0 -0
- /package/src/widgets/{Agreementer/RequireAgreements → RequireAgreements}/ui/index.ts +0 -0
@@ -0,0 +1,162 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
div.scroll-area(style="height: 90vh; overflow-y: auto;")
|
3
|
+
q-table(
|
4
|
+
ref="tableRef"
|
5
|
+
flat
|
6
|
+
:grid="isMobile"
|
7
|
+
:rows="documents"
|
8
|
+
:columns="columns"
|
9
|
+
:table-colspan="9"
|
10
|
+
:loading='loading'
|
11
|
+
:no-data-label="'документы не найдены'"
|
12
|
+
:virtual-scroll="!!documents.length"
|
13
|
+
@virtual-scroll="onScroll"
|
14
|
+
:virtual-scroll-target="'.scroll-area'"
|
15
|
+
:virtual-scroll-item-size="48"
|
16
|
+
:virtual-scroll-sticky-size-start="48"
|
17
|
+
:rows-per-page-options="[0]"
|
18
|
+
:pagination="pagination"
|
19
|
+
:class="{'my-sticky-dynamic': documents.length > 0}"
|
20
|
+
class="q-mb-md"
|
21
|
+
).documents-table
|
22
|
+
template(#top v-if="$slots.top")
|
23
|
+
slot(name="top")
|
24
|
+
template(#item="props")
|
25
|
+
DocumentCard(
|
26
|
+
:document="props.row"
|
27
|
+
:expanded="!!expanded.get(props.row?.statement?.action?.global_sequence)"
|
28
|
+
@toggle-expand="toggleExpand(props.row?.statement?.action?.global_sequence)"
|
29
|
+
)
|
30
|
+
|
31
|
+
template(#header="props")
|
32
|
+
q-tr(:props="props")
|
33
|
+
q-th(auto-width)
|
34
|
+
q-th(
|
35
|
+
v-for="col in props.cols"
|
36
|
+
:key="col.name"
|
37
|
+
:props="props"
|
38
|
+
) {{ col.label }}
|
39
|
+
|
40
|
+
template(#body="props")
|
41
|
+
q-tr(:key="`m_${props.row?.id || props.row?.statement?.action?.global_sequence}`" :props="props")
|
42
|
+
q-td(auto-width)
|
43
|
+
q-btn(
|
44
|
+
size="sm"
|
45
|
+
color="primary"
|
46
|
+
round
|
47
|
+
dense
|
48
|
+
:icon="expanded.get(props.row?.id || props.row?.statement?.action?.global_sequence) ? 'remove' : 'add'"
|
49
|
+
@click="toggleExpand(props.row?.id || props.row?.statement?.action?.global_sequence)"
|
50
|
+
)
|
51
|
+
|
52
|
+
q-td {{ getDocumentHash(props.row).substring(0, 10) || '' }}
|
53
|
+
q-td {{ getDocumentTitle(props.row) }}
|
54
|
+
|
55
|
+
q-tr(
|
56
|
+
v-if="expanded.get(props.row?.id || props.row?.statement?.action?.global_sequence)"
|
57
|
+
:key="`e_${props.row?.id || props.row?.statement?.action?.global_sequence}`"
|
58
|
+
:props="props"
|
59
|
+
class="q-virtual-scroll--with-prev"
|
60
|
+
)
|
61
|
+
q-td(colspan="100%")
|
62
|
+
ComplexDocument(:documents="props.row")
|
63
|
+
|
64
|
+
</template>
|
65
|
+
|
66
|
+
<script setup lang="ts">
|
67
|
+
import { ref, reactive } from 'vue'
|
68
|
+
import { ComplexDocument } from 'src/shared/ui/ComplexDocument'
|
69
|
+
import { DocumentCard } from './'
|
70
|
+
import { useWindowSize } from 'src/shared/hooks'
|
71
|
+
import type { IDocumentPackageAggregate } from 'src/entities/Document/model'
|
72
|
+
|
73
|
+
// Props
|
74
|
+
const props = defineProps<{
|
75
|
+
documents: IDocumentPackageAggregate[]
|
76
|
+
loading: boolean
|
77
|
+
}>()
|
78
|
+
|
79
|
+
// Emits - определяем события, которые компонент может эмитить
|
80
|
+
const emit = defineEmits<{
|
81
|
+
(e: 'load'): void
|
82
|
+
(e: 'toggle-expand', id: string): void
|
83
|
+
}>()
|
84
|
+
|
85
|
+
// Локальное состояние
|
86
|
+
const expanded = reactive(new Map<string, boolean>())
|
87
|
+
const pagination = ref({
|
88
|
+
rowsPerPage: 0
|
89
|
+
})
|
90
|
+
const tableRef = ref(null)
|
91
|
+
const { isMobile } = useWindowSize()
|
92
|
+
|
93
|
+
// Функция обработки виртуального скролла
|
94
|
+
const onScroll = ({ to }) => {
|
95
|
+
|
96
|
+
const lastIndex = props.documents.length - 1
|
97
|
+
// Если достигли последнего элемента в списке, эмитим событие load
|
98
|
+
if (to === lastIndex) {
|
99
|
+
emit('load')
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
// Получение заголовка документа из агрегата
|
104
|
+
function getDocumentTitle(row: IDocumentPackageAggregate) {
|
105
|
+
// Используем документы из агрегатов
|
106
|
+
if (row.statement?.documentAggregate?.rawDocument?.full_title) {
|
107
|
+
return row.statement.documentAggregate.rawDocument.full_title
|
108
|
+
}
|
109
|
+
|
110
|
+
// Проверяем решения
|
111
|
+
if (row.decision?.documentAggregate?.rawDocument?.full_title) {
|
112
|
+
return row.decision.documentAggregate.rawDocument.full_title
|
113
|
+
}
|
114
|
+
|
115
|
+
// По умолчанию
|
116
|
+
return 'Документ без заголовка'
|
117
|
+
}
|
118
|
+
|
119
|
+
// Получение хеша документа из агрегата
|
120
|
+
function getDocumentHash(row: IDocumentPackageAggregate) {
|
121
|
+
if (row.statement?.documentAggregate?.rawDocument?.hash) {
|
122
|
+
return row.statement.documentAggregate.rawDocument.hash
|
123
|
+
}
|
124
|
+
|
125
|
+
if (row.decision?.documentAggregate?.rawDocument?.hash) {
|
126
|
+
return row.decision.documentAggregate.rawDocument.hash
|
127
|
+
}
|
128
|
+
|
129
|
+
return 'нет хеша'
|
130
|
+
}
|
131
|
+
|
132
|
+
// Колонки таблицы
|
133
|
+
const columns:any[] = [
|
134
|
+
{
|
135
|
+
name: 'hash',
|
136
|
+
align: 'left',
|
137
|
+
label: 'ID',
|
138
|
+
field: (row: any) => getDocumentHash(row).substring(0, 10) || '',
|
139
|
+
sortable: true
|
140
|
+
},
|
141
|
+
{
|
142
|
+
name: 'title',
|
143
|
+
align: 'left',
|
144
|
+
label: 'Документ',
|
145
|
+
field: (row: any) => getDocumentTitle(row),
|
146
|
+
sortable: true
|
147
|
+
},
|
148
|
+
|
149
|
+
]
|
150
|
+
|
151
|
+
// Функция для переключения состояния развертывания
|
152
|
+
const toggleExpand = (id: any) => {
|
153
|
+
if (!id) return
|
154
|
+
expanded.set(id, !expanded.get(id))
|
155
|
+
emit('toggle-expand', id)
|
156
|
+
}
|
157
|
+
</script>
|
158
|
+
<style>
|
159
|
+
.documents-table .q-table__top{
|
160
|
+
padding: 0px !important;
|
161
|
+
}
|
162
|
+
</style>
|
@@ -1,156 +1,113 @@
|
|
1
1
|
<template lang="pug">
|
2
|
-
|
3
2
|
div.row.justify-center
|
4
3
|
div.col-12
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
:pagination="pagination"
|
12
|
-
virtual-scroll
|
13
|
-
:virtual-scroll-item-size="48"
|
14
|
-
:rows-per-page-options="[10]"
|
15
|
-
:loading='onLoading'
|
16
|
-
:no-data-label="'документы не найдены'"
|
17
|
-
).full-height
|
4
|
+
DocumentsTable(
|
5
|
+
:documents="documentStore.documents"
|
6
|
+
:loading="documentStore.loading"
|
7
|
+
@toggle-expand="toggleExpand"
|
8
|
+
@load="loadMoreDocuments"
|
9
|
+
)
|
18
10
|
template(#top v-if="showFilter")
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
q-tr(:props="props")
|
32
|
-
q-th(auto-width)
|
33
|
-
|
34
|
-
q-th(
|
35
|
-
v-for="col in props.cols"
|
36
|
-
:key="col.name"
|
37
|
-
:props="props"
|
38
|
-
) {{ col.label }}
|
39
|
-
|
40
|
-
template(#body="props")
|
41
|
-
q-tr(:key="`m_${props.row?.statement?.action?.global_sequence}`" :props="props")
|
42
|
-
q-td(auto-width)
|
43
|
-
q-btn(v-if="!expand" size="sm" color="primary" round dense :icon="expanded.get(props.row?.statement?.action?.global_sequence) ? 'remove' : 'add'" @click="toggleExpand(props.row?.statement?.action?.global_sequence)")
|
44
|
-
|
45
|
-
q-td {{ props.row.statement?.action?.data?.document.hash.substring(0, 10) }}
|
46
|
-
|
47
|
-
q-td {{ props.row.statement?.document?.full_title }}
|
48
|
-
|
49
|
-
q-tr(v-if="expanded.get(props.row?.statement?.action?.global_sequence) || expand" :key="`e_${props.row?.statement?.action?.global_sequence}`" :props="props" class="q-virtual-scroll--with-prev")
|
50
|
-
q-td(colspan="100%")
|
51
|
-
ComplexDocument(:documents="props.row")
|
52
|
-
|
53
|
-
|
11
|
+
div.full-width
|
12
|
+
q-btn-toggle.full-width(
|
13
|
+
size="sm"
|
14
|
+
:model-value="typeForToggle"
|
15
|
+
@update:model-value="onTypeChange"
|
16
|
+
spread
|
17
|
+
toggle-color="teal"
|
18
|
+
color="white"
|
19
|
+
text-color="black"
|
20
|
+
:options="[{label: 'Все входящие', value: 'newsubmitted'}, {label: 'Только утверждённые', value: 'newresolved'}]"
|
21
|
+
)
|
54
22
|
</template>
|
55
23
|
|
56
24
|
<script setup lang="ts">
|
57
|
-
import { onMounted, ref,
|
58
|
-
import {
|
59
|
-
import {
|
60
|
-
import {
|
61
|
-
import type {
|
62
|
-
|
63
|
-
const documents = ref<IComplexDocument[]>([])
|
64
|
-
const onLoading = ref(false)
|
25
|
+
import { onMounted, ref, onBeforeUnmount } from 'vue'
|
26
|
+
import { DocumentModel } from 'src/entities/Document'
|
27
|
+
import { DocumentsTable } from '../ui'
|
28
|
+
import { FailAlert } from 'src/shared/api'
|
29
|
+
import type { DocumentType } from 'src/entities/Document/model/types'
|
65
30
|
|
66
31
|
const props = defineProps({
|
32
|
+
username: {
|
33
|
+
type: String,
|
34
|
+
required: true
|
35
|
+
},
|
67
36
|
filter: {
|
68
37
|
type: Object,
|
69
|
-
required: true,
|
70
|
-
validator: (value: any) => {
|
71
|
-
// Проверка на наличие поля 'receiver' и типа string
|
72
|
-
return typeof value.receiver === 'string'
|
73
|
-
}
|
74
|
-
},
|
75
|
-
expand: {
|
76
|
-
type: Boolean,
|
77
38
|
required: false,
|
78
|
-
default:
|
39
|
+
default: () => ({})
|
79
40
|
},
|
80
41
|
showFilter: {
|
81
42
|
type: Boolean,
|
82
43
|
required: false,
|
83
44
|
default: false,
|
84
45
|
},
|
85
|
-
|
86
|
-
type: String,
|
46
|
+
initialDocumentType: {
|
47
|
+
type: String as () => DocumentType,
|
87
48
|
required: false,
|
49
|
+
default: 'newsubmitted',
|
88
50
|
}
|
89
51
|
})
|
90
52
|
|
91
|
-
const
|
92
|
-
const documentType = ref(props.documentType || 'newsubmitted')
|
93
|
-
|
94
|
-
const loadDocuments = async () => {
|
95
|
-
try {
|
96
|
-
onLoading.value = true
|
53
|
+
const emit = defineEmits(['toggle-expand'])
|
97
54
|
|
98
|
-
|
99
|
-
|
100
|
-
receiver: receiver.value,
|
101
|
-
...props.filter
|
102
|
-
},
|
103
|
-
type: documentType.value as 'newresolved' | 'newsubmitted'
|
104
|
-
}
|
55
|
+
// Получаем store документов
|
56
|
+
const documentStore = DocumentModel.useDocumentStore()
|
105
57
|
|
106
|
-
|
107
|
-
|
108
|
-
})).results as IComplexDocument[]
|
58
|
+
// Переменная для отслеживания типа в интерфейсе
|
59
|
+
const typeForToggle = ref<DocumentType>(props.initialDocumentType)
|
109
60
|
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
61
|
+
// Обработчик изменения типа документов
|
62
|
+
async function onTypeChange(newType: DocumentType) {
|
63
|
+
if (newType === 'newresolved' || newType === 'newsubmitted') {
|
64
|
+
typeForToggle.value = newType
|
65
|
+
try {
|
66
|
+
await documentStore.changeDocumentType(newType, props.username, props.filter)
|
67
|
+
} catch (e) {
|
68
|
+
FailAlert(e)
|
69
|
+
}
|
118
70
|
}
|
119
71
|
}
|
120
72
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
loadDocuments()
|
129
|
-
}
|
130
|
-
})
|
131
|
-
|
132
|
-
// const getHumanActionName = (action) => {
|
133
|
-
// if (action == 'joincoop') {
|
134
|
-
// return 'Заявление на вступление'
|
135
|
-
// }
|
136
|
-
// }
|
73
|
+
// Функция для загрузки следующей страницы документов
|
74
|
+
async function loadMoreDocuments() {
|
75
|
+
try {
|
76
|
+
// Проверяем, не загружаются ли уже документы
|
77
|
+
if (documentStore.loading) {
|
78
|
+
return
|
79
|
+
}
|
137
80
|
|
138
|
-
const
|
139
|
-
{ name: 'id', align: 'left', label: 'id', field: 'id', sortable: true },
|
81
|
+
const nextPage = documentStore.pagination.currentPage + 1
|
140
82
|
|
141
|
-
|
142
|
-
|
143
|
-
// { name: 'username', align: 'left', label: 'Аккаунт', field: 'username', sortable: true },
|
144
|
-
] as any
|
83
|
+
if (nextPage <= documentStore.pagination.totalPages)
|
84
|
+
await documentStore.changePage(nextPage, props.username, props.filter)
|
145
85
|
|
146
|
-
|
86
|
+
} catch (e) {
|
87
|
+
FailAlert(e)
|
88
|
+
}
|
89
|
+
}
|
147
90
|
|
148
|
-
// Функция для переключения состояния
|
149
|
-
|
150
|
-
|
91
|
+
// Функция для переключения состояния раскрытия
|
92
|
+
function toggleExpand(document: any) {
|
93
|
+
emit('toggle-expand', document)
|
151
94
|
}
|
152
95
|
|
96
|
+
// Периодическое обновление данных
|
97
|
+
let interval: number | null = null
|
153
98
|
|
154
|
-
|
155
|
-
|
99
|
+
// Загрузка документов при монтировании
|
100
|
+
onMounted(() => {
|
101
|
+
// Начальная загрузка документов
|
102
|
+
documentStore.resetDocuments()
|
103
|
+
documentStore.changeDocumentType(typeForToggle.value, props.username, props.filter)
|
104
|
+
.catch(e => FailAlert(e))
|
105
|
+
})
|
106
|
+
|
107
|
+
// Очистка таймера при размонтировании компонента
|
108
|
+
onBeforeUnmount(() => {
|
109
|
+
if (interval !== null) {
|
110
|
+
window.clearInterval(interval)
|
111
|
+
}
|
112
|
+
})
|
156
113
|
</script>
|
@@ -1 +1,3 @@
|
|
1
|
-
export {default as
|
1
|
+
export { default as DocumentCard } from './DocumentCard.vue'
|
2
|
+
export { default as ListOfDocumentsWidget } from './ListOfDocumentsWidget.vue'
|
3
|
+
export { default as DocumentsTable } from './DocumentsTable.vue'
|