@fusion.dev/helix 0.101.0 → 0.102.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 +956 -0
- package/dist/element-events.generated.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/map/index.d.ts +1 -0
- package/dist/map/index.js +1 -0
- package/dist/map/root/map-root.css.d.ts +1 -0
- package/dist/map/root/map-root.css.js +112 -0
- package/dist/map/root/map-root.d.ts +33 -0
- package/dist/map/root/map-root.js +16 -0
- package/package.json +6 -6
- package/types/jsx.d.ts +362 -0
- package/types/svelte.d.ts +1 -0
- package/types/vue.d.ts +84 -0
package/types/vue.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ import type {
|
|
|
64
64
|
HelixList,
|
|
65
65
|
HelixListbox,
|
|
66
66
|
HelixLoader,
|
|
67
|
+
HelixMap,
|
|
67
68
|
HelixMegamenu,
|
|
68
69
|
HelixMenuItem,
|
|
69
70
|
HelixMenu,
|
|
@@ -163,6 +164,8 @@ import type {
|
|
|
163
164
|
HelixShortcutEvent,
|
|
164
165
|
HelixActivateEvent,
|
|
165
166
|
HelixBeforeActivateEvent,
|
|
167
|
+
HelixMapPanEvent,
|
|
168
|
+
HelixMapZoomEvent,
|
|
166
169
|
HelixReadEvent,
|
|
167
170
|
HelixCompleteEvent,
|
|
168
171
|
HelixConsoleEvent,
|
|
@@ -5867,6 +5870,73 @@ around a logo reads as chrome bolted to the brand. */
|
|
|
5867
5870
|
|
|
5868
5871
|
export type HelixLoaderVueEvents = {};
|
|
5869
5872
|
|
|
5873
|
+
/** `HelixMap` component event */
|
|
5874
|
+
export type HelixMapElementEvent<E = Event> = TypedEvent<HelixMap, E>;
|
|
5875
|
+
/** `helix-map-pan` event type */
|
|
5876
|
+
export type HelixMapHelixMapPanElementEvent =
|
|
5877
|
+
HelixMapElementEvent<HelixMapPanEvent>;
|
|
5878
|
+
/** `helix-map-zoom` event type */
|
|
5879
|
+
export type HelixMapHelixMapZoomElementEvent =
|
|
5880
|
+
HelixMapElementEvent<HelixMapZoomEvent>;
|
|
5881
|
+
|
|
5882
|
+
export type HelixMapVueProps = {
|
|
5883
|
+
/** What the control that fills the screen is called. */
|
|
5884
|
+
"fullscreen-label"?: (HelixMap["fullscreenLabel"]) | undefined;
|
|
5885
|
+
/** What the control that fills the screen is called. */
|
|
5886
|
+
fullscreenLabel?: (HelixMap["fullscreenLabel"]) | undefined;
|
|
5887
|
+
/** How long the reader may be still before the chrome hides, in milliseconds.
|
|
5888
|
+
|
|
5889
|
+
Zero keeps it up, which is the default: a map's controls are how a keyboard
|
|
5890
|
+
reader operates it, and chrome that hides itself by default would be this
|
|
5891
|
+
component undoing its own argument. Set it for a display map nobody drives. */
|
|
5892
|
+
"idle-delay"?: (HelixMap["idleDelay"] | `${number}`) | undefined;
|
|
5893
|
+
/** How long the reader may be still before the chrome hides, in milliseconds.
|
|
5894
|
+
|
|
5895
|
+
Zero keeps it up, which is the default: a map's controls are how a keyboard
|
|
5896
|
+
reader operates it, and chrome that hides itself by default would be this
|
|
5897
|
+
component undoing its own argument. Set it for a display map nobody drives. */
|
|
5898
|
+
idleDelay?: (HelixMap["idleDelay"]) | undefined;
|
|
5899
|
+
/** Accessible name for the map, which is the one thing a consumer must write.
|
|
5900
|
+
|
|
5901
|
+
There is no sensible default. "Map" names the widget rather than the place,
|
|
5902
|
+
and a reader meeting three of them on a page learns nothing from hearing the
|
|
5903
|
+
same word three times. */
|
|
5904
|
+
label?: (HelixMap["label"]) | undefined;
|
|
5905
|
+
/** What the controls are called, for a page not in English. */
|
|
5906
|
+
"pan-label"?: (HelixMap["panLabel"]) | undefined;
|
|
5907
|
+
/** What the controls are called, for a page not in English. */
|
|
5908
|
+
panLabel?: (HelixMap["panLabel"]) | undefined;
|
|
5909
|
+
/** How far one press moves the map, as a fraction of what is on screen.
|
|
5910
|
+
|
|
5911
|
+
A fraction rather than a distance, because this frame does not know the
|
|
5912
|
+
scale of what is inside it: a quarter of the viewport is the same gesture at
|
|
5913
|
+
street level and at country level, and a consumer who wants metres can
|
|
5914
|
+
multiply by their own. */
|
|
5915
|
+
"pan-step"?: (HelixMap["panStep"] | `${number}`) | undefined;
|
|
5916
|
+
/** How far one press moves the map, as a fraction of what is on screen.
|
|
5917
|
+
|
|
5918
|
+
A fraction rather than a distance, because this frame does not know the
|
|
5919
|
+
scale of what is inside it: a quarter of the viewport is the same gesture at
|
|
5920
|
+
street level and at country level, and a consumer who wants metres can
|
|
5921
|
+
multiply by their own. */
|
|
5922
|
+
panStep?: (HelixMap["panStep"]) | undefined;
|
|
5923
|
+
/** What the zoom controls are called. */
|
|
5924
|
+
"zoom-in-label"?: (HelixMap["zoomInLabel"]) | undefined;
|
|
5925
|
+
/** What the zoom controls are called. */
|
|
5926
|
+
zoomInLabel?: (HelixMap["zoomInLabel"]) | undefined;
|
|
5927
|
+
/** What the zoom control that goes the other way is called. */
|
|
5928
|
+
"zoom-out-label"?: (HelixMap["zoomOutLabel"]) | undefined;
|
|
5929
|
+
/** What the zoom control that goes the other way is called. */
|
|
5930
|
+
zoomOutLabel?: (HelixMap["zoomOutLabel"]) | undefined;
|
|
5931
|
+
};
|
|
5932
|
+
|
|
5933
|
+
export type HelixMapVueEvents = {
|
|
5934
|
+
/** The reader asked the map to move. Answer it against your own map. */
|
|
5935
|
+
"helix-map-pan": HelixMapHelixMapPanElementEvent;
|
|
5936
|
+
/** The reader asked the map to zoom, by a direction rather than to a level. */
|
|
5937
|
+
"helix-map-zoom": HelixMapHelixMapZoomElementEvent;
|
|
5938
|
+
};
|
|
5939
|
+
|
|
5870
5940
|
/** `HelixMegamenu` component event */
|
|
5871
5941
|
export type HelixMegamenuElementEvent<E = Event> = TypedEvent<HelixMegamenu, E>;
|
|
5872
5942
|
/** `helix-before-close` event type */
|
|
@@ -11643,6 +11713,14 @@ export type CustomCssProperties = {
|
|
|
11643
11713
|
"--loader-size"?: (string) | undefined;
|
|
11644
11714
|
/** Color of the circle behind it. */
|
|
11645
11715
|
"--loader-track-color"?: (string) | undefined;
|
|
11716
|
+
/** The well behind the map, seen while tiles are on their way. */
|
|
11717
|
+
"--map-background-color"?: (string) | undefined;
|
|
11718
|
+
/** How tall the frame is. A length, since the map fills it. */
|
|
11719
|
+
"--map-block-size"?: (string) | undefined;
|
|
11720
|
+
/** Color of the frame's edge. */
|
|
11721
|
+
"--map-border-color"?: (string) | undefined;
|
|
11722
|
+
/** The ground under the pan and zoom buttons. */
|
|
11723
|
+
"--map-control-background-color"?: (string) | undefined;
|
|
11646
11724
|
/** A filter behind the panel, which is `none` until one is asked for: this family carries no `material`, so the pair is two hooks rather than a word. */
|
|
11647
11725
|
"--megamenu-backdrop"?: (string) | undefined;
|
|
11648
11726
|
/** The panel's own fill. */
|
|
@@ -12547,6 +12625,12 @@ export interface WcToolkitVueGlobalComponents {
|
|
|
12547
12625
|
HelixLoaderVueProps,
|
|
12548
12626
|
HelixLoaderVueEvents
|
|
12549
12627
|
>;
|
|
12628
|
+
/** Presentation only: a bordered well with the controls over it, at the corner every map puts them. What the frame is for, and why the controls are buttons rather than arrow keys, is the base class. **The controls do not fade with the chrome.** A reader who has gone still has not stopped needing the only controls this frame offers, so the idle state takes the header and footer a consumer slotted and leaves the buttons alone. */
|
|
12629
|
+
"helix-map": DefineCustomElement<
|
|
12630
|
+
HelixMap,
|
|
12631
|
+
HelixMapVueProps,
|
|
12632
|
+
HelixMapVueEvents
|
|
12633
|
+
>;
|
|
12550
12634
|
/** Presentation only: the trigger, and the panel it opens as a grid of columns. Everything about what opens it and what closes it is the base class. */
|
|
12551
12635
|
"helix-megamenu": DefineCustomElement<
|
|
12552
12636
|
HelixMegamenu,
|