@uniformdev/mesh-sdk-react 19.147.1-alpha.3 → 19.147.1-alpha.5
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 +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.esm.js +92 -28
- package/dist/index.js +93 -28
- package/dist/index.mjs +92 -28
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -872,12 +872,16 @@ type ParameterConnectionIndicatorProps = {
|
|
|
872
872
|
menuOptions: ReactNode;
|
|
873
873
|
/** Sets the tooltip shown on hover over the insert-variable menu */
|
|
874
874
|
menuTooltip?: string;
|
|
875
|
+
/**
|
|
876
|
+
* @deprecated beta used internally
|
|
877
|
+
* Sets margin bottom styles for the menu button, we use margin to allow for negative values */
|
|
878
|
+
overrideMenuButtonParentMargin?: number | string;
|
|
875
879
|
};
|
|
876
880
|
/**
|
|
877
881
|
* An input box that enables insertion of 'variables', provided by VariablesProvider,
|
|
878
882
|
* into its value. Designed specifically for use in the Canvas Parameter Editor.
|
|
879
883
|
*/
|
|
880
|
-
declare function ParameterConnectionIndicator({ children, value, menuOptions, disabled, menuTooltip, }: ParameterConnectionIndicatorProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
884
|
+
declare function ParameterConnectionIndicator({ children, value, menuOptions, disabled, menuTooltip, overrideMenuButtonParentMargin, }: ParameterConnectionIndicatorProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
881
885
|
|
|
882
886
|
type ParameterOrSingleVariableProps<TEditorContext = unknown> = {
|
|
883
887
|
disabled?: boolean;
|
|
@@ -1791,6 +1795,8 @@ declare const CHECKBOX_OPERATORS: OperatorType;
|
|
|
1791
1795
|
declare const SYSTEM_FIELD_OPERATORS: OperatorType;
|
|
1792
1796
|
/** @deprecated beta - uniform publish status field operators */
|
|
1793
1797
|
declare const PUBLISH_STATUS_FIELD_OPERATORS: OperatorType;
|
|
1798
|
+
/** @deprecated beta - uniform select field operators */
|
|
1799
|
+
declare const SELECT_OPERATORS: OperatorType;
|
|
1794
1800
|
|
|
1795
1801
|
/** @description beta - filter button type */
|
|
1796
1802
|
type FilterButtonProps = {
|
|
@@ -2243,4 +2249,4 @@ type ContentDataResourceLocaleInfoProps = {
|
|
|
2243
2249
|
};
|
|
2244
2250
|
declare function useContentDataResourceLocaleInfo({ locale, setLocale, dynamicInputs, }: ContentDataResourceLocaleInfoProps): ContentDataResourceLocaleInfoResult;
|
|
2245
2251
|
|
|
2246
|
-
export { $createVariableNode, $isVariableNode, type BaseRequestData, type Brand, CHECKBOX_OPERATORS, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledValuePlugin, DATE_OPERATORS, 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, 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, MeshApp, type MeshAppProps, type MeshDataVariableDefinition, NUMBER_OPERATORS, type NoResultsProps, NumberEditor, NumberRangeEditor, 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, 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, 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, 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, useDynamicInputsAsVariables, useMeshLocation, useObjectSearchContext, useProductQueryContext, useProductSearchContext, useRequest, useRequestHeader, useRequestParameter, useSearchAndFilter, useUniformMeshSdk, useVariableEditor, useVariables, useVariablesMenu, variableDefaultTextValue, variablePrefix, variableSuffix, variablesToGroupedList, variablesToList };
|
|
2252
|
+
export { $createVariableNode, $isVariableNode, type BaseRequestData, type Brand, CHECKBOX_OPERATORS, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledValuePlugin, DATE_OPERATORS, 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, 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, MeshApp, type MeshAppProps, type MeshDataVariableDefinition, NUMBER_OPERATORS, type NoResultsProps, NumberEditor, NumberRangeEditor, 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, 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, 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, useDynamicInputsAsVariables, useMeshLocation, useObjectSearchContext, useProductQueryContext, useProductSearchContext, useRequest, useRequestHeader, useRequestParameter, useSearchAndFilter, useUniformMeshSdk, useVariableEditor, useVariables, useVariablesMenu, variableDefaultTextValue, variablePrefix, variableSuffix, variablesToGroupedList, variablesToList };
|
package/dist/index.d.ts
CHANGED
|
@@ -872,12 +872,16 @@ type ParameterConnectionIndicatorProps = {
|
|
|
872
872
|
menuOptions: ReactNode;
|
|
873
873
|
/** Sets the tooltip shown on hover over the insert-variable menu */
|
|
874
874
|
menuTooltip?: string;
|
|
875
|
+
/**
|
|
876
|
+
* @deprecated beta used internally
|
|
877
|
+
* Sets margin bottom styles for the menu button, we use margin to allow for negative values */
|
|
878
|
+
overrideMenuButtonParentMargin?: number | string;
|
|
875
879
|
};
|
|
876
880
|
/**
|
|
877
881
|
* An input box that enables insertion of 'variables', provided by VariablesProvider,
|
|
878
882
|
* into its value. Designed specifically for use in the Canvas Parameter Editor.
|
|
879
883
|
*/
|
|
880
|
-
declare function ParameterConnectionIndicator({ children, value, menuOptions, disabled, menuTooltip, }: ParameterConnectionIndicatorProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
884
|
+
declare function ParameterConnectionIndicator({ children, value, menuOptions, disabled, menuTooltip, overrideMenuButtonParentMargin, }: ParameterConnectionIndicatorProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
881
885
|
|
|
882
886
|
type ParameterOrSingleVariableProps<TEditorContext = unknown> = {
|
|
883
887
|
disabled?: boolean;
|
|
@@ -1791,6 +1795,8 @@ declare const CHECKBOX_OPERATORS: OperatorType;
|
|
|
1791
1795
|
declare const SYSTEM_FIELD_OPERATORS: OperatorType;
|
|
1792
1796
|
/** @deprecated beta - uniform publish status field operators */
|
|
1793
1797
|
declare const PUBLISH_STATUS_FIELD_OPERATORS: OperatorType;
|
|
1798
|
+
/** @deprecated beta - uniform select field operators */
|
|
1799
|
+
declare const SELECT_OPERATORS: OperatorType;
|
|
1794
1800
|
|
|
1795
1801
|
/** @description beta - filter button type */
|
|
1796
1802
|
type FilterButtonProps = {
|
|
@@ -2243,4 +2249,4 @@ type ContentDataResourceLocaleInfoProps = {
|
|
|
2243
2249
|
};
|
|
2244
2250
|
declare function useContentDataResourceLocaleInfo({ locale, setLocale, dynamicInputs, }: ContentDataResourceLocaleInfoProps): ContentDataResourceLocaleInfoResult;
|
|
2245
2251
|
|
|
2246
|
-
export { $createVariableNode, $isVariableNode, type BaseRequestData, type Brand, CHECKBOX_OPERATORS, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledValuePlugin, DATE_OPERATORS, 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, 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, MeshApp, type MeshAppProps, type MeshDataVariableDefinition, NUMBER_OPERATORS, type NoResultsProps, NumberEditor, NumberRangeEditor, 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, 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, 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, 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, useDynamicInputsAsVariables, useMeshLocation, useObjectSearchContext, useProductQueryContext, useProductSearchContext, useRequest, useRequestHeader, useRequestParameter, useSearchAndFilter, useUniformMeshSdk, useVariableEditor, useVariables, useVariablesMenu, variableDefaultTextValue, variablePrefix, variableSuffix, variablesToGroupedList, variablesToList };
|
|
2252
|
+
export { $createVariableNode, $isVariableNode, type BaseRequestData, type Brand, CHECKBOX_OPERATORS, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledValuePlugin, DATE_OPERATORS, 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, 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, MeshApp, type MeshAppProps, type MeshDataVariableDefinition, NUMBER_OPERATORS, type NoResultsProps, NumberEditor, NumberRangeEditor, 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, 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, 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, useDynamicInputsAsVariables, useMeshLocation, useObjectSearchContext, useProductQueryContext, useProductSearchContext, useRequest, useRequestHeader, useRequestParameter, useSearchAndFilter, useUniformMeshSdk, useVariableEditor, useVariables, useVariablesMenu, variableDefaultTextValue, variablePrefix, variableSuffix, variablesToGroupedList, variablesToList };
|
package/dist/index.esm.js
CHANGED
|
@@ -4205,6 +4205,7 @@ var input = css21`
|
|
|
4205
4205
|
var inputCompact = css21`
|
|
4206
4206
|
border: 1px solid var(--white);
|
|
4207
4207
|
padding-block: var(--spacing-sm);
|
|
4208
|
+
min-height: 39px;
|
|
4208
4209
|
font-size: var(--fs-sm);
|
|
4209
4210
|
`;
|
|
4210
4211
|
var inputDisabled = css21`
|
|
@@ -4214,14 +4215,14 @@ var inputDisabled = css21`
|
|
|
4214
4215
|
var placeholderCaption = css21`
|
|
4215
4216
|
position: absolute;
|
|
4216
4217
|
color: var(--gray-400);
|
|
4217
|
-
inset: var(--spacing-base)
|
|
4218
|
+
inset: 12px var(--spacing-base) 12px var(--spacing-sm);
|
|
4218
4219
|
overflow: hidden;
|
|
4219
4220
|
text-overflow: ellipsis;
|
|
4220
4221
|
white-space: nowrap;
|
|
4221
4222
|
pointer-events: none;
|
|
4222
4223
|
`;
|
|
4223
4224
|
var placeholderCompact = css21`
|
|
4224
|
-
inset: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-
|
|
4225
|
+
inset: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-sm);
|
|
4225
4226
|
`;
|
|
4226
4227
|
|
|
4227
4228
|
// src/components/Variables/styles/ParameterVariables.styles.ts
|
|
@@ -4872,6 +4873,7 @@ function InputVariables(props) {
|
|
|
4872
4873
|
align: "center",
|
|
4873
4874
|
gap: "xs",
|
|
4874
4875
|
css: css24`
|
|
4876
|
+
position: relative;
|
|
4875
4877
|
& > div:first-child {
|
|
4876
4878
|
flex-grow: 1;
|
|
4877
4879
|
}
|
|
@@ -5002,7 +5004,8 @@ function ParameterConnectionIndicator({
|
|
|
5002
5004
|
value,
|
|
5003
5005
|
menuOptions,
|
|
5004
5006
|
disabled,
|
|
5005
|
-
menuTooltip = "Insert variable"
|
|
5007
|
+
menuTooltip = "Insert variable",
|
|
5008
|
+
overrideMenuButtonParentMargin
|
|
5006
5009
|
}) {
|
|
5007
5010
|
const hasVariablesInValue = useMemo11(() => {
|
|
5008
5011
|
let result = false;
|
|
@@ -5023,13 +5026,21 @@ function ParameterConnectionIndicator({
|
|
|
5023
5026
|
placement: "bottom-start",
|
|
5024
5027
|
withoutPortal: true,
|
|
5025
5028
|
menuTrigger: /* @__PURE__ */ jsx41(
|
|
5026
|
-
"
|
|
5029
|
+
"div",
|
|
5027
5030
|
{
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5031
|
+
css: overrideMenuButtonParentMargin ? {
|
|
5032
|
+
marginBottom: overrideMenuButtonParentMargin
|
|
5033
|
+
} : void 0,
|
|
5034
|
+
children: /* @__PURE__ */ jsx41(
|
|
5035
|
+
"button",
|
|
5036
|
+
{
|
|
5037
|
+
title: menuTooltip,
|
|
5038
|
+
"aria-pressed": hasVariablesInValue,
|
|
5039
|
+
css: [menuBtn, variableBindButton],
|
|
5040
|
+
type: "button",
|
|
5041
|
+
children: /* @__PURE__ */ jsx41(CgUsbC2, { size: "1.4rem" })
|
|
5042
|
+
}
|
|
5043
|
+
)
|
|
5033
5044
|
}
|
|
5034
5045
|
),
|
|
5035
5046
|
menuLabel: menuTooltip,
|
|
@@ -7376,6 +7387,11 @@ var DATE_OPERATORS = [
|
|
|
7376
7387
|
}
|
|
7377
7388
|
];
|
|
7378
7389
|
var TEXTBOX_OPERATORS = [
|
|
7390
|
+
{
|
|
7391
|
+
label: "contains...",
|
|
7392
|
+
value: "match",
|
|
7393
|
+
editorType: "text"
|
|
7394
|
+
},
|
|
7379
7395
|
{
|
|
7380
7396
|
label: "is...",
|
|
7381
7397
|
value: "eq",
|
|
@@ -7386,11 +7402,6 @@ var TEXTBOX_OPERATORS = [
|
|
|
7386
7402
|
value: "ndef",
|
|
7387
7403
|
editorType: "empty"
|
|
7388
7404
|
},
|
|
7389
|
-
{
|
|
7390
|
-
label: "contains...",
|
|
7391
|
-
value: "match",
|
|
7392
|
-
editorType: "text"
|
|
7393
|
-
},
|
|
7394
7405
|
{
|
|
7395
7406
|
label: "starts with...",
|
|
7396
7407
|
value: "starts",
|
|
@@ -7409,13 +7420,13 @@ var TEXTBOX_OPERATORS = [
|
|
|
7409
7420
|
];
|
|
7410
7421
|
var USER_OPERATORS = [
|
|
7411
7422
|
{
|
|
7412
|
-
label: "
|
|
7413
|
-
value: "
|
|
7423
|
+
label: "contains...",
|
|
7424
|
+
value: "match",
|
|
7414
7425
|
editorType: "text"
|
|
7415
7426
|
},
|
|
7416
7427
|
{
|
|
7417
|
-
label: "
|
|
7418
|
-
value: "
|
|
7428
|
+
label: "is...",
|
|
7429
|
+
value: "eq",
|
|
7419
7430
|
editorType: "text"
|
|
7420
7431
|
},
|
|
7421
7432
|
{
|
|
@@ -7467,16 +7478,16 @@ var SYSTEM_DATE_OPERATORS = [
|
|
|
7467
7478
|
}
|
|
7468
7479
|
];
|
|
7469
7480
|
var RICHTEXT_OPERATORS = [
|
|
7470
|
-
{
|
|
7471
|
-
label: "is empty",
|
|
7472
|
-
value: "ndef",
|
|
7473
|
-
editorType: "empty"
|
|
7474
|
-
},
|
|
7475
7481
|
{
|
|
7476
7482
|
label: "contains...",
|
|
7477
7483
|
value: "match",
|
|
7478
7484
|
editorType: "text"
|
|
7479
7485
|
},
|
|
7486
|
+
{
|
|
7487
|
+
label: "is empty",
|
|
7488
|
+
value: "ndef",
|
|
7489
|
+
editorType: "empty"
|
|
7490
|
+
},
|
|
7480
7491
|
{
|
|
7481
7492
|
label: "starts with...",
|
|
7482
7493
|
value: "starts",
|
|
@@ -7544,6 +7555,48 @@ var PUBLISH_STATUS_FIELD_OPERATORS = [
|
|
|
7544
7555
|
editorType: "statusMultiChoice"
|
|
7545
7556
|
}
|
|
7546
7557
|
];
|
|
7558
|
+
var SELECT_OPERATORS = [
|
|
7559
|
+
{
|
|
7560
|
+
label: "is...",
|
|
7561
|
+
value: "eq",
|
|
7562
|
+
editorType: "singleChoice"
|
|
7563
|
+
},
|
|
7564
|
+
{
|
|
7565
|
+
label: "is any of...",
|
|
7566
|
+
value: "in",
|
|
7567
|
+
editorType: "multiChoice"
|
|
7568
|
+
},
|
|
7569
|
+
{
|
|
7570
|
+
label: "is empty",
|
|
7571
|
+
value: "ndef",
|
|
7572
|
+
editorType: "empty"
|
|
7573
|
+
},
|
|
7574
|
+
{
|
|
7575
|
+
label: "contains...",
|
|
7576
|
+
value: "match",
|
|
7577
|
+
editorType: "text"
|
|
7578
|
+
},
|
|
7579
|
+
{
|
|
7580
|
+
label: "starts with...",
|
|
7581
|
+
value: "starts",
|
|
7582
|
+
editorType: "text"
|
|
7583
|
+
},
|
|
7584
|
+
{
|
|
7585
|
+
label: "is not...",
|
|
7586
|
+
value: "neq",
|
|
7587
|
+
editorType: "singleChoice"
|
|
7588
|
+
},
|
|
7589
|
+
{
|
|
7590
|
+
label: "is none of...",
|
|
7591
|
+
value: "nin",
|
|
7592
|
+
editorType: "multiChoice"
|
|
7593
|
+
},
|
|
7594
|
+
{
|
|
7595
|
+
label: "is not empty",
|
|
7596
|
+
value: "def",
|
|
7597
|
+
editorType: "empty"
|
|
7598
|
+
}
|
|
7599
|
+
];
|
|
7547
7600
|
|
|
7548
7601
|
// src/components/SearchAndFilter/FilterButton.tsx
|
|
7549
7602
|
import { Counter as Counter2, Icon as Icon6 } from "@uniformdev/design-system";
|
|
@@ -8214,7 +8267,8 @@ var DateRangeEditor = ({
|
|
|
8214
8267
|
onChange: (e) => setMinDateValue(e.currentTarget.value),
|
|
8215
8268
|
"aria-invalid": !error ? false : true,
|
|
8216
8269
|
disabled,
|
|
8217
|
-
readOnly
|
|
8270
|
+
readOnly,
|
|
8271
|
+
"data-testid": "value-low"
|
|
8218
8272
|
}
|
|
8219
8273
|
),
|
|
8220
8274
|
/* @__PURE__ */ jsx70(
|
|
@@ -8227,7 +8281,8 @@ var DateRangeEditor = ({
|
|
|
8227
8281
|
onChange: (e) => setMaxDateValue(e.currentTarget.value),
|
|
8228
8282
|
"aria-invalid": !error ? false : true,
|
|
8229
8283
|
disabled,
|
|
8230
|
-
readOnly
|
|
8284
|
+
readOnly,
|
|
8285
|
+
"data-testid": "value-high"
|
|
8231
8286
|
}
|
|
8232
8287
|
)
|
|
8233
8288
|
] }),
|
|
@@ -8807,7 +8862,7 @@ var SearchAndFilterResultContainer = ({
|
|
|
8807
8862
|
onHandleClear,
|
|
8808
8863
|
hideClearButton
|
|
8809
8864
|
}) => {
|
|
8810
|
-
const { searchTerm,
|
|
8865
|
+
const { searchTerm, totalResults, filters, handleResetFilters, setSearchTerm } = useSearchAndFilter();
|
|
8811
8866
|
const automateCalloutTitle = () => {
|
|
8812
8867
|
if (searchTerm && !filters.length) {
|
|
8813
8868
|
return "No search results found";
|
|
@@ -8820,6 +8875,14 @@ var SearchAndFilterResultContainer = ({
|
|
|
8820
8875
|
if (totalResults && totalResults > 0) {
|
|
8821
8876
|
return null;
|
|
8822
8877
|
}
|
|
8878
|
+
const handleClearSearch = () => {
|
|
8879
|
+
setSearchTerm("");
|
|
8880
|
+
if (onHandleClear) {
|
|
8881
|
+
onHandleClear();
|
|
8882
|
+
} else {
|
|
8883
|
+
handleResetFilters();
|
|
8884
|
+
}
|
|
8885
|
+
};
|
|
8823
8886
|
return /* @__PURE__ */ jsxs47(Fragment16, { children: [
|
|
8824
8887
|
/* @__PURE__ */ jsxs47(HorizontalRhythm9, { children: [
|
|
8825
8888
|
/* @__PURE__ */ jsxs47("span", { children: [
|
|
@@ -8827,11 +8890,11 @@ var SearchAndFilterResultContainer = ({
|
|
|
8827
8890
|
" results ",
|
|
8828
8891
|
searchTerm ? `for "${searchTerm}"` : null
|
|
8829
8892
|
] }),
|
|
8830
|
-
!searchTerm || hideClearButton ? null : /* @__PURE__ */ jsx75(Button6, { buttonType: "ghostDestructive", size: "zero", onClick:
|
|
8893
|
+
!searchTerm || hideClearButton ? null : /* @__PURE__ */ jsx75(Button6, { buttonType: "ghostDestructive", size: "zero", onClick: handleClearSearch, children: clearButtonLabel })
|
|
8831
8894
|
] }),
|
|
8832
8895
|
totalResults === 0 ? /* @__PURE__ */ jsxs47(Callout6, { title: calloutTitle != null ? calloutTitle : automateCalloutTitle(), type: "note", children: [
|
|
8833
8896
|
calloutText ? /* @__PURE__ */ jsx75(Paragraph, { children: calloutText }) : null,
|
|
8834
|
-
hideClearButton ? null : /* @__PURE__ */ jsx75(Button6, { buttonType: "tertiaryOutline", size: "xs", onClick:
|
|
8897
|
+
hideClearButton ? null : /* @__PURE__ */ jsx75(Button6, { buttonType: "tertiaryOutline", size: "xs", onClick: handleClearSearch, children: buttonText != null ? buttonText : "Clear search" })
|
|
8835
8898
|
] }) : null
|
|
8836
8899
|
] });
|
|
8837
8900
|
};
|
|
@@ -9454,6 +9517,7 @@ export {
|
|
|
9454
9517
|
RequestUrl,
|
|
9455
9518
|
RequestUrlInput,
|
|
9456
9519
|
ResolvableLoadingValue,
|
|
9520
|
+
SELECT_OPERATORS,
|
|
9457
9521
|
SYSTEM_DATE_OPERATORS,
|
|
9458
9522
|
SYSTEM_FIELD_OPERATORS,
|
|
9459
9523
|
ScrollableList2 as ScrollableList,
|
package/dist/index.js
CHANGED
|
@@ -129,6 +129,7 @@ __export(src_exports, {
|
|
|
129
129
|
RequestUrl: () => RequestUrl,
|
|
130
130
|
RequestUrlInput: () => RequestUrlInput,
|
|
131
131
|
ResolvableLoadingValue: () => ResolvableLoadingValue,
|
|
132
|
+
SELECT_OPERATORS: () => SELECT_OPERATORS,
|
|
132
133
|
SYSTEM_DATE_OPERATORS: () => SYSTEM_DATE_OPERATORS,
|
|
133
134
|
SYSTEM_FIELD_OPERATORS: () => SYSTEM_FIELD_OPERATORS,
|
|
134
135
|
ScrollableList: () => import_design_system53.ScrollableList,
|
|
@@ -4410,6 +4411,7 @@ var input = import_react42.css`
|
|
|
4410
4411
|
var inputCompact = import_react42.css`
|
|
4411
4412
|
border: 1px solid var(--white);
|
|
4412
4413
|
padding-block: var(--spacing-sm);
|
|
4414
|
+
min-height: 39px;
|
|
4413
4415
|
font-size: var(--fs-sm);
|
|
4414
4416
|
`;
|
|
4415
4417
|
var inputDisabled = import_react42.css`
|
|
@@ -4419,14 +4421,14 @@ var inputDisabled = import_react42.css`
|
|
|
4419
4421
|
var placeholderCaption = import_react42.css`
|
|
4420
4422
|
position: absolute;
|
|
4421
4423
|
color: var(--gray-400);
|
|
4422
|
-
inset: var(--spacing-base)
|
|
4424
|
+
inset: 12px var(--spacing-base) 12px var(--spacing-sm);
|
|
4423
4425
|
overflow: hidden;
|
|
4424
4426
|
text-overflow: ellipsis;
|
|
4425
4427
|
white-space: nowrap;
|
|
4426
4428
|
pointer-events: none;
|
|
4427
4429
|
`;
|
|
4428
4430
|
var placeholderCompact = import_react42.css`
|
|
4429
|
-
inset: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-
|
|
4431
|
+
inset: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-sm);
|
|
4430
4432
|
`;
|
|
4431
4433
|
|
|
4432
4434
|
// src/components/Variables/styles/ParameterVariables.styles.ts
|
|
@@ -5065,6 +5067,7 @@ function InputVariables(props) {
|
|
|
5065
5067
|
align: "center",
|
|
5066
5068
|
gap: "xs",
|
|
5067
5069
|
css: import_react51.css`
|
|
5070
|
+
position: relative;
|
|
5068
5071
|
& > div:first-child {
|
|
5069
5072
|
flex-grow: 1;
|
|
5070
5073
|
}
|
|
@@ -5195,7 +5198,8 @@ function ParameterConnectionIndicator({
|
|
|
5195
5198
|
value,
|
|
5196
5199
|
menuOptions,
|
|
5197
5200
|
disabled,
|
|
5198
|
-
menuTooltip = "Insert variable"
|
|
5201
|
+
menuTooltip = "Insert variable",
|
|
5202
|
+
overrideMenuButtonParentMargin
|
|
5199
5203
|
}) {
|
|
5200
5204
|
const hasVariablesInValue = (0, import_react53.useMemo)(() => {
|
|
5201
5205
|
let result = false;
|
|
@@ -5216,13 +5220,21 @@ function ParameterConnectionIndicator({
|
|
|
5216
5220
|
placement: "bottom-start",
|
|
5217
5221
|
withoutPortal: true,
|
|
5218
5222
|
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
5219
|
-
"
|
|
5223
|
+
"div",
|
|
5220
5224
|
{
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5225
|
+
css: overrideMenuButtonParentMargin ? {
|
|
5226
|
+
marginBottom: overrideMenuButtonParentMargin
|
|
5227
|
+
} : void 0,
|
|
5228
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
5229
|
+
"button",
|
|
5230
|
+
{
|
|
5231
|
+
title: menuTooltip,
|
|
5232
|
+
"aria-pressed": hasVariablesInValue,
|
|
5233
|
+
css: [menuBtn, variableBindButton],
|
|
5234
|
+
type: "button",
|
|
5235
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_CgUsbC2.CgUsbC, { size: "1.4rem" })
|
|
5236
|
+
}
|
|
5237
|
+
)
|
|
5226
5238
|
}
|
|
5227
5239
|
),
|
|
5228
5240
|
menuLabel: menuTooltip,
|
|
@@ -7534,6 +7546,11 @@ var DATE_OPERATORS = [
|
|
|
7534
7546
|
}
|
|
7535
7547
|
];
|
|
7536
7548
|
var TEXTBOX_OPERATORS = [
|
|
7549
|
+
{
|
|
7550
|
+
label: "contains...",
|
|
7551
|
+
value: "match",
|
|
7552
|
+
editorType: "text"
|
|
7553
|
+
},
|
|
7537
7554
|
{
|
|
7538
7555
|
label: "is...",
|
|
7539
7556
|
value: "eq",
|
|
@@ -7544,11 +7561,6 @@ var TEXTBOX_OPERATORS = [
|
|
|
7544
7561
|
value: "ndef",
|
|
7545
7562
|
editorType: "empty"
|
|
7546
7563
|
},
|
|
7547
|
-
{
|
|
7548
|
-
label: "contains...",
|
|
7549
|
-
value: "match",
|
|
7550
|
-
editorType: "text"
|
|
7551
|
-
},
|
|
7552
7564
|
{
|
|
7553
7565
|
label: "starts with...",
|
|
7554
7566
|
value: "starts",
|
|
@@ -7567,13 +7579,13 @@ var TEXTBOX_OPERATORS = [
|
|
|
7567
7579
|
];
|
|
7568
7580
|
var USER_OPERATORS = [
|
|
7569
7581
|
{
|
|
7570
|
-
label: "
|
|
7571
|
-
value: "
|
|
7582
|
+
label: "contains...",
|
|
7583
|
+
value: "match",
|
|
7572
7584
|
editorType: "text"
|
|
7573
7585
|
},
|
|
7574
7586
|
{
|
|
7575
|
-
label: "
|
|
7576
|
-
value: "
|
|
7587
|
+
label: "is...",
|
|
7588
|
+
value: "eq",
|
|
7577
7589
|
editorType: "text"
|
|
7578
7590
|
},
|
|
7579
7591
|
{
|
|
@@ -7625,16 +7637,16 @@ var SYSTEM_DATE_OPERATORS = [
|
|
|
7625
7637
|
}
|
|
7626
7638
|
];
|
|
7627
7639
|
var RICHTEXT_OPERATORS = [
|
|
7628
|
-
{
|
|
7629
|
-
label: "is empty",
|
|
7630
|
-
value: "ndef",
|
|
7631
|
-
editorType: "empty"
|
|
7632
|
-
},
|
|
7633
7640
|
{
|
|
7634
7641
|
label: "contains...",
|
|
7635
7642
|
value: "match",
|
|
7636
7643
|
editorType: "text"
|
|
7637
7644
|
},
|
|
7645
|
+
{
|
|
7646
|
+
label: "is empty",
|
|
7647
|
+
value: "ndef",
|
|
7648
|
+
editorType: "empty"
|
|
7649
|
+
},
|
|
7638
7650
|
{
|
|
7639
7651
|
label: "starts with...",
|
|
7640
7652
|
value: "starts",
|
|
@@ -7702,6 +7714,48 @@ var PUBLISH_STATUS_FIELD_OPERATORS = [
|
|
|
7702
7714
|
editorType: "statusMultiChoice"
|
|
7703
7715
|
}
|
|
7704
7716
|
];
|
|
7717
|
+
var SELECT_OPERATORS = [
|
|
7718
|
+
{
|
|
7719
|
+
label: "is...",
|
|
7720
|
+
value: "eq",
|
|
7721
|
+
editorType: "singleChoice"
|
|
7722
|
+
},
|
|
7723
|
+
{
|
|
7724
|
+
label: "is any of...",
|
|
7725
|
+
value: "in",
|
|
7726
|
+
editorType: "multiChoice"
|
|
7727
|
+
},
|
|
7728
|
+
{
|
|
7729
|
+
label: "is empty",
|
|
7730
|
+
value: "ndef",
|
|
7731
|
+
editorType: "empty"
|
|
7732
|
+
},
|
|
7733
|
+
{
|
|
7734
|
+
label: "contains...",
|
|
7735
|
+
value: "match",
|
|
7736
|
+
editorType: "text"
|
|
7737
|
+
},
|
|
7738
|
+
{
|
|
7739
|
+
label: "starts with...",
|
|
7740
|
+
value: "starts",
|
|
7741
|
+
editorType: "text"
|
|
7742
|
+
},
|
|
7743
|
+
{
|
|
7744
|
+
label: "is not...",
|
|
7745
|
+
value: "neq",
|
|
7746
|
+
editorType: "singleChoice"
|
|
7747
|
+
},
|
|
7748
|
+
{
|
|
7749
|
+
label: "is none of...",
|
|
7750
|
+
value: "nin",
|
|
7751
|
+
editorType: "multiChoice"
|
|
7752
|
+
},
|
|
7753
|
+
{
|
|
7754
|
+
label: "is not empty",
|
|
7755
|
+
value: "def",
|
|
7756
|
+
editorType: "empty"
|
|
7757
|
+
}
|
|
7758
|
+
];
|
|
7705
7759
|
|
|
7706
7760
|
// src/components/SearchAndFilter/FilterButton.tsx
|
|
7707
7761
|
var import_design_system42 = require("@uniformdev/design-system");
|
|
@@ -8364,7 +8418,8 @@ var DateRangeEditor = ({
|
|
|
8364
8418
|
onChange: (e) => setMinDateValue(e.currentTarget.value),
|
|
8365
8419
|
"aria-invalid": !error ? false : true,
|
|
8366
8420
|
disabled,
|
|
8367
|
-
readOnly
|
|
8421
|
+
readOnly,
|
|
8422
|
+
"data-testid": "value-low"
|
|
8368
8423
|
}
|
|
8369
8424
|
),
|
|
8370
8425
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
@@ -8377,7 +8432,8 @@ var DateRangeEditor = ({
|
|
|
8377
8432
|
onChange: (e) => setMaxDateValue(e.currentTarget.value),
|
|
8378
8433
|
"aria-invalid": !error ? false : true,
|
|
8379
8434
|
disabled,
|
|
8380
|
-
readOnly
|
|
8435
|
+
readOnly,
|
|
8436
|
+
"data-testid": "value-high"
|
|
8381
8437
|
}
|
|
8382
8438
|
)
|
|
8383
8439
|
] }),
|
|
@@ -8957,7 +9013,7 @@ var SearchAndFilterResultContainer = ({
|
|
|
8957
9013
|
onHandleClear,
|
|
8958
9014
|
hideClearButton
|
|
8959
9015
|
}) => {
|
|
8960
|
-
const { searchTerm,
|
|
9016
|
+
const { searchTerm, totalResults, filters, handleResetFilters, setSearchTerm } = useSearchAndFilter();
|
|
8961
9017
|
const automateCalloutTitle = () => {
|
|
8962
9018
|
if (searchTerm && !filters.length) {
|
|
8963
9019
|
return "No search results found";
|
|
@@ -8970,6 +9026,14 @@ var SearchAndFilterResultContainer = ({
|
|
|
8970
9026
|
if (totalResults && totalResults > 0) {
|
|
8971
9027
|
return null;
|
|
8972
9028
|
}
|
|
9029
|
+
const handleClearSearch = () => {
|
|
9030
|
+
setSearchTerm("");
|
|
9031
|
+
if (onHandleClear) {
|
|
9032
|
+
onHandleClear();
|
|
9033
|
+
} else {
|
|
9034
|
+
handleResetFilters();
|
|
9035
|
+
}
|
|
9036
|
+
};
|
|
8973
9037
|
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
|
|
8974
9038
|
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_design_system48.HorizontalRhythm, { children: [
|
|
8975
9039
|
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("span", { children: [
|
|
@@ -8977,11 +9041,11 @@ var SearchAndFilterResultContainer = ({
|
|
|
8977
9041
|
" results ",
|
|
8978
9042
|
searchTerm ? `for "${searchTerm}"` : null
|
|
8979
9043
|
] }),
|
|
8980
|
-
!searchTerm || hideClearButton ? null : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_design_system48.Button, { buttonType: "ghostDestructive", size: "zero", onClick:
|
|
9044
|
+
!searchTerm || hideClearButton ? null : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_design_system48.Button, { buttonType: "ghostDestructive", size: "zero", onClick: handleClearSearch, children: clearButtonLabel })
|
|
8981
9045
|
] }),
|
|
8982
9046
|
totalResults === 0 ? /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_design_system48.Callout, { title: calloutTitle != null ? calloutTitle : automateCalloutTitle(), type: "note", children: [
|
|
8983
9047
|
calloutText ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_design_system48.Paragraph, { children: calloutText }) : null,
|
|
8984
|
-
hideClearButton ? null : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_design_system48.Button, { buttonType: "tertiaryOutline", size: "xs", onClick:
|
|
9048
|
+
hideClearButton ? null : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_design_system48.Button, { buttonType: "tertiaryOutline", size: "xs", onClick: handleClearSearch, children: buttonText != null ? buttonText : "Clear search" })
|
|
8985
9049
|
] }) : null
|
|
8986
9050
|
] });
|
|
8987
9051
|
};
|
|
@@ -9570,6 +9634,7 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
|
|
|
9570
9634
|
RequestUrl,
|
|
9571
9635
|
RequestUrlInput,
|
|
9572
9636
|
ResolvableLoadingValue,
|
|
9637
|
+
SELECT_OPERATORS,
|
|
9573
9638
|
SYSTEM_DATE_OPERATORS,
|
|
9574
9639
|
SYSTEM_FIELD_OPERATORS,
|
|
9575
9640
|
ScrollableList,
|
package/dist/index.mjs
CHANGED
|
@@ -4205,6 +4205,7 @@ var input = css21`
|
|
|
4205
4205
|
var inputCompact = css21`
|
|
4206
4206
|
border: 1px solid var(--white);
|
|
4207
4207
|
padding-block: var(--spacing-sm);
|
|
4208
|
+
min-height: 39px;
|
|
4208
4209
|
font-size: var(--fs-sm);
|
|
4209
4210
|
`;
|
|
4210
4211
|
var inputDisabled = css21`
|
|
@@ -4214,14 +4215,14 @@ var inputDisabled = css21`
|
|
|
4214
4215
|
var placeholderCaption = css21`
|
|
4215
4216
|
position: absolute;
|
|
4216
4217
|
color: var(--gray-400);
|
|
4217
|
-
inset: var(--spacing-base)
|
|
4218
|
+
inset: 12px var(--spacing-base) 12px var(--spacing-sm);
|
|
4218
4219
|
overflow: hidden;
|
|
4219
4220
|
text-overflow: ellipsis;
|
|
4220
4221
|
white-space: nowrap;
|
|
4221
4222
|
pointer-events: none;
|
|
4222
4223
|
`;
|
|
4223
4224
|
var placeholderCompact = css21`
|
|
4224
|
-
inset: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-
|
|
4225
|
+
inset: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-sm);
|
|
4225
4226
|
`;
|
|
4226
4227
|
|
|
4227
4228
|
// src/components/Variables/styles/ParameterVariables.styles.ts
|
|
@@ -4872,6 +4873,7 @@ function InputVariables(props) {
|
|
|
4872
4873
|
align: "center",
|
|
4873
4874
|
gap: "xs",
|
|
4874
4875
|
css: css24`
|
|
4876
|
+
position: relative;
|
|
4875
4877
|
& > div:first-child {
|
|
4876
4878
|
flex-grow: 1;
|
|
4877
4879
|
}
|
|
@@ -5002,7 +5004,8 @@ function ParameterConnectionIndicator({
|
|
|
5002
5004
|
value,
|
|
5003
5005
|
menuOptions,
|
|
5004
5006
|
disabled,
|
|
5005
|
-
menuTooltip = "Insert variable"
|
|
5007
|
+
menuTooltip = "Insert variable",
|
|
5008
|
+
overrideMenuButtonParentMargin
|
|
5006
5009
|
}) {
|
|
5007
5010
|
const hasVariablesInValue = useMemo11(() => {
|
|
5008
5011
|
let result = false;
|
|
@@ -5023,13 +5026,21 @@ function ParameterConnectionIndicator({
|
|
|
5023
5026
|
placement: "bottom-start",
|
|
5024
5027
|
withoutPortal: true,
|
|
5025
5028
|
menuTrigger: /* @__PURE__ */ jsx41(
|
|
5026
|
-
"
|
|
5029
|
+
"div",
|
|
5027
5030
|
{
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5031
|
+
css: overrideMenuButtonParentMargin ? {
|
|
5032
|
+
marginBottom: overrideMenuButtonParentMargin
|
|
5033
|
+
} : void 0,
|
|
5034
|
+
children: /* @__PURE__ */ jsx41(
|
|
5035
|
+
"button",
|
|
5036
|
+
{
|
|
5037
|
+
title: menuTooltip,
|
|
5038
|
+
"aria-pressed": hasVariablesInValue,
|
|
5039
|
+
css: [menuBtn, variableBindButton],
|
|
5040
|
+
type: "button",
|
|
5041
|
+
children: /* @__PURE__ */ jsx41(CgUsbC2, { size: "1.4rem" })
|
|
5042
|
+
}
|
|
5043
|
+
)
|
|
5033
5044
|
}
|
|
5034
5045
|
),
|
|
5035
5046
|
menuLabel: menuTooltip,
|
|
@@ -7376,6 +7387,11 @@ var DATE_OPERATORS = [
|
|
|
7376
7387
|
}
|
|
7377
7388
|
];
|
|
7378
7389
|
var TEXTBOX_OPERATORS = [
|
|
7390
|
+
{
|
|
7391
|
+
label: "contains...",
|
|
7392
|
+
value: "match",
|
|
7393
|
+
editorType: "text"
|
|
7394
|
+
},
|
|
7379
7395
|
{
|
|
7380
7396
|
label: "is...",
|
|
7381
7397
|
value: "eq",
|
|
@@ -7386,11 +7402,6 @@ var TEXTBOX_OPERATORS = [
|
|
|
7386
7402
|
value: "ndef",
|
|
7387
7403
|
editorType: "empty"
|
|
7388
7404
|
},
|
|
7389
|
-
{
|
|
7390
|
-
label: "contains...",
|
|
7391
|
-
value: "match",
|
|
7392
|
-
editorType: "text"
|
|
7393
|
-
},
|
|
7394
7405
|
{
|
|
7395
7406
|
label: "starts with...",
|
|
7396
7407
|
value: "starts",
|
|
@@ -7409,13 +7420,13 @@ var TEXTBOX_OPERATORS = [
|
|
|
7409
7420
|
];
|
|
7410
7421
|
var USER_OPERATORS = [
|
|
7411
7422
|
{
|
|
7412
|
-
label: "
|
|
7413
|
-
value: "
|
|
7423
|
+
label: "contains...",
|
|
7424
|
+
value: "match",
|
|
7414
7425
|
editorType: "text"
|
|
7415
7426
|
},
|
|
7416
7427
|
{
|
|
7417
|
-
label: "
|
|
7418
|
-
value: "
|
|
7428
|
+
label: "is...",
|
|
7429
|
+
value: "eq",
|
|
7419
7430
|
editorType: "text"
|
|
7420
7431
|
},
|
|
7421
7432
|
{
|
|
@@ -7467,16 +7478,16 @@ var SYSTEM_DATE_OPERATORS = [
|
|
|
7467
7478
|
}
|
|
7468
7479
|
];
|
|
7469
7480
|
var RICHTEXT_OPERATORS = [
|
|
7470
|
-
{
|
|
7471
|
-
label: "is empty",
|
|
7472
|
-
value: "ndef",
|
|
7473
|
-
editorType: "empty"
|
|
7474
|
-
},
|
|
7475
7481
|
{
|
|
7476
7482
|
label: "contains...",
|
|
7477
7483
|
value: "match",
|
|
7478
7484
|
editorType: "text"
|
|
7479
7485
|
},
|
|
7486
|
+
{
|
|
7487
|
+
label: "is empty",
|
|
7488
|
+
value: "ndef",
|
|
7489
|
+
editorType: "empty"
|
|
7490
|
+
},
|
|
7480
7491
|
{
|
|
7481
7492
|
label: "starts with...",
|
|
7482
7493
|
value: "starts",
|
|
@@ -7544,6 +7555,48 @@ var PUBLISH_STATUS_FIELD_OPERATORS = [
|
|
|
7544
7555
|
editorType: "statusMultiChoice"
|
|
7545
7556
|
}
|
|
7546
7557
|
];
|
|
7558
|
+
var SELECT_OPERATORS = [
|
|
7559
|
+
{
|
|
7560
|
+
label: "is...",
|
|
7561
|
+
value: "eq",
|
|
7562
|
+
editorType: "singleChoice"
|
|
7563
|
+
},
|
|
7564
|
+
{
|
|
7565
|
+
label: "is any of...",
|
|
7566
|
+
value: "in",
|
|
7567
|
+
editorType: "multiChoice"
|
|
7568
|
+
},
|
|
7569
|
+
{
|
|
7570
|
+
label: "is empty",
|
|
7571
|
+
value: "ndef",
|
|
7572
|
+
editorType: "empty"
|
|
7573
|
+
},
|
|
7574
|
+
{
|
|
7575
|
+
label: "contains...",
|
|
7576
|
+
value: "match",
|
|
7577
|
+
editorType: "text"
|
|
7578
|
+
},
|
|
7579
|
+
{
|
|
7580
|
+
label: "starts with...",
|
|
7581
|
+
value: "starts",
|
|
7582
|
+
editorType: "text"
|
|
7583
|
+
},
|
|
7584
|
+
{
|
|
7585
|
+
label: "is not...",
|
|
7586
|
+
value: "neq",
|
|
7587
|
+
editorType: "singleChoice"
|
|
7588
|
+
},
|
|
7589
|
+
{
|
|
7590
|
+
label: "is none of...",
|
|
7591
|
+
value: "nin",
|
|
7592
|
+
editorType: "multiChoice"
|
|
7593
|
+
},
|
|
7594
|
+
{
|
|
7595
|
+
label: "is not empty",
|
|
7596
|
+
value: "def",
|
|
7597
|
+
editorType: "empty"
|
|
7598
|
+
}
|
|
7599
|
+
];
|
|
7547
7600
|
|
|
7548
7601
|
// src/components/SearchAndFilter/FilterButton.tsx
|
|
7549
7602
|
import { Counter as Counter2, Icon as Icon6 } from "@uniformdev/design-system";
|
|
@@ -8214,7 +8267,8 @@ var DateRangeEditor = ({
|
|
|
8214
8267
|
onChange: (e) => setMinDateValue(e.currentTarget.value),
|
|
8215
8268
|
"aria-invalid": !error ? false : true,
|
|
8216
8269
|
disabled,
|
|
8217
|
-
readOnly
|
|
8270
|
+
readOnly,
|
|
8271
|
+
"data-testid": "value-low"
|
|
8218
8272
|
}
|
|
8219
8273
|
),
|
|
8220
8274
|
/* @__PURE__ */ jsx70(
|
|
@@ -8227,7 +8281,8 @@ var DateRangeEditor = ({
|
|
|
8227
8281
|
onChange: (e) => setMaxDateValue(e.currentTarget.value),
|
|
8228
8282
|
"aria-invalid": !error ? false : true,
|
|
8229
8283
|
disabled,
|
|
8230
|
-
readOnly
|
|
8284
|
+
readOnly,
|
|
8285
|
+
"data-testid": "value-high"
|
|
8231
8286
|
}
|
|
8232
8287
|
)
|
|
8233
8288
|
] }),
|
|
@@ -8807,7 +8862,7 @@ var SearchAndFilterResultContainer = ({
|
|
|
8807
8862
|
onHandleClear,
|
|
8808
8863
|
hideClearButton
|
|
8809
8864
|
}) => {
|
|
8810
|
-
const { searchTerm,
|
|
8865
|
+
const { searchTerm, totalResults, filters, handleResetFilters, setSearchTerm } = useSearchAndFilter();
|
|
8811
8866
|
const automateCalloutTitle = () => {
|
|
8812
8867
|
if (searchTerm && !filters.length) {
|
|
8813
8868
|
return "No search results found";
|
|
@@ -8820,6 +8875,14 @@ var SearchAndFilterResultContainer = ({
|
|
|
8820
8875
|
if (totalResults && totalResults > 0) {
|
|
8821
8876
|
return null;
|
|
8822
8877
|
}
|
|
8878
|
+
const handleClearSearch = () => {
|
|
8879
|
+
setSearchTerm("");
|
|
8880
|
+
if (onHandleClear) {
|
|
8881
|
+
onHandleClear();
|
|
8882
|
+
} else {
|
|
8883
|
+
handleResetFilters();
|
|
8884
|
+
}
|
|
8885
|
+
};
|
|
8823
8886
|
return /* @__PURE__ */ jsxs47(Fragment16, { children: [
|
|
8824
8887
|
/* @__PURE__ */ jsxs47(HorizontalRhythm9, { children: [
|
|
8825
8888
|
/* @__PURE__ */ jsxs47("span", { children: [
|
|
@@ -8827,11 +8890,11 @@ var SearchAndFilterResultContainer = ({
|
|
|
8827
8890
|
" results ",
|
|
8828
8891
|
searchTerm ? `for "${searchTerm}"` : null
|
|
8829
8892
|
] }),
|
|
8830
|
-
!searchTerm || hideClearButton ? null : /* @__PURE__ */ jsx75(Button6, { buttonType: "ghostDestructive", size: "zero", onClick:
|
|
8893
|
+
!searchTerm || hideClearButton ? null : /* @__PURE__ */ jsx75(Button6, { buttonType: "ghostDestructive", size: "zero", onClick: handleClearSearch, children: clearButtonLabel })
|
|
8831
8894
|
] }),
|
|
8832
8895
|
totalResults === 0 ? /* @__PURE__ */ jsxs47(Callout6, { title: calloutTitle != null ? calloutTitle : automateCalloutTitle(), type: "note", children: [
|
|
8833
8896
|
calloutText ? /* @__PURE__ */ jsx75(Paragraph, { children: calloutText }) : null,
|
|
8834
|
-
hideClearButton ? null : /* @__PURE__ */ jsx75(Button6, { buttonType: "tertiaryOutline", size: "xs", onClick:
|
|
8897
|
+
hideClearButton ? null : /* @__PURE__ */ jsx75(Button6, { buttonType: "tertiaryOutline", size: "xs", onClick: handleClearSearch, children: buttonText != null ? buttonText : "Clear search" })
|
|
8835
8898
|
] }) : null
|
|
8836
8899
|
] });
|
|
8837
8900
|
};
|
|
@@ -9454,6 +9517,7 @@ export {
|
|
|
9454
9517
|
RequestUrl,
|
|
9455
9518
|
RequestUrlInput,
|
|
9456
9519
|
ResolvableLoadingValue,
|
|
9520
|
+
SELECT_OPERATORS,
|
|
9457
9521
|
SYSTEM_DATE_OPERATORS,
|
|
9458
9522
|
SYSTEM_FIELD_OPERATORS,
|
|
9459
9523
|
ScrollableList2 as ScrollableList,
|
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.5+fd42f9399d",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"@lexical/react": "^0.12.0",
|
|
50
50
|
"@lexical/selection": "^0.12.0",
|
|
51
51
|
"@lexical/utils": "^0.12.0",
|
|
52
|
-
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/
|
|
53
|
-
"@uniformdev/canvas": "19.147.1-alpha.
|
|
54
|
-
"@uniformdev/design-system": "19.147.1-alpha.
|
|
55
|
-
"@uniformdev/mesh-sdk": "19.147.1-alpha.
|
|
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.5+fd42f9399d",
|
|
54
|
+
"@uniformdev/design-system": "19.147.1-alpha.5+fd42f9399d",
|
|
55
|
+
"@uniformdev/mesh-sdk": "19.147.1-alpha.5+fd42f9399d",
|
|
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": "fd42f9399d22a39666b01163b53c2eab646081d2"
|
|
90
90
|
}
|