@coopenomics/desktop 2.2.8 → 2.2.10

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/Env-testnet.ts +12 -0
  3. package/package.json +5 -5
  4. package/src/boot/init-stores.ts +8 -2
  5. package/src/desktops/User/model/index.ts +11 -10
  6. package/src/entities/Account/api/index.ts +11 -2
  7. package/src/entities/Account/model/store.ts +15 -5
  8. package/src/entities/Account/types/index.ts +9 -1
  9. package/src/entities/Session/model/store.ts +2 -3
  10. package/src/features/Account/UpdateAccount/api/index.ts +14 -0
  11. package/src/features/Account/UpdateAccount/index.ts +1 -0
  12. package/src/features/Account/UpdateAccount/model/index.ts +16 -0
  13. package/src/features/Branch/SelectBranch/ui/SelectBranchOverlay.vue +3 -2
  14. package/src/features/PaymentMethod/UpdateBankAccount/api/index.ts +1 -0
  15. package/src/features/PaymentMethod/UpdateBankAccount/model/index.ts +11 -4
  16. package/src/features/Request/CreateChildOrder/ui/CreateChildOrderButton/CreateChildOrderButton.vue +1 -1
  17. package/src/features/User/AddUser/ui/AddUserDialog/AddUserDialog.vue +3 -0
  18. package/src/features/User/Logout/model/index.ts +3 -3
  19. package/src/pages/Cooperative/ListOfBranches/ui/ListOfBranchesPage.vue +2 -4
  20. package/src/pages/Marketplace/OfferPage/ui/OfferPage.vue +2 -2
  21. package/src/shared/lib/composables/useEditableData.ts +1 -1
  22. package/src/shared/lib/consts/workspaces/index.ts +1 -0
  23. package/src/shared/ui/EditableEntrepreneurCard/EditableEntrepreneurCard.vue +170 -0
  24. package/src/shared/ui/EditableEntrepreneurCard/index.ts +1 -0
  25. package/src/shared/ui/EditableIndividualCard/EditableIndividualCard.vue +203 -0
  26. package/src/shared/ui/EditableIndividualCard/index.ts +1 -0
  27. package/src/shared/ui/EditableOrganizationCard/EditableOrganizationCard.vue +215 -0
  28. package/src/shared/ui/EditableOrganizationCard/index.ts +1 -0
  29. package/src/shared/ui/UserDataForm/OrganizationDataForm/OrganizationDataForm.vue +1 -0
  30. package/src/widgets/Cooperative/Participants/ListOfParticipants/ui/ListOfParticipantsWidget.vue +154 -71
  31. package/src/widgets/IndividualCard/ui/IndividualCard.vue +23 -23
  32. package/src/widgets/Request/RequestCard/RequestCard.vue +3 -3
@@ -142,29 +142,29 @@ div
142
142
  )
143
143
  </template>
144
144
 
145
- <script lang="ts" setup>
146
- import { useEditableData } from 'src/shared/lib/composables/useEditableData';
147
- import { notEmpty, notEmptyPhone } from 'src/shared/lib/utils';
148
- import { validEmail } from 'src/shared/lib/utils/validEmailRule';
149
- import { validatePersonalName } from 'src/shared/lib/utils';
150
- import { EditableActions } from 'src/shared/ui/EditableActions';
151
- import { Cooperative } from 'cooptypes';
145
+ <script lang="ts" setup>
146
+ import { useEditableData } from 'src/shared/lib/composables/useEditableData';
147
+ import { notEmpty, notEmptyPhone } from 'src/shared/lib/utils';
148
+ import { validEmail } from 'src/shared/lib/utils/validEmailRule';
149
+ import { validatePersonalName } from 'src/shared/lib/utils';
150
+ import { EditableActions } from 'src/shared/ui/EditableActions';
151
+ import { Cooperative } from 'cooptypes';
152
152
 
153
- const props = defineProps({
154
- individual: {
155
- type: Object as () => Cooperative.Users.IIndividualData,
156
- required: true
157
- },
158
- readonly: {
159
- type: Boolean,
160
- required: false,
161
- default: true
162
- }
163
- });
153
+ const props = defineProps({
154
+ individual: {
155
+ type: Object as () => Cooperative.Users.IIndividualData,
156
+ required: true
157
+ },
158
+ readonly: {
159
+ type: Boolean,
160
+ required: false,
161
+ default: true
162
+ }
163
+ });
164
164
 
165
- const handleSave = (updatedIndividual: Cooperative.Users.IIndividualData) => {
166
- console.log('Сохранено:', updatedIndividual);
167
- };
165
+ const handleSave = (updatedIndividual: Cooperative.Users.IIndividualData) => {
166
+ console.log('Сохранено:', updatedIndividual);
167
+ };
168
168
 
169
- const { editableData: data, isEditing, saveChanges, cancelChanges } = useEditableData(props.individual, handleSave);
170
- </script>
169
+ const { editableData: data, isEditing, saveChanges, cancelChanges } = useEditableData(props.individual, handleSave);
170
+ </script>
@@ -7,10 +7,10 @@ q-card(flat ).no-select
7
7
  span Осталось:
8
8
  q-badge(size="lg").q-ml-xs {{ request.remain_units }} единиц
9
9
  div
10
- span Цена:
10
+ span Цена:
11
11
  q-badge(size="lg").q-ml-xs {{ request.unit_cost }}
12
-
13
-
12
+
13
+
14
14
  </template>
15
15
 
16
16
  <script setup lang="ts">