@adaptabletools/adaptable 17.0.0-canary.3 → 17.0.0-canary.5
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/agGrid.js +32 -26
- package/base.css +1206 -1192
- package/base.css.map +1 -1
- package/bundle.cjs.js +716 -0
- package/index.css +1980 -5
- package/index.css.map +1 -1
- package/package.json +4 -5
- package/publishTimestamp.d.ts +2 -0
- package/publishTimestamp.js +3 -0
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.js +2 -1
- package/src/AdaptableInterfaces/IAdaptable.js +2 -1
- package/src/AdaptableOptions/ActionColumnOptions.js +2 -1
- package/src/AdaptableOptions/ActionRowOptions.js +2 -1
- package/src/AdaptableOptions/AdaptableFrameworkComponent.js +2 -1
- package/src/AdaptableOptions/AdaptableOptions.js +2 -1
- package/src/AdaptableOptions/AdaptablePlugin.js +5 -1
- package/src/AdaptableOptions/AlertOptions.js +2 -1
- package/src/AdaptableOptions/CalendarOptions.js +2 -1
- package/src/AdaptableOptions/CellSummaryOptions.js +2 -1
- package/src/AdaptableOptions/ChartingOptions.js +2 -1
- package/src/AdaptableOptions/ColumnFilterOptions.js +2 -1
- package/src/AdaptableOptions/ColumnOptions.js +2 -1
- package/src/AdaptableOptions/ContainerOptions.js +2 -1
- package/src/AdaptableOptions/CustomSortOptions.js +2 -1
- package/src/AdaptableOptions/DashboardOptions.js +2 -1
- package/src/AdaptableOptions/DataChangeHistoryOptions.js +2 -1
- package/src/AdaptableOptions/DataImportOptions.js +2 -1
- package/src/AdaptableOptions/DataSetOptions.js +2 -1
- package/src/AdaptableOptions/DateInputOptions.js +2 -1
- package/src/AdaptableOptions/EditOptions.js +2 -1
- package/src/AdaptableOptions/EntitlementOptions.js +2 -1
- package/src/AdaptableOptions/ExportOptions.js +2 -1
- package/src/AdaptableOptions/ExpressionOptions.js +2 -1
- package/src/AdaptableOptions/Fdc3Options.js +5 -2
- package/src/AdaptableOptions/FinsemblePluginOptions.js +2 -1
- package/src/AdaptableOptions/FlashingCellOptions.js +2 -1
- package/src/AdaptableOptions/FormatColumnOptions.js +2 -1
- package/src/AdaptableOptions/Glue42PluginOptions.js +2 -1
- package/src/AdaptableOptions/Glue42WebPluginOptions.js +2 -1
- package/src/AdaptableOptions/GridFilterOptions.js +2 -1
- package/src/AdaptableOptions/GroupingOptions.js +2 -1
- package/src/AdaptableOptions/IPushPullPluginOptions.js +2 -1
- package/src/AdaptableOptions/LayoutOptions.js +2 -1
- package/src/AdaptableOptions/MasterDetailPluginOptions.js +2 -1
- package/src/AdaptableOptions/MenuOptions.js +7 -3
- package/src/AdaptableOptions/NotesOptions.js +2 -1
- package/src/AdaptableOptions/NotificationsOptions.js +2 -1
- package/src/AdaptableOptions/OpenFinPluginOptions.js +2 -1
- package/src/AdaptableOptions/PredicateOptions.js +2 -1
- package/src/AdaptableOptions/QuickSearchOptions.js +2 -1
- package/src/AdaptableOptions/SettingsPanelOptions.js +2 -1
- package/src/AdaptableOptions/StateOptions.js +2 -1
- package/src/AdaptableOptions/TeamSharingOptions.js +2 -1
- package/src/AdaptableOptions/ToolPanelOptions.js +2 -1
- package/src/AdaptableOptions/UserInterfaceOptions.js +2 -1
- package/src/Api/ActionColumnApi.js +2 -1
- package/src/Api/ActionRowApi.js +2 -1
- package/src/Api/AdaptableApi.js +2 -1
- package/src/Api/AlertApi.js +2 -1
- package/src/Api/ApplicationApi.js +2 -1
- package/src/Api/BulkUpdateApi.js +2 -1
- package/src/Api/CalculatedColumnApi.js +2 -1
- package/src/Api/CalendarApi.js +2 -1
- package/src/Api/CellSummaryApi.js +2 -1
- package/src/Api/ChartingApi.js +2 -1
- package/src/Api/ColumnApi.js +2 -1
- package/src/Api/ColumnFilterApi.js +2 -1
- package/src/Api/ConfigApi.js +2 -1
- package/src/Api/CustomSortApi.js +2 -1
- package/src/Api/DashboardApi.js +2 -1
- package/src/Api/DataChangeHistoryApi.js +2 -1
- package/src/Api/DataImportApi.js +2 -1
- package/src/Api/DataSetApi.js +2 -1
- package/src/Api/EntitlementApi.js +2 -1
- package/src/Api/EventApi.js +2 -1
- package/src/Api/Events/ActionRowSubmitted.js +2 -1
- package/src/Api/Events/AdaptableReady.js +2 -1
- package/src/Api/Events/AdaptableSearchState.js +2 -1
- package/src/Api/Events/AdaptableStateChanged.js +2 -1
- package/src/Api/Events/AdaptableStateReloaded.js +2 -1
- package/src/Api/Events/AlertFired.js +2 -1
- package/src/Api/Events/BaseEventInfo.js +2 -1
- package/src/Api/Events/CellChanged.js +2 -1
- package/src/Api/Events/ChartChanged.js +2 -1
- package/src/Api/Events/ColumnFilterApplied.js +2 -1
- package/src/Api/Events/CustomToolbarConfigured.js +2 -1
- package/src/Api/Events/DashboardChanged.js +2 -1
- package/src/Api/Events/DataImported.js +2 -1
- package/src/Api/Events/DataSetSelected.js +2 -1
- package/src/Api/Events/Fdc3MessageInfo.js +2 -1
- package/src/Api/Events/FlashingCellDisplayed.js +2 -1
- package/src/Api/Events/GridDataChanged.js +2 -1
- package/src/Api/Events/GridFilterApplied.js +2 -1
- package/src/Api/Events/GridSorted.js +2 -1
- package/src/Api/Events/LayoutChanged.js +2 -1
- package/src/Api/Events/LiveDataChanged.js +2 -1
- package/src/Api/Events/ScheduleTriggered.js +2 -1
- package/src/Api/Events/SelectionChanged.js +2 -1
- package/src/Api/Events/SystemStatusMessageDisplayed.js +2 -1
- package/src/Api/Events/TeamSharingEntityChanged.js +2 -1
- package/src/Api/Events/ThemeChanged.js +2 -1
- package/src/Api/Events/ThemeEdited.js +2 -1
- package/src/Api/ExportApi.js +2 -1
- package/src/Api/ExpressionApi.js +2 -1
- package/src/Api/Fdc3Api.js +2 -1
- package/src/Api/FinsembleApi.js +2 -1
- package/src/Api/FlashingCellApi.js +2 -1
- package/src/Api/FormatColumnApi.js +2 -1
- package/src/Api/FreeTextColumnApi.js +2 -1
- package/src/Api/Glue42Api.js +2 -1
- package/src/Api/Glue42WebApi.js +2 -1
- package/src/Api/GridApi.js +2 -1
- package/src/Api/GridFilterApi.js +2 -1
- package/src/Api/IPushPullApi.js +2 -1
- package/src/Api/Implementation/ActionColumnApiImpl.js +6 -2
- package/src/Api/Implementation/ActionRowApiImpl.js +12 -8
- package/src/Api/Implementation/AdaptableApiImpl.js +101 -97
- package/src/Api/Implementation/AlertApiImpl.js +23 -18
- package/src/Api/Implementation/ApiBase.js +10 -5
- package/src/Api/Implementation/ApplicationApiImpl.js +8 -3
- package/src/Api/Implementation/BulkUpdateApiImpl.js +10 -5
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +11 -6
- package/src/Api/Implementation/CalendarApiImpl.js +6 -2
- package/src/Api/Implementation/CellSummaryApiImpl.js +22 -17
- package/src/Api/Implementation/ChartingApiImpl.js +18 -13
- package/src/Api/Implementation/ColumnApiImpl.js +16 -11
- package/src/Api/Implementation/ColumnFilterApiImpl.js +14 -9
- package/src/Api/Implementation/ConfigApiImpl.js +34 -29
- package/src/Api/Implementation/CustomSortApiImpl.js +11 -6
- package/src/Api/Implementation/DashboardApiImpl.js +14 -9
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +15 -10
- package/src/Api/Implementation/DataImportApiImpl.js +8 -4
- package/src/Api/Implementation/DataSetApiImpl.js +11 -6
- package/src/Api/Implementation/EntitlementApiImpl.js +6 -2
- package/src/Api/Implementation/EventApiImpl.js +9 -4
- package/src/Api/Implementation/ExportApiImpl.js +17 -12
- package/src/Api/Implementation/ExpressionApiImpl.js +10 -5
- package/src/Api/Implementation/Fdc3ApiImpl.js +12 -8
- package/src/Api/Implementation/FlashingCellApiImpl.js +11 -6
- package/src/Api/Implementation/FormatColumnApiImpl.js +11 -6
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +14 -9
- package/src/Api/Implementation/GridApiImpl.js +23 -18
- package/src/Api/Implementation/GridFilterApiImpl.js +14 -9
- package/src/Api/Implementation/LayoutApiImpl.js +30 -25
- package/src/Api/Implementation/NamedQueryApiImpl.js +13 -8
- package/src/Api/Implementation/NotesApiImpl.js +9 -4
- package/src/Api/Implementation/OptionsApiImpl.js +6 -2
- package/src/Api/Implementation/PluginsApiImpl.js +8 -3
- package/src/Api/Implementation/PlusMinusApiImpl.js +9 -4
- package/src/Api/Implementation/PredicateApiImpl.js +17 -12
- package/src/Api/Implementation/QuickSearchApiImpl.js +10 -5
- package/src/Api/Implementation/ScheduleApiImpl.js +11 -6
- package/src/Api/Implementation/ScopeApiImpl.js +13 -8
- package/src/Api/Implementation/SettingsPanelApiImpl.js +8 -3
- package/src/Api/Implementation/ShortcutApiImpl.js +9 -4
- package/src/Api/Implementation/SmartEditApiImpl.js +10 -5
- package/src/Api/Implementation/StatusBarApiImpl.js +9 -5
- package/src/Api/Implementation/StyledColumnApiImpl.js +11 -6
- package/src/Api/Implementation/SystemStatusApiImpl.js +21 -16
- package/src/Api/Implementation/TeamSharingApiImpl.js +17 -12
- package/src/Api/Implementation/ThemeApiImpl.js +15 -10
- package/src/Api/Implementation/ToolPanelApiImpl.js +11 -6
- package/src/Api/Implementation/UserInterfaceApiImpl.js +20 -15
- package/src/Api/Internal/ActionRowInternalApi.js +6 -2
- package/src/Api/Internal/AdaptableInternalApi.js +26 -21
- package/src/Api/Internal/AlertInternalApi.js +25 -20
- package/src/Api/Internal/CalculatedColumnInternalApi.js +6 -2
- package/src/Api/Internal/ChartingInternalApi.js +12 -8
- package/src/Api/Internal/ColumnFilterInternalApi.js +13 -8
- package/src/Api/Internal/ColumnInternalApi.js +8 -4
- package/src/Api/Internal/CustomSortInternalApi.js +6 -2
- package/src/Api/Internal/DashboardInternalApi.js +11 -6
- package/src/Api/Internal/DataImportInternalApi.js +10 -5
- package/src/Api/Internal/DataSetInternalApi.js +6 -2
- package/src/Api/Internal/ExportInternalApi.js +6 -2
- package/src/Api/Internal/ExpressionnternalApi.js +6 -2
- package/src/Api/Internal/Fdc3InternalApi.js +28 -24
- package/src/Api/Internal/FlashingCellInternalApi.js +12 -7
- package/src/Api/Internal/FormatColumnInternalApi.js +22 -17
- package/src/Api/Internal/FreeTextColumnInternalApi.js +6 -2
- package/src/Api/Internal/GridFilterInternalApi.js +6 -2
- package/src/Api/Internal/GridInternalApi.js +18 -13
- package/src/Api/Internal/LayoutInternalApi.js +21 -16
- package/src/Api/Internal/NamedQueryInternalApi.js +8 -3
- package/src/Api/Internal/PredicateInternalApi.js +6 -2
- package/src/Api/Internal/ScheduleInternalApi.js +6 -2
- package/src/Api/Internal/StyledColumnInternalApi.js +10 -5
- package/src/Api/Internal/SystemStatusInternalApi.js +8 -3
- package/src/Api/Internal/TeamSharingInternalApi.js +6 -2
- package/src/Api/Internal/ThemeInternalApi.js +9 -5
- package/src/Api/Internal/UserInterfaceInternalApi.js +6 -2
- package/src/Api/LayoutApi.js +2 -1
- package/src/Api/NamedQueryApi.js +2 -1
- package/src/Api/NotesAPi.js +2 -1
- package/src/Api/OpenFinApi.js +2 -1
- package/src/Api/OptionsApi.js +2 -1
- package/src/Api/PluginsApi.js +2 -1
- package/src/Api/PlusMinusApi.js +2 -1
- package/src/Api/PredicateApi.js +2 -1
- package/src/Api/QuickSearchApi.js +2 -1
- package/src/Api/ScheduleApi.js +2 -1
- package/src/Api/ScopeApi.js +2 -1
- package/src/Api/SettingsPanelApi.js +2 -1
- package/src/Api/ShortcutApi.js +2 -1
- package/src/Api/SmartEditApi.js +2 -1
- package/src/Api/StatusBarApi.js +2 -1
- package/src/Api/StyledColumnApi.js +2 -1
- package/src/Api/SystemStatusApi.js +2 -1
- package/src/Api/TeamSharingApi.js +2 -1
- package/src/Api/ThemeApi.js +2 -1
- package/src/Api/ToolPanelApi.js +2 -1
- package/src/Api/UserInterfaceApi.js +2 -1
- package/src/PredefinedConfig/AdaptableState.js +2 -1
- package/src/PredefinedConfig/AlertState.js +2 -1
- package/src/PredefinedConfig/ApplicationState.js +2 -1
- package/src/PredefinedConfig/CalculatedColumnState.js +2 -1
- package/src/PredefinedConfig/ChartingState.js +7 -2
- package/src/PredefinedConfig/Common/AdaptableAlert.js +7 -2
- package/src/PredefinedConfig/Common/AdaptableButton.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableColumn.js +5 -1
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableFlashingCell.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableForm.js +5 -1
- package/src/PredefinedConfig/Common/AdaptableFormat.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableIcon.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableMessageType.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableObject.js +2 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +56 -52
- package/src/PredefinedConfig/Common/AdaptableQuery.js +5 -1
- package/src/PredefinedConfig/Common/AdaptableScope.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableStyle.js +2 -1
- package/src/PredefinedConfig/Common/AggregationColumns.js +4 -1
- package/src/PredefinedConfig/Common/AlternativeModuleName.js +2 -1
- package/src/PredefinedConfig/Common/BaseContext.js +2 -1
- package/src/PredefinedConfig/Common/ButtonStyle.js +2 -1
- package/src/PredefinedConfig/Common/CellDataChangedInfo.js +2 -1
- package/src/PredefinedConfig/Common/CellHighlightInfo.js +2 -1
- package/src/PredefinedConfig/Common/CellSummary.js +2 -1
- package/src/PredefinedConfig/Common/ColumnFilter.js +2 -1
- package/src/PredefinedConfig/Common/ColumnSort.js +2 -1
- package/src/PredefinedConfig/Common/DataChangedScope.js +2 -1
- package/src/PredefinedConfig/Common/DataUpdateConfig.js +2 -1
- package/src/PredefinedConfig/Common/Entitlement.js +2 -1
- package/src/PredefinedConfig/Common/Enums.js +29 -26
- package/src/PredefinedConfig/Common/Fdc3Context.js +35 -32
- package/src/PredefinedConfig/Common/Fdc3Intent.js +67 -64
- package/src/PredefinedConfig/Common/FilterActionOnDataChange.js +2 -1
- package/src/PredefinedConfig/Common/FormContext.js +2 -1
- package/src/PredefinedConfig/Common/GridFilter.js +2 -1
- package/src/PredefinedConfig/Common/Menu.js +2 -1
- package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -1
- package/src/PredefinedConfig/Common/RowsHighlightInfo.js +2 -1
- package/src/PredefinedConfig/Common/Schedule.js +2 -1
- package/src/PredefinedConfig/Common/SpecialColumnSettings.js +2 -1
- package/src/PredefinedConfig/Common/SuspendableObject.js +2 -1
- package/src/PredefinedConfig/Common/SystemStatusMessageInfo.js +2 -1
- package/src/PredefinedConfig/Common/Types.js +9 -5
- package/src/PredefinedConfig/ConfigState.js +2 -1
- package/src/PredefinedConfig/CustomSortState.js +2 -1
- package/src/PredefinedConfig/DashboardState.js +2 -1
- package/src/PredefinedConfig/ExportState.js +2 -1
- package/src/PredefinedConfig/FlashingCellState.js +2 -1
- package/src/PredefinedConfig/FormatColumnState.js +2 -1
- package/src/PredefinedConfig/FreeTextColumnState.js +2 -1
- package/src/PredefinedConfig/Glue42State.js +2 -1
- package/src/PredefinedConfig/GridState.js +2 -1
- package/src/PredefinedConfig/IPushPullState.js +2 -1
- package/src/PredefinedConfig/InternalState.js +2 -1
- package/src/PredefinedConfig/LayoutState.js +2 -1
- package/src/PredefinedConfig/NamedQueryState.js +2 -1
- package/src/PredefinedConfig/NotesState.js +2 -1
- package/src/PredefinedConfig/OpenFinState.js +2 -1
- package/src/PredefinedConfig/PlusMinusState.js +2 -1
- package/src/PredefinedConfig/PopupState.js +2 -1
- package/src/PredefinedConfig/PredefinedConfig.js +2 -1
- package/src/PredefinedConfig/QueryState.js +2 -1
- package/src/PredefinedConfig/QuickSearchState.js +2 -1
- package/src/PredefinedConfig/ScheduleState.js +2 -1
- package/src/PredefinedConfig/Selection/GridCell.js +2 -1
- package/src/PredefinedConfig/Selection/GridCellRange.js +2 -1
- package/src/PredefinedConfig/Selection/GridRow.js +2 -1
- package/src/PredefinedConfig/Selection/SelectedCellInfo.js +2 -1
- package/src/PredefinedConfig/Selection/SelectedRowInfo.js +2 -1
- package/src/PredefinedConfig/ShortcutState.js +2 -1
- package/src/PredefinedConfig/StatusBarState.js +4 -1
- package/src/PredefinedConfig/StyledColumnState.js +2 -1
- package/src/PredefinedConfig/SystemState.js +2 -1
- package/src/PredefinedConfig/TeamSharingState.js +7 -2
- package/src/PredefinedConfig/ThemeState.js +2 -1
- package/src/PredefinedConfig/ToolPanelState.js +2 -1
- package/src/PredefinedConfig/Uuid.js +6 -2
- package/src/Redux/ActionsReducers/AlertRedux.js +59 -45
- package/src/Redux/ActionsReducers/ApplicationRedux.js +22 -15
- package/src/Redux/ActionsReducers/BulkUpdateRedux.js +15 -9
- package/src/Redux/ActionsReducers/CalculatedColumnRedux.js +29 -20
- package/src/Redux/ActionsReducers/CellSummaryRedux.js +7 -3
- package/src/Redux/ActionsReducers/ChartingRedux.js +55 -41
- package/src/Redux/ActionsReducers/CustomSortRedux.js +54 -41
- package/src/Redux/ActionsReducers/DashboardRedux.js +66 -50
- package/src/Redux/ActionsReducers/ExportRedux.js +43 -31
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +57 -43
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +70 -54
- package/src/Redux/ActionsReducers/FreeTextColumnRedux.js +34 -24
- package/src/Redux/ActionsReducers/GridRedux.js +160 -125
- package/src/Redux/ActionsReducers/LayoutRedux.js +115 -89
- package/src/Redux/ActionsReducers/NamedQueryRedux.js +35 -25
- package/src/Redux/ActionsReducers/NotesRedux.js +31 -21
- package/src/Redux/ActionsReducers/PluginsRedux.js +53 -48
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +59 -45
- package/src/Redux/ActionsReducers/PopupRedux.js +84 -64
- package/src/Redux/ActionsReducers/QueryRedux.js +13 -8
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +23 -16
- package/src/Redux/ActionsReducers/ScheduleRedux.js +222 -179
- package/src/Redux/ActionsReducers/ShortcutRedux.js +54 -41
- package/src/Redux/ActionsReducers/SmartEditRedux.js +15 -9
- package/src/Redux/ActionsReducers/StatusBarRedux.js +19 -12
- package/src/Redux/ActionsReducers/StyledColumnRedux.js +54 -41
- package/src/Redux/ActionsReducers/SystemRedux.js +324 -254
- package/src/Redux/ActionsReducers/SystemStatusRedux.js +11 -6
- package/src/Redux/ActionsReducers/TeamSharingRedux.js +55 -40
- package/src/Redux/ActionsReducers/ThemeRedux.js +43 -32
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +39 -28
- package/src/Redux/ActionsReducers/utils.js +9 -3
- package/src/Redux/DeadRedux.js +38 -25
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +20 -15
- package/src/Redux/Store/AdaptableReduxMerger.js +30 -21
- package/src/Redux/Store/AdaptableStore.js +107 -100
- package/src/Redux/Store/Interface/IAdaptableStore.js +2 -1
- package/src/Redux/Store/Interface/IStorageEngine.js +2 -1
- package/src/Strategy/AdaptableModuleBase.js +13 -8
- package/src/Strategy/AlertModule.js +40 -35
- package/src/Strategy/BulkUpdateModule.js +22 -17
- package/src/Strategy/CalculatedColumnModule.js +21 -16
- package/src/Strategy/CellSummaryModule.js +22 -17
- package/src/Strategy/ChartingModule.js +20 -15
- package/src/Strategy/ColumnFilterModule.js +16 -11
- package/src/Strategy/ColumnInfoModule.js +8 -3
- package/src/Strategy/CustomSortModule.js +17 -12
- package/src/Strategy/DashboardModule.js +9 -4
- package/src/Strategy/DataChangeHistoryModule.js +15 -10
- package/src/Strategy/DataImportModule.js +8 -3
- package/src/Strategy/DataSetModule.js +16 -11
- package/src/Strategy/ExportModule.js +60 -55
- package/src/Strategy/Fdc3Module.js +8 -3
- package/src/Strategy/FlashingCellModule.js +33 -28
- package/src/Strategy/FormatColumnModule.js +32 -27
- package/src/Strategy/FreeTextColumnModule.js +13 -8
- package/src/Strategy/GridFilterModule.js +14 -9
- package/src/Strategy/GridInfoModule.js +8 -3
- package/src/Strategy/Interface/IBulkUpdateModule.js +2 -1
- package/src/Strategy/Interface/ICellSummaryModule.js +2 -1
- package/src/Strategy/Interface/IExportModule.js +2 -1
- package/src/Strategy/Interface/IModule.js +2 -1
- package/src/Strategy/Interface/IModuleActionReturn.js +2 -1
- package/src/Strategy/Interface/IPlusMinusModule.js +2 -1
- package/src/Strategy/Interface/IScheduleModule.js +2 -1
- package/src/Strategy/Interface/IShortcutModule.js +2 -1
- package/src/Strategy/Interface/ISmartEditModule.js +2 -1
- package/src/Strategy/LayoutModule.js +35 -30
- package/src/Strategy/NamedQueryModule.js +17 -12
- package/src/Strategy/NotesModule.js +8 -3
- package/src/Strategy/PlusMinusModule.js +26 -21
- package/src/Strategy/QuickSearchModule.js +10 -5
- package/src/Strategy/ScheduleModule.js +45 -40
- package/src/Strategy/SettingsPanelModule.js +9 -4
- package/src/Strategy/ShortcutModule.js +26 -21
- package/src/Strategy/SmartEditModule.js +27 -22
- package/src/Strategy/StateManagementModule.js +8 -3
- package/src/Strategy/StatusBarModule.js +8 -3
- package/src/Strategy/StyledColumnModule.js +22 -17
- package/src/Strategy/SystemStatusModule.js +10 -5
- package/src/Strategy/TeamSharingModule.js +37 -32
- package/src/Strategy/ThemeModule.js +10 -5
- package/src/Strategy/ToolPanelModule.js +13 -8
- package/src/Strategy/Utilities/Alert/getAlertBehaviourViewItems.js +9 -5
- package/src/Strategy/Utilities/Alert/getAlertPreviewViewItems.js +11 -6
- package/src/Strategy/Utilities/Alert/getAlertTypeViewItems.js +8 -4
- package/src/Strategy/Utilities/CustomSort/getCustomSortColumnViewItems.js +5 -1
- package/src/Strategy/Utilities/CustomSort/getCustomSortSortOrderViewItems.js +5 -1
- package/src/Strategy/Utilities/Export/getExportColumnsViewItems.js +5 -1
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +5 -1
- package/src/Strategy/Utilities/FlashingCell/getFlashingCellDurationViewItems.js +5 -1
- package/src/Strategy/Utilities/FlashingCell/getFlashingCellStyleViewItems.js +7 -3
- package/src/Strategy/Utilities/FlashingCell/getFlashingTargetViewItems.js +5 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +5 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +10 -5
- package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +8 -3
- package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.js +5 -1
- package/src/Strategy/Utilities/Shortcut/getShortcutSettingsViewItems.js +5 -1
- package/src/Strategy/Utilities/getExpressionViewItems.js +5 -1
- package/src/Strategy/Utilities/getObjectTagsViewItems.js +12 -7
- package/src/Strategy/Utilities/getRuleViewItems.js +5 -1
- package/src/Strategy/Utilities/getScopeViewItems.js +5 -1
- package/src/Strategy/Utilities/updateSingleToMultiplePredicates.js +5 -1
- package/src/Utilities/Cancelable.js +2 -1
- package/src/Utilities/Constants/ConfigConstants.js +12 -9
- package/src/Utilities/Constants/DocumentationLinkConstants.js +17 -14
- package/src/Utilities/Constants/GeneralConstants.js +74 -70
- package/src/Utilities/Constants/ModuleConstants.js +119 -115
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +28 -24
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +5 -2
- package/src/Utilities/Emitter.js +5 -3
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +24 -20
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +54 -51
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +36 -31
- package/src/Utilities/ExpressionFunctions/dateUtils.js +7 -2
- package/src/Utilities/ExpressionFunctions/deepMap.js +5 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +57 -39
- package/src/Utilities/ExpressionFunctions/groupingMap.js +7 -3
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +70 -66
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +7 -3
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +56 -52
- package/src/Utilities/Extensions/ArrayExtensions.js +73 -39
- package/src/Utilities/Extensions/EnumExtensions.js +21 -14
- package/src/Utilities/Extensions/NumberExtensions.js +9 -4
- package/src/Utilities/Extensions/ObjectExtensions.js +9 -3
- package/src/Utilities/Extensions/StringExtensions.js +46 -23
- package/src/Utilities/Extensions/TypeExtensions.js +5 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +70 -59
- package/src/Utilities/Helpers/DateHelper.js +28 -18
- package/src/Utilities/Helpers/FormatHelper.js +18 -10
- package/src/Utilities/Helpers/Helper.js +50 -28
- package/src/Utilities/Helpers/PreviewHelper.js +15 -8
- package/src/Utilities/Helpers/StyleHelper.js +20 -11
- package/src/Utilities/Interface/AdaptableToolPanelContext.js +2 -1
- package/src/Utilities/Interface/ColumnFilterProps.js +2 -1
- package/src/Utilities/Interface/IPPStyle.js +2 -1
- package/src/Utilities/Interface/KeyValuePair.js +2 -1
- package/src/Utilities/Interface/MessagePopups.js +2 -1
- package/src/Utilities/Interface/Preview.js +2 -1
- package/src/Utilities/MenuItem.js +11 -4
- package/src/Utilities/ObjectFactory.js +167 -124
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +7 -3
- package/src/Utilities/Services/AlertService.js +16 -11
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +13 -9
- package/src/Utilities/Services/ChartingService.js +15 -10
- package/src/Utilities/Services/DataService.js +13 -8
- package/src/Utilities/Services/EntitlementService.js +5 -1
- package/src/Utilities/Services/Fdc3Service.js +11 -7
- package/src/Utilities/Services/Interface/IAdaptableService.js +2 -1
- package/src/Utilities/Services/Interface/IAlertService.js +8 -3
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.js +2 -1
- package/src/Utilities/Services/Interface/IChartingService.js +2 -1
- package/src/Utilities/Services/Interface/IDataService.js +2 -1
- package/src/Utilities/Services/Interface/IEntitlementService.js +2 -1
- package/src/Utilities/Services/Interface/ILicenseService.js +2 -1
- package/src/Utilities/Services/Interface/IMetamodelService.js +2 -1
- package/src/Utilities/Services/Interface/IModuleService.js +2 -1
- package/src/Utilities/Services/Interface/IQueryLanguageService.js +2 -1
- package/src/Utilities/Services/Interface/IReportService.js +2 -1
- package/src/Utilities/Services/Interface/IRowEditService.js +2 -1
- package/src/Utilities/Services/Interface/ITeamSharingService.js +2 -1
- package/src/Utilities/Services/Interface/IThemeService.js +2 -1
- package/src/Utilities/Services/Interface/IValidationService.js +2 -1
- package/src/Utilities/Services/LicenseService/index.js +1 -181
- package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.js +5 -1
- package/src/Utilities/Services/MetamodelService.js +17 -12
- package/src/Utilities/Services/ModuleService.js +13 -8
- package/src/Utilities/Services/QueryLanguageService.js +29 -24
- package/src/Utilities/Services/ReportService.js +53 -48
- package/src/Utilities/Services/RowEditService.js +5 -1
- package/src/Utilities/Services/TeamSharingService.js +11 -6
- package/src/Utilities/Services/ThemeService.js +5 -1
- package/src/Utilities/Services/ValidationService.js +15 -10
- package/src/Utilities/getScrollbarSize.js +3 -1
- package/src/Utilities/isAdaptableObject.js +5 -1
- package/src/Utilities/isMacLike.js +5 -1
- package/src/Utilities/license/LicenseDetails.js +2 -1
- package/src/Utilities/license/decode.js +1 -65
- package/src/Utilities/license/hashing.js +1 -43
- package/src/Utilities/logDeprecation.js +9 -3
- package/src/Utilities/reorder.js +5 -1
- package/src/Utilities/runIfNotResolvedIn.js +5 -1
- package/src/Utilities/sortWithOrder.js +5 -1
- package/src/Utilities/waitForCondition.js +5 -1
- package/src/Utilities/waitForTimeout.js +5 -1
- package/src/View/AdaptableContext.js +8 -3
- package/src/View/AdaptablePopover/index.js +22 -17
- package/src/View/AdaptableView.js +35 -30
- package/src/View/AdaptableViewFactory.js +71 -67
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +2 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +30 -25
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +44 -42
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +9 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +26 -21
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +9 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +29 -26
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +2 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +20 -17
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +13 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +21 -16
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +29 -24
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +23 -18
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +5 -3
- package/src/View/AdaptableWizardView/Utils.js +5 -1
- package/src/View/AdaptableWizardView/Wizard.js +26 -20
- package/src/View/AdaptableWizardView/helper.js +10 -4
- package/src/View/AdaptableWizardView/index.js +10 -7
- package/src/View/Alert/ActiveAlertsPanel.js +14 -9
- package/src/View/Alert/ActiveAlertsPanelItemLabel.js +15 -10
- package/src/View/Alert/AlertEmptyView.js +9 -4
- package/src/View/Alert/AlertEntityRow.js +18 -13
- package/src/View/Alert/AlertStatusSubPanel.js +18 -13
- package/src/View/Alert/AlertViewPanel.js +20 -16
- package/src/View/Alert/AlertsPanel.js +27 -22
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +11 -6
- package/src/View/Alert/Utilities/getAlertType.js +9 -4
- package/src/View/Alert/Utilities/getAvailablePredicates.js +5 -1
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +14 -9
- package/src/View/Alert/Utilities/mapAlertDefinition.js +5 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +50 -43
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +40 -35
- package/src/View/Alert/Wizard/AlertMessageWizardSection.js +37 -31
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +33 -27
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +30 -23
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +13 -8
- package/src/View/Alert/Wizard/AlertSelectQueryWizard.js +19 -14
- package/src/View/Alert/Wizard/AlertTypeWizardSection.js +26 -20
- package/src/View/Alert/Wizard/AlertWizard.js +65 -60
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +19 -14
- package/src/View/Alert/Wizard/isValidAlertRules.js +7 -3
- package/src/View/BulkUpdate/BulkUpdatePopup.js +37 -33
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +31 -27
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +22 -17
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingsTags.js +5 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +43 -36
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +28 -21
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +40 -33
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +18 -13
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +54 -49
- package/src/View/CalculatedColumn/utils.js +5 -1
- package/src/View/CellSummary/CellSummaryDetails.js +11 -6
- package/src/View/CellSummary/CellSummaryPopover.js +9 -4
- package/src/View/CellSummary/CellSummaryPopup.js +12 -8
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +12 -11
- package/src/View/CellSummary/CellSummaryStatusPanel.js +16 -11
- package/src/View/CellSummary/CellSummaryViewPanel.js +26 -22
- package/src/View/Charting/ChartingStatusBarPopover.js +17 -12
- package/src/View/Charting/ChartingViewPanel.js +18 -13
- package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.js +23 -18
- package/src/View/Charting/ChartingWizard/AgChargingWizard/PreviewChartSection.js +14 -9
- package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +22 -16
- package/src/View/Charting/ChartingWizard/AgChargingWizard/index.js +4 -1
- package/src/View/Charting/ChartingWizard/ChartingWizard.js +14 -10
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +18 -13
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +14 -8
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/index.js +4 -1
- package/src/View/Charting/ChartingWizard/index.js +4 -1
- package/src/View/Charting/DeleteChartButton.js +11 -6
- package/src/View/Charting/EditChartButton.js +13 -8
- package/src/View/Charting/ShowChartButton.js +26 -21
- package/src/View/Charting/useAgChartState.js +12 -7
- package/src/View/Charting/useChartingElements.js +31 -26
- package/src/View/Charting/useExternalChartState.js +12 -7
- package/src/View/ColumnInfo/ColumnInfo.js +38 -33
- package/src/View/ColumnInfo/ColumnInfoPopup.js +13 -8
- package/src/View/Components/AdaptableButton/index.js +13 -8
- package/src/View/Components/AdaptableDateInput/index.js +15 -13
- package/src/View/Components/AdaptableIconComponent/index.js +11 -6
- package/src/View/Components/AdaptableIconComponent/useCustomIcon.js +7 -3
- package/src/View/Components/AdaptableIconSelector/index.js +11 -6
- package/src/View/Components/AdaptableInput/index.js +11 -8
- package/src/View/Components/AdaptableObjectCollection/index.js +11 -6
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +33 -27
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +47 -40
- package/src/View/Components/AdaptableObjectList/index.js +5 -1
- package/src/View/Components/AdaptableObjectRow/index.js +12 -7
- package/src/View/Components/Badge/index.js +11 -6
- package/src/View/Components/Buttons/ButtonApply.js +9 -4
- package/src/View/Components/Buttons/ButtonBase/index.js +10 -5
- package/src/View/Components/Buttons/ButtonClear.js +9 -4
- package/src/View/Components/Buttons/ButtonClone.js +9 -4
- package/src/View/Components/Buttons/ButtonClose.js +9 -4
- package/src/View/Components/Buttons/ButtonConfigure.js +9 -4
- package/src/View/Components/Buttons/ButtonDelete.js +11 -8
- package/src/View/Components/Buttons/ButtonEdit.js +9 -4
- package/src/View/Components/Buttons/ButtonExpand.js +9 -4
- package/src/View/Components/Buttons/ButtonExport.js +9 -4
- package/src/View/Components/Buttons/ButtonFunction.js +9 -4
- package/src/View/Components/Buttons/ButtonGeneral.js +9 -4
- package/src/View/Components/Buttons/ButtonInfo.js +9 -4
- package/src/View/Components/Buttons/ButtonInvalid.js +9 -4
- package/src/View/Components/Buttons/ButtonLogin.js +9 -4
- package/src/View/Components/Buttons/ButtonLogout.js +9 -4
- package/src/View/Components/Buttons/ButtonMaximise.js +9 -4
- package/src/View/Components/Buttons/ButtonMinimise.js +9 -4
- package/src/View/Components/Buttons/ButtonNew.js +9 -4
- package/src/View/Components/Buttons/ButtonNewPage.js +9 -4
- package/src/View/Components/Buttons/ButtonOpen.js +9 -4
- package/src/View/Components/Buttons/ButtonPause.js +9 -4
- package/src/View/Components/Buttons/ButtonPlay.js +10 -5
- package/src/View/Components/Buttons/ButtonPreviewDelete.js +7 -4
- package/src/View/Components/Buttons/ButtonSave.js +9 -4
- package/src/View/Components/Buttons/ButtonSchedule.js +9 -4
- package/src/View/Components/Buttons/ButtonShare.js +12 -8
- package/src/View/Components/Buttons/ButtonShow.js +9 -4
- package/src/View/Components/Buttons/ButtonShowChart.js +9 -4
- package/src/View/Components/Buttons/ButtonStop.js +9 -4
- package/src/View/Components/Buttons/ButtonUndo.js +9 -4
- package/src/View/Components/Buttons/ButtonUnsuspend.js +9 -4
- package/src/View/Components/Buttons/EntityListActionButtons.js +19 -14
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +8 -4
- package/src/View/Components/Buttons/SuspendToggleButton/index.js +4 -1
- package/src/View/Components/CellPopup/index.js +14 -10
- package/src/View/Components/ColumnSelector/index.js +12 -7
- package/src/View/Components/EntityRowItem.js +7 -2
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicateEditor.js +23 -18
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +32 -27
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/index.js +5 -1
- package/src/View/Components/EntityRulesEditor/Utilities.js +5 -1
- package/src/View/Components/EntityRulesEditor/index.js +42 -45
- package/src/View/Components/ExpressionWizard.js +22 -17
- package/src/View/Components/ExternalRenderer.js +10 -6
- package/src/View/Components/FilterForm/FilterForm.js +56 -51
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +35 -30
- package/src/View/Components/FilterForm/ListBoxMenu.js +13 -8
- package/src/View/Components/FilterForm/QuickFilterForm.js +46 -41
- package/src/View/Components/FilterForm/QuickFilterValues.js +28 -23
- package/src/View/Components/FilterForm/Waiting.js +14 -10
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +5 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.js +14 -10
- package/src/View/Components/ListBox/DualListBoxEditor.js +58 -53
- package/src/View/Components/ListBox/ListBoxFilterSortComponent.js +15 -10
- package/src/View/Components/ModuleProfile.js +9 -4
- package/src/View/Components/ModuleSummary/ModuleDetail.js +11 -6
- package/src/View/Components/ModuleSummary/ModuleHeader.js +13 -8
- package/src/View/Components/ModuleSummary/SummaryRowItem.js +9 -4
- package/src/View/Components/ModuleValueSelector/index.js +19 -15
- package/src/View/Components/NewScopeComponent.js +52 -45
- package/src/View/Components/Panels/FilterFormPanel.js +27 -22
- package/src/View/Components/Panels/PanelDashboard/index.js +9 -4
- package/src/View/Components/Panels/PanelFooter.js +13 -8
- package/src/View/Components/Panels/PanelToolPanel/index.js +20 -16
- package/src/View/Components/Panels/PanelWithButton.js +21 -16
- package/src/View/Components/Panels/PanelWithImage.js +20 -16
- package/src/View/Components/Panels/PanelWithRow.js +12 -7
- package/src/View/Components/Panels/PanelWithTwoButtons.js +12 -7
- package/src/View/Components/Panels/ToolPanelSettingsPanel.js +11 -6
- package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +20 -15
- package/src/View/Components/PermittedValuesSelector/index.js +5 -1
- package/src/View/Components/Popups/AdaptableLoadingScreen.js +11 -6
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +31 -26
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +12 -7
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +25 -21
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +29 -24
- package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +9 -4
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +16 -11
- package/src/View/Components/Popups/AdaptablePopup/PopupContext.js +8 -3
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +17 -12
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +17 -12
- package/src/View/Components/Popups/AdaptablePopup/index.js +5 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +15 -10
- package/src/View/Components/Popups/AdaptablePopupAlert.js +27 -22
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +30 -25
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +23 -18
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +31 -26
- package/src/View/Components/Popups/AdaptableToaster.js +18 -13
- package/src/View/Components/Popups/FormPopups/FormPopups.js +25 -19
- package/src/View/Components/Popups/Utilities.js +17 -10
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +27 -23
- package/src/View/Components/Popups/WindowPopups/windowFactory.js +16 -13
- package/src/View/Components/PredicateEditor/PredicateEditor.js +26 -21
- package/src/View/Components/PreviewResultsPanel.js +18 -13
- package/src/View/Components/RangesComponent.js +56 -51
- package/src/View/Components/ScopeComponent.js +28 -23
- package/src/View/Components/Selectors/ColumnSelector.js +11 -6
- package/src/View/Components/Selectors/ColumnSelectorOld.js +18 -13
- package/src/View/Components/Selectors/ColumnValueSelector.js +20 -15
- package/src/View/Components/Selectors/PermittedValuesSelector.js +13 -8
- package/src/View/Components/SharedProps/BaseProps.js +2 -1
- package/src/View/Components/SharedProps/ConfigEntityRowProps.js +2 -1
- package/src/View/Components/SharedProps/EditableConfigEntityState.js +5 -2
- package/src/View/Components/SharedProps/ModuleSummaryProps.js +2 -1
- package/src/View/Components/SharedProps/ModuleViewPopupProps.js +2 -1
- package/src/View/Components/SharedProps/ToolPanelModuleViewPopupProps.js +2 -1
- package/src/View/Components/SharedProps/ToolbarModuleViewPopupProps.js +2 -1
- package/src/View/Components/SharedProps/ViewPanelProps.js +2 -1
- package/src/View/Components/SharedProps/WizardScopeState.js +2 -1
- package/src/View/Components/StyleComponent.js +69 -64
- package/src/View/Components/StyleVisualItem.js +14 -9
- package/src/View/Components/TagValueSelector/index.js +15 -9
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +44 -39
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +18 -13
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +28 -24
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +21 -16
- package/src/View/Components/ValueSelector/index.js +53 -47
- package/src/View/Components/WizardSummaryPage.js +12 -7
- package/src/View/Components/WizardSummaryRow.js +11 -6
- package/src/View/CustomSort/CustomSortSummary.js +37 -32
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +24 -17
- package/src/View/CustomSort/Wizard/CustomSortSummaryWizard.js +9 -4
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +36 -29
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +36 -31
- package/src/View/Dashboard/CustomDashboardButton.js +12 -7
- package/src/View/Dashboard/CustomToolbar.js +25 -19
- package/src/View/Dashboard/Dashboard.js +42 -38
- package/src/View/Dashboard/DashboardPopup.js +33 -29
- package/src/View/Dashboard/DashboardToolbarFactory.js +18 -13
- package/src/View/Dashboard/DashboardViewPanel.js +14 -10
- package/src/View/Dashboard/ModuleToolbarWrapper.js +13 -8
- package/src/View/Dashboard/PinnedDashboard.js +17 -12
- package/src/View/Dashboard/PinnedToolbarsSelector.js +16 -11
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +20 -15
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +38 -34
- package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.js +9 -4
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +41 -36
- package/src/View/DataChangeHistory/buildActionColumnButton.js +5 -1
- package/src/View/DataImport/DataImportPopup.js +17 -12
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +30 -25
- package/src/View/DataImport/DataImportWizard/index.js +4 -1
- package/src/View/DataImport/DataImportWizard/sections/ColumnsSection.js +34 -29
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +26 -21
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +23 -18
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.js +10 -5
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.js +22 -17
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.js +11 -6
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/index.js +4 -1
- package/src/View/DataImport/DataImportWizard/sections/ValidationSection.js +23 -18
- package/src/View/DataImport/systemFileHandlers.js +9 -5
- package/src/View/DataSet/DataSetSelector.js +11 -6
- package/src/View/DataSet/DataSetStatusPanelPopover.js +11 -6
- package/src/View/DataSet/DataSetViewPanel.js +16 -12
- package/src/View/Export/ExportSelector.js +16 -11
- package/src/View/Export/ExportTablePopup.js +12 -7
- package/src/View/Export/ExportViewPanel.js +41 -37
- package/src/View/Export/ReportExportDropdown.js +21 -16
- package/src/View/Export/Wizard/NewReportWizard.js +37 -32
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +19 -14
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +35 -28
- package/src/View/Export/Wizard/ReportNameWizardSection.js +28 -21
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +19 -14
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +37 -30
- package/src/View/Export/Wizard/ReportScopeWizard.js +14 -9
- package/src/View/Export/Wizard/ReportSettingsWizard.js +23 -18
- package/src/View/Export/Wizard/ReportSummaryWizard.js +9 -4
- package/src/View/Export/constants.js +5 -2
- package/src/View/Filter/ActiveFiltersPanel.js +12 -7
- package/src/View/Filter/FilterStatusBarSubPanelPopover.js +9 -4
- package/src/View/Filter/FilterSummary.js +23 -18
- package/src/View/Filter/FilterViewPanel.js +24 -20
- package/src/View/FlashingCell/FlashingCellStyle.js +14 -10
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +20 -14
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +13 -8
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +42 -36
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +34 -28
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +49 -44
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +7 -3
- package/src/View/FormatColumn/FormatColumnSummary.js +32 -27
- package/src/View/FormatColumn/MoveFormatColumn.js +15 -10
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +161 -153
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +11 -6
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +16 -10
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +36 -30
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +25 -17
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +53 -48
- package/src/View/FormatColumn/Wizard/constants.js +4 -1
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +32 -27
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +59 -52
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +31 -26
- package/src/View/GridFilter/GridFilterExpressionEditor.js +35 -30
- package/src/View/GridFilter/GridFilterPopup.js +39 -34
- package/src/View/GridFilter/GridFilterStatusbar.js +10 -5
- package/src/View/GridFilter/GridFilterViewPanel.js +38 -34
- package/src/View/GridFilter/GridFilterWindowPopup.js +9 -4
- package/src/View/GridFilter/NamedQuerySelector.js +37 -31
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +27 -22
- package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.js +7 -3
- package/src/View/GridInfo/GridInfoPopup/AdaptableObjectsSummary.js +16 -11
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +25 -20
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +37 -32
- package/src/View/GridInfo/GridInfoPopup/index.js +4 -1
- package/src/View/KeyHint.js +9 -4
- package/src/View/Layout/EditCurrentLayoutButton.js +11 -6
- package/src/View/Layout/LayoutCloneButton.js +11 -6
- package/src/View/Layout/LayoutRadioSelector.js +11 -6
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +15 -10
- package/src/View/Layout/LayoutViewPanel.js +30 -26
- package/src/View/Layout/PivotDetailsPopoup.js +12 -7
- package/src/View/Layout/SaveLayoutButton.js +17 -12
- package/src/View/Layout/Wizard/Components/ColumnLabels.js +15 -11
- package/src/View/Layout/Wizard/LayoutWizard.js +56 -51
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +44 -37
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +68 -62
- package/src/View/Layout/Wizard/sections/FilterSection.js +37 -30
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +31 -24
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +27 -21
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +33 -27
- package/src/View/Layout/Wizard/sections/SettingsSection.js +35 -29
- package/src/View/Layout/Wizard/sections/SortSection.js +32 -26
- package/src/View/Layout/Wizard/sections/Utilities.js +5 -1
- package/src/View/License/LicenseWatermark.js +1 -61
- package/src/View/License/index.js +5 -1
- package/src/View/NamedQuery/EditCurrentQueryButton.js +11 -6
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +24 -17
- package/src/View/NamedQuery/Wizard/NamedQuerySettingsWizardSection.js +28 -21
- package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +33 -28
- package/src/View/Notes/NotesListing.js +19 -14
- package/src/View/Notes/NotesPopup.js +24 -19
- package/src/View/PlusMinus/PlusMinusSummary.js +31 -26
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +18 -12
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +11 -6
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +39 -32
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +31 -26
- package/src/View/QuickSearch/FloatingQuickSearch/FloatingQuickSearch.js +18 -13
- package/src/View/QuickSearch/QuickSearchInput.js +18 -13
- package/src/View/QuickSearch/QuickSearchPopup.js +30 -26
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +15 -10
- package/src/View/QuickSearch/QuickSearchViewPanel.js +9 -4
- package/src/View/QuickSearch/useQuickSearchDebounced.js +12 -7
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +13 -8
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +32 -26
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +18 -13
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +29 -24
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +18 -13
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +29 -24
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +22 -17
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +20 -14
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +25 -20
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/index.js +9 -3
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +22 -17
- package/src/View/Schedule/Wizard/ScheduleWizard.js +52 -47
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +11 -6
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +50 -43
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +37 -32
- package/src/View/Shortcut/shortcutKeys.js +4 -1
- package/src/View/Shortcut/shortcutOperations.js +9 -6
- package/src/View/SmartEdit/SmartEditPopup.js +30 -26
- package/src/View/SmartEdit/SmartEditViewPanel.js +34 -30
- package/src/View/SpecialColumnSettingsWizardStep.js +40 -35
- package/src/View/StateManagement/StateManagementPopup.js +27 -22
- package/src/View/StateManagement/StateManagementViewPanel.js +19 -14
- package/src/View/StateManagement/components/ClearButton.js +9 -4
- package/src/View/StateManagement/components/ExportDropdown.js +12 -7
- package/src/View/StateManagement/components/LoadButton.js +11 -6
- package/src/View/StateManagement/handleExportState.js +9 -4
- package/src/View/StatusBar/AdaptableStatusBar.js +19 -14
- package/src/View/StatusBar/StatusBarPanel.js +16 -12
- package/src/View/StatusBar/StatusBarPopup.js +19 -14
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +60 -61
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +142 -137
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +49 -44
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +24 -17
- package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.js +27 -21
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.js +14 -9
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.js +12 -7
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +12 -7
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +19 -14
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +56 -49
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/index.js +4 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +29 -23
- package/src/View/SystemStatus/SystemStatusEntityRow.js +17 -12
- package/src/View/SystemStatus/SystemStatusPopup.js +22 -18
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +13 -8
- package/src/View/SystemStatus/SystemStatusViewPanel.js +12 -8
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +9 -4
- package/src/View/TeamSharing/SharedEntityDependencies.js +18 -12
- package/src/View/TeamSharing/SharedEntityObjectView.js +30 -23
- package/src/View/TeamSharing/TeamSharingApplyButton.js +11 -6
- package/src/View/Theme/ThemeEditor.js +32 -27
- package/src/View/Theme/ThemeEditorWindow.js +13 -8
- package/src/View/Theme/ThemeField.js +23 -18
- package/src/View/Theme/ThemePopup.js +28 -24
- package/src/View/Theme/ThemeSelector.js +16 -11
- package/src/View/Theme/ThemeStatusbar.js +11 -6
- package/src/View/Theme/ThemeViewPanel.js +12 -7
- package/src/View/Theme/VariantSelector.js +13 -8
- package/src/View/UIHelper.js +152 -120
- package/src/View/UIInterfaces.js +2 -1
- package/src/View/Wizard/AdaptableWizard.js +30 -24
- package/src/View/Wizard/Interface/IAdaptableWizard.js +2 -1
- package/src/View/Wizard/ObjectTagsWizardSection.js +20 -14
- package/src/View/Wizard/OnePageAdaptableWizard.js +42 -32
- package/src/View/Wizard/OnePageWizards.js +59 -50
- package/src/View/Wizard/TypeRadio.js +12 -7
- package/src/View/Wizard/WizardLegend.js +11 -6
- package/src/View/Wizard/useKeyboardNavigation.js +9 -4
- package/src/View/renderWithAdaptableContext.js +14 -9
- package/src/agGrid/ActionColumnRenderer.js +15 -9
- package/src/agGrid/Adaptable.d.ts +5 -6
- package/src/agGrid/Adaptable.js +260 -254
- package/src/agGrid/AdaptableLogger.js +6 -2
- package/src/agGrid/BadgeRenderer.js +11 -6
- package/src/agGrid/CheckboxRenderer.js +7 -2
- package/src/agGrid/ColumnSetupInfo.js +2 -1
- package/src/agGrid/FilterWrapper.js +14 -9
- package/src/agGrid/FloatingFilterWrapper.js +13 -8
- package/src/agGrid/PercentBarRenderer.js +10 -5
- package/src/agGrid/agGridHelper.js +105 -100
- package/src/agGrid/agGridMenuHelper.js +35 -30
- package/src/agGrid/attachAddaptableColumnTypes.js +8 -4
- package/src/agGrid/createAgStatusPanelComponent.js +10 -5
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +16 -12
- package/src/agGrid/editors/AdaptableDateEditor/index.js +24 -19
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +10 -6
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +21 -16
- package/src/agGrid/index.js +11 -6
- package/src/agGrid/weightedAverage.js +17 -10
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +31 -25
- package/src/components/AdaptableFormComponent/index.js +4 -1
- package/src/components/CheckBox/index.js +17 -13
- package/src/components/CodeBlock/index.js +11 -6
- package/src/components/ColorPicker/ColorPicker.js +19 -16
- package/src/components/ColorPicker/index.js +4 -1
- package/src/components/ContainerProps.js +2 -1
- package/src/components/Dashboard/Dashboard.js +22 -17
- package/src/components/Dashboard/DashboardManager.js +7 -4
- package/src/components/Dashboard/DashboardTab.js +5 -1
- package/src/components/Dashboard/DashboardToolbar.js +14 -9
- package/src/components/Dashboard/index.js +6 -3
- package/src/components/Datepicker/Caption.js +20 -15
- package/src/components/Datepicker/CaptionLabel.js +21 -16
- package/src/components/Datepicker/DatepickerContext.js +9 -4
- package/src/components/Datepicker/index.js +39 -36
- package/src/components/Dialog/index.js +32 -29
- package/src/components/Dialog/useIsOpen.js +6 -3
- package/src/components/DragAndDropContext/DragAndDropContext.js +6 -2
- package/src/components/DragAndDropContext/ModuleManager.js +18 -13
- package/src/components/DragAndDropContext/TabList.js +27 -19
- package/src/components/DragAndDropContext/UnusedPanel.js +15 -10
- package/src/components/DragAndDropContext/types.js +2 -1
- package/src/components/Drawer/index.js +7 -2
- package/src/components/Dropdown/Arrows.js +8 -5
- package/src/components/Dropdown/index.js +20 -18
- package/src/components/DropdownButton/DropdownButtonItem.js +2 -1
- package/src/components/DropdownButton/index.js +26 -23
- package/src/components/DropdownButton/renderItem.js +7 -4
- package/src/components/DropdownButton/useExpanded.js +12 -9
- package/src/components/EllipsisContainer/index.js +21 -17
- package/src/components/EmptyContent/index.js +10 -8
- package/src/components/ErrorBox/index.js +10 -6
- package/src/components/ExpressionEditor/BaseEditorInput.js +60 -55
- package/src/components/ExpressionEditor/EditorButton.js +10 -8
- package/src/components/ExpressionEditor/EditorContext.js +8 -4
- package/src/components/ExpressionEditor/EditorInput.js +25 -22
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +27 -24
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +15 -10
- package/src/components/ExpressionEditor/NamedQueryContext.js +8 -4
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +42 -36
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +44 -36
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +58 -53
- package/src/components/ExpressionEditor/QueryBuilder/booleanExpressions.js +4 -1
- package/src/components/ExpressionEditor/QueryBuilder/index.js +4 -1
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +26 -17
- package/src/components/ExpressionEditor/editorButtonsAggregatedBoolean.js +4 -1
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +4 -1
- package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.js +4 -1
- package/src/components/ExpressionEditor/editorButtonsObservable.js +4 -1
- package/src/components/ExpressionEditor/editorButtonsQuantileAggregatedScalar.js +4 -1
- package/src/components/ExpressionEditor/editorButtonsSearch.js +4 -1
- package/src/components/ExpressionEditor/index.js +99 -97
- package/src/components/FieldWrap/index.js +8 -5
- package/src/components/FileDroppable/FileDroppableState.js +2 -1
- package/src/components/FileDroppable/index.js +33 -29
- package/src/components/FileDroppable/reducer.js +6 -3
- package/src/components/FlexWithFooter.js +11 -9
- package/src/components/FormLayout/index.js +17 -13
- package/src/components/HelpBlock/index.js +10 -6
- package/src/components/Icon/index.js +29 -20
- package/src/components/IconSelector/IconSelector.js +32 -27
- package/src/components/IconSelector/index.js +4 -1
- package/src/components/InfiniteTable/index.js +10 -6
- package/src/components/Input/NumberInput.js +9 -4
- package/src/components/Input/index.js +11 -8
- package/src/components/List/GridList/index.js +10 -7
- package/src/components/List/ListGroup/index.js +9 -7
- package/src/components/List/ListGroupItem/index.js +10 -8
- package/src/components/Loader/Loader.js +10 -4
- package/src/components/Loader/index.js +7 -2
- package/src/components/Logo/index.js +7 -2
- package/src/components/Modal/Backdrop.js +17 -12
- package/src/components/Modal/index.js +23 -19
- package/src/components/NotifyResize/index.js +7 -4
- package/src/components/OverlayTrigger/Overlay.js +23 -19
- package/src/components/OverlayTrigger/index.js +46 -41
- package/src/components/OverlayTrigger/useAgGridClassName.js +7 -5
- package/src/components/OverlayTrigger/utils.js +9 -3
- package/src/components/Panel/index.js +15 -12
- package/src/components/PopupWithFooter.js +11 -8
- package/src/components/ProgressIndicator/ProgressIndicator.js +17 -12
- package/src/components/Radio/index.js +20 -15
- package/src/components/ResizeObserver/getResizeObserverObject.js +5 -1
- package/src/components/ResizeObserver/index.js +24 -17
- package/src/components/Select/Select.js +15 -10
- package/src/components/Select/index.js +4 -1
- package/src/components/SelectList.js +9 -4
- package/src/components/SelectableList/index.js +13 -8
- package/src/components/SimpleButton/index.js +22 -19
- package/src/components/SizedContainer/index.js +11 -9
- package/src/components/StylePreview.js +11 -6
- package/src/components/Table/index.js +7 -4
- package/src/components/Tabs/index.js +34 -28
- package/src/components/Tag/Tag.js +9 -5
- package/src/components/Tag/index.js +5 -1
- package/src/components/Textarea/index.js +11 -8
- package/src/components/Toastify/index.js +10 -1
- package/src/components/Toggle/Toggle.js +12 -8
- package/src/components/Toggle/ToggleGroup.js +9 -4
- package/src/components/Toggle/index.js +5 -2
- package/src/components/ToggleButton/index.js +11 -6
- package/src/components/Tooltip/index.js +7 -4
- package/src/components/WarningBox/index.js +11 -6
- package/src/components/WindowModal/WindowModal.js +17 -12
- package/src/components/WindowModal/index.js +4 -1
- package/src/components/WindowModal/useStacking.js +9 -4
- package/src/components/WizardPanel/index.js +8 -5
- package/src/components/icons/DefaultIcon.js +12 -8
- package/src/components/icons/add-row.js +6 -3
- package/src/components/icons/alert.js +6 -3
- package/src/components/icons/align-center.js +6 -3
- package/src/components/icons/align-justify.js +6 -3
- package/src/components/icons/align-left.js +6 -3
- package/src/components/icons/align-right.js +6 -3
- package/src/components/icons/analysis.js +6 -3
- package/src/components/icons/application.js +6 -3
- package/src/components/icons/arrow-down-long.js +6 -3
- package/src/components/icons/arrow-down.js +6 -3
- package/src/components/icons/arrow-expand.js +6 -3
- package/src/components/icons/arrow-left.js +6 -3
- package/src/components/icons/arrow-right.js +6 -3
- package/src/components/icons/arrow-up-long.js +6 -3
- package/src/components/icons/arrow-up.js +6 -3
- package/src/components/icons/attach-file.js +6 -3
- package/src/components/icons/badge.js +6 -3
- package/src/components/icons/blanks.js +6 -3
- package/src/components/icons/bold.js +6 -3
- package/src/components/icons/boolean-list.js +6 -3
- package/src/components/icons/brush.js +6 -3
- package/src/components/icons/build.js +6 -3
- package/src/components/icons/bulk-update.js +6 -3
- package/src/components/icons/calculated-column.js +6 -3
- package/src/components/icons/calendar.js +6 -3
- package/src/components/icons/call.js +6 -3
- package/src/components/icons/campaign.js +6 -3
- package/src/components/icons/case-lower.js +6 -3
- package/src/components/icons/case-sentence.js +6 -3
- package/src/components/icons/case-upper.js +6 -3
- package/src/components/icons/cell-summary.js +6 -3
- package/src/components/icons/cell-validation.js +6 -3
- package/src/components/icons/chart.js +6 -3
- package/src/components/icons/chat.js +6 -3
- package/src/components/icons/check-box-outline.js +6 -3
- package/src/components/icons/check-box.js +6 -3
- package/src/components/icons/check-circle.js +6 -3
- package/src/components/icons/check.js +6 -3
- package/src/components/icons/clone.js +6 -3
- package/src/components/icons/close.js +6 -3
- package/src/components/icons/cloud-upload.js +6 -3
- package/src/components/icons/collapse.js +6 -3
- package/src/components/icons/column-add.js +6 -3
- package/src/components/icons/column-chooser.js +6 -3
- package/src/components/icons/column-filter.js +6 -3
- package/src/components/icons/column-info.js +6 -3
- package/src/components/icons/comment.js +6 -3
- package/src/components/icons/contact.js +6 -3
- package/src/components/icons/contains.js +6 -3
- package/src/components/icons/custom-sort.js +6 -3
- package/src/components/icons/dashboard.js +6 -3
- package/src/components/icons/data-set.js +6 -3
- package/src/components/icons/date-range.js +6 -3
- package/src/components/icons/delete.js +6 -3
- package/src/components/icons/division.js +6 -3
- package/src/components/icons/dock.js +6 -3
- package/src/components/icons/dollar.js +6 -3
- package/src/components/icons/drag.js +6 -3
- package/src/components/icons/edit.js +6 -3
- package/src/components/icons/ends-with.js +6 -3
- package/src/components/icons/equal.js +6 -3
- package/src/components/icons/equation.js +6 -3
- package/src/components/icons/error.js +6 -3
- package/src/components/icons/expand.js +6 -3
- package/src/components/icons/exponent.js +6 -3
- package/src/components/icons/export.js +6 -3
- package/src/components/icons/fast-backward.js +6 -3
- package/src/components/icons/fast-forward.js +6 -3
- package/src/components/icons/fdc3.js +6 -3
- package/src/components/icons/filter.js +6 -3
- package/src/components/icons/flashing-cell.js +6 -3
- package/src/components/icons/folder-open.js +6 -3
- package/src/components/icons/folder-shared.js +6 -3
- package/src/components/icons/folder.js +6 -3
- package/src/components/icons/format-column.js +6 -3
- package/src/components/icons/freetext-column.js +6 -3
- package/src/components/icons/function.js +6 -3
- package/src/components/icons/gradient-column.js +6 -3
- package/src/components/icons/gradient.js +6 -3
- package/src/components/icons/greater-than-or-equal.js +6 -3
- package/src/components/icons/greater-than.js +6 -3
- package/src/components/icons/grid-filter.js +6 -3
- package/src/components/icons/hide-column.js +6 -3
- package/src/components/icons/history.js +6 -3
- package/src/components/icons/home.js +6 -3
- package/src/components/icons/import-export.js +6 -3
- package/src/components/icons/import.js +6 -3
- package/src/components/icons/index.js +326 -321
- package/src/components/icons/info.js +6 -3
- package/src/components/icons/instrument.js +6 -3
- package/src/components/icons/interactions.js +6 -3
- package/src/components/icons/invalid.js +6 -3
- package/src/components/icons/ipushpull.js +6 -3
- package/src/components/icons/italic.js +6 -3
- package/src/components/icons/justify.js +6 -3
- package/src/components/icons/layout.js +6 -3
- package/src/components/icons/less-than-or-equal.js +6 -3
- package/src/components/icons/less-than.js +6 -3
- package/src/components/icons/list.js +6 -3
- package/src/components/icons/login.js +6 -3
- package/src/components/icons/logout copy.js +6 -3
- package/src/components/icons/logout.js +6 -3
- package/src/components/icons/mail.js +6 -3
- package/src/components/icons/menu.js +6 -3
- package/src/components/icons/minus.js +6 -3
- package/src/components/icons/money.js +6 -3
- package/src/components/icons/multiplication.js +6 -3
- package/src/components/icons/newpage.js +6 -3
- package/src/components/icons/news.js +6 -3
- package/src/components/icons/non-blanks.js +6 -3
- package/src/components/icons/not-contains.js +6 -3
- package/src/components/icons/not-equal.js +6 -3
- package/src/components/icons/note.js +6 -3
- package/src/components/icons/open-in-new.js +6 -3
- package/src/components/icons/order.js +6 -3
- package/src/components/icons/organisation.js +6 -3
- package/src/components/icons/overline.js +6 -3
- package/src/components/icons/pause.js +6 -3
- package/src/components/icons/percent-bar.js +6 -3
- package/src/components/icons/percent.js +6 -3
- package/src/components/icons/person.js +6 -3
- package/src/components/icons/pie-chart.js +6 -3
- package/src/components/icons/play.js +6 -3
- package/src/components/icons/plus-minus.js +6 -3
- package/src/components/icons/plus.js +6 -3
- package/src/components/icons/query.js +6 -3
- package/src/components/icons/quick-search.js +6 -3
- package/src/components/icons/quote.js +6 -3
- package/src/components/icons/refresh.js +6 -3
- package/src/components/icons/regex.js +6 -3
- package/src/components/icons/reminder.js +6 -3
- package/src/components/icons/resume.js +6 -3
- package/src/components/icons/save.js +6 -3
- package/src/components/icons/schedule.js +6 -3
- package/src/components/icons/science.js +6 -3
- package/src/components/icons/settings.js +6 -3
- package/src/components/icons/shortcut.js +6 -3
- package/src/components/icons/show-column.js +6 -3
- package/src/components/icons/smart-edit.js +6 -3
- package/src/components/icons/sort-asc.js +6 -3
- package/src/components/icons/sort-desc.js +6 -3
- package/src/components/icons/spark-line.js +6 -3
- package/src/components/icons/starts-with.js +6 -3
- package/src/components/icons/state-management.js +6 -3
- package/src/components/icons/statusbar.js +6 -3
- package/src/components/icons/stop.js +6 -3
- package/src/components/icons/strikethrough.js +6 -3
- package/src/components/icons/system-status.js +6 -3
- package/src/components/icons/tab-unselected.js +6 -3
- package/src/components/icons/table-arrow-right.js +6 -3
- package/src/components/icons/team-share.js +6 -3
- package/src/components/icons/theme.js +6 -3
- package/src/components/icons/tool-panel.js +6 -3
- package/src/components/icons/track-changes.js +6 -3
- package/src/components/icons/triangle-down.js +6 -3
- package/src/components/icons/triangle-up.js +6 -3
- package/src/components/icons/unchecked.js +6 -3
- package/src/components/icons/underline.js +6 -3
- package/src/components/icons/undo.js +6 -3
- package/src/components/icons/updated-row.js +6 -3
- package/src/components/icons/upload.js +6 -3
- package/src/components/icons/user-filter.js +6 -3
- package/src/components/icons/visibility-off.js +6 -3
- package/src/components/icons/visibility.js +6 -3
- package/src/components/icons/warning.js +6 -3
- package/src/components/utils/batchUpdate.js +5 -3
- package/src/components/utils/captureTabNavigation/getFocusableChildren.js +3 -1
- package/src/components/utils/captureTabNavigation/index.js +6 -3
- package/src/components/utils/contains.js +4 -1
- package/src/components/utils/getAvailableSizeInfo.js +3 -1
- package/src/components/utils/join.js +3 -1
- package/src/components/utils/selectParent/index.js +6 -3
- package/src/components/utils/selectParent/matches.js +2 -1
- package/src/components/utils/useAutoFocus.js +8 -5
- package/src/components/utils/useContainerScrollObserver/index.js +13 -9
- package/src/components/utils/useDraggable.js +10 -7
- package/src/components/utils/useGlobalEvent.js +7 -2
- package/src/components/utils/useLatest.js +8 -4
- package/src/components/utils/usePrevious.js +6 -4
- package/src/components/utils/usePropState.js +6 -3
- package/src/components/utils/useProperty.js +6 -4
- package/src/components/utils/useRerender.js +8 -4
- package/src/components/utils/useSelectionRange.js +9 -5
- package/src/components/utils/useTheme.js +5 -2
- package/src/components/utils/uuid.js +6 -2
- package/src/env.js +3 -1
- package/src/metamodel/adaptable-metamodel-model.js +2 -1
- package/src/metamodel/adaptable.metamodel.d.ts +1 -1
- package/src/metamodel/adaptable.metamodel.js +1 -9435
- package/src/parser/src/ExpressionEvaluationError.js +5 -1
- package/src/parser/src/evaluator.js +7 -3
- package/src/parser/src/index.js +18 -9
- package/src/parser/src/predicate/index.js +5 -2
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +16 -12
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +11 -6
- package/src/parser/src/predicate/types.js +5 -1
- package/src/parser/src/tokenizer.js +8 -3
- package/src/parser/src/types.js +5 -1
- package/src/parser/src/utils.js +9 -3
- package/src/renderReactRoot.js +7 -2
- package/src/theme.js +3 -1
- package/src/themes/index.js +7 -4
- package/src/types.js +5 -1
- package/themes/dark.css +1 -1
- package/themes/dark.css.map +1 -1
- package/themes/light.css +1 -1
- package/themes/light.css.map +1 -1
- package/types.js +4 -1
- package/version.d.ts +2 -0
- package/version.js +3 -0
- package/tsconfig.esm.tsbuildinfo +0 -1
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scalarExpressionFunctionNames = exports.scalarExpressionFunctions = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const ExpressionEvaluationError_1 = require("../../parser/src/ExpressionEvaluationError");
|
|
6
|
+
const parseISO_1 = tslib_1.__importDefault(require("date-fns/parseISO"));
|
|
7
|
+
const startOfDay_1 = tslib_1.__importDefault(require("date-fns/startOfDay"));
|
|
8
|
+
const startOfWeek_1 = tslib_1.__importDefault(require("date-fns/startOfWeek"));
|
|
9
|
+
const startOfMonth_1 = tslib_1.__importDefault(require("date-fns/startOfMonth"));
|
|
10
|
+
const startOfYear_1 = tslib_1.__importDefault(require("date-fns/startOfYear"));
|
|
11
|
+
const addDays_1 = tslib_1.__importDefault(require("date-fns/addDays"));
|
|
12
|
+
const addWeeks_1 = tslib_1.__importDefault(require("date-fns/addWeeks"));
|
|
13
|
+
const addMonths_1 = tslib_1.__importDefault(require("date-fns/addMonths"));
|
|
14
|
+
const addYears_1 = tslib_1.__importDefault(require("date-fns/addYears"));
|
|
15
|
+
const differenceInDays_1 = tslib_1.__importDefault(require("date-fns/differenceInDays"));
|
|
16
|
+
const differenceInWeeks_1 = tslib_1.__importDefault(require("date-fns/differenceInWeeks"));
|
|
17
|
+
const differenceInMonths_1 = tslib_1.__importDefault(require("date-fns/differenceInMonths"));
|
|
18
|
+
const differenceInYears_1 = tslib_1.__importDefault(require("date-fns/differenceInYears"));
|
|
19
|
+
const expressionFunctionUtils_1 = require("./expressionFunctionUtils");
|
|
20
|
+
const dateUtils_1 = require("./dateUtils");
|
|
21
|
+
const StringExtensions_1 = tslib_1.__importDefault(require("../Extensions/StringExtensions"));
|
|
22
|
+
const TypeExtensions_1 = require("../Extensions/TypeExtensions");
|
|
23
|
+
const src_1 = require("../../parser/src");
|
|
20
24
|
// useful for unary operators which expect a list of arguments
|
|
21
25
|
// we extract the provided array elements into a list
|
|
22
26
|
const flattenArguments = (values) => {
|
|
@@ -34,12 +38,12 @@ const sanitizeNumericResult = (value) => {
|
|
|
34
38
|
}
|
|
35
39
|
return value;
|
|
36
40
|
};
|
|
37
|
-
|
|
41
|
+
exports.scalarExpressionFunctions = {
|
|
38
42
|
VAR: {
|
|
39
43
|
handler(args, context) {
|
|
40
44
|
const [functionName, ...optionalArgs] = args;
|
|
41
|
-
if (
|
|
42
|
-
throw new ExpressionEvaluationError('VAR', 'should have a name');
|
|
45
|
+
if (StringExtensions_1.default.IsNullOrEmpty(functionName)) {
|
|
46
|
+
throw new ExpressionEvaluationError_1.ExpressionEvaluationError('VAR', 'should have a name');
|
|
43
47
|
}
|
|
44
48
|
return context.evaluateCustomQueryVariable(functionName, optionalArgs);
|
|
45
49
|
},
|
|
@@ -55,10 +59,10 @@ export const scalarExpressionFunctions = {
|
|
|
55
59
|
const columnId = args[0];
|
|
56
60
|
const column = (_a = context.adaptableApi) === null || _a === void 0 ? void 0 : _a.columnApi.getColumnWithColumnId(columnId);
|
|
57
61
|
if (!column) {
|
|
58
|
-
throw new ExpressionEvaluationError('COL', `Column name "${columnId}" is not found`);
|
|
62
|
+
throw new ExpressionEvaluationError_1.ExpressionEvaluationError('COL', `Column name "${columnId}" is not found`);
|
|
59
63
|
}
|
|
60
64
|
if (!column.queryable) {
|
|
61
|
-
throw new ExpressionEvaluationError('COL', `Column name "${columnId}" is not queryable`);
|
|
65
|
+
throw new ExpressionEvaluationError_1.ExpressionEvaluationError('COL', `Column name "${columnId}" is not queryable`);
|
|
62
66
|
}
|
|
63
67
|
return (_b = context.adaptableApi) === null || _b === void 0 ? void 0 : _b.gridApi.getNormalisedValueFromRowNode(context.node, columnId);
|
|
64
68
|
},
|
|
@@ -72,12 +76,12 @@ export const scalarExpressionFunctions = {
|
|
|
72
76
|
handler(args, context) {
|
|
73
77
|
var _a, _b;
|
|
74
78
|
const namedQueryName = args[0];
|
|
75
|
-
if (
|
|
79
|
+
if (StringExtensions_1.default.IsNullOrEmpty(namedQueryName)) {
|
|
76
80
|
return false;
|
|
77
81
|
}
|
|
78
82
|
const namedQuery = (_a = context.adaptableApi) === null || _a === void 0 ? void 0 : _a.namedQueryApi.getNamedQueryByName(namedQueryName);
|
|
79
83
|
if (!namedQuery) {
|
|
80
|
-
throw new ExpressionEvaluationError('QUERY', `Named Query with name ${namedQueryName} not found!`);
|
|
84
|
+
throw new ExpressionEvaluationError_1.ExpressionEvaluationError('QUERY', `Named Query with name ${namedQueryName} not found!`);
|
|
81
85
|
}
|
|
82
86
|
// add query to call stack
|
|
83
87
|
if (!context.namedQueryCallStack) {
|
|
@@ -89,9 +93,9 @@ export const scalarExpressionFunctions = {
|
|
|
89
93
|
const lastIndex = context.namedQueryCallStack.lastIndexOf(namedQueryName);
|
|
90
94
|
if (firstIndex !== lastIndex) {
|
|
91
95
|
const cycle = context.namedQueryCallStack.slice(firstIndex, lastIndex + 1);
|
|
92
|
-
throw new ExpressionEvaluationError(`${namedQueryName}`, ` contains a circular reference: ${cycle.join(' -> ')}`);
|
|
96
|
+
throw new ExpressionEvaluationError_1.ExpressionEvaluationError(`${namedQueryName}`, ` contains a circular reference: ${cycle.join(' -> ')}`);
|
|
93
97
|
}
|
|
94
|
-
const queryEvaluationResult = evaluate(namedQuery.BooleanExpression, context);
|
|
98
|
+
const queryEvaluationResult = (0, src_1.evaluate)(namedQuery.BooleanExpression, context);
|
|
95
99
|
// remove query name from callstack
|
|
96
100
|
(_b = context.namedQueryCallStack) === null || _b === void 0 ? void 0 : _b.pop();
|
|
97
101
|
return queryEvaluationResult;
|
|
@@ -314,20 +318,20 @@ export const scalarExpressionFunctions = {
|
|
|
314
318
|
handler([expressionValueNode, whenThenListNodes, defaultValueNode], context) {
|
|
315
319
|
const caseExpressionValue = expressionValueNode != undefined
|
|
316
320
|
? // CASE matches the first WHEN statement with the provided expression value
|
|
317
|
-
evaluateExpressionNode(expressionValueNode, context)
|
|
321
|
+
(0, expressionFunctionUtils_1.evaluateExpressionNode)(expressionValueNode, context)
|
|
318
322
|
: // otherwise it returns the first WHEN statement evaluated to TRUE
|
|
319
323
|
true;
|
|
320
324
|
const matchingWhen = whenThenListNodes.find((whenThenStatement) => {
|
|
321
|
-
const whenValue = evaluateExpressionNode(whenThenStatement.WHEN, context);
|
|
325
|
+
const whenValue = (0, expressionFunctionUtils_1.evaluateExpressionNode)(whenThenStatement.WHEN, context);
|
|
322
326
|
return whenValue === caseExpressionValue;
|
|
323
327
|
});
|
|
324
328
|
if (!matchingWhen) {
|
|
325
329
|
if (defaultValueNode) {
|
|
326
|
-
return evaluateExpressionNode(defaultValueNode, context);
|
|
330
|
+
return (0, expressionFunctionUtils_1.evaluateExpressionNode)(defaultValueNode, context);
|
|
327
331
|
}
|
|
328
332
|
return;
|
|
329
333
|
}
|
|
330
|
-
const matchingThen = evaluateExpressionNode(matchingWhen.THEN, context);
|
|
334
|
+
const matchingThen = (0, expressionFunctionUtils_1.evaluateExpressionNode)(matchingWhen.THEN, context);
|
|
331
335
|
return matchingThen;
|
|
332
336
|
},
|
|
333
337
|
isHiddenFromMenu: true,
|
|
@@ -360,7 +364,7 @@ export const scalarExpressionFunctions = {
|
|
|
360
364
|
},
|
|
361
365
|
DATE: {
|
|
362
366
|
handler(args) {
|
|
363
|
-
return
|
|
367
|
+
return (0, parseISO_1.default)(args[0]);
|
|
364
368
|
},
|
|
365
369
|
description: 'Returns a new date by parsing the given string in ISO 8601 format',
|
|
366
370
|
signatures: [
|
|
@@ -385,7 +389,7 @@ export const scalarExpressionFunctions = {
|
|
|
385
389
|
},
|
|
386
390
|
TODAY: {
|
|
387
391
|
handler() {
|
|
388
|
-
return
|
|
392
|
+
return (0, startOfDay_1.default)(new Date());
|
|
389
393
|
},
|
|
390
394
|
description: 'Returns the current day',
|
|
391
395
|
signatures: ['TODAY()'],
|
|
@@ -395,7 +399,7 @@ export const scalarExpressionFunctions = {
|
|
|
395
399
|
},
|
|
396
400
|
DAY: {
|
|
397
401
|
handler(args) {
|
|
398
|
-
return
|
|
402
|
+
return (0, startOfDay_1.default)(args[0]);
|
|
399
403
|
},
|
|
400
404
|
description: 'Returns the day from a date',
|
|
401
405
|
signatures: ['DAY(input: date)'],
|
|
@@ -405,7 +409,7 @@ export const scalarExpressionFunctions = {
|
|
|
405
409
|
},
|
|
406
410
|
WEEK: {
|
|
407
411
|
handler(args) {
|
|
408
|
-
return
|
|
412
|
+
return (0, startOfWeek_1.default)(args[0]);
|
|
409
413
|
},
|
|
410
414
|
description: 'Returns the week from a date',
|
|
411
415
|
signatures: ['WEEK(input: date)'],
|
|
@@ -415,7 +419,7 @@ export const scalarExpressionFunctions = {
|
|
|
415
419
|
},
|
|
416
420
|
MONTH: {
|
|
417
421
|
handler(args) {
|
|
418
|
-
return
|
|
422
|
+
return (0, startOfMonth_1.default)(args[0]);
|
|
419
423
|
},
|
|
420
424
|
description: 'Returns the month from a date',
|
|
421
425
|
signatures: ['MONTH(input: date)'],
|
|
@@ -425,7 +429,7 @@ export const scalarExpressionFunctions = {
|
|
|
425
429
|
},
|
|
426
430
|
YEAR: {
|
|
427
431
|
handler(args) {
|
|
428
|
-
return
|
|
432
|
+
return (0, startOfYear_1.default)(args[0]);
|
|
429
433
|
},
|
|
430
434
|
description: 'Returns the year from a date',
|
|
431
435
|
signatures: ['YEAR(input: date)'],
|
|
@@ -435,7 +439,7 @@ export const scalarExpressionFunctions = {
|
|
|
435
439
|
},
|
|
436
440
|
ADD_DAYS: {
|
|
437
441
|
handler(args) {
|
|
438
|
-
return
|
|
442
|
+
return (0, addDays_1.default)(args[0], args[1]);
|
|
439
443
|
},
|
|
440
444
|
description: 'Returns a date based on input data and days to add',
|
|
441
445
|
signatures: ['ADD_DAYS(input: date, days: number)'],
|
|
@@ -445,7 +449,7 @@ export const scalarExpressionFunctions = {
|
|
|
445
449
|
},
|
|
446
450
|
ADD_WEEKS: {
|
|
447
451
|
handler(args) {
|
|
448
|
-
return
|
|
452
|
+
return (0, addWeeks_1.default)(args[0], args[1]);
|
|
449
453
|
},
|
|
450
454
|
description: 'Returns a date based on input data and weeks to add',
|
|
451
455
|
signatures: ['ADD_WEEKS(input: date, weeks: number)'],
|
|
@@ -455,7 +459,7 @@ export const scalarExpressionFunctions = {
|
|
|
455
459
|
},
|
|
456
460
|
ADD_MONTHS: {
|
|
457
461
|
handler(args) {
|
|
458
|
-
return
|
|
462
|
+
return (0, addMonths_1.default)(args[0], args[1]);
|
|
459
463
|
},
|
|
460
464
|
description: 'Returns a date based on input data and months to add',
|
|
461
465
|
signatures: ['ADD_MONTHS(input: date, months: number)'],
|
|
@@ -465,7 +469,7 @@ export const scalarExpressionFunctions = {
|
|
|
465
469
|
},
|
|
466
470
|
ADD_YEARS: {
|
|
467
471
|
handler(args) {
|
|
468
|
-
return
|
|
472
|
+
return (0, addYears_1.default)(args[0], args[1]);
|
|
469
473
|
},
|
|
470
474
|
description: 'Returns a date based on input data and years to add',
|
|
471
475
|
signatures: ['ADD_YEARS(input: date, years: number)'],
|
|
@@ -475,8 +479,8 @@ export const scalarExpressionFunctions = {
|
|
|
475
479
|
},
|
|
476
480
|
DIFF_DAYS: {
|
|
477
481
|
handler(args) {
|
|
478
|
-
const [first, second] = normalizeDateParams(args);
|
|
479
|
-
const result =
|
|
482
|
+
const [first, second] = (0, dateUtils_1.normalizeDateParams)(args);
|
|
483
|
+
const result = (0, differenceInDays_1.default)(first, second);
|
|
480
484
|
return sanitizeNumericResult(result);
|
|
481
485
|
},
|
|
482
486
|
description: 'Returns the difference in days between 2 dates',
|
|
@@ -487,8 +491,8 @@ export const scalarExpressionFunctions = {
|
|
|
487
491
|
},
|
|
488
492
|
DIFF_WEEKS: {
|
|
489
493
|
handler(args) {
|
|
490
|
-
const [first, second] = normalizeDateParams(args);
|
|
491
|
-
const result =
|
|
494
|
+
const [first, second] = (0, dateUtils_1.normalizeDateParams)(args);
|
|
495
|
+
const result = (0, differenceInWeeks_1.default)(first, second);
|
|
492
496
|
return sanitizeNumericResult(result);
|
|
493
497
|
},
|
|
494
498
|
description: 'Returns the difference in weeks between 2 dates',
|
|
@@ -499,8 +503,8 @@ export const scalarExpressionFunctions = {
|
|
|
499
503
|
},
|
|
500
504
|
DIFF_MONTHS: {
|
|
501
505
|
handler(args) {
|
|
502
|
-
const [first, second] = normalizeDateParams(args);
|
|
503
|
-
const result =
|
|
506
|
+
const [first, second] = (0, dateUtils_1.normalizeDateParams)(args);
|
|
507
|
+
const result = (0, differenceInMonths_1.default)(first, second);
|
|
504
508
|
return sanitizeNumericResult(result);
|
|
505
509
|
},
|
|
506
510
|
description: 'Returns the difference in months between 2 dates',
|
|
@@ -511,8 +515,8 @@ export const scalarExpressionFunctions = {
|
|
|
511
515
|
},
|
|
512
516
|
DIFF_YEARS: {
|
|
513
517
|
handler(args) {
|
|
514
|
-
const [first, second] = normalizeDateParams(args);
|
|
515
|
-
const result =
|
|
518
|
+
const [first, second] = (0, dateUtils_1.normalizeDateParams)(args);
|
|
519
|
+
const result = (0, differenceInYears_1.default)(first, second);
|
|
516
520
|
return sanitizeNumericResult(result);
|
|
517
521
|
},
|
|
518
522
|
description: 'Returns the difference in years between 2 dates',
|
|
@@ -563,7 +567,7 @@ export const scalarExpressionFunctions = {
|
|
|
563
567
|
},
|
|
564
568
|
REPLACE: {
|
|
565
569
|
handler(args, context) {
|
|
566
|
-
if (isTextSearchCaseInsensitive(context)) {
|
|
570
|
+
if ((0, expressionFunctionUtils_1.isTextSearchCaseInsensitive)(context)) {
|
|
567
571
|
return String(args[0]).replace(new RegExp(args[1], 'ig'), args[2]);
|
|
568
572
|
}
|
|
569
573
|
else {
|
|
@@ -587,4 +591,4 @@ export const scalarExpressionFunctions = {
|
|
|
587
591
|
returnType: 'string',
|
|
588
592
|
},
|
|
589
593
|
};
|
|
590
|
-
|
|
594
|
+
exports.scalarExpressionFunctionNames = (0, TypeExtensions_1.getTypedKeys)(exports.scalarExpressionFunctions);
|
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
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;
|
|
4
|
+
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
5
|
+
function GetLength(arrayToCheck) {
|
|
3
6
|
return IsNotNull(arrayToCheck) ? arrayToCheck.length : 0;
|
|
4
7
|
}
|
|
5
|
-
|
|
8
|
+
exports.GetLength = GetLength;
|
|
9
|
+
function CorrectLength(arrayToCheck, requiredLength) {
|
|
6
10
|
return GetLength(arrayToCheck) == requiredLength;
|
|
7
11
|
}
|
|
8
|
-
|
|
12
|
+
exports.CorrectLength = CorrectLength;
|
|
13
|
+
function NotCorrectLength(arrayToCheck, requiredLength) {
|
|
9
14
|
return !CorrectLength(arrayToCheck, requiredLength);
|
|
10
15
|
}
|
|
11
|
-
|
|
16
|
+
exports.NotCorrectLength = NotCorrectLength;
|
|
17
|
+
function AddItem(array, itemToAdd) {
|
|
12
18
|
if (NotContainsItem(array, itemToAdd)) {
|
|
13
19
|
array.push(itemToAdd);
|
|
14
20
|
}
|
|
15
21
|
}
|
|
16
|
-
|
|
22
|
+
exports.AddItem = AddItem;
|
|
23
|
+
function ContainsItem(array, itemToCheck) {
|
|
17
24
|
if (array == null) {
|
|
18
25
|
return false;
|
|
19
26
|
}
|
|
20
27
|
return array.indexOf(itemToCheck) > -1;
|
|
21
28
|
}
|
|
22
|
-
|
|
29
|
+
exports.ContainsItem = ContainsItem;
|
|
30
|
+
function ContainsAnyItem(array, itemsToCheck) {
|
|
23
31
|
if (array == null) {
|
|
24
32
|
return false;
|
|
25
33
|
}
|
|
@@ -33,31 +41,40 @@ export function ContainsAnyItem(array, itemsToCheck) {
|
|
|
33
41
|
});
|
|
34
42
|
return foundItem;
|
|
35
43
|
}
|
|
36
|
-
|
|
44
|
+
exports.ContainsAnyItem = ContainsAnyItem;
|
|
45
|
+
function NotContainsItem(array, itemToCheck) {
|
|
37
46
|
return !ContainsItem(array, itemToCheck);
|
|
38
47
|
}
|
|
39
|
-
|
|
48
|
+
exports.NotContainsItem = NotContainsItem;
|
|
49
|
+
function RetrieveDistinct(array) {
|
|
40
50
|
return Array.from(new Set(array.map((item) => item)));
|
|
41
51
|
}
|
|
42
|
-
|
|
52
|
+
exports.RetrieveDistinct = RetrieveDistinct;
|
|
53
|
+
function IsNull(arrayToCheck) {
|
|
43
54
|
return arrayToCheck == null || arrayToCheck == undefined;
|
|
44
55
|
}
|
|
45
|
-
|
|
56
|
+
exports.IsNull = IsNull;
|
|
57
|
+
function IsNotNull(arrayToCheck) {
|
|
46
58
|
return !IsNull(arrayToCheck);
|
|
47
59
|
}
|
|
48
|
-
|
|
60
|
+
exports.IsNotNull = IsNotNull;
|
|
61
|
+
function IsEmpty(arrayToCheck) {
|
|
49
62
|
return (arrayToCheck === null || arrayToCheck === void 0 ? void 0 : arrayToCheck.length) == 0;
|
|
50
63
|
}
|
|
51
|
-
|
|
64
|
+
exports.IsEmpty = IsEmpty;
|
|
65
|
+
function IsNotEmpty(arrayToCheck) {
|
|
52
66
|
return !IsEmpty(arrayToCheck);
|
|
53
67
|
}
|
|
54
|
-
|
|
68
|
+
exports.IsNotEmpty = IsNotEmpty;
|
|
69
|
+
function IsNullOrEmpty(arrayToCheck) {
|
|
55
70
|
return IsNull(arrayToCheck) || IsEmpty(arrayToCheck);
|
|
56
71
|
}
|
|
57
|
-
|
|
72
|
+
exports.IsNullOrEmpty = IsNullOrEmpty;
|
|
73
|
+
function IsNotNullOrEmpty(arrayToCheck) {
|
|
58
74
|
return IsNotNull(arrayToCheck) && IsNotEmpty(arrayToCheck);
|
|
59
75
|
}
|
|
60
|
-
|
|
76
|
+
exports.IsNotNullOrEmpty = IsNotNullOrEmpty;
|
|
77
|
+
function IsNullOrEmptyOrContainsSingleEmptyValue(arrayToCheck) {
|
|
61
78
|
if (IsNullOrEmpty(arrayToCheck)) {
|
|
62
79
|
return true;
|
|
63
80
|
}
|
|
@@ -66,26 +83,32 @@ export function IsNullOrEmptyOrContainsSingleEmptyValue(arrayToCheck) {
|
|
|
66
83
|
}
|
|
67
84
|
return false;
|
|
68
85
|
}
|
|
69
|
-
|
|
86
|
+
exports.IsNullOrEmptyOrContainsSingleEmptyValue = IsNullOrEmptyOrContainsSingleEmptyValue;
|
|
87
|
+
function IsNotNullOrEmptyNorContainsSingleEmptyValue(arrayToCheck) {
|
|
70
88
|
return !IsNullOrEmptyOrContainsSingleEmptyValue(arrayToCheck);
|
|
71
89
|
}
|
|
72
|
-
|
|
90
|
+
exports.IsNotNullOrEmptyNorContainsSingleEmptyValue = IsNotNullOrEmptyNorContainsSingleEmptyValue;
|
|
91
|
+
function HasSingleEmptyValue(arrayToCheck) {
|
|
73
92
|
if (arrayToCheck.length == 1 && arrayToCheck[0] == '') {
|
|
74
93
|
return true;
|
|
75
94
|
}
|
|
76
95
|
return false;
|
|
77
96
|
}
|
|
78
|
-
|
|
97
|
+
exports.HasSingleEmptyValue = HasSingleEmptyValue;
|
|
98
|
+
function hasOneItem(arrayToCheck) {
|
|
79
99
|
return hasItemsOfCount(arrayToCheck, 1);
|
|
80
100
|
}
|
|
81
|
-
|
|
101
|
+
exports.hasOneItem = hasOneItem;
|
|
102
|
+
function hasItemsOfCount(arrayToCheck, numberOfItems) {
|
|
82
103
|
return arrayToCheck.length == numberOfItems;
|
|
83
104
|
}
|
|
84
|
-
|
|
105
|
+
exports.hasItemsOfCount = hasItemsOfCount;
|
|
106
|
+
function moveArray(array, from, to) {
|
|
85
107
|
array.splice(to, 0, array.splice(from, 1)[0]);
|
|
86
108
|
}
|
|
109
|
+
exports.moveArray = moveArray;
|
|
87
110
|
//This deliberately only checks contents equality and not positional so [1, 2, 3]== [1, 3, 2]
|
|
88
|
-
|
|
111
|
+
function areArraysEqual(arr1, arr2) {
|
|
89
112
|
if (IsNullOrEmpty(arr1) && IsNotNullOrEmpty(arr2)) {
|
|
90
113
|
return false;
|
|
91
114
|
}
|
|
@@ -97,10 +120,12 @@ export function areArraysEqual(arr1, arr2) {
|
|
|
97
120
|
}
|
|
98
121
|
return arr1.every((x) => arr2.indexOf(x) != -1);
|
|
99
122
|
}
|
|
100
|
-
|
|
123
|
+
exports.areArraysEqual = areArraysEqual;
|
|
124
|
+
function areArraysNotEqual(arr1, arr2) {
|
|
101
125
|
return !areArraysEqual(arr1, arr2);
|
|
102
126
|
}
|
|
103
|
-
|
|
127
|
+
exports.areArraysNotEqual = areArraysNotEqual;
|
|
128
|
+
function areArraysEqualWithOrder(arr1, arr2) {
|
|
104
129
|
if (arr1 == null) {
|
|
105
130
|
return true;
|
|
106
131
|
}
|
|
@@ -109,7 +134,8 @@ export function areArraysEqualWithOrder(arr1, arr2) {
|
|
|
109
134
|
}
|
|
110
135
|
return arr1.every((x, index) => arr2.indexOf(x) == index);
|
|
111
136
|
}
|
|
112
|
-
|
|
137
|
+
exports.areArraysEqualWithOrder = areArraysEqualWithOrder;
|
|
138
|
+
function areArraysEqualWithOrderandProperties(value, other) {
|
|
113
139
|
const type = Object.prototype.toString.call(value);
|
|
114
140
|
// If the two objects are not the same type, return false
|
|
115
141
|
if (type !== Object.prototype.toString.call(other)) {
|
|
@@ -175,11 +201,12 @@ export function areArraysEqualWithOrderandProperties(value, other) {
|
|
|
175
201
|
// If nothing failed, return true
|
|
176
202
|
return true;
|
|
177
203
|
}
|
|
178
|
-
|
|
204
|
+
exports.areArraysEqualWithOrderandProperties = areArraysEqualWithOrderandProperties;
|
|
205
|
+
function sortArrayWithProperty(sortOrder, values, sortProperty) {
|
|
179
206
|
if (sortProperty) {
|
|
180
207
|
let newValues = [].concat(values);
|
|
181
208
|
let direction = 1;
|
|
182
|
-
if (sortOrder == SortOrder.Desc) {
|
|
209
|
+
if (sortOrder == Enums_1.SortOrder.Desc) {
|
|
183
210
|
direction = -1;
|
|
184
211
|
}
|
|
185
212
|
return newValues.sort((a, b) => {
|
|
@@ -201,18 +228,21 @@ export function sortArrayWithProperty(sortOrder, values, sortProperty) {
|
|
|
201
228
|
return sortArray(values, sortOrder);
|
|
202
229
|
}
|
|
203
230
|
}
|
|
204
|
-
|
|
231
|
+
exports.sortArrayWithProperty = sortArrayWithProperty;
|
|
232
|
+
function sortArray(values, sortOrder = Enums_1.SortOrder.Asc) {
|
|
205
233
|
const newValues = [].concat(values);
|
|
206
|
-
const direction = sortOrder == SortOrder.Asc ? 1 : -1;
|
|
234
|
+
const direction = sortOrder == Enums_1.SortOrder.Asc ? 1 : -1;
|
|
207
235
|
return newValues.sort((a, b) => (a < b ? -1 * direction : a > b ? 1 * direction : 0));
|
|
208
236
|
}
|
|
209
|
-
|
|
237
|
+
exports.sortArray = sortArray;
|
|
238
|
+
function sortCellValueArray(cellValues, sortOrder = Enums_1.SortOrder.Asc) {
|
|
210
239
|
const newValues = [].concat(cellValues);
|
|
211
|
-
const direction = sortOrder == SortOrder.Asc ? 1 : -1;
|
|
240
|
+
const direction = sortOrder == Enums_1.SortOrder.Asc ? 1 : -1;
|
|
212
241
|
return newValues.sort((a, b) => a.rawValue < b.rawValue ? -1 * direction : a.rawValue > b.rawValue ? 1 * direction : 0);
|
|
213
242
|
}
|
|
214
|
-
|
|
215
|
-
|
|
243
|
+
exports.sortCellValueArray = sortCellValueArray;
|
|
244
|
+
function sortCellValueArrayNumeric(cellValues, sortOrder = Enums_1.SortOrder.Asc) {
|
|
245
|
+
const direction = sortOrder == Enums_1.SortOrder.Asc ? 1 : -1;
|
|
216
246
|
const newValues = [].concat(cellValues);
|
|
217
247
|
return newValues.sort((a, b) => {
|
|
218
248
|
const valueAAsNumber = Number(a.rawValue);
|
|
@@ -230,15 +260,17 @@ export function sortCellValueArrayNumeric(cellValues, sortOrder = SortOrder.Asc)
|
|
|
230
260
|
: 0;
|
|
231
261
|
});
|
|
232
262
|
}
|
|
233
|
-
|
|
263
|
+
exports.sortCellValueArrayNumeric = sortCellValueArrayNumeric;
|
|
264
|
+
function sortCellValueArrayDates(cellValues, sortOrder = Enums_1.SortOrder.Asc) {
|
|
234
265
|
cellValues.sort((a, b) => {
|
|
235
|
-
return sortOrder == SortOrder.Asc
|
|
266
|
+
return sortOrder == Enums_1.SortOrder.Asc
|
|
236
267
|
? +new Date(a.rawValue) - +new Date(b.rawValue)
|
|
237
268
|
: +new Date(b.rawValue) - +new Date(a.rawValue);
|
|
238
269
|
});
|
|
239
270
|
return cellValues;
|
|
240
271
|
}
|
|
241
|
-
|
|
272
|
+
exports.sortCellValueArrayDates = sortCellValueArrayDates;
|
|
273
|
+
function groupArrayBy(array, prop) {
|
|
242
274
|
return array.reduce((acc, item) => {
|
|
243
275
|
let key = item[prop];
|
|
244
276
|
acc[key] = acc[key] || [];
|
|
@@ -246,10 +278,12 @@ export function groupArrayBy(array, prop) {
|
|
|
246
278
|
return acc;
|
|
247
279
|
}, {});
|
|
248
280
|
}
|
|
249
|
-
|
|
281
|
+
exports.groupArrayBy = groupArrayBy;
|
|
282
|
+
function createCommaSeparatedString(values) {
|
|
250
283
|
return values.join(', ');
|
|
251
284
|
}
|
|
252
|
-
|
|
285
|
+
exports.createCommaSeparatedString = createCommaSeparatedString;
|
|
286
|
+
exports.ArrayExtensions = {
|
|
253
287
|
GetLength,
|
|
254
288
|
CorrectLength,
|
|
255
289
|
NotCorrectLength,
|
|
@@ -282,4 +316,4 @@ export const ArrayExtensions = {
|
|
|
282
316
|
sortArrayWithProperty,
|
|
283
317
|
createCommaSeparatedString,
|
|
284
318
|
};
|
|
285
|
-
|
|
319
|
+
exports.default = exports.ArrayExtensions;
|
|
@@ -1,34 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnumExtensions = exports.getCssFontSizeFromFontSizeEnum = exports.getObjValues = exports.getValues = exports.getNames = void 0;
|
|
4
|
+
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
2
5
|
// export function getNamesAndValues<T extends number>(e: any) {
|
|
3
6
|
// return EnumExtensions.getNames(e).map(n => ({ name: n, value: e[n] as T }));
|
|
4
7
|
// }
|
|
5
|
-
|
|
6
|
-
return EnumExtensions.getObjValues(e).filter((v) => typeof v === 'string');
|
|
8
|
+
function getNames(e) {
|
|
9
|
+
return exports.EnumExtensions.getObjValues(e).filter((v) => typeof v === 'string');
|
|
7
10
|
}
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
exports.getNames = getNames;
|
|
12
|
+
function getValues(e) {
|
|
13
|
+
return exports.EnumExtensions.getObjValues(e).filter((v) => typeof v === 'number');
|
|
10
14
|
}
|
|
11
|
-
|
|
15
|
+
exports.getValues = getValues;
|
|
16
|
+
function getObjValues(e) {
|
|
12
17
|
return Object.keys(e).map((k) => e[k]);
|
|
13
18
|
}
|
|
14
|
-
|
|
19
|
+
exports.getObjValues = getObjValues;
|
|
20
|
+
function getCssFontSizeFromFontSizeEnum(fontSize) {
|
|
15
21
|
switch (fontSize) {
|
|
16
|
-
case FontSize.XLarge:
|
|
22
|
+
case Enums_1.FontSize.XLarge:
|
|
17
23
|
return 'x-large';
|
|
18
|
-
case FontSize.Large:
|
|
24
|
+
case Enums_1.FontSize.Large:
|
|
19
25
|
return 'large';
|
|
20
|
-
case FontSize.Medium:
|
|
26
|
+
case Enums_1.FontSize.Medium:
|
|
21
27
|
return 'medium';
|
|
22
|
-
case FontSize.Small:
|
|
28
|
+
case Enums_1.FontSize.Small:
|
|
23
29
|
return 'small';
|
|
24
|
-
case FontSize.XSmall:
|
|
30
|
+
case Enums_1.FontSize.XSmall:
|
|
25
31
|
return 'x-small';
|
|
26
32
|
}
|
|
27
33
|
}
|
|
28
|
-
|
|
34
|
+
exports.getCssFontSizeFromFontSizeEnum = getCssFontSizeFromFontSizeEnum;
|
|
35
|
+
exports.EnumExtensions = {
|
|
29
36
|
getNames,
|
|
30
37
|
getValues,
|
|
31
38
|
getObjValues,
|
|
32
39
|
getCssFontSizeFromFontSizeEnum,
|
|
33
40
|
};
|
|
34
|
-
|
|
41
|
+
exports.default = exports.EnumExtensions;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NumberExtensions = exports.WrapInParentheses = exports.abbreviateNumber = void 0;
|
|
4
|
+
function abbreviateNumber(numberToAbbreviate) {
|
|
2
5
|
let str = '';
|
|
3
6
|
if (numberToAbbreviate >= 1000000000) {
|
|
4
7
|
str = (numberToAbbreviate / 1000000000).toFixed(1) + 'B';
|
|
@@ -14,11 +17,13 @@ export function abbreviateNumber(numberToAbbreviate) {
|
|
|
14
17
|
}
|
|
15
18
|
return str;
|
|
16
19
|
}
|
|
17
|
-
|
|
20
|
+
exports.abbreviateNumber = abbreviateNumber;
|
|
21
|
+
function WrapInParentheses(numberToWrap) {
|
|
18
22
|
return ' (' + numberToWrap + ')';
|
|
19
23
|
}
|
|
20
|
-
|
|
24
|
+
exports.WrapInParentheses = WrapInParentheses;
|
|
25
|
+
exports.NumberExtensions = {
|
|
21
26
|
abbreviateNumber,
|
|
22
27
|
WrapInParentheses,
|
|
23
28
|
};
|
|
24
|
-
|
|
29
|
+
exports.default = exports.NumberExtensions;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deepClone = exports.isObjectEmpty = exports.setInPath = void 0;
|
|
1
4
|
/**
|
|
2
5
|
* Returns a new object with the property updated.
|
|
3
6
|
* The property is identified by the path.
|
|
@@ -7,16 +10,19 @@
|
|
|
7
10
|
* @param value new property value
|
|
8
11
|
* @returns
|
|
9
12
|
*/
|
|
10
|
-
|
|
13
|
+
function setInPath(obj, path, value) {
|
|
11
14
|
var _a;
|
|
12
15
|
if (path.length === 1) {
|
|
13
16
|
return Object.assign(Object.assign({}, obj), { [path[0]]: value });
|
|
14
17
|
}
|
|
15
18
|
return Object.assign(Object.assign({}, obj), { [path[0]]: setInPath((_a = obj === null || obj === void 0 ? void 0 : obj[path[0]]) !== null && _a !== void 0 ? _a : {}, path.slice(1), value) });
|
|
16
19
|
}
|
|
17
|
-
|
|
20
|
+
exports.setInPath = setInPath;
|
|
21
|
+
function isObjectEmpty(obj) {
|
|
18
22
|
return !obj || Object.keys(obj).length === 0;
|
|
19
23
|
}
|
|
20
|
-
|
|
24
|
+
exports.isObjectEmpty = isObjectEmpty;
|
|
25
|
+
const deepClone = (obj) => {
|
|
21
26
|
return JSON.parse(JSON.stringify(obj));
|
|
22
27
|
};
|
|
28
|
+
exports.deepClone = deepClone;
|