@teselagen/ui 0.3.17 → 0.3.18
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 +178 -148
- package/index.es.js +178 -149
- package/package.json +1 -1
- package/src/DialogFooter/index.js +8 -1
- package/src/index.js +1 -0
- package/src/showConfirmationDialog/index.js +44 -12
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$
|
|
7404
|
+
function toPrimitive$3(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$
|
|
8333
|
+
return toPrimitive$3(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$
|
|
8561
|
+
return toPrimitive$3(this.get());
|
|
8562
8562
|
};
|
|
8563
8563
|
_proto[_Symbol$toPrimitive$1] = function () {
|
|
8564
8564
|
return this.valueOf();
|
|
@@ -30187,6 +30187,8 @@ function DialogFooter({
|
|
|
30187
30187
|
style,
|
|
30188
30188
|
onClick = lodashExports.noop,
|
|
30189
30189
|
secondaryAction,
|
|
30190
|
+
secondaryDisabled,
|
|
30191
|
+
secondaryNotMinimal,
|
|
30190
30192
|
intent = Intent.PRIMARY,
|
|
30191
30193
|
secondaryIntent,
|
|
30192
30194
|
backText = "Back",
|
|
@@ -30218,7 +30220,8 @@ function DialogFooter({
|
|
|
30218
30220
|
Button,
|
|
30219
30221
|
{
|
|
30220
30222
|
intent: secondaryIntent,
|
|
30221
|
-
|
|
30223
|
+
disabled: secondaryDisabled,
|
|
30224
|
+
className: (!secondaryNotMinimal ? Classes.MINIMAL : "") + " " + secondaryClassName,
|
|
30222
30225
|
text: secondaryText,
|
|
30223
30226
|
onClick: secondaryAction || hideModal || function() {
|
|
30224
30227
|
try {
|
|
@@ -30307,18 +30310,10 @@ var _fails = function (exec) {
|
|
|
30307
30310
|
}
|
|
30308
30311
|
};
|
|
30309
30312
|
|
|
30310
|
-
|
|
30311
|
-
var
|
|
30312
|
-
|
|
30313
|
-
|
|
30314
|
-
if (hasRequired_descriptors) return _descriptors;
|
|
30315
|
-
hasRequired_descriptors = 1;
|
|
30316
|
-
// Thank's IE8 for his funny defineProperty
|
|
30317
|
-
_descriptors = !_fails(function () {
|
|
30318
|
-
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
|
30319
|
-
});
|
|
30320
|
-
return _descriptors;
|
|
30321
|
-
}
|
|
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
|
+
});
|
|
30322
30317
|
|
|
30323
30318
|
var _domCreate;
|
|
30324
30319
|
var hasRequired_domCreate;
|
|
@@ -30336,17 +30331,9 @@ function require_domCreate () {
|
|
|
30336
30331
|
return _domCreate;
|
|
30337
30332
|
}
|
|
30338
30333
|
|
|
30339
|
-
var _ie8DomDefine
|
|
30340
|
-
|
|
30341
|
-
|
|
30342
|
-
function require_ie8DomDefine () {
|
|
30343
|
-
if (hasRequired_ie8DomDefine) return _ie8DomDefine;
|
|
30344
|
-
hasRequired_ie8DomDefine = 1;
|
|
30345
|
-
_ie8DomDefine = !require_descriptors() && !_fails(function () {
|
|
30346
|
-
return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
|
|
30347
|
-
});
|
|
30348
|
-
return _ie8DomDefine;
|
|
30349
|
-
}
|
|
30334
|
+
var _ie8DomDefine = !_descriptors && !_fails(function () {
|
|
30335
|
+
return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
|
|
30336
|
+
});
|
|
30350
30337
|
|
|
30351
30338
|
// 7.1.1 ToPrimitive(input [, PreferredType])
|
|
30352
30339
|
var isObject$d = _isObject;
|
|
@@ -30361,29 +30348,22 @@ var _toPrimitive = function (it, S) {
|
|
|
30361
30348
|
throw TypeError("Can't convert object to primitive value");
|
|
30362
30349
|
};
|
|
30363
30350
|
|
|
30364
|
-
var
|
|
30365
|
-
|
|
30366
|
-
|
|
30367
|
-
|
|
30368
|
-
|
|
30369
|
-
|
|
30370
|
-
|
|
30371
|
-
|
|
30372
|
-
|
|
30373
|
-
|
|
30374
|
-
|
|
30375
|
-
|
|
30376
|
-
|
|
30377
|
-
|
|
30378
|
-
|
|
30379
|
-
|
|
30380
|
-
} catch (e) { /* empty */ }
|
|
30381
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
|
|
30382
|
-
if ('value' in Attributes) O[P] = Attributes.value;
|
|
30383
|
-
return O;
|
|
30384
|
-
};
|
|
30385
|
-
return _objectDp;
|
|
30386
|
-
}
|
|
30351
|
+
var anObject$3 = _anObject;
|
|
30352
|
+
var IE8_DOM_DEFINE$1 = _ie8DomDefine;
|
|
30353
|
+
var toPrimitive$2 = _toPrimitive;
|
|
30354
|
+
var dP$2 = Object.defineProperty;
|
|
30355
|
+
|
|
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
|
+
};
|
|
30387
30367
|
|
|
30388
30368
|
var _propertyDesc = function (bitmap, value) {
|
|
30389
30369
|
return {
|
|
@@ -30394,10 +30374,10 @@ var _propertyDesc = function (bitmap, value) {
|
|
|
30394
30374
|
};
|
|
30395
30375
|
};
|
|
30396
30376
|
|
|
30397
|
-
var dP$
|
|
30377
|
+
var dP$1 = _objectDp;
|
|
30398
30378
|
var createDesc$3 = _propertyDesc;
|
|
30399
|
-
var _hide =
|
|
30400
|
-
return dP$
|
|
30379
|
+
var _hide = _descriptors ? function (object, key, value) {
|
|
30380
|
+
return dP$1.f(object, key, createDesc$3(1, value));
|
|
30401
30381
|
} : function (object, key, value) {
|
|
30402
30382
|
object[key] = value;
|
|
30403
30383
|
return object;
|
|
@@ -30413,7 +30393,7 @@ var core$3 = _coreExports;
|
|
|
30413
30393
|
var ctx$1 = _ctx;
|
|
30414
30394
|
var hide$2 = _hide;
|
|
30415
30395
|
var has$b = _has;
|
|
30416
|
-
var PROTOTYPE$
|
|
30396
|
+
var PROTOTYPE$1 = 'prototype';
|
|
30417
30397
|
|
|
30418
30398
|
var $export$8 = function (type, name, source) {
|
|
30419
30399
|
var IS_FORCED = type & $export$8.F;
|
|
@@ -30423,8 +30403,8 @@ var $export$8 = function (type, name, source) {
|
|
|
30423
30403
|
var IS_BIND = type & $export$8.B;
|
|
30424
30404
|
var IS_WRAP = type & $export$8.W;
|
|
30425
30405
|
var exports = IS_GLOBAL ? core$3 : core$3[name] || (core$3[name] = {});
|
|
30426
|
-
var expProto = exports[PROTOTYPE$
|
|
30427
|
-
var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$
|
|
30406
|
+
var expProto = exports[PROTOTYPE$1];
|
|
30407
|
+
var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$1];
|
|
30428
30408
|
var key, own, out;
|
|
30429
30409
|
if (IS_GLOBAL) source = name;
|
|
30430
30410
|
for (key in source) {
|
|
@@ -30448,7 +30428,7 @@ var $export$8 = function (type, name, source) {
|
|
|
30448
30428
|
} return new C(a, b, c);
|
|
30449
30429
|
} return C.apply(this, arguments);
|
|
30450
30430
|
};
|
|
30451
|
-
F[PROTOTYPE$
|
|
30431
|
+
F[PROTOTYPE$1] = C[PROTOTYPE$1];
|
|
30452
30432
|
return F;
|
|
30453
30433
|
// make static versions for prototype methods
|
|
30454
30434
|
})(out) : IS_PROTO && typeof out == 'function' ? ctx$1(Function.call, out) : out;
|
|
@@ -30577,14 +30557,14 @@ var _sharedKey = function (key) {
|
|
|
30577
30557
|
var has$a = _has;
|
|
30578
30558
|
var toIObject$4 = _toIobject;
|
|
30579
30559
|
var arrayIndexOf = _arrayIncludes(false);
|
|
30580
|
-
var IE_PROTO$
|
|
30560
|
+
var IE_PROTO$1 = _sharedKey('IE_PROTO');
|
|
30581
30561
|
|
|
30582
30562
|
var _objectKeysInternal = function (object, names) {
|
|
30583
30563
|
var O = toIObject$4(object);
|
|
30584
30564
|
var i = 0;
|
|
30585
30565
|
var result = [];
|
|
30586
30566
|
var key;
|
|
30587
|
-
for (key in O) if (key != IE_PROTO$
|
|
30567
|
+
for (key in O) if (key != IE_PROTO$1) has$a(O, key) && result.push(key);
|
|
30588
30568
|
// Don't enum bug & hidden keys
|
|
30589
30569
|
while (names.length > i) if (has$a(O, key = names[i++])) {
|
|
30590
30570
|
~arrayIndexOf(result, key) || result.push(key);
|
|
@@ -30598,11 +30578,11 @@ var _enumBugKeys = (
|
|
|
30598
30578
|
).split(',');
|
|
30599
30579
|
|
|
30600
30580
|
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
|
|
30601
|
-
var $keys$
|
|
30602
|
-
var enumBugKeys
|
|
30581
|
+
var $keys$2 = _objectKeysInternal;
|
|
30582
|
+
var enumBugKeys = _enumBugKeys;
|
|
30603
30583
|
|
|
30604
30584
|
var _objectKeys = Object.keys || function keys(O) {
|
|
30605
|
-
return $keys$
|
|
30585
|
+
return $keys$2(O, enumBugKeys);
|
|
30606
30586
|
};
|
|
30607
30587
|
|
|
30608
30588
|
var _objectGops = {};
|
|
@@ -30611,7 +30591,14 @@ _objectGops.f = Object.getOwnPropertySymbols;
|
|
|
30611
30591
|
|
|
30612
30592
|
var _objectPie = {};
|
|
30613
30593
|
|
|
30614
|
-
|
|
30594
|
+
var hasRequired_objectPie;
|
|
30595
|
+
|
|
30596
|
+
function require_objectPie () {
|
|
30597
|
+
if (hasRequired_objectPie) return _objectPie;
|
|
30598
|
+
hasRequired_objectPie = 1;
|
|
30599
|
+
_objectPie.f = {}.propertyIsEnumerable;
|
|
30600
|
+
return _objectPie;
|
|
30601
|
+
}
|
|
30615
30602
|
|
|
30616
30603
|
// 7.1.13 ToObject(argument)
|
|
30617
30604
|
var defined$1 = _defined;
|
|
@@ -30626,10 +30613,10 @@ function require_objectAssign () {
|
|
|
30626
30613
|
if (hasRequired_objectAssign) return _objectAssign;
|
|
30627
30614
|
hasRequired_objectAssign = 1;
|
|
30628
30615
|
// 19.1.2.1 Object.assign(target, source, ...)
|
|
30629
|
-
var DESCRIPTORS =
|
|
30616
|
+
var DESCRIPTORS = _descriptors;
|
|
30630
30617
|
var getKeys = _objectKeys;
|
|
30631
30618
|
var gOPS = _objectGops;
|
|
30632
|
-
var pIE =
|
|
30619
|
+
var pIE = require_objectPie();
|
|
30633
30620
|
var toObject = _toObject;
|
|
30634
30621
|
var IObject = _iobject;
|
|
30635
30622
|
var $assign = Object.assign;
|
|
@@ -30702,19 +30689,27 @@ var _iterators = {};
|
|
|
30702
30689
|
|
|
30703
30690
|
var _redefine = _hide;
|
|
30704
30691
|
|
|
30705
|
-
var
|
|
30706
|
-
var
|
|
30707
|
-
var getKeys$1 = _objectKeys;
|
|
30692
|
+
var _objectDps;
|
|
30693
|
+
var hasRequired_objectDps;
|
|
30708
30694
|
|
|
30709
|
-
|
|
30710
|
-
|
|
30711
|
-
|
|
30712
|
-
|
|
30713
|
-
|
|
30714
|
-
|
|
30715
|
-
|
|
30716
|
-
|
|
30717
|
-
|
|
30695
|
+
function require_objectDps () {
|
|
30696
|
+
if (hasRequired_objectDps) return _objectDps;
|
|
30697
|
+
hasRequired_objectDps = 1;
|
|
30698
|
+
var dP = _objectDp;
|
|
30699
|
+
var anObject = _anObject;
|
|
30700
|
+
var getKeys = _objectKeys;
|
|
30701
|
+
|
|
30702
|
+
_objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
30703
|
+
anObject(O);
|
|
30704
|
+
var keys = getKeys(Properties);
|
|
30705
|
+
var length = keys.length;
|
|
30706
|
+
var i = 0;
|
|
30707
|
+
var P;
|
|
30708
|
+
while (length > i) dP.f(O, P = keys[i++], Properties[P]);
|
|
30709
|
+
return O;
|
|
30710
|
+
};
|
|
30711
|
+
return _objectDps;
|
|
30712
|
+
}
|
|
30718
30713
|
|
|
30719
30714
|
var _html;
|
|
30720
30715
|
var hasRequired_html;
|
|
@@ -30727,47 +30722,55 @@ function require_html () {
|
|
|
30727
30722
|
return _html;
|
|
30728
30723
|
}
|
|
30729
30724
|
|
|
30730
|
-
|
|
30731
|
-
var
|
|
30732
|
-
var dPs = _objectDps;
|
|
30733
|
-
var enumBugKeys = _enumBugKeys;
|
|
30734
|
-
var IE_PROTO$1 = _sharedKey('IE_PROTO');
|
|
30735
|
-
var Empty = function () { /* empty */ };
|
|
30736
|
-
var PROTOTYPE$1 = 'prototype';
|
|
30725
|
+
var _objectCreate;
|
|
30726
|
+
var hasRequired_objectCreate;
|
|
30737
30727
|
|
|
30738
|
-
|
|
30739
|
-
|
|
30740
|
-
|
|
30741
|
-
|
|
30742
|
-
|
|
30743
|
-
|
|
30744
|
-
|
|
30745
|
-
|
|
30746
|
-
|
|
30747
|
-
|
|
30748
|
-
|
|
30749
|
-
|
|
30750
|
-
|
|
30751
|
-
|
|
30752
|
-
|
|
30753
|
-
|
|
30754
|
-
|
|
30755
|
-
|
|
30756
|
-
|
|
30757
|
-
|
|
30758
|
-
|
|
30759
|
-
|
|
30760
|
-
|
|
30761
|
-
|
|
30762
|
-
|
|
30763
|
-
|
|
30764
|
-
|
|
30765
|
-
|
|
30766
|
-
|
|
30767
|
-
|
|
30768
|
-
|
|
30769
|
-
|
|
30770
|
-
|
|
30728
|
+
function require_objectCreate () {
|
|
30729
|
+
if (hasRequired_objectCreate) return _objectCreate;
|
|
30730
|
+
hasRequired_objectCreate = 1;
|
|
30731
|
+
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
|
30732
|
+
var anObject = _anObject;
|
|
30733
|
+
var dPs = require_objectDps();
|
|
30734
|
+
var enumBugKeys = _enumBugKeys;
|
|
30735
|
+
var IE_PROTO = _sharedKey('IE_PROTO');
|
|
30736
|
+
var Empty = function () { /* empty */ };
|
|
30737
|
+
var PROTOTYPE = 'prototype';
|
|
30738
|
+
|
|
30739
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
30740
|
+
var createDict = function () {
|
|
30741
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
30742
|
+
var iframe = require_domCreate()('iframe');
|
|
30743
|
+
var i = enumBugKeys.length;
|
|
30744
|
+
var lt = '<';
|
|
30745
|
+
var gt = '>';
|
|
30746
|
+
var iframeDocument;
|
|
30747
|
+
iframe.style.display = 'none';
|
|
30748
|
+
require_html().appendChild(iframe);
|
|
30749
|
+
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
|
|
30750
|
+
// createDict = iframe.contentWindow.Object;
|
|
30751
|
+
// html.removeChild(iframe);
|
|
30752
|
+
iframeDocument = iframe.contentWindow.document;
|
|
30753
|
+
iframeDocument.open();
|
|
30754
|
+
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
|
|
30755
|
+
iframeDocument.close();
|
|
30756
|
+
createDict = iframeDocument.F;
|
|
30757
|
+
while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
|
|
30758
|
+
return createDict();
|
|
30759
|
+
};
|
|
30760
|
+
|
|
30761
|
+
_objectCreate = Object.create || function create(O, Properties) {
|
|
30762
|
+
var result;
|
|
30763
|
+
if (O !== null) {
|
|
30764
|
+
Empty[PROTOTYPE] = anObject(O);
|
|
30765
|
+
result = new Empty();
|
|
30766
|
+
Empty[PROTOTYPE] = null;
|
|
30767
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
30768
|
+
result[IE_PROTO] = O;
|
|
30769
|
+
} else result = createDict();
|
|
30770
|
+
return Properties === undefined ? result : dPs(result, Properties);
|
|
30771
|
+
};
|
|
30772
|
+
return _objectCreate;
|
|
30773
|
+
}
|
|
30771
30774
|
|
|
30772
30775
|
var _wks = {exports: {}};
|
|
30773
30776
|
|
|
@@ -30785,7 +30788,7 @@ $exports.store = store;
|
|
|
30785
30788
|
|
|
30786
30789
|
var _wksExports = _wks.exports;
|
|
30787
30790
|
|
|
30788
|
-
var def =
|
|
30791
|
+
var def = _objectDp.f;
|
|
30789
30792
|
var has$9 = _has;
|
|
30790
30793
|
var TAG$1 = _wksExports('toStringTag');
|
|
30791
30794
|
|
|
@@ -30793,7 +30796,7 @@ var _setToStringTag = function (it, tag, stat) {
|
|
|
30793
30796
|
if (it && !has$9(it = stat ? it : it.prototype, TAG$1)) def(it, TAG$1, { configurable: true, value: tag });
|
|
30794
30797
|
};
|
|
30795
30798
|
|
|
30796
|
-
var create$3 =
|
|
30799
|
+
var create$3 = require_objectCreate();
|
|
30797
30800
|
var descriptor = _propertyDesc;
|
|
30798
30801
|
var setToStringTag$2 = _setToStringTag;
|
|
30799
30802
|
var IteratorPrototype = {};
|
|
@@ -31099,7 +31102,7 @@ var _isArrayIter = function (it) {
|
|
|
31099
31102
|
return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
31100
31103
|
};
|
|
31101
31104
|
|
|
31102
|
-
var $defineProperty$1 =
|
|
31105
|
+
var $defineProperty$1 = _objectDp;
|
|
31103
31106
|
var createDesc$2 = _propertyDesc;
|
|
31104
31107
|
|
|
31105
31108
|
var _createProperty = function (object, index, value) {
|
|
@@ -31232,7 +31235,7 @@ var _default$8 = function (instance, Constructor) {
|
|
|
31232
31235
|
|
|
31233
31236
|
var $export$3 = _export;
|
|
31234
31237
|
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
|
|
31235
|
-
$export$3($export$3.S + $export$3.F * !
|
|
31238
|
+
$export$3($export$3.S + $export$3.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
|
|
31236
31239
|
|
|
31237
31240
|
var $Object$2 = _coreExports.Object;
|
|
31238
31241
|
var defineProperty$9 = function defineProperty(it, key, desc) {
|
|
@@ -31280,7 +31283,7 @@ var _meta = {exports: {}};
|
|
|
31280
31283
|
var META$1 = _uid('meta');
|
|
31281
31284
|
var isObject$c = _isObject;
|
|
31282
31285
|
var has$7 = _has;
|
|
31283
|
-
var setDesc =
|
|
31286
|
+
var setDesc = _objectDp.f;
|
|
31284
31287
|
var id = 0;
|
|
31285
31288
|
var isExtensible = Object.isExtensible || function () {
|
|
31286
31289
|
return true;
|
|
@@ -31335,7 +31338,7 @@ var _metaExports = _meta.exports;
|
|
|
31335
31338
|
|
|
31336
31339
|
var core = _coreExports;
|
|
31337
31340
|
var wksExt$1 = _wksExt;
|
|
31338
|
-
var defineProperty$7 =
|
|
31341
|
+
var defineProperty$7 = _objectDp.f;
|
|
31339
31342
|
var _wksDefine = function (name) {
|
|
31340
31343
|
var $Symbol = core.Symbol || (core.Symbol = {} );
|
|
31341
31344
|
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$7($Symbol, name, { value: wksExt$1.f(name) });
|
|
@@ -31344,7 +31347,7 @@ var _wksDefine = function (name) {
|
|
|
31344
31347
|
// all enumerable object keys, includes symbols
|
|
31345
31348
|
var getKeys = _objectKeys;
|
|
31346
31349
|
var gOPS$1 = _objectGops;
|
|
31347
|
-
var pIE$1 =
|
|
31350
|
+
var pIE$1 = require_objectPie();
|
|
31348
31351
|
var _enumKeys = function (it) {
|
|
31349
31352
|
var result = getKeys(it);
|
|
31350
31353
|
var getSymbols = gOPS$1.f;
|
|
@@ -31367,17 +31370,24 @@ var _objectGopnExt = {};
|
|
|
31367
31370
|
|
|
31368
31371
|
var _objectGopn = {};
|
|
31369
31372
|
|
|
31370
|
-
|
|
31371
|
-
var $keys$2 = _objectKeysInternal;
|
|
31372
|
-
var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
|
|
31373
|
+
var hasRequired_objectGopn;
|
|
31373
31374
|
|
|
31374
|
-
|
|
31375
|
-
|
|
31376
|
-
|
|
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');
|
|
31381
|
+
|
|
31382
|
+
_objectGopn.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
31383
|
+
return $keys(O, hiddenKeys);
|
|
31384
|
+
};
|
|
31385
|
+
return _objectGopn;
|
|
31386
|
+
}
|
|
31377
31387
|
|
|
31378
31388
|
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
|
|
31379
31389
|
var toIObject$2 = _toIobject;
|
|
31380
|
-
var gOPN$1 =
|
|
31390
|
+
var gOPN$1 = require_objectGopn().f;
|
|
31381
31391
|
var toString$5 = {}.toString;
|
|
31382
31392
|
|
|
31383
31393
|
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
|
|
@@ -31397,15 +31407,15 @@ _objectGopnExt.f = function getOwnPropertyNames(it) {
|
|
|
31397
31407
|
|
|
31398
31408
|
var _objectGopd = {};
|
|
31399
31409
|
|
|
31400
|
-
var pIE =
|
|
31410
|
+
var pIE = require_objectPie();
|
|
31401
31411
|
var createDesc$1 = _propertyDesc;
|
|
31402
31412
|
var toIObject$1 = _toIobject;
|
|
31403
31413
|
var toPrimitive$1 = _toPrimitive;
|
|
31404
31414
|
var has$6 = _has;
|
|
31405
|
-
var IE8_DOM_DEFINE =
|
|
31415
|
+
var IE8_DOM_DEFINE = _ie8DomDefine;
|
|
31406
31416
|
var gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
31407
31417
|
|
|
31408
|
-
_objectGopd.f =
|
|
31418
|
+
_objectGopd.f = _descriptors ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
|
|
31409
31419
|
O = toIObject$1(O);
|
|
31410
31420
|
P = toPrimitive$1(P, true);
|
|
31411
31421
|
if (IE8_DOM_DEFINE) try {
|
|
@@ -31417,7 +31427,7 @@ _objectGopd.f = require_descriptors() ? gOPD$2 : function getOwnPropertyDescript
|
|
|
31417
31427
|
// ECMAScript 6 symbols shim
|
|
31418
31428
|
var global$1 = _globalExports;
|
|
31419
31429
|
var has$5 = _has;
|
|
31420
|
-
var DESCRIPTORS =
|
|
31430
|
+
var DESCRIPTORS = _descriptors;
|
|
31421
31431
|
var $export$2 = _export;
|
|
31422
31432
|
var redefine = _redefine;
|
|
31423
31433
|
var META = _metaExports.KEY;
|
|
@@ -31436,11 +31446,11 @@ var toObject$1 = _toObject;
|
|
|
31436
31446
|
var toIObject = _toIobject;
|
|
31437
31447
|
var toPrimitive = _toPrimitive;
|
|
31438
31448
|
var createDesc = _propertyDesc;
|
|
31439
|
-
var _create$1 =
|
|
31449
|
+
var _create$1 = require_objectCreate();
|
|
31440
31450
|
var gOPNExt = _objectGopnExt;
|
|
31441
31451
|
var $GOPD = _objectGopd;
|
|
31442
31452
|
var $GOPS = _objectGops;
|
|
31443
|
-
var $DP =
|
|
31453
|
+
var $DP = _objectDp;
|
|
31444
31454
|
var $keys$1 = _objectKeys;
|
|
31445
31455
|
var gOPD$1 = $GOPD.f;
|
|
31446
31456
|
var dP = $DP.f;
|
|
@@ -31564,8 +31574,8 @@ if (!USE_NATIVE) {
|
|
|
31564
31574
|
|
|
31565
31575
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
31566
31576
|
$DP.f = $defineProperty;
|
|
31567
|
-
|
|
31568
|
-
|
|
31577
|
+
require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
|
|
31578
|
+
require_objectPie().f = $propertyIsEnumerable;
|
|
31569
31579
|
$GOPS.f = $getOwnPropertySymbols;
|
|
31570
31580
|
|
|
31571
31581
|
if (DESCRIPTORS && !_library) {
|
|
@@ -31746,7 +31756,7 @@ var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
|
|
|
31746
31756
|
|
|
31747
31757
|
var $export = _export;
|
|
31748
31758
|
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
|
31749
|
-
$export($export.S, 'Object', { create:
|
|
31759
|
+
$export($export.S, 'Object', { create: require_objectCreate() });
|
|
31750
31760
|
|
|
31751
31761
|
var $Object$1 = _coreExports.Object;
|
|
31752
31762
|
var create$2 = function create(P, D) {
|
|
@@ -89608,16 +89618,22 @@ class AlertWrapper extends Component {
|
|
|
89608
89618
|
state = { isOpen: true };
|
|
89609
89619
|
render() {
|
|
89610
89620
|
const {
|
|
89621
|
+
title,
|
|
89611
89622
|
handleClose,
|
|
89612
89623
|
text,
|
|
89613
89624
|
resolve,
|
|
89614
89625
|
noCancelButton,
|
|
89615
89626
|
content,
|
|
89616
89627
|
className,
|
|
89628
|
+
thirdButtonNotMinimal,
|
|
89629
|
+
thirdButtonClassName,
|
|
89617
89630
|
thirdButtonText,
|
|
89618
89631
|
thirdButtonIntent,
|
|
89632
|
+
fourthButtonNotMinimal,
|
|
89633
|
+
fourthButtonClassName,
|
|
89619
89634
|
fourthButtonText,
|
|
89620
89635
|
fourthButtonIntent,
|
|
89636
|
+
handleSubmit,
|
|
89621
89637
|
canEscapeKeyCancel,
|
|
89622
89638
|
confirmButtonText = "OK",
|
|
89623
89639
|
cancelButtonText = "Cancel",
|
|
@@ -89632,19 +89648,28 @@ class AlertWrapper extends Component {
|
|
|
89632
89648
|
return /* @__PURE__ */ React__default.createElement(
|
|
89633
89649
|
Dialog,
|
|
89634
89650
|
{
|
|
89635
|
-
|
|
89651
|
+
title,
|
|
89652
|
+
className: (title ? "" : "bp3-alert") + ` ${className || ""}`,
|
|
89636
89653
|
isOpen: this.state.isOpen,
|
|
89637
89654
|
intent,
|
|
89638
89655
|
cancelButtonText,
|
|
89639
89656
|
onCancel: cancelButtonText ? () => doClose(false) : void 0,
|
|
89640
|
-
onConfirm: () => doClose(true),
|
|
89657
|
+
onConfirm: handleSubmit ? handleSubmit((v) => doClose(v)) : () => doClose(true),
|
|
89641
89658
|
...rest,
|
|
89642
89659
|
...noCancelButton && {
|
|
89643
89660
|
onCancel: void 0,
|
|
89644
89661
|
cancelButtonText: void 0
|
|
89645
89662
|
}
|
|
89646
89663
|
},
|
|
89647
|
-
/* @__PURE__ */ React__default.createElement(
|
|
89664
|
+
/* @__PURE__ */ React__default.createElement(
|
|
89665
|
+
"div",
|
|
89666
|
+
{
|
|
89667
|
+
className: title ? "bp3-dialog-body" : "bp3-alert-contents",
|
|
89668
|
+
style: { padding: 5 }
|
|
89669
|
+
},
|
|
89670
|
+
content,
|
|
89671
|
+
text && /* @__PURE__ */ React__default.createElement("div", { style: { marginBottom: 10 } }, text)
|
|
89672
|
+
),
|
|
89648
89673
|
/* @__PURE__ */ React__default.createElement(
|
|
89649
89674
|
DialogFooter,
|
|
89650
89675
|
{
|
|
@@ -89655,23 +89680,27 @@ class AlertWrapper extends Component {
|
|
|
89655
89680
|
additionalButtons: thirdButtonText || fourthButtonText ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, !!fourthButtonText && /* @__PURE__ */ React__default.createElement(
|
|
89656
89681
|
Button,
|
|
89657
89682
|
{
|
|
89683
|
+
className: (!fourthButtonNotMinimal ? Classes.MINIMAL : "") + " " + fourthButtonClassName,
|
|
89658
89684
|
intent: fourthButtonIntent,
|
|
89659
89685
|
text: fourthButtonText,
|
|
89660
|
-
onClick:
|
|
89661
|
-
doClose(
|
|
89662
|
-
|
|
89686
|
+
onClick: handleSubmit ? handleSubmit(
|
|
89687
|
+
(v) => doClose({ ...v, fourthButtonClicked: true })
|
|
89688
|
+
) : () => doClose("fourthButtonClicked")
|
|
89663
89689
|
}
|
|
89664
89690
|
), !!thirdButtonText && /* @__PURE__ */ React__default.createElement(
|
|
89665
89691
|
Button,
|
|
89666
89692
|
{
|
|
89693
|
+
className: (!thirdButtonNotMinimal ? Classes.MINIMAL : "") + " " + thirdButtonClassName,
|
|
89667
89694
|
intent: thirdButtonIntent,
|
|
89668
89695
|
text: thirdButtonText,
|
|
89669
|
-
onClick:
|
|
89696
|
+
onClick: handleSubmit ? handleSubmit(
|
|
89697
|
+
(v) => doClose({ ...v, thirdButtonClicked: true })
|
|
89698
|
+
) : () => {
|
|
89670
89699
|
doClose("thirdButtonClicked");
|
|
89671
89700
|
}
|
|
89672
89701
|
}
|
|
89673
89702
|
)) : void 0,
|
|
89674
|
-
containerClassname: "bp3-alert-footer",
|
|
89703
|
+
containerClassname: title ? "" : "bp3-alert-footer",
|
|
89675
89704
|
backText: noCancelButton ? "" : cancelButtonText,
|
|
89676
89705
|
text: confirmButtonText,
|
|
89677
89706
|
intent
|
|
@@ -107024,4 +107053,4 @@ function showDialogOnDocBody(DialogComp, options = {}) {
|
|
|
107024
107053
|
|
|
107025
107054
|
const noop = () => void 0;
|
|
107026
107055
|
|
|
107027
|
-
export { AdvancedOptions, AssignDefaultsModeContext, AsyncValidateFieldSpinner, BPSelect, BlueprintError, CheckboxField, CmdButton, CmdCheckbox, CmdDiv, CmdSwitch, CollapsibleCard, WrappedDT as DataTable, DateInputField, DateRangeInputField, DialogFooter, DropdownButton, DynamicMenuItem, EditableTextField, EnhancedMenuItem, FileUploadField, FillWindow, HotkeysDialog, InfoHelper, InputField, IntentText, Loading, MenuBar, MenuItemWithTooltip, NumericInputField, ConnectedPagingTool as PagingTool, PromptUnsavedChanges, RadioGroupField, ReactColorField, ReactSelectField, RenderBlueprintInput, RenderReactColorPicker, ResizableDraggableDialog, ScrollToTop, SelectField, SuggestField, SwitchField, TableFormTrackerContext, TextareaField, TgSelect$1 as TgSelect, Timeline, TimelineEvent, Uploader, WorkflowDefaultParamsContext, adHoc, basicHandleActionsWithFullState, bluntFeatureIcon, cardDetailsIcon, combineReducers as combineReducersWithFullState, comboToLabel, commandMenuEnhancer, createCommandBarMenu, createCommandMenu, createDynamicBarMenu, createDynamicMenu, createMenu, designIcon, dnaIcon, doesSearchValMatchText, driveIcon, featureIcon, fieldRequired, flaskIcon, generateField, genericCommandFactory, getCommandHandlers, getCommandHotkeyHandlers, getCommandHotkeys, getCurrentParamsFromUrl, getHotkeyProps, getIdOrCodeOrIndex, getKeyedTagsAndTagOptions, getSelectedEntities, getStringFromReactComponent, getTagColorStyle, getTagProps, getTagsAndTagOptions, getTextFromEl, hotkeysById, inventoryIcon, keyboardIcon, mergeSchemas, moleculeIcon, noop, onBlurHelper, onEnterHelper, onEnterOrBlurHelper, orfIcon, popoverOverflowModifiers, proteinIcon, pure as pureNoFunc, removeDuplicatesIcon, renderBlueprintCheckbox, renderBlueprintDateInput, renderBlueprintDateRangeInput, renderBlueprintEditableText, renderBlueprintNumericInput, renderBlueprintRadioGroup, renderBlueprintSwitch, renderBlueprintTextarea, renderFileUpload, renderReactSelect, renderSelect, renderSuggest, renderSuggest_old, rerenderOnWindowResize, reverseFeatureIcon, setCurrentParamsOnUrl, sharedDriveIcon, showAppSpinner, showCommandContextMenu, showConfirmationDialog, showContextMenu, showDialogOnDocBody, showProgressToast, strainIcon, tgFormValues, tg_modalState, tickMenuEnhancer, tubeIcon, useDialog, withAbstractWrapper, withCommand, withDialog, WithField as withField, WithFields as withFields, withHotkeys, withSelectTableRecords, withSelectedEntities, withStore, withTableParams, workflowDefaultParamsObj, workflowIcon, workqueueIcon, wrapDialog };
|
|
107056
|
+
export { AdvancedOptions, AlertWrapper, AssignDefaultsModeContext, AsyncValidateFieldSpinner, BPSelect, BlueprintError, CheckboxField, CmdButton, CmdCheckbox, CmdDiv, CmdSwitch, CollapsibleCard, WrappedDT as DataTable, DateInputField, DateRangeInputField, DialogFooter, DropdownButton, DynamicMenuItem, EditableTextField, EnhancedMenuItem, FileUploadField, FillWindow, HotkeysDialog, InfoHelper, InputField, IntentText, Loading, MenuBar, MenuItemWithTooltip, NumericInputField, ConnectedPagingTool as PagingTool, PromptUnsavedChanges, RadioGroupField, ReactColorField, ReactSelectField, RenderBlueprintInput, RenderReactColorPicker, ResizableDraggableDialog, ScrollToTop, SelectField, SuggestField, SwitchField, TableFormTrackerContext, TextareaField, TgSelect$1 as TgSelect, Timeline, TimelineEvent, Uploader, WorkflowDefaultParamsContext, adHoc, basicHandleActionsWithFullState, bluntFeatureIcon, cardDetailsIcon, combineReducers as combineReducersWithFullState, comboToLabel, commandMenuEnhancer, createCommandBarMenu, createCommandMenu, createDynamicBarMenu, createDynamicMenu, createMenu, designIcon, dnaIcon, doesSearchValMatchText, driveIcon, featureIcon, fieldRequired, flaskIcon, generateField, genericCommandFactory, getCommandHandlers, getCommandHotkeyHandlers, getCommandHotkeys, getCurrentParamsFromUrl, getHotkeyProps, getIdOrCodeOrIndex, getKeyedTagsAndTagOptions, getSelectedEntities, getStringFromReactComponent, getTagColorStyle, getTagProps, getTagsAndTagOptions, getTextFromEl, hotkeysById, inventoryIcon, keyboardIcon, mergeSchemas, moleculeIcon, noop, onBlurHelper, onEnterHelper, onEnterOrBlurHelper, orfIcon, popoverOverflowModifiers, proteinIcon, pure as pureNoFunc, removeDuplicatesIcon, renderBlueprintCheckbox, renderBlueprintDateInput, renderBlueprintDateRangeInput, renderBlueprintEditableText, renderBlueprintNumericInput, renderBlueprintRadioGroup, renderBlueprintSwitch, renderBlueprintTextarea, renderFileUpload, renderReactSelect, renderSelect, renderSuggest, renderSuggest_old, rerenderOnWindowResize, reverseFeatureIcon, setCurrentParamsOnUrl, sharedDriveIcon, showAppSpinner, showCommandContextMenu, showConfirmationDialog, showContextMenu, showDialogOnDocBody, showProgressToast, strainIcon, tgFormValues, tg_modalState, tickMenuEnhancer, tubeIcon, useDialog, withAbstractWrapper, withCommand, withDialog, WithField as withField, WithFields as withFields, withHotkeys, withSelectTableRecords, withSelectedEntities, withStore, withTableParams, workflowDefaultParamsObj, workflowIcon, workqueueIcon, wrapDialog };
|
package/package.json
CHANGED
|
@@ -13,6 +13,8 @@ function DialogFooter({
|
|
|
13
13
|
style,
|
|
14
14
|
onClick = noop,
|
|
15
15
|
secondaryAction,
|
|
16
|
+
secondaryDisabled,
|
|
17
|
+
secondaryNotMinimal,
|
|
16
18
|
intent = Intent.PRIMARY,
|
|
17
19
|
secondaryIntent,
|
|
18
20
|
backText = "Back",
|
|
@@ -43,7 +45,12 @@ function DialogFooter({
|
|
|
43
45
|
{!noCancel && (
|
|
44
46
|
<Button
|
|
45
47
|
intent={secondaryIntent}
|
|
46
|
-
|
|
48
|
+
disabled={secondaryDisabled}
|
|
49
|
+
className={
|
|
50
|
+
(!secondaryNotMinimal ? Classes.MINIMAL : "") +
|
|
51
|
+
" " +
|
|
52
|
+
secondaryClassName
|
|
53
|
+
}
|
|
47
54
|
text={secondaryText}
|
|
48
55
|
onClick={
|
|
49
56
|
secondaryAction ||
|
package/src/index.js
CHANGED
|
@@ -53,6 +53,7 @@ export * from "./FormComponents";
|
|
|
53
53
|
export * from "./useDialog";
|
|
54
54
|
|
|
55
55
|
export * from "./toastr";
|
|
56
|
+
export * from "./showConfirmationDialog";
|
|
56
57
|
export * from "./utils/handlerHelpers";
|
|
57
58
|
export * from "./customIcons";
|
|
58
59
|
export { default as basicHandleActionsWithFullState } from "./utils/basicHandleActionsWithFullState";
|