@fusion.dev/helix 0.156.0 → 0.157.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/custom-elements.json +1271 -35
- package/dist/element-events.generated.js +1 -1
- package/dist/menu/item/menu-item.css.js +1 -1
- package/dist/menu/item/menu-item.js +3 -1
- package/dist/toast/item/toast-item.css.js +1 -1
- package/lint.json +1 -1
- package/package.json +6 -6
- package/types/jsx.d.ts +250 -3
- package/types/vue.d.ts +78 -0
- package/types/words.d.ts +14 -0
package/types/vue.d.ts
CHANGED
|
@@ -7294,6 +7294,16 @@ export type HelixDrilldownItemHelixSelectElementEvent =
|
|
|
7294
7294
|
export type HelixDrilldownItemVueProps = {
|
|
7295
7295
|
/** Whether the row can be reached at all. */
|
|
7296
7296
|
disabled?: (HelixDrilldownItem["disabled"]) | undefined;
|
|
7297
|
+
/** Whether the link downloads the file when the row is chosen. Only
|
|
7298
|
+
meaningful beside an `href`, and only for a file served from this origin. */
|
|
7299
|
+
download?: (HelixDrilldownItem["download"]) | undefined;
|
|
7300
|
+
/** The URL the row links to. Setting it renders the row as a link, unless the
|
|
7301
|
+
row opens a page or is disabled. */
|
|
7302
|
+
href?: (HelixDrilldownItem["href"]) | undefined;
|
|
7303
|
+
/** The link's `rel`. Set it whenever you set `target="_blank"`. */
|
|
7304
|
+
rel?: (HelixDrilldownItem["rel"]) | undefined;
|
|
7305
|
+
/** Where the link opens, for rows that should open outside the current page. */
|
|
7306
|
+
target?: (HelixDrilldownItem["target"]) | undefined;
|
|
7297
7307
|
/** Identifies the row to your event listeners. */
|
|
7298
7308
|
value?: (HelixDrilldownItem["value"]) | undefined;
|
|
7299
7309
|
/** Whether this row holds the region's tab stop. Set by the drill-down.
|
|
@@ -7320,6 +7330,9 @@ export type HelixDrilldownElementEvent<E = Event> = TypedEvent<
|
|
|
7320
7330
|
HelixDrilldown,
|
|
7321
7331
|
E
|
|
7322
7332
|
>;
|
|
7333
|
+
/** `helix-navigate` event type */
|
|
7334
|
+
export type HelixDrilldownHelixNavigateElementEvent =
|
|
7335
|
+
HelixDrilldownElementEvent<HelixNavigateEvent>;
|
|
7323
7336
|
/** `helix-select` event type */
|
|
7324
7337
|
export type HelixDrilldownHelixSelectElementEvent =
|
|
7325
7338
|
HelixDrilldownElementEvent<HelixSelectEvent>;
|
|
@@ -7349,9 +7362,19 @@ and wins over this. */
|
|
|
7349
7362
|
"back-label"?: (HelixDrilldown["backLabel"]) | undefined;
|
|
7350
7363
|
/** The text of the back button. */
|
|
7351
7364
|
backLabel?: (HelixDrilldown["backLabel"]) | undefined;
|
|
7365
|
+
/** Whether the drilldown is a site's navigation: a `navigation` landmark
|
|
7366
|
+
named by `label`, whose pages are lists of links. Without it, each page is
|
|
7367
|
+
a `menu`. */
|
|
7368
|
+
navigation?: (HelixDrilldown["navigation"]) | undefined;
|
|
7369
|
+
/** The page showing, as the `value` of the row that opens it. Empty is the
|
|
7370
|
+
top page. Setting it shows that page, and a value no row with a page has
|
|
7371
|
+
shows the top page. */
|
|
7372
|
+
page?: (HelixDrilldown["page"]) | undefined;
|
|
7352
7373
|
};
|
|
7353
7374
|
|
|
7354
7375
|
export type HelixDrilldownVueEvents = {
|
|
7376
|
+
/** Fired before a reader moves into a page or back out of one. `detail.value` is the `value` of the row whose page is about to show, empty for the top page. Cancelable: cancel it to stay on the page showing. */
|
|
7377
|
+
"helix-navigate": HelixDrilldownHelixNavigateElementEvent;
|
|
7355
7378
|
/** Fired when a row with no page is chosen. Cancelable: canceling it stops the change and leaves the decision to you. */
|
|
7356
7379
|
"helix-select": HelixDrilldownHelixSelectElementEvent;
|
|
7357
7380
|
};
|
|
@@ -11623,8 +11646,24 @@ narrow exception the server specs describe covers a mirror that can only
|
|
|
11623
11646
|
become true long after hydration, and a viewport measured before the first
|
|
11624
11647
|
paint is the opposite case. See `MixinControllerOpen` on `open`. */
|
|
11625
11648
|
bandBelow?: (HelixMegamenu["bandBelow"]) | undefined;
|
|
11649
|
+
/** How long a pointer leaving the trigger and the panel waits before the panel
|
|
11650
|
+
closes, in milliseconds. The pointer needs the time to cross from the
|
|
11651
|
+
trigger to the panel. */
|
|
11652
|
+
"close-delay"?: (HelixMegamenu["closeDelay"] | `${number}`) | undefined;
|
|
11653
|
+
/** How long a pointer leaving the trigger and the panel waits before the panel
|
|
11654
|
+
closes, in milliseconds. The pointer needs the time to cross from the
|
|
11655
|
+
trigger to the panel. */
|
|
11656
|
+
closeDelay?: (HelixMegamenu["closeDelay"]) | undefined;
|
|
11626
11657
|
/** The section's name, used for the default trigger and the panel. */
|
|
11627
11658
|
label?: (HelixMegamenu["label"]) | undefined;
|
|
11659
|
+
/** How long a pointer rests on the trigger before the panel opens, in
|
|
11660
|
+
milliseconds, under `open-on="hover"`. A pointer crossing the bar on its
|
|
11661
|
+
way somewhere else opens nothing. */
|
|
11662
|
+
"open-delay"?: (HelixMegamenu["openDelay"] | `${number}`) | undefined;
|
|
11663
|
+
/** How long a pointer rests on the trigger before the panel opens, in
|
|
11664
|
+
milliseconds, under `open-on="hover"`. A pointer crossing the bar on its
|
|
11665
|
+
way somewhere else opens nothing. */
|
|
11666
|
+
openDelay?: (HelixMegamenu["openDelay"]) | undefined;
|
|
11628
11667
|
/** Whether hovering over the trigger opens the panel (`hover`), or only a press
|
|
11629
11668
|
does (`click`).
|
|
11630
11669
|
|
|
@@ -11641,6 +11680,10 @@ the trigger, and it is the default because that is what a navigation bar
|
|
|
11641
11680
|
does. `click` is for a trigger that does something else as well, or a panel
|
|
11642
11681
|
heavy enough that opening it on the way past is rude. */
|
|
11643
11682
|
openOn?: (HelixMegamenu["openOn"]) | undefined;
|
|
11683
|
+
/** The side of the trigger a card panel opens on, when there is room. It
|
|
11684
|
+
moves if that side does not fit. A band ignores it, since a band spans the
|
|
11685
|
+
page under its bar. */
|
|
11686
|
+
placement?: (HelixMegamenu["placement"]) | undefined;
|
|
11644
11687
|
/** Whether the panel is a card under the trigger or a band across the page.
|
|
11645
11688
|
|
|
11646
11689
|
The resting one is the card, hanging off the trigger and as wide as it
|
|
@@ -11815,12 +11858,29 @@ Empty by default, which names the surface by its trigger, so a menu opened
|
|
|
11815
11858
|
from "Actions" is announced as "Actions". An `aria-label` or
|
|
11816
11859
|
`aria-labelledby` on the host names it too, and wins over both. */
|
|
11817
11860
|
label?: (HelixMenu["label"]) | undefined;
|
|
11861
|
+
/** The description a trigger gives under `open-on="long-press"`, saying how
|
|
11862
|
+
to open the menu. Translate it with the rest of your interface. */
|
|
11863
|
+
"long-press-label"?: (HelixMenu["longPressLabel"]) | undefined;
|
|
11864
|
+
/** The description a trigger gives under `open-on="long-press"`, saying how
|
|
11865
|
+
to open the menu. Translate it with the rest of your interface. */
|
|
11866
|
+
longPressLabel?: (HelixMenu["longPressLabel"]) | undefined;
|
|
11818
11867
|
/** Space between the trigger and the surface, in pixels. */
|
|
11819
11868
|
offset?: (HelixMenu["offset"]) | undefined;
|
|
11869
|
+
/** What opens the menu from its trigger. `long-press` leaves a press to the
|
|
11870
|
+
trigger's own action and opens the menu on a press held for half a second,
|
|
11871
|
+
or on Alt+Down or Alt+Up. */
|
|
11872
|
+
"open-on"?: (HelixMenu["openOn"]) | undefined;
|
|
11873
|
+
/** What opens the menu from its trigger. `long-press` leaves a press to the
|
|
11874
|
+
trigger's own action and opens the menu on a press held for half a second,
|
|
11875
|
+
or on Alt+Down or Alt+Up. */
|
|
11876
|
+
openOn?: (HelixMenu["openOn"]) | undefined;
|
|
11820
11877
|
/** The side the menu opens on, when there is room.
|
|
11821
11878
|
|
|
11822
11879
|
It moves if that side does not fit. */
|
|
11823
11880
|
placement?: (HelixMenu["placement"]) | undefined;
|
|
11881
|
+
/** How a submenu opens. `drill` shows it in place of the page showing, with
|
|
11882
|
+
a way back. `flyout` opens it in a panel of its own beside its row. */
|
|
11883
|
+
submenus?: (HelixMenu["submenus"]) | undefined;
|
|
11824
11884
|
};
|
|
11825
11885
|
|
|
11826
11886
|
export type HelixMenuVueEvents = {
|
|
@@ -12255,6 +12315,12 @@ say that without the component knowing what a row looks like. */
|
|
|
12255
12315
|
"loading-text"?: (HelixNotifications["loadingText"]) | undefined;
|
|
12256
12316
|
/** The text shown and announced while the rows load. */
|
|
12257
12317
|
loadingText?: (HelixNotifications["loadingText"]) | undefined;
|
|
12318
|
+
/** What the feed says when unread notifications arrive, with `{count}` the
|
|
12319
|
+
number of them. Empty it to say nothing. */
|
|
12320
|
+
"arrived-label"?: (HelixNotifications["arrivedLabel"]) | undefined;
|
|
12321
|
+
/** What the feed says when unread notifications arrive, with `{count}` the
|
|
12322
|
+
number of them. Empty it to say nothing. */
|
|
12323
|
+
arrivedLabel?: (HelixNotifications["arrivedLabel"]) | undefined;
|
|
12258
12324
|
/** The region's name where `label` is empty. */
|
|
12259
12325
|
"fallback-label"?: (HelixNotifications["fallbackLabel"]) | undefined;
|
|
12260
12326
|
/** The region's name where `label` is empty. */
|
|
@@ -18380,6 +18446,10 @@ attribute nobody can use. */
|
|
|
18380
18446
|
|
|
18381
18447
|
A subset of the tone axis: a toast reports a status and never a brand role. */
|
|
18382
18448
|
tone?: (HelixToastItem["tone"]) | undefined;
|
|
18449
|
+
/** Whether the region holds the message back, because more messages are
|
|
18450
|
+
showing than its `max-visible`. The region sets it. A waiting message is
|
|
18451
|
+
hidden, its timer has not started, and it is said once it shows. */
|
|
18452
|
+
waiting?: (HelixToastItem["waiting"]) | undefined;
|
|
18383
18453
|
};
|
|
18384
18454
|
|
|
18385
18455
|
export type HelixToastItemVueEvents = {
|
|
@@ -18402,6 +18472,14 @@ Empty turns it off. */
|
|
|
18402
18472
|
/** Accessible name for the region, with `{hotkey}` filled in. Translate it with
|
|
18403
18473
|
the rest of your interface. */
|
|
18404
18474
|
label?: (HelixToast["label"]) | undefined;
|
|
18475
|
+
/** How many messages show at once. The messages after that many wait, hidden
|
|
18476
|
+
and with their timers stopped, until a message before them goes. Unset,
|
|
18477
|
+
every message shows. */
|
|
18478
|
+
"max-visible"?: (HelixToast["maxVisible"] | `${number}`) | undefined;
|
|
18479
|
+
/** How many messages show at once. The messages after that many wait, hidden
|
|
18480
|
+
and with their timers stopped, until a message before them goes. Unset,
|
|
18481
|
+
every message shows. */
|
|
18482
|
+
maxVisible?: (HelixToast["maxVisible"]) | undefined;
|
|
18405
18483
|
/** Which corner or edge the stack sits at.
|
|
18406
18484
|
|
|
18407
18485
|
Named here rather than on each message, because where a page puts its
|
package/types/words.d.ts
CHANGED
|
@@ -25,6 +25,13 @@ declare module '@fusion.dev/helix-core' {
|
|
|
25
25
|
* English: `{author}: {text}`
|
|
26
26
|
*/
|
|
27
27
|
arrivalLabel: Message
|
|
28
|
+
/**
|
|
29
|
+
* What the feed says when unread notifications arrive, with `{count}` the
|
|
30
|
+
* number of them. Empty it to say nothing.
|
|
31
|
+
*
|
|
32
|
+
* English: `{count, plural, one {# new notification} other {# new notifications}}`
|
|
33
|
+
*/
|
|
34
|
+
arrivedLabel: Message
|
|
28
35
|
/**
|
|
29
36
|
* The word for an ascending sort, in a `sorted-label` that writes `{order}`.
|
|
30
37
|
*
|
|
@@ -334,6 +341,13 @@ declare module '@fusion.dev/helix-core' {
|
|
|
334
341
|
* English: `Load more`
|
|
335
342
|
*/
|
|
336
343
|
loadMoreLabel: Message
|
|
344
|
+
/**
|
|
345
|
+
* The description a trigger gives under `open-on="long-press"`, saying how
|
|
346
|
+
* to open the menu. Translate it with the rest of your interface.
|
|
347
|
+
*
|
|
348
|
+
* English: `Long press or press Alt+Down to show the menu`
|
|
349
|
+
*/
|
|
350
|
+
longPressLabel: Message
|
|
337
351
|
/**
|
|
338
352
|
* The name of the map types in the layers menu, read by screen readers.
|
|
339
353
|
*
|