zova-module-a-command 5.1.29 → 5.1.34

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.
@@ -1,7 +1,12 @@
1
+ import type {
2
+ ICommandExecute,
3
+ ICommandOptionsBase,
4
+ NextCommandExecute,
5
+ } from 'zova-module-a-command';
1
6
  import type { IJsxRenderContextBase } from 'zova-module-a-openapi';
2
7
 
3
8
  import { BeanBase } from 'zova';
4
- import { Command, type ICommandExecute, type ICommandOptionsBase, type NextCommandExecute } from 'zova-module-a-command';
9
+ import { Command } from 'zova-module-a-command';
5
10
 
6
11
  export type TypeCommand<%=argv.beanNameCapitalize%>Result = unknown;
7
12
 
@@ -1,6 +1,11 @@
1
+ import type {
2
+ ICommandBulkOptionsBase,
3
+ ICommandExecute,
4
+ NextCommandExecute,
5
+ } from 'zova-module-a-command';
1
6
  import type { IJsxRenderContextBase } from 'zova-module-a-openapi';
2
7
 
3
- import { BeanCommandBulkBase, Command, type ICommandBulkOptionsBase, type ICommandExecute, type NextCommandExecute } from 'zova-module-a-command';
8
+ import { BeanCommandBulkBase, Command } from 'zova-module-a-command';
4
9
 
5
10
  export type TypeCommand<%=argv.beanNameCapitalize%>Result = unknown;
6
11
 
@@ -0,0 +1,20 @@
1
+ import type {
2
+ ICommandExecute,
3
+ ICommandDetailsRowOptionsBase,
4
+ NextCommandExecute,
5
+ } from 'zova-module-a-command';
6
+ import type { IJsxRenderContextBase } from 'zova-module-a-openapi';
7
+
8
+ import { BeanBase } from 'zova';
9
+ import { Command } from 'zova-module-a-command';
10
+
11
+ export type TypeCommand<%=argv.beanNameCapitalize%>Result = unknown;
12
+
13
+ export interface ICommandOptions<%=argv.beanNameCapitalize%> extends ICommandDetailsRowOptionsBase<TypeCommand<%=argv.beanNameCapitalize%>Result> {}
14
+
15
+ @Command<ICommandOptions<%=argv.beanNameCapitalize%>>()
16
+ export class Command<%=argv.beanNameCapitalize%> extends BeanBase implements ICommandExecute {
17
+ execute(_options: ICommandOptions<%=argv.beanNameCapitalize%>, _renderContext: IJsxRenderContextBase, next: NextCommandExecute) {
18
+ return next();
19
+ }
20
+ }
@@ -1,6 +1,11 @@
1
+ import type {
2
+ ICommandExecute,
3
+ ICommandRowOptionsBase,
4
+ NextCommandExecute,
5
+ } from 'zova-module-a-command';
1
6
  import type { IJsxRenderContextBase } from 'zova-module-a-openapi';
2
7
 
3
- import { BeanCommandRowBase, Command, type ICommandExecute, type ICommandRowOptionsBase, type NextCommandExecute } from 'zova-module-a-command';
8
+ import { BeanCommandRowBase, Command } from 'zova-module-a-command';
4
9
 
5
10
  export type TypeCommand<%=argv.beanNameCapitalize%>Result = unknown;
