@kineticdata/bundle-queue 6.0.1 → 6.0.2
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/lib/App.js +1 -2
- package/lib/components/FormPreview.js +6 -11
- package/lib/components/filter_menu/FilterMenuAbstract.js +6 -11
- package/lib/components/filter_menu/FilterMenuModal.js +1 -2
- package/lib/components/filter_menu/FilterMenuToolbar.js +3 -5
- package/lib/components/new_item_menu/NewItemMenu.js +2 -3
- package/lib/components/new_item_menu/NewItemMenuContainer.js +2 -3
- package/lib/components/queue_item/AssignmentBadge.js +2 -3
- package/lib/components/queue_item/QueueItem.js +5 -9
- package/lib/components/queue_item/QueueItemDetails.js +5 -9
- package/lib/components/queue_item/ViewOriginalRequest.js +3 -5
- package/lib/components/queue_list/BulkAssignModal.js +2 -3
- package/lib/components/queue_list/BulkStatusModal.js +2 -3
- package/lib/components/queue_list/BulkWorkModal.js +2 -3
- package/lib/components/queue_list/QueueList.js +2 -3
- package/lib/components/queue_list/QueueListContainer.js +2 -3
- package/lib/components/queue_list/QueueListItem.js +3 -5
- package/lib/components/queue_list/QueueListPagination.js +3 -5
- package/lib/components/queue_list/QueueListSelection.js +3 -5
- package/lib/components/queue_list/QueueListSidebar.js +2 -3
- package/lib/components/settings/QueueSettings.js +3 -5
- package/lib/components/settings/Settings.js +3 -6
- package/lib/components/settings/Sidebar.js +3 -6
- package/lib/components/settings/forms/Export.js +2 -3
- package/lib/components/settings/forms/ExportModal.js +1 -2
- package/lib/components/settings/forms/FormActivity.js +3 -5
- package/lib/components/settings/forms/FormList.js +3 -5
- package/lib/components/settings/forms/FormSettings.js +4 -7
- package/lib/components/settings/forms/FormSubmissions.js +3 -5
- package/lib/components/shared/AssignmentItem.js +2 -3
- package/lib/components/shared/AssignmentSelector.js +2 -3
- package/lib/components/shared/PageTitle.js +3 -5
- package/lib/components/shared/StatusContent.js +4 -7
- package/lib/components/shared/WallyButton.js +5 -9
- package/lib/components/work_menu/WorkMenu.js +5 -9
- package/lib/index.js +3 -2
- package/lib/models.js +2 -3
- package/lib/records.js +11 -21
- package/lib/redux/modules/app.js +4 -7
- package/lib/redux/modules/filterMenu.js +5 -9
- package/lib/redux/modules/forms.js +5 -9
- package/lib/redux/modules/queue.js +4 -8
- package/lib/redux/modules/queueApp.js +11 -19
- package/lib/redux/modules/settingsForms.js +18 -33
- package/lib/redux/modules/settingsQueue.js +5 -9
- package/lib/redux/modules/workMenu.js +5 -9
- package/lib/redux/reducers.js +2 -3
- package/lib/redux/sagas/app.js +11 -15
- package/lib/redux/sagas/forms.js +38 -42
- package/lib/redux/sagas/queue.js +410 -432
- package/lib/redux/sagas/queueApp.js +106 -113
- package/lib/redux/sagas/settingsForms.js +484 -508
- package/lib/redux/sagas/settingsQueue.js +232 -248
- package/lib/redux/sagas.js +7 -9
- package/lib/redux/store.js +5 -9
- package/lib/utils.js +2 -3
- package/package.json +58 -57
|
@@ -108,7 +108,7 @@ var mapDispatchToProps = {
|
|
|
108
108
|
fetchAllSubmissions: _settingsForms.actions.fetchAllSubmissions,
|
|
109
109
|
setExportSubmissions: _settingsForms.actions.setExportSubmissions
|
|
110
110
|
};
|
|
111
|
-
var Export = (0, _recompose.compose)((0, _store.connect)(mapStateToProps, mapDispatchToProps), (0, _recompose.withState)('exportStatus', 'setExportStatus', 'NOT_STARTED'), (0, _recompose.withHandlers)({
|
|
111
|
+
var Export = exports.Export = (0, _recompose.compose)((0, _store.connect)(mapStateToProps, mapDispatchToProps), (0, _recompose.withState)('exportStatus', 'setExportStatus', 'NOT_STARTED'), (0, _recompose.withHandlers)({
|
|
112
112
|
handleDownload: handleDownload
|
|
113
113
|
}), (0, _recompose.lifecycle)({
|
|
114
114
|
componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
|
|
@@ -124,5 +124,4 @@ var Export = (0, _recompose.compose)((0, _store.connect)(mapStateToProps, mapDis
|
|
|
124
124
|
componentWillUnmount: function componentWillUnmount() {
|
|
125
125
|
this.props.setExportSubmissions([]);
|
|
126
126
|
}
|
|
127
|
-
}))(ExportComponent);
|
|
128
|
-
exports.Export = Export;
|
|
127
|
+
}))(ExportComponent);
|
|
@@ -48,5 +48,4 @@ var mapStateToProps = function mapStateToProps(state) {
|
|
|
48
48
|
var mapDispatchToProps = {
|
|
49
49
|
closeModal: _settingsForms.actions.closeModal
|
|
50
50
|
};
|
|
51
|
-
var ExportModal = (0, _store.connect)(mapStateToProps, mapDispatchToProps)(ExportModalComponent);
|
|
52
|
-
exports.ExportModal = ExportModal;
|
|
51
|
+
var ExportModal = exports.ExportModal = (0, _store.connect)(mapStateToProps, mapDispatchToProps)(ExportModalComponent);
|
|
@@ -14,7 +14,7 @@ var _settingsForms = require("../../../redux/modules/settingsForms");
|
|
|
14
14
|
var _react2 = require("@kineticdata/react");
|
|
15
15
|
var _store = require("../../../redux/store");
|
|
16
16
|
var _PageTitle = require("../../shared/PageTitle");
|
|
17
|
-
var FormActivityContainer = function FormActivityContainer(_ref) {
|
|
17
|
+
var FormActivityContainer = exports.FormActivityContainer = function FormActivityContainer(_ref) {
|
|
18
18
|
var loading = _ref.loading,
|
|
19
19
|
submission = _ref.submission,
|
|
20
20
|
kapp = _ref.kapp,
|
|
@@ -114,7 +114,6 @@ var FormActivityContainer = function FormActivityContainer(_ref) {
|
|
|
114
114
|
}, field.name)), /*#__PURE__*/_react["default"].createElement("td", null, submission.values[field.name]));
|
|
115
115
|
})))))));
|
|
116
116
|
};
|
|
117
|
-
exports.FormActivityContainer = FormActivityContainer;
|
|
118
117
|
var mapStateToProps = function mapStateToProps(state) {
|
|
119
118
|
return {
|
|
120
119
|
loading: state.settingsForms.submissionLoading,
|
|
@@ -127,11 +126,10 @@ var mapStateToProps = function mapStateToProps(state) {
|
|
|
127
126
|
var mapDispatchToProps = {
|
|
128
127
|
fetchFormSubmission: _settingsForms.actions.fetchFormSubmission
|
|
129
128
|
};
|
|
130
|
-
var FormActivity = (0, _recompose.compose)((0, _store.connect)(mapStateToProps, mapDispatchToProps), (0, _recompose.lifecycle)({
|
|
129
|
+
var FormActivity = exports.FormActivity = (0, _recompose.compose)((0, _store.connect)(mapStateToProps, mapDispatchToProps), (0, _recompose.lifecycle)({
|
|
131
130
|
componentWillMount: function componentWillMount() {
|
|
132
131
|
this.props.fetchFormSubmission({
|
|
133
132
|
id: this.props.id
|
|
134
133
|
});
|
|
135
134
|
}
|
|
136
|
-
}))(FormActivityContainer);
|
|
137
|
-
exports.FormActivity = FormActivity;
|
|
135
|
+
}))(FormActivityContainer);
|
|
@@ -126,7 +126,7 @@ var CloneErrorFormLayout = function CloneErrorFormLayout() {
|
|
|
126
126
|
disabled: true
|
|
127
127
|
}, /*#__PURE__*/_react["default"].createElement(_react2.I18n, null, "Create Form"))));
|
|
128
128
|
};
|
|
129
|
-
var FormListComponent = function FormListComponent(_ref5) {
|
|
129
|
+
var FormListComponent = exports.FormListComponent = function FormListComponent(_ref5) {
|
|
130
130
|
var kapp = _ref5.kapp,
|
|
131
131
|
processing = _ref5.processing,
|
|
132
132
|
modalOpen = _ref5.modalOpen,
|
|
@@ -323,7 +323,6 @@ var FormListComponent = function FormListComponent(_ref5) {
|
|
|
323
323
|
})));
|
|
324
324
|
});
|
|
325
325
|
};
|
|
326
|
-
exports.FormListComponent = FormListComponent;
|
|
327
326
|
var mapStateToProps = function mapStateToProps(state) {
|
|
328
327
|
return {
|
|
329
328
|
kapp: state.app.kapp,
|
|
@@ -339,7 +338,7 @@ var mapDispatchToProps = {
|
|
|
339
338
|
};
|
|
340
339
|
|
|
341
340
|
// Settings Container
|
|
342
|
-
var FormList = (0, _recompose.compose)((0, _store.connect)(mapStateToProps, mapDispatchToProps), (0, _recompose.withState)('modalOpen', 'setModalOpen', false), (0, _recompose.withState)('filterOpen', 'setFilterOpen', false), (0, _recompose.withHandlers)({
|
|
341
|
+
var FormList = exports.FormList = (0, _recompose.compose)((0, _store.connect)(mapStateToProps, mapDispatchToProps), (0, _recompose.withState)('modalOpen', 'setModalOpen', false), (0, _recompose.withState)('filterOpen', 'setFilterOpen', false), (0, _recompose.withHandlers)({
|
|
343
342
|
toggleModal: function toggleModal(props) {
|
|
344
343
|
return function (slug) {
|
|
345
344
|
return !slug || slug === props.modalOpen ? props.setModalOpen(false) : props.setModalOpen(slug);
|
|
@@ -371,5 +370,4 @@ var FormList = (0, _recompose.compose)((0, _store.connect)(mapStateToProps, mapD
|
|
|
371
370
|
componentWillUnmount: function componentWillUnmount() {
|
|
372
371
|
(0, _react2.unmountTable)(tableKey);
|
|
373
372
|
}
|
|
374
|
-
}))(FormListComponent);
|
|
375
|
-
exports.FormList = FormList;
|
|
373
|
+
}))(FormListComponent);
|
|
@@ -14,7 +14,7 @@ var _settingsForms = require("../../../redux/modules/settingsForms");
|
|
|
14
14
|
var _reactBeautifulDnd = require("react-beautiful-dnd");
|
|
15
15
|
var _PageTitle = require("../../shared/PageTitle");
|
|
16
16
|
var _immutable = require("immutable");
|
|
17
|
-
var FieldsTableField = function FieldsTableField(props) {
|
|
17
|
+
var FieldsTableField = exports.FieldsTableField = function FieldsTableField(props) {
|
|
18
18
|
return /*#__PURE__*/_react["default"].createElement("table", {
|
|
19
19
|
className: "table table-hover table--settings table-draggable"
|
|
20
20
|
}, /*#__PURE__*/_react["default"].createElement("thead", null, /*#__PURE__*/_react["default"].createElement("tr", {
|
|
@@ -60,7 +60,6 @@ var FieldsTableField = function FieldsTableField(props) {
|
|
|
60
60
|
colSpan: "2"
|
|
61
61
|
}, /*#__PURE__*/_react["default"].createElement("small", null, props.helpText)))));
|
|
62
62
|
};
|
|
63
|
-
exports.FieldsTableField = FieldsTableField;
|
|
64
63
|
var fieldSet = ['name', 'slug', 'status', 'type', 'submissionLabelExpression', 'description', 'attributesMap', 'submissionTableFields', 'prohibitSubtasks', 'permittedSubtasks', 'owningTeam', 'allowReassignment', 'assignableTeams', 'notificationComplete', 'notificationCreate'];
|
|
65
64
|
var FormLayout = function FormLayout(_ref2) {
|
|
66
65
|
var fields = _ref2.fields,
|
|
@@ -88,7 +87,7 @@ var asArray = function asArray(value) {
|
|
|
88
87
|
return value ? [value] : [];
|
|
89
88
|
};
|
|
90
89
|
var notificationSearch = new _react2.SubmissionSearch(true).index('values[Name]').includes(['values']).limit(1000).build();
|
|
91
|
-
var FormSettingsComponent = function FormSettingsComponent(_ref3) {
|
|
90
|
+
var FormSettingsComponent = exports.FormSettingsComponent = function FormSettingsComponent(_ref3) {
|
|
92
91
|
var form = _ref3.form,
|
|
93
92
|
kapp = _ref3.kapp,
|
|
94
93
|
onSave = _ref3.onSave;
|
|
@@ -273,7 +272,6 @@ var FormSettingsComponent = function FormSettingsComponent(_ref3) {
|
|
|
273
272
|
}, formContent) : /*#__PURE__*/_react["default"].createElement(_bundleCommon.LoadingMessage, null)));
|
|
274
273
|
});
|
|
275
274
|
};
|
|
276
|
-
exports.FormSettingsComponent = FormSettingsComponent;
|
|
277
275
|
var mapStateToProps = function mapStateToProps(state) {
|
|
278
276
|
return {
|
|
279
277
|
kapp: state.app.kapp
|
|
@@ -282,7 +280,7 @@ var mapStateToProps = function mapStateToProps(state) {
|
|
|
282
280
|
var mapDispatchToProps = {
|
|
283
281
|
fetchFormRequest: _settingsForms.actions.fetchForm
|
|
284
282
|
};
|
|
285
|
-
var FormSettings = (0, _recompose.compose)((0, _store.connect)(mapStateToProps, mapDispatchToProps), (0, _recompose.withHandlers)({
|
|
283
|
+
var FormSettings = exports.FormSettings = (0, _recompose.compose)((0, _store.connect)(mapStateToProps, mapDispatchToProps), (0, _recompose.withHandlers)({
|
|
286
284
|
onSave: function onSave(props) {
|
|
287
285
|
return function () {
|
|
288
286
|
return function () {
|
|
@@ -294,5 +292,4 @@ var FormSettings = (0, _recompose.compose)((0, _store.connect)(mapStateToProps,
|
|
|
294
292
|
};
|
|
295
293
|
};
|
|
296
294
|
}
|
|
297
|
-
}))(FormSettingsComponent);
|
|
298
|
-
exports.FormSettings = FormSettings;
|
|
295
|
+
}))(FormSettingsComponent);
|
|
@@ -31,7 +31,7 @@ var EmptyBodyRow = _bundleCommon.TableComponents.generateEmptyBodyRow({
|
|
|
31
31
|
noSearchResultsMessage: 'No submissions were found - please modify your search criteria',
|
|
32
32
|
noItemsMessage: 'There are no submissions to display.'
|
|
33
33
|
});
|
|
34
|
-
var FormSubmissionsComponent = function FormSubmissionsComponent(_ref2) {
|
|
34
|
+
var FormSubmissionsComponent = exports.FormSubmissionsComponent = function FormSubmissionsComponent(_ref2) {
|
|
35
35
|
var kapp = _ref2.kapp,
|
|
36
36
|
form = _ref2.form,
|
|
37
37
|
columns = _ref2.columns,
|
|
@@ -169,7 +169,6 @@ var FormSubmissionsComponent = function FormSubmissionsComponent(_ref2) {
|
|
|
169
169
|
}));
|
|
170
170
|
});
|
|
171
171
|
};
|
|
172
|
-
exports.FormSubmissionsComponent = FormSubmissionsComponent;
|
|
173
172
|
var mapStateToProps = function mapStateToProps(state) {
|
|
174
173
|
return {
|
|
175
174
|
kapp: state.app.kapp
|
|
@@ -178,7 +177,7 @@ var mapStateToProps = function mapStateToProps(state) {
|
|
|
178
177
|
var mapDispatchToProps = {
|
|
179
178
|
openModal: _settingsForms.actions.openModal
|
|
180
179
|
};
|
|
181
|
-
var FormSubmissions = (0, _recompose.compose)((0, _store.connect)(mapStateToProps, mapDispatchToProps), (0, _recompose.withState)('filterOpen', 'setFilterOpen', false), (0, _recompose.withProps)(function (props) {
|
|
180
|
+
var FormSubmissions = exports.FormSubmissions = (0, _recompose.compose)((0, _store.connect)(mapStateToProps, mapDispatchToProps), (0, _recompose.withState)('filterOpen', 'setFilterOpen', false), (0, _recompose.withProps)(function (props) {
|
|
182
181
|
return {
|
|
183
182
|
columns: (0, _settingsForms.buildFormConfigurationObject)(props.form).columns
|
|
184
183
|
};
|
|
@@ -189,5 +188,4 @@ var FormSubmissions = (0, _recompose.compose)((0, _store.connect)(mapStateToProp
|
|
|
189
188
|
componentWillUnmount: function componentWillUnmount() {
|
|
190
189
|
(0, _react2.unmountTable)(tableKey);
|
|
191
190
|
}
|
|
192
|
-
}))(FormSubmissionsComponent);
|
|
193
|
-
exports.FormSubmissions = FormSubmissions;
|
|
191
|
+
}))(FormSubmissionsComponent);
|
|
@@ -12,7 +12,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inhe
|
|
|
12
12
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createSuper"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
/* eslint-disable react/prefer-stateless-function */
|
|
15
|
-
var AssignmentItem = /*#__PURE__*/function (_Component) {
|
|
15
|
+
var AssignmentItem = exports.AssignmentItem = /*#__PURE__*/function (_Component) {
|
|
16
16
|
(0, _inherits2["default"])(AssignmentItem, _Component);
|
|
17
17
|
var _super = (0, _createSuper2["default"])(AssignmentItem);
|
|
18
18
|
function AssignmentItem() {
|
|
@@ -35,5 +35,4 @@ var AssignmentItem = /*#__PURE__*/function (_Component) {
|
|
|
35
35
|
}
|
|
36
36
|
}]);
|
|
37
37
|
return AssignmentItem;
|
|
38
|
-
}(_react.Component);
|
|
39
|
-
exports.AssignmentItem = AssignmentItem;
|
|
38
|
+
}(_react.Component);
|
|
@@ -16,7 +16,7 @@ var _reactAutocomplete = _interopRequireDefault(require("react-autocomplete"));
|
|
|
16
16
|
var _AssignmentItem = require("./AssignmentItem");
|
|
17
17
|
var _react2 = require("@kineticdata/react");
|
|
18
18
|
/* eslint-disable class-methods-use-this */
|
|
19
|
-
var AssignmentSelector = /*#__PURE__*/function (_Component) {
|
|
19
|
+
var AssignmentSelector = exports.AssignmentSelector = /*#__PURE__*/function (_Component) {
|
|
20
20
|
(0, _inherits2["default"])(AssignmentSelector, _Component);
|
|
21
21
|
var _super = (0, _createSuper2["default"])(AssignmentSelector);
|
|
22
22
|
function AssignmentSelector(props) {
|
|
@@ -144,5 +144,4 @@ var AssignmentSelector = /*#__PURE__*/function (_Component) {
|
|
|
144
144
|
}
|
|
145
145
|
}]);
|
|
146
146
|
return AssignmentSelector;
|
|
147
|
-
}(_react.Component);
|
|
148
|
-
exports.AssignmentSelector = AssignmentSelector;
|
|
147
|
+
}(_react.Component);
|
|
@@ -12,13 +12,12 @@ var _store = require("../../redux/store");
|
|
|
12
12
|
var _recompose = require("recompose");
|
|
13
13
|
var _bundleCommon = require("@kineticdata/bundle-common");
|
|
14
14
|
var _excluded = ["parts"];
|
|
15
|
-
var mapStateToProps = function mapStateToProps(state) {
|
|
15
|
+
var mapStateToProps = exports.mapStateToProps = function mapStateToProps(state) {
|
|
16
16
|
return {
|
|
17
17
|
kapp: (0, _bundleCommon.selectCurrentKapp)(state)
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
exports.
|
|
21
|
-
var PageTitle = (0, _recompose.compose)((0, _store.connect)(mapStateToProps), (0, _recompose.withProps)(function (_ref) {
|
|
20
|
+
var PageTitle = exports.PageTitle = (0, _recompose.compose)((0, _store.connect)(mapStateToProps), (0, _recompose.withProps)(function (_ref) {
|
|
22
21
|
var _ref$parts = _ref.parts,
|
|
23
22
|
parts = _ref$parts === void 0 ? [] : _ref$parts,
|
|
24
23
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
@@ -31,5 +30,4 @@ var PageTitle = (0, _recompose.compose)((0, _store.connect)(mapStateToProps), (0
|
|
|
31
30
|
Link: _router.Link
|
|
32
31
|
}
|
|
33
32
|
}));
|
|
34
|
-
});
|
|
35
|
-
exports.PageTitle = PageTitle;
|
|
33
|
+
});
|
|
@@ -11,7 +11,7 @@ var _react2 = require("@kineticdata/react");
|
|
|
11
11
|
var getStatusClass = function getStatusClass(status) {
|
|
12
12
|
return "badge badge-".concat(status === 'Open' ? 'info' : status === 'Pending' ? 'warning' : status === 'Complete' ? 'danger' : 'subtle', " badge-stylized");
|
|
13
13
|
};
|
|
14
|
-
var getStatusReason = function getStatusReason(queueItem) {
|
|
14
|
+
var getStatusReason = exports.getStatusReason = function getStatusReason(queueItem) {
|
|
15
15
|
switch (queueItem.values.Status) {
|
|
16
16
|
case 'Pending':
|
|
17
17
|
return queueItem.values['Pending Reason'];
|
|
@@ -23,8 +23,7 @@ var getStatusReason = function getStatusReason(queueItem) {
|
|
|
23
23
|
return null;
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
exports.
|
|
27
|
-
var StatusBadge = function StatusBadge(_ref) {
|
|
26
|
+
var StatusBadge = exports.StatusBadge = function StatusBadge(_ref) {
|
|
28
27
|
var queueItem = _ref.queueItem,
|
|
29
28
|
withReason = _ref.withReason;
|
|
30
29
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -33,8 +32,7 @@ var StatusBadge = function StatusBadge(_ref) {
|
|
|
33
32
|
className: "status-reason ml-2"
|
|
34
33
|
}, getStatusReason(queueItem)));
|
|
35
34
|
};
|
|
36
|
-
exports.
|
|
37
|
-
var StatusContent = function StatusContent(_ref2) {
|
|
35
|
+
var StatusContent = exports.StatusContent = function StatusContent(_ref2) {
|
|
38
36
|
var queueItem = _ref2.queueItem,
|
|
39
37
|
prev = _ref2.prev,
|
|
40
38
|
next = _ref2.next;
|
|
@@ -63,5 +61,4 @@ var StatusContent = function StatusContent(_ref2) {
|
|
|
63
61
|
className: "fa fa-fw fa-caret-right",
|
|
64
62
|
role: "presentation"
|
|
65
63
|
}))));
|
|
66
|
-
};
|
|
67
|
-
exports.StatusContent = StatusContent;
|
|
64
|
+
};
|
|
@@ -20,7 +20,7 @@ var getButtonMode = function getButtonMode(queueItem, profile) {
|
|
|
20
20
|
return 'Grab';
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
var WallyButton = function WallyButton(_ref) {
|
|
23
|
+
var WallyButton = exports.WallyButton = function WallyButton(_ref) {
|
|
24
24
|
var className = _ref.className,
|
|
25
25
|
buttonMode = _ref.buttonMode,
|
|
26
26
|
handleClick = _ref.handleClick;
|
|
@@ -30,19 +30,16 @@ var WallyButton = function WallyButton(_ref) {
|
|
|
30
30
|
onClick: handleClick
|
|
31
31
|
}, /*#__PURE__*/_react["default"].createElement(_react2.I18n, null, buttonMode, " It"));
|
|
32
32
|
};
|
|
33
|
-
exports.
|
|
34
|
-
var mapStateToProps = function mapStateToProps(state) {
|
|
33
|
+
var mapStateToProps = exports.mapStateToProps = function mapStateToProps(state) {
|
|
35
34
|
return {
|
|
36
35
|
profile: state.app.profile
|
|
37
36
|
};
|
|
38
37
|
};
|
|
39
|
-
exports.
|
|
40
|
-
var mapDispatchToProps = {
|
|
38
|
+
var mapDispatchToProps = exports.mapDispatchToProps = {
|
|
41
39
|
openWorkMenu: _workMenu.actions.openWorkMenu,
|
|
42
40
|
updateQueueItem: _queue.actions.updateQueueItem
|
|
43
41
|
};
|
|
44
|
-
exports.
|
|
45
|
-
var WallyButtonContainer = (0, _recompose.compose)((0, _store.connect)(mapStateToProps, mapDispatchToProps), (0, _recompose.withProps)(function (props) {
|
|
42
|
+
var WallyButtonContainer = exports.WallyButtonContainer = (0, _recompose.compose)((0, _store.connect)(mapStateToProps, mapDispatchToProps), (0, _recompose.withProps)(function (props) {
|
|
46
43
|
return {
|
|
47
44
|
buttonMode: getButtonMode(props.queueItem, props.profile)
|
|
48
45
|
};
|
|
@@ -63,5 +60,4 @@ var WallyButtonContainer = (0, _recompose.compose)((0, _store.connect)(mapStateT
|
|
|
63
60
|
}
|
|
64
61
|
};
|
|
65
62
|
}
|
|
66
|
-
}))(WallyButton);
|
|
67
|
-
exports.WallyButtonContainer = WallyButtonContainer;
|
|
63
|
+
}))(WallyButton);
|
|
@@ -11,7 +11,7 @@ var _workMenu = require("../../redux/modules/workMenu");
|
|
|
11
11
|
var _reactstrap = require("reactstrap");
|
|
12
12
|
var _react2 = require("@kineticdata/react");
|
|
13
13
|
var _store = require("../../redux/store");
|
|
14
|
-
var WorkMenu = function WorkMenu(_ref) {
|
|
14
|
+
var WorkMenu = exports.WorkMenu = function WorkMenu(_ref) {
|
|
15
15
|
var queueItem = _ref.queueItem,
|
|
16
16
|
complete = _ref.complete,
|
|
17
17
|
mode = _ref.mode,
|
|
@@ -50,19 +50,16 @@ var WorkMenu = function WorkMenu(_ref) {
|
|
|
50
50
|
context: "kapps.".concat(queueItem.form.kapp.slug, ".forms.").concat(queueItem.form.slug)
|
|
51
51
|
}, queueItem.form.name))));
|
|
52
52
|
};
|
|
53
|
-
exports.
|
|
54
|
-
var mapStateToProps = function mapStateToProps(state) {
|
|
53
|
+
var mapStateToProps = exports.mapStateToProps = function mapStateToProps(state) {
|
|
55
54
|
return {
|
|
56
55
|
queueItem: state.workMenu.queueItem,
|
|
57
56
|
onWorked: state.workMenu.onWorked
|
|
58
57
|
};
|
|
59
58
|
};
|
|
60
|
-
exports.
|
|
61
|
-
var mapDispatchToProps = {
|
|
59
|
+
var mapDispatchToProps = exports.mapDispatchToProps = {
|
|
62
60
|
closeWorkMenu: _workMenu.actions.closeWorkMenu
|
|
63
61
|
};
|
|
64
|
-
exports.
|
|
65
|
-
var WorkMenuContainer = (0, _recompose.compose)((0, _store.connect)(mapStateToProps, mapDispatchToProps), (0, _recompose.withState)('complete', 'setComplete', false), (0, _recompose.withProps)(function (_ref2) {
|
|
62
|
+
var WorkMenuContainer = exports.WorkMenuContainer = (0, _recompose.compose)((0, _store.connect)(mapStateToProps, mapDispatchToProps), (0, _recompose.withState)('complete', 'setComplete', false), (0, _recompose.withProps)(function (_ref2) {
|
|
66
63
|
var queueItem = _ref2.queueItem;
|
|
67
64
|
return {
|
|
68
65
|
mode: queueItem && queueItem.coreState === 'Draft' ? 'Work' : 'Review'
|
|
@@ -117,5 +114,4 @@ var WorkMenuContainer = (0, _recompose.compose)((0, _store.connect)(mapStateToPr
|
|
|
117
114
|
};
|
|
118
115
|
}
|
|
119
116
|
};
|
|
120
|
-
}))(WorkMenu);
|
|
121
|
-
exports.WorkMenuContainer = WorkMenuContainer;
|
|
117
|
+
}))(WorkMenu);
|
package/lib/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var _store = require("./redux/store");
|
|
|
26
26
|
var _app = require("./redux/modules/app");
|
|
27
27
|
var _App = require("./App");
|
|
28
28
|
var _QueueListItem = require("./components/queue_list/QueueListItem");
|
|
29
|
-
var _default = /*#__PURE__*/function (_Component) {
|
|
29
|
+
var _default = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
30
30
|
(0, _inherits2["default"])(_default, _Component);
|
|
31
31
|
var _super = (0, _createSuper2["default"])(_default);
|
|
32
32
|
function _default(props) {
|
|
@@ -90,7 +90,8 @@ var _default = /*#__PURE__*/function (_Component) {
|
|
|
90
90
|
}]);
|
|
91
91
|
return _default;
|
|
92
92
|
}(_react.Component);
|
|
93
|
-
exports["default"] = _default;
|
|
94
93
|
_default.hasPublicRoutes = false;
|
|
94
|
+
// Class that will be added to the body when this package is rendered
|
|
95
95
|
_default.bodyClassName = 'package--queue';
|
|
96
|
+
// Relative route to package settings page
|
|
96
97
|
_default.settingsRoute = '/settings';
|
package/lib/models.js
CHANGED
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.Form = void 0;
|
|
8
8
|
var _bundleCommon = require("@kineticdata/bundle-common");
|
|
9
9
|
var constants = _interopRequireWildcard(require("./constants"));
|
|
10
|
-
var Form = function Form(object) {
|
|
10
|
+
var Form = exports.Form = function Form(object) {
|
|
11
11
|
return {
|
|
12
12
|
name: object.name,
|
|
13
13
|
slug: object.slug,
|
|
@@ -22,5 +22,4 @@ var Form = function Form(object) {
|
|
|
22
22
|
updatedAt: object.updatedAt,
|
|
23
23
|
kapp: object.kapp
|
|
24
24
|
};
|
|
25
|
-
};
|
|
26
|
-
exports.Form = Form;
|
|
25
|
+
};
|
package/lib/records.js
CHANGED
|
@@ -8,33 +8,26 @@ exports.isActiveStatus = exports.filterReviver = exports.VALID_STATUSES = export
|
|
|
8
8
|
var _immutable = require("immutable");
|
|
9
9
|
var _isarray = _interopRequireDefault(require("isarray"));
|
|
10
10
|
var _isobject = _interopRequireDefault(require("isobject"));
|
|
11
|
-
var Profile = (0, _immutable.Record)({
|
|
11
|
+
var Profile = exports.Profile = (0, _immutable.Record)({
|
|
12
12
|
displayName: '',
|
|
13
13
|
username: '',
|
|
14
14
|
email: ''
|
|
15
15
|
});
|
|
16
|
-
exports.
|
|
17
|
-
var
|
|
18
|
-
exports.
|
|
19
|
-
var
|
|
20
|
-
exports.VALID_SORT_OPTIONS = VALID_SORT_OPTIONS;
|
|
21
|
-
var VALID_SORT_DIRECTION_OPTIONS = (0, _immutable.List)(['ASC', 'DESC']);
|
|
22
|
-
exports.VALID_SORT_DIRECTION_OPTIONS = VALID_SORT_DIRECTION_OPTIONS;
|
|
23
|
-
var isActiveStatus = function isActiveStatus(status) {
|
|
16
|
+
var VALID_STATUSES = exports.VALID_STATUSES = (0, _immutable.List)(['Open', 'Pending', 'Cancelled', 'Complete']);
|
|
17
|
+
var VALID_SORT_OPTIONS = exports.VALID_SORT_OPTIONS = (0, _immutable.List)(['createdAt', 'updatedAt', 'closedAt', 'Due Date']);
|
|
18
|
+
var VALID_SORT_DIRECTION_OPTIONS = exports.VALID_SORT_DIRECTION_OPTIONS = (0, _immutable.List)(['ASC', 'DESC']);
|
|
19
|
+
var isActiveStatus = exports.isActiveStatus = function isActiveStatus(status) {
|
|
24
20
|
return status !== 'Complete' && status !== 'Cancelled';
|
|
25
21
|
};
|
|
26
|
-
exports.
|
|
27
|
-
var VALID_ASSIGNMENT_OPTIONS = (0, _immutable.List)(['mine', 'unassigned']);
|
|
22
|
+
var VALID_ASSIGNMENT_OPTIONS = exports.VALID_ASSIGNMENT_OPTIONS = (0, _immutable.List)(['mine', 'unassigned']);
|
|
28
23
|
|
|
29
24
|
// Deprecated
|
|
30
|
-
exports.
|
|
31
|
-
var AssignmentCriteria = (0, _immutable.Record)({
|
|
25
|
+
var AssignmentCriteria = exports.AssignmentCriteria = (0, _immutable.Record)({
|
|
32
26
|
mine: false,
|
|
33
27
|
teammates: false,
|
|
34
28
|
unassigned: false
|
|
35
29
|
});
|
|
36
30
|
// Maps the deprecated AssignmentCriteria object to a valid assignment option
|
|
37
|
-
exports.AssignmentCriteria = AssignmentCriteria;
|
|
38
31
|
var assignmentCriteriaMapper = function assignmentCriteriaMapper(assignments) {
|
|
39
32
|
var assignmentCriteria = AssignmentCriteria(assignments);
|
|
40
33
|
if (assignmentCriteria.teammates || assignmentCriteria.mine && assignmentCriteria.unassigned) {
|
|
@@ -47,7 +40,7 @@ var assignmentCriteriaMapper = function assignmentCriteriaMapper(assignments) {
|
|
|
47
40
|
return '';
|
|
48
41
|
}
|
|
49
42
|
};
|
|
50
|
-
var DateRangeCriteria = (0, _immutable.Record)({
|
|
43
|
+
var DateRangeCriteria = exports.DateRangeCriteria = (0, _immutable.Record)({
|
|
51
44
|
// createdAt, updatedAt, closedAt
|
|
52
45
|
timeline: 'createdAt',
|
|
53
46
|
// 7days, 30days, 60days, 90days
|
|
@@ -56,8 +49,7 @@ var DateRangeCriteria = (0, _immutable.Record)({
|
|
|
56
49
|
start: '',
|
|
57
50
|
end: ''
|
|
58
51
|
});
|
|
59
|
-
exports.
|
|
60
|
-
var Filter = (0, _immutable.Record)({
|
|
52
|
+
var Filter = exports.Filter = (0, _immutable.Record)({
|
|
61
53
|
name: '',
|
|
62
54
|
slug: '',
|
|
63
55
|
icon: '',
|
|
@@ -73,8 +65,7 @@ var Filter = (0, _immutable.Record)({
|
|
|
73
65
|
dateRange: DateRangeCriteria(),
|
|
74
66
|
createdByMe: false
|
|
75
67
|
});
|
|
76
|
-
exports.
|
|
77
|
-
var filterReviver = function filterReviver(filterJSON) {
|
|
68
|
+
var filterReviver = exports.filterReviver = function filterReviver(filterJSON) {
|
|
78
69
|
try {
|
|
79
70
|
var filter = filterJSON;
|
|
80
71
|
if (typeof filterJSON === 'string') {
|
|
@@ -105,5 +96,4 @@ var filterReviver = function filterReviver(filterJSON) {
|
|
|
105
96
|
} catch (e) {
|
|
106
97
|
return null;
|
|
107
98
|
}
|
|
108
|
-
};
|
|
109
|
-
exports.filterReviver = filterReviver;
|
|
99
|
+
};
|
package/lib/redux/modules/app.js
CHANGED
|
@@ -8,11 +8,10 @@ exports.types = exports.syncAppState = exports.reducer = void 0;
|
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
9
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
10
|
var _store = require("../store");
|
|
11
|
-
var types = {
|
|
11
|
+
var types = exports.types = {
|
|
12
12
|
SYNC_APP_STATE: 'SYNC_APP_STATE'
|
|
13
13
|
};
|
|
14
|
-
exports.
|
|
15
|
-
var reducer = function reducer() {
|
|
14
|
+
var reducer = exports.reducer = function reducer() {
|
|
16
15
|
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
17
16
|
var action = arguments.length > 1 ? arguments[1] : undefined;
|
|
18
17
|
var newState = (0, _objectSpread2["default"])({}, state);
|
|
@@ -26,8 +25,7 @@ var reducer = function reducer() {
|
|
|
26
25
|
}
|
|
27
26
|
return newState;
|
|
28
27
|
};
|
|
29
|
-
exports.
|
|
30
|
-
var syncAppState = function syncAppState(_ref) {
|
|
28
|
+
var syncAppState = exports.syncAppState = function syncAppState(_ref) {
|
|
31
29
|
var _ref2 = (0, _slicedToArray2["default"])(_ref, 2),
|
|
32
30
|
key = _ref2[0],
|
|
33
31
|
value = _ref2[1];
|
|
@@ -38,5 +36,4 @@ var syncAppState = function syncAppState(_ref) {
|
|
|
38
36
|
value: value
|
|
39
37
|
}
|
|
40
38
|
});
|
|
41
|
-
};
|
|
42
|
-
exports.syncAppState = syncAppState;
|
|
39
|
+
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.types = exports.reducer = exports.defaultState = exports.actions = void 0;
|
|
7
7
|
var _immutable = require("immutable");
|
|
8
|
-
var types = {
|
|
8
|
+
var types = exports.types = {
|
|
9
9
|
OPEN: '@kd/queue/filterMenu/OPEN',
|
|
10
10
|
CLOSE: '@kd/queue/filterMenu/CLOSE',
|
|
11
11
|
RESET: '@kd/queue/filterMenu/RESET',
|
|
@@ -20,8 +20,7 @@ var types = {
|
|
|
20
20
|
SET_SORTED_BY: '@kd/queue/filterMenu/SET_SORTED_BY',
|
|
21
21
|
SET_DIRECTION: '@kd/queue/filterMenu/SET_DIRECTION'
|
|
22
22
|
};
|
|
23
|
-
exports.
|
|
24
|
-
var actions = {
|
|
23
|
+
var actions = exports.actions = {
|
|
25
24
|
open: function open(initialFilter) {
|
|
26
25
|
return {
|
|
27
26
|
type: types.OPEN,
|
|
@@ -99,16 +98,14 @@ var actions = {
|
|
|
99
98
|
};
|
|
100
99
|
}
|
|
101
100
|
};
|
|
102
|
-
exports.
|
|
103
|
-
var defaultState = (0, _immutable.Map)({
|
|
101
|
+
var defaultState = exports.defaultState = (0, _immutable.Map)({
|
|
104
102
|
isOpen: false,
|
|
105
103
|
initialFilter: null,
|
|
106
104
|
currentFilter: null,
|
|
107
105
|
activeSection: null,
|
|
108
106
|
filterName: ''
|
|
109
107
|
});
|
|
110
|
-
exports.
|
|
111
|
-
var reducer = function reducer() {
|
|
108
|
+
var reducer = exports.reducer = function reducer() {
|
|
112
109
|
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultState;
|
|
113
110
|
var _ref = arguments.length > 1 ? arguments[1] : undefined,
|
|
114
111
|
type = _ref.type,
|
|
@@ -169,5 +166,4 @@ var reducer = function reducer() {
|
|
|
169
166
|
default:
|
|
170
167
|
return state;
|
|
171
168
|
}
|
|
172
|
-
};
|
|
173
|
-
exports.reducer = reducer;
|
|
169
|
+
};
|
|
@@ -12,25 +12,22 @@ var _bundleCommon = require("@kineticdata/bundle-common");
|
|
|
12
12
|
var withPayload = _bundleCommon.Utils.withPayload,
|
|
13
13
|
noPayload = _bundleCommon.Utils.noPayload;
|
|
14
14
|
var ns = _bundleCommon.Utils.namespaceBuilder('queue/forms');
|
|
15
|
-
var types = {
|
|
15
|
+
var types = exports.types = {
|
|
16
16
|
FETCH_FORMS_REQUEST: ns('FETCH_FORMS_REQUEST'),
|
|
17
17
|
FETCH_FORMS_SUCCESS: ns('FETCH_FORMS_SUCCESS'),
|
|
18
18
|
FETCH_FORMS_FAILURE: ns('FETCH_FORMS_FAILURE')
|
|
19
19
|
};
|
|
20
|
-
exports.
|
|
21
|
-
var actions = {
|
|
20
|
+
var actions = exports.actions = {
|
|
22
21
|
fetchFormsRequest: noPayload(types.FETCH_FORMS_REQUEST),
|
|
23
22
|
fetchFormsSuccess: withPayload(types.FETCH_FORMS_SUCCESS),
|
|
24
23
|
fetchFormsFailure: withPayload(types.FETCH_FORMS_FAILURE)
|
|
25
24
|
};
|
|
26
|
-
exports.
|
|
27
|
-
var defaultState = {
|
|
25
|
+
var defaultState = exports.defaultState = {
|
|
28
26
|
loading: true,
|
|
29
27
|
error: null,
|
|
30
28
|
data: (0, _immutable.List)()
|
|
31
29
|
};
|
|
32
|
-
exports.
|
|
33
|
-
var reducer = function reducer() {
|
|
30
|
+
var reducer = exports.reducer = function reducer() {
|
|
34
31
|
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultState;
|
|
35
32
|
var action = arguments.length > 1 ? arguments[1] : undefined;
|
|
36
33
|
switch (action.type) {
|
|
@@ -53,5 +50,4 @@ var reducer = function reducer() {
|
|
|
53
50
|
default:
|
|
54
51
|
return state;
|
|
55
52
|
}
|
|
56
|
-
};
|
|
57
|
-
exports.reducer = reducer;
|
|
53
|
+
};
|
|
@@ -12,7 +12,7 @@ var _records = require("../../records");
|
|
|
12
12
|
var withPayload = _bundleCommon.Utils.withPayload,
|
|
13
13
|
noPayload = _bundleCommon.Utils.noPayload;
|
|
14
14
|
var ns = _bundleCommon.Utils.namespaceBuilder('queue/list');
|
|
15
|
-
var types = {
|
|
15
|
+
var types = exports.types = {
|
|
16
16
|
FETCH_LIST_REQUEST: ns('FETCH_LIST_REQUEST'),
|
|
17
17
|
FETCH_LIST_SUCCESS: ns('FETCH_LIST_SUCCESS'),
|
|
18
18
|
FETCH_LIST_FAILURE: ns('FETCH_LIST_FAILURE'),
|
|
@@ -37,8 +37,7 @@ var types = {
|
|
|
37
37
|
BULK_STATUS_UPDATE: ns('BULK_STATUS_UPDATE'),
|
|
38
38
|
BULK_STATUS_RESET: ns('BULK_STATUS_RESET')
|
|
39
39
|
};
|
|
40
|
-
exports.
|
|
41
|
-
var actions = {
|
|
40
|
+
var actions = exports.actions = {
|
|
42
41
|
fetchListRequest: withPayload(types.FETCH_LIST_REQUEST),
|
|
43
42
|
fetchListSuccess: withPayload(types.FETCH_LIST_SUCCESS),
|
|
44
43
|
fetchListFailure: withPayload(types.FETCH_LIST_FAILURE),
|
|
@@ -63,8 +62,7 @@ var actions = {
|
|
|
63
62
|
bulkStatusUpdate: withPayload(types.BULK_STATUS_UPDATE),
|
|
64
63
|
bulkStatusReset: noPayload(types.BULK_STATUS_RESET)
|
|
65
64
|
};
|
|
66
|
-
exports.
|
|
67
|
-
var State = (0, _immutable.Record)({
|
|
65
|
+
var State = exports.State = (0, _immutable.Record)({
|
|
68
66
|
currentFilter: null,
|
|
69
67
|
loading: true,
|
|
70
68
|
paging: false,
|
|
@@ -90,11 +88,10 @@ var State = (0, _immutable.Record)({
|
|
|
90
88
|
selectedList: null,
|
|
91
89
|
bulkStatus: {}
|
|
92
90
|
});
|
|
93
|
-
exports.State = State;
|
|
94
91
|
var updatePageMetadata = function updatePageMetadata(state) {
|
|
95
92
|
return state.set('hasPreviousPage', state.previousPageTokens.size > 0).set('hasNextPage', !!state.nextPageToken).set('pageIndexStart', state.previousPageTokens.size * state.limit + (state.data && state.data.size > 0 ? 1 : 0)).set('pageIndexEnd', state.previousPageTokens.size * state.limit + (state.data ? state.data.size : 0));
|
|
96
93
|
};
|
|
97
|
-
var reducer = function reducer() {
|
|
94
|
+
var reducer = exports.reducer = function reducer() {
|
|
98
95
|
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : State();
|
|
99
96
|
var _ref = arguments.length > 1 ? arguments[1] : undefined,
|
|
100
97
|
type = _ref.type,
|
|
@@ -178,7 +175,6 @@ var reducer = function reducer() {
|
|
|
178
175
|
return state;
|
|
179
176
|
}
|
|
180
177
|
};
|
|
181
|
-
exports.reducer = reducer;
|
|
182
178
|
var updateSelectedItems = function updateSelectedItems(_ref2, data) {
|
|
183
179
|
var item = _ref2.item,
|
|
184
180
|
shift = _ref2.shift;
|