@dyedurham/search-and-file-widget 2.1.10 → 2.1.11
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 +12 -4
- package/package.json +11 -11
package/dnd-filing-shell.js
CHANGED
|
@@ -84450,10 +84450,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84450
84450
|
const isIndividual = incorporator.type !== "entity";
|
|
84451
84451
|
return {
|
|
84452
84452
|
incorporatorType: isIndividual ? "individual" : "corporationOrFirm",
|
|
84453
|
-
//
|
|
84454
|
-
|
|
84453
|
+
// Names are only accepted for an individual; a corporation or firm is identified by
|
|
84454
|
+
// `corporationOrFirmName` (the deployed API rejects first/last name otherwise, although its
|
|
84455
|
+
// published spec lists them as required).
|
|
84456
|
+
firstName: isIndividual ? incorporator.firstName ?? "" : void 0,
|
|
84455
84457
|
middleName: isIndividual ? incorporator.middleName || void 0 : void 0,
|
|
84456
|
-
lastName:
|
|
84458
|
+
lastName: isIndividual ? incorporator.lastName ?? "" : void 0,
|
|
84457
84459
|
mailingAddress: mapAddress(incorporator),
|
|
84458
84460
|
corporationOrFirmName: isIndividual ? void 0 : incorporator.incorporator_name
|
|
84459
84461
|
};
|
|
@@ -96729,13 +96731,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96729
96731
|
}
|
|
96730
96732
|
/**
|
|
96731
96733
|
* British Columbia Change of Office Addresses save – propagates delta data to the host.
|
|
96734
|
+
* The draft link (ServiceOrderId and the request it was generated from) is kept, so reopening
|
|
96735
|
+
* can tell whether the saved data still matches the draft and show "Entity changed" if not.
|
|
96732
96736
|
*/
|
|
96733
96737
|
onBritishColumbiaChangeOfOfficeAddressesSave(deltaData) {
|
|
96734
96738
|
const oldDeltaData = this.task()?.deltaData;
|
|
96739
|
+
const draftLink = oldDeltaData?.serviceOrderId && oldDeltaData?.validatedData ? {
|
|
96740
|
+
serviceOrderId: oldDeltaData.serviceOrderId,
|
|
96741
|
+
validatedData: oldDeltaData.validatedData
|
|
96742
|
+
} : {};
|
|
96735
96743
|
if (oldDeltaData) {
|
|
96736
96744
|
delete this.task()?.deltaData;
|
|
96737
96745
|
}
|
|
96738
|
-
this.deltaDataChange.emit(deltaData);
|
|
96746
|
+
this.deltaDataChange.emit(__spreadValues(__spreadValues({}, deltaData), draftLink));
|
|
96739
96747
|
}
|
|
96740
96748
|
/**
|
|
96741
96749
|
* British Columbia Change of Office Addresses submit/file: submits the filing staged by
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dyedurham/search-and-file-widget",
|
|
3
|
-
"version": "2.1.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dnd-filing-shell.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
-
},
|
|
9
|
-
"author": "",
|
|
10
|
-
"license": "ISC"
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@dyedurham/search-and-file-widget",
|
|
3
|
+
"version": "2.1.11",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dnd-filing-shell.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "ISC"
|
|
11
|
+
}
|