@codemonster-ru/vueforge 0.37.0 → 0.38.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 @@
1
+ export {};
@@ -0,0 +1,41 @@
1
+ import { TreeItem, TreeValue } from './tree.vue';
2
+ interface Props {
3
+ node: TreeItem;
4
+ level: number;
5
+ size: 'small' | 'normal' | 'large';
6
+ variant: 'filled' | 'outlined';
7
+ disabled: boolean;
8
+ expandOnClick: boolean;
9
+ selectable: boolean;
10
+ isSelected: (key: TreeValue) => boolean;
11
+ isExpanded: (key: TreeValue) => boolean;
12
+ isDisabled: (node: TreeItem) => boolean;
13
+ onSelect: (node: TreeItem, event: Event) => void;
14
+ onToggle: (node: TreeItem, event: Event) => void;
15
+ }
16
+ type TreeLabelSlotProps = {
17
+ node: TreeItem;
18
+ level: number;
19
+ selected: boolean;
20
+ expanded: boolean;
21
+ disabled: boolean;
22
+ };
23
+ declare function __VLS_template(): {
24
+ attrs: Partial<{}>;
25
+ slots: Readonly<{
26
+ label?: (props: TreeLabelSlotProps) => unknown;
27
+ }> & {
28
+ label?: (props: TreeLabelSlotProps) => unknown;
29
+ };
30
+ refs: {};
31
+ rootEl: HTMLLIElement;
32
+ };
33
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
34
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLIElement>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
+ export default _default;
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,71 @@
1
+ export type TreeValue = string | number;
2
+ export interface TreeItem {
3
+ key: TreeValue;
4
+ label: string;
5
+ disabled?: boolean;
6
+ children?: Array<TreeItem>;
7
+ }
8
+ type TreeModelValue = TreeValue | Array<TreeValue> | undefined;
9
+ type TreeLabelSlotProps = {
10
+ node: TreeItem;
11
+ level: number;
12
+ selected: boolean;
13
+ expanded: boolean;
14
+ disabled: boolean;
15
+ };
16
+ interface Props {
17
+ items?: Array<TreeItem>;
18
+ modelValue?: TreeModelValue;
19
+ expandedKeys?: Array<TreeValue>;
20
+ multiple?: boolean;
21
+ selectable?: boolean;
22
+ expandOnClick?: boolean;
23
+ disabled?: boolean;
24
+ size?: 'small' | 'normal' | 'large';
25
+ variant?: 'filled' | 'outlined';
26
+ ariaLabel?: string;
27
+ ariaLabelledby?: string;
28
+ }
29
+ declare function __VLS_template(): {
30
+ attrs: Partial<{}>;
31
+ slots: Readonly<{
32
+ label?: (props: TreeLabelSlotProps) => unknown;
33
+ }> & {
34
+ label?: (props: TreeLabelSlotProps) => unknown;
35
+ };
36
+ refs: {};
37
+ rootEl: HTMLDivElement;
38
+ };
39
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
40
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
41
+ change: (...args: any[]) => void;
42
+ toggle: (...args: any[]) => void;
43
+ "update:modelValue": (...args: any[]) => void;
44
+ "update:expandedKeys": (...args: any[]) => void;
45
+ nodeClick: (...args: any[]) => void;
46
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
47
+ onChange?: ((...args: any[]) => any) | undefined;
48
+ onToggle?: ((...args: any[]) => any) | undefined;
49
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
50
+ "onUpdate:expandedKeys"?: ((...args: any[]) => any) | undefined;
51
+ onNodeClick?: ((...args: any[]) => any) | undefined;
52
+ }>, {
53
+ disabled: boolean;
54
+ items: Array<TreeItem>;
55
+ size: "small" | "normal" | "large";
56
+ variant: "filled" | "outlined";
57
+ modelValue: TreeValue | TreeValue[];
58
+ ariaLabel: string;
59
+ multiple: boolean;
60
+ ariaLabelledby: string;
61
+ expandOnClick: boolean;
62
+ selectable: boolean;
63
+ expandedKeys: Array<TreeValue>;
64
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
65
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
66
+ export default _default;
67
+ type __VLS_WithTemplateSlots<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
@@ -762,6 +762,41 @@ export type RatingTokens = {
762
762
  size?: string;
763
763
  };
764
764
  };
