@teselagen/ove 0.8.35 → 0.8.37
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/RowItem/utils.d.ts +1 -1
- package/StatusBar/index.d.ts +9 -9
- package/helperComponents/PropertiesDialog/utils.d.ts +2 -2
- package/index.cjs.js +222 -166
- package/index.d.ts +1 -1
- package/index.es.js +222 -166
- package/index.umd.js +275 -219
- package/package.json +8 -6
- package/src/Editor/index.js +0 -1
- package/src/RowItem/utils.js +41 -8
- package/src/StatusBar/index.js +1 -1
- package/src/helperComponents/PropertiesDialog/GenericAnnotationProperties.js +7 -3
- package/src/helperComponents/PropertiesDialog/OrfProperties.js +1 -1
- package/src/helperComponents/PropertiesDialog/utils.js +6 -13
- package/src/helperComponents/RemoveDuplicates/index.js +16 -8
- package/src/index.js +1 -4
package/index.cjs.js
CHANGED
|
@@ -8878,8 +8878,8 @@ function unset(object3, path2) {
|
|
|
8878
8878
|
return object3 == null ? true : baseUnset(object3, path2);
|
|
8879
8879
|
}
|
|
8880
8880
|
__name(unset, "unset");
|
|
8881
|
-
function _extends$
|
|
8882
|
-
_extends$
|
|
8881
|
+
function _extends$k() {
|
|
8882
|
+
_extends$k = Object.assign ? Object.assign.bind() : function(target) {
|
|
8883
8883
|
for (var i = 1; i < arguments.length; i++) {
|
|
8884
8884
|
var source = arguments[i];
|
|
8885
8885
|
for (var key in source) {
|
|
@@ -8890,9 +8890,9 @@ function _extends$j() {
|
|
|
8890
8890
|
}
|
|
8891
8891
|
return target;
|
|
8892
8892
|
};
|
|
8893
|
-
return _extends$
|
|
8893
|
+
return _extends$k.apply(this, arguments);
|
|
8894
8894
|
}
|
|
8895
|
-
__name(_extends$
|
|
8895
|
+
__name(_extends$k, "_extends$k");
|
|
8896
8896
|
function _setPrototypeOf$3(o2, p2) {
|
|
8897
8897
|
_setPrototypeOf$3 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : /* @__PURE__ */ __name(function _setPrototypeOf2(o3, p3) {
|
|
8898
8898
|
o3.__proto__ = p3;
|
|
@@ -9015,7 +9015,7 @@ var mapProps = /* @__PURE__ */ __name(function mapProps2(propsMapper) {
|
|
|
9015
9015
|
}, "mapProps2");
|
|
9016
9016
|
var withProps = /* @__PURE__ */ __name(function withProps2(input) {
|
|
9017
9017
|
var hoc = mapProps(function(props) {
|
|
9018
|
-
return _extends$
|
|
9018
|
+
return _extends$k({}, props, typeof input === "function" ? input(props) : input);
|
|
9019
9019
|
});
|
|
9020
9020
|
return hoc;
|
|
9021
9021
|
}, "withProps2");
|
|
@@ -9088,7 +9088,7 @@ var withHandlers = /* @__PURE__ */ __name(function withHandlers2(handlers2) {
|
|
|
9088
9088
|
__name(WithHandlers2, "WithHandlers2");
|
|
9089
9089
|
var _proto = WithHandlers2.prototype;
|
|
9090
9090
|
_proto.render = /* @__PURE__ */ __name(function render3() {
|
|
9091
|
-
return factory(_extends$
|
|
9091
|
+
return factory(_extends$k({}, this.props, this.handlers));
|
|
9092
9092
|
}, "render");
|
|
9093
9093
|
return WithHandlers2;
|
|
9094
9094
|
}(React.Component);
|
|
@@ -9163,7 +9163,7 @@ var lifecycle = /* @__PURE__ */ __name(function lifecycle2(spec) {
|
|
|
9163
9163
|
__name(Lifecycle22, "Lifecycle2");
|
|
9164
9164
|
var _proto = Lifecycle22.prototype;
|
|
9165
9165
|
_proto.render = /* @__PURE__ */ __name(function render3() {
|
|
9166
|
-
return factory(_extends$
|
|
9166
|
+
return factory(_extends$k({}, this.props, this.state));
|
|
9167
9167
|
}, "render");
|
|
9168
9168
|
return Lifecycle22;
|
|
9169
9169
|
}(React.Component);
|
|
@@ -14464,7 +14464,7 @@ function requireReactList() {
|
|
|
14464
14464
|
__name(requireReactList, "requireReactList");
|
|
14465
14465
|
var reactListExports = requireReactList();
|
|
14466
14466
|
const ReactList = /* @__PURE__ */ getDefaultExportFromCjs(reactListExports);
|
|
14467
|
-
var _extends$
|
|
14467
|
+
var _extends$j = Object.assign || function(target) {
|
|
14468
14468
|
for (var i = 1; i < arguments.length; i++) {
|
|
14469
14469
|
var source = arguments[i];
|
|
14470
14470
|
for (var key in source) {
|
|
@@ -14614,7 +14614,7 @@ function makeTemplateComponent(compClass, displayName) {
|
|
|
14614
14614
|
var children = _ref.children, className = _ref.className, rest = _objectWithoutProperties$3(_ref, ["children", "className"]);
|
|
14615
14615
|
return React.createElement(
|
|
14616
14616
|
"div",
|
|
14617
|
-
_extends$
|
|
14617
|
+
_extends$j({ className: classNames(compClass, className) }, rest),
|
|
14618
14618
|
children
|
|
14619
14619
|
);
|
|
14620
14620
|
}, "cmp");
|
|
@@ -14846,7 +14846,7 @@ var _slicedToArray$3 = /* @__PURE__ */ function() {
|
|
|
14846
14846
|
}
|
|
14847
14847
|
};
|
|
14848
14848
|
}();
|
|
14849
|
-
var _extends$
|
|
14849
|
+
var _extends$i = Object.assign || function(target) {
|
|
14850
14850
|
for (var i = 1; i < arguments.length; i++) {
|
|
14851
14851
|
var source = arguments[i];
|
|
14852
14852
|
for (var key in source) {
|
|
@@ -14926,7 +14926,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
14926
14926
|
_createClass$b(_class, [{
|
|
14927
14927
|
key: "getResolvedState",
|
|
14928
14928
|
value: /* @__PURE__ */ __name(function getResolvedState(props, state2) {
|
|
14929
|
-
var resolvedState = _extends$
|
|
14929
|
+
var resolvedState = _extends$i({}, _.compactObject(this.state), _.compactObject(this.props), _.compactObject(state2), _.compactObject(props));
|
|
14930
14930
|
return resolvedState;
|
|
14931
14931
|
}, "getResolvedState")
|
|
14932
14932
|
}, {
|
|
@@ -14958,9 +14958,9 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
14958
14958
|
var makeDecoratedColumn = /* @__PURE__ */ __name(function makeDecoratedColumn2(column, parentColumn) {
|
|
14959
14959
|
var dcol = void 0;
|
|
14960
14960
|
if (column.expander) {
|
|
14961
|
-
dcol = _extends$
|
|
14961
|
+
dcol = _extends$i({}, _this2.props.column, _this2.props.expanderDefaults, column);
|
|
14962
14962
|
} else {
|
|
14963
|
-
dcol = _extends$
|
|
14963
|
+
dcol = _extends$i({}, _this2.props.column, column);
|
|
14964
14964
|
}
|
|
14965
14965
|
if (dcol.maxWidth < dcol.minWidth) {
|
|
14966
14966
|
dcol.minWidth = dcol.maxWidth;
|
|
@@ -14995,7 +14995,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
14995
14995
|
}, "decorateAndAddToAll");
|
|
14996
14996
|
var decoratedColumns = columnsWithExpander.map(function(column) {
|
|
14997
14997
|
if (column.columns) {
|
|
14998
|
-
return _extends$
|
|
14998
|
+
return _extends$i({}, column, {
|
|
14999
14999
|
columns: column.columns.map(function(d2) {
|
|
15000
15000
|
return decorateAndAddToAll(d2, column);
|
|
15001
15001
|
})
|
|
@@ -15010,7 +15010,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
15010
15010
|
var visibleSubColumns = column.columns.filter(function(d2) {
|
|
15011
15011
|
return pivotBy.indexOf(d2.id) > -1 ? false : _.getFirstDefined(d2.show, true);
|
|
15012
15012
|
});
|
|
15013
|
-
return _extends$
|
|
15013
|
+
return _extends$i({}, column, {
|
|
15014
15014
|
columns: visibleSubColumns
|
|
15015
15015
|
});
|
|
15016
15016
|
}
|
|
@@ -15046,14 +15046,14 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
15046
15046
|
var pivotColumnGroup = {
|
|
15047
15047
|
Header: PivotGroupHeader,
|
|
15048
15048
|
columns: pivotColumns.map(function(col) {
|
|
15049
|
-
return _extends$
|
|
15049
|
+
return _extends$i({}, _this2.props.pivotDefaults, col, {
|
|
15050
15050
|
pivoted: true
|
|
15051
15051
|
});
|
|
15052
15052
|
})
|
|
15053
15053
|
// Place the pivotColumns back into the visibleColumns
|
|
15054
15054
|
};
|
|
15055
15055
|
if (pivotIndex >= 0) {
|
|
15056
|
-
pivotColumnGroup = _extends$
|
|
15056
|
+
pivotColumnGroup = _extends$i({}, visibleColumns[pivotIndex], pivotColumnGroup);
|
|
15057
15057
|
visibleColumns.splice(pivotIndex, 1, pivotColumnGroup);
|
|
15058
15058
|
} else {
|
|
15059
15059
|
visibleColumns.unshift(pivotColumnGroup);
|
|
@@ -15062,7 +15062,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
15062
15062
|
var headerGroups = [];
|
|
15063
15063
|
var currentSpan = [];
|
|
15064
15064
|
var addHeader = /* @__PURE__ */ __name(function addHeader2(columns2, column) {
|
|
15065
|
-
headerGroups.push(_extends$
|
|
15065
|
+
headerGroups.push(_extends$i({}, _this2.props.column, column, {
|
|
15066
15066
|
columns: columns2
|
|
15067
15067
|
}));
|
|
15068
15068
|
currentSpan = [];
|
|
@@ -15127,13 +15127,13 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
15127
15127
|
groupedRows = groupedRows.map(function(rowGroup) {
|
|
15128
15128
|
var _extends2;
|
|
15129
15129
|
var subRows = groupRecursively2(rowGroup[subRowsKey], keys3, i + 1);
|
|
15130
|
-
return _extends$
|
|
15130
|
+
return _extends$i({}, rowGroup, (_extends2 = {}, _defineProperty$5(_extends2, subRowsKey, subRows), _defineProperty$5(_extends2, aggregatedKey, true), _extends2), aggregate(subRows));
|
|
15131
15131
|
});
|
|
15132
15132
|
return groupedRows;
|
|
15133
15133
|
}, "groupRecursively");
|
|
15134
15134
|
resolvedData = groupRecursively(resolvedData, pivotBy);
|
|
15135
15135
|
}
|
|
15136
|
-
return _extends$
|
|
15136
|
+
return _extends$i({}, newState, {
|
|
15137
15137
|
resolvedData,
|
|
15138
15138
|
allVisibleColumns,
|
|
15139
15139
|
headerGroups,
|
|
@@ -15195,7 +15195,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
15195
15195
|
if (!row[_this3.props.subRowsKey]) {
|
|
15196
15196
|
return row;
|
|
15197
15197
|
}
|
|
15198
|
-
return _extends$
|
|
15198
|
+
return _extends$i({}, row, _defineProperty$5({}, _this3.props.subRowsKey, _this3.filterData(row[_this3.props.subRowsKey], filtered, defaultFilterMethod2, allVisibleColumns)));
|
|
15199
15199
|
}).filter(function(row) {
|
|
15200
15200
|
if (!row[_this3.props.subRowsKey]) {
|
|
15201
15201
|
return true;
|
|
@@ -15475,7 +15475,7 @@ var _createClass$a = /* @__PURE__ */ function() {
|
|
|
15475
15475
|
return Constructor;
|
|
15476
15476
|
};
|
|
15477
15477
|
}();
|
|
15478
|
-
var _extends$
|
|
15478
|
+
var _extends$h = Object.assign || function(target) {
|
|
15479
15479
|
for (var i = 1; i < arguments.length; i++) {
|
|
15480
15480
|
var source = arguments[i];
|
|
15481
15481
|
for (var key in source) {
|
|
@@ -15510,7 +15510,7 @@ __name(_inherits$9, "_inherits$9");
|
|
|
15510
15510
|
var defaultButton = /* @__PURE__ */ __name(function defaultButton2(props) {
|
|
15511
15511
|
return React.createElement(
|
|
15512
15512
|
"button",
|
|
15513
|
-
_extends$
|
|
15513
|
+
_extends$h({ type: "button" }, props, { className: "-btn" }),
|
|
15514
15514
|
props.children
|
|
15515
15515
|
);
|
|
15516
15516
|
}, "defaultButton");
|
|
@@ -15710,7 +15710,7 @@ ReactTablePagination.defaultProps = {
|
|
|
15710
15710
|
);
|
|
15711
15711
|
}, "renderPageSizeOptions")
|
|
15712
15712
|
};
|
|
15713
|
-
var _extends$
|
|
15713
|
+
var _extends$g = Object.assign || function(target) {
|
|
15714
15714
|
for (var i = 1; i < arguments.length; i++) {
|
|
15715
15715
|
var source = arguments[i];
|
|
15716
15716
|
for (var key in source) {
|
|
@@ -15901,7 +15901,7 @@ const defaultProps$1 = {
|
|
|
15901
15901
|
var children = _ref.children, className = _ref.className, rest = _objectWithoutProperties$2(_ref, ["children", "className"]);
|
|
15902
15902
|
return React.createElement(
|
|
15903
15903
|
"div",
|
|
15904
|
-
_extends$
|
|
15904
|
+
_extends$g({
|
|
15905
15905
|
className: classNames("rt-table", className),
|
|
15906
15906
|
role: "grid"
|
|
15907
15907
|
// tabIndex='0'
|
|
@@ -15915,7 +15915,7 @@ const defaultProps$1 = {
|
|
|
15915
15915
|
var children = _ref2.children, className = _ref2.className, rest = _objectWithoutProperties$2(_ref2, ["children", "className"]);
|
|
15916
15916
|
return React.createElement(
|
|
15917
15917
|
"div",
|
|
15918
|
-
_extends$
|
|
15918
|
+
_extends$g({ className: classNames("rt-tr-group", className), role: "rowgroup" }, rest),
|
|
15919
15919
|
children
|
|
15920
15920
|
);
|
|
15921
15921
|
}, "TrGroupComponent"),
|
|
@@ -15923,7 +15923,7 @@ const defaultProps$1 = {
|
|
|
15923
15923
|
var children = _ref3.children, className = _ref3.className, rest = _objectWithoutProperties$2(_ref3, ["children", "className"]);
|
|
15924
15924
|
return React.createElement(
|
|
15925
15925
|
"div",
|
|
15926
|
-
_extends$
|
|
15926
|
+
_extends$g({ className: classNames("rt-tr", className), role: "row" }, rest),
|
|
15927
15927
|
children
|
|
15928
15928
|
);
|
|
15929
15929
|
}, "TrComponent"),
|
|
@@ -15933,7 +15933,7 @@ const defaultProps$1 = {
|
|
|
15933
15933
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
15934
15934
|
React.createElement(
|
|
15935
15935
|
"div",
|
|
15936
|
-
_extends$
|
|
15936
|
+
_extends$g({
|
|
15937
15937
|
className: classNames("rt-th", className),
|
|
15938
15938
|
onClick: /* @__PURE__ */ __name(function onClick(e) {
|
|
15939
15939
|
return toggleSort && toggleSort(e);
|
|
@@ -15951,7 +15951,7 @@ const defaultProps$1 = {
|
|
|
15951
15951
|
var className = _ref5.className, children = _ref5.children, rest = _objectWithoutProperties$2(_ref5, ["toggleSort", "className", "children"]);
|
|
15952
15952
|
return React.createElement(
|
|
15953
15953
|
"div",
|
|
15954
|
-
_extends$
|
|
15954
|
+
_extends$g({ className: classNames("rt-td", className), role: "gridcell" }, rest),
|
|
15955
15955
|
children
|
|
15956
15956
|
);
|
|
15957
15957
|
}, "TdComponent"),
|
|
@@ -16019,7 +16019,7 @@ const defaultProps$1 = {
|
|
|
16019
16019
|
var className = _ref10.className, loading = _ref10.loading, loadingText = _ref10.loadingText, rest = _objectWithoutProperties$2(_ref10, ["className", "loading", "loadingText"]);
|
|
16020
16020
|
return React.createElement(
|
|
16021
16021
|
"div",
|
|
16022
|
-
_extends$
|
|
16022
|
+
_extends$g({ className: classNames("-loading", { "-active": loading }, className) }, rest),
|
|
16023
16023
|
React.createElement(
|
|
16024
16024
|
"div",
|
|
16025
16025
|
{ className: "-loading-inner" },
|
|
@@ -16223,7 +16223,7 @@ var _slicedToArray$2 = /* @__PURE__ */ function() {
|
|
|
16223
16223
|
}
|
|
16224
16224
|
};
|
|
16225
16225
|
}();
|
|
16226
|
-
var _extends$
|
|
16226
|
+
var _extends$f = Object.assign || function(target) {
|
|
16227
16227
|
for (var i = 1; i < arguments.length; i++) {
|
|
16228
16228
|
var source = arguments[i];
|
|
16229
16229
|
for (var key in source) {
|
|
@@ -16333,7 +16333,7 @@ var ReactTable = function(_Methods) {
|
|
|
16333
16333
|
var index2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : -1;
|
|
16334
16334
|
return [rows.map(function(row, i) {
|
|
16335
16335
|
index2 += 1;
|
|
16336
|
-
var rowWithViewIndex = _extends$
|
|
16336
|
+
var rowWithViewIndex = _extends$f({}, row, {
|
|
16337
16337
|
_viewIndex: index2
|
|
16338
16338
|
});
|
|
16339
16339
|
var newPath = path2.concat([i]);
|
|
@@ -16358,7 +16358,7 @@ var ReactTable = function(_Methods) {
|
|
|
16358
16358
|
return _.getFirstDefined(resizedColumn.value, d2.width, d2.minWidth);
|
|
16359
16359
|
}));
|
|
16360
16360
|
var rowIndex = -1;
|
|
16361
|
-
var finalState = _extends$
|
|
16361
|
+
var finalState = _extends$f({}, resolvedState, {
|
|
16362
16362
|
startRow,
|
|
16363
16363
|
endRow,
|
|
16364
16364
|
pageRows,
|
|
@@ -16392,8 +16392,8 @@ var ReactTable = function(_Methods) {
|
|
|
16392
16392
|
var theadGroupThProps = _.splitProps(getTheadGroupThProps(finalState, void 0, column, _this2));
|
|
16393
16393
|
var columnHeaderProps = _.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
|
|
16394
16394
|
var classes = [column.headerClassName, theadGroupThProps.className, columnHeaderProps.className];
|
|
16395
|
-
var styles2 = _extends$
|
|
16396
|
-
var rest = _extends$
|
|
16395
|
+
var styles2 = _extends$f({}, column.headerStyle, theadGroupThProps.style, columnHeaderProps.style);
|
|
16396
|
+
var rest = _extends$f({}, theadGroupThProps.rest, columnHeaderProps.rest);
|
|
16397
16397
|
var flexStyles = {
|
|
16398
16398
|
flex: flex + " 0 auto",
|
|
16399
16399
|
width: _.asPx(width),
|
|
@@ -16401,10 +16401,10 @@ var ReactTable = function(_Methods) {
|
|
|
16401
16401
|
};
|
|
16402
16402
|
return React.createElement(
|
|
16403
16403
|
ThComponent3,
|
|
16404
|
-
_extends$
|
|
16404
|
+
_extends$f({
|
|
16405
16405
|
key: i + "-" + column.id,
|
|
16406
16406
|
className: classNames(classes),
|
|
16407
|
-
style: _extends$
|
|
16407
|
+
style: _extends$f({}, styles2, flexStyles)
|
|
16408
16408
|
}, rest),
|
|
16409
16409
|
_.normalizeComponent(column.Header, {
|
|
16410
16410
|
data: sortedData,
|
|
@@ -16417,15 +16417,15 @@ var ReactTable = function(_Methods) {
|
|
|
16417
16417
|
var theadGroupTrProps = _.splitProps(getTheadGroupTrProps(finalState, void 0, void 0, _this2));
|
|
16418
16418
|
return React.createElement(
|
|
16419
16419
|
TheadComponent,
|
|
16420
|
-
_extends$
|
|
16420
|
+
_extends$f({
|
|
16421
16421
|
className: classNames("-headerGroups", theadGroupProps.className),
|
|
16422
|
-
style: _extends$
|
|
16422
|
+
style: _extends$f({}, theadGroupProps.style, {
|
|
16423
16423
|
minWidth: rowMinWidth + "px"
|
|
16424
16424
|
})
|
|
16425
16425
|
}, theadGroupProps.rest),
|
|
16426
16426
|
React.createElement(
|
|
16427
16427
|
TrComponent2,
|
|
16428
|
-
_extends$
|
|
16428
|
+
_extends$f({
|
|
16429
16429
|
className: theadGroupTrProps.className,
|
|
16430
16430
|
style: theadGroupTrProps.style
|
|
16431
16431
|
}, theadGroupTrProps.rest),
|
|
@@ -16446,10 +16446,10 @@ var ReactTable = function(_Methods) {
|
|
|
16446
16446
|
var theadThProps = _.splitProps(getTheadThProps(finalState, void 0, column, _this2));
|
|
16447
16447
|
var columnHeaderProps = _.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
|
|
16448
16448
|
var classes = [column.headerClassName, theadThProps.className, columnHeaderProps.className];
|
|
16449
|
-
var styles2 = _extends$
|
|
16450
|
-
var rest = _extends$
|
|
16449
|
+
var styles2 = _extends$f({}, column.headerStyle, theadThProps.style, columnHeaderProps.style);
|
|
16450
|
+
var rest = _extends$f({}, theadThProps.rest, columnHeaderProps.rest);
|
|
16451
16451
|
var isResizable = _.getFirstDefined(column.resizable, resizable, false);
|
|
16452
|
-
var resizer = isResizable ? React.createElement(ResizerComponent, _extends$
|
|
16452
|
+
var resizer = isResizable ? React.createElement(ResizerComponent, _extends$f({
|
|
16453
16453
|
onMouseDown: /* @__PURE__ */ __name(function onMouseDown(e) {
|
|
16454
16454
|
return _this2.resizeColumnStart(e, column, false);
|
|
16455
16455
|
}, "onMouseDown"),
|
|
@@ -16460,10 +16460,10 @@ var ReactTable = function(_Methods) {
|
|
|
16460
16460
|
var isSortable = _.getFirstDefined(column.sortable, sortable, false);
|
|
16461
16461
|
return React.createElement(
|
|
16462
16462
|
ThComponent3,
|
|
16463
|
-
_extends$
|
|
16463
|
+
_extends$f({
|
|
16464
16464
|
key: i + "-" + column.id,
|
|
16465
16465
|
className: classNames(classes, isResizable && "rt-resizable-header", sort2 ? sort2.desc ? "-sort-desc" : "-sort-asc" : "", isSortable && "-cursor-pointer", !show && "-hidden", pivotBy && pivotBy.slice(0, -1).includes(column.id) && "rt-header-pivot"),
|
|
16466
|
-
style: _extends$
|
|
16466
|
+
style: _extends$f({}, styles2, {
|
|
16467
16467
|
flex: width + " 0 auto",
|
|
16468
16468
|
width: _.asPx(width),
|
|
16469
16469
|
maxWidth: _.asPx(maxWidth)
|
|
@@ -16488,15 +16488,15 @@ var ReactTable = function(_Methods) {
|
|
|
16488
16488
|
var theadTrProps = _.splitProps(getTheadTrProps(finalState, void 0, void 0, _this2));
|
|
16489
16489
|
return React.createElement(
|
|
16490
16490
|
TheadComponent,
|
|
16491
|
-
_extends$
|
|
16491
|
+
_extends$f({
|
|
16492
16492
|
className: classNames("-header", theadProps.className),
|
|
16493
|
-
style: _extends$
|
|
16493
|
+
style: _extends$f({}, theadProps.style, {
|
|
16494
16494
|
minWidth: rowMinWidth + "px"
|
|
16495
16495
|
})
|
|
16496
16496
|
}, theadProps.rest),
|
|
16497
16497
|
React.createElement(
|
|
16498
16498
|
TrComponent2,
|
|
16499
|
-
_extends$
|
|
16499
|
+
_extends$f({
|
|
16500
16500
|
className: theadTrProps.className,
|
|
16501
16501
|
style: theadTrProps.style
|
|
16502
16502
|
}, theadTrProps.rest),
|
|
@@ -16513,8 +16513,8 @@ var ReactTable = function(_Methods) {
|
|
|
16513
16513
|
var theadFilterThProps = _.splitProps(getTheadFilterThProps(finalState, void 0, column, _this2));
|
|
16514
16514
|
var columnHeaderProps = _.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
|
|
16515
16515
|
var classes = [column.headerClassName, theadFilterThProps.className, columnHeaderProps.className];
|
|
16516
|
-
var styles2 = _extends$
|
|
16517
|
-
var rest = _extends$
|
|
16516
|
+
var styles2 = _extends$f({}, column.headerStyle, theadFilterThProps.style, columnHeaderProps.style);
|
|
16517
|
+
var rest = _extends$f({}, theadFilterThProps.rest, columnHeaderProps.rest);
|
|
16518
16518
|
var filter2 = filtered.find(function(filter3) {
|
|
16519
16519
|
return filter3.id === column.id;
|
|
16520
16520
|
});
|
|
@@ -16522,10 +16522,10 @@ var ReactTable = function(_Methods) {
|
|
|
16522
16522
|
var isFilterable = _.getFirstDefined(column.filterable, filterable, false);
|
|
16523
16523
|
return React.createElement(
|
|
16524
16524
|
ThComponent3,
|
|
16525
|
-
_extends$
|
|
16525
|
+
_extends$f({
|
|
16526
16526
|
key: i + "-" + column.id,
|
|
16527
16527
|
className: classNames(classes),
|
|
16528
|
-
style: _extends$
|
|
16528
|
+
style: _extends$f({}, styles2, {
|
|
16529
16529
|
flex: width + " 0 auto",
|
|
16530
16530
|
width: _.asPx(width),
|
|
16531
16531
|
maxWidth: _.asPx(maxWidth)
|
|
@@ -16545,15 +16545,15 @@ var ReactTable = function(_Methods) {
|
|
|
16545
16545
|
var theadFilterTrProps = _.splitProps(getTheadFilterTrProps(finalState, void 0, void 0, _this2));
|
|
16546
16546
|
return React.createElement(
|
|
16547
16547
|
TheadComponent,
|
|
16548
|
-
_extends$
|
|
16548
|
+
_extends$f({
|
|
16549
16549
|
className: classNames("-filters", theadFilterProps.className),
|
|
16550
|
-
style: _extends$
|
|
16550
|
+
style: _extends$f({}, theadFilterProps.style, {
|
|
16551
16551
|
minWidth: rowMinWidth + "px"
|
|
16552
16552
|
})
|
|
16553
16553
|
}, theadFilterProps.rest),
|
|
16554
16554
|
React.createElement(
|
|
16555
16555
|
TrComponent2,
|
|
16556
|
-
_extends$
|
|
16556
|
+
_extends$f({
|
|
16557
16557
|
className: theadFilterTrProps.className,
|
|
16558
16558
|
style: theadFilterTrProps.style
|
|
16559
16559
|
}, theadFilterTrProps.rest),
|
|
@@ -16581,10 +16581,10 @@ var ReactTable = function(_Methods) {
|
|
|
16581
16581
|
var trProps = _.splitProps(getTrProps(finalState, rowInfo, void 0, _this2));
|
|
16582
16582
|
return React.createElement(
|
|
16583
16583
|
TrGroupComponent2,
|
|
16584
|
-
_extends$
|
|
16584
|
+
_extends$f({ key: rowInfo.nestingPath.join("_") }, trGroupProps),
|
|
16585
16585
|
React.createElement(
|
|
16586
16586
|
TrComponent2,
|
|
16587
|
-
_extends$
|
|
16587
|
+
_extends$f({
|
|
16588
16588
|
className: classNames(trProps.className, row._viewIndex % 2 ? "-even" : "-odd"),
|
|
16589
16589
|
style: trProps.style
|
|
16590
16590
|
}, trProps.rest),
|
|
@@ -16598,10 +16598,10 @@ var ReactTable = function(_Methods) {
|
|
|
16598
16598
|
var tdProps = _.splitProps(getTdProps(finalState, rowInfo, column, _this2));
|
|
16599
16599
|
var columnProps = _.splitProps(column.getProps(finalState, rowInfo, column, _this2));
|
|
16600
16600
|
var classes = [tdProps.className, column.className, columnProps.className];
|
|
16601
|
-
var styles2 = _extends$
|
|
16602
|
-
var cellInfo = _extends$
|
|
16601
|
+
var styles2 = _extends$f({}, tdProps.style, column.style, columnProps.style);
|
|
16602
|
+
var cellInfo = _extends$f({}, rowInfo, {
|
|
16603
16603
|
isExpanded,
|
|
16604
|
-
column: _extends$
|
|
16604
|
+
column: _extends$f({}, column),
|
|
16605
16605
|
value: rowInfo.row[column.id],
|
|
16606
16606
|
pivoted: column.pivoted,
|
|
16607
16607
|
expander: column.expander,
|
|
@@ -16655,7 +16655,7 @@ var ReactTable = function(_Methods) {
|
|
|
16655
16655
|
isBranch = rowInfo.row[pivotIDKey] === column.id && cellInfo.subRows;
|
|
16656
16656
|
isPreview = pivotBy.indexOf(column.id) > pivotBy.indexOf(rowInfo.row[pivotIDKey]) && cellInfo.subRows;
|
|
16657
16657
|
if (isBranch) {
|
|
16658
|
-
resolvedCell = _.normalizeComponent(ResolvedPivotComponent, _extends$
|
|
16658
|
+
resolvedCell = _.normalizeComponent(ResolvedPivotComponent, _extends$f({}, cellInfo, {
|
|
16659
16659
|
value: row[pivotValKey]
|
|
16660
16660
|
}), row[pivotValKey]);
|
|
16661
16661
|
} else if (isPreview) {
|
|
@@ -16698,10 +16698,10 @@ var ReactTable = function(_Methods) {
|
|
|
16698
16698
|
}
|
|
16699
16699
|
return React.createElement(
|
|
16700
16700
|
TdComponent2,
|
|
16701
|
-
_extends$
|
|
16701
|
+
_extends$f({
|
|
16702
16702
|
key: i2 + "-" + column.id,
|
|
16703
16703
|
className: classNames(classes, !cellInfo.expandable && !show && "hidden", cellInfo.expandable && "rt-expandable", (isBranch || isPreview) && "rt-pivot"),
|
|
16704
|
-
style: _extends$
|
|
16704
|
+
style: _extends$f({}, styles2, {
|
|
16705
16705
|
flex: width + " 0 auto",
|
|
16706
16706
|
width: _.asPx(width),
|
|
16707
16707
|
maxWidth: _.asPx(maxWidth)
|
|
@@ -16731,13 +16731,13 @@ var ReactTable = function(_Methods) {
|
|
|
16731
16731
|
var tdProps = _.splitProps(getTdProps(finalState, void 0, column, _this2));
|
|
16732
16732
|
var columnProps = _.splitProps(column.getProps(finalState, void 0, column, _this2));
|
|
16733
16733
|
var classes = [tdProps.className, column.className, columnProps.className];
|
|
16734
|
-
var styles2 = _extends$
|
|
16734
|
+
var styles2 = _extends$f({}, tdProps.style, column.style, columnProps.style);
|
|
16735
16735
|
return React.createElement(
|
|
16736
16736
|
TdComponent2,
|
|
16737
|
-
_extends$
|
|
16737
|
+
_extends$f({
|
|
16738
16738
|
key: i + "-" + column.id,
|
|
16739
16739
|
className: classNames(classes, !show && "hidden"),
|
|
16740
|
-
style: _extends$
|
|
16740
|
+
style: _extends$f({}, styles2, {
|
|
16741
16741
|
flex: flex + " 0 auto",
|
|
16742
16742
|
width: _.asPx(width),
|
|
16743
16743
|
maxWidth: _.asPx(maxWidth)
|
|
@@ -16751,7 +16751,7 @@ var ReactTable = function(_Methods) {
|
|
|
16751
16751
|
var trProps = _.splitProps(getTrProps(finalState, void 0, void 0, _this2));
|
|
16752
16752
|
return React.createElement(
|
|
16753
16753
|
TrGroupComponent2,
|
|
16754
|
-
_extends$
|
|
16754
|
+
_extends$f({ key: "pad-" + i }, trGroupProps),
|
|
16755
16755
|
React.createElement(
|
|
16756
16756
|
TrComponent2,
|
|
16757
16757
|
{
|
|
@@ -16773,13 +16773,13 @@ var ReactTable = function(_Methods) {
|
|
|
16773
16773
|
var columnProps = _.splitProps(column.getProps(finalState, void 0, column, _this2));
|
|
16774
16774
|
var columnFooterProps = _.splitProps(column.getFooterProps(finalState, void 0, column, _this2));
|
|
16775
16775
|
var classes = [tFootTdProps.className, column.className, columnProps.className, columnFooterProps.className];
|
|
16776
|
-
var styles2 = _extends$
|
|
16776
|
+
var styles2 = _extends$f({}, tFootTdProps.style, column.style, columnProps.style, columnFooterProps.style);
|
|
16777
16777
|
return React.createElement(
|
|
16778
16778
|
TdComponent2,
|
|
16779
|
-
_extends$
|
|
16779
|
+
_extends$f({
|
|
16780
16780
|
key: i + "-" + column.id,
|
|
16781
16781
|
className: classNames(classes, !show && "hidden"),
|
|
16782
|
-
style: _extends$
|
|
16782
|
+
style: _extends$f({}, styles2, {
|
|
16783
16783
|
flex: width + " 0 auto",
|
|
16784
16784
|
width: _.asPx(width),
|
|
16785
16785
|
maxWidth: _.asPx(maxWidth)
|
|
@@ -16796,15 +16796,15 @@ var ReactTable = function(_Methods) {
|
|
|
16796
16796
|
var tFootTrProps = _.splitProps(getTfootTrProps(finalState, void 0, void 0, _this2));
|
|
16797
16797
|
return React.createElement(
|
|
16798
16798
|
TfootComponent,
|
|
16799
|
-
_extends$
|
|
16799
|
+
_extends$f({
|
|
16800
16800
|
className: tFootProps.className,
|
|
16801
|
-
style: _extends$
|
|
16801
|
+
style: _extends$f({}, tFootProps.style, {
|
|
16802
16802
|
minWidth: rowMinWidth + "px"
|
|
16803
16803
|
})
|
|
16804
16804
|
}, tFootProps.rest),
|
|
16805
16805
|
React.createElement(
|
|
16806
16806
|
TrComponent2,
|
|
16807
|
-
_extends$
|
|
16807
|
+
_extends$f({
|
|
16808
16808
|
className: classNames(tFootTrProps.className),
|
|
16809
16809
|
style: tFootTrProps.style
|
|
16810
16810
|
}, tFootTrProps.rest),
|
|
@@ -16814,7 +16814,7 @@ var ReactTable = function(_Methods) {
|
|
|
16814
16814
|
}, "makeColumnFooters");
|
|
16815
16815
|
var makePagination = /* @__PURE__ */ __name(function makePagination2(isTop) {
|
|
16816
16816
|
var paginationProps = _.splitProps(getPaginationProps(finalState, void 0, void 0, _this2));
|
|
16817
|
-
return React.createElement(PaginationComponent, _extends$
|
|
16817
|
+
return React.createElement(PaginationComponent, _extends$f({}, resolvedState, {
|
|
16818
16818
|
pages,
|
|
16819
16819
|
canPrevious,
|
|
16820
16820
|
canNext,
|
|
@@ -16828,9 +16828,9 @@ var ReactTable = function(_Methods) {
|
|
|
16828
16828
|
var makeTable = /* @__PURE__ */ __name(function makeTable2() {
|
|
16829
16829
|
return React.createElement(
|
|
16830
16830
|
"div",
|
|
16831
|
-
_extends$
|
|
16831
|
+
_extends$f({
|
|
16832
16832
|
className: classNames("ReactTable", className, rootProps.className),
|
|
16833
|
-
style: _extends$
|
|
16833
|
+
style: _extends$f({}, style2, rootProps.style)
|
|
16834
16834
|
}, rootProps.rest, {
|
|
16835
16835
|
ref: /* @__PURE__ */ __name(function ref2(r2) {
|
|
16836
16836
|
if (!r2) return;
|
|
@@ -16847,7 +16847,7 @@ var ReactTable = function(_Methods) {
|
|
|
16847
16847
|
) : null,
|
|
16848
16848
|
React.createElement(
|
|
16849
16849
|
TableComponent2,
|
|
16850
|
-
_extends$
|
|
16850
|
+
_extends$f({
|
|
16851
16851
|
className: classNames(tableProps.className, currentlyResizing ? "rt-resizing" : ""),
|
|
16852
16852
|
style: tableProps.style
|
|
16853
16853
|
}, tableProps.rest),
|
|
@@ -16856,9 +16856,9 @@ var ReactTable = function(_Methods) {
|
|
|
16856
16856
|
hasFilters ? makeFilters() : null,
|
|
16857
16857
|
React.createElement(
|
|
16858
16858
|
TbodyComponent,
|
|
16859
|
-
_extends$
|
|
16859
|
+
_extends$f({
|
|
16860
16860
|
className: classNames(tBodyProps.className),
|
|
16861
|
-
style: _extends$
|
|
16861
|
+
style: _extends$f({}, tBodyProps.style, {
|
|
16862
16862
|
minWidth: rowMinWidth + "px"
|
|
16863
16863
|
})
|
|
16864
16864
|
}, tBodyProps.rest),
|
|
@@ -16887,7 +16887,7 @@ var ReactTable = function(_Methods) {
|
|
|
16887
16887
|
noDataProps,
|
|
16888
16888
|
_.normalizeComponent(noDataText)
|
|
16889
16889
|
),
|
|
16890
|
-
React.createElement(LoadingComponent3, _extends$
|
|
16890
|
+
React.createElement(LoadingComponent3, _extends$f({ loading, loadingText }, loadingProps))
|
|
16891
16891
|
);
|
|
16892
16892
|
}, "makeTable");
|
|
16893
16893
|
return children ? children(finalState, makeTable, this) : makeTable();
|
|
@@ -20258,6 +20258,23 @@ function applyWhereClause(records, where) {
|
|
|
20258
20258
|
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
20259
20259
|
return false;
|
|
20260
20260
|
break;
|
|
20261
|
+
case "_in":
|
|
20262
|
+
if (!some(conditionValue, (item) => isEqual$3(value, item)))
|
|
20263
|
+
return false;
|
|
20264
|
+
break;
|
|
20265
|
+
case "_nin":
|
|
20266
|
+
if (some(conditionValue, (item) => isEqual$3(value, item)))
|
|
20267
|
+
return false;
|
|
20268
|
+
break;
|
|
20269
|
+
case "_regex": {
|
|
20270
|
+
try {
|
|
20271
|
+
if (!isString$1(value) || !new RegExp(conditionValue).test(value))
|
|
20272
|
+
return false;
|
|
20273
|
+
} catch (e) {
|
|
20274
|
+
return false;
|
|
20275
|
+
}
|
|
20276
|
+
break;
|
|
20277
|
+
}
|
|
20261
20278
|
default:
|
|
20262
20279
|
if (operator.startsWith("_")) {
|
|
20263
20280
|
console.warn(`Unsupported operator: ${operator}`);
|
|
@@ -24384,7 +24401,7 @@ var get$2 = /* @__PURE__ */ __name(function get(c1, c2, size, serverCanvas) {
|
|
|
24384
24401
|
checkboardCache[key] = checkboard;
|
|
24385
24402
|
return checkboard;
|
|
24386
24403
|
}, "get");
|
|
24387
|
-
var _extends$
|
|
24404
|
+
var _extends$e = Object.assign || function(target) {
|
|
24388
24405
|
for (var i = 1; i < arguments.length; i++) {
|
|
24389
24406
|
var source = arguments[i];
|
|
24390
24407
|
for (var key in source) {
|
|
@@ -24407,7 +24424,7 @@ var Checkboard = /* @__PURE__ */ __name(function Checkboard2(_ref) {
|
|
|
24407
24424
|
}
|
|
24408
24425
|
}
|
|
24409
24426
|
});
|
|
24410
|
-
return React.isValidElement(children) ? React.cloneElement(children, _extends$
|
|
24427
|
+
return React.isValidElement(children) ? React.cloneElement(children, _extends$e({}, children.props, { style: _extends$e({}, children.props.style, styles2.grid) })) : React.createElement("div", { style: styles2.grid });
|
|
24411
24428
|
}, "Checkboard");
|
|
24412
24429
|
Checkboard.defaultProps = {
|
|
24413
24430
|
size: 8,
|
|
@@ -24415,7 +24432,7 @@ Checkboard.defaultProps = {
|
|
|
24415
24432
|
grey: "rgba(0,0,0,.08)",
|
|
24416
24433
|
renderers: {}
|
|
24417
24434
|
};
|
|
24418
|
-
var _extends$
|
|
24435
|
+
var _extends$d = Object.assign || function(target) {
|
|
24419
24436
|
for (var i = 1; i < arguments.length; i++) {
|
|
24420
24437
|
var source = arguments[i];
|
|
24421
24438
|
for (var key in source) {
|
|
@@ -24543,7 +24560,7 @@ var Alpha = function(_ref) {
|
|
|
24543
24560
|
top: rgb.a * 100 + "%"
|
|
24544
24561
|
}
|
|
24545
24562
|
},
|
|
24546
|
-
"overwrite": _extends$
|
|
24563
|
+
"overwrite": _extends$d({}, this.props.style)
|
|
24547
24564
|
}, {
|
|
24548
24565
|
vertical: this.props.direction === "vertical",
|
|
24549
24566
|
overwrite: true
|
|
@@ -26293,7 +26310,7 @@ var isvalidColorString = /* @__PURE__ */ __name(function isvalidColorString2(str
|
|
|
26293
26310
|
var stringWithoutDegree = string2.replace("°", "");
|
|
26294
26311
|
return tinycolor(type2 + " (" + stringWithoutDegree + ")")._ok;
|
|
26295
26312
|
}, "isvalidColorString");
|
|
26296
|
-
var _extends$
|
|
26313
|
+
var _extends$c = Object.assign || function(target) {
|
|
26297
26314
|
for (var i = 1; i < arguments.length; i++) {
|
|
26298
26315
|
var source = arguments[i];
|
|
26299
26316
|
for (var key in source) {
|
|
@@ -26364,7 +26381,7 @@ var ColorWrap = /* @__PURE__ */ __name(function ColorWrap2(Picker) {
|
|
|
26364
26381
|
_this.props.onSwatchHover && _this.props.onSwatchHover(colors, event);
|
|
26365
26382
|
}
|
|
26366
26383
|
};
|
|
26367
|
-
_this.state = _extends$
|
|
26384
|
+
_this.state = _extends$c({}, toState(props.color, 0));
|
|
26368
26385
|
_this.debounce = debounce$1(function(fn4, data, event) {
|
|
26369
26386
|
fn4(data, event);
|
|
26370
26387
|
}, 100);
|
|
@@ -26378,20 +26395,20 @@ var ColorWrap = /* @__PURE__ */ __name(function ColorWrap2(Picker) {
|
|
|
26378
26395
|
if (this.props.onSwatchHover) {
|
|
26379
26396
|
optionalEvents.onSwatchHover = this.handleSwatchHover;
|
|
26380
26397
|
}
|
|
26381
|
-
return React.createElement(Picker, _extends$
|
|
26398
|
+
return React.createElement(Picker, _extends$c({}, this.props, this.state, {
|
|
26382
26399
|
onChange: this.handleChange
|
|
26383
26400
|
}, optionalEvents));
|
|
26384
26401
|
}, "render")
|
|
26385
26402
|
}], [{
|
|
26386
26403
|
key: "getDerivedStateFromProps",
|
|
26387
26404
|
value: /* @__PURE__ */ __name(function getDerivedStateFromProps(nextProps, state2) {
|
|
26388
|
-
return _extends$
|
|
26405
|
+
return _extends$c({}, toState(nextProps.color, state2.oldHue));
|
|
26389
26406
|
}, "getDerivedStateFromProps")
|
|
26390
26407
|
}]);
|
|
26391
26408
|
return ColorPicker2;
|
|
26392
26409
|
}(React.PureComponent || React.Component);
|
|
26393
|
-
ColorPicker.propTypes = _extends$
|
|
26394
|
-
ColorPicker.defaultProps = _extends$
|
|
26410
|
+
ColorPicker.propTypes = _extends$c({}, Picker.propTypes);
|
|
26411
|
+
ColorPicker.defaultProps = _extends$c({}, Picker.defaultProps, {
|
|
26395
26412
|
color: {
|
|
26396
26413
|
h: 250,
|
|
26397
26414
|
s: 0.5,
|
|
@@ -26401,7 +26418,7 @@ var ColorWrap = /* @__PURE__ */ __name(function ColorWrap2(Picker) {
|
|
|
26401
26418
|
});
|
|
26402
26419
|
return ColorPicker;
|
|
26403
26420
|
}, "ColorWrap");
|
|
26404
|
-
var _extends$
|
|
26421
|
+
var _extends$b = Object.assign || function(target) {
|
|
26405
26422
|
for (var i = 1; i < arguments.length; i++) {
|
|
26406
26423
|
var source = arguments[i];
|
|
26407
26424
|
for (var key in source) {
|
|
@@ -26474,14 +26491,14 @@ var handleFocus = /* @__PURE__ */ __name(function handleFocus2(Component) {
|
|
|
26474
26491
|
return React.createElement(
|
|
26475
26492
|
Span,
|
|
26476
26493
|
{ onFocus: this.handleFocus, onBlur: this.handleBlur },
|
|
26477
|
-
React.createElement(Component, _extends$
|
|
26494
|
+
React.createElement(Component, _extends$b({}, this.props, this.state))
|
|
26478
26495
|
);
|
|
26479
26496
|
}, "render")
|
|
26480
26497
|
}]);
|
|
26481
26498
|
return Focus;
|
|
26482
26499
|
}(React.Component);
|
|
26483
26500
|
}, "handleFocus");
|
|
26484
|
-
var _extends$
|
|
26501
|
+
var _extends$a = Object.assign || function(target) {
|
|
26485
26502
|
for (var i = 1; i < arguments.length; i++) {
|
|
26486
26503
|
var source = arguments[i];
|
|
26487
26504
|
for (var key in source) {
|
|
@@ -26499,7 +26516,7 @@ var Swatch = /* @__PURE__ */ __name(function Swatch2(_ref) {
|
|
|
26499
26516
|
var transparent = color2 === "transparent";
|
|
26500
26517
|
var styles2 = reactCSS({
|
|
26501
26518
|
default: {
|
|
26502
|
-
swatch: _extends$
|
|
26519
|
+
swatch: _extends$a({
|
|
26503
26520
|
background: color2,
|
|
26504
26521
|
height: "100%",
|
|
26505
26522
|
width: "100%",
|
|
@@ -26524,7 +26541,7 @@ var Swatch = /* @__PURE__ */ __name(function Swatch2(_ref) {
|
|
|
26524
26541
|
}
|
|
26525
26542
|
return React.createElement(
|
|
26526
26543
|
"div",
|
|
26527
|
-
_extends$
|
|
26544
|
+
_extends$a({
|
|
26528
26545
|
style: styles2.swatch,
|
|
26529
26546
|
onClick: handleClick,
|
|
26530
26547
|
title,
|
|
@@ -26560,7 +26577,7 @@ var AlphaPointer = /* @__PURE__ */ __name(function AlphaPointer2(_ref) {
|
|
|
26560
26577
|
}, { vertical: direction === "vertical" });
|
|
26561
26578
|
return React.createElement("div", { style: styles2.picker });
|
|
26562
26579
|
}, "AlphaPointer");
|
|
26563
|
-
var _extends$
|
|
26580
|
+
var _extends$9 = Object.assign || function(target) {
|
|
26564
26581
|
for (var i = 1; i < arguments.length; i++) {
|
|
26565
26582
|
var source = arguments[i];
|
|
26566
26583
|
for (var key in source) {
|
|
@@ -26589,7 +26606,7 @@ var AlphaPicker = /* @__PURE__ */ __name(function AlphaPicker2(_ref) {
|
|
|
26589
26606
|
return React.createElement(
|
|
26590
26607
|
"div",
|
|
26591
26608
|
{ style: styles2.picker, className: "alpha-picker " + className },
|
|
26592
|
-
React.createElement(Alpha, _extends$
|
|
26609
|
+
React.createElement(Alpha, _extends$9({}, styles2.alpha, {
|
|
26593
26610
|
rgb,
|
|
26594
26611
|
hsl,
|
|
26595
26612
|
pointer,
|
|
@@ -27835,7 +27852,7 @@ var SliderPointer$1 = /* @__PURE__ */ __name(function SliderPointer(_ref) {
|
|
|
27835
27852
|
}, { vertical: direction === "vertical" });
|
|
27836
27853
|
return React.createElement("div", { style: styles2.picker });
|
|
27837
27854
|
}, "SliderPointer");
|
|
27838
|
-
var _extends$
|
|
27855
|
+
var _extends$8 = Object.assign || function(target) {
|
|
27839
27856
|
for (var i = 1; i < arguments.length; i++) {
|
|
27840
27857
|
var source = arguments[i];
|
|
27841
27858
|
for (var key in source) {
|
|
@@ -27866,7 +27883,7 @@ var HuePicker = /* @__PURE__ */ __name(function HuePicker2(_ref) {
|
|
|
27866
27883
|
return React.createElement(
|
|
27867
27884
|
"div",
|
|
27868
27885
|
{ style: styles2.picker, className: "hue-picker " + className },
|
|
27869
|
-
React.createElement(Hue, _extends$
|
|
27886
|
+
React.createElement(Hue, _extends$8({}, styles2.hue, {
|
|
27870
27887
|
hsl,
|
|
27871
27888
|
pointer,
|
|
27872
27889
|
onChange: handleChange,
|
|
@@ -28650,7 +28667,7 @@ var SketchFields = /* @__PURE__ */ __name(function SketchFields2(_ref) {
|
|
|
28650
28667
|
)
|
|
28651
28668
|
);
|
|
28652
28669
|
}, "SketchFields");
|
|
28653
|
-
var _extends$
|
|
28670
|
+
var _extends$7 = Object.assign || function(target) {
|
|
28654
28671
|
for (var i = 1; i < arguments.length; i++) {
|
|
28655
28672
|
var source = arguments[i];
|
|
28656
28673
|
for (var key in source) {
|
|
@@ -28707,7 +28724,7 @@ var SketchPresetColors = /* @__PURE__ */ __name(function SketchPresetColors2(_re
|
|
|
28707
28724
|
return React.createElement(
|
|
28708
28725
|
"div",
|
|
28709
28726
|
{ key, style: styles2.swatchWrap },
|
|
28710
|
-
React.createElement(Swatch$1, _extends$
|
|
28727
|
+
React.createElement(Swatch$1, _extends$7({}, c2, {
|
|
28711
28728
|
style: styles2.swatch,
|
|
28712
28729
|
onClick: handleClick,
|
|
28713
28730
|
onHover: onSwatchHover,
|
|
@@ -28725,7 +28742,7 @@ SketchPresetColors.propTypes = {
|
|
|
28725
28742
|
title: PropTypes.string
|
|
28726
28743
|
})])).isRequired
|
|
28727
28744
|
};
|
|
28728
|
-
var _extends$
|
|
28745
|
+
var _extends$6 = Object.assign || function(target) {
|
|
28729
28746
|
for (var i = 1; i < arguments.length; i++) {
|
|
28730
28747
|
var source = arguments[i];
|
|
28731
28748
|
for (var key in source) {
|
|
@@ -28739,7 +28756,7 @@ var _extends$5 = Object.assign || function(target) {
|
|
|
28739
28756
|
var Sketch = /* @__PURE__ */ __name(function Sketch2(_ref) {
|
|
28740
28757
|
var width = _ref.width, rgb = _ref.rgb, hex = _ref.hex, hsv = _ref.hsv, hsl = _ref.hsl, onChange = _ref.onChange, onSwatchHover = _ref.onSwatchHover, disableAlpha = _ref.disableAlpha, presetColors = _ref.presetColors, renderers = _ref.renderers, _ref$styles = _ref.styles, passedStyles = _ref$styles === void 0 ? {} : _ref$styles, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className;
|
|
28741
28758
|
var styles2 = reactCSS(merge$1({
|
|
28742
|
-
"default": _extends$
|
|
28759
|
+
"default": _extends$6({
|
|
28743
28760
|
picker: {
|
|
28744
28761
|
width,
|
|
28745
28762
|
padding: "10px 10px 0",
|
|
@@ -35034,7 +35051,7 @@ function createLocation(path2, state2, key, currentLocation) {
|
|
|
35034
35051
|
location2 = parsePath(path2);
|
|
35035
35052
|
location2.state = state2;
|
|
35036
35053
|
} else {
|
|
35037
|
-
location2 = _extends$
|
|
35054
|
+
location2 = _extends$k({}, path2);
|
|
35038
35055
|
if (location2.pathname === void 0) location2.pathname = "";
|
|
35039
35056
|
if (location2.search) {
|
|
35040
35057
|
if (location2.search.charAt(0) !== "?") location2.search = "?" + location2.search;
|
|
@@ -35188,7 +35205,7 @@ function createBrowserHistory(props) {
|
|
|
35188
35205
|
__name(createKey2, "createKey");
|
|
35189
35206
|
var transitionManager = createTransitionManager();
|
|
35190
35207
|
function setState(nextState) {
|
|
35191
|
-
_extends$
|
|
35208
|
+
_extends$k(history, nextState);
|
|
35192
35209
|
history.length = globalHistory.length;
|
|
35193
35210
|
transitionManager.notifyListeners(history.location, history.action);
|
|
35194
35211
|
}
|
|
@@ -35423,7 +35440,7 @@ function createHashHistory(props) {
|
|
|
35423
35440
|
__name(getDOMLocation, "getDOMLocation");
|
|
35424
35441
|
var transitionManager = createTransitionManager();
|
|
35425
35442
|
function setState(nextState) {
|
|
35426
|
-
_extends$
|
|
35443
|
+
_extends$k(history, nextState);
|
|
35427
35444
|
history.length = globalHistory.length;
|
|
35428
35445
|
transitionManager.notifyListeners(history.location, history.action);
|
|
35429
35446
|
}
|
|
@@ -35618,7 +35635,7 @@ function createMemoryHistory(props) {
|
|
|
35618
35635
|
var _props = props, getUserConfirmation = _props.getUserConfirmation, _props$initialEntries = _props.initialEntries, initialEntries = _props$initialEntries === void 0 ? ["/"] : _props$initialEntries, _props$initialIndex = _props.initialIndex, initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex, _props$keyLength = _props.keyLength, keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
|
|
35619
35636
|
var transitionManager = createTransitionManager();
|
|
35620
35637
|
function setState(nextState) {
|
|
35621
|
-
_extends$
|
|
35638
|
+
_extends$k(history, nextState);
|
|
35622
35639
|
history.length = history.entries.length;
|
|
35623
35640
|
transitionManager.notifyListeners(history.location, history.action);
|
|
35624
35641
|
}
|
|
@@ -35727,16 +35744,16 @@ function createMemoryHistory(props) {
|
|
|
35727
35744
|
return history;
|
|
35728
35745
|
}
|
|
35729
35746
|
__name(createMemoryHistory, "createMemoryHistory");
|
|
35730
|
-
function _extends$
|
|
35731
|
-
return _extends$
|
|
35747
|
+
function _extends$5() {
|
|
35748
|
+
return _extends$5 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
35732
35749
|
for (var e = 1; e < arguments.length; e++) {
|
|
35733
35750
|
var t2 = arguments[e];
|
|
35734
35751
|
for (var r2 in t2) ({}).hasOwnProperty.call(t2, r2) && (n2[r2] = t2[r2]);
|
|
35735
35752
|
}
|
|
35736
35753
|
return n2;
|
|
35737
|
-
}, _extends$
|
|
35754
|
+
}, _extends$5.apply(null, arguments);
|
|
35738
35755
|
}
|
|
35739
|
-
__name(_extends$
|
|
35756
|
+
__name(_extends$5, "_extends$5");
|
|
35740
35757
|
var pathToRegexp$1 = { exports: {} };
|
|
35741
35758
|
var isarray;
|
|
35742
35759
|
var hasRequiredIsarray;
|
|
@@ -36595,7 +36612,7 @@ __name(isEmptyChildren, "isEmptyChildren");
|
|
|
36595
36612
|
!context$1 ? invariant$1() : void 0;
|
|
36596
36613
|
var location2 = _this.props.location || context$1.location;
|
|
36597
36614
|
var match = _this.props.computedMatch ? _this.props.computedMatch : _this.props.path ? matchPath(location2.pathname, _this.props) : context$1.match;
|
|
36598
|
-
var props = _extends$
|
|
36615
|
+
var props = _extends$5({}, context$1, {
|
|
36599
36616
|
location: location2,
|
|
36600
36617
|
match
|
|
36601
36618
|
});
|
|
@@ -36616,7 +36633,7 @@ function addLeadingSlash(path2) {
|
|
|
36616
36633
|
__name(addLeadingSlash, "addLeadingSlash");
|
|
36617
36634
|
function addBasename(basename2, location2) {
|
|
36618
36635
|
if (!basename2) return location2;
|
|
36619
|
-
return _extends$
|
|
36636
|
+
return _extends$5({}, location2, {
|
|
36620
36637
|
pathname: addLeadingSlash(basename2) + location2.pathname
|
|
36621
36638
|
});
|
|
36622
36639
|
}
|
|
@@ -36625,7 +36642,7 @@ function stripBasename(basename2, location2) {
|
|
|
36625
36642
|
if (!basename2) return location2;
|
|
36626
36643
|
var base = addLeadingSlash(basename2);
|
|
36627
36644
|
if (location2.pathname.indexOf(base) !== 0) return location2;
|
|
36628
|
-
return _extends$
|
|
36645
|
+
return _extends$5({}, location2, {
|
|
36629
36646
|
pathname: location2.pathname.substr(base.length)
|
|
36630
36647
|
});
|
|
36631
36648
|
}
|
|
@@ -36689,7 +36706,7 @@ __name(noop$6, "noop$6");
|
|
|
36689
36706
|
listen: this.handleListen,
|
|
36690
36707
|
block: this.handleBlock
|
|
36691
36708
|
};
|
|
36692
|
-
return /* @__PURE__ */ React.createElement(Router, _extends$
|
|
36709
|
+
return /* @__PURE__ */ React.createElement(Router, _extends$5({}, rest, {
|
|
36693
36710
|
history,
|
|
36694
36711
|
staticContext: context2
|
|
36695
36712
|
}));
|
|
@@ -36713,7 +36730,7 @@ __name(noop$6, "noop$6");
|
|
|
36713
36730
|
if (match == null && /* @__PURE__ */ React.isValidElement(child)) {
|
|
36714
36731
|
element2 = child;
|
|
36715
36732
|
var path2 = child.props.path || child.props.from;
|
|
36716
|
-
match = path2 ? matchPath(location2.pathname, _extends$
|
|
36733
|
+
match = path2 ? matchPath(location2.pathname, _extends$5({}, child.props, {
|
|
36717
36734
|
path: path2
|
|
36718
36735
|
})) : context2.match;
|
|
36719
36736
|
}
|
|
@@ -36732,7 +36749,7 @@ function withRouter(Component) {
|
|
|
36732
36749
|
var wrappedComponentRef = props.wrappedComponentRef, remainingProps = _objectWithoutPropertiesLoose$3(props, ["wrappedComponentRef"]);
|
|
36733
36750
|
return /* @__PURE__ */ React.createElement(context.Consumer, null, function(context2) {
|
|
36734
36751
|
!context2 ? invariant$1() : void 0;
|
|
36735
|
-
return /* @__PURE__ */ React.createElement(Component, _extends$
|
|
36752
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$5({}, remainingProps, context2, {
|
|
36736
36753
|
ref: wrappedComponentRef
|
|
36737
36754
|
}));
|
|
36738
36755
|
});
|
|
@@ -36753,16 +36770,16 @@ function _inheritsLoose$1(t2, o2) {
|
|
|
36753
36770
|
t2.prototype = Object.create(o2.prototype), t2.prototype.constructor = t2, _setPrototypeOf$1(t2, o2);
|
|
36754
36771
|
}
|
|
36755
36772
|
__name(_inheritsLoose$1, "_inheritsLoose$1");
|
|
36756
|
-
function _extends$
|
|
36757
|
-
return _extends$
|
|
36773
|
+
function _extends$4() {
|
|
36774
|
+
return _extends$4 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
36758
36775
|
for (var e = 1; e < arguments.length; e++) {
|
|
36759
36776
|
var t2 = arguments[e];
|
|
36760
36777
|
for (var r2 in t2) ({}).hasOwnProperty.call(t2, r2) && (n2[r2] = t2[r2]);
|
|
36761
36778
|
}
|
|
36762
36779
|
return n2;
|
|
36763
|
-
}, _extends$
|
|
36780
|
+
}, _extends$4.apply(null, arguments);
|
|
36764
36781
|
}
|
|
36765
|
-
__name(_extends$
|
|
36782
|
+
__name(_extends$4, "_extends$4");
|
|
36766
36783
|
function _objectWithoutPropertiesLoose$2(r2, e) {
|
|
36767
36784
|
if (null == r2) return {};
|
|
36768
36785
|
var t2 = {};
|
|
@@ -36835,7 +36852,7 @@ __name(isModifiedEvent, "isModifiedEvent");
|
|
|
36835
36852
|
var LinkAnchor = forwardRef(function(_ref, forwardedRef) {
|
|
36836
36853
|
var innerRef = _ref.innerRef, navigate = _ref.navigate, _onClick = _ref.onClick, rest = _objectWithoutPropertiesLoose$2(_ref, ["innerRef", "navigate", "onClick"]);
|
|
36837
36854
|
var target = rest.target;
|
|
36838
|
-
var props = _extends$
|
|
36855
|
+
var props = _extends$4({}, rest, {
|
|
36839
36856
|
onClick: /* @__PURE__ */ __name(function onClick(event) {
|
|
36840
36857
|
try {
|
|
36841
36858
|
if (_onClick) _onClick(event);
|
|
@@ -36866,7 +36883,7 @@ var Link = forwardRef(function(_ref2, forwardedRef) {
|
|
|
36866
36883
|
var history = context2.history;
|
|
36867
36884
|
var location2 = normalizeToLocation(resolveToLocation(to, context2.location), context2.location);
|
|
36868
36885
|
var href = location2 ? history.createHref(location2) : "";
|
|
36869
|
-
var props = _extends$
|
|
36886
|
+
var props = _extends$4({}, rest, {
|
|
36870
36887
|
href,
|
|
36871
36888
|
navigate: /* @__PURE__ */ __name(function navigate() {
|
|
36872
36889
|
var location22 = resolveToLocation(to, context2.location);
|
|
@@ -36918,9 +36935,9 @@ forwardRef$1(function(_ref, forwardedRef) {
|
|
|
36918
36935
|
var style2 = typeof styleProp === "function" ? styleProp(isActive2) : styleProp;
|
|
36919
36936
|
if (isActive2) {
|
|
36920
36937
|
className = joinClassnames(className, activeClassName);
|
|
36921
|
-
style2 = _extends$
|
|
36938
|
+
style2 = _extends$4({}, style2, activeStyle);
|
|
36922
36939
|
}
|
|
36923
|
-
var props = _extends$
|
|
36940
|
+
var props = _extends$4({
|
|
36924
36941
|
"aria-current": isActive2 && ariaCurrent || null,
|
|
36925
36942
|
className,
|
|
36926
36943
|
style: style2,
|
|
@@ -50812,7 +50829,7 @@ const FilterAndSortMenu = /* @__PURE__ */ __name(({
|
|
|
50812
50829
|
filterValToUse = false;
|
|
50813
50830
|
} else if (ccSelectedFilter2 === "inList" || ccSelectedFilter2 === "notInList") {
|
|
50814
50831
|
if (dataType === "number") {
|
|
50815
|
-
filterValToUse = filterValue && filterValue.map((val2) => parseFloat(val2
|
|
50832
|
+
filterValToUse = filterValue && filterValue.map((val2) => parseFloat(`${val2}`.replaceAll(",", "")));
|
|
50816
50833
|
}
|
|
50817
50834
|
}
|
|
50818
50835
|
if (isInvalidFilterValue(filterValToUse)) {
|
|
@@ -50918,7 +50935,7 @@ const FilterInput = /* @__PURE__ */ __name(({
|
|
|
50918
50935
|
multi: true,
|
|
50919
50936
|
creatable: true,
|
|
50920
50937
|
value: (filterValue || []).map((val2) => ({
|
|
50921
|
-
label: val2
|
|
50938
|
+
label: `${val2}`,
|
|
50922
50939
|
value: val2
|
|
50923
50940
|
})),
|
|
50924
50941
|
onChange: /* @__PURE__ */ __name((selectedOptions) => {
|
|
@@ -52867,8 +52884,8 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
52867
52884
|
return Constructor;
|
|
52868
52885
|
}
|
|
52869
52886
|
__name(_createClass, "_createClass");
|
|
52870
|
-
function _extends$
|
|
52871
|
-
_extends$
|
|
52887
|
+
function _extends$3() {
|
|
52888
|
+
_extends$3 = Object.assign ? Object.assign.bind() : function(target) {
|
|
52872
52889
|
for (var i = 1; i < arguments.length; i++) {
|
|
52873
52890
|
var source = arguments[i];
|
|
52874
52891
|
for (var key in source) {
|
|
@@ -52879,9 +52896,9 @@ function _extends$2() {
|
|
|
52879
52896
|
}
|
|
52880
52897
|
return target;
|
|
52881
52898
|
};
|
|
52882
|
-
return _extends$
|
|
52899
|
+
return _extends$3.apply(this, arguments);
|
|
52883
52900
|
}
|
|
52884
|
-
__name(_extends$
|
|
52901
|
+
__name(_extends$3, "_extends$3");
|
|
52885
52902
|
function _inheritsLoose(subClass, superClass) {
|
|
52886
52903
|
subClass.prototype = Object.create(superClass.prototype);
|
|
52887
52904
|
subClass.prototype.constructor = subClass;
|
|
@@ -52968,7 +52985,7 @@ function createDecoratorAnnotation(annotation) {
|
|
|
52968
52985
|
__name(createDecoratorAnnotation, "createDecoratorAnnotation");
|
|
52969
52986
|
function storeAnnotation(prototype, key, annotation) {
|
|
52970
52987
|
if (!hasProp(prototype, storedAnnotationsSymbol)) {
|
|
52971
|
-
addHiddenProp(prototype, storedAnnotationsSymbol, _extends$
|
|
52988
|
+
addHiddenProp(prototype, storedAnnotationsSymbol, _extends$3({}, prototype[storedAnnotationsSymbol]));
|
|
52972
52989
|
}
|
|
52973
52990
|
if (!isOverride(annotation)) {
|
|
52974
52991
|
prototype[storedAnnotationsSymbol][key] = annotation;
|
|
@@ -53337,7 +53354,7 @@ function make_$3(adm, key, descriptor) {
|
|
|
53337
53354
|
__name(make_$3, "make_$3");
|
|
53338
53355
|
function extend_$3(adm, key, descriptor, proxyTrap) {
|
|
53339
53356
|
assertComputedDescriptor(adm, this, key, descriptor);
|
|
53340
|
-
return adm.defineComputedProperty_(key, _extends$
|
|
53357
|
+
return adm.defineComputedProperty_(key, _extends$3({}, this.options_, {
|
|
53341
53358
|
get: descriptor.get,
|
|
53342
53359
|
set: descriptor.set
|
|
53343
53360
|
}), proxyTrap);
|
|
@@ -53348,7 +53365,7 @@ function decorate_20223_$3(get42, context2) {
|
|
|
53348
53365
|
var key = context2.name, addInitializer = context2.addInitializer;
|
|
53349
53366
|
addInitializer(function() {
|
|
53350
53367
|
var adm = asObservableObject(this)[$mobx];
|
|
53351
|
-
var options = _extends$
|
|
53368
|
+
var options = _extends$3({}, ann.options_, {
|
|
53352
53369
|
get: get42,
|
|
53353
53370
|
context: this
|
|
53354
53371
|
});
|
|
@@ -56147,7 +56164,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
|
|
|
56147
56164
|
}
|
|
56148
56165
|
var newValue = change.newValue;
|
|
56149
56166
|
if (descriptor.value !== newValue) {
|
|
56150
|
-
descriptor = _extends$
|
|
56167
|
+
descriptor = _extends$3({}, descriptor, {
|
|
56151
56168
|
value: newValue
|
|
56152
56169
|
});
|
|
56153
56170
|
}
|
|
@@ -71777,8 +71794,8 @@ const batch$1 = createAction("Batch", function() {
|
|
|
71777
71794
|
}
|
|
71778
71795
|
return actions2;
|
|
71779
71796
|
});
|
|
71780
|
-
function _extends$
|
|
71781
|
-
_extends$
|
|
71797
|
+
function _extends$2() {
|
|
71798
|
+
_extends$2 = Object.assign || function(target) {
|
|
71782
71799
|
for (var i = 1; i < arguments.length; i++) {
|
|
71783
71800
|
var source = arguments[i];
|
|
71784
71801
|
for (var key in source) {
|
|
@@ -71789,9 +71806,9 @@ function _extends$1() {
|
|
|
71789
71806
|
}
|
|
71790
71807
|
return target;
|
|
71791
71808
|
};
|
|
71792
|
-
return _extends$
|
|
71809
|
+
return _extends$2.apply(this, arguments);
|
|
71793
71810
|
}
|
|
71794
|
-
__name(_extends$
|
|
71811
|
+
__name(_extends$2, "_extends$2");
|
|
71795
71812
|
function normalizeType(typeOrActionCreator) {
|
|
71796
71813
|
if (typeOrActionCreator && typeOrActionCreator.getType) {
|
|
71797
71814
|
return typeOrActionCreator.toString();
|
|
@@ -71806,7 +71823,7 @@ function createReducer() {
|
|
|
71806
71823
|
payload: true,
|
|
71807
71824
|
fallback: null
|
|
71808
71825
|
};
|
|
71809
|
-
var reducer2 = _extends$
|
|
71826
|
+
var reducer2 = _extends$2(reduce2, {
|
|
71810
71827
|
has: has4,
|
|
71811
71828
|
on: on2,
|
|
71812
71829
|
off,
|
|
@@ -100913,6 +100930,16 @@ var rafSchd = /* @__PURE__ */ __name(function rafSchd2(fn4) {
|
|
|
100913
100930
|
};
|
|
100914
100931
|
return wrapperFn;
|
|
100915
100932
|
}, "rafSchd");
|
|
100933
|
+
function _extends$1() {
|
|
100934
|
+
return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
100935
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
100936
|
+
var t2 = arguments[e];
|
|
100937
|
+
for (var r2 in t2) ({}).hasOwnProperty.call(t2, r2) && (n2[r2] = t2[r2]);
|
|
100938
|
+
}
|
|
100939
|
+
return n2;
|
|
100940
|
+
}, _extends$1.apply(null, arguments);
|
|
100941
|
+
}
|
|
100942
|
+
__name(_extends$1, "_extends$1");
|
|
100916
100943
|
function log(type2, message) {
|
|
100917
100944
|
{
|
|
100918
100945
|
return;
|
|
@@ -105444,7 +105471,7 @@ function useAnnouncer(contextId) {
|
|
|
105444
105471
|
el.id = id2;
|
|
105445
105472
|
el.setAttribute("aria-live", "assertive");
|
|
105446
105473
|
el.setAttribute("aria-atomic", "true");
|
|
105447
|
-
_extends$
|
|
105474
|
+
_extends$1(el.style, visuallyHidden$1);
|
|
105448
105475
|
getBodyElement().appendChild(el);
|
|
105449
105476
|
return /* @__PURE__ */ __name(function cleanup() {
|
|
105450
105477
|
setTimeout(/* @__PURE__ */ __name(function remove3() {
|
|
@@ -107320,7 +107347,7 @@ function PublicDraggable(props) {
|
|
|
107320
107347
|
const isEnabled = typeof props.isDragDisabled === "boolean" ? !props.isDragDisabled : true;
|
|
107321
107348
|
const canDragInteractiveElements = Boolean(props.disableInteractiveElementBlocking);
|
|
107322
107349
|
const shouldRespectForcePress = Boolean(props.shouldRespectForcePress);
|
|
107323
|
-
return React.createElement(PrivateDraggable, _extends$
|
|
107350
|
+
return React.createElement(PrivateDraggable, _extends$1({}, props, {
|
|
107324
107351
|
isClone: false,
|
|
107325
107352
|
isEnabled,
|
|
107326
107353
|
canDragInteractiveElements,
|
|
@@ -110994,10 +111021,39 @@ const _AnnotationPositioner = class _AnnotationPositioner extends React.PureComp
|
|
|
110994
111021
|
__name(_AnnotationPositioner, "AnnotationPositioner");
|
|
110995
111022
|
let AnnotationPositioner = _AnnotationPositioner;
|
|
110996
111023
|
let measureCanvas;
|
|
110997
|
-
|
|
111024
|
+
let cachedFontSize = null;
|
|
111025
|
+
function getVeMonospaceFontSize() {
|
|
111026
|
+
if (cachedFontSize !== null) {
|
|
111027
|
+
return cachedFontSize;
|
|
111028
|
+
}
|
|
111029
|
+
const tempElement = document.createElement("div");
|
|
111030
|
+
tempElement.className = "ve-monospace-font";
|
|
111031
|
+
tempElement.style.position = "absolute";
|
|
111032
|
+
tempElement.style.visibility = "hidden";
|
|
111033
|
+
tempElement.style.pointerEvents = "none";
|
|
111034
|
+
document.body.appendChild(tempElement);
|
|
111035
|
+
try {
|
|
111036
|
+
const computedStyle = window.getComputedStyle(tempElement);
|
|
111037
|
+
const fontSize = parseFloat(computedStyle.fontSize);
|
|
111038
|
+
cachedFontSize = fontSize || ANNOTATION_LABEL_FONT_WIDTH;
|
|
111039
|
+
return cachedFontSize;
|
|
111040
|
+
} catch (error) {
|
|
111041
|
+
console.warn(
|
|
111042
|
+
"Failed to compute ve-monospace-font size, using fallback",
|
|
111043
|
+
error
|
|
111044
|
+
);
|
|
111045
|
+
cachedFontSize = ANNOTATION_LABEL_FONT_WIDTH;
|
|
111046
|
+
return cachedFontSize;
|
|
111047
|
+
} finally {
|
|
111048
|
+
document.body.removeChild(tempElement);
|
|
111049
|
+
}
|
|
111050
|
+
}
|
|
111051
|
+
__name(getVeMonospaceFontSize, "getVeMonospaceFontSize");
|
|
111052
|
+
function getAnnotationTextWidth(text2, fontFamily = "monospace") {
|
|
110998
111053
|
if (!measureCanvas) {
|
|
110999
111054
|
measureCanvas = document.createElement("canvas");
|
|
111000
111055
|
}
|
|
111056
|
+
const fontSize = getVeMonospaceFontSize();
|
|
111001
111057
|
const ctx = measureCanvas.getContext("2d");
|
|
111002
111058
|
ctx.font = `${fontSize}px ${fontFamily}`;
|
|
111003
111059
|
return ctx.measureText(text2).width;
|
|
@@ -111005,7 +111061,8 @@ function getAnnotationTextWidth(text2, fontSize = ANNOTATION_LABEL_FONT_WIDTH, f
|
|
|
111005
111061
|
__name(getAnnotationTextWidth, "getAnnotationTextWidth");
|
|
111006
111062
|
const doesLabelFitInAnnotation = /* @__PURE__ */ __name((text2 = "", { range: range2, width }, charWidth2) => {
|
|
111007
111063
|
const textLength = getAnnotationTextWidth(text2);
|
|
111008
|
-
const
|
|
111064
|
+
const fontSize = getVeMonospaceFontSize();
|
|
111065
|
+
const widthMinusOne = range2 ? getWidth(range2, charWidth2, 0) - fontSize * 2 : width - fontSize * 2;
|
|
111009
111066
|
return widthMinusOne > textLength;
|
|
111010
111067
|
}, "doesLabelFitInAnnotation");
|
|
111011
111068
|
function getAnnotationClassnames({ overlapsSelf }, { viewName, type: type2 }) {
|
|
@@ -117151,7 +117208,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
117151
117208
|
input.click();
|
|
117152
117209
|
}
|
|
117153
117210
|
__name(showFileDialog, "showFileDialog");
|
|
117154
|
-
const version = "0.8.
|
|
117211
|
+
const version = "0.8.37";
|
|
117155
117212
|
const packageJson = {
|
|
117156
117213
|
version
|
|
117157
117214
|
};
|
|
@@ -127652,14 +127709,13 @@ const _ComponentToPrint = class _ComponentToPrint extends React.Component {
|
|
|
127652
127709
|
};
|
|
127653
127710
|
__name(_ComponentToPrint, "ComponentToPrint");
|
|
127654
127711
|
let ComponentToPrint = _ComponentToPrint;
|
|
127655
|
-
const sizeSchema = /* @__PURE__ */ __name((
|
|
127712
|
+
const sizeSchema = /* @__PURE__ */ __name(() => ({
|
|
127656
127713
|
path: "size",
|
|
127657
127714
|
type: "number",
|
|
127658
|
-
render: /* @__PURE__ */ __name((val2,
|
|
127659
|
-
const record = isProtein2 ? convertDnaCaretPositionOrRangeToAA(_record) : _record;
|
|
127715
|
+
render: /* @__PURE__ */ __name((val2, record) => {
|
|
127660
127716
|
const base1Range = convertRangeTo1Based(record);
|
|
127661
127717
|
const hasJoinedLocations = record.locations && record.locations.length > 1;
|
|
127662
|
-
return /* @__PURE__ */ React.createElement("span", null,
|
|
127718
|
+
return /* @__PURE__ */ React.createElement("span", null, val2, " ", /* @__PURE__ */ React.createElement("span", { style: { fontSize: 10 } }, hasJoinedLocations ? record.locations.map((loc, i) => {
|
|
127663
127719
|
const base1Range2 = convertRangeTo1Based(loc);
|
|
127664
127720
|
return /* @__PURE__ */ React.createElement("span", { key: i }, "(", base1Range2.start, "-", base1Range2.end, ")");
|
|
127665
127721
|
}) : /* @__PURE__ */ React.createElement("span", null, "(", base1Range.start, "-", base1Range.end, ")")));
|
|
@@ -127669,11 +127725,7 @@ const getMemoOrfs = /* @__PURE__ */ (() => {
|
|
|
127669
127725
|
let lastDeps;
|
|
127670
127726
|
let lastResult;
|
|
127671
127727
|
return (editorState) => {
|
|
127672
|
-
const {
|
|
127673
|
-
sequenceData: sequenceData2,
|
|
127674
|
-
minimumOrfSize: minimumOrfSize2,
|
|
127675
|
-
useAdditionalOrfStartCodons: useAdditionalOrfStartCodons2
|
|
127676
|
-
} = editorState;
|
|
127728
|
+
const { sequenceData: sequenceData2, minimumOrfSize: minimumOrfSize2, useAdditionalOrfStartCodons: useAdditionalOrfStartCodons2 } = editorState;
|
|
127677
127729
|
const { sequence: sequence2, circular: circular2 } = sequenceData2;
|
|
127678
127730
|
const deps = {
|
|
127679
127731
|
sequence: sequence2,
|
|
@@ -133690,6 +133742,7 @@ const RemoveDuplicatesDialog = /* @__PURE__ */ __name((props) => {
|
|
|
133690
133742
|
const ignoreName = useFormValue(dialogFormName, "ignoreName");
|
|
133691
133743
|
const ignoreStartAndEnd = useFormValue(dialogFormName, "ignoreStartAndEnd");
|
|
133692
133744
|
const ignoreStrand = useFormValue(dialogFormName, "ignoreStrand");
|
|
133745
|
+
const isProteinSeq = isProtein2 || sequenceData2.isProtein;
|
|
133693
133746
|
const recomputeDups = React.useCallback(
|
|
133694
133747
|
(values3) => {
|
|
133695
133748
|
const ignoreName2 = values3 == null ? void 0 : values3.ignoreName;
|
|
@@ -133698,17 +133751,20 @@ const RemoveDuplicatesDialog = /* @__PURE__ */ __name((props) => {
|
|
|
133698
133751
|
const annotations = sequenceData2[type2];
|
|
133699
133752
|
const newDups = [];
|
|
133700
133753
|
const seqsHashByStartEndStrandName = {};
|
|
133701
|
-
forEach$1(annotations, (
|
|
133702
|
-
const
|
|
133754
|
+
forEach$1(annotations, (_annotation) => {
|
|
133755
|
+
const annotation = isProteinSeq ? convertDnaCaretPositionOrRangeToAA(_annotation) : _annotation;
|
|
133756
|
+
const hash2 = `${ignoreStartAndEnd2 ? "" : annotation.start}&${ignoreStartAndEnd2 ? "" : annotation.end}&${ignoreStrand2 ? "" : annotation.strand}&${ignoreName2 ? "" : annotation.name}`;
|
|
133703
133757
|
if (seqsHashByStartEndStrandName[hash2]) {
|
|
133704
|
-
newDups.push(__spreadProps(__spreadValues({},
|
|
133758
|
+
newDups.push(__spreadProps(__spreadValues({}, annotation), {
|
|
133759
|
+
size: getRangeLength(annotation, sequenceLength)
|
|
133760
|
+
}));
|
|
133705
133761
|
} else {
|
|
133706
133762
|
seqsHashByStartEndStrandName[hash2] = true;
|
|
133707
133763
|
}
|
|
133708
133764
|
});
|
|
133709
133765
|
return newDups;
|
|
133710
133766
|
},
|
|
133711
|
-
[sequenceData2, sequenceLength, type2]
|
|
133767
|
+
[sequenceData2, sequenceLength, type2, isProteinSeq]
|
|
133712
133768
|
);
|
|
133713
133769
|
const [dups, setDups] = React.useState(recomputeDups);
|
|
133714
133770
|
const selectedIds = React.useMemo(() => dups.map((d2) => d2.id), [dups]);
|
|
@@ -133730,11 +133786,11 @@ const RemoveDuplicatesDialog = /* @__PURE__ */ __name((props) => {
|
|
|
133730
133786
|
fields: [
|
|
133731
133787
|
{ path: "name", type: "string" },
|
|
133732
133788
|
// ...(noType ? [] : [{ path: "type", type: "string" }]),
|
|
133733
|
-
sizeSchema(
|
|
133789
|
+
sizeSchema(),
|
|
133734
133790
|
{ path: "strand", type: "string" }
|
|
133735
133791
|
]
|
|
133736
133792
|
}),
|
|
133737
|
-
[
|
|
133793
|
+
[]
|
|
133738
133794
|
);
|
|
133739
133795
|
return /* @__PURE__ */ React.createElement("div", { className: classNames(core.Classes.DIALOG_BODY, "tg-min-width-dialog") }, /* @__PURE__ */ React.createElement(
|
|
133740
133796
|
WrappedDT,
|
|
@@ -142372,7 +142428,7 @@ function withContentRect(types2) {
|
|
|
142372
142428
|
_this$props.innerRef;
|
|
142373
142429
|
_this$props.onResize;
|
|
142374
142430
|
var props = _objectWithoutPropertiesLoose$4(_this$props, ["innerRef", "onResize"]);
|
|
142375
|
-
return React.createElement(WrappedComponent, _extends$
|
|
142431
|
+
return React.createElement(WrappedComponent, _extends$k({}, props, {
|
|
142376
142432
|
measureRef: this._handleRef,
|
|
142377
142433
|
measure: this.measure,
|
|
142378
142434
|
contentRect: this.state.contentRect
|
|
@@ -144195,14 +144251,15 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
|
|
|
144195
144251
|
const annotationPropertiesSelectedEntities = _annotationPropertiesSelectedEntities.filter((a2) => annotations[a2.id]);
|
|
144196
144252
|
const deleteAnnotation = props[`delete${annotationTypeUpper}`];
|
|
144197
144253
|
const annotationsToUse = React.useMemo(
|
|
144198
|
-
() => map$3(annotations, (
|
|
144254
|
+
() => map$3(annotations, (_annotation) => {
|
|
144255
|
+
const annotation = isProtein2 ? convertDnaCaretPositionOrRangeToAA(_annotation) : _annotation;
|
|
144199
144256
|
return __spreadProps(__spreadValues(__spreadValues({}, annotation), annotation.strand === void 0 && {
|
|
144200
144257
|
strand: annotation.forward ? 1 : -1
|
|
144201
144258
|
}), {
|
|
144202
144259
|
size: getRangeLength(annotation, sequenceLength)
|
|
144203
144260
|
});
|
|
144204
144261
|
}),
|
|
144205
|
-
[annotations, sequenceLength]
|
|
144262
|
+
[annotations, sequenceLength, isProtein2]
|
|
144206
144263
|
);
|
|
144207
144264
|
const keyedPartTags = (_a2 = getKeyedTagsAndTagOptions(allPartTags)) != null ? _a2 : {};
|
|
144208
144265
|
const additionalColumns = ((_c = (_b2 = PropertiesProps == null ? void 0 : PropertiesProps.propertiesList) == null ? void 0 : _b2.find(
|
|
@@ -144272,7 +144329,7 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
|
|
|
144272
144329
|
}, "render")
|
|
144273
144330
|
}
|
|
144274
144331
|
],
|
|
144275
|
-
sizeSchema(
|
|
144332
|
+
sizeSchema(),
|
|
144276
144333
|
...withTags && allPartTags ? [
|
|
144277
144334
|
{
|
|
144278
144335
|
path: "tags",
|
|
@@ -144766,7 +144823,7 @@ const _OrfProperties = class _OrfProperties extends React.Component {
|
|
|
144766
144823
|
displayName: "Size (aa)",
|
|
144767
144824
|
type: "number"
|
|
144768
144825
|
},
|
|
144769
|
-
sizeSchema(
|
|
144826
|
+
sizeSchema(),
|
|
144770
144827
|
{ path: "frame", type: "number" },
|
|
144771
144828
|
{ path: "strand", type: "number" }
|
|
144772
144829
|
]
|
|
@@ -148937,7 +148994,6 @@ exports.RowView = RowView$1;
|
|
|
148937
148994
|
exports.RowViewUnconnected = RowView;
|
|
148938
148995
|
exports.SimpleCircularOrLinearView = SimpleCircularOrLinearView;
|
|
148939
148996
|
exports.StatusBar = StatusBar;
|
|
148940
|
-
exports.StatusBarUnconnected = StatusBar;
|
|
148941
148997
|
exports.ToolBar = ToolBar;
|
|
148942
148998
|
exports.actions = actions;
|
|
148943
148999
|
exports.addAlignment = addAlignment;
|