@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.
Files changed (45) hide show
  1. package/index.css +13 -39
  2. package/package.json +1 -1
  3. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +4 -6
  4. package/src/View/Components/AdaptableObjectList/objectListActionButtonStyles.d.ts +1 -1
  5. package/src/View/Components/AdaptableObjectList/objectListActionButtonStyles.js +1 -1
  6. package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +2 -2
  7. package/src/View/Components/ToolPanel/ToolPanelPopupSections.js +5 -2
  8. package/src/View/Layout/LayoutCloneButton.js +2 -1
  9. package/src/View/Layout/Wizard/sections/RowSummarySection.js +5 -5
  10. package/src/View/StatusBar/StatusBarPopup.js +4 -0
  11. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -3
  12. package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +1 -2
  13. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +31 -2
  14. package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +1 -2
  15. package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +1 -2
  16. package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +1 -2
  17. package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +1 -2
  18. package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +1 -1
  19. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.d.ts +0 -3
  20. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +5 -6
  21. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.d.ts +0 -3
  22. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +1 -4
  23. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview.d.ts +0 -3
  24. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview.js +1 -4
  25. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.d.ts +0 -3
  26. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.js +1 -4
  27. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.d.ts +0 -3
  28. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.js +1 -4
  29. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.d.ts +0 -3
  30. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +1 -4
  31. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.d.ts +0 -3
  32. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.js +4 -5
  33. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.d.ts +0 -3
  34. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.js +1 -4
  35. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +1 -2
  36. package/src/View/Wizard/CollapsibleWizardCard.js +1 -1
  37. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +7 -0
  38. package/src/View/Wizard/OnePageWizards.d.ts +8 -0
  39. package/src/View/Wizard/OnePageWizards.js +2 -2
  40. package/src/components/Combobox/VirtualizedList.js +7 -6
  41. package/src/components/Combobox/index.js +6 -5
  42. package/src/components/DragAndDropContext/ModuleManager.js +5 -2
  43. package/src/components/DragAndDropContext/types.d.ts +7 -0
  44. package/src/env.js +2 -2
  45. package/tsconfig.cjs.tsbuildinfo +1 -1
package/index.css CHANGED
@@ -798,15 +798,15 @@
798
798
  .twa\:min-h-\[300px\] {
799
799
  min-height: 300px;
800
800
  }
801
+ .twa\:min-h-\[500px\] {
802
+ min-height: 500px;
803
+ }
801
804
  .twa\:min-h-auto {
802
805
  min-height: auto;
803
806
  }
804
807
  .twa\:min-h-auto\! {
805
808
  min-height: auto !important;
806
809
  }
807
- .twa\:min-h-full {
808
- min-height: 100%;
809
- }
810
810
  .twa\:min-h-input {
811
811
  min-height: var(--ab-input-height);
812
812
  }
@@ -1909,6 +1909,9 @@
1909
1909
  .twa\:pt-0 {
1910
1910
  padding-top: 0;
1911
1911
  }
1912
+ .twa\:pt-0\! {
1913
+ padding-top: 0 !important;
1914
+ }
1912
1915
  .twa\:pt-0\.5 {
1913
1916
  padding-top: calc(var(--ab-base-space) * 0.5);
1914
1917
  }
@@ -8014,50 +8017,17 @@
8014
8017
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 24%, transparent);
8015
8018
  }
8016
8019
  }
