@eagami/ui 5.63.2 → 5.64.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/eagami-ui.mjs +178 -121
- package/fesm2022/eagami-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/src/styles/_mixins.scss +26 -7
- package/types/eagami-ui.d.ts +13 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eagami/ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.64.1",
|
|
4
4
|
"description": "Lightweight, accessible, themeable Angular UI component library and icon set built on CSS custom properties",
|
|
5
5
|
"author": "Michal Wiraszka <michal@eagami.com>",
|
|
6
6
|
"license": "MIT",
|
package/src/styles/_mixins.scss
CHANGED
|
@@ -7,13 +7,19 @@
|
|
|
7
7
|
// for one of the SC's exceptions (inline, spacing, essential).
|
|
8
8
|
$target-size-min: 24px;
|
|
9
9
|
|
|
10
|
-
// Standard focus indicator. The ring is
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
@mixin focus-ring($ring:
|
|
16
|
-
|
|
10
|
+
// Standard focus indicator. The ring is an outline set off by a gap, and the gap is
|
|
11
|
+
// transparent, so it reads the same on any surface, however coloured. Pass a full
|
|
12
|
+
// box-shadow value to draw a halo instead, such as an error ring; box-shadow is
|
|
13
|
+
// dropped in forced-colors (Windows High Contrast) mode, so a real outline stands
|
|
14
|
+
// in for it there.
|
|
15
|
+
@mixin focus-ring($ring: null) {
|
|
16
|
+
@if $ring {
|
|
17
|
+
outline: none;
|
|
18
|
+
box-shadow: $ring;
|
|
19
|
+
} @else {
|
|
20
|
+
outline: var(--border-width-medium) solid var(--color-border-focus);
|
|
21
|
+
outline-offset: 2px;
|
|
22
|
+
}
|
|
17
23
|
|
|
18
24
|
@media (forced-colors: active) {
|
|
19
25
|
outline: 2px solid Highlight;
|
|
@@ -21,6 +27,18 @@ $target-size-min: 24px;
|
|
|
21
27
|
}
|
|
22
28
|
}
|
|
23
29
|
|
|
30
|
+
// The focus ring drawn inside the element, for an element that fills a container which
|
|
31
|
+
// clips its overflow, such as a row of a scrolling table. Its gap from the edge mirrors
|
|
32
|
+
// the outer ring's, and keeps its corners clear of a rounded container's curve.
|
|
33
|
+
@mixin focus-ring-inset {
|
|
34
|
+
outline: var(--border-width-medium) solid var(--color-border-focus);
|
|
35
|
+
outline-offset: calc(-2 * var(--border-width-medium));
|
|
36
|
+
|
|
37
|
+
@media (forced-colors: active) {
|
|
38
|
+
outline-color: Highlight;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
24
42
|
// Floating surfaces (menus, dialogs, popovers, toasts) lean on elevation shadow
|
|
25
43
|
// for their boundary, but shadows are dropped in forced-colors mode. Add a
|
|
26
44
|
// hairline border there so the surface stays separated from the content behind.
|
|
@@ -35,6 +53,7 @@ $target-size-min: 24px;
|
|
|
35
53
|
// visible, so the border alone picks up the focus colour, without the halo.
|
|
36
54
|
@mixin readonly-focus-cue {
|
|
37
55
|
border-color: var(--color-border-focus);
|
|
56
|
+
outline: none;
|
|
38
57
|
box-shadow: none;
|
|
39
58
|
|
|
40
59
|
// Border colour is unreliable in forced-colors, so the ring's outline stands
|
package/types/eagami-ui.d.ts
CHANGED
|
@@ -1137,6 +1137,7 @@ export declare class AvatarEditorComponent implements OnDestroy {
|
|
|
1137
1137
|
'ea-avatar-editor--has-image': boolean;
|
|
1138
1138
|
'ea-avatar-editor--drag-over': boolean;
|
|
1139
1139
|
}>;
|
|
1140
|
+
private readonly destroyRef;
|
|
1140
1141
|
private readonly injector;
|
|
1141
1142
|
private readonly boundWheel;
|
|
1142
1143
|
constructor();
|
|
@@ -1395,8 +1396,11 @@ interface NiceScale {
|
|
|
1395
1396
|
max: number;
|
|
1396
1397
|
ticks: number[];
|
|
1397
1398
|
}
|
|
1398
|
-
/**
|
|
1399
|
-
|
|
1399
|
+
/**
|
|
1400
|
+
* Extends `[min, max]` outward to round tick values, about `maxTicks` of them, or more
|
|
1401
|
+
* where a gap would otherwise exceed `maxStep`.
|
|
1402
|
+
*/
|
|
1403
|
+
declare function niceScale(min: number, max: number, maxTicks?: number, maxStep?: number): NiceScale;
|
|
1400
1404
|
/** Rough rendered width of `text` in px, for reserving axis room without a layout pass. */
|
|
1401
1405
|
declare function estimateTextWidth(text: string, fontPx: number): number;
|
|
1402
1406
|
/** Live size of a chart's host, re-measured on resize and whenever `size` changes. */
|
|
@@ -5482,6 +5486,8 @@ export declare class LineChartComponent {
|
|
|
5482
5486
|
readonly yMin: import("@angular/core").InputSignal<number | undefined>;
|
|
5483
5487
|
/** Upper bound of the y-axis; derived from the data when unset. */
|
|
5484
5488
|
readonly yMax: import("@angular/core").InputSignal<number | undefined>;
|
|
5489
|
+
/** Largest gap between y-axis ticks; a wider range gets more ticks instead of wider gaps. */
|
|
5490
|
+
readonly maxYStep: import("@angular/core").InputSignal<number | undefined>;
|
|
5485
5491
|
/** How the x-axis labels are set; `auto` turns them as they run out of room. */
|
|
5486
5492
|
readonly xLabelOrientation: import("@angular/core").InputSignal<ChartLabelOrientation>;
|
|
5487
5493
|
/** Marks the foot of a y-axis that stops short of zero with a break symbol. */
|
|
@@ -5684,6 +5690,11 @@ export declare class LineChartComponent {
|
|
|
5684
5690
|
"required": false;
|
|
5685
5691
|
"isSignal": true;
|
|
5686
5692
|
};
|
|
5693
|
+
"maxYStep": {
|
|
5694
|
+
"alias": "maxYStep";
|
|
5695
|
+
"required": false;
|
|
5696
|
+
"isSignal": true;
|
|
5697
|
+
};
|
|
5687
5698
|
"xLabelOrientation": {
|
|
5688
5699
|
"alias": "xLabelOrientation";
|
|
5689
5700
|
"required": false;
|