@adaptabletools/adaptable 16.0.0-canary.1 → 16.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 (169) hide show
  1. package/base.css +31 -31
  2. package/base.css.map +1 -1
  3. package/bundle.cjs.js +155 -155
  4. package/index.css +39 -39
  5. package/index.css.map +1 -1
  6. package/package.json +1 -1
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/IAdaptable.d.ts +12 -1
  10. package/src/AdaptableOptions/ActionRowOptions.d.ts +8 -5
  11. package/src/AdaptableOptions/AdaptableOptions.d.ts +7 -2
  12. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +6 -2
  13. package/src/AdaptableOptions/FilterOptions.d.ts +1 -0
  14. package/src/AdaptableOptions/FormatColumnOptions.d.ts +51 -0
  15. package/src/AdaptableOptions/GroupingOptions.d.ts +0 -13
  16. package/src/AdaptableOptions/{SearchOptions.d.ts → QuickSearchOptions.d.ts} +3 -3
  17. package/src/AdaptableOptions/QuickSearchOptions.js +2 -0
  18. package/src/AdaptableOptions/TeamSharingOptions.d.ts +5 -0
  19. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +8 -41
  20. package/src/Api/ColumnApi.d.ts +18 -7
  21. package/src/Api/DataChangeHistoryApi.d.ts +6 -0
  22. package/src/Api/EventApi.d.ts +19 -6
  23. package/src/Api/Events/ChexboxColumnClicked.d.ts +1 -0
  24. package/src/Api/Events/ScheduleTriggered.d.ts +11 -0
  25. package/src/Api/Events/ScheduleTriggered.js +2 -0
  26. package/src/Api/Implementation/ActionRowApiImpl.js +7 -5
  27. package/src/Api/Implementation/ApiBase.d.ts +3 -2
  28. package/src/Api/Implementation/ApiBase.js +5 -2
  29. package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -0
  30. package/src/Api/Implementation/ChartingApiImpl.js +4 -0
  31. package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -1
  32. package/src/Api/Implementation/ColumnApiImpl.js +22 -3
  33. package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
  34. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +3 -0
  35. package/src/Api/Implementation/OptionsApiImpl.d.ts +3 -2
  36. package/src/Api/Implementation/OptionsApiImpl.js +5 -2
  37. package/src/Api/Implementation/PredicateApiImpl.d.ts +5 -5
  38. package/src/Api/Implementation/PredicateApiImpl.js +8 -8
  39. package/src/Api/Implementation/ScheduleApiImpl.d.ts +4 -0
  40. package/src/Api/Implementation/ScheduleApiImpl.js +5 -0
  41. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +0 -3
  42. package/src/Api/Implementation/StyledColumnApiImpl.js +0 -26
  43. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -4
  44. package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -0
  45. package/src/Api/Internal/AdaptableInternalApi.js +2 -2
  46. package/src/Api/Internal/AlertInternalApi.js +7 -2
  47. package/src/Api/Internal/FilterInternalApi.js +8 -4
  48. package/src/Api/Internal/FormatColumnInternalApi.js +12 -14
  49. package/src/Api/Internal/ScheduleInternalApi.d.ts +8 -0
  50. package/src/Api/Internal/ScheduleInternalApi.js +20 -0
  51. package/src/Api/Internal/StyledColumnInternalApi.d.ts +5 -2
  52. package/src/Api/Internal/StyledColumnInternalApi.js +29 -2
  53. package/src/Api/Internal/UserInterfaceInternalApi.d.ts +5 -0
  54. package/src/Api/Internal/UserInterfaceInternalApi.js +18 -0
  55. package/src/Api/OptionsApi.d.ts +7 -3
  56. package/src/Api/PredicateApi.d.ts +5 -5
  57. package/src/Api/StyledColumnApi.d.ts +0 -14
  58. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
  59. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +7 -7
  60. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +8 -15
  61. package/src/PredefinedConfig/Common/AdaptablePredicate.js +65 -41
  62. package/src/PredefinedConfig/Common/Types.d.ts +1 -1
  63. package/src/PredefinedConfig/StyledColumnState.d.ts +3 -2
  64. package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
  65. package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
  66. package/src/Redux/ActionsReducers/SystemRedux.js +17 -3
  67. package/src/Redux/Store/AdaptableStore.js +2 -3
  68. package/src/Strategy/AdaptableModuleBase.d.ts +6 -6
  69. package/src/Strategy/FlashingCellModule.js +6 -2
  70. package/src/Strategy/Interface/IModule.d.ts +2 -2
  71. package/src/Strategy/ScheduleModule.js +3 -2
  72. package/src/Strategy/StyledColumnModule.js +24 -15
  73. package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
  74. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +7 -3
  75. package/src/Utilities/Helpers/AdaptableHelper.js +1 -1
  76. package/src/Utilities/MenuItem.d.ts +4 -4
  77. package/src/Utilities/Services/MetamodelService.js +5 -1
  78. package/src/Utilities/Services/ModuleService.js +1 -1
  79. package/src/Utilities/Services/QueryLanguageService.js +1 -1
  80. package/src/Utilities/Services/RowEditService.js +1 -1
  81. package/src/Utilities/Services/TeamSharingService.d.ts +2 -0
  82. package/src/Utilities/Services/TeamSharingService.js +60 -3
  83. package/src/Utilities/Services/ValidationService.js +6 -2
  84. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +6 -0
  85. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +2 -0
  86. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.d.ts +1 -1
  87. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +1 -1
  88. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +6 -6
  89. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +32 -23
  90. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +3 -3
  91. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +5 -5
  92. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +1 -1
  93. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +2 -2
  94. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +3 -3
  95. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +11 -11
  96. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +3 -3
  97. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +11 -21
  98. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.d.ts +3 -3
  99. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +6 -7
  100. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.d.ts +3 -3
  101. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +3 -3
  102. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +4 -1
  103. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +3 -4
  104. package/src/View/AdaptableWizardView/Wizard.d.ts +4 -1
  105. package/src/View/AdaptableWizardView/Wizard.js +11 -10
  106. package/src/View/Charting/useChartingElements.js +1 -1
  107. package/src/View/Components/AdaptableButton/index.d.ts +3 -0
  108. package/src/View/Components/AdaptableButton/index.js +18 -0
  109. package/src/View/Components/AdaptableIconComponent/index.d.ts +7 -0
  110. package/src/View/Components/AdaptableIconComponent/index.js +16 -0
  111. package/src/View/Components/AdaptableIconComponent/useCustomIcon.d.ts +2 -0
  112. package/src/View/Components/AdaptableIconComponent/useCustomIcon.js +12 -0
  113. package/src/{components → View/Components}/Badge/index.d.ts +1 -1
  114. package/src/{components → View/Components}/Badge/index.js +1 -1
  115. package/src/View/Components/FilterForm/FilterForm.js +1 -1
  116. package/src/View/Components/FilterForm/ListBoxMenu.js +2 -2
  117. package/src/View/Components/FilterForm/QuickFilterForm.js +3 -2
  118. package/src/View/Components/Panels/PanelWithButton.d.ts +2 -2
  119. package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
  120. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
  121. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +2 -3
  122. package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
  123. package/src/View/Components/PredicateEditor/PredicateEditor.js +4 -4
  124. package/src/View/Dashboard/CustomToolbarWrapper.js +2 -2
  125. package/src/View/Dashboard/Dashboard.js +4 -4
  126. package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -0
  127. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +13 -7
  128. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +7 -1
  129. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +1 -1
  130. package/src/View/DataChangeHistory/buildActionColumnButton.js +9 -2
  131. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
  132. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
  133. package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
  134. package/src/View/QuickSearch/QuickSearchStatusBarContent.js +1 -1
  135. package/src/View/QuickSearch/QuickSearchViewPanel.js +1 -1
  136. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +2 -2
  137. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
  138. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -5
  139. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +2 -9
  140. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +0 -1
  141. package/src/View/UIHelper.d.ts +2 -2
  142. package/src/agGrid/ActionColumnRenderer.d.ts +0 -2
  143. package/src/agGrid/ActionColumnRenderer.js +20 -5
  144. package/src/agGrid/Adaptable.d.ts +5 -2
  145. package/src/agGrid/Adaptable.js +61 -25
  146. package/src/agGrid/BadgeRenderer.js +19 -20
  147. package/src/agGrid/CheckboxRenderer.js +1 -1
  148. package/src/agGrid/agGridHelper.js +4 -2
  149. package/src/agGrid/agGridMenuHelper.js +11 -4
  150. package/src/agGrid/attachAddaptableColumnTypes.d.ts +1 -0
  151. package/src/agGrid/attachAddaptableColumnTypes.js +5 -4
  152. package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
  153. package/src/components/Icon/index.d.ts +11 -0
  154. package/src/components/{AdaptableIconComponent → Icon}/index.js +10 -10
  155. package/src/components/IconSelector/IconSelector.js +3 -3
  156. package/src/components/SimpleButton/index.js +10 -10
  157. package/src/components/Toggle/Toggle.d.ts +2 -2
  158. package/src/components/Toggle/Toggle.js +2 -2
  159. package/src/components/icons/index.d.ts +4 -4
  160. package/src/components/icons/index.js +6 -6
  161. package/src/metamodel/adaptable.metamodel.d.ts +125 -57
  162. package/src/metamodel/adaptable.metamodel.js +1 -1
  163. package/src/types.d.ts +9 -6
  164. package/version.d.ts +1 -1
  165. package/version.js +1 -1
  166. package/src/View/Components/AdaptableViewIcon/index.d.ts +0 -10
  167. package/src/View/Components/AdaptableViewIcon/index.js +0 -18
  168. package/src/components/AdaptableIconComponent/index.d.ts +0 -11
  169. /package/src/AdaptableOptions/{SearchOptions.js → FormatColumnOptions.js} +0 -0
