@opentiny/tiny-robot 0.4.0-alpha.15 → 0.4.0-alpha.17

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';
@@ -14,18 +15,14 @@ import { CSSProperties } from 'vue';
14
15
  import { DebuggerEvent } from 'vue';
15
16
  import { DefineComponent } from 'vue';
16
17
  import { Directive } from 'vue';
17
- import { ExtractPropTypes } from 'vue';
18
18
  import { GlobalComponents } from 'vue';
19
19
  import { GlobalDirectives } from 'vue';
20
20
  import { MaybeComputedElementRef } from '@vueuse/core';
21
21
  import { MaybeRefOrGetter } from 'vue';
22
22
  import { nextTick } from 'vue';
23
23
  import { OnCleanup } from '@vue/reactivity';
24
- import { PropType } from 'vue';
25
24
  import { PublicProps } from 'vue';
26
25
  import { Ref } from 'vue';
27
- import { RendererElement } from 'vue';
28
- import { RendererNode } from 'vue';
29
26
  import { ShallowUnwrapRef } from 'vue';
30
27
  import { Slot } from 'vue';
31
28
  import { TransitionProps } from 'vue';
@@ -115,9 +112,7 @@ readonly show?: boolean | undefined;
115
112
  readonly transitionProps?: TransitionProps | undefined;
116
113
  readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
117
114
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
118
- $attrs: {
119
- [x: string]: unknown;
120
- };
115
+ $attrs: Attrs;
121
116
  $refs: {
122
117
  [x: string]: unknown;
123
118
  };
@@ -179,11 +174,11 @@ preventOverflow?: boolean;
179
174
  show?: boolean;
180
175
  transitionProps?: TransitionProps;
181
176
  triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
