@lark-project/js-sdk 2.1.0 → 2.1.1-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/CHANGELOG.md +4 -1
- package/dist/es/index.js +59 -37
- package/dist/lib/index.js +61 -37
- package/dist/types/index.d.ts +42 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -302,8 +302,18 @@ _a15 = IMPL_KEY;
|
|
|
302
302
|
*/
|
|
303
303
|
Utils[_a15] = "utils";
|
|
304
304
|
|
|
305
|
-
// src/
|
|
305
|
+
// src/biz/Event.ts
|
|
306
306
|
var _a16;
|
|
307
|
+
var Event = class extends BaseModel {
|
|
308
|
+
};
|
|
309
|
+
_a16 = IMPL_KEY;
|
|
310
|
+
/**
|
|
311
|
+
* @internal
|
|
312
|
+
*/
|
|
313
|
+
Event[_a16] = "event";
|
|
314
|
+
|
|
315
|
+
// src/features/ContainerModal.ts
|
|
316
|
+
var _a17;
|
|
307
317
|
var ContainerModal = class extends BaseModel {
|
|
308
318
|
/**
|
|
309
319
|
* 加载数据
|
|
@@ -312,14 +322,14 @@ var ContainerModal = class extends BaseModel {
|
|
|
312
322
|
throw new Error("not implemented");
|
|
313
323
|
}
|
|
314
324
|
};
|
|
315
|
-
|
|
325
|
+
_a17 = IMPL_KEY;
|
|
316
326
|
/**
|
|
317
327
|
* @internal
|
|
318
328
|
*/
|
|
319
|
-
ContainerModal[
|
|
329
|
+
ContainerModal[_a17] = "containerModal";
|
|
320
330
|
|
|
321
331
|
// src/features/Intercept.ts
|
|
322
|
-
var
|
|
332
|
+
var _a18;
|
|
323
333
|
var Intercept = class extends BaseModel {
|
|
324
334
|
/**
|
|
325
335
|
* 加载数据
|
|
@@ -328,14 +338,14 @@ var Intercept = class extends BaseModel {
|
|
|
328
338
|
throw new Error("not implemented");
|
|
329
339
|
}
|
|
330
340
|
};
|
|
331
|
-
|
|
341
|
+
_a18 = IMPL_KEY;
|
|
332
342
|
/**
|
|
333
343
|
* @internal
|
|
334
344
|
*/
|
|
335
|
-
Intercept[
|
|
345
|
+
Intercept[_a18] = "intercept";
|
|
336
346
|
|
|
337
347
|
// src/features/Control.ts
|
|
338
|
-
var
|
|
348
|
+
var _a19;
|
|
339
349
|
var Control = class extends BaseModel {
|
|
340
350
|
/**
|
|
341
351
|
* 加载数据
|
|
@@ -344,14 +354,14 @@ var Control = class extends BaseModel {
|
|
|
344
354
|
throw new Error("not implemented");
|
|
345
355
|
}
|
|
346
356
|
};
|
|
347
|
-
|
|
357
|
+
_a19 = IMPL_KEY;
|
|
348
358
|
/**
|
|
349
359
|
* @internal
|
|
350
360
|
*/
|
|
351
|
-
Control[
|
|
361
|
+
Control[_a19] = "control";
|
|
352
362
|
|
|
353
363
|
// src/features/Button.ts
|
|
354
|
-
var
|
|
364
|
+
var _a20;
|
|
355
365
|
var Button = class extends BaseModel {
|
|
356
366
|
/**
|
|
357
367
|
* 加载数据
|
|
@@ -360,14 +370,14 @@ var Button = class extends BaseModel {
|
|
|
360
370
|
throw new Error("not implemented");
|
|
361
371
|
}
|
|
362
372
|
};
|
|
363
|
-
|
|
373
|
+
_a20 = IMPL_KEY;
|
|
364
374
|
/**
|
|
365
375
|
* @internal
|
|
366
376
|
*/
|
|
367
|
-
Button[
|
|
377
|
+
Button[_a20] = "button";
|
|
368
378
|
|
|
369
379
|
// src/features/Configuration.ts
|
|
370
|
-
var
|
|
380
|
+
var _a21;
|
|
371
381
|
var Configuration = class extends BaseModel {
|
|
372
382
|
/**
|
|
373
383
|
* 加载数据
|
|
@@ -376,14 +386,14 @@ var Configuration = class extends BaseModel {
|
|
|
376
386
|
throw new Error("not implemented");
|
|
377
387
|
}
|
|
378
388
|
};
|
|
379
|
-
|
|
389
|
+
_a21 = IMPL_KEY;
|
|
380
390
|
/**
|
|
381
391
|
* @internal
|
|
382
392
|
*/
|
|
383
|
-
Configuration[
|
|
393
|
+
Configuration[_a21] = "configuration";
|
|
384
394
|
|
|
385
395
|
// src/features/Page.ts
|
|
386
|
-
var
|
|
396
|
+
var _a22;
|
|
387
397
|
var Page = class extends BaseModel {
|
|
388
398
|
/**
|
|
389
399
|
* 加载数据
|
|
@@ -392,24 +402,24 @@ var Page = class extends BaseModel {
|
|
|
392
402
|
throw new Error("not implemented");
|
|
393
403
|
}
|
|
394
404
|
};
|
|
395
|
-
|
|
405
|
+
_a22 = IMPL_KEY;
|
|
396
406
|
/**
|
|
397
407
|
* @internal
|
|
398
408
|
*/
|
|
399
|
-
Page[
|
|
409
|
+
Page[_a22] = "page";
|
|
400
410
|
|
|
401
411
|
// src/features/Script.ts
|
|
402
|
-
var
|
|
412
|
+
var _a23;
|
|
403
413
|
var Script = class extends BaseModel {
|
|
404
414
|
};
|
|
405
|
-
|
|
415
|
+
_a23 = IMPL_KEY;
|
|
406
416
|
/**
|
|
407
417
|
* @internal
|
|
408
418
|
*/
|
|
409
|
-
Script[
|
|
419
|
+
Script[_a23] = "script";
|
|
410
420
|
|
|
411
421
|
// src/features/Tab.ts
|
|
412
|
-
var
|
|
422
|
+
var _a24;
|
|
413
423
|
var Tab = class extends BaseModel {
|
|
414
424
|
/**
|
|
415
425
|
* 加载数据
|
|
@@ -418,14 +428,14 @@ var Tab = class extends BaseModel {
|
|
|
418
428
|
throw new Error("not implemented");
|
|
419
429
|
}
|
|
420
430
|
};
|
|
421
|
-
|
|
431
|
+
_a24 = IMPL_KEY;
|
|
422
432
|
/**
|
|
423
433
|
* @internal
|
|
424
434
|
*/
|
|
425
|
-
Tab[
|
|
435
|
+
Tab[_a24] = "tab";
|
|
426
436
|
|
|
427
437
|
// src/features/View.ts
|
|
428
|
-
var
|
|
438
|
+
var _a25;
|
|
429
439
|
var View = class extends BaseModel {
|
|
430
440
|
/**
|
|
431
441
|
* 加载数据
|
|
@@ -434,41 +444,41 @@ var View = class extends BaseModel {
|
|
|
434
444
|
throw new Error("not implemented");
|
|
435
445
|
}
|
|
436
446
|
};
|
|
437
|
-
|
|
447
|
+
_a25 = IMPL_KEY;
|
|
438
448
|
/**
|
|
439
449
|
* @internal
|
|
440
450
|
*/
|
|
441
|
-
View[
|
|
451
|
+
View[_a25] = "view";
|
|
442
452
|
|
|
443
453
|
// src/features/CustomComponent.ts
|
|
444
|
-
var
|
|
454
|
+
var _a26;
|
|
445
455
|
var CustomComponent = class extends BaseModel {
|
|
446
456
|
};
|
|
447
|
-
|
|
457
|
+
_a26 = IMPL_KEY;
|
|
448
458
|
/**
|
|
449
459
|
* @internal
|
|
450
460
|
*/
|
|
451
|
-
CustomComponent[
|
|
461
|
+
CustomComponent[_a26] = "customComponent";
|
|
452
462
|
|
|
453
463
|
// src/features/CustomField.ts
|
|
454
|
-
var
|
|
464
|
+
var _a27;
|
|
455
465
|
var CustomField = class extends BaseModel {
|
|
456
466
|
};
|
|
457
|
-
|
|
467
|
+
_a27 = IMPL_KEY;
|
|
458
468
|
/**
|
|
459
469
|
* @internal
|
|
460
470
|
*/
|
|
461
|
-
CustomField[
|
|
471
|
+
CustomField[_a27] = "customField";
|
|
462
472
|
|
|
463
473
|
// src/features/BuilderComponent.ts
|
|
464
|
-
var
|
|
474
|
+
var _a28;
|
|
465
475
|
var BuilderComponent = class extends BaseModel {
|
|
466
476
|
};
|
|
467
|
-
|
|
477
|
+
_a28 = IMPL_KEY;
|
|
468
478
|
/**
|
|
469
479
|
* @internal
|
|
470
480
|
*/
|
|
471
|
-
BuilderComponent[
|
|
481
|
+
BuilderComponent[_a28] = "liteAppComponent";
|
|
472
482
|
|
|
473
483
|
// src/client.ts
|
|
474
484
|
function getImplClass(decl, impls) {
|
|
@@ -627,6 +637,12 @@ var _SDKClient = class {
|
|
|
627
637
|
get utils() {
|
|
628
638
|
return getImplValue(Utils, this._meegoBizHub);
|
|
629
639
|
}
|
|
640
|
+
/**
|
|
641
|
+
* 事件
|
|
642
|
+
*/
|
|
643
|
+
get event() {
|
|
644
|
+
return getImplValue(Event, this._meegoBizHub);
|
|
645
|
+
}
|
|
630
646
|
/**
|
|
631
647
|
* 应用上下文
|
|
632
648
|
*/
|
|
@@ -683,7 +699,7 @@ var SDKClient = _SDKClient;
|
|
|
683
699
|
/**
|
|
684
700
|
* SDK 版本号
|
|
685
701
|
*/
|
|
686
|
-
SDKClient.version = "2.1.
|
|
702
|
+
SDKClient.version = "2.1.1-dev.2";
|
|
687
703
|
|
|
688
704
|
// src/types/biz.ts
|
|
689
705
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -730,6 +746,10 @@ var NodeStatus = /* @__PURE__ */ ((NodeStatus2) => {
|
|
|
730
746
|
NodeStatus2[NodeStatus2["passed"] = 3] = "passed";
|
|
731
747
|
return NodeStatus2;
|
|
732
748
|
})(NodeStatus || {});
|
|
749
|
+
var EventType = /* @__PURE__ */ ((EventType2) => {
|
|
750
|
+
EventType2["clickOutside"] = "clickOutside";
|
|
751
|
+
return EventType2;
|
|
752
|
+
})(EventType || {});
|
|
733
753
|
|
|
734
754
|
// src/types/features.ts
|
|
735
755
|
var ButtonScene = /* @__PURE__ */ ((ButtonScene2) => {
|
|
@@ -883,6 +903,8 @@ export {
|
|
|
883
903
|
CustomComponent,
|
|
884
904
|
CustomComponentType,
|
|
885
905
|
CustomField,
|
|
906
|
+
Event,
|
|
907
|
+
EventType,
|
|
886
908
|
Field,
|
|
887
909
|
FieldType,
|
|
888
910
|
FlowMode,
|
package/dist/lib/index.js
CHANGED
|
@@ -62,6 +62,8 @@ __export(src_exports, {
|
|
|
62
62
|
CustomComponent: () => CustomComponent,
|
|
63
63
|
CustomComponentType: () => CustomComponentType,
|
|
64
64
|
CustomField: () => CustomField,
|
|
65
|
+
Event: () => Event,
|
|
66
|
+
EventType: () => EventType,
|
|
65
67
|
Field: () => Field,
|
|
66
68
|
FieldType: () => FieldType,
|
|
67
69
|
FlowMode: () => FlowMode,
|
|
@@ -371,8 +373,18 @@ _a15 = IMPL_KEY;
|
|
|
371
373
|
*/
|
|
372
374
|
Utils[_a15] = "utils";
|
|
373
375
|
|
|
374
|
-
// src/
|
|
376
|
+
// src/biz/Event.ts
|
|
375
377
|
var _a16;
|
|
378
|
+
var Event = class extends BaseModel {
|
|
379
|
+
};
|
|
380
|
+
_a16 = IMPL_KEY;
|
|
381
|
+
/**
|
|
382
|
+
* @internal
|
|
383
|
+
*/
|
|
384
|
+
Event[_a16] = "event";
|
|
385
|
+
|
|
386
|
+
// src/features/ContainerModal.ts
|
|
387
|
+
var _a17;
|
|
376
388
|
var ContainerModal = class extends BaseModel {
|
|
377
389
|
/**
|
|
378
390
|
* 加载数据
|
|
@@ -381,14 +393,14 @@ var ContainerModal = class extends BaseModel {
|
|
|
381
393
|
throw new Error("not implemented");
|
|
382
394
|
}
|
|
383
395
|
};
|
|
384
|
-
|
|
396
|
+
_a17 = IMPL_KEY;
|
|
385
397
|
/**
|
|
386
398
|
* @internal
|
|
387
399
|
*/
|
|
388
|
-
ContainerModal[
|
|
400
|
+
ContainerModal[_a17] = "containerModal";
|
|
389
401
|
|
|
390
402
|
// src/features/Intercept.ts
|
|
391
|
-
var
|
|
403
|
+
var _a18;
|
|
392
404
|
var Intercept = class extends BaseModel {
|
|
393
405
|
/**
|
|
394
406
|
* 加载数据
|
|
@@ -397,14 +409,14 @@ var Intercept = class extends BaseModel {
|
|
|
397
409
|
throw new Error("not implemented");
|
|
398
410
|
}
|
|
399
411
|
};
|
|
400
|
-
|
|
412
|
+
_a18 = IMPL_KEY;
|
|
401
413
|
/**
|
|
402
414
|
* @internal
|
|
403
415
|
*/
|
|
404
|
-
Intercept[
|
|
416
|
+
Intercept[_a18] = "intercept";
|
|
405
417
|
|
|
406
418
|
// src/features/Control.ts
|
|
407
|
-
var
|
|
419
|
+
var _a19;
|
|
408
420
|
var Control = class extends BaseModel {
|
|
409
421
|
/**
|
|
410
422
|
* 加载数据
|
|
@@ -413,14 +425,14 @@ var Control = class extends BaseModel {
|
|
|
413
425
|
throw new Error("not implemented");
|
|
414
426
|
}
|
|
415
427
|
};
|
|
416
|
-
|
|
428
|
+
_a19 = IMPL_KEY;
|
|
417
429
|
/**
|
|
418
430
|
* @internal
|
|
419
431
|
*/
|
|
420
|
-
Control[
|
|
432
|
+
Control[_a19] = "control";
|
|
421
433
|
|
|
422
434
|
// src/features/Button.ts
|
|
423
|
-
var
|
|
435
|
+
var _a20;
|
|
424
436
|
var Button = class extends BaseModel {
|
|
425
437
|
/**
|
|
426
438
|
* 加载数据
|
|
@@ -429,14 +441,14 @@ var Button = class extends BaseModel {
|
|
|
429
441
|
throw new Error("not implemented");
|
|
430
442
|
}
|
|
431
443
|
};
|
|
432
|
-
|
|
444
|
+
_a20 = IMPL_KEY;
|
|
433
445
|
/**
|
|
434
446
|
* @internal
|
|
435
447
|
*/
|
|
436
|
-
Button[
|
|
448
|
+
Button[_a20] = "button";
|
|
437
449
|
|
|
438
450
|
// src/features/Configuration.ts
|
|
439
|
-
var
|
|
451
|
+
var _a21;
|
|
440
452
|
var Configuration = class extends BaseModel {
|
|
441
453
|
/**
|
|
442
454
|
* 加载数据
|
|
@@ -445,14 +457,14 @@ var Configuration = class extends BaseModel {
|
|
|
445
457
|
throw new Error("not implemented");
|
|
446
458
|
}
|
|
447
459
|
};
|
|
448
|
-
|
|
460
|
+
_a21 = IMPL_KEY;
|
|
449
461
|
/**
|
|
450
462
|
* @internal
|
|
451
463
|
*/
|
|
452
|
-
Configuration[
|
|
464
|
+
Configuration[_a21] = "configuration";
|
|
453
465
|
|
|
454
466
|
// src/features/Page.ts
|
|
455
|
-
var
|
|
467
|
+
var _a22;
|
|
456
468
|
var Page = class extends BaseModel {
|
|
457
469
|
/**
|
|
458
470
|
* 加载数据
|
|
@@ -461,24 +473,24 @@ var Page = class extends BaseModel {
|
|
|
461
473
|
throw new Error("not implemented");
|
|
462
474
|
}
|
|
463
475
|
};
|
|
464
|
-
|
|
476
|
+
_a22 = IMPL_KEY;
|
|
465
477
|
/**
|
|
466
478
|
* @internal
|
|
467
479
|
*/
|
|
468
|
-
Page[
|
|
480
|
+
Page[_a22] = "page";
|
|
469
481
|
|
|
470
482
|
// src/features/Script.ts
|
|
471
|
-
var
|
|
483
|
+
var _a23;
|
|
472
484
|
var Script = class extends BaseModel {
|
|
473
485
|
};
|
|
474
|
-
|
|
486
|
+
_a23 = IMPL_KEY;
|
|
475
487
|
/**
|
|
476
488
|
* @internal
|
|
477
489
|
*/
|
|
478
|
-
Script[
|
|
490
|
+
Script[_a23] = "script";
|
|
479
491
|
|
|
480
492
|
// src/features/Tab.ts
|
|
481
|
-
var
|
|
493
|
+
var _a24;
|
|
482
494
|
var Tab = class extends BaseModel {
|
|
483
495
|
/**
|
|
484
496
|
* 加载数据
|
|
@@ -487,14 +499,14 @@ var Tab = class extends BaseModel {
|
|
|
487
499
|
throw new Error("not implemented");
|
|
488
500
|
}
|
|
489
501
|
};
|
|
490
|
-
|
|
502
|
+
_a24 = IMPL_KEY;
|
|
491
503
|
/**
|
|
492
504
|
* @internal
|
|
493
505
|
*/
|
|
494
|
-
Tab[
|
|
506
|
+
Tab[_a24] = "tab";
|
|
495
507
|
|
|
496
508
|
// src/features/View.ts
|
|
497
|
-
var
|
|
509
|
+
var _a25;
|
|
498
510
|
var View = class extends BaseModel {
|
|
499
511
|
/**
|
|
500
512
|
* 加载数据
|
|
@@ -503,41 +515,41 @@ var View = class extends BaseModel {
|
|
|
503
515
|
throw new Error("not implemented");
|
|
504
516
|
}
|
|
505
517
|
};
|
|
506
|
-
|
|
518
|
+
_a25 = IMPL_KEY;
|
|
507
519
|
/**
|
|
508
520
|
* @internal
|
|
509
521
|
*/
|
|
510
|
-
View[
|
|
522
|
+
View[_a25] = "view";
|
|
511
523
|
|
|
512
524
|
// src/features/CustomComponent.ts
|
|
513
|
-
var
|
|
525
|
+
var _a26;
|
|
514
526
|
var CustomComponent = class extends BaseModel {
|
|
515
527
|
};
|
|
516
|
-
|
|
528
|
+
_a26 = IMPL_KEY;
|
|
517
529
|
/**
|
|
518
530
|
* @internal
|
|
519
531
|
*/
|
|
520
|
-
CustomComponent[
|
|
532
|
+
CustomComponent[_a26] = "customComponent";
|
|
521
533
|
|
|
522
534
|
// src/features/CustomField.ts
|
|
523
|
-
var
|
|
535
|
+
var _a27;
|
|
524
536
|
var CustomField = class extends BaseModel {
|
|
525
537
|
};
|
|
526
|
-
|
|
538
|
+
_a27 = IMPL_KEY;
|
|
527
539
|
/**
|
|
528
540
|
* @internal
|
|
529
541
|
*/
|
|
530
|
-
CustomField[
|
|
542
|
+
CustomField[_a27] = "customField";
|
|
531
543
|
|
|
532
544
|
// src/features/BuilderComponent.ts
|
|
533
|
-
var
|
|
545
|
+
var _a28;
|
|
534
546
|
var BuilderComponent = class extends BaseModel {
|
|
535
547
|
};
|
|
536
|
-
|
|
548
|
+
_a28 = IMPL_KEY;
|
|
537
549
|
/**
|
|
538
550
|
* @internal
|
|
539
551
|
*/
|
|
540
|
-
BuilderComponent[
|
|
552
|
+
BuilderComponent[_a28] = "liteAppComponent";
|
|
541
553
|
|
|
542
554
|
// src/client.ts
|
|
543
555
|
function getImplClass(decl, impls) {
|
|
@@ -696,6 +708,12 @@ var _SDKClient = class {
|
|
|
696
708
|
get utils() {
|
|
697
709
|
return getImplValue(Utils, this._meegoBizHub);
|
|
698
710
|
}
|
|
711
|
+
/**
|
|
712
|
+
* 事件
|
|
713
|
+
*/
|
|
714
|
+
get event() {
|
|
715
|
+
return getImplValue(Event, this._meegoBizHub);
|
|
716
|
+
}
|
|
699
717
|
/**
|
|
700
718
|
* 应用上下文
|
|
701
719
|
*/
|
|
@@ -752,7 +770,7 @@ var SDKClient = _SDKClient;
|
|
|
752
770
|
/**
|
|
753
771
|
* SDK 版本号
|
|
754
772
|
*/
|
|
755
|
-
SDKClient.version = "2.1.
|
|
773
|
+
SDKClient.version = "2.1.1-dev.2";
|
|
756
774
|
|
|
757
775
|
// src/types/biz.ts
|
|
758
776
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -799,6 +817,10 @@ var NodeStatus = /* @__PURE__ */ ((NodeStatus2) => {
|
|
|
799
817
|
NodeStatus2[NodeStatus2["passed"] = 3] = "passed";
|
|
800
818
|
return NodeStatus2;
|
|
801
819
|
})(NodeStatus || {});
|
|
820
|
+
var EventType = /* @__PURE__ */ ((EventType2) => {
|
|
821
|
+
EventType2["clickOutside"] = "clickOutside";
|
|
822
|
+
return EventType2;
|
|
823
|
+
})(EventType || {});
|
|
802
824
|
|
|
803
825
|
// src/types/features.ts
|
|
804
826
|
var ButtonScene = /* @__PURE__ */ ((ButtonScene2) => {
|
|
@@ -953,6 +975,8 @@ var src_default = SDKClient;
|
|
|
953
975
|
CustomComponent,
|
|
954
976
|
CustomComponentType,
|
|
955
977
|
CustomField,
|
|
978
|
+
Event,
|
|
979
|
+
EventType,
|
|
956
980
|
Field,
|
|
957
981
|
FieldType,
|
|
958
982
|
FlowMode,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -313,6 +313,25 @@ type Language = 'zh_CN' | 'en_US' | 'ja_JP';
|
|
|
313
313
|
* 颜色方案
|
|
314
314
|
*/
|
|
315
315
|
type ColorScheme = 'light' | 'dark';
|
|
316
|
+
/**
|
|
317
|
+
* @public
|
|
318
|
+
* 监听事件类型
|
|
319
|
+
*/
|
|
320
|
+
declare enum EventType {
|
|
321
|
+
/**
|
|
322
|
+
* 外部点击事件
|
|
323
|
+
*/
|
|
324
|
+
clickOutside = "clickOutside"
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* @public
|
|
328
|
+
* 事件 payload 映射
|
|
329
|
+
*/
|
|
330
|
+
interface EventPayloadMap {
|
|
331
|
+
[EventType.clickOutside]: {
|
|
332
|
+
timestamp: number;
|
|
333
|
+
};
|
|
334
|
+
}
|
|
316
335
|
|
|
317
336
|
/**
|
|
318
337
|
* 集成构成
|
|
@@ -1825,6 +1844,24 @@ declare abstract class Utils extends BaseModel {
|
|
|
1825
1844
|
abstract overwriteThemeForSemiUI(): Promise<void>;
|
|
1826
1845
|
}
|
|
1827
1846
|
|
|
1847
|
+
/**
|
|
1848
|
+
* @public
|
|
1849
|
+
* 事件
|
|
1850
|
+
*/
|
|
1851
|
+
declare abstract class Event extends BaseModel {
|
|
1852
|
+
/**
|
|
1853
|
+
* @internal
|
|
1854
|
+
*/
|
|
1855
|
+
protected static [IMPL_KEY]: string;
|
|
1856
|
+
/**
|
|
1857
|
+
* 监听事件
|
|
1858
|
+
* @param eventType 事件类型
|
|
1859
|
+
* @param callback 事件回调
|
|
1860
|
+
* @returns 取消监听事件的方法
|
|
1861
|
+
*/
|
|
1862
|
+
abstract onMessage<T extends EventType>(eventType: T, callback: (payload: EventPayloadMap[T]) => void): Promise<Off>;
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1828
1865
|
/**
|
|
1829
1866
|
* @public
|
|
1830
1867
|
* 插件容器模态框
|
|
@@ -2355,6 +2392,10 @@ declare class SDKClient {
|
|
|
2355
2392
|
* 工具方法
|
|
2356
2393
|
*/
|
|
2357
2394
|
get utils(): Utils;
|
|
2395
|
+
/**
|
|
2396
|
+
* 事件
|
|
2397
|
+
*/
|
|
2398
|
+
get event(): Event;
|
|
2358
2399
|
/**
|
|
2359
2400
|
* 应用上下文
|
|
2360
2401
|
*/
|
|
@@ -2470,4 +2511,4 @@ declare class NotSupportedError extends CustomError {
|
|
|
2470
2511
|
* @packageDocumentation
|
|
2471
2512
|
*/
|
|
2472
2513
|
|
|
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 };
|
|
2514
|
+
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, 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 };
|