@uniformdev/mesh-sdk-react 19.147.1-alpha.6 → 19.147.1-alpha.8
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 +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.esm.js +48 -25
- package/dist/index.js +43 -22
- package/dist/index.mjs +48 -25
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -10,7 +10,7 @@ export * from '@uniformdev/mesh-sdk';
|
|
|
10
10
|
import { DataVariableDefinition, DataResourceVariables, DataType } from '@uniformdev/canvas';
|
|
11
11
|
import { Emitter } from 'mitt';
|
|
12
12
|
import { BadgeThemeProps, InputSelectProps, IconType } from '@uniformdev/design-system';
|
|
13
|
-
export { AddListButton, AddListButtonProps, Button, ButtonProps, Callout, CalloutProps, DrawerContent, Heading, HeadingProps, Input, InputComboBox, InputComboBoxProps, InputKeywordSearch, InputProps, InputSelect, InputToggle, InputToggleProps, Label, LabelProps, LoadingIndicator, LoadingOverlay, Menu, MenuItem, MenuItemProps, MenuProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, Switch, SwitchProps, Textarea, TextareaProps, Theme, ThemeProps, useParameterShell } from '@uniformdev/design-system';
|
|
13
|
+
export { AddListButton, AddListButtonProps, Button, ButtonProps, Callout, CalloutProps, DrawerContent, Heading, HeadingProps, Input, InputComboBox, InputComboBoxProps, InputKeywordSearch, InputProps, InputSelect, InputToggle, InputToggleProps, Label, LabelProps, LoadingIndicator, LoadingOverlay, Menu, MenuItem, MenuItemProps, MenuProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, Switch, SwitchProps, Textarea, TextareaProps, Theme, ThemeProps, useParameterShell, utilityColors } from '@uniformdev/design-system';
|
|
14
14
|
import * as lexical from 'lexical';
|
|
15
15
|
import { SerializedEditorState, SerializedLexicalNode, Spread, DecoratorNode, NodeKey, LexicalNode, LexicalEditor, EditorState } from 'lexical';
|
|
16
16
|
import { MenuOption } from '@lexical/react/LexicalTypeaheadMenuPlugin';
|
|
@@ -1980,6 +1980,8 @@ type SearchAndFilterProviderProps = {
|
|
|
1980
1980
|
filterMapper?: FilterMapper;
|
|
1981
1981
|
/** sets child components giving access to useSearchAndFilter context */
|
|
1982
1982
|
children: ReactNode;
|
|
1983
|
+
/** Allow to bind dynamic inputs to the search term */
|
|
1984
|
+
allowBindingSearchTerm?: boolean;
|
|
1983
1985
|
};
|
|
1984
1986
|
type SearchAndFilterContextProps = {
|
|
1985
1987
|
/** the search term value */
|
|
@@ -2008,13 +2010,15 @@ type SearchAndFilterContextProps = {
|
|
|
2008
2010
|
filterMapper?: FilterMapper;
|
|
2009
2011
|
/** the total number of results */
|
|
2010
2012
|
totalResults?: number;
|
|
2013
|
+
/** Allow to bind dynamic inputs to the search term */
|
|
2014
|
+
allowBindingSearchTerm?: boolean;
|
|
2011
2015
|
};
|
|
2012
2016
|
declare const SearchAndFilterContext: React$1.Context<SearchAndFilterContextProps>;
|
|
2013
2017
|
/**
|
|
2014
2018
|
* @deprecated beta - Search and filter provider
|
|
2015
2019
|
* @example <SearchAndFilterProvider filters={filters} filterOptions={filterOptions} onSearchChange={onSearchChange} onChange={onChange}>Children</SearchAndFilterProvider>
|
|
2016
2020
|
* */
|
|
2017
|
-
declare const SearchAndFilterProvider: ({ filters, filterOptions, filterVisible, defaultSearchTerm, onSearchChange, onChange, resetFilterValues, totalResults, filterMapper, children, }: SearchAndFilterProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
2021
|
+
declare const SearchAndFilterProvider: ({ filters, filterOptions, filterVisible, defaultSearchTerm, onSearchChange, onChange, resetFilterValues, totalResults, filterMapper, children, allowBindingSearchTerm, }: SearchAndFilterProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
2018
2022
|
/** @deprecated beta - Search and filter hook
|
|
2019
2023
|
* @example const { searchTerm, setSearchTerm, filterVisibility, setFilterVisibility, filters, setFilters, handleAddFilter, handleResetFilters, handleDeleteFilter, filterOptions, validFilterQuery } = useSearchAndFilter();
|
|
2020
2024
|
*/
|
|
@@ -2045,6 +2049,8 @@ declare const useSearchAndFilter: () => {
|
|
|
2045
2049
|
filterMapper?: FilterMapper | undefined;
|
|
2046
2050
|
/** the total number of results */
|
|
2047
2051
|
totalResults?: number | undefined;
|
|
2052
|
+
/** Allow to bind dynamic inputs to the search term */
|
|
2053
|
+
allowBindingSearchTerm?: boolean | undefined;
|
|
2048
2054
|
};
|
|
2049
2055
|
|
|
2050
2056
|
type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
|
|
@@ -2075,7 +2081,7 @@ type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
|
|
|
2075
2081
|
* @deprecated beta - Search and filter component
|
|
2076
2082
|
* @example <SearchAndFilter filters={filters} filterOptions={filterOptions} onChange={onChange} onSearchChange={onSearchChange} onSearchReset={onSearchReset} totalResults={totalResults} />
|
|
2077
2083
|
* */
|
|
2078
|
-
declare const SearchAndFilter: ({ filters, filterOptions, filterVisible, filterControls, viewSwitchControls, resultsContainerView, filterMapper, additionalFiltersContainer, onChange, defaultSearchTerm, onSearchChange, totalResults, resetFilterValues, }: SearchAndFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
2084
|
+
declare const SearchAndFilter: ({ filters, filterOptions, filterVisible, filterControls, viewSwitchControls, resultsContainerView, filterMapper, additionalFiltersContainer, onChange, defaultSearchTerm, onSearchChange, totalResults, allowBindingSearchTerm, resetFilterValues, }: SearchAndFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
2079
2085
|
|
|
2080
2086
|
type FilterRowProps = {
|
|
2081
2087
|
/** the index of the filter row */
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export * from '@uniformdev/mesh-sdk';
|
|
|
10
10
|
import { DataVariableDefinition, DataResourceVariables, DataType } from '@uniformdev/canvas';
|
|
11
11
|
import { Emitter } from 'mitt';
|
|
12
12
|
import { BadgeThemeProps, InputSelectProps, IconType } from '@uniformdev/design-system';
|
|
13
|
-
export { AddListButton, AddListButtonProps, Button, ButtonProps, Callout, CalloutProps, DrawerContent, Heading, HeadingProps, Input, InputComboBox, InputComboBoxProps, InputKeywordSearch, InputProps, InputSelect, InputToggle, InputToggleProps, Label, LabelProps, LoadingIndicator, LoadingOverlay, Menu, MenuItem, MenuItemProps, MenuProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, Switch, SwitchProps, Textarea, TextareaProps, Theme, ThemeProps, useParameterShell } from '@uniformdev/design-system';
|
|
13
|
+
export { AddListButton, AddListButtonProps, Button, ButtonProps, Callout, CalloutProps, DrawerContent, Heading, HeadingProps, Input, InputComboBox, InputComboBoxProps, InputKeywordSearch, InputProps, InputSelect, InputToggle, InputToggleProps, Label, LabelProps, LoadingIndicator, LoadingOverlay, Menu, MenuItem, MenuItemProps, MenuProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, Switch, SwitchProps, Textarea, TextareaProps, Theme, ThemeProps, useParameterShell, utilityColors } from '@uniformdev/design-system';
|
|
14
14
|
import * as lexical from 'lexical';
|
|
15
15
|
import { SerializedEditorState, SerializedLexicalNode, Spread, DecoratorNode, NodeKey, LexicalNode, LexicalEditor, EditorState } from 'lexical';
|
|
16
16
|
import { MenuOption } from '@lexical/react/LexicalTypeaheadMenuPlugin';
|
|
@@ -1980,6 +1980,8 @@ type SearchAndFilterProviderProps = {
|
|
|
1980
1980
|
filterMapper?: FilterMapper;
|
|
1981
1981
|
/** sets child components giving access to useSearchAndFilter context */
|
|
1982
1982
|
children: ReactNode;
|
|
1983
|
+
/** Allow to bind dynamic inputs to the search term */
|
|
1984
|
+
allowBindingSearchTerm?: boolean;
|
|
1983
1985
|
};
|
|
1984
1986
|
type SearchAndFilterContextProps = {
|
|
1985
1987
|
/** the search term value */
|
|
@@ -2008,13 +2010,15 @@ type SearchAndFilterContextProps = {
|
|
|
2008
2010
|
filterMapper?: FilterMapper;
|
|
2009
2011
|
/** the total number of results */
|
|
2010
2012
|
totalResults?: number;
|
|
2013
|
+
/** Allow to bind dynamic inputs to the search term */
|
|
2014
|
+
allowBindingSearchTerm?: boolean;
|
|
2011
2015
|
};
|
|
2012
2016
|
declare const SearchAndFilterContext: React$1.Context<SearchAndFilterContextProps>;
|
|
2013
2017
|
/**
|
|
2014
2018
|
* @deprecated beta - Search and filter provider
|
|
2015
2019
|
* @example <SearchAndFilterProvider filters={filters} filterOptions={filterOptions} onSearchChange={onSearchChange} onChange={onChange}>Children</SearchAndFilterProvider>
|
|
2016
2020
|
* */
|
|
2017
|
-
declare const SearchAndFilterProvider: ({ filters, filterOptions, filterVisible, defaultSearchTerm, onSearchChange, onChange, resetFilterValues, totalResults, filterMapper, children, }: SearchAndFilterProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
2021
|
+
declare const SearchAndFilterProvider: ({ filters, filterOptions, filterVisible, defaultSearchTerm, onSearchChange, onChange, resetFilterValues, totalResults, filterMapper, children, allowBindingSearchTerm, }: SearchAndFilterProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
2018
2022
|
/** @deprecated beta - Search and filter hook
|
|
2019
2023
|
* @example const { searchTerm, setSearchTerm, filterVisibility, setFilterVisibility, filters, setFilters, handleAddFilter, handleResetFilters, handleDeleteFilter, filterOptions, validFilterQuery } = useSearchAndFilter();
|
|
2020
2024
|
*/
|
|
@@ -2045,6 +2049,8 @@ declare const useSearchAndFilter: () => {
|
|
|
2045
2049
|
filterMapper?: FilterMapper | undefined;
|
|
2046
2050
|
/** the total number of results */
|
|
2047
2051
|
totalResults?: number | undefined;
|
|
2052
|
+
/** Allow to bind dynamic inputs to the search term */
|
|
2053
|
+
allowBindingSearchTerm?: boolean | undefined;
|
|
2048
2054
|
};
|
|
2049
2055
|
|
|
2050
2056
|
type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
|
|
@@ -2075,7 +2081,7 @@ type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
|
|
|
2075
2081
|
* @deprecated beta - Search and filter component
|
|
2076
2082
|
* @example <SearchAndFilter filters={filters} filterOptions={filterOptions} onChange={onChange} onSearchChange={onSearchChange} onSearchReset={onSearchReset} totalResults={totalResults} />
|
|
2077
2083
|
* */
|
|
2078
|
-
declare const SearchAndFilter: ({ filters, filterOptions, filterVisible, filterControls, viewSwitchControls, resultsContainerView, filterMapper, additionalFiltersContainer, onChange, defaultSearchTerm, onSearchChange, totalResults, resetFilterValues, }: SearchAndFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
2084
|
+
declare const SearchAndFilter: ({ filters, filterOptions, filterVisible, filterControls, viewSwitchControls, resultsContainerView, filterMapper, additionalFiltersContainer, onChange, defaultSearchTerm, onSearchChange, totalResults, allowBindingSearchTerm, resetFilterValues, }: SearchAndFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
2079
2085
|
|
|
2080
2086
|
type FilterRowProps = {
|
|
2081
2087
|
/** the index of the filter row */
|
package/dist/index.esm.js
CHANGED
|
@@ -5702,6 +5702,7 @@ function RequestBody() {
|
|
|
5702
5702
|
// src/components/Request/RequestHeaders.tsx
|
|
5703
5703
|
import {
|
|
5704
5704
|
Input as Input3,
|
|
5705
|
+
InputToggle,
|
|
5705
5706
|
Table as Table2,
|
|
5706
5707
|
TableBody as TableBody2,
|
|
5707
5708
|
TableCellData as TableCellData2,
|
|
@@ -5783,8 +5784,11 @@ function RequestHeaders({
|
|
|
5783
5784
|
}
|
|
5784
5785
|
) : null }),
|
|
5785
5786
|
addOmitIfEmpty ? /* @__PURE__ */ jsx50(TableCellData2, { width: "50%", children: header.key ? /* @__PURE__ */ jsx50(
|
|
5786
|
-
|
|
5787
|
+
InputToggle,
|
|
5787
5788
|
{
|
|
5789
|
+
label: "Omit if empty",
|
|
5790
|
+
showLabel: false,
|
|
5791
|
+
name: "omitIfEmpty",
|
|
5788
5792
|
type: "checkbox",
|
|
5789
5793
|
checked: header.omitIfEmpty,
|
|
5790
5794
|
"data-testid": "header-omitifempty",
|
|
@@ -5829,6 +5833,7 @@ function RequestMethodSelect(props) {
|
|
|
5829
5833
|
// src/components/Request/RequestParameters.tsx
|
|
5830
5834
|
import {
|
|
5831
5835
|
Input as Input4,
|
|
5836
|
+
InputToggle as InputToggle2,
|
|
5832
5837
|
Table as Table3,
|
|
5833
5838
|
TableBody as TableBody3,
|
|
5834
5839
|
TableCellData as TableCellData3,
|
|
@@ -5920,8 +5925,11 @@ function RequestParameters({
|
|
|
5920
5925
|
}
|
|
5921
5926
|
) : null }),
|
|
5922
5927
|
addOmitIfEmpty ? /* @__PURE__ */ jsx52(TableCellData3, { width: "50%", children: parameter.key ? /* @__PURE__ */ jsx52(
|
|
5923
|
-
|
|
5928
|
+
InputToggle2,
|
|
5924
5929
|
{
|
|
5930
|
+
label: "Omit if empty",
|
|
5931
|
+
showLabel: false,
|
|
5932
|
+
name: "omitIfEmpty",
|
|
5925
5933
|
type: "checkbox",
|
|
5926
5934
|
checked: parameter.omitIfEmpty,
|
|
5927
5935
|
"data-testid": "parameter-omitifempty",
|
|
@@ -7341,7 +7349,7 @@ var NUMBER_OPERATORS = [
|
|
|
7341
7349
|
];
|
|
7342
7350
|
var DATE_OPERATORS = [
|
|
7343
7351
|
{
|
|
7344
|
-
label: "is
|
|
7352
|
+
label: "is",
|
|
7345
7353
|
value: "eq",
|
|
7346
7354
|
editorType: "date"
|
|
7347
7355
|
},
|
|
@@ -7376,7 +7384,7 @@ var DATE_OPERATORS = [
|
|
|
7376
7384
|
editorType: "empty"
|
|
7377
7385
|
},
|
|
7378
7386
|
{
|
|
7379
|
-
label: "is not
|
|
7387
|
+
label: "is not",
|
|
7380
7388
|
value: "neq",
|
|
7381
7389
|
editorType: "date"
|
|
7382
7390
|
},
|
|
@@ -7393,7 +7401,7 @@ var TEXTBOX_OPERATORS = [
|
|
|
7393
7401
|
editorType: "text"
|
|
7394
7402
|
},
|
|
7395
7403
|
{
|
|
7396
|
-
label: "is
|
|
7404
|
+
label: "is",
|
|
7397
7405
|
value: "eq",
|
|
7398
7406
|
editorType: "text"
|
|
7399
7407
|
},
|
|
@@ -7408,7 +7416,7 @@ var TEXTBOX_OPERATORS = [
|
|
|
7408
7416
|
editorType: "text"
|
|
7409
7417
|
},
|
|
7410
7418
|
{
|
|
7411
|
-
label: "is not
|
|
7419
|
+
label: "is not",
|
|
7412
7420
|
value: "neq",
|
|
7413
7421
|
editorType: "text"
|
|
7414
7422
|
},
|
|
@@ -7425,7 +7433,7 @@ var USER_OPERATORS = [
|
|
|
7425
7433
|
editorType: "text"
|
|
7426
7434
|
},
|
|
7427
7435
|
{
|
|
7428
|
-
label: "is
|
|
7436
|
+
label: "is",
|
|
7429
7437
|
value: "eq",
|
|
7430
7438
|
editorType: "text"
|
|
7431
7439
|
},
|
|
@@ -7435,14 +7443,14 @@ var USER_OPERATORS = [
|
|
|
7435
7443
|
editorType: "text"
|
|
7436
7444
|
},
|
|
7437
7445
|
{
|
|
7438
|
-
label: "is not
|
|
7446
|
+
label: "is not",
|
|
7439
7447
|
value: "neq",
|
|
7440
7448
|
editorType: "text"
|
|
7441
7449
|
}
|
|
7442
7450
|
];
|
|
7443
7451
|
var SYSTEM_DATE_OPERATORS = [
|
|
7444
7452
|
{
|
|
7445
|
-
label: "is
|
|
7453
|
+
label: "is",
|
|
7446
7454
|
value: "sys-date-eq",
|
|
7447
7455
|
editorType: "date"
|
|
7448
7456
|
},
|
|
@@ -7472,7 +7480,7 @@ var SYSTEM_DATE_OPERATORS = [
|
|
|
7472
7480
|
editorType: "date"
|
|
7473
7481
|
},
|
|
7474
7482
|
{
|
|
7475
|
-
label: "is not
|
|
7483
|
+
label: "is not",
|
|
7476
7484
|
value: "sys-date-neq",
|
|
7477
7485
|
editorType: "date"
|
|
7478
7486
|
}
|
|
@@ -7501,19 +7509,19 @@ var RICHTEXT_OPERATORS = [
|
|
|
7501
7509
|
];
|
|
7502
7510
|
var CHECKBOX_OPERATORS = [
|
|
7503
7511
|
{
|
|
7504
|
-
label: "is checked
|
|
7512
|
+
label: "is checked",
|
|
7505
7513
|
value: "def",
|
|
7506
7514
|
editorType: "empty"
|
|
7507
7515
|
},
|
|
7508
7516
|
{
|
|
7509
|
-
label: "is not checked
|
|
7517
|
+
label: "is not checked",
|
|
7510
7518
|
value: "ndef",
|
|
7511
7519
|
editorType: "empty"
|
|
7512
7520
|
}
|
|
7513
7521
|
];
|
|
7514
7522
|
var SYSTEM_FIELD_OPERATORS = [
|
|
7515
7523
|
{
|
|
7516
|
-
label: "is
|
|
7524
|
+
label: "is",
|
|
7517
7525
|
value: "eq",
|
|
7518
7526
|
editorType: "singleChoice"
|
|
7519
7527
|
},
|
|
@@ -7523,7 +7531,7 @@ var SYSTEM_FIELD_OPERATORS = [
|
|
|
7523
7531
|
editorType: "multiChoice"
|
|
7524
7532
|
},
|
|
7525
7533
|
{
|
|
7526
|
-
label: "is not
|
|
7534
|
+
label: "is not",
|
|
7527
7535
|
value: "neq",
|
|
7528
7536
|
editorType: "singleChoice"
|
|
7529
7537
|
},
|
|
@@ -7535,7 +7543,7 @@ var SYSTEM_FIELD_OPERATORS = [
|
|
|
7535
7543
|
];
|
|
7536
7544
|
var PUBLISH_STATUS_FIELD_OPERATORS = [
|
|
7537
7545
|
{
|
|
7538
|
-
label: "is
|
|
7546
|
+
label: "is",
|
|
7539
7547
|
value: "eq",
|
|
7540
7548
|
editorType: "statusSingleChoice"
|
|
7541
7549
|
},
|
|
@@ -7545,7 +7553,7 @@ var PUBLISH_STATUS_FIELD_OPERATORS = [
|
|
|
7545
7553
|
editorType: "statusMultiChoice"
|
|
7546
7554
|
},
|
|
7547
7555
|
{
|
|
7548
|
-
label: "is not
|
|
7556
|
+
label: "is not",
|
|
7549
7557
|
value: "neq",
|
|
7550
7558
|
editorType: "statusSingleChoice"
|
|
7551
7559
|
},
|
|
@@ -7557,7 +7565,7 @@ var PUBLISH_STATUS_FIELD_OPERATORS = [
|
|
|
7557
7565
|
];
|
|
7558
7566
|
var SELECT_OPERATORS = [
|
|
7559
7567
|
{
|
|
7560
|
-
label: "is
|
|
7568
|
+
label: "is",
|
|
7561
7569
|
value: "eq",
|
|
7562
7570
|
editorType: "singleChoice"
|
|
7563
7571
|
},
|
|
@@ -7582,7 +7590,7 @@ var SELECT_OPERATORS = [
|
|
|
7582
7590
|
editorType: "text"
|
|
7583
7591
|
},
|
|
7584
7592
|
{
|
|
7585
|
-
label: "is not
|
|
7593
|
+
label: "is not",
|
|
7586
7594
|
value: "neq",
|
|
7587
7595
|
editorType: "singleChoice"
|
|
7588
7596
|
},
|
|
@@ -8397,7 +8405,8 @@ var SearchAndFilterContext = createContext6({
|
|
|
8397
8405
|
filterOptions: [],
|
|
8398
8406
|
validFilterQuery: [],
|
|
8399
8407
|
filterMapper: {},
|
|
8400
|
-
totalResults: 0
|
|
8408
|
+
totalResults: 0,
|
|
8409
|
+
allowBindingSearchTerm: false
|
|
8401
8410
|
});
|
|
8402
8411
|
var SearchAndFilterProvider = ({
|
|
8403
8412
|
filters,
|
|
@@ -8409,7 +8418,8 @@ var SearchAndFilterProvider = ({
|
|
|
8409
8418
|
resetFilterValues = [{ field: "", operator: "", value: "" }],
|
|
8410
8419
|
totalResults,
|
|
8411
8420
|
filterMapper: filterMapper2 = filterMapper,
|
|
8412
|
-
children
|
|
8421
|
+
children,
|
|
8422
|
+
allowBindingSearchTerm
|
|
8413
8423
|
}) => {
|
|
8414
8424
|
const [searchTerm, setSearchTerm] = useState20(defaultSearchTerm);
|
|
8415
8425
|
const deferredSearchTerm = useDeferredValue2(searchTerm);
|
|
@@ -8474,7 +8484,8 @@ var SearchAndFilterProvider = ({
|
|
|
8474
8484
|
filterOptions,
|
|
8475
8485
|
validFilterQuery,
|
|
8476
8486
|
totalResults,
|
|
8477
|
-
filterMapper: filterMapper2
|
|
8487
|
+
filterMapper: filterMapper2,
|
|
8488
|
+
allowBindingSearchTerm
|
|
8478
8489
|
},
|
|
8479
8490
|
children: /* @__PURE__ */ jsx71(VerticalRhythm5, { children })
|
|
8480
8491
|
}
|
|
@@ -8491,7 +8502,14 @@ var FilterControls = ({
|
|
|
8491
8502
|
children,
|
|
8492
8503
|
hideSearchInput
|
|
8493
8504
|
}) => {
|
|
8494
|
-
const {
|
|
8505
|
+
const {
|
|
8506
|
+
setFilterVisibility,
|
|
8507
|
+
filterVisibility,
|
|
8508
|
+
setSearchTerm,
|
|
8509
|
+
validFilterQuery,
|
|
8510
|
+
searchTerm,
|
|
8511
|
+
allowBindingSearchTerm
|
|
8512
|
+
} = useSearchAndFilter();
|
|
8495
8513
|
const editorRef = useRef16(null);
|
|
8496
8514
|
const hasVariableInSearchTerm = hasReferencedVariables(searchTerm);
|
|
8497
8515
|
const [idToResetInputVariables, setIdToResetInputVariables] = useState21("data-resource-search-term-input");
|
|
@@ -8533,6 +8551,7 @@ var FilterControls = ({
|
|
|
8533
8551
|
editorRef,
|
|
8534
8552
|
value: localeSearchTerm,
|
|
8535
8553
|
onChange: (value) => setLocaleSearchTerm(value != null ? value : ""),
|
|
8554
|
+
disableVariables: !allowBindingSearchTerm,
|
|
8536
8555
|
inputWhenNoVariables: /* @__PURE__ */ jsx72(
|
|
8537
8556
|
InputKeywordSearch2,
|
|
8538
8557
|
{
|
|
@@ -8914,6 +8933,7 @@ var SearchAndFilter = ({
|
|
|
8914
8933
|
defaultSearchTerm,
|
|
8915
8934
|
onSearchChange,
|
|
8916
8935
|
totalResults,
|
|
8936
|
+
allowBindingSearchTerm = false,
|
|
8917
8937
|
resetFilterValues = []
|
|
8918
8938
|
}) => {
|
|
8919
8939
|
return /* @__PURE__ */ jsx76(
|
|
@@ -8928,6 +8948,7 @@ var SearchAndFilter = ({
|
|
|
8928
8948
|
totalResults,
|
|
8929
8949
|
resetFilterValues,
|
|
8930
8950
|
filterMapper: filterMapper2,
|
|
8951
|
+
allowBindingSearchTerm,
|
|
8931
8952
|
children: /* @__PURE__ */ jsxs48(VerticalRhythm7, { "data-testid": "search-and-filter", children: [
|
|
8932
8953
|
/* @__PURE__ */ jsxs48("div", { css: SearchAndFilterOutterControlWrapper(viewSwitchControls ? "1fr auto" : "1fr"), children: [
|
|
8933
8954
|
/* @__PURE__ */ jsx76(
|
|
@@ -9391,7 +9412,7 @@ import {
|
|
|
9391
9412
|
InputComboBox as InputComboBox4,
|
|
9392
9413
|
InputKeywordSearch as InputKeywordSearch4,
|
|
9393
9414
|
InputSelect as InputSelect9,
|
|
9394
|
-
InputToggle,
|
|
9415
|
+
InputToggle as InputToggle3,
|
|
9395
9416
|
Label,
|
|
9396
9417
|
LoadingIndicator as LoadingIndicator5,
|
|
9397
9418
|
LoadingOverlay as LoadingOverlay2,
|
|
@@ -9415,7 +9436,8 @@ import {
|
|
|
9415
9436
|
ScrollableListItem,
|
|
9416
9437
|
Switch,
|
|
9417
9438
|
Textarea,
|
|
9418
|
-
Theme as Theme3
|
|
9439
|
+
Theme as Theme3,
|
|
9440
|
+
utilityColors
|
|
9419
9441
|
} from "@uniformdev/design-system";
|
|
9420
9442
|
export * from "@uniformdev/mesh-sdk";
|
|
9421
9443
|
export {
|
|
@@ -9457,7 +9479,7 @@ export {
|
|
|
9457
9479
|
InputComboBox4 as InputComboBox,
|
|
9458
9480
|
InputKeywordSearch4 as InputKeywordSearch,
|
|
9459
9481
|
InputSelect9 as InputSelect,
|
|
9460
|
-
InputToggle,
|
|
9482
|
+
InputToggle3 as InputToggle,
|
|
9461
9483
|
InputVariables,
|
|
9462
9484
|
Label,
|
|
9463
9485
|
LinkButton,
|
|
@@ -9633,6 +9655,7 @@ export {
|
|
|
9633
9655
|
useVariableEditor,
|
|
9634
9656
|
useVariables,
|
|
9635
9657
|
useVariablesMenu,
|
|
9658
|
+
utilityColors,
|
|
9636
9659
|
variableDefaultTextValue,
|
|
9637
9660
|
variablePrefix,
|
|
9638
9661
|
variableSuffix,
|
package/dist/index.js
CHANGED
|
@@ -245,6 +245,7 @@ __export(src_exports, {
|
|
|
245
245
|
useVariableEditor: () => useVariableEditor,
|
|
246
246
|
useVariables: () => useVariables,
|
|
247
247
|
useVariablesMenu: () => useVariablesMenu,
|
|
248
|
+
utilityColors: () => import_design_system53.utilityColors,
|
|
248
249
|
variableDefaultTextValue: () => variableDefaultTextValue,
|
|
249
250
|
variablePrefix: () => variablePrefix,
|
|
250
251
|
variableSuffix: () => variableSuffix,
|
|
@@ -5958,8 +5959,11 @@ function RequestHeaders({
|
|
|
5958
5959
|
}
|
|
5959
5960
|
) : null }),
|
|
5960
5961
|
addOmitIfEmpty ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_design_system28.TableCellData, { width: "50%", children: header.key ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5961
|
-
import_design_system28.
|
|
5962
|
+
import_design_system28.InputToggle,
|
|
5962
5963
|
{
|
|
5964
|
+
label: "Omit if empty",
|
|
5965
|
+
showLabel: false,
|
|
5966
|
+
name: "omitIfEmpty",
|
|
5963
5967
|
type: "checkbox",
|
|
5964
5968
|
checked: header.omitIfEmpty,
|
|
5965
5969
|
"data-testid": "header-omitifempty",
|
|
@@ -6086,8 +6090,11 @@ function RequestParameters({
|
|
|
6086
6090
|
}
|
|
6087
6091
|
) : null }),
|
|
6088
6092
|
addOmitIfEmpty ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_design_system30.TableCellData, { width: "50%", children: parameter.key ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6089
|
-
import_design_system30.
|
|
6093
|
+
import_design_system30.InputToggle,
|
|
6090
6094
|
{
|
|
6095
|
+
label: "Omit if empty",
|
|
6096
|
+
showLabel: false,
|
|
6097
|
+
name: "omitIfEmpty",
|
|
6091
6098
|
type: "checkbox",
|
|
6092
6099
|
checked: parameter.omitIfEmpty,
|
|
6093
6100
|
"data-testid": "parameter-omitifempty",
|
|
@@ -7500,7 +7507,7 @@ var NUMBER_OPERATORS = [
|
|
|
7500
7507
|
];
|
|
7501
7508
|
var DATE_OPERATORS = [
|
|
7502
7509
|
{
|
|
7503
|
-
label: "is
|
|
7510
|
+
label: "is",
|
|
7504
7511
|
value: "eq",
|
|
7505
7512
|
editorType: "date"
|
|
7506
7513
|
},
|
|
@@ -7535,7 +7542,7 @@ var DATE_OPERATORS = [
|
|
|
7535
7542
|
editorType: "empty"
|
|
7536
7543
|
},
|
|
7537
7544
|
{
|
|
7538
|
-
label: "is not
|
|
7545
|
+
label: "is not",
|
|
7539
7546
|
value: "neq",
|
|
7540
7547
|
editorType: "date"
|
|
7541
7548
|
},
|
|
@@ -7552,7 +7559,7 @@ var TEXTBOX_OPERATORS = [
|
|
|
7552
7559
|
editorType: "text"
|
|
7553
7560
|
},
|
|
7554
7561
|
{
|
|
7555
|
-
label: "is
|
|
7562
|
+
label: "is",
|
|
7556
7563
|
value: "eq",
|
|
7557
7564
|
editorType: "text"
|
|
7558
7565
|
},
|
|
@@ -7567,7 +7574,7 @@ var TEXTBOX_OPERATORS = [
|
|
|
7567
7574
|
editorType: "text"
|
|
7568
7575
|
},
|
|
7569
7576
|
{
|
|
7570
|
-
label: "is not
|
|
7577
|
+
label: "is not",
|
|
7571
7578
|
value: "neq",
|
|
7572
7579
|
editorType: "text"
|
|
7573
7580
|
},
|
|
@@ -7584,7 +7591,7 @@ var USER_OPERATORS = [
|
|
|
7584
7591
|
editorType: "text"
|
|
7585
7592
|
},
|
|
7586
7593
|
{
|
|
7587
|
-
label: "is
|
|
7594
|
+
label: "is",
|
|
7588
7595
|
value: "eq",
|
|
7589
7596
|
editorType: "text"
|
|
7590
7597
|
},
|
|
@@ -7594,14 +7601,14 @@ var USER_OPERATORS = [
|
|
|
7594
7601
|
editorType: "text"
|
|
7595
7602
|
},
|
|
7596
7603
|
{
|
|
7597
|
-
label: "is not
|
|
7604
|
+
label: "is not",
|
|
7598
7605
|
value: "neq",
|
|
7599
7606
|
editorType: "text"
|
|
7600
7607
|
}
|
|
7601
7608
|
];
|
|
7602
7609
|
var SYSTEM_DATE_OPERATORS = [
|
|
7603
7610
|
{
|
|
7604
|
-
label: "is
|
|
7611
|
+
label: "is",
|
|
7605
7612
|
value: "sys-date-eq",
|
|
7606
7613
|
editorType: "date"
|
|
7607
7614
|
},
|
|
@@ -7631,7 +7638,7 @@ var SYSTEM_DATE_OPERATORS = [
|
|
|
7631
7638
|
editorType: "date"
|
|
7632
7639
|
},
|
|
7633
7640
|
{
|
|
7634
|
-
label: "is not
|
|
7641
|
+
label: "is not",
|
|
7635
7642
|
value: "sys-date-neq",
|
|
7636
7643
|
editorType: "date"
|
|
7637
7644
|
}
|
|
@@ -7660,19 +7667,19 @@ var RICHTEXT_OPERATORS = [
|
|
|
7660
7667
|
];
|
|
7661
7668
|
var CHECKBOX_OPERATORS = [
|
|
7662
7669
|
{
|
|
7663
|
-
label: "is checked
|
|
7670
|
+
label: "is checked",
|
|
7664
7671
|
value: "def",
|
|
7665
7672
|
editorType: "empty"
|
|
7666
7673
|
},
|
|
7667
7674
|
{
|
|
7668
|
-
label: "is not checked
|
|
7675
|
+
label: "is not checked",
|
|
7669
7676
|
value: "ndef",
|
|
7670
7677
|
editorType: "empty"
|
|
7671
7678
|
}
|
|
7672
7679
|
];
|
|
7673
7680
|
var SYSTEM_FIELD_OPERATORS = [
|
|
7674
7681
|
{
|
|
7675
|
-
label: "is
|
|
7682
|
+
label: "is",
|
|
7676
7683
|
value: "eq",
|
|
7677
7684
|
editorType: "singleChoice"
|
|
7678
7685
|
},
|
|
@@ -7682,7 +7689,7 @@ var SYSTEM_FIELD_OPERATORS = [
|
|
|
7682
7689
|
editorType: "multiChoice"
|
|
7683
7690
|
},
|
|
7684
7691
|
{
|
|
7685
|
-
label: "is not
|
|
7692
|
+
label: "is not",
|
|
7686
7693
|
value: "neq",
|
|
7687
7694
|
editorType: "singleChoice"
|
|
7688
7695
|
},
|
|
@@ -7694,7 +7701,7 @@ var SYSTEM_FIELD_OPERATORS = [
|
|
|
7694
7701
|
];
|
|
7695
7702
|
var PUBLISH_STATUS_FIELD_OPERATORS = [
|
|
7696
7703
|
{
|
|
7697
|
-
label: "is
|
|
7704
|
+
label: "is",
|
|
7698
7705
|
value: "eq",
|
|
7699
7706
|
editorType: "statusSingleChoice"
|
|
7700
7707
|
},
|
|
@@ -7704,7 +7711,7 @@ var PUBLISH_STATUS_FIELD_OPERATORS = [
|
|
|
7704
7711
|
editorType: "statusMultiChoice"
|
|
7705
7712
|
},
|
|
7706
7713
|
{
|
|
7707
|
-
label: "is not
|
|
7714
|
+
label: "is not",
|
|
7708
7715
|
value: "neq",
|
|
7709
7716
|
editorType: "statusSingleChoice"
|
|
7710
7717
|
},
|
|
@@ -7716,7 +7723,7 @@ var PUBLISH_STATUS_FIELD_OPERATORS = [
|
|
|
7716
7723
|
];
|
|
7717
7724
|
var SELECT_OPERATORS = [
|
|
7718
7725
|
{
|
|
7719
|
-
label: "is
|
|
7726
|
+
label: "is",
|
|
7720
7727
|
value: "eq",
|
|
7721
7728
|
editorType: "singleChoice"
|
|
7722
7729
|
},
|
|
@@ -7741,7 +7748,7 @@ var SELECT_OPERATORS = [
|
|
|
7741
7748
|
editorType: "text"
|
|
7742
7749
|
},
|
|
7743
7750
|
{
|
|
7744
|
-
label: "is not
|
|
7751
|
+
label: "is not",
|
|
7745
7752
|
value: "neq",
|
|
7746
7753
|
editorType: "singleChoice"
|
|
7747
7754
|
},
|
|
@@ -8548,7 +8555,8 @@ var SearchAndFilterContext = (0, import_react78.createContext)({
|
|
|
8548
8555
|
filterOptions: [],
|
|
8549
8556
|
validFilterQuery: [],
|
|
8550
8557
|
filterMapper: {},
|
|
8551
|
-
totalResults: 0
|
|
8558
|
+
totalResults: 0,
|
|
8559
|
+
allowBindingSearchTerm: false
|
|
8552
8560
|
});
|
|
8553
8561
|
var SearchAndFilterProvider = ({
|
|
8554
8562
|
filters,
|
|
@@ -8560,7 +8568,8 @@ var SearchAndFilterProvider = ({
|
|
|
8560
8568
|
resetFilterValues = [{ field: "", operator: "", value: "" }],
|
|
8561
8569
|
totalResults,
|
|
8562
8570
|
filterMapper: filterMapper2 = filterMapper,
|
|
8563
|
-
children
|
|
8571
|
+
children,
|
|
8572
|
+
allowBindingSearchTerm
|
|
8564
8573
|
}) => {
|
|
8565
8574
|
const [searchTerm, setSearchTerm] = (0, import_react78.useState)(defaultSearchTerm);
|
|
8566
8575
|
const deferredSearchTerm = (0, import_react78.useDeferredValue)(searchTerm);
|
|
@@ -8625,7 +8634,8 @@ var SearchAndFilterProvider = ({
|
|
|
8625
8634
|
filterOptions,
|
|
8626
8635
|
validFilterQuery,
|
|
8627
8636
|
totalResults,
|
|
8628
|
-
filterMapper: filterMapper2
|
|
8637
|
+
filterMapper: filterMapper2,
|
|
8638
|
+
allowBindingSearchTerm
|
|
8629
8639
|
},
|
|
8630
8640
|
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_design_system44.VerticalRhythm, { children })
|
|
8631
8641
|
}
|
|
@@ -8642,7 +8652,14 @@ var FilterControls = ({
|
|
|
8642
8652
|
children,
|
|
8643
8653
|
hideSearchInput
|
|
8644
8654
|
}) => {
|
|
8645
|
-
const {
|
|
8655
|
+
const {
|
|
8656
|
+
setFilterVisibility,
|
|
8657
|
+
filterVisibility,
|
|
8658
|
+
setSearchTerm,
|
|
8659
|
+
validFilterQuery,
|
|
8660
|
+
searchTerm,
|
|
8661
|
+
allowBindingSearchTerm
|
|
8662
|
+
} = useSearchAndFilter();
|
|
8646
8663
|
const editorRef = (0, import_react79.useRef)(null);
|
|
8647
8664
|
const hasVariableInSearchTerm = hasReferencedVariables(searchTerm);
|
|
8648
8665
|
const [idToResetInputVariables, setIdToResetInputVariables] = (0, import_react79.useState)("data-resource-search-term-input");
|
|
@@ -8684,6 +8701,7 @@ var FilterControls = ({
|
|
|
8684
8701
|
editorRef,
|
|
8685
8702
|
value: localeSearchTerm,
|
|
8686
8703
|
onChange: (value) => setLocaleSearchTerm(value != null ? value : ""),
|
|
8704
|
+
disableVariables: !allowBindingSearchTerm,
|
|
8687
8705
|
inputWhenNoVariables: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
8688
8706
|
import_design_system45.InputKeywordSearch,
|
|
8689
8707
|
{
|
|
@@ -9065,6 +9083,7 @@ var SearchAndFilter = ({
|
|
|
9065
9083
|
defaultSearchTerm,
|
|
9066
9084
|
onSearchChange,
|
|
9067
9085
|
totalResults,
|
|
9086
|
+
allowBindingSearchTerm = false,
|
|
9068
9087
|
resetFilterValues = []
|
|
9069
9088
|
}) => {
|
|
9070
9089
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
@@ -9079,6 +9098,7 @@ var SearchAndFilter = ({
|
|
|
9079
9098
|
totalResults,
|
|
9080
9099
|
resetFilterValues,
|
|
9081
9100
|
filterMapper: filterMapper2,
|
|
9101
|
+
allowBindingSearchTerm,
|
|
9082
9102
|
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_design_system49.VerticalRhythm, { "data-testid": "search-and-filter", children: [
|
|
9083
9103
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { css: SearchAndFilterOutterControlWrapper(viewSwitchControls ? "1fr auto" : "1fr"), children: [
|
|
9084
9104
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
@@ -9750,6 +9770,7 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
|
|
|
9750
9770
|
useVariableEditor,
|
|
9751
9771
|
useVariables,
|
|
9752
9772
|
useVariablesMenu,
|
|
9773
|
+
utilityColors,
|
|
9753
9774
|
variableDefaultTextValue,
|
|
9754
9775
|
variablePrefix,
|
|
9755
9776
|
variableSuffix,
|
package/dist/index.mjs
CHANGED
|
@@ -5702,6 +5702,7 @@ function RequestBody() {
|
|
|
5702
5702
|
// src/components/Request/RequestHeaders.tsx
|
|
5703
5703
|
import {
|
|
5704
5704
|
Input as Input3,
|
|
5705
|
+
InputToggle,
|
|
5705
5706
|
Table as Table2,
|
|
5706
5707
|
TableBody as TableBody2,
|
|
5707
5708
|
TableCellData as TableCellData2,
|
|
@@ -5783,8 +5784,11 @@ function RequestHeaders({
|
|
|
5783
5784
|
}
|
|
5784
5785
|
) : null }),
|
|
5785
5786
|
addOmitIfEmpty ? /* @__PURE__ */ jsx50(TableCellData2, { width: "50%", children: header.key ? /* @__PURE__ */ jsx50(
|
|
5786
|
-
|
|
5787
|
+
InputToggle,
|
|
5787
5788
|
{
|
|
5789
|
+
label: "Omit if empty",
|
|
5790
|
+
showLabel: false,
|
|
5791
|
+
name: "omitIfEmpty",
|
|
5788
5792
|
type: "checkbox",
|
|
5789
5793
|
checked: header.omitIfEmpty,
|
|
5790
5794
|
"data-testid": "header-omitifempty",
|
|
@@ -5829,6 +5833,7 @@ function RequestMethodSelect(props) {
|
|
|
5829
5833
|
// src/components/Request/RequestParameters.tsx
|
|
5830
5834
|
import {
|
|
5831
5835
|
Input as Input4,
|
|
5836
|
+
InputToggle as InputToggle2,
|
|
5832
5837
|
Table as Table3,
|
|
5833
5838
|
TableBody as TableBody3,
|
|
5834
5839
|
TableCellData as TableCellData3,
|
|
@@ -5920,8 +5925,11 @@ function RequestParameters({
|
|
|
5920
5925
|
}
|
|
5921
5926
|
) : null }),
|
|
5922
5927
|
addOmitIfEmpty ? /* @__PURE__ */ jsx52(TableCellData3, { width: "50%", children: parameter.key ? /* @__PURE__ */ jsx52(
|
|
5923
|
-
|
|
5928
|
+
InputToggle2,
|
|
5924
5929
|
{
|
|
5930
|
+
label: "Omit if empty",
|
|
5931
|
+
showLabel: false,
|
|
5932
|
+
name: "omitIfEmpty",
|
|
5925
5933
|
type: "checkbox",
|
|
5926
5934
|
checked: parameter.omitIfEmpty,
|
|
5927
5935
|
"data-testid": "parameter-omitifempty",
|
|
@@ -7341,7 +7349,7 @@ var NUMBER_OPERATORS = [
|
|
|
7341
7349
|
];
|
|
7342
7350
|
var DATE_OPERATORS = [
|
|
7343
7351
|
{
|
|
7344
|
-
label: "is
|
|
7352
|
+
label: "is",
|
|
7345
7353
|
value: "eq",
|
|
7346
7354
|
editorType: "date"
|
|
7347
7355
|
},
|
|
@@ -7376,7 +7384,7 @@ var DATE_OPERATORS = [
|
|
|
7376
7384
|
editorType: "empty"
|
|
7377
7385
|
},
|
|
7378
7386
|
{
|
|
7379
|
-
label: "is not
|
|
7387
|
+
label: "is not",
|
|
7380
7388
|
value: "neq",
|
|
7381
7389
|
editorType: "date"
|
|
7382
7390
|
},
|
|
@@ -7393,7 +7401,7 @@ var TEXTBOX_OPERATORS = [
|
|
|
7393
7401
|
editorType: "text"
|
|
7394
7402
|
},
|
|
7395
7403
|
{
|
|
7396
|
-
label: "is
|
|
7404
|
+
label: "is",
|
|
7397
7405
|
value: "eq",
|
|
7398
7406
|
editorType: "text"
|
|
7399
7407
|
},
|
|
@@ -7408,7 +7416,7 @@ var TEXTBOX_OPERATORS = [
|
|
|
7408
7416
|
editorType: "text"
|
|
7409
7417
|
},
|
|
7410
7418
|
{
|
|
7411
|
-
label: "is not
|
|
7419
|
+
label: "is not",
|
|
7412
7420
|
value: "neq",
|
|
7413
7421
|
editorType: "text"
|
|
7414
7422
|
},
|
|
@@ -7425,7 +7433,7 @@ var USER_OPERATORS = [
|
|
|
7425
7433
|
editorType: "text"
|
|
7426
7434
|
},
|
|
7427
7435
|
{
|
|
7428
|
-
label: "is
|
|
7436
|
+
label: "is",
|
|
7429
7437
|
value: "eq",
|
|
7430
7438
|
editorType: "text"
|
|
7431
7439
|
},
|
|
@@ -7435,14 +7443,14 @@ var USER_OPERATORS = [
|
|
|
7435
7443
|
editorType: "text"
|
|
7436
7444
|
},
|
|
7437
7445
|
{
|
|
7438
|
-
label: "is not
|
|
7446
|
+
label: "is not",
|
|
7439
7447
|
value: "neq",
|
|
7440
7448
|
editorType: "text"
|
|
7441
7449
|
}
|
|
7442
7450
|
];
|
|
7443
7451
|
var SYSTEM_DATE_OPERATORS = [
|
|
7444
7452
|
{
|
|
7445
|
-
label: "is
|
|
7453
|
+
label: "is",
|
|
7446
7454
|
value: "sys-date-eq",
|
|
7447
7455
|
editorType: "date"
|
|
7448
7456
|
},
|
|
@@ -7472,7 +7480,7 @@ var SYSTEM_DATE_OPERATORS = [
|
|
|
7472
7480
|
editorType: "date"
|
|
7473
7481
|
},
|
|
7474
7482
|
{
|
|
7475
|
-
label: "is not
|
|
7483
|
+
label: "is not",
|
|
7476
7484
|
value: "sys-date-neq",
|
|
7477
7485
|
editorType: "date"
|
|
7478
7486
|
}
|
|
@@ -7501,19 +7509,19 @@ var RICHTEXT_OPERATORS = [
|
|
|
7501
7509
|
];
|
|
7502
7510
|
var CHECKBOX_OPERATORS = [
|
|
7503
7511
|
{
|
|
7504
|
-
label: "is checked
|
|
7512
|
+
label: "is checked",
|
|
7505
7513
|
value: "def",
|
|
7506
7514
|
editorType: "empty"
|
|
7507
7515
|
},
|
|
7508
7516
|
{
|
|
7509
|
-
label: "is not checked
|
|
7517
|
+
label: "is not checked",
|
|
7510
7518
|
value: "ndef",
|
|
7511
7519
|
editorType: "empty"
|
|
7512
7520
|
}
|
|
7513
7521
|
];
|
|
7514
7522
|
var SYSTEM_FIELD_OPERATORS = [
|
|
7515
7523
|
{
|
|
7516
|
-
label: "is
|
|
7524
|
+
label: "is",
|
|
7517
7525
|
value: "eq",
|
|
7518
7526
|
editorType: "singleChoice"
|
|
7519
7527
|
},
|
|
@@ -7523,7 +7531,7 @@ var SYSTEM_FIELD_OPERATORS = [
|
|
|
7523
7531
|
editorType: "multiChoice"
|
|
7524
7532
|
},
|
|
7525
7533
|
{
|
|
7526
|
-
label: "is not
|
|
7534
|
+
label: "is not",
|
|
7527
7535
|
value: "neq",
|
|
7528
7536
|
editorType: "singleChoice"
|
|
7529
7537
|
},
|
|
@@ -7535,7 +7543,7 @@ var SYSTEM_FIELD_OPERATORS = [
|
|
|
7535
7543
|
];
|
|
7536
7544
|
var PUBLISH_STATUS_FIELD_OPERATORS = [
|
|
7537
7545
|
{
|
|
7538
|
-
label: "is
|
|
7546
|
+
label: "is",
|
|
7539
7547
|
value: "eq",
|
|
7540
7548
|
editorType: "statusSingleChoice"
|
|
7541
7549
|
},
|
|
@@ -7545,7 +7553,7 @@ var PUBLISH_STATUS_FIELD_OPERATORS = [
|
|
|
7545
7553
|
editorType: "statusMultiChoice"
|
|
7546
7554
|
},
|
|
7547
7555
|
{
|
|
7548
|
-
label: "is not
|
|
7556
|
+
label: "is not",
|
|
7549
7557
|
value: "neq",
|
|
7550
7558
|
editorType: "statusSingleChoice"
|
|
7551
7559
|
},
|
|
@@ -7557,7 +7565,7 @@ var PUBLISH_STATUS_FIELD_OPERATORS = [
|
|
|
7557
7565
|
];
|
|
7558
7566
|
var SELECT_OPERATORS = [
|
|
7559
7567
|
{
|
|
7560
|
-
label: "is
|
|
7568
|
+
label: "is",
|
|
7561
7569
|
value: "eq",
|
|
7562
7570
|
editorType: "singleChoice"
|
|
7563
7571
|
},
|
|
@@ -7582,7 +7590,7 @@ var SELECT_OPERATORS = [
|
|
|
7582
7590
|
editorType: "text"
|
|
7583
7591
|
},
|
|
7584
7592
|
{
|
|
7585
|
-
label: "is not
|
|
7593
|
+
label: "is not",
|
|
7586
7594
|
value: "neq",
|
|
7587
7595
|
editorType: "singleChoice"
|
|
7588
7596
|
},
|
|
@@ -8397,7 +8405,8 @@ var SearchAndFilterContext = createContext6({
|
|
|
8397
8405
|
filterOptions: [],
|
|
8398
8406
|
validFilterQuery: [],
|
|
8399
8407
|
filterMapper: {},
|
|
8400
|
-
totalResults: 0
|
|
8408
|
+
totalResults: 0,
|
|
8409
|
+
allowBindingSearchTerm: false
|
|
8401
8410
|
});
|
|
8402
8411
|
var SearchAndFilterProvider = ({
|
|
8403
8412
|
filters,
|
|
@@ -8409,7 +8418,8 @@ var SearchAndFilterProvider = ({
|
|
|
8409
8418
|
resetFilterValues = [{ field: "", operator: "", value: "" }],
|
|
8410
8419
|
totalResults,
|
|
8411
8420
|
filterMapper: filterMapper2 = filterMapper,
|
|
8412
|
-
children
|
|
8421
|
+
children,
|
|
8422
|
+
allowBindingSearchTerm
|
|
8413
8423
|
}) => {
|
|
8414
8424
|
const [searchTerm, setSearchTerm] = useState20(defaultSearchTerm);
|
|
8415
8425
|
const deferredSearchTerm = useDeferredValue2(searchTerm);
|
|
@@ -8474,7 +8484,8 @@ var SearchAndFilterProvider = ({
|
|
|
8474
8484
|
filterOptions,
|
|
8475
8485
|
validFilterQuery,
|
|
8476
8486
|
totalResults,
|
|
8477
|
-
filterMapper: filterMapper2
|
|
8487
|
+
filterMapper: filterMapper2,
|
|
8488
|
+
allowBindingSearchTerm
|
|
8478
8489
|
},
|
|
8479
8490
|
children: /* @__PURE__ */ jsx71(VerticalRhythm5, { children })
|
|
8480
8491
|
}
|
|
@@ -8491,7 +8502,14 @@ var FilterControls = ({
|
|
|
8491
8502
|
children,
|
|
8492
8503
|
hideSearchInput
|
|
8493
8504
|
}) => {
|
|
8494
|
-
const {
|
|
8505
|
+
const {
|
|
8506
|
+
setFilterVisibility,
|
|
8507
|
+
filterVisibility,
|
|
8508
|
+
setSearchTerm,
|
|
8509
|
+
validFilterQuery,
|
|
8510
|
+
searchTerm,
|
|
8511
|
+
allowBindingSearchTerm
|
|
8512
|
+
} = useSearchAndFilter();
|
|
8495
8513
|
const editorRef = useRef16(null);
|
|
8496
8514
|
const hasVariableInSearchTerm = hasReferencedVariables(searchTerm);
|
|
8497
8515
|
const [idToResetInputVariables, setIdToResetInputVariables] = useState21("data-resource-search-term-input");
|
|
@@ -8533,6 +8551,7 @@ var FilterControls = ({
|
|
|
8533
8551
|
editorRef,
|
|
8534
8552
|
value: localeSearchTerm,
|
|
8535
8553
|
onChange: (value) => setLocaleSearchTerm(value != null ? value : ""),
|
|
8554
|
+
disableVariables: !allowBindingSearchTerm,
|
|
8536
8555
|
inputWhenNoVariables: /* @__PURE__ */ jsx72(
|
|
8537
8556
|
InputKeywordSearch2,
|
|
8538
8557
|
{
|
|
@@ -8914,6 +8933,7 @@ var SearchAndFilter = ({
|
|
|
8914
8933
|
defaultSearchTerm,
|
|
8915
8934
|
onSearchChange,
|
|
8916
8935
|
totalResults,
|
|
8936
|
+
allowBindingSearchTerm = false,
|
|
8917
8937
|
resetFilterValues = []
|
|
8918
8938
|
}) => {
|
|
8919
8939
|
return /* @__PURE__ */ jsx76(
|
|
@@ -8928,6 +8948,7 @@ var SearchAndFilter = ({
|
|
|
8928
8948
|
totalResults,
|
|
8929
8949
|
resetFilterValues,
|
|
8930
8950
|
filterMapper: filterMapper2,
|
|
8951
|
+
allowBindingSearchTerm,
|
|
8931
8952
|
children: /* @__PURE__ */ jsxs48(VerticalRhythm7, { "data-testid": "search-and-filter", children: [
|
|
8932
8953
|
/* @__PURE__ */ jsxs48("div", { css: SearchAndFilterOutterControlWrapper(viewSwitchControls ? "1fr auto" : "1fr"), children: [
|
|
8933
8954
|
/* @__PURE__ */ jsx76(
|
|
@@ -9391,7 +9412,7 @@ import {
|
|
|
9391
9412
|
InputComboBox as InputComboBox4,
|
|
9392
9413
|
InputKeywordSearch as InputKeywordSearch4,
|
|
9393
9414
|
InputSelect as InputSelect9,
|
|
9394
|
-
InputToggle,
|
|
9415
|
+
InputToggle as InputToggle3,
|
|
9395
9416
|
Label,
|
|
9396
9417
|
LoadingIndicator as LoadingIndicator5,
|
|
9397
9418
|
LoadingOverlay as LoadingOverlay2,
|
|
@@ -9415,7 +9436,8 @@ import {
|
|
|
9415
9436
|
ScrollableListItem,
|
|
9416
9437
|
Switch,
|
|
9417
9438
|
Textarea,
|
|
9418
|
-
Theme as Theme3
|
|
9439
|
+
Theme as Theme3,
|
|
9440
|
+
utilityColors
|
|
9419
9441
|
} from "@uniformdev/design-system";
|
|
9420
9442
|
export * from "@uniformdev/mesh-sdk";
|
|
9421
9443
|
export {
|
|
@@ -9457,7 +9479,7 @@ export {
|
|
|
9457
9479
|
InputComboBox4 as InputComboBox,
|
|
9458
9480
|
InputKeywordSearch4 as InputKeywordSearch,
|
|
9459
9481
|
InputSelect9 as InputSelect,
|
|
9460
|
-
InputToggle,
|
|
9482
|
+
InputToggle3 as InputToggle,
|
|
9461
9483
|
InputVariables,
|
|
9462
9484
|
Label,
|
|
9463
9485
|
LinkButton,
|
|
@@ -9633,6 +9655,7 @@ export {
|
|
|
9633
9655
|
useVariableEditor,
|
|
9634
9656
|
useVariables,
|
|
9635
9657
|
useVariablesMenu,
|
|
9658
|
+
utilityColors,
|
|
9636
9659
|
variableDefaultTextValue,
|
|
9637
9660
|
variablePrefix,
|
|
9638
9661
|
variableSuffix,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "19.147.1-alpha.
|
|
3
|
+
"version": "19.147.1-alpha.8+41ac704d63",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"@lexical/selection": "^0.12.0",
|
|
51
51
|
"@lexical/utils": "^0.12.0",
|
|
52
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.
|
|
54
|
-
"@uniformdev/design-system": "19.147.1-alpha.
|
|
55
|
-
"@uniformdev/mesh-sdk": "19.147.1-alpha.
|
|
53
|
+
"@uniformdev/canvas": "19.147.1-alpha.8+41ac704d63",
|
|
54
|
+
"@uniformdev/design-system": "19.147.1-alpha.8+41ac704d63",
|
|
55
|
+
"@uniformdev/mesh-sdk": "19.147.1-alpha.8+41ac704d63",
|
|
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": "41ac704d631a859a44d06e3d9fa370b2a7e041f1"
|
|
90
90
|
}
|