@imposium-hub/components 2.5.10-2 → 2.5.10-21
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/Util.d.ts +2 -2
- package/dist/cjs/components/app-wrapper/AppWrapper.js +5 -2
- package/dist/cjs/components/app-wrapper/AppWrapper.js.map +1 -1
- package/dist/cjs/components/assets/AssetsTableAssetIdCell.js +0 -2
- package/dist/cjs/components/assets/AssetsTableAssetIdCell.js.map +1 -1
- package/dist/cjs/components/assets/AssetsTableAssetIdFilter.js.map +1 -1
- package/dist/cjs/components/assets/StoryTableNameFilter.d.ts +2 -0
- package/dist/cjs/components/assets/{AssetsTableAssetIdFilter copy.js → StoryTableNameFilter.js} +12 -12
- package/dist/cjs/components/assets/StoryTableNameFilter.js.map +1 -0
- package/dist/cjs/components/confirm-modal/ConfirmModal.d.ts +9 -9
- package/dist/cjs/components/confirm-modal/ConfirmModal.js +108 -12
- package/dist/cjs/components/confirm-modal/ConfirmModal.js.map +1 -1
- package/dist/cjs/components/data-table/Paginator.js +7 -41
- package/dist/cjs/components/data-table/Paginator.js.map +1 -1
- package/dist/cjs/components/story-previewer/StoryPreviewer.js +2 -1
- package/dist/cjs/components/story-previewer/StoryPreviewer.js.map +1 -1
- package/dist/cjs/components/tabs/Tabs.d.ts +1 -3
- package/dist/cjs/components/tabs/Tabs.stories.d.ts +1 -3
- package/dist/cjs/constants/copy.js +2 -2
- package/dist/cjs/constants/copy.js.map +1 -1
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/redux/actions/asset-filters copy.d.ts +4 -0
- package/dist/cjs/redux/actions/asset-filters copy.js +18 -0
- package/dist/cjs/redux/actions/asset-filters copy.js.map +1 -0
- package/dist/cjs/redux/actions/asset-list.js +33 -42
- package/dist/cjs/redux/actions/asset-list.js.map +1 -1
- package/dist/cjs/redux/actions/story-filter.d.ts +4 -0
- package/dist/cjs/redux/actions/story-filter.js +18 -0
- package/dist/cjs/redux/actions/story-filter.js.map +1 -0
- package/dist/cjs/redux/actions/story-filters.d.ts +4 -0
- package/dist/cjs/redux/actions/story-filters.js +18 -0
- package/dist/cjs/redux/actions/story-filters.js.map +1 -0
- package/dist/cjs/redux/reducers/asset-filters copy.d.ts +2 -0
- package/dist/cjs/redux/reducers/asset-filters copy.js +39 -0
- package/dist/cjs/redux/reducers/asset-filters copy.js.map +1 -0
- package/dist/cjs/redux/reducers/story-filter.d.ts +2 -0
- package/dist/cjs/redux/reducers/story-filter.js +33 -0
- package/dist/cjs/redux/reducers/story-filter.js.map +1 -0
- package/dist/cjs/redux/reducers/story-filters.d.ts +2 -0
- package/dist/cjs/redux/reducers/story-filters.js +33 -0
- package/dist/cjs/redux/reducers/story-filters.js.map +1 -0
- package/dist/cjs/services/API.d.ts +3 -0
- package/dist/cjs/services/API.js +9 -0
- package/dist/cjs/services/API.js.map +1 -1
- package/dist/esm/Util.d.ts +2 -2
- package/dist/esm/components/app-wrapper/AppWrapper.js +5 -2
- package/dist/esm/components/app-wrapper/AppWrapper.js.map +1 -1
- package/dist/esm/components/assets/AssetsTableAssetIdCell.js +0 -2
- package/dist/esm/components/assets/AssetsTableAssetIdCell.js.map +1 -1
- package/dist/esm/components/assets/AssetsTableAssetIdFilter.js.map +1 -1
- package/dist/esm/components/assets/StoryTableNameFilter.d.ts +2 -0
- package/dist/esm/components/assets/StoryTableNameFilter.js +20 -0
- package/dist/esm/components/assets/StoryTableNameFilter.js.map +1 -0
- package/dist/esm/components/confirm-modal/ConfirmModal.d.ts +9 -9
- package/dist/esm/components/confirm-modal/ConfirmModal.js +60 -11
- package/dist/esm/components/confirm-modal/ConfirmModal.js.map +1 -1
- package/dist/esm/components/data-table/Paginator.js +44 -64
- package/dist/esm/components/data-table/Paginator.js.map +1 -1
- package/dist/esm/components/story-previewer/StoryPreviewer.js +2 -1
- package/dist/esm/components/story-previewer/StoryPreviewer.js.map +1 -1
- package/dist/esm/components/tabs/Tabs.d.ts +1 -3
- package/dist/esm/components/tabs/Tabs.stories.d.ts +1 -3
- package/dist/esm/constants/copy.js +2 -2
- package/dist/esm/constants/copy.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/redux/actions/asset-filters copy.d.ts +4 -0
- package/dist/esm/redux/actions/asset-filters copy.js +13 -0
- package/dist/esm/redux/actions/asset-filters copy.js.map +1 -0
- package/dist/esm/redux/actions/asset-list.js +33 -42
- package/dist/esm/redux/actions/asset-list.js.map +1 -1
- package/dist/esm/redux/actions/story-filter.d.ts +4 -0
- package/dist/esm/redux/actions/story-filter.js +13 -0
- package/dist/esm/redux/actions/story-filter.js.map +1 -0
- package/dist/esm/redux/actions/story-filters.d.ts +4 -0
- package/dist/esm/redux/actions/story-filters.js +13 -0
- package/dist/esm/redux/actions/story-filters.js.map +1 -0
- package/dist/esm/redux/reducers/asset-filters copy.d.ts +2 -0
- package/dist/esm/redux/reducers/asset-filters copy.js +22 -0
- package/dist/esm/redux/reducers/asset-filters copy.js.map +1 -0
- package/dist/esm/redux/reducers/story-filter.d.ts +2 -0
- package/dist/esm/redux/reducers/story-filter.js +16 -0
- package/dist/esm/redux/reducers/story-filter.js.map +1 -0
- package/dist/esm/redux/reducers/story-filters.d.ts +2 -0
- package/dist/esm/redux/reducers/story-filters.js +16 -0
- package/dist/esm/redux/reducers/story-filters.js.map +1 -0
- package/dist/esm/services/API.d.ts +3 -0
- package/dist/esm/services/API.js +9 -0
- package/dist/esm/services/API.js.map +1 -1
- package/package.json +1 -1
- package/src/components/app-wrapper/AppWrapper.tsx +3 -4
- package/src/components/confirm-modal/ConfirmModal.tsx +80 -19
- package/src/components/data-table/Paginator.tsx +93 -125
- package/src/components/story-previewer/StoryPreviewer.tsx +2 -3
- package/src/constants/copy.ts +2 -2
- package/src/index.ts +3 -2
- package/src/redux/actions/asset-list.ts +36 -44
- package/src/services/API.ts +15 -0
- package/dist/cjs/components/assets/AssetsTableAssetIdFilter copy.d.ts +0 -2
- package/dist/cjs/components/assets/AssetsTableAssetIdFilter 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/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
|
@@ -78,22 +78,18 @@ export const getAssets = (api: IImposiumAPI, storyId: string): any => {
|
|
|
78
78
|
|
|
79
79
|
export const deleteAssets = (api: IImposiumAPI, ids: string[], storyId: string): any => {
|
|
80
80
|
return (dispatch) => {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
});
|
|
94
|
-
} else {
|
|
95
|
-
return Promise.resolve(false);
|
|
96
|
-
}
|
|
81
|
+
return new Promise<boolean>((resolve, reject) => {
|
|
82
|
+
dispatch(toggleLoading(true));
|
|
83
|
+
api.deleteAssets(ids)
|
|
84
|
+
.then(() => {
|
|
85
|
+
dispatch(getAssets(api, storyId));
|
|
86
|
+
resolve(true);
|
|
87
|
+
})
|
|
88
|
+
.catch((errors: Error[]) => {
|
|
89
|
+
dispatch(toggleLoading(false));
|
|
90
|
+
reject(false);
|
|
91
|
+
});
|
|
92
|
+
});
|
|
97
93
|
};
|
|
98
94
|
};
|
|
99
95
|
|
|
@@ -194,20 +190,18 @@ export const deleteAssetTags = (api: IImposiumAPI, id: string): any => {
|
|
|
194
190
|
|
|
195
191
|
export const deleteAssetsTags = (api: IImposiumAPI, ids: string[], storyId: string): any => {
|
|
196
192
|
return (dispatch) => {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
});
|
|
210
|
-
}
|
|
193
|
+
return new Promise<void>((resolve, reject) => {
|
|
194
|
+
dispatch(toggleLoading(true));
|
|
195
|
+
api.deleteAssetsTags(ids)
|
|
196
|
+
.then(() => {
|
|
197
|
+
dispatch(getAssets(api, storyId));
|
|
198
|
+
resolve();
|
|
199
|
+
})
|
|
200
|
+
.catch((errors: Error[]) => {
|
|
201
|
+
dispatch(toggleLoading(false));
|
|
202
|
+
reject();
|
|
203
|
+
});
|
|
204
|
+
});
|
|
211
205
|
};
|
|
212
206
|
};
|
|
213
207
|
|
|
@@ -245,20 +239,18 @@ export const updateAssetStory = (api: IImposiumAPI, id: string, storyId: string)
|
|
|
245
239
|
|
|
246
240
|
export const decoupleAssets = (api: IImposiumAPI, ids: string[], storyId: string): any => {
|
|
247
241
|
return (dispatch) => {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
});
|
|
261
|
-
}
|
|
242
|
+
return new Promise<void>((resolve, reject) => {
|
|
243
|
+
dispatch(toggleLoading(true));
|
|
244
|
+
api.decoupleAssets(ids)
|
|
245
|
+
.then(() => {
|
|
246
|
+
dispatch(getAssets(api, storyId));
|
|
247
|
+
resolve();
|
|
248
|
+
})
|
|
249
|
+
.catch((errors: Error[]) => {
|
|
250
|
+
dispatch(toggleLoading(false));
|
|
251
|
+
reject();
|
|
252
|
+
});
|
|
253
|
+
});
|
|
262
254
|
};
|
|
263
255
|
};
|
|
264
256
|
|
package/src/services/API.ts
CHANGED
|
@@ -153,6 +153,9 @@ interface ITTSOptions {
|
|
|
153
153
|
voice: string;
|
|
154
154
|
service: string;
|
|
155
155
|
model?: string;
|
|
156
|
+
speed?: string;
|
|
157
|
+
pause_silences?: boolean;
|
|
158
|
+
minimum_silence_length?: number;
|
|
156
159
|
}
|
|
157
160
|
|
|
158
161
|
interface ICancelTokenCache {
|
|
@@ -1607,6 +1610,18 @@ export default class API {
|
|
|
1607
1610
|
url += `&model=${options.model}`;
|
|
1608
1611
|
}
|
|
1609
1612
|
|
|
1613
|
+
if (options.speed) {
|
|
1614
|
+
url += `&speed=${options.speed}`;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
if (options.pause_silences) {
|
|
1618
|
+
url += `&pause_silences=${options.pause_silences}`;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
if (options.minimum_silence_length) {
|
|
1622
|
+
url += `&minimum_silence_length=${options.minimum_silence_length}`;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1610
1625
|
return this.doRequest({
|
|
1611
1626
|
url,
|
|
1612
1627
|
method: 'GET',
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AssetsTableAssetIdFilter copy.js","sourceRoot":"","sources":["../../../../src/components/assets/AssetsTableAssetIdFilter copy.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,sEAAgD;AAChD,mEAAkE;AAClE,2CAAsC;AACtC,+BAA2C;AAO3C;IAAuC,4CAAmD;IAA1F;;QACW,YAAM,GAAG;YACJ,IAAA,YAAY,GAAK,KAAI,CAAC,KAAK,aAAf,CAAgB;YAEpC,OAAO,CACH,oBAAC,mBAAS,IACN,SAAS,EAAC,UAAU,EACpB,WAAW,QACX,eAAe,EAAC,QAAQ,EACxB,KAAK,EAAE,YAAY,CAAC,EAAE,EACtB,QAAQ,EAAE,UAAC,CAAC,IAAK,OAAA,KAAI,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAnC,CAAmC,GACtD,CACL,CAAC;QACN,CAAC,CAAC;;IACN,CAAC;IAAD,+BAAC;AAAD,CAAC,AAdD,CAAuC,KAAK,CAAC,aAAa,GAczD;AAED,IAAM,kBAAkB,GAAG,UAAC,QAAQ;IAChC,OAAO,IAAA,0BAAkB,EAAC,EAAE,aAAa,+BAAA,EAAE,EAAE,QAAQ,CAAC,CAAC;AAC3D,CAAC,CAAC;AAEF,IAAM,eAAe,GAAG,UAAC,KAAK;IAC1B,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;AAChD,CAAC,CAAC;AAEF,IAAM,gCAAgC,GAAG,IAAA,qBAAO,EAC5C,eAAe,EACf,kBAAkB,CACrB,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC;AACxC,kBAAe,gCAAgC,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,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,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"}
|