@uniformdev/mesh-sdk-react 19.135.0 → 19.135.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 +674 -70
- package/dist/index.d.ts +674 -70
- package/dist/index.esm.js +3116 -724
- package/dist/index.js +3069 -650
- package/dist/index.mjs +3116 -724
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -9,8 +9,8 @@ import { DynamicInputs, MeshLocation, SetValueOptions, EditConnectedDataResponse
|
|
|
9
9
|
export * from '@uniformdev/mesh-sdk';
|
|
10
10
|
import { DataVariableDefinition, DataResourceVariables, DataType } from '@uniformdev/canvas';
|
|
11
11
|
import { Emitter } from 'mitt';
|
|
12
|
-
import { BadgeThemeProps, InputSelectProps } 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';
|
|
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, 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';
|
|
@@ -391,6 +391,8 @@ type DataResourceDynamicInputProviderProps = {
|
|
|
391
391
|
/** Child components of the provider. Variables-using components, such as InputVariables, can be used here. */
|
|
392
392
|
children: ReactNode;
|
|
393
393
|
};
|
|
394
|
+
declare const DataResourceInputContext: React$1.Context<DynamicInputs | undefined>;
|
|
395
|
+
declare const useDataResourceDynamicInputs: () => DynamicInputs | undefined;
|
|
394
396
|
/**
|
|
395
397
|
* Wrapper for data resource locations. Provides read-only access to dynamic inputs as if they were variables,
|
|
396
398
|
* using variables-aware components (i.e. InputVariables). This simplifies building dynamic-input-aware editors,
|
|
@@ -423,6 +425,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
423
425
|
type: TLocationType;
|
|
424
426
|
}> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
|
|
425
427
|
type: TLocationType;
|
|
428
|
+
}> | Extract<_uniformdev_mesh_sdk.CanvasEditorToolsLocation, {
|
|
429
|
+
type: TLocationType;
|
|
426
430
|
}> | Extract<_uniformdev_mesh_sdk.AIPromptMetadataLocation, {
|
|
427
431
|
type: TLocationType;
|
|
428
432
|
}> | Extract<_uniformdev_mesh_sdk.ParamTypeLocation<TLocationValue, unknown, TLocationSetValue, unknown>, {
|
|
@@ -444,6 +448,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
444
448
|
type: TLocationType;
|
|
445
449
|
}> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
|
|
446
450
|
type: TLocationType;
|
|
451
|
+
}> | Extract<_uniformdev_mesh_sdk.CanvasEditorToolsLocation, {
|
|
452
|
+
type: TLocationType;
|
|
447
453
|
}> | Extract<_uniformdev_mesh_sdk.AIPromptMetadataLocation, {
|
|
448
454
|
type: TLocationType;
|
|
449
455
|
}> | Extract<_uniformdev_mesh_sdk.ParamTypeLocation<TLocationValue, unknown, TLocationSetValue, unknown>, {
|
|
@@ -464,6 +470,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
464
470
|
type: TLocationType;
|
|
465
471
|
}> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
|
|
466
472
|
type: TLocationType;
|
|
473
|
+
}> | Extract<_uniformdev_mesh_sdk.CanvasEditorToolsLocation, {
|
|
474
|
+
type: TLocationType;
|
|
467
475
|
}> | Extract<_uniformdev_mesh_sdk.AIPromptMetadataLocation, {
|
|
468
476
|
type: TLocationType;
|
|
469
477
|
}> | Extract<_uniformdev_mesh_sdk.ParamTypeLocation<TLocationValue, unknown, TLocationSetValue, unknown>, {
|
|
@@ -512,7 +520,7 @@ type VariableNodeState = {
|
|
|
512
520
|
* Note that this is ignored if `isFresh` is true, which is set for the result of edits or insertions
|
|
513
521
|
* made after the editor has mounted (which we know are good and don't validate to prevent flicker or false errors)
|
|
514
522
|
*/
|
|
515
|
-
referenceIsValid: boolean | 'info';
|
|
523
|
+
referenceIsValid: boolean | 'info' | 'warning';
|
|
516
524
|
/**
|
|
517
525
|
* Whether the variable node has been inserted or edited during this editing session
|
|
518
526
|
* Fresh nodes are always considered "valid" because they are the result of a user action
|
|
@@ -602,6 +610,7 @@ type MeshDataVariableDefinition = Omit<DataVariableDefinition, 'default'> & {
|
|
|
602
610
|
type KnownUndefinedVariableInfo = {
|
|
603
611
|
error?: string;
|
|
604
612
|
info?: string;
|
|
613
|
+
warning?: string;
|
|
605
614
|
displayName?: string;
|
|
606
615
|
};
|
|
607
616
|
type DataVariableDefinitionWithName = {
|
|
@@ -613,9 +622,25 @@ type DataVariableDefinitionWithName = {
|
|
|
613
622
|
*/
|
|
614
623
|
declare function variablesToList(variables: Record<string, MeshDataVariableDefinition> | undefined): Array<DataVariableDefinitionWithName>;
|
|
615
624
|
|
|
625
|
+
type KnownUndefinedVariableInfoWithName = KnownUndefinedVariableInfo & {
|
|
626
|
+
name: string;
|
|
627
|
+
resultType: 'undefined';
|
|
628
|
+
};
|
|
629
|
+
type VariableEditorProps<TEditorContext = unknown, TEditVariableCompletedContext = unknown, TEditVariableCancelledContext = unknown> = {
|
|
630
|
+
variable: string;
|
|
631
|
+
onSubmit: (values: DataVariableDefinitionWithName | KnownUndefinedVariableInfoWithName, context: TEditVariableCompletedContext) => void | Promise<void>;
|
|
632
|
+
/** Disables the tip about Mesh integrations. Intended for use when this is placed on a custom Mesh integration to edit variables. */
|
|
633
|
+
disableMeshTip?: boolean;
|
|
634
|
+
onCancel: (context: TEditVariableCancelledContext) => void;
|
|
635
|
+
context: TEditorContext | undefined;
|
|
636
|
+
disableAutoFocusOnMount?: boolean;
|
|
637
|
+
showDisplayName?: boolean;
|
|
638
|
+
};
|
|
639
|
+
declare function VariableEditor({ variable, onSubmit, onCancel, showDisplayName, disableMeshTip, }: VariableEditorProps<any, unknown, EditConnectedDataResponseCancellationContext>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
640
|
+
|
|
616
641
|
type SelectVariableMenuProps<TEditorContext = undefined> = {
|
|
617
642
|
/** sets the onClick menu item event. Also called if the menu adds a variable with the newly added variable. */
|
|
618
|
-
onSelectVariable: (selectedVariable: DataVariableDefinitionWithName) => void;
|
|
643
|
+
onSelectVariable: (selectedVariable: DataVariableDefinitionWithName | KnownUndefinedVariableInfoWithName) => void;
|
|
619
644
|
/** Controls whether one can add variables from the menu */
|
|
620
645
|
showAddVariableMenuOption?: boolean | string;
|
|
621
646
|
/** Emotion styles to apply to the menu trigger icon button */
|
|
@@ -784,10 +809,23 @@ type InputVariablesProps<TEditorContext = unknown> = {
|
|
|
784
809
|
* @deprecated this is ignored if passed, computation is now automatic
|
|
785
810
|
*/
|
|
786
811
|
disableReset?: boolean;
|
|
812
|
+
/**
|
|
813
|
+
* By default when keyDown happens in the variables input, any active variable editor is dismissed automatically.
|
|
814
|
+
* This makes sense, until you want to put a variables input _into_ a variables editor component. In that case,
|
|
815
|
+
* disable it with this prop.
|
|
816
|
+
*/
|
|
817
|
+
disableDismissEditorOnChange?: boolean;
|
|
787
818
|
/** Enables mutliple lines in the input (\n in the value) */
|
|
788
819
|
multiLine?: boolean;
|
|
789
820
|
/** Disables the inline variable selection menu when rendering a variables input */
|
|
790
821
|
disableInlineMenu?: boolean | 'by-label' | 'by-input';
|
|
822
|
+
/**
|
|
823
|
+
* Defines single place to render "Insert variable" menu buttons.
|
|
824
|
+
* Be aware that it will override "disableInlineMenu" if set.
|
|
825
|
+
*
|
|
826
|
+
* @deprecated beta
|
|
827
|
+
*/
|
|
828
|
+
showMenuPosition?: 'label' | 'input' | 'inline-right';
|
|
791
829
|
/**
|
|
792
830
|
* Enables clicking a variable reference to edit the variable
|
|
793
831
|
* Note: automatically disabled if `disabled` or `disableVariables` is set
|
|
@@ -842,12 +880,16 @@ type ParameterConnectionIndicatorProps = {
|
|
|
842
880
|
menuOptions: ReactNode;
|
|
843
881
|
/** Sets the tooltip shown on hover over the insert-variable menu */
|
|
844
882
|
menuTooltip?: string;
|
|
883
|
+
/**
|
|
884
|
+
* @deprecated beta used internally
|
|
885
|
+
* Sets margin bottom styles for the menu button, we use margin to allow for negative values */
|
|
886
|
+
overrideMenuButtonParentMargin?: number | string;
|
|
845
887
|
};
|
|
846
888
|
/**
|
|
847
889
|
* An input box that enables insertion of 'variables', provided by VariablesProvider,
|
|
848
890
|
* into its value. Designed specifically for use in the Canvas Parameter Editor.
|
|
849
891
|
*/
|
|
850
|
-
declare function ParameterConnectionIndicator({ children, value, menuOptions, disabled, menuTooltip, }: ParameterConnectionIndicatorProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
892
|
+
declare function ParameterConnectionIndicator({ children, value, menuOptions, disabled, menuTooltip, overrideMenuButtonParentMargin, }: ParameterConnectionIndicatorProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
851
893
|
|
|
852
894
|
type ParameterOrSingleVariableProps<TEditorContext = unknown> = {
|
|
853
895
|
disabled?: boolean;
|
|
@@ -899,18 +941,6 @@ type ParameterVariablesProps<TEditorContext = unknown> = {
|
|
|
899
941
|
*/
|
|
900
942
|
declare function ParameterVariables<TEditorContext = unknown>(props: ParameterVariablesProps<TEditorContext>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
901
943
|
|
|
902
|
-
type VariableEditorProps<TEditorContext = unknown, TEditVariableCompletedContext = unknown, TEditVariableCancelledContext = unknown> = {
|
|
903
|
-
variable: string;
|
|
904
|
-
onSubmit: (values: DataVariableDefinitionWithName, context: TEditVariableCompletedContext) => void | Promise<void>;
|
|
905
|
-
/** Disables the tip about Mesh integrations. Intended for use when this is placed on a custom Mesh integration to edit variables. */
|
|
906
|
-
disableMeshTip?: boolean;
|
|
907
|
-
onCancel: (context: TEditVariableCancelledContext) => void;
|
|
908
|
-
context: TEditorContext | undefined;
|
|
909
|
-
disableAutoFocusOnMount?: boolean;
|
|
910
|
-
showDisplayName?: boolean;
|
|
911
|
-
};
|
|
912
|
-
declare function VariableEditor({ variable, onSubmit, onCancel, showDisplayName, disableMeshTip, }: VariableEditorProps<any, unknown, EditConnectedDataResponseCancellationContext>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
913
|
-
|
|
914
944
|
type VariablesProviderProps<TEditVariableContext = unknown, TEditVariableCompletedContext = unknown, TEditVariableCancelledContext = unknown> = React.PropsWithChildren<{
|
|
915
945
|
/**
|
|
916
946
|
* Signals that components in this variables context are not intended to allow mutation
|
|
@@ -930,6 +960,14 @@ type VariablesProviderProps<TEditVariableContext = unknown, TEditVariableComplet
|
|
|
930
960
|
knownUndefinedValues?: Record<string, KnownUndefinedVariableInfo>;
|
|
931
961
|
/** Function to handle mutations to the variable values (optional when readOnly is true) */
|
|
932
962
|
onChange?: (newValue: Record<string, MeshDataVariableDefinition>) => void;
|
|
963
|
+
/**
|
|
964
|
+
* Called when a custom editVariableComponent signals that it wants to add a known undefined value to the variable context
|
|
965
|
+
* instead of a valid variable. This is useful when the variable editor component may be allowed to select invalid values that should produce
|
|
966
|
+
* warning or info messages when referenced, rather than being treated as an error.
|
|
967
|
+
*
|
|
968
|
+
* The caller must wire up the logic to pass back new `knownUndefinedValues` after they are modified.
|
|
969
|
+
*/
|
|
970
|
+
onChangeKnownUndefinedValue?: (name: string, value: KnownUndefinedVariableInfo) => void;
|
|
933
971
|
/**
|
|
934
972
|
* Provide a component to handle editing a variable definition (e.g. a modal wrapper)
|
|
935
973
|
* If not passed, the editor will be rendered inline, with potentially strange results.
|
|
@@ -966,7 +1004,7 @@ type VariablesAction<TEditVariableContext> = {
|
|
|
966
1004
|
type VariableEditorCompleteEvent<TEditVariableCompletedContext, TEditVariableCancelledContext> = {
|
|
967
1005
|
canceled: false;
|
|
968
1006
|
/** Selected variable */
|
|
969
|
-
selectedVariable: DataVariableDefinitionWithName;
|
|
1007
|
+
selectedVariable: DataVariableDefinitionWithName | KnownUndefinedVariableInfoWithName;
|
|
970
1008
|
/**
|
|
971
1009
|
* Arbitrary object that was returned by the variables editor component's onSubmit
|
|
972
1010
|
* Can be used to convey context data about the submit from custom editor components
|
|
@@ -1028,7 +1066,7 @@ type VariablesContext<TEditVariableContext, TEditVariableCompletedContext, TEdit
|
|
|
1028
1066
|
*/
|
|
1029
1067
|
isLoading: boolean;
|
|
1030
1068
|
};
|
|
1031
|
-
declare function VariablesProvider<TEditComponentContext = never, TEditVariableCompletedContext = never, TEditVariableCancelledContext = never>({ value, onChange, editVariableComponent, readOnly, isLoading, children, knownUndefinedValues, }: VariablesProviderProps<TEditComponentContext, TEditVariableCompletedContext, TEditVariableCancelledContext>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1069
|
+
declare function VariablesProvider<TEditComponentContext = never, TEditVariableCompletedContext = never, TEditVariableCancelledContext = never>({ value, onChange, editVariableComponent, readOnly, isLoading, children, knownUndefinedValues, onChangeKnownUndefinedValue, }: VariablesProviderProps<TEditComponentContext, TEditVariableCompletedContext, TEditVariableCancelledContext>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1032
1070
|
declare function useVariables<TEditComponentContext = unknown, TEditVariableCompletedContext = unknown, TEditVariableCancelledContext = unknown>(returnEmptyWithoutProvider?: boolean): VariablesContext<TEditComponentContext, TEditVariableCompletedContext, TEditVariableCancelledContext>;
|
|
1033
1071
|
|
|
1034
1072
|
declare function useVariableEditor<TEditorContext = unknown, TEditVariableCompletedContext = unknown, TEditVariableCancelledContext = unknown>(): {
|
|
@@ -1197,56 +1235,10 @@ type ObjectSearchContainerProps = {
|
|
|
1197
1235
|
};
|
|
1198
1236
|
/**
|
|
1199
1237
|
* @description Object search container is an opinionated layout for search parameters and retrieved results
|
|
1200
|
-
* @example <ObjectSearchContainer searchFilters={<>your component</>} resultList={<>your result list component<>} onSave={yourSaveAction} onCancel={yourCancelAction} />
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
type ObjectSearchFilterProps = {
|
|
1204
|
-
/** shows or hides the required content type select option */
|
|
1205
|
-
requireContentType?: boolean;
|
|
1206
|
-
/** sets the text for the required content type select option
|
|
1207
|
-
* @default 'All content types'
|
|
1208
|
-
*/
|
|
1209
|
-
typeSelectorAllTypesOptionText?: string;
|
|
1210
|
-
/** sets the select input value label text
|
|
1211
|
-
* @default 'Content Type Select'
|
|
1212
|
-
*/
|
|
1213
|
-
selectLabel?: string;
|
|
1214
|
-
/** sets the select input options, if empty - only keyword search field will be rendered */
|
|
1215
|
-
selectOptions?: Array<{
|
|
1216
|
-
id?: string;
|
|
1217
|
-
name?: string;
|
|
1218
|
-
label: string;
|
|
1219
|
-
value?: string;
|
|
1220
|
-
}>;
|
|
1221
|
-
/** sets the search input name value
|
|
1222
|
-
* @default 'searchText'
|
|
1223
|
-
*/
|
|
1224
|
-
searchInputName?: string;
|
|
1225
|
-
/** sets the search input placeholder text
|
|
1226
|
-
* @default 'Enter keyword to narrow your results'
|
|
1227
|
-
*/
|
|
1228
|
-
searchInputPlaceholderText?: string;
|
|
1229
|
-
};
|
|
1230
|
-
/**
|
|
1231
|
-
* @description Object search filter is an opinionated filter that has pre-defined query and setQuery functions
|
|
1232
|
-
* that can be extended with custom functions
|
|
1233
|
-
* @example <ObjectSearchFilter selectOptions={[{ id: 'id value', name: 'name value'}]} /> */
|
|
1234
|
-
declare const ObjectSearchFilter: ({ requireContentType, typeSelectorAllTypesOptionText, searchInputName, searchInputPlaceholderText, selectLabel, selectOptions, }: ObjectSearchFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1235
|
-
|
|
1236
|
-
type ObjectSearchFilterContainerProps = {
|
|
1237
|
-
/**
|
|
1238
|
-
* sets the title for the container
|
|
1239
|
-
* @deprecated we recommend setting the label on ObjectSearchContainer instead
|
|
1240
|
-
*/
|
|
1241
|
-
label?: string;
|
|
1242
|
-
/** sets child components in an opinionated layout */
|
|
1243
|
-
children?: React.ReactNode;
|
|
1244
|
-
};
|
|
1245
|
-
/**
|
|
1246
|
-
* @description an opinionated layout for search filters
|
|
1247
|
-
* @example <ObjectSearchFilterContainer label="my label"><input type="text" aria-label="my input" /></ObjectSearchFilterContainer>
|
|
1238
|
+
* @example <ObjectSearchContainer searchFilters={<>your component</>} resultList={<>your result list component<>} onSave={yourSaveAction} onCancel={yourCancelAction} />
|
|
1239
|
+
* @deprecated Please use ControlledObjectSearchProvider with SearchAndFilter instead. You can use Mesh Example for reference.
|
|
1248
1240
|
*/
|
|
1249
|
-
declare const
|
|
1241
|
+
declare const ObjectSearchContainer: ({ label, enableDynamicInputToResultId, searchFilters, resultList, children, }: ObjectSearchContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1250
1242
|
|
|
1251
1243
|
type SearchQueryProps<TExtraFilters = unknown> = {
|
|
1252
1244
|
/** sets the content type in the search context */
|
|
@@ -1255,6 +1247,7 @@ type SearchQueryProps<TExtraFilters = unknown> = {
|
|
|
1255
1247
|
keyword?: string;
|
|
1256
1248
|
/** sets the locale in the search context */
|
|
1257
1249
|
locale?: string;
|
|
1250
|
+
dynamicEntryId?: string;
|
|
1258
1251
|
} & TExtraFilters;
|
|
1259
1252
|
type SelectedItemProps<TExtraProps = unknown> = {
|
|
1260
1253
|
/** sets the id value */
|
|
@@ -1324,18 +1317,97 @@ type ObjectSearchContextProps<TExtraFilters = unknown, TExtraItemProps = unknown
|
|
|
1324
1317
|
/** current list of results in state */
|
|
1325
1318
|
list: ItemListProps<TExtraItemProps>;
|
|
1326
1319
|
/** function that sets the list of items to state */
|
|
1327
|
-
onSetList
|
|
1320
|
+
onSetList?: (value: ItemListProps) => void;
|
|
1328
1321
|
/** is multi items selection allowed or not */
|
|
1329
1322
|
isMulti: boolean;
|
|
1323
|
+
localeOptions?: {
|
|
1324
|
+
label: string;
|
|
1325
|
+
value: string;
|
|
1326
|
+
}[];
|
|
1327
|
+
enableFilterByLocale?: boolean;
|
|
1328
|
+
isListLoading?: boolean;
|
|
1329
|
+
isSelectedItemsListLoading?: boolean;
|
|
1330
|
+
dynamicEntryId?: string;
|
|
1330
1331
|
};
|
|
1332
|
+
declare const ObjectSearchContext: React$1.Context<ObjectSearchContextProps<unknown, unknown>>;
|
|
1331
1333
|
type ObjectSearchProviderProps = {
|
|
1332
1334
|
children: ReactNode;
|
|
1333
1335
|
currentlySelectedItems?: Array<SelectedItemProps>;
|
|
1336
|
+
searchResultList?: Array<SelectedItemProps>;
|
|
1334
1337
|
isMulti?: boolean;
|
|
1335
1338
|
defaultQuery?: SearchQueryProps;
|
|
1336
1339
|
};
|
|
1340
|
+
/**
|
|
1341
|
+
* @deprecated Please use ControlledObjectSearchProvider with SearchAndFilter instead. You can use Mesh Example for reference.
|
|
1342
|
+
*/
|
|
1337
1343
|
declare const ObjectSearchProvider: ({ currentlySelectedItems, isMulti, children, defaultQuery, }: ObjectSearchProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1338
1344
|
declare function useObjectSearchContext<TExtraSearchFilters = unknown, TExtraItemProps = unknown>(): ObjectSearchContextProps<TExtraSearchFilters, TExtraItemProps>;
|
|
1345
|
+
declare function bindQuery(query: SearchQueryProps, inputs: Record<string, unknown>): {
|
|
1346
|
+
/** sets the content type in the search context */
|
|
1347
|
+
contentType?: string | undefined;
|
|
1348
|
+
/** sets the keyword search in the search context */
|
|
1349
|
+
keyword?: string | undefined;
|
|
1350
|
+
/** sets the locale in the search context */
|
|
1351
|
+
locale?: string | undefined;
|
|
1352
|
+
dynamicEntryId?: string | undefined;
|
|
1353
|
+
};
|
|
1354
|
+
|
|
1355
|
+
type ObjectSearchFilterProps = {
|
|
1356
|
+
/** shows or hides the required content type select option */
|
|
1357
|
+
requireContentType?: boolean;
|
|
1358
|
+
/** sets the text for the required content type select option
|
|
1359
|
+
* @default 'All content types'
|
|
1360
|
+
*/
|
|
1361
|
+
typeSelectorAllTypesOptionText?: string;
|
|
1362
|
+
/** sets the select input value label text
|
|
1363
|
+
* @default 'Content Type Select'
|
|
1364
|
+
*/
|
|
1365
|
+
selectLabel?: string;
|
|
1366
|
+
/** sets the select input options, if empty - only keyword search field will be rendered */
|
|
1367
|
+
selectOptions?: Array<{
|
|
1368
|
+
id?: string;
|
|
1369
|
+
name?: string;
|
|
1370
|
+
label: string;
|
|
1371
|
+
value?: string;
|
|
1372
|
+
}>;
|
|
1373
|
+
/** sets the search input name value
|
|
1374
|
+
* @default 'searchText'
|
|
1375
|
+
*/
|
|
1376
|
+
searchInputName?: string;
|
|
1377
|
+
/** sets the search input placeholder text
|
|
1378
|
+
* @default 'Enter keyword to narrow your results'
|
|
1379
|
+
*/
|
|
1380
|
+
searchInputPlaceholderText?: string;
|
|
1381
|
+
/** sets the label for the locale selectbox filter */
|
|
1382
|
+
localeFilterLabel?: string;
|
|
1383
|
+
/** sets the locale options for the locale selectbox filter */
|
|
1384
|
+
localeOptions?: ObjectSearchContextProps['localeOptions'];
|
|
1385
|
+
/** enables or disables the locale filter */
|
|
1386
|
+
enableFilterByLocale?: ObjectSearchContextProps['enableFilterByLocale'];
|
|
1387
|
+
};
|
|
1388
|
+
/**
|
|
1389
|
+
* @description Object search filter is an opinionated filter that has pre-defined query and setQuery functions
|
|
1390
|
+
* that can be extended with custom functions
|
|
1391
|
+
* @example <ObjectSearchFilter selectOptions={[{ id: 'id value', name: 'name value'}]} />
|
|
1392
|
+
* @deprecated Please use SearchAndFilter from @uniformdev/design-system instead.
|
|
1393
|
+
*/
|
|
1394
|
+
declare const ObjectSearchFilter: ({ requireContentType, typeSelectorAllTypesOptionText, searchInputName, searchInputPlaceholderText, selectLabel, localeFilterLabel, selectOptions, }: ObjectSearchFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1395
|
+
|
|
1396
|
+
type ObjectSearchFilterContainerProps = {
|
|
1397
|
+
/**
|
|
1398
|
+
* sets the title for the container
|
|
1399
|
+
* @deprecated we recommend setting the label on ObjectSearchContainer instead
|
|
1400
|
+
*/
|
|
1401
|
+
label?: string;
|
|
1402
|
+
/** sets child components in an opinionated layout */
|
|
1403
|
+
children?: React.ReactNode;
|
|
1404
|
+
};
|
|
1405
|
+
/**
|
|
1406
|
+
* @description an opinionated layout for search filters
|
|
1407
|
+
* @example <ObjectSearchFilterContainer label="my label"><input type="text" aria-label="my input" /></ObjectSearchFilterContainer>
|
|
1408
|
+
* @deprecated Please use SearchAndFilter from @uniformdev/design-system instead.
|
|
1409
|
+
*/
|
|
1410
|
+
declare const ObjectSearchFilterContainer: ({ label, children }: ObjectSearchFilterContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1339
1411
|
|
|
1340
1412
|
type ObjectSearchListItemProps = SelectedItemProps & {
|
|
1341
1413
|
/** sets the content type value, this is normally used for subtitles e.g. Kitchens */
|
|
@@ -1540,9 +1612,48 @@ type QueryFilterProps<TSelectOptions extends QueryFilterSelectionOptionProps = Q
|
|
|
1540
1612
|
/**
|
|
1541
1613
|
* @description An opinionated multi query filter UI component, best used for querying product data or more complex scenarios
|
|
1542
1614
|
* @example <QueryFilter contentTypeOptions={[{ id: 'id', name: 'name' }]} sortOptions={[{ id: 'id', name: 'name' }]} sortOrderOptions={[{ id: 'id', name: 'name' }]} />
|
|
1615
|
+
* @deprecated Please use SearchAndFilter from @uniformdev/design-system instead.
|
|
1543
1616
|
*/
|
|
1544
1617
|
declare const QueryFilter: ({ requireContentType, queryFilterTitle, contentTypeLabel, typeSelectorAllTypesOptionText, contentTypeOptions, searchInputName, searchInputPlaceholderText, searchInputLabel, countLabel, countValue, sortLabel, sortOptions, sortOrderLabel, sortOrderOptions, children, }: QueryFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1545
1618
|
|
|
1619
|
+
declare function ObjectSearchListOfSearchResults(): _emotion_react_types_jsx_namespace.EmotionJSX.Element | _emotion_react_types_jsx_namespace.EmotionJSX.Element[] | undefined;
|
|
1620
|
+
|
|
1621
|
+
type ControlledObjectSearchProviderProps = {
|
|
1622
|
+
children: ReactNode;
|
|
1623
|
+
/**
|
|
1624
|
+
* List of selected items controlled by parent component.
|
|
1625
|
+
* "undefined" value together with "selectedItemsLoading" prop indicate that list is initially loading or it is reloading on select action.
|
|
1626
|
+
* In case of reloading on select action, this component will render selected item right away to avoid waiting for backend response to smooth user experience.
|
|
1627
|
+
*/
|
|
1628
|
+
selectedItems: Array<SelectedItemProps> | undefined;
|
|
1629
|
+
/**
|
|
1630
|
+
* List of search results for "single" and "multiple" archetypes usually. From this list custom will be able to select items.
|
|
1631
|
+
* Undefined in case when there is no search, e.g. Query archetype.
|
|
1632
|
+
*/
|
|
1633
|
+
searchResultItems: Array<SelectedItemProps> | undefined;
|
|
1634
|
+
/** Indicates that selected items are loading. only used during initial render and on user interaction does not effect anything */
|
|
1635
|
+
selectedItemsLoading?: boolean;
|
|
1636
|
+
/** Indicates that search result list is loading. */
|
|
1637
|
+
searchResultListLoading?: boolean;
|
|
1638
|
+
/** @deprecated Please use <SearchAndFilter> component instead */
|
|
1639
|
+
onQueryChange?: (value: SearchQueryProps) => void;
|
|
1640
|
+
/** Callback to to receive new selected items list, usually updated on list item selection or list clearing */
|
|
1641
|
+
onSelectItemsChange: (selectedItems: Array<SelectedItemProps>) => void;
|
|
1642
|
+
/** Indicates that user can select multiple items from the list */
|
|
1643
|
+
isMulti?: boolean;
|
|
1644
|
+
/** @deprecated Please use <SearchAndFilter> component instead */
|
|
1645
|
+
query?: SearchQueryProps;
|
|
1646
|
+
/** @deprecated Please use <SearchAndFilter> component instead */
|
|
1647
|
+
localeOptions?: ObjectSearchContextProps['localeOptions'];
|
|
1648
|
+
/** @deprecated Please use <SearchAndFilter> component instead */
|
|
1649
|
+
enableFilterByLocale?: ObjectSearchContextProps['enableFilterByLocale'];
|
|
1650
|
+
/** @deprecated Please use <SearchAndFilter> component instead. It also recommended to have separate archetype for data types to load content by single bindable values */
|
|
1651
|
+
dynamicEntryId?: ObjectSearchContextProps['dynamicEntryId'];
|
|
1652
|
+
/** Used for archetypes where you expect user to select items manually, comparing to automatic selection based on query */
|
|
1653
|
+
isManualSelection?: boolean;
|
|
1654
|
+
};
|
|
1655
|
+
declare const ControlledObjectSearchProvider: ({ selectedItems, searchResultItems, selectedItemsLoading, searchResultListLoading, onQueryChange, onSelectItemsChange, isMulti, children, query, enableFilterByLocale, localeOptions, dynamicEntryId, isManualSelection, }: ControlledObjectSearchProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1656
|
+
|
|
1546
1657
|
type ParamTypeDynamicDataProviderProps = {
|
|
1547
1658
|
/** Child components of the provider. Variables-using components, such as ParameterVariables, can be used here. */
|
|
1548
1659
|
children: ReactNode;
|
|
@@ -1683,6 +1794,499 @@ declare function useRequestParameter(paramName: string): {
|
|
|
1683
1794
|
update: (value: string) => void;
|
|
1684
1795
|
};
|
|
1685
1796
|
|
|
1797
|
+
/** @deprecated beta - Filter editor component names */
|
|
1798
|
+
type FilterEditor = 'singleChoice' | 'multiChoice' | 'dateRange' | 'date' | 'text' | 'empty' | 'number' | 'numberRange' | 'statusMultiChoice' | 'statusSingleChoice';
|
|
1799
|
+
/** @deprecated beta - Input option props */
|
|
1800
|
+
type InputOption = {
|
|
1801
|
+
/** The label for the option */
|
|
1802
|
+
label: string;
|
|
1803
|
+
/** The value for the option */
|
|
1804
|
+
value?: string | undefined;
|
|
1805
|
+
/** The options for the option */
|
|
1806
|
+
options?: Array<FilterOption>;
|
|
1807
|
+
/** Set a disabled state on the input */
|
|
1808
|
+
isDisabled?: boolean;
|
|
1809
|
+
/** Set a readonly state on the input */
|
|
1810
|
+
readOnly?: boolean;
|
|
1811
|
+
};
|
|
1812
|
+
/** @deprecated beta - Operator option props */
|
|
1813
|
+
type Operator = {
|
|
1814
|
+
/** The label for the operator */
|
|
1815
|
+
label: string;
|
|
1816
|
+
/** The symbol for the operator */
|
|
1817
|
+
value?: string;
|
|
1818
|
+
/** The symbol for the operator */
|
|
1819
|
+
symbol?: string;
|
|
1820
|
+
/** The editor type for the operator */
|
|
1821
|
+
options?: Array<InputOption>;
|
|
1822
|
+
/** The editor type for the operator */
|
|
1823
|
+
editorType?: FilterEditor;
|
|
1824
|
+
};
|
|
1825
|
+
/** @deprecated beta - Filter option props */
|
|
1826
|
+
type FilterOption = {
|
|
1827
|
+
/** The label for the option */
|
|
1828
|
+
label: string;
|
|
1829
|
+
/** The value for the option */
|
|
1830
|
+
value: string;
|
|
1831
|
+
/** The options for the option */
|
|
1832
|
+
options?: FilterOption[];
|
|
1833
|
+
/** The operator options for the option */
|
|
1834
|
+
operatorOptions?: Operator[];
|
|
1835
|
+
/** The value options for the option */
|
|
1836
|
+
valueOptions?: InputOption[];
|
|
1837
|
+
/** Set a readonly state on the input */
|
|
1838
|
+
readOnly?: boolean;
|
|
1839
|
+
/** Set a disabled state on the input */
|
|
1840
|
+
disabled?: boolean;
|
|
1841
|
+
/** If filter operator allows it allow bind dynamic value to this filter */
|
|
1842
|
+
bindable?: boolean;
|
|
1843
|
+
};
|
|
1844
|
+
/** @deprecated beta - Filter selected and query value props */
|
|
1845
|
+
type Filter = {
|
|
1846
|
+
/** The field value selected */
|
|
1847
|
+
field: string;
|
|
1848
|
+
/** The operator value selected */
|
|
1849
|
+
operator: string;
|
|
1850
|
+
/** The value selected */
|
|
1851
|
+
value: string | string[];
|
|
1852
|
+
};
|
|
1853
|
+
|
|
1854
|
+
/** @deprecated beta - a list of possible operator values that sync with uniform search api */
|
|
1855
|
+
type OperatorValue = 'eq' | 'sys-date-eq' | 'neq' | 'sys-date-neq' | 'gt' | 'sys-date-gt' | 'gte' | 'sys-date-gte' | 'lt' | 'sys-date-lt' | 'lte' | 'sys-date-lte' | 'in' | 'nin' | 'between' | 'sys-date-between' | 'ndef' | 'def' | 'match' | 'starts';
|
|
1856
|
+
type OperatorValueType = {
|
|
1857
|
+
value: OperatorValue;
|
|
1858
|
+
};
|
|
1859
|
+
/** @deprecated beta - a list of possible operator types */
|
|
1860
|
+
type OperatorType = Array<Omit<Operator, 'value'> & OperatorValueType>;
|
|
1861
|
+
/** @deprecated beta - uniform number operators */
|
|
1862
|
+
declare const NUMBER_OPERATORS: OperatorType;
|
|
1863
|
+
/** @deprecated beta - uniform date operators */
|
|
1864
|
+
declare const DATE_OPERATORS: OperatorType;
|
|
1865
|
+
/** @deprecated beta - uniform textbox operators */
|
|
1866
|
+
declare const TEXTBOX_OPERATORS: OperatorType;
|
|
1867
|
+
/** @deprecated beta - uniform user operators */
|
|
1868
|
+
declare const USER_OPERATORS: OperatorType;
|
|
1869
|
+
/** @deprecated beta - uniform system date operators */
|
|
1870
|
+
declare const SYSTEM_DATE_OPERATORS: OperatorType;
|
|
1871
|
+
/** @deprecated beta - uniform rich text operators */
|
|
1872
|
+
declare const RICHTEXT_OPERATORS: OperatorType;
|
|
1873
|
+
/** @deprecated beta - uniform checkbox operators */
|
|
1874
|
+
declare const CHECKBOX_OPERATORS: OperatorType;
|
|
1875
|
+
/** @deprecated beta - uniform system field operators */
|
|
1876
|
+
declare const SYSTEM_FIELD_OPERATORS: OperatorType;
|
|
1877
|
+
/** @deprecated beta - uniform publish status field operators */
|
|
1878
|
+
declare const PUBLISH_STATUS_FIELD_OPERATORS: OperatorType;
|
|
1879
|
+
/** @deprecated beta - uniform select field operators */
|
|
1880
|
+
declare const SELECT_OPERATORS: OperatorType;
|
|
1881
|
+
/** @deprecated beta - uniform multi-select field operators */
|
|
1882
|
+
declare const MULTI_SELECT_OPERATORS: OperatorType;
|
|
1883
|
+
|
|
1884
|
+
/** @description beta - filter button type */
|
|
1885
|
+
type FilterButtonProps = {
|
|
1886
|
+
/** text to display on the button
|
|
1887
|
+
* @default "Filters"
|
|
1888
|
+
*/
|
|
1889
|
+
text?: string;
|
|
1890
|
+
/** icon to display on the button
|
|
1891
|
+
* @default "filter-add"
|
|
1892
|
+
*/
|
|
1893
|
+
icon?: IconType;
|
|
1894
|
+
/** number of filters to display on the button and sets the styles on the button */
|
|
1895
|
+
filterCount?: number;
|
|
1896
|
+
/** sets the selected styles on the button */
|
|
1897
|
+
hasSelectedValue?: boolean;
|
|
1898
|
+
/** sets the data-testid attribute on the button */
|
|
1899
|
+
dataTestId?: string;
|
|
1900
|
+
} & HTMLAttributes<HTMLButtonElement>;
|
|
1901
|
+
/**
|
|
1902
|
+
* @deprecated beta - A filter button component used to display filter menu options
|
|
1903
|
+
* @example <FilterButton text="Filters" filterCount={3} />
|
|
1904
|
+
*/
|
|
1905
|
+
declare const FilterButton: ({ text, icon, filterCount, hasSelectedValue, dataTestId, ...props }: FilterButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1906
|
+
|
|
1907
|
+
/**
|
|
1908
|
+
* @deprecated beta - Default filter controls for search and filter
|
|
1909
|
+
* @example <FilterControls />
|
|
1910
|
+
*/
|
|
1911
|
+
declare const FilterControls: ({ children, hideSearchInput, }: {
|
|
1912
|
+
/** optional param to allow you to add your own controls */
|
|
1913
|
+
children?: ReactNode;
|
|
1914
|
+
/** optional param to hide the search input */
|
|
1915
|
+
hideSearchInput?: boolean | undefined;
|
|
1916
|
+
}) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1917
|
+
|
|
1918
|
+
type FilterEditorProps = Record<FilterEditor, ComponentType<{
|
|
1919
|
+
label?: string;
|
|
1920
|
+
value?: string;
|
|
1921
|
+
options: any;
|
|
1922
|
+
onChange: (value: any) => void;
|
|
1923
|
+
}> | (() => ReactNode) | null>;
|
|
1924
|
+
type ComboboxOption = {
|
|
1925
|
+
label: string;
|
|
1926
|
+
value: string;
|
|
1927
|
+
};
|
|
1928
|
+
type SingleValueComboboxProps = Omit<FilterEditorCommonInputProps, 'value'> & {
|
|
1929
|
+
value?: string;
|
|
1930
|
+
options: ComboboxOption[];
|
|
1931
|
+
onChange: (e: string) => void;
|
|
1932
|
+
};
|
|
1933
|
+
type MultiValueComboboxProps = Omit<FilterEditorCommonInputProps, 'value'> & {
|
|
1934
|
+
value?: string[];
|
|
1935
|
+
options: ComboboxOption[];
|
|
1936
|
+
onChange: (e: string[]) => void;
|
|
1937
|
+
};
|
|
1938
|
+
type FilterEditorCommonInputProps = {
|
|
1939
|
+
ariaLabel: string;
|
|
1940
|
+
onChange: (e: string | string[]) => void;
|
|
1941
|
+
disabled?: boolean;
|
|
1942
|
+
value?: string | string[];
|
|
1943
|
+
readOnly?: boolean;
|
|
1944
|
+
valueTestId?: string;
|
|
1945
|
+
bindable?: boolean;
|
|
1946
|
+
};
|
|
1947
|
+
/**
|
|
1948
|
+
* @deprecated beta - Multie select filter component
|
|
1949
|
+
* @example <FilterMultiChoiceEditor options={options} value={options.filter((option) => values.includes(option.value)} onChange={(e) => onChange(e.map((option) => option.value))} />
|
|
1950
|
+
*/
|
|
1951
|
+
declare const FilterMultiChoiceEditor: ({ value, options, disabled, readOnly, valueTestId, ...props }: MultiValueComboboxProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1952
|
+
/**
|
|
1953
|
+
* @deprecated beta - Single select filter component
|
|
1954
|
+
* @example <FilterSingleChoiceEditor options={options} value={options.find((option) => values.includes(option.value)} onChange={(e) => onChange(e.value)} />
|
|
1955
|
+
*/
|
|
1956
|
+
declare const FilterSingleChoiceEditor: ({ options, value, disabled, readOnly, onChange, valueTestId, }: SingleValueComboboxProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1957
|
+
/**
|
|
1958
|
+
* @deprecated beta - Status multi select filter component that renders a custom dropdown menu
|
|
1959
|
+
* @example <StatusMultiEditor options={options} value={value} onChange={onChange} />
|
|
1960
|
+
*/
|
|
1961
|
+
declare const StatusMultiEditor: ({ options, value, disabled, readOnly, onChange, valueTestId, }: MultiValueComboboxProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1962
|
+
/**
|
|
1963
|
+
* @deprecated beta - Status single select filter component that renders a custom dropdown menu
|
|
1964
|
+
* @example <StatusSingleEditor options={options} value={value} onChange={onChange} />
|
|
1965
|
+
*/
|
|
1966
|
+
declare const StatusSingleEditor: ({ options, value, disabled, readOnly, onChange, valueTestId, }: SingleValueComboboxProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1967
|
+
/**
|
|
1968
|
+
* @deprecated beta - Renders a text input field for filtering
|
|
1969
|
+
* @example <TextEditor ariaLabel="Search" value={value} onChange={onChange} />
|
|
1970
|
+
*/
|
|
1971
|
+
declare const TextEditor: ({ onChange, ariaLabel, value, readOnly, valueTestId, }: FilterEditorCommonInputProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1972
|
+
/**
|
|
1973
|
+
* @deprecated beta - Renders a number range input field for filtering
|
|
1974
|
+
* @example <NumberRangeEditor ariaLabel="Number Range" value={value} onChange={onChange} />
|
|
1975
|
+
*/
|
|
1976
|
+
declare const NumberRangeEditor: ({ onChange, disabled, ariaLabel, value, readOnly, valueTestId, }: FilterEditorCommonInputProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1977
|
+
/**
|
|
1978
|
+
* @deprecated beta - Renders a number input field for filtering
|
|
1979
|
+
* @example <NumberEditor ariaLabel="Number" value={value} onChange={onChange} />
|
|
1980
|
+
*/
|
|
1981
|
+
declare const NumberEditor: ({ ariaLabel, onChange, disabled, value, readOnly, valueTestId, }: FilterEditorCommonInputProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1982
|
+
/**
|
|
1983
|
+
* @deprecated beta - Renders a date input field for filtering
|
|
1984
|
+
* @example <DateEditor ariaLabel="Date" value={value} onChange={onChange} />
|
|
1985
|
+
*/
|
|
1986
|
+
declare const DateEditor: ({ onChange, ariaLabel, disabled, value, readOnly, valueTestId, }: FilterEditorCommonInputProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1987
|
+
/**
|
|
1988
|
+
* @deprecated beta - Renders a date range input field for filtering
|
|
1989
|
+
* @example <DateRangeEditor ariaLabel="Date Range" value={value} onChange={onChange} />
|
|
1990
|
+
*/
|
|
1991
|
+
declare const DateRangeEditor: ({ ariaLabel, onChange, disabled, value, readOnly, valueTestId, }: FilterEditorCommonInputProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1992
|
+
type FilterEditorRendererProps = Pick<FilterOption, 'readOnly' | 'disabled' | 'bindable'> & {
|
|
1993
|
+
/** The type of filter editor to render */
|
|
1994
|
+
editorType: FilterEditor;
|
|
1995
|
+
/** The options for the filter editor */
|
|
1996
|
+
options?: Array<Operator>;
|
|
1997
|
+
/** The value for the filter editor */
|
|
1998
|
+
value?: string | string[] | InputOption[] | InputOption;
|
|
1999
|
+
/** The onChange event for the filter editor */
|
|
2000
|
+
onChange: (e: string) => void;
|
|
2001
|
+
/** Sets the data-testid value */
|
|
2002
|
+
valueTestId?: string;
|
|
2003
|
+
};
|
|
2004
|
+
/**
|
|
2005
|
+
* @deprecated beta - Renders a filter editor component
|
|
2006
|
+
* @example <FilterEditorRenderer editorType="multiChoice" options={options} value={value} onChange={onChange} />
|
|
2007
|
+
*/
|
|
2008
|
+
declare const FilterEditorRenderer: ({ editorType, ...props }: FilterEditorRendererProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
2009
|
+
/** @deprecated beta - A mapper for filter editor components */
|
|
2010
|
+
declare const filterMapper: Record<FilterEditor, ComponentType<any> | null>;
|
|
2011
|
+
declare const bindableFiltersMapper: {
|
|
2012
|
+
multiChoice: React__default.FC<MultiValueComboboxProps>;
|
|
2013
|
+
singleChoice: React__default.FC<SingleValueComboboxProps>;
|
|
2014
|
+
date: React__default.FC<FilterEditorCommonInputProps & {
|
|
2015
|
+
value?: string | undefined;
|
|
2016
|
+
options?: {
|
|
2017
|
+
label: string;
|
|
2018
|
+
value: string;
|
|
2019
|
+
}[] | undefined;
|
|
2020
|
+
}>;
|
|
2021
|
+
text: React__default.FC<FilterEditorCommonInputProps & {
|
|
2022
|
+
value?: string | undefined;
|
|
2023
|
+
options?: {
|
|
2024
|
+
label: string;
|
|
2025
|
+
value: string;
|
|
2026
|
+
}[] | undefined;
|
|
2027
|
+
}>;
|
|
2028
|
+
number: React__default.FC<FilterEditorCommonInputProps & {
|
|
2029
|
+
value?: string | undefined;
|
|
2030
|
+
options?: {
|
|
2031
|
+
label: string;
|
|
2032
|
+
value: string;
|
|
2033
|
+
}[] | undefined;
|
|
2034
|
+
}>;
|
|
2035
|
+
dateRange: React__default.ComponentType<any> | null;
|
|
2036
|
+
empty: React__default.ComponentType<any> | null;
|
|
2037
|
+
numberRange: React__default.ComponentType<any> | null;
|
|
2038
|
+
statusMultiChoice: React__default.ComponentType<any> | null;
|
|
2039
|
+
statusSingleChoice: React__default.ComponentType<any> | null;
|
|
2040
|
+
};
|
|
2041
|
+
|
|
2042
|
+
type FilterMapper = Record<string, ComponentType<any> | null>;
|
|
2043
|
+
type SearchAndFilterProviderProps = {
|
|
2044
|
+
/** sets the filter values */
|
|
2045
|
+
filters: Filter[];
|
|
2046
|
+
/** sets the filter visibility */
|
|
2047
|
+
filterVisible?: boolean;
|
|
2048
|
+
/** function to trigger search change event */
|
|
2049
|
+
onSearchChange?: (term: string) => void;
|
|
2050
|
+
/** function to trigger filter change events */
|
|
2051
|
+
onChange: (filters: Filter[]) => void;
|
|
2052
|
+
/** Sets default value for full text search input, useful for bindable search */
|
|
2053
|
+
defaultSearchTerm?: string;
|
|
2054
|
+
/** sets the reset filter values
|
|
2055
|
+
* @default "[{ field: '', operator: '', value: '' }]"
|
|
2056
|
+
*/
|
|
2057
|
+
resetFilterValues?: Filter[];
|
|
2058
|
+
/** sets the list of filter options for each filter row */
|
|
2059
|
+
filterOptions: FilterOption[];
|
|
2060
|
+
/** the total number of results */
|
|
2061
|
+
totalResults?: number;
|
|
2062
|
+
/** the filter mapper function */
|
|
2063
|
+
filterMapper?: FilterMapper;
|
|
2064
|
+
/** sets child components giving access to useSearchAndFilter context */
|
|
2065
|
+
children: ReactNode;
|
|
2066
|
+
/** Allow to bind dynamic inputs to the search term */
|
|
2067
|
+
allowBindingSearchTerm?: boolean;
|
|
2068
|
+
};
|
|
2069
|
+
type SearchAndFilterContextProps = {
|
|
2070
|
+
/** the search term value */
|
|
2071
|
+
searchTerm: string;
|
|
2072
|
+
/** sets the search term value */
|
|
2073
|
+
setSearchTerm: (term: string) => void;
|
|
2074
|
+
/** current filter visibility */
|
|
2075
|
+
filterVisibility?: boolean;
|
|
2076
|
+
/** sets the filter visibility */
|
|
2077
|
+
setFilterVisibility: (visible: boolean) => void;
|
|
2078
|
+
/** sets the initial filters */
|
|
2079
|
+
filters: Filter[];
|
|
2080
|
+
/** function to update the current filters */
|
|
2081
|
+
setFilters: (updatedFilters: Filter[]) => void;
|
|
2082
|
+
/** function that adds a blank set of filter options */
|
|
2083
|
+
handleAddFilter: () => void;
|
|
2084
|
+
/** function to reset all filter values and search term */
|
|
2085
|
+
handleResetFilters: () => void;
|
|
2086
|
+
/** function that deletes a row and it's values visually and from state */
|
|
2087
|
+
handleDeleteFilter: (index: number) => void;
|
|
2088
|
+
/** sets the initial list of filter options */
|
|
2089
|
+
filterOptions: FilterOption[];
|
|
2090
|
+
/** a valid list of valid filter options */
|
|
2091
|
+
validFilterQuery: Filter[] | undefined;
|
|
2092
|
+
/** a component list to map filter options */
|
|
2093
|
+
filterMapper?: FilterMapper;
|
|
2094
|
+
/** the total number of results */
|
|
2095
|
+
totalResults?: number;
|
|
2096
|
+
/** Allow to bind dynamic inputs to the search term */
|
|
2097
|
+
allowBindingSearchTerm?: boolean;
|
|
2098
|
+
};
|
|
2099
|
+
declare const SearchAndFilterContext: React$1.Context<SearchAndFilterContextProps>;
|
|
2100
|
+
/**
|
|
2101
|
+
* @deprecated beta - Search and filter provider
|
|
2102
|
+
* @example <SearchAndFilterProvider filters={filters} filterOptions={filterOptions} onSearchChange={onSearchChange} onChange={onChange}>Children</SearchAndFilterProvider>
|
|
2103
|
+
* */
|
|
2104
|
+
declare const SearchAndFilterProvider: ({ filters, filterOptions, filterVisible, defaultSearchTerm, onSearchChange, onChange, resetFilterValues, totalResults, filterMapper, children, allowBindingSearchTerm, }: SearchAndFilterProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
2105
|
+
/** @deprecated beta - Search and filter hook
|
|
2106
|
+
* @example const { searchTerm, setSearchTerm, filterVisibility, setFilterVisibility, filters, setFilters, handleAddFilter, handleResetFilters, handleDeleteFilter, filterOptions, validFilterQuery } = useSearchAndFilter();
|
|
2107
|
+
*/
|
|
2108
|
+
declare const useSearchAndFilter: () => {
|
|
2109
|
+
/** the search term value */
|
|
2110
|
+
searchTerm: string;
|
|
2111
|
+
/** sets the search term value */
|
|
2112
|
+
setSearchTerm: (term: string) => void;
|
|
2113
|
+
/** current filter visibility */
|
|
2114
|
+
filterVisibility?: boolean | undefined;
|
|
2115
|
+
/** sets the filter visibility */
|
|
2116
|
+
setFilterVisibility: (visible: boolean) => void;
|
|
2117
|
+
/** sets the initial filters */
|
|
2118
|
+
filters: Filter[];
|
|
2119
|
+
/** function to update the current filters */
|
|
2120
|
+
setFilters: (updatedFilters: Filter[]) => void;
|
|
2121
|
+
/** function that adds a blank set of filter options */
|
|
2122
|
+
handleAddFilter: () => void;
|
|
2123
|
+
/** function to reset all filter values and search term */
|
|
2124
|
+
handleResetFilters: () => void;
|
|
2125
|
+
/** function that deletes a row and it's values visually and from state */
|
|
2126
|
+
handleDeleteFilter: (index: number) => void;
|
|
2127
|
+
/** sets the initial list of filter options */
|
|
2128
|
+
filterOptions: FilterOption[];
|
|
2129
|
+
/** a valid list of valid filter options */
|
|
2130
|
+
validFilterQuery: Filter[] | undefined;
|
|
2131
|
+
/** a component list to map filter options */
|
|
2132
|
+
filterMapper?: FilterMapper | undefined;
|
|
2133
|
+
/** the total number of results */
|
|
2134
|
+
totalResults?: number | undefined;
|
|
2135
|
+
/** Allow to bind dynamic inputs to the search term */
|
|
2136
|
+
allowBindingSearchTerm?: boolean | undefined;
|
|
2137
|
+
};
|
|
2138
|
+
|
|
2139
|
+
type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
|
|
2140
|
+
/** The filter controls to be displayed
|
|
2141
|
+
* @default '<FilterControls />'
|
|
2142
|
+
*/
|
|
2143
|
+
filterControls?: React$1.ReactNode;
|
|
2144
|
+
/** sets the filter mode */
|
|
2145
|
+
filterVisible?: boolean;
|
|
2146
|
+
/** The view switch controls to be displayed */
|
|
2147
|
+
viewSwitchControls?: React$1.ReactNode;
|
|
2148
|
+
/** The number of total results */
|
|
2149
|
+
totalResults?: number;
|
|
2150
|
+
/** The results container view
|
|
2151
|
+
* @default '<SearchAndFilterResultContainer />'
|
|
2152
|
+
*/
|
|
2153
|
+
resultsContainerView?: React$1.ReactNode;
|
|
2154
|
+
/** sets the reset filter values */
|
|
2155
|
+
resetFilterValues?: Filter[];
|
|
2156
|
+
/** The filter mapper function */
|
|
2157
|
+
filterMapper?: Record<FilterEditor, React$1.ComponentType<any> | null>;
|
|
2158
|
+
/** Component to render inside filters container right below main Filters widget
|
|
2159
|
+
* that should contain additional controls like filters
|
|
2160
|
+
* which do not fit main structure or sorting */
|
|
2161
|
+
additionalFiltersContainer?: React$1.ReactNode;
|
|
2162
|
+
};
|
|
2163
|
+
/**
|
|
2164
|
+
* @deprecated beta - Search and filter component
|
|
2165
|
+
* @example <SearchAndFilter filters={filters} filterOptions={filterOptions} onChange={onChange} onSearchChange={onSearchChange} onSearchReset={onSearchReset} totalResults={totalResults} />
|
|
2166
|
+
* */
|
|
2167
|
+
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;
|
|
2168
|
+
|
|
2169
|
+
type FilterRowProps = {
|
|
2170
|
+
/** the index of the filter row */
|
|
2171
|
+
index: number;
|
|
2172
|
+
/** the list of filter options for each filter row */
|
|
2173
|
+
paramOptions: FilterOption[];
|
|
2174
|
+
/** function to trigger filter change events */
|
|
2175
|
+
onParamChange: (e: string) => void;
|
|
2176
|
+
/** the list of operator options for each filter row */
|
|
2177
|
+
operatorOptions: Operator[];
|
|
2178
|
+
/** function to trigger operator change events */
|
|
2179
|
+
onOperatorChange: (e: string) => void;
|
|
2180
|
+
/** function to trigger value change events */
|
|
2181
|
+
onValueChange: (e: string) => void;
|
|
2182
|
+
/** the list of value options for each filter row */
|
|
2183
|
+
valueOptions: InputOption[];
|
|
2184
|
+
};
|
|
2185
|
+
/** @deprecated beta - A filter item component used to display filter options */
|
|
2186
|
+
declare const FilterItem: ({ index, paramOptions, operatorOptions, valueOptions, onParamChange, onOperatorChange, onValueChange, }: FilterRowProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
2187
|
+
type FilterItemsProps = {
|
|
2188
|
+
/** The text for the add button */
|
|
2189
|
+
addButtonText?: string;
|
|
2190
|
+
additionalFiltersContainer: SearchAndFilterProps['additionalFiltersContainer'];
|
|
2191
|
+
};
|
|
2192
|
+
/** @deprecated beta - A filter items component used to display filter options */
|
|
2193
|
+
declare const FilterItems: ({ addButtonText, additionalFiltersContainer, }: FilterItemsProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
2194
|
+
|
|
2195
|
+
type SearchAndFilterOptionsContainerProps = {
|
|
2196
|
+
/** The button row to be displayed at the bottom of the container */
|
|
2197
|
+
buttonRow?: React__default.ReactNode;
|
|
2198
|
+
/** The children of the container */
|
|
2199
|
+
children: React__default.ReactNode;
|
|
2200
|
+
additionalFiltersContainer?: SearchAndFilterProps['additionalFiltersContainer'];
|
|
2201
|
+
};
|
|
2202
|
+
/**
|
|
2203
|
+
* @deprecated beta - A container component for search and filter options
|
|
2204
|
+
* @example <SearchAndFilterOptionsContainer buttonRow={<button>Button</button>}>Children</SearchAndFilterOptionsContainer>
|
|
2205
|
+
* */
|
|
2206
|
+
declare const SearchAndFilterOptionsContainer: ({ buttonRow, additionalFiltersContainer, children, }: SearchAndFilterOptionsContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
2207
|
+
type FiltersProps = {
|
|
2208
|
+
/** The id of the filter menu */
|
|
2209
|
+
id: string;
|
|
2210
|
+
/** The text for the filter title */
|
|
2211
|
+
filterTitle?: string;
|
|
2212
|
+
/** The controls to be displayed at the bottom of the filter menu */
|
|
2213
|
+
menuControls?: React__default.ReactNode;
|
|
2214
|
+
/** The children of the filter menu */
|
|
2215
|
+
children: React__default.ReactNode;
|
|
2216
|
+
/** Sets the data-test-id attribute for the filter menu */
|
|
2217
|
+
dataTestId?: string;
|
|
2218
|
+
/** The text for the reset button
|
|
2219
|
+
* @default 'reset'
|
|
2220
|
+
*/
|
|
2221
|
+
resetButtonText?: string;
|
|
2222
|
+
additionalFiltersContainer?: SearchAndFilterProps['additionalFiltersContainer'];
|
|
2223
|
+
};
|
|
2224
|
+
/**
|
|
2225
|
+
* @deprecated beta - A filter menu component used to display filter options
|
|
2226
|
+
* @example <FilterMenu id="search-and-filter-options">Children</FilterMenu>
|
|
2227
|
+
* */
|
|
2228
|
+
declare const FilterMenu: ({ id, filterTitle, menuControls, additionalFiltersContainer, children, dataTestId, resetButtonText, }: FiltersProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
2229
|
+
|
|
2230
|
+
type SearchAndFilterResultContainerProps = {
|
|
2231
|
+
/** The label for the clear button
|
|
2232
|
+
* @default 'Clear'
|
|
2233
|
+
*/
|
|
2234
|
+
clearButtonLabel?: string;
|
|
2235
|
+
/** The text for the button */
|
|
2236
|
+
buttonText?: string;
|
|
2237
|
+
/** The title for the callout */
|
|
2238
|
+
calloutTitle?: string;
|
|
2239
|
+
/** The text for the callout */
|
|
2240
|
+
calloutText?: string;
|
|
2241
|
+
/** The function to handle the clear button */
|
|
2242
|
+
onHandleClear?: () => void;
|
|
2243
|
+
/** Sets whether to show or hide both clear search buttons */
|
|
2244
|
+
hideClearButton?: boolean;
|
|
2245
|
+
};
|
|
2246
|
+
/** @deprecated beta - Search and filter results container */
|
|
2247
|
+
declare const SearchAndFilterResultContainer: ({ buttonText, clearButtonLabel, calloutTitle, calloutText, onHandleClear, hideClearButton, }: SearchAndFilterResultContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
2248
|
+
|
|
2249
|
+
declare const SearchOnlyContext: React$1.Context<Pick<SearchAndFilterContextProps, "searchTerm" | "setSearchTerm">>;
|
|
2250
|
+
type SearchOnlyProviderProps = Pick<SearchAndFilterProviderProps, 'onSearchChange'> & {
|
|
2251
|
+
/** sets the max width of input wrapper
|
|
2252
|
+
* @default '712px'
|
|
2253
|
+
*/
|
|
2254
|
+
maxWidth?: string;
|
|
2255
|
+
};
|
|
2256
|
+
declare const SearchOnlyFilter: ({ onSearchChange, maxWidth }: SearchOnlyProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
2257
|
+
|
|
2258
|
+
type SortItemsProps = {
|
|
2259
|
+
/** The label for the sort by field
|
|
2260
|
+
* @default 'Sort by'
|
|
2261
|
+
*/
|
|
2262
|
+
sortByLabel?: string;
|
|
2263
|
+
/** The label for the locale returned field
|
|
2264
|
+
* @default 'Enabled locale'
|
|
2265
|
+
*/
|
|
2266
|
+
localeLabel?: string;
|
|
2267
|
+
/** sets the list of sort options */
|
|
2268
|
+
sortOptions: FilterOption[];
|
|
2269
|
+
/** the default sort by value */
|
|
2270
|
+
sortByValue?: string;
|
|
2271
|
+
/** function to trigger sort change events */
|
|
2272
|
+
onSortChange: (sort: string) => void;
|
|
2273
|
+
/** sets the list of locale options */
|
|
2274
|
+
localeOptions?: InputOption[];
|
|
2275
|
+
/** function to trigger locale change events */
|
|
2276
|
+
onLocaleChange?: (locale: string) => void;
|
|
2277
|
+
/** sets the default locale option value */
|
|
2278
|
+
localeValue?: string;
|
|
2279
|
+
/**
|
|
2280
|
+
* Optionally disable the binding for sorting inputs.
|
|
2281
|
+
* Mostly used to disable binding for Single/Multiple data resources
|
|
2282
|
+
*/
|
|
2283
|
+
disableSortBinding?: boolean;
|
|
2284
|
+
};
|
|
2285
|
+
/**
|
|
2286
|
+
Copy of Design System <SortItems > component with ability to bind variables to inputs.
|
|
2287
|
+
*/
|
|
2288
|
+
declare const SortItems: ({ sortByLabel, localeLabel, sortOptions, sortByValue, onSortChange, localeValue, localeOptions, onLocaleChange, disableSortBinding, }: SortItemsProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
2289
|
+
|
|
1686
2290
|
/** Converts connected data map into VariablesProvider-format variables */
|
|
1687
2291
|
declare function useConnectedDataAsVariables(connectedData: Record<string, unknown> | undefined): Record<string, MeshDataVariableDefinition>;
|
|
1688
2292
|
|
|
@@ -1734,4 +2338,4 @@ type ContentDataResourceLocaleInfoProps = {
|
|
|
1734
2338
|
};
|
|
1735
2339
|
declare function useContentDataResourceLocaleInfo({ locale, setLocale, dynamicInputs, }: ContentDataResourceLocaleInfoProps): ContentDataResourceLocaleInfoResult;
|
|
1736
2340
|
|
|
1737
|
-
export { $createVariableNode, $isVariableNode, type BaseRequestData, type Brand, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledValuePlugin, DISCONNECT_VARIABLE_COMMAND, type DamItem, DamSelectedItem, type DamSelectedItemProps, DataRefreshButton, type DataRefreshButtonProps, DataResourceDynamicInputProvider, type DataResourceDynamicInputProviderProps, type DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListExplicit, type DataResourceVariablesListProps, DataSourceEditor, type DataSourceEditorProps, DataTypeEditor, type DataTypeEditorProps, type DataVariableDefinitionWithName, DefaultSearchRow, DefaultSelectedItem, type DisconnectVariableCommandArguments, type DispatchResult, EDIT_VARIABLE_COMMAND, type EditVariableCommandArguments, EntrySearch, type EntrySearchContentType, type EntrySearchProps, type EntrySearchQueryOptions, type EntrySearchResult, type EntrySearchRowProps, type EntrySearchSelectedItemProps, type GetProductOptions, type GetProductsOptions, INSERT_VARIABLE_COMMAND, index as Icons, InputVariables, type InputVariablesProps, type InsertVariableCommandArguments, type ItemListProps, type KnownUndefinedVariableInfo, LinkButton, MeshApp, type MeshAppProps, type MeshDataVariableDefinition, type NoResultsProps, OPEN_INSERT_VARIABLE_COMMAND, ObjectSearchContainer, type ObjectSearchContainerProps, type ObjectSearchContextProps, ObjectSearchFilter, ObjectSearchFilterContainer, type ObjectSearchFilterContainerProps, type ObjectSearchFilterProps, ObjectSearchListItem, ObjectSearchListItemLoadingSkeleton, type ObjectSearchListItemProps, ObjectSearchProvider, type ObjectSearchProviderProps, ObjectSearchResultItem, ObjectSearchResultItemButton, type ObjectSearchResultItemButtonProps, type ObjectSearchResultItemProps, ObjectSearchResultList, type ObjectSearchResultListProps, ParamTypeDynamicDataProvider, type ParamTypeDynamicDataProviderProps, type ParameterConnectOptions, ParameterConnectionIndicator, type ParameterConnectionIndicatorProps, ParameterOrSingleVariable, type ParameterOrSingleVariableProps, ParameterVariables, type ParameterVariablesProps, type ProductCategory, type ProductDynamicSelectorValue, ProductPreviewList, ProductQuery, type ProductQueryCategory, ProductQueryContext, type ProductQueryContextValue, type ProductQueryProps, ProductSearch, ProductSearchContext, type ProductSearchContextValue, type ProductSearchProps, type ProductSearchResult, type ProductSearchResults, ProductSearchRow, ProductSelectedItem, QueryFilter, type QueryFilterProps, type QueryFilterSearchProps, type RequestAction, RequestBody, type RequestContext, type RequestData, RequestHeaders, RequestMethodSelect, type RequestParameter, RequestParameters, type RequestParametersProps, RequestProvider, type RequestProviderProps, RequestTypeContainer, type RequestTypeContainerProps, RequestUrl, RequestUrlInput, ResolvableLoadingValue, type SearchQueryProps, type SelectedItemProps, SelectionField, type SelectionFieldValue, type SerializedVariableNode, type SetLocationValueDispatch, type SetLocationValueFunction, TextVariableRenderer, type UseVariablesMenu, type UseVariablesMenuInput, VariableEditor, type VariableEditorCompleteEvent, type VariableEditorProps, VariableNode, type VariableNodeState, type VariableSourceGroup, type VariablesAction, type VariablesContext, type VariablesEvents, VariablesList, VariablesPlugin, type VariablesPluginProps, VariablesProvider, type VariablesProviderProps, badgeIcon, convertConnectedDataToVariable, createLocationValidator, damSelectItemImage, damSelectedItemContainer, damSelectedItemCopy, damSelectedItemDetails, damSelectedItemIcon, damSelectedItemInfoBtn, damSelectedItemInner, damSelectedItemLinkBtn, damSelectedItemLinkContainer, damSelectedItemMediaContainer, damSelectedItemPopover, damSelectedItemPopoverLabel, damSelectedItemSmallText, damSelectedItemTitle, draggableContainer, draggableIcon, draggableIconOffset, draggableIconWrapper, entrySearchBtn, entrySearchConfig, entrySearchConfigHidden, entrySearchLoadMoreBtn, entrySearchResultList, entrySearchSelectIcon, entrySearchSelectImg, entrySearchSelectInput, entrySearchSelectOption, entrySearchWrapper, hasReferencedVariables, prettifyBindExpression, productSearchRowActiveIcon, productSearchRowCategory, productSearchRowContainer, productSearchRowContent, productSearchRowContentActive, productSearchRowDetails, productSearchRowTitle, productSelectedItemContainer, productSelectedItemContent, productSelectedItemDetails, productSelectedItemIcon, productSelectedItemImage, productSelectedItemLinkContainer, productedSelectedItemLinkBtn, productedSelectedItemSmallText, searchRowBtn, searchRowContainer, searchRowContainerActive, searchRowContainerWithPopover, searchRowPopover, searchRowText, searchRowTextSmall, selectItemLinkBtn, selectItemLinkContainer, selectItemPopover, selectItemPopoverLabel, selectItemSmallText, selectedItemContainer, selectedItemCopy, selectedItemDetails, selectedItemIcon, selectedItemInner, selectedItemTitle, serializeVariablesEditorState, setVariablesEditorValue, urlEncodeRequestParameter, urlEncodeRequestUrl, useConnectedDataAsVariables, useContentDataResourceLocaleInfo, useDynamicInputsAsVariables, useMeshLocation, useObjectSearchContext, useProductQueryContext, useProductSearchContext, useRequest, useRequestHeader, useRequestParameter, useUniformMeshSdk, useVariableEditor, useVariables, useVariablesMenu, variableDefaultTextValue, variablePrefix, variableSuffix, variablesToGroupedList, variablesToList };
|
|
2341
|
+
export { $createVariableNode, $isVariableNode, type BaseRequestData, type Brand, CHECKBOX_OPERATORS, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledObjectSearchProvider, type ControlledObjectSearchProviderProps, ControlledValuePlugin, DATE_OPERATORS, DISCONNECT_VARIABLE_COMMAND, type DamItem, DamSelectedItem, type DamSelectedItemProps, DataRefreshButton, type DataRefreshButtonProps, DataResourceDynamicInputProvider, type DataResourceDynamicInputProviderProps, DataResourceInputContext, type DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListExplicit, type DataResourceVariablesListProps, DataSourceEditor, type DataSourceEditorProps, DataTypeEditor, type DataTypeEditorProps, type DataVariableDefinitionWithName, DateEditor, DateRangeEditor, DefaultSearchRow, DefaultSelectedItem, type DisconnectVariableCommandArguments, type DispatchResult, EDIT_VARIABLE_COMMAND, type EditVariableCommandArguments, EntrySearch, type EntrySearchContentType, type EntrySearchProps, type EntrySearchQueryOptions, type EntrySearchResult, type EntrySearchRowProps, type EntrySearchSelectedItemProps, type Filter, FilterButton, type FilterButtonProps, FilterControls, type FilterEditor, type FilterEditorCommonInputProps, type FilterEditorProps, FilterEditorRenderer, type FilterEditorRendererProps, FilterItem, FilterItems, type FilterItemsProps, type FilterMapper, FilterMenu, FilterMultiChoiceEditor, type FilterOption, type FilterRowProps, FilterSingleChoiceEditor, type FiltersProps, type GetProductOptions, type GetProductsOptions, INSERT_VARIABLE_COMMAND, index as Icons, type InputOption, InputVariables, type InputVariablesProps, type InsertVariableCommandArguments, type ItemListProps, type KnownUndefinedVariableInfo, type KnownUndefinedVariableInfoWithName, LinkButton, MULTI_SELECT_OPERATORS, MeshApp, type MeshAppProps, type MeshDataVariableDefinition, NUMBER_OPERATORS, type NoResultsProps, NumberEditor, NumberRangeEditor, OPEN_INSERT_VARIABLE_COMMAND, ObjectSearchContainer, type ObjectSearchContainerProps, ObjectSearchContext, type ObjectSearchContextProps, ObjectSearchFilter, ObjectSearchFilterContainer, type ObjectSearchFilterContainerProps, type ObjectSearchFilterProps, ObjectSearchListItem, ObjectSearchListItemLoadingSkeleton, type ObjectSearchListItemProps, ObjectSearchListOfSearchResults, ObjectSearchProvider, type ObjectSearchProviderProps, ObjectSearchResultItem, ObjectSearchResultItemButton, type ObjectSearchResultItemButtonProps, type ObjectSearchResultItemProps, ObjectSearchResultList, type ObjectSearchResultListProps, type Operator, type OperatorType, type OperatorValue, type OperatorValueType, PUBLISH_STATUS_FIELD_OPERATORS, ParamTypeDynamicDataProvider, type ParamTypeDynamicDataProviderProps, type ParameterConnectOptions, ParameterConnectionIndicator, type ParameterConnectionIndicatorProps, ParameterOrSingleVariable, type ParameterOrSingleVariableProps, ParameterVariables, type ParameterVariablesProps, type ProductCategory, type ProductDynamicSelectorValue, ProductPreviewList, ProductQuery, type ProductQueryCategory, ProductQueryContext, type ProductQueryContextValue, type ProductQueryProps, ProductSearch, ProductSearchContext, type ProductSearchContextValue, type ProductSearchProps, type ProductSearchResult, type ProductSearchResults, ProductSearchRow, ProductSelectedItem, QueryFilter, type QueryFilterProps, type QueryFilterSearchProps, RICHTEXT_OPERATORS, type RequestAction, RequestBody, type RequestContext, type RequestData, RequestHeaders, RequestMethodSelect, type RequestParameter, RequestParameters, type RequestParametersProps, RequestProvider, type RequestProviderProps, RequestTypeContainer, type RequestTypeContainerProps, RequestUrl, RequestUrlInput, ResolvableLoadingValue, SELECT_OPERATORS, SYSTEM_DATE_OPERATORS, SYSTEM_FIELD_OPERATORS, SearchAndFilter, SearchAndFilterContext, type SearchAndFilterContextProps, SearchAndFilterOptionsContainer, type SearchAndFilterOptionsContainerProps, type SearchAndFilterProps, SearchAndFilterProvider, type SearchAndFilterProviderProps, SearchAndFilterResultContainer, type SearchAndFilterResultContainerProps, SearchOnlyContext, SearchOnlyFilter, type SearchOnlyProviderProps, type SearchQueryProps, type SelectedItemProps, SelectionField, type SelectionFieldValue, type SerializedVariableNode, type SetLocationValueDispatch, type SetLocationValueFunction, SortItems, type SortItemsProps, StatusMultiEditor, StatusSingleEditor, TEXTBOX_OPERATORS, TextEditor, TextVariableRenderer, USER_OPERATORS, type UseVariablesMenu, type UseVariablesMenuInput, VariableEditor, type VariableEditorCompleteEvent, type VariableEditorProps, VariableNode, type VariableNodeState, type VariableSourceGroup, type VariablesAction, type VariablesContext, type VariablesEvents, VariablesList, VariablesPlugin, type VariablesPluginProps, VariablesProvider, type VariablesProviderProps, badgeIcon, bindQuery, bindableFiltersMapper, convertConnectedDataToVariable, createLocationValidator, damSelectItemImage, damSelectedItemContainer, damSelectedItemCopy, damSelectedItemDetails, damSelectedItemIcon, damSelectedItemInfoBtn, damSelectedItemInner, damSelectedItemLinkBtn, damSelectedItemLinkContainer, damSelectedItemMediaContainer, damSelectedItemPopover, damSelectedItemPopoverLabel, damSelectedItemSmallText, damSelectedItemTitle, draggableContainer, draggableIcon, draggableIconOffset, draggableIconWrapper, entrySearchBtn, entrySearchConfig, entrySearchConfigHidden, entrySearchLoadMoreBtn, entrySearchResultList, entrySearchSelectIcon, entrySearchSelectImg, entrySearchSelectInput, entrySearchSelectOption, entrySearchWrapper, filterMapper, hasReferencedVariables, prettifyBindExpression, productSearchRowActiveIcon, productSearchRowCategory, productSearchRowContainer, productSearchRowContent, productSearchRowContentActive, productSearchRowDetails, productSearchRowTitle, productSelectedItemContainer, productSelectedItemContent, productSelectedItemDetails, productSelectedItemIcon, productSelectedItemImage, productSelectedItemLinkContainer, productedSelectedItemLinkBtn, productedSelectedItemSmallText, searchRowBtn, searchRowContainer, searchRowContainerActive, searchRowContainerWithPopover, searchRowPopover, searchRowText, searchRowTextSmall, selectItemLinkBtn, selectItemLinkContainer, selectItemPopover, selectItemPopoverLabel, selectItemSmallText, selectedItemContainer, selectedItemCopy, selectedItemDetails, selectedItemIcon, selectedItemInner, selectedItemTitle, serializeVariablesEditorState, setVariablesEditorValue, urlEncodeRequestParameter, urlEncodeRequestUrl, useConnectedDataAsVariables, useContentDataResourceLocaleInfo, useDataResourceDynamicInputs, useDynamicInputsAsVariables, useMeshLocation, useObjectSearchContext, useProductQueryContext, useProductSearchContext, useRequest, useRequestHeader, useRequestParameter, useSearchAndFilter, useUniformMeshSdk, useVariableEditor, useVariables, useVariablesMenu, variableDefaultTextValue, variablePrefix, variableSuffix, variablesToGroupedList, variablesToList };
|