rtcpts 0.0.62 → 0.0.64

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.
@@ -2,6 +2,7 @@ import { PropType, SlotsType, DefineComponent, ExtractPropTypes, ComputedRef, Wr
2
2
  import { QBtn, ComponentConstructor, QIcon, QInputProps, QInput } from 'quasar';
3
3
  import { JCTooltipPlacementType, JCTooltipEffectType, JCTooltipTriggerType } from '../..';
4
4
  import { t } from '../../composables/useI18n.ts';
5
+ import { JQInputSlots } from '../j-q-input/types';
5
6
  type TModelValue = string[];
6
7
  declare const _default: DefineComponent<ExtractPropTypes<{
7
8
  modelValue: {
@@ -471,12 +472,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
471
472
  customType: "text" | "password" | "secret";
472
473
  smInput: boolean;
473
474
  preserveLeadingSpace: boolean;
474
- }, SlotsType<{
475
- after?: void | undefined;
476
- append?: void | undefined;
477
- prepend?: void | undefined;
478
- default?: void | undefined;
479
- }>, {
475
+ }, SlotsType< JQInputSlots>, {
480
476
  QInput: ComponentConstructor<QInput>;
481
477
  }, {}, string, ComponentProvideOptions, true, {}, any>;
482
478
  QBtn: ComponentConstructor<QBtn>;
@@ -2,6 +2,7 @@ import { QFieldProps, QTreeProps, QField, QIcon, QPopupProxy, QTree, ComponentCo
2
2
  import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, CreateComponentPublicInstanceWithMixins, WritableComputedRef, ComputedRef, ComponentOptionsMixin, PublicProps, VNode, RendererNode, RendererElement, ComponentProvideOptions, GlobalComponents, GlobalDirectives } from 'vue';
3
3
  import { t } from '../../composables/useI18n.ts';
4
4
  import { JCTooltipEffectType, JCTooltipPlacementType, JCTooltipTriggerType } from '../..';
5
+ import { JQInputSlots } from '../j-q-input/types';
5
6
  type ModelValue = (string | number)[];
6
7
  type Option = Record<string, any>;
7
8
  type TickStrategy = QTreeProps['tickStrategy'];
@@ -931,12 +932,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
931
932
  customType: "text" | "password" | "secret";
932
933
  smInput: boolean;
933
934
  preserveLeadingSpace: boolean;
934
- }, SlotsType<{
935
- after?: void | undefined;
936
- append?: void | undefined;
937
- prepend?: void | undefined;
938
- default?: void | undefined;
939
- }>, {
935
+ }, SlotsType< JQInputSlots>, {
940
936
  QInput: ComponentConstructor<QInput>;
941
937
  }, {}, string, ComponentProvideOptions, true, {}, any>;
942
938
  JCTree: DefineComponent<ExtractPropTypes<{
@@ -78,6 +78,8 @@ export interface JQButtonSlots {
78
78
  }
79
79
  /** JQButton 暴露的方法和属性 */
80
80
  export interface JQButtonExpose {
81
+ /** 根 DOM 元素(内部 <button>,绕过 Fragment $el 链) */
82
+ readonly $el: HTMLElement | undefined;
81
83
  /** 触发点击事件(等价于对内部 <button> 调用原生 click()) */
82
84
  click: () => void;
83
85
  }
@@ -1,19 +1,18 @@
1
- import { QVueGlobals } from 'quasar';
2
- import { JQConfirmDialogShowParams, IJQConfirmDialog } from './types';
3
- export type { JQConfirmDialogShowParams, IJQConfirmDialog } from './types';
4
- declare class GlobalConfirm implements IJQConfirmDialog {
5
- /**
6
- * 设置 Quasar 实例(在 rtcptInit 中调用)
7
- */
8
- setQuasarInstance(instance: QVueGlobals): void;
9
- /**
10
- * 弹出自定义确认对话框,返回一个 Promise,resolve(true) 表示确定,resolve(false) 表示取消/关闭。
11
- */
12
- show({ title, color, content, confirmButtonText, cancelButtonText, showCancelButton, isDelete, icon, showClose }: JQConfirmDialogShowParams): Promise<boolean>;
13
- }
14
- declare const globalConfirm: GlobalConfirm;
15
- export default globalConfirm;
16
- type: StringConstructor;
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;
17
16
  default: string;
18
17
  };
19
18
  cancelButtonText: {
@@ -1,6 +1,7 @@
1
1
  import { PropType, DefineComponent, ExtractPropTypes, Ref, CreateComponentPublicInstanceWithMixins, ComputedRef, ComponentOptionsMixin, PublicProps, SlotsType, GlobalComponents, GlobalDirectives, ComponentProvideOptions, WritableComputedRef, Slot } from 'vue';
2
2
  import { QInputProps, QInput, ComponentConstructor, QSelectProps, QSelect, QSpinner, QItem, QItemSection, QIcon, ValidationRule } from 'quasar';
3
3
  import { t } from '../..';
4
+ import { JQInputSlots } from '../j-q-input/types';
4
5
  declare const _default: DefineComponent<ExtractPropTypes<{
5
6
  /** 初始值 */
6
7
  modelValue: {
@@ -196,12 +197,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
196
197
  customType: "text" | "password" | "secret";
197
198
  smInput: boolean;
198
199
  preserveLeadingSpace: boolean;
199
- }, true, {}, SlotsType<{
200
- after?: void | undefined;
201
- append?: void | undefined;
202
- prepend?: void | undefined;
203
- default?: void | undefined;
204
- }>, {
200
+ }, true, {}, SlotsType<JQInputSlots>, {
205
201
  QInput: ComponentConstructor<QInput>;
206
202
  } & GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
207
203
  P: {};
@@ -473,12 +469,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
473
469
  customType: "text" | "password" | "secret";
474
470
  smInput: boolean;
475
471
  preserveLeadingSpace: boolean;
476
- }, true, {}, SlotsType<{
477
- after?: void | undefined;
478
- append?: void | undefined;
479
- prepend?: void | undefined;
480
- default?: void | undefined;
481
- }>, {
472
+ }, true, {}, SlotsType<JQInputSlots>, {
482
473
  QInput: ComponentConstructor<QInput>;
483
474
  } & GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
484
475
  P: {};
@@ -1477,12 +1468,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
1477
1468
  customType: "text" | "password" | "secret";
1478
1469
  smInput: boolean;
1479
1470
  preserveLeadingSpace: boolean;
1480
- }, SlotsType<{
1481
- after?: void | undefined;
1482
- append?: void | undefined;
1483
- prepend?: void | undefined;
1484
- default?: void | undefined;
1485
- }>, {
1471
+ }, SlotsType<JQInputSlots>, {
1486
1472
  QInput: ComponentConstructor<QInput>;
1487
1473
  }, {}, string, ComponentProvideOptions, true, {}, any>;
1488
1474
  JQSelect: DefineComponent<ExtractPropTypes<{
@@ -1,5 +1,6 @@
1
1
  import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  import { QInput, QInputProps, ComponentConstructor } from 'quasar';
3
+ import { JQInputSlots } from './types';
3
4
  import { t } from '../../composables/useI18n.ts';
4
5
  type TModelValue = QInputProps['modelValue'];
5
6
  type TInputLimitFn = (value: TModelValue) => boolean;
@@ -192,12 +193,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
192
193
  customType: TCustomType;
193
194
  smInput: boolean;
194
195
  preserveLeadingSpace: boolean;
195
- }, SlotsType<{
196
- after?: void | undefined;
197
- append?: void | undefined;
198
- prepend?: void | undefined;
199
- default?: void | undefined;
200
- }>, {
196
+ }, SlotsType<JQInputSlots>, {
201
197
  QInput: ComponentConstructor<QInput>;
202
198
  }, {}, string, ComponentProvideOptions, true, {}, any>;
203
199
  export default _default;
@@ -99,11 +99,11 @@ export interface JQInputSlots {
99
99
  after?: () => any;
100
100
  /** 附加内容插槽 */
101
101
  append?: (props: {
102
- 'toggle-visibility': () => void;
103
- 'custom-type': InputCustomType;
104
- 'raw-value': InputModelValue;
105
- 'display-value': string;
106
- 'is-content-visible': boolean;
102
+ customType: InputCustomType;
103
+ displayValue: string;
104
+ isContentVisible: boolean;
105
+ rawValue: InputModelValue;
106
+ toggleVisibility: () => void;
107
107
  }) => any;
108
108
  /** 前置内容插槽 */
109
109
  prepend?: () => any;
@@ -1,6 +1,7 @@
1
1
  import { PropType, DefineComponent, ExtractPropTypes, Ref, CreateComponentPublicInstanceWithMixins, ComputedRef, ComponentOptionsMixin, PublicProps, SlotsType, GlobalComponents, GlobalDirectives, ComponentProvideOptions } from 'vue';
2
2
  import { t } from '../../composables/useI18n.ts';
3
3
  import { QInputProps, QInput, ComponentConstructor } from 'quasar';
4
+ import { JQInputSlots } from '../j-q-input/types';
4
5
  type TRule = RegExp | ((value: string) => boolean | string);
5
6
  type TInputRule = (value: string) => boolean | string;
6
7
  declare const _default: DefineComponent<ExtractPropTypes<{
@@ -206,12 +207,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
206
207
  customType: "text" | "password" | "secret";
207
208
  smInput: boolean;
208
209
  preserveLeadingSpace: boolean;
209
- }, true, {}, SlotsType<{
210
- after?: void | undefined;
211
- append?: void | undefined;
212
- prepend?: void | undefined;
213
- default?: void | undefined;
214
- }>, {
210
+ }, true, {}, SlotsType<JQInputSlots>, {
215
211
  QInput: ComponentConstructor<QInput>;
216
212
  } & GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
217
213
  P: {};
@@ -483,12 +479,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
483
479
  customType: "text" | "password" | "secret";
484
480
  smInput: boolean;
485
481
  preserveLeadingSpace: boolean;
486
- }, true, {}, SlotsType<{
487
- after?: void | undefined;
488
- append?: void | undefined;
489
- prepend?: void | undefined;
490
- default?: void | undefined;
491
- }>, {
482
+ }, true, {}, SlotsType<JQInputSlots>, {
492
483
  QInput: ComponentConstructor<QInput>;
493
484
  } & GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
494
485
  P: {};
@@ -909,12 +900,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
909
900
  customType: "text" | "password" | "secret";
910
901
  smInput: boolean;
911
902
  preserveLeadingSpace: boolean;
912
- }, SlotsType<{
913
- after?: void | undefined;
914
- append?: void | undefined;
915
- prepend?: void | undefined;
916
- default?: void | undefined;
917
- }>, {
903
+ }, SlotsType<JQInputSlots>, {
918
904
  QInput: ComponentConstructor<QInput>;
919
905
  }, {}, string, ComponentProvideOptions, true, {}, any>;
