@adaptabletools/adaptable 18.0.0-canary.11 → 18.0.0-canary.13

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 (147) hide show
  1. package/base.css +5 -1
  2. package/base.css.map +1 -1
  3. package/index.css +7 -1
  4. package/index.css.map +1 -1
  5. package/package.json +1 -1
  6. package/src/AdaptableOptions/AdaptableOptions.d.ts +2 -2
  7. package/src/AdaptableOptions/ColumnOptions.d.ts +7 -4
  8. package/src/AdaptableOptions/CommentOptions.d.ts +9 -7
  9. package/src/AdaptableOptions/MenuOptions.d.ts +1 -53
  10. package/src/AdaptableOptions/MenuOptions.js +3 -3
  11. package/src/AdaptableOptions/NoteOptions.d.ts +4 -1
  12. package/src/Api/AdaptableApi.d.ts +4 -4
  13. package/src/Api/ColumnApi.d.ts +4 -0
  14. package/src/Api/CommentApi.d.ts +11 -12
  15. package/src/Api/ConfigApi.d.ts +3 -4
  16. package/src/Api/EventApi.d.ts +7 -9
  17. package/src/Api/Events/CommentChanged.d.ts +11 -0
  18. package/src/Api/GridApi.d.ts +6 -1
  19. package/src/Api/Implementation/ActionColumnApiImpl.js +3 -6
  20. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  21. package/src/Api/Implementation/AdaptableApiImpl.js +2 -2
  22. package/src/Api/Implementation/ApiBase.d.ts +2 -2
  23. package/src/Api/Implementation/ApiBase.js +1 -1
  24. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
  25. package/src/Api/Implementation/ColumnApiImpl.js +10 -0
  26. package/src/Api/Implementation/CommentsApiImpl.d.ts +1 -2
  27. package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -2
  28. package/src/Api/Implementation/ConfigApiImpl.js +8 -8
  29. package/src/Api/Implementation/GridApiImpl.d.ts +3 -1
  30. package/src/Api/Implementation/GridApiImpl.js +17 -1
  31. package/src/Api/Implementation/{NotesApiImpl.d.ts → NoteApiImpl.d.ts} +8 -8
  32. package/src/Api/Implementation/{NotesApiImpl.js → NoteApiImpl.js} +12 -12
  33. package/src/Api/Implementation/OptionsApiImpl.d.ts +4 -5
  34. package/src/Api/Implementation/OptionsApiImpl.js +2 -12
  35. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +0 -3
  36. package/src/Api/Implementation/UserInterfaceApiImpl.js +0 -8
  37. package/src/Api/Internal/ActionRowInternalApi.js +1 -1
  38. package/src/Api/Internal/AdaptableInternalApi.d.ts +3 -3
  39. package/src/Api/Internal/AdaptableInternalApi.js +11 -11
  40. package/src/Api/Internal/CalculatedColumnInternalApi.js +3 -2
  41. package/src/Api/Internal/ExportInternalApi.d.ts +2 -1
  42. package/src/Api/Internal/ExportInternalApi.js +4 -1
  43. package/src/Api/Internal/Fdc3InternalApi.js +2 -2
  44. package/src/Api/Internal/FreeTextColumnInternalApi.js +3 -2
  45. package/src/Api/Internal/GridInternalApi.d.ts +2 -0
  46. package/src/Api/Internal/GridInternalApi.js +15 -0
  47. package/src/Api/Internal/{NotesInternalApi.d.ts → NoteInternalApi.d.ts} +1 -1
  48. package/src/Api/Internal/{NotesInternalApi.js → NoteInternalApi.js} +1 -1
  49. package/src/Api/NoteApi.d.ts +48 -0
  50. package/src/Api/OptionsApi.d.ts +8 -12
  51. package/src/Api/UserInterfaceApi.d.ts +0 -11
  52. package/src/PredefinedConfig/AdaptableState.d.ts +2 -2
  53. package/src/PredefinedConfig/CommentState.d.ts +27 -23
  54. package/src/PredefinedConfig/Common/RowSummary.d.ts +6 -0
  55. package/src/PredefinedConfig/Common/TransposeConfig.d.ts +6 -0
  56. package/src/PredefinedConfig/Common/Types.d.ts +4 -4
  57. package/src/PredefinedConfig/Common/Types.js +4 -1
  58. package/src/PredefinedConfig/{NotesState.d.ts → NoteState.d.ts} +3 -3
  59. package/src/PredefinedConfig/NoteState.js +1 -0
  60. package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -2
  61. package/src/PredefinedConfig/Selection/GridCell.d.ts +13 -0
  62. package/src/PredefinedConfig/SystemState.d.ts +2 -3
  63. package/src/Redux/ActionsReducers/NoteRedux.d.ts +38 -0
  64. package/src/Redux/ActionsReducers/{NotesRedux.js → NoteRedux.js} +21 -21
  65. package/src/Redux/ActionsReducers/SystemRedux.d.ts +1 -1
  66. package/src/Redux/ActionsReducers/SystemRedux.js +3 -3
  67. package/src/Redux/Store/AdaptableStore.js +11 -17
  68. package/src/Strategy/{CommentsModule.d.ts → CommentModule.d.ts} +1 -5
  69. package/src/Strategy/{CommentsModule.js → CommentModule.js} +9 -10
  70. package/src/Strategy/LayoutModule.d.ts +1 -0
  71. package/src/Strategy/LayoutModule.js +17 -1
  72. package/src/Strategy/{NotesModule.d.ts → NoteModule.d.ts} +2 -1
  73. package/src/Strategy/{NotesModule.js → NoteModule.js} +11 -7
  74. package/src/Strategy/Utilities/getScopeViewItems.js +3 -0
  75. package/src/Utilities/Constants/ModuleConstants.d.ts +6 -6
  76. package/src/Utilities/Constants/ModuleConstants.js +6 -6
  77. package/src/Utilities/Defaults/DefaultSettingsPanel.js +2 -2
  78. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +10 -0
  79. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -3
  80. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
  81. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +15 -0
  82. package/src/Utilities/ObjectFactory.d.ts +3 -3
  83. package/src/Utilities/ObjectFactory.js +4 -24
  84. package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +1 -0
  85. package/src/Utilities/Services/AggregatedScalarLiveValue.js +12 -10
  86. package/src/Utilities/Services/CellPopupService.js +2 -2
  87. package/src/Utilities/Services/Interface/IReportService.d.ts +1 -4
  88. package/src/Utilities/Services/ModuleService.js +4 -0
  89. package/src/Utilities/Services/QueryLanguageService.js +2 -2
  90. package/src/Utilities/Services/ReportService.d.ts +7 -5
  91. package/src/Utilities/Services/ReportService.js +238 -22
  92. package/src/Utilities/Services/SummaryService.d.ts +1 -1
  93. package/src/Utilities/adaptableQlUtils.d.ts +2 -0
  94. package/src/Utilities/adaptableQlUtils.js +14 -0
  95. package/src/View/AdaptableViewFactory.js +2 -2
  96. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +1 -1
  97. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +1 -1
  98. package/src/View/Comments/CommentsEditor.js +1 -1
  99. package/src/View/Comments/CommentsPopup.js +8 -4
  100. package/src/View/Components/NewScopeComponent.js +2 -2
  101. package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +6 -6
  102. package/src/View/Components/ValueSelector/index.d.ts +1 -0
  103. package/src/View/Components/ValueSelector/index.js +1 -1
  104. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +0 -1
  105. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -1
  106. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +3 -1
  107. package/src/View/Layout/LayoutViewPanel.js +2 -1
  108. package/src/View/Layout/TransposedPopup.js +19 -18
  109. package/src/View/Layout/Wizard/LayoutWizard.js +11 -2
  110. package/src/View/Layout/Wizard/sections/RowSummarySection.d.ts +8 -0
  111. package/src/View/Layout/Wizard/sections/RowSummarySection.js +140 -0
  112. package/src/View/Note/NotePopup.d.ts +2 -0
  113. package/src/View/{Notes/NotesPopup.js → Note/NotePopup.js} +6 -6
  114. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  115. package/src/agGrid/AdaptableAgGrid.d.ts +2 -0
  116. package/src/agGrid/AdaptableAgGrid.js +97 -58
  117. package/src/agGrid/AgGridAdapter.d.ts +2 -0
  118. package/src/agGrid/AgGridAdapter.js +8 -0
  119. package/src/agGrid/AgGridColumnAdapter.d.ts +1 -1
  120. package/src/agGrid/AgGridColumnAdapter.js +4 -4
  121. package/src/agGrid/AgGridOptionsService.d.ts +4 -1
  122. package/src/agGrid/AgGridOptionsService.js +22 -0
  123. package/src/agGrid/defaultAdaptableOptions.js +0 -7
  124. package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +2 -1
  125. package/src/components/ExpressionEditor/QueryBuilder/utils.d.ts +0 -1
  126. package/src/components/ExpressionEditor/QueryBuilder/utils.js +1 -14
  127. package/src/components/icons/note.js +2 -2
  128. package/src/env.js +2 -2
  129. package/src/metamodel/adaptable.metamodel.d.ts +77 -14
  130. package/src/metamodel/adaptable.metamodel.js +1 -1
  131. package/src/parser/src/parser.js +117 -1257
  132. package/src/parser/src/predicate/mapExpressionToQlPredicate.js +1 -1
  133. package/src/parser/src/predicate/mapQlPredicateToExpression.js +2 -1
  134. package/src/parser/src/types.d.ts +2 -2
  135. package/src/types.d.ts +23 -20
  136. package/tsconfig.esm.tsbuildinfo +1 -1
  137. package/src/Api/Events/CommentsChangedInfo.d.ts +0 -5
  138. package/src/Api/NotesApi.d.ts +0 -48
  139. package/src/PredefinedConfig/CellAddress.d.ts +0 -13
  140. package/src/PredefinedConfig/CellAddress.js +0 -4
  141. package/src/Redux/ActionsReducers/NotesRedux.d.ts +0 -38
  142. package/src/View/Notes/NotesPopup.d.ts +0 -2
  143. /package/src/Api/Events/{CommentsChangedInfo.js → CommentChanged.js} +0 -0
  144. /package/src/Api/{NotesApi.js → NoteApi.js} +0 -0
  145. /package/src/PredefinedConfig/{NotesState.js → Common/TransposeConfig.js} +0 -0
  146. /package/src/View/{Notes → Note}/NoteEditor.d.ts +0 -0
  147. /package/src/View/{Notes → Note}/NoteEditor.js +0 -0
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { Draggable, Droppable } from 'react-beautiful-dnd';
3
3
  import { Box, Flex } from 'rebass';
