@adaptabletools/adaptable-cjs 17.0.0-canary.4 → 18.0.0-canary.1
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 +62 -14
- package/base.css.map +1 -1
- package/index.css +267 -165
- 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 +3 -7
- 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.d.ts +1 -1
- package/src/Redux/ActionsReducers/NotesRedux.js +4 -5
- 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 +51 -14
- 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/Textarea/index.d.ts +9 -0
- package/src/components/Textarea/index.js +50 -2
- 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 +138 -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 +3 -3
- 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
|
@@ -18,6 +18,7 @@ const AggregationColumns_1 = require("../PredefinedConfig/Common/AggregationColu
|
|
|
18
18
|
const windowFactory_1 = require("../View/Components/Popups/WindowPopups/windowFactory");
|
|
19
19
|
const flattenDeep_1 = tslib_1.__importDefault(require("lodash/flattenDeep"));
|
|
20
20
|
const StringExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/StringExtensions"));
|
|
21
|
+
const getGridFilterPreview_1 = require("../View/Layout/Wizard/getGridFilterPreview");
|
|
21
22
|
class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
22
23
|
constructor(api) {
|
|
23
24
|
super(ModuleConstants.LayoutModuleId, ModuleConstants.LayoutFriendlyName, 'grid', 'LayoutPopup', 'Named sets of column visibility, order, groupings, aggregation, pivots etc.', api);
|
|
@@ -127,7 +128,6 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
127
128
|
[
|
|
128
129
|
...this.api.scheduleApi.getReportSchedules(loadConfig),
|
|
129
130
|
...this.api.scheduleApi.getReminderSchedules(loadConfig),
|
|
130
|
-
...this.api.scheduleApi.getGlue42Schedules(loadConfig),
|
|
131
131
|
...this.api.scheduleApi.getIPushPullSchedules(loadConfig),
|
|
132
132
|
...this.api.scheduleApi.getOpenFinSchedules(loadConfig),
|
|
133
133
|
].forEach((schedule) => layoutAssociatedObjectReferences.push({
|
|
@@ -139,7 +139,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
139
139
|
return teamSharingReferences;
|
|
140
140
|
}
|
|
141
141
|
hasNamedQueryReferences() {
|
|
142
|
-
return
|
|
142
|
+
return true;
|
|
143
143
|
}
|
|
144
144
|
handleAdaptableReady() {
|
|
145
145
|
requestAnimationFrame(() => {
|
|
@@ -242,11 +242,13 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
242
242
|
return returnColumnMenuItems;
|
|
243
243
|
}
|
|
244
244
|
createViewPivotItemsMenuItem(menuContext) {
|
|
245
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
246
245
|
// current group => menuContext.rowNode.field;
|
|
247
|
-
|
|
246
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
247
|
+
const selectedCellInfo = (_a = menuContext.selectedCellInfo) !== null && _a !== void 0 ? _a : this.api.gridApi.getSelectedCellInfo();
|
|
248
|
+
if (((_b = selectedCellInfo === null || selectedCellInfo === void 0 ? void 0 : selectedCellInfo.gridCells) === null || _b === void 0 ? void 0 : _b.length) !== 1) {
|
|
248
249
|
return;
|
|
249
250
|
}
|
|
251
|
+
const gridCell = (_c = menuContext.gridCell) !== null && _c !== void 0 ? _c : selectedCellInfo.gridCells[0];
|
|
250
252
|
const currentLayout = this.api.layoutApi.getCurrentLayout();
|
|
251
253
|
if (!currentLayout.EnablePivot) {
|
|
252
254
|
return;
|
|
@@ -265,11 +267,11 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
265
267
|
*/
|
|
266
268
|
// pivot_status_Booked_price
|
|
267
269
|
// price
|
|
268
|
-
const aggColumn = (
|
|
270
|
+
const aggColumn = (_g = (_f = (_e = (_d = agGridColumn === null || agGridColumn === void 0 ? void 0 : agGridColumn.getColDef) === null || _d === void 0 ? void 0 : _d.call(agGridColumn).pivotValueColumn) === null || _e === void 0 ? void 0 : _e.getColDef) === null || _f === void 0 ? void 0 : _f.call(_e)) === null || _g === void 0 ? void 0 : _g.field;
|
|
269
271
|
// Booked
|
|
270
|
-
const pivotValue = (
|
|
272
|
+
const pivotValue = (_k = (_j = (_h = agGridColumn === null || agGridColumn === void 0 ? void 0 : agGridColumn.getColDef) === null || _h === void 0 ? void 0 : _h.call(agGridColumn)) === null || _j === void 0 ? void 0 : _j.pivotKeys) === null || _k === void 0 ? void 0 : _k[0];
|
|
271
273
|
// status - the preview works only with one column
|
|
272
|
-
const pivotColumnId = (
|
|
274
|
+
const pivotColumnId = (_l = currentLayout === null || currentLayout === void 0 ? void 0 : currentLayout.PivotColumns) === null || _l === void 0 ? void 0 : _l[0];
|
|
273
275
|
function getData(rows) {
|
|
274
276
|
return [
|
|
275
277
|
...rows.map((row) => {
|
|
@@ -282,9 +284,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
282
284
|
}
|
|
283
285
|
const data = (0, flattenDeep_1.default)(getData(menuContext.rowNode.childrenAfterFilter));
|
|
284
286
|
const rowGroups = currentLayout.RowGroupedColumns;
|
|
285
|
-
const cellValue = isPivotColumn
|
|
286
|
-
? menuContext.rowNode.aggData[columnId]
|
|
287
|
-
: menuContext.gridCell.displayValue;
|
|
287
|
+
const cellValue = isPivotColumn ? menuContext.rowNode.aggData[columnId] : gridCell.displayValue;
|
|
288
288
|
const popupProps = {
|
|
289
289
|
hasPivotValue: isPivotColumn,
|
|
290
290
|
columnId,
|
|
@@ -392,10 +392,8 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
392
392
|
.filter(Boolean),
|
|
393
393
|
},
|
|
394
394
|
(layout === null || layout === void 0 ? void 0 : layout.GridFilter) &&
|
|
395
|
-
StringExtensions_1.default.IsNotNullOrEmpty(layout.GridFilter.Expression) &&
|
|
396
|
-
|
|
397
|
-
values: [layout.GridFilter.Expression],
|
|
398
|
-
},
|
|
395
|
+
StringExtensions_1.default.IsNotNullOrEmpty(layout.GridFilter.Expression) &&
|
|
396
|
+
(0, getGridFilterPreview_1.getGridFilterViewItems)(layout),
|
|
399
397
|
].filter(Boolean),
|
|
400
398
|
abObject: layout,
|
|
401
399
|
};
|
|
@@ -443,5 +441,12 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
443
441
|
// we need to refresh the column defs, as some configs may have changed
|
|
444
442
|
this.api.internalApi.getAdaptableInstance().setupColumns();
|
|
445
443
|
}
|
|
444
|
+
getReferencedNamedQueryNames(layout) {
|
|
445
|
+
var _a;
|
|
446
|
+
if (!((_a = layout.GridFilter) === null || _a === void 0 ? void 0 : _a.Expression)) {
|
|
447
|
+
return [];
|
|
448
|
+
}
|
|
449
|
+
return this.api.namedQueryApi.internalApi.getReferencedNamedQueryNames(layout.GridFilter.Expression);
|
|
450
|
+
}
|
|
446
451
|
}
|
|
447
452
|
exports.LayoutModule = LayoutModule;
|
|
@@ -1,23 +1,10 @@
|
|
|
1
1
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
2
2
|
import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
3
|
-
import { NoteGridCell } from '../types';
|
|
4
3
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
5
4
|
import { IModule } from './Interface/IModule';
|
|
6
|
-
/**
|
|
7
|
-
* In the first iteration a cell can have only one note, the
|
|
8
|
-
* notes is a list to allow further development.
|
|
9
|
-
*/
|
|
10
5
|
export declare class NotesModule extends AdaptableModuleBase implements IModule {
|
|
11
6
|
private adaptable;
|
|
12
7
|
constructor(api: AdaptableApi);
|
|
13
|
-
isModuleAvailable(): boolean;
|
|
14
|
-
handleAdaptableReady(): void;
|
|
15
8
|
addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
16
9
|
private getAddRemoveNoteMenuItems;
|
|
17
|
-
getCellPositionFromEvent(event: MouseEvent): null | {
|
|
18
|
-
PrimaryKeyValue: string | number;
|
|
19
|
-
ColumnId: string;
|
|
20
|
-
};
|
|
21
|
-
handleMouseEnter(event: MouseEvent): void;
|
|
22
|
-
handleCellSelected(noteGridCell: NoteGridCell): void;
|
|
23
10
|
}
|
|
@@ -4,37 +4,15 @@ exports.NotesModule = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
6
6
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
7
|
-
/**
|
|
8
|
-
* In the first iteration a cell can have only one note, the
|
|
9
|
-
* notes is a list to allow further development.
|
|
10
|
-
*/
|
|
11
7
|
class NotesModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
12
8
|
constructor(api) {
|
|
13
9
|
super(ModuleConstants.NotesModuleId, ModuleConstants.NotesFriendlyName, 'note', 'NotesPopup', 'Notes', api);
|
|
14
10
|
this.adaptable = api.internalApi.getAdaptableInstance();
|
|
15
|
-
this.adaptable.api.eventApi.on('AdaptableReady', () => this.handleAdaptableReady());
|
|
16
|
-
}
|
|
17
|
-
isModuleAvailable() {
|
|
18
|
-
// FIXME remove this once Notes feature is public
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
handleAdaptableReady() {
|
|
22
|
-
if (!this.isModuleAvailable()) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
this.adaptable._on('MouseEnter', (event) => this.handleMouseEnter(event));
|
|
26
|
-
this.api.eventApi.on('SelectionChanged', (params) => {
|
|
27
|
-
const cells = params.selectedCellInfo.gridCells;
|
|
28
|
-
if ((cells === null || cells === void 0 ? void 0 : cells.length) === 1) {
|
|
29
|
-
const selectedCell = cells[0];
|
|
30
|
-
const cellSelected = {
|
|
31
|
-
PrimaryKeyValue: selectedCell.primaryKeyValue,
|
|
32
|
-
ColumnId: selectedCell.column.columnId,
|
|
33
|
-
};
|
|
34
|
-
this.handleCellSelected(cellSelected);
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
11
|
}
|
|
12
|
+
// isModuleAvailable(): boolean {
|
|
13
|
+
// // FIXME remove this once Notes feature is public
|
|
14
|
+
// return true;
|
|
15
|
+
// }
|
|
38
16
|
addContextMenuItems(menuContext) {
|
|
39
17
|
var _a, _b;
|
|
40
18
|
if (!this.isModuleAvailable()) {
|
|
@@ -45,8 +23,10 @@ class NotesModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
45
23
|
if (!isCellNotable ||
|
|
46
24
|
isCellNotable({
|
|
47
25
|
adaptableApi: this.adaptable.api,
|
|
48
|
-
|
|
49
|
-
|
|
26
|
+
address: {
|
|
27
|
+
PrimaryKeyValue: menuContext.primaryKeyValue,
|
|
28
|
+
ColumnId: menuContext.adaptableColumn.columnId,
|
|
29
|
+
},
|
|
50
30
|
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
51
31
|
adaptableId: this.adaptable.adaptableOptions.adaptableId,
|
|
52
32
|
}))
|
|
@@ -70,7 +50,7 @@ class NotesModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
70
50
|
items.push(this.createColumnMenuItemClickFunction('Add Note', this.moduleInfo.Glyph, () => {
|
|
71
51
|
// add an empty one
|
|
72
52
|
this.api.notesApi.addNote('', menuContext.primaryKeyValue, menuContext.adaptableColumn.columnId);
|
|
73
|
-
this.api.
|
|
53
|
+
this.api.internalApi.getCellPopupService().showPopup({
|
|
74
54
|
PrimaryKeyValue: menuContext.primaryKeyValue,
|
|
75
55
|
ColumnId: menuContext.adaptableColumn.columnId,
|
|
76
56
|
}, true);
|
|
@@ -78,64 +58,5 @@ class NotesModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
78
58
|
}
|
|
79
59
|
return items;
|
|
80
60
|
}
|
|
81
|
-
getCellPositionFromEvent(event) {
|
|
82
|
-
var _a, _b;
|
|
83
|
-
const target = event.target;
|
|
84
|
-
if (!((_b = (_a = target === null || target === void 0 ? void 0 : target.classList) === null || _a === void 0 ? void 0 : _a.contains) === null || _b === void 0 ? void 0 : _b.call(_a, 'ag-cell'))) {
|
|
85
|
-
return null;
|
|
86
|
-
}
|
|
87
|
-
try {
|
|
88
|
-
return {
|
|
89
|
-
PrimaryKeyValue: target.parentElement.getAttribute('row-id'),
|
|
90
|
-
ColumnId: target.getAttribute('col-id'),
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
catch (e) {
|
|
94
|
-
return null;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
handleMouseEnter(event) {
|
|
98
|
-
var _a;
|
|
99
|
-
const editMode = this.adaptable.api.notesApi.getNotePopupEditMode();
|
|
100
|
-
if (editMode) {
|
|
101
|
-
// ignore
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
const cellPosition = this.getCellPositionFromEvent(event);
|
|
105
|
-
const openNoteGridCell = this.adaptable.api.notesApi.getOpenNoteGridCell();
|
|
106
|
-
// Hovering over someting that is not a cell and there is no open note
|
|
107
|
-
if (!cellPosition && openNoteGridCell) {
|
|
108
|
-
// need to close if the new cell does not have a note
|
|
109
|
-
this.adaptable.api.notesApi.hideNote();
|
|
110
|
-
}
|
|
111
|
-
else if ((_a = this.adaptable.api.notesApi.getCellNotes(cellPosition)) === null || _a === void 0 ? void 0 : _a.length) {
|
|
112
|
-
this.adaptable.api.notesApi.showNotes(cellPosition, false);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
handleCellSelected(noteGridCell) {
|
|
116
|
-
// if already opened - do nothing
|
|
117
|
-
const openNoteGridCell = this.adaptable.api.notesApi.getOpenNoteGridCell();
|
|
118
|
-
if ((openNoteGridCell === null || openNoteGridCell === void 0 ? void 0 : openNoteGridCell.PrimaryKeyValue) === noteGridCell.PrimaryKeyValue &&
|
|
119
|
-
(openNoteGridCell === null || openNoteGridCell === void 0 ? void 0 : openNoteGridCell.ColumnId) === noteGridCell.ColumnId) {
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
// if open but this has no note, close
|
|
123
|
-
const cellNotes = this.adaptable.api.notesApi.getCellNotes(noteGridCell);
|
|
124
|
-
if (openNoteGridCell && !(cellNotes === null || cellNotes === void 0 ? void 0 : cellNotes.length)) {
|
|
125
|
-
// hide only if in edit mode
|
|
126
|
-
// because if you select a cell and move the mouse fast over another cell
|
|
127
|
-
// with a note, you do not want to close that note
|
|
128
|
-
// the selection is debounced, so the moment goes over the new cell this event is triggered
|
|
129
|
-
if (this.adaptable.api.notesApi.getNotePopupEditMode()) {
|
|
130
|
-
this.adaptable.api.notesApi.hideNote();
|
|
131
|
-
}
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
// if open but the new selection has a note open that one in edit mode (because of click)
|
|
135
|
-
if (openNoteGridCell && (cellNotes === null || cellNotes === void 0 ? void 0 : cellNotes.length)) {
|
|
136
|
-
this.adaptable.api.notesApi.showNotes(noteGridCell, true);
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
61
|
}
|
|
141
62
|
exports.NotesModule = NotesModule;
|
|
@@ -12,6 +12,7 @@ const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
|
|
|
12
12
|
const PlusMinusWizard_1 = require("../View/PlusMinus/Wizard/PlusMinusWizard");
|
|
13
13
|
const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
|
|
14
14
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
15
|
+
const MovePlusMinus_1 = require("../View/PlusMinus/MovePlusMinus");
|
|
15
16
|
class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
16
17
|
constructor(api) {
|
|
17
18
|
super(ModuleConstants.PlusMinusModuleId, ModuleConstants.PlusMinusFriendlyName, 'add-circle', 'PlusMinusPopup', 'Configure how a cell value will edit when the + or - keys are pressed', api);
|
|
@@ -218,6 +219,7 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
218
219
|
}
|
|
219
220
|
getViewProperties() {
|
|
220
221
|
return {
|
|
222
|
+
actions: [MovePlusMinus_1.MovePlusMinus],
|
|
221
223
|
getEditAction: PlusMinusRedux.PlusMinusNudgeEdit,
|
|
222
224
|
getDeleteAction: PlusMinusRedux.PlusMinusNudgeDelete,
|
|
223
225
|
getSuspendAction: PlusMinusRedux.PlusMinusNudgeSuspend,
|
|
@@ -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;
|