@teselagen/ui 0.7.1 → 0.7.2-beta.2
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/FormComponents/FormSeparator.d.ts +3 -0
- package/TgSuggest/index.d.ts +18 -1
- package/index.cjs.js +125 -108
- package/index.d.ts +1 -0
- package/index.es.js +125 -108
- 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/FormComponents/FormSeparator.js +9 -0
- package/src/FormComponents/style.css +24 -0
- package/src/TgSuggest/index.js +80 -65
- package/src/index.js +1 -0
- package/src/utils/menuUtils.js +3 -3
- package/style.css +29 -5
- 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
|
@@ -3071,6 +3071,9 @@ const LoadingDots = /* @__PURE__ */ __name(() => {
|
|
|
3071
3071
|
}, []);
|
|
3072
3072
|
return /* @__PURE__ */ React$1.createElement("span", null, dots);
|
|
3073
3073
|
}, "LoadingDots");
|
|
3074
|
+
const FormSeparator = /* @__PURE__ */ __name(({ label = "or" } = {}) => {
|
|
3075
|
+
return /* @__PURE__ */ React$1.createElement("div", { className: "form-separator" }, /* @__PURE__ */ React$1.createElement("p", { style: { opacity: 0.8 } }, label));
|
|
3076
|
+
}, "FormSeparator");
|
|
3074
3077
|
const AssignDefaultsModeContext = React$1.createContext({
|
|
3075
3078
|
inAssignDefaultsMode: false,
|
|
3076
3079
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -31437,10 +31440,10 @@ const itemRenderer = /* @__PURE__ */ __name((i = "", { index: index2, handleClic
|
|
|
31437
31440
|
},
|
|
31438
31441
|
i
|
|
31439
31442
|
), "itemRenderer");
|
|
31440
|
-
const TgSuggest = /* @__PURE__ */ __name((
|
|
31441
|
-
|
|
31443
|
+
const TgSuggest = /* @__PURE__ */ __name((_e) => {
|
|
31444
|
+
var _f = _e, {
|
|
31442
31445
|
disabled,
|
|
31443
|
-
inputProps,
|
|
31446
|
+
inputProps: _inputProps,
|
|
31444
31447
|
intent,
|
|
31445
31448
|
isLoading,
|
|
31446
31449
|
isSimpleSearch,
|
|
@@ -31448,14 +31451,13 @@ const TgSuggest = /* @__PURE__ */ __name((props) => {
|
|
|
31448
31451
|
noResultsText,
|
|
31449
31452
|
notCreateable,
|
|
31450
31453
|
onBlur,
|
|
31451
|
-
onChange
|
|
31452
|
-
}, "onChange"),
|
|
31454
|
+
onChange,
|
|
31453
31455
|
optionRenderer,
|
|
31454
|
-
options: options
|
|
31456
|
+
options: options,
|
|
31455
31457
|
placeholder,
|
|
31456
|
-
popoverProps,
|
|
31457
|
-
value
|
|
31458
|
-
} =
|
|
31458
|
+
popoverProps: _popoverProps,
|
|
31459
|
+
value
|
|
31460
|
+
} = _f, rest = __objRest(_f, [
|
|
31459
31461
|
"disabled",
|
|
31460
31462
|
"inputProps",
|
|
31461
31463
|
"intent",
|
|
@@ -31465,7 +31467,6 @@ const TgSuggest = /* @__PURE__ */ __name((props) => {
|
|
|
31465
31467
|
"noResultsText",
|
|
31466
31468
|
"notCreateable",
|
|
31467
31469
|
"onBlur",
|
|
31468
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
31469
31470
|
"onChange",
|
|
31470
31471
|
"optionRenderer",
|
|
31471
31472
|
//pull this one out here so it doesn't get passsed along
|
|
@@ -31475,42 +31476,66 @@ const TgSuggest = /* @__PURE__ */ __name((props) => {
|
|
|
31475
31476
|
"value"
|
|
31476
31477
|
]);
|
|
31477
31478
|
const inputRef = React$1.useRef(null);
|
|
31478
|
-
const handleItemSelect =
|
|
31479
|
-
|
|
31480
|
-
|
|
31481
|
-
|
|
31482
|
-
|
|
31483
|
-
|
|
31484
|
-
|
|
31479
|
+
const handleItemSelect = React$1.useCallback(
|
|
31480
|
+
(item) => {
|
|
31481
|
+
inputRef.current && inputRef.current.blur();
|
|
31482
|
+
return onChange == null ? void 0 : onChange(item);
|
|
31483
|
+
},
|
|
31484
|
+
[onChange]
|
|
31485
|
+
);
|
|
31486
|
+
const _itemListPredicate = React$1.useCallback(
|
|
31487
|
+
(queryString2, item) => {
|
|
31488
|
+
return itemListPredicate(queryString2, item, isSimpleSearch);
|
|
31489
|
+
},
|
|
31490
|
+
[isSimpleSearch]
|
|
31491
|
+
);
|
|
31492
|
+
const popoverProps = React$1.useMemo(
|
|
31493
|
+
() => __spreadValues({
|
|
31494
|
+
minimal: true,
|
|
31495
|
+
className: classNames("tg-select", {
|
|
31496
|
+
"tg-single-select": !multi
|
|
31497
|
+
}),
|
|
31498
|
+
wrapperTagName: "div",
|
|
31499
|
+
usePortal: false,
|
|
31500
|
+
canEscapeKeyClose: true
|
|
31501
|
+
}, _popoverProps),
|
|
31502
|
+
[multi, _popoverProps]
|
|
31503
|
+
);
|
|
31504
|
+
const onKeyDown = React$1.useCallback((e2) => {
|
|
31505
|
+
const { which } = e2;
|
|
31506
|
+
if (which === core.Keys.ENTER) {
|
|
31507
|
+
e2.preventDefault();
|
|
31508
|
+
e2.stopPropagation();
|
|
31509
|
+
}
|
|
31510
|
+
if (which === core.Keys.ESCAPE || which === core.Keys.TAB) {
|
|
31511
|
+
if (inputRef.current != null) {
|
|
31512
|
+
inputRef.current.blur();
|
|
31513
|
+
}
|
|
31514
|
+
e2.preventDefault();
|
|
31515
|
+
e2.stopPropagation();
|
|
31516
|
+
}
|
|
31517
|
+
}, []);
|
|
31518
|
+
const inputProps = React$1.useMemo(
|
|
31519
|
+
() => __spreadValues({
|
|
31520
|
+
inputRef: (n2) => {
|
|
31521
|
+
if (n2)
|
|
31522
|
+
inputRef.current = n2;
|
|
31523
|
+
},
|
|
31524
|
+
placeholder: placeholder || "Type here...",
|
|
31525
|
+
disabled,
|
|
31526
|
+
// tg: adding isLoading will cause the input to be blurred when using generic select asReactSelect (don't do it),
|
|
31527
|
+
intent
|
|
31528
|
+
}, _inputProps),
|
|
31529
|
+
[disabled, _inputProps, intent, placeholder]
|
|
31530
|
+
);
|
|
31485
31531
|
return /* @__PURE__ */ React$1.createElement(
|
|
31486
31532
|
select.Suggest,
|
|
31487
31533
|
__spreadValues({
|
|
31488
31534
|
closeOnSelect: true,
|
|
31489
|
-
items: options
|
|
31535
|
+
items: options,
|
|
31490
31536
|
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
|
-
},
|
|
31537
|
+
popoverProps,
|
|
31538
|
+
onKeyDown,
|
|
31514
31539
|
onItemSelect: handleItemSelect,
|
|
31515
31540
|
noResults: null,
|
|
31516
31541
|
resetOnSelect: false,
|
|
@@ -31519,23 +31544,14 @@ const TgSuggest = /* @__PURE__ */ __name((props) => {
|
|
|
31519
31544
|
itemListPredicate: _itemListPredicate,
|
|
31520
31545
|
selectedItem: value,
|
|
31521
31546
|
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),
|
|
31547
|
+
inputProps,
|
|
31532
31548
|
isSimpleSearch,
|
|
31533
31549
|
onChange
|
|
31534
31550
|
}, rest)
|
|
31535
31551
|
);
|
|
31536
31552
|
}, "TgSuggest");
|
|
31537
|
-
const InfoHelper = /* @__PURE__ */ __name((
|
|
31538
|
-
var
|
|
31553
|
+
const InfoHelper = /* @__PURE__ */ __name((_g) => {
|
|
31554
|
+
var _h = _g, {
|
|
31539
31555
|
className,
|
|
31540
31556
|
content: content2,
|
|
31541
31557
|
children,
|
|
@@ -31551,7 +31567,7 @@ const InfoHelper = /* @__PURE__ */ __name((_e) => {
|
|
|
31551
31567
|
disabled,
|
|
31552
31568
|
displayToSide,
|
|
31553
31569
|
style
|
|
31554
|
-
} =
|
|
31570
|
+
} = _h, rest = __objRest(_h, [
|
|
31555
31571
|
"className",
|
|
31556
31572
|
"content",
|
|
31557
31573
|
"children",
|
|
@@ -32003,13 +32019,13 @@ const AbstractInput = /* @__PURE__ */ __name(({
|
|
|
32003
32019
|
rightEl
|
|
32004
32020
|
);
|
|
32005
32021
|
}, "AbstractInput");
|
|
32006
|
-
const renderBlueprintDateInput = /* @__PURE__ */ __name((
|
|
32007
|
-
var
|
|
32022
|
+
const renderBlueprintDateInput = /* @__PURE__ */ __name((_i) => {
|
|
32023
|
+
var _j = _i, {
|
|
32008
32024
|
input,
|
|
32009
32025
|
intent,
|
|
32010
32026
|
onFieldSubmit,
|
|
32011
32027
|
inputProps
|
|
32012
|
-
} =
|
|
32028
|
+
} = _j, rest = __objRest(_j, [
|
|
32013
32029
|
"input",
|
|
32014
32030
|
"intent",
|
|
32015
32031
|
"onFieldSubmit",
|
|
@@ -32029,13 +32045,13 @@ const renderBlueprintDateInput = /* @__PURE__ */ __name((_g) => {
|
|
|
32029
32045
|
})
|
|
32030
32046
|
);
|
|
32031
32047
|
}, "renderBlueprintDateInput");
|
|
32032
|
-
const renderBlueprintDateRangeInput = /* @__PURE__ */ __name((
|
|
32033
|
-
var
|
|
32048
|
+
const renderBlueprintDateRangeInput = /* @__PURE__ */ __name((_k) => {
|
|
32049
|
+
var _l = _k, {
|
|
32034
32050
|
input,
|
|
32035
32051
|
intent,
|
|
32036
32052
|
onFieldSubmit,
|
|
32037
32053
|
inputProps
|
|
32038
|
-
} =
|
|
32054
|
+
} = _l, rest = __objRest(_l, [
|
|
32039
32055
|
"input",
|
|
32040
32056
|
"intent",
|
|
32041
32057
|
"onFieldSubmit",
|
|
@@ -32055,8 +32071,8 @@ const renderBlueprintDateRangeInput = /* @__PURE__ */ __name((_i) => {
|
|
|
32055
32071
|
})
|
|
32056
32072
|
);
|
|
32057
32073
|
}, "renderBlueprintDateRangeInput");
|
|
32058
|
-
const RenderBlueprintInput = /* @__PURE__ */ __name((
|
|
32059
|
-
var
|
|
32074
|
+
const RenderBlueprintInput = /* @__PURE__ */ __name((_m) => {
|
|
32075
|
+
var _n = _m, {
|
|
32060
32076
|
input,
|
|
32061
32077
|
intent: intent,
|
|
32062
32078
|
onFieldSubmit,
|
|
@@ -32064,7 +32080,7 @@ const RenderBlueprintInput = /* @__PURE__ */ __name((_k) => {
|
|
|
32064
32080
|
asyncValidating,
|
|
32065
32081
|
rightElement,
|
|
32066
32082
|
clickToEdit
|
|
32067
|
-
} =
|
|
32083
|
+
} = _n, rest = __objRest(_n, [
|
|
32068
32084
|
"input",
|
|
32069
32085
|
// meta = {},
|
|
32070
32086
|
"intent",
|
|
@@ -32153,14 +32169,14 @@ const RenderBlueprintInput = /* @__PURE__ */ __name((_k) => {
|
|
|
32153
32169
|
)));
|
|
32154
32170
|
return inner;
|
|
32155
32171
|
}, "RenderBlueprintInput");
|
|
32156
|
-
const renderBlueprintCheckbox = /* @__PURE__ */ __name((
|
|
32157
|
-
var
|
|
32172
|
+
const renderBlueprintCheckbox = /* @__PURE__ */ __name((_o) => {
|
|
32173
|
+
var _p = _o, {
|
|
32158
32174
|
input,
|
|
32159
32175
|
label,
|
|
32160
32176
|
tooltipInfo,
|
|
32161
32177
|
beforeOnChange,
|
|
32162
32178
|
onFieldSubmit
|
|
32163
|
-
} =
|
|
32179
|
+
} = _p, rest = __objRest(_p, [
|
|
32164
32180
|
"input",
|
|
32165
32181
|
"label",
|
|
32166
32182
|
"tooltipInfo",
|
|
@@ -32197,14 +32213,14 @@ const getCheckboxOrSwitchOnChange = /* @__PURE__ */ __name(({
|
|
|
32197
32213
|
onFieldSubmit(v2);
|
|
32198
32214
|
});
|
|
32199
32215
|
}, "getCheckboxOrSwitchOnChange");
|
|
32200
|
-
const renderBlueprintSwitch = /* @__PURE__ */ __name((
|
|
32201
|
-
var
|
|
32216
|
+
const renderBlueprintSwitch = /* @__PURE__ */ __name((_q) => {
|
|
32217
|
+
var _r = _q, {
|
|
32202
32218
|
input,
|
|
32203
32219
|
label,
|
|
32204
32220
|
tooltipInfo,
|
|
32205
32221
|
onFieldSubmit,
|
|
32206
32222
|
beforeOnChange
|
|
32207
|
-
} =
|
|
32223
|
+
} = _r, rest = __objRest(_r, [
|
|
32208
32224
|
"input",
|
|
32209
32225
|
"label",
|
|
32210
32226
|
"tooltipInfo",
|
|
@@ -32224,8 +32240,8 @@ const renderBlueprintSwitch = /* @__PURE__ */ __name((_o) => {
|
|
|
32224
32240
|
})
|
|
32225
32241
|
);
|
|
32226
32242
|
}, "renderBlueprintSwitch");
|
|
32227
|
-
const renderFileUpload = /* @__PURE__ */ __name((
|
|
32228
|
-
var
|
|
32243
|
+
const renderFileUpload = /* @__PURE__ */ __name((_s) => {
|
|
32244
|
+
var _t = _s, { input, onFieldSubmit } = _t, rest = __objRest(_t, ["input", "onFieldSubmit"]);
|
|
32229
32245
|
return /* @__PURE__ */ React$1.createElement(
|
|
32230
32246
|
Uploader,
|
|
32231
32247
|
__spreadProps(__spreadValues({
|
|
@@ -32237,8 +32253,8 @@ const renderFileUpload = /* @__PURE__ */ __name((_q) => {
|
|
|
32237
32253
|
})
|
|
32238
32254
|
);
|
|
32239
32255
|
}, "renderFileUpload");
|
|
32240
|
-
const RenderBlueprintTextarea = /* @__PURE__ */ __name((
|
|
32241
|
-
var
|
|
32256
|
+
const RenderBlueprintTextarea = /* @__PURE__ */ __name((_u) => {
|
|
32257
|
+
var _v = _u, {
|
|
32242
32258
|
input,
|
|
32243
32259
|
onFieldSubmit,
|
|
32244
32260
|
onKeyDown,
|
|
@@ -32246,7 +32262,7 @@ const RenderBlueprintTextarea = /* @__PURE__ */ __name((_s) => {
|
|
|
32246
32262
|
inputClassName,
|
|
32247
32263
|
clickToEdit,
|
|
32248
32264
|
disabled
|
|
32249
|
-
} =
|
|
32265
|
+
} = _v, rest = __objRest(_v, [
|
|
32250
32266
|
"input",
|
|
32251
32267
|
"onFieldSubmit",
|
|
32252
32268
|
"onKeyDown",
|
|
@@ -32446,15 +32462,15 @@ const renderReactSelect = /* @__PURE__ */ __name((props) => {
|
|
|
32446
32462
|
const renderSuggest_old = /* @__PURE__ */ __name((props) => {
|
|
32447
32463
|
return renderReactSelect(__spreadProps(__spreadValues({}, props), { asSuggest: true }));
|
|
32448
32464
|
}, "renderSuggest_old");
|
|
32449
|
-
const renderSuggest = /* @__PURE__ */ __name((
|
|
32450
|
-
var
|
|
32465
|
+
const renderSuggest = /* @__PURE__ */ __name((_w) => {
|
|
32466
|
+
var _x = _w, {
|
|
32451
32467
|
async,
|
|
32452
32468
|
input: { value, onChange },
|
|
32453
32469
|
hideValue,
|
|
32454
32470
|
intent,
|
|
32455
32471
|
options,
|
|
32456
32472
|
onFieldSubmit
|
|
32457
|
-
} =
|
|
32473
|
+
} = _x, rest = __objRest(_x, [
|
|
32458
32474
|
"async",
|
|
32459
32475
|
"input",
|
|
32460
32476
|
"hideValue",
|
|
@@ -32479,12 +32495,12 @@ const renderSuggest = /* @__PURE__ */ __name((_u) => {
|
|
|
32479
32495
|
});
|
|
32480
32496
|
return /* @__PURE__ */ React$1.createElement(TgSuggest, __spreadValues({}, propsToUse));
|
|
32481
32497
|
}, "renderSuggest");
|
|
32482
|
-
const BPSelect = /* @__PURE__ */ __name((
|
|
32483
|
-
var
|
|
32498
|
+
const BPSelect = /* @__PURE__ */ __name((_y) => {
|
|
32499
|
+
var _z = _y, { value, onChange } = _z, rest = __objRest(_z, ["value", "onChange"]);
|
|
32484
32500
|
return renderSelect(__spreadProps(__spreadValues({}, rest), { input: { onChange, value } }));
|
|
32485
32501
|
}, "BPSelect");
|
|
32486
|
-
const renderSelect = /* @__PURE__ */ __name((
|
|
32487
|
-
var
|
|
32502
|
+
const renderSelect = /* @__PURE__ */ __name((_A) => {
|
|
32503
|
+
var _B = _A, {
|
|
32488
32504
|
input: { value, onChange },
|
|
32489
32505
|
hideValue,
|
|
32490
32506
|
className,
|
|
@@ -32494,7 +32510,7 @@ const renderSelect = /* @__PURE__ */ __name((_y) => {
|
|
|
32494
32510
|
hidePlaceHolder,
|
|
32495
32511
|
minimal,
|
|
32496
32512
|
disabled
|
|
32497
|
-
} =
|
|
32513
|
+
} = _B, rest = __objRest(_B, [
|
|
32498
32514
|
"input",
|
|
32499
32515
|
"hideValue",
|
|
32500
32516
|
"className",
|
|
@@ -32562,15 +32578,15 @@ const renderSelect = /* @__PURE__ */ __name((_y) => {
|
|
|
32562
32578
|
)
|
|
32563
32579
|
);
|
|
32564
32580
|
}, "renderSelect");
|
|
32565
|
-
const renderBlueprintNumericInput = /* @__PURE__ */ __name((
|
|
32566
|
-
var
|
|
32581
|
+
const renderBlueprintNumericInput = /* @__PURE__ */ __name((_C) => {
|
|
32582
|
+
var _D = _C, {
|
|
32567
32583
|
input,
|
|
32568
32584
|
hideValue,
|
|
32569
32585
|
intent,
|
|
32570
32586
|
inputClassName,
|
|
32571
32587
|
onFieldSubmit,
|
|
32572
32588
|
onAnyNumberChange
|
|
32573
|
-
} =
|
|
32589
|
+
} = _D, rest = __objRest(_D, [
|
|
32574
32590
|
"input",
|
|
32575
32591
|
"hideValue",
|
|
32576
32592
|
"intent",
|
|
@@ -32615,12 +32631,12 @@ const renderBlueprintNumericInput = /* @__PURE__ */ __name((_A) => {
|
|
|
32615
32631
|
})
|
|
32616
32632
|
);
|
|
32617
32633
|
}, "renderBlueprintNumericInput");
|
|
32618
|
-
const renderBlueprintRadioGroup = /* @__PURE__ */ __name((
|
|
32619
|
-
var
|
|
32634
|
+
const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_E) => {
|
|
32635
|
+
var _F = _E, {
|
|
32620
32636
|
input,
|
|
32621
32637
|
options,
|
|
32622
32638
|
onFieldSubmit
|
|
32623
|
-
} =
|
|
32639
|
+
} = _F, rest = __objRest(_F, [
|
|
32624
32640
|
"input",
|
|
32625
32641
|
"options",
|
|
32626
32642
|
"onFieldSubmit"
|
|
@@ -32659,8 +32675,8 @@ const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_C) => {
|
|
|
32659
32675
|
})
|
|
32660
32676
|
);
|
|
32661
32677
|
}, "renderBlueprintRadioGroup");
|
|
32662
|
-
const RenderReactColorPicker = /* @__PURE__ */ __name((
|
|
32663
|
-
var
|
|
32678
|
+
const RenderReactColorPicker = /* @__PURE__ */ __name((_G) => {
|
|
32679
|
+
var _H = _G, { input, onFieldSubmit } = _H, rest = __objRest(_H, ["input", "onFieldSubmit"]);
|
|
32664
32680
|
return /* @__PURE__ */ React$1.createElement(
|
|
32665
32681
|
core.Popover,
|
|
32666
32682
|
{
|
|
@@ -52385,8 +52401,8 @@ const itemSizeEstimators = {
|
|
|
52385
52401
|
normal: () => 33.34,
|
|
52386
52402
|
comfortable: () => 41.34
|
|
52387
52403
|
};
|
|
52388
|
-
const DataTable = /* @__PURE__ */ __name((
|
|
52389
|
-
var
|
|
52404
|
+
const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
52405
|
+
var _J = _I, {
|
|
52390
52406
|
controlled_pageSize,
|
|
52391
52407
|
formName = "tgDataTable",
|
|
52392
52408
|
history,
|
|
@@ -52400,7 +52416,7 @@ const DataTable = /* @__PURE__ */ __name((_G) => {
|
|
|
52400
52416
|
tableParams: _tableParams,
|
|
52401
52417
|
anyTouched,
|
|
52402
52418
|
blur
|
|
52403
|
-
} =
|
|
52419
|
+
} = _J, ownProps = __objRest(_J, [
|
|
52404
52420
|
"controlled_pageSize",
|
|
52405
52421
|
"formName",
|
|
52406
52422
|
"history",
|
|
@@ -52580,8 +52596,8 @@ const DataTable = /* @__PURE__ */ __name((_G) => {
|
|
|
52580
52596
|
props = __spreadValues(__spreadValues({}, props), tableParams);
|
|
52581
52597
|
const queryParams = React$1.useMemo(() => {
|
|
52582
52598
|
if (!isTableParamsConnected) {
|
|
52583
|
-
const additionalFilterToUse = typeof props.additionalFilter === "function" ? props.additionalFilter
|
|
52584
|
-
const additionalOrFilterToUse = typeof props.additionalOrFilter === "function" ? props.additionalOrFilter
|
|
52599
|
+
const additionalFilterToUse = typeof props.additionalFilter === "function" ? props.additionalFilter : () => props.additionalFilter;
|
|
52600
|
+
const additionalOrFilterToUse = typeof props.additionalOrFilter === "function" ? props.additionalOrFilter : () => props.additionalOrFilter;
|
|
52585
52601
|
return getQueryParams({
|
|
52586
52602
|
doNotCoercePageSize,
|
|
52587
52603
|
currentParams,
|
|
@@ -68422,14 +68438,14 @@ function BlueprintError({ error }) {
|
|
|
68422
68438
|
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
68439
|
}
|
|
68424
68440
|
__name(BlueprintError, "BlueprintError");
|
|
68425
|
-
function DropdownButton(
|
|
68426
|
-
var
|
|
68441
|
+
function DropdownButton(_K) {
|
|
68442
|
+
var _L = _K, {
|
|
68427
68443
|
disabled,
|
|
68428
68444
|
menu,
|
|
68429
68445
|
noRightIcon,
|
|
68430
68446
|
popoverProps,
|
|
68431
68447
|
className
|
|
68432
|
-
} =
|
|
68448
|
+
} = _L, rest = __objRest(_L, [
|
|
68433
68449
|
"disabled",
|
|
68434
68450
|
"menu",
|
|
68435
68451
|
"noRightIcon",
|
|
@@ -68613,8 +68629,8 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
|
|
|
68613
68629
|
[controlled_pageSize, defaultsToUse, pageSize, history == null ? void 0 : history.location]
|
|
68614
68630
|
);
|
|
68615
68631
|
const queryParams = React$1.useMemo(() => {
|
|
68616
|
-
const additionalFilterToUse = typeof additionalFilter === "function" ? additionalFilter
|
|
68617
|
-
const additionalOrFilterToUse = typeof additionalOrFilter === "function" ? additionalOrFilter
|
|
68632
|
+
const additionalFilterToUse = typeof additionalFilter === "function" ? additionalFilter : () => additionalFilter;
|
|
68633
|
+
const additionalOrFilterToUse = typeof additionalOrFilter === "function" ? additionalOrFilter : () => additionalOrFilter;
|
|
68618
68634
|
return getQueryParams({
|
|
68619
68635
|
doNotCoercePageSize,
|
|
68620
68636
|
currentParams,
|
|
@@ -72110,14 +72126,14 @@ const EnhancedMenuItem = compose(
|
|
|
72110
72126
|
}
|
|
72111
72127
|
}),
|
|
72112
72128
|
branch(({ navTo }) => navTo, withRouter)
|
|
72113
|
-
)(function(
|
|
72114
|
-
var
|
|
72129
|
+
)(function(_M) {
|
|
72130
|
+
var _N = _M, {
|
|
72115
72131
|
navTo,
|
|
72116
72132
|
context,
|
|
72117
72133
|
staticContext,
|
|
72118
72134
|
didMount,
|
|
72119
72135
|
willUnmount
|
|
72120
|
-
} =
|
|
72136
|
+
} = _N, props = __objRest(_N, [
|
|
72121
72137
|
"navTo",
|
|
72122
72138
|
"context",
|
|
72123
72139
|
"staticContext",
|
|
@@ -72242,7 +72258,7 @@ const DynamicMenuItem = /* @__PURE__ */ __name(({
|
|
|
72242
72258
|
labelElement: item.hotkey && /* @__PURE__ */ React$1.createElement(core.KeyCombo, { minimal: true, combo: item.hotkey }),
|
|
72243
72259
|
text: item.text
|
|
72244
72260
|
}),
|
|
72245
|
-
item.submenu ? item.submenu.filter(ident).map((def2, index2) => /* @__PURE__ */ React$1.createElement(DynamicMenuItem,
|
|
72261
|
+
item.submenu ? item.submenu.filter(ident).map((def2, index2) => /* @__PURE__ */ React$1.createElement(DynamicMenuItem, __spreadValues({ key: index2 }, { def: def2, enhancers, context }))) : void 0
|
|
72246
72262
|
);
|
|
72247
72263
|
}
|
|
72248
72264
|
if (item.disabled && typeof item.disabled === "string") {
|
|
@@ -72255,7 +72271,7 @@ const DynamicMenuItem = /* @__PURE__ */ __name(({
|
|
|
72255
72271
|
}, "DynamicMenuItem");
|
|
72256
72272
|
const createDynamicMenu = /* @__PURE__ */ __name((menuDef, enhancers, context) => {
|
|
72257
72273
|
if (menuDef instanceof Array) {
|
|
72258
|
-
return menuDef.map((def, index2) => /* @__PURE__ */ React$1.createElement(DynamicMenuItem,
|
|
72274
|
+
return menuDef.map((def, index2) => /* @__PURE__ */ React$1.createElement(DynamicMenuItem, __spreadValues({ key: index2 }, { def, enhancers, context })));
|
|
72259
72275
|
} else {
|
|
72260
72276
|
return /* @__PURE__ */ React$1.createElement(DynamicMenuItem, __spreadValues({}, { def: menuDef, enhancers, context }));
|
|
72261
72277
|
}
|
|
@@ -72264,7 +72280,7 @@ const createDynamicBarMenu = /* @__PURE__ */ __name((topMenuDef, enhancers, cont
|
|
|
72264
72280
|
return topMenuDef.map((topLevelItem) => {
|
|
72265
72281
|
const def = __spreadValues({}, topLevelItem);
|
|
72266
72282
|
if (def.submenu) {
|
|
72267
|
-
def.submenu = def.submenu.map((subdef, index2) => /* @__PURE__ */ React$1.createElement(DynamicMenuItem,
|
|
72283
|
+
def.submenu = def.submenu.map((subdef, index2) => /* @__PURE__ */ React$1.createElement(DynamicMenuItem, __spreadValues({ key: index2, def: subdef }, { enhancers, context })));
|
|
72268
72284
|
}
|
|
72269
72285
|
return def;
|
|
72270
72286
|
});
|
|
@@ -72341,8 +72357,8 @@ function doesSearchValMatchText(searchVal, justText) {
|
|
|
72341
72357
|
);
|
|
72342
72358
|
}
|
|
72343
72359
|
__name(doesSearchValMatchText, "doesSearchValMatchText");
|
|
72344
|
-
const MenuItemWithTooltip = /* @__PURE__ */ __name((
|
|
72345
|
-
var
|
|
72360
|
+
const MenuItemWithTooltip = /* @__PURE__ */ __name((_O) => {
|
|
72361
|
+
var _P = _O, { tooltip } = _P, rest = __objRest(_P, ["tooltip"]);
|
|
72346
72362
|
let out = /* @__PURE__ */ React$1.createElement(core.MenuItem, __spreadValues({}, rest));
|
|
72347
72363
|
if (tooltip) {
|
|
72348
72364
|
out = /* @__PURE__ */ React$1.createElement(core.Tooltip, { content: tooltip }, out);
|
|
@@ -74754,6 +74770,7 @@ exports.EditableTextField = EditableTextField;
|
|
|
74754
74770
|
exports.EnhancedMenuItem = EnhancedMenuItem;
|
|
74755
74771
|
exports.FileUploadField = FileUploadField;
|
|
74756
74772
|
exports.FillWindow = FillWindow;
|
|
74773
|
+
exports.FormSeparator = FormSeparator;
|
|
74757
74774
|
exports.HotkeysDialog = HotkeysDialog;
|
|
74758
74775
|
exports.InfoHelper = InfoHelper;
|
|
74759
74776
|
exports.InputField = InputField;
|
package/index.d.ts
CHANGED