@fusion.dev/helix-headless 0.235.0 → 0.236.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,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix-headless",
3
3
  "description": "Headless component tier. Structure, accessibility, state, and form participation. No styling.",
4
- "version": "0.235.0",
4
+ "version": "0.236.0",
5
5
  "license": "MIT",
6
6
  "author": "Fusion Development Group",
7
7
  "repository": {
@@ -58,14 +58,14 @@
58
58
  },
59
59
  "bugs": "https://github.com/project-fusion/fusion/issues",
60
60
  "dependencies": {
61
- "@fusion.dev/helix-core": "0.235.0",
62
- "@fusion.dev/helix-icons": "0.235.0",
61
+ "@fusion.dev/helix-core": "0.236.0",
62
+ "@fusion.dev/helix-icons": "0.236.0",
63
63
  "tslib": "^2.8.1",
64
64
  "uqr": "^0.1.3"
65
65
  },
66
66
  "devDependencies": {
67
- "@fusion.dev/helix-cem": "0.235.0",
68
- "@fusion.dev/helix-testing": "0.235.0",
67
+ "@fusion.dev/helix-cem": "0.236.0",
68
+ "@fusion.dev/helix-testing": "0.236.0",
69
69
  "@fusion.dev/scripts": "0.0.0-dev",
70
70
  "@happy-dom/global-registrator": "^21.0.4",
71
71
  "@lit-labs/ssr": "^4.1.0",
package/types/jsx.d.ts CHANGED
@@ -7102,7 +7102,11 @@ its own middle click. This widens where a pointer may land. Ignored while
7102
7102
  /** Adds a column of checkboxes for selecting rows.
7103
7103
 
7104
7104
  Wants `row-key`: a selection is a set of identities, and without one the rows
7105
- are known by their place in the result, which a sort changes. */
7105
+ are known by their place in the result, which a sort changes.
7106
+
7107
+ Reflected, because the styled tier lays the headings out by whether a
7108
+ checkbox column leads them: set as a property, as React sets it, the
7109
+ table's first heading took the inset a leading column already gives. */
7106
7110
  "selectable"?: HelixHeadlessDataTable["selectable"] | undefined;
7107
7111
  /** The name of the checkbox in the heading that selects every row. */
7108
7112
  "select-all-label"?: HelixHeadlessDataTable["selectAllLabel"] | undefined;
@@ -23649,6 +23653,17 @@ state instead. No default, so an unset column writes nothing onto its host. */
23649
23653
  "text-align"?: HelixHeadlessTableColumn["textAlign"] | undefined;
23650
23654
  /** Which edge the values line up against. */
23651
23655
  "textAlign"?: HelixHeadlessTableColumn["textAlign"] | undefined;
23656
+ /** Where the content of this column's cells sits from top to bottom, when a
23657
+ row is taller than it: `start`, `center` or `end`.
23658
+
23659
+ **Unset follows the table**, which centers, so a line of text beside a
23660
+ taller grip, tag or button sits on the row's middle rather than riding at
23661
+ its top. `start` keeps a column of long, wrapping text against the top
23662
+ edge, where a reader begins it. Reflected and written to each cell as
23663
+ `text-align` is, for the same reasons. */
23664
+ "vertical-align"?: HelixHeadlessTableColumn["verticalAlign"] | undefined;
23665
+ /** Where the content of this column's cells sits from top to bottom, when a row is taller than it: `start`, `center` or `end`. */
23666
+ "verticalAlign"?: HelixHeadlessTableColumn["verticalAlign"] | undefined;
23652
23667
  /** The track this column takes, as CSS.
23653
23668
 
23654
23669
  A single track value, so anything valid in `grid-template-columns` works:
@@ -23741,6 +23756,10 @@ export type HelixHeadlessTableColumnSolidJsProps = {
23741
23756
  "attr:text-align"?: HelixHeadlessTableColumn["textAlign"] | undefined;
23742
23757
  /** Which edge the values line up against. */
23743
23758
  "prop:textAlign"?: HelixHeadlessTableColumn["textAlign"] | undefined;
23759
+ /** Where the content of this column's cells sits from top to bottom, when a row is taller than it: `start`, `center` or `end`. */
23760
+ "attr:vertical-align"?: HelixHeadlessTableColumn["verticalAlign"] | undefined;
23761
+ /** Where the content of this column's cells sits from top to bottom, when a row is taller than it: `start`, `center` or `end`. */
23762
+ "prop:verticalAlign"?: HelixHeadlessTableColumn["verticalAlign"] | undefined;
23744
23763
  /** The track this column takes, as CSS. */
23745
23764
  "prop:width"?: HelixHeadlessTableColumn["width"] | undefined;
23746
23765
  /** The text screen readers announce for the column's width. `{width}` is the width in pixels, written in the locale, and each language writes the forms it has. */
@@ -24211,6 +24230,15 @@ export type HelixHeadlessTabPanelElementEvent<E = Event> = TypedEvent<HelixHeadl
24211
24230
  export type HelixHeadlessTabPanelHelixLoadElementEvent = HelixHeadlessTabPanelElementEvent<HelixLoadEvent>;
24212
24231
 
24213
24232
  export type HelixHeadlessTabPanelProps = {
24233
+ /** Whether find in page searches the panel while its tab is not selected, and
24234
+ selects the tab on a match.
24235
+
24236
+ Unset takes the tabs' `hidden-until-found`, which is on. Write
24237
+ `hidden-until-found="false"` to keep find in page out of this panel: an
24238
+ inactive panel is then `hidden`. */
24239
+ "hidden-until-found"?: HelixHeadlessTabPanel["hiddenUntilFound"] | undefined;
24240
+ /** Whether find in page searches the panel while its tab is not selected, and selects the tab on a match. */
24241
+ "hiddenUntilFound"?: HelixHeadlessTabPanel["hiddenUntilFound"] | undefined;
24214
24242
  /** Whether the panel's content waits in a `<template>` until the panel is
24215
24243
  first shown. */
24216
24244
  "lazy"?: HelixHeadlessTabPanel["lazy"] | undefined;
@@ -24223,6 +24251,10 @@ first shown. */
24223
24251
  };
24224
24252
 
24225
24253
  export type HelixHeadlessTabPanelSolidJsProps = {
24254
+ /** Whether find in page searches the panel while its tab is not selected, and selects the tab on a match. */
24255
+ "bool:hidden-until-found"?: HelixHeadlessTabPanel["hiddenUntilFound"] | undefined;
24256
+ /** Whether find in page searches the panel while its tab is not selected, and selects the tab on a match. */
24257
+ "prop:hiddenUntilFound"?: HelixHeadlessTabPanel["hiddenUntilFound"] | undefined;
24226
24258
  /** Whether the panel's content waits in a `<template>` until the panel is first shown. */
24227
24259
  "prop:lazy"?: HelixHeadlessTabPanel["lazy"] | undefined;
24228
24260
  /** Whether this panel is the visible one. */
@@ -24247,6 +24279,14 @@ export type HelixHeadlessTabsHelixBeforeActivateElementEvent = HelixHeadlessTabs
24247
24279
  export type HelixHeadlessTabsHelixBeforeSelectElementEvent = HelixHeadlessTabsElementEvent<HelixBeforeSelectEvent>;
24248
24280
 
24249
24281
  export type HelixHeadlessTabsProps = {
24282
+ /** Whether find in page searches the panels whose tabs are not selected, and
24283
+ selects the tab on a match. On by default.
24284
+
24285
+ Write `hidden-until-found="false"` to turn it off for every panel; a
24286
+ panel's own `hidden-until-found` wins for that panel. */
24287
+ "hidden-until-found"?: HelixHeadlessTabs["hiddenUntilFound"] | undefined;
24288
+ /** Whether find in page searches the panels whose tabs are not selected, and selects the tab on a match. On by default. */
24289
+ "hiddenUntilFound"?: HelixHeadlessTabs["hiddenUntilFound"] | undefined;
24250
24290
  /** The tab list's name, read by screen readers.
24251
24291
 
24252
24292
  An `aria-label` or `aria-labelledby` on the host names the tab list too,
@@ -24319,6 +24359,10 @@ Ignored once `active` is written. */
24319
24359
  };
24320
24360
 
24321
24361
  export type HelixHeadlessTabsSolidJsProps = {
24362
+ /** Whether find in page searches the panels whose tabs are not selected, and selects the tab on a match. On by default. */
24363
+ "bool:hidden-until-found"?: HelixHeadlessTabs["hiddenUntilFound"] | undefined;
24364
+ /** Whether find in page searches the panels whose tabs are not selected, and selects the tab on a match. On by default. */
24365
+ "prop:hiddenUntilFound"?: HelixHeadlessTabs["hiddenUntilFound"] | undefined;
24322
24366
  /** The tab list's name, read by screen readers. */
24323
24367
  "prop:label"?: HelixHeadlessTabs["label"] | undefined;
24324
24368
  /** Stops the arrow keys from selecting each tab they move to. By default, arrowing to a tab also selects it. */
@@ -33022,6 +33066,7 @@ interface Tags {
33022
33066
  * ## CSS Custom Properties
33023
33067
  *
33024
33068
  * - `--data-table-cell-align`: The alignment of the cell's column: `start`, `center`, or `end`. Unset when the column sets none. The component writes it on each cell it draws, and the stylesheet reads it. `Table` sets `--table-cell-align` for the same purpose.
33069
+ * - `--data-table-cell-block-align`: Where a cell's content sits from top to bottom in a row taller than it: `start`, `center` or `end`. `center` by default. Set it on the table, or on a row through `::part(row)`; a column's `vertical-align` writes it on each of that column's cells, and wins.
33025
33070
  * - `--data-table-level`: How deep a row is in a tree grid, from 1. The component writes it on each row header cell, and the stylesheet indents by it.
33026
33071
  * - `--data-table-template`: The column track list, worked out from the columns. The component writes it inline on the element that reads it, so setting it has no effect. Set a column's `width` to change it.
33027
33072
  *
@@ -43327,6 +43372,7 @@ interface Tags {
43327
43372
  * - `row-header`/`rowHeader`: Makes this column's cells the headers of their rows, in `DataTable`.
43328
43373
  * - `sortable`: Whether the table can be sorted by this column.
43329
43374
  * - `text-align`/`textAlign`: Which edge the values line up against.
43375
+ * - `vertical-align`/`verticalAlign`: Where the content of this column's cells sits from top to bottom, when a row is taller than it: `start`, `center` or `end`.
43330
43376
  * - `width`: The track this column takes, as CSS.
43331
43377
  * - `width-label`/`widthLabel`: The text screen readers announce for the column's width. `{width}` is the width in pixels, written in the locale, and each language writes the forms it has.
43332
43378
  * - `cell`: A function that reads the cell's content from a row, for cells that `field` alone cannot read. (property only)
@@ -43695,6 +43741,15 @@ interface Tags {
43695
43741
  * still there when the person comes back, and the content of every panel is in
43696
43742
  * the server-rendered markup for crawlers, whichever tab is open.
43697
43743
  *
43744
+ * The browser's find in page searches an inactive panel, and a match selects
43745
+ * its tab, with `helix-before-activate` first, as a match in a closed
43746
+ * accordion section opens it. An inactive panel is `hidden="until-found"`,
43747
+ * which hides it with no stylesheet loaded and keeps it out of the tab order
43748
+ * and the accessibility tree. Set `hidden-until-found="false"` on the panel,
43749
+ * or on the tabs for every panel, and an inactive panel is `hidden` instead,
43750
+ * and find in page skips it. A `lazy` panel that has not been shown holds only
43751
+ * its template, so there is nothing in it to find.
43752
+ *
43698
43753
  * The host is the `tabpanel` while its tab is selected, through
43699
43754
  * `ElementInternals`, so the tab's `aria-controls` can reach it from the tab's
43700
43755
  * shadow root. The box inside is a tab stop only while the panel holds nothing
@@ -43710,6 +43765,7 @@ interface Tags {
43710
43765
  *
43711
43766
  * ## Attributes & Properties
43712
43767
  *
43768
+ * - `hidden-until-found`/`hiddenUntilFound`: Whether find in page searches the panel while its tab is not selected, and selects the tab on a match.
43713
43769
  * - `lazy`: Whether the panel's content waits in a `<template>` until the panel is first shown.
43714
43770
  * - `selected`: Whether this panel is the visible one.
43715
43771
  * - `value`: Pairs the panel with the tab of the same value.
@@ -43800,6 +43856,7 @@ interface Tags {
43800
43856
  *
43801
43857
  * ## Attributes & Properties
43802
43858
  *
43859
+ * - `hidden-until-found`/`hiddenUntilFound`: Whether find in page searches the panels whose tabs are not selected, and selects the tab on a match. On by default.
43803
43860
  * - `label`: The tab list's name, read by screen readers.
43804
43861
  * - `manual`: Stops the arrow keys from selecting each tab they move to. By default, arrowing to a tab also selects it.
43805
43862
  * - `marker`: How the row of tabs is drawn.
@@ -46862,6 +46919,8 @@ export type CustomCssProperties = {
46862
46919
  "--color-picker-swatch"?: string | undefined;
46863
46920
  /** The alignment of the cell's column: `start`, `center`, or `end`. Unset when the column sets none. The component writes it on each cell it draws, and the stylesheet reads it. `Table` sets `--table-cell-align` for the same purpose. */
46864
46921
  "--data-table-cell-align"?: string | undefined;
46922
+ /** Where a cell's content sits from top to bottom in a row taller than it: `start`, `center` or `end`. `center` by default. Set it on the table, or on a row through `::part(row)`; a column's `vertical-align` writes it on each of that column's cells, and wins. */
46923
+ "--data-table-cell-block-align"?: string | undefined;
46865
46924
  /** How deep a row is in a tree grid, from 1. The component writes it on each row header cell, and the stylesheet indents by it. */
46866
46925
  "--data-table-level"?: string | undefined;
46867
46926
  /** The column track list, worked out from the columns. The component writes it inline on the element that reads it, so setting it has no effect. Set a column's `width` to change it. */
package/types/vue.d.ts CHANGED
@@ -4826,7 +4826,11 @@ its own middle click. This widens where a pointer may land. Ignored while
4826
4826
  /** Adds a column of checkboxes for selecting rows.
4827
4827
 
4828
4828
  Wants `row-key`: a selection is a set of identities, and without one the rows
4829
- are known by their place in the result, which a sort changes. */
4829
+ are known by their place in the result, which a sort changes.
4830
+
4831
+ Reflected, because the styled tier lays the headings out by whether a
4832
+ checkbox column leads them: set as a property, as React sets it, the
4833
+ table's first heading took the inset a leading column already gives. */
4830
4834
  "selectable"?: HelixHeadlessDataTable["selectable"] | undefined;
4831
4835
  /** The name of the checkbox in the heading that selects every row. */
4832
4836
  "select-all-label"?: HelixHeadlessDataTable["selectAllLabel"] | undefined;
@@ -15965,6 +15969,17 @@ state instead. No default, so an unset column writes nothing onto its host. */
15965
15969
  "text-align"?: HelixHeadlessTableColumn["textAlign"] | undefined;
15966
15970
  /** Which edge the values line up against. */
15967
15971
  "textAlign"?: HelixHeadlessTableColumn["textAlign"] | undefined;
15972
+ /** Where the content of this column's cells sits from top to bottom, when a
15973
+ row is taller than it: `start`, `center` or `end`.
15974
+
15975
+ **Unset follows the table**, which centers, so a line of text beside a
15976
+ taller grip, tag or button sits on the row's middle rather than riding at
15977
+ its top. `start` keeps a column of long, wrapping text against the top
15978
+ edge, where a reader begins it. Reflected and written to each cell as
15979
+ `text-align` is, for the same reasons. */
15980
+ "vertical-align"?: HelixHeadlessTableColumn["verticalAlign"] | undefined;
15981
+ /** Where the content of this column's cells sits from top to bottom, when a row is taller than it: `start`, `center` or `end`. */
15982
+ "verticalAlign"?: HelixHeadlessTableColumn["verticalAlign"] | undefined;
15968
15983
  /** The track this column takes, as CSS.
15969
15984
 
15970
15985
  A single track value, so anything valid in `grid-template-columns` works:
@@ -16315,6 +16330,15 @@ export type HelixHeadlessTabPanelElementEvent<E = Event> = TypedEvent<HelixHeadl
16315
16330
  export type HelixHeadlessTabPanelHelixLoadElementEvent = HelixHeadlessTabPanelElementEvent<HelixLoadEvent>;
16316
16331
 
16317
16332
  export type HelixHeadlessTabPanelVueProps = {
16333
+ /** Whether find in page searches the panel while its tab is not selected, and
16334
+ selects the tab on a match.
16335
+
16336
+ Unset takes the tabs' `hidden-until-found`, which is on. Write
16337
+ `hidden-until-found="false"` to keep find in page out of this panel: an
16338
+ inactive panel is then `hidden`. */
16339
+ "hidden-until-found"?: HelixHeadlessTabPanel["hiddenUntilFound"] | undefined;
16340
+ /** Whether find in page searches the panel while its tab is not selected, and selects the tab on a match. */
16341
+ "hiddenUntilFound"?: HelixHeadlessTabPanel["hiddenUntilFound"] | undefined;
16318
16342
  /** Whether the panel's content waits in a `<template>` until the panel is
16319
16343
  first shown. */
16320
16344
  "lazy"?: HelixHeadlessTabPanel["lazy"] | undefined;
@@ -16339,6 +16363,14 @@ export type HelixHeadlessTabsHelixBeforeActivateElementEvent = HelixHeadlessTabs
16339
16363
  export type HelixHeadlessTabsHelixBeforeSelectElementEvent = HelixHeadlessTabsElementEvent<HelixBeforeSelectEvent>;
16340
16364
 
16341
16365
  export type HelixHeadlessTabsVueProps = {
16366
+ /** Whether find in page searches the panels whose tabs are not selected, and
16367
+ selects the tab on a match. On by default.
16368
+
16369
+ Write `hidden-until-found="false"` to turn it off for every panel; a
16370
+ panel's own `hidden-until-found` wins for that panel. */
16371
+ "hidden-until-found"?: HelixHeadlessTabs["hiddenUntilFound"] | undefined;
16372
+ /** Whether find in page searches the panels whose tabs are not selected, and selects the tab on a match. On by default. */
16373
+ "hiddenUntilFound"?: HelixHeadlessTabs["hiddenUntilFound"] | undefined;
16342
16374
  /** The tab list's name, read by screen readers.
16343
16375
 
16344
16376
  An `aria-label` or `aria-labelledby` on the host names the tab list too,
@@ -19470,6 +19502,8 @@ export type CustomCssProperties = {
19470
19502
  "--color-picker-swatch"?: string | undefined;
19471
19503
  /** The alignment of the cell's column: `start`, `center`, or `end`. Unset when the column sets none. The component writes it on each cell it draws, and the stylesheet reads it. `Table` sets `--table-cell-align` for the same purpose. */
19472
19504
  "--data-table-cell-align"?: string | undefined;
19505
+ /** Where a cell's content sits from top to bottom in a row taller than it: `start`, `center` or `end`. `center` by default. Set it on the table, or on a row through `::part(row)`; a column's `vertical-align` writes it on each of that column's cells, and wins. */
19506
+ "--data-table-cell-block-align"?: string | undefined;
19473
19507
  /** How deep a row is in a tree grid, from 1. The component writes it on each row header cell, and the stylesheet indents by it. */
19474
19508
  "--data-table-level"?: string | undefined;
19475
19509
  /** The column track list, worked out from the columns. The component writes it inline on the element that reads it, so setting it has no effect. Set a column's `width` to change it. */
@@ -25754,6 +25788,15 @@ export interface HelixVueGlobalComponents {
25754
25788
  * still there when the person comes back, and the content of every panel is in
25755
25789
  * the server-rendered markup for crawlers, whichever tab is open.
25756
25790
  *
25791
+ * The browser's find in page searches an inactive panel, and a match selects
25792
+ * its tab, with `helix-before-activate` first, as a match in a closed
25793
+ * accordion section opens it. An inactive panel is `hidden="until-found"`,
25794
+ * which hides it with no stylesheet loaded and keeps it out of the tab order
25795
+ * and the accessibility tree. Set `hidden-until-found="false"` on the panel,
25796
+ * or on the tabs for every panel, and an inactive panel is `hidden` instead,
25797
+ * and find in page skips it. A `lazy` panel that has not been shown holds only
25798
+ * its template, so there is nothing in it to find.
25799
+ *
25757
25800
  * The host is the `tabpanel` while its tab is selected, through
25758
25801
  * `ElementInternals`, so the tab's `aria-controls` can reach it from the tab's
25759
25802
  * shadow root. The box inside is a tab stop only while the panel holds nothing