182
- }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
183
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
184
- popperRef: ComputedRef<HTMLDivElement | null>;
177
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & {
178
+ triggerRef: HTMLElement | SVGElement | null | undefined;
179
+ popperRef: HTMLDivElement | null;
185
180
  update: () => void;
186
- }> & {} & ComponentCustomProperties & {} & {
181
+ } & {} & ComponentCustomProperties & {} & {
187
182
  $slots: Readonly<{
188
183
  trigger?: () => VNode[];
189
184
  content?: () => VNode[];
@@ -350,9 +345,7 @@ readonly show?: boolean | undefined;
350
345
  readonly transitionProps?: TransitionProps | undefined;
351
346
  readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
352
347
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
353
- $attrs: {
354
- [x: string]: unknown;
355
- };
348
+ $attrs: Attrs;
356
349
  $refs: {
357
350
  [x: string]: unknown;
358
351
  };
@@ -414,11 +407,11 @@ preventOverflow?: boolean;
414
407
  show?: boolean;
415
408
  transitionProps?: TransitionProps;
416
409
  triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
417
- }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
418
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
419
- popperRef: ComputedRef<HTMLDivElement | null>;
410
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & {
411
+ triggerRef: HTMLElement | SVGElement | null | undefined;
412
+ popperRef: HTMLDivElement | null;
420
413
  update: () => void;
421
- }> & {} & ComponentCustomProperties & {} & {
414
+ } & {} & ComponentCustomProperties & {} & {
422
415
  $slots: Readonly<{
423
416
  trigger?: () => VNode[];
424
417
  content?: () => VNode[];
@@ -477,17 +470,17 @@ onSubmit?: ((value: string) => any) | undefined;
477
470
  "onFiles-selected"?: ((files: File[]) => any) | undefined;
478
471
  }>, {
479
472
  disabled: boolean;
480
- modelValue: string;
481
473
  placeholder: string;
482
474
  loading: boolean;
483
475
  mode: InputMode;
484
- autofocus: boolean;
485
476
  allowSpeech: boolean;
486
477
  allowFiles: boolean;
487
478
  submitType: SubmitTrigger;
488
479
  stopText: string;
489
480
  autoSize: AutoSize;
481
+ modelValue: string;
490
482
  suggestions: ISuggestionItem[];
483
+ autofocus: boolean;
491
484
  clearable: boolean;
492
485
  maxLength: number;
493
486
  showWordLimit: boolean;
@@ -537,456 +530,7 @@ onSubmit?: (() => any) | undefined;
537
530
  clearHistory: () => void;
538
531
  activateFirstField: () => void;
539
532
  }, {}, {}, {}, {}> | null;
540
- inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
541
- _constants: {
542
- type: ObjectConstructor;
543
- default: () => {
544
- INPUT_PC: string;
545
- INPUTGROUP_PC: string;
546
- INPUT_MOBILE: string;
547
- INPUTGROUP_MOBILE: string;
548
- Mode: string;
549
- inputMode(mode: any): string;
550
- inputGroupMode(mode: any): string;
551
- VALIDATE_ICON: {
552
- Validating: string;
553
- Success: string;
554
- Error: string;
555
- };
556
- COMPONENT_NAME: {
557
- FormItem: string;
558
- };
559
- MASKSYMBOL: string;
560
- TEXTAREA_HEIGHT_MOBILE: number;
561
- };
562
- };
563
- name: StringConstructor;
564
- size: StringConstructor;
565
- form: StringConstructor;
566
- label: StringConstructor;
567
- height: NumberConstructor;
568
- resize: StringConstructor;
569
- tabindex: {
570
- type: StringConstructor;
571
- default: string;
572
- };
573
- disabled: BooleanConstructor;
574
- readonly: BooleanConstructor;
575
- hoverExpand: BooleanConstructor;
576
- mask: BooleanConstructor;
577
- suffixIcon: (StringConstructor | ObjectConstructor)[];
578
- prefixIcon: (StringConstructor | ObjectConstructor)[];
579
- modelValue: PropType<string | number | null>;
580
- type: {
581
- type: StringConstructor;
582
- default: string;
583
- };
584
- memorySpace: {
585
- type: NumberConstructor;
586
- default: number;
587
- };
588
- vertical: {
589
- type: BooleanConstructor;
590
- default: boolean;
591
- };
592
- selectMenu: {
593
- type: {
594
- (arrayLength: number): {
595
- id: string;
596
- label: string;
597
- }[];
598
- (...items: {
599
- id: string;
600
- label: string;
601
- }[]): {
602
- id: string;
603
- label: string;
604
- }[];
605
- new (arrayLength: number): {
606
- id: string;
607
- label: string;
608
- }[];
609
- new (...items: {
610
- id: string;
611
- label: string;
612
- }[]): {
613
- id: string;
614
- label: string;
615
- }[];
616
- isArray(arg: any): arg is any[];
617
- readonly prototype: any[];
618
- from<T>(arrayLike: ArrayLike<T>): T[];
619
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
620
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
621
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
622
- of<T_4>(...items: T_4[]): T_4[];
623
- readonly [Symbol.species]: ArrayConstructor;
624
- };
625
- default: () => never[];
626
- };
627
- ellipsis: {
628
- type: BooleanConstructor;
629
- default: boolean;
630
- };
631
- contentStyle: {
632
- type: ObjectConstructor;
633
- default: () => {};
634
- };
635
- isSelect: {
636
- type: BooleanConstructor;
637
- default: boolean;
638
- };
639
- tips: StringConstructor;
640
- counter: {
641
- type: BooleanConstructor;
642
- default: boolean;
643
- };
644
- autosize: {
645
- type: (BooleanConstructor | ObjectConstructor)[];
646
- default: boolean;
647
- };
648
- clearable: {
649
- type: BooleanConstructor;
650
- default: boolean;
651
- };
652
- autocomplete: {
653
- type: StringConstructor;
654
- default: string;
655
- };
656
- showPassword: {
657
- type: BooleanConstructor;
658
- default: boolean;
659
- };
660
- showWordLimit: {
661
- type: BooleanConstructor;
662
- default: boolean;
663
- };
664
- showTitle: {
665
- type: BooleanConstructor;
666
- default: boolean;
667
- };
668
- validateEvent: {
669
- type: BooleanConstructor;
670
- default: boolean;
671
- };
672
- popupMore: {
673
- type: BooleanConstructor;
674
- default: boolean;
675
- };
676
- textareaTitle: {
677
- type: StringConstructor;
678
- default: string;
679
- };
680
- displayOnly: {
681
- type: BooleanConstructor;
682
- default: boolean;
683
- };
684
- displayOnlyContent: {
685
- type: StringConstructor;
686
- default: string;
687
- };
688
- customClass: {
689
- type: StringConstructor;
690
- default: string;
691
- };
692
- frontClearIcon: {
693
- type: BooleanConstructor;
694
- default: boolean;
695
- };
696
- showEmptyValue: {
697
- type: BooleanConstructor;
698
- default: undefined;
699
- };
700
- textAlign: {
701
- type: StringConstructor;
702
- default: string;
703
- };
704
- width: {
705
- type: PropType<string | number | null>;
706
- };
707
- showTooltip: {
708
- type: BooleanConstructor;
709
- default: boolean;
710
- };
711
- inputBoxType: {
712
- type: StringConstructor;
713
- default: string;
714
- validator: (value: string) => boolean;
715
- };
716
- tiny_mode: StringConstructor;
717
- tiny_mode_root: BooleanConstructor;
718
- tiny_template: (ObjectConstructor | FunctionConstructor)[];
719
- tiny_renderless: FunctionConstructor;
720
- tiny_theme: StringConstructor;
721
- tiny_mcp_config: ObjectConstructor;
722
- tiny_chart_theme: ObjectConstructor;
723
- }>>, () => VNode<RendererNode, RendererElement, {
724
- [key: string]: any;
725
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
726
- disabled: boolean;
727
- type: string;
728
- ellipsis: boolean;
729
- mask: boolean;
730
- vertical: boolean;
731
- customClass: string;
732
- tiny_mode_root: boolean;
733
- _constants: Record<string, any>;
734
- tabindex: string;
735
- showTitle: boolean;
736
- readonly: boolean;
737
- hoverExpand: boolean;
738
- memorySpace: number;
739
- selectMenu: {
740
- id: string;
741
- label: string;
742
- }[];
743
- contentStyle: Record<string, any>;
744
- isSelect: boolean;
745
- counter: boolean;
746
- autosize: boolean | Record<string, any>;
747
- clearable: boolean;
748
- autocomplete: string;
749
- showPassword: boolean;
750
- showWordLimit: boolean;
751
- validateEvent: boolean;
752
- popupMore: boolean;
753
- textareaTitle: string;
754
- displayOnly: boolean;
755
- displayOnlyContent: string;
756
- frontClearIcon: boolean;
757
- showEmptyValue: boolean;
758
- textAlign: string;
759
- showTooltip: boolean;
760
- inputBoxType: string;
761
- }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
762
- P: {};
763
- B: {};
764
- D: {};
765
- C: {};
766
- M: {};
767
- Defaults: {};
768
- }, Readonly<ExtractPropTypes< {
769
- _constants: {
770
- type: ObjectConstructor;
771
- default: () => {
772
- INPUT_PC: string;
773
- INPUTGROUP_PC: string;
774
- INPUT_MOBILE: string;
775
- INPUTGROUP_MOBILE: string;
776
- Mode: string;
777
- inputMode(mode: any): string;
778
- inputGroupMode(mode: any): string;
779
- VALIDATE_ICON: {
780
- Validating: string;
781
- Success: string;
782
- Error: string;
783
- };
784
- COMPONENT_NAME: {
785
- FormItem: string;
786
- };
787
- MASKSYMBOL: string;
788
- TEXTAREA_HEIGHT_MOBILE: number;
789
- };
790
- };
791
- name: StringConstructor;
792
- size: StringConstructor;
793
- form: StringConstructor;
794
- label: StringConstructor;
795
- height: NumberConstructor;
796
- resize: StringConstructor;
797
- tabindex: {
798
- type: StringConstructor;
799
- default: string;
800
- };
801
- disabled: BooleanConstructor;
802
- readonly: BooleanConstructor;
803
- hoverExpand: BooleanConstructor;
804
- mask: BooleanConstructor;
805
- suffixIcon: (StringConstructor | ObjectConstructor)[];
806
- prefixIcon: (StringConstructor | ObjectConstructor)[];
807
- modelValue: PropType<string | number | null>;
808
- type: {
809
- type: StringConstructor;
810
- default: string;
811
- };
812
- memorySpace: {
813
- type: NumberConstructor;
814
- default: number;
815
- };
816
- vertical: {
817
- type: BooleanConstructor;
818
- default: boolean;
819
- };
820
- selectMenu: {
821
- type: {
822
- (arrayLength: number): {
823
- id: string;
824
- label: string;
825
- }[];
826
- (...items: {
827
- id: string;
828
- label: string;
829
- }[]): {
830
- id: string;
831
- label: string;
832
- }[];
833
- new (arrayLength: number): {
834
- id: string;
835
- label: string;
836
- }[];
837
- new (...items: {
838
- id: string;
839
- label: string;
840
- }[]): {
841
- id: string;
842
- label: string;
843
- }[];
844
- isArray(arg: any): arg is any[];
845
- readonly prototype: any[];
846
- from<T>(arrayLike: ArrayLike<T>): T[];
847
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
848
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
849
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
850
- of<T_4>(...items: T_4[]): T_4[];
851
- readonly [Symbol.species]: ArrayConstructor;
852
- };
853
- default: () => never[];
854
- };
855
- ellipsis: {
856
- type: BooleanConstructor;
857
- default: boolean;
858
- };
859
- contentStyle: {
860
- type: ObjectConstructor;
861
- default: () => {};
862
- };
863
- isSelect: {
864
- type: BooleanConstructor;
865
- default: boolean;
866
- };
867
- tips: StringConstructor;
868
- counter: {
869
- type: BooleanConstructor;
870
- default: boolean;
871
- };
872
- autosize: {
873
- type: (BooleanConstructor | ObjectConstructor)[];
874
- default: boolean;
875
- };
876
- clearable: {
877
- type: BooleanConstructor;
878
- default: boolean;
879
- };
880
- autocomplete: {
881
- type: StringConstructor;
882
- default: string;
883
- };
884
- showPassword: {
885
- type: BooleanConstructor;
886
- default: boolean;
887
- };
888
- showWordLimit: {
889
- type: BooleanConstructor;
890
- default: boolean;
891
- };
892
- showTitle: {
893
- type: BooleanConstructor;
894
- default: boolean;
895
- };
896
- validateEvent: {
897
- type: BooleanConstructor;
898
- default: boolean;
899
- };
900
- popupMore: {
901
- type: BooleanConstructor;
902
- default: boolean;
903
- };
904
- textareaTitle: {
905
- type: StringConstructor;
906
- default: string;
907
- };
908
- displayOnly: {
909
- type: BooleanConstructor;
910
- default: boolean;
911
- };
912
- displayOnlyContent: {
913
- type: StringConstructor;
914
- default: string;
915
- };
916
- customClass: {
917
- type: StringConstructor;
918
- default: string;
919
- };
920
- frontClearIcon: {
921
- type: BooleanConstructor;
922
- default: boolean;
923
- };
924
- showEmptyValue: {
925
- type: BooleanConstructor;
926
- default: undefined;
927
- };
928
- textAlign: {
929
- type: StringConstructor;
930
- default: string;
931
- };
932
- width: {
933
- type: PropType<string | number | null>;
934
- };
935
- showTooltip: {
936
- type: BooleanConstructor;
937
- default: boolean;
938
- };
939
- inputBoxType: {
940
- type: StringConstructor;
941
- default: string;
942
- validator: (value: string) => boolean;
943
- };
944
- tiny_mode: StringConstructor;
945
- tiny_mode_root: BooleanConstructor;
946
- tiny_template: (ObjectConstructor | FunctionConstructor)[];
947
- tiny_renderless: FunctionConstructor;
948
- tiny_theme: StringConstructor;
949
- tiny_mcp_config: ObjectConstructor;
950
- tiny_chart_theme: ObjectConstructor;
951
- }>>, () => VNode<RendererNode, RendererElement, {
952
- [key: string]: any;
953
- }>, {}, {}, {}, {
954
- disabled: boolean;
955
- type: string;
956
- ellipsis: boolean;
957
- mask: boolean;
958
- vertical: boolean;
959
- customClass: string;
960
- tiny_mode_root: boolean;
961
- _constants: Record<string, any>;
962
- tabindex: string;
963
- showTitle: boolean;
964
- readonly: boolean;
965
- hoverExpand: boolean;
966
- memorySpace: number;
967
- selectMenu: {
968
- id: string;
969
- label: string;
970
- }[];
971
- contentStyle: Record<string, any>;
972
- isSelect: boolean;
973
- counter: boolean;
974
- autosize: boolean | Record<string, any>;
975
- clearable: boolean;
976
- autocomplete: string;
977
- showPassword: boolean;
978
- showWordLimit: boolean;
979
- validateEvent: boolean;
980
- popupMore: boolean;
981
- textareaTitle: string;
982
- displayOnly: boolean;
983
- displayOnlyContent: string;
984
- frontClearIcon: boolean;
985
- showEmptyValue: boolean;
986
- textAlign: string;
987
- showTooltip: boolean;
988
- inputBoxType: string;
989
- }> | null;
533
+ inputRef: any;
990
534
  buttonsContainerRef: HTMLDivElement;
