@opentiny/tiny-robot 0.3.2 → 0.3.4-beta.1

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/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { AllowedComponentProps } from 'vue';
2
2
  import { App } from 'vue';
3
+ import { Attrs } from 'vue';
3
4
  import { Component } from 'vue';
4
5
  import { ComponentCustomProperties } from 'vue';
5
6
  import { ComponentCustomProps } from 'vue';
@@ -15,7 +16,6 @@ import { CSSProperties } from 'vue';
15
16
  import { DebuggerEvent } from 'vue';
16
17
  import { DefineComponent } from 'vue';
17
18
  import { Directive } from 'vue';
18
- import { ExtractPropTypes } from 'vue';
19
19
  import { GlobalComponents } from 'vue';
20
20
  import { GlobalDirectives } from 'vue';
21
21
  import { MaybeComputedElementRef } from '@vueuse/core';
@@ -23,7 +23,6 @@ import { MaybeRefOrGetter } from 'vue';
23
23
  import { nextTick } from 'vue';
24
24
  import { OnCleanup } from '@vue/reactivity';
25
25
  import { Options } from 'markdown-it';
26
- import { PropType } from 'vue';
27
26
  import { PublicProps } from 'vue';
28
27
  import { Ref } from 'vue';
29
28
  import { RendererElement } from 'vue';
@@ -81,9 +80,7 @@ readonly show?: boolean | undefined;
81
80
  readonly transitionProps?: TransitionProps | undefined;
82
81
  readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
83
82
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
84
- $attrs: {
85
- [x: string]: unknown;
86
- };
83
+ $attrs: Attrs;
87
84
  $refs: {
88
85
  [x: string]: unknown;
89
86
  };
@@ -145,11 +142,11 @@ preventOverflow?: boolean;
145
142
  show?: boolean;
146
143
  transitionProps?: TransitionProps;
147
144
  triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