8017
- .ab-SimpleButton.ab-ObjectListActionButton--edit {
8018
- background-color: var(--ab-color-action-edit) !important;
8019
- }
8020
- @supports (color: color-mix(in lab, red, red)) {
8021
- .ab-SimpleButton.ab-ObjectListActionButton--edit {
8022
- background-color: color-mix(in srgb, var(--ab-color-action-edit) 14%, var(--ab-color-muted)) !important;
8023
- }
8024
- }
8025
- .ab-SimpleButton.ab-ObjectListActionButton--edit {
8026
- color: var(--ab-color-action-edit);
8027
- }
8028
- .ab-SimpleButton.ab-ObjectListActionButton--suspend {
8020
+ .ab-SimpleButton.ab-ObjectListActionButton--edit, .ab-SimpleButton.ab-ObjectListActionButton--suspend, .ab-SimpleButton.ab-ObjectListActionButton--delete, .ab-SimpleButton.ab-ObjectListActionButton--share, .ab-SimpleButton.ab-ObjectListActionButton--clone {
8029
8021
  background-color: var(--ab-color-primary-foreground) !important;
8030
8022
  }
8031
8023
  @supports (color: color-mix(in lab, red, red)) {
8032
- .ab-SimpleButton.ab-ObjectListActionButton--suspend {
8024
+ .ab-SimpleButton.ab-ObjectListActionButton--edit, .ab-SimpleButton.ab-ObjectListActionButton--suspend, .ab-SimpleButton.ab-ObjectListActionButton--delete, .ab-SimpleButton.ab-ObjectListActionButton--share, .ab-SimpleButton.ab-ObjectListActionButton--clone {
8033
8025
  background-color: color-mix( in srgb, var(--ab-color-primary-foreground) 10%, var(--ab-color-muted) ) !important;
8034
8026
  }
8035
8027
  }
8036
- .ab-SimpleButton.ab-ObjectListActionButton--suspend {
8028
+ .ab-SimpleButton.ab-ObjectListActionButton--edit, .ab-SimpleButton.ab-ObjectListActionButton--suspend, .ab-SimpleButton.ab-ObjectListActionButton--delete, .ab-SimpleButton.ab-ObjectListActionButton--share, .ab-SimpleButton.ab-ObjectListActionButton--clone {
8037
8029
  color: var(--ab-color-primary-foreground);
8038
8030
  }
8039
- .ab-SimpleButton.ab-ObjectListActionButton--delete {
8040
- background-color: var(--ab-color-action-delete) !important;
8041
- }
8042
- @supports (color: color-mix(in lab, red, red)) {
8043
- .ab-SimpleButton.ab-ObjectListActionButton--delete {
8044
- background-color: color-mix(in srgb, var(--ab-color-action-delete) 14%, var(--ab-color-muted)) !important;
8045
- }
8046
- }
8047
- .ab-SimpleButton.ab-ObjectListActionButton--delete {
8048
- color: var(--ab-color-action-delete);
8049
- }
8050
- .ab-SimpleButton.ab-ObjectListActionButton--share {
8051
- background-color: var(--ab-color-action-share) !important;
8052
- }
8053
- @supports (color: color-mix(in lab, red, red)) {
8054
- .ab-SimpleButton.ab-ObjectListActionButton--share {
8055
- background-color: color-mix(in srgb, var(--ab-color-action-share) 14%, var(--ab-color-muted)) !important;
8056
- }
8057
- }
8058
- .ab-SimpleButton.ab-ObjectListActionButton--share {
8059
- color: var(--ab-color-action-share);
8060
- }
8061
8031
  .ab-SimpleButton.ab-ObjectListActionButton:hover:not(:disabled) {
8062
8032
  box-shadow: inset 0 0 0 1px currentColor;
8063
8033
  }
@@ -9067,6 +9037,10 @@
9067
9037
  .ab--theme-dark input.ab-Input[type='number']::-webkit-outer-spin-button,.ab--theme-dark input.ab-Input[type='number']::-webkit-inner-spin-button {
9068
9038
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" viewBox="4 0 18 18" version="1.1"><path fill="%23f7f7f7" d="M7 10l5 5 5-5z" transform="translate(0, 2)"/><path fill="%23f7f7f7" d="M7 14l5-5 5 5z" transform="translate(0, -6)"/></svg>') no-repeat center center;
9069
9039
  }
9040
+ .ab--theme-dark input.ab-Input[type='time']::-webkit-calendar-picker-indicator,.ab--theme-dark input.ab-Input[type='date']::-webkit-calendar-picker-indicator,.ab--theme-dark input.ab-Input[type='datetime-local']::-webkit-calendar-picker-indicator,.ab--theme-dark input.ab-Input[type='month']::-webkit-calendar-picker-indicator,.ab--theme-dark input.ab-Input[type='week']::-webkit-calendar-picker-indicator {
9041
+ filter: invert(1);
9042
+ opacity: 0.85;
9043
+ }
9070
9044
  }
9071
9045
  @property --tw-translate-x {
9072
9046
  syntax: "*";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-cjs",
3
- "version": "23.0.0-canary.9",
3
+ "version": "23.0.1",
4
4
  "description": "Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
5
5
  "keywords": [
6
6
  "web-components",
@@ -15,10 +15,9 @@ const ButtonEdit_1 = require("../Buttons/ButtonEdit");
15
15
  const ButtonShare_1 = require("../Buttons/ButtonShare");
16
16
  const SuspendToggleButton_1 = require("../Buttons/SuspendToggleButton/SuspendToggleButton");
17
17
  const Flex_1 = require("../../../components/Flex");
18
- const twMerge_1 = require("../../../twMerge");
19
18
  const Tag_1 = require("../../../components/Tag/Tag");
20
19
  const objectListActionButtonStyles_1 = require("./objectListActionButtonStyles");
21
- const ICON_SIZE = 26;
20
+ const ICON_SIZE = 24;
22
21
  const LIST_BASE_CLASS_NAME = 'ab-Adaptable-Object-List';
23
22
  const ITEM_BASE_CLASS_NAME = `${LIST_BASE_CLASS_NAME}__Item`;
24
23
  const AdaptableObjectListItemView = (props) => {
@@ -28,8 +27,7 @@ const AdaptableObjectListItemView = (props) => {
28
27
  disabled: props.deleteDisabled,
29
28
  tooltip: props.deleteTooltip ?? 'Delete',
30
29
  iconSize: ICON_SIZE,
31
- ConfirmationMsg: props.deleteConfirmationMsg ??
32
- `Are you sure you want to delete this ${props.entityType}?`,
30
+ ConfirmationMsg: props.deleteConfirmationMsg ?? `Are you sure you want to delete this ${props.entityType}?`,
33
31
  ConfirmationTitle: `Delete ${props.entityType}`,
34
32
  ConfirmAction: props.deleteAction,
35
33
  accessLevel: props.accessLevel,
@@ -40,8 +38,8 @@ const AdaptableObjectListItemView = (props) => {
40
38
  dispatch(props.deleteAction);
41
39
  };
42
40
  }
43
- const deleteActionButton = ((0, jsx_runtime_1.jsx)(ButtonDelete_1.ButtonDelete, { ...deleteActionProps, className: (0, twMerge_1.twMerge)((0, objectListActionButtonStyles_1.objectListActionButtonClassName)('delete'), deleteActionProps.className) }));
44
- return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { "data-name": "adaptable-object-list-item", "data-value": props.abObject.Uuid, as: "li", className: (0, twMerge_1.twMerge)(baseClassName, 'twa:rounded-standard', props.className), style: props.style, children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: `twa:flex-1 ${baseClassName}__rows twa:gap-2 twa:flex twa:flex-col`, children: props.items.filter?.(Boolean)?.map((tag, index) => {
41
+ const deleteActionButton = ((0, jsx_runtime_1.jsx)(ButtonDelete_1.ButtonDelete, { ...deleteActionProps, className: (0, utils_1.cn)((0, objectListActionButtonStyles_1.objectListActionButtonClassName)('delete'), deleteActionProps.className) }));
42
+ return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { "data-name": "adaptable-object-list-item", "data-value": props.abObject.Uuid, as: "li", className: (0, utils_1.cn)(baseClassName, 'twa:rounded-standard', props.className), style: props.style, children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: `twa:flex-1 ${baseClassName}__rows twa:gap-2 twa:flex twa:flex-col`, children: props.items.filter?.(Boolean)?.map((tag, index) => {
45
43
  const labelElement = typeof tag.label === 'function'
46
44
  ? React.createElement(tag.label, { key: index, data: props.abObject })
47
45
  : tag.label ?? tag.name;
@@ -1,2 +1,2 @@
1
- export type ObjectListActionKind = 'edit' | 'suspend' | 'delete' | 'share';
1
+ export type ObjectListActionKind = 'edit' | 'suspend' | 'delete' | 'share' | 'clone';
2
2
  export declare const objectListActionButtonClassName: (kind: ObjectListActionKind, className?: string) => string;
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.objectListActionButtonClassName = void 0;
4
4
  const utils_1 = require("../../../lib/utils");
5
- const objectListActionButtonClassName = (kind, className) => (0, utils_1.cn)('ab-ObjectListActionButton', `ab-ObjectListActionButton--${kind}`, className);
5
+ const objectListActionButtonClassName = (kind, className) => (0, utils_1.cn)('ab-ObjectListActionButton', `ab-ObjectListActionButton--${kind}`, 'twa:shadow-sm', className);
6
6
  exports.objectListActionButtonClassName = objectListActionButtonClassName;
@@ -7,7 +7,7 @@ const React = tslib_1.__importStar(require("react"));
7
7
  const SimpleButton_1 = tslib_1.__importDefault(require("../../../../components/SimpleButton"));
8
8
  const GeneralConstants_1 = require("../../../../Utilities/Constants/GeneralConstants");
9
9
  const utils_1 = require("../../../../lib/utils");
10
- exports.SuspendToggleButton = React.memo(({ suspendableObject, onUnSuspend, onSuspend, style, disabled, accessLevel, className, iconSize = 26, }) => {
10
+ exports.SuspendToggleButton = React.memo(({ suspendableObject, onUnSuspend, onSuspend, style, disabled, accessLevel, className, iconSize = 24, }) => {
11
11
  const preparedDisabled = (accessLevel && accessLevel === GeneralConstants_1.ACCESS_LEVEL_READ_ONLY) || disabled;
12
12
  const isSuspended = suspendableObject.IsSuspended;
13
13
  const handleClick = React.useCallback(() => {
@@ -18,5 +18,5 @@ exports.SuspendToggleButton = React.memo(({ suspendableObject, onUnSuspend, onSu
18
18
  onSuspend(suspendableObject);
19
19
  }
20
20
  }, [isSuspended, onSuspend, onUnSuspend, suspendableObject]);
21
- return ((0, jsx_runtime_1.jsx)(SimpleButton_1.default, { className: (0, utils_1.cn)('ab-SuspendButton', isSuspended && 'twa:opacity-60', className), "data-name": isSuspended ? 'resume' : 'suspend', disabled: preparedDisabled, style: style, variant: "text", tone: "neutral", iconSize: iconSize, icon: isSuspended ? 'resume' : 'pause', tooltip: isSuspended ? 'Resume' : 'Suspend', accessLevel: accessLevel, onClick: handleClick }));
21
+ return ((0, jsx_runtime_1.jsx)(SimpleButton_1.default, { className: (0, utils_1.cn)('ab-SuspendButton', className), "data-name": isSuspended ? 'resume' : 'suspend', disabled: preparedDisabled, style: style, variant: "text", tone: "neutral", iconSize: iconSize, icon: isSuspended ? 'resume' : 'pause', tooltip: isSuspended ? 'Resume' : 'Suspend', accessLevel: accessLevel, onClick: handleClick }));
22
22
  });
@@ -18,8 +18,11 @@ var ToolPanelConfigView;
18
18
  })(ToolPanelConfigView || (exports.ToolPanelConfigView = ToolPanelConfigView = {}));
19
19
  const ToolPanelPopupSections = (props) => {
20
20
  const { api } = (0, AdaptableContext_1.useAdaptable)();
21
- const initialExpandedId = props.initialTab === ToolPanelConfigView.Buttons ? 'module-buttons' : 'tool-panels';
22
- const { bindCard, hasExpandedCard, expandedFillsSpace } = (0, CollapsibleWizardCard_1.useWizardCardAccordion)(initialExpandedId);
21
+ // Start with both cards collapsed so the user sees the popup's full
22
+ // summary at a glance and explicitly chooses which to edit. `initialTab`
23
+ // is still accepted on the props for backwards compatibility but no
24
+ // longer pre-expands a card.
25
+ const { bindCard, hasExpandedCard, expandedFillsSpace } = (0, CollapsibleWizardCard_1.useWizardCardAccordion)(null);
23
26
  const selectedModuleButtons = [];
24
27
  if (ArrayExtensions_1.default.IsNotNullOrEmpty(props.ToolPanelState.ModuleButtons)) {
25
28
  props.ToolPanelState.ModuleButtons.forEach((module) => {
@@ -8,12 +8,13 @@ const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleB
8
8
  const AdaptableContext_1 = require("../AdaptableContext");
9
9
  const isPivotLayout_1 = require("../../Utilities/isPivotLayout");
10
10
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
11
+ const objectListActionButtonStyles_1 = require("../Components/AdaptableObjectList/objectListActionButtonStyles");
11
12
  const LayoutCloneButton = ({ data, accessLevel }) => {
12
13
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
13
14
  const isDisabled = accessLevel === GeneralConstants_1.ACCESS_LEVEL_READ_ONLY;
14
15
  const handleClick = React.useCallback(() => {
15
16
  adaptable.api.layoutApi.showLayoutEditor(data.Name, (0, isPivotLayout_1.isPivotLayout)(data) ? 'pivot' : 'table', 'Clone');
16
17
  }, []);
17
- return ((0, jsx_runtime_1.jsx)(SimpleButton_1.default, { onClick: handleClick, disabled: isDisabled, variant: "text", icon: "clone", tooltip: "Clone" }));
18
+ return ((0, jsx_runtime_1.jsx)(SimpleButton_1.default, { onClick: handleClick, disabled: isDisabled, variant: "text", iconSize: 24, icon: "clone", tooltip: "Clone", className: (0, objectListActionButtonStyles_1.objectListActionButtonClassName)('clone') }));
18
19
  };
19
20
  exports.LayoutCloneButton = LayoutCloneButton;
@@ -144,7 +144,7 @@ const RowSummaryEditorForm = React.memo(({ rowSummary, onChange, availableScalar
144
144
  sortUnorderedItems: false,
145
145
  }).map((colId) => adaptable.api.columnApi.getColumnWithColumnId(colId));
146
146
  }, [rowSummary.ColumnsMap]);
147
- return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:flex twa:flex-col twa:gap-3 twa:h-full twa:min-h-0 twa:overflow-hidden", children: [(0, jsx_runtime_1.jsxs)(FormLayout_1.default, { children: [(0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Position", children: (0, jsx_runtime_1.jsx)(NewSelect_1.SingleSelect, { items: [
147
+ return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:flex twa:flex-col twa:gap-3 twa:h-full twa:overflow-hidden", children: [(0, jsx_runtime_1.jsxs)(FormLayout_1.default, { children: [(0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Position", children: (0, jsx_runtime_1.jsx)(NewSelect_1.SingleSelect, { items: [
148
148
  {
149
149
  label: 'Top',
150
150
  value: 'Top',
@@ -163,7 +163,7 @@ const RowSummaryEditorForm = React.memo(({ rowSummary, onChange, availableScalar
163
163
  ...rowSummary,
164
164
  IncludeOnlyFilteredRows,
165
165
  });
166
- }, children: "Include Only Filtered Rows" }) })] }), (0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, className: "twa:flex-1 twa:min-h-0 twa:overflow-hidden twa:flex twa:flex-col", children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Column Aggregations" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Select columns and choose an aggregation function for each" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:flex-1 twa:min-h-0 twa:overflow-hidden twa:p-1", children: (0, jsx_runtime_1.jsx)(ValueSelector_1.ValueSelector, { style: { minHeight: 0, maxHeight: '100%' }, showFilterInput: true, toggleSelectionOnRowClick: false, filter: Utilities_1.columnFilter, toIdentifier: (column) => column.columnId, toLabel: (option) => option.friendlyName ?? option.columnId, options: columns, optionLayout: "label-beside-checkbox", toListLabel: (column) => {
166
+ }, children: "Include Only Filtered Rows" }) })] }), (0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, className: "twa:flex-1 twa:min-h-0 twa:overflow-hidden twa:flex twa:flex-col", children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Column Aggregations" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Select columns and choose an aggregation function for each" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:flex-1 twa:min-h-0 twa:overflow-hidden twa:p-1", children: (0, jsx_runtime_1.jsx)(ValueSelector_1.ValueSelector, { showFilterInput: true, className: "twa:max-h-full twa:min-h-0", toggleSelectionOnRowClick: false, filter: Utilities_1.columnFilter, toIdentifier: (column) => column.columnId, toLabel: (option) => option.friendlyName ?? option.columnId, options: columns, optionLayout: "label-beside-checkbox", toListLabel: (column) => {
167
167
  const label = column.friendlyName ?? column.columnId;
168
168
  const disabled = !(column.columnId in (rowSummary.ColumnsMap ?? {}));
169
169
  if (disabled) {
@@ -244,9 +244,9 @@ const RowSummarySection = (props) => {
244
244
  }
245
245
  }
246
246
  };
247
- return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: (0, utils_1.cn)((0, CollapsibleWizardCard_1.getWizardAccordionSectionClassName)(hasExpandedCard, expandedFillsSpace), 'twa:p-3'), children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:mb-2 twa:max-w-[520px] twa:shrink-0", children: "Add summary rows at the top or bottom of the grid with aggregated column values" }), (0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: "twa:justify-end twa:mb-2 twa:shrink-0", children: (0, jsx_runtime_1.jsx)(ButtonNew_1.ButtonNew, { onClick: handleAddRowSummary, children: "Add Row Summary" }) }), (0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-3 twa:min-h-0", children: rowSummaries.map((rowSummary, index) => {
247
+ return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: (0, utils_1.cn)((0, CollapsibleWizardCard_1.getWizardAccordionSectionClassName)(hasExpandedCard, expandedFillsSpace), 'twa:p-3'), children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:mb-2 twa:max-w-[520px] twa:shrink-0", children: "Add summary rows at the top or bottom of the grid with aggregated column values" }), (0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: "twa:justify-end twa:mb-2 twa:shrink-0", children: (0, jsx_runtime_1.jsx)(ButtonNew_1.ButtonNew, { onClick: handleAddRowSummary, children: "Add Row Summary" }) }), (0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-3 twa:min-h-0 twa:flex-1 twa:overflow-y-auto", children: rowSummaries.map((rowSummary, index) => {
248
248
  const cardBinding = bindCard(rowSummaryCardId(index), { fillAvailable: true });
249
- return ((0, jsx_runtime_1.jsx)(CollapsibleWizardCard_1.CollapsibleWizardCard, { ...cardBinding, surface: "panel", "data-name": `row-summary-${index}`, title: `Row Summary ${index + 1}`, help: "Configure position, filters, and column aggregations for this summary row", collapsedHelp: false, compactSummary: (0, jsx_runtime_1.jsx)(RowSummaryPositionTag, { position: rowSummary.Position }), headerVisual: !cardBinding.expanded ? ((0, jsx_runtime_1.jsx)(RowSummaryPositionTag, { position: rowSummary.Position })) : undefined, headerActions: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [cardBinding.expanded ? ((0, jsx_runtime_1.jsx)(SuspendToggleButton_1.SuspendToggleButton, { iconSize: 26, className: (0, objectListActionButtonStyles_1.objectListActionButtonClassName)('suspend'), onSuspend: () => {
249
+ return ((0, jsx_runtime_1.jsx)(CollapsibleWizardCard_1.CollapsibleWizardCard, { ...cardBinding, surface: "panel", "data-name": `row-summary-${index}`, title: `Row Summary ${index + 1}`, help: "Configure position, filters, and column aggregations for this summary row", collapsedHelp: false, compactSummary: (0, jsx_runtime_1.jsx)(RowSummaryPositionTag, { position: rowSummary.Position }), headerVisual: !cardBinding.expanded ? ((0, jsx_runtime_1.jsx)(RowSummaryPositionTag, { position: rowSummary.Position })) : undefined, headerActions: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [cardBinding.expanded ? ((0, jsx_runtime_1.jsx)(SuspendToggleButton_1.SuspendToggleButton, { className: (0, objectListActionButtonStyles_1.objectListActionButtonClassName)('suspend'), onSuspend: () => {
250
250
  const newSummaries = [...rowSummaries];
251
251
  newSummaries[index] = { ...rowSummary, IsSuspended: true };
252
252
  props.onChange({ ...layout, RowSummaries: newSummaries });
@@ -254,7 +254,7 @@ const RowSummarySection = (props) => {
254
254
  const newSummaries = [...rowSummaries];
255
255
  newSummaries[index] = { ...rowSummary, IsSuspended: false };
256
256
  props.onChange({ ...layout, RowSummaries: newSummaries });
257
- }, suspendableObject: rowSummary })) : null, (0, jsx_runtime_1.jsx)(SimpleButton_1.default, { icon: "delete", variant: "text", tooltip: "Delete row summary", className: (0, objectListActionButtonStyles_1.objectListActionButtonClassName)('delete'), onClick: () => handleDeleteRowSummary(index) })] }), summary: (0, jsx_runtime_1.jsx)(RowSummaryCardSummary, { rowSummary: rowSummary }), className: "twa:overflow-hidden twa:flex twa:flex-col", bodyClassName: "twa:min-h-[200px] twa:max-h-[420px] twa:overflow-hidden twa:flex twa:flex-col twa:!pt-0", children: (0, jsx_runtime_1.jsx)(RowSummaryEditorForm, { rowSummary: rowSummary, availableScalarExpressions: availableScalarExpressions, onChange: (nextRowSummary) => {
257
+ }, suspendableObject: rowSummary })) : null, (0, jsx_runtime_1.jsx)(SimpleButton_1.default, { icon: "delete", variant: "text", tooltip: "Delete row summary", className: (0, objectListActionButtonStyles_1.objectListActionButtonClassName)('delete'), onClick: () => handleDeleteRowSummary(index) })] }), summary: (0, jsx_runtime_1.jsx)(RowSummaryCardSummary, { rowSummary: rowSummary }), className: (0, utils_1.cn)('twa:overflow-hidden twa:flex twa:flex-col', cardBinding.expanded && 'twa:min-h-[500px]'), bodyClassName: " twa:overflow-hidden twa:flex twa:flex-col twa:pt-0!", children: (0, jsx_runtime_1.jsx)(RowSummaryEditorForm, { rowSummary: rowSummary, availableScalarExpressions: availableScalarExpressions, onChange: (nextRowSummary) => {
258
258
  const newSummaries = [...rowSummaries];
259
259
  newSummaries[index] = nextRowSummary;
260
260
  props.onChange({
@@ -51,18 +51,22 @@ const StatusBarPopup = (props) => {
51
51
  moduleShortcutIds.push(item.Id);
52
52
  }
53
53
  });
54
+ // Roughly balance the two boxes by item count (~10 panels vs ~17 shortcuts)
55
+ // so the wider list gets the extra room and they feel more even.
54
56
  return [
55
57
  {
56
58
  listId: 'UNUSED-PANELS',
57
59
  title: 'Status Panels',
58
60
  help: 'Fully featured actionable controls',
59
61
  items: statusPanelIds,
62
+ flex: 40,
60
63
  },
61
64
  {
62
65
  listId: 'UNUSED-SHORTCUTS',
63
66
  title: 'Module Shortcuts',
64
67
  help: 'Buttons to open Module Status Panel',
65
68
  items: moduleShortcutIds,
69
+ flex: 60,
66
70
  },
67
71
  ];
68
72
  }, [availableItems, adaptable]);
@@ -25,7 +25,6 @@ const BadgePillStyleEditor_1 = require("./BadgePillStyleEditor");
25
25
  const StyledColumnSliceStyleEditors_1 = require("./StyledColumnSliceStyleEditors");
26
26
  const Card_1 = require("../../../components/Card");
27
27
  const AdaptableContext_1 = require("../../AdaptableContext");
28
- const StyledColumnBadgePreview_1 = require("./StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview");
29
28
  const CollapsibleWizardCard_1 = require("../../Wizard/CollapsibleWizardCard");
30
29
  const NewSelect_1 = require("../../../components/NewSelect");
31
30
  const utils_1 = require("../../../lib/utils");
@@ -239,7 +238,7 @@ const StyledColumnBadgeSection = (props) => {
239
238
  }
240
239
  }
241
240
  };
242
- return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: (0, utils_1.cn)((0, CollapsibleWizardCard_1.getWizardAccordionSectionClassName)(hasExpandedCard, expandedFillsSpace), 'twa:p-2'), children: [(0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: "twa:justify-end twa:mb-2 twa:shrink-0", children: (0, jsx_runtime_1.jsx)(ButtonNew_1.ButtonNew, { onClick: handleAddBadge, children: "Add Badge" }) }), (0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-3 twa:min-h-0", children: badges.map((badge, index) => {
241
+ return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: (0, utils_1.cn)((0, CollapsibleWizardCard_1.getWizardAccordionSectionClassName)(hasExpandedCard, expandedFillsSpace), 'twa:p-2'), children: [(0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: "twa:justify-end twa:mb-2 twa:shrink-0", children: (0, jsx_runtime_1.jsx)(ButtonNew_1.ButtonNew, { onClick: handleAddBadge, children: "Add Badge" }) }), (0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-3 twa:min-h-0 twa:overflow-y-auto", children: badges.map((badge, index) => {
243
242
  const handleEditBadge = (nextBadge) => {
244
243
  const newBadges = [...badges];
245
244
  newBadges[index] = nextBadge;
@@ -296,7 +295,7 @@ const StyledColumnBadgeStyleSection = (props) => {
296
295
  delete cleaned.Cell;
297
296
  props.onChange({ ...data, BadgeStyle: cleaned });
298
297
  }
299
- } }) })] })] }), (0, jsx_runtime_1.jsx)(StyledColumnBadgePreview_1.StyledColumnBadgePreviewCard, { data: data })] }));
298
+ } }) })] })] })] }));
300
299
  };