6
11
 
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/lib/performCommand.ts","../src/monkey.ts","../src/.metadata/index.ts","../src/lib/beanCommandBulkBase.ts","../src/lib/beanCommandRowBase.ts","../src/lib/command.ts","../src/types/command.ts"],"sourcesContent":["import type { ZovaSys } from 'zova';\nimport type { IJsxRenderContextBase } from 'zova-module-a-openapi';\n\nimport { beanFullNameFromOnionName, deepExtend } from 'zova';\n\nimport type { ICommandRecord, SymbolCommandResult } from '../types/command.js';\n\nexport function $performCommand<T extends keyof ICommandRecord>(\n sys: ZovaSys,\n commandName: T,\n options: Partial<ICommandRecord[T]> | undefined,\n renderContext: IJsxRenderContextBase,\n next?: Function,\n): ICommandRecord[T][typeof SymbolCommandResult] {\n if (!next) {\n next = commandRes => {\n return commandRes;\n };\n }\n // command\n const beanFullName = beanFullNameFromOnionName(commandName, 'command');\n const beanInstance = sys.bean._getBeanSyncOnly(beanFullName);\n if (beanInstance) {\n // sync\n return _renderEventCommandNormal_inner(beanInstance, options, renderContext, next);\n }\n // async\n return sys.bean._getBean(beanFullName, false).then(beanInstance => {\n return _renderEventCommandNormal_inner(beanInstance, options, renderContext, next);\n });\n}\n\nfunction _renderEventCommandNormal_inner(\n beanInstance: any,\n options: {} | undefined,\n renderContext: IJsxRenderContextBase,\n next?: Function,\n) {\n const onionOptions = beanInstance.$onionOptions;\n // props\n const props = onionOptions ? deepExtend({}, onionOptions, options) : (options ?? {});\n return beanInstance.execute(props, renderContext, next);\n}\n","import type { BeanBase, BeanContainer, IMonkeyBeanInit } from 'zova';\nimport type { IJsxRenderContextBase } from 'zova-module-a-openapi';\n\nimport { BeanSimple, cast } from 'zova';\n\nimport type { ICommandRecord } from './types/command.js';\n\nimport { $performCommand } from './lib/performCommand.js';\n\nexport class Monkey extends BeanSimple implements IMonkeyBeanInit {\n async beanInit(bean: BeanContainer, beanInstance: BeanBase) {\n const self = this;\n bean.defineProperty(beanInstance, '$performCommand', {\n enumerable: false,\n configurable: true,\n get() {\n return function <T extends keyof ICommandRecord>(\n commandName: T,\n options: Partial<ICommandRecord[T]> | undefined,\n renderContext?: IJsxRenderContextBase,\n next?: Function,\n ) {\n renderContext = Object.assign(\n {\n app: cast(beanInstance).app,\n ctx: cast(beanInstance).ctx,\n $host: beanInstance,\n },\n renderContext,\n );\n return $performCommand(self.sys, commandName, options, renderContext, next);\n };\n },\n });\n }\n}\n","// eslint-disable\n/** monkey: begin */\nexport * from '../monkey.js';\n/** monkey: end */\n/** scope: begin */\nimport { BeanScopeBase, type BeanScopeUtil } from 'zova';\nimport { Scope } from 'zova-module-a-bean';\n\n@Scope()\nexport class ScopeModuleACommand extends BeanScopeBase {}\n\nexport interface ScopeModuleACommand {\n util: BeanScopeUtil;\n}\n\nimport 'zova';\ndeclare module 'zova' {\n export interface IBeanScopeRecord {\n 'a-command': ScopeModuleACommand;\n }\n \n \n\n \n\n \n}\n \n/** scope: end */\n","import type { IJsxRenderContextBase, IJsxRenderContextPage } from 'zova-module-a-openapi';\n\nimport { BeanBase } from 'zova';\n\nimport type { ICommandBulkOptionsBase } from '../types/command.js';\n\nexport class BeanCommandBulkBase extends BeanBase {\n getResource(options: ICommandBulkOptionsBase, renderContext: IJsxRenderContextBase) {\n let resource: string | undefined = options.resource;\n if (renderContext.$scene === 'page') {\n const { $celScope } = renderContext as IJsxRenderContextPage;\n resource = resource ?? $celScope.resource;\n }\n if (!resource) {\n throw new Error(`should specify resource in scene: ${renderContext.$scene}`);\n }\n return { resource };\n }\n}\n","import type { IJsxRenderContextBase } from 'zova-module-a-openapi';\nimport type { IJsxRenderContextTableCell } from 'zova-module-a-table';\n\nimport { isNil } from '@cabloy/utils';\nimport { TableIdentity } from 'table-identity';\nimport { BeanBase } from 'zova';\n\nimport type { ICommandRowOptionsBase } from '../types/command.js';\n\nexport class BeanCommandRowBase extends BeanBase {\n getResourceAndId(options: ICommandRowOptionsBase, renderContext: IJsxRenderContextBase) {\n let resource: string | undefined = options.resource;\n let id: TableIdentity | undefined = options.id;\n if (renderContext.$scene === 'tableCell') {\n const { $celScope, cellContext } = renderContext as IJsxRenderContextTableCell;\n resource = resource ?? $celScope.resource;\n id = id ?? cellContext.row.id;\n }\n if (isNil(resource) || isNil(id)) {\n throw new Error(`should specify resource or id in scene: ${renderContext.$scene}`);\n }\n return { resource, id };\n }\n}\n","import type { PowerPartial } from 'zova';\n\nimport { createBeanDecorator } from 'zova';\n\nimport type { IDecoratorCommandOptions } from '../types/command.js';\n\nexport function Command<T extends IDecoratorCommandOptions>(\n options?: PowerPartial<T>,\n): ClassDecorator {\n return createBeanDecorator('command', 'sys', true, options);\n}\n","import type { OmitNever } from 'zova';\nimport type { ServiceOnion } from 'zova-module-a-bean';\nimport type { IJsxRenderContextBase } from 'zova-module-a-openapi';\n\nimport { TableIdentity } from 'table-identity';\n\nexport const SymbolCommandResult = Symbol('SymbolCommandResult');\n\nexport type TypeCommandOptions<K extends keyof ICommandRecord> = {\n name: K;\n options?: Omit<ICommandRecord[K], typeof SymbolCommandResult>;\n res?: string;\n};\n\nexport type NextCommandExecute = (res?: any) => any | Promise<any>;\n\nexport interface ICommandRecord {}\n\nexport interface ICommandExecute {\n execute(\n options: IDecoratorCommandOptions,\n renderContext: IJsxRenderContextBase,\n next: NextCommandExecute,\n ): any | Promise<any>;\n}\n\nexport interface IDecoratorCommandOptions<Result = any> {\n [SymbolCommandResult]: Result;\n // res?: string; // need not define here\n}\n\nexport interface ICommandOptionsBase<Result = any> extends IDecoratorCommandOptions<Result> {}\n\nexport interface ICommandBulkOptionsBase<Result = any> extends ICommandOptionsBase<Result> {\n resource?: string;\n}\n\nexport interface ICommandRowOptionsBase<Result = any> extends ICommandOptionsBase<Result> {\n resource?: string;\n id?: TableIdentity;\n}\n\ndeclare module 'zova-module-a-bean' {\n export interface SysOnion {\n command: ServiceOnion<IDecoratorCommandOptions, keyof ICommandRecord>;\n }\n}\n\ndeclare module 'zova' {\n export interface ConfigOnions {\n command: OmitNever<ICommandRecord>;\n }\n\n export interface IBeanSceneRecord {\n command: never;\n }\n}\n"],"mappings":";;;;AACA,SAAc,gBAAA,KAAuB,aAAY,SAAS,eAAQ,MAAA;YAElE,QAAS,eAAA;;CAET;CAGE,MAAK,eAAO,0BAAA,aAAA,SAAA;CACZ,MAAA,eAAc,IAAA,KAAA,iBAAA,YAAA;CACd,IAAA,cAEA,OAAO,gCAAQ,cAAA,SAAA,eAAA,IAAA;CAGf,OAAO,IAAE,KAAA,SAAc,cAAA,KAAA,EAAA,MAAA,iBAAA;EACrB,OAAE,gCAAiB,cAAA,SAAA,eAAA,IAAA;CACrB,CAAC;AACH;AACA,SAAK,gCAAA,cAAA,SAAA,eAAA,MAAA;CACH,MAAM,eAAe,aAAA;CAErB,MAAI,QAAA,eAAc,WAAA,CAAA,GAAA,cAAA,OAAA,IAAA,WAAA,CAAA;CAClB,OAAK,aAAA,QAAA,OAAA,eAAA,IAAA;AACP;;;;CCrBA,MAAQ,SAAC,MAAY,cAAa;;EAElC,KAAO,eAAO,cAAwB,mBAAkB;;GAElD,cAAI;;IAEH,OAAM,SAAO,aAAkB,SAAC,eAAW,MAAgB;KAC1D,gBAAe,OAAA,OAAe;MAC5B,KAAO,KAAI,YAAA,EAAA;MACZ,KAAA,KAAA,YAAe,EAAY;MAC9B,OAAY;KACZ,GAAA,aAAkB;KACd,OAAE,gBAAA,KAAA,KAAA,aAAA,SAAA,eAAA,IAAA;IACJ;GACF;EACF,CAAC;CACH;AACF;;;;;ACpBA,IAAG,MAAO,OAAA;AASV,IAAO,uBAA0B,OAAQ,MAAA,GAAA,QAAe,SAAA,EAAA,QAAA,YAExD,CAAA,GAAA,KAAO,SAAU,MAAA,SAAA,MAAoB,4BAAA,cAAA,CAAA,CAAA,KAAA,MAAA,KAAA;;;;;CCTrC,YAAS,SAAW,eAAW;;EAE/B,IAAO,cAAO,WAAA,QAA0B;WAEjC,cACL;GACE,WAAa,YAAU,UAAY;EACnC;EACA,IAAE,CAAA,UACA,MAAA,IAAU,MAAC,qCAA8B,cAAA,QAAA;EAE3C,OAAK,EACH,SACF;CACF;AACF;;;;CCdA,iBAAiB,SAAO,eAAa;EACrC,IAAQ,WAAC,QAAgB;EACzB,IAAQ,KAAC,QAAW;;GAEd,MAAM,EAAA,WAEL,gBACL;GACE,WAAa,YAAU,UAAY;GACnC,KAAO,MAAC,YAAgB,IAAA;EACxB;EACA,IAAE,MAAQ,QAAC,KAAU,MAAA,EAAA,GACnB,MAAA,IAAU,MAAC,2CAA8B,cAAA,QAAA;EAE3C,OAAA;GACE;GACA;EACF;CACF;AACF;;;;CCpBA,OAAS,oBAAoB,WAAQ,OAAK,MAAA,OAAA;;;;ACF1C,IAAa,sBAAmB,OAAK,qBAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/lib/performCommand.ts","../src/monkey.ts","../src/.metadata/index.ts","../src/lib/beanCommandBulkBase.ts","../src/lib/beanCommandRowBase.ts","../src/lib/command.ts","../src/types/command.ts"],"sourcesContent":["import { beanFullNameFromOnionName, deepExtend } from 'zova';\nexport function $performCommand(sys, commandName, options, renderContext, next) {\n if (!next) {\n next = commandRes => {\n return commandRes;\n };\n }\n // command\n const beanFullName = beanFullNameFromOnionName(commandName, 'command');\n const beanInstance = sys.bean._getBeanSyncOnly(beanFullName);\n if (beanInstance) {\n // sync\n return _renderEventCommandNormal_inner(beanInstance, options, renderContext, next);\n }\n // async\n return sys.bean._getBean(beanFullName, false).then(beanInstance => {\n return _renderEventCommandNormal_inner(beanInstance, options, renderContext, next);\n });\n}\nfunction _renderEventCommandNormal_inner(beanInstance, options, renderContext, next) {\n const onionOptions = beanInstance.$onionOptions;\n // props\n const props = onionOptions ? deepExtend({}, onionOptions, options) : options ?? {};\n return beanInstance.execute(props, renderContext, next);\n}","import { BeanSimple, cast } from 'zova';\nimport { $performCommand } from './lib/performCommand.js';\nexport class Monkey extends BeanSimple {\n async beanInit(bean, beanInstance) {\n const self = this;\n bean.defineProperty(beanInstance, '$performCommand', {\n enumerable: false,\n configurable: true,\n get() {\n return function (commandName, options, renderContext, next) {\n renderContext = Object.assign({\n app: cast(beanInstance).app,\n ctx: cast(beanInstance).ctx,\n $host: beanInstance\n }, renderContext);\n return $performCommand(self.sys, commandName, options, renderContext, next);\n };\n }\n });\n }\n}","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\n// eslint-disable\n/** monkey: begin */\nexport * from '../monkey.js';\n/** monkey: end */\n/** scope: begin */\nimport { BeanScopeBase } from 'zova';\nimport { Scope } from 'zova-module-a-bean';\nexport let ScopeModuleACommand = (_dec = Scope(), _dec2 = __z_BeanInfo({\n module: \"a-command\"\n}), _dec(_class = _dec2(_class = class ScopeModuleACommand extends BeanScopeBase {}) || _class) || _class);\nimport 'zova';\n\n/** scope: end */","import { BeanBase } from 'zova';\nexport class BeanCommandBulkBase extends BeanBase {\n getResource(options, renderContext) {\n let resource = options.resource;\n if (renderContext.$scene === 'page') {\n const {\n $celScope\n } = renderContext;\n resource = resource ?? $celScope.resource;\n }\n if (!resource) {\n throw new Error(`should specify resource in scene: ${renderContext.$scene}`);\n }\n return {\n resource\n };\n }\n}","import { isNil } from '@cabloy/utils';\nimport { BeanBase } from 'zova';\nexport class BeanCommandRowBase extends BeanBase {\n getResourceAndId(options, renderContext) {\n let resource = options.resource;\n let id = options.id;\n if (renderContext.$scene === 'tableCell') {\n const {\n $celScope,\n cellContext\n } = renderContext;\n resource = resource ?? $celScope.resource;\n id = id ?? cellContext.row.id;\n }\n if (isNil(resource) || isNil(id)) {\n throw new Error(`should specify resource or id in scene: ${renderContext.$scene}`);\n }\n return {\n resource,\n id\n };\n }\n}","import { createBeanDecorator } from 'zova';\nexport function Command(options) {\n return createBeanDecorator('command', 'sys', true, options);\n}","export const SymbolCommandResult = Symbol('SymbolCommandResult');"],"mappings":";;;;AACA,SAAgB,gBAAgB,KAAK,aAAa,SAAS,eAAe,MAAM;CAC9E,IAAI,CAAC,MACH,QAAO,eAAc;EACnB,OAAO;CACT;CAGF,MAAM,eAAe,0BAA0B,aAAa,SAAS;CACrE,MAAM,eAAe,IAAI,KAAK,iBAAiB,YAAY;CAC3D,IAAI,cAEF,OAAO,gCAAgC,cAAc,SAAS,eAAe,IAAI;CAGnF,OAAO,IAAI,KAAK,SAAS,cAAc,KAAK,CAAC,CAAC,MAAK,iBAAgB;EACjE,OAAO,gCAAgC,cAAc,SAAS,eAAe,IAAI;CACnF,CAAC;AACH;AACA,SAAS,gCAAgC,cAAc,SAAS,eAAe,MAAM;CACnF,MAAM,eAAe,aAAa;CAElC,MAAM,QAAQ,eAAe,WAAW,CAAC,GAAG,cAAc,OAAO,IAAI,WAAW,CAAC;CACjF,OAAO,aAAa,QAAQ,OAAO,eAAe,IAAI;AACxD;;;ACtBA,IAAa,SAAb,cAA4B,WAAW;CACrC,MAAM,SAAS,MAAM,cAAc;EACjC,MAAM,OAAO;EACb,KAAK,eAAe,cAAc,mBAAmB;GACnD,YAAY;GACZ,cAAc;GACd,MAAM;IACJ,OAAO,SAAU,aAAa,SAAS,eAAe,MAAM;KAC1D,gBAAgB,OAAO,OAAO;MAC5B,KAAK,KAAK,YAAY,CAAC,CAAC;MACxB,KAAK,KAAK,YAAY,CAAC,CAAC;MACxB,OAAO;KACT,GAAG,aAAa;KAChB,OAAO,gBAAgB,KAAK,KAAK,aAAa,SAAS,eAAe,IAAI;IAC5E;GACF;EACF,CAAC;CACH;AACF;;;;;ACpBA,IAAI,MAAM,OAAO;AASjB,IAAW,uBAAuB,OAAO,MAAM,GAAG,QAAQ,SAAa,EACrE,QAAQ,YACV,CAAC,GAAG,KAAK,SAAS,MAAM,SAAS,MAAM,4BAA4B,cAAc,CAAC,CAAC,KAAK,MAAM,KAAK;;;;ACVnG,IAAa,sBAAb,cAAyC,SAAS;CAChD,YAAY,SAAS,eAAe;EAClC,IAAI,WAAW,QAAQ;EACvB,IAAI,cAAc,WAAW,QAAQ;GACnC,MAAM,EACJ,cACE;GACJ,WAAW,YAAY,UAAU;EACnC;EACA,IAAI,CAAC,UACH,MAAM,IAAI,MAAM,qCAAqC,cAAc,QAAQ;EAE7E,OAAO,EACL,SACF;CACF;AACF;;;ACfA,IAAa,qBAAb,cAAwC,SAAS;CAC/C,iBAAiB,SAAS,eAAe;EACvC,IAAI,WAAW,QAAQ;EACvB,IAAI,KAAK,QAAQ;EACjB,IAAI,cAAc,WAAW,aAAa;GACxC,MAAM,EACJ,WACA,gBACE;GACJ,WAAW,YAAY,UAAU;GACjC,KAAK,MAAM,YAAY,IAAI;EAC7B;EACA,IAAI,MAAM,QAAQ,KAAK,MAAM,EAAE,GAC7B,MAAM,IAAI,MAAM,2CAA2C,cAAc,QAAQ;EAEnF,OAAO;GACL;GACA;EACF;CACF;AACF;;;ACrBA,SAAgB,QAAQ,SAAS;CAC/B,OAAO,oBAAoB,WAAW,OAAO,MAAM,OAAO;AAC5D;;;ACHA,IAAa,sBAAsB,OAAO,qBAAqB"}
@@ -26,6 +26,8 @@ export interface ICommandRowOptionsBase<Result = any> extends ICommandOptionsBas
26
26
  resource?: string;
27
27
  id?: TableIdentity;
28
28
  }
