@koobiq/components 20.3.0 → 20.3.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.
@@ -6754,9 +6754,11 @@ function kbqResolvePanelWidth(panelWidth, panelMinWidth, triggerWidth) {
6754
6754
  const floor = Math.max(min, Number.isFinite(triggerWidth) ? triggerWidth : 0);
6755
6755
  // Trigger-sized. The floor is resolved here rather than emitted as `minWidth` because
6756
6756
  // `KbqAbstractSelect.setOverlayPosition()` clears `minWidth` on viewport overflow, after having
6757
- // derived the panel offset from the pre-clear width.
6757
+ // derived the panel offset from the pre-clear width. A floor of `0` means the trigger could not
6758
+ // be measured, not that a zero-width panel was asked for, so the width stays unset and the panel
6759
+ // sizes to its content.
6758
6760
  if (panelWidth === 'auto') {
6759
- return { width: floor, minWidth: '' };
6761
+ return { width: floor > 0 ? coerceCssPixelValue(floor) : '', minWidth: '' };
6760
6762
  }
6761
6763
  // Content-sized. Only `null`/`undefined`/`''` opt in — `0` is an explicit width. A non-finite
6762
6764
  // `panelWidth` (e.g. `NaN` from an upstream computation) is treated the same way rather than
@@ -6764,8 +6766,9 @@ function kbqResolvePanelWidth(panelWidth, panelMinWidth, triggerWidth) {
6764
6766
  if (panelWidth == null || panelWidth === '' || (typeof panelWidth === 'number' && !Number.isFinite(panelWidth))) {
6765
6767
  return { width: '', minWidth: floor };
6766
6768
  }
6767
- // Explicit width. `panelMinWidth` is not applied.
6768
- return { width: panelWidth, minWidth: '' };
6769
+ // Explicit width. `panelMinWidth` is not applied. Rendered as CSS so that a zero survives the
6770
+ // truthy check `CdkConnectedOverlay._getWidth()` applies to the width it was given (CDK 22+).
6771
+ return { width: coerceCssPixelValue(panelWidth), minWidth: '' };
6769
6772
  }
6770
6773
 
6771
6774
  /**
@@ -7882,8 +7885,8 @@ class KbqAbstractSelect {
7882
7885
  * Does nothing when the width is already pinned.
7883
7886
  */
7884
7887
  lockOverlayWidthForSearch(panel) {
7885
- // Compare against the unset sentinel rather than a truthy check — `overlayWidth` can
7886
- // legitimately resolve to `0` for an explicit zero-width panel, which is falsy but pinned.
7888
+ // Compare against the unset sentinel rather than a truthy check — an explicit zero-width panel
7889
+ // resolves to `'0px'`, and a measured width below can be `0`; both mean "already pinned".
7887
7890
  if (this.overlayWidth !== '')
7888
7891
  return;
7889
7892
  const measuredPanelWidth = panel?.nativeElement.getBoundingClientRect().width;
@@ -8494,7 +8497,7 @@ const validationTooltipShowDelay = 10;
8494
8497
  */
8495
8498
  const validationTooltipHideDelay = 3000;
8496
8499
 
8497
- const VERSION = new Version('20.3.0+sha-47e0f25');
8500
+ const VERSION = new Version('20.3.1+sha-d6cc191');
8498
8501
 
8499
8502
  /**
8500
8503
  * Generated bundle index. Do not edit.