@kineticdata/bundle-queue 6.0.1 → 6.0.3

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.
Files changed (58) hide show
  1. package/lib/App.js +1 -2
  2. package/lib/components/FormPreview.js +6 -11
  3. package/lib/components/filter_menu/FilterMenuAbstract.js +6 -11
  4. package/lib/components/filter_menu/FilterMenuModal.js +1 -2
  5. package/lib/components/filter_menu/FilterMenuToolbar.js +3 -5
  6. package/lib/components/new_item_menu/NewItemMenu.js +2 -3
  7. package/lib/components/new_item_menu/NewItemMenuContainer.js +2 -3
  8. package/lib/components/queue_item/AssignmentBadge.js +2 -3
  9. package/lib/components/queue_item/QueueItem.js +5 -9
  10. package/lib/components/queue_item/QueueItemDetails.js +5 -9
  11. package/lib/components/queue_item/QueueItemDetails.test.js +1 -82
  12. package/lib/components/queue_item/ViewOriginalRequest.js +3 -5
  13. package/lib/components/queue_list/BulkAssignModal.js +2 -3
  14. package/lib/components/queue_list/BulkStatusModal.js +2 -3
  15. package/lib/components/queue_list/BulkWorkModal.js +2 -3
  16. package/lib/components/queue_list/QueueList.js +2 -3
  17. package/lib/components/queue_list/QueueListContainer.js +2 -3
  18. package/lib/components/queue_list/QueueListItem.js +3 -5
  19. package/lib/components/queue_list/QueueListPagination.js +3 -5
  20. package/lib/components/queue_list/QueueListSelection.js +3 -5
  21. package/lib/components/queue_list/QueueListSidebar.js +2 -3
  22. package/lib/components/settings/QueueSettings.js +3 -5
  23. package/lib/components/settings/Settings.js +3 -6
  24. package/lib/components/settings/Sidebar.js +3 -6
  25. package/lib/components/settings/forms/Export.js +2 -3
  26. package/lib/components/settings/forms/ExportModal.js +1 -2
  27. package/lib/components/settings/forms/FormActivity.js +3 -5
  28. package/lib/components/settings/forms/FormList.js +3 -5
  29. package/lib/components/settings/forms/FormSettings.js +4 -7
  30. package/lib/components/settings/forms/FormSubmissions.js +3 -5
  31. package/lib/components/shared/AssignmentItem.js +2 -3
  32. package/lib/components/shared/AssignmentSelector.js +2 -3
  33. package/lib/components/shared/PageTitle.js +3 -5
  34. package/lib/components/shared/StatusContent.js +4 -7
  35. package/lib/components/shared/WallyButton.js +5 -9
  36. package/lib/components/work_menu/WorkMenu.js +5 -9
  37. package/lib/index.js +3 -2
  38. package/lib/models.js +2 -3
  39. package/lib/records.js +11 -21
  40. package/lib/redux/modules/app.js +4 -7
  41. package/lib/redux/modules/filterMenu.js +5 -9
  42. package/lib/redux/modules/forms.js +5 -9
  43. package/lib/redux/modules/queue.js +4 -8
  44. package/lib/redux/modules/queueApp.js +11 -19
  45. package/lib/redux/modules/settingsForms.js +18 -33
  46. package/lib/redux/modules/settingsQueue.js +5 -9
  47. package/lib/redux/modules/workMenu.js +5 -9
  48. package/lib/redux/reducers.js +2 -3
  49. package/lib/redux/sagas/app.js +11 -15
  50. package/lib/redux/sagas/forms.js +38 -42
  51. package/lib/redux/sagas/queue.js +410 -432
  52. package/lib/redux/sagas/queueApp.js +106 -113
  53. package/lib/redux/sagas/settingsForms.js +484 -508
  54. package/lib/redux/sagas/settingsQueue.js +232 -248
  55. package/lib/redux/sagas.js +7 -9
  56. package/lib/redux/store.js +5 -9
  57. package/lib/utils.js +2 -3
  58. package/package.json +58 -57
