zova-module-a-behaviors 5.1.18 → 5.1.22

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.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/bean/behavior.focus.ts","../src/.metadata/index.ts"],"sourcesContent":["import type { VNode } from 'vue';\nimport type { IDecoratorBehaviorOptions, NextBehavior } from 'zova-module-a-behavior';\n\nimport { BeanBehaviorBase, Behavior } from 'zova-module-a-behavior';\n\nexport interface IBehaviorPropsInputFocus {\n ref?: any;\n}\n\nexport interface IBehaviorPropsOutputFocus extends IBehaviorPropsInputFocus {}\n\nexport interface IBehaviorOptionsFocus extends IDecoratorBehaviorOptions {\n always?: boolean;\n}\n\n@Behavior<IBehaviorOptionsFocus>()\nexport class BehaviorFocus extends BeanBehaviorBase<\n IBehaviorOptionsFocus,\n IBehaviorPropsInputFocus,\n IBehaviorPropsOutputFocus\n> {\n inputRef?: HTMLElement;\n\n protected render(\n props: IBehaviorPropsInputFocus,\n next: NextBehavior<IBehaviorPropsOutputFocus>,\n ): VNode {\n const refOuter = props?.ref;\n props = {\n ...props,\n ref: (ref: HTMLElement) => {\n if (this.$options.always || !this.inputRef) {\n ref.focus?.();\n }\n this.inputRef = ref;\n refOuter?.(ref);\n },\n };\n return next(props);\n }\n}\n","// eslint-disable\n/** behavior: begin */\nexport * from '../bean/behavior.focus.js';\nimport { IBehaviorOptionsFocus } from '../bean/behavior.focus.js';\nimport 'zova-module-a-behavior';\ndeclare module 'zova-module-a-behavior' {\n \n export interface IBehaviorRecord {\n 'a-behaviors:focus': IBehaviorOptionsFocus;\n }\n\n \n}\ndeclare module 'zova-module-a-behaviors' {\n \n export interface BehaviorFocus {\n /** @internal */\n get scope(): ScopeModuleABehaviors;\n }\n\n export interface BehaviorFocus {\n get $beanFullName(): 'a-behaviors.behavior.focus';\n get $onionName(): 'a-behaviors:focus';\n get $onionOptions(): IBehaviorOptionsFocus;\n } \n}\n/** behavior: end */\n/** behavior: begin */\nimport { BehaviorFocus } from '../bean/behavior.focus.js';\nimport 'zova';\ndeclare module 'zova' {\n export interface IBeanRecordLocal {\n 'a-behaviors.behavior.focus': BehaviorFocus;\n }\n}\n/** behavior: end */\n/** behaviors: begin */\nimport 'vue';\nimport 'vue/jsx-runtime';\n\ndeclare module 'vue' {\n export interface InputHTMLAttributes {\n 'bs-behaviors-focus'?: IBehaviorOptionsFocus | '' | boolean;\n }\n}\n\ndeclare module 'vue/jsx-runtime' {\n namespace JSX {\n // need define class/style in IntrinsicAttributes\n export interface IntrinsicAttributes {\n 'bs-behaviors-focus'?: IBehaviorOptionsFocus | '' | boolean;\n }\n }\n}\n/** behaviors: end */\n/** scope: begin */\nimport { BeanScopeBase, type BeanScopeUtil } from 'zova';\nimport { Scope } from 'zova-module-a-bean';\n\n@Scope()\nexport class ScopeModuleABehaviors extends BeanScopeBase {}\n\nexport interface ScopeModuleABehaviors {\n util: BeanScopeUtil;\n}\n\nimport 'zova';\ndeclare module 'zova' {\n export interface IBeanScopeRecord {\n 'a-behaviors': ScopeModuleABehaviors;\n }\n \n \n\n \n\n \n}\n \n/** scope: end */\n"],"mappings":";;;;;;AAAA,IAAA,QAAO,SAAO;AAGd,IAAS,iBAAkB,SAAQ,SAAS,GAAA,UAAW,SAAY,EAAA,QAAA,cAEnE,CAAA,GAAA,OAAO,WAAU,QAAA,WAAA,MAAA,sBAAyB,iBAAA;CACxC,YAAS,GAAA,MAAA;EACX,MAAA,GAAA,IAAA;;CAEA;;EAEA,MAAO,WAAU,OAAA;EACf,QAAS;GACX,GAAA;;IAEC,IAAS,KAAA,SAAA,UAAuB,CAAA,KAAA,UAC1B,IAAM,QAAA;IAEX,KAAA,WAAA;IACA,WAAA,GAAA;GACA;EACA;;CAEA;AACF,CAAC,KAAG,QAAO,KAAA;;;;;ACxBX,IAAG,MAAO,OAAA;AAkBV,IAAQ,yBAAA,OAAA,MAAA,GAAA,QAAA,SAAA,EAAA,QAAA,cAER,CAAC,GAAG,KAAI,SAAO,MAAS,SAAC,MAAc,8BAAA,cAAA,CAAA,CAAA,KAAA,MAAA,KAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/bean/behavior.focus.ts","../src/.metadata/index.ts"],"sourcesContent":["var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { BeanBehaviorBase, Behavior } from 'zova-module-a-behavior';\nexport let BehaviorFocus = (_dec = Behavior(), _dec2 = __z_BeanInfo({\n module: \"a-behaviors\"\n}), _dec(_class = _dec2(_class = class BehaviorFocus extends BeanBehaviorBase {\n constructor(...args) {\n super(...args);\n this.inputRef = void 0;\n }\n render(props, next) {\n const refOuter = props?.ref;\n props = {\n ...props,\n ref: ref => {\n if (this.$options.always || !this.inputRef) {\n ref.focus?.();\n }\n this.inputRef = ref;\n refOuter?.(ref);\n }\n };\n return next(props);\n }\n}) || _class) || _class);","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\n// eslint-disable\n/** behavior: begin */\nexport * from '../bean/behavior.focus.js';\nimport 'zova-module-a-behavior';\n/** behavior: end */\n/** behavior: begin */\nimport { BehaviorFocus } from '../bean/behavior.focus.js';\nimport 'zova';\n/** behavior: end */\n/** behaviors: begin */\nimport 'vue';\nimport 'vue/jsx-runtime';\n/** behaviors: end */\n/** scope: begin */\nimport { BeanScopeBase } from 'zova';\nimport { Scope } from 'zova-module-a-bean';\nexport let ScopeModuleABehaviors = (_dec = Scope(), _dec2 = __z_BeanInfo({\n module: \"a-behaviors\"\n}), _dec(_class = _dec2(_class = class ScopeModuleABehaviors extends BeanScopeBase {}) || _class) || _class);\nimport 'zova';\n\n/** scope: end */"],"mappings":";;;;;;AAAA,IAAI,QAAM,SAAO;AAGjB,IAAW,iBAAiB,SAAO,SAAS,GAAG,UAAQ,SAAa,EAClE,QAAQ,cACV,CAAC,GAAG,OAAK,WAAS,QAAM,WAAS,MAAM,sBAAsB,iBAAiB;CAC5E,YAAY,GAAG,MAAM;EACnB,MAAM,GAAG,IAAI;EACb,KAAK,WAAW,KAAK;CACvB;CACA,OAAO,OAAO,MAAM;EAClB,MAAM,WAAW,OAAO;EACxB,QAAQ;GACN,GAAG;GACH,MAAK,QAAO;IACV,IAAI,KAAK,SAAS,UAAU,CAAC,KAAK,UAChC,IAAI,QAAQ;IAEd,KAAK,WAAW;IAChB,WAAW,GAAG;GAChB;EACF;EACA,OAAO,KAAK,KAAK;CACnB;AACF,CAAC,KAAK,QAAM,KAAK;;;;;ACxBjB,IAAI,MAAM,OAAO;AAkBjB,IAAW,yBAAyB,OAAO,MAAM,GAAG,QAAQ,SAAa,EACvE,QAAQ,cACV,CAAC,GAAG,KAAK,SAAS,MAAM,SAAS,MAAM,8BAA8B,cAAc,CAAC,CAAC,KAAK,MAAM,KAAK"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-module-a-behaviors",
3
- "version": "5.1.18",
4
- "gitHead": "3380f8c5d3989242b60dc2a34cbb330f74335cbe",
3
+ "version": "5.1.22",
4
+ "gitHead": "eb85d771ef75776a439e56df3af8be6a3a36c1c2",
5
5
  "description": "",
