@adaptabletools/adaptable 22.0.0-canary.12 → 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 -0
- package/index.css.map +1 -1
- package/index.d.ts +8 -8
- package/index.js +8 -8
- package/package.json +1 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +3 -3
- package/src/AdaptableState/InitialState.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/Internal/ColumnInternalApi.d.ts +1 -1
- package/src/Api/Internal/ColumnInternalApi.js +4 -2
- package/src/Strategy/FormatColumnModule.js +2 -2
- package/src/Strategy/StyledColumnModule.js +14 -6
- 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/getScopeViewItems.js +1 -1
- package/src/View/Components/ValueSelector/index.js +7 -2
- package/src/View/Export/Wizard/NewReportWizard.js +8 -8
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +19 -10
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -1
- 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/Layout/Wizard/sections/ColumnsSection.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/agGrid/AgGridAdapter.js +4 -4
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/VersionUpgrade22.js +8 -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,12 +0,0 @@
|
|
|
1
|
-
export const getFormatColumnSettingsTargetItems = (formatColumn) => {
|
|
2
|
-
if (!formatColumn.Target || formatColumn.Target === 'cell') {
|
|
3
|
-
return {
|
|
4
|
-
name: 'Target',
|
|
5
|
-
values: ['Column Cells'],
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
return {
|
|
9
|
-
name: 'Target',
|
|
10
|
-
values: ['Column Header'],
|
|
11
|
-
};
|
|
12
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FormatColumn } from '../../../AdaptableState/FormatColumnState';
|
|
3
|
-
type FormatColumnScopeWizardSectionProps = {
|
|
4
|
-
onChange: (data: FormatColumn) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare const renderFormatColumnTargetSummary: (data: FormatColumn) => "Column Header" | "Column Cells";
|
|
7
|
-
export declare const FormatColumnTargetWizardSection: (props: FormatColumnScopeWizardSectionProps) => React.JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableWizard';
|
|
3
|
-
import { Tabs } from '../../../components/Tabs';
|
|
4
|
-
import { TypeRadio } from '../../Wizard/TypeRadio';
|
|
5
|
-
import { Flex } from '../../../components/Flex';
|
|
6
|
-
export const renderFormatColumnTargetSummary = (data) => {
|
|
7
|
-
if (!data.Target || data.Target === 'cell') {
|
|
8
|
-
return 'Column Cells';
|
|
9
|
-
}
|
|
10
|
-
if (data.Target === 'columnHeader') {
|
|
11
|
-
return 'Column Header';
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
export const FormatColumnTargetWizardSection = (props) => {
|
|
15
|
-
const { data, api } = useOnePageAdaptableWizardContext();
|
|
16
|
-
const currentTarget = data.Target ? data.Target : 'cell';
|
|
17
|
-
const handleTargetChange = (target) => {
|
|
18
|
-
// Update the formatColumn object
|
|
19
|
-
props.onChange({
|
|
20
|
-
...data,
|
|
21
|
-
Target: target,
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
return (React.createElement(React.Fragment, null,
|
|
25
|
-
React.createElement(Tabs, { className: "twa:mb-3" },
|
|
26
|
-
React.createElement(Tabs.Tab, null, "Target"),
|
|
27
|
-
React.createElement(Tabs.Content, null,
|
|
28
|
-
React.createElement(Flex, { flexDirection: "column" },
|
|
29
|
-
React.createElement(TypeRadio, { "data-name": "target-column-cell", text: 'Column Cells', description: "Column Cells are styled and formatted", checked: currentTarget === 'cell', onClick: () => handleTargetChange('cell') }),
|
|
30
|
-
React.createElement(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') }))))));
|
|
31
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { StyledColumn } from '../../../types';
|
|
3
|
-
type StyledColumnWizardSettingsSectionSectionProps = {
|
|
4
|
-
onChange: (data: StyledColumn) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare const renderStyledColumnWizardSettingsSummary: (data: StyledColumn) => React.JSX.Element;
|
|
7
|
-
export declare const StyledColumnWizardSettingsSection: (props: StyledColumnWizardSettingsSectionSectionProps) => React.JSX.Element;
|
|
8
|
-
export {};
|
|
File without changes
|
|
File without changes
|