sep-yui 0.1.125 → 0.1.127
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/components/Icon/enum/enum.d.ts +4 -1
- package/dist/components/Icon/icons.d.ts +3 -1
- package/dist/components/Popover/Popover.vue.d.ts +11 -1
- package/dist/components/Popover/interface/interface.d.ts +1 -1
- package/dist/components/Switch/interface/interface.d.ts +9 -3
- package/dist/components/UserMenu/MenuItem.vue.d.ts +27 -0
- package/dist/components/UserMenu/UserMenu.vue.d.ts +2 -0
- package/dist/components/UserMenu/UserMenuList.vue.d.ts +39 -0
- package/dist/components/UserMenu/enum/enum.d.ts +1 -0
- package/dist/components/UserMenu/interface/interface.d.ts +17 -4
- package/dist/components/index.d.ts +2 -2
- package/dist/sep-yui.es.ts +8249 -8173
- package/dist/sep-yui.umd.ts +209 -203
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/Popover/PopoverHover.vue.d.ts +0 -40
|
@@ -106,5 +106,8 @@ export declare enum IconNameEnum {
|
|
|
106
106
|
logout = "logout",
|
|
107
107
|
minus = "minus",
|
|
108
108
|
keyboard = "keyboard",
|
|
109
|
-
planeRightFill = "plane-right-fill"
|
|
109
|
+
planeRightFill = "plane-right-fill",
|
|
110
|
+
message = "message",
|
|
111
|
+
darkThemeSwitcher = "dark-theme-switcher",
|
|
112
|
+
qrCode = "qr-code"
|
|
110
113
|
}
|
|
@@ -114,4 +114,6 @@ export declare const addUser: IVectorIcon;
|
|
|
114
114
|
export declare const noDistrub: IVectorIcon;
|
|
115
115
|
export declare const logout: IVectorIcon;
|
|
116
116
|
export declare const keyboard: IVectorIcon;
|
|
117
|
-
export declare const
|
|
117
|
+
export declare const message: IVectorIcon;
|
|
118
|
+
export declare const darkThemeSwitcher: IVectorIcon;
|
|
119
|
+
export declare const qrCode: IVectorIcon;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { IPopoverOption, IPopoverProps } from './interface/interface';
|
|
2
2
|
import { IconNameEnum } from '../Icon/enum/enum';
|
|
3
3
|
|
|
4
|
-
declare
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
trigger?(_: {}): any;
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IPopoverProps>, {
|
|
5
9
|
iconName: IconNameEnum;
|
|
6
10
|
options: () => never[];
|
|
7
11
|
tooltip: string;
|
|
@@ -24,6 +28,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
24
28
|
tooltip: string;
|
|
25
29
|
tooltipPosition: import('../Tooltip/interface/interface').TTooltipPosition;
|
|
26
30
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
27
32
|
export default _default;
|
|
28
33
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
34
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -42,3 +47,8 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
42
47
|
type __VLS_Prettify<T> = {
|
|
43
48
|
[K in keyof T]: T[K];
|
|
44
49
|
} & {};
|
|
50
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -12,7 +12,7 @@ export interface IPopoverOption {
|
|
|
12
12
|
export interface IPopoverProps extends IDataTestIdProp {
|
|
13
13
|
isShow?: boolean;
|
|
14
14
|
iconName?: IconNameEnum;
|
|
15
|
-
options
|
|
15
|
+
options?: IPopoverOption[];
|
|
16
16
|
tooltip?: string;
|
|
17
17
|
tooltipPosition?: TTooltipPosition;
|
|
18
18
|
isWCUse?: boolean;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { IDataTestIdProp } from '../../../common/dataTestidProps';
|
|
2
|
-
import { IconNameEnum } from '../../Icon/enum/enum';
|
|
3
2
|
|
|
3
|
+
export interface SwitchItem {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
type ItemsType = Array<string | SwitchItem>;
|
|
4
8
|
export interface ISwitchProps extends IDataTestIdProp {
|
|
5
|
-
items:
|
|
6
|
-
defaultValue?:
|
|
9
|
+
items: ItemsType;
|
|
10
|
+
defaultValue?: string;
|
|
7
11
|
isIcons?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
8
13
|
theme?: 'default' | 'contrast';
|
|
9
14
|
}
|
|
10
15
|
export interface IChangeSwitchEmit {
|
|
11
16
|
index: number;
|
|
12
17
|
value: string;
|
|
13
18
|
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MenuTypeEnum } from './enum/enum';
|
|
2
|
+
import { IMenuItemProps } from './interface/interface';
|
|
3
|
+
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IMenuItemProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
click: (args_0: MenuTypeEnum) => void;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IMenuItemProps>>> & Readonly<{
|
|
10
|
+
onClick?: ((args_0: MenuTypeEnum) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -6,12 +6,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
6
6
|
dataTestid: string;
|
|
7
7
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
8
|
click: (type: MenuTypeEnum) => void;
|
|
9
|
+
"unmount-qr-auth": () => void;
|
|
9
10
|
themeChange: (value: boolean) => void;
|
|
10
11
|
languageSwitch: (value: IChangeSwitchEmit) => void;
|
|
11
12
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IMenuProps>, {
|
|
12
13
|
dataTestid: string;
|
|
13
14
|
}>>> & Readonly<{
|
|
14
15
|
onClick?: ((type: MenuTypeEnum) => any) | undefined;
|
|
16
|
+
"onUnmount-qr-auth"?: (() => any) | undefined;
|
|
15
17
|
onThemeChange?: ((value: boolean) => any) | undefined;
|
|
16
18
|
onLanguageSwitch?: ((value: IChangeSwitchEmit) => any) | undefined;
|
|
17
19
|
}>, {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { IChangeSwitchEmit } from '../Switch/interface/interface';
|
|
2
|
+
import { MenuTypeEnum } from './enum/enum';
|
|
3
|
+
import { IMenuProps } from './interface/interface';
|
|
4
|
+
|
|
5
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IMenuProps>, {
|
|
6
|
+
dataTestid: string;
|
|
7
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
click: (type: MenuTypeEnum) => void;
|
|
9
|
+
"unmount-qr-auth": () => void;
|
|
10
|
+
themeChange: (value: boolean) => void;
|
|
11
|
+
languageSwitch: (value: IChangeSwitchEmit) => void;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IMenuProps>, {
|
|
13
|
+
dataTestid: string;
|
|
14
|
+
}>>> & Readonly<{
|
|
15
|
+
onClick?: ((type: MenuTypeEnum) => any) | undefined;
|
|
16
|
+
"onUnmount-qr-auth"?: (() => any) | undefined;
|
|
17
|
+
onThemeChange?: ((value: boolean) => any) | undefined;
|
|
18
|
+
onLanguageSwitch?: ((value: IChangeSwitchEmit) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
dataTestid: string;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithDefaults<P, D> = {
|
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
34
|
+
default: D[K];
|
|
35
|
+
}> : P[K];
|
|
36
|
+
};
|
|
37
|
+
type __VLS_Prettify<T> = {
|
|
38
|
+
[K in keyof T]: T[K];
|
|
39
|
+
} & {};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { ISwitchProps } from '../../Switch/interface/interface';
|
|
2
2
|
import { IDataTestIdProp } from '../../../common/dataTestidProps';
|
|
3
|
+
import { IconNameEnum } from '../../Icon/enum/enum';
|
|
4
|
+
import { MenuTypeEnum } from '../enum/enum';
|
|
3
5
|
|
|
4
|
-
|
|
6
|
+
interface IUserType {
|
|
5
7
|
name: string;
|
|
6
8
|
role: string;
|
|
7
9
|
avatar: string;
|
|
8
|
-
}
|
|
10
|
+
}
|
|
9
11
|
export interface IAdminPanel {
|
|
10
|
-
user:
|
|
12
|
+
user: IUserType;
|
|
11
13
|
}
|
|
12
14
|
export interface IMenuLanguagesProps {
|
|
13
15
|
languages?: ISwitchProps;
|
|
@@ -15,7 +17,18 @@ export interface IMenuLanguagesProps {
|
|
|
15
17
|
export interface IThemeProps {
|
|
16
18
|
isBlackTheme?: boolean;
|
|
17
19
|
}
|
|
18
|
-
export interface IMenuProps extends IAdminPanel
|
|
20
|
+
export interface IMenuProps extends Partial<IAdminPanel>, IMenuLanguagesProps, IThemeProps, IDataTestIdProp {
|
|
19
21
|
closeAfterClick?: boolean;
|
|
22
|
+
menuOpen?: boolean;
|
|
23
|
+
categories?: MenuTypeEnum[];
|
|
24
|
+
texts?: Partial<Record<MenuTypeEnum, string>>;
|
|
25
|
+
}
|
|
26
|
+
export interface IMenuItemProps extends IDataTestIdProp {
|
|
27
|
+
active?: boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
dataTestid: string;
|
|
30
|
+
iconName: IconNameEnum;
|
|
31
|
+
text: string;
|
|
32
|
+
menuType: MenuTypeEnum;
|
|
20
33
|
}
|
|
21
34
|
export {};
|
|
@@ -36,7 +36,6 @@ import { default as TableTd } from './Table/TableTd.vue';
|
|
|
36
36
|
import { default as TableTh } from './Table/TableTh.vue';
|
|
37
37
|
import { default as SectionTableRow } from './Table/SectionTableRow.vue';
|
|
38
38
|
import { default as HeadTableRow } from './Table/HeadTableRow.vue';
|
|
39
|
-
import { default as PopoverHover } from './Popover/PopoverHover.vue';
|
|
40
39
|
import { default as ScrollWrapper } from './ScrollWrapper/ScrollWrapper.vue';
|
|
41
40
|
import { default as Radio } from './Radio/Radio.vue';
|
|
42
41
|
import { default as Tooltip } from './Tooltip/Tooltip.vue';
|
|
@@ -66,9 +65,10 @@ import { ImageExtensionsEnum, VideoExtensionsEnum } from '../common/extentions';
|
|
|
66
65
|
import { InputTypeEnum, TextFieldEnum } from './Input/enum/enum';
|
|
67
66
|
import { TextareaTypeEnum } from './Textarea/enum';
|
|
68
67
|
import { CheckboxSizeEnum } from './Checkbox/enum/enum';
|
|
68
|
+
import { MenuTypeEnum } from './UserMenu/enum/enum';
|
|
69
69
|
|
|
70
70
|
declare const _default: {
|
|
71
71
|
install: (app: App) => void;
|
|
72
72
|
};
|
|
73
73
|
export default _default;
|
|
74
|
-
export { Accordion, Badges, BreadCrumbs, Button, Dialog, Card, Calendar, DragAndDrop, Switch, SelectList, Dropdown, Textarea, Filter, Icon, Input, Combobox, InputNumber, Search, PushNotification, Picture, Scroll, Modal, Slider, Checkbox, Toggle, UserMenu, CopyIcon, Loader, FilterTag, CircularProgress, Popover, Table, TableSimple, TableNew, TableRow, TableRowNew, TableTd, TableTh, SectionTableRow, HeadTableRow, HeadTableRowNew,
|
|
74
|
+
export { Accordion, Badges, BreadCrumbs, Button, Dialog, Card, Calendar, DragAndDrop, Switch, SelectList, Dropdown, Textarea, Filter, Icon, Input, Combobox, InputNumber, Search, PushNotification, Picture, Scroll, Modal, Slider, Checkbox, Toggle, UserMenu, CopyIcon, Loader, FilterTag, CircularProgress, Popover, Table, TableSimple, TableNew, TableRow, TableRowNew, TableTd, TableTh, SectionTableRow, HeadTableRow, HeadTableRowNew, ScrollWrapper, Radio, Tooltip, BaseFilter, Range, Avatar, Tabs, ContentEditor, ModalCroppedAvatar, TimePicker, type IDialogProps, type IRangeForDatePicker, type OptionsObject, type IDataTestIdProp, CheckboxSizeEnum, TextFieldEnum, IconNameEnum, SizesEnum, ButtonTypeEnum, ColorsEnum, ImageExtensionsEnum, BadgesTypeEnum, VideoExtensionsEnum, InputTypeEnum, TextareaTypeEnum, MenuTypeEnum, getLastTime, getFirstTime, vuePluginRemoveTestid };
|