@adaptabletools/adaptable 14.0.0 → 14.0.1-canary.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.
Files changed (71) hide show
  1. package/bundle.cjs.js +196 -191
  2. package/package.json +1 -1
  3. package/publishTimestamp.d.ts +1 -1
  4. package/publishTimestamp.js +1 -1
  5. package/src/AdaptableOptions/ActionOptions.d.ts +5 -3
  6. package/src/AdaptableOptions/AdaptableOptions.d.ts +16 -2
  7. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +4 -5
  8. package/src/AdaptableOptions/AlertOptions.d.ts +1 -0
  9. package/src/AdaptableOptions/ChartingOptions.d.ts +1 -0
  10. package/src/AdaptableOptions/ColumnOptions.d.ts +3 -0
  11. package/src/AdaptableOptions/DashboardOptions.d.ts +3 -0
  12. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -0
  13. package/src/AdaptableOptions/ExpressionOptions.d.ts +15 -15
  14. package/src/AdaptableOptions/FilterOptions.d.ts +9 -8
  15. package/src/AdaptableOptions/FinancePluginOptions.d.ts +0 -11
  16. package/src/AdaptableOptions/GeneralOptions.d.ts +3 -9
  17. package/src/AdaptableOptions/LayoutOptions.d.ts +2 -7
  18. package/src/AdaptableOptions/MenuOptions.d.ts +1 -1
  19. package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -0
  20. package/src/AdaptableOptions/SearchOptions.d.ts +1 -0
  21. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +2 -0
  22. package/src/AdaptableOptions/StateOptions.d.ts +0 -4
  23. package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -0
  24. package/src/Api/AlertApi.d.ts +3 -3
  25. package/src/Api/GridApi.d.ts +5 -5
  26. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -1
  27. package/src/Api/Implementation/AlertApiImpl.js +1 -1
  28. package/src/Api/Implementation/GridApiImpl.js +1 -1
  29. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -0
  30. package/src/Api/Implementation/StyledColumnApiImpl.js +6 -0
  31. package/src/Api/Implementation/TeamSharingApiImpl.d.ts +2 -0
  32. package/src/Api/Implementation/TeamSharingApiImpl.js +7 -0
  33. package/src/Api/Internal/LayoutInternalApi.js +1 -2
  34. package/src/Api/Internal/PredicateInternalApi.js +0 -7
  35. package/src/Api/Internal/TeamSharingInternalApi.d.ts +0 -5
  36. package/src/Api/Internal/TeamSharingInternalApi.js +0 -9
  37. package/src/Api/StyledColumnApi.d.ts +7 -2
  38. package/src/Api/TeamSharingApi.d.ts +8 -0
  39. package/src/PredefinedConfig/AlertState.d.ts +1 -1
  40. package/src/PredefinedConfig/CalculatedColumnState.d.ts +2 -6
  41. package/src/PredefinedConfig/Common/Menu.d.ts +5 -5
  42. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +6 -2
  43. package/src/PredefinedConfig/FormatColumnState.d.ts +2 -3
  44. package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -6
  45. package/src/Strategy/FreeTextColumnModule.js +24 -5
  46. package/src/Strategy/StyledColumnModule.js +60 -28
  47. package/src/Strategy/TeamSharingModule.js +2 -2
  48. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +0 -3
  49. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +1 -1
  50. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +11 -10
  51. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +11 -7
  52. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +1 -1
  53. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +26 -52
  54. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +13 -13
  55. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
  56. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +101 -44
  57. package/src/Utilities/ObjectFactory.js +1 -1
  58. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +1 -1
  59. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +18 -10
  60. package/src/agGrid/Adaptable.d.ts +0 -1
  61. package/src/agGrid/Adaptable.js +6 -20
  62. package/src/components/ExpressionEditor/BaseEditorInput.js +42 -7
  63. package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.js +5 -5
  64. package/src/components/ExpressionEditor/editorButtonsSearch.js +8 -12
  65. package/src/metamodel/adaptable.metamodel.d.ts +106 -58
  66. package/src/metamodel/adaptable.metamodel.js +1 -1
  67. package/src/parser/src/types.d.ts +5 -9
  68. package/src/parser/src/utils.js +6 -3
  69. package/src/types.d.ts +3 -3
  70. package/version.d.ts +1 -1
  71. package/version.js +1 -1
