@teselagen/ui 0.3.12 → 0.3.13

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.js CHANGED
@@ -30475,12 +30475,20 @@ var _cof = function (it) {
30475
30475
  return toString$6.call(it).slice(8, -1);
30476
30476
  };
30477
30477
 
30478
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
30479
- var cof$2 = _cof;
30480
- // eslint-disable-next-line no-prototype-builtins
30481
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30482
- return cof$2(it) == 'String' ? it.split('') : Object(it);
30483
- };
30478
+ var _iobject;
30479
+ var hasRequired_iobject;
30480
+
30481
+ function require_iobject () {
30482
+ if (hasRequired_iobject) return _iobject;
30483
+ hasRequired_iobject = 1;
30484
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
30485
+ var cof = _cof;
30486
+ // eslint-disable-next-line no-prototype-builtins
30487
+ _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30488
+ return cof(it) == 'String' ? it.split('') : Object(it);
30489
+ };
30490
+ return _iobject;
30491
+ }
30484
30492
 
30485
30493
  // 7.2.1 RequireObjectCoercible(argument)
30486
30494
  var _defined = function (it) {
@@ -30489,7 +30497,7 @@ var _defined = function (it) {
30489
30497
  };
30490
30498
 
30491
30499
  // to indexed object, toObject with fallback for non-array-like ES3 strings
30492
- var IObject = _iobject;
30500
+ var IObject = require_iobject();
30493
30501
  var defined$2 = _defined;
30494
30502
  var _toIobject = function (it) {
30495
30503
  return IObject(defined$2(it));
@@ -30636,7 +30644,7 @@ function require_objectAssign () {
30636
30644
  var gOPS = _objectGops;
30637
30645
  var pIE = require_objectPie();
30638
30646
  var toObject = _toObject;
30639
- var IObject = _iobject;
30647
+ var IObject = require_iobject();
30640
30648
  var $assign = Object.assign;
30641
30649
 
30642
30650
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -66511,11 +66519,11 @@ function tagOptionRender(vals) {
66511
66519
  function getSort(text, queryString) {
66512
66520
  let ret;
66513
66521
  if (text === queryString)
66514
- ret = 0;
66522
+ ret = -1;
66515
66523
  else if (text.includes(queryString))
66516
- ret = 0.9;
66524
+ ret = text.indexOf(queryString);
66517
66525
  else
66518
- ret = 1;
66526
+ ret = text.length;
66519
66527
  return ret;
66520
66528
  }
66521
66529
 
package/index.mjs CHANGED
@@ -30454,12 +30454,20 @@ var _cof = function (it) {
30454
30454
  return toString$6.call(it).slice(8, -1);
30455
30455
  };
30456
30456
 
30457
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
30458
- var cof$2 = _cof;
30459
- // eslint-disable-next-line no-prototype-builtins
30460
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30461
- return cof$2(it) == 'String' ? it.split('') : Object(it);
30462
- };
30457
+ var _iobject;
30458
+ var hasRequired_iobject;
30459
+
30460
+ function require_iobject () {
30461
+ if (hasRequired_iobject) return _iobject;
30462
+ hasRequired_iobject = 1;
30463
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
30464
+ var cof = _cof;
30465
+ // eslint-disable-next-line no-prototype-builtins
30466
+ _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30467
+ return cof(it) == 'String' ? it.split('') : Object(it);
30468
+ };
30469
+ return _iobject;
30470
+ }
30463
30471
 
30464
30472
  // 7.2.1 RequireObjectCoercible(argument)
30465
30473
  var _defined = function (it) {
@@ -30468,7 +30476,7 @@ var _defined = function (it) {
30468
30476
  };
30469
30477
 
30470
30478
  // to indexed object, toObject with fallback for non-array-like ES3 strings
30471
- var IObject = _iobject;
30479
+ var IObject = require_iobject();
30472
30480
  var defined$2 = _defined;
30473
30481
  var _toIobject = function (it) {
30474
30482
  return IObject(defined$2(it));
@@ -30615,7 +30623,7 @@ function require_objectAssign () {
30615
30623
  var gOPS = _objectGops;
30616
30624
  var pIE = require_objectPie();
30617
30625
  var toObject = _toObject;
30618
- var IObject = _iobject;
30626
+ var IObject = require_iobject();
30619
30627
  var $assign = Object.assign;
30620
30628
 
30621
30629
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -66490,11 +66498,11 @@ function tagOptionRender(vals) {
66490
66498
  function getSort(text, queryString) {
66491
66499
  let ret;
66492
66500
  if (text === queryString)
66493
- ret = 0;
66501
+ ret = -1;
66494
66502
  else if (text.includes(queryString))
66495
- ret = 0.9;
66503
+ ret = text.indexOf(queryString);
66496
66504
  else
66497
- ret = 1;
66505
+ ret = text.length;
66498
66506
  return ret;
66499
66507
  }
66500
66508
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ui",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
4
4
  "main": "./src/index.js",
5
5
  "dependencies": {
6
6
  "@teselagen/file-utils": "0.3.9",
@@ -287,5 +287,5 @@ export default compose(
287
287
  // "reduxFormExpandedEntityIdMap"
288
288
  // ]
289
289
  // }),
290
- branch(props => !props.alwaysRerender, pureNoFunc),
290
+ branch(props => !props.alwaysRerender, pureNoFunc)
291
291
  );
@@ -458,8 +458,8 @@ function tagOptionRender(vals) {
458
458
 
459
459
  function getSort(text, queryString) {
460
460
  let ret;
461
- if (text === queryString) ret = 0;
462
- else if (text.includes(queryString)) ret = 0.9;
463
- else ret = 1;
461
+ if (text === queryString) ret = -1;
462
+ else if (text.includes(queryString)) ret = text.indexOf(queryString);
463
+ else ret = text.length;
464
464
  return ret;
465
465
  }
@@ -3,9 +3,7 @@ import { reduxForm, change, formValueSelector, destroy } from "redux-form";
3
3
  import { Callout, Icon, Intent, Tab, Tabs } from "@blueprintjs/core";
4
4
  import immer from "immer";
5
5
  import { observer } from "mobx-react";
6
-
7
6
  import "./UploadCsvWizard.css";
8
-
9
7
  import { forEach } from "lodash";
10
8
  import { compose } from "recompose";
11
9
  import SimpleStepViz from "./SimpleStepViz";