@adaptabletools/adaptable 13.1.0-canary.0 → 13.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "13.1.0-canary.0",
3
+ "version": "13.1.0",
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",
@@ -1,2 +1,2 @@
1
- declare const _default: 1668604193432;
1
+ declare const _default: 1668692878576;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = 1668604193432;
3
+ exports.default = 1668692878576;
@@ -16,33 +16,9 @@ export interface ActionOptions {
16
16
  actionRowButtons?: ActionRowButtonType[];
17
17
  /**
18
18
  * Additional options for managing Action Row Buttons
19
+ * @defaultValue undefined
19
20
  */
20
- actionRowButtonOptions?: {
21
- /**
22
- * Optional configuration that merges with built-in action row button and overrides default configuration
23
- * @defaultValue undefined
24
- */
25
- customConfiguration?: (context: ActionRowButtonConfigurationContext) => Partial<AdaptableButton<ActionColumnContext>>;
26
- /**
27
- * Position of Action Row Buttons
28
- * @defaultValue 'pinnedLeft'
29
- */
30
- position?: 'pinnedLeft' | 'pinnedRight';
31
- /**
32
- * If true, Action Row Buttons will be handled by AdapTable and the grid data model will be automatically updated with the created/edited/deleted rows
33
- * @defaultValue true
34
- */
35
- autoHandle?: boolean;
36
- /**
37
- * Function called when auto-handling 'create' Action Row Button; returned row value should have a valid(unique) primary key value
38
- * @defaultValue undefined
39
- */
40
- setPrimaryKeyValue?: (context: SetPrimaryKeyValueContext) => any;
41
- /**
42
- * Options for managing the Form which the Action Row displays
43
- */
44
- actionRowFormOptions?: ActionRowFormOptions;
45
- };
21
+ actionRowButtonOptions?: ActionRowButtonOptions;
46
22
  }
47
23
  /**
48
24
  * The context for the SetPrimaryKeyValueContext function
@@ -120,6 +96,33 @@ export interface ActionColumnSettings {
120
96
  */
121
97
  suppressMovable?: boolean;
122
98
  }
99
+ export interface ActionRowButtonOptions {
100
+ /**
101
+ * Optional configuration that merges with built-in action row button and overrides default configuration
102
+ * @defaultValue undefined
103
+ */
104
+ customConfiguration?: (context: ActionRowButtonConfigurationContext) => Partial<AdaptableButton<ActionColumnContext>>;
105
+ /**
106
+ * Action Row Buttons position: 'pinnedLeft' | 'pinnedRight
107
+ * @defaultValue 'pinnedLeft'
108
+ */
109
+ position?: 'pinnedLeft' | 'pinnedRight';
110
+ /**
111
+ * If true, Action Row Buttons will be handled by AdapTable and the grid data model will be automatically updated with the created/edited/deleted rows
112
+ * @defaultValue true
113
+ */
114
+ autoHandle?: boolean;
115
+ /**
116
+ * Function called when auto-handling 'create' Action Row Button; returned row value should have a valid(unique) primary key value
117
+ * @defaultValue undefined
118
+ */
119
+ setPrimaryKeyValue?: (context: SetPrimaryKeyValueContext) => any;
120
+ /**
121
+ * Options for managing the Form which the Action Row displays
122
+ * @defaultValue undefined
123
+ */
124
+ actionRowFormOptions?: ActionRowFormOptions;
125
+ }
123
126
  /**
124
127
  * Options for Form displayed when Action Row Button is clicked
125
128
  */
@@ -4,14 +4,24 @@
4
4
  export interface ChartingOptions {
5
5
  /**
6
6
  * Behaviour for saving Charts, can be automatic, manual (via popup) or none
7
- * @defaultValue 'manual'
7
+ * @defaultValue 'none'
8
8
  */
9
9
  saveStrategy?: 'auto' | 'manual' | 'none';
10
10
  /**
11
- * Used when restoring Charts; doesnt override AG Grid gridOptions.createChartContainer
11
+ * Locations to display saved Charts
12
12
  */
13
- chartContainers?: {
14
- name: string;
15
- element: HTMLElement | string;
16
- }[];
13
+ chartContainers?: ChartContainer[];
14
+ }
15
+ /**
16
+ * Describes a location to display an AG Grid Chart
17
+ */
18
+ export interface ChartContainer {
19
+ /**
20
+ * Name of the Location - used in Dropdowns
21
+ */
22
+ name: string;
23
+ /**
24
+ * Location - can be HTMLElement or Id of Div
25
+ */
26
+ element: HTMLElement | string;
17
27
  }
