@lark-project/js-sdk 2.0.18-dev.1 → 2.1.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 +3 -0
- package/dist/es/index.js +31 -49
- package/dist/lib/index.js +32 -51
- package/dist/types/index.d.ts +54 -69
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -302,11 +302,11 @@ _a15 = IMPL_KEY;
|
|
|
302
302
|
*/
|
|
303
303
|
Utils[_a15] = "utils";
|
|
304
304
|
|
|
305
|
-
// src/
|
|
305
|
+
// src/features/ContainerModal.ts
|
|
306
306
|
var _a16;
|
|
307
|
-
var
|
|
307
|
+
var ContainerModal = class extends BaseModel {
|
|
308
308
|
/**
|
|
309
|
-
*
|
|
309
|
+
* 加载数据
|
|
310
310
|
*/
|
|
311
311
|
static load() {
|
|
312
312
|
throw new Error("not implemented");
|
|
@@ -316,11 +316,11 @@ _a16 = IMPL_KEY;
|
|
|
316
316
|
/**
|
|
317
317
|
* @internal
|
|
318
318
|
*/
|
|
319
|
-
|
|
319
|
+
ContainerModal[_a16] = "containerModal";
|
|
320
320
|
|
|
321
|
-
// src/features/
|
|
321
|
+
// src/features/Intercept.ts
|
|
322
322
|
var _a17;
|
|
323
|
-
var
|
|
323
|
+
var Intercept = class extends BaseModel {
|
|
324
324
|
/**
|
|
325
325
|
* 加载数据
|
|
326
326
|
*/
|
|
@@ -332,11 +332,11 @@ _a17 = IMPL_KEY;
|
|
|
332
332
|
/**
|
|
333
333
|
* @internal
|
|
334
334
|
*/
|
|
335
|
-
|
|
335
|
+
Intercept[_a17] = "intercept";
|
|
336
336
|
|
|
337
|
-
// src/features/
|
|
337
|
+
// src/features/Control.ts
|
|
338
338
|
var _a18;
|
|
339
|
-
var
|
|
339
|
+
var Control = class extends BaseModel {
|
|
340
340
|
/**
|
|
341
341
|
* 加载数据
|
|
342
342
|
*/
|
|
@@ -348,11 +348,11 @@ _a18 = IMPL_KEY;
|
|
|
348
348
|
/**
|
|
349
349
|
* @internal
|
|
350
350
|
*/
|
|
351
|
-
|
|
351
|
+
Control[_a18] = "control";
|
|
352
352
|
|
|
353
|
-
// src/features/
|
|
353
|
+
// src/features/Button.ts
|
|
354
354
|
var _a19;
|
|
355
|
-
var
|
|
355
|
+
var Button = class extends BaseModel {
|
|
356
356
|
/**
|
|
357
357
|
* 加载数据
|
|
358
358
|
*/
|
|
@@ -364,11 +364,11 @@ _a19 = IMPL_KEY;
|
|
|
364
364
|
/**
|
|
365
365
|
* @internal
|
|
366
366
|
*/
|
|
367
|
-
|
|
367
|
+
Button[_a19] = "button";
|
|
368
368
|
|
|
369
|
-
// src/features/
|
|
369
|
+
// src/features/Configuration.ts
|
|
370
370
|
var _a20;
|
|
371
|
-
var
|
|
371
|
+
var Configuration = class extends BaseModel {
|
|
372
372
|
/**
|
|
373
373
|
* 加载数据
|
|
374
374
|
*/
|
|
@@ -380,11 +380,11 @@ _a20 = IMPL_KEY;
|
|
|
380
380
|
/**
|
|
381
381
|
* @internal
|
|
382
382
|
*/
|
|
383
|
-
|
|
383
|
+
Configuration[_a20] = "configuration";
|
|
384
384
|
|
|
385
|
-
// src/features/
|
|
385
|
+
// src/features/Page.ts
|
|
386
386
|
var _a21;
|
|
387
|
-
var
|
|
387
|
+
var Page = class extends BaseModel {
|
|
388
388
|
/**
|
|
389
389
|
* 加载数据
|
|
390
390
|
*/
|
|
@@ -396,23 +396,17 @@ _a21 = IMPL_KEY;
|
|
|
396
396
|
/**
|
|
397
397
|
* @internal
|
|
398
398
|
*/
|
|
399
|
-
|
|
399
|
+
Page[_a21] = "page";
|
|
400
400
|
|
|
401
|
-
// src/features/
|
|
401
|
+
// src/features/Script.ts
|
|
402
402
|
var _a22;
|
|
403
|
-
var
|
|
404
|
-
/**
|
|
405
|
-
* 加载数据
|
|
406
|
-
*/
|
|
407
|
-
static load() {
|
|
408
|
-
throw new Error("not implemented");
|
|
409
|
-
}
|
|
403
|
+
var Script = class extends BaseModel {
|
|
410
404
|
};
|
|
411
405
|
_a22 = IMPL_KEY;
|
|
412
406
|
/**
|
|
413
407
|
* @internal
|
|
414
408
|
*/
|
|
415
|
-
|
|
409
|
+
Script[_a22] = "script";
|
|
416
410
|
|
|
417
411
|
// src/features/Tab.ts
|
|
418
412
|
var _a23;
|
|
@@ -512,6 +506,13 @@ var _SDKClient = class {
|
|
|
512
506
|
get button() {
|
|
513
507
|
return getImplValue(Button, this._meegoBizHub);
|
|
514
508
|
}
|
|
509
|
+
/**
|
|
510
|
+
* 脚本容器特有能力
|
|
511
|
+
* only 2.0
|
|
512
|
+
*/
|
|
513
|
+
get script() {
|
|
514
|
+
return getImplValue(Script, this._meegoBizHub);
|
|
515
|
+
}
|
|
515
516
|
/**
|
|
516
517
|
* 配置点位容器特有能力
|
|
517
518
|
* only 2.0
|
|
@@ -586,13 +587,6 @@ var _SDKClient = class {
|
|
|
586
587
|
get toast() {
|
|
587
588
|
return getImplValue(Toast, this._meegoBizHub);
|
|
588
589
|
}
|
|
589
|
-
/**
|
|
590
|
-
* 地理位置
|
|
591
|
-
* only mobile 2.0
|
|
592
|
-
*/
|
|
593
|
-
get geolocation() {
|
|
594
|
-
return getImplValue(Geolocation, this._meegoBizHub);
|
|
595
|
-
}
|
|
596
590
|
/**
|
|
597
591
|
* 富文本编辑器
|
|
598
592
|
* only 2.0
|
|
@@ -689,7 +683,7 @@ var SDKClient = _SDKClient;
|
|
|
689
683
|
/**
|
|
690
684
|
* SDK 版本号
|
|
691
685
|
*/
|
|
692
|
-
SDKClient.version = "2.0
|
|
686
|
+
SDKClient.version = "2.1.0";
|
|
693
687
|
|
|
694
688
|
// src/types/biz.ts
|
|
695
689
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -872,17 +866,6 @@ var NotSupportedError = class extends CustomError {
|
|
|
872
866
|
}
|
|
873
867
|
};
|
|
874
868
|
|
|
875
|
-
// src/errors/SystemPermissionDeniedError.ts
|
|
876
|
-
var SystemPermissionDeniedError = class extends CustomError {
|
|
877
|
-
constructor(options) {
|
|
878
|
-
super({
|
|
879
|
-
message: "system permission denied",
|
|
880
|
-
originMessage: options.originMessage
|
|
881
|
-
});
|
|
882
|
-
this.name = "SystemPermissionDeniedError";
|
|
883
|
-
}
|
|
884
|
-
};
|
|
885
|
-
|
|
886
869
|
// src/index.ts
|
|
887
870
|
var src_default = SDKClient;
|
|
888
871
|
export {
|
|
@@ -903,7 +886,6 @@ export {
|
|
|
903
886
|
Field,
|
|
904
887
|
FieldType,
|
|
905
888
|
FlowMode,
|
|
906
|
-
Geolocation,
|
|
907
889
|
IMPL_KEY,
|
|
908
890
|
Intercept,
|
|
909
891
|
InterceptEvent,
|
|
@@ -921,10 +903,10 @@ export {
|
|
|
921
903
|
Page,
|
|
922
904
|
RichTextEditor,
|
|
923
905
|
SDKClient,
|
|
906
|
+
Script,
|
|
924
907
|
Shared,
|
|
925
908
|
Space,
|
|
926
909
|
Storage,
|
|
927
|
-
SystemPermissionDeniedError,
|
|
928
910
|
Tab,
|
|
929
911
|
Toast,
|
|
930
912
|
Utils,
|
package/dist/lib/index.js
CHANGED
|
@@ -65,7 +65,6 @@ __export(src_exports, {
|
|
|
65
65
|
Field: () => Field,
|
|
66
66
|
FieldType: () => FieldType,
|
|
67
67
|
FlowMode: () => FlowMode,
|
|
68
|
-
Geolocation: () => Geolocation,
|
|
69
68
|
IMPL_KEY: () => IMPL_KEY,
|
|
70
69
|
Intercept: () => Intercept,
|
|
71
70
|
InterceptEvent: () => InterceptEvent,
|
|
@@ -83,10 +82,10 @@ __export(src_exports, {
|
|
|
83
82
|
Page: () => Page,
|
|
84
83
|
RichTextEditor: () => RichTextEditor,
|
|
85
84
|
SDKClient: () => SDKClient,
|
|
85
|
+
Script: () => Script,
|
|
86
86
|
Shared: () => Shared,
|
|
87
87
|
Space: () => Space,
|
|
88
88
|
Storage: () => Storage,
|
|
89
|
-
SystemPermissionDeniedError: () => SystemPermissionDeniedError,
|
|
90
89
|
Tab: () => Tab,
|
|
91
90
|
Toast: () => Toast,
|
|
92
91
|
Utils: () => Utils,
|
|
@@ -372,11 +371,11 @@ _a15 = IMPL_KEY;
|
|
|
372
371
|
*/
|
|
373
372
|
Utils[_a15] = "utils";
|
|
374
373
|
|
|
375
|
-
// src/
|
|
374
|
+
// src/features/ContainerModal.ts
|
|
376
375
|
var _a16;
|
|
377
|
-
var
|
|
376
|
+
var ContainerModal = class extends BaseModel {
|
|
378
377
|
/**
|
|
379
|
-
*
|
|
378
|
+
* 加载数据
|
|
380
379
|
*/
|
|
381
380
|
static load() {
|
|
382
381
|
throw new Error("not implemented");
|
|
@@ -386,11 +385,11 @@ _a16 = IMPL_KEY;
|
|
|
386
385
|
/**
|
|
387
386
|
* @internal
|
|
388
387
|
*/
|
|
389
|
-
|
|
388
|
+
ContainerModal[_a16] = "containerModal";
|
|
390
389
|
|
|
391
|
-
// src/features/
|
|
390
|
+
// src/features/Intercept.ts
|
|
392
391
|
var _a17;
|
|
393
|
-
var
|
|
392
|
+
var Intercept = class extends BaseModel {
|
|
394
393
|
/**
|
|
395
394
|
* 加载数据
|
|
396
395
|
*/
|
|
@@ -402,11 +401,11 @@ _a17 = IMPL_KEY;
|
|
|
402
401
|
/**
|
|
403
402
|
* @internal
|
|
404
403
|
*/
|
|
405
|
-
|
|
404
|
+
Intercept[_a17] = "intercept";
|
|
406
405
|
|
|
407
|
-
// src/features/
|
|
406
|
+
// src/features/Control.ts
|
|
408
407
|
var _a18;
|
|
409
|
-
var
|
|
408
|
+
var Control = class extends BaseModel {
|
|
410
409
|
/**
|
|
411
410
|
* 加载数据
|
|
412
411
|
*/
|
|
@@ -418,11 +417,11 @@ _a18 = IMPL_KEY;
|
|
|
418
417
|
/**
|
|
419
418
|
* @internal
|
|
420
419
|
*/
|
|
421
|
-
|
|
420
|
+
Control[_a18] = "control";
|
|
422
421
|
|
|
423
|
-
// src/features/
|
|
422
|
+
// src/features/Button.ts
|
|
424
423
|
var _a19;
|
|
425
|
-
var
|
|
424
|
+
var Button = class extends BaseModel {
|
|
426
425
|
/**
|
|
427
426
|
* 加载数据
|
|
428
427
|
*/
|
|
@@ -434,11 +433,11 @@ _a19 = IMPL_KEY;
|
|
|
434
433
|
/**
|
|
435
434
|
* @internal
|
|
436
435
|
*/
|
|
437
|
-
|
|
436
|
+
Button[_a19] = "button";
|
|
438
437
|
|
|
439
|
-
// src/features/
|
|
438
|
+
// src/features/Configuration.ts
|
|
440
439
|
var _a20;
|
|
441
|
-
var
|
|
440
|
+
var Configuration = class extends BaseModel {
|
|
442
441
|
/**
|
|
443
442
|
* 加载数据
|
|
444
443
|
*/
|
|
@@ -450,11 +449,11 @@ _a20 = IMPL_KEY;
|
|
|
450
449
|
/**
|
|
451
450
|
* @internal
|
|
452
451
|
*/
|
|
453
|
-
|
|
452
|
+
Configuration[_a20] = "configuration";
|
|
454
453
|
|
|
455
|
-
// src/features/
|
|
454
|
+
// src/features/Page.ts
|
|
456
455
|
var _a21;
|
|
457
|
-
var
|
|
456
|
+
var Page = class extends BaseModel {
|
|
458
457
|
/**
|
|
459
458
|
* 加载数据
|
|
460
459
|
*/
|
|
@@ -466,23 +465,17 @@ _a21 = IMPL_KEY;
|
|
|
466
465
|
/**
|
|
467
466
|
* @internal
|
|
468
467
|
*/
|
|
469
|
-
|
|
468
|
+
Page[_a21] = "page";
|
|
470
469
|
|
|
471
|
-
// src/features/
|
|
470
|
+
// src/features/Script.ts
|
|
472
471
|
var _a22;
|
|
473
|
-
var
|
|
474
|
-
/**
|
|
475
|
-
* 加载数据
|
|
476
|
-
*/
|
|
477
|
-
static load() {
|
|
478
|
-
throw new Error("not implemented");
|
|
479
|
-
}
|
|
472
|
+
var Script = class extends BaseModel {
|
|
480
473
|
};
|
|
481
474
|
_a22 = IMPL_KEY;
|
|
482
475
|
/**
|
|
483
476
|
* @internal
|
|
484
477
|
*/
|
|
485
|
-
|
|
478
|
+
Script[_a22] = "script";
|
|
486
479
|
|
|
487
480
|
// src/features/Tab.ts
|
|
488
481
|
var _a23;
|
|
@@ -582,6 +575,13 @@ var _SDKClient = class {
|
|
|
582
575
|
get button() {
|
|
583
576
|
return getImplValue(Button, this._meegoBizHub);
|
|
584
577
|
}
|
|
578
|
+
/**
|
|
579
|
+
* 脚本容器特有能力
|
|
580
|
+
* only 2.0
|
|
581
|
+
*/
|
|
582
|
+
get script() {
|
|
583
|
+
return getImplValue(Script, this._meegoBizHub);
|
|
584
|
+
}
|
|
585
585
|
/**
|
|
586
586
|
* 配置点位容器特有能力
|
|
587
587
|
* only 2.0
|
|
@@ -656,13 +656,6 @@ var _SDKClient = class {
|
|
|
656
656
|
get toast() {
|
|
657
657
|
return getImplValue(Toast, this._meegoBizHub);
|
|
658
658
|
}
|
|
659
|
-
/**
|
|
660
|
-
* 地理位置
|
|
661
|
-
* only mobile 2.0
|
|
662
|
-
*/
|
|
663
|
-
get geolocation() {
|
|
664
|
-
return getImplValue(Geolocation, this._meegoBizHub);
|
|
665
|
-
}
|
|
666
659
|
/**
|
|
667
660
|
* 富文本编辑器
|
|
668
661
|
* only 2.0
|
|
@@ -759,7 +752,7 @@ var SDKClient = _SDKClient;
|
|
|
759
752
|
/**
|
|
760
753
|
* SDK 版本号
|
|
761
754
|
*/
|
|
762
|
-
SDKClient.version = "2.0
|
|
755
|
+
SDKClient.version = "2.1.0";
|
|
763
756
|
|
|
764
757
|
// src/types/biz.ts
|
|
765
758
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -942,17 +935,6 @@ var NotSupportedError = class extends CustomError {
|
|
|
942
935
|
}
|
|
943
936
|
};
|
|
944
937
|
|
|
945
|
-
// src/errors/SystemPermissionDeniedError.ts
|
|
946
|
-
var SystemPermissionDeniedError = class extends CustomError {
|
|
947
|
-
constructor(options) {
|
|
948
|
-
super({
|
|
949
|
-
message: "system permission denied",
|
|
950
|
-
originMessage: options.originMessage
|
|
951
|
-
});
|
|
952
|
-
this.name = "SystemPermissionDeniedError";
|
|
953
|
-
}
|
|
954
|
-
};
|
|
955
|
-
|
|
956
938
|
// src/index.ts
|
|
957
939
|
var src_default = SDKClient;
|
|
958
940
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -974,7 +956,6 @@ var src_default = SDKClient;
|
|
|
974
956
|
Field,
|
|
975
957
|
FieldType,
|
|
976
958
|
FlowMode,
|
|
977
|
-
Geolocation,
|
|
978
959
|
IMPL_KEY,
|
|
979
960
|
Intercept,
|
|
980
961
|
InterceptEvent,
|
|
@@ -992,10 +973,10 @@ var src_default = SDKClient;
|
|
|
992
973
|
Page,
|
|
993
974
|
RichTextEditor,
|
|
994
975
|
SDKClient,
|
|
976
|
+
Script,
|
|
995
977
|
Shared,
|
|
996
978
|
Space,
|
|
997
979
|
Storage,
|
|
998
|
-
SystemPermissionDeniedError,
|
|
999
980
|
Tab,
|
|
1000
981
|
Toast,
|
|
1001
982
|
Utils,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -448,6 +448,10 @@ interface BatchButtonFeatureContext {
|
|
|
448
448
|
* 按钮构成
|
|
449
449
|
*/
|
|
450
450
|
type ButtonFeatureContext = WorkItemButtonFeatureContext | CreateButtonFeatureContext | BatchButtonFeatureContext | ScheduleUnitButtonFeatureContext;
|
|
451
|
+
/**
|
|
452
|
+
* 脚本构成
|
|
453
|
+
*/
|
|
454
|
+
type ScriptFeatureContext = ButtonFeatureContext;
|
|
451
455
|
/**
|
|
452
456
|
* 内嵌页面构成
|
|
453
457
|
* 一个单独的导航入口+内嵌页面
|
|
@@ -717,11 +721,6 @@ interface CustomFieldFeatureContext {
|
|
|
717
721
|
* 适用场景:详情页为节点流时,且当前拓展字段位于节点表单内,该字段才有数据
|
|
718
722
|
*/
|
|
719
723
|
nodeId?: string;
|
|
720
|
-
/**
|
|
721
|
-
* 拓展字段所在的业务场景
|
|
722
|
-
* 仅移动端 >= 7.57 版本可用
|
|
723
|
-
*/
|
|
724
|
-
bizScene?: 'workItemDetail' | 'createWorkItem' | 'nodeForm' | 'stateForm' | 'nodeDeliverable' | 'taskDeliverable';
|
|
725
724
|
}
|
|
726
725
|
type FieldNumberValue = number;
|
|
727
726
|
type FieldMultiTextValue = string;
|
|
@@ -1551,24 +1550,33 @@ interface ModalOpenOptions<Context> {
|
|
|
1551
1550
|
/**
|
|
1552
1551
|
* 是否全屏
|
|
1553
1552
|
* 全屏时 width / height 无效
|
|
1553
|
+
* 仅 UI 模式支持
|
|
1554
1554
|
*/
|
|
1555
1555
|
fullScreen?: boolean;
|
|
1556
1556
|
/**
|
|
1557
1557
|
* 是否允许通过点击遮罩来关闭对话框
|
|
1558
|
+
* 仅 UI 模式支持
|
|
1558
1559
|
*/
|
|
1559
1560
|
maskClosable?: boolean;
|
|
1560
1561
|
/**
|
|
1561
1562
|
* 传入 Modal 内的上下文数据
|
|
1562
|
-
* 注:传入的数据在 Modal 内是通过 sdk.
|
|
1563
|
+
* 注:传入的数据在 Modal 内是通过 sdk.Context.load().getCustomContext() 来获取的
|
|
1563
1564
|
*/
|
|
1564
1565
|
context?: Context;
|
|
1566
|
+
/**
|
|
1567
|
+
* 弹窗标题
|
|
1568
|
+
* 仅脚本模式支持
|
|
1569
|
+
*/
|
|
1570
|
+
title?: string;
|
|
1565
1571
|
/**
|
|
1566
1572
|
* 响应弹窗内调用的 sdk.containerModal.submit 方法
|
|
1573
|
+
* 仅 UI 模式支持
|
|
1567
1574
|
* @param params 弹窗内调用的 sdk.containerModal.submit 的方法时传入的自定义参数
|
|
1568
1575
|
*/
|
|
1569
1576
|
onSubmit?: (params: unknown) => void;
|
|
1570
1577
|
/**
|
|
1571
1578
|
* 弹窗被关闭后触发的回调
|
|
1579
|
+
* 仅 UI 模式支持
|
|
1572
1580
|
*/
|
|
1573
1581
|
afterClose?: () => void;
|
|
1574
1582
|
}
|
|
@@ -1600,11 +1608,11 @@ declare abstract class Modal extends BaseModel {
|
|
|
1600
1608
|
* only web 2.0
|
|
1601
1609
|
* 打开自定义内容的模态框
|
|
1602
1610
|
* @param options
|
|
1603
|
-
* @returns 当前打开 Modal 的关闭方法
|
|
1611
|
+
* @returns 当前打开 Modal 的关闭方法 (仅 UI 模式下返回)
|
|
1604
1612
|
*/
|
|
1605
1613
|
abstract open<Context>(options: ModalOpenOptions<Context>): Promise<{
|
|
1606
1614
|
close: () => void;
|
|
1607
|
-
}>;
|
|
1615
|
+
} | void>;
|
|
1608
1616
|
}
|
|
1609
1617
|
|
|
1610
1618
|
interface IRichTextEditorImageUploadComplete {
|
|
@@ -1817,61 +1825,6 @@ declare abstract class Utils extends BaseModel {
|
|
|
1817
1825
|
abstract overwriteThemeForSemiUI(): Promise<void>;
|
|
1818
1826
|
}
|
|
1819
1827
|
|
|
1820
|
-
/**
|
|
1821
|
-
* @internal
|
|
1822
|
-
*/
|
|
1823
|
-
declare class CustomError extends Error {
|
|
1824
|
-
originMessage: string;
|
|
1825
|
-
constructor(options: {
|
|
1826
|
-
message: string;
|
|
1827
|
-
originMessage: string;
|
|
1828
|
-
});
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
/**
|
|
1832
|
-
* @public
|
|
1833
|
-
* 系统设备权限未授权使用
|
|
1834
|
-
*/
|
|
1835
|
-
declare class SystemPermissionDeniedError extends CustomError {
|
|
1836
|
-
constructor(options: {
|
|
1837
|
-
originMessage: string;
|
|
1838
|
-
});
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
interface GeolocationCoordinates {
|
|
1842
|
-
/**
|
|
1843
|
-
* 经度
|
|
1844
|
-
*/
|
|
1845
|
-
longitude: number;
|
|
1846
|
-
/**
|
|
1847
|
-
* 纬度
|
|
1848
|
-
*/
|
|
1849
|
-
latitude: number;
|
|
1850
|
-
}
|
|
1851
|
-
interface GeolocationPosition {
|
|
1852
|
-
coords: GeolocationCoordinates;
|
|
1853
|
-
coordSystem: 'WGS-84' | 'GCJ-02';
|
|
1854
|
-
}
|
|
1855
|
-
/**
|
|
1856
|
-
* @mobile
|
|
1857
|
-
* @public
|
|
1858
|
-
* 地理位置
|
|
1859
|
-
*/
|
|
1860
|
-
declare abstract class Geolocation extends BaseModel {
|
|
1861
|
-
/**
|
|
1862
|
-
* @internal
|
|
1863
|
-
*/
|
|
1864
|
-
protected static [IMPL_KEY]: string;
|
|
1865
|
-
/**
|
|
1866
|
-
* @internal
|
|
1867
|
-
*/
|
|
1868
|
-
private static load;
|
|
1869
|
-
/**
|
|
1870
|
-
* 读取用户当前的地理位置
|
|
1871
|
-
*/
|
|
1872
|
-
abstract getCurrentPosition(callback: (error?: SystemPermissionDeniedError | Error, result?: GeolocationPosition) => void): Promise<void>;
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
1828
|
/**
|
|
1876
1829
|
* @public
|
|
1877
1830
|
* 插件容器模态框
|
|
@@ -2065,6 +2018,27 @@ declare abstract class Page extends BaseModel {
|
|
|
2065
2018
|
abstract getContext(): Promise<PageFeatureContext>;
|
|
2066
2019
|
}
|
|
2067
2020
|
|
|
2021
|
+
/**
|
|
2022
|
+
* @public
|
|
2023
|
+
* 脚本
|
|
2024
|
+
*/
|
|
2025
|
+
declare abstract class Script extends BaseModel {
|
|
2026
|
+
/**
|
|
2027
|
+
* @internal
|
|
2028
|
+
*/
|
|
2029
|
+
protected static [IMPL_KEY]: string;
|
|
2030
|
+
/**
|
|
2031
|
+
* only web 2.0
|
|
2032
|
+
* 获取当前脚本运行环境的上下文
|
|
2033
|
+
*/
|
|
2034
|
+
abstract getContext(): Promise<ScriptFeatureContext>;
|
|
2035
|
+
/**
|
|
2036
|
+
* only web 2.0
|
|
2037
|
+
* 主动停止脚本执行
|
|
2038
|
+
*/
|
|
2039
|
+
abstract end(): Promise<void>;
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2068
2042
|
/**
|
|
2069
2043
|
* @public
|
|
2070
2044
|
* 详情页
|
|
@@ -2296,6 +2270,11 @@ declare class SDKClient {
|
|
|
2296
2270
|
* only 2.0
|
|
2297
2271
|
*/
|
|
2298
2272
|
get button(): Button;
|
|
2273
|
+
/**
|
|
2274
|
+
* 脚本容器特有能力
|
|
2275
|
+
* only 2.0
|
|
2276
|
+
*/
|
|
2277
|
+
get script(): Script;
|
|
2299
2278
|
/**
|
|
2300
2279
|
* 配置点位容器特有能力
|
|
2301
2280
|
* only 2.0
|
|
@@ -2348,11 +2327,6 @@ declare class SDKClient {
|
|
|
2348
2327
|
* 提示
|
|
2349
2328
|
*/
|
|
2350
2329
|
get toast(): Toast;
|
|
2351
|
-
/**
|
|
2352
|
-
* 地理位置
|
|
2353
|
-
* only mobile 2.0
|
|
2354
|
-
*/
|
|
2355
|
-
get geolocation(): Geolocation;
|
|
2356
2330
|
/**
|
|
2357
2331
|
* 富文本编辑器
|
|
2358
2332
|
* only 2.0
|
|
@@ -2413,6 +2387,17 @@ declare class SDKClient {
|
|
|
2413
2387
|
config(options: SDKClientOptions): Promise<this>;
|
|
2414
2388
|
}
|
|
2415
2389
|
|
|
2390
|
+
/**
|
|
2391
|
+
* @internal
|
|
2392
|
+
*/
|
|
2393
|
+
declare class CustomError extends Error {
|
|
2394
|
+
originMessage: string;
|
|
2395
|
+
constructor(options: {
|
|
2396
|
+
message: string;
|
|
2397
|
+
originMessage: string;
|
|
2398
|
+
});
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2416
2401
|
/**
|
|
2417
2402
|
* @public
|
|
2418
2403
|
* 内部逻辑异常
|
|
@@ -2485,4 +2470,4 @@ declare class NotSupportedError extends CustomError {
|
|
|
2485
2470
|
* @packageDocumentation
|
|
2486
2471
|
*/
|
|
2487
2472
|
|
|
2488
|
-
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, ExCompoundFieldValueType, Field, FieldType, FieldValue, FlowMode,
|
|
2473
|
+
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, ExCompoundFieldValueType, Field, FieldType, FieldValue, FlowMode, I18nTitleConfig, IMPL_KEY, IPluginCustomBuildConfig, IRichTextEditorImageUploadComplete, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, LiteAppCompLayoutConfig, LiteAppCompPropBriefConfig, LiteAppCompPropFullConfig, LiteAppCompPropSelectConfig, LiteAppCompPropValueType, LiteAppComponentConfig, LiteAppComponentFeatureContext, LiteAppComponentPreset, LiteAppComponentProps, LiteAppPropBoolean, LiteAppPropDateRange, LiteAppPropDateWithTime, LiteAppPropField, LiteAppPropLayout, LiteAppPropMultiSelect, LiteAppPropNumber, LiteAppPropSelect, LiteAppPropTemplateType, LiteAppPropText, LiteAppPropView, LiteAppPropWorkItemInstance, LiteAppPropWorkItemListAfterFilter, LiteAppPropWorkItemListAfterSort, LiteAppPropWorkItemType, 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, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|