yukit-web 0.6.1 → 0.6.2
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/yukit-web.mjs +32 -6
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +14 -2
package/package.json
CHANGED
package/types/yukit-web.d.ts
CHANGED
|
@@ -969,8 +969,10 @@ declare function getPaginationRange(page: number, totalPages: number): YuwPagina
|
|
|
969
969
|
* using `@for`.
|
|
970
970
|
*
|
|
971
971
|
* Inputs:
|
|
972
|
-
* - `collapseWithSheet`: Inside a `<yuw-sheet>` or `<yuws-form-sheet>`, collapses every item whenever the sheet opens
|
|
973
|
-
*
|
|
972
|
+
* - `collapseWithSheet`: Inside a `<yuw-sheet>` or `<yuws-form-sheet>`, collapses every item whenever the sheet opens,
|
|
973
|
+
* so each opening starts folded. Ignored outside a sheet. Default is `false`. It folds on opening and never on
|
|
974
|
+
* closing: a height transition cut short by the sheet detaching leaves Chrome rendering the content 0 tall on every
|
|
975
|
+
* later opening.
|
|
974
976
|
*
|
|
975
977
|
* Extends `HlmAccordion` (instead of re-applying `BrnAccordion` and copying the helm's classes
|
|
976
978
|
* by hand) so the helm's `data-slot`, classes and its `BrnAccordion` host directive — including
|
|
@@ -2839,6 +2841,12 @@ type YuwTooltipPositionDto = 'top' | 'bottom' | 'left' | 'right';
|
|
|
2839
2841
|
* Brain tooltip config default (`100`).
|
|
2840
2842
|
* - `tooltipDisabled`: Disables the tooltip entirely.
|
|
2841
2843
|
*
|
|
2844
|
+
* Focus opens it only when it is keyboard focus (`:focus-visible`). Brain opens on any `focus`, so a
|
|
2845
|
+
* dialog or sheet autofocusing its first tabbable element on open would pop the tooltip unasked.
|
|
2846
|
+
* Brain has no public way to cancel a show, so a non-keyboard focus suppresses it through
|
|
2847
|
+
* `mutableTooltipDisabled`, which Brain checks once the show delay elapses; blur and hover give the
|
|
2848
|
+
* `tooltipDisabled` input back.
|
|
2849
|
+
*
|
|
2842
2850
|
* Usage:
|
|
2843
2851
|
* ```html
|
|
2844
2852
|
* <button yuwTooltip="Save changes" hlmBtn>Save</button>
|
|
@@ -2846,6 +2854,10 @@ type YuwTooltipPositionDto = 'top' | 'bottom' | 'left' | 'right';
|
|
|
2846
2854
|
* ```
|
|
2847
2855
|
*/
|
|
2848
2856
|
declare class YuwTooltipDirective {
|
|
2857
|
+
private readonly host;
|
|
2858
|
+
private readonly tooltip;
|
|
2859
|
+
protected restore(): void;
|
|
2860
|
+
protected suppressUnlessKeyboardFocus(): void;
|
|
2849
2861
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwTooltipDirective, never>;
|
|
2850
2862
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<YuwTooltipDirective, "[yuwTooltip]", never, {}, {}, never, never, true, [{ directive: typeof i1$a.BrnTooltip; inputs: { "brnTooltip": "yuwTooltip"; "position": "position"; "hideDelay": "hideDelay"; "showDelay": "showDelay"; "tooltipDisabled": "tooltipDisabled"; }; outputs: {}; }]>;
|
|
2851
2863
|
}
|