301
300
  exports.StyledColumnBadgeStyleSection = StyledColumnBadgeStyleSection;
302
301
  const renderBadgeStyleSummary = (styledColumn, api) => {
@@ -16,7 +16,6 @@ const Flex_1 = require("../../../components/Flex");
16
16
  const StyledColumnSliceStyleEditors_1 = require("./StyledColumnSliceStyleEditors");
17
17
  const Card_1 = require("../../../components/Card");
18
18
  const ErrorBox_1 = tslib_1.__importDefault(require("../../../components/ErrorBox"));
19
- const StyledColumnSparklinePreview_1 = require("./StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview");
20
19
  const STYLE_FORM_SIZES = ['200px', '1fr'];
21
20
  /** Sentinel for the theme dropdown — persisted options omit `theme` when this is chosen. */
22
21
  const SPARKLINE_CUSTOM_COLOURS_THEME = '__custom__';
@@ -174,7 +173,7 @@ const StyledColumnSparklineSettingsSection = ({ onChange }) => {
174
173
  delete sparkStyle.Cell;
175
174
  }
176
175
  onChange({ ...data, SparklineStyle: sparkStyle });
177
- } }) })] }), (0, jsx_runtime_1.jsx)(StyledColumnSparklinePreview_1.StyledColumnSparklinePreviewCard, { data: data })] }));
176
+ } }) })] })] }));
178
177
  };
