@kineticdata/bundle-queue 6.0.0 → 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 +4 -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 +6 -6
|
@@ -33,49 +33,47 @@ var FORM_INCLUDES = 'details,fields,attributesMap,categorizations,kapp';
|
|
|
33
33
|
function fetchQueueSettingsSaga() {
|
|
34
34
|
var _yield$all, _yield$all2, _yield$all2$, error, kapp, manageableForms, manageableFormsSlugs;
|
|
35
35
|
return (0, _regeneratorRuntime2["default"])().wrap(function fetchQueueSettingsSaga$(_context) {
|
|
36
|
-
while (1) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
_context.next = 13;
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
_context.next = 11;
|
|
59
|
-
return (0, _effects.put)(_settingsQueue.actions.updateQueueSettingsError(error));
|
|
60
|
-
case 11:
|
|
61
|
-
_context.next = 16;
|
|
36
|
+
while (1) switch (_context.prev = _context.next) {
|
|
37
|
+
case 0:
|
|
38
|
+
_context.next = 2;
|
|
39
|
+
return (0, _effects.all)([(0, _effects.call)(_react.fetchKapp, {
|
|
40
|
+
include: QUEUE_SETTING_INCLUDES,
|
|
41
|
+
kappSlug: 'queue'
|
|
42
|
+
}), (0, _effects.call)(_react.fetchForms, {
|
|
43
|
+
kappSlug: 'queue',
|
|
44
|
+
manage: 'true'
|
|
45
|
+
})]);
|
|
46
|
+
case 2:
|
|
47
|
+
_yield$all = _context.sent;
|
|
48
|
+
_yield$all2 = (0, _slicedToArray2["default"])(_yield$all, 2);
|
|
49
|
+
_yield$all2$ = _yield$all2[0];
|
|
50
|
+
error = _yield$all2$.error;
|
|
51
|
+
kapp = _yield$all2$.kapp;
|
|
52
|
+
manageableForms = _yield$all2[1];
|
|
53
|
+
if (!error) {
|
|
54
|
+
_context.next = 13;
|
|
62
55
|
break;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
56
|
+
}
|
|
57
|
+
_context.next = 11;
|
|
58
|
+
return (0, _effects.put)(_settingsQueue.actions.updateQueueSettingsError(error));
|
|
59
|
+
case 11:
|
|
60
|
+
_context.next = 16;
|
|
61
|
+
break;
|
|
62
|
+
case 13:
|
|
63
|
+
manageableFormsSlugs = (manageableForms.forms || []).map(function (form) {
|
|
64
|
+
return form.slug;
|
|
65
|
+
});
|
|
66
|
+
_context.next = 16;
|
|
67
|
+
return (0, _effects.put)(_settingsQueue.actions.setQueueSettings((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, kapp), {}, {
|
|
68
|
+
forms: (kapp.forms || []).map(function (form) {
|
|
69
|
+
return (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, form), {}, {
|
|
70
|
+
canManage: manageableFormsSlugs.includes(form.slug)
|
|
71
|
+
});
|
|
72
|
+
})
|
|
73
|
+
})));
|
|
74
|
+
case 16:
|
|
75
|
+
case "end":
|
|
76
|
+
return _context.stop();
|
|
79
77
|
}
|
|
80
78
|
}, _marked);
|
|
81
79
|
}
|
|
@@ -84,68 +82,64 @@ function fetchTeamsSaga(_ref) {
|
|
|
84
82
|
return /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(function _callee() {
|
|
85
83
|
var _yield$call, error, teams;
|
|
86
84
|
return (0, _regeneratorRuntime2["default"])().wrap(function _callee$(_context2) {
|
|
87
|
-
while (1) {
|
|
88
|
-
switch (_context2.prev = _context2.next) {
|
|
89
|
-
case 0:
|
|
90
|
-
_context2.next = 2;
|
|
91
|
-
return (0, _effects.call)(_react.fetchTeams, {
|
|
92
|
-
include: TEAMS_SETTING_INCLUDES,
|
|
93
|
-
teams: payload
|
|
94
|
-
});
|
|
95
|
-
case 2:
|
|
96
|
-
_yield$call = _context2.sent;
|
|
97
|
-
error = _yield$call.error;
|
|
98
|
-
teams = _yield$call.teams;
|
|
99
|
-
if (!error) {
|
|
100
|
-
_context2.next = 10;
|
|
101
|
-
break;
|
|
102
|
-
}
|
|
103
|
-
_context2.next = 8;
|
|
104
|
-
return (0, _effects.put)(_settingsQueue.actions.updateQueueSettingsError(error));
|
|
105
|
-
case 8:
|
|
106
|
-
_context2.next = 12;
|
|
107
|
-
break;
|
|
108
|
-
case 10:
|
|
109
|
-
_context2.next = 12;
|
|
110
|
-
return (0, _effects.put)(_settingsQueue.actions.setQueueSettingsTeams(teams));
|
|
111
|
-
case 12:
|
|
112
|
-
case "end":
|
|
113
|
-
return _context2.stop();
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}, _callee);
|
|
117
|
-
})();
|
|
118
|
-
}
|
|
119
|
-
function fetchUsersSaga() {
|
|
120
|
-
var _yield$call2, error, users;
|
|
121
|
-
return (0, _regeneratorRuntime2["default"])().wrap(function fetchUsersSaga$(_context3) {
|
|
122
|
-
while (1) {
|
|
123
|
-
switch (_context3.prev = _context3.next) {
|
|
85
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
124
86
|
case 0:
|
|
125
|
-
|
|
126
|
-
return (0, _effects.call)(_react.
|
|
127
|
-
include:
|
|
87
|
+
_context2.next = 2;
|
|
88
|
+
return (0, _effects.call)(_react.fetchTeams, {
|
|
89
|
+
include: TEAMS_SETTING_INCLUDES,
|
|
90
|
+
teams: payload
|
|
128
91
|
});
|
|
129
92
|
case 2:
|
|
130
|
-
_yield$
|
|
131
|
-
error = _yield$
|
|
132
|
-
|
|
93
|
+
_yield$call = _context2.sent;
|
|
94
|
+
error = _yield$call.error;
|
|
95
|
+
teams = _yield$call.teams;
|
|
133
96
|
if (!error) {
|
|
134
|
-
|
|
97
|
+
_context2.next = 10;
|
|
135
98
|
break;
|
|
136
99
|
}
|
|
137
|
-
|
|
100
|
+
_context2.next = 8;
|
|
138
101
|
return (0, _effects.put)(_settingsQueue.actions.updateQueueSettingsError(error));
|
|
139
102
|
case 8:
|
|
140
|
-
|
|
103
|
+
_context2.next = 12;
|
|
141
104
|
break;
|
|
142
105
|
case 10:
|
|
143
|
-
|
|
144
|
-
return (0, _effects.put)(_settingsQueue.actions.
|
|
106
|
+
_context2.next = 12;
|
|
107
|
+
return (0, _effects.put)(_settingsQueue.actions.setQueueSettingsTeams(teams));
|
|
145
108
|
case 12:
|
|
146
109
|
case "end":
|
|
147
|
-
return
|
|
110
|
+
return _context2.stop();
|
|
148
111
|
}
|
|
112
|
+
}, _callee);
|
|
113
|
+
})();
|
|
114
|
+
}
|
|
115
|
+
function fetchUsersSaga() {
|
|
116
|
+
var _yield$call2, error, users;
|
|
117
|
+
return (0, _regeneratorRuntime2["default"])().wrap(function fetchUsersSaga$(_context3) {
|
|
118
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
119
|
+
case 0:
|
|
120
|
+
_context3.next = 2;
|
|
121
|
+
return (0, _effects.call)(_react.fetchUsers, {
|
|
122
|
+
include: 'details'
|
|
123
|
+
});
|
|
124
|
+
case 2:
|
|
125
|
+
_yield$call2 = _context3.sent;
|
|
126
|
+
error = _yield$call2.error;
|
|
127
|
+
users = _yield$call2.users;
|
|
128
|
+
if (!error) {
|
|
129
|
+
_context3.next = 10;
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
_context3.next = 8;
|
|
133
|
+
return (0, _effects.put)(_settingsQueue.actions.updateQueueSettingsError(error));
|
|
134
|
+
case 8:
|
|
135
|
+
_context3.next = 12;
|
|
136
|
+
break;
|
|
137
|
+
case 10:
|
|
138
|
+
_context3.next = 12;
|
|
139
|
+
return (0, _effects.put)(_settingsQueue.actions.setQueueSettingsUsers(users));
|
|
140
|
+
case 12:
|
|
141
|
+
case "end":
|
|
142
|
+
return _context3.stop();
|
|
149
143
|
}
|
|
150
144
|
}, _marked2);
|
|
151
145
|
}
|
|
@@ -154,34 +148,32 @@ function fetchSpaceSaga(_ref2) {
|
|
|
154
148
|
return /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(function _callee2() {
|
|
155
149
|
var _yield$call3, error, space;
|
|
156
150
|
return (0, _regeneratorRuntime2["default"])().wrap(function _callee2$(_context4) {
|
|
157
|
-
while (1) {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
_context4.next = 10;
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
_context4.next = 8;
|
|
174
|
-
return (0, _effects.put)(_settingsQueue.actions.updateQueueSettingsError(error));
|
|
175
|
-
case 8:
|
|
176
|
-
_context4.next = 12;
|
|
151
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
152
|
+
case 0:
|
|
153
|
+
_context4.next = 2;
|
|
154
|
+
return (0, _effects.call)(_react.fetchSpace, {
|
|
155
|
+
include: SPACE_SETTING_INCLUDES,
|
|
156
|
+
space: payload
|
|
157
|
+
});
|
|
158
|
+
case 2:
|
|
159
|
+
_yield$call3 = _context4.sent;
|
|
160
|
+
error = _yield$call3.error;
|
|
161
|
+
space = _yield$call3.space;
|
|
162
|
+
if (!error) {
|
|
163
|
+
_context4.next = 10;
|
|
177
164
|
break;
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
165
|
+
}
|
|
166
|
+
_context4.next = 8;
|
|
167
|
+
return (0, _effects.put)(_settingsQueue.actions.updateQueueSettingsError(error));
|
|
168
|
+
case 8:
|
|
169
|
+
_context4.next = 12;
|
|
170
|
+
break;
|
|
171
|
+
case 10:
|
|
172
|
+
_context4.next = 12;
|
|
173
|
+
return (0, _effects.put)(_settingsQueue.actions.setQueueSettingsSpace(space));
|
|
174
|
+
case 12:
|
|
175
|
+
case "end":
|
|
176
|
+
return _context4.stop();
|
|
185
177
|
}
|
|
186
178
|
}, _callee2);
|
|
187
179
|
})();
|
|
@@ -191,157 +183,149 @@ function updateQueueSettingsSaga(_ref3) {
|
|
|
191
183
|
return /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(function _callee3() {
|
|
192
184
|
var attributes, _yield$call4, error, appActions;
|
|
193
185
|
return (0, _regeneratorRuntime2["default"])().wrap(function _callee3$(_context5) {
|
|
194
|
-
while (1) {
|
|
195
|
-
switch (_context5.prev = _context5.next) {
|
|
196
|
-
case 0:
|
|
197
|
-
attributes = (0, _immutable.Map)(payload).filter(function (value) {
|
|
198
|
-
return value;
|
|
199
|
-
}).map(function (value) {
|
|
200
|
-
return value.constructor === Array ? value : [value];
|
|
201
|
-
}).toJS();
|
|
202
|
-
_context5.next = 3;
|
|
203
|
-
return (0, _effects.call)(_react.updateKapp, {
|
|
204
|
-
include: QUEUE_SETTING_INCLUDES,
|
|
205
|
-
kapp: {
|
|
206
|
-
attributesMap: attributes
|
|
207
|
-
},
|
|
208
|
-
kappSlug: 'queue'
|
|
209
|
-
});
|
|
210
|
-
case 3:
|
|
211
|
-
_yield$call4 = _context5.sent;
|
|
212
|
-
error = _yield$call4.error;
|
|
213
|
-
if (!error) {
|
|
214
|
-
_context5.next = 12;
|
|
215
|
-
break;
|
|
216
|
-
}
|
|
217
|
-
_context5.next = 8;
|
|
218
|
-
return (0, _effects.put)((0, _bundleCommon.addError)('Failed to update settings.', 'Update Settings'));
|
|
219
|
-
case 8:
|
|
220
|
-
_context5.next = 10;
|
|
221
|
-
return (0, _effects.put)(_settingsQueue.actions.updateServicesSettingsError(error));
|
|
222
|
-
case 10:
|
|
223
|
-
_context5.next = 19;
|
|
224
|
-
break;
|
|
225
|
-
case 12:
|
|
226
|
-
_context5.next = 14;
|
|
227
|
-
return (0, _effects.put)((0, _bundleCommon.addSuccess)('Updated settings successfully.', 'Update Settings'));
|
|
228
|
-
case 14:
|
|
229
|
-
_context5.next = 16;
|
|
230
|
-
return (0, _effects.select)(function (state) {
|
|
231
|
-
return state.app.actions;
|
|
232
|
-
});
|
|
233
|
-
case 16:
|
|
234
|
-
appActions = _context5.sent;
|
|
235
|
-
_context5.next = 19;
|
|
236
|
-
return (0, _effects.put)(appActions.refreshApp());
|
|
237
|
-
case 19:
|
|
238
|
-
case "end":
|
|
239
|
-
return _context5.stop();
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}, _callee3);
|
|
243
|
-
})();
|
|
244
|
-
}
|
|
245
|
-
function fetchNotificationsSaga() {
|
|
246
|
-
var search, _yield$call5, error, submissions;
|
|
247
|
-
return (0, _regeneratorRuntime2["default"])().wrap(function fetchNotificationsSaga$(_context6) {
|
|
248
|
-
while (1) {
|
|
249
|
-
switch (_context6.prev = _context6.next) {
|
|
186
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
250
187
|
case 0:
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
188
|
+
attributes = (0, _immutable.Map)(payload).filter(function (value) {
|
|
189
|
+
return value;
|
|
190
|
+
}).map(function (value) {
|
|
191
|
+
return value.constructor === Array ? value : [value];
|
|
192
|
+
}).toJS();
|
|
193
|
+
_context5.next = 3;
|
|
194
|
+
return (0, _effects.call)(_react.updateKapp, {
|
|
195
|
+
include: QUEUE_SETTING_INCLUDES,
|
|
196
|
+
kapp: {
|
|
197
|
+
attributesMap: attributes
|
|
198
|
+
},
|
|
199
|
+
kappSlug: 'queue'
|
|
257
200
|
});
|
|
258
201
|
case 3:
|
|
259
|
-
_yield$
|
|
260
|
-
error = _yield$
|
|
261
|
-
submissions = _yield$call5.submissions;
|
|
202
|
+
_yield$call4 = _context5.sent;
|
|
203
|
+
error = _yield$call4.error;
|
|
262
204
|
if (!error) {
|
|
263
|
-
|
|
205
|
+
_context5.next = 12;
|
|
264
206
|
break;
|
|
265
207
|
}
|
|
266
|
-
|
|
267
|
-
return (0, _effects.put)(
|
|
268
|
-
case
|
|
269
|
-
|
|
208
|
+
_context5.next = 8;
|
|
209
|
+
return (0, _effects.put)((0, _bundleCommon.addError)('Failed to update settings.', 'Update Settings'));
|
|
210
|
+
case 8:
|
|
211
|
+
_context5.next = 10;
|
|
212
|
+
return (0, _effects.put)(_settingsQueue.actions.updateServicesSettingsError(error));
|
|
213
|
+
case 10:
|
|
214
|
+
_context5.next = 19;
|
|
270
215
|
break;
|
|
271
|
-
case
|
|
272
|
-
|
|
273
|
-
return (0, _effects.put)(
|
|
274
|
-
case
|
|
216
|
+
case 12:
|
|
217
|
+
_context5.next = 14;
|
|
218
|
+
return (0, _effects.put)((0, _bundleCommon.addSuccess)('Updated settings successfully.', 'Update Settings'));
|
|
219
|
+
case 14:
|
|
220
|
+
_context5.next = 16;
|
|
221
|
+
return (0, _effects.select)(function (state) {
|
|
222
|
+
return state.app.actions;
|
|
223
|
+
});
|
|
224
|
+
case 16:
|
|
225
|
+
appActions = _context5.sent;
|
|
226
|
+
_context5.next = 19;
|
|
227
|
+
return (0, _effects.put)(appActions.refreshApp());
|
|
228
|
+
case 19:
|
|
275
229
|
case "end":
|
|
276
|
-
return
|
|
230
|
+
return _context5.stop();
|
|
277
231
|
}
|
|
232
|
+
}, _callee3);
|
|
233
|
+
})();
|
|
234
|
+
}
|
|
235
|
+
function fetchNotificationsSaga() {
|
|
236
|
+
var search, _yield$call5, error, submissions;
|
|
237
|
+
return (0, _regeneratorRuntime2["default"])().wrap(function fetchNotificationsSaga$(_context6) {
|
|
238
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
239
|
+
case 0:
|
|
240
|
+
search = new _react.SubmissionSearch(true).index('values[Name]').includes(['details', 'values']).build();
|
|
241
|
+
_context6.next = 3;
|
|
242
|
+
return (0, _effects.call)(_react.searchSubmissions, {
|
|
243
|
+
search: search,
|
|
244
|
+
form: 'notification-data',
|
|
245
|
+
datastore: true
|
|
246
|
+
});
|
|
247
|
+
case 3:
|
|
248
|
+
_yield$call5 = _context6.sent;
|
|
249
|
+
error = _yield$call5.error;
|
|
250
|
+
submissions = _yield$call5.submissions;
|
|
251
|
+
if (!error) {
|
|
252
|
+
_context6.next = 11;
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
_context6.next = 9;
|
|
256
|
+
return (0, _effects.put)(_settingsQueue.actions.updateQueueSettingsError(error));
|
|
257
|
+
case 9:
|
|
258
|
+
_context6.next = 13;
|
|
259
|
+
break;
|
|
260
|
+
case 11:
|
|
261
|
+
_context6.next = 13;
|
|
262
|
+
return (0, _effects.put)(_settingsQueue.actions.setNotifications(submissions));
|
|
263
|
+
case 13:
|
|
264
|
+
case "end":
|
|
265
|
+
return _context6.stop();
|
|
278
266
|
}
|
|
279
267
|
}, _marked3);
|
|
280
268
|
}
|
|
281
269
|
function fetchFormSaga(action) {
|
|
282
270
|
var _yield$call6, error, form;
|
|
283
271
|
return (0, _regeneratorRuntime2["default"])().wrap(function fetchFormSaga$(_context7) {
|
|
284
|
-
while (1) {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
_context7.next = 10;
|
|
299
|
-
break;
|
|
300
|
-
}
|
|
301
|
-
_context7.next = 8;
|
|
302
|
-
return (0, _effects.put)(_settingsQueue.actions.updateQueueSettingsError(error));
|
|
303
|
-
case 8:
|
|
304
|
-
_context7.next = 12;
|
|
272
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
273
|
+
case 0:
|
|
274
|
+
_context7.next = 2;
|
|
275
|
+
return (0, _effects.call)(_react.fetchForm, {
|
|
276
|
+
kappSlug: action.payload.kappSlug,
|
|
277
|
+
formSlug: action.payload.formSlug,
|
|
278
|
+
include: FORM_INCLUDES
|
|
279
|
+
});
|
|
280
|
+
case 2:
|
|
281
|
+
_yield$call6 = _context7.sent;
|
|
282
|
+
error = _yield$call6.error;
|
|
283
|
+
form = _yield$call6.form;
|
|
284
|
+
if (!error) {
|
|
285
|
+
_context7.next = 10;
|
|
305
286
|
break;
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
287
|
+
}
|
|
288
|
+
_context7.next = 8;
|
|
289
|
+
return (0, _effects.put)(_settingsQueue.actions.updateQueueSettingsError(error));
|
|
290
|
+
case 8:
|
|
291
|
+
_context7.next = 12;
|
|
292
|
+
break;
|
|
293
|
+
case 10:
|
|
294
|
+
_context7.next = 12;
|
|
295
|
+
return (0, _effects.put)(_settingsQueue.actions.setForm(form));
|
|
296
|
+
case 12:
|
|
297
|
+
case "end":
|
|
298
|
+
return _context7.stop();
|
|
313
299
|
}
|
|
314
300
|
}, _marked4);
|
|
315
301
|
}
|
|
316
302
|
function watchSettingsQueue() {
|
|
317
303
|
return (0, _regeneratorRuntime2["default"])().wrap(function watchSettingsQueue$(_context8) {
|
|
318
|
-
while (1) {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
return _context8.stop();
|
|
344
|
-
}
|
|
304
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
305
|
+
case 0:
|
|
306
|
+
_context8.next = 2;
|
|
307
|
+
return (0, _effects.takeEvery)(_settingsQueue.types.FETCH_QUEUE_SETTINGS, fetchQueueSettingsSaga);
|
|
308
|
+
case 2:
|
|
309
|
+
_context8.next = 4;
|
|
310
|
+
return (0, _effects.takeEvery)(_settingsQueue.types.FETCH_QUEUE_SETTINGS_TEAMS, fetchTeamsSaga);
|
|
311
|
+
case 4:
|
|
312
|
+
_context8.next = 6;
|
|
313
|
+
return (0, _effects.takeEvery)(_settingsQueue.types.FETCH_QUEUE_SETTINGS_USERS, fetchUsersSaga);
|
|
314
|
+
case 6:
|
|
315
|
+
_context8.next = 8;
|
|
316
|
+
return (0, _effects.takeEvery)(_settingsQueue.types.FETCH_QUEUE_SETTINGS_SPACE, fetchSpaceSaga);
|
|
317
|
+
case 8:
|
|
318
|
+
_context8.next = 10;
|
|
319
|
+
return (0, _effects.takeEvery)(_settingsQueue.types.UPDATE_QUEUE_SETTINGS, updateQueueSettingsSaga);
|
|
320
|
+
case 10:
|
|
321
|
+
_context8.next = 12;
|
|
322
|
+
return (0, _effects.takeEvery)(_settingsQueue.types.FETCH_NOTIFICATIONS, fetchNotificationsSaga);
|
|
323
|
+
case 12:
|
|
324
|
+
_context8.next = 14;
|
|
325
|
+
return (0, _effects.takeEvery)(_settingsQueue.types.FETCH_FORM, fetchFormSaga);
|
|
326
|
+
case 14:
|
|
327
|
+
case "end":
|
|
328
|
+
return _context8.stop();
|
|
345
329
|
}
|
|
346
330
|
}, _marked5);
|
|
347
331
|
}
|
package/lib/redux/sagas.js
CHANGED
|
@@ -16,15 +16,13 @@ var _settingsForms = require("./sagas/settingsForms");
|
|
|
16
16
|
var _marked = /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(sagas);
|
|
17
17
|
function sagas() {
|
|
18
18
|
return (0, _regeneratorRuntime2["default"])().wrap(function sagas$(_context) {
|
|
19
|
-
while (1) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return _context.stop();
|
|
27
|
-
}
|
|
19
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20
|
+
case 0:
|
|
21
|
+
_context.next = 2;
|
|
22
|
+
return (0, _effects.all)([(0, _app.watchApp)(), (0, _queueApp.watchApp)(), (0, _queue.watchQueue)(), (0, _forms.watchForms)(), (0, _settingsQueue.watchSettingsQueue)(), (0, _settingsForms.watchSettingsForms)()]);
|
|
23
|
+
case 2:
|
|
24
|
+
case "end":
|
|
25
|
+
return _context.stop();
|
|
28
26
|
}
|
|
29
27
|
}, _marked);
|
|
30
28
|
}
|
package/lib/redux/store.js
CHANGED
|
@@ -25,16 +25,13 @@ var _createReduxHistoryCo = (0, _reduxFirstHistory.createReduxHistoryContext)({
|
|
|
25
25
|
createReduxHistory = _createReduxHistoryCo.createReduxHistory,
|
|
26
26
|
routerMiddleware = _createReduxHistoryCo.routerMiddleware,
|
|
27
27
|
routerReducer = _createReduxHistoryCo.routerReducer;
|
|
28
|
-
var store = (0, _redux.createStore)((0, _redux.combineReducers)((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, _reducers["default"]), {}, {
|
|
28
|
+
var store = exports.store = (0, _redux.createStore)((0, _redux.combineReducers)((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, _reducers["default"]), {}, {
|
|
29
29
|
router: routerReducer
|
|
30
30
|
})), composeEnhancers((0, _redux.applyMiddleware)(routerMiddleware, sagaMiddlware)));
|
|
31
|
-
exports.
|
|
32
|
-
var connectedHistory = (0, _reduxFirstHistory.reachify)(createReduxHistory(store));
|
|
33
|
-
exports.connectedHistory = connectedHistory;
|
|
31
|
+
var connectedHistory = exports.connectedHistory = (0, _reduxFirstHistory.reachify)(createReduxHistory(store));
|
|
34
32
|
sagaMiddlware.run(_sagas["default"]);
|
|
35
|
-
var context = /*#__PURE__*/(0, _react.createContext)(null);
|
|
36
|
-
exports.
|
|
37
|
-
var connect = function connect() {
|
|
33
|
+
var context = exports.context = /*#__PURE__*/(0, _react.createContext)(null);
|
|
34
|
+
var connect = exports.connect = function connect() {
|
|
38
35
|
var mapStateToProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
39
36
|
var mapDispatchToProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
40
37
|
var mergeProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
@@ -42,5 +39,4 @@ var connect = function connect() {
|
|
|
42
39
|
return (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps, mergeProps, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, options), {}, {
|
|
43
40
|
context: context
|
|
44
41
|
}));
|
|
45
|
-
};
|
|
46
|
-
exports.connect = connect;
|
|
42
|
+
};
|
package/lib/utils.js
CHANGED
|
@@ -4,11 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.isActiveClass = void 0;
|
|
7
|
-
var isActiveClass = function isActiveClass(defaultClass) {
|
|
7
|
+
var isActiveClass = exports.isActiveClass = function isActiveClass(defaultClass) {
|
|
8
8
|
return function (props) {
|
|
9
9
|
return {
|
|
10
10
|
className: props.isCurrent ? "".concat(defaultClass, " active") : defaultClass
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
};
|
|
14
|
-
exports.isActiveClass = isActiveClass;
|
|
13
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kineticdata/bundle-queue",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"assets",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"prepublishOnly": "yarn build"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@kineticdata/bundle-common": "6.0.
|
|
20
|
-
"@kineticdata/react": "6.0.
|
|
19
|
+
"@kineticdata/bundle-common": "6.0.2",
|
|
20
|
+
"@kineticdata/react": "6.0.2",
|
|
21
21
|
"@reach/router": "https://github.com/kineticdata/router.git",
|
|
22
22
|
"axios": "^0.21.1",
|
|
23
23
|
"bootstrap": "^4.3.1",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"rudy-match-path": "^0.3.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"react": "^
|
|
45
|
-
"react-dom": "^
|
|
44
|
+
"react": "^17.0.2",
|
|
45
|
+
"react-dom": "^17.0.2"
|
|
46
46
|
},
|
|
47
47
|
"babel": {
|
|
48
48
|
"presets": [
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
]
|
|
55
55
|
]
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "68e895f9bb49d039a9c79da64b39a6bbc2243cb2"
|
|
58
58
|
}
|