@adaptabletools/adaptable 12.0.0-canary.0 → 12.0.0-canary.1

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.
Files changed (77) hide show
  1. package/base.css +546 -269
  2. package/bundle.cjs.js +102 -102
  3. package/index.css +616 -266
  4. package/package.json +2 -2
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableOptions/EditOptions.d.ts +4 -5
  8. package/src/AdaptableOptions/ExportOptions.d.ts +4 -7
  9. package/src/AdaptableOptions/GeneralOptions.d.ts +5 -2
  10. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +19 -1
  11. package/src/Api/ColumnApi.d.ts +7 -2
  12. package/src/Api/EventApi.d.ts +11 -0
  13. package/src/Api/Events/SearchChanged.d.ts +1 -1
  14. package/src/Api/ExportApi.d.ts +2 -2
  15. package/src/Api/FilterApi.d.ts +69 -1
  16. package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -2
  17. package/src/Api/Implementation/ColumnApiImpl.js +15 -14
  18. package/src/Api/Implementation/ConfigApiImpl.js +1 -1
  19. package/src/Api/Implementation/ExportApiImpl.d.ts +2 -2
  20. package/src/Api/Implementation/FilterApiImpl.d.ts +16 -1
  21. package/src/Api/Implementation/FilterApiImpl.js +141 -0
  22. package/src/Api/Implementation/GridApiImpl.js +7 -3
  23. package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -15
  24. package/src/Api/Implementation/LayoutApiImpl.js +0 -152
  25. package/src/Api/Implementation/PredicateApiImpl.d.ts +2 -0
  26. package/src/Api/Implementation/PredicateApiImpl.js +18 -0
  27. package/src/Api/LayoutApi.d.ts +1 -72
  28. package/src/Api/PredicateApi.d.ts +7 -0
  29. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
  30. package/src/PredefinedConfig/Common/FormContext.d.ts +8 -0
  31. package/src/PredefinedConfig/Common/FormContext.js +2 -0
  32. package/src/Redux/ActionsReducers/LayoutRedux.js +0 -1
  33. package/src/Redux/ActionsReducers/PopupRedux.d.ts +3 -2
  34. package/src/Strategy/AdaptableModuleBase.js +1 -2
  35. package/src/Strategy/BulkUpdateModule.js +3 -4
  36. package/src/Strategy/CellSummaryModule.js +1 -2
  37. package/src/Strategy/FilterModule.js +15 -18
  38. package/src/Strategy/LayoutModule.js +1 -0
  39. package/src/Strategy/PlusMinusModule.js +1 -4
  40. package/src/Strategy/SmartEditModule.js +2 -2
  41. package/src/Utilities/Constants/GeneralConstants.d.ts +2 -0
  42. package/src/Utilities/Constants/GeneralConstants.js +3 -1
  43. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -0
  44. package/src/Utilities/Services/CalculatedColumnExpressionService.js +6 -7
  45. package/src/Utilities/Services/RowEditService.d.ts +1 -0
  46. package/src/Utilities/Services/RowEditService.js +34 -2
  47. package/src/View/BulkUpdate/BulkUpdatePopup.js +2 -3
  48. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -3
  49. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +4 -5
  50. package/src/View/CellSummary/CellSummaryDetails.js +2 -2
  51. package/src/View/Components/FilterForm/FilterForm.js +1 -1
  52. package/src/View/Components/FilterForm/QuickFilterForm.js +1 -1
  53. package/src/View/Components/PreviewResultsPanel.js +3 -3
  54. package/src/View/Components/WizardSummaryPage.js +2 -2
  55. package/src/View/Filter/ActiveFiltersPanel.js +1 -1
  56. package/src/View/Filter/FilterSummary.js +1 -1
  57. package/src/View/Filter/FilterViewPanel.js +2 -2
  58. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +4 -5
  59. package/src/View/GridInfo/ColumnInfoComponent.js +1 -1
  60. package/src/View/GridInfo/GridInfoPopup.js +1 -1
  61. package/src/View/UIHelper.js +6 -6
  62. package/src/agGrid/Adaptable.js +25 -11
  63. package/src/agGrid/FilterWrapper.js +2 -2
  64. package/src/agGrid/agGridHelper.d.ts +2 -3
  65. package/src/agGrid/agGridHelper.js +37 -33
  66. package/src/agGrid/rowEditIcons.d.ts +1 -0
  67. package/src/agGrid/rowEditIcons.js +2 -1
  68. package/src/components/InfiniteTable/index.js +1 -0
  69. package/src/components/List/GridList/index.js +1 -1
  70. package/src/components/icons/add-row.d.ts +3 -0
  71. package/src/components/icons/add-row.js +7 -0
  72. package/src/components/icons/index.js +2 -0
  73. package/src/metamodel/adaptable.metamodel.d.ts +1 -1
  74. package/src/metamodel/adaptable.metamodel.js +122 -89
  75. package/src/types.d.ts +3 -2
  76. package/version.d.ts +1 -1
  77. package/version.js +1 -1
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.agGridHelper = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const Enums_1 = require("../PredefinedConfig/Common/Enums");
6
5
  const Uuid_1 = require("../PredefinedConfig/Uuid");
