@adaptabletools/adaptable 22.0.0-canary.11 → 22.0.0-canary.13
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 +3 -12
- package/index.css.map +1 -1
- package/index.d.ts +8 -8
- package/index.js +8 -8
- package/package.json +1 -4
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +3 -3
- package/src/AdaptableState/Common/AdaptableForm.d.ts +1 -1
- package/src/AdaptableState/InitialState.d.ts +1 -1
- package/src/AdaptableState/UserInterfaceState.d.ts +1 -1
- package/src/Api/ColumnApi.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +4 -4
- package/src/Api/Implementation/LayoutHelpers.js +1 -1
- package/src/Api/Internal/ColumnInternalApi.d.ts +1 -1
- package/src/Api/Internal/ColumnInternalApi.js +5 -3
- package/src/Api/Internal/EventInternalApi.js +1 -1
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +1 -1
- package/src/Redux/Store/AdaptableReduxMerger.js +5 -6
- package/src/Strategy/FormatColumnModule.js +2 -2
- package/src/Strategy/LayoutModule.js +1 -1
- package/src/Strategy/StyledColumnModule.js +14 -6
- package/src/Strategy/TeamSharingModule.js +2 -2
- package/src/Strategy/Utilities/FormatColumn/{getFormatColumnSettingsTargetItems.d.ts → getFormatColumnRowTargetItems.d.ts} +1 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnRowTargetItems.js +22 -0
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +5 -13
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +1 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +1 -1
- package/src/Utilities/Extensions/StringExtensions.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +2 -2
- package/src/Utilities/Helpers/FormatHelper.js +1 -1
- package/src/Utilities/Services/LicenseService/index.js +1 -1
- package/src/Utilities/Services/RowSummaryService.d.ts +1 -1
- package/src/Utilities/Services/RowSummaryService.js +2 -2
- package/src/Utilities/getScopeViewItems.js +1 -1
- package/src/Utilities/utils/chunk.d.ts +6 -0
- package/src/Utilities/utils/chunk.js +17 -0
- package/src/Utilities/utils/clamp.d.ts +5 -0
- package/src/Utilities/utils/clamp.js +7 -0
- package/src/Utilities/utils/cloneDeepWith.d.ts +9 -0
- package/src/Utilities/utils/cloneDeepWith.js +67 -0
- package/src/Utilities/utils/debounce.d.ts +20 -0
- package/src/Utilities/utils/debounce.js +121 -0
- package/src/Utilities/utils/flatten.d.ts +5 -0
- package/src/Utilities/utils/flatten.js +7 -0
- package/src/Utilities/utils/flattenDeep.d.ts +5 -0
- package/src/Utilities/utils/flattenDeep.js +7 -0
- package/src/Utilities/utils/get.d.ts +6 -0
- package/src/Utilities/utils/get.js +35 -0
- package/src/Utilities/utils/index.d.ts +22 -0
- package/src/Utilities/utils/index.js +22 -0
- package/src/Utilities/utils/isArray.d.ts +6 -0
- package/src/Utilities/utils/isArray.js +6 -0
- package/src/Utilities/utils/isEqual.d.ts +5 -0
- package/src/Utilities/utils/isEqual.js +124 -0
- package/src/Utilities/utils/isObject.d.ts +6 -0
- package/src/Utilities/utils/isObject.js +9 -0
- package/src/Utilities/utils/isPlainObject.d.ts +6 -0
- package/src/Utilities/utils/isPlainObject.js +17 -0
- package/src/Utilities/utils/kebabCase.d.ts +5 -0
- package/src/Utilities/utils/kebabCase.js +8 -0
- package/src/Utilities/utils/merge.d.ts +11 -0
- package/src/Utilities/utils/merge.js +40 -0
- package/src/Utilities/utils/mergeWith.d.ts +7 -0
- package/src/Utilities/utils/mergeWith.js +46 -0
- package/src/Utilities/utils/orderBy.d.ts +8 -0
- package/src/Utilities/utils/orderBy.js +30 -0
- package/src/Utilities/utils/parseInt.d.ts +6 -0
- package/src/Utilities/utils/parseInt.js +9 -0
- package/src/Utilities/utils/sentenceCase.d.ts +6 -0
- package/src/Utilities/utils/sentenceCase.js +15 -0
- package/src/Utilities/utils/startCase.d.ts +5 -0
- package/src/Utilities/utils/startCase.js +11 -0
- package/src/Utilities/utils/throttle.d.ts +17 -0
- package/src/Utilities/utils/throttle.js +19 -0
- package/src/Utilities/utils/toNumber.d.ts +5 -0
- package/src/Utilities/utils/toNumber.js +39 -0
- package/src/Utilities/utils/uniq.d.ts +7 -0
- package/src/Utilities/utils/uniq.js +9 -0
- package/src/Utilities/utils/uniqBy.d.ts +8 -0
- package/src/Utilities/utils/uniqBy.js +22 -0
- package/src/Utilities/utils/words.d.ts +7 -0
- package/src/Utilities/utils/words.js +10 -0
- package/src/Utilities/weightedAverage.js +1 -1
- package/src/View/AdaptableComputedCSSVarsContext.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +1 -1
- package/src/View/Charting/ChartingWizard/AgChargingWizard/PreviewChartSection.js +1 -1
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +1 -1
- package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +1 -1
- package/src/View/Components/ColumnFilter/components/FloatingFilterInputList.js +1 -1
- package/src/View/Components/RangesComponent.js +1 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
- package/src/View/Components/ValueSelector/index.js +7 -2
- package/src/View/Dashboard/CustomDashboardButton.js +1 -1
- package/src/View/Dashboard/Dashboard.js +1 -1
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +1 -1
- package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
- package/src/View/Export/Wizard/NewReportWizard.js +8 -8
- package/src/View/Filter/FilterViewPanel.d.ts +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +19 -10
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnRowScopeWizardSection.d.ts +8 -0
- package/src/View/FormatColumn/Wizard/FormatColumnRowScopeWizardSection.js +80 -0
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +22 -61
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +22 -8
- package/src/View/GridFilter/GridFilterViewPanel.js +3 -3
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
- package/src/View/Note/NoteEditor.js +1 -1
- package/src/View/QuickSearch/useQuickSearchDebounced.js +1 -1
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeRowsSection.d.ts +8 -0
- package/src/View/StyledColumn/Wizard/{StyledColumnWizardSettingsSection.js → StyledColumnBadgeRowsSection.js} +19 -19
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +10 -11
- package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
- package/src/View/Theme/ThemeEditor.js +1 -1
- package/src/View/Theme/ThemeField.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +1 -1
- package/src/agGrid/AdaptableAgGrid.js +2 -2
- package/src/agGrid/AgGridAdapter.js +4 -4
- package/src/agGrid/AgGridColumnAdapter.js +2 -2
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +1 -1
- package/src/components/ColorPicker/ColorPicker.js +1 -1
- package/src/components/DropdownButton/renderItem.js +1 -1
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/OverlayTrigger/index.js +1 -1
- package/src/env.js +2 -2
- package/src/layout-manager/src/isLayoutEqual.js +1 -1
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/VersionUpgrade22.js +9 -0
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsTargetItems.js +0 -12
- package/src/View/FormatColumn/Wizard/FormatColumnTargetWizardSection.d.ts +0 -8
- package/src/View/FormatColumn/Wizard/FormatColumnTargetWizardSection.js +0 -31
- package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.d.ts +0 -8
- /package/src/View/FormatColumn/Wizard/{FormatColumnScopeWizardSection.d.ts → FormatColumnColumnScopeWizardSection.d.ts} +0 -0
- /package/src/View/FormatColumn/Wizard/{FormatColumnScopeWizardSection.js → FormatColumnColumnScopeWizardSection.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState, useMemo } from 'react';
|
|
2
|
-
import debounce from '
|
|
2
|
+
import debounce from '../../Utilities/utils/debounce';
|
|
3
3
|
import { QUICK_SEARCH_DEBOUNCE_TIME } from '../../Utilities/Constants/GeneralConstants';
|
|
4
4
|
export const useQuickSearchDebounced = (props) => {
|
|
5
5
|
const [searchText, setSearchText] = useState(props.QuickSearchText ?? '');
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyledColumn } from '../../../types';
|
|
3
|
+
type StyledColumnBadgeRowsSectionProps = {
|
|
4
|
+
onChange: (data: StyledColumn) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const renderStyledColumnBadgeRowsSummary: (data: StyledColumn) => React.JSX.Element;
|
|
7
|
+
export declare const StyledColumnBadgeRowsSection: (props: StyledColumnBadgeRowsSectionProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -5,7 +5,7 @@ import { Tabs } from '../../../components/Tabs';
|
|
|
5
5
|
import { Tag } from '../../../components/Tag';
|
|
6
6
|
import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableWizard';
|
|
7
7
|
import { Flex, Box } from '../../../components/Flex';
|
|
8
|
-
export const
|
|
8
|
+
export const renderStyledColumnBadgeRowsSummary = (data) => {
|
|
9
9
|
const badgeStyle = data;
|
|
10
10
|
return (React.createElement(Box, { className: "twa:p-2" },
|
|
11
11
|
React.createElement(Box, { className: "twa:mt-3" },
|
|
@@ -22,80 +22,80 @@ export const renderStyledColumnWizardSettingsSummary = (data) => {
|
|
|
22
22
|
"Total Rows ",
|
|
23
23
|
React.createElement(Tag, null, badgeStyle.RowScope?.ExcludeTotalRows ? 'no' : 'yes'))));
|
|
24
24
|
};
|
|
25
|
-
export const
|
|
25
|
+
export const StyledColumnBadgeRowsSection = (props) => {
|
|
26
26
|
const { data } = useOnePageAdaptableWizardContext();
|
|
27
|
-
const onExcludeDataRowsChanged = (
|
|
27
|
+
const onExcludeDataRowsChanged = (includeDataRows) => {
|
|
28
28
|
props.onChange({
|
|
29
29
|
...data,
|
|
30
30
|
BadgeStyle: {
|
|
31
31
|
...data.BadgeStyle,
|
|
32
32
|
RowScope: {
|
|
33
33
|
...data.BadgeStyle.RowScope,
|
|
34
|
-
ExcludeDataRows,
|
|
34
|
+
ExcludeDataRows: !includeDataRows,
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
});
|
|
38
38
|
};
|
|
39
|
-
const onExcludeGroupedRowsChanged = (
|
|
39
|
+
const onExcludeGroupedRowsChanged = (includeGroupedRows) => {
|
|
40
40
|
props.onChange({
|
|
41
41
|
...data,
|
|
42
42
|
BadgeStyle: {
|
|
43
43
|
...data.BadgeStyle,
|
|
44
44
|
RowScope: {
|
|
45
45
|
...data.BadgeStyle.RowScope,
|
|
46
|
-
ExcludeGroupRows:
|
|
46
|
+
ExcludeGroupRows: !includeGroupedRows,
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
|
-
const onExcludeSummaryRowsChanged = (
|
|
51
|
+
const onExcludeSummaryRowsChanged = (includeSummaryRows) => {
|
|
52
52
|
props.onChange({
|
|
53
53
|
...data,
|
|
54
54
|
BadgeStyle: {
|
|
55
55
|
...data.BadgeStyle,
|
|
56
56
|
RowScope: {
|
|
57
57
|
...data.BadgeStyle.RowScope,
|
|
58
|
-
ExcludeSummaryRows,
|
|
58
|
+
ExcludeSummaryRows: !includeSummaryRows,
|
|
59
59
|
},
|
|
60
60
|
},
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
|
-
const onExcludeTotalRowsChanged = (
|
|
63
|
+
const onExcludeTotalRowsChanged = (includeTotalRows) => {
|
|
64
64
|
props.onChange({
|
|
65
65
|
...data,
|
|
66
66
|
BadgeStyle: {
|
|
67
67
|
...data.BadgeStyle,
|
|
68
68
|
RowScope: {
|
|
69
69
|
...data.BadgeStyle.RowScope,
|
|
70
|
-
ExcludeTotalRows,
|
|
70
|
+
ExcludeTotalRows: !includeTotalRows,
|
|
71
71
|
},
|
|
72
72
|
},
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
75
|
return (React.createElement(Tabs, null,
|
|
76
|
-
React.createElement(Tabs.Tab, null, "
|
|
76
|
+
React.createElement(Tabs.Tab, null, "Row Types"),
|
|
77
77
|
React.createElement(Tabs.Content, null,
|
|
78
78
|
React.createElement(Flex, { flexDirection: "row" },
|
|
79
79
|
React.createElement(FormLayout, null,
|
|
80
|
-
React.createElement(FormRow, { label: "
|
|
80
|
+
React.createElement(FormRow, { label: "Data (leaf) Rows:" },
|
|
81
81
|
React.createElement(Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
82
82
|
React.createElement(CheckBox, { "data-name": "exclude-data-rows-checkbox", className: "twa:mr-2", checked:
|
|
83
83
|
// @ts-ignore
|
|
84
|
-
data.BadgeStyle.RowScope?.ExcludeDataRows, onChange: onExcludeDataRowsChanged }))),
|
|
85
|
-
React.createElement(FormRow, { label: "
|
|
84
|
+
!data.BadgeStyle.RowScope?.ExcludeDataRows, onChange: onExcludeDataRowsChanged }))),
|
|
85
|
+
React.createElement(FormRow, { label: "Group Rows:" },
|
|
86
86
|
React.createElement(Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
87
87
|
React.createElement(CheckBox, { className: "twa:mr-2", "data-name": "exclude-grouped-rows-checkbox", checked:
|
|
88
88
|
// @ts-ignore
|
|
89
|
-
data.BadgeStyle.RowScope?.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged }))),
|
|
90
|
-
React.createElement(FormRow, { label: "
|
|
89
|
+
!data.BadgeStyle.RowScope?.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged }))),
|
|
90
|
+
React.createElement(FormRow, { label: "Summary Rows:" },
|
|
91
91
|
React.createElement(Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
92
92
|
React.createElement(CheckBox, { "data-name": "exclude-summary-rows-checkbox", className: "twa:mr-2", checked:
|
|
93
93
|
// @ts-ignore
|
|
94
|
-
data.BadgeStyle.RowScope?.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged }))),
|
|
94
|
+
!data.BadgeStyle.RowScope?.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged }))),
|
|
95
95
|
' ',
|
|
96
|
-
React.createElement(FormRow, { label: "
|
|
96
|
+
React.createElement(FormRow, { label: "Total Rows:" },
|
|
97
97
|
React.createElement(Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
98
98
|
React.createElement(CheckBox, { "data-name": "exclude-total-rows-checkbox", className: "twa:mr-2", checked:
|
|
99
99
|
// @ts-ignore
|
|
100
|
-
data.BadgeStyle.RowScope?.ExcludeTotalRows, onChange: onExcludeTotalRowsChanged }))))))));
|
|
100
|
+
!data.BadgeStyle.RowScope?.ExcludeTotalRows, onChange: onExcludeTotalRowsChanged }))))))));
|
|
101
101
|
};
|
|
@@ -8,7 +8,7 @@ import { renderStyledColumnTypeSummary, StyledColumnWizardTypeSection, } from '.
|
|
|
8
8
|
import { isValidStyledColumnColumn, renderStyledColumnColumnSummary, StyledColumnWizardColumnSection, } from './StyledColumnWizardColumnSection';
|
|
9
9
|
import { renderStyledColumnStyleSummary, StyledColumnWizardStyleSection, } from './StyledColumnWizardStyleSection';
|
|
10
10
|
import { cloneObject } from '../../../Utilities/Helpers/Helper';
|
|
11
|
-
import {
|
|
11
|
+
import { renderStyledColumnBadgeRowsSummary, StyledColumnBadgeRowsSection, } from './StyledColumnBadgeRowsSection';
|
|
12
12
|
import { StyledColumnSparklineSettingsSection } from './StyledColumnSparklineSettingsSection';
|
|
13
13
|
import { ObjectTagsWizardSection, renderObjectTagsSummary, } from '../../Wizard/ObjectTagsWizardSection';
|
|
14
14
|
import { renderBadgeSummary, StyledColumnBadgeSection } from './StyledColumnBadgeSection';
|
|
@@ -48,15 +48,6 @@ export const StyledColumnWizard = (props) => {
|
|
|
48
48
|
}
|
|
49
49
|
props.onFinishWizard(styledColumn);
|
|
50
50
|
};
|
|
51
|
-
const AdditionalSettingSection = {
|
|
52
|
-
details: 'Apply Additional Settings',
|
|
53
|
-
renderSummary: renderStyledColumnWizardSettingsSummary,
|
|
54
|
-
render: () => {
|
|
55
|
-
return (React.createElement(Box, { className: "twa:p-2" },
|
|
56
|
-
React.createElement(StyledColumnWizardSettingsSection, { onChange: setStyledColumn })));
|
|
57
|
-
},
|
|
58
|
-
title: 'Settings',
|
|
59
|
-
};
|
|
60
51
|
const specificSteps = [];
|
|
61
52
|
if (styledColumn.SparklineStyle) {
|
|
62
53
|
specificSteps.push({
|
|
@@ -93,6 +84,15 @@ export const StyledColumnWizard = (props) => {
|
|
|
93
84
|
);
|
|
94
85
|
}
|
|
95
86
|
else if (styledColumn.BadgeStyle) {
|
|
87
|
+
specificSteps.push({
|
|
88
|
+
details: 'Select the Rows where the Badge will be applied',
|
|
89
|
+
renderSummary: renderStyledColumnBadgeRowsSummary,
|
|
90
|
+
render: () => {
|
|
91
|
+
return (React.createElement(Box, { className: "twa:p-2" },
|
|
92
|
+
React.createElement(StyledColumnBadgeRowsSection, { onChange: setStyledColumn })));
|
|
93
|
+
},
|
|
94
|
+
title: 'Rows',
|
|
95
|
+
});
|
|
96
96
|
specificSteps.push({
|
|
97
97
|
title: 'Badges',
|
|
98
98
|
details: 'Create Badge Styles',
|
|
@@ -110,7 +110,6 @@ export const StyledColumnWizard = (props) => {
|
|
|
110
110
|
render: () => (React.createElement(Box, { className: "twa:p-2" },
|
|
111
111
|
React.createElement(StyledColumnBadgeSection, { onChange: setStyledColumn }))),
|
|
112
112
|
});
|
|
113
|
-
specificSteps.push(AdditionalSettingSection);
|
|
114
113
|
}
|
|
115
114
|
return (React.createElement(OnePageAdaptableWizard, { defaultCurrentSectionName: defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: styledColumn, onFinish: handleFinish, onHide: props.onCloseWizard, sections: [
|
|
116
115
|
{
|
|
@@ -9,8 +9,8 @@ declare class SystemStatusViewPanelComponent extends React.Component<SystemStatu
|
|
|
9
9
|
render(): React.JSX.Element;
|
|
10
10
|
}
|
|
11
11
|
export declare let SystemStatusViewPanel: import("react-redux").ConnectedComponent<typeof SystemStatusViewPanelComponent, {
|
|
12
|
-
ref?: React.Ref<SystemStatusViewPanelComponent>;
|
|
13
12
|
key?: React.Key | null | undefined;
|
|
13
|
+
ref?: React.Ref<SystemStatusViewPanelComponent>;
|
|
14
14
|
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction>>;
|
|
15
15
|
store?: import("redux").Store;
|
|
16
16
|
}>;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import FormLayout, { FormRow } from '../../components/FormLayout';
|
|
3
3
|
import { useAdaptable } from '../AdaptableContext';
|
|
4
4
|
import AdaptableInput from '../Components/AdaptableInput';
|
|
5
|
-
import throttle from '
|
|
5
|
+
import throttle from '../../Utilities/utils/throttle';
|
|
6
6
|
import SimpleButton from '../../components/SimpleButton';
|
|
7
7
|
import Panel from '../../components/Panel';
|
|
8
8
|
import { Field } from './ThemeField';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import throttle from '
|
|
2
|
+
import throttle from '../../Utilities/utils/throttle';
|
|
3
3
|
import { useAdaptable } from '../AdaptableContext';
|
|
4
4
|
import { getVariableColor } from '../../Utilities/Helpers/StyleHelper';
|
|
5
5
|
import { FormRow } from '../../components/FormLayout';
|
|
@@ -7,7 +7,7 @@ import { useAdaptable } from '../AdaptableContext';
|
|
|
7
7
|
import { Tabs } from '../../components/Tabs';
|
|
8
8
|
import { NamedQueryContext, } from '../../components/ExpressionEditor/NamedQueryContext';
|
|
9
9
|
import { OnePageWizard, useOnePageWizardContext } from './OnePageWizards';
|
|
10
|
-
import kebabCase from '
|
|
10
|
+
import kebabCase from '../../Utilities/utils/kebabCase';
|
|
11
11
|
import { Box } from '../../components/Flex';
|
|
12
12
|
import { twMerge } from '../../twMerge';
|
|
13
13
|
export const SummaryTag = (props) => (React.createElement(Box, { ...props }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import throttle from '
|
|
2
|
-
import debounce from '
|
|
1
|
+
import throttle from '../Utilities/utils/throttle';
|
|
2
|
+
import debounce from '../Utilities/utils/debounce';
|
|
3
3
|
import { createGrid, LocalEventService, } from 'ag-grid-enterprise';
|
|
4
4
|
import { AdaptableLogger } from './AdaptableLogger';
|
|
5
5
|
import { PrimaryKeyDocsLink } from '../Utilities/Constants/DocumentationLinkConstants';
|
|
@@ -471,8 +471,8 @@ export class AgGridAdapter {
|
|
|
471
471
|
? 'number'
|
|
472
472
|
: this.deriveAdaptableColumnDataType(agGridColumn, false);
|
|
473
473
|
const isTreeColumn = this.isTreeColumn(isGeneratedRowGroupColumn);
|
|
474
|
-
const
|
|
475
|
-
const visible = !
|
|
474
|
+
const isUIHiddenColumn = this.adaptableApi.columnApi.internalApi.isColumnUIHidden(colDef);
|
|
475
|
+
const visible = !isUIHiddenColumn || agGridColumn.isVisible();
|
|
476
476
|
const isGenerated = isGeneratedRowGroupColumn || isGeneratedPivotResultColumn || isGeneratedSelectionColumn;
|
|
477
477
|
const abColumn = {
|
|
478
478
|
Uuid: createUuid(),
|
|
@@ -482,9 +482,9 @@ export class AgGridAdapter {
|
|
|
482
482
|
resizable: colDef.resizable !== false,
|
|
483
483
|
friendlyName: friendlyName,
|
|
484
484
|
isPrimaryKey: ColumnId === pkColumn,
|
|
485
|
-
dataType
|
|
485
|
+
dataType,
|
|
486
486
|
visible,
|
|
487
|
-
|
|
487
|
+
isUIHiddenColumn,
|
|
488
488
|
readOnly: this.isColumnReadonly(colDef),
|
|
489
489
|
columnGroup: ColumnGroup,
|
|
490
490
|
fieldOnly: isGenerated ? false : this.isColumnFieldonly(colDef),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import kebabCase from '
|
|
2
|
-
import merge from '
|
|
1
|
+
import kebabCase from '../Utilities/utils/kebabCase';
|
|
2
|
+
import merge from '../Utilities/utils/merge';
|
|
3
3
|
import { convertAdaptableStyleToCSS, getVariableColor, normalizeStyleForAgGrid, } from '../Utilities/Helpers/StyleHelper';
|
|
4
4
|
import StringExtensions from '../Utilities/Extensions/StringExtensions';
|
|
5
5
|
import { ACTION_COLUMN_TYPE, CALCULATED_COLUMN_TYPE, FDC3_COLUMN_TYPE, FREE_TEXT_COLUMN_TYPE, } from '../AdaptableState/Common/AdaptableColumn';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Helper from '../../Utilities/Helpers/Helper';
|
|
2
|
-
import clamp from '
|
|
2
|
+
import clamp from '../../Utilities/utils/clamp';
|
|
3
3
|
export const getPercentBarRendererForColumn = (styledColumn, abColumn, api) => {
|
|
4
4
|
if (!styledColumn.PercentBarStyle) {
|
|
5
5
|
return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useCallback, useEffect } from 'react';
|
|
3
|
-
import debounce from '
|
|
3
|
+
import debounce from '../../Utilities/utils/debounce';
|
|
4
4
|
import Input from '../Input';
|
|
5
5
|
import { getVariableColor } from '../../Utilities/Helpers/StyleHelper';
|
|
6
6
|
import tinycolor from 'tinycolor2';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import isPlainObject from '
|
|
2
|
+
import isPlainObject from '../../Utilities/utils/isPlainObject';
|
|
3
3
|
export default ({ domProps, item, onItemClick, index, columns, className, idProperty, style, }) => {
|
|
4
4
|
const key = item[idProperty] || index;
|
|
5
5
|
if (!isPlainObject(item)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { createContext, useContext } from 'react';
|
|
3
|
-
import merge from '
|
|
3
|
+
import merge from '../../Utilities/utils/merge';
|
|
4
4
|
import join from '../utils/join';
|
|
5
5
|
import { Box } from '../Flex';
|
|
6
6
|
const FormLayoutContext = createContext(null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useRef, useEffect } from 'react';
|
|
3
|
-
import debounce from '
|
|
3
|
+
import debounce from '../../Utilities/utils/debounce';
|
|
4
4
|
import batchUpdate from '../utils/batchUpdate';
|
|
5
5
|
import selectParent from '../utils/selectParent';
|
|
6
6
|
import useProperty from '../utils/useProperty';
|
package/src/env.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
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" || '',
|
|
3
|
-
PUBLISH_TIMESTAMP:
|
|
4
|
-
VERSION: "22.0.0-canary.
|
|
3
|
+
PUBLISH_TIMESTAMP: 1771243557027 || Date.now(),
|
|
4
|
+
VERSION: "22.0.0-canary.13" || '--current-version--',
|
|
5
5
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import isDeepEqual from '
|
|
1
|
+
import isDeepEqual from '../../Utilities/utils/isEqual';
|
|
2
2
|
import { debug as debugFactory } from '@infinite-table/infinite-react';
|
|
3
3
|
import { isPivotLayoutModel } from './isPivotLayoutModel';
|
|
4
4
|
import { normalizePivotLayoutModel, normalizeTableLayoutModel } from './normalizeLayoutModel';
|