@fluxo-dev/shell-reporting 0.0.12 → 0.0.15
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 +4 -2
- package/index.esm2.js +627 -18356
- package/package.json +1 -1
- package/reports-manager.esm.js +5 -108
package/package.json
CHANGED
package/reports-manager.esm.js
CHANGED
|
@@ -1,114 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createReactComponent, _ as _export, n as nativePromiseConstructor, f as fails$1, g as getBuiltIn$1, r as redefine$1, s as speciesConstructor$1, p as promiseResolve$1, u as useNavigate } 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
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import { Stack, Text, TextInput, Textarea, Group, Button, Loader, Divider, Center, Modal } from '@mantine/core';
|
|
5
|
+
import { useState, useEffect } from 'react';
|
|
6
6
|
import { FluxoClientSys } from '@fluxo-dev/api-client-base';
|
|
7
|
-
import '
|
|
8
|
-
|
|
9
|
-
var updateRef = function updateRef(ref, value) {
|
|
10
|
-
if (typeof ref === 'function') {
|
|
11
|
-
ref(value);
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
ref.current = value;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
var useComposedRef = function useComposedRef(libRef, userRef) {
|
|
18
|
-
var prevUserRef = useRef();
|
|
19
|
-
return useCallback(function (instance) {
|
|
20
|
-
libRef.current = instance;
|
|
21
|
-
|
|
22
|
-
if (prevUserRef.current) {
|
|
23
|
-
updateRef(prevUserRef.current, null);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
prevUserRef.current = userRef;
|
|
27
|
-
|
|
28
|
-
if (!userRef) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
updateRef(userRef, instance);
|
|
33
|
-
}, [userRef]);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
var noop = function noop() {};
|
|
37
|
-
|
|
38
|
-
var _excluded = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"];
|
|
39
|
-
var TextareaAutosize = function TextareaAutosize(_ref, userRef) {
|
|
40
|
-
_ref.cacheMeasurements;
|
|
41
|
-
_ref.maxRows;
|
|
42
|
-
_ref.minRows;
|
|
43
|
-
var _ref$onChange = _ref.onChange,
|
|
44
|
-
onChange = _ref$onChange === void 0 ? noop : _ref$onChange;
|
|
45
|
-
_ref.onHeightChange;
|
|
46
|
-
var props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
47
|
-
props.value !== undefined;
|
|
48
|
-
var libRef = React.useRef(null);
|
|
49
|
-
var ref = useComposedRef(libRef, userRef);
|
|
50
|
-
React.useRef(0);
|
|
51
|
-
React.useRef();
|
|
52
|
-
return /*#__PURE__*/React.createElement("textarea", _extends({}, props, {
|
|
53
|
-
onChange: onChange,
|
|
54
|
-
ref: ref
|
|
55
|
-
}));
|
|
56
|
-
};
|
|
57
|
-
var index = /* #__PURE__ */React.forwardRef(TextareaAutosize);
|
|
58
|
-
|
|
59
|
-
var __defProp = Object.defineProperty;
|
|
60
|
-
var __defProps = Object.defineProperties;
|
|
61
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
62
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
63
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
64
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
65
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
66
|
-
var __spreadValues = (a, b) => {
|
|
67
|
-
for (var prop in b || (b = {}))
|
|
68
|
-
if (__hasOwnProp.call(b, prop))
|
|
69
|
-
__defNormalProp(a, prop, b[prop]);
|
|
70
|
-
if (__getOwnPropSymbols)
|
|
71
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
72
|
-
if (__propIsEnum.call(b, prop))
|
|
73
|
-
__defNormalProp(a, prop, b[prop]);
|
|
74
|
-
}
|
|
75
|
-
return a;
|
|
76
|
-
};
|
|
77
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
78
|
-
var __objRest = (source, exclude) => {
|
|
79
|
-
var target = {};
|
|
80
|
-
for (var prop in source)
|
|
81
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
82
|
-
target[prop] = source[prop];
|
|
83
|
-
if (source != null && __getOwnPropSymbols)
|
|
84
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
85
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
86
|
-
target[prop] = source[prop];
|
|
87
|
-
}
|
|
88
|
-
return target;
|
|
89
|
-
};
|
|
90
|
-
const defaultProps = {};
|
|
91
|
-
const Textarea = factory((props, ref) => {
|
|
92
|
-
const _a = useProps(
|
|
93
|
-
"Textarea",
|
|
94
|
-
defaultProps,
|
|
95
|
-
props
|
|
96
|
-
), { autosize, maxRows, minRows, __staticSelector } = _a, others = __objRest(_a, ["autosize", "maxRows", "minRows", "__staticSelector"]);
|
|
97
|
-
const autosizeProps = autosize ? { maxRows, minRows } : {};
|
|
98
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
99
|
-
InputBase,
|
|
100
|
-
__spreadValues(__spreadProps(__spreadValues({
|
|
101
|
-
component: autosize ? index : "textarea",
|
|
102
|
-
ref
|
|
103
|
-
}, others), {
|
|
104
|
-
__staticSelector: __staticSelector || "Textarea",
|
|
105
|
-
multiline: true,
|
|
106
|
-
"data-no-overflow": autosize && maxRows === void 0 || void 0
|
|
107
|
-
}), autosizeProps)
|
|
108
|
-
);
|
|
109
|
-
});
|
|
110
|
-
Textarea.classes = InputBase.classes;
|
|
111
|
-
Textarea.displayName = "@mantine/core/Textarea";
|
|
7
|
+
import { showNotification } from '@mantine/notifications';
|
|
8
|
+
import '@mantine/dates';
|
|
112
9
|
|
|
113
10
|
/**
|
|
114
11
|
* @tabler/icons-react v2.42.0 - MIT
|