rtcpts 0.0.28 → 0.0.30
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/{charts-D_0khFg_.js → charts-DFjKd2J4.js} +264 -214
- package/dist/charts-DpNGi6Y4.cjs +1 -0
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.es.js +1 -1
- package/dist/components/j-c-editable-proxy/index.d.ts +9 -8
- package/dist/components/j-c-list-editor/index.d.ts +5 -4
- package/dist/components/j-c-nested-select/NestedMenuItem.d.ts +51 -0
- package/dist/components/j-c-nested-select/index.d.ts +199 -0
- package/dist/components/j-c-nested-select/types.d.ts +27 -0
- package/dist/components/j-c-table/index.d.ts +5 -4
- package/dist/components/j-c-tooltip/index.d.ts +5 -5
- package/dist/components/j-c-tooltip/types.d.ts +125 -7
- package/dist/components/j-c-tooltip-ellipsis/index.d.ts +7 -7
- package/dist/components/j-c-tree-select/index.d.ts +13 -12
- package/dist/components/j-ch-bar/index.d.ts +11 -0
- package/dist/components/j-ch-bar/types.d.ts +42 -0
- package/dist/components/j-ch-bar-line/index.d.ts +11 -0
- package/dist/components/j-ch-bar-line/types.d.ts +42 -0
- package/dist/components/j-ch-bubble/index.d.ts +11 -0
- package/dist/components/j-ch-bubble/types.d.ts +51 -0
- package/dist/components/j-ch-line/index.d.ts +11 -0
- package/dist/components/j-ch-line/types.d.ts +42 -0
- package/dist/components/j-ch-pie-doughnut/index.d.ts +11 -0
- package/dist/components/j-ch-pie-doughnut/types.d.ts +55 -0
- package/dist/components/j-ch-radar/index.d.ts +11 -0
- package/dist/components/j-ch-radar/types.d.ts +42 -0
- package/dist/components/j-q-autocomplete/index.d.ts +5 -4
- package/dist/components/j-q-button/index.d.ts +9 -9
- package/dist/components/j-q-confirm/index.d.ts +9 -8
- package/dist/components/j-q-confirm-dialog/index.d.ts +0 -321
- package/dist/components/j-q-detail-list/index.d.ts +11 -10
- package/dist/components/j-q-form-label/index.d.ts +5 -4
- package/dist/components/j-q-message/index.d.ts +1 -1
- package/dist/components/j-q-option-group/index.d.ts +5 -4
- package/dist/components/j-q-search-form/index.d.ts +9 -8
- package/dist/components/j-q-table/index.d.ts +5 -4
- package/dist/components/j-q-table/pagination.d.ts +19 -20
- package/dist/global.d.ts +74 -4
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/rtcpt-styles.css +1 -1
- package/dist/rtcpt.cjs.js +1 -1
- package/dist/rtcpt.es.js +2405 -2112
- package/dist/utils/chart.d.ts +28 -0
- package/package.json +1 -1
- package/dist/charts-B7LwnjcQ.cjs +0 -1
|
@@ -13,324 +13,3 @@ declare class GlobalConfirm implements IJQConfirmDialog {
|
|
|
13
13
|
}
|
|
14
14
|
declare const globalConfirm: GlobalConfirm;
|
|
15
15
|
export default globalConfirm;
|
|
16
|
-
tructor;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
cancelButtonText: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
cancel: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
isDelete: {
|
|
28
|
-
type: BooleanConstructor;
|
|
29
|
-
default: boolean;
|
|
30
|
-
};
|
|
31
|
-
color: {
|
|
32
|
-
type: StringConstructor;
|
|
33
|
-
default: string;
|
|
34
|
-
};
|
|
35
|
-
icon: {
|
|
36
|
-
type: PropType<string | VNode | VueComponent>;
|
|
37
|
-
default: null;
|
|
38
|
-
};
|
|
39
|
-
showClose: {
|
|
40
|
-
type: BooleanConstructor;
|
|
41
|
-
default: boolean;
|
|
42
|
-
};
|
|
43
|
-
}>, {
|
|
44
|
-
dialogRef: Ref<QDialog | undefined, QDialog | undefined>;
|
|
45
|
-
onDialogHide: () => void;
|
|
46
|
-
onOKClick(): void;
|
|
47
|
-
onCancelClick: () => void;
|
|
48
|
-
computedCancelText: ComputedRef<string>;
|
|
49
|
-
computedConfirmText: ComputedRef<string>;
|
|
50
|
-
computedButtonColor: ComputedRef<string>;
|
|
51
|
-
isIconString: ComputedRef<boolean>;
|
|
52
|
-
onCloseClick: () => void;
|
|
53
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("hide" | "ok")[], "hide" | "ok", PublicProps, Readonly< ExtractPropTypes<{
|
|
54
|
-
title: {
|
|
55
|
-
type: StringConstructor;
|
|
56
|
-
default: string;
|
|
57
|
-
};
|
|
58
|
-
content: {
|
|
59
|
-
type: StringConstructor;
|
|
60
|
-
default: string;
|
|
61
|
-
};
|
|
62
|
-
confirmButtonText: {
|
|
63
|
-
type: StringConstructor;
|
|
64
|
-
default: string;
|
|
65
|
-
};
|
|
66
|
-
cancelButtonText: {
|
|
67
|
-
type: StringConstructor;
|
|
68
|
-
default: string;
|
|
69
|
-
};
|
|
70
|
-
cancel: {
|
|
71
|
-
type: BooleanConstructor;
|
|
72
|
-
default: boolean;
|
|
73
|
-
};
|
|
74
|
-
isDelete: {
|
|
75
|
-
type: BooleanConstructor;
|
|
76
|
-
default: boolean;
|
|
77
|
-
};
|
|
78
|
-
color: {
|
|
79
|
-
type: StringConstructor;
|
|
80
|
-
default: string;
|
|
81
|
-
};
|
|
82
|
-
icon: {
|
|
83
|
-
type: PropType<string | VNode | VueComponent>;
|
|
84
|
-
default: null;
|
|
85
|
-
};
|
|
86
|
-
showClose: {
|
|
87
|
-
type: BooleanConstructor;
|
|
88
|
-
default: boolean;
|
|
89
|
-
};
|
|
90
|
-
}>> & Readonly<{
|
|
91
|
-
onHide?: ((...args: any[]) => any) | undefined;
|
|
92
|
-
onOk?: ((...args: any[]) => any) | undefined;
|
|
93
|
-
}>, {
|
|
94
|
-
color: string;
|
|
95
|
-
title: string;
|
|
96
|
-
icon: string | VNode< RendererNode, RendererElement, {
|
|
97
|
-
[key: string]: any;
|
|
98
|
-
}> | VueComponent;
|
|
99
|
-
content: string;
|
|
100
|
-
cancel: boolean;
|
|
101
|
-
confirmButtonText: string;
|
|
102
|
-
cancelButtonText: string;
|
|
103
|
-
isDelete: boolean;
|
|
104
|
-
showClose: boolean;
|
|
105
|
-
}, {}, {
|
|
106
|
-
QDialog: ComponentConstructor<QDialog>;
|
|
107
|
-
QCard: ComponentConstructor<QCard>;
|
|
108
|
-
QCardSection: ComponentConstructor<QCardSection>;
|
|
109
|
-
QIcon: ComponentConstructor<QIcon>;
|
|
110
|
-
JQButton: DefineComponent<ExtractPropTypes<{
|
|
111
|
-
size: {
|
|
112
|
-
type: PropType< JQButtonSizeType>;
|
|
113
|
-
default: "large";
|
|
114
|
-
validator: (value: JQButtonSizeType) => boolean;
|
|
115
|
-
};
|
|
116
|
-
type: {
|
|
117
|
-
type: PropType< JQButtonTypeType>;
|
|
118
|
-
default: "primary";
|
|
119
|
-
validator: (value: JQButtonTypeType) => boolean;
|
|
120
|
-
};
|
|
121
|
-
label: {
|
|
122
|
-
type: StringConstructor;
|
|
123
|
-
default: string;
|
|
124
|
-
};
|
|
125
|
-
icon: {
|
|
126
|
-
type: StringConstructor;
|
|
127
|
-
default: undefined;
|
|
128
|
-
};
|
|
129
|
-
loading: {
|
|
130
|
-
type: BooleanConstructor;
|
|
131
|
-
default: boolean;
|
|
132
|
-
};
|
|
133
|
-
tips: {
|
|
134
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
135
|
-
default: string;
|
|
136
|
-
};
|
|
137
|
-
tooltipConfig: {
|
|
138
|
-
type: PropType<Omit< TooltipProps, "content">>;
|
|
139
|
-
default: undefined;
|
|
140
|
-
};
|
|
141
|
-
}>, {
|
|
142
|
-
click: (e: Event) => void;
|
|
143
|
-
computedClass: ComputedRef<{
|
|
144
|
-
[x: string]: boolean;
|
|
145
|
-
'j-q-button': boolean;
|
|
146
|
-
'j-q-button--primary': boolean;
|
|
147
|
-
'j-q-button--secondary': boolean;
|
|
148
|
-
'j-q-button--text'?: undefined;
|
|
149
|
-
} | {
|
|
150
|
-
'j-q-button--text': boolean;
|
|
151
|
-
'j-q-button'?: undefined;
|
|
152
|
-
'j-q-button--primary'?: undefined;
|
|
153
|
-
'j-q-button--secondary'?: undefined;
|
|
154
|
-
}>;
|
|
155
|
-
iconPadding: ComputedRef<{
|
|
156
|
-
'j-q-button-label': string | (() => any) | undefined;
|
|
157
|
-
}>;
|
|
158
|
-
mergedTooltipConfig: ComputedRef<{
|
|
159
|
-
modelValue?: boolean;
|
|
160
|
-
placement?: TooltipPlacement;
|
|
161
|
-
effect?: TooltipEffect;
|
|
162
|
-
trigger?: TooltipTrigger;
|
|
163
|
-
disabled?: boolean;
|
|
164
|
-
showArrow?: boolean;
|
|
165
|
-
openDelay?: number;
|
|
166
|
-
closeDelay?: number;
|
|
167
|
-
maxWidth?: string;
|
|
168
|
-
offset?: number;
|
|
169
|
-
}>;
|
|
170
|
-
qBtnRef: Ref< QBtn | null, QBtn | null>;
|
|
171
|
-
tooltipContent: ComputedRef<string>;
|
|
172
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
173
|
-
click: (e: Event) => true;
|
|
174
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
175
|
-
size: {
|
|
176
|
-
type: PropType< JQButtonSizeType>;
|
|
177
|
-
default: "large";
|
|
178
|
-
validator: (value: JQButtonSizeType) => boolean;
|
|
179
|
-
};
|
|
180
|
-
type: {
|
|
181
|
-
type: PropType< JQButtonTypeType>;
|
|
182
|
-
default: "primary";
|
|
183
|
-
validator: (value: JQButtonTypeType) => boolean;
|
|
184
|
-
};
|
|
185
|
-
label: {
|
|
186
|
-
type: StringConstructor;
|
|
187
|
-
default: string;
|
|
188
|
-
};
|
|
189
|
-
icon: {
|
|
190
|
-
type: StringConstructor;
|
|
191
|
-
default: undefined;
|
|
192
|
-
};
|
|
193
|
-
loading: {
|
|
194
|
-
type: BooleanConstructor;
|
|
195
|
-
default: boolean;
|
|
196
|
-
};
|
|
197
|
-
tips: {
|
|
198
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
199
|
-
default: string;
|
|
200
|
-
};
|
|
201
|
-
tooltipConfig: {
|
|
202
|
-
type: PropType<Omit< TooltipProps, "content">>;
|
|
203
|
-
default: undefined;
|
|
204
|
-
};
|
|
205
|
-
}>> & Readonly<{
|
|
206
|
-
onClick?: ((e: Event) => any) | undefined;
|
|
207
|
-
}>, {
|
|
208
|
-
type: JQButtonTypeType;
|
|
209
|
-
size: JQButtonSizeType;
|
|
210
|
-
label: string;
|
|
211
|
-
icon: string;
|
|
212
|
-
loading: boolean;
|
|
213
|
-
tooltipConfig: Omit< TooltipProps, "content">;
|
|
214
|
-
tips: string | number;
|
|
215
|
-
}, SlotsType<JQButtonSlots>, {
|
|
216
|
-
QBtn: ComponentConstructor<QBtn>;
|
|
217
|
-
JCTooltip: DefineComponent<ExtractPropTypes<{
|
|
218
|
-
content: {
|
|
219
|
-
type: StringConstructor;
|
|
220
|
-
default: string;
|
|
221
|
-
};
|
|
222
|
-
placement: {
|
|
223
|
-
type: PropType< TooltipPlacement>;
|
|
224
|
-
default: string;
|
|
225
|
-
};
|
|
226
|
-
effect: {
|
|
227
|
-
type: PropType< TooltipEffect>;
|
|
228
|
-
default: string;
|
|
229
|
-
};
|
|
230
|
-
trigger: {
|
|
231
|
-
type: PropType< TooltipTrigger>;
|
|
232
|
-
default: string;
|
|
233
|
-
};
|
|
234
|
-
disabled: {
|
|
235
|
-
type: BooleanConstructor;
|
|
236
|
-
default: boolean;
|
|
237
|
-
};
|
|
238
|
-
showArrow: {
|
|
239
|
-
type: BooleanConstructor;
|
|
240
|
-
default: boolean;
|
|
241
|
-
};
|
|
242
|
-
openDelay: {
|
|
243
|
-
type: NumberConstructor;
|
|
244
|
-
default: number;
|
|
245
|
-
};
|
|
246
|
-
closeDelay: {
|
|
247
|
-
type: NumberConstructor;
|
|
248
|
-
default: number;
|
|
249
|
-
};
|
|
250
|
-
maxWidth: {
|
|
251
|
-
type: StringConstructor;
|
|
252
|
-
default: string;
|
|
253
|
-
};
|
|
254
|
-
offset: {
|
|
255
|
-
type: NumberConstructor;
|
|
256
|
-
default: number;
|
|
257
|
-
};
|
|
258
|
-
modelValue: {
|
|
259
|
-
type: BooleanConstructor;
|
|
260
|
-
default: undefined;
|
|
261
|
-
};
|
|
262
|
-
}>, {
|
|
263
|
-
tooltipRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
264
|
-
popperRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
265
|
-
visible: Ref<boolean, boolean>;
|
|
266
|
-
currentPlacement: Ref<TooltipPlacement, TooltipPlacement>;
|
|
267
|
-
popperStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
268
|
-
arrowStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
269
|
-
handleMouseEnter: () => void;
|
|
270
|
-
handleMouseLeave: () => void;
|
|
271
|
-
handleClick: () => void;
|
|
272
|
-
handlePopperMouseEnter: () => void;
|
|
273
|
-
handlePopperMouseLeave: () => void;
|
|
274
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly< ExtractPropTypes<{
|
|
275
|
-
content: {
|
|
276
|
-
type: StringConstructor;
|
|
277
|
-
default: string;
|
|
278
|
-
};
|
|
279
|
-
placement: {
|
|
280
|
-
type: PropType< TooltipPlacement>;
|
|
281
|
-
default: string;
|
|
282
|
-
};
|
|
283
|
-
effect: {
|
|
284
|
-
type: PropType< TooltipEffect>;
|
|
285
|
-
default: string;
|
|
286
|
-
};
|
|
287
|
-
trigger: {
|
|
288
|
-
type: PropType< TooltipTrigger>;
|
|
289
|
-
default: string;
|
|
290
|
-
};
|
|
291
|
-
disabled: {
|
|
292
|
-
type: BooleanConstructor;
|
|
293
|
-
default: boolean;
|
|
294
|
-
};
|
|
295
|
-
showArrow: {
|
|
296
|
-
type: BooleanConstructor;
|
|
297
|
-
default: boolean;
|
|
298
|
-
};
|
|
299
|
-
openDelay: {
|
|
300
|
-
type: NumberConstructor;
|
|
301
|
-
default: number;
|
|
302
|
-
};
|
|
303
|
-
closeDelay: {
|
|
304
|
-
type: NumberConstructor;
|
|
305
|
-
default: number;
|
|
306
|
-
};
|
|
307
|
-
maxWidth: {
|
|
308
|
-
type: StringConstructor;
|
|
309
|
-
default: string;
|
|
310
|
-
};
|
|
311
|
-
offset: {
|
|
312
|
-
type: NumberConstructor;
|
|
313
|
-
default: number;
|
|
314
|
-
};
|
|
315
|
-
modelValue: {
|
|
316
|
-
type: BooleanConstructor;
|
|
317
|
-
default: undefined;
|
|
318
|
-
};
|
|
319
|
-
}>> & Readonly<{
|
|
320
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
321
|
-
}>, {
|
|
322
|
-
modelValue: boolean;
|
|
323
|
-
content: string;
|
|
324
|
-
placement: TooltipPlacement;
|
|
325
|
-
effect: TooltipEffect;
|
|
326
|
-
trigger: TooltipTrigger;
|
|
327
|
-
disabled: boolean;
|
|
328
|
-
showArrow: boolean;
|
|
329
|
-
openDelay: number;
|
|
330
|
-
closeDelay: number;
|
|
331
|
-
maxWidth: string;
|
|
332
|
-
offset: number;
|
|
333
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
334
|
-
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
335
|
-
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
336
|
-
export default _default;
|
|
@@ -2,6 +2,7 @@ import { PropType, SlotsType, DefineComponent, ExtractPropTypes, ComputedRef, Sl
|
|
|
2
2
|
import { QIcon, ComponentConstructor } from 'quasar';
|
|
3
3
|
import { t } from '../../composables/useI18n.ts';
|
|
4
4
|
import { TooltipEffect, TooltipPlacement, TooltipTrigger } from '../..';
|
|
5
|
+
import { JCTooltipPlacementType, JCTooltipEffectType, JCTooltipTriggerType } from '../j-c-tooltip/types';
|
|
5
6
|
export interface DetailItem {
|
|
6
7
|
name: string;
|
|
7
8
|
label: string;
|
|
@@ -184,8 +185,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
184
185
|
};
|
|
185
186
|
}>> & Readonly<{}>, {
|
|
186
187
|
content: string;
|
|
187
|
-
placement:
|
|
188
|
-
effect:
|
|
188
|
+
placement: JCTooltipPlacementType;
|
|
189
|
+
effect: JCTooltipEffectType;
|
|
189
190
|
maxWidth: string;
|
|
190
191
|
offset: number;
|
|
191
192
|
lines: number;
|
|
@@ -240,7 +241,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
240
241
|
tooltipRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
241
242
|
popperRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
242
243
|
visible: Ref<boolean, boolean>;
|
|
243
|
-
currentPlacement: Ref<
|
|
244
|
+
currentPlacement: Ref<JCTooltipPlacementType, JCTooltipPlacementType>;
|
|
244
245
|
popperStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
245
246
|
arrowStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
246
247
|
handleMouseEnter: () => void;
|
|
@@ -298,9 +299,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
298
299
|
}>, {
|
|
299
300
|
modelValue: boolean;
|
|
300
301
|
content: string;
|
|
301
|
-
placement:
|
|
302
|
-
effect:
|
|
303
|
-
trigger:
|
|
302
|
+
placement: JCTooltipPlacementType;
|
|
303
|
+
effect: JCTooltipEffectType;
|
|
304
|
+
trigger: JCTooltipTriggerType;
|
|
304
305
|
disabled: boolean;
|
|
305
306
|
showArrow: boolean;
|
|
306
307
|
openDelay: number;
|
|
@@ -387,7 +388,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
387
388
|
tooltipRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
388
389
|
popperRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
389
390
|
visible: Ref<boolean, boolean>;
|
|
390
|
-
currentPlacement: Ref<
|
|
391
|
+
currentPlacement: Ref<JCTooltipPlacementType, JCTooltipPlacementType>;
|
|
391
392
|
popperStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
392
393
|
arrowStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
393
394
|
handleMouseEnter: () => void;
|
|
@@ -445,9 +446,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
445
446
|
}>, {
|
|
446
447
|
modelValue: boolean;
|
|
447
448
|
content: string;
|
|
448
|
-
placement:
|
|
449
|
-
effect:
|
|
450
|
-
trigger:
|
|
449
|
+
placement: JCTooltipPlacementType;
|
|
450
|
+
effect: JCTooltipEffectType;
|
|
451
|
+
trigger: JCTooltipTriggerType;
|
|
451
452
|
disabled: boolean;
|
|
452
453
|
showArrow: boolean;
|
|
453
454
|
openDelay: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, ComputedRef, Slot, ComponentOptionsMixin, PublicProps, Ref, ComponentProvideOptions } from 'vue';
|
|
2
2
|
import { QIcon, ComponentConstructor } from 'quasar';
|
|
3
3
|
import { TooltipPlacement, TooltipEffect, TooltipTrigger } from '../..';
|
|
4
|
+
import { JCTooltipPlacementType, JCTooltipEffectType, JCTooltipTriggerType } from '../j-c-tooltip/types';
|
|
4
5
|
type VueClass = string | Record<string, boolean> | (string | Record<string, boolean>)[];
|
|
5
6
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
6
7
|
label: {
|
|
@@ -124,7 +125,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
124
125
|
tooltipRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
125
126
|
popperRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
126
127
|
visible: Ref<boolean, boolean>;
|
|
127
|
-
currentPlacement: Ref<
|
|
128
|
+
currentPlacement: Ref<JCTooltipPlacementType, JCTooltipPlacementType>;
|
|
128
129
|
popperStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
129
130
|
arrowStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
130
131
|
handleMouseEnter: () => void;
|
|
@@ -182,9 +183,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
182
183
|
}>, {
|
|
183
184
|
modelValue: boolean;
|
|
184
185
|
content: string;
|
|
185
|
-
placement:
|
|
186
|
-
effect:
|
|
187
|
-
trigger:
|
|
186
|
+
placement: JCTooltipPlacementType;
|
|
187
|
+
effect: JCTooltipEffectType;
|
|
188
|
+
trigger: JCTooltipTriggerType;
|
|
188
189
|
disabled: boolean;
|
|
189
190
|
showArrow: boolean;
|
|
190
191
|
openDelay: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QVueGlobals } from 'quasar';
|
|
2
2
|
type Position = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top' | 'bottom' | 'left' | 'right' | 'center' | undefined;
|
|
3
3
|
type showParams = {
|
|
4
|
-
type:
|
|
4
|
+
type: 'error' | 'warn' | 'success';
|
|
5
5
|
content: string;
|
|
6
6
|
position?: Position;
|
|
7
7
|
isNotify?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropType, DefineComponent, ExtractPropTypes, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
import { QField, QOptionGroup, QIcon, QFieldProps, QOptionGroupProps, ComponentConstructor } from 'quasar';
|
|
3
3
|
import { TooltipPlacement, TooltipEffect, TooltipTrigger } from '../..';
|
|
4
|
+
import { JCTooltipPlacementType, JCTooltipEffectType, JCTooltipTriggerType } from '../j-c-tooltip/types';
|
|
4
5
|
type TModelValue = QOptionGroupProps['modelValue'];
|
|
5
6
|
type TQOptions = QOptionGroupProps['options'];
|
|
6
7
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
@@ -178,7 +179,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
178
179
|
tooltipRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
179
180
|
popperRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
180
181
|
visible: Ref<boolean, boolean>;
|
|
181
|
-
currentPlacement: Ref<
|
|
182
|
+
currentPlacement: Ref<JCTooltipPlacementType, JCTooltipPlacementType>;
|
|
182
183
|
popperStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
183
184
|
arrowStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
184
185
|
handleMouseEnter: () => void;
|
|
@@ -236,9 +237,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
236
237
|
}>, {
|
|
237
238
|
modelValue: boolean;
|
|
238
239
|
content: string;
|
|
239
|
-
placement:
|
|
240
|
-
effect:
|
|
241
|
-
trigger:
|
|
240
|
+
placement: JCTooltipPlacementType;
|
|
241
|
+
effect: JCTooltipEffectType;
|
|
242
|
+
trigger: JCTooltipTriggerType;
|
|
242
243
|
disabled: boolean;
|
|
243
244
|
showArrow: boolean;
|
|
244
245
|
openDelay: number;
|
|
@@ -2,6 +2,7 @@ import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, ComponentO
|
|
|
2
2
|
import { t } from '../../composables/useI18n.ts';
|
|
3
3
|
import { JQButtonSizeType, JQButtonTypeType, JQButtonSlots } from '../j-q-button/index';
|
|
4
4
|
import { TooltipProps, TooltipPlacement, TooltipEffect, TooltipTrigger } from '../..';
|
|
5
|
+
import { JCTooltipPlacementType, JCTooltipEffectType, JCTooltipTriggerType, JCTooltipProps } from '../j-c-tooltip/types';
|
|
5
6
|
import { QBtn, ComponentConstructor } from 'quasar';
|
|
6
7
|
type SearchFormData = Record<string, any>;
|
|
7
8
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
@@ -114,9 +115,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
114
115
|
}>;
|
|
115
116
|
mergedTooltipConfig: ComputedRef<{
|
|
116
117
|
modelValue?: boolean;
|
|
117
|
-
placement?:
|
|
118
|
-
effect?:
|
|
119
|
-
trigger?:
|
|
118
|
+
placement?: JCTooltipPlacementType;
|
|
119
|
+
effect?: JCTooltipEffectType;
|
|
120
|
+
trigger?: JCTooltipTriggerType;
|
|
120
121
|
disabled?: boolean;
|
|
121
122
|
showArrow?: boolean;
|
|
122
123
|
openDelay?: number;
|
|
@@ -167,7 +168,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
167
168
|
label: string;
|
|
168
169
|
icon: string;
|
|
169
170
|
loading: boolean;
|
|
170
|
-
tooltipConfig: Omit<
|
|
171
|
+
tooltipConfig: Omit< JCTooltipProps, "content">;
|
|
171
172
|
tips: string | number;
|
|
172
173
|
}, SlotsType< JQButtonSlots>, {
|
|
173
174
|
QBtn: ComponentConstructor<QBtn>;
|
|
@@ -220,7 +221,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
220
221
|
tooltipRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
221
222
|
popperRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
222
223
|
visible: Ref<boolean, boolean>;
|
|
223
|
-
currentPlacement: Ref<
|
|
224
|
+
currentPlacement: Ref<JCTooltipPlacementType, JCTooltipPlacementType>;
|
|
224
225
|
popperStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
225
226
|
arrowStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
226
227
|
handleMouseEnter: () => void;
|
|
@@ -278,9 +279,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
278
279
|
}>, {
|
|
279
280
|
modelValue: boolean;
|
|
280
281
|
content: string;
|
|
281
|
-
placement:
|
|
282
|
-
effect:
|
|
283
|
-
trigger:
|
|
282
|
+
placement: JCTooltipPlacementType;
|
|
283
|
+
effect: JCTooltipEffectType;
|
|
284
|
+
trigger: JCTooltipTriggerType;
|
|
284
285
|
disabled: boolean;
|
|
285
286
|
showArrow: boolean;
|
|
286
287
|
openDelay: number;
|
|
@@ -3,6 +3,7 @@ import { QTable, QTh, QTd, QInnerLoading, QTableColumn, ComponentConstructor, QS
|
|
|
3
3
|
import { t } from '../../composables/useI18n.ts';
|
|
4
4
|
import { Paginator, PaginationParameter, PaginationInfo } from './pagination';
|
|
5
5
|
import { TooltipPlacement, TooltipEffect, TooltipTrigger } from '../..';
|
|
6
|
+
import { JCTooltipPlacementType, JCTooltipEffectType, JCTooltipTriggerType } from '../j-c-tooltip/types';
|
|
6
7
|
export interface SelectionConditions {
|
|
7
8
|
itemSelectDisable: (data: any) => boolean;
|
|
8
9
|
}
|
|
@@ -289,7 +290,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
289
290
|
tooltipRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
290
291
|
popperRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
291
292
|
visible: Ref<boolean, boolean>;
|
|
292
|
-
currentPlacement: Ref<
|
|
293
|
+
currentPlacement: Ref<JCTooltipPlacementType, JCTooltipPlacementType>;
|
|
293
294
|
popperStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
294
295
|
arrowStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
295
296
|
handleMouseEnter: () => void;
|
|
@@ -347,9 +348,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
347
348
|
}>, {
|
|
348
349
|
modelValue: boolean;
|
|
349
350
|
content: string;
|
|
350
|
-
placement:
|
|
351
|
-
effect:
|
|
352
|
-
trigger:
|
|
351
|
+
placement: JCTooltipPlacementType;
|
|
352
|
+
effect: JCTooltipEffectType;
|
|
353
|
+
trigger: JCTooltipTriggerType;
|
|
353
354
|
disabled: boolean;
|
|
354
355
|
showArrow: boolean;
|
|
355
356
|
openDelay: number;
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { t } from '../../composables/useI18n.ts';
|
|
4
|
-
export interface PaginationInfo {
|
|
1
|
+
export type PaginationParameter = Pick<Paginator, 'page' | 'rowsPerPage'>;
|
|
2
|
+
export interface Paginator {
|
|
5
3
|
page: number;
|
|
6
4
|
rowsPerPage: number;
|
|
7
5
|
rowsNumber: number;
|
|
8
6
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
7
|
+
export type UsePaginationOptions = {
|
|
8
|
+
page?: number;
|
|
9
|
+
rowsPerPage?: number;
|
|
10
|
+
rowsNumber?: number;
|
|
11
|
+
};
|
|
12
|
+
export type UsePaginationReturn = {
|
|
13
|
+
paginationInfo: Paginator;
|
|
14
|
+
getNum: () => number;
|
|
15
|
+
getPaginationParam: () => PaginationParameter;
|
|
16
|
+
setNum: (value?: number) => void;
|
|
17
|
+
setSize: (value?: number) => void;
|
|
18
|
+
setTotal: (value?: number) => void;
|
|
19
|
+
};
|
|
20
|
+
export declare const DEFAULT_ROWS_PER_PAGE = 15;
|
|
21
|
+
export declare const ROWS_PER_PAGE_OPTIONS: number[];
|
|
22
|
+
export declare function usePagination(options?: UsePaginationOptions): UsePaginationReturn;
|
|
23
|
+
rowsPerPage: number;
|
|
25
24
|
rowsNumber: number;
|
|
26
25
|
};
|
|
27
26
|
rowNumbersArr: number[];
|
package/dist/global.d.ts
CHANGED
|
@@ -1,11 +1,81 @@
|
|
|
1
|
+
import { JChBarProps, JChBarSlots } from './components/j-ch-bar/types';
|
|
2
|
+
import { JChBarLineProps, JChBarLineSlots } from './components/j-ch-bar-line/types';
|
|
3
|
+
import { JChBubbleProps, JChBubbleSlots } from './components/j-ch-bubble/types';
|
|
4
|
+
import { JChLineProps, JChLineSlots } from './components/j-ch-line/types';
|
|
5
|
+
import { JChPieDoughnutProps, JChPieDoughnutSlots } from './components/j-ch-pie-doughnut/types';
|
|
6
|
+
import { JChRadarProps, JChRadarSlots } from './components/j-ch-radar/types';
|
|
7
|
+
import { JCNestedSelectProps, JCNestedSelectEmits } from './components/j-c-nested-select/types';
|
|
1
8
|
import { JCTableProps } from './components/j-c-table/types';
|
|
2
|
-
import {
|
|
9
|
+
import { JCTooltipProps, JCTooltipSlots, JCTooltipEmits } from './components/j-c-tooltip/types';
|
|
3
10
|
import { JCTooltipEllipsisProps, JCTooltipEllipsisSlots } from './components/j-c-tooltip-ellipsis/types';
|
|
4
11
|
import { JQButtonTemplateProps, JQButtonSlots, JQButtonEmits } from './components/j-q-button/types';
|
|
5
12
|
import { JQButtonDropdownProps, JQButtonDropdownSlots, JQButtonDropdownEmits } from './components/j-q-button-dropdown/types';
|
|
6
13
|
import { JQConfirmTemplateProps, JQConfirmSlots, JQConfirmEmits } from './components/j-q-confirm/types';
|
|
7
14
|
declare module 'vue' {
|
|
8
15
|
export interface GlobalComponents {
|
|
16
|
+
/**
|
|
17
|
+
* JChBar - JChBar 组件
|
|
18
|
+
*/
|
|
19
|
+
JChBar: new () => {
|
|
20
|
+
$props: JChBarProps;
|
|
21
|
+
$slots: JChBarSlots;
|
|
22
|
+
$emit: {};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* JChBarLine - JChBarLine 组件
|
|
27
|
+
*/
|
|
28
|
+
JChBarLine: new () => {
|
|
29
|
+
$props: JChBarLineProps;
|
|
30
|
+
$slots: JChBarLineSlots;
|
|
31
|
+
$emit: {};
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* JChBubble - JChBubble 组件
|
|
36
|
+
*/
|
|
37
|
+
JChBubble: new () => {
|
|
38
|
+
$props: JChBubbleProps;
|
|
39
|
+
$slots: JChBubbleSlots;
|
|
40
|
+
$emit: {};
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* JChLine - JChLine 组件
|
|
45
|
+
*/
|
|
46
|
+
JChLine: new () => {
|
|
47
|
+
$props: JChLineProps;
|
|
48
|
+
$slots: JChLineSlots;
|
|
49
|
+
$emit: {};
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* JChPieDoughnut - JChPieDoughnut 组件
|
|
54
|
+
*/
|
|
55
|
+
JChPieDoughnut: new () => {
|
|
56
|
+
$props: JChPieDoughnutProps;
|
|
57
|
+
$slots: JChPieDoughnutSlots;
|
|
58
|
+
$emit: {};
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* JChRadar - JChRadar 组件
|
|
63
|
+
*/
|
|
64
|
+
JChRadar: new () => {
|
|
65
|
+
$props: JChRadarProps;
|
|
66
|
+
$slots: JChRadarSlots;
|
|
67
|
+
$emit: {};
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* JCNestedSelect - JCNestedSelect 组件
|
|
72
|
+
*/
|
|
73
|
+
JCNestedSelect: new () => {
|
|
74
|
+
$props: JCNestedSelectProps;
|
|
75
|
+
$slots: {};
|
|
76
|
+
$emit: JCNestedSelectEmits;
|
|
77
|
+
};
|
|
78
|
+
|
|
9
79
|
/**
|
|
10
80
|
* JCTable - JCTable 组件
|
|
11
81
|
*/
|
|
@@ -19,9 +89,9 @@ declare module 'vue' {
|
|
|
19
89
|
* JCTooltip - JCTooltip 组件
|
|
20
90
|
*/
|
|
21
91
|
JCTooltip: new () => {
|
|
22
|
-
$props:
|
|
23
|
-
$slots:
|
|
24
|
-
$emit:
|
|
92
|
+
$props: JCTooltipProps;
|
|
93
|
+
$slots: JCTooltipSlots;
|
|
94
|
+
$emit: JCTooltipEmits;
|
|
25
95
|
};
|
|
26
96
|
|
|
27
97
|
/**
|