@@ -2,21 +2,22 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SystemBadgeStylePredicateIds = exports.SystemFlashingCellPredicateIds = exports.SystemFormatColumnPredicateIds = exports.SystemAlertPredicateIds = exports.SystemFilterPredicateIds = exports.SystemPredicateDefs = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
6
- const isToday_1 = tslib_1.__importDefault(require("date-fns/isToday"));
7
- const isYesterday_1 = tslib_1.__importDefault(require("date-fns/isYesterday"));
8
- const isTomorrow_1 = tslib_1.__importDefault(require("date-fns/isTomorrow"));
9
- const isThisWeek_1 = tslib_1.__importDefault(require("date-fns/isThisWeek"));
10
- const isThisMonth_1 = tslib_1.__importDefault(require("date-fns/isThisMonth"));
11
- const isThisQuarter_1 = tslib_1.__importDefault(require("date-fns/isThisQuarter"));
12
- const isThisYear_1 = tslib_1.__importDefault(require("date-fns/isThisYear"));
13
- const isPast_1 = tslib_1.__importDefault(require("date-fns/isPast"));
14
- const isFuture_1 = tslib_1.__importDefault(require("date-fns/isFuture"));
15
5
  const isAfter_1 = tslib_1.__importDefault(require("date-fns/isAfter"));
16
6
  const isBefore_1 = tslib_1.__importDefault(require("date-fns/isBefore"));
7
+ const isEqual_1 = tslib_1.__importDefault(require("date-fns/isEqual"));
8
+ const isFuture_1 = tslib_1.__importDefault(require("date-fns/isFuture"));
9
+ const isPast_1 = tslib_1.__importDefault(require("date-fns/isPast"));
17
10
  const isSameDay_1 = tslib_1.__importDefault(require("date-fns/isSameDay"));
11
+ const isThisMonth_1 = tslib_1.__importDefault(require("date-fns/isThisMonth"));
12
+ const isThisQuarter_1 = tslib_1.__importDefault(require("date-fns/isThisQuarter"));
13
+ const isThisWeek_1 = tslib_1.__importDefault(require("date-fns/isThisWeek"));
14
+ const isThisYear_1 = tslib_1.__importDefault(require("date-fns/isThisYear"));
15
+ const isToday_1 = tslib_1.__importDefault(require("date-fns/isToday"));
16
+ const isTomorrow_1 = tslib_1.__importDefault(require("date-fns/isTomorrow"));
17
+ const isYesterday_1 = tslib_1.__importDefault(require("date-fns/isYesterday"));
18
18
  const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
