Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

24657 - Notice of Withdrawal filing #707

Merged
merged 40 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
321bdfa
added the new component and filing type
ArwenQin Dec 5, 2024
6ff8788
bold note in the certify text
ArwenQin Dec 5, 2024
625165f
add the POA component
ArwenQin Dec 5, 2024
95e7b3a
add the Ref Number component
ArwenQin Dec 6, 2024
555d799
add the staff payment section
ArwenQin Dec 9, 2024
5939a38
update save and submit format
ArwenQin Dec 9, 2024
3a3fa0d
add the staff payment section 2
ArwenQin Dec 9, 2024
9eef134
fix the logic
ArwenQin Dec 10, 2024
1ff4345
update enum
ArwenQin Dec 10, 2024
e8e78b0
fix lint
ArwenQin Dec 10, 2024
221db2e
add unit tests
ArwenQin Dec 10, 2024
b94c9d6
update enum 2
ArwenQin Dec 10, 2024
0700480
fix staff payment logic
ArwenQin Dec 10, 2024
ba9f1a8
fix ref number logic
ArwenQin Dec 11, 2024
7b05aee
fix typo, remove inneeded
ArwenQin Dec 11, 2024
7e049bb
add staff role check
ArwenQin Dec 11, 2024
0ebc339
refine 2 new components
ArwenQin Dec 11, 2024
fa6c685
rename styles
ArwenQin Dec 11, 2024
e07e79c
add some unit tests
ArwenQin Dec 11, 2024
f6e41a3
update POA section - finished
ArwenQin Dec 12, 2024
2cd4f14
adjust lint
ArwenQin Dec 12, 2024
3585361
use date mixin, fix some notes
ArwenQin Dec 12, 2024
7e9dc76
adjust label font
ArwenQin Dec 12, 2024
c1c02c6
adjust label font 2
ArwenQin Dec 12, 2024
6dba829
add the staff role error dialog
ArwenQin Dec 12, 2024
8103748
add some unit tests
ArwenQin Dec 12, 2024
d5636fe
move staff role error dialog
ArwenQin Dec 12, 2024
f36ecad
change the url route format
ArwenQin Dec 12, 2024
18caf67
update unit tests 1
ArwenQin Dec 12, 2024
6aa1248
update filing id type
ArwenQin Dec 12, 2024
f86f758
update emit method in Refe Number file
ArwenQin Dec 12, 2024
3527ee2
update court order section
ArwenQin Dec 12, 2024
f40e552
update unit tests 2
ArwenQin Dec 12, 2024
28731dd
change filing id to string
ArwenQin Dec 12, 2024
1abeb30
change Emit format
ArwenQin Dec 12, 2024
61a6708
update version
ArwenQin Dec 12, 2024
382d580
update space
ArwenQin Dec 13, 2024
84795b7
update filing json, poa logic
ArwenQin Dec 13, 2024
9b9e509
correct filing name
ArwenQin Dec 13, 2024
55f8be0
remove reference number section
ArwenQin Dec 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/Dashboard/FilingHistoryList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export default class FilingHistoryList extends Mixins(FilingMixin) {
case EnumUtilities.isTypeRestorationLimited(filing): return 'limited-restoration'
case EnumUtilities.isTypeRestorationLimitedExtension(filing): return 'limited-restoration-extension'
case EnumUtilities.isTypeRestorationLimitedToFull(filing): return 'limited-restoration-conversion'
case EnumUtilities.isTypeNoticeOfWithdrawal(filing): return 'notice-of-withdrawal'
case EnumUtilities.isTypeRegistration(filing): return 'registration-filing'
case EnumUtilities.isTypeStaff(filing): return 'staff-filing' // includes several filing types
default: return 'default-filing'
Expand Down
1 change: 1 addition & 0 deletions src/components/EntityInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default class EntityInfo extends Vue {
this.$route?.name === Routes.ANNUAL_REPORT ||
this.$route?.name === Routes.CONSENT_CONTINUATION_OUT ||
this.$route?.name === Routes.CONTINUATION_OUT ||
this.$route?.name === Routes.NOTICE_OF_WITHDRAWAL ||
this.$route?.name === Routes.STANDALONE_ADDRESSES ||
this.$route?.name === Routes.STANDALONE_DIRECTORS
)
Expand Down
134 changes: 134 additions & 0 deletions src/components/NoticeOfWithdraw/PlanOfArrangement.vue
severinbeauvais marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<template>
<div id="withdrawal-poa">
<v-row no-gutters>
<v-col
cols="12"
sm="3"
class="pr-4"
>
<label id="poa-label">Plan of Arrangement</label>
</v-col>
<v-col
cols="12"
:sm="9"
>
<v-checkbox
id="plan-of-arrangement-checkbox"
v-model="planOfArrangement"
class="mt-0 pt-0"
hide-details
label="The record to be withdrawn was filed as part of an arrangement."
/>
</v-col>
</v-row>
<v-row
no-gutters
class="pt-4"
>
<v-col
cols="12"
sm="3"
class="pr-4"
/>
<v-col
cols="12"
:sm="9"
>
<v-checkbox
id="come-into-effect-checkbox"
v-model="comeIntoEffect"
class="mt-0 pt-0"
hide-details
label="One or more of the provisions of the arrangement have come into effect."
:disabled="!planOfArrangement"
/>
</v-col>
</v-row>
</div>
</template>

<script lang="ts">
import Vue from 'vue'
import { Component, Emit, Prop, Watch } from 'vue-property-decorator'

@Component({})
export default class PlanOfArrangement extends Vue {
/** Prompt the validations. Used for global validations. */
@Prop({ default: false }) readonly autoValidation!: boolean

/** Draft plan of arrangement. */
@Prop({ default: false }) readonly hasDraftPlanOfArrangement!: boolean

/** Draft come into effect. */
@Prop({ default: false }) readonly hasDraftComeIntoEffect!: boolean

/** Prompt Error. */
@Prop({ default: false }) readonly invalidSection!: boolean

// Local properties
private planOfArrangement = false
private comeIntoEffect = false
private valid = false

/** Called when component is mounted. */
mounted (): void {
// Set default draft values if they exist
if (this.hasDraftPlanOfArrangement) this.planOfArrangement = this.hasDraftPlanOfArrangement
if (this.hasDraftComeIntoEffect) this.comeIntoEffect = this.hasDraftComeIntoEffect
}

@Watch('planOfArrangement')
private onPlanOfArrangementChange (newVal: boolean): void {
// If planOfArrangement is false, reset comeIntoEffect to false
if (!newVal) {
this.comeIntoEffect = false
}
}

/** Emit plan of arrangement. */
@Watch('planOfArrangement')
@Emit('emitPoa')
private emitPoa (): boolean {
return this.planOfArrangement
}

/** Emit come into effect. */
@Watch('comeIntoEffect')
@Emit('emitEffect')
private emitEffect (): boolean {
return this.comeIntoEffect
}

@Watch('valid')
@Emit('emitValid')
private emitValid (): boolean {
return this.valid
}
}
</script>

<style lang="scss" scoped>
@import '@/assets/styles/theme.scss';

#poa-label {
font-size: $px-16;
font-weight: bold;
color: $gray9;
}

