@fusion.dev/helix 0.38.0 → 0.40.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/types/vue.d.ts CHANGED
@@ -138,8 +138,8 @@ import type {
138
138
  HelixVideoPlaylist,
139
139
  HelixVideo,
140
140
  HelixVirtualList,
141
- HelixBeforeOpenEvent,
142
141
  HelixBeforeCloseEvent,
142
+ HelixBeforeOpenEvent,
143
143
  HelixDismissEvent,
144
144
  HelixScrolledEvent,
145
145
  HelixSelectEvent,
@@ -218,12 +218,12 @@ export type HelixAccordionItemElementEvent<E = Event> = TypedEvent<
218
218
  HelixAccordionItem,
219
219
  E
220
220
  >;
221
- /** `helix-before-open` event type */
222
- export type HelixAccordionItemHelixBeforeOpenElementEvent =
223
- HelixAccordionItemElementEvent<HelixBeforeOpenEvent>;
224
221
  /** `helix-before-close` event type */
225
222
  export type HelixAccordionItemHelixBeforeCloseElementEvent =
226
223
  HelixAccordionItemElementEvent<HelixBeforeCloseEvent>;
224
+ /** `helix-before-open` event type */
225
+ export type HelixAccordionItemHelixBeforeOpenElementEvent =
226
+ HelixAccordionItemElementEvent<HelixBeforeOpenEvent>;
227
227
 
228
228
  export type HelixAccordionItemVueProps = {
229
229
  /** Whether the element is open.
@@ -282,10 +282,10 @@ absence. Caught by `hydration.dom.spec.ts`. */
282
282
  };
283
283
 
284
284
  export type HelixAccordionItemVueEvents = {
285
- /** Fired before the item opens or closes. Cancelable: refusing it takes the decision and nothing moves. */
286
- "helix-before-open": HelixAccordionItemHelixBeforeOpenElementEvent;
287
285
  /** Fired before the section closes, and cancelable. */
288
286
  "helix-before-close": HelixAccordionItemHelixBeforeCloseElementEvent;
287
+ /** Fired before the section opens. Cancelable: refusing it takes the decision and nothing moves. */
288
+ "helix-before-open": HelixAccordionItemHelixBeforeOpenElementEvent;
289
289
  /** Says the state moved, carrying `newState` and `oldState`. */
290
290
  toggle: HelixAccordionItemElementEvent;
291
291
  };
@@ -3301,10 +3301,11 @@ export type HelixDatePickerVueEvents = {
3301
3301
  };
3302
3302
 
3303
3303
  export type HelixDescriptionListItemVueProps = {
3304
- /** What the value is, for the common case of plain text.
3304
+ /** What the value is called, for the common case of plain text.
3305
3305
 
3306
3306
  The fallback of the `label` slot, so slotted content replaces it rather than
3307
- appearing beside it. */
3307
+ appearing beside it. The value itself is the default slot: it is the half
3308
+ that varies and is often more than text. */
3308
3309
  label?: (HelixDescriptionListItem["label"]) | undefined;
3309
3310
  };
3310
3311
 
@@ -4254,9 +4255,15 @@ shadow root names a table in that root rather than in the document. A
4254
4255
  Absent falls back to the table's own caption, which is usually the right
4255
4256
  words and is already written. */
4256
4257
  label?: (HelixHeatmap["label"]) | undefined;
4257
- /** Shown when the table has no readings in it. */
4258
+ /** Shown when the table has no readings in it.
4259
+
4260
+ Never shown while the table cannot be read at all, which is a server render
4261
+ and the hydrating one after it: see `sourceKnown`. */
4258
4262
  "empty-text"?: (HelixHeatmap["emptyText"]) | undefined;
4259
- /** Shown when the table has no readings in it. */
4263
+ /** Shown when the table has no readings in it.
4264
+
4265
+ Never shown while the table cannot be read at all, which is a server render
4266
+ and the hydrating one after it: see `sourceKnown`. */
4260
4267
  emptyText?: (HelixHeatmap["emptyText"]) | undefined;
4261
4268
  /** Space between cells, in CSS pixels, for the same reason `min-cell` is a
4262
4269
  number. */
@@ -5999,12 +6006,26 @@ page's markup should not take the page down over a comma. */
5999
6006
  /** Whether to leave the copy button off.
6000
6007
 
6001
6008
  Negative for the reason Code Block's is: a boolean attribute defaulting to
6002
- true could never be turned off from markup. */
6009
+ true could never be turned off from markup.
6010
+
6011
+ **It does not reflect, where Code Block's does**, and the difference is what
6012
+ the two sheets need. Code Block reserves the button's width with
6013
+ `:host(:not([no-copy]))`, so the attribute has to be there for a consumer
6014
+ who set the property. This button is positioned out of the flow and takes no
6015
+ room, so nothing selects on it, and reflection exists so that a selector can
6016
+ reach a value. */
6003
6017
  "no-copy"?: (HelixObjectInspector["noCopy"]) | undefined;
6004
6018
  /** Whether to leave the copy button off.
6005
6019
 
6006
6020
  Negative for the reason Code Block's is: a boolean attribute defaulting to
6007
- true could never be turned off from markup. */
6021
+ true could never be turned off from markup.
6022
+
6023
+ **It does not reflect, where Code Block's does**, and the difference is what
6024
+ the two sheets need. Code Block reserves the button's width with
6025
+ `:host(:not([no-copy]))`, so the attribute has to be there for a consumer
6026
+ who set the property. This button is positioned out of the flow and takes no
6027
+ room, so nothing selects on it, and reflection exists so that a selector can
6028
+ reach a value. */
6008
6029
  noCopy?: (HelixObjectInspector["noCopy"]) | undefined;
6009
6030
  /** Whether to draw only the rows in view.
6010
6031
 
@@ -10474,6 +10495,8 @@ export type CustomCssProperties = {
10474
10495
  "--data-table-rule-color"?: (string) | undefined;
10475
10496
  /** Type size, headings and cells alike. */
10476
10497
  "--data-table-text"?: (string) | undefined;
10498
+ /** The edge the column a cell sits under is set to, `start`, `center` or `end`, and unset under a column that sets none. Written by the component onto each cell it draws, read by the sheet that paints one; `helix-table` publishes `--table-cell-align` for the same attribute on the cells a consumer wrote, under its own family's name. */
10499
+ "--data-table-cell-align"?: (string) | undefined;
10477
10500
  /** The column track list this element worked out from the columns declared in it. Written by the component, read by the sheet that paints: a stylesheet takes it to lay the grid out, and setting it does nothing, because the component writes it inline on the very element that reads it and an inline declaration beats any sheet. `--data-table-columns` is the one to set. */
10478
10501
  "--data-table-template"?: (string) | undefined;
10479
10502
  /** Fill behind the field. */
@@ -10498,7 +10521,7 @@ export type CustomCssProperties = {
10498
10521
  "--date-picker-track-size"?: (string) | undefined;
10499
10522
  /** How many month columns are drawn, capped at two. `--date-picker-columns` overrides it. */
10500
10523
  "--date-picker-column-count"?: (string) | undefined;
10501
- /** Space between one pair and the next. */
10524
+ /** Space between one pair and the next. Its resting value is tighter with `direction="row"` than stacked, a row of pairs needing less air between them than a column of them does, and setting this takes both. */
10502
10525
  "--description-list-gap"?: (string) | undefined;
10503
10526
  /** Color of the panel's edge. */
10504
10527
  "--dialog-border-color"?: (string) | undefined;
@@ -11606,7 +11629,7 @@ export interface WcToolkitVueGlobalComponents {
11606
11629
  HelixMegamenuVueProps,
11607
11630
  HelixMegamenuVueEvents
11608
11631
  >;
11609
- /** The tick and the arrow hold their space whether or not they are showing, so the labels in a menu start at one place and the rows read as a column rather than as a ragged list. */
11632
+ /** A row draws a column beside its label only where it has something to put in one, and the width is the menu's rather than the row's: the page reserves a leading or a trailing track as soon as any row on it fills one, so every label on that page starts at the same edge and a page that fills neither pays for neither. A row knows about its own slots and nothing about its neighbors, which is why the reservation is not made here. */
11610
11633
  "helix-menu-item": DefineCustomElement<
11611
11634
  HelixMenuItem,
11612
11635
  HelixMenuItemVueProps,
@@ -11905,7 +11928,7 @@ export interface WcToolkitVueGlobalComponents {
11905
11928
  HelixTabPanelVueProps,
11906
11929
  HelixTabPanelVueEvents
11907
11930
  >;
11908
- /** Selection is marked with a rule under the active tab rather than a filled pill, which keeps the row flat and lets the underline animate between tabs as a movement instead of two separate fills. */
11931
+ /** One mark travels between the tabs rather than each of them filling and emptying in turn. A fill that swaps is two things changing at once and reads as a flicker; one that moves is a single object the eye follows, and it says where the current tab was as well as where it is. 'Navigation' marks its destinations the same way and for the same reason. What the mark is depends on 'variant': unset it is a raised pill on the selected tab with nothing behind the row, 'underlined' makes it a bar along the bottom of the strip on a rule, and 'segmented' grows it to the tab's own box inside a sunken track. */
11909
11932
  "helix-tabs": DefineCustomElement<
11910
11933
  HelixTabs,
11911
11934
  HelixTabsVueProps,