@uniformdev/mesh-sdk-react 19.147.0 → 19.147.1-alpha.10
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/dist/index.d.mts +25 -5
- package/dist/index.d.ts +25 -5
- package/dist/index.esm.js +170 -50
- package/dist/index.js +167 -47
- package/dist/index.mjs +170 -50
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -4205,6 +4205,7 @@ var input = css21`
|
|
|
4205
4205
|
var inputCompact = css21`
|
|
4206
4206
|
border: 1px solid var(--white);
|
|
4207
4207
|
padding-block: var(--spacing-sm);
|
|
4208
|
+
min-height: 39px;
|
|
4208
4209
|
font-size: var(--fs-sm);
|
|
4209
4210
|
`;
|
|
4210
4211
|
var inputDisabled = css21`
|
|
@@ -4214,14 +4215,14 @@ var inputDisabled = css21`
|
|
|
4214
4215
|
var placeholderCaption = css21`
|
|
4215
4216
|
position: absolute;
|
|
4216
4217
|
color: var(--gray-400);
|
|
4217
|
-
inset: var(--spacing-base)
|
|
4218
|
+
inset: 12px var(--spacing-base) 12px var(--spacing-sm);
|
|
4218
4219
|
overflow: hidden;
|
|
4219
4220
|
text-overflow: ellipsis;
|
|
4220
4221
|
white-space: nowrap;
|
|
4221
4222
|
pointer-events: none;
|
|
4222
4223
|
`;
|
|
4223
4224
|
var placeholderCompact = css21`
|
|
4224
|
-
inset: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-
|
|
4225
|
+
inset: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-sm);
|
|
4225
4226
|
`;
|
|
4226
4227
|
|
|
4227
4228
|
// src/components/Variables/styles/ParameterVariables.styles.ts
|
|
@@ -4872,6 +4873,7 @@ function InputVariables(props) {
|
|
|
4872
4873
|
align: "center",
|
|
4873
4874
|
gap: "xs",
|
|
4874
4875
|
css: css24`
|
|
4876
|
+
position: relative;
|
|
4875
4877
|
& > div:first-child {
|
|
4876
4878
|
flex-grow: 1;
|
|
4877
4879
|
}
|
|
@@ -5002,7 +5004,8 @@ function ParameterConnectionIndicator({
|
|
|
5002
5004
|
value,
|
|
5003
5005
|
menuOptions,
|
|
5004
5006
|
disabled,
|
|
5005
|
-
menuTooltip = "Insert variable"
|
|
5007
|
+
menuTooltip = "Insert variable",
|
|
5008
|
+
overrideMenuButtonParentMargin
|
|
5006
5009
|
}) {
|
|
5007
5010
|
const hasVariablesInValue = useMemo11(() => {
|
|
5008
5011
|
let result = false;
|
|
@@ -5023,13 +5026,21 @@ function ParameterConnectionIndicator({
|
|
|
5023
5026
|
placement: "bottom-start",
|
|
5024
5027
|
withoutPortal: true,
|
|
5025
5028
|
menuTrigger: /* @__PURE__ */ jsx41(
|
|
5026
|
-
"
|
|
5029
|
+
"div",
|
|
5027
5030
|
{
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5031
|
+
css: overrideMenuButtonParentMargin ? {
|
|
5032
|
+
marginBottom: overrideMenuButtonParentMargin
|
|
5033
|
+
} : void 0,
|
|
5034
|
+
children: /* @__PURE__ */ jsx41(
|
|
5035
|
+
"button",
|
|
5036
|
+
{
|
|
5037
|
+
title: menuTooltip,
|
|
5038
|
+
"aria-pressed": hasVariablesInValue,
|
|
5039
|
+
css: [menuBtn, variableBindButton],
|
|
5040
|
+
type: "button",
|
|
5041
|
+
children: /* @__PURE__ */ jsx41(CgUsbC2, { size: "1.4rem" })
|
|
5042
|
+
}
|
|
5043
|
+
)
|
|
5033
5044
|
}
|
|
5034
5045
|
),
|
|
5035
5046
|
menuLabel: menuTooltip,
|
|
@@ -5691,6 +5702,7 @@ function RequestBody() {
|
|
|
5691
5702
|
// src/components/Request/RequestHeaders.tsx
|
|
5692
5703
|
import {
|
|
5693
5704
|
Input as Input3,
|
|
5705
|
+
InputToggle,
|
|
5694
5706
|
Table as Table2,
|
|
5695
5707
|
TableBody as TableBody2,
|
|
5696
5708
|
TableCellData as TableCellData2,
|
|
@@ -5772,8 +5784,11 @@ function RequestHeaders({
|
|
|
5772
5784
|
}
|
|
5773
5785
|
) : null }),
|
|
5774
5786
|
addOmitIfEmpty ? /* @__PURE__ */ jsx50(TableCellData2, { width: "50%", children: header.key ? /* @__PURE__ */ jsx50(
|
|
5775
|
-
|
|
5787
|
+
InputToggle,
|
|
5776
5788
|
{
|
|
5789
|
+
label: "Omit if empty",
|
|
5790
|
+
showLabel: false,
|
|
5791
|
+
name: "omitIfEmpty",
|
|
5777
5792
|
type: "checkbox",
|
|
5778
5793
|
checked: header.omitIfEmpty,
|
|
5779
5794
|
"data-testid": "header-omitifempty",
|
|
@@ -5818,6 +5833,7 @@ function RequestMethodSelect(props) {
|
|
|
5818
5833
|
// src/components/Request/RequestParameters.tsx
|
|
5819
5834
|
import {
|
|
5820
5835
|
Input as Input4,
|
|
5836
|
+
InputToggle as InputToggle2,
|
|
5821
5837
|
Table as Table3,
|
|
5822
5838
|
TableBody as TableBody3,
|
|
5823
5839
|
TableCellData as TableCellData3,
|
|
@@ -5909,8 +5925,11 @@ function RequestParameters({
|
|
|
5909
5925
|
}
|
|
5910
5926
|
) : null }),
|
|
5911
5927
|
addOmitIfEmpty ? /* @__PURE__ */ jsx52(TableCellData3, { width: "50%", children: parameter.key ? /* @__PURE__ */ jsx52(
|
|
5912
|
-
|
|
5928
|
+
InputToggle2,
|
|
5913
5929
|
{
|
|
5930
|
+
label: "Omit if empty",
|
|
5931
|
+
showLabel: false,
|
|
5932
|
+
name: "omitIfEmpty",
|
|
5914
5933
|
type: "checkbox",
|
|
5915
5934
|
checked: parameter.omitIfEmpty,
|
|
5916
5935
|
"data-testid": "parameter-omitifempty",
|
|
@@ -7330,7 +7349,7 @@ var NUMBER_OPERATORS = [
|
|
|
7330
7349
|
];
|
|
7331
7350
|
var DATE_OPERATORS = [
|
|
7332
7351
|
{
|
|
7333
|
-
label: "is
|
|
7352
|
+
label: "is",
|
|
7334
7353
|
value: "eq",
|
|
7335
7354
|
editorType: "date"
|
|
7336
7355
|
},
|
|
@@ -7365,7 +7384,7 @@ var DATE_OPERATORS = [
|
|
|
7365
7384
|
editorType: "empty"
|
|
7366
7385
|
},
|
|
7367
7386
|
{
|
|
7368
|
-
label: "is not
|
|
7387
|
+
label: "is not",
|
|
7369
7388
|
value: "neq",
|
|
7370
7389
|
editorType: "date"
|
|
7371
7390
|
},
|
|
@@ -7377,7 +7396,12 @@ var DATE_OPERATORS = [
|
|
|
7377
7396
|
];
|
|
7378
7397
|
var TEXTBOX_OPERATORS = [
|
|
7379
7398
|
{
|
|
7380
|
-
label: "
|
|
7399
|
+
label: "contains...",
|
|
7400
|
+
value: "match",
|
|
7401
|
+
editorType: "text"
|
|
7402
|
+
},
|
|
7403
|
+
{
|
|
7404
|
+
label: "is",
|
|
7381
7405
|
value: "eq",
|
|
7382
7406
|
editorType: "text"
|
|
7383
7407
|
},
|
|
@@ -7386,18 +7410,13 @@ var TEXTBOX_OPERATORS = [
|
|
|
7386
7410
|
value: "ndef",
|
|
7387
7411
|
editorType: "empty"
|
|
7388
7412
|
},
|
|
7389
|
-
{
|
|
7390
|
-
label: "contains...",
|
|
7391
|
-
value: "match",
|
|
7392
|
-
editorType: "text"
|
|
7393
|
-
},
|
|
7394
7413
|
{
|
|
7395
7414
|
label: "starts with...",
|
|
7396
7415
|
value: "starts",
|
|
7397
7416
|
editorType: "text"
|
|
7398
7417
|
},
|
|
7399
7418
|
{
|
|
7400
|
-
label: "is not
|
|
7419
|
+
label: "is not",
|
|
7401
7420
|
value: "neq",
|
|
7402
7421
|
editorType: "text"
|
|
7403
7422
|
},
|
|
@@ -7409,13 +7428,13 @@ var TEXTBOX_OPERATORS = [
|
|
|
7409
7428
|
];
|
|
7410
7429
|
var USER_OPERATORS = [
|
|
7411
7430
|
{
|
|
7412
|
-
label: "
|
|
7413
|
-
value: "
|
|
7431
|
+
label: "contains...",
|
|
7432
|
+
value: "match",
|
|
7414
7433
|
editorType: "text"
|
|
7415
7434
|
},
|
|
7416
7435
|
{
|
|
7417
|
-
label: "
|
|
7418
|
-
value: "
|
|
7436
|
+
label: "is",
|
|
7437
|
+
value: "eq",
|
|
7419
7438
|
editorType: "text"
|
|
7420
7439
|
},
|
|
7421
7440
|
{
|
|
@@ -7424,14 +7443,14 @@ var USER_OPERATORS = [
|
|
|
7424
7443
|
editorType: "text"
|
|
7425
7444
|
},
|
|
7426
7445
|
{
|
|
7427
|
-
label: "is not
|
|
7446
|
+
label: "is not",
|
|
7428
7447
|
value: "neq",
|
|
7429
7448
|
editorType: "text"
|
|
7430
7449
|
}
|
|
7431
7450
|
];
|
|
7432
7451
|
var SYSTEM_DATE_OPERATORS = [
|
|
7433
7452
|
{
|
|
7434
|
-
label: "is
|
|
7453
|
+
label: "is",
|
|
7435
7454
|
value: "sys-date-eq",
|
|
7436
7455
|
editorType: "date"
|
|
7437
7456
|
},
|
|
@@ -7461,22 +7480,22 @@ var SYSTEM_DATE_OPERATORS = [
|
|
|
7461
7480
|
editorType: "date"
|
|
7462
7481
|
},
|
|
7463
7482
|
{
|
|
7464
|
-
label: "is not
|
|
7483
|
+
label: "is not",
|
|
7465
7484
|
value: "sys-date-neq",
|
|
7466
7485
|
editorType: "date"
|
|
7467
7486
|
}
|
|
7468
7487
|
];
|
|
7469
7488
|
var RICHTEXT_OPERATORS = [
|
|
7470
|
-
{
|
|
7471
|
-
label: "is empty",
|
|
7472
|
-
value: "ndef",
|
|
7473
|
-
editorType: "empty"
|
|
7474
|
-
},
|
|
7475
7489
|
{
|
|
7476
7490
|
label: "contains...",
|
|
7477
7491
|
value: "match",
|
|
7478
7492
|
editorType: "text"
|
|
7479
7493
|
},
|
|
7494
|
+
{
|
|
7495
|
+
label: "is empty",
|
|
7496
|
+
value: "ndef",
|
|
7497
|
+
editorType: "empty"
|
|
7498
|
+
},
|
|
7480
7499
|
{
|
|
7481
7500
|
label: "starts with...",
|
|
7482
7501
|
value: "starts",
|
|
@@ -7490,19 +7509,19 @@ var RICHTEXT_OPERATORS = [
|
|
|
7490
7509
|
];
|
|
7491
7510
|
var CHECKBOX_OPERATORS = [
|
|
7492
7511
|
{
|
|
7493
|
-
label: "is checked
|
|
7512
|
+
label: "is checked",
|
|
7494
7513
|
value: "def",
|
|
7495
7514
|
editorType: "empty"
|
|
7496
7515
|
},
|
|
7497
7516
|
{
|
|
7498
|
-
label: "is not checked
|
|
7517
|
+
label: "is not checked",
|
|
7499
7518
|
value: "ndef",
|
|
7500
7519
|
editorType: "empty"
|
|
7501
7520
|
}
|
|
7502
7521
|
];
|
|
7503
7522
|
var SYSTEM_FIELD_OPERATORS = [
|
|
7504
7523
|
{
|
|
7505
|
-
label: "is
|
|
7524
|
+
label: "is",
|
|
7506
7525
|
value: "eq",
|
|
7507
7526
|
editorType: "singleChoice"
|
|
7508
7527
|
},
|
|
@@ -7512,7 +7531,7 @@ var SYSTEM_FIELD_OPERATORS = [
|
|
|
7512
7531
|
editorType: "multiChoice"
|
|
7513
7532
|
},
|
|
7514
7533
|
{
|
|
7515
|
-
label: "is not
|
|
7534
|
+
label: "is not",
|
|
7516
7535
|
value: "neq",
|
|
7517
7536
|
editorType: "singleChoice"
|
|
7518
7537
|
},
|
|
@@ -7524,7 +7543,7 @@ var SYSTEM_FIELD_OPERATORS = [
|
|
|
7524
7543
|
];
|
|
7525
7544
|
var PUBLISH_STATUS_FIELD_OPERATORS = [
|
|
7526
7545
|
{
|
|
7527
|
-
label: "is
|
|
7546
|
+
label: "is",
|
|
7528
7547
|
value: "eq",
|
|
7529
7548
|
editorType: "statusSingleChoice"
|
|
7530
7549
|
},
|
|
@@ -7534,7 +7553,7 @@ var PUBLISH_STATUS_FIELD_OPERATORS = [
|
|
|
7534
7553
|
editorType: "statusMultiChoice"
|
|
7535
7554
|
},
|
|
7536
7555
|
{
|
|
7537
|
-
label: "is not
|
|
7556
|
+
label: "is not",
|
|
7538
7557
|
value: "neq",
|
|
7539
7558
|
editorType: "statusSingleChoice"
|
|
7540
7559
|
},
|
|
@@ -7544,6 +7563,80 @@ var PUBLISH_STATUS_FIELD_OPERATORS = [
|
|
|
7544
7563
|
editorType: "statusMultiChoice"
|
|
7545
7564
|
}
|
|
7546
7565
|
];
|
|
7566
|
+
var SELECT_OPERATORS = [
|
|
7567
|
+
{
|
|
7568
|
+
label: "is",
|
|
7569
|
+
value: "eq",
|
|
7570
|
+
editorType: "singleChoice"
|
|
7571
|
+
},
|
|
7572
|
+
{
|
|
7573
|
+
label: "is any of...",
|
|
7574
|
+
value: "in",
|
|
7575
|
+
editorType: "multiChoice"
|
|
7576
|
+
},
|
|
7577
|
+
{
|
|
7578
|
+
label: "is empty",
|
|
7579
|
+
value: "ndef",
|
|
7580
|
+
editorType: "empty"
|
|
7581
|
+
},
|
|
7582
|
+
{
|
|
7583
|
+
label: "contains...",
|
|
7584
|
+
value: "match",
|
|
7585
|
+
editorType: "text"
|
|
7586
|
+
},
|
|
7587
|
+
{
|
|
7588
|
+
label: "starts with...",
|
|
7589
|
+
value: "starts",
|
|
7590
|
+
editorType: "text"
|
|
7591
|
+
},
|
|
7592
|
+
{
|
|
7593
|
+
label: "is not",
|
|
7594
|
+
value: "neq",
|
|
7595
|
+
editorType: "singleChoice"
|
|
7596
|
+
},
|
|
7597
|
+
{
|
|
7598
|
+
label: "is none of...",
|
|
7599
|
+
value: "nin",
|
|
7600
|
+
editorType: "multiChoice"
|
|
7601
|
+
},
|
|
7602
|
+
{
|
|
7603
|
+
label: "is not empty",
|
|
7604
|
+
value: "def",
|
|
7605
|
+
editorType: "empty"
|
|
7606
|
+
}
|
|
7607
|
+
];
|
|
7608
|
+
var MULTI_SELECT_OPERATORS = [
|
|
7609
|
+
{
|
|
7610
|
+
label: "is",
|
|
7611
|
+
value: "eq",
|
|
7612
|
+
editorType: "singleChoice"
|
|
7613
|
+
},
|
|
7614
|
+
{
|
|
7615
|
+
label: "is any of...",
|
|
7616
|
+
value: "in",
|
|
7617
|
+
editorType: "multiChoice"
|
|
7618
|
+
},
|
|
7619
|
+
{
|
|
7620
|
+
label: "is empty",
|
|
7621
|
+
value: "ndef",
|
|
7622
|
+
editorType: "empty"
|
|
7623
|
+
},
|
|
7624
|
+
{
|
|
7625
|
+
label: "is not",
|
|
7626
|
+
value: "neq",
|
|
7627
|
+
editorType: "singleChoice"
|
|
7628
|
+
},
|
|
7629
|
+
{
|
|
7630
|
+
label: "is none of...",
|
|
7631
|
+
value: "nin",
|
|
7632
|
+
editorType: "multiChoice"
|
|
7633
|
+
},
|
|
7634
|
+
{
|
|
7635
|
+
label: "is not empty",
|
|
7636
|
+
value: "def",
|
|
7637
|
+
editorType: "empty"
|
|
7638
|
+
}
|
|
7639
|
+
];
|
|
7547
7640
|
|
|
7548
7641
|
// src/components/SearchAndFilter/FilterButton.tsx
|
|
7549
7642
|
import { Counter as Counter2, Icon as Icon6 } from "@uniformdev/design-system";
|
|
@@ -8214,7 +8307,8 @@ var DateRangeEditor = ({
|
|
|
8214
8307
|
onChange: (e) => setMinDateValue(e.currentTarget.value),
|
|
8215
8308
|
"aria-invalid": !error ? false : true,
|
|
8216
8309
|
disabled,
|
|
8217
|
-
readOnly
|
|
8310
|
+
readOnly,
|
|
8311
|
+
"data-testid": "value-low"
|
|
8218
8312
|
}
|
|
8219
8313
|
),
|
|
8220
8314
|
/* @__PURE__ */ jsx70(
|
|
@@ -8227,7 +8321,8 @@ var DateRangeEditor = ({
|
|
|
8227
8321
|
onChange: (e) => setMaxDateValue(e.currentTarget.value),
|
|
8228
8322
|
"aria-invalid": !error ? false : true,
|
|
8229
8323
|
disabled,
|
|
8230
|
-
readOnly
|
|
8324
|
+
readOnly,
|
|
8325
|
+
"data-testid": "value-high"
|
|
8231
8326
|
}
|
|
8232
8327
|
)
|
|
8233
8328
|
] }),
|
|
@@ -8342,7 +8437,8 @@ var SearchAndFilterContext = createContext6({
|
|
|
8342
8437
|
filterOptions: [],
|
|
8343
8438
|
validFilterQuery: [],
|
|
8344
8439
|
filterMapper: {},
|
|
8345
|
-
totalResults: 0
|
|
8440
|
+
totalResults: 0,
|
|
8441
|
+
allowBindingSearchTerm: false
|
|
8346
8442
|
});
|
|
8347
8443
|
var SearchAndFilterProvider = ({
|
|
8348
8444
|
filters,
|
|
@@ -8354,7 +8450,8 @@ var SearchAndFilterProvider = ({
|
|
|
8354
8450
|
resetFilterValues = [{ field: "", operator: "", value: "" }],
|
|
8355
8451
|
totalResults,
|
|
8356
8452
|
filterMapper: filterMapper2 = filterMapper,
|
|
8357
|
-
children
|
|
8453
|
+
children,
|
|
8454
|
+
allowBindingSearchTerm
|
|
8358
8455
|
}) => {
|
|
8359
8456
|
const [searchTerm, setSearchTerm] = useState20(defaultSearchTerm);
|
|
8360
8457
|
const deferredSearchTerm = useDeferredValue2(searchTerm);
|
|
@@ -8419,7 +8516,8 @@ var SearchAndFilterProvider = ({
|
|
|
8419
8516
|
filterOptions,
|
|
8420
8517
|
validFilterQuery,
|
|
8421
8518
|
totalResults,
|
|
8422
|
-
filterMapper: filterMapper2
|
|
8519
|
+
filterMapper: filterMapper2,
|
|
8520
|
+
allowBindingSearchTerm
|
|
8423
8521
|
},
|
|
8424
8522
|
children: /* @__PURE__ */ jsx71(VerticalRhythm5, { children })
|
|
8425
8523
|
}
|
|
@@ -8436,7 +8534,14 @@ var FilterControls = ({
|
|
|
8436
8534
|
children,
|
|
8437
8535
|
hideSearchInput
|
|
8438
8536
|
}) => {
|
|
8439
|
-
const {
|
|
8537
|
+
const {
|
|
8538
|
+
setFilterVisibility,
|
|
8539
|
+
filterVisibility,
|
|
8540
|
+
setSearchTerm,
|
|
8541
|
+
validFilterQuery,
|
|
8542
|
+
searchTerm,
|
|
8543
|
+
allowBindingSearchTerm
|
|
8544
|
+
} = useSearchAndFilter();
|
|
8440
8545
|
const editorRef = useRef16(null);
|
|
8441
8546
|
const hasVariableInSearchTerm = hasReferencedVariables(searchTerm);
|
|
8442
8547
|
const [idToResetInputVariables, setIdToResetInputVariables] = useState21("data-resource-search-term-input");
|
|
@@ -8478,6 +8583,7 @@ var FilterControls = ({
|
|
|
8478
8583
|
editorRef,
|
|
8479
8584
|
value: localeSearchTerm,
|
|
8480
8585
|
onChange: (value) => setLocaleSearchTerm(value != null ? value : ""),
|
|
8586
|
+
disableVariables: !allowBindingSearchTerm,
|
|
8481
8587
|
inputWhenNoVariables: /* @__PURE__ */ jsx72(
|
|
8482
8588
|
InputKeywordSearch2,
|
|
8483
8589
|
{
|
|
@@ -8807,7 +8913,7 @@ var SearchAndFilterResultContainer = ({
|
|
|
8807
8913
|
onHandleClear,
|
|
8808
8914
|
hideClearButton
|
|
8809
8915
|
}) => {
|
|
8810
|
-
const { searchTerm,
|
|
8916
|
+
const { searchTerm, totalResults, filters, handleResetFilters, setSearchTerm } = useSearchAndFilter();
|
|
8811
8917
|
const automateCalloutTitle = () => {
|
|
8812
8918
|
if (searchTerm && !filters.length) {
|
|
8813
8919
|
return "No search results found";
|
|
@@ -8820,6 +8926,14 @@ var SearchAndFilterResultContainer = ({
|
|
|
8820
8926
|
if (totalResults && totalResults > 0) {
|
|
8821
8927
|
return null;
|
|
8822
8928
|
}
|
|
8929
|
+
const handleClearSearch = () => {
|
|
8930
|
+
setSearchTerm("");
|
|
8931
|
+
if (onHandleClear) {
|
|
8932
|
+
onHandleClear();
|
|
8933
|
+
} else {
|
|
8934
|
+
handleResetFilters();
|
|
8935
|
+
}
|
|
8936
|
+
};
|
|
8823
8937
|
return /* @__PURE__ */ jsxs47(Fragment16, { children: [
|
|
8824
8938
|
/* @__PURE__ */ jsxs47(HorizontalRhythm9, { children: [
|
|
8825
8939
|
/* @__PURE__ */ jsxs47("span", { children: [
|
|
@@ -8827,11 +8941,11 @@ var SearchAndFilterResultContainer = ({
|
|
|
8827
8941
|
" results ",
|
|
8828
8942
|
searchTerm ? `for "${searchTerm}"` : null
|
|
8829
8943
|
] }),
|
|
8830
|
-
!searchTerm || hideClearButton ? null : /* @__PURE__ */ jsx75(Button6, { buttonType: "ghostDestructive", size: "zero", onClick:
|
|
8944
|
+
!searchTerm || hideClearButton ? null : /* @__PURE__ */ jsx75(Button6, { buttonType: "ghostDestructive", size: "zero", onClick: handleClearSearch, children: clearButtonLabel })
|
|
8831
8945
|
] }),
|
|
8832
8946
|
totalResults === 0 ? /* @__PURE__ */ jsxs47(Callout6, { title: calloutTitle != null ? calloutTitle : automateCalloutTitle(), type: "note", children: [
|
|
8833
8947
|
calloutText ? /* @__PURE__ */ jsx75(Paragraph, { children: calloutText }) : null,
|
|
8834
|
-
hideClearButton ? null : /* @__PURE__ */ jsx75(Button6, { buttonType: "tertiaryOutline", size: "xs", onClick:
|
|
8948
|
+
hideClearButton ? null : /* @__PURE__ */ jsx75(Button6, { buttonType: "tertiaryOutline", size: "xs", onClick: handleClearSearch, children: buttonText != null ? buttonText : "Clear search" })
|
|
8835
8949
|
] }) : null
|
|
8836
8950
|
] });
|
|
8837
8951
|
};
|
|
@@ -8851,6 +8965,7 @@ var SearchAndFilter = ({
|
|
|
8851
8965
|
defaultSearchTerm,
|
|
8852
8966
|
onSearchChange,
|
|
8853
8967
|
totalResults,
|
|
8968
|
+
allowBindingSearchTerm = false,
|
|
8854
8969
|
resetFilterValues = []
|
|
8855
8970
|
}) => {
|
|
8856
8971
|
return /* @__PURE__ */ jsx76(
|
|
@@ -8865,6 +8980,7 @@ var SearchAndFilter = ({
|
|
|
8865
8980
|
totalResults,
|
|
8866
8981
|
resetFilterValues,
|
|
8867
8982
|
filterMapper: filterMapper2,
|
|
8983
|
+
allowBindingSearchTerm,
|
|
8868
8984
|
children: /* @__PURE__ */ jsxs48(VerticalRhythm7, { "data-testid": "search-and-filter", children: [
|
|
8869
8985
|
/* @__PURE__ */ jsxs48("div", { css: SearchAndFilterOutterControlWrapper(viewSwitchControls ? "1fr auto" : "1fr"), children: [
|
|
8870
8986
|
/* @__PURE__ */ jsx76(
|
|
@@ -9328,7 +9444,7 @@ import {
|
|
|
9328
9444
|
InputComboBox as InputComboBox4,
|
|
9329
9445
|
InputKeywordSearch as InputKeywordSearch4,
|
|
9330
9446
|
InputSelect as InputSelect9,
|
|
9331
|
-
InputToggle,
|
|
9447
|
+
InputToggle as InputToggle3,
|
|
9332
9448
|
Label,
|
|
9333
9449
|
LoadingIndicator as LoadingIndicator5,
|
|
9334
9450
|
LoadingOverlay as LoadingOverlay2,
|
|
@@ -9352,7 +9468,8 @@ import {
|
|
|
9352
9468
|
ScrollableListItem,
|
|
9353
9469
|
Switch,
|
|
9354
9470
|
Textarea,
|
|
9355
|
-
Theme as Theme3
|
|
9471
|
+
Theme as Theme3,
|
|
9472
|
+
utilityColors
|
|
9356
9473
|
} from "@uniformdev/design-system";
|
|
9357
9474
|
export * from "@uniformdev/mesh-sdk";
|
|
9358
9475
|
export {
|
|
@@ -9394,12 +9511,13 @@ export {
|
|
|
9394
9511
|
InputComboBox4 as InputComboBox,
|
|
9395
9512
|
InputKeywordSearch4 as InputKeywordSearch,
|
|
9396
9513
|
InputSelect9 as InputSelect,
|
|
9397
|
-
InputToggle,
|
|
9514
|
+
InputToggle3 as InputToggle,
|
|
9398
9515
|
InputVariables,
|
|
9399
9516
|
Label,
|
|
9400
9517
|
LinkButton,
|
|
9401
9518
|
LoadingIndicator5 as LoadingIndicator,
|
|
9402
9519
|
LoadingOverlay2 as LoadingOverlay,
|
|
9520
|
+
MULTI_SELECT_OPERATORS,
|
|
9403
9521
|
Menu4 as Menu,
|
|
9404
9522
|
MenuItem3 as MenuItem,
|
|
9405
9523
|
MeshApp,
|
|
@@ -9454,6 +9572,7 @@ export {
|
|
|
9454
9572
|
RequestUrl,
|
|
9455
9573
|
RequestUrlInput,
|
|
9456
9574
|
ResolvableLoadingValue,
|
|
9575
|
+
SELECT_OPERATORS,
|
|
9457
9576
|
SYSTEM_DATE_OPERATORS,
|
|
9458
9577
|
SYSTEM_FIELD_OPERATORS,
|
|
9459
9578
|
ScrollableList2 as ScrollableList,
|
|
@@ -9569,6 +9688,7 @@ export {
|
|
|
9569
9688
|
useVariableEditor,
|
|
9570
9689
|
useVariables,
|
|
9571
9690
|
useVariablesMenu,
|
|
9691
|
+
utilityColors,
|
|
9572
9692
|
variableDefaultTextValue,
|
|
9573
9693
|
variablePrefix,
|
|
9574
9694
|
variableSuffix,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "19.147.
|
|
3
|
+
"version": "19.147.1-alpha.10+6efbd31548",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"@lexical/react": "^0.12.0",
|
|
50
50
|
"@lexical/selection": "^0.12.0",
|
|
51
51
|
"@lexical/utils": "^0.12.0",
|
|
52
|
-
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/
|
|
53
|
-
"@uniformdev/canvas": "19.147.
|
|
54
|
-
"@uniformdev/design-system": "19.147.
|
|
55
|
-
"@uniformdev/mesh-sdk": "19.147.
|
|
52
|
+
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.2.1/react-icons-all-files-5.2.1.tgz",
|
|
53
|
+
"@uniformdev/canvas": "19.147.1-alpha.10+6efbd31548",
|
|
54
|
+
"@uniformdev/design-system": "19.147.1-alpha.10+6efbd31548",
|
|
55
|
+
"@uniformdev/mesh-sdk": "19.147.1-alpha.10+6efbd31548",
|
|
56
56
|
"dequal": "^2.0.3",
|
|
57
57
|
"lexical": "^0.12.0",
|
|
58
58
|
"mitt": "^3.0.0",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "6efbd31548d4190f950f425f10ec9398de1aacb2"
|
|
90
90
|
}
|