19
19
  const DateHelper_1 = require("../../Utilities/Helpers/DateHelper");
20
+ const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
20
21
  /**
21
22
  * Array of Predicate Defs which are shipped by AdapTable
22
23
  */
@@ -27,20 +28,31 @@ exports.SystemPredicateDefs = [
27
28
  icon: { text: 'IN' },
28
29
  columnScope: { DataTypes: ['String', 'Number', 'Date'] },
29
30
  moduleScope: ['filter', 'formatColumn', 'alert', 'badgeStyle'],
30
- handler: ({ inputs, column, value }) => {
31
+ handler: ({ inputs, column, value, adaptableApi }) => {
31
32
  if (inputs.length === 0) {
32
33
  return true;
33
34
  }
34
35
  if (column.dataType === 'Date') {
35
36
  return inputs.some((input) => {
36
- return (0, isSameDay_1.default)(input, value);
37
+ if (adaptableApi.optionsApi.getFilterOptions().filterUsingTime) {
38
+ return (0, isEqual_1.default)(input, value);
39
+ }
40
+ else {
41
+ return (0, isSameDay_1.default)(input, value);
42
+ }
37
43
  });
38
44
  }
39
45
  if (column.dataType === 'Number') {
40
46
  return inputs.includes(value);
41
47
  }
42
48
  if (column.dataType === 'String') {
43
- return inputs.includes(value);
49
+ return adaptableApi.internalApi.isTextComparisonCaseSensitive()
50
+ ? inputs
51
+ .map((i) => {
52
+ return i === null || i === void 0 ? void 0 : i.toLocaleLowerCase();
53
+ })
54
+ .includes(value === null || value === void 0 ? void 0 : value.toLocaleLowerCase())
55
+ : inputs.includes(value);
44
56
  }
45
57
  return true;
46
58
  },
@@ -53,21 +65,34 @@ exports.SystemPredicateDefs = [
53
65
  icon: { text: '!IN' },
54
66
  columnScope: { DataTypes: ['String', 'Number', 'Date'] },
55
67
  moduleScope: ['filter', 'formatColumn', 'alert', 'badgeStyle'],
56
- handler: ({ inputs, column, value }) => {
68
+ handler: ({ inputs, column, value, adaptableApi }) => {
57
69
  // basically negation of IN
58
70
  if (inputs.length === 0) {
59
71
  return true;
60
72
  }
61
73
  if (column.dataType === 'Date') {
62
- return inputs.every((input) => {
63
- return !(0, isSameDay_1.default)(input, value);
64
- });
74
+ if (adaptableApi.optionsApi.getFilterOptions().filterUsingTime) {
75
+ return inputs.every((input) => {
76
+ return !(0, isEqual_1.default)(input, value);
77
+ });
78
+ }
79
+ else {
80
+ return inputs.every((input) => {
81
+ return !(0, isSameDay_1.default)(input, value);
82
+ });
83
+ }
65
84
  }
66
85
  if (column.dataType === 'Number') {
67
86
  return !inputs.includes(value);
68
87
  }
69
88
  if (column.dataType === 'String') {
70
- return !inputs.includes(value);
89
+ return adaptableApi.internalApi.isTextComparisonCaseSensitive()
90
+ ? !inputs
91
+ .map((i) => {
92
+ return i === null || i === void 0 ? void 0 : i.toLocaleLowerCase();
93
+ })
94
+ .includes(value === null || value === void 0 ? void 0 : value.toLocaleLowerCase())
95
+ : !inputs.includes(value);
71
96
  }
72
97
  return true;
73
98
  },
@@ -226,11 +251,11 @@ exports.SystemPredicateDefs = [
226
251
  columnScope: { DataTypes: ['String'] },
227
252
  moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
228
253
  inputs: [{ type: 'text' }],
229
- handler: ({ value, inputs, api }) => {
254
+ handler: ({ value, inputs, adaptableApi }) => {
230
255
  if (!value) {
231
256
  return false;
232
257
  }
233
- const ignoreCase = !api.internalApi.isTextComparisonCaseSensitive();
258
+ const ignoreCase = !adaptableApi.internalApi.isTextComparisonCaseSensitive();
234
259
  const v = ignoreCase ? String(value).toLocaleLowerCase() : String(value);
235
260
  const i = ignoreCase ? String(inputs[0]).toLocaleLowerCase() : String(inputs[0]);
236
261
  return v == i;
@@ -245,11 +270,11 @@ exports.SystemPredicateDefs = [
245
270
  columnScope: { DataTypes: ['String'] },
246
271
  moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
247
272
  inputs: [{ type: 'text' }],
248
- handler: ({ value, inputs, api }) => {
273
+ handler: ({ value, inputs, adaptableApi }) => {
249
274
  if (!value) {
250
275
  return true;
251
276
  }
252
- const ignoreCase = !api.internalApi.isTextComparisonCaseSensitive();
277
+ const ignoreCase = !adaptableApi.internalApi.isTextComparisonCaseSensitive();
253
278
  const v = ignoreCase ? String(value).toLocaleLowerCase() : String(value);
254
279
  const i = ignoreCase ? String(inputs[0]).toLocaleLowerCase() : String(inputs[0]);
255
280
  return v != i;
@@ -264,11 +289,11 @@ exports.SystemPredicateDefs = [
264
289
  columnScope: { DataTypes: ['String'] },
265
290
  moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
266
291
  inputs: [{ type: 'text' }],
267
- handler: ({ value, inputs, api }) => {
292
+ handler: ({ value, inputs, adaptableApi }) => {
268
293
  if (!value) {
269
294
  return false;
270
295
  }
271
- const ignoreCase = !api.internalApi.isTextComparisonCaseSensitive();
296
+ const ignoreCase = !adaptableApi.internalApi.isTextComparisonCaseSensitive();
272
297
  const v = ignoreCase ? String(value).toLocaleLowerCase() : String(value);
273
298
  const i = ignoreCase ? String(inputs[0]).toLocaleLowerCase() : String(inputs[0]);
274
299
  return v.indexOf(i) !== -1;
@@ -282,11 +307,11 @@ exports.SystemPredicateDefs = [
282
307
  columnScope: { DataTypes: ['String'] },
283
308
  moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
284
309
  inputs: [{ type: 'text' }],
285
- handler: ({ value, inputs, api }) => {
310
+ handler: ({ value, inputs, adaptableApi }) => {
286
311
  if (!value) {
287
312
  return true;
288
313
  }
289
- const ignoreCase = !api.internalApi.isTextComparisonCaseSensitive();
314
+ const ignoreCase = !adaptableApi.internalApi.isTextComparisonCaseSensitive();
290
315
  const v = ignoreCase ? String(value).toLocaleLowerCase() : String(value);
291
316
  const i = ignoreCase ? String(inputs[0]).toLocaleLowerCase() : String(inputs[0]);
292
317
  return v.indexOf(i) === -1;
@@ -300,11 +325,11 @@ exports.SystemPredicateDefs = [
300
325
  columnScope: { DataTypes: ['String'] },
301
326
  moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
302
327
  inputs: [{ type: 'text' }],
303
- handler: ({ value, inputs, api }) => {
328
+ handler: ({ value, inputs, adaptableApi }) => {
304
329
  if (!value) {
305
330
  return false;
306
331
  }
307
- const ignoreCase = !api.internalApi.isTextComparisonCaseSensitive();
332
+ const ignoreCase = !adaptableApi.internalApi.isTextComparisonCaseSensitive();
308
333
  const v = ignoreCase ? String(value).toLocaleLowerCase() : String(value);
309
334
  const i = ignoreCase ? String(inputs[0]).toLocaleLowerCase() : String(inputs[0]);
310
335
  return v.startsWith(i);
@@ -318,11 +343,11 @@ exports.SystemPredicateDefs = [
318
343
  columnScope: { DataTypes: ['String'] },
319
344
  moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
320
345
  inputs: [{ type: 'text' }],
321
- handler: ({ value, inputs, api }) => {
346
+ handler: ({ value, inputs, adaptableApi }) => {
322
347
  if (!value) {
323
348
  return false;
324
349
  }
325
- const ignoreCase = !api.internalApi.isTextComparisonCaseSensitive();
350
+ const ignoreCase = !adaptableApi.internalApi.isTextComparisonCaseSensitive();
326
351
  const v = ignoreCase ? String(value).toLocaleLowerCase() : String(value);
327
352
  const i = ignoreCase ? String(inputs[0]).toLocaleLowerCase() : String(inputs[0]);
328
353
  return v.endsWith(i);
@@ -458,7 +483,7 @@ exports.SystemPredicateDefs = [
458
483
  icon: { name: 'calendar' },
459
484
  columnScope: { DataTypes: ['Date'] },
460
485
  moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn'],
461
- handler: ({ value, api }) => (0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), api.calendarApi.getNextWorkingDay()),
486
+ handler: ({ value, adaptableApi }) => (0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), adaptableApi.calendarApi.getNextWorkingDay()),
462
487
  },
463
488
  {
464
489
  id: 'LastWorkDay',
@@ -466,7 +491,7 @@ exports.SystemPredicateDefs = [
466
491
  icon: { name: 'calendar' },
467
492
  columnScope: { DataTypes: ['Date'] },
468
493
  moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn'],
469
- handler: ({ value, api }) => (0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), api.calendarApi.getPreviousWorkingDay()),
494
+ handler: ({ value, adaptableApi }) => (0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), adaptableApi.calendarApi.getPreviousWorkingDay()),
470
495
  },
471
496
  {
472
497
  id: 'WorkDay',
@@ -474,7 +499,7 @@ exports.SystemPredicateDefs = [
474
499
  icon: { name: 'calendar' },
475
500
  columnScope: { DataTypes: ['Date'] },
476
501
  moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn'],
477
- handler: ({ value, api }) => api.calendarApi.isWorkingDay(value),
502
+ handler: ({ value, adaptableApi }) => adaptableApi.calendarApi.isWorkingDay(value),
478
503
  },
479
504
  {
480
505
  id: 'Holiday',
@@ -482,7 +507,7 @@ exports.SystemPredicateDefs = [
482
507
  icon: { name: 'calendar' },
483
508
  columnScope: { DataTypes: ['Date'] },
484
509
  moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn'],
485
- handler: ({ value, api }) => api.calendarApi.isHoliday(value),
510
+ handler: ({ value, adaptableApi }) => adaptableApi.calendarApi.isHoliday(value),
486
511
  },
487
512
  {
488
513
  id: 'InRange',
@@ -517,7 +542,6 @@ exports.SystemPredicateDefs = [
517
542
  columnScope: { DataTypes: ['Boolean'] },
518
543
  moduleScope: ['filter'],
519
544
  inputs: [{ type: 'boolean' }],
520
- onlyQuickFilter: true,
521
545
  // working with string aliases instead of booleans because the FilterAPI cannot handle falsy filter values (it ignores them)
522
546
  handler: ({ value, inputs }) => {
523
547
  if (inputs[0] == 'all') {
@@ -554,9 +578,9 @@ exports.SystemPredicateDefs = [
554
578
  label: 'Primary Key Duplicate',
555
579
  columnScope: { All: true },
556
580
  moduleScope: ['alert'],
557
- handler: ({ value, column, api, node }) => {
581
+ handler: ({ value, column, adaptableApi, node }) => {
558
582
  return (column === null || column === void 0 ? void 0 : column.isPrimaryKey)
559
- ? api.gridApi.internalApi
583
+ ? adaptableApi.gridApi.internalApi
560
584
  .getDistinctRawValuesForColumn(column.columnId, node)
561
585
  .includes(value)
562
586
  : false;
@@ -567,9 +591,9 @@ exports.SystemPredicateDefs = [
567
591
  label: 'Existing Values Only',
568
592
  columnScope: { All: true },
569
593
  moduleScope: ['alert'],
570
- handler: ({ value, api, column, node }) => {
594
+ handler: ({ value, adaptableApi, column, node }) => {
571
595
  const distinctValues = column
572
- ? api.gridApi.internalApi.getDistinctRawValuesForColumn(column.columnId, node)
596
+ ? adaptableApi.gridApi.internalApi.getDistinctRawValuesForColumn(column.columnId, node)
573
597
  : [];
574
598
  return !distinctValues.includes(value);
575
599
  },
@@ -579,9 +603,9 @@ exports.SystemPredicateDefs = [
579
603
  label: 'No Duplicate Values',
580
604
  columnScope: { All: true },
581
605
  moduleScope: ['alert'],
582
- handler: ({ value, api, column, node }) => {
606
+ handler: ({ value, adaptableApi, column, node }) => {
583
607
  const distinctValues = column
584
- ? api.gridApi.internalApi.getDistinctRawValuesForColumn(column.columnId, node)
608
+ ? adaptableApi.gridApi.internalApi.getDistinctRawValuesForColumn(column.columnId, node)
585
609
  : [];
586
610
  return distinctValues.includes(value);
587
611
  },
@@ -51,4 +51,4 @@ export declare type AdaptableQLModule = 'Alert' | 'CalculatedColumn' | 'Filter'
51
51
  /**
52
52
  * Column Types recognised by AdapTable; to be set in GridOptions
53
53
  */
54
- export declare type AdaptableColumnType = 'abColDefBoolean' | 'abColDefDate' | 'abColDefNumber' | 'abColDefString' | 'abColDefObject' | 'abColDefNumberArray' | 'abColDefTupleNumberArray' | 'abColDefObjectNumberArray' | 'abColDefCustom' | 'abSpecialColumn';
54
+ export declare type AdaptableColumnType = 'abColDefBoolean' | 'abColDefDate' | 'abColDefNumber' | 'abColDefString' | 'abColDefObject' | 'abColDefStringArray' | 'abColDefNumberArray' | 'abColDefTupleNumberArray' | 'abColDefObjectNumberArray' | 'abColDefCustom' | 'abSpecialColumn';
@@ -1,7 +1,7 @@
1
1
  import { ConfigState } from './ConfigState';
2
2
  import { SuspendableObject } from './Common/SuspendableObject';
3
3
  import { SparklineOptions } from '@ag-grid-community/core';
4
- import { AdaptableExternalIcon, AdaptableInternalIcon, AdaptablePredicate, AdaptableStyle } from '../types';
4
+ import { AdaptableCustomIcon, AdaptableSystemIcon, AdaptablePredicate, AdaptableStyle } from '../types';
5
5
  import { TypeHint } from './Common/Types';
6
6
  /**
7
7
  * Predefined Configuration for Styled Column Module
@@ -30,6 +30,7 @@ export interface StyledColumn extends SuspendableObject {
30
30
  PercentBarStyle?: PercentBarStyle;
31
31
  /**
32
32
  * Renders a Checkbox in a boolean column
33
+ * @deprecated - AG Grid 30 now provides identical functionality
33
34
  */
34
35
  CheckBoxStyle?: boolean;
35
36
  /**
@@ -180,7 +181,7 @@ export interface BadgeStyleDefinition {
180
181
  /**
181
182
  * Icon to display in Badge
182
183
  */
183
- Icon?: AdaptableInternalIcon | AdaptableExternalIcon;
184
+ Icon?: AdaptableSystemIcon | AdaptableCustomIcon;
184
185
  /**
185
186
  * Position of Icon in the Badge - 'Start' or 'End'
186
187
  */
@@ -73,7 +73,7 @@ export interface AdaptableSharedEntity extends AdaptableObject {
73
73
  */
74
74
  ChangedAt: number;
75
75
  /**
76
- * 'Snapshot' (for 1-time sharing) or 'Active' (for continuous sharing between local state & Team Share)
76
+ * 'Snapshot' (for 1-time sharing) or 'Active' (for continuous sharing)
77
77
  */
78
78
  Type: SharedEntityType;
79
79
  }
@@ -56,6 +56,7 @@ export declare const SYSTEM_LICENSE_SHOW_WATERMARK = "SYSTEM_LICENSE_SHOW_WATERM
56
56
  export declare const SYSTEM_LICENSE_DISABLE_PERSISTENCE = "SYSTEM_LICENSE_DISABLE_PERSISTENCE";
57
57
  export declare const SYSTEM_DATA_CHANGE_HISTORY_ADD = "SYSTEM_DATA_CHANGE_HISTORY_ADD";
58
58
  export declare const SYSTEM_DATA_CHANGE_HISTORY_UNDO = "SYSTEM_DATA_CHANGE_HISTORY_UNDO";
59
+ export declare const SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW = "SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW";
59
60
  export declare const SYSTEM_DATA_CHANGE_HISTORY_ENABLE = "SYSTEM_DATA_CHANGE_HISTORY_ENABLE";
60
61
  export declare const SYSTEM_DATA_CHANGE_HISTORY_DISABLE = "SYSTEM_DATA_CHANGE_HISTORY_DISABLE";
61
62
  export declare const SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = "SYSTEM_DATA_CHANGE_HISTORY_SUSPEND";
@@ -205,6 +206,9 @@ export interface SystemDataChangeHistoryAddAction extends Redux.Action {
205
206
  export interface SystemDataChangeHistoryUndoAction extends Redux.Action {
206
207
  changeInfo: CellDataChangedInfo;
207
208
  }
209
+ export interface SystemDataChangeHistoryClearRowAction extends Redux.Action {
210
+ changeInfo: CellDataChangedInfo;
211
+ }
208
212
  export interface SystemDataChangeHistoryEnableAction extends Redux.Action {
209
213
  }
210
214
  export interface SystemDataChangeHistoryDisableAction extends Redux.Action {
@@ -283,6 +287,7 @@ export declare const SystemLicenseShowWatermark: (text: string) => SystemLicense
283
287
  export declare const SystemLicenseDisablePersistence: () => SystemLicenseDisablePersistenceAction;
284
288
  export declare const SystemDataChangeHistoryAdd: (changeInfo: CellDataChangedInfo) => SystemDataChangeHistoryAddAction;
285
289
  export declare const SystemDataChangeHistoryUndo: (changeInfo: CellDataChangedInfo) => SystemDataChangeHistoryUndoAction;
290
+ export declare const SystemDataChangeHistoryClearRow: (changeInfo: CellDataChangedInfo) => SystemDataChangeHistoryClearRowAction;
286
291
  export declare const SystemDataChangeHistoryEnable: () => SystemDataChangeHistoryEnableAction;
287
292
  export declare const SystemDataChangeHistoryDisable: () => SystemDataChangeHistoryDisableAction;
288
293
  export declare const SystemDataChangeHistorySuspend: () => SystemDataChangeHistorySuspendAction;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = exports.SYSTEM_DISABLE_DELETE_CONFIRMATION = exports.SYSTEM_FILTER_FORM_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_SHOW = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROWS_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROWS_ADD = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_CELL_DELETE_ALL = exports.SYSTEM_FLASHING_CELL_DELETE = exports.SYSTEM_FLASHING_CELL_ADD = exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_CELL_ROW_KEY = void 0;
4
- exports.SystemQuickFilterBarShow = exports.SystemSettingsPanelSet = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_VISUAL_EXPORT_END = exports.SYSTEM_VISUAL_EXPORT_BEGIN = exports.SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX = exports.SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS = exports.SYSTEM_DATA_SET_SELECT = exports.DASHBOARD_REFRESH = void 0;
5
- exports.SystemReducer = exports.SystemPreviousGroupedColumnsSelector = exports.SystemDisableDeleteConfirmationSelector = exports.SystemVisualExportEnd = exports.SystemVisualExportBegin = exports.SystemDisableDeleteConfirmation = exports.SystemSetPreviousGroupedColumnsIndex = exports.SystemChartingCurrentChartModelsSelector = exports.SystemChartingSetCurrentChartModels = exports.SystemDataSetSelect = exports.SystemDashboardRefresh = exports.SystemLayoutShowNotAssociatedObjects = exports.SystemFilterFormHide = exports.SystemQuickFilterBarHide = void 0;
3
+ exports.SYSTEM_DISABLE_DELETE_CONFIRMATION = exports.SYSTEM_FILTER_FORM_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_SHOW = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROWS_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROWS_ADD = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_CELL_DELETE_ALL = exports.SYSTEM_FLASHING_CELL_DELETE = exports.SYSTEM_FLASHING_CELL_ADD = exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_CELL_ROW_KEY = void 0;
4
+ exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryClearRow = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_VISUAL_EXPORT_END = exports.SYSTEM_VISUAL_EXPORT_BEGIN = exports.SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX = exports.SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS = exports.SYSTEM_DATA_SET_SELECT = exports.DASHBOARD_REFRESH = exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = void 0;
5
+ exports.SystemReducer = exports.SystemPreviousGroupedColumnsSelector = exports.SystemDisableDeleteConfirmationSelector = exports.SystemVisualExportEnd = exports.SystemVisualExportBegin = exports.SystemDisableDeleteConfirmation = exports.SystemSetPreviousGroupedColumnsIndex = exports.SystemChartingCurrentChartModelsSelector = exports.SystemChartingSetCurrentChartModels = exports.SystemDataSetSelect = exports.SystemDashboardRefresh = exports.SystemLayoutShowNotAssociatedObjects = exports.SystemFilterFormHide = exports.SystemQuickFilterBarHide = exports.SystemQuickFilterBarShow = exports.SystemSettingsPanelSet = void 0;
6
6
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
7
7
  const Enums_1 = require("../../PredefinedConfig/Common/Enums");
8
8
  const Helper_1 = require("../../Utilities/Helpers/Helper");
@@ -64,6 +64,7 @@ exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = 'SYSTEM_LICENSE_DISABLE_PERSISTENCE
64
64
  // Change History
65
65
  exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = 'SYSTEM_DATA_CHANGE_HISTORY_ADD';
66
66
  exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = 'SYSTEM_DATA_CHANGE_HISTORY_UNDO';
67
+ exports.SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW = 'SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW';
67
68
  exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = 'SYSTEM_DATA_CHANGE_HISTORY_ENABLE';
68
69
  exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = 'SYSTEM_DATA_CHANGE_HISTORY_DISABLE';
69
70
  exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = 'SYSTEM_DATA_CHANGE_HISTORY_SUSPEND';
@@ -273,6 +274,11 @@ const SystemDataChangeHistoryUndo = (changeInfo) => ({
273
274
  changeInfo,
274
275
  });
275
276
  exports.SystemDataChangeHistoryUndo = SystemDataChangeHistoryUndo;
277
+ const SystemDataChangeHistoryClearRow = (changeInfo) => ({
278
+ type: exports.SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW,
279
+ changeInfo,
280
+ });
281
+ exports.SystemDataChangeHistoryClearRow = SystemDataChangeHistoryClearRow;
276
282
  const SystemDataChangeHistoryEnable = () => ({
277
283
  type: exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE,
278
284
  });
@@ -670,6 +676,14 @@ const SystemReducer = (state = initialState, action) => {
670
676
  delete updatedDataChangeHistoryLogs[uniqueKey];
671
677
  return Object.assign(Object.assign({}, state), { DataChangeHistory: Object.assign(Object.assign({}, state.DataChangeHistory), { logs: updatedDataChangeHistoryLogs }) });
672
678
  }
679
+ case exports.SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW: {
680
+ const actionTypedUndo = action;
681
+ const cellDataChangedInfo = actionTypedUndo.changeInfo;
682
+ const uniqueKey = getDataChangeHistoryKey(cellDataChangedInfo);
683
+ const updatedDataChangeHistoryLogs = Object.assign({}, state.DataChangeHistory.logs);
684
+ delete updatedDataChangeHistoryLogs[uniqueKey];
685
+ return Object.assign(Object.assign({}, state), { DataChangeHistory: Object.assign(Object.assign({}, state.DataChangeHistory), { logs: updatedDataChangeHistoryLogs }) });
686
+ }
673
687
  case exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE: {
674
688
  return Object.assign(Object.assign({}, state), { DataChangeHistory: Object.assign(Object.assign({}, state.DataChangeHistory), { currentMode: 'ACTIVE', enableTime: new Date(), suspendTime: null }) });
675
689
  }
@@ -332,7 +332,6 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
332
332
  /**
333
333
  * Use Case: Query has changed
334
334
  * Action: Filter the Grid and fire Query Run Event
335
- * Also run SearchChangedEvent (to be removed in AdapTable 13)
336
335
  */
337
336
  case QueryRedux.QUERY_RUN: {
338
337
  let ret = next(action);
@@ -702,13 +701,13 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
702
701
  /**
703
702
  * Use Case: User has run a Quick Search
704
703
  * Action1: Call Adaptable to redraw body so cells can be highlighted
705
- * Action2: Run Query using Quick Search text it set in Search Options
704
+ * Action2: Run Query using Quick Search text
706
705
  */
707
706
  case QuickSearchRedux.QUICK_SEARCH_RUN: {
708
707
  let returnAction = next(action);
709
708
  adaptable.redrawBody();
710
709
  // if set then return a query on the text
711
- if (adaptable.adaptableOptions.searchOptions.filterResultsAfterQuickSearch) {
710
+ if (adaptable.adaptableOptions.quickSearchOptions.filterResultsAfterQuickSearch) {
712
711
  const actionTyped = action;
713
712
  const searchText = actionTyped.quickSearchText;
714
713
  if (StringExtensions_1.StringExtensions.IsNotNullOrEmpty(searchText)) {
@@ -11,7 +11,7 @@ import { AdaptableApi } from '../Api/AdaptableApi';
11
11
  import { AccessLevel } from '../PredefinedConfig/Common/Entitlement';
12
12
  import { CalculatedColumn } from '../PredefinedConfig/CalculatedColumnState';
13
13
  import { FreeTextColumn } from '../PredefinedConfig/FreeTextColumnState';
14
- import { AdaptableInternalIconName } from '../PredefinedConfig/Common/AdaptableIcon';
14
+ import { AdaptableSystemIconName } from '../PredefinedConfig/Common/AdaptableIcon';
15
15
  import { AdaptableStateReloadedInfo } from '../Api/Events/AdaptableStateReloaded';
16
16
  /**
17
17
  * Base class for all strategies and does most of the work of creating menus
@@ -20,7 +20,7 @@ export declare abstract class AdaptableModuleBase implements IModule {
20
20
  protected api: AdaptableApi;
21
21
  moduleInfo: ModuleInfo;
22
22
  AccessLevel: AccessLevel;
23
- constructor(module: AdaptableModule, friendlyName: string, glyph: AdaptableInternalIconName, popup: string, description: string, api: AdaptableApi);
23
+ constructor(module: AdaptableModule, friendlyName: string, glyph: AdaptableSystemIconName, popup: string, description: string, api: AdaptableApi);
24
24
  protected getViewAccessLevel(): AccessLevel;
25
25
  protected getEditAccessLevel(): AccessLevel;
26
26
  isModuleAvailable(): boolean;
@@ -44,12 +44,12 @@ export declare abstract class AdaptableModuleBase implements IModule {
44
44
  createMainMenuItemShowPopup({ Label, ComponentName, Icon, PopupParams, }: {
45
45
  Label: string;
46
46
  ComponentName: string;
47
- Icon: AdaptableInternalIconName;
47
+ Icon: AdaptableSystemIconName;
48
48
  PopupParams?: ModuleParams;
49
49
  }): MenuItemShowPopup;
50
- createColumnMenuItemClickFunction(Label: string, Icon: AdaptableInternalIconName, ClickFunction: () => void): MenuItemDoClickFunction;
51
- createColumnMenuItemReduxAction(Label: string, Icon: AdaptableInternalIconName, Action: Action): MenuItemDoReduxAction;
52
- createColumnMenuItemShowPopup(Label: string, ComponentName: string, Icon: AdaptableInternalIconName, PopupParams?: ModuleParams): MenuItemShowPopup;
50
+ createColumnMenuItemClickFunction(Label: string, Icon: AdaptableSystemIconName, ClickFunction: () => void): MenuItemDoClickFunction;
51
+ createColumnMenuItemReduxAction(Label: string, Icon: AdaptableSystemIconName, Action: Action): MenuItemDoReduxAction;
52
+ createColumnMenuItemShowPopup(Label: string, ComponentName: string, Icon: AdaptableSystemIconName, PopupParams?: ModuleParams): MenuItemShowPopup;
53
53
  canCreateColumnMenuItem(column: AdaptableColumn, minimumAccessLevel: AccessLevel, functionType?: 'sort' | 'editable' | 'style' | 'filter' | 'quickfilter' | 'numeric'): boolean;
54
54
  getTeamSharingAction(): TeamSharingImportInfo<AdaptableObject> | undefined;
55
55
  getModuleNamedQueryReferences(): string[];
@@ -216,14 +216,18 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
216
216
  }
217
217
  isAlertPredicateTriggered(alert, dataChangedEvent, defaultNoPredicateReturn = false) {
218
218
  var _a;
219
- return this.api.predicateApi.handleColumnPredicates((_a = alert.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, {
219
+ const predicateDefHandlerContext = {
220
220
  value: dataChangedEvent.newValue,
221
221
  oldValue: dataChangedEvent.oldValue,
222
222
  // TODO send real display value
223
223
  displayValue: null,
224
224
  node: dataChangedEvent.rowNode,
225
225
  column: dataChangedEvent.column,
226
- }, defaultNoPredicateReturn);
226
+ adaptableApi: this.api,
227
+ userName: this.api.optionsApi.getUserName(),
228
+ adaptableId: this.api.optionsApi.getAdaptableId(),
229
+ };
230
+ return this.api.predicateApi.handleColumnPredicates((_a = alert.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, predicateDefHandlerContext, defaultNoPredicateReturn);
227
231
  }
228
232
  getTeamSharingAction() {
229
233
  return {
@@ -9,13 +9,13 @@ import { CalculatedColumn } from '../../PredefinedConfig/CalculatedColumnState';
9
9
  import { FreeTextColumn } from '../../PredefinedConfig/FreeTextColumnState';
10
10
  import { AdaptableOnePageWizardProps } from '../../View/Wizard/Interface/IAdaptableWizard';
11
11
  import * as Redux from 'redux';
12
- import { AdaptableInternalIconName, SuspendableObject } from '../../../types';
12
+ import { AdaptableSystemIconName, SuspendableObject } from '../../../types';
13
13
  import { StatusBarPanelProps } from '../../View/StatusBar/StatusBarPanel';
14
14
  import { StrictExtract } from '../../Utilities/Extensions/TypeExtensions';
15
15
  export interface ModuleInfo {
16
16
  ModuleName: AdaptableModule;
17
17
  FriendlyName: string;
18
- Glyph: AdaptableInternalIconName;
18
+ Glyph: AdaptableSystemIconName;
19
19
  Popup: string;
20
20
  Description: string;
21
21
  HelpPage: string;
@@ -13,13 +13,14 @@ const ScheduleRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/Sch
13
13
  const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
14
14
  const dateTimeouts = {};
15
15
  const NodeSchedule = {
16
- scheduleJob: (date, fn) => {
16
+ scheduleJob: (date, schedule, api, fn) => {
17
17
  const timestamp = +date;
18
18
  const now = Date.now();
19
19
  const timeUntilDate = timestamp - now;
20
20
  if (timeUntilDate > 0) {
21
21
  const timeoutId = +setTimeout(() => {
22
22
  fn();
23
+ api.scheduleApi.internalApi.fireScheduleTriggeredEvent(schedule);
23
24
  }, timeUntilDate);
24
25
  dateTimeouts[timestamp] = timeoutId;
25
26
  }
@@ -70,7 +71,7 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
70
71
  addSchedule(schedule, scheduleType) {
71
72
  const date = this.getDateFromSchedule(schedule.Schedule);
72
73
  if (date != null) {
73
- const alertJob = NodeSchedule.scheduleJob(date, () => {
74
+ const alertJob = NodeSchedule.scheduleJob(date, schedule, this.api, () => {
74
75
  this.api.scheduleApi.applySchedule(schedule, scheduleType);
75
76
  });
76
77
  this.scheduleJobs.push(alertJob);
@@ -24,7 +24,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
24
24
  const activeCheckboxColumnIds = this.api.columnApi
25
25
  .getColumns()
26
26
  .filter((aColumn) => {
27
- const checkboxColumn = this.api.styledColumnApi.getCheckBoxStyleStyledColumn(aColumn);
27
+ const checkboxColumn = this.api.styledColumnApi.internalApi.getCheckBoxStyleStyledColumn(aColumn);
28
28
  return checkboxColumn && !checkboxColumn.IsSuspended;
29
29
  })
30
30
  .map((aColumn) => aColumn.columnId);
@@ -77,7 +77,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
77
77
  if (column && this.isModuleEditable()) {
78
78
  let styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(column.columnId);
79
79
  // First look at Sparkline Columns - needs to be editable array type
80
- if (this.api.columnApi.hasArrayDataType(column.columnId) &&
80
+ if (this.api.columnApi.hasNumericArrayDataType(column.columnId) &&
81
81
  column.IsReadOnly !== true &&
82
82
  this.api.styledColumnApi.canDisplaySparklines()) {
83
83
  let sparklineColumnExists = column.isSparkline && Boolean(styledColumn);
@@ -171,21 +171,30 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
171
171
  break;
172
172
  }
173
173
  }
174
- // Then do Checkbox
174
+ // Then do Checkbox - now removed as AG Grid 30 offers this
175
+ /*
175
176
  if (column.dataType == 'Boolean' && !this.api.columnApi.isFreeTextColumn(column.columnId)) {
176
- const hasCheckBox = styledColumn && (styledColumn === null || styledColumn === void 0 ? void 0 : styledColumn.CheckBoxStyle);
177
- if (hasCheckBox) {
178
- returnColumnMenuItems.push(this.createColumnMenuItemClickFunction('Remove Checkbox', 'unchecked', () => {
179
- this.api.styledColumnApi.deleteStyledColumn(styledColumn);
180
- }));
181
- }
182
- else {
183
- returnColumnMenuItems.push(this.createColumnMenuItemClickFunction('Show as Checkbox', 'checked', () => {
184
- const styledColumn = ObjectFactory_1.default.CreateEmptyStyledColumn();
185
- this.api.styledColumnApi.addStyledColumn(Object.assign(Object.assign({}, styledColumn), { ColumnId: column.columnId, CheckBoxStyle: true }));
186
- }));
187
- }
177
+ const hasCheckBox: boolean = styledColumn && styledColumn?.CheckBoxStyle;
178
+ if (hasCheckBox) {
179
+ returnColumnMenuItems.push(
180
+ this.createColumnMenuItemClickFunction('Remove Checkbox', 'unchecked', () => {
181
+ this.api.styledColumnApi.deleteStyledColumn(styledColumn);
182
+ })
183
+ );
184
+ } else {
185
+ returnColumnMenuItems.push(
186
+ this.createColumnMenuItemClickFunction('Show as Checkbox', 'checked', () => {
187
+ const styledColumn = ObjectFactory.CreateEmptyStyledColumn();
188
+ this.api.styledColumnApi.addStyledColumn({
189
+ ...styledColumn,
190
+ ColumnId: column.columnId,
191
+ CheckBoxStyle: true,
192
+ });
193
+ })
194
+ );
195
+ }
188
196
  }
197
+ */
189
198
  }
190
199
  }
191
200
  return returnColumnMenuItems;
@@ -11,7 +11,7 @@ exports.AggregatedBooleanQueryDocsLink = `${exports.HOST_URL_DOCS}/guide/adaptab
11
11
  exports.AggregatedScalarQueryDocsLink = `${exports.HOST_URL_DOCS}/guide/adaptable-ql-expression-aggregation-scalar`;
12
12
  exports.CumulativeAggregatedScalarQueryDocsLink = `${exports.HOST_URL_DOCS}/guide/adaptable-ql-expression-aggregation-scalar#cumulative-aggregation`;
13
13
  exports.PredicateDocsLink = `${exports.HOST_URL_DOCS}/guide/adaptable-ql-predicate`;
14
- exports.PrimaryKeyDocsLink = `${exports.HOST_URL_DOCS}/guide/dev-guide-tutorial-primary-key`;
14
+ exports.PrimaryKeyDocsLink = `${exports.HOST_URL_DOCS}/guide/getting-started-primary-key`;
15
15
  exports.LicenseDocsLink = `${exports.HOST_URL_DOCS}/guide/licensing`;
16
16
  exports.AdaptableOptionsDocsLink = `${exports.HOST_URL_DOCS}/guide/reference-options-overview`;
17
17
  exports.AgGridModulesDocsLink = `${exports.HOST_URL_DOCS}/TODO_TODO_TODO`;