7
6
  const AlertModule_1 = require("../Strategy/AlertModule");
8
7
  const BulkUpdateModule_1 = require("../Strategy/BulkUpdateModule");
@@ -43,6 +42,7 @@ const Helper_1 = require("../Utilities/Helpers/Helper");
43
42
  const StatusBarModule_1 = require("../Strategy/StatusBarModule");
44
43
  const GeneralConstants = tslib_1.__importStar(require("../Utilities/Constants/GeneralConstants"));
45
44
  const UIHelper_1 = tslib_1.__importDefault(require("../View/UIHelper"));
45
+ const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
46
46
  const tinycolor = require('tinycolor2');
47
47
  /**
48
48
  * Adaptable AG Grid implementation is getting really big and unwieldy
@@ -157,11 +157,13 @@ class agGridHelper {
157
157
  createAdaptableColumnFromAgGridColumn(agGridColumn, colsToGroups) {
158
158
  const colId = agGridColumn.getColId();
159
159
  const colDef = agGridColumn.getColDef();
160
+ const isActionRowButtonColumn = this.adaptable.api.columnApi.isActionRowButtonColumn(colId);
160
161
  const columnFriendlyName = this.adaptable.adaptableOptions.columnOptions.columnFriendlyName;
161
162
  const customFriendlyName = typeof columnFriendlyName === 'function'
162
163
  ? columnFriendlyName({ colId: colId, agColumn: agGridColumn })
163
164
  : null;
164
- const FriendlyName = customFriendlyName !== null && customFriendlyName !== void 0 ? customFriendlyName : this.gridOptions.columnApi.getDisplayNameForColumn(agGridColumn, 'header');
165
+ const FriendlyName = (customFriendlyName !== null && customFriendlyName !== void 0 ? customFriendlyName : isActionRowButtonColumn) ? GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME
166
+ : this.gridOptions.columnApi.getDisplayNameForColumn(agGridColumn, 'header');
165
167
  if (!this.initialAgGridColDefs[colId]) {
166
168
  this.initialAgGridColDefs[colId] = Object.assign({}, agGridColumn.getUserProvidedColDef());
167
169
  }
@@ -305,6 +307,9 @@ class agGridHelper {
305
307
  if (!colDef) {
306
308
  return false;
307
309
  }
310
+ if (colDef.colId === GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS) {
311
+ return false;
312
+ }
308
313
  const queryableColumns = this.adaptable.api.queryLanguageApi.getQueryableColumnIds();
309
314
  if (ArrayExtensions_1.ArrayExtensions.IsNull(queryableColumns)) {
310
315
  return true;
@@ -367,12 +372,12 @@ class agGridHelper {
367
372
  // Some columns can have no ID or Title. we return string as a consequence but it needs testing
368
373
  if (!column) {
369
374
  LoggingHelper_1.LogAdaptableWarning('column is undefined returning String for Type');
370
- return Enums_1.DataType.String;
375
+ return 'String';
371
376
  }
372
- let dataType = Enums_1.DataType.Unknown;
377
+ let dataType = 'Unknown';
373
378
  // get the column type if already in store (and not unknown)
374
379
  const existingColumn = this.adaptable.api.columnApi.getColumnFromId(column.getId(), logWarning);
375
- if (existingColumn && existingColumn.dataType != Enums_1.DataType.Unknown) {
380
+ if (existingColumn && existingColumn.dataType != 'Unknown') {
376
381
  return existingColumn.dataType;
377
382
  }
378
383
  // check for column type
@@ -380,7 +385,7 @@ class agGridHelper {
380
385
  if (colType) {
381
386
  if (Array.isArray(colType)) {
382
387
  colType.forEach((c) => {
383
- if (dataType == Enums_1.DataType.Unknown) {
388
+ if (dataType == 'Unknown') {
384
389
  dataType = this.getAbColDefValue(c);
385
390
  }
386
391
  });
@@ -388,50 +393,50 @@ class agGridHelper {
388
393
  else {
389
394
  dataType = this.getAbColDefValue(colType);
390
395
  }
391
- if (dataType != Enums_1.DataType.Unknown) {
396
+ if (dataType != 'Unknown') {
392
397
  return dataType;
393
398
  }
394
399
  }
395
400
  const model = this.gridOptions.api.getModel();
396
401
  if (model == null) {
397
402
  LoggingHelper_1.LogAdaptableWarning(`No model so returning type "Unknown" for Column: "${column.getColId()}"`);
398
- return Enums_1.DataType.Unknown;
403
+ return 'Unknown';
399
404
  }
400
405
  let row = model.getRow(0);
401
406
  if (row == null) {
402
407
  // possible that there will be no data.
403
408
  LoggingHelper_1.LogAdaptableWarning(`No data in grid so returning type "Unknown" for Column: "${column.getColId()}"`);
404
- return Enums_1.DataType.Unknown;
409
+ return 'Unknown';
405
410
  }
406
411
  // if it's a group we need the content of the group
407
412
  if (row.group) {
408
413
  const childNodes = row.childrenAfterGroup;
409
414
  if (ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(childNodes)) {
410
415
  LoggingHelper_1.LogAdaptableWarning(`No data in grid so returning type "Unknown" for Column: "${column.getColId()}"`);
411
- return Enums_1.DataType.Unknown;
416
+ return 'Unknown';
412
417
  }
413
418
  row = childNodes[0];
414
419
  }
415
420
  const value = this.gridOptions.api.getValue(column, row);
416
421
  if (value instanceof Date) {
417
- dataType = Enums_1.DataType.Date;
422
+ dataType = 'Date';
418
423
  }
419
424
  else if (Array.isArray(value) && value.length && typeof value[0] === 'number') {
420
- dataType = Enums_1.DataType.Unknown;
425
+ dataType = 'Unknown';
421
426
  }
422
427
  else {
423
428
  switch (typeof value) {
424
429
  case 'string':
425
- dataType = Enums_1.DataType.String;
430
+ dataType = 'String';
426
431
  break;
427
432
  case 'number':
428
- dataType = Enums_1.DataType.Number;
433
+ dataType = 'Number';
429
434
  break;
430
435
  case 'boolean':
431
- dataType = Enums_1.DataType.Boolean;
436
+ dataType = 'Boolean';
432
437
  break;
433
438
  case 'object':
434
- dataType = Enums_1.DataType.Object;
439
+ dataType = 'Object';
435
440
  break;
436
441
  default:
437
442
  break;
@@ -442,53 +447,52 @@ class agGridHelper {
442
447
  }
443
448
  getAbColDefValue(colType) {
444
449
  if (colType == 'numericColumn') {
445
- return Enums_1.DataType.Number;
450
+ return 'Number';
446
451
  }
447
452
  if (colType.startsWith('abColDef')) {
448
453
  const abColType = colType;
449
454
  switch (abColType) {
450
455
  case 'abColDefNumber':
451
- return Enums_1.DataType.Number;
456
+ return 'Number';
452
457
  case 'abColDefString':
453
- return Enums_1.DataType.String;
458
+ return 'String';
454
459
  case 'abColDefBoolean':
455
- return Enums_1.DataType.Boolean;
460
+ return 'Boolean';
456
461
  case 'abColDefDate':
457
- return Enums_1.DataType.Date;
462
+ return 'Date';
458
463
  case 'abColDefObject':
459
- return Enums_1.DataType.Object;
464
+ return 'Object';
460
465
  default:
461
- return Enums_1.DataType.Unknown;
466
+ return 'Unknown';
462
467
  }
463
468
  }
464
- return Enums_1.DataType.Unknown;
469
+ return 'Unknown';
465
470
  }
466
471
  getAgGridDataType(dataType) {
467
472
  if (!dataType) {
468
473
  return 'abColDefString';
469
474
  }
470
475
  switch (dataType) {
471
- case Enums_1.DataType.Boolean:
476
+ case 'Boolean':
472
477
  return 'abColDefBoolean';
473
- case Enums_1.DataType.Date:
478
+ case 'Date':
474
479
  return 'abColDefDate';
475
- case Enums_1.DataType.Number:
480
+ case 'Number':
476
481
  return 'abColDefNumber';
477
- case Enums_1.DataType.Object:
482
+ case 'Object':
478
483
  return 'abColDefObject';
479
- case Enums_1.DataType.String:
484
+ case 'String':
480
485
  return 'abColDefString';
481
- case Enums_1.DataType.All:
482
- case Enums_1.DataType.Unknown:
486
+ default:
483
487
  return 'abColDefCustom';
484
488
  }
485
489
  }
486
490
  checkShouldClearExistingFiltersOrSearches() {
487
491
  // if they have selected to clear column filters on startup then do it
488
492
  if (this.adaptable.adaptableOptions.filterOptions.clearFiltersOnStartUp) {
489
- if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.adaptable.api.layoutApi.getAllColumnFilter())) {
493
+ if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.adaptable.api.filterApi.getColumnFilters())) {
490
494
  LoggingHelper_1.LogAdaptableWarning('Clearing existing Column Filters as "clearFiltersOnStartUp" is true');
491
- this.adaptable.api.layoutApi.clearAllColumnFilter();
495
+ this.adaptable.api.filterApi.clearColumnFilters();
492
496
  }
493
497
  }
494
498
  // if they have selected to clear searches on startup then do it
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ export declare const rowAddIcon: JSX.Element;
2
3
  export declare const rowEditIcon: JSX.Element;
3
4
  export declare const rowCloneIcon: JSX.Element;
4
5
  export declare const rowDeleteIcon: JSX.Element;
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.rowDeleteIcon = exports.rowCloneIcon = exports.rowEditIcon = void 0;
3
+ exports.rowDeleteIcon = exports.rowCloneIcon = exports.rowEditIcon = exports.rowAddIcon = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const icons_1 = require("../components/icons");
6
6
  const React = tslib_1.__importStar(require("react"));
7
+ exports.rowAddIcon = React.createElement(icons_1.Icon, { name: "add-row" });
7
8
  exports.rowEditIcon = React.createElement(icons_1.Icon, { name: "edit" });
8
9
  exports.rowCloneIcon = React.createElement(icons_1.Icon, { name: "clone" });
9
10
  exports.rowDeleteIcon = React.createElement(icons_1.Icon, { name: "delete" });
@@ -11,3 +11,4 @@ defaultProps.licenseKey = env_1.default.INFINITE_TABLE_LICENSE_KEY;
11
11
  defaultProps.sortable = false;
12
12
  defaultProps.rowHeight = '--ab-grid-row-height';
13
13
  defaultProps.draggableColumns = false;
14
+ defaultProps.keyboardNavigation = false;
@@ -6,7 +6,7 @@ const InfiniteTable_1 = require("../../../components/InfiniteTable");
6
6
  const join_1 = tslib_1.__importDefault(require("../../utils/join"));
7
7
  const baseClassName = 'ab-GridList';
8
8
  const columnsMap = new Map([
9
- ['item', { field: 'item', header: null, flex: 1 }],
9
+ ['item', { field: 'item', header: null, defaultFlex: 1 }],
10
10
  ]);
11
11
  const GridList = (props) => {
12
12
  var _a;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const React = tslib_1.__importStar(require("react"));
5
+ const DefaultIcon_1 = tslib_1.__importDefault(require("./DefaultIcon"));
6
+ exports.default = (props) => (React.createElement(DefaultIcon_1.default, Object.assign({}, props),
7
+ React.createElement("path", { d: "M11 18H13V15H16V13H13V10H11V13H8V15H11ZM18 22H6Q5.175 22 4.588 21.413Q4 20.825 4 20V4Q4 3.175 4.588 2.587Q5.175 2 6 2H14L20 8V20Q20 20.825 19.413 21.413Q18.825 22 18 22ZM13 9V4H6Q6 4 6 4Q6 4 6 4V20Q6 20 6 20Q6 20 6 20H18Q18 20 18 20Q18 20 18 20V9ZM6 4V9V4V9V20Q6 20 6 20Q6 20 6 20Q6 20 6 20Q6 20 6 20V4Q6 4 6 4Q6 4 6 4Z" })));
@@ -132,6 +132,7 @@ const regex_1 = tslib_1.__importDefault(require("./regex"));
132
132
  const track_changes_1 = tslib_1.__importDefault(require("./track-changes"));
133
133
  const menu_1 = tslib_1.__importDefault(require("./menu"));
134
134
  const statusbar_1 = tslib_1.__importDefault(require("./statusbar"));
135
+ const add_row_1 = tslib_1.__importDefault(require("./add-row"));
135
136
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
136
137
  const quote_1 = tslib_1.__importDefault(require("./quote"));
137
138
  const news_1 = tslib_1.__importDefault(require("./news"));
@@ -285,6 +286,7 @@ const allIcons = {
285
286
  'track-changes': track_changes_1.default,
286
287
  menu: menu_1.default,
287
288
  statusbar: statusbar_1.default,
289
+ 'add-row': add_row_1.default,
288
290
  };
289
291
  Object.keys(allIcons).forEach((name) => {
290
292
  const ReactCmp = allIcons[name];
@@ -2103,7 +2103,7 @@ export declare const ADAPTABLE_METAMODEL: {
2103
2103
  uiLabel: string;
2104
2104
  }[];
2105
2105
  };
2106
- ExportButtonContext: {
2106
+ ExportFormContext: {
2107
2107
  name: string;
2108
2108
  kind: string;
2109
2109
  description: string;
@@ -145,6 +145,22 @@ exports.ADAPTABLE_METAMODEL = {
145
145
  "uiLabel": "Action Row Buttons Position",
146
146
  "isOptional": true,
147
147
  "defaultValue": "&#39;pinnedLeft&#39;"
148
+ },
149
+ {
150
+ "name": "autoHandleActionRowButtons",
151
+ "kind": "boolean",
152
+ "description": "If set to true, the Action Row Buttons will be handled by AdapTable and the grid data model will be automatically updated with the created/edited/deleted rows",
153
+ "uiLabel": "Auto Handle Action Row Buttons",
154
+ "isOptional": true,
155
+ "defaultValue": "false"
156
+ },
157
+ {
158
+ "name": "setPrimaryKeyValue",
159
+ "kind": "unknown",
160
+ "description": "Function which is called when auto-handling the &#39;create&#39; Action Row Button. The returned row value should have a valid(unique) primary key value.",
161
+ "uiLabel": "Set Primary Key Value",
162
+ "isOptional": true,
163
+ "defaultValue": "undefined"
148
164
  }
149
165
  ]
150
166
  },
@@ -731,7 +747,7 @@ exports.ADAPTABLE_METAMODEL = {
731
747
  "AdaptableColumnDataType": {
732
748
  "name": "AdaptableColumnDataType",
733
749
  "kind": "TypeAlias",
734
- "description": "The type of the column data"
750
+ "description": "Type of data stored in an Adaptable Column"
735
751
  },
736
752
  "AdaptableComparerFunction": {
737
753
  "name": "AdaptableComparerFunction",
@@ -1529,7 +1545,7 @@ exports.ADAPTABLE_METAMODEL = {
1529
1545
  {
1530
1546
  "name": "dataSet",
1531
1547
  "kind": "unknown",
1532
- "description": "Current Data Source (if one selected)",
1548
+ "description": "Current DataSet (if one selected)",
1533
1549
  "uiLabel": "Data Set"
1534
1550
  },
1535
1551
  {
@@ -3129,6 +3145,12 @@ exports.ADAPTABLE_METAMODEL = {
3129
3145
  "description": "Is Column an Action Column",
3130
3146
  "uiLabel": "Is Action Column"
3131
3147
  },
3148
+ {
3149
+ "name": "isActionRowButtonColumn",
3150
+ "kind": "function",
3151
+ "description": "Checks if a column is a ActionRowButton column (see UserInterfaceOptions.ActionOptions)",
3152
+ "uiLabel": "Is Action Row Button Column"
3153
+ },
3132
3154
  {
3133
3155
  "name": "isAutoPivotColumn",
3134
3156
  "kind": "function",
@@ -5266,6 +5288,12 @@ exports.ADAPTABLE_METAMODEL = {
5266
5288
  "description": "Unsubscribe from LiveDataChanged",
5267
5289
  "uiLabel": "Off"
5268
5290
  },
5291
+ {
5292
+ "name": "off",
5293
+ "kind": "function",
5294
+ "description": "Unsubscribe from RowFormSubmitted",
5295
+ "uiLabel": "Off"
5296
+ },
5269
5297
  {
5270
5298
  "name": "off",
5271
5299
  "kind": "function",
@@ -5368,6 +5396,12 @@ exports.ADAPTABLE_METAMODEL = {
5368
5396
  "description": "Event fired whenever **a change occurs relating to live reports / data** Used in conjunction with AdapTable&#39;s partners OpenFin, ipushpull or Glue42",
5369
5397
  "uiLabel": "On"
5370
5398
  },
5399
+ {
5400
+ "name": "on",
5401
+ "kind": "function",
5402
+ "description": "Event fired when a Row Form is submitted",
5403
+ "uiLabel": "On"
5404
+ },
5371
5405
  {
5372
5406
  "name": "on",
5373
5407
  "kind": "function",
@@ -5599,8 +5633,8 @@ exports.ADAPTABLE_METAMODEL = {
5599
5633
  }
5600
5634
  ]
5601
5635
  },
5602
- "ExportButtonContext": {
5603
- "name": "ExportButtonContext",
5636
+ "ExportFormContext": {
5637
+ "name": "ExportFormContext",
5604
5638
  "kind": "Interface",
5605
5639
  "description": "Context required by functions when using an Export Button",
5606
5640
  "properties": [
@@ -5611,13 +5645,6 @@ exports.ADAPTABLE_METAMODEL = {
5611
5645
  "uiLabel": "Custom Destination",
5612
5646
  "reference": "CustomDestination"
5613
5647
  },
5614
- {
5615
- "name": "formData",
5616
- "kind": "REFERENCE",
5617
- "description": "Adaptable Form Data",
5618
- "uiLabel": "Form Data",
5619
- "reference": "unknown"
5620
- },
5621
5648
  {
5622
5649
  "name": "report",
5623
5650
  "kind": "REFERENCE",
@@ -6050,18 +6077,90 @@ exports.ADAPTABLE_METAMODEL = {
6050
6077
  "kind": "Interface",
6051
6078
  "description": "Provides run-time access to Filter section of Adaptable State.",
6052
6079
  "properties": [
6080
+ {
6081
+ "name": "clearAndSetColumnFilter",
6082
+ "kind": "function",
6083
+ "description": "Clears existing Column Filters and then sets the new ones",
6084
+ "uiLabel": "Clear And Set Column Filter"
6085
+ },
6086
+ {
6087
+ "name": "clearColumnFilter",
6088
+ "kind": "function",
6089
+ "description": "Clears given Column Filter",
6090
+ "uiLabel": "Clear Column Filter"
6091
+ },
6092
+ {
6093
+ "name": "clearColumnFilterByColumn",
6094
+ "kind": "function",
6095
+ "description": "Clears Column Filter for given Column",
6096
+ "uiLabel": "Clear Column Filter By Column"
6097
+ },
6098
+ {
6099
+ "name": "clearColumnFilterByColumns",
6100
+ "kind": "function",
6101
+ "description": "Clears Column Filters for given set of Columns",
6102
+ "uiLabel": "Clear Column Filter By Columns"
6103
+ },
6104
+ {
6105
+ "name": "clearColumnFilters",
6106
+ "kind": "function",
6107
+ "description": "Clears all Column Filters in the Current Layout",
6108
+ "uiLabel": "Clear Column Filters"
6109
+ },
6110
+ {
6111
+ "name": "columnFiltersToString",
6112
+ "kind": "function",
6113
+ "description": "Retrieves descriptions of given Column Filters",
6114
+ "uiLabel": "Column Filters To String"
6115
+ },
6116
+ {
6117
+ "name": "columnFilterToString",
6118
+ "kind": "function",
6119
+ "description": "Retrieves description of given Column Filter",
6120
+ "uiLabel": "Column Filter To String"
6121
+ },
6122
+ {
6123
+ "name": "createEqualityColumnFilterForCell",
6124
+ "kind": "function",
6125
+ "description": "Creates an Equality Filter based on given Grid Cell",
6126
+ "uiLabel": "Create Equality Column Filter For Cell"
6127
+ },
6128
+ {
6129
+ "name": "createValuesColumnFilterForCells",
6130
+ "kind": "function",
6131
+ "description": "Creates an Equality Filter based on given Grid Cells",
6132
+ "uiLabel": "Create Values Column Filter For Cells"
6133
+ },
6134
+ {
6135
+ "name": "evaluateColumnFilter",
6136
+ "kind": "function",
6137
+ "description": "Calls AdapTableQL to evaluate Filter for given Row",
6138
+ "uiLabel": "Evaluate Column Filter"
6139
+ },
6053
6140
  {
6054
6141
  "name": "findPredicateDefByShortcut",
6055
6142
  "kind": "function",
6056
6143
  "description": "Returns Predicate Definition for given Column and Quick Filter shortcut",
6057
6144
  "uiLabel": "Find Predicate Def By Shortcut"
6058
6145
  },
6146
+ {
6147
+ "name": "getAllColumnFilterForColumn",
6148
+ "kind": "function",
6149
+ "description": "Retrieves all Column Filters for given Column",
6150
+ "uiLabel": "Get All Column Filter For Column"
6151
+ },
6059
6152
  {
6060
6153
  "name": "getAllSystemFilterIds",
6061
6154
  "kind": "function",
6062
6155
  "description": "Retrieves Ids for all System Filters",
6063
6156
  "uiLabel": "Get All System Filter Ids"
6064
6157
  },
6158
+ {
6159
+ "name": "getColumnFilters",
6160
+ "kind": "function",
6161
+ "description": "Retrieves all the Column Filters in the Column Filter State (of Predefined Config)",
6162
+ "uiLabel": "Get Column Filters"
6163
+ },
6065
6164
  {
6066
6165
  "name": "getFilterPredicateDefsForColumn",
6067
6166
  "kind": "function",
@@ -6092,6 +6191,12 @@ exports.ADAPTABLE_METAMODEL = {
6092
6191
  "description": "Whether Quick Filter Form is currently visible",
6093
6192
  "uiLabel": "Is Quick Filter Visible"
6094
6193
  },
6194
+ {
6195
+ "name": "setColumnFilter",
6196
+ "kind": "function",
6197
+ "description": "Sets Column Filters - will replace filters for existing column and leave other column filters in place",
6198
+ "uiLabel": "Set Column Filter"
6199
+ },
6095
6200
  {
6096
6201
  "name": "showQuickFilterBar",
6097
6202
  "kind": "function",
@@ -8749,36 +8854,6 @@ exports.ADAPTABLE_METAMODEL = {
8749
8854
  "description": "Compares 2 Layouts for equality",
8750
8855
  "uiLabel": "Are Layouts Equal"
8751
8856
  },
8752
- {
8753
- "name": "clearAllColumnFilter",
8754
- "kind": "function",
8755
- "description": "Clears all Column Filters in State",
8756
- "uiLabel": "Clear All Column Filter"
8757
- },
8758
- {
8759
- "name": "clearAndSetColumnFilter",
8760
- "kind": "function",
8761
- "description": "Clears existing Column Filters and then sets the new ones",
8762
- "uiLabel": "Clear And Set Column Filter"
8763
- },
8764
- {
8765
- "name": "clearColumnFilter",
8766
- "kind": "function",
8767
- "description": "Clears given Column Filter",
8768
- "uiLabel": "Clear Column Filter"
8769
- },
8770
- {
8771
- "name": "clearColumnFilterByColumn",
8772
- "kind": "function",
8773
- "description": "Clears Column Filter for given Column",
8774
- "uiLabel": "Clear Column Filter By Column"
8775
- },
8776
- {
8777
- "name": "clearColumnFilterByColumns",
8778
- "kind": "function",
8779
- "description": "Clears Column Filters for given set of Columns",
8780
- "uiLabel": "Clear Column Filter By Columns"
8781
- },
8782
8857
  {
8783
8858
  "name": "cloneAndSetLayout",
8784
8859
  "kind": "function",
@@ -8791,30 +8866,12 @@ exports.ADAPTABLE_METAMODEL = {
8791
8866
  "description": "Creates new Layout based on given Layout but with name provided",
8792
8867
  "uiLabel": "Clone Layout"
8793
8868
  },
8794
- {
8795
- "name": "columnFiltersToString",
8796
- "kind": "function",
8797
- "description": "Retrieves descriptions of given Column Filters",
8798
- "uiLabel": "Column Filters To String"
8799
- },
8800
- {
8801
- "name": "columnFilterToString",
8802
- "kind": "function",
8803
- "description": "Retrieves description of given Column Filter",
8804
- "uiLabel": "Column Filter To String"
8805
- },
8806
8869
  {
8807
8870
  "name": "createAndSetLayout",
8808
8871
  "kind": "function",
8809
8872
  "description": "Creates new Layout in the state and then loads it into Grid",
8810
8873
  "uiLabel": "Create And Set Layout"
8811
8874
  },
8812
- {
8813
- "name": "createColumnFilterForCell",
8814
- "kind": "function",
8815
- "description": "Creates new Column Filter on given Column using Primary Key values",
8816
- "uiLabel": "Create Column Filter For Cell"
8817
- },
8818
8875
  {
8819
8876
  "name": "createDefaultLayoutIfNeeded",
8820
8877
  "kind": "function",
@@ -8851,42 +8908,18 @@ exports.ADAPTABLE_METAMODEL = {
8851
8908
  "description": "Checks whether this Layout exists in the Adaptable State (by comparing Uuid property)",
8852
8909
  "uiLabel": "Does Layout Exist"
8853
8910
  },
8854
- {
8855
- "name": "evaluateColumnFilter",
8856
- "kind": "function",
8857
- "description": "Calls AdapTableQL to evaluate Filter for given Row",
8858
- "uiLabel": "Evaluate Column Filter"
8859
- },
8860
8911
  {
8861
8912
  "name": "fireLayoutChangedEvent",
8862
8913
  "kind": "function",
8863
8914
  "description": "Fires the `LayoutChanged` event",
8864
8915
  "uiLabel": "Fire Layout Changed Event"
8865
8916
  },
8866
- {
8867
- "name": "getAllColumnFilter",
8868
- "kind": "function",
8869
- "description": "Retrieves all the Column Filters in the Column Filter State (of Predefined Config)",
8870
- "uiLabel": "Get All Column Filter"
8871
- },
8872
- {
8873
- "name": "getAllColumnFilterForColumn",
8874
- "kind": "function",
8875
- "description": "Retrieves all Column Filters for given Column",
8876
- "uiLabel": "Get All Column Filter For Column"
8877
- },
8878
8917
  {
8879
8918
  "name": "getAllLayout",
8880
8919
  "kind": "function",
8881
8920
  "description": "Retrieves all Layouts in Adaptable State",
8882
8921
  "uiLabel": "Get All Layout"
8883
8922
  },
8884
- {
8885
- "name": "getColumnFilterById",
8886
- "kind": "function",
8887
- "description": "Retrieves ColumnFilter by Id",
8888
- "uiLabel": "Get Column Filter By Id"
8889
- },
8890
8923
  {
8891
8924
  "name": "getCurrentLayout",
8892
8925
  "kind": "function",
@@ -9001,12 +9034,6 @@ exports.ADAPTABLE_METAMODEL = {
9001
9034
  "description": "Sets a new Caption / Header for a Column (this Layout only)",
9002
9035
  "uiLabel": "Set Column Caption"
9003
9036
  },
9004
- {
9005
- "name": "setColumnFilter",
9006
- "kind": "function",
9007
- "description": "Sets Column Filters - will replace filters for existing column and leave other column filters in place",
9008
- "uiLabel": "Set Column Filter"
9009
- },
9010
9037
  {
9011
9038
  "name": "setLayout",
9012
9039
  "kind": "function",
@@ -10325,6 +10352,12 @@ exports.ADAPTABLE_METAMODEL = {
10325
10352
  "description": "Returns Predicate Definitions provided by users",
10326
10353
  "uiLabel": "Get Custom Predicate Defs"
10327
10354
  },
10355
+ {
10356
+ "name": "getEqualityPredicateForDataType",
10357
+ "kind": "function",
10358
+ "description": "Gets the correct Equality-type System Predicate for a particular DataType",
10359
+ "uiLabel": "Get Equality Predicate For Data Type"
10360
+ },
10328
10361
  {
10329
10362
  "name": "getPredicateDefById",
10330
10363
  "kind": "function",
package/src/types.d.ts CHANGED
@@ -13,8 +13,8 @@ export type { TOAST_POSITIONS, NotificationsOptions, } from './AdaptableOptions/
13
13
  export type { AlertOptions, ActionHandler, AlertForm, AlertButtonContext, AlertMessageContext, } from './AdaptableOptions/AlertOptions';
14
14
  export type { DashboardOptions, CustomToolbar, DashboardButtonContext, CustomToolbarButtonContext, } from './AdaptableOptions/DashboardOptions';
15
15
  export type { EditOptions, RowFormOptions, FormParamContext, FormFieldLabelContext, RowFormContext, CreateRowFormContext, EditRowFormContext, ValidationResult, SmartEditCustomOperation, SmartEditOperation, SmartEditOperationContext, } from './AdaptableOptions/EditOptions';
16
- export type { ExportOptions, SystemExportDestination, SystemExportDestinations, CustomDestination, CustomReport, DataFormatType, ExportButtonContext, ReportContext, } from './AdaptableOptions/ExportOptions';
17
- export type { GeneralOptions, ColumnValuesComparer, DataSet, } from './AdaptableOptions/GeneralOptions';
16
+ export type { ExportOptions, SystemExportDestination, SystemExportDestinations, CustomDestination, CustomReport, DataFormatType, ExportFormContext, ReportContext, } from './AdaptableOptions/ExportOptions';
17
+ export type { GeneralOptions, ColumnValuesComparer, DataSet, DataSetFormContext, } from './AdaptableOptions/GeneralOptions';
18
18
  export type { Glue42PluginOptions } from './AdaptableOptions/Glue42PluginOptions';
19
19
  export type { IPushPullPluginOptions } from './AdaptableOptions/IPushPullPluginOptions';
20
20
  export type { LayoutOptions, LayoutViewOptions, LayoutTagOptions, LayoutAvailableContext, AutoGenerateTagsForLayoutsContext, LayoutAssociatedObject, } from './AdaptableOptions/LayoutOptions';
@@ -131,6 +131,7 @@ export type { AdaptableFormData, AdaptableForm, AdaptableFormField, AdaptableFor
131
131
  export type { AdaptableButton } from './PredefinedConfig/Common/AdaptableButton';
132
132
  export type { AdaptableMenuItem, UserMenuItem, ColumnMenuContext, ContextMenuContext, } from './PredefinedConfig/Common/Menu';
133
133
  export type { BaseContext } from './PredefinedConfig/Common/BaseContext';
134
+ export type { FormContext } from './PredefinedConfig/Common/FormContext';
134
135
  export type { Schedule } from './PredefinedConfig/Common/Schedule';
135
136
  export type { ButtonStyle } from './PredefinedConfig/Common/ButtonStyle';
136
137
  export type { AdaptableModule, AdaptableToolPanel, AdaptableQLModule, AdaptableSettingsPanel, AdaptableDashboardToolbar, AdaptableStatusBarPanel, AdaptableColumnType, } from './PredefinedConfig/Common/Types';
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "12.0.0-canary.0";
1
+ declare const _default: "12.0.0-canary.1";
2
2
  export default _default;
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '12.0.0-canary.0'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
3
+ exports.default = '12.0.0-canary.1'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version