@adaptabletools/adaptable 13.0.0-canary.1 → 13.0.0-canary.3

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 (124) hide show
  1. package/agGrid.d.ts +23 -1
  2. package/agGrid.js +23 -1
  3. package/base.css +1 -0
  4. package/bundle.cjs.js +158 -158
  5. package/index.css +1 -0
  6. package/package.json +3 -3
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -0
  10. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +42 -14
  11. package/src/Api/ConditionalStyleApi.d.ts +20 -0
  12. package/src/Api/FormatColumnApi.d.ts +42 -3
  13. package/src/Api/Implementation/DashboardApiImpl.js +2 -3
  14. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +17 -1
  15. package/src/Api/Implementation/FormatColumnApiImpl.js +94 -14
  16. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +0 -2
  17. package/src/Api/Implementation/QueryLanguageApiImpl.js +0 -3
  18. package/src/Api/QueryLanguageApi.d.ts +0 -5
  19. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +1 -1
  20. package/src/PredefinedConfig/Common/AdaptablePredicate.js +37 -37
  21. package/src/PredefinedConfig/FormatColumnState.d.ts +19 -0
  22. package/src/PredefinedConfig/PredefinedConfig.d.ts +1 -0
  23. package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +14 -0
  24. package/src/Redux/ActionsReducers/FormatColumnRedux.js +43 -1
  25. package/src/Redux/Store/AdaptableStore.js +2 -0
  26. package/src/Strategy/FormatColumnModule.d.ts +2 -9
  27. package/src/Strategy/FormatColumnModule.js +5 -1
  28. package/src/Strategy/Interface/IModule.d.ts +10 -10
  29. package/src/Strategy/Utilities/Alert/getAlertBehaviourViewItems.d.ts +2 -2
  30. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +5 -5
  31. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +3 -2
  32. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +4 -1
  33. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -0
  34. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +4 -1
  35. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +1 -0
  36. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +4 -1
  37. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +1 -0
  38. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +4 -1
  39. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -0
  40. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +4 -1
  41. package/src/Utilities/Extensions/TypeExtensions.d.ts +1 -0
  42. package/src/Utilities/Extensions/TypeExtensions.js +5 -0
  43. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +14 -4
  44. package/src/Utilities/Services/LicenseService.js +1 -1
  45. package/src/Utilities/Services/QueryLanguageService.d.ts +5 -3
  46. package/src/Utilities/Services/QueryLanguageService.js +92 -39
  47. package/src/Utilities/license/LicenseDetails.d.ts +1 -1
  48. package/src/Utilities/license/decode.d.ts +1 -0
  49. package/src/Utilities/license/decode.js +1 -1
  50. package/src/View/AdaptablePopover/index.d.ts +2 -2
  51. package/src/View/AdaptableView.d.ts +3 -3
  52. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +1 -1
  53. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +1 -1
  54. package/src/View/AdaptableWizardView/index.d.ts +1 -1
  55. package/src/View/ColorPicker.d.ts +1 -5
  56. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  57. package/src/View/Components/Buttons/ButtonEdit.d.ts +1 -1
  58. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.d.ts +1 -1
  59. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +2 -2
  60. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +1 -1
  61. package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -1
  62. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.d.ts +1 -1
  63. package/src/View/Components/Popups/AdaptablePopup/TopBar.d.ts +1 -1
  64. package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +1 -1
  65. package/src/View/FormatColumn/MoveFormatColumn.d.ts +7 -0
  66. package/src/View/FormatColumn/MoveFormatColumn.js +27 -0
  67. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +9 -0
  68. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +66 -0
  69. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +20 -2
  70. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +2 -1
  71. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +14 -0
  72. package/src/View/FormatColumn/Wizard/constants.d.ts +1 -0
  73. package/src/View/FormatColumn/Wizard/constants.js +4 -0
  74. package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
  75. package/src/View/Layout/Wizard/sections/SettingsSection.d.ts +2 -2
  76. package/src/View/License/LicenseWatermark.d.ts +1 -1
  77. package/src/View/StateManagement/components/ClearButton.d.ts +1 -1
  78. package/src/View/StateManagement/components/LoadButton.d.ts +1 -1
  79. package/src/View/StatusBar/StatusBarPanel.d.ts +4 -4
  80. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +3 -3
  81. package/src/View/Wizard/OnePageAdaptableWizard.js +2 -2
  82. package/src/View/Wizard/OnePageWizards.d.ts +3 -3
  83. package/src/View/Wizard/OnePageWizards.js +2 -2
  84. package/src/agGrid/Adaptable.d.ts +11 -0
  85. package/src/agGrid/Adaptable.js +134 -66
  86. package/src/agGrid/FilterWrapper.js +4 -5
  87. package/src/agGrid/FloatingFilterWrapper.js +3 -4
  88. package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -0
  89. package/src/agGrid/createAgStatusPanelComponent.js +3 -3
  90. package/src/components/CheckBox/index.d.ts +1 -1
  91. package/src/components/Datepicker/index.d.ts +1 -1
  92. package/src/components/Dialog/index.d.ts +4 -2
  93. package/src/components/Dialog/index.js +2 -2
  94. package/src/components/DropdownButton/index.d.ts +21 -4
  95. package/src/components/DropdownButton/index.js +5 -6
  96. package/src/components/ExpressionEditor/BaseEditorInput.d.ts +1 -1
  97. package/src/components/ExpressionEditor/EditorInput.js +1 -1
  98. package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +1 -1
  99. package/src/components/Input/index.d.ts +1 -1
  100. package/src/components/List/ListGroupItem/index.d.ts +4 -2
  101. package/src/components/Loader/Loader.d.ts +2 -2
  102. package/src/components/Logo/index.d.ts +1 -1
  103. package/src/components/Modal/index.d.ts +1 -1
  104. package/src/components/PopupWithFooter.d.ts +2 -2
  105. package/src/components/ProgressIndicator/ProgressIndicator.d.ts +1 -1
  106. package/src/components/SelectList.d.ts +1 -1
  107. package/src/components/SimpleButton/index.d.ts +4 -5
  108. package/src/components/SimpleButton/index.js +3 -2
  109. package/src/components/StylePreview.d.ts +1 -1
  110. package/src/components/Tag/Tag.d.ts +1 -1
  111. package/src/components/Textarea/index.d.ts +6 -4
  112. package/src/components/ToggleButton/index.d.ts +1 -1
  113. package/src/components/WindowModal/WindowModal.d.ts +1 -1
  114. package/src/components/icons/index.d.ts +3 -2
  115. package/src/components/icons/layout.d.ts +2 -1
  116. package/src/components/utils/useContainerScrollObserver/index.d.ts +1 -1
  117. package/src/metamodel/adaptable.metamodel.d.ts +47 -29
  118. package/src/metamodel/adaptable.metamodel.js +1 -1
  119. package/src/parser/src/types.d.ts +6 -3
  120. package/src/renderReactRoot.d.ts +3 -0
  121. package/src/renderReactRoot.js +54 -0
  122. package/src/types.d.ts +2 -2
  123. package/version.d.ts +1 -1
  124. package/version.js +1 -1
