@antscorp/antsomi-ui 1.3.5-beta.619 → 1.3.5-beta.620

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.
@@ -114,7 +114,9 @@ export const SavedFilterAndMetrics = memo(props => {
114
114
  }
115
115
  },
116
116
  }), [filterMetricList, onSelectFilterMetric]);
117
- const renderFilterMetrics = () => (React.createElement(Menu, { key: matchedParents.map(item => `${item.id}`).join(','), mode: "inline", inlineIndent: 10, defaultOpenKeys: matchedParents.map(item => `${item.id}`), items: filterMetricItems }));
117
+ const renderFilterMetrics = () => (React.createElement(Menu, { key: matchedParents.map(item => `${item.id}`).join(','), mode: "inline", inlineIndent: 10, defaultOpenKeys: searchValue
118
+ ? matchedParents.map(item => `${item.id}`)
119
+ : filterMetricItems === null || filterMetricItems === void 0 ? void 0 : filterMetricItems.map(item => `${item === null || item === void 0 ? void 0 : item.key}`), items: filterMetricItems }));
118
120
  return (React.createElement(FilterSelectFieldsContent, null,
119
121
  React.createElement(Input.CustomSearch, { ref: searchInputRef, value: searchValue, className: "search-input", autoFocus: true, onAfterChange: value => setState(prev => (Object.assign(Object.assign({}, prev), { searchValue: value }))) }),
120
122
  React.createElement(Divider, { style: { borderColor: globalToken === null || globalToken === void 0 ? void 0 : globalToken.bw3, margin: '8px 0 2px 0' } }),
@@ -127,7 +127,10 @@ export function useDataTableListing(props) {
127
127
  !(matchesAnyProps === null || matchesAnyProps === void 0 ? void 0 : matchesAnyProps.options),
128
128
  // Dependencies for the useMemo hook: recalculate if matchesAnyProps.options, matchesAnyRequest, or selectedFilterItem changes.
129
129
  [matchesAnyProps === null || matchesAnyProps === void 0 ? void 0 : matchesAnyProps.options, matchesAnyRequest, selectedFilterItem]);
130
- const localStorageKey = useDeepCompareMemo(() => `${TABLE_LISTING_PREFIX}${name}`, [name]);
130
+ const localStorageKey = useDeepCompareMemo(() => {
131
+ const { userId, portalId } = auth || {};
132
+ return `${TABLE_LISTING_PREFIX}${userId}-${portalId}-${name}`;
133
+ }, [name, auth]);
131
134
  const localStorageValues = useDeepCompareMemo(() => parseJSONFromLocalStorage(localStorageKey) || {}, [localStorageKey]);
132
135
  // Queries
133
136
  const getColumnMetrics = useGetColumnMetrics({
@@ -151,5 +151,6 @@ export const MenuWrapper = styled.div `
151
151
  a {
152
152
  color: unset;
153
153
  transition: none;
154
+ text-decoration: none !important;
154
155
  }
155
156
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.619",
3
+ "version": "1.3.5-beta.620",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",