@lark-project/js-sdk 2.0.1-dev.21 → 2.0.2-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/dist/es/index.js +103 -6
- package/dist/lib/index.js +107 -6
- package/dist/types/index.d.ts +163 -2
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -51,7 +51,7 @@ _a = IMPL_KEY;
|
|
|
51
51
|
/**
|
|
52
52
|
* @internal
|
|
53
53
|
*/
|
|
54
|
-
Context[_a] = "
|
|
54
|
+
Context[_a] = "context";
|
|
55
55
|
|
|
56
56
|
// src/model/Space.ts
|
|
57
57
|
var _a2;
|
|
@@ -306,7 +306,7 @@ _a15 = IMPL_KEY;
|
|
|
306
306
|
/**
|
|
307
307
|
* @internal
|
|
308
308
|
*/
|
|
309
|
-
ContainerModal[_a15] = "
|
|
309
|
+
ContainerModal[_a15] = "containerModal";
|
|
310
310
|
|
|
311
311
|
// src/features/Intercept.ts
|
|
312
312
|
var _a16;
|
|
@@ -322,7 +322,7 @@ _a16 = IMPL_KEY;
|
|
|
322
322
|
/**
|
|
323
323
|
* @internal
|
|
324
324
|
*/
|
|
325
|
-
Intercept[_a16] = "
|
|
325
|
+
Intercept[_a16] = "intercept";
|
|
326
326
|
|
|
327
327
|
// src/features/Control.ts
|
|
328
328
|
var _a17;
|
|
@@ -338,7 +338,7 @@ _a17 = IMPL_KEY;
|
|
|
338
338
|
/**
|
|
339
339
|
* @internal
|
|
340
340
|
*/
|
|
341
|
-
Control[_a17] = "
|
|
341
|
+
Control[_a17] = "control";
|
|
342
342
|
|
|
343
343
|
// src/features/Button.ts
|
|
344
344
|
var _a18;
|
|
@@ -354,7 +354,71 @@ _a18 = IMPL_KEY;
|
|
|
354
354
|
/**
|
|
355
355
|
* @internal
|
|
356
356
|
*/
|
|
357
|
-
Button[_a18] = "
|
|
357
|
+
Button[_a18] = "button";
|
|
358
|
+
|
|
359
|
+
// src/features/Configuration.ts
|
|
360
|
+
var _a19;
|
|
361
|
+
var Configuration = class extends BaseModel {
|
|
362
|
+
/**
|
|
363
|
+
* 加载数据
|
|
364
|
+
*/
|
|
365
|
+
static load() {
|
|
366
|
+
throw new Error("not implemented");
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
_a19 = IMPL_KEY;
|
|
370
|
+
/**
|
|
371
|
+
* @internal
|
|
372
|
+
*/
|
|
373
|
+
Configuration[_a19] = "configuration";
|
|
374
|
+
|
|
375
|
+
// src/features/Page.ts
|
|
376
|
+
var _a20;
|
|
377
|
+
var Page = class extends BaseModel {
|
|
378
|
+
/**
|
|
379
|
+
* 加载数据
|
|
380
|
+
*/
|
|
381
|
+
static load() {
|
|
382
|
+
throw new Error("not implemented");
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
_a20 = IMPL_KEY;
|
|
386
|
+
/**
|
|
387
|
+
* @internal
|
|
388
|
+
*/
|
|
389
|
+
Page[_a20] = "page";
|
|
390
|
+
|
|
391
|
+
// src/features/Tab.ts
|
|
392
|
+
var _a21;
|
|
393
|
+
var Tab = class extends BaseModel {
|
|
394
|
+
/**
|
|
395
|
+
* 加载数据
|
|
396
|
+
*/
|
|
397
|
+
static load() {
|
|
398
|
+
throw new Error("not implemented");
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
_a21 = IMPL_KEY;
|
|
402
|
+
/**
|
|
403
|
+
* @internal
|
|
404
|
+
*/
|
|
405
|
+
Tab[_a21] = "tab";
|
|
406
|
+
|
|
407
|
+
// src/features/View.ts
|
|
408
|
+
var _a22;
|
|
409
|
+
var View = class extends BaseModel {
|
|
410
|
+
/**
|
|
411
|
+
* 加载数据
|
|
412
|
+
*/
|
|
413
|
+
static load() {
|
|
414
|
+
throw new Error("not implemented");
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
_a22 = IMPL_KEY;
|
|
418
|
+
/**
|
|
419
|
+
* @internal
|
|
420
|
+
*/
|
|
421
|
+
View[_a22] = "view";
|
|
358
422
|
|
|
359
423
|
// src/client.ts
|
|
360
424
|
function getImplClass(decl, impls) {
|
|
@@ -392,6 +456,34 @@ var _SDKClient = class {
|
|
|
392
456
|
get button() {
|
|
393
457
|
return getImplValue(Button, this._meegoBizHub);
|
|
394
458
|
}
|
|
459
|
+
/**
|
|
460
|
+
* 配置点位容器特有能力
|
|
461
|
+
* only 2.0
|
|
462
|
+
*/
|
|
463
|
+
get configuration() {
|
|
464
|
+
return getImplValue(Configuration, this._meegoBizHub);
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* 导航点位容器特有能力
|
|
468
|
+
* only 2.0
|
|
469
|
+
*/
|
|
470
|
+
get page() {
|
|
471
|
+
return getImplValue(Page, this._meegoBizHub);
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* tab 点位容器特有能力
|
|
475
|
+
* only 2.0
|
|
476
|
+
*/
|
|
477
|
+
get tab() {
|
|
478
|
+
return getImplValue(Tab, this._meegoBizHub);
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* 视图点位容器特有能力
|
|
482
|
+
* only 2.0
|
|
483
|
+
*/
|
|
484
|
+
get view() {
|
|
485
|
+
return getImplValue(View, this._meegoBizHub);
|
|
486
|
+
}
|
|
395
487
|
/**
|
|
396
488
|
* 应用导航
|
|
397
489
|
*/
|
|
@@ -505,7 +597,7 @@ var SDKClient = _SDKClient;
|
|
|
505
597
|
/**
|
|
506
598
|
* SDK 版本号
|
|
507
599
|
*/
|
|
508
|
-
SDKClient.version = "2.0.
|
|
600
|
+
SDKClient.version = "2.0.2-alpha.0";
|
|
509
601
|
|
|
510
602
|
// src/types/biz.ts
|
|
511
603
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -515,6 +607,7 @@ var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
|
515
607
|
})(AttributeType || {});
|
|
516
608
|
var FieldType = /* @__PURE__ */ ((FieldType2) => {
|
|
517
609
|
FieldType2["unknown"] = "unknown";
|
|
610
|
+
FieldType2["control"] = "control";
|
|
518
611
|
FieldType2["text"] = "text";
|
|
519
612
|
FieldType2["richText"] = "multi_text";
|
|
520
613
|
FieldType2["select"] = "select";
|
|
@@ -658,6 +751,7 @@ export {
|
|
|
658
751
|
Button,
|
|
659
752
|
ButtonScene,
|
|
660
753
|
Clipboard,
|
|
754
|
+
Configuration,
|
|
661
755
|
ContainerModal,
|
|
662
756
|
Context,
|
|
663
757
|
Control,
|
|
@@ -677,12 +771,15 @@ export {
|
|
|
677
771
|
NotFoundError,
|
|
678
772
|
NotSupportedError,
|
|
679
773
|
OutOfLimitError,
|
|
774
|
+
Page,
|
|
680
775
|
RichTextEditor,
|
|
681
776
|
SDKClient,
|
|
682
777
|
Space,
|
|
683
778
|
Storage,
|
|
779
|
+
Tab,
|
|
684
780
|
Toast,
|
|
685
781
|
Utils,
|
|
782
|
+
View,
|
|
686
783
|
WorkItem,
|
|
687
784
|
WorkItemFinder,
|
|
688
785
|
WorkObject,
|
package/dist/lib/index.js
CHANGED
|
@@ -53,6 +53,7 @@ __export(src_exports, {
|
|
|
53
53
|
Button: () => Button,
|
|
54
54
|
ButtonScene: () => ButtonScene,
|
|
55
55
|
Clipboard: () => Clipboard,
|
|
56
|
+
Configuration: () => Configuration,
|
|
56
57
|
ContainerModal: () => ContainerModal,
|
|
57
58
|
Context: () => Context,
|
|
58
59
|
Control: () => Control,
|
|
@@ -72,12 +73,15 @@ __export(src_exports, {
|
|
|
72
73
|
NotFoundError: () => NotFoundError,
|
|
73
74
|
NotSupportedError: () => NotSupportedError,
|
|
74
75
|
OutOfLimitError: () => OutOfLimitError,
|
|
76
|
+
Page: () => Page,
|
|
75
77
|
RichTextEditor: () => RichTextEditor,
|
|
76
78
|
SDKClient: () => SDKClient,
|
|
77
79
|
Space: () => Space,
|
|
78
80
|
Storage: () => Storage,
|
|
81
|
+
Tab: () => Tab,
|
|
79
82
|
Toast: () => Toast,
|
|
80
83
|
Utils: () => Utils,
|
|
84
|
+
View: () => View,
|
|
81
85
|
WorkItem: () => WorkItem,
|
|
82
86
|
WorkItemFinder: () => WorkItemFinder,
|
|
83
87
|
WorkObject: () => WorkObject,
|
|
@@ -108,7 +112,7 @@ _a = IMPL_KEY;
|
|
|
108
112
|
/**
|
|
109
113
|
* @internal
|
|
110
114
|
*/
|
|
111
|
-
Context[_a] = "
|
|
115
|
+
Context[_a] = "context";
|
|
112
116
|
|
|
113
117
|
// src/model/Space.ts
|
|
114
118
|
var _a2;
|
|
@@ -363,7 +367,7 @@ _a15 = IMPL_KEY;
|
|
|
363
367
|
/**
|
|
364
368
|
* @internal
|
|
365
369
|
*/
|
|
366
|
-
ContainerModal[_a15] = "
|
|
370
|
+
ContainerModal[_a15] = "containerModal";
|
|
367
371
|
|
|
368
372
|
// src/features/Intercept.ts
|
|
369
373
|
var _a16;
|
|
@@ -379,7 +383,7 @@ _a16 = IMPL_KEY;
|
|
|
379
383
|
/**
|
|
380
384
|
* @internal
|
|
381
385
|
*/
|
|
382
|
-
Intercept[_a16] = "
|
|
386
|
+
Intercept[_a16] = "intercept";
|
|
383
387
|
|
|
384
388
|
// src/features/Control.ts
|
|
385
389
|
var _a17;
|
|
@@ -395,7 +399,7 @@ _a17 = IMPL_KEY;
|
|
|
395
399
|
/**
|
|
396
400
|
* @internal
|
|
397
401
|
*/
|
|
398
|
-
Control[_a17] = "
|
|
402
|
+
Control[_a17] = "control";
|
|
399
403
|
|
|
400
404
|
// src/features/Button.ts
|
|
401
405
|
var _a18;
|
|
@@ -411,7 +415,71 @@ _a18 = IMPL_KEY;
|
|
|
411
415
|
/**
|
|
412
416
|
* @internal
|
|
413
417
|
*/
|
|
414
|
-
Button[_a18] = "
|
|
418
|
+
Button[_a18] = "button";
|
|
419
|
+
|
|
420
|
+
// src/features/Configuration.ts
|
|
421
|
+
var _a19;
|
|
422
|
+
var Configuration = class extends BaseModel {
|
|
423
|
+
/**
|
|
424
|
+
* 加载数据
|
|
425
|
+
*/
|
|
426
|
+
static load() {
|
|
427
|
+
throw new Error("not implemented");
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
_a19 = IMPL_KEY;
|
|
431
|
+
/**
|
|
432
|
+
* @internal
|
|
433
|
+
*/
|
|
434
|
+
Configuration[_a19] = "configuration";
|
|
435
|
+
|
|
436
|
+
// src/features/Page.ts
|
|
437
|
+
var _a20;
|
|
438
|
+
var Page = class extends BaseModel {
|
|
439
|
+
/**
|
|
440
|
+
* 加载数据
|
|
441
|
+
*/
|
|
442
|
+
static load() {
|
|
443
|
+
throw new Error("not implemented");
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
_a20 = IMPL_KEY;
|
|
447
|
+
/**
|
|
448
|
+
* @internal
|
|
449
|
+
*/
|
|
450
|
+
Page[_a20] = "page";
|
|
451
|
+
|
|
452
|
+
// src/features/Tab.ts
|
|
453
|
+
var _a21;
|
|
454
|
+
var Tab = class extends BaseModel {
|
|
455
|
+
/**
|
|
456
|
+
* 加载数据
|
|
457
|
+
*/
|
|
458
|
+
static load() {
|
|
459
|
+
throw new Error("not implemented");
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
_a21 = IMPL_KEY;
|
|
463
|
+
/**
|
|
464
|
+
* @internal
|
|
465
|
+
*/
|
|
466
|
+
Tab[_a21] = "tab";
|
|
467
|
+
|
|
468
|
+
// src/features/View.ts
|
|
469
|
+
var _a22;
|
|
470
|
+
var View = class extends BaseModel {
|
|
471
|
+
/**
|
|
472
|
+
* 加载数据
|
|
473
|
+
*/
|
|
474
|
+
static load() {
|
|
475
|
+
throw new Error("not implemented");
|
|
476
|
+
}
|
|
477
|
+
};
|
|
478
|
+
_a22 = IMPL_KEY;
|
|
479
|
+
/**
|
|
480
|
+
* @internal
|
|
481
|
+
*/
|
|
482
|
+
View[_a22] = "view";
|
|
415
483
|
|
|
416
484
|
// src/client.ts
|
|
417
485
|
function getImplClass(decl, impls) {
|
|
@@ -449,6 +517,34 @@ var _SDKClient = class {
|
|
|
449
517
|
get button() {
|
|
450
518
|
return getImplValue(Button, this._meegoBizHub);
|
|
451
519
|
}
|
|
520
|
+
/**
|
|
521
|
+
* 配置点位容器特有能力
|
|
522
|
+
* only 2.0
|
|
523
|
+
*/
|
|
524
|
+
get configuration() {
|
|
525
|
+
return getImplValue(Configuration, this._meegoBizHub);
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* 导航点位容器特有能力
|
|
529
|
+
* only 2.0
|
|
530
|
+
*/
|
|
531
|
+
get page() {
|
|
532
|
+
return getImplValue(Page, this._meegoBizHub);
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* tab 点位容器特有能力
|
|
536
|
+
* only 2.0
|
|
537
|
+
*/
|
|
538
|
+
get tab() {
|
|
539
|
+
return getImplValue(Tab, this._meegoBizHub);
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* 视图点位容器特有能力
|
|
543
|
+
* only 2.0
|
|
544
|
+
*/
|
|
545
|
+
get view() {
|
|
546
|
+
return getImplValue(View, this._meegoBizHub);
|
|
547
|
+
}
|
|
452
548
|
/**
|
|
453
549
|
* 应用导航
|
|
454
550
|
*/
|
|
@@ -562,7 +658,7 @@ var SDKClient = _SDKClient;
|
|
|
562
658
|
/**
|
|
563
659
|
* SDK 版本号
|
|
564
660
|
*/
|
|
565
|
-
SDKClient.version = "2.0.
|
|
661
|
+
SDKClient.version = "2.0.2-alpha.0";
|
|
566
662
|
|
|
567
663
|
// src/types/biz.ts
|
|
568
664
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -572,6 +668,7 @@ var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
|
572
668
|
})(AttributeType || {});
|
|
573
669
|
var FieldType = /* @__PURE__ */ ((FieldType2) => {
|
|
574
670
|
FieldType2["unknown"] = "unknown";
|
|
671
|
+
FieldType2["control"] = "control";
|
|
575
672
|
FieldType2["text"] = "text";
|
|
576
673
|
FieldType2["richText"] = "multi_text";
|
|
577
674
|
FieldType2["select"] = "select";
|
|
@@ -716,6 +813,7 @@ var src_default = SDKClient;
|
|
|
716
813
|
Button,
|
|
717
814
|
ButtonScene,
|
|
718
815
|
Clipboard,
|
|
816
|
+
Configuration,
|
|
719
817
|
ContainerModal,
|
|
720
818
|
Context,
|
|
721
819
|
Control,
|
|
@@ -735,12 +833,15 @@ var src_default = SDKClient;
|
|
|
735
833
|
NotFoundError,
|
|
736
834
|
NotSupportedError,
|
|
737
835
|
OutOfLimitError,
|
|
836
|
+
Page,
|
|
738
837
|
RichTextEditor,
|
|
739
838
|
SDKClient,
|
|
740
839
|
Space,
|
|
741
840
|
Storage,
|
|
841
|
+
Tab,
|
|
742
842
|
Toast,
|
|
743
843
|
Utils,
|
|
844
|
+
View,
|
|
744
845
|
WorkItem,
|
|
745
846
|
WorkItemFinder,
|
|
746
847
|
WorkObject
|
package/dist/types/index.d.ts
CHANGED
|
@@ -40,6 +40,11 @@ declare enum FieldType {
|
|
|
40
40
|
* 未知字段类型
|
|
41
41
|
*/
|
|
42
42
|
unknown = "unknown",
|
|
43
|
+
/**
|
|
44
|
+
* 平台控件
|
|
45
|
+
* e.g. 角色与人员
|
|
46
|
+
*/
|
|
47
|
+
control = "control",
|
|
43
48
|
/**
|
|
44
49
|
* 文本(单行、多行)
|
|
45
50
|
*
|
|
@@ -358,6 +363,16 @@ interface CreateButtonFeatureContext {
|
|
|
358
363
|
* 空间标识
|
|
359
364
|
*/
|
|
360
365
|
spaceId: string;
|
|
366
|
+
/**
|
|
367
|
+
* 工作项类型标识
|
|
368
|
+
* 适用场景:新建按钮出现在视图页时,该字段才有数据
|
|
369
|
+
*/
|
|
370
|
+
workObjectId?: string;
|
|
371
|
+
/**
|
|
372
|
+
* 视图标识
|
|
373
|
+
* 适用场景:新建按钮出现在视图页时,该字段才有数据
|
|
374
|
+
*/
|
|
375
|
+
viewId?: string;
|
|
361
376
|
}
|
|
362
377
|
/**
|
|
363
378
|
* 按钮构成
|
|
@@ -373,6 +388,15 @@ interface PageFeatureContext {
|
|
|
373
388
|
*/
|
|
374
389
|
spaceId: string;
|
|
375
390
|
}
|
|
391
|
+
/**
|
|
392
|
+
* 配置页面构成
|
|
393
|
+
*/
|
|
394
|
+
interface ConfigurationFeatureContext {
|
|
395
|
+
/**
|
|
396
|
+
* 空间标识
|
|
397
|
+
*/
|
|
398
|
+
spaceId: string;
|
|
399
|
+
}
|
|
376
400
|
/**
|
|
377
401
|
* 详情页 Tab 构成
|
|
378
402
|
* 工作项详情页中的 Tab 页面
|
|
@@ -388,6 +412,7 @@ interface TabFeatureContext {
|
|
|
388
412
|
workObjectId: string;
|
|
389
413
|
/**
|
|
390
414
|
* 工作项实例唯一标识
|
|
415
|
+
* 适用场景:仅在工作项实例场景下,该字段才有数据,在工作项配置侧该字段为空
|
|
391
416
|
*/
|
|
392
417
|
workItemId: number;
|
|
393
418
|
}
|
|
@@ -432,6 +457,11 @@ interface ControlFeatureContext {
|
|
|
432
457
|
* 详情页可能为空,不推荐强依赖 UUID 读取自有数据
|
|
433
458
|
*/
|
|
434
459
|
UUID?: string;
|
|
460
|
+
/**
|
|
461
|
+
* 当前节点标识
|
|
462
|
+
* 适用场景:详情页为节点流时,且当前控件位于节点表单内,该字段才有数据
|
|
463
|
+
*/
|
|
464
|
+
nodeId?: string;
|
|
435
465
|
}
|
|
436
466
|
/**
|
|
437
467
|
* 拦截事件类型
|
|
@@ -497,6 +527,7 @@ interface InterceptFeatureContext<T> {
|
|
|
497
527
|
* @internal
|
|
498
528
|
*/
|
|
499
529
|
type unwatch = () => void;
|
|
530
|
+
type Off = unwatch;
|
|
500
531
|
|
|
501
532
|
type IIgnore = string | RegExp | ((value: string) => boolean);
|
|
502
533
|
interface IPluginCustomBuildConfig {
|
|
@@ -1225,6 +1256,7 @@ declare abstract class WorkItemFinder extends BaseModel {
|
|
|
1225
1256
|
*/
|
|
1226
1257
|
private static load;
|
|
1227
1258
|
/**
|
|
1259
|
+
* only web 2.0
|
|
1228
1260
|
* 打开工作项实例筛选条件面板
|
|
1229
1261
|
* @param options
|
|
1230
1262
|
* @param callback
|
|
@@ -1292,6 +1324,7 @@ declare abstract class ContainerModal extends BaseModel {
|
|
|
1292
1324
|
*/
|
|
1293
1325
|
abstract submit?: <Params, Result>(params: Params) => Promise<Result>;
|
|
1294
1326
|
/**
|
|
1327
|
+
* mobile version ≥ 7.22.0
|
|
1295
1328
|
* 关闭插件当前激活的容器模态框
|
|
1296
1329
|
*/
|
|
1297
1330
|
abstract close(): Promise<void>;
|
|
@@ -1311,6 +1344,7 @@ declare abstract class Intercept extends BaseModel {
|
|
|
1311
1344
|
*/
|
|
1312
1345
|
static load(): Promise<Intercept>;
|
|
1313
1346
|
/**
|
|
1347
|
+
* mobile version ≥ 7.22.0
|
|
1314
1348
|
* 获取当前触发的拦截事件上下文
|
|
1315
1349
|
*/
|
|
1316
1350
|
abstract getContext<T = any>(): Promise<InterceptFeatureContext<T>>;
|
|
@@ -1330,9 +1364,39 @@ declare abstract class Control extends BaseModel {
|
|
|
1330
1364
|
*/
|
|
1331
1365
|
static load(): Promise<Control>;
|
|
1332
1366
|
/**
|
|
1333
|
-
*
|
|
1367
|
+
* mobile version ≥ 7.25.0
|
|
1368
|
+
* 获取当前控件所在的上下文
|
|
1334
1369
|
*/
|
|
1335
1370
|
abstract getContext(): Promise<ControlFeatureContext>;
|
|
1371
|
+
/**
|
|
1372
|
+
* 获取新建工作项表单项的值
|
|
1373
|
+
* mobile version ≥ 7.29.0
|
|
1374
|
+
* @param keys 需要获取的工作项属性 / 字段 ID 列表,一次限制读取 10 个 keys
|
|
1375
|
+
* @param keys.key 工作项属性 / 字段 ID
|
|
1376
|
+
* @param keys.type 类型
|
|
1377
|
+
* 工作项属性 name 为 FieldType.text,工作项属性 template 为 FieldType.number
|
|
1378
|
+
* 控件 role_owners 为 FieldType.control
|
|
1379
|
+
*/
|
|
1380
|
+
abstract getCreateWorkItemFormItemValues(keys: Array<{
|
|
1381
|
+
key: string | AttributeType;
|
|
1382
|
+
type: Exclude<FieldType, FieldType.richText | FieldType.singleSignal | FieldType.multiSignal | FieldType.singleVoting | FieldType.multiVoting>;
|
|
1383
|
+
}>): Promise<Record<string | AttributeType, any>>;
|
|
1384
|
+
/**
|
|
1385
|
+
* only web 2.0
|
|
1386
|
+
* 监听新建工作项表单项值变化
|
|
1387
|
+
* @param options.watchKeys 需要监听的工作项属性 / 字段 ID 列表,一次限制读取 10 个 keys
|
|
1388
|
+
* @param options.watchKeys.key 工作项属性 / 字段 ID
|
|
1389
|
+
* @param options.watchKeys.type 类型
|
|
1390
|
+
* 工作项属性 name 为 FieldType.text,工作项属性 template 为 FieldType.number
|
|
1391
|
+
* 控件 role_owners 为 FieldType.control
|
|
1392
|
+
* @param callback 当监听值发生变化时触发,changedKeys 为变化的 keys
|
|
1393
|
+
*/
|
|
1394
|
+
abstract onCreateWorkItemFormValueChanged(options: {
|
|
1395
|
+
watchKeys: Array<{
|
|
1396
|
+
key: string | AttributeType;
|
|
1397
|
+
type: Exclude<FieldType, FieldType.richText | FieldType.singleSignal | FieldType.multiSignal | FieldType.singleVoting | FieldType.multiVoting>;
|
|
1398
|
+
}>;
|
|
1399
|
+
}, callback: (changedKeys: Array<string | AttributeType>) => void): Off;
|
|
1336
1400
|
}
|
|
1337
1401
|
|
|
1338
1402
|
/**
|
|
@@ -1349,11 +1413,88 @@ declare abstract class Button extends BaseModel {
|
|
|
1349
1413
|
*/
|
|
1350
1414
|
static load(): Promise<Button>;
|
|
1351
1415
|
/**
|
|
1416
|
+
* mobile version ≥ 7.24.0
|
|
1352
1417
|
* 获取当前按钮的上下文
|
|
1353
1418
|
*/
|
|
1354
1419
|
abstract getContext(): Promise<ButtonFeatureContext>;
|
|
1355
1420
|
}
|
|
1356
1421
|
|
|
1422
|
+
/**
|
|
1423
|
+
* @public
|
|
1424
|
+
* 控件
|
|
1425
|
+
*/
|
|
1426
|
+
declare abstract class Configuration extends BaseModel {
|
|
1427
|
+
/**
|
|
1428
|
+
* @internal
|
|
1429
|
+
*/
|
|
1430
|
+
protected static [IMPL_KEY]: string;
|
|
1431
|
+
/**
|
|
1432
|
+
* 加载数据
|
|
1433
|
+
*/
|
|
1434
|
+
static load(): Promise<Configuration>;
|
|
1435
|
+
/**
|
|
1436
|
+
* 获取当前配置点位的上下文
|
|
1437
|
+
*/
|
|
1438
|
+
abstract getContext(): Promise<ConfigurationFeatureContext>;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* @public
|
|
1443
|
+
* 控件
|
|
1444
|
+
*/
|
|
1445
|
+
declare abstract class Page extends BaseModel {
|
|
1446
|
+
/**
|
|
1447
|
+
* @internal
|
|
1448
|
+
*/
|
|
1449
|
+
protected static [IMPL_KEY]: string;
|
|
1450
|
+
/**
|
|
1451
|
+
* 加载数据
|
|
1452
|
+
*/
|
|
1453
|
+
static load(): Promise<Page>;
|
|
1454
|
+
/**
|
|
1455
|
+
* 获取当前内嵌页面的上下文
|
|
1456
|
+
*/
|
|
1457
|
+
abstract getContext(): Promise<PageFeatureContext>;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* @public
|
|
1462
|
+
* 控件
|
|
1463
|
+
*/
|
|
1464
|
+
declare abstract class Tab extends BaseModel {
|
|
1465
|
+
/**
|
|
1466
|
+
* @internal
|
|
1467
|
+
*/
|
|
1468
|
+
protected static [IMPL_KEY]: string;
|
|
1469
|
+
/**
|
|
1470
|
+
* 加载数据
|
|
1471
|
+
*/
|
|
1472
|
+
static load(): Promise<Tab>;
|
|
1473
|
+
/**
|
|
1474
|
+
* 获取当前详情页 Tab 的上下文
|
|
1475
|
+
*/
|
|
1476
|
+
abstract getContext(): Promise<TabFeatureContext>;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
/**
|
|
1480
|
+
* @public
|
|
1481
|
+
* 控件
|
|
1482
|
+
*/
|
|
1483
|
+
declare abstract class View extends BaseModel {
|
|
1484
|
+
/**
|
|
1485
|
+
* @internal
|
|
1486
|
+
*/
|
|
1487
|
+
protected static [IMPL_KEY]: string;
|
|
1488
|
+
/**
|
|
1489
|
+
* 加载数据
|
|
1490
|
+
*/
|
|
1491
|
+
static load(): Promise<View>;
|
|
1492
|
+
/**
|
|
1493
|
+
* 获取当前视图的上下文
|
|
1494
|
+
*/
|
|
1495
|
+
abstract getContext(): Promise<ViewFeatureContext>;
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1357
1498
|
/**
|
|
1358
1499
|
* @public
|
|
1359
1500
|
* SDKClient 的配置项
|
|
@@ -1391,6 +1532,26 @@ declare class SDKClient {
|
|
|
1391
1532
|
* only 2.0
|
|
1392
1533
|
*/
|
|
1393
1534
|
get button(): Button;
|
|
1535
|
+
/**
|
|
1536
|
+
* 配置点位容器特有能力
|
|
1537
|
+
* only 2.0
|
|
1538
|
+
*/
|
|
1539
|
+
get configuration(): Configuration;
|
|
1540
|
+
/**
|
|
1541
|
+
* 导航点位容器特有能力
|
|
1542
|
+
* only 2.0
|
|
1543
|
+
*/
|
|
1544
|
+
get page(): Page;
|
|
1545
|
+
/**
|
|
1546
|
+
* tab 点位容器特有能力
|
|
1547
|
+
* only 2.0
|
|
1548
|
+
*/
|
|
1549
|
+
get tab(): Tab;
|
|
1550
|
+
/**
|
|
1551
|
+
* 视图点位容器特有能力
|
|
1552
|
+
* only 2.0
|
|
1553
|
+
*/
|
|
1554
|
+
get view(): View;
|
|
1394
1555
|
/**
|
|
1395
1556
|
* 应用导航
|
|
1396
1557
|
*/
|
|
@@ -1542,4 +1703,4 @@ declare class NotSupportedError extends CustomError {
|
|
|
1542
1703
|
* @packageDocumentation
|
|
1543
1704
|
*/
|
|
1544
1705
|
|
|
1545
|
-
export { ActionSheet, ActionSheetOptions, AttributeType, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, ContainerModal, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, Field, FieldType, FlowMode, IMPL_KEY, IPluginCustomBuildConfig, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, MEEGO_BIZ_HUB, Modal, ModalConfirmOptions, Navigation, NoAuthError, NodeStatus, NotFoundError, NotSupportedError, OutOfLimitError, PageFeatureContext, RichTextEditor, RichTextEditorContent, RichTextEditorOptions, Role, RoleOwners, SDKClient, SDKClientOptions, Space, Storage, TabFeatureContext, Toast, ToastOptions, User, Utils, ViewFeatureContext, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|
|
1706
|
+
export { ActionSheet, ActionSheetOptions, AttributeType, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, Configuration, ConfigurationFeatureContext, ContainerModal, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, Field, FieldType, FlowMode, IMPL_KEY, IPluginCustomBuildConfig, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, MEEGO_BIZ_HUB, Modal, ModalConfirmOptions, Navigation, NoAuthError, NodeStatus, NotFoundError, NotSupportedError, Off, OutOfLimitError, Page, PageFeatureContext, RichTextEditor, RichTextEditorContent, RichTextEditorOptions, Role, RoleOwners, SDKClient, SDKClientOptions, Space, Storage, Tab, TabFeatureContext, Toast, ToastOptions, User, Utils, View, ViewFeatureContext, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|