2025-05-06 06:45:49 +00:00
|
|
|
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
|
|
|
|
import Container from '@/components/shared/Container'
|
|
|
|
|
|
import { DX_CLASSNAMES } from '@/constants/app.constant'
|
2025-08-12 08:39:06 +00:00
|
|
|
|
import { GridDto, ListFormCustomizationTypeEnum } from '@/proxy/form/models'
|
2025-05-06 06:45:49 +00:00
|
|
|
|
import {
|
|
|
|
|
|
getListFormCustomization,
|
|
|
|
|
|
postListFormCustomization,
|
2025-08-12 08:39:06 +00:00
|
|
|
|
} from '@/services/list-form-customization.service'
|
2025-05-06 06:45:49 +00:00
|
|
|
|
import { useListFormColumns } from '@/shared/useListFormColumns'
|
|
|
|
|
|
import { useListFormCustomDataSource } from '@/shared/useListFormCustomDataSource'
|
|
|
|
|
|
import { useLocalization } from '@/utils/hooks/useLocalization'
|
|
|
|
|
|
import Chart, { CommonSeriesSettings, Size, Tooltip } from 'devextreme-react/chart'
|
|
|
|
|
|
import PivotGrid, {
|
|
|
|
|
|
FieldChooser,
|
|
|
|
|
|
FieldPanel,
|
|
|
|
|
|
HeaderFilter,
|
|
|
|
|
|
IStateStoringProps,
|
|
|
|
|
|
PivotGridTypes,
|
|
|
|
|
|
Scrolling,
|
|
|
|
|
|
Search,
|
|
|
|
|
|
} from 'devextreme-react/pivot-grid'
|
|
|
|
|
|
import CustomStore from 'devextreme/data/custom_store'
|
|
|
|
|
|
import PivotGridDataSource, { Field } from 'devextreme/ui/pivot_grid/data_source'
|
|
|
|
|
|
import { useCallback, useEffect, useRef, useState } from 'react'
|
|
|
|
|
|
import { Helmet } from 'react-helmet'
|
|
|
|
|
|
import { GridColumnData } from './GridColumnData'
|
|
|
|
|
|
import {
|
|
|
|
|
|
addCss,
|
|
|
|
|
|
addJs,
|
|
|
|
|
|
controlStyleCondition,
|
|
|
|
|
|
pivotFieldConvertDataType,
|
|
|
|
|
|
setGridPanelColor,
|
|
|
|
|
|
} from './Utils'
|
|
|
|
|
|
import { useFilters } from './useFilters'
|
2025-09-25 14:40:16 +00:00
|
|
|
|
import WidgetGroup from '@/components/common/WidgetGroup'
|
2025-09-27 20:25:21 +00:00
|
|
|
|
import { Button } from '@/components/ui'
|
2025-11-07 23:00:51 +00:00
|
|
|
|
import { FaCog, FaTimes, FaUndo } from 'react-icons/fa'
|
2025-09-27 20:25:21 +00:00
|
|
|
|
import { usePermission } from '@/utils/hooks/usePermission'
|
|
|
|
|
|
import { ROUTES_ENUM } from '@/routes/route.constant'
|
|
|
|
|
|
import { usePWA } from '@/utils/hooks/usePWA'
|
2025-05-06 06:45:49 +00:00
|
|
|
|
|
2025-09-27 20:25:21 +00:00
|
|
|
|
interface PivotProps {
|
2025-05-06 06:45:49 +00:00
|
|
|
|
listFormCode: string
|
|
|
|
|
|
searchParams?: URLSearchParams
|
|
|
|
|
|
isSubForm?: boolean
|
|
|
|
|
|
level?: number
|
|
|
|
|
|
refreshData?: () => Promise<void>
|
2025-09-22 14:08:42 +00:00
|
|
|
|
gridDto?: GridDto
|
2025-09-29 08:33:51 +00:00
|
|
|
|
refreshGridDto: () => Promise<void>
|
2025-05-06 06:45:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const statedGridPanelColor = 'rgba(50, 200, 200, 0.5)' // kullanici tanimli gridState ile islem gormus gridin paneline ait renk
|
|
|
|
|
|
|
2025-09-27 20:25:21 +00:00
|
|
|
|
const Pivot = (props: PivotProps) => {
|
2025-09-22 14:08:42 +00:00
|
|
|
|
const { listFormCode, searchParams, isSubForm, level, gridDto } = props
|
2025-05-06 06:45:49 +00:00
|
|
|
|
const { translate } = useLocalization()
|
2025-09-27 20:25:21 +00:00
|
|
|
|
const { checkPermission } = usePermission()
|
|
|
|
|
|
const isPwaMode = usePWA()
|
2025-05-06 06:45:49 +00:00
|
|
|
|
|
|
|
|
|
|
const gridRef = useRef<PivotGrid>()
|
|
|
|
|
|
const chartRef = useRef<Chart>(null)
|
|
|
|
|
|
const refListFormCode = useRef('')
|
|
|
|
|
|
|
|
|
|
|
|
const [gridDataSource, setGridDataSource] = useState<CustomStore<any, any>>()
|
|
|
|
|
|
const [columnData, setColumnData] = useState<GridColumnData[]>()
|
|
|
|
|
|
|
|
|
|
|
|
const { filterToolbarData, ...filterData } = useFilters({
|
|
|
|
|
|
gridDto,
|
|
|
|
|
|
gridRef,
|
|
|
|
|
|
listFormCode,
|
|
|
|
|
|
})
|
|
|
|
|
|
|
2025-11-07 23:00:51 +00:00
|
|
|
|
const { createSelectDataSource } = useListFormCustomDataSource({ gridRef })
|
2025-05-06 06:45:49 +00:00
|
|
|
|
const { getBandedColumns } = useListFormColumns({
|
|
|
|
|
|
gridDto,
|
|
|
|
|
|
listFormCode,
|
|
|
|
|
|
isSubForm,
|
2025-10-16 22:15:34 +00:00
|
|
|
|
gridRef,
|
2025-05-06 06:45:49 +00:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
function onCellPrepared(e: any) {
|
|
|
|
|
|
const columnFormats = gridDto?.columnFormats
|
|
|
|
|
|
if (!columnFormats) {
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// satir, hucre yada header vb. kisimlara conditional style uygulamak icin
|
|
|
|
|
|
for (let indxCol = 0; indxCol < columnFormats.length; indxCol++) {
|
|
|
|
|
|
const colFormat = columnFormats[indxCol]
|
|
|
|
|
|
for (let indxStyl = 0; indxStyl < colFormat.columnStylingDto.length; indxStyl++) {
|
|
|
|
|
|
const colStyle = colFormat.columnStylingDto[indxStyl] // uygulanacak style
|
|
|
|
|
|
if (e.rowType == colStyle.rowType) {
|
|
|
|
|
|
// header, filter, data, group, summaries ..her birisine style uygulanabilir
|
|
|
|
|
|
// style bütün satıra uygulansın olarak seçili ise yada sadece ilgili field üzerinde ise
|
|
|
|
|
|
if (colStyle.useRow || e.column?.dataField == colFormat.fieldName) {
|
|
|
|
|
|
if (
|
|
|
|
|
|
!colStyle.conditionValue ||
|
|
|
|
|
|
controlStyleCondition(e.data, colFormat.fieldName, colStyle)
|
|
|
|
|
|
) {
|
|
|
|
|
|
// css sınıf ismi var ise uygula
|
|
|
|
|
|
if (colStyle.cssClassName) {
|
|
|
|
|
|
e.cellElement.addClass(colStyle.cssClassName)
|
|
|
|
|
|
}
|
|
|
|
|
|
// css inline style var ise uygula
|
|
|
|
|
|
if (colStyle.cssStyles) {
|
|
|
|
|
|
e.cellElement.attr('style', e.cellElement.attr('style') + ';' + colStyle.cssStyles)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-27 20:25:21 +00:00
|
|
|
|
const clearPivotFilters = () => {
|
|
|
|
|
|
const grid = gridRef.current?.instance
|
|
|
|
|
|
if (!grid) return
|
|
|
|
|
|
|
|
|
|
|
|
const ds = grid.getDataSource()
|
|
|
|
|
|
if (ds) {
|
|
|
|
|
|
const fields = ds.fields()
|
|
|
|
|
|
fields.forEach((f: any) => {
|
|
|
|
|
|
f.filterValues = undefined
|
|
|
|
|
|
f.filterType = undefined
|
|
|
|
|
|
})
|
|
|
|
|
|
ds.reload()
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const moveAllFieldsToFilterArea = () => {
|
|
|
|
|
|
const grid = gridRef.current?.instance
|
|
|
|
|
|
if (!grid) return
|
|
|
|
|
|
|
|
|
|
|
|
const ds = grid.getDataSource()
|
|
|
|
|
|
if (!ds) return
|
|
|
|
|
|
|
|
|
|
|
|
const fields = ds.fields()
|
|
|
|
|
|
|
|
|
|
|
|
fields.forEach((field) => {
|
|
|
|
|
|
field.area = 'filter' // tüm alanları filtre alanına taşı
|
|
|
|
|
|
field.areaIndex = undefined
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
ds.fields(fields)
|
|
|
|
|
|
ds.reload() // PivotGrid’i yeniden yükle
|
|
|
|
|
|
grid.repaint() // UI güncelle
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const resetPivotGridState = async () => {
|
|
|
|
|
|
const grid = gridRef.current?.instance
|
|
|
|
|
|
if (grid) {
|
|
|
|
|
|
// kullaniciya ait kayitli grid state i sil customizationData boşalt silinsin.
|
|
|
|
|
|
await postListFormCustomization({
|
|
|
|
|
|
listFormCode: listFormCode,
|
|
|
|
|
|
customizationType: ListFormCustomizationTypeEnum.GridState,
|
|
|
|
|
|
filterName: `pivot-${gridRef.current?.instance.option('stateStoring')?.storageKey ?? ''}`,
|
|
|
|
|
|
customizationData: '',
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
await props.refreshGridDto()
|
|
|
|
|
|
clearPivotFilters()
|
|
|
|
|
|
moveAllFieldsToFilterArea()
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-05-06 06:45:49 +00:00
|
|
|
|
const customSaveState = useCallback(
|
|
|
|
|
|
(state: any) =>
|
|
|
|
|
|
postListFormCustomization({
|
|
|
|
|
|
listFormCode: listFormCode,
|
|
|
|
|
|
customizationType: ListFormCustomizationTypeEnum.GridState,
|
|
|
|
|
|
filterName: `pivot-${gridRef.current?.instance.option('stateStoring')?.storageKey ?? ''}`,
|
|
|
|
|
|
customizationData: JSON.stringify(state),
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
setGridPanelColor(statedGridPanelColor)
|
|
|
|
|
|
}),
|
|
|
|
|
|
[listFormCode],
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
const customLoadState = useCallback(
|
|
|
|
|
|
() =>
|
|
|
|
|
|
getListFormCustomization(
|
|
|
|
|
|
listFormCode,
|
|
|
|
|
|
ListFormCustomizationTypeEnum.GridState,
|
|
|
|
|
|
`pivot-${gridRef.current?.instance.option('stateStoring')?.storageKey ?? ''}`,
|
|
|
|
|
|
).then((response: any) => {
|
|
|
|
|
|
setGridPanelColor(statedGridPanelColor)
|
|
|
|
|
|
if (response.data?.length > 0) {
|
|
|
|
|
|
return JSON.parse(response.data[0].customizationData)
|
|
|
|
|
|
}
|
|
|
|
|
|
}),
|
|
|
|
|
|
[listFormCode],
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
if (gridRef?.current) {
|
|
|
|
|
|
gridRef.current.instance.option('remoteOperations', false)
|
|
|
|
|
|
gridRef.current.instance.option('dataSource', undefined)
|
|
|
|
|
|
gridRef.current.instance.option('stateStoring', undefined)
|
|
|
|
|
|
}
|
|
|
|
|
|
}, [listFormCode])
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
if (!gridDto) {
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Set js and css
|
|
|
|
|
|
const grdOpt = gridDto.gridOptions
|
|
|
|
|
|
if (grdOpt.customJsSources.length) {
|
|
|
|
|
|
for (const js of grdOpt.customJsSources) {
|
|
|
|
|
|
addJs(js)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
if (grdOpt.customStyleSources.length) {
|
|
|
|
|
|
for (const css of grdOpt.customStyleSources) {
|
|
|
|
|
|
addCss(css)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}, [gridDto])
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
if (!gridDto) {
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Set columns
|
|
|
|
|
|
const cols = getBandedColumns()
|
|
|
|
|
|
setColumnData(cols?.filter((a) => a.colData?.pivotSettingsDto.isPivot))
|
|
|
|
|
|
|
|
|
|
|
|
// Set data source
|
|
|
|
|
|
const dataSource: CustomStore<any, any> = createSelectDataSource(
|
|
|
|
|
|
gridDto.gridOptions,
|
|
|
|
|
|
listFormCode,
|
|
|
|
|
|
searchParams,
|
|
|
|
|
|
cols,
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
setGridDataSource(dataSource)
|
|
|
|
|
|
}, [gridDto, searchParams])
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
refListFormCode.current = listFormCode
|
|
|
|
|
|
if (!gridRef?.current) {
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const fields: any = columnData?.map((b) => {
|
|
|
|
|
|
return {
|
|
|
|
|
|
dataField: b.dataField,
|
|
|
|
|
|
caption: b.caption,
|
|
|
|
|
|
dataType: pivotFieldConvertDataType(b.dataType),
|
|
|
|
|
|
area: b.colData?.pivotSettingsDto.area,
|
|
|
|
|
|
format: b.colData?.pivotSettingsDto.format,
|
|
|
|
|
|
summaryType: b.colData?.pivotSettingsDto.summaryType,
|
|
|
|
|
|
groupInterval: b.colData?.pivotSettingsDto.groupInterval,
|
|
|
|
|
|
sortOrder: b.colData?.pivotSettingsDto.sortOrder,
|
|
|
|
|
|
expanded: b.colData?.pivotSettingsDto.expanded,
|
|
|
|
|
|
wordWrapEnabled: b.colData?.pivotSettingsDto.wordWrapEnabled,
|
|
|
|
|
|
visible: true,
|
|
|
|
|
|
width: b.width,
|
|
|
|
|
|
} as Field
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
PivotGridDataSource
|
|
|
|
|
|
const dataSource: PivotGridTypes.Properties['dataSource'] = {
|
|
|
|
|
|
remoteOperations: true,
|
|
|
|
|
|
store: gridDataSource,
|
|
|
|
|
|
fields,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
gridRef.current.instance.option('dataSource', dataSource)
|
|
|
|
|
|
gridRef.current.instance.option('state', null)
|
|
|
|
|
|
|
|
|
|
|
|
const stateStoring: IStateStoringProps = {
|
|
|
|
|
|
enabled: gridDto?.gridOptions.stateStoringDto?.enabled,
|
|
|
|
|
|
type: gridDto?.gridOptions.stateStoringDto?.type,
|
|
|
|
|
|
savingTimeout: gridDto?.gridOptions.stateStoringDto?.savingTimeout,
|
|
|
|
|
|
storageKey: gridDto?.gridOptions.stateStoringDto?.storageKey,
|
|
|
|
|
|
}
|
|
|
|
|
|
if (
|
|
|
|
|
|
gridDto?.gridOptions.stateStoringDto?.enabled &&
|
|
|
|
|
|
gridDto?.gridOptions.stateStoringDto?.type === 'custom'
|
|
|
|
|
|
) {
|
|
|
|
|
|
stateStoring.customSave = customSaveState
|
|
|
|
|
|
stateStoring.customLoad = customLoadState
|
|
|
|
|
|
}
|
|
|
|
|
|
gridRef.current.instance.option('stateStoring', stateStoring)
|
|
|
|
|
|
|
|
|
|
|
|
//chart Integration
|
|
|
|
|
|
if (gridRef && chartRef) {
|
|
|
|
|
|
gridRef?.current?.instance.bindChart(chartRef?.current?.instance, {
|
|
|
|
|
|
dataFieldsDisplayMode: 'splitPanes',
|
|
|
|
|
|
alternateDataFields: false,
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
}, [columnData])
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
2025-09-25 14:40:16 +00:00
|
|
|
|
<>
|
|
|
|
|
|
<WidgetGroup widgetGroups={gridDto?.widgets ?? []} />
|
|
|
|
|
|
|
|
|
|
|
|
<Container className={DX_CLASSNAMES}>
|
|
|
|
|
|
{!isSubForm && (
|
|
|
|
|
|
<Helmet
|
2025-11-03 11:25:05 +00:00
|
|
|
|
titleTemplate="%s | Erp Platform"
|
2025-09-25 14:40:16 +00:00
|
|
|
|
title={translate('::' + gridDto?.gridOptions.title)}
|
2025-11-03 11:25:05 +00:00
|
|
|
|
defaultTitle="Erp Platform"
|
2025-09-25 14:40:16 +00:00
|
|
|
|
></Helmet>
|
|
|
|
|
|
)}
|
|
|
|
|
|
{gridDto && columnData && (
|
2025-09-27 20:25:21 +00:00
|
|
|
|
<div className="p-1 bg-white dark:bg-neutral-800 dark:border-neutral-700 ">
|
|
|
|
|
|
<div className="flex justify-end items-center">
|
|
|
|
|
|
<div className="relative pb-1 flex gap-1 border-b-1">
|
|
|
|
|
|
<Button
|
|
|
|
|
|
size="xs"
|
|
|
|
|
|
variant={'default'}
|
|
|
|
|
|
className="text-sm"
|
|
|
|
|
|
onClick={clearPivotFilters}
|
|
|
|
|
|
title="Remove Filter"
|
|
|
|
|
|
>
|
2025-09-29 08:33:51 +00:00
|
|
|
|
<FaTimes className="w-3 h-3" />
|
2025-09-27 20:25:21 +00:00
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
|
size="xs"
|
|
|
|
|
|
variant={'default'}
|
|
|
|
|
|
className="text-sm"
|
|
|
|
|
|
onClick={resetPivotGridState}
|
|
|
|
|
|
title="Reset Grid State"
|
|
|
|
|
|
>
|
2025-09-29 08:33:51 +00:00
|
|
|
|
<FaUndo className="w-3 h-3" />
|
2025-09-27 20:25:21 +00:00
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
{checkPermission(gridDto?.gridOptions.permissionDto.u) && (
|
|
|
|
|
|
<Button
|
|
|
|
|
|
size="xs"
|
|
|
|
|
|
variant={'default'}
|
|
|
|
|
|
className="text-sm"
|
|
|
|
|
|
onClick={() => {
|
|
|
|
|
|
window.open(
|
|
|
|
|
|
ROUTES_ENUM.protected.saas.listFormManagement.edit.replace(
|
|
|
|
|
|
':listFormCode',
|
|
|
|
|
|
listFormCode,
|
|
|
|
|
|
),
|
|
|
|
|
|
isPwaMode ? '_self' : '_blank',
|
|
|
|
|
|
)
|
|
|
|
|
|
}}
|
|
|
|
|
|
title="Form Manager"
|
|
|
|
|
|
>
|
2025-09-29 08:33:51 +00:00
|
|
|
|
<FaCog className="w-3 h-3" />
|
2025-09-27 20:25:21 +00:00
|
|
|
|
</Button>
|
|
|
|
|
|
)}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2025-09-25 14:40:16 +00:00
|
|
|
|
{gridDto.gridOptions.pivotOptionDto.showChart && (
|
|
|
|
|
|
<Chart ref={chartRef as any}>
|
|
|
|
|
|
<Size height={gridDto.gridOptions.pivotOptionDto.chartHeight} />
|
|
|
|
|
|
<Tooltip enabled={true}></Tooltip>
|
|
|
|
|
|
<CommonSeriesSettings
|
|
|
|
|
|
type={gridDto.gridOptions.pivotOptionDto.chartCommonSeriesType}
|
|
|
|
|
|
/>
|
|
|
|
|
|
</Chart>
|
|
|
|
|
|
)}
|
2025-05-06 06:45:49 +00:00
|
|
|
|
|
2025-09-27 20:25:21 +00:00
|
|
|
|
<div className="dx-datagrid-header-panel h-1"></div>
|
|
|
|
|
|
|
2025-09-25 14:40:16 +00:00
|
|
|
|
<PivotGrid
|
|
|
|
|
|
ref={gridRef as any}
|
|
|
|
|
|
id={'Pivot-' + listFormCode}
|
|
|
|
|
|
allowFiltering={gridDto.gridOptions.filterRowDto.visible}
|
|
|
|
|
|
allowSorting={gridDto.gridOptions.sortMode !== 'none'}
|
|
|
|
|
|
allowSortingBySummary={gridDto.gridOptions.sortMode !== 'none'}
|
|
|
|
|
|
height={gridDto.gridOptions.height || '100%'}
|
|
|
|
|
|
width={gridDto.gridOptions.width || '100%'}
|
|
|
|
|
|
showBorders={gridDto.gridOptions.columnOptionDto?.showBorders}
|
|
|
|
|
|
rtlEnabled={gridDto.gridOptions.columnOptionDto?.rtlEnabled}
|
|
|
|
|
|
hoverStateEnabled={gridDto.gridOptions.columnOptionDto?.hoverStateEnabled}
|
|
|
|
|
|
onCellPrepared={onCellPrepared}
|
2025-05-06 06:45:49 +00:00
|
|
|
|
>
|
2025-09-25 14:40:16 +00:00
|
|
|
|
<HeaderFilter
|
|
|
|
|
|
allowSelectAll={gridDto.gridOptions.selectionDto.allowSelectAll}
|
|
|
|
|
|
width={gridDto.gridOptions.headerFilterDto.width}
|
|
|
|
|
|
height={gridDto.gridOptions.headerFilterDto.height}
|
|
|
|
|
|
>
|
|
|
|
|
|
<Search
|
|
|
|
|
|
enabled={gridDto.gridOptions.headerFilterDto.allowSearch}
|
|
|
|
|
|
timeout={gridDto.gridOptions.headerFilterDto.searchTimeout}
|
|
|
|
|
|
></Search>
|
|
|
|
|
|
</HeaderFilter>
|
|
|
|
|
|
<FieldPanel
|
|
|
|
|
|
allowFieldDragging={gridDto.gridOptions.pivotOptionDto.allowFieldDragging}
|
|
|
|
|
|
visible={gridDto.gridOptions.pivotOptionDto.showFieldPanel}
|
|
|
|
|
|
showDataFields={gridDto.gridOptions.pivotOptionDto.showDataFields}
|
|
|
|
|
|
showColumnFields={gridDto.gridOptions.pivotOptionDto.showColumnFields}
|
|
|
|
|
|
showRowFields={gridDto.gridOptions.pivotOptionDto.showRowFields}
|
|
|
|
|
|
showFilterFields={gridDto.gridOptions.pivotOptionDto.showFilterFields}
|
|
|
|
|
|
/>
|
|
|
|
|
|
<FieldChooser
|
2025-09-27 20:25:21 +00:00
|
|
|
|
enabled={gridDto.gridOptions.pivotOptionDto.columnChooserEnabled}
|
2025-09-25 14:40:16 +00:00
|
|
|
|
height={500}
|
|
|
|
|
|
/>
|
|
|
|
|
|
<Scrolling mode={gridDto.gridOptions.pagerOptionDto.scrollingMode} />
|
|
|
|
|
|
</PivotGrid>
|
2025-09-27 20:25:21 +00:00
|
|
|
|
</div>
|
2025-09-25 14:40:16 +00:00
|
|
|
|
)}
|
|
|
|
|
|
</Container>
|
|
|
|
|
|
</>
|
2025-05-06 06:45:49 +00:00
|
|
|
|
)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export default Pivot
|