@adaptabletools/adaptable 20.0.0 → 20.0.2-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +1 -1
  2. package/agGrid.d.ts +1 -0
  3. package/agGrid.js +2 -1
  4. package/base.css +50 -33
  5. package/base.css.map +1 -1
  6. package/index.css +47 -32
  7. package/index.css.map +1 -1
  8. package/package.json +1 -1
  9. package/src/AdaptableOptions/ColumnMenuOptions.d.ts +3 -0
  10. package/src/AdaptableOptions/ContextMenuOptions.d.ts +9 -0
  11. package/src/AdaptableOptions/ExportOptions.d.ts +6 -0
  12. package/src/AdaptableOptions/FilterOptions.d.ts +5 -5
  13. package/src/AdaptableOptions/RowFormOptions.d.ts +7 -1
  14. package/src/AdaptableState/Common/AdaptableColumn.d.ts +3 -0
  15. package/src/AdaptableState/Common/AdaptableObject.d.ts +6 -0
  16. package/src/AdaptableState/Common/AggregationColumns.d.ts +6 -0
  17. package/src/AdaptableState/Common/Menu.d.ts +6 -0
  18. package/src/AdaptableState/ExportState.d.ts +9 -0
  19. package/src/AdaptableState/FlashingCellState.d.ts +5 -2
  20. package/src/AdaptableState/InitialState.d.ts +4 -3
  21. package/src/AdaptableState/LayoutState.d.ts +2 -2
  22. package/src/AdaptableState/ThemeState.d.ts +14 -2
  23. package/src/Api/ColumnFilterApi.d.ts +1 -1
  24. package/src/Api/StateApi.d.ts +2 -2
  25. package/src/Redux/ActionsReducers/PluginsRedux.d.ts +0 -93
  26. package/src/Redux/ActionsReducers/PluginsRedux.js +0 -93
  27. package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +0 -42
  28. package/src/Redux/ActionsReducers/ScheduleRedux.js +0 -42
  29. package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -1
  30. package/src/Utilities/Services/ThemeService.js +3 -3
  31. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +1 -2
  32. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +11 -9
  33. package/src/View/ColumnInfo/ColumnInfo.js +12 -10
  34. package/src/View/Comments/CommentsPopup.js +11 -9
  35. package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +7 -0
  36. package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -1
  37. package/src/View/Layout/PivotDetailsPopoup.js +6 -5
  38. package/src/View/Layout/Wizard/sections/ColumnsSection.js +6 -5
  39. package/src/View/Note/NotePopup.js +12 -10
  40. package/src/View/StateManagement/StateManagementViewPanel.d.ts +2 -2
  41. package/src/View/Theme/ThemeEditor.js +9 -7
  42. package/src/View/Theme/VariantSelector.d.ts +1 -0
  43. package/src/View/Theme/VariantSelector.js +6 -3
  44. package/src/agGrid/AdaptableAgGrid.js +6 -2
  45. package/src/agGrid/AgGridAdapter.js +5 -0
  46. package/src/agGrid/AgGridColumnAdapter.js +0 -7
  47. package/src/agGrid/AgGridThemeAdapter.js +2 -2
  48. package/src/agGrid/FloatingFilterWrapper.js +1 -0
  49. package/src/agGrid/index.d.ts +2 -0
  50. package/src/agGrid/index.js +2 -1
  51. package/src/components/ExpressionEditor/BaseEditorInput.js +1 -1
  52. package/src/components/Select/Select.js +2 -3
  53. package/src/env.js +2 -2
  54. package/src/layout-manager/src/LayoutManagerModel.d.ts +1 -1
  55. package/src/metamodel/adaptable.metamodel.d.ts +104 -2
  56. package/src/metamodel/adaptable.metamodel.js +1 -1
  57. package/src/migration/AdaptableUpgradeHelper.d.ts +3 -3
  58. package/src/types.d.ts +1 -0
  59. package/tsconfig.esm.tsbuildinfo +1 -1
@@ -31,7 +31,9 @@ export interface AdaptableTheme extends AdaptableObject {
31
31
  */
32
32
  Description: string;
33
33
  /**
34
- * Ag Grid theme to apply when loading theme
34
+ * Ag Grid theme to apply when loading theme; relevant only when using the legacy AG Grid themes
35
+ *
36
+ * @deprecated no longer used with the new AG Grid Theming API
35
37
  */
36
38
  AgGridClassName?: string;
37
39
  /**
@@ -39,7 +41,17 @@ export interface AdaptableTheme extends AdaptableObject {
39
41
  */
40
42
  CSSVariables?: Record<string, string>;
41
43
  /**
42
- * Whether theme is based on system Light or Dark Themes
44
+ * Base theme variant to derive custom theme from.
45
+ * Use `light` to inherit from Adaptable Light Theme or `dark` for Adaptable Dark Theme.
46
+ * When creating custom themes, specifying a variant ensures proper inheritance of base theme styles.
43
47
  */
44
48
  Variant?: 'light' | 'dark';
49
+ /**
50
+ * AG Grid theme mode to apply when this theme is selected.
51
+ * Valid values are `light`, `dark`, `dark-blue` or any custom theme mode defined in AG Grid.
52
+ * When set, adds a data-ag-theme-mode attribute to the document body.
53
+ *
54
+ * @see https://www.ag-grid.com/javascript-data-grid/theming-colors/#theme-modes
55
+ */
56
+ AgThemeMode?: TypeHint<string, 'light' | 'dark' | 'dark-blue'>;
45
57
  }