920
906
  }, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -1,4 +1,4 @@
1
- import { SlotsType, DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  import { QPopupProxy, QCard, QCardSection, ComponentConstructor } from 'quasar';
3
3
  declare const _default: DefineComponent<ExtractPropTypes<{
4
4
  title: {
@@ -14,12 +14,35 @@ declare const _default: DefineComponent<ExtractPropTypes<{
14
14
  default: string;
15
15
  validator: (val: string) => boolean;
16
16
  };
17
+ showDelay: {
18
+ type: NumberConstructor;
19
+ default: number;
20
+ };
21
+ hideDelay: {
22
+ type: NumberConstructor;
23
+ default: number;
24
+ };
25
+ offset: {
26
+ type: PropType<[number, number]>;
27
+ default: () => [number, number];
28
+ };
17
29
  }>, {
18
- popupRef: any;
19
- rootRef: any;
30
+ popupRef: Ref<{
31
+ show: () => void;
32
+ hide: () => void;
33
+ toggle: () => void;
34
+ } | undefined, {
35
+ show: () => void;
36
+ hide: () => void;
37
+ toggle: () => void;
38
+ } | undefined>;
39
+ rootRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
20
40
  popoverStyle: ComputedRef<{
21
41
  minWidth: string;
22
42
  }>;
43
+ onTriggerClick: () => void;
44
+ onTriggerMouseEnter: () => void;
45
+ onTriggerMouseLeave: () => void;
23
46
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
24
47
  title: {
25
48
  type: StringConstructor;
@@ -34,10 +57,25 @@ declare const _default: DefineComponent<ExtractPropTypes<{
34
57
  default: string;
35
58
  validator: (val: string) => boolean;
36
59
  };
60
+ showDelay: {
61
+ type: NumberConstructor;
62
+ default: number;
63
+ };
64
+ hideDelay: {
65
+ type: NumberConstructor;
66
+ default: number;
67
+ };
68
+ offset: {
69
+ type: PropType<[number, number]>;
70
+ default: () => [number, number];
71
+ };
37
72
  }>> & Readonly<{}>, {
38
73
  title: string;
39
74
  trigger: string;
75
+ offset: [number, number];
40
76
  width: string | number;
77
+ hideDelay: number;
78
+ showDelay: number;
41
79
  }, SlotsType<{
42
80
  default: void;
43
81
  content: void;
@@ -23,6 +23,21 @@ export interface JQPopoverProps {
23
23
  * @default 'click'
24
24
  */
25
25
  trigger?: PopoverTriggerType;
26
+ /**
27
+ * hover 模式下显示延迟(毫秒)
28
+ * @default 0
29
+ */
30
+ showDelay?: number;
31
+ /**
32
+ * hover 模式下隐藏延迟(毫秒)
33
+ * @default 0
34
+ */
35
+ hideDelay?: number;
36
+ /**
37
+ * 弹出框偏移量 [x, y]
38
+ * @default [12, 12]
39
+ */
40
+ offset?: [number, number];
26
41
  }
27
42
  /** JQPopover Emits 接口 */
28
43
  export interface JQPopoverEmits {
@@ -38,6 +53,12 @@ export interface JQPopoverSlots {
38
53
  }
39
54
  /** JQPopover 暴露的方法和属性 */
40
55
  export interface JQPopoverExpose {
56
+ /** 显示弹出框 */
57
+ show: () => void;
58
+ /** 隐藏弹出框 */
59
+ hide: () => void;
60
+ /** 切换弹出框显示状态 */
61
+ toggle: () => void;
41
62
  }
42
63
  /** JQPopover 组件类型定义 */
43
64
  export type JQPopoverComponent = DefineComponent<JQPopoverProps, JQPopoverExpose, {}, {}, {}, {}, SlotsType<JQPopoverSlots>, {}>;