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
@@ -0,0 +1,92 @@
1
+ import { QInnerLoading, QInput, QPagination, QSelect, ComponentConstructor } from 'quasar';
2
+ import { DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { t } from '../../composables/useI18n.ts';
4
+ declare const _default: DefineComponent<ExtractPropTypes<{
5
+ currentPage: {
6
+ type: NumberConstructor;
7
+ default: number;
8
+ };
9
+ pageSize: {
10
+ type: NumberConstructor;
11
+ default: number;
12
+ };
13
+ total: {
14
+ type: NumberConstructor;
15
+ default: number;
16
+ };
17
+ pageSizeOptions: {
18
+ type: () => number[];
19
+ default: () => number[];
20
+ };
21
+ mini: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ loading: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ }>, {
30
+ t: t;
31
+ internalInfo: {
32
+ inputPage: string | number;
33
+ currentPage: number;
34
+ pageSize: number;
35
+ total: number;
36
+ };
37
+ loading: Ref<boolean, boolean>;
38
+ mini: Ref<boolean, boolean>;
39
+ maxPages: ComputedRef<5 | 6>;
40
+ totalPages: ComputedRef<number>;
41
+ pagePlaceholder: ComputedRef<string>;
42
+ pageMask: ComputedRef<string>;
43
+ pageSizeOptions: ComputedRef<{
44
+ label: string;
45
+ value: number;
46
+ }[]>;
47
+ handlePageSizeChange: () => void;
48
+ handlePageChange: () => void;
49
+ handleJumpToPage: () => void;
50
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:currentPage" | "update:pageSize")[], "change" | "update:currentPage" | "update:pageSize", PublicProps, Readonly< ExtractPropTypes<{
51
+ currentPage: {
52
+ type: NumberConstructor;
53
+ default: number;
54
+ };
55
+ pageSize: {
56
+ type: NumberConstructor;
57
+ default: number;
58
+ };
59
+ total: {
60
+ type: NumberConstructor;
61
+ default: number;
62
+ };
63
+ pageSizeOptions: {
64
+ type: () => number[];
65
+ default: () => number[];
66
+ };
67
+ mini: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ loading: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ }>> & Readonly<{
76
+ onChange?: ((...args: any[]) => any) | undefined;
77
+ "onUpdate:currentPage"?: ((...args: any[]) => any) | undefined;
78
+ "onUpdate:pageSize"?: ((...args: any[]) => any) | undefined;
79
+ }>, {
80
+ loading: boolean;
81
+ total: number;
82
+ currentPage: number;
83
+ pageSize: number;
84
+ pageSizeOptions: number[];
85
+ mini: boolean;
86
+ }, {}, {
87
+ QInnerLoading: ComponentConstructor<QInnerLoading>;
88
+ QSelect: ComponentConstructor<QSelect>;
89
+ QPagination: ComponentConstructor<QPagination>;
90
+ QInput: ComponentConstructor<QInput>;
91
+ }, {}, string, ComponentProvideOptions, true, {}, any>;
92
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { DefineComponent, SlotsType } from 'vue';
1
+ import { RtcptComponent } from '../../component-types';
2
2
  /** 分页配置接口 */
3
3
  export interface PaginationConfig {
4
4
  /** 当前页码 */
@@ -8,7 +8,10 @@ export interface PaginationConfig {
8
8
  /** 总条数 */
9
9
  total: number;
10
10
  }
11
- /** JQPagination Props 接口 */
11
+ /**
12
+ * JQPagination Props 接口
13
+ * @description 分页组件,提供页码导航、每页条数选择和总条数显示,支持 mini 简洁模式
14
+ */
12
15
  export interface JQPaginationProps {
13
16
  /**
14
17
  * 当前页码
@@ -43,7 +46,6 @@ export interface JQPaginationProps {
43
46
  }
44
47
  /** JQPagination Emits 接口 */
45
48
  export interface JQPaginationEmits {
46
- [key: string]: any;
47
49
  /**
48
50
  * 更新当前页码事件
49
51
  * @param page 新页码
@@ -70,7 +72,7 @@ export interface JQPaginationSlots {
70
72
  export interface JQPaginationExpose {
71
73
  }
72
74
  /** JQPagination 组件类型定义 */
73
- export type JQPaginationComponent = DefineComponent<JQPaginationProps, JQPaginationExpose, {}, {}, {}, {}, SlotsType<JQPaginationSlots>, {
75
+ export type JQPaginationComponent = RtcptComponent<JQPaginationProps, JQPaginationExpose, JQPaginationSlots, {
74
76
  'update:currentPage': (page: number) => true;
75
77
  'update:pageSize': (size: number) => true;
76
78
  change: (config: PaginationConfig) => true;
@@ -1,4 +1,4 @@
1
- import { DefineComponent, SlotsType } from 'vue';
1
+ import { RtcptComponent } from '../../component-types';
2
2
  /** 弹出框触发方式 */
3
3
  export declare const PopoverTrigger: {
4
4
  readonly CLICK: "click";
@@ -6,7 +6,10 @@ export declare const PopoverTrigger: {
6
6
  };
7
7
  /** 弹出框触发方式类型 */
8
8
  export type PopoverTriggerType = (typeof PopoverTrigger)[keyof typeof PopoverTrigger];
9
- /** JQPopover Props 接口 */
9
+ /**
10
+ * JQPopover Props 接口
11
+ * @description 弹出框组件,包裹任意元素作为触发器,支持点击和悬停两种触发方式,用于展示提示或操作内容
12
+ */
10
13
  export interface JQPopoverProps {
11
14
  /**
12
15
  * 弹出框标题
@@ -41,7 +44,6 @@ export interface JQPopoverProps {
41
44
  }
42
45
  /** JQPopover Emits 接口 */
43
46
  export interface JQPopoverEmits {
44
- [key: string]: any;
45
47
  }
46
48
  /** JQPopover Slots 接口 */
47
49
  export interface JQPopoverSlots {
@@ -61,7 +63,7 @@ export interface JQPopoverExpose {
61
63
  toggle: () => void;
62
64
  }
63
65
  /** JQPopover 组件类型定义 */
64
- export type JQPopoverComponent = DefineComponent<JQPopoverProps, JQPopoverExpose, {}, {}, {}, {}, SlotsType<JQPopoverSlots>, {}>;
66
+ export type JQPopoverComponent = RtcptComponent<JQPopoverProps, JQPopoverExpose, JQPopoverSlots>;
65
67
  /** JQPopover 实例类型 - 用于 ref 类型定义 */
66
68
  export type JQPopoverInstance = InstanceType<JQPopoverComponent> & JQPopoverExpose;
67
69
  /**
@@ -1,7 +1,10 @@
1
- import { DefineComponent, SlotsType } from 'vue';
1
+ import { RtcptComponent } from '../../component-types';
2
2
  /** 搜索表单数据类型 */
3
3
  export type SearchFormData = Record<string, any>;
4
- /** JQSearchForm Props 接口 */
4
+ /**
5
+ * JQSearchForm Props 接口
6
+ * @description 搜索表单组件,提供查询和重置按钮,支持自定义表单项插槽和额外操作区域
7
+ */
5
8
  export interface JQSearchFormProps {
6
9
  /**
7
10
  * 表单数据对象
@@ -28,7 +31,6 @@ export interface JQSearchFormProps {
28
31
  }
29
32
  /** JQSearchForm Emits 接口 */
30
33
  export interface JQSearchFormEmits {
31
- [key: string]: any;
32
34
  /**
33
35
  * 更新 modelValue 事件
34
36
  * @param value 新值
@@ -59,7 +61,7 @@ export interface JQSearchFormExpose {
59
61
  searchFormRef: any;
60
62
  }
61
63
  /** JQSearchForm 组件类型定义 */
62
- export type JQSearchFormComponent = DefineComponent<JQSearchFormProps, JQSearchFormExpose, {}, {}, {}, {}, SlotsType<JQSearchFormSlots>, {
64
+ export type JQSearchFormComponent = RtcptComponent<JQSearchFormProps, JQSearchFormExpose, JQSearchFormSlots, {
63
65
  'update:modelValue': (value: SearchFormData) => true;
64
66
  query: () => true;
65
67
  reset: () => true;
@@ -1,4 +1,4 @@
1
- import { DefineComponent, SlotsType } from 'vue';
1
+ import { RtcptComponent } from '../../component-types';
2
2
  import { QSelectProps, QInputProps } from 'quasar';
3
3
  /** 选择器模型值类型 */
4
4
  export type SelectModelValue = QSelectProps['modelValue'];
@@ -6,7 +6,10 @@ export type SelectModelValue = QSelectProps['modelValue'];
6
6
  export type SelectFilterFn = (inputValue: string, callback: (filterOptions?: any[]) => void) => void;
7
7
  /** 值显示函数类型 */
8
8
  export type SelectValueDisplayFn = (value: SelectModelValue) => string;
9
- /** JQSelect Props 接口 */
9
+ /**
10
+ * JQSelect Props 接口
11
+ * @description 下拉选择器组件,支持单选、多选、筛选和远程搜索
12
+ */
10
13
  export interface JQSelectProps {
11
14
  /**
12
15
  * 绑定值
@@ -130,7 +133,6 @@ export interface JQSelectProps {
130
133
  }
131
134
  /** JQSelect Emits 接口 */
132
135
  export interface JQSelectEmits {
133
- [key: string]: any;
134
136
  /**
135
137
  * 更新 modelValue 事件
136
138
  * @param value 新值
@@ -178,7 +180,7 @@ export interface JQSelectExpose {
178
180
  resetValidation: () => void;
179
181
  }
180
182
  /** JQSelect 组件类型定义 */
181
- export type JQSelectComponent = DefineComponent<JQSelectProps, JQSelectExpose, {}, {}, {}, {}, SlotsType<JQSelectSlots>, {
183
+ export type JQSelectComponent = RtcptComponent<JQSelectProps, JQSelectExpose, JQSelectSlots, {
182
184
  'update:modelValue': (value: SelectModelValue) => true;
183
185
  'manual-change': (value: SelectModelValue) => true;
184
186
  }>;
@@ -130,7 +130,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
130
130
  setEllipsisRef: (el: any, key: string) => void;
131
131
  shouldShowTooltip: (key: string) => boolean;
132
132
  columnConstrained: Ref<Map<string, boolean> & Omit<Map<string, boolean>, keyof Map<any, any>>, Map<string, boolean> | (Map<string, boolean> & Omit<Map<string, boolean>, keyof Map<any, any>>)>;
133
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
133
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:selected" | "paginationChange")[], "update:selected" | "paginationChange", PublicProps, Readonly< ExtractPropTypes<{
134
134
  autoScrollOnChangePage: {
135
135
  type: BooleanConstructor;
136
136
  default: boolean;
@@ -200,7 +200,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
200
200
  type: () => SelectionConditions | null;
201
201
  default: null;
202
202
  };
203
- }>> & Readonly<{}>, {
203
+ }>> & Readonly<{
204
+ "onUpdate:selected"?: ((...args: any[]) => any) | undefined;
205
+ onPaginationChange?: ((...args: any[]) => any) | undefined;
206
+ }>, {
204
207
  flat: boolean;
205
208
  dense: boolean;
206
209
  loading: boolean;
@@ -1,4 +1,4 @@
1
- import { DefineComponent, SlotsType } from 'vue';
1
+ import { RtcptComponent } from '../../component-types';
2
2
  import { QTableColumn } from 'quasar';
3
3
  /** 选择条件接口 */
4
4
  export interface SelectionConditions {
@@ -25,7 +25,10 @@ export interface TableColumn extends Partial<QTableColumn> {
25
25
  whiteSpace?: number | boolean;
26
26
  [key: string]: any;
27
27
  }
28
- /** JQTable Props 接口 */
28
+ /**
29
+ * JQTable Props 接口
30
+ * @description 表格组件,基于 Quasar QTable 封装,集成多选、自定义列配置和内置分页功能
31
+ */
29
32
  export interface JQTableProps {
30
33
  /**
31
34
  * 切换页面时是否自动滚动
@@ -117,7 +120,6 @@ export interface JQTableProps {
117
120
  }
118
121
  /** JQTable Emits 接口 */
119
122
  export interface JQTableEmits {
120
- [key: string]: any;
121
123
  /**
122
124
  * 更新选中项事件
123
125
  * @param value 选中的行数据
@@ -193,7 +195,7 @@ export interface JQTableExpose {
193
195
  DEFAULT_ROWS_PER_PAGE: number;
194
196
  }
195
197
  /** JQTable 组件类型定义 */
196
- export type JQTableComponent = DefineComponent<JQTableProps, JQTableExpose, {}, {}, {}, {}, SlotsType<JQTableSlots>, {
198
+ export type JQTableComponent = RtcptComponent<JQTableProps, JQTableExpose, JQTableSlots, {
197
199
  'update:selected': (value: any[]) => true;
198
200
  paginationChange: (data: any) => true;
199
201
  }>;
@@ -1,5 +1,8 @@
1
- import { DefineComponent, SlotsType } from 'vue';
2
- /** JQTooltip Props 接口 */
1
+ import { RtcptComponent } from '../../component-types';
2
+ /**
3
+ * JQTooltip Props 接口
4
+ * @description 文本提示组件,内容超出指定行数时显示省略号,悬停时通过 Quasar Tooltip 展示完整文本
5
+ */
3
6
  export interface JQTooltipProps {
4
7
  /**
5
8
  * 显示内容
@@ -19,7 +22,6 @@ export interface JQTooltipProps {
19
22
  }
20
23
  /** JQTooltip Emits 接口 */
21
24
  export interface JQTooltipEmits {
22
- [key: string]: any;
23
25
  }
24
26
  /** JQTooltip Slots 接口 */
25
27
  export interface JQTooltipSlots {
@@ -31,7 +33,7 @@ export interface JQTooltipSlots {
31
33
  export interface JQTooltipExpose {
32
34
  }
33
35
  /** JQTooltip 组件类型定义 */
34
- export type JQTooltipComponent = DefineComponent<JQTooltipProps, JQTooltipExpose, {}, {}, {}, {}, SlotsType<JQTooltipSlots>, {}>;
36
+ export type JQTooltipComponent = RtcptComponent<JQTooltipProps, JQTooltipExpose, JQTooltipSlots>;
35
37
  /** JQTooltip 实例类型 - 用于 ref 类型定义 */
36
38
  export type JQTooltipInstance = InstanceType<JQTooltipComponent> & JQTooltipExpose;
37
39
  /**