148
- }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
149
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
150
- popperRef: ComputedRef<HTMLDivElement | null>;
145
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & {
146
+ triggerRef: HTMLElement | SVGElement | null | undefined;
147
+ popperRef: HTMLDivElement | null;
151
148
  update: () => void;
152
- }> & {} & ComponentCustomProperties & {} & {
149
+ } & {} & ComponentCustomProperties & {} & {
153
150
  $slots: Readonly<{
154
151
  trigger?: () => VNode[];
155
152
  content?: () => VNode[];
@@ -293,9 +290,7 @@ readonly show?: boolean | undefined;
293
290
  readonly transitionProps?: TransitionProps | undefined;
294
291
  readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
295
292
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
296
- $attrs: {
297
- [x: string]: unknown;
298
- };
293
+ $attrs: Attrs;
299
294
  $refs: {
300
295
  [x: string]: unknown;
301
296
  };
@@ -357,11 +352,11 @@ preventOverflow?: boolean;
357
352
  show?: boolean;
358
353
  transitionProps?: TransitionProps;
359
354
  triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
360
- }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
361
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
362
- popperRef: ComputedRef<HTMLDivElement | null>;
355
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & {
356
+ triggerRef: HTMLElement | SVGElement | null | undefined;
357
+ popperRef: HTMLDivElement | null;
363
358
  update: () => void;
364
- }> & {} & ComponentCustomProperties & {} & {
359
+ } & {} & ComponentCustomProperties & {} & {
365
360
  $slots: Readonly<{
366
361
  trigger?: () => VNode[];
367
362
  content?: () => VNode[];
@@ -391,7 +386,7 @@ clear: () => any;
391
386
  blur: (event: FocusEvent) => any;
392
387
  cancel: () => any;
393
388
  focus: (event: FocusEvent) => any;
394
- submit: (value: string) => any;
389
+ submit: (value: string, templateData?: UserItem[] | undefined) => any;
395
390
  "update:modelValue": (value: string) => any;
396
391
  "update:templateData": (value: UserItem[]) => any;
397
392
  "speech-start": () => any;
@@ -407,7 +402,7 @@ onClear?: (() => any) | undefined;
407
402
  onBlur?: ((event: FocusEvent) => any) | undefined;
408
403
  onCancel?: (() => any) | undefined;
409
404
  onFocus?: ((event: FocusEvent) => any) | undefined;
410
- onSubmit?: ((value: string) => any) | undefined;
405
+ onSubmit?: ((value: string, templateData?: UserItem[] | undefined) => any) | undefined;
411
406
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
412
407
  "onUpdate:templateData"?: ((value: UserItem[]) => any) | undefined;
413
408
  "onSpeech-start"?: (() => any) | undefined;
@@ -420,17 +415,17 @@ onSubmit?: ((value: string) => any) | undefined;
420
415
  "onFiles-selected"?: ((files: File[]) => any) | undefined;
421
416
  }>, {
422
417
  disabled: boolean;
423
- modelValue: string;
424
418
  placeholder: string;
425
419
  mode: InputMode;
426
420
  loading: boolean;
427
- autofocus: boolean;
428
421
  allowSpeech: boolean;
429
422
  allowFiles: boolean;
430
423
  submitType: SubmitTrigger;
431
424
  stopText: string;
432
425
  autoSize: AutoSize;
426
+ modelValue: string;
433
427
  suggestions: ISuggestionItem[];
428
+ autofocus: boolean;
434
429
  clearable: boolean;
435
430
  maxLength: number;
436
431
  showWordLimit: boolean;
@@ -480,456 +475,8 @@ onSubmit?: (() => any) | undefined;
480
475
  clearHistory: () => void;
481
476
  activateFirstField: () => void;
482
477
  }, {}, {}, {}, {}> | null;
483
- inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
484
- _constants: {
485
- type: ObjectConstructor;
486
- default: () => {
487
- INPUT_PC: string;
488
- INPUTGROUP_PC: string;
489
- INPUT_MOBILE: string;
490
- INPUTGROUP_MOBILE: string;
491
- Mode: string;
492
- inputMode(mode: any): string;
493
- inputGroupMode(mode: any): string;
494
- VALIDATE_ICON: {
495
- Validating: string;
496
- Success: string;
497
- Error: string;
498
- };
499
- COMPONENT_NAME: {
500
- FormItem: string;
501
- };
502
- MASKSYMBOL: string;
503
- TEXTAREA_HEIGHT_MOBILE: number;
504
- };
505
- };
506
- name: StringConstructor;
507
- size: StringConstructor;
508
- form: StringConstructor;
509
- label: StringConstructor;
510
- height: NumberConstructor;
511
- resize: StringConstructor;
512
- tabindex: {
513
- type: StringConstructor;
514
- default: string;
515
- };
516
- disabled: BooleanConstructor;
517
- readonly: BooleanConstructor;
518
- hoverExpand: BooleanConstructor;
519
- mask: BooleanConstructor;
520
- suffixIcon: (StringConstructor | ObjectConstructor)[];
521
- prefixIcon: (StringConstructor | ObjectConstructor)[];
522
- modelValue: PropType<string | number | null>;
523
- type: {
524
- type: StringConstructor;
525
- default: string;
526
- };
527
- memorySpace: {
528
- type: NumberConstructor;
529
- default: number;
530
- };
531
- vertical: {
532
- type: BooleanConstructor;
533
- default: boolean;
534
- };
535
- selectMenu: {
536
- type: {
537
- (arrayLength: number): {
538
- id: string;
539
- label: string;
540
- }[];
541
- (...items: {
542
- id: string;
543
- label: string;
544
- }[]): {
545
- id: string;
546
- label: string;
547
- }[];
548
- new (arrayLength: number): {
549
- id: string;
550
- label: string;
551
- }[];
552
- new (...items: {
553
- id: string;
554
- label: string;
555
- }[]): {
556
- id: string;
557
- label: string;
558
- }[];
559
- isArray(arg: any): arg is any[];
560
- readonly prototype: any[];
561
- from<T>(arrayLike: ArrayLike<T>): T[];
562
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
563
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
564
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
565
- of<T_4>(...items: T_4[]): T_4[];
566
- readonly [Symbol.species]: ArrayConstructor;
567
- };
568
- default: () => never[];
569
- };
570
- ellipsis: {
571
- type: BooleanConstructor;
572
- default: boolean;
573
- };
574
- contentStyle: {
575
- type: ObjectConstructor;
576
- default: () => {};
577
- };
578
- isSelect: {
579
- type: BooleanConstructor;
580
- default: boolean;
581
- };
582
- tips: StringConstructor;
583
- counter: {
584
- type: BooleanConstructor;
585
- default: boolean;
586
- };
587
- autosize: {
588
- type: (BooleanConstructor | ObjectConstructor)[];
589
- default: boolean;
590
- };
591
- clearable: {
592
- type: BooleanConstructor;
593
- default: boolean;
594
- };
595
- autocomplete: {
596
- type: StringConstructor;
597
- default: string;
598
- };
599
- showPassword: {
600
- type: BooleanConstructor;
601
- default: boolean;
602
- };
603
- showWordLimit: {
604
- type: BooleanConstructor;
605
- default: boolean;
606
- };
607
- showTitle: {
608
- type: BooleanConstructor;
609
- default: boolean;
610
- };
611
- validateEvent: {
612
- type: BooleanConstructor;
613
- default: boolean;
614
- };
615
- popupMore: {
616
- type: BooleanConstructor;
617
- default: boolean;
618
- };
619
- textareaTitle: {
620
- type: StringConstructor;
621
- default: string;
622
- };
623
- displayOnly: {
624
- type: BooleanConstructor;
625
- default: boolean;
626
- };
627
- displayOnlyContent: {
628
- type: StringConstructor;
629
- default: string;
630
- };
631
- customClass: {
632
- type: StringConstructor;
633
- default: string;
634
- };
635
- frontClearIcon: {
636
- type: BooleanConstructor;
637
- default: boolean;
638
- };
639
- showEmptyValue: {
640
- type: BooleanConstructor;
641
- default: undefined;
642
- };
643
- textAlign: {
644
- type: StringConstructor;
645
- default: string;
646
- };
647
- width: {
648
- type: PropType<string | number | null>;
649
- };
650
- showTooltip: {
651
- type: BooleanConstructor;
652
- default: boolean;
653
- };
654
- inputBoxType: {
655
- type: StringConstructor;
656
- default: string;
657
- validator: (value: string) => boolean;
658
- };
659
- tiny_mode: StringConstructor;
660
- tiny_mode_root: BooleanConstructor;
661
- tiny_template: (ObjectConstructor | FunctionConstructor)[];
662
- tiny_renderless: FunctionConstructor;
663
- tiny_theme: StringConstructor;
664
- tiny_mcp_config: ObjectConstructor;
665
- tiny_chart_theme: ObjectConstructor;
666
- }>>, () => VNode<RendererNode, RendererElement, {
667
- [key: string]: any;
668
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
669
- disabled: boolean;
670
- type: string;
671
- ellipsis: boolean;
672
- mask: boolean;
673
- vertical: boolean;
674
- customClass: string;
675
- tiny_mode_root: boolean;
676
- _constants: Record<string, any>;
677
- tabindex: string;
678
- showTitle: boolean;
679
- readonly: boolean;
680
- hoverExpand: boolean;
681
- memorySpace: number;
682
- selectMenu: {
683
- id: string;
684
- label: string;
685
- }[];
686
- contentStyle: Record<string, any>;
687
- isSelect: boolean;
688
- counter: boolean;
689
- autosize: boolean | Record<string, any>;
690
- clearable: boolean;
691
- autocomplete: string;
692
- showPassword: boolean;
693
- showWordLimit: boolean;
694
- validateEvent: boolean;
695
- popupMore: boolean;
696
- textareaTitle: string;
697
- displayOnly: boolean;
698
- displayOnlyContent: string;
699
- frontClearIcon: boolean;
700
- showEmptyValue: boolean;
701
- textAlign: string;
702
- showTooltip: boolean;
703
- inputBoxType: string;
704
- }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
705
- P: {};
706
- B: {};
707
- D: {};
708
- C: {};
709
- M: {};
710
- Defaults: {};
711
- }, Readonly<ExtractPropTypes< {
712
- _constants: {
713
- type: ObjectConstructor;
714
- default: () => {
715
- INPUT_PC: string;
716
- INPUTGROUP_PC: string;
717
- INPUT_MOBILE: string;
718
- INPUTGROUP_MOBILE: string;
719
- Mode: string;
720
- inputMode(mode: any): string;
721
- inputGroupMode(mode: any): string;
722
- VALIDATE_ICON: {
723
- Validating: string;
724
- Success: string;
725
- Error: string;
726
- };
727
- COMPONENT_NAME: {
728
- FormItem: string;
729
- };
730
- MASKSYMBOL: string;
731
- TEXTAREA_HEIGHT_MOBILE: number;
732
- };
733
- };
734
- name: StringConstructor;
735
- size: StringConstructor;
736
- form: StringConstructor;
737
- label: StringConstructor;
738
- height: NumberConstructor;
739
- resize: StringConstructor;
740
- tabindex: {
741
- type: StringConstructor;
742
- default: string;
743
- };
744
- disabled: BooleanConstructor;
745
- readonly: BooleanConstructor;
746
- hoverExpand: BooleanConstructor;
747
- mask: BooleanConstructor;
748
- suffixIcon: (StringConstructor | ObjectConstructor)[];
749
- prefixIcon: (StringConstructor | ObjectConstructor)[];
750
- modelValue: PropType<string | number | null>;
751
- type: {
752
- type: StringConstructor;
753
- default: string;
754
- };
755
- memorySpace: {
756
- type: NumberConstructor;
757
- default: number;
758
- };
759
- vertical: {
760
- type: BooleanConstructor;
761
- default: boolean;
762
- };
763
- selectMenu: {
764
- type: {
765
- (arrayLength: number): {
766
- id: string;
767
- label: string;
768
- }[];
769
- (...items: {
770
- id: string;
771
- label: string;
772
- }[]): {
773
- id: string;
774
- label: string;
775
- }[];
776
- new (arrayLength: number): {
777
- id: string;
778
- label: string;
779
- }[];
780
- new (...items: {
781
- id: string;
782
- label: string;
783
- }[]): {
784
- id: string;
785
- label: string;
786
- }[];
787
- isArray(arg: any): arg is any[];
788
- readonly prototype: any[];
789
- from<T>(arrayLike: ArrayLike<T>): T[];
790
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
791
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
792
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
793
- of<T_4>(...items: T_4[]): T_4[];
794
- readonly [Symbol.species]: ArrayConstructor;
795
- };
796
- default: () => never[];
797
- };
798
- ellipsis: {
799
- type: BooleanConstructor;
800
- default: boolean;
801
- };
802
- contentStyle: {
803
- type: ObjectConstructor;
804
- default: () => {};
805
- };
806
- isSelect: {
807
- type: BooleanConstructor;
808
- default: boolean;
809
- };
810
- tips: StringConstructor;
811
- counter: {
812
- type: BooleanConstructor;
813
- default: boolean;
814
- };
815
- autosize: {
816
- type: (BooleanConstructor | ObjectConstructor)[];
817
- default: boolean;
818
- };
819
- clearable: {
820
- type: BooleanConstructor;
821
- default: boolean;
822
- };
823
- autocomplete: {
824
- type: StringConstructor;
825
- default: string;
826
- };
827
- showPassword: {
828
- type: BooleanConstructor;
829
- default: boolean;
830
- };
831
- showWordLimit: {
832
- type: BooleanConstructor;
833
- default: boolean;
834
- };
835
- showTitle: {
836
- type: BooleanConstructor;
837
- default: boolean;
838
- };
839
- validateEvent: {
840
- type: BooleanConstructor;
841
- default: boolean;
842
- };
843
- popupMore: {
844
- type: BooleanConstructor;
845
- default: boolean;
846
- };
847
- textareaTitle: {
848
- type: StringConstructor;
849
- default: string;
850
- };
851
- displayOnly: {
852
- type: BooleanConstructor;
853
- default: boolean;
854
- };
855
- displayOnlyContent: {
856
- type: StringConstructor;
857
- default: string;
858
- };
859
- customClass: {
860
- type: StringConstructor;
861
- default: string;
862
- };
863
- frontClearIcon: {
864
- type: BooleanConstructor;
865
- default: boolean;
866
- };
867
- showEmptyValue: {
868
- type: BooleanConstructor;
869
- default: undefined;
870
- };
871
- textAlign: {
872
- type: StringConstructor;
873
- default: string;
874
- };
875
- width: {
876
- type: PropType<string | number | null>;
877
- };
878
- showTooltip: {
879
- type: BooleanConstructor;
880
- default: boolean;
881
- };
882
- inputBoxType: {
883
- type: StringConstructor;
884
- default: string;
885
- validator: (value: string) => boolean;
886
- };
887
- tiny_mode: StringConstructor;
888
- tiny_mode_root: BooleanConstructor;
889
- tiny_template: (ObjectConstructor | FunctionConstructor)[];
890
- tiny_renderless: FunctionConstructor;
891
- tiny_theme: StringConstructor;
892
- tiny_mcp_config: ObjectConstructor;
893
- tiny_chart_theme: ObjectConstructor;
894
- }>>, () => VNode<RendererNode, RendererElement, {
895
- [key: string]: any;
896
- }>, {}, {}, {}, {
897
- disabled: boolean;
898
- type: string;
899
- ellipsis: boolean;
900
- mask: boolean;
901
- vertical: boolean;
902
- customClass: string;
903
- tiny_mode_root: boolean;
904
- _constants: Record<string, any>;
905
- tabindex: string;
906
- showTitle: boolean;
907
- readonly: boolean;
908
- hoverExpand: boolean;
909
- memorySpace: number;
910
- selectMenu: {
911
- id: string;
912
- label: string;
913
- }[];
914
- contentStyle: Record<string, any>;
915
- isSelect: boolean;
916
- counter: boolean;
917
- autosize: boolean | Record<string, any>;
918
- clearable: boolean;
919
- autocomplete: string;
920
- showPassword: boolean;
921
- showWordLimit: boolean;
922
- validateEvent: boolean;
923
- popupMore: boolean;
924
- textareaTitle: string;
925
- displayOnly: boolean;
926
- displayOnlyContent: string;
927
- frontClearIcon: boolean;
928
- showEmptyValue: boolean;
929
- textAlign: string;
930
- showTooltip: boolean;
931
- inputBoxType: string;
932
- }> | null;
478
+ inputPrefixRef: HTMLDivElement;
479
+ inputRef: any;
933
480
  buttonsContainerRef: HTMLDivElement;
