@adaptabletools/adaptable-cjs 23.0.0-canary.8 → 23.0.0-canary.9
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/index.css +29 -14
- package/package.json +1 -1
- package/src/{Utilities → AdaptableState/Aggregations}/weightedAverage.js +2 -3
- package/src/AdaptableState/Common/Enums.d.ts +0 -12
- package/src/AdaptableState/Common/Enums.js +1 -16
- package/src/{Utilities → AdaptableState/Common}/MenuItem.d.ts +4 -4
- package/src/{Utilities → AdaptableState/Common}/MenuItem.js +1 -1
- package/src/AdaptableState/StyledColumns/BulletChartStyle.d.ts +5 -5
- package/src/AdaptableState/StyledColumns/Common/{BarChartCellText.d.ts → BarStyleProperties.d.ts} +34 -10
- package/src/AdaptableState/StyledColumns/GradientStyle.d.ts +2 -2
- package/src/AdaptableState/StyledColumns/PercentBarStyle.d.ts +2 -2
- package/src/AdaptableState/StyledColumns/RangeBarStyle.d.ts +5 -5
- package/src/Api/Implementation/AlertApiImpl.js +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +5 -5
- package/src/Api/Implementation/ExportApiImpl.js +1 -1
- package/src/Api/Implementation/LayoutHelpers.js +2 -3
- package/src/Api/Implementation/QuickSearchApiImpl.js +4 -4
- package/src/Api/Implementation/ThemeApiImpl.js +2 -2
- package/src/Api/Internal/ActionColumnInternalApi.js +2 -2
- package/src/Api/Internal/AlertInternalApi.js +1 -1
- package/src/Api/Internal/ChartingInternalApi.js +2 -2
- package/src/Api/Internal/ColumnInternalApi.js +2 -2
- package/src/Api/Internal/EventInternalApi.js +3 -4
- package/src/Api/Internal/ExportInternalApi.js +2 -2
- package/src/Api/Internal/FormatColumnInternalApi.js +4 -4
- package/src/Api/Internal/GridInternalApi.js +1 -1
- package/src/Api/Internal/StyledColumnInternalApi.js +6 -6
- package/src/Redux/ActionsReducers/ExportRedux.js +1 -1
- package/src/Redux/ActionsReducers/InternalRedux.js +1 -1
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +2 -3
- package/src/Redux/Store/AdaptableReduxMerger.js +7 -9
- package/src/Redux/Store/AdaptableStore.js +5 -5
- package/src/Strategy/AdaptableModuleBase.d.ts +1 -1
- package/src/Strategy/AdaptableModuleBase.js +1 -1
- package/src/Strategy/AlertModule.d.ts +1 -1
- package/src/Strategy/AlertModule.js +2 -2
- package/src/Strategy/BulkUpdateModule.d.ts +1 -1
- package/src/Strategy/CalculatedColumnModule.d.ts +2 -2
- package/src/Strategy/CellSummaryModule.d.ts +2 -2
- package/src/Strategy/ChartingModule.d.ts +1 -1
- package/src/Strategy/ChartingModule.js +4 -4
- package/src/Strategy/ColumnInfoModule.d.ts +2 -2
- package/src/Strategy/CommentModule.d.ts +1 -1
- package/src/Strategy/CustomSortModule.d.ts +1 -1
- package/src/Strategy/ExportModule.js +2 -2
- package/src/Strategy/FlashingCellModule.d.ts +1 -1
- package/src/Strategy/FreeTextColumnModule.d.ts +1 -1
- package/src/Strategy/GridInfoModule.d.ts +2 -2
- package/src/Strategy/LayoutModule.js +2 -2
- package/src/Strategy/NoteModule.d.ts +1 -1
- package/src/Strategy/PlusMinusModule.d.ts +1 -1
- package/src/Strategy/PlusMinusModule.js +8 -8
- package/src/Strategy/SettingsPanelModule.d.ts +2 -2
- package/src/Strategy/SmartEditModule.d.ts +1 -1
- package/src/Strategy/SystemStatusModule.d.ts +2 -2
- package/src/Strategy/TeamSharingModule.js +4 -4
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +2 -3
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +2 -2
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -3
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +32 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +54 -1
- package/src/Utilities/Extensions/NumberExtensions.d.ts +21 -0
- package/src/Utilities/Extensions/NumberExtensions.js +78 -0
- package/src/Utilities/Extensions/ObjectExtensions.d.ts +44 -0
- package/src/Utilities/Extensions/ObjectExtensions.js +277 -0
- package/src/Utilities/Extensions/StringExtensions.d.ts +26 -0
- package/src/Utilities/Extensions/StringExtensions.js +49 -3
- package/src/Utilities/Helpers/AdaptableHelper.js +7 -7
- package/src/Utilities/Helpers/{alertFormHelper.js → AlertHelper.js} +1 -1
- package/src/Utilities/Helpers/DateHelper.js +2 -2
- package/src/Utilities/Helpers/{FormatHelper.js → DisplayFormatHelper.js} +5 -5
- package/src/Utilities/Helpers/Helper.d.ts +0 -6
- package/src/Utilities/Helpers/Helper.js +0 -38
- package/src/Utilities/Helpers/{QuickSearchStyleHelper.js → QuickSearchHelper.js} +2 -3
- package/src/Utilities/Helpers/{ScheduleHelper.d.ts → Scheduling/ScheduleHelper.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduleHelper.js → Scheduling/ScheduleHelper.js} +1 -1
- package/src/Utilities/Helpers/{ScheduleJobManager.d.ts → Scheduling/ScheduleJobManager.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduleJobRunner.d.ts → Scheduling/ScheduleJobRunner.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduledAlertHelper.d.ts → Scheduling/ScheduledAlertHelper.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduledAlertHelper.js → Scheduling/ScheduledAlertHelper.js} +4 -4
- package/src/Utilities/Helpers/{ScheduledJobsMiddlewareHelper.d.ts → Scheduling/ScheduledJobsMiddlewareHelper.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduledJobsMiddlewareHelper.js → Scheduling/ScheduledJobsMiddlewareHelper.js} +1 -1
- package/src/Utilities/Helpers/{ScheduledReportHelper.d.ts → Scheduling/ScheduledReportHelper.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduledReportHelper.js → Scheduling/ScheduledReportHelper.js} +1 -1
- package/src/Utilities/Helpers/SettingsPanelHelper.d.ts +5 -0
- package/src/Utilities/{Defaults/DefaultSettingsPanel.js → Helpers/SettingsPanelHelper.js} +16 -1
- package/src/Utilities/Helpers/StyledColumns/BarStylesHelper.d.ts +63 -0
- package/src/Utilities/Helpers/{barChartCellText.js → StyledColumns/BarStylesHelper.js} +48 -47
- package/src/Utilities/Helpers/{StyledColumnGradientHelper.d.ts → StyledColumns/GradientStyleHelper.d.ts} +4 -4
- package/src/Utilities/Helpers/{StyledColumnGradientHelper.js → StyledColumns/GradientStyleHelper.js} +9 -9
- package/src/Utilities/Helpers/{IconStylePresets.d.ts → StyledColumns/IconStyleHelper.d.ts} +6 -1
- package/src/Utilities/Helpers/{IconStylePresets.js → StyledColumns/IconStyleHelper.js} +16 -0
- package/src/Utilities/Helpers/{percentBarPreviewHelper.d.ts → StyledColumns/PercentBarStyleHelper.d.ts} +2 -2
- package/src/Utilities/Helpers/{percentBarPreviewHelper.js → StyledColumns/PercentBarStyleHelper.js} +11 -12
- package/src/Utilities/Helpers/{SparklineOptionsHelper.js → StyledColumns/SparklineStyleHelper.js} +1 -1
- package/src/Utilities/Helpers/StyledColumns/StyledColumnHelper.d.ts +52 -0
- package/src/Utilities/Helpers/StyledColumns/StyledColumnHelper.js +124 -0
- package/src/Utilities/Helpers/TimingHelper.d.ts +34 -0
- package/src/Utilities/{utils/debounce.js → Helpers/TimingHelper.js} +25 -9
- package/src/Utilities/ObjectFactory.js +1 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +2 -0
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +118 -2
- package/src/Utilities/Services/LicenseService/index.js +1 -1
- package/src/Utilities/Services/RowSummaryService.d.ts +1 -1
- package/src/Utilities/Services/RowSummaryService.js +6 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -2
- package/src/View/Alert/Utilities/getAlertType.js +1 -1
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +1 -1
- package/src/View/Alert/Utilities/mapAlertDefinition.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +3 -3
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +3 -3
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertScheduledWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertWizard.js +1 -1
- package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
- package/src/View/Charting/ChartingWizard/AgChargingWizard/PreviewChartSection.js +2 -2
- package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +2 -2
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +2 -2
- package/src/View/Comments/CommentsEditor.js +2 -2
- package/src/View/Comments/CommentsPopup.js +2 -2
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +2 -2
- package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +2 -2
- package/src/View/Components/ColumnFilter/components/FloatingFilterInputList.js +2 -2
- package/src/View/Components/Forms/AdaptableFormControlTextClear.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -2
- package/src/View/Components/Popups/AdaptablePopupAlert.js +2 -2
- package/src/View/Components/Popups/Utilities.js +5 -5
- package/src/View/Components/RangesComponent.d.ts +3 -3
- package/src/View/Components/RangesComponent.js +5 -9
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +3 -3
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +2 -3
- package/src/View/Dashboard/CustomDashboardButton.js +2 -3
- package/src/View/Dashboard/Dashboard.js +2 -2
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +2 -2
- package/src/View/DataChangeHistory/DataChangeHistoryTable.js +2 -2
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +2 -2
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +13 -13
- package/src/View/FormatColumn/Wizard/FormatColumnPreview.js +4 -4
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +2 -2
- package/src/View/Layout/LayoutViewPanel.js +2 -2
- package/src/View/Note/NoteEditor.js +2 -2
- package/src/View/Note/NotePopup.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +7 -7
- package/src/View/QuickSearch/QuickSearchPopup.js +4 -4
- package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -3
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +1 -1
- package/src/View/SpecialColumnSettingsWizardStep.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +16 -20
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +8 -8
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +14 -16
- package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.js +14 -14
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/{BarChartCellTextLayoutEditor.d.ts → BarStyleCellTextLayoutEditor.d.ts} +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarStyleCellTextLayoutEditor.js +37 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/{BarChartCellTextPreview.d.ts → BarStyleCellTextPreview.d.ts} +6 -6
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/{BarChartCellTextPreview.js → BarStyleCellTextPreview.js} +9 -9
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.d.ts +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.js +7 -9
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +7 -7
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview.js +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.js +19 -17
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +7 -7
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +11 -15
- package/src/View/UIHelper.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +2 -2
- package/src/View/Wizard/OnePageWizards.js +3 -1
- package/src/agGrid/AdaptableAgGrid.js +11 -11
- package/src/agGrid/AgGridColumnAdapter.js +30 -29
- package/src/agGrid/AgGridExportAdapter.js +3 -3
- package/src/agGrid/AgGridMenuAdapter.js +129 -4
- package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -2
- package/src/agGrid/cellRenderers/BulletChartRenderer.js +8 -8
- package/src/agGrid/cellRenderers/IconRenderer.js +7 -8
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +9 -9
- package/src/agGrid/cellRenderers/RangeBarRenderer.js +10 -11
- package/src/agGrid/cellRenderers/RatingRenderer.js +6 -6
- package/src/agGrid/editors/AdaptableDateEditor/index.js +3 -3
- package/src/components/ColorPicker/ColorPicker.js +2 -2
- package/src/components/Datepicker/index.js +2 -2
- package/src/components/FormLayout/index.js +2 -2
- package/src/components/OverlayTrigger/index.js +2 -2
- package/src/env.js +2 -2
- package/src/layout-manager/src/isLayoutEqual.js +4 -5
- package/src/metamodel/adaptable.metamodel.d.ts +41 -8
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/VersionUpgrade23.js +2 -2
- package/src/types.d.ts +3 -3
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/AdaptableState/StyledColumns/Common/BarChartCellText.js +0 -7
- package/src/AdaptableState/StyledColumns/Common/BarChartMarker.d.ts +0 -24
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +0 -3
- package/src/Utilities/Helpers/barChartCellText.d.ts +0 -63
- package/src/Utilities/Helpers/iconStyledColumnColumnSupport.d.ts +0 -5
- package/src/Utilities/Helpers/iconStyledColumnColumnSupport.js +0 -18
- package/src/Utilities/Helpers/resolveSettingsPanelNavigation.d.ts +0 -3
- package/src/Utilities/Helpers/resolveSettingsPanelNavigation.js +0 -19
- package/src/Utilities/Helpers/styledColumnRowKindSupport.d.ts +0 -25
- package/src/Utilities/Helpers/styledColumnRowKindSupport.js +0 -70
- package/src/Utilities/Services/CalculatedColumnSyntheticChange.d.ts +0 -4
- package/src/Utilities/Services/CalculatedColumnSyntheticChange.js +0 -120
- package/src/Utilities/utils/chunk.d.ts +0 -6
- package/src/Utilities/utils/chunk.js +0 -20
- package/src/Utilities/utils/clamp.d.ts +0 -5
- package/src/Utilities/utils/clamp.js +0 -10
- package/src/Utilities/utils/cloneDeepWith.d.ts +0 -9
- package/src/Utilities/utils/cloneDeepWith.js +0 -70
- package/src/Utilities/utils/debounce.d.ts +0 -20
- package/src/Utilities/utils/flatten.d.ts +0 -5
- package/src/Utilities/utils/flatten.js +0 -10
- package/src/Utilities/utils/flattenDeep.d.ts +0 -5
- package/src/Utilities/utils/flattenDeep.js +0 -10
- package/src/Utilities/utils/get.d.ts +0 -6
- package/src/Utilities/utils/get.js +0 -38
- package/src/Utilities/utils/index.d.ts +0 -22
- package/src/Utilities/utils/index.js +0 -48
- package/src/Utilities/utils/isArray.d.ts +0 -6
- package/src/Utilities/utils/isArray.js +0 -8
- package/src/Utilities/utils/isEqual.d.ts +0 -5
- package/src/Utilities/utils/isEqual.js +0 -127
- package/src/Utilities/utils/isObject.d.ts +0 -6
- package/src/Utilities/utils/isObject.js +0 -12
- package/src/Utilities/utils/isPlainObject.d.ts +0 -6
- package/src/Utilities/utils/isPlainObject.js +0 -20
- package/src/Utilities/utils/kebabCase.d.ts +0 -5
- package/src/Utilities/utils/kebabCase.js +0 -12
- package/src/Utilities/utils/merge.d.ts +0 -11
- package/src/Utilities/utils/merge.js +0 -44
- package/src/Utilities/utils/mergeWith.d.ts +0 -7
- package/src/Utilities/utils/mergeWith.js +0 -50
- package/src/Utilities/utils/orderBy.d.ts +0 -8
- package/src/Utilities/utils/orderBy.js +0 -33
- package/src/Utilities/utils/parseInt.d.ts +0 -6
- package/src/Utilities/utils/parseInt.js +0 -12
- package/src/Utilities/utils/sentenceCase.d.ts +0 -6
- package/src/Utilities/utils/sentenceCase.js +0 -19
- package/src/Utilities/utils/startCase.d.ts +0 -5
- package/src/Utilities/utils/startCase.js +0 -15
- package/src/Utilities/utils/throttle.d.ts +0 -17
- package/src/Utilities/utils/throttle.js +0 -23
- package/src/Utilities/utils/toNumber.d.ts +0 -5
- package/src/Utilities/utils/toNumber.js +0 -42
- package/src/Utilities/utils/uniq.d.ts +0 -7
- package/src/Utilities/utils/uniq.js +0 -12
- package/src/Utilities/utils/uniqBy.d.ts +0 -8
- package/src/Utilities/utils/uniqBy.js +0 -25
- package/src/Utilities/utils/words.d.ts +0 -7
- package/src/Utilities/utils/words.js +0 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarChartCellTextLayoutEditor.js +0 -40
- package/src/agGrid/buildValueAggregationMenuItem.d.ts +0 -19
- package/src/agGrid/buildValueAggregationMenuItem.js +0 -114
- package/src/agGrid/cellRenderers/shouldRenderStyledColumnOnRow.d.ts +0 -30
- package/src/agGrid/cellRenderers/shouldRenderStyledColumnOnRow.js +0 -58
- package/src/agGrid/createAgGridIcon.d.ts +0 -10
- package/src/agGrid/createAgGridIcon.js +0 -19
- /package/src/{Utilities → AdaptableState/Aggregations}/only.d.ts +0 -0
- /package/src/{Utilities → AdaptableState/Aggregations}/only.js +0 -0
- /package/src/{Utilities → AdaptableState/Aggregations}/weightedAverage.d.ts +0 -0
- /package/src/AdaptableState/StyledColumns/Common/{BarChartMarker.js → BarStyleProperties.js} +0 -0
- /package/src/Utilities/Helpers/{ActionColumnWidthHelper.d.ts → ActionColumnHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{ActionColumnWidthHelper.js → ActionColumnHelper.js} +0 -0
- /package/src/Utilities/Helpers/{alertFormHelper.d.ts → AlertHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{chartingHelper.d.ts → ChartHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{chartingHelper.js → ChartHelper.js} +0 -0
- /package/src/Utilities/Helpers/{FormatHelper.d.ts → DisplayFormatHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{plusMinusTriggerKeys.d.ts → PlusMinusHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{plusMinusTriggerKeys.js → PlusMinusHelper.js} +0 -0
- /package/src/Utilities/Helpers/{QuickSearchStyleHelper.d.ts → QuickSearchHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{ScheduleJobManager.js → Scheduling/ScheduleJobManager.js} +0 -0
- /package/src/Utilities/Helpers/{ScheduleJobRunner.js → Scheduling/ScheduleJobRunner.js} +0 -0
- /package/src/Utilities/Helpers/{SparklineOptionsHelper.d.ts → StyledColumns/SparklineStyleHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{ThemeHelpers.d.ts → ThemeHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{ThemeHelpers.js → ThemeHelper.js} +0 -0
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getBulletChartRendererForColumn = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
6
|
+
const NumberExtensions_1 = require("../../Utilities/Extensions/NumberExtensions");
|
|
7
|
+
const BarStylesHelper_1 = require("../../Utilities/Helpers/StyledColumns/BarStylesHelper");
|
|
8
|
+
const StyledColumnHelper_1 = require("../../Utilities/Helpers/StyledColumns/StyledColumnHelper");
|
|
9
9
|
const SVG_NS = 'http://www.w3.org/2000/svg';
|
|
10
10
|
const DEFAULT_BAR_HEIGHT = 8;
|
|
11
11
|
const DEFAULT_BAND_HEIGHT = 14;
|
|
@@ -106,7 +106,7 @@ const toFraction = (value, min, max) => {
|
|
|
106
106
|
if (max === min) {
|
|
107
107
|
return 0;
|
|
108
108
|
}
|
|
109
|
-
return (0,
|
|
109
|
+
return (0, NumberExtensions_1.clamp)((value - min) / (max - min), 0, 1);
|
|
110
110
|
};
|
|
111
111
|
const getBulletChartRendererForColumn = (styledColumn, abColumn, api) => {
|
|
112
112
|
if (!styledColumn.BulletChartStyle) {
|
|
@@ -117,7 +117,7 @@ const getBulletChartRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
117
117
|
eGui;
|
|
118
118
|
init(params) {
|
|
119
119
|
// Defer to the shared row-scope helper.
|
|
120
|
-
if (!(0,
|
|
120
|
+
if (!(0, StyledColumnHelper_1.shouldRenderStyledColumnOnRow)(styledColumn, params.node, api)) {
|
|
121
121
|
if (params.value != undefined) {
|
|
122
122
|
this.eGui = document.createElement('div');
|
|
123
123
|
this.eGui.append(String(params.value));
|
|
@@ -159,7 +159,7 @@ const getBulletChartRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
159
159
|
const barThickness = bulletStyle.Bar?.Height ?? DEFAULT_BAR_HEIGHT;
|
|
160
160
|
const bandThickness = Math.max(barThickness + 6, DEFAULT_BAND_HEIGHT);
|
|
161
161
|
const cellTextProperties = bulletStyle.CellTextProperties;
|
|
162
|
-
const hasCellText = (0,
|
|
162
|
+
const hasCellText = (0, BarStylesHelper_1.hasBarStyleCellTextConfigured)(cellTextProperties);
|
|
163
163
|
// Map a 0..1 value fraction onto the long-axis viewBox (0..100).
|
|
164
164
|
// In horizontal: 0 -> left, 1 -> right.
|
|
165
165
|
// In vertical: 0 -> bottom, 1 -> top (SVG y origin is at the top so
|
|
@@ -285,8 +285,8 @@ const getBulletChartRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
285
285
|
// `valueFormatter` returns the raw value (a number here), so coerce
|
|
286
286
|
// to string before it flows into the helpers.
|
|
287
287
|
const formattedCellValue = String(params.formatValue?.(cellValue) ?? cellValue);
|
|
288
|
-
const labels = (0,
|
|
289
|
-
(0,
|
|
288
|
+
const labels = (0, BarStylesHelper_1.buildBarStyleCellTextLabels)(cellTextProperties, formattedCellValue, `${(valueFraction * 100).toFixed(0)}%`);
|
|
289
|
+
(0, BarStylesHelper_1.mountBarStyleCellText)({
|
|
290
290
|
wrapperEl: this.eGui,
|
|
291
291
|
mergedOverlayEl: svgContainer,
|
|
292
292
|
textClassName: 'ab-BulletChart__text',
|
|
@@ -6,9 +6,8 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const Icon_1 = require("../../components/Icon");
|
|
7
7
|
const renderWithAdaptableContext_1 = require("../../View/renderWithAdaptableContext");
|
|
8
8
|
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const iconStyledColumnColumnSupport_1 = require("../../Utilities/Helpers/iconStyledColumnColumnSupport");
|
|
9
|
+
const IconStyleHelper_1 = require("../../Utilities/Helpers/StyledColumns/IconStyleHelper");
|
|
10
|
+
const StyledColumnHelper_1 = require("../../Utilities/Helpers/StyledColumns/StyledColumnHelper");
|
|
12
11
|
const AdaptableLogger_1 = require("../AdaptableLogger");
|
|
13
12
|
const DEFAULT_SIZE = 18;
|
|
14
13
|
const DEFAULT_GAP = 4;
|
|
@@ -20,7 +19,7 @@ const normaliseIconMappingKey = (key, matchMode) => {
|
|
|
20
19
|
};
|
|
21
20
|
const resolveIconStyleMappingParts = (iconStyle) => {
|
|
22
21
|
const presetMappings = iconStyle.Preset
|
|
23
|
-
? (0,
|
|
22
|
+
? (0, IconStyleHelper_1.getIconStylePresetMappings)(iconStyle.Preset)
|
|
24
23
|
: [];
|
|
25
24
|
const userMappings = iconStyle.Mappings ?? [];
|
|
26
25
|
if (presetMappings.length === 0 || userMappings.length === 0) {
|
|
@@ -54,7 +53,7 @@ const resolveEffectiveIconStyleMappings = (iconStyle) => {
|
|
|
54
53
|
if (presetMappings.length === 0)
|
|
55
54
|
return userMappings;
|
|
56
55
|
if (userMappings.length === 0) {
|
|
57
|
-
return iconStyle.Preset ? (0,
|
|
56
|
+
return iconStyle.Preset ? (0, IconStyleHelper_1.getIconStylePresetMappings)(iconStyle.Preset) : [];
|
|
58
57
|
}
|
|
59
58
|
return [...presetMappings, ...userMappings];
|
|
60
59
|
};
|
|
@@ -72,7 +71,7 @@ const resolveIconStyleMappingsForSummaryPreview = (iconStyle) => {
|
|
|
72
71
|
if (presetMappings.length > 0) {
|
|
73
72
|
return presetMappings;
|
|
74
73
|
}
|
|
75
|
-
return iconStyle.Preset ? (0,
|
|
74
|
+
return iconStyle.Preset ? (0, IconStyleHelper_1.getIconStylePresetMappings)(iconStyle.Preset) : [];
|
|
76
75
|
}
|
|
77
76
|
if (presetMappings.length === 0) {
|
|
78
77
|
return userMappings;
|
|
@@ -192,7 +191,7 @@ const getIconRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
192
191
|
if (!styledColumn.IconStyle) {
|
|
193
192
|
return;
|
|
194
193
|
}
|
|
195
|
-
if ((0,
|
|
194
|
+
if ((0, IconStyleHelper_1.isUnsupportedColumnDataTypeForIconStyle)(abColumn.dataType)) {
|
|
196
195
|
(0, AdaptableLogger_1.errorOnce)(`[AdapTable] Icon Styled Column (“${styledColumn.Name || styledColumn.ColumnId || 'unnamed'}” on column ${styledColumn.ColumnId}) is not supported when the column data type is ${abColumn.dataType}. Use Badge Style for array columns, or remove IconStyle from this column.`);
|
|
197
196
|
return undefined;
|
|
198
197
|
}
|
|
@@ -224,7 +223,7 @@ const getIconRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
224
223
|
// Defer to the shared row-scope helper so behaviour is uniform
|
|
225
224
|
// across every Styled Column type and `StyledColumn.RowScope` can
|
|
226
225
|
// override the default ("leaf rows only" for Icon).
|
|
227
|
-
if (!(0,
|
|
226
|
+
if (!(0, StyledColumnHelper_1.shouldRenderStyledColumnOnRow)(styledColumn, params.node, adaptableApi)) {
|
|
228
227
|
if (params.value != undefined) {
|
|
229
228
|
this.eGui.append(String(params.value));
|
|
230
229
|
}
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getPercentBarRendererForColumn = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
6
|
+
const NumberExtensions_1 = require("../../Utilities/Extensions/NumberExtensions");
|
|
7
|
+
const StyledColumnHelper_1 = require("../../Utilities/Helpers/StyledColumns/StyledColumnHelper");
|
|
8
|
+
const BarStylesHelper_1 = require("../../Utilities/Helpers/StyledColumns/BarStylesHelper");
|
|
9
9
|
/**
|
|
10
10
|
* Resolve the origin value (in the same numeric space as `min`/`max`) the bar
|
|
11
11
|
* should grow from.
|
|
@@ -36,7 +36,7 @@ const toFraction = (value, min, max) => {
|
|
|
36
36
|
if (max === min) {
|
|
37
37
|
return 0;
|
|
38
38
|
}
|
|
39
|
-
return (0,
|
|
39
|
+
return (0, NumberExtensions_1.clamp)((value - min) / (max - min), 0, 1);
|
|
40
40
|
};
|
|
41
41
|
/** Column-comparison mode: centred 50% axis when Origin is Auto or Zero. */
|
|
42
42
|
const columnComparisonUsesCentredAxis = (origin) => {
|
|
@@ -56,7 +56,7 @@ const getPercentBarRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
56
56
|
// Defer to the shared row-scope helper. Default behaviour
|
|
57
57
|
// ("group rows fall back to plain text") is preserved when
|
|
58
58
|
// `RowScope` is unset.
|
|
59
|
-
if (!(0,
|
|
59
|
+
if (!(0, StyledColumnHelper_1.shouldRenderStyledColumnOnRow)(styledColumn, params.node, api)) {
|
|
60
60
|
if (params.value != undefined) {
|
|
61
61
|
this.eGui = document.createElement('div');
|
|
62
62
|
this.eGui.append(String(params.value));
|
|
@@ -123,7 +123,7 @@ const getPercentBarRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
123
123
|
}
|
|
124
124
|
else {
|
|
125
125
|
// Linear value-on-scale.
|
|
126
|
-
percentageValue = (((0,
|
|
126
|
+
percentageValue = (((0, NumberExtensions_1.clamp)(numericValue, min, max) - min) / (max - min)) * 100;
|
|
127
127
|
const origin = resolveOrigin(percentBarStyle, numericValue, min, max);
|
|
128
128
|
const valueFrac = toFraction(numericValue, min, max);
|
|
129
129
|
const originFrac = toFraction(origin, min, max);
|
|
@@ -145,7 +145,7 @@ const getPercentBarRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
145
145
|
}
|
|
146
146
|
// ----- Build the DOM -------------------------------------------------
|
|
147
147
|
const cellTextProperties = percentBarStyle.CellTextProperties;
|
|
148
|
-
const hasCellText = (0,
|
|
148
|
+
const hasCellText = (0, BarStylesHelper_1.hasBarStyleCellTextConfigured)(cellTextProperties);
|
|
149
149
|
// Wrapper always fills the cell. The bar is the flex-grow child so it
|
|
150
150
|
// claims whatever space the (compact) text rows leave, with a small
|
|
151
151
|
// floor to stay visible even on short rows.
|
|
@@ -193,8 +193,8 @@ const getPercentBarRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
193
193
|
// columns), which then propagates through the helpers as a non-string
|
|
194
194
|
// and breaks string-only operations (e.g. `.length` checks).
|
|
195
195
|
const formattedCellValue = String(params.formatValue?.(rawCellValue) ?? rawCellValue);
|
|
196
|
-
const labels = (0,
|
|
197
|
-
(0,
|
|
196
|
+
const labels = (0, BarStylesHelper_1.buildBarStyleCellTextLabels)(cellTextProperties, formattedCellValue, `${percentageValue.toFixed(0)}%`);
|
|
197
|
+
(0, BarStylesHelper_1.mountBarStyleCellText)({
|
|
198
198
|
wrapperEl: this.eGui,
|
|
199
199
|
mergedOverlayEl: barEl,
|
|
200
200
|
textClassName: 'ab-PercentBar__text',
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRangeBarRendererForColumn = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
6
|
+
const NumberExtensions_1 = require("../../Utilities/Extensions/NumberExtensions");
|
|
7
|
+
const BarStylesHelper_1 = require("../../Utilities/Helpers/StyledColumns/BarStylesHelper");
|
|
8
|
+
const StyledColumnHelper_1 = require("../../Utilities/Helpers/StyledColumns/StyledColumnHelper");
|
|
9
9
|
const SVG_NS = 'http://www.w3.org/2000/svg';
|
|
10
10
|
const DEFAULT_TRACK_HEIGHT = 4;
|
|
11
11
|
const DEFAULT_BAND_HEIGHT = 14;
|
|
@@ -51,8 +51,7 @@ const normaliseMarker = (override, defaults) => {
|
|
|
51
51
|
return {
|
|
52
52
|
Shape: shape,
|
|
53
53
|
Color: override?.Color ?? defaults.Color,
|
|
54
|
-
Size: override?.Size ??
|
|
55
|
-
(shape === 'Line' ? DEFAULT_LINE_MARKER_THICKNESS : defaults.Size),
|
|
54
|
+
Size: override?.Size ?? (shape === 'Line' ? DEFAULT_LINE_MARKER_THICKNESS : defaults.Size),
|
|
56
55
|
};
|
|
57
56
|
};
|
|
58
57
|
/**
|
|
@@ -64,7 +63,7 @@ const toFraction = (value, min, max) => {
|
|
|
64
63
|
if (max === min) {
|
|
65
64
|
return 0;
|
|
66
65
|
}
|
|
67
|
-
return (0,
|
|
66
|
+
return (0, NumberExtensions_1.clamp)((value - min) / (max - min), 0, 1);
|
|
68
67
|
};
|
|
69
68
|
const getRangeBarRendererForColumn = (styledColumn, abColumn, api) => {
|
|
70
69
|
if (!styledColumn.RangeBarStyle) {
|
|
@@ -75,7 +74,7 @@ const getRangeBarRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
75
74
|
eGui;
|
|
76
75
|
init(params) {
|
|
77
76
|
// Defer to the shared row-scope helper.
|
|
78
|
-
if (!(0,
|
|
77
|
+
if (!(0, StyledColumnHelper_1.shouldRenderStyledColumnOnRow)(styledColumn, params.node, api)) {
|
|
79
78
|
if (params.value != undefined) {
|
|
80
79
|
this.eGui = document.createElement('div');
|
|
81
80
|
this.eGui.append(String(params.value));
|
|
@@ -128,7 +127,7 @@ const getRangeBarRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
128
127
|
const trackThickness = trackProperties?.Height ?? DEFAULT_TRACK_HEIGHT;
|
|
129
128
|
const bandThickness = Math.max(trackThickness + 6, DEFAULT_BAND_HEIGHT);
|
|
130
129
|
const cellTextProperties = rangeStyle.CellTextProperties;
|
|
131
|
-
const hasCellText = (0,
|
|
130
|
+
const hasCellText = (0, BarStylesHelper_1.hasBarStyleCellTextConfigured)(cellTextProperties);
|
|
132
131
|
// Map a 0..1 fraction onto the long-axis viewBox (0..100). Vertical
|
|
133
132
|
// orientation inverts so that lower values appear at the bottom of
|
|
134
133
|
// the cell, matching user expectation.
|
|
@@ -261,13 +260,13 @@ const getRangeBarRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
261
260
|
svgContainer.appendChild(svg);
|
|
262
261
|
this.eGui.appendChild(svgContainer);
|
|
263
262
|
if (hasCellText) {
|
|
264
|
-
const pct = (0,
|
|
263
|
+
const pct = (0, NumberExtensions_1.clamp)((numericValue - min) / (max - min), 0, 1) * 100;
|
|
265
264
|
// See PercentBarRenderer: `params.formatValue` on a column without a
|
|
266
265
|
// `valueFormatter` returns the raw value (a number here), so coerce
|
|
267
266
|
// to string before it flows into the helpers.
|
|
268
267
|
const formattedCellValue = String(params.formatValue?.(numericValue) ?? numericValue);
|
|
269
|
-
const labels = (0,
|
|
270
|
-
(0,
|
|
268
|
+
const labels = (0, BarStylesHelper_1.buildBarStyleCellTextLabels)(cellTextProperties, formattedCellValue, `${pct.toFixed(0)}%`);
|
|
269
|
+
(0, BarStylesHelper_1.mountBarStyleCellText)({
|
|
271
270
|
wrapperEl: this.eGui,
|
|
272
271
|
mergedOverlayEl: svgContainer,
|
|
273
272
|
textClassName: 'ab-RangeBar__text',
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRatingRendererForColumn = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
6
|
-
const
|
|
7
|
-
const
|
|
6
|
+
const NumberExtensions_1 = require("../../Utilities/Extensions/NumberExtensions");
|
|
7
|
+
const StyledColumnHelper_1 = require("../../Utilities/Helpers/StyledColumns/StyledColumnHelper");
|
|
8
8
|
const SVG_NS = 'http://www.w3.org/2000/svg';
|
|
9
9
|
const DEFAULT_MAX = 5;
|
|
10
10
|
const DEFAULT_SIZE = 14;
|
|
@@ -71,7 +71,7 @@ const createIconElement = (shape, fill, filledColor, emptyColor, size, uid) => {
|
|
|
71
71
|
const clipRect = document.createElementNS(SVG_NS, 'rect');
|
|
72
72
|
clipRect.setAttribute('x', '0');
|
|
73
73
|
clipRect.setAttribute('y', '0');
|
|
74
|
-
clipRect.setAttribute('width', String(24 * (0,
|
|
74
|
+
clipRect.setAttribute('width', String(24 * (0, NumberExtensions_1.clamp)(fill, 0, 1)));
|
|
75
75
|
clipRect.setAttribute('height', '24');
|
|
76
76
|
clipPath.appendChild(clipRect);
|
|
77
77
|
defs.appendChild(clipPath);
|
|
@@ -95,7 +95,7 @@ const getRatingRendererForColumn = (styledColumn, _abColumn, api) => {
|
|
|
95
95
|
// Defer to the shared row-scope helper. Default (no `RowScope`)
|
|
96
96
|
// matches the previous "group rows only fall back to plain text"
|
|
97
97
|
// behaviour; users can opt other row kinds in / out explicitly.
|
|
98
|
-
if (!(0,
|
|
98
|
+
if (!(0, StyledColumnHelper_1.shouldRenderStyledColumnOnRow)(styledColumn, params.node, api)) {
|
|
99
99
|
this.eGui = document.createElement('div');
|
|
100
100
|
if (params.value != undefined) {
|
|
101
101
|
this.eGui.append(String(params.value));
|
|
@@ -118,7 +118,7 @@ const getRatingRendererForColumn = (styledColumn, _abColumn, api) => {
|
|
|
118
118
|
const emptyColor = ratingStyle.EmptyColor ?? DEFAULT_EMPTY_COLOR;
|
|
119
119
|
const showValue = ratingStyle.ShowValue ?? false;
|
|
120
120
|
// Quantise the value if half-icons aren't allowed.
|
|
121
|
-
const clampedValue = (0,
|
|
121
|
+
const clampedValue = (0, NumberExtensions_1.clamp)(value, 0, max);
|
|
122
122
|
const effectiveValue = allowHalf
|
|
123
123
|
? clampedValue
|
|
124
124
|
: Math.round(clampedValue);
|
|
@@ -136,7 +136,7 @@ const getRatingRendererForColumn = (styledColumn, _abColumn, api) => {
|
|
|
136
136
|
for (let i = 0; i < max; i++) {
|
|
137
137
|
// Fill ratio for icon `i`: full when value >= i+1, partial when
|
|
138
138
|
// value falls between i and i+1, empty otherwise.
|
|
139
|
-
const fill = (0,
|
|
139
|
+
const fill = (0, NumberExtensions_1.clamp)(effectiveValue - i, 0, 1);
|
|
140
140
|
const iconEl = createIconElement(icon, fill, filledColor, emptyColor, size, `${uid}-${i}`);
|
|
141
141
|
iconEl.setAttribute('class', 'ab-Rating__icon');
|
|
142
142
|
this.eGui.appendChild(iconEl);
|
|
@@ -6,7 +6,7 @@ const renderWithAdaptableContext_1 = require("../../../View/renderWithAdaptableC
|
|
|
6
6
|
const InternalAdaptableDateEditor_1 = require("./InternalAdaptableDateEditor");
|
|
7
7
|
const ag_grid_enterprise_1 = require("ag-grid-enterprise");
|
|
8
8
|
const react_1 = require("react");
|
|
9
|
-
const
|
|
9
|
+
const DisplayFormatHelper_1 = require("../../../Utilities/Helpers/DisplayFormatHelper");
|
|
10
10
|
function shouldClearExistingValue(params) {
|
|
11
11
|
return params.eventKey === ag_grid_enterprise_1.KeyCode.BACKSPACE || params.eventKey === ag_grid_enterprise_1.KeyCode.DELETE;
|
|
12
12
|
}
|
|
@@ -56,7 +56,7 @@ exports.AdaptableReactDateEditor = (0, react_1.forwardRef)((props, ref) => {
|
|
|
56
56
|
if (!Pattern) {
|
|
57
57
|
return value;
|
|
58
58
|
}
|
|
59
|
-
return (0,
|
|
59
|
+
return (0, DisplayFormatHelper_1.DateFormatter)(value, {
|
|
60
60
|
Pattern,
|
|
61
61
|
});
|
|
62
62
|
},
|
|
@@ -149,7 +149,7 @@ class AdaptableDateEditor {
|
|
|
149
149
|
if (!Pattern) {
|
|
150
150
|
return value;
|
|
151
151
|
}
|
|
152
|
-
return (0,
|
|
152
|
+
return (0, DisplayFormatHelper_1.DateFormatter)(value, {
|
|
153
153
|
Pattern,
|
|
154
154
|
});
|
|
155
155
|
},
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
6
|
const React = tslib_1.__importStar(require("react"));
|
|
7
7
|
const react_1 = require("react");
|
|
8
|
-
const
|
|
8
|
+
const TimingHelper_1 = require("../../Utilities/Helpers/TimingHelper");
|
|
9
9
|
const utils_1 = require("../../lib/utils");
|
|
10
10
|
const Input_1 = tslib_1.__importDefault(require("../Input"));
|
|
11
11
|
const StyleHelper_1 = require("../../Utilities/Helpers/StyleHelper");
|
|
@@ -17,7 +17,7 @@ exports.ColorPicker = React.forwardRef((props, ref) => {
|
|
|
17
17
|
let { value, includeAlpha = true, className, ...restProps } = props;
|
|
18
18
|
// Create a debounced version of onChange
|
|
19
19
|
// we need this because moving the mouse A LOT in the custom color picker can break the React rendering
|
|
20
|
-
const debouncedOnChange = (0, react_1.useCallback)((0,
|
|
20
|
+
const debouncedOnChange = (0, react_1.useCallback)((0, TimingHelper_1.debounce)((color) => {
|
|
21
21
|
props.onChange(color);
|
|
22
22
|
}, 30), [props.onChange]);
|
|
23
23
|
// Clean up the debounce on unmount
|
|
@@ -8,7 +8,7 @@ const react_1 = require("react");
|
|
|
8
8
|
const useProperty_1 = tslib_1.__importDefault(require("../utils/useProperty"));
|
|
9
9
|
const SimpleButton_1 = tslib_1.__importDefault(require("../SimpleButton"));
|
|
10
10
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
11
|
-
const
|
|
11
|
+
const DisplayFormatHelper_1 = require("../../Utilities/Helpers/DisplayFormatHelper");
|
|
12
12
|
const DatepickerContext_1 = require("./DatepickerContext");
|
|
13
13
|
const AdaptableDateInlineInput_1 = require("../../View/Components/AdaptableInput/AdaptableDateInlineInput");
|
|
14
14
|
const date_fns_1 = require("date-fns");
|
|
@@ -66,7 +66,7 @@ exports.Datepicker = React.forwardRef((props, ref) => {
|
|
|
66
66
|
setValue(next);
|
|
67
67
|
setMonth(next ?? new Date());
|
|
68
68
|
};
|
|
69
|
-
const inputValue = (0,
|
|
69
|
+
const inputValue = (0, DisplayFormatHelper_1.DateFormatter)(value, { Pattern: dateProps.format }) ?? '';
|
|
70
70
|
// ── DOM refs for focus ownership ────────────────────────────────
|
|
71
71
|
const triggerRef = React.useRef(null);
|
|
72
72
|
const popupRef = React.useRef(null);
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
6
|
const React = tslib_1.__importStar(require("react"));
|
|
7
7
|
const react_1 = require("react");
|
|
8
|
-
const
|
|
8
|
+
const ObjectExtensions_1 = require("../../Utilities/Extensions/ObjectExtensions");
|
|
9
9
|
const join_1 = tslib_1.__importDefault(require("../utils/join"));
|
|
10
10
|
const Flex_1 = require("../Flex");
|
|
11
11
|
const FormLayoutContext = (0, react_1.createContext)(null);
|
|
@@ -27,7 +27,7 @@ const FormLayout = (props) => {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
if (defaultColumns[c.name]) {
|
|
30
|
-
c = (0,
|
|
30
|
+
c = (0, ObjectExtensions_1.merge)({}, defaultColumns[c.name], c);
|
|
31
31
|
}
|
|
32
32
|
c.component = c.component === undefined ? defaultComponent : c.component;
|
|
33
33
|
return c;
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
6
|
const React = tslib_1.__importStar(require("react"));
|
|
7
7
|
const react_1 = require("react");
|
|
8
|
-
const
|
|
8
|
+
const TimingHelper_1 = require("../../Utilities/Helpers/TimingHelper");
|
|
9
9
|
const batchUpdate_1 = tslib_1.__importDefault(require("../utils/batchUpdate"));
|
|
10
10
|
const selectParent_1 = tslib_1.__importDefault(require("../utils/selectParent"));
|
|
11
11
|
const useProperty_1 = tslib_1.__importDefault(require("../utils/useProperty"));
|
|
@@ -100,7 +100,7 @@ const OverlayTrigger = React.forwardRef((givenProps, ref) => {
|
|
|
100
100
|
// visible state may quickly change from true -> false -> true
|
|
101
101
|
// when moving the mouse cursor from the trigger to the overlay
|
|
102
102
|
// for this case we debounce the visible change for a very small amount of time
|
|
103
|
-
(0,
|
|
103
|
+
(0, TimingHelper_1.debounce)((visible) => {
|
|
104
104
|
// if (!visible) {
|
|
105
105
|
// return;
|
|
106
106
|
// }
|
package/src/env.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
NEXT_PUBLIC_INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
|
|
5
|
-
PUBLISH_TIMESTAMP:
|
|
6
|
-
VERSION: "23.0.0-canary.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1782138914072 || Date.now(),
|
|
6
|
+
VERSION: "23.0.0-canary.9" || '--current-version--',
|
|
7
7
|
};
|
|
@@ -4,8 +4,7 @@ exports.logChanges = exports.getChanges = void 0;
|
|
|
4
4
|
exports.isTableLayoutEqual = isTableLayoutEqual;
|
|
5
5
|
exports.isPivotLayoutEqual = isPivotLayoutEqual;
|
|
6
6
|
exports.isLayoutEqual = isLayoutEqual;
|
|
7
|
-
const
|
|
8
|
-
const isEqual_1 = tslib_1.__importDefault(require("../../Utilities/utils/isEqual"));
|
|
7
|
+
const ObjectExtensions_1 = require("../../Utilities/Extensions/ObjectExtensions");
|
|
9
8
|
const infinite_react_1 = require("@infinite-table/infinite-react");
|
|
10
9
|
const isPivotLayoutModel_1 = require("./isPivotLayoutModel");
|
|
11
10
|
const normalizeLayoutModel_1 = require("./normalizeLayoutModel");
|
|
@@ -25,7 +24,7 @@ const getChanges = (l1, l2) => {
|
|
|
25
24
|
const allKeys = new Set([...k1, ...k2]);
|
|
26
25
|
const changes = [];
|
|
27
26
|
for (const key of allKeys) {
|
|
28
|
-
if (!(0,
|
|
27
|
+
if (!(0, ObjectExtensions_1.isEqual)(l1[key], l2[key])) {
|
|
29
28
|
changes.push({ key, value1: l1[key], value2: l2[key] });
|
|
30
29
|
}
|
|
31
30
|
}
|
|
@@ -48,7 +47,7 @@ function isTableLayoutEqual(l1, l2) {
|
|
|
48
47
|
l2 = (0, normalizeLayoutModel_1.normalizeTableLayoutModel)(l2);
|
|
49
48
|
clearIgnoredProperties(l1);
|
|
50
49
|
clearIgnoredProperties(l2);
|
|
51
|
-
const res = (0,
|
|
50
|
+
const res = (0, ObjectExtensions_1.isEqual)(l1, l2);
|
|
52
51
|
if (!res) {
|
|
53
52
|
(0, exports.logChanges)(l1, l2);
|
|
54
53
|
}
|
|
@@ -73,7 +72,7 @@ function isPivotLayoutEqual(l1, l2) {
|
|
|
73
72
|
l2 = (0, normalizeLayoutModel_1.normalizePivotLayoutModel)(l2);
|
|
74
73
|
clearIgnoredProperties(l1);
|
|
75
74
|
clearIgnoredProperties(l2);
|
|
76
|
-
const res = (0,
|
|
75
|
+
const res = (0, ObjectExtensions_1.isEqual)(l1, l2);
|
|
77
76
|
if (!res) {
|
|
78
77
|
(0, exports.logChanges)(l1, l2);
|
|
79
78
|
}
|
|
@@ -1170,7 +1170,40 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
1170
1170
|
BadgeStylePredicate: {
|
|
1171
1171
|
k: string;
|
|
1172
1172
|
};
|
|
1173
|
-
|
|
1173
|
+
BarStyleCellTextHorizontalAlignment: {
|
|
1174
|
+
k: string;
|
|
1175
|
+
};
|
|
1176
|
+
BarStyleCellTextLayout: {
|
|
1177
|
+
k: string;
|
|
1178
|
+
p: {
|
|
1179
|
+
n: string;
|
|
1180
|
+
k: string;
|
|
1181
|
+
o: boolean;
|
|
1182
|
+
r: string;
|
|
1183
|
+
}[];
|
|
1184
|
+
};
|
|
1185
|
+
BarStyleCellTextPlacement: {
|
|
1186
|
+
k: string;
|
|
1187
|
+
p: {
|
|
1188
|
+
n: string;
|
|
1189
|
+
k: string;
|
|
1190
|
+
o: boolean;
|
|
1191
|
+
r: string;
|
|
1192
|
+
}[];
|
|
1193
|
+
};
|
|
1194
|
+
BarStyleCellTextProperties: {
|
|
1195
|
+
k: string;
|
|
1196
|
+
p: {
|
|
1197
|
+
n: string;
|
|
1198
|
+
k: string;
|
|
1199
|
+
o: boolean;
|
|
1200
|
+
r: string;
|
|
1201
|
+
}[];
|
|
1202
|
+
};
|
|
1203
|
+
BarStyleCellTextVerticalAlignment: {
|
|
1204
|
+
k: string;
|
|
1205
|
+
};
|
|
1206
|
+
BarStyleMarker: {
|
|
1174
1207
|
k: string;
|
|
1175
1208
|
p: {
|
|
1176
1209
|
n: string;
|
|
@@ -3226,13 +3259,6 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
3226
3259
|
r: string;
|
|
3227
3260
|
})[];
|
|
3228
3261
|
};
|
|
3229
|
-
GradientZeroCentredColors: {
|
|
3230
|
-
k: string;
|
|
3231
|
-
p: {
|
|
3232
|
-
n: string;
|
|
3233
|
-
k: string;
|
|
3234
|
-
}[];
|
|
3235
|
-
};
|
|
3236
3262
|
GridApi: {
|
|
3237
3263
|
k: string;
|
|
3238
3264
|
p: {
|
|
@@ -5269,4 +5295,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
5269
5295
|
WindowSize: {
|
|
5270
5296
|
k: string;
|
|
5271
5297
|
};
|
|
5298
|
+
ZeroCentredColors: {
|
|
5299
|
+
k: string;
|
|
5300
|
+
p: {
|
|
5301
|
+
n: string;
|
|
5302
|
+
k: string;
|
|
5303
|
+
}[];
|
|
5304
|
+
};
|
|
5272
5305
|
};
|