@lark-project/js-sdk 2.1.4 → 2.1.5-alpha.0
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/CHANGELOG.md +2 -0
- package/dist/es/index.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/types/index.d.ts +71 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/es/index.js
CHANGED
package/dist/lib/index.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -844,12 +844,18 @@ interface LiteAppComponentFeatureContext {
|
|
|
844
844
|
/**
|
|
845
845
|
* liteapp 组件属性值类型
|
|
846
846
|
*/
|
|
847
|
+
/**
|
|
848
|
+
* 系统内置的通用值类型
|
|
849
|
+
*/
|
|
847
850
|
type LiteAppPropLayout = {
|
|
848
851
|
width: number;
|
|
849
852
|
height: number;
|
|
850
853
|
positionX: number;
|
|
851
854
|
positionY: number;
|
|
852
855
|
};
|
|
856
|
+
/**
|
|
857
|
+
* 可配置的属性及值类型
|
|
858
|
+
*/
|
|
853
859
|
declare enum LiteAppPropTemplateType {
|
|
854
860
|
Text = "text",
|
|
855
861
|
Number = "number",
|
|
@@ -900,11 +906,38 @@ type LiteAppPropDataSource = {
|
|
|
900
906
|
};
|
|
901
907
|
type LiteAppPropView = {
|
|
902
908
|
viewId: string;
|
|
909
|
+
/**
|
|
910
|
+
* 是否是全景视图
|
|
911
|
+
*/
|
|
903
912
|
isMultiProject: boolean;
|
|
904
913
|
};
|
|
905
914
|
type LiteAppPropWorkItemListAfterFilter = LiteAppPropWorkItemInstance[];
|
|
906
915
|
type LiteAppPropWorkItemListAfterSort = LiteAppPropWorkItemInstance[];
|
|
907
916
|
type LiteAppCompPropValueType = LiteAppPropText | LiteAppPropNumber | LiteAppPropSelect | LiteAppPropBoolean | LiteAppPropMultiSelect | LiteAppPropDateWithTime | LiteAppPropDateRange | LiteAppPropWorkItemType | LiteAppPropWorkItemInstance | LiteAppPropView | LiteAppPropWorkItemListAfterFilter | LiteAppPropWorkItemListAfterSort | LiteAppPropDataSource;
|
|
917
|
+
type LiteAppSubscribedPropertyText = string;
|
|
918
|
+
type LiteAppSubscribedPropertyNumber = number;
|
|
919
|
+
type LiteAppSubscribedPropertyDatePrecise = number;
|
|
920
|
+
type LiteAppSubscribedPropertyDateRange = {
|
|
921
|
+
start: number;
|
|
922
|
+
end: number;
|
|
923
|
+
};
|
|
924
|
+
type LiteAppSubscribedPropertyView = {
|
|
925
|
+
viewId: string;
|
|
926
|
+
};
|
|
927
|
+
type LiteAppSubscribedPropertyWorkItemInstance = {
|
|
928
|
+
spaceId: string;
|
|
929
|
+
workObjectId: string;
|
|
930
|
+
workItemId: number;
|
|
931
|
+
};
|
|
932
|
+
type LiteAppSubscribedPropertyWorkItemType = {
|
|
933
|
+
spaceId: string;
|
|
934
|
+
workObjectId: string;
|
|
935
|
+
};
|
|
936
|
+
type LiteAppSubscribedPropertyDataSource = {
|
|
937
|
+
spaceId: string;
|
|
938
|
+
moql: string;
|
|
939
|
+
};
|
|
940
|
+
type LiteAppSubscribedPropertyValueType = LiteAppSubscribedPropertyText | LiteAppSubscribedPropertyNumber | LiteAppSubscribedPropertyDatePrecise | LiteAppSubscribedPropertyDateRange | LiteAppSubscribedPropertyView | LiteAppSubscribedPropertyWorkItemInstance | LiteAppSubscribedPropertyWorkItemType | LiteAppSubscribedPropertyDataSource;
|
|
908
941
|
/**
|
|
909
942
|
* liteapp 组件不同的属性类型对应的可读配置
|
|
910
943
|
*/
|
|
@@ -931,11 +964,17 @@ type LiteAppCompPropFullConfig = LiteAppCompPropBriefConfig | LiteAppCompPropSel
|
|
|
931
964
|
* liteapp 组件入参定义
|
|
932
965
|
*/
|
|
933
966
|
type LiteAppComponentProps = {
|
|
967
|
+
/**
|
|
968
|
+
* 实例 ID
|
|
969
|
+
*/
|
|
934
970
|
instanceId: string;
|
|
935
971
|
layout?: LiteAppPropLayout;
|
|
936
972
|
} & {
|
|
937
973
|
[propName: string]: LiteAppCompPropValueType;
|
|
938
974
|
};
|
|
975
|
+
/**
|
|
976
|
+
* liteapp 组件属性配置定义
|
|
977
|
+
*/
|
|
939
978
|
type LiteAppCompLayoutConfig =
|
|
940
979
|
/** 定高模式 */
|
|
941
980
|
{
|
|
@@ -952,17 +991,38 @@ type LiteAppCompLayoutConfig =
|
|
|
952
991
|
maxHeight: number;
|
|
953
992
|
};
|
|
954
993
|
type LiteAppComponentConfig = {
|
|
994
|
+
/**
|
|
995
|
+
* 组件 id(与实例 id 区分)
|
|
996
|
+
*/
|
|
955
997
|
id: string;
|
|
998
|
+
/**
|
|
999
|
+
* 组件名称
|
|
1000
|
+
*/
|
|
1001
|
+
/**
|
|
1002
|
+
* 组件 icon
|
|
1003
|
+
*/
|
|
1004
|
+
/**
|
|
1005
|
+
* layout 配置
|
|
1006
|
+
*/
|
|
956
1007
|
layout: LiteAppCompLayoutConfig;
|
|
957
1008
|
} & {
|
|
1009
|
+
/**
|
|
1010
|
+
* 属性配置
|
|
1011
|
+
*/
|
|
958
1012
|
[keyOfProp: string]: LiteAppCompPropBriefConfig;
|
|
959
1013
|
};
|
|
1014
|
+
/**
|
|
1015
|
+
* liteapp 组件预设值(默认值)
|
|
1016
|
+
*/
|
|
960
1017
|
interface LiteAppComponentPreset {
|
|
961
1018
|
layout?: {
|
|
962
1019
|
width: number;
|
|
963
1020
|
height: number;
|
|
964
1021
|
};
|
|
965
1022
|
}
|
|
1023
|
+
/**
|
|
1024
|
+
* liteapp 工作项实例定义
|
|
1025
|
+
*/
|
|
966
1026
|
type LiteAppWorkItemInstance = {
|
|
967
1027
|
/**
|
|
968
1028
|
* 唯一标识
|
|
@@ -1002,8 +1062,17 @@ type LiteAppWorkItemInstance = {
|
|
|
1002
1062
|
fields?: Record<string, unknown>;
|
|
1003
1063
|
};
|
|
1004
1064
|
type LiteAppComponentDataSourceResult = {
|
|
1065
|
+
/**
|
|
1066
|
+
* 工作项实例列表
|
|
1067
|
+
*/
|
|
1005
1068
|
data: LiteAppWorkItemInstance[];
|
|
1069
|
+
/**
|
|
1070
|
+
* 数据总数
|
|
1071
|
+
*/
|
|
1006
1072
|
total: number;
|
|
1073
|
+
/**
|
|
1074
|
+
* 是否有更多数据
|
|
1075
|
+
*/
|
|
1007
1076
|
hasMore: boolean;
|
|
1008
1077
|
};
|
|
1009
1078
|
|
|
@@ -2386,6 +2455,7 @@ declare abstract class BuilderComponent extends BaseModel {
|
|
|
2386
2455
|
pageNum: number;
|
|
2387
2456
|
pageSize: number;
|
|
2388
2457
|
}) => Promise<LiteAppComponentDataSourceResult>;
|
|
2458
|
+
abstract notify: (key: string, value: LiteAppSubscribedPropertyValueType) => Promise<void>;
|
|
2389
2459
|
}
|
|
2390
2460
|
|
|
2391
2461
|
/**
|
|
@@ -2623,4 +2693,4 @@ declare class NotSupportedError extends CustomError {
|
|
|
2623
2693
|
* @packageDocumentation
|
|
2624
2694
|
*/
|
|
2625
2695
|
|
|
2626
|
-
export { ActionSheet, ActionSheetOptions, AttributeType, BatchButtonFeatureContext, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, BuilderComponent, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, ComponentScheduleIdentity, ComponentScheduleScene, Configuration, ConfigurationFeatureContext, ContainerModal, ContainerModalConfigureOptions, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, CustomComponent, CustomComponentFeatureContext, CustomComponentProps, CustomComponentType, CustomField, CustomFieldConfig, CustomFieldFeatureContext, CustomFieldProps, CustomFieldValidateMsg, CustomFieldValueType, Event, EventPayloadMap, EventType, ExCompoundFieldValueType, Field, FieldType, FieldValue, FlowMode, Geolocation, GeolocationCoordinates, GeolocationPosition, I18nTitleConfig, IMPL_KEY, IPluginCustomBuildConfig, IRichTextEditorImageUploadComplete, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, LiteAppCompLayoutConfig, LiteAppCompPropBriefConfig, LiteAppCompPropFullConfig, LiteAppCompPropSelectConfig, LiteAppCompPropValueType, LiteAppComponentConfig, LiteAppComponentDataSourceResult, LiteAppComponentFeatureContext, LiteAppComponentPreset, LiteAppComponentProps, LiteAppPropBoolean, LiteAppPropDataSource, LiteAppPropDateRange, LiteAppPropDateWithTime, LiteAppPropField, LiteAppPropLayout, LiteAppPropMultiSelect, LiteAppPropNumber, LiteAppPropSelect, LiteAppPropTemplateType, LiteAppPropText, LiteAppPropView, LiteAppPropWorkItemInstance, LiteAppPropWorkItemListAfterFilter, LiteAppPropWorkItemListAfterSort, LiteAppPropWorkItemType, LiteAppWorkItemInstance, MEEGO_BIZ_HUB, Modal, ModalConfirmOptions, ModalOpenOptions, Navigation, NoAuthError, NodeStatus, NotFoundError, NotSupportedError, Off, OutOfLimitError, Page, PageFeatureContext, RichTextEditor, RichTextEditorContent, RichTextEditorOptions, Role, RoleOwners, SDKClient, SDKClientOptions, ScheduleCompValidateMsg, ScheduleCompValueType, ScheduleUnitButtonFeatureContext, Script, ScriptFeatureContext, Shared, Space, Storage, SubFieldType, SystemPermissionDeniedError, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|
|
2696
|
+
export { ActionSheet, ActionSheetOptions, AttributeType, BatchButtonFeatureContext, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, BuilderComponent, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, ComponentScheduleIdentity, ComponentScheduleScene, Configuration, ConfigurationFeatureContext, ContainerModal, ContainerModalConfigureOptions, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, CustomComponent, CustomComponentFeatureContext, CustomComponentProps, CustomComponentType, CustomField, CustomFieldConfig, CustomFieldFeatureContext, CustomFieldProps, CustomFieldValidateMsg, CustomFieldValueType, Event, EventPayloadMap, EventType, ExCompoundFieldValueType, Field, FieldType, FieldValue, FlowMode, Geolocation, GeolocationCoordinates, GeolocationPosition, I18nTitleConfig, IMPL_KEY, IPluginCustomBuildConfig, IRichTextEditorImageUploadComplete, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, LiteAppCompLayoutConfig, LiteAppCompPropBriefConfig, LiteAppCompPropFullConfig, LiteAppCompPropSelectConfig, LiteAppCompPropValueType, LiteAppComponentConfig, LiteAppComponentDataSourceResult, LiteAppComponentFeatureContext, LiteAppComponentPreset, LiteAppComponentProps, LiteAppPropBoolean, LiteAppPropDataSource, LiteAppPropDateRange, LiteAppPropDateWithTime, LiteAppPropField, LiteAppPropLayout, LiteAppPropMultiSelect, LiteAppPropNumber, LiteAppPropSelect, LiteAppPropTemplateType, LiteAppPropText, LiteAppPropView, LiteAppPropWorkItemInstance, LiteAppPropWorkItemListAfterFilter, LiteAppPropWorkItemListAfterSort, LiteAppPropWorkItemType, LiteAppSubscribedPropertyValueType, LiteAppWorkItemInstance, MEEGO_BIZ_HUB, Modal, ModalConfirmOptions, ModalOpenOptions, Navigation, NoAuthError, NodeStatus, NotFoundError, NotSupportedError, Off, OutOfLimitError, Page, PageFeatureContext, RichTextEditor, RichTextEditorContent, RichTextEditorOptions, Role, RoleOwners, SDKClient, SDKClientOptions, ScheduleCompValidateMsg, ScheduleCompValueType, ScheduleUnitButtonFeatureContext, Script, ScriptFeatureContext, Shared, Space, Storage, SubFieldType, SystemPermissionDeniedError, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|