@kineticdata/bundle-tech-bar 5.1.2 → 6.0.1
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 +41 -36
- package/lib/components/AppointmentForm.js +48 -36
- package/lib/components/CheckIn.js +86 -78
- package/lib/components/Display.js +64 -53
- package/lib/components/Feedback.js +106 -103
- package/lib/components/Form.js +56 -48
- package/lib/components/Home.js +148 -144
- package/lib/components/Overhead.js +52 -44
- package/lib/components/Past.js +56 -44
- package/lib/components/Sidebar.js +58 -51
- package/lib/components/TechBars.js +72 -68
- package/lib/components/settings/SchedulerSettings.js +32 -21
- package/lib/components/settings/Settings.js +54 -50
- package/lib/components/settings/Sidebar.js +41 -31
- package/lib/components/settings/TechBarMetrics.js +124 -120
- package/lib/components/settings/TechBarSettings.js +46 -36
- package/lib/components/settings/metrics/MetricsExport.js +120 -107
- package/lib/components/settings/metrics/MetricsSummary.js +140 -141
- package/lib/components/settings/metrics/MetricsTrend.js +331 -341
- package/lib/components/settings/tech-bar/AppointmentForm.js +30 -20
- package/lib/components/settings/tech-bar/TechBar.js +90 -79
- package/lib/components/settings/tech-bar/TechBarDisplayMembers.js +108 -108
- package/lib/components/settings/tech-bar/TechBarSettingsForm.js +44 -34
- package/lib/components/shared/PageTitle.js +24 -15
- package/lib/constants.js +38 -16
- package/lib/index.js +49 -53
- package/lib/redux/modules/app.js +22 -17
- package/lib/redux/modules/appointments.js +31 -35
- package/lib/redux/modules/export.js +26 -21
- package/lib/redux/modules/metrics.js +24 -19
- package/lib/redux/modules/techBarApp.js +33 -34
- package/lib/redux/modules/walkIns.js +23 -21
- package/lib/redux/reducers.js +21 -14
- package/lib/redux/sagas/app.js +15 -13
- package/lib/redux/sagas/appointments.js +220 -256
- package/lib/redux/sagas/export.js +153 -166
- package/lib/redux/sagas/metrics.js +76 -76
- package/lib/redux/sagas/techBarApp.js +240 -258
- package/lib/redux/sagas/walkIns.js +124 -132
- package/lib/redux/sagas.js +18 -14
- package/lib/redux/store.js +36 -27
- package/lib/utils.js +9 -2
- package/package.json +54 -64
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
33
|
-
|
|
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;
|
package/lib/redux/reducers.js
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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;
|
package/lib/redux/sagas/app.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
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
|
|
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
|
-
|
|
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();
|