portal-design-system 0.0.934 → 0.0.936

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.
@@ -1,8 +1,7 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  type __VLS_Props = {
3
3
  items: {
4
- duration: number;
5
- unit: 'Y' | 'MO' | 'W' | 'D' | 'H' | 'M';
4
+ duration: string;
6
5
  label?: string;
7
6
  color?: string;
8
7
  }[];
@@ -0,0 +1,17 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ total: number;
4
+ maximumVisiblePages?: number;
5
+ };
6
+ type __VLS_PublicProps = {
7
+ 'take'?: number;
8
+ 'skip'?: number;
9
+ } & __VLS_Props;
10
+ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ "update:take": (value: number) => any;
12
+ "update:skip": (value: number) => any;
13
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
+ "onUpdate:take"?: ((value: number) => any) | undefined;
15
+ "onUpdate:skip"?: ((value: number) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
17
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { Ref } from 'vue';
2
+ export declare function useOverlay(show: Ref<boolean>, options?: {
3
+ ingoreOverflowHidden?: boolean;
4
+ }): void;
5
+ export default useOverlay;
@@ -0,0 +1,24 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ forId?: string;
4
+ label?: string;
5
+ required?: boolean;
6
+ classList?: string;
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: HTMLLabelElement;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,14 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ label: string;
4
+ value?: string | number;
5
+ };
6
+ type __VLS_PublicProps = {
7
+ modelValue?: string | number;
8
+ } & __VLS_Props;
9
+ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
+ "update:modelValue": (value: string | number) => any;
11
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { SelectOptionType } from '../../types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ direction: 'horizontal' | 'vertical';
5
+ options: SelectOptionType[];
6
+ id: string;
7
+ label?: string;
8
+ required?: boolean;
9
+ labelClassList?: string;
10
+ };
11
+ type __VLS_PublicProps = {
12
+ modelValue?: string | number;
13
+ } & __VLS_Props;
14
+ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
+ "update:modelValue": (value: string | number) => any;
16
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
17
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
19
+ export default _default;
@@ -0,0 +1,39 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ export type DrawerPosition = 'start' | 'end';
3
+ interface DrawerProps {
4
+ title?: string;
5
+ backUrl?: string;
6
+ classList?: string;
7
+ persistent?: boolean;
8
+ position?: DrawerPosition;
9
+ width?: string;
10
+ }
11
+ type __VLS_Props = DrawerProps;
12
+ type __VLS_PublicProps = {
13
+ modelValue?: boolean;
14
+ } & __VLS_Props;
15
+ declare function __VLS_template(): {
16
+ attrs: Partial<{}>;
17
+ slots: {
18
+ 'header-end'?(_: {}): any;
19
+ default?(_: {}): any;
20
+ };
21
+ refs: {};
22
+ rootEl: any;
23
+ };
24
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
25
+ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
26
+ "update:modelValue": (value: boolean) => any;
27
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
29
+ }>, {
30
+ width: string;
31
+ position: DrawerPosition;
32
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
+ export default _default;
35
+ type __VLS_WithTemplateSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -0,0 +1,11 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ title?: string;
4
+ closeable?: boolean;
5
+ };
6
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
7
+ close: (...args: any[]) => void;
8
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onClose?: ((...args: any[]) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
11
+ export default _default;
@@ -0,0 +1,75 @@
1
+ import { Instance as PopperInstance } from '@popperjs/core';
2
+ interface TooltipOptions {
3
+ container?: boolean;
4
+ delay?: number;
5
+ instance?: PopperInstance | null;
6
+ fixIosSafari?: boolean;
7
+ eventsEnabled?: boolean;
8
+ html?: any;
9
+ modifiers?: any;
10
+ placement?: string;
11
+ placementPostfix?: string | null;
12
+ removeOnDestroy?: boolean;
13
+ title?: string;
14
+ class?: string;
15
+ background?: string;
16
+ triggers?: string[];
17
+ offset?: number;
18
+ onCreate?: (data: any) => void;
19
+ onUpdate?: (data: any) => void;
20
+ }
21
+ export default class Tooltip {
22
+ static _defaults: TooltipOptions;
23
+ private _options;
24
+ private _$el;
25
+ private _$tpl;
26
+ private _$tt;
27
+ private _visible;
28
+ private _disabled;
29
+ private _clearDelay;
30
+ constructor(el: HTMLElement, options?: Partial<TooltipOptions>);
31
+ setupPopper(): void;
32
+ destroy(): void;
33
+ get options(): {
34
+ container?: boolean;
35
+ delay?: number;
36
+ instance?: PopperInstance | null;
37
+ fixIosSafari?: boolean;
38
+ eventsEnabled?: boolean;
39
+ html?: any;
40
+ modifiers?: any;
41
+ placement?: string;
42
+ placementPostfix?: string | null;
43
+ removeOnDestroy?: boolean;
44
+ title?: string;
45
+ class?: string;
46
+ background?: string;
47
+ triggers?: string[];
48
+ offset?: number;
49
+ onCreate?: (data: any) => void;
50
+ onUpdate?: (data: any) => void;
51
+ };
52
+ get tooltip(): PopperInstance;
53
+ get visible(): boolean;
54
+ set visible(val: boolean);
55
+ get disabled(): boolean;
56
+ set disabled(val: boolean);
57
+ show(): void;
58
+ hide(): void;
59
+ toggle(visible?: boolean, autoHide?: boolean): void;
60
+ private _createTooltipElement;
61
+ private _events;
62
+ private _setEvents;
63
+ private _cleanEvents;
64
+ private _onActivate;
65
+ private _onDeactivate;
66
+ private _onToggle;
67
+ private _onMouseOverTooltip;
68
+ private _onMouseOutTooltip;
69
+ content(content: string | HTMLElement): void;
70
+ set class(val: string);
71
+ static filterOptions(options: Partial<TooltipOptions>): Partial<TooltipOptions>;
72
+ static isIosSafari(): boolean;
73
+ static defaults(data: Partial<TooltipOptions>): void;
74
+ }
75
+ export {};
@@ -0,0 +1,12 @@
1
+ import { DirectiveBinding, VNode } from 'vue';
2
+ declare module 'vue' {
3
+ interface HTMLAttributes {
4
+ tooltip?: any;
5
+ }
6
+ }
7
+ export declare const vTooltip: {
8
+ name: string;
9
+ mounted(el: any, binding: DirectiveBinding, vnode: VNode): void;
10
+ updated(el: any, binding: DirectiveBinding, vnode: VNode, oldVnode: VNode): void;
11
+ unmounted(el: any): void;
12
+ };