@fusion.dev/helix-headless 0.103.1 → 0.103.3
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 +254 -80
- package/dist/map/root/map-root.d.ts +22 -118
- package/dist/map/root/map-root.js +8 -137
- package/package.json +5 -5
- package/types/jsx.d.ts +232 -230
- package/types/vue.d.ts +67 -68
package/types/vue.d.ts
CHANGED
|
@@ -4808,56 +4808,61 @@ export type HelixHeadlessMapHelixMapZoomElementEvent =
|
|
|
4808
4808
|
HelixHeadlessMapElementEvent<HelixMapZoomEvent>;
|
|
4809
4809
|
|
|
4810
4810
|
export type HelixHeadlessMapVueProps = {
|
|
4811
|
-
/**
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4811
|
+
/** Accessible name for the map, which is the one thing a consumer must write.
|
|
4812
|
+
|
|
4813
|
+
There is no sensible default. "Map" names the widget rather than the place,
|
|
4814
|
+
and a reader meeting three of them on a page learns nothing from hearing the
|
|
4815
|
+
same word three times.
|
|
4816
|
+
|
|
4817
|
+
**The region is a tab stop**, so the keys are reachable however the controls
|
|
4818
|
+
are configured: the listener is on the region, and without a stop of its own
|
|
4819
|
+
a frame at `controls="none"` around a map with nothing focusable in it had
|
|
4820
|
+
arrow keys no reader could ever press. `aria-keyshortcuts` says which keys
|
|
4821
|
+
rather than spelling them into the name, which would otherwise be read out
|
|
4822
|
+
at every encounter. */
|
|
4823
|
+
label?: (HelixHeadlessMap["label"]) | undefined;
|
|
4824
|
+
/** Which of the controls this surface draws, as a list of what to keep.
|
|
4825
|
+
|
|
4826
|
+
**A list rather than a switch, because the overlap is not symmetric.** A
|
|
4827
|
+
surface a consumer brings often has zoom controls of its own and almost
|
|
4828
|
+
never has pan buttons, so a single switch would make them choose between
|
|
4829
|
+
a duplicate and nothing.
|
|
4830
|
+
|
|
4831
|
+
`none` draws none of them, which is the right answer where what was
|
|
4832
|
+
slotted already has controls a reader can find: what this argues for is
|
|
4833
|
+
that *a* findable control exists, never that it is ours. The methods stay
|
|
4834
|
+
public either way, so a consumer drawing their own chrome can still drive
|
|
4835
|
+
the surface.
|
|
4836
|
+
|
|
4837
|
+
Absent is all three, which is this library's rule that a resting value is
|
|
4838
|
+
an attribute's absence, and it is what the stylesheet asks about: the
|
|
4839
|
+
layout rules are written against `[controls]:not([controls~="zoom"])`
|
|
4840
|
+
rather than the bare negation, or a surface that named no list at all
|
|
4841
|
+
would be laid out as though it had dropped everything. */
|
|
4831
4842
|
controls?: (HelixHeadlessMap["controls"]) | undefined;
|
|
4832
4843
|
/** Which corner the controls sit in.
|
|
4833
4844
|
|
|
4834
|
-
**Configurable because there is no safe default**,
|
|
4835
|
-
rather than a taste:
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
libraries made it a setting too.
|
|
4845
|
+
**Configurable because there is no safe default**, which is a collision
|
|
4846
|
+
rather than a taste: whatever a consumer slots may put its own controls
|
|
4847
|
+
in any corner, and every library that draws some made this a setting for
|
|
4848
|
+
the same reason.
|
|
4839
4849
|
|
|
4840
4850
|
Logical corners rather than left and right, so a right-to-left page moves
|
|
4841
|
-
them without a consumer writing a second rule.
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
an attribute's absence: a default that reflected would write an attribute
|
|
4845
|
-
onto every host that no server sent and nobody asked for. */
|
|
4851
|
+
them without a consumer writing a second rule. Absent is the top end, a
|
|
4852
|
+
resting value being an attribute's absence: a default that reflected
|
|
4853
|
+
would write an attribute onto every host that no server sent. */
|
|
4846
4854
|
"controls-placement"?: (HelixHeadlessMap["controlsPlacement"]) | undefined;
|
|
4847
4855
|
/** Which corner the controls sit in.
|
|
4848
4856
|
|
|
4849
|
-
**Configurable because there is no safe default**,
|
|
4850
|
-
rather than a taste:
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
libraries made it a setting too.
|
|
4857
|
+
**Configurable because there is no safe default**, which is a collision
|
|
4858
|
+
rather than a taste: whatever a consumer slots may put its own controls
|
|
4859
|
+
in any corner, and every library that draws some made this a setting for
|
|
4860
|
+
the same reason.
|
|
4854
4861
|
|
|
4855
4862
|
Logical corners rather than left and right, so a right-to-left page moves
|
|
4856
|
-
them without a consumer writing a second rule.
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
an attribute's absence: a default that reflected would write an attribute
|
|
4860
|
-
onto every host that no server sent and nobody asked for. */
|
|
4863
|
+
them without a consumer writing a second rule. Absent is the top end, a
|
|
4864
|
+
resting value being an attribute's absence: a default that reflected
|
|
4865
|
+
would write an attribute onto every host that no server sent. */
|
|
4861
4866
|
controlsPlacement?: (HelixHeadlessMap["controlsPlacement"]) | undefined;
|
|
4862
4867
|
/** What the control that fills the screen is called. */
|
|
4863
4868
|
"fullscreen-label"?: (HelixHeadlessMap["fullscreenLabel"]) | undefined;
|
|
@@ -4865,47 +4870,41 @@ onto every host that no server sent and nobody asked for. */
|
|
|
4865
4870
|
fullscreenLabel?: (HelixHeadlessMap["fullscreenLabel"]) | undefined;
|
|
4866
4871
|
/** How long the reader may be still before the chrome hides, in milliseconds.
|
|
4867
4872
|
|
|
4868
|
-
Zero keeps it up, which is the default:
|
|
4869
|
-
reader operates
|
|
4870
|
-
component undoing its own argument. Set it for a display
|
|
4873
|
+
Zero keeps it up, which is the default: these controls are how a keyboard
|
|
4874
|
+
reader operates the surface, and chrome that hid itself by default would
|
|
4875
|
+
be the component undoing its own argument. Set it for a display nobody
|
|
4876
|
+
drives. */
|
|
4871
4877
|
"idle-delay"?: (HelixHeadlessMap["idleDelay"] | `${number}`) | undefined;
|
|
4872
4878
|
/** How long the reader may be still before the chrome hides, in milliseconds.
|
|
4873
4879
|
|
|
4874
|
-
Zero keeps it up, which is the default:
|
|
4875
|
-
reader operates
|
|
4876
|
-
component undoing its own argument. Set it for a display
|
|
4880
|
+
Zero keeps it up, which is the default: these controls are how a keyboard
|
|
4881
|
+
reader operates the surface, and chrome that hid itself by default would
|
|
4882
|
+
be the component undoing its own argument. Set it for a display nobody
|
|
4883
|
+
drives. */
|
|
4877
4884
|
idleDelay?: (HelixHeadlessMap["idleDelay"]) | undefined;
|
|
4878
|
-
/**
|
|
4879
|
-
|
|
4880
|
-
There is no sensible default. "Map" names the widget rather than the place,
|
|
4881
|
-
and a reader meeting three of them on a page learns nothing from hearing the
|
|
4882
|
-
same word three times. */
|
|
4883
|
-
label?: (HelixHeadlessMap["label"]) | undefined;
|
|
4884
|
-
/** What the controls are called, for a page not in English. */
|
|
4885
|
+
/** What one pan control is called, with `{way}` filled in. */
|
|
4885
4886
|
"pan-label"?: (HelixHeadlessMap["panLabel"]) | undefined;
|
|
4886
|
-
/** What
|
|
4887
|
+
/** What one pan control is called, with `{way}` filled in. */
|
|
4887
4888
|
panLabel?: (HelixHeadlessMap["panLabel"]) | undefined;
|
|
4888
|
-
/** How far one press moves the
|
|
4889
|
+
/** How far one press moves the view, as a fraction of what is on screen.
|
|
4889
4890
|
|
|
4890
|
-
A fraction rather than a distance, because this
|
|
4891
|
-
scale of what is inside it: a quarter of the viewport is the same gesture
|
|
4892
|
-
|
|
4893
|
-
multiply by their own. */
|
|
4891
|
+
A fraction rather than a distance, because this surface does not know the
|
|
4892
|
+
scale of what is inside it: a quarter of the viewport is the same gesture
|
|
4893
|
+
at any zoom, and a consumer who wants their own units multiplies by them. */
|
|
4894
4894
|
"pan-step"?: (HelixHeadlessMap["panStep"] | `${number}`) | undefined;
|
|
4895
|
-
/** How far one press moves the
|
|
4895
|
+
/** How far one press moves the view, as a fraction of what is on screen.
|
|
4896
4896
|
|
|
4897
|
-
A fraction rather than a distance, because this
|
|
4898
|
-
scale of what is inside it: a quarter of the viewport is the same gesture
|
|
4899
|
-
|
|
4900
|
-
multiply by their own. */
|
|
4897
|
+
A fraction rather than a distance, because this surface does not know the
|
|
4898
|
+
scale of what is inside it: a quarter of the viewport is the same gesture
|
|
4899
|
+
at any zoom, and a consumer who wants their own units multiplies by them. */
|
|
4901
4900
|
panStep?: (HelixHeadlessMap["panStep"]) | undefined;
|
|
4902
|
-
/** What the
|
|
4901
|
+
/** What the control that zooms in is called. */
|
|
4903
4902
|
"zoom-in-label"?: (HelixHeadlessMap["zoomInLabel"]) | undefined;
|
|
4904
|
-
/** What the
|
|
4903
|
+
/** What the control that zooms in is called. */
|
|
4905
4904
|
zoomInLabel?: (HelixHeadlessMap["zoomInLabel"]) | undefined;
|
|
4906
|
-
/** What the
|
|
4905
|
+
/** What the control that zooms out is called. */
|
|
4907
4906
|
"zoom-out-label"?: (HelixHeadlessMap["zoomOutLabel"]) | undefined;
|
|
4908
|
-
/** What the
|
|
4907
|
+
/** What the control that zooms out is called. */
|
|
4909
4908
|
zoomOutLabel?: (HelixHeadlessMap["zoomOutLabel"]) | undefined;
|
|
4910
4909
|
};
|
|
4911
4910
|
|