@adaptabletools/adaptable 12.0.0-canary.7 → 12.0.0-canary.8
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/bundle.cjs.js +4 -4
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/Api/DataSetApi.d.ts +3 -3
- package/src/Api/EventApi.d.ts +9 -9
- package/src/Api/Events/DataSetSelected.d.ts +11 -0
- package/src/Api/Events/{DataSetChanged.js → DataSetSelected.js} +0 -0
- package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -1
- package/src/Api/Implementation/DataSetApiImpl.js +3 -3
- package/src/Redux/Store/AdaptableStore.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
- package/src/metamodel/adaptable.metamodel.d.ts +12 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Api/Events/DataSetChanged.d.ts +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "12.0.0-canary.
|
|
3
|
+
"version": "12.0.0-canary.8",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 datagrid add-on that sits on top of an underlying grid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1655668818436;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
package/src/Api/DataSetApi.d.ts
CHANGED
|
@@ -33,8 +33,8 @@ export interface DataSetApi {
|
|
|
33
33
|
*/
|
|
34
34
|
showDataSetPopup(): void;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @param dataSet Data Set which has
|
|
36
|
+
* Fires the DataSet Selected Event
|
|
37
|
+
* @param dataSet Data Set which has been selected
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
fireDataSetSelectedEvent(dataSet: DataSet): void;
|
|
40
40
|
}
|
package/src/Api/EventApi.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { FlashingCellDisplayedInfo } from './Events/FlashingCellDisplayed';
|
|
|
15
15
|
import { GridDataChangedInfo } from './Events/GridDataChanged';
|
|
16
16
|
import { TeamSharingEntityChangedInfo } from './Events/TeamSharingEntityChanged';
|
|
17
17
|
import { ActionRowSubmittedInfo } from './Events/ActionRowSubmitted';
|
|
18
|
-
import {
|
|
18
|
+
import { DataSetSelectedInfo } from './Events/DataSetSelected';
|
|
19
19
|
/**
|
|
20
20
|
* Responsible for publishing the many Events that AdapTable fires
|
|
21
21
|
*/
|
|
@@ -209,18 +209,18 @@ export interface EventApi {
|
|
|
209
209
|
*/
|
|
210
210
|
off(eventName: 'ActionRowSubmitted', callback: (actionRowSubmittedInfo: ActionRowSubmittedInfo) => void): void;
|
|
211
211
|
/**
|
|
212
|
-
* Event fired when a DataSet is
|
|
212
|
+
* Event fired when a DataSet is Selected
|
|
213
213
|
*
|
|
214
|
-
* @param eventName
|
|
215
|
-
* @param callback
|
|
214
|
+
* @param eventName DataSetSelected
|
|
215
|
+
* @param callback DataSetSelectedInfo
|
|
216
216
|
*/
|
|
217
|
-
on(eventName: '
|
|
217
|
+
on(eventName: 'DataSetSelected', callback: (dataSetSelectedInfo: DataSetSelectedInfo) => void): () => void;
|
|
218
218
|
/**
|
|
219
|
-
* Unsubscribe from
|
|
220
|
-
* @param eventName
|
|
219
|
+
* Unsubscribe from DataSetSelected
|
|
220
|
+
* @param eventName DataSetSelected
|
|
221
221
|
* @param callback
|
|
222
222
|
*/
|
|
223
|
-
off(eventName: '
|
|
223
|
+
off(eventName: 'DataSetSelected', callback: (dataSetSelectedInfo: DataSetSelectedInfo) => void): void;
|
|
224
224
|
/**
|
|
225
225
|
* Fired when Adaptable is up and running - has no arguments.
|
|
226
226
|
* @param eventName - AdaptableReady
|
|
@@ -252,6 +252,6 @@ export interface EventApi {
|
|
|
252
252
|
emitSync(eventName: 'DashboardChanged', data?: any): any[];
|
|
253
253
|
emitSync(eventName: 'FlashingCellDisplayed', data?: any): any[];
|
|
254
254
|
emitSync(eventName: 'AdaptableDestroy'): any[];
|
|
255
|
-
emit(eventName: 'AdaptableReady' | 'AlertFired' | 'CheckboxColumnClicked' | 'CustomToolbarConfigured' | 'AdaptableStateChanged' | 'DashboardChanged' | 'CellChanged' | 'GridDataChanged' | 'LayoutChanged' | 'LiveDataChanged' | 'SearchChanged' | 'SelectionChanged' | 'SystemStatusMessageDisplayed' | 'TeamSharingEntityChanged' | 'ThemeChanged' | 'FDC3MessageSent' | 'ActionRowSubmitted' | '
|
|
255
|
+
emit(eventName: 'AdaptableReady' | 'AlertFired' | 'CheckboxColumnClicked' | 'CustomToolbarConfigured' | 'AdaptableStateChanged' | 'DashboardChanged' | 'CellChanged' | 'GridDataChanged' | 'LayoutChanged' | 'LiveDataChanged' | 'SearchChanged' | 'SelectionChanged' | 'SystemStatusMessageDisplayed' | 'TeamSharingEntityChanged' | 'ThemeChanged' | 'FDC3MessageSent' | 'ActionRowSubmitted' | 'DataSetSelected', data?: any): Promise<any>;
|
|
256
256
|
destroy(): void;
|
|
257
257
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DataSet } from '../../types';
|
|
2
|
+
import { BaseEventInfo } from './BaseEventInfo';
|
|
3
|
+
/**
|
|
4
|
+
* Object returned by the `DataSetSelected` event
|
|
5
|
+
*/
|
|
6
|
+
export interface DataSetSelectedInfo extends BaseEventInfo {
|
|
7
|
+
/**
|
|
8
|
+
* The DataSet that has been selected
|
|
9
|
+
*/
|
|
10
|
+
dataSet: DataSet;
|
|
11
|
+
}
|
|
File without changes
|
|
@@ -8,5 +8,5 @@ export declare class DataSetApiImpl extends ApiBase implements DataSetApi {
|
|
|
8
8
|
setDataSet(dataSetName: string): void;
|
|
9
9
|
clearCurrentDataSet(): void;
|
|
10
10
|
showDataSetPopup(): void;
|
|
11
|
-
|
|
11
|
+
fireDataSetSelectedEvent(dataSet: DataSet): void;
|
|
12
12
|
}
|
|
@@ -29,13 +29,13 @@ class DataSetApiImpl extends ApiBase_1.ApiBase {
|
|
|
29
29
|
showDataSetPopup() {
|
|
30
30
|
this.showModulePopup(ModuleConstants.DataSetModuleId);
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
fireDataSetSelectedEvent(dataSet) {
|
|
33
33
|
if (this.adaptable.isInitialised) {
|
|
34
|
-
const
|
|
34
|
+
const dataSetSelectedInfo = {
|
|
35
35
|
adaptableApi: this.adaptable.api,
|
|
36
36
|
dataSet,
|
|
37
37
|
};
|
|
38
|
-
this.adaptable.api.eventApi.emit('
|
|
38
|
+
this.adaptable.api.eventApi.emit('DataSetSelected', dataSetSelectedInfo);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -729,7 +729,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
729
729
|
case SystemRedux.SYSTEM_DATA_SET_SELECT: {
|
|
730
730
|
let returnAction = next(action);
|
|
731
731
|
const dataSet = adaptable.api.dataSetApi.getCurrentDataSet();
|
|
732
|
-
adaptable.api.dataSetApi.
|
|
732
|
+
adaptable.api.dataSetApi.fireDataSetSelectedEvent(dataSet);
|
|
733
733
|
requestAnimationFrame(() => {
|
|
734
734
|
if (dataSet.form) {
|
|
735
735
|
middlewareAPI.dispatch(PopupRedux_1.PopupShowForm({
|
|
@@ -113,6 +113,7 @@ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableCont
|
|
|
113
113
|
},
|
|
114
114
|
layoutOptions: {
|
|
115
115
|
createDefaultLayout: false,
|
|
116
|
+
autoSizeColumnsInLayout: true,
|
|
116
117
|
},
|
|
117
118
|
actionOptions: actionOptions,
|
|
118
119
|
predefinedConfig: {
|
|
@@ -287,7 +288,7 @@ const getColumnHeaderLabel = (columnId, mainAdaptableInstance) => {
|
|
|
287
288
|
return headerMap.get(columnId);
|
|
288
289
|
};
|
|
289
290
|
const getChangeTriggerLabel = (changeInfo) => {
|
|
290
|
-
return changeInfo.trigger === 'tick' ? 'Ticking
|
|
291
|
+
return changeInfo.trigger === 'tick' ? 'Ticking' : 'User Edit';
|
|
291
292
|
};
|
|
292
293
|
const filterChangeHistoryLog = (changeObject, filterValues) => {
|
|
293
294
|
const result = {};
|
|
@@ -2139,6 +2139,18 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2139
2139
|
reference: string;
|
|
2140
2140
|
}[];
|
|
2141
2141
|
};
|
|
2142
|
+
DataSetSelectedInfo: {
|
|
2143
|
+
name: string;
|
|
2144
|
+
kind: string;
|
|
2145
|
+
description: string;
|
|
2146
|
+
properties: {
|
|
2147
|
+
name: string;
|
|
2148
|
+
kind: string;
|
|
2149
|
+
description: string;
|
|
2150
|
+
uiLabel: string;
|
|
2151
|
+
reference: string;
|
|
2152
|
+
}[];
|
|
2153
|
+
};
|
|
2142
2154
|
DataUpdateConfig: {
|
|
2143
2155
|
name: string;
|
|
2144
2156
|
kind: string;
|