@kineticdata/bundle-tech-bar 5.1.2 → 6.0.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.
Files changed (43) hide show
  1. package/lib/App.js +41 -36
  2. package/lib/components/AppointmentForm.js +48 -36
  3. package/lib/components/CheckIn.js +86 -78
  4. package/lib/components/Display.js +64 -53
  5. package/lib/components/Feedback.js +106 -103
  6. package/lib/components/Form.js +56 -48
  7. package/lib/components/Home.js +148 -144
  8. package/lib/components/Overhead.js +52 -44
  9. package/lib/components/Past.js +56 -44
  10. package/lib/components/Sidebar.js +58 -51
  11. package/lib/components/TechBars.js +72 -68
  12. package/lib/components/settings/SchedulerSettings.js +32 -21
  13. package/lib/components/settings/Settings.js +54 -50
  14. package/lib/components/settings/Sidebar.js +41 -31
  15. package/lib/components/settings/TechBarMetrics.js +124 -120
  16. package/lib/components/settings/TechBarSettings.js +46 -36
  17. package/lib/components/settings/metrics/MetricsExport.js +120 -107
  18. package/lib/components/settings/metrics/MetricsSummary.js +140 -141
  19. package/lib/components/settings/metrics/MetricsTrend.js +331 -341
  20. package/lib/components/settings/tech-bar/AppointmentForm.js +30 -20
  21. package/lib/components/settings/tech-bar/TechBar.js +90 -79
  22. package/lib/components/settings/tech-bar/TechBarDisplayMembers.js +108 -108
  23. package/lib/components/settings/tech-bar/TechBarSettingsForm.js +44 -34
  24. package/lib/components/shared/PageTitle.js +24 -15
  25. package/lib/constants.js +38 -16
  26. package/lib/index.js +49 -53
  27. package/lib/redux/modules/app.js +22 -17
  28. package/lib/redux/modules/appointments.js +31 -35
  29. package/lib/redux/modules/export.js +26 -21
  30. package/lib/redux/modules/metrics.js +24 -19
  31. package/lib/redux/modules/techBarApp.js +33 -34
  32. package/lib/redux/modules/walkIns.js +23 -21
  33. package/lib/redux/reducers.js +21 -14
  34. package/lib/redux/sagas/app.js +15 -13
  35. package/lib/redux/sagas/appointments.js +220 -256
  36. package/lib/redux/sagas/export.js +153 -166
  37. package/lib/redux/sagas/metrics.js +76 -76
  38. package/lib/redux/sagas/techBarApp.js +240 -258
  39. package/lib/redux/sagas/walkIns.js +124 -132
  40. package/lib/redux/sagas.js +18 -14
  41. package/lib/redux/store.js +36 -27
  42. package/lib/utils.js +9 -2
  43. package/package.json +5 -14