934
481
  }, HTMLDivElement>;
935
482
 
@@ -1027,9 +574,7 @@ declare function __VLS_template_10(): {
1027
574
  readonly transitionProps?: TransitionProps | undefined;
1028
575
  readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
1029
576
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1030
- $attrs: {
1031
- [x: string]: unknown;
1032
- };
577
+ $attrs: Attrs;
1033
578
  $refs: {
1034
579
  [x: string]: unknown;
1035
580
  };
@@ -1091,11 +636,11 @@ declare function __VLS_template_10(): {
1091
636
  show?: boolean;
1092
637
  transitionProps?: TransitionProps;
1093
638
  triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1094
- }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
1095
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1096
- popperRef: ComputedRef<HTMLDivElement | null>;
1097
- update: () => void;
1098
- }> & {} & ComponentCustomProperties & {} & {
639
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & {
640
+ triggerRef: HTMLElement | SVGElement | null | undefined;
641
+ popperRef: HTMLDivElement | null;
642
+ update: () => void;
643
+ } & {} & ComponentCustomProperties & {} & {
1099
644
  $slots: Readonly<{
1100
645
  trigger?: () => VNode[];
1101
646
  content?: () => VNode[];
@@ -1200,9 +745,7 @@ declare function __VLS_template_5(): {
1200
745
  readonly transitionProps?: TransitionProps | undefined;
1201
746
  readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
1202
747
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1203
- $attrs: {
1204
- [x: string]: unknown;
1205
- };
748
+ $attrs: Attrs;
1206
749
  $refs: {
1207
750
  [x: string]: unknown;
1208
751
  };
@@ -1264,11 +807,11 @@ declare function __VLS_template_5(): {
1264
807
  show?: boolean;
1265
808
  transitionProps?: TransitionProps;
1266
809
  triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1267
- }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
1268
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1269
- popperRef: ComputedRef<HTMLDivElement | null>;
1270
- update: () => void;
1271
- }> & {} & ComponentCustomProperties & {} & {
810
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & {
811
+ triggerRef: HTMLElement | SVGElement | null | undefined;
812
+ popperRef: HTMLDivElement | null;
813
+ update: () => void;
814
+ } & {} & ComponentCustomProperties & {} & {
1272
815
  $slots: Readonly<{
1273
816
  trigger?: () => VNode[];
1274
817
  content?: () => VNode[];
@@ -1295,6 +838,7 @@ declare function __VLS_template_7(): {
1295
838
  prefix?(_: {}): any;
1296
839
  content?(_: {}): any;
1297
840
  decorativeContent?(_: {}): any;
841
+ 'input-prefix'?(_: {}): any;
1298
842
  actions?(_: {}): any;
1299
843
  'footer-left'?(_: {}): any;
1300
844
  'footer-right'?(_: {}): any;
@@ -1343,456 +887,8 @@ declare function __VLS_template_7(): {
1343
887
  clearHistory: () => void;
1344
888
  activateFirstField: () => void;
1345
889
  }, {}, {}, {}, {}> | null;
1346
- inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
1347
- _constants: {
1348
- type: ObjectConstructor;
1349
- default: () => {
1350
- INPUT_PC: string;
1351
- INPUTGROUP_PC: string;
1352
- INPUT_MOBILE: string;
1353
- INPUTGROUP_MOBILE: string;
1354
- Mode: string;
1355
- inputMode(mode: any): string;
1356
- inputGroupMode(mode: any): string;
1357
- VALIDATE_ICON: {
1358
- Validating: string;
1359
- Success: string;
1360
- Error: string;
1361
- };
1362
- COMPONENT_NAME: {
1363
- FormItem: string;
1364
- };
1365
- MASKSYMBOL: string;
1366
- TEXTAREA_HEIGHT_MOBILE: number;
1367
- };
1368
- };
1369
- name: StringConstructor;
1370
- size: StringConstructor;
1371
- form: StringConstructor;
1372
- label: StringConstructor;
1373
- height: NumberConstructor;
1374
- resize: StringConstructor;
1375
- tabindex: {
1376
- type: StringConstructor;
1377
- default: string;
1378
- };
1379
- disabled: BooleanConstructor;
1380
- readonly: BooleanConstructor;
1381
- hoverExpand: BooleanConstructor;
1382
- mask: BooleanConstructor;
1383
- suffixIcon: (StringConstructor | ObjectConstructor)[];
1384
- prefixIcon: (StringConstructor | ObjectConstructor)[];
1385
- modelValue: PropType<string | number | null>;
1386
- type: {
1387
- type: StringConstructor;
1388
- default: string;
1389
- };
1390
- memorySpace: {
1391
- type: NumberConstructor;
1392
- default: number;
1393
- };
1394
- vertical: {
1395
- type: BooleanConstructor;
1396
- default: boolean;
1397
- };
1398
- selectMenu: {
1399
- type: {
1400
- (arrayLength: number): {
1401
- id: string;
1402
- label: string;
1403
- }[];
1404
- (...items: {
1405
- id: string;
1406
- label: string;
1407
- }[]): {
1408
- id: string;
1409
- label: string;
1410
- }[];
1411
- new (arrayLength: number): {
1412
- id: string;
1413
- label: string;
1414
- }[];
1415
- new (...items: {
1416
- id: string;
1417
- label: string;
1418
- }[]): {
1419
- id: string;
1420
- label: string;
1421
- }[];
1422
- isArray(arg: any): arg is any[];
1423
- readonly prototype: any[];
1424
- from<T>(arrayLike: ArrayLike<T>): T[];
1425
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
1426
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
1427
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
1428
- of<T_4>(...items: T_4[]): T_4[];
1429
- readonly [Symbol.species]: ArrayConstructor;
1430
- };
1431
- default: () => never[];
1432
- };
1433
- ellipsis: {
1434
- type: BooleanConstructor;
1435
- default: boolean;
1436
- };
1437
- contentStyle: {
1438
- type: ObjectConstructor;
1439
- default: () => {};
1440
- };
1441
- isSelect: {
1442
- type: BooleanConstructor;
1443
- default: boolean;
1444
- };
1445
- tips: StringConstructor;
1446
- counter: {
1447
- type: BooleanConstructor;
1448
- default: boolean;
1449
- };
1450
- autosize: {
1451
- type: (BooleanConstructor | ObjectConstructor)[];
1452
- default: boolean;
1453
- };
1454
- clearable: {
1455
- type: BooleanConstructor;
1456
- default: boolean;
1457
- };
1458
- autocomplete: {
1459
- type: StringConstructor;
1460
- default: string;
1461
- };
1462
- showPassword: {
1463
- type: BooleanConstructor;
1464
- default: boolean;
1465
- };
1466
- showWordLimit: {
1467
- type: BooleanConstructor;
1468
- default: boolean;
1469
- };
1470
- showTitle: {
1471
- type: BooleanConstructor;
1472
- default: boolean;
1473
- };
1474
- validateEvent: {
1475
- type: BooleanConstructor;
1476
- default: boolean;
1477
- };
1478
- popupMore: {
1479
- type: BooleanConstructor;
1480
- default: boolean;
1481
- };
1482
- textareaTitle: {
1483
- type: StringConstructor;
1484
- default: string;
1485
- };
1486
- displayOnly: {
1487
- type: BooleanConstructor;
1488
- default: boolean;
1489
- };
1490
- displayOnlyContent: {
1491
- type: StringConstructor;
1492
- default: string;
1493
- };
1494
- customClass: {
1495
- type: StringConstructor;
1496
- default: string;
1497
- };
1498
- frontClearIcon: {
1499
- type: BooleanConstructor;
1500
- default: boolean;
1501
- };
1502
- showEmptyValue: {
1503
- type: BooleanConstructor;
1504
- default: undefined;
1505
- };
1506
- textAlign: {
1507
- type: StringConstructor;
1508
- default: string;
1509
- };
1510
- width: {
1511
- type: PropType<string | number | null>;
1512
- };
1513
- showTooltip: {
1514
- type: BooleanConstructor;
1515
- default: boolean;
1516
- };
1517
- inputBoxType: {
1518
- type: StringConstructor;
1519
- default: string;
1520
- validator: (value: string) => boolean;
1521
- };
1522
- tiny_mode: StringConstructor;
1523
- tiny_mode_root: BooleanConstructor;
1524
- tiny_template: (ObjectConstructor | FunctionConstructor)[];
1525
- tiny_renderless: FunctionConstructor;
1526
- tiny_theme: StringConstructor;
1527
- tiny_mcp_config: ObjectConstructor;
1528
- tiny_chart_theme: ObjectConstructor;
1529
- }>>, () => VNode<RendererNode, RendererElement, {
1530
- [key: string]: any;
1531
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
1532
- disabled: boolean;
1533
- type: string;
1534
- ellipsis: boolean;
1535
- mask: boolean;
1536
- vertical: boolean;
1537
- customClass: string;
1538
- tiny_mode_root: boolean;
1539
- _constants: Record<string, any>;
1540
- tabindex: string;
1541
- showTitle: boolean;
1542
- readonly: boolean;
1543
- hoverExpand: boolean;
1544
- memorySpace: number;
1545
- selectMenu: {
1546
- id: string;
1547
- label: string;
1548
- }[];
1549
- contentStyle: Record<string, any>;
1550
- isSelect: boolean;
1551
- counter: boolean;
1552
- autosize: boolean | Record<string, any>;
1553
- clearable: boolean;
1554
- autocomplete: string;
1555
- showPassword: boolean;
1556
- showWordLimit: boolean;
1557
- validateEvent: boolean;
1558
- popupMore: boolean;
1559
- textareaTitle: string;
1560
- displayOnly: boolean;
1561
- displayOnlyContent: string;
1562
- frontClearIcon: boolean;
1563
- showEmptyValue: boolean;
1564
- textAlign: string;
1565
- showTooltip: boolean;
1566
- inputBoxType: string;
1567
- }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1568
- P: {};
1569
- B: {};
1570
- D: {};
1571
- C: {};
1572
- M: {};
1573
- Defaults: {};
1574
- }, Readonly<ExtractPropTypes< {
1575
- _constants: {
1576
- type: ObjectConstructor;
1577
- default: () => {
1578
- INPUT_PC: string;
1579
- INPUTGROUP_PC: string;
1580
- INPUT_MOBILE: string;
1581
- INPUTGROUP_MOBILE: string;
1582
- Mode: string;
1583
- inputMode(mode: any): string;
1584
- inputGroupMode(mode: any): string;
1585
- VALIDATE_ICON: {
1586
- Validating: string;
1587
- Success: string;
1588
- Error: string;
1589
- };
1590
- COMPONENT_NAME: {
1591
- FormItem: string;
1592
- };
1593
- MASKSYMBOL: string;
1594
- TEXTAREA_HEIGHT_MOBILE: number;
1595
- };
1596
- };
1597
- name: StringConstructor;
1598
- size: StringConstructor;
1599
- form: StringConstructor;
1600
- label: StringConstructor;
1601
- height: NumberConstructor;
1602
- resize: StringConstructor;
1603
- tabindex: {
1604
- type: StringConstructor;
1605
- default: string;
1606
- };
1607
- disabled: BooleanConstructor;
1608
- readonly: BooleanConstructor;
1609
- hoverExpand: BooleanConstructor;
1610
- mask: BooleanConstructor;
1611
- suffixIcon: (StringConstructor | ObjectConstructor)[];
1612
- prefixIcon: (StringConstructor | ObjectConstructor)[];
1613
- modelValue: PropType<string | number | null>;
1614
- type: {
1615
- type: StringConstructor;
1616
- default: string;
1617
- };
1618
- memorySpace: {
1619
- type: NumberConstructor;
1620
- default: number;
1621
- };
1622
- vertical: {
1623
- type: BooleanConstructor;
1624
- default: boolean;
1625
- };
1626
- selectMenu: {
1627
- type: {
1628
- (arrayLength: number): {
1629
- id: string;
1630
- label: string;
1631
- }[];
1632
- (...items: {
1633
- id: string;
1634
- label: string;
1635
- }[]): {
1636
- id: string;
1637
- label: string;
1638
- }[];
1639
- new (arrayLength: number): {
1640
- id: string;
1641
- label: string;
1642
- }[];
1643
- new (...items: {
1644
- id: string;
1645
- label: string;
1646
- }[]): {
1647
- id: string;
1648
- label: string;
1649
- }[];
1650
- isArray(arg: any): arg is any[];
1651
- readonly prototype: any[];
1652
- from<T>(arrayLike: ArrayLike<T>): T[];
1653
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
1654
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
1655
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
1656
- of<T_4>(...items: T_4[]): T_4[];
1657
- readonly [Symbol.species]: ArrayConstructor;
1658
- };
1659
- default: () => never[];
1660
- };
1661
- ellipsis: {
1662
- type: BooleanConstructor;
1663
- default: boolean;
1664
- };
1665
- contentStyle: {
1666
- type: ObjectConstructor;
1667
- default: () => {};
1668
- };
1669
- isSelect: {
1670
- type: BooleanConstructor;
1671
- default: boolean;
1672
- };
1673
- tips: StringConstructor;
1674
- counter: {
1675
- type: BooleanConstructor;
1676
- default: boolean;
1677
- };
1678
- autosize: {
1679
- type: (BooleanConstructor | ObjectConstructor)[];
1680
- default: boolean;
1681
- };
1682
- clearable: {
1683
- type: BooleanConstructor;
1684
- default: boolean;
1685
- };
1686
- autocomplete: {
1687
- type: StringConstructor;
1688
- default: string;
1689
- };
1690
- showPassword: {
1691
- type: BooleanConstructor;
1692
- default: boolean;
1693
- };
1694
- showWordLimit: {
1695
- type: BooleanConstructor;
1696
- default: boolean;
1697
- };
1698
- showTitle: {
1699
- type: BooleanConstructor;
1700
- default: boolean;
1701
- };
1702
- validateEvent: {
1703
- type: BooleanConstructor;
1704
- default: boolean;
1705
- };
1706
- popupMore: {
1707
- type: BooleanConstructor;
1708
- default: boolean;
1709
- };
1710
- textareaTitle: {
1711
- type: StringConstructor;
1712
- default: string;
1713
- };
1714
- displayOnly: {
1715
- type: BooleanConstructor;
1716
- default: boolean;
1717
- };
1718
- displayOnlyContent: {
1719
- type: StringConstructor;
1720
- default: string;
1721
- };
1722
- customClass: {
1723
- type: StringConstructor;
1724
- default: string;
1725
- };
1726
- frontClearIcon: {
1727
- type: BooleanConstructor;
1728
- default: boolean;
1729
- };
1730
- showEmptyValue: {
1731
- type: BooleanConstructor;
1732
- default: undefined;
1733
- };
1734
- textAlign: {
1735
- type: StringConstructor;
1736
- default: string;
1737
- };
1738
- width: {
1739
- type: PropType<string | number | null>;
1740
- };
1741
- showTooltip: {
1742
- type: BooleanConstructor;
1743
- default: boolean;
1744
- };
1745
- inputBoxType: {
1746
- type: StringConstructor;
1747
- default: string;
1748
- validator: (value: string) => boolean;
1749
- };
1750
- tiny_mode: StringConstructor;
1751
- tiny_mode_root: BooleanConstructor;
1752
- tiny_template: (ObjectConstructor | FunctionConstructor)[];
1753
- tiny_renderless: FunctionConstructor;
1754
- tiny_theme: StringConstructor;
1755
- tiny_mcp_config: ObjectConstructor;
1756
- tiny_chart_theme: ObjectConstructor;
1757
- }>>, () => VNode<RendererNode, RendererElement, {
1758
- [key: string]: any;
1759
- }>, {}, {}, {}, {
1760
- disabled: boolean;
1761
- type: string;
1762
- ellipsis: boolean;
1763
- mask: boolean;
1764
- vertical: boolean;
1765
- customClass: string;
1766
- tiny_mode_root: boolean;
1767
- _constants: Record<string, any>;
1768
- tabindex: string;
1769
- showTitle: boolean;
1770
- readonly: boolean;
1771
- hoverExpand: boolean;
1772
- memorySpace: number;
1773
- selectMenu: {
1774
- id: string;
1775
- label: string;
1776
- }[];
1777
- contentStyle: Record<string, any>;
1778
- isSelect: boolean;
1779
- counter: boolean;
1780
- autosize: boolean | Record<string, any>;
1781
- clearable: boolean;
1782
- autocomplete: string;
1783
- showPassword: boolean;
1784
- showWordLimit: boolean;
1785
- validateEvent: boolean;
1786
- popupMore: boolean;
1787
- textareaTitle: string;
1788
- displayOnly: boolean;
1789
- displayOnlyContent: string;
1790
- frontClearIcon: boolean;
1791
- showEmptyValue: boolean;
1792
- textAlign: string;
1793
- showTooltip: boolean;
1794
- inputBoxType: string;
1795
- }> | null;
890
+ inputPrefixRef: HTMLDivElement;
891
+ inputRef: any;
1796
892
  buttonsContainerRef: HTMLDivElement;
1797
893
  };
1798
894
  rootEl: HTMLDivElement;
@@ -2946,7 +2042,7 @@ export declare interface RejectionReason {
2946
2042
  export declare type SenderEmits = {
2947
2043
  (e: 'update:modelValue', value: string): void;
2948
2044
  (e: 'update:templateData', value: UserItem[]): void;
2949
- (e: 'submit', value: string): void;
2045
+ (e: 'submit', value: string, templateData?: UserItem[]): void;
2950
2046
  (e: 'clear'): void;
2951
2047
  (e: 'speech-start'): void;
2952
2048
  (e: 'speech-end', transcript?: string): void;