sky-ui-kit 0.0.0-stage → 0.1.1

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,28 @@
1
+ export type AppSelectValue = string | number | boolean | Record<string, unknown> | AppSelectValue[] | null | undefined;
2
+ export type AppSelectOption = {
3
+ label: string;
4
+ value: AppSelectValue;
5
+ disabled?: boolean;
6
+ } | string | number;
7
+ type __VLS_Props = {
8
+ modelValue?: AppSelectValue;
9
+ options?: AppSelectOption[];
10
+ emptyLabel?: string;
11
+ popperClass?: string;
12
+ teleported?: boolean;
13
+ };
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ change: (value: AppSelectValue) => any;
16
+ "update:modelValue": (value: AppSelectValue) => any;
17
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onChange?: ((value: AppSelectValue) => any) | undefined;
19
+ "onUpdate:modelValue"?: ((value: AppSelectValue) => any) | undefined;
20
+ }>, {
21
+ popperClass: string;
22
+ teleported: boolean;
23
+ modelValue: string | number | boolean | Record<string, unknown> | AppSelectValue[] | null;
24
+ options: AppSelectOption[];
25
+ emptyLabel: string;
26
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
@@ -0,0 +1,11 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ subtitle?: string;
4
+ rightOpen?: boolean;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
+ subtitle: string;
8
+ rightOpen: boolean;
9
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ open?: boolean;
3
+ openTitle?: string;
4
+ closeTitle?: string;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ toggle: () => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onToggle?: (() => any) | undefined;
10
+ }>, {
11
+ open: boolean;
12
+ openTitle: string;
13
+ closeTitle: string;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,30 @@
1
+ import type { Component } from 'vue';
2
+ export interface MapMenuItem {
3
+ key: string;
4
+ label: string;
5
+ icon?: Component;
6
+ }
7
+ type __VLS_Props = {
8
+ title?: string;
9
+ active?: string;
10
+ dark?: boolean;
11
+ compact?: boolean;
12
+ items?: MapMenuItem[];
13
+ };
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ select: (item: MapMenuItem) => any;
16
+ "update:active": (key: string) => any;
17
+ "update:compact": (value: boolean) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ onSelect?: ((item: MapMenuItem) => any) | undefined;
20
+ "onUpdate:active"?: ((key: string) => any) | undefined;
21
+ "onUpdate:compact"?: ((value: boolean) => any) | undefined;
22
+ }>, {
23
+ title: string;
24
+ dark: boolean;
25
+ active: string;
26
+ items: MapMenuItem[];
27
+ compact: boolean;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
@@ -0,0 +1,87 @@
1
+ type IntervalUnit = 'minute' | 'hour' | 'day' | 'month' | 'year';
2
+ type TimelineKind = 'observed' | 'forecast';
3
+ type TimelineTimeInput = string | number | Date;
4
+ export interface TimelinePoint {
5
+ index: number;
6
+ offset: number;
7
+ time: Date;
8
+ value: string;
9
+ label: string;
10
+ kind: TimelineKind;
11
+ disabled?: boolean;
12
+ }
13
+ type __VLS_Props = {
14
+ modelValue?: number;
15
+ startTime?: TimelineTimeInput;
16
+ points?: TimelinePoint[];
17
+ steps?: number;
18
+ pastSteps?: number;
19
+ futureSteps?: number;
20
+ interval?: number;
21
+ unit?: IntervalUnit;
22
+ playing?: boolean;
23
+ speed?: number;
24
+ speeds?: number[];
25
+ internalPlayback?: boolean;
26
+ pageSize?: number;
27
+ loop?: boolean;
28
+ minTime?: TimelineTimeInput;
29
+ maxTime?: TimelineTimeInput;
30
+ forecastCount?: number;
31
+ showScale?: boolean;
32
+ showCurrentMarker?: boolean;
33
+ timeZone?: string;
34
+ };
35
+ declare function setStartTime(value: TimelineTimeInput): void;
36
+ declare function handleJumpChange(value: Date | string | number | null): void;
37
+ declare var __VLS_50: {
38
+ startTime: Date;
39
+ activePoint: TimelinePoint;
40
+ activeIndex: number;
41
+ value: Date | null;
42
+ setStartTime: typeof setStartTime;
43
+ jumpToTime: typeof handleJumpChange;
44
+ };
45
+ type __VLS_Slots = {} & {
46
+ 'date-select'?: (props: typeof __VLS_50) => any;
47
+ };
48
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
49
+ change: (point: TimelinePoint) => any;
50
+ pause: () => any;
51
+ play: () => any;
52
+ "update:modelValue": (value: number) => any;
53
+ "update:startTime": (value: TimelineTimeInput) => any;
54
+ "update:playing": (value: boolean) => any;
55
+ "update:speed": (value: number) => any;
56
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
57
+ onChange?: ((point: TimelinePoint) => any) | undefined;
58
+ onPause?: (() => any) | undefined;
59
+ onPlay?: (() => any) | undefined;
60
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
61
+ "onUpdate:startTime"?: ((value: TimelineTimeInput) => any) | undefined;
62
+ "onUpdate:playing"?: ((value: boolean) => any) | undefined;
63
+ "onUpdate:speed"?: ((value: number) => any) | undefined;
64
+ }>, {
65
+ playing: boolean;
66
+ interval: number;
67
+ loop: boolean;
68
+ modelValue: number;
69
+ pageSize: number;
70
+ startTime: TimelineTimeInput;
71
+ points: TimelinePoint[];
72
+ steps: number;
73
+ unit: IntervalUnit;
74
+ speed: number;
75
+ speeds: number[];
76
+ internalPlayback: boolean;
77
+ showScale: boolean;
78
+ showCurrentMarker: boolean;
79
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
80
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
81
+ declare const _default: typeof __VLS_export;
82
+ export default _default;
83
+ type __VLS_WithSlots<T, S> = T & {
84
+ new (): {
85
+ $slots: S;
86
+ };
87
+ };
@@ -0,0 +1,21 @@
1
+ import { type Component } from 'vue';
2
+ type __VLS_Props = {
3
+ active?: string;
4
+ horizontal?: boolean;
5
+ icons?: Record<string, Component>;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ "update:active": (key: string) => any;
9
+ "tool-click": (key: string) => any;
10
+ "context-change": (enabled: boolean) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ "onUpdate:active"?: ((key: string) => any) | undefined;
13
+ "onTool-click"?: ((key: string) => any) | undefined;
14
+ "onContext-change"?: ((enabled: boolean) => any) | undefined;
15
+ }>, {
16
+ horizontal: boolean;
17
+ icons: Record<string, Component>;
18
+ active: string;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1,11 @@
1
+ type __VLS_Props = {
2
+ times: string[];
3
+ series: {
4
+ name: string;
5
+ data: (number | null)[];
6
+ }[];
7
+ loading?: boolean;
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import { type Component } from 'vue';
2
+ export interface ProjectMenuItem {
3
+ key: string;
4
+ label: string;
5
+ disabled?: boolean;
6
+ icon?: Component;
7
+ }
8
+ export interface ProjectMenuGroup {
9
+ label: string;
10
+ items: ProjectMenuItem[];
11
+ }
12
+ type __VLS_Props = {
13
+ direction?: 'horizontal' | 'vertical';
14
+ active?: string;
15
+ items?: ProjectMenuItem[];
16
+ groups?: ProjectMenuGroup[];
17
+ };
18
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ select: (item: ProjectMenuItem) => any;
20
+ "update:active": (key: string) => any;
21
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ onSelect?: ((item: ProjectMenuItem) => any) | undefined;
23
+ "onUpdate:active"?: ((key: string) => any) | undefined;
24
+ }>, {
25
+ direction: "horizontal" | "vertical";
26
+ active: string;
27
+ items: ProjectMenuItem[];
28
+ groups: ProjectMenuGroup[];
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
@@ -0,0 +1,22 @@
1
+ export type TimeRangeQuickOption = {
2
+ key: string;
3
+ label: string;
4
+ amount?: number;
5
+ unit?: 'hour' | 'day';
6
+ };
7
+ type __VLS_Props = {
8
+ modelValue: string;
9
+ options: TimeRangeQuickOption[];
10
+ ariaLabel?: string;
11
+ };
12
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ change: (option: TimeRangeQuickOption) => any;
14
+ "update:modelValue": (value: string) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onChange?: ((option: TimeRangeQuickOption) => any) | undefined;
17
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
18
+ }>, {
19
+ ariaLabel: string;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
@@ -0,0 +1,57 @@
1
+ export interface TreeSelectNode {
2
+ id: string | number;
3
+ label: string;
4
+ tag?: string;
5
+ disabled?: boolean;
6
+ children?: TreeSelectNode[];
7
+ [key: string]: unknown;
8
+ }
9
+ export interface TreeSelectCategory {
10
+ type: string;
11
+ label: string;
12
+ children: TreeSelectNode[];
13
+ }
14
+ type __VLS_Props = {
15
+ modelValue?: string | number | null;
16
+ categories?: TreeSelectCategory[];
17
+ placeholder?: string;
18
+ searchPlaceholder?: string;
19
+ emptyText?: string;
20
+ fallbackTypeLabel?: string;
21
+ popoverWidth?: string | number;
22
+ defaultActiveType?: string;
23
+ defaultExpandAll?: boolean;
24
+ closeOnSelect?: boolean;
25
+ closeOnMouseLeave?: boolean;
26
+ dark?: boolean;
27
+ };
28
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
+ select: (node: TreeSelectNode, category: TreeSelectCategory) => any;
30
+ change: (payload: {
31
+ node: TreeSelectNode;
32
+ category: TreeSelectCategory;
33
+ }) => any;
34
+ "update:modelValue": (value: string | number | null) => any;
35
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
36
+ onSelect?: ((node: TreeSelectNode, category: TreeSelectCategory) => any) | undefined;
37
+ onChange?: ((payload: {
38
+ node: TreeSelectNode;
39
+ category: TreeSelectCategory;
40
+ }) => any) | undefined;
41
+ "onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
42
+ }>, {
43
+ dark: boolean;
44
+ placeholder: string;
45
+ modelValue: string | number | null;
46
+ emptyText: string;
47
+ defaultExpandAll: boolean;
48
+ categories: TreeSelectCategory[];
49
+ searchPlaceholder: string;
50
+ fallbackTypeLabel: string;
51
+ popoverWidth: string | number;
52
+ defaultActiveType: string;
53
+ closeOnSelect: boolean;
54
+ closeOnMouseLeave: boolean;
55
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
56
+ declare const _default: typeof __VLS_export;
57
+ export default _default;