@darajs/components 1.0.0-a.1 → 1.0.0
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/README.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
DARA-COMPONENTS
|
|
3
|
-
***************************
|
|
1
|
+
# Dara Components
|
|
4
2
|
|
|
3
|
+
<picture>
|
|
4
|
+
<source srcset="https://github.com/causalens/dara/blob/master/img/dara_dark.svg?raw=true" media="(prefers-color-scheme: dark)">
|
|
5
|
+
<img src="https://github.com/causalens/dara/blob/master/img/dara_light.svg?raw=true" alt="Dara Logo">
|
|
6
|
+
</picture>
|
|
7
|
+
|
|
8
|
+

|
|
5
9
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
10
|
+
[](https://pypi.org/project/dara-components/)
|
|
11
|
+
[](https://pypi.org/project/dara-components/)
|
|
12
|
+
[](https://www.npmjs.com/package/@darajs/components)
|
|
13
|
+
|
|
14
|
+
### Build decision apps in Python
|
|
15
|
+
|
|
16
|
+
_Tap into the power of causality by transforming data into interactive graphs and applications_
|
|
17
|
+
|
|
18
|
+
Dara is a dynamic application framework designed for creating interactive web apps with ease, all in pure Python. Over the past two years, Dara has fueled the development of hundreds of apps, now widely used and appreciated by both our customers and our in-house teams!
|
|
19
|
+
|
|
20
|
+
## Quickstart
|
|
21
|
+
|
|
22
|
+
To install the package, run:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install dara-components
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Package contents
|
|
29
|
+
|
|
30
|
+
This package contains the following modules:
|
|
31
|
+
|
|
32
|
+
- `dara_components.common` - common dashboarding components for building Dara apps
|
|
33
|
+
- `dara_components.graph` - components for displaying graphs
|
|
34
|
+
- `dara_components.plotting` - components for displaying plots with Bokeh, Plotly and Matplotlib or Seaborn
|
|
35
|
+
- `dara_components.smart` - smart components such as `DataSlicer`
|
|
36
|
+
|
|
37
|
+
Check out our [Documentation](https://dara.causalens.com/docs/category/build-dara-apps) for more details.
|
|
Binary file
|
|
@@ -190,18 +190,18 @@
|
|
|
190
190
|
* This source code is licensed under the MIT license found in the
|
|
191
191
|
* LICENSE file in the root directory of this source tree.
|
|
192
192
|
*/
|
|
193
|
-
var f$5 = React__default.default, k$5 = Symbol.for("react.element"), l$5 = Symbol.for("react.fragment"), m$
|
|
193
|
+
var f$5 = React__default.default, k$5 = Symbol.for("react.element"), l$5 = Symbol.for("react.fragment"), m$4 = Object.prototype.hasOwnProperty, n$6 = f$5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p$6 = { key: true, ref: true, __self: true, __source: true };
|
|
194
194
|
function q$4(c2, a2, g2) {
|
|
195
195
|
var b2, d2 = {}, e3 = null, h2 = null;
|
|
196
196
|
void 0 !== g2 && (e3 = "" + g2);
|
|
197
197
|
void 0 !== a2.key && (e3 = "" + a2.key);
|
|
198
198
|
void 0 !== a2.ref && (h2 = a2.ref);
|
|
199
199
|
for (b2 in a2)
|
|
200
|
-
m$
|
|
200
|
+
m$4.call(a2, b2) && !p$6.hasOwnProperty(b2) && (d2[b2] = a2[b2]);
|
|
201
201
|
if (c2 && c2.defaultProps)
|
|
202
202
|
for (b2 in a2 = c2.defaultProps, a2)
|
|
203
203
|
void 0 === d2[b2] && (d2[b2] = a2[b2]);
|
|
204
|
-
return { $$typeof: k$5, type: c2, key: e3, ref: h2, props: d2, _owner: n$
|
|
204
|
+
return { $$typeof: k$5, type: c2, key: e3, ref: h2, props: d2, _owner: n$6.current };
|
|
205
205
|
}
|
|
206
206
|
reactJsxRuntime_production_min.Fragment = l$5;
|
|
207
207
|
reactJsxRuntime_production_min.jsx = q$4;
|
|
@@ -5252,10 +5252,10 @@
|
|
|
5252
5252
|
}
|
|
5253
5253
|
var _baseIsEqual = baseIsEqual$1;
|
|
5254
5254
|
var baseIsEqual = _baseIsEqual;
|
|
5255
|
-
function isEqual$
|
|
5255
|
+
function isEqual$4(value, other) {
|
|
5256
5256
|
return baseIsEqual(value, other);
|
|
5257
5257
|
}
|
|
5258
|
-
var isEqual_1 = isEqual$
|
|
5258
|
+
var isEqual_1 = isEqual$4;
|
|
5259
5259
|
function useDeepCompare(value) {
|
|
5260
5260
|
const ref = React.useRef();
|
|
5261
5261
|
if (!isEqual_1(value, ref.current)) {
|
|
@@ -6395,7 +6395,7 @@
|
|
|
6395
6395
|
var _a3;
|
|
6396
6396
|
return jsxRuntime.exports.jsxs(Wrapper$c, { className: props.className, style: props.style, children: [jsxRuntime.exports.jsxs(Loader$1, { color: props.color, size: props.size, children: [jsxRuntime.exports.jsx("div", { className: "sk-chase-dot" }), jsxRuntime.exports.jsx("div", { className: "sk-chase-dot" }), jsxRuntime.exports.jsx("div", { className: "sk-chase-dot" }), jsxRuntime.exports.jsx("div", { className: "sk-chase-dot" }), jsxRuntime.exports.jsx("div", { className: "sk-chase-dot" }), jsxRuntime.exports.jsx("div", { className: "sk-chase-dot" })] }), (props.showText || props.text) && jsxRuntime.exports.jsx(LoadingText, { color: props.color, children: (_a3 = props.text) !== null && _a3 !== void 0 ? _a3 : "LOADING" })] });
|
|
6397
6397
|
}
|
|
6398
|
-
var __rest$
|
|
6398
|
+
var __rest$b = globalThis && globalThis.__rest || function(s2, e3) {
|
|
6399
6399
|
var t2 = {};
|
|
6400
6400
|
for (var p2 in s2)
|
|
6401
6401
|
if (Object.prototype.hasOwnProperty.call(s2, p2) && e3.indexOf(p2) < 0)
|
|
@@ -6503,7 +6503,7 @@
|
|
|
6503
6503
|
secondary: SecondaryButton$1
|
|
6504
6504
|
};
|
|
6505
6505
|
function Button$2(_a3, ref) {
|
|
6506
|
-
var { autoFocus, children: children2, className, disabled: disabled2, download, href, loading, id: id2, onClick, outline = false, style: style2, styling = "primary", type = "button" } = _a3, props = __rest$
|
|
6506
|
+
var { autoFocus, children: children2, className, disabled: disabled2, download, href, loading, id: id2, onClick, outline = false, style: style2, styling = "primary", type = "button" } = _a3, props = __rest$b(_a3, ["autoFocus", "children", "className", "disabled", "download", "href", "loading", "id", "onClick", "outline", "style", "styling", "type"]);
|
|
6507
6507
|
const currentTheme = useClTheme();
|
|
6508
6508
|
const Component = stylingMap[styling];
|
|
6509
6509
|
const content2 = loading ? jsxRuntime.exports.jsx(StyledLoading, { color: outline ? currentTheme.colors.grey2 : currentTheme.colors.blue1 }) : children2;
|
|
@@ -6962,7 +6962,7 @@
|
|
|
6962
6962
|
return jsxRuntime.exports.jsx(CheckboxWrapper, { "aria-disabled": props.disabled, children: jsxRuntime.exports.jsx(Checkbox, { disabled: isSelectPermitted ? props.disabled : ((_a3 = checkedState.find((option) => option.value === item.value)) === null || _a3 === void 0 ? void 0 : _a3.state) === false, id: index2, isListStyle: props.isListStyle, label: item.label ? item.label : item.value, onChange: (checked, e3) => onChangeValue(e3), selected: (_b = checkedState.find((option) => option.value === item.value)) === null || _b === void 0 ? void 0 : _b.state }) }, `item-${index2}`);
|
|
6963
6963
|
})] });
|
|
6964
6964
|
}
|
|
6965
|
-
var __rest$
|
|
6965
|
+
var __rest$a = globalThis && globalThis.__rest || function(s2, e3) {
|
|
6966
6966
|
var t2 = {};
|
|
6967
6967
|
for (var p2 in s2)
|
|
6968
6968
|
if (Object.prototype.hasOwnProperty.call(s2, p2) && e3.indexOf(p2) < 0)
|
|
@@ -7021,7 +7021,7 @@
|
|
|
7021
7021
|
color: ${(props) => props.theme.colors.error};
|
|
7022
7022
|
`;
|
|
7023
7023
|
const Input$3 = React.forwardRef((_a3, ref) => {
|
|
7024
|
-
var { type = "text" } = _a3, props = __rest$
|
|
7024
|
+
var { type = "text" } = _a3, props = __rest$a(_a3, ["type"]);
|
|
7025
7025
|
const onChange2 = (e3) => {
|
|
7026
7026
|
const target = e3.target;
|
|
7027
7027
|
if (props.onChange) {
|
|
@@ -7213,7 +7213,7 @@
|
|
|
7213
7213
|
* This source code is licensed under the MIT license found in the
|
|
7214
7214
|
* LICENSE file in the root directory of this source tree.
|
|
7215
7215
|
*/
|
|
7216
|
-
var b$5 = 60103, c$6 = 60106, d$3 = 60107, e$3 = 60108, f$4 = 60114, g$4 = 60109, h$4 = 60110, k$4 = 60112, l$4 = 60113, m$
|
|
7216
|
+
var b$5 = 60103, c$6 = 60106, d$3 = 60107, e$3 = 60108, f$4 = 60114, g$4 = 60109, h$4 = 60110, k$4 = 60112, l$4 = 60113, m$3 = 60120, n$5 = 60115, p$4 = 60116, q$3 = 60121, r$3 = 60122, u$3 = 60117, v$4 = 60129, w$4 = 60131;
|
|
7217
7217
|
if ("function" === typeof Symbol && Symbol.for) {
|
|
7218
7218
|
var x$4 = Symbol.for;
|
|
7219
7219
|
b$5 = x$4("react.element");
|
|
@@ -7225,8 +7225,8 @@
|
|
|
7225
7225
|
h$4 = x$4("react.context");
|
|
7226
7226
|
k$4 = x$4("react.forward_ref");
|
|
7227
7227
|
l$4 = x$4("react.suspense");
|
|
7228
|
-
m$
|
|
7229
|
-
n$
|
|
7228
|
+
m$3 = x$4("react.suspense_list");
|
|
7229
|
+
n$5 = x$4("react.memo");
|
|
7230
7230
|
p$4 = x$4("react.lazy");
|
|
7231
7231
|
q$3 = x$4("react.block");
|
|
7232
7232
|
r$3 = x$4("react.server.block");
|
|
@@ -7244,14 +7244,14 @@
|
|
|
7244
7244
|
case f$4:
|
|
7245
7245
|
case e$3:
|
|
7246
7246
|
case l$4:
|
|
7247
|
-
case m$
|
|
7247
|
+
case m$3:
|
|
7248
7248
|
return a2;
|
|
7249
7249
|
default:
|
|
7250
7250
|
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
7251
7251
|
case h$4:
|
|
7252
7252
|
case k$4:
|
|
7253
7253
|
case p$4:
|
|
7254
|
-
case n$
|
|
7254
|
+
case n$5:
|
|
7255
7255
|
case g$4:
|
|
7256
7256
|
return a2;
|
|
7257
7257
|
default:
|
|
@@ -7263,12 +7263,12 @@
|
|
|
7263
7263
|
}
|
|
7264
7264
|
}
|
|
7265
7265
|
}
|
|
7266
|
-
var z$3 = g$4, A$2 = b$5, B$2 = k$4, C$
|
|
7266
|
+
var z$3 = g$4, A$2 = b$5, B$2 = k$4, C$2 = d$3, D$2 = p$4, E$2 = n$5, F$2 = c$6, G$2 = f$4, H$3 = e$3, I$2 = l$4;
|
|
7267
7267
|
reactIs_production_min$1.ContextConsumer = h$4;
|
|
7268
7268
|
reactIs_production_min$1.ContextProvider = z$3;
|
|
7269
7269
|
reactIs_production_min$1.Element = A$2;
|
|
7270
7270
|
reactIs_production_min$1.ForwardRef = B$2;
|
|
7271
|
-
reactIs_production_min$1.Fragment = C$
|
|
7271
|
+
reactIs_production_min$1.Fragment = C$2;
|
|
7272
7272
|
reactIs_production_min$1.Lazy = D$2;
|
|
7273
7273
|
reactIs_production_min$1.Memo = E$2;
|
|
7274
7274
|
reactIs_production_min$1.Portal = F$2;
|
|
@@ -7300,7 +7300,7 @@
|
|
|
7300
7300
|
return y$6(a2) === p$4;
|
|
7301
7301
|
};
|
|
7302
7302
|
reactIs_production_min$1.isMemo = function(a2) {
|
|
7303
|
-
return y$6(a2) === n$
|
|
7303
|
+
return y$6(a2) === n$5;
|
|
7304
7304
|
};
|
|
7305
7305
|
reactIs_production_min$1.isPortal = function(a2) {
|
|
7306
7306
|
return y$6(a2) === c$6;
|
|
@@ -7315,7 +7315,7 @@
|
|
|
7315
7315
|
return y$6(a2) === l$4;
|
|
7316
7316
|
};
|
|
7317
7317
|
reactIs_production_min$1.isValidElementType = function(a2) {
|
|
7318
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === d$3 || a2 === f$4 || a2 === v$4 || a2 === e$3 || a2 === l$4 || a2 === m$
|
|
7318
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === d$3 || a2 === f$4 || a2 === v$4 || a2 === e$3 || a2 === l$4 || a2 === m$3 || a2 === w$4 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === p$4 || a2.$$typeof === n$5 || a2.$$typeof === g$4 || a2.$$typeof === h$4 || a2.$$typeof === k$4 || a2.$$typeof === u$3 || a2.$$typeof === q$3 || a2[0] === r$3) ? true : false;
|
|
7319
7319
|
};
|
|
7320
7320
|
reactIs_production_min$1.typeOf = y$6;
|
|
7321
7321
|
(function(module2) {
|
|
@@ -7323,7 +7323,7 @@
|
|
|
7323
7323
|
module2.exports = reactIs_production_min$1;
|
|
7324
7324
|
}
|
|
7325
7325
|
})(reactIs$1);
|
|
7326
|
-
let e$2 = (e3) => "object" == typeof e3 && null != e3 && 1 === e3.nodeType, t$4 = (e3, t2) => (!t2 || "hidden" !== e3) && ("visible" !== e3 && "clip" !== e3), n$
|
|
7326
|
+
let e$2 = (e3) => "object" == typeof e3 && null != e3 && 1 === e3.nodeType, t$4 = (e3, t2) => (!t2 || "hidden" !== e3) && ("visible" !== e3 && "clip" !== e3), n$4 = (e3, n2) => {
|
|
7327
7327
|
if (e3.clientHeight < e3.scrollHeight || e3.clientWidth < e3.scrollWidth) {
|
|
7328
7328
|
let l2 = getComputedStyle(e3, null);
|
|
7329
7329
|
return t$4(l2.overflowY, n2) || t$4(l2.overflowX, n2) || ((e4) => {
|
|
@@ -7357,7 +7357,7 @@
|
|
|
7357
7357
|
H2.push(b2);
|
|
7358
7358
|
break;
|
|
7359
7359
|
}
|
|
7360
|
-
null != b2 && b2 === document.body && n$
|
|
7360
|
+
null != b2 && b2 === document.body && n$4(b2) && !n$4(document.documentElement) || null != b2 && n$4(b2, p2) && H2.push(b2);
|
|
7361
7361
|
}
|
|
7362
7362
|
let v2 = null != (d2 = null == (r2 = window.visualViewport) ? void 0 : r2.width) ? d2 : innerWidth, y2 = null != (f2 = null == (h2 = window.visualViewport) ? void 0 : h2.height) ? f2 : innerHeight, E2 = null != (u2 = window.scrollX) ? u2 : pageXOffset, M2 = null != (s2 = window.scrollY) ? s2 : pageYOffset, { height: x2, width: I2, top: C2, right: R2, bottom: T2, left: V2 } = t2.getBoundingClientRect(), k2 = "start" === c2 || "nearest" === c2 ? C2 : "end" === c2 ? T2 : C2 + x2 / 2, B2 = "center" === g2 ? V2 + I2 / 2 : "end" === g2 ? R2 : V2, D2 = [];
|
|
7363
7363
|
for (let e3 = 0; e3 < H2.length; e3++) {
|
|
@@ -16544,7 +16544,7 @@
|
|
|
16544
16544
|
var dateToCompare = toDate$1(dirtyDateToCompare);
|
|
16545
16545
|
return date.getTime() < dateToCompare.getTime();
|
|
16546
16546
|
}
|
|
16547
|
-
function isEqual$
|
|
16547
|
+
function isEqual$3(dirtyLeftDate, dirtyRightDate) {
|
|
16548
16548
|
requiredArgs$1(2, arguments);
|
|
16549
16549
|
var dateLeft = toDate$1(dirtyLeftDate);
|
|
16550
16550
|
var dateRight = toDate$1(dirtyRightDate);
|
|
@@ -25516,7 +25516,7 @@
|
|
|
25516
25516
|
date.setHours(23, 59, 59, 999);
|
|
25517
25517
|
return date;
|
|
25518
25518
|
}
|
|
25519
|
-
function isEqual$
|
|
25519
|
+
function isEqual$2(dirtyLeftDate, dirtyRightDate) {
|
|
25520
25520
|
requiredArgs(2, arguments);
|
|
25521
25521
|
var dateLeft = toDate(dirtyLeftDate);
|
|
25522
25522
|
var dateRight = toDate(dirtyRightDate);
|
|
@@ -28716,7 +28716,7 @@
|
|
|
28716
28716
|
return e3 && t2 ? isSameDay(e3, t2) : !e3 && !t2;
|
|
28717
28717
|
}
|
|
28718
28718
|
function je(e3, t2) {
|
|
28719
|
-
return e3 && t2 ? isEqual$
|
|
28719
|
+
return e3 && t2 ? isEqual$2(e3, t2) : !e3 && !t2;
|
|
28720
28720
|
}
|
|
28721
28721
|
function He(e3, t2, r2) {
|
|
28722
28722
|
var n2, o2 = startOfDay(t2), a2 = endOfDay(r2);
|
|
@@ -30018,7 +30018,7 @@
|
|
|
30018
30018
|
} }]), a2;
|
|
30019
30019
|
}(), jt = "input", Ht = "navigate";
|
|
30020
30020
|
const reactDatepicker = "";
|
|
30021
|
-
var __rest$
|
|
30021
|
+
var __rest$9 = globalThis && globalThis.__rest || function(s2, e3) {
|
|
30022
30022
|
var t2 = {};
|
|
30023
30023
|
for (var p2 in s2)
|
|
30024
30024
|
if (Object.prototype.hasOwnProperty.call(s2, p2) && e3.indexOf(p2) < 0)
|
|
@@ -30205,7 +30205,7 @@
|
|
|
30205
30205
|
(_a4 = props.dropdownRef) === null || _a4 === void 0 ? void 0 : _a4.call(props, value);
|
|
30206
30206
|
};
|
|
30207
30207
|
return jsxRuntime.exports.jsx(Tooltip$1, { content: props.errorMsg, disabled: !props.errorMsg, styling: "error", children: jsxRuntime.exports.jsxs(Wrapper$9, { className: props.className, isDisabled: props.disabled, isErrored: !!props.errorMsg, onClick: props.onClick, style: props.style, children: [jsxRuntime.exports.jsxs(SelectButtonPrimary, Object.assign({ disabled: props.disabled }, buttonProps, { ref: setButtonReference, type: "button", children: [jsxRuntime.exports.jsx(SelectedItem$1, { size: props.size, children: selectedItem ? selectedItem.label : "Select" }), jsxRuntime.exports.jsx(Chevron$2, { disabled: props.disabled, isOpen })] })), ReactDOM__default.default.createPortal(jsxRuntime.exports.jsx(DropdownList$2, Object.assign({}, menuProps, attributes2.popper, { className: `${(_a3 = menuProps === null || menuProps === void 0 ? void 0 : menuProps.className) !== null && _a3 !== void 0 ? _a3 : ""} ${(_c = (_b = attributes2 === null || attributes2 === void 0 ? void 0 : attributes2.popper) === null || _b === void 0 ? void 0 : _b.className) !== null && _c !== void 0 ? _c : ""} ${props.itemClass}`, displacement: props.displacement, isOpen, maxItems: 7, ref: setMenuReference, style: Object.assign(Object.assign({}, styles2.popper), { marginTop: `0.8rem`, width: "16.25rem", zIndex: 9999 }), children: props.items.map((item, index2) => {
|
|
30208
|
-
const _a4 = getItemProps({ index: index2, item }), { itemClassName } = _a4, itemProps = __rest$
|
|
30208
|
+
const _a4 = getItemProps({ index: index2, item }), { itemClassName } = _a4, itemProps = __rest$9(_a4, ["itemClassName"]);
|
|
30209
30209
|
return React.createElement(DatepickerListItem, Object.assign({}, itemProps, { "aria-selected": selectedItem.label === item.label, className: `${itemClassName} ${props.itemClass}`, hovered: index2 === highlightedIndex, isSelected: selectedItem.label === item.label, key: `item-${index2}`, size: props.size, title: item.label }), item.label);
|
|
30210
30210
|
}) })), document.body)] }) });
|
|
30211
30211
|
}
|
|
@@ -31866,7 +31866,7 @@
|
|
|
31866
31866
|
};
|
|
31867
31867
|
return ReactDOM__default.default.createPortal(jsxRuntime.exports.jsx(Background$1, { id: props.id, onClick: props.onAttemptClose, onTransitionEnd, render: renderModal, children: jsxRuntime.exports.jsx(ModalWrapper, { className: `cl-modal-content ${(_a3 = props.className) !== null && _a3 !== void 0 ? _a3 : ""}`, onClick: stopPropagation, render: renderModal, style: props.style, children: props.children }) }), document.body);
|
|
31868
31868
|
}
|
|
31869
|
-
var __rest$
|
|
31869
|
+
var __rest$8 = globalThis && globalThis.__rest || function(s2, e3) {
|
|
31870
31870
|
var t2 = {};
|
|
31871
31871
|
for (var p2 in s2)
|
|
31872
31872
|
if (Object.prototype.hasOwnProperty.call(s2, p2) && e3.indexOf(p2) < 0)
|
|
@@ -32038,7 +32038,7 @@
|
|
|
32038
32038
|
`;
|
|
32039
32039
|
function MultiSelect(_a3) {
|
|
32040
32040
|
var _b, _c;
|
|
32041
|
-
var { maxWidth = "100%", maxRows = 3 } = _a3, props = __rest$
|
|
32041
|
+
var { maxWidth = "100%", maxRows = 3 } = _a3, props = __rest$8(_a3, ["maxWidth", "maxRows"]);
|
|
32042
32042
|
const referenceElement = React.useRef(null);
|
|
32043
32043
|
const popperElement = React.useRef(null);
|
|
32044
32044
|
const { styles: styles2, attributes: attributes2, update: update2 } = usePopper$1(referenceElement.current, popperElement.current, {
|
|
@@ -32108,7 +32108,7 @@
|
|
|
32108
32108
|
return removeSelectedItem(selectedItem);
|
|
32109
32109
|
} })] }), selectedItem.value)), jsxRuntime.exports.jsx(Input$1, Object.assign({}, getInputProps(getDropdownProps({ preventKeyAction: isOpen })), { disabled: props.disabled, onFocus: openMenu, placeholder: props.placeholder, size: props.size }))] }), jsxRuntime.exports.jsx(ChevronButton, Object.assign({}, getToggleButtonProps(), { children: jsxRuntime.exports.jsx(Chevron$2, { disabled: props.disabled, isOpen }) }))] }) }), ReactDOM__default.default.createPortal(jsxRuntime.exports.jsxs(DropdownList$1, Object.assign({}, menuProps, attributes2.popper, { isOpen, ref: setMenuReference, style: Object.assign(Object.assign({}, styles2.popper), { width: parseFloat((_c = styles2.popper) === null || _c === void 0 ? void 0 : _c.width), zIndex: 9999 }), children: [filteredItems.length > 0 && filteredItems.map((item, index2) => React.createElement(ListItem, Object.assign({}, getItemProps({ index: index2, item }), { hovered: index2 === highlightedIndex, key: `item-${index2}`, size: props.size, title: item.label }), item.label)), filteredItems.length === 0 && jsxRuntime.exports.jsx(NoItemsLabel, { children: "No Items" })] })), document.body)] });
|
|
32110
32110
|
}
|
|
32111
|
-
var __rest$
|
|
32111
|
+
var __rest$7 = globalThis && globalThis.__rest || function(s2, e3) {
|
|
32112
32112
|
var t2 = {};
|
|
32113
32113
|
for (var p2 in s2)
|
|
32114
32114
|
if (Object.prototype.hasOwnProperty.call(s2, p2) && e3.indexOf(p2) < 0)
|
|
@@ -32242,7 +32242,7 @@
|
|
|
32242
32242
|
(_a4 = props.dropdownRef) === null || _a4 === void 0 ? void 0 : _a4.call(props, value);
|
|
32243
32243
|
};
|
|
32244
32244
|
return jsxRuntime.exports.jsx(Tooltip$1, { content: props.errorMsg, disabled: !props.errorMsg, styling: "error", children: jsxRuntime.exports.jsxs(Wrapper$6, { className: props.className, isDisabled: props.disabled, isErrored: !!props.errorMsg, isOpen, onClick: props.onClick, style: props.style, children: [jsxRuntime.exports.jsxs(SelectButton, Object.assign({ disabled: props.disabled, isOpen }, buttonProps, { ref: setButtonReference, type: "button", children: [jsxRuntime.exports.jsx(SelectedItem, { size: props.size, children: (_b = (_a3 = selectedItem === null ? props.placeholder : selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label) !== null && _a3 !== void 0 ? _a3 : props.placeholder) !== null && _b !== void 0 ? _b : "Select" }), jsxRuntime.exports.jsx(Chevron$2, { disabled: props.disabled, isOpen })] })), ReactDOM__default.default.createPortal(jsxRuntime.exports.jsx(DropdownList, Object.assign({}, menuProps, attributes2.popper, { className: `${(_c = menuProps === null || menuProps === void 0 ? void 0 : menuProps.className) !== null && _c !== void 0 ? _c : ""} ${(_e2 = (_d = attributes2 === null || attributes2 === void 0 ? void 0 : attributes2.popper) === null || _d === void 0 ? void 0 : _d.className) !== null && _e2 !== void 0 ? _e2 : ""} ${props.itemClass}`, isOpen, maxItems: props.maxItems, ref: setMenuReference, style: Object.assign(Object.assign({}, styles2.popper), { width: props.applySameWidthModifier === false ? void 0 : parseFloat((_f = styles2.popper) === null || _f === void 0 ? void 0 : _f.width) + 2, zIndex: 9999 }), children: props.items.map((item, index2) => {
|
|
32245
|
-
const _a4 = getItemProps({ index: index2, item }), { itemClassName } = _a4, itemProps = __rest$
|
|
32245
|
+
const _a4 = getItemProps({ index: index2, item }), { itemClassName } = _a4, itemProps = __rest$7(_a4, ["itemClassName"]);
|
|
32246
32246
|
return React.createElement(ListItem, Object.assign({}, itemProps, { className: `${itemClassName} ${props.itemClass}`, hovered: index2 === highlightedIndex, key: `item-${index2}`, size: props.size, title: item.label }), item.label);
|
|
32247
32247
|
}) })), document.body)] }) });
|
|
32248
32248
|
}
|
|
@@ -34736,6 +34736,55 @@
|
|
|
34736
34736
|
swapOpacity: false
|
|
34737
34737
|
};
|
|
34738
34738
|
var convertCurry = convert$1.bind(null, React__default.default.createElement);
|
|
34739
|
+
var safeIsNaN$1 = Number.isNaN || function ponyfill(value) {
|
|
34740
|
+
return typeof value === "number" && value !== value;
|
|
34741
|
+
};
|
|
34742
|
+
function isEqual$1(first, second) {
|
|
34743
|
+
if (first === second) {
|
|
34744
|
+
return true;
|
|
34745
|
+
}
|
|
34746
|
+
if (safeIsNaN$1(first) && safeIsNaN$1(second)) {
|
|
34747
|
+
return true;
|
|
34748
|
+
}
|
|
34749
|
+
return false;
|
|
34750
|
+
}
|
|
34751
|
+
function areInputsEqual$1(newInputs, lastInputs) {
|
|
34752
|
+
if (newInputs.length !== lastInputs.length) {
|
|
34753
|
+
return false;
|
|
34754
|
+
}
|
|
34755
|
+
for (var i2 = 0; i2 < newInputs.length; i2++) {
|
|
34756
|
+
if (!isEqual$1(newInputs[i2], lastInputs[i2])) {
|
|
34757
|
+
return false;
|
|
34758
|
+
}
|
|
34759
|
+
}
|
|
34760
|
+
return true;
|
|
34761
|
+
}
|
|
34762
|
+
function memoizeOne$1(resultFn, isEqual2) {
|
|
34763
|
+
if (isEqual2 === void 0) {
|
|
34764
|
+
isEqual2 = areInputsEqual$1;
|
|
34765
|
+
}
|
|
34766
|
+
var cache2 = null;
|
|
34767
|
+
function memoized() {
|
|
34768
|
+
var newArgs = [];
|
|
34769
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
34770
|
+
newArgs[_i] = arguments[_i];
|
|
34771
|
+
}
|
|
34772
|
+
if (cache2 && cache2.lastThis === this && isEqual2(newArgs, cache2.lastArgs)) {
|
|
34773
|
+
return cache2.lastResult;
|
|
34774
|
+
}
|
|
34775
|
+
var lastResult = resultFn.apply(this, newArgs);
|
|
34776
|
+
cache2 = {
|
|
34777
|
+
lastResult,
|
|
34778
|
+
lastArgs: newArgs,
|
|
34779
|
+
lastThis: this
|
|
34780
|
+
};
|
|
34781
|
+
return lastResult;
|
|
34782
|
+
}
|
|
34783
|
+
memoized.clear = function clear() {
|
|
34784
|
+
cache2 = null;
|
|
34785
|
+
};
|
|
34786
|
+
return memoized;
|
|
34787
|
+
}
|
|
34739
34788
|
var reactTable = { exports: {} };
|
|
34740
34789
|
var reactTable_production_min = { exports: {} };
|
|
34741
34790
|
(function(module2, exports3) {
|
|
@@ -37381,6 +37430,24 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
37381
37430
|
_ref7.itemSize;
|
|
37382
37431
|
}
|
|
37383
37432
|
});
|
|
37433
|
+
function shallowDiffers(prev, next2) {
|
|
37434
|
+
for (var attribute in prev) {
|
|
37435
|
+
if (!(attribute in next2)) {
|
|
37436
|
+
return true;
|
|
37437
|
+
}
|
|
37438
|
+
}
|
|
37439
|
+
for (var _attribute in next2) {
|
|
37440
|
+
if (prev[_attribute] !== next2[_attribute]) {
|
|
37441
|
+
return true;
|
|
37442
|
+
}
|
|
37443
|
+
}
|
|
37444
|
+
return false;
|
|
37445
|
+
}
|
|
37446
|
+
function areEqual(prevProps, nextProps) {
|
|
37447
|
+
var prevStyle = prevProps.style, prevRest = _objectWithoutPropertiesLoose$5(prevProps, ["style"]);
|
|
37448
|
+
var nextStyle = nextProps.style, nextRest = _objectWithoutPropertiesLoose$5(nextProps, ["style"]);
|
|
37449
|
+
return !shallowDiffers(prevStyle, nextStyle) && !shallowDiffers(prevRest, nextRest);
|
|
37450
|
+
}
|
|
37384
37451
|
const GlobalStyle = styled.createGlobalStyle`
|
|
37385
37452
|
body {
|
|
37386
37453
|
.DatetimeFilterSelect {
|
|
@@ -37752,7 +37819,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
37752
37819
|
}
|
|
37753
37820
|
switch (operator2) {
|
|
37754
37821
|
case DateOperator.EQ:
|
|
37755
|
-
return isEqual$
|
|
37822
|
+
return isEqual$3(parsedValue, filterValue);
|
|
37756
37823
|
case DateOperator.GT:
|
|
37757
37824
|
return isAfter$1(parsedValue, filterValue);
|
|
37758
37825
|
case DateOperator.LT:
|
|
@@ -37965,7 +38032,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
37965
38032
|
}, [allColumns, allowColumnHiding]);
|
|
37966
38033
|
return jsxRuntime.exports.jsxs(HeaderOptions, { ref: setOptionsElement, children: [jsxRuntime.exports.jsx(HeaderOptionsIcon, { icon: faEllipsisV, onClick: toggleOptions }), ReactDOM__default.default.createPortal(jsxRuntime.exports.jsx(OptionsDropdownList, Object.assign({}, attributes2.popper, { isOpen: showOptions, ref: setPopperElement, style: Object.assign(Object.assign(Object.assign({}, styles2.popper), { maxHeight: 800, minWidth: 150, zIndex: 9999 }), style2), children: jsxRuntime.exports.jsx(SectionedList, { items: allowColumnHiding ? [resetFunctions, columnToggles] : [resetFunctions], onSelect: onOptionSelect }) })), document.body)] });
|
|
37967
38034
|
};
|
|
37968
|
-
var __rest$
|
|
38035
|
+
var __rest$6 = globalThis && globalThis.__rest || function(s2, e3) {
|
|
37969
38036
|
var t2 = {};
|
|
37970
38037
|
for (var p2 in s2)
|
|
37971
38038
|
if (Object.prototype.hasOwnProperty.call(s2, p2) && e3.indexOf(p2) < 0)
|
|
@@ -37978,6 +38045,139 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
37978
38045
|
return t2;
|
|
37979
38046
|
};
|
|
37980
38047
|
const ROW_HEIGHT = 40;
|
|
38048
|
+
const shouldForwardProp = (prop) => !["isSorted", "onClickRow"].includes(prop);
|
|
38049
|
+
const Row$1 = styled__default.default.div.withConfig({ shouldForwardProp })`
|
|
38050
|
+
cursor: ${(props) => props.onClickRow ? "pointer" : "default"};
|
|
38051
|
+
display: flex;
|
|
38052
|
+
|
|
38053
|
+
:hover {
|
|
38054
|
+
div {
|
|
38055
|
+
background-color: ${(props) => props.theme.colors.grey1};
|
|
38056
|
+
}
|
|
38057
|
+
}
|
|
38058
|
+
|
|
38059
|
+
:active,
|
|
38060
|
+
focused {
|
|
38061
|
+
div {
|
|
38062
|
+
background-color: ${(props) => props.theme.colors.grey2};
|
|
38063
|
+
}
|
|
38064
|
+
}
|
|
38065
|
+
`;
|
|
38066
|
+
const RowPlaceholder = styled__default.default(Row$1)`
|
|
38067
|
+
position: absolute;
|
|
38068
|
+
left: 0px;
|
|
38069
|
+
|
|
38070
|
+
display: flex;
|
|
38071
|
+
align-items: center;
|
|
38072
|
+
justify-content: center;
|
|
38073
|
+
`;
|
|
38074
|
+
const CellPlaceholder = styled__default.default.div`
|
|
38075
|
+
min-width: 80px;
|
|
38076
|
+
height: 0.7rem;
|
|
38077
|
+
margin: 0.5rem;
|
|
38078
|
+
|
|
38079
|
+
background: ${(props) => `linear-gradient(to right, ${props.theme.colors.grey2}, ${curriedTransparentize$2(0.2, props.theme.colors.grey3)}, ${props.theme.colors.grey2});`};
|
|
38080
|
+
background-size: 50%;
|
|
38081
|
+
border-radius: 0.5rem;
|
|
38082
|
+
|
|
38083
|
+
animation-name: aniHorizontal;
|
|
38084
|
+
animation-duration: 3.5s;
|
|
38085
|
+
animation-timing-function: linear;
|
|
38086
|
+
animation-iteration-count: infinite;
|
|
38087
|
+
|
|
38088
|
+
@keyframes aniHorizontal {
|
|
38089
|
+
0% {
|
|
38090
|
+
background-position: -100% 0;
|
|
38091
|
+
}
|
|
38092
|
+
|
|
38093
|
+
100% {
|
|
38094
|
+
background-position: 100% 0;
|
|
38095
|
+
}
|
|
38096
|
+
}
|
|
38097
|
+
`;
|
|
38098
|
+
const Cell = styled__default.default.div`
|
|
38099
|
+
display: flex !important;
|
|
38100
|
+
align-items: center;
|
|
38101
|
+
|
|
38102
|
+
min-width: 80px;
|
|
38103
|
+
height: 2.5rem;
|
|
38104
|
+
|
|
38105
|
+
color: ${(props) => props.theme.colors.grey6};
|
|
38106
|
+
|
|
38107
|
+
background-color: ${(props) => props.theme.colors.blue1};
|
|
38108
|
+
border-bottom: 1px solid ${(props) => props.theme.colors.grey3};
|
|
38109
|
+
|
|
38110
|
+
:last-child {
|
|
38111
|
+
border-right: 0;
|
|
38112
|
+
}
|
|
38113
|
+
`;
|
|
38114
|
+
const CellContent = styled__default.default.span`
|
|
38115
|
+
overflow: hidden;
|
|
38116
|
+
|
|
38117
|
+
width: 100%;
|
|
38118
|
+
padding: 0 1rem;
|
|
38119
|
+
|
|
38120
|
+
text-overflow: ellipsis;
|
|
38121
|
+
white-space: nowrap;
|
|
38122
|
+
`;
|
|
38123
|
+
const RenderRow = React__namespace.memo(({ data: { width, currentEditCell, headerGroups, rows, prepareRow, getItem, totalColumnsWidth, onClickRow, throttledClickRow, backgroundColor, mappedColumns }, index: index2, style: renderRowStyle }) => {
|
|
38124
|
+
let row = rows[index2];
|
|
38125
|
+
if (getItem) {
|
|
38126
|
+
const value = getItem(index2);
|
|
38127
|
+
if (!value) {
|
|
38128
|
+
row = null;
|
|
38129
|
+
} else {
|
|
38130
|
+
row.original = value;
|
|
38131
|
+
row.values = value;
|
|
38132
|
+
}
|
|
38133
|
+
}
|
|
38134
|
+
if (!row) {
|
|
38135
|
+
return jsxRuntime.exports.jsx("div", { children: headerGroups.map((headerGroup, gidx) => jsxRuntime.exports.jsx(RowPlaceholder, { style: {
|
|
38136
|
+
height: ROW_HEIGHT,
|
|
38137
|
+
top: (index2 + 1) * ROW_HEIGHT,
|
|
38138
|
+
width: totalColumnsWidth > width ? totalColumnsWidth : "100%"
|
|
38139
|
+
}, children: headerGroup === null || headerGroup === void 0 ? void 0 : headerGroup.headers.map((col, cidx) => {
|
|
38140
|
+
const headerProps = col.getHeaderProps();
|
|
38141
|
+
const headerWidth = headerProps.style.width === "NaNpx" ? mappedColumns[cidx].width : headerProps.style.width;
|
|
38142
|
+
return jsxRuntime.exports.jsx(CellPlaceholder, { style: {
|
|
38143
|
+
maxWidth: col.maxWidth,
|
|
38144
|
+
width: headerWidth
|
|
38145
|
+
} }, `col-${index2}-${cidx}`);
|
|
38146
|
+
}) }, `row-${gidx}`)) });
|
|
38147
|
+
}
|
|
38148
|
+
prepareRow(row);
|
|
38149
|
+
const onClick = () => {
|
|
38150
|
+
if (onClickRow) {
|
|
38151
|
+
throttledClickRow(row.original);
|
|
38152
|
+
}
|
|
38153
|
+
};
|
|
38154
|
+
const _a3 = row.getRowProps({ style: renderRowStyle }), { style: rowStyle } = _a3, restRow = __rest$6(_a3, ["style"]);
|
|
38155
|
+
return React.createElement(Row$1, Object.assign({}, restRow, { key: `row-${index2}`, onClick, onClickRow, style: Object.assign(Object.assign({}, rowStyle), { top: (index2 + 1) * ROW_HEIGHT, width: totalColumnsWidth > width ? totalColumnsWidth : "100%" }) }), row.cells.map((cell, colIdx) => {
|
|
38156
|
+
var _a4;
|
|
38157
|
+
const cellProps = cell.getCellProps();
|
|
38158
|
+
return React.createElement(
|
|
38159
|
+
Cell,
|
|
38160
|
+
Object.assign({}, cellProps, { key: `cell-${index2}-${colIdx}`, style: Object.assign(Object.assign({}, cellProps.style), { backgroundColor, justifyContent: mappedColumns[colIdx].align, maxWidth: (_a4 = cell.column) === null || _a4 === void 0 ? void 0 : _a4.maxWidth, width: cellProps.style.width === "NaNpx" ? mappedColumns[colIdx].width : cellProps.style.width }) }),
|
|
38161
|
+
jsxRuntime.exports.jsx(CellContent, { children: cell.render("Cell", {
|
|
38162
|
+
colIdx,
|
|
38163
|
+
currentEditCell,
|
|
38164
|
+
rowIdx: index2
|
|
38165
|
+
}) })
|
|
38166
|
+
);
|
|
38167
|
+
}));
|
|
38168
|
+
}, areEqual);
|
|
38169
|
+
var __rest$5 = globalThis && globalThis.__rest || function(s2, e3) {
|
|
38170
|
+
var t2 = {};
|
|
38171
|
+
for (var p2 in s2)
|
|
38172
|
+
if (Object.prototype.hasOwnProperty.call(s2, p2) && e3.indexOf(p2) < 0)
|
|
38173
|
+
t2[p2] = s2[p2];
|
|
38174
|
+
if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
|
|
38175
|
+
for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2); i2 < p2.length; i2++) {
|
|
38176
|
+
if (e3.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2]))
|
|
38177
|
+
t2[p2[i2]] = s2[p2[i2]];
|
|
38178
|
+
}
|
|
38179
|
+
return t2;
|
|
38180
|
+
};
|
|
37981
38181
|
const Wrapper$4 = styled__default.default.div`
|
|
37982
38182
|
display: inline-block;
|
|
37983
38183
|
width: 100%;
|
|
@@ -38088,86 +38288,11 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
38088
38288
|
width: 10px;
|
|
38089
38289
|
height: 100%;
|
|
38090
38290
|
`;
|
|
38091
|
-
const shouldForwardProp = (prop) => !["isSorted", "onClickRow"].includes(prop);
|
|
38092
38291
|
const SortIcon = styled__default.default(FontAwesomeIcon).withConfig({ shouldForwardProp })`
|
|
38093
38292
|
color: ${(props) => props.isSorted ? props.theme.colors.grey3 : props.theme.colors.blue3};
|
|
38094
38293
|
`;
|
|
38095
38294
|
const TooltipIcon = styled__default.default(FontAwesomeIcon)`
|
|
38096
38295
|
color: ${(props) => props.theme.colors.grey4};
|
|
38097
|
-
`;
|
|
38098
|
-
const Row$1 = styled__default.default.div.withConfig({ shouldForwardProp })`
|
|
38099
|
-
cursor: ${(props) => props.onClickRow ? "pointer" : "default"};
|
|
38100
|
-
display: flex;
|
|
38101
|
-
|
|
38102
|
-
:hover {
|
|
38103
|
-
div {
|
|
38104
|
-
background-color: ${(props) => props.theme.colors.grey1};
|
|
38105
|
-
}
|
|
38106
|
-
}
|
|
38107
|
-
|
|
38108
|
-
:active,
|
|
38109
|
-
focused {
|
|
38110
|
-
div {
|
|
38111
|
-
background-color: ${(props) => props.theme.colors.grey2};
|
|
38112
|
-
}
|
|
38113
|
-
}
|
|
38114
|
-
`;
|
|
38115
|
-
const RowPlaceholder = styled__default.default(Row$1)`
|
|
38116
|
-
position: absolute;
|
|
38117
|
-
left: 0px;
|
|
38118
|
-
|
|
38119
|
-
display: flex;
|
|
38120
|
-
align-items: center;
|
|
38121
|
-
justify-content: center;
|
|
38122
|
-
`;
|
|
38123
|
-
const CellPlaceholder = styled__default.default.div`
|
|
38124
|
-
min-width: 80px;
|
|
38125
|
-
height: 0.7rem;
|
|
38126
|
-
margin: 0.5rem;
|
|
38127
|
-
|
|
38128
|
-
background: ${(props) => `linear-gradient(to right, ${props.theme.colors.grey2}, ${curriedTransparentize$2(0.2, props.theme.colors.grey3)}, ${props.theme.colors.grey2});`};
|
|
38129
|
-
background-size: 50%;
|
|
38130
|
-
border-radius: 0.5rem;
|
|
38131
|
-
|
|
38132
|
-
animation-name: aniHorizontal;
|
|
38133
|
-
animation-duration: 3.5s;
|
|
38134
|
-
animation-timing-function: linear;
|
|
38135
|
-
animation-iteration-count: infinite;
|
|
38136
|
-
|
|
38137
|
-
@keyframes aniHorizontal {
|
|
38138
|
-
0% {
|
|
38139
|
-
background-position: -100% 0;
|
|
38140
|
-
}
|
|
38141
|
-
|
|
38142
|
-
100% {
|
|
38143
|
-
background-position: 100% 0;
|
|
38144
|
-
}
|
|
38145
|
-
}
|
|
38146
|
-
`;
|
|
38147
|
-
const Cell = styled__default.default.div`
|
|
38148
|
-
display: flex !important;
|
|
38149
|
-
align-items: center;
|
|
38150
|
-
|
|
38151
|
-
min-width: 80px;
|
|
38152
|
-
height: 2.5rem;
|
|
38153
|
-
|
|
38154
|
-
color: ${(props) => props.theme.colors.grey6};
|
|
38155
|
-
|
|
38156
|
-
background-color: ${(props) => props.theme.colors.blue1};
|
|
38157
|
-
border-bottom: 1px solid ${(props) => props.theme.colors.grey3};
|
|
38158
|
-
|
|
38159
|
-
:last-child {
|
|
38160
|
-
border-right: 0;
|
|
38161
|
-
}
|
|
38162
|
-
`;
|
|
38163
|
-
const CellContent = styled__default.default.span`
|
|
38164
|
-
overflow: hidden;
|
|
38165
|
-
|
|
38166
|
-
width: 100%;
|
|
38167
|
-
padding: 0 1rem;
|
|
38168
|
-
|
|
38169
|
-
text-overflow: ellipsis;
|
|
38170
|
-
white-space: nowrap;
|
|
38171
38296
|
`;
|
|
38172
38297
|
const getSortIcon = (isSorted, isSortedDesc) => {
|
|
38173
38298
|
if (!isSorted) {
|
|
@@ -38217,6 +38342,19 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
38217
38342
|
EDIT_INPUT: EditInputCell,
|
|
38218
38343
|
EDIT_SELECT: EditSelectCell
|
|
38219
38344
|
};
|
|
38345
|
+
const createItemData = memoizeOne$1((width, currentEditCell, headerGroups, rows, prepareRow, getItem, totalColumnsWidth, onClickRow, throttledClickRow, backgroundColor, mappedColumns) => ({
|
|
38346
|
+
backgroundColor,
|
|
38347
|
+
currentEditCell,
|
|
38348
|
+
getItem,
|
|
38349
|
+
headerGroups,
|
|
38350
|
+
mappedColumns,
|
|
38351
|
+
onClickRow,
|
|
38352
|
+
prepareRow,
|
|
38353
|
+
rows,
|
|
38354
|
+
throttledClickRow,
|
|
38355
|
+
totalColumnsWidth,
|
|
38356
|
+
width
|
|
38357
|
+
}));
|
|
38220
38358
|
const Table$1 = React.forwardRef(({ allowHiding, backgroundColor, className, columns, data: data2, getItem, initialSort = [], itemCount, maxRows, onAction, onChange: onChange2, onClickRow, onItemsRendered, onFilter, onSort, showTableOptions, style: style2, tableOptionsStyle }, ref) => {
|
|
38221
38359
|
const [currentSortBy, setCurrentSortBy] = React.useState(initialSort);
|
|
38222
38360
|
React.useEffect(() => {
|
|
@@ -38307,57 +38445,11 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
38307
38445
|
);
|
|
38308
38446
|
}))) }), React.createElement("div", Object.assign({}, tableProps, rest, { key: "table-body-inner", style: tableStyle }), children2)] }, "table-inner");
|
|
38309
38447
|
}, useDeepCompare([tableProps, totalColumnsWidth, headerGroups]));
|
|
38310
|
-
const renderRow = React.useCallback(({ data: rowData, index: index2, style: renderRowStyle }) => {
|
|
38311
|
-
let row = rows[index2];
|
|
38312
|
-
if (getItem) {
|
|
38313
|
-
const value = getItem(index2);
|
|
38314
|
-
if (!value) {
|
|
38315
|
-
row = null;
|
|
38316
|
-
} else {
|
|
38317
|
-
row.original = value;
|
|
38318
|
-
row.values = value;
|
|
38319
|
-
}
|
|
38320
|
-
}
|
|
38321
|
-
if (!row) {
|
|
38322
|
-
return jsxRuntime.exports.jsx("div", { children: headerGroups.map((headerGroup, gidx) => jsxRuntime.exports.jsx(RowPlaceholder, { style: {
|
|
38323
|
-
height: ROW_HEIGHT,
|
|
38324
|
-
top: (index2 + 1) * ROW_HEIGHT,
|
|
38325
|
-
width: totalColumnsWidth > rowData.width ? totalColumnsWidth : "100%"
|
|
38326
|
-
}, children: headerGroup === null || headerGroup === void 0 ? void 0 : headerGroup.headers.map((col, cidx) => {
|
|
38327
|
-
const headerProps = col.getHeaderProps();
|
|
38328
|
-
const width = headerProps.style.width === "NaNpx" ? mappedColumns[cidx].width : headerProps.style.width;
|
|
38329
|
-
return jsxRuntime.exports.jsx(CellPlaceholder, { style: {
|
|
38330
|
-
maxWidth: col.maxWidth,
|
|
38331
|
-
width
|
|
38332
|
-
} }, `col-${index2}-${cidx}`);
|
|
38333
|
-
}) }, `row-${gidx}`)) });
|
|
38334
|
-
}
|
|
38335
|
-
prepareRow(row);
|
|
38336
|
-
const onClick = () => {
|
|
38337
|
-
if (onClickRow) {
|
|
38338
|
-
throttledClickRow(row.original);
|
|
38339
|
-
}
|
|
38340
|
-
};
|
|
38341
|
-
const _a3 = row.getRowProps({ style: renderRowStyle }), { style: rowStyle } = _a3, restRow = __rest$5(_a3, ["style"]);
|
|
38342
|
-
return React.createElement(Row$1, Object.assign({}, restRow, { key: `row-${index2}`, onClick, onClickRow, style: Object.assign(Object.assign({}, rowStyle), { top: (index2 + 1) * ROW_HEIGHT, width: totalColumnsWidth > rowData.width ? totalColumnsWidth : "100%" }) }), row.cells.map((cell, colIdx) => {
|
|
38343
|
-
var _a4;
|
|
38344
|
-
const cellProps = cell.getCellProps();
|
|
38345
|
-
return React.createElement(
|
|
38346
|
-
Cell,
|
|
38347
|
-
Object.assign({}, cellProps, { key: `cell-${index2}-${colIdx}`, style: Object.assign(Object.assign({}, cellProps.style), { backgroundColor, justifyContent: mappedColumns[colIdx].align, maxWidth: (_a4 = cell.column) === null || _a4 === void 0 ? void 0 : _a4.maxWidth, width: cellProps.style.width === "NaNpx" ? mappedColumns[colIdx].width : cellProps.style.width }) }),
|
|
38348
|
-
jsxRuntime.exports.jsx(CellContent, { children: cell.render("Cell", {
|
|
38349
|
-
colIdx,
|
|
38350
|
-
currentEditCell: rowData.currentEditCell,
|
|
38351
|
-
rowIdx: index2
|
|
38352
|
-
}) })
|
|
38353
|
-
);
|
|
38354
|
-
}));
|
|
38355
|
-
}, useDeepCompare([currentEditCell, prepareRow, rows, getItem]));
|
|
38356
38448
|
return jsxRuntime.exports.jsx(Wrapper$4, Object.assign({}, getTableProps(), { "$hasMaxRows": !!maxRows, className: `${className} ${hasFixedColumns ? "sticky" : ""}`, style: Object.assign({ height: maxRows ? (Math.min(rows.length, maxRows) + 1) * ROW_HEIGHT : "100%" }, style2), children: jsxRuntime.exports.jsx(AutoSizer, { children: ({ height, width }) => {
|
|
38357
|
-
return jsxRuntime.exports.jsx(StyledFixedSizeList, { height, innerElementType: renderTable, itemCount: itemCount || rows.length, itemData:
|
|
38449
|
+
return jsxRuntime.exports.jsx(StyledFixedSizeList, { height, innerElementType: renderTable, itemCount: itemCount || rows.length, itemData: createItemData(width, currentEditCell, headerGroups, rows, prepareRow, getItem, totalColumnsWidth, onClickRow, throttledClickRow, backgroundColor, mappedColumns), itemSize: ROW_HEIGHT, onItemsRendered, style: {
|
|
38358
38450
|
overflowX: width < totalColumnsWidth ? "auto" : "hidden",
|
|
38359
38451
|
overflowY: height < (rows.length + 1) * ROW_HEIGHT ? "auto" : "hidden"
|
|
38360
|
-
}, width, children:
|
|
38452
|
+
}, width, children: RenderRow }, "table-list");
|
|
38361
38453
|
} }) }));
|
|
38362
38454
|
});
|
|
38363
38455
|
Table$1.displayName = "Table";
|
|
@@ -50723,7 +50815,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50723
50815
|
* This source code is licensed under the MIT license found in the
|
|
50724
50816
|
* LICENSE file in the root directory of this source tree.
|
|
50725
50817
|
*/
|
|
50726
|
-
var b$4 = Symbol.for("react.element"), c$5 = Symbol.for("react.portal"), d$2 = Symbol.for("react.fragment"), e$1 = Symbol.for("react.strict_mode"), f$3 = Symbol.for("react.profiler"), g$3 = Symbol.for("react.provider"), h$3 = Symbol.for("react.context"), k$3 = Symbol.for("react.server_context"), l$2 = Symbol.for("react.forward_ref"), m$
|
|
50818
|
+
var b$4 = Symbol.for("react.element"), c$5 = Symbol.for("react.portal"), d$2 = Symbol.for("react.fragment"), e$1 = Symbol.for("react.strict_mode"), f$3 = Symbol.for("react.profiler"), g$3 = Symbol.for("react.provider"), h$3 = Symbol.for("react.context"), k$3 = Symbol.for("react.server_context"), l$2 = Symbol.for("react.forward_ref"), m$2 = Symbol.for("react.suspense"), n$3 = Symbol.for("react.suspense_list"), p$3 = Symbol.for("react.memo"), q$2 = Symbol.for("react.lazy"), t$3 = Symbol.for("react.offscreen"), u$2;
|
|
50727
50819
|
u$2 = Symbol.for("react.module.reference");
|
|
50728
50820
|
function v$3(a2) {
|
|
50729
50821
|
if ("object" === typeof a2 && null !== a2) {
|
|
@@ -50734,8 +50826,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50734
50826
|
case d$2:
|
|
50735
50827
|
case f$3:
|
|
50736
50828
|
case e$1:
|
|
50737
|
-
case m$
|
|
50738
|
-
case n$
|
|
50829
|
+
case m$2:
|
|
50830
|
+
case n$3:
|
|
50739
50831
|
return a2;
|
|
50740
50832
|
default:
|
|
50741
50833
|
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
@@ -50765,8 +50857,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50765
50857
|
reactIs_production_min.Portal = c$5;
|
|
50766
50858
|
reactIs_production_min.Profiler = f$3;
|
|
50767
50859
|
reactIs_production_min.StrictMode = e$1;
|
|
50768
|
-
reactIs_production_min.Suspense = m$
|
|
50769
|
-
reactIs_production_min.SuspenseList = n$
|
|
50860
|
+
reactIs_production_min.Suspense = m$2;
|
|
50861
|
+
reactIs_production_min.SuspenseList = n$3;
|
|
50770
50862
|
reactIs_production_min.isAsyncMode = function() {
|
|
50771
50863
|
return false;
|
|
50772
50864
|
};
|
|
@@ -50804,13 +50896,13 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50804
50896
|
return v$3(a2) === e$1;
|
|
50805
50897
|
};
|
|
50806
50898
|
reactIs_production_min.isSuspense = function(a2) {
|
|
50807
|
-
return v$3(a2) === m$
|
|
50899
|
+
return v$3(a2) === m$2;
|
|
50808
50900
|
};
|
|
50809
50901
|
reactIs_production_min.isSuspenseList = function(a2) {
|
|
50810
|
-
return v$3(a2) === n$
|
|
50902
|
+
return v$3(a2) === n$3;
|
|
50811
50903
|
};
|
|
50812
50904
|
reactIs_production_min.isValidElementType = function(a2) {
|
|
50813
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === d$2 || a2 === f$3 || a2 === e$1 || a2 === m$
|
|
50905
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === d$2 || a2 === f$3 || a2 === e$1 || a2 === m$2 || a2 === n$3 || a2 === t$3 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === q$2 || a2.$$typeof === p$3 || a2.$$typeof === g$3 || a2.$$typeof === h$3 || a2.$$typeof === l$2 || a2.$$typeof === u$2 || void 0 !== a2.getModuleId) ? true : false;
|
|
50814
50906
|
};
|
|
50815
50907
|
reactIs_production_min.typeOf = v$3;
|
|
50816
50908
|
(function(module2) {
|
|
@@ -282981,9 +283073,6 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
282981
283073
|
var t2 = tn[r2];
|
|
282982
283074
|
return t2 || n$1(18, r2), t2;
|
|
282983
283075
|
}
|
|
282984
|
-
function m$2(n2, r2) {
|
|
282985
|
-
tn[n2] || (tn[n2] = r2);
|
|
282986
|
-
}
|
|
282987
283076
|
function _$3() {
|
|
282988
283077
|
return U$1;
|
|
282989
283078
|
}
|
|
@@ -283099,141 +283188,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
283099
283188
|
}
|
|
283100
283189
|
return l$1(n2);
|
|
283101
283190
|
}
|
|
283102
|
-
|
|
283103
|
-
function r2(n2, r3) {
|
|
283104
|
-
function t2() {
|
|
283105
|
-
this.constructor = n2;
|
|
283106
|
-
}
|
|
283107
|
-
a2(n2, r3), n2.prototype = (t2.prototype = r3.prototype, new t2());
|
|
283108
|
-
}
|
|
283109
|
-
function e3(n2) {
|
|
283110
|
-
n2.o || (n2.R = /* @__PURE__ */ new Map(), n2.o = new Map(n2.t));
|
|
283111
|
-
}
|
|
283112
|
-
function o2(n2) {
|
|
283113
|
-
n2.o || (n2.o = /* @__PURE__ */ new Set(), n2.t.forEach(function(r3) {
|
|
283114
|
-
if (t$2(r3)) {
|
|
283115
|
-
var e4 = N$2(n2.A.h, r3, n2);
|
|
283116
|
-
n2.p.set(r3, e4), n2.o.add(e4);
|
|
283117
|
-
} else
|
|
283118
|
-
n2.o.add(r3);
|
|
283119
|
-
}));
|
|
283120
|
-
}
|
|
283121
|
-
function u2(r3) {
|
|
283122
|
-
r3.g && n$1(3, JSON.stringify(p$2(r3)));
|
|
283123
|
-
}
|
|
283124
|
-
var a2 = function(n2, r3) {
|
|
283125
|
-
return (a2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n3, r4) {
|
|
283126
|
-
n3.__proto__ = r4;
|
|
283127
|
-
} || function(n3, r4) {
|
|
283128
|
-
for (var t2 in r4)
|
|
283129
|
-
r4.hasOwnProperty(t2) && (n3[t2] = r4[t2]);
|
|
283130
|
-
})(n2, r3);
|
|
283131
|
-
}, f2 = function() {
|
|
283132
|
-
function n2(n3, r3) {
|
|
283133
|
-
return this[Q$1] = { i: 2, l: r3, A: r3 ? r3.A : _$3(), P: false, I: false, o: void 0, R: void 0, t: n3, k: this, C: false, g: false }, this;
|
|
283134
|
-
}
|
|
283135
|
-
r2(n2, Map);
|
|
283136
|
-
var o3 = n2.prototype;
|
|
283137
|
-
return Object.defineProperty(o3, "size", { get: function() {
|
|
283138
|
-
return p$2(this[Q$1]).size;
|
|
283139
|
-
} }), o3.has = function(n3) {
|
|
283140
|
-
return p$2(this[Q$1]).has(n3);
|
|
283141
|
-
}, o3.set = function(n3, r3) {
|
|
283142
|
-
var t2 = this[Q$1];
|
|
283143
|
-
return u2(t2), p$2(t2).has(n3) && p$2(t2).get(n3) === r3 || (e3(t2), k$2(t2), t2.R.set(n3, true), t2.o.set(n3, r3), t2.R.set(n3, true)), this;
|
|
283144
|
-
}, o3.delete = function(n3) {
|
|
283145
|
-
if (!this.has(n3))
|
|
283146
|
-
return false;
|
|
283147
|
-
var r3 = this[Q$1];
|
|
283148
|
-
return u2(r3), e3(r3), k$2(r3), r3.t.has(n3) ? r3.R.set(n3, false) : r3.R.delete(n3), r3.o.delete(n3), true;
|
|
283149
|
-
}, o3.clear = function() {
|
|
283150
|
-
var n3 = this[Q$1];
|
|
283151
|
-
u2(n3), p$2(n3).size && (e3(n3), k$2(n3), n3.R = /* @__PURE__ */ new Map(), i$4(n3.t, function(r3) {
|
|
283152
|
-
n3.R.set(r3, false);
|
|
283153
|
-
}), n3.o.clear());
|
|
283154
|
-
}, o3.forEach = function(n3, r3) {
|
|
283155
|
-
var t2 = this;
|
|
283156
|
-
p$2(this[Q$1]).forEach(function(e4, i2) {
|
|
283157
|
-
n3.call(r3, t2.get(i2), i2, t2);
|
|
283158
|
-
});
|
|
283159
|
-
}, o3.get = function(n3) {
|
|
283160
|
-
var r3 = this[Q$1];
|
|
283161
|
-
u2(r3);
|
|
283162
|
-
var i2 = p$2(r3).get(n3);
|
|
283163
|
-
if (r3.I || !t$2(i2))
|
|
283164
|
-
return i2;
|
|
283165
|
-
if (i2 !== r3.t.get(n3))
|
|
283166
|
-
return i2;
|
|
283167
|
-
var o4 = N$2(r3.A.h, i2, r3);
|
|
283168
|
-
return e3(r3), r3.o.set(n3, o4), o4;
|
|
283169
|
-
}, o3.keys = function() {
|
|
283170
|
-
return p$2(this[Q$1]).keys();
|
|
283171
|
-
}, o3.values = function() {
|
|
283172
|
-
var n3, r3 = this, t2 = this.keys();
|
|
283173
|
-
return (n3 = {})[V$1] = function() {
|
|
283174
|
-
return r3.values();
|
|
283175
|
-
}, n3.next = function() {
|
|
283176
|
-
var n4 = t2.next();
|
|
283177
|
-
return n4.done ? n4 : { done: false, value: r3.get(n4.value) };
|
|
283178
|
-
}, n3;
|
|
283179
|
-
}, o3.entries = function() {
|
|
283180
|
-
var n3, r3 = this, t2 = this.keys();
|
|
283181
|
-
return (n3 = {})[V$1] = function() {
|
|
283182
|
-
return r3.entries();
|
|
283183
|
-
}, n3.next = function() {
|
|
283184
|
-
var n4 = t2.next();
|
|
283185
|
-
if (n4.done)
|
|
283186
|
-
return n4;
|
|
283187
|
-
var e4 = r3.get(n4.value);
|
|
283188
|
-
return { done: false, value: [n4.value, e4] };
|
|
283189
|
-
}, n3;
|
|
283190
|
-
}, o3[V$1] = function() {
|
|
283191
|
-
return this.entries();
|
|
283192
|
-
}, n2;
|
|
283193
|
-
}(), c2 = function() {
|
|
283194
|
-
function n2(n3, r3) {
|
|
283195
|
-
return this[Q$1] = { i: 3, l: r3, A: r3 ? r3.A : _$3(), P: false, I: false, o: void 0, t: n3, k: this, p: /* @__PURE__ */ new Map(), g: false, C: false }, this;
|
|
283196
|
-
}
|
|
283197
|
-
r2(n2, Set);
|
|
283198
|
-
var t2 = n2.prototype;
|
|
283199
|
-
return Object.defineProperty(t2, "size", { get: function() {
|
|
283200
|
-
return p$2(this[Q$1]).size;
|
|
283201
|
-
} }), t2.has = function(n3) {
|
|
283202
|
-
var r3 = this[Q$1];
|
|
283203
|
-
return u2(r3), r3.o ? !!r3.o.has(n3) || !(!r3.p.has(n3) || !r3.o.has(r3.p.get(n3))) : r3.t.has(n3);
|
|
283204
|
-
}, t2.add = function(n3) {
|
|
283205
|
-
var r3 = this[Q$1];
|
|
283206
|
-
return u2(r3), this.has(n3) || (o2(r3), k$2(r3), r3.o.add(n3)), this;
|
|
283207
|
-
}, t2.delete = function(n3) {
|
|
283208
|
-
if (!this.has(n3))
|
|
283209
|
-
return false;
|
|
283210
|
-
var r3 = this[Q$1];
|
|
283211
|
-
return u2(r3), o2(r3), k$2(r3), r3.o.delete(n3) || !!r3.p.has(n3) && r3.o.delete(r3.p.get(n3));
|
|
283212
|
-
}, t2.clear = function() {
|
|
283213
|
-
var n3 = this[Q$1];
|
|
283214
|
-
u2(n3), p$2(n3).size && (o2(n3), k$2(n3), n3.o.clear());
|
|
283215
|
-
}, t2.values = function() {
|
|
283216
|
-
var n3 = this[Q$1];
|
|
283217
|
-
return u2(n3), o2(n3), n3.o.values();
|
|
283218
|
-
}, t2.entries = function() {
|
|
283219
|
-
var n3 = this[Q$1];
|
|
283220
|
-
return u2(n3), o2(n3), n3.o.entries();
|
|
283221
|
-
}, t2.keys = function() {
|
|
283222
|
-
return this.values();
|
|
283223
|
-
}, t2[V$1] = function() {
|
|
283224
|
-
return this.values();
|
|
283225
|
-
}, t2.forEach = function(n3, r3) {
|
|
283226
|
-
for (var t3 = this.values(), e4 = t3.next(); !e4.done; )
|
|
283227
|
-
n3.call(r3, e4.value, e4.value, this), e4 = t3.next();
|
|
283228
|
-
}, n2;
|
|
283229
|
-
}();
|
|
283230
|
-
m$2("MapSet", { F: function(n2, r3) {
|
|
283231
|
-
return new f2(n2, r3);
|
|
283232
|
-
}, T: function(n2, r3) {
|
|
283233
|
-
return new c2(n2, r3);
|
|
283234
|
-
} });
|
|
283235
|
-
}
|
|
283236
|
-
var G$1, U$1, W$1 = "undefined" != typeof Symbol && "symbol" == typeof Symbol("x"), X$1 = "undefined" != typeof Map, q$1 = "undefined" != typeof Set, B$1 = "undefined" != typeof Proxy && void 0 !== Proxy.revocable && "undefined" != typeof Reflect, H$2 = W$1 ? Symbol.for("immer-nothing") : ((G$1 = {})["immer-nothing"] = true, G$1), L$1 = W$1 ? Symbol.for("immer-draftable") : "__$immer_draftable", Q$1 = W$1 ? Symbol.for("immer-state") : "__$immer_state", V$1 = "undefined" != typeof Symbol && Symbol.iterator || "@@iterator", Z$1 = "" + Object.prototype.constructor, nn = "undefined" != typeof Reflect && Reflect.ownKeys ? Reflect.ownKeys : void 0 !== Object.getOwnPropertySymbols ? function(n2) {
|
|
283191
|
+
var G$1, U$1, W$1 = "undefined" != typeof Symbol && "symbol" == typeof Symbol("x"), X$1 = "undefined" != typeof Map, q$1 = "undefined" != typeof Set, B$1 = "undefined" != typeof Proxy && void 0 !== Proxy.revocable && "undefined" != typeof Reflect, H$2 = W$1 ? Symbol.for("immer-nothing") : ((G$1 = {})["immer-nothing"] = true, G$1), L$1 = W$1 ? Symbol.for("immer-draftable") : "__$immer_draftable", Q$1 = W$1 ? Symbol.for("immer-state") : "__$immer_state", Z$1 = "" + Object.prototype.constructor, nn = "undefined" != typeof Reflect && Reflect.ownKeys ? Reflect.ownKeys : void 0 !== Object.getOwnPropertySymbols ? function(n2) {
|
|
283237
283192
|
return Object.getOwnPropertyNames(n2).concat(Object.getOwnPropertySymbols(n2));
|
|
283238
283193
|
} : Object.getOwnPropertyNames, rn = Object.getOwnPropertyDescriptors || function(n2) {
|
|
283239
283194
|
var r2 = {};
|
|
@@ -283382,6 +283337,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
283382
283337
|
an.applyPatches.bind(an);
|
|
283383
283338
|
an.createDraft.bind(an);
|
|
283384
283339
|
an.finishDraft.bind(an);
|
|
283340
|
+
const n$2 = fn$7;
|
|
283385
283341
|
const ColumnSelect = styled__default.default(Select$1)`
|
|
283386
283342
|
flex-basis: 15rem;
|
|
283387
283343
|
`;
|
|
@@ -302071,159 +302027,6 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
302071
302027
|
function noop$2() {
|
|
302072
302028
|
}
|
|
302073
302029
|
var noop_1 = noop$2;
|
|
302074
|
-
function i$2(f2) {
|
|
302075
|
-
var u2 = React.useState(function() {
|
|
302076
|
-
return d$1("function" == typeof f2 ? f2() : f2, true);
|
|
302077
|
-
}), i2 = u2[1];
|
|
302078
|
-
return [u2[0], React.useCallback(function(t2) {
|
|
302079
|
-
i2("function" == typeof t2 ? fn$7(t2) : d$1(t2));
|
|
302080
|
-
}, [])];
|
|
302081
|
-
}
|
|
302082
|
-
var FeatureListAction;
|
|
302083
|
-
(function(FeatureListAction2) {
|
|
302084
|
-
FeatureListAction2["ADD_FD"] = "ADD_FD";
|
|
302085
|
-
FeatureListAction2["ADD_OPERATION"] = "ADD_OPERATION";
|
|
302086
|
-
FeatureListAction2["ADD_OPERATION_PROPERTY"] = "ADD_OPERATION_PROPERTY";
|
|
302087
|
-
FeatureListAction2["DELETE_FD"] = "DELETE_FD";
|
|
302088
|
-
FeatureListAction2["DELETE_OPERATION"] = "DELETE_OPERATION";
|
|
302089
|
-
FeatureListAction2["DELETE_OPERATION_PROPERTY"] = "DELETE_OPERATION_PROPERTY";
|
|
302090
|
-
FeatureListAction2["MOVE_OPERATION"] = "MOVE_OPERATION";
|
|
302091
|
-
FeatureListAction2["UPDATE_FD_PROPERTY"] = "UPDATE_FD_PROPERTY";
|
|
302092
|
-
FeatureListAction2["UPDATE_OPERATION_PROPERTY_KEY"] = "UPDATE_OPERATION_PROPERTY_KEY";
|
|
302093
|
-
FeatureListAction2["UPDATE_OPERATION_PROPERTY_VALUE"] = "UPDATE_OPERATION_PROPERTY_VALUE";
|
|
302094
|
-
})(FeatureListAction || (FeatureListAction = {}));
|
|
302095
|
-
styled__default.default(Button$3)`
|
|
302096
|
-
svg {
|
|
302097
|
-
margin-right: 0.5rem;
|
|
302098
|
-
color: ${(props) => props.theme.colors.background};
|
|
302099
|
-
}
|
|
302100
|
-
`;
|
|
302101
|
-
styled__default.default.div`
|
|
302102
|
-
display: flex;
|
|
302103
|
-
align-items: center;
|
|
302104
|
-
justify-content: flex-end;
|
|
302105
|
-
`;
|
|
302106
|
-
styled__default.default.div`
|
|
302107
|
-
display: flex;
|
|
302108
|
-
flex-direction: column;
|
|
302109
|
-
width: 100%;
|
|
302110
|
-
`;
|
|
302111
|
-
styled__default.default.div`
|
|
302112
|
-
display: flex;
|
|
302113
|
-
gap: 2rem;
|
|
302114
|
-
align-items: center;
|
|
302115
|
-
|
|
302116
|
-
width: 100%;
|
|
302117
|
-
margin-bottom: 1px;
|
|
302118
|
-
padding: 1rem;
|
|
302119
|
-
|
|
302120
|
-
background-color: ${(props) => props.theme.colors.grey1};
|
|
302121
|
-
border-radius: 0.25rem;
|
|
302122
|
-
`;
|
|
302123
|
-
styled__default.default.div`
|
|
302124
|
-
display: flex;
|
|
302125
|
-
flex-direction: column;
|
|
302126
|
-
gap: 1rem;
|
|
302127
|
-
|
|
302128
|
-
padding: 1rem;
|
|
302129
|
-
|
|
302130
|
-
background-color: ${(props) => props.theme.colors.grey1};
|
|
302131
|
-
border-radius: 0.25rem;
|
|
302132
|
-
`;
|
|
302133
|
-
styled__default.default.div`
|
|
302134
|
-
display: flex;
|
|
302135
|
-
align-items: center;
|
|
302136
|
-
justify-content: space-between;
|
|
302137
|
-
|
|
302138
|
-
h3 {
|
|
302139
|
-
font-size: ${(props) => props.theme.font.size};
|
|
302140
|
-
font-weight: normal;
|
|
302141
|
-
}
|
|
302142
|
-
`;
|
|
302143
|
-
styled__default.default(ArrowUp)`
|
|
302144
|
-
cursor: ${(props) => props.$disabled ? "not-allowed" : "pointer"};
|
|
302145
|
-
color: ${(props) => props.$disabled ? props.theme.colors.grey3 : props.theme.colors.grey5};
|
|
302146
|
-
|
|
302147
|
-
:hover {
|
|
302148
|
-
color: ${(props) => props.$disabled ? props.theme.colors.grey3 : props.theme.colors.grey6};
|
|
302149
|
-
}
|
|
302150
|
-
`;
|
|
302151
|
-
styled__default.default(ArrowDown)`
|
|
302152
|
-
cursor: ${(props) => props.$disabled ? "not-allowed" : "pointer"};
|
|
302153
|
-
color: ${(props) => props.$disabled ? props.theme.colors.grey3 : props.theme.colors.grey5};
|
|
302154
|
-
|
|
302155
|
-
:hover {
|
|
302156
|
-
color: ${(props) => props.$disabled ? props.theme.colors.grey3 : props.theme.colors.grey6};
|
|
302157
|
-
}
|
|
302158
|
-
`;
|
|
302159
|
-
styled__default.default.div`
|
|
302160
|
-
display: flex;
|
|
302161
|
-
flex-direction: column;
|
|
302162
|
-
gap: 1.5rem;
|
|
302163
|
-
justify-content: center;
|
|
302164
|
-
|
|
302165
|
-
padding: 1rem;
|
|
302166
|
-
|
|
302167
|
-
background-color: ${(props) => props.theme.colors.blue1};
|
|
302168
|
-
border-radius: 0.5rem;
|
|
302169
|
-
`;
|
|
302170
|
-
styled__default.default.div`
|
|
302171
|
-
display: flex;
|
|
302172
|
-
flex-direction: column;
|
|
302173
|
-
gap: 1.5rem;
|
|
302174
|
-
justify-content: center;
|
|
302175
|
-
|
|
302176
|
-
width: 100%;
|
|
302177
|
-
`;
|
|
302178
|
-
styled__default.default.div`
|
|
302179
|
-
display: flex;
|
|
302180
|
-
align-items: center;
|
|
302181
|
-
justify-content: space-between;
|
|
302182
|
-
|
|
302183
|
-
padding-bottom: 1rem;
|
|
302184
|
-
|
|
302185
|
-
border-bottom: 2px dashed ${(props) => props.theme.colors.grey3};
|
|
302186
|
-
`;
|
|
302187
|
-
styled__default.default.div`
|
|
302188
|
-
display: flex;
|
|
302189
|
-
gap: 1rem;
|
|
302190
|
-
align-items: center;
|
|
302191
|
-
`;
|
|
302192
|
-
styled__default.default.div`
|
|
302193
|
-
display: flex;
|
|
302194
|
-
gap: 1rem;
|
|
302195
|
-
align-items: center;
|
|
302196
|
-
justify-content: space-between;
|
|
302197
|
-
`;
|
|
302198
|
-
styled__default.default.div`
|
|
302199
|
-
display: flex;
|
|
302200
|
-
gap: 2rem;
|
|
302201
|
-
align-items: center;
|
|
302202
|
-
`;
|
|
302203
|
-
styled__default.default.div`
|
|
302204
|
-
display: flex;
|
|
302205
|
-
gap: 0.5rem;
|
|
302206
|
-
align-items: center;
|
|
302207
|
-
|
|
302208
|
-
label {
|
|
302209
|
-
flex: 0;
|
|
302210
|
-
min-width: 50px;
|
|
302211
|
-
}
|
|
302212
|
-
`;
|
|
302213
|
-
styled__default.default.div`
|
|
302214
|
-
display: flex;
|
|
302215
|
-
align-items: center;
|
|
302216
|
-
justify-content: space-between;
|
|
302217
|
-
|
|
302218
|
-
width: 100%;
|
|
302219
|
-
padding-right: 2rem;
|
|
302220
|
-
`;
|
|
302221
|
-
styled__default.default.div`
|
|
302222
|
-
display: flex;
|
|
302223
|
-
flex-direction: column;
|
|
302224
|
-
gap: 2rem;
|
|
302225
|
-
`;
|
|
302226
|
-
C$2();
|
|
302227
302030
|
function useConfirmationModal(getMessage, confirm) {
|
|
302228
302031
|
const [render2, setRender] = React.useState(false);
|
|
302229
302032
|
const [canceledItem, setCanceledItem] = React.useState();
|
|
@@ -308131,7 +307934,7 @@ Deprecated since v${version2}`);
|
|
|
308131
307934
|
return { r: e(r2.r, 0, 255), g: e(r2.g, 0, 255), b: e(r2.b, 0, 255), a: e(r2.a) };
|
|
308132
307935
|
}, o$2 = function(r2) {
|
|
308133
307936
|
return { r: n(r2.r), g: n(r2.g), b: n(r2.b), a: n(r2.a, 3) };
|
|
308134
|
-
}, i$
|
|
307937
|
+
}, i$2 = /^#([0-9a-f]{3,8})$/i, s = function(r2) {
|
|
308135
307938
|
var t2 = r2.toString(16);
|
|
308136
307939
|
return t2.length < 2 ? "0" + t2 : t2;
|
|
308137
307940
|
}, h = function(r2) {
|
|
@@ -308153,7 +307956,7 @@ Deprecated since v${version2}`);
|
|
|
308153
307956
|
return { h: (t2 = h(r2)).h, s: (u2 = (200 - (n2 = t2.s)) * (e3 = t2.v) / 100) > 0 && u2 < 200 ? n2 * e3 / 100 / (u2 <= 100 ? u2 : 200 - u2) * 100 : 0, l: u2 / 2, a: t2.a };
|
|
308154
307957
|
var t2, n2, e3, u2;
|
|
308155
307958
|
}, l = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, p$1 = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, v$1 = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, m = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, y$1 = { string: [[function(r2) {
|
|
308156
|
-
var t2 = i$
|
|
307959
|
+
var t2 = i$2.exec(r2);
|
|
308157
307960
|
return t2 ? (r2 = t2[1]).length <= 4 ? { r: parseInt(r2[0] + r2[0], 16), g: parseInt(r2[1] + r2[1], 16), b: parseInt(r2[2] + r2[2], 16), a: 4 === r2.length ? n(parseInt(r2[3] + r2[3], 16) / 255, 2) : 1 } : 6 === r2.length || 8 === r2.length ? { r: parseInt(r2.substr(0, 2), 16), g: parseInt(r2.substr(2, 2), 16), b: parseInt(r2.substr(4, 2), 16), a: 8 === r2.length ? n(parseInt(r2.substr(6, 2), 16) / 255, 2) : 1 } : null : null;
|
|
308158
307961
|
}, "hex"], [function(r2) {
|
|
308159
307962
|
var t2 = v$1.exec(r2) || m.exec(r2);
|
|
@@ -365677,9 +365480,9 @@ ${e3}`);
|
|
|
365677
365480
|
var sin = {};
|
|
365678
365481
|
var cos = {};
|
|
365679
365482
|
var ellipseStepSize = Math.PI / 40;
|
|
365680
|
-
for (var i = 0 * Math.PI; i < 2 * Math.PI; i += ellipseStepSize) {
|
|
365681
|
-
sin[i] = Math.sin(i);
|
|
365682
|
-
cos[i] = Math.cos(i);
|
|
365483
|
+
for (var i$1 = 0 * Math.PI; i$1 < 2 * Math.PI; i$1 += ellipseStepSize) {
|
|
365484
|
+
sin[i$1] = Math.sin(i$1);
|
|
365485
|
+
cos[i$1] = Math.cos(i$1);
|
|
365683
365486
|
}
|
|
365684
365487
|
CRp$3.drawEllipsePath = function(context2, centerX, centerY, width, height) {
|
|
365685
365488
|
if (context2.beginPath) {
|
|
@@ -381117,6 +380920,14 @@ ${letters.join("\n")}`;
|
|
|
381117
380920
|
}, [dragMode]);
|
|
381118
380921
|
return { dragEnabled, dragMode, setDragMode };
|
|
381119
380922
|
}
|
|
380923
|
+
function i(f2) {
|
|
380924
|
+
var u2 = React.useState(function() {
|
|
380925
|
+
return d$1("function" == typeof f2 ? f2() : f2, true);
|
|
380926
|
+
}), i2 = u2[1];
|
|
380927
|
+
return [u2[0], React.useCallback(function(t2) {
|
|
380928
|
+
i2("function" == typeof t2 ? n$2(t2) : d$1(t2));
|
|
380929
|
+
}, [])];
|
|
380930
|
+
}
|
|
381120
380931
|
var __rest$1 = globalThis && globalThis.__rest || function(s2, e3) {
|
|
381121
380932
|
var t2 = {};
|
|
381122
380933
|
for (var p2 in s2)
|
|
@@ -381157,7 +380968,7 @@ ${letters.join("\n")}`;
|
|
|
381157
380968
|
});
|
|
381158
380969
|
}
|
|
381159
380970
|
function useEdgeConstraintEncoder(initialConstraints, onUpdate) {
|
|
381160
|
-
const [constraints, setConstraints] = i
|
|
380971
|
+
const [constraints, setConstraints] = i(() => initialConstraints ? parseConstraints$1(initialConstraints) : []);
|
|
381161
380972
|
useUpdateEffect(() => {
|
|
381162
380973
|
onUpdate === null || onUpdate === void 0 ? void 0 : onUpdate(parseConstraintItems(constraints));
|
|
381163
380974
|
}, [constraints]);
|
|
@@ -386203,7 +386014,7 @@ ${letters.join("\n")}`;
|
|
|
386203
386014
|
border-bottom: ${(props) => `1px solid ${props.theme.colors.grey3}`};
|
|
386204
386015
|
`;
|
|
386205
386016
|
function NodeHierarchyBuilder$1(props) {
|
|
386206
|
-
const [hierarchy2, setHierarchy] = i
|
|
386017
|
+
const [hierarchy2, setHierarchy] = i(parseNodes$1(props.nodes));
|
|
386207
386018
|
const returnStrings = React.useMemo(() => props.nodes.every((l2) => l2.every((n2) => typeof n2 === "string")), [props.nodes]);
|
|
386208
386019
|
const [searchInput, setSearchInput] = React.useState("");
|
|
386209
386020
|
const [searchQuery, setSearchQuery2] = React.useState("");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darajs/components",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Components for the Dara framework",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"prettier": "@darajs/prettier-config",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@darajs/eslint-config": "~1.0.0
|
|
30
|
-
"@darajs/prettier-config": "~1.0.0
|
|
31
|
-
"@darajs/stylelint-config": "~1.0.0
|
|
29
|
+
"@darajs/eslint-config": "~1.0.0",
|
|
30
|
+
"@darajs/prettier-config": "~1.0.0",
|
|
31
|
+
"@darajs/stylelint-config": "~1.0.0",
|
|
32
32
|
"@testing-library/react-hooks": "^3.4.2",
|
|
33
33
|
"@types/lodash": "^4.14.155",
|
|
34
34
|
"@types/react": "^18.2.6",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@bokeh/bokehjs": "~3.1.1",
|
|
54
54
|
"@codemirror/next": "^0.10.0",
|
|
55
|
-
"@darajs/core": "1.0.0
|
|
56
|
-
"@darajs/styled-components": "~1.0.0
|
|
57
|
-
"@darajs/ui-causal-graph-editor": "~1.0.0
|
|
58
|
-
"@darajs/ui-code-editor": "~1.0.0
|
|
59
|
-
"@darajs/ui-components": "~1.0.0
|
|
60
|
-
"@darajs/ui-hierarchy-viewer": "~1.0.0
|
|
61
|
-
"@darajs/ui-icons": "~1.0.0
|
|
62
|
-
"@darajs/ui-utils": "~1.0.0
|
|
55
|
+
"@darajs/core": "1.0.0",
|
|
56
|
+
"@darajs/styled-components": "~1.0.0",
|
|
57
|
+
"@darajs/ui-causal-graph-editor": "~1.0.0",
|
|
58
|
+
"@darajs/ui-code-editor": "~1.0.0",
|
|
59
|
+
"@darajs/ui-components": "~1.0.0",
|
|
60
|
+
"@darajs/ui-hierarchy-viewer": "~1.0.0",
|
|
61
|
+
"@darajs/ui-icons": "~1.0.0",
|
|
62
|
+
"@darajs/ui-utils": "~1.0.0",
|
|
63
63
|
"@popperjs/core": "2.4.0",
|
|
64
64
|
"date-fns": "2.9.0",
|
|
65
65
|
"immer": "^9.0.6",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "4524a653baad221d41c98e28aa75f7e951cf6a48"
|
|
87
87
|
}
|
|
Binary file
|