@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.es.js
CHANGED
|
@@ -8860,8 +8860,8 @@ function unset(object3, path2) {
|
|
|
8860
8860
|
return object3 == null ? true : baseUnset(object3, path2);
|
|
8861
8861
|
}
|
|
8862
8862
|
__name(unset, "unset");
|
|
8863
|
-
function _extends$
|
|
8864
|
-
_extends$
|
|
8863
|
+
function _extends$k() {
|
|
8864
|
+
_extends$k = Object.assign ? Object.assign.bind() : function(target) {
|
|
8865
8865
|
for (var i = 1; i < arguments.length; i++) {
|
|
8866
8866
|
var source = arguments[i];
|
|
8867
8867
|
for (var key in source) {
|
|
@@ -8872,9 +8872,9 @@ function _extends$j() {
|
|
|
8872
8872
|
}
|
|
8873
8873
|
return target;
|
|
8874
8874
|
};
|
|
8875
|
-
return _extends$
|
|
8875
|
+
return _extends$k.apply(this, arguments);
|
|
8876
8876
|
}
|
|
8877
|
-
__name(_extends$
|
|
8877
|
+
__name(_extends$k, "_extends$k");
|
|
8878
8878
|
function _setPrototypeOf$3(o2, p2) {
|
|
8879
8879
|
_setPrototypeOf$3 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : /* @__PURE__ */ __name(function _setPrototypeOf2(o3, p3) {
|
|
8880
8880
|
o3.__proto__ = p3;
|
|
@@ -8997,7 +8997,7 @@ var mapProps = /* @__PURE__ */ __name(function mapProps2(propsMapper) {
|
|
|
8997
8997
|
}, "mapProps2");
|
|
8998
8998
|
var withProps = /* @__PURE__ */ __name(function withProps2(input) {
|
|
8999
8999
|
var hoc = mapProps(function(props) {
|
|
9000
|
-
return _extends$
|
|
9000
|
+
return _extends$k({}, props, typeof input === "function" ? input(props) : input);
|
|
9001
9001
|
});
|
|
9002
9002
|
return hoc;
|
|
9003
9003
|
}, "withProps2");
|
|
@@ -9070,7 +9070,7 @@ var withHandlers = /* @__PURE__ */ __name(function withHandlers2(handlers2) {
|
|
|
9070
9070
|
__name(WithHandlers2, "WithHandlers2");
|
|
9071
9071
|
var _proto = WithHandlers2.prototype;
|
|
9072
9072
|
_proto.render = /* @__PURE__ */ __name(function render3() {
|
|
9073
|
-
return factory(_extends$
|
|
9073
|
+
return factory(_extends$k({}, this.props, this.handlers));
|
|
9074
9074
|
}, "render");
|
|
9075
9075
|
return WithHandlers2;
|
|
9076
9076
|
}(Component);
|
|
@@ -9145,7 +9145,7 @@ var lifecycle = /* @__PURE__ */ __name(function lifecycle2(spec) {
|
|
|
9145
9145
|
__name(Lifecycle22, "Lifecycle2");
|
|
9146
9146
|
var _proto = Lifecycle22.prototype;
|
|
9147
9147
|
_proto.render = /* @__PURE__ */ __name(function render3() {
|
|
9148
|
-
return factory(_extends$
|
|
9148
|
+
return factory(_extends$k({}, this.props, this.state));
|
|
9149
9149
|
}, "render");
|
|
9150
9150
|
return Lifecycle22;
|
|
9151
9151
|
}(Component);
|
|
@@ -14446,7 +14446,7 @@ function requireReactList() {
|
|
|
14446
14446
|
__name(requireReactList, "requireReactList");
|
|
14447
14447
|
var reactListExports = requireReactList();
|
|
14448
14448
|
const ReactList = /* @__PURE__ */ getDefaultExportFromCjs(reactListExports);
|
|
14449
|
-
var _extends$
|
|
14449
|
+
var _extends$j = Object.assign || function(target) {
|
|
14450
14450
|
for (var i = 1; i < arguments.length; i++) {
|
|
14451
14451
|
var source = arguments[i];
|
|
14452
14452
|
for (var key in source) {
|
|
@@ -14596,7 +14596,7 @@ function makeTemplateComponent(compClass, displayName) {
|
|
|
14596
14596
|
var children = _ref.children, className = _ref.className, rest = _objectWithoutProperties$3(_ref, ["children", "className"]);
|
|
14597
14597
|
return React__default.createElement(
|
|
14598
14598
|
"div",
|
|
14599
|
-
_extends$
|
|
14599
|
+
_extends$j({ className: classNames(compClass, className) }, rest),
|
|
14600
14600
|
children
|
|
14601
14601
|
);
|
|
14602
14602
|
}, "cmp");
|
|
@@ -14828,7 +14828,7 @@ var _slicedToArray$3 = /* @__PURE__ */ function() {
|
|
|
14828
14828
|
}
|
|
14829
14829
|
};
|
|
14830
14830
|
}();
|
|
14831
|
-
var _extends$
|
|
14831
|
+
var _extends$i = Object.assign || function(target) {
|
|
14832
14832
|
for (var i = 1; i < arguments.length; i++) {
|
|
14833
14833
|
var source = arguments[i];
|
|
14834
14834
|
for (var key in source) {
|
|
@@ -14908,7 +14908,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
14908
14908
|
_createClass$b(_class, [{
|
|
14909
14909
|
key: "getResolvedState",
|
|
14910
14910
|
value: /* @__PURE__ */ __name(function getResolvedState(props, state2) {
|
|
14911
|
-
var resolvedState = _extends$
|
|
14911
|
+
var resolvedState = _extends$i({}, _.compactObject(this.state), _.compactObject(this.props), _.compactObject(state2), _.compactObject(props));
|
|
14912
14912
|
return resolvedState;
|
|
14913
14913
|
}, "getResolvedState")
|
|
14914
14914
|
}, {
|
|
@@ -14940,9 +14940,9 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
14940
14940
|
var makeDecoratedColumn = /* @__PURE__ */ __name(function makeDecoratedColumn2(column, parentColumn) {
|
|
14941
14941
|
var dcol = void 0;
|
|
14942
14942
|
if (column.expander) {
|
|
14943
|
-
dcol = _extends$
|
|
14943
|
+
dcol = _extends$i({}, _this2.props.column, _this2.props.expanderDefaults, column);
|
|
14944
14944
|
} else {
|
|
14945
|
-
dcol = _extends$
|
|
14945
|
+
dcol = _extends$i({}, _this2.props.column, column);
|
|
14946
14946
|
}
|
|
14947
14947
|
if (dcol.maxWidth < dcol.minWidth) {
|
|
14948
14948
|
dcol.minWidth = dcol.maxWidth;
|
|
@@ -14977,7 +14977,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
14977
14977
|
}, "decorateAndAddToAll");
|
|
14978
14978
|
var decoratedColumns = columnsWithExpander.map(function(column) {
|
|
14979
14979
|
if (column.columns) {
|
|
14980
|
-
return _extends$
|
|
14980
|
+
return _extends$i({}, column, {
|
|
14981
14981
|
columns: column.columns.map(function(d2) {
|
|
14982
14982
|
return decorateAndAddToAll(d2, column);
|
|
14983
14983
|
})
|
|
@@ -14992,7 +14992,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
14992
14992
|
var visibleSubColumns = column.columns.filter(function(d2) {
|
|
14993
14993
|
return pivotBy.indexOf(d2.id) > -1 ? false : _.getFirstDefined(d2.show, true);
|
|
14994
14994
|
});
|
|
14995
|
-
return _extends$
|
|
14995
|
+
return _extends$i({}, column, {
|
|
14996
14996
|
columns: visibleSubColumns
|
|
14997
14997
|
});
|
|
14998
14998
|
}
|
|
@@ -15028,14 +15028,14 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
15028
15028
|
var pivotColumnGroup = {
|
|
15029
15029
|
Header: PivotGroupHeader,
|
|
15030
15030
|
columns: pivotColumns.map(function(col) {
|
|
15031
|
-
return _extends$
|
|
15031
|
+
return _extends$i({}, _this2.props.pivotDefaults, col, {
|
|
15032
15032
|
pivoted: true
|
|
15033
15033
|
});
|
|
15034
15034
|
})
|
|
15035
15035
|
// Place the pivotColumns back into the visibleColumns
|
|
15036
15036
|
};
|
|
15037
15037
|
if (pivotIndex >= 0) {
|
|
15038
|
-
pivotColumnGroup = _extends$
|
|
15038
|
+
pivotColumnGroup = _extends$i({}, visibleColumns[pivotIndex], pivotColumnGroup);
|
|
15039
15039
|
visibleColumns.splice(pivotIndex, 1, pivotColumnGroup);
|
|
15040
15040
|
} else {
|
|
15041
15041
|
visibleColumns.unshift(pivotColumnGroup);
|
|
@@ -15044,7 +15044,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
15044
15044
|
var headerGroups = [];
|
|
15045
15045
|
var currentSpan = [];
|
|
15046
15046
|
var addHeader = /* @__PURE__ */ __name(function addHeader2(columns2, column) {
|
|
15047
|
-
headerGroups.push(_extends$
|
|
15047
|
+
headerGroups.push(_extends$i({}, _this2.props.column, column, {
|
|
15048
15048
|
columns: columns2
|
|
15049
15049
|
}));
|
|
15050
15050
|
currentSpan = [];
|
|
@@ -15109,13 +15109,13 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
15109
15109
|
groupedRows = groupedRows.map(function(rowGroup) {
|
|
15110
15110
|
var _extends2;
|
|
15111
15111
|
var subRows = groupRecursively2(rowGroup[subRowsKey], keys3, i + 1);
|
|
15112
|
-
return _extends$
|
|
15112
|
+
return _extends$i({}, rowGroup, (_extends2 = {}, _defineProperty$5(_extends2, subRowsKey, subRows), _defineProperty$5(_extends2, aggregatedKey, true), _extends2), aggregate(subRows));
|
|
15113
15113
|
});
|
|
15114
15114
|
return groupedRows;
|
|
15115
15115
|
}, "groupRecursively");
|
|
15116
15116
|
resolvedData = groupRecursively(resolvedData, pivotBy);
|
|
15117
15117
|
}
|
|
15118
|
-
return _extends$
|
|
15118
|
+
return _extends$i({}, newState, {
|
|
15119
15119
|
resolvedData,
|
|
15120
15120
|
allVisibleColumns,
|
|
15121
15121
|
headerGroups,
|
|
@@ -15177,7 +15177,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
15177
15177
|
if (!row[_this3.props.subRowsKey]) {
|
|
15178
15178
|
return row;
|
|
15179
15179
|
}
|
|
15180
|
-
return _extends$
|
|
15180
|
+
return _extends$i({}, row, _defineProperty$5({}, _this3.props.subRowsKey, _this3.filterData(row[_this3.props.subRowsKey], filtered, defaultFilterMethod2, allVisibleColumns)));
|
|
15181
15181
|
}).filter(function(row) {
|
|
15182
15182
|
if (!row[_this3.props.subRowsKey]) {
|
|
15183
15183
|
return true;
|
|
@@ -15457,7 +15457,7 @@ var _createClass$a = /* @__PURE__ */ function() {
|
|
|
15457
15457
|
return Constructor;
|
|
15458
15458
|
};
|
|
15459
15459
|
}();
|
|
15460
|
-
var _extends$
|
|
15460
|
+
var _extends$h = Object.assign || function(target) {
|
|
15461
15461
|
for (var i = 1; i < arguments.length; i++) {
|
|
15462
15462
|
var source = arguments[i];
|
|
15463
15463
|
for (var key in source) {
|
|
@@ -15492,7 +15492,7 @@ __name(_inherits$9, "_inherits$9");
|
|
|
15492
15492
|
var defaultButton = /* @__PURE__ */ __name(function defaultButton2(props) {
|
|
15493
15493
|
return React__default.createElement(
|
|
15494
15494
|
"button",
|
|
15495
|
-
_extends$
|
|
15495
|
+
_extends$h({ type: "button" }, props, { className: "-btn" }),
|
|
15496
15496
|
props.children
|
|
15497
15497
|
);
|
|
15498
15498
|
}, "defaultButton");
|
|
@@ -15692,7 +15692,7 @@ ReactTablePagination.defaultProps = {
|
|
|
15692
15692
|
);
|
|
15693
15693
|
}, "renderPageSizeOptions")
|
|
15694
15694
|
};
|
|
15695
|
-
var _extends$
|
|
15695
|
+
var _extends$g = Object.assign || function(target) {
|
|
15696
15696
|
for (var i = 1; i < arguments.length; i++) {
|
|
15697
15697
|
var source = arguments[i];
|
|
15698
15698
|
for (var key in source) {
|
|
@@ -15883,7 +15883,7 @@ const defaultProps$1 = {
|
|
|
15883
15883
|
var children = _ref.children, className = _ref.className, rest = _objectWithoutProperties$2(_ref, ["children", "className"]);
|
|
15884
15884
|
return React__default.createElement(
|
|
15885
15885
|
"div",
|
|
15886
|
-
_extends$
|
|
15886
|
+
_extends$g({
|
|
15887
15887
|
className: classNames("rt-table", className),
|
|
15888
15888
|
role: "grid"
|
|
15889
15889
|
// tabIndex='0'
|
|
@@ -15897,7 +15897,7 @@ const defaultProps$1 = {
|
|
|
15897
15897
|
var children = _ref2.children, className = _ref2.className, rest = _objectWithoutProperties$2(_ref2, ["children", "className"]);
|
|
15898
15898
|
return React__default.createElement(
|
|
15899
15899
|
"div",
|
|
15900
|
-
_extends$
|
|
15900
|
+
_extends$g({ className: classNames("rt-tr-group", className), role: "rowgroup" }, rest),
|
|
15901
15901
|
children
|
|
15902
15902
|
);
|
|
15903
15903
|
}, "TrGroupComponent"),
|
|
@@ -15905,7 +15905,7 @@ const defaultProps$1 = {
|
|
|
15905
15905
|
var children = _ref3.children, className = _ref3.className, rest = _objectWithoutProperties$2(_ref3, ["children", "className"]);
|
|
15906
15906
|
return React__default.createElement(
|
|
15907
15907
|
"div",
|
|
15908
|
-
_extends$
|
|
15908
|
+
_extends$g({ className: classNames("rt-tr", className), role: "row" }, rest),
|
|
15909
15909
|
children
|
|
15910
15910
|
);
|
|
15911
15911
|
}, "TrComponent"),
|
|
@@ -15915,7 +15915,7 @@ const defaultProps$1 = {
|
|
|
15915
15915
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
15916
15916
|
React__default.createElement(
|
|
15917
15917
|
"div",
|
|
15918
|
-
_extends$
|
|
15918
|
+
_extends$g({
|
|
15919
15919
|
className: classNames("rt-th", className),
|
|
15920
15920
|
onClick: /* @__PURE__ */ __name(function onClick(e) {
|
|
15921
15921
|
return toggleSort && toggleSort(e);
|
|
@@ -15933,7 +15933,7 @@ const defaultProps$1 = {
|
|
|
15933
15933
|
var className = _ref5.className, children = _ref5.children, rest = _objectWithoutProperties$2(_ref5, ["toggleSort", "className", "children"]);
|
|
15934
15934
|
return React__default.createElement(
|
|
15935
15935
|
"div",
|
|
15936
|
-
_extends$
|
|
15936
|
+
_extends$g({ className: classNames("rt-td", className), role: "gridcell" }, rest),
|
|
15937
15937
|
children
|
|
15938
15938
|
);
|
|
15939
15939
|
}, "TdComponent"),
|
|
@@ -16001,7 +16001,7 @@ const defaultProps$1 = {
|
|
|
16001
16001
|
var className = _ref10.className, loading = _ref10.loading, loadingText = _ref10.loadingText, rest = _objectWithoutProperties$2(_ref10, ["className", "loading", "loadingText"]);
|
|
16002
16002
|
return React__default.createElement(
|
|
16003
16003
|
"div",
|
|
16004
|
-
_extends$
|
|
16004
|
+
_extends$g({ className: classNames("-loading", { "-active": loading }, className) }, rest),
|
|
16005
16005
|
React__default.createElement(
|
|
16006
16006
|
"div",
|
|
16007
16007
|
{ className: "-loading-inner" },
|
|
@@ -16205,7 +16205,7 @@ var _slicedToArray$2 = /* @__PURE__ */ function() {
|
|
|
16205
16205
|
}
|
|
16206
16206
|
};
|
|
16207
16207
|
}();
|
|
16208
|
-
var _extends$
|
|
16208
|
+
var _extends$f = Object.assign || function(target) {
|
|
16209
16209
|
for (var i = 1; i < arguments.length; i++) {
|
|
16210
16210
|
var source = arguments[i];
|
|
16211
16211
|
for (var key in source) {
|
|
@@ -16315,7 +16315,7 @@ var ReactTable = function(_Methods) {
|
|
|
16315
16315
|
var index2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : -1;
|
|
16316
16316
|
return [rows.map(function(row, i) {
|
|
16317
16317
|
index2 += 1;
|
|
16318
|
-
var rowWithViewIndex = _extends$
|
|
16318
|
+
var rowWithViewIndex = _extends$f({}, row, {
|
|
16319
16319
|
_viewIndex: index2
|
|
16320
16320
|
});
|
|
16321
16321
|
var newPath = path2.concat([i]);
|
|
@@ -16340,7 +16340,7 @@ var ReactTable = function(_Methods) {
|
|
|
16340
16340
|
return _.getFirstDefined(resizedColumn.value, d2.width, d2.minWidth);
|
|
16341
16341
|
}));
|
|
16342
16342
|
var rowIndex = -1;
|
|
16343
|
-
var finalState = _extends$
|
|
16343
|
+
var finalState = _extends$f({}, resolvedState, {
|
|
16344
16344
|
startRow,
|
|
16345
16345
|
endRow,
|
|
16346
16346
|
pageRows,
|
|
@@ -16374,8 +16374,8 @@ var ReactTable = function(_Methods) {
|
|
|
16374
16374
|
var theadGroupThProps = _.splitProps(getTheadGroupThProps(finalState, void 0, column, _this2));
|
|
16375
16375
|
var columnHeaderProps = _.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
|
|
16376
16376
|
var classes = [column.headerClassName, theadGroupThProps.className, columnHeaderProps.className];
|
|
16377
|
-
var styles2 = _extends$
|
|
16378
|
-
var rest = _extends$
|
|
16377
|
+
var styles2 = _extends$f({}, column.headerStyle, theadGroupThProps.style, columnHeaderProps.style);
|
|
16378
|
+
var rest = _extends$f({}, theadGroupThProps.rest, columnHeaderProps.rest);
|
|
16379
16379
|
var flexStyles = {
|
|
16380
16380
|
flex: flex + " 0 auto",
|
|
16381
16381
|
width: _.asPx(width),
|
|
@@ -16383,10 +16383,10 @@ var ReactTable = function(_Methods) {
|
|
|
16383
16383
|
};
|
|
16384
16384
|
return React__default.createElement(
|
|
16385
16385
|
ThComponent3,
|
|
16386
|
-
_extends$
|
|
16386
|
+
_extends$f({
|
|
16387
16387
|
key: i + "-" + column.id,
|
|
16388
16388
|
className: classNames(classes),
|
|
16389
|
-
style: _extends$
|
|
16389
|
+
style: _extends$f({}, styles2, flexStyles)
|
|
16390
16390
|
}, rest),
|
|
16391
16391
|
_.normalizeComponent(column.Header, {
|
|
16392
16392
|
data: sortedData,
|
|
@@ -16399,15 +16399,15 @@ var ReactTable = function(_Methods) {
|
|
|
16399
16399
|
var theadGroupTrProps = _.splitProps(getTheadGroupTrProps(finalState, void 0, void 0, _this2));
|
|
16400
16400
|
return React__default.createElement(
|
|
16401
16401
|
TheadComponent,
|
|
16402
|
-
_extends$
|
|
16402
|
+
_extends$f({
|
|
16403
16403
|
className: classNames("-headerGroups", theadGroupProps.className),
|
|
16404
|
-
style: _extends$
|
|
16404
|
+
style: _extends$f({}, theadGroupProps.style, {
|
|
16405
16405
|
minWidth: rowMinWidth + "px"
|
|
16406
16406
|
})
|
|
16407
16407
|
}, theadGroupProps.rest),
|
|
16408
16408
|
React__default.createElement(
|
|
16409
16409
|
TrComponent2,
|
|
16410
|
-
_extends$
|
|
16410
|
+
_extends$f({
|
|
16411
16411
|
className: theadGroupTrProps.className,
|
|
16412
16412
|
style: theadGroupTrProps.style
|
|
16413
16413
|
}, theadGroupTrProps.rest),
|
|
@@ -16428,10 +16428,10 @@ var ReactTable = function(_Methods) {
|
|
|
16428
16428
|
var theadThProps = _.splitProps(getTheadThProps(finalState, void 0, column, _this2));
|
|
16429
16429
|
var columnHeaderProps = _.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
|
|
16430
16430
|
var classes = [column.headerClassName, theadThProps.className, columnHeaderProps.className];
|
|
16431
|
-
var styles2 = _extends$
|
|
16432
|
-
var rest = _extends$
|
|
16431
|
+
var styles2 = _extends$f({}, column.headerStyle, theadThProps.style, columnHeaderProps.style);
|
|
16432
|
+
var rest = _extends$f({}, theadThProps.rest, columnHeaderProps.rest);
|
|
16433
16433
|
var isResizable = _.getFirstDefined(column.resizable, resizable, false);
|
|
16434
|
-
var resizer = isResizable ? React__default.createElement(ResizerComponent, _extends$
|
|
16434
|
+
var resizer = isResizable ? React__default.createElement(ResizerComponent, _extends$f({
|
|
16435
16435
|
onMouseDown: /* @__PURE__ */ __name(function onMouseDown(e) {
|
|
16436
16436
|
return _this2.resizeColumnStart(e, column, false);
|
|
16437
16437
|
}, "onMouseDown"),
|
|
@@ -16442,10 +16442,10 @@ var ReactTable = function(_Methods) {
|
|
|
16442
16442
|
var isSortable = _.getFirstDefined(column.sortable, sortable, false);
|
|
16443
16443
|
return React__default.createElement(
|
|
16444
16444
|
ThComponent3,
|
|
16445
|
-
_extends$
|
|
16445
|
+
_extends$f({
|
|
16446
16446
|
key: i + "-" + column.id,
|
|
16447
16447
|
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"),
|
|
16448
|
-
style: _extends$
|
|
16448
|
+
style: _extends$f({}, styles2, {
|
|
16449
16449
|
flex: width + " 0 auto",
|
|
16450
16450
|
width: _.asPx(width),
|
|
16451
16451
|
maxWidth: _.asPx(maxWidth)
|
|
@@ -16470,15 +16470,15 @@ var ReactTable = function(_Methods) {
|
|
|
16470
16470
|
var theadTrProps = _.splitProps(getTheadTrProps(finalState, void 0, void 0, _this2));
|
|
16471
16471
|
return React__default.createElement(
|
|
16472
16472
|
TheadComponent,
|
|
16473
|
-
_extends$
|
|
16473
|
+
_extends$f({
|
|
16474
16474
|
className: classNames("-header", theadProps.className),
|
|
16475
|
-
style: _extends$
|
|
16475
|
+
style: _extends$f({}, theadProps.style, {
|
|
16476
16476
|
minWidth: rowMinWidth + "px"
|
|
16477
16477
|
})
|
|
16478
16478
|
}, theadProps.rest),
|
|
16479
16479
|
React__default.createElement(
|
|
16480
16480
|
TrComponent2,
|
|
16481
|
-
_extends$
|
|
16481
|
+
_extends$f({
|
|
16482
16482
|
className: theadTrProps.className,
|
|
16483
16483
|
style: theadTrProps.style
|
|
16484
16484
|
}, theadTrProps.rest),
|
|
@@ -16495,8 +16495,8 @@ var ReactTable = function(_Methods) {
|
|
|
16495
16495
|
var theadFilterThProps = _.splitProps(getTheadFilterThProps(finalState, void 0, column, _this2));
|
|
16496
16496
|
var columnHeaderProps = _.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
|
|
16497
16497
|
var classes = [column.headerClassName, theadFilterThProps.className, columnHeaderProps.className];
|
|
16498
|
-
var styles2 = _extends$
|
|
16499
|
-
var rest = _extends$
|
|
16498
|
+
var styles2 = _extends$f({}, column.headerStyle, theadFilterThProps.style, columnHeaderProps.style);
|
|
16499
|
+
var rest = _extends$f({}, theadFilterThProps.rest, columnHeaderProps.rest);
|
|
16500
16500
|
var filter2 = filtered.find(function(filter3) {
|
|
16501
16501
|
return filter3.id === column.id;
|
|
16502
16502
|
});
|
|
@@ -16504,10 +16504,10 @@ var ReactTable = function(_Methods) {
|
|
|
16504
16504
|
var isFilterable = _.getFirstDefined(column.filterable, filterable, false);
|
|
16505
16505
|
return React__default.createElement(
|
|
16506
16506
|
ThComponent3,
|
|
16507
|
-
_extends$
|
|
16507
|
+
_extends$f({
|
|
16508
16508
|
key: i + "-" + column.id,
|
|
16509
16509
|
className: classNames(classes),
|
|
16510
|
-
style: _extends$
|
|
16510
|
+
style: _extends$f({}, styles2, {
|
|
16511
16511
|
flex: width + " 0 auto",
|
|
16512
16512
|
width: _.asPx(width),
|
|
16513
16513
|
maxWidth: _.asPx(maxWidth)
|
|
@@ -16527,15 +16527,15 @@ var ReactTable = function(_Methods) {
|
|
|
16527
16527
|
var theadFilterTrProps = _.splitProps(getTheadFilterTrProps(finalState, void 0, void 0, _this2));
|
|
16528
16528
|
return React__default.createElement(
|
|
16529
16529
|
TheadComponent,
|
|
16530
|
-
_extends$
|
|
16530
|
+
_extends$f({
|
|
16531
16531
|
className: classNames("-filters", theadFilterProps.className),
|
|
16532
|
-
style: _extends$
|
|
16532
|
+
style: _extends$f({}, theadFilterProps.style, {
|
|
16533
16533
|
minWidth: rowMinWidth + "px"
|
|
16534
16534
|
})
|
|
16535
16535
|
}, theadFilterProps.rest),
|
|
16536
16536
|
React__default.createElement(
|
|
16537
16537
|
TrComponent2,
|
|
16538
|
-
_extends$
|
|
16538
|
+
_extends$f({
|
|
16539
16539
|
className: theadFilterTrProps.className,
|
|
16540
16540
|
style: theadFilterTrProps.style
|
|
16541
16541
|
}, theadFilterTrProps.rest),
|
|
@@ -16563,10 +16563,10 @@ var ReactTable = function(_Methods) {
|
|
|
16563
16563
|
var trProps = _.splitProps(getTrProps(finalState, rowInfo, void 0, _this2));
|
|
16564
16564
|
return React__default.createElement(
|
|
16565
16565
|
TrGroupComponent2,
|
|
16566
|
-
_extends$
|
|
16566
|
+
_extends$f({ key: rowInfo.nestingPath.join("_") }, trGroupProps),
|
|
16567
16567
|
React__default.createElement(
|
|
16568
16568
|
TrComponent2,
|
|
16569
|
-
_extends$
|
|
16569
|
+
_extends$f({
|
|
16570
16570
|
className: classNames(trProps.className, row._viewIndex % 2 ? "-even" : "-odd"),
|
|
16571
16571
|
style: trProps.style
|
|
16572
16572
|
}, trProps.rest),
|
|
@@ -16580,10 +16580,10 @@ var ReactTable = function(_Methods) {
|
|
|
16580
16580
|
var tdProps = _.splitProps(getTdProps(finalState, rowInfo, column, _this2));
|
|
16581
16581
|
var columnProps = _.splitProps(column.getProps(finalState, rowInfo, column, _this2));
|
|
16582
16582
|
var classes = [tdProps.className, column.className, columnProps.className];
|
|
16583
|
-
var styles2 = _extends$
|
|
16584
|
-
var cellInfo = _extends$
|
|
16583
|
+
var styles2 = _extends$f({}, tdProps.style, column.style, columnProps.style);
|
|
16584
|
+
var cellInfo = _extends$f({}, rowInfo, {
|
|
16585
16585
|
isExpanded,
|
|
16586
|
-
column: _extends$
|
|
16586
|
+
column: _extends$f({}, column),
|
|
16587
16587
|
value: rowInfo.row[column.id],
|
|
16588
16588
|
pivoted: column.pivoted,
|
|
16589
16589
|
expander: column.expander,
|
|
@@ -16637,7 +16637,7 @@ var ReactTable = function(_Methods) {
|
|
|
16637
16637
|
isBranch = rowInfo.row[pivotIDKey] === column.id && cellInfo.subRows;
|
|
16638
16638
|
isPreview = pivotBy.indexOf(column.id) > pivotBy.indexOf(rowInfo.row[pivotIDKey]) && cellInfo.subRows;
|
|
16639
16639
|
if (isBranch) {
|
|
16640
|
-
resolvedCell = _.normalizeComponent(ResolvedPivotComponent, _extends$
|
|
16640
|
+
resolvedCell = _.normalizeComponent(ResolvedPivotComponent, _extends$f({}, cellInfo, {
|
|
16641
16641
|
value: row[pivotValKey]
|
|
16642
16642
|
}), row[pivotValKey]);
|
|
16643
16643
|
} else if (isPreview) {
|
|
@@ -16680,10 +16680,10 @@ var ReactTable = function(_Methods) {
|
|
|
16680
16680
|
}
|
|
16681
16681
|
return React__default.createElement(
|
|
16682
16682
|
TdComponent2,
|
|
16683
|
-
_extends$
|
|
16683
|
+
_extends$f({
|
|
16684
16684
|
key: i2 + "-" + column.id,
|
|
16685
16685
|
className: classNames(classes, !cellInfo.expandable && !show && "hidden", cellInfo.expandable && "rt-expandable", (isBranch || isPreview) && "rt-pivot"),
|
|
16686
|
-
style: _extends$
|
|
16686
|
+
style: _extends$f({}, styles2, {
|
|
16687
16687
|
flex: width + " 0 auto",
|
|
16688
16688
|
width: _.asPx(width),
|
|
16689
16689
|
maxWidth: _.asPx(maxWidth)
|
|
@@ -16713,13 +16713,13 @@ var ReactTable = function(_Methods) {
|
|
|
16713
16713
|
var tdProps = _.splitProps(getTdProps(finalState, void 0, column, _this2));
|
|
16714
16714
|
var columnProps = _.splitProps(column.getProps(finalState, void 0, column, _this2));
|
|
16715
16715
|
var classes = [tdProps.className, column.className, columnProps.className];
|
|
16716
|
-
var styles2 = _extends$
|
|
16716
|
+
var styles2 = _extends$f({}, tdProps.style, column.style, columnProps.style);
|
|
16717
16717
|
return React__default.createElement(
|
|
16718
16718
|
TdComponent2,
|
|
16719
|
-
_extends$
|
|
16719
|
+
_extends$f({
|
|
16720
16720
|
key: i + "-" + column.id,
|
|
16721
16721
|
className: classNames(classes, !show && "hidden"),
|
|
16722
|
-
style: _extends$
|
|
16722
|
+
style: _extends$f({}, styles2, {
|
|
16723
16723
|
flex: flex + " 0 auto",
|
|
16724
16724
|
width: _.asPx(width),
|
|
16725
16725
|
maxWidth: _.asPx(maxWidth)
|
|
@@ -16733,7 +16733,7 @@ var ReactTable = function(_Methods) {
|
|
|
16733
16733
|
var trProps = _.splitProps(getTrProps(finalState, void 0, void 0, _this2));
|
|
16734
16734
|
return React__default.createElement(
|
|
16735
16735
|
TrGroupComponent2,
|
|
16736
|
-
_extends$
|
|
16736
|
+
_extends$f({ key: "pad-" + i }, trGroupProps),
|
|
16737
16737
|
React__default.createElement(
|
|
16738
16738
|
TrComponent2,
|
|
16739
16739
|
{
|
|
@@ -16755,13 +16755,13 @@ var ReactTable = function(_Methods) {
|
|
|
16755
16755
|
var columnProps = _.splitProps(column.getProps(finalState, void 0, column, _this2));
|
|
16756
16756
|
var columnFooterProps = _.splitProps(column.getFooterProps(finalState, void 0, column, _this2));
|
|
16757
16757
|
var classes = [tFootTdProps.className, column.className, columnProps.className, columnFooterProps.className];
|
|
16758
|
-
var styles2 = _extends$
|
|
16758
|
+
var styles2 = _extends$f({}, tFootTdProps.style, column.style, columnProps.style, columnFooterProps.style);
|
|
16759
16759
|
return React__default.createElement(
|
|
16760
16760
|
TdComponent2,
|
|
16761
|
-
_extends$
|
|
16761
|
+
_extends$f({
|
|
16762
16762
|
key: i + "-" + column.id,
|
|
16763
16763
|
className: classNames(classes, !show && "hidden"),
|
|
16764
|
-
style: _extends$
|
|
16764
|
+
style: _extends$f({}, styles2, {
|
|
16765
16765
|
flex: width + " 0 auto",
|
|
16766
16766
|
width: _.asPx(width),
|
|
16767
16767
|
maxWidth: _.asPx(maxWidth)
|
|
@@ -16778,15 +16778,15 @@ var ReactTable = function(_Methods) {
|
|
|
16778
16778
|
var tFootTrProps = _.splitProps(getTfootTrProps(finalState, void 0, void 0, _this2));
|
|
16779
16779
|
return React__default.createElement(
|
|
16780
16780
|
TfootComponent,
|
|
16781
|
-
_extends$
|
|
16781
|
+
_extends$f({
|
|
16782
16782
|
className: tFootProps.className,
|
|
16783
|
-
style: _extends$
|
|
16783
|
+
style: _extends$f({}, tFootProps.style, {
|
|
16784
16784
|
minWidth: rowMinWidth + "px"
|
|
16785
16785
|
})
|
|
16786
16786
|
}, tFootProps.rest),
|
|
16787
16787
|
React__default.createElement(
|
|
16788
16788
|
TrComponent2,
|
|
16789
|
-
_extends$
|
|
16789
|
+
_extends$f({
|
|
16790
16790
|
className: classNames(tFootTrProps.className),
|
|
16791
16791
|
style: tFootTrProps.style
|
|
16792
16792
|
}, tFootTrProps.rest),
|
|
@@ -16796,7 +16796,7 @@ var ReactTable = function(_Methods) {
|
|
|
16796
16796
|
}, "makeColumnFooters");
|
|
16797
16797
|
var makePagination = /* @__PURE__ */ __name(function makePagination2(isTop) {
|
|
16798
16798
|
var paginationProps = _.splitProps(getPaginationProps(finalState, void 0, void 0, _this2));
|
|
16799
|
-
return React__default.createElement(PaginationComponent, _extends$
|
|
16799
|
+
return React__default.createElement(PaginationComponent, _extends$f({}, resolvedState, {
|
|
16800
16800
|
pages,
|
|
16801
16801
|
canPrevious,
|
|
16802
16802
|
canNext,
|
|
@@ -16810,9 +16810,9 @@ var ReactTable = function(_Methods) {
|
|
|
16810
16810
|
var makeTable = /* @__PURE__ */ __name(function makeTable2() {
|
|
16811
16811
|
return React__default.createElement(
|
|
16812
16812
|
"div",
|
|
16813
|
-
_extends$
|
|
16813
|
+
_extends$f({
|
|
16814
16814
|
className: classNames("ReactTable", className, rootProps.className),
|
|
16815
|
-
style: _extends$
|
|
16815
|
+
style: _extends$f({}, style2, rootProps.style)
|
|
16816
16816
|
}, rootProps.rest, {
|
|
16817
16817
|
ref: /* @__PURE__ */ __name(function ref2(r2) {
|
|
16818
16818
|
if (!r2) return;
|
|
@@ -16829,7 +16829,7 @@ var ReactTable = function(_Methods) {
|
|
|
16829
16829
|
) : null,
|
|
16830
16830
|
React__default.createElement(
|
|
16831
16831
|
TableComponent2,
|
|
16832
|
-
_extends$
|
|
16832
|
+
_extends$f({
|
|
16833
16833
|
className: classNames(tableProps.className, currentlyResizing ? "rt-resizing" : ""),
|
|
16834
16834
|
style: tableProps.style
|
|
16835
16835
|
}, tableProps.rest),
|
|
@@ -16838,9 +16838,9 @@ var ReactTable = function(_Methods) {
|
|
|
16838
16838
|
hasFilters ? makeFilters() : null,
|
|
16839
16839
|
React__default.createElement(
|
|
16840
16840
|
TbodyComponent,
|
|
16841
|
-
_extends$
|
|
16841
|
+
_extends$f({
|
|
16842
16842
|
className: classNames(tBodyProps.className),
|
|
16843
|
-
style: _extends$
|
|
16843
|
+
style: _extends$f({}, tBodyProps.style, {
|
|
16844
16844
|
minWidth: rowMinWidth + "px"
|
|
16845
16845
|
})
|
|
16846
16846
|
}, tBodyProps.rest),
|
|
@@ -16869,7 +16869,7 @@ var ReactTable = function(_Methods) {
|
|
|
16869
16869
|
noDataProps,
|
|
16870
16870
|
_.normalizeComponent(noDataText)
|
|
16871
16871
|
),
|
|
16872
|
-
React__default.createElement(LoadingComponent3, _extends$
|
|
16872
|
+
React__default.createElement(LoadingComponent3, _extends$f({ loading, loadingText }, loadingProps))
|
|
16873
16873
|
);
|
|
16874
16874
|
}, "makeTable");
|
|
16875
16875
|
return children ? children(finalState, makeTable, this) : makeTable();
|
|
@@ -20240,6 +20240,23 @@ function applyWhereClause(records, where) {
|
|
|
20240
20240
|
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
20241
20241
|
return false;
|
|
20242
20242
|
break;
|
|
20243
|
+
case "_in":
|
|
20244
|
+
if (!some(conditionValue, (item) => isEqual$3(value, item)))
|
|
20245
|
+
return false;
|
|
20246
|
+
break;
|
|
20247
|
+
case "_nin":
|
|
20248
|
+
if (some(conditionValue, (item) => isEqual$3(value, item)))
|
|
20249
|
+
return false;
|
|
20250
|
+
break;
|
|
20251
|
+
case "_regex": {
|
|
20252
|
+
try {
|
|
20253
|
+
if (!isString$1(value) || !new RegExp(conditionValue).test(value))
|
|
20254
|
+
return false;
|
|
20255
|
+
} catch (e) {
|
|
20256
|
+
return false;
|
|
20257
|
+
}
|
|
20258
|
+
break;
|
|
20259
|
+
}
|
|
20243
20260
|
default:
|
|
20244
20261
|
if (operator.startsWith("_")) {
|
|
20245
20262
|
console.warn(`Unsupported operator: ${operator}`);
|
|
@@ -24366,7 +24383,7 @@ var get$2 = /* @__PURE__ */ __name(function get(c1, c2, size, serverCanvas) {
|
|
|
24366
24383
|
checkboardCache[key] = checkboard;
|
|
24367
24384
|
return checkboard;
|
|
24368
24385
|
}, "get");
|
|
24369
|
-
var _extends$
|
|
24386
|
+
var _extends$e = Object.assign || function(target) {
|
|
24370
24387
|
for (var i = 1; i < arguments.length; i++) {
|
|
24371
24388
|
var source = arguments[i];
|
|
24372
24389
|
for (var key in source) {
|
|
@@ -24389,7 +24406,7 @@ var Checkboard = /* @__PURE__ */ __name(function Checkboard2(_ref) {
|
|
|
24389
24406
|
}
|
|
24390
24407
|
}
|
|
24391
24408
|
});
|
|
24392
|
-
return isValidElement(children) ? React__default.cloneElement(children, _extends$
|
|
24409
|
+
return isValidElement(children) ? React__default.cloneElement(children, _extends$e({}, children.props, { style: _extends$e({}, children.props.style, styles2.grid) })) : React__default.createElement("div", { style: styles2.grid });
|
|
24393
24410
|
}, "Checkboard");
|
|
24394
24411
|
Checkboard.defaultProps = {
|
|
24395
24412
|
size: 8,
|
|
@@ -24397,7 +24414,7 @@ Checkboard.defaultProps = {
|
|
|
24397
24414
|
grey: "rgba(0,0,0,.08)",
|
|
24398
24415
|
renderers: {}
|
|
24399
24416
|
};
|
|
24400
|
-
var _extends$
|
|
24417
|
+
var _extends$d = Object.assign || function(target) {
|
|
24401
24418
|
for (var i = 1; i < arguments.length; i++) {
|
|
24402
24419
|
var source = arguments[i];
|
|
24403
24420
|
for (var key in source) {
|
|
@@ -24525,7 +24542,7 @@ var Alpha = function(_ref) {
|
|
|
24525
24542
|
top: rgb.a * 100 + "%"
|
|
24526
24543
|
}
|
|
24527
24544
|
},
|
|
24528
|
-
"overwrite": _extends$
|
|
24545
|
+
"overwrite": _extends$d({}, this.props.style)
|
|
24529
24546
|
}, {
|
|
24530
24547
|
vertical: this.props.direction === "vertical",
|
|
24531
24548
|
overwrite: true
|
|
@@ -26275,7 +26292,7 @@ var isvalidColorString = /* @__PURE__ */ __name(function isvalidColorString2(str
|
|
|
26275
26292
|
var stringWithoutDegree = string2.replace("°", "");
|
|
26276
26293
|
return tinycolor(type2 + " (" + stringWithoutDegree + ")")._ok;
|
|
26277
26294
|
}, "isvalidColorString");
|
|
26278
|
-
var _extends$
|
|
26295
|
+
var _extends$c = Object.assign || function(target) {
|
|
26279
26296
|
for (var i = 1; i < arguments.length; i++) {
|
|
26280
26297
|
var source = arguments[i];
|
|
26281
26298
|
for (var key in source) {
|
|
@@ -26346,7 +26363,7 @@ var ColorWrap = /* @__PURE__ */ __name(function ColorWrap2(Picker) {
|
|
|
26346
26363
|
_this.props.onSwatchHover && _this.props.onSwatchHover(colors, event);
|
|
26347
26364
|
}
|
|
26348
26365
|
};
|
|
26349
|
-
_this.state = _extends$
|
|
26366
|
+
_this.state = _extends$c({}, toState(props.color, 0));
|
|
26350
26367
|
_this.debounce = debounce$1(function(fn4, data, event) {
|
|
26351
26368
|
fn4(data, event);
|
|
26352
26369
|
}, 100);
|
|
@@ -26360,20 +26377,20 @@ var ColorWrap = /* @__PURE__ */ __name(function ColorWrap2(Picker) {
|
|
|
26360
26377
|
if (this.props.onSwatchHover) {
|
|
26361
26378
|
optionalEvents.onSwatchHover = this.handleSwatchHover;
|
|
26362
26379
|
}
|
|
26363
|
-
return React__default.createElement(Picker, _extends$
|
|
26380
|
+
return React__default.createElement(Picker, _extends$c({}, this.props, this.state, {
|
|
26364
26381
|
onChange: this.handleChange
|
|
26365
26382
|
}, optionalEvents));
|
|
26366
26383
|
}, "render")
|
|
26367
26384
|
}], [{
|
|
26368
26385
|
key: "getDerivedStateFromProps",
|
|
26369
26386
|
value: /* @__PURE__ */ __name(function getDerivedStateFromProps(nextProps, state2) {
|
|
26370
|
-
return _extends$
|
|
26387
|
+
return _extends$c({}, toState(nextProps.color, state2.oldHue));
|
|
26371
26388
|
}, "getDerivedStateFromProps")
|
|
26372
26389
|
}]);
|
|
26373
26390
|
return ColorPicker2;
|
|
26374
26391
|
}(PureComponent || Component);
|
|
26375
|
-
ColorPicker.propTypes = _extends$
|
|
26376
|
-
ColorPicker.defaultProps = _extends$
|
|
26392
|
+
ColorPicker.propTypes = _extends$c({}, Picker.propTypes);
|
|
26393
|
+
ColorPicker.defaultProps = _extends$c({}, Picker.defaultProps, {
|
|
26377
26394
|
color: {
|
|
26378
26395
|
h: 250,
|
|
26379
26396
|
s: 0.5,
|
|
@@ -26383,7 +26400,7 @@ var ColorWrap = /* @__PURE__ */ __name(function ColorWrap2(Picker) {
|
|
|
26383
26400
|
});
|
|
26384
26401
|
return ColorPicker;
|
|
26385
26402
|
}, "ColorWrap");
|
|
26386
|
-
var _extends$
|
|
26403
|
+
var _extends$b = Object.assign || function(target) {
|
|
26387
26404
|
for (var i = 1; i < arguments.length; i++) {
|
|
26388
26405
|
var source = arguments[i];
|
|
26389
26406
|
for (var key in source) {
|
|
@@ -26456,14 +26473,14 @@ var handleFocus = /* @__PURE__ */ __name(function handleFocus2(Component2) {
|
|
|
26456
26473
|
return React__default.createElement(
|
|
26457
26474
|
Span,
|
|
26458
26475
|
{ onFocus: this.handleFocus, onBlur: this.handleBlur },
|
|
26459
|
-
React__default.createElement(Component2, _extends$
|
|
26476
|
+
React__default.createElement(Component2, _extends$b({}, this.props, this.state))
|
|
26460
26477
|
);
|
|
26461
26478
|
}, "render")
|
|
26462
26479
|
}]);
|
|
26463
26480
|
return Focus;
|
|
26464
26481
|
}(React__default.Component);
|
|
26465
26482
|
}, "handleFocus");
|
|
26466
|
-
var _extends$
|
|
26483
|
+
var _extends$a = Object.assign || function(target) {
|
|
26467
26484
|
for (var i = 1; i < arguments.length; i++) {
|
|
26468
26485
|
var source = arguments[i];
|
|
26469
26486
|
for (var key in source) {
|
|
@@ -26481,7 +26498,7 @@ var Swatch = /* @__PURE__ */ __name(function Swatch2(_ref) {
|
|
|
26481
26498
|
var transparent = color2 === "transparent";
|
|
26482
26499
|
var styles2 = reactCSS({
|
|
26483
26500
|
default: {
|
|
26484
|
-
swatch: _extends$
|
|
26501
|
+
swatch: _extends$a({
|
|
26485
26502
|
background: color2,
|
|
26486
26503
|
height: "100%",
|
|
26487
26504
|
width: "100%",
|
|
@@ -26506,7 +26523,7 @@ var Swatch = /* @__PURE__ */ __name(function Swatch2(_ref) {
|
|
|
26506
26523
|
}
|
|
26507
26524
|
return React__default.createElement(
|
|
26508
26525
|
"div",
|
|
26509
|
-
_extends$
|
|
26526
|
+
_extends$a({
|
|
26510
26527
|
style: styles2.swatch,
|
|
26511
26528
|
onClick: handleClick,
|
|
26512
26529
|
title,
|
|
@@ -26542,7 +26559,7 @@ var AlphaPointer = /* @__PURE__ */ __name(function AlphaPointer2(_ref) {
|
|
|
26542
26559
|
}, { vertical: direction === "vertical" });
|
|
26543
26560
|
return React__default.createElement("div", { style: styles2.picker });
|
|
26544
26561
|
}, "AlphaPointer");
|
|
26545
|
-
var _extends$
|
|
26562
|
+
var _extends$9 = Object.assign || function(target) {
|
|
26546
26563
|
for (var i = 1; i < arguments.length; i++) {
|
|
26547
26564
|
var source = arguments[i];
|
|
26548
26565
|
for (var key in source) {
|
|
@@ -26571,7 +26588,7 @@ var AlphaPicker = /* @__PURE__ */ __name(function AlphaPicker2(_ref) {
|
|
|
26571
26588
|
return React__default.createElement(
|
|
26572
26589
|
"div",
|
|
26573
26590
|
{ style: styles2.picker, className: "alpha-picker " + className },
|
|
26574
|
-
React__default.createElement(Alpha, _extends$
|
|
26591
|
+
React__default.createElement(Alpha, _extends$9({}, styles2.alpha, {
|
|
26575
26592
|
rgb,
|
|
26576
26593
|
hsl,
|
|
26577
26594
|
pointer,
|
|
@@ -27817,7 +27834,7 @@ var SliderPointer$1 = /* @__PURE__ */ __name(function SliderPointer(_ref) {
|
|
|
27817
27834
|
}, { vertical: direction === "vertical" });
|
|
27818
27835
|
return React__default.createElement("div", { style: styles2.picker });
|
|
27819
27836
|
}, "SliderPointer");
|
|
27820
|
-
var _extends$
|
|
27837
|
+
var _extends$8 = Object.assign || function(target) {
|
|
27821
27838
|
for (var i = 1; i < arguments.length; i++) {
|
|
27822
27839
|
var source = arguments[i];
|
|
27823
27840
|
for (var key in source) {
|
|
@@ -27848,7 +27865,7 @@ var HuePicker = /* @__PURE__ */ __name(function HuePicker2(_ref) {
|
|
|
27848
27865
|
return React__default.createElement(
|
|
27849
27866
|
"div",
|
|
27850
27867
|
{ style: styles2.picker, className: "hue-picker " + className },
|
|
27851
|
-
React__default.createElement(Hue, _extends$
|
|
27868
|
+
React__default.createElement(Hue, _extends$8({}, styles2.hue, {
|
|
27852
27869
|
hsl,
|
|
27853
27870
|
pointer,
|
|
27854
27871
|
onChange: handleChange,
|
|
@@ -28632,7 +28649,7 @@ var SketchFields = /* @__PURE__ */ __name(function SketchFields2(_ref) {
|
|
|
28632
28649
|
)
|
|
28633
28650
|
);
|
|
28634
28651
|
}, "SketchFields");
|
|
28635
|
-
var _extends$
|
|
28652
|
+
var _extends$7 = Object.assign || function(target) {
|
|
28636
28653
|
for (var i = 1; i < arguments.length; i++) {
|
|
28637
28654
|
var source = arguments[i];
|
|
28638
28655
|
for (var key in source) {
|
|
@@ -28689,7 +28706,7 @@ var SketchPresetColors = /* @__PURE__ */ __name(function SketchPresetColors2(_re
|
|
|
28689
28706
|
return React__default.createElement(
|
|
28690
28707
|
"div",
|
|
28691
28708
|
{ key, style: styles2.swatchWrap },
|
|
28692
|
-
React__default.createElement(Swatch$1, _extends$
|
|
28709
|
+
React__default.createElement(Swatch$1, _extends$7({}, c2, {
|
|
28693
28710
|
style: styles2.swatch,
|
|
28694
28711
|
onClick: handleClick,
|
|
28695
28712
|
onHover: onSwatchHover,
|
|
@@ -28707,7 +28724,7 @@ SketchPresetColors.propTypes = {
|
|
|
28707
28724
|
title: PropTypes.string
|
|
28708
28725
|
})])).isRequired
|
|
28709
28726
|
};
|
|
28710
|
-
var _extends$
|
|
28727
|
+
var _extends$6 = Object.assign || function(target) {
|
|
28711
28728
|
for (var i = 1; i < arguments.length; i++) {
|
|
28712
28729
|
var source = arguments[i];
|
|
28713
28730
|
for (var key in source) {
|
|
@@ -28721,7 +28738,7 @@ var _extends$5 = Object.assign || function(target) {
|
|
|
28721
28738
|
var Sketch = /* @__PURE__ */ __name(function Sketch2(_ref) {
|
|
28722
28739
|
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;
|
|
28723
28740
|
var styles2 = reactCSS(merge$1({
|
|
28724
|
-
"default": _extends$
|
|
28741
|
+
"default": _extends$6({
|
|
28725
28742
|
picker: {
|
|
28726
28743
|
width,
|
|
28727
28744
|
padding: "10px 10px 0",
|
|
@@ -35016,7 +35033,7 @@ function createLocation(path2, state2, key, currentLocation) {
|
|
|
35016
35033
|
location2 = parsePath(path2);
|
|
35017
35034
|
location2.state = state2;
|
|
35018
35035
|
} else {
|
|
35019
|
-
location2 = _extends$
|
|
35036
|
+
location2 = _extends$k({}, path2);
|
|
35020
35037
|
if (location2.pathname === void 0) location2.pathname = "";
|
|
35021
35038
|
if (location2.search) {
|
|
35022
35039
|
if (location2.search.charAt(0) !== "?") location2.search = "?" + location2.search;
|
|
@@ -35170,7 +35187,7 @@ function createBrowserHistory(props) {
|
|
|
35170
35187
|
__name(createKey2, "createKey");
|
|
35171
35188
|
var transitionManager = createTransitionManager();
|
|
35172
35189
|
function setState(nextState) {
|
|
35173
|
-
_extends$
|
|
35190
|
+
_extends$k(history, nextState);
|
|
35174
35191
|
history.length = globalHistory.length;
|
|
35175
35192
|
transitionManager.notifyListeners(history.location, history.action);
|
|
35176
35193
|
}
|
|
@@ -35405,7 +35422,7 @@ function createHashHistory(props) {
|
|
|
35405
35422
|
__name(getDOMLocation, "getDOMLocation");
|
|
35406
35423
|
var transitionManager = createTransitionManager();
|
|
35407
35424
|
function setState(nextState) {
|
|
35408
|
-
_extends$
|
|
35425
|
+
_extends$k(history, nextState);
|
|
35409
35426
|
history.length = globalHistory.length;
|
|
35410
35427
|
transitionManager.notifyListeners(history.location, history.action);
|
|
35411
35428
|
}
|
|
@@ -35600,7 +35617,7 @@ function createMemoryHistory(props) {
|
|
|
35600
35617
|
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;
|
|
35601
35618
|
var transitionManager = createTransitionManager();
|
|
35602
35619
|
function setState(nextState) {
|
|
35603
|
-
_extends$
|
|
35620
|
+
_extends$k(history, nextState);
|
|
35604
35621
|
history.length = history.entries.length;
|
|
35605
35622
|
transitionManager.notifyListeners(history.location, history.action);
|
|
35606
35623
|
}
|
|
@@ -35709,16 +35726,16 @@ function createMemoryHistory(props) {
|
|
|
35709
35726
|
return history;
|
|
35710
35727
|
}
|
|
35711
35728
|
__name(createMemoryHistory, "createMemoryHistory");
|
|
35712
|
-
function _extends$
|
|
35713
|
-
return _extends$
|
|
35729
|
+
function _extends$5() {
|
|
35730
|
+
return _extends$5 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
35714
35731
|
for (var e = 1; e < arguments.length; e++) {
|
|
35715
35732
|
var t2 = arguments[e];
|
|
35716
35733
|
for (var r2 in t2) ({}).hasOwnProperty.call(t2, r2) && (n2[r2] = t2[r2]);
|
|
35717
35734
|
}
|
|
35718
35735
|
return n2;
|
|
35719
|
-
}, _extends$
|
|
35736
|
+
}, _extends$5.apply(null, arguments);
|
|
35720
35737
|
}
|
|
35721
|
-
__name(_extends$
|
|
35738
|
+
__name(_extends$5, "_extends$5");
|
|
35722
35739
|
var pathToRegexp$1 = { exports: {} };
|
|
35723
35740
|
var isarray;
|
|
35724
35741
|
var hasRequiredIsarray;
|
|
@@ -36577,7 +36594,7 @@ __name(isEmptyChildren, "isEmptyChildren");
|
|
|
36577
36594
|
!context$1 ? invariant$1() : void 0;
|
|
36578
36595
|
var location2 = _this.props.location || context$1.location;
|
|
36579
36596
|
var match = _this.props.computedMatch ? _this.props.computedMatch : _this.props.path ? matchPath(location2.pathname, _this.props) : context$1.match;
|
|
36580
|
-
var props = _extends$
|
|
36597
|
+
var props = _extends$5({}, context$1, {
|
|
36581
36598
|
location: location2,
|
|
36582
36599
|
match
|
|
36583
36600
|
});
|
|
@@ -36598,7 +36615,7 @@ function addLeadingSlash(path2) {
|
|
|
36598
36615
|
__name(addLeadingSlash, "addLeadingSlash");
|
|
36599
36616
|
function addBasename(basename2, location2) {
|
|
36600
36617
|
if (!basename2) return location2;
|
|
36601
|
-
return _extends$
|
|
36618
|
+
return _extends$5({}, location2, {
|
|
36602
36619
|
pathname: addLeadingSlash(basename2) + location2.pathname
|
|
36603
36620
|
});
|
|
36604
36621
|
}
|
|
@@ -36607,7 +36624,7 @@ function stripBasename(basename2, location2) {
|
|
|
36607
36624
|
if (!basename2) return location2;
|
|
36608
36625
|
var base = addLeadingSlash(basename2);
|
|
36609
36626
|
if (location2.pathname.indexOf(base) !== 0) return location2;
|
|
36610
|
-
return _extends$
|
|
36627
|
+
return _extends$5({}, location2, {
|
|
36611
36628
|
pathname: location2.pathname.substr(base.length)
|
|
36612
36629
|
});
|
|
36613
36630
|
}
|
|
@@ -36671,7 +36688,7 @@ __name(noop$6, "noop$6");
|
|
|
36671
36688
|
listen: this.handleListen,
|
|
36672
36689
|
block: this.handleBlock
|
|
36673
36690
|
};
|
|
36674
|
-
return /* @__PURE__ */ React__default.createElement(Router, _extends$
|
|
36691
|
+
return /* @__PURE__ */ React__default.createElement(Router, _extends$5({}, rest, {
|
|
36675
36692
|
history,
|
|
36676
36693
|
staticContext: context2
|
|
36677
36694
|
}));
|
|
@@ -36695,7 +36712,7 @@ __name(noop$6, "noop$6");
|
|
|
36695
36712
|
if (match == null && /* @__PURE__ */ React__default.isValidElement(child)) {
|
|
36696
36713
|
element2 = child;
|
|
36697
36714
|
var path2 = child.props.path || child.props.from;
|
|
36698
|
-
match = path2 ? matchPath(location2.pathname, _extends$
|
|
36715
|
+
match = path2 ? matchPath(location2.pathname, _extends$5({}, child.props, {
|
|
36699
36716
|
path: path2
|
|
36700
36717
|
})) : context2.match;
|
|
36701
36718
|
}
|
|
@@ -36714,7 +36731,7 @@ function withRouter(Component2) {
|
|
|
36714
36731
|
var wrappedComponentRef = props.wrappedComponentRef, remainingProps = _objectWithoutPropertiesLoose$3(props, ["wrappedComponentRef"]);
|
|
36715
36732
|
return /* @__PURE__ */ React__default.createElement(context.Consumer, null, function(context2) {
|
|
36716
36733
|
!context2 ? invariant$1() : void 0;
|
|
36717
|
-
return /* @__PURE__ */ React__default.createElement(Component2, _extends$
|
|
36734
|
+
return /* @__PURE__ */ React__default.createElement(Component2, _extends$5({}, remainingProps, context2, {
|
|
36718
36735
|
ref: wrappedComponentRef
|
|
36719
36736
|
}));
|
|
36720
36737
|
});
|
|
@@ -36735,16 +36752,16 @@ function _inheritsLoose$1(t2, o2) {
|
|
|
36735
36752
|
t2.prototype = Object.create(o2.prototype), t2.prototype.constructor = t2, _setPrototypeOf$1(t2, o2);
|
|
36736
36753
|
}
|
|
36737
36754
|
__name(_inheritsLoose$1, "_inheritsLoose$1");
|
|
36738
|
-
function _extends$
|
|
36739
|
-
return _extends$
|
|
36755
|
+
function _extends$4() {
|
|
36756
|
+
return _extends$4 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
36740
36757
|
for (var e = 1; e < arguments.length; e++) {
|
|
36741
36758
|
var t2 = arguments[e];
|
|
36742
36759
|
for (var r2 in t2) ({}).hasOwnProperty.call(t2, r2) && (n2[r2] = t2[r2]);
|
|
36743
36760
|
}
|
|
36744
36761
|
return n2;
|
|
36745
|
-
}, _extends$
|
|
36762
|
+
}, _extends$4.apply(null, arguments);
|
|
36746
36763
|
}
|
|
36747
|
-
__name(_extends$
|
|
36764
|
+
__name(_extends$4, "_extends$4");
|
|
36748
36765
|
function _objectWithoutPropertiesLoose$2(r2, e) {
|
|
36749
36766
|
if (null == r2) return {};
|
|
36750
36767
|
var t2 = {};
|
|
@@ -36817,7 +36834,7 @@ __name(isModifiedEvent, "isModifiedEvent");
|
|
|
36817
36834
|
var LinkAnchor = forwardRef(function(_ref, forwardedRef) {
|
|
36818
36835
|
var innerRef = _ref.innerRef, navigate = _ref.navigate, _onClick = _ref.onClick, rest = _objectWithoutPropertiesLoose$2(_ref, ["innerRef", "navigate", "onClick"]);
|
|
36819
36836
|
var target = rest.target;
|
|
36820
|
-
var props = _extends$
|
|
36837
|
+
var props = _extends$4({}, rest, {
|
|
36821
36838
|
onClick: /* @__PURE__ */ __name(function onClick(event) {
|
|
36822
36839
|
try {
|
|
36823
36840
|
if (_onClick) _onClick(event);
|
|
@@ -36848,7 +36865,7 @@ var Link = forwardRef(function(_ref2, forwardedRef) {
|
|
|
36848
36865
|
var history = context2.history;
|
|
36849
36866
|
var location2 = normalizeToLocation(resolveToLocation(to, context2.location), context2.location);
|
|
36850
36867
|
var href = location2 ? history.createHref(location2) : "";
|
|
36851
|
-
var props = _extends$
|
|
36868
|
+
var props = _extends$4({}, rest, {
|
|
36852
36869
|
href,
|
|
36853
36870
|
navigate: /* @__PURE__ */ __name(function navigate() {
|
|
36854
36871
|
var location22 = resolveToLocation(to, context2.location);
|
|
@@ -36900,9 +36917,9 @@ forwardRef$1(function(_ref, forwardedRef) {
|
|
|
36900
36917
|
var style2 = typeof styleProp === "function" ? styleProp(isActive2) : styleProp;
|
|
36901
36918
|
if (isActive2) {
|
|
36902
36919
|
className = joinClassnames(className, activeClassName);
|
|
36903
|
-
style2 = _extends$
|
|
36920
|
+
style2 = _extends$4({}, style2, activeStyle);
|
|
36904
36921
|
}
|
|
36905
|
-
var props = _extends$
|
|
36922
|
+
var props = _extends$4({
|
|
36906
36923
|
"aria-current": isActive2 && ariaCurrent || null,
|
|
36907
36924
|
className,
|
|
36908
36925
|
style: style2,
|
|
@@ -50794,7 +50811,7 @@ const FilterAndSortMenu = /* @__PURE__ */ __name(({
|
|
|
50794
50811
|
filterValToUse = false;
|
|
50795
50812
|
} else if (ccSelectedFilter2 === "inList" || ccSelectedFilter2 === "notInList") {
|
|
50796
50813
|
if (dataType === "number") {
|
|
50797
|
-
filterValToUse = filterValue && filterValue.map((val2) => parseFloat(val2
|
|
50814
|
+
filterValToUse = filterValue && filterValue.map((val2) => parseFloat(`${val2}`.replaceAll(",", "")));
|
|
50798
50815
|
}
|
|
50799
50816
|
}
|
|
50800
50817
|
if (isInvalidFilterValue(filterValToUse)) {
|
|
@@ -50900,7 +50917,7 @@ const FilterInput = /* @__PURE__ */ __name(({
|
|
|
50900
50917
|
multi: true,
|
|
50901
50918
|
creatable: true,
|
|
50902
50919
|
value: (filterValue || []).map((val2) => ({
|
|
50903
|
-
label: val2
|
|
50920
|
+
label: `${val2}`,
|
|
50904
50921
|
value: val2
|
|
50905
50922
|
})),
|
|
50906
50923
|
onChange: /* @__PURE__ */ __name((selectedOptions) => {
|
|
@@ -52849,8 +52866,8 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
52849
52866
|
return Constructor;
|
|
52850
52867
|
}
|
|
52851
52868
|
__name(_createClass, "_createClass");
|
|
52852
|
-
function _extends$
|
|
52853
|
-
_extends$
|
|
52869
|
+
function _extends$3() {
|
|
52870
|
+
_extends$3 = Object.assign ? Object.assign.bind() : function(target) {
|
|
52854
52871
|
for (var i = 1; i < arguments.length; i++) {
|
|
52855
52872
|
var source = arguments[i];
|
|
52856
52873
|
for (var key in source) {
|
|
@@ -52861,9 +52878,9 @@ function _extends$2() {
|
|
|
52861
52878
|
}
|
|
52862
52879
|
return target;
|
|
52863
52880
|
};
|
|
52864
|
-
return _extends$
|
|
52881
|
+
return _extends$3.apply(this, arguments);
|
|
52865
52882
|
}
|
|
52866
|
-
__name(_extends$
|
|
52883
|
+
__name(_extends$3, "_extends$3");
|
|
52867
52884
|
function _inheritsLoose(subClass, superClass) {
|
|
52868
52885
|
subClass.prototype = Object.create(superClass.prototype);
|
|
52869
52886
|
subClass.prototype.constructor = subClass;
|
|
@@ -52950,7 +52967,7 @@ function createDecoratorAnnotation(annotation) {
|
|
|
52950
52967
|
__name(createDecoratorAnnotation, "createDecoratorAnnotation");
|
|
52951
52968
|
function storeAnnotation(prototype, key, annotation) {
|
|
52952
52969
|
if (!hasProp(prototype, storedAnnotationsSymbol)) {
|
|
52953
|
-
addHiddenProp(prototype, storedAnnotationsSymbol, _extends$
|
|
52970
|
+
addHiddenProp(prototype, storedAnnotationsSymbol, _extends$3({}, prototype[storedAnnotationsSymbol]));
|
|
52954
52971
|
}
|
|
52955
52972
|
if (!isOverride(annotation)) {
|
|
52956
52973
|
prototype[storedAnnotationsSymbol][key] = annotation;
|
|
@@ -53319,7 +53336,7 @@ function make_$3(adm, key, descriptor) {
|
|
|
53319
53336
|
__name(make_$3, "make_$3");
|
|
53320
53337
|
function extend_$3(adm, key, descriptor, proxyTrap) {
|
|
53321
53338
|
assertComputedDescriptor(adm, this, key, descriptor);
|
|
53322
|
-
return adm.defineComputedProperty_(key, _extends$
|
|
53339
|
+
return adm.defineComputedProperty_(key, _extends$3({}, this.options_, {
|
|
53323
53340
|
get: descriptor.get,
|
|
53324
53341
|
set: descriptor.set
|
|
53325
53342
|
}), proxyTrap);
|
|
@@ -53330,7 +53347,7 @@ function decorate_20223_$3(get42, context2) {
|
|
|
53330
53347
|
var key = context2.name, addInitializer = context2.addInitializer;
|
|
53331
53348
|
addInitializer(function() {
|
|
53332
53349
|
var adm = asObservableObject(this)[$mobx];
|
|
53333
|
-
var options = _extends$
|
|
53350
|
+
var options = _extends$3({}, ann.options_, {
|
|
53334
53351
|
get: get42,
|
|
53335
53352
|
context: this
|
|
53336
53353
|
});
|
|
@@ -56129,7 +56146,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
|
|
|
56129
56146
|
}
|
|
56130
56147
|
var newValue = change2.newValue;
|
|
56131
56148
|
if (descriptor.value !== newValue) {
|
|
56132
|
-
descriptor = _extends$
|
|
56149
|
+
descriptor = _extends$3({}, descriptor, {
|
|
56133
56150
|
value: newValue
|
|
56134
56151
|
});
|
|
56135
56152
|
}
|
|
@@ -71759,8 +71776,8 @@ const batch$1 = createAction("Batch", function() {
|
|
|
71759
71776
|
}
|
|
71760
71777
|
return actions2;
|
|
71761
71778
|
});
|
|
71762
|
-
function _extends$
|
|
71763
|
-
_extends$
|
|
71779
|
+
function _extends$2() {
|
|
71780
|
+
_extends$2 = Object.assign || function(target) {
|
|
71764
71781
|
for (var i = 1; i < arguments.length; i++) {
|
|
71765
71782
|
var source = arguments[i];
|
|
71766
71783
|
for (var key in source) {
|
|
@@ -71771,9 +71788,9 @@ function _extends$1() {
|
|
|
71771
71788
|
}
|
|
71772
71789
|
return target;
|
|
71773
71790
|
};
|
|
71774
|
-
return _extends$
|
|
71791
|
+
return _extends$2.apply(this, arguments);
|
|
71775
71792
|
}
|
|
71776
|
-
__name(_extends$
|
|
71793
|
+
__name(_extends$2, "_extends$2");
|
|
71777
71794
|
function normalizeType(typeOrActionCreator) {
|
|
71778
71795
|
if (typeOrActionCreator && typeOrActionCreator.getType) {
|
|
71779
71796
|
return typeOrActionCreator.toString();
|
|
@@ -71788,7 +71805,7 @@ function createReducer() {
|
|
|
71788
71805
|
payload: true,
|
|
71789
71806
|
fallback: null
|
|
71790
71807
|
};
|
|
71791
|
-
var reducer2 = _extends$
|
|
71808
|
+
var reducer2 = _extends$2(reduce2, {
|
|
71792
71809
|
has: has4,
|
|
71793
71810
|
on: on2,
|
|
71794
71811
|
off,
|
|
@@ -100895,6 +100912,16 @@ var rafSchd = /* @__PURE__ */ __name(function rafSchd2(fn4) {
|
|
|
100895
100912
|
};
|
|
100896
100913
|
return wrapperFn;
|
|
100897
100914
|
}, "rafSchd");
|
|
100915
|
+
function _extends$1() {
|
|
100916
|
+
return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
100917
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
100918
|
+
var t2 = arguments[e];
|
|
100919
|
+
for (var r2 in t2) ({}).hasOwnProperty.call(t2, r2) && (n2[r2] = t2[r2]);
|
|
100920
|
+
}
|
|
100921
|
+
return n2;
|
|
100922
|
+
}, _extends$1.apply(null, arguments);
|
|
100923
|
+
}
|
|
100924
|
+
__name(_extends$1, "_extends$1");
|
|
100898
100925
|
function log(type2, message) {
|
|
100899
100926
|
{
|
|
100900
100927
|
return;
|
|
@@ -105426,7 +105453,7 @@ function useAnnouncer(contextId) {
|
|
|
105426
105453
|
el.id = id2;
|
|
105427
105454
|
el.setAttribute("aria-live", "assertive");
|
|
105428
105455
|
el.setAttribute("aria-atomic", "true");
|
|
105429
|
-
_extends$
|
|
105456
|
+
_extends$1(el.style, visuallyHidden$1);
|
|
105430
105457
|
getBodyElement().appendChild(el);
|
|
105431
105458
|
return /* @__PURE__ */ __name(function cleanup() {
|
|
105432
105459
|
setTimeout(/* @__PURE__ */ __name(function remove3() {
|
|
@@ -107302,7 +107329,7 @@ function PublicDraggable(props) {
|
|
|
107302
107329
|
const isEnabled = typeof props.isDragDisabled === "boolean" ? !props.isDragDisabled : true;
|
|
107303
107330
|
const canDragInteractiveElements = Boolean(props.disableInteractiveElementBlocking);
|
|
107304
107331
|
const shouldRespectForcePress = Boolean(props.shouldRespectForcePress);
|
|
107305
|
-
return React__default.createElement(PrivateDraggable, _extends$
|
|
107332
|
+
return React__default.createElement(PrivateDraggable, _extends$1({}, props, {
|
|
107306
107333
|
isClone: false,
|
|
107307
107334
|
isEnabled,
|
|
107308
107335
|
canDragInteractiveElements,
|
|
@@ -110976,10 +111003,39 @@ const _AnnotationPositioner = class _AnnotationPositioner extends React__default
|
|
|
110976
111003
|
__name(_AnnotationPositioner, "AnnotationPositioner");
|
|
110977
111004
|
let AnnotationPositioner = _AnnotationPositioner;
|
|
110978
111005
|
let measureCanvas;
|
|
110979
|
-
|
|
111006
|
+
let cachedFontSize = null;
|
|
111007
|
+
function getVeMonospaceFontSize() {
|
|
111008
|
+
if (cachedFontSize !== null) {
|
|
111009
|
+
return cachedFontSize;
|
|
111010
|
+
}
|
|
111011
|
+
const tempElement = document.createElement("div");
|
|
111012
|
+
tempElement.className = "ve-monospace-font";
|
|
111013
|
+
tempElement.style.position = "absolute";
|
|
111014
|
+
tempElement.style.visibility = "hidden";
|
|
111015
|
+
tempElement.style.pointerEvents = "none";
|
|
111016
|
+
document.body.appendChild(tempElement);
|
|
111017
|
+
try {
|
|
111018
|
+
const computedStyle = window.getComputedStyle(tempElement);
|
|
111019
|
+
const fontSize = parseFloat(computedStyle.fontSize);
|
|
111020
|
+
cachedFontSize = fontSize || ANNOTATION_LABEL_FONT_WIDTH;
|
|
111021
|
+
return cachedFontSize;
|
|
111022
|
+
} catch (error) {
|
|
111023
|
+
console.warn(
|
|
111024
|
+
"Failed to compute ve-monospace-font size, using fallback",
|
|
111025
|
+
error
|
|
111026
|
+
);
|
|
111027
|
+
cachedFontSize = ANNOTATION_LABEL_FONT_WIDTH;
|
|
111028
|
+
return cachedFontSize;
|
|
111029
|
+
} finally {
|
|
111030
|
+
document.body.removeChild(tempElement);
|
|
111031
|
+
}
|
|
111032
|
+
}
|
|
111033
|
+
__name(getVeMonospaceFontSize, "getVeMonospaceFontSize");
|
|
111034
|
+
function getAnnotationTextWidth(text2, fontFamily = "monospace") {
|
|
110980
111035
|
if (!measureCanvas) {
|
|
110981
111036
|
measureCanvas = document.createElement("canvas");
|
|
110982
111037
|
}
|
|
111038
|
+
const fontSize = getVeMonospaceFontSize();
|
|
110983
111039
|
const ctx = measureCanvas.getContext("2d");
|
|
110984
111040
|
ctx.font = `${fontSize}px ${fontFamily}`;
|
|
110985
111041
|
return ctx.measureText(text2).width;
|
|
@@ -110987,7 +111043,8 @@ function getAnnotationTextWidth(text2, fontSize = ANNOTATION_LABEL_FONT_WIDTH, f
|
|
|
110987
111043
|
__name(getAnnotationTextWidth, "getAnnotationTextWidth");
|
|
110988
111044
|
const doesLabelFitInAnnotation = /* @__PURE__ */ __name((text2 = "", { range: range2, width }, charWidth2) => {
|
|
110989
111045
|
const textLength = getAnnotationTextWidth(text2);
|
|
110990
|
-
const
|
|
111046
|
+
const fontSize = getVeMonospaceFontSize();
|
|
111047
|
+
const widthMinusOne = range2 ? getWidth(range2, charWidth2, 0) - fontSize * 2 : width - fontSize * 2;
|
|
110991
111048
|
return widthMinusOne > textLength;
|
|
110992
111049
|
}, "doesLabelFitInAnnotation");
|
|
110993
111050
|
function getAnnotationClassnames({ overlapsSelf }, { viewName, type: type2 }) {
|
|
@@ -117133,7 +117190,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
117133
117190
|
input.click();
|
|
117134
117191
|
}
|
|
117135
117192
|
__name(showFileDialog, "showFileDialog");
|
|
117136
|
-
const version = "0.8.
|
|
117193
|
+
const version = "0.8.37";
|
|
117137
117194
|
const packageJson = {
|
|
117138
117195
|
version
|
|
117139
117196
|
};
|
|
@@ -127634,14 +127691,13 @@ const _ComponentToPrint = class _ComponentToPrint extends React__default.Compone
|
|
|
127634
127691
|
};
|
|
127635
127692
|
__name(_ComponentToPrint, "ComponentToPrint");
|
|
127636
127693
|
let ComponentToPrint = _ComponentToPrint;
|
|
127637
|
-
const sizeSchema = /* @__PURE__ */ __name((
|
|
127694
|
+
const sizeSchema = /* @__PURE__ */ __name(() => ({
|
|
127638
127695
|
path: "size",
|
|
127639
127696
|
type: "number",
|
|
127640
|
-
render: /* @__PURE__ */ __name((val2,
|
|
127641
|
-
const record = isProtein2 ? convertDnaCaretPositionOrRangeToAA(_record) : _record;
|
|
127697
|
+
render: /* @__PURE__ */ __name((val2, record) => {
|
|
127642
127698
|
const base1Range = convertRangeTo1Based(record);
|
|
127643
127699
|
const hasJoinedLocations = record.locations && record.locations.length > 1;
|
|
127644
|
-
return /* @__PURE__ */ React__default.createElement("span", null,
|
|
127700
|
+
return /* @__PURE__ */ React__default.createElement("span", null, val2, " ", /* @__PURE__ */ React__default.createElement("span", { style: { fontSize: 10 } }, hasJoinedLocations ? record.locations.map((loc, i) => {
|
|
127645
127701
|
const base1Range2 = convertRangeTo1Based(loc);
|
|
127646
127702
|
return /* @__PURE__ */ React__default.createElement("span", { key: i }, "(", base1Range2.start, "-", base1Range2.end, ")");
|
|
127647
127703
|
}) : /* @__PURE__ */ React__default.createElement("span", null, "(", base1Range.start, "-", base1Range.end, ")")));
|
|
@@ -127651,11 +127707,7 @@ const getMemoOrfs = /* @__PURE__ */ (() => {
|
|
|
127651
127707
|
let lastDeps;
|
|
127652
127708
|
let lastResult;
|
|
127653
127709
|
return (editorState) => {
|
|
127654
|
-
const {
|
|
127655
|
-
sequenceData: sequenceData2,
|
|
127656
|
-
minimumOrfSize: minimumOrfSize2,
|
|
127657
|
-
useAdditionalOrfStartCodons: useAdditionalOrfStartCodons2
|
|
127658
|
-
} = editorState;
|
|
127710
|
+
const { sequenceData: sequenceData2, minimumOrfSize: minimumOrfSize2, useAdditionalOrfStartCodons: useAdditionalOrfStartCodons2 } = editorState;
|
|
127659
127711
|
const { sequence: sequence2, circular: circular2 } = sequenceData2;
|
|
127660
127712
|
const deps = {
|
|
127661
127713
|
sequence: sequence2,
|
|
@@ -133672,6 +133724,7 @@ const RemoveDuplicatesDialog = /* @__PURE__ */ __name((props) => {
|
|
|
133672
133724
|
const ignoreName = useFormValue(dialogFormName, "ignoreName");
|
|
133673
133725
|
const ignoreStartAndEnd = useFormValue(dialogFormName, "ignoreStartAndEnd");
|
|
133674
133726
|
const ignoreStrand = useFormValue(dialogFormName, "ignoreStrand");
|
|
133727
|
+
const isProteinSeq = isProtein2 || sequenceData2.isProtein;
|
|
133675
133728
|
const recomputeDups = useCallback$1(
|
|
133676
133729
|
(values3) => {
|
|
133677
133730
|
const ignoreName2 = values3 == null ? void 0 : values3.ignoreName;
|
|
@@ -133680,17 +133733,20 @@ const RemoveDuplicatesDialog = /* @__PURE__ */ __name((props) => {
|
|
|
133680
133733
|
const annotations = sequenceData2[type2];
|
|
133681
133734
|
const newDups = [];
|
|
133682
133735
|
const seqsHashByStartEndStrandName = {};
|
|
133683
|
-
forEach$1(annotations, (
|
|
133684
|
-
const
|
|
133736
|
+
forEach$1(annotations, (_annotation) => {
|
|
133737
|
+
const annotation = isProteinSeq ? convertDnaCaretPositionOrRangeToAA(_annotation) : _annotation;
|
|
133738
|
+
const hash2 = `${ignoreStartAndEnd2 ? "" : annotation.start}&${ignoreStartAndEnd2 ? "" : annotation.end}&${ignoreStrand2 ? "" : annotation.strand}&${ignoreName2 ? "" : annotation.name}`;
|
|
133685
133739
|
if (seqsHashByStartEndStrandName[hash2]) {
|
|
133686
|
-
newDups.push(__spreadProps(__spreadValues({},
|
|
133740
|
+
newDups.push(__spreadProps(__spreadValues({}, annotation), {
|
|
133741
|
+
size: getRangeLength(annotation, sequenceLength)
|
|
133742
|
+
}));
|
|
133687
133743
|
} else {
|
|
133688
133744
|
seqsHashByStartEndStrandName[hash2] = true;
|
|
133689
133745
|
}
|
|
133690
133746
|
});
|
|
133691
133747
|
return newDups;
|
|
133692
133748
|
},
|
|
133693
|
-
[sequenceData2, sequenceLength, type2]
|
|
133749
|
+
[sequenceData2, sequenceLength, type2, isProteinSeq]
|
|
133694
133750
|
);
|
|
133695
133751
|
const [dups, setDups] = useState(recomputeDups);
|
|
133696
133752
|
const selectedIds = useMemo$1(() => dups.map((d2) => d2.id), [dups]);
|
|
@@ -133712,11 +133768,11 @@ const RemoveDuplicatesDialog = /* @__PURE__ */ __name((props) => {
|
|
|
133712
133768
|
fields: [
|
|
133713
133769
|
{ path: "name", type: "string" },
|
|
133714
133770
|
// ...(noType ? [] : [{ path: "type", type: "string" }]),
|
|
133715
|
-
sizeSchema(
|
|
133771
|
+
sizeSchema(),
|
|
133716
133772
|
{ path: "strand", type: "string" }
|
|
133717
133773
|
]
|
|
133718
133774
|
}),
|
|
133719
|
-
[
|
|
133775
|
+
[]
|
|
133720
133776
|
);
|
|
133721
133777
|
return /* @__PURE__ */ React__default.createElement("div", { className: classNames(Classes.DIALOG_BODY, "tg-min-width-dialog") }, /* @__PURE__ */ React__default.createElement(
|
|
133722
133778
|
WrappedDT,
|
|
@@ -142354,7 +142410,7 @@ function withContentRect(types2) {
|
|
|
142354
142410
|
_this$props.innerRef;
|
|
142355
142411
|
_this$props.onResize;
|
|
142356
142412
|
var props = _objectWithoutPropertiesLoose$4(_this$props, ["innerRef", "onResize"]);
|
|
142357
|
-
return createElement(WrappedComponent, _extends$
|
|
142413
|
+
return createElement(WrappedComponent, _extends$k({}, props, {
|
|
142358
142414
|
measureRef: this._handleRef,
|
|
142359
142415
|
measure: this.measure,
|
|
142360
142416
|
contentRect: this.state.contentRect
|
|
@@ -144177,14 +144233,15 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
|
|
|
144177
144233
|
const annotationPropertiesSelectedEntities = _annotationPropertiesSelectedEntities.filter((a2) => annotations[a2.id]);
|
|
144178
144234
|
const deleteAnnotation = props[`delete${annotationTypeUpper}`];
|
|
144179
144235
|
const annotationsToUse = React__default.useMemo(
|
|
144180
|
-
() => map$3(annotations, (
|
|
144236
|
+
() => map$3(annotations, (_annotation) => {
|
|
144237
|
+
const annotation = isProtein2 ? convertDnaCaretPositionOrRangeToAA(_annotation) : _annotation;
|
|
144181
144238
|
return __spreadProps(__spreadValues(__spreadValues({}, annotation), annotation.strand === void 0 && {
|
|
144182
144239
|
strand: annotation.forward ? 1 : -1
|
|
144183
144240
|
}), {
|
|
144184
144241
|
size: getRangeLength(annotation, sequenceLength)
|
|
144185
144242
|
});
|
|
144186
144243
|
}),
|
|
144187
|
-
[annotations, sequenceLength]
|
|
144244
|
+
[annotations, sequenceLength, isProtein2]
|
|
144188
144245
|
);
|
|
144189
144246
|
const keyedPartTags = (_a2 = getKeyedTagsAndTagOptions(allPartTags)) != null ? _a2 : {};
|
|
144190
144247
|
const additionalColumns = ((_c = (_b2 = PropertiesProps == null ? void 0 : PropertiesProps.propertiesList) == null ? void 0 : _b2.find(
|
|
@@ -144254,7 +144311,7 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
|
|
|
144254
144311
|
}, "render")
|
|
144255
144312
|
}
|
|
144256
144313
|
],
|
|
144257
|
-
sizeSchema(
|
|
144314
|
+
sizeSchema(),
|
|
144258
144315
|
...withTags && allPartTags ? [
|
|
144259
144316
|
{
|
|
144260
144317
|
path: "tags",
|
|
@@ -144748,7 +144805,7 @@ const _OrfProperties = class _OrfProperties extends React__default.Component {
|
|
|
144748
144805
|
displayName: "Size (aa)",
|
|
144749
144806
|
type: "number"
|
|
144750
144807
|
},
|
|
144751
|
-
sizeSchema(
|
|
144808
|
+
sizeSchema(),
|
|
144752
144809
|
{ path: "frame", type: "number" },
|
|
144753
144810
|
{ path: "strand", type: "number" }
|
|
144754
144811
|
]
|
|
@@ -148920,7 +148977,6 @@ export {
|
|
|
148920
148977
|
RowView as RowViewUnconnected,
|
|
148921
148978
|
SimpleCircularOrLinearView,
|
|
148922
148979
|
StatusBar,
|
|
148923
|
-
StatusBar as StatusBarUnconnected,
|
|
148924
148980
|
ToolBar,
|
|
148925
148981
|
actions,
|
|
148926
148982
|
addAlignment,
|