991
535
  }, HTMLDivElement>;
992
536
 
@@ -1075,9 +619,7 @@ declare function __VLS_template_11(): {
1075
619
  readonly transitionProps?: TransitionProps | undefined;
1076
620
  readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
1077
621
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1078
- $attrs: {
1079
- [x: string]: unknown;
1080
- };
622
+ $attrs: Attrs;
1081
623
  $refs: {
1082
624
  [x: string]: unknown;
1083
625
  };
@@ -1139,11 +681,11 @@ declare function __VLS_template_11(): {
1139
681
  show?: boolean;
1140
682
  transitionProps?: TransitionProps;
1141
683
  triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1142
- }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
1143
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1144
- popperRef: ComputedRef<HTMLDivElement | null>;
1145
- update: () => void;
1146
- }> & {} & ComponentCustomProperties & {} & {
684
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & {
685
+ triggerRef: HTMLElement | SVGElement | null | undefined;
686
+ popperRef: HTMLDivElement | null;
687
+ update: () => void;
688
+ } & {} & ComponentCustomProperties & {} & {
1147
689
  $slots: Readonly<{
1148
690
  trigger?: () => VNode[];
1149
691
  content?: () => VNode[];
@@ -1257,9 +799,7 @@ declare function __VLS_template_6(): {
1257
799
  readonly transitionProps?: TransitionProps | undefined;
1258
800
  readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
1259
801
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1260
- $attrs: {
1261
- [x: string]: unknown;
1262
- };
802
+ $attrs: Attrs;
1263
803
  $refs: {
1264
804
  [x: string]: unknown;
1265
805
  };
@@ -1321,11 +861,11 @@ declare function __VLS_template_6(): {
1321
861
  show?: boolean;
1322
862
  transitionProps?: TransitionProps;
1323
863
  triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1324
- }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
1325
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1326
- popperRef: ComputedRef<HTMLDivElement | null>;
1327
- update: () => void;
1328
- }> & {} & ComponentCustomProperties & {} & {
864
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & {
865
+ triggerRef: HTMLElement | SVGElement | null | undefined;
866
+ popperRef: HTMLDivElement | null;
867
+ update: () => void;
868
+ } & {} & ComponentCustomProperties & {} & {
1329
869
  $slots: Readonly<{
1330
870
  trigger?: () => VNode[];
1331
871
  content?: () => VNode[];
@@ -1400,456 +940,7 @@ declare function __VLS_template_8(): {
1400
940
  clearHistory: () => void;
1401
941
  activateFirstField: () => void;
1402
942
  }, {}, {}, {}, {}> | null;
1403
- inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
1404
- _constants: {
1405
- type: ObjectConstructor;
1406
- default: () => {
1407
- INPUT_PC: string;
1408
- INPUTGROUP_PC: string;
1409
- INPUT_MOBILE: string;
1410
- INPUTGROUP_MOBILE: string;
1411
- Mode: string;
1412
- inputMode(mode: any): string;
1413
- inputGroupMode(mode: any): string;
1414
- VALIDATE_ICON: {
1415
- Validating: string;
1416
- Success: string;
1417
- Error: string;
1418
- };
1419
- COMPONENT_NAME: {
1420
- FormItem: string;
1421
- };
1422
- MASKSYMBOL: string;
1423
- TEXTAREA_HEIGHT_MOBILE: number;
1424
- };
1425
- };
1426
- name: StringConstructor;
1427
- size: StringConstructor;
1428
- form: StringConstructor;
1429
- label: StringConstructor;
1430
- height: NumberConstructor;
1431
- resize: StringConstructor;
1432
- tabindex: {
1433
- type: StringConstructor;
1434
- default: string;
1435
- };
1436
- disabled: BooleanConstructor;
1437
- readonly: BooleanConstructor;
1438
- hoverExpand: BooleanConstructor;
1439
- mask: BooleanConstructor;
1440
- suffixIcon: (StringConstructor | ObjectConstructor)[];
1441
- prefixIcon: (StringConstructor | ObjectConstructor)[];
1442
- modelValue: PropType<string | number | null>;
1443
- type: {
1444
- type: StringConstructor;
1445
- default: string;
1446
- };
1447
- memorySpace: {
1448
- type: NumberConstructor;
1449
- default: number;
1450
- };
1451
- vertical: {
1452
- type: BooleanConstructor;
1453
- default: boolean;
1454
- };
1455
- selectMenu: {
1456
- type: {
1457
- (arrayLength: number): {
1458
- id: string;
1459
- label: string;
1460
- }[];
1461
- (...items: {
1462
- id: string;
1463
- label: string;
1464
- }[]): {
1465
- id: string;
1466
- label: string;
1467
- }[];
1468
- new (arrayLength: number): {
1469
- id: string;
1470
- label: string;
1471
- }[];
1472
- new (...items: {
1473
- id: string;
1474
- label: string;
1475
- }[]): {
1476
- id: string;
1477
- label: string;
1478
- }[];
1479
- isArray(arg: any): arg is any[];
1480
- readonly prototype: any[];
1481
- from<T>(arrayLike: ArrayLike<T>): T[];
1482
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
1483
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
1484
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
1485
- of<T_4>(...items: T_4[]): T_4[];
1486
- readonly [Symbol.species]: ArrayConstructor;
1487
- };
1488
- default: () => never[];
1489
- };
1490
- ellipsis: {
1491
- type: BooleanConstructor;
1492
- default: boolean;
1493
- };
1494
- contentStyle: {
1495
- type: ObjectConstructor;
1496
- default: () => {};
1497
- };
1498
- isSelect: {
1499
- type: BooleanConstructor;
1500
- default: boolean;
1501
- };
1502
- tips: StringConstructor;
1503
- counter: {
1504
- type: BooleanConstructor;
1505
- default: boolean;
1506
- };
1507
- autosize: {
1508
- type: (BooleanConstructor | ObjectConstructor)[];
1509
- default: boolean;
1510
- };
1511
- clearable: {
1512
- type: BooleanConstructor;
1513
- default: boolean;
1514
- };
1515
- autocomplete: {
1516
- type: StringConstructor;
1517
- default: string;
1518
- };
1519
- showPassword: {
1520
- type: BooleanConstructor;
1521
- default: boolean;
1522
- };
1523
- showWordLimit: {
1524
- type: BooleanConstructor;
1525
- default: boolean;
1526
- };
1527
- showTitle: {
1528
- type: BooleanConstructor;
1529
- default: boolean;
1530
- };
1531
- validateEvent: {
1532
- type: BooleanConstructor;
1533
- default: boolean;
1534
- };
1535
- popupMore: {
1536
- type: BooleanConstructor;
1537
- default: boolean;
1538
- };
1539
- textareaTitle: {
1540
- type: StringConstructor;
1541
- default: string;
1542
- };
1543
- displayOnly: {
1544
- type: BooleanConstructor;
1545
- default: boolean;
1546
- };
1547
- displayOnlyContent: {
1548
- type: StringConstructor;
1549
- default: string;
1550
- };
1551
- customClass: {
1552
- type: StringConstructor;
1553
- default: string;
1554
- };
1555
- frontClearIcon: {
1556
- type: BooleanConstructor;
1557
- default: boolean;
1558
- };
1559
- showEmptyValue: {
1560
- type: BooleanConstructor;
1561
- default: undefined;
1562
- };
1563
- textAlign: {
1564
- type: StringConstructor;
1565
- default: string;
1566
- };
1567
- width: {
1568
- type: PropType<string | number | null>;
1569
- };
1570
- showTooltip: {
1571
- type: BooleanConstructor;
1572
- default: boolean;
1573
- };
1574
- inputBoxType: {
1575
- type: StringConstructor;
1576
- default: string;
1577
- validator: (value: string) => boolean;
1578
- };
1579
- tiny_mode: StringConstructor;
1580
- tiny_mode_root: BooleanConstructor;
1581
- tiny_template: (ObjectConstructor | FunctionConstructor)[];
1582
- tiny_renderless: FunctionConstructor;
1583
- tiny_theme: StringConstructor;
1584
- tiny_mcp_config: ObjectConstructor;
1585
- tiny_chart_theme: ObjectConstructor;
1586
- }>>, () => VNode<RendererNode, RendererElement, {
1587
- [key: string]: any;
1588
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
1589
- disabled: boolean;
1590
- type: string;
1591
- ellipsis: boolean;
1592
- mask: boolean;
1593
- vertical: boolean;
1594
- customClass: string;
1595
- tiny_mode_root: boolean;
1596
- _constants: Record<string, any>;
1597
- tabindex: string;
1598
- showTitle: boolean;
1599
- readonly: boolean;
1600
- hoverExpand: boolean;
1601
- memorySpace: number;
1602
- selectMenu: {
1603
- id: string;
1604
- label: string;
1605
- }[];
1606
- contentStyle: Record<string, any>;
1607
- isSelect: boolean;
1608
- counter: boolean;
1609
- autosize: boolean | Record<string, any>;
1610
- clearable: boolean;
1611
- autocomplete: string;
1612
- showPassword: boolean;
1613
- showWordLimit: boolean;
1614
- validateEvent: boolean;
1615
- popupMore: boolean;
1616
- textareaTitle: string;
1617
- displayOnly: boolean;
1618
- displayOnlyContent: string;
1619
- frontClearIcon: boolean;
1620
- showEmptyValue: boolean;
1621
- textAlign: string;
1622
- showTooltip: boolean;
1623
- inputBoxType: string;
1624
- }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1625
- P: {};
1626
- B: {};
1627
- D: {};
1628
- C: {};
1629
- M: {};
1630
- Defaults: {};
1631
- }, Readonly<ExtractPropTypes< {
1632
- _constants: {
1633
- type: ObjectConstructor;
1634
- default: () => {
1635
- INPUT_PC: string;
1636
- INPUTGROUP_PC: string;
1637
- INPUT_MOBILE: string;
1638
- INPUTGROUP_MOBILE: string;
1639
- Mode: string;
1640
- inputMode(mode: any): string;
1641
- inputGroupMode(mode: any): string;
1642
- VALIDATE_ICON: {
1643
- Validating: string;
1644
- Success: string;
1645
- Error: string;
1646
- };
1647
- COMPONENT_NAME: {
1648
- FormItem: string;
1649
- };
1650
- MASKSYMBOL: string;
1651
- TEXTAREA_HEIGHT_MOBILE: number;
1652
- };
1653
- };
1654
- name: StringConstructor;
1655
- size: StringConstructor;
1656
- form: StringConstructor;
1657
- label: StringConstructor;
1658
- height: NumberConstructor;
1659
- resize: StringConstructor;
1660
- tabindex: {
1661
- type: StringConstructor;
1662
- default: string;
1663
- };
1664
- disabled: BooleanConstructor;
1665
- readonly: BooleanConstructor;
1666
- hoverExpand: BooleanConstructor;
1667
- mask: BooleanConstructor;
1668
- suffixIcon: (StringConstructor | ObjectConstructor)[];
1669
- prefixIcon: (StringConstructor | ObjectConstructor)[];
1670
- modelValue: PropType<string | number | null>;
1671
- type: {
1672
- type: StringConstructor;
1673
- default: string;
1674
- };
1675
- memorySpace: {
1676
- type: NumberConstructor;
1677
- default: number;
1678
- };
1679
- vertical: {
1680
- type: BooleanConstructor;
1681
- default: boolean;
1682
- };
1683
- selectMenu: {
1684
- type: {
1685
- (arrayLength: number): {
1686
- id: string;
1687
- label: string;
1688
- }[];
1689
- (...items: {
1690
- id: string;
1691
- label: string;
1692
- }[]): {
1693
- id: string;
1694
- label: string;
1695
- }[];
1696
- new (arrayLength: number): {
1697
- id: string;
1698
- label: string;
1699
- }[];
1700
- new (...items: {
1701
- id: string;
1702
- label: string;
1703
- }[]): {
1704
- id: string;
1705
- label: string;
1706
- }[];
1707
- isArray(arg: any): arg is any[];
1708
- readonly prototype: any[];
1709
- from<T>(arrayLike: ArrayLike<T>): T[];
1710
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
1711
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
1712
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
1713
- of<T_4>(...items: T_4[]): T_4[];
1714
- readonly [Symbol.species]: ArrayConstructor;
1715
- };
1716
- default: () => never[];
1717
- };
1718
- ellipsis: {
1719
- type: BooleanConstructor;
1720
- default: boolean;
1721
- };
1722
- contentStyle: {
1723
- type: ObjectConstructor;
1724
- default: () => {};
1725
- };
1726
- isSelect: {
1727
- type: BooleanConstructor;
1728
- default: boolean;
1729
- };
1730
- tips: StringConstructor;
1731
- counter: {
1732
- type: BooleanConstructor;
1733
- default: boolean;
1734
- };
1735
- autosize: {
1736
- type: (BooleanConstructor | ObjectConstructor)[];
1737
- default: boolean;
1738
- };
1739
- clearable: {
1740
- type: BooleanConstructor;
1741
- default: boolean;
1742
- };
1743
- autocomplete: {
1744
- type: StringConstructor;
1745
- default: string;
1746
- };
1747
- showPassword: {
1748
- type: BooleanConstructor;
1749
- default: boolean;
1750
- };
1751
- showWordLimit: {
1752
- type: BooleanConstructor;
1753
- default: boolean;
1754
- };
1755
- showTitle: {
1756
- type: BooleanConstructor;
1757
- default: boolean;
1758
- };
1759
- validateEvent: {
1760
- type: BooleanConstructor;
1761
- default: boolean;
1762
- };
1763
- popupMore: {
1764
- type: BooleanConstructor;
1765
- default: boolean;
1766
- };
1767
- textareaTitle: {
1768
- type: StringConstructor;
1769
- default: string;
1770
- };
1771
- displayOnly: {
1772
- type: BooleanConstructor;
1773
- default: boolean;
1774
- };
1775
- displayOnlyContent: {
1776
- type: StringConstructor;
1777
- default: string;
1778
- };
1779
- customClass: {
1780
- type: StringConstructor;
1781
- default: string;
1782
- };
1783
- frontClearIcon: {
1784
- type: BooleanConstructor;
1785
- default: boolean;
1786
- };
1787
- showEmptyValue: {
1788
- type: BooleanConstructor;
1789
- default: undefined;
1790
- };
1791
- textAlign: {
1792
- type: StringConstructor;
1793
- default: string;
1794
- };
1795
- width: {
1796
- type: PropType<string | number | null>;
1797
- };
1798
- showTooltip: {
1799
- type: BooleanConstructor;
1800
- default: boolean;
1801
- };
1802
- inputBoxType: {
1803
- type: StringConstructor;
1804
- default: string;
1805
- validator: (value: string) => boolean;
1806
- };
1807
- tiny_mode: StringConstructor;
1808
- tiny_mode_root: BooleanConstructor;
1809
- tiny_template: (ObjectConstructor | FunctionConstructor)[];
1810
- tiny_renderless: FunctionConstructor;
1811
- tiny_theme: StringConstructor;
1812
- tiny_mcp_config: ObjectConstructor;
1813
- tiny_chart_theme: ObjectConstructor;
1814
- }>>, () => VNode<RendererNode, RendererElement, {
1815
- [key: string]: any;
1816
- }>, {}, {}, {}, {
1817
- disabled: boolean;
1818
- type: string;
1819
- ellipsis: boolean;
1820
- mask: boolean;
1821
- vertical: boolean;
1822
- customClass: string;
1823
- tiny_mode_root: boolean;
1824
- _constants: Record<string, any>;
1825
- tabindex: string;
1826
- showTitle: boolean;
1827
- readonly: boolean;
1828
- hoverExpand: boolean;
1829
- memorySpace: number;
1830
- selectMenu: {
1831
- id: string;
1832
- label: string;
1833
- }[];
1834
- contentStyle: Record<string, any>;
1835
- isSelect: boolean;
1836
- counter: boolean;
1837
- autosize: boolean | Record<string, any>;
1838
- clearable: boolean;
1839
- autocomplete: string;
1840
- showPassword: boolean;
1841
- showWordLimit: boolean;
1842
- validateEvent: boolean;
1843
- popupMore: boolean;
1844
- textareaTitle: string;
1845
- displayOnly: boolean;
1846
- displayOnlyContent: string;
1847
- frontClearIcon: boolean;
1848
- showEmptyValue: boolean;
1849
- textAlign: string;
1850
- showTooltip: boolean;
1851
- inputBoxType: string;
1852
- }> | null;
943
+ inputRef: any;
1853
944
  buttonsContainerRef: HTMLDivElement;
1854
945
  };
1855
946
  rootEl: HTMLDivElement;
package/dist/index4.js CHANGED
@@ -3,53 +3,53 @@ class w extends Error {
3
3
  super(`${e} at position ${r}`), this.position = r;
4
4
  }
5
5
  }
6
- const q = 32, ae = 10, H = 9, P = 13, de = 160, pe = 8192, he = 8202, ge = 8239, we = 8287, me = 12288;
7
- function Ce(n) {
6
+ const q = 32, ae = 10, P = 9, H = 13, de = 160, pe = 6158, he = 8192, ge = 8203, we = 8239, me = 8287, Ce = 12288, be = 65279;
7
+ function Se(n) {
8
8
  return /^[0-9A-Fa-f]$/.test(n);
9
9
  }
10
10
  function d(n) {
11
11
  return n >= "0" && n <= "9";
12
12
  }
13
- function be(n) {
13
+ function Ne(n) {
14
14
  return n >= " ";
15
15
  }
16
16
  function O(n) {
17
17
  return `,:[]/{}()
18
18
  +`.includes(n);
19
19
  }
20
- function L(n) {
20
+ function K(n) {
21
21
  return n >= "a" && n <= "z" || n >= "A" && n <= "Z" || n === "_" || n === "$";
22
22
  }
23
- function F(n) {
23
+ function L(n) {
24
24
  return n >= "a" && n <= "z" || n >= "A" && n <= "Z" || n === "_" || n === "$" || n >= "0" && n <= "9";
25
25
  }
26
- const M = /^(http|https|ftp|mailto|file|data|irc):\/\/$/, R = /^[A-Za-z0-9-._~:/?#@!$&'()*+;=]$/;
27
- function Z(n) {
26
+ const M = /^(http|https|ftp|mailto|file|data|irc):\/\/$/, F = /^[A-Za-z0-9-._~:/?#@!$&'()*+;=]$/;
27
+ function R(n) {
28
28
  return `,[]/{}
29
29
  +`.includes(n);
30
30
  }
31
31
  function _(n) {
32
- return E(n) || Se.test(n);
32
+ return E(n) || ke.test(n);
33
33
  }
34
- const Se = /^[[{\w-]$/;
35
- function Ne(n) {
34
+ const ke = /^[[{\w-]$/;
35
+ function $e(n) {
36
36
  return n === `
37
37
  ` || n === "\r" || n === " " || n === "\b" || n === "\f";
38
38
  }
39
39
  function p(n, e) {
40
40
  const r = n.charCodeAt(e);
41
- return r === q || r === ae || r === H || r === P;
41
+ return r === q || r === ae || r === P || r === H;
42
42
  }
43
- function ke(n, e) {
43
+ function Ae(n, e) {
44
44
  const r = n.charCodeAt(e);
45
- return r === q || r === H || r === P;
45
+ return r === q || r === P || r === H;
46
46
  }
47
- function $e(n, e) {
47
+ function Oe(n, e) {
48
48
  const r = n.charCodeAt(e);
49
- return r === de || r >= pe && r <= he || r === ge || r === we || r === me;
49
+ return r === de || r === pe || r >= he && r <= ge || r === we || r === me || r === Ce || r === be;
50
50
  }
51
51
  function E(n) {
52
- return G(n) || Q(n);
52
+ return G(n) || B(n);
53
53
  }
54
54
  function G(n) {
55
55
  return n === '"' || n === "“" || n === "”";
@@ -57,7 +57,7 @@ function G(n) {
57
57
  function z(n) {
58
58
  return n === '"';
59
59
  }
60
- function Q(n) {
60
+ function B(n) {
61
61
  return n === "'" || n === "‘" || n === "’" || n === "`" || n === "´";
62
62
  }
63
63
  function T(n) {
@@ -76,19 +76,19 @@ function l(n, e) {
76
76
  r--;
77
77
  return n.substring(0, r) + e + n.substring(r);
78
78
  }
79
- function Ae(n, e, r) {
79
+ function Ee(n, e, r) {
80
80
  return n.substring(0, e) + n.substring(e + r);
81
81
  }
82
- function Oe(n) {
82
+ function ye(n) {
83
83
  return /[,\n][ \t\r]*$/.test(n);
84
84
  }
85
- const Ee = {
85
+ const We = {
86
86
  "\b": "\\b",
87
87
  "\f": "\\f",
88
88
  "\n": "\\n",
89
89
  "\r": "\\r",
90
90
  " ": "\\t"
91
- }, ye = {
91
+ }, ve = {
92
92
  '"': '"',
93
93
  "\\": "\\",
94
94
  "/": "/",
@@ -100,11 +100,11 @@ const Ee = {
100
100
  t: " "
101
101
  // note that \u is handled separately in parseString()
102
102
  };
103
- function We(n) {
103
+ function Be(n) {
104
104
  let e = 0, r = "";
105
- U(["```", "[```", "{```"]), m() || ce(), U(["```", "```]", "```}"]);
105
+ I(["```", "[```", "{```"]), m() || ce(), I(["```", "```]", "```}"]);
106
106
  const y = C(",");
107
- for (y && t(), _(n[e]) && Oe(r) ? (y || (r = l(r, ",")), re()) : y && (r = S(r, ",")); n[e] === "}" || n[e] === "]"; )
107
+ for (y && t(), _(n[e]) && ye(r) ? (y || (r = l(r, ",")), re()) : y && (r = S(r, ",")); n[e] === "}" || n[e] === "]"; )
108
108
  e++, t();
109
109
  if (e >= n.length)
110
110
  return r;
@@ -117,19 +117,19 @@ function We(n) {
117
117
  function t() {
118
118
  let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
119
119
  const s = e;
120
- let u = v(i);
120
+ let u = W(i);
121
121
  do
122
- u = X(), u && (u = v(i));
122
+ u = X(), u && (u = W(i));
123
123
  while (u);
124
124
  return e > s;
125
125
  }
126
- function v(i) {
127
- const s = i ? p : ke;
126
+ function W(i) {
127
+ const s = i ? p : Ae;
128
128
  let u = "";
129
129
  for (; ; )
130
130
  if (s(n, e))
131
131
  u += n[e], e++;
132
- else if ($e(n, e))
132
+ else if (Oe(n, e))
133
133
  u += " ", e++;
134
134
  else
135
135
  break;
@@ -137,7 +137,7 @@ function We(n) {
137
137
  }
138
138
  function X() {
139
139
  if (n[e] === "/" && n[e + 1] === "*") {
140
- for (; e < n.length && !ve(n, e); )
140
+ for (; e < n.length && !Ve(n, e); )
141
141
  e++;
142
142
  return e += 2, !0;
143
143
  }
@@ -149,17 +149,17 @@ function We(n) {
149
149
  }
150
150
  return !1;
151
151
  }
152
- function U(i) {
152
+ function I(i) {
153
153
  if (Y(i)) {
154
- if (L(n[e]))
155
- for (; e < n.length && F(n[e]); )
154
+ if (K(n[e]))
155
+ for (; e < n.length && L(n[e]); )
156
156
  e++;
157
157
  return t(), !0;
158
158
  }
159
159
  return !1;
160
160
  }
161
161
  function Y(i) {
162
- v(!0);
162
+ W(!0);
163
163
  for (const s of i) {
164
164
  const u = e + s.length;
165
165
  if (n.slice(e, u) === s)
@@ -176,7 +176,7 @@ function We(n) {
176
176
  function x() {
177
177
  return k("\\");
178
178
  }
179
- function V() {
179
+ function Q() {
180
180
  return t(), n[e] === "." && n[e + 1] === "." && n[e + 2] === "." ? (e += 3, t(), k(","), !0) : !1;
181
181
  }
182
182
  function ee() {
@@ -185,7 +185,7 @@ function We(n) {
185
185
  let i = !0;
186
186
  for (; e < n.length && n[e] !== "}"; ) {
187
187
  let s;
188
- if (i ? (s = !0, i = !1) : (s = C(","), s || (r = l(r, ",")), t()), V(), !(h() || j(!0))) {
188
+ if (i ? (s = !0, i = !1) : (s = C(","), s || (r = l(r, ",")), t()), Q(), !(h() || j(!0))) {
189
189
  n[e] === "}" || n[e] === "{" || n[e] === "]" || n[e] === "[" || n[e] === void 0 ? r = S(r, ",") : le();
190
190
  break;
191
191
  }
@@ -202,7 +202,7 @@ function We(n) {
202
202
  r += "[", e++, t(), k(",") && t();
203
203
  let i = !0;
204
204
  for (; e < n.length && n[e] !== "]"; )
205
- if (i ? i = !1 : C(",") || (r = l(r, ",")), V(), !m()) {
205
+ if (i ? i = !1 : C(",") || (r = l(r, ",")), Q(), !m()) {
206
206
  r = S(r, ",");
207
207
  break;
208
208
  }
@@ -221,7 +221,7 @@ ${r}
221
221
  function h() {
222
222
  let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1, u = n[e] === "\\";
223
223
  if (u && (e++, u = !0), E(n[e])) {
224
- const A = z(n[e]) ? z : T(n[e]) ? T : Q(n[e]) ? Q : G, a = e, b = r.length;
224
+ const A = z(n[e]) ? z : T(n[e]) ? T : B(n[e]) ? B : G, a = e, b = r.length;
225
225
  let o = '"';
226
226
  for (e++; ; ) {
227
227
  if (e >= n.length) {
@@ -231,46 +231,46 @@ ${r}
231
231
  if (e === s)
232
232
  return o = l(o, '"'), r += o, !0;
233
233
  if (A(n[e])) {
234
- const c = e, I = o.length;
234
+ const c = e, V = o.length;
235
235
  if (o += '"', e++, r += o, t(!1), i || e >= n.length || O(n[e]) || E(n[e]) || d(n[e]))
236
- return B(), !0;
237
- const f = D(c - 1), K = n.charAt(f);
238
- if (K === ",")
236
+ return U(), !0;
237
+ const f = D(c - 1), Z = n.charAt(f);
238
+ if (Z === ",")
239
239
  return e = a, r = r.substring(0, b), h(!1, f);
240
- if (O(K))
240
+ if (O(Z))
241
241
  return e = a, r = r.substring(0, b), h(!0);
242
- r = r.substring(0, b), e = c + 1, o = `${o.substring(0, I)}\\${o.substring(I)}`;
243
- } else if (i && Z(n[e])) {
242
+ r = r.substring(0, b), e = c + 1, o = `${o.substring(0, V)}\\${o.substring(V)}`;
243
+ } else if (i && R(n[e])) {
244
244
  if (n[e - 1] === ":" && M.test(n.substring(a + 1, e + 2)))
245
- for (; e < n.length && R.test(n[e]); )
245
+ for (; e < n.length && F.test(n[e]); )
246
246
  o += n[e], e++;
247
- return o = l(o, '"'), r += o, B(), !0;
247
+ return o = l(o, '"'), r += o, U(), !0;
248
248
  } else if (n[e] === "\\") {
249
249
  const c = n.charAt(e + 1);
250
- if (ye[c] !== void 0)
250
+ if (ve[c] !== void 0)
251
251
  o += n.slice(e, e + 2), e += 2;
252
252
  else if (c === "u") {
253
253
  let f = 2;
254
- for (; f < 6 && Ce(n[e + f]); )
254
+ for (; f < 6 && Se(n[e + f]); )
255
255
  f++;
256
256
  f === 6 ? (o += n.slice(e, e + 6), e += 6) : e + f >= n.length ? e = n.length : fe();
257
257
  } else
258
258
  o += c, e += 2;
259
259
  } else {
260
260
  const c = n.charAt(e);
261
- c === '"' && n[e - 1] !== "\\" ? (o += `\\${c}`, e++) : Ne(c) ? (o += Ee[c], e++) : (be(c) || oe(c), o += c, e++);
261
+ c === '"' && n[e - 1] !== "\\" ? (o += `\\${c}`, e++) : $e(c) ? (o += We[c], e++) : (Ne(c) || oe(c), o += c, e++);
262
262
  }
263
263
  u && x();
264
264
  }
265
265
  }
266
266
  return !1;
267
267
  }
268
- function B() {
268
+ function U() {
269
269
  let i = !1;
270
270
  for (t(); n[e] === "+"; ) {
271
271
  i = !0, e++, t(), r = S(r, '"', !0);
272
272
  const s = r.length;
273
- h() ? r = Ae(r, s, 1) : r = l(r, '"');
273
+ h() ? r = Ee(r, s, 1) : r = l(r, '"');
274
274
  }
275
275
  return i;
276
276
  }
@@ -278,7 +278,7 @@ ${r}
278
278
  const i = e;
279
279
  if (n[e] === "-") {
280
280
  if (e++, $())
281
- return W(i), !0;
281
+ return v(i), !0;
282
282
  if (!d(n[e]))
283
283
  return e = i, !1;
284
284
  }
@@ -286,7 +286,7 @@ ${r}
286
286
  e++;
287
287
  if (n[e] === ".") {
288
288
  if (e++, $())
289
- return W(i), !0;
289
+ return v(i), !0;
290
290
  if (!d(n[e]))
291
291
  return e = i, !1;
292
292
  for (; d(n[e]); )
@@ -294,7 +294,7 @@ ${r}
294
294
  }
295
295
  if (n[e] === "e" || n[e] === "E") {
296
296
  if (e++, (n[e] === "-" || n[e] === "+") && e++, $())
297
- return W(i), !0;
297
+ return v(i), !0;
298
298
  if (!d(n[e]))
299
299
  return e = i, !1;
300
300
  for (; d(n[e]); )
@@ -317,8 +317,8 @@ ${r}
317
317
  }
318
318
  function j(i) {
319
319
  const s = e;
320
- if (L(n[e])) {
321
- for (; e < n.length && F(n[e]); )
320
+ if (K(n[e])) {
321
+ for (; e < n.length && L(n[e]); )
322
322
  e++;
323
323
  let u = e;
324
324
  for (; p(n, u); )
@@ -326,10 +326,10 @@ ${r}
326
326
  if (n[u] === "(")
327
327
  return e = u + 1, m(), n[e] === ")" && (e++, n[e] === ";" && e++), !0;
328
328
  }
329
- for (; e < n.length && !Z(n[e]) && !E(n[e]) && (!i || n[e] !== ":"); )
329
+ for (; e < n.length && !R(n[e]) && !E(n[e]) && (!i || n[e] !== ":"); )
330
330
  e++;
331
331
  if (n[e - 1] === ":" && M.test(n.substring(s, e + 2)))
332
- for (; e < n.length && R.test(n[e]); )
332
+ for (; e < n.length && F.test(n[e]); )
333
333
  e++;
334
334
  if (e > s) {
335
335
  for (; p(n, e - 1) && e > 0; )
@@ -355,7 +355,7 @@ ${r}
355
355
  function $() {
356
356
  return e >= n.length || O(n[e]) || p(n, e);
357
357
  }
358
- function W(i) {
358
+ function v(i) {
359
359
  r += `${n.slice(i, e)}0`;
360
360
  }
361
361
  function oe(i) {
@@ -378,10 +378,10 @@ ${r}
378
378
  throw new w(`Invalid unicode character "${i}"`, e);
379
379
  }
380
380
  }
381
- function ve(n, e) {
381
+ function Ve(n, e) {
382
382
  return n[e] === "*" && n[e + 1] === "/";
383
383
  }
384
384
  export {
385
385
  w as JSONRepairError,
386
- We as jsonrepair
386
+ Be as jsonrepair
387
387
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-robot",
3
- "version": "0.4.0-alpha.15",
3
+ "version": "0.4.0-alpha.17",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -22,7 +22,7 @@
22
22
  "vue": "^3.3.11"
23
23
  },
24
24
  "dependencies": {
25
- "@opentiny/tiny-robot-svgs": "0.4.0-alpha.15",
25
+ "@opentiny/tiny-robot-svgs": "0.4.0-alpha.17",
26
26
  "@opentiny/vue": "^3.20.0",
27
27
  "@vueuse/core": "^13.1.0",
28
28
  "jsonrepair": "^3.13.1"
@@ -43,5 +43,5 @@
43
43
  "vue": "^3.3.11",
44
44
  "vue-tsc": "^2.2.8"
45
45
  },
46
- "gitHead": "1d6a99f4833c8d525a989618ad7a11a6af6b8d89"
46
+ "gitHead": "e60b84715e80fa36fe6d7f4f40aaecc63d20746b"
47
47
  }