765
+ export type TreeTokens = {
766
+ gap?: string;
767
+ indent?: string;
768
+ rowGap?: string;
769
+ rowPadding?: string;
770
+ rowPaddingInline?: string;
771
+ rowBorderRadius?: string;
772
+ rowBorderColor?: string;
773
+ rowFontSize?: string;
774
+ rowTextColor?: string;
775
+ rowBackgroundColor?: string;
776
+ rowHoverBackgroundColor?: string;
777
+ rowSelectedBackgroundColor?: string;
778
+ rowSelectedTextColor?: string;
779
+ toggleSize?: string;
780
+ toggleRadius?: string;
781
+ toggleBorderColor?: string;
782
+ toggleBackgroundColor?: string;
783
+ toggleTextColor?: string;
784
+ toggleHoverBackgroundColor?: string;
785
+ focusRingShadow?: string;
786
+ disabledOpacity?: string;
787
+ small?: {
788
+ rowPadding?: string;
789
+ rowPaddingInline?: string;
790
+ rowFontSize?: string;
791
+ toggleSize?: string;
792
+ };
793
+ large?: {
794
+ rowPadding?: string;
795
+ rowPaddingInline?: string;
796
+ rowFontSize?: string;
797
+ toggleSize?: string;
798
+ };
799
+ };
765
800
  export type StepperTokens = {
766
801
  gap?: string;
767
802
  itemGap?: string;
@@ -1070,6 +1105,7 @@ export type ThemeComponentTokens = {
1070
1105
  chip?: ChipTokens;
1071
1106
  avatar?: AvatarTokens;
1072
1107
  rating?: RatingTokens;
1108
+ tree?: TreeTokens;
1073
1109
  [key: string]: unknown;
1074
1110
  };
1075
1111
  export type ThemeTokens = {
@@ -0,0 +1,36 @@
1
+ declare const _default: {
2
+ gap: string;
3
+ indent: string;
4
+ rowGap: string;
5
+ rowPadding: string;
6
+ rowPaddingInline: string;
7
+ rowBorderRadius: string;
8
+ rowBorderColor: string;
9
+ rowFontSize: string;
10
+ rowTextColor: string;
11
+ rowBackgroundColor: string;
12
+ rowHoverBackgroundColor: string;
13
+ rowSelectedBackgroundColor: string;
14
+ rowSelectedTextColor: string;
15
+ toggleSize: string;
16
+ toggleRadius: string;
17
+ toggleBorderColor: string;
18
+ toggleBackgroundColor: string;
19
+ toggleTextColor: string;
20
+ toggleHoverBackgroundColor: string;
21
+ focusRingShadow: string;
22
+ disabledOpacity: string;
23
+ small: {
24
+ rowPadding: string;
25
+ rowPaddingInline: string;
26
+ rowFontSize: string;
27
+ toggleSize: string;
28
+ };
29
+ large: {
30
+ rowPadding: string;
31
+ rowPaddingInline: string;
32
+ rowFontSize: string;
33
+ toggleSize: string;
34
+ };
35
+ };
36
+ export default _default;
@@ -1265,6 +1265,41 @@ declare const _default: {
1265
1265
  size: string;
1266
1266
  };
1267
1267
  };
1268
+ tree: {
1269
+ gap: string;
1270
+ indent: string;
1271
+ rowGap: string;
1272
+ rowPadding: string;
1273
+ rowPaddingInline: string;
1274
+ rowBorderRadius: string;
1275
+ rowBorderColor: string;
1276
+ rowFontSize: string;
1277
+ rowTextColor: string;
1278
+ rowBackgroundColor: string;
1279
+ rowHoverBackgroundColor: string;
1280
+ rowSelectedBackgroundColor: string;
1281
+ rowSelectedTextColor: string;
1282
+ toggleSize: string;
1283
+ toggleRadius: string;
1284
+ toggleBorderColor: string;
1285
+ toggleBackgroundColor: string;
1286
+ toggleTextColor: string;
1287
+ toggleHoverBackgroundColor: string;
1288
+ focusRingShadow: string;
1289
+ disabledOpacity: string;
1290
+ small: {
1291
+ rowPadding: string;
1292
+ rowPaddingInline: string;
1293
+ rowFontSize: string;
1294
+ toggleSize: string;
1295
+ };
1296
+ large: {
1297
+ rowPadding: string;
1298
+ rowPaddingInline: string;
1299
+ rowFontSize: string;
1300
+ toggleSize: string;
1301
+ };
1302
+ };
1268
1303
  };
1269
1304
  colors: {
1270
1305
  white: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemonster-ru/vueforge",
3
- "version": "0.37.0",
3
+ "version": "0.38.0",
4
4
  "description": "Open source UI components for Vue.js.",
5
5
  "license": "MIT",
6
6
  "author": "Kirill Kolesnikov",