+
0 ? gridDto.gridOptions.height : undefined}
+ width={gridDto.gridOptions.width || '100%'}
+ cardMinWidth={280}
+ className="list-card-view"
+ hoverStateEnabled={gridDto.gridOptions.columnOptionDto?.hoverStateEnabled}
+ remoteOperations={{ paging: true, filtering: true, sorting: true }}
+ wordWrapEnabled={gridDto.gridOptions.rowDto?.whiteSpace !== 'nowrap'}
+ onContentReady={onContentReady}
+ onSelectionChanged={onSelectionChanged}
+ onInitNewCard={(event) => {
+ setFormData((event.data as Record) ?? {})
+ setMode('new')
+ setIsPopupFullScreen(
+ useMobileEditPopup || (editingOptions?.popup?.fullScreen ?? false),
+ )
+ }}
+ onEditingStart={(event) => {
+ setFormData((event.data as Record) ?? {})
+ setMode('edit')
+ setIsPopupFullScreen(
+ useMobileEditPopup || (editingOptions?.popup?.fullScreen ?? false),
+ )
+ }}
+ onEditCanceled={() => {
+ setMode('view')
+ setIsPopupFullScreen(false)
+ }}
+ onSaved={() => {
+ setMode('view')
+ setIsPopupFullScreen(false)
+ }}
+ onDataErrorOccurred={(event) => {
+ toast.push(
+
+ {String(event.error?.message ?? event.error ?? 'Select error')}
+ ,
+ { placement: 'bottom-end' },
+ )
+ }}
+ onCardInserted={() => refreshParentData?.()}
+ onCardUpdated={() => refreshParentData?.()}
+ onCardRemoved={() => refreshParentData?.()}
+ >
+
+ 0
+ ? editingOptions?.popup?.width
+ : 'auto',
+ maxWidth: useMobileEditPopup ? '100%' : '95vw',
+ height: getPopupHeight(useMobileEditPopup, isPopupFullScreen),
+ maxHeight: getPopupMaxHeight(
+ useMobileEditPopup,
+ isPopupFullScreen,
+ editingOptions?.popup?.height,
+ ),
+ fullScreen: isPopupFullScreen,
+ position: useMobileEditPopup
+ ? {
+ my: 'top center',
+ at: 'top center',
+ of: typeof window !== 'undefined' ? window : undefined,
+ }
+ : editingOptions?.popup?.position,
+ resizeEnabled: editingOptions?.popup?.resizeEnabled,
+ dragEnabled: editingOptions?.popup?.dragEnabled,
+ restorePosition: editingOptions?.popup?.restorePosition,
+ toolbarItems: [
+ {
+ widget: 'dxButton',
+ toolbar: 'bottom',
+ location: 'after',
+ options: {
+ text: translate('::Save'),
+ type: 'default',
+ onClick: () => cardViewRef.current?.instance().saveEditData(),
+ },
+ },
+ {
+ widget: 'dxButton',
+ toolbar: 'bottom',
+ location: 'after',
+ options: {
+ text: translate('::Cancel'),
+ onClick: () => cardViewRef.current?.instance().cancelEditData(),
+ },
+ },
+ {
+ widget: 'dxButton',
+ toolbar: 'top',
+ location: 'after',
+ options: {
+ icon: isPopupFullScreen ? 'collapse' : 'fullscreen',
+ hint: isPopupFullScreen
+ ? translate('::Normal Boyut')
+ : translate('::Tam Ekran'),
+ stylingMode: 'text',
+ onClick: () => setIsPopupFullScreen((current) => !current),
+ },
+ },
+ ],
+ }}
+ />
+ 0}>
+ {orderedToolbarData.map((item, index) => (
+
+ ))}
+ {gridDto.gridOptions.extraFilterDto?.length ? (
+ (
+
+ )}
+ />
+ ) : null}
+
+
+
+
+
+
+
+
+
+
+
+
+ {gridDto.gridOptions.subFormsDto?.length > 0 &&
+ gridDto.gridOptions.subFormsListFormType === SubFormTabTypeEnum.List && (
+ <>
+
+
+ >
+ )}
+
+
+
+ )}
+
+