@adaptabletools/adaptable-cjs 17.0.0-canary.3 → 18.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 +1264 -1202
- package/base.css.map +1 -1
- package/index.css +2099 -22
- package/index.css.map +1 -1
- package/package.json +5 -4
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +5 -0
- package/src/AdaptableOptions/AlertOptions.d.ts +7 -7
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +9 -9
- package/src/AdaptableOptions/CommentsOptions.d.ts +28 -0
- package/src/AdaptableOptions/EditOptions.d.ts +6 -6
- package/src/AdaptableOptions/GridFilterOptions.d.ts +13 -8
- package/src/AdaptableOptions/GroupingOptions.d.ts +9 -9
- package/src/AdaptableOptions/InteropioPluginOptions.d.ts +10 -0
- package/src/AdaptableOptions/MenuOptions.d.ts +18 -4
- package/src/AdaptableOptions/MenuOptions.js +14 -6
- package/src/AdaptableOptions/NotesOptions.d.ts +2 -9
- package/src/Api/AdaptableApi.d.ts +6 -1
- package/src/Api/CommentApi.d.ts +58 -0
- package/src/Api/EventApi.d.ts +48 -12
- package/src/Api/Events/CalculatedColumnChanged.d.ts +19 -0
- package/src/Api/Events/CellSelectionChanged.d.ts +11 -0
- package/src/Api/Events/CommentsChangedInfo.d.ts +5 -0
- package/src/Api/Events/LiveDataChanged.d.ts +3 -3
- package/src/Api/Events/RowSelectionChanged.d.ts +11 -0
- package/src/Api/GridApi.d.ts +0 -6
- package/src/Api/GridFilterApi.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -6
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/CommentsApiImpl.d.ts +15 -0
- package/src/Api/Implementation/CommentsApiImpl.js +46 -0
- package/src/Api/Implementation/ExpressionApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExpressionApiImpl.js +3 -4
- package/src/Api/Implementation/GridApiImpl.d.ts +0 -1
- package/src/Api/Implementation/GridApiImpl.js +0 -4
- package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridFilterApiImpl.js +1 -1
- package/src/Api/Implementation/NotesApiImpl.d.ts +2 -6
- package/src/Api/Implementation/NotesApiImpl.js +1 -15
- package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -0
- package/src/Api/Implementation/OptionsApiImpl.js +3 -0
- package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -6
- package/src/Api/Implementation/PluginsApiImpl.js +3 -15
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -12
- package/src/Api/Implementation/ScheduleApiImpl.js +0 -36
- package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ThemeApiImpl.js +3 -0
- package/src/Api/Internal/ActionRowInternalApi.js +1 -1
- package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
- package/src/Api/Internal/AdaptableInternalApi.js +3 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.js +16 -0
- package/src/Api/Internal/DashboardInternalApi.d.ts +1 -0
- package/src/Api/Internal/DashboardInternalApi.js +5 -0
- package/src/Api/Internal/DataImportInternalApi.js +2 -0
- package/src/Api/Internal/DataSetInternalApi.js +2 -1
- package/src/Api/Internal/GridInternalApi.d.ts +3 -1
- package/src/Api/Internal/GridInternalApi.js +32 -9
- package/src/Api/Internal/LayoutInternalApi.d.ts +2 -2
- package/src/Api/Internal/LayoutInternalApi.js +11 -11
- package/src/Api/InteropioPluginApi.d.ts +10 -0
- package/src/Api/{NotesAPi.d.ts → NotesApi.d.ts} +19 -21
- package/src/Api/OptionsApi.d.ts +5 -0
- package/src/Api/PluginsApi.d.ts +3 -13
- package/src/Api/ScheduleApi.d.ts +1 -48
- package/src/Api/ThemeApi.d.ts +5 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +4 -2
- package/src/PredefinedConfig/CellAddress.d.ts +13 -0
- package/src/PredefinedConfig/CellAddress.js +5 -0
- package/src/PredefinedConfig/CommentState.d.ts +48 -0
- package/src/PredefinedConfig/CommentState.js +2 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +2 -1
- package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
- package/src/PredefinedConfig/Common/Enums.js +0 -1
- package/src/PredefinedConfig/Common/Schedule.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +5 -5
- package/src/PredefinedConfig/Common/Types.js +0 -2
- package/src/PredefinedConfig/NotesState.d.ts +0 -13
- package/src/PredefinedConfig/PredefinedConfig.d.ts +3 -0
- package/src/PredefinedConfig/ScheduleState.d.ts +0 -5
- package/src/PredefinedConfig/SystemState.d.ts +5 -6
- package/src/PredefinedConfig/ThemeState.d.ts +1 -1
- package/src/Redux/ActionsReducers/CommentsRedux.d.ts +79 -0
- package/src/Redux/ActionsReducers/CommentsRedux.js +189 -0
- package/src/Redux/ActionsReducers/NotesRedux.js +1 -2
- package/src/Redux/ActionsReducers/PluginsRedux.d.ts +0 -48
- package/src/Redux/ActionsReducers/PluginsRedux.js +1 -49
- package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +16 -0
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +47 -1
- package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +0 -53
- package/src/Redux/ActionsReducers/ScheduleRedux.js +2 -90
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +23 -12
- package/src/Redux/ActionsReducers/SystemRedux.js +55 -23
- package/src/Redux/Store/AdaptableStore.d.ts +2 -2
- package/src/Redux/Store/AdaptableStore.js +107 -46
- package/src/Strategy/CommentsModule.d.ts +16 -0
- package/src/Strategy/CommentsModule.js +82 -0
- package/src/Strategy/LayoutModule.d.ts +12 -4
- package/src/Strategy/LayoutModule.js +19 -14
- package/src/Strategy/NotesModule.d.ts +0 -13
- package/src/Strategy/NotesModule.js +9 -88
- package/src/Strategy/PlusMinusModule.js +2 -0
- package/src/Strategy/ScheduleModule.js +0 -23
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.d.ts +2 -1
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +14 -5
- package/src/Strategy/Utilities/getExpressionViewItems.js +8 -2
- package/src/Utilities/Constants/ConfigConstants.d.ts +1 -0
- package/src/Utilities/Constants/ConfigConstants.js +2 -1
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +8 -3
- package/src/Utilities/Constants/ModuleConstants.d.ts +3 -3
- package/src/Utilities/Constants/ModuleConstants.js +4 -4
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -3
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -0
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +7 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +6 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.js +18 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +12 -12
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +8 -1
- package/src/Utilities/Helpers/PreviewHelper.js +5 -2
- package/src/Utilities/ObjectFactory.d.ts +19 -22
- package/src/Utilities/ObjectFactory.js +51 -60
- package/src/Utilities/Services/CellPopupService.d.ts +23 -0
- package/src/Utilities/Services/CellPopupService.js +138 -0
- package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IThemeService.d.ts +8 -0
- package/src/Utilities/Services/ModuleService.js +1 -3
- package/src/Utilities/Services/ReportService.d.ts +1 -1
- package/src/Utilities/Services/ThemeService.d.ts +3 -0
- package/src/Utilities/Services/ThemeService.js +33 -1
- package/src/Utilities/Services/ValidationService.js +11 -11
- package/src/View/AdaptableView.js +3 -3
- package/src/View/AdaptableViewFactory.js +4 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -2
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +1 -1
- package/src/View/Charting/useChartingElements.js +8 -3
- package/src/View/Comments/CommentsEditor.d.ts +7 -0
- package/src/View/Comments/CommentsEditor.js +100 -0
- package/src/View/Comments/CommentsPopup.d.ts +2 -0
- package/src/View/Comments/CommentsPopup.js +87 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -1
- package/src/View/Components/CellPopup/index.js +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +8 -2
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -3
- package/src/View/Components/FilterForm/QuickFilterForm.js +5 -4
- package/src/View/Components/FilterForm/QuickFilterValues.d.ts +2 -2
- package/src/View/Components/FilterForm/QuickFilterValues.js +4 -3
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.d.ts +5 -0
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +67 -0
- package/src/View/Components/Popups/GridCellPopup/index.d.ts +1 -0
- package/src/View/Components/Popups/GridCellPopup/index.js +5 -0
- package/src/View/Components/Selectors/ColumnSelector.d.ts +1 -0
- package/src/View/Components/Selectors/ColumnSelector.js +2 -1
- package/src/View/Components/Selectors/PermittedValuesSelector.d.ts +5 -4
- package/src/View/Components/Selectors/PermittedValuesSelector.js +25 -3
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -4
- package/src/View/Dashboard/ModuleToolbarWrapper.js +1 -1
- package/src/View/Dashboard/PinnedDashboard.js +2 -1
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +2 -2
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +3 -1
- package/src/View/GridFilter/GridFilterExpressionEditor.js +1 -1
- package/src/View/GridFilter/GridFilterPopup.js +10 -8
- package/src/View/GridFilter/GridFilterViewPanel.js +14 -11
- package/src/View/GridFilter/NamedQuerySelector.js +1 -1
- package/src/View/GridFilter/useGridFilterExpressionEditor.d.ts +3 -0
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +17 -6
- package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.js +5 -23
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +3 -2
- package/src/View/Layout/Wizard/getGridFilterPreview.d.ts +6 -0
- package/src/View/Layout/Wizard/getGridFilterPreview.js +16 -0
- package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +4 -4
- package/src/View/NamedQuery/EditCurrentQueryButton.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Notes/NoteEditor.d.ts +8 -0
- package/src/View/Notes/NoteEditor.js +33 -0
- package/src/View/Notes/NotesPopup.d.ts +2 -2
- package/src/View/Notes/NotesPopup.js +78 -55
- package/src/View/PlusMinus/MovePlusMinus.d.ts +7 -0
- package/src/View/PlusMinus/MovePlusMinus.js +27 -0
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +0 -9
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +0 -4
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +2 -8
- package/src/View/Schedule/Wizard/ScheduleWizard.js +0 -8
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +3 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +1 -2
- package/src/agGrid/Adaptable.d.ts +7 -0
- package/src/agGrid/Adaptable.js +49 -35
- package/src/agGrid/BadgeRenderer.js +9 -5
- package/src/agGrid/agGridHelper.d.ts +2 -1
- package/src/agGrid/agGridHelper.js +15 -3
- package/src/agGrid/agGridMenuHelper.d.ts +2 -0
- package/src/agGrid/agGridMenuHelper.js +73 -25
- package/src/components/Datepicker/index.js +4 -4
- package/src/components/ExpressionEditor/ExpressionPreview.d.ts +7 -0
- package/src/components/ExpressionEditor/ExpressionPreview.js +25 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +2 -2
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +6 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +40 -11
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +14 -2
- package/src/components/ExpressionEditor/QueryBuilder/booleanExpressions.js +1 -0
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +1 -1
- package/src/components/ExpressionEditor/index.js +4 -7
- package/src/components/InputGroup/InputGroup.d.ts +7 -0
- package/src/components/InputGroup/InputGroup.js +12 -0
- package/src/components/InputGroup/index.d.ts +1 -0
- package/src/components/InputGroup/index.js +4 -0
- package/src/components/OverlayTrigger/index.js +7 -2
- package/src/components/Select/Select.d.ts +1 -2
- package/src/components/Select/Select.js +63 -23
- package/src/components/Toastify/index.d.ts +2 -2
- package/src/components/Toastify/index.js +1 -1
- package/src/components/icons/comments.d.ts +3 -0
- package/src/components/icons/comments.js +7 -0
- package/src/components/icons/index.js +3 -1
- package/src/env.d.ts +3 -1
- package/src/env.js +3 -1
- package/src/metamodel/adaptable.metamodel.d.ts +72 -158
- package/src/metamodel/adaptable.metamodel.js +128 -260
- package/src/parser/src/parser.d.ts +2 -0
- package/src/parser/src/parser.js +1880 -705
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +5 -2
- package/src/parser/src/predicate/types.d.ts +1 -1
- package/src/parser/src/types.d.ts +1 -1
- package/src/renderReactRoot.js +15 -0
- package/src/themes/index.js +4 -0
- package/src/types.d.ts +10 -13
- package/themes/dark.css +4 -4
- package/themes/dark.css.map +1 -1
- package/themes/light.css +1 -1
- package/themes/light.css.map +1 -1
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/AdaptableOptions/FinsemblePluginOptions.d.ts +0 -35
- package/src/AdaptableOptions/Glue42PluginOptions.d.ts +0 -25
- package/src/AdaptableOptions/Glue42WebPluginOptions.d.ts +0 -10
- package/src/Api/Events/SelectionChanged.d.ts +0 -16
- package/src/Api/FinsembleApi.d.ts +0 -10
- package/src/Api/Glue42Api.d.ts +0 -75
- package/src/Api/Glue42WebApi.d.ts +0 -10
- package/src/PredefinedConfig/Glue42State.d.ts +0 -46
- package/src/View/Notes/NotesListing.d.ts +0 -2
- package/src/View/Notes/NotesListing.js +0 -88
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.d.ts +0 -9
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +0 -25
- package/src/bundle-dependencies/bundles/react-toastify/components/CloseButton.d.ts +0 -9
- package/src/bundle-dependencies/bundles/react-toastify/components/Icons.d.ts +0 -24
- package/src/bundle-dependencies/bundles/react-toastify/components/ProgressBar.d.ts +0 -59
- package/src/bundle-dependencies/bundles/react-toastify/components/Toast.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-toastify/components/ToastContainer.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-toastify/components/Transitions.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-toastify/components/index.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-toastify/core/eventManager.d.ts +0 -39
- package/src/bundle-dependencies/bundles/react-toastify/core/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-toastify/core/toast.d.ts +0 -41
- package/src/bundle-dependencies/bundles/react-toastify/hooks/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-toastify/hooks/useToast.d.ts +0 -10
- package/src/bundle-dependencies/bundles/react-toastify/hooks/useToastContainer.d.ts +0 -23
- package/src/bundle-dependencies/bundles/react-toastify/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/index.js +0 -1
- package/src/bundle-dependencies/bundles/react-toastify/inject-style.d.ts +0 -8
- package/src/bundle-dependencies/bundles/react-toastify/types/index.d.ts +0 -269
- package/src/bundle-dependencies/bundles/react-toastify/utils/collapseToast.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/utils/constant.d.ts +0 -23
- package/src/bundle-dependencies/bundles/react-toastify/utils/cssTransition.d.ts +0 -43
- package/src/bundle-dependencies/bundles/react-toastify/utils/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/utils/mapper.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-toastify/utils/propValidator.d.ts +0 -9
- /package/src/AdaptableOptions/{FinsemblePluginOptions.js → CommentsOptions.js} +0 -0
- /package/src/AdaptableOptions/{Glue42PluginOptions.js → InteropioPluginOptions.js} +0 -0
- /package/src/{AdaptableOptions/Glue42WebPluginOptions.js → Api/CommentApi.js} +0 -0
- /package/src/Api/Events/{SelectionChanged.js → CalculatedColumnChanged.js} +0 -0
- /package/src/Api/{FinsembleApi.js → Events/CellSelectionChanged.js} +0 -0
- /package/src/Api/{Glue42Api.js → Events/CommentsChangedInfo.js} +0 -0
- /package/src/Api/{Glue42WebApi.js → Events/RowSelectionChanged.js} +0 -0
- /package/src/Api/Internal/{ExpressionnternalApi.d.ts → ExpressionInternalApi.d.ts} +0 -0
- /package/src/Api/Internal/{ExpressionnternalApi.js → ExpressionInternalApi.js} +0 -0
- /package/src/Api/{NotesAPi.js → InteropioPluginApi.js} +0 -0
- /package/src/{PredefinedConfig/Glue42State.js → Api/NotesApi.js} +0 -0
|
@@ -60,9 +60,6 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
60
60
|
.forEach((iPushPullSchedule) => {
|
|
61
61
|
this.addSchedule(iPushPullSchedule, Enums_1.ScheduleType.ipushpull);
|
|
62
62
|
});
|
|
63
|
-
this.api.scheduleApi.getActiveGlue42Schedules().forEach((glue42Schedule) => {
|
|
64
|
-
this.addSchedule(glue42Schedule, Enums_1.ScheduleType.Glue42);
|
|
65
|
-
});
|
|
66
63
|
this.api.scheduleApi.getActiveOpenFinSchedules().forEach((OpenFinSchedule) => {
|
|
67
64
|
this.addSchedule(OpenFinSchedule, Enums_1.ScheduleType.OpenFin);
|
|
68
65
|
});
|
|
@@ -132,7 +129,6 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
132
129
|
allSchedules.push(...this.api.scheduleApi.getReportSchedules(config));
|
|
133
130
|
}
|
|
134
131
|
allSchedules.push(...this.api.scheduleApi.getIPushPullSchedules(config));
|
|
135
|
-
allSchedules.push(...this.api.scheduleApi.getGlue42Schedules(config));
|
|
136
132
|
allSchedules.push(...this.api.scheduleApi.getOpenFinSchedules(config));
|
|
137
133
|
return allSchedules;
|
|
138
134
|
}
|
|
@@ -163,7 +159,6 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
163
159
|
const exportAcessLevel = entitlementService.getEntitlementAccessLevelForModule(ModuleConstants.ExportModuleId);
|
|
164
160
|
const abObjectTypes = [];
|
|
165
161
|
const ippApi = this.api.pluginsApi.getipushpullPluginApi();
|
|
166
|
-
const glue42Api = this.api.pluginsApi.getGlue42PluginApi();
|
|
167
162
|
const openFinApi = this.api.pluginsApi.getOpenFinPluginApi();
|
|
168
163
|
if (accessLevel !== 'Hidden') {
|
|
169
164
|
abObjectTypes.push({
|
|
@@ -183,12 +178,6 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
183
178
|
accessLevel,
|
|
184
179
|
});
|
|
185
180
|
}
|
|
186
|
-
if (glue42Api && glue42Api.isGlue42Running()) {
|
|
187
|
-
abObjectTypes.push({
|
|
188
|
-
name: 'Glue42',
|
|
189
|
-
accessLevel,
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
181
|
if (openFinApi && openFinApi.isOpenFinRunning()) {
|
|
193
182
|
abObjectTypes.push({
|
|
194
183
|
name: 'OpenFin',
|
|
@@ -209,9 +198,6 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
209
198
|
case Enums_1.ScheduleType.ipushpull:
|
|
210
199
|
editAction = ScheduleRedux.IPushPullScheduleEdit(schedule);
|
|
211
200
|
break;
|
|
212
|
-
case Enums_1.ScheduleType.Glue42:
|
|
213
|
-
editAction = ScheduleRedux.Glue42ScheduleEdit(schedule);
|
|
214
|
-
break;
|
|
215
201
|
case Enums_1.ScheduleType.OpenFin:
|
|
216
202
|
editAction = ScheduleRedux.OpenFinScheduleEdit(schedule);
|
|
217
203
|
break;
|
|
@@ -230,9 +216,6 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
230
216
|
case Enums_1.ScheduleType.ipushpull:
|
|
231
217
|
deleteAction = ScheduleRedux.IPushPullScheduleDelete(schedule);
|
|
232
218
|
break;
|
|
233
|
-
case Enums_1.ScheduleType.Glue42:
|
|
234
|
-
deleteAction = ScheduleRedux.Glue42ScheduleDelete(schedule);
|
|
235
|
-
break;
|
|
236
219
|
case Enums_1.ScheduleType.OpenFin:
|
|
237
220
|
deleteAction = ScheduleRedux.OpenFinScheduleDelete(schedule);
|
|
238
221
|
break;
|
|
@@ -251,9 +234,6 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
251
234
|
case Enums_1.ScheduleType.ipushpull:
|
|
252
235
|
suspendAction = ScheduleRedux.IPushPullScheduleSuspend(schedule);
|
|
253
236
|
break;
|
|
254
|
-
case Enums_1.ScheduleType.Glue42:
|
|
255
|
-
suspendAction = ScheduleRedux.Glue42ScheduleSuspend(schedule);
|
|
256
|
-
break;
|
|
257
237
|
case Enums_1.ScheduleType.OpenFin:
|
|
258
238
|
suspendAction = ScheduleRedux.OpenFinScheduleSuspend(schedule);
|
|
259
239
|
break;
|
|
@@ -272,9 +252,6 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
272
252
|
case Enums_1.ScheduleType.ipushpull:
|
|
273
253
|
unSuspendAction = ScheduleRedux.IPushPullScheduleUnSuspend(schedule);
|
|
274
254
|
break;
|
|
275
|
-
case Enums_1.ScheduleType.Glue42:
|
|
276
|
-
unSuspendAction = ScheduleRedux.Glue42ScheduleUnSuspend(schedule);
|
|
277
|
-
break;
|
|
278
255
|
case Enums_1.ScheduleType.OpenFin:
|
|
279
256
|
unSuspendAction = ScheduleRedux.OpenFinScheduleUnSuspend(schedule);
|
|
280
257
|
break;
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getExportRowsViewItems = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const ExpressionPreview_1 = require("../../../components/ExpressionEditor/ExpressionPreview");
|
|
7
|
+
const Tag_1 = require("../../../components/Tag");
|
|
4
8
|
const getExportRowsViewItems = (report, api) => {
|
|
9
|
+
let element = null;
|
|
10
|
+
if (report.ReportRowScope === 'ExpressionRows') {
|
|
11
|
+
element = React.createElement(ExpressionPreview_1.ExpressionPreview, { query: report.Query });
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
element = api.internalApi
|
|
15
|
+
.getReportService()
|
|
16
|
+
.GetReportExpressionDescription(report, api.columnApi.getColumns());
|
|
17
|
+
}
|
|
5
18
|
return {
|
|
6
19
|
name: 'Rows',
|
|
7
|
-
|
|
8
|
-
api.internalApi
|
|
9
|
-
.getReportService()
|
|
10
|
-
.GetReportExpressionDescription(report, api.columnApi.getColumns()),
|
|
11
|
-
],
|
|
20
|
+
view: React.createElement(Tag_1.Tag, null, element),
|
|
12
21
|
};
|
|
13
22
|
};
|
|
14
23
|
exports.getExportRowsViewItems = getExportRowsViewItems;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getExpressionViewItems = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const ExpressionPreview_1 = require("../../components/ExpressionEditor/ExpressionPreview");
|
|
7
|
+
const Tag_1 = require("../../components/Tag");
|
|
4
8
|
const getExpressionViewItems = (query, api) => {
|
|
5
|
-
const expressionText = api.internalApi.getAdaptableQueryExpressionText(query);
|
|
9
|
+
// const expressionText = api.internalApi.getAdaptableQueryExpressionText(query);
|
|
6
10
|
return {
|
|
7
11
|
name: 'Expression',
|
|
8
|
-
values: [
|
|
12
|
+
// values: [],
|
|
13
|
+
view: (React.createElement(Tag_1.Tag, null,
|
|
14
|
+
React.createElement(ExpressionPreview_1.ExpressionPreview, { query: query }))),
|
|
9
15
|
};
|
|
10
16
|
};
|
|
11
17
|
exports.getExpressionViewItems = getExpressionViewItems;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PLUGINS = exports.SYSTEM_FILTER = exports.CELL_SUMMARY = exports.APPLICATION = exports.BULK_UPDATE = exports.TEAM_SHARING = exports.POPUP = exports.GRID = exports.SYSTEM = void 0;
|
|
3
|
+
exports.COMMENT = exports.PLUGINS = exports.SYSTEM_FILTER = exports.CELL_SUMMARY = exports.APPLICATION = exports.BULK_UPDATE = exports.TEAM_SHARING = exports.POPUP = exports.GRID = exports.SYSTEM = void 0;
|
|
4
4
|
// constants used in Config
|
|
5
5
|
exports.SYSTEM = 'System';
|
|
6
6
|
exports.GRID = 'Grid';
|
|
@@ -11,3 +11,4 @@ exports.APPLICATION = 'Application';
|
|
|
11
11
|
exports.CELL_SUMMARY = 'CellSummary';
|
|
12
12
|
exports.SYSTEM_FILTER = 'SystemFilter';
|
|
13
13
|
exports.PLUGINS = 'Plugins';
|
|
14
|
+
exports.COMMENT = 'Comment';
|
|
@@ -7,6 +7,7 @@ export declare const MISSING_COLUMN: string;
|
|
|
7
7
|
export declare const DEFAULT_LAYOUT: string;
|
|
8
8
|
export declare const LIGHT_THEME: string;
|
|
9
9
|
export declare const DARK_THEME: string;
|
|
10
|
+
export declare const OS_THEME: string;
|
|
10
11
|
export declare const USER_NAME: string;
|
|
11
12
|
export declare const ADAPTABLE_ID: string;
|
|
12
13
|
export declare const ADAPTABLE: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.THEME_STYLE = exports.SELECTED_ROWS_REPORT = exports.SELECTED_CELLS_REPORT = exports.CURRENT_DATA_REPORT = exports.ALL_DATA_REPORT = exports.VISUAL_DATA_REPORT = exports.SYSTEM_THEMES = exports.SMART_EDIT_MATH_OPERATION_STATE_PROPERTY = exports.SMART_EDIT_VALUE_STATE_PROPERTY = exports.QUICK_SEARCH_STYLE_STATE_PROPERTY = exports.QUICK_SEARCH_TEXT_STATE_PROPERTY = exports.CURRENT_THEME_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DURATION_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = exports.CURRENT_REPORT_STATE_PROPERTY = void 0;
|
|
3
|
+
exports.SUMMARY_OPERATION_STATE_PROPERTY = exports.ALERT_DEFAULT_SHOW_POPUP = exports.ALERT_DEFAULT_MESSAGE_TYPE = exports.PLUS_MINUS_DEFAULT_NUDGE_VALUE = exports.SERVER_VALIDATION_MESSAGE_TYPE = exports.SERVER_VALIDATION_HEADER = exports.DEFAULT_LIVE_REPORT_THROTTLE_TIME = exports.THEME_DEFAULT_CURRENT_THEME = exports.SYSTEM_DEFAULT_SYSTEM_STATUS_TYPE = exports.CELL_SUMMARY_DEFAULT_OPERATION = exports.QUICK_SEARCH_DEBOUNCE_TIME = exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = exports.QUICK_SEARCH_DEFAULT_BACK_COLOR = exports.SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE = exports.DEFAULT_DOUBLE_DISPLAY_VALUE = exports.DEFAULT_INTEGER_DISPLAY_VALUE = exports.DEFAULT_STRING_DISPLAY_VALUE = exports.BLANK_DISTINCT_COLUMN_VALUE = exports.DEFAULT_DATE_FORMAT_PATTERN = exports.ADAPTABLE_FDC3_ACTION_COLUMN_FRIENDLY_NAME = exports.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME = exports.ADAPTABLE_ROW_ACTION_BUTTONS = exports.AG_GRID_CHART_WINDOW = exports.AG_GRID_PIVOT_COLUMN = exports.AG_GRID_GROUPED_COLUMN = exports.HALF_SECOND = exports.AB_FDC3_COLUMN = exports.AB_ROW_ACTIONS_COLUMN = exports.AB_SPECIAL_COLUMN = exports.EMPTY_ARRAY = exports.EMPTY_STRING = exports.FILTER_THROTTLE = exports.FILTER_NEVER = exports.FILTER_ALWAYS = exports.ALL_COLUMN_VALUES = exports.READ_ONLY_STYLE = exports.MENU_PREFIX = exports.AGGRID_TOOLPANEL_COLUMNS = exports.AGGRID_TOOLPANEL_FILTERS = exports.ADAPTABLE_TOOLPANEL_COMPONENT = exports.ADAPTABLE_TOOLPANEL_ID = exports.ADAPTABLE = exports.ADAPTABLE_ID = exports.USER_NAME = exports.OS_THEME = exports.DARK_THEME = exports.LIGHT_THEME = exports.DEFAULT_LAYOUT = exports.MISSING_COLUMN = exports.AUTOGENERATED_PK_COLUMN = void 0;
|
|
4
|
+
exports.THEME_STYLE = exports.SELECTED_ROWS_REPORT = exports.SELECTED_CELLS_REPORT = exports.CURRENT_DATA_REPORT = exports.ALL_DATA_REPORT = exports.VISUAL_DATA_REPORT = exports.SYSTEM_THEMES = exports.SMART_EDIT_MATH_OPERATION_STATE_PROPERTY = exports.SMART_EDIT_VALUE_STATE_PROPERTY = exports.QUICK_SEARCH_STYLE_STATE_PROPERTY = exports.QUICK_SEARCH_TEXT_STATE_PROPERTY = exports.CURRENT_THEME_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DURATION_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = exports.CURRENT_REPORT_STATE_PROPERTY = exports.CURRENT_LAYOUT_STATE_PROPERTY = void 0;
|
|
5
5
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
6
6
|
const UIHelper_1 = require("../../View/UIHelper");
|
|
7
7
|
exports.AUTOGENERATED_PK_COLUMN = '__ADAPTABLE_PK__';
|
|
@@ -9,6 +9,7 @@ exports.MISSING_COLUMN = ' [MISSING]';
|
|
|
9
9
|
exports.DEFAULT_LAYOUT = 'Default Layout';
|
|
10
10
|
exports.LIGHT_THEME = 'light';
|
|
11
11
|
exports.DARK_THEME = 'dark';
|
|
12
|
+
exports.OS_THEME = 'os';
|
|
12
13
|
exports.USER_NAME = 'anonymous';
|
|
13
14
|
exports.ADAPTABLE_ID = 'adaptable_id';
|
|
14
15
|
exports.ADAPTABLE = 'AdapTable';
|
|
@@ -58,7 +59,7 @@ exports.CELL_SUMMARY_DEFAULT_OPERATION = Enums_1.SummaryOperation.Sum;
|
|
|
58
59
|
exports.SYSTEM_DEFAULT_SYSTEM_STATUS_TYPE = 'Info';
|
|
59
60
|
// theme
|
|
60
61
|
exports.THEME_DEFAULT_CURRENT_THEME = exports.LIGHT_THEME;
|
|
61
|
-
// Live Report Throttle Time (used in OpenFin, IPushPull
|
|
62
|
+
// Live Report Throttle Time (used in OpenFin, IPushPull etc.)
|
|
62
63
|
exports.DEFAULT_LIVE_REPORT_THROTTLE_TIME = 2000;
|
|
63
64
|
exports.SERVER_VALIDATION_HEADER = 'Server Validation Message';
|
|
64
65
|
exports.SERVER_VALIDATION_MESSAGE_TYPE = 'Info';
|
|
@@ -92,6 +93,10 @@ exports.SYSTEM_THEMES = [
|
|
|
92
93
|
Name: exports.DARK_THEME,
|
|
93
94
|
Description: 'Dark Theme',
|
|
94
95
|
},
|
|
96
|
+
{
|
|
97
|
+
Name: exports.OS_THEME,
|
|
98
|
+
Description: 'OS Theme',
|
|
99
|
+
},
|
|
95
100
|
];
|
|
96
101
|
exports.VISUAL_DATA_REPORT = 'Visual Data';
|
|
97
102
|
exports.ALL_DATA_REPORT = 'All Data';
|
|
@@ -33,14 +33,14 @@ export declare const FormatColumnModuleId: ModuleConstants;
|
|
|
33
33
|
export declare const FormatColumnFriendlyName = "Format Column";
|
|
34
34
|
export declare const FreeTextColumnModuleId: ModuleConstants;
|
|
35
35
|
export declare const FreeTextColumnFriendlyName = "Free Text Column";
|
|
36
|
-
export declare const Glue42ModuleId: ModuleConstants;
|
|
37
|
-
export declare const Glue42FriendlyName = "Glue42";
|
|
38
36
|
export declare const GridInfoModuleId: ModuleConstants;
|
|
39
37
|
export declare const GridInfoFriendlyName = "Grid Info";
|
|
40
38
|
export declare const ColumnInfoModuleId: ModuleConstants;
|
|
41
39
|
export declare const ColumnInfoFriendlyName = "Column Info";
|
|
42
40
|
export declare const NotesModuleId: ModuleConstants;
|
|
43
41
|
export declare const NotesFriendlyName = "Notes";
|
|
42
|
+
export declare const CommentsModuleId: ModuleConstants;
|
|
43
|
+
export declare const CommentsFriendlyName = "Comments";
|
|
44
44
|
export declare const IPushPullModuleId: ModuleConstants;
|
|
45
45
|
export declare const IPushPullFriendlyName = "IPushPull";
|
|
46
46
|
export declare const LayoutModuleId: ModuleConstants;
|
|
@@ -91,7 +91,6 @@ export declare const ADAPTABLE_MODULE_MAP: {
|
|
|
91
91
|
ColumnFilter: string;
|
|
92
92
|
FormatColumn: string;
|
|
93
93
|
FreeTextColumn: string;
|
|
94
|
-
Glue42: string;
|
|
95
94
|
GridInfo: string;
|
|
96
95
|
IPushPull: string;
|
|
97
96
|
Layout: string;
|
|
@@ -114,6 +113,7 @@ export declare const ADAPTABLE_MODULE_MAP: {
|
|
|
114
113
|
DataImport: string;
|
|
115
114
|
NamedQuery: string;
|
|
116
115
|
GridFilter: string;
|
|
116
|
+
Comments: string;
|
|
117
117
|
Query: string;
|
|
118
118
|
Filter: string;
|
|
119
119
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlusMinusFriendlyName = exports.PlusMinusModuleId = exports.OpenFinFriendlyName = exports.OpenFinModuleId = exports.LayoutFriendlyName = exports.LayoutModuleId = exports.IPushPullFriendlyName = exports.IPushPullModuleId = exports.
|
|
3
|
+
exports.PlusMinusFriendlyName = exports.PlusMinusModuleId = exports.OpenFinFriendlyName = exports.OpenFinModuleId = exports.LayoutFriendlyName = exports.LayoutModuleId = exports.IPushPullFriendlyName = exports.IPushPullModuleId = exports.CommentsFriendlyName = exports.CommentsModuleId = exports.NotesFriendlyName = exports.NotesModuleId = exports.ColumnInfoFriendlyName = exports.ColumnInfoModuleId = exports.GridInfoFriendlyName = exports.GridInfoModuleId = exports.FreeTextColumnFriendlyName = exports.FreeTextColumnModuleId = exports.FormatColumnFriendlyName = exports.FormatColumnModuleId = exports.NamedQueryFriendlyName = exports.NamedQueryModuleId = exports.GridFilterFriendlyName = exports.GridFilterModuleId = exports.ColumnFilterFriendlyName = exports.ColumnFilterModuleId = exports.Fdc3FriendlyName = exports.Fdc3ModuleId = exports.ExportFriendlyName = exports.ExportModuleId = exports.DataSetFriendlyName = exports.DataSetModuleId = exports.DataChangeHistoryFriendlyName = exports.DataChangeHistoryModuleId = exports.DashboardFriendlyName = exports.DashboardModuleId = exports.CustomSortFriendlyName = exports.CustomSortModuleId = exports.ChartingFriendlyName = exports.ChartingModuleId = exports.CellSummaryFriendlyName = exports.CellSummaryModuleId = exports.CalculatedColumnFriendlyName = exports.CalculatedColumnModuleId = exports.BulkUpdateFriendlyName = exports.BulkUpdateModuleId = exports.FlashingCellFriendlyName = exports.FlashingCellModuleId = exports.AlertModuleFriendlyName = exports.AlertModuleId = void 0;
|
|
4
4
|
exports.ADAPTABLE_MODULE_MAP = exports.DataImportFriendyName = exports.DataImportModuleId = exports.StatusBarFriendlyName = exports.StatusBarModuleId = exports.SettingsPanelFriendlyName = exports.SettingsPanelModuleId = exports.ToolPanelFriendlyName = exports.ToolPanelModuleId = exports.ThemeFriendlyName = exports.ThemeModuleId = exports.TeamSharingFriendlyName = exports.TeamSharingModuleId = exports.SystemStatusFriendlyName = exports.SystemStatusModuleId = exports.StateManagementFriendlyName = exports.StateManagementModuleId = exports.StyledColumnFriendlyName = exports.StyledColumnModuleId = exports.SmartEditFriendlyName = exports.SmartEditModuleId = exports.ShortcutFriendlyName = exports.ShortcutModuleId = exports.ScheduleFriendlyName = exports.ScheduleModuleId = exports.QuickSearchFriendlyName = exports.QuickSearchModuleId = void 0;
|
|
5
5
|
exports.AlertModuleId = 'Alert';
|
|
6
6
|
exports.AlertModuleFriendlyName = 'Alert';
|
|
@@ -36,14 +36,14 @@ exports.FormatColumnModuleId = 'FormatColumn';
|
|
|
36
36
|
exports.FormatColumnFriendlyName = 'Format Column';
|
|
37
37
|
exports.FreeTextColumnModuleId = 'FreeTextColumn';
|
|
38
38
|
exports.FreeTextColumnFriendlyName = 'Free Text Column';
|
|
39
|
-
exports.Glue42ModuleId = 'Glue42';
|
|
40
|
-
exports.Glue42FriendlyName = 'Glue42';
|
|
41
39
|
exports.GridInfoModuleId = 'GridInfo';
|
|
42
40
|
exports.GridInfoFriendlyName = 'Grid Info';
|
|
43
41
|
exports.ColumnInfoModuleId = 'ColumnInfo';
|
|
44
42
|
exports.ColumnInfoFriendlyName = 'Column Info';
|
|
45
43
|
exports.NotesModuleId = 'Notes';
|
|
46
44
|
exports.NotesFriendlyName = 'Notes';
|
|
45
|
+
exports.CommentsModuleId = 'Comments';
|
|
46
|
+
exports.CommentsFriendlyName = 'Comments';
|
|
47
47
|
exports.IPushPullModuleId = 'IPushPull';
|
|
48
48
|
exports.IPushPullFriendlyName = 'IPushPull';
|
|
49
49
|
exports.LayoutModuleId = 'Layout';
|
|
@@ -94,7 +94,6 @@ exports.ADAPTABLE_MODULE_MAP = {
|
|
|
94
94
|
[exports.ColumnFilterModuleId]: exports.ColumnFilterFriendlyName,
|
|
95
95
|
[exports.FormatColumnModuleId]: exports.FormatColumnFriendlyName,
|
|
96
96
|
[exports.FreeTextColumnModuleId]: exports.FreeTextColumnFriendlyName,
|
|
97
|
-
[exports.Glue42ModuleId]: exports.Glue42FriendlyName,
|
|
98
97
|
[exports.GridInfoModuleId]: exports.GridInfoFriendlyName,
|
|
99
98
|
[exports.IPushPullModuleId]: exports.IPushPullFriendlyName,
|
|
100
99
|
[exports.LayoutModuleId]: exports.LayoutFriendlyName,
|
|
@@ -117,6 +116,7 @@ exports.ADAPTABLE_MODULE_MAP = {
|
|
|
117
116
|
[exports.DataImportModuleId]: exports.DataImportFriendyName,
|
|
118
117
|
[exports.NamedQueryModuleId]: exports.NamedQueryFriendlyName,
|
|
119
118
|
[exports.GridFilterModuleId]: exports.GridFilterFriendlyName,
|
|
119
|
+
[exports.CommentsModuleId]: exports.CommentsFriendlyName,
|
|
120
120
|
// Remove next version
|
|
121
121
|
['Query']: 'Query',
|
|
122
122
|
['Filter']: 'Filter',
|
|
@@ -148,7 +148,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
148
148
|
dataSetOptions: { dataSets: GeneralConstants_1.EMPTY_ARRAY },
|
|
149
149
|
groupingOptions: {
|
|
150
150
|
showGroupingTotalsAsHeader: false,
|
|
151
|
-
|
|
151
|
+
balancedGroupsKey: undefined,
|
|
152
152
|
restoreUngroupedColumns: false,
|
|
153
153
|
autoOrderGroupedColumns: true,
|
|
154
154
|
},
|
|
@@ -186,7 +186,6 @@ exports.DefaultAdaptableOptions = {
|
|
|
186
186
|
hideQuickFilterDropdown: undefined,
|
|
187
187
|
hideQuickFilterInput: undefined,
|
|
188
188
|
quickFilterTrigger: 'mouseenter',
|
|
189
|
-
quickFilterValuesTrigger: 'mouseenter',
|
|
190
189
|
quickFilterDebounce: 250,
|
|
191
190
|
quickFilterHeight: null,
|
|
192
191
|
showQuickFilter: true,
|
|
@@ -198,6 +197,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
198
197
|
defaultFilterFormTab: 'Values',
|
|
199
198
|
},
|
|
200
199
|
valuesFilterOptions: {
|
|
200
|
+
valuesFilterTrigger: 'mouseenter',
|
|
201
201
|
sortValuesFilter: false,
|
|
202
202
|
filterValuesUsingTime: false,
|
|
203
203
|
showDistinctFilteredValuesOnly: false,
|
|
@@ -225,7 +225,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
225
225
|
showSuspendFilterButton: false,
|
|
226
226
|
},
|
|
227
227
|
gridFilterOptions: {
|
|
228
|
-
availableFilterEditors: '
|
|
228
|
+
availableFilterEditors: ['ExpressionEditor', 'QueryBuilder'],
|
|
229
229
|
clearGridFilterOnStartUp: false,
|
|
230
230
|
},
|
|
231
231
|
predicateOptions: {
|
|
@@ -7,7 +7,13 @@ const ExpressionEvaluationError_1 = require("../../parser/src/ExpressionEvaluati
|
|
|
7
7
|
const expressionFunctionUtils_1 = require("./expressionFunctionUtils");
|
|
8
8
|
const aggregatedScalarExpressionFunctions_1 = require("./aggregatedScalarExpressionFunctions");
|
|
9
9
|
const TypeExtensions_1 = require("../Extensions/TypeExtensions");
|
|
10
|
-
const SUPPORTED_AGGREGATION_FNS = [
|
|
10
|
+
const SUPPORTED_AGGREGATION_FNS = [
|
|
11
|
+
'SUM',
|
|
12
|
+
'MIN',
|
|
13
|
+
'MAX',
|
|
14
|
+
'AVG',
|
|
15
|
+
'COUNT',
|
|
16
|
+
];
|
|
11
17
|
const aggregationScalarOperandMap = {
|
|
12
18
|
SUM: ['string', 'number'],
|
|
13
19
|
MIN: ['string', 'number'],
|
|
@@ -244,6 +244,12 @@ exports.booleanExpressionFunctions = {
|
|
|
244
244
|
signatures: ['values IN (value, value, ...value)'],
|
|
245
245
|
examples: ['[col1] IN (5, 10, AVG([col2],[col3]))'],
|
|
246
246
|
returnType: 'boolean',
|
|
247
|
+
inputs: [
|
|
248
|
+
['number', 'number[]'],
|
|
249
|
+
// Date is currently not supported in select
|
|
250
|
+
// ['date', 'date[]'],
|
|
251
|
+
['text', 'text[]'],
|
|
252
|
+
],
|
|
247
253
|
},
|
|
248
254
|
CONTAINS: {
|
|
249
255
|
handler(args, context) {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare const normalizeDateParams: (args: [string | number | Date, string | number | Date]) => [number | Date, number | Date];
|
|
2
2
|
export declare const normalizeDateParam: (args: string | number | Date) => Date;
|
|
3
|
+
export declare const formatDate: (date: Date | number, format: string) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.normalizeDateParam = exports.normalizeDateParams = void 0;
|
|
3
|
+
exports.formatDate = exports.normalizeDateParam = exports.normalizeDateParams = void 0;
|
|
4
4
|
const normalizeDateParams = (args) => {
|
|
5
5
|
let [first, second] = args;
|
|
6
6
|
if (typeof first === 'string') {
|
|
@@ -22,3 +22,20 @@ const normalizeDateParam = (args) => {
|
|
|
22
22
|
return args;
|
|
23
23
|
};
|
|
24
24
|
exports.normalizeDateParam = normalizeDateParam;
|
|
25
|
+
const formatDate = (date, format) => {
|
|
26
|
+
date = (0, exports.normalizeDateParam)(date);
|
|
27
|
+
const day = date.getDate();
|
|
28
|
+
const month = date.getMonth() + 1;
|
|
29
|
+
const year = date.getFullYear();
|
|
30
|
+
const hour = date.getHours();
|
|
31
|
+
const minute = date.getMinutes();
|
|
32
|
+
const second = date.getSeconds();
|
|
33
|
+
return format
|
|
34
|
+
.replace('DD', day.toString().padStart(2, '0'))
|
|
35
|
+
.replace('MM', month.toString().padStart(2, '0'))
|
|
36
|
+
.replace('YYYY', year.toString())
|
|
37
|
+
.replace('HH', hour.toString().padStart(2, '0'))
|
|
38
|
+
.replace('mm', minute.toString().padStart(2, '0'))
|
|
39
|
+
.replace('ss', second.toString().padStart(2, '0'));
|
|
40
|
+
};
|
|
41
|
+
exports.formatDate = formatDate;
|
|
@@ -2,6 +2,6 @@ import { ExpressionFunction } from '../../parser/src/types';
|
|
|
2
2
|
/**
|
|
3
3
|
* List of all the Scalar Functions available in AdaptableQL
|
|
4
4
|
*/
|
|
5
|
-
export type ScalarFunctionName = 'ADD' | 'SUB' | 'MUL' | 'DIV' | 'MOD' | 'POW' | 'ABS' | 'CEILING' | 'FLOOR' | 'ROUND' | 'MIN' | 'MAX' | 'AVG' | 'DATE' | 'NOW' | '
|
|
5
|
+
export type ScalarFunctionName = 'ADD' | 'SUB' | 'MUL' | 'DIV' | 'MOD' | 'POW' | 'ABS' | 'CEILING' | 'FLOOR' | 'ROUND' | 'MIN' | 'MAX' | 'AVG' | 'DATE' | 'NOW' | 'CURRENT_DAY' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR' | 'ADD_DAYS' | 'ADD_WEEKS' | 'ADD_MONTHS' | 'ADD_YEARS' | 'DIFF_DAYS' | 'DIFF_WEEKS' | 'DIFF_MONTHS' | 'DIFF_YEARS' | 'SUB_STRING' | 'REPLACE' | 'COALESCE' | 'NULL' | 'LEN' | 'UPPER' | 'LOWER' | 'CONCAT' | 'IF' | 'CASE' | 'COL' | 'VAR' | 'TO_ARRAY' | 'QUERY' | 'IS_BLANK' | 'IS_NOT_BLANK';
|
|
6
6
|
export declare const scalarExpressionFunctions: Record<ScalarFunctionName, ExpressionFunction>;
|
|
7
7
|
export declare const scalarExpressionFunctionNames: ScalarFunctionName[];
|
|
@@ -151,7 +151,7 @@ exports.scalarExpressionFunctions = {
|
|
|
151
151
|
},
|
|
152
152
|
IS_NOT_BLANK: {
|
|
153
153
|
handler(args) {
|
|
154
|
-
return args[0] !== undefined && args[0] !== null &&
|
|
154
|
+
return args[0] !== undefined && args[0] !== null && String(args[0]).trim() !== '';
|
|
155
155
|
},
|
|
156
156
|
category: 'special',
|
|
157
157
|
description: 'Returns true if input value is not empty',
|
|
@@ -387,13 +387,13 @@ exports.scalarExpressionFunctions = {
|
|
|
387
387
|
category: 'dates',
|
|
388
388
|
returnType: 'date',
|
|
389
389
|
},
|
|
390
|
-
|
|
390
|
+
CURRENT_DAY: {
|
|
391
391
|
handler() {
|
|
392
392
|
return (0, startOfDay_1.default)(new Date());
|
|
393
393
|
},
|
|
394
394
|
description: 'Returns the current day',
|
|
395
|
-
signatures: ['
|
|
396
|
-
examples: ['[col1] >
|
|
395
|
+
signatures: ['CURRENT_DAY()'],
|
|
396
|
+
examples: ['[col1] > CURRENT_DAY()'],
|
|
397
397
|
category: 'dates',
|
|
398
398
|
returnType: 'date',
|
|
399
399
|
},
|
|
@@ -443,7 +443,7 @@ exports.scalarExpressionFunctions = {
|
|
|
443
443
|
},
|
|
444
444
|
description: 'Returns a date based on input data and days to add',
|
|
445
445
|
signatures: ['ADD_DAYS(input: date, days: number)'],
|
|
446
|
-
examples: ['ADD_DAYS(
|
|
446
|
+
examples: ['ADD_DAYS(CURRENT_DAY(), 5)', 'ADD_DAYS([col1], 5)'],
|
|
447
447
|
category: 'dates',
|
|
448
448
|
returnType: 'date',
|
|
449
449
|
},
|
|
@@ -453,7 +453,7 @@ exports.scalarExpressionFunctions = {
|
|
|
453
453
|
},
|
|
454
454
|
description: 'Returns a date based on input data and weeks to add',
|
|
455
455
|
signatures: ['ADD_WEEKS(input: date, weeks: number)'],
|
|
456
|
-
examples: ['ADD_WEEKS(
|
|
456
|
+
examples: ['ADD_WEEKS(CURRENT_DAY(), 5)', 'ADD_WEEKS([col1], 5)'],
|
|
457
457
|
category: 'dates',
|
|
458
458
|
returnType: 'date',
|
|
459
459
|
},
|
|
@@ -463,7 +463,7 @@ exports.scalarExpressionFunctions = {
|
|
|
463
463
|
},
|
|
464
464
|
description: 'Returns a date based on input data and months to add',
|
|
465
465
|
signatures: ['ADD_MONTHS(input: date, months: number)'],
|
|
466
|
-
examples: ['ADD_MONTHS(
|
|
466
|
+
examples: ['ADD_MONTHS(CURRENT_DAY(), 5)', 'ADD_MONTHS([col1], 5)'],
|
|
467
467
|
category: 'dates',
|
|
468
468
|
returnType: 'date',
|
|
469
469
|
},
|
|
@@ -473,7 +473,7 @@ exports.scalarExpressionFunctions = {
|
|
|
473
473
|
},
|
|
474
474
|
description: 'Returns a date based on input data and years to add',
|
|
475
475
|
signatures: ['ADD_YEARS(input: date, years: number)'],
|
|
476
|
-
examples: ['ADD_YEARS(
|
|
476
|
+
examples: ['ADD_YEARS(CURRENT_DAY(), 5)', 'ADD_YEARS([col1], 5)'],
|
|
477
477
|
category: 'dates',
|
|
478
478
|
returnType: 'date',
|
|
479
479
|
},
|
|
@@ -485,7 +485,7 @@ exports.scalarExpressionFunctions = {
|
|
|
485
485
|
},
|
|
486
486
|
description: 'Returns the difference in days between 2 dates',
|
|
487
487
|
signatures: ['DIFF_DAYS(a: date, b: date)'],
|
|
488
|
-
examples: ['DIFF_DAYS([col1],
|
|
488
|
+
examples: ['DIFF_DAYS([col1], CURRENT_DAY())'],
|
|
489
489
|
category: 'dates',
|
|
490
490
|
returnType: 'number',
|
|
491
491
|
},
|
|
@@ -497,7 +497,7 @@ exports.scalarExpressionFunctions = {
|
|
|
497
497
|
},
|
|
498
498
|
description: 'Returns the difference in weeks between 2 dates',
|
|
499
499
|
signatures: ['DIFF_WEEKS(a: date, b: date)'],
|
|
500
|
-
examples: ['DIFF_WEEKS([col1],
|
|
500
|
+
examples: ['DIFF_WEEKS([col1], CURRENT_DAY())'],
|
|
501
501
|
category: 'dates',
|
|
502
502
|
returnType: 'number',
|
|
503
503
|
},
|
|
@@ -509,7 +509,7 @@ exports.scalarExpressionFunctions = {
|
|
|
509
509
|
},
|
|
510
510
|
description: 'Returns the difference in months between 2 dates',
|
|
511
511
|
signatures: ['DIFF_MONTHS(a: date, b: date)'],
|
|
512
|
-
examples: ['DIFF_MONTHS([col1],
|
|
512
|
+
examples: ['DIFF_MONTHS([col1], CURRENT_DAY())'],
|
|
513
513
|
category: 'dates',
|
|
514
514
|
returnType: 'number',
|
|
515
515
|
},
|
|
@@ -521,7 +521,7 @@ exports.scalarExpressionFunctions = {
|
|
|
521
521
|
},
|
|
522
522
|
description: 'Returns the difference in years between 2 dates',
|
|
523
523
|
signatures: ['DIFF_YEARS(a: date, b: date)'],
|
|
524
|
-
examples: ['DIFF_YEARS([col1],
|
|
524
|
+
examples: ['DIFF_YEARS([col1], CURRENT_DAY())'],
|
|
525
525
|
category: 'dates',
|
|
526
526
|
returnType: 'number',
|
|
527
527
|
},
|
|
@@ -17,6 +17,7 @@ export declare function IsNotNullOrEmpty(arrayToCheck: any[] | undefined | null)
|
|
|
17
17
|
export declare function IsNullOrEmptyOrContainsSingleEmptyValue(arrayToCheck: any[]): boolean;
|
|
18
18
|
export declare function IsNotNullOrEmptyNorContainsSingleEmptyValue(arrayToCheck: any[]): boolean;
|
|
19
19
|
export declare function HasSingleEmptyValue(arrayToCheck: any[]): boolean;
|
|
20
|
+
export declare function getOccurrence(arrayToCheck: any[], valueToCheck: any): number;
|
|
20
21
|
export declare function hasOneItem(arrayToCheck: any[]): boolean;
|
|
21
22
|
export declare function hasItemsOfCount(arrayToCheck: any[], numberOfItems: number): boolean;
|
|
22
23
|
export declare function moveArray(array: any[], from: number, to: number): void;
|
|
@@ -50,6 +51,7 @@ export declare const ArrayExtensions: {
|
|
|
50
51
|
IsNullOrEmptyOrContainsSingleEmptyValue: typeof IsNullOrEmptyOrContainsSingleEmptyValue;
|
|
51
52
|
IsNotNullOrEmptyNorContainsSingleEmptyValue: typeof IsNotNullOrEmptyNorContainsSingleEmptyValue;
|
|
52
53
|
HasSingleEmptyValue: typeof HasSingleEmptyValue;
|
|
54
|
+
getOccurrence: typeof getOccurrence;
|
|
53
55
|
hasOneItem: typeof hasOneItem;
|
|
54
56
|
hasItemsOfCount: typeof hasItemsOfCount;
|
|
55
57
|
moveArray: typeof moveArray;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArrayExtensions = exports.createCommaSeparatedString = exports.groupArrayBy = exports.sortCellValueArrayDates = exports.sortCellValueArrayNumeric = exports.sortCellValueArray = exports.sortArray = exports.sortArrayWithProperty = exports.areArraysEqualWithOrderandProperties = exports.areArraysEqualWithOrder = exports.areArraysNotEqual = exports.areArraysEqual = exports.moveArray = exports.hasItemsOfCount = exports.hasOneItem = exports.HasSingleEmptyValue = exports.IsNotNullOrEmptyNorContainsSingleEmptyValue = exports.IsNullOrEmptyOrContainsSingleEmptyValue = exports.IsNotNullOrEmpty = exports.IsNullOrEmpty = exports.IsNotEmpty = exports.IsEmpty = exports.IsNotNull = exports.IsNull = exports.RetrieveDistinct = exports.NotContainsItem = exports.ContainsAnyItem = exports.ContainsItem = exports.AddItem = exports.NotCorrectLength = exports.CorrectLength = exports.GetLength = void 0;
|
|
3
|
+
exports.ArrayExtensions = exports.createCommaSeparatedString = exports.groupArrayBy = exports.sortCellValueArrayDates = exports.sortCellValueArrayNumeric = exports.sortCellValueArray = exports.sortArray = exports.sortArrayWithProperty = exports.areArraysEqualWithOrderandProperties = exports.areArraysEqualWithOrder = exports.areArraysNotEqual = exports.areArraysEqual = exports.moveArray = exports.hasItemsOfCount = exports.hasOneItem = exports.getOccurrence = exports.HasSingleEmptyValue = exports.IsNotNullOrEmptyNorContainsSingleEmptyValue = exports.IsNullOrEmptyOrContainsSingleEmptyValue = exports.IsNotNullOrEmpty = exports.IsNullOrEmpty = exports.IsNotEmpty = exports.IsEmpty = exports.IsNotNull = exports.IsNull = exports.RetrieveDistinct = exports.NotContainsItem = exports.ContainsAnyItem = exports.ContainsItem = exports.AddItem = exports.NotCorrectLength = exports.CorrectLength = exports.GetLength = void 0;
|
|
4
4
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
5
5
|
function GetLength(arrayToCheck) {
|
|
6
6
|
return IsNotNull(arrayToCheck) ? arrayToCheck.length : 0;
|
|
@@ -95,6 +95,12 @@ function HasSingleEmptyValue(arrayToCheck) {
|
|
|
95
95
|
return false;
|
|
96
96
|
}
|
|
97
97
|
exports.HasSingleEmptyValue = HasSingleEmptyValue;
|
|
98
|
+
function getOccurrence(arrayToCheck, valueToCheck) {
|
|
99
|
+
var count = 0;
|
|
100
|
+
arrayToCheck.forEach((v) => v === valueToCheck && count++);
|
|
101
|
+
return count;
|
|
102
|
+
}
|
|
103
|
+
exports.getOccurrence = getOccurrence;
|
|
98
104
|
function hasOneItem(arrayToCheck) {
|
|
99
105
|
return hasItemsOfCount(arrayToCheck, 1);
|
|
100
106
|
}
|
|
@@ -302,6 +308,7 @@ exports.ArrayExtensions = {
|
|
|
302
308
|
IsNullOrEmptyOrContainsSingleEmptyValue,
|
|
303
309
|
IsNotNullOrEmptyNorContainsSingleEmptyValue,
|
|
304
310
|
HasSingleEmptyValue,
|
|
311
|
+
getOccurrence,
|
|
305
312
|
hasOneItem,
|
|
306
313
|
hasItemsOfCount,
|
|
307
314
|
moveArray,
|
|
@@ -44,7 +44,8 @@ function GetCellInfosFromPreview(previewInfo, bypassValidationWarnings) {
|
|
|
44
44
|
normalisedValue: previewResult.computedValue,
|
|
45
45
|
rowNode: previewResult.rowNode,
|
|
46
46
|
column: previewInfo.column,
|
|
47
|
-
isPivotCell: false,
|
|
47
|
+
isPivotCell: false,
|
|
48
|
+
isRowGroupCell: false,
|
|
48
49
|
});
|
|
49
50
|
}
|
|
50
51
|
}
|
|
@@ -59,7 +60,9 @@ function GetCellInfosFromPreview(previewInfo, bypassValidationWarnings) {
|
|
|
59
60
|
rawValue: pr.computedValue,
|
|
60
61
|
displayValue: pr.computedValue,
|
|
61
62
|
normalisedValue: pr.computedValue,
|
|
62
|
-
rowNode: pr.rowNode,
|
|
63
|
+
rowNode: pr.rowNode,
|
|
64
|
+
isPivotCell: false,
|
|
65
|
+
isRowGroupCell: false,
|
|
63
66
|
});
|
|
64
67
|
});
|
|
65
68
|
}
|