@pequity/squirrel 8.0.1 → 8.1.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/cjs/chunks/p-action-bar.js +6 -9
- package/dist/cjs/chunks/p-steps.js +52 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/p-steps.js +3 -0
- package/dist/cjs/usePLoading.js +7 -1
- package/dist/es/chunks/p-action-bar.js +6 -9
- package/dist/es/chunks/p-steps.js +53 -0
- package/dist/es/index.js +8 -6
- package/dist/es/p-steps.js +4 -0
- package/dist/es/usePLoading.js +7 -1
- package/dist/squirrel/components/index.d.ts +2 -1
- package/dist/squirrel/components/p-alert/p-alert.vue.d.ts +3 -2
- package/dist/squirrel/components/p-btn/p-btn.vue.d.ts +1 -1
- package/dist/squirrel/components/p-card/p-card.vue.d.ts +2 -19
- package/dist/squirrel/components/p-checkbox/p-checkbox.vue.d.ts +2 -37
- package/dist/squirrel/components/p-drawer/p-drawer.vue.d.ts +3 -2
- package/dist/squirrel/components/p-info-icon/p-info-icon.vue.d.ts +2 -9
- package/dist/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue.d.ts +3 -33
- package/dist/squirrel/components/p-input/p-input.vue.d.ts +6 -4
- package/dist/squirrel/components/p-input-number/p-input-number.vue.d.ts +3 -107
- package/dist/squirrel/components/p-link/p-link.vue.d.ts +3 -11
- package/dist/squirrel/components/p-loading/usePLoading.d.ts +1 -0
- package/dist/squirrel/components/p-modal/p-modal.vue.d.ts +2 -227
- package/dist/squirrel/components/p-pagination-info/p-pagination-info.vue.d.ts +2 -74
- package/dist/squirrel/components/p-select/p-select.vue.d.ts +3 -110
- package/dist/squirrel/components/p-select-btn/p-select-btn.vue.d.ts +2 -29
- package/dist/squirrel/components/p-steps/p-steps.vue.d.ts +17 -0
- package/dist/squirrel/components/p-table/p-table.vue.d.ts +10 -5
- package/dist/squirrel/components/p-table-header-cell/p-table-header-cell.vue.d.ts +1 -1
- package/dist/squirrel/components/p-table-td/p-table-td.vue.d.ts +2 -19
- package/dist/squirrel/components/p-textarea/p-textarea.vue.d.ts +3 -72
- package/dist/squirrel/components/p-toggle/p-toggle.vue.d.ts +2 -2
- package/package.json +14 -14
- package/squirrel/components/index.ts +2 -0
- package/squirrel/components/p-action-bar/p-action-bar.spec.ts +17 -11
- package/squirrel/components/p-action-bar/p-action-bar.vue +6 -6
- package/squirrel/components/p-loading/p-loading.spec.js +35 -2
- package/squirrel/components/p-loading/usePLoading.ts +10 -1
- package/squirrel/components/p-steps/__snapshots__/p-steps.spec.js.snap +16 -0
- package/squirrel/components/p-steps/p-steps.spec.js +126 -0
- package/squirrel/components/p-steps/p-steps.stories.js +31 -0
- package/squirrel/components/p-steps/p-steps.vue +47 -0
|
@@ -1,118 +1,14 @@
|
|
|
1
1
|
import { type Size } from '../p-btn/p-btn.types';
|
|
2
|
-
import
|
|
3
|
-
import { type PropType, type StyleValue } from 'vue';
|
|
4
|
-
declare const prefixClasses: Record<Size, string>;
|
|
5
|
-
declare const labelClasses: import("vue").ComputedRef<string>, inputClasses: import("vue").ComputedRef<string>, errorMsgClasses: import("vue").ComputedRef<string>;
|
|
6
|
-
declare const inputRef: import("vue").Ref<any, any>;
|
|
7
|
-
declare const computedAttrs: import("vue").ComputedRef<{
|
|
8
|
-
[x: string]: unknown;
|
|
9
|
-
}>;
|
|
10
|
-
declare const style: import("vue").ComputedRef<StyleValue>;
|
|
11
|
-
declare const focus: () => void;
|
|
12
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
2
|
+
import { type PropType } from 'vue';
|
|
13
3
|
declare var __VLS_1: {
|
|
14
4
|
label: string;
|
|
15
5
|
labelClasses: string;
|
|
16
6
|
}, __VLS_6: {};
|
|
17
|
-
type __VLS_Slots =
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
18
8
|
label?: (props: typeof __VLS_1) => any;
|
|
19
9
|
} & {
|
|
20
10
|
prefix?: (props: typeof __VLS_6) => any;
|
|
21
|
-
}
|
|
22
|
-
declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
23
|
-
modelValue: {
|
|
24
|
-
type: PropType<number | string | null | undefined>;
|
|
25
|
-
default: null;
|
|
26
|
-
};
|
|
27
|
-
label: {
|
|
28
|
-
type: StringConstructor;
|
|
29
|
-
default: string;
|
|
30
|
-
};
|
|
31
|
-
errorMsg: {
|
|
32
|
-
type: StringConstructor;
|
|
33
|
-
default: string;
|
|
34
|
-
};
|
|
35
|
-
required: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
size: {
|
|
40
|
-
type: PropType<Size>;
|
|
41
|
-
default: string;
|
|
42
|
-
validator(value: Size): boolean;
|
|
43
|
-
};
|
|
44
|
-
selectOnClick: {
|
|
45
|
-
type: BooleanConstructor;
|
|
46
|
-
default: boolean;
|
|
47
|
-
};
|
|
48
|
-
tooltipText: {
|
|
49
|
-
type: StringConstructor;
|
|
50
|
-
default: string;
|
|
51
|
-
};
|
|
52
|
-
prefixString: {
|
|
53
|
-
type: StringConstructor;
|
|
54
|
-
default: string;
|
|
55
|
-
};
|
|
56
|
-
}>, {
|
|
57
|
-
PInfoIcon: typeof PInfoIcon;
|
|
58
|
-
prefixClasses: typeof prefixClasses;
|
|
59
|
-
labelClasses: typeof labelClasses;
|
|
60
|
-
inputClasses: typeof inputClasses;
|
|
61
|
-
errorMsgClasses: typeof errorMsgClasses;
|
|
62
|
-
inputRef: typeof inputRef;
|
|
63
|
-
computedAttrs: typeof computedAttrs;
|
|
64
|
-
style: typeof style;
|
|
65
|
-
focus: typeof focus;
|
|
66
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
67
|
-
change: (...args: any[]) => void;
|
|
68
|
-
"update:modelValue": (...args: any[]) => void;
|
|
69
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
70
|
-
modelValue: {
|
|
71
|
-
type: PropType<number | string | null | undefined>;
|
|
72
|
-
default: null;
|
|
73
|
-
};
|
|
74
|
-
label: {
|
|
75
|
-
type: StringConstructor;
|
|
76
|
-
default: string;
|
|
77
|
-
};
|
|
78
|
-
errorMsg: {
|
|
79
|
-
type: StringConstructor;
|
|
80
|
-
default: string;
|
|
81
|
-
};
|
|
82
|
-
required: {
|
|
83
|
-
type: BooleanConstructor;
|
|
84
|
-
default: boolean;
|
|
85
|
-
};
|
|
86
|
-
size: {
|
|
87
|
-
type: PropType<Size>;
|
|
88
|
-
default: string;
|
|
89
|
-
validator(value: Size): boolean;
|
|
90
|
-
};
|
|
91
|
-
selectOnClick: {
|
|
92
|
-
type: BooleanConstructor;
|
|
93
|
-
default: boolean;
|
|
94
|
-
};
|
|
95
|
-
tooltipText: {
|
|
96
|
-
type: StringConstructor;
|
|
97
|
-
default: string;
|
|
98
|
-
};
|
|
99
|
-
prefixString: {
|
|
100
|
-
type: StringConstructor;
|
|
101
|
-
default: string;
|
|
102
|
-
};
|
|
103
|
-
}>> & Readonly<{
|
|
104
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
105
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
106
|
-
}>, {
|
|
107
|
-
size: "sm" | "md" | "lg";
|
|
108
|
-
label: string;
|
|
109
|
-
required: boolean;
|
|
110
|
-
modelValue: string | number | null | undefined;
|
|
111
|
-
errorMsg: string;
|
|
112
|
-
selectOnClick: boolean;
|
|
113
|
-
tooltipText: string;
|
|
114
|
-
prefixString: string;
|
|
115
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
};
|
|
116
12
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
117
13
|
modelValue: {
|
|
118
14
|
type: PropType<number | string | null | undefined>;
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { sanitizeUrl } from '../../utils/sanitization';
|
|
3
|
-
import { RouterLink, type RouterLinkProps } from 'vue-router';
|
|
4
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
1
|
+
import { type RouterLinkProps } from 'vue-router';
|
|
5
2
|
declare var __VLS_1: {}, __VLS_8: {};
|
|
6
|
-
type __VLS_Slots =
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
7
4
|
default?: (props: typeof __VLS_1) => any;
|
|
8
5
|
} & {
|
|
9
6
|
default?: (props: typeof __VLS_8) => any;
|
|
10
|
-
}
|
|
11
|
-
declare const __VLS_self: import("vue").DefineComponent<RouterLinkProps, {
|
|
12
|
-
isExternalLink: typeof isExternalLink;
|
|
13
|
-
sanitizeUrl: typeof sanitizeUrl;
|
|
14
|
-
RouterLink: typeof RouterLink;
|
|
15
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouterLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
};
|
|
16
8
|
declare const __VLS_component: import("vue").DefineComponent<RouterLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouterLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
9
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
10
|
export default _default;
|
|
@@ -17,6 +17,7 @@ type UsePLoading = {
|
|
|
17
17
|
props: Ref;
|
|
18
18
|
loadingShow: (loadingItem: LoadingItemOption) => void;
|
|
19
19
|
loadingHide: (id?: LoadingItemOption['id']) => void;
|
|
20
|
+
isLoading: (id?: LoadingItemOption['id']) => boolean;
|
|
20
21
|
};
|
|
21
22
|
export declare const usePLoading: (options?: Options) => UsePLoading;
|
|
22
23
|
export {};
|
|
@@ -1,23 +1,6 @@
|
|
|
1
|
-
import PAlert from '../p-alert/p-alert.vue';
|
|
2
|
-
import PCloseBtn from '../p-close-btn/p-close-btn.vue';
|
|
3
1
|
import { type PropType, type StyleValue } from 'vue';
|
|
4
|
-
declare const zIndex: import("vue").Ref<number, number>;
|
|
5
|
-
declare const id: import("vue").Ref<string, string>;
|
|
6
|
-
declare const show: import("vue").Ref<boolean, boolean>;
|
|
7
|
-
declare const mount: import("vue").Ref<boolean, boolean>;
|
|
8
|
-
declare const pmWrapper: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
9
|
-
declare const close: () => void;
|
|
10
|
-
declare const clickOutside: (e: MouseEvent) => void;
|
|
11
|
-
declare const keydown: (e: KeyboardEvent) => void;
|
|
12
|
-
declare const beforeOpen: () => void;
|
|
13
|
-
declare const opening: () => void;
|
|
14
|
-
declare const afterOpen: () => void;
|
|
15
|
-
declare const beforeClose: () => void;
|
|
16
|
-
declare const closing: () => void;
|
|
17
|
-
declare const afterClose: () => void;
|
|
18
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
19
2
|
declare var __VLS_22: {}, __VLS_34: {}, __VLS_36: {}, __VLS_38: {}, __VLS_40: {};
|
|
20
|
-
type __VLS_Slots =
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
21
4
|
'title-wrapper'?: (props: typeof __VLS_22) => any;
|
|
22
5
|
} & {
|
|
23
6
|
'content-wrapper'?: (props: typeof __VLS_34) => any;
|
|
@@ -27,215 +10,7 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
|
|
|
27
10
|
'footer-wrapper'?: (props: typeof __VLS_38) => any;
|
|
28
11
|
} & {
|
|
29
12
|
footer?: (props: typeof __VLS_40) => any;
|
|
30
|
-
}
|
|
31
|
-
declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
32
|
-
name: {
|
|
33
|
-
type: StringConstructor;
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
title: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
baseZindex: {
|
|
41
|
-
type: NumberConstructor;
|
|
42
|
-
default: number;
|
|
43
|
-
};
|
|
44
|
-
bgClass: {
|
|
45
|
-
type: PropType<StyleValue>;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
wrapperClass: {
|
|
49
|
-
type: PropType<StyleValue>;
|
|
50
|
-
default: string;
|
|
51
|
-
};
|
|
52
|
-
modalClass: {
|
|
53
|
-
type: PropType<StyleValue>;
|
|
54
|
-
default: string;
|
|
55
|
-
};
|
|
56
|
-
modalStyle: {
|
|
57
|
-
type: PropType<StyleValue>;
|
|
58
|
-
default: string;
|
|
59
|
-
};
|
|
60
|
-
inClass: {
|
|
61
|
-
type: StringConstructor;
|
|
62
|
-
default: string;
|
|
63
|
-
};
|
|
64
|
-
outClass: {
|
|
65
|
-
type: StringConstructor;
|
|
66
|
-
default: string;
|
|
67
|
-
};
|
|
68
|
-
bgInClass: {
|
|
69
|
-
type: StringConstructor;
|
|
70
|
-
default: string;
|
|
71
|
-
};
|
|
72
|
-
bgOutClass: {
|
|
73
|
-
type: StringConstructor;
|
|
74
|
-
default: string;
|
|
75
|
-
};
|
|
76
|
-
appendTo: {
|
|
77
|
-
type: StringConstructor;
|
|
78
|
-
default: string;
|
|
79
|
-
};
|
|
80
|
-
live: {
|
|
81
|
-
type: BooleanConstructor;
|
|
82
|
-
default: boolean;
|
|
83
|
-
};
|
|
84
|
-
enableClose: {
|
|
85
|
-
type: BooleanConstructor;
|
|
86
|
-
default: boolean;
|
|
87
|
-
};
|
|
88
|
-
modelValue: {
|
|
89
|
-
type: BooleanConstructor;
|
|
90
|
-
default: boolean;
|
|
91
|
-
};
|
|
92
|
-
closeLabel: {
|
|
93
|
-
type: StringConstructor;
|
|
94
|
-
default: string;
|
|
95
|
-
};
|
|
96
|
-
disabled: {
|
|
97
|
-
type: BooleanConstructor;
|
|
98
|
-
default: boolean;
|
|
99
|
-
};
|
|
100
|
-
errorMsg: {
|
|
101
|
-
type: StringConstructor;
|
|
102
|
-
default: string;
|
|
103
|
-
};
|
|
104
|
-
maxWidth: {
|
|
105
|
-
type: StringConstructor;
|
|
106
|
-
default: string;
|
|
107
|
-
};
|
|
108
|
-
}>, {
|
|
109
|
-
PAlert: typeof PAlert;
|
|
110
|
-
PCloseBtn: typeof PCloseBtn;
|
|
111
|
-
zIndex: typeof zIndex;
|
|
112
|
-
id: typeof id;
|
|
113
|
-
show: typeof show;
|
|
114
|
-
mount: typeof mount;
|
|
115
|
-
pmWrapper: typeof pmWrapper;
|
|
116
|
-
close: typeof close;
|
|
117
|
-
clickOutside: typeof clickOutside;
|
|
118
|
-
keydown: typeof keydown;
|
|
119
|
-
beforeOpen: typeof beforeOpen;
|
|
120
|
-
opening: typeof opening;
|
|
121
|
-
afterOpen: typeof afterOpen;
|
|
122
|
-
beforeClose: typeof beforeClose;
|
|
123
|
-
closing: typeof closing;
|
|
124
|
-
afterClose: typeof afterClose;
|
|
125
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
126
|
-
"update:modelValue": (...args: any[]) => void;
|
|
127
|
-
closed: (...args: any[]) => void;
|
|
128
|
-
"before-open": (...args: any[]) => void;
|
|
129
|
-
opening: (...args: any[]) => void;
|
|
130
|
-
opened: (...args: any[]) => void;
|
|
131
|
-
"before-close": (...args: any[]) => void;
|
|
132
|
-
closing: (...args: any[]) => void;
|
|
133
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
134
|
-
name: {
|
|
135
|
-
type: StringConstructor;
|
|
136
|
-
default: string;
|
|
137
|
-
};
|
|
138
|
-
title: {
|
|
139
|
-
type: StringConstructor;
|
|
140
|
-
default: string;
|
|
141
|
-
};
|
|
142
|
-
baseZindex: {
|
|
143
|
-
type: NumberConstructor;
|
|
144
|
-
default: number;
|
|
145
|
-
};
|
|
146
|
-
bgClass: {
|
|
147
|
-
type: PropType<StyleValue>;
|
|
148
|
-
default: string;
|
|
149
|
-
};
|
|
150
|
-
wrapperClass: {
|
|
151
|
-
type: PropType<StyleValue>;
|
|
152
|
-
default: string;
|
|
153
|
-
};
|
|
154
|
-
modalClass: {
|
|
155
|
-
type: PropType<StyleValue>;
|
|
156
|
-
default: string;
|
|
157
|
-
};
|
|
158
|
-
modalStyle: {
|
|
159
|
-
type: PropType<StyleValue>;
|
|
160
|
-
default: string;
|
|
161
|
-
};
|
|
162
|
-
inClass: {
|
|
163
|
-
type: StringConstructor;
|
|
164
|
-
default: string;
|
|
165
|
-
};
|
|
166
|
-
outClass: {
|
|
167
|
-
type: StringConstructor;
|
|
168
|
-
default: string;
|
|
169
|
-
};
|
|
170
|
-
bgInClass: {
|
|
171
|
-
type: StringConstructor;
|
|
172
|
-
default: string;
|
|
173
|
-
};
|
|
174
|
-
bgOutClass: {
|
|
175
|
-
type: StringConstructor;
|
|
176
|
-
default: string;
|
|
177
|
-
};
|
|
178
|
-
appendTo: {
|
|
179
|
-
type: StringConstructor;
|
|
180
|
-
default: string;
|
|
181
|
-
};
|
|
182
|
-
live: {
|
|
183
|
-
type: BooleanConstructor;
|
|
184
|
-
default: boolean;
|
|
185
|
-
};
|
|
186
|
-
enableClose: {
|
|
187
|
-
type: BooleanConstructor;
|
|
188
|
-
default: boolean;
|
|
189
|
-
};
|
|
190
|
-
modelValue: {
|
|
191
|
-
type: BooleanConstructor;
|
|
192
|
-
default: boolean;
|
|
193
|
-
};
|
|
194
|
-
closeLabel: {
|
|
195
|
-
type: StringConstructor;
|
|
196
|
-
default: string;
|
|
197
|
-
};
|
|
198
|
-
disabled: {
|
|
199
|
-
type: BooleanConstructor;
|
|
200
|
-
default: boolean;
|
|
201
|
-
};
|
|
202
|
-
errorMsg: {
|
|
203
|
-
type: StringConstructor;
|
|
204
|
-
default: string;
|
|
205
|
-
};
|
|
206
|
-
maxWidth: {
|
|
207
|
-
type: StringConstructor;
|
|
208
|
-
default: string;
|
|
209
|
-
};
|
|
210
|
-
}>> & Readonly<{
|
|
211
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
212
|
-
onClosed?: ((...args: any[]) => any) | undefined;
|
|
213
|
-
"onBefore-open"?: ((...args: any[]) => any) | undefined;
|
|
214
|
-
onOpening?: ((...args: any[]) => any) | undefined;
|
|
215
|
-
onOpened?: ((...args: any[]) => any) | undefined;
|
|
216
|
-
"onBefore-close"?: ((...args: any[]) => any) | undefined;
|
|
217
|
-
onClosing?: ((...args: any[]) => any) | undefined;
|
|
218
|
-
}>, {
|
|
219
|
-
name: string;
|
|
220
|
-
title: string;
|
|
221
|
-
disabled: boolean;
|
|
222
|
-
modelValue: boolean;
|
|
223
|
-
errorMsg: string;
|
|
224
|
-
appendTo: string;
|
|
225
|
-
inClass: string;
|
|
226
|
-
outClass: string;
|
|
227
|
-
live: boolean;
|
|
228
|
-
closeLabel: string;
|
|
229
|
-
enableClose: boolean;
|
|
230
|
-
baseZindex: number;
|
|
231
|
-
bgClass: StyleValue;
|
|
232
|
-
wrapperClass: StyleValue;
|
|
233
|
-
modalClass: StyleValue;
|
|
234
|
-
modalStyle: StyleValue;
|
|
235
|
-
bgInClass: string;
|
|
236
|
-
bgOutClass: string;
|
|
237
|
-
maxWidth: string;
|
|
238
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
};
|
|
239
14
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
240
15
|
name: {
|
|
241
16
|
type: StringConstructor;
|
|
@@ -1,79 +1,7 @@
|
|
|
1
|
-
import PSkeletonLoader from '../p-skeleton-loader/p-skeleton-loader.vue';
|
|
2
|
-
declare const from: import("vue").ComputedRef<number>;
|
|
3
|
-
declare const to: import("vue").ComputedRef<number>;
|
|
4
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
5
1
|
declare var __VLS_5: {};
|
|
6
|
-
type __VLS_Slots =
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
7
3
|
'no-results'?: (props: typeof __VLS_5) => any;
|
|
8
|
-
}
|
|
9
|
-
declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
-
/**
|
|
11
|
-
* The current page.
|
|
12
|
-
*/
|
|
13
|
-
currentPage: {
|
|
14
|
-
type: NumberConstructor;
|
|
15
|
-
default: number;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* The amount of data pagination iterates through.
|
|
19
|
-
*/
|
|
20
|
-
count: {
|
|
21
|
-
type: NumberConstructor;
|
|
22
|
-
default: number;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* The amount of data to be displayed at 1 page. Used to calculate the `from` and `to` limits.
|
|
26
|
-
*/
|
|
27
|
-
pageSize: {
|
|
28
|
-
type: NumberConstructor;
|
|
29
|
-
default: number;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Whether the pagination is loading.
|
|
33
|
-
*/
|
|
34
|
-
loading: {
|
|
35
|
-
type: BooleanConstructor;
|
|
36
|
-
default: boolean;
|
|
37
|
-
};
|
|
38
|
-
}>, {
|
|
39
|
-
PSkeletonLoader: typeof PSkeletonLoader;
|
|
40
|
-
from: typeof from;
|
|
41
|
-
to: typeof to;
|
|
42
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
-
/**
|
|
44
|
-
* The current page.
|
|
45
|
-
*/
|
|
46
|
-
currentPage: {
|
|
47
|
-
type: NumberConstructor;
|
|
48
|
-
default: number;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* The amount of data pagination iterates through.
|
|
52
|
-
*/
|
|
53
|
-
count: {
|
|
54
|
-
type: NumberConstructor;
|
|
55
|
-
default: number;
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* The amount of data to be displayed at 1 page. Used to calculate the `from` and `to` limits.
|
|
59
|
-
*/
|
|
60
|
-
pageSize: {
|
|
61
|
-
type: NumberConstructor;
|
|
62
|
-
default: number;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Whether the pagination is loading.
|
|
66
|
-
*/
|
|
67
|
-
loading: {
|
|
68
|
-
type: BooleanConstructor;
|
|
69
|
-
default: boolean;
|
|
70
|
-
};
|
|
71
|
-
}>> & Readonly<{}>, {
|
|
72
|
-
loading: boolean;
|
|
73
|
-
count: number;
|
|
74
|
-
pageSize: number;
|
|
75
|
-
currentPage: number;
|
|
76
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
};
|
|
77
5
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
78
6
|
/**
|
|
79
7
|
* The current page.
|
|
@@ -1,119 +1,12 @@
|
|
|
1
1
|
import { type Size } from '../p-btn/p-btn.types';
|
|
2
|
-
import { type PropType
|
|
3
|
-
declare const $attrs: {
|
|
4
|
-
[x: string]: unknown;
|
|
5
|
-
};
|
|
6
|
-
declare const labelClasses: import("vue").ComputedRef<string>, selectClasses: import("vue").ComputedRef<string>, errorMsgClasses: import("vue").ComputedRef<string>;
|
|
7
|
-
declare const innerValue: import("vue").WritableComputedRef<string | number | boolean, string | number | boolean>;
|
|
8
|
-
declare const attrs: import("vue").ComputedRef<{
|
|
9
|
-
[x: string]: unknown;
|
|
10
|
-
}>;
|
|
11
|
-
declare const style: import("vue").ComputedRef<StyleValue>;
|
|
12
|
-
declare const innerOptions: import("vue").ComputedRef<{
|
|
13
|
-
value: unknown;
|
|
14
|
-
text: unknown;
|
|
15
|
-
}[]>;
|
|
16
|
-
declare const onChange: (e: Event) => void;
|
|
17
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
2
|
+
import { type PropType } from 'vue';
|
|
18
3
|
declare var __VLS_1: {
|
|
19
4
|
label: string;
|
|
20
5
|
labelClasses: string;
|
|
21
6
|
};
|
|
22
|
-
type __VLS_Slots =
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
23
8
|
label?: (props: typeof __VLS_1) => any;
|
|
24
|
-
}
|
|
25
|
-
declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
26
|
-
modelValue: {
|
|
27
|
-
type: PropType<string | number | boolean | null>;
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
|
-
items: {
|
|
31
|
-
type: PropType<Record<string, unknown>[]>;
|
|
32
|
-
default: () => never[];
|
|
33
|
-
};
|
|
34
|
-
label: {
|
|
35
|
-
type: StringConstructor;
|
|
36
|
-
default: string;
|
|
37
|
-
};
|
|
38
|
-
errorMsg: {
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
default: string;
|
|
41
|
-
};
|
|
42
|
-
required: {
|
|
43
|
-
type: BooleanConstructor;
|
|
44
|
-
default: boolean;
|
|
45
|
-
};
|
|
46
|
-
size: {
|
|
47
|
-
type: PropType<Size>;
|
|
48
|
-
default: string;
|
|
49
|
-
validator(value: Size): boolean;
|
|
50
|
-
};
|
|
51
|
-
itemText: {
|
|
52
|
-
type: StringConstructor;
|
|
53
|
-
default: string;
|
|
54
|
-
};
|
|
55
|
-
itemValue: {
|
|
56
|
-
type: PropType<string | number | boolean | null>;
|
|
57
|
-
default: string;
|
|
58
|
-
};
|
|
59
|
-
}>, {
|
|
60
|
-
$attrs: typeof $attrs;
|
|
61
|
-
labelClasses: typeof labelClasses;
|
|
62
|
-
selectClasses: typeof selectClasses;
|
|
63
|
-
errorMsgClasses: typeof errorMsgClasses;
|
|
64
|
-
innerValue: typeof innerValue;
|
|
65
|
-
attrs: typeof attrs;
|
|
66
|
-
style: typeof style;
|
|
67
|
-
innerOptions: typeof innerOptions;
|
|
68
|
-
onChange: typeof onChange;
|
|
69
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
|
-
"update:modelValue": (...args: any[]) => void;
|
|
71
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
72
|
-
modelValue: {
|
|
73
|
-
type: PropType<string | number | boolean | null>;
|
|
74
|
-
default: string;
|
|
75
|
-
};
|
|
76
|
-
items: {
|
|
77
|
-
type: PropType<Record<string, unknown>[]>;
|
|
78
|
-
default: () => never[];
|
|
79
|
-
};
|
|
80
|
-
label: {
|
|
81
|
-
type: StringConstructor;
|
|
82
|
-
default: string;
|
|
83
|
-
};
|
|
84
|
-
errorMsg: {
|
|
85
|
-
type: StringConstructor;
|
|
86
|
-
default: string;
|
|
87
|
-
};
|
|
88
|
-
required: {
|
|
89
|
-
type: BooleanConstructor;
|
|
90
|
-
default: boolean;
|
|
91
|
-
};
|
|
92
|
-
size: {
|
|
93
|
-
type: PropType<Size>;
|
|
94
|
-
default: string;
|
|
95
|
-
validator(value: Size): boolean;
|
|
96
|
-
};
|
|
97
|
-
itemText: {
|
|
98
|
-
type: StringConstructor;
|
|
99
|
-
default: string;
|
|
100
|
-
};
|
|
101
|
-
itemValue: {
|
|
102
|
-
type: PropType<string | number | boolean | null>;
|
|
103
|
-
default: string;
|
|
104
|
-
};
|
|
105
|
-
}>> & Readonly<{
|
|
106
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
107
|
-
}>, {
|
|
108
|
-
size: "sm" | "md" | "lg";
|
|
109
|
-
label: string;
|
|
110
|
-
required: boolean;
|
|
111
|
-
modelValue: string | number | boolean | null;
|
|
112
|
-
items: Record<string, unknown>[];
|
|
113
|
-
itemText: string;
|
|
114
|
-
errorMsg: string;
|
|
115
|
-
itemValue: string | number | boolean | null;
|
|
116
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
};
|
|
117
10
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
118
11
|
modelValue: {
|
|
119
12
|
type: PropType<string | number | boolean | null>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type Size } from '../p-btn/p-btn.types';
|
|
2
|
-
import PBtn from '../p-btn/p-btn.vue';
|
|
3
2
|
type BtnGroupItem = Record<string, string | number | boolean>;
|
|
4
3
|
type Props = {
|
|
5
4
|
modelValue?: string | number | null | BtnGroupItem[];
|
|
@@ -14,39 +13,13 @@ type Props = {
|
|
|
14
13
|
multiple?: boolean;
|
|
15
14
|
noPadding?: boolean;
|
|
16
15
|
};
|
|
17
|
-
declare const tooltipText: (item: BtnGroupItem) => string | number | boolean;
|
|
18
|
-
declare const select: (item: BtnGroupItem) => void;
|
|
19
|
-
declare const isSelected: (item: BtnGroupItem) => boolean | undefined;
|
|
20
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
21
16
|
declare var __VLS_9: `btn-${number}`, __VLS_10: {
|
|
22
17
|
item: BtnGroupItem;
|
|
23
18
|
isSelected: boolean | undefined;
|
|
24
19
|
};
|
|
25
|
-
type __VLS_Slots =
|
|
20
|
+
type __VLS_Slots = {} & {
|
|
26
21
|
[K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
|
|
27
|
-
}
|
|
28
|
-
declare const __VLS_self: import("vue").DefineComponent<Props, {
|
|
29
|
-
PBtn: typeof PBtn;
|
|
30
|
-
tooltipText: typeof tooltipText;
|
|
31
|
-
select: typeof select;
|
|
32
|
-
isSelected: typeof isSelected;
|
|
33
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
-
"update:modelValue": (...args: any[]) => void;
|
|
35
|
-
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
36
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
37
|
-
}>, {
|
|
38
|
-
size: Size;
|
|
39
|
-
modelValue: string | number | null | BtnGroupItem[];
|
|
40
|
-
items: BtnGroupItem[] | readonly BtnGroupItem[];
|
|
41
|
-
itemText: string;
|
|
42
|
-
itemValue: string | number;
|
|
43
|
-
multiple: boolean;
|
|
44
|
-
itemTooltipText: string;
|
|
45
|
-
showTooltip: boolean;
|
|
46
|
-
highlightSelected: boolean;
|
|
47
|
-
grow: boolean;
|
|
48
|
-
noPadding: boolean;
|
|
49
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
};
|
|
50
23
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
24
|
"update:modelValue": (...args: any[]) => void;
|
|
52
25
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: <T extends readonly string[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
2
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & {
|
|
3
|
+
steps: T;
|
|
4
|
+
currentStep: T[number];
|
|
5
|
+
stepTitleMap?: Partial<Record<T[number], string>>;
|
|
6
|
+
} & Partial<{}>> & import("vue").PublicProps;
|
|
7
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
8
|
+
attrs: any;
|
|
9
|
+
slots: {};
|
|
10
|
+
emit: {};
|
|
11
|
+
}>) => import("vue").VNode & {
|
|
12
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_PrettifyLocal<T> = {
|
|
16
|
+
[K in keyof T]: T[K];
|
|
17
|
+
} & {};
|