@adaptabletools/adaptable-cjs 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-cjs",
3
- "version": "23.0.0",
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",
@@ -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
- const itemElement = ((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: {
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
- const itemElement = ((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: itemContent }, item.value));
44
- if (tooltipText != null) {
45
- 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 })] }, item.value));
46
- }
47
- return itemElement;
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) => {
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: 1782227653432 || Date.now(),
6
- VERSION: "23.0.0" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1782250584329 || Date.now(),
6
+ VERSION: "23.0.1" || '--current-version--',
7
7
  };