@meshmakers/shared-ui 3.4.1480 → 3.5.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/README.md +48 -0
- package/assets/octobot/lg/octo_blink.webp +0 -0
- package/assets/octobot/lg/octo_blink_still.png +0 -0
- package/assets/octobot/lg/octo_idle.webp +0 -0
- package/assets/octobot/lg/octo_idle_still.png +0 -0
- package/assets/octobot/lg/octo_look.webp +0 -0
- package/assets/octobot/lg/octo_look_still.png +0 -0
- package/assets/octobot/lg/octo_swim.webp +0 -0
- package/assets/octobot/lg/octo_swim_still.png +0 -0
- package/assets/octobot/lg/octo_thinking.webp +0 -0
- package/assets/octobot/lg/octo_thinking_still.png +0 -0
- package/assets/octobot/lg/octo_wave.webp +0 -0
- package/assets/octobot/lg/octo_wave_still.png +0 -0
- package/assets/octobot/md/octo_blink.webp +0 -0
- package/assets/octobot/md/octo_blink_still.png +0 -0
- package/assets/octobot/md/octo_idle.webp +0 -0
- package/assets/octobot/md/octo_idle_still.png +0 -0
- package/assets/octobot/md/octo_look.webp +0 -0
- package/assets/octobot/md/octo_look_still.png +0 -0
- package/assets/octobot/md/octo_swim.webp +0 -0
- package/assets/octobot/md/octo_swim_still.png +0 -0
- package/assets/octobot/md/octo_thinking.webp +0 -0
- package/assets/octobot/md/octo_thinking_still.png +0 -0
- package/assets/octobot/md/octo_wave.webp +0 -0
- package/assets/octobot/md/octo_wave_still.png +0 -0
- package/assets/octobot/sm/octo_blink.webp +0 -0
- package/assets/octobot/sm/octo_blink_still.png +0 -0
- package/assets/octobot/sm/octo_idle.webp +0 -0
- package/assets/octobot/sm/octo_idle_still.png +0 -0
- package/assets/octobot/sm/octo_look.webp +0 -0
- package/assets/octobot/sm/octo_look_still.png +0 -0
- package/assets/octobot/sm/octo_swim.webp +0 -0
- package/assets/octobot/sm/octo_swim_still.png +0 -0
- package/assets/octobot/sm/octo_thinking.webp +0 -0
- package/assets/octobot/sm/octo_thinking_still.png +0 -0
- package/assets/octobot/sm/octo_wave.webp +0 -0
- package/assets/octobot/sm/octo_wave_still.png +0 -0
- package/fesm2022/meshmakers-shared-ui-assistant-core.mjs +940 -0
- package/fesm2022/meshmakers-shared-ui-assistant-core.mjs.map +1 -0
- package/fesm2022/meshmakers-shared-ui-assistant.mjs +819 -0
- package/fesm2022/meshmakers-shared-ui-assistant.mjs.map +1 -0
- package/fesm2022/meshmakers-shared-ui-command-palette.mjs +817 -0
- package/fesm2022/meshmakers-shared-ui-command-palette.mjs.map +1 -0
- package/fesm2022/meshmakers-shared-ui-shell.mjs +1738 -0
- package/fesm2022/meshmakers-shared-ui-shell.mjs.map +1 -0
- package/fesm2022/meshmakers-shared-ui-testing.mjs +92 -0
- package/fesm2022/meshmakers-shared-ui-testing.mjs.map +1 -0
- package/fesm2022/meshmakers-shared-ui.mjs +1550 -203
- package/fesm2022/meshmakers-shared-ui.mjs.map +1 -1
- package/package.json +28 -2
- package/types/meshmakers-shared-ui-assistant-core.d.ts +732 -0
- package/types/meshmakers-shared-ui-assistant.d.ts +258 -0
- package/types/meshmakers-shared-ui-command-palette.d.ts +398 -0
- package/types/meshmakers-shared-ui-shell.d.ts +939 -0
- package/types/meshmakers-shared-ui-testing.d.ts +41 -0
- package/types/meshmakers-shared-ui.d.ts +1004 -154
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ComponentFixture } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
/** Options of {@link expectIconButtonsAccessible} / {@link findInaccessibleIconButtons}. */
|
|
4
|
+
interface IconButtonA11yOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Also require a tooltip (`title`) next to the accessible name — the Studio action guideline
|
|
7
|
+
* (§2.2) wants both: tooltip = label for sighted users, `aria-label` = label + target. Default `true`.
|
|
8
|
+
*/
|
|
9
|
+
requireTooltip?: boolean;
|
|
10
|
+
/** CSS selector of elements to skip (e.g. third-party widgets the spec does not own). */
|
|
11
|
+
ignore?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Also check Kendo's widget-internal buttons (dropdown arrows, spinners, pager selects — named by
|
|
14
|
+
* Kendo with `aria-label` only, not in the host's hands). Default `false`.
|
|
15
|
+
*/
|
|
16
|
+
includeKendoInternals?: boolean;
|
|
17
|
+
}
|
|
18
|
+
type Root = ComponentFixture<unknown> | Element | Document;
|
|
19
|
+
/**
|
|
20
|
+
* Icon-only buttons (an icon, no visible text) that miss an accessible name (`aria-label` /
|
|
21
|
+
* `aria-labelledby`) or — unless `requireTooltip: false` — a tooltip (`title`). Returns one
|
|
22
|
+
* message per offending button.
|
|
23
|
+
*/
|
|
24
|
+
declare function findInaccessibleIconButtons(root: Root, options?: IconButtonA11yOptions): string[];
|
|
25
|
+
/**
|
|
26
|
+
* Fails (throws) when the rendered fixture / element contains an icon-only button without an
|
|
27
|
+
* accessible name and a tooltip (Studio action guideline §2.2, AB#5581). Runs `detectChanges()`
|
|
28
|
+
* on a fixture first.
|
|
29
|
+
*
|
|
30
|
+
* ```ts
|
|
31
|
+
* import { expectIconButtonsAccessible } from '@meshmakers/shared-ui/testing';
|
|
32
|
+
*
|
|
33
|
+
* it('names every icon-only button', () => {
|
|
34
|
+
* expectIconButtonsAccessible(fixture);
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
declare function expectIconButtonsAccessible(root: Root, options?: IconButtonA11yOptions): void;
|
|
39
|
+
|
|
40
|
+
export { expectIconButtonsAccessible, findInaccessibleIconButtons };
|
|
41
|
+
export type { IconButtonA11yOptions };
|