179
178
  exports.StyledColumnSparklineSettingsSection = StyledColumnSparklineSettingsSection;
180
179
  const SparklineObjectArrayProperties = ({ options, onChange, }) => {
@@ -270,12 +270,41 @@ const StyledColumnWizard = (props) => {
270
270
  render: () => ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:p-2", children: (0, jsx_runtime_1.jsx)(StyledColumnBadgeSection_1.StyledColumnBadgeStyleSection, { onChange: setStyledColumn }) })),
271
271
  });
272
272
  }
273
+ // Persistent live preview shown at the top of the section content on
274
+ // every step. We render the bare preview (no Card chrome) so it sits
275
+ // flush above the form. Only one of these can apply at a time — the
276
+ // styled column owns exactly one of these style buckets.
277
+ let headerPreview = null;
278
+ if (styledColumn.GradientStyle) {
279
+ headerPreview = (0, jsx_runtime_1.jsx)(StyledColumnGradientPreview_1.StyledColumnGradientPreview, { data: styledColumn });
280
+ }
281
+ else if (styledColumn.PercentBarStyle) {
282
+ headerPreview = (0, jsx_runtime_1.jsx)(StyledColumnPercentBarPreview_1.StyledColumnPercentBarPreview, { data: styledColumn });
283
+ }
284
+ else if (styledColumn.BadgeStyle) {
285
+ headerPreview = (0, jsx_runtime_1.jsx)(StyledColumnBadgePreview_1.StyledColumnBadgePreview, { data: styledColumn });
286
+ }
287
+ else if (styledColumn.RatingStyle) {
288
+ headerPreview = (0, jsx_runtime_1.jsx)(StyledColumnRatingPreview_1.StyledColumnRatingPreview, { data: styledColumn });
289
+ }
290
+ else if (styledColumn.IconStyle) {
291
+ headerPreview = (0, jsx_runtime_1.jsx)(StyledColumnIconPreview_1.StyledColumnIconPreview, { data: styledColumn });
292
+ }
293
+ else if (styledColumn.BulletChartStyle) {
294
+ headerPreview = (0, jsx_runtime_1.jsx)(StyledColumnBulletPreview_1.StyledColumnBulletPreview, { data: styledColumn });
295
+ }
296
+ else if (styledColumn.RangeBarStyle) {
297
+ headerPreview = (0, jsx_runtime_1.jsx)(StyledColumnRangeBarPreview_1.StyledColumnRangeBarPreview, { data: styledColumn });
298
+ }
299
+ else if (styledColumn.SparklineStyle) {
300
+ headerPreview = (0, jsx_runtime_1.jsx)(StyledColumnSparklinePreview_1.StyledColumnSparklinePreview, { data: styledColumn });
301
+ }
273
302
  return ((0, jsx_runtime_1.jsx)(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: defaultCurrentSectionName, moduleInfo: props.moduleInfo,
274
303
  // Display the picked type in the header (e.g. "Gradient Column",
275
304
  // "Percent Bar Column") so the user always knows which kind of
276
305
  // column they're configuring. Falls back to "Styled Column"
277
306
  // before a type has been selected.
278
- moduleName: (0, StyledColumnWizardTypeSection_1.getStyledColumnWizardTitle)(styledColumn), data: styledColumn, onFinish: handleFinish, onHide: props.onCloseWizard, sections: [
307
+ moduleName: (0, StyledColumnWizardTypeSection_1.getStyledColumnWizardTitle)(styledColumn), data: styledColumn, headerPreview: headerPreview, onFinish: handleFinish, onHide: props.onCloseWizard, sections: [
279
308
  {
280
309
  details: 'Enter a Name and select a Styled Column Type',
281
310
  isValid: (data) => {
@@ -313,7 +342,7 @@ const StyledColumnWizard = (props) => {
313
342
  title: 'Summary',
314
343
  details: 'Review your Styled Column',
315
344
  render: () => {
316
- return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:p-2 twa:flex twa:flex-col twa:gap-3", children: [(0, jsx_runtime_1.jsx)(OnePageAdaptableWizard_1.OnePageWizardSummary, {}), styledColumn.GradientStyle && ((0, jsx_runtime_1.jsx)(StyledColumnGradientPreview_1.StyledColumnGradientPreviewCard, { data: styledColumn })), styledColumn.PercentBarStyle && ((0, jsx_runtime_1.jsx)(StyledColumnPercentBarPreview_1.StyledColumnPercentBarPreviewCard, { data: styledColumn })), styledColumn.BadgeStyle && ((0, jsx_runtime_1.jsx)(StyledColumnBadgePreview_1.StyledColumnBadgePreviewCard, { data: styledColumn })), styledColumn.RatingStyle && ((0, jsx_runtime_1.jsx)(StyledColumnRatingPreview_1.StyledColumnRatingPreviewCard, { data: styledColumn })), styledColumn.IconStyle && ((0, jsx_runtime_1.jsx)(StyledColumnIconPreview_1.StyledColumnIconPreviewCard, { data: styledColumn })), styledColumn.BulletChartStyle && ((0, jsx_runtime_1.jsx)(StyledColumnBulletPreview_1.StyledColumnBulletPreviewCard, { data: styledColumn })), styledColumn.RangeBarStyle && ((0, jsx_runtime_1.jsx)(StyledColumnRangeBarPreview_1.StyledColumnRangeBarPreviewCard, { data: styledColumn })), styledColumn.SparklineStyle && ((0, jsx_runtime_1.jsx)(StyledColumnSparklinePreview_1.StyledColumnSparklinePreviewCard, { data: styledColumn }))] }));
345
+ return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:p-2 twa:flex twa:flex-col twa:gap-3", children: (0, jsx_runtime_1.jsx)(OnePageAdaptableWizard_1.OnePageWizardSummary, {}) }));
317
346
  },
318
347
  },
319
348
  ] }));
@@ -16,7 +16,6 @@ const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
16
16
  const AdaptableInput_1 = tslib_1.__importDefault(require("../../Components/AdaptableInput"));
17
17
  const Flex_1 = require("../../../components/Flex");
18
18
  const BulletRangesSummaryPreview_1 = require("./StyledColumnWizardStyleSection/Components/BulletRangesSummaryPreview");
19
- const StyledColumnBulletPreview_1 = require("./StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview");
20
19
  const NewSelect_1 = require("../../../components/NewSelect");
21
20
  const StyledColumnSliceStyleEditors_1 = require("./StyledColumnSliceStyleEditors");
22
21
  const Card_1 = require("../../../components/Card");
@@ -407,6 +406,6 @@ const StyledColumnWizardBulletSection = (props) => {
407
406
  delete cleaned.Font;
408
407
  props.onChange({ ...data, BulletChartStyle: cleaned });
409
408
  }
410
- } }) })] })] }), (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: "Tooltip" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Choose whether to display a tooltip" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(FormLayout_1.default, { sizes: [...BULLET_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: bullet.ToolTipText?.includes('CellValue'), onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), ' ', (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, className: "twa:ml-3", checked: bullet.ToolTipText?.includes('PercentageValue'), onChange: (checked) => toggleToolTipText('PercentageValue', checked), children: "Percent Value" })] }) }) })] }), (0, jsx_runtime_1.jsx)(StyledColumnBulletPreview_1.StyledColumnBulletPreviewCard, { data: data })] }));
409
+ } }) })] })] }), (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: "Tooltip" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Choose whether to display a tooltip" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(FormLayout_1.default, { sizes: [...BULLET_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: bullet.ToolTipText?.includes('CellValue'), onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), ' ', (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, className: "twa:ml-3", checked: bullet.ToolTipText?.includes('PercentageValue'), onChange: (checked) => toggleToolTipText('PercentageValue', checked), children: "Percent Value" })] }) }) })] })] }));
411
410
  };
