@uni-design-system/uni-angular 7.2.0 → 7.3.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uni-design-system/uni-angular",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@angular/core": "^21.2.0",
|
|
23
23
|
"@angular/forms": "^21.2.0",
|
|
24
24
|
"@emotion/css": "^11.0.0",
|
|
25
|
-
"@uni-design-system/uni-core": "^7.
|
|
25
|
+
"@uni-design-system/uni-core": "^7.3.0"
|
|
26
26
|
},
|
|
27
27
|
"module": "fesm2022/uni-design-system-uni-angular.mjs",
|
|
28
28
|
"typings": "types/uni-design-system-uni-angular.d.ts",
|
|
@@ -2,6 +2,19 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
let _angular_devkit_schematics = require("@angular-devkit/schematics");
|
|
3
3
|
let _angular_devkit_schematics_tasks = require("@angular-devkit/schematics/tasks");
|
|
4
4
|
//#region ../core/dist/esm/index.js
|
|
5
|
+
/** Duration (seconds) the default theme assigns `expand`'s `transitionSpeed`. */
|
|
6
|
+
var EXPAND_DEFAULT_SPEED = .35;
|
|
7
|
+
/**
|
|
8
|
+
* Duration envelope at the default speed. A tiny region never blinks past
|
|
9
|
+
* faster than the min; a full-page region never drags longer than the max.
|
|
10
|
+
* Expressed at `EXPAND_DEFAULT_SPEED` and applied as scale-factor clamps, so a
|
|
11
|
+
* theme that slows `transitionSpeed` down widens its envelope proportionally
|
|
12
|
+
* instead of being capped back to the stock feel.
|
|
13
|
+
*/
|
|
14
|
+
var EXPAND_MIN_DURATION = .15;
|
|
15
|
+
var EXPAND_MAX_DURATION = .6;
|
|
16
|
+
EXPAND_MIN_DURATION / EXPAND_DEFAULT_SPEED;
|
|
17
|
+
EXPAND_MAX_DURATION / EXPAND_DEFAULT_SPEED;
|
|
5
18
|
var cycle = (angle) => {
|
|
6
19
|
if (angle > 360) return angle - 360;
|
|
7
20
|
if (angle < 0) return angle + 360;
|
|
@@ -972,6 +985,38 @@ var buildComponents = (c) => ({
|
|
|
972
985
|
color: "primary-surface",
|
|
973
986
|
shadow: "menu"
|
|
974
987
|
} },
|
|
988
|
+
menu: { options: {
|
|
989
|
+
minWidth: 184,
|
|
990
|
+
color: void 0,
|
|
991
|
+
border: void 0,
|
|
992
|
+
borderRadius: void 0,
|
|
993
|
+
shadow: void 0,
|
|
994
|
+
paddingVertical: "xs",
|
|
995
|
+
paddingHorizontal: "none",
|
|
996
|
+
dividerBorder: "light",
|
|
997
|
+
dividerSpacing: "xs"
|
|
998
|
+
} },
|
|
999
|
+
menuItem: {
|
|
1000
|
+
options: {
|
|
1001
|
+
height: 38,
|
|
1002
|
+
paddingHorizontal: "md",
|
|
1003
|
+
gap: "md",
|
|
1004
|
+
borderRadius: "none",
|
|
1005
|
+
typeface: "label",
|
|
1006
|
+
textColor: void 0,
|
|
1007
|
+
hoverColor: "primary-container",
|
|
1008
|
+
activeSymbol: "check",
|
|
1009
|
+
transitionSpeed: .35
|
|
1010
|
+
},
|
|
1011
|
+
variants: { warn: {
|
|
1012
|
+
color: c.warn,
|
|
1013
|
+
"&:hover, &:focus": {
|
|
1014
|
+
backgroundColor: c["warn-container"],
|
|
1015
|
+
color: c["on-warn-container"]
|
|
1016
|
+
}
|
|
1017
|
+
} }
|
|
1018
|
+
},
|
|
1019
|
+
expand: { options: { transitionSpeed: .35 } },
|
|
975
1020
|
footer: { options: {
|
|
976
1021
|
height: 52,
|
|
977
1022
|
color: "primary",
|
|
@@ -1709,7 +1754,7 @@ var UniThemes = {
|
|
|
1709
1754
|
Object.keys(UniThemes)[0];
|
|
1710
1755
|
//#endregion
|
|
1711
1756
|
//#region package.json
|
|
1712
|
-
var version = "7.
|
|
1757
|
+
var version = "7.3.0";
|
|
1713
1758
|
//#endregion
|
|
1714
1759
|
//#region schematics-src/ng-add/transforms.ts
|
|
1715
1760
|
var addDependencies = (packageJsonText, deps) => {
|
|
@@ -3,6 +3,7 @@ import { Signal, WritableSignal, InjectionToken, ElementRef, TemplateRef, OnInit
|
|
|
3
3
|
import * as _uni_design_system_uni_core from '@uni-design-system/uni-core';
|
|
4
4
|
import { IconName, Variant, ContainerColorToken, PaletteConfig, GenerateColorsConfig, Radii, UniTheme, ComponentName, ComponentTheme, NullableSize, ThemeName, TextRole, ContentColorToken, Size, Thickness, NullableStyleExpression, ColorKey, ColorToken, Typeface, Radius, OptionalSize, Border, Shadow, ZIndexableElements, Elevation, RadiiSize, TextColor, JustifyContent, StyleExpression, Orientation, CssLength, OptionalAlignSelf, OptionalAlignItems, OptionalAlignContent, OptionalJustifyContent, OptionalDisplay, OptionalPosition, OptionalOverflow, OptionalFlexDirection, OptionalTextAlign, OptionalWrap, ColorScheme, ColorCategory, ThemeShape, ContrastCheck, Colors, GenerationInput } from '@uni-design-system/uni-core';
|
|
5
5
|
import { FormCheckboxControl, FormValueControl } from '@angular/forms/signals';
|
|
6
|
+
import * as _uni_design_system_uni_angular from '@uni-design-system/uni-angular';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Returns a document-unique id for wiring ARIA relationships
|
|
@@ -977,6 +978,10 @@ declare class UniDropdownComponent extends BaseComponent<UniDropdownOptions> imp
|
|
|
977
978
|
readonly popoverId: string;
|
|
978
979
|
paddingVertical: _angular_core.InputSignal<NullableSize>;
|
|
979
980
|
paddingHorizontal: _angular_core.InputSignal<NullableSize>;
|
|
981
|
+
border: _angular_core.InputSignal<string>;
|
|
982
|
+
borderRadius: _angular_core.InputSignal<string>;
|
|
983
|
+
shadow: _angular_core.InputSignal<string>;
|
|
984
|
+
color: _angular_core.InputSignal<ContainerColorToken>;
|
|
980
985
|
dropdownShowing: _angular_core.OutputEmitterRef<boolean>;
|
|
981
986
|
dropdownHiding: _angular_core.OutputEmitterRef<boolean>;
|
|
982
987
|
dropdownRef: ElementRef<HTMLDivElement>;
|
|
@@ -997,11 +1002,32 @@ declare class UniDropdownComponent extends BaseComponent<UniDropdownOptions> imp
|
|
|
997
1002
|
hideDropdown(): void;
|
|
998
1003
|
ngOnDestroy(): void;
|
|
999
1004
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniDropdownComponent, never>;
|
|
1000
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniDropdownComponent, "uni-dropdown", never, { "trigger": { "alias": "trigger"; "required": true; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; "ariaHasPopup": { "alias": "ariaHasPopup"; "required": false; "isSignal": true; }; "paddingVertical": { "alias": "paddingVertical"; "required": false; "isSignal": true; }; "paddingHorizontal": { "alias": "paddingHorizontal"; "required": false; "isSignal": true; }; }, { "dropdownShowing": "dropdownShowing"; "dropdownHiding": "dropdownHiding"; }, never, ["*"], true, never>;
|
|
1005
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniDropdownComponent, "uni-dropdown", never, { "trigger": { "alias": "trigger"; "required": true; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; "ariaHasPopup": { "alias": "ariaHasPopup"; "required": false; "isSignal": true; }; "paddingVertical": { "alias": "paddingVertical"; "required": false; "isSignal": true; }; "paddingHorizontal": { "alias": "paddingHorizontal"; "required": false; "isSignal": true; }; "border": { "alias": "border"; "required": false; "isSignal": true; }; "borderRadius": { "alias": "borderRadius"; "required": false; "isSignal": true; }; "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, { "dropdownShowing": "dropdownShowing"; "dropdownHiding": "dropdownHiding"; }, never, ["*"], true, never>;
|
|
1001
1006
|
}
|
|
1002
1007
|
|
|
1003
|
-
|
|
1008
|
+
/** Theme-level options for `uni-expand`. */
|
|
1009
|
+
interface UniExpandOptions {
|
|
1010
|
+
/**
|
|
1011
|
+
* Base reveal/collapse duration in seconds (matching alert/card
|
|
1012
|
+
* `transitionSpeed`), lives in the `expand` theme options. The default
|
|
1013
|
+
* theme uses `0.35`. This is the duration at a 240px-tall region; the
|
|
1014
|
+
* actual duration scales with content height (√-of-height, clamped —
|
|
1015
|
+
* `expandDuration` in uni-core) so short regions stay snappy and tall
|
|
1016
|
+
* ones aren't rushed. Also drives `uni-expand-toggle`'s chevron rotation
|
|
1017
|
+
* so trigger and region move on the same clock.
|
|
1018
|
+
*/
|
|
1019
|
+
transitionSpeed?: number;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
declare class UniExpandComponent extends BaseComponent<UniExpandOptions> {
|
|
1004
1023
|
collapsed: _angular_core.ModelSignal<boolean>;
|
|
1024
|
+
/**
|
|
1025
|
+
* Exact per-instance duration in seconds. Bypasses size-aware scaling —
|
|
1026
|
+
* an explicit number means the consumer wants that number. Omitted, the
|
|
1027
|
+
* duration derives from the `expand` theme options' `transitionSpeed`
|
|
1028
|
+
* scaled by content height (see `duration`).
|
|
1029
|
+
*/
|
|
1030
|
+
transitionSpeed: _angular_core.InputSignal<number>;
|
|
1005
1031
|
/** Referenced by the controlling toggle's aria-controls. */
|
|
1006
1032
|
readonly regionId: string;
|
|
1007
1033
|
/**
|
|
@@ -1010,8 +1036,29 @@ declare class UniExpandComponent {
|
|
|
1010
1036
|
* animations only after the first render, i.e. on real state changes.
|
|
1011
1037
|
*/
|
|
1012
1038
|
protected readonly ready: _angular_core.WritableSignal<boolean>;
|
|
1039
|
+
private readonly contentRef;
|
|
1040
|
+
/**
|
|
1041
|
+
* Last observed content height. Retained after collapse (the observer
|
|
1042
|
+
* disconnects but the signal keeps its value) so the leave animation and
|
|
1043
|
+
* the next reveal are timed to the real size. Until the first measurement
|
|
1044
|
+
* lands — one frame into the very first reveal — the duration falls back
|
|
1045
|
+
* to the unscaled token; CSS remaps animation progress when
|
|
1046
|
+
* `animation-duration` updates, so the retime is imperceptible that early.
|
|
1047
|
+
*/
|
|
1048
|
+
private readonly contentHeight;
|
|
1013
1049
|
constructor();
|
|
1014
1050
|
toggle(): void;
|
|
1051
|
+
/**
|
|
1052
|
+
* The resolved duration in seconds: the `transitionSpeed` input verbatim,
|
|
1053
|
+
* or the `expand` theme options' `transitionSpeed` scaled by content height
|
|
1054
|
+
* (`expandDuration` — √-of-height, clamped) so short regions stay snappy
|
|
1055
|
+
* and tall ones aren't rushed. The public sync hook: Expand Area binds this
|
|
1056
|
+
* to its toggle so the chevron rotates on the region's clock, and consumers
|
|
1057
|
+
* can bind adjacent styling the same way
|
|
1058
|
+
* (`[style.transition-duration]="expand.duration() + 's'"`).
|
|
1059
|
+
*/
|
|
1060
|
+
readonly duration: _angular_core.Signal<number>;
|
|
1061
|
+
protected readonly cssDuration: _angular_core.Signal<string>;
|
|
1015
1062
|
/**
|
|
1016
1063
|
* A custom element is `display: inline` by default, which would lay the
|
|
1017
1064
|
* animated grid out as a block-in-inline box and distort the revealed
|
|
@@ -1031,11 +1078,16 @@ declare class UniExpandComponent {
|
|
|
1031
1078
|
* decorations that legitimately paint outside the region (focus rings,
|
|
1032
1079
|
* offset outlines). Angular removes a leaving node on the next frame when it
|
|
1033
1080
|
* detects no animation, so nothing hangs when the guard strips them.
|
|
1081
|
+
*
|
|
1082
|
+
* The classes carry the default duration; the animated div's
|
|
1083
|
+
* `[style.animation-duration]` binding overrides it with the resolved
|
|
1084
|
+
* `duration`, so the classes stay static while timing tracks the theme and
|
|
1085
|
+
* the content's size through signals alone.
|
|
1034
1086
|
*/
|
|
1035
1087
|
expandAnimation: string;
|
|
1036
1088
|
collapseAnimation: string;
|
|
1037
1089
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniExpandComponent, never>;
|
|
1038
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniExpandComponent, "uni-expand", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; }, never, ["*"], true, never>;
|
|
1090
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniExpandComponent, "uni-expand", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "transitionSpeed": { "alias": "transitionSpeed"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; }, never, ["*"], true, never>;
|
|
1039
1091
|
}
|
|
1040
1092
|
|
|
1041
1093
|
/**
|
|
@@ -1056,13 +1108,19 @@ declare class UniExpandToggleComponent {
|
|
|
1056
1108
|
label: _angular_core.InputSignal<string>;
|
|
1057
1109
|
/** Muted qualifier beside the label ("for POs & custom orders"). Needs `label`. */
|
|
1058
1110
|
sublabel: _angular_core.InputSignal<string>;
|
|
1111
|
+
/**
|
|
1112
|
+
* Rotation duration in seconds. Expand Area binds the region's resolved
|
|
1113
|
+
* `duration` here so chevron and reveal share one clock even when the
|
|
1114
|
+
* region is size-scaled or overridden per instance.
|
|
1115
|
+
*/
|
|
1116
|
+
transitionSpeed: _angular_core.InputSignal<number>;
|
|
1117
|
+
/** Fallback clock when no `transitionSpeed` is bound: the `expand` theme options' `transitionSpeed`. */
|
|
1118
|
+
private readonly expandOptions;
|
|
1119
|
+
private readonly speed;
|
|
1059
1120
|
/**
|
|
1060
1121
|
* The glyph rotates, never the host.
|
|
1061
1122
|
*
|
|
1062
|
-
* The host is
|
|
1063
|
-
* `anchor-name` on its own element, nested inside ours — so rotating the
|
|
1064
|
-
* host swings the anchor through the turn and the bubble visibly bobs. The
|
|
1065
|
-
* host is also taller than the glyph (an inline-level box reserves baseline
|
|
1123
|
+
* The host is taller than the glyph (an inline-level box reserves baseline
|
|
1066
1124
|
* descender space), so spinning it about its own centre walks the glyph
|
|
1067
1125
|
* off-centre. `uni-icon` is a centred square sized to the glyph, which makes
|
|
1068
1126
|
* it the only box here that rotates symmetrically. It also keeps a label
|
|
@@ -1074,7 +1132,7 @@ declare class UniExpandToggleComponent {
|
|
|
1074
1132
|
protected readonly labelClassName: string;
|
|
1075
1133
|
toggle(): void;
|
|
1076
1134
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniExpandToggleComponent, never>;
|
|
1077
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniExpandToggleComponent, "uni-expand-toggle", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "ariaControls": { "alias": "ariaControls"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "sublabel": { "alias": "sublabel"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; }, never, never, true, never>;
|
|
1135
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniExpandToggleComponent, "uni-expand-toggle", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "ariaControls": { "alias": "ariaControls"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "sublabel": { "alias": "sublabel"; "required": false; "isSignal": true; }; "transitionSpeed": { "alias": "transitionSpeed"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; }, never, never, true, never>;
|
|
1078
1136
|
}
|
|
1079
1137
|
|
|
1080
1138
|
declare class UniExpandAreaComponent {
|
|
@@ -1419,25 +1477,76 @@ declare class UniWrapComponent extends UniBoxComponent {
|
|
|
1419
1477
|
interface BaseMenuItem {
|
|
1420
1478
|
symbolName?: string;
|
|
1421
1479
|
action?: () => void;
|
|
1480
|
+
/** Tone routed through the theme's `menuItem.variants` (e.g. 'warn' for destructive actions). */
|
|
1481
|
+
variant?: Variant;
|
|
1482
|
+
disabled?: boolean;
|
|
1422
1483
|
}
|
|
1423
1484
|
interface MenuItemWithLabel extends BaseMenuItem {
|
|
1424
1485
|
label: string;
|
|
1425
1486
|
template?: never;
|
|
1426
1487
|
context?: never;
|
|
1488
|
+
divider?: never;
|
|
1427
1489
|
}
|
|
1428
1490
|
interface MenuItemWithTemplate<T = any> extends BaseMenuItem {
|
|
1429
1491
|
label?: never;
|
|
1430
1492
|
template: TemplateRef<T>;
|
|
1431
1493
|
context: T;
|
|
1494
|
+
divider?: never;
|
|
1495
|
+
}
|
|
1496
|
+
/** A non-interactive separator between item groups; styled by the theme's `menu` options. */
|
|
1497
|
+
interface MenuDivider {
|
|
1498
|
+
divider: true;
|
|
1499
|
+
}
|
|
1500
|
+
type MenuItem<T = any> = MenuDivider | MenuItemWithLabel | MenuItemWithTemplate<T>;
|
|
1501
|
+
declare const isDivider: (item: MenuItem) => item is MenuDivider;
|
|
1502
|
+
/** Theme options for the `menuItem` component entry. */
|
|
1503
|
+
interface UniMenuItemOptions {
|
|
1504
|
+
height?: number;
|
|
1505
|
+
paddingHorizontal?: NullableSize;
|
|
1506
|
+
gap?: NullableSize;
|
|
1507
|
+
borderRadius?: Radius;
|
|
1508
|
+
typeface?: Typeface;
|
|
1509
|
+
/** Resting text color; undefined inherits the panel's on-color. */
|
|
1510
|
+
textColor?: ColorKey;
|
|
1511
|
+
hoverColor?: ContainerColorToken;
|
|
1512
|
+
/** Trailing symbol marking the active item; undefined/'' renders none. */
|
|
1513
|
+
activeSymbol?: string;
|
|
1514
|
+
/** Hover/focus transition in seconds; 0 switches instantly. */
|
|
1515
|
+
transitionSpeed?: number;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* Theme options for the `menu` component entry. The panel-chrome fields
|
|
1520
|
+
* (color/border/borderRadius/shadow) fall back to the theme's `dropdown`
|
|
1521
|
+
* options when undefined, so menus follow generic popovers until a theme
|
|
1522
|
+
* deliberately splits them.
|
|
1523
|
+
*/
|
|
1524
|
+
interface UniMenuOptions {
|
|
1525
|
+
/** Panel minimum width in px; undefined sizes to the widest item. */
|
|
1526
|
+
minWidth?: number;
|
|
1527
|
+
color?: ContainerColorToken;
|
|
1528
|
+
border?: Border;
|
|
1529
|
+
borderRadius?: Radius;
|
|
1530
|
+
shadow?: Shadow;
|
|
1531
|
+
paddingVertical?: NullableSize;
|
|
1532
|
+
paddingHorizontal?: NullableSize;
|
|
1533
|
+
dividerBorder?: Border;
|
|
1534
|
+
/** Vertical margin and horizontal inset applied to dividers. */
|
|
1535
|
+
dividerSpacing?: NullableSize;
|
|
1432
1536
|
}
|
|
1433
|
-
type MenuItem<T = any> = MenuItemWithLabel | MenuItemWithTemplate<T>;
|
|
1434
1537
|
|
|
1435
1538
|
declare class UniMenuComponent {
|
|
1539
|
+
private theme;
|
|
1436
1540
|
menuItems: _angular_core.InputSignal<MenuItem[]>;
|
|
1437
1541
|
activeItem: _angular_core.InputSignal<MenuItem>;
|
|
1438
1542
|
placement: _angular_core.InputSignal<Placement>;
|
|
1439
1543
|
menuItemClicked: _angular_core.OutputEmitterRef<MenuItem>;
|
|
1440
1544
|
TriggerClassName: string;
|
|
1545
|
+
/** Type guard for the template: dividers render as separators, not items. */
|
|
1546
|
+
protected readonly isDivider: (item: MenuItem) => item is _uni_design_system_uni_angular.MenuDivider;
|
|
1547
|
+
protected readonly menuOptions: _angular_core.Signal<UniMenuOptions>;
|
|
1548
|
+
protected readonly menuClassName: _angular_core.Signal<string>;
|
|
1549
|
+
protected readonly dividerClassName: _angular_core.Signal<string>;
|
|
1441
1550
|
private itemComponents;
|
|
1442
1551
|
private dropdownComponent;
|
|
1443
1552
|
/** Which item receives focus when the menu opens (ArrowUp opens onto the last item). */
|
|
@@ -2375,6 +2484,13 @@ declare class UniTooltipComponent extends BaseComponent<UniTooltipOptions> {
|
|
|
2375
2484
|
isMouseInside: _angular_core.WritableSignal<boolean>;
|
|
2376
2485
|
/** Whether the bubble is currently shown (or fading out). */
|
|
2377
2486
|
private readonly visible;
|
|
2487
|
+
/**
|
|
2488
|
+
* Set when the wrapped control is activated: clicking a button is not a
|
|
2489
|
+
* request to toggle the bubble, and re-showing it right away makes a
|
|
2490
|
+
* state-flipping label ("Expand" → "Collapse") blink back mid-interaction.
|
|
2491
|
+
* Re-arms when the pointer leaves or focus moves away.
|
|
2492
|
+
*/
|
|
2493
|
+
private readonly suppressed;
|
|
2378
2494
|
readonly tooltipId: string;
|
|
2379
2495
|
private readonly anchorName;
|
|
2380
2496
|
hoverDelay: _angular_core.InputSignal<number>;
|
|
@@ -2388,6 +2504,13 @@ declare class UniTooltipComponent extends BaseComponent<UniTooltipOptions> {
|
|
|
2388
2504
|
onFocusIn(event: FocusEvent): void;
|
|
2389
2505
|
onFocusOut(): void;
|
|
2390
2506
|
onEscape(event: Event): void;
|
|
2507
|
+
/**
|
|
2508
|
+
* A click on an interactive element inside the host is an activation of
|
|
2509
|
+
* that control — hide the bubble and stay suppressed until re-arm. A click
|
|
2510
|
+
* anywhere else (inline-text tooltips, tap on a non-interactive host)
|
|
2511
|
+
* keeps the tap-to-toggle behavior.
|
|
2512
|
+
*/
|
|
2513
|
+
protected onClick(event: Event): void;
|
|
2391
2514
|
toggleTooltip(): void;
|
|
2392
2515
|
mouseenter(): void;
|
|
2393
2516
|
mouseleave(): void;
|
|
@@ -2421,5 +2544,5 @@ declare class DragAndDropDirective {
|
|
|
2421
2544
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DragAndDropDirective, "[uni-drag-n-drop], [dragAndDrop]", never, {}, { "onFileDropped": "onFileDropped"; }, never, never, true, never>;
|
|
2422
2545
|
}
|
|
2423
2546
|
|
|
2424
|
-
export { BodyRenderDirective, ConfirmationDialogComponent, DragAndDropDirective, FOCUSABLE_SELECTOR, LocalStorageService, NotificationService, NotificationsComponent, RippleDirective, ThemeService, UNI_THEMES, UniAlertComponent, UniAppBarComponent, UniAvatarComponent, UniAvatarGroupComponent, UniBackgroundComponent, UniBadgeComponent, UniBaseDatasource, UniBoxComponent, UniBreadcrumbComponent, UniButtonComponent, UniButtonGroupComponent, UniCardComponent, UniCardContentComponent, UniCardHeaderComponent, UniCenterComponent, UniCheckboxComponent, UniDataSearchComponent, UniDataTableComponent, UniDebounceInputComponent, UniDialogButtonsComponent, UniDialogComponent, UniDialogHeaderComponent, UniDividerComponent, UniDrawerComponent, UniDropdownComponent, UniExpandAreaComponent, UniExpandComponent, UniExpandToggleComponent, UniFileDropZoneComponent, UniGridAreaComponent, UniGridComponent, UniIconButtonComponent, UniIconComponent, UniInputBoxComponent, UniInputComponent, UniJsonViewComponent, UniMenuComponent, UniMultiSelectComponent, UniMultiSelectDropdownComponent, UniNotificationBadgeComponent, UniPaginatorComponent, UniPopoverComponent, UniProgressBarComponent, UniProgressGaugeComponent, UniRadioComponent, UniRecordDatasource, UniRowComponent, UniScrollAreaComponent, UniSearchInputComponent, UniSelectComponent, UniServerSideDatasource, UniSkeletonComponent, UniSliderComponent, UniSnackbarComponent, UniSortHeaderComponent, UniStackComponent, UniStatComponent, UniSymbolComponent, UniTabComponent, UniTabsComponent, UniTagComponent, UniTextComponent, UniTextareaComponent, UniThemeBuilderComponent, UniThemeSwitchComponent, UniToggleComponent, UniTooltipComponent, UniWrapComponent, acceptableFile, anchorArrowStyles, anchorStyles, getFileExtension, motionSafe, newAnchorName, resolveFocusTarget, uniqueId, useTimer, visuallyHidden };
|
|
2425
|
-
export type { Alert, AnchorOffset, BrandPaletteConfig, BreadcrumbItem, ButtonGroupConfig, ButtonGroupItem, ColumnDefinition, Confirmation, DataLoader, DrawerMode, DrawerPosition, ImagePosition, MenuItem, MenuItemWithLabel, MenuItemWithTemplate, Option, Options, PageRequest, PageResponse, Placement, ScrollbarAppearance, SkeletonShape, Snackbar, Sort, SortDirection, UniAppBarOptions, UniAvatarGroupOptions, UniAvatarOptions, UniBreadcrumbOptions, UniCheckboxOptions, UniDataSearchOptions, UniDataTableOptions, UniDatasource, UniDrawerOptions, UniInputBoxOptions, UniMultiSelectDropdownOptions, UniNotificationBadgeOptions, UniPaginatorOptions, UniRadioOption, UniRadioOptions, UniSearchInputOptions, UniSkeletonOptions, UniSliderOptions, UniStatOptions, UniTabsOptions, UniTextareaOptions, UniToggleOptions };
|
|
2547
|
+
export { BodyRenderDirective, ConfirmationDialogComponent, DragAndDropDirective, FOCUSABLE_SELECTOR, LocalStorageService, NotificationService, NotificationsComponent, RippleDirective, ThemeService, UNI_THEMES, UniAlertComponent, UniAppBarComponent, UniAvatarComponent, UniAvatarGroupComponent, UniBackgroundComponent, UniBadgeComponent, UniBaseDatasource, UniBoxComponent, UniBreadcrumbComponent, UniButtonComponent, UniButtonGroupComponent, UniCardComponent, UniCardContentComponent, UniCardHeaderComponent, UniCenterComponent, UniCheckboxComponent, UniDataSearchComponent, UniDataTableComponent, UniDebounceInputComponent, UniDialogButtonsComponent, UniDialogComponent, UniDialogHeaderComponent, UniDividerComponent, UniDrawerComponent, UniDropdownComponent, UniExpandAreaComponent, UniExpandComponent, UniExpandToggleComponent, UniFileDropZoneComponent, UniGridAreaComponent, UniGridComponent, UniIconButtonComponent, UniIconComponent, UniInputBoxComponent, UniInputComponent, UniJsonViewComponent, UniMenuComponent, UniMultiSelectComponent, UniMultiSelectDropdownComponent, UniNotificationBadgeComponent, UniPaginatorComponent, UniPopoverComponent, UniProgressBarComponent, UniProgressGaugeComponent, UniRadioComponent, UniRecordDatasource, UniRowComponent, UniScrollAreaComponent, UniSearchInputComponent, UniSelectComponent, UniServerSideDatasource, UniSkeletonComponent, UniSliderComponent, UniSnackbarComponent, UniSortHeaderComponent, UniStackComponent, UniStatComponent, UniSymbolComponent, UniTabComponent, UniTabsComponent, UniTagComponent, UniTextComponent, UniTextareaComponent, UniThemeBuilderComponent, UniThemeSwitchComponent, UniToggleComponent, UniTooltipComponent, UniWrapComponent, acceptableFile, anchorArrowStyles, anchorStyles, getFileExtension, isDivider, motionSafe, newAnchorName, resolveFocusTarget, uniqueId, useTimer, visuallyHidden };
|
|
2548
|
+
export type { Alert, AnchorOffset, BrandPaletteConfig, BreadcrumbItem, ButtonGroupConfig, ButtonGroupItem, ColumnDefinition, Confirmation, DataLoader, DrawerMode, DrawerPosition, ImagePosition, MenuDivider, MenuItem, MenuItemWithLabel, MenuItemWithTemplate, Option, Options, PageRequest, PageResponse, Placement, ScrollbarAppearance, SkeletonShape, Snackbar, Sort, SortDirection, UniAppBarOptions, UniAvatarGroupOptions, UniAvatarOptions, UniBreadcrumbOptions, UniCheckboxOptions, UniDataSearchOptions, UniDataTableOptions, UniDatasource, UniDrawerOptions, UniExpandOptions, UniInputBoxOptions, UniMenuItemOptions, UniMenuOptions, UniMultiSelectDropdownOptions, UniNotificationBadgeOptions, UniPaginatorOptions, UniRadioOption, UniRadioOptions, UniSearchInputOptions, UniSkeletonOptions, UniSliderOptions, UniStatOptions, UniTabsOptions, UniTextareaOptions, UniToggleOptions };
|