@open-mercato/core 0.6.8-develop.6911.1.f853dd04a9 → 0.6.8-develop.6912.1.36161dc9ac
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/modules/api_keys/backend/api-keys/page.js.map +1 -1
- package/dist/modules/attachments/components/AttachmentLibrary.js.map +2 -2
- package/dist/modules/attachments/components/AttachmentPartitionSettings.js.map +1 -1
- package/dist/modules/audit_logs/components/AccessLogsTable.js.map +1 -1
- package/dist/modules/audit_logs/components/AuditLogsActions.js.map +1 -1
- package/dist/modules/auth/backend/roles/page.js.map +2 -2
- package/dist/modules/auth/backend/users/page.js.map +2 -2
- package/dist/modules/business_rules/backend/logs/page.js.map +1 -1
- package/dist/modules/business_rules/backend/rules/page.js.map +1 -1
- package/dist/modules/business_rules/backend/sets/page.js.map +1 -1
- package/dist/modules/catalog/components/PriceKindSettings.js.map +1 -1
- package/dist/modules/catalog/components/categories/CategoriesDataTable.js.map +1 -1
- package/dist/modules/catalog/components/products/ProductsDataTable.js.map +2 -2
- package/dist/modules/communication_channels/backend/communication_channels/channels/page.js.map +1 -1
- package/dist/modules/communication_channels/backend/profile/communication-channels/page.js.map +1 -1
- package/dist/modules/currencies/backend/currencies/page.js.map +1 -1
- package/dist/modules/currencies/backend/exchange-rates/page.js.map +1 -1
- package/dist/modules/customer_accounts/backend/customer_accounts/roles/page.js.map +1 -1
- package/dist/modules/customer_accounts/backend/customer_accounts/users/page.js.map +1 -1
- package/dist/modules/customers/backend/customers/companies/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/deals/page.js.map +1 -1
- package/dist/modules/customers/backend/customers/people/page.js.map +2 -2
- package/dist/modules/customers/components/CustomerTodosTable.js.map +1 -1
- package/dist/modules/data_sync/backend/data-sync/page.js.map +1 -1
- package/dist/modules/dictionaries/components/DictionaryTable.js.map +2 -2
- package/dist/modules/directory/backend/directory/organizations/page.js.map +1 -1
- package/dist/modules/directory/backend/directory/tenants/page.js.map +2 -2
- package/dist/modules/entities/backend/entities/user/[entityId]/records/page.js.map +2 -2
- package/dist/modules/entities/components/SystemEntitiesTable.js.map +2 -2
- package/dist/modules/entities/components/UserEntitiesTable.js.map +2 -2
- package/dist/modules/feature_toggles/components/FeatureTogglesTable.js.map +2 -2
- package/dist/modules/feature_toggles/components/OverridesTable.js.map +2 -2
- package/dist/modules/inbox_ops/backend/inbox-ops/log/page.js.map +1 -1
- package/dist/modules/inbox_ops/backend/inbox-ops/page.js.map +1 -1
- package/dist/modules/messages/components/MessagesInboxPageClient.js.map +1 -1
- package/dist/modules/payment_gateways/backend/payment-gateways/page.js.map +1 -1
- package/dist/modules/planner/backend/planner/availability-rulesets/page.js.map +2 -2
- package/dist/modules/query_index/components/QueryIndexesTable.js.map +2 -2
- package/dist/modules/resources/backend/resources/resource-types/page.js.map +2 -2
- package/dist/modules/resources/backend/resources/resources/page.js.map +1 -1
- package/dist/modules/sales/backend/sales/channels/offers/page.js.map +2 -2
- package/dist/modules/sales/backend/sales/channels/page.js.map +2 -2
- package/dist/modules/sales/components/AdjustmentKindSettings.js.map +1 -1
- package/dist/modules/sales/components/PaymentMethodsSettings.js.map +1 -1
- package/dist/modules/sales/components/ShippingMethodsSettings.js.map +1 -1
- package/dist/modules/sales/components/TaxRatesSettings.js.map +1 -1
- package/dist/modules/sales/components/channels/SalesChannelOffersPanel.js.map +2 -2
- package/dist/modules/sales/components/documents/AdjustmentsSection.js.map +1 -1
- package/dist/modules/sales/components/documents/PaymentsSection.js.map +1 -1
- package/dist/modules/sales/components/documents/SalesDocumentsTable.js.map +2 -2
- package/dist/modules/sales/components/documents/SalesOrderDraftLines.js.map +1 -1
- package/dist/modules/staff/backend/staff/leave-requests/page.js.map +2 -2
- package/dist/modules/staff/backend/staff/my-leave-requests/page.js.map +2 -2
- package/dist/modules/staff/backend/staff/team-members/page.js.map +2 -2
- package/dist/modules/staff/backend/staff/team-roles/page.js.map +1 -1
- package/dist/modules/staff/backend/staff/teams/[id]/edit/page.js.map +2 -2
- package/dist/modules/staff/backend/staff/teams/page.js.map +2 -2
- package/dist/modules/staff/backend/staff/timesheets/projects/page.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsConfigurationPage.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsInventoryConsolePage.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsLocationDetailPage.js.map +1 -1
- package/dist/modules/wms/components/backend/WmsLotDetailPage.js.map +1 -1
- package/dist/modules/wms/components/backend/WmsLotsListPage.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsOperationalDashboardPage.js.map +1 -1
- package/dist/modules/wms/components/backend/WmsSkuDetailPage.js.map +1 -1
- package/dist/modules/workflows/backend/definitions/page.js.map +1 -1
- package/dist/modules/workflows/backend/events/page.js.map +1 -1
- package/dist/modules/workflows/backend/instances/page.js.map +1 -1
- package/dist/modules/workflows/backend/tasks/page.js.map +1 -1
- package/jest.config.cjs +1 -1
- package/package.json +7 -7
- package/src/modules/api_keys/backend/api-keys/page.tsx +1 -1
- package/src/modules/attachments/components/AttachmentLibrary.tsx +2 -1
- package/src/modules/attachments/components/AttachmentPartitionSettings.tsx +1 -1
- package/src/modules/audit_logs/components/AccessLogsTable.tsx +1 -1
- package/src/modules/audit_logs/components/AuditLogsActions.tsx +1 -1
- package/src/modules/auth/backend/roles/page.tsx +2 -1
- package/src/modules/auth/backend/users/page.tsx +2 -1
- package/src/modules/business_rules/backend/logs/page.tsx +1 -1
- package/src/modules/business_rules/backend/rules/page.tsx +1 -1
- package/src/modules/business_rules/backend/sets/page.tsx +1 -1
- package/src/modules/catalog/components/PriceKindSettings.tsx +1 -1
- package/src/modules/catalog/components/categories/CategoriesDataTable.tsx +1 -1
- package/src/modules/catalog/components/products/ProductsDataTable.tsx +2 -1
- package/src/modules/communication_channels/backend/communication_channels/channels/page.tsx +1 -1
- package/src/modules/communication_channels/backend/profile/communication-channels/page.tsx +1 -1
- package/src/modules/currencies/backend/currencies/page.tsx +1 -1
- package/src/modules/currencies/backend/exchange-rates/page.tsx +1 -1
- package/src/modules/customer_accounts/backend/customer_accounts/roles/page.tsx +1 -1
- package/src/modules/customer_accounts/backend/customer_accounts/users/page.tsx +1 -1
- package/src/modules/customers/backend/customers/companies/page.tsx +2 -1
- package/src/modules/customers/backend/customers/deals/page.tsx +1 -1
- package/src/modules/customers/backend/customers/people/page.tsx +2 -1
- package/src/modules/customers/components/CustomerTodosTable.tsx +1 -1
- package/src/modules/data_sync/backend/data-sync/page.tsx +1 -1
- package/src/modules/dictionaries/components/DictionaryTable.tsx +2 -1
- package/src/modules/directory/backend/directory/organizations/page.tsx +1 -1
- package/src/modules/directory/backend/directory/tenants/page.tsx +2 -1
- package/src/modules/entities/backend/entities/user/[entityId]/records/page.tsx +2 -1
- package/src/modules/entities/components/SystemEntitiesTable.tsx +2 -1
- package/src/modules/entities/components/UserEntitiesTable.tsx +2 -1
- package/src/modules/feature_toggles/components/FeatureTogglesTable.tsx +2 -1
- package/src/modules/feature_toggles/components/OverridesTable.tsx +2 -1
- package/src/modules/inbox_ops/backend/inbox-ops/log/page.tsx +1 -1
- package/src/modules/inbox_ops/backend/inbox-ops/page.tsx +1 -1
- package/src/modules/messages/components/MessagesInboxPageClient.tsx +1 -1
- package/src/modules/payment_gateways/backend/payment-gateways/page.tsx +1 -1
- package/src/modules/planner/backend/planner/availability-rulesets/page.tsx +2 -1
- package/src/modules/query_index/components/QueryIndexesTable.tsx +2 -1
- package/src/modules/resources/backend/resources/resource-types/page.tsx +2 -1
- package/src/modules/resources/backend/resources/resources/page.tsx +1 -1
- package/src/modules/sales/backend/sales/channels/offers/page.tsx +2 -1
- package/src/modules/sales/backend/sales/channels/page.tsx +2 -1
- package/src/modules/sales/components/AdjustmentKindSettings.tsx +1 -1
- package/src/modules/sales/components/PaymentMethodsSettings.tsx +1 -1
- package/src/modules/sales/components/ShippingMethodsSettings.tsx +1 -1
- package/src/modules/sales/components/TaxRatesSettings.tsx +1 -1
- package/src/modules/sales/components/channels/SalesChannelOffersPanel.tsx +2 -1
- package/src/modules/sales/components/documents/AdjustmentsSection.tsx +1 -1
- package/src/modules/sales/components/documents/PaymentsSection.tsx +1 -1
- package/src/modules/sales/components/documents/SalesDocumentsTable.tsx +2 -1
- package/src/modules/sales/components/documents/SalesOrderDraftLines.tsx +1 -1
- package/src/modules/staff/backend/staff/leave-requests/page.tsx +2 -1
- package/src/modules/staff/backend/staff/my-leave-requests/page.tsx +2 -1
- package/src/modules/staff/backend/staff/team-members/page.tsx +3 -2
- package/src/modules/staff/backend/staff/team-roles/page.tsx +1 -1
- package/src/modules/staff/backend/staff/teams/[id]/edit/page.tsx +2 -1
- package/src/modules/staff/backend/staff/teams/page.tsx +2 -1
- package/src/modules/staff/backend/staff/timesheets/projects/page.tsx +2 -1
- package/src/modules/wms/components/backend/WmsConfigurationPage.tsx +2 -1
- package/src/modules/wms/components/backend/WmsInventoryConsolePage.tsx +4 -3
- package/src/modules/wms/components/backend/WmsLocationDetailPage.tsx +1 -1
- package/src/modules/wms/components/backend/WmsLotDetailPage.tsx +1 -1
- package/src/modules/wms/components/backend/WmsLotsListPage.tsx +2 -1
- package/src/modules/wms/components/backend/WmsOperationalDashboardPage.tsx +1 -1
- package/src/modules/wms/components/backend/WmsSkuDetailPage.tsx +1 -1
- package/src/modules/workflows/backend/definitions/page.tsx +1 -1
- package/src/modules/workflows/backend/events/page.tsx +1 -1
- package/src/modules/workflows/backend/instances/page.tsx +1 -1
- package/src/modules/workflows/backend/tasks/page.tsx +1 -1
|
@@ -6,7 +6,7 @@ import Link from 'next/link'
|
|
|
6
6
|
import { useRouter } from 'next/navigation'
|
|
7
7
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
8
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
9
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
9
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
10
10
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
11
11
|
import { Badge } from '@open-mercato/ui/primitives/badge'
|
|
12
12
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
@@ -7,7 +7,7 @@ import { useRouter } from 'next/navigation'
|
|
|
7
7
|
import { Globe, Settings } from 'lucide-react'
|
|
8
8
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
9
9
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
10
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
10
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
11
11
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
12
12
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
13
13
|
import { Input } from '@open-mercato/ui/primitives/input'
|
|
@@ -6,7 +6,8 @@ import Link from 'next/link'
|
|
|
6
6
|
import { usePathname, useRouter, useSearchParams } from 'next/navigation'
|
|
7
7
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
8
|
import { DataTable, type DataTableExportFormat, withDataTableNamespaces } from '@open-mercato/ui/backend/DataTable'
|
|
9
|
-
import type { ColumnDef
|
|
9
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
10
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
10
11
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
11
12
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
12
13
|
import { apiCall, apiCallOrThrow } from '@open-mercato/ui/backend/utils/apiCall'
|
|
@@ -5,7 +5,7 @@ import { extensionPoints } from '@open-mercato/core/modules/customers/extension-
|
|
|
5
5
|
import Link from 'next/link'
|
|
6
6
|
import { usePathname, useRouter, useSearchParams } from 'next/navigation'
|
|
7
7
|
import { useQueryClient } from '@tanstack/react-query'
|
|
8
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
8
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
9
9
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
10
10
|
import { DataTable, type DataTableExportFormat, withDataTableNamespaces } from '@open-mercato/ui/backend/DataTable'
|
|
11
11
|
import type { AdvancedFilterTree } from '@open-mercato/shared/lib/query/advanced-filter-tree'
|
|
@@ -6,7 +6,8 @@ import Link from 'next/link'
|
|
|
6
6
|
import { usePathname, useRouter, useSearchParams } from 'next/navigation'
|
|
7
7
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
8
|
import { DataTable, type DataTableExportFormat, withDataTableNamespaces } from '@open-mercato/ui/backend/DataTable'
|
|
9
|
-
import type { ColumnDef
|
|
9
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
10
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
10
11
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
11
12
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
12
13
|
import { apiCall, apiCallOrThrow } from '@open-mercato/ui/backend/utils/apiCall'
|
|
@@ -4,7 +4,7 @@ import * as React from 'react'
|
|
|
4
4
|
import { extensionPoints } from '@open-mercato/core/modules/customers/extension-points'
|
|
5
5
|
import Link from 'next/link'
|
|
6
6
|
import { useRouter } from 'next/navigation'
|
|
7
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
7
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
8
8
|
import { useQuery, keepPreviousData } from '@tanstack/react-query'
|
|
9
9
|
import { DataTable, type DataTableExportFormat } from '@open-mercato/ui/backend/DataTable'
|
|
10
10
|
import type { PreparedExport } from '@open-mercato/shared/lib/crud/exporters'
|
|
@@ -5,7 +5,7 @@ import Link from 'next/link'
|
|
|
5
5
|
import { useRouter } from 'next/navigation'
|
|
6
6
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
7
7
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
8
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
8
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
9
9
|
import type { FilterDef, FilterValues } from '@open-mercato/ui/backend/FilterBar'
|
|
10
10
|
import { useGuardedMutation } from '@open-mercato/ui/backend/injection/useGuardedMutation'
|
|
11
11
|
import { Badge } from '@open-mercato/ui/primitives/badge'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
-
import type { ColumnDef
|
|
2
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
3
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
3
4
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
4
5
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
5
6
|
import { RowActions, type RowActionItem } from '@open-mercato/ui/backend/RowActions'
|
|
@@ -3,7 +3,7 @@ import * as React from 'react'
|
|
|
3
3
|
import { extensionPoints } from '@open-mercato/core/modules/directory/extension-points'
|
|
4
4
|
import Link from 'next/link'
|
|
5
5
|
import { useQuery, useQueryClient } from '@tanstack/react-query'
|
|
6
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
6
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
7
7
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
8
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
9
9
|
import { ListEmptyState } from '@open-mercato/ui/backend/filters/ListEmptyState'
|
|
@@ -3,7 +3,8 @@ import * as React from 'react'
|
|
|
3
3
|
import { extensionPoints } from '@open-mercato/core/modules/directory/extension-points'
|
|
4
4
|
import Link from 'next/link'
|
|
5
5
|
import { useQuery, useQueryClient } from '@tanstack/react-query'
|
|
6
|
-
import type { ColumnDef
|
|
6
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
7
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
7
8
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
9
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
9
10
|
import { ListEmptyState } from '@open-mercato/ui/backend/filters/ListEmptyState'
|
|
@@ -3,7 +3,8 @@ import * as React from 'react'
|
|
|
3
3
|
import { resolveExtensionPointPattern } from '@open-mercato/shared/modules/widgets/extension-points'
|
|
4
4
|
import { extensionPoints } from '@open-mercato/core/modules/entities/extension-points'
|
|
5
5
|
import { useSearchParams } from 'next/navigation'
|
|
6
|
-
import type { ColumnDef
|
|
6
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
7
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
7
8
|
import { filterCustomFieldDefs, useCustomFieldDefs, type CustomFieldDefDto } from '@open-mercato/ui/backend/utils/customFieldDefs'
|
|
8
9
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
9
10
|
import { DataTable, type DataTableExportFormat } from '@open-mercato/ui/backend/DataTable'
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
import { extensionPoints } from '@open-mercato/core/modules/entities/extension-points'
|
|
4
4
|
import { useQuery } from '@tanstack/react-query'
|
|
5
|
-
import type { ColumnDef
|
|
5
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
6
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
6
7
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
7
8
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
8
9
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
@@ -4,7 +4,8 @@ import * as React from 'react'
|
|
|
4
4
|
import { extensionPoints } from '@open-mercato/core/modules/entities/extension-points'
|
|
5
5
|
import Link from 'next/link'
|
|
6
6
|
import { useQuery } from '@tanstack/react-query'
|
|
7
|
-
import type { ColumnDef
|
|
7
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
8
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
8
9
|
import { DataTable, RowActions, Button } from '@open-mercato/ui'
|
|
9
10
|
import { ListEmptyState } from '@open-mercato/ui/backend/filters/ListEmptyState'
|
|
10
11
|
import { readApiResultOrThrow } from '@open-mercato/ui/backend/utils/apiCall'
|
|
@@ -6,7 +6,8 @@ import { apiCall, withScopedApiRequestHeaders } from '@open-mercato/ui/backend/u
|
|
|
6
6
|
import { buildOptimisticLockHeader } from '@open-mercato/ui/backend/utils/optimisticLock'
|
|
7
7
|
import { raiseCrudError } from '@open-mercato/ui/backend/utils/serverErrors'
|
|
8
8
|
import { useQuery, useQueryClient } from '@tanstack/react-query'
|
|
9
|
-
import type { ColumnDef
|
|
9
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
10
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
10
11
|
import * as React from 'react'
|
|
11
12
|
import type { FilterDef, FilterValues } from "@open-mercato/ui/backend/FilterBar"
|
|
12
13
|
import { useMutation } from '@tanstack/react-query'
|
|
@@ -6,7 +6,8 @@ import { apiCall } from "@open-mercato/ui/backend/utils/apiCall";
|
|
|
6
6
|
import { raiseCrudError } from "@open-mercato/ui/backend/utils/serverErrors";
|
|
7
7
|
import { useT } from "@open-mercato/shared/lib/i18n/context";
|
|
8
8
|
import { useQueryClient } from "@tanstack/react-query";
|
|
9
|
-
import { ColumnDef
|
|
9
|
+
import type { LegacyColumnDef as ColumnDef } from "@tanstack/react-table/legacy";
|
|
10
|
+
import type { SortingState } from "@tanstack/react-table";
|
|
10
11
|
import * as React from 'react'
|
|
11
12
|
import type { FilterDef, FilterValues } from "@open-mercato/ui/backend/FilterBar"
|
|
12
13
|
import { RowActions } from "@open-mercato/ui/backend/RowActions";
|
|
@@ -4,7 +4,7 @@ import * as React from 'react'
|
|
|
4
4
|
import Link from 'next/link'
|
|
5
5
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
6
6
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
7
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
7
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
8
8
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
9
9
|
import { apiCall } from '@open-mercato/ui/backend/utils/apiCall'
|
|
10
10
|
import { flash } from '@open-mercato/ui/backend/FlashMessages'
|
|
@@ -6,7 +6,7 @@ import { useRouter } from 'next/navigation'
|
|
|
6
6
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
7
7
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
8
8
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
9
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
9
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
10
10
|
import type { FilterDef, FilterValues } from '@open-mercato/ui/backend/FilterBar'
|
|
11
11
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
12
12
|
import { apiCall } from '@open-mercato/ui/backend/utils/apiCall'
|
|
@@ -5,7 +5,7 @@ import { extensionPoints } from '@open-mercato/core/modules/messages/extension-p
|
|
|
5
5
|
import Link from 'next/link'
|
|
6
6
|
import { useRouter } from 'next/navigation'
|
|
7
7
|
import { useQuery, useQueryClient } from '@tanstack/react-query'
|
|
8
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
8
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
9
9
|
import { useT } from '@open-mercato/shared/lib/i18n/context'
|
|
10
10
|
import { useOrganizationScopeVersion } from '@open-mercato/shared/lib/frontend/useOrganizationScope'
|
|
11
11
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
import { extensionPoints } from '@open-mercato/core/modules/payment_gateways/extension-points'
|
|
4
4
|
import { useSearchParams } from 'next/navigation'
|
|
5
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
5
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
6
6
|
import type { FilterDef, FilterValues } from '@open-mercato/ui/backend/FilterBar'
|
|
7
7
|
import { Page, PageHeader, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
8
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import Link from 'next/link'
|
|
5
5
|
import { useRouter } from 'next/navigation'
|
|
6
|
-
import type { ColumnDef
|
|
6
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
7
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
7
8
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
9
|
import { markdownToPlainText } from '@open-mercato/ui/backend/markdown/markdownToPlainText'
|
|
9
10
|
import { DataTable, withDataTableNamespaces } from '@open-mercato/ui/backend/DataTable'
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
import { extensionPoints } from '@open-mercato/core/modules/query_index/extension-points'
|
|
4
4
|
import { useQuery, useQueryClient } from '@tanstack/react-query'
|
|
5
|
-
import type { ColumnDef
|
|
5
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
6
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
6
7
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
7
8
|
import type { FilterDef, FilterValues } from '@open-mercato/ui/backend/FilterBar'
|
|
8
9
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
@@ -4,7 +4,8 @@ import * as React from 'react'
|
|
|
4
4
|
import { extensionPoints } from '@open-mercato/core/modules/resources/extension-points'
|
|
5
5
|
import { useRouter } from 'next/navigation'
|
|
6
6
|
import Link from 'next/link'
|
|
7
|
-
import type { ColumnDef
|
|
7
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
8
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
8
9
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
9
10
|
import { markdownToPlainText } from '@open-mercato/ui/backend/markdown/markdownToPlainText'
|
|
10
11
|
import { DataTable, withDataTableNamespaces } from '@open-mercato/ui/backend/DataTable'
|
|
@@ -4,7 +4,7 @@ import * as React from 'react'
|
|
|
4
4
|
import { extensionPoints } from '@open-mercato/core/modules/resources/extension-points'
|
|
5
5
|
import Link from 'next/link'
|
|
6
6
|
import { usePathname, useRouter, useSearchParams } from 'next/navigation'
|
|
7
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
7
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
8
8
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
9
9
|
import { DataTable, withDataTableNamespaces } from '@open-mercato/ui/backend/DataTable'
|
|
10
10
|
import { ListEmptyState } from '@open-mercato/ui/backend/filters/ListEmptyState'
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import { useRouter } from 'next/navigation'
|
|
5
|
-
import type { ColumnDef
|
|
5
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
6
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
6
7
|
import type { FilterDef, FilterValues } from '@open-mercato/ui/backend/FilterBar'
|
|
7
8
|
import type { FilterOption } from '@open-mercato/ui/backend/FilterOverlay'
|
|
8
9
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import { useRouter } from 'next/navigation'
|
|
5
5
|
import Link from 'next/link'
|
|
6
|
-
import type { ColumnDef
|
|
6
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
7
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
7
8
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
9
|
import { DataTable, withDataTableNamespaces } from '@open-mercato/ui/backend/DataTable'
|
|
9
10
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
4
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
5
5
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
6
6
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
7
7
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import { z } from 'zod'
|
|
5
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
5
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
6
6
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
7
7
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
8
8
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import { z } from 'zod'
|
|
5
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
5
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
6
6
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
7
7
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
8
8
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import { z } from 'zod'
|
|
5
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
5
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
6
6
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
7
7
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
8
8
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import Link from 'next/link'
|
|
5
5
|
import { useRouter } from 'next/navigation'
|
|
6
|
-
import type { ColumnDef
|
|
6
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
7
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
7
8
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
8
9
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
9
10
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
5
|
import * as React from 'react'
|
|
6
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
6
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
7
7
|
import { Badge } from '@open-mercato/ui/primitives/badge'
|
|
8
8
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
9
9
|
import { ErrorMessage, LoadingMessage, TabEmptyState } from '@open-mercato/ui/backend/detail'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
4
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
5
5
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
6
6
|
import { LoadingMessage, ErrorMessage, TabEmptyState } from '@open-mercato/ui/backend/detail'
|
|
7
7
|
import { apiCall, withScopedApiRequestHeaders } from '@open-mercato/ui/backend/utils/apiCall'
|
|
@@ -4,7 +4,8 @@ import * as React from 'react'
|
|
|
4
4
|
import { extensionPoints } from '@open-mercato/core/modules/sales/extension-points'
|
|
5
5
|
import Link from 'next/link'
|
|
6
6
|
import { useRouter } from 'next/navigation'
|
|
7
|
-
import type { ColumnDef
|
|
7
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
8
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
8
9
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
9
10
|
import { DataTable, type DataTableExportFormat, withDataTableNamespaces } from '@open-mercato/ui/backend/DataTable'
|
|
10
11
|
import type { FilterDef, FilterValues } from '@open-mercato/ui/backend/FilterBar'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
4
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
5
5
|
import { Plus } from 'lucide-react'
|
|
6
6
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
7
7
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import Link from 'next/link'
|
|
5
5
|
import { useRouter } from 'next/navigation'
|
|
6
|
-
import type { ColumnDef
|
|
6
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
7
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
7
8
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
9
|
import { DataTable, withDataTableNamespaces } from '@open-mercato/ui/backend/DataTable'
|
|
9
10
|
import { ListEmptyState } from '@open-mercato/ui/backend/filters/ListEmptyState'
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import Link from 'next/link'
|
|
5
5
|
import { useRouter } from 'next/navigation'
|
|
6
|
-
import type { ColumnDef
|
|
6
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
7
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
7
8
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
9
|
import { DataTable, withDataTableNamespaces } from '@open-mercato/ui/backend/DataTable'
|
|
9
10
|
import { Badge } from '@open-mercato/ui/primitives/badge'
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import Link from 'next/link'
|
|
5
5
|
import { usePathname, useRouter, useSearchParams } from 'next/navigation'
|
|
6
|
-
import type { ColumnDef,
|
|
6
|
+
import type { LegacyColumnDef as ColumnDef, LegacyFeatures } from '@tanstack/react-table/legacy'
|
|
7
|
+
import type { SortFn, SortingState } from '@tanstack/react-table'
|
|
7
8
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
9
|
import { DataTable, withDataTableNamespaces } from '@open-mercato/ui/backend/DataTable'
|
|
9
10
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
@@ -141,7 +142,7 @@ export default function StaffTeamMembersPage() {
|
|
|
141
142
|
},
|
|
142
143
|
}), [t])
|
|
143
144
|
|
|
144
|
-
const groupedSortingFn = React.useCallback((field: GroupedSortField):
|
|
145
|
+
const groupedSortingFn = React.useCallback((field: GroupedSortField): SortFn<LegacyFeatures, TeamMemberRow> => {
|
|
145
146
|
return (rowA, rowB) => compareGroupedRows(field, labels.groups, rowA.original, rowB.original)
|
|
146
147
|
}, [labels.groups])
|
|
147
148
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import Link from 'next/link'
|
|
5
5
|
import { useRouter } from 'next/navigation'
|
|
6
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
6
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
7
7
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
8
|
import { DataTable, withDataTableNamespaces } from '@open-mercato/ui/backend/DataTable'
|
|
9
9
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import Link from 'next/link'
|
|
5
5
|
import { usePathname, useRouter, useSearchParams } from 'next/navigation'
|
|
6
|
-
import type { ColumnDef
|
|
6
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
7
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
7
8
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
9
|
import { ErrorMessage, RecordNotFoundState } from '@open-mercato/ui/backend/detail'
|
|
9
10
|
import { readApiResultOrThrow, withScopedApiRequestHeaders } from '@open-mercato/ui/backend/utils/apiCall'
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import Link from 'next/link'
|
|
5
5
|
import { useRouter } from 'next/navigation'
|
|
6
|
-
import type { ColumnDef
|
|
6
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
7
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
7
8
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
9
|
import { DataTable, withDataTableNamespaces } from '@open-mercato/ui/backend/DataTable'
|
|
9
10
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import Link from 'next/link'
|
|
5
5
|
import { useRouter, useSearchParams } from 'next/navigation'
|
|
6
|
-
import type { ColumnDef
|
|
6
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
7
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
7
8
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
9
|
import { DataTable, withDataTableNamespaces } from '@open-mercato/ui/backend/DataTable'
|
|
9
10
|
import type { FilterDef, FilterValues } from '@open-mercato/ui/backend/FilterOverlay'
|
|
@@ -5,7 +5,8 @@ import { extensionPoints } from '@open-mercato/core/modules/wms/extension-points
|
|
|
5
5
|
import Link from 'next/link'
|
|
6
6
|
import { useRouter } from 'next/navigation'
|
|
7
7
|
import { z } from 'zod'
|
|
8
|
-
import type { ColumnDef
|
|
8
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
9
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
9
10
|
import { useQuery, useQueryClient, type QueryClient } from '@tanstack/react-query'
|
|
10
11
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
11
12
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import { extensionPoints } from '@open-mercato/core/modules/wms/extension-points'
|
|
5
5
|
import Link from 'next/link'
|
|
6
|
-
import type { ColumnDef
|
|
6
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
7
|
+
import type { RowData, SortingState } from '@tanstack/react-table'
|
|
7
8
|
import { useQuery } from '@tanstack/react-query'
|
|
8
9
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
9
10
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
@@ -234,7 +235,7 @@ function buildInventoryQuery(
|
|
|
234
235
|
return params.toString()
|
|
235
236
|
}
|
|
236
237
|
|
|
237
|
-
type InventoryDataTableSectionProps<T> = {
|
|
238
|
+
type InventoryDataTableSectionProps<T extends RowData> = {
|
|
238
239
|
sectionQueryKey: string
|
|
239
240
|
endpoint: string
|
|
240
241
|
titleKey: string
|
|
@@ -263,7 +264,7 @@ type InventoryDataTableSectionProps<T> = {
|
|
|
263
264
|
emptyStateAction?: React.ReactNode
|
|
264
265
|
}
|
|
265
266
|
|
|
266
|
-
function InventoryDataTableSection<T>({
|
|
267
|
+
function InventoryDataTableSection<T extends RowData>({
|
|
267
268
|
sectionQueryKey,
|
|
268
269
|
endpoint,
|
|
269
270
|
titleKey,
|
|
@@ -6,7 +6,7 @@ import Link from 'next/link'
|
|
|
6
6
|
import { useRouter } from 'next/navigation'
|
|
7
7
|
import { z } from 'zod'
|
|
8
8
|
import { useQuery } from '@tanstack/react-query'
|
|
9
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
9
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
10
10
|
import {
|
|
11
11
|
ArrowLeft,
|
|
12
12
|
ArrowLeftRight,
|
|
@@ -6,7 +6,7 @@ import Link from 'next/link'
|
|
|
6
6
|
import { useRouter } from 'next/navigation'
|
|
7
7
|
import { z } from 'zod'
|
|
8
8
|
import { useQuery } from '@tanstack/react-query'
|
|
9
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
9
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
10
10
|
import {
|
|
11
11
|
ArrowLeft,
|
|
12
12
|
ArrowLeftRight,
|
|
@@ -4,7 +4,8 @@ import * as React from 'react'
|
|
|
4
4
|
import { extensionPoints } from '@open-mercato/core/modules/wms/extension-points'
|
|
5
5
|
import Link from 'next/link'
|
|
6
6
|
import { useSearchParams } from 'next/navigation'
|
|
7
|
-
import type { ColumnDef
|
|
7
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
8
|
+
import type { SortingState } from '@tanstack/react-table'
|
|
8
9
|
import { useQuery } from '@tanstack/react-query'
|
|
9
10
|
import { Layers } from 'lucide-react'
|
|
10
11
|
import { Page, PageBody, PageHeader } from '@open-mercato/ui/backend/Page'
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import Link from 'next/link'
|
|
5
5
|
import { useQuery } from '@tanstack/react-query'
|
|
6
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
6
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
7
7
|
import {
|
|
8
8
|
ArrowDown,
|
|
9
9
|
ClipboardList,
|
|
@@ -6,7 +6,7 @@ import Link from 'next/link'
|
|
|
6
6
|
import { useRouter } from 'next/navigation'
|
|
7
7
|
import { z } from 'zod'
|
|
8
8
|
import { useQuery } from '@tanstack/react-query'
|
|
9
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
9
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
10
10
|
import {
|
|
11
11
|
ArrowDown,
|
|
12
12
|
ArrowLeft,
|
|
@@ -6,7 +6,7 @@ import Link from 'next/link'
|
|
|
6
6
|
import { useRouter } from 'next/navigation'
|
|
7
7
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
8
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
9
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
9
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
10
10
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
11
11
|
import { Badge } from '@open-mercato/ui/primitives/badge'
|
|
12
12
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
@@ -4,7 +4,7 @@ import * as React from 'react'
|
|
|
4
4
|
import Link from 'next/link'
|
|
5
5
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
6
6
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
7
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
7
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
8
8
|
import { apiCall } from '@open-mercato/ui/backend/utils/apiCall'
|
|
9
9
|
import { useQuery } from '@tanstack/react-query'
|
|
10
10
|
import { useT } from '@open-mercato/shared/lib/i18n/context'
|
|
@@ -6,7 +6,7 @@ import Link from 'next/link'
|
|
|
6
6
|
import { useRouter } from 'next/navigation'
|
|
7
7
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
8
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
9
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
9
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
10
10
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
11
11
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
12
12
|
import { apiCall } from '@open-mercato/ui/backend/utils/apiCall'
|
|
@@ -6,7 +6,7 @@ import Link from 'next/link'
|
|
|
6
6
|
import { useRouter } from 'next/navigation'
|
|
7
7
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
8
8
|
import { DataTable } from '@open-mercato/ui/backend/DataTable'
|
|
9
|
-
import type { ColumnDef } from '@tanstack/react-table'
|
|
9
|
+
import type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'
|
|
10
10
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
11
11
|
import { RowActions } from '@open-mercato/ui/backend/RowActions'
|
|
12
12
|
import { apiCall } from '@open-mercato/ui/backend/utils/apiCall'
|