@@ -1,6 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- // Put in docs
4
- //* - auto: all created charts are saved automatically in Adaptable state
5
- //* - manual: a popup is shown to the user to save the chart
6
- //* - none: charts are not saved
@@ -303,8 +303,7 @@ export interface ColumnApi {
303
303
  */
304
304
  isColumnReferencedInExpression(columnId: string, expression: string): boolean;
305
305
  /**
306
- * Checks if a column is a ActionRowButton column (see UserInterfaceOptions.ActionOptions)
307
- *
306
+ * Checks if a column is a ActionRowButton column
308
307
  * @param columnId Column to Check
309
308
  */
310
309
  isActionRowButtonColumn(columnId: string): boolean;
@@ -3,13 +3,17 @@
3
3
  */
4
4
  export interface AdaptableStyle {
5
5
  /**
6
- * Colour background of cell: provide hex value or name
6
+ * Colour background of cell: hex, rgb(a) or name
7
7
  */
8
8
  BackColor?: string;
9
9
  /**
10
- * Font colour in cell: provide hex value or name
10
+ * Font colour in cell: hex, rgb(a) or name
11
11
  */
12
12
  ForeColor?: string;
13
+ /**
14
+ * Colour of cell border: hex, rgb(a) or name
15
+ */
16
+ BorderColor?: string;
13
17
  /**
14
18
  * Weight of font: `Normal` or `Bold`
15
19
  */
@@ -22,10 +26,6 @@ export interface AdaptableStyle {
22
26
  * Size of font: `XSmall`, `Small`, `Medium`, `Large` or `XLarge`
23
27
  */
24
28
  FontSize?: 'XSmall' | 'Small' | 'Medium' | 'Large' | 'XLarge';
25
- /**
26
- * Colour of cell border: provide hex value or name
27
- */
28
- BorderColor?: string;
29
29
  /**
30
30
  * Existing CSS Class; use instead of setting other object properties
31
31
  */
@@ -94,10 +94,12 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
94
94
  if (menuContext.adaptableColumn && menuContext.rowNode) {
95
95
  const flashingCellForRow = this.api.internalApi.getAdaptableFlashingCellFor(menuContext.primaryKeyValue);
96
96
  const flashingCellForCell = this.api.internalApi.getAdaptableFlashingCellFor(menuContext.primaryKeyValue, menuContext.adaptableColumn.columnId);
97
- if (flashingCellForRow &&
98
- (flashingCellForRow.flashTarget === 'row' ||
99
- flashingCellForRow.flashTarget.includes('row'))) {
100
- items.push(this.createColumnMenuItemReduxAction('Clear Flashing Row', this.moduleInfo.Glyph, SystemRedux.SystemFlashingCellDelete(flashingCellForRow)));
97
+ if (flashingCellForRow) {
98
+ if (flashingCellForRow.flashTarget === 'row' ||
99
+ (Array.isArray(flashingCellForRow.flashTarget) &&
100
+ flashingCellForRow.flashTarget.includes('row'))) {
101
+ items.push(this.createColumnMenuItemReduxAction('Clear Flashing Row', this.moduleInfo.Glyph, SystemRedux.SystemFlashingCellDelete(flashingCellForRow)));
102
+ }
101
103
  }
102
104
  else if (flashingCellForCell && flashingCellForCell.flashTarget === 'cell') {
103
105
  items.push(this.createColumnMenuItemReduxAction('Clear Flashing Cell', this.moduleInfo.Glyph, SystemRedux.SystemFlashingCellDelete(flashingCellForCell)));
@@ -275,6 +275,6 @@ exports.DefaultAdaptableOptions = {
275
275
  alwaysShowInToolPanel: false,
276
276
  },
277
277
  chartingOptions: {
278
- saveStrategy: 'manual',
278
+ saveStrategy: 'none',
279
279
  },
280
280
  };
@@ -39,6 +39,7 @@ function assignAdaptableOptions(adaptableOptions) {
39
39
  returnedAdaptableOptions.teamSharingOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.teamSharingOptions, adaptableOptions.teamSharingOptions);
40
40
  returnedAdaptableOptions.toolPanelOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.toolPanelOptions, adaptableOptions.toolPanelOptions);
41
41
  returnedAdaptableOptions.dataChangeHistoryOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.dataChangeHistoryOptions, adaptableOptions.dataChangeHistoryOptions);
42
+ returnedAdaptableOptions.chartingOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.chartingOptions, adaptableOptions.chartingOptions);
42
43
  returnedAdaptableOptions.settingsPanelOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.settingsPanelOptions, adaptableOptions.settingsPanelOptions);
43
44
  const { predefinedConfig } = returnedAdaptableOptions;
44
45
  if (predefinedConfig) {
@@ -96,13 +96,15 @@ export declare const ADAPTABLE_METAMODEL: {
96
96
  uiLabel: string;
97
97
  isOptional: boolean;
98
98
  defaultValue: string;
99
+ reference?: undefined;
99
100
  } | {
100
101
  name: string;
101
102
  kind: string;
102
103
  description: string;
103
104
  uiLabel: string;
104
105
  isOptional: boolean;
105
- defaultValue?: undefined;
106
+ defaultValue: string;
107
+ reference: string;
106
108
  })[];
107
109
  };
108
110
  ActionRowButtonConfigurationContext: {
@@ -1491,6 +1493,17 @@ export declare const ADAPTABLE_METAMODEL: {
1491
1493
  kind: string;
1492
1494
  description: string;
1493
1495
  };
1496
+ ChartContainer: {
1497
+ name: string;
1498
+ kind: string;
1499
+ description: string;
1500
+ properties: {
1501
+ name: string;
1502
+ kind: string;
1503
+ description: string;
1504
+ uiLabel: string;
1505
+ }[];
1506
+ };
1494
1507
  ChartDefinition: {
1495
1508
  name: string;
1496
1509
  kind: string;