@@ -9,7 +9,7 @@ import dxCardView, {
99import { Component as BaseComponent , IHtmlOptions , ComponentRef , NestedComponentMeta } from "./core/component" ;
1010import NestedOption from "./core/nested-option" ;
1111
12- import type { CardClickEvent , CardDblClickEvent , CardInsertedEvent , CardInsertingEvent , CardPreparedEvent , CardRemovedEvent , CardRemovingEvent , CardSavedEvent , CardSavingEvent , CardUpdatedEvent , CardUpdatingEvent , ContextMenuPreparingEvent , EditCanceledEvent , EditCancelingEvent , EditingStartEvent , FieldCaptionClickEvent , FieldCaptionDblClickEvent , FieldCaptionPreparedEvent , FieldValueClickEvent , FieldValueDblClickEvent , FieldValuePreparedEvent , InitNewCardEvent , CardTemplateData , CardHeaderItem as CardViewCardHeaderItem , CardHeaderPredefinedItem , FieldTemplateData , ColumnTemplateData , EditingTexts as CardViewEditingTexts , PredefinedToolbarItem , dxCardViewToolbarItem } from "devextreme/ui/card_view" ;
12+ import type { CardClickEvent , CardDblClickEvent , CardInsertedEvent , CardInsertingEvent , CardPreparedEvent , CardRemovedEvent , CardRemovingEvent , CardUpdatedEvent , CardUpdatingEvent , ContextMenuPreparingEvent , EditCanceledEvent , EditCancelingEvent , EditingStartEvent , FieldCaptionClickEvent , FieldCaptionDblClickEvent , FieldCaptionPreparedEvent , FieldValueClickEvent , FieldValueDblClickEvent , FieldValuePreparedEvent , InitNewCardEvent , SavedEvent , SavingEvent , CardTemplateData , CardHeaderItem as CardViewCardHeaderItem , CardHeaderPredefinedItem , FieldTemplateData , ColumnTemplateData , EditingTexts as CardViewEditingTexts , PredefinedToolbarItem , dxCardViewToolbarItem } from "devextreme/ui/card_view" ;
1313import type { AnimationConfig , CollisionResolution , PositionConfig , AnimationState , AnimationType , CollisionResolutionCombination } from "devextreme/common/core/animation" ;
1414import type { ValidationRuleType , HorizontalAlignment , VerticalAlignment , ButtonStyle , template , ButtonType , ToolbarItemLocation , ToolbarItemComponent , SearchMode , SingleMultipleOrNone , SelectAllMode , DataType , Format as CommonFormat , SortOrder , ComparisonOperator , DragHighlight , Mode , Direction , PositionAlignment , DisplayMode , ScrollbarMode , TabsIconPosition , TabsStyle , Position as CommonPosition } from "devextreme/common" ;
1515import type { dxButtonOptions , ClickEvent , ContentReadyEvent , DisposingEvent , InitializedEvent , OptionChangedEvent } from "devextreme/ui/button" ;
@@ -44,8 +44,6 @@ type ICardViewOptionsNarrowedEvents<TCardData = any, TKey = any> = {
4444 onCardPrepared ?: ( ( e : CardPreparedEvent ) => void ) ;
4545 onCardRemoved ?: ( ( e : CardRemovedEvent < TCardData , TKey > ) => void ) ;
4646 onCardRemoving ?: ( ( e : CardRemovingEvent < TCardData , TKey > ) => void ) ;
47- onCardSaved ?: ( ( e : CardSavedEvent ) => void ) ;
48- onCardSaving ?: ( ( e : CardSavingEvent ) => void ) ;
4947 onCardUpdated ?: ( ( e : CardUpdatedEvent < TCardData , TKey > ) => void ) ;
5048 onCardUpdating ?: ( ( e : CardUpdatingEvent < TCardData , TKey > ) => void ) ;
5149 onContextMenuPreparing ?: ( ( e : ContextMenuPreparingEvent < TCardData > ) => void ) ;
@@ -59,6 +57,8 @@ type ICardViewOptionsNarrowedEvents<TCardData = any, TKey = any> = {
5957 onFieldValueDblClick ?: ( ( e : FieldValueDblClickEvent ) => void ) ;
6058 onFieldValuePrepared ?: ( ( e : FieldValuePreparedEvent ) => void ) ;
6159 onInitNewCard ?: ( ( e : InitNewCardEvent < TCardData > ) => void ) ;
60+ onSaved ?: ( ( e : SavedEvent ) => void ) ;
61+ onSaving ?: ( ( e : SavingEvent ) => void ) ;
6262}
6363
6464type ICardViewOptions < TCardData = any , TKey = any > = React . PropsWithChildren < ReplaceFieldTypes < Properties < TCardData , TKey > , ICardViewOptionsNarrowedEvents < TCardData , TKey > > & IHtmlOptions & {
@@ -95,7 +95,7 @@ const CardView = memo(
9595 ) , [ ] ) ;
9696
9797 const subscribableOptions = useMemo ( ( ) => ( [ "filterValue" , "selectedCardKeys" , "filterBuilder.value" , "filterPanel.filterEnabled" , "editing.form.formData" , "loadPanel.position" , "loadPanel.visible" , "paging.pageIndex" , "paging.pageSize" , "searchPanel.text" ] ) , [ ] ) ;
98- const independentEvents = useMemo ( ( ) => ( [ "onCardClick" , "onCardDblClick" , "onCardInserted" , "onCardInserting" , "onCardPrepared" , "onCardRemoved" , "onCardRemoving" , "onCardSaved" , "onCardSaving" , " onCardUpdated", "onCardUpdating" , "onContentReady" , "onContextMenuPreparing" , "onDataErrorOccurred" , "onDisposing" , "onEditCanceled" , "onEditCanceling" , "onEditingStart" , "onFieldCaptionClick" , "onFieldCaptionDblClick" , "onFieldCaptionPrepared" , "onFieldValueClick" , "onFieldValueDblClick" , "onFieldValuePrepared" , "onInitialized" , "onInitNewCard" ] ) , [ ] ) ;
98+ const independentEvents = useMemo ( ( ) => ( [ "onCardClick" , "onCardDblClick" , "onCardInserted" , "onCardInserting" , "onCardPrepared" , "onCardRemoved" , "onCardRemoving" , "onCardUpdated" , "onCardUpdating" , "onContentReady" , "onContextMenuPreparing" , "onDataErrorOccurred" , "onDisposing" , "onEditCanceled" , "onEditCanceling" , "onEditingStart" , "onFieldCaptionClick" , "onFieldCaptionDblClick" , "onFieldCaptionPrepared" , "onFieldValueClick" , "onFieldValueDblClick" , "onFieldValuePrepared" , "onInitialized" , "onInitNewCard" , "onSaved" , "onSaving "] ) , [ ] ) ;
9999
100100 const defaults = useMemo ( ( ) => ( {
101101 defaultFilterValue : "filterValue" ,
0 commit comments