@lark-project/js-sdk 2.0.8-dev.9 → 2.0.9-dev.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.
- package/dist/es/index.js +5 -5
- package/dist/lib/index.js +6 -6
- package/dist/types/index.d.ts +15 -15
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -440,15 +440,15 @@ _a24 = IMPL_KEY;
|
|
|
440
440
|
*/
|
|
441
441
|
CustomComponent[_a24] = "customComponent";
|
|
442
442
|
|
|
443
|
-
// src/features/
|
|
443
|
+
// src/features/CustomField.ts
|
|
444
444
|
var _a25;
|
|
445
|
-
var
|
|
445
|
+
var CustomField = class extends BaseModel {
|
|
446
446
|
};
|
|
447
447
|
_a25 = IMPL_KEY;
|
|
448
448
|
/**
|
|
449
449
|
* @internal
|
|
450
450
|
*/
|
|
451
|
-
|
|
451
|
+
CustomField[_a25] = "exField";
|
|
452
452
|
|
|
453
453
|
// src/client.ts
|
|
454
454
|
function getImplClass(decl, impls) {
|
|
@@ -634,7 +634,7 @@ var SDKClient = _SDKClient;
|
|
|
634
634
|
/**
|
|
635
635
|
* SDK 版本号
|
|
636
636
|
*/
|
|
637
|
-
SDKClient.version = "2.0.
|
|
637
|
+
SDKClient.version = "2.0.9-dev.2";
|
|
638
638
|
|
|
639
639
|
// src/types/biz.ts
|
|
640
640
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -817,7 +817,7 @@ export {
|
|
|
817
817
|
Control,
|
|
818
818
|
CustomComponent,
|
|
819
819
|
CustomComponentType,
|
|
820
|
-
|
|
820
|
+
CustomField,
|
|
821
821
|
Field,
|
|
822
822
|
FieldType,
|
|
823
823
|
FlowMode,
|
package/dist/lib/index.js
CHANGED
|
@@ -60,7 +60,7 @@ __export(src_exports, {
|
|
|
60
60
|
Control: () => Control,
|
|
61
61
|
CustomComponent: () => CustomComponent,
|
|
62
62
|
CustomComponentType: () => CustomComponentType,
|
|
63
|
-
|
|
63
|
+
CustomField: () => CustomField,
|
|
64
64
|
Field: () => Field,
|
|
65
65
|
FieldType: () => FieldType,
|
|
66
66
|
FlowMode: () => FlowMode,
|
|
@@ -506,15 +506,15 @@ _a24 = IMPL_KEY;
|
|
|
506
506
|
*/
|
|
507
507
|
CustomComponent[_a24] = "customComponent";
|
|
508
508
|
|
|
509
|
-
// src/features/
|
|
509
|
+
// src/features/CustomField.ts
|
|
510
510
|
var _a25;
|
|
511
|
-
var
|
|
511
|
+
var CustomField = class extends BaseModel {
|
|
512
512
|
};
|
|
513
513
|
_a25 = IMPL_KEY;
|
|
514
514
|
/**
|
|
515
515
|
* @internal
|
|
516
516
|
*/
|
|
517
|
-
|
|
517
|
+
CustomField[_a25] = "exField";
|
|
518
518
|
|
|
519
519
|
// src/client.ts
|
|
520
520
|
function getImplClass(decl, impls) {
|
|
@@ -700,7 +700,7 @@ var SDKClient = _SDKClient;
|
|
|
700
700
|
/**
|
|
701
701
|
* SDK 版本号
|
|
702
702
|
*/
|
|
703
|
-
SDKClient.version = "2.0.
|
|
703
|
+
SDKClient.version = "2.0.9-dev.2";
|
|
704
704
|
|
|
705
705
|
// src/types/biz.ts
|
|
706
706
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -884,7 +884,7 @@ var src_default = SDKClient;
|
|
|
884
884
|
Control,
|
|
885
885
|
CustomComponent,
|
|
886
886
|
CustomComponentType,
|
|
887
|
-
|
|
887
|
+
CustomField,
|
|
888
888
|
Field,
|
|
889
889
|
FieldType,
|
|
890
890
|
FlowMode,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -698,7 +698,7 @@ interface CustomComponentProps {
|
|
|
698
698
|
};
|
|
699
699
|
}
|
|
700
700
|
/** ----------------------- 拓展字段构成类型 ----------------------- */
|
|
701
|
-
interface
|
|
701
|
+
interface CustomFieldFeatureContext {
|
|
702
702
|
/**
|
|
703
703
|
* 拓展字段当前所属空间标识
|
|
704
704
|
*/
|
|
@@ -731,18 +731,18 @@ interface ExCompoundFieldValueType {
|
|
|
731
731
|
value?: FieldValue;
|
|
732
732
|
}[][];
|
|
733
733
|
}
|
|
734
|
-
type
|
|
735
|
-
interface
|
|
736
|
-
value:
|
|
734
|
+
type CustomFieldValueType = ExCompoundFieldValueType;
|
|
735
|
+
interface CustomFieldProps {
|
|
736
|
+
value: CustomFieldValueType;
|
|
737
737
|
disabled?: boolean;
|
|
738
738
|
}
|
|
739
|
-
interface
|
|
739
|
+
interface CustomFieldConfig {
|
|
740
740
|
key: string;
|
|
741
741
|
type: FieldType.compoundField | SubFieldType;
|
|
742
742
|
name: string;
|
|
743
|
-
children?:
|
|
743
|
+
children?: CustomFieldConfig[];
|
|
744
744
|
}
|
|
745
|
-
interface
|
|
745
|
+
interface CustomFieldValidateMsg {
|
|
746
746
|
/**
|
|
747
747
|
* code 为 200 时 msg 按照正常成功数据返回外
|
|
748
748
|
* 401 | 402 | 403 | 404 | 405 | 406 按照 InvalidParams 类型异常返回,可以通过该异常的 errCode、errMsg 属性查看具体出错原因
|
|
@@ -1927,13 +1927,13 @@ declare abstract class CustomComponent extends BaseModel {
|
|
|
1927
1927
|
* @public
|
|
1928
1928
|
* 自定义组件构成
|
|
1929
1929
|
*/
|
|
1930
|
-
declare abstract class
|
|
1930
|
+
declare abstract class CustomField extends BaseModel {
|
|
1931
1931
|
/**
|
|
1932
1932
|
* @internal
|
|
1933
1933
|
*/
|
|
1934
1934
|
protected static [IMPL_KEY]: string;
|
|
1935
|
-
abstract getContext: () => Promise<
|
|
1936
|
-
abstract getProps: () => Promise<
|
|
1935
|
+
abstract getContext: () => Promise<CustomFieldFeatureContext>;
|
|
1936
|
+
abstract getProps: () => Promise<CustomFieldProps>;
|
|
1937
1937
|
/**
|
|
1938
1938
|
* only for form
|
|
1939
1939
|
* 用于监听 props 变更
|
|
@@ -1941,9 +1941,9 @@ declare abstract class ExField extends BaseModel {
|
|
|
1941
1941
|
* @param watchKeys 监听的 key,只能监听属性的 key(不能监听 api key),不传默认监听所有 key。监听的 key 对应的值变更会触发回调
|
|
1942
1942
|
* @returns
|
|
1943
1943
|
*/
|
|
1944
|
-
abstract watch: (callback: (next:
|
|
1945
|
-
abstract saveFieldValue: (value:
|
|
1946
|
-
abstract getFieldConfig: () => Promise<
|
|
1944
|
+
abstract watch: (callback: (next: CustomFieldProps | Record<string, never>) => void, watchKeys?: (keyof CustomFieldProps)[]) => Promise<Off>;
|
|
1945
|
+
abstract saveFieldValue: (value: CustomFieldValueType) => Promise<CustomFieldValidateMsg>;
|
|
1946
|
+
abstract getFieldConfig: () => Promise<CustomFieldConfig>;
|
|
1947
1947
|
/**
|
|
1948
1948
|
* 获取新建工作项表单项的值
|
|
1949
1949
|
* mobile version ≥ 7.29.0
|
|
@@ -1972,7 +1972,7 @@ declare abstract class ExField extends BaseModel {
|
|
|
1972
1972
|
* only web for table
|
|
1973
1973
|
* 打开全屏插件
|
|
1974
1974
|
*/
|
|
1975
|
-
abstract getTableCellInitProps(): Promise<
|
|
1975
|
+
abstract getTableCellInitProps(): Promise<CustomFieldProps>;
|
|
1976
1976
|
/**
|
|
1977
1977
|
* only mobile 7.35.0+
|
|
1978
1978
|
* 获取插件的展示态信息
|
|
@@ -2203,4 +2203,4 @@ declare class NotSupportedError extends CustomError {
|
|
|
2203
2203
|
* @packageDocumentation
|
|
2204
2204
|
*/
|
|
2205
2205
|
|
|
2206
|
-
export { ActionSheet, ActionSheetOptions, AttributeType, BatchButtonFeatureContext, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, ComponentScheduleIdentity, ComponentScheduleScene, Configuration, ConfigurationFeatureContext, ContainerModal, ContainerModalConfigureOptions, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, CustomComponent, CustomComponentFeatureContext, CustomComponentProps, CustomComponentType,
|
|
2206
|
+
export { ActionSheet, ActionSheetOptions, AttributeType, BatchButtonFeatureContext, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, 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, ExCompoundFieldValueType, Field, FieldType, FieldValue, FlowMode, IMPL_KEY, IPluginCustomBuildConfig, IRichTextEditorImageUploadComplete, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, 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, Shared, Space, Storage, SubFieldType, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|