@adaptabletools/adaptable-cjs 21.0.0-canary.5 → 21.0.0-canary.7

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.
@@ -13,7 +13,7 @@ const react_1 = require("react");
13
13
  const join_1 = tslib_1.__importDefault(require("../utils/join"));
14
14
  const re_resizable_1 = require("re-resizable");
15
15
  const Tooltip_1 = tslib_1.__importDefault(require("../Tooltip"));
16
- const overlayBaseZIndex_1 = require("../overlayBaseZIndex");
16
+ const OverlayTrigger_1 = require("../OverlayTrigger");
17
17
  const resizableDirections = {
18
18
  right: true,
19
19
  bottom: true,
@@ -162,7 +162,10 @@ const Select = function (props) {
162
162
  }
163
163
  else {
164
164
  selectedOption = findOptionByValue(props.value);
165
- if (!selectedOption && props.value !== undefined && props.value !== null) {
165
+ if (!selectedOption &&
166
+ props.value !== undefined &&
167
+ props.value !== null &&
168
+ props.value !== '') {
166
169
  selectedOption = {
167
170
  value: props.value,
168
171
  label: props.value,
@@ -489,7 +492,7 @@ const Select = function (props) {
489
492
  }, [props.onInputChange, isMulti]);
490
493
  return (React.createElement(SelectComponent, { ref: ref, openMenuOnClick: searchableInMenulist ? false : undefined, openMenuOnFocus: searchableInMenulist ? false : undefined, menuIsOpen: searchableInMenulist ? isSelectMenuOpen : undefined, isSearchable: searchableInline, "aria-label": props['aria-label'], onKeyDown: props.onKeyDown, inputValue: inputValue, onInputChange: onInputChange, onFocus: onFocus, onBlur: onBlur, onMenuOpen: props.onMenuOpen, isLoading: props.isLoading, options: props.options, className: (0, join_1.default)(props.className, 'ab-Select'), isDisabled: disabled, menuPlacement: props.menuPlacement ?? 'auto', hideSelectedOptions: false, isMulti: isMulti, value: selectedOption, blurInputOnSelect: false, menuPosition: props.menuPosition ?? 'absolute',
491
494
  // This needed so the menu is not clipped by overflow: hidden
492
- menuPortalTarget: props.menuPortalTarget === undefined ? document.body : null, isClearable: props.isClearable, closeMenuOnSelect: props.closeMenuOnSelect, onChange: (option) => {
495
+ menuPortalTarget: (0, OverlayTrigger_1.ensurePortalElement)(), isClearable: props.isClearable, closeMenuOnSelect: props.closeMenuOnSelect, onChange: (option) => {
493
496
  if (isMulti) {
494
497
  const value = option.map((x) => x?.value);
495
498
  props.onChange(value);
@@ -538,7 +541,9 @@ const Select = function (props) {
538
541
  menuPortal: (baseStyle) => {
539
542
  return {
540
543
  ...baseStyle,
541
- zIndex: overlayBaseZIndex_1.OVERLAY_BASE_Z_INDEX,
544
+ // needed to avoid tooltips from being displayed under this menu
545
+ // as otherwise react-select uses zIndex 1
546
+ zIndex: 'auto',
542
547
  textAlign: 'left',
543
548
  };
544
549
  },
@@ -546,7 +551,9 @@ const Select = function (props) {
546
551
  menu: (baseStyle, state) => {
547
552
  return {
548
553
  ...baseStyle,
549
- zIndex: overlayBaseZIndex_1.OVERLAY_BASE_Z_INDEX,
554
+ // needed to avoid tooltips from being displayed under this menu
555
+ // as otherwise react-select uses zIndex 1
556
+ zIndex: 'auto',
550
557
  boxShadow: 'var(--ab-cmp-select-menu__box-shadow)',
551
558
  minWidth: `var(--ab-cmp-select-menu__min-width)`,
552
559
  width: resizable ? '100%' : `${Math.max(maxLabelLength, 10)}ch`,
@@ -4,6 +4,6 @@ const tslib_1 = require("tslib");
4
4
  const React = tslib_1.__importStar(require("react"));
5
5
  const OverlayTrigger_1 = tslib_1.__importDefault(require("../OverlayTrigger"));
6
6
  const Tooltip = ({ label, children }) => {
7
- return (React.createElement(OverlayTrigger_1.default, { defaultZIndex: 2000000, className: "ab-Tooltip", render: () => label }, children));
7
+ return (React.createElement(OverlayTrigger_1.default, { className: "ab-Tooltip", render: () => label }, children));
8
8
  };
9
9
  exports.default = Tooltip;
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: 1757191030366 || Date.now(),
6
- VERSION: "21.0.0-canary.5" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1757331115735 || Date.now(),
6
+ VERSION: "21.0.0-canary.7" || '--current-version--',
7
7
  };
@@ -1953,32 +1953,32 @@ export declare const ADAPTABLE_METAMODEL: {
1953
1953
  desc: string;
1954
1954
  isOpt: boolean;
1955
1955
  gridInfo: string;
1956
- noCode: string;
1957
1956
  defVal: string;
1957
+ noCode?: undefined;
1958
1958
  } | {
1959
1959
  name: string;
1960
1960
  kind: string;
1961
1961
  desc: string;
1962
1962
  isOpt: boolean;
1963
- gridInfo: string;
1964
1963
  defVal: string;
1964
+ gridInfo?: undefined;
1965
1965
  noCode?: undefined;
1966
1966
  } | {
1967
1967
  name: string;
1968
1968
  kind: string;
1969
1969
  desc: string;
1970
1970
  isOpt: boolean;
1971
+ gridInfo: string;
1972
+ noCode: string;
1971
1973
  defVal: string;
1972
- gridInfo?: undefined;
1973
- noCode?: undefined;
1974
1974
  } | {
1975
1975
  name: string;
1976
1976
  kind: string;
1977
1977
  desc: string;
1978
1978
  isOpt: boolean;
1979
1979
  gridInfo?: undefined;
1980
- noCode?: undefined;
1981
1980
  defVal?: undefined;
1981
+ noCode?: undefined;
1982
1982
  } | {
1983
1983
  name: string;
1984
1984
  kind: string;