@teselagen/ui 0.3.5 → 0.3.7
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 +165 -133
- package/package.json +3 -3
- package/src/DataTable/FilterAndSortMenu.js +68 -56
- package/src/DataTable/index.js +143 -142
- package/src/DataTable/utils/queryParams.js +1 -1
package/index.umd.js
CHANGED
|
@@ -54930,17 +54930,17 @@
|
|
|
54930
54930
|
throw TypeError("Can't convert object to primitive value");
|
|
54931
54931
|
};
|
|
54932
54932
|
|
|
54933
|
-
var anObject$
|
|
54933
|
+
var anObject$3 = _anObject;
|
|
54934
54934
|
var IE8_DOM_DEFINE$1 = _ie8DomDefine;
|
|
54935
54935
|
var toPrimitive$2 = _toPrimitive;
|
|
54936
|
-
var dP$
|
|
54936
|
+
var dP$2 = Object.defineProperty;
|
|
54937
54937
|
|
|
54938
54938
|
_objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
|
|
54939
|
-
anObject$
|
|
54939
|
+
anObject$3(O);
|
|
54940
54940
|
P = toPrimitive$2(P, true);
|
|
54941
|
-
anObject$
|
|
54941
|
+
anObject$3(Attributes);
|
|
54942
54942
|
if (IE8_DOM_DEFINE$1) try {
|
|
54943
|
-
return dP$
|
|
54943
|
+
return dP$2(O, P, Attributes);
|
|
54944
54944
|
} catch (e) { /* empty */ }
|
|
54945
54945
|
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
|
|
54946
54946
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
@@ -54956,10 +54956,10 @@
|
|
|
54956
54956
|
};
|
|
54957
54957
|
};
|
|
54958
54958
|
|
|
54959
|
-
var dP$
|
|
54959
|
+
var dP$1 = _objectDp;
|
|
54960
54960
|
var createDesc$3 = _propertyDesc;
|
|
54961
54961
|
var _hide = _descriptors ? function (object, key, value) {
|
|
54962
|
-
return dP$
|
|
54962
|
+
return dP$1.f(object, key, createDesc$3(1, value));
|
|
54963
54963
|
} : function (object, key, value) {
|
|
54964
54964
|
object[key] = value;
|
|
54965
54965
|
return object;
|
|
@@ -54975,7 +54975,7 @@
|
|
|
54975
54975
|
var ctx$1 = _ctx;
|
|
54976
54976
|
var hide$2 = _hide;
|
|
54977
54977
|
var has$b = _has;
|
|
54978
|
-
var PROTOTYPE$
|
|
54978
|
+
var PROTOTYPE$1 = 'prototype';
|
|
54979
54979
|
|
|
54980
54980
|
var $export$8 = function (type, name, source) {
|
|
54981
54981
|
var IS_FORCED = type & $export$8.F;
|
|
@@ -54985,8 +54985,8 @@
|
|
|
54985
54985
|
var IS_BIND = type & $export$8.B;
|
|
54986
54986
|
var IS_WRAP = type & $export$8.W;
|
|
54987
54987
|
var exports = IS_GLOBAL ? core$3 : core$3[name] || (core$3[name] = {});
|
|
54988
|
-
var expProto = exports[PROTOTYPE$
|
|
54989
|
-
var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$
|
|
54988
|
+
var expProto = exports[PROTOTYPE$1];
|
|
54989
|
+
var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$1];
|
|
54990
54990
|
var key, own, out;
|
|
54991
54991
|
if (IS_GLOBAL) source = name;
|
|
54992
54992
|
for (key in source) {
|
|
@@ -55010,7 +55010,7 @@
|
|
|
55010
55010
|
} return new C(a, b, c);
|
|
55011
55011
|
} return C.apply(this, arguments);
|
|
55012
55012
|
};
|
|
55013
|
-
F[PROTOTYPE$
|
|
55013
|
+
F[PROTOTYPE$1] = C[PROTOTYPE$1];
|
|
55014
55014
|
return F;
|
|
55015
55015
|
// make static versions for prototype methods
|
|
55016
55016
|
})(out) : IS_PROTO && typeof out == 'function' ? ctx$1(Function.call, out) : out;
|
|
@@ -55039,12 +55039,20 @@
|
|
|
55039
55039
|
return toString$4.call(it).slice(8, -1);
|
|
55040
55040
|
};
|
|
55041
55041
|
|
|
55042
|
-
|
|
55043
|
-
var
|
|
55044
|
-
|
|
55045
|
-
|
|
55046
|
-
|
|
55047
|
-
|
|
55042
|
+
var _iobject;
|
|
55043
|
+
var hasRequired_iobject;
|
|
55044
|
+
|
|
55045
|
+
function require_iobject () {
|
|
55046
|
+
if (hasRequired_iobject) return _iobject;
|
|
55047
|
+
hasRequired_iobject = 1;
|
|
55048
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
55049
|
+
var cof = _cof;
|
|
55050
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
55051
|
+
_iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
|
55052
|
+
return cof(it) == 'String' ? it.split('') : Object(it);
|
|
55053
|
+
};
|
|
55054
|
+
return _iobject;
|
|
55055
|
+
}
|
|
55048
55056
|
|
|
55049
55057
|
// 7.2.1 RequireObjectCoercible(argument)
|
|
55050
55058
|
var _defined = function (it) {
|
|
@@ -55053,7 +55061,7 @@
|
|
|
55053
55061
|
};
|
|
55054
55062
|
|
|
55055
55063
|
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
|
55056
|
-
var IObject =
|
|
55064
|
+
var IObject = require_iobject();
|
|
55057
55065
|
var defined$2 = _defined;
|
|
55058
55066
|
var _toIobject = function (it) {
|
|
55059
55067
|
return IObject(defined$2(it));
|
|
@@ -55139,14 +55147,14 @@
|
|
|
55139
55147
|
var has$a = _has;
|
|
55140
55148
|
var toIObject$4 = _toIobject;
|
|
55141
55149
|
var arrayIndexOf = _arrayIncludes(false);
|
|
55142
|
-
var IE_PROTO$
|
|
55150
|
+
var IE_PROTO$1 = _sharedKey('IE_PROTO');
|
|
55143
55151
|
|
|
55144
55152
|
var _objectKeysInternal = function (object, names) {
|
|
55145
55153
|
var O = toIObject$4(object);
|
|
55146
55154
|
var i = 0;
|
|
55147
55155
|
var result = [];
|
|
55148
55156
|
var key;
|
|
55149
|
-
for (key in O) if (key != IE_PROTO$
|
|
55157
|
+
for (key in O) if (key != IE_PROTO$1) has$a(O, key) && result.push(key);
|
|
55150
55158
|
// Don't enum bug & hidden keys
|
|
55151
55159
|
while (names.length > i) if (has$a(O, key = names[i++])) {
|
|
55152
55160
|
~arrayIndexOf(result, key) || result.push(key);
|
|
@@ -55161,10 +55169,10 @@
|
|
|
55161
55169
|
|
|
55162
55170
|
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
|
|
55163
55171
|
var $keys$3 = _objectKeysInternal;
|
|
55164
|
-
var enumBugKeys
|
|
55172
|
+
var enumBugKeys = _enumBugKeys;
|
|
55165
55173
|
|
|
55166
55174
|
var _objectKeys = Object.keys || function keys(O) {
|
|
55167
|
-
return $keys$3(O, enumBugKeys
|
|
55175
|
+
return $keys$3(O, enumBugKeys);
|
|
55168
55176
|
};
|
|
55169
55177
|
|
|
55170
55178
|
var _objectGops = {};
|
|
@@ -55173,7 +55181,14 @@
|
|
|
55173
55181
|
|
|
55174
55182
|
var _objectPie = {};
|
|
55175
55183
|
|
|
55176
|
-
|
|
55184
|
+
var hasRequired_objectPie;
|
|
55185
|
+
|
|
55186
|
+
function require_objectPie () {
|
|
55187
|
+
if (hasRequired_objectPie) return _objectPie;
|
|
55188
|
+
hasRequired_objectPie = 1;
|
|
55189
|
+
_objectPie.f = {}.propertyIsEnumerable;
|
|
55190
|
+
return _objectPie;
|
|
55191
|
+
}
|
|
55177
55192
|
|
|
55178
55193
|
// 7.1.13 ToObject(argument)
|
|
55179
55194
|
var defined$1 = _defined;
|
|
@@ -55191,9 +55206,9 @@
|
|
|
55191
55206
|
var DESCRIPTORS = _descriptors;
|
|
55192
55207
|
var getKeys = _objectKeys;
|
|
55193
55208
|
var gOPS = _objectGops;
|
|
55194
|
-
var pIE =
|
|
55209
|
+
var pIE = require_objectPie();
|
|
55195
55210
|
var toObject = _toObject;
|
|
55196
|
-
var IObject =
|
|
55211
|
+
var IObject = require_iobject();
|
|
55197
55212
|
var $assign = Object.assign;
|
|
55198
55213
|
|
|
55199
55214
|
// should work with symbols and should have deterministic property order (V8 bug)
|
|
@@ -55264,19 +55279,27 @@
|
|
|
55264
55279
|
|
|
55265
55280
|
var _redefine = _hide;
|
|
55266
55281
|
|
|
55267
|
-
var
|
|
55268
|
-
var
|
|
55269
|
-
var getKeys$1 = _objectKeys;
|
|
55282
|
+
var _objectDps;
|
|
55283
|
+
var hasRequired_objectDps;
|
|
55270
55284
|
|
|
55271
|
-
|
|
55272
|
-
|
|
55273
|
-
|
|
55274
|
-
|
|
55275
|
-
|
|
55276
|
-
|
|
55277
|
-
|
|
55278
|
-
|
|
55279
|
-
|
|
55285
|
+
function require_objectDps () {
|
|
55286
|
+
if (hasRequired_objectDps) return _objectDps;
|
|
55287
|
+
hasRequired_objectDps = 1;
|
|
55288
|
+
var dP = _objectDp;
|
|
55289
|
+
var anObject = _anObject;
|
|
55290
|
+
var getKeys = _objectKeys;
|
|
55291
|
+
|
|
55292
|
+
_objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
55293
|
+
anObject(O);
|
|
55294
|
+
var keys = getKeys(Properties);
|
|
55295
|
+
var length = keys.length;
|
|
55296
|
+
var i = 0;
|
|
55297
|
+
var P;
|
|
55298
|
+
while (length > i) dP.f(O, P = keys[i++], Properties[P]);
|
|
55299
|
+
return O;
|
|
55300
|
+
};
|
|
55301
|
+
return _objectDps;
|
|
55302
|
+
}
|
|
55280
55303
|
|
|
55281
55304
|
var _html;
|
|
55282
55305
|
var hasRequired_html;
|
|
@@ -55289,47 +55312,55 @@
|
|
|
55289
55312
|
return _html;
|
|
55290
55313
|
}
|
|
55291
55314
|
|
|
55292
|
-
|
|
55293
|
-
var
|
|
55294
|
-
var dPs = _objectDps;
|
|
55295
|
-
var enumBugKeys = _enumBugKeys;
|
|
55296
|
-
var IE_PROTO$1 = _sharedKey('IE_PROTO');
|
|
55297
|
-
var Empty = function () { /* empty */ };
|
|
55298
|
-
var PROTOTYPE$1 = 'prototype';
|
|
55315
|
+
var _objectCreate;
|
|
55316
|
+
var hasRequired_objectCreate;
|
|
55299
55317
|
|
|
55300
|
-
|
|
55301
|
-
|
|
55302
|
-
|
|
55303
|
-
|
|
55304
|
-
|
|
55305
|
-
|
|
55306
|
-
|
|
55307
|
-
|
|
55308
|
-
|
|
55309
|
-
|
|
55310
|
-
|
|
55311
|
-
|
|
55312
|
-
|
|
55313
|
-
|
|
55314
|
-
|
|
55315
|
-
|
|
55316
|
-
|
|
55317
|
-
|
|
55318
|
-
|
|
55319
|
-
|
|
55320
|
-
|
|
55321
|
-
|
|
55322
|
-
|
|
55323
|
-
|
|
55324
|
-
|
|
55325
|
-
|
|
55326
|
-
|
|
55327
|
-
|
|
55328
|
-
|
|
55329
|
-
|
|
55330
|
-
|
|
55331
|
-
|
|
55332
|
-
|
|
55318
|
+
function require_objectCreate () {
|
|
55319
|
+
if (hasRequired_objectCreate) return _objectCreate;
|
|
55320
|
+
hasRequired_objectCreate = 1;
|
|
55321
|
+
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
|
55322
|
+
var anObject = _anObject;
|
|
55323
|
+
var dPs = require_objectDps();
|
|
55324
|
+
var enumBugKeys = _enumBugKeys;
|
|
55325
|
+
var IE_PROTO = _sharedKey('IE_PROTO');
|
|
55326
|
+
var Empty = function () { /* empty */ };
|
|
55327
|
+
var PROTOTYPE = 'prototype';
|
|
55328
|
+
|
|
55329
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
55330
|
+
var createDict = function () {
|
|
55331
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
55332
|
+
var iframe = require_domCreate()('iframe');
|
|
55333
|
+
var i = enumBugKeys.length;
|
|
55334
|
+
var lt = '<';
|
|
55335
|
+
var gt = '>';
|
|
55336
|
+
var iframeDocument;
|
|
55337
|
+
iframe.style.display = 'none';
|
|
55338
|
+
require_html().appendChild(iframe);
|
|
55339
|
+
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
|
|
55340
|
+
// createDict = iframe.contentWindow.Object;
|
|
55341
|
+
// html.removeChild(iframe);
|
|
55342
|
+
iframeDocument = iframe.contentWindow.document;
|
|
55343
|
+
iframeDocument.open();
|
|
55344
|
+
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
|
|
55345
|
+
iframeDocument.close();
|
|
55346
|
+
createDict = iframeDocument.F;
|
|
55347
|
+
while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
|
|
55348
|
+
return createDict();
|
|
55349
|
+
};
|
|
55350
|
+
|
|
55351
|
+
_objectCreate = Object.create || function create(O, Properties) {
|
|
55352
|
+
var result;
|
|
55353
|
+
if (O !== null) {
|
|
55354
|
+
Empty[PROTOTYPE] = anObject(O);
|
|
55355
|
+
result = new Empty();
|
|
55356
|
+
Empty[PROTOTYPE] = null;
|
|
55357
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
55358
|
+
result[IE_PROTO] = O;
|
|
55359
|
+
} else result = createDict();
|
|
55360
|
+
return Properties === undefined ? result : dPs(result, Properties);
|
|
55361
|
+
};
|
|
55362
|
+
return _objectCreate;
|
|
55363
|
+
}
|
|
55333
55364
|
|
|
55334
55365
|
var _wks = {exports: {}};
|
|
55335
55366
|
|
|
@@ -55355,7 +55386,7 @@
|
|
|
55355
55386
|
if (it && !has$9(it = stat ? it : it.prototype, TAG$1)) def(it, TAG$1, { configurable: true, value: tag });
|
|
55356
55387
|
};
|
|
55357
55388
|
|
|
55358
|
-
var create$3 =
|
|
55389
|
+
var create$3 = require_objectCreate();
|
|
55359
55390
|
var descriptor = _propertyDesc;
|
|
55360
55391
|
var setToStringTag$2 = _setToStringTag;
|
|
55361
55392
|
var IteratorPrototype = {};
|
|
@@ -55906,7 +55937,7 @@
|
|
|
55906
55937
|
// all enumerable object keys, includes symbols
|
|
55907
55938
|
var getKeys = _objectKeys;
|
|
55908
55939
|
var gOPS$1 = _objectGops;
|
|
55909
|
-
var pIE$1 =
|
|
55940
|
+
var pIE$1 = require_objectPie();
|
|
55910
55941
|
var _enumKeys = function (it) {
|
|
55911
55942
|
var result = getKeys(it);
|
|
55912
55943
|
var getSymbols = gOPS$1.f;
|
|
@@ -55959,7 +55990,7 @@
|
|
|
55959
55990
|
|
|
55960
55991
|
var _objectGopd = {};
|
|
55961
55992
|
|
|
55962
|
-
var pIE =
|
|
55993
|
+
var pIE = require_objectPie();
|
|
55963
55994
|
var createDesc$1 = _propertyDesc;
|
|
55964
55995
|
var toIObject$1 = _toIobject;
|
|
55965
55996
|
var toPrimitive$1 = _toPrimitive;
|
|
@@ -55998,7 +56029,7 @@
|
|
|
55998
56029
|
var toIObject = _toIobject;
|
|
55999
56030
|
var toPrimitive = _toPrimitive;
|
|
56000
56031
|
var createDesc = _propertyDesc;
|
|
56001
|
-
var _create$1 =
|
|
56032
|
+
var _create$1 = require_objectCreate();
|
|
56002
56033
|
var gOPNExt = _objectGopnExt;
|
|
56003
56034
|
var $GOPD = _objectGopd;
|
|
56004
56035
|
var $GOPS = _objectGops;
|
|
@@ -56127,7 +56158,7 @@
|
|
|
56127
56158
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
56128
56159
|
$DP.f = $defineProperty;
|
|
56129
56160
|
_objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
|
|
56130
|
-
|
|
56161
|
+
require_objectPie().f = $propertyIsEnumerable;
|
|
56131
56162
|
$GOPS.f = $getOwnPropertySymbols;
|
|
56132
56163
|
|
|
56133
56164
|
if (DESCRIPTORS && !_library) {
|
|
@@ -56308,7 +56339,7 @@
|
|
|
56308
56339
|
|
|
56309
56340
|
var $export = _export;
|
|
56310
56341
|
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
|
56311
|
-
$export($export.S, 'Object', { create:
|
|
56342
|
+
$export($export.S, 'Object', { create: require_objectCreate() });
|
|
56312
56343
|
|
|
56313
56344
|
var $Object = _coreExports.Object;
|
|
56314
56345
|
var create$2 = function create(P, D) {
|
|
@@ -90726,7 +90757,7 @@
|
|
|
90726
90757
|
stringFilterValue = stringFilterValue || "";
|
|
90727
90758
|
}
|
|
90728
90759
|
const filterValLower = stringFilterValue.toLowerCase && stringFilterValue.toLowerCase();
|
|
90729
|
-
const arrayFilterValue = Array.isArray(filterValue) ? filterValue : stringFilterValue.split("
|
|
90760
|
+
const arrayFilterValue = Array.isArray(filterValue) ? filterValue : stringFilterValue.split(";");
|
|
90730
90761
|
if (ccSelectedFilter === "startsWith") {
|
|
90731
90762
|
return qb ? qb.startsWith(stringFilterValue) : (fieldVal) => {
|
|
90732
90763
|
if (!fieldVal || !fieldVal.toLowerCase)
|
|
@@ -96652,6 +96683,31 @@
|
|
|
96652
96683
|
window.toastr.default = preventDuplicates(generateToast(Intent.NONE));
|
|
96653
96684
|
}
|
|
96654
96685
|
|
|
96686
|
+
const filterTypesDictionary = {
|
|
96687
|
+
none: "",
|
|
96688
|
+
startsWith: "text",
|
|
96689
|
+
endsWith: "text",
|
|
96690
|
+
contains: "text",
|
|
96691
|
+
notContains: "text",
|
|
96692
|
+
isExactly: "text",
|
|
96693
|
+
isEmpty: "text",
|
|
96694
|
+
notEmpty: "text",
|
|
96695
|
+
inList: "list",
|
|
96696
|
+
notInList: "list",
|
|
96697
|
+
true: "boolean",
|
|
96698
|
+
false: "boolean",
|
|
96699
|
+
dateIs: "date",
|
|
96700
|
+
notBetween: "dateRange",
|
|
96701
|
+
isBetween: "dateRange",
|
|
96702
|
+
isBefore: "date",
|
|
96703
|
+
isAfter: "date",
|
|
96704
|
+
greaterThan: "number",
|
|
96705
|
+
lessThan: "number",
|
|
96706
|
+
inRange: "numberRange",
|
|
96707
|
+
outsideRange: "numberRange",
|
|
96708
|
+
equalTo: "number",
|
|
96709
|
+
regex: "text"
|
|
96710
|
+
};
|
|
96655
96711
|
const isInvalidFilterValue = (value) => {
|
|
96656
96712
|
if (Array.isArray(value) && value.length) {
|
|
96657
96713
|
return value.some((item) => isInvalidFilterValue(item));
|
|
@@ -96669,6 +96725,16 @@
|
|
|
96669
96725
|
};
|
|
96670
96726
|
}
|
|
96671
96727
|
handleFilterChange = (selectedFilter) => {
|
|
96728
|
+
const { filterValue } = this.state;
|
|
96729
|
+
if (filterValue && !Array.isArray(filterValue) && filterTypesDictionary[selectedFilter] === "list") {
|
|
96730
|
+
this.setState({
|
|
96731
|
+
filterValue: filterValue?.split(" ") || []
|
|
96732
|
+
});
|
|
96733
|
+
} else if (filterTypesDictionary[selectedFilter] === "text" && Array.isArray(filterValue)) {
|
|
96734
|
+
this.setState({
|
|
96735
|
+
filterValue: filterValue.join(" ")
|
|
96736
|
+
});
|
|
96737
|
+
}
|
|
96672
96738
|
this.setState({ selectedFilter: lodashExports.camelCase(selectedFilter) });
|
|
96673
96739
|
};
|
|
96674
96740
|
handleFilterValueChange = (filterValue) => {
|
|
@@ -96711,36 +96777,7 @@
|
|
|
96711
96777
|
render() {
|
|
96712
96778
|
const { selectedFilter, filterValue } = this.state;
|
|
96713
96779
|
const { dataType, currentFilter, removeSingleFilter } = this.props;
|
|
96714
|
-
const {
|
|
96715
|
-
handleFilterChange,
|
|
96716
|
-
handleFilterValueChange,
|
|
96717
|
-
handleFilterSubmit
|
|
96718
|
-
} = this;
|
|
96719
|
-
const filterTypesDictionary = {
|
|
96720
|
-
none: "",
|
|
96721
|
-
startsWith: "text",
|
|
96722
|
-
endsWith: "text",
|
|
96723
|
-
contains: "text",
|
|
96724
|
-
notContains: "text",
|
|
96725
|
-
isExactly: "text",
|
|
96726
|
-
isEmpty: "text",
|
|
96727
|
-
notEmpty: "text",
|
|
96728
|
-
inList: "list",
|
|
96729
|
-
notInList: "list",
|
|
96730
|
-
true: "boolean",
|
|
96731
|
-
false: "boolean",
|
|
96732
|
-
dateIs: "date",
|
|
96733
|
-
notBetween: "dateRange",
|
|
96734
|
-
isBetween: "dateRange",
|
|
96735
|
-
isBefore: "date",
|
|
96736
|
-
isAfter: "date",
|
|
96737
|
-
greaterThan: "number",
|
|
96738
|
-
lessThan: "number",
|
|
96739
|
-
inRange: "numberRange",
|
|
96740
|
-
outsideRange: "numberRange",
|
|
96741
|
-
equalTo: "number",
|
|
96742
|
-
regex: "text"
|
|
96743
|
-
};
|
|
96780
|
+
const { handleFilterChange, handleFilterValueChange, handleFilterSubmit } = this;
|
|
96744
96781
|
const filterMenuItems = getFilterMenuItems(dataType);
|
|
96745
96782
|
const ccSelectedFilter = lodashExports.camelCase(selectedFilter);
|
|
96746
96783
|
const requiresValue = ccSelectedFilter && ccSelectedFilter !== "none";
|
|
@@ -96906,7 +96943,7 @@
|
|
|
96906
96943
|
if (Array.isArray(filterValue)) {
|
|
96907
96944
|
filterValueToUse = filterValue;
|
|
96908
96945
|
} else {
|
|
96909
|
-
filterValueToUse = filterValue && filterValue.split && filterValue.split("
|
|
96946
|
+
filterValueToUse = filterValue && filterValue.split && filterValue.split(";");
|
|
96910
96947
|
}
|
|
96911
96948
|
inputGroup = /* @__PURE__ */ React$1.createElement("div", { className: "custom-menu-item" }, /* @__PURE__ */ React$1.createElement(
|
|
96912
96949
|
DateRangeInput,
|
|
@@ -112679,9 +112716,7 @@
|
|
|
112679
112716
|
entities,
|
|
112680
112717
|
reduxFormEntitiesUndoRedoStack[reduxFormEntitiesUndoRedoStack.currentVersion].inversePatches
|
|
112681
112718
|
);
|
|
112682
|
-
const { newEnts, validationErrors } = this.formatAndValidateEntities(
|
|
112683
|
-
nextState
|
|
112684
|
-
);
|
|
112719
|
+
const { newEnts, validationErrors } = this.formatAndValidateEntities(nextState);
|
|
112685
112720
|
change("reduxFormEntities", newEnts);
|
|
112686
112721
|
this.updateValidation(newEnts, validationErrors);
|
|
112687
112722
|
change("reduxFormEntitiesUndoRedoStack", {
|
|
@@ -112703,9 +112738,7 @@
|
|
|
112703
112738
|
entities,
|
|
112704
112739
|
reduxFormEntitiesUndoRedoStack[nextV].patches
|
|
112705
112740
|
);
|
|
112706
|
-
const { newEnts, validationErrors } = this.formatAndValidateEntities(
|
|
112707
|
-
nextState
|
|
112708
|
-
);
|
|
112741
|
+
const { newEnts, validationErrors } = this.formatAndValidateEntities(nextState);
|
|
112709
112742
|
change("reduxFormEntities", newEnts);
|
|
112710
112743
|
this.updateValidation(newEnts, validationErrors);
|
|
112711
112744
|
change("reduxFormEntitiesUndoRedoStack", {
|
|
@@ -113207,10 +113240,7 @@
|
|
|
113207
113240
|
this.handleCopyHelper(textToCopy, "Column copied");
|
|
113208
113241
|
};
|
|
113209
113242
|
updateEntitiesHelper = (ents, fn) => {
|
|
113210
|
-
const {
|
|
113211
|
-
change,
|
|
113212
|
-
reduxFormEntitiesUndoRedoStack = { currentVersion: 0 }
|
|
113213
|
-
} = this.props;
|
|
113243
|
+
const { change, reduxFormEntitiesUndoRedoStack = { currentVersion: 0 } } = this.props;
|
|
113214
113244
|
const [nextState, patches, inversePatches] = cn(ents, fn);
|
|
113215
113245
|
if (!inversePatches.length)
|
|
113216
113246
|
return;
|
|
@@ -113272,9 +113302,11 @@
|
|
|
113272
113302
|
}
|
|
113273
113303
|
};
|
|
113274
113304
|
handleCopySelectedCells = (e) => {
|
|
113275
|
-
const {
|
|
113276
|
-
|
|
113277
|
-
|
|
113305
|
+
const {
|
|
113306
|
+
entities = [],
|
|
113307
|
+
reduxFormSelectedCells,
|
|
113308
|
+
schema
|
|
113309
|
+
} = computePresets(this.props);
|
|
113278
113310
|
if (lodashExports.isEmpty(reduxFormSelectedCells))
|
|
113279
113311
|
return;
|
|
113280
113312
|
const pathToIndex = getFieldPathToIndex(schema);
|
|
@@ -113560,7 +113592,9 @@
|
|
|
113560
113592
|
}
|
|
113561
113593
|
const numRows = isInfinite ? entities.length : pageSize;
|
|
113562
113594
|
const idMap = reduxFormSelectedEntityIdMap || {};
|
|
113563
|
-
const selectedRowCount = Object.keys(idMap).filter(
|
|
113595
|
+
const selectedRowCount = Object.keys(idMap).filter(
|
|
113596
|
+
(key) => idMap[key]
|
|
113597
|
+
).length;
|
|
113564
113598
|
let rowsToShow = doNotShowEmptyRows ? Math.min(numRows, entities.length) : numRows;
|
|
113565
113599
|
if (entities.length === 0 && rowsToShow < 3)
|
|
113566
113600
|
rowsToShow = 3;
|
|
@@ -113646,7 +113680,7 @@
|
|
|
113646
113680
|
({ displayName, path, selectedFilter, filterValue }) => {
|
|
113647
113681
|
let filterValToDisplay = filterValue;
|
|
113648
113682
|
if (selectedFilter === "inList") {
|
|
113649
|
-
filterValToDisplay = Array.isArray(filterValToDisplay) ? filterValToDisplay : filterValToDisplay && filterValToDisplay.split("
|
|
113683
|
+
filterValToDisplay = Array.isArray(filterValToDisplay) ? filterValToDisplay : filterValToDisplay && filterValToDisplay.split(";");
|
|
113650
113684
|
}
|
|
113651
113685
|
if (Array.isArray(filterValToDisplay)) {
|
|
113652
113686
|
filterValToDisplay = filterValToDisplay.join(", ");
|
|
@@ -115056,9 +115090,7 @@
|
|
|
115056
115090
|
return getIdOrCodeOrIndex(e, i) === rowId;
|
|
115057
115091
|
});
|
|
115058
115092
|
const insertIndex = above ? indexToInsert : indexToInsert + 1;
|
|
115059
|
-
let { newEnts, validationErrors } = this.formatAndValidateEntities(
|
|
115060
|
-
newEntities
|
|
115061
|
-
);
|
|
115093
|
+
let { newEnts, validationErrors } = this.formatAndValidateEntities(newEntities);
|
|
115062
115094
|
newEnts = newEnts.map((e) => ({
|
|
115063
115095
|
...e,
|
|
115064
115096
|
_isClean: true
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teselagen/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@teselagen/file-utils": "0.3.
|
|
7
|
-
"@teselagen/bounce-loader": "0.3.
|
|
6
|
+
"@teselagen/file-utils": "0.3.7",
|
|
7
|
+
"@teselagen/bounce-loader": "0.3.7",
|
|
8
8
|
"@blueprintjs/core": "3.52.0",
|
|
9
9
|
"@blueprintjs/datetime": "3.23.19",
|
|
10
10
|
"@blueprintjs/icons": "3.33.0",
|