4
4
  import { isQlLogicalOperator } from '../../../parser/src/predicate';
5
+ import { mapColumnDataTypeToExpressionFunctionType } from '../../../Utilities/adaptableQlUtils';
5
6
  import { booleanExpressionFunctions } from '../../../Utilities/ExpressionFunctions/booleanExpressionFunctions';
6
7
  import { useAdaptable } from '../../../View/AdaptableContext';
7
8
  import DropdownButton from '../../DropdownButton';
@@ -9,7 +10,7 @@ import ErrorBox from '../../ErrorBox';
9
10
  import { Icon } from '../../icons';
10
11
  import SimpleButton from '../../SimpleButton';
11
12
  import { CombinatorSelector, ExpressionSelector, PrimiteValueInput, PrimitiveColumnSelector, PrimitiveMultiValueInput, } from './QueryBuilderInputs';
12
- import { getOperatorMatchingInputs as getFunctionMatchingInputTypes, mapColumnDataTypeToExpressionFunctionType, } from './utils';
13
+ import { getOperatorMatchingInputs as getFunctionMatchingInputTypes } from './utils';
13
14
  const ITEM_HEIGHT = 40;
14
15
  const BASE_CLASS_NAME = 'ab-QueryBuilder-predicate-editor';
15
16
  const Handle = (props) => (React.createElement(Flex, Object.assign({ className: `${BASE_CLASS_NAME}__handle`, height: ITEM_HEIGHT, alignItems: "center", mr: 1 }, props),
@@ -2,7 +2,6 @@ import { QlPredicate, QlPredicateError } from '../../../parser/src/predicate';
2
2
  import { ExpressionFunctionInputType } from '../../../parser/src/types';
3
3
  import { AdaptableColumnDataType, BooleanFunctionName } from '../../../types';
4
4
  export declare const reorder: (predicate: QlPredicate, from: string, to: string) => any;
5
- export declare const mapColumnDataTypeToExpressionFunctionType: (dataType: AdaptableColumnDataType) => ExpressionFunctionInputType;
6
5
  export declare const mapExpressionFunctionTypeToColumnDataType: (type: ExpressionFunctionInputType) => AdaptableColumnDataType;
7
6
  export declare const getOperatorMatchingInputs: (columnType: ExpressionFunctionInputType, inputs: ExpressionFunctionInputType[] | Array<ExpressionFunctionInputType>[]) => ExpressionFunctionInputType[];
8
7
  export declare const getFunctionsForColumnType: (dataType: AdaptableColumnDataType, availableBooleanFunctions: BooleanFunctionName[]) => BooleanFunctionName[];
@@ -1,3 +1,4 @@
1
+ import { mapColumnDataTypeToExpressionFunctionType } from '../../../Utilities/adaptableQlUtils';
1
2
  import { isQlLogicalOperator } from '../../../parser/src/predicate';
2
3
  import { booleanExpressionFunctions } from '../../../Utilities/ExpressionFunctions/booleanExpressionFunctions';
3
4
  import { deepClone } from '../../../Utilities/Extensions/ObjectExtensions';
@@ -26,20 +27,6 @@ export const reorder = (predicate, from, to) => {
26
27
  parent.args.splice(parseInt(toPath[toPath.length - 1]), 0, itemToMove);
27
28
  return predicateCopy;
28
29
  };
29
- export const mapColumnDataTypeToExpressionFunctionType = (dataType) => {
30
- if (dataType === 'Number') {
31
- return 'number';
32
- }
33
- if (dataType === 'Boolean') {
34
- return 'boolean';
35
- }
36
- if (dataType === 'String') {
37
- return 'text';
38
- }
39
- if (dataType === 'Date') {
40
- return 'date';
41
- }
42
- };
43
30
  export const mapExpressionFunctionTypeToColumnDataType = (type) => {
44
31
  if (type === 'number') {
45
32
  return 'Number';
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
2
  import DefaultIcon from './DefaultIcon';
3
- export default (props) => (React.createElement(DefaultIcon, Object.assign({}, props, { viewBox: "0 -960 960 960" }),
4
- React.createElement("path", { d: "M440-240h80v-120h120v-80H520v-120h-80v120H320v80h120v120ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z" })));
3
+ export default (props) => (React.createElement(DefaultIcon, Object.assign({}, props),
4
+ React.createElement("path", { d: "M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-3h-8V6h8v2z" })));
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
3
- PUBLISH_TIMESTAMP: 1710949344156 || Date.now(),
4
- VERSION: "18.0.0-canary.11" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1711118620968 || Date.now(),
4
+ VERSION: "18.0.0-canary.13" || '--current-version--',
5
5
  };
@@ -382,11 +382,19 @@ export declare const ADAPTABLE_METAMODEL: {
382
382
  kind: string;
383
383
  desc: string;
384
384
  isOpt: boolean;
385
+ ref?: undefined;
385
386
  } | {
386
387
  name: string;
387
388
  kind: string;
388
389
  desc: string;
389
390
  isOpt?: undefined;
391
+ ref?: undefined;
392
+ } | {
393
+ name: string;
394
+ kind: string;
395
+ desc: string;
396
+ isOpt: boolean;
397
+ ref: string;
390
398
  })[];
391
399
  };
392
400
  AdaptableComparerFunction: {
@@ -1919,6 +1927,11 @@ export declare const ADAPTABLE_METAMODEL: {
1919
1927
  desc: string;
1920
1928
  }[];
1921
1929
  };
1930
+ ColumnTypesContext: {
1931
+ name: string;
1932
+ kind: string;
1933
+ desc: string;
1934
+ };
1922
1935
  ColumnValuesComparer: {
1923
1936
  name: string;
1924
1937
  kind: string;
@@ -1939,8 +1952,25 @@ export declare const ADAPTABLE_METAMODEL: {
1939
1952
  name: string;
1940
1953
  kind: string;
1941
1954
  desc: string;
1955
+ props: {
1956
+ name: string;
1957
+ kind: string;
1958
+ desc: string;
1959
+ ref: string;
1960
+ }[];
1961
+ };
1962
+ CommentOptions: {
1963
+ name: string;
1964
+ kind: string;
1965
+ desc: string;
1966
+ props: {
1967
+ name: string;
1968
+ kind: string;
1969
+ desc: string;
1970
+ isOpt: boolean;
1971
+ }[];
1942
1972
  };
1943
- CommentsOptions: {
1973
+ CommentState: {
1944
1974
  name: string;
1945
1975
  kind: string;
1946
1976
  desc: string;
@@ -1951,6 +1981,24 @@ export declare const ADAPTABLE_METAMODEL: {
1951
1981
  isOpt: boolean;
1952
1982
  }[];
1953
1983
  };
1984
+ CommentThread: {
1985
+ name: string;
1986
+ kind: string;
1987
+ desc: string;
1988
+ props: ({
1989
+ name: string;
1990
+ kind: string;
1991
+ desc: string;
1992
+ isOpt?: undefined;
1993
+ ref?: undefined;
1994
+ } | {
1995
+ name: string;
1996
+ kind: string;
1997
+ desc: string;
1998
+ isOpt: boolean;
1999
+ ref: string;
2000
+ })[];
2001
+ };
1954
2002
  CompatibleContext: {
1955
2003
  name: string;
1956
2004
  kind: string;
@@ -2872,10 +2920,18 @@ export declare const ADAPTABLE_METAMODEL: {
2872
2920
  kind: string;
2873
2921
  desc: string;
2874
2922
  isOpt: boolean;
2923
+ ref?: undefined;
2924
+ } | {
2925
+ name: string;
2926
+ kind: string;
2927
+ desc: string;
2928
+ isOpt?: undefined;
2929
+ ref?: undefined;
2875
2930
  } | {
2876
2931
  name: string;
2877
2932
  kind: string;
2878
2933
  desc: string;
2934
+ ref: string;
2879
2935
  isOpt?: undefined;
2880
2936
  })[];
2881
2937
  };
@@ -3893,21 +3949,12 @@ export declare const ADAPTABLE_METAMODEL: {
3893
3949
  name: string;
3894
3950
  kind: string;
3895
3951
  desc: string;
3896
- props: ({
3897
- name: string;
3898
- kind: string;
3899
- desc: string;
3900
- isOpt: boolean;
3901
- gridInfo?: undefined;
3902
- defVal?: undefined;
3903
- } | {
3952
+ props: {
3904
3953
  name: string;
3905
3954
  kind: string;
3906
3955
  desc: string;
3907
3956
  isOpt: boolean;
3908
- gridInfo: string;
3909
- defVal: string;
3910
- })[];
3957
+ }[];
3911
3958
  };
3912
3959
  MenuOrderContext: {
3913
3960
  name: string;
@@ -3979,8 +4026,14 @@ export declare const ADAPTABLE_METAMODEL: {
3979
4026
  name: string;
3980
4027
  kind: string;
3981
4028
  desc: string;
4029
+ props: {
4030
+ name: string;
4031
+ kind: string;
4032
+ desc: string;
4033
+ ref: string;
4034
+ }[];
3982
4035
  };
3983
- NotesOptions: {
4036
+ NoteOptions: {
3984
4037
  name: string;
3985
4038
  kind: string;
3986
4039
  desc: string;
@@ -3991,7 +4044,7 @@ export declare const ADAPTABLE_METAMODEL: {
3991
4044
  isOpt: boolean;
3992
4045
  }[];
3993
4046
  };
3994
- NotesState: {
4047
+ NoteState: {
3995
4048
  name: string;
3996
4049
  kind: string;
3997
4050
  desc: string;
@@ -4714,6 +4767,16 @@ export declare const ADAPTABLE_METAMODEL: {
4714
4767
  ref?: undefined;
4715
4768
  })[];
4716
4769
  };
4770
+ RowSummary: {
4771
+ name: string;
4772
+ kind: string;
4773
+ desc: string;
4774
+ };
4775
+ RowSummaryPosition: {
4776
+ name: string;
4777
+ kind: string;
4778
+ desc: string;
4779
+ };
4717
4780
  Schedule: {
4718
4781
  name: string;
4719
4782
  kind: string;