@plusscommunities/pluss-maintenance-web-feedback 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 256 256',
|
|
81
81
|
menuOrder: 10,
|
|
82
82
|
optionOnlyForResidents: 'onlyForResidentsMaintenanceFeedback',
|
|
83
|
+
optionDisableAddressAutoPopulate: 'disableAddressAutoPopulateMaintenanceFeedback',
|
|
83
84
|
textEmptyDescription: 'allows your users to submit Feedback.',
|
|
84
85
|
textEmptyExample: 'Example might be; General Feedback form, Complaint form, Compliment form.',
|
|
85
86
|
textEmptyJobTypes: 'Please add the different forms.',
|
|
@@ -120,7 +121,7 @@ const FeatureConfig = {
|
|
|
120
121
|
key: values.featureKey,
|
|
121
122
|
aliases: values.aliases,
|
|
122
123
|
singularName: values.textSingularName,
|
|
123
|
-
description:
|
|
124
|
+
description: "Submit maintenance requests and track the progress.",
|
|
124
125
|
emptyText: values.textYourRequestHere,
|
|
125
126
|
widgetOptions: [{
|
|
126
127
|
key: values.featureKey,
|
|
@@ -128,10 +129,22 @@ const FeatureConfig = {
|
|
|
128
129
|
main: true,
|
|
129
130
|
hideOnTabNumbers: [],
|
|
130
131
|
optionKey: values.optionOnlyForResidents,
|
|
131
|
-
type:
|
|
132
|
+
type: "toggle",
|
|
132
133
|
inverseOption: false,
|
|
133
|
-
title:
|
|
134
|
-
description:
|
|
134
|
+
title: "Limit Admins to Only Submit on Behalf of Primary Users",
|
|
135
|
+
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.",
|
|
136
|
+
defaultNew: false,
|
|
137
|
+
default: false
|
|
138
|
+
}, {
|
|
139
|
+
key: values.featureKey,
|
|
140
|
+
widget: true,
|
|
141
|
+
main: true,
|
|
142
|
+
hideOnTabNumbers: [],
|
|
143
|
+
optionKey: values.optionDisableAddressAutoPopulate,
|
|
144
|
+
type: "toggle",
|
|
145
|
+
inverseOption: false,
|
|
146
|
+
title: "Do not auto-fill the user's address",
|
|
147
|
+
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."),
|
|
135
148
|
defaultNew: false,
|
|
136
149
|
default: false
|
|
137
150
|
}],
|
|
@@ -144,20 +157,20 @@ const FeatureConfig = {
|
|
|
144
157
|
url: values.routeRequestsHub,
|
|
145
158
|
countProps: null,
|
|
146
159
|
visibleExps: {
|
|
147
|
-
type:
|
|
160
|
+
type: "and",
|
|
148
161
|
exps: [{
|
|
149
|
-
type:
|
|
162
|
+
type: "feature",
|
|
150
163
|
value: values.featureKey
|
|
151
164
|
}, {
|
|
152
|
-
type:
|
|
165
|
+
type: "or",
|
|
153
166
|
exps: [{
|
|
154
|
-
type:
|
|
167
|
+
type: "permission",
|
|
155
168
|
value: values.permissionMaintenanceTracking
|
|
156
169
|
}, {
|
|
157
|
-
type:
|
|
170
|
+
type: "permission",
|
|
158
171
|
value: values.permissionMaintenanceTypes
|
|
159
172
|
}, {
|
|
160
|
-
type:
|
|
173
|
+
type: "permission",
|
|
161
174
|
value: values.permissionMaintenanceAssignment
|
|
162
175
|
}]
|
|
163
176
|
}]
|
|
@@ -216,21 +229,21 @@ const FeatureConfig = {
|
|
|
216
229
|
exact: true
|
|
217
230
|
}],
|
|
218
231
|
env: {
|
|
219
|
-
baseStage:
|
|
220
|
-
baseAPIUrl:
|
|
221
|
-
baseUploadsUrl:
|
|
222
|
-
uploadBucket:
|
|
223
|
-
colourBrandingMain:
|
|
224
|
-
colourBrandingOff:
|
|
225
|
-
colourBrandingApp:
|
|
226
|
-
defaultProfileImage:
|
|
227
|
-
utcOffset:
|
|
232
|
+
baseStage: "",
|
|
233
|
+
baseAPIUrl: "",
|
|
234
|
+
baseUploadsUrl: "",
|
|
235
|
+
uploadBucket: "",
|
|
236
|
+
colourBrandingMain: "",
|
|
237
|
+
colourBrandingOff: "",
|
|
238
|
+
colourBrandingApp: "",
|
|
239
|
+
defaultProfileImage: "",
|
|
240
|
+
utcOffset: "",
|
|
228
241
|
hasAvailableNews: false,
|
|
229
242
|
newsHaveTags: true,
|
|
230
243
|
defaultAllowComments: true,
|
|
231
|
-
makeApiKey:
|
|
232
|
-
logo:
|
|
233
|
-
clientName:
|
|
244
|
+
makeApiKey: "",
|
|
245
|
+
logo: "",
|
|
246
|
+
clientName: ""
|
|
234
247
|
},
|
|
235
248
|
init: environment => {
|
|
236
249
|
FeatureConfig.env = environment;
|
|
@@ -4298,7 +4311,7 @@ class AddJob extends React.Component {
|
|
|
4298
4311
|
if (response.data.user.phoneNumber) {
|
|
4299
4312
|
contactUpdate.phone = response.data.user.phoneNumber;
|
|
4300
4313
|
}
|
|
4301
|
-
if (response.data.user.unit) {
|
|
4314
|
+
if (!this.props.disableAddressAutoPopulate && response.data.user.unit) {
|
|
4302
4315
|
contactUpdate.room = response.data.user.unit;
|
|
4303
4316
|
}
|
|
4304
4317
|
// Update contact fields when data arrives
|
|
@@ -5134,7 +5147,8 @@ const mapStateToProps$2 = state => {
|
|
|
5134
5147
|
return {
|
|
5135
5148
|
auth,
|
|
5136
5149
|
strings: state.strings && state.strings.config || {},
|
|
5137
|
-
optionOnlyForResidents: Helper$1.getSiteSettingFromState(state, values.optionOnlyForResidents)
|
|
5150
|
+
optionOnlyForResidents: Helper$1.getSiteSettingFromState(state, values.optionOnlyForResidents),
|
|
5151
|
+
disableAddressAutoPopulate: Helper$1.getSiteSettingFromState(state, values.optionDisableAddressAutoPopulate)
|
|
5138
5152
|
};
|
|
5139
5153
|
};
|
|
5140
5154
|
var AddJob$1 = reactRedux.connect(mapStateToProps$2, {
|
package/dist/index.esm.js
CHANGED
|
@@ -49,6 +49,7 @@ const values = {
|
|
|
49
49
|
svgPathGridIconViewBox: '0 0 256 256',
|
|
50
50
|
menuOrder: 10,
|
|
51
51
|
optionOnlyForResidents: 'onlyForResidentsMaintenanceFeedback',
|
|
52
|
+
optionDisableAddressAutoPopulate: 'disableAddressAutoPopulateMaintenanceFeedback',
|
|
52
53
|
textEmptyDescription: 'allows your users to submit Feedback.',
|
|
53
54
|
textEmptyExample: 'Example might be; General Feedback form, Complaint form, Compliment form.',
|
|
54
55
|
textEmptyJobTypes: 'Please add the different forms.',
|
|
@@ -89,7 +90,7 @@ const FeatureConfig = {
|
|
|
89
90
|
key: values.featureKey,
|
|
90
91
|
aliases: values.aliases,
|
|
91
92
|
singularName: values.textSingularName,
|
|
92
|
-
description:
|
|
93
|
+
description: "Submit maintenance requests and track the progress.",
|
|
93
94
|
emptyText: values.textYourRequestHere,
|
|
94
95
|
widgetOptions: [{
|
|
95
96
|
key: values.featureKey,
|
|
@@ -97,10 +98,22 @@ const FeatureConfig = {
|
|
|
97
98
|
main: true,
|
|
98
99
|
hideOnTabNumbers: [],
|
|
99
100
|
optionKey: values.optionOnlyForResidents,
|
|
100
|
-
type:
|
|
101
|
+
type: "toggle",
|
|
101
102
|
inverseOption: false,
|
|
102
|
-
title:
|
|
103
|
-
description:
|
|
103
|
+
title: "Limit Admins to Only Submit on Behalf of Primary Users",
|
|
104
|
+
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.",
|
|
105
|
+
defaultNew: false,
|
|
106
|
+
default: false
|
|
107
|
+
}, {
|
|
108
|
+
key: values.featureKey,
|
|
109
|
+
widget: true,
|
|
110
|
+
main: true,
|
|
111
|
+
hideOnTabNumbers: [],
|
|
112
|
+
optionKey: values.optionDisableAddressAutoPopulate,
|
|
113
|
+
type: "toggle",
|
|
114
|
+
inverseOption: false,
|
|
115
|
+
title: "Do not auto-fill the user's address",
|
|
116
|
+
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."),
|
|
104
117
|
defaultNew: false,
|
|
105
118
|
default: false
|
|
106
119
|
}],
|
|
@@ -113,20 +126,20 @@ const FeatureConfig = {
|
|
|
113
126
|
url: values.routeRequestsHub,
|
|
114
127
|
countProps: null,
|
|
115
128
|
visibleExps: {
|
|
116
|
-
type:
|
|
129
|
+
type: "and",
|
|
117
130
|
exps: [{
|
|
118
|
-
type:
|
|
131
|
+
type: "feature",
|
|
119
132
|
value: values.featureKey
|
|
120
133
|
}, {
|
|
121
|
-
type:
|
|
134
|
+
type: "or",
|
|
122
135
|
exps: [{
|
|
123
|
-
type:
|
|
136
|
+
type: "permission",
|
|
124
137
|
value: values.permissionMaintenanceTracking
|
|
125
138
|
}, {
|
|
126
|
-
type:
|
|
139
|
+
type: "permission",
|
|
127
140
|
value: values.permissionMaintenanceTypes
|
|
128
141
|
}, {
|
|
129
|
-
type:
|
|
142
|
+
type: "permission",
|
|
130
143
|
value: values.permissionMaintenanceAssignment
|
|
131
144
|
}]
|
|
132
145
|
}]
|
|
@@ -185,21 +198,21 @@ const FeatureConfig = {
|
|
|
185
198
|
exact: true
|
|
186
199
|
}],
|
|
187
200
|
env: {
|
|
188
|
-
baseStage:
|
|
189
|
-
baseAPIUrl:
|
|
190
|
-
baseUploadsUrl:
|
|
191
|
-
uploadBucket:
|
|
192
|
-
colourBrandingMain:
|
|
193
|
-
colourBrandingOff:
|
|
194
|
-
colourBrandingApp:
|
|
195
|
-
defaultProfileImage:
|
|
196
|
-
utcOffset:
|
|
201
|
+
baseStage: "",
|
|
202
|
+
baseAPIUrl: "",
|
|
203
|
+
baseUploadsUrl: "",
|
|
204
|
+
uploadBucket: "",
|
|
205
|
+
colourBrandingMain: "",
|
|
206
|
+
colourBrandingOff: "",
|
|
207
|
+
colourBrandingApp: "",
|
|
208
|
+
defaultProfileImage: "",
|
|
209
|
+
utcOffset: "",
|
|
197
210
|
hasAvailableNews: false,
|
|
198
211
|
newsHaveTags: true,
|
|
199
212
|
defaultAllowComments: true,
|
|
200
|
-
makeApiKey:
|
|
201
|
-
logo:
|
|
202
|
-
clientName:
|
|
213
|
+
makeApiKey: "",
|
|
214
|
+
logo: "",
|
|
215
|
+
clientName: ""
|
|
203
216
|
},
|
|
204
217
|
init: environment => {
|
|
205
218
|
FeatureConfig.env = environment;
|
|
@@ -4267,7 +4280,7 @@ class AddJob extends Component {
|
|
|
4267
4280
|
if (response.data.user.phoneNumber) {
|
|
4268
4281
|
contactUpdate.phone = response.data.user.phoneNumber;
|
|
4269
4282
|
}
|
|
4270
|
-
if (response.data.user.unit) {
|
|
4283
|
+
if (!this.props.disableAddressAutoPopulate && response.data.user.unit) {
|
|
4271
4284
|
contactUpdate.room = response.data.user.unit;
|
|
4272
4285
|
}
|
|
4273
4286
|
// Update contact fields when data arrives
|
|
@@ -5103,7 +5116,8 @@ const mapStateToProps$2 = state => {
|
|
|
5103
5116
|
return {
|
|
5104
5117
|
auth,
|
|
5105
5118
|
strings: state.strings && state.strings.config || {},
|
|
5106
|
-
optionOnlyForResidents: Helper$1.getSiteSettingFromState(state, values.optionOnlyForResidents)
|
|
5119
|
+
optionOnlyForResidents: Helper$1.getSiteSettingFromState(state, values.optionOnlyForResidents),
|
|
5120
|
+
disableAddressAutoPopulate: Helper$1.getSiteSettingFromState(state, values.optionDisableAddressAutoPopulate)
|
|
5107
5121
|
};
|
|
5108
5122
|
};
|
|
5109
5123
|
var AddJob$1 = connect(mapStateToProps$2, {
|
package/dist/index.umd.js
CHANGED
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
svgPathGridIconViewBox: '0 0 256 256',
|
|
70
70
|
menuOrder: 10,
|
|
71
71
|
optionOnlyForResidents: 'onlyForResidentsMaintenanceFeedback',
|
|
72
|
+
optionDisableAddressAutoPopulate: 'disableAddressAutoPopulateMaintenanceFeedback',
|
|
72
73
|
textEmptyDescription: 'allows your users to submit Feedback.',
|
|
73
74
|
textEmptyExample: 'Example might be; General Feedback form, Complaint form, Compliment form.',
|
|
74
75
|
textEmptyJobTypes: 'Please add the different forms.',
|
|
@@ -109,7 +110,7 @@
|
|
|
109
110
|
key: values.featureKey,
|
|
110
111
|
aliases: values.aliases,
|
|
111
112
|
singularName: values.textSingularName,
|
|
112
|
-
description:
|
|
113
|
+
description: "Submit maintenance requests and track the progress.",
|
|
113
114
|
emptyText: values.textYourRequestHere,
|
|
114
115
|
widgetOptions: [{
|
|
115
116
|
key: values.featureKey,
|
|
@@ -117,10 +118,22 @@
|
|
|
117
118
|
main: true,
|
|
118
119
|
hideOnTabNumbers: [],
|
|
119
120
|
optionKey: values.optionOnlyForResidents,
|
|
120
|
-
type:
|
|
121
|
+
type: "toggle",
|
|
121
122
|
inverseOption: false,
|
|
122
|
-
title:
|
|
123
|
-
description:
|
|
123
|
+
title: "Limit Admins to Only Submit on Behalf of Primary Users",
|
|
124
|
+
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.",
|
|
125
|
+
defaultNew: false,
|
|
126
|
+
default: false
|
|
127
|
+
}, {
|
|
128
|
+
key: values.featureKey,
|
|
129
|
+
widget: true,
|
|
130
|
+
main: true,
|
|
131
|
+
hideOnTabNumbers: [],
|
|
132
|
+
optionKey: values.optionDisableAddressAutoPopulate,
|
|
133
|
+
type: "toggle",
|
|
134
|
+
inverseOption: false,
|
|
135
|
+
title: "Do not auto-fill the user's address",
|
|
136
|
+
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."),
|
|
124
137
|
defaultNew: false,
|
|
125
138
|
default: false
|
|
126
139
|
}],
|
|
@@ -133,20 +146,20 @@
|
|
|
133
146
|
url: values.routeRequestsHub,
|
|
134
147
|
countProps: null,
|
|
135
148
|
visibleExps: {
|
|
136
|
-
type:
|
|
149
|
+
type: "and",
|
|
137
150
|
exps: [{
|
|
138
|
-
type:
|
|
151
|
+
type: "feature",
|
|
139
152
|
value: values.featureKey
|
|
140
153
|
}, {
|
|
141
|
-
type:
|
|
154
|
+
type: "or",
|
|
142
155
|
exps: [{
|
|
143
|
-
type:
|
|
156
|
+
type: "permission",
|
|
144
157
|
value: values.permissionMaintenanceTracking
|
|
145
158
|
}, {
|
|
146
|
-
type:
|
|
159
|
+
type: "permission",
|
|
147
160
|
value: values.permissionMaintenanceTypes
|
|
148
161
|
}, {
|
|
149
|
-
type:
|
|
162
|
+
type: "permission",
|
|
150
163
|
value: values.permissionMaintenanceAssignment
|
|
151
164
|
}]
|
|
152
165
|
}]
|
|
@@ -205,21 +218,21 @@
|
|
|
205
218
|
exact: true
|
|
206
219
|
}],
|
|
207
220
|
env: {
|
|
208
|
-
baseStage:
|
|
209
|
-
baseAPIUrl:
|
|
210
|
-
baseUploadsUrl:
|
|
211
|
-
uploadBucket:
|
|
212
|
-
colourBrandingMain:
|
|
213
|
-
colourBrandingOff:
|
|
214
|
-
colourBrandingApp:
|
|
215
|
-
defaultProfileImage:
|
|
216
|
-
utcOffset:
|
|
221
|
+
baseStage: "",
|
|
222
|
+
baseAPIUrl: "",
|
|
223
|
+
baseUploadsUrl: "",
|
|
224
|
+
uploadBucket: "",
|
|
225
|
+
colourBrandingMain: "",
|
|
226
|
+
colourBrandingOff: "",
|
|
227
|
+
colourBrandingApp: "",
|
|
228
|
+
defaultProfileImage: "",
|
|
229
|
+
utcOffset: "",
|
|
217
230
|
hasAvailableNews: false,
|
|
218
231
|
newsHaveTags: true,
|
|
219
232
|
defaultAllowComments: true,
|
|
220
|
-
makeApiKey:
|
|
221
|
-
logo:
|
|
222
|
-
clientName:
|
|
233
|
+
makeApiKey: "",
|
|
234
|
+
logo: "",
|
|
235
|
+
clientName: ""
|
|
223
236
|
},
|
|
224
237
|
init: environment => {
|
|
225
238
|
FeatureConfig.env = environment;
|
|
@@ -4287,7 +4300,7 @@
|
|
|
4287
4300
|
if (response.data.user.phoneNumber) {
|
|
4288
4301
|
contactUpdate.phone = response.data.user.phoneNumber;
|
|
4289
4302
|
}
|
|
4290
|
-
if (response.data.user.unit) {
|
|
4303
|
+
if (!this.props.disableAddressAutoPopulate && response.data.user.unit) {
|
|
4291
4304
|
contactUpdate.room = response.data.user.unit;
|
|
4292
4305
|
}
|
|
4293
4306
|
// Update contact fields when data arrives
|
|
@@ -5123,7 +5136,8 @@
|
|
|
5123
5136
|
return {
|
|
5124
5137
|
auth,
|
|
5125
5138
|
strings: state.strings && state.strings.config || {},
|
|
5126
|
-
optionOnlyForResidents: Helper$1.getSiteSettingFromState(state, values.optionOnlyForResidents)
|
|
5139
|
+
optionOnlyForResidents: Helper$1.getSiteSettingFromState(state, values.optionOnlyForResidents),
|
|
5140
|
+
disableAddressAutoPopulate: Helper$1.getSiteSettingFromState(state, values.optionDisableAddressAutoPopulate)
|
|
5127
5141
|
};
|
|
5128
5142
|
};
|
|
5129
5143
|
var AddJob$1 = reactRedux.connect(mapStateToProps$2, {
|
package/package.json
CHANGED