@@ -27,7 +27,7 @@ exports.SystemPredicateDefs = [
27
27
  label: 'Values',
28
28
  icon: { text: 'IN' },
29
29
  columnScope: { DataTypes: ['String', 'Number', 'Date'] },
30
- moduleScope: ['filter', 'conditionalstyle', 'alert'],
30
+ moduleScope: ['filter', 'conditionalstyle', 'formatColumn', 'alert'],
31
31
  handler: ({ inputs, column, value }) => {
32
32
  if (inputs.length === 0) {
33
33
  return true;
@@ -53,7 +53,7 @@ exports.SystemPredicateDefs = [
53
53
  label: 'Exclude Values',
54
54
  icon: { text: '!IN' },
55
55
  columnScope: { DataTypes: ['String', 'Number', 'Date'] },
56
- moduleScope: ['filter', 'conditionalstyle', 'alert'],
56
+ moduleScope: ['filter', 'conditionalstyle', 'formatColumn', 'alert'],
57
57
  handler: ({ inputs, column, value }) => {
58
58
  // basically negation of IN
59
59
  if (inputs.length === 0) {
@@ -79,7 +79,7 @@ exports.SystemPredicateDefs = [
79
79
  label: 'Blanks',
80
80
  icon: { name: 'blanks' },
81
81
  columnScope: { All: true },
82
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
82
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
83
83
  handler: ({ value }) => Helper_1.default.IsInputNullOrEmpty(value),
84
84
  },
85
85
  {
@@ -87,7 +87,7 @@ exports.SystemPredicateDefs = [
87
87
  label: 'Non Blanks',
88
88
  icon: { name: 'non-blanks' },
89
89
  columnScope: { All: true },
90
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
90
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
91
91
  handler: ({ value }) => Helper_1.default.IsInputNotNullOrEmpty(value),
92
92
  },
93
93
  // Numeric System Filters
@@ -96,7 +96,7 @@ exports.SystemPredicateDefs = [
96
96
  label: 'Greater Than',
97
97
  icon: { name: 'greater-than' },
98
98
  columnScope: { DataTypes: ['Number'] },
99
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
99
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
100
100
  inputs: [{ type: 'number' }],
101
101
  handler: ({ value, inputs }) => Number(value) > Number(inputs[0]),
102
102
  toString: ({ inputs }) => `> ${inputs[0]}`,
@@ -107,7 +107,7 @@ exports.SystemPredicateDefs = [
107
107
  label: 'Less Than',
108
108
  icon: { name: 'less-than' },
109
109
  columnScope: { DataTypes: ['Number'] },
110
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
110
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
111
111
  inputs: [{ type: 'number' }],
112
112
  handler: ({ value, inputs }) => Number(value) < Number(inputs[0]),
113
113
  toString: ({ inputs }) => `< ${inputs[0]}`,
@@ -118,7 +118,7 @@ exports.SystemPredicateDefs = [
118
118
  label: 'Positive',
119
119
  icon: { text: '>0' },
120
120
  columnScope: { DataTypes: ['Number'] },
121
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
121
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
122
122
  handler: ({ value }) => Number(value) > 0,
123
123
  },
124
124
  {
@@ -126,7 +126,7 @@ exports.SystemPredicateDefs = [
126
126
  label: 'Negative',
127
127
  icon: { text: '<0' },
128
128
  columnScope: { DataTypes: ['Number'] },
129
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
129
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
130
130
  handler: ({ value }) => Number(value) < 0,
131
131
  },
132
132
  {
@@ -134,7 +134,7 @@ exports.SystemPredicateDefs = [
134
134
  label: 'Zero',
135
135
  icon: { text: '=0' },
136
136
  columnScope: { DataTypes: ['Number'] },
137
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
137
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
138
138
  handler: ({ value }) => {
139
139
  if (typeof value === 'string' && !StringExtensions_1.default.IsNumeric(value)) {
140
140
  return false;
@@ -147,7 +147,7 @@ exports.SystemPredicateDefs = [
147
147
  label: 'Equals',
148
148
  icon: { name: 'equal' },
149
149
  columnScope: { DataTypes: ['Number'] },
150
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
150
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
151
151
  inputs: [{ type: 'number' }],
152
152
  handler: ({ value, inputs }) => {
153
153
  const input = inputs[0];
@@ -165,7 +165,7 @@ exports.SystemPredicateDefs = [
165
165
  label: 'Not Equals',
166
166
  icon: { name: 'not-equal' },
167
167
  columnScope: { DataTypes: ['Number'] },
168
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
168
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
169
169
  inputs: [{ type: 'number' }],
170
170
  handler: ({ value, inputs }) => {
171
171
  const input = inputs[0];
@@ -183,7 +183,7 @@ exports.SystemPredicateDefs = [
183
183
  label: 'Between',
184
184
  icon: { text: 'BE' },
185
185
  columnScope: { DataTypes: ['Number'] },
186
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
186
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
187
187
  inputs: [{ type: 'number' }, { type: 'number' }],
188
188
  handler: ({ value, inputs }) => Number(value) >= Number(inputs[0]) && Number(value) <= Number(inputs[1]),
189
189
  toString: ({ inputs }) => `Between ${inputs[0]}:${inputs[1]}`,
@@ -194,7 +194,7 @@ exports.SystemPredicateDefs = [
194
194
  label: 'Not Between',
195
195
  icon: { text: '!BE' },
196
196
  columnScope: { DataTypes: ['Number'] },
197
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
197
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
198
198
  inputs: [{ type: 'number' }, { type: 'number' }],
199
199
  handler: ({ value, inputs }) => Number(value) < Number(inputs[0]) || Number(value) > Number(inputs[1]),
200
200
  toString: ({ inputs }) => `Not Between ${inputs[0]}:${inputs[1]}`,
@@ -222,7 +222,7 @@ exports.SystemPredicateDefs = [
222
222
  label: 'Equals',
223
223
  icon: { name: 'equal' },
224
224
  columnScope: { DataTypes: ['String'] },
225
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
225
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
226
226
  inputs: [{ type: 'text' }],
227
227
  handler: ({ value, inputs, api }) => {
228
228
  if (!value) {
@@ -241,7 +241,7 @@ exports.SystemPredicateDefs = [
241
241
  label: 'Not Equals',
242
242
  icon: { name: 'not-equal' },
243
243
  columnScope: { DataTypes: ['String'] },
244
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
244
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
245
245
  inputs: [{ type: 'text' }],
246
246
  handler: ({ value, inputs, api }) => {
247
247
  if (!value) {
@@ -260,7 +260,7 @@ exports.SystemPredicateDefs = [
260
260
  label: 'Contains',
261
261
  icon: { name: 'contains' },
262
262
  columnScope: { DataTypes: ['String'] },
263
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
263
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
264
264
  inputs: [{ type: 'text' }],
265
265
  handler: ({ value, inputs, api }) => {
266
266
  if (!value) {
@@ -278,7 +278,7 @@ exports.SystemPredicateDefs = [
278
278
  label: 'Not Contains',
279
279
  icon: { name: 'not-contains' },
280
280
  columnScope: { DataTypes: ['String'] },
281
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
281
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
282
282
  inputs: [{ type: 'text' }],
283
283
  handler: ({ value, inputs, api }) => {
284
284
  if (!value) {
@@ -296,7 +296,7 @@ exports.SystemPredicateDefs = [
296
296
  label: 'Starts With',
297
297
  icon: { name: 'starts-with' },
298
298
  columnScope: { DataTypes: ['String'] },
299
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
299
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
300
300
  inputs: [{ type: 'text' }],
301
301
  handler: ({ value, inputs, api }) => {
302
302
  if (!value) {
@@ -314,7 +314,7 @@ exports.SystemPredicateDefs = [
314
314
  label: 'Ends With',
315
315
  icon: { name: 'ends-with' },
316
316
  columnScope: { DataTypes: ['String'] },
317
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
317
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
318
318
  inputs: [{ type: 'text' }],
319
319
  handler: ({ value, inputs, api }) => {
320
320
  if (!value) {
@@ -332,7 +332,7 @@ exports.SystemPredicateDefs = [
332
332
  label: 'Regex',
333
333
  icon: { name: 'regex' },
334
334
  columnScope: { DataTypes: ['String'] },
335
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
335
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
336
336
  inputs: [{ type: 'text' }],
337
337
  handler: ({ value, inputs }) => new RegExp(inputs[0]).test(value),
338
338
  toString: ({ inputs }) => `Regex ${inputs[0]}`,
@@ -343,7 +343,7 @@ exports.SystemPredicateDefs = [
343
343
  label: 'Today',
344
344
  icon: { name: 'calendar' },
345
345
  columnScope: { DataTypes: ['Date'] },
346
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
346
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
347
347
  handler: ({ value }) => (0, isToday_1.default)((0, DateHelper_1.parseDateValue)(value)),
348
348
  },
349
349
  {
@@ -351,7 +351,7 @@ exports.SystemPredicateDefs = [
351
351
  label: 'Yesterday',
352
352
  icon: { name: 'calendar' },
353
353
  columnScope: { DataTypes: ['Date'] },
354
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
354
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
355
355
  handler: ({ value }) => (0, isYesterday_1.default)((0, DateHelper_1.parseDateValue)(value)),
356
356
  },
357
357
  {
@@ -359,7 +359,7 @@ exports.SystemPredicateDefs = [
359
359
  label: 'Tomorrow',
360
360
  icon: { name: 'calendar' },
361
361
  columnScope: { DataTypes: ['Date'] },
362
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
362
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
363
363
  handler: ({ value }) => (0, isTomorrow_1.default)((0, DateHelper_1.parseDateValue)(value)),
364
364
  },
365
365
  {
@@ -367,7 +367,7 @@ exports.SystemPredicateDefs = [
367
367
  label: 'This Week',
368
368
  icon: { name: 'calendar' },
369
369
  columnScope: { DataTypes: ['Date'] },
370
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
370
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
371
371
  handler: ({ value }) => (0, isThisWeek_1.default)((0, DateHelper_1.parseDateValue)(value)),
372
372
  },
373
373
  {
@@ -375,7 +375,7 @@ exports.SystemPredicateDefs = [
375
375
  label: 'This Month',
376
376
  icon: { name: 'calendar' },
377
377
  columnScope: { DataTypes: ['Date'] },
378
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
378
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
379
379
  handler: ({ value }) => (0, isThisMonth_1.default)((0, DateHelper_1.parseDateValue)(value)),
380
380
  },
381
381
  {
@@ -383,7 +383,7 @@ exports.SystemPredicateDefs = [
383
383
  label: 'This Quarter',
384
384
  icon: { name: 'calendar' },
385
385
  columnScope: { DataTypes: ['Date'] },
386
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
386
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
387
387
  handler: ({ value }) => (0, isThisQuarter_1.default)((0, DateHelper_1.parseDateValue)(value)),
388
388
  },
389
389
  {
@@ -391,7 +391,7 @@ exports.SystemPredicateDefs = [
391
391
  label: 'This Year',
392
392
  icon: { name: 'calendar' },
393
393
  columnScope: { DataTypes: ['Date'] },
394
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
394
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
395
395
  handler: ({ value }) => (0, isThisYear_1.default)((0, DateHelper_1.parseDateValue)(value)),
396
396
  },
397
397
  {
@@ -399,7 +399,7 @@ exports.SystemPredicateDefs = [
399
399
  label: 'In Past',
400
400
  icon: { name: 'calendar' },
401
401
  columnScope: { DataTypes: ['Date'] },
402
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
402
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
403
403
  handler: ({ value }) => (0, isPast_1.default)((0, DateHelper_1.parseDateValue)(value)),
404
404
  },
405
405
  {
@@ -407,7 +407,7 @@ exports.SystemPredicateDefs = [
407
407
  label: 'In Future',
408
408
  icon: { name: 'calendar' },
409
409
  columnScope: { DataTypes: ['Date'] },
410
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
410
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
411
411
  handler: ({ value }) => (0, isFuture_1.default)((0, DateHelper_1.parseDateValue)(value)),
412
412
  },
413
413
  {
@@ -415,7 +415,7 @@ exports.SystemPredicateDefs = [
415
415
  label: 'After',
416
416
  icon: { name: 'greater-than' },
417
417
  columnScope: { DataTypes: ['Date'] },
418
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
418
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
419
419
  inputs: [{ type: 'date' }],
420
420
  handler: ({ value, inputs }) => (0, isAfter_1.default)((0, DateHelper_1.parseDateValue)(value), (0, DateHelper_1.parseDateValue)(inputs[0])),
421
421
  toString: ({ inputs }) => `> ${inputs[0]}`,
@@ -425,7 +425,7 @@ exports.SystemPredicateDefs = [
425
425
  label: 'Before',
426
426
  icon: { name: 'less-than' },
427
427
  columnScope: { DataTypes: ['Date'] },
428
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
428
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
429
429
  inputs: [{ type: 'date' }],
430
430
  handler: ({ value, inputs }) => (0, isBefore_1.default)((0, DateHelper_1.parseDateValue)(value), (0, DateHelper_1.parseDateValue)(inputs[0])),
431
431
  toString: ({ inputs }) => `< ${inputs[0]}`,
@@ -435,7 +435,7 @@ exports.SystemPredicateDefs = [
435
435
  label: 'Equals',
436
436
  icon: { name: 'equal' },
437
437
  columnScope: { DataTypes: ['Date'] },
438
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
438
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
439
439
  inputs: [{ type: 'date' }],
440
440
  handler: ({ value, inputs }) => (0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), (0, DateHelper_1.parseDateValue)(inputs[0])),
441
441
  toString: ({ inputs }) => `= ${inputs[0]}`,
@@ -445,7 +445,7 @@ exports.SystemPredicateDefs = [
445
445
  label: 'NotEquals',
446
446
  icon: { name: 'not-equal' },
447
447
  columnScope: { DataTypes: ['Date'] },
448
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
448
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
449
449
  inputs: [{ type: 'date' }],
450
450
  handler: ({ value, inputs }) => !(0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), (0, DateHelper_1.parseDateValue)(inputs[0])),
451
451
  toString: ({ inputs }) => `!= ${inputs[0]}`,
@@ -455,7 +455,7 @@ exports.SystemPredicateDefs = [
455
455
  label: 'Next Work Day',
456
456
  icon: { name: 'calendar' },
457
457
  columnScope: { DataTypes: ['Date'] },
458
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
458
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
459
459
  handler: ({ value, api }) => (0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), CalendarHelper_1.default.getNextWorkingDay()),
460
460
  },
461
461
  {
@@ -463,7 +463,7 @@ exports.SystemPredicateDefs = [
463
463
  label: 'Last Work Day',
464
464
  icon: { name: 'calendar' },
465
465
  columnScope: { DataTypes: ['Date'] },
466
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
466
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
467
467
  handler: ({ value, api }) => (0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), CalendarHelper_1.default.getPreviousWorkingDay()),
468
468
  },
469
469
  {
@@ -482,7 +482,7 @@ exports.SystemPredicateDefs = [
482
482
  label: 'True',
483
483
  icon: { text: 'T' },
484
484
  columnScope: { DataTypes: ['Boolean'] },
485
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
485
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
486
486
  handler: ({ value }) => Boolean(value) === true,
487
487
  },
488
488
  {
@@ -490,7 +490,7 @@ exports.SystemPredicateDefs = [
490
490
  label: 'False',
491
491
  icon: { text: 'F' },
492
492
  columnScope: { DataTypes: ['Boolean'] },
493
- moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
493
+ moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
494
494
  handler: ({ value }) => Boolean(value) === false,
495
495
  },
496
496
  {
@@ -3,6 +3,9 @@ import { AdaptableStyle } from './Common/AdaptableStyle';
3
3
  import { AdaptableFormat } from './Common/AdaptableFormat';
4
4
  import { AdaptableScope } from './Common/AdaptableScope';
5
5
  import { SuspendableObject } from './Common/SuspendableObject';
6
+ import { XOR } from '../Utilities/Extensions/TypeExtensions';
7
+ import { TypeHint } from './Common/Types';
8
+ import { AdaptableBooleanQuery, AdaptablePredicate } from '../types';
6
9
  /**
7
10
  * Predefined Configuration for Format Column Module
8
11
  */
@@ -20,6 +23,11 @@ export interface FormatColumn extends SuspendableObject {
20
23
  * Where Format will be applied - whole Row, some Columns or all Columns of given DataType
21
24
  */
22
25
  Scope: AdaptableScope;
26
+ /**
27
+ * Predicate-based Rule to use for deciding if a format column needs to be applied.
28
+ * When not defined the format column is always applied.
29
+ */
30
+ Rule?: FormatColumnRule;
23
31
  /**
24
32
  * Style to apply
25
33
  */
@@ -48,6 +56,16 @@ export interface FormatColumn extends SuspendableObject {
48
56
  */
49
57
  IncludeGroupedRows?: boolean;
50
58
  }
59
+ /**
60
+ * The Format Column Rule - can be either a Predicate or an Expression
61
+ */
62
+ export declare type FormatColumnRule = XOR<{
63
+ Predicate: FormatColumnPredicate;
64
+ }, AdaptableBooleanQuery>;
65
+ export interface FormatColumnPredicate extends AdaptablePredicate {
66
+ PredicateId: TypeHint<string, SystemFormatColumnPredicateId>;
67
+ }
68
+ declare type SystemFormatColumnPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False';
51
69
  /**
52
70
  * Special Style used when Formatting Columns: Gradient, PercentBar or CheckBox
53
71
  */
@@ -150,3 +168,4 @@ export declare type CellTextOptions = CellTextOption[];
150
168
  * Text optionally to show in a Format Column special style: 'CellValue' or 'PercentageValue'
151
169
  */
152
170
  export declare type CellTextOption = 'CellValue' | 'PercentageValue';
171
+ export {};
@@ -36,6 +36,7 @@ export interface PredefinedConfig {
36
36
  CalculatedColumn?: CalculatedColumnState;
37
37
  /**
38
38
  * Supplies a collection of *ConditionalStyle* objects to provides columns and rows with a particular style when the data matches a given rule
39
+ * @deprecated use `FormatColumn` instead
39
40
  */
40
41
  ConditionalStyle?: ConditionalStyleState;
41
42
  /**
@@ -4,6 +4,14 @@ import * as Redux from 'redux';
4
4
  * @ReduxAction A Format Column has been added
5
5
  */
6
6
  export declare const FORMAT_COLUMN_ADD = "FORMAT_COLUMN_ADD";
7
+ /**
8
+ * @ReduxAction Format column was moved up
9
+ */
10
+ export declare const FORMAT_COLUMN_MOVE_UP = "FORMAT_COLUMN_MOVE_UP";
11
+ /**
12
+ * @ReduxAction Format column was moved down
13
+ */
14
+ export declare const FORMAT_COLUMN_MOVE_DOWN = "FORMAT_COLUMN_MOVE_DOWN";
7
15
  /**
8
16
  * @ReduxAction A Format Column has been edited
9
17
  */
@@ -31,6 +39,10 @@ export interface FormatColumnAddAction extends FormatColumnAction {
31
39
  }
32
40
  export interface FormatColumnEditAction extends FormatColumnAction {
33
41
  }
42
+ export interface FormatColumnMoveUpAction extends FormatColumnAction {
43
+ }
44
+ export interface FormatColumnMoveDownAction extends FormatColumnAction {
45
+ }
34
46
  export interface FormatColumnDeleteAction extends FormatColumnAction {
35
47
  }
36
48
  export interface FormatColumnSuspendAction extends FormatColumnAction {
@@ -43,6 +55,8 @@ export interface FormatColumnReadyAction extends Redux.Action {
43
55
  export declare const FormatColumnAdd: (formatColumn: FormatColumn) => FormatColumnAddAction;
44
56
  export declare const FormatColumnEdit: (formatColumn: FormatColumn) => FormatColumnEditAction;
45
57
  export declare const FormatColumnDelete: (formatColumn: FormatColumn) => FormatColumnDeleteAction;
58
+ export declare const FormatColumnMoveUp: (formatColumn: FormatColumn) => FormatColumnAddAction;
59
+ export declare const FormatColumnMoveDown: (formatColumn: FormatColumn) => FormatColumnAddAction;
46
60
  export declare const FormatColumnSuspend: (formatColumn: FormatColumn) => FormatColumnSuspendAction;
47
61
  export declare const FormatColumnUnSuspend: (formatColumn: FormatColumn) => FormatColumnSuspendAction;
48
62
  export declare const FormatColumnReady: (formatColumnState: FormatColumnState) => FormatColumnReadyAction;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FormatColumnReducer = exports.FormatColumnReady = exports.FormatColumnUnSuspend = exports.FormatColumnSuspend = exports.FormatColumnDelete = exports.FormatColumnEdit = exports.FormatColumnAdd = exports.FORMAT_COLUMN_UNSUSPEND = exports.FORMAT_COLUMN_SUSPEND = exports.FORMAT_COLUMN_READY = exports.FORMAT_COLUMN_DELETE = exports.FORMAT_COLUMN_EDIT = exports.FORMAT_COLUMN_ADD = void 0;
3
+ exports.FormatColumnReducer = exports.FormatColumnReady = exports.FormatColumnUnSuspend = exports.FormatColumnSuspend = exports.FormatColumnMoveDown = exports.FormatColumnMoveUp = exports.FormatColumnDelete = exports.FormatColumnEdit = exports.FormatColumnAdd = exports.FORMAT_COLUMN_UNSUSPEND = exports.FORMAT_COLUMN_SUSPEND = exports.FORMAT_COLUMN_READY = exports.FORMAT_COLUMN_DELETE = exports.FORMAT_COLUMN_EDIT = exports.FORMAT_COLUMN_MOVE_DOWN = exports.FORMAT_COLUMN_MOVE_UP = exports.FORMAT_COLUMN_ADD = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
6
6
  const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
@@ -9,6 +9,14 @@ const utils_1 = require("./utils");
9
9
  * @ReduxAction A Format Column has been added
10
10
  */
11
11
  exports.FORMAT_COLUMN_ADD = 'FORMAT_COLUMN_ADD';
12
+ /**
13
+ * @ReduxAction Format column was moved up
14
+ */
15
+ exports.FORMAT_COLUMN_MOVE_UP = 'FORMAT_COLUMN_MOVE_UP';
16
+ /**
17
+ * @ReduxAction Format column was moved down
18
+ */
19
+ exports.FORMAT_COLUMN_MOVE_DOWN = 'FORMAT_COLUMN_MOVE_DOWN';
12
20
  /**
13
21
  * @ReduxAction A Format Column has been edited
14
22
  */
@@ -44,6 +52,16 @@ const FormatColumnDelete = (formatColumn) => ({
44
52
  formatColumn,
45
53
  });
46
54
  exports.FormatColumnDelete = FormatColumnDelete;
55
+ const FormatColumnMoveUp = (formatColumn) => ({
56
+ type: exports.FORMAT_COLUMN_MOVE_UP,
57
+ formatColumn,
58
+ });
59
+ exports.FormatColumnMoveUp = FormatColumnMoveUp;
60
+ const FormatColumnMoveDown = (formatColumn) => ({
61
+ type: exports.FORMAT_COLUMN_MOVE_DOWN,
62
+ formatColumn,
63
+ });
64
+ exports.FormatColumnMoveDown = FormatColumnMoveDown;
47
65
  const FormatColumnSuspend = (formatColumn) => ({
48
66
  type: exports.FORMAT_COLUMN_SUSPEND,
49
67
  formatColumn,
@@ -85,6 +103,30 @@ const FormatColumnReducer = (state = initialState, action) => {
85
103
  case exports.FORMAT_COLUMN_UNSUSPEND: {
86
104
  return Object.assign(Object.assign({}, state), { FormatColumns: (0, utils_1.changeIsSuspendInList)(action.formatColumn, state.FormatColumns, false) });
87
105
  }
106
+ case exports.FORMAT_COLUMN_MOVE_UP: {
107
+ const index = state.FormatColumns.findIndex((formatColumn) => formatColumn.Uuid === action.formatColumn.Uuid);
108
+ let swapIndex = index - 1;
109
+ if (swapIndex < 0) {
110
+ swapIndex = state.FormatColumns.length - 1;
111
+ }
112
+ const formatColumnToSwap = state.FormatColumns[swapIndex];
113
+ const newFormatColumns = [...state.FormatColumns];
114
+ newFormatColumns[swapIndex] = state.FormatColumns[index];
115
+ newFormatColumns[index] = formatColumnToSwap;
116
+ return Object.assign(Object.assign({}, state), { FormatColumns: newFormatColumns });
117
+ }
118
+ case exports.FORMAT_COLUMN_MOVE_DOWN: {
119
+ const index = state.FormatColumns.findIndex((formatColumn) => formatColumn.Uuid === action.formatColumn.Uuid);
120
+ let swapIndex = index + 1;
121
+ if (swapIndex > state.FormatColumns.length - 1) {
122
+ swapIndex = 0;
123
+ }
124
+ const formatColumnToSwap = state.FormatColumns[swapIndex];
125
+ const newFormatColumns = [...state.FormatColumns];
126
+ newFormatColumns[swapIndex] = state.FormatColumns[index];
127
+ newFormatColumns[index] = formatColumnToSwap;
128
+ return Object.assign(Object.assign({}, state), { FormatColumns: newFormatColumns });
129
+ }
88
130
  default:
89
131
  return state;
90
132
  }
@@ -657,6 +657,8 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
657
657
  case FormatColumnRedux.FORMAT_COLUMN_ADD:
658
658
  case FormatColumnRedux.FORMAT_COLUMN_EDIT:
659
659
  case FormatColumnRedux.FORMAT_COLUMN_DELETE:
660
+ case FormatColumnRedux.FORMAT_COLUMN_MOVE_DOWN:
661
+ case FormatColumnRedux.FORMAT_COLUMN_MOVE_UP:
660
662
  case FormatColumnRedux.FORMAT_COLUMN_SUSPEND:
661
663
  case FormatColumnRedux.FORMAT_COLUMN_UNSUSPEND:
662
664
  case CustomSortRedux.CUSTOM_SORT_ADD:
@@ -2,12 +2,10 @@ import { AdaptableModuleBase } from './AdaptableModuleBase';
2
2
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
3
3
  import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
4
4
  import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
5
- import * as FormatColumnRedux from '../Redux/ActionsReducers/FormatColumnRedux';
6
5
  import { FormatColumn } from '../PredefinedConfig/FormatColumnState';
7
- import { AdaptableObjectView, IModule } from './Interface/IModule';
6
+ import { AdaptableModuleView, AdaptableObjectView, IModule } from './Interface/IModule';
8
7
  import { AdaptableApi } from '../Api/AdaptableApi';
9
8
  import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
10
- import { FormatColumnWizard } from '../View/FormatColumn/Wizard/FormatColumnWizard';
11
9
  export declare class FormatColumnModule extends AdaptableModuleBase implements IModule {
12
10
  constructor(api: AdaptableApi);
13
11
  getModuleAdaptableObjects(config?: {
@@ -21,11 +19,6 @@ export declare class FormatColumnModule extends AdaptableModuleBase implements I
21
19
  getTeamSharingAction(): TeamSharingImportInfo<FormatColumn>;
22
20
  toView(formatColumn: FormatColumn): AdaptableObjectView;
23
21
  toViewAll(): AdaptableObjectView[];
24
- getViewProperties(): {
25
- getDeleteAction: (formatColumn: FormatColumn) => FormatColumnRedux.FormatColumnDeleteAction;
26
- getSuspendAction: (formatColumn: FormatColumn) => FormatColumnRedux.FormatColumnSuspendAction;
27
- getUnSuspendAction: (formatColumn: FormatColumn) => FormatColumnRedux.FormatColumnSuspendAction;
28
- getEditWizard(): typeof FormatColumnWizard;
29
- };
22
+ getViewProperties(): AdaptableModuleView;
30
23
  canBeAssociatedWithLayouts(): boolean;
31
24
  }
@@ -13,6 +13,8 @@ const FormatColumnFormatWizardSection_1 = require("../View/FormatColumn/Wizard/F
13
13
  const getFormatColumnSettingsViewItems_1 = require("./Utilities/FormatColumn/getFormatColumnSettingsViewItems");
14
14
  const getFormatColumnStyleViewItems_1 = require("./Utilities/FormatColumn/getFormatColumnStyleViewItems");
15
15
  const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
16
+ const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
17
+ const MoveFormatColumn_1 = require("../View/FormatColumn/MoveFormatColumn");
16
18
  class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
17
19
  constructor(api) {
18
20
  super(ModuleConstants.FormatColumnModuleId, ModuleConstants.FormatColumnFriendlyName, 'format-column', 'FormatColumnPopup', 'Create a column style, display format or cell alignment', api);
@@ -241,6 +243,7 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
241
243
  abObject: formatColumn,
242
244
  items: [
243
245
  (0, getScopeViewItems_1.getScopeViewItems)(formatColumn.Scope, this.api),
246
+ formatColumn.Rule && (0, getRuleViewItems_1.getRuleViewItems)(formatColumn.Rule, this.api),
244
247
  {
245
248
  name: 'Style',
246
249
  view: () => (0, getFormatColumnStyleViewItems_1.getFormatColumnStyleViewItems)(formatColumn, this.api),
@@ -251,7 +254,7 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
251
254
  },
252
255
  (0, getFormatColumnSettingsViewItems_1.getFormatColumnSettingsViewItems)(formatColumn),
253
256
  (0, getObjectTagsViewItems_1.getObjectTagsViewItems)(formatColumn, this.api),
254
- ],
257
+ ].filter(Boolean),
255
258
  };
256
259
  }
257
260
  toViewAll() {
@@ -261,6 +264,7 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
261
264
  }
262
265
  getViewProperties() {
263
266
  return {
267
+ actions: [MoveFormatColumn_1.MoveFormatColumn],
264
268
  getDeleteAction: FormatColumnRedux.FormatColumnDelete,
265
269
  getSuspendAction: FormatColumnRedux.FormatColumnSuspend,
266
270
  getUnSuspendAction: FormatColumnRedux.FormatColumnUnSuspend,
@@ -34,17 +34,17 @@ export interface AdaptableObjectItemView {
34
34
  /**
35
35
  * Custom name for the property name
36
36
  */
37
- label?: string | React.FunctionComponent<{
37
+ label?: string | React.FunctionComponent<React.PropsWithChildren<{
38
38
  data: AdaptableObject | SuspendableObject;
39
- }>;
39
+ }>>;
40
40
  /**
41
41
  * How the item is rendered.
42
42
  * Defaults to tags.
43
43
  * Important to be a component so react can detect if it is the same component.
44
44
  */
45
- view?: React.FunctionComponent<{
45
+ view?: React.FunctionComponent<React.PropsWithChildren<{
46
46
  data: AdaptableObject | SuspendableObject;
47
- }>;
47
+ }>>;
48
48
  /**
49
49
  * Values used for the component.
50
50
  * Could be later extended to include an 'onChange' prop.
@@ -59,7 +59,7 @@ export interface AdaptableObjectView {
59
59
  /**
60
60
  * Used to render expanded content
61
61
  */
62
- expand?: React.FunctionComponent;
62
+ expand?: React.FunctionComponent<React.PropsWithChildren<unknown>>;
63
63
  /**
64
64
  * Reference to the underling object.
65
65
  */
@@ -77,10 +77,10 @@ export interface AdaptableObjectCompactView {
77
77
  item: AdaptableObjectItemView;
78
78
  abObject: AdaptableObject;
79
79
  }
80
- export declare type AdaptableModuleViewAction = React.FunctionComponent<{
80
+ export declare type AdaptableModuleViewAction = React.FunctionComponent<React.PropsWithChildren<{
81
81
  data: AdaptableObject;
82
82
  accessLevel: AccessLevel;
83
- }>;
83
+ }>>;
84
84
  export interface AdaptableModuleView {
85
85
  /**
86
86
  * List of actions.
@@ -98,9 +98,9 @@ export interface AdaptableModuleView {
98
98
  getSuspendAllAction?: () => Redux.Action;
99
99
  getUnSuspendAllAction?: () => Redux.Action;
100
100
  getDeleteAllAction?: () => Redux.Action;
101
- emptyView?: React.FunctionComponent<{
101
+ emptyView?: React.FunctionComponent<React.PropsWithChildren<{
102
102
  module: IModule;
103
- }> | string;
103
+ }>> | string;
104
104
  newTooltipText?: string;
105
105
  /**
106
106
  * Specifieds the types of objects the module manages.
@@ -111,7 +111,7 @@ export interface AdaptableModuleView {
111
111
  label?: string;
112
112
  accessLevel?: AccessLevel;
113
113
  }[];
114
- getEditWizard?(abObject?: AdaptableObject): React.FunctionComponent<AdaptableOnePageWizardProps<AdaptableObject>>;
114
+ getEditWizard?(abObject?: AdaptableObject): React.FunctionComponent<React.PropsWithChildren<AdaptableOnePageWizardProps<AdaptableObject>>>;
115
115
  /**
116
116
  * Specify status panel props.
117
117
  * Can be extended to include custom rendereres.
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { AdaptableApi, AlertDefinition } from '../../../types';
3
3
  export declare const getAlertBehaviourViewItems: (api: AdaptableApi) => {
4
4
  name: string;
5
- view: React.FunctionComponent<{
5
+ view: React.FunctionComponent<React.PropsWithChildren<{
6
6
  data: AlertDefinition;
7
- }>;
7
+ }>>;
8
8
  };
@@ -64,11 +64,11 @@ exports.DefaultAdaptableOptions = {
64
64
  customPredicateDefs: [],
65
65
  displayColumnFriendlyNamesForExpressions: true,
66
66
  expressionOptions: {
67
- defaultBooleanFunctions: booleanExpressionFunctions_1.booleanExpressionFunctions,
68
- defaultScalarFunctions: scalarExpressionFunctions_1.scalarExpressionFunctions,
69
- defaultObservableFunctions: observableExpressionFunctions_1.observableExpressionFunctions,
70
- defaultAggregatedBooleanFunctions: aggregatedBooleanExpressionFunctions_1.aggregatedBooleanExpressionFunctions,
71
- defaultAggregatedScalarFunctions: aggregatedScalarExpressionFunctions_1.aggregatedScalarExpressionFunctions,
67
+ defaultBooleanFunctions: booleanExpressionFunctions_1.booleanExpressionFunctionsList,
68
+ defaultScalarFunctions: scalarExpressionFunctions_1.scalarExpressionFunctionsList,
69
+ defaultObservableFunctions: observableExpressionFunctions_1.observableExpressionFunctionsList,
70
+ defaultAggregatedBooleanFunctions: aggregatedBooleanExpressionFunctions_1.aggregatedBooleanExpressionFunctionsList,
71
+ defaultAggregatedScalarFunctions: aggregatedScalarExpressionFunctions_1.aggregatedScalarExpressionFunctionsList,
72
72
  moduleExpressionFunctions: undefined,
73
73
  queryableColumns: undefined,
74
74
  performExpressionValidation: true,