@fluxo-dev/shell-reporting 0.0.33 → 0.0.34
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/index.esm.js +1 -1
- package/index.esm2.js +3182 -2282
- package/package.json +3 -2
- package/reports-manager.esm.js +21 -12
package/package.json
CHANGED
package/reports-manager.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createReactComponent, _ as _export,
|
|
1
|
+
import { c as createReactComponent, _ as _export, p as promiseNativeConstructor, f as fails$1, g as getBuiltIn$1, i as isCallable$1, d as defineBuiltIn$1, s as speciesConstructor$1, a as promiseResolve$1 } from './index.esm2.js';
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { ShellPage, DataCard, ConfirmModal } from '@fluxo-dev/ui-components';
|
|
4
4
|
import { Stack, Text, TextInput, Textarea, Group, Button, Loader, Divider, Center, Modal } from '@mantine/core';
|
|
@@ -12,18 +12,20 @@ import 'devexpress-reporting/dx-webdocumentviewer';
|
|
|
12
12
|
import 'devextreme/localization';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* @tabler/icons-react v2.
|
|
15
|
+
* @tabler/icons-react v2.47.0 - MIT
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
+
|
|
18
19
|
var IconPlus = createReactComponent("plus", "IconPlus", [
|
|
19
20
|
["path", { d: "M12 5l0 14", key: "svg-0" }],
|
|
20
21
|
["path", { d: "M5 12l14 0", key: "svg-1" }]
|
|
21
22
|
]);
|
|
22
23
|
|
|
23
24
|
/**
|
|
24
|
-
* @tabler/icons-react v2.
|
|
25
|
+
* @tabler/icons-react v2.47.0 - MIT
|
|
25
26
|
*/
|
|
26
27
|
|
|
28
|
+
|
|
27
29
|
var IconReport = createReactComponent("report", "IconReport", [
|
|
28
30
|
[
|
|
29
31
|
"path",
|
|
@@ -44,24 +46,28 @@ var IconReport = createReactComponent("report", "IconReport", [
|
|
|
44
46
|
]);
|
|
45
47
|
|
|
46
48
|
var $ = _export;
|
|
47
|
-
var
|
|
49
|
+
var NativePromiseConstructor = promiseNativeConstructor;
|
|
48
50
|
var fails = fails$1;
|
|
49
51
|
var getBuiltIn = getBuiltIn$1;
|
|
52
|
+
var isCallable = isCallable$1;
|
|
50
53
|
var speciesConstructor = speciesConstructor$1;
|
|
51
54
|
var promiseResolve = promiseResolve$1;
|
|
52
|
-
var
|
|
55
|
+
var defineBuiltIn = defineBuiltIn$1;
|
|
56
|
+
|
|
57
|
+
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
53
58
|
|
|
54
59
|
// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
|
|
55
|
-
var NON_GENERIC = !!
|
|
56
|
-
|
|
60
|
+
var NON_GENERIC = !!NativePromiseConstructor && fails(function () {
|
|
61
|
+
// eslint-disable-next-line unicorn/no-thenable -- required for testing
|
|
62
|
+
NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
|
|
57
63
|
});
|
|
58
64
|
|
|
59
65
|
// `Promise.prototype.finally` method
|
|
60
|
-
// https://tc39.
|
|
66
|
+
// https://tc39.es/ecma262/#sec-promise.prototype.finally
|
|
61
67
|
$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
|
|
62
68
|
'finally': function (onFinally) {
|
|
63
69
|
var C = speciesConstructor(this, getBuiltIn('Promise'));
|
|
64
|
-
var isFunction =
|
|
70
|
+
var isFunction = isCallable(onFinally);
|
|
65
71
|
return this.then(
|
|
66
72
|
isFunction ? function (x) {
|
|
67
73
|
return promiseResolve(C, onFinally()).then(function () { return x; });
|
|
@@ -73,9 +79,12 @@ $({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
|
|
|
73
79
|
}
|
|
74
80
|
});
|
|
75
81
|
|
|
76
|
-
//
|
|
77
|
-
if (
|
|
78
|
-
|
|
82
|
+
// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`
|
|
83
|
+
if (isCallable(NativePromiseConstructor)) {
|
|
84
|
+
var method = getBuiltIn('Promise').prototype['finally'];
|
|
85
|
+
if (NativePromisePrototype['finally'] !== method) {
|
|
86
|
+
defineBuiltIn(NativePromisePrototype, 'finally', method, { unsafe: true });
|
|
87
|
+
}
|
|
79
88
|
}
|
|
80
89
|
|
|
81
90
|
function CreateReport(props) {
|