nuxt-i18n-micro 1.92.0 → 1.94.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/dist/client/200.html +9 -9
- package/dist/client/404.html +9 -9
- package/dist/client/_nuxt/{_zkMRV-i.js → BghP2wsD.js} +3 -3
- package/dist/client/_nuxt/{BtwGllwe.js → BhtDXNyb.js} +1 -1
- package/dist/client/_nuxt/{CVvbzfw5.js → BjB9nc_5.js} +1 -1
- package/dist/client/_nuxt/{BMqVQu_u.js → DpQNspb6.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/bd644dea-2454-468d-ba61-8e09f211303a.json +1 -0
- package/dist/client/_nuxt/{entry.BCs9F03n.css → entry.BVfqTszp.css} +1 -1
- package/dist/client/_nuxt/error-404.CdQyF-WE.css +1 -0
- package/dist/client/_nuxt/error-500.CDURyqPT.css +1 -0
- package/dist/client/index.html +9 -9
- package/dist/module.d.mts +2 -1
- package/dist/module.json +3 -3
- package/dist/module.mjs +120 -36
- package/dist/runtime/components/i18n-group.vue +7 -10
- package/dist/runtime/components/i18n-group.vue.d.ts +19 -0
- package/dist/runtime/components/i18n-link.vue +26 -43
- package/dist/runtime/components/i18n-link.vue.d.ts +19 -0
- package/dist/runtime/components/i18n-switcher.vue +93 -143
- package/dist/runtime/components/i18n-switcher.vue.d.ts +62 -0
- package/dist/runtime/components/i18n-t.vue.d.ts +1 -304
- package/dist/runtime/components/locale-redirect.vue +32 -50
- package/dist/runtime/components/locale-redirect.vue.d.ts +2 -0
- package/dist/runtime/composables/useLocaleHead.d.ts +2 -2
- package/dist/runtime/plugins/01.plugin.js +6 -2
- package/dist/runtime/plugins/04.auto-detect.js +4 -1
- package/dist/types.d.mts +8 -2
- package/package.json +24 -27
- package/dist/client/_nuxt/builds/meta/8285b70f-da27-4cee-8115-0317ce43cfa3.json +0 -1
- package/dist/client/_nuxt/error-404.CbefIQ4Z.css +0 -1
- package/dist/client/_nuxt/error-500.Bpd-7vXd.css +0 -1
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -31
- package/dist/types.d.ts +0 -7
- package/dist/utils.d.mts +0 -17
- package/dist/utils.d.ts +0 -17
- package/dist/utils.mjs +0 -64
- /package/{internals.d.ts → internals.d.mts} +0 -0
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
:class="`switcher-locale-${locale.code}`"
|
|
36
36
|
:to="switchLocaleRoute(locale.code)"
|
|
37
37
|
:style="[
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
linkStyle,
|
|
39
|
+
locale.code === currentLocale ? activeLinkStyle : {},
|
|
40
|
+
locale.code === currentLocale ? disabledLinkStyle : {},
|
|
41
|
+
customLinkStyle
|
|
42
|
+
]"
|
|
43
43
|
:hreflang="locale.iso || locale.code"
|
|
44
44
|
@click="switchLocale(locale.code)"
|
|
45
45
|
>
|
|
@@ -67,148 +67,98 @@
|
|
|
67
67
|
</div>
|
|
68
68
|
</template>
|
|
69
69
|
|
|
70
|
-
<script
|
|
71
|
-
import { ref, computed } from
|
|
72
|
-
import
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
type
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
customWrapperStyle?: CSSProperties
|
|
90
|
-
customButtonStyle?: CSSProperties
|
|
91
|
-
customDropdownStyle?: CSSProperties
|
|
92
|
-
customItemStyle?: CSSProperties
|
|
93
|
-
customLinkStyle?: CSSProperties
|
|
94
|
-
customActiveLinkStyle?: CSSProperties
|
|
95
|
-
customDisabledLinkStyle?: CSSProperties
|
|
96
|
-
customIconStyle?: CSSProperties
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
100
|
-
customLabels: () => ({}),
|
|
101
|
-
customWrapperStyle: () => ({}),
|
|
102
|
-
customButtonStyle: () => ({}),
|
|
103
|
-
customDropdownStyle: () => ({}),
|
|
104
|
-
customItemStyle: () => ({}),
|
|
105
|
-
customLinkStyle: () => ({}),
|
|
106
|
-
customActiveLinkStyle: () => ({}),
|
|
107
|
-
customDisabledLinkStyle: () => ({}),
|
|
108
|
-
customIconStyle: () => ({}),
|
|
109
|
-
})
|
|
110
|
-
|
|
111
|
-
const { $switchLocaleRoute, $switchLocale, $getLocales, $getLocale, $getLocaleName } = useNuxtApp()
|
|
112
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
113
|
-
// @ts-ignore
|
|
114
|
-
const locales = ref($getLocales())
|
|
115
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
116
|
-
// @ts-ignore
|
|
117
|
-
const currentLocale = computed(() => $getLocale())
|
|
118
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
119
|
-
// @ts-ignore
|
|
120
|
-
const currentLocaleName = computed(() => $getLocaleName())
|
|
121
|
-
const dropdownOpen = ref(false)
|
|
122
|
-
|
|
70
|
+
<script setup>
|
|
71
|
+
import { ref, computed } from "vue";
|
|
72
|
+
import { useNuxtApp } from "#imports";
|
|
73
|
+
const props = defineProps({
|
|
74
|
+
customLabels: { type: Object, required: false, default: () => ({}) },
|
|
75
|
+
customWrapperStyle: { type: Object, required: false, default: () => ({}) },
|
|
76
|
+
customButtonStyle: { type: Object, required: false, default: () => ({}) },
|
|
77
|
+
customDropdownStyle: { type: Object, required: false, default: () => ({}) },
|
|
78
|
+
customItemStyle: { type: Object, required: false, default: () => ({}) },
|
|
79
|
+
customLinkStyle: { type: Object, required: false, default: () => ({}) },
|
|
80
|
+
customActiveLinkStyle: { type: Object, required: false, default: () => ({}) },
|
|
81
|
+
customDisabledLinkStyle: { type: Object, required: false, default: () => ({}) },
|
|
82
|
+
customIconStyle: { type: Object, required: false, default: () => ({}) }
|
|
83
|
+
});
|
|
84
|
+
const { $switchLocaleRoute, $switchLocale, $getLocales, $getLocale, $getLocaleName } = useNuxtApp();
|
|
85
|
+
const locales = ref($getLocales());
|
|
86
|
+
const currentLocale = computed(() => $getLocale());
|
|
87
|
+
const currentLocaleName = computed(() => $getLocaleName());
|
|
88
|
+
const dropdownOpen = ref(false);
|
|
123
89
|
const toggleDropdown = () => {
|
|
124
|
-
dropdownOpen.value = !dropdownOpen.value
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
const localeLabel = (locale: Locale) => {
|
|
134
|
-
const current = props.customLabels[locale.code] || locale.displayName
|
|
90
|
+
dropdownOpen.value = !dropdownOpen.value;
|
|
91
|
+
};
|
|
92
|
+
const switchLocaleRoute = (code) => {
|
|
93
|
+
return $switchLocaleRoute(code);
|
|
94
|
+
};
|
|
95
|
+
const localeLabel = (locale) => {
|
|
96
|
+
const current = props.customLabels[locale.code] || locale.displayName;
|
|
135
97
|
if (!current) {
|
|
136
98
|
console.warn(
|
|
137
|
-
|
|
138
|
-
)
|
|
99
|
+
"[i18n-switcher] Either define a custom label for the locale or provide a displayName in the nuxt.config.i18n"
|
|
100
|
+
);
|
|
139
101
|
}
|
|
140
|
-
return current
|
|
141
|
-
}
|
|
142
|
-
|
|
102
|
+
return current;
|
|
103
|
+
};
|
|
143
104
|
const currentLocaleLabel = computed(() => localeLabel({
|
|
144
105
|
code: currentLocale.value,
|
|
145
|
-
displayName: currentLocaleName.value ??
|
|
146
|
-
}))
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
padding:
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
const
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
color: '#aaa',
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
const iconStyle: CSSProperties = {
|
|
207
|
-
marginLeft: '8px',
|
|
208
|
-
transition: 'transform 0.3s ease',
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
const openIconStyle: CSSProperties = {
|
|
212
|
-
transform: 'rotate(180deg)',
|
|
213
|
-
}
|
|
106
|
+
displayName: currentLocaleName.value ?? void 0
|
|
107
|
+
}));
|
|
108
|
+
const switchLocale = (code) => {
|
|
109
|
+
toggleDropdown();
|
|
110
|
+
$switchLocale(code);
|
|
111
|
+
};
|
|
112
|
+
const wrapperStyle = {
|
|
113
|
+
position: "relative",
|
|
114
|
+
display: "inline-block"
|
|
115
|
+
};
|
|
116
|
+
const buttonStyle = {
|
|
117
|
+
padding: "4px 12px",
|
|
118
|
+
fontSize: "16px",
|
|
119
|
+
cursor: "pointer",
|
|
120
|
+
backgroundColor: "#fff",
|
|
121
|
+
border: "1px solid #333",
|
|
122
|
+
transition: "background-color 0.3s ease",
|
|
123
|
+
display: "flex",
|
|
124
|
+
alignItems: "center",
|
|
125
|
+
justifyContent: "space-between"
|
|
126
|
+
};
|
|
127
|
+
const dropdownStyle = {
|
|
128
|
+
position: "absolute",
|
|
129
|
+
top: "100%",
|
|
130
|
+
left: "0",
|
|
131
|
+
zIndex: "10",
|
|
132
|
+
backgroundColor: "#fff",
|
|
133
|
+
border: "1px solid #333",
|
|
134
|
+
listStyle: "none",
|
|
135
|
+
padding: "0",
|
|
136
|
+
margin: "4px 0 0 0"
|
|
137
|
+
};
|
|
138
|
+
const itemStyle = {
|
|
139
|
+
margin: "0",
|
|
140
|
+
padding: "0"
|
|
141
|
+
};
|
|
142
|
+
const linkStyle = {
|
|
143
|
+
display: "block",
|
|
144
|
+
padding: "8px 12px",
|
|
145
|
+
color: "#333",
|
|
146
|
+
textDecoration: "none",
|
|
147
|
+
transition: "background-color 0.3s ease"
|
|
148
|
+
};
|
|
149
|
+
const activeLinkStyle = {
|
|
150
|
+
fontWeight: "bold",
|
|
151
|
+
color: "#007bff"
|
|
152
|
+
};
|
|
153
|
+
const disabledLinkStyle = {
|
|
154
|
+
cursor: "not-allowed",
|
|
155
|
+
color: "#aaa"
|
|
156
|
+
};
|
|
157
|
+
const iconStyle = {
|
|
158
|
+
marginLeft: "8px",
|
|
159
|
+
transition: "transform 0.3s ease"
|
|
160
|
+
};
|
|
161
|
+
const openIconStyle = {
|
|
162
|
+
transform: "rotate(180deg)"
|
|
163
|
+
};
|
|
214
164
|
</script>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { CSSProperties } from 'vue';
|
|
2
|
+
interface Props {
|
|
3
|
+
customLabels?: Record<string, string>;
|
|
4
|
+
customWrapperStyle?: CSSProperties;
|
|
5
|
+
customButtonStyle?: CSSProperties;
|
|
6
|
+
customDropdownStyle?: CSSProperties;
|
|
7
|
+
customItemStyle?: CSSProperties;
|
|
8
|
+
customLinkStyle?: CSSProperties;
|
|
9
|
+
customActiveLinkStyle?: CSSProperties;
|
|
10
|
+
customDisabledLinkStyle?: CSSProperties;
|
|
11
|
+
customIconStyle?: CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {
|
|
14
|
+
locale: any;
|
|
15
|
+
}, __VLS_21: {
|
|
16
|
+
locale: any;
|
|
17
|
+
}, __VLS_23: {
|
|
18
|
+
locale: any;
|
|
19
|
+
}, __VLS_25: {
|
|
20
|
+
locale: any;
|
|
21
|
+
}, __VLS_27: {}, __VLS_29: {};
|
|
22
|
+
type __VLS_Slots = {} & {
|
|
23
|
+
'before-button'?: (props: typeof __VLS_1) => any;
|
|
24
|
+
} & {
|
|
25
|
+
'before-selected-locale'?: (props: typeof __VLS_3) => any;
|
|
26
|
+
} & {
|
|
27
|
+
'after-selected-locale'?: (props: typeof __VLS_5) => any;
|
|
28
|
+
} & {
|
|
29
|
+
'before-dropdown'?: (props: typeof __VLS_7) => any;
|
|
30
|
+
} & {
|
|
31
|
+
'before-dropdown-items'?: (props: typeof __VLS_9) => any;
|
|
32
|
+
} & {
|
|
33
|
+
'before-item'?: (props: typeof __VLS_11) => any;
|
|
34
|
+
} & {
|
|
35
|
+
'before-link-content'?: (props: typeof __VLS_21) => any;
|
|
36
|
+
} & {
|
|
37
|
+
'after-link-content'?: (props: typeof __VLS_23) => any;
|
|
38
|
+
} & {
|
|
39
|
+
'after-item'?: (props: typeof __VLS_25) => any;
|
|
40
|
+
} & {
|
|
41
|
+
'after-dropdown-items'?: (props: typeof __VLS_27) => any;
|
|
42
|
+
} & {
|
|
43
|
+
'after-dropdown'?: (props: typeof __VLS_29) => any;
|
|
44
|
+
};
|
|
45
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
46
|
+
customLabels: Record<string, string>;
|
|
47
|
+
customWrapperStyle: CSSProperties;
|
|
48
|
+
customButtonStyle: CSSProperties;
|
|
49
|
+
customDropdownStyle: CSSProperties;
|
|
50
|
+
customItemStyle: CSSProperties;
|
|
51
|
+
customLinkStyle: CSSProperties;
|
|
52
|
+
customActiveLinkStyle: CSSProperties;
|
|
53
|
+
customDisabledLinkStyle: CSSProperties;
|
|
54
|
+
customIconStyle: CSSProperties;
|
|
55
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
56
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
57
|
+
export default _default;
|
|
58
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
59
|
+
new (): {
|
|
60
|
+
$slots: S;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -86,313 +86,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
86
86
|
};
|
|
87
87
|
}>> & Readonly<{}>, {
|
|
88
88
|
params: Record<string, string | number | boolean>;
|
|
89
|
+
html: boolean;
|
|
89
90
|
tag: string;
|
|
90
91
|
defaultValue: string;
|
|
91
|
-
html: boolean;
|
|
92
92
|
hideIfEmpty: boolean;
|
|
93
93
|
customPluralRule: PluralFunc;
|
|
94
94
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
95
95
|
export default _default;
|
|
96
|
-
declare module 'vue' {
|
|
97
|
-
interface GlobalComponents {
|
|
98
|
-
}
|
|
99
|
-
interface GlobalDirectives {
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
declare global {
|
|
103
|
-
const __VLS_intrinsicElements: __VLS_IntrinsicElements;
|
|
104
|
-
const __VLS_directiveBindingRestFields: {
|
|
105
|
-
instance: null;
|
|
106
|
-
oldValue: null;
|
|
107
|
-
modifiers: any;
|
|
108
|
-
dir: any;
|
|
109
|
-
};
|
|
110
|
-
const __VLS_unref: typeof import('vue').unref;
|
|
111
|
-
const __VLS_nativeElements: {
|
|
112
|
-
a: HTMLAnchorElement;
|
|
113
|
-
abbr: HTMLElement;
|
|
114
|
-
address: HTMLElement;
|
|
115
|
-
area: HTMLAreaElement;
|
|
116
|
-
article: HTMLElement;
|
|
117
|
-
aside: HTMLElement;
|
|
118
|
-
audio: HTMLAudioElement;
|
|
119
|
-
b: HTMLElement;
|
|
120
|
-
base: HTMLBaseElement;
|
|
121
|
-
bdi: HTMLElement;
|
|
122
|
-
bdo: HTMLElement;
|
|
123
|
-
blockquote: HTMLQuoteElement;
|
|
124
|
-
body: HTMLBodyElement;
|
|
125
|
-
br: HTMLBRElement;
|
|
126
|
-
button: HTMLButtonElement;
|
|
127
|
-
canvas: HTMLCanvasElement;
|
|
128
|
-
caption: HTMLTableCaptionElement;
|
|
129
|
-
cite: HTMLElement;
|
|
130
|
-
code: HTMLElement;
|
|
131
|
-
col: HTMLTableColElement;
|
|
132
|
-
colgroup: HTMLTableColElement;
|
|
133
|
-
data: HTMLDataElement;
|
|
134
|
-
datalist: HTMLDataListElement;
|
|
135
|
-
dd: HTMLElement;
|
|
136
|
-
del: HTMLModElement;
|
|
137
|
-
details: HTMLDetailsElement;
|
|
138
|
-
dfn: HTMLElement;
|
|
139
|
-
dialog: HTMLDialogElement;
|
|
140
|
-
div: HTMLDivElement;
|
|
141
|
-
dl: HTMLDListElement;
|
|
142
|
-
dt: HTMLElement;
|
|
143
|
-
em: HTMLElement;
|
|
144
|
-
embed: HTMLEmbedElement;
|
|
145
|
-
fieldset: HTMLFieldSetElement;
|
|
146
|
-
figcaption: HTMLElement;
|
|
147
|
-
figure: HTMLElement;
|
|
148
|
-
footer: HTMLElement;
|
|
149
|
-
form: HTMLFormElement;
|
|
150
|
-
h1: HTMLHeadingElement;
|
|
151
|
-
h2: HTMLHeadingElement;
|
|
152
|
-
h3: HTMLHeadingElement;
|
|
153
|
-
h4: HTMLHeadingElement;
|
|
154
|
-
h5: HTMLHeadingElement;
|
|
155
|
-
h6: HTMLHeadingElement;
|
|
156
|
-
head: HTMLHeadElement;
|
|
157
|
-
header: HTMLElement;
|
|
158
|
-
hgroup: HTMLElement;
|
|
159
|
-
hr: HTMLHRElement;
|
|
160
|
-
html: HTMLHtmlElement;
|
|
161
|
-
i: HTMLElement;
|
|
162
|
-
iframe: HTMLIFrameElement;
|
|
163
|
-
img: HTMLImageElement;
|
|
164
|
-
input: HTMLInputElement;
|
|
165
|
-
ins: HTMLModElement;
|
|
166
|
-
kbd: HTMLElement;
|
|
167
|
-
label: HTMLLabelElement;
|
|
168
|
-
legend: HTMLLegendElement;
|
|
169
|
-
li: HTMLLIElement;
|
|
170
|
-
link: HTMLLinkElement;
|
|
171
|
-
main: HTMLElement;
|
|
172
|
-
map: HTMLMapElement;
|
|
173
|
-
mark: HTMLElement;
|
|
174
|
-
menu: HTMLMenuElement;
|
|
175
|
-
meta: HTMLMetaElement;
|
|
176
|
-
meter: HTMLMeterElement;
|
|
177
|
-
nav: HTMLElement;
|
|
178
|
-
noscript: HTMLElement;
|
|
179
|
-
object: HTMLObjectElement;
|
|
180
|
-
ol: HTMLOListElement;
|
|
181
|
-
optgroup: HTMLOptGroupElement;
|
|
182
|
-
option: HTMLOptionElement;
|
|
183
|
-
output: HTMLOutputElement;
|
|
184
|
-
p: HTMLParagraphElement;
|
|
185
|
-
picture: HTMLPictureElement;
|
|
186
|
-
pre: HTMLPreElement;
|
|
187
|
-
progress: HTMLProgressElement;
|
|
188
|
-
q: HTMLQuoteElement;
|
|
189
|
-
rp: HTMLElement;
|
|
190
|
-
rt: HTMLElement;
|
|
191
|
-
ruby: HTMLElement;
|
|
192
|
-
s: HTMLElement;
|
|
193
|
-
samp: HTMLElement;
|
|
194
|
-
script: HTMLScriptElement;
|
|
195
|
-
search: HTMLElement;
|
|
196
|
-
section: HTMLElement;
|
|
197
|
-
select: HTMLSelectElement;
|
|
198
|
-
slot: HTMLSlotElement;
|
|
199
|
-
small: HTMLElement;
|
|
200
|
-
source: HTMLSourceElement;
|
|
201
|
-
span: HTMLSpanElement;
|
|
202
|
-
strong: HTMLElement;
|
|
203
|
-
style: HTMLStyleElement;
|
|
204
|
-
sub: HTMLElement;
|
|
205
|
-
summary: HTMLElement;
|
|
206
|
-
sup: HTMLElement;
|
|
207
|
-
table: HTMLTableElement;
|
|
208
|
-
tbody: HTMLTableSectionElement;
|
|
209
|
-
td: HTMLTableCellElement;
|
|
210
|
-
template: HTMLTemplateElement;
|
|
211
|
-
textarea: HTMLTextAreaElement;
|
|
212
|
-
tfoot: HTMLTableSectionElement;
|
|
213
|
-
th: HTMLTableCellElement;
|
|
214
|
-
thead: HTMLTableSectionElement;
|
|
215
|
-
time: HTMLTimeElement;
|
|
216
|
-
title: HTMLTitleElement;
|
|
217
|
-
tr: HTMLTableRowElement;
|
|
218
|
-
track: HTMLTrackElement;
|
|
219
|
-
u: HTMLElement;
|
|
220
|
-
ul: HTMLUListElement;
|
|
221
|
-
var: HTMLElement;
|
|
222
|
-
video: HTMLVideoElement;
|
|
223
|
-
wbr: HTMLElement;
|
|
224
|
-
animate: SVGAnimateElement;
|
|
225
|
-
animateMotion: SVGAnimateMotionElement;
|
|
226
|
-
animateTransform: SVGAnimateTransformElement;
|
|
227
|
-
circle: SVGCircleElement;
|
|
228
|
-
clipPath: SVGClipPathElement;
|
|
229
|
-
defs: SVGDefsElement;
|
|
230
|
-
desc: SVGDescElement;
|
|
231
|
-
ellipse: SVGEllipseElement;
|
|
232
|
-
feBlend: SVGFEBlendElement;
|
|
233
|
-
feColorMatrix: SVGFEColorMatrixElement;
|
|
234
|
-
feComponentTransfer: SVGFEComponentTransferElement;
|
|
235
|
-
feComposite: SVGFECompositeElement;
|
|
236
|
-
feConvolveMatrix: SVGFEConvolveMatrixElement;
|
|
237
|
-
feDiffuseLighting: SVGFEDiffuseLightingElement;
|
|
238
|
-
feDisplacementMap: SVGFEDisplacementMapElement;
|
|
239
|
-
feDistantLight: SVGFEDistantLightElement;
|
|
240
|
-
feDropShadow: SVGFEDropShadowElement;
|
|
241
|
-
feFlood: SVGFEFloodElement;
|
|
242
|
-
feFuncA: SVGFEFuncAElement;
|
|
243
|
-
feFuncB: SVGFEFuncBElement;
|
|
244
|
-
feFuncG: SVGFEFuncGElement;
|
|
245
|
-
feFuncR: SVGFEFuncRElement;
|
|
246
|
-
feGaussianBlur: SVGFEGaussianBlurElement;
|
|
247
|
-
feImage: SVGFEImageElement;
|
|
248
|
-
feMerge: SVGFEMergeElement;
|
|
249
|
-
feMergeNode: SVGFEMergeNodeElement;
|
|
250
|
-
feMorphology: SVGFEMorphologyElement;
|
|
251
|
-
feOffset: SVGFEOffsetElement;
|
|
252
|
-
fePointLight: SVGFEPointLightElement;
|
|
253
|
-
feSpecularLighting: SVGFESpecularLightingElement;
|
|
254
|
-
feSpotLight: SVGFESpotLightElement;
|
|
255
|
-
feTile: SVGFETileElement;
|
|
256
|
-
feTurbulence: SVGFETurbulenceElement;
|
|
257
|
-
filter: SVGFilterElement;
|
|
258
|
-
foreignObject: SVGForeignObjectElement;
|
|
259
|
-
g: SVGGElement;
|
|
260
|
-
image: SVGImageElement;
|
|
261
|
-
line: SVGLineElement;
|
|
262
|
-
linearGradient: SVGLinearGradientElement;
|
|
263
|
-
marker: SVGMarkerElement;
|
|
264
|
-
mask: SVGMaskElement;
|
|
265
|
-
metadata: SVGMetadataElement;
|
|
266
|
-
mpath: SVGMPathElement;
|
|
267
|
-
path: SVGPathElement;
|
|
268
|
-
pattern: SVGPatternElement;
|
|
269
|
-
polygon: SVGPolygonElement;
|
|
270
|
-
polyline: SVGPolylineElement;
|
|
271
|
-
radialGradient: SVGRadialGradientElement;
|
|
272
|
-
rect: SVGRectElement;
|
|
273
|
-
set: SVGSetElement;
|
|
274
|
-
stop: SVGStopElement;
|
|
275
|
-
svg: SVGSVGElement;
|
|
276
|
-
switch: SVGSwitchElement;
|
|
277
|
-
symbol: SVGSymbolElement;
|
|
278
|
-
text: SVGTextElement;
|
|
279
|
-
textPath: SVGTextPathElement;
|
|
280
|
-
tspan: SVGTSpanElement;
|
|
281
|
-
use: SVGUseElement;
|
|
282
|
-
view: SVGViewElement;
|
|
283
|
-
};
|
|
284
|
-
type __VLS_IntrinsicElements = import('vue/jsx-runtime').JSX.IntrinsicElements;
|
|
285
|
-
type __VLS_Element = import('vue/jsx-runtime').JSX.Element;
|
|
286
|
-
type __VLS_GlobalComponents = import('vue').GlobalComponents & Pick<typeof import('vue'), 'Transition' | 'TransitionGroup' | 'KeepAlive' | 'Suspense' | 'Teleport'>;
|
|
287
|
-
type __VLS_GlobalDirectives = import('vue').GlobalDirectives;
|
|
288
|
-
type __VLS_IsAny<T> = 0 extends 1 & T ? true : false;
|
|
289
|
-
type __VLS_PickNotAny<A, B> = __VLS_IsAny<A> extends true ? B : A;
|
|
290
|
-
type __VLS_unknownDirective = (arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown) => void;
|
|
291
|
-
type __VLS_WithComponent<N0 extends string, LocalComponents, N1 extends string, N2 extends string, N3 extends string> = N1 extends keyof LocalComponents ? N1 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
|
|
292
|
-
[K in N0]: LocalComponents[N1];
|
|
293
|
-
} : N2 extends keyof LocalComponents ? N2 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
|
|
294
|
-
[K in N0]: LocalComponents[N2];
|
|
295
|
-
} : N3 extends keyof LocalComponents ? N3 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
|
|
296
|
-
[K in N0]: LocalComponents[N3];
|
|
297
|
-
} : N1 extends keyof __VLS_GlobalComponents ? N1 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
|
|
298
|
-
[K in N0]: __VLS_GlobalComponents[N1];
|
|
299
|
-
} : N2 extends keyof __VLS_GlobalComponents ? N2 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
|
|
300
|
-
[K in N0]: __VLS_GlobalComponents[N2];
|
|
301
|
-
} : N3 extends keyof __VLS_GlobalComponents ? N3 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
|
|
302
|
-
[K in N0]: __VLS_GlobalComponents[N3];
|
|
303
|
-
} : {
|
|
304
|
-
[K in N0]: unknown;
|
|
305
|
-
};
|
|
306
|
-
type __VLS_FunctionalComponentProps<T, K> = '__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
|
|
307
|
-
__ctx?: {
|
|
308
|
-
props?: infer P;
|
|
309
|
-
};
|
|
310
|
-
} ? NonNullable<P> : never : T extends (props: infer P, ...args: any) => any ? P : {};
|
|
311
|
-
type __VLS_IsFunction<T, K> = K extends keyof T ? __VLS_IsAny<T[K]> extends false ? unknown extends T[K] ? false : true : false : false;
|
|
312
|
-
type __VLS_UnionToIntersection<U> = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never;
|
|
313
|
-
type __VLS_OverloadUnionInner<T, U = unknown> = U & T extends (...args: infer A) => infer R ? U extends T ? never : __VLS_OverloadUnionInner<T, Pick<T, keyof T> & U & ((...args: A) => R)> | ((...args: A) => R) : never;
|
|
314
|
-
type __VLS_OverloadUnion<T> = Exclude<__VLS_OverloadUnionInner<(() => never) & T>, T extends () => never ? never : () => never>;
|
|
315
|
-
type __VLS_ConstructorOverloads<T> = __VLS_OverloadUnion<T> extends infer F ? F extends (event: infer E, ...args: infer A) => any ? {
|
|
316
|
-
[K in E & string]: (...args: A) => void;
|
|
317
|
-
} : never : never;
|
|
318
|
-
type __VLS_NormalizeEmits<T> = __VLS_PrettifyGlobal<__VLS_UnionToIntersection<__VLS_ConstructorOverloads<T> & {
|
|
319
|
-
[K in keyof T]: T[K] extends any[] ? {
|
|
320
|
-
(...args: T[K]): void;
|
|
321
|
-
} : never;
|
|
322
|
-
}>>;
|
|
323
|
-
type __VLS_PrettifyGlobal<T> = {
|
|
324
|
-
[K in keyof T]: T[K];
|
|
325
|
-
} & {};
|
|
326
|
-
type __VLS_PickFunctionalComponentCtx<T, K> = NonNullable<__VLS_PickNotAny<'__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
|
|
327
|
-
__ctx?: infer Ctx;
|
|
328
|
-
} ? Ctx : never : any, T extends (props: any, ctx: infer Ctx) => any ? Ctx : any>>;
|
|
329
|
-
type __VLS_UseTemplateRef<T> = Readonly<import('vue').ShallowRef<T | null>>;
|
|
330
|
-
function __VLS_getVForSourceType(source: number): [number, number, number][];
|
|
331
|
-
function __VLS_getVForSourceType(source: string): [string, number, number][];
|
|
332
|
-
function __VLS_getVForSourceType<T extends any[]>(source: T): [
|
|
333
|
-
item: T[number],
|
|
334
|
-
key: number,
|
|
335
|
-
index: number
|
|
336
|
-
][];
|
|
337
|
-
function __VLS_getVForSourceType<T extends {
|
|
338
|
-
[Symbol.iterator](): Iterator<any>;
|
|
339
|
-
}>(source: T): [
|
|
340
|
-
item: T extends {
|
|
341
|
-
[Symbol.iterator](): Iterator<infer T1>;
|
|
342
|
-
} ? T1 : never,
|
|
343
|
-
key: number,
|
|
344
|
-
index: undefined
|
|
345
|
-
][];
|
|
346
|
-
function __VLS_getVForSourceType<T extends number | {
|
|
347
|
-
[Symbol.iterator](): Iterator<any>;
|
|
348
|
-
}>(source: T): [
|
|
349
|
-
item: number | (Exclude<T, number> extends {
|
|
350
|
-
[Symbol.iterator](): Iterator<infer T1>;
|
|
351
|
-
} ? T1 : never),
|
|
352
|
-
key: number,
|
|
353
|
-
index: undefined
|
|
354
|
-
][];
|
|
355
|
-
function __VLS_getVForSourceType<T>(source: T): [
|
|
356
|
-
item: T[keyof T],
|
|
357
|
-
key: keyof T,
|
|
358
|
-
index: number
|
|
359
|
-
][];
|
|
360
|
-
function __VLS_getSlotParams<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>;
|
|
361
|
-
function __VLS_getSlotParam<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>[0];
|
|
362
|
-
function __VLS_asFunctionalDirective<T>(dir: T): T extends import('vue').ObjectDirective ? NonNullable<T['created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted']> : T extends (...args: any) => any ? T : __VLS_unknownDirective;
|
|
363
|
-
function __VLS_withScope<T, K>(ctx: T, scope: K): ctx is T & K;
|
|
364
|
-
function __VLS_makeOptional<T>(t: T): {
|
|
365
|
-
[K in keyof T]?: T[K];
|
|
366
|
-
};
|
|
367
|
-
function __VLS_nonNullable<T>(t: T): T extends null | undefined ? never : T;
|
|
368
|
-
function __VLS_asFunctionalComponent<T, K = T extends new (...args: any) => any ? InstanceType<T> : unknown>(t: T, instance?: K): T extends new (...args: any) => any ? (props: (K extends {
|
|
369
|
-
$props: infer Props;
|
|
370
|
-
} ? Props : any) & Record<string, unknown>, ctx?: any) => __VLS_Element & {
|
|
371
|
-
__ctx?: {
|
|
372
|
-
attrs?: any;
|
|
373
|
-
slots?: K extends {
|
|
374
|
-
$slots: infer Slots;
|
|
375
|
-
} ? Slots : any;
|
|
376
|
-
emit?: K extends {
|
|
377
|
-
$emit: infer Emit;
|
|
378
|
-
} ? Emit : any;
|
|
379
|
-
} & {
|
|
380
|
-
props?: (K extends {
|
|
381
|
-
$props: infer Props;
|
|
382
|
-
} ? Props : any) & Record<string, unknown>;
|
|
383
|
-
expose?(exposed: K): void;
|
|
384
|
-
};
|
|
385
|
-
} : T extends () => any ? (props: {}, ctx?: any) => ReturnType<T> : T extends (...args: any) => any ? T : (_: {} & Record<string, unknown>, ctx?: any) => {
|
|
386
|
-
__ctx?: {
|
|
387
|
-
attrs?: any;
|
|
388
|
-
expose?: any;
|
|
389
|
-
slots?: any;
|
|
390
|
-
emit?: any;
|
|
391
|
-
props?: {} & Record<string, unknown>;
|
|
392
|
-
};
|
|
393
|
-
};
|
|
394
|
-
function __VLS_elementAsFunction<T>(tag: T, endTag?: T): (_: T & Record<string, unknown>) => void;
|
|
395
|
-
function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): 2 extends Parameters<T>['length'] ? [any] : [];
|
|
396
|
-
function __VLS_normalizeSlot<S>(s: S): S extends () => infer R ? (props: {}) => R : S;
|
|
397
|
-
function __VLS_tryAsConstant<const T>(t: T): T;
|
|
398
|
-
}
|