@lark-project/js-sdk 2.0.2-dev.3 → 2.0.2-dev.5
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 +25 -42
- package/dist/lib/index.js +25 -43
- package/dist/types/index.d.ts +5 -33
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -292,24 +292,8 @@ _a14 = IMPL_KEY;
|
|
|
292
292
|
*/
|
|
293
293
|
Utils[_a14] = "utils";
|
|
294
294
|
|
|
295
|
-
// src/biz/Broadcast.ts
|
|
296
|
-
var _a15;
|
|
297
|
-
var Broadcast = class extends BaseModel {
|
|
298
|
-
/**
|
|
299
|
-
* @internal
|
|
300
|
-
*/
|
|
301
|
-
static load() {
|
|
302
|
-
throw new Error("not implemented");
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
_a15 = IMPL_KEY;
|
|
306
|
-
/**
|
|
307
|
-
* @internal
|
|
308
|
-
*/
|
|
309
|
-
Broadcast[_a15] = "broadcast";
|
|
310
|
-
|
|
311
295
|
// src/features/ContainerModal.ts
|
|
312
|
-
var
|
|
296
|
+
var _a15;
|
|
313
297
|
var ContainerModal = class extends BaseModel {
|
|
314
298
|
/**
|
|
315
299
|
* 加载数据
|
|
@@ -318,14 +302,14 @@ var ContainerModal = class extends BaseModel {
|
|
|
318
302
|
throw new Error("not implemented");
|
|
319
303
|
}
|
|
320
304
|
};
|
|
321
|
-
|
|
305
|
+
_a15 = IMPL_KEY;
|
|
322
306
|
/**
|
|
323
307
|
* @internal
|
|
324
308
|
*/
|
|
325
|
-
ContainerModal[
|
|
309
|
+
ContainerModal[_a15] = "containerModal";
|
|
326
310
|
|
|
327
311
|
// src/features/Intercept.ts
|
|
328
|
-
var
|
|
312
|
+
var _a16;
|
|
329
313
|
var Intercept = class extends BaseModel {
|
|
330
314
|
/**
|
|
331
315
|
* 加载数据
|
|
@@ -334,14 +318,14 @@ var Intercept = class extends BaseModel {
|
|
|
334
318
|
throw new Error("not implemented");
|
|
335
319
|
}
|
|
336
320
|
};
|
|
337
|
-
|
|
321
|
+
_a16 = IMPL_KEY;
|
|
338
322
|
/**
|
|
339
323
|
* @internal
|
|
340
324
|
*/
|
|
341
|
-
Intercept[
|
|
325
|
+
Intercept[_a16] = "intercept";
|
|
342
326
|
|
|
343
327
|
// src/features/Control.ts
|
|
344
|
-
var
|
|
328
|
+
var _a17;
|
|
345
329
|
var Control = class extends BaseModel {
|
|
346
330
|
/**
|
|
347
331
|
* 加载数据
|
|
@@ -350,14 +334,14 @@ var Control = class extends BaseModel {
|
|
|
350
334
|
throw new Error("not implemented");
|
|
351
335
|
}
|
|
352
336
|
};
|
|
353
|
-
|
|
337
|
+
_a17 = IMPL_KEY;
|
|
354
338
|
/**
|
|
355
339
|
* @internal
|
|
356
340
|
*/
|
|
357
|
-
Control[
|
|
341
|
+
Control[_a17] = "control";
|
|
358
342
|
|
|
359
343
|
// src/features/Button.ts
|
|
360
|
-
var
|
|
344
|
+
var _a18;
|
|
361
345
|
var Button = class extends BaseModel {
|
|
362
346
|
/**
|
|
363
347
|
* 加载数据
|
|
@@ -366,14 +350,14 @@ var Button = class extends BaseModel {
|
|
|
366
350
|
throw new Error("not implemented");
|
|
367
351
|
}
|
|
368
352
|
};
|
|
369
|
-
|
|
353
|
+
_a18 = IMPL_KEY;
|
|
370
354
|
/**
|
|
371
355
|
* @internal
|
|
372
356
|
*/
|
|
373
|
-
Button[
|
|
357
|
+
Button[_a18] = "button";
|
|
374
358
|
|
|
375
359
|
// src/features/Configuration.ts
|
|
376
|
-
var
|
|
360
|
+
var _a19;
|
|
377
361
|
var Configuration = class extends BaseModel {
|
|
378
362
|
/**
|
|
379
363
|
* 加载数据
|
|
@@ -382,14 +366,14 @@ var Configuration = class extends BaseModel {
|
|
|
382
366
|
throw new Error("not implemented");
|
|
383
367
|
}
|
|
384
368
|
};
|
|
385
|
-
|
|
369
|
+
_a19 = IMPL_KEY;
|
|
386
370
|
/**
|
|
387
371
|
* @internal
|
|
388
372
|
*/
|
|
389
|
-
Configuration[
|
|
373
|
+
Configuration[_a19] = "configuration";
|
|
390
374
|
|
|
391
375
|
// src/features/Page.ts
|
|
392
|
-
var
|
|
376
|
+
var _a20;
|
|
393
377
|
var Page = class extends BaseModel {
|
|
394
378
|
/**
|
|
395
379
|
* 加载数据
|
|
@@ -398,14 +382,14 @@ var Page = class extends BaseModel {
|
|
|
398
382
|
throw new Error("not implemented");
|
|
399
383
|
}
|
|
400
384
|
};
|
|
401
|
-
|
|
385
|
+
_a20 = IMPL_KEY;
|
|
402
386
|
/**
|
|
403
387
|
* @internal
|
|
404
388
|
*/
|
|
405
|
-
Page[
|
|
389
|
+
Page[_a20] = "page";
|
|
406
390
|
|
|
407
391
|
// src/features/Tab.ts
|
|
408
|
-
var
|
|
392
|
+
var _a21;
|
|
409
393
|
var Tab = class extends BaseModel {
|
|
410
394
|
/**
|
|
411
395
|
* 加载数据
|
|
@@ -414,14 +398,14 @@ var Tab = class extends BaseModel {
|
|
|
414
398
|
throw new Error("not implemented");
|
|
415
399
|
}
|
|
416
400
|
};
|
|
417
|
-
|
|
401
|
+
_a21 = IMPL_KEY;
|
|
418
402
|
/**
|
|
419
403
|
* @internal
|
|
420
404
|
*/
|
|
421
|
-
Tab[
|
|
405
|
+
Tab[_a21] = "tab";
|
|
422
406
|
|
|
423
407
|
// src/features/View.ts
|
|
424
|
-
var
|
|
408
|
+
var _a22;
|
|
425
409
|
var View = class extends BaseModel {
|
|
426
410
|
/**
|
|
427
411
|
* 加载数据
|
|
@@ -430,11 +414,11 @@ var View = class extends BaseModel {
|
|
|
430
414
|
throw new Error("not implemented");
|
|
431
415
|
}
|
|
432
416
|
};
|
|
433
|
-
|
|
417
|
+
_a22 = IMPL_KEY;
|
|
434
418
|
/**
|
|
435
419
|
* @internal
|
|
436
420
|
*/
|
|
437
|
-
View[
|
|
421
|
+
View[_a22] = "view";
|
|
438
422
|
|
|
439
423
|
// src/client.ts
|
|
440
424
|
function getImplClass(decl, impls) {
|
|
@@ -613,7 +597,7 @@ var SDKClient = _SDKClient;
|
|
|
613
597
|
/**
|
|
614
598
|
* SDK 版本号
|
|
615
599
|
*/
|
|
616
|
-
SDKClient.version = "2.0.2-dev.
|
|
600
|
+
SDKClient.version = "2.0.2-dev.5";
|
|
617
601
|
|
|
618
602
|
// src/types/biz.ts
|
|
619
603
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -764,7 +748,6 @@ var src_default = SDKClient;
|
|
|
764
748
|
export {
|
|
765
749
|
ActionSheet,
|
|
766
750
|
AttributeType,
|
|
767
|
-
Broadcast,
|
|
768
751
|
Button,
|
|
769
752
|
ButtonScene,
|
|
770
753
|
Clipboard,
|
package/dist/lib/index.js
CHANGED
|
@@ -50,7 +50,6 @@ var src_exports = {};
|
|
|
50
50
|
__export(src_exports, {
|
|
51
51
|
ActionSheet: () => ActionSheet,
|
|
52
52
|
AttributeType: () => AttributeType,
|
|
53
|
-
Broadcast: () => Broadcast,
|
|
54
53
|
Button: () => Button,
|
|
55
54
|
ButtonScene: () => ButtonScene,
|
|
56
55
|
Clipboard: () => Clipboard,
|
|
@@ -354,24 +353,8 @@ _a14 = IMPL_KEY;
|
|
|
354
353
|
*/
|
|
355
354
|
Utils[_a14] = "utils";
|
|
356
355
|
|
|
357
|
-
// src/biz/Broadcast.ts
|
|
358
|
-
var _a15;
|
|
359
|
-
var Broadcast = class extends BaseModel {
|
|
360
|
-
/**
|
|
361
|
-
* @internal
|
|
362
|
-
*/
|
|
363
|
-
static load() {
|
|
364
|
-
throw new Error("not implemented");
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
|
-
_a15 = IMPL_KEY;
|
|
368
|
-
/**
|
|
369
|
-
* @internal
|
|
370
|
-
*/
|
|
371
|
-
Broadcast[_a15] = "broadcast";
|
|
372
|
-
|
|
373
356
|
// src/features/ContainerModal.ts
|
|
374
|
-
var
|
|
357
|
+
var _a15;
|
|
375
358
|
var ContainerModal = class extends BaseModel {
|
|
376
359
|
/**
|
|
377
360
|
* 加载数据
|
|
@@ -380,14 +363,14 @@ var ContainerModal = class extends BaseModel {
|
|
|
380
363
|
throw new Error("not implemented");
|
|
381
364
|
}
|
|
382
365
|
};
|
|
383
|
-
|
|
366
|
+
_a15 = IMPL_KEY;
|
|
384
367
|
/**
|
|
385
368
|
* @internal
|
|
386
369
|
*/
|
|
387
|
-
ContainerModal[
|
|
370
|
+
ContainerModal[_a15] = "containerModal";
|
|
388
371
|
|
|
389
372
|
// src/features/Intercept.ts
|
|
390
|
-
var
|
|
373
|
+
var _a16;
|
|
391
374
|
var Intercept = class extends BaseModel {
|
|
392
375
|
/**
|
|
393
376
|
* 加载数据
|
|
@@ -396,14 +379,14 @@ var Intercept = class extends BaseModel {
|
|
|
396
379
|
throw new Error("not implemented");
|
|
397
380
|
}
|
|
398
381
|
};
|
|
399
|
-
|
|
382
|
+
_a16 = IMPL_KEY;
|
|
400
383
|
/**
|
|
401
384
|
* @internal
|
|
402
385
|
*/
|
|
403
|
-
Intercept[
|
|
386
|
+
Intercept[_a16] = "intercept";
|
|
404
387
|
|
|
405
388
|
// src/features/Control.ts
|
|
406
|
-
var
|
|
389
|
+
var _a17;
|
|
407
390
|
var Control = class extends BaseModel {
|
|
408
391
|
/**
|
|
409
392
|
* 加载数据
|
|
@@ -412,14 +395,14 @@ var Control = class extends BaseModel {
|
|
|
412
395
|
throw new Error("not implemented");
|
|
413
396
|
}
|
|
414
397
|
};
|
|
415
|
-
|
|
398
|
+
_a17 = IMPL_KEY;
|
|
416
399
|
/**
|
|
417
400
|
* @internal
|
|
418
401
|
*/
|
|
419
|
-
Control[
|
|
402
|
+
Control[_a17] = "control";
|
|
420
403
|
|
|
421
404
|
// src/features/Button.ts
|
|
422
|
-
var
|
|
405
|
+
var _a18;
|
|
423
406
|
var Button = class extends BaseModel {
|
|
424
407
|
/**
|
|
425
408
|
* 加载数据
|
|
@@ -428,14 +411,14 @@ var Button = class extends BaseModel {
|
|
|
428
411
|
throw new Error("not implemented");
|
|
429
412
|
}
|
|
430
413
|
};
|
|
431
|
-
|
|
414
|
+
_a18 = IMPL_KEY;
|
|
432
415
|
/**
|
|
433
416
|
* @internal
|
|
434
417
|
*/
|
|
435
|
-
Button[
|
|
418
|
+
Button[_a18] = "button";
|
|
436
419
|
|
|
437
420
|
// src/features/Configuration.ts
|
|
438
|
-
var
|
|
421
|
+
var _a19;
|
|
439
422
|
var Configuration = class extends BaseModel {
|
|
440
423
|
/**
|
|
441
424
|
* 加载数据
|
|
@@ -444,14 +427,14 @@ var Configuration = class extends BaseModel {
|
|
|
444
427
|
throw new Error("not implemented");
|
|
445
428
|
}
|
|
446
429
|
};
|
|
447
|
-
|
|
430
|
+
_a19 = IMPL_KEY;
|
|
448
431
|
/**
|
|
449
432
|
* @internal
|
|
450
433
|
*/
|
|
451
|
-
Configuration[
|
|
434
|
+
Configuration[_a19] = "configuration";
|
|
452
435
|
|
|
453
436
|
// src/features/Page.ts
|
|
454
|
-
var
|
|
437
|
+
var _a20;
|
|
455
438
|
var Page = class extends BaseModel {
|
|
456
439
|
/**
|
|
457
440
|
* 加载数据
|
|
@@ -460,14 +443,14 @@ var Page = class extends BaseModel {
|
|
|
460
443
|
throw new Error("not implemented");
|
|
461
444
|
}
|
|
462
445
|
};
|
|
463
|
-
|
|
446
|
+
_a20 = IMPL_KEY;
|
|
464
447
|
/**
|
|
465
448
|
* @internal
|
|
466
449
|
*/
|
|
467
|
-
Page[
|
|
450
|
+
Page[_a20] = "page";
|
|
468
451
|
|
|
469
452
|
// src/features/Tab.ts
|
|
470
|
-
var
|
|
453
|
+
var _a21;
|
|
471
454
|
var Tab = class extends BaseModel {
|
|
472
455
|
/**
|
|
473
456
|
* 加载数据
|
|
@@ -476,14 +459,14 @@ var Tab = class extends BaseModel {
|
|
|
476
459
|
throw new Error("not implemented");
|
|
477
460
|
}
|
|
478
461
|
};
|
|
479
|
-
|
|
462
|
+
_a21 = IMPL_KEY;
|
|
480
463
|
/**
|
|
481
464
|
* @internal
|
|
482
465
|
*/
|
|
483
|
-
Tab[
|
|
466
|
+
Tab[_a21] = "tab";
|
|
484
467
|
|
|
485
468
|
// src/features/View.ts
|
|
486
|
-
var
|
|
469
|
+
var _a22;
|
|
487
470
|
var View = class extends BaseModel {
|
|
488
471
|
/**
|
|
489
472
|
* 加载数据
|
|
@@ -492,11 +475,11 @@ var View = class extends BaseModel {
|
|
|
492
475
|
throw new Error("not implemented");
|
|
493
476
|
}
|
|
494
477
|
};
|
|
495
|
-
|
|
478
|
+
_a22 = IMPL_KEY;
|
|
496
479
|
/**
|
|
497
480
|
* @internal
|
|
498
481
|
*/
|
|
499
|
-
View[
|
|
482
|
+
View[_a22] = "view";
|
|
500
483
|
|
|
501
484
|
// src/client.ts
|
|
502
485
|
function getImplClass(decl, impls) {
|
|
@@ -675,7 +658,7 @@ var SDKClient = _SDKClient;
|
|
|
675
658
|
/**
|
|
676
659
|
* SDK 版本号
|
|
677
660
|
*/
|
|
678
|
-
SDKClient.version = "2.0.2-dev.
|
|
661
|
+
SDKClient.version = "2.0.2-dev.5";
|
|
679
662
|
|
|
680
663
|
// src/types/biz.ts
|
|
681
664
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -827,7 +810,6 @@ var src_default = SDKClient;
|
|
|
827
810
|
0 && (module.exports = {
|
|
828
811
|
ActionSheet,
|
|
829
812
|
AttributeType,
|
|
830
|
-
Broadcast,
|
|
831
813
|
Button,
|
|
832
814
|
ButtonScene,
|
|
833
815
|
Clipboard,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -391,7 +391,7 @@ interface PageFeatureContext {
|
|
|
391
391
|
/**
|
|
392
392
|
* 配置页面构成
|
|
393
393
|
*/
|
|
394
|
-
interface
|
|
394
|
+
interface ConfigurationFeatureContext {
|
|
395
395
|
/**
|
|
396
396
|
* 空间标识
|
|
397
397
|
*/
|
|
@@ -1256,6 +1256,7 @@ declare abstract class WorkItemFinder extends BaseModel {
|
|
|
1256
1256
|
*/
|
|
1257
1257
|
private static load;
|
|
1258
1258
|
/**
|
|
1259
|
+
* only web 2.0
|
|
1259
1260
|
* 打开工作项实例筛选条件面板
|
|
1260
1261
|
* @param options
|
|
1261
1262
|
* @param callback
|
|
@@ -1303,35 +1304,6 @@ declare abstract class Utils extends BaseModel {
|
|
|
1303
1304
|
}>;
|
|
1304
1305
|
}
|
|
1305
1306
|
|
|
1306
|
-
interface IBroadcastDetailPageWorkItemValueChangedEvent {
|
|
1307
|
-
id: number;
|
|
1308
|
-
spaceId: string;
|
|
1309
|
-
workObjectId: string;
|
|
1310
|
-
changedKeys: Array<AttributeType | string>;
|
|
1311
|
-
}
|
|
1312
|
-
/**
|
|
1313
|
-
* @public
|
|
1314
|
-
* 事件中心
|
|
1315
|
-
*/
|
|
1316
|
-
declare abstract class Broadcast extends BaseModel {
|
|
1317
|
-
/**
|
|
1318
|
-
* @internal
|
|
1319
|
-
*/
|
|
1320
|
-
protected static [IMPL_KEY]: string;
|
|
1321
|
-
/**
|
|
1322
|
-
* @internal
|
|
1323
|
-
*/
|
|
1324
|
-
private static load;
|
|
1325
|
-
/**
|
|
1326
|
-
* 监听详情页工作项值变化
|
|
1327
|
-
* @param options.watchKeys 监听的工作项属性 / 字段 ID 列表
|
|
1328
|
-
* @param callback 当监听值发生变化时触发
|
|
1329
|
-
*/
|
|
1330
|
-
abstract onDetailPageWorkItemValueChanged(options: {
|
|
1331
|
-
watchKeys: Array<string | AttributeType>;
|
|
1332
|
-
}, callback: (changed: IBroadcastDetailPageWorkItemValueChangedEvent) => void): Off;
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
1307
|
/**
|
|
1336
1308
|
* @public
|
|
1337
1309
|
* 插件容器模态框
|
|
@@ -1406,7 +1378,7 @@ declare abstract class Control extends BaseModel {
|
|
|
1406
1378
|
*/
|
|
1407
1379
|
abstract getCreateWorkItemFormItemValues(keys: Array<{
|
|
1408
1380
|
key: string | AttributeType;
|
|
1409
|
-
type: FieldType
|
|
1381
|
+
type: Exclude<FieldType, FieldType.richText | FieldType.singleSignal | FieldType.multiSignal | FieldType.singleVoting | FieldType.multiVoting>;
|
|
1410
1382
|
}>): Promise<Record<string | AttributeType, any>>;
|
|
1411
1383
|
/**
|
|
1412
1384
|
* only web 2.0
|
|
@@ -1455,7 +1427,7 @@ declare abstract class Configuration extends BaseModel {
|
|
|
1455
1427
|
/**
|
|
1456
1428
|
* 获取当前配置点位的上下文
|
|
1457
1429
|
*/
|
|
1458
|
-
abstract getContext(): Promise<
|
|
1430
|
+
abstract getContext(): Promise<ConfigurationFeatureContext>;
|
|
1459
1431
|
}
|
|
1460
1432
|
|
|
1461
1433
|
/**
|
|
@@ -1723,4 +1695,4 @@ declare class NotSupportedError extends CustomError {
|
|
|
1723
1695
|
* @packageDocumentation
|
|
1724
1696
|
*/
|
|
1725
1697
|
|
|
1726
|
-
export { ActionSheet, ActionSheetOptions, AttributeType, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject,
|
|
1698
|
+
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 };
|