rez-table-listing-mui 1.3.45 → 1.3.47
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.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/listing/components/table-settings/components/sorting.tsx +11 -6
- package/src/listing/components/table-settings/index.tsx +2 -2
- package/src/view/ListingView.tsx +1 -1
package/package.json
CHANGED
|
@@ -175,12 +175,17 @@ const Sorting = ({
|
|
|
175
175
|
|
|
176
176
|
const sensors = useSensors(useSensor(PointerSensor));
|
|
177
177
|
|
|
178
|
-
const activeTabIndex = columnTabState?.
|
|
179
|
-
(
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
178
|
+
const activeTabIndex = columnTabState?.isDefault
|
|
179
|
+
? quickTabStates?.show_list?.findIndex(
|
|
180
|
+
(tab) =>
|
|
181
|
+
tab?.value === activeTab ||
|
|
182
|
+
tab?.label?.toLowerCase() === activeTab?.toLowerCase()
|
|
183
|
+
)
|
|
184
|
+
: columnTabState?.tabs?.findIndex(
|
|
185
|
+
(tab) =>
|
|
186
|
+
tab?.tab_name?.value == activeTab ||
|
|
187
|
+
tab?.tab_name?.label?.toLowerCase() == activeTab?.toLowerCase()
|
|
188
|
+
);
|
|
184
189
|
/**
|
|
185
190
|
* * What is happening here?
|
|
186
191
|
*
|
|
@@ -139,7 +139,7 @@ export function QuickFilterSettings({
|
|
|
139
139
|
tabsApiData={tabsApiData}
|
|
140
140
|
tabsApiDataLoading={tabsApiDataLoading}
|
|
141
141
|
activeTab={activeTab}
|
|
142
|
-
columnTabAttributes={columnTabAttributes
|
|
142
|
+
columnTabAttributes={columnTabAttributes}
|
|
143
143
|
/>
|
|
144
144
|
)}
|
|
145
145
|
</CustomTabPanel>
|
|
@@ -151,7 +151,7 @@ export function QuickFilterSettings({
|
|
|
151
151
|
<Column
|
|
152
152
|
filterSettingStates={filterSettingStates}
|
|
153
153
|
columnsData={columnsData}
|
|
154
|
-
columnTabAttributes={columnTabAttributes
|
|
154
|
+
columnTabAttributes={columnTabAttributes}
|
|
155
155
|
columnTabAttributesLoading={columnTabAttributesLoading}
|
|
156
156
|
/>
|
|
157
157
|
)}
|
package/src/view/ListingView.tsx
CHANGED
|
@@ -542,7 +542,7 @@ function ListingView() {
|
|
|
542
542
|
columnsDataLoading={metaQuery.isPending}
|
|
543
543
|
quickTabAttributes={quickTabAttributes?.data}
|
|
544
544
|
quickTabAttributesLoading={quickTabAttributes?.isLoading}
|
|
545
|
-
columnTabAttributes={settingsColumnAttributes?.data}
|
|
545
|
+
columnTabAttributes={settingsColumnAttributes?.data?.slice(0, 25)}
|
|
546
546
|
columnAttributesLoading={settingsColumnAttributes?.isLoading}
|
|
547
547
|
sortingTabAttributes={sortingTabAttributes?.data}
|
|
548
548
|
sortingTabAttributesLoading={sortingTabAttributes?.isLoading}
|