@teselagen/ove 0.3.18 → 0.3.20

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
@@ -30159,6 +30159,8 @@ function DialogFooter({
30159
30159
  style,
30160
30160
  onClick = lodashExports.noop,
30161
30161
  secondaryAction,
30162
+ secondaryDisabled,
30163
+ secondaryNotMinimal,
30162
30164
  intent = core$5.Intent.PRIMARY,
30163
30165
  secondaryIntent,
30164
30166
  backText = "Back",
@@ -30190,7 +30192,8 @@ function DialogFooter({
30190
30192
  core$5.Button,
30191
30193
  {
30192
30194
  intent: secondaryIntent,
30193
- className: core$5.Classes.MINIMAL + " " + secondaryClassName,
30195
+ disabled: secondaryDisabled,
30196
+ className: (!secondaryNotMinimal ? core$5.Classes.MINIMAL : "") + " " + secondaryClassName,
30194
30197
  text: secondaryText,
30195
30198
  onClick: secondaryAction || hideModal || function() {
30196
30199
  try {
@@ -30426,12 +30429,20 @@ var _cof = function (it) {
30426
30429
  return toString$6.call(it).slice(8, -1);
30427
30430
  };
30428
30431
 
30429
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
30430
- var cof$2 = _cof;
30431
- // eslint-disable-next-line no-prototype-builtins
30432
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30433
- return cof$2(it) == 'String' ? it.split('') : Object(it);
30434
- };
30432
+ var _iobject;
30433
+ var hasRequired_iobject;
30434
+
30435
+ function require_iobject () {
30436
+ if (hasRequired_iobject) return _iobject;
30437
+ hasRequired_iobject = 1;
30438
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
30439
+ var cof = _cof;
30440
+ // eslint-disable-next-line no-prototype-builtins
30441
+ _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30442
+ return cof(it) == 'String' ? it.split('') : Object(it);
30443
+ };
30444
+ return _iobject;
30445
+ }
30435
30446
 
30436
30447
  // 7.2.1 RequireObjectCoercible(argument)
30437
30448
  var _defined = function (it) {
@@ -30440,7 +30451,7 @@ var _defined = function (it) {
30440
30451
  };
30441
30452
 
30442
30453
  // to indexed object, toObject with fallback for non-array-like ES3 strings
30443
- var IObject = _iobject;
30454
+ var IObject = require_iobject();
30444
30455
  var defined$2 = _defined;
30445
30456
  var _toIobject = function (it) {
30446
30457
  return IObject(defined$2(it));
@@ -30587,7 +30598,7 @@ function require_objectAssign () {
30587
30598
  var gOPS = _objectGops;
30588
30599
  var pIE = require_objectPie();
30589
30600
  var toObject = _toObject;
30590
- var IObject = _iobject;
30601
+ var IObject = require_iobject();
30591
30602
  var $assign = Object.assign;
30592
30603
 
30593
30604
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -66129,7 +66140,7 @@ class TgSelect extends React$3.Component {
66129
66140
  if (isTagSelect && item.value && item.value.includes && item.value.includes(":")) {
66130
66141
  const topLevelId = item.value.split(":")[0];
66131
66142
  valArray = valArray.filter((val) => {
66132
- if (val.value && val.value.includes && val.value.includes(":")) {
66143
+ if (val?.value && val.value.includes && val.value.includes(":")) {
66133
66144
  const valId = val.value.split(":")[0];
66134
66145
  if (valId === topLevelId) {
66135
66146
  return false;
@@ -66217,7 +66228,7 @@ class TgSelect extends React$3.Component {
66217
66228
  getTagProps = (label) => {
66218
66229
  const { multi, value = [], disabled: _disabled } = this.props;
66219
66230
  const val = Array.isArray(value) ? value : [value];
66220
- const matchingVal = val.find((op) => op.label === label);
66231
+ const matchingVal = val.find((op) => op?.label === label);
66221
66232
  const disabled = _disabled || matchingVal && matchingVal.disabled;
66222
66233
  const className = matchingVal && matchingVal.className;
66223
66234
  return {
@@ -83356,7 +83367,7 @@ const renderReactSelect = (props) => {
83356
83367
  }
83357
83368
  } else if (Array.isArray(value)) {
83358
83369
  valueToUse = value.map((val) => {
83359
- if (val.userCreated) {
83370
+ if (val?.userCreated) {
83360
83371
  return {
83361
83372
  label: val.value,
83362
83373
  value: val
@@ -83383,10 +83394,10 @@ const renderReactSelect = (props) => {
83383
83394
  let valToPass;
83384
83395
  if (Array.isArray(valOrVals)) {
83385
83396
  valToPass = valOrVals.map(function(val) {
83386
- if (val.userCreated) {
83397
+ if (val?.userCreated) {
83387
83398
  return val;
83388
83399
  }
83389
- return val.value;
83400
+ return val?.value;
83390
83401
  });
83391
83402
  } else if (valOrVals) {
83392
83403
  if (valOrVals.userCreated) {
@@ -89385,16 +89396,22 @@ class AlertWrapper extends React$3.Component {
89385
89396
  state = { isOpen: true };
89386
89397
  render() {
89387
89398
  const {
89399
+ title,
89388
89400
  handleClose,
89389
89401
  text,
89390
89402
  resolve,
89391
89403
  noCancelButton,
89392
89404
  content,
89393
89405
  className,
89406
+ thirdButtonNotMinimal,
89407
+ thirdButtonClassName,
89394
89408
  thirdButtonText,
89395
89409
  thirdButtonIntent,
89410
+ fourthButtonNotMinimal,
89411
+ fourthButtonClassName,
89396
89412
  fourthButtonText,
89397
89413
  fourthButtonIntent,
89414
+ handleSubmit,
89398
89415
  canEscapeKeyCancel,
89399
89416
  confirmButtonText = "OK",
89400
89417
  cancelButtonText = "Cancel",
@@ -89409,19 +89426,28 @@ class AlertWrapper extends React$3.Component {
89409
89426
  return /* @__PURE__ */ React$3.createElement(
89410
89427
  core$5.Dialog,
89411
89428
  {
89412
- className: `bp3-alert ${className || ""}`,
89429
+ title,
89430
+ className: (title ? "" : "bp3-alert") + ` ${className || ""}`,
89413
89431
  isOpen: this.state.isOpen,
89414
89432
  intent,
89415
89433
  cancelButtonText,
89416
89434
  onCancel: cancelButtonText ? () => doClose(false) : void 0,
89417
- onConfirm: () => doClose(true),
89435
+ onConfirm: handleSubmit ? handleSubmit((v) => doClose(v)) : () => doClose(true),
89418
89436
  ...rest,
89419
89437
  ...noCancelButton && {
89420
89438
  onCancel: void 0,
89421
89439
  cancelButtonText: void 0
89422
89440
  }
89423
89441
  },
89424
- /* @__PURE__ */ React$3.createElement("div", { className: "bp3-alert-contents", style: { padding: 5 } }, content, text && /* @__PURE__ */ React$3.createElement("div", { style: { marginBottom: 10 } }, text)),
89442
+ /* @__PURE__ */ React$3.createElement(
89443
+ "div",
89444
+ {
89445
+ className: title ? "bp3-dialog-body" : "bp3-alert-contents",
89446
+ style: { padding: 5 }
89447
+ },
89448
+ content,
89449
+ text && /* @__PURE__ */ React$3.createElement("div", { style: { marginBottom: 10 } }, text)
89450
+ ),
89425
89451
  /* @__PURE__ */ React$3.createElement(
89426
89452
  DialogFooter,
89427
89453
  {
@@ -89432,23 +89458,27 @@ class AlertWrapper extends React$3.Component {
89432
89458
  additionalButtons: thirdButtonText || fourthButtonText ? /* @__PURE__ */ React$3.createElement(React$3.Fragment, null, !!fourthButtonText && /* @__PURE__ */ React$3.createElement(
89433
89459
  core$5.Button,
89434
89460
  {
89461
+ className: (!fourthButtonNotMinimal ? core$5.Classes.MINIMAL : "") + " " + fourthButtonClassName,
89435
89462
  intent: fourthButtonIntent,
89436
89463
  text: fourthButtonText,
89437
- onClick: () => {
89438
- doClose("fourthButtonClicked");
89439
- }
89464
+ onClick: handleSubmit ? handleSubmit(
89465
+ (v) => doClose({ ...v, fourthButtonClicked: true })
89466
+ ) : () => doClose("fourthButtonClicked")
89440
89467
  }
89441
89468
  ), !!thirdButtonText && /* @__PURE__ */ React$3.createElement(
89442
89469
  core$5.Button,
89443
89470
  {
89471
+ className: (!thirdButtonNotMinimal ? core$5.Classes.MINIMAL : "") + " " + thirdButtonClassName,
89444
89472
  intent: thirdButtonIntent,
89445
89473
  text: thirdButtonText,
89446
- onClick: () => {
89474
+ onClick: handleSubmit ? handleSubmit(
89475
+ (v) => doClose({ ...v, thirdButtonClicked: true })
89476
+ ) : () => {
89447
89477
  doClose("thirdButtonClicked");
89448
89478
  }
89449
89479
  }
89450
89480
  )) : void 0,
89451
- containerClassname: "bp3-alert-footer",
89481
+ containerClassname: title ? "" : "bp3-alert-footer",
89452
89482
  backText: noCancelButton ? "" : cancelButtonText,
89453
89483
  text: confirmButtonText,
89454
89484
  intent
@@ -113779,13 +113809,13 @@ function coerceLocation({
113779
113809
  messages.push(
113780
113810
  "Invalid annotation start: " + location.start + " detected for " + location.name + " and set to size: " + size
113781
113811
  );
113782
- location.start = size - (isProtein ? 3 : 1);
113812
+ location.start = Math.max(0, size - (isProtein ? 3 : 1));
113783
113813
  }
113784
113814
  if (location.end < 0 || !(location.end <= size - 1) || location.end > size - 1) {
113785
113815
  messages.push(
113786
113816
  "Invalid annotation end: " + location.end + " detected for " + location.name + " and set to seq size: " + size
113787
113817
  );
113788
- location.end = size - 1;
113818
+ location.end = Math.max(0, size - 1);
113789
113819
  }
113790
113820
  if (location.start > location.end && circular === false) {
113791
113821
  messages.push(
@@ -161155,7 +161185,7 @@ function showFileDialog({ multiple = false, onSelect }) {
161155
161185
  }
161156
161186
 
161157
161187
  const name = "@teselagen/ove";
161158
- const version = "0.3.17";
161188
+ const version = "0.3.19";
161159
161189
  const main = "./src/index.js";
161160
161190
  const exports$1 = {
161161
161191
  ".": {
package/index.es.js CHANGED
@@ -30138,6 +30138,8 @@ function DialogFooter({
30138
30138
  style,
30139
30139
  onClick = lodashExports.noop,
30140
30140
  secondaryAction,
30141
+ secondaryDisabled,
30142
+ secondaryNotMinimal,
30141
30143
  intent = Intent.PRIMARY,
30142
30144
  secondaryIntent,
30143
30145
  backText = "Back",
@@ -30169,7 +30171,8 @@ function DialogFooter({
30169
30171
  Button,
30170
30172
  {
30171
30173
  intent: secondaryIntent,
30172
- className: Classes.MINIMAL + " " + secondaryClassName,
30174
+ disabled: secondaryDisabled,
30175
+ className: (!secondaryNotMinimal ? Classes.MINIMAL : "") + " " + secondaryClassName,
30173
30176
  text: secondaryText,
30174
30177
  onClick: secondaryAction || hideModal || function() {
30175
30178
  try {
@@ -30405,12 +30408,20 @@ var _cof = function (it) {
30405
30408
  return toString$6.call(it).slice(8, -1);
30406
30409
  };
30407
30410
 
30408
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
30409
- var cof$2 = _cof;
30410
- // eslint-disable-next-line no-prototype-builtins
30411
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30412
- return cof$2(it) == 'String' ? it.split('') : Object(it);
30413
- };
30411
+ var _iobject;
30412
+ var hasRequired_iobject;
30413
+
30414
+ function require_iobject () {
30415
+ if (hasRequired_iobject) return _iobject;
30416
+ hasRequired_iobject = 1;
30417
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
30418
+ var cof = _cof;
30419
+ // eslint-disable-next-line no-prototype-builtins
30420
+ _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30421
+ return cof(it) == 'String' ? it.split('') : Object(it);
30422
+ };
30423
+ return _iobject;
30424
+ }
30414
30425
 
30415
30426
  // 7.2.1 RequireObjectCoercible(argument)
30416
30427
  var _defined = function (it) {
@@ -30419,7 +30430,7 @@ var _defined = function (it) {
30419
30430
  };
30420
30431
 
30421
30432
  // to indexed object, toObject with fallback for non-array-like ES3 strings
30422
- var IObject = _iobject;
30433
+ var IObject = require_iobject();
30423
30434
  var defined$2 = _defined;
30424
30435
  var _toIobject = function (it) {
30425
30436
  return IObject(defined$2(it));
@@ -30566,7 +30577,7 @@ function require_objectAssign () {
30566
30577
  var gOPS = _objectGops;
30567
30578
  var pIE = require_objectPie();
30568
30579
  var toObject = _toObject;
30569
- var IObject = _iobject;
30580
+ var IObject = require_iobject();
30570
30581
  var $assign = Object.assign;
30571
30582
 
30572
30583
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -66108,7 +66119,7 @@ class TgSelect extends React__default$1.Component {
66108
66119
  if (isTagSelect && item.value && item.value.includes && item.value.includes(":")) {
66109
66120
  const topLevelId = item.value.split(":")[0];
66110
66121
  valArray = valArray.filter((val) => {
66111
- if (val.value && val.value.includes && val.value.includes(":")) {
66122
+ if (val?.value && val.value.includes && val.value.includes(":")) {
66112
66123
  const valId = val.value.split(":")[0];
66113
66124
  if (valId === topLevelId) {
66114
66125
  return false;
@@ -66196,7 +66207,7 @@ class TgSelect extends React__default$1.Component {
66196
66207
  getTagProps = (label) => {
66197
66208
  const { multi, value = [], disabled: _disabled } = this.props;
66198
66209
  const val = Array.isArray(value) ? value : [value];
66199
- const matchingVal = val.find((op) => op.label === label);
66210
+ const matchingVal = val.find((op) => op?.label === label);
66200
66211
  const disabled = _disabled || matchingVal && matchingVal.disabled;
66201
66212
  const className = matchingVal && matchingVal.className;
66202
66213
  return {
@@ -83335,7 +83346,7 @@ const renderReactSelect = (props) => {
83335
83346
  }
83336
83347
  } else if (Array.isArray(value)) {
83337
83348
  valueToUse = value.map((val) => {
83338
- if (val.userCreated) {
83349
+ if (val?.userCreated) {
83339
83350
  return {
83340
83351
  label: val.value,
83341
83352
  value: val
@@ -83362,10 +83373,10 @@ const renderReactSelect = (props) => {
83362
83373
  let valToPass;
83363
83374
  if (Array.isArray(valOrVals)) {
83364
83375
  valToPass = valOrVals.map(function(val) {
83365
- if (val.userCreated) {
83376
+ if (val?.userCreated) {
83366
83377
  return val;
83367
83378
  }
83368
- return val.value;
83379
+ return val?.value;
83369
83380
  });
83370
83381
  } else if (valOrVals) {
83371
83382
  if (valOrVals.userCreated) {
@@ -89364,16 +89375,22 @@ class AlertWrapper extends Component {
89364
89375
  state = { isOpen: true };
89365
89376
  render() {
89366
89377
  const {
89378
+ title,
89367
89379
  handleClose,
89368
89380
  text,
89369
89381
  resolve,
89370
89382
  noCancelButton,
89371
89383
  content,
89372
89384
  className,
89385
+ thirdButtonNotMinimal,
89386
+ thirdButtonClassName,
89373
89387
  thirdButtonText,
89374
89388
  thirdButtonIntent,
89389
+ fourthButtonNotMinimal,
89390
+ fourthButtonClassName,
89375
89391
  fourthButtonText,
89376
89392
  fourthButtonIntent,
89393
+ handleSubmit,
89377
89394
  canEscapeKeyCancel,
89378
89395
  confirmButtonText = "OK",
89379
89396
  cancelButtonText = "Cancel",
@@ -89388,19 +89405,28 @@ class AlertWrapper extends Component {
89388
89405
  return /* @__PURE__ */ React__default$1.createElement(
89389
89406
  Dialog,
89390
89407
  {
89391
- className: `bp3-alert ${className || ""}`,
89408
+ title,
89409
+ className: (title ? "" : "bp3-alert") + ` ${className || ""}`,
89392
89410
  isOpen: this.state.isOpen,
89393
89411
  intent,
89394
89412
  cancelButtonText,
89395
89413
  onCancel: cancelButtonText ? () => doClose(false) : void 0,
89396
- onConfirm: () => doClose(true),
89414
+ onConfirm: handleSubmit ? handleSubmit((v) => doClose(v)) : () => doClose(true),
89397
89415
  ...rest,
89398
89416
  ...noCancelButton && {
89399
89417
  onCancel: void 0,
89400
89418
  cancelButtonText: void 0
89401
89419
  }
89402
89420
  },
89403
- /* @__PURE__ */ React__default$1.createElement("div", { className: "bp3-alert-contents", style: { padding: 5 } }, content, text && /* @__PURE__ */ React__default$1.createElement("div", { style: { marginBottom: 10 } }, text)),
89421
+ /* @__PURE__ */ React__default$1.createElement(
89422
+ "div",
89423
+ {
89424
+ className: title ? "bp3-dialog-body" : "bp3-alert-contents",
89425
+ style: { padding: 5 }
89426
+ },
89427
+ content,
89428
+ text && /* @__PURE__ */ React__default$1.createElement("div", { style: { marginBottom: 10 } }, text)
89429
+ ),
89404
89430
  /* @__PURE__ */ React__default$1.createElement(
89405
89431
  DialogFooter,
89406
89432
  {
@@ -89411,23 +89437,27 @@ class AlertWrapper extends Component {
89411
89437
  additionalButtons: thirdButtonText || fourthButtonText ? /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, null, !!fourthButtonText && /* @__PURE__ */ React__default$1.createElement(
89412
89438
  Button,
89413
89439
  {
89440
+ className: (!fourthButtonNotMinimal ? Classes.MINIMAL : "") + " " + fourthButtonClassName,
89414
89441
  intent: fourthButtonIntent,
89415
89442
  text: fourthButtonText,
89416
- onClick: () => {
89417
- doClose("fourthButtonClicked");
89418
- }
89443
+ onClick: handleSubmit ? handleSubmit(
89444
+ (v) => doClose({ ...v, fourthButtonClicked: true })
89445
+ ) : () => doClose("fourthButtonClicked")
89419
89446
  }
89420
89447
  ), !!thirdButtonText && /* @__PURE__ */ React__default$1.createElement(
89421
89448
  Button,
89422
89449
  {
89450
+ className: (!thirdButtonNotMinimal ? Classes.MINIMAL : "") + " " + thirdButtonClassName,
89423
89451
  intent: thirdButtonIntent,
89424
89452
  text: thirdButtonText,
89425
- onClick: () => {
89453
+ onClick: handleSubmit ? handleSubmit(
89454
+ (v) => doClose({ ...v, thirdButtonClicked: true })
89455
+ ) : () => {
89426
89456
  doClose("thirdButtonClicked");
89427
89457
  }
89428
89458
  }
89429
89459
  )) : void 0,
89430
- containerClassname: "bp3-alert-footer",
89460
+ containerClassname: title ? "" : "bp3-alert-footer",
89431
89461
  backText: noCancelButton ? "" : cancelButtonText,
89432
89462
  text: confirmButtonText,
89433
89463
  intent
@@ -113758,13 +113788,13 @@ function coerceLocation({
113758
113788
  messages.push(
113759
113789
  "Invalid annotation start: " + location.start + " detected for " + location.name + " and set to size: " + size
113760
113790
  );
113761
- location.start = size - (isProtein ? 3 : 1);
113791
+ location.start = Math.max(0, size - (isProtein ? 3 : 1));
113762
113792
  }
113763
113793
  if (location.end < 0 || !(location.end <= size - 1) || location.end > size - 1) {
113764
113794
  messages.push(
113765
113795
  "Invalid annotation end: " + location.end + " detected for " + location.name + " and set to seq size: " + size
113766
113796
  );
113767
- location.end = size - 1;
113797
+ location.end = Math.max(0, size - 1);
113768
113798
  }
113769
113799
  if (location.start > location.end && circular === false) {
113770
113800
  messages.push(
@@ -161134,7 +161164,7 @@ function showFileDialog({ multiple = false, onSelect }) {
161134
161164
  }
161135
161165
 
161136
161166
  const name = "@teselagen/ove";
161137
- const version = "0.3.17";
161167
+ const version = "0.3.19";
161138
161168
  const main = "./src/index.js";
161139
161169
  const exports$1 = {
161140
161170
  ".": {
package/index.umd.js CHANGED
@@ -23998,7 +23998,7 @@
23998
23998
  var ownKeys$9 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : hasGetOwnPropertySymbols ? function (obj) {
23999
23999
  return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));
24000
24000
  } : /* istanbul ignore next */Object.getOwnPropertyNames;
24001
- function toPrimitive$3(value) {
24001
+ function toPrimitive$2(value) {
24002
24002
  return value === null ? null : typeof value === "object" ? "" + value : value;
24003
24003
  }
24004
24004
  function hasProp(target, prop) {
@@ -24927,7 +24927,7 @@
24927
24927
  return this.name_ + "[" + this.value_ + "]";
24928
24928
  };
24929
24929
  _proto.valueOf = function valueOf() {
24930
- return toPrimitive$3(this.get());
24930
+ return toPrimitive$2(this.get());
24931
24931
  };
24932
24932
  _proto[_Symbol$toPrimitive] = function () {
24933
24933
  return this.valueOf();
@@ -25155,7 +25155,7 @@
25155
25155
  return this.name_ + "[" + this.derivation.toString() + "]";
25156
25156
  };
25157
25157
  _proto.valueOf = function valueOf() {
25158
- return toPrimitive$3(this.get());
25158
+ return toPrimitive$2(this.get());
25159
25159
  };
25160
25160
  _proto[_Symbol$toPrimitive$1] = function () {
25161
25161
  return this.valueOf();
@@ -56903,6 +56903,8 @@
56903
56903
  style,
56904
56904
  onClick = lodashExports.noop,
56905
56905
  secondaryAction,
56906
+ secondaryDisabled,
56907
+ secondaryNotMinimal,
56906
56908
  intent = Intent.PRIMARY,
56907
56909
  secondaryIntent,
56908
56910
  backText = "Back",
@@ -56934,7 +56936,8 @@
56934
56936
  Button,
56935
56937
  {
56936
56938
  intent: secondaryIntent,
56937
- className: MINIMAL + " " + secondaryClassName,
56939
+ disabled: secondaryDisabled,
56940
+ className: (!secondaryNotMinimal ? MINIMAL : "") + " " + secondaryClassName,
56938
56941
  text: secondaryText,
56939
56942
  onClick: secondaryAction || hideModal || function() {
56940
56943
  try {
@@ -57023,10 +57026,18 @@
57023
57026
  }
57024
57027
  };
57025
57028
 
57026
- // Thank's IE8 for his funny defineProperty
57027
- var _descriptors = !_fails(function () {
57028
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
57029
- });
57029
+ var _descriptors;
57030
+ var hasRequired_descriptors;
57031
+
57032
+ function require_descriptors () {
57033
+ if (hasRequired_descriptors) return _descriptors;
57034
+ hasRequired_descriptors = 1;
57035
+ // Thank's IE8 for his funny defineProperty
57036
+ _descriptors = !_fails(function () {
57037
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
57038
+ });
57039
+ return _descriptors;
57040
+ }
57030
57041
 
57031
57042
  var _domCreate;
57032
57043
  var hasRequired_domCreate;
@@ -57044,9 +57055,17 @@
57044
57055
  return _domCreate;
57045
57056
  }
57046
57057
 
57047
- var _ie8DomDefine = !_descriptors && !_fails(function () {
57048
- return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
57049
- });
57058
+ var _ie8DomDefine;
57059
+ var hasRequired_ie8DomDefine;
57060
+
57061
+ function require_ie8DomDefine () {
57062
+ if (hasRequired_ie8DomDefine) return _ie8DomDefine;
57063
+ hasRequired_ie8DomDefine = 1;
57064
+ _ie8DomDefine = !require_descriptors() && !_fails(function () {
57065
+ return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
57066
+ });
57067
+ return _ie8DomDefine;
57068
+ }
57050
57069
 
57051
57070
  // 7.1.1 ToPrimitive(input [, PreferredType])
57052
57071
  var isObject$6 = _isObject;
@@ -57061,22 +57080,29 @@
57061
57080
  throw TypeError("Can't convert object to primitive value");
57062
57081
  };
57063
57082
 
57064
- var anObject$3 = _anObject;
57065
- var IE8_DOM_DEFINE$1 = _ie8DomDefine;
57066
- var toPrimitive$2 = _toPrimitive$1;
57067
- var dP$2 = Object.defineProperty;
57068
-
57069
- _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
57070
- anObject$3(O);
57071
- P = toPrimitive$2(P, true);
57072
- anObject$3(Attributes);
57073
- if (IE8_DOM_DEFINE$1) try {
57074
- return dP$2(O, P, Attributes);
57075
- } catch (e) { /* empty */ }
57076
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
57077
- if ('value' in Attributes) O[P] = Attributes.value;
57078
- return O;
57079
- };
57083
+ var hasRequired_objectDp;
57084
+
57085
+ function require_objectDp () {
57086
+ if (hasRequired_objectDp) return _objectDp;
57087
+ hasRequired_objectDp = 1;
57088
+ var anObject = _anObject;
57089
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
57090
+ var toPrimitive = _toPrimitive$1;
57091
+ var dP = Object.defineProperty;
57092
+
57093
+ _objectDp.f = require_descriptors() ? Object.defineProperty : function defineProperty(O, P, Attributes) {
57094
+ anObject(O);
57095
+ P = toPrimitive(P, true);
57096
+ anObject(Attributes);
57097
+ if (IE8_DOM_DEFINE) try {
57098
+ return dP(O, P, Attributes);
57099
+ } catch (e) { /* empty */ }
57100
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
57101
+ if ('value' in Attributes) O[P] = Attributes.value;
57102
+ return O;
57103
+ };
57104
+ return _objectDp;
57105
+ }
57080
57106
 
57081
57107
  var _propertyDesc = function (bitmap, value) {
57082
57108
  return {
@@ -57087,10 +57113,10 @@
57087
57113
  };
57088
57114
  };
57089
57115
 
57090
- var dP$1 = _objectDp;
57116
+ var dP$2 = require_objectDp();
57091
57117
  var createDesc$3 = _propertyDesc;
57092
- var _hide = _descriptors ? function (object, key, value) {
57093
- return dP$1.f(object, key, createDesc$3(1, value));
57118
+ var _hide = require_descriptors() ? function (object, key, value) {
57119
+ return dP$2.f(object, key, createDesc$3(1, value));
57094
57120
  } : function (object, key, value) {
57095
57121
  object[key] = value;
57096
57122
  return object;
@@ -57106,7 +57132,7 @@
57106
57132
  var ctx$1 = _ctx;
57107
57133
  var hide$2 = _hide;
57108
57134
  var has$d = _has;
57109
- var PROTOTYPE$1 = 'prototype';
57135
+ var PROTOTYPE$2 = 'prototype';
57110
57136
 
57111
57137
  var $export$8 = function (type, name, source) {
57112
57138
  var IS_FORCED = type & $export$8.F;
@@ -57116,8 +57142,8 @@
57116
57142
  var IS_BIND = type & $export$8.B;
57117
57143
  var IS_WRAP = type & $export$8.W;
57118
57144
  var exports = IS_GLOBAL ? core$3 : core$3[name] || (core$3[name] = {});
57119
- var expProto = exports[PROTOTYPE$1];
57120
- var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$1];
57145
+ var expProto = exports[PROTOTYPE$2];
57146
+ var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$2];
57121
57147
  var key, own, out;
57122
57148
  if (IS_GLOBAL) source = name;
57123
57149
  for (key in source) {
@@ -57141,7 +57167,7 @@
57141
57167
  } return new C(a, b, c);
57142
57168
  } return C.apply(this, arguments);
57143
57169
  };
57144
- F[PROTOTYPE$1] = C[PROTOTYPE$1];
57170
+ F[PROTOTYPE$2] = C[PROTOTYPE$2];
57145
57171
  return F;
57146
57172
  // make static versions for prototype methods
57147
57173
  })(out) : IS_PROTO && typeof out == 'function' ? ctx$1(Function.call, out) : out;
@@ -57170,12 +57196,20 @@
57170
57196
  return toString$4.call(it).slice(8, -1);
57171
57197
  };
57172
57198
 
57173
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
57174
- var cof$2 = _cof;
57175
- // eslint-disable-next-line no-prototype-builtins
57176
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
57177
- return cof$2(it) == 'String' ? it.split('') : Object(it);
57178
- };
57199
+ var _iobject;
57200
+ var hasRequired_iobject;
57201
+
57202
+ function require_iobject () {
57203
+ if (hasRequired_iobject) return _iobject;
57204
+ hasRequired_iobject = 1;
57205
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
57206
+ var cof = _cof;
57207
+ // eslint-disable-next-line no-prototype-builtins
57208
+ _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
57209
+ return cof(it) == 'String' ? it.split('') : Object(it);
57210
+ };
57211
+ return _iobject;
57212
+ }
57179
57213
 
57180
57214
  // 7.2.1 RequireObjectCoercible(argument)
57181
57215
  var _defined = function (it) {
@@ -57184,7 +57218,7 @@
57184
57218
  };
57185
57219
 
57186
57220
  // to indexed object, toObject with fallback for non-array-like ES3 strings
57187
- var IObject = _iobject;
57221
+ var IObject = require_iobject();
57188
57222
  var defined$2 = _defined;
57189
57223
  var _toIobject = function (it) {
57190
57224
  return IObject(defined$2(it));
@@ -57270,14 +57304,14 @@
57270
57304
  var has$c = _has;
57271
57305
  var toIObject$4 = _toIobject;
57272
57306
  var arrayIndexOf = _arrayIncludes$1(false);
57273
- var IE_PROTO$1 = _sharedKey('IE_PROTO');
57307
+ var IE_PROTO$2 = _sharedKey('IE_PROTO');
57274
57308
 
57275
57309
  var _objectKeysInternal = function (object, names) {
57276
57310
  var O = toIObject$4(object);
57277
57311
  var i = 0;
57278
57312
  var result = [];
57279
57313
  var key;
57280
- for (key in O) if (key != IE_PROTO$1) has$c(O, key) && result.push(key);
57314
+ for (key in O) if (key != IE_PROTO$2) has$c(O, key) && result.push(key);
57281
57315
  // Don't enum bug & hidden keys
57282
57316
  while (names.length > i) if (has$c(O, key = names[i++])) {
57283
57317
  ~arrayIndexOf(result, key) || result.push(key);
@@ -57292,10 +57326,10 @@
57292
57326
 
57293
57327
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
57294
57328
  var $keys$3 = _objectKeysInternal;
57295
- var enumBugKeys = _enumBugKeys;
57329
+ var enumBugKeys$1 = _enumBugKeys;
57296
57330
 
57297
57331
  var _objectKeys = Object.keys || function keys(O) {
57298
- return $keys$3(O, enumBugKeys);
57332
+ return $keys$3(O, enumBugKeys$1);
57299
57333
  };
57300
57334
 
57301
57335
  var _objectGops = {};
@@ -57326,12 +57360,12 @@
57326
57360
  if (hasRequired_objectAssign) return _objectAssign;
57327
57361
  hasRequired_objectAssign = 1;
57328
57362
  // 19.1.2.1 Object.assign(target, source, ...)
57329
- var DESCRIPTORS = _descriptors;
57363
+ var DESCRIPTORS = require_descriptors();
57330
57364
  var getKeys = _objectKeys;
57331
57365
  var gOPS = _objectGops;
57332
57366
  var pIE = require_objectPie();
57333
57367
  var toObject = _toObject;
57334
- var IObject = _iobject;
57368
+ var IObject = require_iobject();
57335
57369
  var $assign = Object.assign;
57336
57370
 
57337
57371
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -57402,27 +57436,19 @@
57402
57436
 
57403
57437
  var _redefine = _hide;
57404
57438
 
57405
- var _objectDps;
57406
- var hasRequired_objectDps;
57439
+ var dP$1 = require_objectDp();
57440
+ var anObject$4 = _anObject;
57441
+ var getKeys$1 = _objectKeys;
57407
57442
 
57408
- function require_objectDps () {
57409
- if (hasRequired_objectDps) return _objectDps;
57410
- hasRequired_objectDps = 1;
57411
- var dP = _objectDp;
57412
- var anObject = _anObject;
57413
- var getKeys = _objectKeys;
57414
-
57415
- _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
57416
- anObject(O);
57417
- var keys = getKeys(Properties);
57418
- var length = keys.length;
57419
- var i = 0;
57420
- var P;
57421
- while (length > i) dP.f(O, P = keys[i++], Properties[P]);
57422
- return O;
57423
- };
57424
- return _objectDps;
57425
- }
57443
+ var _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
57444
+ anObject$4(O);
57445
+ var keys = getKeys$1(Properties);
57446
+ var length = keys.length;
57447
+ var i = 0;
57448
+ var P;
57449
+ while (length > i) dP$1.f(O, P = keys[i++], Properties[P]);
57450
+ return O;
57451
+ };
57426
57452
 
57427
57453
  var _html;
57428
57454
  var hasRequired_html;
@@ -57435,55 +57461,47 @@
57435
57461
  return _html;
57436
57462
  }
57437
57463
 
57438
- var _objectCreate;
57439
- var hasRequired_objectCreate;
57464
+ // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
57465
+ var anObject$3 = _anObject;
57466
+ var dPs = _objectDps;
57467
+ var enumBugKeys = _enumBugKeys;
57468
+ var IE_PROTO$1 = _sharedKey('IE_PROTO');
57469
+ var Empty = function () { /* empty */ };
57470
+ var PROTOTYPE$1 = 'prototype';
57440
57471
 
57441
- function require_objectCreate () {
57442
- if (hasRequired_objectCreate) return _objectCreate;
57443
- hasRequired_objectCreate = 1;
57444
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
57445
- var anObject = _anObject;
57446
- var dPs = require_objectDps();
57447
- var enumBugKeys = _enumBugKeys;
57448
- var IE_PROTO = _sharedKey('IE_PROTO');
57449
- var Empty = function () { /* empty */ };
57450
- var PROTOTYPE = 'prototype';
57451
-
57452
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
57453
- var createDict = function () {
57454
- // Thrash, waste and sodomy: IE GC bug
57455
- var iframe = require_domCreate()('iframe');
57456
- var i = enumBugKeys.length;
57457
- var lt = '<';
57458
- var gt = '>';
57459
- var iframeDocument;
57460
- iframe.style.display = 'none';
57461
- require_html().appendChild(iframe);
57462
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
57463
- // createDict = iframe.contentWindow.Object;
57464
- // html.removeChild(iframe);
57465
- iframeDocument = iframe.contentWindow.document;
57466
- iframeDocument.open();
57467
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
57468
- iframeDocument.close();
57469
- createDict = iframeDocument.F;
57470
- while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
57471
- return createDict();
57472
- };
57473
-
57474
- _objectCreate = Object.create || function create(O, Properties) {
57475
- var result;
57476
- if (O !== null) {
57477
- Empty[PROTOTYPE] = anObject(O);
57478
- result = new Empty();
57479
- Empty[PROTOTYPE] = null;
57480
- // add "__proto__" for Object.getPrototypeOf polyfill
57481
- result[IE_PROTO] = O;
57482
- } else result = createDict();
57483
- return Properties === undefined ? result : dPs(result, Properties);
57484
- };
57485
- return _objectCreate;
57486
- }
57472
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
57473
+ var createDict = function () {
57474
+ // Thrash, waste and sodomy: IE GC bug
57475
+ var iframe = require_domCreate()('iframe');
57476
+ var i = enumBugKeys.length;
57477
+ var lt = '<';
57478
+ var gt = '>';
57479
+ var iframeDocument;
57480
+ iframe.style.display = 'none';
57481
+ require_html().appendChild(iframe);
57482
+ iframe.src = 'javascript:'; // eslint-disable-line no-script-url
57483
+ // createDict = iframe.contentWindow.Object;
57484
+ // html.removeChild(iframe);
57485
+ iframeDocument = iframe.contentWindow.document;
57486
+ iframeDocument.open();
57487
+ iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
57488
+ iframeDocument.close();
57489
+ createDict = iframeDocument.F;
57490
+ while (i--) delete createDict[PROTOTYPE$1][enumBugKeys[i]];
57491
+ return createDict();
57492
+ };
57493
+
57494
+ var _objectCreate = Object.create || function create(O, Properties) {
57495
+ var result;
57496
+ if (O !== null) {
57497
+ Empty[PROTOTYPE$1] = anObject$3(O);
57498
+ result = new Empty();
57499
+ Empty[PROTOTYPE$1] = null;
57500
+ // add "__proto__" for Object.getPrototypeOf polyfill
57501
+ result[IE_PROTO$1] = O;
57502
+ } else result = createDict();
57503
+ return Properties === undefined ? result : dPs(result, Properties);
57504
+ };
57487
57505
 
57488
57506
  var _wks = {exports: {}};
57489
57507
 
@@ -57501,7 +57519,7 @@
57501
57519
 
57502
57520
  var _wksExports = _wks.exports;
57503
57521
 
57504
- var def = _objectDp.f;
57522
+ var def = require_objectDp().f;
57505
57523
  var has$b = _has;
57506
57524
  var TAG$1 = _wksExports('toStringTag');
57507
57525
 
@@ -57509,7 +57527,7 @@
57509
57527
  if (it && !has$b(it = stat ? it : it.prototype, TAG$1)) def(it, TAG$1, { configurable: true, value: tag });
57510
57528
  };
57511
57529
 
57512
- var create$4 = require_objectCreate();
57530
+ var create$4 = _objectCreate;
57513
57531
  var descriptor = _propertyDesc;
57514
57532
  var setToStringTag$2 = _setToStringTag;
57515
57533
  var IteratorPrototype = {};
@@ -57815,7 +57833,7 @@
57815
57833
  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
57816
57834
  };
57817
57835
 
57818
- var $defineProperty$1 = _objectDp;
57836
+ var $defineProperty$1 = require_objectDp();
57819
57837
  var createDesc$2 = _propertyDesc;
57820
57838
 
57821
57839
  var _createProperty = function (object, index, value) {
@@ -57948,7 +57966,7 @@
57948
57966
 
57949
57967
  var $export$3 = _export;
57950
57968
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
57951
- $export$3($export$3.S + $export$3.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
57969
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), 'Object', { defineProperty: require_objectDp().f });
57952
57970
 
57953
57971
  var $Object$1 = _coreExports.Object;
57954
57972
  var defineProperty$6 = function defineProperty(it, key, desc) {
@@ -57996,7 +58014,7 @@
57996
58014
  var META$1 = _uid('meta');
57997
58015
  var isObject$5 = _isObject;
57998
58016
  var has$9 = _has;
57999
- var setDesc = _objectDp.f;
58017
+ var setDesc = require_objectDp().f;
58000
58018
  var id$1 = 0;
58001
58019
  var isExtensible = Object.isExtensible || function () {
58002
58020
  return true;
@@ -58051,7 +58069,7 @@
58051
58069
 
58052
58070
  var core = _coreExports;
58053
58071
  var wksExt$1 = _wksExt;
58054
- var defineProperty$4 = _objectDp.f;
58072
+ var defineProperty$4 = require_objectDp().f;
58055
58073
  var _wksDefine = function (name) {
58056
58074
  var $Symbol = core.Symbol || (core.Symbol = {} );
58057
58075
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$4($Symbol, name, { value: wksExt$1.f(name) });
@@ -58118,10 +58136,10 @@
58118
58136
  var toIObject$1 = _toIobject;
58119
58137
  var toPrimitive$1 = _toPrimitive$1;
58120
58138
  var has$8 = _has;
58121
- var IE8_DOM_DEFINE = _ie8DomDefine;
58139
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
58122
58140
  var gOPD$2 = Object.getOwnPropertyDescriptor;
58123
58141
 
58124
- _objectGopd.f = _descriptors ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
58142
+ _objectGopd.f = require_descriptors() ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
58125
58143
  O = toIObject$1(O);
58126
58144
  P = toPrimitive$1(P, true);
58127
58145
  if (IE8_DOM_DEFINE) try {
@@ -58133,7 +58151,7 @@
58133
58151
  // ECMAScript 6 symbols shim
58134
58152
  var global$1 = _globalExports;
58135
58153
  var has$7 = _has;
58136
- var DESCRIPTORS = _descriptors;
58154
+ var DESCRIPTORS = require_descriptors();
58137
58155
  var $export$2 = _export;
58138
58156
  var redefine = _redefine;
58139
58157
  var META = _metaExports.KEY;
@@ -58152,11 +58170,11 @@
58152
58170
  var toIObject = _toIobject;
58153
58171
  var toPrimitive = _toPrimitive$1;
58154
58172
  var createDesc = _propertyDesc;
58155
- var _create$1 = require_objectCreate();
58173
+ var _create$1 = _objectCreate;
58156
58174
  var gOPNExt = _objectGopnExt;
58157
58175
  var $GOPD = _objectGopd;
58158
58176
  var $GOPS = _objectGops;
58159
- var $DP = _objectDp;
58177
+ var $DP = require_objectDp();
58160
58178
  var $keys$1 = _objectKeys;
58161
58179
  var gOPD$1 = $GOPD.f;
58162
58180
  var dP = $DP.f;
@@ -58462,7 +58480,7 @@
58462
58480
 
58463
58481
  var $export = _export;
58464
58482
  // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
58465
- $export($export.S, 'Object', { create: require_objectCreate() });
58483
+ $export($export.S, 'Object', { create: _objectCreate });
58466
58484
 
58467
58485
  var $Object = _coreExports.Object;
58468
58486
  var create$3 = function create(P, D) {
@@ -90414,7 +90432,7 @@
90414
90432
  if (isTagSelect && item.value && item.value.includes && item.value.includes(":")) {
90415
90433
  const topLevelId = item.value.split(":")[0];
90416
90434
  valArray = valArray.filter((val) => {
90417
- if (val.value && val.value.includes && val.value.includes(":")) {
90435
+ if (val?.value && val.value.includes && val.value.includes(":")) {
90418
90436
  const valId = val.value.split(":")[0];
90419
90437
  if (valId === topLevelId) {
90420
90438
  return false;
@@ -90502,7 +90520,7 @@
90502
90520
  getTagProps = (label) => {
90503
90521
  const { multi, value = [], disabled: _disabled } = this.props;
90504
90522
  const val = Array.isArray(value) ? value : [value];
90505
- const matchingVal = val.find((op) => op.label === label);
90523
+ const matchingVal = val.find((op) => op?.label === label);
90506
90524
  const disabled = _disabled || matchingVal && matchingVal.disabled;
90507
90525
  const className = matchingVal && matchingVal.className;
90508
90526
  return {
@@ -111750,7 +111768,7 @@
111750
111768
  }
111751
111769
  } else if (Array.isArray(value)) {
111752
111770
  valueToUse = value.map((val) => {
111753
- if (val.userCreated) {
111771
+ if (val?.userCreated) {
111754
111772
  return {
111755
111773
  label: val.value,
111756
111774
  value: val
@@ -111777,10 +111795,10 @@
111777
111795
  let valToPass;
111778
111796
  if (Array.isArray(valOrVals)) {
111779
111797
  valToPass = valOrVals.map(function(val) {
111780
- if (val.userCreated) {
111798
+ if (val?.userCreated) {
111781
111799
  return val;
111782
111800
  }
111783
- return val.value;
111801
+ return val?.value;
111784
111802
  });
111785
111803
  } else if (valOrVals) {
111786
111804
  if (valOrVals.userCreated) {
@@ -117768,16 +117786,22 @@
117768
117786
  state = { isOpen: true };
117769
117787
  render() {
117770
117788
  const {
117789
+ title,
117771
117790
  handleClose,
117772
117791
  text,
117773
117792
  resolve,
117774
117793
  noCancelButton,
117775
117794
  content,
117776
117795
  className,
117796
+ thirdButtonNotMinimal,
117797
+ thirdButtonClassName,
117777
117798
  thirdButtonText,
117778
117799
  thirdButtonIntent,
117800
+ fourthButtonNotMinimal,
117801
+ fourthButtonClassName,
117779
117802
  fourthButtonText,
117780
117803
  fourthButtonIntent,
117804
+ handleSubmit,
117781
117805
  canEscapeKeyCancel,
117782
117806
  confirmButtonText = "OK",
117783
117807
  cancelButtonText = "Cancel",
@@ -117792,19 +117816,28 @@
117792
117816
  return /* @__PURE__ */ React$3.createElement(
117793
117817
  Dialog,
117794
117818
  {
117795
- className: `bp3-alert ${className || ""}`,
117819
+ title,
117820
+ className: (title ? "" : "bp3-alert") + ` ${className || ""}`,
117796
117821
  isOpen: this.state.isOpen,
117797
117822
  intent,
117798
117823
  cancelButtonText,
117799
117824
  onCancel: cancelButtonText ? () => doClose(false) : void 0,
117800
- onConfirm: () => doClose(true),
117825
+ onConfirm: handleSubmit ? handleSubmit((v) => doClose(v)) : () => doClose(true),
117801
117826
  ...rest,
117802
117827
  ...noCancelButton && {
117803
117828
  onCancel: void 0,
117804
117829
  cancelButtonText: void 0
117805
117830
  }
117806
117831
  },
117807
- /* @__PURE__ */ React$3.createElement("div", { className: "bp3-alert-contents", style: { padding: 5 } }, content, text && /* @__PURE__ */ React$3.createElement("div", { style: { marginBottom: 10 } }, text)),
117832
+ /* @__PURE__ */ React$3.createElement(
117833
+ "div",
117834
+ {
117835
+ className: title ? "bp3-dialog-body" : "bp3-alert-contents",
117836
+ style: { padding: 5 }
117837
+ },
117838
+ content,
117839
+ text && /* @__PURE__ */ React$3.createElement("div", { style: { marginBottom: 10 } }, text)
117840
+ ),
117808
117841
  /* @__PURE__ */ React$3.createElement(
117809
117842
  DialogFooter,
117810
117843
  {
@@ -117815,23 +117848,27 @@
117815
117848
  additionalButtons: thirdButtonText || fourthButtonText ? /* @__PURE__ */ React$3.createElement(React$3.Fragment, null, !!fourthButtonText && /* @__PURE__ */ React$3.createElement(
117816
117849
  Button,
117817
117850
  {
117851
+ className: (!fourthButtonNotMinimal ? MINIMAL : "") + " " + fourthButtonClassName,
117818
117852
  intent: fourthButtonIntent,
117819
117853
  text: fourthButtonText,
117820
- onClick: () => {
117821
- doClose("fourthButtonClicked");
117822
- }
117854
+ onClick: handleSubmit ? handleSubmit(
117855
+ (v) => doClose({ ...v, fourthButtonClicked: true })
117856
+ ) : () => doClose("fourthButtonClicked")
117823
117857
  }
117824
117858
  ), !!thirdButtonText && /* @__PURE__ */ React$3.createElement(
117825
117859
  Button,
117826
117860
  {
117861
+ className: (!thirdButtonNotMinimal ? MINIMAL : "") + " " + thirdButtonClassName,
117827
117862
  intent: thirdButtonIntent,
117828
117863
  text: thirdButtonText,
117829
- onClick: () => {
117864
+ onClick: handleSubmit ? handleSubmit(
117865
+ (v) => doClose({ ...v, thirdButtonClicked: true })
117866
+ ) : () => {
117830
117867
  doClose("thirdButtonClicked");
117831
117868
  }
117832
117869
  }
117833
117870
  )) : void 0,
117834
- containerClassname: "bp3-alert-footer",
117871
+ containerClassname: title ? "" : "bp3-alert-footer",
117835
117872
  backText: noCancelButton ? "" : cancelButtonText,
117836
117873
  text: confirmButtonText,
117837
117874
  intent
@@ -142151,13 +142188,13 @@
142151
142188
  messages.push(
142152
142189
  "Invalid annotation start: " + location.start + " detected for " + location.name + " and set to size: " + size
142153
142190
  );
142154
- location.start = size - (isProtein ? 3 : 1);
142191
+ location.start = Math.max(0, size - (isProtein ? 3 : 1));
142155
142192
  }
142156
142193
  if (location.end < 0 || !(location.end <= size - 1) || location.end > size - 1) {
142157
142194
  messages.push(
142158
142195
  "Invalid annotation end: " + location.end + " detected for " + location.name + " and set to seq size: " + size
142159
142196
  );
142160
- location.end = size - 1;
142197
+ location.end = Math.max(0, size - 1);
142161
142198
  }
142162
142199
  if (location.start > location.end && circular === false) {
142163
142200
  messages.push(
@@ -188755,7 +188792,7 @@ double click --> edit`}`;
188755
188792
  }
188756
188793
 
188757
188794
  const name = "@teselagen/ove";
188758
- const version = "0.3.17";
188795
+ const version = "0.3.19";
188759
188796
  const main = "./src/index.js";
188760
188797
  const exports$1 = {
188761
188798
  ".": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.3.18",
3
+ "version": "0.3.20",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -15,9 +15,9 @@
15
15
  "dependencies": {
16
16
  "@teselagen/sequence-utils": "0.3.7",
17
17
  "@teselagen/range-utils": "0.3.7",
18
- "@teselagen/ui": "0.3.16",
18
+ "@teselagen/ui": "0.3.19",
19
19
  "@teselagen/file-utils": "0.3.9",
20
- "@teselagen/bounce-loader": "0.3.10",
20
+ "@teselagen/bounce-loader": "0.3.11",
21
21
  "@teselagen/bio-parsers": "0.3.8",
22
22
  "@blueprintjs/core": "3.52.0",
23
23
  "@blueprintjs/datetime": "3.23.19",
@@ -95,6 +95,5 @@
95
95
  "use-deep-compare-effect": "^1.6.1",
96
96
  "write-excel-file": "^1.4.25"
97
97
  },
98
- "type": "module",
99
98
  "license": "MIT"
100
99
  }