@@ -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.types = types;
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.actions = actions;
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.defaultState = defaultState;
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.types = types;
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.actions = actions;
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;
@@ -13,7 +13,7 @@ var withPayload = _bundleCommon.Utils.withPayload,
13
13
  noPayload = _bundleCommon.Utils.noPayload,
14
14
  getAttributeValue = _bundleCommon.Utils.getAttributeValue;
15
15
  var ns = _bundleCommon.Utils.namespaceBuilder('queue/app');
16
- var types = {
16
+ var types = exports.types = {
17
17
  FETCH_APP_DATA_REQUEST: ns('FETCH_APP_DATA_REQUEST'),
18
18
  FETCH_APP_DATA_SUCCESS: ns('FETCH_APP_DATA_SUCCESS'),
19
19
  FETCH_APP_DATA_FAILURE: ns('FETCH_APP_DATA_FAILURE'),
@@ -21,15 +21,13 @@ var types = {
21
21
  UPDATE_PERSONAL_FILTER: ns('UPDATE_PERSONAL_FILTER'),
22
22
  REMOVE_PERSONAL_FILTER: ns('REMOVE_PERSONAL_FILTER')
23
23
  };
24
- exports.types = types;
25
- var actions = {
24
+ var actions = exports.actions = {
26
25
  fetchAppDataRequest: noPayload(types.FETCH_APP_DATA_REQUEST),
27
26
  fetchAppDataSuccess: withPayload(types.FETCH_APP_DATA_SUCCESS),
28
27
  addPersonalFilter: withPayload(types.ADD_PERSONAL_FILTER),
29
28
  updatePersonalFilter: withPayload(types.UPDATE_PERSONAL_FILTER),
30
29
  removePersonalFilter: withPayload(types.REMOVE_PERSONAL_FILTER)
31
30
  };
32
- exports.actions = actions;
33
31
  var ADHOC_PATH = {
34
32
  path: '*/adhoc',
35
33
  exact: false
@@ -46,7 +44,7 @@ var CUSTOM_LIST_PATH = {
46
44
  path: '*/custom/:name',
47
45
  exact: false
48
46
  };
49
- var getFilterByPath = function getFilterByPath(state, pathname) {
47
+ var getFilterByPath = exports.getFilterByPath = function getFilterByPath(state, pathname) {
50
48
  var findByName = function findByName(name) {
51
49
  return function (filter) {
52
50
  return filter.name === name;
@@ -74,8 +72,7 @@ var getFilterByPath = function getFilterByPath(state, pathname) {
74
72
  return state.queueApp.myFilters.find(findByName(_filterName));
75
73
  }
76
74
  };
77
- exports.getFilterByPath = getFilterByPath;
78
- var selectMyTeamForms = function selectMyTeamForms(state) {
75
+ var selectMyTeamForms = exports.selectMyTeamForms = function selectMyTeamForms(state) {
79
76
  return state.queueApp.forms.filter(function (f) {
80
77
  var owningTeam = f.attributes['Owning Team'];
81
78
  return owningTeam ? state.queueApp.myTeams.map(function (t) {
@@ -83,8 +80,7 @@ var selectMyTeamForms = function selectMyTeamForms(state) {
83
80
  }).toSet().intersect(new _immutable.Set(owningTeam)).size > 0 : true;
84
81
  });
85
82
  };
86
- exports.selectMyTeamForms = selectMyTeamForms;
87
- var selectAssignmentTeams = function selectAssignmentTeams(allTeams, form, queueItem) {
83
+ var selectAssignmentTeams = exports.selectAssignmentTeams = function selectAssignmentTeams(allTeams, form, queueItem) {
88
84
  // Filter out any teams without members
89
85
  var filteredTeams = allTeams.filter(function (t) {
90
86
  return t.memberships.length > 0;
@@ -108,8 +104,7 @@ var selectAssignmentTeams = function selectAssignmentTeams(allTeams, form, queue
108
104
  filteredTeams;
109
105
  return availableTeams;
110
106
  };
111
- exports.selectAssignmentTeams = selectAssignmentTeams;
112
- var mapTeamsToAssignments = function mapTeamsToAssignments(teams) {
107
+ var mapTeamsToAssignments = exports.mapTeamsToAssignments = function mapTeamsToAssignments(teams) {
113
108
  return teams.flatMap(function (t) {
114
109
  return t.memberships.filter(function (m) {
115
110
  return m.user.enabled;
@@ -124,8 +119,7 @@ var mapTeamsToAssignments = function mapTeamsToAssignments(teams) {
124
119
  }]);
125
120
  });
126
121
  };
127
- exports.mapTeamsToAssignments = mapTeamsToAssignments;
128
- var selectAssignments = function selectAssignments() {
122
+ var selectAssignments = exports.selectAssignments = function selectAssignments() {
129
123
  return mapTeamsToAssignments(selectAssignmentTeams.apply(void 0, arguments));
130
124
  };
131
125
 
@@ -134,8 +128,8 @@ var selectAssignments = function selectAssignments() {
134
128
  * Mine (only assigned to me)
135
129
  * Unassigned (assigned to one of my teams but not to an individual)
136
130
  */
137
- exports.selectAssignments = selectAssignments;
138
- var State = (0, _immutable.Record)({
131
+
132
+ var State = exports.State = (0, _immutable.Record)({
139
133
  filters: (0, _immutable.List)([(0, _records.Filter)({
140
134
  name: 'Mine',
141
135
  assignments: 'mine'
@@ -154,8 +148,7 @@ var State = (0, _immutable.Record)({
154
148
  loading: true,
155
149
  error: null
156
150
  });
157
- exports.State = State;
158
- var reducer = function reducer() {
151
+ var reducer = exports.reducer = function reducer() {
159
152
  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : State();
160
153
  var _ref = arguments.length > 1 ? arguments[1] : undefined,
161
154
  type = _ref.type,
@@ -208,5 +201,4 @@ var reducer = function reducer() {
208
201
  default:
209
202
  return state;
210
203
  }
211
- };
212
- exports.reducer = reducer;
204
+ };
@@ -12,24 +12,19 @@ var _isobject = _interopRequireDefault(require("isobject"));
12
12
  var namespace = _bundleCommon.Utils.namespace,
13
13
  noPayload = _bundleCommon.Utils.noPayload,
14
14
  withPayload = _bundleCommon.Utils.withPayload;
15
- var FORMS_INCLUDES = 'details,attributes';
16
- exports.FORMS_INCLUDES = FORMS_INCLUDES;
17
- var FORM_INCLUDES = 'details,fields,attributesMap,categorizations,kapp';
18
- exports.FORM_INCLUDES = FORM_INCLUDES;
19
- var FORM_FULL_INCLUDES = 'details,fields,bridgedResources,customHeadContent,pages,securityPolicies,attributesMap,categorizations,kapp';
20
- exports.FORM_FULL_INCLUDES = FORM_FULL_INCLUDES;
21
- var SUBMISSION_INCLUDES = 'details,values,form,form.kapp,form.fields,activities,activities.details';
15
+ var FORMS_INCLUDES = exports.FORMS_INCLUDES = 'details,attributes';
16
+ var FORM_INCLUDES = exports.FORM_INCLUDES = 'details,fields,attributesMap,categorizations,kapp';
17
+ var FORM_FULL_INCLUDES = exports.FORM_FULL_INCLUDES = 'details,fields,bridgedResources,customHeadContent,pages,securityPolicies,attributesMap,categorizations,kapp';
18
+ var SUBMISSION_INCLUDES = exports.SUBMISSION_INCLUDES = 'details,values,form,form.kapp,form.fields,activities,activities.details';
22
19
 
23
20
  // Used to define form configurations
24
- exports.SUBMISSION_INCLUDES = SUBMISSION_INCLUDES;
25
- var FormConfig = (0, _immutable.Record)({
21
+ var FormConfig = exports.FormConfig = (0, _immutable.Record)({
26
22
  // columns config
27
23
  columns: (0, _immutable.List)()
28
24
  });
29
25
 
30
26
  // Used to define a single table column
31
- exports.FormConfig = FormConfig;
32
- var ColumnConfig = (0, _immutable.Record)({
27
+ var ColumnConfig = exports.ColumnConfig = (0, _immutable.Record)({
33
28
  // name of the column
34
29
  name: '',
35
30
  // label of the column displayed in table
@@ -39,8 +34,7 @@ var ColumnConfig = (0, _immutable.Record)({
39
34
  // if the column is displayable in the table
40
35
  visible: false
41
36
  });
42
- exports.ColumnConfig = ColumnConfig;
43
- var SUBMISSION_SYSTEM_PROPS = [ColumnConfig({
37
+ var SUBMISSION_SYSTEM_PROPS = exports.SUBMISSION_SYSTEM_PROPS = [ColumnConfig({
44
38
  label: 'Handle',
45
39
  name: 'handle',
46
40
  type: 'system',
@@ -75,8 +69,7 @@ var SUBMISSION_SYSTEM_PROPS = [ColumnConfig({
75
69
  name: 'id',
76
70
  type: 'system'
77
71
  })];
78
- exports.SUBMISSION_SYSTEM_PROPS = SUBMISSION_SYSTEM_PROPS;
79
- var types = {
72
+ var types = exports.types = {
80
73
  FETCH_FORM: namespace('settingsQueueForms', 'FETCH_FORM'),
81
74
  FETCH_FORM_REQUEST: namespace('settingsQueueForms', 'FETCH_FORM_REQUEST'),
82
75
  FETCH_FORM_SUCCESS: namespace('settingsQueueForms', 'FETCH_FORM_SUCCESS'),
@@ -105,8 +98,7 @@ var types = {
105
98
  CLONE_FORM_REQUEST: namespace('settingsQueueForms', 'CLONE_FORM_REQUEST'),
106
99
  CLONE_FORM_COMPLETE: namespace('settingsQueueForms', 'CLONE_FORM_COMPLETE')
107
100
  };
108
- exports.types = types;
109
- var actions = {
101
+ var actions = exports.actions = {
110
102
  fetchForm: withPayload(types.FETCH_FORM),
111
103
  fetchFormRequest: withPayload(types.FETCH_FORM_REQUEST),
112
104
  fetchFormSuccess: withPayload(types.FETCH_FORM_SUCCESS),
@@ -138,8 +130,8 @@ var actions = {
138
130
  // new
139
131
  cloneFormComplete: withPayload(types.CLONE_FORM_COMPLETE) // new
140
132
  };
141
- exports.actions = actions;
142
- var parseFormConfigurationJson = function parseFormConfigurationJson(json) {
133
+
134
+ var parseFormConfigurationJson = exports.parseFormConfigurationJson = function parseFormConfigurationJson(json) {
143
135
  try {
144
136
  var parsed = JSON.parse(json);
145
137
  if ((0, _isobject["default"])(parsed)) {
@@ -153,8 +145,7 @@ var parseFormConfigurationJson = function parseFormConfigurationJson(json) {
153
145
  return FormConfig();
154
146
  }
155
147
  };
156
- exports.parseFormConfigurationJson = parseFormConfigurationJson;
157
- var buildFormConfigurationObject = function buildFormConfigurationObject(form) {
148
+ var buildFormConfigurationObject = exports.buildFormConfigurationObject = function buildFormConfigurationObject(form) {
158
149
  // Parse Form Attribute for Configuration Values
159
150
  var parsedConfig = parseFormConfigurationJson(form.attributesMap['Form Configuration'] && form.attributesMap['Form Configuration'][0]);
160
151
  // Build a list of all current column properties
@@ -203,7 +194,6 @@ var buildFormConfigurationObject = function buildFormConfigurationObject(form) {
203
194
  });
204
195
  }
205
196
  };
206
- exports.buildFormConfigurationObject = buildFormConfigurationObject;
207
197
  var sortSubmissions = function sortSubmissions(submissions, sortInfo) {
208
198
  if (sortInfo) {
209
199
  return submissions.sortBy(function (submission) {
@@ -215,21 +205,18 @@ var sortSubmissions = function sortSubmissions(submissions, sortInfo) {
215
205
  return submissions;
216
206
  }
217
207
  };
218
- var selectCurrentForm = function selectCurrentForm(state) {
208
+ var selectCurrentForm = exports.selectCurrentForm = function selectCurrentForm(state) {
219
209
  return state.settingsForms.currentForm;
220
210
  };
221
- exports.selectCurrentForm = selectCurrentForm;
222
- var selectCurrentFormChanges = function selectCurrentFormChanges(state) {
211
+ var selectCurrentFormChanges = exports.selectCurrentFormChanges = function selectCurrentFormChanges(state) {
223
212
  return state.settingsForms.currentFormChanges;
224
213
  };
225
- exports.selectCurrentFormChanges = selectCurrentFormChanges;
226
- var selectFormBySlug = function selectFormBySlug(state, formSlug) {
214
+ var selectFormBySlug = exports.selectFormBySlug = function selectFormBySlug(state, formSlug) {
227
215
  return state.forms.find(function (form) {
228
216
  return form.slug === formSlug;
229
217
  });
230
218
  };
231
- exports.selectFormBySlug = selectFormBySlug;
232
- var State = (0, _immutable.Record)({
219
+ var State = exports.State = (0, _immutable.Record)({
233
220
  loading: true,
234
221
  errors: [],
235
222
  currentForm: null,
@@ -254,8 +241,7 @@ var State = (0, _immutable.Record)({
254
241
  downloaded: false,
255
242
  processing: (0, _immutable.Map)()
256
243
  });
257
- exports.State = State;
258
- var reducer = function reducer() {
244
+ var reducer = exports.reducer = function reducer() {
259
245
  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : State();
260
246
  var _ref = arguments.length > 1 ? arguments[1] : undefined,
261
247
  type = _ref.type,
@@ -319,5 +305,4 @@ var reducer = function reducer() {
319
305
  default:
320
306
  return state;
321
307
  }
322
- };
323
- exports.reducer = reducer;
308
+ };
@@ -8,7 +8,7 @@ var _immutable = require("immutable");
8
8
  var _bundleCommon = require("@kineticdata/bundle-common");
9
9
  var namespace = _bundleCommon.Utils.namespace,
10
10
  withPayload = _bundleCommon.Utils.withPayload;
11
- var types = {
11
+ var types = exports.types = {
12
12
  UPDATE_QUEUE_SETTINGS: namespace('queueSettings', 'UPDATE_QUEUE_SETTINGS'),
13
13
  UPDATE_QUEUE_SETTINGS_ERROR: namespace('queueSettings', 'UPDATE_QUEUE_SETTINGS_ERROR'),
14
14
  FETCH_QUEUE_SETTINGS: namespace('queueSettings', 'FETCH_QUEUE_SETTINGS'),
@@ -24,8 +24,7 @@ var types = {
24
24
  FETCH_FORM: namespace('queueSettings', 'FETCH_FORM'),
25
25
  SET_FORM: namespace('queueSettings', 'SET_FORM')
26
26
  };
27
- exports.types = types;
28
- var actions = {
27
+ var actions = exports.actions = {
29
28
  updateQueueSettings: withPayload(types.UPDATE_QUEUE_SETTINGS),
30
29
  updateQueueSettingsError: withPayload(types.UPDATE_QUEUE_SETTINGS_ERROR),
31
30
  fetchQueueSettings: withPayload(types.FETCH_QUEUE_SETTINGS),
@@ -41,8 +40,7 @@ var actions = {
41
40
  fetchForm: withPayload(types.FETCH_FORM),
42
41
  setForm: withPayload(types.SET_FORM)
43
42
  };
44
- exports.actions = actions;
45
- var State = (0, _immutable.Record)({
43
+ var State = exports.State = (0, _immutable.Record)({
46
44
  loading: true,
47
45
  teams: null,
48
46
  users: null,
@@ -57,8 +55,7 @@ var State = (0, _immutable.Record)({
57
55
  notificationsLoading: true,
58
56
  form: null
59
57
  });
60
- exports.State = State;
61
- var reducer = function reducer() {
58
+ var reducer = exports.reducer = function reducer() {
62
59
  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : State();
63
60
  var _ref = arguments.length > 1 ? arguments[1] : undefined,
64
61
  type = _ref.type,
@@ -95,5 +92,4 @@ var reducer = function reducer() {
95
92
  default:
96
93
  return state;
97
94
  }
98
- };
99
- exports.reducer = reducer;
95
+ };
@@ -8,12 +8,11 @@ var _immutable = require("immutable");
8
8
  var _bundleCommon = require("@kineticdata/bundle-common");
9
9
  var namespace = _bundleCommon.Utils.namespace,
10
10
  noPayload = _bundleCommon.Utils.noPayload;
11
- var types = {
11
+ var types = exports.types = {
12
12
  OPEN_WORK_MENU: namespace('workMenu', 'OPEN_WORK_MENU'),
13
13
  CLOSE_WORK_MENU: namespace('workMenu', 'CLOSE_WORK_MENU')
14
14
  };
15
- exports.types = types;
16
- var actions = {
15
+ var actions = exports.actions = {
17
16
  openWorkMenu: function openWorkMenu(queueItem, onWorked) {
18
17
  return {
19
18
  type: types.OPEN_WORK_MENU,
@@ -25,13 +24,11 @@ var actions = {
25
24
  },
26
25
  closeWorkMenu: noPayload(types.CLOSE_WORK_MENU)
27
26
  };
28
- exports.actions = actions;
29
- var State = (0, _immutable.Record)({
27
+ var State = exports.State = (0, _immutable.Record)({
30
28
  queueItem: null,
31
29
  onWorked: null
32
30
  });
33
- exports.State = State;
34
- var reducer = function reducer() {
31
+ var reducer = exports.reducer = function reducer() {
35
32
  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : State();
36
33
  var _ref = arguments.length > 1 ? arguments[1] : undefined,
37
34
  type = _ref.type,
@@ -44,5 +41,4 @@ var reducer = function reducer() {
44
41
  default:
45
42
  return state;
46
43
  }
47
- };
48
- exports.reducer = reducer;
44
+ };
@@ -12,7 +12,7 @@ var _workMenu = require("./modules/workMenu");
12
12
  var _settingsQueue = require("./modules/settingsQueue");
13
13
  var _settingsForms = require("./modules/settingsForms");
14
14
  var _forms = require("./modules/forms");
15
- var _default = {
15
+ var _default = exports["default"] = {
16
16
  app: _app.reducer,
17
17
  queueApp: _queueApp.reducer,
18
18
  queue: _queue.reducer,
@@ -21,5 +21,4 @@ var _default = {
21
21
  queueSettings: _settingsQueue.reducer,
22
22
  settingsForms: _settingsForms.reducer,
23
23
  forms: _forms.reducer
24
- };
25
- exports["default"] = _default;
24
+ };
@@ -12,26 +12,22 @@ var _marked = /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(syncAppSt
12
12
  _marked2 = /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(watchApp);
13
13
  function syncAppState(action) {
14
14
  return (0, _regeneratorRuntime2["default"])().wrap(function syncAppState$(_context) {
15
- while (1) {
16
- switch (_context.prev = _context.next) {
17
- case 0:
18
- case "end":
19
- return _context.stop();
20
- }
15
+ while (1) switch (_context.prev = _context.next) {
16
+ case 0:
17
+ case "end":
18
+ return _context.stop();
21
19
  }
22
20
  }, _marked);
23
21
  }
24
22
  function watchApp() {
25
23
  return (0, _regeneratorRuntime2["default"])().wrap(function watchApp$(_context2) {
26
- while (1) {
27
- switch (_context2.prev = _context2.next) {
28
- case 0:
29
- _context2.next = 2;
30
- return (0, _effects.takeEvery)(_app.types.SYNC_APP_STATE, syncAppState);
31
- case 2:
32
- case "end":
33
- return _context2.stop();
34
- }
24
+ while (1) switch (_context2.prev = _context2.next) {
25
+ case 0:
26
+ _context2.next = 2;
27
+ return (0, _effects.takeEvery)(_app.types.SYNC_APP_STATE, syncAppState);
28
+ case 2:
29
+ case "end":
30
+ return _context2.stop();
35
31
  }
36
32
  }, _marked2);
37
33
  }
@@ -15,54 +15,50 @@ var _marked = /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(fetchForm
15
15
  function fetchFormsSaga() {
16
16
  var kappSlug, _yield$call, forms, error;
17
17
  return (0, _regeneratorRuntime2["default"])().wrap(function fetchFormsSaga$(_context) {
18
- while (1) {
19
- switch (_context.prev = _context.next) {
20
- case 0:
21
- _context.next = 2;
22
- return (0, _effects.select)(function (state) {
23
- return state.app.kappSlug;
24
- });
25
- case 2:
26
- kappSlug = _context.sent;
27
- _context.next = 5;
28
- return (0, _effects.call)(_react.fetchForms, {
29
- kappSlug: kappSlug,
30
- include: 'details,categorizations,attributes,kapp'
31
- });
32
- case 5:
33
- _yield$call = _context.sent;
34
- forms = _yield$call.forms;
35
- error = _yield$call.error;
36
- if (!error) {
37
- _context.next = 13;
38
- break;
39
- }
40
- _context.next = 11;
41
- return (0, _effects.put)(_forms.actions.fetchFormsFailure(error));
42
- case 11:
43
- _context.next = 15;
18
+ while (1) switch (_context.prev = _context.next) {
19
+ case 0:
20
+ _context.next = 2;
21
+ return (0, _effects.select)(function (state) {
22
+ return state.app.kappSlug;
23
+ });
24
+ case 2:
25
+ kappSlug = _context.sent;
26
+ _context.next = 5;
27
+ return (0, _effects.call)(_react.fetchForms, {
28
+ kappSlug: kappSlug,
29
+ include: 'details,categorizations,attributes,kapp'
30
+ });
31
+ case 5:
32
+ _yield$call = _context.sent;
33
+ forms = _yield$call.forms;
34
+ error = _yield$call.error;
35
+ if (!error) {
36
+ _context.next = 13;
44
37
  break;
45
- case 13:
46
- _context.next = 15;
47
- return (0, _effects.put)(_forms.actions.fetchFormsSuccess(forms));
48
- case 15:
49
- case "end":
50
- return _context.stop();
51
- }
38
+ }
39
+ _context.next = 11;
40
+ return (0, _effects.put)(_forms.actions.fetchFormsFailure(error));
41
+ case 11:
42
+ _context.next = 15;
43
+ break;
44
+ case 13:
45
+ _context.next = 15;
46
+ return (0, _effects.put)(_forms.actions.fetchFormsSuccess(forms));
47
+ case 15:
48
+ case "end":
49
+ return _context.stop();
52
50
  }
53
51
  }, _marked);
54
52
  }
55
53
  function watchForms() {
56
54
  return (0, _regeneratorRuntime2["default"])().wrap(function watchForms$(_context2) {
57
- while (1) {
58
- switch (_context2.prev = _context2.next) {
59
- case 0:
60
- _context2.next = 2;
61
- return (0, _effects.takeEvery)(_forms.types.FETCH_FORMS_REQUEST, fetchFormsSaga);
62
- case 2:
63
- case "end":
64
- return _context2.stop();
65
- }
55
+ while (1) switch (_context2.prev = _context2.next) {
56
+ case 0:
57
+ _context2.next = 2;
58
+ return (0, _effects.takeEvery)(_forms.types.FETCH_FORMS_REQUEST, fetchFormsSaga);
59
+ case 2:
60
+ case "end":
61
+ return _context2.stop();
66
62
  }
67
63
  }, _marked2);
68
64
  }