@plusscommunities/pluss-maintenance-web-forms 1.3.0-beta.0 → 1.3.2-beta.0
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.js +14 -30
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import moment from 'moment';
|
|
|
8
8
|
import { Icon } from '@plusscommunities/pluss-icons';
|
|
9
9
|
import * as PlussCore from '@plusscommunities/pluss-core-web';
|
|
10
10
|
import { PERMISSION_CATEGORIES, IMPORTANCE_LEVELS, Colours as Colours$4 } from '@plusscommunities/pluss-core-web';
|
|
11
|
-
import { Table
|
|
11
|
+
import { Table } from 'react-bootstrap';
|
|
12
12
|
import { Link } from 'react-router-dom';
|
|
13
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
14
|
import Textarea from 'react-textarea-autosize';
|
|
@@ -4693,21 +4693,14 @@ class AddJob extends Component {
|
|
|
4693
4693
|
}, 100);
|
|
4694
4694
|
}
|
|
4695
4695
|
}
|
|
4696
|
-
|
|
4696
|
+
getTypeOptions() {
|
|
4697
4697
|
var {
|
|
4698
|
-
types
|
|
4699
|
-
type
|
|
4698
|
+
types
|
|
4700
4699
|
} = this.state;
|
|
4701
|
-
return types.map(ev => {
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
active: type === ev.typeName,
|
|
4706
|
-
children: ev.typeName
|
|
4707
|
-
}, ev.typeName);
|
|
4708
|
-
}
|
|
4709
|
-
return null;
|
|
4710
|
-
});
|
|
4700
|
+
return types.filter(Boolean).map(ev => ({
|
|
4701
|
+
Key: ev.typeName,
|
|
4702
|
+
Title: ev.typeName
|
|
4703
|
+
}));
|
|
4711
4704
|
}
|
|
4712
4705
|
renderSuccess() {
|
|
4713
4706
|
if (!this.state.success) return null;
|
|
@@ -5184,23 +5177,14 @@ class AddJob extends Component {
|
|
|
5184
5177
|
showError: () => {
|
|
5185
5178
|
return this.state.showWarnings && _.isEmpty(this.state.room);
|
|
5186
5179
|
}
|
|
5187
|
-
}), /*#__PURE__*/
|
|
5188
|
-
|
|
5180
|
+
}), /*#__PURE__*/jsx(Components$2.DropdownInput, {
|
|
5181
|
+
label: values.textJobType,
|
|
5182
|
+
value: this.state.type,
|
|
5183
|
+
options: this.getTypeOptions(),
|
|
5184
|
+
onSelect: this.onSelectType,
|
|
5185
|
+
style: {
|
|
5189
5186
|
marginBottom: 15
|
|
5190
|
-
}
|
|
5191
|
-
children: [/*#__PURE__*/jsx(Components$2.Text, {
|
|
5192
|
-
type: "formLabel",
|
|
5193
|
-
children: values.textJobType
|
|
5194
|
-
}), /*#__PURE__*/jsx(DropdownButton, {
|
|
5195
|
-
style: {
|
|
5196
|
-
minWidth: 80
|
|
5197
|
-
},
|
|
5198
|
-
bsStyle: "default",
|
|
5199
|
-
title: this.state.type,
|
|
5200
|
-
id: "typeSelect",
|
|
5201
|
-
onSelect: this.onSelectType,
|
|
5202
|
-
children: this.renderTypeOptions()
|
|
5203
|
-
})]
|
|
5187
|
+
}
|
|
5204
5188
|
}), !_.isEmpty(customFields) || values.forceCustomFields ? this.renderCustomFields() : this.renderDefaultFields()]
|
|
5205
5189
|
})
|
|
5206
5190
|
});
|