Merge pull request #1581 from remcovaes/fix/OverlayMixinTypeInfo
fix: type info in OverlayMixinTypes
This commit is contained in:
commit
c381be9c01
4 changed files with 9 additions and 9 deletions
6
.changeset/grumpy-lemons-repeat.md
Normal file
6
.changeset/grumpy-lemons-repeat.md
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
'@lion/overlays': patch
|
||||||
|
'@lion/select-rich': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix type information for the overlayMixin and remove obsolete toggle
|
||||||
|
|
@ -5,7 +5,6 @@ import { isEqualConfig } from './utils/is-equal-config.js';
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../types/OverlayConfig').OverlayConfig} OverlayConfig
|
* @typedef {import('../types/OverlayConfig').OverlayConfig} OverlayConfig
|
||||||
* @typedef {import('../types/OverlayMixinTypes').DefineOverlayConfig} DefineOverlayConfig
|
* @typedef {import('../types/OverlayMixinTypes').DefineOverlayConfig} DefineOverlayConfig
|
||||||
* @typedef {import('../types/OverlayMixinTypes').OverlayHost} OverlayHost
|
|
||||||
* @typedef {import('../types/OverlayMixinTypes').OverlayMixin} OverlayMixin
|
* @typedef {import('../types/OverlayMixinTypes').OverlayMixin} OverlayMixin
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,9 @@ export declare class OverlayHost {
|
||||||
get config(): OverlayConfig;
|
get config(): OverlayConfig;
|
||||||
set config(value: OverlayConfig);
|
set config(value: OverlayConfig);
|
||||||
|
|
||||||
open(): void;
|
open(): Promise<void>;
|
||||||
close(): void;
|
close(): Promise<void>;
|
||||||
toggle(): void;
|
toggle(): Promise<void>;
|
||||||
/**
|
/**
|
||||||
* Sometimes it's needed to recompute Popper position of an overlay, for instance when we have
|
* Sometimes it's needed to recompute Popper position of an overlay, for instance when we have
|
||||||
* an opened combobox and the surrounding context changes (the space consumed by the textbox
|
* an opened combobox and the surrounding context changes (the space consumed by the textbox
|
||||||
|
|
|
||||||
|
|
@ -247,11 +247,6 @@ export class LionSelectRich extends SlotMixin(ScopedElementsMixin(OverlayMixin(L
|
||||||
this._onFormElementsChanged();
|
this._onFormElementsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: move to overlayMixin and offer open and close
|
|
||||||
toggle() {
|
|
||||||
this.opened = !this.opened;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* In the select disabled options are still going to a possible value for example
|
* In the select disabled options are still going to a possible value for example
|
||||||
* when prefilling or programmatically setting it.
|
* when prefilling or programmatically setting it.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue