@adaptabletools/adaptable 23.0.0 → 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/package.json
CHANGED
|
@@ -45,7 +45,12 @@ export function VirtualizedList({ open, virtualizerRef, showItemTooltip, renderC
|
|
|
45
45
|
const label = isUncreatedCreatable ? `Create "${item.label}"` : item.label;
|
|
46
46
|
const itemLabel = renderItemLabel ? (renderItemLabel(label, item)) : (_jsx("span", { className: "twa:min-w-0 twa:flex-1 twa:truncate", children: label }));
|
|
47
47
|
const itemContent = isUncreatedCreatable ? (_jsxs(_Fragment, { children: [_jsx(PlusIcon, {}), itemLabel] })) : (itemLabel);
|
|
48
|
-
|
|
48
|
+
// The Tooltip must wrap the item's inner content rather than the
|
|
49
|
+
// `ComboboxItem` itself: when the tooltip trigger renders the option
|
|
50
|
+
// element it overwrites the option's `id`, which breaks base-ui's
|
|
51
|
+
// `aria-activedescendant` (`${rootId}-${index}`) link and silences
|
|
52
|
+
// screen readers as you navigate the list.
|
|
53
|
+
return (_jsx(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: {
|
|
49
54
|
position: 'absolute',
|
|
50
55
|
left: `var(--ab-base-space)`,
|
|
51
56
|
right: `var(--ab-base-space)`,
|
|
@@ -53,10 +58,6 @@ export function VirtualizedList({ open, virtualizerRef, showItemTooltip, renderC
|
|
|
53
58
|
width: 'auto',
|
|
54
59
|
height: virtualItem.size,
|
|
55
60
|
transform: `translateY(${virtualItem.start}px)`,
|
|
56
|
-
} }, virtualItem.key));
|
|
57
|
-
if (tooltipText != null) {
|
|
58
|
-
return (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { render: itemElement, children: itemContent }), _jsx(TooltipContent, { side: "right", children: tooltipText })] }, virtualItem.key));
|
|
59
|
-
}
|
|
60
|
-
return itemElement;
|
|
61
|
+
}, children: tooltipText != null ? (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { render: _jsx("span", { className: "twa:flex twa:min-w-0 twa:flex-1 twa:items-center twa:gap-2" }), children: itemContent }), _jsx(TooltipContent, { side: "right", children: tooltipText })] })) : (itemContent) }, virtualItem.key));
|
|
61
62
|
}) }) }));
|
|
62
63
|
}
|
|
@@ -36,11 +36,12 @@ const AdaptableComboboxList = (props) => {
|
|
|
36
36
|
? `Create "${itemText}"`
|
|
37
37
|
: itemText
|
|
38
38
|
: undefined;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
39
|
+
// The Tooltip must wrap the item's inner content rather than the
|
|
40
|
+
// `ComboboxItem` itself: when the tooltip trigger renders the option element
|
|
41
|
+
// it overwrites the option's `id`, which breaks base-ui's
|
|
42
|
+
// `aria-activedescendant` (`${rootId}-${index}`) link and silences screen
|
|
43
|
+
// readers as you navigate the list.
|
|
44
|
+
return (_jsx(ComboboxItem, { value: item, "aria-label": itemText ?? undefined, className: 'ab-Combobox-Row', disabled: item.disabled, renderCheckboxIndicator: props.renderCheckboxIndicator, children: tooltipText != null ? (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { render: _jsx("span", { className: "twa:flex twa:min-w-0 twa:flex-1 twa:items-center twa:gap-2" }), children: itemContent }), _jsx(TooltipContent, { side: "right", children: tooltipText })] })) : (itemContent) }, item.value));
|
|
44
45
|
};
|
|
45
46
|
const list = props.groups ? (_jsx(ComboboxList, { className: loadingClassName, children: (group, index) => (_jsxs(React.Fragment, { children: [_jsxs(ComboboxGroup, { items: group.items, children: [group.label && _jsx(ComboboxLabel, { children: group.label }), _jsx(ComboboxCollection, { children: renderItem })] }), index < (props.groups?.length || 0) - 1 && _jsx(ComboboxSeparator, {})] }, typeof group.label === 'string' ? group.label : `${index}`)) })) : props.virtualized ? (_jsx(ComboboxPrimitive.List, { className: cn(loadingClassName, RESIZABLE_VIRTUALIZED_LIST_CLASS), children: _jsx(VirtualizedList, { open: props.open, renderItemLabel: props.renderItemLabel, virtualizerRef: virtualizerRef, showItemTooltip: props.showItemTooltip, renderCheckboxIndicator: props.renderCheckboxIndicator }) })) : (_jsx(ComboboxList, { className: loadingClassName, children: renderItem }));
|
|
46
47
|
return (_jsxs(_Fragment, { children: [props.showSelectAllCheckbox && (_jsx(ComboboxValue, { children: (selectedItems) => {
|
package/src/env.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
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" || '',
|
|
3
|
-
PUBLISH_TIMESTAMP:
|
|
4
|
-
VERSION: "23.0.
|
|
3
|
+
PUBLISH_TIMESTAMP: 1782250554911 || Date.now(),
|
|
4
|
+
VERSION: "23.0.1" || '--current-version--',
|
|
5
5
|
};
|