412
411
  exports.StyledColumnWizardBulletSection = StyledColumnWizardBulletSection;
@@ -15,7 +15,6 @@ const GradientStyleHelper_1 = require("../../../Utilities/Helpers/StyledColumns/
15
15
  const StyledColumnSliceStyleEditors_1 = require("./StyledColumnSliceStyleEditors");
16
16
  const Card_1 = require("../../../components/Card");
17
17
  const SummaryColorTag_1 = require("../../Wizard/SummaryColorTag");
18
- const StyledColumnGradientPreview_1 = require("./StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview");
19
18
  const STYLE_FORM_SIZES = ['200px', '1fr'];
20
19
  function formatGradientToolTipSummary(opts) {
21
20
  return opts
@@ -116,6 +115,6 @@ const StyledColumnWizardGradientSection = (props) => {
116
115
  else {
117
116
  patchGradient({ AutoContrastText: true });
118
117
  }
119
- }, children: "Make text readable on tinted backgrounds" }) })] }), (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: "Tooltip" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[600px]", children: "Set Tooltip properties" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(FormLayout_1.default, { sizes: [...STYLE_FORM_SIZES], children: (0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Tooltip:", children: (0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:ml-2", children: [(0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, checked: gs.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: gs.ToolTipText?.includes('PercentageValue'), onChange: (checked) => onToolTipTextChanged('PercentageValue', checked), children: "Percent along scale" })] }) }) }) })] }), (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: "Font" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[480px]", children: "Optional font properties (takes precedence over Format Column)" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(StyledColumnSliceStyleEditors_1.StyledColumnFontStyleEditor, { api: api, disabled: disabled, value: gs.Font, onChange: onFontChange }) })] }), (0, jsx_runtime_1.jsx)(StyledColumnGradientPreview_1.StyledColumnGradientPreviewCard, { data: data }), !data.ColumnId && ((0, jsx_runtime_1.jsx)(ErrorBox_1.default, { className: "twa:mt-2", children: "Select a column before changing Gradient style." }))] }));
118
+ }, children: "Make text readable on tinted backgrounds" }) })] }), (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: "Tooltip" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[600px]", children: "Set Tooltip properties" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(FormLayout_1.default, { sizes: [...STYLE_FORM_SIZES], children: (0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: "Tooltip:", children: (0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:ml-2", children: [(0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, checked: gs.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: gs.ToolTipText?.includes('PercentageValue'), onChange: (checked) => onToolTipTextChanged('PercentageValue', checked), children: "Percent along scale" })] }) }) }) })] }), (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: "Font" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[480px]", children: "Optional font properties (takes precedence over Format Column)" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(StyledColumnSliceStyleEditors_1.StyledColumnFontStyleEditor, { api: api, disabled: disabled, value: gs.Font, onChange: onFontChange }) })] }), !data.ColumnId && ((0, jsx_runtime_1.jsx)(ErrorBox_1.default, { className: "twa:mt-2", children: "Select a column before changing Gradient style." }))] }));
120
119
  };
