@lark-project/js-sdk 2.0.17 → 2.0.18-dev.1
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 +70 -34
- package/dist/lib/index.js +72 -34
- package/dist/types/index.d.ts +66 -12
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -302,8 +302,24 @@ _a15 = IMPL_KEY;
|
|
|
302
302
|
*/
|
|
303
303
|
Utils[_a15] = "utils";
|
|
304
304
|
|
|
305
|
-
// src/
|
|
305
|
+
// src/biz/Geolocation.ts
|
|
306
306
|
var _a16;
|
|
307
|
+
var Geolocation = class extends BaseModel {
|
|
308
|
+
/**
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
static load() {
|
|
312
|
+
throw new Error("not implemented");
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
_a16 = IMPL_KEY;
|
|
316
|
+
/**
|
|
317
|
+
* @internal
|
|
318
|
+
*/
|
|
319
|
+
Geolocation[_a16] = "geolocation";
|
|
320
|
+
|
|
321
|
+
// src/features/ContainerModal.ts
|
|
322
|
+
var _a17;
|
|
307
323
|
var ContainerModal = class extends BaseModel {
|
|
308
324
|
/**
|
|
309
325
|
* 加载数据
|
|
@@ -312,14 +328,14 @@ var ContainerModal = class extends BaseModel {
|
|
|
312
328
|
throw new Error("not implemented");
|
|
313
329
|
}
|
|
314
330
|
};
|
|
315
|
-
|
|
331
|
+
_a17 = IMPL_KEY;
|
|
316
332
|
/**
|
|
317
333
|
* @internal
|
|
318
334
|
*/
|
|
319
|
-
ContainerModal[
|
|
335
|
+
ContainerModal[_a17] = "containerModal";
|
|
320
336
|
|
|
321
337
|
// src/features/Intercept.ts
|
|
322
|
-
var
|
|
338
|
+
var _a18;
|
|
323
339
|
var Intercept = class extends BaseModel {
|
|
324
340
|
/**
|
|
325
341
|
* 加载数据
|
|
@@ -328,14 +344,14 @@ var Intercept = class extends BaseModel {
|
|
|
328
344
|
throw new Error("not implemented");
|
|
329
345
|
}
|
|
330
346
|
};
|
|
331
|
-
|
|
347
|
+
_a18 = IMPL_KEY;
|
|
332
348
|
/**
|
|
333
349
|
* @internal
|
|
334
350
|
*/
|
|
335
|
-
Intercept[
|
|
351
|
+
Intercept[_a18] = "intercept";
|
|
336
352
|
|
|
337
353
|
// src/features/Control.ts
|
|
338
|
-
var
|
|
354
|
+
var _a19;
|
|
339
355
|
var Control = class extends BaseModel {
|
|
340
356
|
/**
|
|
341
357
|
* 加载数据
|
|
@@ -344,14 +360,14 @@ var Control = class extends BaseModel {
|
|
|
344
360
|
throw new Error("not implemented");
|
|
345
361
|
}
|
|
346
362
|
};
|
|
347
|
-
|
|
363
|
+
_a19 = IMPL_KEY;
|
|
348
364
|
/**
|
|
349
365
|
* @internal
|
|
350
366
|
*/
|
|
351
|
-
Control[
|
|
367
|
+
Control[_a19] = "control";
|
|
352
368
|
|
|
353
369
|
// src/features/Button.ts
|
|
354
|
-
var
|
|
370
|
+
var _a20;
|
|
355
371
|
var Button = class extends BaseModel {
|
|
356
372
|
/**
|
|
357
373
|
* 加载数据
|
|
@@ -360,14 +376,14 @@ var Button = class extends BaseModel {
|
|
|
360
376
|
throw new Error("not implemented");
|
|
361
377
|
}
|
|
362
378
|
};
|
|
363
|
-
|
|
379
|
+
_a20 = IMPL_KEY;
|
|
364
380
|
/**
|
|
365
381
|
* @internal
|
|
366
382
|
*/
|
|
367
|
-
Button[
|
|
383
|
+
Button[_a20] = "button";
|
|
368
384
|
|
|
369
385
|
// src/features/Configuration.ts
|
|
370
|
-
var
|
|
386
|
+
var _a21;
|
|
371
387
|
var Configuration = class extends BaseModel {
|
|
372
388
|
/**
|
|
373
389
|
* 加载数据
|
|
@@ -376,14 +392,14 @@ var Configuration = class extends BaseModel {
|
|
|
376
392
|
throw new Error("not implemented");
|
|
377
393
|
}
|
|
378
394
|
};
|
|
379
|
-
|
|
395
|
+
_a21 = IMPL_KEY;
|
|
380
396
|
/**
|
|
381
397
|
* @internal
|
|
382
398
|
*/
|
|
383
|
-
Configuration[
|
|
399
|
+
Configuration[_a21] = "configuration";
|
|
384
400
|
|
|
385
401
|
// src/features/Page.ts
|
|
386
|
-
var
|
|
402
|
+
var _a22;
|
|
387
403
|
var Page = class extends BaseModel {
|
|
388
404
|
/**
|
|
389
405
|
* 加载数据
|
|
@@ -392,14 +408,14 @@ var Page = class extends BaseModel {
|
|
|
392
408
|
throw new Error("not implemented");
|
|
393
409
|
}
|
|
394
410
|
};
|
|
395
|
-
|
|
411
|
+
_a22 = IMPL_KEY;
|
|
396
412
|
/**
|
|
397
413
|
* @internal
|
|
398
414
|
*/
|
|
399
|
-
Page[
|
|
415
|
+
Page[_a22] = "page";
|
|
400
416
|
|
|
401
417
|
// src/features/Tab.ts
|
|
402
|
-
var
|
|
418
|
+
var _a23;
|
|
403
419
|
var Tab = class extends BaseModel {
|
|
404
420
|
/**
|
|
405
421
|
* 加载数据
|
|
@@ -408,14 +424,14 @@ var Tab = class extends BaseModel {
|
|
|
408
424
|
throw new Error("not implemented");
|
|
409
425
|
}
|
|
410
426
|
};
|
|
411
|
-
|
|
427
|
+
_a23 = IMPL_KEY;
|
|
412
428
|
/**
|
|
413
429
|
* @internal
|
|
414
430
|
*/
|
|
415
|
-
Tab[
|
|
431
|
+
Tab[_a23] = "tab";
|
|
416
432
|
|
|
417
433
|
// src/features/View.ts
|
|
418
|
-
var
|
|
434
|
+
var _a24;
|
|
419
435
|
var View = class extends BaseModel {
|
|
420
436
|
/**
|
|
421
437
|
* 加载数据
|
|
@@ -424,41 +440,41 @@ var View = class extends BaseModel {
|
|
|
424
440
|
throw new Error("not implemented");
|
|
425
441
|
}
|
|
426
442
|
};
|
|
427
|
-
|
|
443
|
+
_a24 = IMPL_KEY;
|
|
428
444
|
/**
|
|
429
445
|
* @internal
|
|
430
446
|
*/
|
|
431
|
-
View[
|
|
447
|
+
View[_a24] = "view";
|
|
432
448
|
|
|
433
449
|
// src/features/CustomComponent.ts
|
|
434
|
-
var
|
|
450
|
+
var _a25;
|
|
435
451
|
var CustomComponent = class extends BaseModel {
|
|
436
452
|
};
|
|
437
|
-
|
|
453
|
+
_a25 = IMPL_KEY;
|
|
438
454
|
/**
|
|
439
455
|
* @internal
|
|
440
456
|
*/
|
|
441
|
-
CustomComponent[
|
|
457
|
+
CustomComponent[_a25] = "customComponent";
|
|
442
458
|
|
|
443
459
|
// src/features/CustomField.ts
|
|
444
|
-
var
|
|
460
|
+
var _a26;
|
|
445
461
|
var CustomField = class extends BaseModel {
|
|
446
462
|
};
|
|
447
|
-
|
|
463
|
+
_a26 = IMPL_KEY;
|
|
448
464
|
/**
|
|
449
465
|
* @internal
|
|
450
466
|
*/
|
|
451
|
-
CustomField[
|
|
467
|
+
CustomField[_a26] = "customField";
|
|
452
468
|
|
|
453
469
|
// src/features/BuilderComponent.ts
|
|
454
|
-
var
|
|
470
|
+
var _a27;
|
|
455
471
|
var BuilderComponent = class extends BaseModel {
|
|
456
472
|
};
|
|
457
|
-
|
|
473
|
+
_a27 = IMPL_KEY;
|
|
458
474
|
/**
|
|
459
475
|
* @internal
|
|
460
476
|
*/
|
|
461
|
-
BuilderComponent[
|
|
477
|
+
BuilderComponent[_a27] = "liteAppComponent";
|
|
462
478
|
|
|
463
479
|
// src/client.ts
|
|
464
480
|
function getImplClass(decl, impls) {
|
|
@@ -570,6 +586,13 @@ var _SDKClient = class {
|
|
|
570
586
|
get toast() {
|
|
571
587
|
return getImplValue(Toast, this._meegoBizHub);
|
|
572
588
|
}
|
|
589
|
+
/**
|
|
590
|
+
* 地理位置
|
|
591
|
+
* only mobile 2.0
|
|
592
|
+
*/
|
|
593
|
+
get geolocation() {
|
|
594
|
+
return getImplValue(Geolocation, this._meegoBizHub);
|
|
595
|
+
}
|
|
573
596
|
/**
|
|
574
597
|
* 富文本编辑器
|
|
575
598
|
* only 2.0
|
|
@@ -666,7 +689,7 @@ var SDKClient = _SDKClient;
|
|
|
666
689
|
/**
|
|
667
690
|
* SDK 版本号
|
|
668
691
|
*/
|
|
669
|
-
SDKClient.version = "2.0.
|
|
692
|
+
SDKClient.version = "2.0.18-dev.1";
|
|
670
693
|
|
|
671
694
|
// src/types/biz.ts
|
|
672
695
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -849,6 +872,17 @@ var NotSupportedError = class extends CustomError {
|
|
|
849
872
|
}
|
|
850
873
|
};
|
|
851
874
|
|
|
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
|
+
|
|
852
886
|
// src/index.ts
|
|
853
887
|
var src_default = SDKClient;
|
|
854
888
|
export {
|
|
@@ -869,6 +903,7 @@ export {
|
|
|
869
903
|
Field,
|
|
870
904
|
FieldType,
|
|
871
905
|
FlowMode,
|
|
906
|
+
Geolocation,
|
|
872
907
|
IMPL_KEY,
|
|
873
908
|
Intercept,
|
|
874
909
|
InterceptEvent,
|
|
@@ -889,6 +924,7 @@ export {
|
|
|
889
924
|
Shared,
|
|
890
925
|
Space,
|
|
891
926
|
Storage,
|
|
927
|
+
SystemPermissionDeniedError,
|
|
892
928
|
Tab,
|
|
893
929
|
Toast,
|
|
894
930
|
Utils,
|
package/dist/lib/index.js
CHANGED
|
@@ -65,6 +65,7 @@ __export(src_exports, {
|
|
|
65
65
|
Field: () => Field,
|
|
66
66
|
FieldType: () => FieldType,
|
|
67
67
|
FlowMode: () => FlowMode,
|
|
68
|
+
Geolocation: () => Geolocation,
|
|
68
69
|
IMPL_KEY: () => IMPL_KEY,
|
|
69
70
|
Intercept: () => Intercept,
|
|
70
71
|
InterceptEvent: () => InterceptEvent,
|
|
@@ -85,6 +86,7 @@ __export(src_exports, {
|
|
|
85
86
|
Shared: () => Shared,
|
|
86
87
|
Space: () => Space,
|
|
87
88
|
Storage: () => Storage,
|
|
89
|
+
SystemPermissionDeniedError: () => SystemPermissionDeniedError,
|
|
88
90
|
Tab: () => Tab,
|
|
89
91
|
Toast: () => Toast,
|
|
90
92
|
Utils: () => Utils,
|
|
@@ -370,8 +372,24 @@ _a15 = IMPL_KEY;
|
|
|
370
372
|
*/
|
|
371
373
|
Utils[_a15] = "utils";
|
|
372
374
|
|
|
373
|
-
// src/
|
|
375
|
+
// src/biz/Geolocation.ts
|
|
374
376
|
var _a16;
|
|
377
|
+
var Geolocation = class extends BaseModel {
|
|
378
|
+
/**
|
|
379
|
+
* @internal
|
|
380
|
+
*/
|
|
381
|
+
static load() {
|
|
382
|
+
throw new Error("not implemented");
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
_a16 = IMPL_KEY;
|
|
386
|
+
/**
|
|
387
|
+
* @internal
|
|
388
|
+
*/
|
|
389
|
+
Geolocation[_a16] = "geolocation";
|
|
390
|
+
|
|
391
|
+
// src/features/ContainerModal.ts
|
|
392
|
+
var _a17;
|
|
375
393
|
var ContainerModal = class extends BaseModel {
|
|
376
394
|
/**
|
|
377
395
|
* 加载数据
|
|
@@ -380,14 +398,14 @@ var ContainerModal = class extends BaseModel {
|
|
|
380
398
|
throw new Error("not implemented");
|
|
381
399
|
}
|
|
382
400
|
};
|
|
383
|
-
|
|
401
|
+
_a17 = IMPL_KEY;
|
|
384
402
|
/**
|
|
385
403
|
* @internal
|
|
386
404
|
*/
|
|
387
|
-
ContainerModal[
|
|
405
|
+
ContainerModal[_a17] = "containerModal";
|
|
388
406
|
|
|
389
407
|
// src/features/Intercept.ts
|
|
390
|
-
var
|
|
408
|
+
var _a18;
|
|
391
409
|
var Intercept = class extends BaseModel {
|
|
392
410
|
/**
|
|
393
411
|
* 加载数据
|
|
@@ -396,14 +414,14 @@ var Intercept = class extends BaseModel {
|
|
|
396
414
|
throw new Error("not implemented");
|
|
397
415
|
}
|
|
398
416
|
};
|
|
399
|
-
|
|
417
|
+
_a18 = IMPL_KEY;
|
|
400
418
|
/**
|
|
401
419
|
* @internal
|
|
402
420
|
*/
|
|
403
|
-
Intercept[
|
|
421
|
+
Intercept[_a18] = "intercept";
|
|
404
422
|
|
|
405
423
|
// src/features/Control.ts
|
|
406
|
-
var
|
|
424
|
+
var _a19;
|
|
407
425
|
var Control = class extends BaseModel {
|
|
408
426
|
/**
|
|
409
427
|
* 加载数据
|
|
@@ -412,14 +430,14 @@ var Control = class extends BaseModel {
|
|
|
412
430
|
throw new Error("not implemented");
|
|
413
431
|
}
|
|
414
432
|
};
|
|
415
|
-
|
|
433
|
+
_a19 = IMPL_KEY;
|
|
416
434
|
/**
|
|
417
435
|
* @internal
|
|
418
436
|
*/
|
|
419
|
-
Control[
|
|
437
|
+
Control[_a19] = "control";
|
|
420
438
|
|
|
421
439
|
// src/features/Button.ts
|
|
422
|
-
var
|
|
440
|
+
var _a20;
|
|
423
441
|
var Button = class extends BaseModel {
|
|
424
442
|
/**
|
|
425
443
|
* 加载数据
|
|
@@ -428,14 +446,14 @@ var Button = class extends BaseModel {
|
|
|
428
446
|
throw new Error("not implemented");
|
|
429
447
|
}
|
|
430
448
|
};
|
|
431
|
-
|
|
449
|
+
_a20 = IMPL_KEY;
|
|
432
450
|
/**
|
|
433
451
|
* @internal
|
|
434
452
|
*/
|
|
435
|
-
Button[
|
|
453
|
+
Button[_a20] = "button";
|
|
436
454
|
|
|
437
455
|
// src/features/Configuration.ts
|
|
438
|
-
var
|
|
456
|
+
var _a21;
|
|
439
457
|
var Configuration = class extends BaseModel {
|
|
440
458
|
/**
|
|
441
459
|
* 加载数据
|
|
@@ -444,14 +462,14 @@ var Configuration = class extends BaseModel {
|
|
|
444
462
|
throw new Error("not implemented");
|
|
445
463
|
}
|
|
446
464
|
};
|
|
447
|
-
|
|
465
|
+
_a21 = IMPL_KEY;
|
|
448
466
|
/**
|
|
449
467
|
* @internal
|
|
450
468
|
*/
|
|
451
|
-
Configuration[
|
|
469
|
+
Configuration[_a21] = "configuration";
|
|
452
470
|
|
|
453
471
|
// src/features/Page.ts
|
|
454
|
-
var
|
|
472
|
+
var _a22;
|
|
455
473
|
var Page = class extends BaseModel {
|
|
456
474
|
/**
|
|
457
475
|
* 加载数据
|
|
@@ -460,14 +478,14 @@ var Page = class extends BaseModel {
|
|
|
460
478
|
throw new Error("not implemented");
|
|
461
479
|
}
|
|
462
480
|
};
|
|
463
|
-
|
|
481
|
+
_a22 = IMPL_KEY;
|
|
464
482
|
/**
|
|
465
483
|
* @internal
|
|
466
484
|
*/
|
|
467
|
-
Page[
|
|
485
|
+
Page[_a22] = "page";
|
|
468
486
|
|
|
469
487
|
// src/features/Tab.ts
|
|
470
|
-
var
|
|
488
|
+
var _a23;
|
|
471
489
|
var Tab = class extends BaseModel {
|
|
472
490
|
/**
|
|
473
491
|
* 加载数据
|
|
@@ -476,14 +494,14 @@ var Tab = class extends BaseModel {
|
|
|
476
494
|
throw new Error("not implemented");
|
|
477
495
|
}
|
|
478
496
|
};
|
|
479
|
-
|
|
497
|
+
_a23 = IMPL_KEY;
|
|
480
498
|
/**
|
|
481
499
|
* @internal
|
|
482
500
|
*/
|
|
483
|
-
Tab[
|
|
501
|
+
Tab[_a23] = "tab";
|
|
484
502
|
|
|
485
503
|
// src/features/View.ts
|
|
486
|
-
var
|
|
504
|
+
var _a24;
|
|
487
505
|
var View = class extends BaseModel {
|
|
488
506
|
/**
|
|
489
507
|
* 加载数据
|
|
@@ -492,41 +510,41 @@ var View = class extends BaseModel {
|
|
|
492
510
|
throw new Error("not implemented");
|
|
493
511
|
}
|
|
494
512
|
};
|
|
495
|
-
|
|
513
|
+
_a24 = IMPL_KEY;
|
|
496
514
|
/**
|
|
497
515
|
* @internal
|
|
498
516
|
*/
|
|
499
|
-
View[
|
|
517
|
+
View[_a24] = "view";
|
|
500
518
|
|
|
501
519
|
// src/features/CustomComponent.ts
|
|
502
|
-
var
|
|
520
|
+
var _a25;
|
|
503
521
|
var CustomComponent = class extends BaseModel {
|
|
504
522
|
};
|
|
505
|
-
|
|
523
|
+
_a25 = IMPL_KEY;
|
|
506
524
|
/**
|
|
507
525
|
* @internal
|
|
508
526
|
*/
|
|
509
|
-
CustomComponent[
|
|
527
|
+
CustomComponent[_a25] = "customComponent";
|
|
510
528
|
|
|
511
529
|
// src/features/CustomField.ts
|
|
512
|
-
var
|
|
530
|
+
var _a26;
|
|
513
531
|
var CustomField = class extends BaseModel {
|
|
514
532
|
};
|
|
515
|
-
|
|
533
|
+
_a26 = IMPL_KEY;
|
|
516
534
|
/**
|
|
517
535
|
* @internal
|
|
518
536
|
*/
|
|
519
|
-
CustomField[
|
|
537
|
+
CustomField[_a26] = "customField";
|
|
520
538
|
|
|
521
539
|
// src/features/BuilderComponent.ts
|
|
522
|
-
var
|
|
540
|
+
var _a27;
|
|
523
541
|
var BuilderComponent = class extends BaseModel {
|
|
524
542
|
};
|
|
525
|
-
|
|
543
|
+
_a27 = IMPL_KEY;
|
|
526
544
|
/**
|
|
527
545
|
* @internal
|
|
528
546
|
*/
|
|
529
|
-
BuilderComponent[
|
|
547
|
+
BuilderComponent[_a27] = "liteAppComponent";
|
|
530
548
|
|
|
531
549
|
// src/client.ts
|
|
532
550
|
function getImplClass(decl, impls) {
|
|
@@ -638,6 +656,13 @@ var _SDKClient = class {
|
|
|
638
656
|
get toast() {
|
|
639
657
|
return getImplValue(Toast, this._meegoBizHub);
|
|
640
658
|
}
|
|
659
|
+
/**
|
|
660
|
+
* 地理位置
|
|
661
|
+
* only mobile 2.0
|
|
662
|
+
*/
|
|
663
|
+
get geolocation() {
|
|
664
|
+
return getImplValue(Geolocation, this._meegoBizHub);
|
|
665
|
+
}
|
|
641
666
|
/**
|
|
642
667
|
* 富文本编辑器
|
|
643
668
|
* only 2.0
|
|
@@ -734,7 +759,7 @@ var SDKClient = _SDKClient;
|
|
|
734
759
|
/**
|
|
735
760
|
* SDK 版本号
|
|
736
761
|
*/
|
|
737
|
-
SDKClient.version = "2.0.
|
|
762
|
+
SDKClient.version = "2.0.18-dev.1";
|
|
738
763
|
|
|
739
764
|
// src/types/biz.ts
|
|
740
765
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -917,6 +942,17 @@ var NotSupportedError = class extends CustomError {
|
|
|
917
942
|
}
|
|
918
943
|
};
|
|
919
944
|
|
|
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
|
+
|
|
920
956
|
// src/index.ts
|
|
921
957
|
var src_default = SDKClient;
|
|
922
958
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -938,6 +974,7 @@ var src_default = SDKClient;
|
|
|
938
974
|
Field,
|
|
939
975
|
FieldType,
|
|
940
976
|
FlowMode,
|
|
977
|
+
Geolocation,
|
|
941
978
|
IMPL_KEY,
|
|
942
979
|
Intercept,
|
|
943
980
|
InterceptEvent,
|
|
@@ -958,6 +995,7 @@ var src_default = SDKClient;
|
|
|
958
995
|
Shared,
|
|
959
996
|
Space,
|
|
960
997
|
Storage,
|
|
998
|
+
SystemPermissionDeniedError,
|
|
961
999
|
Tab,
|
|
962
1000
|
Toast,
|
|
963
1001
|
Utils,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -717,6 +717,11 @@ interface CustomFieldFeatureContext {
|
|
|
717
717
|
* 适用场景:详情页为节点流时,且当前拓展字段位于节点表单内,该字段才有数据
|
|
718
718
|
*/
|
|
719
719
|
nodeId?: string;
|
|
720
|
+
/**
|
|
721
|
+
* 拓展字段所在的业务场景
|
|
722
|
+
* 仅移动端 >= 7.57 版本可用
|
|
723
|
+
*/
|
|
724
|
+
bizScene?: 'workItemDetail' | 'createWorkItem' | 'nodeForm' | 'stateForm' | 'nodeDeliverable' | 'taskDeliverable';
|
|
720
725
|
}
|
|
721
726
|
type FieldNumberValue = number;
|
|
722
727
|
type FieldMultiTextValue = string;
|
|
@@ -1812,6 +1817,61 @@ declare abstract class Utils extends BaseModel {
|
|
|
1812
1817
|
abstract overwriteThemeForSemiUI(): Promise<void>;
|
|
1813
1818
|
}
|
|
1814
1819
|
|
|
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
|
+
|
|
1815
1875
|
/**
|
|
1816
1876
|
* @public
|
|
1817
1877
|
* 插件容器模态框
|
|
@@ -2288,6 +2348,11 @@ declare class SDKClient {
|
|
|
2288
2348
|
* 提示
|
|
2289
2349
|
*/
|
|
2290
2350
|
get toast(): Toast;
|
|
2351
|
+
/**
|
|
2352
|
+
* 地理位置
|
|
2353
|
+
* only mobile 2.0
|
|
2354
|
+
*/
|
|
2355
|
+
get geolocation(): Geolocation;
|
|
2291
2356
|
/**
|
|
2292
2357
|
* 富文本编辑器
|
|
2293
2358
|
* only 2.0
|
|
@@ -2348,17 +2413,6 @@ declare class SDKClient {
|
|
|
2348
2413
|
config(options: SDKClientOptions): Promise<this>;
|
|
2349
2414
|
}
|
|
2350
2415
|
|
|
2351
|
-
/**
|
|
2352
|
-
* @internal
|
|
2353
|
-
*/
|
|
2354
|
-
declare class CustomError extends Error {
|
|
2355
|
-
originMessage: string;
|
|
2356
|
-
constructor(options: {
|
|
2357
|
-
message: string;
|
|
2358
|
-
originMessage: string;
|
|
2359
|
-
});
|
|
2360
|
-
}
|
|
2361
|
-
|
|
2362
2416
|
/**
|
|
2363
2417
|
* @public
|
|
2364
2418
|
* 内部逻辑异常
|
|
@@ -2431,4 +2485,4 @@ declare class NotSupportedError extends CustomError {
|
|
|
2431
2485
|
* @packageDocumentation
|
|
2432
2486
|
*/
|
|
2433
2487
|
|
|
2434
|
-
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, Shared, Space, Storage, SubFieldType, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|
|
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, Geolocation, GeolocationCoordinates, GeolocationPosition, 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, 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 };
|