@kudashi/kds-api 2.14.3 → 2.14.4-rc-2

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/api.d.ts +113 -24
  2. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // version: 2.13.36
1
+ // version: 2.14.4
2
2
 
3
3
  declare global {
4
4
  /**
@@ -321,6 +321,50 @@ declare global {
321
321
  * Qunhe PROPRIETARY/CONFIDENTIAL, any form of usage is subject to approval.
322
322
  */
323
323
 
324
+ /**
325
+ *
326
+ * 目前支持的单位
327
+ *
328
+ * supported unit currently
329
+ */
330
+ enum KLengthUnit {
331
+ mm = 0,
332
+ m = 1,
333
+ inch = 2,
334
+ ftAndInch = 3,
335
+ sqM = 4,
336
+ sqFt = 5,
337
+ sqMm = 6,
338
+ mats = 7,
339
+ tsubo = 8,
340
+ sqIn = 9
341
+ }
342
+
343
+ /**
344
+ *
345
+ * 主题风格
346
+ *
347
+ * the theme style
348
+ */
349
+ enum KTheme {
350
+ dark = 'dark',
351
+ light = ''
352
+ }
353
+
354
+ /**
355
+ *
356
+ * 全局环境设置
357
+ *
358
+ * global environment settings
359
+ */
360
+ interface EnvironmentSetting {
361
+ designId?: string;
362
+ lng?: string;
363
+ globalUnit?: KLengthUnit;
364
+ theme?: KTheme;
365
+ hostAppName?: string | null;
366
+ }
367
+
324
368
  /**
325
369
  * KApplication 是使用酷大师前端 Plugin API 的起点。
326
370
  *
@@ -546,6 +590,14 @@ declare global {
546
590
  * @returns true if message handler has registered and has been removed, or false if the message handler hasn't registered.
547
591
  */
548
592
  unRegisterMessageHandler(handerId: string): boolean;
593
+
594
+ /**
595
+ *
596
+ * 获取当前环境设置
597
+ *
598
+ * get current environment settings
599
+ */
600
+ getEnvironmentSettings(): EnvironmentSetting;
549
601
  }
550
602
 
551
603
  /*
@@ -2981,6 +3033,28 @@ declare global {
2981
3033
  * @returns the newInstance or undefined.
2982
3034
  */
2983
3035
  createInstanceFromBrandgood(brandgoodId: string): HostPromise<{ newInstance: KGroupInstance } | undefined>;
3036
+
3037
+ /**
3038
+ * 跨组添加业务数据到面上
3039
+ *
3040
+ * Set custom property data to face cross definition.
3041
+ * @param face
3042
+ * @param key: key of custom
3043
+ * @param value: support string type
3044
+ * @param parentGroupDefinition: the groupDefinition which the face belongs to
3045
+ */
3046
+ setFaceCustomPropertyCrossDef(face: KFace, key: string, value: string, parentGroupDefinition: KGroupDefinition): { isSuccess: boolean };
3047
+
3048
+ /**
3049
+ * 跨组添加业务数据到壳上
3050
+ *
3051
+ * Set custom property data to shell cross definition.
3052
+ * @param shell
3053
+ * @param key: key of custom
3054
+ * @param value: support string type
3055
+ * @param parentGroupDefinition: the groupDefinition which the shell belongs to
3056
+ */
3057
+ setShellCustomPropertyCrossDef(shell: KShell, key: string, value: string, parentGroupDefinition: KGroupDefinition): { isSuccess: boolean };
2984
3058
  }
2985
3059
 
2986
3060
 
@@ -4800,6 +4874,15 @@ declare global {
4800
4874
  }
4801
4875
 
4802
4876
 
4877
+ /**
4878
+ * 选中菜单上的功能按钮
4879
+ *
4880
+ * Function button on the select menu
4881
+ */
4882
+ interface KSelectMenuButtonWidget extends KWidget {
4883
+ }
4884
+
4885
+
4803
4886
 
4804
4887
  interface KSelectMenuTitleWidgetOptions {
4805
4888
  /**
@@ -5105,6 +5188,12 @@ declare global {
5105
5188
  * @see KTopBarWidget
5106
5189
  */
5107
5190
  TopBar_Publish = 'TopBar_Publish',
5191
+
5192
+ /**
5193
+ * 选中菜单 - 【导入到我的】按钮
5194
+ *
5195
+ */
5196
+ SelectMenu_ImportToPersonalLib = 'SelectMenu_ImportToPersonalLib',
5108
5197
  }
5109
5198
 
5110
5199
 
@@ -5877,29 +5966,6 @@ declare global {
5877
5966
  * 右侧
5878
5967
  */
5879
5968
  Right,
5880
- }
5881
-
5882
- interface SelectMenuTitleWidgetOptions {
5883
- /**
5884
- * 图标路径
5885
- *
5886
- * Icon path
5887
- */
5888
- icon: string;
5889
-
5890
- /**
5891
- * 显示文本
5892
- *
5893
- * Display text
5894
- */
5895
- text: string;
5896
-
5897
- /**
5898
- * 点击事件处理函数
5899
- *
5900
- * Click event handler
5901
- */
5902
- onClick?: KClickListener
5903
5969
  }
5904
5970
 
5905
5971
  /*
@@ -6659,6 +6725,22 @@ declare global {
6659
6725
  * Remove this widget from the UI
6660
6726
  */
6661
6727
  remove(): void;
6728
+
6729
+
6730
+ /**
6731
+ * 设置是否可见
6732
+ *
6733
+ * Set the visibility of the widget
6734
+ * @param visible
6735
+ */
6736
+ setVisible(visible: boolean): void;
6737
+
6738
+ /**
6739
+ * 获取是否可见
6740
+ *
6741
+ * get visibility of the widget
6742
+ */
6743
+ getVisible(): boolean;
6662
6744
  }
6663
6745
 
6664
6746
 
@@ -6682,6 +6764,13 @@ declare global {
6682
6764
  */
6683
6765
  SelectMenuTitleWidget = 'selectMenuTitleWidget',
6684
6766
 
6767
+ /**
6768
+ * 选择菜单按钮控件
6769
+ *
6770
+ * Select menu button widget
6771
+ */
6772
+ SelectMenuButtonWidget = 'selectMenuButtonWidget',
6773
+
6685
6774
  /**
6686
6775
  * 系统控件
6687
6776
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kudashi/kds-api",
3
- "version": "2.14.3",
3
+ "version": "2.14.4-rc-2",
4
4
  "description": "kds api",
5
5
  "main": "api.d.ts",
6
6
  "scripts": {