@imposium-hub/components 2.5.10-0 → 2.5.10-10
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/dist/cjs/components/card/Card.d.ts +1 -0
- package/dist/cjs/components/card/Card.js +17 -4
- package/dist/cjs/components/card/Card.js.map +1 -1
- package/dist/cjs/components/confirm-modal/ConfirmModal.d.ts +5 -3
- package/dist/cjs/components/confirm-modal/ConfirmModal.js +10 -9
- package/dist/cjs/components/confirm-modal/ConfirmModal.js.map +1 -1
- package/dist/cjs/components/data-table/Paginator.js +51 -7
- package/dist/cjs/components/data-table/Paginator.js.map +1 -1
- package/dist/cjs/components/smpte-field/SMPTEField.d.ts +2 -1
- package/dist/cjs/components/smpte-field/SMPTEField.js +9 -3
- package/dist/cjs/components/smpte-field/SMPTEField.js.map +1 -1
- package/dist/cjs/constants/copy.d.ts +1 -0
- package/dist/cjs/constants/copy.js +6 -1
- package/dist/cjs/constants/copy.js.map +1 -1
- package/dist/cjs/index.d.ts +4 -1
- package/dist/cjs/index.js +8 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/redux/actions/asset-list.js +34 -42
- package/dist/cjs/redux/actions/asset-list.js.map +1 -1
- package/dist/esm/components/card/Card.d.ts +1 -0
- package/dist/esm/components/card/Card.js +16 -4
- package/dist/esm/components/card/Card.js.map +1 -1
- package/dist/esm/components/confirm-modal/ConfirmModal.d.ts +5 -3
- package/dist/esm/components/confirm-modal/ConfirmModal.js +10 -9
- package/dist/esm/components/confirm-modal/ConfirmModal.js.map +1 -1
- package/dist/esm/components/data-table/Paginator.js +74 -44
- package/dist/esm/components/data-table/Paginator.js.map +1 -1
- package/dist/esm/components/smpte-field/SMPTEField.d.ts +2 -1
- package/dist/esm/components/smpte-field/SMPTEField.js +9 -3
- package/dist/esm/components/smpte-field/SMPTEField.js.map +1 -1
- package/dist/esm/constants/copy.d.ts +1 -0
- package/dist/esm/constants/copy.js +5 -0
- package/dist/esm/constants/copy.js.map +1 -1
- package/dist/esm/index.d.ts +4 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/redux/actions/asset-list.js +34 -42
- package/dist/esm/redux/actions/asset-list.js.map +1 -1
- package/dist/styles.css +27 -0
- package/dist/styles.less +34 -0
- package/less/components/button.less +21 -0
- package/less/components/data-table.less +4 -0
- package/less/components/form-field.less +4 -0
- package/less/components/tag.less +5 -0
- package/package.json +1 -1
- package/src/components/assets/AssetsTableAssetIdCell.tsx +65 -0
- package/src/components/assets/AssetsTableAssetIdFilter.tsx +40 -0
- package/src/components/card/Card.tsx +27 -13
- package/src/components/confirm-modal/ConfirmModal.tsx +70 -0
- package/src/components/data-table/Paginator.tsx +140 -93
- package/src/components/smpte-field/SMPTEField.tsx +8 -3
- package/src/constants/copy.ts +6 -0
- package/src/index.ts +7 -1
- package/src/redux/actions/asset-list.ts +37 -44
- package/dist/cjs/components/assets/AssetsTableAssetIdFilter copy.d.ts +0 -2
- package/dist/cjs/components/assets/AssetsTableAssetIdFilter copy.js +0 -94
- package/dist/cjs/components/assets/AssetsTableAssetIdFilter copy.js.map +0 -1
- package/dist/cjs/components/assets/AssetsTableNameFilter copy.d.ts +0 -2
- package/dist/cjs/components/assets/AssetsTableNameFilter copy.js +0 -94
- package/dist/cjs/components/assets/AssetsTableNameFilter copy.js.map +0 -1
- package/dist/cjs/redux/actions/notifications.d.ts +0 -8
- package/dist/cjs/redux/actions/notifications.js +0 -56
- package/dist/cjs/redux/actions/notifications.js.map +0 -1
- package/dist/cjs/redux/reducers/notifications.d.ts +0 -8
- package/dist/cjs/redux/reducers/notifications.js +0 -45
- package/dist/cjs/redux/reducers/notifications.js.map +0 -1
- package/dist/esm/components/assets/AssetsTableAssetIdFilter copy.d.ts +0 -2
- package/dist/esm/components/assets/AssetsTableAssetIdFilter copy.js +0 -20
- package/dist/esm/components/assets/AssetsTableAssetIdFilter copy.js.map +0 -1
- package/dist/esm/components/assets/AssetsTableNameFilter copy.d.ts +0 -2
- package/dist/esm/components/assets/AssetsTableNameFilter copy.js +0 -20
- package/dist/esm/components/assets/AssetsTableNameFilter copy.js.map +0 -1
- package/dist/esm/redux/actions/notifications.d.ts +0 -8
- package/dist/esm/redux/actions/notifications.js +0 -47
- package/dist/esm/redux/actions/notifications.js.map +0 -1
- package/dist/esm/redux/reducers/notifications.d.ts +0 -8
- package/dist/esm/redux/reducers/notifications.js +0 -14
- package/dist/esm/redux/reducers/notifications.js.map +0 -1
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.clearNotifications = exports.logWarning = exports.logError = exports.logNotification = exports.clear = exports.log = void 0;
|
|
4
|
-
var api_1 = require("../../constants/api");
|
|
5
|
-
var Util_1 = require("../../Util");
|
|
6
|
-
var notifications = {
|
|
7
|
-
LOG: 'notifications/LOG',
|
|
8
|
-
CLEAR: 'notifications/LOG'
|
|
9
|
-
};
|
|
10
|
-
var log = function (text, type, button) {
|
|
11
|
-
var time = (0, Util_1.getNotificationTime)();
|
|
12
|
-
return function (dispatch) {
|
|
13
|
-
dispatch({
|
|
14
|
-
type: notifications.LOG,
|
|
15
|
-
notification: {
|
|
16
|
-
time: time,
|
|
17
|
-
text: text,
|
|
18
|
-
type: type,
|
|
19
|
-
button: button
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
exports.log = log;
|
|
25
|
-
var clear = function () {
|
|
26
|
-
return function (dispatch) {
|
|
27
|
-
dispatch({ type: notifications.CLEAR });
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
exports.clear = clear;
|
|
31
|
-
var logNotification = function (text, button) {
|
|
32
|
-
return function (dispatch) {
|
|
33
|
-
dispatch((0, exports.log)(text, api_1.NOTIFICATION_TYPES.INFO, button));
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
exports.logNotification = logNotification;
|
|
37
|
-
var logError = function (text, button) {
|
|
38
|
-
return function (dispatch) {
|
|
39
|
-
dispatch((0, exports.log)(text, api_1.NOTIFICATION_TYPES.ERROR, button));
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
exports.logError = logError;
|
|
43
|
-
var logWarning = function (text, button) {
|
|
44
|
-
return function (dispatch) {
|
|
45
|
-
dispatch((0, exports.log)(text, api_1.NOTIFICATION_TYPES.WARNING, button));
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
exports.logWarning = logWarning;
|
|
49
|
-
var clearNotifications = function () {
|
|
50
|
-
return function (dispatch) {
|
|
51
|
-
dispatch((0, exports.clear)());
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
exports.clearNotifications = clearNotifications;
|
|
55
|
-
exports.default = notifications;
|
|
56
|
-
//# sourceMappingURL=notifications.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../../src/redux/actions/notifications.ts"],"names":[],"mappings":";;;AAAA,2CAAyD;AACzD,mCAAiD;AAEjD,IAAM,aAAa,GAAQ;IACvB,GAAG,EAAE,mBAAmB;IACxB,KAAK,EAAE,mBAAmB;CAC7B,CAAC;AAEK,IAAM,GAAG,GAAG,UAAC,IAAI,EAAE,IAAI,EAAE,MAAO;IACnC,IAAM,IAAI,GAAG,IAAA,0BAAmB,GAAE,CAAC;IAEnC,OAAO,UAAC,QAAQ;QACZ,QAAQ,CAAC;YACL,IAAI,EAAE,aAAa,CAAC,GAAG;YACvB,YAAY,EAAE;gBACV,IAAI,MAAA;gBACJ,IAAI,MAAA;gBACJ,IAAI,MAAA;gBACJ,MAAM,QAAA;aACT;SACJ,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC,CAAC;AAdW,QAAA,GAAG,OAcd;AAEK,IAAM,KAAK,GAAG;IACjB,OAAO,UAAC,QAAQ;QACZ,QAAQ,CAAC,EAAE,IAAI,EAAE,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC;IAC5C,CAAC,CAAC;AACN,CAAC,CAAC;AAJW,QAAA,KAAK,SAIhB;AAEK,IAAM,eAAe,GAAG,UAAC,IAAI,EAAE,MAAO;IACzC,OAAO,UAAC,QAAQ;QACZ,QAAQ,CAAC,IAAA,WAAG,EAAC,IAAI,EAAE,wBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IACzD,CAAC,CAAC;AACN,CAAC,CAAC;AAJW,QAAA,eAAe,mBAI1B;AAEK,IAAM,QAAQ,GAAG,UAAC,IAAI,EAAE,MAAO;IAClC,OAAO,UAAC,QAAQ;QACZ,QAAQ,CAAC,IAAA,WAAG,EAAC,IAAI,EAAE,wBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC;AACN,CAAC,CAAC;AAJW,QAAA,QAAQ,YAInB;AAEK,IAAM,UAAU,GAAG,UAAC,IAAI,EAAE,MAAO;IACpC,OAAO,UAAC,QAAQ;QACZ,QAAQ,CAAC,IAAA,WAAG,EAAC,IAAI,EAAE,wBAAkB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IAC5D,CAAC,CAAC;AACN,CAAC,CAAC;AAJW,QAAA,UAAU,cAIrB;AAEK,IAAM,kBAAkB,GAAG;IAC9B,OAAO,UAAC,QAAQ;QACZ,QAAQ,CAAC,IAAA,aAAK,GAAE,CAAC,CAAC;IACtB,CAAC,CAAC;AACN,CAAC,CAAC;AAJW,QAAA,kBAAkB,sBAI7B;AAEF,kBAAe,aAAa,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
3
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4
|
-
if (!m) return o;
|
|
5
|
-
var i = m.call(o), r, ar = [], e;
|
|
6
|
-
try {
|
|
7
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
8
|
-
}
|
|
9
|
-
catch (error) { e = { error: error }; }
|
|
10
|
-
finally {
|
|
11
|
-
try {
|
|
12
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
13
|
-
}
|
|
14
|
-
finally { if (e) throw e.error; }
|
|
15
|
-
}
|
|
16
|
-
return ar;
|
|
17
|
-
};
|
|
18
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
19
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
20
|
-
if (ar || !(i in from)) {
|
|
21
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
22
|
-
ar[i] = from[i];
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
26
|
-
};
|
|
27
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
28
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29
|
-
};
|
|
30
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
var notifications_1 = __importDefault(require("../actions/notifications"));
|
|
32
|
-
var initialState = [];
|
|
33
|
-
var notifications = function (state, action) {
|
|
34
|
-
if (state === void 0) { state = initialState; }
|
|
35
|
-
switch (action.type) {
|
|
36
|
-
case notifications_1.default.LOG:
|
|
37
|
-
return __spreadArray([action.notification], __read(state), false);
|
|
38
|
-
case notifications_1.default.CLEAR:
|
|
39
|
-
return [];
|
|
40
|
-
default:
|
|
41
|
-
return state;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
exports.default = notifications;
|
|
45
|
-
//# sourceMappingURL=notifications.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../../src/redux/reducers/notifications.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2EAA+C;AAS/C,IAAM,YAAY,GAAoB,EAAE,CAAC;AAEzC,IAAM,aAAa,GAAG,UAAC,KAAoB,EAAE,MAAM;IAA5B,sBAAA,EAAA,oBAAoB;IACvC,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,uBAAO,CAAC,GAAG;YACZ,sBAAQ,MAAM,CAAC,YAAY,UAAK,KAAK,UAAE;QAC3C,KAAK,uBAAO,CAAC,KAAK;YACd,OAAO,EAAE,CAAC;QACd;YACI,OAAO,KAAK,CAAC;IACrB,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import TextField from '../text-field/TextField';
|
|
3
|
-
import { updateFilters } from '../../redux/actions/asset-filters';
|
|
4
|
-
import { connect } from 'react-redux';
|
|
5
|
-
import { bindActionCreators } from 'redux';
|
|
6
|
-
class AssetsTableAssetIdFilter extends React.PureComponent {
|
|
7
|
-
render = () => {
|
|
8
|
-
const { assetFilters } = this.props;
|
|
9
|
-
return (React.createElement(TextField, { className: 'asset-id', submittable: true, submittableType: 'search', value: assetFilters.id, doSubmit: (n) => this.props.updateFilters({ id: n }) }));
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
const mapDispatchToProps = (dispatch) => {
|
|
13
|
-
return bindActionCreators({ updateFilters }, dispatch);
|
|
14
|
-
};
|
|
15
|
-
const mapStateToProps = (state) => {
|
|
16
|
-
return { assetFilters: state.assetFilters };
|
|
17
|
-
};
|
|
18
|
-
const AssetsTableAssetIdFilterMemoized = connect(mapStateToProps, mapDispatchToProps)(React.memo(AssetsTableAssetIdFilter));
|
|
19
|
-
export default AssetsTableAssetIdFilterMemoized;
|
|
20
|
-
//# sourceMappingURL=AssetsTableAssetIdFilter%20copy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AssetsTableAssetIdFilter copy.js","sourceRoot":"","sources":["../../../../src/components/assets/AssetsTableAssetIdFilter copy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAO3C,MAAM,wBAAyB,SAAQ,KAAK,CAAC,aAA6C;IAC/E,MAAM,GAAG,GAAgB,EAAE;QAC9B,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEpC,OAAO,CACH,oBAAC,SAAS,IACN,SAAS,EAAC,UAAU,EACpB,WAAW,QACX,eAAe,EAAC,QAAQ,EACxB,KAAK,EAAE,YAAY,CAAC,EAAE,EACtB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,GACtD,CACL,CAAC;IACN,CAAC,CAAC;CACL;AAED,MAAM,kBAAkB,GAAG,CAAC,QAAQ,EAAO,EAAE;IACzC,OAAO,kBAAkB,CAAC,EAAE,aAAa,EAAE,EAAE,QAAQ,CAAC,CAAC;AAC3D,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,KAAK,EAAO,EAAE;IACnC,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;AAChD,CAAC,CAAC;AAEF,MAAM,gCAAgC,GAAG,OAAO,CAC5C,eAAe,EACf,kBAAkB,CACrB,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC;AACxC,eAAe,gCAAgC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import TextField from '../text-field/TextField';
|
|
3
|
-
import { updateFilters } from '../../redux/actions/asset-filters';
|
|
4
|
-
import { connect } from 'react-redux';
|
|
5
|
-
import { bindActionCreators } from 'redux';
|
|
6
|
-
class AssetsTableNameFilter extends React.PureComponent {
|
|
7
|
-
render = () => {
|
|
8
|
-
const { assetFilters } = this.props;
|
|
9
|
-
return (React.createElement(TextField, { className: 'asset-name', submittable: true, submittableType: 'search', value: assetFilters.name, doSubmit: (n) => this.props.updateFilters({ name: n }) }));
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
const mapDispatchToProps = (dispatch) => {
|
|
13
|
-
return bindActionCreators({ updateFilters }, dispatch);
|
|
14
|
-
};
|
|
15
|
-
const mapStateToProps = (state) => {
|
|
16
|
-
return { assetFilters: state.assetFilters };
|
|
17
|
-
};
|
|
18
|
-
const AssetsTableNameFilterMemoized = connect(mapStateToProps, mapDispatchToProps)(React.memo(AssetsTableNameFilter));
|
|
19
|
-
export default AssetsTableNameFilterMemoized;
|
|
20
|
-
//# sourceMappingURL=AssetsTableNameFilter%20copy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AssetsTableNameFilter copy.js","sourceRoot":"","sources":["../../../../src/components/assets/AssetsTableNameFilter copy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAO3C,MAAM,qBAAsB,SAAQ,KAAK,CAAC,aAA0C;IACzE,MAAM,GAAG,GAAgB,EAAE;QAC9B,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEpC,OAAO,CACH,oBAAC,SAAS,IACN,SAAS,EAAC,YAAY,EACtB,WAAW,QACX,eAAe,EAAC,QAAQ,EACxB,KAAK,EAAE,YAAY,CAAC,IAAI,EACxB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,GACxD,CACL,CAAC;IACN,CAAC,CAAC;CACL;AAED,MAAM,kBAAkB,GAAG,CAAC,QAAQ,EAAO,EAAE;IACzC,OAAO,kBAAkB,CAAC,EAAE,aAAa,EAAE,EAAE,QAAQ,CAAC,CAAC;AAC3D,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,KAAK,EAAO,EAAE;IACnC,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;AAChD,CAAC,CAAC;AAEF,MAAM,6BAA6B,GAAG,OAAO,CACzC,eAAe,EACf,kBAAkB,CACrB,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC;AACrC,eAAe,6BAA6B,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const notifications: any;
|
|
2
|
-
export declare const log: (text: any, type: any, button?: any) => any;
|
|
3
|
-
export declare const clear: () => any;
|
|
4
|
-
export declare const logNotification: (text: any, button?: any) => any;
|
|
5
|
-
export declare const logError: (text: any, button?: any) => any;
|
|
6
|
-
export declare const logWarning: (text: any, button?: any) => any;
|
|
7
|
-
export declare const clearNotifications: () => any;
|
|
8
|
-
export default notifications;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { NOTIFICATION_TYPES } from '../../constants/api';
|
|
2
|
-
import { getNotificationTime } from '../../Util';
|
|
3
|
-
const notifications = {
|
|
4
|
-
LOG: 'notifications/LOG',
|
|
5
|
-
CLEAR: 'notifications/LOG'
|
|
6
|
-
};
|
|
7
|
-
export const log = (text, type, button) => {
|
|
8
|
-
const time = getNotificationTime();
|
|
9
|
-
return (dispatch) => {
|
|
10
|
-
dispatch({
|
|
11
|
-
type: notifications.LOG,
|
|
12
|
-
notification: {
|
|
13
|
-
time,
|
|
14
|
-
text,
|
|
15
|
-
type,
|
|
16
|
-
button
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export const clear = () => {
|
|
22
|
-
return (dispatch) => {
|
|
23
|
-
dispatch({ type: notifications.CLEAR });
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export const logNotification = (text, button) => {
|
|
27
|
-
return (dispatch) => {
|
|
28
|
-
dispatch(log(text, NOTIFICATION_TYPES.INFO, button));
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export const logError = (text, button) => {
|
|
32
|
-
return (dispatch) => {
|
|
33
|
-
dispatch(log(text, NOTIFICATION_TYPES.ERROR, button));
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
export const logWarning = (text, button) => {
|
|
37
|
-
return (dispatch) => {
|
|
38
|
-
dispatch(log(text, NOTIFICATION_TYPES.WARNING, button));
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export const clearNotifications = () => {
|
|
42
|
-
return (dispatch) => {
|
|
43
|
-
dispatch(clear());
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
export default notifications;
|
|
47
|
-
//# sourceMappingURL=notifications.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../../src/redux/actions/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,aAAa,GAAQ;IACvB,GAAG,EAAE,mBAAmB;IACxB,KAAK,EAAE,mBAAmB;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,MAAO,EAAO,EAAE;IAC5C,MAAM,IAAI,GAAG,mBAAmB,EAAE,CAAC;IAEnC,OAAO,CAAC,QAAQ,EAAE,EAAE;QAChB,QAAQ,CAAC;YACL,IAAI,EAAE,aAAa,CAAC,GAAG;YACvB,YAAY,EAAE;gBACV,IAAI;gBACJ,IAAI;gBACJ,IAAI;gBACJ,MAAM;aACT;SACJ,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,GAAQ,EAAE;IAC3B,OAAO,CAAC,QAAQ,EAAE,EAAE;QAChB,QAAQ,CAAC,EAAE,IAAI,EAAE,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC;IAC5C,CAAC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,MAAO,EAAO,EAAE;IAClD,OAAO,CAAC,QAAQ,EAAE,EAAE;QAChB,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IACzD,CAAC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,MAAO,EAAO,EAAE;IAC3C,OAAO,CAAC,QAAQ,EAAE,EAAE;QAChB,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,MAAO,EAAO,EAAE;IAC7C,OAAO,CAAC,QAAQ,EAAE,EAAE;QAChB,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,kBAAkB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IAC5D,CAAC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAQ,EAAE;IACxC,OAAO,CAAC,QAAQ,EAAE,EAAE;QAChB,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IACtB,CAAC,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import actions from '../actions/notifications';
|
|
2
|
-
const initialState = [];
|
|
3
|
-
const notifications = (state = initialState, action) => {
|
|
4
|
-
switch (action.type) {
|
|
5
|
-
case actions.LOG:
|
|
6
|
-
return [action.notification, ...state];
|
|
7
|
-
case actions.CLEAR:
|
|
8
|
-
return [];
|
|
9
|
-
default:
|
|
10
|
-
return state;
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
export default notifications;
|
|
14
|
-
//# sourceMappingURL=notifications.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../../src/redux/reducers/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,0BAA0B,CAAC;AAS/C,MAAM,YAAY,GAAoB,EAAE,CAAC;AAEzC,MAAM,aAAa,GAAG,CAAC,KAAK,GAAG,YAAY,EAAE,MAAM,EAAO,EAAE;IACxD,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,OAAO,CAAC,GAAG;YACZ,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,GAAG,KAAK,CAAC,CAAC;QAC3C,KAAK,OAAO,CAAC,KAAK;YACd,OAAO,EAAE,CAAC;QACd;YACI,OAAO,KAAK,CAAC;IACrB,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|