@adaptabletools/adaptable 13.0.0-canary.2 → 13.0.0-canary.21
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.d.ts +23 -1
- package/agGrid.js +23 -1
- package/base.css +1232 -733
- package/base.css.map +1 -0
- package/bundle.cjs.js +237 -220
- package/index.css +1250 -734
- package/index.css.map +1 -0
- package/package.json +5 -5
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +7 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +0 -2
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +136 -27
- package/src/AdaptableOptions/ExportOptions.d.ts +2 -2
- package/src/AdaptableOptions/FinsemblePluginOptions.d.ts +32 -0
- package/src/{Api/ConditionalStyleApi.js → AdaptableOptions/FinsemblePluginOptions.js} +0 -0
- package/src/AdaptableOptions/LayoutOptions.d.ts +2 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
- package/src/Api/AdaptableApi.d.ts +2 -5
- package/src/Api/ColumnApi.d.ts +8 -2
- package/src/Api/ConfigApi.d.ts +0 -6
- package/src/Api/ExportApi.d.ts +6 -6
- package/src/Api/FinsembleApi.d.ts +10 -0
- package/src/{Strategy/Interface/IConditionalStyleModule.js → Api/FinsembleApi.js} +0 -0
- package/src/Api/FormatColumnApi.d.ts +76 -59
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -3
- package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -1
- package/src/Api/Implementation/ColumnApiImpl.js +18 -14
- package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ConfigApiImpl.js +0 -11
- package/src/Api/Implementation/ExportApiImpl.d.ts +4 -4
- package/src/Api/Implementation/ExportApiImpl.js +14 -14
- package/src/Api/Implementation/FlashingCellApiImpl.js +4 -1
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +36 -17
- package/src/Api/Implementation/FormatColumnApiImpl.js +101 -185
- package/src/Api/Implementation/InternalApiImpl.d.ts +1 -0
- package/src/Api/Implementation/InternalApiImpl.js +5 -0
- package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -0
- package/src/Api/Implementation/PluginsApiImpl.js +6 -0
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +2 -3
- package/src/Api/Implementation/QueryLanguageApiImpl.js +9 -18
- package/src/Api/Implementation/ScopeApiImpl.d.ts +1 -1
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +25 -0
- package/src/Api/Implementation/StyledColumnApiImpl.js +193 -0
- package/src/Api/Implementation/SystemStatusApiImpl.js +1 -2
- package/src/Api/Implementation/ToolPanelApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ToolPanelApiImpl.js +8 -0
- package/src/Api/InternalApi.d.ts +1 -0
- package/src/Api/PluginsApi.d.ts +5 -0
- package/src/Api/QueryLanguageApi.d.ts +3 -7
- package/src/Api/ScopeApi.d.ts +1 -1
- package/src/Api/StyledColumnApi.d.ts +106 -0
- package/src/Api/StyledColumnApi.js +2 -0
- package/src/Api/ToolPanelApi.d.ts +10 -1
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +37 -37
- package/src/PredefinedConfig/Common/Types.d.ts +3 -3
- package/src/PredefinedConfig/Common/Types.js +1 -0
- package/src/PredefinedConfig/ConditionalStyleState.d.ts +10 -19
- package/src/PredefinedConfig/FormatColumnState.d.ts +21 -92
- package/src/PredefinedConfig/PredefinedConfig.d.ts +6 -0
- package/src/PredefinedConfig/StyledColumnState.d.ts +119 -0
- package/src/PredefinedConfig/StyledColumnState.js +2 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +14 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +43 -1
- package/src/Redux/ActionsReducers/PluginsRedux.d.ts +4 -4
- package/src/Redux/ActionsReducers/PluginsRedux.js +5 -5
- package/src/Redux/ActionsReducers/StyledColumnRedux.d.ts +49 -0
- package/src/Redux/ActionsReducers/StyledColumnRedux.js +92 -0
- package/src/Redux/DeadRedux.d.ts +6 -0
- package/src/Redux/DeadRedux.js +19 -1
- package/src/Redux/Store/AdaptableStore.js +11 -8
- package/src/Strategy/ConditionalStyleModule.d.ts +2 -25
- package/src/Strategy/ConditionalStyleModule.js +0 -213
- package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
- package/src/Strategy/DataChangeHistoryModule.js +12 -0
- package/src/Strategy/FormatColumnModule.d.ts +3 -10
- package/src/Strategy/FormatColumnModule.js +42 -183
- package/src/Strategy/Interface/IModule.d.ts +1 -0
- package/src/Strategy/LayoutModule.js +0 -4
- package/src/Strategy/StyledColumnModule.d.ts +24 -0
- package/src/Strategy/StyledColumnModule.js +165 -0
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.d.ts +1 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +3 -4
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +1 -16
- package/src/Strategy/Utilities/getScopeViewItems.js +1 -1
- package/src/Utilities/Constants/ModuleConstants.d.ts +3 -0
- package/src/Utilities/Constants/ModuleConstants.js +4 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +6 -12
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -1
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +3 -2
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +2 -4
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -1
- package/src/Utilities/Extensions/TypeExtensions.d.ts +1 -0
- package/src/Utilities/Extensions/TypeExtensions.js +5 -0
- package/src/Utilities/ObjectFactory.d.ts +5 -2
- package/src/Utilities/ObjectFactory.js +14 -7
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +14 -4
- package/src/Utilities/Services/{LicenseService.d.ts → LicenseService/index.d.ts} +3 -3
- package/src/Utilities/Services/LicenseService/index.js +1 -0
- package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.d.ts +1 -0
- package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.js +15 -0
- package/src/Utilities/Services/ModuleService.js +2 -2
- package/src/Utilities/Services/QueryLanguageService.d.ts +3 -3
- package/src/Utilities/Services/QueryLanguageService.js +89 -40
- package/src/Utilities/Services/ReportService.js +6 -6
- package/src/Utilities/license/LicenseDetails.d.ts +1 -1
- package/src/Utilities/license/decode.d.ts +1 -0
- package/src/Utilities/license/decode.js +1 -1
- package/src/View/AdaptablePopover/index.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +11 -12
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -5
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +3 -3
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -3
- package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -1
- package/src/View/Components/AdaptableObjectRow/index.js +1 -6
- package/src/View/Components/Buttons/ButtonInfo.d.ts +1 -3
- package/src/View/Components/Buttons/ButtonInfo.js +3 -5
- package/src/View/Components/EntityRulesEditor/index.d.ts +2 -1
- package/src/View/Components/EntityRulesEditor/index.js +36 -35
- package/src/View/Components/FilterForm/FilterForm.js +11 -16
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +2 -1
- package/src/View/Components/FilterForm/QuickFilterForm.js +7 -13
- package/src/View/Components/NewScopeComponent.js +3 -3
- package/src/View/Components/Panels/PanelWithButton.js +1 -5
- package/src/View/Components/Panels/PanelWithImage.js +1 -5
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +3 -16
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +1 -0
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -1
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +5 -5
- package/src/View/Components/RangesComponent.d.ts +8 -1
- package/src/View/Components/RangesComponent.js +60 -24
- package/src/View/Components/ScopeComponent.js +6 -6
- package/src/View/Components/Selectors/ColumnSelector.d.ts +1 -0
- package/src/View/Components/Selectors/ColumnSelector.js +2 -1
- package/src/View/Components/Selectors/ColumnValueSelector.js +2 -2
- package/src/View/Components/StyleComponent.js +14 -19
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +3 -9
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +25 -10
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
- package/src/View/DataSet/DataSetSelector.js +1 -1
- package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
- package/src/View/Export/ExportViewPanel.d.ts +1 -1
- package/src/View/Export/ExportViewPanel.js +4 -4
- package/src/View/Export/ReportExportDropdown.js +1 -1
- package/src/View/Export/Wizard/ReportNameWizardSection.js +10 -11
- package/src/View/Filter/FilterSummary.d.ts +1 -1
- package/src/View/Filter/FilterViewPanel.d.ts +1 -1
- package/src/View/FlashingCell/FlashingCellStyle.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +6 -6
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +4 -4
- package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
- package/src/View/FormatColumn/MoveFormatColumn.d.ts +7 -0
- package/src/View/FormatColumn/MoveFormatColumn.js +27 -0
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +28 -28
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +8 -0
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +28 -0
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +21 -3
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +2 -28
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +3 -3
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +6 -300
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +15 -9
- package/src/View/FormatColumn/Wizard/constants.d.ts +1 -0
- package/src/View/FormatColumn/Wizard/constants.js +4 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +7 -7
- package/src/View/GridInfo/ColumnInfoComponent.js +0 -7
- package/src/View/Layout/LayoutRadioSelector.js +1 -1
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Layout/Wizard/Components/ColumnLabels.js +1 -1
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +7 -6
- package/src/View/Layout/Wizard/sections/SettingsSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +3 -3
- package/src/View/Query/QueryViewPanel.d.ts +1 -1
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +1 -1
- package/src/View/QuickSearch/QuickSearchPopup.js +2 -2
- package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +3 -3
- package/src/View/SmartEdit/SmartEditPopup.js +3 -3
- package/src/View/SpecialColumnSettingsWizardStep.js +10 -10
- package/src/View/StateManagement/StateManagementPopup.js +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.d.ts +7 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +77 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.d.ts +9 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +65 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection.d.ts +9 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection.js +234 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.d.ts +7 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +59 -0
- package/src/View/SystemStatus/SystemStatusEntityRow.js +4 -6
- package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
- package/src/View/TeamSharing/SharedEntityObjectView.js +1 -1
- package/src/View/TeamSharing/TeamSharingApplyButton.js +1 -1
- package/src/View/Theme/ThemePopup.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +1 -2
- package/src/agGrid/ActionColumnRenderer.d.ts +3 -0
- package/src/agGrid/ActionColumnRenderer.js +96 -64
- package/src/agGrid/Adaptable.d.ts +13 -9
- package/src/agGrid/Adaptable.js +207 -221
- package/src/agGrid/CheckboxRenderer.js +1 -1
- package/src/agGrid/FilterWrapper.js +60 -16
- package/src/agGrid/FloatingFilterWrapper.d.ts +2 -2
- package/src/agGrid/FloatingFilterWrapper.js +71 -32
- package/src/agGrid/PercentBarRenderer.d.ts +6 -2
- package/src/agGrid/PercentBarRenderer.js +19 -17
- package/src/agGrid/agGridHelper.d.ts +6 -2
- package/src/agGrid/agGridHelper.js +17 -17
- package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -1
- package/src/agGrid/createAgStatusPanelComponent.js +17 -0
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +5 -1
- package/src/agGrid/editors/AdaptableDateEditor/index.js +87 -20
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +3 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +81 -30
- package/src/agGrid/weightedAverage.js +19 -11
- package/src/components/CheckBox/index.js +7 -2
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.d.ts +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +13 -32
- package/src/components/ExpressionEditor/EditorInput.js +1 -1
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +1 -1
- package/src/components/ExpressionEditor/index.js +9 -17
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/StylePreview.js +2 -1
- package/src/components/icons/brush.d.ts +3 -0
- package/src/components/icons/brush.js +7 -0
- package/src/components/icons/index.js +2 -0
- package/src/metamodel/adaptable.metamodel.d.ts +213 -121
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/types.d.ts +6 -3
- package/src/renderReactRoot.d.ts +2 -0
- package/src/renderReactRoot.js +11 -9
- package/src/types.d.ts +8 -6
- package/themes/dark.css +8 -4
- package/themes/dark.css.map +1 -0
- package/themes/light.css +4 -1
- package/themes/light.css.map +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableComponents.d.ts +0 -1
- package/src/AdaptableComponents.js +0 -5
- package/src/Api/ConditionalStyleApi.d.ts +0 -108
- package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +0 -29
- package/src/Api/Implementation/ConditionalStyleApiImpl.js +0 -98
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.d.ts +0 -49
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +0 -95
- package/src/Strategy/Interface/IConditionalStyleModule.d.ts +0 -6
- package/src/Strategy/Utilities/getStyleViewItems.d.ts +0 -2
- package/src/Strategy/Utilities/getStyleViewItems.js +0 -16
- package/src/Utilities/Services/LicenseService.js +0 -1
- package/src/View/ConditionalStyle/ConditionalStyleSummary.d.ts +0 -25
- package/src/View/ConditionalStyle/ConditionalStyleSummary.js +0 -108
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.d.ts +0 -9
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +0 -42
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.d.ts +0 -8
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +0 -43
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +0 -8
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +0 -29
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.d.ts +0 -8
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +0 -23
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.d.ts +0 -6
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +0 -114
- package/src/View/ConditionalStyle/Wizard/DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE.d.ts +0 -1
- package/src/View/ConditionalStyle/Wizard/DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE.js +0 -4
|
@@ -27,7 +27,7 @@ exports.SystemPredicateDefs = [
|
|
|
27
27
|
label: 'Values',
|
|
28
28
|
icon: { text: 'IN' },
|
|
29
29
|
columnScope: { DataTypes: ['String', 'Number', 'Date'] },
|
|
30
|
-
moduleScope: ['filter', 'conditionalstyle', 'alert'],
|
|
30
|
+
moduleScope: ['filter', 'conditionalstyle', 'formatColumn', 'alert'],
|
|
31
31
|
handler: ({ inputs, column, value }) => {
|
|
32
32
|
if (inputs.length === 0) {
|
|
33
33
|
return true;
|
|
@@ -53,7 +53,7 @@ exports.SystemPredicateDefs = [
|
|
|
53
53
|
label: 'Exclude Values',
|
|
54
54
|
icon: { text: '!IN' },
|
|
55
55
|
columnScope: { DataTypes: ['String', 'Number', 'Date'] },
|
|
56
|
-
moduleScope: ['filter', 'conditionalstyle', 'alert'],
|
|
56
|
+
moduleScope: ['filter', 'conditionalstyle', 'formatColumn', 'alert'],
|
|
57
57
|
handler: ({ inputs, column, value }) => {
|
|
58
58
|
// basically negation of IN
|
|
59
59
|
if (inputs.length === 0) {
|
|
@@ -79,7 +79,7 @@ exports.SystemPredicateDefs = [
|
|
|
79
79
|
label: 'Blanks',
|
|
80
80
|
icon: { name: 'blanks' },
|
|
81
81
|
columnScope: { All: true },
|
|
82
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
82
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
83
83
|
handler: ({ value }) => Helper_1.default.IsInputNullOrEmpty(value),
|
|
84
84
|
},
|
|
85
85
|
{
|
|
@@ -87,7 +87,7 @@ exports.SystemPredicateDefs = [
|
|
|
87
87
|
label: 'Non Blanks',
|
|
88
88
|
icon: { name: 'non-blanks' },
|
|
89
89
|
columnScope: { All: true },
|
|
90
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
90
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
91
91
|
handler: ({ value }) => Helper_1.default.IsInputNotNullOrEmpty(value),
|
|
92
92
|
},
|
|
93
93
|
// Numeric System Filters
|
|
@@ -96,7 +96,7 @@ exports.SystemPredicateDefs = [
|
|
|
96
96
|
label: 'Greater Than',
|
|
97
97
|
icon: { name: 'greater-than' },
|
|
98
98
|
columnScope: { DataTypes: ['Number'] },
|
|
99
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
99
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
100
100
|
inputs: [{ type: 'number' }],
|
|
101
101
|
handler: ({ value, inputs }) => Number(value) > Number(inputs[0]),
|
|
102
102
|
toString: ({ inputs }) => `> ${inputs[0]}`,
|
|
@@ -107,7 +107,7 @@ exports.SystemPredicateDefs = [
|
|
|
107
107
|
label: 'Less Than',
|
|
108
108
|
icon: { name: 'less-than' },
|
|
109
109
|
columnScope: { DataTypes: ['Number'] },
|
|
110
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
110
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
111
111
|
inputs: [{ type: 'number' }],
|
|
112
112
|
handler: ({ value, inputs }) => Number(value) < Number(inputs[0]),
|
|
113
113
|
toString: ({ inputs }) => `< ${inputs[0]}`,
|
|
@@ -118,7 +118,7 @@ exports.SystemPredicateDefs = [
|
|
|
118
118
|
label: 'Positive',
|
|
119
119
|
icon: { text: '>0' },
|
|
120
120
|
columnScope: { DataTypes: ['Number'] },
|
|
121
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
121
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
122
122
|
handler: ({ value }) => Number(value) > 0,
|
|
123
123
|
},
|
|
124
124
|
{
|
|
@@ -126,7 +126,7 @@ exports.SystemPredicateDefs = [
|
|
|
126
126
|
label: 'Negative',
|
|
127
127
|
icon: { text: '<0' },
|
|
128
128
|
columnScope: { DataTypes: ['Number'] },
|
|
129
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
129
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
130
130
|
handler: ({ value }) => Number(value) < 0,
|
|
131
131
|
},
|
|
132
132
|
{
|
|
@@ -134,7 +134,7 @@ exports.SystemPredicateDefs = [
|
|
|
134
134
|
label: 'Zero',
|
|
135
135
|
icon: { text: '=0' },
|
|
136
136
|
columnScope: { DataTypes: ['Number'] },
|
|
137
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
137
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
138
138
|
handler: ({ value }) => {
|
|
139
139
|
if (typeof value === 'string' && !StringExtensions_1.default.IsNumeric(value)) {
|
|
140
140
|
return false;
|
|
@@ -147,7 +147,7 @@ exports.SystemPredicateDefs = [
|
|
|
147
147
|
label: 'Equals',
|
|
148
148
|
icon: { name: 'equal' },
|
|
149
149
|
columnScope: { DataTypes: ['Number'] },
|
|
150
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
150
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
151
151
|
inputs: [{ type: 'number' }],
|
|
152
152
|
handler: ({ value, inputs }) => {
|
|
153
153
|
const input = inputs[0];
|
|
@@ -165,7 +165,7 @@ exports.SystemPredicateDefs = [
|
|
|
165
165
|
label: 'Not Equals',
|
|
166
166
|
icon: { name: 'not-equal' },
|
|
167
167
|
columnScope: { DataTypes: ['Number'] },
|
|
168
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
168
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
169
169
|
inputs: [{ type: 'number' }],
|
|
170
170
|
handler: ({ value, inputs }) => {
|
|
171
171
|
const input = inputs[0];
|
|
@@ -183,7 +183,7 @@ exports.SystemPredicateDefs = [
|
|
|
183
183
|
label: 'Between',
|
|
184
184
|
icon: { text: 'BE' },
|
|
185
185
|
columnScope: { DataTypes: ['Number'] },
|
|
186
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
186
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
187
187
|
inputs: [{ type: 'number' }, { type: 'number' }],
|
|
188
188
|
handler: ({ value, inputs }) => Number(value) >= Number(inputs[0]) && Number(value) <= Number(inputs[1]),
|
|
189
189
|
toString: ({ inputs }) => `Between ${inputs[0]}:${inputs[1]}`,
|
|
@@ -194,7 +194,7 @@ exports.SystemPredicateDefs = [
|
|
|
194
194
|
label: 'Not Between',
|
|
195
195
|
icon: { text: '!BE' },
|
|
196
196
|
columnScope: { DataTypes: ['Number'] },
|
|
197
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
197
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
198
198
|
inputs: [{ type: 'number' }, { type: 'number' }],
|
|
199
199
|
handler: ({ value, inputs }) => Number(value) < Number(inputs[0]) || Number(value) > Number(inputs[1]),
|
|
200
200
|
toString: ({ inputs }) => `Not Between ${inputs[0]}:${inputs[1]}`,
|
|
@@ -222,7 +222,7 @@ exports.SystemPredicateDefs = [
|
|
|
222
222
|
label: 'Equals',
|
|
223
223
|
icon: { name: 'equal' },
|
|
224
224
|
columnScope: { DataTypes: ['String'] },
|
|
225
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
225
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
226
226
|
inputs: [{ type: 'text' }],
|
|
227
227
|
handler: ({ value, inputs, api }) => {
|
|
228
228
|
if (!value) {
|
|
@@ -241,7 +241,7 @@ exports.SystemPredicateDefs = [
|
|
|
241
241
|
label: 'Not Equals',
|
|
242
242
|
icon: { name: 'not-equal' },
|
|
243
243
|
columnScope: { DataTypes: ['String'] },
|
|
244
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
244
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
245
245
|
inputs: [{ type: 'text' }],
|
|
246
246
|
handler: ({ value, inputs, api }) => {
|
|
247
247
|
if (!value) {
|
|
@@ -260,7 +260,7 @@ exports.SystemPredicateDefs = [
|
|
|
260
260
|
label: 'Contains',
|
|
261
261
|
icon: { name: 'contains' },
|
|
262
262
|
columnScope: { DataTypes: ['String'] },
|
|
263
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
263
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
264
264
|
inputs: [{ type: 'text' }],
|
|
265
265
|
handler: ({ value, inputs, api }) => {
|
|
266
266
|
if (!value) {
|
|
@@ -278,7 +278,7 @@ exports.SystemPredicateDefs = [
|
|
|
278
278
|
label: 'Not Contains',
|
|
279
279
|
icon: { name: 'not-contains' },
|
|
280
280
|
columnScope: { DataTypes: ['String'] },
|
|
281
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
281
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
282
282
|
inputs: [{ type: 'text' }],
|
|
283
283
|
handler: ({ value, inputs, api }) => {
|
|
284
284
|
if (!value) {
|
|
@@ -296,7 +296,7 @@ exports.SystemPredicateDefs = [
|
|
|
296
296
|
label: 'Starts With',
|
|
297
297
|
icon: { name: 'starts-with' },
|
|
298
298
|
columnScope: { DataTypes: ['String'] },
|
|
299
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
299
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
300
300
|
inputs: [{ type: 'text' }],
|
|
301
301
|
handler: ({ value, inputs, api }) => {
|
|
302
302
|
if (!value) {
|
|
@@ -314,7 +314,7 @@ exports.SystemPredicateDefs = [
|
|
|
314
314
|
label: 'Ends With',
|
|
315
315
|
icon: { name: 'ends-with' },
|
|
316
316
|
columnScope: { DataTypes: ['String'] },
|
|
317
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
317
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
318
318
|
inputs: [{ type: 'text' }],
|
|
319
319
|
handler: ({ value, inputs, api }) => {
|
|
320
320
|
if (!value) {
|
|
@@ -332,7 +332,7 @@ exports.SystemPredicateDefs = [
|
|
|
332
332
|
label: 'Regex',
|
|
333
333
|
icon: { name: 'regex' },
|
|
334
334
|
columnScope: { DataTypes: ['String'] },
|
|
335
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
335
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
336
336
|
inputs: [{ type: 'text' }],
|
|
337
337
|
handler: ({ value, inputs }) => new RegExp(inputs[0]).test(value),
|
|
338
338
|
toString: ({ inputs }) => `Regex ${inputs[0]}`,
|
|
@@ -343,7 +343,7 @@ exports.SystemPredicateDefs = [
|
|
|
343
343
|
label: 'Today',
|
|
344
344
|
icon: { name: 'calendar' },
|
|
345
345
|
columnScope: { DataTypes: ['Date'] },
|
|
346
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
346
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
347
347
|
handler: ({ value }) => (0, isToday_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
348
348
|
},
|
|
349
349
|
{
|
|
@@ -351,7 +351,7 @@ exports.SystemPredicateDefs = [
|
|
|
351
351
|
label: 'Yesterday',
|
|
352
352
|
icon: { name: 'calendar' },
|
|
353
353
|
columnScope: { DataTypes: ['Date'] },
|
|
354
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
354
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
355
355
|
handler: ({ value }) => (0, isYesterday_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
356
356
|
},
|
|
357
357
|
{
|
|
@@ -359,7 +359,7 @@ exports.SystemPredicateDefs = [
|
|
|
359
359
|
label: 'Tomorrow',
|
|
360
360
|
icon: { name: 'calendar' },
|
|
361
361
|
columnScope: { DataTypes: ['Date'] },
|
|
362
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
362
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
363
363
|
handler: ({ value }) => (0, isTomorrow_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
364
364
|
},
|
|
365
365
|
{
|
|
@@ -367,7 +367,7 @@ exports.SystemPredicateDefs = [
|
|
|
367
367
|
label: 'This Week',
|
|
368
368
|
icon: { name: 'calendar' },
|
|
369
369
|
columnScope: { DataTypes: ['Date'] },
|
|
370
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
370
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
371
371
|
handler: ({ value }) => (0, isThisWeek_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
372
372
|
},
|
|
373
373
|
{
|
|
@@ -375,7 +375,7 @@ exports.SystemPredicateDefs = [
|
|
|
375
375
|
label: 'This Month',
|
|
376
376
|
icon: { name: 'calendar' },
|
|
377
377
|
columnScope: { DataTypes: ['Date'] },
|
|
378
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
378
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
379
379
|
handler: ({ value }) => (0, isThisMonth_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
380
380
|
},
|
|
381
381
|
{
|
|
@@ -383,7 +383,7 @@ exports.SystemPredicateDefs = [
|
|
|
383
383
|
label: 'This Quarter',
|
|
384
384
|
icon: { name: 'calendar' },
|
|
385
385
|
columnScope: { DataTypes: ['Date'] },
|
|
386
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
386
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
387
387
|
handler: ({ value }) => (0, isThisQuarter_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
388
388
|
},
|
|
389
389
|
{
|
|
@@ -391,7 +391,7 @@ exports.SystemPredicateDefs = [
|
|
|
391
391
|
label: 'This Year',
|
|
392
392
|
icon: { name: 'calendar' },
|
|
393
393
|
columnScope: { DataTypes: ['Date'] },
|
|
394
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
394
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
395
395
|
handler: ({ value }) => (0, isThisYear_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
396
396
|
},
|
|
397
397
|
{
|
|
@@ -399,7 +399,7 @@ exports.SystemPredicateDefs = [
|
|
|
399
399
|
label: 'In Past',
|
|
400
400
|
icon: { name: 'calendar' },
|
|
401
401
|
columnScope: { DataTypes: ['Date'] },
|
|
402
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
402
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
403
403
|
handler: ({ value }) => (0, isPast_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
404
404
|
},
|
|
405
405
|
{
|
|
@@ -407,7 +407,7 @@ exports.SystemPredicateDefs = [
|
|
|
407
407
|
label: 'In Future',
|
|
408
408
|
icon: { name: 'calendar' },
|
|
409
409
|
columnScope: { DataTypes: ['Date'] },
|
|
410
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
410
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
411
411
|
handler: ({ value }) => (0, isFuture_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
412
412
|
},
|
|
413
413
|
{
|
|
@@ -415,7 +415,7 @@ exports.SystemPredicateDefs = [
|
|
|
415
415
|
label: 'After',
|
|
416
416
|
icon: { name: 'greater-than' },
|
|
417
417
|
columnScope: { DataTypes: ['Date'] },
|
|
418
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
418
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
419
419
|
inputs: [{ type: 'date' }],
|
|
420
420
|
handler: ({ value, inputs }) => (0, isAfter_1.default)((0, DateHelper_1.parseDateValue)(value), (0, DateHelper_1.parseDateValue)(inputs[0])),
|
|
421
421
|
toString: ({ inputs }) => `> ${inputs[0]}`,
|
|
@@ -425,7 +425,7 @@ exports.SystemPredicateDefs = [
|
|
|
425
425
|
label: 'Before',
|
|
426
426
|
icon: { name: 'less-than' },
|
|
427
427
|
columnScope: { DataTypes: ['Date'] },
|
|
428
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
428
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
429
429
|
inputs: [{ type: 'date' }],
|
|
430
430
|
handler: ({ value, inputs }) => (0, isBefore_1.default)((0, DateHelper_1.parseDateValue)(value), (0, DateHelper_1.parseDateValue)(inputs[0])),
|
|
431
431
|
toString: ({ inputs }) => `< ${inputs[0]}`,
|
|
@@ -435,7 +435,7 @@ exports.SystemPredicateDefs = [
|
|
|
435
435
|
label: 'Equals',
|
|
436
436
|
icon: { name: 'equal' },
|
|
437
437
|
columnScope: { DataTypes: ['Date'] },
|
|
438
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
438
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
439
439
|
inputs: [{ type: 'date' }],
|
|
440
440
|
handler: ({ value, inputs }) => (0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), (0, DateHelper_1.parseDateValue)(inputs[0])),
|
|
441
441
|
toString: ({ inputs }) => `= ${inputs[0]}`,
|
|
@@ -445,7 +445,7 @@ exports.SystemPredicateDefs = [
|
|
|
445
445
|
label: 'NotEquals',
|
|
446
446
|
icon: { name: 'not-equal' },
|
|
447
447
|
columnScope: { DataTypes: ['Date'] },
|
|
448
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
448
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
449
449
|
inputs: [{ type: 'date' }],
|
|
450
450
|
handler: ({ value, inputs }) => !(0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), (0, DateHelper_1.parseDateValue)(inputs[0])),
|
|
451
451
|
toString: ({ inputs }) => `!= ${inputs[0]}`,
|
|
@@ -455,7 +455,7 @@ exports.SystemPredicateDefs = [
|
|
|
455
455
|
label: 'Next Work Day',
|
|
456
456
|
icon: { name: 'calendar' },
|
|
457
457
|
columnScope: { DataTypes: ['Date'] },
|
|
458
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
458
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
459
459
|
handler: ({ value, api }) => (0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), CalendarHelper_1.default.getNextWorkingDay()),
|
|
460
460
|
},
|
|
461
461
|
{
|
|
@@ -463,7 +463,7 @@ exports.SystemPredicateDefs = [
|
|
|
463
463
|
label: 'Last Work Day',
|
|
464
464
|
icon: { name: 'calendar' },
|
|
465
465
|
columnScope: { DataTypes: ['Date'] },
|
|
466
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
466
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
467
467
|
handler: ({ value, api }) => (0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), CalendarHelper_1.default.getPreviousWorkingDay()),
|
|
468
468
|
},
|
|
469
469
|
{
|
|
@@ -482,7 +482,7 @@ exports.SystemPredicateDefs = [
|
|
|
482
482
|
label: 'True',
|
|
483
483
|
icon: { text: 'T' },
|
|
484
484
|
columnScope: { DataTypes: ['Boolean'] },
|
|
485
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
485
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
486
486
|
handler: ({ value }) => Boolean(value) === true,
|
|
487
487
|
},
|
|
488
488
|
{
|
|
@@ -490,7 +490,7 @@ exports.SystemPredicateDefs = [
|
|
|
490
490
|
label: 'False',
|
|
491
491
|
icon: { text: 'F' },
|
|
492
492
|
columnScope: { DataTypes: ['Boolean'] },
|
|
493
|
-
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
493
|
+
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle', 'formatColumn'],
|
|
494
494
|
handler: ({ value }) => Boolean(value) === false,
|
|
495
495
|
},
|
|
496
496
|
{
|
|
@@ -22,15 +22,15 @@ export declare type AdaptableModuleButtons = AdaptableModuleButton[];
|
|
|
22
22
|
/**
|
|
23
23
|
* List of all the Module buttons Adaptable provides - each Module has a popup for which this is a shortcut button
|
|
24
24
|
*/
|
|
25
|
-
export declare type AdaptableModuleButton = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme';
|
|
25
|
+
export declare type AdaptableModuleButton = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme';
|
|
26
26
|
export declare type AdaptableStateKeys = AdaptableStateKey[];
|
|
27
27
|
export declare type AdaptableStateKey = keyof AdaptablePersistentState | 'OpenFin' | 'Glue42' | 'IPushPull';
|
|
28
28
|
/**
|
|
29
29
|
* Modules provided by AdapTable, subject to Entitlements and usually have Predefined Config
|
|
30
30
|
*/
|
|
31
|
-
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
31
|
+
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
32
32
|
export declare const ALL_MODULES: AdaptableModule[];
|
|
33
|
-
export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
33
|
+
export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
34
34
|
export declare type TypeHint<Base, Literals> = (Base & {
|
|
35
35
|
__subType?: true;
|
|
36
36
|
}) | Literals;
|
|
@@ -102,6 +102,7 @@ exports.ALL_MODULES = [
|
|
|
102
102
|
ModuleConstants.SettingsPanelModuleId,
|
|
103
103
|
ModuleConstants.ShortcutModuleId,
|
|
104
104
|
ModuleConstants.SmartEditModuleId,
|
|
105
|
+
ModuleConstants.StyledColumnModuleId,
|
|
105
106
|
ModuleConstants.StateManagementModuleId,
|
|
106
107
|
ModuleConstants.StatusBarModuleId,
|
|
107
108
|
ModuleConstants.SystemStatusModuleId,
|
|
@@ -7,41 +7,32 @@ import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
|
7
7
|
import { AdaptableBooleanQuery } from './Common/AdaptableQuery';
|
|
8
8
|
import { SuspendableObject } from './Common/SuspendableObject';
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Deprecated section of Adaptable State - use `FormatColumnState` instead
|
|
11
|
+
* @deprecated use `FormatColumnState` instead
|
|
11
12
|
**/
|
|
12
13
|
export interface ConditionalStyleState extends ConfigState {
|
|
13
|
-
/**
|
|
14
|
-
* Array of Conditional Styles to ship with AdapTable
|
|
15
|
-
*/
|
|
16
14
|
ConditionalStyles?: ConditionalStyle[];
|
|
17
15
|
}
|
|
18
16
|
/**
|
|
19
|
-
*
|
|
17
|
+
* Deprecated Adaptable Object - use `FormatColumn` instead
|
|
18
|
+
* @deprecated use `FormatColumn` instead
|
|
20
19
|
*/
|
|
21
20
|
export interface ConditionalStyle extends SuspendableObject {
|
|
22
|
-
/**
|
|
23
|
-
* Where Style is applied - can be whole Row, some Columns or all Columns of given DataType
|
|
24
|
-
*/
|
|
25
21
|
Scope: AdaptableScope;
|
|
26
|
-
/**
|
|
27
|
-
* Predicate-based Rule to use for deciding if a style needs to be applied.
|
|
28
|
-
*/
|
|
29
22
|
Rule: ConditionalStyleRule;
|
|
30
|
-
/**
|
|
31
|
-
* Adaptable Style (e.g. font properties and colurs) to apply.
|
|
32
|
-
*/
|
|
33
23
|
Style: AdaptableStyle;
|
|
34
|
-
/**
|
|
35
|
-
* Whether to apply Style in Grouped Rows and when Pivoting
|
|
36
|
-
* @defaultValue false
|
|
37
|
-
*/
|
|
38
24
|
IncludeGroupedRows?: boolean;
|
|
39
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Deprecated - use `FormatColumnPredicate` instead
|
|
28
|
+
* @deprecated use `FormatColumnPredicate` instead
|
|
29
|
+
*/
|
|
40
30
|
export interface ConditionalStylePredicate extends AdaptablePredicate {
|
|
41
31
|
PredicateId: TypeHint<string, SystemConditionalStylePredicateId>;
|
|
42
32
|
}
|
|
43
33
|
/**
|
|
44
|
-
*
|
|
34
|
+
* Deprecated - use `FormatColumnRule` instead
|
|
35
|
+
* @deprecated use `FormatColumnRule` instead
|
|
45
36
|
*/
|
|
46
37
|
export declare type ConditionalStyleRule = XOR<{
|
|
47
38
|
Predicate: ConditionalStylePredicate;
|
|
@@ -3,6 +3,9 @@ import { AdaptableStyle } from './Common/AdaptableStyle';
|
|
|
3
3
|
import { AdaptableFormat } from './Common/AdaptableFormat';
|
|
4
4
|
import { AdaptableScope } from './Common/AdaptableScope';
|
|
5
5
|
import { SuspendableObject } from './Common/SuspendableObject';
|
|
6
|
+
import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
7
|
+
import { TypeHint } from './Common/Types';
|
|
8
|
+
import { AdaptableBooleanQuery, AdaptablePredicate, GradientStyle, PercentBarStyle } from '../types';
|
|
6
9
|
/**
|
|
7
10
|
* Predefined Configuration for Format Column Module
|
|
8
11
|
*/
|
|
@@ -20,12 +23,17 @@ export interface FormatColumn extends SuspendableObject {
|
|
|
20
23
|
* Where Format will be applied - whole Row, some Columns or all Columns of given DataType
|
|
21
24
|
*/
|
|
22
25
|
Scope: AdaptableScope;
|
|
26
|
+
/**
|
|
27
|
+
* Predicate-based Rule to use for deciding if a format column needs to be applied.
|
|
28
|
+
* When not defined the format column is always applied.
|
|
29
|
+
*/
|
|
30
|
+
Rule?: FormatColumnRule;
|
|
23
31
|
/**
|
|
24
32
|
* Style to apply
|
|
25
33
|
*/
|
|
26
34
|
Style?: AdaptableStyle;
|
|
27
35
|
/**
|
|
28
|
-
*
|
|
36
|
+
* @deprecated now in StyledColumn Module
|
|
29
37
|
*/
|
|
30
38
|
ColumnStyle?: ColumnStyle;
|
|
31
39
|
/**
|
|
@@ -36,20 +44,26 @@ export interface FormatColumn extends SuspendableObject {
|
|
|
36
44
|
* Aligns cells 'Left' or 'Right' or 'Center'
|
|
37
45
|
*/
|
|
38
46
|
CellAlignment?: 'Left' | 'Right' | 'Center';
|
|
39
|
-
/**
|
|
40
|
-
* Text to display in Column Header (doesn't change ColumnId)
|
|
41
|
-
*
|
|
42
|
-
* @deprecated use `Layout.ColumnHeadersMap` instead
|
|
43
|
-
*/
|
|
44
|
-
HeaderName?: string;
|
|
45
47
|
/**
|
|
46
48
|
* Whether to Format the Column in Grouped Rows
|
|
47
49
|
* @defaultValue false
|
|
48
50
|
*/
|
|
49
51
|
IncludeGroupedRows?: boolean;
|
|
50
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* The Format Column Rule - can be either a Predicate or a BooleanExpression
|
|
55
|
+
*/
|
|
56
|
+
export declare type FormatColumnRule = XOR<{
|
|
57
|
+
Predicate: FormatColumnPredicate;
|
|
58
|
+
}, AdaptableBooleanQuery>;
|
|
59
|
+
export interface FormatColumnPredicate extends AdaptablePredicate {
|
|
60
|
+
PredicateId: TypeHint<string, SystemFormatColumnPredicateId>;
|
|
61
|
+
}
|
|
62
|
+
export declare type SystemFormatColumnPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False';
|
|
51
63
|
/**
|
|
52
64
|
* Special Style used when Formatting Columns: Gradient, PercentBar or CheckBox
|
|
65
|
+
*
|
|
66
|
+
* @deprecated use StyledColumn instead
|
|
53
67
|
*/
|
|
54
68
|
export interface ColumnStyle {
|
|
55
69
|
/**
|
|
@@ -65,88 +79,3 @@ export interface ColumnStyle {
|
|
|
65
79
|
*/
|
|
66
80
|
CheckBoxStyle?: boolean;
|
|
67
81
|
}
|
|
68
|
-
/**
|
|
69
|
-
* Style used to display Percent Bars in Format Column
|
|
70
|
-
*/
|
|
71
|
-
export interface PercentBarStyle {
|
|
72
|
-
/**
|
|
73
|
-
* Ranges (e.g. to allow a traffic light effect)
|
|
74
|
-
*/
|
|
75
|
-
CellRanges?: CellColorRange[];
|
|
76
|
-
/**
|
|
77
|
-
* Compares cell values to another Column
|
|
78
|
-
*/
|
|
79
|
-
ColumnComparison?: ColumnComparison;
|
|
80
|
-
/**
|
|
81
|
-
* Whether Cell shows Cell Value, Percent Value, both or none
|
|
82
|
-
*/
|
|
83
|
-
CellText?: CellTextOptions;
|
|
84
|
-
/**
|
|
85
|
-
* Whether Tooltip shows Cell Value, Percent Value, both or none
|
|
86
|
-
*/
|
|
87
|
-
ToolTipText?: CellTextOptions;
|
|
88
|
-
/**
|
|
89
|
-
* Back colour - only used for 'Percent Bar' Numeric style; leave unset if none required
|
|
90
|
-
* @defaultValue Gray
|
|
91
|
-
*/
|
|
92
|
-
BackColor?: string;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Used to display Gradient Styles in Format Column
|
|
96
|
-
*/
|
|
97
|
-
export interface GradientStyle {
|
|
98
|
-
/**
|
|
99
|
-
* Ranges (e.g. to allow a traffic light effect)
|
|
100
|
-
*/
|
|
101
|
-
CellRanges?: CellColorRange[];
|
|
102
|
-
/**
|
|
103
|
-
* Compares cell values to another Column
|
|
104
|
-
*/
|
|
105
|
-
ColumnComparison?: ColumnComparison;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Defines which Colours to show in Gradient and Percent Bar Styles
|
|
109
|
-
*/
|
|
110
|
-
export interface CellColorRange {
|
|
111
|
-
/**
|
|
112
|
-
* Start number of Range
|
|
113
|
-
*/
|
|
114
|
-
Min: number | 'Col-Min';
|
|
115
|
-
/**
|
|
116
|
-
* End number of Range
|
|
117
|
-
*/
|
|
118
|
-
Max: number | 'Col-Max';
|
|
119
|
-
/**
|
|
120
|
-
* Cell colour to use for values that fall inside Range
|
|
121
|
-
*/
|
|
122
|
-
Color: string;
|
|
123
|
-
/**
|
|
124
|
-
* Reverses the Gradient so the lower the cell value the darker the colour
|
|
125
|
-
*/
|
|
126
|
-
ReverseGradient?: boolean;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Enables a Percent Bar or Gradient Style to use another column in its calculations
|
|
130
|
-
*/
|
|
131
|
-
export interface ColumnComparison {
|
|
132
|
-
/**
|
|
133
|
-
* Start value - either numeric or Column name
|
|
134
|
-
*/
|
|
135
|
-
MinValue: number | string;
|
|
136
|
-
/**
|
|
137
|
-
* End value - either numeric or Column name
|
|
138
|
-
*/
|
|
139
|
-
MaxValue: number | string;
|
|
140
|
-
/**
|
|
141
|
-
* Colour to use for the Comparison
|
|
142
|
-
*/
|
|
143
|
-
Color: string;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Array of CellTextOption available in Format Columns
|
|
147
|
-
*/
|
|
148
|
-
export declare type CellTextOptions = CellTextOption[];
|
|
149
|
-
/**
|
|
150
|
-
* Text optionally to show in a Format Column special style: 'CellValue' or 'PercentageValue'
|
|
151
|
-
*/
|
|
152
|
-
export declare type CellTextOption = 'CellValue' | 'PercentageValue';
|
|
@@ -18,6 +18,7 @@ import { ToolPanelState } from './ToolPanelState';
|
|
|
18
18
|
import { QueryState } from './QueryState';
|
|
19
19
|
import { StatusBarState } from './StatusBarState';
|
|
20
20
|
import { ChartingState } from './ChartingState';
|
|
21
|
+
import { StyledColumnState } from './StyledColumnState';
|
|
21
22
|
/**
|
|
22
23
|
* This is the main Predefined Config interface which developers will populate at design-time
|
|
23
24
|
*/
|
|
@@ -36,6 +37,7 @@ export interface PredefinedConfig {
|
|
|
36
37
|
CalculatedColumn?: CalculatedColumnState;
|
|
37
38
|
/**
|
|
38
39
|
* Supplies a collection of *ConditionalStyle* objects to provides columns and rows with a particular style when the data matches a given rule
|
|
40
|
+
* @deprecated use `FormatColumn` instead
|
|
39
41
|
*/
|
|
40
42
|
ConditionalStyle?: ConditionalStyleState;
|
|
41
43
|
/**
|
|
@@ -86,6 +88,10 @@ export interface PredefinedConfig {
|
|
|
86
88
|
* Supplies a collection of *Shortcut* objects to aid data entry and prevent 'fat finger' issues
|
|
87
89
|
*/
|
|
88
90
|
Shortcut?: ShortcutState;
|
|
91
|
+
/**
|
|
92
|
+
* Supplies a collection of Special Column Styles
|
|
93
|
+
*/
|
|
94
|
+
StyledColumn?: StyledColumnState;
|
|
89
95
|
/**
|
|
90
96
|
* Configures the Adaptable Status Bar
|
|
91
97
|
*/
|