121
120
  exports.StyledColumnWizardGradientSection = StyledColumnWizardGradientSection;
@@ -23,7 +23,6 @@ const IconRenderer_1 = require("../../../agGrid/cellRenderers/IconRenderer");
23
23
  const Card_1 = require("../../../components/Card");
24
24
  const SummaryColorTag_1 = require("../../Wizard/SummaryColorTag");
25
25
  const StyledColumnSliceStyleEditors_1 = require("./StyledColumnSliceStyleEditors");
26
- const StyledColumnIconPreview_1 = require("./StyledColumnWizardStyleSection/Components/StyledColumnIconPreview");
27
26
  const wizardSelection_1 = require("../../../Utilities/wizardSelection");
28
27
  const STYLE_FORM_SIZES = ['200px', '1fr'];
29
28
  const detectIconKind = (spec) => {
@@ -350,7 +349,7 @@ const StyledColumnWizardIconSection = (props) => {
350
349
  { value: 'After', label: 'After' },
351
350
  { value: 'Above', label: 'Above' },
352
351
  { value: 'Below', label: 'Below' },
353
- ] }) }) })] }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: `twa:mt-3 twa:pt-3 twa:border-t twa:border-foreground/15 ${cellTextDisabled ? 'twa:opacity-50' : ''}`, children: (0, jsx_runtime_1.jsx)(StyledColumnSliceStyleEditors_1.StyledColumnFontStyleEditor, { api: api, disabled: disabled || cellTextDisabled, value: iconStyle.Font, onChange: onFontChange }) })] })] }), (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: "Tooltip" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Choose whether and how to display a tooltip" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(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, { checked: toolTipText.includes('CellValue'), onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), ' ', (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { className: "twa:ml-3", checked: toolTipText.includes('IconDescription'), onChange: (checked) => toggleToolTipText('IconDescription', checked), children: "Description" })] }) }) })] }), (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: "Cell" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Optional cell box styling (overrides Format Column properties)" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(StyledColumnSliceStyleEditors_1.StyledColumnCellStyleEditor, { api: api, disabled: disabled, value: iconStyle.Cell, onChange: onCellChange }) })] }), (0, jsx_runtime_1.jsx)(StyledColumnIconPreview_1.StyledColumnIconPreviewCard, { data: data })] }));
352
+ ] }) }) })] }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: `twa:mt-3 twa:pt-3 twa:border-t twa:border-foreground/15 ${cellTextDisabled ? 'twa:opacity-50' : ''}`, children: (0, jsx_runtime_1.jsx)(StyledColumnSliceStyleEditors_1.StyledColumnFontStyleEditor, { api: api, disabled: disabled || cellTextDisabled, value: iconStyle.Font, onChange: onFontChange }) })] })] }), (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: "Tooltip" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Choose whether and how to display a tooltip" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(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, { checked: toolTipText.includes('CellValue'), onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), ' ', (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { className: "twa:ml-3", checked: toolTipText.includes('IconDescription'), onChange: (checked) => toggleToolTipText('IconDescription', checked), children: "Description" })] }) }) })] }), (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: "Cell" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Optional cell box styling (overrides Format Column properties)" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(StyledColumnSliceStyleEditors_1.StyledColumnCellStyleEditor, { api: api, disabled: disabled, value: iconStyle.Cell, onChange: onCellChange }) })] })] }));
354
353
  };
