rtcpts 0.0.75 → 0.0.77

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.
Files changed (70) hide show
  1. package/dist/component-types.d.ts +8 -0
  2. package/dist/components/j-c-copy/types.d.ts +5 -6
  3. package/dist/components/j-c-duo-list-editor/types.d.ts +6 -5
  4. package/dist/components/j-c-editable-proxy/index.d.ts +7 -6
  5. package/dist/components/j-c-editable-proxy/types.d.ts +5 -4
  6. package/dist/components/j-c-fallback/types.d.ts +5 -6
  7. package/dist/components/j-c-foldable-list/types.d.ts +5 -6
  8. package/dist/components/j-c-format-lookup/types.d.ts +5 -6
  9. package/dist/components/j-c-list-editor/types.d.ts +5 -4
  10. package/dist/components/j-c-more-menu/index.d.ts +7 -6
  11. package/dist/components/j-c-more-menu/types.d.ts +7 -4
  12. package/dist/components/j-c-nested-select/types.d.ts +24 -2
  13. package/dist/components/j-c-org-select/types.d.ts +5 -4
  14. package/dist/components/j-c-permission/index.d.ts +2 -3
  15. package/dist/components/j-c-permission/types.d.ts +11 -11
  16. package/dist/components/j-c-platform/types.d.ts +5 -6
  17. package/dist/components/j-c-table/types.d.ts +5 -6
  18. package/dist/components/j-c-tabs/types.d.ts +5 -4
  19. package/dist/components/j-c-title-line/types.d.ts +5 -6
  20. package/dist/components/j-c-tooltip/types.d.ts +5 -3
  21. package/dist/components/j-c-tooltip-ellipsis/types.d.ts +5 -3
  22. package/dist/components/j-c-tree/component.d.ts +277 -0
  23. package/dist/components/j-c-tree/types.d.ts +6 -4
  24. package/dist/components/j-c-tree-select/types.d.ts +5 -4
  25. package/dist/components/j-ch-bar/types.d.ts +6 -6
  26. package/dist/components/j-ch-bar-line/types.d.ts +6 -3
  27. package/dist/components/j-ch-bubble/types.d.ts +6 -3
  28. package/dist/components/j-ch-line/types.d.ts +11 -3
  29. package/dist/components/j-ch-pie-doughnut/types.d.ts +6 -3
  30. package/dist/components/j-ch-radar/types.d.ts +6 -3
  31. package/dist/components/j-q-autocomplete/types.d.ts +6 -4
  32. package/dist/components/j-q-button/types.d.ts +6 -4
  33. package/dist/components/j-q-button-dropdown/types.d.ts +6 -4
  34. package/dist/components/j-q-checkbox/types.d.ts +6 -4
  35. package/dist/components/j-q-confirm/types.d.ts +6 -4
  36. package/dist/components/j-q-confirm-dialog/component.d.ts +335 -0
  37. package/dist/components/j-q-confirm-dialog/index.d.ts +0 -321
  38. package/dist/components/j-q-confirm-dialog/types.d.ts +79 -1
  39. package/dist/components/j-q-date/types.d.ts +7 -4
  40. package/dist/components/j-q-date-month/types.d.ts +6 -4
  41. package/dist/components/j-q-date-year/types.d.ts +6 -4
  42. package/dist/components/j-q-datetime/types.d.ts +7 -7
  43. package/dist/components/j-q-detail-list/types.d.ts +6 -3
  44. package/dist/components/j-q-dialog/component.d.ts +409 -0
  45. package/dist/components/j-q-dialog/types.d.ts +4 -3
  46. package/dist/components/j-q-file/types.d.ts +3 -3
  47. package/dist/components/j-q-form-label/types.d.ts +6 -4
  48. package/dist/components/j-q-input/types.d.ts +6 -4
  49. package/dist/components/j-q-input-recognize/types.d.ts +6 -4
  50. package/dist/components/j-q-new-value/types.d.ts +6 -4
  51. package/dist/components/j-q-option-group/types.d.ts +6 -4
  52. package/dist/components/j-q-pagination/component.d.ts +92 -0
  53. package/dist/components/j-q-pagination/types.d.ts +6 -4
  54. package/dist/components/j-q-popover/types.d.ts +6 -4
  55. package/dist/components/j-q-search-form/types.d.ts +6 -4
  56. package/dist/components/j-q-select/types.d.ts +6 -4
  57. package/dist/components/j-q-table/index.d.ts +5 -2
  58. package/dist/components/j-q-table/types.d.ts +6 -4
  59. package/dist/components/j-q-tooltip/types.d.ts +6 -4
  60. package/dist/global.d.ts +115 -190
  61. package/dist/index.css +1 -1
  62. package/dist/index.d.ts +10 -8
  63. package/dist/resolver.cjs +1 -1
  64. package/dist/resolver.mjs +72 -25
  65. package/dist/rtcpt.cjs.js +1 -1
  66. package/dist/rtcpt.es.js +332 -327
  67. package/dist/utils/generated-component-names.d.ts +9 -0
  68. package/dist/utils/resolver.d.ts +3 -3
  69. package/dist/vue-shim.d.ts +6 -0
  70. package/package.json +9 -5
