@adaptabletools/adaptable 10.0.4-canary.5 → 11.0.0-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.
- package/base.css +1 -5
- package/bundle.cjs.js +115 -113
- package/index.css +1 -7
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +9 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +13 -2
- package/src/AdaptableOptions/ContainerOptions.d.ts +0 -7
- package/src/AdaptableOptions/DashboardOptions.d.ts +4 -7
- package/src/AdaptableOptions/FlashingCellOptions.d.ts +31 -0
- package/src/AdaptableOptions/{ChartPluginOptions.js → FlashingCellOptions.js} +0 -0
- package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
- package/src/AdaptableOptions/MenuOptions.d.ts +2 -2
- package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -7
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +14 -2
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -14
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +5 -0
- package/src/Api/AdaptableApi.d.ts +6 -6
- package/src/Api/ChartingApi.d.ts +9 -0
- package/src/Api/{ChartApi.js → ChartingApi.js} +0 -0
- package/src/Api/ColumnApi.d.ts +11 -1
- package/src/Api/ConfigApi.d.ts +0 -12
- package/src/Api/EventApi.d.ts +3 -3
- package/src/Api/Events/AdaptableReady.d.ts +1 -1
- package/src/Api/Events/FlashingCellDisplayed.d.ts +2 -2
- package/src/Api/FlashingCellApi.d.ts +35 -24
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -2
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +5 -0
- package/src/Api/Implementation/ChartingApiImpl.js +10 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ColumnApiImpl.js +9 -3
- package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
- package/src/Api/Implementation/ConfigApiImpl.js +0 -16
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +8 -4
- package/src/Api/Implementation/FlashingCellApiImpl.js +39 -24
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.js +1 -1
- package/src/Api/Implementation/InternalApiImpl.d.ts +0 -4
- package/src/Api/Implementation/InternalApiImpl.js +1 -7
- package/src/Api/Implementation/PluginsApiImpl.d.ts +0 -2
- package/src/Api/Implementation/PluginsApiImpl.js +0 -6
- package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
- package/src/Api/Implementation/QueryApiImpl.js +1 -1
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/InternalApi.d.ts +0 -4
- package/src/Api/PluginsApi.d.ts +0 -2
- package/src/PredefinedConfig/AdaptableState.d.ts +0 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +38 -38
- package/src/PredefinedConfig/Common/Enums.js +1 -0
- package/src/PredefinedConfig/Common/Menu.d.ts +15 -19
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
- package/src/PredefinedConfig/Common/Types.d.ts +5 -5
- package/src/PredefinedConfig/Common/Types.js +0 -2
- package/src/PredefinedConfig/FlashingCellState.d.ts +14 -19
- package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -10
- package/src/PredefinedConfig/SystemState.d.ts +0 -4
- package/src/PredefinedConfig/ThemeState.d.ts +2 -1
- package/src/Redux/ActionsReducers/DashboardRedux.js +1 -1
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +0 -2
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +0 -12
- package/src/Redux/ActionsReducers/SystemRedux.js +1 -21
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +1 -2
- package/src/Redux/Store/AdaptableStore.js +10 -20
- package/src/Strategy/AdaptableModuleBase.d.ts +1 -1
- package/src/Strategy/AdaptableModuleBase.js +0 -3
- package/src/Strategy/AlertModule.js +1 -1
- package/src/Strategy/CalculatedColumnModule.js +17 -12
- package/src/Strategy/ChartingModule.d.ts +7 -0
- package/src/Strategy/ChartingModule.js +15 -0
- package/src/Strategy/ConditionalStyleModule.js +1 -1
- package/src/Strategy/FilterModule.js +3 -2
- package/src/Strategy/FlashingCellModule.js +4 -4
- package/src/Strategy/FormatColumnModule.js +2 -2
- package/src/Strategy/Interface/IModule.d.ts +0 -1
- package/src/Strategy/LayoutModule.js +15 -3
- package/src/Strategy/QueryModule.d.ts +1 -1
- package/src/Strategy/QueryModule.js +1 -3
- package/src/Strategy/SetingsPanelModule.d.ts +1 -0
- package/src/Strategy/SetingsPanelModule.js +7 -1
- package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFlashingTargetViewItems.js +9 -0
- package/src/Strategy/Utilities/getFormatColumnStyleViewItems.d.ts +3 -0
- package/src/Strategy/Utilities/getFormatColumnStyleViewItems.js +10 -0
- package/src/Utilities/Constants/ConfigConstants.d.ts +0 -1
- package/src/Utilities/Constants/ConfigConstants.js +1 -2
- package/src/Utilities/Constants/GeneralConstants.d.ts +0 -9
- package/src/Utilities/Constants/GeneralConstants.js +1 -12
- package/src/Utilities/Constants/ModuleConstants.d.ts +1 -2
- package/src/Utilities/Constants/ModuleConstants.js +2 -3
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +19 -18
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +2 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +2 -2
- package/src/Utilities/Interface/MessagePopups.d.ts +0 -3
- package/src/Utilities/ObjectFactory.d.ts +0 -10
- package/src/Utilities/ObjectFactory.js +2 -65
- package/src/Utilities/Services/EntitlementService.js +1 -1
- package/src/Utilities/Services/ModuleService.js +7 -11
- package/src/View/AdaptableView.js +1 -7
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +4 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +9 -9
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +3 -3
- package/src/View/AdaptableWizardView/index.js +1 -1
- package/src/View/Alert/AlertEmptyView.js +1 -1
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertWizard.js +3 -3
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +1 -0
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +4 -1
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +0 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -1
- package/src/View/Components/ModuleValueSelector/index.d.ts +3 -1
- package/src/View/Components/ModuleValueSelector/index.js +1 -1
- package/src/View/Components/NewScopeComponent.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +5 -4
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +45 -80
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +8 -1
- package/src/View/Components/ValueSelector/index.d.ts +1 -0
- package/src/View/Components/ValueSelector/index.js +2 -2
- package/src/View/Dashboard/Dashboard.js +11 -34
- package/src/View/Dashboard/DashboardPopup.js +22 -14
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +3 -2
- package/src/View/FlashingCell/Wizard/FlashingCellDurationWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +6 -6
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -3
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +3 -2
- package/src/View/Query/Wizard/NamedQueryWizard.js +10 -7
- package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
- package/src/View/Shortcut/shortcutKeys.js +0 -1
- package/src/View/UIHelper.d.ts +0 -4
- package/src/View/UIHelper.js +1 -34
- package/src/agGrid/Adaptable.d.ts +10 -5
- package/src/agGrid/Adaptable.js +59 -49
- package/src/agGrid/agGridHelper.d.ts +1 -2
- package/src/agGrid/agGridHelper.js +7 -4
- package/src/agGrid/agGridMenuHelper.js +11 -7
- package/src/components/ApplicationIcon.d.ts +1 -1
- package/src/components/icons/column-add.d.ts +3 -0
- package/src/components/icons/column-add.js +10 -0
- package/src/components/icons/index.js +2 -0
- package/src/metamodel/adaptable.metamodel.d.ts +58 -91
- package/src/metamodel/adaptable.metamodel.js +239 -288
- package/src/types.d.ts +4 -7
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/ChartPluginOptions.d.ts +0 -20
- package/src/Api/ChartApi.d.ts +0 -20
- package/src/Api/Implementation/SparklineColumnApiImpl.d.ts +0 -9
- package/src/Api/Implementation/SparklineColumnApiImpl.js +0 -24
- package/src/Api/SparklineColumnApi.d.ts +0 -23
- package/src/Api/SparklineColumnApi.js +0 -2
- package/src/PredefinedConfig/ChartState.d.ts +0 -144
- package/src/PredefinedConfig/ChartState.js +0 -2
- package/src/PredefinedConfig/Common/ChartEnums.d.ts +0 -123
- package/src/PredefinedConfig/Common/ChartEnums.js +0 -152
- package/src/PredefinedConfig/SparklineColumnState.d.ts +0 -40
- package/src/PredefinedConfig/SparklineColumnState.js +0 -2
- package/src/Redux/ActionsReducers/SparklineColumnRedux.d.ts +0 -35
- package/src/Redux/ActionsReducers/SparklineColumnRedux.js +0 -70
- package/src/Utilities/Defaults/DefaultCategoryChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultCategoryChartProperties.js +0 -56
- package/src/Utilities/Defaults/DefaultPieChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultPieChartProperties.js +0 -13
- package/src/Utilities/Defaults/DefaultSparklinesChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultSparklinesChartProperties.js +0 -25
- package/src/View/Components/Panels/PanelWithIImageThreeButtons.d.ts +0 -11
- package/src/View/Components/Panels/PanelWithIImageThreeButtons.js +0 -28
- package/src/View/Components/Popups/AdaptableChart.d.ts +0 -18
- package/src/View/Components/Popups/AdaptableChart.js +0 -40
- package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.d.ts +0 -7
- package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.js +0 -2
- package/src/components/ChartContainer/index.d.ts +0 -15
- package/src/components/ChartContainer/index.js +0 -22
|
@@ -36,7 +36,7 @@ exports.SystemPredicateDefs = [
|
|
|
36
36
|
label: 'Blanks',
|
|
37
37
|
icon: { path: 'blanks' },
|
|
38
38
|
columnScope: { All: true },
|
|
39
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
39
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
40
40
|
handler: ({ value }) => Helper_1.default.IsInputNullOrEmpty(value),
|
|
41
41
|
},
|
|
42
42
|
{
|
|
@@ -44,7 +44,7 @@ exports.SystemPredicateDefs = [
|
|
|
44
44
|
label: 'Non Blanks',
|
|
45
45
|
icon: { path: 'non-blanks' },
|
|
46
46
|
columnScope: { All: true },
|
|
47
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
47
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
48
48
|
handler: ({ value }) => Helper_1.default.IsInputNotNullOrEmpty(value),
|
|
49
49
|
},
|
|
50
50
|
// Numeric System Filters
|
|
@@ -53,7 +53,7 @@ exports.SystemPredicateDefs = [
|
|
|
53
53
|
label: 'Greater Than',
|
|
54
54
|
icon: { path: 'greater-than' },
|
|
55
55
|
columnScope: { DataTypes: ['Number'] },
|
|
56
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
56
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
57
57
|
inputs: [{ type: 'number' }],
|
|
58
58
|
handler: ({ value, inputs }) => Number(value) > Number(inputs[0]),
|
|
59
59
|
toString: ({ inputs }) => `> ${inputs[0]}`,
|
|
@@ -64,7 +64,7 @@ exports.SystemPredicateDefs = [
|
|
|
64
64
|
label: 'Less Than',
|
|
65
65
|
icon: { path: 'less-than' },
|
|
66
66
|
columnScope: { DataTypes: ['Number'] },
|
|
67
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
67
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
68
68
|
inputs: [{ type: 'number' }],
|
|
69
69
|
handler: ({ value, inputs }) => Number(value) < Number(inputs[0]),
|
|
70
70
|
toString: ({ inputs }) => `< ${inputs[0]}`,
|
|
@@ -75,7 +75,7 @@ exports.SystemPredicateDefs = [
|
|
|
75
75
|
label: 'Positive',
|
|
76
76
|
icon: { text: '>0' },
|
|
77
77
|
columnScope: { DataTypes: ['Number'] },
|
|
78
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
78
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
79
79
|
handler: ({ value }) => Number(value) > 0,
|
|
80
80
|
},
|
|
81
81
|
{
|
|
@@ -83,7 +83,7 @@ exports.SystemPredicateDefs = [
|
|
|
83
83
|
label: 'Negative',
|
|
84
84
|
icon: { text: '<0' },
|
|
85
85
|
columnScope: { DataTypes: ['Number'] },
|
|
86
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
86
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
87
87
|
handler: ({ value }) => Number(value) < 0,
|
|
88
88
|
},
|
|
89
89
|
{
|
|
@@ -91,7 +91,7 @@ exports.SystemPredicateDefs = [
|
|
|
91
91
|
label: 'Zero',
|
|
92
92
|
icon: { text: '=0' },
|
|
93
93
|
columnScope: { DataTypes: ['Number'] },
|
|
94
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
94
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
95
95
|
handler: ({ value }) => Number(value) == 0,
|
|
96
96
|
},
|
|
97
97
|
{
|
|
@@ -99,7 +99,7 @@ exports.SystemPredicateDefs = [
|
|
|
99
99
|
label: 'Equals',
|
|
100
100
|
icon: { path: 'equal' },
|
|
101
101
|
columnScope: { DataTypes: ['Number'] },
|
|
102
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
102
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
103
103
|
inputs: [{ type: 'number' }],
|
|
104
104
|
handler: ({ value, inputs }) => Number(value) === Number(inputs[0]),
|
|
105
105
|
toString: ({ inputs }) => `= ${inputs[0]}`,
|
|
@@ -110,7 +110,7 @@ exports.SystemPredicateDefs = [
|
|
|
110
110
|
label: 'Not Equals',
|
|
111
111
|
icon: { path: 'not-equal' },
|
|
112
112
|
columnScope: { DataTypes: ['Number'] },
|
|
113
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
113
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
114
114
|
inputs: [{ type: 'number' }],
|
|
115
115
|
handler: ({ value, inputs }) => Number(value) !== Number(inputs[0]),
|
|
116
116
|
toString: ({ inputs }) => `!= ${inputs[0]}`,
|
|
@@ -121,7 +121,7 @@ exports.SystemPredicateDefs = [
|
|
|
121
121
|
label: 'Between',
|
|
122
122
|
icon: { text: 'BE' },
|
|
123
123
|
columnScope: { DataTypes: ['Number'] },
|
|
124
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
124
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
125
125
|
inputs: [{ type: 'number' }, { type: 'number' }],
|
|
126
126
|
handler: ({ value, inputs }) => Number(value) >= Number(inputs[0]) && Number(value) <= Number(inputs[1]),
|
|
127
127
|
toString: ({ inputs }) => `Between ${inputs[0]}:${inputs[1]}`,
|
|
@@ -132,7 +132,7 @@ exports.SystemPredicateDefs = [
|
|
|
132
132
|
label: 'Not Between',
|
|
133
133
|
icon: { text: '!BE' },
|
|
134
134
|
columnScope: { DataTypes: ['Number'] },
|
|
135
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
135
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
136
136
|
inputs: [{ type: 'number' }, { type: 'number' }],
|
|
137
137
|
handler: ({ value, inputs }) => Number(value) < Number(inputs[0]) || Number(value) > Number(inputs[1]),
|
|
138
138
|
toString: ({ inputs }) => `Not Between ${inputs[0]}:${inputs[1]}`,
|
|
@@ -143,7 +143,7 @@ exports.SystemPredicateDefs = [
|
|
|
143
143
|
label: 'Is Numeric',
|
|
144
144
|
icon: { text: '1' },
|
|
145
145
|
columnScope: { DataTypes: ['Number'] },
|
|
146
|
-
moduleScope: ['alert'],
|
|
146
|
+
moduleScope: ['alert', 'flashingcell'],
|
|
147
147
|
handler: ({ value }) => isNaN(Number(value)),
|
|
148
148
|
},
|
|
149
149
|
// String System Filters
|
|
@@ -152,7 +152,7 @@ exports.SystemPredicateDefs = [
|
|
|
152
152
|
label: 'Equals',
|
|
153
153
|
icon: { path: 'equal' },
|
|
154
154
|
columnScope: { DataTypes: ['String'] },
|
|
155
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
155
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
156
156
|
inputs: [{ type: 'text' }],
|
|
157
157
|
handler: ({ value, inputs, api }) => {
|
|
158
158
|
if (!value) {
|
|
@@ -171,7 +171,7 @@ exports.SystemPredicateDefs = [
|
|
|
171
171
|
label: 'Not Equals',
|
|
172
172
|
icon: { path: 'not-equal' },
|
|
173
173
|
columnScope: { DataTypes: ['String'] },
|
|
174
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
174
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
175
175
|
inputs: [{ type: 'text' }],
|
|
176
176
|
handler: ({ value, inputs, api }) => {
|
|
177
177
|
if (!value) {
|
|
@@ -190,7 +190,7 @@ exports.SystemPredicateDefs = [
|
|
|
190
190
|
label: 'Contains',
|
|
191
191
|
icon: { path: 'contains' },
|
|
192
192
|
columnScope: { DataTypes: ['String'] },
|
|
193
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
193
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
194
194
|
inputs: [{ type: 'text' }],
|
|
195
195
|
handler: ({ value, inputs, api }) => {
|
|
196
196
|
if (!value) {
|
|
@@ -208,7 +208,7 @@ exports.SystemPredicateDefs = [
|
|
|
208
208
|
label: 'Not Contains',
|
|
209
209
|
icon: { path: 'not-contains' },
|
|
210
210
|
columnScope: { DataTypes: ['String'] },
|
|
211
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
211
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
212
212
|
inputs: [{ type: 'text' }],
|
|
213
213
|
handler: ({ value, inputs, api }) => {
|
|
214
214
|
if (!value) {
|
|
@@ -226,7 +226,7 @@ exports.SystemPredicateDefs = [
|
|
|
226
226
|
label: 'Starts With',
|
|
227
227
|
icon: { path: 'format-letter-starts-with' },
|
|
228
228
|
columnScope: { DataTypes: ['String'] },
|
|
229
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
229
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
230
230
|
inputs: [{ type: 'text' }],
|
|
231
231
|
handler: ({ value, inputs, api }) => {
|
|
232
232
|
if (!value) {
|
|
@@ -244,7 +244,7 @@ exports.SystemPredicateDefs = [
|
|
|
244
244
|
label: 'Ends With',
|
|
245
245
|
icon: { path: 'format-letter-ends-with' },
|
|
246
246
|
columnScope: { DataTypes: ['String'] },
|
|
247
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
247
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
248
248
|
inputs: [{ type: 'text' }],
|
|
249
249
|
handler: ({ value, inputs, api }) => {
|
|
250
250
|
if (!value) {
|
|
@@ -262,7 +262,7 @@ exports.SystemPredicateDefs = [
|
|
|
262
262
|
label: 'Regex',
|
|
263
263
|
icon: { path: 'regex' },
|
|
264
264
|
columnScope: { DataTypes: ['String'] },
|
|
265
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
265
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
266
266
|
inputs: [{ type: 'text' }],
|
|
267
267
|
handler: ({ value, inputs }) => new RegExp(inputs[0]).test(value),
|
|
268
268
|
toString: ({ inputs }) => `Regex ${inputs[0]}`,
|
|
@@ -273,7 +273,7 @@ exports.SystemPredicateDefs = [
|
|
|
273
273
|
label: 'Today',
|
|
274
274
|
icon: { path: 'calendar' },
|
|
275
275
|
columnScope: { DataTypes: ['Date'] },
|
|
276
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
276
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
277
277
|
handler: ({ value }) => isToday_1.default(DateHelper_1.parseDateValue(value)),
|
|
278
278
|
},
|
|
279
279
|
{
|
|
@@ -281,7 +281,7 @@ exports.SystemPredicateDefs = [
|
|
|
281
281
|
label: 'Yesterday',
|
|
282
282
|
icon: { path: 'calendar' },
|
|
283
283
|
columnScope: { DataTypes: ['Date'] },
|
|
284
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
284
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
285
285
|
handler: ({ value }) => isYesterday_1.default(DateHelper_1.parseDateValue(value)),
|
|
286
286
|
},
|
|
287
287
|
{
|
|
@@ -289,7 +289,7 @@ exports.SystemPredicateDefs = [
|
|
|
289
289
|
label: 'Tomorrow',
|
|
290
290
|
icon: { path: 'calendar' },
|
|
291
291
|
columnScope: { DataTypes: ['Date'] },
|
|
292
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
292
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
293
293
|
handler: ({ value }) => isTomorrow_1.default(DateHelper_1.parseDateValue(value)),
|
|
294
294
|
},
|
|
295
295
|
{
|
|
@@ -297,7 +297,7 @@ exports.SystemPredicateDefs = [
|
|
|
297
297
|
label: 'This Week',
|
|
298
298
|
icon: { path: 'calendar' },
|
|
299
299
|
columnScope: { DataTypes: ['Date'] },
|
|
300
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
300
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
301
301
|
handler: ({ value }) => isThisWeek_1.default(DateHelper_1.parseDateValue(value)),
|
|
302
302
|
},
|
|
303
303
|
{
|
|
@@ -305,7 +305,7 @@ exports.SystemPredicateDefs = [
|
|
|
305
305
|
label: 'This Month',
|
|
306
306
|
icon: { path: 'calendar' },
|
|
307
307
|
columnScope: { DataTypes: ['Date'] },
|
|
308
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
308
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
309
309
|
handler: ({ value }) => isThisMonth_1.default(DateHelper_1.parseDateValue(value)),
|
|
310
310
|
},
|
|
311
311
|
{
|
|
@@ -313,7 +313,7 @@ exports.SystemPredicateDefs = [
|
|
|
313
313
|
label: 'This Quarter',
|
|
314
314
|
icon: { path: 'calendar' },
|
|
315
315
|
columnScope: { DataTypes: ['Date'] },
|
|
316
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
316
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
317
317
|
handler: ({ value }) => isThisQuarter_1.default(DateHelper_1.parseDateValue(value)),
|
|
318
318
|
},
|
|
319
319
|
{
|
|
@@ -321,7 +321,7 @@ exports.SystemPredicateDefs = [
|
|
|
321
321
|
label: 'This Year',
|
|
322
322
|
icon: { path: 'calendar' },
|
|
323
323
|
columnScope: { DataTypes: ['Date'] },
|
|
324
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
324
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
325
325
|
handler: ({ value }) => isThisYear_1.default(DateHelper_1.parseDateValue(value)),
|
|
326
326
|
},
|
|
327
327
|
{
|
|
@@ -329,7 +329,7 @@ exports.SystemPredicateDefs = [
|
|
|
329
329
|
label: 'In Past',
|
|
330
330
|
icon: { path: 'calendar' },
|
|
331
331
|
columnScope: { DataTypes: ['Date'] },
|
|
332
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
332
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
333
333
|
handler: ({ value }) => isPast_1.default(DateHelper_1.parseDateValue(value)),
|
|
334
334
|
},
|
|
335
335
|
{
|
|
@@ -337,7 +337,7 @@ exports.SystemPredicateDefs = [
|
|
|
337
337
|
label: 'In Future',
|
|
338
338
|
icon: { path: 'calendar' },
|
|
339
339
|
columnScope: { DataTypes: ['Date'] },
|
|
340
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
340
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
341
341
|
handler: ({ value }) => isFuture_1.default(DateHelper_1.parseDateValue(value)),
|
|
342
342
|
},
|
|
343
343
|
{
|
|
@@ -345,7 +345,7 @@ exports.SystemPredicateDefs = [
|
|
|
345
345
|
label: 'After',
|
|
346
346
|
icon: { path: 'greater-than' },
|
|
347
347
|
columnScope: { DataTypes: ['Date'] },
|
|
348
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
348
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
349
349
|
inputs: [{ type: 'date' }],
|
|
350
350
|
handler: ({ value, inputs }) => isAfter_1.default(DateHelper_1.parseDateValue(value), new Date(inputs[0])),
|
|
351
351
|
toString: ({ inputs }) => `> ${inputs[0]}`,
|
|
@@ -355,7 +355,7 @@ exports.SystemPredicateDefs = [
|
|
|
355
355
|
label: 'Before',
|
|
356
356
|
icon: { path: 'less-than' },
|
|
357
357
|
columnScope: { DataTypes: ['Date'] },
|
|
358
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
358
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
359
359
|
inputs: [{ type: 'date' }],
|
|
360
360
|
handler: ({ value, inputs }) => isBefore_1.default(DateHelper_1.parseDateValue(value), new Date(inputs[0])),
|
|
361
361
|
toString: ({ inputs }) => `< ${inputs[0]}`,
|
|
@@ -365,7 +365,7 @@ exports.SystemPredicateDefs = [
|
|
|
365
365
|
label: 'Equals',
|
|
366
366
|
icon: { path: 'equal' },
|
|
367
367
|
columnScope: { DataTypes: ['Date'] },
|
|
368
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
368
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
369
369
|
inputs: [{ type: 'date' }],
|
|
370
370
|
handler: ({ value, inputs }) => isSameDay_1.default(DateHelper_1.parseDateValue(value), new Date(inputs[0])),
|
|
371
371
|
toString: ({ inputs }) => `= ${inputs[0]}`,
|
|
@@ -375,7 +375,7 @@ exports.SystemPredicateDefs = [
|
|
|
375
375
|
label: 'NotEquals',
|
|
376
376
|
icon: { path: 'not-equal' },
|
|
377
377
|
columnScope: { DataTypes: ['Date'] },
|
|
378
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
378
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
379
379
|
inputs: [{ type: 'date' }],
|
|
380
380
|
handler: ({ value, inputs }) => !isSameDay_1.default(DateHelper_1.parseDateValue(value), new Date(inputs[0])),
|
|
381
381
|
toString: ({ inputs }) => `!= ${inputs[0]}`,
|
|
@@ -385,7 +385,7 @@ exports.SystemPredicateDefs = [
|
|
|
385
385
|
label: 'Next Work Day',
|
|
386
386
|
icon: { path: 'calendar' },
|
|
387
387
|
columnScope: { DataTypes: ['Date'] },
|
|
388
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
388
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
389
389
|
handler: ({ value, api }) => isSameDay_1.default(DateHelper_1.parseDateValue(value), CalendarHelper_1.default.getNextWorkingDay()),
|
|
390
390
|
},
|
|
391
391
|
{
|
|
@@ -393,7 +393,7 @@ exports.SystemPredicateDefs = [
|
|
|
393
393
|
label: 'Last Work Day',
|
|
394
394
|
icon: { path: 'calendar' },
|
|
395
395
|
columnScope: { DataTypes: ['Date'] },
|
|
396
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
396
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
397
397
|
handler: ({ value, api }) => isSameDay_1.default(DateHelper_1.parseDateValue(value), CalendarHelper_1.default.getPreviousWorkingDay()),
|
|
398
398
|
},
|
|
399
399
|
{
|
|
@@ -411,7 +411,7 @@ exports.SystemPredicateDefs = [
|
|
|
411
411
|
label: 'True',
|
|
412
412
|
icon: { text: 'T' },
|
|
413
413
|
columnScope: { DataTypes: ['Boolean'] },
|
|
414
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
414
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
415
415
|
handler: ({ value }) => Boolean(value) === true,
|
|
416
416
|
},
|
|
417
417
|
{
|
|
@@ -419,7 +419,7 @@ exports.SystemPredicateDefs = [
|
|
|
419
419
|
label: 'False',
|
|
420
420
|
icon: { text: 'F' },
|
|
421
421
|
columnScope: { DataTypes: ['Boolean'] },
|
|
422
|
-
moduleScope: ['filter', 'alert', 'conditionalstyle'],
|
|
422
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
423
423
|
handler: ({ value }) => Boolean(value) === false,
|
|
424
424
|
},
|
|
425
425
|
{
|
|
@@ -445,14 +445,14 @@ exports.SystemPredicateDefs = [
|
|
|
445
445
|
id: 'Any',
|
|
446
446
|
label: 'Any Change',
|
|
447
447
|
columnScope: { All: true },
|
|
448
|
-
moduleScope: ['alert'],
|
|
448
|
+
moduleScope: ['alert', 'flashingcell'],
|
|
449
449
|
handler: ({ value, oldValue }) => value !== oldValue,
|
|
450
450
|
},
|
|
451
451
|
{
|
|
452
452
|
id: 'PercentChange',
|
|
453
453
|
label: 'Percent Change',
|
|
454
454
|
columnScope: { DataTypes: ['Number'] },
|
|
455
|
-
moduleScope: ['alert'],
|
|
455
|
+
moduleScope: ['alert', 'flashingcell'],
|
|
456
456
|
inputs: [{ type: 'number' }],
|
|
457
457
|
handler: ({ value, oldValue, inputs }) => {
|
|
458
458
|
const change = Math.abs(Number(value) - Number(oldValue));
|
|
@@ -6,6 +6,7 @@ var DataType;
|
|
|
6
6
|
(function (DataType) {
|
|
7
7
|
DataType["String"] = "String";
|
|
8
8
|
DataType["Number"] = "Number";
|
|
9
|
+
// FIXME AFL keep it or extend it to support https://www.ag-grid.com/javascript-data-grid/sparklines-data/ ?
|
|
9
10
|
DataType["NumberArray"] = "NumberArray";
|
|
10
11
|
DataType["Boolean"] = "Boolean";
|
|
11
12
|
DataType["Date"] = "Date";
|
|
@@ -6,12 +6,6 @@ import { AdaptableApi } from '../../Api/AdaptableApi';
|
|
|
6
6
|
import { SelectedCellInfo } from '../Selection/SelectedCellInfo';
|
|
7
7
|
import { SelectedRowInfo } from '../Selection/SelectedRowInfo';
|
|
8
8
|
import { Column, RowNode } from '@ag-grid-community/all-modules';
|
|
9
|
-
export interface MenuContext {
|
|
10
|
-
/**
|
|
11
|
-
* The Adaptable Api - included as a convenience
|
|
12
|
-
*/
|
|
13
|
-
adaptableApi: AdaptableApi;
|
|
14
|
-
}
|
|
15
9
|
/**
|
|
16
10
|
* Menu item used by Adaptable in both Column and Context Menus
|
|
17
11
|
*/
|
|
@@ -46,11 +40,11 @@ export interface AdaptableMenuItem {
|
|
|
46
40
|
subItems?: AdaptableMenuItem[];
|
|
47
41
|
}
|
|
48
42
|
/**
|
|
49
|
-
* Menu Item
|
|
43
|
+
* Menu Item which is added to Column Header or Context Menu, and can contain sub items
|
|
50
44
|
*/
|
|
51
|
-
export interface UserMenuItem<CONTEXT_TYPE extends
|
|
45
|
+
export interface UserMenuItem<CONTEXT_TYPE extends BaseMenuContext> {
|
|
52
46
|
/**
|
|
53
|
-
*
|
|
47
|
+
* Text that will appear in the Menu Item
|
|
54
48
|
*/
|
|
55
49
|
label: string | ((context: CONTEXT_TYPE) => string);
|
|
56
50
|
/**
|
|
@@ -66,18 +60,24 @@ export interface UserMenuItem<CONTEXT_TYPE extends MenuContext> {
|
|
|
66
60
|
*/
|
|
67
61
|
disabled?: (menuContext: CONTEXT_TYPE) => boolean;
|
|
68
62
|
/**
|
|
69
|
-
* Optional icon to
|
|
63
|
+
* Optional icon to display
|
|
70
64
|
*/
|
|
71
65
|
icon?: string;
|
|
72
66
|
/**
|
|
73
|
-
* Array of Menu Items, enabling
|
|
67
|
+
* Array of Menu Items, enabling limitless levels of menus
|
|
74
68
|
*/
|
|
75
69
|
subMenuItems?: UserMenuItem<CONTEXT_TYPE>[];
|
|
76
70
|
}
|
|
71
|
+
export interface BaseMenuContext {
|
|
72
|
+
/**
|
|
73
|
+
* The Adaptable Api - included as a convenience
|
|
74
|
+
*/
|
|
75
|
+
adaptableApi: AdaptableApi;
|
|
76
|
+
}
|
|
77
77
|
/**
|
|
78
|
-
* Provides full details about the Column
|
|
78
|
+
* Provides full details about the Column in which the Column Menu will appear
|
|
79
79
|
*/
|
|
80
|
-
export interface ColumnMenuContext extends
|
|
80
|
+
export interface ColumnMenuContext extends BaseMenuContext {
|
|
81
81
|
/**
|
|
82
82
|
* Current Adaptable Column
|
|
83
83
|
*/
|
|
@@ -92,9 +92,9 @@ export interface ColumnMenuContext extends MenuContext {
|
|
|
92
92
|
isRowGroupColumn: boolean;
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
95
|
-
* Provides full details about current cell (and selected cells) where Context Menu will appear
|
|
95
|
+
* Provides full details about current cell (and selected cells) where the Context Menu will appear
|
|
96
96
|
*/
|
|
97
|
-
export interface ContextMenuContext extends
|
|
97
|
+
export interface ContextMenuContext extends BaseMenuContext {
|
|
98
98
|
/**
|
|
99
99
|
* Cell that has been clicked; contains cell value
|
|
100
100
|
*/
|
|
@@ -131,10 +131,6 @@ export interface ContextMenuContext extends MenuContext {
|
|
|
131
131
|
* Value of Primary Key column in current row
|
|
132
132
|
*/
|
|
133
133
|
primaryKeyValue: any;
|
|
134
|
-
/**
|
|
135
|
-
* The Adaptable Api - included as a convenience
|
|
136
|
-
*/
|
|
137
|
-
adaptableApi: AdaptableApi;
|
|
138
134
|
/**
|
|
139
135
|
* Currently selected cells in the grid
|
|
140
136
|
*/
|
|
@@ -5,10 +5,10 @@ export declare type AdaptableDashboardToolbars = AdaptableDashboardToolbar[];
|
|
|
5
5
|
/**
|
|
6
6
|
* List of all the Toolbars that Adaptable provides
|
|
7
7
|
*/
|
|
8
|
-
export declare type AdaptableDashboardToolbar = 'Alert' | 'BulkUpdate' | 'CellSummary' | '
|
|
8
|
+
export declare type AdaptableDashboardToolbar = 'Alert' | 'BulkUpdate' | 'CellSummary' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'Glue42' | 'IPushPull' | 'Layout' | 'OpenFin' | 'Query' | 'QuickSearch' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'Theme';
|
|
9
9
|
export declare const ALL_TOOLBARS: AdaptableDashboardToolbar[];
|
|
10
10
|
export declare type AdaptableToolPanels = AdaptableToolPanel[];
|
|
11
|
-
export declare type AdaptableToolPanel = 'Alert' | 'BulkUpdate' | 'CellSummary' | '
|
|
11
|
+
export declare type AdaptableToolPanel = 'Alert' | 'BulkUpdate' | 'CellSummary' | 'Dashboard' | 'DataChangeHistory' | 'Export' | 'Filter' | 'IPushPull' | 'Layout' | 'OpenFin' | 'Query' | 'QuickSearch' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'Theme';
|
|
12
12
|
export declare const ALL_TOOL_PANELS: AdaptableToolPanels;
|
|
13
13
|
/**
|
|
14
14
|
* Adaptable Module Button collection
|
|
@@ -19,10 +19,10 @@ export declare type AdaptableModuleButtons = AdaptableModuleButton[];
|
|
|
19
19
|
/**
|
|
20
20
|
* List of all the Module buttons Adaptable provides - each Module has a popup for which this is a shortcut button
|
|
21
21
|
*/
|
|
22
|
-
export declare type AdaptableModuleButton = 'Alert' | 'FlashingCell' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | '
|
|
22
|
+
export declare type AdaptableModuleButton = 'Alert' | 'FlashingCell' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme';
|
|
23
23
|
export declare type AdaptableStateKeys = AdaptableStateKey[];
|
|
24
|
-
export declare type AdaptableStateKey = 'Alert' | 'FlashingCell' | 'Application' | 'CalculatedColumn' | '
|
|
25
|
-
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | '
|
|
24
|
+
export declare type AdaptableStateKey = 'Alert' | 'FlashingCell' | 'Application' | 'CalculatedColumn' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataSource' | 'Export' | 'Filter' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'Theme' | 'ToolPanel';
|
|
25
|
+
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
26
26
|
export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
27
27
|
export declare type TypeHint<Base, Literals> = (Base & {
|
|
28
28
|
__subType?: true;
|
|
@@ -8,7 +8,6 @@ exports.ALL_TOOLBARS = [
|
|
|
8
8
|
'Alert',
|
|
9
9
|
'BulkUpdate',
|
|
10
10
|
'CellSummary',
|
|
11
|
-
'Chart',
|
|
12
11
|
'DataChangeHistory',
|
|
13
12
|
'DataSource',
|
|
14
13
|
'Export',
|
|
@@ -28,7 +27,6 @@ exports.ALL_TOOL_PANELS = [
|
|
|
28
27
|
'Alert',
|
|
29
28
|
'BulkUpdate',
|
|
30
29
|
'CellSummary',
|
|
31
|
-
'Chart',
|
|
32
30
|
'Dashboard',
|
|
33
31
|
'DataChangeHistory',
|
|
34
32
|
'Export',
|
|
@@ -3,14 +3,13 @@ import { AdaptableStyle } from './Common/AdaptableStyle';
|
|
|
3
3
|
import { AdaptablePredicate, AdaptableScope } from '../types';
|
|
4
4
|
import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
5
5
|
import { AdaptableBooleanQuery } from './Common/AdaptableQuery';
|
|
6
|
-
import { SystemAlertPredicateId } from './AlertState';
|
|
7
6
|
import { TypeHint } from './Common/Types';
|
|
8
7
|
import { SuspendableObject } from '../../types';
|
|
9
8
|
export interface FlashingCellDefinitionPredicate extends AdaptablePredicate {
|
|
10
|
-
PredicateId: TypeHint<string,
|
|
9
|
+
PredicateId: TypeHint<string, SystemFlashingCellPredicateId>;
|
|
11
10
|
}
|
|
12
11
|
/**
|
|
13
|
-
* The
|
|
12
|
+
* The Flashing Cell Rule - either an AdaptablePredicate or an AdaptableQuery
|
|
14
13
|
*/
|
|
15
14
|
export declare type FlashingCellRule = XOR<{
|
|
16
15
|
Predicate: FlashingCellDefinitionPredicate;
|
|
@@ -20,15 +19,23 @@ export declare type FlashingCellRule = XOR<{
|
|
|
20
19
|
*/
|
|
21
20
|
export interface FlashingCellState extends ConfigState {
|
|
22
21
|
/**
|
|
23
|
-
* Flashing
|
|
22
|
+
* Flashing Cell Definitions - will colour cells/rows when rule is met
|
|
24
23
|
* @defaultValue null
|
|
25
24
|
*/
|
|
26
25
|
FlashingCellDefinitions?: FlashingCellDefinition[];
|
|
27
26
|
}
|
|
28
27
|
/**
|
|
29
|
-
*
|
|
28
|
+
* The Flashing Cell Definition
|
|
30
29
|
*/
|
|
31
|
-
export interface
|
|
30
|
+
export interface FlashingCellDefinition extends SuspendableObject {
|
|
31
|
+
/**
|
|
32
|
+
* Where Flashing Cell can be triggered: one, some or all columns or DataTypes
|
|
33
|
+
*/
|
|
34
|
+
Scope: AdaptableScope;
|
|
35
|
+
/**
|
|
36
|
+
* When Flashing Cell should be triggered
|
|
37
|
+
*/
|
|
38
|
+
Rule: FlashingCellRule;
|
|
32
39
|
/**
|
|
33
40
|
* Should a cell or whole row flash
|
|
34
41
|
* @defaultValue 'cell'
|
|
@@ -55,16 +62,4 @@ export interface FlashingCellProperties {
|
|
|
55
62
|
*/
|
|
56
63
|
FlashDuration?: number | 'always';
|
|
57
64
|
}
|
|
58
|
-
|
|
59
|
-
* The Flashing Cell Definition
|
|
60
|
-
*/
|
|
61
|
-
export interface FlashingCellDefinition extends FlashingCellProperties, SuspendableObject {
|
|
62
|
-
/**
|
|
63
|
-
* Where Alert can be triggered: one, some or all columns or DataTypes
|
|
64
|
-
*/
|
|
65
|
-
Scope: AdaptableScope;
|
|
66
|
-
/**
|
|
67
|
-
* When Alert should be triggered
|
|
68
|
-
*/
|
|
69
|
-
Rule: FlashingCellRule;
|
|
70
|
-
}
|
|
65
|
+
export declare type SystemFlashingCellPredicateId = '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' | 'PercentChange' | 'IsNumeric' | 'Any';
|
|
@@ -16,8 +16,6 @@ import { PlusMinusState } from './PlusMinusState';
|
|
|
16
16
|
import { QuickSearchState } from './QuickSearchState';
|
|
17
17
|
import { ShortcutState } from './ShortcutState';
|
|
18
18
|
import { ThemeState } from './ThemeState';
|
|
19
|
-
import { ChartState } from './ChartState';
|
|
20
|
-
import { SparklineColumnState } from './SparklineColumnState';
|
|
21
19
|
import { ToolPanelState } from './ToolPanelState';
|
|
22
20
|
import { QueryState } from './QueryState';
|
|
23
21
|
/**
|
|
@@ -36,10 +34,6 @@ export interface PredefinedConfig {
|
|
|
36
34
|
* Supplies a collection of *CalculatedColumn* objects that will display a value based on other cells in the row (using a Calculated Column Expression)
|
|
37
35
|
*/
|
|
38
36
|
CalculatedColumn?: CalculatedColumnState;
|
|
39
|
-
/**
|
|
40
|
-
* Collection of Charts to enable seeing grid data visually in chart format (requires Chart plugin)
|
|
41
|
-
*/
|
|
42
|
-
Chart?: ChartState;
|
|
43
37
|
/**
|
|
44
38
|
* Supplies a collection of *ConditionalStyle* objects to provides columns and rows with a particular style when the data matches a given rule
|
|
45
39
|
*/
|
|
@@ -96,10 +90,6 @@ export interface PredefinedConfig {
|
|
|
96
90
|
* Supplies a collection of *Shortcut* objects to aid data entry and prevent 'fat finger' issues
|
|
97
91
|
*/
|
|
98
92
|
Shortcut?: ShortcutState;
|
|
99
|
-
/**
|
|
100
|
-
* Columns - where data type is a numeric array - which is rendered as a Sparkline Chart - only populated at Design Time
|
|
101
|
-
*/
|
|
102
|
-
SparklineColumn?: SparklineColumnState;
|
|
103
93
|
/**
|
|
104
94
|
* Specifies the current Theme and lists the User and System themes available for selection.
|
|
105
95
|
*/
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { PreviewInfo } from '../Utilities/Interface/Preview';
|
|
2
|
-
import { ChartVisibility } from './Common/ChartEnums';
|
|
3
2
|
import { InternalState } from './InternalState';
|
|
4
|
-
import { ChartData } from './ChartState';
|
|
5
3
|
import { BulkUpdateValidationResult } from '../Strategy/Interface/IBulkUpdateModule';
|
|
6
4
|
import { DataChangedInfo, GridCell } from '../types';
|
|
7
5
|
import type { IPushPullState, IPushPullReport, IPushPullDomain } from './IPushPullState';
|
|
@@ -38,8 +36,6 @@ export interface SystemState extends InternalState, IPushPullState, Glue42State,
|
|
|
38
36
|
SmartEditPreviewInfo: PreviewInfo;
|
|
39
37
|
BulkUpdateValidationResult: BulkUpdateValidationResult;
|
|
40
38
|
BulkUpdatePreviewInfo: PreviewInfo;
|
|
41
|
-
ChartData: ChartData;
|
|
42
|
-
ChartVisibility: ChartVisibility;
|
|
43
39
|
CalculatedColumnErrorMessage: string;
|
|
44
40
|
ReportErrorMessage: string;
|
|
45
41
|
LastAppliedShortCut: GridCell | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ConfigState } from './ConfigState';
|
|
2
2
|
import { AdaptableObject } from './Common/AdaptableObject';
|
|
3
|
+
import { TypeHint } from './Common/Types';
|
|
3
4
|
/**
|
|
4
5
|
* Theme section of Adaptable State
|
|
5
6
|
*/
|
|
@@ -7,7 +8,7 @@ export interface ThemeState extends ConfigState {
|
|
|
7
8
|
/**
|
|
8
9
|
* Name of current theme (or theme to set at startup); leave blank if using 'Light Theme', set to 'dark' for 'Dark Theme' or provide name of Custom Theme
|
|
9
10
|
*/
|
|
10
|
-
CurrentTheme?: string
|
|
11
|
+
CurrentTheme?: TypeHint<string, 'light' | 'dark'>;
|
|
11
12
|
/**
|
|
12
13
|
* Which, if any, of the 2 themes shipped by Adaptable should be available; leave unset to provide both, or an empty array to provide neither.
|
|
13
14
|
*/
|
|
@@ -105,7 +105,7 @@ const initialState = {
|
|
|
105
105
|
IsHidden: false,
|
|
106
106
|
IsInline: false,
|
|
107
107
|
FloatingPosition: { x: 100, y: 100 },
|
|
108
|
-
ModuleButtons:
|
|
108
|
+
ModuleButtons: ['SettingsPanel'],
|
|
109
109
|
DashboardTitle: '',
|
|
110
110
|
};
|
|
111
111
|
exports.DashboardReducer = (state = initialState, action) => {
|
|
@@ -53,8 +53,6 @@ export interface PopupShowConfirmationAction extends Redux.Action {
|
|
|
53
53
|
}
|
|
54
54
|
export interface PopupClearParamAction extends Redux.Action {
|
|
55
55
|
}
|
|
56
|
-
export interface PopupChartClearParamAction extends Redux.Action {
|
|
57
|
-
}
|
|
58
56
|
export declare const PopupShowScreen: (componentModule?: AdaptableModule, componentName?: string, params?: ModuleParams, popupProps?: {
|
|
59
57
|
[key: string]: any;
|
|
60
58
|
}) => PopupShowScreenAction;
|