@plusscommunities/pluss-maintenance-web 1.1.39 → 1.1.40
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/dist/index.cjs.js +38 -24
- package/dist/index.esm.js +38 -24
- package/dist/index.umd.js +38 -24
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -80,6 +80,7 @@ const values = {
|
|
|
80
80
|
svgPathGridIconViewBox: '0 0 30 30',
|
|
81
81
|
menuOrder: 10,
|
|
82
82
|
optionOnlyForResidents: 'onlyForResidentsMaintenance',
|
|
83
|
+
optionDisableAddressAutoPopulate: 'disableAddressAutoPopulateMaintenance',
|
|
83
84
|
textEmptyDescription: 'allows your users to submit Requests (such as maintenance requests) that all appear in this job board.',
|
|
84
85
|
textEmptyExample: 'Example might be; Fix my light bulb, hand rail is broken, or please send flowers to Mum.',
|
|
85
86
|
textEmptyJobTypes: 'Please add the many categories of request types that exist in your village which work alongside the Maintenance area.',
|
|
@@ -126,7 +127,7 @@ const FeatureConfig = {
|
|
|
126
127
|
key: values.featureKey,
|
|
127
128
|
aliases: values.aliases,
|
|
128
129
|
singularName: values.textSingularName,
|
|
129
|
-
description:
|
|
130
|
+
description: "Submit maintenance requests and track the progress.",
|
|
130
131
|
emptyText: values.textYourRequestHere,
|
|
131
132
|
widgetOptions: [{
|
|
132
133
|
key: values.featureKey,
|
|
@@ -134,10 +135,22 @@ const FeatureConfig = {
|
|
|
134
135
|
main: true,
|
|
135
136
|
hideOnTabNumbers: [],
|
|
136
137
|
optionKey: values.optionOnlyForResidents,
|
|
137
|
-
type:
|
|
138
|
+
type: "toggle",
|
|
138
139
|
inverseOption: false,
|
|
139
|
-
title:
|
|
140
|
-
description:
|
|
140
|
+
title: "Limit Admins to Only Submit on Behalf of Primary Users",
|
|
141
|
+
description: "This will limit admins to only make a submission on behalf of a primary users in the site. Otherwise they can also submit on behalf of other admins/staff users.",
|
|
142
|
+
defaultNew: false,
|
|
143
|
+
default: false
|
|
144
|
+
}, {
|
|
145
|
+
key: values.featureKey,
|
|
146
|
+
widget: true,
|
|
147
|
+
main: true,
|
|
148
|
+
hideOnTabNumbers: [],
|
|
149
|
+
optionKey: values.optionDisableAddressAutoPopulate,
|
|
150
|
+
type: "toggle",
|
|
151
|
+
inverseOption: false,
|
|
152
|
+
title: "Do not auto-fill the user's address",
|
|
153
|
+
description: "When enabled, the address field will not be pre-filled from the user's profile when submitting a new ".concat(values.textSingularName, ". It must be entered manually each time."),
|
|
141
154
|
defaultNew: false,
|
|
142
155
|
default: false
|
|
143
156
|
}],
|
|
@@ -150,20 +163,20 @@ const FeatureConfig = {
|
|
|
150
163
|
url: values.routeRequestsHub,
|
|
151
164
|
countProps: null,
|
|
152
165
|
visibleExps: {
|
|
153
|
-
type:
|
|
166
|
+
type: "and",
|
|
154
167
|
exps: [{
|
|
155
|
-
type:
|
|
168
|
+
type: "feature",
|
|
156
169
|
value: values.featureKey
|
|
157
170
|
}, {
|
|
158
|
-
type:
|
|
171
|
+
type: "or",
|
|
159
172
|
exps: [{
|
|
160
|
-
type:
|
|
173
|
+
type: "permission",
|
|
161
174
|
value: values.permissionMaintenanceTracking
|
|
162
175
|
}, {
|
|
163
|
-
type:
|
|
176
|
+
type: "permission",
|
|
164
177
|
value: values.permissionMaintenanceTypes
|
|
165
178
|
}, {
|
|
166
|
-
type:
|
|
179
|
+
type: "permission",
|
|
167
180
|
value: values.permissionMaintenanceAssignment
|
|
168
181
|
}]
|
|
169
182
|
}]
|
|
@@ -228,21 +241,21 @@ const FeatureConfig = {
|
|
|
228
241
|
exact: true
|
|
229
242
|
}],
|
|
230
243
|
env: {
|
|
231
|
-
baseStage:
|
|
232
|
-
baseAPIUrl:
|
|
233
|
-
baseUploadsUrl:
|
|
234
|
-
uploadBucket:
|
|
235
|
-
colourBrandingMain:
|
|
236
|
-
colourBrandingOff:
|
|
237
|
-
colourBrandingApp:
|
|
238
|
-
defaultProfileImage:
|
|
239
|
-
utcOffset:
|
|
244
|
+
baseStage: "",
|
|
245
|
+
baseAPIUrl: "",
|
|
246
|
+
baseUploadsUrl: "",
|
|
247
|
+
uploadBucket: "",
|
|
248
|
+
colourBrandingMain: "",
|
|
249
|
+
colourBrandingOff: "",
|
|
250
|
+
colourBrandingApp: "",
|
|
251
|
+
defaultProfileImage: "",
|
|
252
|
+
utcOffset: "",
|
|
240
253
|
hasAvailableNews: false,
|
|
241
254
|
newsHaveTags: true,
|
|
242
255
|
defaultAllowComments: true,
|
|
243
|
-
makeApiKey:
|
|
244
|
-
logo:
|
|
245
|
-
clientName:
|
|
256
|
+
makeApiKey: "",
|
|
257
|
+
logo: "",
|
|
258
|
+
clientName: ""
|
|
246
259
|
},
|
|
247
260
|
init: environment => {
|
|
248
261
|
FeatureConfig.env = environment;
|
|
@@ -4310,7 +4323,7 @@ class AddJob extends React.Component {
|
|
|
4310
4323
|
if (response.data.user.phoneNumber) {
|
|
4311
4324
|
contactUpdate.phone = response.data.user.phoneNumber;
|
|
4312
4325
|
}
|
|
4313
|
-
if (response.data.user.unit) {
|
|
4326
|
+
if (!this.props.disableAddressAutoPopulate && response.data.user.unit) {
|
|
4314
4327
|
contactUpdate.room = response.data.user.unit;
|
|
4315
4328
|
}
|
|
4316
4329
|
// Update contact fields when data arrives
|
|
@@ -5146,7 +5159,8 @@ const mapStateToProps$2 = state => {
|
|
|
5146
5159
|
return {
|
|
5147
5160
|
auth,
|
|
5148
5161
|
strings: state.strings && state.strings.config || {},
|
|
5149
|
-
optionOnlyForResidents: Helper$1.getSiteSettingFromState(state, values.optionOnlyForResidents)
|
|
5162
|
+
optionOnlyForResidents: Helper$1.getSiteSettingFromState(state, values.optionOnlyForResidents),
|
|
5163
|
+
disableAddressAutoPopulate: Helper$1.getSiteSettingFromState(state, values.optionDisableAddressAutoPopulate)
|
|
5150
5164
|
};
|
|
5151
5165
|
};
|
|
5152
5166
|
var AddJob$1 = reactRedux.connect(mapStateToProps$2, {
|
package/dist/index.esm.js
CHANGED
|
@@ -49,6 +49,7 @@ const values = {
|
|
|
49
49
|
svgPathGridIconViewBox: '0 0 30 30',
|
|
50
50
|
menuOrder: 10,
|
|
51
51
|
optionOnlyForResidents: 'onlyForResidentsMaintenance',
|
|
52
|
+
optionDisableAddressAutoPopulate: 'disableAddressAutoPopulateMaintenance',
|
|
52
53
|
textEmptyDescription: 'allows your users to submit Requests (such as maintenance requests) that all appear in this job board.',
|
|
53
54
|
textEmptyExample: 'Example might be; Fix my light bulb, hand rail is broken, or please send flowers to Mum.',
|
|
54
55
|
textEmptyJobTypes: 'Please add the many categories of request types that exist in your village which work alongside the Maintenance area.',
|
|
@@ -95,7 +96,7 @@ const FeatureConfig = {
|
|
|
95
96
|
key: values.featureKey,
|
|
96
97
|
aliases: values.aliases,
|
|
97
98
|
singularName: values.textSingularName,
|
|
98
|
-
description:
|
|
99
|
+
description: "Submit maintenance requests and track the progress.",
|
|
99
100
|
emptyText: values.textYourRequestHere,
|
|
100
101
|
widgetOptions: [{
|
|
101
102
|
key: values.featureKey,
|
|
@@ -103,10 +104,22 @@ const FeatureConfig = {
|
|
|
103
104
|
main: true,
|
|
104
105
|
hideOnTabNumbers: [],
|
|
105
106
|
optionKey: values.optionOnlyForResidents,
|
|
106
|
-
type:
|
|
107
|
+
type: "toggle",
|
|
107
108
|
inverseOption: false,
|
|
108
|
-
title:
|
|
109
|
-
description:
|
|
109
|
+
title: "Limit Admins to Only Submit on Behalf of Primary Users",
|
|
110
|
+
description: "This will limit admins to only make a submission on behalf of a primary users in the site. Otherwise they can also submit on behalf of other admins/staff users.",
|
|
111
|
+
defaultNew: false,
|
|
112
|
+
default: false
|
|
113
|
+
}, {
|
|
114
|
+
key: values.featureKey,
|
|
115
|
+
widget: true,
|
|
116
|
+
main: true,
|
|
117
|
+
hideOnTabNumbers: [],
|
|
118
|
+
optionKey: values.optionDisableAddressAutoPopulate,
|
|
119
|
+
type: "toggle",
|
|
120
|
+
inverseOption: false,
|
|
121
|
+
title: "Do not auto-fill the user's address",
|
|
122
|
+
description: "When enabled, the address field will not be pre-filled from the user's profile when submitting a new ".concat(values.textSingularName, ". It must be entered manually each time."),
|
|
110
123
|
defaultNew: false,
|
|
111
124
|
default: false
|
|
112
125
|
}],
|
|
@@ -119,20 +132,20 @@ const FeatureConfig = {
|
|
|
119
132
|
url: values.routeRequestsHub,
|
|
120
133
|
countProps: null,
|
|
121
134
|
visibleExps: {
|
|
122
|
-
type:
|
|
135
|
+
type: "and",
|
|
123
136
|
exps: [{
|
|
124
|
-
type:
|
|
137
|
+
type: "feature",
|
|
125
138
|
value: values.featureKey
|
|
126
139
|
}, {
|
|
127
|
-
type:
|
|
140
|
+
type: "or",
|
|
128
141
|
exps: [{
|
|
129
|
-
type:
|
|
142
|
+
type: "permission",
|
|
130
143
|
value: values.permissionMaintenanceTracking
|
|
131
144
|
}, {
|
|
132
|
-
type:
|
|
145
|
+
type: "permission",
|
|
133
146
|
value: values.permissionMaintenanceTypes
|
|
134
147
|
}, {
|
|
135
|
-
type:
|
|
148
|
+
type: "permission",
|
|
136
149
|
value: values.permissionMaintenanceAssignment
|
|
137
150
|
}]
|
|
138
151
|
}]
|
|
@@ -197,21 +210,21 @@ const FeatureConfig = {
|
|
|
197
210
|
exact: true
|
|
198
211
|
}],
|
|
199
212
|
env: {
|
|
200
|
-
baseStage:
|
|
201
|
-
baseAPIUrl:
|
|
202
|
-
baseUploadsUrl:
|
|
203
|
-
uploadBucket:
|
|
204
|
-
colourBrandingMain:
|
|
205
|
-
colourBrandingOff:
|
|
206
|
-
colourBrandingApp:
|
|
207
|
-
defaultProfileImage:
|
|
208
|
-
utcOffset:
|
|
213
|
+
baseStage: "",
|
|
214
|
+
baseAPIUrl: "",
|
|
215
|
+
baseUploadsUrl: "",
|
|
216
|
+
uploadBucket: "",
|
|
217
|
+
colourBrandingMain: "",
|
|
218
|
+
colourBrandingOff: "",
|
|
219
|
+
colourBrandingApp: "",
|
|
220
|
+
defaultProfileImage: "",
|
|
221
|
+
utcOffset: "",
|
|
209
222
|
hasAvailableNews: false,
|
|
210
223
|
newsHaveTags: true,
|
|
211
224
|
defaultAllowComments: true,
|
|
212
|
-
makeApiKey:
|
|
213
|
-
logo:
|
|
214
|
-
clientName:
|
|
225
|
+
makeApiKey: "",
|
|
226
|
+
logo: "",
|
|
227
|
+
clientName: ""
|
|
215
228
|
},
|
|
216
229
|
init: environment => {
|
|
217
230
|
FeatureConfig.env = environment;
|
|
@@ -4279,7 +4292,7 @@ class AddJob extends Component {
|
|
|
4279
4292
|
if (response.data.user.phoneNumber) {
|
|
4280
4293
|
contactUpdate.phone = response.data.user.phoneNumber;
|
|
4281
4294
|
}
|
|
4282
|
-
if (response.data.user.unit) {
|
|
4295
|
+
if (!this.props.disableAddressAutoPopulate && response.data.user.unit) {
|
|
4283
4296
|
contactUpdate.room = response.data.user.unit;
|
|
4284
4297
|
}
|
|
4285
4298
|
// Update contact fields when data arrives
|
|
@@ -5115,7 +5128,8 @@ const mapStateToProps$2 = state => {
|
|
|
5115
5128
|
return {
|
|
5116
5129
|
auth,
|
|
5117
5130
|
strings: state.strings && state.strings.config || {},
|
|
5118
|
-
optionOnlyForResidents: Helper$1.getSiteSettingFromState(state, values.optionOnlyForResidents)
|
|
5131
|
+
optionOnlyForResidents: Helper$1.getSiteSettingFromState(state, values.optionOnlyForResidents),
|
|
5132
|
+
disableAddressAutoPopulate: Helper$1.getSiteSettingFromState(state, values.optionDisableAddressAutoPopulate)
|
|
5119
5133
|
};
|
|
5120
5134
|
};
|
|
5121
5135
|
var AddJob$1 = connect(mapStateToProps$2, {
|
package/dist/index.umd.js
CHANGED
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
svgPathGridIconViewBox: '0 0 30 30',
|
|
70
70
|
menuOrder: 10,
|
|
71
71
|
optionOnlyForResidents: 'onlyForResidentsMaintenance',
|
|
72
|
+
optionDisableAddressAutoPopulate: 'disableAddressAutoPopulateMaintenance',
|
|
72
73
|
textEmptyDescription: 'allows your users to submit Requests (such as maintenance requests) that all appear in this job board.',
|
|
73
74
|
textEmptyExample: 'Example might be; Fix my light bulb, hand rail is broken, or please send flowers to Mum.',
|
|
74
75
|
textEmptyJobTypes: 'Please add the many categories of request types that exist in your village which work alongside the Maintenance area.',
|
|
@@ -115,7 +116,7 @@
|
|
|
115
116
|
key: values.featureKey,
|
|
116
117
|
aliases: values.aliases,
|
|
117
118
|
singularName: values.textSingularName,
|
|
118
|
-
description:
|
|
119
|
+
description: "Submit maintenance requests and track the progress.",
|
|
119
120
|
emptyText: values.textYourRequestHere,
|
|
120
121
|
widgetOptions: [{
|
|
121
122
|
key: values.featureKey,
|
|
@@ -123,10 +124,22 @@
|
|
|
123
124
|
main: true,
|
|
124
125
|
hideOnTabNumbers: [],
|
|
125
126
|
optionKey: values.optionOnlyForResidents,
|
|
126
|
-
type:
|
|
127
|
+
type: "toggle",
|
|
127
128
|
inverseOption: false,
|
|
128
|
-
title:
|
|
129
|
-
description:
|
|
129
|
+
title: "Limit Admins to Only Submit on Behalf of Primary Users",
|
|
130
|
+
description: "This will limit admins to only make a submission on behalf of a primary users in the site. Otherwise they can also submit on behalf of other admins/staff users.",
|
|
131
|
+
defaultNew: false,
|
|
132
|
+
default: false
|
|
133
|
+
}, {
|
|
134
|
+
key: values.featureKey,
|
|
135
|
+
widget: true,
|
|
136
|
+
main: true,
|
|
137
|
+
hideOnTabNumbers: [],
|
|
138
|
+
optionKey: values.optionDisableAddressAutoPopulate,
|
|
139
|
+
type: "toggle",
|
|
140
|
+
inverseOption: false,
|
|
141
|
+
title: "Do not auto-fill the user's address",
|
|
142
|
+
description: "When enabled, the address field will not be pre-filled from the user's profile when submitting a new ".concat(values.textSingularName, ". It must be entered manually each time."),
|
|
130
143
|
defaultNew: false,
|
|
131
144
|
default: false
|
|
132
145
|
}],
|
|
@@ -139,20 +152,20 @@
|
|
|
139
152
|
url: values.routeRequestsHub,
|
|
140
153
|
countProps: null,
|
|
141
154
|
visibleExps: {
|
|
142
|
-
type:
|
|
155
|
+
type: "and",
|
|
143
156
|
exps: [{
|
|
144
|
-
type:
|
|
157
|
+
type: "feature",
|
|
145
158
|
value: values.featureKey
|
|
146
159
|
}, {
|
|
147
|
-
type:
|
|
160
|
+
type: "or",
|
|
148
161
|
exps: [{
|
|
149
|
-
type:
|
|
162
|
+
type: "permission",
|
|
150
163
|
value: values.permissionMaintenanceTracking
|
|
151
164
|
}, {
|
|
152
|
-
type:
|
|
165
|
+
type: "permission",
|
|
153
166
|
value: values.permissionMaintenanceTypes
|
|
154
167
|
}, {
|
|
155
|
-
type:
|
|
168
|
+
type: "permission",
|
|
156
169
|
value: values.permissionMaintenanceAssignment
|
|
157
170
|
}]
|
|
158
171
|
}]
|
|
@@ -217,21 +230,21 @@
|
|
|
217
230
|
exact: true
|
|
218
231
|
}],
|
|
219
232
|
env: {
|
|
220
|
-
baseStage:
|
|
221
|
-
baseAPIUrl:
|
|
222
|
-
baseUploadsUrl:
|
|
223
|
-
uploadBucket:
|
|
224
|
-
colourBrandingMain:
|
|
225
|
-
colourBrandingOff:
|
|
226
|
-
colourBrandingApp:
|
|
227
|
-
defaultProfileImage:
|
|
228
|
-
utcOffset:
|
|
233
|
+
baseStage: "",
|
|
234
|
+
baseAPIUrl: "",
|
|
235
|
+
baseUploadsUrl: "",
|
|
236
|
+
uploadBucket: "",
|
|
237
|
+
colourBrandingMain: "",
|
|
238
|
+
colourBrandingOff: "",
|
|
239
|
+
colourBrandingApp: "",
|
|
240
|
+
defaultProfileImage: "",
|
|
241
|
+
utcOffset: "",
|
|
229
242
|
hasAvailableNews: false,
|
|
230
243
|
newsHaveTags: true,
|
|
231
244
|
defaultAllowComments: true,
|
|
232
|
-
makeApiKey:
|
|
233
|
-
logo:
|
|
234
|
-
clientName:
|
|
245
|
+
makeApiKey: "",
|
|
246
|
+
logo: "",
|
|
247
|
+
clientName: ""
|
|
235
248
|
},
|
|
236
249
|
init: environment => {
|
|
237
250
|
FeatureConfig.env = environment;
|
|
@@ -4299,7 +4312,7 @@
|
|
|
4299
4312
|
if (response.data.user.phoneNumber) {
|
|
4300
4313
|
contactUpdate.phone = response.data.user.phoneNumber;
|
|
4301
4314
|
}
|
|
4302
|
-
if (response.data.user.unit) {
|
|
4315
|
+
if (!this.props.disableAddressAutoPopulate && response.data.user.unit) {
|
|
4303
4316
|
contactUpdate.room = response.data.user.unit;
|
|
4304
4317
|
}
|
|
4305
4318
|
// Update contact fields when data arrives
|
|
@@ -5135,7 +5148,8 @@
|
|
|
5135
5148
|
return {
|
|
5136
5149
|
auth,
|
|
5137
5150
|
strings: state.strings && state.strings.config || {},
|
|
5138
|
-
optionOnlyForResidents: Helper$1.getSiteSettingFromState(state, values.optionOnlyForResidents)
|
|
5151
|
+
optionOnlyForResidents: Helper$1.getSiteSettingFromState(state, values.optionOnlyForResidents),
|
|
5152
|
+
disableAddressAutoPopulate: Helper$1.getSiteSettingFromState(state, values.optionDisableAddressAutoPopulate)
|
|
5139
5153
|
};
|
|
5140
5154
|
};
|
|
5141
5155
|
var AddJob$1 = reactRedux.connect(mapStateToProps$2, {
|
package/package.json
CHANGED