@eagami/ui 5.29.0 → 5.30.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/README.md +11 -0
- package/fesm2022/eagami-ui-testing.mjs +42 -0
- package/fesm2022/eagami-ui-testing.mjs.map +1 -0
- package/fesm2022/eagami-ui.mjs +35 -16
- package/fesm2022/eagami-ui.mjs.map +1 -1
- package/package.json +6 -1
- package/testing/package.json +4 -0
- package/types/eagami-ui-testing.d.ts +10 -0
- package/types/eagami-ui.d.ts +16 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eagami/ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.30.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",
|
|
@@ -48,6 +48,10 @@
|
|
|
48
48
|
".": {
|
|
49
49
|
"types": "./types/eagami-ui.d.ts",
|
|
50
50
|
"default": "./fesm2022/eagami-ui.mjs"
|
|
51
|
+
},
|
|
52
|
+
"./testing": {
|
|
53
|
+
"types": "./types/eagami-ui-testing.d.ts",
|
|
54
|
+
"default": "./fesm2022/eagami-ui-testing.mjs"
|
|
51
55
|
}
|
|
52
56
|
},
|
|
53
57
|
"type": "module",
|
|
@@ -56,6 +60,7 @@
|
|
|
56
60
|
"types",
|
|
57
61
|
"src/styles",
|
|
58
62
|
"schematics",
|
|
63
|
+
"testing",
|
|
59
64
|
"README.md"
|
|
60
65
|
],
|
|
61
66
|
"schematics": "./schematics/collection.json"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fills in the native `<dialog>` methods jsdom leaves unimplemented, so a spec
|
|
3
|
+
* can create a component that opens an `ea-dialog` or `ea-drawer` without the
|
|
4
|
+
* test runner throwing on `showModal()` or `close()`. Call once from the test
|
|
5
|
+
* setup file. Only missing methods are patched, so a runtime that implements
|
|
6
|
+
* the element keeps its own behavior.
|
|
7
|
+
*/
|
|
8
|
+
declare function installNativeDialogShim(): void;
|
|
9
|
+
|
|
10
|
+
export { installNativeDialogShim };
|
package/types/eagami-ui.d.ts
CHANGED
|
@@ -1843,6 +1843,17 @@ type DialogWidth = EaWidth;
|
|
|
1843
1843
|
* for browser-managed focus trapping, supports backdrop and Escape dismissal,
|
|
1844
1844
|
* and exposes `header`, default, and `footer` content slots. The `open` state
|
|
1845
1845
|
* is a two-way `model()` binding.
|
|
1846
|
+
*
|
|
1847
|
+
* The header is a row that lays its slot content out against the built-in
|
|
1848
|
+
* close button, and it applies the h4 type scale to that content, so a heading
|
|
1849
|
+
* element projected into it should carry `font: inherit`. Panel chrome is
|
|
1850
|
+
* tunable per dialog via `--ea-dialog-inset`, `--ea-dialog-radius`,
|
|
1851
|
+
* `--ea-dialog-max-height`, `--ea-dialog-header-padding`,
|
|
1852
|
+
* `--ea-dialog-body-padding`, and `--ea-dialog-status-padding`; an
|
|
1853
|
+
* edge-to-edge media surface zeroes the inset, radius, and paddings.
|
|
1854
|
+
*
|
|
1855
|
+
* Specs running under jsdom need `installNativeDialogShim()` from
|
|
1856
|
+
* `@eagami/ui/testing` before opening one.
|
|
1846
1857
|
*/
|
|
1847
1858
|
declare class DialogComponent implements AfterContentChecked {
|
|
1848
1859
|
private readonly dialogEl;
|
|
@@ -1941,6 +1952,9 @@ type DrawerAnimation = 'none' | 'linear' | 'eased';
|
|
|
1941
1952
|
* Escape dismissal, and exposes `header`, default, and `footer` content
|
|
1942
1953
|
* slots. The `open` state is a two-way `model()` binding. In `push` mode it
|
|
1943
1954
|
* opens non-modally and reflows the page content aside instead of overlaying it.
|
|
1955
|
+
*
|
|
1956
|
+
* Specs running under jsdom need `installNativeDialogShim()` from
|
|
1957
|
+
* `@eagami/ui/testing` before opening one.
|
|
1944
1958
|
*/
|
|
1945
1959
|
declare class DrawerComponent implements AfterContentChecked {
|
|
1946
1960
|
private readonly drawerEl;
|
|
@@ -3810,8 +3824,8 @@ type TagTooltip = 'above' | 'below' | 'none';
|
|
|
3810
3824
|
* accessible name of that button is configurable via `removeLabel` and
|
|
3811
3825
|
* otherwise falls back to the active locale's translation.
|
|
3812
3826
|
*
|
|
3813
|
-
*
|
|
3814
|
-
*
|
|
3827
|
+
* When capped by `maxWidth` (or the `--ea-tag-max-width` custom property),
|
|
3828
|
+
* the projected label ellipsizes rather than widening the chip, revealing its
|
|
3815
3829
|
* full text in a tooltip while it is clipped.
|
|
3816
3830
|
*/
|
|
3817
3831
|
declare class TagComponent {
|