@codemonster-ru/vueforge 0.40.0 → 0.41.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.
@@ -0,0 +1,69 @@
1
+ interface Item {
2
+ to?: string;
3
+ href?: string;
4
+ url?: string;
5
+ icon?: string;
6
+ label?: string;
7
+ active?: boolean;
8
+ disabled?: boolean;
9
+ separator?: boolean;
10
+ command?: () => void;
11
+ }
12
+ interface Point {
13
+ x: number;
14
+ y: number;
15
+ }
16
+ interface Props {
17
+ modelValue?: boolean;
18
+ items?: Array<Item>;
19
+ disabled?: boolean;
20
+ closeOnSelect?: boolean;
21
+ closeOnEsc?: boolean;
22
+ offset?: number;
23
+ }
24
+ declare function __VLS_template(): {
25
+ attrs: Partial<{}>;
26
+ slots: {
27
+ default?(_: {}): any;
28
+ menu?(_: {}): any;
29
+ };
30
+ refs: {
31
+ root: HTMLDivElement;
32
+ panel: HTMLDivElement;
33
+ };
34
+ rootEl: any;
35
+ };
36
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
37
+ declare const __VLS_component: import('vue').DefineComponent<Props, {
38
+ openAt: (point: Point) => Promise<void>;
39
+ close: () => void;
40
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
41
+ close: (...args: any[]) => void;
42
+ contextmenu: (...args: any[]) => void;
43
+ select: (...args: any[]) => void;
44
+ "update:modelValue": (...args: any[]) => void;
45
+ open: (...args: any[]) => void;
46
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
47
+ onClose?: ((...args: any[]) => any) | undefined;
48
+ onContextmenu?: ((...args: any[]) => any) | undefined;
49
+ onSelect?: ((...args: any[]) => any) | undefined;
50
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
51
+ onOpen?: ((...args: any[]) => any) | undefined;
52
+ }>, {
53
+ disabled: boolean;
54
+ items: Array<Item>;
55
+ modelValue: boolean;
56
+ closeOnEsc: boolean;
57
+ offset: number;
58
+ closeOnSelect: boolean;
59
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
60
+ root: HTMLDivElement;
61
+ panel: HTMLDivElement;
62
+ }, any>;
63
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
64
+ export default _default;
65
+ type __VLS_WithTemplateSlots<T, S> = T & {
66
+ new (): {
67
+ $slots: S;
68
+ };
69
+ };
@@ -310,6 +310,17 @@ export type DropdownTokens = {
310
310
  disabledOpacity?: string;
311
311
  itemPadding?: string;
312
312
  };
313
+ export type ContextMenuTokens = {
314
+ minWidth?: string;
315
+ panelPadding?: string;
316
+ panelBorderRadius?: string;
317
+ panelBorderColor?: string;
318
+ panelBackgroundColor?: string;
319
+ panelShadow?: string;
320
+ zIndex?: string;
321
+ disabledOpacity?: string;
322
+ itemPadding?: string;
323
+ };
313
324
  export type SelectTokens = {
314
325
  minWidth?: string;
315
326
  fontSize?: string;
@@ -1133,6 +1144,7 @@ export type ThemeComponentTokens = {
1133
1144
  drawer?: DrawerTokens;
1134
1145
  popover?: PopoverTokens;
1135
1146
  dropdown?: DropdownTokens;
1147
+ contextMenu?: ContextMenuTokens;
1136
1148
  select?: SelectTokens;
1137
1149
  autocomplete?: AutocompleteTokens;
1138
1150
  multiselect?: MultiSelectTokens;
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ minWidth: string;
3
+ panelPadding: string;
4
+ panelBorderRadius: string;
5
+ panelBorderColor: string;
6
+ panelBackgroundColor: string;
7
+ panelShadow: string;
8
+ zIndex: string;
9
+ disabledOpacity: string;
10
+ itemPadding: string;
11
+ };
12
+ export default _default;
@@ -464,6 +464,17 @@ declare const _default: {
464
464
  disabledOpacity: string;
465
465
  itemPadding: string;
466
466
  };
467
+ contextMenu: {
468
+ minWidth: string;
469
+ panelPadding: string;
470
+ panelBorderRadius: string;
471
+ panelBorderColor: string;
472
+ panelBackgroundColor: string;
473
+ panelShadow: string;
474
+ zIndex: string;
475
+ disabledOpacity: string;
476
+ itemPadding: string;
477
+ };
467
478
  select: {
468
479
  minWidth: string;
469
480
  fontSize: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemonster-ru/vueforge",
3
- "version": "0.40.0",
3
+ "version": "0.41.0",
4
4
  "description": "Open source UI components for Vue.js.",
5
5
  "license": "MIT",
6
6
  "author": "Kirill Kolesnikov",