From 059b635f47f28f1e198cf35b094e8a2fbe741275 Mon Sep 17 00:00:00 2001 From: Severin Beauvais Date: Tue, 5 Dec 2023 16:33:12 -0800 Subject: [PATCH 1/3] - app version = 5.6.10 - updated some validity calculations - moved ting validations to a mixin - generalized status computation - updated regular amalgation validity --- package-lock.json | 4 +- package.json | 4 +- .../Amalgamation/AmalgamatingBusinesses.vue | 20 ++- src/components/Amalgamation/BusinessTable.vue | 80 +++--------- .../amalgamation-state-interface.ts | 2 +- src/mixins/amalgamation-mixin.ts | 114 ++++++++++++++++++ src/mixins/index.ts | 1 + src/store/store.ts | 9 +- src/views/AmalgamationRegular/Information.vue | 12 +- .../AmalgamationRegular/ReviewConfirm.vue | 6 +- .../IncorporationDefineCompany.vue | 2 +- 11 files changed, 171 insertions(+), 83 deletions(-) create mode 100644 src/mixins/amalgamation-mixin.ts diff --git a/package-lock.json b/package-lock.json index 9c6804b59..d7da19105 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "business-create-ui", - "version": "5.6.9", + "version": "5.6.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "business-create-ui", - "version": "5.6.9", + "version": "5.6.10", "dependencies": { "@babel/compat-data": "^7.21.5", "@bcrs-shared-components/approval-type": "1.0.19", diff --git a/package.json b/package.json index b8580fdd4..04a0645d3 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { "name": "business-create-ui", - "version": "5.6.9", + "version": "5.6.10", "private": true, "appName": "Create UI", "sbcName": "SBC Common Components", "scripts": { "dev": "vite", "build": "vite build", - "serve": "vite preview", + "serve": "vite preview --port 8080", "lint": "eslint . --ext .js,.ts,.vue", "test:unit": "vitest run", "test:coverage": "vitest run --coverage" diff --git a/src/components/Amalgamation/AmalgamatingBusinesses.vue b/src/components/Amalgamation/AmalgamatingBusinesses.vue index 0d2131f41..e8dcae4b3 100644 --- a/src/components/Amalgamation/AmalgamatingBusinesses.vue +++ b/src/components/Amalgamation/AmalgamatingBusinesses.vue @@ -127,8 +127,6 @@ --> - - @@ -256,5 +265,4 @@ export default class AmalgamatingBusinesses extends Mixins(CommonMixin) { .v-btn:not(.v-btn--round).v-size--default { height: 44px; } - diff --git a/src/components/Amalgamation/BusinessTable.vue b/src/components/Amalgamation/BusinessTable.vue index ca49141ba..071320ae5 100644 --- a/src/components/Amalgamation/BusinessTable.vue +++ b/src/components/Amalgamation/BusinessTable.vue @@ -69,15 +69,16 @@