@@ -56,11 +56,6 @@ export interface ExpressionFunction {
56
56
  * Removes entry from Expression Editor's Functions dropdown
57
57
  */
58
58
  isHiddenFromMenu?: boolean;
59
- /**
60
- * Whether the AdaptableQL Function returns true, if so can be used as Query
61
- * @deprecated is equivalent with `returnType === 'boolean'`
62
- */
63
- isPredicate?: boolean;
64
59
  /**
65
60
  * What the AdaptableQL Function does
66
61
  */
@@ -70,15 +65,15 @@ export interface ExpressionFunction {
70
65
  */
71
66
  signatures?: string[];
72
67
  /**
73
- * Specify what the AdaptableQL Function returns
68
+ * Type returned by Function: boolean, number, string, date, any
74
69
  */
75
70
  returnType?: 'boolean' | 'number' | 'string' | 'date' | 'any';
76
71
  /**
77
- * Used to group Functions in dropdown
72
+ * Used to group Functions Expression Editor dropdown
78
73
  */
79
- category?: string;
74
+ category?: ExpressionCategory;
80
75
  /**
81
- * Examples that use the AdaptableQL Function
76
+ * Examples that demonstrate the AdaptableQL Function
82
77
  */
83
78
  examples?: string[];
84
79
  /**
@@ -86,6 +81,7 @@ export interface ExpressionFunction {
86
81
  */
87
82
  hasEagerEvaluation?: boolean;
88
83
  }
84
+ export declare type ExpressionCategory = 'logical' | 'comparison' | 'strings' | 'maths' | 'dates' | 'conditional' | 'special' | string;
89
85
  /**
90
86
  * Defines how an AdaptableQL Function is described in Expression Editor
91
87
  */
@@ -7,7 +7,8 @@ function getCurrentToken(tokens, offset) {
7
7
  }
8
8
  exports.getCurrentToken = getCurrentToken;
9
9
  function walker(node, callback) {
10
- if (typeof node === 'boolean' ||
10
+ if (node == undefined ||
11
+ typeof node === 'boolean' ||
11
12
  typeof node === 'number' ||
12
13
  typeof node === 'string') {
13
14
  return;
@@ -16,8 +17,10 @@ function walker(node, callback) {
16
17
  return node.map((n) => walker(n, callback));
17
18
  }
18
19
  // isObject
19
- node.args.map((n) => walker(n, callback));
20
- callback(node);
20
+ if (node.args) {
21
+ node.args.map((n) => walker(n, callback));
22
+ callback(node);
23
+ }
21
24
  }
22
25
  exports.walker = walker;
23
26
  function findPathTo(node, offset) {
package/src/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type { ExpressionFunction, ExpressionFunctionDocBlock, ExpressionFunctionHandler, ExpressionContext, ExpressionFunctionMap, } from './../src/parser/src/types';
1
+ export type { ExpressionFunction, ExpressionFunctionDocBlock, ExpressionFunctionHandler, ExpressionContext, ExpressionFunctionMap, ExpressionCategory, } from './../src/parser/src/types';
2
2
  export type { AdaptableNoCodeWizardOptions, IAdaptableNoCodeWizard, } from './AdaptableInterfaces/AdaptableNoCodeWizard';
3
3
  export type { BooleanFunctionName } from './Utilities/ExpressionFunctions/booleanExpressionFunctions';
4
4
  export type { ScalarFunctionName } from './Utilities/ExpressionFunctions/scalarExpressionFunctions';
@@ -13,7 +13,7 @@ export type { TOAST_POSITIONS, NotificationsOptions, } from './AdaptableOptions/
13
13
  export type { AlertOptions, ActionHandler, AlertForm, AlertFormContext, AlertMessageContext, } from './AdaptableOptions/AlertOptions';
14
14
  export type { DashboardOptions, CustomToolbar, DashboardButtonContext, CustomToolbarButtonContext, } from './AdaptableOptions/DashboardOptions';
15
15
  export type { EditOptions, ValidationResult, SmartEditCustomOperation, SmartEditOperation, SmartEditOperationContext, } from './AdaptableOptions/EditOptions';
16
- export type { ActionRowButtonOptions, ActionRowFormOptions, ActionRowParamContext, ActionRowParamFieldContext, CreateActionRowFormContext, EditActionRowFormContext, ActionColumnContext, ActionColumn, ActionColumnSettings, ActionOptions, ActionRowFormContext, ActionRowButtonType, ActionRowButtonConfigurationContext, } from './AdaptableOptions/ActionOptions';
16
+ export type { ActionRowButtonOptions, ActionRowFormOptions, ActionRowParamContext, ActionRowParamFieldContext, CreateActionRowFormContext, EditActionRowFormContext, ActionColumnContext, ActionColumn, ActionColumnSettings, ActionOptions, ActionRowFormContext, ActionRowButtonType, ActionRowButtonConfigurationContext, ActionRowButtonsContext, } from './AdaptableOptions/ActionOptions';
17
17
  export type { ExportOptions, SystemExportDestination, SystemExportDestinations, CustomDestination, ServerReport, DataFormatType, ExportFormContext, ReportContext, } from './AdaptableOptions/ExportOptions';
18
18
  export type { GeneralOptions, ColumnValuesComparer, DataSet, DataSetFormContext, UnbalancedGroupsKeyContext, Holidays, HolidayContext, } from './AdaptableOptions/GeneralOptions';
19
19
  export type { Glue42PluginOptions } from './AdaptableOptions/Glue42PluginOptions';
@@ -23,7 +23,7 @@ export type { ChartingOptions, ChartContainer } from './AdaptableOptions/Chartin
23
23
  export type { OpenFinPluginOptions } from './AdaptableOptions/OpenFinPluginOptions';
24
24
  export type { MasterDetailPluginOptions, DetailInitContext, } from './AdaptableOptions/MasterDetailPluginOptions';
25
25
  export type { FinsemblePluginOptions, FinsemblePluginStateOptions, } from './AdaptableOptions/FinsemblePluginOptions';
26
- export type { FinancePluginOptions, WeightedAverageColumn, FDC3Column, InstrumentColumn, PositionColumn, CountryColumn, InstrumentIntent, InstrumentIntents, PositionIntent, PositionIntents, ContactIntent, ContactIntents, CountryIntent, CountryIntents, ContactColumn, OrganizationColumn, OrganizationIntent, OrganizationIntents, FDC3Intent, RaiseFDC3IntentContext, FDC3DesktopAgent, CustomFDC3Column, CustomFDC3Intent, } from './AdaptableOptions/FinancePluginOptions';
26
+ export type { FinancePluginOptions, FDC3Column, InstrumentColumn, PositionColumn, CountryColumn, InstrumentIntent, InstrumentIntents, PositionIntent, PositionIntents, ContactIntent, ContactIntents, CountryIntent, CountryIntents, ContactColumn, OrganizationColumn, OrganizationIntent, OrganizationIntents, FDC3Intent, RaiseFDC3IntentContext, FDC3DesktopAgent, CustomFDC3Column, CustomFDC3Intent, } from './AdaptableOptions/FinancePluginOptions';
27
27
  export type { DateInputOptions } from './AdaptableOptions/DateInputOptions';
28
28
  export type { FilterOptions } from './AdaptableOptions/FilterOptions';
29
29
  export type { SearchOptions } from './AdaptableOptions/SearchOptions';
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "14.0.0";
1
+ declare const _default: "14.0.1-canary.0";
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 = '14.0.0'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
3
+ exports.default = '14.0.1-canary.0'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version