|
@@ -17,6 +17,10 @@ import {
|
|
|
clearSignalData, defineSignal, ISignal
|
|
|
} from 'phosphor/lib/core/signaling';
|
|
|
|
|
|
+import {
|
|
|
+ IChangedArgs
|
|
|
+} from '../../common/interfaces';
|
|
|
+
|
|
|
import {
|
|
|
IMetadataCursor, MetadataCursor
|
|
|
} from '../common/metadata';
|
|
@@ -30,28 +34,6 @@ import {
|
|
|
} from '../output-area';
|
|
|
|
|
|
|
|
|
-/**
|
|
|
- * The definition for cell model changes.
|
|
|
- */
|
|
|
-export
|
|
|
-interface ICellModelChanged {
|
|
|
- /**
|
|
|
- * The name of the changed attribute.
|
|
|
- */
|
|
|
- name: string;
|
|
|
-
|
|
|
- /**
|
|
|
- * The old value of the changed attribute.
|
|
|
- */
|
|
|
- oldValue: any;
|
|
|
-
|
|
|
- /**
|
|
|
- * The new value of the changed attribute.
|
|
|
- */
|
|
|
- newValue: any;
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* The definition of a model object for a cell.
|
|
|
*/
|
|
@@ -73,12 +55,12 @@ interface ICellModel extends IDisposable {
|
|
|
/**
|
|
|
* A signal emitted when a metadata field changes.
|
|
|
*/
|
|
|
- metadataChanged: ISignal<ICellModel, ICellModelChanged>;
|
|
|
+ metadataChanged: ISignal<ICellModel, IChangedArgs<any>>;
|
|
|
|
|
|
/**
|
|
|
* A signal emitted when a model state changes.
|
|
|
*/
|
|
|
- stateChanged: ISignal<ICellModel, ICellModelChanged>;
|
|
|
+ stateChanged: ISignal<ICellModel, IChangedArgs<any>>;
|
|
|
|
|
|
/**
|
|
|
* The input content of the cell.
|
|
@@ -201,12 +183,12 @@ class CellModel implements ICellModel {
|
|
|
/**
|
|
|
* A signal emitted when a metadata field changes.
|
|
|
*/
|
|
|
- metadataChanged: ISignal<ICellModel, ICellModelChanged>;
|
|
|
+ metadataChanged: ISignal<ICellModel, IChangedArgs<any>>;
|
|
|
|
|
|
/**
|
|
|
* A signal emitted when a model state changes.
|
|
|
*/
|
|
|
- stateChanged: ISignal<ICellModel, ICellModelChanged>;
|
|
|
+ stateChanged: ISignal<ICellModel, IChangedArgs<any>>;
|
|
|
|
|
|
/**
|
|
|
* The input content of the cell.
|