@c2n/cascader 0.0.18 → 0.0.19
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/package.json +4 -4
- package/vue.d.ts +8 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c2n/cascader",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/cascader.js",
|
|
6
6
|
"exports": {
|
|
@@ -64,13 +64,13 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@c2n/core": "0.0.
|
|
68
|
-
"@c2n/overlay": "0.0.
|
|
67
|
+
"@c2n/core": "0.0.19",
|
|
68
|
+
"@c2n/overlay": "0.0.19",
|
|
69
69
|
"lit": "3.3.3"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@c2n/config": "*"
|
|
73
73
|
},
|
|
74
74
|
"customElements": "custom-elements.json",
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "97db30ae10cfe0b1571ba5081116bc134422fce4"
|
|
76
76
|
}
|
package/vue.d.ts
CHANGED
|
@@ -8,10 +8,13 @@
|
|
|
8
8
|
// nothing: template.compilerOptions.isCustomElement = (tag) => tag.startsWith('c2-') in vite.config.ts.
|
|
9
9
|
|
|
10
10
|
import type { DefineComponent, HTMLAttributes } from 'vue'
|
|
11
|
-
import type {
|
|
11
|
+
import type { EventMapOf } from '@c2n/core/event-helper.js'
|
|
12
|
+
import type { Cascader } from '@c2n/cascader'
|
|
12
13
|
|
|
13
14
|
/** The element's own public properties, plus every attribute Vue understands on a host element. */
|
|
14
15
|
type C2Props<T> = Partial<Omit<T, keyof HTMLElement>> & HTMLAttributes
|
|
16
|
+
/** The event an element fires under `name`, read from the map its `addEventListener` carries (its own or inherited). */
|
|
17
|
+
type EventOf<T extends EventTarget, Name extends string> = Name extends keyof EventMapOf<T> ? EventMapOf<T>[Name] : CustomEvent
|
|
15
18
|
|
|
16
19
|
declare module 'vue' {
|
|
17
20
|
interface GlobalComponents {
|
|
@@ -20,10 +23,10 @@ declare module 'vue' {
|
|
|
20
23
|
'aria-label'?: unknown
|
|
21
24
|
'change-on-select'?: unknown
|
|
22
25
|
'expand-trigger'?: unknown
|
|
23
|
-
onOpenChange?: (event:
|
|
24
|
-
onCascaderChange?: (event:
|
|
25
|
-
onInput?: (event:
|
|
26
|
-
onChange?: (event:
|
|
26
|
+
onOpenChange?: (event: EventOf<Cascader, 'open-change'>) => void
|
|
27
|
+
onCascaderChange?: (event: EventOf<Cascader, 'cascader-change'>) => void
|
|
28
|
+
onInput?: (event: EventOf<Cascader, 'input'>) => void
|
|
29
|
+
onChange?: (event: EventOf<Cascader, 'change'>) => void
|
|
27
30
|
}
|
|
28
31
|
>
|
|
29
32
|
}
|