@visma-swno/vsn-navigation 1.3.0-beta.6 → 1.3.0-beta.8
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CSSResult } from 'lit';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
3
|
import { TemplateResult } from 'lit-html';
|
|
4
|
-
import { VSNSkipToMain } from './vsn-skip-to-main.ts';
|
|
5
4
|
|
|
6
5
|
export declare type AppModules = {
|
|
7
6
|
/** Current module id (to be ignored from the list of modules) */
|
|
@@ -208,6 +207,12 @@ export declare type VsnNavigation = {
|
|
|
208
207
|
feedback?: FeedbackConfig | null;
|
|
209
208
|
};
|
|
210
209
|
|
|
211
|
-
export
|
|
210
|
+
export declare class VSNSkipToMain extends LitElement {
|
|
211
|
+
/** The id of the main content element to skip to (without the `#`). */
|
|
212
|
+
href: string;
|
|
213
|
+
static styles: CSSResult;
|
|
214
|
+
render(): TemplateResult<1>;
|
|
215
|
+
private _handleClick;
|
|
216
|
+
}
|
|
212
217
|
|
|
213
218
|
export { }
|
|
@@ -2903,7 +2903,7 @@ var rn = class extends e {
|
|
|
2903
2903
|
return this;
|
|
2904
2904
|
}
|
|
2905
2905
|
_handleClick(e) {
|
|
2906
|
-
e.preventDefault(), this.landingPageUrl && this.dispatchEvent(new CustomEvent("vsn-navigate", {
|
|
2906
|
+
e.metaKey || e.ctrlKey || e.shiftKey || (e.preventDefault(), this.landingPageUrl && this.dispatchEvent(new CustomEvent("vsn-navigate", {
|
|
2907
2907
|
detail: {
|
|
2908
2908
|
id: "home",
|
|
2909
2909
|
label: v("Home"),
|
|
@@ -2911,7 +2911,7 @@ var rn = class extends e {
|
|
|
2911
2911
|
},
|
|
2912
2912
|
bubbles: !0,
|
|
2913
2913
|
composed: !0
|
|
2914
|
-
}));
|
|
2914
|
+
})));
|
|
2915
2915
|
}
|
|
2916
2916
|
render() {
|
|
2917
2917
|
return this.landingPageUrl ? n`
|