@stonecrop/desktop 0.3.6 → 0.3.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.
- package/dist/desktop.d.ts +42 -2
- package/dist/desktop.js +479 -470
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs +24 -24
- package/dist/desktop.umd.cjs.map +1 -1
- package/dist/plugins/index.js +1 -2
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/plugins/index.d.ts +1 -2
- package/dist/src/plugins/index.d.ts.map +1 -1
- package/dist/src/types/index.d.ts +37 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/dist/types/index.js +0 -0
- package/package.json +5 -6
- package/src/components/ActionSet.vue +5 -18
- package/src/index.ts +1 -0
- package/src/plugins/index.ts +1 -2
- package/src/types/index.ts +41 -0
package/dist/desktop.d.ts
CHANGED
|
@@ -5,19 +5,59 @@ import { Plugin as Plugin_2 } from 'vue';
|
|
|
5
5
|
import Records from './components/Records.vue';
|
|
6
6
|
import SheetNav from './components/SheetNav.vue';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Superset of all element types in the Action Set
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export declare type ActionElements = ButtonElement | DropdownElement;
|
|
13
|
+
|
|
8
14
|
export { ActionSet }
|
|
9
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Base type for elements in the Action Set
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export declare type BaseElement = {
|
|
21
|
+
label: string;
|
|
22
|
+
show?: boolean;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Button elements
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export declare type ButtonElement = BaseElement & ElementAction & {
|
|
30
|
+
type: 'button';
|
|
31
|
+
};
|
|
32
|
+
|
|
10
33
|
export { CommandPalette }
|
|
11
34
|
|
|
12
35
|
export { Doctype }
|
|
13
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Dropdown elements
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
export declare type DropdownElement = BaseElement & {
|
|
42
|
+
type: 'dropdown';
|
|
43
|
+
actions: ElementAction[];
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Element actions
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
export declare type ElementAction = BaseElement & {
|
|
51
|
+
link?: string;
|
|
52
|
+
action?: () => void;
|
|
53
|
+
};
|
|
54
|
+
|
|
14
55
|
export { Records }
|
|
15
56
|
|
|
16
57
|
export { SheetNav }
|
|
17
58
|
|
|
18
59
|
/**
|
|
19
|
-
* This is the main plugin
|
|
20
|
-
* that we want to use in our application.
|
|
60
|
+
* This is the main plugin that will be used to register all the desktop components.
|
|
21
61
|
* @public
|
|
22
62
|
*/
|
|
23
63
|
export declare const StonecropDesktop: Plugin_2;
|