6
6
  "keywords": [
7
7
  "Zova Module"
@@ -27,7 +27,7 @@
27
27
  "tsc:publish": "npm run clean && node ../../../../../packages-cli/cli/src/bin/zova.ts :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
28
28
  "prepublishOnly": "npm run tsc:publish",
29
29
  "prepack": "clean-package",
30
- "postpack": "clean-package restore && npm run clean"
30
+ "postpack": "clean-package restore"
31
31
  },
32
32
  "title": "a-behaviors"
33
33
  }
@@ -4,15 +4,15 @@ export * from '../bean/behavior.focus.js';
4
4
  import { IBehaviorOptionsFocus } from '../bean/behavior.focus.js';
5
5
  import 'zova-module-a-behavior';
6
6
  declare module 'zova-module-a-behavior' {
7
-
7
+
8
8
  export interface IBehaviorRecord {
9
9
  'a-behaviors:focus': IBehaviorOptionsFocus;
10
10
  }
11
11
 
12
-
12
+
13
13
  }
14
14
  declare module 'zova-module-a-behaviors' {
15
-
15
+
16
16
  export interface BehaviorFocus {
17
17
  /** @internal */
18
18
  get scope(): ScopeModuleABehaviors;
@@ -22,7 +22,7 @@ declare module 'zova-module-a-behaviors' {
22
22
  get $beanFullName(): 'a-behaviors.behavior.focus';
23
23
  get $onionName(): 'a-behaviors:focus';
24
24
  get $onionOptions(): IBehaviorOptionsFocus;
25
- }
25
+ }
26
26
  }
27
27
  /** behavior: end */
28
28
  /** behavior: begin */
@@ -69,12 +69,12 @@ declare module 'zova' {
69
69
  export interface IBeanScopeRecord {
70
70
  'a-behaviors': ScopeModuleABehaviors;
71
71
  }
72
-
73
-
74
72
 
75
-
76
73
 
77
-
74
+
75
+
76
+
77
+
78
78
  }
79
-
79
+
80
80
  /** scope: end */