zova-module-a-style 5.0.40 → 5.0.41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-module-a-style",
3
- "version": "5.0.40",
3
+ "version": "5.0.41",
4
4
  "title": "a-style",
5
5
  "zovaModule": {
6
6
  "capabilities": {
@@ -41,5 +41,5 @@
41
41
  "csx": "^10.0.2",
42
42
  "typestyle": "^2.4.0"
43
43
  },
44
- "gitHead": "200ff5791bd6362080428f5b6c6c8f2a82c7d9d0"
44
+ "gitHead": "82b2bc7d0826a0e8619a318de31e078fcaf47825"
45
45
  }
@@ -12,6 +12,9 @@ declare module 'zova' {
12
12
  export * from '../config/config.js';
13
13
  import { config } from '../config/config.js';
14
14
  /** config: end */
15
+ /** monkey: begin */
16
+ export * from '../monkey.js';
17
+ /** monkey: end */
15
18
  /** scope: begin */
16
19
  import { BeanScopeBase, Scope, TypeModuleResource } from 'zova';
17
20
 
package/src/index.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from './.metadata/index.js';
2
2
  export * from './types.js';
3
- export * from './monkey.js';
package/src/monkey.ts CHANGED
@@ -1,9 +1,18 @@
1
1
  import { style, createTypeStyle, TypeStyle } from 'typestyle';
2
- import { BeanBase, BeanContainer, BeanSimple, IMonkeySystem, SymbolModuleName, useComputed } from 'zova';
2
+ import {
3
+ BeanBase,
4
+ BeanContainer,
5
+ BeanSimple,
6
+ IMonkeyAppInitialize,
7
+ IMonkeyAppInitialized,
8
+ IMonkeyBeanInit,
9
+ SymbolModuleName,
10
+ useComputed,
11
+ } from 'zova';
3
12
  import { ScopeModule, __ThisModule__ } from './.metadata/this.js';
4
13
  import { BeanTheme } from './bean/bean.theme.js';
5
14
 
6
- export class Monkey extends BeanSimple implements IMonkeySystem {
15
+ export class Monkey extends BeanSimple implements IMonkeyAppInitialize, IMonkeyAppInitialized, IMonkeyBeanInit {
7
16
  private _beanTheme: BeanTheme;
8
17
  private _beanStyleDefault: any;
9
18
  private _styleInstance: TypeStyle;
@@ -30,7 +39,6 @@ export class Monkey extends BeanSimple implements IMonkeySystem {
30
39
  const scope: ScopeModule = await this.bean.getScope(__ThisModule__);
31
40
  this._beanStyleDefault = await this.bean._getBean(scope.config.defaultStyle, true);
32
41
  }
33
- async appReady() {}
34
42
  async beanInit(bean: BeanContainer, beanInstance: BeanBase) {
35
43
  const self = this;
36
44
  bean.defineProperty(beanInstance, '$style', {
@@ -64,9 +72,6 @@ export class Monkey extends BeanSimple implements IMonkeySystem {
64
72
  },
65
73
  });
66
74
  }
67
- async beanInited(_bean: BeanContainer, _beanInstance: BeanBase) {}
68
- beanDispose(_bean: BeanContainer, _beanInstance: BeanBase) {}
69
- beanDisposed(_bean: BeanContainer, _beanInstance: BeanBase) {}
70
75
 
71
76
  _patchStyle(beanInstance: BeanBase, props, ...args) {
72
77
  if (process.env.DEV) {