@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.
- package/fesm2022/koobiq-components-core.mjs +10 -7
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +13 -7
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +12 -4
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +1 -1
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +4 -6
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/form-field/index.d.ts +1 -3
- package/modal/index.d.ts +1 -1
- package/package.json +3 -3
- package/schematics/ng-add/index.js +1 -1
- package/tabs/index.d.ts +0 -1
|
@@ -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
|
-
|
|
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 —
|
|
7886
|
-
//
|
|
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.
|
|
8500
|
+
const VERSION = new Version('20.3.1+sha-d6cc191');
|
|
8498
8501
|
|
|
8499
8502
|
/**
|
|
8500
8503
|
* Generated bundle index. Do not edit.
|