@@ -51,7 +51,7 @@ export interface ColumnFilterApi {
51
51
  */
52
52
  getColumnFiltersForLayout(layoutName: string): ColumnFilter[];
53
53
  /**
54
- * Sets Column Filters in the current Layout - will replace filters for existing column and leave other column filters in place
54
+ * Sets Column Filters in current Layout; replaces filters for existing column, leaving other column filters in place
55
55
  * @param columnFilters Column Filters to set
56
56
  * @returns column filters
57
57
  */
@@ -38,7 +38,7 @@ export interface StateApi {
38
38
  */
39
39
  getPredefinedConfig(): PredefinedConfig | any;
40
40
  /**
41
- * Returns current Initial Adaptable State
41
+ * Returns the Initial Adaptable State
42
42
  */
43
43
  getInitialState(): InitialState | any;
44
44
  /**
@@ -46,7 +46,7 @@ export interface StateApi {
46
46
  */
47
47
  reloadPredefinedConfig(newPredefinedConfig?: PredefinedConfig): void;
48
48
  /**
49
- * Reloads existing or supplied Initial State; clears persistent state by calling `StateOptions.clearState` for remote storage removal
49
+ * Reloads existing (or supplied) Initial State; clears persistent state by calling `StateOptions.clearState`
50
50
  * @param newInitialState optional new InitialState to load
51
51
  */
52
52
  reloadInitialState(newInitialState?: InitialState): void;
@@ -3,129 +3,36 @@ import * as Redux from 'redux';
3
3
  * @ReduxAction Plugins have been instantiated
4
4
  */
5
5
  export declare const PLUGINS_SET_PLUGIN_STATE = "PLUGINS_SET_PLUGIN_STATE";
6
- /**
7
- * @ReduxAction Throttle time for live reports has been set
8
- */
9
6
  export declare const IPUSHPULL_SET_THROTTLE_TIME = "IPUSHPULL_SET_THROTTLE_TIME";
10
- /**
11
- * @ReduxAction A snapshot report has been sent
12
- */
13
7
  export declare const IPUSHPULL_SEND_SNAPSHOT = "IPUSHPULL_SEND_SNAPSHOT";
14
- /**
15
- * @ReduxAction An ipushpull report has been selected
16
- */
17
8
  export declare const IPUSHPULL_REPORT_SELECT = "IPUSHPULL_REPORT_SELECT";
18
- /**
19
- * @ReduxAction Live data has been sent to ipushpull
20
- */
21
9
  export declare const IPUSHPULL_START_LIVE_DATA = "IPUSHPULL_START_LIVE_DATA";
22
- /**
23
- * @ReduxAction Live data to ipushpull has been stopped
24
- */
25
10
  export declare const IPUSHPULL_STOP_LIVE_DATA = "IPUSHPULL_STOP_LIVE_DATA";
26
- /**
27
- * @ReduxAction A new ipushpull page has been added
28
- */
29
11
  export declare const IPUSHPULL_ADD_PAGE = "IPUSHPULL_ADD_PAGE";
30
- /**
31
- * @ReduxAction Logged in to ipushpull
32
- */
33
12
  export declare const IPUSHPULL_LOGIN = "IPUSHPULL_LOGIN";
34
- /**
35
- * @ReduxAction Logged out from ipushpull
36
- */
37
13
  export declare const IPUSHPULL_LOGOUT = "IPUSHPULL_LOGOUT";
38
- /**
39
- * @ReduxAction Error message set from failed login
40
- */
41
14
  export declare const IPUSHPULL_SET_LOGIN_ERROR_MESSAGE = "IPUSHPULL_SET_LOGIN_ERROR_MESSAGE";
42
- /**
43
- * @ReduxAction Login details to ipushpull have been set
44
- */
45
15
  export declare const IPUSHPULL_SET_LOGIN_DETAILS = "IPUSHPULL_SET_LOGIN_DETAILS";
46
- /**
47
- * @ReduxAction ipushpull has been made available
48
- */
49
16
  export declare const IPUSHPULL_SET_AVAILABLE_ON = "IPUSHPULL_SET_AVAILABLE_ON";
50
- /**
51
- * @ReduxAction ipushpull has been made unavailable
52
- */
53
17
  export declare const IPUSHPULL_SET_AVAILABLE_OFF = "SET_IPUSHPULL_AVAILABLE_OFF";
54
- /**
55
- * @ReduxAction ipushpull is now running
56
- */
57
18
  export declare const IPUSHPULL_SET_RUNNING_ON = "IPUSHPULL_SET_RUNNING_ON";
58
- /**
59
- * @ReduxAction ipushpull is no longer running
60
- */
61
19
  export declare const IPUSHPULL_SET_RUNNING_OFF = "IPUSHPULL_SET_RUNNING_OFF";
62
- /**
63
- * @ReduxAction A live report to ipuspull has been set
64
- */
65
20
  export declare const IPUSHPULL_LIVE_REPORT_SET = "IPUSHPULL_LIVE_REPORT_SET";
66
- /**
67
- * @ReduxAction The live report to ipuspull has been cleared
68
- */
69
21
  export declare const IPUSHPULL_LIVE_REPORT_CLEAR = "IPUSHPULL_LIVE_REPORT_CLEAR";
70
- /**
71
- * @ReduxAction ipushpull domain pages have been set
72
- */
73
22
  export declare const IPUSHPULL_DOMAIN_PAGES_SET = "IPUSHPULL_DOMAIN_PAGES_SET";
74
- /**
75
- * @ReduxAction ipushpull domain pages have been cleared
76
- */
77
23
  export declare const IPUSHPULL_DOMAIN_PAGES_CLEAR = "IPUSHPULL_DOMAIN_PAGES_CLEAR";
78
- /**
79
- * @ReduxAction ipushpull set current(selected) report name
80
- */
81
24
  export declare const IPUSHPULL_SET_CURRENT_REPORTNAME = "IPUSHPULL_SET_CURRENT_REPORTNAME";
82
- /**
83
- * @ReduxAction ipushpull set current(selected) folder
84
- */
85
25
  export declare const IPUSHPULL_SET_CURRENT_FOLDER = "IPUSHPULL_SET_CURRENT_FOLDER";
86
- /**
87
- * @ReduxAction ipushpull set current(selected) page
88
- */
89
26
  export declare const IPUSHPULL_SET_CURRENT_PAGE = "IPUSHPULL_SET_CURRENT_PAGE";
90
- /**
91
- * @ReduxAction ipushpull set available pages (depending on current folder)
92
- */
93
27
  export declare const IPUSHPULL_SET_AVAILABLE_PAGES = "IPUSHPULL_SET_AVAILABLE_PAGES";
94
- /**
95
- * @ReduxAction Live data has been sent to OpenFin
96
- */
97
28
  export declare const OPENFIN_START_LIVE_DATA = "OPENFIN_START_LIVE_DATA";
98
- /**
99
- * @ReduxAction Live data is not longer sent to OpenFin
100
- */
101
29
  export declare const OPENFIN_STOP_LIVE_DATA = "OPENFIN_STOP_LIVE_DATA";
102
- /**
103
- * @ReduxAction An OpenFin live report has started
104
- */
105
30
  export declare const OPENFIN_LIVE_REPORT_SET = "OPENFIN_LIVE_REPORT_SET";
106
- /**
107
- * @ReduxAction An OpenFin live report has stopped
108
- */
109
31
  export declare const OPENFIN_LIVE_REPORT_CLEAR = "OPENFIN_LIVE_REPORT_CLEAR";
110
- /**
111
- * @ReduxAction OpenFin is now available
112
- */
113
32
  export declare const OPENFIN_SET_AVAILABLE_ON = "OPENFIN_SET_AVAILABLE_ON";
114
- /**
115
- * @ReduxAction OpenFin is no longer available
116
- */
117
33
  export declare const OPENFIN_SET_AVAILABLE_OFF = "OPENFIN_SET_AVAILABLE_OFF";
118
- /**
119
- * @ReduxAction OpenFin is now running
120
- */
121
34
  export declare const OPENFIN_SET_RUNNING_ON = "OPENFIN_SET_RUNNING_ON";
122
- /**
123
- * @ReduxAction OpenFin is no longer running
124
- */
125
35
  export declare const OPENFIN_SET_RUNNING_OFF = "OPENFIN_SET_RUNNING_OFF";
126
- /**
127
- * @ReduxAction set current(selected) report name
128
- */
129
36
  export declare const OPENFIN_SET_CURRENT_REPORTNAME = "OPENFIN_SET_CURRENT_REPORTNAME";
130
37
  export interface PluginsAction extends Redux.Action {
131
38
  pluginState: any;
@@ -2,129 +2,36 @@
2
2
  * @ReduxAction Plugins have been instantiated
3
3
  */
4
4
  export const PLUGINS_SET_PLUGIN_STATE = 'PLUGINS_SET_PLUGIN_STATE';
5
- /**
6
- * @ReduxAction Throttle time for live reports has been set
7
- */
8
5
  export const IPUSHPULL_SET_THROTTLE_TIME = 'IPUSHPULL_SET_THROTTLE_TIME';
9
- /**
10
- * @ReduxAction A snapshot report has been sent
11
- */
12
6
  export const IPUSHPULL_SEND_SNAPSHOT = 'IPUSHPULL_SEND_SNAPSHOT';
13
- /**
14
- * @ReduxAction An ipushpull report has been selected
15
- */
16
7
  export const IPUSHPULL_REPORT_SELECT = 'IPUSHPULL_REPORT_SELECT';
17
- /**
18
- * @ReduxAction Live data has been sent to ipushpull
19
- */
20
8
  export const IPUSHPULL_START_LIVE_DATA = 'IPUSHPULL_START_LIVE_DATA';
21
- /**
22
- * @ReduxAction Live data to ipushpull has been stopped
23
- */
24
9
  export const IPUSHPULL_STOP_LIVE_DATA = 'IPUSHPULL_STOP_LIVE_DATA';
25
- /**
26
- * @ReduxAction A new ipushpull page has been added
27
- */
28
10
  export const IPUSHPULL_ADD_PAGE = 'IPUSHPULL_ADD_PAGE';
29
- /**
30
- * @ReduxAction Logged in to ipushpull
31
- */
32
11
  export const IPUSHPULL_LOGIN = 'IPUSHPULL_LOGIN';
33
- /**
34
- * @ReduxAction Logged out from ipushpull
35
- */
36
12
  export const IPUSHPULL_LOGOUT = 'IPUSHPULL_LOGOUT';
37
- /**
38
- * @ReduxAction Error message set from failed login
39
- */
40
13
  export const IPUSHPULL_SET_LOGIN_ERROR_MESSAGE = 'IPUSHPULL_SET_LOGIN_ERROR_MESSAGE';
41
- /**
42
- * @ReduxAction Login details to ipushpull have been set
43
- */
44
14
  export const IPUSHPULL_SET_LOGIN_DETAILS = 'IPUSHPULL_SET_LOGIN_DETAILS';
45
- /**
46
- * @ReduxAction ipushpull has been made available
47
- */
48
15
  export const IPUSHPULL_SET_AVAILABLE_ON = 'IPUSHPULL_SET_AVAILABLE_ON';
49
- /**
50
- * @ReduxAction ipushpull has been made unavailable
51
- */
52
16
  export const IPUSHPULL_SET_AVAILABLE_OFF = 'SET_IPUSHPULL_AVAILABLE_OFF';
53
- /**
54
- * @ReduxAction ipushpull is now running
55
- */
56
17
  export const IPUSHPULL_SET_RUNNING_ON = 'IPUSHPULL_SET_RUNNING_ON';
57
- /**
58
- * @ReduxAction ipushpull is no longer running
59
- */
60
18
  export const IPUSHPULL_SET_RUNNING_OFF = 'IPUSHPULL_SET_RUNNING_OFF';
61
- /**
62
- * @ReduxAction A live report to ipuspull has been set
63
- */
64
19
  export const IPUSHPULL_LIVE_REPORT_SET = 'IPUSHPULL_LIVE_REPORT_SET';
65
- /**
66
- * @ReduxAction The live report to ipuspull has been cleared
67
- */
68
20
  export const IPUSHPULL_LIVE_REPORT_CLEAR = 'IPUSHPULL_LIVE_REPORT_CLEAR';
69
- /**
70
- * @ReduxAction ipushpull domain pages have been set
71
- */
72
21
  export const IPUSHPULL_DOMAIN_PAGES_SET = 'IPUSHPULL_DOMAIN_PAGES_SET';
73
- /**
74
- * @ReduxAction ipushpull domain pages have been cleared
75
- */
76
22
  export const IPUSHPULL_DOMAIN_PAGES_CLEAR = 'IPUSHPULL_DOMAIN_PAGES_CLEAR';
77
- /**
78
- * @ReduxAction ipushpull set current(selected) report name
79
- */
80
23
  export const IPUSHPULL_SET_CURRENT_REPORTNAME = 'IPUSHPULL_SET_CURRENT_REPORTNAME';
81
- /**
82
- * @ReduxAction ipushpull set current(selected) folder
83
- */
84
24
  export const IPUSHPULL_SET_CURRENT_FOLDER = 'IPUSHPULL_SET_CURRENT_FOLDER';
85
- /**
86
- * @ReduxAction ipushpull set current(selected) page
87
- */
88
25
  export const IPUSHPULL_SET_CURRENT_PAGE = 'IPUSHPULL_SET_CURRENT_PAGE';
89
- /**
90
- * @ReduxAction ipushpull set available pages (depending on current folder)
91
- */
92
26
  export const IPUSHPULL_SET_AVAILABLE_PAGES = 'IPUSHPULL_SET_AVAILABLE_PAGES';
93
- /**
94
- * @ReduxAction Live data has been sent to OpenFin
95
- */
96
27
  export const OPENFIN_START_LIVE_DATA = 'OPENFIN_START_LIVE_DATA';
97
- /**
98
- * @ReduxAction Live data is not longer sent to OpenFin
99
- */
100
28
  export const OPENFIN_STOP_LIVE_DATA = 'OPENFIN_STOP_LIVE_DATA';
101
- /**
102
- * @ReduxAction An OpenFin live report has started
103
- */
104
29
  export const OPENFIN_LIVE_REPORT_SET = 'OPENFIN_LIVE_REPORT_SET';
105
- /**
106
- * @ReduxAction An OpenFin live report has stopped
107
- */
108
30
  export const OPENFIN_LIVE_REPORT_CLEAR = 'OPENFIN_LIVE_REPORT_CLEAR';
109
- /**
110
- * @ReduxAction OpenFin is now available
111
- */
112
31
  export const OPENFIN_SET_AVAILABLE_ON = 'OPENFIN_SET_AVAILABLE_ON';
113
- /**
114
- * @ReduxAction OpenFin is no longer available
115
- */
116
32
  export const OPENFIN_SET_AVAILABLE_OFF = 'OPENFIN_SET_AVAILABLE_OFF';
117
- /**
118
- * @ReduxAction OpenFin is now running
119
- */
120
33
  export const OPENFIN_SET_RUNNING_ON = 'OPENFIN_SET_RUNNING_ON';
121
- /**
122
- * @ReduxAction OpenFin is no longer running
123
- */
124
34
  export const OPENFIN_SET_RUNNING_OFF = 'OPENFIN_SET_RUNNING_OFF';
125
- /**
126
- * @ReduxAction set current(selected) report name
127
- */
128
35
  export const OPENFIN_SET_CURRENT_REPORTNAME = 'OPENFIN_SET_CURRENT_REPORTNAME';
129
36
  export const PluginsSetPluginState = (pluginId, pluginState) => ({
130
37
  type: PLUGINS_SET_PLUGIN_STATE,
@@ -65,61 +65,19 @@ export declare const REMINDER_SCHEDULE_SUSPEND_ALL = "REMINDER_SCHEDULE_SUSPEND_
65
65
  * @ReduxAction All Reminder Schedules have been unsuspended or activated
66
66
  */
67
67
  export declare const REMINDER_SCHEDULE_UNSUSPEND_ALL = "REMINDER_SCHEDULE_UNSUSPEND_ALL";
68
- /**
69
- * @ReduxAction An ipushpull Schedule has been added
70
- */
71
68
  export declare const IPUSHPULL_SCHEDULE_ADD = "IPUSHPULL_SCHEDULE_ADD";
72
- /**
73
- * @ReduxAction An ipushpull Schedule has been edited
74
- */
75
69
  export declare const IPUSHPULL_SCHEDULE_EDIT = "IPUSHPULL_SCHEDULE_EDIT";
76
- /**
77
- * @ReduxAction An ipushpull Schedule has been deleted
78
- */
79
70
  export declare const IPUSHPULL_SCHEDULE_DELETE = "IPUSHPULL_SCHEDULE_DELETE";
80
- /**
81
- * @ReduxAction An ipushpull Schedule has been suspended
82
- */
83
71
  export declare const IPUSHPULL_SCHEDULE_SUSPEND = "IPUSHPULL_SCHEDULE_SUSPEND";
84
- /**
85
- * @ReduxAction An ipushpull Schedule has been unsuspended or activated
86
- */
87
72
  export declare const IPUSHPULL_SCHEDULE_UNSUSPEND = "IPUSHPULL_SCHEDULE_UNSUSPEND";
88
- /**
89
- * @ReduxAction All ipushpull Schedules have been suspended
90
- */
91
73
  export declare const IPUSHPULL_SCHEDULE_SUSPEND_ALL = "IPUSHPULL_SCHEDULE_SUSPEND_ALL";
92
- /**
93
- * @ReduxAction All ipushpull Schedules have been unsuspended or activated
94
- */
95
74
  export declare const IPUSHPULL_SCHEDULE_UNSUSPEND_ALL = "IPUSHPULL_SCHEDULE_UNSUSPEND_ALL";
96
- /**
97
- * @ReduxAction An OpenFin Schedule has been added
98
- */
99
75
  export declare const OPENFIN_SCHEDULE_ADD = "OPENFIN_SCHEDULE_ADD";
100
- /**
101
- * @ReduxAction An OpenFin Schedule has been edited
102
- */
103
76
  export declare const OPENFIN_SCHEDULE_EDIT = "OPENFIN_SCHEDULE_EDIT";
104
- /**
105
- * @ReduxAction An OpenFin Schedule has been deleted
106
- */
107
77
  export declare const OPENFIN_SCHEDULE_DELETE = "OPENFIN_SCHEDULE_DELETE";
108
- /**
109
- * @ReduxAction An OpenFin Schedule has been suspended
110
- */
111
78
  export declare const OPENFIN_SCHEDULE_SUSPEND = "OPENFIN_SCHEDULE_SUSPEND";
112
- /**
113
- * @ReduxAction An OpenFin Schedule has been unsuspended or activated
114
- */
115
79
  export declare const OPENFIN_SCHEDULE_UNSUSPEND = "OPENFIN_SCHEDULE_UNSUSPEND";
116
- /**
117
- * @ReduxAction All OpenFin Schedules have been suspended
118
- */
119
80
  export declare const OPENFIN_SCHEDULE_SUSPEND_ALL = "OPENFIN_SCHEDULE_SUSPEND_ALL";
120
- /**
121
- * @ReduxAction All OpenFin Schedules have been unsuspended or activated
122
- */
123
81
  export declare const OPENFIN_SCHEDULE_UNSUSPEND_ALL = "OPENFIN_SCHEDULE_UNSUSPEND_ALL";
124
82
  /**
125
83
  * @ReduxAction Schedule Module is ready
@@ -61,61 +61,19 @@ export const REMINDER_SCHEDULE_SUSPEND_ALL = 'REMINDER_SCHEDULE_SUSPEND_ALL';
61
61
  * @ReduxAction All Reminder Schedules have been unsuspended or activated
62
62
  */
63
63
  export const REMINDER_SCHEDULE_UNSUSPEND_ALL = 'REMINDER_SCHEDULE_UNSUSPEND_ALL';
64
- /**
65
- * @ReduxAction An ipushpull Schedule has been added
66
- */
67
64
  export const IPUSHPULL_SCHEDULE_ADD = 'IPUSHPULL_SCHEDULE_ADD';
68
- /**
69
- * @ReduxAction An ipushpull Schedule has been edited
70
- */
71
65
  export const IPUSHPULL_SCHEDULE_EDIT = 'IPUSHPULL_SCHEDULE_EDIT';
72
- /**
73
- * @ReduxAction An ipushpull Schedule has been deleted
74
- */
75
66
  export const IPUSHPULL_SCHEDULE_DELETE = 'IPUSHPULL_SCHEDULE_DELETE';
76
- /**
77
- * @ReduxAction An ipushpull Schedule has been suspended
78
- */
79
67
  export const IPUSHPULL_SCHEDULE_SUSPEND = 'IPUSHPULL_SCHEDULE_SUSPEND';
80
- /**
81
- * @ReduxAction An ipushpull Schedule has been unsuspended or activated
82
- */
83
68
  export const IPUSHPULL_SCHEDULE_UNSUSPEND = 'IPUSHPULL_SCHEDULE_UNSUSPEND';
84
- /**
85
- * @ReduxAction All ipushpull Schedules have been suspended
86
- */
87
69
  export const IPUSHPULL_SCHEDULE_SUSPEND_ALL = 'IPUSHPULL_SCHEDULE_SUSPEND_ALL';
88
- /**
89
- * @ReduxAction All ipushpull Schedules have been unsuspended or activated
90
- */
91
70
  export const IPUSHPULL_SCHEDULE_UNSUSPEND_ALL = 'IPUSHPULL_SCHEDULE_UNSUSPEND_ALL';
92
- /**
93
- * @ReduxAction An OpenFin Schedule has been added
94
- */
95
71
  export const OPENFIN_SCHEDULE_ADD = 'OPENFIN_SCHEDULE_ADD';
96
- /**
97
- * @ReduxAction An OpenFin Schedule has been edited
98
- */
99
72
  export const OPENFIN_SCHEDULE_EDIT = 'OPENFIN_SCHEDULE_EDIT';
100
- /**
101
- * @ReduxAction An OpenFin Schedule has been deleted
102
- */
103
73
  export const OPENFIN_SCHEDULE_DELETE = 'OPENFIN_SCHEDULE_DELETE';
104
- /**
105
- * @ReduxAction An OpenFin Schedule has been suspended
106
- */
107
74
  export const OPENFIN_SCHEDULE_SUSPEND = 'OPENFIN_SCHEDULE_SUSPEND';
108
- /**
109
- * @ReduxAction An OpenFin Schedule has been unsuspended or activated
110
- */
111
75
  export const OPENFIN_SCHEDULE_UNSUSPEND = 'OPENFIN_SCHEDULE_UNSUSPEND';
112
- /**
113
- * @ReduxAction All OpenFin Schedules have been suspended
114
- */
115
76
  export const OPENFIN_SCHEDULE_SUSPEND_ALL = 'OPENFIN_SCHEDULE_SUSPEND_ALL';
116
- /**
117
- * @ReduxAction All OpenFin Schedules have been unsuspended or activated
118
- */
119
77
  export const OPENFIN_SCHEDULE_UNSUSPEND_ALL = 'OPENFIN_SCHEDULE_UNSUSPEND_ALL';
120
78
  /**
121
79
  * @ReduxAction Schedule Module is ready
@@ -7,6 +7,7 @@ export const DEFAULT_SETTINGS_PANEL_NAVIGATION_ITEMS = [
7
7
  'Dashboard',
8
8
  'ToolPanel',
9
9
  'StatusBar',
10
+ 'Theme',
10
11
  '-',
11
12
  'Layout',
12
13
  'CalculatedColumn',
@@ -20,7 +21,6 @@ export const DEFAULT_SETTINGS_PANEL_NAVIGATION_ITEMS = [
20
21
  'FormatColumn',
21
22
  'StyledColumn',
22
23
  'FlashingCell',
23
- 'Theme',
24
24
  '-',
25
25
  'QuickSearch',
26
26
  'GridFilter',
@@ -70,11 +70,11 @@ export class ThemeService {
70
70
  if (abLoaded !== '777') {
71
71
  logger.consoleError('Please import Adaptable styles from "@adaptabletools/adaptable/index.css"');
72
72
  }
73
- // every theme should define a custom css variable: --ab-theme-loaded: <themeName> defined on the document element.
74
- if (abThemeLoaded !== themeName) {
73
+ const isCustomUserTheme = !this.api.themeApi.internalApi.isSystemTheme(themeName);
74
+ if (!isCustomUserTheme && abThemeLoaded !== themeName) {
75
75
  logger.consoleWarn(`Theme "${themeName}" doesn't seem to be loaded! Make sure you import the css file for the "${themeName}" theme!
76
76
 
77
- If it's a default theme, try
77
+ If it's an AdapTable system theme, try
78
78
 
79
79
  import "@adaptabletools/adaptable/themes/${themeName}.css"`);
80
80
  }
@@ -152,7 +152,6 @@ const ColumnsList = ({ columns: cols, handle, onValidityChange, onChange, onSele
152
152
  React.useEffect(() => {
153
153
  onValidityChange(isIncludedColumn(primaryKeyField));
154
154
  }, [includedColumnsMap, primaryKeyField]);
155
- const rowHeight = 40;
156
155
  const data = columns;
157
156
  const CellWrapper = (props) => {
158
157
  return (React.createElement(Flex, { ...props, style: {
@@ -340,7 +339,7 @@ const ColumnsList = ({ columns: cols, handle, onValidityChange, onChange, onSele
340
339
  },
341
340
  }, headerOptions: {
342
341
  alwaysReserveSpaceForSortIcon: false,
343
- }, rowHeight: rowHeight, columnHeaderHeight: 65, domProps: tableDOMProps, columns: columnsMap }))));
342
+ }, domProps: tableDOMProps, columns: columnsMap }))));
344
343
  };
345
344
  function areEqual() {
346
345
  /**
@@ -14,6 +14,16 @@ const tableDOMProps = {
14
14
  minHeight: 600,
15
15
  },
16
16
  };
17
+ const columnTypes = {
18
+ default: {
19
+ defaultFlex: 1,
20
+ align: 'center',
21
+ defaultSortable: false,
22
+ },
23
+ };
24
+ const headerOptions = {
25
+ alwaysReserveSpaceForSortIcon: false,
26
+ };
17
27
  const EntitlementsListForm = (props) => {
18
28
  let abOptions = props.adaptableOptions;
19
29
  const entitlements = abOptions?.entitlementOptions?.moduleEntitlements ?? [];
@@ -96,15 +106,7 @@ const EntitlementsListForm = (props) => {
96
106
  }
97
107
  return (React.createElement(Box, { flex: 1, height: "100%", className: theme },
98
108
  React.createElement(DataSource, { data: data, primaryKey: "name" },
99
- React.createElement(InfiniteTable, { columnTypes: {
100
- default: {
101
- defaultFlex: 1,
102
- align: 'center',
103
- defaultSortable: false,
104
- },
105
- }, headerOptions: {
106
- alwaysReserveSpaceForSortIcon: false,
107
- }, columnHeaderHeight: 50, domProps: tableDOMProps, columns: columnsMap }))));
109
+ React.createElement(InfiniteTable, { columnTypes: columnTypes, headerOptions: headerOptions, domProps: tableDOMProps, columns: columnsMap }))));
108
110
  };
109
111
  const DefaultEntitlementForm = (props) => {
110
112
  const abOptions = props.adaptableOptions;
@@ -10,6 +10,12 @@ import { ButtonNew } from '../Components/Buttons/ButtonNew';
10
10
  import { ColumnSelector } from '../Components/Selectors/ColumnSelector';
11
11
  import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
12
12
  const BASE_CLASS_NAME = 'ab-AdaptableColumns';
13
+ const domProps = {
14
+ style: {
15
+ height: '460px',
16
+ width: '100%',
17
+ },
18
+ };
13
19
  // TODOS:
14
20
  // - use column from props as initial value
15
21
  // - table summary
@@ -150,12 +156,7 @@ const ColumnDefPreview = (props) => {
150
156
  Value: { field: 'Value', header: 'Value', defaultFlex: 3 },
151
157
  };
152
158
  return (React.createElement(DataSource, { data: keyValuePairs, primaryKey: "Key" },
153
- React.createElement(InfiniteTable, { domProps: {
154
- style: {
155
- height: '460px',
156
- width: '100%',
157
- },
158
- }, columns: columnsMap })));
159
+ React.createElement(InfiniteTable, { domProps: domProps, columns: columnsMap })));
159
160
  }
160
161
  };
161
162
  const ModuleView = (props) => {
@@ -214,11 +215,12 @@ export const ColumnInfo = (props) => {
214
215
  React.createElement(FormRow, { label: "Select Column" },
215
216
  React.createElement(ColumnSelector, { filterColumn: (column) => !column.alwaysHidden, value: selectedColumnId, onChange: (columnId) => setSelectedColumnId(columnId) })))),
216
217
  selectedColumnId && (React.createElement(Tabs, { mb: 3 },
217
- React.createElement(Tabs.Tab, null, "State"),
218
218
  React.createElement(Tabs.Tab, null, "Column Summary"),
219
+ React.createElement(Tabs.Tab, null, "Column State"),
220
+ React.createElement(Tabs.Content, null,
221
+ React.createElement(Flex, { flex: 1 }, selectedColumnId && React.createElement(ColumnDefPreview, { column: column }))),
222
+ ' ',
219
223
  React.createElement(Tabs.Content, null, selectedColumnId && (React.createElement(Box, { className: BASE_CLASS_NAME }, MODULES_WITH_COLUMN.map((moduleName) => {
220
224
  return (React.createElement(ModuleView, { key: moduleName, moduleName: moduleName, selectedColumnId: selectedColumnId }));
221
- })))),
222
- React.createElement(Tabs.Content, null,
223
- React.createElement(Flex, { flex: 1 }, selectedColumnId && React.createElement(ColumnDefPreview, { column: column })))))));
225
+ }))))))));
224
226
  };
@@ -13,6 +13,16 @@ const tableDOMProps = {
13
13
  minWidth: '10rem',
14
14
  },
15
15
  };
16
+ const columnTypes = {
17
+ default: {
18
+ align: 'start',
19
+ defaultFlex: 1,
20
+ defaultSortable: false,
21
+ },
22
+ };
23
+ const headerOptions = {
24
+ alwaysReserveSpaceForSortIcon: false,
25
+ };
16
26
  const CellComments = (props) => {
17
27
  const adaptable = useAdaptable();
18
28
  const isReadOnlyModule = adaptable.api.entitlementApi.getEntitlementAccessLevelForModule('Comment') === 'ReadOnly';
@@ -73,15 +83,7 @@ const CellComments = (props) => {
73
83
  adaptable.api.commentApi.deleteCommentThread(props.commentThread);
74
84
  } })) },
75
85
  React.createElement(DataSource, { data: props.commentThread.Comments, primaryKey: "Uuid" },
76
- React.createElement(InfiniteTable, { columnTypes: {
77
- default: {
78
- align: 'start',
79
- defaultFlex: 1,
80
- defaultSortable: false,
81
- },
82
- }, headerOptions: {
83
- alwaysReserveSpaceForSortIcon: false,
84
- }, rowHeight: 30, columnHeaderHeight: 30, domProps: tableDOMProps, columns: columnsMap }))));
86
+ React.createElement(InfiniteTable, { columnTypes: columnTypes, headerOptions: headerOptions, domProps: tableDOMProps, columns: columnsMap }))));
85
87
  };
86
88
  export const CommentsPopup = (props) => {
87
89
  const commentThreads = useSelector((state) => {
@@ -100,6 +100,13 @@ export const FloatingFilterValues = (props) => {
100
100
  border: 'none',
101
101
  },
102
102
  },
103
+ ...(props.value?.length
104
+ ? {
105
+ valueContainer: {
106
+ fontWeight: 'var(--ab-cmp-quickfilter-selected-options-text__font-weight)',
107
+ },
108
+ }
109
+ : {}),
103
110
  },
104
111
  onMenuOpen,
105
112
  onInputChange,
@@ -27,7 +27,7 @@ export const ColumnValuesSelect = (props) => {
27
27
  const component = (React.createElement(Select, { isMulti: true, showHeaderSelectionCheckbox: true, searchable: true, closeMenuOnSelect: false, size: "small", menuStyle: {
28
28
  minWidth: `var(--ab-cmp-select-column-menu-${column.columnId}__min-width, var(--ab-cmp-select-column-menu__min-width, 260px))`,
29
29
  }, ...props.selectProps, options: options, value: value, isLoading: props.isLoading, onChange: props.onChange }));
30
- return (React.createElement("div", { className: join(baseClassName, props.isLoading && `${baseClassName}--loading`), onKeyDownCapture: (e) => {
30
+ return (React.createElement("div", { className: join(baseClassName, props.isLoading && `${baseClassName}--loading`, !value.length && `${baseClassName}--empty`), onKeyDownCapture: (e) => {
31
31
  const event = e.nativeEvent || e;
32
32
  event.stopPropagation = () => {
33
33
  // see #ensure-keyboard-navigation-works-in-column-values-filter
@@ -8,6 +8,11 @@ const tableDOMProps = {
8
8
  minHeight: 300,
9
9
  },
10
10
  };
11
+ const columnTypes = {
12
+ default: {
13
+ defaultFlex: 1,
14
+ },
15
+ };
11
16
  export const PivotDetailsPopoup = (props) => {
12
17
  const adaptable = useAdaptable();
13
18
  const adaptableApi = adaptable.api;
@@ -64,9 +69,5 @@ export const PivotDetailsPopoup = (props) => {
64
69
  };
65
70
  }, [props.popupProps]);
66
71
  return (React.createElement(DataSource, { data: data, primaryKey: columnId },
67
- React.createElement(InfiniteTable, { columnTypes: {
68
- default: {
69
- defaultFlex: 1,
70
- },
71
- }, domProps: tableDOMProps, columns: columns })));
72
+ React.createElement(InfiniteTable, { columnTypes: columnTypes, domProps: tableDOMProps, columns: columns })));
72
73
  };