@teselagen/ove 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.umd.js +110 -120
- package/package.json +7 -7
package/index.umd.js
CHANGED
|
@@ -57088,17 +57088,17 @@
|
|
|
57088
57088
|
throw TypeError("Can't convert object to primitive value");
|
|
57089
57089
|
};
|
|
57090
57090
|
|
|
57091
|
-
var anObject$
|
|
57091
|
+
var anObject$5 = _anObject;
|
|
57092
57092
|
var IE8_DOM_DEFINE$1 = _ie8DomDefine;
|
|
57093
57093
|
var toPrimitive$2 = _toPrimitive$1;
|
|
57094
|
-
var dP$
|
|
57094
|
+
var dP$3 = Object.defineProperty;
|
|
57095
57095
|
|
|
57096
57096
|
_objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
|
|
57097
|
-
anObject$
|
|
57097
|
+
anObject$5(O);
|
|
57098
57098
|
P = toPrimitive$2(P, true);
|
|
57099
|
-
anObject$
|
|
57099
|
+
anObject$5(Attributes);
|
|
57100
57100
|
if (IE8_DOM_DEFINE$1) try {
|
|
57101
|
-
return dP$
|
|
57101
|
+
return dP$3(O, P, Attributes);
|
|
57102
57102
|
} catch (e) { /* empty */ }
|
|
57103
57103
|
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
|
|
57104
57104
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
@@ -57114,10 +57114,10 @@
|
|
|
57114
57114
|
};
|
|
57115
57115
|
};
|
|
57116
57116
|
|
|
57117
|
-
var dP$
|
|
57117
|
+
var dP$2 = _objectDp;
|
|
57118
57118
|
var createDesc$3 = _propertyDesc;
|
|
57119
57119
|
var _hide = _descriptors ? function (object, key, value) {
|
|
57120
|
-
return dP$
|
|
57120
|
+
return dP$2.f(object, key, createDesc$3(1, value));
|
|
57121
57121
|
} : function (object, key, value) {
|
|
57122
57122
|
object[key] = value;
|
|
57123
57123
|
return object;
|
|
@@ -57133,7 +57133,7 @@
|
|
|
57133
57133
|
var ctx$1 = _ctx;
|
|
57134
57134
|
var hide$2 = _hide;
|
|
57135
57135
|
var has$d = _has;
|
|
57136
|
-
var PROTOTYPE$
|
|
57136
|
+
var PROTOTYPE$2 = 'prototype';
|
|
57137
57137
|
|
|
57138
57138
|
var $export$8 = function (type, name, source) {
|
|
57139
57139
|
var IS_FORCED = type & $export$8.F;
|
|
@@ -57143,8 +57143,8 @@
|
|
|
57143
57143
|
var IS_BIND = type & $export$8.B;
|
|
57144
57144
|
var IS_WRAP = type & $export$8.W;
|
|
57145
57145
|
var exports = IS_GLOBAL ? core$3 : core$3[name] || (core$3[name] = {});
|
|
57146
|
-
var expProto = exports[PROTOTYPE$
|
|
57147
|
-
var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$
|
|
57146
|
+
var expProto = exports[PROTOTYPE$2];
|
|
57147
|
+
var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$2];
|
|
57148
57148
|
var key, own, out;
|
|
57149
57149
|
if (IS_GLOBAL) source = name;
|
|
57150
57150
|
for (key in source) {
|
|
@@ -57168,7 +57168,7 @@
|
|
|
57168
57168
|
} return new C(a, b, c);
|
|
57169
57169
|
} return C.apply(this, arguments);
|
|
57170
57170
|
};
|
|
57171
|
-
F[PROTOTYPE$
|
|
57171
|
+
F[PROTOTYPE$2] = C[PROTOTYPE$2];
|
|
57172
57172
|
return F;
|
|
57173
57173
|
// make static versions for prototype methods
|
|
57174
57174
|
})(out) : IS_PROTO && typeof out == 'function' ? ctx$1(Function.call, out) : out;
|
|
@@ -57305,14 +57305,14 @@
|
|
|
57305
57305
|
var has$c = _has;
|
|
57306
57306
|
var toIObject$4 = _toIobject;
|
|
57307
57307
|
var arrayIndexOf = _arrayIncludes$1(false);
|
|
57308
|
-
var IE_PROTO$
|
|
57308
|
+
var IE_PROTO$2 = _sharedKey('IE_PROTO');
|
|
57309
57309
|
|
|
57310
57310
|
var _objectKeysInternal = function (object, names) {
|
|
57311
57311
|
var O = toIObject$4(object);
|
|
57312
57312
|
var i = 0;
|
|
57313
57313
|
var result = [];
|
|
57314
57314
|
var key;
|
|
57315
|
-
for (key in O) if (key != IE_PROTO$
|
|
57315
|
+
for (key in O) if (key != IE_PROTO$2) has$c(O, key) && result.push(key);
|
|
57316
57316
|
// Don't enum bug & hidden keys
|
|
57317
57317
|
while (names.length > i) if (has$c(O, key = names[i++])) {
|
|
57318
57318
|
~arrayIndexOf(result, key) || result.push(key);
|
|
@@ -57327,10 +57327,10 @@
|
|
|
57327
57327
|
|
|
57328
57328
|
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
|
|
57329
57329
|
var $keys$3 = _objectKeysInternal;
|
|
57330
|
-
var enumBugKeys = _enumBugKeys;
|
|
57330
|
+
var enumBugKeys$1 = _enumBugKeys;
|
|
57331
57331
|
|
|
57332
57332
|
var _objectKeys = Object.keys || function keys(O) {
|
|
57333
|
-
return $keys$3(O, enumBugKeys);
|
|
57333
|
+
return $keys$3(O, enumBugKeys$1);
|
|
57334
57334
|
};
|
|
57335
57335
|
|
|
57336
57336
|
var _objectGops = {};
|
|
@@ -57437,27 +57437,19 @@
|
|
|
57437
57437
|
|
|
57438
57438
|
var _redefine = _hide;
|
|
57439
57439
|
|
|
57440
|
-
var
|
|
57441
|
-
var
|
|
57442
|
-
|
|
57443
|
-
function require_objectDps () {
|
|
57444
|
-
if (hasRequired_objectDps) return _objectDps;
|
|
57445
|
-
hasRequired_objectDps = 1;
|
|
57446
|
-
var dP = _objectDp;
|
|
57447
|
-
var anObject = _anObject;
|
|
57448
|
-
var getKeys = _objectKeys;
|
|
57440
|
+
var dP$1 = _objectDp;
|
|
57441
|
+
var anObject$4 = _anObject;
|
|
57442
|
+
var getKeys$1 = _objectKeys;
|
|
57449
57443
|
|
|
57450
|
-
|
|
57451
|
-
|
|
57452
|
-
|
|
57453
|
-
|
|
57454
|
-
|
|
57455
|
-
|
|
57456
|
-
|
|
57457
|
-
|
|
57458
|
-
|
|
57459
|
-
return _objectDps;
|
|
57460
|
-
}
|
|
57444
|
+
var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
57445
|
+
anObject$4(O);
|
|
57446
|
+
var keys = getKeys$1(Properties);
|
|
57447
|
+
var length = keys.length;
|
|
57448
|
+
var i = 0;
|
|
57449
|
+
var P;
|
|
57450
|
+
while (length > i) dP$1.f(O, P = keys[i++], Properties[P]);
|
|
57451
|
+
return O;
|
|
57452
|
+
};
|
|
57461
57453
|
|
|
57462
57454
|
var _html;
|
|
57463
57455
|
var hasRequired_html;
|
|
@@ -57470,55 +57462,47 @@
|
|
|
57470
57462
|
return _html;
|
|
57471
57463
|
}
|
|
57472
57464
|
|
|
57473
|
-
|
|
57474
|
-
var
|
|
57465
|
+
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
|
57466
|
+
var anObject$3 = _anObject;
|
|
57467
|
+
var dPs = _objectDps;
|
|
57468
|
+
var enumBugKeys = _enumBugKeys;
|
|
57469
|
+
var IE_PROTO$1 = _sharedKey('IE_PROTO');
|
|
57470
|
+
var Empty = function () { /* empty */ };
|
|
57471
|
+
var PROTOTYPE$1 = 'prototype';
|
|
57475
57472
|
|
|
57476
|
-
|
|
57477
|
-
|
|
57478
|
-
|
|
57479
|
-
|
|
57480
|
-
|
|
57481
|
-
|
|
57482
|
-
|
|
57483
|
-
|
|
57484
|
-
|
|
57485
|
-
|
|
57486
|
-
|
|
57487
|
-
|
|
57488
|
-
|
|
57489
|
-
|
|
57490
|
-
|
|
57491
|
-
|
|
57492
|
-
|
|
57493
|
-
|
|
57494
|
-
|
|
57495
|
-
|
|
57496
|
-
|
|
57497
|
-
|
|
57498
|
-
|
|
57499
|
-
|
|
57500
|
-
|
|
57501
|
-
|
|
57502
|
-
|
|
57503
|
-
|
|
57504
|
-
|
|
57505
|
-
|
|
57506
|
-
|
|
57507
|
-
|
|
57508
|
-
|
|
57509
|
-
_objectCreate = Object.create || function create(O, Properties) {
|
|
57510
|
-
var result;
|
|
57511
|
-
if (O !== null) {
|
|
57512
|
-
Empty[PROTOTYPE] = anObject(O);
|
|
57513
|
-
result = new Empty();
|
|
57514
|
-
Empty[PROTOTYPE] = null;
|
|
57515
|
-
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
57516
|
-
result[IE_PROTO] = O;
|
|
57517
|
-
} else result = createDict();
|
|
57518
|
-
return Properties === undefined ? result : dPs(result, Properties);
|
|
57519
|
-
};
|
|
57520
|
-
return _objectCreate;
|
|
57521
|
-
}
|
|
57473
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
57474
|
+
var createDict = function () {
|
|
57475
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
57476
|
+
var iframe = require_domCreate()('iframe');
|
|
57477
|
+
var i = enumBugKeys.length;
|
|
57478
|
+
var lt = '<';
|
|
57479
|
+
var gt = '>';
|
|
57480
|
+
var iframeDocument;
|
|
57481
|
+
iframe.style.display = 'none';
|
|
57482
|
+
require_html().appendChild(iframe);
|
|
57483
|
+
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
|
|
57484
|
+
// createDict = iframe.contentWindow.Object;
|
|
57485
|
+
// html.removeChild(iframe);
|
|
57486
|
+
iframeDocument = iframe.contentWindow.document;
|
|
57487
|
+
iframeDocument.open();
|
|
57488
|
+
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
|
|
57489
|
+
iframeDocument.close();
|
|
57490
|
+
createDict = iframeDocument.F;
|
|
57491
|
+
while (i--) delete createDict[PROTOTYPE$1][enumBugKeys[i]];
|
|
57492
|
+
return createDict();
|
|
57493
|
+
};
|
|
57494
|
+
|
|
57495
|
+
var _objectCreate = Object.create || function create(O, Properties) {
|
|
57496
|
+
var result;
|
|
57497
|
+
if (O !== null) {
|
|
57498
|
+
Empty[PROTOTYPE$1] = anObject$3(O);
|
|
57499
|
+
result = new Empty();
|
|
57500
|
+
Empty[PROTOTYPE$1] = null;
|
|
57501
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
57502
|
+
result[IE_PROTO$1] = O;
|
|
57503
|
+
} else result = createDict();
|
|
57504
|
+
return Properties === undefined ? result : dPs(result, Properties);
|
|
57505
|
+
};
|
|
57522
57506
|
|
|
57523
57507
|
var _wks = {exports: {}};
|
|
57524
57508
|
|
|
@@ -57544,7 +57528,7 @@
|
|
|
57544
57528
|
if (it && !has$b(it = stat ? it : it.prototype, TAG$1)) def(it, TAG$1, { configurable: true, value: tag });
|
|
57545
57529
|
};
|
|
57546
57530
|
|
|
57547
|
-
var create$4 =
|
|
57531
|
+
var create$4 = _objectCreate;
|
|
57548
57532
|
var descriptor = _propertyDesc;
|
|
57549
57533
|
var setToStringTag$2 = _setToStringTag;
|
|
57550
57534
|
var IteratorPrototype = {};
|
|
@@ -58187,7 +58171,7 @@
|
|
|
58187
58171
|
var toIObject = _toIobject;
|
|
58188
58172
|
var toPrimitive = _toPrimitive$1;
|
|
58189
58173
|
var createDesc = _propertyDesc;
|
|
58190
|
-
var _create$1 =
|
|
58174
|
+
var _create$1 = _objectCreate;
|
|
58191
58175
|
var gOPNExt = _objectGopnExt;
|
|
58192
58176
|
var $GOPD = _objectGopd;
|
|
58193
58177
|
var $GOPS = _objectGops;
|
|
@@ -58497,7 +58481,7 @@
|
|
|
58497
58481
|
|
|
58498
58482
|
var $export = _export;
|
|
58499
58483
|
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
|
58500
|
-
$export($export.S, 'Object', { create:
|
|
58484
|
+
$export($export.S, 'Object', { create: _objectCreate });
|
|
58501
58485
|
|
|
58502
58486
|
var $Object = _coreExports.Object;
|
|
58503
58487
|
var create$3 = function create(P, D) {
|
|
@@ -92900,7 +92884,7 @@
|
|
|
92900
92884
|
stringFilterValue = stringFilterValue || "";
|
|
92901
92885
|
}
|
|
92902
92886
|
const filterValLower = stringFilterValue.toLowerCase && stringFilterValue.toLowerCase();
|
|
92903
|
-
const arrayFilterValue = Array.isArray(filterValue) ? filterValue : stringFilterValue.split("
|
|
92887
|
+
const arrayFilterValue = Array.isArray(filterValue) ? filterValue : stringFilterValue.split(";");
|
|
92904
92888
|
if (ccSelectedFilter === "startsWith") {
|
|
92905
92889
|
return qb ? qb.startsWith(stringFilterValue) : (fieldVal) => {
|
|
92906
92890
|
if (!fieldVal || !fieldVal.toLowerCase)
|
|
@@ -98826,6 +98810,31 @@
|
|
|
98826
98810
|
window.toastr.default = preventDuplicates(generateToast(Intent.NONE));
|
|
98827
98811
|
}
|
|
98828
98812
|
|
|
98813
|
+
const filterTypesDictionary = {
|
|
98814
|
+
none: "",
|
|
98815
|
+
startsWith: "text",
|
|
98816
|
+
endsWith: "text",
|
|
98817
|
+
contains: "text",
|
|
98818
|
+
notContains: "text",
|
|
98819
|
+
isExactly: "text",
|
|
98820
|
+
isEmpty: "text",
|
|
98821
|
+
notEmpty: "text",
|
|
98822
|
+
inList: "list",
|
|
98823
|
+
notInList: "list",
|
|
98824
|
+
true: "boolean",
|
|
98825
|
+
false: "boolean",
|
|
98826
|
+
dateIs: "date",
|
|
98827
|
+
notBetween: "dateRange",
|
|
98828
|
+
isBetween: "dateRange",
|
|
98829
|
+
isBefore: "date",
|
|
98830
|
+
isAfter: "date",
|
|
98831
|
+
greaterThan: "number",
|
|
98832
|
+
lessThan: "number",
|
|
98833
|
+
inRange: "numberRange",
|
|
98834
|
+
outsideRange: "numberRange",
|
|
98835
|
+
equalTo: "number",
|
|
98836
|
+
regex: "text"
|
|
98837
|
+
};
|
|
98829
98838
|
const isInvalidFilterValue = (value) => {
|
|
98830
98839
|
if (Array.isArray(value) && value.length) {
|
|
98831
98840
|
return value.some((item) => isInvalidFilterValue(item));
|
|
@@ -98843,6 +98852,16 @@
|
|
|
98843
98852
|
};
|
|
98844
98853
|
}
|
|
98845
98854
|
handleFilterChange = (selectedFilter) => {
|
|
98855
|
+
const { filterValue } = this.state;
|
|
98856
|
+
if (filterValue && !Array.isArray(filterValue) && filterTypesDictionary[selectedFilter] === "list") {
|
|
98857
|
+
this.setState({
|
|
98858
|
+
filterValue: filterValue?.split(" ") || []
|
|
98859
|
+
});
|
|
98860
|
+
} else if (filterTypesDictionary[selectedFilter] === "text" && Array.isArray(filterValue)) {
|
|
98861
|
+
this.setState({
|
|
98862
|
+
filterValue: filterValue.join(" ")
|
|
98863
|
+
});
|
|
98864
|
+
}
|
|
98846
98865
|
this.setState({ selectedFilter: lodashExports.camelCase(selectedFilter) });
|
|
98847
98866
|
};
|
|
98848
98867
|
handleFilterValueChange = (filterValue) => {
|
|
@@ -98885,36 +98904,7 @@
|
|
|
98885
98904
|
render() {
|
|
98886
98905
|
const { selectedFilter, filterValue } = this.state;
|
|
98887
98906
|
const { dataType, currentFilter, removeSingleFilter } = this.props;
|
|
98888
|
-
const {
|
|
98889
|
-
handleFilterChange,
|
|
98890
|
-
handleFilterValueChange,
|
|
98891
|
-
handleFilterSubmit
|
|
98892
|
-
} = this;
|
|
98893
|
-
const filterTypesDictionary = {
|
|
98894
|
-
none: "",
|
|
98895
|
-
startsWith: "text",
|
|
98896
|
-
endsWith: "text",
|
|
98897
|
-
contains: "text",
|
|
98898
|
-
notContains: "text",
|
|
98899
|
-
isExactly: "text",
|
|
98900
|
-
isEmpty: "text",
|
|
98901
|
-
notEmpty: "text",
|
|
98902
|
-
inList: "list",
|
|
98903
|
-
notInList: "list",
|
|
98904
|
-
true: "boolean",
|
|
98905
|
-
false: "boolean",
|
|
98906
|
-
dateIs: "date",
|
|
98907
|
-
notBetween: "dateRange",
|
|
98908
|
-
isBetween: "dateRange",
|
|
98909
|
-
isBefore: "date",
|
|
98910
|
-
isAfter: "date",
|
|
98911
|
-
greaterThan: "number",
|
|
98912
|
-
lessThan: "number",
|
|
98913
|
-
inRange: "numberRange",
|
|
98914
|
-
outsideRange: "numberRange",
|
|
98915
|
-
equalTo: "number",
|
|
98916
|
-
regex: "text"
|
|
98917
|
-
};
|
|
98907
|
+
const { handleFilterChange, handleFilterValueChange, handleFilterSubmit } = this;
|
|
98918
98908
|
const filterMenuItems = getFilterMenuItems(dataType);
|
|
98919
98909
|
const ccSelectedFilter = lodashExports.camelCase(selectedFilter);
|
|
98920
98910
|
const requiresValue = ccSelectedFilter && ccSelectedFilter !== "none";
|
|
@@ -99080,7 +99070,7 @@
|
|
|
99080
99070
|
if (Array.isArray(filterValue)) {
|
|
99081
99071
|
filterValueToUse = filterValue;
|
|
99082
99072
|
} else {
|
|
99083
|
-
filterValueToUse = filterValue && filterValue.split && filterValue.split("
|
|
99073
|
+
filterValueToUse = filterValue && filterValue.split && filterValue.split(";");
|
|
99084
99074
|
}
|
|
99085
99075
|
inputGroup = /* @__PURE__ */ React$3.createElement("div", { className: "custom-menu-item" }, /* @__PURE__ */ React$3.createElement(
|
|
99086
99076
|
DateRangeInput,
|
|
@@ -115667,7 +115657,7 @@
|
|
|
115667
115657
|
({ displayName, path, selectedFilter, filterValue }) => {
|
|
115668
115658
|
let filterValToDisplay = filterValue;
|
|
115669
115659
|
if (selectedFilter === "inList") {
|
|
115670
|
-
filterValToDisplay = Array.isArray(filterValToDisplay) ? filterValToDisplay : filterValToDisplay && filterValToDisplay.split("
|
|
115660
|
+
filterValToDisplay = Array.isArray(filterValToDisplay) ? filterValToDisplay : filterValToDisplay && filterValToDisplay.split(";");
|
|
115671
115661
|
}
|
|
115672
115662
|
if (Array.isArray(filterValToDisplay)) {
|
|
115673
115663
|
filterValToDisplay = filterValToDisplay.join(", ");
|
|
@@ -188663,7 +188653,7 @@ double click --> edit`}`;
|
|
|
188663
188653
|
}
|
|
188664
188654
|
|
|
188665
188655
|
const name = "@teselagen/ove";
|
|
188666
|
-
const version = "0.3.
|
|
188656
|
+
const version = "0.3.5";
|
|
188667
188657
|
const main = "./src/index.js";
|
|
188668
188658
|
const packageJson = {
|
|
188669
188659
|
name: name,
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teselagen/ove",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@teselagen/sequence-utils": "0.3.
|
|
7
|
-
"@teselagen/range-utils": "0.3.
|
|
8
|
-
"@teselagen/ui": "0.3.
|
|
9
|
-
"@teselagen/file-utils": "0.3.
|
|
10
|
-
"@teselagen/bounce-loader": "0.3.
|
|
11
|
-
"@teselagen/bio-parsers": "0.3.
|
|
6
|
+
"@teselagen/sequence-utils": "0.3.6",
|
|
7
|
+
"@teselagen/range-utils": "0.3.6",
|
|
8
|
+
"@teselagen/ui": "0.3.6",
|
|
9
|
+
"@teselagen/file-utils": "0.3.6",
|
|
10
|
+
"@teselagen/bounce-loader": "0.3.6",
|
|
11
|
+
"@teselagen/bio-parsers": "0.3.6",
|
|
12
12
|
"@blueprintjs/core": "3.52.0",
|
|
13
13
|
"@blueprintjs/datetime": "3.23.19",
|
|
14
14
|
"@blueprintjs/icons": "3.33.0",
|