@@ -1,8 +1,11 @@
1
- import { DefineComponent, SlotsType } from 'vue';
1
+ import { RtcptComponent } from '../../component-types';
2
2
  import { QFieldProps, QCheckboxProps } from 'quasar';
3
3
  /** 勾选框模型值类型(兼容布尔/数组/任意值模式) */
4
4
  export type CheckboxModelValue = QCheckboxProps['modelValue'];
5
- /** JQCheckbox Props 接口 */
5
+ /**
6
+ * JQCheckbox Props 接口
7
+ * @description 勾选框组件,支持单值、数组和不确定态等多种勾选模式
8
+ */
6
9
  export interface JQCheckboxProps {
7
10
  /**
8
11
  * 绑定值(v-model)
@@ -85,7 +88,6 @@ export interface JQCheckboxProps {
85
88
  }
86
89
  /** JQCheckbox Emits 接口 */
87
90
  export interface JQCheckboxEmits {
88
- [key: string]: any;
89
91
  /**
90
92
  * 值变更事件
91
93
  * @param value 新值
@@ -107,7 +109,7 @@ export interface JQCheckboxSlots {
107
109
  export interface JQCheckboxExpose {
108
110
  }
109
111
  /** JQCheckbox 组件类型定义 */
110
- export type JQCheckboxComponent = DefineComponent<JQCheckboxProps, JQCheckboxExpose, {}, {}, {}, {}, SlotsType<JQCheckboxSlots>, {
112
+ export type JQCheckboxComponent = RtcptComponent<JQCheckboxProps, JQCheckboxExpose, JQCheckboxSlots, {
111
113
  change: (value: CheckboxModelValue) => true;
112
114
  'update:modelValue': (value: CheckboxModelValue) => true;
113
115
  }>;
@@ -1,5 +1,8 @@
1
- import { DefineComponent } from 'vue';
2
- /** JQConfirm Props 接口 */
1
+ import { RtcptComponent } from '../../component-types';
2
+ /**
3
+ * JQConfirm Props 接口
4
+ * @description 确认弹窗触发组件,包裹任意元素作为触发器,点击后弹出确认/取消操作卡片
5
+ */
3
6
  export interface JQConfirmProps {
4
7
  /**
5
8
  * 确认弹窗标题
@@ -19,7 +22,6 @@ export interface JQConfirmProps {
19
22
  }
20
23
  /** JQConfirm Emits 接口 */
21
24
  export interface JQConfirmEmits {
22
- [key: string]: any;
23
25
  /**
24
26
  * 确认事件
25
27
  * @description 用户点击确认按钮时触发
@@ -42,7 +44,7 @@ export type JQConfirmEmitsOptions = {
42
44
  confirm: () => true;
43
45
  };
44
46
  /** JQConfirm 组件类型定义 */
45
- export type JQConfirmComponent = DefineComponent<JQConfirmProps, JQConfirmExpose, {}, {}, {}, {}, {}, JQConfirmEmitsOptions>;
47
+ export type JQConfirmComponent = RtcptComponent<JQConfirmProps, JQConfirmExpose, JQConfirmSlots, JQConfirmEmitsOptions>;
46
48
  /** JQConfirm 实例类型 - 用于 ref 类型定义 */
47
49
  export type JQConfirmInstance = InstanceType<JQConfirmComponent> & JQConfirmExpose;
48
50
  /**
@@ -0,0 +1,335 @@
1
+ import { QCard, QCardSection, QDialog, QIcon, ComponentConstructor, QBtn } from 'quasar';
2
+ import { PropType, VNode, Component as VueComponent, DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, RendererNode, RendererElement, SlotsType, ComponentProvideOptions } from 'vue';
3
+ import { JQButtonSizeType, JQButtonTypeType, JQButtonSlots } from '../j-q-button/index';
4
+ import { JCTooltipProps, JCTooltipPlacementType, JCTooltipEffectType, JCTooltipTriggerType } from '../..';
5
+ declare const _default: DefineComponent<ExtractPropTypes<{
6
+ title: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ content: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ confirmButtonText: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ cancelButtonText: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ cancel: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ isDelete: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ color: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ icon: {
35
+ type: PropType<string | VNode | VueComponent>;
36
+ default: null;
37
+ };
38
+ showClose: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ }>, {
43
+ dialogRef: Ref<QDialog | undefined, QDialog | undefined>;
44
+ onDialogHide: () => void;
45
+ onOKClick(): void;
46
+ onCancelClick: () => void;
47
+ computedCancelText: ComputedRef<string>;
48
+ computedConfirmText: ComputedRef<string>;
49
+ computedButtonColor: ComputedRef<string>;
50
+ isIconString: ComputedRef<boolean>;
51
+ onCloseClick: () => void;
52
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("hide" | "ok")[], "hide" | "ok", PublicProps, Readonly< ExtractPropTypes<{
53
+ title: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ content: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ confirmButtonText: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ cancelButtonText: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ cancel: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ isDelete: {
74
+ type: BooleanConstructor;
75
+ default: boolean;
76
+ };
77
+ color: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ };
81
+ icon: {
82
+ type: PropType<string | VNode | VueComponent>;
83
+ default: null;
84
+ };
85
+ showClose: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ }>> & Readonly<{
90
+ onHide?: ((...args: any[]) => any) | undefined;
91
+ onOk?: ((...args: any[]) => any) | undefined;
92
+ }>, {
93
+ color: string;
94
+ title: string;
95
+ icon: string | VNode< RendererNode, RendererElement, {
96
+ [key: string]: any;
97
+ }> | VueComponent;
98
+ content: string;
99
+ cancel: boolean;
100
+ confirmButtonText: string;
101
+ cancelButtonText: string;
102
+ isDelete: boolean;
103
+ showClose: boolean;
104
+ }, {}, {
105
+ QDialog: ComponentConstructor<QDialog>;
106
+ QCard: ComponentConstructor<QCard>;
107
+ QCardSection: ComponentConstructor<QCardSection>;
108
+ QIcon: ComponentConstructor<QIcon>;
109
+ JQButton: DefineComponent<ExtractPropTypes<{
110
+ size: {
111
+ type: PropType< JQButtonSizeType>;
112
+ default: "large";
113
+ validator: (value: JQButtonSizeType) => boolean;
114
+ };
115
+ type: {
116
+ type: PropType< JQButtonTypeType>;
117
+ default: "primary";
118
+ validator: (value: JQButtonTypeType) => boolean;
119
+ };
120
+ label: {
121
+ type: StringConstructor;
122
+ default: string;
123
+ };
124
+ icon: {
125
+ type: StringConstructor;
126
+ default: undefined;
127
+ };
128
+ loading: {
129
+ type: BooleanConstructor;
130
+ default: boolean;
131
+ };
132
+ tips: {
133
+ type: (StringConstructor | NumberConstructor)[];
134
+ default: string;
135
+ };
136
+ tooltipConfig: {
137
+ type: PropType<Omit< JCTooltipProps, "content">>;
138
+ default: undefined;
139
+ };
140
+ }>, {
141
+ click: (e: Event) => void;
142
+ computedClass: ComputedRef<{
143
+ [x: string]: boolean;
144
+ 'j-q-button': boolean;
145
+ 'j-q-button--primary': boolean;
146
+ 'j-q-button--secondary': boolean;
147
+ 'j-q-button--text'?: undefined;
148
+ } | {
149
+ 'j-q-button--text': boolean;
150
+ 'j-q-button'?: undefined;
151
+ 'j-q-button--primary'?: undefined;
152
+ 'j-q-button--secondary'?: undefined;
153
+ }>;
154
+ iconPadding: ComputedRef<{
155
+ 'j-q-button-label': string | (() => any) | undefined;
156
+ }>;
157
+ mergedTooltipConfig: ComputedRef<{
158
+ modelValue?: boolean;
159
+ placement?: JCTooltipPlacementType;
160
+ effect?: JCTooltipEffectType;
161
+ trigger?: JCTooltipTriggerType;
162
+ disabled?: boolean;
163
+ showArrow?: boolean;
164
+ openDelay?: number;
165
+ closeDelay?: number;
166
+ maxWidth?: string;
167
+ offset?: number;
168
+ showOnFocus?: boolean;
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< JCTooltipProps, "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< JCTooltipProps, "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< JCTooltipPlacementType>;
224
+ default: string;
225
+ };
226
+ effect: {
227
+ type: PropType< JCTooltipEffectType>;
228
+ default: string;
229
+ };
230
+ trigger: {
231
+ type: PropType< JCTooltipTriggerType>;
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
+ showOnFocus: {
263
+ type: BooleanConstructor;
264
+ default: boolean;
265
+ };
266
+ }>, () => VNode< RendererNode, RendererElement, {
267
+ [key: string]: any;
268
+ }>[] | null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly< ExtractPropTypes<{
269
+ content: {
270
+ type: StringConstructor;
271
+ default: string;
272
+ };
273
+ placement: {
274
+ type: PropType< JCTooltipPlacementType>;
275
+ default: string;
276
+ };
277
+ effect: {
278
+ type: PropType< JCTooltipEffectType>;
279
+ default: string;
280
+ };
281
+ trigger: {
282
+ type: PropType< JCTooltipTriggerType>;
283
+ default: string;
284
+ };
285
+ disabled: {
286
+ type: BooleanConstructor;
287
+ default: boolean;
288
+ };
289
+ showArrow: {
290
+ type: BooleanConstructor;
291
+ default: boolean;
292
+ };
293
+ openDelay: {
294
+ type: NumberConstructor;
295
+ default: number;
296
+ };
297
+ closeDelay: {
298
+ type: NumberConstructor;
299
+ default: number;
300
+ };
301
+ maxWidth: {
302
+ type: StringConstructor;
303
+ default: string;
304
+ };
305
+ offset: {
306
+ type: NumberConstructor;
307
+ default: number;
308
+ };
309
+ modelValue: {
310
+ type: BooleanConstructor;
311
+ default: undefined;
312
+ };
313
+ showOnFocus: {
314
+ type: BooleanConstructor;
315
+ default: boolean;
316
+ };
317
+ }>> & Readonly<{
318
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
319
+ }>, {
320
+ modelValue: boolean;
321
+ content: string;
322
+ placement: JCTooltipPlacementType;
323
+ effect: JCTooltipEffectType;
324
+ trigger: JCTooltipTriggerType;
325
+ disabled: boolean;
326
+ showArrow: boolean;
327
+ openDelay: number;
328
+ closeDelay: number;
329
+ maxWidth: string;
330
+ offset: number;
331
+ showOnFocus: boolean;
332
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
333
+ }, {}, string, ComponentProvideOptions, true, {}, any>;
334
+ }, {}, string, ComponentProvideOptions, true, {}, any>;
335
+ export default _default;