@ibiz-template/runtime 0.7.12 → 0.7.13-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/index.esm.js +53 -0
- package/dist/index.system.min.js +1 -1
- package/out/controller/common/index.d.ts +1 -0
- package/out/controller/common/index.d.ts.map +1 -1
- package/out/controller/common/index.js +1 -0
- package/out/controller/common/view/app-login-view.controller.d.ts +54 -0
- package/out/controller/common/view/app-login-view.controller.d.ts.map +1 -0
- package/out/controller/common/view/app-login-view.controller.js +62 -0
- package/out/interface/controller/controller/view/i-app-login-view.controller.d.ts +40 -0
- package/out/interface/controller/controller/view/i-app-login-view.controller.d.ts.map +1 -0
- package/out/interface/controller/controller/view/i-app-login-view.controller.js +1 -0
- package/out/interface/controller/controller/view/index.d.ts +1 -0
- package/out/interface/controller/controller/view/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -17381,6 +17381,58 @@ var AppDataUploadViewController = class extends ViewController {
|
|
|
17381
17381
|
var MobViewController = class extends ViewController {
|
|
17382
17382
|
};
|
|
17383
17383
|
|
|
17384
|
+
// src/controller/common/view/app-login-view.controller.ts
|
|
17385
|
+
import { AsyncSeriesHook as AsyncSeriesHook2 } from "qx-util";
|
|
17386
|
+
var AppLoginViewController = class extends ViewController {
|
|
17387
|
+
constructor() {
|
|
17388
|
+
super(...arguments);
|
|
17389
|
+
/**
|
|
17390
|
+
* 钩子
|
|
17391
|
+
*
|
|
17392
|
+
* @memberof AppLoginViewController
|
|
17393
|
+
*/
|
|
17394
|
+
this.hooks = {
|
|
17395
|
+
beforeLogin: new AsyncSeriesHook2(),
|
|
17396
|
+
afterLogin: new AsyncSeriesHook2()
|
|
17397
|
+
};
|
|
17398
|
+
}
|
|
17399
|
+
/**
|
|
17400
|
+
* 校验登录视图
|
|
17401
|
+
*
|
|
17402
|
+
* @return {*} {Promise<boolean>}
|
|
17403
|
+
* @memberof AppLoginViewController
|
|
17404
|
+
*/
|
|
17405
|
+
async validate(parentId) {
|
|
17406
|
+
const context = {
|
|
17407
|
+
validate: true,
|
|
17408
|
+
parentId
|
|
17409
|
+
};
|
|
17410
|
+
await this.hooks.beforeLogin.call(context);
|
|
17411
|
+
return context.validate;
|
|
17412
|
+
}
|
|
17413
|
+
/**
|
|
17414
|
+
* 销毁Hooks钩子
|
|
17415
|
+
*
|
|
17416
|
+
* @protected
|
|
17417
|
+
* @memberof AppLoginViewController
|
|
17418
|
+
*/
|
|
17419
|
+
destroyHooks() {
|
|
17420
|
+
this.hooks.beforeLogin.clear();
|
|
17421
|
+
this.hooks.afterLogin.clear();
|
|
17422
|
+
}
|
|
17423
|
+
/**
|
|
17424
|
+
* 生命周期-销毁完成
|
|
17425
|
+
*
|
|
17426
|
+
* @protected
|
|
17427
|
+
* @return {*} {Promise<void>}
|
|
17428
|
+
* @memberof AppLoginViewController
|
|
17429
|
+
*/
|
|
17430
|
+
async onDestroyed() {
|
|
17431
|
+
await super.onDeactivated();
|
|
17432
|
+
this.destroyHooks();
|
|
17433
|
+
}
|
|
17434
|
+
};
|
|
17435
|
+
|
|
17384
17436
|
// src/controller/common/view/wf-step-trace-view.controller.ts
|
|
17385
17437
|
var WFStepTraceViewController = class extends ViewController {
|
|
17386
17438
|
initState() {
|
|
@@ -42158,6 +42210,7 @@ export {
|
|
|
42158
42210
|
AppDataEntity,
|
|
42159
42211
|
AppDataUploadViewController,
|
|
42160
42212
|
AppFuncCommand,
|
|
42213
|
+
AppLoginViewController,
|
|
42161
42214
|
AppMenuController,
|
|
42162
42215
|
AppMenuIconViewController,
|
|
42163
42216
|
Application,
|