From 23a84721a95de8c833db0d5b6d1c00c38b8278a2 Mon Sep 17 00:00:00 2001 From: Travis Semple Date: Thu, 12 Oct 2023 10:03:32 -0700 Subject: [PATCH 01/19] Add small rendering delay for Firefox, that way the review and confirm scrolls to the top of the screen. (#535) --- src/components/ViewWrapper.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/ViewWrapper.vue b/src/components/ViewWrapper.vue index 6bf220fc..bb171ddd 100644 --- a/src/components/ViewWrapper.vue +++ b/src/components/ViewWrapper.vue @@ -297,6 +297,9 @@ export default class ViewWrapper extends Mixins(CommonMixin, FilingTemplateMixin // Reset global flag this.setComponentValidate(false) + // Extra wait for firefox, otherwise it scrolls too early. + await this.$nextTick() + // We don't change views, just interchange components, so scroll to top for better UX. await this.scrollToTop(document.getElementById('app')) } From 90ee1f5cb00c58bd4a6e71926268f50ea6cb2137 Mon Sep 17 00:00:00 2001 From: Travis Semple Date: Mon, 16 Oct 2023 13:46:15 -0700 Subject: [PATCH 02/19] 17347 - Add in directors for corrections for CP. (#536) * Add in directors for corrections for CP. * Fix unit tests for director change for CP. * Add in COOP. --- .../PeopleAndRoles/ListPeopleAndRoles.vue | 4 + .../common/PeopleAndRoles/PeopleAndRoles.vue | 78 +++++++++- src/resources/Correction/CP.ts | 4 + src/store/store.ts | 2 + src/views/Correction/CoopCorrection.vue | 7 +- tests/unit/CoopCorrection.spec.ts | 142 +++++++++++++++++- tests/unit/PeopleAndRoles.spec.ts | 48 ++++++ 7 files changed, 275 insertions(+), 10 deletions(-) diff --git a/src/components/common/PeopleAndRoles/ListPeopleAndRoles.vue b/src/components/common/PeopleAndRoles/ListPeopleAndRoles.vue index 083e29d8..1ee45db9 100644 --- a/src/components/common/PeopleAndRoles/ListPeopleAndRoles.vue +++ b/src/components/common/PeopleAndRoles/ListPeopleAndRoles.vue @@ -569,6 +569,7 @@ export default class ListPeopleAndRoles extends Mixins(CommonMixin, OrgPersonMix @Getter(useStore) hideChangeButtonForSoleProps!: boolean @Getter(useStore) isAlterationFiling!: boolean @Getter(useStore) isBenBcCccUlcCorrectionFiling!: boolean + @Getter(useStore) isCoopCorrectionFiling!: boolean @Getter(useStore) isCorrectionFiling!: boolean @Getter(useStore) isFirmChangeFiling!: boolean @Getter(useStore) isFirmConversionFiling!: boolean @@ -630,6 +631,9 @@ export default class ListPeopleAndRoles extends Mixins(CommonMixin, OrgPersonMix if (this.isBenBcCccUlcCorrectionFiling) { return true } + if (this.isCoopCorrectionFiling) { + return true + } if (this.isFirmCorrectionFiling) { // cannot remove proprietor/partner return false diff --git a/src/components/common/PeopleAndRoles/PeopleAndRoles.vue b/src/components/common/PeopleAndRoles/PeopleAndRoles.vue index 2fed287c..d39f7b98 100644 --- a/src/components/common/PeopleAndRoles/PeopleAndRoles.vue +++ b/src/components/common/PeopleAndRoles/PeopleAndRoles.vue @@ -102,7 +102,7 @@
This application must include the following: @@ -124,15 +124,49 @@ - + +
  • + + mdi-check + + + mdi-close + + The majority of Directors must reside in Canada +
  • +
  • + + mdi-check + + + mdi-close + + At least one Director must reside in BC +
  • !this.wasRemoved(people)) + .filter(people => people.roles.some(role => role.roleType === RoleTypes.DIRECTOR)) + + const numberOfDirectorsResidingInCanada = existingDirectors + .filter(people => people.mailingAddress.addressCountry === 'CA') + .length + + const numberOfDirectorsResidingOutsideCanada = existingDirectors + .filter(people => people.mailingAddress.addressCountry !== 'CA') + .length + + return numberOfDirectorsResidingInCanada > numberOfDirectorsResidingOutsideCanada + } + + /** True when at least one Director resides in BC. CP only for now. */ + get haveOneDirectorResideInBC (): boolean { + const numberOfDirectorsResidingInBC = this.getOrgPeople + .filter(people => !this.wasRemoved(people)) + .filter(people => people.roles.some(role => role.roleType === RoleTypes.DIRECTOR)) + .filter(people => people.mailingAddress.addressRegion === 'BC') + .length + + return numberOfDirectorsResidingInBC >= 1 + } + /** True when the required applicant count is met. */ get hasApplicant (): boolean { return this.hasRole(RoleTypes.APPLICANT, 1, CompareModes.EXACT) @@ -426,6 +489,11 @@ export default class PeopleAndRoles extends Mixins(CommonMixin, DateMixin, OrgPe if (this.isBcCompany || this.isBenefitCompany || this.isBcCcc || this.isBcUlcCompany) { return this.haveMinimumDirectors } + if (this.isCoopCorrectionFiling) { + return this.haveMinimumDirectors && + this.haveMajorityDirectorsInCanada && + this.haveOneDirectorResideInBC + } return false } if (this.isRestorationFiling) { diff --git a/src/resources/Correction/CP.ts b/src/resources/Correction/CP.ts index 4a56ed50..f186bc87 100644 --- a/src/resources/Correction/CP.ts +++ b/src/resources/Correction/CP.ts @@ -22,6 +22,10 @@ export const CpCorrectionResource: ResourceIF = { 'business and dissolve this business once the new business is registered.', addressChangeInfo: 'To change addresses, please use the Change feature in the' + ' Office Addresses list on your business dashboard.', + orgPersonInfo: { + orgPersonLabel: 'Directors', + subtitle: null // not used + }, nameRequestTypes: [ NrRequestActionCodes.CHANGE_NAME ], diff --git a/src/store/store.ts b/src/store/store.ts index 7a7b61d1..01e97c97 100644 --- a/src/store/store.ts +++ b/src/store/store.ts @@ -593,6 +593,7 @@ export const useStore = defineStore('store', { this.hasAssociationTypeChanged || this.hasSpecialResolutionMemorandumChanged || this.haveOfficeAddressesChanged || + this.havePeopleAndRolesChanged || this.hasSpecialResolutionRulesChanged || this.hasSpecialResolutionResolutionChanged ) @@ -759,6 +760,7 @@ export const useStore = defineStore('store', { this.getFlagsCompanyInfo.isValidAddress && this.getFlagsCompanyInfo.isValidAssociationType && this.getFlagsCompanyInfo.isValidContactInfo && + this.getFlagsCompanyInfo.isValidOrgPersons && this.getFlagsCompanyInfo.isValidRules && this.getFlagsCompanyInfo.isValidMemorandum && this.getFlagsCompanyInfo.isValidSpecialResolution && diff --git a/src/views/Correction/CoopCorrection.vue b/src/views/Correction/CoopCorrection.vue index c99cb324..3161ce9c 100644 --- a/src/views/Correction/CoopCorrection.vue +++ b/src/views/Correction/CoopCorrection.vue @@ -29,6 +29,8 @@ + + @@ -74,8 +76,8 @@ import { Component, Emit, Mixins, Prop, Watch } from 'vue-property-decorator' import { SpecialResolutionSummary, Resolution } from '@/components/SpecialResolution' import { AssociationType, BusinessContactInfo, BusinessType, CertifySection, CompletingParty, CourtOrderPoa, - CurrentDirectors, Detail, DocumentsDelivery, EntityName, FolioInformation, OfficeAddresses, RecognitionDateTime, - StaffPayment, TransactionalFolioNumber, YourCompanyWrapper } from '@/components/common/' + CurrentDirectors, Detail, DocumentsDelivery, EntityName, FolioInformation, OfficeAddresses, PeopleAndRoles, + RecognitionDateTime, StaffPayment, TransactionalFolioNumber, YourCompanyWrapper } from '@/components/common/' import { CommonMixin, DateMixin, FeeMixin, FilingTemplateMixin } from '@/mixins/' import ViewWrapper from '@/components/ViewWrapper.vue' import Rules from '@/components/SpecialResolution/Rules.vue' @@ -104,6 +106,7 @@ import { FilingDataIF } from '@bcrs-shared-components/interfaces' EntityName, FolioInformation, OfficeAddresses, + PeopleAndRoles, RecognitionDateTime, SpecialResolutionSummary, StaffPayment, diff --git a/tests/unit/CoopCorrection.spec.ts b/tests/unit/CoopCorrection.spec.ts index d3929c20..73b25981 100644 --- a/tests/unit/CoopCorrection.spec.ts +++ b/tests/unit/CoopCorrection.spec.ts @@ -4,6 +4,7 @@ import flushPromises from 'flush-promises' import { mount } from '@vue/test-utils' import { AssociationType, BusinessContactInfo, CertifySection, CompletingParty, CourtOrderPoa, Detail, EntityName, OfficeAddresses, + PeopleAndRoles, RecognitionDateTime, StaffPayment, YourCompanyWrapper } from '@/components/common/' import CoopCorrection from '@/views/Correction/CoopCorrection.vue' @@ -194,9 +195,141 @@ describe('Coop Correction component', () => { ]) LegalServices.fetchParties = vi.fn().mockResolvedValue([ - { roles: [{ appointmentDate: '2022-04-01', roleType: 'Completing Party' }] }, - { roles: [{ appointmentDate: '2022-04-01', roleType: 'Incorporator' }] }, - { roles: [{ appointmentDate: '2022-05-01', roleType: 'Director' }] } + { + officer: { + id: 1, + firstName: 'Joe', + lastName: 'Swanson', + middleName: 'P', + organizationName: '', + partyType: 'person', + email: 'completing-party@example.com' + }, + deliveryAddress: { + 'addressCity': 'Scarborough', + 'addressCountry': 'CA', + 'addressRegion': 'BC', + 'addressType': 'mailing', + 'deliveryInstructions': null, + 'id': 2660328, + 'postalCode': 'M1B 4B9', + 'streetAddress': '34-70 Alford Cres', + 'streetAddressAdditional': '' + }, + mailingAddress: { + 'addressCity': 'Scarborough', + 'addressCountry': 'CA', + 'addressRegion': 'BC', + 'addressType': 'mailing', + 'deliveryInstructions': null, + 'id': 2660328, + 'postalCode': 'M1B 4B9', + 'streetAddress': '34-70 Alford Cres', + 'streetAddressAdditional': '' + }, + roles: [{ appointmentDate: '2022-04-01', roleType: 'Incorporator' }] }, + { + officer: { + id: 1, + firstName: 'Joe', + lastName: 'Swanson', + middleName: 'P', + organizationName: '', + partyType: 'person', + email: 'completing-party@example.com' + }, + deliveryAddress: { + 'addressCity': 'Scarborough', + 'addressCountry': 'CA', + 'addressRegion': 'BC', + 'addressType': 'mailing', + 'deliveryInstructions': null, + 'id': 2660328, + 'postalCode': 'M1B 4B9', + 'streetAddress': '34-70 Alford Cres', + 'streetAddressAdditional': '' + }, + mailingAddress: { + 'addressCity': 'Scarborough', + 'addressCountry': 'CA', + 'addressRegion': 'BC', + 'addressType': 'mailing', + 'deliveryInstructions': null, + 'id': 2660328, + 'postalCode': 'M1B 4B9', + 'streetAddress': '34-70 Alford Cres', + 'streetAddressAdditional': '' + }, + roles: [{ appointmentDate: '2022-05-01', roleType: 'Director' }] + }, + { + officer: { + id: 21, + firstName: 'Joe2', + lastName: 'Swanson', + middleName: 'P', + organizationName: '', + partyType: 'person', + email: 'completing-party@example.com' + }, + deliveryAddress: { + 'addressCity': 'Scarborough', + 'addressCountry': 'CA', + 'addressRegion': 'BC', + 'addressType': 'mailing', + 'deliveryInstructions': null, + 'id': 2660328, + 'postalCode': 'M1B 4B9', + 'streetAddress': '34-70 Alford Cres', + 'streetAddressAdditional': '' + }, + mailingAddress: { + 'addressCity': 'Scarborough', + 'addressCountry': 'CA', + 'addressRegion': 'BC', + 'addressType': 'mailing', + 'deliveryInstructions': null, + 'id': 2660328, + 'postalCode': 'M1B 4B9', + 'streetAddress': '34-70 Alford Cres', + 'streetAddressAdditional': '' + }, + roles: [{ appointmentDate: '2022-05-01', roleType: 'Director' }] + }, + { + officer: { + id: 33, + firstName: 'Joef', + lastName: 'Swanson', + middleName: 'P', + organizationName: '', + partyType: 'person', + email: 'completing-party@example.com' + }, + deliveryAddress: { + 'addressCity': 'Scarborough', + 'addressCountry': 'CA', + 'addressRegion': 'BC', + 'addressType': 'mailing', + 'deliveryInstructions': null, + 'id': 2660328, + 'postalCode': 'M1B 4B9', + 'streetAddress': '34-70 Alford Cres', + 'streetAddressAdditional': '' + }, + mailingAddress: { + 'addressCity': 'Scarborough', + 'addressCountry': 'CA', + 'addressRegion': 'BC', + 'addressType': 'mailing', + 'deliveryInstructions': null, + 'id': 2660328, + 'postalCode': 'M1B 4B9', + 'streetAddress': '34-70 Alford Cres', + 'streetAddressAdditional': '' + }, + roles: [{ appointmentDate: '2022-05-01', roleType: 'Director' }] + } ]) wrapper = mount(CoopCorrection, { @@ -244,6 +377,7 @@ describe('Coop Correction component', () => { expect(wrapper.findComponent(EntityName).isVisible()).toBe(true) expect(wrapper.findComponent(AssociationType).isVisible()).toBe(true) expect(wrapper.findComponent(BusinessContactInfo).isVisible()).toBe(true) + expect(wrapper.findComponent(PeopleAndRoles).isVisible()).toBe(true) expect(wrapper.findComponent(Rules).isVisible()).toBe(true) expect(wrapper.findComponent(Memorandum).isVisible()).toBe(true) expect(wrapper.findComponent(Resolution).isVisible()).toBe(true) @@ -261,6 +395,7 @@ describe('Coop Correction component', () => { expect(wrapper.findComponent(EntityName).isVisible()).toBe(true) expect(wrapper.findComponent(AssociationType).isVisible()).toBe(true) expect(wrapper.findComponent(BusinessContactInfo).isVisible()).toBe(true) + expect(wrapper.findComponent(PeopleAndRoles).isVisible()).toBe(true) expect(wrapper.findComponent(Rules).isVisible()).toBe(true) expect(wrapper.findComponent(Memorandum).isVisible()).toBe(true) expect(wrapper.findComponent(Resolution).isVisible()).toBe(true) @@ -299,6 +434,7 @@ describe('Coop Correction component', () => { await Vue.nextTick() expect(store.getFlagsCompanyInfo.isValidAssociationType).toBe(true) + expect(store.getFlagsCompanyInfo.isValidOrgPersons).toBe(true) expect(store.getFlagsCompanyInfo.isValidRules).toBe(true) expect(store.getFlagsCompanyInfo.isValidMemorandum).toBe(true) expect(store.getFlagsCompanyInfo.isValidSpecialResolution).toBe(true) diff --git a/tests/unit/PeopleAndRoles.spec.ts b/tests/unit/PeopleAndRoles.spec.ts index e5031961..d47fd4d4 100644 --- a/tests/unit/PeopleAndRoles.spec.ts +++ b/tests/unit/PeopleAndRoles.spec.ts @@ -526,4 +526,52 @@ describe('People And Roles component for Change of Registration', () => { ] as any expect(store.hideChangeButtonForSoleProps).toBe(false) }) + + it('test majority of directors in Canada for CP', () => { + const wrapper = wrapperFactory() + store.stateModel.tombstone.entityType = CorpTypeCd.COOP + store.stateModel.peopleAndRoles.orgPeople = [ + { + officer: { partyType: 'organization' }, + mailingAddress: { + addressCountry: 'US' + }, + roles: [{ roleType: 'Director' }] + }, + { + officer: { partyType: 'organization' }, + mailingAddress: { + addressCountry: 'US' + }, + roles: [{ roleType: 'Director' }] + }, + { + officer: { partyType: 'organization' }, + mailingAddress: { + addressCountry: 'CA' + }, + roles: [{ roleType: 'Director' }] + } + ] as any + expect(wrapper.vm.haveMajorityDirectorsInCanada).toBe(false) + store.stateModel.peopleAndRoles.orgPeople[1].mailingAddress.addressCountry = 'CA' + expect(wrapper.vm.haveMajorityDirectorsInCanada).toBe(true) + }) + + it('test least one director in BC for CP', () => { + const wrapper = wrapperFactory() + store.stateModel.tombstone.entityType = CorpTypeCd.COOP + store.stateModel.peopleAndRoles.orgPeople = [ + { + officer: { partyType: 'organization' }, + mailingAddress: { + addressRegion: 'AB' + }, + roles: [{ roleType: 'Director' }] + } + ] as any + expect(wrapper.vm.haveOneDirectorResideInBC).toBe(false) + store.stateModel.peopleAndRoles.orgPeople[0].mailingAddress.addressRegion = 'BC' + expect(wrapper.vm.haveOneDirectorResideInBC).toBe(true) + }) }) From 5bd343a3b97ae1cf289f5398c64ab8476f1135f5 Mon Sep 17 00:00:00 2001 From: Travis Semple Date: Thu, 19 Oct 2023 13:14:24 -0700 Subject: [PATCH 03/19] Add in appointmentDate for co-op corrections. (#537) --- src/components/common/PeopleAndRoles/OrgPerson.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/common/PeopleAndRoles/OrgPerson.vue b/src/components/common/PeopleAndRoles/OrgPerson.vue index 9653aa63..04467b87 100644 --- a/src/components/common/PeopleAndRoles/OrgPerson.vue +++ b/src/components/common/PeopleAndRoles/OrgPerson.vue @@ -494,6 +494,7 @@ export default class OrgPerson extends Mixins(CommonMixin, OrgPersonMixin) { @Getter(useStore) getResource!: ResourceIF @Getter(useStore) isAlterationFiling!: boolean @Getter(useStore) isBenBcCccUlcCorrectionFiling!: boolean + @Getter(useStore) isCoopCorrectionFiling!: boolean @Getter(useStore) isFirmCorrectionFiling!: boolean @Getter(useStore) isFirm!: boolean @Getter(useStore) isFirmChangeFiling!: boolean @@ -851,7 +852,9 @@ export default class OrgPerson extends Mixins(CommonMixin, OrgPersonMixin) { } person.deliveryAddress = { ...this.inProgressDeliveryAddress } } - if (this.isBenBcCccUlcCorrectionFiling) { + // Note: For corrections if the appointmentDate isn't included - you may run into some issues where adding a new + // director as it wont show up in the parties or directors call. + if (this.isBenBcCccUlcCorrectionFiling || this.isCoopCorrectionFiling) { person.roles = this.setPersonRoles(this.orgPerson) } else { person.roles = this.orgPerson.roles From ee0b986b66be3b34ba4c5c16b72a2b85458dee61 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Oct 2023 10:21:46 -0700 Subject: [PATCH 04/19] Bump postcss from 8.4.30 to 8.4.31 (#533) Bumps [postcss](https://github.com/postcss/postcss) from 8.4.30 to 8.4.31. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.4.30...8.4.31) --- updated-dependencies: - dependency-name: postcss dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index ab252fbe..d354223d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -68,7 +68,7 @@ "@typescript-eslint/eslint-plugin": "^5.59.2", "@typescript-eslint/parser": "^5.59.2", "@vitejs/plugin-vue2": "^2.2.0", - "@volar-plugins/vetur": "latest", + "@volar-plugins/vetur": "*", "@vue/eslint-config-standard": "^4.0.0", "@vue/eslint-config-typescript": "^9.1.0", "@vue/test-utils": "^1.3.5", @@ -5554,9 +5554,9 @@ } }, "node_modules/postcss": { - "version": "8.4.30", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.30.tgz", - "integrity": "sha512-7ZEao1g4kd68l97aWG/etQKPKq07us0ieSZ2TnFDk11i0ZfDW2AwKHYU8qv4MZKqN2fdBfg+7q0ES06UA73C1g==", + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", "funding": [ { "type": "opencollective", From fd95f6a47b3d16d4c96a415ee7ff29558d3cdbe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9verin=20Beauvais?= Date: Thu, 9 Nov 2023 11:39:18 -0800 Subject: [PATCH 05/19] - app version = 4.7.5 (#541) - moved director workaround to LegalServices - moved parties workaround to LegalServices - removed workaround from Change - removed workaround from Conversion - updated unit tests --- package-lock.json | 2 +- src/services/legal-services.ts | 19 ++++++++++++++++++- src/views/Change.vue | 13 +------------ src/views/Conversion.vue | 13 +------------ tests/unit/legal-services.spec.ts | 10 +++++----- 5 files changed, 26 insertions(+), 31 deletions(-) diff --git a/package-lock.json b/package-lock.json index d354223d..b95e6d94 100644 --- a/package-lock.json +++ b/package-lock.json @@ -68,7 +68,7 @@ "@typescript-eslint/eslint-plugin": "^5.59.2", "@typescript-eslint/parser": "^5.59.2", "@vitejs/plugin-vue2": "^2.2.0", - "@volar-plugins/vetur": "*", + "@volar-plugins/vetur": "latest", "@vue/eslint-config-standard": "^4.0.0", "@vue/eslint-config-typescript": "^9.1.0", "@vue/test-utils": "^1.3.5", diff --git a/src/services/legal-services.ts b/src/services/legal-services.ts index b7d01128..7ba2b798 100644 --- a/src/services/legal-services.ts +++ b/src/services/legal-services.ts @@ -202,6 +202,14 @@ export default class LegalServices { if (directors) { // convert director list to org-person list return directors.map(director => { + // WORK-AROUND WARNING !!! + // convert directors from "middleInitial" to "middleName" + const middleInitial = director.officer['middleInitial'] + if (middleInitial !== undefined) { + director.officer.middleName = middleInitial + delete director.officer['middleInitial'] + } + const orgPerson: OrgPersonIF = { deliveryAddress: director.deliveryAddress, mailingAddress: director.mailingAddress, @@ -236,7 +244,16 @@ export default class LegalServices { .then(response => { const parties = response?.data?.parties if (parties) { - return parties + // WORK-AROUND WARNING !!! + // convert parties from "middleInitial" to "middleName" + return parties.map(party => { + const middleInitial = party.officer['middleInitial'] + if (middleInitial !== undefined) { + party.officer.middleName = middleInitial + delete party.officer['middleInitial'] + } + return party + }) } // eslint-disable-next-line no-console console.log('fetchParties() error - invalid response =', response) diff --git a/src/views/Change.vue b/src/views/Change.vue index 1e150d6e..e94bdbcf 100644 --- a/src/views/Change.vue +++ b/src/views/Change.vue @@ -285,22 +285,11 @@ export default class Change extends Mixins(CommonMixin, FeeMixin, FilingTemplate if (items.length !== 4) throw new Error('Failed to fetch entity snapshot') - // WORK-AROUND WARNING !!! - // convert orgPersons from "middleInitial" to "middleName" - const orgPersons = items[3].map(orgPerson => { - const middleInitial = orgPerson.officer['middleInitial'] - if (middleInitial !== undefined) { - orgPerson.officer.middleName = middleInitial - delete orgPerson.officer['middleInitial'] - } - return orgPerson - }) - return { businessInfo: items[0], authInfo: items[1], addresses: items[2], - orgPersons + orgPersons: items[3] } as EntitySnapshotIF } diff --git a/src/views/Conversion.vue b/src/views/Conversion.vue index 3a2666d2..a30c3a9a 100644 --- a/src/views/Conversion.vue +++ b/src/views/Conversion.vue @@ -240,22 +240,11 @@ export default class Conversion extends Mixins(CommonMixin, FeeMixin, FilingTemp throw new Error('Failed to fetch entity addresses') }) - // WORK-AROUND WARNING !!! - // convert orgPersons from "middleInitial" to "middleName" - const orgPersons = items[2].map(orgPerson => { - const middleInitial = orgPerson.officer['middleInitial'] - if (middleInitial !== undefined) { - orgPerson.officer.middleName = middleInitial - delete orgPerson.officer['middleInitial'] - } - return orgPerson - }) - return { businessInfo: items[0], authInfo: items[1], addresses, - orgPersons + orgPersons: items[2] } as EntitySnapshotIF } /** Emits Fetch Error event. */ diff --git a/tests/unit/legal-services.spec.ts b/tests/unit/legal-services.spec.ts index 7f3b7238..ae4851b0 100644 --- a/tests/unit/legal-services.spec.ts +++ b/tests/unit/legal-services.spec.ts @@ -138,8 +138,8 @@ describe('Legal Services', () => { it('fetches directors correctly', async () => { const DIRECTORS = [ - { appointmentDate: '2022-04-01' }, - { appointmentDate: '2022-05-01' } + { appointmentDate: '2022-04-01', officer: {} }, + { appointmentDate: '2022-05-01', officer: {} } ] const ORGPERSONS = [ { roles: [{ appointmentDate: '2022-04-01', roleType: 'Director' }] }, @@ -160,9 +160,9 @@ describe('Legal Services', () => { it('fetches parties correctly', async () => { const PARTIES = [ - { roles: [{ appointmentDate: '2022-04-01', roleType: 'Completing Party' }] }, - { roles: [{ appointmentDate: '2022-04-01', roleType: 'Incorporator' }] }, - { roles: [{ appointmentDate: '2022-05-01', roleType: 'Director' }] } + { officer: {}, roles: [{ appointmentDate: '2022-04-01', roleType: 'Completing Party' }] }, + { officer: {}, roles: [{ appointmentDate: '2022-04-01', roleType: 'Incorporator' }] }, + { officer: {}, roles: [{ appointmentDate: '2022-05-01', roleType: 'Director' }] } ] // mock endpoint From e1722d4a859544cb57d4ef762f514ca6197ea7a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9verin=20Beauvais?= Date: Thu, 9 Nov 2023 13:23:37 -0800 Subject: [PATCH 06/19] - app version = 4.7.6 (#542) - deleted obsolete "alteration-ui-enabled" FF - deleted obsolete "change-ui-enabled" FF - deleted obsolete "conversion-ui-enabled" FF - removed flag usage from Alteration.vue - removed flag usage from Change.vue - removed flag usage from Conversion.vue - removed flag usage from SpecialResolution.vue --- src/utils/feature-flag-utils.ts | 3 --- src/views/Alteration.vue | 9 --------- src/views/Change.vue | 9 --------- src/views/Conversion.vue | 9 --------- src/views/SpecialResolution.vue | 9 --------- 5 files changed, 39 deletions(-) diff --git a/src/utils/feature-flag-utils.ts b/src/utils/feature-flag-utils.ts index b4adf178..0c20652e 100644 --- a/src/utils/feature-flag-utils.ts +++ b/src/utils/feature-flag-utils.ts @@ -8,10 +8,7 @@ declare const window: any * Uses "business-edit" project (per LD client id in config). */ export const defaultFlagSet: LDFlagSet = { - 'alteration-ui-enabled': false, 'banner-text': '', // by default, there is no banner text - 'change-ui-enabled': false, - 'conversion-ui-enabled': false, 'restoration-ui-enabled': false, 'sentry-enable': false, // by default, no sentry logs 'supported-correction-entities': [], diff --git a/src/views/Alteration.vue b/src/views/Alteration.vue index 1335cc80..f520e75e 100644 --- a/src/views/Alteration.vue +++ b/src/views/Alteration.vue @@ -126,7 +126,6 @@ diff --git a/src/components/SpecialResolution/ResolutionEditor.vue b/src/components/SpecialResolution/ResolutionEditor.vue index 351d9d0c..81784783 100644 --- a/src/components/SpecialResolution/ResolutionEditor.vue +++ b/src/components/SpecialResolution/ResolutionEditor.vue @@ -27,6 +27,7 @@ >
    @@ -166,7 +167,7 @@ export default class ResolutionEditor extends Vue { @Action(useStore) setSpecialResolution!: (x: SpecialResolutionIF) => void @Action(useStore) setSpecialResolutionValid!: (x: boolean) => void - + @Getter(useStore) isSpecialResolutionFiling: boolean @Prop({ default: false }) readonly isEditing!: boolean $refs!: { @@ -179,6 +180,7 @@ export default class ResolutionEditor extends Vue { resolutionDateTextOriginal = '' // for undo for corrections. isResolutionhasData = true // for resolution error text isResolutionDateValid = true // for resolution error text + datePickerKey = 0 // for undo for corrections. extensions = [ History, @@ -285,23 +287,17 @@ export default class ResolutionEditor extends Vue { /* Undo event called from parent via ref. */ async undoToStore (): Promise { - this.resolution = this.resolutionOriginal - this.resolutionDateText = this.resolutionDateTextOriginal + this.resolution = '' + this.resolutionDateText = '' this.emitDate(this.resolutionDateText) + this.datePickerKey++ await this.setSpecialResolution({ ...this.getSpecialResolution, - resolutionDate: this.resolutionDateText, - resolution: this.resolution + resolutionDate: this.resolutionDateTextOriginal, + resolution: this.resolutionOriginal }) } - @Watch('isEditing') - onIsEditingChange (val: boolean): void { - if (!val) return - this.resolutionOriginal = this.resolution - this.resolutionDateTextOriginal = this.resolutionDateText - } - @Watch('resolution') async onResolutionChange () : Promise { if (this.getComponentValidate) { @@ -314,10 +310,12 @@ export default class ResolutionEditor extends Vue { * Note: The data is loaded before the component is created. */ created () { - this.resolution = this.getSpecialResolution.resolution || '' - this.resolutionDateText = this.getSpecialResolution.resolutionDate || '' - this.resolutionOriginal = this.resolution - this.resolutionDateTextOriginal = this.resolutionDateText + if (this.isSpecialResolutionFiling) { + this.resolution = this.getSpecialResolution.resolution || '' + this.resolutionDateText = this.getSpecialResolution.resolutionDate || '' + } + this.resolutionOriginal = this.getSpecialResolution.resolution + this.resolutionDateTextOriginal = this.getSpecialResolution.resolutionDate } /** Used to trigger validate from outside of component. */ diff --git a/src/components/SpecialResolution/SigningParty.vue b/src/components/SpecialResolution/SigningParty.vue index 21cec16d..5d7cb3da 100644 --- a/src/components/SpecialResolution/SigningParty.vue +++ b/src/components/SpecialResolution/SigningParty.vue @@ -1,7 +1,7 @@ + + Upload a new full set of the memorandum PDF document + + +
    - void @Action(useStore) setSpecialResolutionMemorandumValid!: (x: boolean) => void @@ -281,6 +295,7 @@ export default class Memorandum extends Vue { $refs!: { memorandumForm: FormIF + uploadMemorandumRef: FormIF } hasChanged = false @@ -332,29 +347,54 @@ export default class Memorandum extends Vue { }) } + /** Initial memorandum for the business, this is loaded in when undo or cancel is pressed. */ + initialMemorandum (): RulesMemorandumIF { + const documentsInfo = this.getEntitySnapshot?.businessDocuments?.documentsInfo + const documents = this.getEntitySnapshot?.businessDocuments?.documents + return { + includedInResolution: false, + key: documentsInfo?.certifiedMemorandum?.key || null, + name: documentsInfo?.certifiedMemorandum?.name, + previouslyInResolution: documentsInfo?.certifiedMemorandum?.includedInResolution, + uploaded: documentsInfo?.certifiedMemorandum?.uploaded, + url: documents?.certifiedMemorandum + } + } + resetMemorandum (): void { this.hasChanged = false this.isEditing = false this.setSpecialResolutionMemorandum({ - ...this.getSpecialResolutionMemorandum, - includedInResolution: false + ...this.initialMemorandum() }) } - saveMemorandum (): void { + async saveMemorandum (): Promise { if (this.validate(false)) { this.hasChanged = true this.isEditing = false - this.setSpecialResolutionMemorandum({ - ...this.getSpecialResolutionMemorandum, - includedInResolution: true - }) + let memorandum = this.getSpecialResolutionMemorandum + if (!this.hasResolutionOnFile) { + memorandum = { + ...memorandum, + ...this.$refs.uploadMemorandumRef.getNewRulesNameAndKey(), + includedInResolution: false, + uploaded: DateUtilities.dateToApi(new Date()), + url: null // No URL, because we can't currently re-download drafts securely from Minio. + } + } else { + memorandum = { + ...this.getSpecialResolutionMemorandum, + includedInResolution: true + } + } + await this.setSpecialResolutionMemorandum(memorandum) } } validate (includeIsEditing: boolean): boolean { // This validates the checkbox. - let memorandumValid = this.$refs.memorandumForm.validate() + let memorandumValid = this.$refs.memorandumForm.validate() || !this.hasResolutionOnFile if (includeIsEditing) { memorandumValid = memorandumValid && !this.isEditing } diff --git a/src/components/SpecialResolution/Rules.vue b/src/components/SpecialResolution/Rules.vue index 592c4dc6..e8c1e526 100644 --- a/src/components/SpecialResolution/Rules.vue +++ b/src/components/SpecialResolution/Rules.vue @@ -89,13 +89,18 @@
    You can update the rules of association in one of the following ways:
    - +
    - -
    + +
    Upload a new full set of the rules PDF document - {{ uploadDropdown ? 'mdi-menu-up' : 'mdi-menu-down' }} + + {{ uploadDropdown ? 'mdi-menu-up' : 'mdi-menu-down' }} + - @@ -189,7 +197,10 @@
    - + void @Action(useStore) setSpecialResolutionRules!: (x: RulesMemorandumIF) => void @@ -449,7 +461,7 @@ export default class Rules extends Vue { this.hasChanged = true this.isEditing = false let rules = this.getSpecialResolutionRules - if (this.uploadDropdown) { + if (this.uploadDropdown || !this.hasResolutionOnFile) { rules = { ...rules, ...this.$refs.uploadRulesRef.getNewRulesNameAndKey(), @@ -469,7 +481,9 @@ export default class Rules extends Vue { validate (includeIsEditing: boolean): boolean { // Show error in section, if no option is selected. - this.noOptionSelected = this.isEditing && !this.rulesInResolution && !this.rulesInUpload + // No options when there is no resolution on file. + this.noOptionSelected = this.hasResolutionOnFile + ? (this.isEditing && !this.rulesInResolution && !this.rulesInUpload) : false // Validate the form. let rulesValid = this.$refs.rulesForm.validate() && !this.noOptionSelected // If we have the rules upload, validate the file. diff --git a/src/components/SpecialResolution/UploadRules.vue b/src/components/SpecialResolution/UploadRulesOrMemorandum.vue similarity index 92% rename from src/components/SpecialResolution/UploadRules.vue rename to src/components/SpecialResolution/UploadRulesOrMemorandum.vue index 4f6da544..a35337e5 100644 --- a/src/components/SpecialResolution/UploadRules.vue +++ b/src/components/SpecialResolution/UploadRulesOrMemorandum.vue @@ -45,7 +45,7 @@ From f8611e1cc49b683ec0767103fa1eb7c81048ea77 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 20 Jan 2024 14:55:24 -0800 Subject: [PATCH 18/19] Bump vite from 4.3.9 to 4.5.2 (#555) Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.3.9 to 4.5.2. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v4.5.2/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v4.5.2/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:development ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 205 ++++++++++++++++++++++++---------------------- package.json | 2 +- 2 files changed, 107 insertions(+), 100 deletions(-) diff --git a/package-lock.json b/package-lock.json index 423f038e..50dd9735 100644 --- a/package-lock.json +++ b/package-lock.json @@ -68,7 +68,7 @@ "@typescript-eslint/eslint-plugin": "^5.59.2", "@typescript-eslint/parser": "^5.59.2", "@vitejs/plugin-vue2": "^2.2.0", - "@volar-plugins/vetur": "latest", + "@volar-plugins/vetur": "*", "@vue/eslint-config-standard": "^4.0.0", "@vue/eslint-config-typescript": "^9.1.0", "@vue/test-utils": "^1.3.5", @@ -80,7 +80,7 @@ "sass": "~1.32.13", "sinon": "^14.0.2", "typescript": "4.5.5", - "vite": "4.3.9", + "vite": "4.5.2", "vite-plugin-environment": "^1.1.3", "vitest": "0.33.0", "vue-property-decorator": "^9.1.2", @@ -7203,14 +7203,14 @@ "dev": true }, "node_modules/vite": { - "version": "4.3.9", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.3.9.tgz", - "integrity": "sha512-qsTNZjO9NoJNW7KnOrgYwczm0WctJ8m/yqYAMAK9Lxt4SoySUfS5S8ia9K7JHpa3KEeMfyF8LoJ3c5NeBJy6pg==", + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.2.tgz", + "integrity": "sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w==", "dev": true, "dependencies": { - "esbuild": "^0.17.5", - "postcss": "^8.4.23", - "rollup": "^3.21.0" + "esbuild": "^0.18.10", + "postcss": "^8.4.27", + "rollup": "^3.27.1" }, "bin": { "vite": "bin/vite.js" @@ -7218,12 +7218,16 @@ "engines": { "node": "^14.18.0 || >=16.0.0" }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, "optionalDependencies": { "fsevents": "~2.3.2" }, "peerDependencies": { "@types/node": ">= 14", "less": "*", + "lightningcss": "^1.21.0", "sass": "*", "stylus": "*", "sugarss": "*", @@ -7236,6 +7240,9 @@ "less": { "optional": true }, + "lightningcss": { + "optional": true + }, "sass": { "optional": true }, @@ -7283,9 +7290,9 @@ } }, "node_modules/vite/node_modules/@esbuild/android-arm": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.19.tgz", - "integrity": "sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", + "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", "cpu": [ "arm" ], @@ -7299,9 +7306,9 @@ } }, "node_modules/vite/node_modules/@esbuild/android-arm64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.19.tgz", - "integrity": "sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", + "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", "cpu": [ "arm64" ], @@ -7315,9 +7322,9 @@ } }, "node_modules/vite/node_modules/@esbuild/android-x64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.19.tgz", - "integrity": "sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz", + "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", "cpu": [ "x64" ], @@ -7331,9 +7338,9 @@ } }, "node_modules/vite/node_modules/@esbuild/darwin-arm64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz", - "integrity": "sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", + "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", "cpu": [ "arm64" ], @@ -7347,9 +7354,9 @@ } }, "node_modules/vite/node_modules/@esbuild/darwin-x64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.19.tgz", - "integrity": "sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", + "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", "cpu": [ "x64" ], @@ -7363,9 +7370,9 @@ } }, "node_modules/vite/node_modules/@esbuild/freebsd-arm64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.19.tgz", - "integrity": "sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", + "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", "cpu": [ "arm64" ], @@ -7379,9 +7386,9 @@ } }, "node_modules/vite/node_modules/@esbuild/freebsd-x64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.19.tgz", - "integrity": "sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", + "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", "cpu": [ "x64" ], @@ -7395,9 +7402,9 @@ } }, "node_modules/vite/node_modules/@esbuild/linux-arm": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.19.tgz", - "integrity": "sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", + "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", "cpu": [ "arm" ], @@ -7411,9 +7418,9 @@ } }, "node_modules/vite/node_modules/@esbuild/linux-arm64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.19.tgz", - "integrity": "sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", + "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", "cpu": [ "arm64" ], @@ -7427,9 +7434,9 @@ } }, "node_modules/vite/node_modules/@esbuild/linux-ia32": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.19.tgz", - "integrity": "sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", + "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", "cpu": [ "ia32" ], @@ -7443,9 +7450,9 @@ } }, "node_modules/vite/node_modules/@esbuild/linux-loong64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.19.tgz", - "integrity": "sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", + "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", "cpu": [ "loong64" ], @@ -7459,9 +7466,9 @@ } }, "node_modules/vite/node_modules/@esbuild/linux-mips64el": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.19.tgz", - "integrity": "sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", + "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", "cpu": [ "mips64el" ], @@ -7475,9 +7482,9 @@ } }, "node_modules/vite/node_modules/@esbuild/linux-ppc64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.19.tgz", - "integrity": "sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", + "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", "cpu": [ "ppc64" ], @@ -7491,9 +7498,9 @@ } }, "node_modules/vite/node_modules/@esbuild/linux-riscv64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.19.tgz", - "integrity": "sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", + "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", "cpu": [ "riscv64" ], @@ -7507,9 +7514,9 @@ } }, "node_modules/vite/node_modules/@esbuild/linux-s390x": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.19.tgz", - "integrity": "sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", + "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", "cpu": [ "s390x" ], @@ -7523,9 +7530,9 @@ } }, "node_modules/vite/node_modules/@esbuild/linux-x64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz", - "integrity": "sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", + "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", "cpu": [ "x64" ], @@ -7539,9 +7546,9 @@ } }, "node_modules/vite/node_modules/@esbuild/netbsd-x64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.19.tgz", - "integrity": "sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", + "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", "cpu": [ "x64" ], @@ -7555,9 +7562,9 @@ } }, "node_modules/vite/node_modules/@esbuild/openbsd-x64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.19.tgz", - "integrity": "sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", + "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", "cpu": [ "x64" ], @@ -7571,9 +7578,9 @@ } }, "node_modules/vite/node_modules/@esbuild/sunos-x64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.19.tgz", - "integrity": "sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", + "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", "cpu": [ "x64" ], @@ -7587,9 +7594,9 @@ } }, "node_modules/vite/node_modules/@esbuild/win32-arm64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.19.tgz", - "integrity": "sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", + "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", "cpu": [ "arm64" ], @@ -7603,9 +7610,9 @@ } }, "node_modules/vite/node_modules/@esbuild/win32-ia32": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.19.tgz", - "integrity": "sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", + "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", "cpu": [ "ia32" ], @@ -7619,9 +7626,9 @@ } }, "node_modules/vite/node_modules/@esbuild/win32-x64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz", - "integrity": "sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", + "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", "cpu": [ "x64" ], @@ -7635,9 +7642,9 @@ } }, "node_modules/vite/node_modules/esbuild": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.19.tgz", - "integrity": "sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", + "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", "dev": true, "hasInstallScript": true, "bin": { @@ -7647,28 +7654,28 @@ "node": ">=12" }, "optionalDependencies": { - "@esbuild/android-arm": "0.17.19", - "@esbuild/android-arm64": "0.17.19", - "@esbuild/android-x64": "0.17.19", - "@esbuild/darwin-arm64": "0.17.19", - "@esbuild/darwin-x64": "0.17.19", - "@esbuild/freebsd-arm64": "0.17.19", - "@esbuild/freebsd-x64": "0.17.19", - "@esbuild/linux-arm": "0.17.19", - "@esbuild/linux-arm64": "0.17.19", - "@esbuild/linux-ia32": "0.17.19", - "@esbuild/linux-loong64": "0.17.19", - "@esbuild/linux-mips64el": "0.17.19", - "@esbuild/linux-ppc64": "0.17.19", - "@esbuild/linux-riscv64": "0.17.19", - "@esbuild/linux-s390x": "0.17.19", - "@esbuild/linux-x64": "0.17.19", - "@esbuild/netbsd-x64": "0.17.19", - "@esbuild/openbsd-x64": "0.17.19", - "@esbuild/sunos-x64": "0.17.19", - "@esbuild/win32-arm64": "0.17.19", - "@esbuild/win32-ia32": "0.17.19", - "@esbuild/win32-x64": "0.17.19" + "@esbuild/android-arm": "0.18.20", + "@esbuild/android-arm64": "0.18.20", + "@esbuild/android-x64": "0.18.20", + "@esbuild/darwin-arm64": "0.18.20", + "@esbuild/darwin-x64": "0.18.20", + "@esbuild/freebsd-arm64": "0.18.20", + "@esbuild/freebsd-x64": "0.18.20", + "@esbuild/linux-arm": "0.18.20", + "@esbuild/linux-arm64": "0.18.20", + "@esbuild/linux-ia32": "0.18.20", + "@esbuild/linux-loong64": "0.18.20", + "@esbuild/linux-mips64el": "0.18.20", + "@esbuild/linux-ppc64": "0.18.20", + "@esbuild/linux-riscv64": "0.18.20", + "@esbuild/linux-s390x": "0.18.20", + "@esbuild/linux-x64": "0.18.20", + "@esbuild/netbsd-x64": "0.18.20", + "@esbuild/openbsd-x64": "0.18.20", + "@esbuild/sunos-x64": "0.18.20", + "@esbuild/win32-arm64": "0.18.20", + "@esbuild/win32-ia32": "0.18.20", + "@esbuild/win32-x64": "0.18.20" } }, "node_modules/vitest": { diff --git a/package.json b/package.json index d09fbef4..ec6f7a8d 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "sass": "~1.32.13", "sinon": "^14.0.2", "typescript": "4.5.5", - "vite": "4.3.9", + "vite": "4.5.2", "vite-plugin-environment": "^1.1.3", "vitest": "0.33.0", "vue-property-decorator": "^9.1.2", From 1e980cfb2c89439408cd7bef20f2310564a158c9 Mon Sep 17 00:00:00 2001 From: JazzarKarim Date: Fri, 26 Jan 2024 14:40:48 -0800 Subject: [PATCH 19/19] major package version update --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 50dd9735..9110dfc9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "business-edit-ui", - "version": "4.8.0", + "version": "5.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "business-edit-ui", - "version": "4.8.0", + "version": "5.0.0", "dependencies": { "@babel/compat-data": "^7.21.5", "@bcrs-shared-components/action-chip": "1.1.5", @@ -68,7 +68,7 @@ "@typescript-eslint/eslint-plugin": "^5.59.2", "@typescript-eslint/parser": "^5.59.2", "@vitejs/plugin-vue2": "^2.2.0", - "@volar-plugins/vetur": "*", + "@volar-plugins/vetur": "latest", "@vue/eslint-config-standard": "^4.0.0", "@vue/eslint-config-typescript": "^9.1.0", "@vue/test-utils": "^1.3.5", diff --git a/package.json b/package.json index ec6f7a8d..c5816aca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "business-edit-ui", - "version": "4.8.0", + "version": "5.0.0", "private": true, "appName": "Edit UI", "sbcName": "SBC Common Components",