@adaptabletools/adaptable-cjs 22.0.0-canary.9 → 22.0.0
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 +1157 -1319
- 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/Common/AggregationColumns.d.ts +1 -0
- package/src/AdaptableState/Common/AggregationColumns.js +2 -1
- package/src/AdaptableState/Common/DataUpdateConfig.d.ts +15 -5
- package/src/AdaptableState/Common/TransposeConfig.d.ts +4 -9
- 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/GridApi.d.ts +4 -0
- package/src/Api/Implementation/ApiBase.d.ts +1 -1
- package/src/Api/Implementation/ApiBase.js +1 -1
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +4 -4
- package/src/Api/Implementation/GridApiImpl.d.ts +1 -0
- package/src/Api/Implementation/GridApiImpl.js +6 -5
- 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/aggregatedScalarExpressionFunctions.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/Hooks/index.d.ts +1 -2
- package/src/Utilities/Hooks/index.js +1 -3
- 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/only.d.ts +15 -0
- package/src/Utilities/only.js +58 -0
- 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/Selectors/PermittedValuesSelector.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/Dashboard/DashboardPopup.js +4 -3
- 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/TransposedPopup.js +0 -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/View/Wizard/OnePageWizards.js +1 -1
- package/src/agGrid/AdaptableAgGrid.js +25 -6
- package/src/agGrid/AgGridAdapter.js +4 -4
- package/src/agGrid/AgGridColumnAdapter.js +11 -4
- package/src/agGrid/AgGridExportAdapter.d.ts +2 -2
- package/src/agGrid/AgGridExportAdapter.js +7 -6
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +17 -5
- package/src/components/ColorPicker/ColorPicker.js +1 -1
- package/src/components/DropdownButton/renderItem.js +1 -1
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +1 -1
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/OverlayTrigger/index.js +1 -1
- package/src/components/Select/Select.js +4 -0
- package/src/env.js +2 -2
- package/src/layout-manager/src/isLayoutEqual.js +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +12 -1
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/VersionUpgrade22.js +9 -0
- package/themes/dark.css +2 -3
- package/themes/light.css +1 -1
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsTargetItems.js +0 -16
- package/src/Utilities/Hooks/useAdaptableState.d.ts +0 -3
- package/src/Utilities/Hooks/useAdaptableState.js +0 -42
- 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
|
@@ -16,8 +16,8 @@ declare class DataSetViewPanelComponent extends React.Component<DataSetViewPanel
|
|
|
16
16
|
onSelectedDataSetChanged(dataSetName: string): void;
|
|
17
17
|
}
|
|
18
18
|
export declare let DataSetViewPanelControl: import("react-redux").ConnectedComponent<typeof DataSetViewPanelComponent, {
|
|
19
|
-
ref?: React.Ref<DataSetViewPanelComponent>;
|
|
20
19
|
key?: React.Key | null | undefined;
|
|
20
|
+
ref?: React.Ref<DataSetViewPanelComponent>;
|
|
21
21
|
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction>>;
|
|
22
22
|
store?: import("redux").Store;
|
|
23
23
|
}>;
|
|
@@ -39,6 +39,14 @@ const NewReportWizard = (props) => {
|
|
|
39
39
|
props.onFinishWizard(report);
|
|
40
40
|
};
|
|
41
41
|
return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: report, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
|
|
42
|
+
{
|
|
43
|
+
title: 'Name',
|
|
44
|
+
details: 'Enter the name of the Report',
|
|
45
|
+
isValid: ReportNameWizardSection_1.isValidReportName,
|
|
46
|
+
renderSummary: ReportNameWizardSection_1.renderReportNameSummary,
|
|
47
|
+
render: () => (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
48
|
+
React.createElement(ReportNameWizardSection_1.ReportNameWizardSection, { onChange: setReport }))),
|
|
49
|
+
},
|
|
42
50
|
{
|
|
43
51
|
title: 'Columns',
|
|
44
52
|
details: 'Choose the Columns you want to include in the Report',
|
|
@@ -52,14 +60,6 @@ const NewReportWizard = (props) => {
|
|
|
52
60
|
renderSummary: ReportRowsWizardSection_1.renderReportRowsSummary,
|
|
53
61
|
render: () => React.createElement(ReportRowsWizardSection_1.ReportRowsWizardSection, { onChange: setReport }),
|
|
54
62
|
},
|
|
55
|
-
{
|
|
56
|
-
title: 'Name',
|
|
57
|
-
details: 'Enter the name of the Report',
|
|
58
|
-
isValid: ReportNameWizardSection_1.isValidReportName,
|
|
59
|
-
renderSummary: ReportNameWizardSection_1.renderReportNameSummary,
|
|
60
|
-
render: () => (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
61
|
-
React.createElement(ReportNameWizardSection_1.ReportNameWizardSection, { onChange: setReport }))),
|
|
62
|
-
},
|
|
63
63
|
{
|
|
64
64
|
details: 'Select Report Tags',
|
|
65
65
|
title: 'Tags',
|
|
@@ -18,8 +18,8 @@ declare class FilterViewPanelComponent extends React.Component<FilterViewPanelCo
|
|
|
18
18
|
private onClearFilters;
|
|
19
19
|
}
|
|
20
20
|
export declare const FilterViewPanelControl: import("react-redux").ConnectedComponent<typeof FilterViewPanelComponent, {
|
|
21
|
-
ref?: React.Ref<FilterViewPanelComponent>;
|
|
22
21
|
key?: React.Key | null | undefined;
|
|
22
|
+
ref?: React.Ref<FilterViewPanelComponent>;
|
|
23
23
|
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction>>;
|
|
24
24
|
store?: import("redux").Store;
|
|
25
25
|
}>;
|
|
@@ -86,15 +86,12 @@ const FlashingAlertSettingsWizardSection = (props) => {
|
|
|
86
86
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
87
87
|
React.createElement(FormLayout_1.default, null,
|
|
88
88
|
React.createElement(FormLayout_1.FormRow, { label: "Name" },
|
|
89
|
-
React.createElement(Input_1.default, { "data-name": "flashing-cell-name", className: "twa:flex-1 twa:mr-3", onChange: handleNameChange, placeholder: "Enter Name", value: flashingCell.Name ?? '' })),
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
React.createElement(CheckBox_1.CheckBox, { "data-name": "flashing-target-aggFuncCell", onChange: (checked) => handleTargetChange('aggFuncCell', checked), checked: flashingCell?.FlashTarget === 'aggFuncCell' ||
|
|
96
|
-
flashingCell?.FlashTarget?.includes?.('aggFuncCell'), tabIndex: -1 }, "Aggregated Function Cell")),
|
|
97
|
-
React.createElement(FormLayout_1.FormRow, { label: "Duration" },
|
|
89
|
+
React.createElement(Input_1.default, { "data-name": "flashing-cell-name", className: "twa:flex-1 twa:mr-3", onChange: handleNameChange, placeholder: "Enter Name", value: flashingCell.Name ?? '' }))))),
|
|
90
|
+
React.createElement(Tabs_1.Tabs, { autoFocus: false, className: "twa:p-2" },
|
|
91
|
+
React.createElement(Tabs_1.Tabs.Tab, null, "Flash Duration"),
|
|
92
|
+
React.createElement(Tabs_1.Tabs.Content, null,
|
|
93
|
+
React.createElement(FormLayout_1.default, null,
|
|
94
|
+
React.createElement(FormLayout_1.FormRow, { label: "" },
|
|
98
95
|
React.createElement(Flex_1.Flex, { alignItems: "center" },
|
|
99
96
|
React.createElement(CheckBox_1.CheckBox, { "data-name": "duration-always", checked: duration === 'always', onChange: (checked) => handleTypeChange(checked ? 'always' : 'number'), className: "twa:mr-4", tabIndex: -1 }, "Always"),
|
|
100
97
|
duration !== 'always' && (React.createElement(React.Fragment, null,
|
|
@@ -102,6 +99,18 @@ const FlashingAlertSettingsWizardSection = (props) => {
|
|
|
102
99
|
const value = event.target.value;
|
|
103
100
|
setDuration(isNaN(Number(value)) ? 500 : Number(value));
|
|
104
101
|
} }),
|
|
105
|
-
React.createElement(Flex_1.Box, { className: "twa:text-2" }, "ms"))))))))
|
|
102
|
+
React.createElement(Flex_1.Box, { className: "twa:text-2" }, "ms")))))))),
|
|
103
|
+
' ',
|
|
104
|
+
React.createElement(Tabs_1.Tabs, { autoFocus: false, className: "twa:p-2" },
|
|
105
|
+
React.createElement(Tabs_1.Tabs.Tab, null, "Flash Target"),
|
|
106
|
+
React.createElement(Tabs_1.Tabs.Content, null,
|
|
107
|
+
React.createElement(FormLayout_1.default, null,
|
|
108
|
+
React.createElement(FormLayout_1.FormRow, { label: "" },
|
|
109
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "flashing-target", onChange: (checked) => handleTargetChange('cell', checked), className: "twa:mr-3", checked: flashingCell?.FlashTarget === 'cell' ||
|
|
110
|
+
flashingCell?.FlashTarget?.includes?.('cell'), tabIndex: -1 }, "Cell"),
|
|
111
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "flashing-target-row", className: "twa:mr-3", onChange: (checked) => handleTargetChange('row', checked), checked: flashingCell?.FlashTarget === 'row' ||
|
|
112
|
+
flashingCell?.FlashTarget?.includes?.('row'), tabIndex: -1 }, "Row"),
|
|
113
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "flashing-target-aggFuncCell", onChange: (checked) => handleTargetChange('aggFuncCell', checked), checked: flashingCell?.FlashTarget === 'aggFuncCell' ||
|
|
114
|
+
flashingCell?.FlashTarget?.includes?.('aggFuncCell'), tabIndex: -1 }, "Aggregated Function Cell")))))));
|
|
106
115
|
};
|
|
107
116
|
exports.FlashingAlertSettingsWizardSection = FlashingAlertSettingsWizardSection;
|
|
@@ -77,7 +77,7 @@ const FlashingCellWizard = (props) => {
|
|
|
77
77
|
isValid: NewScopeComponent_1.isScopeValid,
|
|
78
78
|
render: () => React.createElement(FlashingCellScopeWizardSection_1.FlashingAlertScopeWizardSection, { onChange: setFlashingCell }),
|
|
79
79
|
renderSummary: BaseAlertScopeWizardSection_1.renderScopeSummary,
|
|
80
|
-
title: '
|
|
80
|
+
title: 'Columns',
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
details: 'Build the Rules for when Cells should Flash',
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FormatColumnFormatWizardSection = exports.getFormatDisplayTypeForScope = exports.renderFormatColumnFormatSummary = exports.getFormatColumnFormatSummaryValue = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const uniq_1 = tslib_1.__importDefault(require("
|
|
7
|
-
const clamp_1 = tslib_1.__importDefault(require("
|
|
6
|
+
const uniq_1 = tslib_1.__importDefault(require("../../../Utilities/utils/uniq"));
|
|
7
|
+
const clamp_1 = tslib_1.__importDefault(require("../../../Utilities/utils/clamp"));
|
|
8
8
|
const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlock"));
|
|
9
9
|
const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
|
|
10
10
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FormatColumn } from '../../../AdaptableState/FormatColumnState';
|
|
3
|
+
type FormatColumnRowScopeWizardSectionProps = {
|
|
4
|
+
onChange: (data: FormatColumn) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const renderFormatColumnRowScopeSummary: (data: FormatColumn) => React.JSX.Element;
|
|
7
|
+
export declare const FormatColumnRowScopeWizardSection: (props: FormatColumnRowScopeWizardSectionProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormatColumnRowScopeWizardSection = exports.renderFormatColumnRowScopeSummary = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
7
|
+
const CheckBox_1 = require("../../../components/CheckBox");
|
|
8
|
+
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
9
|
+
const Tag_1 = require("../../../components/Tag");
|
|
10
|
+
const Flex_1 = require("../../../components/Flex");
|
|
11
|
+
const Tabs_1 = require("../../../components/Tabs");
|
|
12
|
+
const renderFormatColumnRowScopeSummary = (data) => {
|
|
13
|
+
return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
14
|
+
React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
15
|
+
"Data Rows ",
|
|
16
|
+
React.createElement(Tag_1.Tag, null, data.RowScope?.ExcludeDataRows ? 'no' : 'yes')),
|
|
17
|
+
' ',
|
|
18
|
+
React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
19
|
+
"Group Rows ",
|
|
20
|
+
React.createElement(Tag_1.Tag, null, data.RowScope?.ExcludeGroupRows ? 'no' : 'yes')),
|
|
21
|
+
React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
22
|
+
"Summary Rows ",
|
|
23
|
+
React.createElement(Tag_1.Tag, null, data.RowScope?.ExcludeSummaryRows ? 'no' : 'yes')),
|
|
24
|
+
React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
25
|
+
"Total Rows ",
|
|
26
|
+
React.createElement(Tag_1.Tag, null, data.RowScope?.ExcludeTotalRows ? 'no' : 'yes'))));
|
|
27
|
+
};
|
|
28
|
+
exports.renderFormatColumnRowScopeSummary = renderFormatColumnRowScopeSummary;
|
|
29
|
+
const FormatColumnRowScopeWizardSection = (props) => {
|
|
30
|
+
const { data } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
31
|
+
const onExcludeDataRowsChanged = (includeDataRows) => {
|
|
32
|
+
props.onChange({
|
|
33
|
+
...data,
|
|
34
|
+
RowScope: {
|
|
35
|
+
...data.RowScope,
|
|
36
|
+
ExcludeDataRows: !includeDataRows,
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
const onExcludeGroupedRowsChanged = (includeGroupedRows) => {
|
|
41
|
+
props.onChange({
|
|
42
|
+
...data,
|
|
43
|
+
RowScope: {
|
|
44
|
+
...data.RowScope,
|
|
45
|
+
ExcludeGroupRows: !includeGroupedRows,
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
const onExcludeSummaryRowsChanged = (includeSummaryRows) => {
|
|
50
|
+
props.onChange({
|
|
51
|
+
...data,
|
|
52
|
+
RowScope: {
|
|
53
|
+
...data.RowScope,
|
|
54
|
+
ExcludeSummaryRows: !includeSummaryRows,
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
const onExcludeTotalRowsChanged = (includeTotalRows) => {
|
|
59
|
+
props.onChange({
|
|
60
|
+
...data,
|
|
61
|
+
RowScope: {
|
|
62
|
+
...data.RowScope,
|
|
63
|
+
ExcludeTotalRows: !includeTotalRows,
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
return (React.createElement(Flex_1.Flex, { flexDirection: "column", style: { height: '100%' } },
|
|
68
|
+
React.createElement(Tabs_1.Tabs, { className: "twa:mb-3" },
|
|
69
|
+
React.createElement(Tabs_1.Tabs.Tab, null, "Row Types"),
|
|
70
|
+
React.createElement(Tabs_1.Tabs.Content, null,
|
|
71
|
+
React.createElement(Flex_1.Flex, { flexDirection: "row" },
|
|
72
|
+
React.createElement(FormLayout_1.default, null, data.Target === 'cell' && (React.createElement(React.Fragment, null,
|
|
73
|
+
React.createElement(FormLayout_1.FormRow, { label: "Data (leaf) Rows:" },
|
|
74
|
+
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
75
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "include-data-rows-checkbox", checked: !data.RowScope?.ExcludeDataRows, onChange: onExcludeDataRowsChanged, className: "twa:mr-2" }))),
|
|
76
|
+
React.createElement(FormLayout_1.FormRow, { label: "Group Rows:" },
|
|
77
|
+
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
78
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "include-grouped-rows-checkbox", checked: !data.RowScope?.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged, className: "twa:mr-2" }))),
|
|
79
|
+
React.createElement(FormLayout_1.FormRow, { label: "Summary Rows:" },
|
|
80
|
+
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
81
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "include-summary-rows-checkbox", checked: !data.RowScope?.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged, className: "twa:mr-2" }))),
|
|
82
|
+
React.createElement(FormLayout_1.FormRow, { label: "Total Rows:" },
|
|
83
|
+
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
84
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "include-total-rows-checkbox", checked: !data.RowScope?.ExcludeTotalRows, onChange: onExcludeTotalRowsChanged, className: "twa:mr-2" })))))))))));
|
|
85
|
+
};
|
|
86
|
+
exports.FormatColumnRowScopeWizardSection = FormatColumnRowScopeWizardSection;
|
|
@@ -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"));
|
|
@@ -84,7 +84,6 @@ const TransposedPopup = (props) => {
|
|
|
84
84
|
const transposeConfig = {
|
|
85
85
|
transposedColumnId: rawConfig.transposedColumnId ?? primaryKey,
|
|
86
86
|
hideTransposedColumn: rawConfig.hideTransposedColumn ?? true,
|
|
87
|
-
autosize: rawConfig.autosize ?? true,
|
|
88
87
|
columnsToTranspose: rawConfig.columnsToTranspose,
|
|
89
88
|
rowsToTranspose: rawConfig.rowsToTranspose,
|
|
90
89
|
};
|
|
@@ -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 {};
|