@teselagen/ui 0.3.18 → 0.3.19

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.cjs.js CHANGED
@@ -7422,7 +7422,7 @@ function getPlainObjectKeys(object) {
7422
7422
  var ownKeys$3 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : hasGetOwnPropertySymbols ? function (obj) {
7423
7423
  return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));
7424
7424
  } : /* istanbul ignore next */Object.getOwnPropertyNames;
7425
- function toPrimitive$3(value) {
7425
+ function toPrimitive$2(value) {
7426
7426
  return value === null ? null : typeof value === "object" ? "" + value : value;
7427
7427
  }
7428
7428
  function hasProp(target, prop) {
@@ -8351,7 +8351,7 @@ var ObservableValue = /*#__PURE__*/function (_Atom) {
8351
8351
  return this.name_ + "[" + this.value_ + "]";
8352
8352
  };
8353
8353
  _proto.valueOf = function valueOf() {
8354
- return toPrimitive$3(this.get());
8354
+ return toPrimitive$2(this.get());
8355
8355
  };
8356
8356
  _proto[_Symbol$toPrimitive] = function () {
8357
8357
  return this.valueOf();
@@ -8579,7 +8579,7 @@ var ComputedValue = /*#__PURE__*/function () {
8579
8579
  return this.name_ + "[" + this.derivation.toString() + "]";
8580
8580
  };
8581
8581
  _proto.valueOf = function valueOf() {
8582
- return toPrimitive$3(this.get());
8582
+ return toPrimitive$2(this.get());
8583
8583
  };
8584
8584
  _proto[_Symbol$toPrimitive$1] = function () {
8585
8585
  return this.valueOf();
@@ -30331,10 +30331,18 @@ var _fails = function (exec) {
30331
30331
  }
30332
30332
  };
30333
30333
 
30334
- // Thank's IE8 for his funny defineProperty
30335
- var _descriptors = !_fails(function () {
30336
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
30337
- });
30334
+ var _descriptors;
30335
+ var hasRequired_descriptors;
30336
+
30337
+ function require_descriptors () {
30338
+ if (hasRequired_descriptors) return _descriptors;
30339
+ hasRequired_descriptors = 1;
30340
+ // Thank's IE8 for his funny defineProperty
30341
+ _descriptors = !_fails(function () {
30342
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
30343
+ });
30344
+ return _descriptors;
30345
+ }
30338
30346
 
30339
30347
  var _domCreate;
30340
30348
  var hasRequired_domCreate;
@@ -30352,9 +30360,17 @@ function require_domCreate () {
30352
30360
  return _domCreate;
30353
30361
  }
30354
30362
 
30355
- var _ie8DomDefine = !_descriptors && !_fails(function () {
30356
- return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
30357
- });
30363
+ var _ie8DomDefine;
30364
+ var hasRequired_ie8DomDefine;
30365
+
30366
+ function require_ie8DomDefine () {
30367
+ if (hasRequired_ie8DomDefine) return _ie8DomDefine;
30368
+ hasRequired_ie8DomDefine = 1;
30369
+ _ie8DomDefine = !require_descriptors() && !_fails(function () {
30370
+ return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
30371
+ });
30372
+ return _ie8DomDefine;
30373
+ }
30358
30374
 
30359
30375
  // 7.1.1 ToPrimitive(input [, PreferredType])
30360
30376
  var isObject$d = _isObject;
@@ -30369,22 +30385,29 @@ var _toPrimitive = function (it, S) {
30369
30385
  throw TypeError("Can't convert object to primitive value");
30370
30386
  };
30371
30387
 
30372
- var anObject$3 = _anObject;
30373
- var IE8_DOM_DEFINE$1 = _ie8DomDefine;
30374
- var toPrimitive$2 = _toPrimitive;
30375
- var dP$2 = Object.defineProperty;
30388
+ var hasRequired_objectDp;
30376
30389
 
30377
- _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
30378
- anObject$3(O);
30379
- P = toPrimitive$2(P, true);
30380
- anObject$3(Attributes);
30381
- if (IE8_DOM_DEFINE$1) try {
30382
- return dP$2(O, P, Attributes);
30383
- } catch (e) { /* empty */ }
30384
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
30385
- if ('value' in Attributes) O[P] = Attributes.value;
30386
- return O;
30387
- };
30390
+ function require_objectDp () {
30391
+ if (hasRequired_objectDp) return _objectDp;
30392
+ hasRequired_objectDp = 1;
30393
+ var anObject = _anObject;
30394
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
30395
+ var toPrimitive = _toPrimitive;
30396
+ var dP = Object.defineProperty;
30397
+
30398
+ _objectDp.f = require_descriptors() ? Object.defineProperty : function defineProperty(O, P, Attributes) {
30399
+ anObject(O);
30400
+ P = toPrimitive(P, true);
30401
+ anObject(Attributes);
30402
+ if (IE8_DOM_DEFINE) try {
30403
+ return dP(O, P, Attributes);
30404
+ } catch (e) { /* empty */ }
30405
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
30406
+ if ('value' in Attributes) O[P] = Attributes.value;
30407
+ return O;
30408
+ };
30409
+ return _objectDp;
30410
+ }
30388
30411
 
30389
30412
  var _propertyDesc = function (bitmap, value) {
30390
30413
  return {
@@ -30395,9 +30418,9 @@ var _propertyDesc = function (bitmap, value) {
30395
30418
  };
30396
30419
  };
30397
30420
 
30398
- var dP$1 = _objectDp;
30421
+ var dP$1 = require_objectDp();
30399
30422
  var createDesc$3 = _propertyDesc;
30400
- var _hide = _descriptors ? function (object, key, value) {
30423
+ var _hide = require_descriptors() ? function (object, key, value) {
30401
30424
  return dP$1.f(object, key, createDesc$3(1, value));
30402
30425
  } : function (object, key, value) {
30403
30426
  object[key] = value;
@@ -30478,12 +30501,20 @@ var _cof = function (it) {
30478
30501
  return toString$6.call(it).slice(8, -1);
30479
30502
  };
30480
30503
 
30481
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
30482
- var cof$2 = _cof;
30483
- // eslint-disable-next-line no-prototype-builtins
30484
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30485
- return cof$2(it) == 'String' ? it.split('') : Object(it);
30486
- };
30504
+ var _iobject;
30505
+ var hasRequired_iobject;
30506
+
30507
+ function require_iobject () {
30508
+ if (hasRequired_iobject) return _iobject;
30509
+ hasRequired_iobject = 1;
30510
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
30511
+ var cof = _cof;
30512
+ // eslint-disable-next-line no-prototype-builtins
30513
+ _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30514
+ return cof(it) == 'String' ? it.split('') : Object(it);
30515
+ };
30516
+ return _iobject;
30517
+ }
30487
30518
 
30488
30519
  // 7.2.1 RequireObjectCoercible(argument)
30489
30520
  var _defined = function (it) {
@@ -30492,7 +30523,7 @@ var _defined = function (it) {
30492
30523
  };
30493
30524
 
30494
30525
  // to indexed object, toObject with fallback for non-array-like ES3 strings
30495
- var IObject = _iobject;
30526
+ var IObject = require_iobject();
30496
30527
  var defined$2 = _defined;
30497
30528
  var _toIobject = function (it) {
30498
30529
  return IObject(defined$2(it));
@@ -30599,11 +30630,11 @@ var _enumBugKeys = (
30599
30630
  ).split(',');
30600
30631
 
30601
30632
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
30602
- var $keys$2 = _objectKeysInternal;
30633
+ var $keys$3 = _objectKeysInternal;
30603
30634
  var enumBugKeys = _enumBugKeys;
30604
30635
 
30605
30636
  var _objectKeys = Object.keys || function keys(O) {
30606
- return $keys$2(O, enumBugKeys);
30637
+ return $keys$3(O, enumBugKeys);
30607
30638
  };
30608
30639
 
30609
30640
  var _objectGops = {};
@@ -30634,12 +30665,12 @@ function require_objectAssign () {
30634
30665
  if (hasRequired_objectAssign) return _objectAssign;
30635
30666
  hasRequired_objectAssign = 1;
30636
30667
  // 19.1.2.1 Object.assign(target, source, ...)
30637
- var DESCRIPTORS = _descriptors;
30668
+ var DESCRIPTORS = require_descriptors();
30638
30669
  var getKeys = _objectKeys;
30639
30670
  var gOPS = _objectGops;
30640
30671
  var pIE = require_objectPie();
30641
30672
  var toObject = _toObject;
30642
- var IObject = _iobject;
30673
+ var IObject = require_iobject();
30643
30674
  var $assign = Object.assign;
30644
30675
 
30645
30676
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -30716,11 +30747,11 @@ var hasRequired_objectDps;
30716
30747
  function require_objectDps () {
30717
30748
  if (hasRequired_objectDps) return _objectDps;
30718
30749
  hasRequired_objectDps = 1;
30719
- var dP = _objectDp;
30750
+ var dP = require_objectDp();
30720
30751
  var anObject = _anObject;
30721
30752
  var getKeys = _objectKeys;
30722
30753
 
30723
- _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
30754
+ _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
30724
30755
  anObject(O);
30725
30756
  var keys = getKeys(Properties);
30726
30757
  var length = keys.length;
@@ -30809,7 +30840,7 @@ $exports.store = store;
30809
30840
 
30810
30841
  var _wksExports = _wks.exports;
30811
30842
 
30812
- var def = _objectDp.f;
30843
+ var def = require_objectDp().f;
30813
30844
  var has$9 = _has;
30814
30845
  var TAG$1 = _wksExports('toStringTag');
30815
30846
 
@@ -31123,7 +31154,7 @@ var _isArrayIter = function (it) {
31123
31154
  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
31124
31155
  };
31125
31156
 
31126
- var $defineProperty$1 = _objectDp;
31157
+ var $defineProperty$1 = require_objectDp();
31127
31158
  var createDesc$2 = _propertyDesc;
31128
31159
 
31129
31160
  var _createProperty = function (object, index, value) {
@@ -31256,7 +31287,7 @@ var _default$8 = function (instance, Constructor) {
31256
31287
 
31257
31288
  var $export$3 = _export;
31258
31289
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
31259
- $export$3($export$3.S + $export$3.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
31290
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), 'Object', { defineProperty: require_objectDp().f });
31260
31291
 
31261
31292
  var $Object$2 = _coreExports.Object;
31262
31293
  var defineProperty$9 = function defineProperty(it, key, desc) {
@@ -31304,7 +31335,7 @@ var _meta = {exports: {}};
31304
31335
  var META$1 = _uid('meta');
31305
31336
  var isObject$c = _isObject;
31306
31337
  var has$7 = _has;
31307
- var setDesc = _objectDp.f;
31338
+ var setDesc = require_objectDp().f;
31308
31339
  var id = 0;
31309
31340
  var isExtensible = Object.isExtensible || function () {
31310
31341
  return true;
@@ -31359,7 +31390,7 @@ var _metaExports = _meta.exports;
31359
31390
 
31360
31391
  var core = _coreExports;
31361
31392
  var wksExt$1 = _wksExt;
31362
- var defineProperty$7 = _objectDp.f;
31393
+ var defineProperty$7 = require_objectDp().f;
31363
31394
  var _wksDefine = function (name) {
31364
31395
  var $Symbol = core.Symbol || (core.Symbol = {} );
31365
31396
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$7($Symbol, name, { value: wksExt$1.f(name) });
@@ -31391,24 +31422,17 @@ var _objectGopnExt = {};
31391
31422
 
31392
31423
  var _objectGopn = {};
31393
31424
 
31394
- var hasRequired_objectGopn;
31395
-
31396
- function require_objectGopn () {
31397
- if (hasRequired_objectGopn) return _objectGopn;
31398
- hasRequired_objectGopn = 1;
31399
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
31400
- var $keys = _objectKeysInternal;
31401
- var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
31425
+ // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
31426
+ var $keys$2 = _objectKeysInternal;
31427
+ var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
31402
31428
 
31403
- _objectGopn.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
31404
- return $keys(O, hiddenKeys);
31405
- };
31406
- return _objectGopn;
31407
- }
31429
+ _objectGopn.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
31430
+ return $keys$2(O, hiddenKeys);
31431
+ };
31408
31432
 
31409
31433
  // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
31410
31434
  var toIObject$2 = _toIobject;
31411
- var gOPN$1 = require_objectGopn().f;
31435
+ var gOPN$1 = _objectGopn.f;
31412
31436
  var toString$5 = {}.toString;
31413
31437
 
31414
31438
  var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
@@ -31433,10 +31457,10 @@ var createDesc$1 = _propertyDesc;
31433
31457
  var toIObject$1 = _toIobject;
31434
31458
  var toPrimitive$1 = _toPrimitive;
31435
31459
  var has$6 = _has;
31436
- var IE8_DOM_DEFINE = _ie8DomDefine;
31460
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
31437
31461
  var gOPD$2 = Object.getOwnPropertyDescriptor;
31438
31462
 
31439
- _objectGopd.f = _descriptors ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
31463
+ _objectGopd.f = require_descriptors() ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
31440
31464
  O = toIObject$1(O);
31441
31465
  P = toPrimitive$1(P, true);
31442
31466
  if (IE8_DOM_DEFINE) try {
@@ -31448,7 +31472,7 @@ _objectGopd.f = _descriptors ? gOPD$2 : function getOwnPropertyDescriptor(O, P)
31448
31472
  // ECMAScript 6 symbols shim
31449
31473
  var global$1 = _globalExports;
31450
31474
  var has$5 = _has;
31451
- var DESCRIPTORS = _descriptors;
31475
+ var DESCRIPTORS = require_descriptors();
31452
31476
  var $export$2 = _export;
31453
31477
  var redefine = _redefine;
31454
31478
  var META = _metaExports.KEY;
@@ -31471,7 +31495,7 @@ var _create$1 = require_objectCreate();
31471
31495
  var gOPNExt = _objectGopnExt;
31472
31496
  var $GOPD = _objectGopd;
31473
31497
  var $GOPS = _objectGops;
31474
- var $DP = _objectDp;
31498
+ var $DP = require_objectDp();
31475
31499
  var $keys$1 = _objectKeys;
31476
31500
  var gOPD$1 = $GOPD.f;
31477
31501
  var dP = $DP.f;
@@ -31595,7 +31619,7 @@ if (!USE_NATIVE) {
31595
31619
 
31596
31620
  $GOPD.f = $getOwnPropertyDescriptor;
31597
31621
  $DP.f = $defineProperty;
31598
- require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
31622
+ _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
31599
31623
  require_objectPie().f = $propertyIsEnumerable;
31600
31624
  $GOPS.f = $getOwnPropertySymbols;
31601
31625
 
@@ -66204,7 +66228,7 @@ class TgSelect extends React$1.Component {
66204
66228
  if (isTagSelect && item.value && item.value.includes && item.value.includes(":")) {
66205
66229
  const topLevelId = item.value.split(":")[0];
66206
66230
  valArray = valArray.filter((val) => {
66207
- if (val.value && val.value.includes && val.value.includes(":")) {
66231
+ if (val?.value && val.value.includes && val.value.includes(":")) {
66208
66232
  const valId = val.value.split(":")[0];
66209
66233
  if (valId === topLevelId) {
66210
66234
  return false;
@@ -66292,7 +66316,7 @@ class TgSelect extends React$1.Component {
66292
66316
  getTagProps = (label) => {
66293
66317
  const { multi, value = [], disabled: _disabled } = this.props;
66294
66318
  const val = Array.isArray(value) ? value : [value];
66295
- const matchingVal = val.find((op) => op.label === label);
66319
+ const matchingVal = val.find((op) => op?.label === label);
66296
66320
  const disabled = _disabled || matchingVal && matchingVal.disabled;
66297
66321
  const className = matchingVal && matchingVal.className;
66298
66322
  return {
@@ -83482,7 +83506,7 @@ const renderReactSelect = (props) => {
83482
83506
  }
83483
83507
  } else if (Array.isArray(value)) {
83484
83508
  valueToUse = value.map((val) => {
83485
- if (val.userCreated) {
83509
+ if (val?.userCreated) {
83486
83510
  return {
83487
83511
  label: val.value,
83488
83512
  value: val
@@ -83509,10 +83533,10 @@ const renderReactSelect = (props) => {
83509
83533
  let valToPass;
83510
83534
  if (Array.isArray(valOrVals)) {
83511
83535
  valToPass = valOrVals.map(function(val) {
83512
- if (val.userCreated) {
83536
+ if (val?.userCreated) {
83513
83537
  return val;
83514
83538
  }
83515
- return val.value;
83539
+ return val?.value;
83516
83540
  });
83517
83541
  } else if (valOrVals) {
83518
83542
  if (valOrVals.userCreated) {
package/index.es.js CHANGED
@@ -7401,7 +7401,7 @@ function getPlainObjectKeys(object) {
7401
7401
  var ownKeys$3 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : hasGetOwnPropertySymbols ? function (obj) {
7402
7402
  return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));
7403
7403
  } : /* istanbul ignore next */Object.getOwnPropertyNames;
7404
- function toPrimitive$3(value) {
7404
+ function toPrimitive$2(value) {
7405
7405
  return value === null ? null : typeof value === "object" ? "" + value : value;
7406
7406
  }
7407
7407
  function hasProp(target, prop) {
@@ -8330,7 +8330,7 @@ var ObservableValue = /*#__PURE__*/function (_Atom) {
8330
8330
  return this.name_ + "[" + this.value_ + "]";
8331
8331
  };
8332
8332
  _proto.valueOf = function valueOf() {
8333
- return toPrimitive$3(this.get());
8333
+ return toPrimitive$2(this.get());
8334
8334
  };
8335
8335
  _proto[_Symbol$toPrimitive] = function () {
8336
8336
  return this.valueOf();
@@ -8558,7 +8558,7 @@ var ComputedValue = /*#__PURE__*/function () {
8558
8558
  return this.name_ + "[" + this.derivation.toString() + "]";
8559
8559
  };
8560
8560
  _proto.valueOf = function valueOf() {
8561
- return toPrimitive$3(this.get());
8561
+ return toPrimitive$2(this.get());
8562
8562
  };
8563
8563
  _proto[_Symbol$toPrimitive$1] = function () {
8564
8564
  return this.valueOf();
@@ -30310,10 +30310,18 @@ var _fails = function (exec) {
30310
30310
  }
30311
30311
  };
30312
30312
 
30313
- // Thank's IE8 for his funny defineProperty
30314
- var _descriptors = !_fails(function () {
30315
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
30316
- });
30313
+ var _descriptors;
30314
+ var hasRequired_descriptors;
30315
+
30316
+ function require_descriptors () {
30317
+ if (hasRequired_descriptors) return _descriptors;
30318
+ hasRequired_descriptors = 1;
30319
+ // Thank's IE8 for his funny defineProperty
30320
+ _descriptors = !_fails(function () {
30321
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
30322
+ });
30323
+ return _descriptors;
30324
+ }
30317
30325
 
30318
30326
  var _domCreate;
30319
30327
  var hasRequired_domCreate;
@@ -30331,9 +30339,17 @@ function require_domCreate () {
30331
30339
  return _domCreate;
30332
30340
  }
30333
30341
 
30334
- var _ie8DomDefine = !_descriptors && !_fails(function () {
30335
- return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
30336
- });
30342
+ var _ie8DomDefine;
30343
+ var hasRequired_ie8DomDefine;
30344
+
30345
+ function require_ie8DomDefine () {
30346
+ if (hasRequired_ie8DomDefine) return _ie8DomDefine;
30347
+ hasRequired_ie8DomDefine = 1;
30348
+ _ie8DomDefine = !require_descriptors() && !_fails(function () {
30349
+ return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
30350
+ });
30351
+ return _ie8DomDefine;
30352
+ }
30337
30353
 
30338
30354
  // 7.1.1 ToPrimitive(input [, PreferredType])
30339
30355
  var isObject$d = _isObject;
@@ -30348,22 +30364,29 @@ var _toPrimitive = function (it, S) {
30348
30364
  throw TypeError("Can't convert object to primitive value");
30349
30365
  };
30350
30366
 
30351
- var anObject$3 = _anObject;
30352
- var IE8_DOM_DEFINE$1 = _ie8DomDefine;
30353
- var toPrimitive$2 = _toPrimitive;
30354
- var dP$2 = Object.defineProperty;
30367
+ var hasRequired_objectDp;
30355
30368
 
30356
- _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
30357
- anObject$3(O);
30358
- P = toPrimitive$2(P, true);
30359
- anObject$3(Attributes);
30360
- if (IE8_DOM_DEFINE$1) try {
30361
- return dP$2(O, P, Attributes);
30362
- } catch (e) { /* empty */ }
30363
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
30364
- if ('value' in Attributes) O[P] = Attributes.value;
30365
- return O;
30366
- };
30369
+ function require_objectDp () {
30370
+ if (hasRequired_objectDp) return _objectDp;
30371
+ hasRequired_objectDp = 1;
30372
+ var anObject = _anObject;
30373
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
30374
+ var toPrimitive = _toPrimitive;
30375
+ var dP = Object.defineProperty;
30376
+
30377
+ _objectDp.f = require_descriptors() ? Object.defineProperty : function defineProperty(O, P, Attributes) {
30378
+ anObject(O);
30379
+ P = toPrimitive(P, true);
30380
+ anObject(Attributes);
30381
+ if (IE8_DOM_DEFINE) try {
30382
+ return dP(O, P, Attributes);
30383
+ } catch (e) { /* empty */ }
30384
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
30385
+ if ('value' in Attributes) O[P] = Attributes.value;
30386
+ return O;
30387
+ };
30388
+ return _objectDp;
30389
+ }
30367
30390
 
30368
30391
  var _propertyDesc = function (bitmap, value) {
30369
30392
  return {
@@ -30374,9 +30397,9 @@ var _propertyDesc = function (bitmap, value) {
30374
30397
  };
30375
30398
  };
30376
30399
 
30377
- var dP$1 = _objectDp;
30400
+ var dP$1 = require_objectDp();
30378
30401
  var createDesc$3 = _propertyDesc;
30379
- var _hide = _descriptors ? function (object, key, value) {
30402
+ var _hide = require_descriptors() ? function (object, key, value) {
30380
30403
  return dP$1.f(object, key, createDesc$3(1, value));
30381
30404
  } : function (object, key, value) {
30382
30405
  object[key] = value;
@@ -30457,12 +30480,20 @@ var _cof = function (it) {
30457
30480
  return toString$6.call(it).slice(8, -1);
30458
30481
  };
30459
30482
 
30460
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
30461
- var cof$2 = _cof;
30462
- // eslint-disable-next-line no-prototype-builtins
30463
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30464
- return cof$2(it) == 'String' ? it.split('') : Object(it);
30465
- };
30483
+ var _iobject;
30484
+ var hasRequired_iobject;
30485
+
30486
+ function require_iobject () {
30487
+ if (hasRequired_iobject) return _iobject;
30488
+ hasRequired_iobject = 1;
30489
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
30490
+ var cof = _cof;
30491
+ // eslint-disable-next-line no-prototype-builtins
30492
+ _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30493
+ return cof(it) == 'String' ? it.split('') : Object(it);
30494
+ };
30495
+ return _iobject;
30496
+ }
30466
30497
 
30467
30498
  // 7.2.1 RequireObjectCoercible(argument)
30468
30499
  var _defined = function (it) {
@@ -30471,7 +30502,7 @@ var _defined = function (it) {
30471
30502
  };
30472
30503
 
30473
30504
  // to indexed object, toObject with fallback for non-array-like ES3 strings
30474
- var IObject = _iobject;
30505
+ var IObject = require_iobject();
30475
30506
  var defined$2 = _defined;
30476
30507
  var _toIobject = function (it) {
30477
30508
  return IObject(defined$2(it));
@@ -30578,11 +30609,11 @@ var _enumBugKeys = (
30578
30609
  ).split(',');
30579
30610
 
30580
30611
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
30581
- var $keys$2 = _objectKeysInternal;
30612
+ var $keys$3 = _objectKeysInternal;
30582
30613
  var enumBugKeys = _enumBugKeys;
30583
30614
 
30584
30615
  var _objectKeys = Object.keys || function keys(O) {
30585
- return $keys$2(O, enumBugKeys);
30616
+ return $keys$3(O, enumBugKeys);
30586
30617
  };
30587
30618
 
30588
30619
  var _objectGops = {};
@@ -30613,12 +30644,12 @@ function require_objectAssign () {
30613
30644
  if (hasRequired_objectAssign) return _objectAssign;
30614
30645
  hasRequired_objectAssign = 1;
30615
30646
  // 19.1.2.1 Object.assign(target, source, ...)
30616
- var DESCRIPTORS = _descriptors;
30647
+ var DESCRIPTORS = require_descriptors();
30617
30648
  var getKeys = _objectKeys;
30618
30649
  var gOPS = _objectGops;
30619
30650
  var pIE = require_objectPie();
30620
30651
  var toObject = _toObject;
30621
- var IObject = _iobject;
30652
+ var IObject = require_iobject();
30622
30653
  var $assign = Object.assign;
30623
30654
 
30624
30655
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -30695,11 +30726,11 @@ var hasRequired_objectDps;
30695
30726
  function require_objectDps () {
30696
30727
  if (hasRequired_objectDps) return _objectDps;
30697
30728
  hasRequired_objectDps = 1;
30698
- var dP = _objectDp;
30729
+ var dP = require_objectDp();
30699
30730
  var anObject = _anObject;
30700
30731
  var getKeys = _objectKeys;
30701
30732
 
30702
- _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
30733
+ _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
30703
30734
  anObject(O);
30704
30735
  var keys = getKeys(Properties);
30705
30736
  var length = keys.length;
@@ -30788,7 +30819,7 @@ $exports.store = store;
30788
30819
 
30789
30820
  var _wksExports = _wks.exports;
30790
30821
 
30791
- var def = _objectDp.f;
30822
+ var def = require_objectDp().f;
30792
30823
  var has$9 = _has;
30793
30824
  var TAG$1 = _wksExports('toStringTag');
30794
30825
 
@@ -31102,7 +31133,7 @@ var _isArrayIter = function (it) {
31102
31133
  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
31103
31134
  };
31104
31135
 
31105
- var $defineProperty$1 = _objectDp;
31136
+ var $defineProperty$1 = require_objectDp();
31106
31137
  var createDesc$2 = _propertyDesc;
31107
31138
 
31108
31139
  var _createProperty = function (object, index, value) {
@@ -31235,7 +31266,7 @@ var _default$8 = function (instance, Constructor) {
31235
31266
 
31236
31267
  var $export$3 = _export;
31237
31268
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
31238
- $export$3($export$3.S + $export$3.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
31269
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), 'Object', { defineProperty: require_objectDp().f });
31239
31270
 
31240
31271
  var $Object$2 = _coreExports.Object;
31241
31272
  var defineProperty$9 = function defineProperty(it, key, desc) {
@@ -31283,7 +31314,7 @@ var _meta = {exports: {}};
31283
31314
  var META$1 = _uid('meta');
31284
31315
  var isObject$c = _isObject;
31285
31316
  var has$7 = _has;
31286
- var setDesc = _objectDp.f;
31317
+ var setDesc = require_objectDp().f;
31287
31318
  var id = 0;
31288
31319
  var isExtensible = Object.isExtensible || function () {
31289
31320
  return true;
@@ -31338,7 +31369,7 @@ var _metaExports = _meta.exports;
31338
31369
 
31339
31370
  var core = _coreExports;
31340
31371
  var wksExt$1 = _wksExt;
31341
- var defineProperty$7 = _objectDp.f;
31372
+ var defineProperty$7 = require_objectDp().f;
31342
31373
  var _wksDefine = function (name) {
31343
31374
  var $Symbol = core.Symbol || (core.Symbol = {} );
31344
31375
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$7($Symbol, name, { value: wksExt$1.f(name) });
@@ -31370,24 +31401,17 @@ var _objectGopnExt = {};
31370
31401
 
31371
31402
  var _objectGopn = {};
31372
31403
 
31373
- var hasRequired_objectGopn;
31374
-
31375
- function require_objectGopn () {
31376
- if (hasRequired_objectGopn) return _objectGopn;
31377
- hasRequired_objectGopn = 1;
31378
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
31379
- var $keys = _objectKeysInternal;
31380
- var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
31404
+ // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
31405
+ var $keys$2 = _objectKeysInternal;
31406
+ var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
31381
31407
 
31382
- _objectGopn.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
31383
- return $keys(O, hiddenKeys);
31384
- };
31385
- return _objectGopn;
31386
- }
31408
+ _objectGopn.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
31409
+ return $keys$2(O, hiddenKeys);
31410
+ };
31387
31411
 
31388
31412
  // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
31389
31413
  var toIObject$2 = _toIobject;
31390
- var gOPN$1 = require_objectGopn().f;
31414
+ var gOPN$1 = _objectGopn.f;
31391
31415
  var toString$5 = {}.toString;
31392
31416
 
31393
31417
  var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
@@ -31412,10 +31436,10 @@ var createDesc$1 = _propertyDesc;
31412
31436
  var toIObject$1 = _toIobject;
31413
31437
  var toPrimitive$1 = _toPrimitive;
31414
31438
  var has$6 = _has;
31415
- var IE8_DOM_DEFINE = _ie8DomDefine;
31439
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
31416
31440
  var gOPD$2 = Object.getOwnPropertyDescriptor;
31417
31441
 
31418
- _objectGopd.f = _descriptors ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
31442
+ _objectGopd.f = require_descriptors() ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
31419
31443
  O = toIObject$1(O);
31420
31444
  P = toPrimitive$1(P, true);
31421
31445
  if (IE8_DOM_DEFINE) try {
@@ -31427,7 +31451,7 @@ _objectGopd.f = _descriptors ? gOPD$2 : function getOwnPropertyDescriptor(O, P)
31427
31451
  // ECMAScript 6 symbols shim
31428
31452
  var global$1 = _globalExports;
31429
31453
  var has$5 = _has;
31430
- var DESCRIPTORS = _descriptors;
31454
+ var DESCRIPTORS = require_descriptors();
31431
31455
  var $export$2 = _export;
31432
31456
  var redefine = _redefine;
31433
31457
  var META = _metaExports.KEY;
@@ -31450,7 +31474,7 @@ var _create$1 = require_objectCreate();
31450
31474
  var gOPNExt = _objectGopnExt;
31451
31475
  var $GOPD = _objectGopd;
31452
31476
  var $GOPS = _objectGops;
31453
- var $DP = _objectDp;
31477
+ var $DP = require_objectDp();
31454
31478
  var $keys$1 = _objectKeys;
31455
31479
  var gOPD$1 = $GOPD.f;
31456
31480
  var dP = $DP.f;
@@ -31574,7 +31598,7 @@ if (!USE_NATIVE) {
31574
31598
 
31575
31599
  $GOPD.f = $getOwnPropertyDescriptor;
31576
31600
  $DP.f = $defineProperty;
31577
- require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
31601
+ _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
31578
31602
  require_objectPie().f = $propertyIsEnumerable;
31579
31603
  $GOPS.f = $getOwnPropertySymbols;
31580
31604
 
@@ -66183,7 +66207,7 @@ class TgSelect extends React__default.Component {
66183
66207
  if (isTagSelect && item.value && item.value.includes && item.value.includes(":")) {
66184
66208
  const topLevelId = item.value.split(":")[0];
66185
66209
  valArray = valArray.filter((val) => {
66186
- if (val.value && val.value.includes && val.value.includes(":")) {
66210
+ if (val?.value && val.value.includes && val.value.includes(":")) {
66187
66211
  const valId = val.value.split(":")[0];
66188
66212
  if (valId === topLevelId) {
66189
66213
  return false;
@@ -66271,7 +66295,7 @@ class TgSelect extends React__default.Component {
66271
66295
  getTagProps = (label) => {
66272
66296
  const { multi, value = [], disabled: _disabled } = this.props;
66273
66297
  const val = Array.isArray(value) ? value : [value];
66274
- const matchingVal = val.find((op) => op.label === label);
66298
+ const matchingVal = val.find((op) => op?.label === label);
66275
66299
  const disabled = _disabled || matchingVal && matchingVal.disabled;
66276
66300
  const className = matchingVal && matchingVal.className;
66277
66301
  return {
@@ -83461,7 +83485,7 @@ const renderReactSelect = (props) => {
83461
83485
  }
83462
83486
  } else if (Array.isArray(value)) {
83463
83487
  valueToUse = value.map((val) => {
83464
- if (val.userCreated) {
83488
+ if (val?.userCreated) {
83465
83489
  return {
83466
83490
  label: val.value,
83467
83491
  value: val
@@ -83488,10 +83512,10 @@ const renderReactSelect = (props) => {
83488
83512
  let valToPass;
83489
83513
  if (Array.isArray(valOrVals)) {
83490
83514
  valToPass = valOrVals.map(function(val) {
83491
- if (val.userCreated) {
83515
+ if (val?.userCreated) {
83492
83516
  return val;
83493
83517
  }
83494
- return val.value;
83518
+ return val?.value;
83495
83519
  });
83496
83520
  } else if (valOrVals) {
83497
83521
  if (valOrVals.userCreated) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ui",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -692,7 +692,7 @@ export const renderReactSelect = props => {
692
692
  }
693
693
  } else if (Array.isArray(value)) {
694
694
  valueToUse = value.map(val => {
695
- if (val.userCreated) {
695
+ if (val?.userCreated) {
696
696
  return {
697
697
  label: val.value,
698
698
  value: val
@@ -719,10 +719,10 @@ export const renderReactSelect = props => {
719
719
  let valToPass;
720
720
  if (Array.isArray(valOrVals)) {
721
721
  valToPass = valOrVals.map(function (val) {
722
- if (val.userCreated) {
722
+ if (val?.userCreated) {
723
723
  return val;
724
724
  }
725
- return val.value;
725
+ return val?.value;
726
726
  });
727
727
  } else if (valOrVals) {
728
728
  if (valOrVals.userCreated) {
@@ -76,7 +76,7 @@ class TgSelect extends React.Component {
76
76
  ) {
77
77
  const topLevelId = item.value.split(":")[0];
78
78
  valArray = valArray.filter(val => {
79
- if (val.value && val.value.includes && val.value.includes(":")) {
79
+ if (val?.value && val.value.includes && val.value.includes(":")) {
80
80
  const valId = val.value.split(":")[0];
81
81
  if (valId === topLevelId) {
82
82
  return false;
@@ -187,7 +187,7 @@ class TgSelect extends React.Component {
187
187
  getTagProps = label => {
188
188
  const { multi, value = [], disabled: _disabled } = this.props;
189
189
  const val = Array.isArray(value) ? value : [value];
190
- const matchingVal = val.find(op => op.label === label);
190
+ const matchingVal = val.find(op => op?.label === label);
191
191
  const disabled = _disabled || (matchingVal && matchingVal.disabled);
192
192
  const className = matchingVal && matchingVal.className;
193
193