@jlceda/pro-api-types 0.2.21 → 0.2.24

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 (2) hide show
  1. package/index.d.ts +559 -282
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import * as react from 'react';
2
- import react__default from 'react';
3
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React$1 from 'react';
4
3
 
5
4
  declare global {
6
5
  /**
@@ -506,6 +505,17 @@ declare global {
506
505
  * @returns 标签页 ID,对应 {@link IDMT_EditorTabItem.tabId},可使用 {@link DMT_EditorControl.getSplitScreenIdByTabId} 获取到分屏 ID
507
506
  */
508
507
  openInEditor(symbolUuid: string, libraryUuid: string, splitScreenId?: string): Promise<string | undefined>;
508
+ /**
509
+ * 获取符号渲染图
510
+ *
511
+ * @beta
512
+ * @param symbol - 符号的索引
513
+ * @returns 符号渲染图
514
+ */
515
+ getRenderImage(source: {
516
+ symbolUuid: string;
517
+ libraryUuid: string;
518
+ }): Promise<Blob | undefined>;
509
519
  }
510
520
 
511
521
  /**
@@ -1380,7 +1390,7 @@ declare global {
1380
1390
  * @param projectFriendlyName - 工程友好名称
1381
1391
  * @param projectName - 工程名称,不可重复,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好名称自动生成
1382
1392
  * @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定团队 UUID
1383
- * @param folderUuid - 文件夹 UUID,如若不指定,则为根文件夹
1393
+ * @param folderUuid - 文件夹 UUID,如若不指定,则为根文��夹
1384
1394
  * @param description - 工程描述
1385
1395
  * @param collaborationMode - 工程协作模式,如若团队权限无需工程设置协作模式,则该参数将被忽略
1386
1396
  * @returns 工程 UUID,如若为 `undefined` 则创建失败
@@ -1605,17 +1615,9 @@ declare global {
1605
1615
  * 系统 / 单位类
1606
1616
  *
1607
1617
  * @public
1608
- * @remarks 控制系统数据单位与单位转换基础函数,当前系统数据单位跨度等效为 `mil`
1618
+ * @remarks 控制系统数据单位与单位转换基础函数,当前原理图数据单位跨度等效为 `10mil` 或 `0.01inch`,PCB 数据单位跨度等效为 `mil`
1609
1619
  */
1610
1620
  class SYS_Unit {
1611
- /**
1612
- * 获取 API 系统数据单位跨度
1613
- *
1614
- * @public
1615
- * @remarks 当前 API 系统数据单位跨度等效为 `mil`,不会发生改变
1616
- * @returns 单位
1617
- */
1618
- getSystemDataUnit(): ESYS_Unit.MIL;
1619
1621
  /**
1620
1622
  * 获取 EDA 前端数据单位跨度
1621
1623
  *
@@ -1877,7 +1879,7 @@ declare global {
1877
1879
  * @beta
1878
1880
  * @remarks 如希望清除某些属性,则将其的值设置为 `null`
1879
1881
  * @param cbbUuid - 复用模块 UUID
1880
- * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
1882
+ * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口��取
1881
1883
  * @param cbbName - 复用模块名称
1882
1884
  * @param classification - 分类
1883
1885
  * @param description - 描述
@@ -2504,6 +2506,17 @@ declare global {
2504
2506
  * @returns 标签页 ID,对应 {@link IDMT_EditorTabItem.tabId},可使用 {@link DMT_EditorControl.getSplitScreenIdByTabId} 获取到分屏 ID
2505
2507
  */
2506
2508
  openInEditor(footprintUuid: string, libraryUuid: string, splitScreenId?: string): Promise<string | undefined>;
2509
+ /**
2510
+ * 获取封装渲染图
2511
+ *
2512
+ * @beta
2513
+ * @param footprint - 封装的索引
2514
+ * @returns 封装渲染图
2515
+ */
2516
+ getRenderImage(source: {
2517
+ footprintUuid: string;
2518
+ libraryUuid: string;
2519
+ }): Promise<Blob | undefined>;
2507
2520
  }
2508
2521
 
2509
2522
  /**
@@ -2865,7 +2878,7 @@ declare global {
2865
2878
  * 获取工程库的 UUID
2866
2879
  *
2867
2880
  * @public
2868
- * @remarks 在未打开工程的情况下调用将返回 `undefined`
2881
+ * @remarks 在未打开工程的情况下调用将返�� `undefined`
2869
2882
  * @returns 工程库的 UUID
2870
2883
  */
2871
2884
  getProjectLibraryUuid(): Promise<string | undefined>;
