vue-pane 0.9.0 → 0.11.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.
- package/dist/src/components/PCheckbox.vue.d.ts +25 -11
- package/dist/src/components/PColor.vue.d.ts +28 -11
- package/dist/src/components/PConfig.vue.d.ts +14 -0
- package/dist/src/components/PGraph.vue.d.ts +15 -1
- package/dist/src/components/PHeading.vue.d.ts +17 -0
- package/dist/src/components/PLabel.vue.d.ts +4 -2
- package/dist/src/components/PNumber.vue.d.ts +1 -19
- package/dist/src/components/PPoint2d.vue.d.ts +1 -30
- package/dist/src/components/PSelect.vue.d.ts +37 -11
- package/dist/src/components/PSlider.vue.d.ts +1 -19
- package/dist/src/components/PTab.vue.d.ts +2 -2
- package/dist/src/components/PText.vue.d.ts +25 -11
- package/dist/src/components/VPane.vue.d.ts +1 -1
- package/dist/src/composables/store.d.ts +9 -0
- package/dist/src/composables/useFoldable.d.ts +3 -1
- package/dist/src/composables/usePaneConfig.d.ts +4 -1
- package/dist/src/index.d.ts +3 -1
- package/dist/vue-pane.css +1 -1
- package/dist/vue-pane.js +1053 -988
- package/dist/vue-pane.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/components/PCheckbox.vue +24 -13
- package/src/components/PColor.vue +26 -17
- package/src/components/PConfig.vue +2 -2
- package/src/components/PFolder.vue +1 -1
- package/src/components/PGraph.vue +26 -2
- package/src/components/PHeading.vue +45 -0
- package/src/components/PLabel.vue +1 -0
- package/src/components/PNumber.vue +28 -19
- package/src/components/PPoint2d.vue +36 -25
- package/src/components/PSelect.vue +22 -12
- package/src/components/PSlider.vue +34 -23
- package/src/components/PText.vue +21 -10
- package/src/components/VPane.vue +2 -2
- package/src/composables/pollingComputed.ts +4 -5
- package/src/composables/store.ts +36 -0
- package/src/composables/useFoldable.ts +24 -10
- package/src/composables/usePaneConfig.ts +9 -4
- package/src/composables/usePolling.ts +0 -7
- package/src/index.ts +17 -12
- package/src/styles/view/_checkbox.scss +1 -0
- package/src/styles/view/_label.scss +5 -0
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
import { PollingRef } from '../composables/pollingRef';
|
|
2
|
-
type
|
|
3
|
-
poll
|
|
4
|
-
|
|
5
|
-
tooltip?: string;
|
|
6
|
-
readonly?: boolean;
|
|
2
|
+
type Polling = {
|
|
3
|
+
poll: PollingRef<boolean>;
|
|
4
|
+
modelValue?: never;
|
|
7
5
|
};
|
|
8
|
-
type
|
|
6
|
+
type Model = {
|
|
7
|
+
poll?: never;
|
|
9
8
|
modelValue?: boolean;
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
declare const __VLS_export: import('vue').DefineComponent<({
|
|
11
|
+
label?: string;
|
|
12
|
+
tooltip?: string;
|
|
13
|
+
readonly?: boolean;
|
|
14
|
+
} & Polling) | ({
|
|
15
|
+
label?: string;
|
|
16
|
+
tooltip?: string;
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
} & Model), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (args_0: boolean) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<({
|
|
21
|
+
label?: string;
|
|
22
|
+
tooltip?: string;
|
|
23
|
+
readonly?: boolean;
|
|
24
|
+
} & Polling) | ({
|
|
25
|
+
label?: string;
|
|
26
|
+
tooltip?: string;
|
|
27
|
+
readonly?: boolean;
|
|
28
|
+
} & Model)> & Readonly<{
|
|
29
|
+
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
16
30
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
31
|
declare const _default: typeof __VLS_export;
|
|
18
32
|
export default _default;
|
|
@@ -1,19 +1,36 @@
|
|
|
1
1
|
import { PollingRef } from '../composables/pollingRef';
|
|
2
|
-
type
|
|
3
|
-
poll
|
|
2
|
+
type Polling = {
|
|
3
|
+
poll: PollingRef<string>;
|
|
4
|
+
modelValue?: never;
|
|
5
|
+
};
|
|
6
|
+
type Model = {
|
|
7
|
+
poll?: never;
|
|
8
|
+
modelValue?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import('vue').DefineComponent<({
|
|
4
11
|
label?: string;
|
|
5
12
|
tooltip?: string;
|
|
6
13
|
alpha?: boolean;
|
|
7
14
|
readonly?: boolean;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"update:modelValue": (
|
|
15
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
16
|
-
|
|
15
|
+
} & Polling) | ({
|
|
16
|
+
label?: string;
|
|
17
|
+
tooltip?: string;
|
|
18
|
+
alpha?: boolean;
|
|
19
|
+
readonly?: boolean;
|
|
20
|
+
} & Model), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (args_0: string) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<({
|
|
23
|
+
label?: string;
|
|
24
|
+
tooltip?: string;
|
|
25
|
+
alpha?: boolean;
|
|
26
|
+
readonly?: boolean;
|
|
27
|
+
} & Polling) | ({
|
|
28
|
+
label?: string;
|
|
29
|
+
tooltip?: string;
|
|
30
|
+
alpha?: boolean;
|
|
31
|
+
readonly?: boolean;
|
|
32
|
+
} & Model)> & Readonly<{
|
|
33
|
+
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
17
34
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
35
|
declare const _default: typeof __VLS_export;
|
|
19
36
|
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PaneConfig } from '../composables/usePaneConfig.ts';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import('vue').DefineComponent<Partial<PaneConfig>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<PaneConfig>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -7,7 +7,21 @@ type __VLS_Props = {
|
|
|
7
7
|
tooltip?: string;
|
|
8
8
|
min?: number;
|
|
9
9
|
max?: number;
|
|
10
|
+
decimalPlaces?: number;
|
|
10
11
|
};
|
|
11
|
-
declare
|
|
12
|
+
declare var __VLS_9: {
|
|
13
|
+
lastValue: number;
|
|
14
|
+
lastValueRaw: number;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
'last-value'?: (props: typeof __VLS_9) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: 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>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
21
|
declare const _default: typeof __VLS_export;
|
|
13
22
|
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label: string;
|
|
3
|
+
tooltip?: string;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
'after-label-text'?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: 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 __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -2,9 +2,11 @@ type __VLS_Props = {
|
|
|
2
2
|
label?: string;
|
|
3
3
|
tooltip?: string;
|
|
4
4
|
};
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_8: {}, __VLS_10: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
|
|
7
|
+
'after-label-text'?: (props: typeof __VLS_8) => any;
|
|
8
|
+
} & {
|
|
9
|
+
default?: (props: typeof __VLS_10) => any;
|
|
8
10
|
};
|
|
9
11
|
declare const __VLS_base: 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
12
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
poll?: PollingRef<number>;
|
|
4
|
-
label?: string;
|
|
5
|
-
tooltip?: string;
|
|
6
|
-
min?: number;
|
|
7
|
-
max?: number;
|
|
8
|
-
step?: number;
|
|
9
|
-
readonly?: boolean;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_ModelProps = {
|
|
12
|
-
modelValue?: number;
|
|
13
|
-
};
|
|
14
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
15
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
-
"update:modelValue": (value: number | undefined) => any;
|
|
17
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
-
"onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
|
|
19
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
1
|
+
declare const __VLS_export: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
|
|
20
2
|
declare const _default: typeof __VLS_export;
|
|
21
3
|
export default _default;
|
|
@@ -1,32 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
poll?: PollingRef<{
|
|
4
|
-
x: number;
|
|
5
|
-
y: number;
|
|
6
|
-
}>;
|
|
7
|
-
label?: string;
|
|
8
|
-
tooltip?: string;
|
|
9
|
-
min?: number;
|
|
10
|
-
max?: number;
|
|
11
|
-
readonly?: boolean;
|
|
12
|
-
};
|
|
13
|
-
type __VLS_ModelProps = {
|
|
14
|
-
modelValue?: {
|
|
15
|
-
x: number;
|
|
16
|
-
y: number;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
20
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
-
"update:modelValue": (value: {
|
|
22
|
-
x: number;
|
|
23
|
-
y: number;
|
|
24
|
-
} | undefined) => any;
|
|
25
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
|
-
"onUpdate:modelValue"?: ((value: {
|
|
27
|
-
x: number;
|
|
28
|
-
y: number;
|
|
29
|
-
} | undefined) => any) | undefined;
|
|
30
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
1
|
+
declare const __VLS_export: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
|
|
31
2
|
declare const _default: typeof __VLS_export;
|
|
32
3
|
export default _default;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { PollingRef } from '../composables/pollingRef';
|
|
2
|
-
type
|
|
3
|
-
poll
|
|
2
|
+
type Polling = {
|
|
3
|
+
poll: PollingRef<string | number>;
|
|
4
|
+
modelValue?: never;
|
|
5
|
+
};
|
|
6
|
+
type Model = {
|
|
7
|
+
poll?: never;
|
|
8
|
+
modelValue?: string | number;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import('vue').DefineComponent<({
|
|
4
11
|
label?: string;
|
|
5
12
|
tooltip?: string;
|
|
6
13
|
options: {
|
|
@@ -8,15 +15,34 @@ type __VLS_Props = {
|
|
|
8
15
|
label: string;
|
|
9
16
|
}[];
|
|
10
17
|
readonly?: boolean;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
} & Polling) | ({
|
|
19
|
+
label?: string;
|
|
20
|
+
tooltip?: string;
|
|
21
|
+
options: {
|
|
22
|
+
value: string | number;
|
|
23
|
+
label: string;
|
|
24
|
+
}[];
|
|
25
|
+
readonly?: boolean;
|
|
26
|
+
} & Model), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
"update:modelValue": (args_0: string | number) => any;
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<({
|
|
29
|
+
label?: string;
|
|
30
|
+
tooltip?: string;
|
|
31
|
+
options: {
|
|
32
|
+
value: string | number;
|
|
33
|
+
label: string;
|
|
34
|
+
}[];
|
|
35
|
+
readonly?: boolean;
|
|
36
|
+
} & Polling) | ({
|
|
37
|
+
label?: string;
|
|
38
|
+
tooltip?: string;
|
|
39
|
+
options: {
|
|
40
|
+
value: string | number;
|
|
41
|
+
label: string;
|
|
42
|
+
}[];
|
|
43
|
+
readonly?: boolean;
|
|
44
|
+
} & Model)> & Readonly<{
|
|
45
|
+
"onUpdate:modelValue"?: ((args_0: string | number) => any) | undefined;
|
|
20
46
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
47
|
declare const _default: typeof __VLS_export;
|
|
22
48
|
export default _default;
|
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
poll?: PollingRef<number>;
|
|
4
|
-
label?: string;
|
|
5
|
-
tooltip?: string;
|
|
6
|
-
min?: number;
|
|
7
|
-
max?: number;
|
|
8
|
-
step?: number | null;
|
|
9
|
-
readonly?: boolean;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_ModelProps = {
|
|
12
|
-
modelValue?: number;
|
|
13
|
-
};
|
|
14
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
15
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
-
"update:modelValue": (value: number | undefined) => any;
|
|
17
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
-
"onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
|
|
19
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
1
|
+
declare const __VLS_export: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
|
|
20
2
|
declare const _default: typeof __VLS_export;
|
|
21
3
|
export default _default;
|
|
@@ -6,9 +6,9 @@ type __VLS_ModelProps = {
|
|
|
6
6
|
modelValue?: number;
|
|
7
7
|
};
|
|
8
8
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
|
-
declare var
|
|
9
|
+
declare var __VLS_15: string, __VLS_16: {};
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
|
-
[K in NonNullable<typeof
|
|
11
|
+
[K in NonNullable<typeof __VLS_15>]?: (props: typeof __VLS_16) => any;
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
14
|
"update:modelValue": (value: number) => any;
|
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
import { PollingRef } from '../composables/pollingRef';
|
|
2
|
-
type
|
|
3
|
-
poll
|
|
4
|
-
|
|
5
|
-
tooltip?: string;
|
|
6
|
-
readonly?: boolean;
|
|
2
|
+
type Polling = {
|
|
3
|
+
poll: PollingRef<string>;
|
|
4
|
+
modelValue?: never;
|
|
7
5
|
};
|
|
8
|
-
type
|
|
6
|
+
type Model = {
|
|
7
|
+
poll?: never;
|
|
9
8
|
modelValue?: string;
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
declare const __VLS_export: import('vue').DefineComponent<({
|
|
11
|
+
label?: string;
|
|
12
|
+
tooltip?: string;
|
|
13
|
+
readonly?: boolean;
|
|
14
|
+
} & Polling) | ({
|
|
15
|
+
label?: string;
|
|
16
|
+
tooltip?: string;
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
} & Model), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (args_0: string) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<({
|
|
21
|
+
label?: string;
|
|
22
|
+
tooltip?: string;
|
|
23
|
+
readonly?: boolean;
|
|
24
|
+
} & Polling) | ({
|
|
25
|
+
label?: string;
|
|
26
|
+
tooltip?: string;
|
|
27
|
+
readonly?: boolean;
|
|
28
|
+
} & Model)> & Readonly<{
|
|
29
|
+
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
16
30
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
31
|
declare const _default: typeof __VLS_export;
|
|
18
32
|
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function useStore(storeId: string): {
|
|
2
|
+
get(_path: string, defaultValue: boolean): boolean;
|
|
3
|
+
set(): void;
|
|
4
|
+
all?: undefined;
|
|
5
|
+
} | {
|
|
6
|
+
all: () => Record<string, boolean>;
|
|
7
|
+
get: (path: string, defaultValue: boolean) => boolean;
|
|
8
|
+
set: (path: string, val: boolean) => void;
|
|
9
|
+
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { InjectionKey, Ref } from 'vue';
|
|
2
|
-
export declare function useFoldable(containerRef: Ref<HTMLElement | null>, expandedRef: Ref<boolean>, storageKey
|
|
2
|
+
export declare function useFoldable(containerRef: Ref<HTMLElement | null>, expandedRef: Ref<boolean>, storageKey: string, expandedClass?: string): {
|
|
3
3
|
isExpanded: Ref<boolean>;
|
|
4
4
|
toggle: () => void;
|
|
5
5
|
};
|
|
6
6
|
export declare const EXPANDED_KEY: InjectionKey<Ref<boolean>>;
|
|
7
7
|
export declare function getPaneExpanded(): Ref<boolean>;
|
|
8
8
|
export declare function cascadeExpanded(isExpanded: Ref<boolean>): void;
|
|
9
|
+
export declare const PATH_KEY: InjectionKey<string>;
|
|
10
|
+
export declare function cascadePath(id: string): string;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { Component, InjectionKey } from 'vue';
|
|
2
2
|
export interface PaneConfig {
|
|
3
3
|
readonly tooltipIcon?: Component | null;
|
|
4
|
-
readonly expandedDefault
|
|
4
|
+
readonly expandedDefault: boolean;
|
|
5
|
+
readonly storageEnabled: boolean;
|
|
6
|
+
readonly storageKey: string;
|
|
5
7
|
}
|
|
8
|
+
export declare const CONFIG_DEFAULTS: PaneConfig;
|
|
6
9
|
export declare const PANE_CONFIG_KEY: InjectionKey<PaneConfig>;
|
|
7
10
|
export declare function usePaneConfig(): PaneConfig;
|
|
8
11
|
export declare function providePaneConfig(config?: Partial<PaneConfig> | null): void;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { default as PButton } from './components/PButton.vue';
|
|
2
2
|
import { default as PCheckbox } from './components/PCheckbox.vue';
|
|
3
3
|
import { default as PColor } from './components/PColor.vue';
|
|
4
|
+
import { default as PConfig } from './components/PConfig.vue';
|
|
4
5
|
import { default as PFolder } from './components/PFolder.vue';
|
|
5
6
|
import { default as PGraph } from './components/PGraph.vue';
|
|
7
|
+
import { default as PHeading } from './components/PHeading.vue';
|
|
6
8
|
import { default as PLabel } from './components/PLabel.vue';
|
|
7
9
|
import { default as PMonitor } from './components/PMonitor.vue';
|
|
8
10
|
import { default as PMonitorMultiline } from './components/PMonitorMultiline.vue';
|
|
@@ -19,4 +21,4 @@ import { isPollingRef, pollingRef } from './composables/pollingRef.ts';
|
|
|
19
21
|
import { usePolling, usePollingOrModel } from './composables/usePolling.ts';
|
|
20
22
|
export type { PaneConfig } from './composables/usePaneConfig';
|
|
21
23
|
export { usePaneConfig } from './composables/usePaneConfig';
|
|
22
|
-
export {
|
|
24
|
+
export { PButton, PCheckbox, PColor, PConfig, PFolder, PGraph, PHeading, PLabel, PMonitor, PMonitorMultiline, PNumber, PPoint2d, PSelect, PSeparator, PSlider, PTab, PText, VPane, isPollingRef, pollingComputed, pollingRef, usePolling, usePollingOrModel, };
|