@toolmain/components 1.2.17 → 1.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +74 -53
  2. package/dist/index.js +758 -757
  3. package/package.json +16 -16
package/dist/index.d.ts CHANGED
@@ -6,7 +6,6 @@ import type * as CSS_2 from 'csstype';
6
6
  import { DefineComponent } from 'vue';
7
7
  import { Dexie } from 'dexie';
8
8
  import { EntityTable } from 'dexie';
9
- import { EventBus as EventBus_2 } from '@toolmain/shared';
10
9
  import { GLTF } from 'three/addons';
11
10
  import type { MaybeRef } from 'vue';
12
11
  import { OrbitControls } from 'three/addons';
@@ -26,11 +25,11 @@ import { TransformControlsMode } from 'three/addons';
26
25
  import { VNode } from 'vue';
27
26
  import { VNodeProps } from 'vue';
28
27
 
29
- declare const __VLS_component: DefineComponent<__VLS_Props, {
28
+ declare const __VLS_base: DefineComponent<__VLS_Props, {
30
29
  update: () => void;
31
30
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
32
31
 
33
- declare const __VLS_component_2: DefineComponent<ScaleProps, ScaleInstance, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
32
+ declare const __VLS_base_2: DefineComponent<ScaleProps, ScaleInstance, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
34
33
  moving: (pos: MoveParams) => any;
35
34
  scaling: (scaleEl: HTMLElement) => any;
36
35
  beforeMove: (pos: MoveParams) => any;
@@ -48,7 +47,7 @@ onMaskClick?: (() => any) | undefined;
48
47
  "onUpdate:modelValue"?: ((data: ScaleConfig) => any) | undefined;
49
48
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
50
49
 
51
- declare const __VLS_component_3: DefineComponent<__VLS_Props_2, {
50
+ declare const __VLS_base_3: DefineComponent<__VLS_Props_2, {
52
51
  world: World;
53
52
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
54
53
  loaded: (args_0: World) => any;
@@ -58,9 +57,66 @@ onLoaded?: ((args_0: World) => any) | undefined;
58
57
  onTargetClick?: ((args_0: TargetData) => any) | undefined;
59
58
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
60
59
 
61
- declare const __VLS_component_4: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
60
+ declare const __VLS_base_4: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
62
61
 
63
- declare const __VLS_component_5: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
62
+ declare const __VLS_base_5: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
63
+
64
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
65
+
66
+ declare const __VLS_export_10: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
67
+
68
+ declare const __VLS_export_11: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
69
+ scaling: () => any;
70
+ afterScale: () => any;
71
+ "update:modelValue": (value: CSSProperties) => any;
72
+ }, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
73
+ onScaling?: (() => any) | undefined;
74
+ onAfterScale?: (() => any) | undefined;
75
+ "onUpdate:modelValue"?: ((value: CSSProperties) => any) | undefined;
76
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
77
+
78
+ declare const __VLS_export_2: __VLS_WithSlots_2<typeof __VLS_base_2, __VLS_Slots_2>;
79
+
80
+ declare const __VLS_export_3: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
81
+
82
+ declare const __VLS_export_4: __VLS_WithSlots_3<typeof __VLS_base_3, __VLS_Slots_3>;
83
+
84
+ declare const __VLS_export_5: __VLS_WithSlots_4<typeof __VLS_base_4, __VLS_Slots_4>;
85
+
86
+ declare const __VLS_export_6: __VLS_WithSlots_5<typeof __VLS_base_5, __VLS_Slots_5>;
87
+
88
+ declare const __VLS_export_7: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
89
+ "update:modelValue": (value: boolean) => any;
90
+ }, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
91
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
92
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
93
+
94
+ declare const __VLS_export_8: DefineComponent< {
95
+ data: BaseComponent[];
96
+ parentId: string;
97
+ provider: ComponentProvider;
98
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
99
+ data: BaseComponent[];
100
+ parentId: string;
101
+ provider: ComponentProvider;
102
+ }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
103
+
104
+ declare const __VLS_export_9: __VLS_WithSlots_6<DefineComponent< {
105
+ component: Component | VNode | string;
106
+ instanceId: string;
107
+ provider?: ComponentProvider;
108
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
109
+ component: Component | VNode | string;
110
+ instanceId: string;
111
+ provider?: ComponentProvider;
112
+ }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
113
+ [x: string]: ((props: {
114
+ [x: string]: unknown;
115
+ }) => any) | undefined;
116
+ [x: number]: ((props: {
117
+ [x: string]: unknown;
118
+ }) => any) | undefined;
119
+ }>;
64
120
 
65
121
  declare type __VLS_Props = {
66
122
  /**
@@ -195,7 +251,7 @@ declare type __VLS_WithSlots_6<T, S> = T & {
195
251
  */
196
252
  export declare function a2r(angle: number): number;
197
253
 
198
- export declare const Affix: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
254
+ export declare const Affix: typeof __VLS_export;
199
255
 
200
256
  export declare type AnimateDir = "left" | "top" | "bottom" | "right" | "self" | "center" | {
201
257
  x?: number;
@@ -577,7 +633,7 @@ export declare type ControlConf = {
577
633
  };
578
634
  };
579
635
 
580
- export declare const Copy: __VLS_WithSlots_5<typeof __VLS_component_5, __VLS_Slots_5>;
636
+ export declare const Copy: typeof __VLS_export_6;
581
637
 
582
638
  export declare class Core {
583
639
  #private;
@@ -670,7 +726,7 @@ export declare type DeliverParam = {
670
726
  clientY?: number;
671
727
  };
672
728
 
673
- export declare const DialogPanel: __VLS_WithSlots_4<typeof __VLS_component_4, __VLS_Slots_4>;
729
+ export declare const DialogPanel: typeof __VLS_export_5;
674
730
 
675
731
  export declare type Dir = "horizontal" | "vertical" | "any";
676
732
 
@@ -771,7 +827,7 @@ export declare class EpLibrary implements ComponentLibrary {
771
827
  isPlaceHolder(raw: RawComponent): boolean;
772
828
  }
773
829
 
774
- export declare const EpLibraryUI: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
830
+ export declare const EpLibraryUI: typeof __VLS_export_10;
775
831
 
776
832
  /**
777
833
  * @description changed origin: https://github.com/browserify/events
@@ -1138,7 +1194,7 @@ declare class NodeTree {
1138
1194
  serialize(parent: BaseComponent[]): BaseComponentSerialized[];
1139
1195
  }
1140
1196
 
1141
- export declare const ParentView: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1197
+ export declare const ParentView: typeof __VLS_export_3;
1142
1198
 
1143
1199
  export declare function parseProp(propKey: string, prop: Props, parser: PropsGenerator, provider: ComponentProvider): unknown;
1144
1200
 
@@ -1368,29 +1424,13 @@ export declare interface RemoteSrc {
1368
1424
  content?: string;
1369
1425
  }
1370
1426
 
1371
- export declare const Renderer: DefineComponent< {
1372
- data: BaseComponent[];
1373
- parentId: string;
1374
- provider: ComponentProvider;
1375
- }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
1376
- data: BaseComponent[];
1377
- parentId: string;
1378
- provider: ComponentProvider;
1379
- }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1427
+ export declare const Renderer: typeof __VLS_export_8;
1380
1428
 
1381
1429
  export declare type RendererConf = {
1382
1430
  clearColor: string;
1383
1431
  };
1384
1432
 
1385
- export declare const Resize: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1386
- scaling: () => any;
1387
- afterScale: () => any;
1388
- "update:modelValue": (value: CSSProperties) => any;
1389
- }, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
1390
- onScaling?: (() => any) | undefined;
1391
- onAfterScale?: (() => any) | undefined;
1392
- "onUpdate:modelValue"?: ((value: CSSProperties) => any) | undefined;
1393
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1433
+ export declare const Resize: typeof __VLS_export_11;
1394
1434
 
1395
1435
  /**
1396
1436
  * tranlate rgb color to hex string
@@ -1508,7 +1548,7 @@ export declare interface ScaleInstance {
1508
1548
  getStatus: () => Status | undefined;
1509
1549
  }
1510
1550
 
1511
- export declare const ScalePanel: __VLS_WithSlots_2<typeof __VLS_component_2, __VLS_Slots_2>;
1551
+ export declare const ScalePanel: typeof __VLS_export_2;
1512
1552
 
1513
1553
  export declare interface ScaleProps {
1514
1554
  modelValue: ScaleConfig;
@@ -1554,28 +1594,9 @@ export declare class Scene {
1554
1594
  private initSceneInteraction;
1555
1595
  }
1556
1596
 
1557
- export declare const Shell: __VLS_WithSlots_6<DefineComponent< {
1558
- component: Component | VNode | string;
1559
- instanceId: string;
1560
- provider?: ComponentProvider;
1561
- }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
1562
- component: Component | VNode | string;
1563
- instanceId: string;
1564
- provider?: ComponentProvider;
1565
- }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
1566
- [x: string]: ((props: {
1567
- [x: string]: unknown;
1568
- }) => any) | undefined;
1569
- [x: number]: ((props: {
1570
- [x: string]: unknown;
1571
- }) => any) | undefined;
1572
- }>;
1597
+ export declare const Shell: typeof __VLS_export_9;
1573
1598
 
1574
- export declare const Spinner: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1575
- "update:modelValue": (value: boolean) => any;
1576
- }, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
1577
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1578
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1599
+ export declare const Spinner: typeof __VLS_export_7;
1579
1600
 
1580
1601
  export declare enum Status {
1581
1602
  NORMAL = "NORMAL",
@@ -1694,7 +1715,7 @@ export declare interface ThreeEv {
1694
1715
  SceneLoaded: () => void;
1695
1716
  }
1696
1717
 
1697
- export declare const ThreePanel: __VLS_WithSlots_3<typeof __VLS_component_3, __VLS_Slots_3>;
1718
+ export declare const ThreePanel: typeof __VLS_export_4;
1698
1719
 
1699
1720
  export declare type ThreePanelConf = {
1700
1721
  url?: string;
@@ -1778,7 +1799,7 @@ export declare const useHandle: (data: {
1778
1799
  };
1779
1800
 
1780
1801
  export declare function useKeyboard(): {
1781
- ev: EventBus_2< {
1802
+ ev: EventBus< {
1782
1803
  [x: string]: any;
1783
1804
  }>;
1784
1805
  init: () => void;