@@ -3355,7 +3368,7 @@ declare global {
3355
3368
  * @remarks
3356
3369
  * 本接口在前端画布上定位到指定的数据层面坐标;
3357
3370
  *
3358
- * 如果希望在进行本操作时前端画布坐标能与传入数��一致,
3371
+ * 如果希望在进行本操作时前端画布坐标能与传入数据一致,
3359
3372
  * 建议调用 {@link PCB_Document.setCanvasOrigin} 方法并设置偏移量为零;
3360
3373
  *
3361
3374
  * 此处的单位为数据层面单位,在跨度上等同于画布层面的 mil
@@ -3822,7 +3835,7 @@ declare global {
3822
3835
  */
3823
3836
  modifyEqualLengthNetGroupName(originalEqualLengthNetGroupName: string, equalLengthNetGroupName: string): Promise<boolean>;
3824
3837
  /**
3825
- * 将网络添加到等长网��组
3838
+ * 将网络添加到等长网络组
3826
3839
  *
3827
3840
  * @beta
3828
3841
  * @param equalLengthNetGroupName - 等长网络组名称
@@ -4590,7 +4603,9 @@ declare global {
4590
4603
  /** Altium Designer */
4591
4604
  ALTIUM_DESIGNER = "Protel2",
4592
4605
  /** 数字化工业软件联盟 */
4593
- DISA = "DISA"
4606
+ DISA = "DISA",
4607
+ /** 数字化工业软件联盟仿真 */
4608
+ DISA_SIMULATION = "DSNET"
4594
4609
  }
4595
4610
  /**
4596
4611
  * 导入工程导入选项
@@ -5479,7 +5494,7 @@ declare global {
5479
5494
  * 校验单多边形
5480
5495
  *
5481
5496
  * @alpha
5482
- * @remarks 校验并整理输入数据,如数据有误,则��出错误
5497
+ * @remarks 校验并整理输入数据,如数据有误,则抛出错误
5483
5498
  * @returns 单多边形数据
5484
5499
  */
5485
5500
  private validateSource;
@@ -5566,14 +5581,14 @@ declare global {
5566
5581
  /**
5567
5582
  * 获取所有网络的详细信息
5568
5583
  *
5569
- * @alpha
5584
+ * @beta
5570
5585
  * @returns 所有网络的详细信息
5571
5586
  */
5572
5587
  getAllNets(): Promise<Array<IPCB_NetInfo>>;
5573
5588
  /**
5574
5589
  * 获取指定网络的详细信息
5575
5590
  *
5576
- * @alpha
5591
+ * @beta
5577
5592
  * @param net - 网络名称
5578
5593
  * @returns 网络的详细信息, `undefined` 为不存在该网络
5579
5594
  */
@@ -5604,7 +5619,7 @@ declare global {
5604
5619
  /**
5605
5620
  * 获取指定网络的颜色
5606
5621
  *
5607
- * @alpha
5622
+ * @beta
5608
5623
  * @param net - 网络名称
5609
5624
  * @returns 网络颜色,`undefined` 为不存在该网络
5610
5625
  */
@@ -5612,7 +5627,7 @@ declare global {
5612
5627
  /**
5613
5628
  * 设置指定网络的颜色
5614
5629
  *
5615
- * @alpha
5630
+ * @beta
5616
5631
  * @param net - 网络名称
5617
5632
  * @param color - 网络颜色
5618
5633
  * @returns 是否设置成功, `false` 为不存在该网络
@@ -5638,7 +5653,7 @@ declare global {
5638
5653
  /**
5639
5654
  * 取消选中网络
5640
5655
  *
5641
- * @alpha
5656
+ * @beta
5642
5657
  * @param net - 网络名称
5643
5658
  * @returns 操作是否成功
5644
5659
  */
@@ -5646,7 +5661,7 @@ declare global {
5646
5661
  /**
5647
5662
  * 取消选中所有网络
5648
5663
  *
5649
- * @alpha
5664
+ * @beta
5650
5665
  * @remarks 如果希望取消选中所有图元,请使用 {@link PCB_SelectControl.clearSelected} 接口
5651
5666
  * @returns 操作是否成功
5652
5667
  */
@@ -5672,7 +5687,7 @@ declare global {
5672
5687
  /**
5673
5688
  * 取消高亮所有网络
5674
5689
  *
5675
- * @alpha
5690
+ * @beta
5676
5691
  * @returns 操作是否成功
5677
5692
  */
5678
5693
  unhighlightAllNets(): Promise<boolean>;
@@ -6041,7 +6056,7 @@ declare global {
6041
6056
  * @param startX - 起始位置 X
6042
6057
  * @param startY - 起始位置 Y
6043
6058
  * @param endX - 终止位置 X
6044
- * @param endY - 终��位置 Y
6059
+ * @param endY - 终止位置 Y
6045
6060
  * @param lineWidth - 线宽
6046
6061
  * @param primitiveLock - 是否锁定
6047
6062
  * @returns 直线图元对象
@@ -7800,7 +7815,7 @@ declare global {
7800
7815
  * 删除区域
7801
7816
  *
7802
7817
  * @beta
7803
- * @param primitiveIds - 区域的图元 ID 或区域图元对象
7818
+ * @param primitiveIds - 区域的���元 ID 或区域图元对象
7804
7819
  * @returns 删除操作是否成功
7805
7820
  */
7806
7821
  delete(primitiveIds: string | IPCB_PrimitiveRegion | Array<string> | Array<IPCB_PrimitiveRegion>): Promise<boolean>;
@@ -7810,7 +7825,7 @@ declare global {
7810
7825
  * @beta
7811
7826
  * @param primitiveId - 图元 ID
7812
7827
  * @param property - 修改参数
7813
- * @returns 区域图元对象,`undefined` 表��修改失败
7828
+ * @returns 区域图元对象,`undefined` 表示修改失败
7814
7829
  */
7815
7830
  modify(primitiveId: string | IPCB_PrimitiveRegion, property: {
7816
7831
  layer?: TPCB_LayersOfRegion;
@@ -10001,7 +10016,7 @@ declare global {
10001
10016
  * 获取属性状态:名称
10002
10017
  *
10003
10018
  * @public
10004
- * @returns ��称
10019
+ * @returns 名称
10005
10020
  */
10006
10021
  getState_Name(): string | undefined;
10007
10022
  /**
@@ -11799,6 +11814,38 @@ declare global {
11799
11814
  text: string;
11800
11815
  value: string;
11801
11816
  }>>;
11817
+ /**
11818
+ * 获取 BOM 模板列表
11819
+ *
11820
+ * @alpha
11821
+ * @returns BOM 模板列表
11822
+ */
11823
+ getBomTemplates(): Promise<Array<string>>;
11824
+ /**
11825
+ * 上传 BOM 模板文件
11826
+ *
11827
+ * @alpha
11828
+ * @param templateFile - BOM 模板文件
11829
+ * @param template - BOM 模板名称,如若为 `undefined` 则自动从 `templateFile` 中取值
11830
+ * @returns BOM 模板名称
11831
+ */
11832
+ uploadBomTemplateFile(templateFile: File, template?: string): Promise<string | undefined>;
11833
+ /**
11834
+ * 获取 BOM 模板文件
11835
+ *
11836
+ * @alpha
11837
+ * @param template - BOM 模板名称
11838
+ * @returns BOM 模板文件
11839
+ */
11840
+ getBomTemplateFile(template: string): Promise<File | undefined>;
11841
+ /**
11842
+ * 删除 BOM 模板
11843
+ *
11844
+ * @alpha
11845
+ * @param template - BOM 模板名称
11846
+ * @returns 操作是否成功
11847
+ */
11848
+ deleteBomTemplate(template: string): Promise<boolean>;
11802
11849
  /**
11803
11850
  * 获取 BOM 文件
11804
11851
  *
@@ -11907,6 +11954,86 @@ declare global {
11907
11954
  placeSmtComponentsOrder(interactive?: boolean, ignoreWarning?: boolean): Promise<boolean>;
11908
11955
  }
11909
11956
 
11957
+ /**
11958
+ * 工程网络属性
11959
+ *
11960
+ * @public
11961
+ */
11962
+ interface ISCH_ProjectNetInfo {
11963
+ /** 原理图名称 */
11964
+ schematicName: string;
11965
+ /** 原理图 UUID */
11966
+ schematicUuid: string;
11967
+ /** 板子名称 */
11968
+ boardName: string;
11969
+ /** 网络 */
11970
+ nets: Array<ISCH_NetInfo>;
11971
+ }
11972
+ /**
11973
+ * 网络属性
11974
+ *
11975
+ * @public
11976
+ */
11977
+ interface ISCH_NetInfo {
11978
+ /** 网络名称 */
11979
+ net: string;
11980
+ /** 导线 */
11981
+ wires: Array<ISCH_WireInfo>;
11982
+ }
11983
+ /**
11984
+ * 导线属性
11985
+ *
11986
+ * @public
11987
+ */
11988
+ interface ISCH_WireInfo {
11989
+ /** 导线名称 */
11990
+ name: string;
11991
+ /** ID */
11992
+ id: string;
11993
+ /** 全局网络名 */
11994
+ globalNetName: string;
11995
+ /** 原理图图页名称 */
11996
+ pageName: string;
11997
+ /** 原理图图页 UUID */
11998
+ pageUuid: string;
11999
+ }
12000
+ /**
12001
+ * 原理图 & 符号 / 网络类
12002
+ *
12003
+ * @public
12004
+ */
12005
+ class SCH_Net {
12006
+ /**
12007
+ * 获取当前工程下所有网络的详细信息
12008
+ *
12009
+ * @alpha
12010
+ * @returns 当前工程下所有网络的详细信息
12011
+ */
12012
+ getCurrentProjectAllNets(): Promise<Array<ISCH_ProjectNetInfo>>;
12013
+ /**
12014
+ * 获取所有网络的详细信息
12015
+ *
12016
+ * @alpha
12017
+ * @returns 所有网络的详细信息
12018
+ */
12019
+ getAllNets(): Promise<Array<ISCH_NetInfo>>;
12020
+ /**
12021
+ * 获取指定网络的详细信息
12022
+ *
12023
+ * @alpha
12024
+ * @param net - 网络名称
12025
+ * @returns 网络的详细信息, `undefined` 为不存在该网络
12026
+ */
12027
+ getNet(net: string): Promise<ISCH_NetInfo | undefined>;
12028
+ /**
12029
+ * 获取所有网络的网络名称
12030
+ *
12031
+ * @alpha
12032
+ * @returns 网络名称数组
12033
+ */
12034
+ getAllNetsName(): Promise<Array<string>>;
12035
+ }
12036
+
11910
12037
  /**
11911
12038
  * 原理图 & 符号 / 网表类
11912
12039
  *
@@ -12100,7 +12227,7 @@ declare global {
12100
12227
  */
12101
12228
  getState_ReferenceY(): number;
12102
12229
  /**
12103
- * 获��属性状态:终止点 X
12230
+ * 获取属性状态:终止点 X
12104
12231
  *
12105
12232
  * @public
12106
12233
  * @returns 终止点 X
@@ -15274,6 +15401,7 @@ declare global {
15274
15401
  getState_Component(): {
15275
15402
  libraryUuid: string;
15276
15403
  uuid: string;
15404
+ name?: string;
15277
15405
  };
15278
15406
  /**
15279
15407
  * 获取属性状态:坐标 X
@@ -15340,6 +15468,7 @@ declare global {
15340
15468
  getState_Symbol(): {
15341
15469
  libraryUuid: string;
15342
15470
  uuid: string;
15471
+ name?: string;
15343
15472
  } | undefined;
15344
15473
  /**
15345
15474
  * 获取属性状态:关联库封装
@@ -15350,6 +15479,7 @@ declare global {
15350
15479
  getState_Footprint(): {
15351
15480
  libraryUuid: string;
15352
15481
  uuid: string;
15482
+ name?: string;
15353
15483
  } | undefined;
15354
15484
  /**
15355
15485
  * 获取属性状态:位号
@@ -15426,7 +15556,7 @@ declare global {
15426
15556
  */
15427
15557
  setState_Y(y: number): ISCH_PrimitiveComponent;
15428
15558
  /**
15429
- * 设置属性状态:旋���角度
15559
+ * 设置属性状态:旋转角度
15430
15560
  *
15431
15561
  * @beta
15432
15562
  * @param rotation - 旋转角度
@@ -15614,6 +15744,7 @@ declare global {
15614
15744
  }, x: number, y: number, rotation?: number, mirror?: boolean, primitiveId?: string, symbol?: {
15615
15745
  libraryUuid: string;
15616
15746
  uuid: string;
15747
+ name?: string;
15617
15748
  }, designator?: string, name?: string);
15618
15749
  /**
15619
15750
  * 在原理图画布中创建图元
@@ -16670,29 +16801,6 @@ declare global {
16670
16801
  }, succeedCallFn?: (data: Response) => void | Promise<void>): Promise<Response>;
16671
16802
  }
16672
16803
 
16673
- interface ImageStoreProps {
16674
- src: string;
16675
- width?: number;
16676
- height?: number;
16677
- title?: string;
16678
- }
16679
- type BoardStoreEvents$1 = {
16680
- event: 'click';
16681
- data: boolean;
16682
- };
16683
-
16684
- interface BoardStoreProps {
16685
- padding?: number[];
16686
- bgColor?: string;
16687
- width?: number;
16688
- height?: number;
16689
- title: string;
16690
- }
16691
- type BoardStoreEvents = {
16692
- event: 'click';
16693
- data: boolean;
16694
- };
16695
-
16696
16804
  type IconProps = {
16697
16805
  /** 模板名称 */
16698
16806
  iconClass: string;
@@ -16701,28 +16809,55 @@ declare global {
16701
16809
  iconUrl: string;
16702
16810
  } | {};
16703
16811
 
16704
- interface ButtonStoreProps {
16812
+ interface ButtonProps {
16705
16813
  text?: string;
16706
16814
  disable?: boolean;
16707
16815
  type?: 'default' | 'primary' | 'danger' | 'forbidden' | 'text';
16708
16816
  width?: number | 'responsive';
16709
16817
  icon?: IconProps;
16818
+ onClick?: () => void;
16710
16819
  }
16711
- type ButtonStoreEvents = {
16712
- event: 'click';
16713
- };
16820
+ function Button({ text, disable, type, width, icon, onClick, }: ButtonProps): react_jsx_runtime.JSX.Element;
16714
16821
 
16715
- interface PanelStoreProps {
16822
+ interface ListChildren$1 {
16823
+ title: string;
16824
+ value?: string;
16825
+ clearBtn?: boolean;
16826
+ children?: ListChildren$1[];
16827
+ selected?: boolean;
16828
+ }
16829
+ interface InputProps {
16830
+ width?: number;
16831
+ disabled?: boolean;
16832
+ readonly?: boolean;
16833
+ clearBtn?: boolean | 'keepAlive';
16834
+ clickBtn?: boolean;
16835
+ dropDownList?: ListChildren$1[];
16836
+ searchBtn?: boolean;
16837
+ value?: string;
16838
+ placeholder?: string;
16839
+ preText?: string;
16840
+ type: 'text' | 'telephone' | 'number' | 'password' | 'color' | 'email';
16841
+ otherAttr?: {
16842
+ [key: string]: string;
16843
+ };
16844
+ testVal?: string;
16845
+ onClick?: () => void;
16846
+ onSearchClick?: (data: string) => void;
16847
+ onFilterClick?: (data: string) => void;
16848
+ onChange?: (data: string) => void;
16849
+ onAddClick?: (data: string) => void;
16850
+ }
16851
+ function Input({ width, disabled, readonly, clearBtn, clickBtn, dropDownList, searchBtn, value: propValue, placeholder, preText, type, otherAttr, testVal, onClick, onSearchClick, onFilterClick, onChange, onAddClick, }: InputProps): react_jsx_runtime.JSX.Element;
16852
+
16853
+ interface TextProps {
16716
16854
  value: string;
16717
16855
  fontFamily?: string;
16718
16856
  textAlign?: 'left' | 'center' | 'right';
16719
16857
  fontSize?: number;
16720
16858
  color?: string;
16721
16859
  }
16722
- type PanelStoreEvents = {
16723
- event: 'change';
16724
- data: boolean;
16725
- };
16860
+ function Text({ value, fontFamily, textAlign, fontSize, color, }: TextProps): react_jsx_runtime.JSX.Element;
16726
16861
 
16727
16862
  interface ContainerStyleProps {
16728
16863
  backgroundColor?: string;
@@ -16736,149 +16871,92 @@ declare global {
16736
16871
  height?: number;
16737
16872
  rotate?: number;
16738
16873
  cursor?: 'pointer' | 'default' | 'none' | 'move' | 'text';
16874
+ invisible?: boolean;
16739
16875
  }
16740
16876
 
16741
- interface FlexItemStoreProps extends ContainerStyleProps {
16742
- flexRatio?: number;
16743
- }
16744
- type FlexItemStoreEvents = {
16745
- event: 'change';
16746
- data: boolean;
16747
- };
16748
-
16749
- interface FlexStoreProps extends ContainerStyleProps {
16877
+ interface FlexProps extends ContainerStyleProps {
16750
16878
  direction?: 'column' | 'column-reverse' | 'row' | 'row-reverse';
16751
16879
  alignX?: 'start' | 'center' | 'end';
16752
16880
  alignY?: 'start' | 'center' | 'end' | 'stretch';
16753
16881
  gap?: number;
16754
16882
  classes?: string[];
16883
+ children?: React$1.ReactNode;
16884
+ onClick?: () => void;
16755
16885
  }
16756
- type FlexStoreEvents = {
16757
- event: 'change';
16758
- data: boolean;
16759
- };
16760
-
16761
- interface ModalStoreProps {
16762
- defaultTop: number;
16763
- defaultLeft: number;
16764
- defaultWidth: number;
16765
- defaultHeight: number;
16766
- maxDragX?: number;
16767
- maxDragY?: number;
16768
- hide?: boolean;
16769
- }
16770
- type ModalStoreEvents = {
16771
- event: 'moved';
16772
- top: number;
16773
- left: number;
16774
- };
16886
+ function Flex({ direction, alignX, alignY, gap, classes, children, onClick, ...styleProps }: FlexProps): react_jsx_runtime.JSX.Element;
16775
16887
 
16776
- interface GridSItemtoreProps extends ContainerStyleProps {
16777
- colSpan?: number;
16778
- rowSpan?: number;
16779
- align?: 'start' | 'center' | 'end' | 'stretch';
16888
+ interface FlexItemProps extends ContainerStyleProps {
16889
+ flexRatio?: number;
16890
+ children?: React$1.ReactNode;
16891
+ onClick?: () => void;
16780
16892
  }
16781
- type CheckBoxStoreEvents$3 = {
16782
- event: 'resize';
16783
- };
16893
+ function FlexItem({ flexRatio, children, onClick, ...styleProps }: FlexItemProps): react_jsx_runtime.JSX.Element;
16784
16894
 
16785
- interface GridStoreProps extends ContainerStyleProps {
16895
+ interface GridProps extends ContainerStyleProps {
16786
16896
  columns: number;
16787
16897
  rowGap?: number;
16788
16898
  colGap?: number;
16899
+ children?: React$1.ReactNode;
16789
16900
  }
16790
- type CheckBoxStoreEvents$2 = {
16791
- event: 'resize';
16792
- };
16901
+ function Grid({ columns, rowGap, colGap, children, ...styleProps }: GridProps): react_jsx_runtime.JSX.Element;
16793
16902
 
16794
- interface ListChildren$1 {
16903
+ interface GridItemProps extends ContainerStyleProps {
16904
+ colSpan?: number;
16905
+ rowSpan?: number;
16906
+ align?: 'start' | 'center' | 'end' | 'stretch';
16907
+ children?: React$1.ReactNode;
16908
+ }
16909
+ function GridItem({ colSpan, rowSpan, align, children, ...styleProps }: GridItemProps): react_jsx_runtime.JSX.Element;
16910
+
16911
+ interface ListChildren {
16795
16912
  title: string;
16796
16913
  id?: string;
16797
16914
  clearBtn?: boolean;
16798
- children?: ListChildren$1[];
16915
+ children?: ListChildren[];
16799
16916
  childrenCollapse?: boolean;
16800
16917
  selected?: boolean;
16801
- icon?: IconProps;
16918
+ icons?: IconProps[];
16802
16919
  }
16803
16920
  interface ListProps {
16804
16921
  width?: number;
16805
16922
  height?: number;
16806
- list: ListChildren$1[];
16923
+ list: ListChildren[];
16807
16924
  itemHeight?: number;
16808
16925
  border?: boolean;
16809
16926
  expandEnable?: boolean;
16927
+ onItemClick?: (id: string) => void;
16928
+ onItemDblclick?: (id: string) => void;
16929
+ onItemContextmenu?: (id: string) => void;
16810
16930
  }
16811
- type ListStoreEvents = {
16812
- event: 'item-click';
16813
- data: string;
16814
- } | {
16815
- event: 'item-dblclick';
16816
- data: string;
16817
- } | {
16818
- event: 'item-contextmenu';
16819
- data: string;
16820
- };
16931
+ function List({ width, height, list, itemHeight: propItemHeight, border, expandEnable, onItemClick, onItemDblclick, onItemContextmenu, }: ListProps): react_jsx_runtime.JSX.Element;
16821
16932
 
16822
- interface ListChildren {
16823
- title: string;
16824
- value?: string;
16825
- clearBtn?: boolean;
16826
- children?: ListChildren[];
16827
- selected?: boolean;
16828
- }
16829
- interface InputProps {
16830
- width?: number;
16933
+ interface CheckBoxProps {
16934
+ checked?: boolean;
16831
16935
  disabled?: boolean;
16832
- readonly?: boolean;
16833
- clearBtn?: boolean | 'keepAlive';
16834
- clickBtn?: boolean;
16835
- dropDownList?: ListChildren[];
16836
- searchBtn?: boolean;
16837
- value?: string;
16838
- placeholder?: string;
16839
- preText?: string;
16840
- type: 'text' | 'telephone' | 'number' | 'password' | 'color' | 'email';
16841
- otherAttr?: {
16842
- [key: string]: string;
16843
- };
16844
- testVal?: string;
16936
+ text?: string;
16937
+ name?: string;
16938
+ onlyChangeByBox?: boolean;
16939
+ onChange?: (checked: boolean) => void;
16845
16940
  }
16846
- type InputStoreEvents = {
16847
- event: 'click';
16848
- data: string;
16849
- } | {
16850
- event: 'search-click';
16851
- data: string;
16852
- } | {
16853
- event: 'filter-click';
16854
- data: string;
16855
- } | {
16856
- event: 'change';
16857
- data: string;
16858
- } | {
16859
- event: 'add-click';
16860
- data: string;
16861
- };
16941
+ function CheckBox({ checked, disabled, text, name, onlyChangeByBox, onChange, }: CheckBoxProps): react_jsx_runtime.JSX.Element;
16862
16942
 
16863
- interface SingleProps {
16943
+ interface RadioProps {
16864
16944
  disabled?: boolean;
16865
16945
  text: string;
16866
16946
  value: string;
16867
16947
  width?: number;
16868
16948
  }
16869
- interface RadioStoreProps {
16870
- group: SingleProps[];
16949
+ interface RadioGroupProps {
16950
+ group: RadioProps[];
16871
16951
  selectedValue?: string;
16872
16952
  onlyChangeByBox?: boolean;
16873
16953
  lineBreak?: boolean;
16874
16954
  gap?: number;
16955
+ onChange?: (value: string) => void;
16875
16956
  }
16876
- type CheckBoxStoreEvents$1 = {
16877
- event: 'change';
16878
- data: string;
16879
- };
16957
+ function RadioGroup({ group, selectedValue, onlyChangeByBox, lineBreak, gap, onChange, }: RadioGroupProps): react_jsx_runtime.JSX.Element;
16880
16958
 
16881
- interface TextAreaStoreProps {
16959
+ interface TextAreaProps {
16882
16960
  disabled?: boolean;
16883
16961
  value?: string;
16884
16962
  width?: number;
@@ -16889,158 +16967,354 @@ declare global {
16889
16967
  };
16890
16968
  placeholder?: string;
16891
16969
  name?: string;
16970
+ onChange?: (value: string) => void;
16892
16971
  }
16893
- type TextAreaStoreEvents = {
16894
- event: 'change';
16895
- data: string;
16896
- };
16972
+ function TextArea({ disabled, value, width, height, resizable, placeholder, name, onChange, }: TextAreaProps): react_jsx_runtime.JSX.Element;
16897
16973
 
16898
- interface CheckBoxStoreProps {
16899
- checked?: boolean;
16900
- disabled?: boolean;
16901
- text?: string;
16902
- name?: string;
16903
- onlyChangeByBox?: boolean;
16974
+ interface ModalProps {
16975
+ defaultTop: number;
16976
+ defaultLeft: number;
16977
+ defaultWidth: number;
16978
+ defaultHeight: number;
16979
+ maxDragX?: number;
16980
+ maxDragY?: number;
16981
+ hide?: boolean;
16982
+ children?: React$1.ReactNode;
16983
+ onMoved?: (top: number, left: number) => void;
16904
16984
  }
16905
- type CheckBoxStoreEvents = {
16906
- event: 'change';
16907
- data: boolean;
16908
- };
16985
+ function Modal({ defaultTop, defaultLeft, defaultWidth, defaultHeight, maxDragX, maxDragY, hide, children, onMoved, }: ModalProps): react_jsx_runtime.JSX.Element;
16909
16986
 
16987
+ interface DialogButtonProps {
16988
+ text: string;
16989
+ icon?: IconProps;
16990
+ width?: number;
16991
+ onClick?: () => void;
16992
+ type?: 'default' | 'primary' | 'danger' | 'forbidden' | 'text';
16993
+ }
16910
16994
  interface DialogProps {
16911
16995
  title: string;
16912
- buttons?: (ButtonStoreProps & {
16913
- clickEventName: string;
16914
- })[];
16996
+ buttons?: DialogButtonProps[];
16997
+ onClose?: () => void;
16998
+ children?: React$1.ReactNode;
16915
16999
  }
16916
- function Dialog(props: {
16917
- children?: react__default.ReactElement | react__default.ReactElement[];
16918
- } & DialogProps): react_jsx_runtime.JSX.Element;
17000
+ function Dialog({ title, buttons, onClose, children }: DialogProps): react_jsx_runtime.JSX.Element;
16919
17001
 
17002
+ interface SelectListItem {
17003
+ title: string;
17004
+ value?: string;
17005
+ children?: SelectListItem[];
17006
+ }
16920
17007
  interface SelectProps {
16921
17008
  width?: number;
16922
17009
  disabled?: boolean;
16923
17010
  readonly?: boolean;
16924
- dropDownList?: {
16925
- title: string;
16926
- children?: {
16927
- title: string;
16928
- }[];
16929
- }[];
17011
+ dropDownList?: SelectListItem[];
16930
17012
  value?: string;
16931
- otherAttr?: {
16932
- [key: string]: string;
16933
- };
16934
- testVal?: string;
17013
+ onChange?: (value: string) => void;
16935
17014
  }
16936
- function Select(props: SelectProps): react_jsx_runtime.JSX.Element;
17015
+ function Select({ width, disabled, readonly, dropDownList, value, onChange }: SelectProps): react_jsx_runtime.JSX.Element;
16937
17016
 
16938
- abstract class PortalBase {
16939
- Provider: (props: any) => react_jsx_runtime.JSX.Element;
16940
- abstract createComponent(handle: string, type: string, props: any, parent: string): void;
16941
- abstract updateComponent(handle: string, props: any): void;
16942
- abstract detachComponent(handle: string): void;
16943
- abstract bindEvent(handle: string, callback: (ev: any) => void): void;
17017
+ interface BoardProps {
17018
+ padding?: number[];
17019
+ bgColor?: string;
17020
+ width?: number;
17021
+ height?: number;
17022
+ title: string;
17023
+ children?: React$1.ReactNode;
17024
+ onClick?: () => void;
17025
+ }
17026
+ function Board({ padding, bgColor, width, height, title, children, onClick }: BoardProps): react_jsx_runtime.JSX.Element;
17027
+
17028
+ interface ImageProps {
17029
+ src: string;
17030
+ width?: number;
17031
+ height?: number;
17032
+ title?: string;
17033
+ onClick?: () => void;
16944
17034
  }
17035
+ function Image({ src, width, height, title, onClick }: ImageProps): react_jsx_runtime.JSX.Element;
16945
17036
 
16946
- const Components: {
16947
- Dialog: typeof Dialog;
16948
- Select: typeof Select;
16949
- CheckBox: (props: CheckBoxStoreProps & {
16950
- onEvent?: ((ev: CheckBoxStoreEvents) => void) | undefined;
16951
- children?: react.JSX.Element[] | react.JSX.Element;
16952
- }) => react.JSX.Element;
16953
- TextArea: (props: TextAreaStoreProps & {
16954
- onEvent?: ((ev: TextAreaStoreEvents) => void) | undefined;
16955
- children?: react.JSX.Element[] | react.JSX.Element;
16956
- }) => react.JSX.Element;
16957
- RadioGroup: (props: RadioStoreProps & {
16958
- onEvent?: ((ev: CheckBoxStoreEvents$1) => void) | undefined;
16959
- children?: react.JSX.Element[] | react.JSX.Element;
16960
- }) => react.JSX.Element;
16961
- Input: (props: InputProps & {
16962
- onEvent?: ((ev: InputStoreEvents) => void) | undefined;
16963
- children?: react.JSX.Element[] | react.JSX.Element;
16964
- }) => react.JSX.Element;
16965
- List: (props: ListProps & {
16966
- onEvent?: ((ev: ListStoreEvents) => void) | undefined;
16967
- children?: react.JSX.Element[] | react.JSX.Element;
16968
- }) => react.JSX.Element;
16969
- Grid: (props: GridStoreProps & {
16970
- onEvent?: ((ev: CheckBoxStoreEvents$2) => void) | undefined;
16971
- children?: react.JSX.Element[] | react.JSX.Element;
16972
- }) => react.JSX.Element;
16973
- GridItem: (props: GridSItemtoreProps & {
16974
- onEvent?: ((ev: CheckBoxStoreEvents$3) => void) | undefined;
16975
- children?: react.JSX.Element[] | react.JSX.Element;
16976
- }) => react.JSX.Element;
16977
- Modal: (props: ModalStoreProps & {
16978
- onEvent?: ((ev: ModalStoreEvents) => void) | undefined;
16979
- children?: react.JSX.Element[] | react.JSX.Element;
16980
- }) => react.JSX.Element;
16981
- Flex: (props: FlexStoreProps & {
16982
- onEvent?: ((ev: FlexStoreEvents) => void) | undefined;
16983
- children?: react.JSX.Element[] | react.JSX.Element;
16984
- }) => react.JSX.Element;
16985
- FlexItem: (props: FlexItemStoreProps & {
16986
- onEvent?: ((ev: FlexItemStoreEvents) => void) | undefined;
16987
- children?: react.JSX.Element[] | react.JSX.Element;
16988
- }) => react.JSX.Element;
16989
- Text: (props: PanelStoreProps & {
16990
- onEvent?: ((ev: PanelStoreEvents) => void) | undefined;
16991
- children?: react.JSX.Element[] | react.JSX.Element;
16992
- }) => react.JSX.Element;
16993
- Button: (props: ButtonStoreProps & {
16994
- onEvent?: ((ev: ButtonStoreEvents) => void) | undefined;
16995
- children?: react.JSX.Element[] | react.JSX.Element;
16996
- }) => react.JSX.Element;
16997
- Board: (props: BoardStoreProps & {
16998
- onEvent?: ((ev: BoardStoreEvents) => void) | undefined;
16999
- children?: react.JSX.Element[] | react.JSX.Element;
17000
- }) => react.JSX.Element;
17001
- Image: (props: ImageStoreProps & {
17002
- onEvent?: ((ev: BoardStoreEvents$1) => void) | undefined;
17003
- children?: react.JSX.Element[] | react.JSX.Element;
17004
- }) => react.JSX.Element;
17037
+ const ComponentsIndex: {
17038
+ readonly Button: typeof Button;
17039
+ readonly Input: typeof Input;
17040
+ readonly Text: typeof Text;
17041
+ readonly Flex: typeof Flex;
17042
+ readonly FlexItem: typeof FlexItem;
17043
+ readonly Grid: typeof Grid;
17044
+ readonly GridItem: typeof GridItem;
17045
+ readonly List: typeof List;
17046
+ readonly CheckBox: typeof CheckBox;
17047
+ readonly RadioGroup: typeof RadioGroup;
17048
+ readonly TextArea: typeof TextArea;
17049
+ readonly Modal: typeof Modal;
17050
+ readonly Dialog: typeof Dialog;
17051
+ readonly Select: typeof Select;
17052
+ readonly Board: typeof Board;
17053
+ readonly Image: typeof Image;
17054
+ };
17055
+ const LC_DESIGN_COMPONENTS_NAMES: (keyof typeof ComponentsIndex)[];
17056
+ type TComponentsIndex = typeof ComponentsIndex;
17057
+ type KComponentsIndex = keyof TComponentsIndex;
17058
+ type ComponentProps<T extends KComponentsIndex> = TComponentsIndex[T] extends React.ComponentType<infer P> ? P : never;
17059
+
17060
+ type ReactComponentProps<T extends KComponentsIndex> = ComponentProps<T>;
17061
+ type LC_DESIGN_COMPONENTS = {
17062
+ [K in KComponentsIndex]: (props: ReactComponentProps<K>) => React.ReactElement;
17005
17063
  };
17006
- type Components = typeof Components;
17007
17064
 
17008
17065
  /**
17009
- * WorkerPortal 类,用于在 pro-api 中与 EditorDesignPortal 通信
17066
+ * React 实例接口
17067
+ * 用于接收扩展的 React 实例
17068
+ *
17069
+ * @alpha
17070
+ * @remarks
17071
+ * 此接口定义了从扩展传递的 React 实例的方法。
17072
+ * 由于扩展和 pro-api 使用不同的 React 实例,需要通过此接口传递 React 方法。
17073
+ * @example
17074
+ * ```typescript
17075
+ * const ReactInstance = {
17076
+ * createContext: React.createContext,
17077
+ * useContext: React.useContext,
17078
+ * useRef: React.useRef,
17079
+ * useEffect: React.useEffect,
17080
+ * createElement: React.createElement,
17081
+ * };
17082
+ * ```
17010
17083
  */
17011
- class WorkerPortal extends PortalBase {
17012
- private readonly portal;
17013
- private readonly compIndex;
17014
- constructor(container: HTMLElement);
17015
- createComponent(handle: string, type: string, props: any, parent: string): void;
17016
- updateComponent(handle: string, props: any): void;
17017
- detachComponent(handle: string): void;
17018
- bindEvent(handle: string, callback: (ev: any) => void): void;
17084
+ interface ISYS_ReactComponentizationDialogReactInstance {
17085
+ /**
17086
+ * 创建 React Context
17087
+ * @typeParam T - Context 的值类型
17088
+ * @returns Context 对象
17089
+ */
17090
+ createContext: <T>(defaultValue: T) => React.Context<T>;
17091
+ /**
17092
+ * 读取和订阅 Context 的值
17093
+ * @typeParam T - Context 的值类型
17094
+ * @param context - Context 对象
17095
+ * @returns Context 的当前值
17096
+ */
17097
+ useContext: <T>(context: React.Context<T>) => T;
17098
+ /**
17099
+ * 创建一个可变的 ref 对象
17100
+ * @typeParam T - ref 的值类型
17101
+ * @param initialValue - 初始值
17102
+ * @returns ref 对象
17103
+ */
17104
+ useRef: <T>(initialValue: T) => React.MutableRefObject<T>;
17105
+ /**
17106
+ * 执行副作用操作
17107
+ * @param effect - 副作用函数
17108
+ * @param deps - 依赖项数组
17109
+ */
17110
+ useEffect: (effect: () => undefined | (() => undefined), deps?: React.DependencyList) => void;
17111
+ /**
17112
+ * 创建并返回指定类型的新 React 元素
17113
+ * @param type - 元素类型
17114
+ * @param props - 元素属性
17115
+ * @param children - 子元素
17116
+ * @returns React 元素
17117
+ */
17118
+ createElement: <P extends Record<string, unknown>>(type: React.ElementType<P>, props?: P | null, ...children: React.ReactNode[]) => React.ReactElement<P>;
17119
+ }
17120
+ /**
17121
+ * React Reconciler 实例接口
17122
+ * 用于接收扩展的 react-reconciler 实例
17123
+ *
17124
+ * @alpha
17125
+ * @remarks
17126
+ * 此接口定义了从扩展传递的 react-reconciler 实例。
17127
+ * react-reconciler 是 React 的自定义渲染器,用于实现虚拟 DOM 渲染。
17128
+ * @example
17129
+ * ```typescript
17130
+ * const ReconcilerInstance = {
17131
+ * default: Reconciler,
17132
+ * constants: {
17133
+ * ContinuousEventPriority,
17134
+ * DiscreteEventPriority,
17135
+ * DefaultEventPriority,
17136
+ * ConcurrentRoot,
17137
+ * },
17138
+ * };
17139
+ * ```
17140
+ */
17141
+ interface ISYS_ReactComponentizationDialogReconcilerInstance {
17142
+ /**
17143
+ * Reconciler 构造函数
17144
+ * @param config - Reconciler 配置
17145
+ * @returns Reconciler 实例
17146
+ */
17147
+ default: any;
17148
+ /**
17149
+ * Reconciler 常量
17150
+ */
17151
+ constants: {
17152
+ /**
17153
+ * 连续事件优先级
17154
+ * 用于鼠标移动、滚动等连续事件
17155
+ */
17156
+ ContinuousEventPriority: number;
17157
+ /**
17158
+ * 离散事件优先级
17159
+ * 用于点击、键盘输入等离散事件
17160
+ */
17161
+ DiscreteEventPriority: number;
17162
+ /**
17163
+ * 默认事件优先级
17164
+ * 用于没有特定优先级的事件
17165
+ */
17166
+ DefaultEventPriority: number;
17167
+ /**
17168
+ * 并发根节点标签
17169
+ * 用于标识并发模式的根节点
17170
+ */
17171
+ ConcurrentRoot: number;
17172
+ };
17019
17173
  }
17020
17174
  /**
17021
- * 预制组件节点类型
17175
+ * WorkerPortal 类接口
17176
+ * 用于管理组件的生命周期和事件处理
17022
17177
  *
17023
- * @remarks 只能使用 Components 内的预制组件
17178
+ * @alpha
17179
+ * @remarks
17180
+ * WorkerPortal 负责在虚拟环境中创建、更新和销毁组件,
17181
+ * 并通过消息机制与 EditorDesignPortal 通信。
17024
17182
  */
17025
- type TComponentsNode = react__default.ReactElement<any, Components[keyof Components]> | Array<TComponentsNode> | null | undefined | boolean | string | number;
17026
-
17183
+ interface ISYS_ReactComponentizationDialogWorkerPortal {
17184
+ /**
17185
+ * Provider 组件
17186
+ * 用于提供 PortalContext 给子组件
17187
+ */
17188
+ Provider: React.ComponentType<React.PropsWithChildren<unknown>>;
17189
+ /**
17190
+ * 创建组件
17191
+ * @param handle - 组件句柄
17192
+ * @param type - 组件类型
17193
+ * @param props - 组件属性
17194
+ * @param parent - 父组件句柄
17195
+ */
17196
+ createComponent: (handle: string, type: string, props: Record<string, unknown>, parent: string) => void;
17197
+ /**
17198
+ * 更新组件
17199
+ * @param handle - 组件句柄
17200
+ * @param props - 新的组件属性
17201
+ */
17202
+ updateComponent: (handle: string, props: Record<string, unknown>) => void;
17203
+ /**
17204
+ * 销毁组件
17205
+ * @param handle - 组件句柄
17206
+ */
17207
+ detachComponent: (handle: string) => void;
17208
+ /**
17209
+ * 绑定事件处理器
17210
+ * @param handle - 组件句柄
17211
+ * @param callback - 事件回调函数
17212
+ */
17213
+ bindEvent: (handle: string, callback: (event: unknown) => void) => void;
17214
+ /**
17215
+ * 触发事件
17216
+ * @param handle - 组件句柄
17217
+ * @param event - 事件对象
17218
+ */
17219
+ dispatchEvent: (handle: string, event: unknown) => void;
17220
+ }
17221
+ /**
17222
+ * VirtualRender 类接口
17223
+ * 用于在虚拟环境中渲染 React 组件
17224
+ *
17225
+ * @alpha
17226
+ * @remarks
17227
+ * VirtualRender 使用 react-reconciler 实现虚拟 DOM 渲染,
17228
+ * 不直接操作真实 DOM,而是通过消息机制与 EditorDesignPortal 通信。
17229
+ */
17230
+ interface ISYS_ReactComponentizationDialogVirtualRender {
17231
+ /**
17232
+ * 渲染 React 元素
17233
+ * @param element - React 元素
17234
+ */
17235
+ render: (element: React.ReactNode) => void;
17236
+ }
17027
17237
  /**
17028
17238
  * React 组件化弹出窗口接口
17029
17239
  *
17030
17240
  * @alpha
17241
+ * @remarks
17242
+ * 此接口提供了创建 React 组件化弹出窗口所需的所有功能。
17243
+ * 通过此接口,用户可以使用 lc-editor-design 提供的预制组件创建自定义弹窗。
17244
+ * @example
17245
+ * ```typescript
17246
+ * const { Components, WorkerPortal, VirtualRender } = await eda.sys_Dialog.createReactComponentizationDialogInterface(
17247
+ * {
17248
+ * createContext: React.createContext,
17249
+ * useContext: React.useContext,
17250
+ * useRef: React.useRef,
17251
+ * useEffect: React.useEffect,
17252
+ * createElement: React.createElement,
17253
+ * },
17254
+ * {
17255
+ * default: Reconciler,
17256
+ * constants: {
17257
+ * ContinuousEventPriority,
17258
+ * DiscreteEventPriority,
17259
+ * DefaultEventPriority,
17260
+ * ConcurrentRoot,
17261
+ * },
17262
+ * },
17263
+ * );
17264
+ *
17265
+ * const portal = new WorkerPortal();
17266
+ * const root = new VirtualRender();
17267
+ *
17268
+ * function MyDialog() {
17269
+ * return (
17270
+ * <Modal defaultTop={100} defaultLeft={100} defaultWidth={800} defaultHeight={600}>
17271
+ * <Dialog title="My Dialog">
17272
+ * <Input placeholder="Enter text" />
17273
+ * </Dialog>
17274
+ * </Modal>
17275
+ * );
17276
+ * }
17277
+ *
17278
+ * root.render(
17279
+ * <portal.Provider>
17280
+ * <MyDialog />
17281
+ * </portal.Provider>,
17282
+ * );
17283
+ * ```
17031
17284
  */
17032
17285
  interface ISYS_ReactComponentizationDialogInterface {
17033
- /** 预制组件 */
17034
- Components: Components;
17035
- /** Portal 实例 */
17036
- portal: WorkerPortal;
17037
17286
  /**
17038
- * 渲染 React 组件
17287
+ * 预制组件
17039
17288
  *
17040
- * @param node - Components 内的预制组件
17289
+ * @remarks
17290
+ * 包含所有 lc-editor-design 提供的预制组件,如 Modal、Dialog、Input、Button 等。
17041
17291
  */
17042
- render: (node: TComponentsNode) => void;
17292
+ Components: LC_DESIGN_COMPONENTS;
17293
+ /**
17294
+ * 组件名称常量
17295
+ *
17296
+ * @remarks
17297
+ * 包含所有预制组件的名称常量,用于类型安全的组件引用。
17298
+ */
17299
+ LC_DESIGN_COMPONENTS_NAMES: typeof LC_DESIGN_COMPONENTS_NAMES;
17300
+ /**
17301
+ * WorkerPortal 类
17302
+ *
17303
+ * @remarks
17304
+ * 用于管理组件的生命周期和事件处理。
17305
+ * 需要实例化后使用。
17306
+ */
17307
+ WorkerPortal: new () => ISYS_ReactComponentizationDialogWorkerPortal;
17308
+ /**
17309
+ * VirtualRender 类
17310
+ *
17311
+ * @remarks
17312
+ * 用于在虚拟环境中渲染 React 组件。
17313
+ * 需要实例化后使用。
17314
+ */
17315
+ VirtualRender: new () => ISYS_ReactComponentizationDialogVirtualRender;
17043
17316
  }
17317
+
17044
17318
  /**
17045
17319
  * 系统 / 对话框类
17046
17320
  *
@@ -17052,9 +17326,11 @@ declare global {
17052
17326
  * 创建 React 组件化弹出窗口接口
17053
17327
  *
17054
17328
  * @alpha
17329
+ * @param React - 扩展的 React 实例
17330
+ * @param Reconciler - 扩展的 react-reconciler 实例
17055
17331
  * @returns 包含 portal、render 方法和 Components 对象的对象
17056
17332
  */
17057
- createReactComponentizationDialogInterface(): ISYS_ReactComponentizationDialogInterface;
17333
+ createReactComponentizationDialogInterface(React: ISYS_ReactComponentizationDialogReactInstance, Reconciler: ISYS_ReactComponentizationDialogReconcilerInstance): Promise<ISYS_ReactComponentizationDialogInterface>;
17058
17334
  /**
17059
17335
  * 弹出消息窗口
17060
17336
  *
@@ -17734,7 +18010,7 @@ declare global {
17734
18010
  *
17735
18011
  * 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
17736
18012
  *
17737
- * 非公开接口使用提醒:本接口按原样提供,不提供参数的额外文档,参数可能在任何版本出现破坏性更改并不另行通知
18013
+ * 非��开接口使用提醒:本接口按原样提供,不提供参数的额外文档,参数可能在任何版本出现破坏性更改并不另行通知
17738
18014
  * @param headerMenus - 顶部菜单数据
17739
18015
  * @example
17740
18016
  * headerMenus:
@@ -19187,9 +19463,10 @@ declare global {
19187
19463
  sch_Document: SCH_Document;
19188
19464
  sch_Drc: SCH_Drc;
19189
19465
  sch_Event: SCH_Event;
19466
+ sch_ManufactureData: SCH_ManufactureData;
19467
+ sch_Net: SCH_Net;
19190
19468
  sch_Netlist: SCH_Netlist;
19191
19469
  sch_Primitive: SCH_Primitive;
19192
- sch_ManufactureData: SCH_ManufactureData;
19193
19470
  sch_PrimitiveArc: SCH_PrimitiveArc;
19194
19471
  sch_PrimitiveAttribute: SCH_PrimitiveAttribute;
19195
19472
  sch_PrimitiveBus: SCH_PrimitiveBus;
package/package.json CHANGED
@@ -1 +1 @@
1
- { "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.21", "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义", "typings": "index.d.ts", "author": "JLCEDA <support@lceda.cn>", "license": "Apache-2.0", "homepage": "https://pro.lceda.cn/", "keywords": ["jlceda", "pro-api"], "scripts": { "lint": "eslint", "fix": "eslint --fix", "build": "ts-node ./build/build.ts" }, "devDependencies": { "@antfu/eslint-config": "^5.4.1", "@types/fast-text-encoding": "^1.0.3", "@types/fs-extra": "^11.0.4", "dotenv": "^16.4.7", "eslint": "^9.37.0", "fast-text-encoding": "^1.0.6", "fs-extra": "^11.3.0", "lint-staged": "^16.2.3", "simple-git-hooks": "^2.13.1", "ts-node": "^10.9.2", "typescript": "^5.7.3" }, "simple-git-hooks": { "pre-commit": "npx lint-staged" }, "lint-staged": { "*": "eslint --fix" } }
1
+ { "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.24", "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义", "typings": "index.d.ts", "author": "JLCEDA <support@lceda.cn>", "license": "Apache-2.0", "homepage": "https://pro.lceda.cn/", "keywords": ["jlceda", "pro-api"], "scripts": { "lint": "eslint", "fix": "eslint --fix", "build": "ts-node ./build/build.ts" }, "devDependencies": { "@antfu/eslint-config": "^5.4.1", "@types/fast-text-encoding": "^1.0.3", "@types/fs-extra": "^11.0.4", "dotenv": "^16.4.7", "eslint": "^9.37.0", "fast-text-encoding": "^1.0.6", "fs-extra": "^11.3.0", "lint-staged": "^16.2.3", "simple-git-hooks": "^2.13.1", "ts-node": "^10.9.2", "typescript": "^5.7.3" }, "simple-git-hooks": { "pre-commit": "npx lint-staged" }, "lint-staged": { "*": "eslint --fix" } }