29
+ export interface ICommandDetailsRowOptionsBase<Result = any> extends ICommandOptionsBase<Result> {
30
+ }
29
31
  declare module 'zova-module-a-bean' {
30
32
  interface SysOnion {
31
33
  command: ServiceOnion<IDecoratorCommandOptions, keyof ICommandRecord>;
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/types/command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,eAAO,MAAM,mBAAmB,eAAgC,CAAC;AAEjE,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IAC/D,IAAI,EAAE,CAAC,CAAC;IACR,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,OAAO,mBAAmB,CAAC,CAAC;IAC9D,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,KAAK,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;AAEnE,MAAM,WAAW,cAAc;CAAG;AAElC,MAAM,WAAW,eAAe;IAC9B,OAAO,CACL,OAAO,EAAE,wBAAwB,EACjC,aAAa,EAAE,qBAAqB,EACpC,IAAI,EAAE,kBAAkB,GACvB,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;CACvB;AAED,MAAM,WAAW,wBAAwB,CAAC,MAAM,GAAG,GAAG;IACpD,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAE/B;AAED,MAAM,WAAW,mBAAmB,CAAC,MAAM,GAAG,GAAG,CAAE,SAAQ,wBAAwB,CAAC,MAAM,CAAC;CAAG;AAE9F,MAAM,WAAW,uBAAuB,CAAC,MAAM,GAAG,GAAG,CAAE,SAAQ,mBAAmB,CAAC,MAAM,CAAC;IACxF,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB,CAAC,MAAM,GAAG,GAAG,CAAE,SAAQ,mBAAmB,CAAC,MAAM,CAAC;IACvF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,aAAa,CAAC;CACpB;AAED,OAAO,QAAQ,oBAAoB,CAAC;IAClC,UAAiB,QAAQ;QACvB,OAAO,EAAE,YAAY,CAAC,wBAAwB,EAAE,MAAM,cAAc,CAAC,CAAC;KACvE;CACF;AAED,OAAO,QAAQ,MAAM,CAAC;IACpB,UAAiB,YAAY;QAC3B,OAAO,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;KACpC;IAED,UAAiB,gBAAgB;QAC/B,OAAO,EAAE,KAAK,CAAC;KAChB;CACF"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/types/command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,eAAO,MAAM,mBAAmB,eAAgC,CAAC;AAEjE,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IAC/D,IAAI,EAAE,CAAC,CAAC;IACR,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,OAAO,mBAAmB,CAAC,CAAC;IAC9D,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,KAAK,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;AAEnE,MAAM,WAAW,cAAc;CAAG;AAElC,MAAM,WAAW,eAAe;IAC9B,OAAO,CACL,OAAO,EAAE,wBAAwB,EACjC,aAAa,EAAE,qBAAqB,EACpC,IAAI,EAAE,kBAAkB,GACvB,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;CACvB;AAED,MAAM,WAAW,wBAAwB,CAAC,MAAM,GAAG,GAAG;IACpD,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAE/B;AAED,MAAM,WAAW,mBAAmB,CAAC,MAAM,GAAG,GAAG,CAAE,SAAQ,wBAAwB,CAAC,MAAM,CAAC;CAAG;AAE9F,MAAM,WAAW,uBAAuB,CAAC,MAAM,GAAG,GAAG,CAAE,SAAQ,mBAAmB,CAAC,MAAM,CAAC;IACxF,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB,CAAC,MAAM,GAAG,GAAG,CAAE,SAAQ,mBAAmB,CAAC,MAAM,CAAC;IACvF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,aAAa,CAAC;CACpB;AAED,MAAM,WAAW,6BAA6B,CAAC,MAAM,GAAG,GAAG,CAAE,SAAQ,mBAAmB,CAAC,MAAM,CAAC;CAAG;AAEnG,OAAO,QAAQ,oBAAoB,CAAC;IAClC,UAAiB,QAAQ;QACvB,OAAO,EAAE,YAAY,CAAC,wBAAwB,EAAE,MAAM,cAAc,CAAC,CAAC;KACvE;CACF;AAED,OAAO,QAAQ,MAAM,CAAC;IACpB,UAAiB,YAAY;QAC3B,OAAO,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;KACpC;IAED,UAAiB,gBAAgB;QAC/B,OAAO,EAAE,KAAK,CAAC;KAChB;CACF"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-module-a-command",
3
- "version": "5.1.29",
4
- "gitHead": "3380f8c5d3989242b60dc2a34cbb330f74335cbe",
3
+ "version": "5.1.34",
4
+ "gitHead": "eb85d771ef75776a439e56df3af8be6a3a36c1c2",
5
5
  "description": "",
6
6
  "keywords": [
7
7
  "Zova Module"
@@ -28,7 +28,7 @@
28
28
  "tsc:publish": "npm run clean && node ../../../../../packages-cli/cli/src/bin/zova.ts :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
29
29
  "prepublishOnly": "npm run tsc:publish",
30
30
  "prepack": "clean-package",
31
- "postpack": "clean-package restore && npm run clean"
31
+ "postpack": "clean-package restore"
32
32
  },
33
33
  "title": "a-command",
34
34
  "zovaModule": {
@@ -39,7 +39,8 @@
39
39
  "optionsGlobalInterfaceFrom": "zova-module-a-command",
40
40
  "boilerplate": "command/boilerplate",
41
41
  "boilerplateCommandBulk": "commandBulk/boilerplate",
42
- "boilerplateCommandRow": "commandRow/boilerplate"
42
+ "boilerplateCommandRow": "commandRow/boilerplate",
43
+ "boilerplateCommandDetailsRow": "commandDetailsRow/boilerplate"
43
44
  }
44
45
  },
45
46
  "capabilities": {
@@ -18,12 +18,12 @@ declare module 'zova' {
18
18
  export interface IBeanScopeRecord {
19
19
  'a-command': ScopeModuleACommand;
20
20
  }
21
-
22
-
23
21
 
24
-
25
22
 
26
-
23
+
24
+
25
+
26
+
27
27
  }
28
-
28
+
29
29
  /** scope: end */
@@ -40,6 +40,8 @@ export interface ICommandRowOptionsBase<Result = any> extends ICommandOptionsBas
40
40
  id?: TableIdentity;
41
41
  }
42
42
 
43
+ export interface ICommandDetailsRowOptionsBase<Result = any> extends ICommandOptionsBase<Result> {}
44
+
43
45
  declare module 'zova-module-a-bean' {
44
46
  export interface SysOnion {
45
47
  command: ServiceOnion<IDecoratorCommandOptions, keyof ICommandRecord>;