@@ -1,8 +1,14 @@
1
- import { Record, List } from 'immutable';
2
- import { Utils } from '@kineticdata/bundle-common';
3
- var withPayload = Utils.withPayload;
4
- var ns = Utils.namespaceBuilder('techbar/walkins');
5
- export var types = {
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.types = exports.reducer = exports.actions = exports.State = void 0;
7
+ var _immutable = require("immutable");
8
+ var _bundleCommon = require("@kineticdata/bundle-common");
9
+ var withPayload = _bundleCommon.Utils.withPayload;
10
+ var ns = _bundleCommon.Utils.namespaceBuilder('techbar/walkins');
11
+ var types = {
6
12
  FETCH_WALK_INS_FAILURE: ns('FETCH_WALK_INS_FAILURE'),
7
13
  FETCH_TODAY_WALK_INS_REQUEST: ns('FETCH_TODAY_WALK_INS_REQUEST'),
8
14
  FETCH_TODAY_WALK_INS_SUCCESS: ns('FETCH_TODAY_WALK_INS_SUCCESS'),
@@ -10,7 +16,8 @@ export var types = {
10
16
  FETCH_WALK_INS_OVERVIEW_SUCCESS: ns('FETCH_WALK_INS_OVERVIEW_SUCCESS'),
11
17
  FETCH_WALK_INS_OVERVIEW_FAILURE: ns('FETCH_WALK_INS_OVERVIEW_FAILURE')
12
18
  };
13
- export var actions = {
19
+ exports.types = types;
20
+ var actions = {
14
21
  fetchWalkInsFailure: withPayload(types.FETCH_WALK_INS_FAILURE),
15
22
  fetchTodayWalkInsRequest: withPayload(types.FETCH_TODAY_WALK_INS_REQUEST),
16
23
  fetchTodayWalkInsSuccess: withPayload(types.FETCH_TODAY_WALK_INS_SUCCESS),
@@ -18,42 +25,37 @@ export var actions = {
18
25
  fetchWalkInsOverviewSuccess: withPayload(types.FETCH_WALK_INS_OVERVIEW_SUCCESS),
19
26
  fetchWalkInsOverviewFailure: withPayload(types.FETCH_WALK_INS_OVERVIEW_FAILURE)
20
27
  };
21
- export var State = Record({
28
+ exports.actions = actions;
29
+ var State = (0, _immutable.Record)({
22
30
  loading: true,
23
31
  error: null,
24
32
  today: null,
25
33
  overview: null,
26
34
  overviewError: null
27
35
  });
28
- export var reducer = function reducer() {
36
+ exports.State = State;
37
+ var reducer = function reducer() {
29
38
  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : State();
30
-
31
39
  var _ref = arguments.length > 1 ? arguments[1] : undefined,
32
- type = _ref.type,
33
- payload = _ref.payload;
34
-
40
+ type = _ref.type,
41
+ payload = _ref.payload;
35
42
  switch (type) {
36
43
  case types.FETCH_WALK_INS_FAILURE:
37
44
  return state.set('error', payload);
38
-
39
45
  case types.FETCH_TODAY_WALK_INS_REQUEST:
40
46
  return state.set('error', null).set('today', null);
41
-
42
47
  case types.FETCH_TODAY_WALK_INS_SUCCESS:
43
- return state.set('today', List(payload).sortBy(function (a) {
48
+ return state.set('today', (0, _immutable.List)(payload).sortBy(function (a) {
44
49
  return "".concat(a.values['Event Date'], " ").concat(a.values['Event Time']);
45
50
  }));
46
-
47
51
  case types.FETCH_WALK_INS_OVERVIEW_REQUEST:
48
52
  return state.set('overviewError', null).set('overview', null);
49
-
50
53
  case types.FETCH_WALK_INS_OVERVIEW_SUCCESS:
51
- return state.set('overview', List(payload));
52
-
54
+ return state.set('overview', (0, _immutable.List)(payload));
53
55
  case types.FETCH_WALK_INS_OVERVIEW_FAILURE:
54
56
  return state.set('overviewError', payload);
55
-
56
57
  default:
57
58
  return state;
58
59
  }
59
- };
60
+ };
61
+ exports.reducer = reducer;
@@ -1,14 +1,21 @@
1
- import { reducer as app } from './modules/app';
2
- import { reducer as appointments } from './modules/appointments';
3
- import { reducer as techBarApp } from './modules/techBarApp';
4
- import { reducer as walkIns } from './modules/walkIns';
5
- import { reducer as metrics } from './modules/metrics';
6
- import { reducer as exportReducer } from './modules/export';
7
- export default {
8
- app: app,
9
- appointments: appointments,
10
- techBarApp: techBarApp,
11
- walkIns: walkIns,
12
- metrics: metrics,
13
- "export": exportReducer
14
- };
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _app = require("./modules/app");
8
+ var _appointments = require("./modules/appointments");
9
+ var _techBarApp = require("./modules/techBarApp");
10
+ var _walkIns = require("./modules/walkIns");
11
+ var _metrics = require("./modules/metrics");
12
+ var _export = require("./modules/export");
13
+ var _default = {
14
+ app: _app.reducer,
15
+ appointments: _appointments.reducer,
16
+ techBarApp: _techBarApp.reducer,
17
+ walkIns: _walkIns.reducer,
18
+ metrics: _metrics.reducer,
19
+ "export": _export.reducer
20
+ };
21
+ exports["default"] = _default;
@@ -1,13 +1,17 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
-
3
- var _marked = /*#__PURE__*/_regeneratorRuntime.mark(syncAppState),
4
- _marked2 = /*#__PURE__*/_regeneratorRuntime.mark(watchApp);
5
-
6
- import { takeEvery } from 'redux-saga/effects';
7
- import { types } from '../modules/app';
1
+ "use strict";
8
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.watchApp = watchApp;
8
+ var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/regeneratorRuntime"));
9
+ var _effects = require("redux-saga/effects");
10
+ var _app = require("../modules/app");
11
+ var _marked = /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(syncAppState),
12
+ _marked2 = /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(watchApp);
9
13
  function syncAppState(action) {
10
- return _regeneratorRuntime.wrap(function syncAppState$(_context) {
14
+ return (0, _regeneratorRuntime2["default"])().wrap(function syncAppState$(_context) {
11
15
  while (1) {
12
16
  switch (_context.prev = _context.next) {
13
17
  case 0:
@@ -17,15 +21,13 @@ function syncAppState(action) {
17
21
  }
18
22
  }, _marked);
19
23
  }
20
-
21
- export function watchApp() {
22
- return _regeneratorRuntime.wrap(function watchApp$(_context2) {
24
+ function watchApp() {
25
+ return (0, _regeneratorRuntime2["default"])().wrap(function watchApp$(_context2) {
23
26
  while (1) {
24
27
  switch (_context2.prev = _context2.next) {
25
28
  case 0:
26
29
  _context2.next = 2;
27
- return takeEvery(types.SYNC_APP_STATE, syncAppState);
28
-
30
+ return (0, _effects.takeEvery)(_app.types.SYNC_APP_STATE, syncAppState);
29
31
  case 2:
30
32
  case "end":
31
33
  return _context2.stop();