:deep() {
.v-card__actions {
justify-content: flex-end;
}

.v-input .v-label {
font-weight: normal;
color: $gray7;
}

.theme--light.v-input input {
font-weight: normal;
color: $gray7;
}
}
</style>
122 changes: 122 additions & 0 deletions src/components/NoticeOfWithdraw/RecordToBeWithdrawn.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<template>
<VcardTemplate id="record-to-be-withdrawn">
<template #icon>
mdi-file-document-outline
</template>

<template #title>
Record to be Withdrawn
</template>

<template #content>
<v-row
no-gutters
class="px-6 py-7"
>
<v-col
cols="12"
sm="3"
class="pr-4"
>
<strong>Filing Type</strong>
</v-col>
<v-col
id="withdrawal-filing-type"
cols="12"
sm="9"
>
{{ getFilingToBeWithdrawn().displayName }}
</v-col>
</v-row>

<v-row
no-gutters
class="px-6 py-7"
>
<v-col
cols="12"
sm="3"
>
<strong>Filing Number</strong>
</v-col>
<v-col
id="withdrawal-filing-number"
cols="12"
sm="9"
>
{{ filingToBeWithdrawn }}
</v-col>
</v-row>

<v-row
no-gutters
class="px-6 py-7"
>
<v-col
cols="12"
sm="3"
>
<strong>Effective Date and Time</strong>
</v-col>
<v-col
id="withdrawal-filing-date"
cols="12"
sm="9"
>
{{ getFormattedFilingDate() }}
</v-col>
</v-row>
</template>
</VcardTemplate>
</template>

<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator'
import { Getter } from 'pinia-class'
import { VcardTemplate } from '@/components/common'
import { ApiFilingIF } from '@/interfaces'
import { useFilingHistoryListStore } from '@/stores/filingHistoryListStore'

@Component({
components: {
VcardTemplate
}
})
export default class RecordToBeWithdrawn extends Vue {
@Prop({ required: true }) readonly filingToBeWithdrawn!: string

@Getter(useFilingHistoryListStore) getFilings!: Array<ApiFilingIF>

getFilingToBeWithdrawn (): ApiFilingIF| undefined {
const filingId = Number(this.filingToBeWithdrawn)
const filings = this.getFilings as ApiFilingIF[]
return filings.find(filing => filing.filingId === filingId)
}

getFormattedFilingDate (): string {
const filing = this.getFilingToBeWithdrawn()
if (filing && filing.effectiveDate) {
const date = new Date(filing.effectiveDate)
const formattedDate = new Intl.DateTimeFormat('en-US', {
timeZone: 'America/Los_Angeles', // Pacific Time
year: 'numeric',
month: 'long',
day: 'numeric',
hour: 'numeric',
minute: 'numeric',
hour12: true
}).format(date)
return `${formattedDate} Pacific Time`
}
return 'Invalid date'
}
}
</script>

<style lang="scss" scoped>
@import '@/assets/styles/theme.scss';

.col-12 {
font-size: $px-16;
}
</style>
Loading
Loading