@dskripchenko/ui 0.3.0 → 0.4.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,33 @@
1
+ export interface UidAffixProps {
2
+ offsetTop?: number;
3
+ offsetBottom?: number;
4
+ }
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: Readonly<{
8
+ default?(): unknown;
9
+ }> & {
10
+ default?(): unknown;
11
+ };
12
+ refs: {
13
+ rootRef: HTMLDivElement;
14
+ sentinelRef: HTMLDivElement;
15
+ };
16
+ rootEl: HTMLDivElement;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<UidAffixProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ change: (affixed: boolean) => any;
21
+ }, string, import('vue').PublicProps, Readonly<UidAffixProps> & Readonly<{
22
+ onChange?: ((affixed: boolean) => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
24
+ rootRef: HTMLDivElement;
25
+ sentinelRef: HTMLDivElement;
26
+ }, HTMLDivElement>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,2 @@
1
+ export { default as UidAffix } from './UidAffix.vue';
2
+ export type { UidAffixProps } from './UidAffix.vue';
@@ -0,0 +1,30 @@
1
+ export interface AnchorItem {
2
+ key: string;
3
+ href: string;
4
+ title: string;
5
+ children?: AnchorItem[];
6
+ }
7
+ export interface UidAnchorProps {
8
+ items: AnchorItem[];
9
+ offsetTop?: number;
10
+ target?: () => HTMLElement | Window | null;
11
+ smooth?: boolean;
12
+ }
13
+ type __VLS_Props = UidAnchorProps;
14
+ type __VLS_PublicProps = {
15
+ modelValue?: string;
16
+ } & __VLS_Props;
17
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ click: (item: AnchorItem, event: MouseEvent) => any;
19
+ "update:modelValue": (value: string) => any;
20
+ change: (key: string) => any;
21
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
22
+ onClick?: ((item: AnchorItem, event: MouseEvent) => any) | undefined;
23
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
24
+ onChange?: ((key: string) => any) | undefined;
25
+ }>, {
26
+ target: () => HTMLElement | Window | null;
27
+ smooth: boolean;
28
+ offsetTop: number;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
30
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as UidAnchor } from './UidAnchor.vue';
2
+ export type { UidAnchorProps, AnchorItem } from './UidAnchor.vue';
@@ -0,0 +1,34 @@
1
+ export interface UidBackTopProps {
2
+ visibleAfter?: number;
3
+ target?: string | HTMLElement | (() => HTMLElement | null);
4
+ smooth?: boolean;
5
+ ariaLabel?: string;
6
+ }
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: Readonly<{
10
+ default?(): unknown;
11
+ }> & {
12
+ default?(): unknown;
13
+ };
14
+ refs: {};
15
+ rootEl: any;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import('vue').DefineComponent<UidBackTopProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
+ click: () => any;
20
+ }, string, import('vue').PublicProps, Readonly<UidBackTopProps> & Readonly<{
21
+ onClick?: (() => any) | undefined;
22
+ }>, {
23
+ target: string | HTMLElement | (() => HTMLElement | null);
24
+ visibleAfter: number;
25
+ smooth: boolean;
26
+ ariaLabel: string;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
+ export default _default;
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,2 @@
1
+ export { default as UidBackTop } from './UidBackTop.vue';
2
+ export type { UidBackTopProps } from './UidBackTop.vue';
@@ -0,0 +1,34 @@
1
+ export interface MentionOption {
2
+ value: string;
3
+ label: string;
4
+ hint?: string;
5
+ }
6
+ export interface UidMentionProps {
7
+ options: MentionOption[];
8
+ prefix?: string | string[];
9
+ placeholder?: string;
10
+ disabled?: boolean;
11
+ rows?: number;
12
+ label?: string;
13
+ emptyText?: string;
14
+ filter?: (option: MentionOption, query: string) => boolean;
15
+ }
16
+ type __VLS_Props = UidMentionProps;
17
+ type __VLS_PublicProps = {
18
+ modelValue?: string;
19
+ } & __VLS_Props;
20
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ select: (option: MentionOption, prefix: string) => any;
22
+ "update:modelValue": (value: string) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
+ onSelect?: ((option: MentionOption, prefix: string) => any) | undefined;
25
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
26
+ }>, {
27
+ filter: (option: MentionOption, query: string) => boolean;
28
+ rows: number;
29
+ emptyText: string;
30
+ prefix: string | string[];
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
32
+ fieldRef: HTMLTextAreaElement;
33
+ }, HTMLDivElement>;
34
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as UidMention } from './UidMention.vue';
2
+ export type { UidMentionProps, MentionOption } from './UidMention.vue';
@@ -0,0 +1,44 @@
1
+ export type TourPlacement = 'top' | 'right' | 'bottom' | 'left' | 'center';
2
+ export interface TourStep {
3
+ target?: string | HTMLElement | (() => HTMLElement | null) | null;
4
+ title?: string;
5
+ description?: string;
6
+ placement?: TourPlacement;
7
+ }
8
+ export interface UidTourProps {
9
+ steps: TourStep[];
10
+ maskClosable?: boolean;
11
+ showSkip?: boolean;
12
+ showProgress?: boolean;
13
+ nextText?: string;
14
+ prevText?: string;
15
+ finishText?: string;
16
+ skipText?: string;
17
+ }
18
+ type __VLS_Props = UidTourProps;
19
+ type __VLS_PublicProps = {
20
+ modelValue?: boolean;
21
+ 'current'?: number;
22
+ } & __VLS_Props;
23
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
+ "update:modelValue": (value: boolean) => any;
25
+ change: (index: number) => any;
26
+ close: () => any;
27
+ finish: () => any;
28
+ "update:current": (value: number) => any;
29
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
30
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
31
+ onChange?: ((index: number) => any) | undefined;
32
+ onClose?: (() => any) | undefined;
33
+ onFinish?: (() => any) | undefined;
34
+ "onUpdate:current"?: ((value: number) => any) | undefined;
35
+ }>, {
36
+ maskClosable: boolean;
37
+ showSkip: boolean;
38
+ showProgress: boolean;
39
+ nextText: string;
40
+ prevText: string;
41
+ finishText: string;
42
+ skipText: string;
43
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
44
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as UidTour } from './UidTour.vue';
2
+ export type { UidTourProps, TourStep, TourPlacement } from './UidTour.vue';
@@ -0,0 +1,42 @@
1
+ import { TreeNode, TreeKey } from '../TreeView/context.js';
2
+ export interface UidTreeSelectProps {
3
+ nodes: TreeNode[];
4
+ multiple?: boolean;
5
+ placeholder?: string;
6
+ disabled?: boolean;
7
+ clearable?: boolean;
8
+ defaultExpandAll?: boolean;
9
+ showGuides?: boolean;
10
+ label?: string;
11
+ hint?: string;
12
+ error?: string;
13
+ required?: boolean;
14
+ maxTagCount?: number;
15
+ }
16
+ type __VLS_Props = UidTreeSelectProps;
17
+ type __VLS_PublicProps = {
18
+ modelValue?: TreeKey | TreeKey[] | null;
19
+ 'expandedKeys'?: TreeKey[];
20
+ } & __VLS_Props;
21
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
+ "update:modelValue": (value: TreeKey | TreeKey[] | null) => any;
23
+ change: (value: TreeKey | TreeKey[] | null) => any;
24
+ "update:expandedKeys": (value: TreeKey[]) => any;
25
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
26
+ "onUpdate:modelValue"?: ((value: TreeKey | TreeKey[] | null) => any) | undefined;
27
+ onChange?: ((value: TreeKey | TreeKey[] | null) => any) | undefined;
28
+ "onUpdate:expandedKeys"?: ((value: TreeKey[]) => any) | undefined;
29
+ }>, {
30
+ required: boolean;
31
+ disabled: boolean;
32
+ placeholder: string;
33
+ multiple: boolean;
34
+ clearable: boolean;
35
+ defaultExpandAll: boolean;
36
+ showGuides: boolean;
37
+ maxTagCount: number;
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
39
+ containerRef: HTMLDivElement;
40
+ triggerRef: HTMLDivElement;
41
+ }, HTMLDivElement>;
42
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as UidTreeSelect } from './UidTreeSelect.vue';
2
+ export type { UidTreeSelectProps } from './UidTreeSelect.vue';
@@ -0,0 +1,34 @@
1
+ export interface UidWatermarkProps {
2
+ content?: string | string[];
3
+ font?: string;
4
+ color?: string;
5
+ rotate?: number;
6
+ gap?: [number, number];
7
+ zIndex?: number;
8
+ }
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: Readonly<{
12
+ default?(): unknown;
13
+ }> & {
14
+ default?(): unknown;
15
+ };
16
+ refs: {};
17
+ rootEl: HTMLDivElement;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<UidWatermarkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidWatermarkProps> & Readonly<{}>, {
21
+ color: string;
22
+ rotate: number;
23
+ font: string;
24
+ content: string | string[];
25
+ gap: [number, number];
26
+ zIndex: number;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
28
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
+ export default _default;
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,2 @@
1
+ export { default as UidWatermark } from './UidWatermark.vue';
2
+ export type { UidWatermarkProps } from './UidWatermark.vue';