@adaptabletools/adaptable-cjs 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 +26 -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 +2 -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 +2 -2
- package/src/Utilities/getScopeViewItems.js +1 -1
- package/src/Utilities/utils/chunk.d.ts +6 -0
- package/src/Utilities/utils/chunk.js +20 -0
- package/src/Utilities/utils/clamp.d.ts +5 -0
- package/src/Utilities/utils/clamp.js +10 -0
- package/src/Utilities/utils/cloneDeepWith.d.ts +9 -0
- package/src/Utilities/utils/cloneDeepWith.js +70 -0
- package/src/Utilities/utils/debounce.d.ts +20 -0
- package/src/Utilities/utils/debounce.js +124 -0
- package/src/Utilities/utils/flatten.d.ts +5 -0
- package/src/Utilities/utils/flatten.js +10 -0
- package/src/Utilities/utils/flattenDeep.d.ts +5 -0
- package/src/Utilities/utils/flattenDeep.js +10 -0
- package/src/Utilities/utils/get.d.ts +6 -0
- package/src/Utilities/utils/get.js +38 -0
- package/src/Utilities/utils/index.d.ts +22 -0
- package/src/Utilities/utils/index.js +48 -0
- package/src/Utilities/utils/isArray.d.ts +6 -0
- package/src/Utilities/utils/isArray.js +8 -0
- package/src/Utilities/utils/isEqual.d.ts +5 -0
- package/src/Utilities/utils/isEqual.js +127 -0
- package/src/Utilities/utils/isObject.d.ts +6 -0
- package/src/Utilities/utils/isObject.js +12 -0
- package/src/Utilities/utils/isPlainObject.d.ts +6 -0
- package/src/Utilities/utils/isPlainObject.js +20 -0
- package/src/Utilities/utils/kebabCase.d.ts +5 -0
- package/src/Utilities/utils/kebabCase.js +12 -0
- package/src/Utilities/utils/merge.d.ts +11 -0
- package/src/Utilities/utils/merge.js +44 -0
- package/src/Utilities/utils/mergeWith.d.ts +7 -0
- package/src/Utilities/utils/mergeWith.js +50 -0
- package/src/Utilities/utils/orderBy.d.ts +8 -0
- package/src/Utilities/utils/orderBy.js +33 -0
- package/src/Utilities/utils/parseInt.d.ts +6 -0
- package/src/Utilities/utils/parseInt.js +12 -0
- package/src/Utilities/utils/sentenceCase.d.ts +6 -0
- package/src/Utilities/utils/sentenceCase.js +19 -0
- package/src/Utilities/utils/startCase.d.ts +5 -0
- package/src/Utilities/utils/startCase.js +15 -0
- package/src/Utilities/utils/throttle.d.ts +17 -0
- package/src/Utilities/utils/throttle.js +23 -0
- package/src/Utilities/utils/toNumber.d.ts +5 -0
- package/src/Utilities/utils/toNumber.js +42 -0
- package/src/Utilities/utils/uniq.d.ts +7 -0
- package/src/Utilities/utils/uniq.js +12 -0
- package/src/Utilities/utils/uniqBy.d.ts +8 -0
- package/src/Utilities/utils/uniqBy.js +25 -0
- package/src/Utilities/utils/words.d.ts +7 -0
- package/src/Utilities/utils/words.js +13 -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 +2 -2
- 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 +2 -2
- package/src/View/Components/ColumnFilter/components/FloatingFilterInputList.js +2 -2
- 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 +86 -0
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +22 -61
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +22 -10
- 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} +22 -22
- 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.cjs.tsbuildinfo +1 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsTargetItems.js +0 -16
- package/src/View/FormatColumn/Wizard/FormatColumnTargetWizardSection.d.ts +0 -8
- package/src/View/FormatColumn/Wizard/FormatColumnTargetWizardSection.js +0 -37
- 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
|
@@ -4,31 +4,23 @@ exports.FormatColumnSettingsWizardSection = exports.renderFormatColumnSettingsSu
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
7
|
-
const CheckBox_1 = require("../../../components/CheckBox");
|
|
8
7
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
9
8
|
const Tag_1 = require("../../../components/Tag");
|
|
10
9
|
const Radio_1 = tslib_1.__importStar(require("../../../components/Radio"));
|
|
11
10
|
const Flex_1 = require("../../../components/Flex");
|
|
12
11
|
const Tabs_1 = require("../../../components/Tabs");
|
|
13
12
|
const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
|
|
13
|
+
const TypeRadio_1 = require("../../Wizard/TypeRadio");
|
|
14
14
|
const renderFormatColumnSettingsSummary = (data) => {
|
|
15
15
|
return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
16
16
|
React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
17
17
|
"Name ",
|
|
18
18
|
React.createElement(Tag_1.Tag, null, data.Name)),
|
|
19
19
|
React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
20
|
-
"
|
|
21
|
-
|
|
20
|
+
"Target",
|
|
21
|
+
' ',
|
|
22
|
+
React.createElement(Tag_1.Tag, null, !data.Target || data.Target === 'cell' ? 'Column Cells' : 'Column Header')),
|
|
22
23
|
' ',
|
|
23
|
-
React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
24
|
-
"Group Rows ",
|
|
25
|
-
React.createElement(Tag_1.Tag, null, data.RowScope?.ExcludeGroupRows ? 'no' : 'yes')),
|
|
26
|
-
React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
27
|
-
"Summary Rows ",
|
|
28
|
-
React.createElement(Tag_1.Tag, null, data.RowScope?.ExcludeSummaryRows ? 'no' : 'yes')),
|
|
29
|
-
React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
30
|
-
"Total Rows ",
|
|
31
|
-
React.createElement(Tag_1.Tag, null, data.RowScope?.ExcludeTotalRows ? 'no' : 'yes')),
|
|
32
24
|
React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
33
25
|
"Apply on Column Groups:",
|
|
34
26
|
' ',
|
|
@@ -38,49 +30,22 @@ const renderFormatColumnSettingsSummary = (data) => {
|
|
|
38
30
|
};
|
|
39
31
|
exports.renderFormatColumnSettingsSummary = renderFormatColumnSettingsSummary;
|
|
40
32
|
const FormatColumnSettingsWizardSection = (props) => {
|
|
41
|
-
const { data } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
Name: event.target.value,
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
const onExcludeDataRowsChanged = (ExcludeDataRows) => {
|
|
49
|
-
props.onChange({
|
|
50
|
-
...data,
|
|
51
|
-
RowScope: {
|
|
52
|
-
...data.RowScope,
|
|
53
|
-
ExcludeDataRows,
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
const onExcludeGroupedRowsChanged = (ExcludeGroupedRows) => {
|
|
33
|
+
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
34
|
+
const currentTarget = data.Target ? data.Target : 'cell';
|
|
35
|
+
const handleTargetChange = (target) => {
|
|
36
|
+
// Update the formatColumn object
|
|
58
37
|
props.onChange({
|
|
59
38
|
...data,
|
|
60
|
-
|
|
61
|
-
...data.RowScope,
|
|
62
|
-
ExcludeGroupRows: ExcludeGroupedRows,
|
|
63
|
-
},
|
|
39
|
+
Target: target,
|
|
64
40
|
});
|
|
65
41
|
};
|
|
66
|
-
const
|
|
67
|
-
props.onChange({
|
|
68
|
-
...data,
|
|
69
|
-
RowScope: {
|
|
70
|
-
...data.RowScope,
|
|
71
|
-
ExcludeSummaryRows,
|
|
72
|
-
},
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
const onExcludeTotalRowsChanged = (ExcludeTotalRows) => {
|
|
42
|
+
const onNameChange = (event) => {
|
|
76
43
|
props.onChange({
|
|
77
44
|
...data,
|
|
78
|
-
|
|
79
|
-
...data.RowScope,
|
|
80
|
-
ExcludeTotalRows,
|
|
81
|
-
},
|
|
45
|
+
Name: event.target.value,
|
|
82
46
|
});
|
|
83
47
|
};
|
|
48
|
+
const behaviourSpellingVariant = api.internalApi.getCorrectEnglishVariant('Behaviour');
|
|
84
49
|
return (React.createElement(Flex_1.Flex, { flexDirection: "column", style: { height: '100%' } },
|
|
85
50
|
React.createElement(Tabs_1.Tabs, { className: "twa:mb-3" },
|
|
86
51
|
React.createElement(Tabs_1.Tabs.Tab, null, "Settings"),
|
|
@@ -89,24 +54,20 @@ const FormatColumnSettingsWizardSection = (props) => {
|
|
|
89
54
|
React.createElement(FormLayout_1.default, { className: "twa:max-w-[300px] twa:w-full" },
|
|
90
55
|
React.createElement(FormLayout_1.FormRow, { label: "Name" },
|
|
91
56
|
React.createElement(Input_1.default, { className: "twa:w-full", "data-name": "format-column-name", onChange: onNameChange, value: data?.Name ?? '' })))))),
|
|
57
|
+
React.createElement(Tabs_1.Tabs, { className: "twa:mb-3" },
|
|
58
|
+
React.createElement(Tabs_1.Tabs.Tab, null, "Target"),
|
|
59
|
+
React.createElement(Tabs_1.Tabs.Content, null,
|
|
60
|
+
React.createElement(Flex_1.Flex, { flexDirection: "column" },
|
|
61
|
+
React.createElement(TypeRadio_1.TypeRadio, { "data-name": "target-column-cell", text: 'Column Cells', description: "Column Cells are styled and formatted", checked: currentTarget === 'cell', onClick: () => handleTargetChange('cell') }),
|
|
62
|
+
React.createElement(TypeRadio_1.TypeRadio, { "data-name": "target-column-header", text: 'Column Header', description: "The Column Header is styled (Note: Conditions are not available for Column Headers)", checked: currentTarget === 'columnHeader', onClick: () => handleTargetChange('columnHeader') })))),
|
|
92
63
|
React.createElement(Tabs_1.Tabs, null,
|
|
93
|
-
React.createElement(Tabs_1.Tabs.Tab, null,
|
|
64
|
+
React.createElement(Tabs_1.Tabs.Tab, null,
|
|
65
|
+
"Column Group ",
|
|
66
|
+
behaviourSpellingVariant,
|
|
67
|
+
" "),
|
|
94
68
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
95
69
|
React.createElement(Flex_1.Flex, { flexDirection: "row" },
|
|
96
70
|
React.createElement(FormLayout_1.default, null,
|
|
97
|
-
data.Target === 'cell' && (React.createElement(React.Fragment, null,
|
|
98
|
-
React.createElement(FormLayout_1.FormRow, { label: "Exclude Data Rows:" },
|
|
99
|
-
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
100
|
-
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-data-rows-checkbox", checked: data.RowScope?.ExcludeDataRows, onChange: onExcludeDataRowsChanged, className: "twa:mr-2" }))),
|
|
101
|
-
React.createElement(FormLayout_1.FormRow, { label: "Exclude Group Rows:" },
|
|
102
|
-
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
103
|
-
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-grouped-rows-checkbox", checked: data.RowScope?.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged, className: "twa:mr-2" }))),
|
|
104
|
-
React.createElement(FormLayout_1.FormRow, { label: "Exclude Row Summaries:" },
|
|
105
|
-
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
106
|
-
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-summary-rows-checkbox", checked: data.RowScope?.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged, className: "twa:mr-2" }))),
|
|
107
|
-
React.createElement(FormLayout_1.FormRow, { label: "Exclude Total Rows:" },
|
|
108
|
-
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
109
|
-
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-total-rows-checkbox", checked: data.RowScope?.ExcludeTotalRows, onChange: onExcludeTotalRowsChanged, className: "twa:mr-2" }))))),
|
|
110
71
|
React.createElement(FormLayout_1.FormRow, { label: "Apply on Column Group:" },
|
|
111
72
|
React.createElement(Radio_1.RadioGroup, { value: data.ColumnGroupScope || 'Both', name: "columnGroupScope", orientation: "horizontal", onRadioChange: (columnGroupScope) => {
|
|
112
73
|
props.onChange({
|
|
@@ -6,7 +6,8 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const react_1 = require("react");
|
|
7
7
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
8
8
|
const Helper_1 = require("../../../Utilities/Helpers/Helper");
|
|
9
|
-
const
|
|
9
|
+
const FormatColumnColumnScopeWizardSection_1 = require("./FormatColumnColumnScopeWizardSection");
|
|
10
|
+
const FormatColumnRowScopeWizardSection_1 = require("./FormatColumnRowScopeWizardSection");
|
|
10
11
|
const FormatColumnStyleWizardSection_1 = require("./FormatColumnStyleWizardSection");
|
|
11
12
|
const FormatColumnFormatWizardSection_1 = require("./FormatColumnFormatWizardSection");
|
|
12
13
|
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
@@ -21,11 +22,22 @@ const Utilities_1 = require("../../Components/EntityRulesEditor/Utilities");
|
|
|
21
22
|
const FormatColumnRuleWizardSection_1 = require("./FormatColumnRuleWizardSection");
|
|
22
23
|
const constants_1 = require("./constants");
|
|
23
24
|
const ObjectExtensions_1 = require("../../../Utilities/Extensions/ObjectExtensions");
|
|
24
|
-
const FormatColumnTargetWizardSection_1 = require("./FormatColumnTargetWizardSection");
|
|
25
25
|
const Flex_1 = require("../../../components/Flex");
|
|
26
26
|
const adjustDisplayFormat = (fc, api) => {
|
|
27
27
|
const formatColumn = { ...fc };
|
|
28
28
|
let formatDataType = (0, FormatColumnFormatWizardSection_1.getFormatDisplayTypeForScope)(formatColumn.Scope, api);
|
|
29
|
+
// Add RowScope and Target defaults for Format Columns that have been created in Initial State
|
|
30
|
+
if (!formatColumn.RowScope) {
|
|
31
|
+
formatColumn.RowScope = {
|
|
32
|
+
ExcludeDataRows: false,
|
|
33
|
+
ExcludeGroupRows: false,
|
|
34
|
+
ExcludeSummaryRows: false,
|
|
35
|
+
ExcludeTotalRows: false,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
if (!formatColumn.Target) {
|
|
39
|
+
formatColumn.Target = 'cell';
|
|
40
|
+
}
|
|
29
41
|
if (formatColumn.Target === 'columnHeader') {
|
|
30
42
|
// Column Headers are always text
|
|
31
43
|
formatDataType = 'text';
|
|
@@ -100,7 +112,7 @@ function FormatColumnWizard(props) {
|
|
|
100
112
|
return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, modal: props.modal, data: formatColumn, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
|
|
101
113
|
{
|
|
102
114
|
title: 'Settings',
|
|
103
|
-
details: 'Enter Name and
|
|
115
|
+
details: 'Enter Name and other Properties',
|
|
104
116
|
isValid: (formatColumnData) => {
|
|
105
117
|
if (!formatColumnData.Name) {
|
|
106
118
|
return 'Format Column Name cannot be blank';
|
|
@@ -117,22 +129,22 @@ function FormatColumnWizard(props) {
|
|
|
117
129
|
},
|
|
118
130
|
},
|
|
119
131
|
{
|
|
120
|
-
title: '
|
|
132
|
+
title: 'Columns',
|
|
121
133
|
details: 'Select which Columns will be formatted',
|
|
122
134
|
isValid: NewScopeComponent_1.isScopeValid,
|
|
123
|
-
renderSummary:
|
|
135
|
+
renderSummary: FormatColumnColumnScopeWizardSection_1.renderFormatColumnScopeSummary,
|
|
124
136
|
render: () => {
|
|
125
137
|
return (React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:p-2 twa:h-full" },
|
|
126
|
-
React.createElement(
|
|
138
|
+
React.createElement(FormatColumnColumnScopeWizardSection_1.FormatColumnScopeWizardSection, { onChange: setFormatColumn })));
|
|
127
139
|
},
|
|
128
140
|
},
|
|
129
141
|
{
|
|
130
|
-
title: '
|
|
131
|
-
details: 'Select which
|
|
132
|
-
renderSummary:
|
|
142
|
+
title: 'Rows',
|
|
143
|
+
details: 'Select which Rows will be formatted',
|
|
144
|
+
renderSummary: FormatColumnRowScopeWizardSection_1.renderFormatColumnRowScopeSummary,
|
|
133
145
|
render: () => {
|
|
134
146
|
return (React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:p-2 twa:h-full" },
|
|
135
|
-
React.createElement(
|
|
147
|
+
React.createElement(FormatColumnRowScopeWizardSection_1.FormatColumnRowScopeWizardSection, { onChange: setFormatColumn })));
|
|
136
148
|
},
|
|
137
149
|
},
|
|
138
150
|
{
|
|
@@ -25,14 +25,14 @@ const QueryViewPanelComponent = (props) => {
|
|
|
25
25
|
const disabled = isReadOnly || isSuspended || gridFilterAccessLevel === 'ReadOnly';
|
|
26
26
|
const buttonExpand = (React.createElement(ButtonExpand_1.ButtonExpand, { disabled: disabled, accessLevel: gridFilterAccessLevel, variant: "text", tone: "neutral", onClick: onExpand, tooltip: "Edit the Expression in UI", className: "twa:ml-1" }));
|
|
27
27
|
const renderExpressionLabel = () => {
|
|
28
|
-
const baseClasses = 'twa:font-mono twa:text-
|
|
28
|
+
const baseClasses = 'twa:font-mono twa:text-s twa:py-2 twa:px-2 twa:overflow-hidden twa:text-ellipsis twa:whitespace-nowrap twa:bg-defaultbackground twa:text-text-on-defaultbackground twa:rounded twa:cursor-pointer twa:leading-4 twa:flex twa:items-center';
|
|
29
29
|
const placeholderClasses = 'twa:text-gray-400 twa:italic';
|
|
30
30
|
const labelClassName = (0, clsx_1.default)(baseClasses, {
|
|
31
31
|
[placeholderClasses]: !expression,
|
|
32
32
|
});
|
|
33
33
|
const expressionLabel = (React.createElement(Tooltip_1.default, { label: expression || 'Click to edit Grid Filter' },
|
|
34
|
-
React.createElement(Flex_1.Box, { className: (0, clsx_1.default)('twa:flex-1 twa:h-full twa:min-w-0', labelClassName), "data-name": "grid-filter-input", onClick: onExpand }, expression || 'Grid Filter')));
|
|
35
|
-
return (React.createElement(FieldWrap_1.default, { className: "twa:flex-1 twa:min-w-0 twa:overflow-visible" },
|
|
34
|
+
React.createElement(Flex_1.Box, { className: (0, clsx_1.default)('twa:flex-1 twa:h-full twa:min-w-0', labelClassName), "data-name": "grid-filter-input", onClick: onExpand }, expression || 'Grid Filter...')));
|
|
35
|
+
return (React.createElement(FieldWrap_1.default, { className: "twa:flex-1 twa:min-w-0 twa:min-h-input twa:overflow-visible" },
|
|
36
36
|
buttonExpand,
|
|
37
37
|
expressionLabel,
|
|
38
38
|
gridFilter && !isExpressionValid && (React.createElement(ButtonInvalid_1.ButtonInvalid, { variant: "text", tone: "neutral", tooltip: "Invalid Grid Filter" }))));
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
|
|
7
7
|
const react_redux_1 = require("react-redux");
|
|
8
|
-
const isEqual_1 = tslib_1.__importDefault(require("
|
|
8
|
+
const isEqual_1 = tslib_1.__importDefault(require("../../Utilities/utils/isEqual"));
|
|
9
9
|
const Select_1 = require("../../components/Select");
|
|
10
10
|
const join_1 = tslib_1.__importDefault(require("../../components/utils/join"));
|
|
11
11
|
const LayoutRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/LayoutRedux"));
|
|
@@ -370,7 +370,7 @@ const ColumnsSection = (props) => {
|
|
|
370
370
|
const visibleIds = layout.TableColumns.filter((colId) => {
|
|
371
371
|
return (layout.ColumnVisibility?.[colId] !== false &&
|
|
372
372
|
adaptable.api.columnApi.isSelectionColumn(colId) === false &&
|
|
373
|
-
!adaptable.api.columnApi.internalApi.
|
|
373
|
+
!adaptable.api.columnApi.internalApi.isColumnUIHidden(colId));
|
|
374
374
|
});
|
|
375
375
|
const currentlyDisplayedColumnIds = searchInputValue
|
|
376
376
|
? currentOrder
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NoteEditor = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const throttle_1 = tslib_1.__importDefault(require("
|
|
5
|
+
const throttle_1 = tslib_1.__importDefault(require("../../Utilities/utils/throttle"));
|
|
6
6
|
const React = tslib_1.__importStar(require("react"));
|
|
7
7
|
const Textarea_1 = tslib_1.__importDefault(require("../../components/Textarea"));
|
|
8
8
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useQuickSearchDebounced = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const debounce_1 = tslib_1.__importDefault(require("
|
|
6
|
+
const debounce_1 = tslib_1.__importDefault(require("../../Utilities/utils/debounce"));
|
|
7
7
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
8
8
|
const useQuickSearchDebounced = (props) => {
|
|
9
9
|
const [searchText, setSearchText] = (0, react_1.useState)(props.QuickSearchText ?? '');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SpecialColumnSettingsWizardStep = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const chunk_1 = tslib_1.__importDefault(require("
|
|
5
|
+
const chunk_1 = tslib_1.__importDefault(require("../Utilities/utils/chunk"));
|
|
6
6
|
const React = tslib_1.__importStar(require("react"));
|
|
7
7
|
const CheckBox_1 = require("../components/CheckBox");
|
|
8
8
|
const FormLayout_1 = tslib_1.__importStar(require("../components/FormLayout"));
|
|
@@ -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 {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.StyledColumnBadgeRowsSection = exports.renderStyledColumnBadgeRowsSummary = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const CheckBox_1 = require("../../../components/CheckBox");
|
|
@@ -9,7 +9,7 @@ const Tabs_1 = require("../../../components/Tabs");
|
|
|
9
9
|
const Tag_1 = require("../../../components/Tag");
|
|
10
10
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
11
11
|
const Flex_1 = require("../../../components/Flex");
|
|
12
|
-
const
|
|
12
|
+
const renderStyledColumnBadgeRowsSummary = (data) => {
|
|
13
13
|
const badgeStyle = data;
|
|
14
14
|
return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
15
15
|
React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
@@ -26,82 +26,82 @@ const renderStyledColumnWizardSettingsSummary = (data) => {
|
|
|
26
26
|
"Total Rows ",
|
|
27
27
|
React.createElement(Tag_1.Tag, null, badgeStyle.RowScope?.ExcludeTotalRows ? 'no' : 'yes'))));
|
|
28
28
|
};
|
|
29
|
-
exports.
|
|
30
|
-
const
|
|
29
|
+
exports.renderStyledColumnBadgeRowsSummary = renderStyledColumnBadgeRowsSummary;
|
|
30
|
+
const StyledColumnBadgeRowsSection = (props) => {
|
|
31
31
|
const { data } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
32
|
-
const onExcludeDataRowsChanged = (
|
|
32
|
+
const onExcludeDataRowsChanged = (includeDataRows) => {
|
|
33
33
|
props.onChange({
|
|
34
34
|
...data,
|
|
35
35
|
BadgeStyle: {
|
|
36
36
|
...data.BadgeStyle,
|
|
37
37
|
RowScope: {
|
|
38
38
|
...data.BadgeStyle.RowScope,
|
|
39
|
-
ExcludeDataRows,
|
|
39
|
+
ExcludeDataRows: !includeDataRows,
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
const onExcludeGroupedRowsChanged = (
|
|
44
|
+
const onExcludeGroupedRowsChanged = (includeGroupedRows) => {
|
|
45
45
|
props.onChange({
|
|
46
46
|
...data,
|
|
47
47
|
BadgeStyle: {
|
|
48
48
|
...data.BadgeStyle,
|
|
49
49
|
RowScope: {
|
|
50
50
|
...data.BadgeStyle.RowScope,
|
|
51
|
-
ExcludeGroupRows:
|
|
51
|
+
ExcludeGroupRows: !includeGroupedRows,
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
|
-
const onExcludeSummaryRowsChanged = (
|
|
56
|
+
const onExcludeSummaryRowsChanged = (includeSummaryRows) => {
|
|
57
57
|
props.onChange({
|
|
58
58
|
...data,
|
|
59
59
|
BadgeStyle: {
|
|
60
60
|
...data.BadgeStyle,
|
|
61
61
|
RowScope: {
|
|
62
62
|
...data.BadgeStyle.RowScope,
|
|
63
|
-
ExcludeSummaryRows,
|
|
63
|
+
ExcludeSummaryRows: !includeSummaryRows,
|
|
64
64
|
},
|
|
65
65
|
},
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
|
-
const onExcludeTotalRowsChanged = (
|
|
68
|
+
const onExcludeTotalRowsChanged = (includeTotalRows) => {
|
|
69
69
|
props.onChange({
|
|
70
70
|
...data,
|
|
71
71
|
BadgeStyle: {
|
|
72
72
|
...data.BadgeStyle,
|
|
73
73
|
RowScope: {
|
|
74
74
|
...data.BadgeStyle.RowScope,
|
|
75
|
-
ExcludeTotalRows,
|
|
75
|
+
ExcludeTotalRows: !includeTotalRows,
|
|
76
76
|
},
|
|
77
77
|
},
|
|
78
78
|
});
|
|
79
79
|
};
|
|
80
80
|
return (React.createElement(Tabs_1.Tabs, null,
|
|
81
|
-
React.createElement(Tabs_1.Tabs.Tab, null, "
|
|
81
|
+
React.createElement(Tabs_1.Tabs.Tab, null, "Row Types"),
|
|
82
82
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
83
83
|
React.createElement(Flex_1.Flex, { flexDirection: "row" },
|
|
84
84
|
React.createElement(FormLayout_1.default, null,
|
|
85
|
-
React.createElement(FormLayout_1.FormRow, { label: "
|
|
85
|
+
React.createElement(FormLayout_1.FormRow, { label: "Data (leaf) Rows:" },
|
|
86
86
|
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
87
87
|
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-data-rows-checkbox", className: "twa:mr-2", checked:
|
|
88
88
|
// @ts-ignore
|
|
89
|
-
data.BadgeStyle.RowScope?.ExcludeDataRows, onChange: onExcludeDataRowsChanged }))),
|
|
90
|
-
React.createElement(FormLayout_1.FormRow, { label: "
|
|
89
|
+
!data.BadgeStyle.RowScope?.ExcludeDataRows, onChange: onExcludeDataRowsChanged }))),
|
|
90
|
+
React.createElement(FormLayout_1.FormRow, { label: "Group Rows:" },
|
|
91
91
|
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
92
92
|
React.createElement(CheckBox_1.CheckBox, { className: "twa:mr-2", "data-name": "exclude-grouped-rows-checkbox", checked:
|
|
93
93
|
// @ts-ignore
|
|
94
|
-
data.BadgeStyle.RowScope?.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged }))),
|
|
95
|
-
React.createElement(FormLayout_1.FormRow, { label: "
|
|
94
|
+
!data.BadgeStyle.RowScope?.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged }))),
|
|
95
|
+
React.createElement(FormLayout_1.FormRow, { label: "Summary Rows:" },
|
|
96
96
|
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
97
97
|
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-summary-rows-checkbox", className: "twa:mr-2", checked:
|
|
98
98
|
// @ts-ignore
|
|
99
|
-
data.BadgeStyle.RowScope?.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged }))),
|
|
99
|
+
!data.BadgeStyle.RowScope?.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged }))),
|
|
100
100
|
' ',
|
|
101
|
-
React.createElement(FormLayout_1.FormRow, { label: "
|
|
101
|
+
React.createElement(FormLayout_1.FormRow, { label: "Total Rows:" },
|
|
102
102
|
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
103
103
|
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-total-rows-checkbox", className: "twa:mr-2", checked:
|
|
104
104
|
// @ts-ignore
|
|
105
|
-
data.BadgeStyle.RowScope?.ExcludeTotalRows, onChange: onExcludeTotalRowsChanged }))))))));
|
|
105
|
+
!data.BadgeStyle.RowScope?.ExcludeTotalRows, onChange: onExcludeTotalRowsChanged }))))))));
|
|
106
106
|
};
|
|
107
|
-
exports.
|
|
107
|
+
exports.StyledColumnBadgeRowsSection = StyledColumnBadgeRowsSection;
|
|
@@ -12,7 +12,7 @@ const StyledColumnWizardTypeSection_1 = require("./StyledColumnWizardTypeSection
|
|
|
12
12
|
const StyledColumnWizardColumnSection_1 = require("./StyledColumnWizardColumnSection");
|
|
13
13
|
const StyledColumnWizardStyleSection_1 = require("./StyledColumnWizardStyleSection");
|
|
14
14
|
const Helper_1 = require("../../../Utilities/Helpers/Helper");
|
|
15
|
-
const
|
|
15
|
+
const StyledColumnBadgeRowsSection_1 = require("./StyledColumnBadgeRowsSection");
|
|
16
16
|
const StyledColumnSparklineSettingsSection_1 = require("./StyledColumnSparklineSettingsSection");
|
|
17
17
|
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
18
18
|
const StyledColumnBadgeSection_1 = require("./StyledColumnBadgeSection");
|
|
@@ -52,15 +52,6 @@ const StyledColumnWizard = (props) => {
|
|
|
52
52
|
}
|
|
53
53
|
props.onFinishWizard(styledColumn);
|
|
54
54
|
};
|
|
55
|
-
const AdditionalSettingSection = {
|
|
56
|
-
details: 'Apply Additional Settings',
|
|
57
|
-
renderSummary: StyledColumnWizardSettingsSection_1.renderStyledColumnWizardSettingsSummary,
|
|
58
|
-
render: () => {
|
|
59
|
-
return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
60
|
-
React.createElement(StyledColumnWizardSettingsSection_1.StyledColumnWizardSettingsSection, { onChange: setStyledColumn })));
|
|
61
|
-
},
|
|
62
|
-
title: 'Settings',
|
|
63
|
-
};
|
|
64
55
|
const specificSteps = [];
|
|
65
56
|
if (styledColumn.SparklineStyle) {
|
|
66
57
|
specificSteps.push({
|
|
@@ -97,6 +88,15 @@ const StyledColumnWizard = (props) => {
|
|
|
97
88
|
);
|
|
98
89
|
}
|
|
99
90
|
else if (styledColumn.BadgeStyle) {
|
|
91
|
+
specificSteps.push({
|
|
92
|
+
details: 'Select the Rows where the Badge will be applied',
|
|
93
|
+
renderSummary: StyledColumnBadgeRowsSection_1.renderStyledColumnBadgeRowsSummary,
|
|
94
|
+
render: () => {
|
|
95
|
+
return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
96
|
+
React.createElement(StyledColumnBadgeRowsSection_1.StyledColumnBadgeRowsSection, { onChange: setStyledColumn })));
|
|
97
|
+
},
|
|
98
|
+
title: 'Rows',
|
|
99
|
+
});
|
|
100
100
|
specificSteps.push({
|
|
101
101
|
title: 'Badges',
|
|
102
102
|
details: 'Create Badge Styles',
|
|
@@ -114,7 +114,6 @@ const StyledColumnWizard = (props) => {
|
|
|
114
114
|
render: () => (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
115
115
|
React.createElement(StyledColumnBadgeSection_1.StyledColumnBadgeSection, { onChange: setStyledColumn }))),
|
|
116
116
|
});
|
|
117
|
-
specificSteps.push(AdditionalSettingSection);
|
|
118
117
|
}
|
|
119
118
|
return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: styledColumn, onFinish: handleFinish, onHide: props.onCloseWizard, sections: [
|
|
120
119
|
{
|
|
@@ -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
|
}>;
|
|
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const FormLayout_1 = tslib_1.__importStar(require("../../components/FormLayout"));
|
|
7
7
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
8
|
const AdaptableInput_1 = tslib_1.__importDefault(require("../Components/AdaptableInput"));
|
|
9
|
-
const throttle_1 = tslib_1.__importDefault(require("
|
|
9
|
+
const throttle_1 = tslib_1.__importDefault(require("../../Utilities/utils/throttle"));
|
|
10
10
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
11
11
|
const Panel_1 = tslib_1.__importDefault(require("../../components/Panel"));
|
|
12
12
|
const ThemeField_1 = require("./ThemeField");
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Field = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const throttle_1 = tslib_1.__importDefault(require("
|
|
6
|
+
const throttle_1 = tslib_1.__importDefault(require("../../Utilities/utils/throttle"));
|
|
7
7
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
8
|
const StyleHelper_1 = require("../../Utilities/Helpers/StyleHelper");
|
|
9
9
|
const FormLayout_1 = require("../../components/FormLayout");
|
|
@@ -12,7 +12,7 @@ const AdaptableContext_1 = require("../AdaptableContext");
|
|
|
12
12
|
const Tabs_1 = require("../../components/Tabs");
|
|
13
13
|
const NamedQueryContext_1 = require("../../components/ExpressionEditor/NamedQueryContext");
|
|
14
14
|
const OnePageWizards_1 = require("./OnePageWizards");
|
|
15
|
-
const kebabCase_1 = tslib_1.__importDefault(require("
|
|
15
|
+
const kebabCase_1 = tslib_1.__importDefault(require("../../Utilities/utils/kebabCase"));
|
|
16
16
|
const Flex_1 = require("../../components/Flex");
|
|
17
17
|
const twMerge_1 = require("../../twMerge");
|
|
18
18
|
const SummaryTag = (props) => (React.createElement(Flex_1.Box, { ...props }));
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdaptableAgGrid = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const throttle_1 = tslib_1.__importDefault(require("
|
|
6
|
-
const debounce_1 = tslib_1.__importDefault(require("
|
|
5
|
+
const throttle_1 = tslib_1.__importDefault(require("../Utilities/utils/throttle"));
|
|
6
|
+
const debounce_1 = tslib_1.__importDefault(require("../Utilities/utils/debounce"));
|
|
7
7
|
const ag_grid_enterprise_1 = require("ag-grid-enterprise");
|
|
8
8
|
const AdaptableLogger_1 = require("./AdaptableLogger");
|
|
9
9
|
const DocumentationLinkConstants_1 = require("../Utilities/Constants/DocumentationLinkConstants");
|
|
@@ -475,8 +475,8 @@ class AgGridAdapter {
|
|
|
475
475
|
? 'number'
|
|
476
476
|
: this.deriveAdaptableColumnDataType(agGridColumn, false);
|
|
477
477
|
const isTreeColumn = this.isTreeColumn(isGeneratedRowGroupColumn);
|
|
478
|
-
const
|
|
479
|
-
const visible = !
|
|
478
|
+
const isUIHiddenColumn = this.adaptableApi.columnApi.internalApi.isColumnUIHidden(colDef);
|
|
479
|
+
const visible = !isUIHiddenColumn || agGridColumn.isVisible();
|
|
480
480
|
const isGenerated = isGeneratedRowGroupColumn || isGeneratedPivotResultColumn || isGeneratedSelectionColumn;
|
|
481
481
|
const abColumn = {
|
|
482
482
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
@@ -486,9 +486,9 @@ class AgGridAdapter {
|
|
|
486
486
|
resizable: colDef.resizable !== false,
|
|
487
487
|
friendlyName: friendlyName,
|
|
488
488
|
isPrimaryKey: ColumnId === pkColumn,
|
|
489
|
-
dataType
|
|
489
|
+
dataType,
|
|
490
490
|
visible,
|
|
491
|
-
|
|
491
|
+
isUIHiddenColumn,
|
|
492
492
|
readOnly: this.isColumnReadonly(colDef),
|
|
493
493
|
columnGroup: ColumnGroup,
|
|
494
494
|
fieldOnly: isGenerated ? false : this.isColumnFieldonly(colDef),
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AgGridColumnAdapter = void 0;
|
|
4
4
|
exports.getEditorForColumnDataType = getEditorForColumnDataType;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
|
-
const kebabCase_1 = tslib_1.__importDefault(require("
|
|
7
|
-
const merge_1 = tslib_1.__importDefault(require("
|
|
6
|
+
const kebabCase_1 = tslib_1.__importDefault(require("../Utilities/utils/kebabCase"));
|
|
7
|
+
const merge_1 = tslib_1.__importDefault(require("../Utilities/utils/merge"));
|
|
8
8
|
const StyleHelper_1 = require("../Utilities/Helpers/StyleHelper");
|
|
9
9
|
const StringExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/StringExtensions"));
|
|
10
10
|
const AdaptableColumn_1 = require("../AdaptableState/Common/AdaptableColumn");
|
|
@@ -3,7 +3,7 @@ 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 clamp_1 = tslib_1.__importDefault(require("
|
|
6
|
+
const clamp_1 = tslib_1.__importDefault(require("../../Utilities/utils/clamp"));
|
|
7
7
|
const getPercentBarRendererForColumn = (styledColumn, abColumn, api) => {
|
|
8
8
|
if (!styledColumn.PercentBarStyle) {
|
|
9
9
|
return;
|
|
@@ -4,7 +4,7 @@ exports.ColorPicker = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_1 = require("react");
|
|
7
|
-
const debounce_1 = tslib_1.__importDefault(require("
|
|
7
|
+
const debounce_1 = tslib_1.__importDefault(require("../../Utilities/utils/debounce"));
|
|
8
8
|
const Input_1 = tslib_1.__importDefault(require("../Input"));
|
|
9
9
|
const StyleHelper_1 = require("../../Utilities/Helpers/StyleHelper");
|
|
10
10
|
const tinycolor2_1 = tslib_1.__importDefault(require("tinycolor2"));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const React = tslib_1.__importStar(require("react"));
|
|
5
|
-
const isPlainObject_1 = tslib_1.__importDefault(require("
|
|
5
|
+
const isPlainObject_1 = tslib_1.__importDefault(require("../../Utilities/utils/isPlainObject"));
|
|
6
6
|
exports.default = ({ domProps, item, onItemClick, index, columns, className, idProperty, style, }) => {
|
|
7
7
|
const key = item[idProperty] || index;
|
|
8
8
|
if (!(0, isPlainObject_1.default)(item)) {
|
|
@@ -4,7 +4,7 @@ exports.FormRow = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_1 = require("react");
|
|
7
|
-
const merge_1 = tslib_1.__importDefault(require("
|
|
7
|
+
const merge_1 = tslib_1.__importDefault(require("../../Utilities/utils/merge"));
|
|
8
8
|
const join_1 = tslib_1.__importDefault(require("../utils/join"));
|
|
9
9
|
const Flex_1 = require("../Flex");
|
|
10
10
|
const FormLayoutContext = (0, react_1.createContext)(null);
|
|
@@ -4,7 +4,7 @@ exports.ensurePortalElement = exports.getConstrainRect = exports.getConstrainEle
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_1 = require("react");
|
|
7
|
-
const debounce_1 = tslib_1.__importDefault(require("
|
|
7
|
+
const debounce_1 = tslib_1.__importDefault(require("../../Utilities/utils/debounce"));
|
|
8
8
|
const batchUpdate_1 = tslib_1.__importDefault(require("../utils/batchUpdate"));
|
|
9
9
|
const selectParent_1 = tslib_1.__importDefault(require("../utils/selectParent"));
|
|
10
10
|
const useProperty_1 = tslib_1.__importDefault(require("../utils/useProperty"));
|
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: "22.0.0-canary.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1771243592812 || Date.now(),
|
|
6
|
+
VERSION: "22.0.0-canary.13" || '--current-version--',
|
|
7
7
|
};
|
|
@@ -5,7 +5,7 @@ exports.isTableLayoutEqual = isTableLayoutEqual;
|
|
|
5
5
|
exports.isPivotLayoutEqual = isPivotLayoutEqual;
|
|
6
6
|
exports.isLayoutEqual = isLayoutEqual;
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
const isEqual_1 = tslib_1.__importDefault(require("
|
|
8
|
+
const isEqual_1 = tslib_1.__importDefault(require("../../Utilities/utils/isEqual"));
|
|
9
9
|
const infinite_react_1 = require("@infinite-table/infinite-react");
|
|
10
10
|
const isPivotLayoutModel_1 = require("./isPivotLayoutModel");
|
|
11
11
|
const normalizeLayoutModel_1 = require("./normalizeLayoutModel");
|