355
354
  exports.StyledColumnWizardIconSection = StyledColumnWizardIconSection;
356
355
  // ---------------------------------------------------------------------------
@@ -18,7 +18,6 @@ const AdaptableInput_1 = tslib_1.__importDefault(require("../../Components/Adapt
18
18
  const Flex_1 = require("../../../components/Flex");
19
19
  const NewSelect_1 = require("../../../components/NewSelect");
20
20
  const RangeBarRangesSummaryPreview_1 = require("./StyledColumnWizardStyleSection/Components/RangeBarRangesSummaryPreview");
21
- const StyledColumnRangeBarPreview_1 = require("./StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview");
22
21
  const Card_1 = require("../../../components/Card");
23
22
  const SummaryColorTag_1 = require("../../Wizard/SummaryColorTag");
24
23
  const BarStylesHelper_1 = require("../../../Utilities/Helpers/StyledColumns/BarStylesHelper");
@@ -499,6 +498,6 @@ const StyledColumnWizardRangeBarSection = (props) => {
499
498
  { value: 'Clamp', label: 'Clamp to edge' },
500
499
  { value: 'Overflow', label: 'Show outside' },
501
500
  { value: 'Hide', label: 'Hide marker' },
502
- ] }) }) }), outOfRangeMode === 'Clamp' && ((0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: `Out-of-range ${api.internalApi.getCorrectEnglishVariant('Colour')}:`, children: (0, jsx_runtime_1.jsx)(ColorPicker_1.OptionalColorPicker, { disabled: disabled, api: api, value: range.OutOfRange?.Color, defaultColor: "crimson", onChange: (c) => updateOutOfRangeProperties({ Color: c }) }) }))] }) })] }), (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: "Text & Tooltip" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Optional cell-text overlay and AG Grid tooltip content." })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsxs)(FormLayout_1.default, { sizes: [...RANGE_STYLE_FORM_SIZES], children: [(0, jsx_runtime_1.jsx)(BarStyleCellTextLayoutEditor_1.BarStyleCellTextLayoutEditor, { disabled: disabled, cellTextProperties: range.CellTextProperties, onToggle: toggleCellText, onPlacementChange: onCellTextPlacementChange }), (0, jsx_runtime_1.jsxs)(FormLayout_1.FormRow, { label: "Tooltip Display:", children: [(0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, checked: range.ToolTipText?.includes('CellValue'), onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), ' ', (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, className: "twa:ml-3", checked: range.ToolTipText?.includes('PercentageValue'), onChange: (checked) => toggleToolTipText('PercentageValue', checked), children: "Percent Value" })] })] }) })] }), (0, jsx_runtime_1.jsx)(StyledColumnRangeBarPreview_1.StyledColumnRangeBarPreviewCard, { data: data })] }))] }));
501
+ ] }) }) }), outOfRangeMode === 'Clamp' && ((0, jsx_runtime_1.jsx)(FormLayout_1.FormRow, { label: `Out-of-range ${api.internalApi.getCorrectEnglishVariant('Colour')}:`, children: (0, jsx_runtime_1.jsx)(ColorPicker_1.OptionalColorPicker, { disabled: disabled, api: api, value: range.OutOfRange?.Color, defaultColor: "crimson", onChange: (c) => updateOutOfRangeProperties({ Color: c }) }) }))] }) })] }), (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: "Text & Tooltip" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Optional cell-text overlay and AG Grid tooltip content." })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsxs)(FormLayout_1.default, { sizes: [...RANGE_STYLE_FORM_SIZES], children: [(0, jsx_runtime_1.jsx)(BarStyleCellTextLayoutEditor_1.BarStyleCellTextLayoutEditor, { disabled: disabled, cellTextProperties: range.CellTextProperties, onToggle: toggleCellText, onPlacementChange: onCellTextPlacementChange }), (0, jsx_runtime_1.jsxs)(FormLayout_1.FormRow, { label: "Tooltip Display:", children: [(0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, checked: range.ToolTipText?.includes('CellValue'), onChange: (checked) => toggleToolTipText('CellValue', checked), children: "Cell Value" }), ' ', (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { disabled: disabled, className: "twa:ml-3", checked: range.ToolTipText?.includes('PercentageValue'), onChange: (checked) => toggleToolTipText('PercentageValue', checked), children: "Percent Value" })] })] }) })] })] }))] }));
503
502
  };
504
503
  exports.StyledColumnWizardRangeBarSection = StyledColumnWizardRangeBarSection;
@@ -195,6 +195,6 @@ const StyledColumnWizardRatingSection = (props) => {
195
195
  delete cleaned.Cell;
196
196
  props.onChange({ ...data, RatingStyle: cleaned });
197
197
  }
198
- } }) })] }), (0, jsx_runtime_1.jsx)(StyledColumnRatingPreview_1.StyledColumnRatingPreviewCard, { data: data })] }));
198
+ } }) })] })] }));
199
199
  };
200
200
  exports.StyledColumnWizardRatingSection = StyledColumnWizardRatingSection;
@@ -8,6 +8,3 @@ import { StyledColumn } from '../../../../../types';
8
8
  export declare const StyledColumnBadgePreview: React.FunctionComponent<React.PropsWithChildren<{
9
9
  data: StyledColumn;
10
10
  }>>;
11
- export declare const StyledColumnBadgePreviewCard: React.FunctionComponent<React.PropsWithChildren<{
12
- data: StyledColumn;
13
- }>>;
@@ -1,20 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StyledColumnBadgePreviewCard = exports.StyledColumnBadgePreview = void 0;
3
+ exports.StyledColumnBadgePreview = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const GeneralConstants_1 = require("../../../../../Utilities/Constants/GeneralConstants");
6
6
  const StyleHelper_1 = require("../../../../../Utilities/Helpers/StyleHelper");
