@uniformdev/mesh-sdk-react 20.49.3 → 20.49.4-alpha.102
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 +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.esm.js +20 -8
- package/dist/index.js +20 -8
- package/dist/index.mjs +20 -8
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1742,6 +1742,8 @@ type SearchAndFilterProviderProps = {
|
|
|
1742
1742
|
onResetFilterValues?: () => void;
|
|
1743
1743
|
/** the total number of results */
|
|
1744
1744
|
totalResults?: number;
|
|
1745
|
+
/** whether data is currently loading */
|
|
1746
|
+
isLoading?: boolean;
|
|
1745
1747
|
/** the filter mapper function */
|
|
1746
1748
|
filterMapper?: FilterMapper;
|
|
1747
1749
|
/** sets child components giving access to useSearchAndFilter context */
|
|
@@ -1776,6 +1778,8 @@ type SearchAndFilterContextProps = {
|
|
|
1776
1778
|
filterMapper?: FilterMapper;
|
|
1777
1779
|
/** the total number of results */
|
|
1778
1780
|
totalResults?: number;
|
|
1781
|
+
/** whether data is currently loading */
|
|
1782
|
+
isLoading?: boolean;
|
|
1779
1783
|
/** Allow to bind dynamic inputs to the search term */
|
|
1780
1784
|
allowBindingSearchTerm?: boolean;
|
|
1781
1785
|
};
|
|
@@ -1784,7 +1788,7 @@ declare const SearchAndFilterContext: React$1.Context<SearchAndFilterContextProp
|
|
|
1784
1788
|
* Search and filter provider
|
|
1785
1789
|
* @example <SearchAndFilterProvider filters={filters} filterOptions={filterOptions} onSearchChange={onSearchChange} onChange={onChange}>Children</SearchAndFilterProvider>
|
|
1786
1790
|
* */
|
|
1787
|
-
declare const SearchAndFilterProvider: ({ filters, filterOptions, filterVisible, alwaysVisible, defaultSearchTerm, onSearchChange, onChange, resetFilterValues, onResetFilterValues, totalResults, filterMapper, children, allowBindingSearchTerm, }: SearchAndFilterProviderProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1791
|
+
declare const SearchAndFilterProvider: ({ filters, filterOptions, filterVisible, alwaysVisible, defaultSearchTerm, onSearchChange, onChange, resetFilterValues, onResetFilterValues, totalResults, isLoading, filterMapper, children, allowBindingSearchTerm, }: SearchAndFilterProviderProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1788
1792
|
/** Search and filter hook
|
|
1789
1793
|
* @example const { searchTerm, setSearchTerm, filterVisibility, setFilterVisibility, filters, setFilters, handleAddFilter, handleResetFilters, handleDeleteFilter, filterOptions, validFilterQuery } = useSearchAndFilter();
|
|
1790
1794
|
*/
|
|
@@ -1815,6 +1819,8 @@ declare const useSearchAndFilter: () => {
|
|
|
1815
1819
|
filterMapper?: FilterMapper;
|
|
1816
1820
|
/** the total number of results */
|
|
1817
1821
|
totalResults?: number;
|
|
1822
|
+
/** whether data is currently loading */
|
|
1823
|
+
isLoading?: boolean;
|
|
1818
1824
|
/** Allow to bind dynamic inputs to the search term */
|
|
1819
1825
|
allowBindingSearchTerm?: boolean;
|
|
1820
1826
|
};
|
|
@@ -1830,6 +1836,8 @@ type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
|
|
|
1830
1836
|
viewSwitchControls?: React$1.ReactNode;
|
|
1831
1837
|
/** The number of total results */
|
|
1832
1838
|
totalResults?: number;
|
|
1839
|
+
/** Whether data is currently loading */
|
|
1840
|
+
isLoading?: boolean;
|
|
1833
1841
|
/** The results container view
|
|
1834
1842
|
* @default '<SearchAndFilterResultContainer />'
|
|
1835
1843
|
*/
|
|
@@ -1847,7 +1855,7 @@ type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
|
|
|
1847
1855
|
* Search and filter component
|
|
1848
1856
|
* @example <SearchAndFilter filters={filters} filterOptions={filterOptions} onChange={onChange} onSearchChange={onSearchChange} onSearchReset={onSearchReset} totalResults={totalResults} />
|
|
1849
1857
|
* */
|
|
1850
|
-
declare const SearchAndFilter: ({ filters, filterOptions, filterVisible, filterControls, viewSwitchControls, resultsContainerView, filterMapper, additionalFiltersContainer, onChange, defaultSearchTerm, onSearchChange, totalResults, allowBindingSearchTerm, resetFilterValues, onResetFilterValues, }: SearchAndFilterProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1858
|
+
declare const SearchAndFilter: ({ filters, filterOptions, filterVisible, filterControls, viewSwitchControls, resultsContainerView, filterMapper, additionalFiltersContainer, onChange, defaultSearchTerm, onSearchChange, totalResults, isLoading, allowBindingSearchTerm, resetFilterValues, onResetFilterValues, }: SearchAndFilterProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1851
1859
|
|
|
1852
1860
|
type FilterItemsProps = {
|
|
1853
1861
|
/** The text for the add button */
|
package/dist/index.d.ts
CHANGED
|
@@ -1742,6 +1742,8 @@ type SearchAndFilterProviderProps = {
|
|
|
1742
1742
|
onResetFilterValues?: () => void;
|
|
1743
1743
|
/** the total number of results */
|
|
1744
1744
|
totalResults?: number;
|
|
1745
|
+
/** whether data is currently loading */
|
|
1746
|
+
isLoading?: boolean;
|
|
1745
1747
|
/** the filter mapper function */
|
|
1746
1748
|
filterMapper?: FilterMapper;
|
|
1747
1749
|
/** sets child components giving access to useSearchAndFilter context */
|
|
@@ -1776,6 +1778,8 @@ type SearchAndFilterContextProps = {
|
|
|
1776
1778
|
filterMapper?: FilterMapper;
|
|
1777
1779
|
/** the total number of results */
|
|
1778
1780
|
totalResults?: number;
|
|
1781
|
+
/** whether data is currently loading */
|
|
1782
|
+
isLoading?: boolean;
|
|
1779
1783
|
/** Allow to bind dynamic inputs to the search term */
|
|
1780
1784
|
allowBindingSearchTerm?: boolean;
|
|
1781
1785
|
};
|
|
@@ -1784,7 +1788,7 @@ declare const SearchAndFilterContext: React$1.Context<SearchAndFilterContextProp
|
|
|
1784
1788
|
* Search and filter provider
|
|
1785
1789
|
* @example <SearchAndFilterProvider filters={filters} filterOptions={filterOptions} onSearchChange={onSearchChange} onChange={onChange}>Children</SearchAndFilterProvider>
|
|
1786
1790
|
* */
|
|
1787
|
-
declare const SearchAndFilterProvider: ({ filters, filterOptions, filterVisible, alwaysVisible, defaultSearchTerm, onSearchChange, onChange, resetFilterValues, onResetFilterValues, totalResults, filterMapper, children, allowBindingSearchTerm, }: SearchAndFilterProviderProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1791
|
+
declare const SearchAndFilterProvider: ({ filters, filterOptions, filterVisible, alwaysVisible, defaultSearchTerm, onSearchChange, onChange, resetFilterValues, onResetFilterValues, totalResults, isLoading, filterMapper, children, allowBindingSearchTerm, }: SearchAndFilterProviderProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1788
1792
|
/** Search and filter hook
|
|
1789
1793
|
* @example const { searchTerm, setSearchTerm, filterVisibility, setFilterVisibility, filters, setFilters, handleAddFilter, handleResetFilters, handleDeleteFilter, filterOptions, validFilterQuery } = useSearchAndFilter();
|
|
1790
1794
|
*/
|
|
@@ -1815,6 +1819,8 @@ declare const useSearchAndFilter: () => {
|
|
|
1815
1819
|
filterMapper?: FilterMapper;
|
|
1816
1820
|
/** the total number of results */
|
|
1817
1821
|
totalResults?: number;
|
|
1822
|
+
/** whether data is currently loading */
|
|
1823
|
+
isLoading?: boolean;
|
|
1818
1824
|
/** Allow to bind dynamic inputs to the search term */
|
|
1819
1825
|
allowBindingSearchTerm?: boolean;
|
|
1820
1826
|
};
|
|
@@ -1830,6 +1836,8 @@ type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
|
|
|
1830
1836
|
viewSwitchControls?: React$1.ReactNode;
|
|
1831
1837
|
/** The number of total results */
|
|
1832
1838
|
totalResults?: number;
|
|
1839
|
+
/** Whether data is currently loading */
|
|
1840
|
+
isLoading?: boolean;
|
|
1833
1841
|
/** The results container view
|
|
1834
1842
|
* @default '<SearchAndFilterResultContainer />'
|
|
1835
1843
|
*/
|
|
@@ -1847,7 +1855,7 @@ type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
|
|
|
1847
1855
|
* Search and filter component
|
|
1848
1856
|
* @example <SearchAndFilter filters={filters} filterOptions={filterOptions} onChange={onChange} onSearchChange={onSearchChange} onSearchReset={onSearchReset} totalResults={totalResults} />
|
|
1849
1857
|
* */
|
|
1850
|
-
declare const SearchAndFilter: ({ filters, filterOptions, filterVisible, filterControls, viewSwitchControls, resultsContainerView, filterMapper, additionalFiltersContainer, onChange, defaultSearchTerm, onSearchChange, totalResults, allowBindingSearchTerm, resetFilterValues, onResetFilterValues, }: SearchAndFilterProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1858
|
+
declare const SearchAndFilter: ({ filters, filterOptions, filterVisible, filterControls, viewSwitchControls, resultsContainerView, filterMapper, additionalFiltersContainer, onChange, defaultSearchTerm, onSearchChange, totalResults, isLoading, allowBindingSearchTerm, resetFilterValues, onResetFilterValues, }: SearchAndFilterProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1851
1859
|
|
|
1852
1860
|
type FilterItemsProps = {
|
|
1853
1861
|
/** The text for the add button */
|
package/dist/index.esm.js
CHANGED
|
@@ -1886,8 +1886,11 @@ var input = css4`
|
|
|
1886
1886
|
var inputCompact = css4`
|
|
1887
1887
|
border: 1px solid var(--white);
|
|
1888
1888
|
padding-block: var(--spacing-sm);
|
|
1889
|
-
min-height: 39px;
|
|
1890
1889
|
font-size: var(--fs-sm);
|
|
1890
|
+
|
|
1891
|
+
&& {
|
|
1892
|
+
min-height: 39px;
|
|
1893
|
+
}
|
|
1891
1894
|
`;
|
|
1892
1895
|
var inputDisabled = css4`
|
|
1893
1896
|
cursor: not-allowed;
|
|
@@ -6100,14 +6103,16 @@ var ConditionalInputRowEmpty = css21`
|
|
|
6100
6103
|
flex-wrap: nowrap;
|
|
6101
6104
|
`;
|
|
6102
6105
|
var SearchInput = css21`
|
|
6103
|
-
|
|
6104
|
-
|
|
6106
|
+
&& {
|
|
6107
|
+
max-height: 40px;
|
|
6108
|
+
min-height: unset;
|
|
6109
|
+
}
|
|
6105
6110
|
`;
|
|
6106
6111
|
var BindableKeywordSearchInputStyles = css21`
|
|
6107
6112
|
position: relative;
|
|
6108
6113
|
width: 100%;
|
|
6109
6114
|
|
|
6110
|
-
|
|
6115
|
+
&& [data-lexical-editor='true'] {
|
|
6111
6116
|
padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-base);
|
|
6112
6117
|
font-size: var(--fs-sm);
|
|
6113
6118
|
border-radius: var(--rounded-full);
|
|
@@ -6424,6 +6429,7 @@ var SearchAndFilterContext = createContext6({
|
|
|
6424
6429
|
validFilterQuery: [],
|
|
6425
6430
|
filterMapper: {},
|
|
6426
6431
|
totalResults: 0,
|
|
6432
|
+
isLoading: false,
|
|
6427
6433
|
allowBindingSearchTerm: false
|
|
6428
6434
|
});
|
|
6429
6435
|
var SearchAndFilterProvider = ({
|
|
@@ -6437,6 +6443,7 @@ var SearchAndFilterProvider = ({
|
|
|
6437
6443
|
resetFilterValues = [{ field: "", operator: "", value: "" }],
|
|
6438
6444
|
onResetFilterValues,
|
|
6439
6445
|
totalResults,
|
|
6446
|
+
isLoading,
|
|
6440
6447
|
filterMapper: filterMapper2 = filterMapper,
|
|
6441
6448
|
children,
|
|
6442
6449
|
allowBindingSearchTerm
|
|
@@ -6512,6 +6519,7 @@ var SearchAndFilterProvider = ({
|
|
|
6512
6519
|
filterOptions,
|
|
6513
6520
|
validFilterQuery,
|
|
6514
6521
|
totalResults,
|
|
6522
|
+
isLoading,
|
|
6515
6523
|
filterMapper: filterMapper2,
|
|
6516
6524
|
allowBindingSearchTerm
|
|
6517
6525
|
},
|
|
@@ -7040,7 +7048,7 @@ var SearchAndFilterResultContainer = ({
|
|
|
7040
7048
|
onHandleClear,
|
|
7041
7049
|
hideClearButton
|
|
7042
7050
|
}) => {
|
|
7043
|
-
const { searchTerm, totalResults, filters, handleResetFilters, setSearchTerm } = useSearchAndFilter();
|
|
7051
|
+
const { searchTerm, totalResults, filters, handleResetFilters, setSearchTerm, isLoading } = useSearchAndFilter();
|
|
7044
7052
|
const emptyFilters = filters.length === 0 || filters.every((filter) => !filter.value);
|
|
7045
7053
|
const getTextValue = ({
|
|
7046
7054
|
defaultPropText,
|
|
@@ -7071,7 +7079,7 @@ var SearchAndFilterResultContainer = ({
|
|
|
7071
7079
|
filterText: "No results match the selected filters",
|
|
7072
7080
|
fallbackText: "No matching results found"
|
|
7073
7081
|
});
|
|
7074
|
-
if (totalResults
|
|
7082
|
+
if (isLoading || totalResults === void 0 || totalResults > 0) {
|
|
7075
7083
|
return null;
|
|
7076
7084
|
}
|
|
7077
7085
|
const handleClearSearch = () => {
|
|
@@ -7122,6 +7130,7 @@ var SearchAndFilter = ({
|
|
|
7122
7130
|
defaultSearchTerm,
|
|
7123
7131
|
onSearchChange,
|
|
7124
7132
|
totalResults,
|
|
7133
|
+
isLoading,
|
|
7125
7134
|
allowBindingSearchTerm = false,
|
|
7126
7135
|
resetFilterValues = [],
|
|
7127
7136
|
onResetFilterValues
|
|
@@ -7136,6 +7145,7 @@ var SearchAndFilter = ({
|
|
|
7136
7145
|
defaultSearchTerm,
|
|
7137
7146
|
onSearchChange,
|
|
7138
7147
|
totalResults,
|
|
7148
|
+
isLoading,
|
|
7139
7149
|
resetFilterValues,
|
|
7140
7150
|
filterMapper: filterMapper2,
|
|
7141
7151
|
allowBindingSearchTerm,
|
|
@@ -7267,8 +7277,10 @@ var ConditionalInputRow2 = css22`
|
|
|
7267
7277
|
}
|
|
7268
7278
|
`;
|
|
7269
7279
|
var SearchInput2 = css22`
|
|
7270
|
-
|
|
7271
|
-
|
|
7280
|
+
&& {
|
|
7281
|
+
max-height: 40px;
|
|
7282
|
+
min-height: unset;
|
|
7283
|
+
}
|
|
7272
7284
|
`;
|
|
7273
7285
|
var FilterButton3 = css22`
|
|
7274
7286
|
align-items: center;
|
package/dist/index.js
CHANGED
|
@@ -2026,8 +2026,11 @@ var input = import_react18.css`
|
|
|
2026
2026
|
var inputCompact = import_react18.css`
|
|
2027
2027
|
border: 1px solid var(--white);
|
|
2028
2028
|
padding-block: var(--spacing-sm);
|
|
2029
|
-
min-height: 39px;
|
|
2030
2029
|
font-size: var(--fs-sm);
|
|
2030
|
+
|
|
2031
|
+
&& {
|
|
2032
|
+
min-height: 39px;
|
|
2033
|
+
}
|
|
2031
2034
|
`;
|
|
2032
2035
|
var inputDisabled = import_react18.css`
|
|
2033
2036
|
cursor: not-allowed;
|
|
@@ -6170,14 +6173,16 @@ var ConditionalInputRowEmpty = import_react63.css`
|
|
|
6170
6173
|
flex-wrap: nowrap;
|
|
6171
6174
|
`;
|
|
6172
6175
|
var SearchInput = import_react63.css`
|
|
6173
|
-
|
|
6174
|
-
|
|
6176
|
+
&& {
|
|
6177
|
+
max-height: 40px;
|
|
6178
|
+
min-height: unset;
|
|
6179
|
+
}
|
|
6175
6180
|
`;
|
|
6176
6181
|
var BindableKeywordSearchInputStyles = import_react63.css`
|
|
6177
6182
|
position: relative;
|
|
6178
6183
|
width: 100%;
|
|
6179
6184
|
|
|
6180
|
-
|
|
6185
|
+
&& [data-lexical-editor='true'] {
|
|
6181
6186
|
padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-base);
|
|
6182
6187
|
font-size: var(--fs-sm);
|
|
6183
6188
|
border-radius: var(--rounded-full);
|
|
@@ -6486,6 +6491,7 @@ var SearchAndFilterContext = (0, import_react64.createContext)({
|
|
|
6486
6491
|
validFilterQuery: [],
|
|
6487
6492
|
filterMapper: {},
|
|
6488
6493
|
totalResults: 0,
|
|
6494
|
+
isLoading: false,
|
|
6489
6495
|
allowBindingSearchTerm: false
|
|
6490
6496
|
});
|
|
6491
6497
|
var SearchAndFilterProvider = ({
|
|
@@ -6499,6 +6505,7 @@ var SearchAndFilterProvider = ({
|
|
|
6499
6505
|
resetFilterValues = [{ field: "", operator: "", value: "" }],
|
|
6500
6506
|
onResetFilterValues,
|
|
6501
6507
|
totalResults,
|
|
6508
|
+
isLoading,
|
|
6502
6509
|
filterMapper: filterMapper2 = filterMapper,
|
|
6503
6510
|
children,
|
|
6504
6511
|
allowBindingSearchTerm
|
|
@@ -6574,6 +6581,7 @@ var SearchAndFilterProvider = ({
|
|
|
6574
6581
|
filterOptions,
|
|
6575
6582
|
validFilterQuery,
|
|
6576
6583
|
totalResults,
|
|
6584
|
+
isLoading,
|
|
6577
6585
|
filterMapper: filterMapper2,
|
|
6578
6586
|
allowBindingSearchTerm
|
|
6579
6587
|
},
|
|
@@ -7102,7 +7110,7 @@ var SearchAndFilterResultContainer = ({
|
|
|
7102
7110
|
onHandleClear,
|
|
7103
7111
|
hideClearButton
|
|
7104
7112
|
}) => {
|
|
7105
|
-
const { searchTerm, totalResults, filters, handleResetFilters, setSearchTerm } = useSearchAndFilter();
|
|
7113
|
+
const { searchTerm, totalResults, filters, handleResetFilters, setSearchTerm, isLoading } = useSearchAndFilter();
|
|
7106
7114
|
const emptyFilters = filters.length === 0 || filters.every((filter) => !filter.value);
|
|
7107
7115
|
const getTextValue = ({
|
|
7108
7116
|
defaultPropText,
|
|
@@ -7133,7 +7141,7 @@ var SearchAndFilterResultContainer = ({
|
|
|
7133
7141
|
filterText: "No results match the selected filters",
|
|
7134
7142
|
fallbackText: "No matching results found"
|
|
7135
7143
|
});
|
|
7136
|
-
if (totalResults
|
|
7144
|
+
if (isLoading || totalResults === void 0 || totalResults > 0) {
|
|
7137
7145
|
return null;
|
|
7138
7146
|
}
|
|
7139
7147
|
const handleClearSearch = () => {
|
|
@@ -7184,6 +7192,7 @@ var SearchAndFilter = ({
|
|
|
7184
7192
|
defaultSearchTerm,
|
|
7185
7193
|
onSearchChange,
|
|
7186
7194
|
totalResults,
|
|
7195
|
+
isLoading,
|
|
7187
7196
|
allowBindingSearchTerm = false,
|
|
7188
7197
|
resetFilterValues = [],
|
|
7189
7198
|
onResetFilterValues
|
|
@@ -7198,6 +7207,7 @@ var SearchAndFilter = ({
|
|
|
7198
7207
|
defaultSearchTerm,
|
|
7199
7208
|
onSearchChange,
|
|
7200
7209
|
totalResults,
|
|
7210
|
+
isLoading,
|
|
7201
7211
|
resetFilterValues,
|
|
7202
7212
|
filterMapper: filterMapper2,
|
|
7203
7213
|
allowBindingSearchTerm,
|
|
@@ -7329,8 +7339,10 @@ var ConditionalInputRow2 = import_react69.css`
|
|
|
7329
7339
|
}
|
|
7330
7340
|
`;
|
|
7331
7341
|
var SearchInput2 = import_react69.css`
|
|
7332
|
-
|
|
7333
|
-
|
|
7342
|
+
&& {
|
|
7343
|
+
max-height: 40px;
|
|
7344
|
+
min-height: unset;
|
|
7345
|
+
}
|
|
7334
7346
|
`;
|
|
7335
7347
|
var FilterButton3 = import_react69.css`
|
|
7336
7348
|
align-items: center;
|
package/dist/index.mjs
CHANGED
|
@@ -1886,8 +1886,11 @@ var input = css4`
|
|
|
1886
1886
|
var inputCompact = css4`
|
|
1887
1887
|
border: 1px solid var(--white);
|
|
1888
1888
|
padding-block: var(--spacing-sm);
|
|
1889
|
-
min-height: 39px;
|
|
1890
1889
|
font-size: var(--fs-sm);
|
|
1890
|
+
|
|
1891
|
+
&& {
|
|
1892
|
+
min-height: 39px;
|
|
1893
|
+
}
|
|
1891
1894
|
`;
|
|
1892
1895
|
var inputDisabled = css4`
|
|
1893
1896
|
cursor: not-allowed;
|
|
@@ -6100,14 +6103,16 @@ var ConditionalInputRowEmpty = css21`
|
|
|
6100
6103
|
flex-wrap: nowrap;
|
|
6101
6104
|
`;
|
|
6102
6105
|
var SearchInput = css21`
|
|
6103
|
-
|
|
6104
|
-
|
|
6106
|
+
&& {
|
|
6107
|
+
max-height: 40px;
|
|
6108
|
+
min-height: unset;
|
|
6109
|
+
}
|
|
6105
6110
|
`;
|
|
6106
6111
|
var BindableKeywordSearchInputStyles = css21`
|
|
6107
6112
|
position: relative;
|
|
6108
6113
|
width: 100%;
|
|
6109
6114
|
|
|
6110
|
-
|
|
6115
|
+
&& [data-lexical-editor='true'] {
|
|
6111
6116
|
padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-base);
|
|
6112
6117
|
font-size: var(--fs-sm);
|
|
6113
6118
|
border-radius: var(--rounded-full);
|
|
@@ -6424,6 +6429,7 @@ var SearchAndFilterContext = createContext6({
|
|
|
6424
6429
|
validFilterQuery: [],
|
|
6425
6430
|
filterMapper: {},
|
|
6426
6431
|
totalResults: 0,
|
|
6432
|
+
isLoading: false,
|
|
6427
6433
|
allowBindingSearchTerm: false
|
|
6428
6434
|
});
|
|
6429
6435
|
var SearchAndFilterProvider = ({
|
|
@@ -6437,6 +6443,7 @@ var SearchAndFilterProvider = ({
|
|
|
6437
6443
|
resetFilterValues = [{ field: "", operator: "", value: "" }],
|
|
6438
6444
|
onResetFilterValues,
|
|
6439
6445
|
totalResults,
|
|
6446
|
+
isLoading,
|
|
6440
6447
|
filterMapper: filterMapper2 = filterMapper,
|
|
6441
6448
|
children,
|
|
6442
6449
|
allowBindingSearchTerm
|
|
@@ -6512,6 +6519,7 @@ var SearchAndFilterProvider = ({
|
|
|
6512
6519
|
filterOptions,
|
|
6513
6520
|
validFilterQuery,
|
|
6514
6521
|
totalResults,
|
|
6522
|
+
isLoading,
|
|
6515
6523
|
filterMapper: filterMapper2,
|
|
6516
6524
|
allowBindingSearchTerm
|
|
6517
6525
|
},
|
|
@@ -7040,7 +7048,7 @@ var SearchAndFilterResultContainer = ({
|
|
|
7040
7048
|
onHandleClear,
|
|
7041
7049
|
hideClearButton
|
|
7042
7050
|
}) => {
|
|
7043
|
-
const { searchTerm, totalResults, filters, handleResetFilters, setSearchTerm } = useSearchAndFilter();
|
|
7051
|
+
const { searchTerm, totalResults, filters, handleResetFilters, setSearchTerm, isLoading } = useSearchAndFilter();
|
|
7044
7052
|
const emptyFilters = filters.length === 0 || filters.every((filter) => !filter.value);
|
|
7045
7053
|
const getTextValue = ({
|
|
7046
7054
|
defaultPropText,
|
|
@@ -7071,7 +7079,7 @@ var SearchAndFilterResultContainer = ({
|
|
|
7071
7079
|
filterText: "No results match the selected filters",
|
|
7072
7080
|
fallbackText: "No matching results found"
|
|
7073
7081
|
});
|
|
7074
|
-
if (totalResults
|
|
7082
|
+
if (isLoading || totalResults === void 0 || totalResults > 0) {
|
|
7075
7083
|
return null;
|
|
7076
7084
|
}
|
|
7077
7085
|
const handleClearSearch = () => {
|
|
@@ -7122,6 +7130,7 @@ var SearchAndFilter = ({
|
|
|
7122
7130
|
defaultSearchTerm,
|
|
7123
7131
|
onSearchChange,
|
|
7124
7132
|
totalResults,
|
|
7133
|
+
isLoading,
|
|
7125
7134
|
allowBindingSearchTerm = false,
|
|
7126
7135
|
resetFilterValues = [],
|
|
7127
7136
|
onResetFilterValues
|
|
@@ -7136,6 +7145,7 @@ var SearchAndFilter = ({
|
|
|
7136
7145
|
defaultSearchTerm,
|
|
7137
7146
|
onSearchChange,
|
|
7138
7147
|
totalResults,
|
|
7148
|
+
isLoading,
|
|
7139
7149
|
resetFilterValues,
|
|
7140
7150
|
filterMapper: filterMapper2,
|
|
7141
7151
|
allowBindingSearchTerm,
|
|
@@ -7267,8 +7277,10 @@ var ConditionalInputRow2 = css22`
|
|
|
7267
7277
|
}
|
|
7268
7278
|
`;
|
|
7269
7279
|
var SearchInput2 = css22`
|
|
7270
|
-
|
|
7271
|
-
|
|
7280
|
+
&& {
|
|
7281
|
+
max-height: 40px;
|
|
7282
|
+
min-height: unset;
|
|
7283
|
+
}
|
|
7272
7284
|
`;
|
|
7273
7285
|
var FilterButton3 = css22`
|
|
7274
7286
|
align-items: center;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "20.49.
|
|
3
|
+
"version": "20.49.4-alpha.102+140d1a56b4",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"@lexical/selection": "0.39.0",
|
|
52
52
|
"@lexical/utils": "0.39.0",
|
|
53
53
|
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.5.0/react-icons-all-files-5.5.0.tgz",
|
|
54
|
-
"@uniformdev/canvas": "20.49.
|
|
55
|
-
"@uniformdev/design-system": "20.49.
|
|
56
|
-
"@uniformdev/mesh-sdk": "20.49.
|
|
57
|
-
"@uniformdev/richtext": "20.49.
|
|
54
|
+
"@uniformdev/canvas": "20.49.4-alpha.102+140d1a56b4",
|
|
55
|
+
"@uniformdev/design-system": "20.49.4-alpha.102+140d1a56b4",
|
|
56
|
+
"@uniformdev/mesh-sdk": "20.49.4-alpha.102+140d1a56b4",
|
|
57
|
+
"@uniformdev/richtext": "20.49.4-alpha.102+140d1a56b4",
|
|
58
58
|
"dequal": "^2.0.3",
|
|
59
59
|
"lexical": "0.39.0",
|
|
60
60
|
"mitt": "3.0.1",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "140d1a56b4b45021216a166bcaf7ebe629681b0b"
|
|
89
89
|
}
|