@lark-project/js-sdk 2.0.1-alpha.12 → 2.0.1-alpha.13
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 +25 -1
- package/dist/lib/index.js +26 -1
- package/dist/types/index.d.ts +39 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -340,6 +340,22 @@ _a17 = IMPL_KEY;
|
|
|
340
340
|
*/
|
|
341
341
|
Control[_a17] = "Control";
|
|
342
342
|
|
|
343
|
+
// src/features/Button.ts
|
|
344
|
+
var _a18;
|
|
345
|
+
var Button = class extends BaseModel {
|
|
346
|
+
/**
|
|
347
|
+
* 加载数据
|
|
348
|
+
*/
|
|
349
|
+
static load() {
|
|
350
|
+
throw new Error("not implemented");
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
_a18 = IMPL_KEY;
|
|
354
|
+
/**
|
|
355
|
+
* @internal
|
|
356
|
+
*/
|
|
357
|
+
Button[_a18] = "Button";
|
|
358
|
+
|
|
343
359
|
// src/client.ts
|
|
344
360
|
function getImplClass(decl, impls) {
|
|
345
361
|
return impls == null ? void 0 : impls[decl[IMPL_KEY]];
|
|
@@ -369,6 +385,13 @@ var _SDKClient = class {
|
|
|
369
385
|
get control() {
|
|
370
386
|
return getImplValue(Control, this._meegoBizHub);
|
|
371
387
|
}
|
|
388
|
+
/**
|
|
389
|
+
* 按钮点位容器特有能力
|
|
390
|
+
* only 2.0
|
|
391
|
+
*/
|
|
392
|
+
get button() {
|
|
393
|
+
return getImplValue(Button, this._meegoBizHub);
|
|
394
|
+
}
|
|
372
395
|
/**
|
|
373
396
|
* 应用导航
|
|
374
397
|
*/
|
|
@@ -482,7 +505,7 @@ var SDKClient = _SDKClient;
|
|
|
482
505
|
/**
|
|
483
506
|
* SDK 版本号
|
|
484
507
|
*/
|
|
485
|
-
SDKClient.version = "2.0.1-alpha.
|
|
508
|
+
SDKClient.version = "2.0.1-alpha.13";
|
|
486
509
|
|
|
487
510
|
// src/types/biz.ts
|
|
488
511
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -632,6 +655,7 @@ var src_default = SDKClient;
|
|
|
632
655
|
export {
|
|
633
656
|
ActionSheet,
|
|
634
657
|
AttributeType,
|
|
658
|
+
Button,
|
|
635
659
|
ButtonScene,
|
|
636
660
|
Clipboard,
|
|
637
661
|
ContainerModal,
|
package/dist/lib/index.js
CHANGED
|
@@ -50,6 +50,7 @@ var src_exports = {};
|
|
|
50
50
|
__export(src_exports, {
|
|
51
51
|
ActionSheet: () => ActionSheet,
|
|
52
52
|
AttributeType: () => AttributeType,
|
|
53
|
+
Button: () => Button,
|
|
53
54
|
ButtonScene: () => ButtonScene,
|
|
54
55
|
Clipboard: () => Clipboard,
|
|
55
56
|
ContainerModal: () => ContainerModal,
|
|
@@ -396,6 +397,22 @@ _a17 = IMPL_KEY;
|
|
|
396
397
|
*/
|
|
397
398
|
Control[_a17] = "Control";
|
|
398
399
|
|
|
400
|
+
// src/features/Button.ts
|
|
401
|
+
var _a18;
|
|
402
|
+
var Button = class extends BaseModel {
|
|
403
|
+
/**
|
|
404
|
+
* 加载数据
|
|
405
|
+
*/
|
|
406
|
+
static load() {
|
|
407
|
+
throw new Error("not implemented");
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
_a18 = IMPL_KEY;
|
|
411
|
+
/**
|
|
412
|
+
* @internal
|
|
413
|
+
*/
|
|
414
|
+
Button[_a18] = "Button";
|
|
415
|
+
|
|
399
416
|
// src/client.ts
|
|
400
417
|
function getImplClass(decl, impls) {
|
|
401
418
|
return impls == null ? void 0 : impls[decl[IMPL_KEY]];
|
|
@@ -425,6 +442,13 @@ var _SDKClient = class {
|
|
|
425
442
|
get control() {
|
|
426
443
|
return getImplValue(Control, this._meegoBizHub);
|
|
427
444
|
}
|
|
445
|
+
/**
|
|
446
|
+
* 按钮点位容器特有能力
|
|
447
|
+
* only 2.0
|
|
448
|
+
*/
|
|
449
|
+
get button() {
|
|
450
|
+
return getImplValue(Button, this._meegoBizHub);
|
|
451
|
+
}
|
|
428
452
|
/**
|
|
429
453
|
* 应用导航
|
|
430
454
|
*/
|
|
@@ -538,7 +562,7 @@ var SDKClient = _SDKClient;
|
|
|
538
562
|
/**
|
|
539
563
|
* SDK 版本号
|
|
540
564
|
*/
|
|
541
|
-
SDKClient.version = "2.0.1-alpha.
|
|
565
|
+
SDKClient.version = "2.0.1-alpha.13";
|
|
542
566
|
|
|
543
567
|
// src/types/biz.ts
|
|
544
568
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -689,6 +713,7 @@ var src_default = SDKClient;
|
|
|
689
713
|
0 && (module.exports = {
|
|
690
714
|
ActionSheet,
|
|
691
715
|
AttributeType,
|
|
716
|
+
Button,
|
|
692
717
|
ButtonScene,
|
|
693
718
|
Clipboard,
|
|
694
719
|
ContainerModal,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -328,10 +328,10 @@ declare enum ButtonScene {
|
|
|
328
328
|
workItemNode = 4
|
|
329
329
|
}
|
|
330
330
|
/**
|
|
331
|
-
*
|
|
332
|
-
*
|
|
331
|
+
* 工作项实例按钮上下文
|
|
332
|
+
* 适用场景:工作项-更多 / 节点-更多 / 节点流转
|
|
333
333
|
*/
|
|
334
|
-
interface
|
|
334
|
+
interface WorkItemButtonFeatureContext {
|
|
335
335
|
/**
|
|
336
336
|
* 空间标识
|
|
337
337
|
*/
|
|
@@ -344,11 +344,20 @@ interface ButtonFeatureContext {
|
|
|
344
344
|
* 工作项实例唯一标识
|
|
345
345
|
*/
|
|
346
346
|
workItemId: number;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* 新建按钮上下文
|
|
350
|
+
*/
|
|
351
|
+
interface CreateButtonFeatureContext {
|
|
347
352
|
/**
|
|
348
|
-
*
|
|
353
|
+
* 空间标识
|
|
349
354
|
*/
|
|
350
|
-
|
|
355
|
+
spaceId: string;
|
|
351
356
|
}
|
|
357
|
+
/**
|
|
358
|
+
* 按钮构成
|
|
359
|
+
*/
|
|
360
|
+
type ButtonFeatureContext = WorkItemButtonFeatureContext | CreateButtonFeatureContext;
|
|
352
361
|
/**
|
|
353
362
|
* 内嵌页面构成
|
|
354
363
|
* 一个单独的导航入口+内嵌页面
|
|
@@ -1255,6 +1264,25 @@ declare abstract class Control extends BaseModel {
|
|
|
1255
1264
|
abstract getContext(): Promise<ControlFeatureContext>;
|
|
1256
1265
|
}
|
|
1257
1266
|
|
|
1267
|
+
/**
|
|
1268
|
+
* @public
|
|
1269
|
+
* 按钮
|
|
1270
|
+
*/
|
|
1271
|
+
declare abstract class Button extends BaseModel {
|
|
1272
|
+
/**
|
|
1273
|
+
* @internal
|
|
1274
|
+
*/
|
|
1275
|
+
protected static [IMPL_KEY]: string;
|
|
1276
|
+
/**
|
|
1277
|
+
* 加载数据
|
|
1278
|
+
*/
|
|
1279
|
+
static load(): Promise<Button>;
|
|
1280
|
+
/**
|
|
1281
|
+
* 获取当前按钮的上下文
|
|
1282
|
+
*/
|
|
1283
|
+
abstract getContext(): Promise<ButtonFeatureContext>;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1258
1286
|
/**
|
|
1259
1287
|
* @public
|
|
1260
1288
|
* SDKClient 的配置项
|
|
@@ -1287,6 +1315,11 @@ declare class SDKClient {
|
|
|
1287
1315
|
* only 2.0
|
|
1288
1316
|
*/
|
|
1289
1317
|
get control(): Control;
|
|
1318
|
+
/**
|
|
1319
|
+
* 按钮点位容器特有能力
|
|
1320
|
+
* only 2.0
|
|
1321
|
+
*/
|
|
1322
|
+
get button(): Button;
|
|
1290
1323
|
/**
|
|
1291
1324
|
* 应用导航
|
|
1292
1325
|
*/
|
|
@@ -1438,4 +1471,4 @@ declare class NotSupportedError extends CustomError {
|
|
|
1438
1471
|
* @packageDocumentation
|
|
1439
1472
|
*/
|
|
1440
1473
|
|
|
1441
|
-
export { ActionSheet, ActionSheetOptions, AttributeType, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, ContainerModal, Context, Control, ControlFeatureContext, Field, FieldType, FlowMode, IMPL_KEY, IPluginCustomBuildConfig, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, MEEGO_BIZ_HUB, Modal, ModalOptions, Navigation, NoAuthError, NodeStatus, NotFoundError, NotSupportedError, OutOfLimitError, PageFeatureContext, RichTextEditor, RichTextEditorContent, RichTextEditorOptions, Role, RoleOwners, SDKClient, SDKClientOptions, Space, Storage, TabFeatureContext, Toast, ToastOptions, User, Utils, ViewFeatureContext, WorkItem, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|
|
1474
|
+
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, ModalOptions, 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 };
|