@salesforcedevs/dw-components 1.3.276 → 1.3.285
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dw-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.285",
|
|
4
4
|
"description": "Lightning web components for https://developer.salesforce.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"@types/setimmediate": "^1.0.2",
|
|
27
27
|
"setimmediate": "^1.0.5"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "7b141c2210175998f0a17bd2c4d2684a5cd5a3ac"
|
|
30
30
|
}
|
|
@@ -3,7 +3,6 @@ import StepSequence from "dx/stepSequence";
|
|
|
3
3
|
import { getListWithUuids } from "dxUtils/list";
|
|
4
4
|
import { toJson } from "dxUtils/normalizers";
|
|
5
5
|
import J2sCardSequenceStep from "dw/j2sCardSequenceStep";
|
|
6
|
-
import { AlertInfo } from "typings/custom";
|
|
7
6
|
|
|
8
7
|
const DRM_SUCCESS_STRING = "success";
|
|
9
8
|
|
|
@@ -19,8 +18,8 @@ export type StepDatum = {
|
|
|
19
18
|
formId?: string;
|
|
20
19
|
j2sTerms?: string;
|
|
21
20
|
notAvailableAlertInfo?: {
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
title: string;
|
|
22
|
+
body: string;
|
|
24
23
|
};
|
|
25
24
|
participatingCountryCodes?: string[];
|
|
26
25
|
salesforceEmployeeAlertInfo?: {
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { toJson } from "dxUtils/normalizers";
|
|
2
2
|
import { stateMap } from "dwUtils/forms";
|
|
3
|
-
import { DateTime } from "luxon";
|
|
4
3
|
import { api } from "lwc";
|
|
5
4
|
import debounce from "debounce";
|
|
6
5
|
import { LightningElementWithState } from "dxBaseElements/lightningElementWithState";
|
|
7
6
|
import { DrmFormData } from "dw/j2sCardSequence";
|
|
8
7
|
|
|
9
|
-
const closingTimeUSCanada = DateTime.fromISO("2024-05-09", {
|
|
10
|
-
zone: "America/Los_Angeles"
|
|
11
|
-
});
|
|
12
|
-
|
|
13
8
|
// Hard-coding for now because we can't get information about an endpoint for this
|
|
14
9
|
const tbidValidRoles = [
|
|
15
10
|
"Developer",
|
|
@@ -101,17 +96,11 @@ export default class J2sForm extends LightningElementWithState<J2sFormState> {
|
|
|
101
96
|
}
|
|
102
97
|
}
|
|
103
98
|
|
|
104
|
-
private
|
|
99
|
+
private participatingCountryCodes = ["US", "CA", "IN"];
|
|
100
|
+
private countriesWithReferralInput = ["US", "CA", "IN"];
|
|
105
101
|
private requiredFormFields: HTMLElement[] = [];
|
|
106
102
|
private showSubmitFailureAlert = false;
|
|
107
103
|
|
|
108
|
-
get participatingCountryCodes() {
|
|
109
|
-
if (DateTime.local() >= closingTimeUSCanada) {
|
|
110
|
-
return ["IN"];
|
|
111
|
-
}
|
|
112
|
-
return ["US", "CA", "IN"];
|
|
113
|
-
}
|
|
114
|
-
|
|
115
104
|
get isNotParticipatingCountry() {
|
|
116
105
|
return !this.isParticipatingCountry(this.state.MailingCountry);
|
|
117
106
|
}
|
|
@@ -135,9 +124,7 @@ export default class J2sForm extends LightningElementWithState<J2sFormState> {
|
|
|
135
124
|
}
|
|
136
125
|
|
|
137
126
|
get notAvailableAlertInfo() {
|
|
138
|
-
return this.formMetadata.notAvailableAlertInfo
|
|
139
|
-
this.state.MailingCountry || "default"
|
|
140
|
-
];
|
|
127
|
+
return this.formMetadata.notAvailableAlertInfo;
|
|
141
128
|
}
|
|
142
129
|
|
|
143
130
|
get salesforceEmployeeAlertInfo() {
|