7
7
  const AdaptableContext_1 = require("../../../../AdaptableContext");
8
8
  const Badge_1 = require("../../../../Components/Badge");
9
9
  const Flex_1 = require("../../../../../components/Flex");
10
- const Card_1 = require("../../../../../components/Card");
11
10
  const Tag_1 = require("../../../../../components/Tag");
12
11
  const OVERFLOW_CLASS = {
13
12
  Truncate: 'ab-Badge__wrapper--truncate',
14
13
  Wrap: 'ab-Badge__wrapper--wrap',
15
14
  Scroll: 'ab-Badge__wrapper--scroll',
16
15
  };
17
- const PREVIEW_CELL_CLASS = 'ab-BadgePreviewCell twa:min-w-[140px] twa:min-h-[32px] twa:px-2 twa:py-1 twa:rounded-standard twa:border twa:border-[color-mix(in_srgb,var(--ab-color-foreground)_15%,transparent)]';
16
+ const PREVIEW_CELL_CLASS = 'ab-BadgePreviewCell twa:bg-background twa:text-foreground twa:min-w-[140px] twa:min-h-[32px] twa:px-2 twa:py-1 twa:rounded-standard twa:border twa:border-[color-mix(in_srgb,var(--ab-color-foreground)_15%,transparent)]';
18
17
  const resolveBadgeRowJustify = (alignment) => {
19
18
  switch (alignment) {
20
19
  case 'Center':
@@ -45,7 +44,9 @@ const StyledColumnBadgePreview = ({ data }) => {
45
44
  const cellStyle = badgeStyle.Cell ? (0, StyleHelper_1.convertAdaptableStyleToCSS)(badgeStyle.Cell) : undefined;
46
45
  const dataType = adaptable.api.columnApi.getColumnDataTypeForColumnId(data.ColumnId);
47
46
  const wrapperStyle = {
48
- ...(spacing != null ? { ['--ab-cmp-badge__spacing']: `${spacing}px` } : {}),
47
+ ...(spacing != null
48
+ ? { ['--ab-cmp-badge__spacing']: `${spacing}px` }
49
+ : {}),
49
50
  ...(rowJustify
50
51
  ? {
51
52
  justifyContent: rowJustify,
@@ -64,5 +65,3 @@ const StyledColumnBadgePreview = ({ data }) => {
64
65
  }) }) }));
65
66
  };
66
67
  exports.StyledColumnBadgePreview = StyledColumnBadgePreview;
67
- const StyledColumnBadgePreviewCard = ({ 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.StyledColumnBadgePreview, { data: data }) })] }));
68
- exports.StyledColumnBadgePreviewCard = StyledColumnBadgePreviewCard;
@@ -4,7 +4,4 @@ import { BulletChartStyle } from '../../../../../AdaptableState/StyledColumns/Bu
4
4
  export declare const StyledColumnBulletPreview: React.FunctionComponent<React.PropsWithChildren<{
5
5
  data: StyledColumn;
6
6
  }>>;
7
- export declare const StyledColumnBulletPreviewCard: React.FunctionComponent<React.PropsWithChildren<{
8
- data: StyledColumn;
9
- }>>;
10
7
  export declare const hasBulletChartRangesConfigured: (bullet: BulletChartStyle | undefined) => boolean;
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.hasBulletChartRangesConfigured = exports.StyledColumnBulletPreviewCard = exports.StyledColumnBulletPreview = void 0;
3
+ exports.hasBulletChartRangesConfigured = exports.StyledColumnBulletPreview = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const StyleHelper_1 = require("../../../../../Utilities/Helpers/StyleHelper");
6
6
  const BarStylesHelper_1 = require("../../../../../Utilities/Helpers/StyledColumns/BarStylesHelper");
7
7
  const Flex_1 = require("../../../../../components/Flex");
8
- const Card_1 = require("../../../../../components/Card");
9
8
  const Tag_1 = require("../../../../../components/Tag");
10
9
  const StyledColumnChartListPreviews_1 = require("./StyledColumnChartListPreviews");
11
10
  const BarStyleCellTextPreview_1 = require("./BarStyleCellTextPreview");
@@ -54,7 +53,5 @@ const StyledColumnBulletPreview = ({ data }) => {
54
53
  return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: PREVIEW_CELL_CLASS, children: (0, jsx_runtime_1.jsx)(BulletChartPreviewContent, { bullet: bullet }) }));
55
54
  };
56
55
  exports.StyledColumnBulletPreview = StyledColumnBulletPreview;
57
- const StyledColumnBulletPreviewCard = ({ 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.StyledColumnBulletPreview, { data: data }) })] }));
58
- exports.StyledColumnBulletPreviewCard = StyledColumnBulletPreviewCard;
59
56
  const hasBulletChartRangesConfigured = (bullet) => Boolean(bullet?.CellRanges?.length);
60
57
  exports.hasBulletChartRangesConfigured = hasBulletChartRangesConfigured;
@@ -5,6 +5,3 @@ export declare const StyledColumnGradientPreview: React.FunctionComponent<React.
5
5
  data: StyledColumn;
6
6
  api?: AdaptableApi;
7
7
  }>>;
8
- export declare const StyledColumnGradientPreviewCard: React.FunctionComponent<React.PropsWithChildren<{
9
- data: StyledColumn;
10
- }>>;
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StyledColumnGradientPreviewCard = exports.StyledColumnGradientPreview = void 0;
3
+ exports.StyledColumnGradientPreview = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const Flex_1 = require("../../../../../components/Flex");
6
- const Card_1 = require("../../../../../components/Card");
7
6
  const Tag_1 = require("../../../../../components/Tag");
8
7
  const AdaptableContext_1 = require("../../../../AdaptableContext");
9
8
  const GradientStyleHelper_1 = require("../../../../../Utilities/Helpers/StyledColumns/GradientStyleHelper");
@@ -31,5 +30,3 @@ const StyledColumnGradientPreview = ({ data, api: apiProp }) => {
31
30
  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)(Flex_1.Box, { className: "ab-GradientPreviewCell twa:px-2 twa:py-1 twa:min-w-[56px] twa:text-2 twa:text-center twa:rounded-standard twa:border twa:border-[color-mix(in_srgb,var(--ab-color-foreground)_15%,transparent)]", style: (0, GradientStyleHelper_1.getGradientPreviewCellStyle)(value, data, api, rowNode), children: formatPreviewValue(value) }, value))) }));
32
31
  };
33
32
  exports.StyledColumnGradientPreview = StyledColumnGradientPreview;
34
- const StyledColumnGradientPreviewCard = ({ 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.StyledColumnGradientPreview, { data: data }) })] }));
35
- exports.StyledColumnGradientPreviewCard = StyledColumnGradientPreviewCard;
@@ -5,6 +5,3 @@ export declare const DEFAULT_ICON_STYLE_GAP = 4;
5
5
  export declare const StyledColumnIconPreview: React.FunctionComponent<React.PropsWithChildren<{
6
6
  data: StyledColumn;
7
7
  }>>;
8
- export declare const StyledColumnIconPreviewCard: React.FunctionComponent<React.PropsWithChildren<{
9
- data: StyledColumn;
10
- }>>;