@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.
- package/CHANGELOG.md +19 -0
- package/Env-testnet.ts +12 -0
- package/package.json +5 -5
- package/src/boot/init-stores.ts +8 -2
- package/src/desktops/User/model/index.ts +11 -10
- package/src/entities/Account/api/index.ts +11 -2
- package/src/entities/Account/model/store.ts +15 -5
- package/src/entities/Account/types/index.ts +9 -1
- package/src/entities/Session/model/store.ts +2 -3
- package/src/features/Account/UpdateAccount/api/index.ts +14 -0
- package/src/features/Account/UpdateAccount/index.ts +1 -0
- package/src/features/Account/UpdateAccount/model/index.ts +16 -0
- package/src/features/Branch/SelectBranch/ui/SelectBranchOverlay.vue +3 -2
- package/src/features/PaymentMethod/UpdateBankAccount/api/index.ts +1 -0
- package/src/features/PaymentMethod/UpdateBankAccount/model/index.ts +11 -4
- package/src/features/Request/CreateChildOrder/ui/CreateChildOrderButton/CreateChildOrderButton.vue +1 -1
- package/src/features/User/AddUser/ui/AddUserDialog/AddUserDialog.vue +3 -0
- package/src/features/User/Logout/model/index.ts +3 -3
- package/src/pages/Cooperative/ListOfBranches/ui/ListOfBranchesPage.vue +2 -4
- package/src/pages/Marketplace/OfferPage/ui/OfferPage.vue +2 -2
- package/src/shared/lib/composables/useEditableData.ts +1 -1
- package/src/shared/lib/consts/workspaces/index.ts +1 -0
- package/src/shared/ui/EditableEntrepreneurCard/EditableEntrepreneurCard.vue +170 -0
- package/src/shared/ui/EditableEntrepreneurCard/index.ts +1 -0
- package/src/shared/ui/EditableIndividualCard/EditableIndividualCard.vue +203 -0
- package/src/shared/ui/EditableIndividualCard/index.ts +1 -0
- package/src/shared/ui/EditableOrganizationCard/EditableOrganizationCard.vue +215 -0
- package/src/shared/ui/EditableOrganizationCard/index.ts +1 -0
- package/src/shared/ui/UserDataForm/OrganizationDataForm/OrganizationDataForm.vue +1 -0
- package/src/widgets/Cooperative/Participants/ListOfParticipants/ui/ListOfParticipantsWidget.vue +154 -71
- package/src/widgets/IndividualCard/ui/IndividualCard.vue +23 -23
- package/src/widgets/Request/RequestCard/RequestCard.vue +3 -3
@@ -142,29 +142,29 @@ div
|
|
142
142
|
)
|
143
143
|
</template>
|
144
144
|
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
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
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
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
|
-
|
166
|
-
|
167
|
-
|
165
|
+
const handleSave = (updatedIndividual: Cooperative.Users.IIndividualData) => {
|
166
|
+
console.log('Сохранено:', updatedIndividual);
|
167
|
+
};
|
168
168
|
|
169
|
-
|
170
|
-
|
169
|
+
const { editableData: data, isEditing, saveChanges, cancelChanges } = useEditableData(props.individual, handleSave);
|
170
|
+
</script>
|