@teselagen/ui 0.7.1 → 0.7.2-beta.1
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/TgSuggest/index.d.ts +18 -1
- package/index.cjs.js +118 -105
- package/index.es.js +118 -105
- package/package.json +1 -1
- package/src/DataTable/EditabelCell.js +4 -4
- package/src/DataTable/index.js +2 -2
- package/src/DataTable/utils/useTableParams.js +0 -1
- package/src/DataTable/utils/withTableParams.js +2 -2
- package/src/TgSuggest/index.js +80 -65
- package/FormComponents/AbstractField.d.ts +0 -1
- package/src/FormComponents/AbstractField.js +0 -388
package/TgSuggest/index.d.ts
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
1
|
export default TgSuggest;
|
|
2
|
-
declare function TgSuggest(
|
|
2
|
+
declare function TgSuggest({ disabled, inputProps: _inputProps, intent, isLoading, isSimpleSearch, multi, noResultsText, notCreateable, onBlur, onChange, optionRenderer, options, placeholder, popoverProps: _popoverProps, value, ...rest }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
disabled: any;
|
|
5
|
+
inputProps: any;
|
|
6
|
+
intent: any;
|
|
7
|
+
isLoading: any;
|
|
8
|
+
isSimpleSearch: any;
|
|
9
|
+
multi: any;
|
|
10
|
+
noResultsText: any;
|
|
11
|
+
notCreateable: any;
|
|
12
|
+
onBlur: any;
|
|
13
|
+
onChange: any;
|
|
14
|
+
optionRenderer: any;
|
|
15
|
+
options: any;
|
|
16
|
+
placeholder: any;
|
|
17
|
+
popoverProps: any;
|
|
18
|
+
value: any;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
package/index.cjs.js
CHANGED
|
@@ -31437,10 +31437,10 @@ const itemRenderer = /* @__PURE__ */ __name((i = "", { index: index2, handleClic
|
|
|
31437
31437
|
},
|
|
31438
31438
|
i
|
|
31439
31439
|
), "itemRenderer");
|
|
31440
|
-
const TgSuggest = /* @__PURE__ */ __name((
|
|
31441
|
-
|
|
31440
|
+
const TgSuggest = /* @__PURE__ */ __name((_e) => {
|
|
31441
|
+
var _f = _e, {
|
|
31442
31442
|
disabled,
|
|
31443
|
-
inputProps,
|
|
31443
|
+
inputProps: _inputProps,
|
|
31444
31444
|
intent,
|
|
31445
31445
|
isLoading,
|
|
31446
31446
|
isSimpleSearch,
|
|
@@ -31448,14 +31448,13 @@ const TgSuggest = /* @__PURE__ */ __name((props) => {
|
|
|
31448
31448
|
noResultsText,
|
|
31449
31449
|
notCreateable,
|
|
31450
31450
|
onBlur,
|
|
31451
|
-
onChange
|
|
31452
|
-
}, "onChange"),
|
|
31451
|
+
onChange,
|
|
31453
31452
|
optionRenderer,
|
|
31454
|
-
options: options
|
|
31453
|
+
options: options,
|
|
31455
31454
|
placeholder,
|
|
31456
|
-
popoverProps,
|
|
31457
|
-
value
|
|
31458
|
-
} =
|
|
31455
|
+
popoverProps: _popoverProps,
|
|
31456
|
+
value
|
|
31457
|
+
} = _f, rest = __objRest(_f, [
|
|
31459
31458
|
"disabled",
|
|
31460
31459
|
"inputProps",
|
|
31461
31460
|
"intent",
|
|
@@ -31465,7 +31464,6 @@ const TgSuggest = /* @__PURE__ */ __name((props) => {
|
|
|
31465
31464
|
"noResultsText",
|
|
31466
31465
|
"notCreateable",
|
|
31467
31466
|
"onBlur",
|
|
31468
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
31469
31467
|
"onChange",
|
|
31470
31468
|
"optionRenderer",
|
|
31471
31469
|
//pull this one out here so it doesn't get passsed along
|
|
@@ -31475,42 +31473,66 @@ const TgSuggest = /* @__PURE__ */ __name((props) => {
|
|
|
31475
31473
|
"value"
|
|
31476
31474
|
]);
|
|
31477
31475
|
const inputRef = React$1.useRef(null);
|
|
31478
|
-
const handleItemSelect =
|
|
31479
|
-
|
|
31480
|
-
|
|
31481
|
-
|
|
31482
|
-
|
|
31483
|
-
|
|
31484
|
-
|
|
31476
|
+
const handleItemSelect = React$1.useCallback(
|
|
31477
|
+
(item) => {
|
|
31478
|
+
inputRef.current && inputRef.current.blur();
|
|
31479
|
+
return onChange == null ? void 0 : onChange(item);
|
|
31480
|
+
},
|
|
31481
|
+
[onChange]
|
|
31482
|
+
);
|
|
31483
|
+
const _itemListPredicate = React$1.useCallback(
|
|
31484
|
+
(queryString2, item) => {
|
|
31485
|
+
return itemListPredicate(queryString2, item, isSimpleSearch);
|
|
31486
|
+
},
|
|
31487
|
+
[isSimpleSearch]
|
|
31488
|
+
);
|
|
31489
|
+
const popoverProps = React$1.useMemo(
|
|
31490
|
+
() => __spreadValues({
|
|
31491
|
+
minimal: true,
|
|
31492
|
+
className: classNames("tg-select", {
|
|
31493
|
+
"tg-single-select": !multi
|
|
31494
|
+
}),
|
|
31495
|
+
wrapperTagName: "div",
|
|
31496
|
+
usePortal: false,
|
|
31497
|
+
canEscapeKeyClose: true
|
|
31498
|
+
}, _popoverProps),
|
|
31499
|
+
[multi, _popoverProps]
|
|
31500
|
+
);
|
|
31501
|
+
const onKeyDown = React$1.useCallback((e2) => {
|
|
31502
|
+
const { which } = e2;
|
|
31503
|
+
if (which === core.Keys.ENTER) {
|
|
31504
|
+
e2.preventDefault();
|
|
31505
|
+
e2.stopPropagation();
|
|
31506
|
+
}
|
|
31507
|
+
if (which === core.Keys.ESCAPE || which === core.Keys.TAB) {
|
|
31508
|
+
if (inputRef.current != null) {
|
|
31509
|
+
inputRef.current.blur();
|
|
31510
|
+
}
|
|
31511
|
+
e2.preventDefault();
|
|
31512
|
+
e2.stopPropagation();
|
|
31513
|
+
}
|
|
31514
|
+
}, []);
|
|
31515
|
+
const inputProps = React$1.useMemo(
|
|
31516
|
+
() => __spreadValues({
|
|
31517
|
+
inputRef: (n2) => {
|
|
31518
|
+
if (n2)
|
|
31519
|
+
inputRef.current = n2;
|
|
31520
|
+
},
|
|
31521
|
+
placeholder: placeholder || "Type here...",
|
|
31522
|
+
disabled,
|
|
31523
|
+
// tg: adding isLoading will cause the input to be blurred when using generic select asReactSelect (don't do it),
|
|
31524
|
+
intent
|
|
31525
|
+
}, _inputProps),
|
|
31526
|
+
[disabled, _inputProps, intent, placeholder]
|
|
31527
|
+
);
|
|
31485
31528
|
return /* @__PURE__ */ React$1.createElement(
|
|
31486
31529
|
select.Suggest,
|
|
31487
31530
|
__spreadValues({
|
|
31488
31531
|
closeOnSelect: true,
|
|
31489
|
-
items: options
|
|
31532
|
+
items: options,
|
|
31490
31533
|
query: value,
|
|
31491
|
-
popoverProps
|
|
31492
|
-
|
|
31493
|
-
className: classNames("tg-select", {
|
|
31494
|
-
"tg-single-select": !multi
|
|
31495
|
-
}),
|
|
31496
|
-
wrapperTagName: "div",
|
|
31497
|
-
usePortal: false,
|
|
31498
|
-
canEscapeKeyClose: true
|
|
31499
|
-
}, popoverProps),
|
|
31500
|
-
onKeyDown: (e2) => {
|
|
31501
|
-
const { which } = e2;
|
|
31502
|
-
if (which === core.Keys.ENTER) {
|
|
31503
|
-
e2.preventDefault();
|
|
31504
|
-
e2.stopPropagation();
|
|
31505
|
-
}
|
|
31506
|
-
if (which === core.Keys.ESCAPE || which === core.Keys.TAB) {
|
|
31507
|
-
if (inputRef.current != null) {
|
|
31508
|
-
inputRef.current.blur();
|
|
31509
|
-
}
|
|
31510
|
-
e2.preventDefault();
|
|
31511
|
-
e2.stopPropagation();
|
|
31512
|
-
}
|
|
31513
|
-
},
|
|
31534
|
+
popoverProps,
|
|
31535
|
+
onKeyDown,
|
|
31514
31536
|
onItemSelect: handleItemSelect,
|
|
31515
31537
|
noResults: null,
|
|
31516
31538
|
resetOnSelect: false,
|
|
@@ -31519,23 +31541,14 @@ const TgSuggest = /* @__PURE__ */ __name((props) => {
|
|
|
31519
31541
|
itemListPredicate: _itemListPredicate,
|
|
31520
31542
|
selectedItem: value,
|
|
31521
31543
|
inputValueRenderer: (item) => item,
|
|
31522
|
-
inputProps
|
|
31523
|
-
inputRef: (n2) => {
|
|
31524
|
-
if (n2)
|
|
31525
|
-
inputRef.current = n2;
|
|
31526
|
-
},
|
|
31527
|
-
placeholder: placeholder || "Type here...",
|
|
31528
|
-
disabled,
|
|
31529
|
-
// tg: adding isLoading will cause the input to be blurred when using generic select asReactSelect (don't do it),
|
|
31530
|
-
intent
|
|
31531
|
-
}, inputProps),
|
|
31544
|
+
inputProps,
|
|
31532
31545
|
isSimpleSearch,
|
|
31533
31546
|
onChange
|
|
31534
31547
|
}, rest)
|
|
31535
31548
|
);
|
|
31536
31549
|
}, "TgSuggest");
|
|
31537
|
-
const InfoHelper = /* @__PURE__ */ __name((
|
|
31538
|
-
var
|
|
31550
|
+
const InfoHelper = /* @__PURE__ */ __name((_g) => {
|
|
31551
|
+
var _h = _g, {
|
|
31539
31552
|
className,
|
|
31540
31553
|
content: content2,
|
|
31541
31554
|
children,
|
|
@@ -31551,7 +31564,7 @@ const InfoHelper = /* @__PURE__ */ __name((_e) => {
|
|
|
31551
31564
|
disabled,
|
|
31552
31565
|
displayToSide,
|
|
31553
31566
|
style
|
|
31554
|
-
} =
|
|
31567
|
+
} = _h, rest = __objRest(_h, [
|
|
31555
31568
|
"className",
|
|
31556
31569
|
"content",
|
|
31557
31570
|
"children",
|
|
@@ -32003,13 +32016,13 @@ const AbstractInput = /* @__PURE__ */ __name(({
|
|
|
32003
32016
|
rightEl
|
|
32004
32017
|
);
|
|
32005
32018
|
}, "AbstractInput");
|
|
32006
|
-
const renderBlueprintDateInput = /* @__PURE__ */ __name((
|
|
32007
|
-
var
|
|
32019
|
+
const renderBlueprintDateInput = /* @__PURE__ */ __name((_i) => {
|
|
32020
|
+
var _j = _i, {
|
|
32008
32021
|
input,
|
|
32009
32022
|
intent,
|
|
32010
32023
|
onFieldSubmit,
|
|
32011
32024
|
inputProps
|
|
32012
|
-
} =
|
|
32025
|
+
} = _j, rest = __objRest(_j, [
|
|
32013
32026
|
"input",
|
|
32014
32027
|
"intent",
|
|
32015
32028
|
"onFieldSubmit",
|
|
@@ -32029,13 +32042,13 @@ const renderBlueprintDateInput = /* @__PURE__ */ __name((_g) => {
|
|
|
32029
32042
|
})
|
|
32030
32043
|
);
|
|
32031
32044
|
}, "renderBlueprintDateInput");
|
|
32032
|
-
const renderBlueprintDateRangeInput = /* @__PURE__ */ __name((
|
|
32033
|
-
var
|
|
32045
|
+
const renderBlueprintDateRangeInput = /* @__PURE__ */ __name((_k) => {
|
|
32046
|
+
var _l = _k, {
|
|
32034
32047
|
input,
|
|
32035
32048
|
intent,
|
|
32036
32049
|
onFieldSubmit,
|
|
32037
32050
|
inputProps
|
|
32038
|
-
} =
|
|
32051
|
+
} = _l, rest = __objRest(_l, [
|
|
32039
32052
|
"input",
|
|
32040
32053
|
"intent",
|
|
32041
32054
|
"onFieldSubmit",
|
|
@@ -32055,8 +32068,8 @@ const renderBlueprintDateRangeInput = /* @__PURE__ */ __name((_i) => {
|
|
|
32055
32068
|
})
|
|
32056
32069
|
);
|
|
32057
32070
|
}, "renderBlueprintDateRangeInput");
|
|
32058
|
-
const RenderBlueprintInput = /* @__PURE__ */ __name((
|
|
32059
|
-
var
|
|
32071
|
+
const RenderBlueprintInput = /* @__PURE__ */ __name((_m) => {
|
|
32072
|
+
var _n = _m, {
|
|
32060
32073
|
input,
|
|
32061
32074
|
intent: intent,
|
|
32062
32075
|
onFieldSubmit,
|
|
@@ -32064,7 +32077,7 @@ const RenderBlueprintInput = /* @__PURE__ */ __name((_k) => {
|
|
|
32064
32077
|
asyncValidating,
|
|
32065
32078
|
rightElement,
|
|
32066
32079
|
clickToEdit
|
|
32067
|
-
} =
|
|
32080
|
+
} = _n, rest = __objRest(_n, [
|
|
32068
32081
|
"input",
|
|
32069
32082
|
// meta = {},
|
|
32070
32083
|
"intent",
|
|
@@ -32153,14 +32166,14 @@ const RenderBlueprintInput = /* @__PURE__ */ __name((_k) => {
|
|
|
32153
32166
|
)));
|
|
32154
32167
|
return inner;
|
|
32155
32168
|
}, "RenderBlueprintInput");
|
|
32156
|
-
const renderBlueprintCheckbox = /* @__PURE__ */ __name((
|
|
32157
|
-
var
|
|
32169
|
+
const renderBlueprintCheckbox = /* @__PURE__ */ __name((_o) => {
|
|
32170
|
+
var _p = _o, {
|
|
32158
32171
|
input,
|
|
32159
32172
|
label,
|
|
32160
32173
|
tooltipInfo,
|
|
32161
32174
|
beforeOnChange,
|
|
32162
32175
|
onFieldSubmit
|
|
32163
|
-
} =
|
|
32176
|
+
} = _p, rest = __objRest(_p, [
|
|
32164
32177
|
"input",
|
|
32165
32178
|
"label",
|
|
32166
32179
|
"tooltipInfo",
|
|
@@ -32197,14 +32210,14 @@ const getCheckboxOrSwitchOnChange = /* @__PURE__ */ __name(({
|
|
|
32197
32210
|
onFieldSubmit(v2);
|
|
32198
32211
|
});
|
|
32199
32212
|
}, "getCheckboxOrSwitchOnChange");
|
|
32200
|
-
const renderBlueprintSwitch = /* @__PURE__ */ __name((
|
|
32201
|
-
var
|
|
32213
|
+
const renderBlueprintSwitch = /* @__PURE__ */ __name((_q) => {
|
|
32214
|
+
var _r = _q, {
|
|
32202
32215
|
input,
|
|
32203
32216
|
label,
|
|
32204
32217
|
tooltipInfo,
|
|
32205
32218
|
onFieldSubmit,
|
|
32206
32219
|
beforeOnChange
|
|
32207
|
-
} =
|
|
32220
|
+
} = _r, rest = __objRest(_r, [
|
|
32208
32221
|
"input",
|
|
32209
32222
|
"label",
|
|
32210
32223
|
"tooltipInfo",
|
|
@@ -32224,8 +32237,8 @@ const renderBlueprintSwitch = /* @__PURE__ */ __name((_o) => {
|
|
|
32224
32237
|
})
|
|
32225
32238
|
);
|
|
32226
32239
|
}, "renderBlueprintSwitch");
|
|
32227
|
-
const renderFileUpload = /* @__PURE__ */ __name((
|
|
32228
|
-
var
|
|
32240
|
+
const renderFileUpload = /* @__PURE__ */ __name((_s) => {
|
|
32241
|
+
var _t = _s, { input, onFieldSubmit } = _t, rest = __objRest(_t, ["input", "onFieldSubmit"]);
|
|
32229
32242
|
return /* @__PURE__ */ React$1.createElement(
|
|
32230
32243
|
Uploader,
|
|
32231
32244
|
__spreadProps(__spreadValues({
|
|
@@ -32237,8 +32250,8 @@ const renderFileUpload = /* @__PURE__ */ __name((_q) => {
|
|
|
32237
32250
|
})
|
|
32238
32251
|
);
|
|
32239
32252
|
}, "renderFileUpload");
|
|
32240
|
-
const RenderBlueprintTextarea = /* @__PURE__ */ __name((
|
|
32241
|
-
var
|
|
32253
|
+
const RenderBlueprintTextarea = /* @__PURE__ */ __name((_u) => {
|
|
32254
|
+
var _v = _u, {
|
|
32242
32255
|
input,
|
|
32243
32256
|
onFieldSubmit,
|
|
32244
32257
|
onKeyDown,
|
|
@@ -32246,7 +32259,7 @@ const RenderBlueprintTextarea = /* @__PURE__ */ __name((_s) => {
|
|
|
32246
32259
|
inputClassName,
|
|
32247
32260
|
clickToEdit,
|
|
32248
32261
|
disabled
|
|
32249
|
-
} =
|
|
32262
|
+
} = _v, rest = __objRest(_v, [
|
|
32250
32263
|
"input",
|
|
32251
32264
|
"onFieldSubmit",
|
|
32252
32265
|
"onKeyDown",
|
|
@@ -32446,15 +32459,15 @@ const renderReactSelect = /* @__PURE__ */ __name((props) => {
|
|
|
32446
32459
|
const renderSuggest_old = /* @__PURE__ */ __name((props) => {
|
|
32447
32460
|
return renderReactSelect(__spreadProps(__spreadValues({}, props), { asSuggest: true }));
|
|
32448
32461
|
}, "renderSuggest_old");
|
|
32449
|
-
const renderSuggest = /* @__PURE__ */ __name((
|
|
32450
|
-
var
|
|
32462
|
+
const renderSuggest = /* @__PURE__ */ __name((_w) => {
|
|
32463
|
+
var _x = _w, {
|
|
32451
32464
|
async,
|
|
32452
32465
|
input: { value, onChange },
|
|
32453
32466
|
hideValue,
|
|
32454
32467
|
intent,
|
|
32455
32468
|
options,
|
|
32456
32469
|
onFieldSubmit
|
|
32457
|
-
} =
|
|
32470
|
+
} = _x, rest = __objRest(_x, [
|
|
32458
32471
|
"async",
|
|
32459
32472
|
"input",
|
|
32460
32473
|
"hideValue",
|
|
@@ -32479,12 +32492,12 @@ const renderSuggest = /* @__PURE__ */ __name((_u) => {
|
|
|
32479
32492
|
});
|
|
32480
32493
|
return /* @__PURE__ */ React$1.createElement(TgSuggest, __spreadValues({}, propsToUse));
|
|
32481
32494
|
}, "renderSuggest");
|
|
32482
|
-
const BPSelect = /* @__PURE__ */ __name((
|
|
32483
|
-
var
|
|
32495
|
+
const BPSelect = /* @__PURE__ */ __name((_y) => {
|
|
32496
|
+
var _z = _y, { value, onChange } = _z, rest = __objRest(_z, ["value", "onChange"]);
|
|
32484
32497
|
return renderSelect(__spreadProps(__spreadValues({}, rest), { input: { onChange, value } }));
|
|
32485
32498
|
}, "BPSelect");
|
|
32486
|
-
const renderSelect = /* @__PURE__ */ __name((
|
|
32487
|
-
var
|
|
32499
|
+
const renderSelect = /* @__PURE__ */ __name((_A) => {
|
|
32500
|
+
var _B = _A, {
|
|
32488
32501
|
input: { value, onChange },
|
|
32489
32502
|
hideValue,
|
|
32490
32503
|
className,
|
|
@@ -32494,7 +32507,7 @@ const renderSelect = /* @__PURE__ */ __name((_y) => {
|
|
|
32494
32507
|
hidePlaceHolder,
|
|
32495
32508
|
minimal,
|
|
32496
32509
|
disabled
|
|
32497
|
-
} =
|
|
32510
|
+
} = _B, rest = __objRest(_B, [
|
|
32498
32511
|
"input",
|
|
32499
32512
|
"hideValue",
|
|
32500
32513
|
"className",
|
|
@@ -32562,15 +32575,15 @@ const renderSelect = /* @__PURE__ */ __name((_y) => {
|
|
|
32562
32575
|
)
|
|
32563
32576
|
);
|
|
32564
32577
|
}, "renderSelect");
|
|
32565
|
-
const renderBlueprintNumericInput = /* @__PURE__ */ __name((
|
|
32566
|
-
var
|
|
32578
|
+
const renderBlueprintNumericInput = /* @__PURE__ */ __name((_C) => {
|
|
32579
|
+
var _D = _C, {
|
|
32567
32580
|
input,
|
|
32568
32581
|
hideValue,
|
|
32569
32582
|
intent,
|
|
32570
32583
|
inputClassName,
|
|
32571
32584
|
onFieldSubmit,
|
|
32572
32585
|
onAnyNumberChange
|
|
32573
|
-
} =
|
|
32586
|
+
} = _D, rest = __objRest(_D, [
|
|
32574
32587
|
"input",
|
|
32575
32588
|
"hideValue",
|
|
32576
32589
|
"intent",
|
|
@@ -32615,12 +32628,12 @@ const renderBlueprintNumericInput = /* @__PURE__ */ __name((_A) => {
|
|
|
32615
32628
|
})
|
|
32616
32629
|
);
|
|
32617
32630
|
}, "renderBlueprintNumericInput");
|
|
32618
|
-
const renderBlueprintRadioGroup = /* @__PURE__ */ __name((
|
|
32619
|
-
var
|
|
32631
|
+
const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_E) => {
|
|
32632
|
+
var _F = _E, {
|
|
32620
32633
|
input,
|
|
32621
32634
|
options,
|
|
32622
32635
|
onFieldSubmit
|
|
32623
|
-
} =
|
|
32636
|
+
} = _F, rest = __objRest(_F, [
|
|
32624
32637
|
"input",
|
|
32625
32638
|
"options",
|
|
32626
32639
|
"onFieldSubmit"
|
|
@@ -32659,8 +32672,8 @@ const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_C) => {
|
|
|
32659
32672
|
})
|
|
32660
32673
|
);
|
|
32661
32674
|
}, "renderBlueprintRadioGroup");
|
|
32662
|
-
const RenderReactColorPicker = /* @__PURE__ */ __name((
|
|
32663
|
-
var
|
|
32675
|
+
const RenderReactColorPicker = /* @__PURE__ */ __name((_G) => {
|
|
32676
|
+
var _H = _G, { input, onFieldSubmit } = _H, rest = __objRest(_H, ["input", "onFieldSubmit"]);
|
|
32664
32677
|
return /* @__PURE__ */ React$1.createElement(
|
|
32665
32678
|
core.Popover,
|
|
32666
32679
|
{
|
|
@@ -52385,8 +52398,8 @@ const itemSizeEstimators = {
|
|
|
52385
52398
|
normal: () => 33.34,
|
|
52386
52399
|
comfortable: () => 41.34
|
|
52387
52400
|
};
|
|
52388
|
-
const DataTable = /* @__PURE__ */ __name((
|
|
52389
|
-
var
|
|
52401
|
+
const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
52402
|
+
var _J = _I, {
|
|
52390
52403
|
controlled_pageSize,
|
|
52391
52404
|
formName = "tgDataTable",
|
|
52392
52405
|
history,
|
|
@@ -52400,7 +52413,7 @@ const DataTable = /* @__PURE__ */ __name((_G) => {
|
|
|
52400
52413
|
tableParams: _tableParams,
|
|
52401
52414
|
anyTouched,
|
|
52402
52415
|
blur
|
|
52403
|
-
} =
|
|
52416
|
+
} = _J, ownProps = __objRest(_J, [
|
|
52404
52417
|
"controlled_pageSize",
|
|
52405
52418
|
"formName",
|
|
52406
52419
|
"history",
|
|
@@ -52580,8 +52593,8 @@ const DataTable = /* @__PURE__ */ __name((_G) => {
|
|
|
52580
52593
|
props = __spreadValues(__spreadValues({}, props), tableParams);
|
|
52581
52594
|
const queryParams = React$1.useMemo(() => {
|
|
52582
52595
|
if (!isTableParamsConnected) {
|
|
52583
|
-
const additionalFilterToUse = typeof props.additionalFilter === "function" ? props.additionalFilter
|
|
52584
|
-
const additionalOrFilterToUse = typeof props.additionalOrFilter === "function" ? props.additionalOrFilter
|
|
52596
|
+
const additionalFilterToUse = typeof props.additionalFilter === "function" ? props.additionalFilter : () => props.additionalFilter;
|
|
52597
|
+
const additionalOrFilterToUse = typeof props.additionalOrFilter === "function" ? props.additionalOrFilter : () => props.additionalOrFilter;
|
|
52585
52598
|
return getQueryParams({
|
|
52586
52599
|
doNotCoercePageSize,
|
|
52587
52600
|
currentParams,
|
|
@@ -68422,14 +68435,14 @@ function BlueprintError({ error }) {
|
|
|
68422
68435
|
return /* @__PURE__ */ React$1.createElement("div", { className: classNames(core.Classes.FORM_GROUP, core.Classes.INTENT_DANGER) }, /* @__PURE__ */ React$1.createElement("div", { className: classNames(core.Classes.FORM_HELPER_TEXT, "preserve-newline") }, error));
|
|
68423
68436
|
}
|
|
68424
68437
|
__name(BlueprintError, "BlueprintError");
|
|
68425
|
-
function DropdownButton(
|
|
68426
|
-
var
|
|
68438
|
+
function DropdownButton(_K) {
|
|
68439
|
+
var _L = _K, {
|
|
68427
68440
|
disabled,
|
|
68428
68441
|
menu,
|
|
68429
68442
|
noRightIcon,
|
|
68430
68443
|
popoverProps,
|
|
68431
68444
|
className
|
|
68432
|
-
} =
|
|
68445
|
+
} = _L, rest = __objRest(_L, [
|
|
68433
68446
|
"disabled",
|
|
68434
68447
|
"menu",
|
|
68435
68448
|
"noRightIcon",
|
|
@@ -68613,8 +68626,8 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
|
|
|
68613
68626
|
[controlled_pageSize, defaultsToUse, pageSize, history == null ? void 0 : history.location]
|
|
68614
68627
|
);
|
|
68615
68628
|
const queryParams = React$1.useMemo(() => {
|
|
68616
|
-
const additionalFilterToUse = typeof additionalFilter === "function" ? additionalFilter
|
|
68617
|
-
const additionalOrFilterToUse = typeof additionalOrFilter === "function" ? additionalOrFilter
|
|
68629
|
+
const additionalFilterToUse = typeof additionalFilter === "function" ? additionalFilter : () => additionalFilter;
|
|
68630
|
+
const additionalOrFilterToUse = typeof additionalOrFilter === "function" ? additionalOrFilter : () => additionalOrFilter;
|
|
68618
68631
|
return getQueryParams({
|
|
68619
68632
|
doNotCoercePageSize,
|
|
68620
68633
|
currentParams,
|
|
@@ -72110,14 +72123,14 @@ const EnhancedMenuItem = compose(
|
|
|
72110
72123
|
}
|
|
72111
72124
|
}),
|
|
72112
72125
|
branch(({ navTo }) => navTo, withRouter)
|
|
72113
|
-
)(function(
|
|
72114
|
-
var
|
|
72126
|
+
)(function(_M) {
|
|
72127
|
+
var _N = _M, {
|
|
72115
72128
|
navTo,
|
|
72116
72129
|
context,
|
|
72117
72130
|
staticContext,
|
|
72118
72131
|
didMount,
|
|
72119
72132
|
willUnmount
|
|
72120
|
-
} =
|
|
72133
|
+
} = _N, props = __objRest(_N, [
|
|
72121
72134
|
"navTo",
|
|
72122
72135
|
"context",
|
|
72123
72136
|
"staticContext",
|
|
@@ -72341,8 +72354,8 @@ function doesSearchValMatchText(searchVal, justText) {
|
|
|
72341
72354
|
);
|
|
72342
72355
|
}
|
|
72343
72356
|
__name(doesSearchValMatchText, "doesSearchValMatchText");
|
|
72344
|
-
const MenuItemWithTooltip = /* @__PURE__ */ __name((
|
|
72345
|
-
var
|
|
72357
|
+
const MenuItemWithTooltip = /* @__PURE__ */ __name((_O) => {
|
|
72358
|
+
var _P = _O, { tooltip } = _P, rest = __objRest(_P, ["tooltip"]);
|
|
72346
72359
|
let out = /* @__PURE__ */ React$1.createElement(core.MenuItem, __spreadValues({}, rest));
|
|
72347
72360
|
if (tooltip) {
|
|
72348
72361
|
out = /* @__PURE__ */ React$1.createElement(core.Tooltip, { content: tooltip }, out);
|