@dyedurham/search-and-file-widget 2.1.17 → 2.1.18
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/dnd-filing-shell.js +19 -31
- package/package.json +1 -1
package/dnd-filing-shell.js
CHANGED
|
@@ -85138,8 +85138,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85138
85138
|
const recordsOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.RECORDS_OFFICE);
|
|
85139
85139
|
const incoming = this.incomingOfficeAddresses(task);
|
|
85140
85140
|
const extract = this.officeExtract(currentDataExtract);
|
|
85141
|
-
const incomingSeed =
|
|
85142
|
-
const seed = this.withCurrentAddresses(incomingSeed, incoming,
|
|
85141
|
+
const incomingSeed = this.seedFromIncomingAffiliations(task);
|
|
85142
|
+
const seed = this.withCurrentAddresses(incomingSeed, incoming, registeredOffice, recordsOffice, extract);
|
|
85143
85143
|
const config2 = {};
|
|
85144
85144
|
config2[BCChangeOfOfficeAddressesFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile.client_matter_number);
|
|
85145
85145
|
config2[BCChangeOfOfficeAddressesFormGroups.CorporationDetails] = new FormGroup({
|
|
@@ -85212,11 +85212,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85212
85212
|
};
|
|
85213
85213
|
}
|
|
85214
85214
|
/**
|
|
85215
|
-
* For an office
|
|
85215
|
+
* For an office without an incoming address, the new address is its
|
|
85216
85216
|
* current address on the register (so the filing leaves it unchanged). A current address outside
|
|
85217
85217
|
* British Columbia is not used: the office is then reported as missing.
|
|
85218
85218
|
*/
|
|
85219
|
-
static withCurrentAddresses(seed, incoming,
|
|
85219
|
+
static withCurrentAddresses(seed, incoming, registeredOffice, recordsOffice, extract) {
|
|
85220
85220
|
const pickBy = BritishColumbiaFormationFormHelper.pickAddress;
|
|
85221
85221
|
const current = (office, type, key) => {
|
|
85222
85222
|
if (extract) {
|
|
@@ -85227,7 +85227,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85227
85227
|
return address && this.isBritishColumbia(address) ? this.toOfficeAddressDelta(address) : void 0;
|
|
85228
85228
|
};
|
|
85229
85229
|
const result = __spreadValues({}, seed);
|
|
85230
|
-
if (!
|
|
85230
|
+
if (!incoming.regMailing) {
|
|
85231
85231
|
const mailing = current(registeredOffice, "Mailing", "regMailing");
|
|
85232
85232
|
const delivery = current(registeredOffice, "Delivery", "regDelivery");
|
|
85233
85233
|
if (mailing) {
|
|
@@ -85239,7 +85239,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85239
85239
|
};
|
|
85240
85240
|
}
|
|
85241
85241
|
}
|
|
85242
|
-
if (!
|
|
85242
|
+
if (!incoming.recMailing) {
|
|
85243
85243
|
const mailing = current(recordsOffice, "Mailing", "recMailing");
|
|
85244
85244
|
const delivery = current(recordsOffice, "Delivery", "recDelivery");
|
|
85245
85245
|
if (mailing) {
|
|
@@ -85303,21 +85303,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85303
85303
|
country: BC_DEFAULT_COUNTRY
|
|
85304
85304
|
};
|
|
85305
85305
|
}
|
|
85306
|
-
/** Keeps the saved flags and addresses, but fills an address the draft left empty from `incoming`. */
|
|
85307
|
-
static fillEmptyAddresses(saved, incoming) {
|
|
85308
|
-
const hasValues = (address) => EDITABLE_ADDRESS_CONTROLS.some((name) => Boolean(address?.[name]));
|
|
85309
|
-
const pick = (savedAddress, incomingAddress) => hasValues(savedAddress) ? savedAddress : incomingAddress ?? savedAddress;
|
|
85310
|
-
return {
|
|
85311
|
-
registeredOffice: __spreadProps(__spreadValues({}, saved.registeredOffice), {
|
|
85312
|
-
mailingAddress: pick(saved.registeredOffice?.mailingAddress, incoming.regMailing),
|
|
85313
|
-
deliveryAddress: pick(saved.registeredOffice?.deliveryAddress, incoming.regDelivery)
|
|
85314
|
-
}),
|
|
85315
|
-
recordsOffice: __spreadProps(__spreadValues({}, saved.recordsOffice), {
|
|
85316
|
-
mailingAddress: pick(saved.recordsOffice?.mailingAddress, incoming.recMailing),
|
|
85317
|
-
deliveryAddress: pick(saved.recordsOffice?.deliveryAddress, incoming.recDelivery)
|
|
85318
|
-
})
|
|
85319
|
-
};
|
|
85320
|
-
}
|
|
85321
85306
|
/** The four office addresses of the task's incoming Shared Address, as form values. */
|
|
85322
85307
|
static incomingOfficeAddresses(task) {
|
|
85323
85308
|
const incoming = task.incomingAffiliations ?? [];
|
|
@@ -88829,6 +88814,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88829
88814
|
actionsDisabled = input(false);
|
|
88830
88815
|
errors = input([]);
|
|
88831
88816
|
currentDataExtract = input();
|
|
88817
|
+
/** False while the registry's current data is being loaded, so the forms are not built too early. */
|
|
88818
|
+
extractReady = input(true);
|
|
88832
88819
|
close = output();
|
|
88833
88820
|
codValidate = output();
|
|
88834
88821
|
saveCodDeltaData = output();
|
|
@@ -88863,7 +88850,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88863
88850
|
this.deltaForm.set(new FormGroup(BritishColumbiaFormationFormHelper.generateConfig(task, (key) => this.translate.instant(key), untracked2(() => this.currentUser()))));
|
|
88864
88851
|
this.deltaState.setBCFormationInitialDelta(this.generateFormationDeltaData());
|
|
88865
88852
|
}
|
|
88866
|
-
if (task && isChangeOfAddressTask(task)) {
|
|
88853
|
+
if (task && isChangeOfAddressTask(task) && this.extractReady()) {
|
|
88867
88854
|
this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key), this.currentDataExtract())));
|
|
88868
88855
|
this.deltaState.setBCChangeOfOfficeAddressesInitialDelta(this.generateChangeOfOfficeAddressesDeltaData());
|
|
88869
88856
|
}
|
|
@@ -88890,7 +88877,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88890
88877
|
this.nextStep.emit();
|
|
88891
88878
|
}
|
|
88892
88879
|
}
|
|
88893
|
-
if (task && isChangeOfAddressTask(task) && deltaData) {
|
|
88880
|
+
if (task && isChangeOfAddressTask(task) && deltaData && this.extractReady()) {
|
|
88894
88881
|
const form = new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key), this.currentDataExtract()));
|
|
88895
88882
|
form.disable();
|
|
88896
88883
|
this.previewForm.set(form);
|
|
@@ -89084,7 +89071,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89084
89071
|
static \u0275fac = function BritishColumbiaComponent_Factory(__ngFactoryType__) {
|
|
89085
89072
|
return new (__ngFactoryType__ || _BritishColumbiaComponent)();
|
|
89086
89073
|
};
|
|
89087
|
-
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaComponent, selectors: [["british-columbia"]], inputs: { task: [1, "task"], currentUser: [1, "currentUser"], activeStep: [1, "activeStep"], isNote: [1, "isNote"], actionsDisabled: [1, "actionsDisabled"], errors: [1, "errors"], currentDataExtract: [1, "currentDataExtract"] }, outputs: { close: "close", codValidate: "codValidate", saveCodDeltaData: "saveCodDeltaData", codSubmit: "codSubmit", formationValidate: "formationValidate", formationSubmit: "formationSubmit", saveFormationDeltaData: "saveFormationDeltaData", nextStep: "nextStep", recheckStep: "recheckStep", prevStep: "prevStep", coaValidate: "coaValidate", saveCoaDeltaData: "saveCoaDeltaData", coaSubmit: "coaSubmit" }, decls: 4, vars: 4, consts: [[3, "task", "form", "actionsDisabled", "errors", "isNote"], [3, "task", "form", "actionsDisabled", "errors"], [3, "validate", "close", "save", "task", "form", "actionsDisabled", "errors", "isNote"], [3, "close", "file", "task", "form", "actionsDisabled", "errors"], [3, "task", "errors", "isNote", "actionsDisabled", "form"], [3, "task", "form", "errors", "actionsDisabled"], [3, "validate", "close", "save", "task", "errors", "isNote", "actionsDisabled", "form"], [3, "next", "close", "task", "form", "errors", "actionsDisabled"]], template: function BritishColumbiaComponent_Template(rf, ctx) {
|
|
89074
|
+
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaComponent, selectors: [["british-columbia"]], inputs: { task: [1, "task"], currentUser: [1, "currentUser"], activeStep: [1, "activeStep"], isNote: [1, "isNote"], actionsDisabled: [1, "actionsDisabled"], errors: [1, "errors"], currentDataExtract: [1, "currentDataExtract"], extractReady: [1, "extractReady"] }, outputs: { close: "close", codValidate: "codValidate", saveCodDeltaData: "saveCodDeltaData", codSubmit: "codSubmit", formationValidate: "formationValidate", formationSubmit: "formationSubmit", saveFormationDeltaData: "saveFormationDeltaData", nextStep: "nextStep", recheckStep: "recheckStep", prevStep: "prevStep", coaValidate: "coaValidate", saveCoaDeltaData: "saveCoaDeltaData", coaSubmit: "coaSubmit" }, decls: 4, vars: 4, consts: [[3, "task", "form", "actionsDisabled", "errors", "isNote"], [3, "task", "form", "actionsDisabled", "errors"], [3, "validate", "close", "save", "task", "form", "actionsDisabled", "errors", "isNote"], [3, "close", "file", "task", "form", "actionsDisabled", "errors"], [3, "task", "errors", "isNote", "actionsDisabled", "form"], [3, "task", "form", "errors", "actionsDisabled"], [3, "validate", "close", "save", "task", "errors", "isNote", "actionsDisabled", "form"], [3, "next", "close", "task", "form", "errors", "actionsDisabled"]], template: function BritishColumbiaComponent_Template(rf, ctx) {
|
|
89088
89075
|
if (rf & 1) {
|
|
89089
89076
|
\u0275\u0275declareLet(0);
|
|
89090
89077
|
\u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template, 2, 2)(2, BritishColumbiaComponent_Conditional_2_Template, 2, 2)(3, BritishColumbiaComponent_Conditional_3_Template, 2, 2);
|
|
@@ -96080,7 +96067,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96080
96067
|
if (rf & 2) {
|
|
96081
96068
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
96082
96069
|
const currentTask_r5 = \u0275\u0275readContextLet(9);
|
|
96083
|
-
\u0275\u0275property("task", currentTask_r5)("currentUser", ctx_r2.currentUser())("activeStep", ctx_r2.activeStep())("isNote", ctx_r2.dataWasChanged())("actionsDisabled", ctx_r2.isLoading())("errors", ctx_r2.errors())("currentDataExtract", ctx_r2.currentDataExtract());
|
|
96070
|
+
\u0275\u0275property("task", currentTask_r5)("currentUser", ctx_r2.currentUser())("activeStep", ctx_r2.activeStep())("isNote", ctx_r2.dataWasChanged())("actionsDisabled", ctx_r2.isLoading())("errors", ctx_r2.errors())("currentDataExtract", ctx_r2.currentDataExtract())("extractReady", ctx_r2.bcCoaExtractReady());
|
|
96084
96071
|
}
|
|
96085
96072
|
}
|
|
96086
96073
|
function FilingComponent_Conditional_10_Conditional_2_Template(rf, ctx) {
|
|
@@ -96130,7 +96117,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96130
96117
|
}
|
|
96131
96118
|
function FilingComponent_Conditional_10_Template(rf, ctx) {
|
|
96132
96119
|
if (rf & 1) {
|
|
96133
|
-
\u0275\u0275template(0, FilingComponent_Conditional_10_Conditional_0_Template, 1, 7, "ontario", 8)(1, FilingComponent_Conditional_10_Conditional_1_Template, 1,
|
|
96120
|
+
\u0275\u0275template(0, FilingComponent_Conditional_10_Conditional_0_Template, 1, 7, "ontario", 8)(1, FilingComponent_Conditional_10_Conditional_1_Template, 1, 8, "british-columbia", 9)(2, FilingComponent_Conditional_10_Conditional_2_Template, 1, 5, "federal", 10);
|
|
96134
96121
|
}
|
|
96135
96122
|
if (rf & 2) {
|
|
96136
96123
|
const ctx_r2 = \u0275\u0275nextContext();
|
|
@@ -96254,6 +96241,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96254
96241
|
bcCurrentDataServiceOrderId = "";
|
|
96255
96242
|
/** The registry's current data ordered for the Change of Office Addresses; reused by Validate. */
|
|
96256
96243
|
bcCoaExtractId = "";
|
|
96244
|
+
/** False while the registry's current office addresses are loading. */
|
|
96245
|
+
bcCoaExtractReady = signal(true);
|
|
96257
96246
|
currentDataExtract = signal(void 0);
|
|
96258
96247
|
bcDataExtractTaskId = "";
|
|
96259
96248
|
activeStep = signal(Step.Validate);
|
|
@@ -96349,10 +96338,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96349
96338
|
}
|
|
96350
96339
|
}
|
|
96351
96340
|
if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task) && this.bcDataExtractTaskId !== task._id) {
|
|
96352
|
-
if (task.deltaData?.validatedData) {
|
|
96353
|
-
this.bcDataExtractTaskId = task._id;
|
|
96354
|
-
return;
|
|
96355
|
-
}
|
|
96356
96341
|
this.bcDataExtractTaskId = task._id;
|
|
96357
96342
|
yield this.loadBritishColumbiaOfficeAddressExtract(task);
|
|
96358
96343
|
}
|
|
@@ -96370,6 +96355,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96370
96355
|
return;
|
|
96371
96356
|
}
|
|
96372
96357
|
this.isLoading.set(true);
|
|
96358
|
+
this.bcCoaExtractReady.set(false);
|
|
96373
96359
|
try {
|
|
96374
96360
|
const opts = this.validateOptions() ?? {};
|
|
96375
96361
|
const context2 = this.getBritishColumbiaOfficeAddressContext(task, signature);
|
|
@@ -96380,6 +96366,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96380
96366
|
this.currentDataExtract.set(void 0);
|
|
96381
96367
|
console.warn("The registry's current office addresses could not be loaded.", error);
|
|
96382
96368
|
} finally {
|
|
96369
|
+
this.bcCoaExtractReady.set(true);
|
|
96383
96370
|
this.isLoading.set(false);
|
|
96384
96371
|
}
|
|
96385
96372
|
});
|
|
@@ -97203,7 +97190,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97203
97190
|
if (rf & 2) {
|
|
97204
97191
|
\u0275\u0275styleProp("height", ctx.modalHeight());
|
|
97205
97192
|
}
|
|
97206
|
-
}, inputs: { env: [1, "env"], config: [1, "config"], language: [1, "language"], proxyApiUrl: [1, "proxyApiUrl"], jwtToken: [1, "jwtToken"], task: [1, "task"], currentUser: [1, "currentUser"], height: [1, "height"], validateOptions: [1, "validateOptions"], getDocumentBytes: [1, "getDocumentBytes"] }, outputs: { deltaDataChange: "deltaDataChange", filingValidateSuccess: "filingValidateSuccess", filingSubmitSuccess: "filingSubmitSuccess", close: "close" }, decls: 12, vars: 9, consts: [[1, "filing"], [1, "filing-title"], [1, "filing-title-text"], [1, "filing-title-action", 3, "click"], [1, "filing-header"], [1, "filing-content"], [1, "filing-content-loading"], ["mat-stroked-button", "", 3, "click", "disabled"], [3, "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors", "currentDataExtract"], [3, "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "close", "formationValidate", "saveFormationDeltaData", "formationSubmit", "nextStep", "prevStep", "irValidate", "saveIrDeltaData", "irSubmit", "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "close", "nextStep", "recheckStep", "prevStep", "codValidate", "saveCodDeltaData", "codSubmit", "coaValidate", "saveCoaDeltaData", "coaSubmit", "formationValidate", "saveFormationDeltaData", "formationSubmit", "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors", "currentDataExtract"], [3, "close", "deltaDataChange", "file", "validate", "umSave", "umValidate", "umSubmit", "nextStep", "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "diameter"]], template: function FilingComponent_Template(rf, ctx) {
|
|
97193
|
+
}, inputs: { env: [1, "env"], config: [1, "config"], language: [1, "language"], proxyApiUrl: [1, "proxyApiUrl"], jwtToken: [1, "jwtToken"], task: [1, "task"], currentUser: [1, "currentUser"], height: [1, "height"], validateOptions: [1, "validateOptions"], getDocumentBytes: [1, "getDocumentBytes"] }, outputs: { deltaDataChange: "deltaDataChange", filingValidateSuccess: "filingValidateSuccess", filingSubmitSuccess: "filingSubmitSuccess", close: "close" }, decls: 12, vars: 9, consts: [[1, "filing"], [1, "filing-title"], [1, "filing-title-text"], [1, "filing-title-action", 3, "click"], [1, "filing-header"], [1, "filing-content"], [1, "filing-content-loading"], ["mat-stroked-button", "", 3, "click", "disabled"], [3, "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors", "currentDataExtract", "extractReady"], [3, "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "close", "formationValidate", "saveFormationDeltaData", "formationSubmit", "nextStep", "prevStep", "irValidate", "saveIrDeltaData", "irSubmit", "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "close", "nextStep", "recheckStep", "prevStep", "codValidate", "saveCodDeltaData", "codSubmit", "coaValidate", "saveCoaDeltaData", "coaSubmit", "formationValidate", "saveFormationDeltaData", "formationSubmit", "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors", "currentDataExtract", "extractReady"], [3, "close", "deltaDataChange", "file", "validate", "umSave", "umValidate", "umSubmit", "nextStep", "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "diameter"]], template: function FilingComponent_Template(rf, ctx) {
|
|
97207
97194
|
if (rf & 1) {
|
|
97208
97195
|
const _r1 = \u0275\u0275getCurrentView();
|
|
97209
97196
|
\u0275\u0275elementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
|
|
@@ -97307,6 +97294,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97307
97294
|
[actionsDisabled]="isLoading()"\r
|
|
97308
97295
|
[errors]="errors()"\r
|
|
97309
97296
|
[currentDataExtract]="currentDataExtract()"\r
|
|
97297
|
+
[extractReady]="bcCoaExtractReady()"\r
|
|
97310
97298
|
(close)="close.emit()"\r
|
|
97311
97299
|
(nextStep)="onNextStepClick()"\r
|
|
97312
97300
|
(recheckStep)="defineInitialStep()"\r
|