@kudashi/kds-api 2.14.4-rc-1 → 2.14.4
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/api.d.ts +71 -34
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -321,10 +321,10 @@ declare global {
|
|
|
321
321
|
* Qunhe PROPRIETARY/CONFIDENTIAL, any form of usage is subject to approval.
|
|
322
322
|
*/
|
|
323
323
|
|
|
324
|
-
/**
|
|
325
|
-
*
|
|
324
|
+
/**
|
|
325
|
+
*
|
|
326
326
|
* 目前支持的单位
|
|
327
|
-
*
|
|
327
|
+
*
|
|
328
328
|
* supported unit currently
|
|
329
329
|
*/
|
|
330
330
|
enum KLengthUnit {
|
|
@@ -341,20 +341,20 @@ declare global {
|
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
/**
|
|
344
|
-
*
|
|
344
|
+
*
|
|
345
345
|
* 主题风格
|
|
346
|
-
*
|
|
346
|
+
*
|
|
347
347
|
* the theme style
|
|
348
348
|
*/
|
|
349
349
|
enum KTheme {
|
|
350
|
-
dark =
|
|
351
|
-
light =
|
|
350
|
+
dark = 'dark',
|
|
351
|
+
light = ''
|
|
352
352
|
}
|
|
353
353
|
|
|
354
354
|
/**
|
|
355
|
-
*
|
|
355
|
+
*
|
|
356
356
|
* 全局环境设置
|
|
357
|
-
*
|
|
357
|
+
*
|
|
358
358
|
* global environment settings
|
|
359
359
|
*/
|
|
360
360
|
interface EnvironmentSetting {
|
|
@@ -592,9 +592,9 @@ declare global {
|
|
|
592
592
|
unRegisterMessageHandler(handerId: string): boolean;
|
|
593
593
|
|
|
594
594
|
/**
|
|
595
|
-
*
|
|
595
|
+
*
|
|
596
596
|
* 获取当前环境设置
|
|
597
|
-
*
|
|
597
|
+
*
|
|
598
598
|
* get current environment settings
|
|
599
599
|
*/
|
|
600
600
|
getEnvironmentSettings(): EnvironmentSetting;
|
|
@@ -3033,6 +3033,28 @@ declare global {
|
|
|
3033
3033
|
* @returns the newInstance or undefined.
|
|
3034
3034
|
*/
|
|
3035
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 };
|
|
3036
3058
|
}
|
|
3037
3059
|
|
|
3038
3060
|
|
|
@@ -4852,6 +4874,15 @@ declare global {
|
|
|
4852
4874
|
}
|
|
4853
4875
|
|
|
4854
4876
|
|
|
4877
|
+
/**
|
|
4878
|
+
* 选中菜单上的功能按钮
|
|
4879
|
+
*
|
|
4880
|
+
* Function button on the select menu
|
|
4881
|
+
*/
|
|
4882
|
+
interface KSelectMenuButtonWidget extends KWidget {
|
|
4883
|
+
}
|
|
4884
|
+
|
|
4885
|
+
|
|
4855
4886
|
|
|
4856
4887
|
interface KSelectMenuTitleWidgetOptions {
|
|
4857
4888
|
/**
|
|
@@ -5157,6 +5188,12 @@ declare global {
|
|
|
5157
5188
|
* @see KTopBarWidget
|
|
5158
5189
|
*/
|
|
5159
5190
|
TopBar_Publish = 'TopBar_Publish',
|
|
5191
|
+
|
|
5192
|
+
/**
|
|
5193
|
+
* 选中菜单 - 【导入到我的】按钮
|
|
5194
|
+
*
|
|
5195
|
+
*/
|
|
5196
|
+
SelectMenu_ImportToPersonalLib = 'SelectMenu_ImportToPersonalLib',
|
|
5160
5197
|
}
|
|
5161
5198
|
|
|
5162
5199
|
|
|
@@ -5929,29 +5966,6 @@ declare global {
|
|
|
5929
5966
|
* 右侧
|
|
5930
5967
|
*/
|
|
5931
5968
|
Right,
|
|
5932
|
-
}
|
|
5933
|
-
|
|
5934
|
-
interface SelectMenuTitleWidgetOptions {
|
|
5935
|
-
/**
|
|
5936
|
-
* 图标路径
|
|
5937
|
-
*
|
|
5938
|
-
* Icon path
|
|
5939
|
-
*/
|
|
5940
|
-
icon: string;
|
|
5941
|
-
|
|
5942
|
-
/**
|
|
5943
|
-
* 显示文本
|
|
5944
|
-
*
|
|
5945
|
-
* Display text
|
|
5946
|
-
*/
|
|
5947
|
-
text: string;
|
|
5948
|
-
|
|
5949
|
-
/**
|
|
5950
|
-
* 点击事件处理函数
|
|
5951
|
-
*
|
|
5952
|
-
* Click event handler
|
|
5953
|
-
*/
|
|
5954
|
-
onClick?: KClickListener
|
|
5955
5969
|
}
|
|
5956
5970
|
|
|
5957
5971
|
/*
|
|
@@ -6711,6 +6725,22 @@ declare global {
|
|
|
6711
6725
|
* Remove this widget from the UI
|
|
6712
6726
|
*/
|
|
6713
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;
|
|
6714
6744
|
}
|
|
6715
6745
|
|
|
6716
6746
|
|
|
@@ -6734,6 +6764,13 @@ declare global {
|
|
|
6734
6764
|
*/
|
|
6735
6765
|
SelectMenuTitleWidget = 'selectMenuTitleWidget',
|
|
6736
6766
|
|
|
6767
|
+
/**
|
|
6768
|
+
* 选择菜单按钮控件
|
|
6769
|
+
*
|
|
6770
|
+
* Select menu button widget
|
|
6771
|
+
*/
|
|
6772
|
+
SelectMenuButtonWidget = 'selectMenuButtonWidget',
|
|
6773
|
+
|
|
6737
6774
|
/**
|
|
6738
6775
|
* 系统控件
|
|
6739
6776
|
*/
|