@isoftdata/svelte-context-menu 1.3.3 → 1.5.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/README.md +1 -1
- package/dist/DropdownCheckboxItem.svelte +13 -0
- package/dist/DropdownCheckboxItem.svelte.d.ts +22 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script>import DropdownItem from "./DropdownItem.svelte";
|
|
2
|
+
export let checked = false;
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<DropdownItem
|
|
6
|
+
icon={{
|
|
7
|
+
icon: checked ? "check-square" : "square",
|
|
8
|
+
prefix: "far",
|
|
9
|
+
}}
|
|
10
|
+
on:click={() => (checked = !checked)}
|
|
11
|
+
on:click
|
|
12
|
+
><slot {checked} />
|
|
13
|
+
</DropdownItem>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
checked?: boolean | undefined;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
click: MouseEvent;
|
|
8
|
+
} & {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {
|
|
12
|
+
default: {
|
|
13
|
+
checked: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type DropdownCheckboxItemProps = typeof __propDef.props;
|
|
18
|
+
export type DropdownCheckboxItemEvents = typeof __propDef.events;
|
|
19
|
+
export type DropdownCheckboxItemSlots = typeof __propDef.slots;
|
|
20
|
+
export default class DropdownCheckboxItem extends SvelteComponent<DropdownCheckboxItemProps, DropdownCheckboxItemEvents, DropdownCheckboxItemSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export { default as DropdownItem } from
|
|
1
|
+
export { default as default } from './ContextMenu.svelte';
|
|
2
|
+
export { default as DropdownItem } from './DropdownItem.svelte';
|
|
3
|
+
export { default as DropdownCheckboxItem } from './DropdownCheckboxItem.svelte';
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default as default } from './ContextMenu.svelte'
|
|
2
|
-
export { default as DropdownItem } from './DropdownItem.svelte'
|
|
1
|
+
export { default as default } from './ContextMenu.svelte';
|
|
2
|
+
export { default as DropdownItem } from './DropdownItem.svelte';
|
|
3
|
+
export { default as DropdownCheckboxItem } from './DropdownCheckboxItem.svelte';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isoftdata/svelte-context-menu",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build && npm run package",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"!dist/**/*.spec.*"
|
|
25
25
|
],
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"svelte": "^4.0.0"
|
|
27
|
+
"svelte": "^4.0.0 || ^5.1.6"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@isoftdata/prettier-config": "^1.0.1",
|