@adaptabletools/adaptable-cjs 23.0.0-canary.9 → 23.0.1
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 +13 -39
- package/package.json +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +4 -6
- package/src/View/Components/AdaptableObjectList/objectListActionButtonStyles.d.ts +1 -1
- package/src/View/Components/AdaptableObjectList/objectListActionButtonStyles.js +1 -1
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +2 -2
- package/src/View/Components/ToolPanel/ToolPanelPopupSections.js +5 -2
- package/src/View/Layout/LayoutCloneButton.js +2 -1
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +5 -5
- package/src/View/StatusBar/StatusBarPopup.js +4 -0
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -3
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +1 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +31 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +1 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +1 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +1 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +1 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +5 -6
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +1 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview.js +1 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.js +1 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.js +1 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +1 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.js +4 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.js +1 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +1 -2
- package/src/View/Wizard/CollapsibleWizardCard.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +7 -0
- package/src/View/Wizard/OnePageWizards.d.ts +8 -0
- package/src/View/Wizard/OnePageWizards.js +2 -2
- package/src/components/Combobox/VirtualizedList.js +7 -6
- package/src/components/Combobox/index.js +6 -5
- package/src/components/DragAndDropContext/ModuleManager.js +5 -2
- package/src/components/DragAndDropContext/types.d.ts +7 -0
- package/src/env.js +2 -2
- package/tsconfig.cjs.tsbuildinfo +1 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.StyledColumnIconPreview = exports.DEFAULT_ICON_STYLE_GAP = exports.DEFAULT_ICON_STYLE_SIZE = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Icon_1 = require("../../../../../components/Icon");
|
|
6
6
|
const IconRenderer_1 = require("../../../../../agGrid/cellRenderers/IconRenderer");
|
|
7
7
|
const AdaptableIconComponent_1 = require("../../../../Components/AdaptableIconComponent");
|
|
8
8
|
const Flex_1 = require("../../../../../components/Flex");
|
|
9
|
-
const Card_1 = require("../../../../../components/Card");
|
|
10
9
|
const Tag_1 = require("../../../../../components/Tag");
|
|
11
10
|
const StyleHelper_1 = require("../../../../../Utilities/Helpers/StyleHelper");
|
|
12
11
|
exports.DEFAULT_ICON_STYLE_SIZE = 18;
|
|
@@ -92,5 +91,3 @@ const StyledColumnIconPreview = ({ data }) => {
|
|
|
92
91
|
return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: PREVIEW_CELL_CLASS, style: previewCellChrome, children: (0, jsx_runtime_1.jsx)(IconCellPreviewTree, { iconStyle: iconStyle, mapping: effectiveMappings[0] }) }));
|
|
93
92
|
};
|
|
94
93
|
exports.StyledColumnIconPreview = StyledColumnIconPreview;
|
|
95
|
-
const StyledColumnIconPreviewCard = ({ data }) => ((0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, children: [(0, jsx_runtime_1.jsx)(Card_1.Card.Title, { children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Preview" }) }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:p-1", children: (0, jsx_runtime_1.jsx)(exports.StyledColumnIconPreview, { data: data }) })] }));
|
|
96
|
-
exports.StyledColumnIconPreviewCard = StyledColumnIconPreviewCard;
|
|
@@ -3,6 +3,3 @@ import { StyledColumn } from '../../../../../AdaptableState/StyledColumnState';
|
|
|
3
3
|
export declare const StyledColumnPercentBarPreview: React.FunctionComponent<React.PropsWithChildren<{
|
|
4
4
|
data: StyledColumn;
|
|
5
5
|
}>>;
|
|
6
|
-
export declare const StyledColumnPercentBarPreviewCard: React.FunctionComponent<React.PropsWithChildren<{
|
|
7
|
-
data: StyledColumn;
|
|
8
|
-
}>>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.StyledColumnPercentBarPreview = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const StyleHelper_1 = require("../../../../../Utilities/Helpers/StyleHelper");
|
|
6
6
|
const PercentBarStyleHelper_1 = require("../../../../../Utilities/Helpers/StyledColumns/PercentBarStyleHelper");
|
|
7
7
|
const BarStylesHelper_1 = require("../../../../../Utilities/Helpers/StyledColumns/BarStylesHelper");
|
|
8
8
|
const Flex_1 = require("../../../../../components/Flex");
|
|
9
|
-
const Card_1 = require("../../../../../components/Card");
|
|
10
9
|
const Tag_1 = require("../../../../../components/Tag");
|
|
11
10
|
const BarStyleCellTextPreview_1 = require("./BarStyleCellTextPreview");
|
|
12
11
|
const PREVIEW_CELL_CLASS = 'ab-PercentBarPreviewCell twa:w-[72px] twa:min-h-[32px] twa:px-1 twa:py-1 twa:rounded-standard twa:border twa:border-[color-mix(in_srgb,var(--ab-color-foreground)_15%,transparent)]';
|
|
@@ -62,5 +61,3 @@ const StyledColumnPercentBarPreview = ({ data }) => {
|
|
|
62
61
|
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "stretch", className: "twa:flex-wrap twa:gap-2", children: sampleValues.map((value) => ((0, jsx_runtime_1.jsx)(PercentBarPreviewCell, { styledColumn: data, value: value, min: min, max: max }, value))) }));
|
|
63
62
|
};
|
|
64
63
|
exports.StyledColumnPercentBarPreview = StyledColumnPercentBarPreview;
|
|
65
|
-
const StyledColumnPercentBarPreviewCard = ({ data }) => ((0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, children: [(0, jsx_runtime_1.jsx)(Card_1.Card.Title, { children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Preview" }) }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:p-1", children: (0, jsx_runtime_1.jsx)(exports.StyledColumnPercentBarPreview, { data: data }) })] }));
|
|
66
|
-
exports.StyledColumnPercentBarPreviewCard = StyledColumnPercentBarPreviewCard;
|
|
@@ -3,6 +3,3 @@ import { StyledColumn } from '../../../../../AdaptableState/StyledColumnState';
|
|
|
3
3
|
export declare const StyledColumnRangeBarPreview: React.FunctionComponent<React.PropsWithChildren<{
|
|
4
4
|
data: StyledColumn;
|
|
5
5
|
}>>;
|
|
6
|
-
export declare const StyledColumnRangeBarPreviewCard: React.FunctionComponent<React.PropsWithChildren<{
|
|
7
|
-
data: StyledColumn;
|
|
8
|
-
}>>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.StyledColumnRangeBarPreview = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const BarStylesHelper_1 = require("../../../../../Utilities/Helpers/StyledColumns/BarStylesHelper");
|
|
6
6
|
const Flex_1 = require("../../../../../components/Flex");
|
|
7
|
-
const Card_1 = require("../../../../../components/Card");
|
|
8
7
|
const Tag_1 = require("../../../../../components/Tag");
|
|
9
8
|
const StyledColumnChartListPreviews_1 = require("./StyledColumnChartListPreviews");
|
|
10
9
|
const BarStyleCellTextPreview_1 = require("./BarStyleCellTextPreview");
|
|
@@ -48,5 +47,3 @@ const StyledColumnRangeBarPreview = ({ data }) => {
|
|
|
48
47
|
return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: PREVIEW_CELL_CLASS, children: (0, jsx_runtime_1.jsx)(RangeBarPreviewContent, { range: range }) }));
|
|
49
48
|
};
|
|
50
49
|
exports.StyledColumnRangeBarPreview = StyledColumnRangeBarPreview;
|
|
51
|
-
const StyledColumnRangeBarPreviewCard = ({ data }) => ((0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, children: [(0, jsx_runtime_1.jsx)(Card_1.Card.Title, { children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Preview" }) }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:p-1", children: (0, jsx_runtime_1.jsx)(exports.StyledColumnRangeBarPreview, { data: data }) })] }));
|
|
52
|
-
exports.StyledColumnRangeBarPreviewCard = StyledColumnRangeBarPreviewCard;
|
|
@@ -14,6 +14,3 @@ export declare const RatingPreview: React.FC<{
|
|
|
14
14
|
export declare const StyledColumnRatingPreview: React.FunctionComponent<React.PropsWithChildren<{
|
|
15
15
|
data: StyledColumn;
|
|
16
16
|
}>>;
|
|
17
|
-
export declare const StyledColumnRatingPreviewCard: React.FunctionComponent<React.PropsWithChildren<{
|
|
18
|
-
data: StyledColumn;
|
|
19
|
-
}>>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.StyledColumnRatingPreview = exports.RatingPreview = exports.DEFAULT_RATING_ICON = exports.DEFAULT_RATING_GAP = exports.DEFAULT_RATING_SIZE = exports.DEFAULT_RATING_MAX = void 0;
|
|
4
4
|
exports.getRatingCellChromeCss = getRatingCellChromeCss;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const React = tslib_1.__importStar(require("react"));
|
|
8
8
|
const Flex_1 = require("../../../../../components/Flex");
|
|
9
|
-
const Card_1 = require("../../../../../components/Card");
|
|
10
9
|
const Tag_1 = require("../../../../../components/Tag");
|
|
11
10
|
const StyleHelper_1 = require("../../../../../Utilities/Helpers/StyleHelper");
|
|
12
11
|
exports.DEFAULT_RATING_MAX = 5;
|
|
@@ -40,6 +39,8 @@ const RatingPreview = ({ rating, value, }) => {
|
|
|
40
39
|
const allowHalf = rating.AllowHalf ?? true;
|
|
41
40
|
const previewValue = value ?? Math.max(1, Math.min(max, max * 0.7));
|
|
42
41
|
const effective = allowHalf ? previewValue : Math.round(previewValue);
|
|
42
|
+
// Display rounded to 1 dp so e.g. 3 * 0.7 doesn't surface as 2.0999999999999996.
|
|
43
|
+
const displayValue = Math.round(previewValue * 10) / 10;
|
|
43
44
|
const d = ICON_PATHS[icon];
|
|
44
45
|
return ((0, jsx_runtime_1.jsxs)("span", { style: {
|
|
45
46
|
display: 'inline-flex',
|
|
@@ -50,7 +51,7 @@ const RatingPreview = ({ rating, value, }) => {
|
|
|
50
51
|
const fill = clamp(effective - i, 0, 1);
|
|
51
52
|
const clipId = `ab-rating-preview-clip-${instanceId}-${i}`;
|
|
52
53
|
return ((0, jsx_runtime_1.jsxs)("svg", { width: size, height: size, viewBox: "0 0 24 24", children: [(0, jsx_runtime_1.jsx)("path", { d: d, fill: emptyColor }), fill > 0 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", { id: clipId, children: (0, jsx_runtime_1.jsx)("rect", { x: 0, y: 0, width: 24 * fill, height: 24 }) }) }), (0, jsx_runtime_1.jsx)("path", { d: d, fill: filledColor, clipPath: `url(#${clipId})` })] }))] }, i));
|
|
53
|
-
}), rating.ShowValue && ((0, jsx_runtime_1.jsx)("span", { style: { marginLeft: 6, fontVariantNumeric: 'tabular-nums' }, children:
|
|
54
|
+
}), rating.ShowValue && ((0, jsx_runtime_1.jsx)("span", { style: { marginLeft: 6, fontVariantNumeric: 'tabular-nums' }, children: displayValue }))] }));
|
|
54
55
|
};
|
|
55
56
|
exports.RatingPreview = RatingPreview;
|
|
56
57
|
const StyledColumnRatingPreview = ({ data }) => {
|
|
@@ -62,5 +63,3 @@ const StyledColumnRatingPreview = ({ data }) => {
|
|
|
62
63
|
return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: PREVIEW_CELL_CLASS, style: previewCellChrome, children: (0, jsx_runtime_1.jsx)(exports.RatingPreview, { rating: rating }) }));
|
|
63
64
|
};
|
|
64
65
|
exports.StyledColumnRatingPreview = StyledColumnRatingPreview;
|
|
65
|
-
const StyledColumnRatingPreviewCard = ({ data }) => ((0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, children: [(0, jsx_runtime_1.jsx)(Card_1.Card.Title, { children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Preview" }) }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:p-1", children: (0, jsx_runtime_1.jsx)(exports.StyledColumnRatingPreview, { data: data }) })] }));
|
|
66
|
-
exports.StyledColumnRatingPreviewCard = StyledColumnRatingPreviewCard;
|
|
@@ -5,6 +5,3 @@ export declare function getSparklineCellChromeCss(cell: CellBoxStyle | undefined
|
|
|
5
5
|
export declare const StyledColumnSparklinePreview: React.FunctionComponent<React.PropsWithChildren<{
|
|
6
6
|
data: StyledColumn;
|
|
7
7
|
}>>;
|
|
8
|
-
export declare const StyledColumnSparklinePreviewCard: React.FunctionComponent<React.PropsWithChildren<{
|
|
9
|
-
data: StyledColumn;
|
|
10
|
-
}>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.StyledColumnSparklinePreview = void 0;
|
|
4
4
|
exports.getSparklineCellChromeCss = getSparklineCellChromeCss;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
@@ -10,7 +10,6 @@ const AdaptableHelper_1 = require("../../../../../Utilities/Helpers/AdaptableHel
|
|
|
10
10
|
const SparklineStyleHelper_1 = require("../../../../../Utilities/Helpers/StyledColumns/SparklineStyleHelper");
|
|
11
11
|
const StyleHelper_1 = require("../../../../../Utilities/Helpers/StyleHelper");
|
|
12
12
|
const Flex_1 = require("../../../../../components/Flex");
|
|
13
|
-
const Card_1 = require("../../../../../components/Card");
|
|
14
13
|
const Tag_1 = require("../../../../../components/Tag");
|
|
15
14
|
const AdaptableContext_1 = require("../../../../AdaptableContext");
|
|
16
15
|
const FALLBACK_NUMBER_ARRAY = [12, 18, 9, 22, 15, 28, 19, 24, 17, 21];
|
|
@@ -129,5 +128,3 @@ const StyledColumnSparklinePreview = ({ data }) => {
|
|
|
129
128
|
return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: PREVIEW_CELL_CLASS, style: previewCellChrome, children: (0, jsx_runtime_1.jsx)(SparklinePreviewCanvas, { sparklineStyle: sparklineStyle, columnId: data.ColumnId }) }));
|
|
130
129
|
};
|
|
131
130
|
exports.StyledColumnSparklinePreview = StyledColumnSparklinePreview;
|
|
132
|
-
const StyledColumnSparklinePreviewCard = ({ data }) => ((0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Preview" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[500px]", children: "Sample sparkline using first non-empty cell in Column (or demo data when unavailable)" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:p-1", children: (0, jsx_runtime_1.jsx)(exports.StyledColumnSparklinePreview, { data: data }) })] }));
|
|
133
|
-
exports.StyledColumnSparklinePreviewCard = StyledColumnSparklinePreviewCard;
|
|
@@ -17,7 +17,6 @@ const Radio_1 = tslib_1.__importStar(require("../../../../components/Radio"));
|
|
|
17
17
|
const StyledColumnSliceStyleEditors_1 = require("../StyledColumnSliceStyleEditors");
|
|
18
18
|
const Card_1 = require("../../../../components/Card");
|
|
19
19
|
const SummaryColorTag_1 = require("../../../Wizard/SummaryColorTag");
|
|
20
|
-
const StyledColumnPercentBarPreview_1 = require("./Components/StyledColumnPercentBarPreview");
|
|
21
20
|
// Re-export the Ranges section + summary for legacy import paths.
|
|
22
21
|
var StyledColumnWizardRangesSection_1 = require("./StyledColumnWizardRangesSection");
|
|
23
22
|
Object.defineProperty(exports, "renderStyledColumnRangesSummary", { enumerable: true, get: function () { return StyledColumnWizardRangesSection_1.renderStyledColumnRangesSummary; } });
|
|
@@ -167,6 +166,6 @@ const StyledColumnWizardStyleSection = (props) => {
|
|
|
167
166
|
delete cleaned.Font;
|
|
168
167
|
props.onChange({ ...data, PercentBarStyle: cleaned });
|
|
169
168
|
}
|
|
170
|
-
} }) })] })] }), (0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, className: "twa:mb-3", children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Cell Style" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Configure Tooltip and Background Colour" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsxs)(FormLayout_1.default, { sizes: [...STYLE_FORM_SIZES], children: [(0, jsx_runtime_1.jsxs)(FormLayout_1.FormRow, { label: "Tooltip Display:", children: [(0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, checked: pb.ToolTipText?.includes('CellValue'), onChange: (checked) => onToolTipTextChanged('CellValue', checked), children: "Cell Value" }), ' ', (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, className: "twa:ml-3", checked: pb.ToolTipText?.includes('PercentageValue'), onChange: (checked) => onToolTipTextChanged('PercentageValue', checked), children: "Percent Value" })] }), (0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: `Back ${api.internalApi.getCorrectEnglishVariant('Colour')}:`, children: (0, jsx_runtime_1.jsx)(ColorPicker_1.OptionalColorPicker, { disabled: disabled, api: api, value: pb.BackColor ?? undefined, defaultColor: (0, UIHelper_1.getGraySwatchColor)(), onChange: onBackColorChange }) })] }) })] })
|
|
169
|
+
} }) })] })] }), (0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, className: "twa:mb-3", children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Cell Style" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Configure Tooltip and Background Colour" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsxs)(FormLayout_1.default, { sizes: [...STYLE_FORM_SIZES], children: [(0, jsx_runtime_1.jsxs)(FormLayout_1.FormRow, { label: "Tooltip Display:", children: [(0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, checked: pb.ToolTipText?.includes('CellValue'), onChange: (checked) => onToolTipTextChanged('CellValue', checked), children: "Cell Value" }), ' ', (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, className: "twa:ml-3", checked: pb.ToolTipText?.includes('PercentageValue'), onChange: (checked) => onToolTipTextChanged('PercentageValue', checked), children: "Percent Value" })] }), (0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: `Back ${api.internalApi.getCorrectEnglishVariant('Colour')}:`, children: (0, jsx_runtime_1.jsx)(ColorPicker_1.OptionalColorPicker, { disabled: disabled, api: api, value: pb.BackColor ?? undefined, defaultColor: (0, UIHelper_1.getGraySwatchColor)(), onChange: onBackColorChange }) })] }) })] })] }));
|
|
171
170
|
};
|
|
172
171
|
exports.StyledColumnWizardStyleSection = StyledColumnWizardStyleSection;
|
|
@@ -55,7 +55,7 @@ const CollapsibleWizardCard = (props) => {
|
|
|
55
55
|
// inset so it stays inside the element and is always visible.
|
|
56
56
|
twUtils_1.targetOwn.focusOutline, 'twa:focus-visible:ring-inset'), "data-name": dataName, onClick: toggleExpanded, onKeyDown: handleTitleKeyDown, tabIndex: 0, "aria-expanded": expanded, role: "button", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:flex twa:flex-row twa:items-center twa:gap-2 twa:shrink-0 twa:cursor-pointer twa:select-none", children: [(0, jsx_runtime_1.jsx)(Icon_1.IconComponent, { icon: { name: expanded ? 'collapse' : 'expand' } }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: title })] }), headerVisual ? ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:flex-1 twa:min-w-0 twa:flex twa:justify-end twa:items-center twa:overflow-hidden twa:pointer-events-none", children: headerVisual })) : headerInline ? ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: (0, utils_1.cn)('twa:flex-1 twa:min-w-0 twa:font-normal', isInteractiveCompactSummary
|
|
57
57
|
? 'twa:flex twa:justify-end twa:items-center twa:overflow-visible'
|
|
58
|
-
: (0, utils_1.cn)('twa:text-xs twa:opacity-70 twa:pointer-events-none twa:cursor-default', compact ? 'twa:overflow-hidden' : 'twa:truncate')), children: headerInline })) : ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:flex-1 twa:min-w-0" })), headerActions ? ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:shrink-0", onClick: (event) => event.stopPropagation(), children: headerActions })) : null] }) }), expanded ? ((0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: (0, utils_1.cn)('twa:p-1', bodyClassName, fillAvailable && 'twa:max-h-none! twa:flex-1 twa:min-h-0'), children: children })) : showSummary ? ((0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:p-1", gap: 1, children: summary })) : null] }));
|
|
58
|
+
: (0, utils_1.cn)('twa:text-xs twa:opacity-70 twa:pointer-events-none twa:cursor-default', compact ? 'twa:overflow-hidden' : 'twa:truncate')), children: headerInline })) : ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:flex-1 twa:min-w-0" })), headerActions ? ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:shrink-0 twa:gap-2 twa:flex", onClick: (event) => event.stopPropagation(), children: headerActions })) : null] }) }), expanded ? ((0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: (0, utils_1.cn)('twa:p-1', bodyClassName, fillAvailable && 'twa:max-h-none! twa:flex-1 twa:min-h-0'), children: children })) : showSummary ? ((0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:p-1", gap: 1, children: summary })) : null] }));
|
|
59
59
|
};
|
|
60
60
|
exports.CollapsibleWizardCard = CollapsibleWizardCard;
|
|
61
61
|
function useWizardCardAccordion(initialExpandedId, options) {
|
|
@@ -57,6 +57,13 @@ export interface OnePageAdaptableWizardProps<ENTITY> {
|
|
|
57
57
|
* `FriendlyName`.
|
|
58
58
|
*/
|
|
59
59
|
moduleName?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Persistent preview rendered as a full-width band beneath the wizard
|
|
62
|
+
* header — visible on every step. Used by wizards (e.g. Styled Column)
|
|
63
|
+
* that want users to see a live preview of the object they're building
|
|
64
|
+
* as they progress.
|
|
65
|
+
*/
|
|
66
|
+
headerPreview?: React.ReactNode;
|
|
60
67
|
}
|
|
61
68
|
export declare const OnePageAdaptableWizard: <ENTITY extends unknown>(props: OnePageAdaptableWizardProps<ENTITY>) => React.JSX.Element;
|
|
62
69
|
export declare const OnePageWizardSummary: <ENTITY extends unknown>() => React.JSX.Element;
|
|
@@ -41,6 +41,14 @@ export interface OnePageWizardProps<ENTITY> {
|
|
|
41
41
|
closeTooltip?: string;
|
|
42
42
|
finishText?: React.ReactNode;
|
|
43
43
|
moduleName?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Optional persistent preview rendered as a full-width band beneath the
|
|
46
|
+
* header. Used by wizards (e.g. Styled Column) that want users to see a
|
|
47
|
+
* live preview of the object they're building on every step — the same
|
|
48
|
+
* card the existing Style / Summary steps render, hoisted so it is
|
|
49
|
+
* always visible.
|
|
50
|
+
*/
|
|
51
|
+
headerPreview?: React.ReactNode;
|
|
44
52
|
}
|
|
45
53
|
export declare const OnePageWizard: <ENTITY extends unknown>(props: OnePageWizardProps<ENTITY>) => React.JSX.Element;
|
|
46
54
|
export {};
|
|
@@ -86,7 +86,7 @@ const OnePageWizard = (props) => {
|
|
|
86
86
|
if (section === '-') {
|
|
87
87
|
return (0, jsx_runtime_1.jsx)(React.Fragment, {}, index);
|
|
88
88
|
}
|
|
89
|
-
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", "data-name": `section-${index}`, className: "twa:
|
|
89
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", "data-name": `section-${index}`, className: "twa:flex-1 twa:overflow-hidden", children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-OnePageWizard__section twa:flex-1 twa:rounded-standard twa:overflow-auto twa:bg-background", children: section.render(props.data, index) }) }, index));
|
|
90
90
|
};
|
|
91
91
|
const handleNavigation = (0, useKeyboardNavigation_1.useKeyboardNavigation)(setCurrentSection, visibleSections);
|
|
92
92
|
const selectedNodeRef = (0, react_1.useRef)(null);
|
|
@@ -174,6 +174,6 @@ const OnePageWizard = (props) => {
|
|
|
174
174
|
}, children: [(0, jsx_runtime_1.jsx)(KeyHint_1.KeyHint, { className: (0, utils_1.cn)('twa:mr-2 twa:inline-block', {
|
|
175
175
|
'twa:text-accent-foreground': active,
|
|
176
176
|
}), children: navIndex }), (0, jsx_runtime_1.jsx)("div", { className: "twa:flex-1", children: section.title }), (0, jsx_runtime_1.jsx)(icons_1.Icon, { name: "error", className: (0, utils_1.cn)('twa:ml-2', validSectionsMap.get(index) !== true ? 'twa:visible' : 'twa:invisible') })] }, section.title));
|
|
177
|
-
}), selectedFeedback, (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:flex-1" }), (0, jsx_runtime_1.jsxs)(KeyHint_1.KeyHint, { className: "ab-OnePageWizard__key-hint twa:leading-normal", children: [(0, isMacLike_1.isMacLike)() ? 'Cmd' : 'Ctrl', " + #", (0, jsx_runtime_1.jsx)("br", {}), "or arrow keys", (0, jsx_runtime_1.jsx)("br", {}), "to navigate"] })] }), (0, jsx_runtime_1.
|
|
177
|
+
}), selectedFeedback, (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:flex-1" }), (0, jsx_runtime_1.jsxs)(KeyHint_1.KeyHint, { className: "ab-OnePageWizard__key-hint twa:leading-normal", children: [(0, isMacLike_1.isMacLike)() ? 'Cmd' : 'Ctrl', " + #", (0, jsx_runtime_1.jsx)("br", {}), "or arrow keys", (0, jsx_runtime_1.jsx)("br", {}), "to navigate"] })] }), (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "column", className: "ab-OnePageWizard__section-container twa:overflow-hidden twa:min-w-0 twa:flex-1 twa:gap-2 twa:mr-2", children: [props.headerPreview ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-OnePageWizard__header-preview", children: props.headerPreview }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { as: "hr", className: "ab-OnePageWizard__header-preview-separator twa:w-full twa:border-0 twa:border-t twa:my-0 twa:border-t-input-border" })] })) : null, renderSection(currentSection)] })] }), (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "row", alignItems: "center", className: "ab-WizardDialog__footer ab-OnePageWizard__footer twa:p-2", children: [(0, jsx_runtime_1.jsx)(SimpleButton_1.default, { tone: "neutral", variant: "text", "data-name": "close", onClick: () => props.onHide?.(), tooltip: props.closeTooltip ?? 'Close wizard', accessLevel: GeneralConstants_1.ACCESS_LEVEL_FULL, children: props.closeText ?? 'CLOSE' }), (0, jsx_runtime_1.jsx)(KeyHint_1.KeyHint, { className: "twa:ml-2", children: "Esc" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-OnePageWizard__error twa:text-2 twa:mr-3 twa:flex-1 twa:text-destructive twa:text-end", children: firstErrorMessage }), (0, jsx_runtime_1.jsx)(SimpleButton_1.default, { tone: "accent", "data-name": "finish", variant: "raised", disabled: canFinish !== true, onClick: () => handleClickFinish(), icon: 'check', accessLevel: GeneralConstants_1.ACCESS_LEVEL_FULL, children: props.finishText ?? 'Finish' })] })] }) }) }) }));
|
|
178
178
|
};
|
|
179
179
|
exports.OnePageWizard = OnePageWizard;
|
|
@@ -49,7 +49,12 @@ function VirtualizedList({ open, virtualizerRef, showItemTooltip, renderCheckbox
|
|
|
49
49
|
const label = isUncreatedCreatable ? `Create "${item.label}"` : item.label;
|
|
50
50
|
const itemLabel = renderItemLabel ? (renderItemLabel(label, item)) : ((0, jsx_runtime_1.jsx)("span", { className: "twa:min-w-0 twa:flex-1 twa:truncate", children: label }));
|
|
51
51
|
const itemContent = isUncreatedCreatable ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(lucide_react_1.PlusIcon, {}), itemLabel] })) : (itemLabel);
|
|
52
|
-
|
|
52
|
+
// The Tooltip must wrap the item's inner content rather than the
|
|
53
|
+
// `ComboboxItem` itself: when the tooltip trigger renders the option
|
|
54
|
+
// element it overwrites the option's `id`, which breaks base-ui's
|
|
55
|
+
// `aria-activedescendant` (`${rootId}-${index}`) link and silences
|
|
56
|
+
// screen readers as you navigate the list.
|
|
57
|
+
return ((0, jsx_runtime_1.jsx)(combobox_1.ComboboxItem, { index: virtualItem.index, "data-index": virtualItem.index, ref: virtualizer.measureElement, value: item, renderCheckboxIndicator: renderCheckboxIndicator, "aria-setsize": filteredItems.length, "aria-posinset": virtualItem.index + 1, "aria-label": itemText ?? undefined, style: {
|
|
53
58
|
position: 'absolute',
|
|
54
59
|
left: `var(--ab-base-space)`,
|
|
55
60
|
right: `var(--ab-base-space)`,
|
|
@@ -57,10 +62,6 @@ function VirtualizedList({ open, virtualizerRef, showItemTooltip, renderCheckbox
|
|
|
57
62
|
width: 'auto',
|
|
58
63
|
height: virtualItem.size,
|
|
59
64
|
transform: `translateY(${virtualItem.start}px)`,
|
|
60
|
-
} }, virtualItem.key));
|
|
61
|
-
if (tooltipText != null) {
|
|
62
|
-
return ((0, jsx_runtime_1.jsxs)(tooltip_1.Tooltip, { children: [(0, jsx_runtime_1.jsx)(tooltip_1.TooltipTrigger, { render: itemElement, children: itemContent }), (0, jsx_runtime_1.jsx)(tooltip_1.TooltipContent, { side: "right", children: tooltipText })] }, virtualItem.key));
|
|
63
|
-
}
|
|
64
|
-
return itemElement;
|
|
65
|
+
}, children: tooltipText != null ? ((0, jsx_runtime_1.jsxs)(tooltip_1.Tooltip, { children: [(0, jsx_runtime_1.jsx)(tooltip_1.TooltipTrigger, { render: (0, jsx_runtime_1.jsx)("span", { className: "twa:flex twa:min-w-0 twa:flex-1 twa:items-center twa:gap-2" }), children: itemContent }), (0, jsx_runtime_1.jsx)(tooltip_1.TooltipContent, { side: "right", children: tooltipText })] })) : (itemContent) }, virtualItem.key));
|
|
65
66
|
}) }) }));
|
|
66
67
|
}
|
|
@@ -40,11 +40,12 @@ const AdaptableComboboxList = (props) => {
|
|
|
40
40
|
? `Create "${itemText}"`
|
|
41
41
|
: itemText
|
|
42
42
|
: undefined;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
43
|
+
// The Tooltip must wrap the item's inner content rather than the
|
|
44
|
+
// `ComboboxItem` itself: when the tooltip trigger renders the option element
|
|
45
|
+
// it overwrites the option's `id`, which breaks base-ui's
|
|
46
|
+
// `aria-activedescendant` (`${rootId}-${index}`) link and silences screen
|
|
47
|
+
// readers as you navigate the list.
|
|
48
|
+
return ((0, jsx_runtime_1.jsx)(combobox_1.ComboboxItem, { value: item, "aria-label": itemText ?? undefined, className: 'ab-Combobox-Row', disabled: item.disabled, renderCheckboxIndicator: props.renderCheckboxIndicator, children: tooltipText != null ? ((0, jsx_runtime_1.jsxs)(tooltip_1.Tooltip, { children: [(0, jsx_runtime_1.jsx)(tooltip_1.TooltipTrigger, { render: (0, jsx_runtime_1.jsx)("span", { className: "twa:flex twa:min-w-0 twa:flex-1 twa:items-center twa:gap-2" }), children: itemContent }), (0, jsx_runtime_1.jsx)(tooltip_1.TooltipContent, { side: "right", children: tooltipText })] })) : (itemContent) }, item.value));
|
|
48
49
|
};
|
|
49
50
|
const list = props.groups ? ((0, jsx_runtime_1.jsx)(combobox_1.ComboboxList, { className: loadingClassName, children: (group, index) => ((0, jsx_runtime_1.jsxs)(React.Fragment, { children: [(0, jsx_runtime_1.jsxs)(combobox_1.ComboboxGroup, { items: group.items, children: [group.label && (0, jsx_runtime_1.jsx)(combobox_1.ComboboxLabel, { children: group.label }), (0, jsx_runtime_1.jsx)(combobox_1.ComboboxCollection, { children: renderItem })] }), index < (props.groups?.length || 0) - 1 && (0, jsx_runtime_1.jsx)(combobox_1.ComboboxSeparator, {})] }, typeof group.label === 'string' ? group.label : `${index}`)) })) : props.virtualized ? ((0, jsx_runtime_1.jsx)(combobox_1.ComboboxPrimitive.List, { className: (0, utils_1.cn)(loadingClassName, combobox_1.RESIZABLE_VIRTUALIZED_LIST_CLASS), children: (0, jsx_runtime_1.jsx)(VirtualizedList_1.VirtualizedList, { open: props.open, renderItemLabel: props.renderItemLabel, virtualizerRef: virtualizerRef, showItemTooltip: props.showItemTooltip, renderCheckboxIndicator: props.renderCheckboxIndicator }) })) : ((0, jsx_runtime_1.jsx)(combobox_1.ComboboxList, { className: loadingClassName, children: renderItem }));
|
|
50
51
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [props.showSelectAllCheckbox && ((0, jsx_runtime_1.jsx)(combobox_1.ComboboxValue, { children: (selectedItems) => {
|
|
@@ -75,9 +75,12 @@ const ModuleManager = (props) => {
|
|
|
75
75
|
'ab-ModuleSelector__UnusedGroups--row': groupsLayout === 'row',
|
|
76
76
|
}), children: unusedItemGroups.map((group, index) => {
|
|
77
77
|
const listId = group.listId ?? `UNUSED-${index}`;
|
|
78
|
+
const isRow = groupsLayout === 'row';
|
|
79
|
+
const hasCustomFlex = typeof group.flex === 'number';
|
|
78
80
|
return ((0, jsx_runtime_1.jsxs)(Card_1.Card, { className: (0, utils_1.cn)('twa:m-0 ab-ModuleSelector__UnusedGroup', {
|
|
79
|
-
'twa:
|
|
80
|
-
|
|
81
|
+
'twa:min-w-0': isRow,
|
|
82
|
+
'twa:flex-1': isRow && !hasCustomFlex,
|
|
83
|
+
}), style: isRow && hasCustomFlex ? { flex: group.flex } : undefined, children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { border: false, className: "twa:py-2", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-sm twa:font-medium", children: group.title }), group.help ? ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal", children: group.help })) : null] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:px-0 twa:pt-0", children: (0, jsx_runtime_1.jsx)(UnusedPanel_1.UnusedPanel, { listId: listId, disabled: disabled, items: group.items }) })] }, listId));
|
|
81
84
|
}) })] }));
|
|
82
85
|
};
|
|
83
86
|
const renderAvailableItemPanels = (options) => {
|
|
@@ -12,4 +12,11 @@ export interface UnusedItemGroup {
|
|
|
12
12
|
title: string;
|
|
13
13
|
help?: string;
|
|
14
14
|
items: string[];
|
|
15
|
+
/**
|
|
16
|
+
* Optional flex weight when groups are laid out in a row. If any group
|
|
17
|
+
* sets this, the weights are used as `flex-grow` values (so e.g. 40 / 60
|
|
18
|
+
* gives a 40% / 60% split). When omitted on every group the layout falls
|
|
19
|
+
* back to equal-width columns.
|
|
20
|
+
*/
|
|
21
|
+
flex?: number;
|
|
15
22
|
}
|
package/src/env.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
NEXT_PUBLIC_INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
|
|
5
|
-
PUBLISH_TIMESTAMP:
|
|
6
|
-
VERSION: "23.0.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1782250584329 || Date.now(),
|
|
6
|
+
VERSION: "23.0.1" || '--current-version--',
|
|
7
7
|
};
|